@uniqbit/mate-core 1.0.0-canary.2 → 1.0.0-canary.5
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/claude-plugin/hooks/hooks.json +21 -1
- package/claude-plugin/hooks/session-attention.mjs +10 -0
- package/claude-plugin/hooks/session-end.mjs +9 -0
- package/claude-plugin/hooks/session-guidance.mjs +1 -1
- package/opencode-plugin/src/server.ts +13 -2
- package/opencode-plugin/src/tui.tsx +1 -1
- package/opencode-plugin/tui.tsx +2 -1
- package/package.json +1 -1
- package/src/cli/commands/artifact/delivery/archive.ts +2 -2
- package/src/cli/commands/artifact/delivery/link.ts +22 -5
- package/src/cli/commands/artifact/delivery/output.ts +9 -1
- package/src/cli/commands/artifact/finish/openspec.ts +1 -3
- package/src/cli/commands/companion/companion.ts +1 -1
- package/src/cli/commands/companion/link.ts +36 -4
- package/src/cli/commands/companion/open.ts +40 -12
- package/src/cli/commands/doctor.ts +122 -0
- package/src/cli/commands/session/prepare.ts +32 -4
- package/src/cli/commands/session/registry.ts +90 -0
- package/src/cli/commands/studio/companion-removal.ts +79 -0
- package/src/cli/commands/studio/mate-inventory.ts +1 -1
- package/src/cli/commands/studio/payload.ts +12 -1
- package/src/cli/commands/studio/server.ts +39 -16
- package/src/cli/commands/studio/services.ts +20 -0
- package/src/cli/commands/studio/skill-files.ts +133 -0
- package/src/cli/commands/studio/vault.ts +218 -44
- package/src/cli/commands/studio/views/model.ts +0 -5
- package/src/cli/commands/studio/views/vault/markdown-tree.ts +255 -4
- package/src/cli/commands/unwrap.ts +8 -0
- package/src/cli/commands/update.ts +26 -8
- package/src/cli/commands/vscode/setup.ts +155 -0
- package/src/cli/commands/vscode/vsix.ts +73 -0
- package/src/cli/commands/working/cleanup.ts +34 -10
- package/src/cli/commands/working/worktree.ts +58 -8
- package/src/cli/commands/wrap.ts +33 -7
- package/src/cli/main.ts +9 -2
- package/src/cli/usage.ts +6 -1
- package/src/hooks/companion-instructions.ts +19 -11
- package/src/hooks/hook-io.ts +15 -0
- package/src/hooks/session-banner.ts +5 -3
- package/src/hooks/session-end.ts +10 -0
- package/src/hooks/session-guidance.ts +10 -6
- package/src/hooks/session-prepare.ts +47 -31
- package/src/hooks/session-register.ts +199 -0
- package/src/hooks/tokensave-route.ts +7 -3
- package/src/hooks/validate-artifact-path.ts +9 -2
- package/src/lib/delivery/archive-change.ts +0 -1
- package/src/lib/delivery/branches.ts +15 -0
- package/src/lib/delivery/record-delivery.ts +94 -39
- package/src/lib/delivery/record.ts +30 -28
- package/src/lib/delivery/refresh.ts +37 -17
- package/src/lib/delivery/resolve-branch.ts +258 -37
- package/src/lib/factory/outcomes/index.ts +11 -1
- package/src/lib/factory/runtime.ts +10 -1
- package/src/lib/opencode-server.ts +238 -0
- package/src/lib/orchestrator/adapters/claude.ts +147 -2
- package/src/lib/orchestrator/adapters/opencode.ts +53 -2
- package/src/lib/orchestrator/checkout-adoption.ts +125 -0
- package/src/lib/orchestrator/companion-registry-store.ts +6 -2
- package/src/lib/orchestrator/editor.ts +2 -2
- package/src/lib/orchestrator/framework-context.ts +26 -14
- package/src/lib/orchestrator/global-config-store.ts +11 -0
- package/src/lib/orchestrator/launcher.ts +15 -2
- package/src/lib/orchestrator/projection-claude-links.ts +52 -5
- package/src/lib/orchestrator/projection-claude-skills.ts +28 -2
- package/src/lib/orchestrator/projection-companion-link.ts +12 -1
- package/src/lib/orchestrator/registry-checkouts.ts +177 -0
- package/src/lib/orchestrator/repository-link.ts +216 -57
- package/src/lib/orchestrator/serving-claude-wrap.ts +43 -0
- package/src/lib/orchestrator/session-context-link.ts +11 -5
- package/src/lib/orchestrator/session-prepare.ts +36 -6
- package/src/lib/orchestrator/types.ts +5 -0
- package/src/lib/orchestrator/workspace-inventory.ts +5 -1
- package/src/lib/public-npm.ts +17 -0
- package/src/lib/session-attribution.ts +52 -0
- package/src/lib/session-state.ts +285 -0
- package/src/lib/session-stop.ts +64 -0
- package/src/lib/workset/record.ts +20 -0
- package/src/lib/workset/worktree.ts +85 -17
- package/src/opencode/background-server.ts +145 -0
- package/src/opencode/companion-hooks.ts +3 -1
- package/src/opencode/companion-policy.ts +2 -2
- package/src/opencode/projected-guidance.ts +2 -1
- package/src/opencode/session-register.ts +176 -0
- package/src/opencode/tui.tsx +19 -29
- package/src/runtime/claude-delivery-plan.ts +14 -3
- package/src/runtime/current-branch.ts +10 -0
- package/src/runtime/env.ts +13 -7
- package/src/runtime/git-layout.ts +164 -17
- package/src/runtime/launch-env-guard.ts +65 -0
- package/src/runtime/opencode-server-record.ts +136 -0
- package/src/runtime/projection.ts +40 -6
- package/src/runtime/repo-local.ts +6 -1
- package/src/runtime/serving-claude-wrap.ts +28 -0
- package/src/runtime/session-context.ts +4 -3
- package/src/runtime/session-registry.ts +434 -0
- package/src/runtime/tokensave-route.ts +10 -5
- package/src/runtime/wrap-state.ts +31 -0
- package/src/studio.ts +2 -0
- package/src/templates/mate-skills/agents/mate-apply-change/SKILL.md +49 -21
- package/src/templates/mate-skills/agents/mate-archive-change/SKILL.md +0 -5
- package/src/templates/mate-skills/agents/mate-propose-change/SKILL.md +2 -8
- package/src/templates/mate-skills/agents/mate-propose-change/references/mate-revise.md +1 -3
- package/src/templates/mate-skills/agents/mate-publish-artifact/SKILL.md +2 -4
- package/src/templates/mate-skills/claude/mate-apply-change/SKILL.md +49 -21
- package/src/templates/mate-skills/claude/mate-archive-change/SKILL.md +0 -5
- package/src/templates/mate-skills/claude/mate-propose-change/SKILL.md +2 -8
- package/src/templates/mate-skills/claude/mate-propose-change/references/mate-revise.md +1 -3
- package/src/templates/mate-skills/claude/mate-publish-artifact/SKILL.md +2 -4
- package/src/tools/setup/__snapshots__/runtime-surface-golden.test.ts.snap +404 -30
- package/src/tools/setup/dynamic-plugins/hydrate.ts +4 -3
- package/src/tools/setup/providers/claude-plugin-hooks.ts +26 -0
- package/src/tools/setup/providers/claude.ts +21 -1
- package/studio-dist/client/assets/app-CdPiFv59.css +2 -0
- package/studio-dist/client/assets/button-BIIHE0EQ.js +3 -0
- package/studio-dist/client/assets/companion-view-DM6YyXaR.js +1 -0
- package/studio-dist/client/assets/delivery-path-DELxj0Av.js +1 -0
- package/studio-dist/client/assets/factory-BZy0E8ty.js +4 -0
- package/studio-dist/client/assets/index-B3wkMzjA.js +40 -0
- package/studio-dist/client/assets/markdown-view-pQ2Qp_i5.js +1 -0
- package/studio-dist/client/assets/panel-CbajlC3p.js +1 -0
- package/studio-dist/client/assets/{prepaint-CD5OpmTM.js → prepaint-CwSrpdFA.js} +7 -4
- package/studio-dist/client/assets/react-CN2GSx7x.js +1 -0
- package/studio-dist/client/assets/reports-DllhYQ5_.js +1 -0
- package/studio-dist/client/assets/routes-COm-G3mK.js +1 -0
- package/studio-dist/client/assets/skills-DmWAy-jZ.js +1 -0
- package/studio-dist/client/assets/specs-BG3Wi3ln.js +1 -0
- package/studio-dist/client/assets/steps-DFsH3Neu.js +1 -0
- package/studio-dist/client/assets/vault-B2q1nBY5.js +1 -0
- package/studio-dist/client/assets/warnings-BSXIyuSQ.js +1 -0
- package/studio-dist/client/assets/workflow-DlsQD6Hc.js +1 -0
- package/studio-dist/server/assets/{__23tanstack-start-server-fn-resolver-BQKuMdJW.js → __23tanstack-start-server-fn-resolver-M2GBs8s3.js} +179 -9
- package/studio-dist/server/assets/_tanstack-start-manifest_v.js +35 -25
- package/studio-dist/server/assets/button-CIJqAhni.js +11929 -0
- package/studio-dist/server/assets/{companion-view-aBady57v.js → companion-view-DISASvdJ.js} +13 -7
- package/studio-dist/server/assets/companions-BYbHWKOZ.js +15 -0
- package/studio-dist/server/assets/delivery-path-C29fBynY.js +654 -0
- package/studio-dist/server/assets/{factory-DT3UzHlh.js → factory-DGPmNGbo.js} +1 -0
- package/studio-dist/server/assets/{factory-D6xnjedJ.js → factory-DUTa0eDs.js} +317 -530
- package/studio-dist/server/assets/markdown-view-Bn7xPdks.js +86 -0
- package/studio-dist/server/assets/panel-3Jmn4awF.js +169 -0
- package/studio-dist/server/assets/{prepaint-BMke0fo1.js → prepaint-DJfTQ_VH.js} +6 -2
- package/studio-dist/server/assets/{react-COs0LHn-.js → react-Ce6dj15C.js} +4 -9
- package/studio-dist/server/assets/reports-C06RXVE2.js +18 -0
- package/studio-dist/server/assets/reports-D6YMqhnO.js +142 -0
- package/studio-dist/server/assets/router-C8MGqlAY.js +13713 -0
- package/studio-dist/server/assets/routes-BcFgvqf7.js +622 -0
- package/studio-dist/server/assets/{shell-CboT2f66.js → shell-DS3wUexh.js} +1 -0
- package/studio-dist/server/assets/skills-BEnOxiDl.js +266 -0
- package/studio-dist/server/assets/skills-CtrBAtX3.js +28 -0
- package/studio-dist/server/assets/specs-C8rv34-5.js +211 -0
- package/studio-dist/server/assets/{start-BW5ovN0k.js → start-h3ICWwd2.js} +4 -1
- package/studio-dist/server/assets/steps-Dq_CwY_s.js +181 -0
- package/studio-dist/server/assets/{vault-BGulVoNh.js → vault-BmWnryh3.js} +16 -1
- package/studio-dist/server/assets/vault-Fvxt2Tzl.js +1032 -0
- package/studio-dist/server/assets/{views-Bd7cRr27.js → views-BgYa-za2.js} +1 -3
- package/studio-dist/server/assets/warnings-DzR6fyZh.js +23 -0
- package/studio-dist/server/assets/workflow-liRYecHk.js +73 -0
- package/studio-dist/server/server.js +3 -157
- package/studio-dist/client/assets/companion-view-Csva26Ir.js +0 -1
- package/studio-dist/client/assets/delivery-path-DJMpRmiY.js +0 -1
- package/studio-dist/client/assets/factory-B7l9ZQyx.js +0 -4
- package/studio-dist/client/assets/index-n6uo_92S.js +0 -40
- package/studio-dist/client/assets/queries-CN3JwMBX.js +0 -1
- package/studio-dist/client/assets/react-CabXf2Ds.js +0 -1
- package/studio-dist/client/assets/report-time-Dc-KOqQu.js +0 -1
- package/studio-dist/client/assets/reports-C01RsnMA.js +0 -1
- package/studio-dist/client/assets/routes-4pbC-2Hj.js +0 -1
- package/studio-dist/client/assets/skills-CihQganl.js +0 -1
- package/studio-dist/client/assets/spec-areas-C2L48N4C.js +0 -1
- package/studio-dist/client/assets/specs-D24_35_K.js +0 -1
- package/studio-dist/client/assets/studio-DKxfi691.css +0 -1
- package/studio-dist/client/assets/studio-queries-rvbJupCy.js +0 -3
- package/studio-dist/client/assets/vault-Bd4CQiTK.js +0 -1
- package/studio-dist/client/assets/warnings-V_Ys51wJ.js +0 -1
- package/studio-dist/client/assets/workflow-BJejeVwQ.js +0 -1
- package/studio-dist/server/assets/delivery-path-BkKNjgkf.js +0 -778
- package/studio-dist/server/assets/queries-Ag2iL8q2.js +0 -107
- package/studio-dist/server/assets/report-time-DAfzln-N.js +0 -8
- package/studio-dist/server/assets/reports-BnUNJVtx.js +0 -126
- package/studio-dist/server/assets/router-BH--drIx.js +0 -4298
- package/studio-dist/server/assets/routes-khSDK1bV.js +0 -361
- package/studio-dist/server/assets/skills-MWYnWoKs.js +0 -106
- package/studio-dist/server/assets/spec-areas-DcnO6vW-.js +0 -16
- package/studio-dist/server/assets/specs-DE3w8hZP.js +0 -155
- package/studio-dist/server/assets/studio-queries-CLnP9kGu.js +0 -3365
- package/studio-dist/server/assets/vault-CuyyhLyB.js +0 -832
- package/studio-dist/server/assets/warnings-BH05rOuG.js +0 -15
- package/studio-dist/server/assets/workflow-BSuIKWqH.js +0 -42
|
@@ -257,6 +257,40 @@ exports[`runtime surface golden fixtures setup graphify × claude 3`] = `
|
|
|
257
257
|
},
|
|
258
258
|
],
|
|
259
259
|
},
|
|
260
|
+
{
|
|
261
|
+
"at": [
|
|
262
|
+
"hooks",
|
|
263
|
+
"SessionEnd",
|
|
264
|
+
],
|
|
265
|
+
"kind": "list",
|
|
266
|
+
"values": [
|
|
267
|
+
{
|
|
268
|
+
"hooks": [
|
|
269
|
+
{
|
|
270
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-end.mjs" --projected",
|
|
271
|
+
"type": "command",
|
|
272
|
+
},
|
|
273
|
+
],
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"at": [
|
|
279
|
+
"hooks",
|
|
280
|
+
"Notification",
|
|
281
|
+
],
|
|
282
|
+
"kind": "list",
|
|
283
|
+
"values": [
|
|
284
|
+
{
|
|
285
|
+
"hooks": [
|
|
286
|
+
{
|
|
287
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-attention.mjs" --projected",
|
|
288
|
+
"type": "command",
|
|
289
|
+
},
|
|
290
|
+
],
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
},
|
|
260
294
|
{
|
|
261
295
|
"at": [
|
|
262
296
|
"env",
|
|
@@ -1061,6 +1095,40 @@ exports[`runtime surface golden fixtures setup graphify × claude+opencode 3`] =
|
|
|
1061
1095
|
},
|
|
1062
1096
|
],
|
|
1063
1097
|
},
|
|
1098
|
+
{
|
|
1099
|
+
"at": [
|
|
1100
|
+
"hooks",
|
|
1101
|
+
"SessionEnd",
|
|
1102
|
+
],
|
|
1103
|
+
"kind": "list",
|
|
1104
|
+
"values": [
|
|
1105
|
+
{
|
|
1106
|
+
"hooks": [
|
|
1107
|
+
{
|
|
1108
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-end.mjs" --projected",
|
|
1109
|
+
"type": "command",
|
|
1110
|
+
},
|
|
1111
|
+
],
|
|
1112
|
+
},
|
|
1113
|
+
],
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
"at": [
|
|
1117
|
+
"hooks",
|
|
1118
|
+
"Notification",
|
|
1119
|
+
],
|
|
1120
|
+
"kind": "list",
|
|
1121
|
+
"values": [
|
|
1122
|
+
{
|
|
1123
|
+
"hooks": [
|
|
1124
|
+
{
|
|
1125
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-attention.mjs" --projected",
|
|
1126
|
+
"type": "command",
|
|
1127
|
+
},
|
|
1128
|
+
],
|
|
1129
|
+
},
|
|
1130
|
+
],
|
|
1131
|
+
},
|
|
1064
1132
|
{
|
|
1065
1133
|
"at": [
|
|
1066
1134
|
"env",
|
|
@@ -1672,6 +1740,40 @@ exports[`runtime surface golden fixtures setup tokensave × claude 3`] = `
|
|
|
1672
1740
|
},
|
|
1673
1741
|
],
|
|
1674
1742
|
},
|
|
1743
|
+
{
|
|
1744
|
+
"at": [
|
|
1745
|
+
"hooks",
|
|
1746
|
+
"SessionEnd",
|
|
1747
|
+
],
|
|
1748
|
+
"kind": "list",
|
|
1749
|
+
"values": [
|
|
1750
|
+
{
|
|
1751
|
+
"hooks": [
|
|
1752
|
+
{
|
|
1753
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-end.mjs" --projected",
|
|
1754
|
+
"type": "command",
|
|
1755
|
+
},
|
|
1756
|
+
],
|
|
1757
|
+
},
|
|
1758
|
+
],
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"at": [
|
|
1762
|
+
"hooks",
|
|
1763
|
+
"Notification",
|
|
1764
|
+
],
|
|
1765
|
+
"kind": "list",
|
|
1766
|
+
"values": [
|
|
1767
|
+
{
|
|
1768
|
+
"hooks": [
|
|
1769
|
+
{
|
|
1770
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-attention.mjs" --projected",
|
|
1771
|
+
"type": "command",
|
|
1772
|
+
},
|
|
1773
|
+
],
|
|
1774
|
+
},
|
|
1775
|
+
],
|
|
1776
|
+
},
|
|
1675
1777
|
{
|
|
1676
1778
|
"at": [
|
|
1677
1779
|
"hooks",
|
|
@@ -2553,6 +2655,40 @@ exports[`runtime surface golden fixtures setup tokensave × claude+opencode 3`]
|
|
|
2553
2655
|
},
|
|
2554
2656
|
],
|
|
2555
2657
|
},
|
|
2658
|
+
{
|
|
2659
|
+
"at": [
|
|
2660
|
+
"hooks",
|
|
2661
|
+
"SessionEnd",
|
|
2662
|
+
],
|
|
2663
|
+
"kind": "list",
|
|
2664
|
+
"values": [
|
|
2665
|
+
{
|
|
2666
|
+
"hooks": [
|
|
2667
|
+
{
|
|
2668
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-end.mjs" --projected",
|
|
2669
|
+
"type": "command",
|
|
2670
|
+
},
|
|
2671
|
+
],
|
|
2672
|
+
},
|
|
2673
|
+
],
|
|
2674
|
+
},
|
|
2675
|
+
{
|
|
2676
|
+
"at": [
|
|
2677
|
+
"hooks",
|
|
2678
|
+
"Notification",
|
|
2679
|
+
],
|
|
2680
|
+
"kind": "list",
|
|
2681
|
+
"values": [
|
|
2682
|
+
{
|
|
2683
|
+
"hooks": [
|
|
2684
|
+
{
|
|
2685
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-attention.mjs" --projected",
|
|
2686
|
+
"type": "command",
|
|
2687
|
+
},
|
|
2688
|
+
],
|
|
2689
|
+
},
|
|
2690
|
+
],
|
|
2691
|
+
},
|
|
2556
2692
|
{
|
|
2557
2693
|
"at": [
|
|
2558
2694
|
"hooks",
|
|
@@ -3173,6 +3309,40 @@ exports[`runtime surface golden fixtures setup context-mode × claude 3`] = `
|
|
|
3173
3309
|
},
|
|
3174
3310
|
],
|
|
3175
3311
|
},
|
|
3312
|
+
{
|
|
3313
|
+
"at": [
|
|
3314
|
+
"hooks",
|
|
3315
|
+
"SessionEnd",
|
|
3316
|
+
],
|
|
3317
|
+
"kind": "list",
|
|
3318
|
+
"values": [
|
|
3319
|
+
{
|
|
3320
|
+
"hooks": [
|
|
3321
|
+
{
|
|
3322
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-end.mjs" --projected",
|
|
3323
|
+
"type": "command",
|
|
3324
|
+
},
|
|
3325
|
+
],
|
|
3326
|
+
},
|
|
3327
|
+
],
|
|
3328
|
+
},
|
|
3329
|
+
{
|
|
3330
|
+
"at": [
|
|
3331
|
+
"hooks",
|
|
3332
|
+
"Notification",
|
|
3333
|
+
],
|
|
3334
|
+
"kind": "list",
|
|
3335
|
+
"values": [
|
|
3336
|
+
{
|
|
3337
|
+
"hooks": [
|
|
3338
|
+
{
|
|
3339
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-attention.mjs" --projected",
|
|
3340
|
+
"type": "command",
|
|
3341
|
+
},
|
|
3342
|
+
],
|
|
3343
|
+
},
|
|
3344
|
+
],
|
|
3345
|
+
},
|
|
3176
3346
|
{
|
|
3177
3347
|
"at": [
|
|
3178
3348
|
"env",
|
|
@@ -3894,6 +4064,40 @@ exports[`runtime surface golden fixtures setup context-mode × claude+opencode 3
|
|
|
3894
4064
|
},
|
|
3895
4065
|
],
|
|
3896
4066
|
},
|
|
4067
|
+
{
|
|
4068
|
+
"at": [
|
|
4069
|
+
"hooks",
|
|
4070
|
+
"SessionEnd",
|
|
4071
|
+
],
|
|
4072
|
+
"kind": "list",
|
|
4073
|
+
"values": [
|
|
4074
|
+
{
|
|
4075
|
+
"hooks": [
|
|
4076
|
+
{
|
|
4077
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-end.mjs" --projected",
|
|
4078
|
+
"type": "command",
|
|
4079
|
+
},
|
|
4080
|
+
],
|
|
4081
|
+
},
|
|
4082
|
+
],
|
|
4083
|
+
},
|
|
4084
|
+
{
|
|
4085
|
+
"at": [
|
|
4086
|
+
"hooks",
|
|
4087
|
+
"Notification",
|
|
4088
|
+
],
|
|
4089
|
+
"kind": "list",
|
|
4090
|
+
"values": [
|
|
4091
|
+
{
|
|
4092
|
+
"hooks": [
|
|
4093
|
+
{
|
|
4094
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-attention.mjs" --projected",
|
|
4095
|
+
"type": "command",
|
|
4096
|
+
},
|
|
4097
|
+
],
|
|
4098
|
+
},
|
|
4099
|
+
],
|
|
4100
|
+
},
|
|
3897
4101
|
{
|
|
3898
4102
|
"at": [
|
|
3899
4103
|
"env",
|
|
@@ -4439,6 +4643,40 @@ exports[`runtime surface golden fixtures setup react-doctor × claude 3`] = `
|
|
|
4439
4643
|
},
|
|
4440
4644
|
],
|
|
4441
4645
|
},
|
|
4646
|
+
{
|
|
4647
|
+
"at": [
|
|
4648
|
+
"hooks",
|
|
4649
|
+
"SessionEnd",
|
|
4650
|
+
],
|
|
4651
|
+
"kind": "list",
|
|
4652
|
+
"values": [
|
|
4653
|
+
{
|
|
4654
|
+
"hooks": [
|
|
4655
|
+
{
|
|
4656
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-end.mjs" --projected",
|
|
4657
|
+
"type": "command",
|
|
4658
|
+
},
|
|
4659
|
+
],
|
|
4660
|
+
},
|
|
4661
|
+
],
|
|
4662
|
+
},
|
|
4663
|
+
{
|
|
4664
|
+
"at": [
|
|
4665
|
+
"hooks",
|
|
4666
|
+
"Notification",
|
|
4667
|
+
],
|
|
4668
|
+
"kind": "list",
|
|
4669
|
+
"values": [
|
|
4670
|
+
{
|
|
4671
|
+
"hooks": [
|
|
4672
|
+
{
|
|
4673
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-attention.mjs" --projected",
|
|
4674
|
+
"type": "command",
|
|
4675
|
+
},
|
|
4676
|
+
],
|
|
4677
|
+
},
|
|
4678
|
+
],
|
|
4679
|
+
},
|
|
4442
4680
|
{
|
|
4443
4681
|
"at": [
|
|
4444
4682
|
"env",
|
|
@@ -5144,6 +5382,40 @@ exports[`runtime surface golden fixtures setup react-doctor × claude+opencode 3
|
|
|
5144
5382
|
},
|
|
5145
5383
|
],
|
|
5146
5384
|
},
|
|
5385
|
+
{
|
|
5386
|
+
"at": [
|
|
5387
|
+
"hooks",
|
|
5388
|
+
"SessionEnd",
|
|
5389
|
+
],
|
|
5390
|
+
"kind": "list",
|
|
5391
|
+
"values": [
|
|
5392
|
+
{
|
|
5393
|
+
"hooks": [
|
|
5394
|
+
{
|
|
5395
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-end.mjs" --projected",
|
|
5396
|
+
"type": "command",
|
|
5397
|
+
},
|
|
5398
|
+
],
|
|
5399
|
+
},
|
|
5400
|
+
],
|
|
5401
|
+
},
|
|
5402
|
+
{
|
|
5403
|
+
"at": [
|
|
5404
|
+
"hooks",
|
|
5405
|
+
"Notification",
|
|
5406
|
+
],
|
|
5407
|
+
"kind": "list",
|
|
5408
|
+
"values": [
|
|
5409
|
+
{
|
|
5410
|
+
"hooks": [
|
|
5411
|
+
{
|
|
5412
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-attention.mjs" --projected",
|
|
5413
|
+
"type": "command",
|
|
5414
|
+
},
|
|
5415
|
+
],
|
|
5416
|
+
},
|
|
5417
|
+
],
|
|
5418
|
+
},
|
|
5147
5419
|
{
|
|
5148
5420
|
"at": [
|
|
5149
5421
|
"env",
|
|
@@ -5563,10 +5835,10 @@ exports[`runtime surface golden fixtures setup openspec × claude 1`] = `
|
|
|
5563
5835
|
},
|
|
5564
5836
|
},
|
|
5565
5837
|
"claudeSkills": {
|
|
5566
|
-
"mate-apply-change/SKILL.md": "
|
|
5838
|
+
"mate-apply-change/SKILL.md": "898e51f592f8",
|
|
5567
5839
|
"mate-apply-change/references/mate-compact-apply.md": "3f20c80a4d78",
|
|
5568
5840
|
"mate-apply-change/references/openspec-apply-change.md": "d11b6fc25bf4",
|
|
5569
|
-
"mate-archive-change/SKILL.md": "
|
|
5841
|
+
"mate-archive-change/SKILL.md": "a231ddabb438",
|
|
5570
5842
|
"mate-backfill-spec/SKILL.md": "d07cd4a60169",
|
|
5571
5843
|
"mate-clarify-intent/SKILL.md": "a2e38ae50f05",
|
|
5572
5844
|
"mate-create-report/SKILL.md": "7db1adecbc1a",
|
|
@@ -5579,11 +5851,11 @@ exports[`runtime surface golden fixtures setup openspec × claude 1`] = `
|
|
|
5579
5851
|
"mate-grill-with-docs/SKILL.md": "b542b610c484",
|
|
5580
5852
|
"mate-grilling/SKILL.md": "f37ff4dd9b6d",
|
|
5581
5853
|
"mate-interview-me/SKILL.md": "b48d9804c423",
|
|
5582
|
-
"mate-propose-change/SKILL.md": "
|
|
5583
|
-
"mate-propose-change/references/mate-revise.md": "
|
|
5854
|
+
"mate-propose-change/SKILL.md": "b5e1eb6e0b0c",
|
|
5855
|
+
"mate-propose-change/references/mate-revise.md": "fab04cde133f",
|
|
5584
5856
|
"mate-propose-change/references/openspec-propose.md": "dbd00207ffa4",
|
|
5585
5857
|
"mate-propose-change/references/openspec-update-change.md": "678af6ec1889",
|
|
5586
|
-
"mate-publish-artifact/SKILL.md": "
|
|
5858
|
+
"mate-publish-artifact/SKILL.md": "532edb58212d",
|
|
5587
5859
|
"mate-publish-artifact/references/openspec.md": "d004aed5cf3f",
|
|
5588
5860
|
"mate-show-me/SKILL.md": "908f009299ac",
|
|
5589
5861
|
"mate-simplify-code/SKILL.md": "a728118654f8",
|
|
@@ -5727,6 +5999,40 @@ exports[`runtime surface golden fixtures setup openspec × claude 3`] = `
|
|
|
5727
5999
|
},
|
|
5728
6000
|
],
|
|
5729
6001
|
},
|
|
6002
|
+
{
|
|
6003
|
+
"at": [
|
|
6004
|
+
"hooks",
|
|
6005
|
+
"SessionEnd",
|
|
6006
|
+
],
|
|
6007
|
+
"kind": "list",
|
|
6008
|
+
"values": [
|
|
6009
|
+
{
|
|
6010
|
+
"hooks": [
|
|
6011
|
+
{
|
|
6012
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-end.mjs" --projected",
|
|
6013
|
+
"type": "command",
|
|
6014
|
+
},
|
|
6015
|
+
],
|
|
6016
|
+
},
|
|
6017
|
+
],
|
|
6018
|
+
},
|
|
6019
|
+
{
|
|
6020
|
+
"at": [
|
|
6021
|
+
"hooks",
|
|
6022
|
+
"Notification",
|
|
6023
|
+
],
|
|
6024
|
+
"kind": "list",
|
|
6025
|
+
"values": [
|
|
6026
|
+
{
|
|
6027
|
+
"hooks": [
|
|
6028
|
+
{
|
|
6029
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-attention.mjs" --projected",
|
|
6030
|
+
"type": "command",
|
|
6031
|
+
},
|
|
6032
|
+
],
|
|
6033
|
+
},
|
|
6034
|
+
],
|
|
6035
|
+
},
|
|
5730
6036
|
{
|
|
5731
6037
|
"at": [
|
|
5732
6038
|
"env",
|
|
@@ -5873,10 +6179,10 @@ exports[`runtime surface golden fixtures setup openspec × opencode 1`] = `
|
|
|
5873
6179
|
"opencodeSkills": {},
|
|
5874
6180
|
"opencodeTui": null,
|
|
5875
6181
|
"sharedSkills": {
|
|
5876
|
-
"mate-apply-change/SKILL.md": "
|
|
6182
|
+
"mate-apply-change/SKILL.md": "898e51f592f8",
|
|
5877
6183
|
"mate-apply-change/references/mate-compact-apply.md": "3f20c80a4d78",
|
|
5878
6184
|
"mate-apply-change/references/openspec-apply-change.md": "de22021f4daa",
|
|
5879
|
-
"mate-archive-change/SKILL.md": "
|
|
6185
|
+
"mate-archive-change/SKILL.md": "a231ddabb438",
|
|
5880
6186
|
"mate-backfill-spec/SKILL.md": "d07cd4a60169",
|
|
5881
6187
|
"mate-clarify-intent/SKILL.md": "a2e38ae50f05",
|
|
5882
6188
|
"mate-create-report/SKILL.md": "7db1adecbc1a",
|
|
@@ -5889,11 +6195,11 @@ exports[`runtime surface golden fixtures setup openspec × opencode 1`] = `
|
|
|
5889
6195
|
"mate-grill-with-docs/SKILL.md": "b542b610c484",
|
|
5890
6196
|
"mate-grilling/SKILL.md": "f37ff4dd9b6d",
|
|
5891
6197
|
"mate-interview-me/SKILL.md": "b48d9804c423",
|
|
5892
|
-
"mate-propose-change/SKILL.md": "
|
|
5893
|
-
"mate-propose-change/references/mate-revise.md": "
|
|
6198
|
+
"mate-propose-change/SKILL.md": "b5e1eb6e0b0c",
|
|
6199
|
+
"mate-propose-change/references/mate-revise.md": "fab04cde133f",
|
|
5894
6200
|
"mate-propose-change/references/openspec-propose.md": "c1f1d1291283",
|
|
5895
6201
|
"mate-propose-change/references/openspec-update-change.md": "cdb8d6c17526",
|
|
5896
|
-
"mate-publish-artifact/SKILL.md": "
|
|
6202
|
+
"mate-publish-artifact/SKILL.md": "532edb58212d",
|
|
5897
6203
|
"mate-publish-artifact/references/openspec.md": "d004aed5cf3f",
|
|
5898
6204
|
"mate-show-me/SKILL.md": "908f009299ac",
|
|
5899
6205
|
"mate-simplify-code/SKILL.md": "a728118654f8",
|
|
@@ -6284,10 +6590,10 @@ exports[`runtime surface golden fixtures setup openspec × claude+opencode 1`] =
|
|
|
6284
6590
|
},
|
|
6285
6591
|
},
|
|
6286
6592
|
"claudeSkills": {
|
|
6287
|
-
"mate-apply-change/SKILL.md": "
|
|
6593
|
+
"mate-apply-change/SKILL.md": "898e51f592f8",
|
|
6288
6594
|
"mate-apply-change/references/mate-compact-apply.md": "3f20c80a4d78",
|
|
6289
6595
|
"mate-apply-change/references/openspec-apply-change.md": "d11b6fc25bf4",
|
|
6290
|
-
"mate-archive-change/SKILL.md": "
|
|
6596
|
+
"mate-archive-change/SKILL.md": "a231ddabb438",
|
|
6291
6597
|
"mate-backfill-spec/SKILL.md": "d07cd4a60169",
|
|
6292
6598
|
"mate-clarify-intent/SKILL.md": "a2e38ae50f05",
|
|
6293
6599
|
"mate-create-report/SKILL.md": "7db1adecbc1a",
|
|
@@ -6300,11 +6606,11 @@ exports[`runtime surface golden fixtures setup openspec × claude+opencode 1`] =
|
|
|
6300
6606
|
"mate-grill-with-docs/SKILL.md": "b542b610c484",
|
|
6301
6607
|
"mate-grilling/SKILL.md": "f37ff4dd9b6d",
|
|
6302
6608
|
"mate-interview-me/SKILL.md": "b48d9804c423",
|
|
6303
|
-
"mate-propose-change/SKILL.md": "
|
|
6304
|
-
"mate-propose-change/references/mate-revise.md": "
|
|
6609
|
+
"mate-propose-change/SKILL.md": "b5e1eb6e0b0c",
|
|
6610
|
+
"mate-propose-change/references/mate-revise.md": "fab04cde133f",
|
|
6305
6611
|
"mate-propose-change/references/openspec-propose.md": "dbd00207ffa4",
|
|
6306
6612
|
"mate-propose-change/references/openspec-update-change.md": "678af6ec1889",
|
|
6307
|
-
"mate-publish-artifact/SKILL.md": "
|
|
6613
|
+
"mate-publish-artifact/SKILL.md": "532edb58212d",
|
|
6308
6614
|
"mate-publish-artifact/references/openspec.md": "d004aed5cf3f",
|
|
6309
6615
|
"mate-show-me/SKILL.md": "908f009299ac",
|
|
6310
6616
|
"mate-simplify-code/SKILL.md": "a728118654f8",
|
|
@@ -6330,10 +6636,10 @@ exports[`runtime surface golden fixtures setup openspec × claude+opencode 1`] =
|
|
|
6330
6636
|
"opencodeSkills": {},
|
|
6331
6637
|
"opencodeTui": null,
|
|
6332
6638
|
"sharedSkills": {
|
|
6333
|
-
"mate-apply-change/SKILL.md": "
|
|
6639
|
+
"mate-apply-change/SKILL.md": "898e51f592f8",
|
|
6334
6640
|
"mate-apply-change/references/mate-compact-apply.md": "3f20c80a4d78",
|
|
6335
6641
|
"mate-apply-change/references/openspec-apply-change.md": "de22021f4daa",
|
|
6336
|
-
"mate-archive-change/SKILL.md": "
|
|
6642
|
+
"mate-archive-change/SKILL.md": "a231ddabb438",
|
|
6337
6643
|
"mate-backfill-spec/SKILL.md": "d07cd4a60169",
|
|
6338
6644
|
"mate-clarify-intent/SKILL.md": "a2e38ae50f05",
|
|
6339
6645
|
"mate-create-report/SKILL.md": "7db1adecbc1a",
|
|
@@ -6346,11 +6652,11 @@ exports[`runtime surface golden fixtures setup openspec × claude+opencode 1`] =
|
|
|
6346
6652
|
"mate-grill-with-docs/SKILL.md": "b542b610c484",
|
|
6347
6653
|
"mate-grilling/SKILL.md": "f37ff4dd9b6d",
|
|
6348
6654
|
"mate-interview-me/SKILL.md": "b48d9804c423",
|
|
6349
|
-
"mate-propose-change/SKILL.md": "
|
|
6350
|
-
"mate-propose-change/references/mate-revise.md": "
|
|
6655
|
+
"mate-propose-change/SKILL.md": "b5e1eb6e0b0c",
|
|
6656
|
+
"mate-propose-change/references/mate-revise.md": "fab04cde133f",
|
|
6351
6657
|
"mate-propose-change/references/openspec-propose.md": "c1f1d1291283",
|
|
6352
6658
|
"mate-propose-change/references/openspec-update-change.md": "cdb8d6c17526",
|
|
6353
|
-
"mate-publish-artifact/SKILL.md": "
|
|
6659
|
+
"mate-publish-artifact/SKILL.md": "532edb58212d",
|
|
6354
6660
|
"mate-publish-artifact/references/openspec.md": "d004aed5cf3f",
|
|
6355
6661
|
"mate-show-me/SKILL.md": "908f009299ac",
|
|
6356
6662
|
"mate-simplify-code/SKILL.md": "a728118654f8",
|
|
@@ -6534,6 +6840,40 @@ exports[`runtime surface golden fixtures setup openspec × claude+opencode 3`] =
|
|
|
6534
6840
|
},
|
|
6535
6841
|
],
|
|
6536
6842
|
},
|
|
6843
|
+
{
|
|
6844
|
+
"at": [
|
|
6845
|
+
"hooks",
|
|
6846
|
+
"SessionEnd",
|
|
6847
|
+
],
|
|
6848
|
+
"kind": "list",
|
|
6849
|
+
"values": [
|
|
6850
|
+
{
|
|
6851
|
+
"hooks": [
|
|
6852
|
+
{
|
|
6853
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-end.mjs" --projected",
|
|
6854
|
+
"type": "command",
|
|
6855
|
+
},
|
|
6856
|
+
],
|
|
6857
|
+
},
|
|
6858
|
+
],
|
|
6859
|
+
},
|
|
6860
|
+
{
|
|
6861
|
+
"at": [
|
|
6862
|
+
"hooks",
|
|
6863
|
+
"Notification",
|
|
6864
|
+
],
|
|
6865
|
+
"kind": "list",
|
|
6866
|
+
"values": [
|
|
6867
|
+
{
|
|
6868
|
+
"hooks": [
|
|
6869
|
+
{
|
|
6870
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-attention.mjs" --projected",
|
|
6871
|
+
"type": "command",
|
|
6872
|
+
},
|
|
6873
|
+
],
|
|
6874
|
+
},
|
|
6875
|
+
],
|
|
6876
|
+
},
|
|
6537
6877
|
{
|
|
6538
6878
|
"at": [
|
|
6539
6879
|
"env",
|
|
@@ -7058,10 +7398,10 @@ Write chunks to $GRAPHIFY_OUT and read $GRAPHIFY_OUT later.
|
|
|
7058
7398
|
"Outputs land in $GRAPHIFY_OUT by default.
|
|
7059
7399
|
"
|
|
7060
7400
|
,
|
|
7061
|
-
"mate-apply-change/SKILL.md": "
|
|
7401
|
+
"mate-apply-change/SKILL.md": "898e51f592f8",
|
|
7062
7402
|
"mate-apply-change/references/mate-compact-apply.md": "3f20c80a4d78",
|
|
7063
7403
|
"mate-apply-change/references/openspec-apply-change.md": "d11b6fc25bf4",
|
|
7064
|
-
"mate-archive-change/SKILL.md": "
|
|
7404
|
+
"mate-archive-change/SKILL.md": "a231ddabb438",
|
|
7065
7405
|
"mate-backfill-spec/SKILL.md": "d07cd4a60169",
|
|
7066
7406
|
"mate-clarify-intent/SKILL.md": "a2e38ae50f05",
|
|
7067
7407
|
"mate-create-report/SKILL.md": "7db1adecbc1a",
|
|
@@ -7074,11 +7414,11 @@ Write chunks to $GRAPHIFY_OUT and read $GRAPHIFY_OUT later.
|
|
|
7074
7414
|
"mate-grill-with-docs/SKILL.md": "b542b610c484",
|
|
7075
7415
|
"mate-grilling/SKILL.md": "f37ff4dd9b6d",
|
|
7076
7416
|
"mate-interview-me/SKILL.md": "b48d9804c423",
|
|
7077
|
-
"mate-propose-change/SKILL.md": "
|
|
7078
|
-
"mate-propose-change/references/mate-revise.md": "
|
|
7417
|
+
"mate-propose-change/SKILL.md": "b5e1eb6e0b0c",
|
|
7418
|
+
"mate-propose-change/references/mate-revise.md": "fab04cde133f",
|
|
7079
7419
|
"mate-propose-change/references/openspec-propose.md": "dbd00207ffa4",
|
|
7080
7420
|
"mate-propose-change/references/openspec-update-change.md": "678af6ec1889",
|
|
7081
|
-
"mate-publish-artifact/SKILL.md": "
|
|
7421
|
+
"mate-publish-artifact/SKILL.md": "532edb58212d",
|
|
7082
7422
|
"mate-publish-artifact/references/openspec.md": "d004aed5cf3f",
|
|
7083
7423
|
"mate-react-doctor/SKILL.md": "2ecf137679df",
|
|
7084
7424
|
"mate-react-doctor/references/explain.md": "86754a7e5436",
|
|
@@ -7142,10 +7482,10 @@ Write chunks to $GRAPHIFY_OUT and read $GRAPHIFY_OUT later.
|
|
|
7142
7482
|
},
|
|
7143
7483
|
"opencodeTui": null,
|
|
7144
7484
|
"sharedSkills": {
|
|
7145
|
-
"mate-apply-change/SKILL.md": "
|
|
7485
|
+
"mate-apply-change/SKILL.md": "898e51f592f8",
|
|
7146
7486
|
"mate-apply-change/references/mate-compact-apply.md": "3f20c80a4d78",
|
|
7147
7487
|
"mate-apply-change/references/openspec-apply-change.md": "de22021f4daa",
|
|
7148
|
-
"mate-archive-change/SKILL.md": "
|
|
7488
|
+
"mate-archive-change/SKILL.md": "a231ddabb438",
|
|
7149
7489
|
"mate-backfill-spec/SKILL.md": "d07cd4a60169",
|
|
7150
7490
|
"mate-clarify-intent/SKILL.md": "a2e38ae50f05",
|
|
7151
7491
|
"mate-create-report/SKILL.md": "7db1adecbc1a",
|
|
@@ -7158,11 +7498,11 @@ Write chunks to $GRAPHIFY_OUT and read $GRAPHIFY_OUT later.
|
|
|
7158
7498
|
"mate-grill-with-docs/SKILL.md": "b542b610c484",
|
|
7159
7499
|
"mate-grilling/SKILL.md": "f37ff4dd9b6d",
|
|
7160
7500
|
"mate-interview-me/SKILL.md": "b48d9804c423",
|
|
7161
|
-
"mate-propose-change/SKILL.md": "
|
|
7162
|
-
"mate-propose-change/references/mate-revise.md": "
|
|
7501
|
+
"mate-propose-change/SKILL.md": "b5e1eb6e0b0c",
|
|
7502
|
+
"mate-propose-change/references/mate-revise.md": "fab04cde133f",
|
|
7163
7503
|
"mate-propose-change/references/openspec-propose.md": "c1f1d1291283",
|
|
7164
7504
|
"mate-propose-change/references/openspec-update-change.md": "cdb8d6c17526",
|
|
7165
|
-
"mate-publish-artifact/SKILL.md": "
|
|
7505
|
+
"mate-publish-artifact/SKILL.md": "532edb58212d",
|
|
7166
7506
|
"mate-publish-artifact/references/openspec.md": "d004aed5cf3f",
|
|
7167
7507
|
"mate-react-doctor/SKILL.md": "2ecf137679df",
|
|
7168
7508
|
"mate-react-doctor/references/explain.md": "86754a7e5436",
|
|
@@ -7384,6 +7724,40 @@ exports[`runtime surface golden fixtures setup all capabilities × claude+openco
|
|
|
7384
7724
|
},
|
|
7385
7725
|
],
|
|
7386
7726
|
},
|
|
7727
|
+
{
|
|
7728
|
+
"at": [
|
|
7729
|
+
"hooks",
|
|
7730
|
+
"SessionEnd",
|
|
7731
|
+
],
|
|
7732
|
+
"kind": "list",
|
|
7733
|
+
"values": [
|
|
7734
|
+
{
|
|
7735
|
+
"hooks": [
|
|
7736
|
+
{
|
|
7737
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-end.mjs" --projected",
|
|
7738
|
+
"type": "command",
|
|
7739
|
+
},
|
|
7740
|
+
],
|
|
7741
|
+
},
|
|
7742
|
+
],
|
|
7743
|
+
},
|
|
7744
|
+
{
|
|
7745
|
+
"at": [
|
|
7746
|
+
"hooks",
|
|
7747
|
+
"Notification",
|
|
7748
|
+
],
|
|
7749
|
+
"kind": "list",
|
|
7750
|
+
"values": [
|
|
7751
|
+
{
|
|
7752
|
+
"hooks": [
|
|
7753
|
+
{
|
|
7754
|
+
"command": "node "<runtime-claude-plugin>/hooks/session-attention.mjs" --projected",
|
|
7755
|
+
"type": "command",
|
|
7756
|
+
},
|
|
7757
|
+
],
|
|
7758
|
+
},
|
|
7759
|
+
],
|
|
7760
|
+
},
|
|
7387
7761
|
{
|
|
7388
7762
|
"at": [
|
|
7389
7763
|
"hooks",
|
|
@@ -34,8 +34,9 @@ export interface HydrateDynamicPluginsDeps extends DynamicPluginLoadDeps {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* Quiet variant of companion resolution: never prompts, never errors
|
|
38
|
-
*
|
|
37
|
+
* Quiet variant of companion resolution: never prompts, never errors, never
|
|
38
|
+
* writes, so a command that refuses writes nothing (a new worktree's link
|
|
39
|
+
* included). An ambiguous or absent companion means hydration is a no-op —
|
|
39
40
|
* `ensureUnambiguousCompanion` later in `main()` stays the authoritative,
|
|
40
41
|
* user-facing resolution.
|
|
41
42
|
*/
|
|
@@ -46,7 +47,7 @@ async function resolveCompanionQuietly(
|
|
|
46
47
|
const pinned = env.MATE_ARTIFACT_PATH;
|
|
47
48
|
if (pinned) return path.resolve(pinned);
|
|
48
49
|
const resolver = new CompanionResolver(new GlobalConfigStore());
|
|
49
|
-
const resolution = await resolver.resolveWithDiagnostics(path.resolve(cwd));
|
|
50
|
+
const resolution = await resolver.resolveWithDiagnostics(path.resolve(cwd), { write: false });
|
|
50
51
|
if (resolution.ambiguousMatches.length > 1) return null;
|
|
51
52
|
if (resolution.match) return resolution.match.companionPath;
|
|
52
53
|
try {
|
|
@@ -29,6 +29,8 @@ const GUIDANCE_HOOK_SHIM = "session-guidance.mjs";
|
|
|
29
29
|
const BANNER_HOOK_SHIM = "session-banner.mjs";
|
|
30
30
|
const PREPARE_HOOK_SHIM = "session-prepare.mjs";
|
|
31
31
|
const INSTRUCTIONS_HOOK_SHIM = "companion-instructions.mjs";
|
|
32
|
+
const SESSION_END_HOOK_SHIM = "session-end.mjs";
|
|
33
|
+
const ATTENTION_HOOK_SHIM = "session-attention.mjs";
|
|
32
34
|
const PLUGIN_ROOT_TOKEN = "${CLAUDE_PLUGIN_ROOT}";
|
|
33
35
|
|
|
34
36
|
interface PluginHookWiring {
|
|
@@ -147,6 +149,23 @@ export function mateSessionPrepareHookGroups(
|
|
|
147
149
|
return withProjectedFlag(groupsFor("SessionStart", PREPARE_HOOK_SHIM, commandRoot));
|
|
148
150
|
}
|
|
149
151
|
|
|
152
|
+
/**
|
|
153
|
+
* The session registry's `SessionEnd` and `Notification` groups, resolved the
|
|
154
|
+
* same way and carrying `PROJECTED_FLAG`: this copy records, and the plugin's
|
|
155
|
+
* copy records only where no wrap copy runs.
|
|
156
|
+
*/
|
|
157
|
+
export function mateSessionEndHookGroups(
|
|
158
|
+
commandRoot: string = runtimeClaudePluginRoot(),
|
|
159
|
+
): ClaudeHookGroup[] {
|
|
160
|
+
return withProjectedFlag(groupsFor("SessionEnd", SESSION_END_HOOK_SHIM, commandRoot));
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function mateAttentionHookGroups(
|
|
164
|
+
commandRoot: string = runtimeClaudePluginRoot(),
|
|
165
|
+
): ClaudeHookGroup[] {
|
|
166
|
+
return withProjectedFlag(groupsFor("Notification", ATTENTION_HOOK_SHIM, commandRoot));
|
|
167
|
+
}
|
|
168
|
+
|
|
150
169
|
function mateOwnHookGroups(commandRoot: string): ClaudeHookGroup[] {
|
|
151
170
|
return [
|
|
152
171
|
...mateGuardHookGroups(commandRoot),
|
|
@@ -155,6 +174,8 @@ function mateOwnHookGroups(commandRoot: string): ClaudeHookGroup[] {
|
|
|
155
174
|
...mateBannerHookGroups(commandRoot),
|
|
156
175
|
...mateSessionPrepareHookGroups(commandRoot),
|
|
157
176
|
...mateInstructionHookGroups(commandRoot),
|
|
177
|
+
...mateSessionEndHookGroups(commandRoot),
|
|
178
|
+
...mateAttentionHookGroups(commandRoot),
|
|
158
179
|
];
|
|
159
180
|
}
|
|
160
181
|
|
|
@@ -184,3 +205,8 @@ export function isMateGuardHookGroup(group: ClaudeHookGroup): boolean {
|
|
|
184
205
|
hookGroupKey(group),
|
|
185
206
|
);
|
|
186
207
|
}
|
|
208
|
+
|
|
209
|
+
/** Whether a hook group runs Mate's session-prepare shim, in any release's form. */
|
|
210
|
+
export function isMateSessionPrepareHookGroup(group: ClaudeHookGroup): boolean {
|
|
211
|
+
return runsShim(group, PREPARE_HOOK_SHIM);
|
|
212
|
+
}
|