opencode-swarm 7.114.9 → 7.116.0

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 (139) hide show
  1. package/README.md +3 -1
  2. package/dist/cli/{config-doctor-jy3mdh9t.js → config-doctor-htzxe394.js} +2 -2
  3. package/dist/cli/{curator-5xt89z05.js → curator-7s5yw6hw.js} +18 -17
  4. package/dist/cli/{curator-llm-factory-pnhvf3s3.js → curator-llm-factory-x96dr0zf.js} +18 -17
  5. package/dist/cli/{dispatch-mczsxy5s.js → dispatch-07jgc3hn.js} +1 -1
  6. package/dist/cli/{evidence-summary-service-fehwj116.js → evidence-summary-service-ef6kgtev.js} +5 -5
  7. package/dist/cli/{gate-evidence-vkpqt300.js → gate-evidence-thqt0beq.js} +4 -4
  8. package/dist/cli/{guardrail-explain-7aztgtyh.js → guardrail-explain-kwqfkwch.js} +19 -18
  9. package/dist/cli/{guardrail-log-84wnx273.js → guardrail-log-dzbqcgz9.js} +3 -3
  10. package/dist/cli/{hive-promoter-q899q2m6.js → hive-promoter-rkkx40qv.js} +18 -17
  11. package/dist/cli/{index-54sevh81.js → index-3b8n3dbd.js} +30 -22
  12. package/dist/cli/{index-8f2270hc.js → index-3yh67t1h.js} +3 -3
  13. package/dist/cli/{index-4sckv7y6.js → index-42cx6g2h.js} +9 -4
  14. package/dist/cli/index-4905hd2m.js +19 -0
  15. package/dist/cli/{index-4h2ea8h5.js → index-81vzywh3.js} +2 -2
  16. package/dist/cli/{index-6f6y2rbp.js → index-8bvh0qfa.js} +3 -3
  17. package/dist/cli/{index-yfedche9.js → index-8j5d3ytd.js} +1 -1
  18. package/dist/cli/{index-80jkseqw.js → index-a6f8b0vn.js} +1 -1
  19. package/dist/cli/{index-0p660a87.js → index-bbsaxnj5.js} +1 -1
  20. package/dist/cli/{index-yrrqs4b0.js → index-cnrhj56z.js} +1160 -47
  21. package/dist/cli/{index-n18yy0z1.js → index-jyetmzcn.js} +3 -3
  22. package/dist/cli/{index-rk6qhyng.js → index-k5ey429j.js} +4 -4
  23. package/dist/cli/{index-7jmrbp68.js → index-m43zgtjn.js} +1 -1
  24. package/dist/cli/{index-9bsmzfk3.js → index-m7hc7nn7.js} +5 -1
  25. package/dist/cli/{index-typ408f4.js → index-me46ffm2.js} +6811 -1947
  26. package/dist/cli/{index-ga4ta3cr.js → index-nprawcc0.js} +7 -1
  27. package/dist/cli/{index-a45jq4b7.js → index-nvc0nsvg.js} +6 -1
  28. package/dist/cli/{index-pa6t33pt.js → index-q2rrv0cy.js} +11 -0
  29. package/dist/cli/{index-g40r5d08.js → index-qgeeyy75.js} +1 -1
  30. package/dist/cli/{index-x12hvfpf.js → index-s385axt1.js} +3 -3
  31. package/dist/cli/{index-m9m7p49w.js → index-tvgvb5pa.js} +2 -2
  32. package/dist/cli/index.js +18 -17
  33. package/dist/cli/{knowledge-escalator-5gwp1ar8.js → knowledge-escalator-0bq62d34.js} +7 -7
  34. package/dist/cli/{knowledge-events-m304swh6.js → knowledge-events-cwwky393.js} +5 -5
  35. package/dist/cli/{knowledge-store-9babt8rd.js → knowledge-store-q8x4h82m.js} +5 -5
  36. package/dist/cli/{knowledge-validator-t9sym59g.js → knowledge-validator-zr0djm02.js} +6 -6
  37. package/dist/cli/{pending-delegations-ddbkbgxy.js → pending-delegations-rr9x47rd.js} +2 -2
  38. package/dist/cli/{pr-subscriptions-vwv7zm2p.js → pr-subscriptions-cny2jz2d.js} +3 -3
  39. package/dist/cli/runtime-ykafcwc6.js +3397 -0
  40. package/dist/cli/{schema-aymfdrsb.js → schema-bqn7g3ez.js} +3 -1
  41. package/dist/cli/{skill-generator-tav44xpm.js → skill-generator-mz267btk.js} +8 -8
  42. package/dist/cli/{telemetry-jny76r83.js → telemetry-qh78ymq4.js} +1 -1
  43. package/dist/commands/archive.d.ts +4 -4
  44. package/dist/commands/command-dispatch.d.ts +2 -0
  45. package/dist/commands/gate-audit.d.ts +28 -0
  46. package/dist/commands/gate-stats.d.ts +1 -0
  47. package/dist/commands/index.d.ts +4 -0
  48. package/dist/commands/registry.d.ts +19 -2
  49. package/dist/config/index.d.ts +2 -2
  50. package/dist/config/plan-schema.d.ts +7 -7
  51. package/dist/config/schema.d.ts +9 -0
  52. package/dist/evaluation/contracts.d.ts +545 -0
  53. package/dist/evaluation/disposable-worktree.d.ts +38 -0
  54. package/dist/evaluation/fixtures.d.ts +8 -0
  55. package/dist/evaluation/gate-audit.d.ts +32 -0
  56. package/dist/evaluation/gate-ground-truth.d.ts +43 -0
  57. package/dist/evaluation/gate-stats.d.ts +47 -0
  58. package/dist/evaluation/hashing.d.ts +34 -0
  59. package/dist/evaluation/index.d.ts +17 -0
  60. package/dist/evaluation/model-dispatcher.d.ts +30 -0
  61. package/dist/evaluation/public-api.d.ts +87 -0
  62. package/dist/evaluation/retention.d.ts +56 -0
  63. package/dist/evaluation/runner.d.ts +48 -0
  64. package/dist/evaluation/statistics.d.ts +9 -0
  65. package/dist/evaluation/store.d.ts +26 -0
  66. package/dist/evidence/manager.d.ts +18 -0
  67. package/dist/index.d.ts +4 -0
  68. package/dist/index.js +497 -450
  69. package/dist/mutation/engine.d.ts +29 -5
  70. package/dist/telemetry.d.ts +11 -1
  71. package/dist/tools/apply-patch.d.ts +21 -0
  72. package/dist/tools/plugin-registration.d.ts +2 -1
  73. package/dist/tools/sast-scan.d.ts +9 -0
  74. package/dist/tools/swarm-command.d.ts +2 -1
  75. package/dist/tools/update-task-status.d.ts +16 -4
  76. package/dist/utils/external-tool-runner.d.ts +2 -1
  77. package/dist/utils/fuzzy-match.d.ts +115 -0
  78. package/dist/utils/sequence-matcher.d.ts +83 -0
  79. package/evaluation-fixtures/tier1/boundary-error/environment/baseline.ts +3 -0
  80. package/evaluation-fixtures/tier1/boundary-error/environment/defect.test.ts +3 -0
  81. package/evaluation-fixtures/tier1/boundary-error/environment/defect.ts +3 -0
  82. package/evaluation-fixtures/tier1/boundary-error/instruction.md +1 -0
  83. package/evaluation-fixtures/tier1/boundary-error/manifest.json +1 -0
  84. package/evaluation-fixtures/tier1/branch-swap/environment/baseline.ts +3 -0
  85. package/evaluation-fixtures/tier1/branch-swap/environment/defect.test.ts +3 -0
  86. package/evaluation-fixtures/tier1/branch-swap/environment/defect.ts +3 -0
  87. package/evaluation-fixtures/tier1/branch-swap/instruction.md +1 -0
  88. package/evaluation-fixtures/tier1/branch-swap/manifest.json +1 -0
  89. package/evaluation-fixtures/tier1/curated-off-by-one/environment/baseline.ts +3 -0
  90. package/evaluation-fixtures/tier1/curated-off-by-one/environment/defect.test.ts +3 -0
  91. package/evaluation-fixtures/tier1/curated-off-by-one/environment/defect.ts +3 -0
  92. package/evaluation-fixtures/tier1/curated-off-by-one/instruction.md +1 -0
  93. package/evaluation-fixtures/tier1/curated-off-by-one/manifest.json +1 -0
  94. package/evaluation-fixtures/tier1/guard-removal/environment/baseline.ts +3 -0
  95. package/evaluation-fixtures/tier1/guard-removal/environment/defect.test.ts +3 -0
  96. package/evaluation-fixtures/tier1/guard-removal/environment/defect.ts +3 -0
  97. package/evaluation-fixtures/tier1/guard-removal/instruction.md +1 -0
  98. package/evaluation-fixtures/tier1/guard-removal/manifest.json +1 -0
  99. package/evaluation-fixtures/tier1/injection-prone-string/environment/baseline.ts +3 -0
  100. package/evaluation-fixtures/tier1/injection-prone-string/environment/defect.test.ts +3 -0
  101. package/evaluation-fixtures/tier1/injection-prone-string/environment/defect.ts +3 -0
  102. package/evaluation-fixtures/tier1/injection-prone-string/instruction.md +1 -0
  103. package/evaluation-fixtures/tier1/injection-prone-string/manifest.json +1 -0
  104. package/evaluation-fixtures/tier1/missing-auth-check/environment/baseline.ts +4 -0
  105. package/evaluation-fixtures/tier1/missing-auth-check/environment/defect.test.ts +3 -0
  106. package/evaluation-fixtures/tier1/missing-auth-check/environment/defect.ts +3 -0
  107. package/evaluation-fixtures/tier1/missing-auth-check/instruction.md +1 -0
  108. package/evaluation-fixtures/tier1/missing-auth-check/manifest.json +1 -0
  109. package/evaluation-fixtures/tier1/missing-await/environment/baseline.ts +7 -0
  110. package/evaluation-fixtures/tier1/missing-await/environment/defect.test.ts +3 -0
  111. package/evaluation-fixtures/tier1/missing-await/environment/defect.ts +4 -0
  112. package/evaluation-fixtures/tier1/missing-await/instruction.md +1 -0
  113. package/evaluation-fixtures/tier1/missing-await/manifest.json +1 -0
  114. package/evaluation-fixtures/tier1/mutation-off-by-one/environment/baseline.ts +3 -0
  115. package/evaluation-fixtures/tier1/mutation-off-by-one/environment/defect.test.ts +3 -0
  116. package/evaluation-fixtures/tier1/mutation-off-by-one/environment/defect.ts +3 -0
  117. package/evaluation-fixtures/tier1/mutation-off-by-one/instruction.md +1 -0
  118. package/evaluation-fixtures/tier1/mutation-off-by-one/manifest.json +1 -0
  119. package/evaluation-fixtures/tier1/null-substitution/environment/baseline.ts +3 -0
  120. package/evaluation-fixtures/tier1/null-substitution/environment/defect.test.ts +3 -0
  121. package/evaluation-fixtures/tier1/null-substitution/environment/defect.ts +3 -0
  122. package/evaluation-fixtures/tier1/null-substitution/instruction.md +1 -0
  123. package/evaluation-fixtures/tier1/null-substitution/manifest.json +1 -0
  124. package/evaluation-fixtures/tier1/operator-swap/environment/baseline.ts +3 -0
  125. package/evaluation-fixtures/tier1/operator-swap/environment/defect.test.ts +3 -0
  126. package/evaluation-fixtures/tier1/operator-swap/environment/defect.ts +3 -0
  127. package/evaluation-fixtures/tier1/operator-swap/instruction.md +1 -0
  128. package/evaluation-fixtures/tier1/operator-swap/manifest.json +1 -0
  129. package/evaluation-fixtures/tier1/side-effect-deletion/environment/baseline.ts +4 -0
  130. package/evaluation-fixtures/tier1/side-effect-deletion/environment/defect.test.ts +3 -0
  131. package/evaluation-fixtures/tier1/side-effect-deletion/environment/defect.ts +3 -0
  132. package/evaluation-fixtures/tier1/side-effect-deletion/instruction.md +1 -0
  133. package/evaluation-fixtures/tier1/side-effect-deletion/manifest.json +1 -0
  134. package/evaluation-fixtures/tier1/swallowed-error/environment/baseline.ts +3 -0
  135. package/evaluation-fixtures/tier1/swallowed-error/environment/defect.test.ts +3 -0
  136. package/evaluation-fixtures/tier1/swallowed-error/environment/defect.ts +3 -0
  137. package/evaluation-fixtures/tier1/swallowed-error/instruction.md +1 -0
  138. package/evaluation-fixtures/tier1/swallowed-error/manifest.json +1 -0
  139. package/package.json +2 -1
@@ -6,17 +6,17 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  resolveSwarmRejectedPath,
8
8
  transactKnowledge
9
- } from "./index-rk6qhyng.js";
9
+ } from "./index-k5ey429j.js";
10
10
  import {
11
11
  resolveKnowledgeStoreDir
12
- } from "./index-g40r5d08.js";
12
+ } from "./index-qgeeyy75.js";
13
13
  import {
14
14
  init_logger,
15
15
  warn
16
16
  } from "./index-zgwm4ryv.js";
17
17
  import {
18
18
  atomicWriteFile
19
- } from "./index-0p660a87.js";
19
+ } from "./index-bbsaxnj5.js";
20
20
  import {
21
21
  require_proper_lockfile
22
22
  } from "./index-vvk2g744.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-bfwt3abw.js";
5
5
  import {
6
6
  resolveKnowledgeStoreDir
7
- } from "./index-g40r5d08.js";
7
+ } from "./index-qgeeyy75.js";
8
8
  import {
9
9
  readCachedParsedFile
10
10
  } from "./index-jtqkh8jf.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./index-zgwm4ryv.js";
15
15
  import {
16
16
  atomicWriteFile
17
- } from "./index-0p660a87.js";
17
+ } from "./index-bbsaxnj5.js";
18
18
  import {
19
19
  require_proper_lockfile
20
20
  } from "./index-vvk2g744.js";
@@ -595,7 +595,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
595
595
  const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
596
596
  if (atFloor.length === 0 && recovered.length === 0)
597
597
  return;
598
- const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-m304swh6.js");
598
+ const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-cwwky393.js");
599
599
  const rollups = await readKnowledgeCounterRollups(directory);
600
600
  const flagIds = new Set;
601
601
  for (const e of atFloor) {
@@ -662,7 +662,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
662
662
  });
663
663
  }
664
664
  if (action === "quarantine" && toQuarantine.length > 0) {
665
- const { quarantineEntry } = await import("./knowledge-validator-t9sym59g.js");
665
+ const { quarantineEntry } = await import("./knowledge-validator-zr0djm02.js");
666
666
  for (const { id } of toQuarantine) {
667
667
  await quarantineEntry(directory, id, "confidence_floor_negative_outcome", "auto").catch((err) => {
668
668
  log("[knowledge-store] confidence-floor quarantine failed (best-effort):", err instanceof Error ? err.message : String(err));
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-yfedche9.js";
5
+ } from "./index-8j5d3ytd.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
@@ -5,7 +5,7 @@ import {
5
5
  GateConfigSchema,
6
6
  PluginConfigSchema,
7
7
  stripKnownSwarmPrefix
8
- } from "./index-a45jq4b7.js";
8
+ } from "./index-nvc0nsvg.js";
9
9
  import {
10
10
  log
11
11
  } from "./index-zgwm4ryv.js";
@@ -828,6 +828,10 @@ function validateConfigKey(path2, value) {
828
828
  emitObjectTypeMismatch("checkpoint", value, findings);
829
829
  break;
830
830
  }
831
+ case "apply_patch": {
832
+ emitObjectTypeMismatch("apply_patch", value, findings);
833
+ break;
834
+ }
831
835
  case "automation": {
832
836
  emitObjectTypeMismatch("automation", value, findings);
833
837
  break;