Skip to content

refactor: share package version lookup - #76

Draft
adity982 wants to merge 1 commit into
wkoverfield:mainfrom
adity982:agent/dedupe-package-version
Draft

refactor: share package version lookup#76
adity982 wants to merge 1 commit into
wkoverfield:mainfrom
adity982:agent/dedupe-package-version

Conversation

@adity982

Copy link
Copy Markdown

Summary

  • move the duplicated package manifest version reader into @ayo-dev/core/node
  • have both the CLI and MCP server pass their own import.meta.url
  • preserve the safe 0.0.0 fallback without pulling Node-only code into the Worker export

Validation

  • direct TypeScript build and typecheck passed for core, CLI, and MCP packages
  • node packages/cli/dist/ayo.js --version -> 0.3.1
  • shared helper resolves both CLI and MCP package versions to 0.3.1
  • pnpm install --frozen-lockfile resolved dependencies but this runner's pnpm policy rejected unapproved third-party build scripts (esbuild, sharp, workerd)

Closes #61

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.

Dedupe pkgVersion() between the CLI and the MCP server

1 participant