opencode-swarm 7.83.0 → 7.85.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 (67) hide show
  1. package/.opencode/skills/codebase-review-swarm/references/review-protocol-v8.2.md +4 -0
  2. package/.opencode/skills/council/SKILL.md +6 -1
  3. package/.opencode/skills/deep-dive/SKILL.md +2 -0
  4. package/.opencode/skills/deep-research/SKILL.md +6 -0
  5. package/.opencode/skills/swarm-pr-feedback/SKILL.md +6 -0
  6. package/.opencode/skills/swarm-pr-review/SKILL.md +4 -0
  7. package/README.md +3 -1
  8. package/dist/background/lane-output-store.d.ts +72 -0
  9. package/dist/background/pending-delegations.d.ts +6 -0
  10. package/dist/cli/capability-probe-jevmgwmf.js +18 -0
  11. package/dist/cli/config-doctor-zejarrr6.js +35 -0
  12. package/dist/cli/dispatch-k86d928w.js +477 -0
  13. package/dist/cli/evidence-summary-service-g2znnd33.js +320 -0
  14. package/dist/cli/explorer-gz70sm9b.js +16 -0
  15. package/dist/cli/gate-evidence-y8zn7fe2.js +29 -0
  16. package/dist/cli/guardrail-explain-w4txg349.js +30 -0
  17. package/dist/cli/guardrail-log-80116wmz.js +15 -0
  18. package/dist/cli/index-0sxvwjt0.js +1241 -0
  19. package/dist/cli/index-293f68mj.js +13538 -0
  20. package/dist/cli/index-5cb86007.js +110 -0
  21. package/dist/cli/index-a76rekgs.js +67 -0
  22. package/dist/cli/index-b9v501fr.js +371 -0
  23. package/dist/cli/index-bcp79s17.js +1673 -0
  24. package/dist/cli/index-ckntc5gf.js +91 -0
  25. package/dist/cli/index-d9fbxaqd.js +2314 -0
  26. package/dist/cli/index-e7h9bb6v.js +233 -0
  27. package/dist/cli/index-e8pk68cc.js +540 -0
  28. package/dist/cli/index-eb85wtx9.js +242 -0
  29. package/dist/cli/index-f8r50m3h.js +14505 -0
  30. package/dist/cli/index-fjwwrwr5.js +37 -0
  31. package/dist/cli/index-hw9b2xng.js +2046 -0
  32. package/dist/cli/index-hz59hg4h.js +452 -0
  33. package/dist/cli/index-jtqkh8jf.js +119 -0
  34. package/dist/cli/index-p0arc26j.js +28 -0
  35. package/dist/cli/index-p0ye10nd.js +222 -0
  36. package/dist/cli/index-qqabjns2.js +412 -0
  37. package/dist/cli/index-red8fm8p.js +2914 -0
  38. package/dist/cli/index-vq2321gg.js +2391 -0
  39. package/dist/cli/index-x7qck34v.js +583 -0
  40. package/dist/cli/index-yhqt45de.js +29027 -0
  41. package/dist/cli/index-yhsmmv2z.js +339 -0
  42. package/dist/cli/index-yx44zd0p.js +40 -0
  43. package/dist/cli/index-zfsbaaqh.js +29 -0
  44. package/dist/cli/index.js +73 -69708
  45. package/dist/cli/knowledge-store-n4x6zyk7.js +73 -0
  46. package/dist/cli/pending-delegations-rd40tv9s.js +261 -0
  47. package/dist/cli/pr-subscriptions-y1nn36e5.js +33 -0
  48. package/dist/cli/schema-8d32b2v6.js +168 -0
  49. package/dist/cli/skill-generator-a5ehggyg.js +55 -0
  50. package/dist/cli/task-envelope-qn0qtnh0.js +90 -0
  51. package/dist/cli/telemetry-9bbyxrvn.js +20 -0
  52. package/dist/cli/workspace-snapshot-w58jr2ga.js +90 -0
  53. package/dist/commands/guardrail-explain.d.ts +1 -0
  54. package/dist/commands/guardrail-log.d.ts +1 -0
  55. package/dist/commands/index.d.ts +2 -0
  56. package/dist/commands/registry.d.ts +14 -0
  57. package/dist/hooks/guardrails/audit-log.d.ts +114 -0
  58. package/dist/index.js +4005 -2432
  59. package/dist/services/diagnose-service.d.ts +5 -0
  60. package/dist/services/guardrail-explain-service.d.ts +42 -0
  61. package/dist/services/guardrail-log-service.d.ts +10 -0
  62. package/dist/tools/dispatch-lanes.d.ts +14 -3
  63. package/dist/tools/index.d.ts +1 -0
  64. package/dist/tools/manifest.d.ts +1 -0
  65. package/dist/tools/retrieve-lane-output.d.ts +2 -0
  66. package/dist/tools/tool-metadata.d.ts +4 -0
  67. 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>;
@@ -56,6 +56,13 @@ export interface DispatchLaneResult {
56
56
  output?: string;
57
57
  output_chars?: number;
58
58
  output_truncated?: boolean;
59
+ output_ref?: string;
60
+ output_digest?: string;
61
+ output_preview_chars?: number;
62
+ output_degraded?: boolean;
63
+ output_artifact_error?: string;
64
+ transcript_incomplete?: boolean;
65
+ message_count?: number;
59
66
  error?: string;
60
67
  }
61
68
  export interface DispatchLanesResult {
@@ -194,7 +201,7 @@ export declare const _internals: {
194
201
  };
195
202
  export declare const _test_exports: {
196
203
  applyCommonPrompt: typeof applyCommonPrompt;
197
- extractLastAssistantText: typeof extractLastAssistantText;
204
+ extractAssistantTranscript: typeof extractAssistantTranscript;
198
205
  formatError: typeof formatError;
199
206
  nextCollectPollInterval: typeof nextCollectPollInterval;
200
207
  promptHash: typeof promptHash;
@@ -235,7 +242,7 @@ interface DispatchLanesExecutionContext {
235
242
  export declare function executeDispatchLanes(args: unknown, directory: string, context?: DispatchLanesExecutionContext): Promise<DispatchLanesResult>;
236
243
  export declare function executeDispatchLanesAsync(args: unknown, directory: string, context?: DispatchLanesExecutionContext): Promise<DispatchLanesAsyncResult>;
237
244
  export declare function executeCollectLaneResults(args: unknown, directory: string, context?: Pick<DispatchLanesExecutionContext, 'sessionID'>): Promise<CollectLaneResultsResult>;
238
- declare function extractLastAssistantText(messages: Array<{
245
+ declare function extractAssistantTranscript(messages: Array<{
239
246
  info?: {
240
247
  role?: string;
241
248
  };
@@ -243,7 +250,11 @@ declare function extractLastAssistantText(messages: Array<{
243
250
  type: string;
244
251
  text?: string;
245
252
  }>;
246
- }>): string;
253
+ }>): {
254
+ text: string;
255
+ messageCount: number;
256
+ transcriptIncomplete: boolean;
257
+ };
247
258
  declare function nextCollectPollInterval(currentMs: number): number;
248
259
  type ApplyCommonPromptResult = {
249
260
  ok: true;
@@ -47,6 +47,7 @@ export { type QualityBudgetInput, type QualityBudgetResult, quality_budget, qual
47
47
  export { buildWorkspaceGraph, type GraphEdge, type GraphNode, loadGraph, loadOrCreateGraph, type RepoGraph, resolveModuleSpecifier, saveGraph, updateGraphForFiles, } from './repo-graph';
48
48
  export { repo_map } from './repo-map';
49
49
  export { req_coverage } from './req-coverage';
50
+ export { retrieve_lane_output } from './retrieve-lane-output';
50
51
  export { retrieve_summary } from './retrieve-summary';
51
52
  export { type SastScanFinding, type SastScanInput, type SastScanResult, sast_scan, sastScan, } from './sast-scan';
52
53
  export type { SavePlanArgs, SavePlanResult } from './save-plan';
@@ -56,6 +56,7 @@ export declare const TOOL_MANIFEST: {
56
56
  git_blame: () => ToolDefinition;
57
57
  gitingest: () => ToolDefinition;
58
58
  retrieve_summary: () => ToolDefinition;
59
+ retrieve_lane_output: () => ToolDefinition;
59
60
  extract_code_blocks: () => ToolDefinition;
60
61
  phase_complete: () => ToolDefinition;
61
62
  save_plan: () => ToolDefinition;
@@ -0,0 +1,2 @@
1
+ import { createSwarmTool } from './create-tool';
2
+ export declare const retrieve_lane_output: ReturnType<typeof createSwarmTool>;
@@ -155,6 +155,10 @@ export declare const TOOL_METADATA: {
155
155
  description: string;
156
156
  agents: ("reviewer" | "test_engineer" | "coder" | "docs" | "designer" | "explorer" | "sme" | "critic" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_architecture_supervisor" | "critic_oversight" | "architect" | "docs_design" | "spec_writer")[];
157
157
  };
158
+ retrieve_lane_output: {
159
+ description: string;
160
+ agents: "architect"[];
161
+ };
158
162
  extract_code_blocks: {
159
163
  description: string;
160
164
  agents: ("reviewer" | "test_engineer" | "coder" | "docs" | "designer" | "explorer" | "sme" | "architect" | "docs_design" | "spec_writer")[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.83.0",
3
+ "version": "7.85.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 .",