opencode-swarm 7.166.0 → 7.166.1
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/{coder-settlement-ydg2jfrk.js → coder-settlement-x0h3h6vd.js} +8 -8
- package/dist/cli/{config-doctor-drqx6tzc.js → config-doctor-pjcjeh8f.js} +5 -5
- package/dist/cli/{core-x6sftfwt.js → core-v11pd1yk.js} +4 -4
- package/dist/cli/{curator-drift-2vwtkegg.js → curator-drift-jpdfwae9.js} +3 -3
- package/dist/cli/{curator-llm-factory-7znajprp.js → curator-llm-factory-da5q3gg6.js} +26 -26
- package/dist/cli/{curator-kg2h8jjf.js → curator-ssvd7evd.js} +26 -26
- package/dist/cli/{dispatch-c7xjt7js.js → dispatch-591v13pp.js} +3 -3
- package/dist/cli/{evidence-summary-service-ry5ebnmq.js → evidence-summary-service-mw6tnsp9.js} +10 -10
- package/dist/cli/{gate-evidence-qgeceqy8.js → gate-evidence-jymaxb82.js} +6 -6
- package/dist/cli/{guardrail-explain-jdv4n2j3.js → guardrail-explain-eva1yrtf.js} +27 -27
- package/dist/cli/{guardrail-log-s7c3rpde.js → guardrail-log-kzq2sktb.js} +6 -6
- package/dist/cli/{guardrail-reset-4nmy7xas.js → guardrail-reset-ea1g3g7d.js} +26 -26
- package/dist/cli/{hive-promoter-w5tsgttc.js → hive-promoter-ghjbgsms.js} +26 -26
- package/dist/cli/{index-hrkamw9q.js → index-066xxa4q.js} +3 -3
- package/dist/cli/{index-qkq56zyr.js → index-0g5v4s0x.js} +59 -8
- package/dist/cli/{index-a0d4fp6r.js → index-0tc0pcmh.js} +1 -1
- package/dist/cli/{index-359djbj1.js → index-13egyjgv.js} +5 -5
- package/dist/cli/{index-8bdk7124.js → index-1zqf2pny.js} +1 -1
- package/dist/cli/{index-8d90gzaz.js → index-2sqgbmtq.js} +1 -1
- package/dist/cli/{index-30f4fe30.js → index-2y4kargd.js} +1 -1
- package/dist/cli/{index-an89qzd9.js → index-399nq780.js} +522 -636
- package/dist/cli/{index-ejf6w8vw.js → index-3tyym20r.js} +2 -2
- package/dist/cli/{index-mg43w8p2.js → index-52xdezsh.js} +12 -3
- package/dist/cli/{index-a5w71m8f.js → index-6rff2h8x.js} +1 -1
- package/dist/cli/{index-p04pa9c9.js → index-8fr2wn18.js} +2 -2
- package/dist/cli/{index-anxs69ad.js → index-bfr392e7.js} +1 -1
- package/dist/cli/{index-fywshabz.js → index-bkd3450m.js} +4 -4
- package/dist/cli/{index-289epdpc.js → index-crjx4sx0.js} +28 -28
- package/dist/cli/{index-z6xqpmqg.js → index-ee6ydtfe.js} +1 -1
- package/dist/cli/{index-2rm5x9ps.js → index-fc1dqzjp.js} +2 -2
- package/dist/cli/{index-4mpdy32j.js → index-gerkwyrr.js} +1 -1
- package/dist/cli/{index-9hy5q7gp.js → index-gr8ppbq3.js} +2 -2
- package/dist/cli/{index-rkn17q5e.js → index-j29nkq5d.js} +5 -5
- package/dist/cli/{index-2dvk153d.js → index-k5w284js.js} +5 -5
- package/dist/cli/{index-apxaa755.js → index-nph5g4em.js} +3 -3
- package/dist/cli/{index-52jfm5s0.js → index-w11whwn3.js} +2 -2
- package/dist/cli/{index-nb924ar6.js → index-wf12wckd.js} +2 -2
- package/dist/cli/{index-czr3jcg6.js → index-xezfx7ge.js} +1 -1
- package/dist/cli/{index-8m12y79g.js → index-xwkn5hse.js} +2 -2
- package/dist/cli/{index-bw7r2b2m.js → index-ybcxvv17.js} +1 -1
- package/dist/cli/{index-8n62bphd.js → index-yt25kpvz.js} +2 -2
- package/dist/cli/{index-jc9cxh90.js → index-zha9bdj9.js} +4 -4
- package/dist/cli/index-zpsr8rpc.js +68 -0
- package/dist/cli/index.js +26 -26
- package/dist/cli/{knowledge-escalator-xdzmr31d.js → knowledge-escalator-3pjed4tq.js} +10 -10
- package/dist/cli/{knowledge-events-1t1t0bv7.js → knowledge-events-a5dwkg30.js} +8 -8
- package/dist/cli/{knowledge-store-m2snb0xg.js → knowledge-store-h85efsak.js} +1 -1
- package/dist/cli/{knowledge-validator-tf7yq2pd.js → knowledge-validator-76qrf1ev.js} +2 -2
- package/dist/cli/{model-preflight-3s1c0zpc.js → model-preflight-b3b5pgsc.js} +2 -2
- package/dist/cli/{pending-delegations-jr8hwxrz.js → pending-delegations-zgwfqfac.js} +5 -5
- package/dist/cli/{pr-subscriptions-ca1xmf9r.js → pr-subscriptions-fzy3ks1k.js} +5 -5
- package/dist/cli/{pr-workflow-gate-fb1dj0zx.js → pr-workflow-gate-1gtsn7f0.js} +26 -26
- package/dist/cli/{scan-cursor-3gdvy0ym.js → scan-cursor-ahwkxa8j.js} +2 -2
- package/dist/cli/{schema-mzb1354k.js → schema-27sedbfk.js} +3 -3
- package/dist/cli/{scope-persistence-c4n21b5n.js → scope-persistence-q792yfxh.js} +7 -7
- package/dist/cli/{skill-generator-dvpvwt8k.js → skill-generator-g8wbjw6v.js} +11 -11
- package/dist/cli/{snapshot-coordination-init-g7v63zcm.js → snapshot-coordination-init-y6spakwm.js} +26 -26
- package/dist/cli/{worktree-collision-ownership-k15qrpy9.js → worktree-collision-ownership-pmpnftkd.js} +6 -6
- package/dist/cli/{worktree-isolation-y7ec1pm5.js → worktree-isolation-4053n0px.js} +26 -26
- package/dist/git/pr.d.ts +4 -2
- package/dist/git/safe-ref.d.ts +51 -0
- package/dist/index.js +154 -154
- package/dist/tools/co-change-analyzer.d.ts +7 -0
- package/dist/tools/gh-evidence.d.ts +15 -8
- package/dist/tools/pkg-audit.d.ts +23 -0
- package/dist/utils/gh-executable.d.ts +106 -0
- package/dist/utils/merge.d.ts +26 -0
- package/package.json +1 -1
- package/dist/cli/index-zjygnfay.js +0 -33
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fail-closed guard for git ref arguments (issue #2476 AC3, source issue
|
|
3
|
+
* #2265).
|
|
4
|
+
*
|
|
5
|
+
* Defect class: a repository- or caller-derived ref interpolated into a git
|
|
6
|
+
* argv position can BEGIN WITH A DASH and be parsed by git as an OPTION. A
|
|
7
|
+
* hostile remote can advertise `refs/heads/--evil` (`git update-ref` bypasses
|
|
8
|
+
* `check-ref-format`; a plain `git clone` propagates it), so `git checkout
|
|
9
|
+
* --evil` exits 129 with "unknown option" and a branch literally named
|
|
10
|
+
* `--force` makes `git checkout --force` SILENTLY DESTRUCTIVE.
|
|
11
|
+
*
|
|
12
|
+
* Guard placement is per-command, settled empirically against git 2.x (see
|
|
13
|
+
* `.agents/issue-traces/2476-harden-trust-boundaries/02-reproduction.md` R3):
|
|
14
|
+
*
|
|
15
|
+
* - `branch -d -- <name>` and `push <remote> -- <refspec>` accept a literal
|
|
16
|
+
* `--` end-of-options separator with IDENTICAL semantics for benign names
|
|
17
|
+
* and fail-closed behavior for hostile ones — those sinks insert `--`.
|
|
18
|
+
* - `checkout`, `checkout -b <new> <start>`, `rev-parse --verify`,
|
|
19
|
+
* `rev-parse --abbrev-ref <b>@{upstream}`, `reset --hard`, `log <range>`,
|
|
20
|
+
* `diff <base> HEAD`, and `branch --merged <target>` REGRESS benign
|
|
21
|
+
* behavior when a leading `--` is inserted (pathspec/malformed-object
|
|
22
|
+
* errors) — those sinks use this validation guard instead.
|
|
23
|
+
*
|
|
24
|
+
* The predicate is deliberately minimal — NOT the full check-ref-format
|
|
25
|
+
* grammar — so `origin/main`, `HEAD`, `feature/x`, SHAs, and each side of an
|
|
26
|
+
* `a..b` range all pass while any dash-leading side is rejected. This mirrors
|
|
27
|
+
* the in-repo validator family (`isSafeGitRef` in ci-simulate.ts,
|
|
28
|
+
* `isSafeGitRevisionToken` in workspace-snapshot.ts, `isSafeGitRefToken` in
|
|
29
|
+
* pr-workflow-gate.ts), which this module centralizes for the src/git sinks.
|
|
30
|
+
*/
|
|
31
|
+
/** Typed, fail-closed rejection of an option-injectable git ref. */
|
|
32
|
+
export declare class UnsafeGitRefError extends Error {
|
|
33
|
+
readonly ref: string;
|
|
34
|
+
readonly context: string;
|
|
35
|
+
constructor(ref: string, context: string);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* True when `value` is safe to interpolate into a git argv ref position:
|
|
39
|
+
* non-empty, and no `..`-separated side starts with "-". Empty/odd `..`
|
|
40
|
+
* sides are deliberately NOT rejected here (a name like `../../x` is not an
|
|
41
|
+
* option-injection risk; git itself rejects it as an invalid ref, and the
|
|
42
|
+
* pre-existing adversarial contract in tests/unit/git/branch.adversarial
|
|
43
|
+
* pins pass-through for those shapes) — only dash-leading sides are.
|
|
44
|
+
*/
|
|
45
|
+
export declare function isSafeGitRefArg(value: string): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Fail-closed form of {@link isSafeGitRefArg}: returns `value` unchanged when
|
|
48
|
+
* safe, throws {@link UnsafeGitRefError} otherwise. `context` names the
|
|
49
|
+
* caller/sink so the error is actionable (e.g. "createBranch checkout").
|
|
50
|
+
*/
|
|
51
|
+
export declare function assertSafeGitRefArg(value: string, context: string): string;
|