@agent-deck/cli 1.11.9 → 2.1.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 (76) hide show
  1. package/dist/agent-harness.d.ts +9 -2
  2. package/dist/agent-harness.d.ts.map +1 -1
  3. package/dist/agent-harness.js +90 -23
  4. package/dist/agent-harness.js.map +1 -1
  5. package/dist/codex-plugin.d.ts +27 -0
  6. package/dist/codex-plugin.d.ts.map +1 -1
  7. package/dist/codex-plugin.js +111 -6
  8. package/dist/codex-plugin.js.map +1 -1
  9. package/dist/daemon-logs.d.ts +1 -1
  10. package/dist/daemon-logs.d.ts.map +1 -1
  11. package/dist/daemon-logs.js +49 -1
  12. package/dist/daemon-logs.js.map +1 -1
  13. package/dist/index.d.ts +1 -0
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +97 -3
  16. package/dist/index.js.map +1 -1
  17. package/dist/mcp-bridge.d.ts +83 -1
  18. package/dist/mcp-bridge.d.ts.map +1 -1
  19. package/dist/mcp-bridge.js +252 -7
  20. package/dist/mcp-bridge.js.map +1 -1
  21. package/dist/mcp-config.d.ts +13 -1
  22. package/dist/mcp-config.d.ts.map +1 -1
  23. package/dist/mcp-config.js +49 -1
  24. package/dist/mcp-config.js.map +1 -1
  25. package/dist/muse-skills/agent-deck-playbooks/SKILL.md +24 -0
  26. package/dist/muse-skills/agent-deck-run/SKILL.md +69 -0
  27. package/dist/muse-skills/agent-deck-session/SKILL.md +59 -0
  28. package/dist/muse-skills/agent-deck-setup/SKILL.md +28 -0
  29. package/dist/muse-skills.d.ts +42 -0
  30. package/dist/muse-skills.d.ts.map +1 -0
  31. package/dist/muse-skills.js +149 -0
  32. package/dist/muse-skills.js.map +1 -0
  33. package/dist/run-adapter.d.ts +100 -0
  34. package/dist/run-adapter.d.ts.map +1 -0
  35. package/dist/run-adapter.js +73 -0
  36. package/dist/run-adapter.js.map +1 -0
  37. package/dist/run-claude.d.ts +41 -0
  38. package/dist/run-claude.d.ts.map +1 -0
  39. package/dist/run-claude.js +91 -0
  40. package/dist/run-claude.js.map +1 -0
  41. package/dist/run-codex.d.ts +75 -0
  42. package/dist/run-codex.d.ts.map +1 -0
  43. package/dist/run-codex.js +337 -0
  44. package/dist/run-codex.js.map +1 -0
  45. package/dist/run-cursor.d.ts +79 -0
  46. package/dist/run-cursor.d.ts.map +1 -0
  47. package/dist/run-cursor.js +455 -0
  48. package/dist/run-cursor.js.map +1 -0
  49. package/dist/run-detach.d.ts +36 -0
  50. package/dist/run-detach.d.ts.map +1 -0
  51. package/dist/run-detach.js +233 -0
  52. package/dist/run-detach.js.map +1 -0
  53. package/dist/run-muse.d.ts +127 -0
  54. package/dist/run-muse.d.ts.map +1 -0
  55. package/dist/run-muse.js +499 -0
  56. package/dist/run-muse.js.map +1 -0
  57. package/dist/run-status.d.ts +62 -0
  58. package/dist/run-status.d.ts.map +1 -0
  59. package/dist/run-status.js +552 -0
  60. package/dist/run-status.js.map +1 -0
  61. package/dist/run.d.ts +191 -0
  62. package/dist/run.d.ts.map +1 -0
  63. package/dist/run.js +680 -0
  64. package/dist/run.js.map +1 -0
  65. package/dist/setup.d.ts.map +1 -1
  66. package/dist/setup.js +51 -10
  67. package/dist/setup.js.map +1 -1
  68. package/dist/terminal-style.d.ts +9 -0
  69. package/dist/terminal-style.d.ts.map +1 -0
  70. package/dist/terminal-style.js +34 -0
  71. package/dist/terminal-style.js.map +1 -0
  72. package/dist/use.d.ts +1 -1
  73. package/dist/use.d.ts.map +1 -1
  74. package/dist/use.js +16 -15
  75. package/dist/use.js.map +1 -1
  76. package/package.json +5 -4
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-config.js","sourceRoot":"","sources":["../src/mcp-config.ts"],"names":[],"mappings":";;;;;;AAkBA,kCAEC;AAED,8CA2BC;AAMD,kDA0CC;AAGD,wEAMC;AAED,4CAcC;AAED,0DAYC;AAoCD,kEA+FC;AAED,gFAoDC;AAED,oCAgBC;AAED,oDAgBC;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C,QAAQ,EAAE,KAAK,CAAC;QACxC,cAAc,EAAE,2BAAmB;KACpC,CAAC;AACJ,CAAC;AAED,SAAgB,oBAAoB,CAClC,QAAiC,EACjC,KAA8B;IAE9B,MAAM,cAAc,GAAG,QAAQ,CAAC,UAAU,CAAC;IAC3C,MAAM,UAAU,GACd,cAAc,IAAI,OAAO,cAAc,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC;QACpF,CAAC,CAAC,EAAE,GAAI,cAA0C,EAAE;QACpD,CAAC,CAAC,EAAE,CAAC;IAET,UAAU,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC;IAEjC,OAAO;QACL,GAAG,QAAQ;QACX,UAAU;KACX,CAAC;AACJ,CAAC;AAED,SAAgB,aAAa,CAAC,QAAgB,EAAE,IAA6B;IAC3E,iBAAE,CAAC,SAAS,CAAC,mBAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1D,iBAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAC3E,CAAC"}
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: agent-deck-playbooks
3
+ description: Use when a task matches a bound-deck playbook trigger, or when the user corrects output produced from a playbook. Fetch playbooks; propose patches from corrections.
4
+ ---
5
+
6
+ # Agent Deck playbooks
7
+
8
+ 1. On task match: check `triggers` on `get_bound_deck`, then `get_playbook` before improvising. Playbook bodies live on the deck — do not mirror them into local skills.
9
+
10
+ <!-- Self-improvement blocks below are verbatim from GLOBAL_BODY in packages/cli/src/agent-harness.ts (NOT-427); keep in sync. -->
11
+
12
+ **When the user corrects your output** (the write trigger — no need to have called `get_playbook` earlier in the session):
13
+
14
+ **Update case** (a playbook covered this task): fix the output, then `get_playbook` and read `openPatches`. If an open proposal addresses the **same** lesson, pass its `id`(s) in `supersedes` and fold into one better `propose_playbook_patch` (do not file a sibling). If open patches are different problems, omit `supersedes`. Prefer one `add_item` to Gotchas/Checklist; include `evidence.user_feedback_excerpt` as a short verbatim quote of the correction.
15
+
16
+ **Genesis case** (no playbook covered the task): before ending, `propose_playbook_patch { kind: "create", new_playbook: { title, triggers, body with one gotcha } }` — a few lines is the right size.
17
+
18
+ **Defer when unsure** (`kind: "signal_only"`): if the correction is plausible but not yet clearly generalizable (edge case, one-off, or needs sibling corrections before the lesson is clear), call `propose_playbook_patch { kind: "signal_only", evidence, rationale }` — logs the signal with no patch proposal. Prefer immediate `update`/`create` when the lesson is clear.
19
+
20
+ **Curate from a pasted dashboard prompt:** when the user pastes a curation prompt from the Feedback table (`/feedback-signals` → Copy for agent; Markdown + YAML list, each row leads with `id`), group the signals, then `propose_playbook_patch` with consolidated ops and `signal_ids` of every consumed id. That links rows (still open) until the patch is accepted. Do not invent a list-feedback MCP tool — browse/discard is dashboard-only.
21
+
22
+ 2. **Explicit user-directed playbook edits** ("fix the playbook to say X"): direct `update_playbook` is dashboard-only — use `propose_playbook_patch` with `rewrite_body` unless they will apply the edit in the dashboard themselves.
23
+
24
+ 3. Tell the user in one line that a proposal was filed (or a signal was logged for later dashboard curation); review happens in the dashboard.
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: agent-deck-run
3
+ description: Use when delegating a task to a local coding session on a named deck: brief it, launch it detached with agent-deck run, monitor it, review the result against the goal, and resume it with feedback until done.
4
+ ---
5
+
6
+ # Agent Deck run (orchestrator)
7
+
8
+ You are the caller of a session, not the session. Follow the five steps below.
9
+
10
+ ## Prerequisite
11
+
12
+ You must be able to run shell commands on the machine where the coding tool is signed in; otherwise stop and tell the human you cannot use this skill.
13
+
14
+ ## 1. Write the brief
15
+
16
+ Write the brief to a file. It must state the goal, the constraints, the definition of done, what the session must not do, and the tool profile the brief owner chose. Never put secrets in the brief.
17
+
18
+ ## 2. Launch detached
19
+
20
+ The user names the deck; the brief owner picks the tool profile: `readonly` for research, planning, and review, `edit` for coding work. When the brief owner has not said, the default is `readonly`.
21
+
22
+ ```sh
23
+ agent-deck run <deck> --client <client> --cwd <dir> --prompt-file <brief-file> --tools readonly --detach
24
+ ```
25
+
26
+ Supported `--client` values are `claude`, `codex`, `cursor`, `muse`; `agent-deck run --help` lists the clients. The examples use `claude`; substitute your client. Read the `runId`, pid, and log path from the `run <runId> detached: pid <pid> log <path>` line. If the launch fails closed on a deck binding mismatch, stop and report to the human instead of rebinding.
27
+
28
+ For per-client flags, resume ids, tool mappings, and trust behavior, see [docs/DELEGATION.md](../../docs/DELEGATION.md).
29
+
30
+ ## 3. Monitor
31
+
32
+ Poll until the state leaves `running`. Suggested poll interval: 30 seconds (unconfirmed — no measured run durations yet; NOT-429 operator runs will justify the value against `run status --json` durations).
33
+
34
+ ```sh
35
+ agent-deck run status <runId>
36
+ agent-deck run status <runId> --json
37
+ agent-deck run log <runId> --follow
38
+ agent-deck run log <runId> --tail 50
39
+ agent-deck run list
40
+ ```
41
+
42
+ Read the `state` field (`running|ended|error|died`), the `sessionId`, and the log path. Stop rule: on `died` or `error`, stop polling, read the tail of the log for the failure, and report to the human.
43
+
44
+ ## 4. Review
45
+
46
+ Judge the session's output against the goal and definition of done from step 1, not against the session's own summary. If it meets the goal, report to the human and stop.
47
+
48
+ ## 5. Resume with feedback
49
+
50
+ Resume the same session with a feedback brief that quotes the gap found in step 4. Pass `--tools` again with the same profile: the profile is not inherited on resume.
51
+
52
+ ```sh
53
+ agent-deck run <deck> --client <client> --cwd <dir> --prompt-file <feedback-file> --tools readonly --resume <sessionId> --detach
54
+ ```
55
+
56
+ Repeat steps 3-5 until the goal is met or a round cap is hit (placeholder: 3 feedback rounds, unconfirmed — awaiting owner confirmation per NOT-429), then report to the human.
57
+
58
+ ### Corrections from a delegated run
59
+ - The party that observed and made the correction files it: the orchestrator files `propose_playbook_patch` on its own bound deck <TBD: owner confirms who files>; the delegated session files only when a human corrects it directly.
60
+ - Evidence quotes the review gap as `user_feedback_excerpt` plus `runId`, `sessionId`, tool profile, and log path; no secrets in evidence.
61
+ - Clearly general lesson: `update` with `add_item` (or `create` when no playbook covers it); not yet general: `signal_only`.
62
+ - Cross-deck: `create`/`signal_only` land on the caller's bound deck and `get_playbook` reads only that deck (`packages/backend/src/mcp-tools/register.ts:758`, `packages/backend/src/routes/playbooks.ts:185`), so for a playbook on another deck file `signal_only` with the ids above.
63
+
64
+ ## Hard rules
65
+
66
+ - Never pick or change the deck on your own; the user names it.
67
+ - Never raise the tool profile from `readonly` to `edit` on your own; only the brief owner does.
68
+ - No secrets in briefs or logs.
69
+ - Report the `runId`, `sessionId`, tool profile, and log path back to the human.
@@ -0,0 +1,59 @@
1
+ ---
2
+ name: agent-deck-session
3
+ description: Use at session start when Agent Deck MCP is configured or expected, including launch-selected sessions, or when the user asks for the deck status line / which deck is active.
4
+ ---
5
+
6
+ # Agent Deck session opener
7
+
8
+ This skill verifies an MCP connection; it does not create one. In Codex, the Agent Deck
9
+ plugin's `.mcp.json` must already have launched `agent-deck mcp-launch`. The launcher reads
10
+ the folder's v3 assignment and sends the deck/workspace headers before these tools exist.
11
+
12
+ When Agent Deck MCP is configured for the current session, or `.agent-deck/use.json` indicates
13
+ that it is expected, this opener is a hard gate. The file is only one optional signal; the
14
+ gate also includes launch-selected sessions that deliberately have no assignment file.
15
+ Complete the opener before reading repository files, running task commands, or answering the
16
+ task. Once per conversation (or after the selected deck changes):
17
+
18
+ 1. `get_session_context` — one call returns the workspace, effective deck,
19
+ `display_summary`, services, credential metadata, and playbook summaries
20
+ 2. Show the session binding as **exactly one transcript line** rendering
21
+ `display_summary` verbatim (e.g. `◆ dev · 2 MCP · 0 keys · 1 playbooks`).
22
+ `display_summary` is the one source string for this canonical session
23
+ receipt: do not reconstruct the deck name, counts, badge, or the
24
+ `session (default …)` override suffix — print the suffix exactly as
25
+ returned when the session deck differs from the workspace default. This
26
+ transcript receipt is the authoritative binding record for the session;
27
+ workspace badges and terminal status lines are optional secondary context
28
+ and never override it.
29
+ 3. Match the task against the returned playbook triggers. For every match, use the
30
+ `agent-deck-playbooks` skill and call `get_playbook` before taking task action.
31
+ 4. Read the returned `operatingInstructions` (`''` when the deck sets none) and
32
+ follow the non-empty instructions for this session's deck only.
33
+
34
+ Deck instructions never override platform safety, developer/user instructions, or
35
+ authorization boundaries, and never enable extra tools; on any conflict the
36
+ higher-priority instruction wins, so report the conflict instead of complying. MCP
37
+ initialize-time server instructions are a bootstrap hint only and never update after
38
+ a hot switch — `get_session_context` is the authoritative live value. After a
39
+ confirmed deck change, call `get_session_context` once before more task work and
40
+ follow only the new deck's instructions; the previous deck's instructions stop
41
+ applying immediately. No reconnect is needed after a switch.
42
+
43
+ If the Agent Deck tools are unavailable, disconnected, return `GRANT_REQUIRED`, or the
44
+ required call fails, stop and report the connection problem. Do not inspect the repository,
45
+ improvise from memory, or silently fall back to another route. Before the gate passes,
46
+ checking for the optional assignment signal, checking whether Agent Deck is configured, and
47
+ other read-only diagnostics needed to restore the connection are allowed.
48
+
49
+ Give the operator recovery for the failed layer:
50
+
51
+ - **Transport unavailable:** run `agent-deck status`. In Codex, verify the Agent Deck plugin
52
+ is installed, enabled, and current, then reload or start a new task so its `.mcp.json`
53
+ launches `agent-deck mcp-launch`. `agent-deck setup --client codex` installs or refreshes
54
+ the AGENTS.md guidance only; it does not install or repair the plugin transport.
55
+ - **Assignment missing or legacy:** run `agent-deck use <deck>` in the IDE folder, then reload
56
+ or retry the MCP connection.
57
+ - **Unattended launch:** fix `x-agent-deck-deck-id` / the launch configuration.
58
+
59
+ Do not repeat the receipt on later turns when the binding is unchanged. A confirmed binding change allows exactly one new receipt line.
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: agent-deck-setup
3
+ description: Use when setting up Agent Deck, the MCP is disconnected, or the local daemon is down. Guides install/start with read-only checks; the user runs install commands.
4
+ ---
5
+
6
+ # Agent Deck setup
7
+
8
+ Treat setup as three separate layers: daemon health, host transport, then folder assignment.
9
+
10
+ 1. Run `agent-deck status` and check `http://127.0.0.1:1110/health` (or `<mcp-url>/health`
11
+ from `.agent-deck/use.json` if present).
12
+ 2. If the daemon is down, tell the user to run:
13
+ - `npm i -g agent-deck`
14
+ - `agent-deck start --daemon`
15
+ 3. If the daemon is healthy but MCP tools are unavailable, repair the host transport:
16
+ - **Codex:** verify the Agent Deck plugin is installed, enabled, and current. Its bundled
17
+ `.mcp.json` must run `agent-deck mcp-launch`; reload or start a new task after changing
18
+ the plugin. Run `agent-deck setup --client codex` to merge the Agent Deck bootstrap
19
+ guidance into `~/.codex/AGENTS.md` (or add `--scope project` for `./AGENTS.md`). This
20
+ command preserves content outside Agent Deck's markers and does not install the plugin.
21
+ - **Cursor / Claude:** run `agent-deck setup --client cursor|claude --start`, then restart
22
+ that host.
23
+ 4. Check the folder assignment reported by `agent-deck status`. If it is missing or legacy,
24
+ tell the user to run `agent-deck use <deck>` in that folder, then reload or retry MCP.
25
+ 5. Once transport and assignment are valid, use the session skill and require
26
+ `get_session_binding` followed by `get_bound_deck`.
27
+ 6. Do not invent credentials, ports, or shell install pipelines. Keep guidance read-only;
28
+ the user executes install and setup commands.
@@ -0,0 +1,42 @@
1
+ export declare const MUSE_SKILL_IDS: readonly ["agent-deck-session", "agent-deck-playbooks", "agent-deck-setup", "agent-deck-run"];
2
+ export type MuseSkillId = (typeof MUSE_SKILL_IDS)[number];
3
+ /** Footer stamp distinguishing Agent Deck-managed skills from user collisions. */
4
+ export declare const MUSE_MANAGED_SKILL_MARKER = "<!-- agent-deck:managed-skill -->";
5
+ export declare function resolveMuseSkillsDir(home?: string): string;
6
+ export declare function resolveMuseSkillFile(skillId: MuseSkillId, home?: string): string;
7
+ /**
8
+ * Packaged skill resource. Built CLI reads dist/muse-skills (copied from the
9
+ * canonical root skills/ by scripts/copy-muse-skills.mjs); dev/test falls back
10
+ * to the repo root skills/ tree.
11
+ */
12
+ export declare function resolveMuseSkillResourcePath(skillId: MuseSkillId): string | null;
13
+ export declare function readMuseSkillTemplate(skillId: MuseSkillId): string;
14
+ export declare function buildMuseManagedSkillContent(template: string): string;
15
+ export declare function isMuseManagedSkillContent(content: string): boolean;
16
+ export type MuseSkillFileAction = 'created' | 'updated' | 'unchanged';
17
+ export type MuseSkillInstallResult = {
18
+ ok: true;
19
+ dir: string;
20
+ actions: Record<MuseSkillId, MuseSkillFileAction>;
21
+ paths: Record<MuseSkillId, string>;
22
+ message: string;
23
+ } | {
24
+ ok: false;
25
+ collisionPath: string;
26
+ skillId: MuseSkillId;
27
+ error: string;
28
+ };
29
+ export declare function installMuseSkills(): MuseSkillInstallResult;
30
+ export type MuseSkillFileStatus = 'current' | 'missing' | 'stale' | 'collision';
31
+ export interface MuseSkillDiagnosis {
32
+ skillId: MuseSkillId;
33
+ path: string;
34
+ status: MuseSkillFileStatus;
35
+ }
36
+ /** Read-only per-skill freshness. Never writes. */
37
+ export declare function diagnoseMuseSkills(): MuseSkillDiagnosis[];
38
+ export declare function summarizeMuseSkillsDiagnosis(diagnoses?: MuseSkillDiagnosis[]): {
39
+ status: 'current' | 'missing' | 'stale';
40
+ path: string;
41
+ };
42
+ //# sourceMappingURL=muse-skills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"muse-skills.d.ts","sourceRoot":"","sources":["../src/muse-skills.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,+FAKjB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,kFAAkF;AAClF,eAAO,MAAM,yBAAyB,sCAAsC,CAAC;AAE7E,wBAAgB,oBAAoB,CAAC,IAAI,GAAE,MAAqB,GAAG,MAAM,CAExE;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,WAAW,EACpB,IAAI,GAAE,MAAqB,GAC1B,MAAM,CAER;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,GA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? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.MUSE_MANAGED_SKILL_MARKER = exports.MUSE_SKILL_IDS = void 0;
7
+ exports.resolveMuseSkillsDir = resolveMuseSkillsDir;
8
+ exports.resolveMuseSkillFile = resolveMuseSkillFile;
9
+ exports.resolveMuseSkillResourcePath = resolveMuseSkillResourcePath;
10
+ exports.readMuseSkillTemplate = readMuseSkillTemplate;
11
+ exports.buildMuseManagedSkillContent = buildMuseManagedSkillContent;
12
+ exports.isMuseManagedSkillContent = isMuseManagedSkillContent;
13
+ exports.installMuseSkills = installMuseSkills;
14
+ exports.diagnoseMuseSkills = diagnoseMuseSkills;
15
+ exports.summarizeMuseSkillsDiagnosis = summarizeMuseSkillsDiagnosis;
16
+ const node_fs_1 = __importDefault(require("node:fs"));
17
+ const node_os_1 = __importDefault(require("node:os"));
18
+ const node_path_1 = __importDefault(require("node:path"));
19
+ const mcp_config_1 = require("./mcp-config");
20
+ exports.MUSE_SKILL_IDS = [
21
+ 'agent-deck-session',
22
+ 'agent-deck-playbooks',
23
+ 'agent-deck-setup',
24
+ 'agent-deck-run',
25
+ ];
26
+ /** Footer stamp distinguishing Agent Deck-managed skills from user collisions. */
27
+ exports.MUSE_MANAGED_SKILL_MARKER = '<!-- agent-deck:managed-skill -->';
28
+ function resolveMuseSkillsDir(home = node_os_1.default.homedir()) {
29
+ return node_path_1.default.join((0, mcp_config_1.resolveMuseGlobalConfigDir)(home), 'muse', 'skills');
30
+ }
31
+ function resolveMuseSkillFile(skillId, home = node_os_1.default.homedir()) {
32
+ return node_path_1.default.join(resolveMuseSkillsDir(home), skillId, 'SKILL.md');
33
+ }
34
+ /**
35
+ * Packaged skill resource. Built CLI reads dist/muse-skills (copied from the
36
+ * canonical root skills/ by scripts/copy-muse-skills.mjs); dev/test falls back
37
+ * to the repo root skills/ tree.
38
+ */
39
+ function resolveMuseSkillResourcePath(skillId) {
40
+ const candidates = [
41
+ node_path_1.default.join(__dirname, 'muse-skills', skillId, 'SKILL.md'),
42
+ node_path_1.default.join(__dirname, '..', '..', '..', 'skills', skillId, 'SKILL.md'),
43
+ ];
44
+ for (const candidate of candidates) {
45
+ if (node_fs_1.default.existsSync(candidate)) {
46
+ return candidate;
47
+ }
48
+ }
49
+ return null;
50
+ }
51
+ function readMuseSkillTemplate(skillId) {
52
+ const resource = resolveMuseSkillResourcePath(skillId);
53
+ if (!resource) {
54
+ throw new Error(`Muse skill resource missing for ${skillId} (expected dist/muse-skills/${skillId}/SKILL.md from skills/${skillId}/SKILL.md; rebuild the CLI)`);
55
+ }
56
+ return node_fs_1.default.readFileSync(resource, 'utf8');
57
+ }
58
+ function buildMuseManagedSkillContent(template) {
59
+ const body = template.endsWith('\n') ? template : `${template}\n`;
60
+ const separator = body.endsWith('\n\n') ? '' : '\n';
61
+ return `${body}${separator}${exports.MUSE_MANAGED_SKILL_MARKER}\n`;
62
+ }
63
+ function isMuseManagedSkillContent(content) {
64
+ return content.includes(exports.MUSE_MANAGED_SKILL_MARKER);
65
+ }
66
+ function installMuseSkills() {
67
+ const dir = resolveMuseSkillsDir();
68
+ const expected = new Map();
69
+ for (const skillId of exports.MUSE_SKILL_IDS) {
70
+ expected.set(skillId, buildMuseManagedSkillContent(readMuseSkillTemplate(skillId)));
71
+ }
72
+ // Collision pre-check before any write: a same-name user-authored skill
73
+ // (no managed stamp) must never be overwritten, and no sibling may be
74
+ // partially written when one collides.
75
+ for (const skillId of exports.MUSE_SKILL_IDS) {
76
+ const skillPath = node_path_1.default.join(dir, skillId, 'SKILL.md');
77
+ if (node_fs_1.default.existsSync(skillPath)) {
78
+ const existing = node_fs_1.default.readFileSync(skillPath, 'utf8');
79
+ if (existing !== expected.get(skillId) && !isMuseManagedSkillContent(existing)) {
80
+ return {
81
+ ok: false,
82
+ collisionPath: skillPath,
83
+ skillId,
84
+ error: `Muse skill collision: ${skillPath} exists and is not Agent Deck-managed. ` +
85
+ `Move it aside or delete it, then re-run \`agent-deck setup --client muse\`. No skills were changed.`,
86
+ };
87
+ }
88
+ }
89
+ }
90
+ const actions = {};
91
+ const paths = {};
92
+ for (const skillId of exports.MUSE_SKILL_IDS) {
93
+ const skillPath = node_path_1.default.join(dir, skillId, 'SKILL.md');
94
+ paths[skillId] = skillPath;
95
+ const want = expected.get(skillId);
96
+ if (!node_fs_1.default.existsSync(skillPath)) {
97
+ node_fs_1.default.mkdirSync(node_path_1.default.dirname(skillPath), { recursive: true });
98
+ node_fs_1.default.writeFileSync(skillPath, want, 'utf8');
99
+ actions[skillId] = 'created';
100
+ continue;
101
+ }
102
+ const existing = node_fs_1.default.readFileSync(skillPath, 'utf8');
103
+ if (existing === want) {
104
+ actions[skillId] = 'unchanged';
105
+ continue;
106
+ }
107
+ // Managed but stale (pre-check ruled out user-authored content).
108
+ node_fs_1.default.writeFileSync(skillPath, want, 'utf8');
109
+ actions[skillId] = 'updated';
110
+ }
111
+ const values = exports.MUSE_SKILL_IDS.map((id) => actions[id]);
112
+ const summary = values.every((action) => action === 'unchanged')
113
+ ? `Muse skills already current → ${dir}`
114
+ : `Installed Muse skills → ${dir} (${exports.MUSE_SKILL_IDS.map((id) => `${id}:${actions[id]}`).join(', ')})`;
115
+ return { ok: true, dir, actions, paths, message: summary };
116
+ }
117
+ /** Read-only per-skill freshness. Never writes. */
118
+ function diagnoseMuseSkills() {
119
+ const dir = resolveMuseSkillsDir();
120
+ return exports.MUSE_SKILL_IDS.map((skillId) => {
121
+ const skillPath = node_path_1.default.join(dir, skillId, 'SKILL.md');
122
+ if (!node_fs_1.default.existsSync(skillPath)) {
123
+ return { skillId, path: skillPath, status: 'missing' };
124
+ }
125
+ const expected = buildMuseManagedSkillContent(readMuseSkillTemplate(skillId));
126
+ const existing = node_fs_1.default.readFileSync(skillPath, 'utf8');
127
+ if (existing === expected) {
128
+ return { skillId, path: skillPath, status: 'current' };
129
+ }
130
+ return {
131
+ skillId,
132
+ path: skillPath,
133
+ status: isMuseManagedSkillContent(existing) ? 'stale' : 'collision',
134
+ };
135
+ });
136
+ }
137
+ function summarizeMuseSkillsDiagnosis(diagnoses = diagnoseMuseSkills()) {
138
+ const dir = resolveMuseSkillsDir();
139
+ const missing = diagnoses.find((diagnosis) => diagnosis.status === 'missing');
140
+ if (missing) {
141
+ return { status: 'missing', path: missing.path };
142
+ }
143
+ const stale = diagnoses.find((diagnosis) => diagnosis.status === 'stale' || diagnosis.status === 'collision');
144
+ if (stale) {
145
+ return { status: 'stale', path: stale.path };
146
+ }
147
+ return { status: 'current', path: dir };
148
+ }
149
+ //# sourceMappingURL=muse-skills.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"muse-skills.js","sourceRoot":"","sources":["../src/muse-skills.ts"],"names":[],"mappings":";;;;;;AAkBA,oDAEC;AAED,oDAKC;AAOD,oEAWC;AAED,sDAQC;AAED,oEAIC;AAED,8DAEC;AAmBD,8CAsDC;AAWD,gDAkBC;AAED,oEAeC;AAxLD,sDAAyB;AACzB,sDAAyB;AACzB,0DAA6B;AAE7B,6CAA0D;AAE7C,QAAA,cAAc,GAAG;IAC5B,oBAAoB;IACpB,sBAAsB;IACtB,kBAAkB;IAClB,gBAAgB;CACR,CAAC;AAIX,kFAAkF;AACrE,QAAA,yBAAyB,GAAG,mCAAmC,CAAC;AAE7E,SAAgB,oBAAoB,CAAC,OAAe,iBAAE,CAAC,OAAO,EAAE;IAC9D,OAAO,mBAAI,CAAC,IAAI,CAAC,IAAA,uCAA0B,EAAC,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;AACvE,CAAC;AAED,SAAgB,oBAAoB,CAClC,OAAoB,EACpB,OAAe,iBAAE,CAAC,OAAO,EAAE;IAE3B,OAAO,mBAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;AACpE,CAAC;AAED;;;;GAIG;AACH,SAAgB,4BAA4B,CAAC,OAAoB;IAC/D,MAAM,UAAU,GAAG;QACjB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SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,KAAK,OAAO,IAAI,SAAS,CAAC,MAAM,KAAK,WAAW,CAChF,CAAC;IACF,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;IAC/C,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;AAC1C,CAAC"}
@@ -0,0 +1,100 @@
1
+ /**
2
+ * Client adapters for `agent-deck run` (NOT-404).
3
+ *
4
+ * All client-specific launching lives behind {@link ClientAdapter}; the run,
5
+ * log, and status code only sees normalized events. New clients plug in by
6
+ * adding an adapter plus a registry entry — no changes to run.ts are needed.
7
+ *
8
+ * Tool profiles (`readonly`/`edit`) and meta.json stay owned by the shared run
9
+ * code: adapters receive the profile name and map it to client flags.
10
+ */
11
+ /** Read-only profile: exactly the botmancers prototype allowlist. */
12
+ export declare const RUN_READONLY_TOOLS: readonly string[];
13
+ /**
14
+ * Edit profile: readonly plus file writes and git-scoped Bash. No `git push`,
15
+ * no unscoped `Bash`, no network tools. One-line reason per git entry:
16
+ * - `git diff` reviews local changes before staging or committing;
17
+ * - `git add` stages the files the session created or edited;
18
+ * - `git commit` records the work as a commit for handoff;
19
+ * - `git checkout -b` starts delegated work on a fresh branch.
20
+ */
21
+ export declare const RUN_EDIT_TOOLS: readonly string[];
22
+ /** Both profiles run with `acceptEdits`; `bypassPermissions` is never used. */
23
+ export declare const RUN_PERMISSION_MODE = "acceptEdits";
24
+ /** Setting sources copied from the prototype. */
25
+ export declare const RUN_SETTING_SOURCES: readonly string[];
26
+ export declare const RUN_TOOL_PROFILES: readonly ["readonly", "edit"];
27
+ export type RunToolsProfile = (typeof RUN_TOOL_PROFILES)[number];
28
+ export declare function allowedToolsForProfile(profile: RunToolsProfile): readonly string[];
29
+ /** Clients with a working adapter. */
30
+ export declare const RUN_SUPPORTED_CLIENTS: readonly ["claude", "codex", "cursor", "muse"];
31
+ export type RunClient = (typeof RUN_SUPPORTED_CLIENTS)[number];
32
+ /** Clients with a ticket but no adapter yet (separate tickets, blocked by NOT-404). */
33
+ export declare const RUN_FUTURE_CLIENTS: readonly [];
34
+ export declare function isSupportedRunClient(value: string): value is RunClient;
35
+ export declare function isFutureRunClient(value: string): boolean;
36
+ export declare function missingRunClientMessage(): string;
37
+ export declare function runClientMessage(client: string): string;
38
+ /**
39
+ * Normalized session event. Adapters map client-specific streams onto this
40
+ * envelope; only the envelope is shared (text/tool names stay client-native).
41
+ * `sessionId` carries the client session id (Claude session id, Codex
42
+ * thread id) whenever the adapter learns it.
43
+ */
44
+ export type NormalizedEvent = {
45
+ kind: 'text';
46
+ text: string;
47
+ sessionId?: string;
48
+ } | {
49
+ kind: 'tool';
50
+ name: string;
51
+ sessionId?: string;
52
+ } | {
53
+ kind: 'result';
54
+ subtype: string;
55
+ result: unknown;
56
+ sessionId?: string;
57
+ } | {
58
+ kind: 'notice';
59
+ message: string;
60
+ sessionId?: string;
61
+ };
62
+ export type AdapterStartArgs = {
63
+ cwd: string;
64
+ prompt: string;
65
+ tools: RunToolsProfile;
66
+ resumeId?: string;
67
+ };
68
+ export type AdapterPreflight = {
69
+ ok: true;
70
+ } | {
71
+ ok: false;
72
+ remedy: string;
73
+ };
74
+ /**
75
+ * Pure start plan, computed before any model call. `trustOverride` records
76
+ * whether the launch bypasses a client workspace-trust guard (Codex
77
+ * `--skip-git-repo-check`); `{ ok: false }` fails closed with a remedy and
78
+ * the run exits before spawning anything.
79
+ */
80
+ export type AdapterStartPlan = {
81
+ ok: true;
82
+ trustOverride: boolean;
83
+ } | {
84
+ ok: false;
85
+ remedy: string;
86
+ };
87
+ export type ClientAdapter = {
88
+ readonly id: RunClient;
89
+ /** Binary/auth checks. Must make no model call and spawn no session. */
90
+ preflight(): Promise<AdapterPreflight>;
91
+ /** Pure per-start plan (sandbox mapping, trust decision, fail-closed gates). */
92
+ planStart(args: AdapterStartArgs): AdapterStartPlan;
93
+ /**
94
+ * Stream normalized events for one session. Rejects (or the iterator
95
+ * throws) when the client process fails, so the shared run code marks the
96
+ * run `error`. A stream that ends without a `result` event is also `error`.
97
+ */
98
+ start(args: AdapterStartArgs): AsyncIterable<NormalizedEvent>;
99
+ };
100
+ //# sourceMappingURL=run-adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-adapter.d.ts","sourceRoot":"","sources":["../src/run-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,qEAAqE;AACrE,eAAO,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAQ/C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,MAAM,EAQ3C,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AAEjD,iDAAiD;AACjD,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAAwB,CAAC;AAE1E,eAAO,MAAM,iBAAiB,+BAAgC,CAAC;AAC/D,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjE,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,MAAM,EAAE,CAElF;AAED,sCAAsC;AACtC,eAAO,MAAM,qBAAqB,gDAAiD,CAAC;AACpF,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,uFAAuF;AACvF,eAAO,MAAM,kBAAkB,aAAc,CAAC;AAE9C,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAEtE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED,wBAAgB,gBAAgB,CAAC,MAAM,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I,EAAE,gBAAgB,GAAG,gBAAgB,CAAC;IACpD;;;;OAIG;IACH,KAAK,CAAC,IAAI,EAAE,gBAAgB,GAAG,aAAa,CAAC,eAAe,CAAC,CAAC;CAC/D,CAAC"}
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ /**
3
+ * Client adapters for `agent-deck run` (NOT-404).
4
+ *
5
+ * All client-specific launching lives behind {@link ClientAdapter}; the run,
6
+ * log, and status code only sees normalized events. New clients plug in by
7
+ * adding an adapter plus a registry entry — no changes to run.ts are needed.
8
+ *
9
+ * Tool profiles (`readonly`/`edit`) and meta.json stay owned by the shared run
10
+ * code: adapters receive the profile name and map it to client flags.
11
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.RUN_FUTURE_CLIENTS = exports.RUN_SUPPORTED_CLIENTS = exports.RUN_TOOL_PROFILES = exports.RUN_SETTING_SOURCES = exports.RUN_PERMISSION_MODE = exports.RUN_EDIT_TOOLS = exports.RUN_READONLY_TOOLS = void 0;
14
+ exports.allowedToolsForProfile = allowedToolsForProfile;
15
+ exports.isSupportedRunClient = isSupportedRunClient;
16
+ exports.isFutureRunClient = isFutureRunClient;
17
+ exports.missingRunClientMessage = missingRunClientMessage;
18
+ exports.runClientMessage = runClientMessage;
19
+ /** Read-only profile: exactly the botmancers prototype allowlist. */
20
+ exports.RUN_READONLY_TOOLS = [
21
+ 'mcp__agent-deck__*',
22
+ 'Read',
23
+ 'Glob',
24
+ 'Grep',
25
+ 'Bash(git log:*)',
26
+ 'Bash(git status:*)',
27
+ 'Bash(ls:*)',
28
+ ];
29
+ /**
30
+ * Edit profile: readonly plus file writes and git-scoped Bash. No `git push`,
31
+ * no unscoped `Bash`, no network tools. One-line reason per git entry:
32
+ * - `git diff` reviews local changes before staging or committing;
33
+ * - `git add` stages the files the session created or edited;
34
+ * - `git commit` records the work as a commit for handoff;
35
+ * - `git checkout -b` starts delegated work on a fresh branch.
36
+ */
37
+ exports.RUN_EDIT_TOOLS = [
38
+ ...exports.RUN_READONLY_TOOLS,
39
+ 'Edit',
40
+ 'Write',
41
+ 'Bash(git diff:*)',
42
+ 'Bash(git add:*)',
43
+ 'Bash(git commit:*)',
44
+ 'Bash(git checkout -b:*)',
45
+ ];
46
+ /** Both profiles run with `acceptEdits`; `bypassPermissions` is never used. */
47
+ exports.RUN_PERMISSION_MODE = 'acceptEdits';
48
+ /** Setting sources copied from the prototype. */
49
+ exports.RUN_SETTING_SOURCES = ['project', 'user'];
50
+ exports.RUN_TOOL_PROFILES = ['readonly', 'edit'];
51
+ function allowedToolsForProfile(profile) {
52
+ return profile === 'edit' ? exports.RUN_EDIT_TOOLS : exports.RUN_READONLY_TOOLS;
53
+ }
54
+ /** Clients with a working adapter. */
55
+ exports.RUN_SUPPORTED_CLIENTS = ['claude', 'codex', 'cursor', 'muse'];
56
+ /** Clients with a ticket but no adapter yet (separate tickets, blocked by NOT-404). */
57
+ exports.RUN_FUTURE_CLIENTS = [];
58
+ function isSupportedRunClient(value) {
59
+ return exports.RUN_SUPPORTED_CLIENTS.includes(value);
60
+ }
61
+ function isFutureRunClient(value) {
62
+ return exports.RUN_FUTURE_CLIENTS.includes(value);
63
+ }
64
+ function missingRunClientMessage() {
65
+ return '--client is required: pass --client claude, --client codex, --client cursor, or --client muse';
66
+ }
67
+ function runClientMessage(client) {
68
+ if (isFutureRunClient(client)) {
69
+ return `Client adapter "${client}" is not available yet (supported clients: claude, codex, cursor, muse)`;
70
+ }
71
+ return `--client must be one of: claude, codex, cursor, muse (got "${client}")`;
72
+ }
73
+ //# sourceMappingURL=run-adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-adapter.js","sourceRoot":"","sources":["../src/run-adapter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAwCH,wDAEC;AASD,oDAEC;AAED,8CAEC;AAED,0DAEC;AAED,4CAKC;AAlED,qEAAqE;AACxD,QAAA,kBAAkB,GAAsB;IACnD,oBAAoB;IACpB,MAAM;IACN,MA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