Skip to content

fix: include bundled packages in vocabulary listings - #345

Merged
rponeawa merged 1 commit into
hypit-ai:mainfrom
wanchenxing:fix/vocabulary-bundled-packages
Sep 23, 2026
Merged

rponeawa merged 1 commit into
hypit-ai:mainfrom
wanchenxing:fix/vocabulary-bundled-packages

Conversation

@wanchenxing

@wanchenxing wanchenxing commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

hypit vocabulary reports no installed Hypit packages in an empty project when using the published Distribution, even though a named query such as hypit vocabulary @hypit/screen-overlay works. Bundled packages live under the Distribution's packages/ directory, which the listing does not currently scan.

This change extends the existing scan to include that directory while preserving candidate order and deduplication by package name. The regression test uses separate project and Distribution directories without node_modules links and also covers named queries, duplicate sources, and project packages.

Validated locally on macOS with Node.js 24.12.0 and pnpm 10.33.0:

  • The new regression test fails before the fix; all 6 vocabulary tests pass afterward.

  • pnpm check passes.

  • pnpm test passes: 1,047 passed, 22 skipped, 0 failed.

  • After npm run pack:distribution, the CLI from the extracted tarball was checked in an empty project with external runtime dependencies linked and no node_modules/@hypit workspace links. Text and JSON listings returned 82 unique packages, and the named @hypit/screen-overlay query succeeded.

  • npm run check:distribution -- dist/release/hypit-hypit-0.2.12.tgz passes: isolated installation, example component build, font preparation, render, export, and FFmpeg decode. NODE_USE_ENV_PROXY=1 was set for downloads through the local proxy.

Fixes #344

Thank you for taking a look.

@rponeawa
rponeawa merged commit 7e03b01 into hypit-ai:main Sep 23, 2026
@wanchenxing
wanchenxing deleted the fix/vocabulary-bundled-packages branch September 23, 2026 12:46
SanHsien pushed a commit to SanHsien/hypit that referenced this pull request Sep 30, 2026
SanHsien added a commit to SanHsien/hypit that referenced this pull request Sep 30, 2026
Triage 19 commits, 20 PRs (hypit-ai#339-hypit-ai#373) and 17 issues (hypit-ai#338-hypit-ai#374) past
the v0.2.12 baseline. Four isolated, tested fixes were cherry-picked
with -x (hypit-ai#347, hypit-ai#345, hypit-ai#339, hypit-ai#361); the rest are recorded as adoption
pending, follow-upstream, monitor or not-applicable in
docs/fork/DECISIONS.md.

Baseline now v0.2.16 (557497b), PR through 373, issue through 374.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.

[Bug] hypit vocabulary omits bundled packages in an empty project

2 participants