opencode-swarm 7.164.11 → 7.164.12

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 (107) hide show
  1. package/.opencode/skills/engineering-conventions/SKILL.md +1 -1
  2. package/dist/background/pending-delegations.d.ts +7 -2
  3. package/dist/background/pr-subscriptions.d.ts +3 -3
  4. package/dist/cli/{coder-settlement-0rfk8y11.js → coder-settlement-yh1q5fr3.js} +15 -16
  5. package/dist/cli/{config-doctor-j17b7qq2.js → config-doctor-bd4yzmh7.js} +3 -3
  6. package/dist/cli/{core-evhjjrtt.js → core-y0s1vmyc.js} +2 -2
  7. package/dist/cli/{curation-policy-vj6z5hvr.js → curation-policy-gs1qakn7.js} +5 -6
  8. package/dist/cli/{curator-vqd5yeck.js → curator-brqack0j.js} +48 -46
  9. package/dist/cli/{curator-drift-ez81vg2t.js → curator-drift-1sg9yk2m.js} +14 -12
  10. package/dist/cli/curator-llm-factory-dtsjc3zf.js +70 -0
  11. package/dist/cli/{dispatch-dqybvj8v.js → dispatch-c7xjt7js.js} +3 -3
  12. package/dist/cli/{evidence-summary-service-937x7rbg.js → evidence-summary-service-nqbcvp30.js} +24 -23
  13. package/dist/cli/{gate-evidence-q1cehr4k.js → gate-evidence-9stdtpej.js} +9 -10
  14. package/dist/cli/guardrail-explain-3ff1z3fm.js +71 -0
  15. package/dist/cli/{guardrail-log-3g93f3g2.js → guardrail-log-sf39x00b.js} +10 -10
  16. package/dist/cli/{guardrail-reset-qe2r5qzq.js → guardrail-reset-9wr6a60s.js} +48 -46
  17. package/dist/cli/hive-promoter-bqtj8261.js +85 -0
  18. package/dist/cli/{index-kv2tdkk5.js → index-03enxdaq.js} +1 -1
  19. package/dist/cli/{index-ggrp3v00.js → index-0byep4pe.js} +15 -17
  20. package/dist/cli/{index-2bgr671r.js → index-2bhz5k91.js} +20 -2
  21. package/dist/cli/{index-mmjamc9b.js → index-3fnym6ac.js} +5 -5
  22. package/dist/cli/{index-d9entpn3.js → index-40twgsyh.js} +4 -4
  23. package/dist/cli/{index-ggtmsm84.js → index-4mjmnysc.js} +1 -1
  24. package/dist/cli/{index-e90em0x4.js → index-4vb56w2k.js} +12 -17
  25. package/dist/cli/{index-r656jh9j.js → index-5wc5pbzc.js} +3700 -2609
  26. package/dist/cli/{index-w3gtqey0.js → index-6chhqq2n.js} +4 -4
  27. package/dist/cli/{index-qbw3yw2d.js → index-888pq4xx.js} +11 -11
  28. package/dist/cli/{index-3146wmgv.js → index-8d90gzaz.js} +1 -1
  29. package/dist/cli/{index-5jx22kwc.js → index-8vw2pjgr.js} +544 -15
  30. package/dist/cli/{index-b2nj04q6.js → index-9ss2m4rs.js} +1 -434
  31. package/dist/cli/{index-x43debgx.js → index-ad9064j9.js} +15 -17
  32. package/dist/cli/{index-5kcvrpkt.js → index-b25t91a3.js} +1 -1
  33. package/dist/cli/index-c45662wc.js +361 -0
  34. package/dist/cli/{index-aqppaaqx.js → index-cgewrpw5.js} +3 -2
  35. package/dist/cli/{index-zfs3zqeq.js → index-d3mpxsmy.js} +771 -21
  36. package/dist/cli/{index-y1yqmkv7.js → index-d7j3n5ra.js} +52 -50
  37. package/dist/cli/{index-4vb6qa73.js → index-ebce775n.js} +36 -2
  38. package/dist/cli/{index-dsg9dw3b.js → index-eed0gkv6.js} +2 -2
  39. package/dist/cli/index-es64amqt.js +675 -0
  40. package/dist/cli/{index-9gxbjkts.js → index-ewv8qa8q.js} +22 -19
  41. package/dist/cli/{index-1ww7wj8d.js → index-hb7bh4r2.js} +15 -15
  42. package/dist/cli/{index-kc2tgcm7.js → index-hg09xemc.js} +4 -4
  43. package/dist/cli/{index-w95vxjde.js → index-hvz4ad2t.js} +39 -8
  44. package/dist/cli/{index-77z98j76.js → index-k0s8n6m5.js} +314 -130
  45. package/dist/cli/{index-7m32fjb4.js → index-kxv193aq.js} +9 -9
  46. package/dist/cli/{index-hp22pzn5.js → index-m8xrbdmn.js} +2 -2
  47. package/dist/cli/{index-4gqxppcx.js → index-mee9maf5.js} +2 -2
  48. package/dist/cli/{index-r3mvsbtq.js → index-p612v1mv.js} +7 -1
  49. package/dist/cli/{index-r5q5gd2a.js → index-qgajv9rd.js} +2 -2
  50. package/dist/cli/{index-zjg4chy2.js → index-qqq04n70.js} +2 -2
  51. package/dist/cli/{index-ww6zm5hr.js → index-r2p0pgst.js} +3 -3
  52. package/dist/cli/{index-47kh2103.js → index-r69gzes2.js} +14 -14
  53. package/dist/cli/{index-vdn32nws.js → index-sphahrmq.js} +3 -3
  54. package/dist/cli/{index-rhqdsc1x.js → index-vw66q1rw.js} +9 -9
  55. package/dist/cli/{index-kch6yenm.js → index-wasdrhev.js} +7 -7
  56. package/dist/cli/{index-c5v1w13g.js → index-wknpkfm8.js} +807 -629
  57. package/dist/cli/{index-pp2nya9v.js → index-x39hjdf1.js} +2 -4
  58. package/dist/cli/{index-n8688d12.js → index-xxfk62zd.js} +2 -2
  59. package/dist/cli/index-yvqg6kn5.js +429 -0
  60. package/dist/cli/{index-nqsj0g5y.js → index-ztm0q26v.js} +8 -8
  61. package/dist/cli/index.js +50 -48
  62. package/dist/cli/{knowledge-escalator-j04g450p.js → knowledge-escalator-01vva51d.js} +17 -18
  63. package/dist/cli/{knowledge-events-53z45rs0.js → knowledge-events-dpfwh1hs.js} +15 -16
  64. package/dist/cli/{knowledge-link-a6kfg3qm.js → knowledge-link-2rvp966j.js} +4 -5
  65. package/dist/cli/{knowledge-store-whm0gagt.js → knowledge-store-aw58ae7b.js} +6 -7
  66. package/dist/cli/{knowledge-validator-h8m7065g.js → knowledge-validator-yhd31ryf.js} +8 -9
  67. package/dist/cli/{pending-delegations-6hkpe5ze.js → pending-delegations-fjetcz8e.js} +17 -8
  68. package/dist/cli/{pr-subscriptions-11zca1mh.js → pr-subscriptions-cwwtfs8w.js} +17 -8
  69. package/dist/cli/{pr-workflow-gate-6g29rkg7.js → pr-workflow-gate-5xwtg1k2.js} +50 -48
  70. package/dist/cli/{runner-5abw3t35.js → runner-mb51twxt.js} +6 -7
  71. package/dist/cli/{scan-cursor-mkfx410t.js → scan-cursor-j11qwf0v.js} +9 -10
  72. package/dist/cli/{schema-jbbam3ev.js → schema-0xp3bde3.js} +1 -1
  73. package/dist/cli/{scope-persistence-q1ct4k42.js → scope-persistence-brrk806y.js} +19 -12
  74. package/dist/cli/{skill-generator-cv8fg96x.js → skill-generator-j8qzmet9.js} +20 -21
  75. package/dist/cli/snapshot-coordination-init-h0xmtftq.js +84 -0
  76. package/dist/cli/{telemetry-mbqqamsj.js → telemetry-m84ap0pp.js} +1 -1
  77. package/dist/cli/{workspace-snapshot-eh18vgkn.js → workspace-snapshot-6z9rk7xw.js} +3 -3
  78. package/dist/cli/{worktree-collision-ownership-xgnn8dsq.js → worktree-collision-ownership-j9zykj18.js} +21 -12
  79. package/dist/cli/{worktree-isolation-k2dgfmeg.js → worktree-isolation-jd39xz6h.js} +48 -46
  80. package/dist/commands/close.d.ts +13 -6
  81. package/dist/commands/reset-session.d.ts +4 -0
  82. package/dist/db/coordination-store.d.ts +85 -0
  83. package/dist/db/durability.d.ts +22 -5
  84. package/dist/db/index.d.ts +1 -0
  85. package/dist/db/project-db.d.ts +12 -0
  86. package/dist/index.js +810 -705
  87. package/dist/memory/schema.d.ts +3 -3
  88. package/dist/pr-review/authorization.d.ts +5 -4
  89. package/dist/pr-review/persistence.d.ts +10 -1
  90. package/dist/scope/scope-binding.d.ts +10 -0
  91. package/dist/scope/scope-persistence.d.ts +10 -0
  92. package/dist/services/handoff-service.d.ts +2 -0
  93. package/dist/services/status-service.d.ts +4 -0
  94. package/dist/session/snapshot-coordination-init.d.ts +49 -0
  95. package/dist/session/snapshot-reader.d.ts +2 -0
  96. package/dist/session/snapshot-store.d.ts +42 -0
  97. package/dist/session/snapshot-writer.d.ts +4 -1
  98. package/dist/state.d.ts +6 -3
  99. package/dist/turbo/epic/state.d.ts +4 -20
  100. package/dist/utils/bun-compat.d.ts +10 -0
  101. package/dist/utils/external-tool-runner.d.ts +2 -0
  102. package/package.json +3 -2
  103. package/dist/cli/curator-llm-factory-sxcpmcqq.js +0 -68
  104. package/dist/cli/guardrail-explain-xv9aw1bf.js +0 -69
  105. package/dist/cli/hive-promoter-09yc9mp5.js +0 -83
  106. package/dist/cli/index-xnb3tk7x.js +0 -24
  107. package/dist/cli/{ast-diff-ekd9v10f.js → ast-diff-b0esr2kf.js} +3 -3
@@ -174,8 +174,8 @@ var SWARM_TEMP_GRAMMARS = [
174
174
  quarantineEligible: true,
175
175
  parsesTarget: true,
176
176
  producers: [
177
- "src/commands/handoff.ts:48 (pre-#2035)",
178
- "src/commands/handoff.ts:79 (pre-#2035)",
177
+ "src/commands/handoff.ts (pre-#2035; site=handoff.md; migrated-to=src/commands/handoff.ts:handleHandoffCommand)",
178
+ "src/commands/handoff.ts (pre-#2035; site=handoff-prompt.md; migrated-to=src/commands/handoff.ts:handleHandoffCommand)",
179
179
  "src/memory/local-jsonl-provider.ts:1288",
180
180
  "src/config/bundled-skills.ts:251"
181
181
  ]
@@ -188,7 +188,7 @@ var SWARM_TEMP_GRAMMARS = [
188
188
  quarantineEligible: true,
189
189
  parsesTarget: true,
190
190
  producers: [
191
- "src/hooks/pr-workflow-gate.ts (pre-#2385; migration extracted to src/pr-review/persistence.ts)"
191
+ "src/hooks/pr-workflow-gate.ts (pre-#2385; migrated-to=src/pr-review/persistence.ts:writeAtomicJson)"
192
192
  ],
193
193
  note: "pre/post-rename file-identity verification (assertOpened/ClosedSwarmFileIdentity, pr-workflow-gate.ts:17880-17980) is writer-specific and load-bearing"
194
194
  },
@@ -210,9 +210,9 @@ var SWARM_TEMP_GRAMMARS = [
210
210
  quarantineEligible: true,
211
211
  parsesTarget: true,
212
212
  producers: [
213
- "src/evidence/task-file.ts:67 (pre-#2035)",
214
- "src/scope/scope-persistence.ts:2304 (pre-#2035)",
215
- "src/scope/scope-persistence.ts:2318 (pre-#2035)",
213
+ "src/evidence/task-file.ts (pre-#2035; migrated-to=src/evidence/task-file.ts:atomicWriteFile)",
214
+ "src/scope/scope-persistence.ts (pre-#2035; migrated-to=src/scope/scope-persistence.ts:atomicWrite)",
215
+ "src/scope/scope-persistence.ts (pre-#2035; migrated-to=src/scope/scope-persistence.ts:atomicWriteSync)",
216
216
  "src/plan/manager.ts:630",
217
217
  "src/plan/manager.ts:1786",
218
218
  "src/plan/manager.ts:1832",
@@ -223,19 +223,18 @@ var SWARM_TEMP_GRAMMARS = [
223
223
  "src/evidence/manager.ts:456",
224
224
  "src/tools/sast-baseline.ts:199",
225
225
  "src/tools/repo-graph/storage.ts:494",
226
- "src/memory/reflection-service.ts:547 (pre-#2035)",
226
+ "src/memory/reflection-service.ts (pre-#2035; migrated-to=src/memory/reflection-service.ts:atomicWrite)",
227
227
  "src/hooks/review-receipt.ts:608",
228
228
  "src/hooks/review-receipt.ts:674",
229
229
  "src/hooks/review-receipt.ts:812",
230
230
  "src/knowledge/identity.ts:209",
231
- "src/evidence/phase-participation.ts:303 (pre-#2035)",
231
+ "src/evidence/phase-participation.ts (pre-#2035; migrated-to=src/evidence/phase-participation.ts:atomicWriteBytes)",
232
232
  "src/turbo/lean/integration.ts:428",
233
233
  "src/turbo/lean/reviewer.ts:403",
234
234
  "src/plan/ledger.ts:746",
235
235
  "src/services/synonym-map.ts:389",
236
236
  "src/services/skill-optimizer/store.ts:340",
237
237
  "src/services/skill-optimizer/store.ts:503",
238
- "src/turbo/epic/state.ts:182",
239
238
  "src/turbo/epic/calibration.ts:202",
240
239
  "src/commands/archive-sqlite.ts:318",
241
240
  "src/memory/jsonl-migration.ts:161"
@@ -250,7 +249,7 @@ var SWARM_TEMP_GRAMMARS = [
250
249
  quarantineEligible: true,
251
250
  parsesTarget: true,
252
251
  producers: [
253
- "src/turbo/lean/state.ts:251",
252
+ "src/turbo/lean/state.ts:129",
254
253
  "src/turbo/lean/recovery.ts:175",
255
254
  "src/hooks/delegation-gate/worktree-merge-status.ts:110"
256
255
  ]
@@ -263,17 +262,17 @@ var SWARM_TEMP_GRAMMARS = [
263
262
  quarantineEligible: true,
264
263
  parsesTarget: true,
265
264
  producers: [
266
- "src/services/skill-evaluator.ts:492 (pre-#2035)",
267
- "src/services/skill-improver.ts:154 (pre-#2035)",
268
- "src/services/skill-consolidation.ts:72 (pre-#2035)",
269
- "src/services/skill-generator.ts:601 (pre-#2035)",
265
+ "src/services/skill-evaluator.ts (pre-#2035; migrated-to=src/services/skill-evaluator.ts:atomicWrite)",
266
+ "src/services/skill-improver.ts (pre-#2035; migrated-to=src/services/skill-improver.ts:atomicWrite)",
267
+ "src/services/skill-consolidation.ts (pre-#2035; migrated-to=src/services/skill-consolidation.ts:atomicWrite)",
268
+ "src/services/skill-generator.ts (pre-#2035; migrated-to=src/services/skill-generator.ts:atomicWrite)",
270
269
  "src/tools/spec-write.ts:98",
271
270
  "src/sdd/effective-spec.ts:1149",
272
271
  "src/background/lane-output-store.ts:353",
273
- "src/background/pending-delegations.ts:1117",
272
+ "src/background/pending-delegations.ts:1443",
274
273
  "src/background/delegation-health.ts:391",
275
274
  "src/tools/submit-phase-council-verdicts.ts:458",
276
- "src/summaries/store.ts:46 (pre-#2035)"
275
+ "src/summaries/store.ts (pre-#2035; migrated-to=src/summaries/store.ts:writeRawSidecar)"
277
276
  ],
278
277
  note: "background lane/delegation stores keep bounded-retry rename semantics wired into their callers (#2034/#2276 delivery contracts); migration candidates for a follow-up but grammars registered"
279
278
  },
@@ -330,7 +329,9 @@ var SWARM_TEMP_GRAMMARS = [
330
329
  token: "instance",
331
330
  quarantineEligible: true,
332
331
  parsesTarget: false,
333
- producers: ["src/commands/issue.ts:167 (pre-#2035)"],
332
+ producers: [
333
+ "src/commands/issue.ts (pre-#2035; migrated-to=src/commands/issue.ts:atomicWriteFileSync)"
334
+ ],
334
335
  note: "prefix form embeds the filename; target not reliably parseable (dashes), so eligibility relies on the age/tracked/symlink/lock gates"
335
336
  },
336
337
  {
@@ -350,7 +351,9 @@ var SWARM_TEMP_GRAMMARS = [
350
351
  token: "instance",
351
352
  quarantineEligible: true,
352
353
  parsesTarget: true,
353
- producers: ["src/scope/scope-persistence.ts:633 (pre-#2035)"]
354
+ producers: [
355
+ "src/scope/scope-persistence.ts (pre-#2035; migrated-to=src/scope/scope-persistence.ts:atomicWriteSync)"
356
+ ]
354
357
  },
355
358
  {
356
359
  id: "dot-tmp-prefix-legacy",
@@ -360,7 +363,7 @@ var SWARM_TEMP_GRAMMARS = [
360
363
  quarantineEligible: true,
361
364
  parsesTarget: false,
362
365
  producers: [
363
- "pre-7.x writers (historical); matched by the pre-#2035 close sweep"
366
+ "pre-7.x writers (pre-#2035; scanner=src/services/swarm-residue.ts:collectCandidates)"
364
367
  ],
365
368
  note: "legacy prefix grammar: issue #2035 req 7 preserves its handling \u2014 stale instances are quarantined (formerly unlinked) under the same eligibility gates"
366
369
  },
@@ -1,22 +1,29 @@
1
1
  // @bun
2
- import {
3
- ALLOWED_SKILL_PATH_PREFIXES,
4
- validateSkillPath
5
- } from "./index-kc2tgcm7.js";
6
2
  import {
7
3
  withTimeoutSignal
8
4
  } from "./index-q7sjgr1y.js";
5
+ import {
6
+ effectiveRetrievalOutcomes,
7
+ readAuthoritativeKnowledgeCounterRollups
8
+ } from "./index-0byep4pe.js";
9
+ import {
10
+ ALLOWED_SKILL_PATH_PREFIXES,
11
+ validateSkillPath
12
+ } from "./index-hg09xemc.js";
9
13
  import {
10
14
  computeOutcomeSignal,
11
15
  readKnowledge,
12
16
  resolveHiveKnowledgePath,
13
17
  resolveSwarmKnowledgePath,
14
18
  transactKnowledge
15
- } from "./index-qbw3yw2d.js";
19
+ } from "./index-888pq4xx.js";
16
20
  import {
17
- effectiveRetrievalOutcomes,
18
- readAuthoritativeKnowledgeCounterRollups
19
- } from "./index-ggrp3v00.js";
21
+ canonicalRootKeyFresh
22
+ } from "./index-7qefgq4j.js";
23
+ import {
24
+ atomicWriteFileAnyRoot,
25
+ atomicWriteSwarmFile
26
+ } from "./index-ewv8qa8q.js";
20
27
  import {
21
28
  advisoryWarn,
22
29
  init_warning_buffer
@@ -25,13 +32,6 @@ import {
25
32
  init_knowledge_types,
26
33
  isActiveStatus
27
34
  } from "./index-bk5tah7q.js";
28
- import {
29
- canonicalRootKeyFresh
30
- } from "./index-7qefgq4j.js";
31
- import {
32
- atomicWriteFileAnyRoot,
33
- atomicWriteSwarmFile
34
- } from "./index-9gxbjkts.js";
35
35
  import {
36
36
  init_logger,
37
37
  log,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-ggtmsm84.js";
4
+ } from "./index-4mjmnysc.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,13 +9,13 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-qbw3yw2d.js";
12
+ } from "./index-888pq4xx.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-vdn32nws.js";
15
+ } from "./index-sphahrmq.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-xnb3tk7x.js";
18
+ } from "./index-2bhz5k91.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-7g4c7s5r.js";
@@ -9,7 +9,7 @@ import {
9
9
  readEvaluationRun,
10
10
  saveEvaluationRun,
11
11
  saveTaskSetSnapshot
12
- } from "./index-pp2nya9v.js";
12
+ } from "./index-x39hjdf1.js";
13
13
  import {
14
14
  canonicalHash,
15
15
  computeCandidateInputContentHash,
@@ -20,11 +20,15 @@ import {
20
20
  } from "./index-txdagbh7.js";
21
21
  import {
22
22
  bunSpawn
23
- } from "./index-r3mvsbtq.js";
23
+ } from "./index-p612v1mv.js";
24
24
  import {
25
25
  exports_external,
26
26
  init_zod
27
27
  } from "./index-bpmtbmy9.js";
28
+ import {
29
+ init_logger,
30
+ warn
31
+ } from "./index-zgwm4ryv.js";
28
32
 
29
33
  // src/evaluation/runner.ts
30
34
  import * as fs3 from "fs";
@@ -192,6 +196,20 @@ init_zod();
192
196
  // src/utils/external-tool-runner.ts
193
197
  import * as fs from "fs";
194
198
  import * as path from "path";
199
+ init_logger();
200
+ function decodeCompleteUtf8Prefix(bytes) {
201
+ const fatalDecoder = new TextDecoder("utf-8", { fatal: true });
202
+ try {
203
+ return fatalDecoder.decode(bytes);
204
+ } catch {
205
+ for (let trim = 1;trim <= 3 && trim <= bytes.byteLength; trim += 1) {
206
+ try {
207
+ return fatalDecoder.decode(bytes.subarray(0, bytes.byteLength - trim));
208
+ } catch {}
209
+ }
210
+ return new TextDecoder().decode(bytes).replace(/\uFFFD+$/u, "");
211
+ }
212
+ }
195
213
  var DEFAULT_WINDOWS_EXTENSIONS = [".exe", ".cmd", ".bat"];
196
214
  var TERMINATION_GRACE_MS = 20;
197
215
  var TERMINATION_FORCE_MS = 20;
@@ -325,7 +343,7 @@ function startBoundedStreamRead(stream, maxBytes, onLimitExceeded) {
325
343
  offset += chunk.byteLength;
326
344
  }
327
345
  return {
328
- text: new TextDecoder().decode(out),
346
+ text: decodeCompleteUtf8Prefix(out),
329
347
  truncated
330
348
  };
331
349
  })();
@@ -334,20 +352,32 @@ function startBoundedStreamRead(stream, maxBytes, onLimitExceeded) {
334
352
  function timeoutKillSignal(platform) {
335
353
  return platform === "win32" ? "SIGTERM" : "SIGKILL";
336
354
  }
355
+ function reportKillFailure(error, signal) {
356
+ if (error?.code === "ESRCH")
357
+ return;
358
+ _internals.warn(`external tool process kill failed for ${signal}`, error);
359
+ }
337
360
  function killProcess(proc) {
361
+ const signal = timeoutKillSignal(_internals.platform());
338
362
  try {
339
- proc?.kill(timeoutKillSignal(_internals.platform()));
340
- } catch {}
363
+ proc?.kill(signal);
364
+ } catch (error) {
365
+ reportKillFailure(error, signal);
366
+ }
341
367
  }
342
368
  function requestTermination(proc, signal) {
343
369
  try {
344
370
  if (proc?.killTree) {
345
- return proc.killTree(signal).then(() => true, () => false);
371
+ return proc.killTree(signal).then(() => true, (error) => {
372
+ reportKillFailure(error, signal);
373
+ return false;
374
+ });
346
375
  } else {
347
376
  proc?.kill(signal);
348
377
  return Promise.resolve(proc !== undefined);
349
378
  }
350
- } catch {
379
+ } catch (error) {
380
+ reportKillFailure(error, signal);
351
381
  return Promise.resolve(false);
352
382
  }
353
383
  }
@@ -635,7 +665,8 @@ var _internals = {
635
665
  setTimeout,
636
666
  clearTimeout,
637
667
  clampTimeoutMs,
638
- computeSpawnTimeoutMs
668
+ computeSpawnTimeoutMs,
669
+ warn
639
670
  };
640
671
 
641
672
  // src/evaluation/disposable-worktree.ts