Commit 7ecb94a
fix(workspace): refresh the CLI help snapshot; mark precedence server-side only
The new `--integrations` flag is longer than any existing root option, so yargs
re-wraps the whole option table — the snapshot churn is realignment plus the one
new row. Verified whitespace-normalised: the only new content is that flag's own
description.
Also record why this module must never be imported from a TUI plugin. Plugins
load in a separate module realm in the same process, so such an import is a
different instance sharing neither module state nor `globalThis`: it would
typecheck, unit-test green, and return an empty precedence forever. Only the
event bus crosses, which is why the inventory line is published as a TUI event
rather than read directly.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RM9xasTNbk2k1eqhpF1Hp51 parent 8a3a7ab commit 7ecb94a
2 files changed
Lines changed: 377 additions & 263 deletions
File tree
- packages/opencode
- src/altimate/workspace
- test/cli/help/__snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
| |||
0 commit comments