Skip to content

fix(cli): guard boolean --pool flag in sync and mandate @latest in readme - #333

Merged
harshsinghmp merged 1 commit into
devfrom
fix/cli-sync-pool-and-docs
Oct 26, 2026
Merged

harshsinghmp merged 1 commit into
devfrom
fix/cli-sync-pool-and-docs

Conversation

@harshsinghmp

Copy link
Copy Markdown
Owner

Summary

  • CLI Sync --pool fix: Prevents boolean string "true" from resolving as relative directory ./true when memory sync --pool is passed without an explicit directory argument.
  • README.md Modernization: Mandates @latest across all package managers (bun, npm, pnpm, yarn, npx) and documents the 3-tier update model (CLI/workstation, project/workspace, and storage self-healing).
  • Roadmap & Backlog Expansion: Adds Wave 23–29 exploded ticket plans and records the local Agent OS (Rashin) research artifact.

Verification Evidence

  • All automated tests pass (bun test test/sync.test.ts 18/18 pass).
  • Marketing claims & copy contracts pass (bun test test/marketing_claims.test.ts test/published_copy_contracts.test.ts 38/38 pass).
  • Showreel freshness check passes (bun run scripts/showreel-hash.ts --check).
  • Document link referential integrity passes (bun run scripts/check-doc-links.ts 150/150 resolve).
  • Static type check passes (tsc --noEmit).
  • Pre-ship secret scan clean.
  • Changelog synchronized under [Unreleased].

…ll in readme

Why:
- In `src/cli/sync.ts`, passing `memory sync --pool` without an argument evaluated `parsed.flags.pool` as string `"true"`, causing path resolution to create a stray `./true` directory.
- Documentation in `README.md` needed to mandate `@latest` across package managers and outline 3-tier upgrade workflows (global, project, storage).
- Backlog in `.agents/context/` required Wave 23–29 tickets and the local Agent OS (Rashin) research artifact.

What:
- In `src/cli/sync.ts`: filter out `"true"` and empty strings so `poolDir` defaults to standard pool path when no explicit path is given.
- In `test/sync.test.ts`: add regression test verifying no `./true` directory is created when `--pool` is passed as boolean `"true"`.
- In `README.md`: mandate `@latest` for bun/npm/pnpm/yarn/npx and document 3-tier update guides.
- In `CHANGELOG.md`: record CLI sync fix and README updates under `[Unreleased]`.
- In `.agents/context/`: track Wave 23–29 tickets and commit research artifact.

Verification:
- `bun test test/sync.test.ts`: 18/18 pass.
- `bun test test/marketing_claims.test.ts test/published_copy_contracts.test.ts`: 38/38 pass.
- `bun run scripts/showreel-hash.ts --check`: in sync.
- `bun run scripts/check-doc-links.ts`: 150/150 markdown links resolve.
- `bun run typecheck` (tsc --noEmit): clean.
@harshsinghmp
harshsinghmp merged commit 44e0a6b into dev Oct 26, 2026
1 check passed
@harshsinghmp
harshsinghmp deleted the fix/cli-sync-pool-and-docs branch October 26, 2026 03:20
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