threadroot 0.1.1 → 0.1.3

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.
Files changed (4) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +34 -23
  3. package/dist/index.js +1942 -1251
  4. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,32 @@ All notable changes to Threadroot will be documented here.
4
4
 
5
5
  Threadroot follows semantic versioning after the first public release. While `0.x`, minor versions may include breaking changes as the harness format settles.
6
6
 
7
+ ## 0.1.3 - Verified Codex MCP setup
8
+
9
+ ### Added
10
+
11
+ - `threadroot mcp check` to verify Codex MCP config, launch the stdio server, complete a JSON-RPC initialize handshake, and assert required Threadroot tools are available.
12
+ - MCP server initialization instructions that tell agents how to use `context`, `doctor`, skills, tools, and durable memory.
13
+ - Doctor checks for configured-but-broken Codex MCP.
14
+
15
+ ### Changed
16
+
17
+ - `bootstrap --mcp` and `setup --global --mcp` now write a local-aware MCP command. Package-bin symlinks and local dev runs resolve to `node /path/to/dist/index.js mcp`, with `threadroot mcp` as the fallback.
18
+ - Package smoke now verifies MCP from the packed tarball.
19
+
20
+ ## 0.1.2 - One-command bootstrap and session start
21
+
22
+ ### Added
23
+
24
+ - `threadroot bootstrap` as the simple first-run command for global agent setup, local-only harness initialization, health checks, and initial context.
25
+ - `threadroot start "<task>"` as the daily agent-session command for doctor, status, task context, and Threadroot command discovery.
26
+ - Package smoke coverage for the new bootstrap/start flow.
27
+
28
+ ### Changed
29
+
30
+ - The generated agent bootstrap prompt now uses `threadroot bootstrap --yes` and `threadroot start "<task>"` instead of spelling out lower-level setup commands.
31
+ - README quickstart now leads with the simplified bootstrap/start flow.
32
+
7
33
  ## 0.1.1 - Clean setup and global agent bootstrap
8
34
 
9
35
  ### Changed
package/README.md CHANGED
@@ -13,20 +13,17 @@ service.
13
13
  Run Threadroot without adding it to your project:
14
14
 
15
15
  ```bash
16
- npx threadroot setup --global --dry-run
17
- npx threadroot setup --global
18
- npx threadroot init
16
+ npx threadroot bootstrap --yes
19
17
  # or
20
- pnpm dlx threadroot init
18
+ pnpm dlx threadroot bootstrap --yes
21
19
  # or
22
- npm exec --package=threadroot -- threadroot init
20
+ npm exec --package=threadroot -- threadroot bootstrap --yes
23
21
  ```
24
22
 
25
23
  After initialization:
26
24
 
27
25
  ```bash
28
- threadroot doctor
29
- threadroot context "write tests"
26
+ threadroot start "write tests"
30
27
  ```
31
28
 
32
29
  For local development on Threadroot itself:
@@ -40,11 +37,10 @@ node dist/index.js --help
40
37
  ## Quick start
41
38
 
42
39
  ```bash
43
- tr setup --global # one-time machine setup for supported coding agents
44
- tr init # detect the repo and scaffold local-only .threadroot/
45
- tr status # authored objects and optional compiled outputs
46
- tr context "write tests" # task-relevant skills, rules, tools, and memory
47
- tr doctor # health check for harness validity, setup hints, tool trust
40
+ tr bootstrap --yes # one-time machine setup + local-only .threadroot/
41
+ tr bootstrap --yes --mcp # also configure and verify global Codex MCP
42
+ tr start "write tests" # doctor, status, relevant context, and command map
43
+ tr mcp check # verify Codex MCP config and server handshake
48
44
  tr expose codex # optional: write a thin project skill shim for Codex
49
45
  ```
50
46
 
@@ -53,6 +49,8 @@ tr expose codex # optional: write a thin project skill shim for Codex
53
49
  ## CLI surface
54
50
 
55
51
  ```bash
52
+ tr bootstrap [--yes] [--agent <list>] [--task <task>] [--mcp] [--expose <list>]
53
+ tr start ["<task>"]
56
54
  tr setup --global [--agent <list>] [--dry-run] [--check] [--undo] [--mcp]
57
55
  tr init [--force] [--no-import] [--profile <p>] [--adapters <list>] [--expose <list>]
58
56
  tr expose [agent|all] [--dry-run] [--check] [--undo] [--force]
@@ -75,6 +73,7 @@ tr connections list | check
75
73
  tr connections add <name> --provider <p> --command <cmd>
76
74
  tr packs list | inspect <pack> | validate <pack> | install <pack>
77
75
  tr mcp # run the local MCP server (stdio)
76
+ tr mcp check # verify Codex MCP config and required tools
78
77
  tr mcp setup [--write] # wire MCP into agents
79
78
  ```
80
79
 
@@ -99,19 +98,25 @@ turns the harness into legacy vendor instruction formats only when adapters are
99
98
  in `harness.yaml` or when you run `tr compile --adapter <name>`. Hand-authored prose in a
100
99
  vendor file is preserved; Threadroot only owns the block it marks as generated.
101
100
 
102
- ## Global setup and exposure
101
+ ## Bootstrap, global setup, and exposure
103
102
 
104
- The best experience is one-time global setup plus local-only project harnesses:
103
+ The simple path is:
105
104
 
106
105
  ```bash
107
- tr setup --global --dry-run
108
- tr setup --global
109
- tr init
106
+ tr bootstrap --yes --mcp
107
+ tr start "current task"
110
108
  ```
111
109
 
110
+ Without `--yes`, `tr bootstrap` prints a dry-run plan. With `--yes`, it installs global
111
+ agent bootstrap skills, initializes `.threadroot/` if needed, runs doctor, and prints
112
+ task context. With `--mcp`, it also writes Codex MCP config using the current CLI entry
113
+ (`node /path/dist/index.js mcp` when Threadroot can resolve the package path, or
114
+ `threadroot mcp` as a fallback) and verifies the stdio server handshake. It does not write
115
+ provider-specific project files unless you pass `--expose`.
116
+
112
117
  Global setup installs a tiny `threadroot` skill into supported agent user-skill
113
- directories so agents know to call `threadroot doctor` and `threadroot context "<task>"`
114
- when they see `.threadroot/`.
118
+ directories so agents know to call `threadroot bootstrap --yes` when setup is missing
119
+ and `threadroot start "<task>"` when they see `.threadroot/`.
115
120
 
116
121
  Supported global skill targets:
117
122
 
@@ -237,6 +242,7 @@ Threadroot runs a local MCP server over stdio that exposes the harness to agents
237
242
 
238
243
  ```bash
239
244
  tr mcp
245
+ tr mcp check # verify Codex global MCP config and required tools
240
246
  tr mcp setup # print config snippets and a pasteable agent bootstrap prompt
241
247
  tr mcp setup --write # opt-in: write project-local MCP config for supported agents
242
248
  ```
@@ -246,8 +252,12 @@ Tools: `context`, `skills_list`, `skills_get`, `tools_list`, `tools_check`, `too
246
252
  `memory_append`, `status`, `doctor`.
247
253
 
248
254
  `tr mcp setup` also prints a copy/paste agent prompt that follows the real CLI flow:
249
- check availability, run `threadroot init` when needed, inspect `status`, use
250
- `threadroot context`, and ask before writing MCP config.
255
+ check availability, run `threadroot bootstrap --yes`, run `threadroot start "<task>"`,
256
+ and ask before writing project-local MCP config.
257
+
258
+ After changing Codex MCP config, reload VS Code/Codex or start a new Codex session. `tr mcp
259
+ check` proves the server works from the terminal; the agent surface still has to load its
260
+ MCP configuration.
251
261
 
252
262
  ## Profiles
253
263
 
@@ -287,8 +297,9 @@ THREADROOT_ROOT="$(pwd)"
287
297
  TMP_REPO="$(mktemp -d /tmp/threadroot-smoke.XXXXXX)"
288
298
  rsync -a --exclude .git --exclude node_modules --exclude dist ./ "$TMP_REPO/"
289
299
  cd "$TMP_REPO"
290
- node "$THREADROOT_ROOT/dist/index.js" init --no-import
291
- HOME="$TMP_REPO/home" node "$THREADROOT_ROOT/dist/index.js" setup --global --agent codex --dry-run
300
+ HOME="$TMP_REPO/home" node "$THREADROOT_ROOT/dist/index.js" bootstrap --yes --agent codex --mcp --no-import
301
+ HOME="$TMP_REPO/home" node "$THREADROOT_ROOT/dist/index.js" mcp check
302
+ HOME="$TMP_REPO/home" node "$THREADROOT_ROOT/dist/index.js" start "write tests"
292
303
  node "$THREADROOT_ROOT/dist/index.js" expose codex
293
304
  node "$THREADROOT_ROOT/dist/index.js" status
294
305
  node "$THREADROOT_ROOT/dist/index.js" context "write tests"