Skip to content

fix: review follow-ups for monorepo adapter separation#783

Merged
jackwener merged 3 commits intomainfrom
fix/review-followups
Apr 4, 2026
Merged

fix: review follow-ups for monorepo adapter separation#783
jackwener merged 3 commits intomainfrom
fix/review-followups

Conversation

@jackwener
Copy link
Copy Markdown
Owner

Summary

Follow-up fixes from code review of #782:

  • Clarify first-run log: "copying adapters (one-time setup)" instead of "fetching adapters"
  • Add comment explaining the two-level ../ in scriptPath (correct in prod, dev has catch fallback)
  • OPENCLI_FETCH=1 now bypasses version-skip check to allow forced refresh of adapter files

Test plan

  • tsc compiles
  • Unit tests pass (490/490)

…version check

- Clarify first-run log message: "copying adapters (one-time setup)"
- Add comment explaining why scriptPath uses two levels of ../
- OPENCLI_FETCH=1 now bypasses version-skip to allow forced refresh
check-doc-coverage.sh still referenced src/clis/ after PR #782 moved
adapters to root clis/. This caused CI to fail with "0/1 documented".
The symlink at ~/.opencli/node_modules/@jackwener/opencli pointed to
dist/ instead of the package root in prod mode, breaking user TS CLIs
that import from '@jackwener/opencli/registry'.

The first-run scriptPath also resolved incorrectly in dev mode.

Extract findPackageRoot() that walks up to find package.json, fixing
both paths for dev (src/) and prod (dist/src/) layouts.
@jackwener jackwener merged commit 639a31f into main Apr 4, 2026
11 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.

1 participant