opencode-swarm 7.13.0 → 7.13.2
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.
- package/dist/cli/index.js +2 -6
- package/dist/config/evidence-schema.d.ts +13 -13
- package/dist/config/schema.d.ts +4 -4
- package/dist/index.js +151 -108
- package/dist/tools/convene-council.d.ts +3 -3
- package/dist/tools/submit-phase-council-verdicts.d.ts +3 -3
- package/package.json +1 -1
- package/dist/__tests__/acknowledge-spec-drift.test.d.ts +0 -1
- package/dist/__tests__/cli-version.adversarial.test.d.ts +0 -1
- package/dist/__tests__/cli-version.test.d.ts +0 -1
- package/dist/__tests__/conflict-resolution.test.d.ts +0 -1
- package/dist/__tests__/convene-general-council.test.d.ts +0 -12
- package/dist/__tests__/critic_drift_verifier-whitelist.test.d.ts +0 -1
- package/dist/__tests__/critic_hallucination_verifier-whitelist.test.d.ts +0 -1
- package/dist/__tests__/disagreement-detector.test.d.ts +0 -7
- package/dist/__tests__/evidence-lock.adversarial.test.d.ts +0 -8
- package/dist/__tests__/evidence-lock.test.d.ts +0 -6
- package/dist/__tests__/gate-evidence.adversarial.test.d.ts +0 -7
- package/dist/__tests__/general-council-service.test.d.ts +0 -7
- package/dist/__tests__/lint-spec.test.d.ts +0 -1
- package/dist/__tests__/preflight-phase.test.d.ts +0 -1
- package/dist/__tests__/qa-gate-hardening.test.d.ts +0 -12
- package/dist/__tests__/req-coverage.test.d.ts +0 -1
- package/dist/__tests__/security-adversarial.test.d.ts +0 -1
- package/dist/__tests__/sounding-board-parser.test.d.ts +0 -1
- package/dist/__tests__/spec-hash.test.d.ts +0 -1
- package/dist/__tests__/spec-schema.test.d.ts +0 -1
- package/dist/__tests__/web-search-provider.test.d.ts +0 -6
- package/dist/__tests__/write-drift-evidence-requirement-coverage.test.d.ts +0 -4
- package/dist/adversarial-tests.test.d.ts +0 -1
- package/dist/agents/architect-permission.adversarial.test.d.ts +0 -5
- package/dist/agents/architect.commands-list.adversarial.test.d.ts +0 -1
- package/dist/agents/architect.commands-list.test.d.ts +0 -1
- package/dist/agents/architect.dark-matter.test.d.ts +0 -1
- package/dist/agents/architect.designer-gate.test.d.ts +0 -1
- package/dist/agents/architect.skip-aliases.test.d.ts +0 -1
- package/dist/agents/coder.test.d.ts +0 -1
- package/dist/agents/council-prompts.test.d.ts +0 -9
- package/dist/agents/council-registration.test.d.ts +0 -23
- package/dist/agents/explorer-consumer-contract.test.d.ts +0 -1
- package/dist/agents/explorer-role-boundary.test.d.ts +0 -1
- package/dist/agents/prompt-namespace.test.d.ts +0 -1
- package/dist/agents/reviewer.test.d.ts +0 -1
- package/dist/agents/test-engineer.adversarial.test.d.ts +0 -5
- package/dist/agents/test-engineer.security.test.d.ts +0 -1
- package/dist/background/trigger.vulnerability.test.d.ts +0 -1
- package/dist/commands/archive.error-handling.test.d.ts +0 -9
- package/dist/commands/benchmark.error-handling.test.d.ts +0 -7
- package/dist/commands/brainstorm.test.d.ts +0 -1
- package/dist/commands/clashes-with-native-cc.test.d.ts +0 -10
- package/dist/commands/command-adapters.security.test.d.ts +0 -14
- package/dist/commands/command-names.test.d.ts +0 -1
- package/dist/commands/commands.test.d.ts +0 -1
- package/dist/commands/conflict-registry.structural.test.d.ts +0 -1
- package/dist/commands/conflict-registry.test.d.ts +0 -5
- package/dist/commands/council.test.d.ts +0 -4
- package/dist/commands/curate.test.d.ts +0 -1
- package/dist/commands/dark-matter.error-handling.test.d.ts +0 -1
- package/dist/commands/first-run.test.d.ts +0 -11
- package/dist/commands/full-auto-config-guard.test.d.ts +0 -7
- package/dist/commands/full-auto-discoverability.test.d.ts +0 -8
- package/dist/commands/full-auto-registration.test.d.ts +0 -5
- package/dist/commands/full-auto-sessionid.test.d.ts +0 -5
- package/dist/commands/full-auto.regression.test.d.ts +0 -10
- package/dist/commands/full-auto.test.d.ts +0 -6
- package/dist/commands/handoff.error-handling.adversarial.test.d.ts +0 -1
- package/dist/commands/handoff.error-handling.test.d.ts +0 -1
- package/dist/commands/index.help-text.test.d.ts +0 -1
- package/dist/commands/index.not-found.adversarial.test.d.ts +0 -12
- package/dist/commands/index.not-found.test.d.ts +0 -11
- package/dist/commands/qa-gates.test.d.ts +0 -1
- package/dist/commands/registration-parity.test.d.ts +0 -1
- package/dist/commands/registry-documentation.test.d.ts +0 -1
- package/dist/commands/registry-type.test.d.ts +0 -1
- package/dist/commands/registry.find-similar.adversarial.test.d.ts +0 -1
- package/dist/commands/registry.find-similar.test.d.ts +0 -1
- package/dist/commands/registry.test.d.ts +0 -1
- package/dist/commands/shortcut-routing.test.d.ts +0 -11
- package/dist/commands/simulate.report-write.adversarial.test.d.ts +0 -1
- package/dist/commands/simulate.report-write.test.d.ts +0 -1
- package/dist/commands/turbo-registration.test.d.ts +0 -5
- package/dist/commands/turbo-sessionid.test.d.ts +0 -5
- package/dist/commands/turbo.regression.test.d.ts +0 -11
- package/dist/commands/turbo.test.d.ts +0 -5
- package/dist/config/constants.architect-whitelist.test.d.ts +0 -1
- package/dist/config/constants.security.test.d.ts +0 -1
- package/dist/council/__tests__/council-evidence-writer.adversarial.test.d.ts +0 -6
- package/dist/db/global-db.test.d.ts +0 -7
- package/dist/db/project-db.test.d.ts +0 -4
- package/dist/db/qa-gate-profile.test.d.ts +0 -4
- package/dist/diff/__tests__/semantic-classifier.test.d.ts +0 -1
- package/dist/diff/__tests__/summary-generator.test.d.ts +0 -1
- package/dist/gate-evidence.test.d.ts +0 -1
- package/dist/hooks/__tests__/repo-graph-builder.test.d.ts +0 -12
- package/dist/hooks/__tests__/semantic-diff-injection.test.d.ts +0 -1
- package/dist/hooks/agent-activity.test.d.ts +0 -1
- package/dist/hooks/cc-command-intercept.test.d.ts +0 -1
- package/dist/hooks/curator-drift-advisory.test.d.ts +0 -1
- package/dist/hooks/delegation-gate.evidence.test.d.ts +0 -4
- package/dist/hooks/delegation-gate.getEvidenceTaskId.test.d.ts +0 -20
- package/dist/hooks/delegation-gate.plan-fallback-security.test.d.ts +0 -13
- package/dist/hooks/delegation-gate.plan-fallback.test.d.ts +0 -5
- package/dist/hooks/delegation-gate.seed-state.test.d.ts +0 -1
- package/dist/hooks/delegation-gate.turbo-evidence.test.d.ts +0 -8
- package/dist/hooks/delegation-gate.verify.test.d.ts +0 -11
- package/dist/hooks/delegation-ledger.test.d.ts +0 -11
- package/dist/hooks/diff-scope.test.d.ts +0 -1
- package/dist/hooks/incremental-verify.test.d.ts +0 -1
- package/dist/hooks/loop-detector.test.d.ts +0 -1
- package/dist/hooks/scope-guard-throw-behavior.test.d.ts +0 -15
- package/dist/hooks/scope-guard.adversarial.test.d.ts +0 -1
- package/dist/hooks/scope-guard.test.d.ts +0 -14
- package/dist/hooks/self-review.test.d.ts +0 -14
- package/dist/hooks/slop-detector.adversarial.test.d.ts +0 -1
- package/dist/hooks/slop-detector.test.d.ts +0 -1
- package/dist/hooks/spawn-helper.test.d.ts +0 -1
- package/dist/hooks/watchdog.integration.test.d.ts +0 -9
- package/dist/index.adversarial-bootstrap.test.d.ts +0 -1
- package/dist/index.bootstrap-adversarial.test.d.ts +0 -1
- package/dist/index.bootstrap-directory.test.d.ts +0 -1
- package/dist/model-fallback.adversarial.test.d.ts +0 -22
- package/dist/model-fallback.test.d.ts +0 -12
- package/dist/mutation/__tests__/engine.adversarial.test.d.ts +0 -1
- package/dist/mutation/__tests__/engine.test.d.ts +0 -1
- package/dist/mutation/__tests__/equivalence.adversarial.test.d.ts +0 -1
- package/dist/mutation/__tests__/equivalence.test.d.ts +0 -1
- package/dist/mutation/__tests__/gate.adversarial.test.d.ts +0 -1
- package/dist/mutation/__tests__/gate.test.d.ts +0 -1
- package/dist/mutation/__tests__/generator.test.d.ts +0 -1
- package/dist/parallel/dispatcher/noop-dispatcher.test.d.ts +0 -10
- package/dist/plan/checkpoint.test.d.ts +0 -1
- package/dist/plan/ledger-integrity.test.d.ts +0 -5
- package/dist/plan/ledger-snapshot-adversarial.test.d.ts +0 -1
- package/dist/plan/ledger.test.d.ts +0 -1
- package/dist/plan/manager.cas-backoff.test.d.ts +0 -10
- package/dist/plan/manager.ledger-aware.test.d.ts +0 -1
- package/dist/plan/manager.loadplan-validation-guard.test.d.ts +0 -13
- package/dist/plan/manager.update-task-status.test.d.ts +0 -1
- package/dist/plan/migration-revert.regression.test.d.ts +0 -8
- package/dist/prm/__tests__/course-correction.test.d.ts +0 -1
- package/dist/prm/__tests__/escalation-queue-drain.test.d.ts +0 -1
- package/dist/prm/__tests__/escalation.test.d.ts +0 -1
- package/dist/prm/__tests__/index.test.d.ts +0 -1
- package/dist/prm/__tests__/integration.test.d.ts +0 -1
- package/dist/prm/__tests__/pattern-detector.test.d.ts +0 -5
- package/dist/prm/__tests__/replay.test.d.ts +0 -1
- package/dist/prm/__tests__/trajectory-store.test.d.ts +0 -7
- package/dist/sast/semgrep.test.d.ts +0 -1
- package/dist/scope/scope-persistence.test.d.ts +0 -13
- package/dist/services/compaction-service.test.d.ts +0 -1
- package/dist/services/config-doctor.security.test.d.ts +0 -1
- package/dist/services/config-doctor.test.d.ts +0 -1
- package/dist/services/status-service.turbo-indicator.test.d.ts +0 -5
- package/dist/services/tool-doctor.test.d.ts +0 -1
- package/dist/state.agent-run-context.test.d.ts +0 -10
- package/dist/state.rehydrate.test.d.ts +0 -1
- package/dist/state.rehydration-adversarial.test.d.ts +0 -1
- package/dist/state.rehydration-integration.test.d.ts +0 -1
- package/dist/state.session-restart.test.d.ts +0 -7
- package/dist/state.telemetry.test.d.ts +0 -1
- package/dist/telemetry.test.d.ts +0 -1
- package/dist/test-impact/__tests__/analyzer-import-fix.adversarial.test.d.ts +0 -1
- package/dist/test-impact/__tests__/analyzer-import-fix.test.d.ts +0 -1
- package/dist/test-impact/__tests__/analyzer.adversarial.test.d.ts +0 -1
- package/dist/test-impact/__tests__/analyzer.test.d.ts +0 -1
- package/dist/test-impact/__tests__/council-fixes.test.d.ts +0 -1
- package/dist/test-impact/__tests__/failure-classifier.adversarial.test.d.ts +0 -1
- package/dist/test-impact/__tests__/failure-classifier.test.d.ts +0 -1
- package/dist/test-impact/__tests__/flaky-detector.adversarial.test.d.ts +0 -1
- package/dist/test-impact/__tests__/flaky-detector.test.d.ts +0 -1
- package/dist/test-impact/__tests__/history-store.adversarial.test.d.ts +0 -1
- package/dist/test-impact/__tests__/history-store.test.d.ts +0 -1
- package/dist/test-impact/__tests__/test-impact.adversarial.test.d.ts +0 -1
- package/dist/test-impact/__tests__/test-impact.test.d.ts +0 -1
- package/dist/tools/__tests__/barrel-exports.test.d.ts +0 -1
- package/dist/tools/__tests__/diff-ast-fallback.test.d.ts +0 -1
- package/dist/tools/__tests__/diff-markdown-summary.test.d.ts +0 -1
- package/dist/tools/__tests__/diff-semantic.test.d.ts +0 -1
- package/dist/tools/__tests__/diff-summary.adversarial.test.d.ts +0 -1
- package/dist/tools/__tests__/diff-summary.test.d.ts +0 -1
- package/dist/tools/__tests__/mutation-test.adversarial.test.d.ts +0 -1
- package/dist/tools/__tests__/mutation-test.sourcefiles.test.d.ts +0 -1
- package/dist/tools/__tests__/mutation-test.test.d.ts +0 -1
- package/dist/tools/__tests__/repo-graph-walk.test.d.ts +0 -16
- package/dist/tools/__tests__/test-runner-history.test.d.ts +0 -1
- package/dist/tools/__tests__/test-runner-impact.adversarial.test.d.ts +0 -1
- package/dist/tools/__tests__/test-runner-impact.test.d.ts +0 -1
- package/dist/tools/__tests__/test-runner-source-files.test.d.ts +0 -1
- package/dist/tools/barrel-export-check-gate-status.test.d.ts +0 -6
- package/dist/tools/batch-symbols.test.d.ts +0 -1
- package/dist/tools/check-gate-status.adversarial.test.d.ts +0 -1
- package/dist/tools/check-gate-status.gates.test.d.ts +0 -1
- package/dist/tools/check-gate-status.plugin-registration.test.d.ts +0 -1
- package/dist/tools/curator-analyze.test.d.ts +0 -1
- package/dist/tools/knowledge-tools.integration.test.d.ts +0 -1
- package/dist/tools/mutation-test.security.test.d.ts +0 -1
- package/dist/tools/plugin-registration-adversarial.test.d.ts +0 -1
- package/dist/tools/resolve-working-directory.test.d.ts +0 -1
- package/dist/tools/save-plan.subdirectory-rejection.test.d.ts +0 -1
- package/dist/tools/search.adversarial.test.d.ts +0 -1
- package/dist/tools/search.test.d.ts +0 -1
- package/dist/tools/suggest-patch.adversarial.test.d.ts +0 -1
- package/dist/tools/suggest-patch.test.d.ts +0 -1
- package/dist/tools/test-runner.security-adversarial.test.d.ts +0 -5
- package/dist/tools/update-task-status.adversarial.test.d.ts +0 -13
- package/dist/tools/update-task-status.gates.test.d.ts +0 -1
- package/dist/tools/update-task-status.test.d.ts +0 -1
- package/dist/tools/update-task-status.turbo-bypass.test.d.ts +0 -1
- package/dist/tools/verify-six-tools-registration.test.d.ts +0 -9
- package/dist/tools/write-mutation-evidence.test.d.ts +0 -1
- package/dist/transient-retry.test.d.ts +0 -10
- package/dist/utils/__tests__/bun-compat.test.d.ts +0 -11
- 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.
|
|
3
|
+
"version": "7.13.2",
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
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 +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 +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 +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 +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 +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 +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,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,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 +0,0 @@
|
|
|
1
|
-
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 +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 +0,0 @@
|
|
|
1
|
-
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 +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,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 +0,0 @@
|
|
|
1
|
-
export {};
|