Skip to content

fix(nikcli): solve startup package re-install loop and correct TypeScript typecheck errors - #73

Merged
nikomatt69 merged 2 commits into
nikomatt69:live-mainfrom
SandroHub013:live-main
May 23, 2026
Merged

fix(nikcli): solve startup package re-install loop and correct TypeScript typecheck errors#73
nikomatt69 merged 2 commits into
nikomatt69:live-mainfrom
SandroHub013:live-main

Conversation

@SandroHub013

@SandroHub013 SandroHub013 commented May 23, 2026

Copy link
Copy Markdown
Collaborator

Issue for this PR

Closes #77
Also fixes #76 (workspace typecheck failing because packages/inference was missing the tsgo dependency).

Type of change

  • Bug fix

What does this PR do?

Two things:

  1. Fixes a startup loop where nikcli re-installed its dynamically-loaded packages on every launch instead of detecting an already-satisfied install, plus the Windows-specific ESM/TypeScript resolution errors that came with it.
  2. Adds the missing @typescript/native-preview devDependency to packages/inference so its tsgo typecheck script can actually run. Without it the workspace typecheck failed with exit 127 (command not found), which is what was breaking CI on this branch.

How did you verify your code works?

Ran turbo run typecheck across the workspace — all 21 packages pass. Verified packages/inference typecheck now runs instead of failing with 127, and that nikcli startup no longer re-enters the install loop.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

`@nikcli-ai/inference` defines a `typecheck` script using `tsgo` but never
declared `@typescript/native-preview`, so the binary was missing and the
pre-push workspace typecheck failed with "command not found: tsgo".

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@nikomatt69

Copy link
Copy Markdown
Owner

/nik fixa tutto

@nikomatt69
nikomatt69 merged commit ffcd5c4 into nikomatt69:live-main May 23, 2026
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nikcli re-installs dynamic packages in a loop on startup Workspace typecheck fails on CI: @nikcli-ai/inference missing tsgo dependency

2 participants