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.
Files changed (54) hide show
  1. package/README.md +3 -1
  2. package/dist/cli/capability-probe-jevmgwmf.js +18 -0
  3. package/dist/cli/config-doctor-4tcdd9vt.js +35 -0
  4. package/dist/cli/dispatch-k86d928w.js +477 -0
  5. package/dist/cli/evidence-summary-service-g2znnd33.js +320 -0
  6. package/dist/cli/explorer-gz70sm9b.js +16 -0
  7. package/dist/cli/gate-evidence-y8zn7fe2.js +29 -0
  8. package/dist/cli/guardrail-explain-tcamcdfy.js +30 -0
  9. package/dist/cli/guardrail-log-fd14n96q.js +15 -0
  10. package/dist/cli/index-293f68mj.js +13538 -0
  11. package/dist/cli/index-8ra2qpk8.js +29027 -0
  12. package/dist/cli/index-a76rekgs.js +67 -0
  13. package/dist/cli/index-a82d6d87.js +1241 -0
  14. package/dist/cli/index-b9v501fr.js +371 -0
  15. package/dist/cli/index-bcp79s17.js +1673 -0
  16. package/dist/cli/index-ckntc5gf.js +91 -0
  17. package/dist/cli/index-d9fbxaqd.js +2314 -0
  18. package/dist/cli/index-e7h9bb6v.js +233 -0
  19. package/dist/cli/index-e8pk68cc.js +540 -0
  20. package/dist/cli/index-eb85wtx9.js +242 -0
  21. package/dist/cli/index-f8r50m3h.js +14505 -0
  22. package/dist/cli/index-fjwwrwr5.js +37 -0
  23. package/dist/cli/index-hz59hg4h.js +452 -0
  24. package/dist/cli/index-j710h2ge.js +412 -0
  25. package/dist/cli/index-jfgr5gye.js +110 -0
  26. package/dist/cli/index-jtqkh8jf.js +119 -0
  27. package/dist/cli/index-p0arc26j.js +28 -0
  28. package/dist/cli/index-p0ye10nd.js +222 -0
  29. package/dist/cli/index-pv2xmc9k.js +2391 -0
  30. package/dist/cli/index-red8fm8p.js +2914 -0
  31. package/dist/cli/index-wg3r6acj.js +2042 -0
  32. package/dist/cli/index-xw0bcy0v.js +583 -0
  33. package/dist/cli/index-yhsmmv2z.js +339 -0
  34. package/dist/cli/index-yx44zd0p.js +40 -0
  35. package/dist/cli/index-zfsbaaqh.js +29 -0
  36. package/dist/cli/index.js +73 -69708
  37. package/dist/cli/knowledge-store-n4x6zyk7.js +73 -0
  38. package/dist/cli/pending-delegations-pz61mrsz.js +255 -0
  39. package/dist/cli/pr-subscriptions-y1nn36e5.js +33 -0
  40. package/dist/cli/schema-c2dbzhm8.js +168 -0
  41. package/dist/cli/skill-generator-a5ehggyg.js +55 -0
  42. package/dist/cli/task-envelope-qn0qtnh0.js +90 -0
  43. package/dist/cli/telemetry-9bbyxrvn.js +20 -0
  44. package/dist/cli/workspace-snapshot-w58jr2ga.js +90 -0
  45. package/dist/commands/guardrail-explain.d.ts +1 -0
  46. package/dist/commands/guardrail-log.d.ts +1 -0
  47. package/dist/commands/index.d.ts +2 -0
  48. package/dist/commands/registry.d.ts +14 -0
  49. package/dist/hooks/guardrails/audit-log.d.ts +114 -0
  50. package/dist/index.js +3569 -2366
  51. package/dist/services/diagnose-service.d.ts +5 -0
  52. package/dist/services/guardrail-explain-service.d.ts +42 -0
  53. package/dist/services/guardrail-log-service.d.ts +10 -0
  54. 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.83.0",
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 .",