opencode-swarm 7.152.0 → 7.153.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/swarm-pr-review/SKILL.md +10 -10
- package/.opencode/skills/{resume → swarm-resume}/SKILL.md +1 -1
- package/dist/cli/{capability-probe-va4kk8vg.js → capability-probe-5wa7mcp6.js} +3 -2
- package/dist/cli/{config-doctor-4hctd61b.js → config-doctor-7s7xga6f.js} +3 -3
- package/dist/cli/{core-ea8xgnwy.js → core-vkpy14vv.js} +2 -2
- package/dist/cli/{curation-policy-vb2f0vm7.js → curation-policy-xy7tm4ad.js} +4 -4
- package/dist/cli/{curator-krg3abzq.js → curator-6freqnhf.js} +25 -26
- package/dist/cli/{curator-llm-factory-6xnnfpt4.js → curator-llm-factory-q5cjk7mt.js} +25 -26
- package/dist/cli/{evidence-summary-service-dtjr30pg.js → evidence-summary-service-engtgjww.js} +11 -11
- package/dist/cli/{gate-evidence-msnd1tda.js → gate-evidence-6bzzz8kq.js} +5 -5
- package/dist/cli/{guardrail-explain-nbgds0g0.js → guardrail-explain-vsck39dh.js} +26 -27
- package/dist/cli/{guardrail-log-emgfqa5s.js → guardrail-log-0dn8m3k6.js} +4 -4
- package/dist/cli/{guardrail-reset-95jhw7rg.js → guardrail-reset-6e2vyfn9.js} +25 -26
- package/dist/cli/{hive-promoter-ch6h94j3.js → hive-promoter-021abs6z.js} +25 -26
- package/dist/cli/{index-kca6ng28.js → index-0n7nm9e8.js} +1 -1
- package/dist/cli/{index-r0bwks42.js → index-1yfpw7w0.js} +1 -1
- package/dist/cli/{index-h9tcawtm.js → index-3z2f1cy8.js} +54 -11
- package/dist/cli/{index-cgfjvkps.js → index-3z5jtyan.js} +15 -7
- package/dist/cli/{index-85gkedsf.js → index-4fwbbad3.js} +521 -15
- package/dist/cli/{index-rqc83msp.js → index-4gn111h3.js} +5 -5
- package/dist/cli/{index-trj11few.js → index-5w915x8b.js} +4 -4
- package/dist/cli/{index-dsg5aqtj.js → index-5x67858f.js} +3 -3
- package/dist/cli/{index-nwpbfh8x.js → index-6v77adf7.js} +84 -23
- package/dist/cli/{index-qdnj3nwt.js → index-77xy577c.js} +6 -6
- package/dist/cli/{index-h6tvj6nr.js → index-7q56f3se.js} +2 -2
- package/dist/cli/{index-fk3msss3.js → index-80ekaf5b.js} +1 -1
- package/dist/cli/{index-9hc6ytb1.js → index-95qra69h.js} +3827 -2019
- package/dist/cli/{index-ek6t1e9h.js → index-9gjbe4e4.js} +1 -1
- package/dist/cli/{index-1hbmy0ny.js → index-9vdh4kdx.js} +22 -150
- package/dist/cli/{index-8nzqtv6b.js → index-babtfqa0.js} +2 -2
- package/dist/cli/{index-ngzc8db3.js → index-dh1gk5c5.js} +29 -28
- package/dist/cli/{index-7afvf50d.js → index-e2hs0bh7.js} +1 -1
- package/dist/cli/{index-n1j0cmj3.js → index-eajfs7v4.js} +2 -2
- package/dist/cli/{index-19tznm6x.js → index-eqh3t8eh.js} +6 -6
- package/dist/cli/{index-cxt62pxj.js → index-g0m6kypc.js} +1 -1
- package/dist/cli/{index-n8yastrw.js → index-hexhzq5j.js} +4 -4
- package/dist/cli/{index-93rgk3ax.js → index-hkmgzesw.js} +3 -3
- package/dist/cli/{index-dc7hh4d9.js → index-hw49515c.js} +2 -2
- package/dist/cli/{index-30gf3exm.js → index-k2ydsqs7.js} +3 -3
- package/dist/cli/{index-cpg98bh1.js → index-myt57pht.js} +1 -1
- package/dist/cli/{index-5th6khpe.js → index-qgfnd206.js} +1 -1
- package/dist/cli/{index-s85abenr.js → index-x6zy6veh.js} +1 -1
- package/dist/cli/{index-sgdqbhkv.js → index-xv881ahz.js} +5 -5
- package/dist/cli/index.js +25 -26
- package/dist/cli/{knowledge-escalator-n4nx4veq.js → knowledge-escalator-79zbhpz5.js} +10 -10
- package/dist/cli/{knowledge-events-t77r3zhe.js → knowledge-events-79cak7eb.js} +8 -8
- package/dist/cli/{knowledge-link-r6hfj2ep.js → knowledge-link-40zsr5ja.js} +3 -3
- package/dist/cli/{knowledge-store-w1v0041d.js → knowledge-store-w29aw5w0.js} +4 -4
- package/dist/cli/{knowledge-validator-6fcx0xdb.js → knowledge-validator-qsecnt2d.js} +6 -6
- package/dist/cli/{model-preflight-7ea00h34.js → model-preflight-b95w8wxy.js} +1 -1
- package/dist/cli/{runner-cmvgkbtp.js → runner-fbgsxs74.js} +4 -4
- package/dist/cli/{scan-cursor-936pmv37.js → scan-cursor-1r3pcdqp.js} +5 -5
- package/dist/cli/{schema-exk5afyz.js → schema-19qsv6fw.js} +2 -2
- package/dist/cli/{scope-persistence-0ddz95ke.js → scope-persistence-ypcrvqtt.js} +6 -6
- package/dist/cli/{skill-generator-qk0mf7da.js → skill-generator-wpp9kpa0.js} +12 -12
- package/dist/cli/{worktree-isolation-2jvaebns.js → worktree-isolation-wcry8qnn.js} +25 -26
- package/dist/commands/approve-write.d.ts +1 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/registry.d.ts +7 -0
- package/dist/config/bundled-skills.d.ts +10 -1
- package/dist/config/schema.d.ts +39 -4
- package/dist/consensus/contracts.d.ts +14 -0
- package/dist/hooks/full-auto-permission.d.ts +7 -0
- package/dist/hooks/guardrails/index.d.ts +2 -1
- package/dist/hooks/guardrails/tool-before.d.ts +4 -0
- package/dist/hooks/pr-workflow-gate.d.ts +12 -0
- package/dist/hooks/scope-guard.d.ts +1 -3
- package/dist/index.js +626 -608
- package/dist/learning/provenance.d.ts +9 -0
- package/dist/sandbox/capability-probe.d.ts +40 -1
- package/dist/sandbox/executor.d.ts +26 -1
- package/dist/sandbox/linux/bubblewrap-executor.d.ts +3 -1
- package/dist/sandbox/macos/sandbox-exec-executor.d.ts +3 -1
- package/dist/sandbox/skip-state.d.ts +24 -0
- package/dist/sandbox/win32/native-sandbox-executor.d.ts +5 -1
- package/dist/security/command-classifier.d.ts +22 -0
- package/dist/security/protected-input-integrity.d.ts +19 -0
- package/dist/security/protected-path-policy.d.ts +9 -0
- package/dist/security/write-authority.d.ts +46 -0
- package/dist/services/diagnose-service.d.ts +1 -1
- package/dist/services/skill-generator.d.ts +2 -0
- package/dist/services/skill-improver.d.ts +69 -0
- package/dist/tools/dispatch-lanes.d.ts +47 -0
- package/dist/tools/repo-graph/query.d.ts +2 -1
- package/dist/tools/repo-graph/types.d.ts +64 -0
- package/dist/tools/repo-graph.d.ts +1 -1
- package/dist/tools/skill-improve.d.ts +7 -0
- package/package.json +2 -2
- package/dist/cli/index-3g0xk6tk.js +0 -219
|
@@ -38,6 +38,8 @@ export interface ToolBeforeContext {
|
|
|
38
38
|
worktreeBaseDirOverrides?: string[];
|
|
39
39
|
/** Sandbox executor getter seam for tests and platform-specific overrides. */
|
|
40
40
|
getSandboxExecutor: typeof import('../../sandbox/executor').getExecutor;
|
|
41
|
+
/** Sandbox capability assessment seam for deterministic cross-platform tests. */
|
|
42
|
+
assessSandboxEnforcement: typeof import('../../sandbox/executor').assessSandboxEnforcement;
|
|
41
43
|
/** Hold exact child-write provenance until the matching after-hook succeeds. */
|
|
42
44
|
rememberReviewerScopeWrite?: (input: {
|
|
43
45
|
callID: string;
|
|
@@ -49,6 +51,8 @@ export interface ToolBeforeContext {
|
|
|
49
51
|
/** Snapshot an exact authorized write for success-only lease renewal. */
|
|
50
52
|
rememberScopeLeaseCandidate?: (input: ScopeLeaseCandidateInput) => void;
|
|
51
53
|
}
|
|
54
|
+
/** @internal test seam */
|
|
55
|
+
export declare function _resetSandboxUnavailableWarningState(): void;
|
|
52
56
|
/**
|
|
53
57
|
* Creates a toolBefore handler with the given shared context.
|
|
54
58
|
*
|
|
@@ -784,6 +784,8 @@ export declare class PrReviewResilienceRetryExhaustedError extends Error {
|
|
|
784
784
|
readonly code: "PR_REVIEW_RESILIENCE_RETRY_EXHAUSTED";
|
|
785
785
|
constructor(message: string);
|
|
786
786
|
}
|
|
787
|
+
declare function snapshotPrReviewResiliencePolicy(policy?: PrReviewResilienceConfig): PrReviewResiliencePolicyRecord;
|
|
788
|
+
declare function effectivePrReviewResiliencePolicy(state: PrWorkflowGateState, requestedPolicy?: PrReviewResilienceConfig): PrReviewResiliencePolicyRecord;
|
|
787
789
|
declare function classifyTerminalFailureSignature(record: BackgroundDelegationRecord): string | null;
|
|
788
790
|
interface EnforcePrReviewBaseDimensionsOptions {
|
|
789
791
|
batchId: string;
|
|
@@ -969,6 +971,16 @@ export declare const _test_exports: {
|
|
|
969
971
|
* shortening the threshold, not by waiting minutes.
|
|
970
972
|
*/
|
|
971
973
|
pendingLaneLivenessThresholdMs: number;
|
|
974
|
+
/**
|
|
975
|
+
* Issue #2381: exposed so the staged-resilience DEFAULT can be pinned
|
|
976
|
+
* directly. This resolution path is reached whenever a gate state carries no
|
|
977
|
+
* recorded policy and no policy is supplied, and it previously hardcoded
|
|
978
|
+
* `enabled: true`; the default flip is only real if this agrees with
|
|
979
|
+
* `DEFAULT_PR_REVIEW_RESILIENCE_CONFIG`. Pure functions of their arguments,
|
|
980
|
+
* so `_test_exports` is the right seam (no `mock.module` needed).
|
|
981
|
+
*/
|
|
982
|
+
effectivePrReviewResiliencePolicy: typeof effectivePrReviewResiliencePolicy;
|
|
983
|
+
snapshotPrReviewResiliencePolicy: typeof snapshotPrReviewResiliencePolicy;
|
|
972
984
|
resolveCurrentGitHead: typeof resolveCurrentGitHead;
|
|
973
985
|
resolveCurrentGitHeadAsync: typeof resolveCurrentGitHeadAsync;
|
|
974
986
|
resolveCurrentUpstreamPushTarget: typeof resolveCurrentUpstreamPushTarget;
|
|
@@ -19,12 +19,10 @@ import { resolveWriteTargets } from './write-target-resolver';
|
|
|
19
19
|
export interface ScopeGuardConfig {
|
|
20
20
|
/** Whether scope guard is enabled (default: true) */
|
|
21
21
|
enabled: boolean;
|
|
22
|
-
/** Whether to skip in turbo mode (default: false — NOT skippable by design) */
|
|
23
|
-
skip_in_turbo: boolean;
|
|
24
22
|
}
|
|
25
23
|
/**
|
|
26
24
|
* Creates the scope-guard hook that blocks out-of-scope writes.
|
|
27
|
-
* @param config - ScopeGuardConfig
|
|
25
|
+
* @param config - ScopeGuardConfig. Scope enforcement is never skipped in Turbo.
|
|
28
26
|
* @param fallbackDirectory - The plugin-root directory (`ctx.directory`). Used
|
|
29
27
|
* ONLY as the fallback for sessions with no recorded workspace root. Issue
|
|
30
28
|
* #2002: this hook is constructed once per plugin instance and serves every
|