@mmerterden/multi-agent-pipeline 20.43.1 → 20.44.0

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 (54) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +19 -3
  3. package/README.tr.md +19 -4
  4. package/docs/ecosystem.md +7 -7
  5. package/docs/facts.json +8 -8
  6. package/docs/features.md +1 -1
  7. package/manifest.json +57 -47
  8. package/package.json +1 -1
  9. package/pipeline/commands/multi-agent/review-priority/SKILL.md +10 -5
  10. package/pipeline/commands/multi-agent/setup/SKILL.md +1 -1
  11. package/pipeline/commands/multi-agent/update/SKILL.md +10 -12
  12. package/pipeline/contract/CHANGELOG.md +43 -3
  13. package/pipeline/contract/README.md +65 -63
  14. package/pipeline/contract/fixtures/error-invalid-request.json +1 -1
  15. package/pipeline/contract/fixtures/error-unauthorized.json +1 -1
  16. package/pipeline/contract/fixtures/error-unsigned.json +1 -1
  17. package/pipeline/contract/manifest.json +41 -4
  18. package/pipeline/contract/types/index.d.ts +112 -3
  19. package/pipeline/multi-agent-refs/features/office-remote-protocol.md +4 -2
  20. package/pipeline/multi-agent-refs/features/office-threat-model.md +3 -1
  21. package/pipeline/multi-agent-refs/features/usage-reporting.md +13 -12
  22. package/pipeline/multi-agent-refs/help/en.md +1 -1
  23. package/pipeline/multi-agent-refs/help/tr.md +1 -1
  24. package/pipeline/office/index.html +434 -28
  25. package/pipeline/office/toolkit.json +1 -1
  26. package/pipeline/rules/outside-the-pipeline.md +1 -1
  27. package/pipeline/schemas/contract-error.schema.json +2 -1
  28. package/pipeline/schemas/disk-clean-request.schema.json +66 -0
  29. package/pipeline/schemas/disk-clean.schema.json +243 -0
  30. package/pipeline/schemas/office-jobs.json +25 -0
  31. package/pipeline/schemas/office-jobs.schema.json +19 -0
  32. package/pipeline/schemas/skill-catalog.schema.json +91 -0
  33. package/pipeline/schemas/toolkit-path-params.json +23 -1
  34. package/pipeline/scripts/_contract-core.mjs +1 -1
  35. package/pipeline/scripts/_contract-routes-catalog.mjs +31 -3
  36. package/pipeline/scripts/_contract-routes-ops.mjs +11 -1
  37. package/pipeline/scripts/_stack-routing.mjs +2 -0
  38. package/pipeline/scripts/contract-server.mjs +4 -0
  39. package/pipeline/scripts/job-launch.mjs +50 -9
  40. package/pipeline/scripts/office-disk.mjs +262 -0
  41. package/pipeline/scripts/skill-catalog.mjs +302 -0
  42. package/pipeline/scripts/stack-toggle.mjs +104 -41
  43. package/pipeline/skills/.skill-manifest.json +13 -5
  44. package/pipeline/skills/.skills-index.json +23 -1
  45. package/pipeline/skills/shared/README.md +5 -3
  46. package/pipeline/skills/shared/core/multi-agent-review-priority/SKILL.md +3 -2
  47. package/pipeline/skills/shared/core/multi-agent-setup/SKILL.md +1 -1
  48. package/pipeline/skills/shared/core/multi-agent-update/SKILL.md +7 -7
  49. package/pipeline/skills/shared/external/release-video/SKILL.md +147 -0
  50. package/pipeline/skills/shared/external/release-video/evals/evals.json +45 -0
  51. package/pipeline/skills/shared/external/short-video-craft/SKILL.md +177 -0
  52. package/pipeline/skills/shared/external/short-video-craft/evals/evals.json +43 -0
  53. package/pipeline/skills/shared/external/short-video-craft/references/generated-defaults.md +24 -0
  54. package/pipeline/skills/skills-index.md +3 -1
@@ -2,8 +2,8 @@
2
2
  description: "Review a team's open Jira bug priorities against its rule file: read-only by default, one report per team, one approved change at a time. Use when checking bug priorities against the team's rules."
3
3
  disable-model-invocation: true
4
4
  description-tr: "Bir ekibin açık Jira bug'larının priority'sini ekibin kural dosyasına göre denetler: varsayılan olarak salt okur, ekip başına bir rapor yazar, her seferinde tek onaylı değişiklik yapar. Bug priority'lerini ekibin kurallarıyla karşılaştırmak için kullan."
5
- argument-hint: "[team slugs] [autopilot]"
6
- parameters: [{"name":"team","kind":"text"},{"name":"autopilot","kind":"flag"}]
5
+ argument-hint: "[team slugs] [preset=<id>] [autopilot]"
6
+ parameters: [{"name":"team","kind":"text"},{"name":"preset","kind":"text"},{"name":"autopilot","kind":"flag"}]
7
7
  gui: form
8
8
  destructive: false
9
9
  confirm: none
@@ -60,18 +60,23 @@ baseline when there is one, every team whose file parses, and every file that
60
60
  was skipped with its reason. With no team, say where the rules directory is,
61
61
  point at the example and the format doc, and end.
62
62
 
63
- Slugs given in the input are taken as they are. Otherwise ask in one
63
+ Slugs given in the input are taken as they are; a `preset=<id>` word is not
64
+ a slug (step 2 reads it). Otherwise ask in one
64
65
  `multiSelect` question, one option per team (its name, its rule count and its
65
66
  default preset). A single team is taken without a question; say which. An
66
67
  empty answer is asked again. Unattended: the slugs in the input, or all teams.
67
68
 
68
69
  ### 2. Pick the scope
69
70
 
70
- For each team, `node "$PR" presets --team <slug> --json`. One single-select
71
+ For each team, `node "$PR" presets --team <slug> --json`. When the input
72
+ carries `preset=<id>`, that preset is the scope for every team and the scope
73
+ question is not asked; an id a team's presets do not list stops that team
74
+ with the ids it does list. Otherwise one single-select
71
75
  question: the presets, "Last N days" (default preset plus `--days N`, then ask
72
76
  for N) and "My own JQL filter" (passed as `--jql`, added to the default
73
77
  preset). A second one for the cap: 25, 50, 100 or all (`--max 0`); 50 when
74
- unsure. Unattended: default preset, cap 50.
78
+ unsure. Unattended: the `preset=<id>` from the input or the default preset,
79
+ cap 50.
75
80
 
76
81
  ### 3. Fetch, reading only
77
82
 
@@ -49,7 +49,7 @@ Show one line per service with its key or `MISSING`, then the counts (`$HOME/.cl
49
49
 
50
50
  ### Step 2.7 - Operational reporting
51
51
 
52
- Ask whether the user has an operational-reporting token; proceed only on an explicit yes. On paste, store it in the credential store ONLY (never a file, prefs value, git or synced tree): `pbpaste | ~/.claude/lib/credential-store.sh set "${USER}_Usage_Ingest_Token" -` then `pbcopy < /dev/null`. Pasted or skipped, run `node "$HOME/.claude/scripts/usage-register.mjs" --json`. Ask only when that JSON line calls for it, nothing else: on `"refusal":"not_collaborator"` say in one line that the name is not a collaborator, ask once for the GitHub username again and re-run with `--login <name>` (a second refusal leaves reporting off); otherwise only on `"needsPersonalAccount":true`, which is false whenever the account is already known (a provable gh, credential-helper or SSH account, a stored `declaredLogin`, a pinned `registeredAs`), ask once for a GitHub username (Skip leaves reporting off) and re-run with `--login <name>`. What is sent: `$HOME/.claude/multi-agent-refs/features/usage-reporting.md`.
52
+ Ask whether the user has an operational-reporting token; proceed only on an explicit yes. On paste, store it in the credential store ONLY (never a file, prefs value, git or synced tree): `pbpaste | ~/.claude/lib/credential-store.sh set "${USER}_Usage_Ingest_Token" -` then `pbcopy < /dev/null`. Pasted or skipped, run `node "$HOME/.claude/scripts/usage-register.mjs" --json`. Ask only when that JSON line carries `"needsPersonalAccount":true`, nothing else; it is false whenever the account is already known (a provable gh, credential-helper or SSH account, a stored `declaredLogin`, a pinned `registeredAs`). Then ask once for a GitHub username (Skip leaves reporting off) and re-run with `--login <name>`. A `refusal` (`not_collaborator` or `proof_required`) only prints its status line: the site answers a declared name the same way whether or not it is a collaborator. What is sent: `$HOME/.claude/multi-agent-refs/features/usage-reporting.md`.
53
53
 
54
54
  The Jira project key and git identity are learned from use, never asked (`$HOME/.claude/multi-agent-refs/setup/accounts.md` "Auto-learned fields").
55
55
 
@@ -135,18 +135,16 @@ and every later block that needs them starts by sourcing it.
135
135
  never an error. Contract and the data it sends:
136
136
  `$HOME/.claude/multi-agent-refs/features/usage-reporting.md`.
137
137
 
138
- Ask a question only when the JSON line calls for one, and ask nothing else:
139
- - `"refusal":"not_collaborator"`: say in one line that the name is not a
140
- collaborator of the pipeline repository, ask once for the GitHub username
141
- again (Skip leaves reporting off) and run
142
- `node "$HOME/.claude/scripts/usage-register.mjs" --login <name> --json`.
143
- A second refusal ends it: reporting stays off, no further question.
144
- - otherwise, only when `"needsPersonalAccount":true`: ask once for the
145
- person's GitHub username (free text; Skip leaves reporting off) and run the
146
- same `--login <name> --json` call. The flag is false whenever the account
147
- is already known (a provable gh, credential-helper or SSH account, a stored
148
- `declaredLogin`, or a pinned `registeredAs`), so a known account is never
149
- asked for.
138
+ Ask a question only when the JSON line carries `"needsPersonalAccount":true`,
139
+ and ask nothing else. Then ask once for the person's GitHub username (free
140
+ text; Skip leaves reporting off) and run
141
+ `node "$HOME/.claude/scripts/usage-register.mjs" --login <name> --json`.
142
+ The flag is false whenever the account is already known (a provable gh,
143
+ credential-helper or SSH account, a stored `declaredLogin`, or a pinned
144
+ `registeredAs`), so a known account is never asked for. A `refusal`
145
+ (`not_collaborator` or `proof_required`) only prints its status line: the
146
+ site answers a declared name the same way whether or not it is a
147
+ collaborator, so typing the name again would change nothing.
150
148
 
151
149
  6. **Tell the user what the update brought.** Read the notes, then write the summary yourself:
152
150
  ```bash
@@ -3,6 +3,46 @@
3
3
  Versions of the client contract (`manifest.json` `contractVersion`), separate
4
4
  from the package version. See `README.md` for what counts as minor and major.
5
5
 
6
+ ## 1.12.0
7
+
8
+ Added. Nothing existing changes shape.
9
+
10
+ - `POST /v1/disk-clean` (local-only, high): the disk cleaner behind the
11
+ office's cleanup window. `{}` measures with `disk-cleaner.mjs --dry-run
12
+ --json` and both opt-ins, and returns no token. `{categories}` previews
13
+ exactly those categories, each one from the cleaner's own allow-list, and
14
+ returns a token bound to them; `trash` and `transcripts` also need
15
+ `trash: true` / `transcripts: true`. `{confirmToken}` applies the previewed
16
+ categories and nothing else. Each category carries `items`, `bytes`, `top`
17
+ (real paths), `more`, `kept` (per reason), `blocked`, `safe` and `optIn`;
18
+ the document carries `reclaimableBytes` and `disk.expectedFreeBytes`. An
19
+ unattended server measures its unattended set and refuses a preview and an
20
+ apply with the new error code `unattended-refused`.
21
+ - `GET /v1/jobs` (1.1.0): a job parameter may carry `choices` (where its
22
+ values are read on this machine), `dependsOn` and the filled `valuesFor`
23
+ (the allowed values per value of that parameter), and `prefix` (written
24
+ before the value in the command line). The new `review-priority` job uses
25
+ them: its teams are the rule files that parse and its presets follow the
26
+ team.
27
+
28
+ ## 1.11.0
29
+
30
+ Added. Nothing existing changes shape.
31
+
32
+ - `GET /v1/skills` (`skill-catalog.mjs --json [--repo <path>]`, local-only):
33
+ one list of everything a person can invoke. Each item carries `id`, `name`,
34
+ `invoke` (`/multi-agent:<name>` for a command or routine, `<plugin>:<skill>`
35
+ for a marketplace plugin skill), `kind` (`command`, `plugin-skill`,
36
+ `routine`), `source` (the plugin, `pipeline` or `local`), `description` and
37
+ `descriptionTr` from the SKILL.md frontmatter, `enabled`, `alwaysOn` and
38
+ `localOnly`. `repo` resolves the way `GET /v1/stack` resolves it and only
39
+ decides `enabled` for plugin skills (the repository's enabledPlugins plus
40
+ the always-on plugins); without it a plugin skill whose plugin is not always
41
+ on is `enabled: null`. A missing command tree, marketplace clone or routine
42
+ registry is an entry in `notes`, not an error. Routine text is scrubbed.
43
+ - `GET /v1/stack`: each plugin's `skills` now lists the skills in grouped
44
+ folders (`skills/<group>/<name>/SKILL.md`) as well as top-level ones.
45
+
6
46
  ## 1.10.0
7
47
 
8
48
  Added. Nothing existing changes shape.
@@ -119,7 +159,7 @@ Added. Nothing existing changes shape; one narrowing for browser pages.
119
159
  - `GET /v1/agents/{sessionId}/{agentId}/chat` (`activity-chat.schema.json`):
120
160
  one page of an agent's transcript, redacted; `before`, `limit`.
121
161
  - `POST /v1/autopilot/on` (two steps, `autopilot-on.schema.json`), `POST
122
- /v1/runs/{id}/steer` (two steps, `launch`/`high`: the text and a preview
162
+ /v1/runs/{id}/steer` (two steps, `launch`/`high`: the text and a preview
123
163
  with a token bound to the run and the text, then the token alone;
124
164
  `steer.schema.json`), `GET /v1/routines`, `DELETE /v1/routines/{name}` (two
125
165
  steps), `GET /v1/stack`, `POST /v1/stack` (two steps).
@@ -132,7 +172,7 @@ Added. Nothing existing changes shape; one narrowing for browser pages.
132
172
  artifacts, a worktree git lists) and only as Markdown or HTML.
133
173
  - `GET /v1/issues/{key}/maturity` (lib/issue-fetcher.sh), `GET /v1/prs`
134
174
  (GitHub; Bitbucket reported as not implemented), `POST
135
- /v1/runs/{id}/review-verdict` (two steps, lib/post-pr-review.sh; only for a
175
+ /v1/runs/{id}/review-verdict` (two steps, lib/post-pr-review.sh; only for a
136
176
  finished review with every finding triaged, 409 `review-incomplete`
137
177
  otherwise; the token is bound to the decision and `findingsDigest`, 409
138
178
  `confirm-mismatch` when they changed).
@@ -152,7 +192,7 @@ Added. Nothing existing changes shape; one narrowing for browser pages.
152
192
  - `GET /office`: the optional panel page, 404 when none is installed;
153
193
  `POST /office/code` and `POST /office/exchange` hand the page the token
154
194
  through a one-time 10 second code instead of a URL; `GET
155
- /office/assets/<name>.png` serves its sprites.
195
+ /office/assets/<name>.png` serves its sprites.
156
196
  - `--max-hours` (default 8): an absolute lifetime for the server.
157
197
  - `contract-error.schema.json`: `no-selection`, `repo-not-configured`,
158
198
  `invalid-config`, `not-installed`, `repo-ambiguous`, `unreadable-settings`,
@@ -4,14 +4,14 @@ What a client (the macOS toolbox, a web page, a script) needs to read the
4
4
  pipeline's state and start or answer a run without a terminal conversation.
5
5
  Nothing in here is a UI and nothing here runs on its own.
6
6
 
7
- | File | What it is |
8
- |------|------------|
9
- | `manifest.json` | Every surface: its CLI invocation, its HTTP route, its schema and version. |
10
- | `../schemas/*.schema.json` | The schemas. The kit points at them; it never copies them. |
11
- | `types/index.d.ts` | TypeScript declarations generated from those schemas by `build.mjs`. |
12
- | `fixtures/*.json` | Real producer output for every state a client renders, generated by `build.mjs`. |
13
- | `frozen/toolbox.json` | The fields the macOS toolbox decodes today, held by `test/toolbox-compat.test.mjs`. |
14
- | `CHANGELOG.md` | What changed in the contract, by contract version. |
7
+ | File | What it is |
8
+ | -------------------------- | ----------------------------------------------------------------------------------- |
9
+ | `manifest.json` | Every surface: its CLI invocation, its HTTP route, its schema and version. |
10
+ | `../schemas/*.schema.json` | The schemas. The kit points at them; it never copies them. |
11
+ | `types/index.d.ts` | TypeScript declarations generated from those schemas by `build.mjs`. |
12
+ | `fixtures/*.json` | Real producer output for every state a client renders, generated by `build.mjs`. |
13
+ | `frozen/toolbox.json` | The fields the macOS toolbox decodes today, held by `test/toolbox-compat.test.mjs`. |
14
+ | `CHANGELOG.md` | What changed in the contract, by contract version. |
15
15
 
16
16
  `node pipeline/contract/build.mjs --write` regenerates the types and fixtures;
17
17
  `--check` fails on drift. `npm pack` runs `--write` first, so a published kit
@@ -33,55 +33,57 @@ same bytes (`test/contract-parity.test.mjs`):
33
33
  or by the client itself. Routes are in `manifest.json`; `?redact=1` is
34
34
  `--redact`.
35
35
 
36
- | Surface | CLI | HTTP |
37
- |---------|-----|------|
38
- | Runs | `runs-index.mjs --json [--group G] [--redact]` | `GET /v1/runs` |
39
- | One run | `runs-index.mjs --json --task-id ID` | `GET /v1/runs/{id}` |
40
- | Commands | `commands.mjs --json` | `GET /v1/commands` |
41
- | Run questions | `launch-request.mjs questions` | `GET /v1/questions` |
42
- | Assigned issues | `issues.mjs --json [--source S] [--project K] [--max N]` | `GET /v1/issues` |
43
- | Worktrees | `worktrees.mjs --json [--measure] [--redact]` | `GET /v1/worktrees` |
44
- | Launch shape | `launch-request.mjs spec` | `GET /v1/launch-spec` |
45
- | Launch repositories | `launch-request.mjs repos [--redact] [--all]` | `GET /v1/repos[?all=1]` |
46
- | Add a launch repository (two steps; the route also requires a git checkout) | `launch-request.mjs register-repo <path>` | `POST /v1/repos` |
47
- | Remove a registered repository (two steps) | - | `DELETE /v1/repos/{id}` |
48
- | Office jobs | `job-launch.mjs list` | `GET /v1/jobs` |
49
- | Start an office job (two steps) | - | `POST /v1/jobs` |
50
- | Start a run | write the request file, then `launch-request.mjs plan FILE --repo P --session-id U [--channel phone]` | `POST /v1/launch?repo=P` |
51
- | Answer a question | `answer-question.mjs STATE --question Q --answer IDS` | `POST /v1/runs/{id}/answer` |
52
- | A run's log | `run-log.mjs ID [--tail N]` (1-2000, default 200) | `GET /v1/runs/{id}/log?tail=N` |
53
- | Resume a run | `launch-request.mjs resume --task-id ID --repo P --session-id U [--autopilot]` | `POST /v1/runs/{id}/resume` |
54
- | Kill a run (two steps) | `run-kill.mjs preview ID`, then `run-kill.mjs apply ID` | `POST /v1/runs/{id}/kill` |
55
- | Garbage-collect (two steps) | `gc-plan.mjs preview [--scope S,...]`, then `gc-plan.mjs apply < items` | `POST /v1/gc` |
56
- | Autopilot status | `autopilot-control.mjs status` | `GET /v1/autopilot` |
57
- | Autopilot off | `autopilot-control.mjs off [--now]` | `POST /v1/autopilot/off` |
58
- | Autopilot on (two steps) | `autopilot-control.mjs on-preview --repo R...`, then `on --repo R... [--configure-only]` | `POST /v1/autopilot/on` |
59
- | Steer a run (two steps on the server) | `steer-run.mjs STATE --text T` | `POST /v1/runs/{id}/steer` |
60
- | Agent activity | `activity-snapshot.mjs --json` | `GET /v1/activity`, `GET /v1/activity/stream` (SSE) |
61
- | An agent's chat | `activity-snapshot.mjs chat SESSION [AGENT] [--before N] [--limit N]` | `GET /v1/agents/{sessionId}/{agentId}/chat` |
62
- | Cost ledger | `office-ledger.mjs --json` | `GET /v1/ledger` |
63
- | Machine resources | `system-status.mjs --json` | `GET /v1/system` |
64
- | Key cabinet (names and verdicts, never values) | `office-credentials.mjs --json [--probe]` | `GET /v1/credentials` |
65
- | Institutional memory | `office-memory.mjs --json` | `GET /v1/memory` |
66
- | Server room: sessions, today per model, health lights (local only) | `office-server-room.mjs --json` | `GET /v1/server-room` |
67
- | Memory archive: decisions, security notes, learnings, graph report (local only) | `office-archive.mjs --json` | `GET /v1/archive` |
68
- | Prune old run logs (two steps) | `office-prune.mjs preview\|apply N --json` | `POST /v1/prune-logs` |
69
- | Office settings | `office-settings.mjs --json` | `GET /v1/settings` |
70
- | Change one setting (two steps) | `office-settings.mjs set SETTING VALUE --json` | `POST /v1/settings` |
71
- | What a run produced | `run-results.mjs ID --json` | `GET /v1/runs/{id}/results` |
72
- | One screenshot | `run-results.mjs ID --evidence NAME` | `GET /v1/runs/{id}/evidence/{name}` |
73
- | Post a review verdict (two steps) | `work-items.mjs verdict ID [--post]` | `POST /v1/runs/{id}/review-verdict` |
74
- | An issue's maturity | `work-items.mjs maturity KEY` | `GET /v1/issues/{key}/maturity` |
75
- | Open pull requests | `work-items.mjs prs` | `GET /v1/prs` |
76
- | How far each open pull request reaches in its repository's graph | `work-items.mjs reach` | `GET /v1/prs/reach` |
77
- | Toolkit MCP tools | `toolkit-tools.mjs list` | `GET /v1/tools` |
78
- | Call an allowed toolkit tool (read-only, no location argument) | `toolkit-tools.mjs call NAME JSON` | `POST /v1/tools/{name}/call` |
79
- | A Confluence page, a Crashlytics issue, a Figma frame | `service-read.mjs confluence\|crashlytics\|figma ...` | `GET /v1/services/{confluence,crashlytics,figma}` |
80
- | Pending host permission prompts | (none can be read yet) | `GET /v1/permissions` |
81
- | Routines | `routine-registry.mjs list --json` | `GET /v1/routines` |
82
- | Remove a routine (two steps) | `routine-registry.mjs remove --name N` | `DELETE /v1/routines/{name}` |
83
- | A repo's stacks | `stack-toggle.mjs status --repo P --json` | `GET /v1/stack?repo=R` |
84
- | Set a repo's stacks (two steps) | `stack-toggle.mjs set --repo P STACK... --json` | `POST /v1/stack` |
36
+ | Surface | CLI | HTTP |
37
+ | ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
38
+ | Runs | `runs-index.mjs --json [--group G] [--redact]` | `GET /v1/runs` |
39
+ | One run | `runs-index.mjs --json --task-id ID` | `GET /v1/runs/{id}` |
40
+ | Commands | `commands.mjs --json` | `GET /v1/commands` |
41
+ | Skill catalog: commands, plugin skills, routines (local only) | `skill-catalog.mjs --json [--repo P]` | `GET /v1/skills` |
42
+ | Run questions | `launch-request.mjs questions` | `GET /v1/questions` |
43
+ | Assigned issues | `issues.mjs --json [--source S] [--project K] [--max N]` | `GET /v1/issues` |
44
+ | Worktrees | `worktrees.mjs --json [--measure] [--redact]` | `GET /v1/worktrees` |
45
+ | Launch shape | `launch-request.mjs spec` | `GET /v1/launch-spec` |
46
+ | Launch repositories | `launch-request.mjs repos [--redact] [--all]` | `GET /v1/repos[?all=1]` |
47
+ | Add a launch repository (two steps; the route also requires a git checkout) | `launch-request.mjs register-repo <path>` | `POST /v1/repos` |
48
+ | Remove a registered repository (two steps) | - | `DELETE /v1/repos/{id}` |
49
+ | Office jobs | `job-launch.mjs list` | `GET /v1/jobs` |
50
+ | Start an office job (two steps) | - | `POST /v1/jobs` |
51
+ | Start a run | write the request file, then `launch-request.mjs plan FILE --repo P --session-id U [--channel phone]` | `POST /v1/launch?repo=P` |
52
+ | Answer a question | `answer-question.mjs STATE --question Q --answer IDS` | `POST /v1/runs/{id}/answer` |
53
+ | A run's log | `run-log.mjs ID [--tail N]` (1-2000, default 200) | `GET /v1/runs/{id}/log?tail=N` |
54
+ | Resume a run | `launch-request.mjs resume --task-id ID --repo P --session-id U [--autopilot]` | `POST /v1/runs/{id}/resume` |
55
+ | Kill a run (two steps) | `run-kill.mjs preview ID`, then `run-kill.mjs apply ID` | `POST /v1/runs/{id}/kill` |
56
+ | Garbage-collect (two steps) | `gc-plan.mjs preview [--scope S,...]`, then `gc-plan.mjs apply < items` | `POST /v1/gc` |
57
+ | Autopilot status | `autopilot-control.mjs status` | `GET /v1/autopilot` |
58
+ | Autopilot off | `autopilot-control.mjs off [--now]` | `POST /v1/autopilot/off` |
59
+ | Autopilot on (two steps) | `autopilot-control.mjs on-preview --repo R...`, then `on --repo R... [--configure-only]` | `POST /v1/autopilot/on` |
60
+ | Steer a run (two steps on the server) | `steer-run.mjs STATE --text T` | `POST /v1/runs/{id}/steer` |
61
+ | Agent activity | `activity-snapshot.mjs --json` | `GET /v1/activity`, `GET /v1/activity/stream` (SSE) |
62
+ | An agent's chat | `activity-snapshot.mjs chat SESSION [AGENT] [--before N] [--limit N]` | `GET /v1/agents/{sessionId}/{agentId}/chat` |
63
+ | Cost ledger | `office-ledger.mjs --json` | `GET /v1/ledger` |
64
+ | Machine resources | `system-status.mjs --json` | `GET /v1/system` |
65
+ | Key cabinet (names and verdicts, never values) | `office-credentials.mjs --json [--probe]` | `GET /v1/credentials` |
66
+ | Institutional memory | `office-memory.mjs --json` | `GET /v1/memory` |
67
+ | Server room: sessions, today per model, health lights (local only) | `office-server-room.mjs --json` | `GET /v1/server-room` |
68
+ | Memory archive: decisions, security notes, learnings, graph report (local only) | `office-archive.mjs --json` | `GET /v1/archive` |
69
+ | Prune old run logs (two steps) | `office-prune.mjs preview\|apply N --json` | `POST /v1/prune-logs` |
70
+ | Disk space: measure, then the ticked categories (two steps, local only) | `disk-cleaner.mjs --dry-run\|--apply --json [--only=ids]` | `POST /v1/disk-clean` |
71
+ | Office settings | `office-settings.mjs --json` | `GET /v1/settings` |
72
+ | Change one setting (two steps) | `office-settings.mjs set SETTING VALUE --json` | `POST /v1/settings` |
73
+ | What a run produced | `run-results.mjs ID --json` | `GET /v1/runs/{id}/results` |
74
+ | One screenshot | `run-results.mjs ID --evidence NAME` | `GET /v1/runs/{id}/evidence/{name}` |
75
+ | Post a review verdict (two steps) | `work-items.mjs verdict ID [--post]` | `POST /v1/runs/{id}/review-verdict` |
76
+ | An issue's maturity | `work-items.mjs maturity KEY` | `GET /v1/issues/{key}/maturity` |
77
+ | Open pull requests | `work-items.mjs prs` | `GET /v1/prs` |
78
+ | How far each open pull request reaches in its repository's graph | `work-items.mjs reach` | `GET /v1/prs/reach` |
79
+ | Toolkit MCP tools | `toolkit-tools.mjs list` | `GET /v1/tools` |
80
+ | Call an allowed toolkit tool (read-only, no location argument) | `toolkit-tools.mjs call NAME JSON` | `POST /v1/tools/{name}/call` |
81
+ | A Confluence page, a Crashlytics issue, a Figma frame | `service-read.mjs confluence\|crashlytics\|figma ...` | `GET /v1/services/{confluence,crashlytics,figma}` |
82
+ | Pending host permission prompts | (none can be read yet) | `GET /v1/permissions` |
83
+ | Routines | `routine-registry.mjs list --json` | `GET /v1/routines` |
84
+ | Remove a routine (two steps) | `routine-registry.mjs remove --name N` | `DELETE /v1/routines/{name}` |
85
+ | A repo's stacks | `stack-toggle.mjs status --repo P --json` | `GET /v1/stack?repo=R` |
86
+ | Set a repo's stacks (two steps) | `stack-toggle.mjs set --repo P STACK... --json` | `POST /v1/stack` |
85
87
 
86
88
  Every surface in `manifest.json` carries `remote` (the scope a remote carrier
87
89
  would require: `read`, `answer`, `launch`, or `local-only` for anything that
@@ -198,12 +200,12 @@ with `phone-devices.mjs add` and signs every request; `manifest.json` `phone`
198
200
  names the headers, the signed fields, the 60 second window and the scopes, and
199
201
  `phone-signed-request.schema.json` describes the signed text.
200
202
 
201
- | Surface | Scope | HTTP |
202
- |---------|-------|------|
203
- | Runs, redacted | `read` | `GET /v1/phone/runs` |
204
- | One run, redacted | `read` | `GET /v1/phone/runs/{id}` |
205
- | Answer a question | `answer` | `POST /v1/phone/runs/{id}/answer` |
206
- | Queue a launch (off until `phone-devices.mjs launch on`) | `launch` | `POST /v1/phone/launch?repo=P` |
203
+ | Surface | Scope | HTTP |
204
+ | -------------------------------------------------------- | -------- | --------------------------------- |
205
+ | Runs, redacted | `read` | `GET /v1/phone/runs` |
206
+ | One run, redacted | `read` | `GET /v1/phone/runs/{id}` |
207
+ | Answer a question | `answer` | `POST /v1/phone/runs/{id}/answer` |
208
+ | Queue a launch (off until `phone-devices.mjs launch on`) | `launch` | `POST /v1/phone/launch?repo=P` |
207
209
 
208
210
  The bearer token does not open these routes and a signature opens no other
209
211
  route. Responses are always redacted; `redact=0` is refused. There is no pause,
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.10.0",
2
+ "contractVersion": "1.12.0",
3
3
  "error": "invalid-request",
4
4
  "message": "the launch request was refused",
5
5
  "errors": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.10.0",
2
+ "contractVersion": "1.12.0",
3
3
  "error": "unauthorized",
4
4
  "message": "a bearer token is required"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.10.0",
2
+ "contractVersion": "1.12.0",
3
3
  "error": "unsigned",
4
4
  "message": "a device signature is required"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.10.0",
2
+ "contractVersion": "1.12.0",
3
3
  "supportedMajors": [1],
4
4
  "description": "The pipeline's client contract: every surface a client reads or writes, the CLI invocation and the HTTP route that carry it, and the schema its JSON follows. Schemas are not copied here; schemasDir points at the one tree the producers validate against. Paths in cli are relative to the pipeline directory (installed: ~/.claude).",
5
5
  "schemasDir": "../schemas",
@@ -54,6 +54,7 @@
54
54
  "schemas": [
55
55
  "runs-index.schema.json",
56
56
  "command-parameters.schema.json",
57
+ "skill-catalog.schema.json",
57
58
  "run-questions.schema.json",
58
59
  "issues.schema.json",
59
60
  "worktrees.schema.json",
@@ -98,6 +99,8 @@
98
99
  "office-archive.schema.json",
99
100
  "prune-logs.schema.json",
100
101
  "prune-logs-request.schema.json",
102
+ "disk-clean.schema.json",
103
+ "disk-clean-request.schema.json",
101
104
  "run-results.schema.json",
102
105
  "run-evidence.schema.json",
103
106
  "issue-maturity.schema.json",
@@ -148,6 +151,18 @@
148
151
  "remote": "read",
149
152
  "risk": "read"
150
153
  },
154
+ {
155
+ "id": "skills",
156
+ "method": "GET",
157
+ "path": "/v1/skills",
158
+ "query": ["repo"],
159
+ "cli": ["node", "scripts/skill-catalog.mjs", "--json", "[--repo <path>]"],
160
+ "schema": "skill-catalog.schema.json",
161
+ "version": "1.0.0",
162
+ "note": "Every /multi-agent command, marketplace plugin skill and saved routine with both frontmatter descriptions. repo is a name from GET /v1/repos or its path, and only decides which plugin skills are enabled. Local only: it names the routines and local-only commands kept on this machine.",
163
+ "remote": "local-only",
164
+ "risk": "read"
165
+ },
151
166
  {
152
167
  "id": "questions",
153
168
  "method": "GET",
@@ -553,8 +568,8 @@
553
568
  "query": [],
554
569
  "cli": ["node", "scripts/job-launch.mjs", "list"],
555
570
  "schema": "office-jobs.schema.json",
556
- "version": "1.0.0",
557
- "note": "The jobs the office can hand to someone: the command, the role that does it, team or solo, typed parameters and what it writes outside the machine; available is false when the command is not installed here.",
571
+ "version": "1.1.0",
572
+ "note": "The jobs the office can hand to someone: the command, the role that does it, team or solo, typed parameters and what it writes outside the machine; available is false when the command is not installed here. An enum with choices has its values read on this machine (review-priority: the teams whose rule file parses, and per team its presets in valuesFor).",
558
573
  "remote": "read",
559
574
  "risk": "read"
560
575
  },
@@ -565,7 +580,7 @@
565
580
  "query": [],
566
581
  "body": "job-request.schema.json",
567
582
  "schema": "job-change.schema.json",
568
- "version": "1.0.0",
583
+ "version": "1.1.0",
569
584
  "note": "Two steps: the preview names the role, repository, exact prompt and what the job writes; the confirmation re-checks that the repository is allowed and starts it with claude --bg under the unattended profile after the workspace trust, agent-guard registration and sandbox checks; claude's own output stays in the server's log. A team job is refused while a run is live in that repository. Never reachable from a phone.",
570
585
  "remote": "local-only",
571
586
  "risk": "high"
@@ -640,6 +655,28 @@
640
655
  "risk": "high",
641
656
  "note": "Two steps: the preview lists the task log folders older than 7, 30 or 90 days; the confirmation lists them again, refuses with 409 changed when they differ, and prunes only that list (prune-logs.sh --only-from). The audit trail, metrics and counters are never removed; a folder written in the last minutes and a run that can still be resumed are spared."
642
657
  },
658
+ {
659
+ "id": "disk-clean",
660
+ "method": "POST",
661
+ "path": "/v1/disk-clean",
662
+ "query": [],
663
+ "body": "disk-clean-request.schema.json",
664
+ "cli": [
665
+ "node",
666
+ "scripts/disk-cleaner.mjs",
667
+ "--dry-run|--apply",
668
+ "--json",
669
+ "--top=5",
670
+ "[--only=<ids>]",
671
+ "[--trash]",
672
+ "[--transcripts]"
673
+ ],
674
+ "schema": "disk-clean.schema.json",
675
+ "version": "1.0.0",
676
+ "remote": "local-only",
677
+ "risk": "high",
678
+ "note": "Three bodies. {} measures (the disk cleaner's dry run with both opt-ins, no token). {categories} previews exactly those categories, each from the cleaner's allow-list, and returns a token bound to them; trash and transcripts also need their own flag as true. {confirmToken} applies the previewed categories and nothing else. An unattended server measures its unattended set and refuses a preview and an apply with 409 unattended-refused. Paths are real paths on this machine."
679
+ },
643
680
  {
644
681
  "id": "settings",
645
682
  "method": "GET",