opencode-swarm 7.200.10 → 7.200.11
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/cli/{attest-task-yx2t832n.js → attest-task-y0n69zgb.js} +26 -26
- package/dist/cli/{auto-checkpoint-15mvj9zm.js → auto-checkpoint-hyaksmtg.js} +4 -4
- package/dist/cli/{checkpoint-65whgvwa.js → checkpoint-t0p781sc.js} +8 -8
- package/dist/cli/{coder-settlement-sdg1he8p.js → coder-settlement-nh88s6es.js} +4 -4
- package/dist/cli/{config-doctor-4af2p2y4.js → config-doctor-sf7hc0q4.js} +7 -7
- package/dist/cli/{core-8swqc6kw.js → core-p168fw3r.js} +1 -1
- package/dist/cli/{curator-6ze04fz3.js → curator-5ayzhk7v.js} +26 -26
- package/dist/cli/{curator-drift-ktf137da.js → curator-drift-jx9kyndc.js} +5 -5
- package/dist/cli/{curator-llm-factory-7vq4rgg7.js → curator-llm-factory-ytfkvtxs.js} +26 -26
- package/dist/cli/{doctor-knowledge-receipt-phase-id-0smwq3ar.js → doctor-knowledge-receipt-phase-id-2gjvxndy.js} +4 -4
- package/dist/cli/{evidence-summary-service-3bhq2gef.js → evidence-summary-service-972sqht5.js} +10 -10
- package/dist/cli/{gate-evidence-gcv0xgfc.js → gate-evidence-n1m842gj.js} +3 -3
- package/dist/cli/{guardrail-explain-9t3mvm92.js → guardrail-explain-6yv78gmk.js} +27 -27
- package/dist/cli/{guardrail-log-ehgpan5n.js → guardrail-log-z5pzgkcv.js} +3 -3
- package/dist/cli/{guardrail-reset-q7m265wy.js → guardrail-reset-w0nxcs6a.js} +26 -26
- package/dist/cli/{hive-promoter-857ranjf.js → hive-promoter-3q0738xg.js} +26 -26
- package/dist/cli/{index-66b4f2qd.js → index-0an54fza.js} +3 -3
- package/dist/cli/{index-mamw83wm.js → index-0g0x9ets.js} +26 -26
- package/dist/cli/{index-vm3j8fvn.js → index-2n7a184b.js} +2 -2
- package/dist/cli/{index-8c6zshfj.js → index-2vj8d8te.js} +1 -1
- package/dist/cli/{index-fbn2mv67.js → index-5k88v1e7.js} +76 -31
- package/dist/cli/{index-06sj5bjh.js → index-814q5t5s.js} +1 -1
- package/dist/cli/{index-vqknke9n.js → index-8g9rn3rp.js} +5 -5
- package/dist/cli/{index-60m7qnds.js → index-aj41bscz.js} +3 -3
- package/dist/cli/{index-ev46f132.js → index-bnbhqvsn.js} +1 -1
- package/dist/cli/{index-rnm6c33a.js → index-bv9tqmpm.js} +1 -1
- package/dist/cli/{index-4dvqvn4k.js → index-ce6qarfq.js} +179 -75
- package/dist/cli/{index-ffm3d4cn.js → index-gkvk9et2.js} +3 -3
- package/dist/cli/{index-tm6nwe43.js → index-h1chaf63.js} +5 -5
- package/dist/cli/{index-r3wyt8za.js → index-hhzwfyd7.js} +1 -1
- package/dist/cli/{index-bt3pxs7r.js → index-jt9j02tm.js} +1 -1
- package/dist/cli/{index-6ehx0pj4.js → index-ke881z7m.js} +2 -2
- package/dist/cli/{index-3h5ztpn5.js → index-krjamprc.js} +2 -2
- package/dist/cli/{index-gsnj3a0h.js → index-kzr3nby8.js} +2 -2
- package/dist/cli/{index-ww5ne0g6.js → index-mq4eyhtf.js} +1 -1
- package/dist/cli/{index-c34tgnwm.js → index-njg8zvqe.js} +3 -3
- package/dist/cli/{index-2dey2mtg.js → index-nnc23ddw.js} +3 -3
- package/dist/cli/{index-43zgg04r.js → index-nzhfhpng.js} +1 -1
- package/dist/cli/{index-vajbtn3v.js → index-qdz6zysj.js} +4 -4
- package/dist/cli/{index-xkavxqf2.js → index-r097ettz.js} +1 -1
- package/dist/cli/{index-6e7jxxys.js → index-ra3erqpk.js} +2 -2
- package/dist/cli/{index-mx34b7bm.js → index-ssp4t8g6.js} +28 -28
- package/dist/cli/{index-h9qhy8r6.js → index-ve74c3a8.js} +6 -6
- package/dist/cli/{index-ywwazz81.js → index-x8sh8v4a.js} +1 -1
- package/dist/cli/{index-zmp1k0mb.js → index-xht6gprr.js} +35 -22
- package/dist/cli/{index-kxxy7zq4.js → index-yn6jrxen.js} +3 -3
- package/dist/cli/{index-nv8tx9v4.js → index-yq73sd3w.js} +1 -1
- package/dist/cli/index.js +27 -27
- package/dist/cli/{knowledge-escalator-6p7m6gkc.js → knowledge-escalator-2e92rdsx.js} +7 -7
- package/dist/cli/{knowledge-events-w3ep12sq.js → knowledge-events-gzqwr94e.js} +5 -5
- package/dist/cli/{knowledge-store-g4cpw0hz.js → knowledge-store-6j8d1gm4.js} +1 -1
- package/dist/cli/{knowledge-validator-zhy6mgxv.js → knowledge-validator-wt2tcfg7.js} +2 -2
- package/dist/cli/{mcp-j1dy60mx.js → mcp-ky6xn6ys.js} +1 -1
- package/dist/cli/{model-preflight-962y2z1d.js → model-preflight-ajt55s59.js} +26 -26
- package/dist/cli/{pending-delegations-erjwa1y6.js → pending-delegations-wry31649.js} +2 -2
- package/dist/cli/{pr-subscriptions-7fcawjg9.js → pr-subscriptions-dsdjbfr4.js} +1 -1
- package/dist/cli/{pr-workflow-gate-j8ee9c6g.js → pr-workflow-gate-0vcq1m95.js} +26 -26
- package/dist/cli/{scan-cursor-msz8j44s.js → scan-cursor-1zgrg7kp.js} +2 -2
- package/dist/cli/{schema-kep9t01t.js → schema-q9xbwkec.js} +1 -1
- package/dist/cli/{scope-persistence-tx71g0ac.js → scope-persistence-4wwmytwh.js} +5 -5
- package/dist/cli/{server-6enk6sfw.js → server-q8ydxk7z.js} +35 -26
- package/dist/cli/{skill-generator-p9fkx1g3.js → skill-generator-b1eqcxej.js} +8 -8
- package/dist/cli/{snapshot-coordination-init-kgftbdmq.js → snapshot-coordination-init-0yva5015.js} +26 -26
- package/dist/cli/{speckit-checkoff-jfdwsy5n.js → speckit-checkoff-sh9w7j5b.js} +3 -3
- package/dist/cli/{workflow-wal-file-xvvwcxr1.js → workflow-wal-file-a2c8e920.js} +2 -2
- package/dist/cli/{worktree-collision-ownership-hac3t2xv.js → worktree-collision-ownership-xr6crt8c.js} +2 -2
- package/dist/cli/{worktree-isolation-tjvxcsr9.js → worktree-isolation-0126b5e7.js} +26 -26
- package/dist/hooks/delegation-gate.d.ts +6 -0
- package/dist/hooks/guardrails/audit-log.d.ts +2 -0
- package/dist/hooks/guardrails/cmd-delete-grammar.d.ts +47 -0
- package/dist/hooks/guardrails/destructive-command.d.ts +11 -3
- package/dist/hooks/guardrails/shell-audit-store.d.ts +2 -0
- package/dist/hooks/guardrails/tool-before.d.ts +16 -0
- package/dist/index.js +17 -17
- package/package.json +1 -1
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
readWorkflowWalFile,
|
|
5
5
|
readWorkflowWalFileSync,
|
|
6
6
|
writeWorkflowWalFile
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-hhzwfyd7.js";
|
|
8
|
+
import"./index-2n7a184b.js";
|
|
9
9
|
import"./index-spggmr30.js";
|
|
10
10
|
import"./index-001tkp0j.js";
|
|
11
11
|
import"./index-9rwhas09.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
scanDelegationFallbacksForRecovery,
|
|
12
12
|
scanDelegationsForRecovery
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-0an54fza.js";
|
|
14
14
|
import"./index-tggyracy.js";
|
|
15
15
|
import {
|
|
16
16
|
scanWorktreeMergeFailuresForRecovery
|
|
@@ -22,7 +22,7 @@ import"./index-rdm3px0g.js";
|
|
|
22
22
|
import"./index-rjsqf4hv.js";
|
|
23
23
|
import"./index-7pmbnjvj.js";
|
|
24
24
|
import"./index-8xtdxy91.js";
|
|
25
|
-
import"./index-
|
|
25
|
+
import"./index-qdz6zysj.js";
|
|
26
26
|
import"./index-vzm6zre7.js";
|
|
27
27
|
import"./index-ae75rja9.js";
|
|
28
28
|
import"./index-erp7fk72.js";
|
|
@@ -25,37 +25,37 @@ import {
|
|
|
25
25
|
sanitizeWorktreeTaskId,
|
|
26
26
|
standardWorktreeByCallID,
|
|
27
27
|
standardWorktreeSerializationSessions
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-ce6qarfq.js";
|
|
29
29
|
import"./index-ckq78kq1.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
30
|
+
import"./index-5k88v1e7.js";
|
|
31
|
+
import"./index-yn6jrxen.js";
|
|
32
|
+
import"./index-x8sh8v4a.js";
|
|
33
33
|
import"./index-vx1j2t5p.js";
|
|
34
34
|
import"./index-txdagbh7.js";
|
|
35
35
|
import"./index-axqyjreb.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
import"./index-aj41bscz.js";
|
|
37
|
+
import"./index-ve74c3a8.js";
|
|
38
|
+
import"./index-jt9j02tm.js";
|
|
39
39
|
import"./index-rdec0y3z.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
40
|
+
import"./index-bv9tqmpm.js";
|
|
41
|
+
import"./index-8g9rn3rp.js";
|
|
42
|
+
import"./index-r097ettz.js";
|
|
43
43
|
import"./index-rpvp88js.js";
|
|
44
44
|
import"./index-kd1n3ne2.js";
|
|
45
45
|
import"./index-x5jwegqw.js";
|
|
46
46
|
import"./index-w0afnznk.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
47
|
+
import"./index-0an54fza.js";
|
|
48
|
+
import"./index-bnbhqvsn.js";
|
|
49
49
|
import"./index-tggyracy.js";
|
|
50
50
|
import"./index-pt7h91zc.js";
|
|
51
51
|
import"./index-q7sjgr1y.js";
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
52
|
+
import"./index-gkvk9et2.js";
|
|
53
|
+
import"./index-h1chaf63.js";
|
|
54
54
|
import"./index-6b295cas.js";
|
|
55
55
|
import"./index-9nyqt3kb.js";
|
|
56
|
-
import"./index-
|
|
56
|
+
import"./index-nnc23ddw.js";
|
|
57
57
|
import"./index-697mg68b.js";
|
|
58
|
-
import"./index-
|
|
58
|
+
import"./index-ra3erqpk.js";
|
|
59
59
|
import"./index-rck7v4r4.js";
|
|
60
60
|
import"./index-ck7jpn0y.js";
|
|
61
61
|
import"./index-ry16d01s.js";
|
|
@@ -63,29 +63,29 @@ import"./index-rdm3px0g.js";
|
|
|
63
63
|
import"./index-dp6hy23p.js";
|
|
64
64
|
import"./index-rjsqf4hv.js";
|
|
65
65
|
import"./index-7pmbnjvj.js";
|
|
66
|
-
import"./index-
|
|
67
|
-
import"./index-
|
|
68
|
-
import"./index-
|
|
66
|
+
import"./index-nzhfhpng.js";
|
|
67
|
+
import"./index-kzr3nby8.js";
|
|
68
|
+
import"./index-ke881z7m.js";
|
|
69
69
|
import"./index-m9zzj4ee.js";
|
|
70
70
|
import"./index-8xtdxy91.js";
|
|
71
|
-
import"./index-
|
|
71
|
+
import"./index-yq73sd3w.js";
|
|
72
72
|
import"./index-qyj4383m.js";
|
|
73
73
|
import"./index-rtry5xyf.js";
|
|
74
|
-
import"./index-
|
|
74
|
+
import"./index-qdz6zysj.js";
|
|
75
75
|
import"./index-vzm6zre7.js";
|
|
76
76
|
import"./index-ae75rja9.js";
|
|
77
77
|
import"./index-erp7fk72.js";
|
|
78
78
|
import {
|
|
79
79
|
resolveWorktreeIsolationConfig
|
|
80
|
-
} from "./index-
|
|
80
|
+
} from "./index-krjamprc.js";
|
|
81
81
|
import"./index-g22dps7x.js";
|
|
82
82
|
import"./index-0725jpp7.js";
|
|
83
83
|
import"./index-3t46mez1.js";
|
|
84
|
-
import"./index-
|
|
85
|
-
import"./index-
|
|
84
|
+
import"./index-mq4eyhtf.js";
|
|
85
|
+
import"./index-814q5t5s.js";
|
|
86
86
|
import"./index-bk5tah7q.js";
|
|
87
|
-
import"./index-
|
|
88
|
-
import"./index-
|
|
87
|
+
import"./index-hhzwfyd7.js";
|
|
88
|
+
import"./index-2n7a184b.js";
|
|
89
89
|
import"./index-spggmr30.js";
|
|
90
90
|
import"./index-001tkp0j.js";
|
|
91
91
|
import"./index-9rwhas09.js";
|
|
@@ -534,6 +534,12 @@ declare function resolveEvidenceTaskId(args: Record<string, unknown> | undefined
|
|
|
534
534
|
*/
|
|
535
535
|
export declare const _internals: {
|
|
536
536
|
isEpicOpenForProject: typeof isEpicOpenForProject;
|
|
537
|
+
/**
|
|
538
|
+
* #3502 review (PRR-007): set by createDelegationGateHook so tests can
|
|
539
|
+
* observe the settlement-side invalidation gate for a specific hook
|
|
540
|
+
* instance (did THIS dispatch's route persist fail for this task?).
|
|
541
|
+
*/
|
|
542
|
+
routeInvalidationProbe: ((callID: string, sessionId: string, taskId: string) => boolean) | null;
|
|
537
543
|
/** Epic v2 C4: wave-only coder admission + the wave's parallel/isolation policy. */
|
|
538
544
|
resolveEpicDispatchPolicy: typeof resolveEpicDispatchPolicy;
|
|
539
545
|
resolveEpicPrFeedbackConflict: typeof resolveEpicPrFeedbackConflict;
|
|
@@ -64,6 +64,8 @@ export interface ScopeViolationDecision {
|
|
|
64
64
|
declaredScope: string;
|
|
65
65
|
resolvedScope: string;
|
|
66
66
|
action: string;
|
|
67
|
+
/** Shell write operator that tripped the gate (issue #3495 item 4). */
|
|
68
|
+
operator?: string;
|
|
67
69
|
}
|
|
68
70
|
export interface DestructiveBlockDecision {
|
|
69
71
|
type: 'destructive_block';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* cmd.exe rd/rmdir/del recursion-switch grammar (leaf module — no local
|
|
3
|
+
* imports: both the destructive guard (guardrails/destructive-command.ts)
|
|
4
|
+
* and the shell-write detector (shell-write-detect.ts) consume it, and
|
|
5
|
+
* destructive-command already imports from shell-write-detect, so hosting
|
|
6
|
+
* the grammar in either would create a cycle).
|
|
7
|
+
*
|
|
8
|
+
* Modeled from executed cmd.exe ground truth (PR #3499 review round):
|
|
9
|
+
* - cmd scans each UNQUOTED argument for the FIRST `/` — everything from it
|
|
10
|
+
* to the end of the token is switch text; the text before it is the path.
|
|
11
|
+
* `rd zzz/s` therefore deletes `zzz` recursively (`rd zzz /s`), and so do
|
|
12
|
+
* `rd ../s` and `rd ./s`.
|
|
13
|
+
* - A fully double-quoted token is a path; cmd does not scan it for
|
|
14
|
+
* switches (`rd "/s" x` does not recurse — `"/s"` is a path).
|
|
15
|
+
* - Single quotes are NOT quotes for cmd (`rd 'zzz/s'` splits at the slash).
|
|
16
|
+
* - `^/` caret escapes decode to `/` (normalized by dcNormalizeCommand).
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Whether slash-separated switch TEXT (the characters after the first
|
|
20
|
+
* unquoted `/` of a cmd.exe argument) parses as a switch cluster: every
|
|
21
|
+
* slash-separated segment is 1–2 ASCII letters — `s`, `S`, `q`, `s/q`,
|
|
22
|
+
* `sq`, `qs`. Multi-letter segments never qualify: `share` and
|
|
23
|
+
* `src/old` are not switch names (real cmd.exe rejects `rd a/share/b` with
|
|
24
|
+
* "Parameter format not correct" — nothing is deletable, so the argument is
|
|
25
|
+
* a plain path operand, and on POSIX it stays an ordinary nested path).
|
|
26
|
+
*/
|
|
27
|
+
export declare function dcIsSwitchClusterText(text: string): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Parse the argument text of a cmd.exe rd/rmdir/del command for the
|
|
30
|
+
* recursion switch and its deletion targets.
|
|
31
|
+
*
|
|
32
|
+
* - Leading `/` with valid switch letters: pure switch token; a quoted span
|
|
33
|
+
* glued after the letters (`/s"file.txt"`) is the deletion target.
|
|
34
|
+
* - `/` at index > 0 with valid switch letters containing `s`: the command
|
|
35
|
+
* recurses over the path prefix (`rd zzz/s` → target `zzz`).
|
|
36
|
+
* - Invalid switch text (`a/share/b` → cmd errors "Parameter format not
|
|
37
|
+
* correct"): nothing is deletable; the token is a plain path operand and
|
|
38
|
+
* never fires — on POSIX executors it stays an ordinary nested path.
|
|
39
|
+
* - A fully double-quoted token is a path operand, never a switch.
|
|
40
|
+
*
|
|
41
|
+
* Returns `fires` (the recursion switch is present) and the deletion
|
|
42
|
+
* targets to evaluate when it fires.
|
|
43
|
+
*/
|
|
44
|
+
export declare function dcParseWindowsRecursiveDelete(args: string): {
|
|
45
|
+
fires: boolean;
|
|
46
|
+
targets: string[];
|
|
47
|
+
};
|
|
@@ -136,11 +136,19 @@ export declare function dcEvaluateRecursiveDeleteTargets(input: {
|
|
|
136
136
|
* ln -s <target> <link> (when target is outside cwd)
|
|
137
137
|
*/
|
|
138
138
|
export declare function dcCheckJunctionCreation(segment: string, cwd: string): string | null;
|
|
139
|
+
export { dcIsSwitchClusterText, dcParseWindowsRecursiveDelete, } from './cmd-delete-grammar';
|
|
139
140
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
141
|
+
* Whether a whitespace-delimited cmd.exe argument behaves like a switch
|
|
142
|
+
* cluster (issue #3495): a leading `/` followed by switch text where EVERY
|
|
143
|
+
* slash-separated segment is 1–2 ASCII letters — `/s`, `/S`, `/q`, `/s/q`,
|
|
144
|
+
* `/sq`, `/qs`. Path-like tokens never qualify: `/share` and `/src/old`
|
|
145
|
+
* carry multi-letter segments, and a quoted token (`"/s"`, `"a/share/b"`)
|
|
146
|
+
* does not start with `/`. Verified against real cmd.exe: a quoted `"/s"`
|
|
147
|
+
* is treated as a path, and `/sq` is rejected by cmd itself ("Parameter
|
|
148
|
+
* format not correct"), so classifying these clusters as switches is at
|
|
149
|
+
* worst fail-closed parity. Grammar text lives in ./cmd-delete-grammar.
|
|
142
150
|
*/
|
|
143
|
-
export declare function
|
|
151
|
+
export declare function dcIsWindowsSwitchCluster(token: string): boolean;
|
|
144
152
|
/**
|
|
145
153
|
* Extract candidate target paths from a destructive PowerShell command.
|
|
146
154
|
* Handles both `Remove-Item <path> -Recurse` and `Remove-Item -Recurse <path>` orderings.
|
|
@@ -73,6 +73,8 @@ export interface ShellAuditLimits {
|
|
|
73
73
|
maxCommandChars: number;
|
|
74
74
|
/** Free-text (reason) truncation bound applied at line-shaping time. */
|
|
75
75
|
maxReasonChars: number;
|
|
76
|
+
/** Path truncation bound applied at line-shaping time (issue #3495). */
|
|
77
|
+
maxPathChars: number;
|
|
76
78
|
/**
|
|
77
79
|
* Hard bound on any single whole-file store read. A legacy header-less
|
|
78
80
|
* file larger than this migrates through the bounded STREAMING reader
|
|
@@ -63,6 +63,22 @@ export interface ToolBeforeContext {
|
|
|
63
63
|
}
|
|
64
64
|
/** @internal test seam */
|
|
65
65
|
export declare function _resetSandboxUnavailableWarningState(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Structured denial from the shell write-scope gate (issue #3495). The
|
|
68
|
+
* message stays the operator-facing contract; these fields carry the
|
|
69
|
+
* structured facts the audit row needs (resolved target + write operator) so
|
|
70
|
+
* the toolBefore catch never re-parses human-readable text to recover them.
|
|
71
|
+
* Either field may be absent when the denial site does not know it (e.g. the
|
|
72
|
+
* dynamic-path denial has an operator but no resolvable target).
|
|
73
|
+
*/
|
|
74
|
+
export declare class ShellWriteBlockedError extends Error {
|
|
75
|
+
readonly writeTarget?: string;
|
|
76
|
+
readonly writeOperator?: string;
|
|
77
|
+
constructor(message: string, details?: {
|
|
78
|
+
writeTarget?: string;
|
|
79
|
+
writeOperator?: string;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
66
82
|
/**
|
|
67
83
|
* Whether the executor that will run a bare `rmdir` has POSIX rmdir(2)
|
|
68
84
|
* semantics, the only basis for the empty-directory-removal exemption. Under
|