opencode-swarm 7.178.0 → 7.179.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.
- package/.opencode/skills/deep-dive/SKILL.md +1 -1
- package/.opencode/skills/running-tests/SKILL.md +30 -24
- package/.opencode/skills/swarm-plan/SKILL.md +1 -1
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/agents/critic.d.ts +6 -6
- package/dist/agents/explorer.d.ts +1 -1
- package/dist/cli/{coder-settlement-d2bfb25j.js → coder-settlement-7pt3a0y0.js} +12 -12
- package/dist/cli/{config-doctor-905x2s1c.js → config-doctor-82w4bp4b.js} +3 -3
- package/dist/cli/{core-k7wfx1wx.js → core-9rqzs794.js} +4 -4
- package/dist/cli/{curation-policy-n4hd2wsa.js → curation-policy-c7mdsf7m.js} +5 -5
- package/dist/cli/{curator-drift-smqmej5v.js → curator-drift-d93pwt8h.js} +5 -5
- package/dist/cli/curator-llm-factory-cbm1ny30.js +72 -0
- package/dist/cli/{curator-wyadq69k.js → curator-m8act07j.js} +40 -40
- package/dist/cli/{dispatch-9yqqqfr6.js → dispatch-3rwdxpp2.js} +1 -1
- package/dist/cli/{evidence-summary-service-r3wcprfk.js → evidence-summary-service-a99bgje1.js} +17 -17
- package/dist/cli/{explorer-2cv64zfj.js → explorer-z0cf5cz0.js} +1 -1
- package/dist/cli/{gate-evidence-tq9rb2aj.js → gate-evidence-yssmxba5.js} +7 -7
- package/dist/cli/guardrail-explain-ffwmhf7s.js +73 -0
- package/dist/cli/{guardrail-log-m6twga6x.js → guardrail-log-j2wtq7p2.js} +8 -8
- package/dist/cli/{guardrail-reset-86esv8cr.js → guardrail-reset-07byr7nr.js} +40 -40
- package/dist/cli/{hive-promoter-s87hkb40.js → hive-promoter-ewrz7vh1.js} +40 -40
- package/dist/cli/{index-ke3m026z.js → index-09wm3963.js} +14 -7
- package/dist/cli/{index-vfc7d22n.js → index-0bc8jdnv.js} +2 -2
- package/dist/cli/{index-ffqy30e5.js → index-0h3cr7pn.js} +1 -1
- package/dist/cli/{index-fyfbpz4f.js → index-1c1dbwze.js} +1 -0
- package/dist/cli/{index-zex7644g.js → index-1rwyfvq2.js} +2 -2
- package/dist/cli/{index-18hjycr1.js → index-1sz02k85.js} +30 -2
- package/dist/cli/{index-pm7c6f66.js → index-2b0ktpbf.js} +2 -2
- package/dist/cli/{index-yj1kr0ft.js → index-34bwqcea.js} +1 -1
- package/dist/cli/{index-wkde35ej.js → index-3hne91yd.js} +8 -8
- package/dist/cli/{index-2b1whj28.js → index-3pzwsesm.js} +2 -2
- package/dist/cli/{index-y74n1sy8.js → index-6r92fw88.js} +7 -7
- package/dist/cli/{index-p27az2hc.js → index-6tnkvqr9.js} +4 -4
- package/dist/cli/{index-qs8eth8h.js → index-7zmbtxw1.js} +4 -4
- package/dist/cli/{index-azy3tw6c.js → index-80q47hpw.js} +2 -2
- package/dist/cli/{index-zsm8h8y1.js → index-8815e95e.js} +4 -4
- package/dist/cli/{index-gg44hytk.js → index-9p1pqykb.js} +33 -8
- package/dist/cli/{index-w4yjy3vp.js → index-a11ztzs5.js} +19 -2
- package/dist/cli/{index-sqngtwyq.js → index-amf88k1e.js} +1 -1
- package/dist/cli/{index-y6a2bkp1.js → index-cvg402ha.js} +2 -2
- package/dist/cli/{index-heg4em8j.js → index-d66zb40k.js} +3499 -2832
- package/dist/cli/{index-swxaa0zs.js → index-etmwjgre.js} +40 -40
- package/dist/cli/{index-j3rkh9mp.js → index-f2v90gfc.js} +2 -2
- package/dist/cli/{index-mpcp6rmj.js → index-g6nyk713.js} +1 -1
- package/dist/cli/{index-bfz1jvcn.js → index-h4nh6s8b.js} +1 -1
- package/dist/cli/{index-j1v54ahd.js → index-h59vsbch.js} +2 -2
- package/dist/cli/{index-29begjkp.js → index-hwcra3y9.js} +8 -8
- package/dist/cli/{index-2vhkwy6v.js → index-kanxpgf8.js} +3 -3
- package/dist/cli/{index-kfk403mc.js → index-kmhnkn6t.js} +4 -4
- package/dist/cli/{index-2mdk6nt9.js → index-ndwbb3xm.js} +7 -7
- package/dist/cli/{index-zsp9de3k.js → index-ne9zamcs.js} +7 -7
- package/dist/cli/{index-tnjmn0dn.js → index-nzekzzs2.js} +4 -4
- package/dist/cli/{index-q9vb5e7n.js → index-pskba939.js} +1 -1
- package/dist/cli/{index-qk29b7s4.js → index-pxtye2ng.js} +42 -42
- package/dist/cli/{index-wfbh1bx8.js → index-qt0793qm.js} +7 -7
- package/dist/cli/{index-at0ygwwp.js → index-qxk5qkfh.js} +5 -5
- package/dist/cli/{index-zmb8fjp5.js → index-s4bkey0q.js} +1 -1
- package/dist/cli/{index-rp0jk48x.js → index-sv4y1cma.js} +7 -7
- package/dist/cli/{index-2bmhe2jn.js → index-tmy46dtd.js} +4 -4
- package/dist/cli/{index-wbkxbgk8.js → index-twtez316.js} +2 -2
- package/dist/cli/{index-m2n1rhgv.js → index-w872yykk.js} +1 -1
- package/dist/cli/{index-jzxeymr0.js → index-wvpsm8ja.js} +93 -227
- package/dist/cli/{index-d5dexrv1.js → index-yagqxt2p.js} +4 -4
- package/dist/cli/{index-yeh78c1g.js → index-yfpswnjt.js} +2 -2
- package/dist/cli/{index-hnvmj9wx.js → index-zgvzbz48.js} +14 -4
- package/dist/cli/index.js +41 -41
- package/dist/cli/{knowledge-escalator-rgz471df.js → knowledge-escalator-yx97q9c1.js} +13 -13
- package/dist/cli/{knowledge-events-4mq0ypx9.js → knowledge-events-p269fyvv.js} +11 -11
- package/dist/cli/{knowledge-link-npk50523.js → knowledge-link-gfz47ves.js} +4 -4
- package/dist/cli/{knowledge-store-gft25s5t.js → knowledge-store-36zemyqa.js} +5 -5
- package/dist/cli/{knowledge-validator-ejqacbx4.js → knowledge-validator-rd20yq41.js} +7 -7
- package/dist/cli/{mcp-emaeeq4s.js → mcp-sg9zrkz2.js} +1 -1
- package/dist/cli/{model-preflight-kh9dwts2.js → model-preflight-61xgqwcs.js} +1 -1
- package/dist/cli/{pending-delegations-4bhkcykk.js → pending-delegations-8p2gf4kt.js} +12 -12
- package/dist/cli/{pr-subscriptions-h1n6dbds.js → pr-subscriptions-4dj9r71h.js} +12 -12
- package/dist/cli/{pr-workflow-gate-wn6v5za8.js → pr-workflow-gate-8dgz5z1h.js} +42 -40
- package/dist/cli/{runner-ffy5ahhz.js → runner-16b691ba.js} +5 -5
- package/dist/cli/{scan-cursor-e63t0g5b.js → scan-cursor-nx0jv9ya.js} +6 -6
- package/dist/cli/{schema-4k4hr33y.js → schema-q6gsrxwz.js} +2 -2
- package/dist/cli/{scope-persistence-qcw3rtxq.js → scope-persistence-1k4xsyh7.js} +20 -16
- package/dist/cli/{server-58s1wwap.js → server-shhxq34t.js} +47 -45
- package/dist/cli/{skill-generator-fhj13jmq.js → skill-generator-6j7tq2tb.js} +15 -15
- package/dist/cli/{snapshot-coordination-init-5fawrj35.js → snapshot-coordination-init-h8n8w1cm.js} +40 -40
- package/dist/cli/{telemetry-ca8dmn26.js → telemetry-qxav5cdk.js} +1 -1
- package/dist/cli/{workspace-snapshot-v5qyjxg0.js → workspace-snapshot-rfnn80dg.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-hjk0jx19.js → worktree-collision-ownership-97jzh4ra.js} +13 -13
- package/dist/cli/{worktree-isolation-aj20bs6q.js → worktree-isolation-g4w74ccb.js} +40 -40
- package/dist/commands/registry.d.ts +3 -3
- package/dist/config/plan-schema.d.ts +23 -0
- package/dist/db/coordination-store.d.ts +10 -0
- package/dist/evidence/phase-participation.d.ts +3 -2
- package/dist/hooks/delegation-gate.d.ts +1 -1
- package/dist/hooks/extractors.d.ts +5 -1
- package/dist/hooks/pr-workflow-gate.d.ts +15 -6
- package/dist/index.js +535 -520
- package/dist/memory/index.d.ts +1 -0
- package/dist/memory/memory-family-migration.d.ts +35 -3
- package/dist/mutation/engine.d.ts +6 -0
- package/dist/mutation/equivalence.d.ts +12 -1
- package/dist/plan/ledger.d.ts +14 -0
- package/dist/plan/manager.d.ts +0 -2
- package/dist/plan/parallel-verdict.d.ts +28 -14
- package/dist/pr-review/circuit.d.ts +3 -3
- package/dist/pr-review/legacy-transcript-adapter.d.ts +7 -10
- package/dist/pr-review/persistence.d.ts +36 -0
- package/dist/retention/sweep.d.ts +4 -0
- package/dist/scope/scope-persistence.d.ts +41 -0
- package/dist/tools/mutation-test.d.ts +6 -0
- package/dist/tools/plan-conflict-check.d.ts +7 -6
- package/dist/tools/prepare-pr-workflow-checkout.d.ts +19 -0
- package/dist/tools/repo-map-action-dispositions.d.ts +23 -0
- package/dist/tools/test-runner.d.ts +17 -2
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-qhhxev17.js +0 -72
- package/dist/cli/guardrail-explain-kvgejh24.js +0 -73
- package/dist/pr-review/guardrails.d.ts +0 -67
|
@@ -40,6 +40,16 @@ export interface CoordinationTransitionResult {
|
|
|
40
40
|
outcome: CoordinationTransitionOutcome;
|
|
41
41
|
state: CoordinationState | null;
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Read one coordination row without validating its payload.
|
|
45
|
+
*
|
|
46
|
+
* Normal coordination reads deliberately remain strict (`getCoordinationState`
|
|
47
|
+
* calls `readState`). Recovery code uses this narrow escape hatch only after a
|
|
48
|
+
* successful database read so it can inspect the row revision/generation and
|
|
49
|
+
* perform an exact CAS cleanup without trusting corrupt payload bytes. Database
|
|
50
|
+
* open/query failures are intentionally allowed to propagate unchanged.
|
|
51
|
+
*/
|
|
52
|
+
export declare function getCoordinationStateRaw(directory: string, namespace: string, entityKey: string): CoordinationState | null;
|
|
43
53
|
export declare function withCoordinationTransaction<T>(directory: string, fn: () => T): T;
|
|
44
54
|
export declare function getCoordinationState(directory: string, namespace: string, entityKey: string): CoordinationState | null;
|
|
45
55
|
export declare function listCoordinationStates(directory: string, namespace: string, limit?: number): CoordinationState[];
|
|
@@ -42,8 +42,9 @@ export declare function completeBackgroundPhaseParticipation(input: {
|
|
|
42
42
|
}): Promise<boolean>;
|
|
43
43
|
export declare function readPhaseParticipation(directory: string, plan: Plan, phase: number, role: string): Promise<ParticipationReadResult>;
|
|
44
44
|
/**
|
|
45
|
-
* Re-stamp receipts that were tagged with the plan's
|
|
46
|
-
*
|
|
45
|
+
* Re-stamp receipts that were tagged with the plan's `current_phase` cursor
|
|
46
|
+
* at dispatch time (issue #2702 origin; the cursor is live since #2532) to
|
|
47
|
+
* the phase whose completion is being recorded. Called
|
|
47
48
|
* from the phase_complete success path so a cursor-mistagged receipt, once it
|
|
48
49
|
* has satisfied the completing phase's gate, cannot also satisfy a later
|
|
49
50
|
* phase — per-phase docs participation stays enforced. Idempotent: a second
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { BackgroundDelegationRecord } from '../background/pending-delegations.js';
|
|
8
8
|
import type { PluginConfig } from '../config';
|
|
9
|
-
import type
|
|
9
|
+
import { type Plan } from '../config/plan-schema';
|
|
10
10
|
import { type QaGates } from '../db/qa-gate-profile.js';
|
|
11
11
|
import { loadPlanJsonOnly } from '../plan/manager';
|
|
12
12
|
import type { AgentSessionState } from '../state';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Plan } from '../config/plan-schema';
|
|
2
2
|
/**
|
|
3
3
|
* Swarm File Extractors
|
|
4
4
|
*
|
|
@@ -36,6 +36,10 @@ export declare function extractIncompleteTasks(planContent: string, maxChars?: n
|
|
|
36
36
|
export declare function extractPatterns(contextContent: string, maxChars?: number): string | null;
|
|
37
37
|
/**
|
|
38
38
|
* Extracts current phase info from a Plan object.
|
|
39
|
+
*
|
|
40
|
+
* #2532: resolves the phase through the canonical active-phase resolver so a
|
|
41
|
+
* stale stored cursor (legacy plans whose current_phase never advanced) can
|
|
42
|
+
* never suppress the summary — the honest active phase is reported instead.
|
|
39
43
|
*/
|
|
40
44
|
export declare function extractCurrentPhaseFromPlan(plan: Plan): string | null;
|
|
41
45
|
/**
|
|
@@ -638,6 +638,12 @@ export declare function withInactivePrWorkflowCheckoutRestoreLock<T>(directory:
|
|
|
638
638
|
export declare function clearPrWorkflowGateState(directory: string, sessionID: string, expectedRevision?: number, options?: {
|
|
639
639
|
allowSalvagedRead?: boolean;
|
|
640
640
|
}): Promise<void>;
|
|
641
|
+
/**
|
|
642
|
+
* Exact-owner lifecycle terminalization for session.deleted/removed wiring.
|
|
643
|
+
* This bypasses abort authorization and removes only the requested session's
|
|
644
|
+
* coordination row, shadow projection, and in-process cache entry.
|
|
645
|
+
*/
|
|
646
|
+
export declare function terminalizePrWorkflowGateForSession(directory: string, sessionID: string): Promise<void>;
|
|
641
647
|
/**
|
|
642
648
|
* The single session operation the liveness probe needs.
|
|
643
649
|
*
|
|
@@ -1833,12 +1839,15 @@ export interface PrWorkflowGateRecoveryRead {
|
|
|
1833
1839
|
*
|
|
1834
1840
|
* Policy, mirroring the file-wide "unavailability degrades with disclosure;
|
|
1835
1841
|
* contradiction fails closed" invariant:
|
|
1836
|
-
* - **Unparseable bytes fail everywhere**, recovery included. There
|
|
1837
|
-
* to salvage and guessing would be
|
|
1838
|
-
*
|
|
1839
|
-
*
|
|
1840
|
-
*
|
|
1841
|
-
*
|
|
1842
|
+
* - **Unparseable shadow bytes fail everywhere**, recovery included. There
|
|
1843
|
+
* is nothing to salvage from that projection and guessing would be
|
|
1844
|
+
* fabrication. A coordination payload that is unparseable or otherwise
|
|
1845
|
+
* corrupt is recoverable only when this exact shadow has the same revision
|
|
1846
|
+
* as the row generation, and the disclosure names that degraded source.
|
|
1847
|
+
* - **Schema-validation failure on parseable shadow JSON** salvages the
|
|
1848
|
+
* fields abort actually reads — `{sessionID, mode, prHeadSha}` plus
|
|
1849
|
+
* `revision`, `prFeedbackReadyToPublish` and `checkoutRecovery` when each
|
|
1850
|
+
* is individually well-formed — with a loud disclosure naming the schema
|
|
1842
1851
|
* errors. Everything else is dropped rather than guessed.
|
|
1843
1852
|
* - **Identity is not salvageable ⇒ nothing is.** Without a readable
|
|
1844
1853
|
* `sessionID` and `mode` there is no provable subject to act on, so the
|