@bike4mind/cli 0.18.2 → 0.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -425,9 +425,9 @@ This section covers the contributor workflow for hacking on the CLI from a check
425
425
 
426
426
  ### How the bin resolves source vs. built code
427
427
 
428
- `apps/cli/bin/bike4mind-cli.mjs` auto-detects which mode to run in:
428
+ `packages/cli/bin/bike4mind-cli.mjs` auto-detects which mode to run in:
429
429
 
430
- - If `apps/cli/dist/index.mjs` exists → runs the bundled production build
430
+ - If `packages/cli/dist/index.mjs` exists → runs the bundled production build
431
431
  - Otherwise → falls back to `tsx` and imports `src/index.tsx` directly
432
432
 
433
433
  This means **you do not need to rebuild the CLI itself between source edits** — `tsx` reads `src/` live on every invocation. The rebuild burden is only on the workspace packages that the CLI imports (see below).
@@ -449,7 +449,7 @@ pnpm turbo:core:build
449
449
  pnpm setup
450
450
 
451
451
  # 4. Make the `b4m` and `bike4mind` commands point at this checkout
452
- cd apps/cli
452
+ cd packages/cli
453
453
  pnpm link --global
454
454
 
455
455
  # 5. Verify
@@ -459,7 +459,7 @@ b4m --version
459
459
 
460
460
  After step 4, running `b4m` anywhere on your system executes this working tree. Re-run `pnpm link --global` if you move or rename the repo.
461
461
 
462
- ### Editing CLI source (`apps/cli/src/`)
462
+ ### Editing CLI source (`packages/cli/src/`)
463
463
 
464
464
  Just run `b4m`. The bin's `tsx` fallback picks up your edits on the next invocation — no build step needed.
465
465
 
@@ -473,7 +473,7 @@ b4m # now uses dist/index.mjs
473
473
  To drop back into source mode, delete `dist/`:
474
474
 
475
475
  ```bash
476
- rm -rf apps/cli/dist
476
+ rm -rf packages/cli/dist
477
477
  ```
478
478
 
479
479
  ### Editing workspace dependencies (`b4m-core/*`)
@@ -511,7 +511,7 @@ Caveats:
511
511
  ### Verification commands
512
512
 
513
513
  ```bash
514
- # Inside apps/cli
514
+ # Inside packages/cli
515
515
  pnpm typecheck
516
516
  pnpm test
517
517
  pnpm test:watch
@@ -528,13 +528,13 @@ b4m --verbose
528
528
 
529
529
  - **Don't `pnpm --filter @bike4mind/cli build` after every CLI source edit.** It's wasted work — the `tsx` fallback already runs your source live.
530
530
  - **Don't use `npm link`.** This repo is pnpm-only; mixing tools breaks symlink resolution.
531
- - **A stale `apps/cli/dist/` will mask your source changes.** If `b4m` is showing old behavior, check whether `dist/index.mjs` exists — the bin will prefer it over `src/`. Delete `dist/` to drop back to source mode.
531
+ - **A stale `packages/cli/dist/` will mask your source changes.** If `b4m` is showing old behavior, check whether `dist/index.mjs` exists — the bin will prefer it over `src/`. Delete `dist/` to drop back to source mode.
532
532
  - **First-run native module errors** (`better-sqlite3`, `sharp`): see [Build Requirements](#build-requirements) above. The postinstall hook handles most cases automatically.
533
533
 
534
534
  ## Architecture
535
535
 
536
536
  ```
537
- apps/cli/
537
+ packages/cli/
538
538
  ├── src/
539
539
  │ ├── components/ # Ink React components
540
540
  │ │ ├── App.tsx
@@ -594,7 +594,7 @@ can be pointed at a **symlink** named `claude`:
594
594
 
595
595
  ```bash
596
596
  # Create a claude-named symlink to the CLI entry point somewhere on disk:
597
- ln -s "$(pwd)/apps/cli/bin/bike4mind-cli.mjs" /usr/local/bin/claude-b4m/claude
597
+ ln -s "$(pwd)/packages/cli/bin/bike4mind-cli.mjs" /usr/local/bin/claude-b4m/claude
598
598
 
599
599
  # In the host, set the engine's `terminal_command` to that symlink path:
600
600
  # /usr/local/bin/claude-b4m/claude
@@ -113,7 +113,7 @@ const argv = await yargs(hideBin(process.argv))
113
113
  })
114
114
  // ─── claude-compatible flags (host drop-in masquerade) ──────────────────────
115
115
  // Declared so a host's claude launch flags parse into named options instead of
116
- // leaking into the positional `argv._` task. See apps/cli README "host app".
116
+ // leaking into the positional `argv._` task. See packages/cli README "host app".
117
117
  .option('mcp-config', {
118
118
  type: 'string',
119
119
  description: 'Path to a JSON file of MCP servers to inject ({ "mcpServers": {...} })',