@uniqbit/mate-core 1.0.0-canary.7 → 1.0.0-canary.9
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/claude-capability-plugins/companion-mentions/.claude-plugin/plugin.json +1 -1
- package/package.json +6 -3
- package/src/cli/commands/artifact/delivery/submit.ts +6 -4
- package/src/cli/commands/artifact/finish/command.ts +28 -11
- package/src/cli/commands/artifact/pending/command.ts +71 -7
- package/src/cli/commands/cap/tokensave.ts +2 -2
- package/src/cli/commands/companion/update.ts +2 -3
- package/src/cli/commands/doctor.ts +33 -4
- package/src/cli/commands/install.ts +8 -4
- package/src/cli/commands/plugin/install.ts +82 -35
- package/src/cli/commands/studio/service-host.ts +3 -0
- package/src/cli/commands/triage.ts +32 -11
- package/src/cli/commands/vscode/release-vsix.json +2 -2
- package/src/cli/install-plan.tsx +3 -0
- package/src/cli/main.ts +51 -7
- package/src/cli/usage.ts +3 -3
- package/src/create-mate.ts +4 -1
- package/src/factory-host.ts +6 -0
- package/src/index.ts +1 -0
- package/src/lib/delivery/merge-git.ts +31 -7
- package/src/lib/delivery/overlap.ts +14 -1
- package/src/lib/delivery/repository-access.ts +11 -6
- package/src/lib/delivery/staging/apply-chain.ts +25 -7
- package/src/lib/delivery/staging/linked-merges.ts +175 -0
- package/src/lib/delivery/staging/naming.ts +3 -0
- package/src/lib/delivery/staging/openspec-type.ts +38 -7
- package/src/lib/delivery/staging/pending.ts +153 -11
- package/src/lib/delivery/staging/preflight.ts +239 -0
- package/src/lib/delivery/staging/project.ts +243 -104
- package/src/lib/delivery/staging/replay.ts +5 -3
- package/src/lib/delivery/staging/settle-linked.ts +5 -119
- package/src/lib/delivery/staging/submit.ts +139 -18
- package/src/lib/delivery/submit-change.ts +163 -37
- package/src/lib/friction/mark.ts +49 -11
- package/src/lib/friction/view/read.ts +10 -1
- package/src/lib/mcp-manager/resolve.ts +70 -0
- package/src/lib/mcp-manager/store.ts +109 -0
- package/src/lib/mcp-manager/types.ts +58 -0
- package/src/lib/mcp-manager/validate.ts +246 -0
- package/src/lib/openspec-cli.ts +10 -5
- package/src/lib/orchestrator/config-store.ts +30 -7
- package/src/lib/orchestrator/engine-floor.ts +16 -4
- package/src/lib/orchestrator/engine-guard.ts +7 -1
- package/src/lib/orchestrator/types.ts +4 -0
- package/src/lib/skills-cli.ts +38 -0
- package/src/lib/tool-manifest.ts +73 -0
- package/src/lib/triage/context.ts +138 -12
- package/src/lib/triage/prepare.ts +19 -4
- package/src/plugin-api.ts +1 -0
- package/src/runtime/command-arg.ts +15 -0
- package/src/runtime/companion-guidance.ts +1 -1
- package/src/runtime/friction-log.ts +41 -17
- package/src/runtime/friction-recorder.ts +15 -2
- package/src/runtime/git-tracked.ts +13 -2
- package/src/runtime/workflow/turn.ts +14 -12
- package/src/studio.ts +23 -1
- package/src/templates/capabilities/openspec-cap/mate-minimal/schema.yaml +5 -1
- package/src/templates/capabilities/react-doctor/mate-react-doctor/SKILL.md +28 -0
- package/src/templates/mate-skills/agents/mate-apply-change/SKILL.md +42 -4
- package/src/templates/mate-skills/agents/mate-archive-change/SKILL.md +27 -2
- package/src/templates/mate-skills/agents/mate-backfill-spec/SKILL.md +23 -1
- package/src/templates/mate-skills/agents/mate-clarify-intent/SKILL.md +26 -1
- package/src/templates/mate-skills/agents/mate-domain-modeling/SKILL.md +28 -0
- package/src/templates/mate-skills/agents/mate-explore-change/SKILL.md +28 -3
- package/src/templates/mate-skills/agents/mate-grill-me/SKILL.md +28 -0
- package/src/templates/mate-skills/agents/mate-grill-with-docs/SKILL.md +28 -0
- package/src/templates/mate-skills/agents/mate-grilling/SKILL.md +25 -0
- package/src/templates/mate-skills/agents/mate-interview-me/SKILL.md +28 -0
- package/src/templates/mate-skills/agents/mate-propose-change/SKILL.md +28 -3
- package/src/templates/mate-skills/agents/mate-publish-artifact/SKILL.md +28 -6
- package/src/templates/mate-skills/agents/mate-show-me/SKILL.md +27 -2
- package/src/templates/mate-skills/agents/mate-simplify-code/SKILL.md +28 -0
- package/src/templates/mate-skills/agents/mate-submit-change/SKILL.md +24 -2
- package/src/templates/mate-skills/claude/mate-apply-change/SKILL.md +42 -4
- package/src/templates/mate-skills/claude/mate-archive-change/SKILL.md +27 -2
- package/src/templates/mate-skills/claude/mate-backfill-spec/SKILL.md +23 -1
- package/src/templates/mate-skills/claude/mate-clarify-intent/SKILL.md +26 -1
- package/src/templates/mate-skills/claude/mate-domain-modeling/SKILL.md +28 -0
- package/src/templates/mate-skills/claude/mate-explore-change/SKILL.md +28 -3
- package/src/templates/mate-skills/claude/mate-grill-me/SKILL.md +28 -0
- package/src/templates/mate-skills/claude/mate-grill-with-docs/SKILL.md +28 -0
- package/src/templates/mate-skills/claude/mate-grilling/SKILL.md +25 -0
- package/src/templates/mate-skills/claude/mate-interview-me/SKILL.md +28 -0
- package/src/templates/mate-skills/claude/mate-propose-change/SKILL.md +28 -3
- package/src/templates/mate-skills/claude/mate-publish-artifact/SKILL.md +28 -6
- package/src/templates/mate-skills/claude/mate-show-me/SKILL.md +27 -2
- package/src/templates/mate-skills/claude/mate-simplify-code/SKILL.md +28 -0
- package/src/templates/mate-skills/claude/mate-submit-change/SKILL.md +24 -2
- package/src/templates/triage/PLAYBOOK.md +9 -1
- package/src/tools/setup/__snapshots__/runtime-surface-golden.test.ts.snap +108 -108
- package/src/tools/setup/capabilities/graphify.ts +23 -1
- package/src/tools/setup/capabilities/mcp-manager.ts +74 -0
- package/src/tools/setup/capabilities/rtk.ts +27 -86
- package/src/tools/setup/capabilities/tokensave.ts +76 -54
- package/src/tools/setup/context-services.ts +35 -6
- package/src/tools/setup/dynamic-plugins/audiences.ts +31 -16
- package/src/tools/setup/dynamic-plugins/hydrate.ts +32 -14
- package/src/tools/setup/dynamic-plugins/install.ts +2 -0
- package/src/tools/setup/dynamic-plugins/installed.ts +73 -0
- package/src/tools/setup/dynamic-plugins/loader.ts +12 -10
- package/src/tools/setup/dynamic-plugins/local.ts +492 -0
- package/src/tools/setup/dynamic-plugins/paths.ts +34 -6
- package/src/tools/setup/dynamic-plugins/verify.ts +34 -14
- package/src/tools/setup/dynamic-plugins/workspaces.ts +17 -8
- package/src/tools/setup/engine.ts +55 -3
- package/src/tools/setup/mate.ts +26 -1
- package/src/tools/setup/plugin.ts +14 -0
- package/src/tools/setup/plugins/gitignore.ts +45 -12
- package/src/tools/setup/providers/claude-format.ts +39 -2
- package/src/tools/setup/providers/claude.ts +10 -0
- package/src/tools/setup/providers/opencode-format.ts +13 -3
- package/src/tools/setup/service.ts +8 -0
- package/src/tools/setup/utils.ts +10 -1
- package/studio-dist/client/assets/app-ggXJ_QVh.css +2 -0
- package/studio-dist/client/assets/button-C9SQW3kI.js +1 -0
- package/studio-dist/client/assets/cn-DC80MJV0.js +1 -0
- package/studio-dist/client/assets/combobox-D7mKYCBb.js +1 -0
- package/studio-dist/client/assets/{companion-view-DINdPF-b.js → companion-view-C1F0_jbt.js} +1 -1
- package/studio-dist/client/assets/fields-CEep8IFT.js +1 -0
- package/studio-dist/client/assets/friction-D9dBU7WN.js +1 -0
- package/studio-dist/client/assets/getting-started-BDyGvHhc.js +1 -0
- package/studio-dist/client/assets/{getting-started-djaQeWlu.js → getting-started-BN4aTpsz.js} +1 -1
- package/studio-dist/client/assets/getting-started._topic-B9ajbF4o.js +1 -0
- package/studio-dist/client/assets/getting-started.index-CYiBPtb7.js +1 -0
- package/studio-dist/client/assets/graph-ah7ZXfTa.js +2 -0
- package/studio-dist/client/assets/{graph-canvas-DIcAqwtK.js → graph-canvas-Be5qgdDt.js} +1 -1
- package/studio-dist/client/assets/guides-CsL0660B.js +1 -0
- package/studio-dist/client/assets/index-zmRH87D4.js +40 -0
- package/studio-dist/client/assets/{markdown-view-jMiaBTSO.js → markdown-view-dku7MGPn.js} +1 -1
- package/studio-dist/client/assets/panel-COgk0vP5.js +1 -0
- package/studio-dist/client/assets/plugins._service._view-Cn3WBHab.js +1 -0
- package/studio-dist/client/assets/{prepaint-CKsXyJOR.js → prepaint-BkoDSw5X.js} +1 -1
- package/studio-dist/client/assets/{queries-Dfp5deWj.js → queries-CMvC2OkU.js} +1 -1
- package/studio-dist/client/assets/reports-C_AqLBYH.js +1 -0
- package/studio-dist/client/assets/routes-BokQmHtC.js +1 -0
- package/studio-dist/client/assets/{search-CXosfvYh.js → search-DxidNK2M.js} +1 -1
- package/studio-dist/client/assets/select-CYFCbHUd.js +1 -0
- package/studio-dist/client/assets/skills-R3vttWHM.js +1 -0
- package/studio-dist/client/assets/{specs-Dl8HfGlU.js → specs-Bqd1ajyD.js} +1 -1
- package/studio-dist/client/assets/specs-view-znqFPx9p.js +1 -0
- package/studio-dist/client/assets/{steps-CKUno4lh.js → steps-tVDWn7j6.js} +1 -1
- package/studio-dist/client/assets/{store-DyXbi6o9.js → store-BYnEU33C.js} +1 -1
- package/studio-dist/client/assets/studio-ndtFcS2Y.js +100 -0
- package/studio-dist/client/assets/{studio-queries-BflKt9va.js → studio-queries-CkUSByy7.js} +1 -1
- package/studio-dist/client/assets/{usage-Blcl8kA_.js → usage-Kuhr8dSl.js} +13 -13
- package/studio-dist/client/assets/{useAnchoredPopupScrollLock-BBXJpX5L.js → useAnchoredPopupScrollLock-dc_kP4Go.js} +1 -1
- package/studio-dist/client/assets/useMutation-CqtM9COw.js +1 -0
- package/studio-dist/client/assets/vault-CSP8kwRg.js +1 -0
- package/studio-dist/client/assets/warnings-Cnw99ugO.js +1 -0
- package/studio-dist/client/assets/workflow-BPJAmmZi.js +1 -0
- package/studio-dist/server/assets/{__23tanstack-start-server-fn-resolver-JoHQ5ihx.js → __23tanstack-start-server-fn-resolver-CS3QRY4Q.js} +18 -18
- package/studio-dist/server/assets/_tanstack-start-manifest_v.js +58 -58
- package/studio-dist/server/assets/{button-B7e1fRyW.js → button-Ct_WeYLc.js} +3 -3480
- package/studio-dist/server/assets/cn-DWFJaP_9.js +5528 -0
- package/studio-dist/server/assets/{combobox--S_OmUfh.js → combobox-17vO5Uz8.js} +6 -5
- package/studio-dist/server/assets/{companion-view-D-vGM55e.js → companion-view-JkxnGLlp.js} +2 -2
- package/studio-dist/server/assets/{companions-Dr6IpNAb.js → companions-YNLsbnch.js} +1 -1
- package/studio-dist/server/assets/{fields-B4qM2ZwC.js → fields-VytPpqBq.js} +2 -1
- package/studio-dist/server/assets/{friction-sLxaWY-H.js → friction-B6osqFSm.js} +56 -16
- package/studio-dist/server/assets/{friction-CWOTjpCV.js → friction-BW86PCPM.js} +2 -2
- package/studio-dist/server/assets/{getting-started-Cq5Pcnsr.js → getting-started-CFHSeX5h.js} +2 -2
- package/studio-dist/server/assets/{getting-started._topic-CmWdl3u3.js → getting-started._topic-BK2eU6AS.js} +2 -2
- package/studio-dist/server/assets/{getting-started.index-AB8xpTFY.js → getting-started.index-DZLuXnNO.js} +2 -2
- package/studio-dist/server/assets/{graph-C_Hn-Wf_.js → graph-BJVZBevL.js} +8 -7
- package/studio-dist/server/assets/{graph-B11ITte0.js → graph-DGZHV-Ek.js} +1 -1
- package/studio-dist/server/assets/{graph-canvas-BthrSmPS.js → graph-canvas-lrNT6jbl.js} +2 -2
- package/studio-dist/server/assets/{guides-B8HdeK_C.js → guides-CEwLOZb9.js} +1 -1
- package/studio-dist/server/assets/{guides-BVQ4pt5B.js → guides-_G8Vucsk.js} +1 -1
- package/studio-dist/server/assets/{guides.server-DqFQAStf.js → guides.server-ZWFKX2XJ.js} +1 -1
- package/studio-dist/server/assets/{markdown-view-rwiiVcPC.js → markdown-view-Bmjghg_Z.js} +1 -1
- package/studio-dist/server/assets/{panel-CUxRIpYL.js → panel-DvRjyil3.js} +4 -3
- package/studio-dist/server/assets/{plugins._service._view-BSvGnlhU.js → plugins._service._view-B32LzraG.js} +8 -5
- package/studio-dist/server/assets/{prepaint-B28ClcPN.js → prepaint-BEHwKl51.js} +1 -1
- package/studio-dist/server/assets/{queries-S_Pl90IG.js → queries-D6Vq0AuZ.js} +1 -1
- package/studio-dist/server/assets/{reports-B9k98oE6.js → reports-DDaH5k0H.js} +1 -1
- package/studio-dist/server/assets/{reports-CJpAItPk.js → reports-Dn92pLap.js} +7 -6
- package/studio-dist/server/assets/{router-DF0etoNa.js → router-Bjf4S9tO.js} +57 -32
- package/studio-dist/server/assets/{routes-6ylCLkyg.js → routes-B4sNiE0X.js} +8 -7
- package/studio-dist/server/assets/{search-b-yQesv3.js → search-DKeJRvg8.js} +1 -1
- package/studio-dist/server/assets/{select-CjuKScan.js → select-CVHYL7oR.js} +5 -4
- package/studio-dist/server/assets/{shell-DLkP7wG9.js → shell-BxbYYaAk.js} +4 -3
- package/studio-dist/server/assets/{skills-zeU80A9S.js → skills-B4-0qpqN.js} +8 -7
- package/studio-dist/server/assets/{skills-DGg0mWDM.js → skills-Bj8eOgzR.js} +1 -1
- package/studio-dist/server/assets/{specs-DDBNT_v1.js → specs-rfMug6qW.js} +4 -4
- package/studio-dist/server/assets/{specs-view-exvmWdg0.js → specs-view-qi1SE1Sl.js} +10 -9
- package/studio-dist/server/assets/{steps-D1tYAyWZ.js → steps-rger6HJc.js} +1 -1
- package/studio-dist/server/assets/{store-kS7zk0Hr.js → store-Dg9T7oWs.js} +1 -1
- package/studio-dist/server/assets/{studio-qRvQjRpz.js → studio-D79JzDLc.js} +1347 -0
- package/studio-dist/server/assets/{studio-queries-qOXOYoPt.js → studio-queries-CeFfmIuM.js} +3 -3
- package/studio-dist/server/assets/{usage-C2um7YiV.js → usage-BJgYWRCX.js} +10 -10
- package/studio-dist/server/assets/{usage-Cwle9-xY.js → usage-Dw_UQFX-.js} +1 -1
- package/studio-dist/server/assets/{useAnchoredPopupScrollLock-kQBB3y_b.js → useAnchoredPopupScrollLock-ciS_sEq3.js} +2 -2
- package/studio-dist/server/assets/{useMutation-C-WO6hCM.js → useMutation-DnWK0PhO.js} +2 -2
- package/studio-dist/server/assets/{vault-CEBBRLMb.js → vault-BzarssiL.js} +1 -1
- package/studio-dist/server/assets/{vault-B8vgVIH9.js → vault-CvlrLd2H.js} +6 -6
- package/studio-dist/server/assets/{views-UgO0Qz_g.js → views-CAxwKHMK.js} +2 -2
- package/studio-dist/server/assets/{warnings-BxK4VfV5.js → warnings-BpVCugHm.js} +2 -1
- package/studio-dist/server/assets/{workflow-BrTK632u.js → workflow-BdrzcCt8.js} +9 -8
- package/studio-dist/server/server.js +2 -2
- package/tool-manifest.yaml +85 -0
- package/studio-dist/client/assets/app-aIwDxf48.css +0 -2
- package/studio-dist/client/assets/button-CX0sWAJl.js +0 -1
- package/studio-dist/client/assets/combobox-BmA8RjOc.js +0 -1
- package/studio-dist/client/assets/fields-BobQ7zRF.js +0 -1
- package/studio-dist/client/assets/friction-YdYd3zaz.js +0 -1
- package/studio-dist/client/assets/getting-started-CY7NEtTw.js +0 -1
- package/studio-dist/client/assets/getting-started._topic-DVB8e5R9.js +0 -1
- package/studio-dist/client/assets/getting-started.index-DQvLHEr1.js +0 -1
- package/studio-dist/client/assets/graph-DbNnR884.js +0 -2
- package/studio-dist/client/assets/guides-D6T6W_jV.js +0 -1
- package/studio-dist/client/assets/index-CysBCSxM.js +0 -40
- package/studio-dist/client/assets/panel-Csr49lBo.js +0 -1
- package/studio-dist/client/assets/plugins._service._view-CEA_CcPe.js +0 -1
- package/studio-dist/client/assets/reports-CLdgxxkg.js +0 -1
- package/studio-dist/client/assets/routes-DGilWbDE.js +0 -1
- package/studio-dist/client/assets/select-DdebbX7K.js +0 -1
- package/studio-dist/client/assets/skills-C3zNkU8g.js +0 -1
- package/studio-dist/client/assets/specs-view-B_n0Pekv.js +0 -1
- package/studio-dist/client/assets/studio-0ueISxwP.js +0 -100
- package/studio-dist/client/assets/useBaseQuery-C2cjmeH2.js +0 -1
- package/studio-dist/client/assets/useMutation-DI6LbvVa.js +0 -1
- package/studio-dist/client/assets/vault-Cb9DmM1i.js +0 -1
- package/studio-dist/client/assets/warnings-B-rvoW8q.js +0 -1
- package/studio-dist/client/assets/workflow-DN5T19jd.js +0 -1
- package/studio-dist/server/assets/useBaseQuery--iH3rd-T.js +0 -2051
|
@@ -4902,7 +4902,7 @@ exports[`runtime surface golden fixtures setup react-doctor × claude 1`] = `
|
|
|
4902
4902
|
},
|
|
4903
4903
|
},
|
|
4904
4904
|
"claudeSkills": {
|
|
4905
|
-
"mate-react-doctor/SKILL.md": "
|
|
4905
|
+
"mate-react-doctor/SKILL.md": "ec2ac7fb877c",
|
|
4906
4906
|
"mate-react-doctor/references/explain.md": "86754a7e5436",
|
|
4907
4907
|
},
|
|
4908
4908
|
"opencodeConfig": null,
|
|
@@ -5277,7 +5277,7 @@ exports[`runtime surface golden fixtures setup react-doctor × opencode 1`] = `
|
|
|
5277
5277
|
"opencodeSkills": {},
|
|
5278
5278
|
"opencodeTui": null,
|
|
5279
5279
|
"sharedSkills": {
|
|
5280
|
-
"mate-react-doctor/SKILL.md": "
|
|
5280
|
+
"mate-react-doctor/SKILL.md": "ec2ac7fb877c",
|
|
5281
5281
|
"mate-react-doctor/references/explain.md": "86754a7e5436",
|
|
5282
5282
|
},
|
|
5283
5283
|
}
|
|
@@ -5651,7 +5651,7 @@ exports[`runtime surface golden fixtures setup react-doctor × claude+opencode 1
|
|
|
5651
5651
|
},
|
|
5652
5652
|
},
|
|
5653
5653
|
"claudeSkills": {
|
|
5654
|
-
"mate-react-doctor/SKILL.md": "
|
|
5654
|
+
"mate-react-doctor/SKILL.md": "ec2ac7fb877c",
|
|
5655
5655
|
"mate-react-doctor/references/explain.md": "86754a7e5436",
|
|
5656
5656
|
},
|
|
5657
5657
|
"opencodeConfig": {
|
|
@@ -5675,7 +5675,7 @@ exports[`runtime surface golden fixtures setup react-doctor × claude+opencode 1
|
|
|
5675
5675
|
"opencodeSkills": {},
|
|
5676
5676
|
"opencodeTui": null,
|
|
5677
5677
|
"sharedSkills": {
|
|
5678
|
-
"mate-react-doctor/SKILL.md": "
|
|
5678
|
+
"mate-react-doctor/SKILL.md": "ec2ac7fb877c",
|
|
5679
5679
|
"mate-react-doctor/references/explain.md": "86754a7e5436",
|
|
5680
5680
|
},
|
|
5681
5681
|
}
|
|
@@ -6379,31 +6379,31 @@ exports[`runtime surface golden fixtures setup openspec × claude 1`] = `
|
|
|
6379
6379
|
},
|
|
6380
6380
|
},
|
|
6381
6381
|
"claudeSkills": {
|
|
6382
|
-
"mate-apply-change/SKILL.md": "
|
|
6382
|
+
"mate-apply-change/SKILL.md": "340456564b7f",
|
|
6383
6383
|
"mate-apply-change/references/mate-compact-apply.md": "3f20c80a4d78",
|
|
6384
6384
|
"mate-apply-change/references/openspec-apply-change.md": "fa61cbd0bc83",
|
|
6385
|
-
"mate-archive-change/SKILL.md": "
|
|
6386
|
-
"mate-backfill-spec/SKILL.md": "
|
|
6387
|
-
"mate-clarify-intent/SKILL.md": "
|
|
6388
|
-
"mate-create-report/SKILL.md": "
|
|
6389
|
-
"mate-domain-modeling/SKILL.md": "
|
|
6385
|
+
"mate-archive-change/SKILL.md": "873bf06b5e57",
|
|
6386
|
+
"mate-backfill-spec/SKILL.md": "c79288929dea",
|
|
6387
|
+
"mate-clarify-intent/SKILL.md": "abaa8ee3b3b5",
|
|
6388
|
+
"mate-create-report/SKILL.md": "0fb49a040d6c",
|
|
6389
|
+
"mate-domain-modeling/SKILL.md": "5b9f27e88a6c",
|
|
6390
6390
|
"mate-domain-modeling/references/ADR-FORMAT.md": "824b87e87d9b",
|
|
6391
6391
|
"mate-domain-modeling/references/CONTEXT-FORMAT.md": "172622594277",
|
|
6392
|
-
"mate-explore-change/SKILL.md": "
|
|
6392
|
+
"mate-explore-change/SKILL.md": "f41800334a80",
|
|
6393
6393
|
"mate-explore-change/references/openspec-explore.md": "3cf63d55e3d2",
|
|
6394
|
-
"mate-grill-me/SKILL.md": "
|
|
6395
|
-
"mate-grill-with-docs/SKILL.md": "
|
|
6396
|
-
"mate-grilling/SKILL.md": "
|
|
6397
|
-
"mate-interview-me/SKILL.md": "
|
|
6398
|
-
"mate-propose-change/SKILL.md": "
|
|
6394
|
+
"mate-grill-me/SKILL.md": "6d713f1240ca",
|
|
6395
|
+
"mate-grill-with-docs/SKILL.md": "682f2d8123ac",
|
|
6396
|
+
"mate-grilling/SKILL.md": "0e14a416f8a3",
|
|
6397
|
+
"mate-interview-me/SKILL.md": "c35ec1f14f79",
|
|
6398
|
+
"mate-propose-change/SKILL.md": "a94163171ac9",
|
|
6399
6399
|
"mate-propose-change/references/mate-revise.md": "1f90002ee95d",
|
|
6400
6400
|
"mate-propose-change/references/openspec-propose.md": "dbd00207ffa4",
|
|
6401
6401
|
"mate-propose-change/references/openspec-update-change.md": "0b0f6dee9f1e",
|
|
6402
|
-
"mate-publish-artifact/SKILL.md": "
|
|
6402
|
+
"mate-publish-artifact/SKILL.md": "54ba2f6a8959",
|
|
6403
6403
|
"mate-publish-artifact/references/openspec.md": "83196c70960c",
|
|
6404
|
-
"mate-show-me/SKILL.md": "
|
|
6405
|
-
"mate-simplify-code/SKILL.md": "
|
|
6406
|
-
"mate-submit-change/SKILL.md": "
|
|
6404
|
+
"mate-show-me/SKILL.md": "263dceace1b6",
|
|
6405
|
+
"mate-simplify-code/SKILL.md": "ede560857729",
|
|
6406
|
+
"mate-submit-change/SKILL.md": "bf2e8c54586e",
|
|
6407
6407
|
},
|
|
6408
6408
|
"opencodeConfig": null,
|
|
6409
6409
|
"opencodePlugins": {},
|
|
@@ -6445,7 +6445,7 @@ exports[`runtime surface golden fixtures setup openspec × claude 2`] = `
|
|
|
6445
6445
|
<rule id="wrapper-only-cli-execution" severity="critical">For every CLI declared in cli-tools, invoke the exact path in its invokeAs attribute. Correct: <wrapper-bin>/openspec status ... . Incorrect: openspec status ... . Do not run bare openspec or graphify commands and do not rely on PATH, aliases, or shell functions. If the exact wrapper path is unavailable, stop and report it.</rule>
|
|
6446
6446
|
<rule id="secret-handling" severity="critical">Never read, print, copy, or write secret files (.env, .env.*, keys, certificates, credential files such as .npmrc or .netrc) or secret values. To learn which variables exist, read only the example files (.env.example, .env.sample, .env.template, .env.dist). Refer to a secret by its variable name only. Do not print environment variables that may hold secrets. When a secret must be set or rotated, ask the user to do it instead of writing it yourself. Guarded calls are blocked; the companion's framework.yaml secrets block is the user's switch, not yours.</rule>
|
|
6447
6447
|
<rule id="openspec-scope" severity="critical">In OpenSpec, the frontmatter repository identifies the Working Repository; areas are repository-relative paths within that repository. Canonical specs use repository plus flat areas; change artifacts use paired scopes entries. In a monorepo, an Area normally stops at the package root. A cross-repository change may declare multiple scopes, but each resulting spec remains owned by one repository, and each requirement must bind its Area explicitly.</rule>
|
|
6448
|
-
<rule id="openspec-publish" severity="critical">Submit publishes nothing: it pushes an OpenSpec change folder (state: submitted) to the inbox mate/inbox to await its merge. A submitted change is not the truth: only publication lands it on the companion's default branch. openspec/specs/ is current; mate artifact project "<name>" shows the unpublished outcome. mate artifact pending --json lists them with author, touched requirements, ref and path; read one (git show <ref>:<path>/<file>) only where it touches your work or the user names it; implement or revise one only when the user names it: mate artifact take "<name>" brings it into the checkout when it is missing there, then resubmit it with mate-submit-change. Publish only through mate-publish-artifact (mate artifact publish "<name>" --json), after the user selects and confirms the commit and push, for a Delivery Group whose delivery branch is merged. It creates no tag. Never hand-commit or hand-tag one. Publish archives submitted changes and never submits: submitting is a precondition (mate-submit-change, before the merge).</rule>
|
|
6448
|
+
<rule id="openspec-publish" severity="critical">Submit publishes nothing: it pushes an OpenSpec change folder (state: submitted) to the inbox mate/inbox to await its merge. A submitted change is not the truth: only publication lands it on the companion's default branch. openspec/specs/ is current; mate artifact project "<name>" shows the unpublished outcome. mate artifact pending --json --no-merge-check lists them with author, touched requirements, ref and path; read one (git show <ref>:<path>/<file>) only where it touches your work or the user names it; implement or revise one only when the user names it: mate artifact take "<name>" brings it into the checkout when it is missing there, then resubmit it with mate-submit-change. Publish only through mate-publish-artifact (mate artifact publish "<name>" --json), after the user selects and confirms the commit and push, for a Delivery Group whose delivery branch is merged. It creates no tag. Never hand-commit or hand-tag one. Publish archives submitted changes and never submits: submitting is a precondition (mate-submit-change, before the merge).</rule>
|
|
6449
6449
|
</mandatory-rules>
|
|
6450
6450
|
</companion-policy>"
|
|
6451
6451
|
,
|
|
@@ -6795,31 +6795,31 @@ exports[`runtime surface golden fixtures setup openspec × opencode 1`] = `
|
|
|
6795
6795
|
"opencodeSkills": {},
|
|
6796
6796
|
"opencodeTui": null,
|
|
6797
6797
|
"sharedSkills": {
|
|
6798
|
-
"mate-apply-change/SKILL.md": "
|
|
6798
|
+
"mate-apply-change/SKILL.md": "340456564b7f",
|
|
6799
6799
|
"mate-apply-change/references/mate-compact-apply.md": "3f20c80a4d78",
|
|
6800
6800
|
"mate-apply-change/references/openspec-apply-change.md": "c132265690b4",
|
|
6801
|
-
"mate-archive-change/SKILL.md": "
|
|
6802
|
-
"mate-backfill-spec/SKILL.md": "
|
|
6803
|
-
"mate-clarify-intent/SKILL.md": "
|
|
6804
|
-
"mate-create-report/SKILL.md": "
|
|
6805
|
-
"mate-domain-modeling/SKILL.md": "
|
|
6801
|
+
"mate-archive-change/SKILL.md": "873bf06b5e57",
|
|
6802
|
+
"mate-backfill-spec/SKILL.md": "c79288929dea",
|
|
6803
|
+
"mate-clarify-intent/SKILL.md": "abaa8ee3b3b5",
|
|
6804
|
+
"mate-create-report/SKILL.md": "0fb49a040d6c",
|
|
6805
|
+
"mate-domain-modeling/SKILL.md": "5b9f27e88a6c",
|
|
6806
6806
|
"mate-domain-modeling/references/ADR-FORMAT.md": "824b87e87d9b",
|
|
6807
6807
|
"mate-domain-modeling/references/CONTEXT-FORMAT.md": "172622594277",
|
|
6808
|
-
"mate-explore-change/SKILL.md": "
|
|
6808
|
+
"mate-explore-change/SKILL.md": "f41800334a80",
|
|
6809
6809
|
"mate-explore-change/references/openspec-explore.md": "5bfcc2eefbd8",
|
|
6810
|
-
"mate-grill-me/SKILL.md": "
|
|
6811
|
-
"mate-grill-with-docs/SKILL.md": "
|
|
6812
|
-
"mate-grilling/SKILL.md": "
|
|
6813
|
-
"mate-interview-me/SKILL.md": "
|
|
6814
|
-
"mate-propose-change/SKILL.md": "
|
|
6810
|
+
"mate-grill-me/SKILL.md": "6d713f1240ca",
|
|
6811
|
+
"mate-grill-with-docs/SKILL.md": "682f2d8123ac",
|
|
6812
|
+
"mate-grilling/SKILL.md": "0e14a416f8a3",
|
|
6813
|
+
"mate-interview-me/SKILL.md": "c35ec1f14f79",
|
|
6814
|
+
"mate-propose-change/SKILL.md": "a94163171ac9",
|
|
6815
6815
|
"mate-propose-change/references/mate-revise.md": "1f90002ee95d",
|
|
6816
6816
|
"mate-propose-change/references/openspec-propose.md": "c1f1d1291283",
|
|
6817
6817
|
"mate-propose-change/references/openspec-update-change.md": "098ef729c37f",
|
|
6818
|
-
"mate-publish-artifact/SKILL.md": "
|
|
6818
|
+
"mate-publish-artifact/SKILL.md": "54ba2f6a8959",
|
|
6819
6819
|
"mate-publish-artifact/references/openspec.md": "83196c70960c",
|
|
6820
|
-
"mate-show-me/SKILL.md": "
|
|
6821
|
-
"mate-simplify-code/SKILL.md": "
|
|
6822
|
-
"mate-submit-change/SKILL.md": "
|
|
6820
|
+
"mate-show-me/SKILL.md": "263dceace1b6",
|
|
6821
|
+
"mate-simplify-code/SKILL.md": "ede560857729",
|
|
6822
|
+
"mate-submit-change/SKILL.md": "bf2e8c54586e",
|
|
6823
6823
|
},
|
|
6824
6824
|
}
|
|
6825
6825
|
`;
|
|
@@ -6861,7 +6861,7 @@ exports[`runtime surface golden fixtures setup openspec × opencode 2`] = `
|
|
|
6861
6861
|
<rule id="wrapper-only-cli-execution" severity="critical">For every CLI declared in cli-tools, invoke the exact path in its invokeAs attribute. Correct: $MATE_WRAPPER_BIN_PATH/openspec status ... . Incorrect: openspec status ... . Do not run bare openspec or graphify commands and do not rely on PATH, aliases, or shell functions. If the exact wrapper path is unavailable, stop and report it.</rule>
|
|
6862
6862
|
<rule id="secret-handling" severity="critical">Never read, print, copy, or write secret files (.env, .env.*, keys, certificates, credential files such as .npmrc or .netrc) or secret values. To learn which variables exist, read only the example files (.env.example, .env.sample, .env.template, .env.dist). Refer to a secret by its variable name only. Do not print environment variables that may hold secrets. When a secret must be set or rotated, ask the user to do it instead of writing it yourself. Guarded calls are blocked; the companion's framework.yaml secrets block is the user's switch, not yours.</rule>
|
|
6863
6863
|
<rule id="openspec-scope" severity="critical">In OpenSpec, the frontmatter repository identifies the Working Repository; areas are repository-relative paths within that repository. Canonical specs use repository plus flat areas; change artifacts use paired scopes entries. In a monorepo, an Area normally stops at the package root. A cross-repository change may declare multiple scopes, but each resulting spec remains owned by one repository, and each requirement must bind its Area explicitly.</rule>
|
|
6864
|
-
<rule id="openspec-publish" severity="critical">Submit publishes nothing: it pushes an OpenSpec change folder (state: submitted) to the inbox mate/inbox to await its merge. A submitted change is not the truth: only publication lands it on the companion's default branch. openspec/specs/ is current; mate artifact project "<name>" shows the unpublished outcome. mate artifact pending --json lists them with author, touched requirements, ref and path; read one (git show <ref>:<path>/<file>) only where it touches your work or the user names it; implement or revise one only when the user names it: mate artifact take "<name>" brings it into the checkout when it is missing there, then resubmit it with mate-submit-change. Publish only through mate-publish-artifact (mate artifact publish "<name>" --json), after the user selects and confirms the commit and push, for a Delivery Group whose delivery branch is merged. It creates no tag. Never hand-commit or hand-tag one. Publish archives submitted changes and never submits: submitting is a precondition (mate-submit-change, before the merge).</rule>
|
|
6864
|
+
<rule id="openspec-publish" severity="critical">Submit publishes nothing: it pushes an OpenSpec change folder (state: submitted) to the inbox mate/inbox to await its merge. A submitted change is not the truth: only publication lands it on the companion's default branch. openspec/specs/ is current; mate artifact project "<name>" shows the unpublished outcome. mate artifact pending --json --no-merge-check lists them with author, touched requirements, ref and path; read one (git show <ref>:<path>/<file>) only where it touches your work or the user names it; implement or revise one only when the user names it: mate artifact take "<name>" brings it into the checkout when it is missing there, then resubmit it with mate-submit-change. Publish only through mate-publish-artifact (mate artifact publish "<name>" --json), after the user selects and confirms the commit and push, for a Delivery Group whose delivery branch is merged. It creates no tag. Never hand-commit or hand-tag one. Publish archives submitted changes and never submits: submitting is a precondition (mate-submit-change, before the merge).</rule>
|
|
6865
6865
|
</mandatory-rules>
|
|
6866
6866
|
</companion-policy>"
|
|
6867
6867
|
,
|
|
@@ -7210,31 +7210,31 @@ exports[`runtime surface golden fixtures setup openspec × claude+opencode 1`] =
|
|
|
7210
7210
|
},
|
|
7211
7211
|
},
|
|
7212
7212
|
"claudeSkills": {
|
|
7213
|
-
"mate-apply-change/SKILL.md": "
|
|
7213
|
+
"mate-apply-change/SKILL.md": "340456564b7f",
|
|
7214
7214
|
"mate-apply-change/references/mate-compact-apply.md": "3f20c80a4d78",
|
|
7215
7215
|
"mate-apply-change/references/openspec-apply-change.md": "fa61cbd0bc83",
|
|
7216
|
-
"mate-archive-change/SKILL.md": "
|
|
7217
|
-
"mate-backfill-spec/SKILL.md": "
|
|
7218
|
-
"mate-clarify-intent/SKILL.md": "
|
|
7219
|
-
"mate-create-report/SKILL.md": "
|
|
7220
|
-
"mate-domain-modeling/SKILL.md": "
|
|
7216
|
+
"mate-archive-change/SKILL.md": "873bf06b5e57",
|
|
7217
|
+
"mate-backfill-spec/SKILL.md": "c79288929dea",
|
|
7218
|
+
"mate-clarify-intent/SKILL.md": "abaa8ee3b3b5",
|
|
7219
|
+
"mate-create-report/SKILL.md": "0fb49a040d6c",
|
|
7220
|
+
"mate-domain-modeling/SKILL.md": "5b9f27e88a6c",
|
|
7221
7221
|
"mate-domain-modeling/references/ADR-FORMAT.md": "824b87e87d9b",
|
|
7222
7222
|
"mate-domain-modeling/references/CONTEXT-FORMAT.md": "172622594277",
|
|
7223
|
-
"mate-explore-change/SKILL.md": "
|
|
7223
|
+
"mate-explore-change/SKILL.md": "f41800334a80",
|
|
7224
7224
|
"mate-explore-change/references/openspec-explore.md": "3cf63d55e3d2",
|
|
7225
|
-
"mate-grill-me/SKILL.md": "
|
|
7226
|
-
"mate-grill-with-docs/SKILL.md": "
|
|
7227
|
-
"mate-grilling/SKILL.md": "
|
|
7228
|
-
"mate-interview-me/SKILL.md": "
|
|
7229
|
-
"mate-propose-change/SKILL.md": "
|
|
7225
|
+
"mate-grill-me/SKILL.md": "6d713f1240ca",
|
|
7226
|
+
"mate-grill-with-docs/SKILL.md": "682f2d8123ac",
|
|
7227
|
+
"mate-grilling/SKILL.md": "0e14a416f8a3",
|
|
7228
|
+
"mate-interview-me/SKILL.md": "c35ec1f14f79",
|
|
7229
|
+
"mate-propose-change/SKILL.md": "a94163171ac9",
|
|
7230
7230
|
"mate-propose-change/references/mate-revise.md": "1f90002ee95d",
|
|
7231
7231
|
"mate-propose-change/references/openspec-propose.md": "dbd00207ffa4",
|
|
7232
7232
|
"mate-propose-change/references/openspec-update-change.md": "0b0f6dee9f1e",
|
|
7233
|
-
"mate-publish-artifact/SKILL.md": "
|
|
7233
|
+
"mate-publish-artifact/SKILL.md": "54ba2f6a8959",
|
|
7234
7234
|
"mate-publish-artifact/references/openspec.md": "83196c70960c",
|
|
7235
|
-
"mate-show-me/SKILL.md": "
|
|
7236
|
-
"mate-simplify-code/SKILL.md": "
|
|
7237
|
-
"mate-submit-change/SKILL.md": "
|
|
7235
|
+
"mate-show-me/SKILL.md": "263dceace1b6",
|
|
7236
|
+
"mate-simplify-code/SKILL.md": "ede560857729",
|
|
7237
|
+
"mate-submit-change/SKILL.md": "bf2e8c54586e",
|
|
7238
7238
|
},
|
|
7239
7239
|
"opencodeConfig": {
|
|
7240
7240
|
"$schema": "https://opencode.ai/config.json",
|
|
@@ -7257,31 +7257,31 @@ exports[`runtime surface golden fixtures setup openspec × claude+opencode 1`] =
|
|
|
7257
7257
|
"opencodeSkills": {},
|
|
7258
7258
|
"opencodeTui": null,
|
|
7259
7259
|
"sharedSkills": {
|
|
7260
|
-
"mate-apply-change/SKILL.md": "
|
|
7260
|
+
"mate-apply-change/SKILL.md": "340456564b7f",
|
|
7261
7261
|
"mate-apply-change/references/mate-compact-apply.md": "3f20c80a4d78",
|
|
7262
7262
|
"mate-apply-change/references/openspec-apply-change.md": "c132265690b4",
|
|
7263
|
-
"mate-archive-change/SKILL.md": "
|
|
7264
|
-
"mate-backfill-spec/SKILL.md": "
|
|
7265
|
-
"mate-clarify-intent/SKILL.md": "
|
|
7266
|
-
"mate-create-report/SKILL.md": "
|
|
7267
|
-
"mate-domain-modeling/SKILL.md": "
|
|
7263
|
+
"mate-archive-change/SKILL.md": "873bf06b5e57",
|
|
7264
|
+
"mate-backfill-spec/SKILL.md": "c79288929dea",
|
|
7265
|
+
"mate-clarify-intent/SKILL.md": "abaa8ee3b3b5",
|
|
7266
|
+
"mate-create-report/SKILL.md": "0fb49a040d6c",
|
|
7267
|
+
"mate-domain-modeling/SKILL.md": "5b9f27e88a6c",
|
|
7268
7268
|
"mate-domain-modeling/references/ADR-FORMAT.md": "824b87e87d9b",
|
|
7269
7269
|
"mate-domain-modeling/references/CONTEXT-FORMAT.md": "172622594277",
|
|
7270
|
-
"mate-explore-change/SKILL.md": "
|
|
7270
|
+
"mate-explore-change/SKILL.md": "f41800334a80",
|
|
7271
7271
|
"mate-explore-change/references/openspec-explore.md": "5bfcc2eefbd8",
|
|
7272
|
-
"mate-grill-me/SKILL.md": "
|
|
7273
|
-
"mate-grill-with-docs/SKILL.md": "
|
|
7274
|
-
"mate-grilling/SKILL.md": "
|
|
7275
|
-
"mate-interview-me/SKILL.md": "
|
|
7276
|
-
"mate-propose-change/SKILL.md": "
|
|
7272
|
+
"mate-grill-me/SKILL.md": "6d713f1240ca",
|
|
7273
|
+
"mate-grill-with-docs/SKILL.md": "682f2d8123ac",
|
|
7274
|
+
"mate-grilling/SKILL.md": "0e14a416f8a3",
|
|
7275
|
+
"mate-interview-me/SKILL.md": "c35ec1f14f79",
|
|
7276
|
+
"mate-propose-change/SKILL.md": "a94163171ac9",
|
|
7277
7277
|
"mate-propose-change/references/mate-revise.md": "1f90002ee95d",
|
|
7278
7278
|
"mate-propose-change/references/openspec-propose.md": "c1f1d1291283",
|
|
7279
7279
|
"mate-propose-change/references/openspec-update-change.md": "098ef729c37f",
|
|
7280
|
-
"mate-publish-artifact/SKILL.md": "
|
|
7280
|
+
"mate-publish-artifact/SKILL.md": "54ba2f6a8959",
|
|
7281
7281
|
"mate-publish-artifact/references/openspec.md": "83196c70960c",
|
|
7282
|
-
"mate-show-me/SKILL.md": "
|
|
7283
|
-
"mate-simplify-code/SKILL.md": "
|
|
7284
|
-
"mate-submit-change/SKILL.md": "
|
|
7282
|
+
"mate-show-me/SKILL.md": "263dceace1b6",
|
|
7283
|
+
"mate-simplify-code/SKILL.md": "ede560857729",
|
|
7284
|
+
"mate-submit-change/SKILL.md": "bf2e8c54586e",
|
|
7285
7285
|
},
|
|
7286
7286
|
}
|
|
7287
7287
|
`;
|
|
@@ -7318,7 +7318,7 @@ exports[`runtime surface golden fixtures setup openspec × claude+opencode 2`] =
|
|
|
7318
7318
|
<rule id="wrapper-only-cli-execution" severity="critical">For every CLI declared in cli-tools, invoke the exact path in its invokeAs attribute. Correct: <wrapper-bin>/openspec status ... . Incorrect: openspec status ... . Do not run bare openspec or graphify commands and do not rely on PATH, aliases, or shell functions. If the exact wrapper path is unavailable, stop and report it.</rule>
|
|
7319
7319
|
<rule id="secret-handling" severity="critical">Never read, print, copy, or write secret files (.env, .env.*, keys, certificates, credential files such as .npmrc or .netrc) or secret values. To learn which variables exist, read only the example files (.env.example, .env.sample, .env.template, .env.dist). Refer to a secret by its variable name only. Do not print environment variables that may hold secrets. When a secret must be set or rotated, ask the user to do it instead of writing it yourself. Guarded calls are blocked; the companion's framework.yaml secrets block is the user's switch, not yours.</rule>
|
|
7320
7320
|
<rule id="openspec-scope" severity="critical">In OpenSpec, the frontmatter repository identifies the Working Repository; areas are repository-relative paths within that repository. Canonical specs use repository plus flat areas; change artifacts use paired scopes entries. In a monorepo, an Area normally stops at the package root. A cross-repository change may declare multiple scopes, but each resulting spec remains owned by one repository, and each requirement must bind its Area explicitly.</rule>
|
|
7321
|
-
<rule id="openspec-publish" severity="critical">Submit publishes nothing: it pushes an OpenSpec change folder (state: submitted) to the inbox mate/inbox to await its merge. A submitted change is not the truth: only publication lands it on the companion's default branch. openspec/specs/ is current; mate artifact project "<name>" shows the unpublished outcome. mate artifact pending --json lists them with author, touched requirements, ref and path; read one (git show <ref>:<path>/<file>) only where it touches your work or the user names it; implement or revise one only when the user names it: mate artifact take "<name>" brings it into the checkout when it is missing there, then resubmit it with mate-submit-change. Publish only through mate-publish-artifact (mate artifact publish "<name>" --json), after the user selects and confirms the commit and push, for a Delivery Group whose delivery branch is merged. It creates no tag. Never hand-commit or hand-tag one. Publish archives submitted changes and never submits: submitting is a precondition (mate-submit-change, before the merge).</rule>
|
|
7321
|
+
<rule id="openspec-publish" severity="critical">Submit publishes nothing: it pushes an OpenSpec change folder (state: submitted) to the inbox mate/inbox to await its merge. A submitted change is not the truth: only publication lands it on the companion's default branch. openspec/specs/ is current; mate artifact project "<name>" shows the unpublished outcome. mate artifact pending --json --no-merge-check lists them with author, touched requirements, ref and path; read one (git show <ref>:<path>/<file>) only where it touches your work or the user names it; implement or revise one only when the user names it: mate artifact take "<name>" brings it into the checkout when it is missing there, then resubmit it with mate-submit-change. Publish only through mate-publish-artifact (mate artifact publish "<name>" --json), after the user selects and confirms the commit and push, for a Delivery Group whose delivery branch is merged. It creates no tag. Never hand-commit or hand-tag one. Publish archives submitted changes and never submits: submitting is a precondition (mate-submit-change, before the merge).</rule>
|
|
7322
7322
|
</mandatory-rules>
|
|
7323
7323
|
</companion-policy>"
|
|
7324
7324
|
,
|
|
@@ -7365,7 +7365,7 @@ exports[`runtime surface golden fixtures setup openspec × claude+opencode 2`] =
|
|
|
7365
7365
|
<rule id="wrapper-only-cli-execution" severity="critical">For every CLI declared in cli-tools, invoke the exact path in its invokeAs attribute. Correct: $MATE_WRAPPER_BIN_PATH/openspec status ... . Incorrect: openspec status ... . Do not run bare openspec or graphify commands and do not rely on PATH, aliases, or shell functions. If the exact wrapper path is unavailable, stop and report it.</rule>
|
|
7366
7366
|
<rule id="secret-handling" severity="critical">Never read, print, copy, or write secret files (.env, .env.*, keys, certificates, credential files such as .npmrc or .netrc) or secret values. To learn which variables exist, read only the example files (.env.example, .env.sample, .env.template, .env.dist). Refer to a secret by its variable name only. Do not print environment variables that may hold secrets. When a secret must be set or rotated, ask the user to do it instead of writing it yourself. Guarded calls are blocked; the companion's framework.yaml secrets block is the user's switch, not yours.</rule>
|
|
7367
7367
|
<rule id="openspec-scope" severity="critical">In OpenSpec, the frontmatter repository identifies the Working Repository; areas are repository-relative paths within that repository. Canonical specs use repository plus flat areas; change artifacts use paired scopes entries. In a monorepo, an Area normally stops at the package root. A cross-repository change may declare multiple scopes, but each resulting spec remains owned by one repository, and each requirement must bind its Area explicitly.</rule>
|
|
7368
|
-
<rule id="openspec-publish" severity="critical">Submit publishes nothing: it pushes an OpenSpec change folder (state: submitted) to the inbox mate/inbox to await its merge. A submitted change is not the truth: only publication lands it on the companion's default branch. openspec/specs/ is current; mate artifact project "<name>" shows the unpublished outcome. mate artifact pending --json lists them with author, touched requirements, ref and path; read one (git show <ref>:<path>/<file>) only where it touches your work or the user names it; implement or revise one only when the user names it: mate artifact take "<name>" brings it into the checkout when it is missing there, then resubmit it with mate-submit-change. Publish only through mate-publish-artifact (mate artifact publish "<name>" --json), after the user selects and confirms the commit and push, for a Delivery Group whose delivery branch is merged. It creates no tag. Never hand-commit or hand-tag one. Publish archives submitted changes and never submits: submitting is a precondition (mate-submit-change, before the merge).</rule>
|
|
7368
|
+
<rule id="openspec-publish" severity="critical">Submit publishes nothing: it pushes an OpenSpec change folder (state: submitted) to the inbox mate/inbox to await its merge. A submitted change is not the truth: only publication lands it on the companion's default branch. openspec/specs/ is current; mate artifact project "<name>" shows the unpublished outcome. mate artifact pending --json --no-merge-check lists them with author, touched requirements, ref and path; read one (git show <ref>:<path>/<file>) only where it touches your work or the user names it; implement or revise one only when the user names it: mate artifact take "<name>" brings it into the checkout when it is missing there, then resubmit it with mate-submit-change. Publish only through mate-publish-artifact (mate artifact publish "<name>" --json), after the user selects and confirms the commit and push, for a Delivery Group whose delivery branch is merged. It creates no tag. Never hand-commit or hand-tag one. Publish archives submitted changes and never submits: submitting is a precondition (mate-submit-change, before the merge).</rule>
|
|
7369
7369
|
</mandatory-rules>
|
|
7370
7370
|
</companion-policy>"
|
|
7371
7371
|
,
|
|
@@ -8094,33 +8094,33 @@ Write chunks to $GRAPHIFY_OUT and read $GRAPHIFY_OUT later.
|
|
|
8094
8094
|
"Outputs land in $GRAPHIFY_OUT by default.
|
|
8095
8095
|
"
|
|
8096
8096
|
,
|
|
8097
|
-
"mate-apply-change/SKILL.md": "
|
|
8097
|
+
"mate-apply-change/SKILL.md": "340456564b7f",
|
|
8098
8098
|
"mate-apply-change/references/mate-compact-apply.md": "3f20c80a4d78",
|
|
8099
8099
|
"mate-apply-change/references/openspec-apply-change.md": "fa61cbd0bc83",
|
|
8100
|
-
"mate-archive-change/SKILL.md": "
|
|
8101
|
-
"mate-backfill-spec/SKILL.md": "
|
|
8102
|
-
"mate-clarify-intent/SKILL.md": "
|
|
8103
|
-
"mate-create-report/SKILL.md": "
|
|
8104
|
-
"mate-domain-modeling/SKILL.md": "
|
|
8100
|
+
"mate-archive-change/SKILL.md": "873bf06b5e57",
|
|
8101
|
+
"mate-backfill-spec/SKILL.md": "c79288929dea",
|
|
8102
|
+
"mate-clarify-intent/SKILL.md": "abaa8ee3b3b5",
|
|
8103
|
+
"mate-create-report/SKILL.md": "0fb49a040d6c",
|
|
8104
|
+
"mate-domain-modeling/SKILL.md": "5b9f27e88a6c",
|
|
8105
8105
|
"mate-domain-modeling/references/ADR-FORMAT.md": "824b87e87d9b",
|
|
8106
8106
|
"mate-domain-modeling/references/CONTEXT-FORMAT.md": "172622594277",
|
|
8107
|
-
"mate-explore-change/SKILL.md": "
|
|
8107
|
+
"mate-explore-change/SKILL.md": "f41800334a80",
|
|
8108
8108
|
"mate-explore-change/references/openspec-explore.md": "3cf63d55e3d2",
|
|
8109
|
-
"mate-grill-me/SKILL.md": "
|
|
8110
|
-
"mate-grill-with-docs/SKILL.md": "
|
|
8111
|
-
"mate-grilling/SKILL.md": "
|
|
8112
|
-
"mate-interview-me/SKILL.md": "
|
|
8113
|
-
"mate-propose-change/SKILL.md": "
|
|
8109
|
+
"mate-grill-me/SKILL.md": "6d713f1240ca",
|
|
8110
|
+
"mate-grill-with-docs/SKILL.md": "682f2d8123ac",
|
|
8111
|
+
"mate-grilling/SKILL.md": "0e14a416f8a3",
|
|
8112
|
+
"mate-interview-me/SKILL.md": "c35ec1f14f79",
|
|
8113
|
+
"mate-propose-change/SKILL.md": "a94163171ac9",
|
|
8114
8114
|
"mate-propose-change/references/mate-revise.md": "1f90002ee95d",
|
|
8115
8115
|
"mate-propose-change/references/openspec-propose.md": "dbd00207ffa4",
|
|
8116
8116
|
"mate-propose-change/references/openspec-update-change.md": "0b0f6dee9f1e",
|
|
8117
|
-
"mate-publish-artifact/SKILL.md": "
|
|
8117
|
+
"mate-publish-artifact/SKILL.md": "54ba2f6a8959",
|
|
8118
8118
|
"mate-publish-artifact/references/openspec.md": "83196c70960c",
|
|
8119
|
-
"mate-react-doctor/SKILL.md": "
|
|
8119
|
+
"mate-react-doctor/SKILL.md": "ec2ac7fb877c",
|
|
8120
8120
|
"mate-react-doctor/references/explain.md": "86754a7e5436",
|
|
8121
|
-
"mate-show-me/SKILL.md": "
|
|
8122
|
-
"mate-simplify-code/SKILL.md": "
|
|
8123
|
-
"mate-submit-change/SKILL.md": "
|
|
8121
|
+
"mate-show-me/SKILL.md": "263dceace1b6",
|
|
8122
|
+
"mate-simplify-code/SKILL.md": "ede560857729",
|
|
8123
|
+
"mate-submit-change/SKILL.md": "bf2e8c54586e",
|
|
8124
8124
|
},
|
|
8125
8125
|
"opencodeConfig": {
|
|
8126
8126
|
"$schema": "https://opencode.ai/config.json",
|
|
@@ -8179,33 +8179,33 @@ Write chunks to $GRAPHIFY_OUT and read $GRAPHIFY_OUT later.
|
|
|
8179
8179
|
},
|
|
8180
8180
|
"opencodeTui": null,
|
|
8181
8181
|
"sharedSkills": {
|
|
8182
|
-
"mate-apply-change/SKILL.md": "
|
|
8182
|
+
"mate-apply-change/SKILL.md": "340456564b7f",
|
|
8183
8183
|
"mate-apply-change/references/mate-compact-apply.md": "3f20c80a4d78",
|
|
8184
8184
|
"mate-apply-change/references/openspec-apply-change.md": "c132265690b4",
|
|
8185
|
-
"mate-archive-change/SKILL.md": "
|
|
8186
|
-
"mate-backfill-spec/SKILL.md": "
|
|
8187
|
-
"mate-clarify-intent/SKILL.md": "
|
|
8188
|
-
"mate-create-report/SKILL.md": "
|
|
8189
|
-
"mate-domain-modeling/SKILL.md": "
|
|
8185
|
+
"mate-archive-change/SKILL.md": "873bf06b5e57",
|
|
8186
|
+
"mate-backfill-spec/SKILL.md": "c79288929dea",
|
|
8187
|
+
"mate-clarify-intent/SKILL.md": "abaa8ee3b3b5",
|
|
8188
|
+
"mate-create-report/SKILL.md": "0fb49a040d6c",
|
|
8189
|
+
"mate-domain-modeling/SKILL.md": "5b9f27e88a6c",
|
|
8190
8190
|
"mate-domain-modeling/references/ADR-FORMAT.md": "824b87e87d9b",
|
|
8191
8191
|
"mate-domain-modeling/references/CONTEXT-FORMAT.md": "172622594277",
|
|
8192
|
-
"mate-explore-change/SKILL.md": "
|
|
8192
|
+
"mate-explore-change/SKILL.md": "f41800334a80",
|
|
8193
8193
|
"mate-explore-change/references/openspec-explore.md": "5bfcc2eefbd8",
|
|
8194
|
-
"mate-grill-me/SKILL.md": "
|
|
8195
|
-
"mate-grill-with-docs/SKILL.md": "
|
|
8196
|
-
"mate-grilling/SKILL.md": "
|
|
8197
|
-
"mate-interview-me/SKILL.md": "
|
|
8198
|
-
"mate-propose-change/SKILL.md": "
|
|
8194
|
+
"mate-grill-me/SKILL.md": "6d713f1240ca",
|
|
8195
|
+
"mate-grill-with-docs/SKILL.md": "682f2d8123ac",
|
|
8196
|
+
"mate-grilling/SKILL.md": "0e14a416f8a3",
|
|
8197
|
+
"mate-interview-me/SKILL.md": "c35ec1f14f79",
|
|
8198
|
+
"mate-propose-change/SKILL.md": "a94163171ac9",
|
|
8199
8199
|
"mate-propose-change/references/mate-revise.md": "1f90002ee95d",
|
|
8200
8200
|
"mate-propose-change/references/openspec-propose.md": "c1f1d1291283",
|
|
8201
8201
|
"mate-propose-change/references/openspec-update-change.md": "098ef729c37f",
|
|
8202
|
-
"mate-publish-artifact/SKILL.md": "
|
|
8202
|
+
"mate-publish-artifact/SKILL.md": "54ba2f6a8959",
|
|
8203
8203
|
"mate-publish-artifact/references/openspec.md": "83196c70960c",
|
|
8204
|
-
"mate-react-doctor/SKILL.md": "
|
|
8204
|
+
"mate-react-doctor/SKILL.md": "ec2ac7fb877c",
|
|
8205
8205
|
"mate-react-doctor/references/explain.md": "86754a7e5436",
|
|
8206
|
-
"mate-show-me/SKILL.md": "
|
|
8207
|
-
"mate-simplify-code/SKILL.md": "
|
|
8208
|
-
"mate-submit-change/SKILL.md": "
|
|
8206
|
+
"mate-show-me/SKILL.md": "263dceace1b6",
|
|
8207
|
+
"mate-simplify-code/SKILL.md": "ede560857729",
|
|
8208
|
+
"mate-submit-change/SKILL.md": "bf2e8c54586e",
|
|
8209
8209
|
},
|
|
8210
8210
|
}
|
|
8211
8211
|
`;
|
|
@@ -8242,7 +8242,7 @@ exports[`runtime surface golden fixtures setup all capabilities × claude+openco
|
|
|
8242
8242
|
<rule id="wrapper-only-cli-execution" severity="critical">For every CLI declared in cli-tools, invoke the exact path in its invokeAs attribute. Correct: <wrapper-bin>/openspec status ... . Incorrect: openspec status ... . Do not run bare openspec or graphify commands and do not rely on PATH, aliases, or shell functions. If the exact wrapper path is unavailable, stop and report it.</rule>
|
|
8243
8243
|
<rule id="secret-handling" severity="critical">Never read, print, copy, or write secret files (.env, .env.*, keys, certificates, credential files such as .npmrc or .netrc) or secret values. To learn which variables exist, read only the example files (.env.example, .env.sample, .env.template, .env.dist). Refer to a secret by its variable name only. Do not print environment variables that may hold secrets. When a secret must be set or rotated, ask the user to do it instead of writing it yourself. Guarded calls are blocked; the companion's framework.yaml secrets block is the user's switch, not yours.</rule>
|
|
8244
8244
|
<rule id="openspec-scope" severity="critical">In OpenSpec, the frontmatter repository identifies the Working Repository; areas are repository-relative paths within that repository. Canonical specs use repository plus flat areas; change artifacts use paired scopes entries. In a monorepo, an Area normally stops at the package root. A cross-repository change may declare multiple scopes, but each resulting spec remains owned by one repository, and each requirement must bind its Area explicitly.</rule>
|
|
8245
|
-
<rule id="openspec-publish" severity="critical">Submit publishes nothing: it pushes an OpenSpec change folder (state: submitted) to the inbox mate/inbox to await its merge. A submitted change is not the truth: only publication lands it on the companion's default branch. openspec/specs/ is current; mate artifact project "<name>" shows the unpublished outcome. mate artifact pending --json lists them with author, touched requirements, ref and path; read one (git show <ref>:<path>/<file>) only where it touches your work or the user names it; implement or revise one only when the user names it: mate artifact take "<name>" brings it into the checkout when it is missing there, then resubmit it with mate-submit-change. Publish only through mate-publish-artifact (mate artifact publish "<name>" --json), after the user selects and confirms the commit and push, for a Delivery Group whose delivery branch is merged. It creates no tag. Never hand-commit or hand-tag one. Publish archives submitted changes and never submits: submitting is a precondition (mate-submit-change, before the merge).</rule>
|
|
8245
|
+
<rule id="openspec-publish" severity="critical">Submit publishes nothing: it pushes an OpenSpec change folder (state: submitted) to the inbox mate/inbox to await its merge. A submitted change is not the truth: only publication lands it on the companion's default branch. openspec/specs/ is current; mate artifact project "<name>" shows the unpublished outcome. mate artifact pending --json --no-merge-check lists them with author, touched requirements, ref and path; read one (git show <ref>:<path>/<file>) only where it touches your work or the user names it; implement or revise one only when the user names it: mate artifact take "<name>" brings it into the checkout when it is missing there, then resubmit it with mate-submit-change. Publish only through mate-publish-artifact (mate artifact publish "<name>" --json), after the user selects and confirms the commit and push, for a Delivery Group whose delivery branch is merged. It creates no tag. Never hand-commit or hand-tag one. Publish archives submitted changes and never submits: submitting is a precondition (mate-submit-change, before the merge).</rule>
|
|
8246
8246
|
</mandatory-rules>
|
|
8247
8247
|
</companion-policy>
|
|
8248
8248
|
|
|
@@ -8313,7 +8313,7 @@ exports[`runtime surface golden fixtures setup all capabilities × claude+openco
|
|
|
8313
8313
|
<rule id="wrapper-only-cli-execution" severity="critical">For every CLI declared in cli-tools, invoke the exact path in its invokeAs attribute. Correct: $MATE_WRAPPER_BIN_PATH/openspec status ... . Incorrect: openspec status ... . Do not run bare openspec or graphify commands and do not rely on PATH, aliases, or shell functions. If the exact wrapper path is unavailable, stop and report it.</rule>
|
|
8314
8314
|
<rule id="secret-handling" severity="critical">Never read, print, copy, or write secret files (.env, .env.*, keys, certificates, credential files such as .npmrc or .netrc) or secret values. To learn which variables exist, read only the example files (.env.example, .env.sample, .env.template, .env.dist). Refer to a secret by its variable name only. Do not print environment variables that may hold secrets. When a secret must be set or rotated, ask the user to do it instead of writing it yourself. Guarded calls are blocked; the companion's framework.yaml secrets block is the user's switch, not yours.</rule>
|
|
8315
8315
|
<rule id="openspec-scope" severity="critical">In OpenSpec, the frontmatter repository identifies the Working Repository; areas are repository-relative paths within that repository. Canonical specs use repository plus flat areas; change artifacts use paired scopes entries. In a monorepo, an Area normally stops at the package root. A cross-repository change may declare multiple scopes, but each resulting spec remains owned by one repository, and each requirement must bind its Area explicitly.</rule>
|
|
8316
|
-
<rule id="openspec-publish" severity="critical">Submit publishes nothing: it pushes an OpenSpec change folder (state: submitted) to the inbox mate/inbox to await its merge. A submitted change is not the truth: only publication lands it on the companion's default branch. openspec/specs/ is current; mate artifact project "<name>" shows the unpublished outcome. mate artifact pending --json lists them with author, touched requirements, ref and path; read one (git show <ref>:<path>/<file>) only where it touches your work or the user names it; implement or revise one only when the user names it: mate artifact take "<name>" brings it into the checkout when it is missing there, then resubmit it with mate-submit-change. Publish only through mate-publish-artifact (mate artifact publish "<name>" --json), after the user selects and confirms the commit and push, for a Delivery Group whose delivery branch is merged. It creates no tag. Never hand-commit or hand-tag one. Publish archives submitted changes and never submits: submitting is a precondition (mate-submit-change, before the merge).</rule>
|
|
8316
|
+
<rule id="openspec-publish" severity="critical">Submit publishes nothing: it pushes an OpenSpec change folder (state: submitted) to the inbox mate/inbox to await its merge. A submitted change is not the truth: only publication lands it on the companion's default branch. openspec/specs/ is current; mate artifact project "<name>" shows the unpublished outcome. mate artifact pending --json --no-merge-check lists them with author, touched requirements, ref and path; read one (git show <ref>:<path>/<file>) only where it touches your work or the user names it; implement or revise one only when the user names it: mate artifact take "<name>" brings it into the checkout when it is missing there, then resubmit it with mate-submit-change. Publish only through mate-publish-artifact (mate artifact publish "<name>" --json), after the user selects and confirms the commit and push, for a Delivery Group whose delivery branch is merged. It creates no tag. Never hand-commit or hand-tag one. Publish archives submitted changes and never submits: submitting is a precondition (mate-submit-change, before the merge).</rule>
|
|
8317
8317
|
</mandatory-rules>
|
|
8318
8318
|
</companion-policy>"
|
|
8319
8319
|
,
|
|
@@ -4,8 +4,10 @@ import path from "node:path";
|
|
|
4
4
|
import type { CapabilityPlugin, RuntimeContributionsByRuntime, SetupContext } from "../plugin";
|
|
5
5
|
import type { InstallRequirement } from "../install-contract";
|
|
6
6
|
import {
|
|
7
|
+
installedVersionOutput,
|
|
7
8
|
isCommandOnPath,
|
|
8
9
|
pruneEmptyAncestors,
|
|
10
|
+
resolveCommandOnPath,
|
|
9
11
|
runCommandSilently,
|
|
10
12
|
runShellCommand,
|
|
11
13
|
} from "../utils";
|
|
@@ -13,6 +15,7 @@ import { confirm } from "../../../cli/confirm";
|
|
|
13
15
|
import { FRAMEWORK_NAME } from "../../../framework";
|
|
14
16
|
import { isDeclinedByMember, type ReadMemberChoices } from "../../../lib/member-choices";
|
|
15
17
|
import { getWrapperBinPath, withoutMateWrapperDirs } from "../../../lib/package-paths";
|
|
18
|
+
import { toolVersion, warnOnVersionDrift } from "../../../lib/tool-manifest";
|
|
16
19
|
import { resolveSecretPolicy } from "../../../runtime/policy";
|
|
17
20
|
import { isInstalledViaUvTool } from "../package-managers/uv";
|
|
18
21
|
import { stripSectionFromFile } from "../providers/agent-file-sections";
|
|
@@ -39,7 +42,7 @@ export const GRAPHIFY_STORE_SEGMENT = ".graphify";
|
|
|
39
42
|
const GRAPHIFY_SKILL_NAME = "graphify";
|
|
40
43
|
export const GRAPHIFY_OUTPUT_SUBDIR = "graphify-out";
|
|
41
44
|
|
|
42
|
-
const GRAPHIFY_INSTALL_CMD = `uv tool install graphifyy`;
|
|
45
|
+
const GRAPHIFY_INSTALL_CMD = `uv tool install graphifyy==${toolVersion("graphify")}`;
|
|
43
46
|
const GRAPHIFY_GITIGNORE_ENTRIES = [
|
|
44
47
|
"# graphify cache (contains absolute local paths)",
|
|
45
48
|
".graphify/*/graphify-out/cache/",
|
|
@@ -155,6 +158,18 @@ export interface GraphifyPluginDeps {
|
|
|
155
158
|
runCommand?: GraphifyRunCommand;
|
|
156
159
|
runProviderInstall?: GraphifyProviderInstall;
|
|
157
160
|
readMemberChoices?: ReadMemberChoices;
|
|
161
|
+
installedGraphifyVersion?: () => Promise<string | null>;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/** The real `graphify` on PATH; Mate's wrapper is skipped. */
|
|
165
|
+
function graphifyBinaryPath(): string | undefined {
|
|
166
|
+
return resolveCommandOnPath("graphify", withoutMateWrapperDirs(process.env.PATH ?? ""));
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/** What the real `graphify --version` prints, else null. */
|
|
170
|
+
async function defaultInstalledGraphifyVersion(): Promise<string | null> {
|
|
171
|
+
const binary = graphifyBinaryPath();
|
|
172
|
+
return binary ? installedVersionOutput(binary) : null;
|
|
158
173
|
}
|
|
159
174
|
|
|
160
175
|
export function createGraphifyPlugin(deps: GraphifyPluginDeps = {}): CapabilityPlugin {
|
|
@@ -206,6 +221,13 @@ export function createGraphifyPlugin(deps: GraphifyPluginDeps = {}): CapabilityP
|
|
|
206
221
|
detect: () => graphifyOnPath() || checkUvTool("graphifyy"),
|
|
207
222
|
install: () => runCommand(GRAPHIFY_INSTALL_CMD),
|
|
208
223
|
verify: () => graphifyOnPath() || checkUvTool("graphifyy"),
|
|
224
|
+
update: async () =>
|
|
225
|
+
warnOnVersionDrift(
|
|
226
|
+
"graphify",
|
|
227
|
+
await (deps.installedGraphifyVersion ?? defaultInstalledGraphifyVersion)(),
|
|
228
|
+
GRAPHIFY_INSTALL_CMD,
|
|
229
|
+
graphifyBinaryPath(),
|
|
230
|
+
),
|
|
209
231
|
},
|
|
210
232
|
],
|
|
211
233
|
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// oxlint-disable no-await-in-loop
|
|
2
|
+
import { resolveMcpServers } from "../../../lib/mcp-manager/resolve";
|
|
3
|
+
import type { ResolvedMcpServer } from "../../../lib/mcp-manager/types";
|
|
4
|
+
import { parseHeaderRef } from "../../../lib/mcp-manager/validate";
|
|
5
|
+
import { readAudienceSelection } from "../dynamic-plugins/audiences";
|
|
6
|
+
import type { CapabilityPlugin, McpServerDescriptor } from "../plugin";
|
|
7
|
+
|
|
8
|
+
export const MCP_MANAGER_PLUGIN_ID = "mcp-manager";
|
|
9
|
+
|
|
10
|
+
/** A validated declared server as a descriptor holding references only. */
|
|
11
|
+
export function toMcpServerDescriptor({ name, server }: ResolvedMcpServer): McpServerDescriptor {
|
|
12
|
+
const envRefs = server.env?.length ? { envRefs: server.env } : {};
|
|
13
|
+
if ("command" in server) {
|
|
14
|
+
return {
|
|
15
|
+
name,
|
|
16
|
+
command: server.command,
|
|
17
|
+
...(server.args ? { args: server.args } : {}),
|
|
18
|
+
...envRefs,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
const headerRefs = Object.entries(server.headers ?? {}).flatMap(([header, value]) => {
|
|
22
|
+
const ref = parseHeaderRef(value);
|
|
23
|
+
return ref ? [[header, ref] as const] : [];
|
|
24
|
+
});
|
|
25
|
+
return {
|
|
26
|
+
name,
|
|
27
|
+
url: server.url,
|
|
28
|
+
transport: server.transport ?? "http",
|
|
29
|
+
...envRefs,
|
|
30
|
+
...(headerRefs.length > 0 ? { headerRefs: Object.fromEntries(headerRefs) } : {}),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Renders the companion's `mcpManager` servers for the audience in
|
|
36
|
+
* `MATE_AUDIENCE` into every active Agent Runtime. Enabled by the section
|
|
37
|
+
* alone, so it never appears in a setup selector.
|
|
38
|
+
*/
|
|
39
|
+
export function createMcpManagerPlugin(
|
|
40
|
+
env: Record<string, string | undefined> = process.env,
|
|
41
|
+
): CapabilityPlugin {
|
|
42
|
+
return {
|
|
43
|
+
id: MCP_MANAGER_PLUGIN_ID,
|
|
44
|
+
kind: "capability",
|
|
45
|
+
label: "MCP Manager",
|
|
46
|
+
description: "MCP servers the companion declares in framework.yaml.",
|
|
47
|
+
defaultSelected: false,
|
|
48
|
+
selectable: false,
|
|
49
|
+
isEnabled: (config) => config.mcpManager !== undefined,
|
|
50
|
+
getInstallRequirements: () => [],
|
|
51
|
+
async apply(ctx) {
|
|
52
|
+
const servers = resolveMcpServers(ctx.config, readAudienceSelection(env));
|
|
53
|
+
if (servers.length === 0) return;
|
|
54
|
+
const owners = (await ctx.mcp?.owners?.()) ?? new Map<string, string>();
|
|
55
|
+
const declared = Object.keys(ctx.config.mcpManager?.servers ?? {});
|
|
56
|
+
const clashes = declared.flatMap((name) => {
|
|
57
|
+
const owner = owners.get(name);
|
|
58
|
+
return owner ? [`"${name}" (also registered by the "${owner}" Capability)`] : [];
|
|
59
|
+
});
|
|
60
|
+
if (clashes.length > 0) {
|
|
61
|
+
const reason = `${MCP_MANAGER_PLUGIN_ID}: error: mcpManager declares MCP server ${clashes.join(", ")}; rename it in mcpManager.servers. No mcpManager server was rendered.`;
|
|
62
|
+
if (ctx.mcp?.withhold) {
|
|
63
|
+
ctx.mcp.withhold(reason);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
throw new Error(reason);
|
|
67
|
+
}
|
|
68
|
+
for (const server of servers) {
|
|
69
|
+
await ctx.mcp?.register(toMcpServerDescriptor(server));
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
async teardown() {},
|
|
73
|
+
};
|
|
74
|
+
}
|