opencode-swarm 7.199.0 → 7.199.1

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 (70) hide show
  1. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  2. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  3. package/dist/cli/{auto-checkpoint-1wf9n5yj.js → auto-checkpoint-x13d1g1t.js} +5 -5
  4. package/dist/cli/{checkpoint-gw6f4ghv.js → checkpoint-68nb8k3t.js} +9 -9
  5. package/dist/cli/{coder-settlement-qy77s1x6.js → coder-settlement-kmdmdpyy.js} +4 -4
  6. package/dist/cli/{config-doctor-2tcp28sc.js → config-doctor-4b0jb15n.js} +8 -8
  7. package/dist/cli/{core-pz87qafz.js → core-6kkm2vrz.js} +1 -1
  8. package/dist/cli/{curator-drift-c1x7jdxj.js → curator-drift-axcgdjy4.js} +5 -5
  9. package/dist/cli/{curator-llm-factory-cg1p6ysr.js → curator-llm-factory-58ec737y.js} +26 -26
  10. package/dist/cli/{curator-fvnptcnw.js → curator-z8xzxh9f.js} +26 -26
  11. package/dist/cli/{doctor-knowledge-receipt-phase-id-xwyb5sf8.js → doctor-knowledge-receipt-phase-id-hkjt6hv4.js} +4 -4
  12. package/dist/cli/{evidence-summary-service-47cptvea.js → evidence-summary-service-981cx8wa.js} +10 -10
  13. package/dist/cli/{gate-evidence-77bzfckz.js → gate-evidence-zyvwsp7a.js} +2 -2
  14. package/dist/cli/{guardrail-explain-0ap0a51w.js → guardrail-explain-23b0amne.js} +27 -27
  15. package/dist/cli/{guardrail-log-xw37f7ws.js → guardrail-log-s2gxszvm.js} +5 -4
  16. package/dist/cli/{guardrail-reset-3fq8xdjf.js → guardrail-reset-kt18vr45.js} +26 -26
  17. package/dist/cli/{hive-promoter-bmdgnmnf.js → hive-promoter-fz7ep8h4.js} +26 -26
  18. package/dist/cli/{index-ckcdheqx.js → index-14vhp87b.js} +2 -2
  19. package/dist/cli/{index-vbm2ykr9.js → index-3zzxrwaf.js} +1 -1
  20. package/dist/cli/{index-kxaxf3en.js → index-408tpd21.js} +245 -18
  21. package/dist/cli/{index-vh87e91s.js → index-4rrff8k6.js} +2 -2
  22. package/dist/cli/{index-bjzxbxpw.js → index-61fa8hg7.js} +2 -2
  23. package/dist/cli/{index-2f9tsejp.js → index-61m1jw7p.js} +1 -1
  24. package/dist/cli/{index-kjhsssaq.js → index-795vmpe6.js} +26 -26
  25. package/dist/cli/{index-mzsj4kkv.js → index-8pyg2qnw.js} +2 -2
  26. package/dist/cli/{index-gds6c8qt.js → index-bb2rx8k2.js} +4 -4
  27. package/dist/cli/{index-1fwm8vqr.js → index-f900029m.js} +4 -4
  28. package/dist/cli/{index-26h8fb7t.js → index-fmbqyqqw.js} +2 -2
  29. package/dist/cli/{index-b5k6etf9.js → index-ge7vn1vz.js} +2 -2
  30. package/dist/cli/{index-awt5dpam.js → index-h349p91m.js} +32 -1
  31. package/dist/cli/{index-3gwh8c9d.js → index-jhk4000q.js} +1 -1
  32. package/dist/cli/{index-ye9bze9s.js → index-m4s5a2sp.js} +4 -4
  33. package/dist/cli/{index-tnrq0pg8.js → index-mzx33w6e.js} +6 -6
  34. package/dist/cli/{index-mefad009.js → index-n9ry04hw.js} +3 -3
  35. package/dist/cli/{index-42dtc5nd.js → index-nacmcvc4.js} +3 -3
  36. package/dist/cli/{index-r52wrpb7.js → index-npy15m50.js} +1 -1
  37. package/dist/cli/{index-zd15v0gr.js → index-nreezgrd.js} +3 -3
  38. package/dist/cli/{index-a5xzwxdq.js → index-p35gw2x7.js} +1 -1
  39. package/dist/cli/{index-79b9re6h.js → index-pf0xrx9w.js} +79 -64
  40. package/dist/cli/{index-zg5gnn3m.js → index-px1dnna2.js} +1 -1
  41. package/dist/cli/{index-4hnxtssf.js → index-qqv9rr8k.js} +28 -28
  42. package/dist/cli/{index-71g0ps66.js → index-r7ayh42s.js} +3 -3
  43. package/dist/cli/{index-3x07b03s.js → index-t1t93qm0.js} +1 -1
  44. package/dist/cli/{index-e5ecn73v.js → index-vj0zede7.js} +1 -1
  45. package/dist/cli/{index-y9ckbta5.js → index-w4624tpw.js} +1 -1
  46. package/dist/cli/{index-pqrepne6.js → index-w9f2jbwe.js} +1 -1
  47. package/dist/cli/{index-qdwccqv5.js → index-weewx5nx.js} +1 -1
  48. package/dist/cli/{index-jjsjjefm.js → index-xj9260dh.js} +6 -6
  49. package/dist/cli/index.js +27 -27
  50. package/dist/cli/{knowledge-escalator-w7b32ak4.js → knowledge-escalator-cf6m9y0s.js} +7 -7
  51. package/dist/cli/{knowledge-events-y0kb9wbe.js → knowledge-events-hn5hymam.js} +5 -5
  52. package/dist/cli/{knowledge-store-knrqgmyk.js → knowledge-store-mgqk4hvy.js} +1 -1
  53. package/dist/cli/{knowledge-validator-zg7d9z8p.js → knowledge-validator-x9yrte9q.js} +2 -2
  54. package/dist/cli/{mcp-3k1t9q6h.js → mcp-hpmh4d6d.js} +1 -1
  55. package/dist/cli/{model-preflight-k92fnbq8.js → model-preflight-ry5jjnx4.js} +26 -26
  56. package/dist/cli/{pending-delegations-ape3hrm0.js → pending-delegations-j850kj5p.js} +2 -2
  57. package/dist/cli/{pr-subscriptions-cn13b19x.js → pr-subscriptions-mme9gb5e.js} +1 -1
  58. package/dist/cli/{pr-workflow-gate-74j5mcxh.js → pr-workflow-gate-n6bj3dnn.js} +26 -26
  59. package/dist/cli/{scan-cursor-4xxfc42h.js → scan-cursor-fdpxbx4f.js} +2 -2
  60. package/dist/cli/{schema-qv9bvhyz.js → schema-amcjvk8a.js} +1 -1
  61. package/dist/cli/{scope-persistence-fmva1cv0.js → scope-persistence-mp4kqpk2.js} +6 -6
  62. package/dist/cli/{server-s5ac6ydk.js → server-ptdvpwyd.js} +26 -26
  63. package/dist/cli/{skill-generator-19ckpm74.js → skill-generator-v59hhybn.js} +8 -8
  64. package/dist/cli/{snapshot-coordination-init-7c0s65jw.js → snapshot-coordination-init-nv6e4svp.js} +26 -26
  65. package/dist/cli/{speckit-checkoff-9b2zj8hd.js → speckit-checkoff-me8kd3wd.js} +3 -3
  66. package/dist/cli/{worktree-collision-ownership-3r669yvh.js → worktree-collision-ownership-84qyqars.js} +2 -2
  67. package/dist/cli/{worktree-isolation-5dydsr8c.js → worktree-isolation-99qvz8ap.js} +26 -26
  68. package/dist/hooks/guardrails/file-authority.d.ts +17 -0
  69. package/dist/index.js +84 -83
  70. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  queryHistoricalOutcomes
4
- } from "./index-bjzxbxpw.js";
4
+ } from "./index-61fa8hg7.js";
5
5
  import {
6
6
  resolveHiveEventsPath
7
7
  } from "./index-ae75rja9.js";
@@ -708,7 +708,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
708
708
  }
709
709
  let bumps = 0;
710
710
  if (deltas.length > 0) {
711
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-knrqgmyk.js");
711
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-mgqk4hvy.js");
712
712
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
713
713
  }
714
714
  return {
@@ -4,7 +4,7 @@ import {
4
4
  ensureTaskCheckpointReceipt,
5
5
  loadPlan,
6
6
  updateTaskCheckpointReceipt
7
- } from "./index-tnrq0pg8.js";
7
+ } from "./index-mzx33w6e.js";
8
8
  import {
9
9
  tool
10
10
  } from "./index-9nyqt3kb.js";
@@ -20,10 +20,10 @@ import {
20
20
  } from "./index-820pzqd6.js";
21
21
  import {
22
22
  readLedgerEvents
23
- } from "./index-26h8fb7t.js";
23
+ } from "./index-fmbqyqqw.js";
24
24
  import {
25
25
  appendCoreEventSync
26
- } from "./index-awt5dpam.js";
26
+ } from "./index-h349p91m.js";
27
27
  import {
28
28
  derivePlanId,
29
29
  derivePlanIdentityHash
@@ -41,7 +41,7 @@ import {
41
41
  } from "./index-ywb5er8g.js";
42
42
  import {
43
43
  loadPluginConfigWithMeta
44
- } from "./index-qdwccqv5.js";
44
+ } from "./index-weewx5nx.js";
45
45
  import {
46
46
  init_git_executable,
47
47
  resolveGitExecutable
@@ -739,7 +739,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
739
739
  const {
740
740
  readAuthoritativeKnowledgeCounterRollups,
741
741
  effectiveRetrievalOutcomes
742
- } = await import("./knowledge-events-y0kb9wbe.js");
742
+ } = await import("./knowledge-events-hn5hymam.js");
743
743
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
744
744
  const flagIds = new Set;
745
745
  for (const e of atFloor) {
@@ -806,11 +806,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
806
806
  });
807
807
  }
808
808
  if (action === "quarantine" && toQuarantine.length > 0) {
809
- const { quarantineEntry } = await import("./knowledge-validator-zg7d9z8p.js");
810
- const { KnowledgeConfigSchema } = await import("./schema-qv9bvhyz.js");
809
+ const { quarantineEntry } = await import("./knowledge-validator-x9yrte9q.js");
810
+ const { KnowledgeConfigSchema } = await import("./schema-amcjvk8a.js");
811
811
  let config;
812
812
  try {
813
- const { loadPluginConfigWithMeta } = await import("./index-71g0ps66.js");
813
+ const { loadPluginConfigWithMeta } = await import("./index-r7ayh42s.js");
814
814
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
815
815
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
816
816
  } catch {
@@ -27,11 +27,11 @@ import {
27
27
  import {
28
28
  init_loader,
29
29
  loadPluginConfig
30
- } from "./index-qdwccqv5.js";
30
+ } from "./index-weewx5nx.js";
31
31
  import {
32
32
  init_package,
33
33
  package_default
34
- } from "./index-3x07b03s.js";
34
+ } from "./index-t1t93qm0.js";
35
35
  import {
36
36
  criticalWarn,
37
37
  init_logger,
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  computePlanStructureHash
4
- } from "./index-26h8fb7t.js";
4
+ } from "./index-fmbqyqqw.js";
5
5
  import {
6
6
  appendCoreEventSync
7
- } from "./index-awt5dpam.js";
7
+ } from "./index-h349p91m.js";
8
8
  import {
9
9
  deleteCoordinationState,
10
10
  importCoordinationOnce,
@@ -685,6 +685,37 @@ function selfHealAuthorityKeys(directory, keys) {
685
685
  mergeAuthorityKeys(directory, state, keys);
686
686
  } catch {}
687
687
  }
688
+ function getCoderRetryEscalationActions(directory, taskId, retryEpoch) {
689
+ const actions = new Set;
690
+ const prefix = `retry|${taskId}|${retryEpoch}|`;
691
+ const state = loadAuthorityIndex(directory);
692
+ if (state.kind === "corrupt") {
693
+ throw new Error("CORE_EVENT_AUTHORITY_INDEX_UNREADABLE");
694
+ }
695
+ const heal = [];
696
+ if (state.kind === "ok") {
697
+ for (const key of Object.keys(state.index.entries)) {
698
+ if (key.startsWith(prefix)) {
699
+ const action = key.slice(prefix.length);
700
+ if (RETRY_ACTIONS.has(action)) {
701
+ actions.add(action);
702
+ }
703
+ }
704
+ }
705
+ }
706
+ for (const event of scanWindowFor(directory, (e) => e.type === AUTHORITY_RETRY && e.taskId === taskId && e.retryEpoch === retryEpoch && typeof e.action === "string" && RETRY_ACTIONS.has(e.action))) {
707
+ const action = event.action;
708
+ if (!actions.has(action)) {
709
+ actions.add(action);
710
+ const key = authorityKeyFor(event);
711
+ if (key)
712
+ heal.push(key);
713
+ }
714
+ }
715
+ if (heal.length > 0)
716
+ selfHealAuthorityKeys(directory, heal);
717
+ return actions;
718
+ }
688
719
  function hasAuthorityEvent(directory, key, predicate) {
689
720
  const state = loadAuthorityIndex(directory);
690
721
  if (state.kind === "corrupt") {
@@ -904,4 +935,4 @@ function emitHealth(directory, payload, preloadedAuthorityState) {
904
935
  _internals.emitHealth(directory, payload, preloadedAuthorityState);
905
936
  }
906
937
 
907
- export { readCoreEvents, getCoreEventCoverage, CORE_EVENT_LOCKED, appendCoreEventSync, appendCoreEventsSync, hasSpecDriftAuditEvent, hasTaskRepairAuditEvent, finalizeCoreEventsForClose };
938
+ export { readCoreEvents, getCoreEventCoverage, CORE_EVENT_LOCKED, appendCoreEventSync, appendCoreEventsSync, getCoderRetryEscalationActions, hasSpecDriftAuditEvent, hasTaskRepairAuditEvent, finalizeCoreEventsForClose };
@@ -4745,7 +4745,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
4745
4745
  const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
4746
4746
  if (candidates.length === 0)
4747
4747
  return 0;
4748
- const { transferCoderSettlementToBackground } = await import("./coder-settlement-qy77s1x6.js");
4748
+ const { transferCoderSettlementToBackground } = await import("./coder-settlement-kmdmdpyy.js");
4749
4749
  let transferred = 0;
4750
4750
  for (const record of candidates) {
4751
4751
  try {
@@ -14,13 +14,13 @@ import {
14
14
  reconcileLandedMerge,
15
15
  withTaskEvidenceTransaction,
16
16
  writeWorkflowWalFile
17
- } from "./index-vbm2ykr9.js";
17
+ } from "./index-3zzxrwaf.js";
18
18
  import {
19
19
  validateSwarmPath
20
20
  } from "./index-820pzqd6.js";
21
21
  import {
22
22
  appendCoreEventSync
23
- } from "./index-awt5dpam.js";
23
+ } from "./index-h349p91m.js";
24
24
  import {
25
25
  canonicalRootKeyFresh
26
26
  } from "./index-fzpt2djt.js";
@@ -512,7 +512,7 @@ async function cleanupRecoveredWorktree(directory, descriptor, options) {
512
512
  awaitingMergeByCallID,
513
513
  cleanupStandardWorktreeForCallId,
514
514
  standardWorktreeByCallID
515
- } = await import("./worktree-isolation-5dydsr8c.js");
515
+ } = await import("./worktree-isolation-99qvz8ap.js");
516
516
  standardWorktreeByCallID.delete(descriptor.callID);
517
517
  if (hasResidue)
518
518
  awaitingMergeByCallID.set(descriptor.callID, {
@@ -648,7 +648,7 @@ async function recoverCoderSettlement(directory, taskId) {
648
648
  awaitingMergeByCallID,
649
649
  finishStandardWorktreeDispatch,
650
650
  standardWorktreeByCallID
651
- } = await import("./worktree-isolation-5dydsr8c.js");
651
+ } = await import("./worktree-isolation-99qvz8ap.js");
652
652
  const descriptor = wal.worktree;
653
653
  const reconstructedDispatch = {
654
654
  callID: descriptor.callID,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-6b295cas.js";
5
5
  import {
6
6
  readEffectiveSpecSync
7
- } from "./index-zd15v0gr.js";
7
+ } from "./index-nreezgrd.js";
8
8
  import {
9
9
  _internals,
10
10
  clearWorktreeMergeStatus,
@@ -43,10 +43,10 @@ import {
43
43
  replayFromLedgerWithStatus,
44
44
  takeSnapshotEvent,
45
45
  takeSnapshotWithRetry
46
- } from "./index-26h8fb7t.js";
46
+ } from "./index-fmbqyqqw.js";
47
47
  import {
48
48
  appendCoreEventSync
49
- } from "./index-awt5dpam.js";
49
+ } from "./index-h349p91m.js";
50
50
  import {
51
51
  deleteCoordinationStateWithinTransaction,
52
52
  getCoordinationStateRaw,
@@ -93,7 +93,7 @@ import {
93
93
  init_loader,
94
94
  isEpicModeConfigEnabled,
95
95
  loadPluginConfigWithMeta
96
- } from "./index-qdwccqv5.js";
96
+ } from "./index-weewx5nx.js";
97
97
  import {
98
98
  exports_external,
99
99
  init_zod
@@ -2664,7 +2664,7 @@ ${markdown}`;
2664
2664
  }
2665
2665
  }
2666
2666
  async function defaultMaybeSaveAutoCheckpoint(directory, plan) {
2667
- const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-1wf9n5yj.js");
2667
+ const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-x13d1g1t.js");
2668
2668
  return maybeSaveAutoCheckpoint(directory, plan);
2669
2669
  }
2670
2670
  async function updateTaskStatus(directory, taskId, status, options) {
@@ -2740,7 +2740,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
2740
2740
  if (status === "completed") {
2741
2741
  try {
2742
2742
  const completedTask = updatedPlan.phases.flatMap((phase) => phase.tasks).find((candidate) => candidate.id === taskId);
2743
- const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-9b2zj8hd.js");
2743
+ const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-me8kd3wd.js");
2744
2744
  await maybePropagateSpeckitCheckoff(directory, {
2745
2745
  taskId,
2746
2746
  frRefs: completedTask?.fr_refs ?? [],
@@ -5,18 +5,18 @@ import {
5
5
  import {
6
6
  effectiveRetrievalOutcomes,
7
7
  readAuthoritativeKnowledgeCounterRollups
8
- } from "./index-mzsj4kkv.js";
8
+ } from "./index-8pyg2qnw.js";
9
9
  import {
10
10
  ALLOWED_SKILL_PATH_PREFIXES,
11
11
  validateSkillPath
12
- } from "./index-e5ecn73v.js";
12
+ } from "./index-vj0zede7.js";
13
13
  import {
14
14
  computeOutcomeSignal,
15
15
  readKnowledge,
16
16
  resolveHiveKnowledgePath,
17
17
  resolveSwarmKnowledgePath,
18
18
  transactKnowledge
19
- } from "./index-1fwm8vqr.js";
19
+ } from "./index-f900029m.js";
20
20
  import {
21
21
  appendCappedJsonl,
22
22
  resolveRetentionCap
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  loadPlanJsonOnly
4
- } from "./index-tnrq0pg8.js";
4
+ } from "./index-mzx33w6e.js";
5
5
  import {
6
6
  isCanonicalPathWithinRoot
7
7
  } from "./index-6b295cas.js";
@@ -14,7 +14,7 @@ import {
14
14
  legacyEpicIssuePath,
15
15
  migrateLegacyEpicConfig,
16
16
  resolveEpicConfig
17
- } from "./index-qdwccqv5.js";
17
+ } from "./index-weewx5nx.js";
18
18
  import {
19
19
  FALLBACK_MODELS_MAX,
20
20
  GATE_CONFIG_KNOWN_SECTION_KEYS,
@@ -25,7 +25,7 @@ import {
25
25
  init_schema,
26
26
  retiredEpicKeyReplacement,
27
27
  stripKnownSwarmPrefix
28
- } from "./index-3x07b03s.js";
28
+ } from "./index-t1t93qm0.js";
29
29
  import {
30
30
  ALL_AGENT_NAMES,
31
31
  TOOL_NAME_SET,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  readEffectiveSpecSync
4
- } from "./index-zd15v0gr.js";
4
+ } from "./index-nreezgrd.js";
5
5
  import {
6
6
  readSwarmFileAsync
7
7
  } from "./index-820pzqd6.js";
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  writeSpeckitCheckoffLedger
4
- } from "./index-pqrepne6.js";
4
+ } from "./index-w9f2jbwe.js";
5
5
  import {
6
6
  validateSpecContent
7
7
  } from "./index-0725jpp7.js";
8
8
  import {
9
9
  init_loader,
10
10
  readSddSourceSetting
11
- } from "./index-qdwccqv5.js";
11
+ } from "./index-weewx5nx.js";
12
12
  import {
13
13
  advisoryWarn,
14
14
  init_warning_buffer
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  SDD_SOURCES,
18
18
  init_schema
19
- } from "./index-3x07b03s.js";
19
+ } from "./index-t1t93qm0.js";
20
20
  import {
21
21
  init_logger,
22
22
  log
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-kxaxf3en.js";
7
+ } from "./index-408tpd21.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([