Skip to content

Fix the scaffolded framework pin, npm audit warning, and typecheck UX#9

Merged
shivamsn97 merged 1 commit into
mainfrom
fix/scaffold-template
Jul 7, 2026
Merged

Fix the scaffolded framework pin, npm audit warning, and typecheck UX#9
shivamsn97 merged 1 commit into
mainfrom
fix/scaffold-template

Conversation

@shivamsn97

@shivamsn97 shivamsn97 commented Jul 7, 2026

Copy link
Copy Markdown
Member

Four fixes to the first-run experience:

  1. pyxle init renders requirements.txt from the running framework version. The template previously hard-coded pyxle-framework>=0.4.1,<0.5, so running pyxle install in a fresh project replaced the framework you had just installed with an older release. The pin is now generated as >=<current>,<<next-minor>, with a regression test derived from the live version so it cannot go stale.
  2. Fresh scaffolds pass npm audit clean — the scaffold now pins vite ^6.3 and @vitejs/plugin-react ^4.4, clearing the advisory flagged against the older toolchain (GHSA-67mh-4wv8-2f99). Verified end-to-end: init → npm install (0 vulnerabilities) → dev → build → serve.
  3. pyxle typecheck fails fast with a clear message when TypeScript isn't installed, instead of relaying npx's placeholder banner and a contradictory "failed with 0 error(s)" summary.
  4. Scaffolded AGENTS.md corrected — auto-injected runtime names (LoaderError and friends) are now documented consistently.

Tests: 2195 passed, coverage 96.48%.

- pyxle init renders the scaffolded requirements.txt from the running
  framework version (was a stale literal '>=0.4.1,<0.5' that silently
  DOWNGRADED fresh installs 0.6.1 -> 0.4.5 on 'pyxle install'). The pin
  is now '>=<current>,<next-minor>' with a live-version regression test
  that cannot go stale.
- Scaffold bumps vite to ^6.3 / @vitejs/plugin-react ^4.4: fresh
  scaffolds now pass npm audit with 0 vulnerabilities (was 1 high +
  1 moderate via transitive esbuild <=0.24.2, GHSA-67mh-4wv8-2f99).
  Verified e2e: init -> npm install -> dev -> build -> serve.
- pyxle typecheck fails fast with an actionable error when TypeScript
  is missing instead of relaying npx's placeholder banner and a
  contradictory 'failed with 0 error(s)' summary.
- Scaffolded AGENTS.md no longer claims LoaderError must be imported;
  auto-injected runtime names documented consistently.

Suite: 2195 passed, coverage 96.48% (threshold 95). Ruff clean.
@shivamsn97 shivamsn97 merged commit 8a5fc84 into main Jul 7, 2026
@shivamsn97 shivamsn97 changed the title fix(cli): first-run scaffold + CLI fixes (QA blocker #1) Fix the scaffolded framework pin, npm audit warning, and typecheck UX Jul 7, 2026
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.

1 participant