opencode-swarm 7.199.1 → 7.199.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/.opencode/skills/swarm-pr-feedback/SKILL.md +14 -14
  2. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  3. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  4. package/dist/agents/architect.d.ts +1 -1
  5. package/dist/background/workspace-snapshot.d.ts +51 -0
  6. package/dist/cli/{auto-checkpoint-x13d1g1t.js → auto-checkpoint-8sxq4fam.js} +5 -5
  7. package/dist/cli/{checkpoint-68nb8k3t.js → checkpoint-septjh9j.js} +9 -9
  8. package/dist/cli/{coder-settlement-kmdmdpyy.js → coder-settlement-5e51gv83.js} +5 -5
  9. package/dist/cli/{config-doctor-4b0jb15n.js → config-doctor-szqpesb3.js} +8 -8
  10. package/dist/cli/{core-6kkm2vrz.js → core-wawy5vxa.js} +2 -2
  11. package/dist/cli/{curator-drift-axcgdjy4.js → curator-drift-p4xkfxm3.js} +6 -6
  12. package/dist/cli/{curator-llm-factory-58ec737y.js → curator-llm-factory-m6w5axpg.js} +28 -28
  13. package/dist/cli/{curator-z8xzxh9f.js → curator-s699p3wr.js} +28 -28
  14. package/dist/cli/{doctor-knowledge-receipt-phase-id-hkjt6hv4.js → doctor-knowledge-receipt-phase-id-xcczpaad.js} +5 -5
  15. package/dist/cli/{evidence-summary-service-981cx8wa.js → evidence-summary-service-smwfa1sk.js} +10 -10
  16. package/dist/cli/{gate-evidence-zyvwsp7a.js → gate-evidence-y1591qqg.js} +3 -3
  17. package/dist/cli/{guardrail-explain-23b0amne.js → guardrail-explain-1fvbaenr.js} +29 -29
  18. package/dist/cli/{guardrail-log-s2gxszvm.js → guardrail-log-nd644x5c.js} +4 -4
  19. package/dist/cli/{guardrail-reset-kt18vr45.js → guardrail-reset-fq7tby85.js} +28 -28
  20. package/dist/cli/{hive-promoter-fz7ep8h4.js → hive-promoter-bhnm4sf7.js} +28 -28
  21. package/dist/cli/{index-61m1jw7p.js → index-2a8xvtba.js} +2 -2
  22. package/dist/cli/{index-vj0zede7.js → index-2acc95ec.js} +1 -1
  23. package/dist/cli/{index-n9ry04hw.js → index-2zwk30cc.js} +15 -11
  24. package/dist/cli/{index-npy15m50.js → index-36anctab.js} +1 -1
  25. package/dist/cli/{index-bb2rx8k2.js → index-4925h28w.js} +3 -3
  26. package/dist/cli/{index-r7ayh42s.js → index-5c6h1d0s.js} +4 -4
  27. package/dist/cli/{index-mzx33w6e.js → index-5jp79fag.js} +5 -5
  28. package/dist/cli/{index-t1t93qm0.js → index-5p1md309.js} +2 -2
  29. package/dist/cli/{index-w9f2jbwe.js → index-68k5agm2.js} +1 -1
  30. package/dist/cli/{index-px1dnna2.js → index-7vzvj8ry.js} +1 -1
  31. package/dist/cli/{index-pf0xrx9w.js → index-c36fnjz3.js} +2913 -2008
  32. package/dist/cli/{index-fmbqyqqw.js → index-ccpxq4yh.js} +2 -2
  33. package/dist/cli/{index-nreezgrd.js → index-ddq1vt2f.js} +3 -3
  34. package/dist/cli/{index-weewx5nx.js → index-dgtvf04w.js} +1 -1
  35. package/dist/cli/{index-f900029m.js → index-dp7362hg.js} +4 -4
  36. package/dist/cli/{index-jccs3fgn.js → index-dyp5807d.js} +13 -1
  37. package/dist/cli/{index-qqv9rr8k.js → index-eh27whw4.js} +30 -30
  38. package/dist/cli/{index-p35gw2x7.js → index-fnqk017s.js} +1 -1
  39. package/dist/cli/{index-9ztsfved.js → index-hz2609qt.js} +117 -2
  40. package/dist/cli/{index-xj9260dh.js → index-j1kcy808.js} +6 -6
  41. package/dist/cli/{index-14vhp87b.js → index-krz83azd.js} +2 -2
  42. package/dist/cli/{index-m4s5a2sp.js → index-qy55ytz4.js} +4 -4
  43. package/dist/cli/{index-61fa8hg7.js → index-r0mapyst.js} +2 -2
  44. package/dist/cli/{index-3zzxrwaf.js → index-r7swzftd.js} +1 -1
  45. package/dist/cli/{index-8pyg2qnw.js → index-s7ftr7ka.js} +2 -2
  46. package/dist/cli/{index-408tpd21.js → index-sn3z9bq2.js} +2 -2
  47. package/dist/cli/{index-4rrff8k6.js → index-vdhr11qv.js} +3 -3
  48. package/dist/cli/{index-ge7vn1vz.js → index-w4dbmngb.js} +1 -1
  49. package/dist/cli/{index-nacmcvc4.js → index-wamvtpcn.js} +4 -4
  50. package/dist/cli/{index-jhk4000q.js → index-wer76f2n.js} +1 -1
  51. package/dist/cli/{index-hqrkr9ag.js → index-xfzkq1k4.js} +5 -5
  52. package/dist/cli/{index-w4624tpw.js → index-yvjpwsrd.js} +1 -1
  53. package/dist/cli/{index-795vmpe6.js → index-zh3fxcnn.js} +28 -28
  54. package/dist/cli/index.js +29 -29
  55. package/dist/cli/{knowledge-escalator-cf6m9y0s.js → knowledge-escalator-ebvnynz8.js} +8 -8
  56. package/dist/cli/{knowledge-events-hn5hymam.js → knowledge-events-crh7ax0w.js} +6 -6
  57. package/dist/cli/{knowledge-store-mgqk4hvy.js → knowledge-store-58rh7jbp.js} +1 -1
  58. package/dist/cli/{knowledge-validator-x9yrte9q.js → knowledge-validator-0vmhxf5s.js} +2 -2
  59. package/dist/cli/{mcp-hpmh4d6d.js → mcp-kjatmx4e.js} +1 -1
  60. package/dist/cli/{model-preflight-ry5jjnx4.js → model-preflight-0c7xkq6x.js} +28 -28
  61. package/dist/cli/{pending-delegations-j850kj5p.js → pending-delegations-j8g6zmnx.js} +2 -2
  62. package/dist/cli/{pr-subscriptions-mme9gb5e.js → pr-subscriptions-5zfjmma9.js} +1 -1
  63. package/dist/cli/{pr-workflow-gate-n6bj3dnn.js → pr-workflow-gate-y0yfj38r.js} +28 -28
  64. package/dist/cli/{runner-qe3fkzx5.js → runner-7sd43gan.js} +1 -1
  65. package/dist/cli/{scan-cursor-fdpxbx4f.js → scan-cursor-gegs7kjt.js} +2 -2
  66. package/dist/cli/{schema-amcjvk8a.js → schema-znqyq1kp.js} +2 -2
  67. package/dist/cli/{scope-persistence-mp4kqpk2.js → scope-persistence-sx4qgy4b.js} +6 -6
  68. package/dist/cli/{server-ptdvpwyd.js → server-rbknas06.js} +101 -39
  69. package/dist/cli/{skill-generator-v59hhybn.js → skill-generator-gtg3yenw.js} +9 -9
  70. package/dist/cli/{snapshot-coordination-init-nv6e4svp.js → snapshot-coordination-init-a0tt6s4t.js} +28 -28
  71. package/dist/cli/{speckit-checkoff-me8kd3wd.js → speckit-checkoff-gqcw669v.js} +4 -4
  72. package/dist/cli/{workspace-snapshot-vhvrkbbb.js → workspace-snapshot-4zfj5wnd.js} +13 -1
  73. package/dist/cli/{worktree-collision-ownership-84qyqars.js → worktree-collision-ownership-6qwxygnn.js} +2 -2
  74. package/dist/cli/{worktree-isolation-99qvz8ap.js → worktree-isolation-6sc66ka0.js} +28 -28
  75. package/dist/config/skill-contract-digest.d.ts +8 -0
  76. package/dist/hooks/pr-workflow-gate.d.ts +32 -23
  77. package/dist/host/v2/events.d.ts +19 -1
  78. package/dist/host/v2/hooks.d.ts +25 -0
  79. package/dist/index.js +63 -61
  80. package/dist/tools/index.d.ts +1 -0
  81. package/dist/tools/manifest.d.ts +1 -0
  82. package/dist/tools/prepare-pr-feedback-commit-message.d.ts +30 -0
  83. package/dist/tools/tool-metadata.d.ts +4 -4
  84. package/package.json +1 -1
@@ -22,33 +22,33 @@ import {
22
22
  resolveWriteTargets,
23
23
  searchKnowledge,
24
24
  symbols
25
- } from "./index-pf0xrx9w.js";
25
+ } from "./index-c36fnjz3.js";
26
26
  import {
27
27
  checkFileAuthority,
28
28
  checkWriteTargetForSymlink
29
- } from "./index-408tpd21.js";
30
- import"./index-nacmcvc4.js";
29
+ } from "./index-sn3z9bq2.js";
30
+ import"./index-wamvtpcn.js";
31
31
  import {
32
32
  _internals,
33
33
  saveEvidence
34
- } from "./index-px1dnna2.js";
34
+ } from "./index-7vzvj8ry.js";
35
35
  import {
36
36
  getProfileForFile
37
37
  } from "./index-j2vv0h13.js";
38
38
  import {
39
39
  pLimit
40
- } from "./index-jccs3fgn.js";
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-w4624tpw.js";
45
+ } from "./index-yvjpwsrd.js";
46
46
  import"./index-rdec0y3z.js";
47
- import"./index-npy15m50.js";
48
- import"./index-m4s5a2sp.js";
49
- import"./index-n9ry04hw.js";
50
- import"./index-xj9260dh.js";
51
- import"./index-9ztsfved.js";
47
+ import"./index-36anctab.js";
48
+ import"./index-qy55ytz4.js";
49
+ import"./index-2zwk30cc.js";
50
+ import"./index-j1kcy808.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-bb2rx8k2.js";
62
+ } from "./index-4925h28w.js";
63
63
  import {
64
64
  loadPlan,
65
65
  loadPlanJsonOnly
66
- } from "./index-mzx33w6e.js";
66
+ } from "./index-5jp79fag.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-nreezgrd.js";
76
+ import"./index-ddq1vt2f.js";
77
77
  import"./index-v3bmwmqw.js";
78
- import"./index-w9f2jbwe.js";
79
- import"./index-3zzxrwaf.js";
80
- import"./index-61m1jw7p.js";
78
+ import"./index-68k5agm2.js";
79
+ import"./index-r7swzftd.js";
80
+ import"./index-2a8xvtba.js";
81
81
  import"./index-g4fs6z4e.js";
82
- import"./index-jhk4000q.js";
83
- import"./index-8pyg2qnw.js";
84
- import"./index-61fa8hg7.js";
82
+ import"./index-wer76f2n.js";
83
+ import"./index-s7ftr7ka.js";
84
+ import"./index-r0mapyst.js";
85
85
  import"./index-m9zzj4ee.js";
86
86
  import"./index-820pzqd6.js";
87
87
  import"./index-2s7dvzff.js";
@@ -90,18 +90,18 @@ import {
90
90
  validateActionability,
91
91
  validateActionableFields,
92
92
  validateLesson
93
- } from "./index-vj0zede7.js";
93
+ } from "./index-2acc95ec.js";
94
94
  import {
95
95
  resolveWorktreeId
96
96
  } from "./index-2mx2gn97.js";
97
97
  import"./index-rtry5xyf.js";
98
- import"./index-4rrff8k6.js";
98
+ import"./index-vdhr11qv.js";
99
99
  import"./index-g22dps7x.js";
100
100
  import"./index-0725jpp7.js";
101
101
  import {
102
102
  normalizeScopeFiles
103
- } from "./index-ge7vn1vz.js";
104
- import"./index-fmbqyqqw.js";
103
+ } from "./index-w4dbmngb.js";
104
+ import"./index-ccpxq4yh.js";
105
105
  import"./index-h349p91m.js";
106
106
  import"./index-p5pgjp7n.js";
107
107
  import"./index-nr1pj3hy.js";
@@ -119,7 +119,7 @@ import {
119
119
  reinforceSwarmKnowledgeEntry,
120
120
  resolveSwarmKnowledgePath,
121
121
  transactKnowledge
122
- } from "./index-f900029m.js";
122
+ } from "./index-dp7362hg.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-weewx5nx.js";
146
+ } from "./index-dgtvf04w.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-t1t93qm0.js";
154
+ } from "./index-5p1md309.js";
155
155
  import {
156
156
  TOOL_METADATA,
157
157
  init_tool_metadata
158
- } from "./index-hqrkr9ag.js";
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 && this._taskMessageQueue) {
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-n9ry04hw.js";
36
+ } from "./index-2zwk30cc.js";
37
37
  import"./index-q7sjgr1y.js";
38
- import"./index-8pyg2qnw.js";
39
- import"./index-61fa8hg7.js";
38
+ import"./index-s7ftr7ka.js";
39
+ import"./index-r0mapyst.js";
40
40
  import"./index-m9zzj4ee.js";
41
41
  import"./index-820pzqd6.js";
42
42
  import"./index-2s7dvzff.js";
43
- import"./index-vj0zede7.js";
43
+ import"./index-2acc95ec.js";
44
44
  import"./index-2mx2gn97.js";
45
45
  import"./index-rtry5xyf.js";
46
- import"./index-4rrff8k6.js";
46
+ import"./index-vdhr11qv.js";
47
47
  import"./index-g22dps7x.js";
48
48
  import"./index-0725jpp7.js";
49
49
  import"./index-hc6wa3yg.js";
50
- import"./index-f900029m.js";
50
+ import"./index-dp7362hg.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-weewx5nx.js";
63
+ import"./index-dgtvf04w.js";
64
64
  import"./index-zxdawwc7.js";
65
- import"./index-t1t93qm0.js";
66
- import"./index-hqrkr9ag.js";
65
+ import"./index-5p1md309.js";
66
+ import"./index-xfzkq1k4.js";
67
67
  import"./index-bk5tah7q.js";
68
68
  import"./index-gknz3bv1.js";
69
69
  import"./index-zpsr8rpc.js";
@@ -8,50 +8,50 @@ import {
8
8
  markSnapshotCoordinationClosing,
9
9
  retrySnapshotCoordinationInitialization,
10
10
  startSnapshotCoordinationInitialization
11
- } from "./index-pf0xrx9w.js";
12
- import"./index-408tpd21.js";
13
- import"./index-nacmcvc4.js";
14
- import"./index-px1dnna2.js";
11
+ } from "./index-c36fnjz3.js";
12
+ import"./index-sn3z9bq2.js";
13
+ import"./index-wamvtpcn.js";
14
+ import"./index-7vzvj8ry.js";
15
15
  import"./index-j2vv0h13.js";
16
- import"./index-jccs3fgn.js";
16
+ import"./index-dyp5807d.js";
17
17
  import"./index-7c432abn.js";
18
18
  import"./index-txdagbh7.js";
19
- import"./index-w4624tpw.js";
19
+ import"./index-yvjpwsrd.js";
20
20
  import"./index-rdec0y3z.js";
21
- import"./index-npy15m50.js";
22
- import"./index-m4s5a2sp.js";
23
- import"./index-n9ry04hw.js";
24
- import"./index-xj9260dh.js";
25
- import"./index-9ztsfved.js";
21
+ import"./index-36anctab.js";
22
+ import"./index-qy55ytz4.js";
23
+ import"./index-2zwk30cc.js";
24
+ import"./index-j1kcy808.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-bb2rx8k2.js";
32
- import"./index-mzx33w6e.js";
31
+ import"./index-4925h28w.js";
32
+ import"./index-5jp79fag.js";
33
33
  import"./index-6b295cas.js";
34
34
  import"./index-9nyqt3kb.js";
35
- import"./index-nreezgrd.js";
35
+ import"./index-ddq1vt2f.js";
36
36
  import"./index-v3bmwmqw.js";
37
- import"./index-w9f2jbwe.js";
38
- import"./index-3zzxrwaf.js";
39
- import"./index-61m1jw7p.js";
37
+ import"./index-68k5agm2.js";
38
+ import"./index-r7swzftd.js";
39
+ import"./index-2a8xvtba.js";
40
40
  import"./index-g4fs6z4e.js";
41
- import"./index-jhk4000q.js";
42
- import"./index-8pyg2qnw.js";
43
- import"./index-61fa8hg7.js";
41
+ import"./index-wer76f2n.js";
42
+ import"./index-s7ftr7ka.js";
43
+ import"./index-r0mapyst.js";
44
44
  import"./index-m9zzj4ee.js";
45
45
  import"./index-820pzqd6.js";
46
46
  import"./index-2s7dvzff.js";
47
- import"./index-vj0zede7.js";
47
+ import"./index-2acc95ec.js";
48
48
  import"./index-2mx2gn97.js";
49
49
  import"./index-rtry5xyf.js";
50
- import"./index-4rrff8k6.js";
50
+ import"./index-vdhr11qv.js";
51
51
  import"./index-g22dps7x.js";
52
52
  import"./index-0725jpp7.js";
53
- import"./index-ge7vn1vz.js";
54
- import"./index-fmbqyqqw.js";
53
+ import"./index-w4dbmngb.js";
54
+ import"./index-ccpxq4yh.js";
55
55
  import"./index-h349p91m.js";
56
56
  import"./index-p5pgjp7n.js";
57
57
  import"./index-nr1pj3hy.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-f900029m.js";
63
+ import"./index-dp7362hg.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-weewx5nx.js";
76
+ import"./index-dgtvf04w.js";
77
77
  import"./index-zxdawwc7.js";
78
- import"./index-t1t93qm0.js";
79
- import"./index-hqrkr9ag.js";
78
+ import"./index-5p1md309.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-w9f2jbwe.js";
10
+ } from "./index-68k5agm2.js";
11
11
  import"./index-ejhxgyvm.js";
12
12
  import"./index-7g4c7s5r.js";
13
13
  import"./index-ywb5er8g.js";
14
- import"./index-weewx5nx.js";
14
+ import"./index-dgtvf04w.js";
15
15
  import"./index-zxdawwc7.js";
16
- import"./index-t1t93qm0.js";
17
- import"./index-hqrkr9ag.js";
16
+ import"./index-5p1md309.js";
17
+ import"./index-xfzkq1k4.js";
18
18
  import"./index-bk5tah7q.js";
19
19
  import"./index-gknz3bv1.js";
20
20
  import"./index-zpsr8rpc.js";
@@ -9,6 +9,7 @@ import {
9
9
  compareWorkspaceSnapshot,
10
10
  compareWorkspaceSnapshots,
11
11
  digest,
12
+ fastForwardToRefAsync,
12
13
  isSwarmRuntimePath,
13
14
  parsePorcelainPaths,
14
15
  parsePorcelainV2Snapshot,
@@ -28,13 +29,16 @@ import {
28
29
  resolveExactRemoteBranchHeadAsync,
29
30
  resolveGitControlStateDigest,
30
31
  resolveGitControlStateDigestAsync,
32
+ resolveIsAncestorAsync,
31
33
  resolveIsExactSingleChildCommit,
32
34
  resolveIsExactSingleChildCommitAsync,
33
35
  resolveIsWorkingTreeClean,
34
36
  resolveIsWorkingTreeCleanAsync,
37
+ resolveLocalRefHeadAsync,
35
38
  resolvePrFeedbackTrackingCandidatesAsync,
36
39
  resolvePrReviewDiffStats,
37
40
  resolvePrReviewDiffStatsAsync,
41
+ resolvePrWorkflowChangedPathSetAsync,
38
42
  resolvePrWorkflowRevisionDigest,
39
43
  resolvePrWorkflowRevisionDigestAsync,
40
44
  resolvePrWorkflowRevisionDigestDetailed,
@@ -43,10 +47,12 @@ import {
43
47
  resolveRemoteRefsContainingHeadAsync,
44
48
  resolveRemoteUrlIdentity,
45
49
  resolveRemoteUrlIdentityAsync,
50
+ resolveRepoTopLevelAsync,
51
+ resolveWorkingTreeDirtyPathsAsync,
46
52
  shouldSkipSnapshot,
47
53
  switchPrFeedbackTrackingCandidateAsync,
48
54
  workspaceSnapshotMatches
49
- } from "./index-9ztsfved.js";
55
+ } from "./index-hz2609qt.js";
50
56
  import"./index-820pzqd6.js";
51
57
  import"./index-2s7dvzff.js";
52
58
  import"./index-fzpt2djt.js";
@@ -59,6 +65,8 @@ export {
59
65
  workspaceSnapshotMatches,
60
66
  switchPrFeedbackTrackingCandidateAsync,
61
67
  shouldSkipSnapshot,
68
+ resolveWorkingTreeDirtyPathsAsync,
69
+ resolveRepoTopLevelAsync,
62
70
  resolveRemoteUrlIdentityAsync,
63
71
  resolveRemoteUrlIdentity,
64
72
  resolveRemoteRefsContainingHeadAsync,
@@ -67,13 +75,16 @@ export {
67
75
  resolvePrWorkflowRevisionDigestDetailed,
68
76
  resolvePrWorkflowRevisionDigestAsync,
69
77
  resolvePrWorkflowRevisionDigest,
78
+ resolvePrWorkflowChangedPathSetAsync,
70
79
  resolvePrReviewDiffStatsAsync,
71
80
  resolvePrReviewDiffStats,
72
81
  resolvePrFeedbackTrackingCandidatesAsync,
82
+ resolveLocalRefHeadAsync,
73
83
  resolveIsWorkingTreeCleanAsync,
74
84
  resolveIsWorkingTreeClean,
75
85
  resolveIsExactSingleChildCommitAsync,
76
86
  resolveIsExactSingleChildCommit,
87
+ resolveIsAncestorAsync,
77
88
  resolveGitControlStateDigestAsync,
78
89
  resolveGitControlStateDigest,
79
90
  resolveExactRemoteBranchHeadAsync,
@@ -93,6 +104,7 @@ export {
93
104
  parsePorcelainV2Snapshot,
94
105
  parsePorcelainPaths,
95
106
  isSwarmRuntimePath,
107
+ fastForwardToRefAsync,
96
108
  digest,
97
109
  compareWorkspaceSnapshots,
98
110
  compareWorkspaceSnapshot,
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  scanDelegationFallbacksForRecovery,
15
15
  scanDelegationsForRecovery
16
- } from "./index-jhk4000q.js";
16
+ } from "./index-wer76f2n.js";
17
17
  import"./index-820pzqd6.js";
18
18
  import"./index-2s7dvzff.js";
19
19
  import"./index-p5pgjp7n.js";
@@ -23,7 +23,7 @@ import"./index-ry16d01s.js";
23
23
  import"./index-rdm3px0g.js";
24
24
  import"./index-7pmbnjvj.js";
25
25
  import"./index-hc6wa3yg.js";
26
- import"./index-f900029m.js";
26
+ import"./index-dp7362hg.js";
27
27
  import"./index-vzm6zre7.js";
28
28
  import"./index-ae75rja9.js";
29
29
  import"./index-2bc7zfw3.js";
@@ -25,52 +25,52 @@ import {
25
25
  sanitizeWorktreeTaskId,
26
26
  standardWorktreeByCallID,
27
27
  standardWorktreeSerializationSessions
28
- } from "./index-pf0xrx9w.js";
29
- import"./index-408tpd21.js";
30
- import"./index-nacmcvc4.js";
31
- import"./index-px1dnna2.js";
28
+ } from "./index-c36fnjz3.js";
29
+ import"./index-sn3z9bq2.js";
30
+ import"./index-wamvtpcn.js";
31
+ import"./index-7vzvj8ry.js";
32
32
  import"./index-j2vv0h13.js";
33
- import"./index-jccs3fgn.js";
33
+ import"./index-dyp5807d.js";
34
34
  import"./index-7c432abn.js";
35
35
  import"./index-txdagbh7.js";
36
- import"./index-w4624tpw.js";
36
+ import"./index-yvjpwsrd.js";
37
37
  import"./index-rdec0y3z.js";
38
- import"./index-npy15m50.js";
39
- import"./index-m4s5a2sp.js";
40
- import"./index-n9ry04hw.js";
41
- import"./index-xj9260dh.js";
42
- import"./index-9ztsfved.js";
38
+ import"./index-36anctab.js";
39
+ import"./index-qy55ytz4.js";
40
+ import"./index-2zwk30cc.js";
41
+ import"./index-j1kcy808.js";
42
+ import"./index-hz2609qt.js";
43
43
  import"./index-bkscmz4z.js";
44
44
  import"./index-cjapb4hy.js";
45
45
  import"./index-pxdc0qn1.js";
46
46
  import"./index-pt7h91zc.js";
47
47
  import"./index-q7sjgr1y.js";
48
- import"./index-bb2rx8k2.js";
49
- import"./index-mzx33w6e.js";
48
+ import"./index-4925h28w.js";
49
+ import"./index-5jp79fag.js";
50
50
  import"./index-6b295cas.js";
51
51
  import"./index-9nyqt3kb.js";
52
- import"./index-nreezgrd.js";
52
+ import"./index-ddq1vt2f.js";
53
53
  import"./index-v3bmwmqw.js";
54
- import"./index-w9f2jbwe.js";
55
- import"./index-3zzxrwaf.js";
56
- import"./index-61m1jw7p.js";
54
+ import"./index-68k5agm2.js";
55
+ import"./index-r7swzftd.js";
56
+ import"./index-2a8xvtba.js";
57
57
  import"./index-g4fs6z4e.js";
58
- import"./index-jhk4000q.js";
59
- import"./index-8pyg2qnw.js";
60
- import"./index-61fa8hg7.js";
58
+ import"./index-wer76f2n.js";
59
+ import"./index-s7ftr7ka.js";
60
+ import"./index-r0mapyst.js";
61
61
  import"./index-m9zzj4ee.js";
62
62
  import"./index-820pzqd6.js";
63
63
  import"./index-2s7dvzff.js";
64
- import"./index-vj0zede7.js";
64
+ import"./index-2acc95ec.js";
65
65
  import"./index-2mx2gn97.js";
66
66
  import"./index-rtry5xyf.js";
67
67
  import {
68
68
  resolveWorktreeIsolationConfig
69
- } from "./index-4rrff8k6.js";
69
+ } from "./index-vdhr11qv.js";
70
70
  import"./index-g22dps7x.js";
71
71
  import"./index-0725jpp7.js";
72
- import"./index-ge7vn1vz.js";
73
- import"./index-fmbqyqqw.js";
72
+ import"./index-w4dbmngb.js";
73
+ import"./index-ccpxq4yh.js";
74
74
  import"./index-h349p91m.js";
75
75
  import"./index-p5pgjp7n.js";
76
76
  import"./index-nr1pj3hy.js";
@@ -79,7 +79,7 @@ import"./index-ry16d01s.js";
79
79
  import"./index-rdm3px0g.js";
80
80
  import"./index-7pmbnjvj.js";
81
81
  import"./index-hc6wa3yg.js";
82
- import"./index-f900029m.js";
82
+ import"./index-dp7362hg.js";
83
83
  import"./index-vzm6zre7.js";
84
84
  import"./index-ae75rja9.js";
85
85
  import"./index-2bc7zfw3.js";
@@ -92,10 +92,10 @@ import"./index-ejhxgyvm.js";
92
92
  import"./index-7g4c7s5r.js";
93
93
  import"./index-ywb5er8g.js";
94
94
  import"./index-gx2vp8gx.js";
95
- import"./index-weewx5nx.js";
95
+ import"./index-dgtvf04w.js";
96
96
  import"./index-zxdawwc7.js";
97
- import"./index-t1t93qm0.js";
98
- import"./index-hqrkr9ag.js";
97
+ import"./index-5p1md309.js";
98
+ import"./index-xfzkq1k4.js";
99
99
  import"./index-bk5tah7q.js";
100
100
  import"./index-gknz3bv1.js";
101
101
  import"./index-zpsr8rpc.js";