@bike4mind/cli 0.18.3 → 0.18.5

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/LICENSE CHANGED
@@ -33,7 +33,21 @@ Additional Use Grant: You may make production use of the Licensed Work,
33
33
  provider — is expressly permitted and is not a Bike4Mind
34
34
  Service.
35
35
 
36
- Change Date: Four years from the date a given version of the Licensed
36
+ Nominative name use (an additional grant): notwithstanding
37
+ the trademark reservation in the Terms below, you may use
38
+ the name "Bike4Mind" solely to state accurately that your
39
+ product or service is built on, forked from, or derived
40
+ from the Licensed Work. This permission does not extend to
41
+ using "Bike4Mind" as the name of your own product or
42
+ service, or in any manner that implies sponsorship or
43
+ endorsement by Bike4Mind, Inc. Retaining the NOTICE file
44
+ provided with the Licensed Work is encouraged; and when you
45
+ distribute a version on or after its Change Date, retaining
46
+ it is required by the Change License (Apache-2.0, Section
47
+ 4(d)). That obligation attaches to distribution, not to
48
+ hosted use.
49
+
50
+ Change Date: Two years from the date a given version of the Licensed
37
51
  Work is first made publicly available. Each version
38
52
  carries its own Change Date (see Terms). Bike4Mind, Inc.
39
53
  may, at its discretion, designate an earlier Change Date
@@ -57,7 +71,7 @@ works, redistribute, and make non-production use of the Licensed Work. The
57
71
  Licensor may make an Additional Use Grant, above, permitting limited production
58
72
  use.
59
73
 
60
- Effective on the Change Date, or the fourth anniversary of the first publicly
74
+ Effective on the Change Date, or the second anniversary of the first publicly
61
75
  available distribution of a specific version of the Licensed Work under this
62
76
  License, whichever comes first, the Licensor hereby grants you rights under
63
77
  the terms of the Change License, and the rights granted in the paragraph
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": {...} })',