opencode-swarm 7.199.0 → 7.199.2
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/.opencode/skills/swarm-pr-feedback/SKILL.md +9 -9
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/agents/architect.d.ts +1 -1
- package/dist/background/workspace-snapshot.d.ts +51 -0
- package/dist/cli/{auto-checkpoint-1wf9n5yj.js → auto-checkpoint-0ajspw7n.js} +6 -6
- package/dist/cli/{checkpoint-gw6f4ghv.js → checkpoint-1dsrg3ft.js} +10 -10
- package/dist/cli/{coder-settlement-qy77s1x6.js → coder-settlement-189074m3.js} +6 -6
- package/dist/cli/{config-doctor-2tcp28sc.js → config-doctor-20pd12nw.js} +9 -9
- package/dist/cli/{core-pz87qafz.js → core-5bqceeft.js} +2 -2
- package/dist/cli/{curator-fvnptcnw.js → curator-b3zn9w9q.js} +29 -29
- package/dist/cli/{curator-drift-c1x7jdxj.js → curator-drift-ka477rrz.js} +6 -6
- package/dist/cli/{curator-llm-factory-cg1p6ysr.js → curator-llm-factory-nbprwszt.js} +29 -29
- package/dist/cli/{doctor-knowledge-receipt-phase-id-xwyb5sf8.js → doctor-knowledge-receipt-phase-id-nrk52ak6.js} +5 -5
- package/dist/cli/{evidence-summary-service-47cptvea.js → evidence-summary-service-qrr8zjhj.js} +11 -11
- package/dist/cli/{gate-evidence-77bzfckz.js → gate-evidence-cbs5xh1n.js} +3 -3
- package/dist/cli/{guardrail-explain-0ap0a51w.js → guardrail-explain-6xd6r3f5.js} +30 -30
- package/dist/cli/{guardrail-log-xw37f7ws.js → guardrail-log-qn1sqjs9.js} +6 -5
- package/dist/cli/{guardrail-reset-3fq8xdjf.js → guardrail-reset-ha3w0nby.js} +29 -29
- package/dist/cli/{hive-promoter-bmdgnmnf.js → hive-promoter-2dnv2xrg.js} +29 -29
- package/dist/cli/{index-vbm2ykr9.js → index-46sgm9rd.js} +1 -1
- package/dist/cli/{index-gds6c8qt.js → index-4py6w3hy.js} +4 -4
- package/dist/cli/{index-3x07b03s.js → index-5mbpybdm.js} +2 -2
- package/dist/cli/{index-ckcdheqx.js → index-5v0wkcd9.js} +2 -2
- package/dist/cli/{index-e5ecn73v.js → index-67ad9qbe.js} +1 -1
- package/dist/cli/{index-pqrepne6.js → index-7d3ft7by.js} +1 -1
- package/dist/cli/{index-mefad009.js → index-9qc7d3q2.js} +15 -11
- package/dist/cli/{index-ye9bze9s.js → index-bz5h9ttt.js} +5 -5
- package/dist/cli/{index-bjzxbxpw.js → index-c2eqtpk1.js} +2 -2
- package/dist/cli/{index-2f9tsejp.js → index-cpdcscwt.js} +2 -2
- package/dist/cli/{index-26h8fb7t.js → index-djtqb6b7.js} +2 -2
- package/dist/cli/{index-jccs3fgn.js → index-dyp5807d.js} +13 -1
- package/dist/cli/{index-1fwm8vqr.js → index-eyt9ryhd.js} +4 -4
- package/dist/cli/{index-a5xzwxdq.js → index-gfdz460m.js} +1 -1
- package/dist/cli/{index-awt5dpam.js → index-h349p91m.js} +32 -1
- package/dist/cli/{index-42dtc5nd.js → index-hfsyvkn0.js} +4 -4
- package/dist/cli/{index-3gwh8c9d.js → index-hj76n215.js} +1 -1
- package/dist/cli/{index-9ztsfved.js → index-hz2609qt.js} +117 -2
- package/dist/cli/{index-b5k6etf9.js → index-jrdepg4w.js} +2 -2
- package/dist/cli/{index-vh87e91s.js → index-km9tjdgw.js} +3 -3
- package/dist/cli/{index-kxaxf3en.js → index-kwh4b9cm.js} +246 -19
- package/dist/cli/{index-tnrq0pg8.js → index-mb3y5cgy.js} +6 -6
- package/dist/cli/{index-71g0ps66.js → index-mbygjbj8.js} +4 -4
- package/dist/cli/{index-kjhsssaq.js → index-qksw8p51.js} +29 -29
- package/dist/cli/{index-y9ckbta5.js → index-r9s68beh.js} +1 -1
- package/dist/cli/{index-79b9re6h.js → index-skg220qc.js} +441 -120
- package/dist/cli/{index-mzsj4kkv.js → index-t6gsqe10.js} +2 -2
- package/dist/cli/{index-qdwccqv5.js → index-vd6s2mxq.js} +1 -1
- package/dist/cli/{index-r52wrpb7.js → index-ve0ncsnc.js} +1 -1
- package/dist/cli/{index-jjsjjefm.js → index-wz8zc7w3.js} +6 -6
- package/dist/cli/{index-zd15v0gr.js → index-xapmt05a.js} +3 -3
- package/dist/cli/{index-hqrkr9ag.js → index-xfzkq1k4.js} +5 -5
- package/dist/cli/{index-zg5gnn3m.js → index-y4kjbf12.js} +1 -1
- package/dist/cli/{index-4hnxtssf.js → index-zvjrymp9.js} +31 -31
- package/dist/cli/index.js +30 -30
- package/dist/cli/{knowledge-escalator-w7b32ak4.js → knowledge-escalator-k1mssp9r.js} +8 -8
- package/dist/cli/{knowledge-events-y0kb9wbe.js → knowledge-events-f7c0z8rb.js} +6 -6
- package/dist/cli/{knowledge-store-knrqgmyk.js → knowledge-store-50vj5db0.js} +1 -1
- package/dist/cli/{knowledge-validator-zg7d9z8p.js → knowledge-validator-afxk6dvk.js} +2 -2
- package/dist/cli/{mcp-3k1t9q6h.js → mcp-j0grf8gt.js} +1 -1
- package/dist/cli/{model-preflight-k92fnbq8.js → model-preflight-ks9j40t5.js} +29 -29
- package/dist/cli/{pending-delegations-ape3hrm0.js → pending-delegations-e42yvvj0.js} +2 -2
- package/dist/cli/{pr-subscriptions-cn13b19x.js → pr-subscriptions-e92eg4ts.js} +1 -1
- package/dist/cli/{pr-workflow-gate-74j5mcxh.js → pr-workflow-gate-zqwde6r6.js} +29 -29
- package/dist/cli/{runner-qe3fkzx5.js → runner-7sd43gan.js} +1 -1
- package/dist/cli/{scan-cursor-4xxfc42h.js → scan-cursor-yehnf9jt.js} +2 -2
- package/dist/cli/{schema-qv9bvhyz.js → schema-jw861rj0.js} +2 -2
- package/dist/cli/{scope-persistence-fmva1cv0.js → scope-persistence-p778xbbq.js} +7 -7
- package/dist/cli/{server-s5ac6ydk.js → server-nkhvbbc5.js} +102 -40
- package/dist/cli/{skill-generator-19ckpm74.js → skill-generator-dd1w9p3t.js} +9 -9
- package/dist/cli/{snapshot-coordination-init-7c0s65jw.js → snapshot-coordination-init-11qb0jbs.js} +29 -29
- package/dist/cli/{speckit-checkoff-9b2zj8hd.js → speckit-checkoff-d92ej93g.js} +4 -4
- package/dist/cli/{workspace-snapshot-vhvrkbbb.js → workspace-snapshot-4zfj5wnd.js} +13 -1
- package/dist/cli/{worktree-collision-ownership-3r669yvh.js → worktree-collision-ownership-81wpkagz.js} +2 -2
- package/dist/cli/{worktree-isolation-5dydsr8c.js → worktree-isolation-zw3ydg49.js} +29 -29
- package/dist/config/skill-contract-digest.d.ts +8 -0
- package/dist/hooks/guardrails/file-authority.d.ts +17 -0
- package/dist/hooks/pr-workflow-gate.d.ts +32 -23
- package/dist/host/v2/events.d.ts +19 -1
- package/dist/host/v2/hooks.d.ts +25 -0
- package/dist/index.js +131 -128
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/manifest.d.ts +1 -0
- package/dist/tools/prepare-pr-feedback-commit-message.d.ts +30 -0
- package/dist/tools/tool-metadata.d.ts +4 -4
- package/package.json +1 -1
|
@@ -103,53 +103,53 @@ import {
|
|
|
103
103
|
withPrWorkflowCheckoutMutationLock,
|
|
104
104
|
withPrWorkflowCheckoutPreparationLock,
|
|
105
105
|
writePrWorkflowAtomicJson
|
|
106
|
-
} from "./index-
|
|
107
|
-
import"./index-
|
|
108
|
-
import"./index-
|
|
109
|
-
import"./index-
|
|
106
|
+
} from "./index-skg220qc.js";
|
|
107
|
+
import"./index-kwh4b9cm.js";
|
|
108
|
+
import"./index-hfsyvkn0.js";
|
|
109
|
+
import"./index-y4kjbf12.js";
|
|
110
110
|
import"./index-j2vv0h13.js";
|
|
111
|
-
import"./index-
|
|
111
|
+
import"./index-dyp5807d.js";
|
|
112
112
|
import"./index-7c432abn.js";
|
|
113
113
|
import"./index-txdagbh7.js";
|
|
114
|
-
import"./index-
|
|
114
|
+
import"./index-r9s68beh.js";
|
|
115
115
|
import"./index-rdec0y3z.js";
|
|
116
|
-
import"./index-
|
|
117
|
-
import"./index-
|
|
118
|
-
import"./index-
|
|
119
|
-
import"./index-
|
|
120
|
-
import"./index-
|
|
116
|
+
import"./index-ve0ncsnc.js";
|
|
117
|
+
import"./index-bz5h9ttt.js";
|
|
118
|
+
import"./index-9qc7d3q2.js";
|
|
119
|
+
import"./index-wz8zc7w3.js";
|
|
120
|
+
import"./index-hz2609qt.js";
|
|
121
121
|
import"./index-bkscmz4z.js";
|
|
122
122
|
import"./index-cjapb4hy.js";
|
|
123
123
|
import"./index-pxdc0qn1.js";
|
|
124
124
|
import"./index-pt7h91zc.js";
|
|
125
125
|
import"./index-q7sjgr1y.js";
|
|
126
|
-
import"./index-
|
|
127
|
-
import"./index-
|
|
126
|
+
import"./index-4py6w3hy.js";
|
|
127
|
+
import"./index-mb3y5cgy.js";
|
|
128
128
|
import"./index-6b295cas.js";
|
|
129
129
|
import"./index-9nyqt3kb.js";
|
|
130
|
-
import"./index-
|
|
130
|
+
import"./index-xapmt05a.js";
|
|
131
131
|
import"./index-v3bmwmqw.js";
|
|
132
|
-
import"./index-
|
|
133
|
-
import"./index-
|
|
134
|
-
import"./index-
|
|
132
|
+
import"./index-7d3ft7by.js";
|
|
133
|
+
import"./index-46sgm9rd.js";
|
|
134
|
+
import"./index-cpdcscwt.js";
|
|
135
135
|
import"./index-g4fs6z4e.js";
|
|
136
136
|
import {
|
|
137
137
|
PR_REVIEW_BASE_DIMENSION_IDS
|
|
138
|
-
} from "./index-
|
|
139
|
-
import"./index-
|
|
140
|
-
import"./index-
|
|
138
|
+
} from "./index-hj76n215.js";
|
|
139
|
+
import"./index-t6gsqe10.js";
|
|
140
|
+
import"./index-c2eqtpk1.js";
|
|
141
141
|
import"./index-m9zzj4ee.js";
|
|
142
142
|
import"./index-820pzqd6.js";
|
|
143
143
|
import"./index-2s7dvzff.js";
|
|
144
|
-
import"./index-
|
|
144
|
+
import"./index-67ad9qbe.js";
|
|
145
145
|
import"./index-2mx2gn97.js";
|
|
146
146
|
import"./index-rtry5xyf.js";
|
|
147
|
-
import"./index-
|
|
147
|
+
import"./index-km9tjdgw.js";
|
|
148
148
|
import"./index-g22dps7x.js";
|
|
149
149
|
import"./index-0725jpp7.js";
|
|
150
|
-
import"./index-
|
|
151
|
-
import"./index-
|
|
152
|
-
import"./index-
|
|
150
|
+
import"./index-jrdepg4w.js";
|
|
151
|
+
import"./index-djtqb6b7.js";
|
|
152
|
+
import"./index-h349p91m.js";
|
|
153
153
|
import"./index-p5pgjp7n.js";
|
|
154
154
|
import"./index-nr1pj3hy.js";
|
|
155
155
|
import"./index-w00dj8p5.js";
|
|
@@ -157,7 +157,7 @@ import"./index-ry16d01s.js";
|
|
|
157
157
|
import"./index-rdm3px0g.js";
|
|
158
158
|
import"./index-7pmbnjvj.js";
|
|
159
159
|
import"./index-hc6wa3yg.js";
|
|
160
|
-
import"./index-
|
|
160
|
+
import"./index-eyt9ryhd.js";
|
|
161
161
|
import"./index-vzm6zre7.js";
|
|
162
162
|
import"./index-ae75rja9.js";
|
|
163
163
|
import"./index-2bc7zfw3.js";
|
|
@@ -170,10 +170,10 @@ import"./index-ejhxgyvm.js";
|
|
|
170
170
|
import"./index-7g4c7s5r.js";
|
|
171
171
|
import"./index-ywb5er8g.js";
|
|
172
172
|
import"./index-gx2vp8gx.js";
|
|
173
|
-
import"./index-
|
|
173
|
+
import"./index-vd6s2mxq.js";
|
|
174
174
|
import"./index-zxdawwc7.js";
|
|
175
|
-
import"./index-
|
|
176
|
-
import"./index-
|
|
175
|
+
import"./index-5mbpybdm.js";
|
|
176
|
+
import"./index-xfzkq1k4.js";
|
|
177
177
|
import"./index-bk5tah7q.js";
|
|
178
178
|
import"./index-gknz3bv1.js";
|
|
179
179
|
import"./index-zpsr8rpc.js";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-r9s68beh.js";
|
|
8
|
+
import"./index-eyt9ryhd.js";
|
|
9
9
|
import"./index-vzm6zre7.js";
|
|
10
10
|
import"./index-ae75rja9.js";
|
|
11
11
|
import"./index-2bc7zfw3.js";
|
|
@@ -125,8 +125,8 @@ import {
|
|
|
125
125
|
resolveGuardrailsConfig,
|
|
126
126
|
retiredEpicKeyReplacement,
|
|
127
127
|
stripKnownSwarmPrefix
|
|
128
|
-
} from "./index-
|
|
129
|
-
import"./index-
|
|
128
|
+
} from "./index-5mbpybdm.js";
|
|
129
|
+
import"./index-xfzkq1k4.js";
|
|
130
130
|
import"./index-bk5tah7q.js";
|
|
131
131
|
import"./index-gknz3bv1.js";
|
|
132
132
|
import"./index-zpsr8rpc.js";
|
|
@@ -25,9 +25,9 @@ import {
|
|
|
25
25
|
tombstoneScopeBinding,
|
|
26
26
|
writeScopeBindingToDisk,
|
|
27
27
|
writeScopeToDisk
|
|
28
|
-
} from "./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
28
|
+
} from "./index-jrdepg4w.js";
|
|
29
|
+
import"./index-djtqb6b7.js";
|
|
30
|
+
import"./index-h349p91m.js";
|
|
31
31
|
import"./index-p5pgjp7n.js";
|
|
32
32
|
import"./index-nr1pj3hy.js";
|
|
33
33
|
import"./index-w00dj8p5.js";
|
|
@@ -35,7 +35,7 @@ import"./index-ry16d01s.js";
|
|
|
35
35
|
import"./index-rdm3px0g.js";
|
|
36
36
|
import"./index-7pmbnjvj.js";
|
|
37
37
|
import"./index-hc6wa3yg.js";
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-eyt9ryhd.js";
|
|
39
39
|
import"./index-vzm6zre7.js";
|
|
40
40
|
import"./index-ae75rja9.js";
|
|
41
41
|
import"./index-2bc7zfw3.js";
|
|
@@ -48,10 +48,10 @@ import"./index-ejhxgyvm.js";
|
|
|
48
48
|
import"./index-7g4c7s5r.js";
|
|
49
49
|
import"./index-ywb5er8g.js";
|
|
50
50
|
import"./index-gx2vp8gx.js";
|
|
51
|
-
import"./index-
|
|
51
|
+
import"./index-vd6s2mxq.js";
|
|
52
52
|
import"./index-zxdawwc7.js";
|
|
53
|
-
import"./index-
|
|
54
|
-
import"./index-
|
|
53
|
+
import"./index-5mbpybdm.js";
|
|
54
|
+
import"./index-xfzkq1k4.js";
|
|
55
55
|
import"./index-bk5tah7q.js";
|
|
56
56
|
import"./index-gknz3bv1.js";
|
|
57
57
|
import"./index-zpsr8rpc.js";
|
|
@@ -22,33 +22,33 @@ import {
|
|
|
22
22
|
resolveWriteTargets,
|
|
23
23
|
searchKnowledge,
|
|
24
24
|
symbols
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-skg220qc.js";
|
|
26
26
|
import {
|
|
27
27
|
checkFileAuthority,
|
|
28
28
|
checkWriteTargetForSymlink
|
|
29
|
-
} from "./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
} from "./index-kwh4b9cm.js";
|
|
30
|
+
import"./index-hfsyvkn0.js";
|
|
31
31
|
import {
|
|
32
32
|
_internals,
|
|
33
33
|
saveEvidence
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-y4kjbf12.js";
|
|
35
35
|
import {
|
|
36
36
|
getProfileForFile
|
|
37
37
|
} from "./index-j2vv0h13.js";
|
|
38
38
|
import {
|
|
39
39
|
pLimit
|
|
40
|
-
} from "./index-
|
|
40
|
+
} from "./index-dyp5807d.js";
|
|
41
41
|
import"./index-7c432abn.js";
|
|
42
42
|
import"./index-txdagbh7.js";
|
|
43
43
|
import {
|
|
44
44
|
resolveCohortId
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-r9s68beh.js";
|
|
46
46
|
import"./index-rdec0y3z.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
47
|
+
import"./index-ve0ncsnc.js";
|
|
48
|
+
import"./index-bz5h9ttt.js";
|
|
49
|
+
import"./index-9qc7d3q2.js";
|
|
50
|
+
import"./index-wz8zc7w3.js";
|
|
51
|
+
import"./index-hz2609qt.js";
|
|
52
52
|
import"./index-bkscmz4z.js";
|
|
53
53
|
import"./index-cjapb4hy.js";
|
|
54
54
|
import"./index-pxdc0qn1.js";
|
|
@@ -59,11 +59,11 @@ import {
|
|
|
59
59
|
import"./index-q7sjgr1y.js";
|
|
60
60
|
import {
|
|
61
61
|
createSwarmTool
|
|
62
|
-
} from "./index-
|
|
62
|
+
} from "./index-4py6w3hy.js";
|
|
63
63
|
import {
|
|
64
64
|
loadPlan,
|
|
65
65
|
loadPlanJsonOnly
|
|
66
|
-
} from "./index-
|
|
66
|
+
} from "./index-mb3y5cgy.js";
|
|
67
67
|
import {
|
|
68
68
|
containsControlChars,
|
|
69
69
|
createTargetWithinRootValidator,
|
|
@@ -73,15 +73,15 @@ import {
|
|
|
73
73
|
validateWorkspaceRoot
|
|
74
74
|
} from "./index-6b295cas.js";
|
|
75
75
|
import"./index-9nyqt3kb.js";
|
|
76
|
-
import"./index-
|
|
76
|
+
import"./index-xapmt05a.js";
|
|
77
77
|
import"./index-v3bmwmqw.js";
|
|
78
|
-
import"./index-
|
|
79
|
-
import"./index-
|
|
80
|
-
import"./index-
|
|
78
|
+
import"./index-7d3ft7by.js";
|
|
79
|
+
import"./index-46sgm9rd.js";
|
|
80
|
+
import"./index-cpdcscwt.js";
|
|
81
81
|
import"./index-g4fs6z4e.js";
|
|
82
|
-
import"./index-
|
|
83
|
-
import"./index-
|
|
84
|
-
import"./index-
|
|
82
|
+
import"./index-hj76n215.js";
|
|
83
|
+
import"./index-t6gsqe10.js";
|
|
84
|
+
import"./index-c2eqtpk1.js";
|
|
85
85
|
import"./index-m9zzj4ee.js";
|
|
86
86
|
import"./index-820pzqd6.js";
|
|
87
87
|
import"./index-2s7dvzff.js";
|
|
@@ -90,19 +90,19 @@ import {
|
|
|
90
90
|
validateActionability,
|
|
91
91
|
validateActionableFields,
|
|
92
92
|
validateLesson
|
|
93
|
-
} from "./index-
|
|
93
|
+
} from "./index-67ad9qbe.js";
|
|
94
94
|
import {
|
|
95
95
|
resolveWorktreeId
|
|
96
96
|
} from "./index-2mx2gn97.js";
|
|
97
97
|
import"./index-rtry5xyf.js";
|
|
98
|
-
import"./index-
|
|
98
|
+
import"./index-km9tjdgw.js";
|
|
99
99
|
import"./index-g22dps7x.js";
|
|
100
100
|
import"./index-0725jpp7.js";
|
|
101
101
|
import {
|
|
102
102
|
normalizeScopeFiles
|
|
103
|
-
} from "./index-
|
|
104
|
-
import"./index-
|
|
105
|
-
import"./index-
|
|
103
|
+
} from "./index-jrdepg4w.js";
|
|
104
|
+
import"./index-djtqb6b7.js";
|
|
105
|
+
import"./index-h349p91m.js";
|
|
106
106
|
import"./index-p5pgjp7n.js";
|
|
107
107
|
import"./index-nr1pj3hy.js";
|
|
108
108
|
import"./index-w00dj8p5.js";
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
reinforceSwarmKnowledgeEntry,
|
|
120
120
|
resolveSwarmKnowledgePath,
|
|
121
121
|
transactKnowledge
|
|
122
|
-
} from "./index-
|
|
122
|
+
} from "./index-eyt9ryhd.js";
|
|
123
123
|
import"./index-vzm6zre7.js";
|
|
124
124
|
import"./index-ae75rja9.js";
|
|
125
125
|
import"./index-2bc7zfw3.js";
|
|
@@ -143,7 +143,7 @@ import"./index-gx2vp8gx.js";
|
|
|
143
143
|
import {
|
|
144
144
|
loadGateOverrides,
|
|
145
145
|
loadPluginConfigWithMeta
|
|
146
|
-
} from "./index-
|
|
146
|
+
} from "./index-vd6s2mxq.js";
|
|
147
147
|
import {
|
|
148
148
|
init_git_executable,
|
|
149
149
|
resolveGitExecutableAsync
|
|
@@ -151,11 +151,11 @@ import {
|
|
|
151
151
|
import {
|
|
152
152
|
KnowledgeConfigSchema,
|
|
153
153
|
init_schema
|
|
154
|
-
} from "./index-
|
|
154
|
+
} from "./index-5mbpybdm.js";
|
|
155
155
|
import {
|
|
156
156
|
TOOL_METADATA,
|
|
157
157
|
init_tool_metadata
|
|
158
|
-
} from "./index-
|
|
158
|
+
} from "./index-xfzkq1k4.js";
|
|
159
159
|
import {
|
|
160
160
|
KNOWLEDGE_SCHEMA_VERSION,
|
|
161
161
|
init_knowledge_types
|
|
@@ -13292,6 +13292,9 @@ class Protocol {
|
|
|
13292
13292
|
this.setRequestHandler(GetTaskPayloadRequestSchema, async (request, extra) => {
|
|
13293
13293
|
const handleTaskResult = async () => {
|
|
13294
13294
|
const taskId = request.params.taskId;
|
|
13295
|
+
if (!await this._taskStore.getTask(taskId, extra.sessionId)) {
|
|
13296
|
+
throw new McpError(ErrorCode.InvalidParams, `Task not found: ${taskId}`);
|
|
13297
|
+
}
|
|
13295
13298
|
if (this._taskMessageQueue) {
|
|
13296
13299
|
let queuedMessage;
|
|
13297
13300
|
while (queuedMessage = await this._taskMessageQueue.dequeue(taskId, extra.sessionId)) {
|
|
@@ -13322,12 +13325,12 @@ class Protocol {
|
|
|
13322
13325
|
throw new McpError(ErrorCode.InvalidParams, `Task not found: ${taskId}`);
|
|
13323
13326
|
}
|
|
13324
13327
|
if (!isTerminal(task.status)) {
|
|
13325
|
-
await this._waitForTaskUpdate(taskId, extra.signal);
|
|
13328
|
+
await this._waitForTaskUpdate(taskId, extra.signal, extra.sessionId);
|
|
13326
13329
|
return await handleTaskResult();
|
|
13327
13330
|
}
|
|
13328
13331
|
if (isTerminal(task.status)) {
|
|
13329
13332
|
const result = await this._taskStore.getTaskResult(taskId, extra.sessionId);
|
|
13330
|
-
this._clearTaskQueue(taskId);
|
|
13333
|
+
this._clearTaskQueue(taskId, extra.sessionId);
|
|
13331
13334
|
return {
|
|
13332
13335
|
...result,
|
|
13333
13336
|
_meta: {
|
|
@@ -13364,7 +13367,7 @@ class Protocol {
|
|
|
13364
13367
|
throw new McpError(ErrorCode.InvalidParams, `Cannot cancel task in terminal status: ${task.status}`);
|
|
13365
13368
|
}
|
|
13366
13369
|
await this._taskStore.updateTaskStatus(request.params.taskId, "cancelled", "Client cancelled task execution.", extra.sessionId);
|
|
13367
|
-
this._clearTaskQueue(request.params.taskId);
|
|
13370
|
+
this._clearTaskQueue(request.params.taskId, extra.sessionId);
|
|
13368
13371
|
const cancelledTask = await this._taskStore.getTask(request.params.taskId, extra.sessionId);
|
|
13369
13372
|
if (!cancelledTask) {
|
|
13370
13373
|
throw new McpError(ErrorCode.InvalidParams, `Task not found after cancellation: ${request.params.taskId}`);
|
|
@@ -13487,6 +13490,19 @@ class Protocol {
|
|
|
13487
13490
|
const handler = this._requestHandlers.get(request.method) ?? this.fallbackRequestHandler;
|
|
13488
13491
|
const capturedTransport = this._transport;
|
|
13489
13492
|
const relatedTaskId = request.params?._meta?.[RELATED_TASK_META_KEY]?.taskId;
|
|
13493
|
+
const sessionId = capturedTransport?.sessionId;
|
|
13494
|
+
const store = this._taskStore;
|
|
13495
|
+
let relatedTaskFound = true;
|
|
13496
|
+
let relatedTaskLookup;
|
|
13497
|
+
if (relatedTaskId && store && this._taskMessageQueue && sessionId !== undefined) {
|
|
13498
|
+
relatedTaskFound = false;
|
|
13499
|
+
relatedTaskLookup = (async () => {
|
|
13500
|
+
if (!await store.getTask(relatedTaskId, sessionId)) {
|
|
13501
|
+
throw new McpError(ErrorCode.InvalidParams, `Task not found: ${relatedTaskId}`);
|
|
13502
|
+
}
|
|
13503
|
+
relatedTaskFound = true;
|
|
13504
|
+
})();
|
|
13505
|
+
}
|
|
13490
13506
|
if (handler === undefined) {
|
|
13491
13507
|
const errorResponse = {
|
|
13492
13508
|
jsonrpc: "2.0",
|
|
@@ -13496,7 +13512,10 @@ class Protocol {
|
|
|
13496
13512
|
message: "Method not found"
|
|
13497
13513
|
}
|
|
13498
13514
|
};
|
|
13499
|
-
if (relatedTaskId &&
|
|
13515
|
+
if (relatedTaskId && relatedTaskLookup) {
|
|
13516
|
+
const queuedError = { type: "error", message: errorResponse, timestamp: Date.now() };
|
|
13517
|
+
relatedTaskLookup.then(() => this._enqueueTaskMessage(relatedTaskId, queuedError, sessionId), () => capturedTransport?.send(errorResponse)).catch((error) => this._onerror(new Error(`Failed to send an error response: ${error}`)));
|
|
13518
|
+
} else if (relatedTaskId && this._taskMessageQueue) {
|
|
13500
13519
|
this._enqueueTaskMessage(relatedTaskId, {
|
|
13501
13520
|
type: "error",
|
|
13502
13521
|
message: errorResponse,
|
|
@@ -13547,7 +13566,10 @@ class Protocol {
|
|
|
13547
13566
|
closeSSEStream: extra?.closeSSEStream,
|
|
13548
13567
|
closeStandaloneSSEStream: extra?.closeStandaloneSSEStream
|
|
13549
13568
|
};
|
|
13550
|
-
Promise.resolve().then(() => {
|
|
13569
|
+
(relatedTaskLookup ?? Promise.resolve()).then(() => {
|
|
13570
|
+
if (relatedTaskLookup && abortController.signal.aborted) {
|
|
13571
|
+
throw new McpError(ErrorCode.ConnectionClosed, "Request was cancelled");
|
|
13572
|
+
}
|
|
13551
13573
|
if (taskCreationParams) {
|
|
13552
13574
|
this.assertTaskHandlerCapability(request.method);
|
|
13553
13575
|
}
|
|
@@ -13582,7 +13604,7 @@ class Protocol {
|
|
|
13582
13604
|
...error["data"] !== undefined && { data: error["data"] }
|
|
13583
13605
|
}
|
|
13584
13606
|
};
|
|
13585
|
-
if (relatedTaskId && this._taskMessageQueue) {
|
|
13607
|
+
if (relatedTaskId && this._taskMessageQueue && relatedTaskFound) {
|
|
13586
13608
|
await this._enqueueTaskMessage(relatedTaskId, {
|
|
13587
13609
|
type: "error",
|
|
13588
13610
|
message: errorResponse,
|
|
@@ -13970,7 +13992,7 @@ class Protocol {
|
|
|
13970
13992
|
throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");
|
|
13971
13993
|
}
|
|
13972
13994
|
const maxQueueSize = this._options?.maxTaskQueueSize;
|
|
13973
|
-
await this._taskMessageQueue.enqueue(taskId, message, sessionId, maxQueueSize);
|
|
13995
|
+
await this._taskMessageQueue.enqueue(taskId, message, sessionId ?? this._transport?.sessionId, maxQueueSize);
|
|
13974
13996
|
}
|
|
13975
13997
|
async _clearTaskQueue(taskId, sessionId) {
|
|
13976
13998
|
if (this._taskMessageQueue) {
|
|
@@ -13989,10 +14011,10 @@ class Protocol {
|
|
|
13989
14011
|
}
|
|
13990
14012
|
}
|
|
13991
14013
|
}
|
|
13992
|
-
async _waitForTaskUpdate(taskId, signal) {
|
|
14014
|
+
async _waitForTaskUpdate(taskId, signal, sessionId) {
|
|
13993
14015
|
let interval = this._options?.defaultTaskPollInterval ?? 1000;
|
|
13994
14016
|
try {
|
|
13995
|
-
const task = await this._taskStore?.getTask(taskId);
|
|
14017
|
+
const task = await this._taskStore?.getTask(taskId, sessionId);
|
|
13996
14018
|
if (task?.pollInterval) {
|
|
13997
14019
|
interval = task.pollInterval;
|
|
13998
14020
|
}
|
|
@@ -14661,6 +14683,42 @@ class ExperimentalMcpServerTasks {
|
|
|
14661
14683
|
|
|
14662
14684
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
14663
14685
|
init_zod();
|
|
14686
|
+
function toolInputElementCount(value, max) {
|
|
14687
|
+
let count = 0;
|
|
14688
|
+
const stack = [value];
|
|
14689
|
+
while (stack.length > 0) {
|
|
14690
|
+
const node = stack.pop();
|
|
14691
|
+
if (node === null || typeof node !== "object")
|
|
14692
|
+
continue;
|
|
14693
|
+
if (Array.isArray(node)) {
|
|
14694
|
+
for (const child of node) {
|
|
14695
|
+
if (++count > max)
|
|
14696
|
+
return count;
|
|
14697
|
+
if (child !== null && typeof child === "object")
|
|
14698
|
+
stack.push(child);
|
|
14699
|
+
}
|
|
14700
|
+
} else {
|
|
14701
|
+
for (const key in node) {
|
|
14702
|
+
if (!Object.prototype.hasOwnProperty.call(node, key))
|
|
14703
|
+
continue;
|
|
14704
|
+
if (++count > max)
|
|
14705
|
+
return count;
|
|
14706
|
+
const child = node[key];
|
|
14707
|
+
if (child !== null && typeof child === "object")
|
|
14708
|
+
stack.push(child);
|
|
14709
|
+
}
|
|
14710
|
+
}
|
|
14711
|
+
}
|
|
14712
|
+
return count;
|
|
14713
|
+
}
|
|
14714
|
+
function resolveMaxToolInputElements(value) {
|
|
14715
|
+
if (value === undefined || value === Infinity)
|
|
14716
|
+
return;
|
|
14717
|
+
if (typeof value !== "number" || Number.isNaN(value) || value < 1) {
|
|
14718
|
+
throw new RangeError(`maxToolInputElements must be a number of at least 1, or Infinity, got ${String(value)}`);
|
|
14719
|
+
}
|
|
14720
|
+
return value;
|
|
14721
|
+
}
|
|
14664
14722
|
|
|
14665
14723
|
class McpServer {
|
|
14666
14724
|
constructor(serverInfo, options) {
|
|
@@ -14673,6 +14731,7 @@ class McpServer {
|
|
|
14673
14731
|
this._resourceHandlersInitialized = false;
|
|
14674
14732
|
this._promptHandlersInitialized = false;
|
|
14675
14733
|
this.server = new Server(serverInfo, options);
|
|
14734
|
+
this._maxToolInputElements = resolveMaxToolInputElements(options?.maxToolInputElements);
|
|
14676
14735
|
}
|
|
14677
14736
|
get experimental() {
|
|
14678
14737
|
if (!this._experimental) {
|
|
@@ -14779,12 +14838,15 @@ class McpServer {
|
|
|
14779
14838
|
};
|
|
14780
14839
|
}
|
|
14781
14840
|
async validateToolInput(tool, args, toolName) {
|
|
14841
|
+
if (this._maxToolInputElements !== undefined && toolInputElementCount(args, this._maxToolInputElements) > this._maxToolInputElements) {
|
|
14842
|
+
throw new McpError(ErrorCode.InvalidParams, `Invalid arguments for tool ${toolName}: arguments contain more than the maximum of ${this._maxToolInputElements} elements`);
|
|
14843
|
+
}
|
|
14782
14844
|
if (!tool.inputSchema) {
|
|
14783
14845
|
return;
|
|
14784
14846
|
}
|
|
14785
14847
|
const inputObj = normalizeObjectSchema(tool.inputSchema);
|
|
14786
14848
|
const schemaToParse = inputObj ?? tool.inputSchema;
|
|
14787
|
-
const parseResult = await safeParseAsync2(schemaToParse, args);
|
|
14849
|
+
const parseResult = await safeParseAsync2(schemaToParse, args ?? {});
|
|
14788
14850
|
if (!parseResult.success) {
|
|
14789
14851
|
const error = "error" in parseResult ? parseResult.error : "Unknown error";
|
|
14790
14852
|
const errorMessage = getParseErrorMessage(error);
|
|
@@ -15009,7 +15071,7 @@ class McpServer {
|
|
|
15009
15071
|
}
|
|
15010
15072
|
if (prompt.argsSchema) {
|
|
15011
15073
|
const argsObj = normalizeObjectSchema(prompt.argsSchema);
|
|
15012
|
-
const parseResult = await safeParseAsync2(argsObj, request.params.arguments);
|
|
15074
|
+
const parseResult = await safeParseAsync2(argsObj, request.params.arguments ?? {});
|
|
15013
15075
|
if (!parseResult.success) {
|
|
15014
15076
|
const error = "error" in parseResult ? parseResult.error : "Unknown error";
|
|
15015
15077
|
const errorMessage = getParseErrorMessage(error);
|
|
@@ -33,21 +33,21 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
36
|
+
} from "./index-9qc7d3q2.js";
|
|
37
37
|
import"./index-q7sjgr1y.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
38
|
+
import"./index-t6gsqe10.js";
|
|
39
|
+
import"./index-c2eqtpk1.js";
|
|
40
40
|
import"./index-m9zzj4ee.js";
|
|
41
41
|
import"./index-820pzqd6.js";
|
|
42
42
|
import"./index-2s7dvzff.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-67ad9qbe.js";
|
|
44
44
|
import"./index-2mx2gn97.js";
|
|
45
45
|
import"./index-rtry5xyf.js";
|
|
46
|
-
import"./index-
|
|
46
|
+
import"./index-km9tjdgw.js";
|
|
47
47
|
import"./index-g22dps7x.js";
|
|
48
48
|
import"./index-0725jpp7.js";
|
|
49
49
|
import"./index-hc6wa3yg.js";
|
|
50
|
-
import"./index-
|
|
50
|
+
import"./index-eyt9ryhd.js";
|
|
51
51
|
import"./index-vzm6zre7.js";
|
|
52
52
|
import"./index-ae75rja9.js";
|
|
53
53
|
import"./index-2bc7zfw3.js";
|
|
@@ -60,10 +60,10 @@ import"./index-ejhxgyvm.js";
|
|
|
60
60
|
import"./index-7g4c7s5r.js";
|
|
61
61
|
import"./index-ywb5er8g.js";
|
|
62
62
|
import"./index-gx2vp8gx.js";
|
|
63
|
-
import"./index-
|
|
63
|
+
import"./index-vd6s2mxq.js";
|
|
64
64
|
import"./index-zxdawwc7.js";
|
|
65
|
-
import"./index-
|
|
66
|
-
import"./index-
|
|
65
|
+
import"./index-5mbpybdm.js";
|
|
66
|
+
import"./index-xfzkq1k4.js";
|
|
67
67
|
import"./index-bk5tah7q.js";
|
|
68
68
|
import"./index-gknz3bv1.js";
|
|
69
69
|
import"./index-zpsr8rpc.js";
|
package/dist/cli/{snapshot-coordination-init-7c0s65jw.js → snapshot-coordination-init-11qb0jbs.js}
RENAMED
|
@@ -8,51 +8,51 @@ import {
|
|
|
8
8
|
markSnapshotCoordinationClosing,
|
|
9
9
|
retrySnapshotCoordinationInitialization,
|
|
10
10
|
startSnapshotCoordinationInitialization
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
11
|
+
} from "./index-skg220qc.js";
|
|
12
|
+
import"./index-kwh4b9cm.js";
|
|
13
|
+
import"./index-hfsyvkn0.js";
|
|
14
|
+
import"./index-y4kjbf12.js";
|
|
15
15
|
import"./index-j2vv0h13.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-dyp5807d.js";
|
|
17
17
|
import"./index-7c432abn.js";
|
|
18
18
|
import"./index-txdagbh7.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-r9s68beh.js";
|
|
20
20
|
import"./index-rdec0y3z.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
21
|
+
import"./index-ve0ncsnc.js";
|
|
22
|
+
import"./index-bz5h9ttt.js";
|
|
23
|
+
import"./index-9qc7d3q2.js";
|
|
24
|
+
import"./index-wz8zc7w3.js";
|
|
25
|
+
import"./index-hz2609qt.js";
|
|
26
26
|
import"./index-bkscmz4z.js";
|
|
27
27
|
import"./index-cjapb4hy.js";
|
|
28
28
|
import"./index-pxdc0qn1.js";
|
|
29
29
|
import"./index-pt7h91zc.js";
|
|
30
30
|
import"./index-q7sjgr1y.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
31
|
+
import"./index-4py6w3hy.js";
|
|
32
|
+
import"./index-mb3y5cgy.js";
|
|
33
33
|
import"./index-6b295cas.js";
|
|
34
34
|
import"./index-9nyqt3kb.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-xapmt05a.js";
|
|
36
36
|
import"./index-v3bmwmqw.js";
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
37
|
+
import"./index-7d3ft7by.js";
|
|
38
|
+
import"./index-46sgm9rd.js";
|
|
39
|
+
import"./index-cpdcscwt.js";
|
|
40
40
|
import"./index-g4fs6z4e.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
41
|
+
import"./index-hj76n215.js";
|
|
42
|
+
import"./index-t6gsqe10.js";
|
|
43
|
+
import"./index-c2eqtpk1.js";
|
|
44
44
|
import"./index-m9zzj4ee.js";
|
|
45
45
|
import"./index-820pzqd6.js";
|
|
46
46
|
import"./index-2s7dvzff.js";
|
|
47
|
-
import"./index-
|
|
47
|
+
import"./index-67ad9qbe.js";
|
|
48
48
|
import"./index-2mx2gn97.js";
|
|
49
49
|
import"./index-rtry5xyf.js";
|
|
50
|
-
import"./index-
|
|
50
|
+
import"./index-km9tjdgw.js";
|
|
51
51
|
import"./index-g22dps7x.js";
|
|
52
52
|
import"./index-0725jpp7.js";
|
|
53
|
-
import"./index-
|
|
54
|
-
import"./index-
|
|
55
|
-
import"./index-
|
|
53
|
+
import"./index-jrdepg4w.js";
|
|
54
|
+
import"./index-djtqb6b7.js";
|
|
55
|
+
import"./index-h349p91m.js";
|
|
56
56
|
import"./index-p5pgjp7n.js";
|
|
57
57
|
import"./index-nr1pj3hy.js";
|
|
58
58
|
import"./index-w00dj8p5.js";
|
|
@@ -60,7 +60,7 @@ import"./index-ry16d01s.js";
|
|
|
60
60
|
import"./index-rdm3px0g.js";
|
|
61
61
|
import"./index-7pmbnjvj.js";
|
|
62
62
|
import"./index-hc6wa3yg.js";
|
|
63
|
-
import"./index-
|
|
63
|
+
import"./index-eyt9ryhd.js";
|
|
64
64
|
import"./index-vzm6zre7.js";
|
|
65
65
|
import"./index-ae75rja9.js";
|
|
66
66
|
import"./index-2bc7zfw3.js";
|
|
@@ -73,10 +73,10 @@ import"./index-ejhxgyvm.js";
|
|
|
73
73
|
import"./index-7g4c7s5r.js";
|
|
74
74
|
import"./index-ywb5er8g.js";
|
|
75
75
|
import"./index-gx2vp8gx.js";
|
|
76
|
-
import"./index-
|
|
76
|
+
import"./index-vd6s2mxq.js";
|
|
77
77
|
import"./index-zxdawwc7.js";
|
|
78
|
-
import"./index-
|
|
79
|
-
import"./index-
|
|
78
|
+
import"./index-5mbpybdm.js";
|
|
79
|
+
import"./index-xfzkq1k4.js";
|
|
80
80
|
import"./index-bk5tah7q.js";
|
|
81
81
|
import"./index-gknz3bv1.js";
|
|
82
82
|
import"./index-zpsr8rpc.js";
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
parseSpeckitTasksContent,
|
|
8
8
|
propagateSpeckitCheckoff,
|
|
9
9
|
writeSpeckitCheckoffLedger
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-7d3ft7by.js";
|
|
11
11
|
import"./index-ejhxgyvm.js";
|
|
12
12
|
import"./index-7g4c7s5r.js";
|
|
13
13
|
import"./index-ywb5er8g.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-vd6s2mxq.js";
|
|
15
15
|
import"./index-zxdawwc7.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
import"./index-5mbpybdm.js";
|
|
17
|
+
import"./index-xfzkq1k4.js";
|
|
18
18
|
import"./index-bk5tah7q.js";
|
|
19
19
|
import"./index-gknz3bv1.js";
|
|
20
20
|
import"./index-zpsr8rpc.js";
|