opencode-swarm 7.83.0 → 7.84.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/README.md +3 -1
- package/dist/cli/capability-probe-jevmgwmf.js +18 -0
- package/dist/cli/config-doctor-4tcdd9vt.js +35 -0
- package/dist/cli/dispatch-k86d928w.js +477 -0
- package/dist/cli/evidence-summary-service-g2znnd33.js +320 -0
- package/dist/cli/explorer-gz70sm9b.js +16 -0
- package/dist/cli/gate-evidence-y8zn7fe2.js +29 -0
- package/dist/cli/guardrail-explain-tcamcdfy.js +30 -0
- package/dist/cli/guardrail-log-fd14n96q.js +15 -0
- package/dist/cli/index-293f68mj.js +13538 -0
- package/dist/cli/index-8ra2qpk8.js +29027 -0
- package/dist/cli/index-a76rekgs.js +67 -0
- package/dist/cli/index-a82d6d87.js +1241 -0
- package/dist/cli/index-b9v501fr.js +371 -0
- package/dist/cli/index-bcp79s17.js +1673 -0
- package/dist/cli/index-ckntc5gf.js +91 -0
- package/dist/cli/index-d9fbxaqd.js +2314 -0
- package/dist/cli/index-e7h9bb6v.js +233 -0
- package/dist/cli/index-e8pk68cc.js +540 -0
- package/dist/cli/index-eb85wtx9.js +242 -0
- package/dist/cli/index-f8r50m3h.js +14505 -0
- package/dist/cli/index-fjwwrwr5.js +37 -0
- package/dist/cli/index-hz59hg4h.js +452 -0
- package/dist/cli/index-j710h2ge.js +412 -0
- package/dist/cli/index-jfgr5gye.js +110 -0
- package/dist/cli/index-jtqkh8jf.js +119 -0
- package/dist/cli/index-p0arc26j.js +28 -0
- package/dist/cli/index-p0ye10nd.js +222 -0
- package/dist/cli/index-pv2xmc9k.js +2391 -0
- package/dist/cli/index-red8fm8p.js +2914 -0
- package/dist/cli/index-wg3r6acj.js +2042 -0
- package/dist/cli/index-xw0bcy0v.js +583 -0
- package/dist/cli/index-yhsmmv2z.js +339 -0
- package/dist/cli/index-yx44zd0p.js +40 -0
- package/dist/cli/index-zfsbaaqh.js +29 -0
- package/dist/cli/index.js +73 -69708
- package/dist/cli/knowledge-store-n4x6zyk7.js +73 -0
- package/dist/cli/pending-delegations-pz61mrsz.js +255 -0
- package/dist/cli/pr-subscriptions-y1nn36e5.js +33 -0
- package/dist/cli/schema-c2dbzhm8.js +168 -0
- package/dist/cli/skill-generator-a5ehggyg.js +55 -0
- package/dist/cli/task-envelope-qn0qtnh0.js +90 -0
- package/dist/cli/telemetry-9bbyxrvn.js +20 -0
- package/dist/cli/workspace-snapshot-w58jr2ga.js +90 -0
- package/dist/commands/guardrail-explain.d.ts +1 -0
- package/dist/commands/guardrail-log.d.ts +1 -0
- package/dist/commands/index.d.ts +2 -0
- package/dist/commands/registry.d.ts +14 -0
- package/dist/hooks/guardrails/audit-log.d.ts +114 -0
- package/dist/index.js +3569 -2366
- package/dist/services/diagnose-service.d.ts +5 -0
- package/dist/services/guardrail-explain-service.d.ts +42 -0
- package/dist/services/guardrail-log-service.d.ts +10 -0
- package/package.json +2 -2
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { getExecutor } from '../sandbox/executor.js';
|
|
2
|
+
export declare const _internals: {
|
|
3
|
+
detectSandboxCapability: () => Promise<import("../sandbox/capability-probe.js").SandboxCapability>;
|
|
4
|
+
getSandboxExecutor: typeof getExecutor;
|
|
5
|
+
};
|
|
1
6
|
/**
|
|
2
7
|
* A single health check result.
|
|
3
8
|
*/
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type FileZone } from '../context/zone-classifier.js';
|
|
2
|
+
/**
|
|
3
|
+
* Result of dry-run shell analysis.
|
|
4
|
+
*/
|
|
5
|
+
export interface GuardrailShellResult {
|
|
6
|
+
decision: 'allow' | 'block';
|
|
7
|
+
firingRule: string;
|
|
8
|
+
resolvedScope: string;
|
|
9
|
+
writeCategories: string[];
|
|
10
|
+
command: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Result of dry-run write-target analysis for a single path.
|
|
14
|
+
*/
|
|
15
|
+
export interface GuardrailWriteTargetResult {
|
|
16
|
+
path: string;
|
|
17
|
+
decision: 'allow' | 'block';
|
|
18
|
+
firingRule: string;
|
|
19
|
+
resolvedScope: string;
|
|
20
|
+
zone: FileZone;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Top-level result returned by handleGuardrailExplain.
|
|
24
|
+
*/
|
|
25
|
+
export interface GuardrailExplainResult {
|
|
26
|
+
mode: 'shell' | 'write';
|
|
27
|
+
shell?: GuardrailShellResult;
|
|
28
|
+
writeTargets?: GuardrailWriteTargetResult[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Dry-run guardrail explainer — analyzes a shell command or write target
|
|
32
|
+
* WITHOUT executing anything. Returns a markdown report of what the
|
|
33
|
+
* guardrails WOULD do.
|
|
34
|
+
*
|
|
35
|
+
* Arg interface:
|
|
36
|
+
* guardrail explain <command> — shell mode
|
|
37
|
+
* guardrail explain --agent <role> <command> — shell mode with agent override
|
|
38
|
+
* guardrail explain --scope <path> <command> — shell mode with scope override
|
|
39
|
+
* guardrail explain --write <path> — write-target mode
|
|
40
|
+
* guardrail explain --write <p1> --write <p2> — multiple write targets
|
|
41
|
+
*/
|
|
42
|
+
export declare function handleGuardrailExplain(directory: string, args: string[]): Promise<string>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface GuardrailLogEntry {
|
|
2
|
+
ts: string;
|
|
3
|
+
type?: string;
|
|
4
|
+
sessionID: string;
|
|
5
|
+
agent: string;
|
|
6
|
+
tool: string;
|
|
7
|
+
command?: string;
|
|
8
|
+
path?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function handleGuardrailLog(directory: string, args: string[]): Promise<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.84.0",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
],
|
|
68
68
|
"scripts": {
|
|
69
69
|
"clean": "bun -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
70
|
-
"build": "bun run clean && bun run scripts/copy-grammars.ts && bun build src/index.ts --outdir dist --target node --format esm && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external bash-parser && bun run scripts/copy-grammars.ts --to-dist && tsc --emitDeclarationOnly",
|
|
70
|
+
"build": "bun run clean && bun run scripts/copy-grammars.ts && bun build src/index.ts --outdir dist --target node --format esm && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external bash-parser --splitting && bun run scripts/copy-grammars.ts --to-dist && tsc --emitDeclarationOnly",
|
|
71
71
|
"typecheck": "tsc --noEmit",
|
|
72
72
|
"test": "bun test",
|
|
73
73
|
"lint": "biome lint .",
|