opencode-swarm 7.172.3 → 7.173.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/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/background/pending-delegations.d.ts +2 -0
- package/dist/ci/evaluate.d.ts +13 -0
- package/dist/ci/index.d.ts +4 -4
- package/dist/ci/runtime.d.ts +7 -6
- package/dist/cli/{coder-settlement-953gq8yr.js → coder-settlement-f60aqxyv.js} +10 -10
- package/dist/cli/{config-doctor-avg2n7zg.js → config-doctor-nvw2fwrn.js} +2 -2
- package/dist/cli/{core-9gyeekh7.js → core-z68xfzar.js} +3 -3
- package/dist/cli/{curation-policy-yep7t261.js → curation-policy-tx4kb30e.js} +4 -4
- package/dist/cli/{curator-w99yjeja.js → curator-93a3pyvv.js} +35 -35
- package/dist/cli/{curator-drift-z8p6kwqg.js → curator-drift-047n8fjw.js} +4 -4
- package/dist/cli/curator-llm-factory-xkhzrdkk.js +72 -0
- package/dist/cli/{evidence-summary-service-7099px21.js → evidence-summary-service-s22vfx64.js} +14 -14
- package/dist/cli/{gate-evidence-dpjqqz2c.js → gate-evidence-kz044xwh.js} +5 -5
- package/dist/cli/guardrail-explain-5nyr0vnx.js +73 -0
- package/dist/cli/{guardrail-log-742pxhff.js → guardrail-log-sh9ecphn.js} +6 -6
- package/dist/cli/{guardrail-reset-nagdgrbn.js → guardrail-reset-m56x3djm.js} +35 -35
- package/dist/cli/{hive-promoter-k2wf2s5z.js → hive-promoter-1hfyd1gn.js} +35 -35
- package/dist/cli/{index-j7zrvqnf.js → index-0dfhahxm.js} +2 -2
- package/dist/cli/{index-4xb2549e.js → index-0y9fqm5d.js} +1 -1
- package/dist/cli/{index-20cdbfq3.js → index-10vr7289.js} +1 -1
- package/dist/cli/{index-vcapf7mj.js → index-1pnw3jkr.js} +7 -6
- package/dist/cli/{index-whab5d23.js → index-1r2avghn.js} +3 -3
- package/dist/cli/{index-tef8vhhp.js → index-3312a4k1.js} +37 -37
- package/dist/cli/{index-jx2xbws0.js → index-3n16qq3z.js} +7 -7
- package/dist/cli/{index-yxegcfy5.js → index-43dmpa9w.js} +1 -1
- package/dist/cli/{index-p2txw1sb.js → index-579nzg03.js} +1 -1
- package/dist/cli/{index-rxakec16.js → index-7gkdxs00.js} +6 -6
- package/dist/cli/{index-ve0sgqp6.js → index-8xkr8p2b.js} +7 -7
- package/dist/cli/{index-ygx8dqx5.js → index-915wxcgs.js} +4 -4
- package/dist/cli/{index-8p30wyx0.js → index-bsnpv4xd.js} +1 -1
- package/dist/cli/{index-jjaqrtv1.js → index-btxf9k1r.js} +10 -10
- package/dist/cli/{index-jg2s11sg.js → index-dktpzjy9.js} +1 -1
- package/dist/cli/{index-yh3fj6az.js → index-e8tscab8.js} +120 -6
- package/dist/cli/{index-52479s2h.js → index-ejrqyrsr.js} +2 -2
- package/dist/cli/{index-2n16srdc.js → index-evf5r7bk.js} +1 -1
- package/dist/cli/{index-ccncmdfx.js → index-fb5rj8sk.js} +7 -7
- package/dist/cli/{index-y6bqbe76.js → index-fnx0jzf7.js} +1 -1
- package/dist/cli/{index-kb7fdfa1.js → index-fxac6j9v.js} +35 -35
- package/dist/cli/{index-j5sx95zk.js → index-gd40ehzt.js} +5 -5
- package/dist/cli/{index-9h6zhnk0.js → index-hhws1xkc.js} +1 -1
- package/dist/cli/{index-01mjyjdt.js → index-kdyvk541.js} +1 -1
- package/dist/cli/{index-xd1abbh3.js → index-m08ee28a.js} +47 -23
- package/dist/cli/{index-efbdfkw9.js → index-m51cmzxt.js} +1 -1
- package/dist/cli/{index-8rgw1289.js → index-mq2y8qpg.js} +5 -5
- package/dist/cli/{index-kerhh5q4.js → index-mt8pbzda.js} +1 -1
- package/dist/cli/{index-a1187fx5.js → index-ndvgkxpf.js} +2 -2
- package/dist/cli/{index-nhh50fv0.js → index-njdy6w9x.js} +2882 -2572
- package/dist/cli/{index-s4ne4vyj.js → index-nrsnman7.js} +3 -3
- package/dist/cli/{index-cbmt52r8.js → index-nztmfgvw.js} +4 -4
- package/dist/cli/{index-amje22mj.js → index-pserzhck.js} +1 -1
- package/dist/cli/{index-xfdpbke0.js → index-sftt3gdv.js} +2 -2
- package/dist/cli/{index-fdmcqg7f.js → index-tztqvzf5.js} +2 -2
- package/dist/cli/{index-j8z3t7dv.js → index-wr4m11x4.js} +1 -1
- package/dist/cli/{index-ksjpc8s8.js → index-yzwb6ja4.js} +1 -1
- package/dist/cli/{index-0wz1txjt.js → index-z1k5dvn0.js} +2 -2
- package/dist/cli/{index-qzptb0gf.js → index-z35ynvj4.js} +1 -1
- package/dist/cli/{index-b395nw9b.js → index-za1kvsa0.js} +2 -2
- package/dist/cli/index.js +53 -36
- package/dist/cli/{knowledge-escalator-td5y5mk6.js → knowledge-escalator-zeackj4h.js} +11 -11
- package/dist/cli/{knowledge-events-8v5ztbfw.js → knowledge-events-nfcgfhq2.js} +9 -9
- package/dist/cli/{knowledge-link-3qypq7bm.js → knowledge-link-f7bhq7cx.js} +3 -3
- package/dist/cli/{knowledge-store-g6tzh47h.js → knowledge-store-jptt6kp5.js} +4 -4
- package/dist/cli/{knowledge-validator-5hr0h9fg.js → knowledge-validator-e7nten5a.js} +6 -6
- package/dist/cli/{mcp-68s4qvzb.js → mcp-14kyj73d.js} +1 -1
- package/dist/cli/{pending-delegations-09qr1aps.js → pending-delegations-4jget283.js} +10 -10
- package/dist/cli/{pr-subscriptions-drmhmqs9.js → pr-subscriptions-qe0j6xyr.js} +10 -10
- package/dist/cli/{pr-workflow-gate-zr35z0q4.js → pr-workflow-gate-2m91qcm6.js} +35 -35
- package/dist/cli/{runner-2qypr9b5.js → runner-58k70bnr.js} +4 -4
- package/dist/cli/{scan-cursor-m15pn4jd.js → scan-cursor-myzgmzj6.js} +5 -5
- package/dist/cli/{schema-cgd0q9yv.js → schema-gws3yx52.js} +1 -1
- package/dist/cli/{scope-persistence-9q7knrw5.js → scope-persistence-fh1d8vs0.js} +13 -13
- package/dist/cli/{server-kxrmns85.js → server-v0wfd3rk.js} +35 -35
- package/dist/cli/{skill-generator-hw3hne32.js → skill-generator-935cmd3p.js} +13 -13
- package/dist/cli/{snapshot-coordination-init-qaqa4zyt.js → snapshot-coordination-init-ad8n0977.js} +35 -35
- package/dist/cli/{workspace-snapshot-e63mg204.js → workspace-snapshot-62be4368.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-sv60daa6.js → worktree-collision-ownership-txzvv5jv.js} +11 -11
- package/dist/cli/{worktree-isolation-nacnqxtw.js → worktree-isolation-tv749n96.js} +35 -35
- package/dist/commands/close/orchestrator.d.ts +34 -0
- package/dist/commands/destructive-purge.d.ts +15 -0
- package/dist/hooks/delegation-gate/worktree-isolation.d.ts +18 -3
- package/dist/hooks/guardrails/index.d.ts +2 -0
- package/dist/hooks/guardrails/stage-a-route.d.ts +45 -0
- package/dist/hooks/guardrails/tool-before.d.ts +10 -0
- package/dist/index.js +449 -444
- package/dist/turbo/lean/merge-back.d.ts +1 -1
- package/dist/workflow/coder-settlement.d.ts +2 -0
- package/dist/worktree/merge.d.ts +36 -9
- package/dist/worktree/types.d.ts +8 -1
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-p9rykf6q.js +0 -72
- package/dist/cli/guardrail-explain-dns0en0j.js +0 -73
|
@@ -26,6 +26,8 @@ export declare const _internals: {
|
|
|
26
26
|
allowUncorrelatedGateReceipts: boolean;
|
|
27
27
|
MAX_PENDING_GATE_RECEIPTS_PER_SESSION: number;
|
|
28
28
|
MAX_PENDING_GATE_RECEIPT_SESSIONS: number;
|
|
29
|
+
MAX_PENDING_GATE_ROUTES_PER_SESSION: number;
|
|
30
|
+
MAX_PENDING_GATE_ROUTE_SESSIONS: number;
|
|
29
31
|
/**
|
|
30
32
|
* Test/inspection seams for the no-op detector's bounded session state
|
|
31
33
|
* (invariant 8). Production code does not call these; they exist so the
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { appendCoreEventSync } from '../../events/core-events.js';
|
|
2
|
+
/**
|
|
3
|
+
* Stage A attribution route events (issue #2664).
|
|
4
|
+
*
|
|
5
|
+
* MANDATORY lifecycle bookkeeping: every completed gate-tool call outcome is
|
|
6
|
+
* recorded as ONE bounded event in the core event store, in BOTH guardrails
|
|
7
|
+
* modes. Optional enforcement (`guardrails.enabled=false`) removes policy
|
|
8
|
+
* denials only — it never suppresses these receipts.
|
|
9
|
+
*
|
|
10
|
+
* Bounded by construction: route is a member of the closed vocabulary, IDs
|
|
11
|
+
* are sanitized and sliced, and the serialized line stays far under both the
|
|
12
|
+
* frozen 2048-byte contract bound and the store's 256 KiB maxLineBytes, so
|
|
13
|
+
* the store's typed CORE_EVENT_LINE_TOO_LARGE / CORE_EVENT_LOCKED failures
|
|
14
|
+
* are practically unreachable. The catch exists so a locked-store storm can
|
|
15
|
+
* never turn a logged route event into a thrown exception inside the
|
|
16
|
+
* lifecycle hook (plan-critic R1-F1).
|
|
17
|
+
*/
|
|
18
|
+
export type StageAGateRoute = 'valid_pass' | 'pre_check_failed' | 'invalid_result' | 'no_task_correlation' | 'attribution_ambiguous' | 'late_result' | 'duplicate_result';
|
|
19
|
+
export declare const STAGE_A_ROUTES: readonly StageAGateRoute[];
|
|
20
|
+
export declare const STAGE_A_ROUTE_EVENT_TYPE = "stage_a_gate_route";
|
|
21
|
+
/** Sanitize an identifier for event emission: printable, bounded. */
|
|
22
|
+
declare function boundedId(value: string | null | undefined): string | null;
|
|
23
|
+
export interface StageAGateRouteEventInput {
|
|
24
|
+
route: StageAGateRoute;
|
|
25
|
+
sessionID: string;
|
|
26
|
+
callID: string;
|
|
27
|
+
/** Attributed task, or null when no single task is attributable. */
|
|
28
|
+
taskId: string | null;
|
|
29
|
+
guardrailsEnabled: boolean;
|
|
30
|
+
}
|
|
31
|
+
declare function buildEvent(input: StageAGateRouteEventInput): Record<string, unknown>;
|
|
32
|
+
/**
|
|
33
|
+
* Record one Stage A route event. Fail-open for the hook: append failures
|
|
34
|
+
* (typed CORE_EVENT_LOCKED / CORE_EVENT_LINE_TOO_LARGE) are logged warn-only
|
|
35
|
+
* and never propagate into the lifecycle path. The exactly-one-event
|
|
36
|
+
* contract holds under a healthy store; the warn line is the disclosure for
|
|
37
|
+
* the exceptional window.
|
|
38
|
+
*/
|
|
39
|
+
export declare function recordStageAGateRoute(directory: string, input: StageAGateRouteEventInput): void;
|
|
40
|
+
export declare const _internals: {
|
|
41
|
+
buildEvent: typeof buildEvent;
|
|
42
|
+
boundedId: typeof boundedId;
|
|
43
|
+
append: typeof appendCoreEventSync;
|
|
44
|
+
};
|
|
45
|
+
export {};
|
|
@@ -50,6 +50,16 @@ export interface ToolBeforeContext {
|
|
|
50
50
|
}) => void;
|
|
51
51
|
/** Snapshot an exact authorized write for success-only lease renewal. */
|
|
52
52
|
rememberScopeLeaseCandidate?: (input: ScopeLeaseCandidateInput) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Issue #2664: whether OPTIONAL policy enforcement is active. When false
|
|
55
|
+
* (guardrails.enabled=false), every policy denial below is skipped while
|
|
56
|
+
* all mandatory lifecycle bookkeeping (gate correlation in the wrapper,
|
|
57
|
+
* lease candidates, modified-file/reviewer-scope tracking) keeps running.
|
|
58
|
+
* Defaults to true — direct unit callers are unchanged. Structural
|
|
59
|
+
* fail-closed bounds (the 1 MiB patch-payload guard) stay active in both
|
|
60
|
+
* modes.
|
|
61
|
+
*/
|
|
62
|
+
enforcePolicy?: boolean;
|
|
53
63
|
}
|
|
54
64
|
/** @internal test seam */
|
|
55
65
|
export declare function _resetSandboxUnavailableWarningState(): void;
|