opencode-swarm 7.13.1 → 7.14.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 (216) hide show
  1. package/dist/cli/index.js +144 -15
  2. package/dist/commands/deep-dive.d.ts +5 -0
  3. package/dist/commands/index.d.ts +1 -0
  4. package/dist/commands/registry.d.ts +14 -0
  5. package/dist/config/evidence-schema.d.ts +13 -13
  6. package/dist/config/schema.d.ts +4 -4
  7. package/dist/index.js +422 -123
  8. package/dist/tools/convene-council.d.ts +3 -3
  9. package/dist/tools/submit-phase-council-verdicts.d.ts +3 -3
  10. package/package.json +1 -1
  11. package/dist/__tests__/acknowledge-spec-drift.test.d.ts +0 -1
  12. package/dist/__tests__/cli-version.adversarial.test.d.ts +0 -1
  13. package/dist/__tests__/cli-version.test.d.ts +0 -1
  14. package/dist/__tests__/conflict-resolution.test.d.ts +0 -1
  15. package/dist/__tests__/convene-general-council.test.d.ts +0 -12
  16. package/dist/__tests__/critic_drift_verifier-whitelist.test.d.ts +0 -1
  17. package/dist/__tests__/critic_hallucination_verifier-whitelist.test.d.ts +0 -1
  18. package/dist/__tests__/disagreement-detector.test.d.ts +0 -7
  19. package/dist/__tests__/evidence-lock.adversarial.test.d.ts +0 -8
  20. package/dist/__tests__/evidence-lock.test.d.ts +0 -6
  21. package/dist/__tests__/gate-evidence.adversarial.test.d.ts +0 -7
  22. package/dist/__tests__/general-council-service.test.d.ts +0 -7
  23. package/dist/__tests__/lint-spec.test.d.ts +0 -1
  24. package/dist/__tests__/preflight-phase.test.d.ts +0 -1
  25. package/dist/__tests__/qa-gate-hardening.test.d.ts +0 -12
  26. package/dist/__tests__/req-coverage.test.d.ts +0 -1
  27. package/dist/__tests__/security-adversarial.test.d.ts +0 -1
  28. package/dist/__tests__/sounding-board-parser.test.d.ts +0 -1
  29. package/dist/__tests__/spec-hash.test.d.ts +0 -1
  30. package/dist/__tests__/spec-schema.test.d.ts +0 -1
  31. package/dist/__tests__/web-search-provider.test.d.ts +0 -6
  32. package/dist/__tests__/write-drift-evidence-requirement-coverage.test.d.ts +0 -4
  33. package/dist/adversarial-tests.test.d.ts +0 -1
  34. package/dist/agents/architect-permission.adversarial.test.d.ts +0 -5
  35. package/dist/agents/architect.commands-list.adversarial.test.d.ts +0 -1
  36. package/dist/agents/architect.commands-list.test.d.ts +0 -1
  37. package/dist/agents/architect.dark-matter.test.d.ts +0 -1
  38. package/dist/agents/architect.designer-gate.test.d.ts +0 -1
  39. package/dist/agents/architect.skip-aliases.test.d.ts +0 -1
  40. package/dist/agents/coder.test.d.ts +0 -1
  41. package/dist/agents/council-prompts.test.d.ts +0 -9
  42. package/dist/agents/council-registration.test.d.ts +0 -23
  43. package/dist/agents/explorer-consumer-contract.test.d.ts +0 -1
  44. package/dist/agents/explorer-role-boundary.test.d.ts +0 -1
  45. package/dist/agents/prompt-namespace.test.d.ts +0 -1
  46. package/dist/agents/reviewer.test.d.ts +0 -1
  47. package/dist/agents/test-engineer.adversarial.test.d.ts +0 -5
  48. package/dist/agents/test-engineer.security.test.d.ts +0 -1
  49. package/dist/background/trigger.vulnerability.test.d.ts +0 -1
  50. package/dist/commands/archive.error-handling.test.d.ts +0 -9
  51. package/dist/commands/benchmark.error-handling.test.d.ts +0 -7
  52. package/dist/commands/brainstorm.test.d.ts +0 -1
  53. package/dist/commands/clashes-with-native-cc.test.d.ts +0 -10
  54. package/dist/commands/command-adapters.security.test.d.ts +0 -14
  55. package/dist/commands/command-names.test.d.ts +0 -1
  56. package/dist/commands/commands.test.d.ts +0 -1
  57. package/dist/commands/conflict-registry.structural.test.d.ts +0 -1
  58. package/dist/commands/conflict-registry.test.d.ts +0 -5
  59. package/dist/commands/council.test.d.ts +0 -4
  60. package/dist/commands/curate.test.d.ts +0 -1
  61. package/dist/commands/dark-matter.error-handling.test.d.ts +0 -1
  62. package/dist/commands/first-run.test.d.ts +0 -11
  63. package/dist/commands/full-auto-config-guard.test.d.ts +0 -7
  64. package/dist/commands/full-auto-discoverability.test.d.ts +0 -8
  65. package/dist/commands/full-auto-registration.test.d.ts +0 -5
  66. package/dist/commands/full-auto-sessionid.test.d.ts +0 -5
  67. package/dist/commands/full-auto.regression.test.d.ts +0 -10
  68. package/dist/commands/full-auto.test.d.ts +0 -6
  69. package/dist/commands/handoff.error-handling.adversarial.test.d.ts +0 -1
  70. package/dist/commands/handoff.error-handling.test.d.ts +0 -1
  71. package/dist/commands/index.help-text.test.d.ts +0 -1
  72. package/dist/commands/index.not-found.adversarial.test.d.ts +0 -12
  73. package/dist/commands/index.not-found.test.d.ts +0 -11
  74. package/dist/commands/qa-gates.test.d.ts +0 -1
  75. package/dist/commands/registration-parity.test.d.ts +0 -1
  76. package/dist/commands/registry-documentation.test.d.ts +0 -1
  77. package/dist/commands/registry-type.test.d.ts +0 -1
  78. package/dist/commands/registry.find-similar.adversarial.test.d.ts +0 -1
  79. package/dist/commands/registry.find-similar.test.d.ts +0 -1
  80. package/dist/commands/registry.test.d.ts +0 -1
  81. package/dist/commands/shortcut-routing.test.d.ts +0 -11
  82. package/dist/commands/simulate.report-write.adversarial.test.d.ts +0 -1
  83. package/dist/commands/simulate.report-write.test.d.ts +0 -1
  84. package/dist/commands/turbo-registration.test.d.ts +0 -5
  85. package/dist/commands/turbo-sessionid.test.d.ts +0 -5
  86. package/dist/commands/turbo.regression.test.d.ts +0 -11
  87. package/dist/commands/turbo.test.d.ts +0 -5
  88. package/dist/config/constants.architect-whitelist.test.d.ts +0 -1
  89. package/dist/config/constants.security.test.d.ts +0 -1
  90. package/dist/council/__tests__/council-evidence-writer.adversarial.test.d.ts +0 -6
  91. package/dist/db/global-db.test.d.ts +0 -7
  92. package/dist/db/project-db.test.d.ts +0 -4
  93. package/dist/db/qa-gate-profile.test.d.ts +0 -4
  94. package/dist/diff/__tests__/semantic-classifier.test.d.ts +0 -1
  95. package/dist/diff/__tests__/summary-generator.test.d.ts +0 -1
  96. package/dist/gate-evidence.test.d.ts +0 -1
  97. package/dist/hooks/__tests__/repo-graph-builder.test.d.ts +0 -12
  98. package/dist/hooks/__tests__/semantic-diff-injection.test.d.ts +0 -1
  99. package/dist/hooks/agent-activity.test.d.ts +0 -1
  100. package/dist/hooks/cc-command-intercept.test.d.ts +0 -1
  101. package/dist/hooks/curator-drift-advisory.test.d.ts +0 -1
  102. package/dist/hooks/delegation-gate.evidence.test.d.ts +0 -4
  103. package/dist/hooks/delegation-gate.getEvidenceTaskId.test.d.ts +0 -20
  104. package/dist/hooks/delegation-gate.plan-fallback-security.test.d.ts +0 -13
  105. package/dist/hooks/delegation-gate.plan-fallback.test.d.ts +0 -5
  106. package/dist/hooks/delegation-gate.seed-state.test.d.ts +0 -1
  107. package/dist/hooks/delegation-gate.turbo-evidence.test.d.ts +0 -8
  108. package/dist/hooks/delegation-gate.verify.test.d.ts +0 -11
  109. package/dist/hooks/delegation-ledger.test.d.ts +0 -11
  110. package/dist/hooks/diff-scope.test.d.ts +0 -1
  111. package/dist/hooks/incremental-verify.test.d.ts +0 -1
  112. package/dist/hooks/loop-detector.test.d.ts +0 -1
  113. package/dist/hooks/scope-guard-throw-behavior.test.d.ts +0 -15
  114. package/dist/hooks/scope-guard.adversarial.test.d.ts +0 -1
  115. package/dist/hooks/scope-guard.test.d.ts +0 -14
  116. package/dist/hooks/self-review.test.d.ts +0 -14
  117. package/dist/hooks/slop-detector.adversarial.test.d.ts +0 -1
  118. package/dist/hooks/slop-detector.test.d.ts +0 -1
  119. package/dist/hooks/spawn-helper.test.d.ts +0 -1
  120. package/dist/hooks/watchdog.integration.test.d.ts +0 -9
  121. package/dist/index.adversarial-bootstrap.test.d.ts +0 -1
  122. package/dist/index.bootstrap-adversarial.test.d.ts +0 -1
  123. package/dist/index.bootstrap-directory.test.d.ts +0 -1
  124. package/dist/model-fallback.adversarial.test.d.ts +0 -22
  125. package/dist/model-fallback.test.d.ts +0 -12
  126. package/dist/mutation/__tests__/engine.adversarial.test.d.ts +0 -1
  127. package/dist/mutation/__tests__/engine.test.d.ts +0 -1
  128. package/dist/mutation/__tests__/equivalence.adversarial.test.d.ts +0 -1
  129. package/dist/mutation/__tests__/equivalence.test.d.ts +0 -1
  130. package/dist/mutation/__tests__/gate.adversarial.test.d.ts +0 -1
  131. package/dist/mutation/__tests__/gate.test.d.ts +0 -1
  132. package/dist/mutation/__tests__/generator.test.d.ts +0 -1
  133. package/dist/parallel/dispatcher/noop-dispatcher.test.d.ts +0 -10
  134. package/dist/plan/checkpoint.test.d.ts +0 -1
  135. package/dist/plan/ledger-integrity.test.d.ts +0 -5
  136. package/dist/plan/ledger-snapshot-adversarial.test.d.ts +0 -1
  137. package/dist/plan/ledger.test.d.ts +0 -1
  138. package/dist/plan/manager.cas-backoff.test.d.ts +0 -10
  139. package/dist/plan/manager.ledger-aware.test.d.ts +0 -1
  140. package/dist/plan/manager.loadplan-validation-guard.test.d.ts +0 -13
  141. package/dist/plan/manager.update-task-status.test.d.ts +0 -1
  142. package/dist/plan/migration-revert.regression.test.d.ts +0 -8
  143. package/dist/prm/__tests__/course-correction.test.d.ts +0 -1
  144. package/dist/prm/__tests__/escalation-queue-drain.test.d.ts +0 -1
  145. package/dist/prm/__tests__/escalation.test.d.ts +0 -1
  146. package/dist/prm/__tests__/index.test.d.ts +0 -1
  147. package/dist/prm/__tests__/integration.test.d.ts +0 -1
  148. package/dist/prm/__tests__/pattern-detector.test.d.ts +0 -5
  149. package/dist/prm/__tests__/replay.test.d.ts +0 -1
  150. package/dist/prm/__tests__/trajectory-store.test.d.ts +0 -7
  151. package/dist/sast/semgrep.test.d.ts +0 -1
  152. package/dist/scope/scope-persistence.test.d.ts +0 -13
  153. package/dist/services/compaction-service.test.d.ts +0 -1
  154. package/dist/services/config-doctor.security.test.d.ts +0 -1
  155. package/dist/services/config-doctor.test.d.ts +0 -1
  156. package/dist/services/status-service.turbo-indicator.test.d.ts +0 -5
  157. package/dist/services/tool-doctor.test.d.ts +0 -1
  158. package/dist/state.agent-run-context.test.d.ts +0 -10
  159. package/dist/state.rehydrate.test.d.ts +0 -1
  160. package/dist/state.rehydration-adversarial.test.d.ts +0 -1
  161. package/dist/state.rehydration-integration.test.d.ts +0 -1
  162. package/dist/state.session-restart.test.d.ts +0 -7
  163. package/dist/state.telemetry.test.d.ts +0 -1
  164. package/dist/telemetry.test.d.ts +0 -1
  165. package/dist/test-impact/__tests__/analyzer-import-fix.adversarial.test.d.ts +0 -1
  166. package/dist/test-impact/__tests__/analyzer-import-fix.test.d.ts +0 -1
  167. package/dist/test-impact/__tests__/analyzer.adversarial.test.d.ts +0 -1
  168. package/dist/test-impact/__tests__/analyzer.test.d.ts +0 -1
  169. package/dist/test-impact/__tests__/council-fixes.test.d.ts +0 -1
  170. package/dist/test-impact/__tests__/failure-classifier.adversarial.test.d.ts +0 -1
  171. package/dist/test-impact/__tests__/failure-classifier.test.d.ts +0 -1
  172. package/dist/test-impact/__tests__/flaky-detector.adversarial.test.d.ts +0 -1
  173. package/dist/test-impact/__tests__/flaky-detector.test.d.ts +0 -1
  174. package/dist/test-impact/__tests__/history-store.adversarial.test.d.ts +0 -1
  175. package/dist/test-impact/__tests__/history-store.test.d.ts +0 -1
  176. package/dist/test-impact/__tests__/test-impact.adversarial.test.d.ts +0 -1
  177. package/dist/test-impact/__tests__/test-impact.test.d.ts +0 -1
  178. package/dist/tools/__tests__/barrel-exports.test.d.ts +0 -1
  179. package/dist/tools/__tests__/diff-ast-fallback.test.d.ts +0 -1
  180. package/dist/tools/__tests__/diff-markdown-summary.test.d.ts +0 -1
  181. package/dist/tools/__tests__/diff-semantic.test.d.ts +0 -1
  182. package/dist/tools/__tests__/diff-summary.adversarial.test.d.ts +0 -1
  183. package/dist/tools/__tests__/diff-summary.test.d.ts +0 -1
  184. package/dist/tools/__tests__/mutation-test.adversarial.test.d.ts +0 -1
  185. package/dist/tools/__tests__/mutation-test.sourcefiles.test.d.ts +0 -1
  186. package/dist/tools/__tests__/mutation-test.test.d.ts +0 -1
  187. package/dist/tools/__tests__/repo-graph-walk.test.d.ts +0 -16
  188. package/dist/tools/__tests__/test-runner-history.test.d.ts +0 -1
  189. package/dist/tools/__tests__/test-runner-impact.adversarial.test.d.ts +0 -1
  190. package/dist/tools/__tests__/test-runner-impact.test.d.ts +0 -1
  191. package/dist/tools/__tests__/test-runner-source-files.test.d.ts +0 -1
  192. package/dist/tools/barrel-export-check-gate-status.test.d.ts +0 -6
  193. package/dist/tools/batch-symbols.test.d.ts +0 -1
  194. package/dist/tools/check-gate-status.adversarial.test.d.ts +0 -1
  195. package/dist/tools/check-gate-status.gates.test.d.ts +0 -1
  196. package/dist/tools/check-gate-status.plugin-registration.test.d.ts +0 -1
  197. package/dist/tools/curator-analyze.test.d.ts +0 -1
  198. package/dist/tools/knowledge-tools.integration.test.d.ts +0 -1
  199. package/dist/tools/mutation-test.security.test.d.ts +0 -1
  200. package/dist/tools/plugin-registration-adversarial.test.d.ts +0 -1
  201. package/dist/tools/resolve-working-directory.test.d.ts +0 -1
  202. package/dist/tools/save-plan.subdirectory-rejection.test.d.ts +0 -1
  203. package/dist/tools/search.adversarial.test.d.ts +0 -1
  204. package/dist/tools/search.test.d.ts +0 -1
  205. package/dist/tools/suggest-patch.adversarial.test.d.ts +0 -1
  206. package/dist/tools/suggest-patch.test.d.ts +0 -1
  207. package/dist/tools/test-runner.security-adversarial.test.d.ts +0 -5
  208. package/dist/tools/update-task-status.adversarial.test.d.ts +0 -13
  209. package/dist/tools/update-task-status.gates.test.d.ts +0 -1
  210. package/dist/tools/update-task-status.test.d.ts +0 -1
  211. package/dist/tools/update-task-status.turbo-bypass.test.d.ts +0 -1
  212. package/dist/tools/verify-six-tools-registration.test.d.ts +0 -9
  213. package/dist/tools/write-mutation-evidence.test.d.ts +0 -1
  214. package/dist/transient-retry.test.d.ts +0 -10
  215. package/dist/utils/__tests__/bun-compat.test.d.ts +0 -11
  216. package/dist/utils/__tests__/timeout.test.d.ts +0 -12
@@ -21,11 +21,11 @@ export declare const ArgsSchema: z.ZodObject<{
21
21
  roundNumber: z.ZodDefault<z.ZodNumber>;
22
22
  verdicts: z.ZodArray<z.ZodObject<{
23
23
  agent: z.ZodEnum<{
24
- sme: "sme";
25
24
  reviewer: "reviewer";
26
- critic: "critic";
27
- explorer: "explorer";
28
25
  test_engineer: "test_engineer";
26
+ explorer: "explorer";
27
+ sme: "sme";
28
+ critic: "critic";
29
29
  }>;
30
30
  verdict: z.ZodEnum<{
31
31
  APPROVE: "APPROVE";
@@ -7,11 +7,11 @@ export declare const ArgsSchema: z.ZodObject<{
7
7
  roundNumber: z.ZodOptional<z.ZodNumber>;
8
8
  verdicts: z.ZodArray<z.ZodObject<{
9
9
  agent: z.ZodEnum<{
10
- sme: "sme";
11
10
  reviewer: "reviewer";
12
- critic: "critic";
13
- explorer: "explorer";
14
11
  test_engineer: "test_engineer";
12
+ explorer: "explorer";
13
+ sme: "sme";
14
+ critic: "critic";
15
15
  }>;
16
16
  verdict: z.ZodEnum<{
17
17
  APPROVE: "APPROVE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.13.1",
3
+ "version": "7.14.0",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * Tests for src/tools/convene-general-council.ts.
3
- *
4
- * Covers config gating, evidence path isolation (.swarm/council/general/),
5
- * roundsCompleted derivation, and structured-error responses for invalid
6
- * args + disabled-config paths. The moderatorPrompt field has been removed
7
- * from ConveneOk — the architect now synthesizes the final answer directly
8
- * via the inline output rules in MODE: COUNCIL.
9
- *
10
- * Real filesystem (tmp dir) for evidence-path assertions; no real HTTP.
11
- */
12
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * Tests for src/council/disagreement-detector.ts.
3
- *
4
- * Pure-function tests — no mocks, no I/O. Adversarial cases for empty/missing
5
- * fields and the cap-of-10 boundary.
6
- */
7
- export {};
@@ -1,8 +0,0 @@
1
- /**
2
- * Adversarial tests for evidence write locking — 16 concurrent writers.
3
- *
4
- * Proves that no writes are lost when concurrent callers race on the same
5
- * evidence file. Each writer appends a unique marker; after all settle we
6
- * assert every marker is present exactly once.
7
- */
8
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * Tests for src/evidence/lock.ts
3
- *
4
- * Runs in per-file isolation (CI step 6). Uses real filesystem via os.tmpdir().
5
- */
6
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * Adversarial tests for gate-evidence write locking — concurrent gate record.
3
- *
4
- * Proves that no gate records are lost when concurrent callers race on the
5
- * same gate-evidence file.
6
- */
7
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * Tests for src/council/general-council-service.ts.
3
- *
4
- * Pure-function tests. Verify confidence-weighted consensus, MAINTAIN/CONCEDE/
5
- * NUANCE protocol, source dedup, and well-formed synthesis markdown.
6
- */
7
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * QA gate hardening tests.
3
- *
4
- * Covers the additions from the QA gate hardening rollout:
5
- * 1. council_general_review as the 9th and final_council as the 11th QA gate (default OFF, ratchet-tighter, persistence)
6
- * 2. Behavioral guidance markup is rendered into the architect prompt for SPECIFY,
7
- * BRAINSTORM, and PLAN inline gate-selection paths.
8
- * 3. save_plan blocks with QA_GATE_SELECTION_REQUIRED when context.md has no
9
- * `## Pending QA Gate Selection` section AND no existing QaGateProfile.
10
- * 4. SWARM_SKIP_GATE_SELECTION=1 bypasses the new check.
11
- */
12
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * Tests for src/council/web-search-provider.ts and src/tools/web-search.ts.
3
- *
4
- * All HTTP calls are mocked via globalThis.fetch — no real network traffic.
5
- */
6
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * Test for requirementCoverage wiring in write_drift_evidence tool
3
- */
4
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Adversarial Tests for Architect Task-Permission Hotfix (Task 1.21)
3
- * Focus: Agent naming edge cases, prefix misclassification, permission leakage
4
- */
5
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * Tests for src/agents/council-prompts.ts.
3
- *
4
- * Covers prompt content (NSED protocol markers, hardcoded persona/memberId),
5
- * AGENT_TOOL_MAP enforcement (empty tool lists for the three council agents,
6
- * web_search shifted to architect), and protocol preservation across the
7
- * Round 1 → Round 2 deliberation flow.
8
- */
9
- export {};
@@ -1,23 +0,0 @@
1
- /**
2
- * Integration tests for council agent registration in src/agents/index.ts.
3
- *
4
- * Pins two behaviors that the council-mode refactor (commit c7e3be4) intends
5
- * to guarantee:
6
- *
7
- * 1. Model resolution regression test — `council_generalist` / `council_skeptic`
8
- * / `council_domain_expert` MUST source their models from the user's
9
- * configured `agents.reviewer.model` / `agents.critic.model` /
10
- * `agents.sme.model` overrides, not from a hardcoded DEFAULT_MODELS
11
- * fallback. This pins the fix for the original bug where
12
- * `getModel('council_member')` always fell back to
13
- * DEFAULT_MODELS.council_member because no swarm config ever had a
14
- * `council_member` entry.
15
- *
16
- * 2. Deprecation warning pathway test — setting
17
- * `council.general.moderatorModel` MUST surface a deferred deprecation
18
- * warning at agent-creation time. The legacy `council.general.moderator`
19
- * field is NOT checked because the strict schema applies a default of
20
- * `true` to it, and the warning would then fire for every council user
21
- * (real bug fixed in commit eee5977).
22
- */
23
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Adversarial Security Tests for Test Engineer Agent (Task 7.1)
3
- * Focus: Prompt injection, unsafe execution bypass, secret leakage
4
- */
5
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * Tests for archive.ts graceful handling of corrupt evidence files (Task 1.6)
3
- *
4
- * Verifies that the try/catch in handleArchiveCommand's dry-run loop
5
- * catches exceptions from loadEvidence and skips corrupt/unreadable files.
6
- *
7
- * Uses real filesystem operations like existing archive tests.
8
- */
9
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * Tests for benchmark.ts graceful handling of corrupt evidence files.
3
- *
4
- * Verifies that the try/catch in handleBenchmarkCommand's cumulative loop
5
- * catches exceptions from loadEvidence and skips corrupt/unreadable files.
6
- */
7
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * Task 1.3: clashesWithNativeCcCommand field + buildHelpText() conflict warnings
3
- * Structural tests verifying:
4
- * 1. CommandEntry type accepts the new optional field
5
- * 2. All 9 conflicting commands have the field set correctly
6
- * 3. buildHelpText() outputs conflict warnings for CRITICAL commands
7
- * 4. buildHelpText() does NOT output false conflict warnings
8
- * 5. doctor deprecated alias has clashesWithNativeCcCommand: '/doctor'
9
- */
10
- export {};
@@ -1,14 +0,0 @@
1
- /**
2
- * Adversarial Security Tests for Command Adapters (Task 5.10)
3
- *
4
- * ATTACK VECTORS COVERED:
5
- * 1. Path Traversal - attempts to escape .swarm directory via command args
6
- * 2. Null Byte Injection - injecting null bytes to truncate paths/strings
7
- * 3. Control Character Injection - injecting control chars (0x00-0x1F)
8
- * 4. Command Injection - shell metacharacters in args
9
- * 5. Argument Pollution - malformed, oversized, special character args
10
- * 6. Flag Injection - malicious flag values and combinations
11
- * 7. Unicode Attacks - unicode normalization/replacement attacks
12
- * 8. Edge Cases - empty, extremely long, boundary values
13
- */
14
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * CI gate tests for conflict-registry data integrity.
3
- * Ensures CRITICAL conflicts are properly registered and disambiguation notes are present.
4
- */
5
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * Tests for /swarm council command handler.
3
- */
4
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * Tests for first-run sentinel detection, welcome message, and error handling
3
- * catch block in createSwarmCommandHandler().
4
- *
5
- * Covers:
6
- * - First-run sentinel detection (atomic 'wx' flag write)
7
- * - Welcome message prepended on first run only
8
- * - Error handling catch block when command handler throws
9
- * - Regression: existing shortcut-routing tests still pass
10
- */
11
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * Tests for the config-guard behavior in handleFullAutoCommand.
3
- *
4
- * When swarmState.fullAutoEnabledInConfig is false, activation must be blocked.
5
- * When it is true, activation must succeed. Disabling always works regardless.
6
- */
7
- export {};
@@ -1,8 +0,0 @@
1
- /**
2
- * Tests for Full-Auto command discoverability fixes.
3
- *
4
- * Verifies that TUI shortcuts, error messages, and registry entries
5
- * all use the dashed form (/swarm-full-auto) while maintaining backward
6
- * compatibility with the spaced form (/swarm full-auto).
7
- */
8
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Tests for Full-Auto Mode command registration in src/commands/index.ts.
3
- * Verifies import, export, help text, and registry routing for /swarm full-auto.
4
- */
5
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Tests for empty sessionID handling in handleFullAutoCommand.
3
- * Tests the CLI wiring fix where empty sessionID returns proper error message.
4
- */
5
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * Regression Tests for Full-Auto Mode Integration.
3
- *
4
- * Covers the integration surfaces unique to full-auto mode:
5
- * 1. /swarm full-auto command toggle, on, off
6
- * 2. hasActiveFullAuto() - session-scoped and global-fallback behavior
7
- * 3. System-enhancer hook injects FULL-AUTO MODE ACTIVE banner (Path A and global)
8
- * 4. Counter reset side-effects are visible after disable
9
- */
10
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * Tests for handleFullAutoCommand function.
3
- * Tests the /swarm full-auto command toggle functionality,
4
- * including the unique counter-reset behavior on disable.
5
- */
6
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * Adversarial security tests for command-not-found UX in createSwarmCommandHandler.
3
- *
4
- * Attack vectors covered:
5
- * 1. Very long command name (10000+ chars) — does it hang or crash?
6
- * 2. Command with special characters (script injection, shell injection, template literals)
7
- * 3. Command with newlines/embedded control chars — does it break output format?
8
- * 4. Command with unicode/emoji — handled gracefully?
9
- * 5. Extremely deep tokens array (1000 elements) — does findSimilarCommands handle it?
10
- * 6. Null bytes in command name
11
- */
12
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * Tests for command-not-found UX improvement in createSwarmCommandHandler.
3
- *
4
- * Covers:
5
- * - Unknown single-word command shows "Command not found" + suggestions + footer
6
- * - Unknown compound command shows header with command name
7
- * - Empty tokens (empty array) → returns buildHelpText() output
8
- * - Command with no similar matches → shows header + footer only (no "Did you mean" section)
9
- * - Multiple similar commands returned → all shown with bullet format
10
- */
11
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * Regression tests for swarm-* shortcut command routing.
3
- *
4
- * When a user selects a shortcut command from the OpenCode command picker
5
- * (e.g. swarm-config, swarm-status, swarm-turbo), OpenCode sets
6
- * input.command to the registered key name ('swarm-config') rather than
7
- * the generic 'swarm' key. Previously the handler returned early for any
8
- * command that wasn't exactly 'swarm', so these shortcuts fell through to
9
- * the LLM as plain text. This file verifies they are correctly routed.
10
- */
11
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Tests for Task 3.12: Turbo Mode command registration in src/commands/index.ts
3
- * Verifies import, export, help text, and switch case routing for /swarm turbo
4
- */
5
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Tests for Task 3.13: Empty sessionID handling in handleTurboCommand
3
- * Tests the CLI wiring fix where empty sessionID returns proper error message
4
- */
5
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * Regression Tests for Task 4: Turbo Mode Integration
3
- *
4
- * These tests verify that Turbo Mode is correctly integrated across all surfaces:
5
- * 1. /swarm turbo command toggles turboMode correctly
6
- * 2. checkReviewerGate bypasses Stage B when turboMode is active AND task is not Tier 3
7
- * 3. Evidence records include turbo flag when recorded under turboMode
8
- * 4. Architect prompt includes TURBO MODE ACTIVE banner when active
9
- * 5. Status output shows TURBO MODE indicator when active
10
- */
11
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Tests for Task 3.11: handleTurboCommand function
3
- * Tests the /swarm turbo command toggle functionality
4
- */
5
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * Adversarial security tests for safeAssignOwnProps.
3
- * Tests prototype pollution attacks, constructor pollution, array smuggling,
4
- * and boundary violations.
5
- */
6
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * Tests for src/db/global-db.ts.
3
- *
4
- * Uses XDG_CONFIG_HOME override so getPlatformConfigDir() resolves into
5
- * a temp directory (Linux only — this test suite is gated accordingly).
6
- */
7
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * Tests for src/db/project-db.ts.
3
- */
4
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * Tests for src/db/qa-gate-profile.ts.
3
- */
4
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * Repo-graph builder hook tests (issue #704).
3
- *
4
- * These tests validate the contract that prevents the OpenCode Desktop hang:
5
- * - calling `init()` returns control to the caller within a single
6
- * macrotask (i.e. async-function-runs-sync-until-first-await is not
7
- * reintroduced),
8
- * - `toolAfter` waits for the initial scan before applying incremental
9
- * updates (no race between the deferred init and the first write tool),
10
- * - the homedir-refusal guard surfaces as a clean catch in `init()`.
11
- */
12
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * Integration tests for evidence recording in delegation-gate.ts toolAfter.
3
- */
4
- export {};