@stackbone/cli 0.3.3 → 0.3.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/CHANGELOG.md CHANGED
@@ -7,6 +7,99 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.4] - 2026-08-19
11
+
12
+ ### Added
13
+
14
+ - **`stackbone init` installs the workspace dependencies itself.** After the
15
+ files are written it runs `pnpm install` when `pnpm` answers on `PATH` and
16
+ `npm install` otherwise, so the workspace is ready for `stackbone dev` the
17
+ moment the command returns. The scaffold works under both: its `.npmrc` pins
18
+ a hoisted `node_modules`, its root `package.json` now declares the
19
+ `workflows` subpackage in a `workspaces` field as well as in
20
+ `pnpm-workspace.yaml` (npm does not read the yaml), and neither `build` nor
21
+ `package` install from the workspace. Best-effort like the coding-agent setup: a failed
22
+ install prints the package manager's last lines as a warning, the command still
23
+ exits `0`, and the "Next steps" note keeps the `<pm> install` line — naming
24
+ the manager that ran, not a hard-coded `pnpm`. `--no-install` skips the step.
25
+ The JSON envelope gains `dependencies: { status, package_manager, error? }`
26
+ (`installed` | `failed` | `skipped`).
27
+
28
+ ### Changed
29
+
30
+ - **`stackbone init` and `stackbone link` ask which coding agents you use, and
31
+ that one answer installs the skills AND configures the documentation MCP
32
+ server.** The CLI used to guess: it called `npx skills` with no agent list and
33
+ let upstream detection decide where to copy. That detection is
34
+ `existsSync(~/.<agent>)`, so a leftover directory from an old `skills add -g`
35
+ made every later `init` copy into tools the creator had never opened, and when
36
+ it detected nothing at all it installed into every known agent. There is now a
37
+ multiselect of the seven supported agents (Claude Code, Cursor, GitHub
38
+ Copilot, Gemini CLI, Windsurf, Cline, Codex) with the ones present on disk
39
+ pre-ticked, and whatever you tick gets both halves: the four agent skills, and
40
+ a `stackbone-docs` entry in that agent's own MCP configuration. Zero is a
41
+ valid answer.
42
+
43
+ The seven MCP entries do **not** share a shape, and that is registry data
44
+ rather than branches in code: VS Code keys its map `servers`, not
45
+ `mcpServers`; Gemini CLI reads `httpUrl` and treats `url` as SSE; Windsurf
46
+ reads `serverUrl`; Cline spells the transport `streamableHttp` in that exact
47
+ casing (with `streamable-http` it falls back to SSE and the endpoint answers
48
+ 405); and Codex is TOML. Every wrong shape parses without complaining and then
49
+ fails to connect, which is the worst failure we could ship because the creator
50
+ sees a config file that looks right. Every write MERGES: the other MCP servers
51
+ in the file survive, so do foreign root keys (`inputs` in `.vscode/mcp.json`),
52
+ and an existing `stackbone-docs` entry is left byte for byte as it is, because
53
+ the creator may have edited it. A file we cannot parse is left untouched and
54
+ that one target is marked `failed`; the rest are still written.
55
+
56
+ The four project-scoped MCP files (`.mcp.json`, `.cursor/mcp.json`,
57
+ `.vscode/mcp.json`, `.gemini/settings.json`) are deliberately NOT added to the
58
+ `.gitignore` block: they are meant to be committed, so a teammate who clones
59
+ the repository inherits the documentation server without running anything.
60
+
61
+ **Breaking.** In non-interactive mode (`--json`, `--yes`, no TTY, or `CI` set
62
+ in the environment) `init` and `link` now install **nothing** unless you pass
63
+ `--agents <list>`. `stackbone init --json` used to install the skills for
64
+ whichever agents were auto-detected; it now installs none. A multiselect fired
65
+ under `--json` would hang a pipeline forever with nothing on stdout to explain
66
+ it, so the gate is hard. Any script or CI job that relied on `init --json`
67
+ leaving the skills in place has to add `--agents claude-code,cursor,…`.
68
+ `--no-agents` is the explicit switch for setting nothing up.
69
+
70
+ The JSON envelope of both commands changes with it: `skills_install` is gone
71
+ and `agent_setup` takes its place, shaped
72
+ `{ ok, selected, steps: { skills, mcp } }` where `mcp` carries a per-agent
73
+ status (`written` | `already` | `failed` | `skipped`). The shape stays constant
74
+ even when nothing is selected, so an agent reading the output never has to
75
+ branch on a missing block.
76
+
77
+ - **`stackbone docs` hands over MCP connection details instead of printing the
78
+ documentation.** The CLI used to compile a copy of the wiki into the binary
79
+ and render a page inline (`stackbone docs cli/commands`). That copy was 544 KB
80
+ of a 2.8 MB bundle, it had no search so the reader had to guess an exact topic
81
+ key, and an old install could hand out documentation that quietly disagreed
82
+ with the live site. The wiki now serves the same pages over MCP at
83
+ `https://docs.stackbone.ai/mcp`, which searches by meaning and always reflects
84
+ the current deploy, so the command's job is the connection details: the
85
+ endpoint, the `claude mcp add` one-liner, and the `mcpServers` block every
86
+ other client accepts. `--json` returns them structured, with
87
+ `install.mcpServers` ready to write into a client config without parsing the
88
+ human output.
89
+
90
+ **Breaking.** Passing a topic now exits `4` and names the replacement rather
91
+ than rendering a page. Rejecting the argument beats ignoring it: a script that
92
+ still passes one finds out, instead of silently reading a help screen where it
93
+ expected a reference page. The binary lost ~518 KB.
94
+
95
+ ### Removed
96
+
97
+ - **The wiki-to-CLI documentation sync.** `apps/cli/src/docs/` (including the
98
+ generated `topics.generated.ts`), the `sync-docs` and `sync-docs:check` Nx
99
+ targets, the `cli:sync-docs` / `cli:sync-docs:check` workspace scripts, and the
100
+ `sync-docs` dependency of `cli:build`. Nothing regenerates into the binary any
101
+ more, so nothing can drift against it.
102
+
10
103
  ## [0.3.3] - 2026-08-11
11
104
 
12
105
  ### Added
package/README.md CHANGED
@@ -19,23 +19,23 @@ That's it. `init` scaffolds a new workspace shell (agents + workflows + coding-a
19
19
 
20
20
  ## Commands
21
21
 
22
- | Command | What it does |
23
- | ----------------------------- | ---------------------------------------------------------------------- |
24
- | `stackbone init [name]` | Scaffold a new workspace shell and link it to your org (needs login). |
25
- | `stackbone add <kind> <name>` | Add an agent / workflow / workflow-agent to the workspace (offline). |
26
- | `stackbone dev` | Boot the whole workspace locally + Stackbone Studio. |
27
- | `stackbone workflows <verb>` | List, inspect the schema of, or start the install's workflows. |
28
- | `stackbone build` | Compile the workspace into the bundle your container image bakes in. |
29
- | `stackbone login` / `logout` | Authenticate the CLI via the device-code flow (RFC 8628). |
30
- | `stackbone whoami` | Show the active user and organization. |
31
- | `stackbone current` | Print the organization currently linked to this session. |
32
- | `stackbone link` | Link the current directory to an existing organization + agent. |
33
- | `stackbone list` | List organizations the current user owns. |
34
- | `stackbone metadata` | Agent-friendly snapshot of the workspace state. |
35
- | `stackbone db <subcmd>` | Manage the local emulator database (migrations, queries). |
36
- | `stackbone docs <topic>` | Print Stackbone documentation inline. Run with no args to list topics. |
37
-
38
- Run any command with `--help` for the full flag reference, or `npx @stackbone/cli docs cli` for the inline documentation.
22
+ | Command | What it does |
23
+ | ----------------------------- | --------------------------------------------------------------------- |
24
+ | `stackbone init [name]` | Scaffold a new workspace shell and link it to your org (needs login). |
25
+ | `stackbone add <kind> <name>` | Add an agent / workflow / workflow-agent to the workspace (offline). |
26
+ | `stackbone dev` | Boot the whole workspace locally + Stackbone Studio. |
27
+ | `stackbone workflows <verb>` | List, inspect the schema of, or start the install's workflows. |
28
+ | `stackbone build` | Compile the workspace into the bundle your container image bakes in. |
29
+ | `stackbone login` / `logout` | Authenticate the CLI via the device-code flow (RFC 8628). |
30
+ | `stackbone whoami` | Show the active user and organization. |
31
+ | `stackbone current` | Print the organization currently linked to this session. |
32
+ | `stackbone link` | Link the current directory to an existing organization + agent. |
33
+ | `stackbone list` | List organizations the current user owns. |
34
+ | `stackbone metadata` | Agent-friendly snapshot of the workspace state. |
35
+ | `stackbone db <subcmd>` | Manage the local emulator database (migrations, queries). |
36
+ | `stackbone docs` | Show how to reach the documentation over MCP. |
37
+
38
+ Run any command with `--help` for the full flag reference. The full documentation lives at <https://docs.stackbone.ai>, and is also served to coding agents over MCP at <https://docs.stackbone.ai/mcp> — run `stackbone docs` for the connection details.
39
39
 
40
40
  ## Requirements
41
41
 
@@ -46,7 +46,7 @@ Run any command with `--help` for the full flag reference, or `npx @stackbone/cl
46
46
 
47
47
  - Documentation: <https://docs.stackbone.ai>
48
48
  - Marketplace: <https://stackbone.ai>
49
- - Issues & feedback: report via `stackbone docs feedback` once authenticated, or contact the team directly.
49
+ - Issues & feedback: contact the team directly.
50
50
 
51
51
  ## License
52
52