opencode-swarm-plugin 0.56.0 → 0.57.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 +21 -0
- package/claude-plugin/.claude-plugin/plugin.json +1 -4
- package/claude-plugin/agents/background-worker.md +1 -0
- package/claude-plugin/agents/coordinator.md +1 -0
- package/claude-plugin/agents/worker.md +1 -0
- package/claude-plugin/bin/swarm-mcp-server.ts +47 -8
- package/claude-plugin/commands/hive.md +1 -1
- package/claude-plugin/commands/swarm.md +5 -1
- package/claude-plugin/dist/agent-mail.d.ts +480 -0
- package/claude-plugin/dist/agent-mail.d.ts.map +1 -0
- package/claude-plugin/dist/anti-patterns.d.ts +257 -0
- package/claude-plugin/dist/anti-patterns.d.ts.map +1 -0
- package/claude-plugin/dist/bin/swarm.js +373128 -0
- package/claude-plugin/dist/cass-tools.d.ts +74 -0
- package/claude-plugin/dist/cass-tools.d.ts.map +1 -0
- package/claude-plugin/dist/claude-plugin/claude-plugin-assets.d.ts +10 -0
- package/claude-plugin/dist/claude-plugin/claude-plugin-assets.d.ts.map +1 -0
- package/claude-plugin/dist/compaction-hook.d.ts +178 -0
- package/claude-plugin/dist/compaction-hook.d.ts.map +1 -0
- package/claude-plugin/dist/compaction-observability.d.ts +173 -0
- package/claude-plugin/dist/compaction-observability.d.ts.map +1 -0
- package/claude-plugin/dist/compaction-prompt-scoring.d.ts +125 -0
- package/claude-plugin/dist/compaction-prompt-scoring.d.ts.map +1 -0
- package/claude-plugin/dist/compaction-prompt-scoring.js +139 -0
- package/claude-plugin/dist/contributor-tools.d.ts +42 -0
- package/claude-plugin/dist/contributor-tools.d.ts.map +1 -0
- package/claude-plugin/dist/coordinator-guard.d.ts +79 -0
- package/claude-plugin/dist/coordinator-guard.d.ts.map +1 -0
- package/claude-plugin/dist/dashboard.d.ts +82 -0
- package/claude-plugin/dist/dashboard.d.ts.map +1 -0
- package/claude-plugin/dist/decision-trace-integration.d.ts +204 -0
- package/claude-plugin/dist/decision-trace-integration.d.ts.map +1 -0
- package/claude-plugin/dist/error-enrichment.d.ts +49 -0
- package/claude-plugin/dist/error-enrichment.d.ts.map +1 -0
- package/claude-plugin/dist/eval-capture.d.ts +494 -0
- package/claude-plugin/dist/eval-capture.d.ts.map +1 -0
- package/claude-plugin/dist/eval-capture.js +12844 -0
- package/claude-plugin/dist/eval-gates.d.ts +84 -0
- package/claude-plugin/dist/eval-gates.d.ts.map +1 -0
- package/claude-plugin/dist/eval-history.d.ts +117 -0
- package/claude-plugin/dist/eval-history.d.ts.map +1 -0
- package/claude-plugin/dist/eval-learning.d.ts +216 -0
- package/claude-plugin/dist/eval-learning.d.ts.map +1 -0
- package/claude-plugin/dist/eval-runner.d.ts +134 -0
- package/claude-plugin/dist/eval-runner.d.ts.map +1 -0
- package/claude-plugin/dist/examples/plugin-wrapper-template.ts +3341 -0
- package/claude-plugin/dist/export-tools.d.ts +76 -0
- package/claude-plugin/dist/export-tools.d.ts.map +1 -0
- package/claude-plugin/dist/hive.d.ts +949 -0
- package/claude-plugin/dist/hive.d.ts.map +1 -0
- package/claude-plugin/dist/hive.js +15009 -0
- package/claude-plugin/dist/hivemind-tools.d.ts +479 -0
- package/claude-plugin/dist/hivemind-tools.d.ts.map +1 -0
- package/claude-plugin/dist/hooks/atomic-write.d.ts +21 -0
- package/claude-plugin/dist/hooks/atomic-write.d.ts.map +1 -0
- package/claude-plugin/dist/hooks/constants.d.ts +28 -0
- package/claude-plugin/dist/hooks/constants.d.ts.map +1 -0
- package/claude-plugin/dist/hooks/index.d.ts +16 -0
- package/claude-plugin/dist/hooks/index.d.ts.map +1 -0
- package/claude-plugin/dist/hooks/session-start.d.ts +30 -0
- package/claude-plugin/dist/hooks/session-start.d.ts.map +1 -0
- package/claude-plugin/dist/hooks/tool-complete.d.ts +54 -0
- package/claude-plugin/dist/hooks/tool-complete.d.ts.map +1 -0
- package/claude-plugin/dist/index.d.ts +2017 -0
- package/claude-plugin/dist/index.d.ts.map +1 -0
- package/claude-plugin/dist/index.js +73453 -0
- package/claude-plugin/dist/learning.d.ts +700 -0
- package/claude-plugin/dist/learning.d.ts.map +1 -0
- package/claude-plugin/dist/logger.d.ts +38 -0
- package/claude-plugin/dist/logger.d.ts.map +1 -0
- package/claude-plugin/dist/mandate-promotion.d.ts +93 -0
- package/claude-plugin/dist/mandate-promotion.d.ts.map +1 -0
- package/claude-plugin/dist/mandate-storage.d.ts +209 -0
- package/claude-plugin/dist/mandate-storage.d.ts.map +1 -0
- package/claude-plugin/dist/mandates.d.ts +230 -0
- package/claude-plugin/dist/mandates.d.ts.map +1 -0
- package/claude-plugin/dist/memory-tools.d.ts +281 -0
- package/claude-plugin/dist/memory-tools.d.ts.map +1 -0
- package/claude-plugin/dist/memory.d.ts +164 -0
- package/claude-plugin/dist/memory.d.ts.map +1 -0
- package/claude-plugin/dist/model-selection.d.ts +37 -0
- package/claude-plugin/dist/model-selection.d.ts.map +1 -0
- package/claude-plugin/dist/observability-health.d.ts +87 -0
- package/claude-plugin/dist/observability-health.d.ts.map +1 -0
- package/claude-plugin/dist/observability-tools.d.ts +184 -0
- package/claude-plugin/dist/observability-tools.d.ts.map +1 -0
- package/claude-plugin/dist/output-guardrails.d.ts +125 -0
- package/claude-plugin/dist/output-guardrails.d.ts.map +1 -0
- package/claude-plugin/dist/pattern-maturity.d.ts +246 -0
- package/claude-plugin/dist/pattern-maturity.d.ts.map +1 -0
- package/claude-plugin/dist/planning-guardrails.d.ts +183 -0
- package/claude-plugin/dist/planning-guardrails.d.ts.map +1 -0
- package/claude-plugin/dist/plugin.d.ts +22 -0
- package/claude-plugin/dist/plugin.d.ts.map +1 -0
- package/claude-plugin/dist/plugin.js +72295 -0
- package/claude-plugin/dist/post-compaction-tracker.d.ts +133 -0
- package/claude-plugin/dist/post-compaction-tracker.d.ts.map +1 -0
- package/claude-plugin/dist/query-tools.d.ts +90 -0
- package/claude-plugin/dist/query-tools.d.ts.map +1 -0
- package/claude-plugin/dist/rate-limiter.d.ts +218 -0
- package/claude-plugin/dist/rate-limiter.d.ts.map +1 -0
- package/claude-plugin/dist/regression-detection.d.ts +58 -0
- package/claude-plugin/dist/regression-detection.d.ts.map +1 -0
- package/claude-plugin/dist/replay-tools.d.ts +28 -0
- package/claude-plugin/dist/replay-tools.d.ts.map +1 -0
- package/claude-plugin/dist/repo-crawl.d.ts +146 -0
- package/claude-plugin/dist/repo-crawl.d.ts.map +1 -0
- package/claude-plugin/dist/schemas/cell-events.d.ts +1352 -0
- package/claude-plugin/dist/schemas/cell-events.d.ts.map +1 -0
- package/claude-plugin/dist/schemas/cell.d.ts +413 -0
- package/claude-plugin/dist/schemas/cell.d.ts.map +1 -0
- package/claude-plugin/dist/schemas/evaluation.d.ts +161 -0
- package/claude-plugin/dist/schemas/evaluation.d.ts.map +1 -0
- package/claude-plugin/dist/schemas/index.d.ts +46 -0
- package/claude-plugin/dist/schemas/index.d.ts.map +1 -0
- package/claude-plugin/dist/schemas/mandate.d.ts +336 -0
- package/claude-plugin/dist/schemas/mandate.d.ts.map +1 -0
- package/claude-plugin/dist/schemas/swarm-context.d.ts +131 -0
- package/claude-plugin/dist/schemas/swarm-context.d.ts.map +1 -0
- package/claude-plugin/dist/schemas/task.d.ts +189 -0
- package/claude-plugin/dist/schemas/task.d.ts.map +1 -0
- package/claude-plugin/dist/schemas/worker-handoff.d.ts +78 -0
- package/claude-plugin/dist/schemas/worker-handoff.d.ts.map +1 -0
- package/claude-plugin/dist/sessions/agent-discovery.d.ts +59 -0
- package/claude-plugin/dist/sessions/agent-discovery.d.ts.map +1 -0
- package/claude-plugin/dist/sessions/index.d.ts +10 -0
- package/claude-plugin/dist/sessions/index.d.ts.map +1 -0
- package/claude-plugin/dist/skills.d.ts +490 -0
- package/claude-plugin/dist/skills.d.ts.map +1 -0
- package/claude-plugin/dist/storage.d.ts +260 -0
- package/claude-plugin/dist/storage.d.ts.map +1 -0
- package/claude-plugin/dist/structured.d.ts +206 -0
- package/claude-plugin/dist/structured.d.ts.map +1 -0
- package/claude-plugin/dist/swarm-adversarial-review.d.ts +104 -0
- package/claude-plugin/dist/swarm-adversarial-review.d.ts.map +1 -0
- package/claude-plugin/dist/swarm-decompose.d.ts +297 -0
- package/claude-plugin/dist/swarm-decompose.d.ts.map +1 -0
- package/claude-plugin/dist/swarm-insights.d.ts +390 -0
- package/claude-plugin/dist/swarm-insights.d.ts.map +1 -0
- package/claude-plugin/dist/swarm-mail.d.ts +274 -0
- package/claude-plugin/dist/swarm-mail.d.ts.map +1 -0
- package/claude-plugin/dist/swarm-orchestrate.d.ts +924 -0
- package/claude-plugin/dist/swarm-orchestrate.d.ts.map +1 -0
- package/claude-plugin/dist/swarm-prompts.d.ts +467 -0
- package/claude-plugin/dist/swarm-prompts.d.ts.map +1 -0
- package/claude-plugin/dist/swarm-prompts.js +45283 -0
- package/claude-plugin/dist/swarm-research.d.ts +125 -0
- package/claude-plugin/dist/swarm-research.d.ts.map +1 -0
- package/claude-plugin/dist/swarm-review.d.ts +214 -0
- package/claude-plugin/dist/swarm-review.d.ts.map +1 -0
- package/claude-plugin/dist/swarm-signature.d.ts +106 -0
- package/claude-plugin/dist/swarm-signature.d.ts.map +1 -0
- package/claude-plugin/dist/swarm-strategies.d.ts +113 -0
- package/claude-plugin/dist/swarm-strategies.d.ts.map +1 -0
- package/claude-plugin/dist/swarm-validation.d.ts +127 -0
- package/claude-plugin/dist/swarm-validation.d.ts.map +1 -0
- package/claude-plugin/dist/swarm-worktree.d.ts +185 -0
- package/claude-plugin/dist/swarm-worktree.d.ts.map +1 -0
- package/claude-plugin/dist/swarm.d.ts +590 -0
- package/claude-plugin/dist/swarm.d.ts.map +1 -0
- package/claude-plugin/dist/tool-availability.d.ts +91 -0
- package/claude-plugin/dist/tool-availability.d.ts.map +1 -0
- package/claude-plugin/dist/utils/tree-renderer.d.ts +61 -0
- package/claude-plugin/dist/utils/tree-renderer.d.ts.map +1 -0
- package/claude-plugin/dist/validators/index.d.ts +7 -0
- package/claude-plugin/dist/validators/index.d.ts.map +1 -0
- package/claude-plugin/dist/validators/schema-validator.d.ts +58 -0
- package/claude-plugin/dist/validators/schema-validator.d.ts.map +1 -0
- package/claude-plugin/skills/always-on-guidance/SKILL.md +44 -0
- package/dist/agent-mail.d.ts +4 -4
- package/dist/agent-mail.d.ts.map +1 -1
- package/dist/bin/swarm.js +477 -22
- package/dist/claude-plugin/claude-plugin-assets.d.ts +10 -0
- package/dist/claude-plugin/claude-plugin-assets.d.ts.map +1 -0
- package/dist/compaction-hook.d.ts +1 -1
- package/dist/compaction-hook.d.ts.map +1 -1
- package/dist/index.js +375 -265
- package/dist/plugin.js +374 -264
- package/dist/skills.d.ts +15 -0
- package/dist/skills.d.ts.map +1 -1
- package/dist/swarm-mail.d.ts.map +1 -1
- package/dist/swarm-prompts.d.ts +4 -2
- package/dist/swarm-prompts.d.ts.map +1 -1
- package/dist/swarm-prompts.js +84 -7
- package/global-skills/swarm-coordination/SKILL.md +21 -20
- package/package.json +2 -1
|
@@ -0,0 +1,2017 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenCode Swarm Plugin
|
|
3
|
+
*
|
|
4
|
+
* A type-safe plugin for multi-agent coordination with hive issue tracking
|
|
5
|
+
* and Agent Mail integration. Provides structured tools for swarm operations.
|
|
6
|
+
*
|
|
7
|
+
* @module opencode-swarm-plugin
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* // In opencode.jsonc
|
|
12
|
+
* {
|
|
13
|
+
* "plugins": ["opencode-swarm-plugin"]
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* // Programmatic usage (hive is the new name, beads is deprecated)
|
|
20
|
+
* import { hiveTools, beadsTools, agentMailTools, swarmMailTools } from "opencode-swarm-plugin"
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
import type { Plugin } from "@opencode-ai/plugin";
|
|
24
|
+
/**
|
|
25
|
+
* OpenCode Swarm Plugin
|
|
26
|
+
*
|
|
27
|
+
* Registers all swarm coordination tools:
|
|
28
|
+
* - hive:* - Type-safe hive issue tracker wrappers (primary)
|
|
29
|
+
* - beads:* - Legacy aliases for hive tools (deprecated, use hive:* instead)
|
|
30
|
+
* - agent-mail:* - Multi-agent coordination via Agent Mail MCP (legacy)
|
|
31
|
+
* - swarm-mail:* - Multi-agent coordination with embedded event sourcing (recommended)
|
|
32
|
+
* - structured:* - Structured output parsing and validation
|
|
33
|
+
* - swarm:* - Swarm orchestration and task decomposition
|
|
34
|
+
* - repo-crawl:* - GitHub API tools for repository research
|
|
35
|
+
* - skills:* - Agent skills discovery, activation, and execution
|
|
36
|
+
* - mandate:* - Agent voting system for collaborative knowledge curation
|
|
37
|
+
* - hivemind:* - Unified memory system (learnings + session history)
|
|
38
|
+
* - contributor_lookup - GitHub contributor profile lookup with changeset credit generation
|
|
39
|
+
*
|
|
40
|
+
* @param input - Plugin context from OpenCode
|
|
41
|
+
* @returns Plugin hooks including tools, events, and tool execution hooks
|
|
42
|
+
*/
|
|
43
|
+
declare const SwarmPlugin: Plugin;
|
|
44
|
+
/**
|
|
45
|
+
* Default export for OpenCode plugin loading
|
|
46
|
+
*
|
|
47
|
+
* OpenCode loads plugins by their default export, so this allows:
|
|
48
|
+
* ```json
|
|
49
|
+
* { "plugins": ["opencode-swarm-plugin"] }
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export default SwarmPlugin;
|
|
53
|
+
/**
|
|
54
|
+
* Re-export all schemas for type-safe usage
|
|
55
|
+
*/
|
|
56
|
+
export * from "./schemas";
|
|
57
|
+
/**
|
|
58
|
+
* Re-export hive module (primary) and beads module (deprecated aliases)
|
|
59
|
+
*
|
|
60
|
+
* Includes:
|
|
61
|
+
* - hiveTools - All hive tool definitions (primary)
|
|
62
|
+
* - beadsTools - Legacy aliases for backward compatibility (deprecated)
|
|
63
|
+
* - Individual tool exports (hive_create, hive_query, etc.)
|
|
64
|
+
* - Legacy aliases (hive_create, hive_query, etc.)
|
|
65
|
+
* - HiveError, HiveValidationError (and BeadError, BeadValidationError aliases)
|
|
66
|
+
*
|
|
67
|
+
* DEPRECATED: Use hive_* tools instead of beads_* tools
|
|
68
|
+
*/
|
|
69
|
+
export * from "./hive";
|
|
70
|
+
/**
|
|
71
|
+
* Re-export agent-mail module (legacy MCP-based)
|
|
72
|
+
*
|
|
73
|
+
* Includes:
|
|
74
|
+
* - agentMailTools - All agent mail tool definitions
|
|
75
|
+
* - AgentMailError, FileReservationConflictError - Error classes
|
|
76
|
+
* - AgentMailState - Session state type
|
|
77
|
+
*
|
|
78
|
+
* NOTE: For OpenCode plugin usage, import from "opencode-swarm-plugin/plugin" instead
|
|
79
|
+
* to avoid the plugin loader trying to call these classes as functions.
|
|
80
|
+
*
|
|
81
|
+
* DEPRECATED: Use swarm-mail module instead for embedded event-sourced implementation.
|
|
82
|
+
*/
|
|
83
|
+
export { agentMailTools, AgentMailError, AgentMailNotInitializedError, FileReservationConflictError, createAgentMailError, setAgentMailProjectDirectory, getAgentMailProjectDirectory, mcpCallWithAutoInit, isProjectNotFoundError, isAgentNotFoundError, type AgentMailState, } from "./agent-mail";
|
|
84
|
+
/**
|
|
85
|
+
* Re-export swarm-mail module (embedded event-sourced)
|
|
86
|
+
*
|
|
87
|
+
* Includes:
|
|
88
|
+
* - swarmMailTools - All swarm mail tool definitions
|
|
89
|
+
* - setSwarmMailProjectDirectory, getSwarmMailProjectDirectory - Directory management
|
|
90
|
+
* - clearSessionState - Session cleanup
|
|
91
|
+
* - SwarmMailState - Session state type
|
|
92
|
+
*
|
|
93
|
+
* Features:
|
|
94
|
+
* - Embedded PGLite storage (no external server dependency)
|
|
95
|
+
* - Event sourcing for full audit trail
|
|
96
|
+
* - Offset-based resumability
|
|
97
|
+
* - Materialized views for fast queries
|
|
98
|
+
* - File reservation with conflict detection
|
|
99
|
+
*/
|
|
100
|
+
export { swarmMailTools, setSwarmMailProjectDirectory, getSwarmMailProjectDirectory, clearSessionState, type SwarmMailState, } from "./swarm-mail";
|
|
101
|
+
/**
|
|
102
|
+
* Re-export shared types from swarm-mail package
|
|
103
|
+
*
|
|
104
|
+
* Includes:
|
|
105
|
+
* - MailSessionState - Shared session state type for Agent Mail and Swarm Mail
|
|
106
|
+
*/
|
|
107
|
+
export { type MailSessionState } from "swarm-mail";
|
|
108
|
+
/**
|
|
109
|
+
* Re-export structured module
|
|
110
|
+
*
|
|
111
|
+
* Includes:
|
|
112
|
+
* - structuredTools - Structured output parsing tools
|
|
113
|
+
* - Utility functions for JSON extraction
|
|
114
|
+
*/
|
|
115
|
+
export { structuredTools, extractJsonFromText, formatZodErrors, getSchemaByName, } from "./structured";
|
|
116
|
+
/**
|
|
117
|
+
* Re-export swarm module
|
|
118
|
+
*
|
|
119
|
+
* Includes:
|
|
120
|
+
* - swarmTools - Swarm orchestration tools
|
|
121
|
+
* - SwarmError, DecompositionError - Error classes
|
|
122
|
+
* - formatSubtaskPrompt, formatEvaluationPrompt - Prompt helpers
|
|
123
|
+
* - selectStrategy, formatStrategyGuidelines - Strategy selection helpers
|
|
124
|
+
* - STRATEGIES - Strategy definitions
|
|
125
|
+
*
|
|
126
|
+
* Types:
|
|
127
|
+
* - DecompositionStrategy - Strategy type union
|
|
128
|
+
* - StrategyDefinition - Strategy definition interface
|
|
129
|
+
*
|
|
130
|
+
* NOTE: Prompt template strings (DECOMPOSITION_PROMPT, etc.) are NOT exported
|
|
131
|
+
* to avoid confusing the plugin loader which tries to call all exports as functions
|
|
132
|
+
*/
|
|
133
|
+
export { swarmTools, SwarmError, DecompositionError, formatSubtaskPrompt, formatSubtaskPromptV2, formatEvaluationPrompt, SUBTASK_PROMPT_V2, STRATEGIES, selectStrategy, formatStrategyGuidelines, type DecompositionStrategy, type StrategyDefinition, } from "./swarm";
|
|
134
|
+
/**
|
|
135
|
+
* All tools in a single registry for CLI tool execution
|
|
136
|
+
*
|
|
137
|
+
* This is used by `swarm tool <name>` command to dynamically execute tools.
|
|
138
|
+
* Each tool has an `execute` function that takes (args, ctx) and returns a string.
|
|
139
|
+
*
|
|
140
|
+
* Note: hiveTools includes both hive_* and beads_* (legacy aliases)
|
|
141
|
+
* Note: hivemindTools includes both hivemind_* and deprecated semantic-memory_* + cass_* aliases
|
|
142
|
+
*/
|
|
143
|
+
export declare const allTools: {
|
|
144
|
+
readonly contributor_lookup: {
|
|
145
|
+
description: string;
|
|
146
|
+
args: {
|
|
147
|
+
login: import("zod").ZodString;
|
|
148
|
+
issue: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
149
|
+
};
|
|
150
|
+
execute(args: {
|
|
151
|
+
login: string;
|
|
152
|
+
issue?: number | undefined;
|
|
153
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
154
|
+
};
|
|
155
|
+
readonly swarm_discover_tools: {
|
|
156
|
+
description: string;
|
|
157
|
+
args: {};
|
|
158
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
159
|
+
};
|
|
160
|
+
readonly swarm_get_versions: {
|
|
161
|
+
description: string;
|
|
162
|
+
args: {
|
|
163
|
+
projectPath: import("zod").ZodString;
|
|
164
|
+
packages: import("zod").ZodArray<import("zod").ZodString>;
|
|
165
|
+
checkUpgrades: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
166
|
+
};
|
|
167
|
+
execute(args: {
|
|
168
|
+
projectPath: string;
|
|
169
|
+
packages: string[];
|
|
170
|
+
checkUpgrades?: boolean | undefined;
|
|
171
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
172
|
+
};
|
|
173
|
+
readonly swarm_analytics: {
|
|
174
|
+
description: string;
|
|
175
|
+
args: {
|
|
176
|
+
query: import("zod").ZodEnum<{
|
|
177
|
+
"failed-decompositions": "failed-decompositions";
|
|
178
|
+
"strategy-success-rates": "strategy-success-rates";
|
|
179
|
+
"lock-contention": "lock-contention";
|
|
180
|
+
"agent-activity": "agent-activity";
|
|
181
|
+
"message-latency": "message-latency";
|
|
182
|
+
"scope-violations": "scope-violations";
|
|
183
|
+
"task-duration": "task-duration";
|
|
184
|
+
"checkpoint-frequency": "checkpoint-frequency";
|
|
185
|
+
"recovery-success": "recovery-success";
|
|
186
|
+
"human-feedback": "human-feedback";
|
|
187
|
+
}>;
|
|
188
|
+
since: import("zod").ZodOptional<import("zod").ZodString>;
|
|
189
|
+
format: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
190
|
+
summary: "summary";
|
|
191
|
+
json: "json";
|
|
192
|
+
}>>;
|
|
193
|
+
};
|
|
194
|
+
execute(args: {
|
|
195
|
+
query: "failed-decompositions" | "strategy-success-rates" | "lock-contention" | "agent-activity" | "message-latency" | "scope-violations" | "task-duration" | "checkpoint-frequency" | "recovery-success" | "human-feedback";
|
|
196
|
+
since?: string | undefined;
|
|
197
|
+
format?: "summary" | "json" | undefined;
|
|
198
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
199
|
+
};
|
|
200
|
+
readonly swarm_query: {
|
|
201
|
+
description: string;
|
|
202
|
+
args: {
|
|
203
|
+
sql: import("zod").ZodString;
|
|
204
|
+
format: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
205
|
+
table: "table";
|
|
206
|
+
json: "json";
|
|
207
|
+
}>>;
|
|
208
|
+
};
|
|
209
|
+
execute(args: {
|
|
210
|
+
sql: string;
|
|
211
|
+
format?: "table" | "json" | undefined;
|
|
212
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
213
|
+
};
|
|
214
|
+
readonly swarm_diagnose: {
|
|
215
|
+
description: string;
|
|
216
|
+
args: {
|
|
217
|
+
epic_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
218
|
+
bead_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
219
|
+
include: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
220
|
+
errors: "errors";
|
|
221
|
+
blockers: "blockers";
|
|
222
|
+
conflicts: "conflicts";
|
|
223
|
+
slow_tasks: "slow_tasks";
|
|
224
|
+
timeline: "timeline";
|
|
225
|
+
}>>>;
|
|
226
|
+
};
|
|
227
|
+
execute(args: {
|
|
228
|
+
epic_id?: string | undefined;
|
|
229
|
+
bead_id?: string | undefined;
|
|
230
|
+
include?: ("errors" | "blockers" | "conflicts" | "slow_tasks" | "timeline")[] | undefined;
|
|
231
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
232
|
+
};
|
|
233
|
+
readonly swarm_insights: {
|
|
234
|
+
description: string;
|
|
235
|
+
args: {
|
|
236
|
+
scope: import("zod").ZodEnum<{
|
|
237
|
+
project: "project";
|
|
238
|
+
epic: "epic";
|
|
239
|
+
recent: "recent";
|
|
240
|
+
}>;
|
|
241
|
+
epic_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
242
|
+
metrics: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
243
|
+
success_rate: "success_rate";
|
|
244
|
+
avg_duration: "avg_duration";
|
|
245
|
+
conflict_rate: "conflict_rate";
|
|
246
|
+
retry_rate: "retry_rate";
|
|
247
|
+
}>>;
|
|
248
|
+
};
|
|
249
|
+
execute(args: {
|
|
250
|
+
scope: "project" | "epic" | "recent";
|
|
251
|
+
metrics: ("success_rate" | "avg_duration" | "conflict_rate" | "retry_rate")[];
|
|
252
|
+
epic_id?: string | undefined;
|
|
253
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
254
|
+
};
|
|
255
|
+
readonly hivemind_store: {
|
|
256
|
+
description: string;
|
|
257
|
+
args: {
|
|
258
|
+
information: import("zod").ZodString;
|
|
259
|
+
collection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
260
|
+
tags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
261
|
+
metadata: import("zod").ZodOptional<import("zod").ZodString>;
|
|
262
|
+
confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
263
|
+
autoTag: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
264
|
+
autoLink: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
265
|
+
extractEntities: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
266
|
+
};
|
|
267
|
+
execute(args: {
|
|
268
|
+
information: string;
|
|
269
|
+
collection?: string | undefined;
|
|
270
|
+
tags?: string | undefined;
|
|
271
|
+
metadata?: string | undefined;
|
|
272
|
+
confidence?: number | undefined;
|
|
273
|
+
autoTag?: boolean | undefined;
|
|
274
|
+
autoLink?: boolean | undefined;
|
|
275
|
+
extractEntities?: boolean | undefined;
|
|
276
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
277
|
+
};
|
|
278
|
+
readonly hivemind_find: {
|
|
279
|
+
description: string;
|
|
280
|
+
args: {
|
|
281
|
+
query: import("zod").ZodString;
|
|
282
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
283
|
+
collection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
284
|
+
expand: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
285
|
+
fts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
286
|
+
};
|
|
287
|
+
execute(args: {
|
|
288
|
+
query: string;
|
|
289
|
+
limit?: number | undefined;
|
|
290
|
+
collection?: string | undefined;
|
|
291
|
+
expand?: boolean | undefined;
|
|
292
|
+
fts?: boolean | undefined;
|
|
293
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
294
|
+
};
|
|
295
|
+
readonly hivemind_get: {
|
|
296
|
+
description: string;
|
|
297
|
+
args: {
|
|
298
|
+
id: import("zod").ZodString;
|
|
299
|
+
};
|
|
300
|
+
execute(args: {
|
|
301
|
+
id: string;
|
|
302
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
303
|
+
};
|
|
304
|
+
readonly hivemind_remove: {
|
|
305
|
+
description: string;
|
|
306
|
+
args: {
|
|
307
|
+
id: import("zod").ZodString;
|
|
308
|
+
};
|
|
309
|
+
execute(args: {
|
|
310
|
+
id: string;
|
|
311
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
312
|
+
};
|
|
313
|
+
readonly hivemind_validate: {
|
|
314
|
+
description: string;
|
|
315
|
+
args: {
|
|
316
|
+
id: import("zod").ZodString;
|
|
317
|
+
};
|
|
318
|
+
execute(args: {
|
|
319
|
+
id: string;
|
|
320
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
321
|
+
};
|
|
322
|
+
readonly hivemind_stats: {
|
|
323
|
+
description: string;
|
|
324
|
+
args: {};
|
|
325
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
326
|
+
};
|
|
327
|
+
readonly hivemind_index: {
|
|
328
|
+
description: string;
|
|
329
|
+
args: {
|
|
330
|
+
full: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
331
|
+
};
|
|
332
|
+
execute(args: {
|
|
333
|
+
full?: boolean | undefined;
|
|
334
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
335
|
+
};
|
|
336
|
+
readonly hivemind_sync: {
|
|
337
|
+
description: string;
|
|
338
|
+
args: {};
|
|
339
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
340
|
+
};
|
|
341
|
+
readonly "semantic-memory_store": any;
|
|
342
|
+
readonly "semantic-memory_find": any;
|
|
343
|
+
readonly "semantic-memory_get": any;
|
|
344
|
+
readonly "semantic-memory_remove": any;
|
|
345
|
+
readonly "semantic-memory_validate": any;
|
|
346
|
+
readonly "semantic-memory_list": any;
|
|
347
|
+
readonly "semantic-memory_stats": any;
|
|
348
|
+
readonly "semantic-memory_check": any;
|
|
349
|
+
readonly "semantic-memory_upsert": any;
|
|
350
|
+
readonly cass_search: any;
|
|
351
|
+
readonly cass_view: any;
|
|
352
|
+
readonly cass_expand: any;
|
|
353
|
+
readonly cass_health: any;
|
|
354
|
+
readonly cass_index: any;
|
|
355
|
+
readonly cass_stats: any;
|
|
356
|
+
readonly mandate_file: {
|
|
357
|
+
description: string;
|
|
358
|
+
args: {
|
|
359
|
+
content: import("zod").ZodString;
|
|
360
|
+
content_type: import("zod").ZodEnum<{
|
|
361
|
+
idea: "idea";
|
|
362
|
+
tip: "tip";
|
|
363
|
+
lore: "lore";
|
|
364
|
+
snippet: "snippet";
|
|
365
|
+
feature_request: "feature_request";
|
|
366
|
+
}>;
|
|
367
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
368
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
369
|
+
};
|
|
370
|
+
execute(args: {
|
|
371
|
+
content: string;
|
|
372
|
+
content_type: "idea" | "tip" | "lore" | "snippet" | "feature_request";
|
|
373
|
+
tags?: string[] | undefined;
|
|
374
|
+
metadata?: Record<string, unknown> | undefined;
|
|
375
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
376
|
+
};
|
|
377
|
+
readonly mandate_vote: {
|
|
378
|
+
description: string;
|
|
379
|
+
args: {
|
|
380
|
+
mandate_id: import("zod").ZodString;
|
|
381
|
+
vote_type: import("zod").ZodEnum<{
|
|
382
|
+
upvote: "upvote";
|
|
383
|
+
downvote: "downvote";
|
|
384
|
+
}>;
|
|
385
|
+
agent_name: import("zod").ZodString;
|
|
386
|
+
};
|
|
387
|
+
execute(args: {
|
|
388
|
+
mandate_id: string;
|
|
389
|
+
vote_type: "upvote" | "downvote";
|
|
390
|
+
agent_name: string;
|
|
391
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
392
|
+
};
|
|
393
|
+
readonly mandate_query: {
|
|
394
|
+
description: string;
|
|
395
|
+
args: {
|
|
396
|
+
query: import("zod").ZodString;
|
|
397
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
398
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
399
|
+
candidate: "candidate";
|
|
400
|
+
established: "established";
|
|
401
|
+
mandate: "mandate";
|
|
402
|
+
rejected: "rejected";
|
|
403
|
+
}>>;
|
|
404
|
+
content_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
405
|
+
idea: "idea";
|
|
406
|
+
tip: "tip";
|
|
407
|
+
lore: "lore";
|
|
408
|
+
snippet: "snippet";
|
|
409
|
+
feature_request: "feature_request";
|
|
410
|
+
}>>;
|
|
411
|
+
};
|
|
412
|
+
execute(args: {
|
|
413
|
+
query: string;
|
|
414
|
+
limit?: number | undefined;
|
|
415
|
+
status?: "candidate" | "established" | "mandate" | "rejected" | undefined;
|
|
416
|
+
content_type?: "idea" | "tip" | "lore" | "snippet" | "feature_request" | undefined;
|
|
417
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
418
|
+
};
|
|
419
|
+
readonly mandate_list: {
|
|
420
|
+
description: string;
|
|
421
|
+
args: {
|
|
422
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
423
|
+
candidate: "candidate";
|
|
424
|
+
established: "established";
|
|
425
|
+
mandate: "mandate";
|
|
426
|
+
rejected: "rejected";
|
|
427
|
+
}>>;
|
|
428
|
+
content_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
429
|
+
idea: "idea";
|
|
430
|
+
tip: "tip";
|
|
431
|
+
lore: "lore";
|
|
432
|
+
snippet: "snippet";
|
|
433
|
+
feature_request: "feature_request";
|
|
434
|
+
}>>;
|
|
435
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
436
|
+
};
|
|
437
|
+
execute(args: {
|
|
438
|
+
status?: "candidate" | "established" | "mandate" | "rejected" | undefined;
|
|
439
|
+
content_type?: "idea" | "tip" | "lore" | "snippet" | "feature_request" | undefined;
|
|
440
|
+
limit?: number | undefined;
|
|
441
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
442
|
+
};
|
|
443
|
+
readonly mandate_stats: {
|
|
444
|
+
description: string;
|
|
445
|
+
args: {
|
|
446
|
+
mandate_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
447
|
+
};
|
|
448
|
+
execute(args: {
|
|
449
|
+
mandate_id?: string | undefined;
|
|
450
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
451
|
+
};
|
|
452
|
+
readonly skills_list: {
|
|
453
|
+
description: string;
|
|
454
|
+
args: {
|
|
455
|
+
tag: import("zod").ZodOptional<import("zod").ZodString>;
|
|
456
|
+
};
|
|
457
|
+
execute(args: {
|
|
458
|
+
tag?: string | undefined;
|
|
459
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
460
|
+
};
|
|
461
|
+
readonly skills_use: {
|
|
462
|
+
description: string;
|
|
463
|
+
args: {
|
|
464
|
+
name: import("zod").ZodString;
|
|
465
|
+
include_scripts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
466
|
+
};
|
|
467
|
+
execute(args: {
|
|
468
|
+
name: string;
|
|
469
|
+
include_scripts?: boolean | undefined;
|
|
470
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
471
|
+
};
|
|
472
|
+
readonly skills_execute: {
|
|
473
|
+
description: string;
|
|
474
|
+
args: {
|
|
475
|
+
skill: import("zod").ZodString;
|
|
476
|
+
script: import("zod").ZodString;
|
|
477
|
+
args: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
478
|
+
};
|
|
479
|
+
execute(args: {
|
|
480
|
+
skill: string;
|
|
481
|
+
script: string;
|
|
482
|
+
args?: string[] | undefined;
|
|
483
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
484
|
+
};
|
|
485
|
+
readonly skills_read: {
|
|
486
|
+
description: string;
|
|
487
|
+
args: {
|
|
488
|
+
skill: import("zod").ZodString;
|
|
489
|
+
file: import("zod").ZodString;
|
|
490
|
+
};
|
|
491
|
+
execute(args: {
|
|
492
|
+
skill: string;
|
|
493
|
+
file: string;
|
|
494
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
495
|
+
};
|
|
496
|
+
readonly skills_create: {
|
|
497
|
+
description: string;
|
|
498
|
+
args: {
|
|
499
|
+
name: import("zod").ZodString;
|
|
500
|
+
description: import("zod").ZodString;
|
|
501
|
+
body: import("zod").ZodString;
|
|
502
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
503
|
+
tools: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
504
|
+
directory: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
505
|
+
global: "global";
|
|
506
|
+
".opencode/skill": ".opencode/skill";
|
|
507
|
+
".claude/skills": ".claude/skills";
|
|
508
|
+
skill: "skill";
|
|
509
|
+
"global-claude": "global-claude";
|
|
510
|
+
}>>;
|
|
511
|
+
};
|
|
512
|
+
execute(args: {
|
|
513
|
+
name: string;
|
|
514
|
+
description: string;
|
|
515
|
+
body: string;
|
|
516
|
+
tags?: string[] | undefined;
|
|
517
|
+
tools?: string[] | undefined;
|
|
518
|
+
directory?: "global" | ".opencode/skill" | ".claude/skills" | "skill" | "global-claude" | undefined;
|
|
519
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
520
|
+
};
|
|
521
|
+
readonly skills_update: {
|
|
522
|
+
description: string;
|
|
523
|
+
args: {
|
|
524
|
+
name: import("zod").ZodString;
|
|
525
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
526
|
+
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
527
|
+
body: import("zod").ZodOptional<import("zod").ZodString>;
|
|
528
|
+
append_body: import("zod").ZodOptional<import("zod").ZodString>;
|
|
529
|
+
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
530
|
+
add_tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
531
|
+
tools: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
532
|
+
};
|
|
533
|
+
execute(args: {
|
|
534
|
+
name: string;
|
|
535
|
+
description?: string | undefined;
|
|
536
|
+
content?: string | undefined;
|
|
537
|
+
body?: string | undefined;
|
|
538
|
+
append_body?: string | undefined;
|
|
539
|
+
tags?: string[] | undefined;
|
|
540
|
+
add_tags?: string[] | undefined;
|
|
541
|
+
tools?: string[] | undefined;
|
|
542
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
543
|
+
};
|
|
544
|
+
readonly skills_delete: {
|
|
545
|
+
description: string;
|
|
546
|
+
args: {
|
|
547
|
+
name: import("zod").ZodString;
|
|
548
|
+
confirm: import("zod").ZodBoolean;
|
|
549
|
+
};
|
|
550
|
+
execute(args: {
|
|
551
|
+
name: string;
|
|
552
|
+
confirm: boolean;
|
|
553
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
554
|
+
};
|
|
555
|
+
readonly skills_add_script: {
|
|
556
|
+
description: string;
|
|
557
|
+
args: {
|
|
558
|
+
skill: import("zod").ZodString;
|
|
559
|
+
script_name: import("zod").ZodString;
|
|
560
|
+
content: import("zod").ZodString;
|
|
561
|
+
executable: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
562
|
+
};
|
|
563
|
+
execute(args: {
|
|
564
|
+
skill: string;
|
|
565
|
+
script_name: string;
|
|
566
|
+
content: string;
|
|
567
|
+
executable: boolean;
|
|
568
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
569
|
+
};
|
|
570
|
+
readonly skills_init: {
|
|
571
|
+
description: string;
|
|
572
|
+
args: {
|
|
573
|
+
name: import("zod").ZodString;
|
|
574
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
575
|
+
directory: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
576
|
+
global: "global";
|
|
577
|
+
".claude/skills": ".claude/skills";
|
|
578
|
+
skills: "skills";
|
|
579
|
+
".opencode/skills": ".opencode/skills";
|
|
580
|
+
}>>;
|
|
581
|
+
include_example_script: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
582
|
+
include_reference: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
583
|
+
};
|
|
584
|
+
execute(args: {
|
|
585
|
+
name: string;
|
|
586
|
+
include_example_script: boolean;
|
|
587
|
+
include_reference: boolean;
|
|
588
|
+
description?: string | undefined;
|
|
589
|
+
directory?: "global" | ".claude/skills" | "skills" | ".opencode/skills" | undefined;
|
|
590
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
591
|
+
};
|
|
592
|
+
readonly repo_readme: {
|
|
593
|
+
description: string;
|
|
594
|
+
args: {
|
|
595
|
+
repo: import("zod").ZodString;
|
|
596
|
+
maxLength: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
597
|
+
};
|
|
598
|
+
execute(args: {
|
|
599
|
+
repo: string;
|
|
600
|
+
maxLength?: number | undefined;
|
|
601
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
602
|
+
};
|
|
603
|
+
readonly repo_structure: {
|
|
604
|
+
description: string;
|
|
605
|
+
args: {
|
|
606
|
+
repo: import("zod").ZodString;
|
|
607
|
+
depth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
608
|
+
};
|
|
609
|
+
execute(args: {
|
|
610
|
+
repo: string;
|
|
611
|
+
depth?: number | undefined;
|
|
612
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
613
|
+
};
|
|
614
|
+
readonly repo_tree: {
|
|
615
|
+
description: string;
|
|
616
|
+
args: {
|
|
617
|
+
repo: import("zod").ZodString;
|
|
618
|
+
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
619
|
+
maxDepth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
620
|
+
};
|
|
621
|
+
execute(args: {
|
|
622
|
+
repo: string;
|
|
623
|
+
path?: string | undefined;
|
|
624
|
+
maxDepth?: number | undefined;
|
|
625
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
626
|
+
};
|
|
627
|
+
readonly repo_file: {
|
|
628
|
+
description: string;
|
|
629
|
+
args: {
|
|
630
|
+
repo: import("zod").ZodString;
|
|
631
|
+
path: import("zod").ZodString;
|
|
632
|
+
maxLength: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
633
|
+
};
|
|
634
|
+
execute(args: {
|
|
635
|
+
repo: string;
|
|
636
|
+
path: string;
|
|
637
|
+
maxLength?: number | undefined;
|
|
638
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
639
|
+
};
|
|
640
|
+
readonly repo_search: {
|
|
641
|
+
description: string;
|
|
642
|
+
args: {
|
|
643
|
+
repo: import("zod").ZodString;
|
|
644
|
+
query: import("zod").ZodString;
|
|
645
|
+
maxResults: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
646
|
+
};
|
|
647
|
+
execute(args: {
|
|
648
|
+
repo: string;
|
|
649
|
+
query: string;
|
|
650
|
+
maxResults?: number | undefined;
|
|
651
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
652
|
+
};
|
|
653
|
+
readonly swarm_review: {
|
|
654
|
+
description: string;
|
|
655
|
+
args: {
|
|
656
|
+
project_key: import("zod").ZodString;
|
|
657
|
+
epic_id: import("zod").ZodString;
|
|
658
|
+
task_id: import("zod").ZodString;
|
|
659
|
+
files_touched: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
660
|
+
};
|
|
661
|
+
execute(args: {
|
|
662
|
+
project_key: string;
|
|
663
|
+
epic_id: string;
|
|
664
|
+
task_id: string;
|
|
665
|
+
files_touched?: string[] | undefined;
|
|
666
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
667
|
+
};
|
|
668
|
+
readonly swarm_review_feedback: {
|
|
669
|
+
description: string;
|
|
670
|
+
args: {
|
|
671
|
+
project_key: import("zod").ZodString;
|
|
672
|
+
task_id: import("zod").ZodString;
|
|
673
|
+
worker_id: import("zod").ZodString;
|
|
674
|
+
status: import("zod").ZodEnum<{
|
|
675
|
+
approved: "approved";
|
|
676
|
+
needs_changes: "needs_changes";
|
|
677
|
+
}>;
|
|
678
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
679
|
+
issues: import("zod").ZodOptional<import("zod").ZodString>;
|
|
680
|
+
};
|
|
681
|
+
execute(args: {
|
|
682
|
+
project_key: string;
|
|
683
|
+
task_id: string;
|
|
684
|
+
worker_id: string;
|
|
685
|
+
status: "approved" | "needs_changes";
|
|
686
|
+
summary?: string | undefined;
|
|
687
|
+
issues?: string | undefined;
|
|
688
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
689
|
+
};
|
|
690
|
+
readonly swarm_worktree_create: {
|
|
691
|
+
description: string;
|
|
692
|
+
args: {
|
|
693
|
+
project_path: import("zod").ZodString;
|
|
694
|
+
task_id: import("zod").ZodString;
|
|
695
|
+
start_commit: import("zod").ZodString;
|
|
696
|
+
};
|
|
697
|
+
execute(args: {
|
|
698
|
+
project_path: string;
|
|
699
|
+
task_id: string;
|
|
700
|
+
start_commit: string;
|
|
701
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
702
|
+
};
|
|
703
|
+
readonly swarm_worktree_merge: {
|
|
704
|
+
description: string;
|
|
705
|
+
args: {
|
|
706
|
+
project_path: import("zod").ZodString;
|
|
707
|
+
task_id: import("zod").ZodString;
|
|
708
|
+
start_commit: import("zod").ZodOptional<import("zod").ZodString>;
|
|
709
|
+
};
|
|
710
|
+
execute(args: {
|
|
711
|
+
project_path: string;
|
|
712
|
+
task_id: string;
|
|
713
|
+
start_commit?: string | undefined;
|
|
714
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
715
|
+
};
|
|
716
|
+
readonly swarm_worktree_cleanup: {
|
|
717
|
+
description: string;
|
|
718
|
+
args: {
|
|
719
|
+
project_path: import("zod").ZodString;
|
|
720
|
+
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
721
|
+
cleanup_all: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
722
|
+
};
|
|
723
|
+
execute(args: {
|
|
724
|
+
project_path: string;
|
|
725
|
+
task_id?: string | undefined;
|
|
726
|
+
cleanup_all?: boolean | undefined;
|
|
727
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
728
|
+
};
|
|
729
|
+
readonly swarm_worktree_list: {
|
|
730
|
+
description: string;
|
|
731
|
+
args: {
|
|
732
|
+
project_path: import("zod").ZodString;
|
|
733
|
+
};
|
|
734
|
+
execute(args: {
|
|
735
|
+
project_path: string;
|
|
736
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
737
|
+
};
|
|
738
|
+
readonly swarm_adversarial_review: {
|
|
739
|
+
description: string;
|
|
740
|
+
args: {
|
|
741
|
+
diff: import("zod").ZodString;
|
|
742
|
+
test_output: import("zod").ZodOptional<import("zod").ZodString>;
|
|
743
|
+
is_hallucination_test: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
744
|
+
};
|
|
745
|
+
execute(args: {
|
|
746
|
+
diff: string;
|
|
747
|
+
test_output?: string | undefined;
|
|
748
|
+
is_hallucination_test?: boolean | undefined;
|
|
749
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
750
|
+
};
|
|
751
|
+
readonly swarm_init: {
|
|
752
|
+
description: string;
|
|
753
|
+
args: {
|
|
754
|
+
project_path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
755
|
+
isolation: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
756
|
+
reservation: "reservation";
|
|
757
|
+
worktree: "worktree";
|
|
758
|
+
}>>>;
|
|
759
|
+
};
|
|
760
|
+
execute(args: {
|
|
761
|
+
isolation: "reservation" | "worktree";
|
|
762
|
+
project_path?: string | undefined;
|
|
763
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
764
|
+
};
|
|
765
|
+
readonly swarm_status: {
|
|
766
|
+
description: string;
|
|
767
|
+
args: {
|
|
768
|
+
epic_id: import("zod").ZodString;
|
|
769
|
+
project_key: import("zod").ZodString;
|
|
770
|
+
};
|
|
771
|
+
execute(args: {
|
|
772
|
+
epic_id: string;
|
|
773
|
+
project_key: string;
|
|
774
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
775
|
+
};
|
|
776
|
+
readonly swarm_progress: {
|
|
777
|
+
description: string;
|
|
778
|
+
args: {
|
|
779
|
+
project_key: import("zod").ZodString;
|
|
780
|
+
agent_name: import("zod").ZodString;
|
|
781
|
+
bead_id: import("zod").ZodString;
|
|
782
|
+
status: import("zod").ZodEnum<{
|
|
783
|
+
in_progress: "in_progress";
|
|
784
|
+
blocked: "blocked";
|
|
785
|
+
failed: "failed";
|
|
786
|
+
completed: "completed";
|
|
787
|
+
}>;
|
|
788
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
789
|
+
progress_percent: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
790
|
+
files_touched: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
791
|
+
};
|
|
792
|
+
execute(args: {
|
|
793
|
+
project_key: string;
|
|
794
|
+
agent_name: string;
|
|
795
|
+
bead_id: string;
|
|
796
|
+
status: "in_progress" | "blocked" | "failed" | "completed";
|
|
797
|
+
message?: string | undefined;
|
|
798
|
+
progress_percent?: number | undefined;
|
|
799
|
+
files_touched?: string[] | undefined;
|
|
800
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
801
|
+
};
|
|
802
|
+
readonly swarm_broadcast: {
|
|
803
|
+
description: string;
|
|
804
|
+
args: {
|
|
805
|
+
project_path: import("zod").ZodString;
|
|
806
|
+
agent_name: import("zod").ZodString;
|
|
807
|
+
epic_id: import("zod").ZodString;
|
|
808
|
+
message: import("zod").ZodString;
|
|
809
|
+
importance: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
810
|
+
info: "info";
|
|
811
|
+
warning: "warning";
|
|
812
|
+
blocker: "blocker";
|
|
813
|
+
}>>;
|
|
814
|
+
files_affected: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
815
|
+
};
|
|
816
|
+
execute(args: {
|
|
817
|
+
project_path: string;
|
|
818
|
+
agent_name: string;
|
|
819
|
+
epic_id: string;
|
|
820
|
+
message: string;
|
|
821
|
+
importance: "info" | "warning" | "blocker";
|
|
822
|
+
files_affected?: string[] | undefined;
|
|
823
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
824
|
+
};
|
|
825
|
+
readonly swarm_complete: {
|
|
826
|
+
description: string;
|
|
827
|
+
args: {
|
|
828
|
+
project_key: import("zod").ZodString;
|
|
829
|
+
agent_name: import("zod").ZodString;
|
|
830
|
+
bead_id: import("zod").ZodString;
|
|
831
|
+
summary: import("zod").ZodString;
|
|
832
|
+
evaluation: import("zod").ZodOptional<import("zod").ZodString>;
|
|
833
|
+
files_touched: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
834
|
+
skip_verification: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
835
|
+
planned_files: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
836
|
+
start_time: import("zod").ZodNumber;
|
|
837
|
+
error_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
838
|
+
retry_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
839
|
+
skip_review: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
840
|
+
};
|
|
841
|
+
execute(args: {
|
|
842
|
+
project_key: string;
|
|
843
|
+
agent_name: string;
|
|
844
|
+
bead_id: string;
|
|
845
|
+
summary: string;
|
|
846
|
+
start_time: number;
|
|
847
|
+
evaluation?: string | undefined;
|
|
848
|
+
files_touched?: string[] | undefined;
|
|
849
|
+
skip_verification?: boolean | undefined;
|
|
850
|
+
planned_files?: string[] | undefined;
|
|
851
|
+
error_count?: number | undefined;
|
|
852
|
+
retry_count?: number | undefined;
|
|
853
|
+
skip_review?: boolean | undefined;
|
|
854
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
855
|
+
};
|
|
856
|
+
readonly swarm_record_outcome: {
|
|
857
|
+
description: string;
|
|
858
|
+
args: {
|
|
859
|
+
bead_id: import("zod").ZodString;
|
|
860
|
+
duration_ms: import("zod").ZodNumber;
|
|
861
|
+
error_count: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
862
|
+
retry_count: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
863
|
+
success: import("zod").ZodBoolean;
|
|
864
|
+
files_touched: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
865
|
+
criteria: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
866
|
+
strategy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
867
|
+
"file-based": "file-based";
|
|
868
|
+
"feature-based": "feature-based";
|
|
869
|
+
"risk-based": "risk-based";
|
|
870
|
+
"research-based": "research-based";
|
|
871
|
+
}>>;
|
|
872
|
+
failure_mode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
873
|
+
timeout: "timeout";
|
|
874
|
+
unknown: "unknown";
|
|
875
|
+
conflict: "conflict";
|
|
876
|
+
validation: "validation";
|
|
877
|
+
tool_failure: "tool_failure";
|
|
878
|
+
context_overflow: "context_overflow";
|
|
879
|
+
dependency_blocked: "dependency_blocked";
|
|
880
|
+
user_cancelled: "user_cancelled";
|
|
881
|
+
}>>;
|
|
882
|
+
failure_details: import("zod").ZodOptional<import("zod").ZodString>;
|
|
883
|
+
project_path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
884
|
+
epic_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
885
|
+
};
|
|
886
|
+
execute(args: {
|
|
887
|
+
bead_id: string;
|
|
888
|
+
duration_ms: number;
|
|
889
|
+
error_count: number;
|
|
890
|
+
retry_count: number;
|
|
891
|
+
success: boolean;
|
|
892
|
+
files_touched?: string[] | undefined;
|
|
893
|
+
criteria?: string[] | undefined;
|
|
894
|
+
strategy?: "file-based" | "feature-based" | "risk-based" | "research-based" | undefined;
|
|
895
|
+
failure_mode?: "timeout" | "unknown" | "conflict" | "validation" | "tool_failure" | "context_overflow" | "dependency_blocked" | "user_cancelled" | undefined;
|
|
896
|
+
failure_details?: string | undefined;
|
|
897
|
+
project_path?: string | undefined;
|
|
898
|
+
epic_id?: string | undefined;
|
|
899
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
900
|
+
};
|
|
901
|
+
readonly swarm_research_phase: {
|
|
902
|
+
description: string;
|
|
903
|
+
args: {
|
|
904
|
+
task: import("zod").ZodString;
|
|
905
|
+
project_path: import("zod").ZodString;
|
|
906
|
+
check_upgrades: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
907
|
+
};
|
|
908
|
+
execute(args: {
|
|
909
|
+
task: string;
|
|
910
|
+
project_path: string;
|
|
911
|
+
check_upgrades?: boolean | undefined;
|
|
912
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
913
|
+
};
|
|
914
|
+
readonly swarm_accumulate_error: {
|
|
915
|
+
description: string;
|
|
916
|
+
args: {
|
|
917
|
+
bead_id: import("zod").ZodString;
|
|
918
|
+
error_type: import("zod").ZodEnum<{
|
|
919
|
+
timeout: "timeout";
|
|
920
|
+
unknown: "unknown";
|
|
921
|
+
conflict: "conflict";
|
|
922
|
+
validation: "validation";
|
|
923
|
+
tool_failure: "tool_failure";
|
|
924
|
+
}>;
|
|
925
|
+
message: import("zod").ZodString;
|
|
926
|
+
stack_trace: import("zod").ZodOptional<import("zod").ZodString>;
|
|
927
|
+
tool_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
928
|
+
context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
929
|
+
};
|
|
930
|
+
execute(args: {
|
|
931
|
+
bead_id: string;
|
|
932
|
+
error_type: "timeout" | "unknown" | "conflict" | "validation" | "tool_failure";
|
|
933
|
+
message: string;
|
|
934
|
+
stack_trace?: string | undefined;
|
|
935
|
+
tool_name?: string | undefined;
|
|
936
|
+
context?: string | undefined;
|
|
937
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
938
|
+
};
|
|
939
|
+
readonly swarm_get_error_context: {
|
|
940
|
+
description: string;
|
|
941
|
+
args: {
|
|
942
|
+
bead_id: import("zod").ZodString;
|
|
943
|
+
include_resolved: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
944
|
+
};
|
|
945
|
+
execute(args: {
|
|
946
|
+
bead_id: string;
|
|
947
|
+
include_resolved?: boolean | undefined;
|
|
948
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
949
|
+
};
|
|
950
|
+
readonly swarm_resolve_error: {
|
|
951
|
+
description: string;
|
|
952
|
+
args: {
|
|
953
|
+
error_id: import("zod").ZodString;
|
|
954
|
+
};
|
|
955
|
+
execute(args: {
|
|
956
|
+
error_id: string;
|
|
957
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
958
|
+
};
|
|
959
|
+
readonly swarm_check_strikes: {
|
|
960
|
+
description: string;
|
|
961
|
+
args: {
|
|
962
|
+
bead_id: import("zod").ZodString;
|
|
963
|
+
action: import("zod").ZodEnum<{
|
|
964
|
+
check: "check";
|
|
965
|
+
add_strike: "add_strike";
|
|
966
|
+
clear: "clear";
|
|
967
|
+
get_prompt: "get_prompt";
|
|
968
|
+
}>;
|
|
969
|
+
attempt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
970
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
971
|
+
};
|
|
972
|
+
execute(args: {
|
|
973
|
+
bead_id: string;
|
|
974
|
+
action: "check" | "add_strike" | "clear" | "get_prompt";
|
|
975
|
+
attempt?: string | undefined;
|
|
976
|
+
reason?: string | undefined;
|
|
977
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
978
|
+
};
|
|
979
|
+
readonly swarm_checkpoint: {
|
|
980
|
+
description: string;
|
|
981
|
+
args: {
|
|
982
|
+
project_key: import("zod").ZodString;
|
|
983
|
+
agent_name: import("zod").ZodString;
|
|
984
|
+
bead_id: import("zod").ZodString;
|
|
985
|
+
epic_id: import("zod").ZodString;
|
|
986
|
+
files_modified: import("zod").ZodArray<import("zod").ZodString>;
|
|
987
|
+
progress_percent: import("zod").ZodNumber;
|
|
988
|
+
directives: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
989
|
+
shared_context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
990
|
+
skills_to_load: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
991
|
+
coordinator_notes: import("zod").ZodOptional<import("zod").ZodString>;
|
|
992
|
+
}, import("zod/v4/core").$strip>>;
|
|
993
|
+
error_context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
994
|
+
};
|
|
995
|
+
execute(args: {
|
|
996
|
+
project_key: string;
|
|
997
|
+
agent_name: string;
|
|
998
|
+
bead_id: string;
|
|
999
|
+
epic_id: string;
|
|
1000
|
+
files_modified: string[];
|
|
1001
|
+
progress_percent: number;
|
|
1002
|
+
directives?: {
|
|
1003
|
+
shared_context?: string | undefined;
|
|
1004
|
+
skills_to_load?: string[] | undefined;
|
|
1005
|
+
coordinator_notes?: string | undefined;
|
|
1006
|
+
} | undefined;
|
|
1007
|
+
error_context?: string | undefined;
|
|
1008
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1009
|
+
};
|
|
1010
|
+
readonly swarm_recover: {
|
|
1011
|
+
description: string;
|
|
1012
|
+
args: {
|
|
1013
|
+
project_key: import("zod").ZodString;
|
|
1014
|
+
epic_id: import("zod").ZodString;
|
|
1015
|
+
};
|
|
1016
|
+
execute(args: {
|
|
1017
|
+
project_key: string;
|
|
1018
|
+
epic_id: string;
|
|
1019
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1020
|
+
};
|
|
1021
|
+
readonly swarm_learn: {
|
|
1022
|
+
description: string;
|
|
1023
|
+
args: {
|
|
1024
|
+
summary: import("zod").ZodString;
|
|
1025
|
+
pattern_type: import("zod").ZodEnum<{
|
|
1026
|
+
"code-pattern": "code-pattern";
|
|
1027
|
+
"best-practice": "best-practice";
|
|
1028
|
+
gotcha: "gotcha";
|
|
1029
|
+
"tool-usage": "tool-usage";
|
|
1030
|
+
"domain-knowledge": "domain-knowledge";
|
|
1031
|
+
workflow: "workflow";
|
|
1032
|
+
}>;
|
|
1033
|
+
details: import("zod").ZodString;
|
|
1034
|
+
example: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1035
|
+
when_to_use: import("zod").ZodString;
|
|
1036
|
+
files_context: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1037
|
+
create_skill: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1038
|
+
skill_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1039
|
+
skill_tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1040
|
+
};
|
|
1041
|
+
execute(args: {
|
|
1042
|
+
summary: string;
|
|
1043
|
+
pattern_type: "code-pattern" | "best-practice" | "gotcha" | "tool-usage" | "domain-knowledge" | "workflow";
|
|
1044
|
+
details: string;
|
|
1045
|
+
when_to_use: string;
|
|
1046
|
+
example?: string | undefined;
|
|
1047
|
+
files_context?: string[] | undefined;
|
|
1048
|
+
create_skill?: boolean | undefined;
|
|
1049
|
+
skill_name?: string | undefined;
|
|
1050
|
+
skill_tags?: string[] | undefined;
|
|
1051
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1052
|
+
};
|
|
1053
|
+
readonly swarm_subtask_prompt: {
|
|
1054
|
+
description: string;
|
|
1055
|
+
args: {
|
|
1056
|
+
agent_name: import("zod").ZodString;
|
|
1057
|
+
bead_id: import("zod").ZodString;
|
|
1058
|
+
epic_id: import("zod").ZodString;
|
|
1059
|
+
subtask_title: import("zod").ZodString;
|
|
1060
|
+
subtask_description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1061
|
+
files: import("zod").ZodArray<import("zod").ZodString>;
|
|
1062
|
+
shared_context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1063
|
+
project_path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1064
|
+
};
|
|
1065
|
+
execute(args: {
|
|
1066
|
+
agent_name: string;
|
|
1067
|
+
bead_id: string;
|
|
1068
|
+
epic_id: string;
|
|
1069
|
+
subtask_title: string;
|
|
1070
|
+
files: string[];
|
|
1071
|
+
subtask_description?: string | undefined;
|
|
1072
|
+
shared_context?: string | undefined;
|
|
1073
|
+
project_path?: string | undefined;
|
|
1074
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1075
|
+
};
|
|
1076
|
+
readonly swarm_spawn_subtask: {
|
|
1077
|
+
description: string;
|
|
1078
|
+
args: {
|
|
1079
|
+
bead_id: import("zod").ZodString;
|
|
1080
|
+
epic_id: import("zod").ZodString;
|
|
1081
|
+
subtask_title: import("zod").ZodString;
|
|
1082
|
+
subtask_description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1083
|
+
files: import("zod").ZodArray<import("zod").ZodString>;
|
|
1084
|
+
shared_context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1085
|
+
project_path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1086
|
+
recovery_context: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1087
|
+
shared_context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1088
|
+
skills_to_load: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1089
|
+
coordinator_notes: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1090
|
+
}, import("zod/v4/core").$strip>>;
|
|
1091
|
+
model: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1092
|
+
};
|
|
1093
|
+
execute(args: {
|
|
1094
|
+
bead_id: string;
|
|
1095
|
+
epic_id: string;
|
|
1096
|
+
subtask_title: string;
|
|
1097
|
+
files: string[];
|
|
1098
|
+
subtask_description?: string | undefined;
|
|
1099
|
+
shared_context?: string | undefined;
|
|
1100
|
+
project_path?: string | undefined;
|
|
1101
|
+
recovery_context?: {
|
|
1102
|
+
shared_context?: string | undefined;
|
|
1103
|
+
skills_to_load?: string[] | undefined;
|
|
1104
|
+
coordinator_notes?: string | undefined;
|
|
1105
|
+
} | undefined;
|
|
1106
|
+
model?: string | undefined;
|
|
1107
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1108
|
+
};
|
|
1109
|
+
readonly swarm_spawn_researcher: {
|
|
1110
|
+
description: string;
|
|
1111
|
+
args: {
|
|
1112
|
+
research_id: import("zod").ZodString;
|
|
1113
|
+
epic_id: import("zod").ZodString;
|
|
1114
|
+
tech_stack: import("zod").ZodArray<import("zod").ZodString>;
|
|
1115
|
+
project_path: import("zod").ZodString;
|
|
1116
|
+
check_upgrades: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1117
|
+
};
|
|
1118
|
+
execute(args: {
|
|
1119
|
+
research_id: string;
|
|
1120
|
+
epic_id: string;
|
|
1121
|
+
tech_stack: string[];
|
|
1122
|
+
project_path: string;
|
|
1123
|
+
check_upgrades?: boolean | undefined;
|
|
1124
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1125
|
+
};
|
|
1126
|
+
readonly swarm_spawn_retry: {
|
|
1127
|
+
description: string;
|
|
1128
|
+
args: {
|
|
1129
|
+
bead_id: import("zod").ZodString;
|
|
1130
|
+
epic_id: import("zod").ZodString;
|
|
1131
|
+
original_prompt: import("zod").ZodString;
|
|
1132
|
+
attempt: import("zod").ZodNumber;
|
|
1133
|
+
issues: import("zod").ZodString;
|
|
1134
|
+
diff: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1135
|
+
files: import("zod").ZodArray<import("zod").ZodString>;
|
|
1136
|
+
project_path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1137
|
+
};
|
|
1138
|
+
execute(args: {
|
|
1139
|
+
bead_id: string;
|
|
1140
|
+
epic_id: string;
|
|
1141
|
+
original_prompt: string;
|
|
1142
|
+
attempt: number;
|
|
1143
|
+
issues: string;
|
|
1144
|
+
files: string[];
|
|
1145
|
+
diff?: string | undefined;
|
|
1146
|
+
project_path?: string | undefined;
|
|
1147
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1148
|
+
};
|
|
1149
|
+
readonly swarm_evaluation_prompt: {
|
|
1150
|
+
description: string;
|
|
1151
|
+
args: {
|
|
1152
|
+
bead_id: import("zod").ZodString;
|
|
1153
|
+
subtask_title: import("zod").ZodString;
|
|
1154
|
+
files_touched: import("zod").ZodArray<import("zod").ZodString>;
|
|
1155
|
+
};
|
|
1156
|
+
execute(args: {
|
|
1157
|
+
bead_id: string;
|
|
1158
|
+
subtask_title: string;
|
|
1159
|
+
files_touched: string[];
|
|
1160
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1161
|
+
};
|
|
1162
|
+
readonly swarm_plan_prompt: {
|
|
1163
|
+
description: string;
|
|
1164
|
+
args: {
|
|
1165
|
+
task: import("zod").ZodString;
|
|
1166
|
+
strategy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1167
|
+
"file-based": "file-based";
|
|
1168
|
+
"feature-based": "feature-based";
|
|
1169
|
+
"risk-based": "risk-based";
|
|
1170
|
+
auto: "auto";
|
|
1171
|
+
}>>;
|
|
1172
|
+
context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1173
|
+
query_cass: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1174
|
+
cass_limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1175
|
+
include_skills: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1176
|
+
};
|
|
1177
|
+
execute(args: {
|
|
1178
|
+
task: string;
|
|
1179
|
+
strategy?: "file-based" | "feature-based" | "risk-based" | "auto" | undefined;
|
|
1180
|
+
context?: string | undefined;
|
|
1181
|
+
query_cass?: boolean | undefined;
|
|
1182
|
+
cass_limit?: number | undefined;
|
|
1183
|
+
include_skills?: boolean | undefined;
|
|
1184
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1185
|
+
};
|
|
1186
|
+
readonly swarm_decompose: {
|
|
1187
|
+
description: string;
|
|
1188
|
+
args: {
|
|
1189
|
+
task: import("zod").ZodString;
|
|
1190
|
+
context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1191
|
+
query_cass: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1192
|
+
cass_limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1193
|
+
};
|
|
1194
|
+
execute(args: {
|
|
1195
|
+
task: string;
|
|
1196
|
+
context?: string | undefined;
|
|
1197
|
+
query_cass?: boolean | undefined;
|
|
1198
|
+
cass_limit?: number | undefined;
|
|
1199
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1200
|
+
};
|
|
1201
|
+
readonly swarm_validate_decomposition: {
|
|
1202
|
+
description: string;
|
|
1203
|
+
args: {
|
|
1204
|
+
response: import("zod").ZodString;
|
|
1205
|
+
project_path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1206
|
+
task: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1207
|
+
context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1208
|
+
strategy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1209
|
+
"file-based": "file-based";
|
|
1210
|
+
"feature-based": "feature-based";
|
|
1211
|
+
"risk-based": "risk-based";
|
|
1212
|
+
auto: "auto";
|
|
1213
|
+
}>>;
|
|
1214
|
+
epic_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1215
|
+
};
|
|
1216
|
+
execute(args: {
|
|
1217
|
+
response: string;
|
|
1218
|
+
project_path?: string | undefined;
|
|
1219
|
+
task?: string | undefined;
|
|
1220
|
+
context?: string | undefined;
|
|
1221
|
+
strategy?: "file-based" | "feature-based" | "risk-based" | "auto" | undefined;
|
|
1222
|
+
epic_id?: string | undefined;
|
|
1223
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1224
|
+
};
|
|
1225
|
+
readonly swarm_delegate_planning: {
|
|
1226
|
+
description: string;
|
|
1227
|
+
args: {
|
|
1228
|
+
task: import("zod").ZodString;
|
|
1229
|
+
context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1230
|
+
strategy: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1231
|
+
"file-based": "file-based";
|
|
1232
|
+
"feature-based": "feature-based";
|
|
1233
|
+
"risk-based": "risk-based";
|
|
1234
|
+
auto: "auto";
|
|
1235
|
+
}>>>;
|
|
1236
|
+
query_cass: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
1237
|
+
};
|
|
1238
|
+
execute(args: {
|
|
1239
|
+
task: string;
|
|
1240
|
+
strategy: "file-based" | "feature-based" | "risk-based" | "auto";
|
|
1241
|
+
query_cass: boolean;
|
|
1242
|
+
context?: string | undefined;
|
|
1243
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1244
|
+
};
|
|
1245
|
+
readonly swarm_plan_interactive: {
|
|
1246
|
+
description: string;
|
|
1247
|
+
args: {
|
|
1248
|
+
task: import("zod").ZodString;
|
|
1249
|
+
mode: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
1250
|
+
auto: "auto";
|
|
1251
|
+
socratic: "socratic";
|
|
1252
|
+
fast: "fast";
|
|
1253
|
+
"confirm-only": "confirm-only";
|
|
1254
|
+
}>>;
|
|
1255
|
+
context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1256
|
+
user_response: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1257
|
+
phase: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1258
|
+
ready: "ready";
|
|
1259
|
+
alternatives: "alternatives";
|
|
1260
|
+
questioning: "questioning";
|
|
1261
|
+
recommendation: "recommendation";
|
|
1262
|
+
}>>;
|
|
1263
|
+
};
|
|
1264
|
+
execute(args: {
|
|
1265
|
+
task: string;
|
|
1266
|
+
mode: "auto" | "socratic" | "fast" | "confirm-only";
|
|
1267
|
+
context?: string | undefined;
|
|
1268
|
+
user_response?: string | undefined;
|
|
1269
|
+
phase?: "ready" | "alternatives" | "questioning" | "recommendation" | undefined;
|
|
1270
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1271
|
+
};
|
|
1272
|
+
readonly swarm_select_strategy: {
|
|
1273
|
+
description: string;
|
|
1274
|
+
args: {
|
|
1275
|
+
task: import("zod").ZodString;
|
|
1276
|
+
codebase_context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1277
|
+
projectKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1278
|
+
};
|
|
1279
|
+
execute(args: {
|
|
1280
|
+
task: string;
|
|
1281
|
+
codebase_context?: string | undefined;
|
|
1282
|
+
projectKey?: string | undefined;
|
|
1283
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1284
|
+
};
|
|
1285
|
+
readonly structured_extract_json: {
|
|
1286
|
+
description: string;
|
|
1287
|
+
args: {
|
|
1288
|
+
text: import("zod").ZodString;
|
|
1289
|
+
};
|
|
1290
|
+
execute(args: {
|
|
1291
|
+
text: string;
|
|
1292
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1293
|
+
};
|
|
1294
|
+
readonly structured_validate: {
|
|
1295
|
+
description: string;
|
|
1296
|
+
args: {
|
|
1297
|
+
response: import("zod").ZodString;
|
|
1298
|
+
schema_name: import("zod").ZodEnum<{
|
|
1299
|
+
evaluation: "evaluation";
|
|
1300
|
+
task_decomposition: "task_decomposition";
|
|
1301
|
+
cell_tree: "cell_tree";
|
|
1302
|
+
}>;
|
|
1303
|
+
max_retries: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1304
|
+
};
|
|
1305
|
+
execute(args: {
|
|
1306
|
+
response: string;
|
|
1307
|
+
schema_name: "evaluation" | "task_decomposition" | "cell_tree";
|
|
1308
|
+
max_retries?: number | undefined;
|
|
1309
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1310
|
+
};
|
|
1311
|
+
readonly structured_parse_evaluation: {
|
|
1312
|
+
description: string;
|
|
1313
|
+
args: {
|
|
1314
|
+
response: import("zod").ZodString;
|
|
1315
|
+
};
|
|
1316
|
+
execute(args: {
|
|
1317
|
+
response: string;
|
|
1318
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1319
|
+
};
|
|
1320
|
+
readonly structured_parse_decomposition: {
|
|
1321
|
+
description: string;
|
|
1322
|
+
args: {
|
|
1323
|
+
response: import("zod").ZodString;
|
|
1324
|
+
};
|
|
1325
|
+
execute(args: {
|
|
1326
|
+
response: string;
|
|
1327
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1328
|
+
};
|
|
1329
|
+
readonly structured_parse_cell_tree: {
|
|
1330
|
+
description: string;
|
|
1331
|
+
args: {
|
|
1332
|
+
response: import("zod").ZodString;
|
|
1333
|
+
};
|
|
1334
|
+
execute(args: {
|
|
1335
|
+
response: string;
|
|
1336
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1337
|
+
};
|
|
1338
|
+
readonly swarmmail_init: {
|
|
1339
|
+
description: string;
|
|
1340
|
+
args: {
|
|
1341
|
+
project_path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1342
|
+
agent_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1343
|
+
task_description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1344
|
+
};
|
|
1345
|
+
execute(args: {
|
|
1346
|
+
project_path?: string | undefined;
|
|
1347
|
+
agent_name?: string | undefined;
|
|
1348
|
+
task_description?: string | undefined;
|
|
1349
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1350
|
+
};
|
|
1351
|
+
readonly swarmmail_send: {
|
|
1352
|
+
description: string;
|
|
1353
|
+
args: {
|
|
1354
|
+
to: import("zod").ZodArray<import("zod").ZodString>;
|
|
1355
|
+
subject: import("zod").ZodString;
|
|
1356
|
+
body: import("zod").ZodString;
|
|
1357
|
+
thread_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1358
|
+
importance: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1359
|
+
low: "low";
|
|
1360
|
+
normal: "normal";
|
|
1361
|
+
high: "high";
|
|
1362
|
+
urgent: "urgent";
|
|
1363
|
+
}>>;
|
|
1364
|
+
ack_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1365
|
+
};
|
|
1366
|
+
execute(args: {
|
|
1367
|
+
to: string[];
|
|
1368
|
+
subject: string;
|
|
1369
|
+
body: string;
|
|
1370
|
+
thread_id?: string | undefined;
|
|
1371
|
+
importance?: "low" | "normal" | "high" | "urgent" | undefined;
|
|
1372
|
+
ack_required?: boolean | undefined;
|
|
1373
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1374
|
+
};
|
|
1375
|
+
readonly swarmmail_inbox: {
|
|
1376
|
+
description: string;
|
|
1377
|
+
args: {
|
|
1378
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1379
|
+
urgent_only: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1380
|
+
};
|
|
1381
|
+
execute(args: {
|
|
1382
|
+
limit?: number | undefined;
|
|
1383
|
+
urgent_only?: boolean | undefined;
|
|
1384
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1385
|
+
};
|
|
1386
|
+
readonly swarmmail_read_message: {
|
|
1387
|
+
description: string;
|
|
1388
|
+
args: {
|
|
1389
|
+
message_id: import("zod").ZodNumber;
|
|
1390
|
+
};
|
|
1391
|
+
execute(args: {
|
|
1392
|
+
message_id: number;
|
|
1393
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1394
|
+
};
|
|
1395
|
+
readonly swarmmail_reserve: {
|
|
1396
|
+
description: string;
|
|
1397
|
+
args: {
|
|
1398
|
+
paths: import("zod").ZodArray<import("zod").ZodString>;
|
|
1399
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1400
|
+
exclusive: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1401
|
+
ttl_seconds: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1402
|
+
};
|
|
1403
|
+
execute(args: {
|
|
1404
|
+
paths: string[];
|
|
1405
|
+
reason?: string | undefined;
|
|
1406
|
+
exclusive?: boolean | undefined;
|
|
1407
|
+
ttl_seconds?: number | undefined;
|
|
1408
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1409
|
+
};
|
|
1410
|
+
readonly swarmmail_release: {
|
|
1411
|
+
description: string;
|
|
1412
|
+
args: {
|
|
1413
|
+
paths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1414
|
+
reservation_ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber>>;
|
|
1415
|
+
};
|
|
1416
|
+
execute(args: {
|
|
1417
|
+
paths?: string[] | undefined;
|
|
1418
|
+
reservation_ids?: number[] | undefined;
|
|
1419
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1420
|
+
};
|
|
1421
|
+
readonly swarmmail_release_all: {
|
|
1422
|
+
description: string;
|
|
1423
|
+
args: {};
|
|
1424
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1425
|
+
};
|
|
1426
|
+
readonly swarmmail_release_agent: {
|
|
1427
|
+
description: string;
|
|
1428
|
+
args: {
|
|
1429
|
+
agent_name: import("zod").ZodString;
|
|
1430
|
+
};
|
|
1431
|
+
execute(args: {
|
|
1432
|
+
agent_name: string;
|
|
1433
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1434
|
+
};
|
|
1435
|
+
readonly swarmmail_ack: {
|
|
1436
|
+
description: string;
|
|
1437
|
+
args: {
|
|
1438
|
+
message_id: import("zod").ZodNumber;
|
|
1439
|
+
};
|
|
1440
|
+
execute(args: {
|
|
1441
|
+
message_id: number;
|
|
1442
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1443
|
+
};
|
|
1444
|
+
readonly swarmmail_health: {
|
|
1445
|
+
description: string;
|
|
1446
|
+
args: {};
|
|
1447
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1448
|
+
};
|
|
1449
|
+
readonly hive_create: {
|
|
1450
|
+
description: string;
|
|
1451
|
+
args: {
|
|
1452
|
+
title: import("zod").ZodString;
|
|
1453
|
+
type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1454
|
+
task: "task";
|
|
1455
|
+
bug: "bug";
|
|
1456
|
+
feature: "feature";
|
|
1457
|
+
epic: "epic";
|
|
1458
|
+
chore: "chore";
|
|
1459
|
+
}>>;
|
|
1460
|
+
priority: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1461
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1462
|
+
parent_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1463
|
+
};
|
|
1464
|
+
execute(args: {
|
|
1465
|
+
title: string;
|
|
1466
|
+
type?: "task" | "bug" | "feature" | "epic" | "chore" | undefined;
|
|
1467
|
+
priority?: number | undefined;
|
|
1468
|
+
description?: string | undefined;
|
|
1469
|
+
parent_id?: string | undefined;
|
|
1470
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1471
|
+
};
|
|
1472
|
+
readonly hive_create_epic: {
|
|
1473
|
+
description: string;
|
|
1474
|
+
args: {
|
|
1475
|
+
epic_title: import("zod").ZodString;
|
|
1476
|
+
epic_description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1477
|
+
epic_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1478
|
+
subtasks: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1479
|
+
title: import("zod").ZodString;
|
|
1480
|
+
priority: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1481
|
+
files: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1482
|
+
id_suffix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1483
|
+
}, import("zod/v4/core").$strip>>;
|
|
1484
|
+
strategy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1485
|
+
"file-based": "file-based";
|
|
1486
|
+
"feature-based": "feature-based";
|
|
1487
|
+
"risk-based": "risk-based";
|
|
1488
|
+
}>>;
|
|
1489
|
+
task: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1490
|
+
project_key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1491
|
+
recovery_context: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1492
|
+
shared_context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1493
|
+
skills_to_load: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1494
|
+
coordinator_notes: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1495
|
+
}, import("zod/v4/core").$strip>>;
|
|
1496
|
+
};
|
|
1497
|
+
execute(args: {
|
|
1498
|
+
epic_title: string;
|
|
1499
|
+
subtasks: {
|
|
1500
|
+
title: string;
|
|
1501
|
+
priority?: number | undefined;
|
|
1502
|
+
files?: string[] | undefined;
|
|
1503
|
+
id_suffix?: string | undefined;
|
|
1504
|
+
}[];
|
|
1505
|
+
epic_description?: string | undefined;
|
|
1506
|
+
epic_id?: string | undefined;
|
|
1507
|
+
strategy?: "file-based" | "feature-based" | "risk-based" | undefined;
|
|
1508
|
+
task?: string | undefined;
|
|
1509
|
+
project_key?: string | undefined;
|
|
1510
|
+
recovery_context?: {
|
|
1511
|
+
shared_context?: string | undefined;
|
|
1512
|
+
skills_to_load?: string[] | undefined;
|
|
1513
|
+
coordinator_notes?: string | undefined;
|
|
1514
|
+
} | undefined;
|
|
1515
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1516
|
+
};
|
|
1517
|
+
readonly hive_query: {
|
|
1518
|
+
description: string;
|
|
1519
|
+
args: {
|
|
1520
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1521
|
+
open: "open";
|
|
1522
|
+
in_progress: "in_progress";
|
|
1523
|
+
blocked: "blocked";
|
|
1524
|
+
closed: "closed";
|
|
1525
|
+
}>>;
|
|
1526
|
+
type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1527
|
+
task: "task";
|
|
1528
|
+
bug: "bug";
|
|
1529
|
+
feature: "feature";
|
|
1530
|
+
epic: "epic";
|
|
1531
|
+
chore: "chore";
|
|
1532
|
+
}>>;
|
|
1533
|
+
ready: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1534
|
+
parent_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1535
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1536
|
+
};
|
|
1537
|
+
execute(args: {
|
|
1538
|
+
status?: "open" | "in_progress" | "blocked" | "closed" | undefined;
|
|
1539
|
+
type?: "task" | "bug" | "feature" | "epic" | "chore" | undefined;
|
|
1540
|
+
ready?: boolean | undefined;
|
|
1541
|
+
parent_id?: string | undefined;
|
|
1542
|
+
limit?: number | undefined;
|
|
1543
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1544
|
+
};
|
|
1545
|
+
readonly hive_update: {
|
|
1546
|
+
description: string;
|
|
1547
|
+
args: {
|
|
1548
|
+
id: import("zod").ZodString;
|
|
1549
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1550
|
+
open: "open";
|
|
1551
|
+
in_progress: "in_progress";
|
|
1552
|
+
blocked: "blocked";
|
|
1553
|
+
closed: "closed";
|
|
1554
|
+
}>>;
|
|
1555
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1556
|
+
priority: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1557
|
+
};
|
|
1558
|
+
execute(args: {
|
|
1559
|
+
id: string;
|
|
1560
|
+
status?: "open" | "in_progress" | "blocked" | "closed" | undefined;
|
|
1561
|
+
description?: string | undefined;
|
|
1562
|
+
priority?: number | undefined;
|
|
1563
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1564
|
+
};
|
|
1565
|
+
readonly hive_close: {
|
|
1566
|
+
description: string;
|
|
1567
|
+
args: {
|
|
1568
|
+
id: import("zod").ZodString;
|
|
1569
|
+
reason: import("zod").ZodString;
|
|
1570
|
+
};
|
|
1571
|
+
execute(args: {
|
|
1572
|
+
id: string;
|
|
1573
|
+
reason: string;
|
|
1574
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1575
|
+
};
|
|
1576
|
+
readonly hive_start: {
|
|
1577
|
+
description: string;
|
|
1578
|
+
args: {
|
|
1579
|
+
id: import("zod").ZodString;
|
|
1580
|
+
};
|
|
1581
|
+
execute(args: {
|
|
1582
|
+
id: string;
|
|
1583
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1584
|
+
};
|
|
1585
|
+
readonly hive_ready: {
|
|
1586
|
+
description: string;
|
|
1587
|
+
args: {};
|
|
1588
|
+
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1589
|
+
};
|
|
1590
|
+
readonly hive_cells: {
|
|
1591
|
+
description: string;
|
|
1592
|
+
args: {
|
|
1593
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1594
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1595
|
+
open: "open";
|
|
1596
|
+
in_progress: "in_progress";
|
|
1597
|
+
blocked: "blocked";
|
|
1598
|
+
closed: "closed";
|
|
1599
|
+
}>>;
|
|
1600
|
+
type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1601
|
+
task: "task";
|
|
1602
|
+
bug: "bug";
|
|
1603
|
+
feature: "feature";
|
|
1604
|
+
epic: "epic";
|
|
1605
|
+
chore: "chore";
|
|
1606
|
+
}>>;
|
|
1607
|
+
parent_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1608
|
+
ready: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1609
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1610
|
+
};
|
|
1611
|
+
execute(args: {
|
|
1612
|
+
id?: string | undefined;
|
|
1613
|
+
status?: "open" | "in_progress" | "blocked" | "closed" | undefined;
|
|
1614
|
+
type?: "task" | "bug" | "feature" | "epic" | "chore" | undefined;
|
|
1615
|
+
parent_id?: string | undefined;
|
|
1616
|
+
ready?: boolean | undefined;
|
|
1617
|
+
limit?: number | undefined;
|
|
1618
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1619
|
+
};
|
|
1620
|
+
readonly hive_sync: {
|
|
1621
|
+
description: string;
|
|
1622
|
+
args: {
|
|
1623
|
+
auto_pull: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1624
|
+
};
|
|
1625
|
+
execute(args: {
|
|
1626
|
+
auto_pull?: boolean | undefined;
|
|
1627
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1628
|
+
};
|
|
1629
|
+
readonly hive_link_thread: {
|
|
1630
|
+
description: string;
|
|
1631
|
+
args: {
|
|
1632
|
+
bead_id: import("zod").ZodString;
|
|
1633
|
+
thread_id: import("zod").ZodString;
|
|
1634
|
+
};
|
|
1635
|
+
execute(args: {
|
|
1636
|
+
bead_id: string;
|
|
1637
|
+
thread_id: string;
|
|
1638
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1639
|
+
};
|
|
1640
|
+
readonly hive_session_start: {
|
|
1641
|
+
description: string;
|
|
1642
|
+
args: {
|
|
1643
|
+
active_cell_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1644
|
+
};
|
|
1645
|
+
execute(args: {
|
|
1646
|
+
active_cell_id?: string | undefined;
|
|
1647
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1648
|
+
};
|
|
1649
|
+
readonly hive_session_end: {
|
|
1650
|
+
description: string;
|
|
1651
|
+
args: {
|
|
1652
|
+
handoff_notes: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1653
|
+
};
|
|
1654
|
+
execute(args: {
|
|
1655
|
+
handoff_notes?: string | undefined;
|
|
1656
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1657
|
+
};
|
|
1658
|
+
};
|
|
1659
|
+
/**
|
|
1660
|
+
* Type for CLI tool names (all available tools)
|
|
1661
|
+
*/
|
|
1662
|
+
export type CLIToolName = keyof typeof allTools;
|
|
1663
|
+
/**
|
|
1664
|
+
* Re-export storage module
|
|
1665
|
+
*
|
|
1666
|
+
* Includes:
|
|
1667
|
+
* - createStorage, createStorageWithFallback - Factory functions
|
|
1668
|
+
* - getStorage, setStorage, resetStorage - Global instance management
|
|
1669
|
+
* - InMemoryStorage, SemanticMemoryStorage - Storage implementations
|
|
1670
|
+
* - isSemanticMemoryAvailable - Availability check
|
|
1671
|
+
* - DEFAULT_STORAGE_CONFIG - Default configuration
|
|
1672
|
+
*
|
|
1673
|
+
* Types:
|
|
1674
|
+
* - LearningStorage - Unified storage interface
|
|
1675
|
+
* - StorageConfig, StorageBackend, StorageCollections - Configuration types
|
|
1676
|
+
*/
|
|
1677
|
+
export { createStorage, createStorageWithFallback, getStorage, setStorage, resetStorage, InMemoryStorage, SemanticMemoryStorage, isSemanticMemoryAvailable, DEFAULT_STORAGE_CONFIG, type LearningStorage, type StorageConfig, type StorageBackend, type StorageCollections, } from "./storage";
|
|
1678
|
+
/**
|
|
1679
|
+
* Re-export tool-availability module
|
|
1680
|
+
*
|
|
1681
|
+
* Includes:
|
|
1682
|
+
* - checkTool, isToolAvailable - Check individual tool availability
|
|
1683
|
+
* - checkAllTools - Check all tools at once
|
|
1684
|
+
* - withToolFallback, ifToolAvailable - Execute with graceful fallback
|
|
1685
|
+
* - formatToolAvailability - Format availability for display
|
|
1686
|
+
* - resetToolCache - Reset cached availability (for testing)
|
|
1687
|
+
*
|
|
1688
|
+
* Types:
|
|
1689
|
+
* - ToolName - Supported tool names
|
|
1690
|
+
* - ToolStatus, ToolAvailability - Status types
|
|
1691
|
+
*/
|
|
1692
|
+
export { checkTool, isToolAvailable, checkAllTools, getToolAvailability, withToolFallback, ifToolAvailable, warnMissingTool, requireTool, formatToolAvailability, resetToolCache, type ToolName, type ToolStatus, type ToolAvailability, } from "./tool-availability";
|
|
1693
|
+
/**
|
|
1694
|
+
* Re-export repo-crawl module
|
|
1695
|
+
*
|
|
1696
|
+
* Includes:
|
|
1697
|
+
* - repoCrawlTools - All GitHub API repository research tools
|
|
1698
|
+
* - repo_readme, repo_structure, repo_tree, repo_file, repo_search - Individual tools
|
|
1699
|
+
* - RepoCrawlError - Error class
|
|
1700
|
+
*
|
|
1701
|
+
* Features:
|
|
1702
|
+
* - Parse repos from various formats (owner/repo, URLs)
|
|
1703
|
+
* - Optional GITHUB_TOKEN auth for higher rate limits (5000 vs 60 req/hour)
|
|
1704
|
+
* - Tech stack detection from file patterns
|
|
1705
|
+
* - Graceful rate limit handling
|
|
1706
|
+
*/
|
|
1707
|
+
export { repoCrawlTools, RepoCrawlError } from "./repo-crawl";
|
|
1708
|
+
/**
|
|
1709
|
+
* Re-export skills module
|
|
1710
|
+
*
|
|
1711
|
+
* Implements Anthropic's Agent Skills specification for OpenCode.
|
|
1712
|
+
*
|
|
1713
|
+
* Includes:
|
|
1714
|
+
* - skillsTools - All skills tools (list, use, execute, read)
|
|
1715
|
+
* - discoverSkills, getSkill, listSkills - Discovery functions
|
|
1716
|
+
* - parseFrontmatter - YAML frontmatter parser
|
|
1717
|
+
* - getSkillsContextForSwarm - Swarm integration helper
|
|
1718
|
+
* - findRelevantSkills - Task-based skill matching
|
|
1719
|
+
*
|
|
1720
|
+
* Types:
|
|
1721
|
+
* - Skill, SkillMetadata, SkillRef - Skill data types
|
|
1722
|
+
*/
|
|
1723
|
+
export { skillsTools, discoverSkills, getSkill, listSkills, parseFrontmatter, setSkillsProjectDirectory, invalidateSkillsCache, getSkillsContextForSwarm, findRelevantSkills, type Skill, type SkillMetadata, type SkillRef, } from "./skills";
|
|
1724
|
+
/**
|
|
1725
|
+
* Re-export mandates module
|
|
1726
|
+
*
|
|
1727
|
+
* Agent voting system for collaborative knowledge curation.
|
|
1728
|
+
*
|
|
1729
|
+
* Includes:
|
|
1730
|
+
* - mandateTools - All mandate tools (file, vote, query, list, stats)
|
|
1731
|
+
* - MandateError - Error class
|
|
1732
|
+
*
|
|
1733
|
+
* Features:
|
|
1734
|
+
* - Submit ideas, tips, lore, snippets, and feature requests
|
|
1735
|
+
* - Vote on entries (upvote/downvote) with 90-day decay
|
|
1736
|
+
* - Semantic search for relevant mandates
|
|
1737
|
+
* - Status transitions based on consensus (candidate → established → mandate)
|
|
1738
|
+
* - Persistent storage with semantic-memory
|
|
1739
|
+
*
|
|
1740
|
+
* Types:
|
|
1741
|
+
* - MandateEntry, Vote, MandateScore - Core data types
|
|
1742
|
+
* - MandateStatus, MandateContentType - Enum types
|
|
1743
|
+
*/
|
|
1744
|
+
export { mandateTools, MandateError } from "./mandates";
|
|
1745
|
+
/**
|
|
1746
|
+
* Re-export mandate-storage module
|
|
1747
|
+
*
|
|
1748
|
+
* Includes:
|
|
1749
|
+
* - createMandateStorage - Factory function
|
|
1750
|
+
* - getMandateStorage, setMandateStorage, resetMandateStorage - Global instance management
|
|
1751
|
+
* - updateMandateStatus, updateAllMandateStatuses - Status update helpers
|
|
1752
|
+
* - InMemoryMandateStorage, SemanticMemoryMandateStorage - Storage implementations
|
|
1753
|
+
*
|
|
1754
|
+
* Types:
|
|
1755
|
+
* - MandateStorage - Unified storage interface
|
|
1756
|
+
* - MandateStorageConfig, MandateStorageBackend, MandateStorageCollections - Configuration types
|
|
1757
|
+
*/
|
|
1758
|
+
export { createMandateStorage, getMandateStorage, setMandateStorage, resetMandateStorage, updateMandateStatus, updateAllMandateStatuses, InMemoryMandateStorage, SemanticMemoryMandateStorage, DEFAULT_MANDATE_STORAGE_CONFIG, type MandateStorage, type MandateStorageConfig, type MandateStorageBackend, type MandateStorageCollections, } from "./mandate-storage";
|
|
1759
|
+
/**
|
|
1760
|
+
* Re-export mandate-promotion module
|
|
1761
|
+
*
|
|
1762
|
+
* Includes:
|
|
1763
|
+
* - evaluatePromotion - Evaluate status transitions
|
|
1764
|
+
* - shouldPromote - Determine new status based on score
|
|
1765
|
+
* - formatPromotionResult - Format promotion result for display
|
|
1766
|
+
* - evaluateBatchPromotions, getStatusChanges, groupByTransition - Batch helpers
|
|
1767
|
+
*
|
|
1768
|
+
* Types:
|
|
1769
|
+
* - PromotionResult - Promotion evaluation result
|
|
1770
|
+
*/
|
|
1771
|
+
export { evaluatePromotion, shouldPromote, formatPromotionResult, evaluateBatchPromotions, getStatusChanges, groupByTransition, type PromotionResult, } from "./mandate-promotion";
|
|
1772
|
+
/**
|
|
1773
|
+
* Re-export output-guardrails module
|
|
1774
|
+
*
|
|
1775
|
+
* Includes:
|
|
1776
|
+
* - guardrailOutput - Main entry point for truncating tool output
|
|
1777
|
+
* - truncateWithBoundaries - Smart truncation preserving structure
|
|
1778
|
+
* - getToolLimit - Get character limit for a tool
|
|
1779
|
+
* - DEFAULT_GUARDRAIL_CONFIG - Default configuration
|
|
1780
|
+
*
|
|
1781
|
+
* Types:
|
|
1782
|
+
* - GuardrailConfig - Configuration interface
|
|
1783
|
+
* - GuardrailResult - Result of guardrail processing
|
|
1784
|
+
* - GuardrailMetrics - Analytics data
|
|
1785
|
+
*/
|
|
1786
|
+
export { guardrailOutput, truncateWithBoundaries, createMetrics, DEFAULT_GUARDRAIL_CONFIG, type GuardrailConfig, type GuardrailResult, type GuardrailMetrics, } from "./output-guardrails";
|
|
1787
|
+
/**
|
|
1788
|
+
* Re-export compaction-hook module
|
|
1789
|
+
*
|
|
1790
|
+
* Includes:
|
|
1791
|
+
* - SWARM_COMPACTION_CONTEXT - Prompt text for swarm state preservation
|
|
1792
|
+
* - createCompactionHook - Factory function for the compaction hook
|
|
1793
|
+
* - scanSessionMessages - Scan session for swarm state
|
|
1794
|
+
* - ScannedSwarmState - Scanned state interface
|
|
1795
|
+
*
|
|
1796
|
+
* Usage:
|
|
1797
|
+
* ```typescript
|
|
1798
|
+
* import { createCompactionHook } from "opencode-swarm-plugin";
|
|
1799
|
+
*
|
|
1800
|
+
* const hooks = {
|
|
1801
|
+
* "experimental.session.compacting": createCompactionHook(),
|
|
1802
|
+
* };
|
|
1803
|
+
* ```
|
|
1804
|
+
*/
|
|
1805
|
+
export { SWARM_COMPACTION_CONTEXT, createCompactionHook, scanSessionMessages, type ScannedSwarmState, } from "./compaction-hook";
|
|
1806
|
+
/**
|
|
1807
|
+
* Re-export compaction-observability module
|
|
1808
|
+
*
|
|
1809
|
+
* Includes:
|
|
1810
|
+
* - CompactionPhase - Enum of compaction phases
|
|
1811
|
+
* - createMetricsCollector - Create a metrics collector
|
|
1812
|
+
* - recordPhaseStart, recordPhaseComplete - Phase timing
|
|
1813
|
+
* - recordPatternExtracted, recordPatternSkipped - Pattern tracking
|
|
1814
|
+
* - getMetricsSummary - Get metrics summary
|
|
1815
|
+
*
|
|
1816
|
+
* Types:
|
|
1817
|
+
* - CompactionMetrics - Mutable metrics collector
|
|
1818
|
+
* - CompactionMetricsSummary - Read-only summary snapshot
|
|
1819
|
+
*
|
|
1820
|
+
* Features:
|
|
1821
|
+
* - Phase timing breakdown (START, GATHER, DETECT, INJECT, COMPLETE)
|
|
1822
|
+
* - Pattern extraction tracking with reasons
|
|
1823
|
+
* - Success rate calculation
|
|
1824
|
+
* - Debug mode for verbose details
|
|
1825
|
+
* - JSON serializable for persistence
|
|
1826
|
+
*
|
|
1827
|
+
* Usage:
|
|
1828
|
+
* ```typescript
|
|
1829
|
+
* import { createMetricsCollector, CompactionPhase, recordPhaseStart } from "opencode-swarm-plugin";
|
|
1830
|
+
*
|
|
1831
|
+
* const metrics = createMetricsCollector({ session_id: "abc123" });
|
|
1832
|
+
* recordPhaseStart(metrics, CompactionPhase.DETECT);
|
|
1833
|
+
* // ... work ...
|
|
1834
|
+
* recordPhaseComplete(metrics, CompactionPhase.DETECT);
|
|
1835
|
+
* const summary = getMetricsSummary(metrics);
|
|
1836
|
+
* ```
|
|
1837
|
+
*/
|
|
1838
|
+
export { CompactionPhase, createMetricsCollector, recordPhaseStart, recordPhaseComplete, recordPatternExtracted, recordPatternSkipped, getMetricsSummary, type CompactionMetrics, type CompactionMetricsSummary, } from "./compaction-observability";
|
|
1839
|
+
/**
|
|
1840
|
+
* Re-export memory module
|
|
1841
|
+
*
|
|
1842
|
+
* Includes:
|
|
1843
|
+
* - memoryTools - All semantic-memory tools (store, find, get, remove, validate, list, stats, check)
|
|
1844
|
+
* - createMemoryAdapter - Factory function for memory adapter
|
|
1845
|
+
* - resetMemoryCache - Cache management for testing
|
|
1846
|
+
*
|
|
1847
|
+
* Types:
|
|
1848
|
+
* - MemoryAdapter - Memory adapter interface
|
|
1849
|
+
* - StoreArgs, FindArgs, IdArgs, ListArgs - Tool argument types
|
|
1850
|
+
* - StoreResult, FindResult, StatsResult, HealthResult, OperationResult - Result types
|
|
1851
|
+
*/
|
|
1852
|
+
export { memoryTools, createMemoryAdapter, resetMemoryCache, type MemoryAdapter, type StoreArgs, type FindArgs, type IdArgs, type ListArgs, type StoreResult, type FindResult, type StatsResult, type HealthResult, type OperationResult, } from "./memory-tools";
|
|
1853
|
+
export type { Memory, SearchResult, SearchOptions } from "swarm-mail";
|
|
1854
|
+
/**
|
|
1855
|
+
* Re-export eval-history module
|
|
1856
|
+
*
|
|
1857
|
+
* Includes:
|
|
1858
|
+
* - recordEvalRun - Record eval run to JSONL history
|
|
1859
|
+
* - getScoreHistory - Get score history for a specific eval
|
|
1860
|
+
* - getPhase - Get current phase based on run count and variance
|
|
1861
|
+
* - calculateVariance - Calculate statistical variance of scores
|
|
1862
|
+
* - ensureEvalHistoryDir - Ensure history directory exists
|
|
1863
|
+
* - getEvalHistoryPath - Get path to eval history file
|
|
1864
|
+
*
|
|
1865
|
+
* Constants:
|
|
1866
|
+
* - DEFAULT_EVAL_HISTORY_PATH - Default path (.opencode/eval-history.jsonl)
|
|
1867
|
+
* - VARIANCE_THRESHOLD - Variance threshold for production phase (0.1)
|
|
1868
|
+
* - BOOTSTRAP_THRESHOLD - Run count for bootstrap phase (10)
|
|
1869
|
+
* - STABILIZATION_THRESHOLD - Run count for stabilization phase (50)
|
|
1870
|
+
*
|
|
1871
|
+
* Types:
|
|
1872
|
+
* - Phase - Progressive phases (bootstrap | stabilization | production)
|
|
1873
|
+
* - EvalRunRecord - Single eval run record
|
|
1874
|
+
*/
|
|
1875
|
+
export { recordEvalRun, getScoreHistory, getPhase, calculateVariance, ensureEvalHistoryDir, getEvalHistoryPath, DEFAULT_EVAL_HISTORY_PATH, VARIANCE_THRESHOLD, BOOTSTRAP_THRESHOLD, STABILIZATION_THRESHOLD, type Phase, type EvalRunRecord, } from "./eval-history";
|
|
1876
|
+
/**
|
|
1877
|
+
* Re-export eval-gates module
|
|
1878
|
+
*
|
|
1879
|
+
* Includes:
|
|
1880
|
+
* - checkGate - Check if current score passes quality gate
|
|
1881
|
+
* - DEFAULT_THRESHOLDS - Default regression thresholds by phase
|
|
1882
|
+
*
|
|
1883
|
+
* Types:
|
|
1884
|
+
* - GateResult - Result from gate check
|
|
1885
|
+
* - GateConfig - Configuration for gate thresholds
|
|
1886
|
+
*
|
|
1887
|
+
* Features:
|
|
1888
|
+
* - Phase-based regression thresholds (Bootstrap: none, Stabilization: 10%, Production: 5%)
|
|
1889
|
+
* - Configurable thresholds via GateConfig
|
|
1890
|
+
* - Clear pass/fail messages with baseline comparison
|
|
1891
|
+
* - Handles edge cases (division by zero, no history)
|
|
1892
|
+
*/
|
|
1893
|
+
export { checkGate, DEFAULT_THRESHOLDS, type GateResult, type GateConfig, } from "./eval-gates";
|
|
1894
|
+
/**
|
|
1895
|
+
* Re-export logger infrastructure
|
|
1896
|
+
*
|
|
1897
|
+
* Includes:
|
|
1898
|
+
* - getLogger - Gets or creates the main logger instance
|
|
1899
|
+
* - createChildLogger - Creates a module-specific child logger with separate log file
|
|
1900
|
+
* - logger - Default logger instance for immediate use
|
|
1901
|
+
*
|
|
1902
|
+
* Features:
|
|
1903
|
+
* - Default: stdout JSON logging (works everywhere)
|
|
1904
|
+
* - File logging: SWARM_LOG_FILE=1 writes to ~/.config/swarm-tools/logs/
|
|
1905
|
+
* - Module-specific child loggers
|
|
1906
|
+
* - For pretty output: pipe to pino-pretty (`swarm ... | npx pino-pretty`)
|
|
1907
|
+
*
|
|
1908
|
+
* @example
|
|
1909
|
+
* ```typescript
|
|
1910
|
+
* import { logger, createChildLogger } from "opencode-swarm-plugin";
|
|
1911
|
+
*
|
|
1912
|
+
* // Use default logger
|
|
1913
|
+
* logger.info("Application started");
|
|
1914
|
+
*
|
|
1915
|
+
* // Create module-specific logger
|
|
1916
|
+
* const compactionLog = createChildLogger("compaction");
|
|
1917
|
+
* compactionLog.info("Compaction started");
|
|
1918
|
+
* ```
|
|
1919
|
+
*/
|
|
1920
|
+
export { getLogger, createChildLogger, logger } from "./logger";
|
|
1921
|
+
/**
|
|
1922
|
+
* Re-export swarm-research module
|
|
1923
|
+
*
|
|
1924
|
+
* Includes:
|
|
1925
|
+
* - discoverDocTools - Discover available documentation tools
|
|
1926
|
+
* - getInstalledVersions - Get installed package versions from lockfile
|
|
1927
|
+
* - researchTools - Plugin tools for tool discovery and version detection
|
|
1928
|
+
*
|
|
1929
|
+
* Types:
|
|
1930
|
+
* - DiscoveredTool - Tool discovery result interface
|
|
1931
|
+
* - VersionInfo - Package version information
|
|
1932
|
+
*/
|
|
1933
|
+
export { discoverDocTools, getInstalledVersions, researchTools, type DiscoveredTool, type VersionInfo, } from "./swarm-research";
|
|
1934
|
+
/**
|
|
1935
|
+
* Re-export swarm-validation module
|
|
1936
|
+
*
|
|
1937
|
+
* Provides validation event types and hooks for post-swarm validation.
|
|
1938
|
+
* Integrates with swarm-mail event sourcing to emit validation events.
|
|
1939
|
+
*
|
|
1940
|
+
* Includes:
|
|
1941
|
+
* - ValidationIssueSeverity - Zod schema for severity levels (error, warning, info)
|
|
1942
|
+
* - ValidationIssueCategory - Zod schema for issue categories
|
|
1943
|
+
* - ValidationIssueSchema - Zod schema for validation issues
|
|
1944
|
+
* - runPostSwarmValidation - Main validation hook
|
|
1945
|
+
* - reportIssue - Helper to emit validation_issue events
|
|
1946
|
+
*
|
|
1947
|
+
* Types:
|
|
1948
|
+
* - ValidationIssue - Validation issue with severity, category, message, and optional location
|
|
1949
|
+
* - ValidationContext - Context for validation execution
|
|
1950
|
+
*/
|
|
1951
|
+
export { ValidationIssueSeverity, ValidationIssueCategory, ValidationIssueSchema, runPostSwarmValidation, reportIssue, type ValidationIssue, type ValidationContext, } from "./swarm-validation";
|
|
1952
|
+
/**
|
|
1953
|
+
* Swarm Signature Detection
|
|
1954
|
+
*
|
|
1955
|
+
* Deterministic, algorithmic detection of swarm coordination from session events.
|
|
1956
|
+
* No heuristics, no confidence levels - a swarm either exists or it doesn't.
|
|
1957
|
+
*
|
|
1958
|
+
* A SWARM is defined by this event sequence:
|
|
1959
|
+
* 1. hive_create_epic(epic_title, subtasks[]) → epic_id
|
|
1960
|
+
* 2. swarm_spawn_subtask(bead_id, epic_id, ...) → prompt (at least one)
|
|
1961
|
+
*
|
|
1962
|
+
* The projection folds over events to produce ground truth state:
|
|
1963
|
+
* - Which epic is being coordinated
|
|
1964
|
+
* - Which subtasks exist and their lifecycle status
|
|
1965
|
+
* - What files are assigned to each subtask
|
|
1966
|
+
*
|
|
1967
|
+
* Functions:
|
|
1968
|
+
* - projectSwarmState - Fold over events to produce swarm state
|
|
1969
|
+
* - hasSwarmSignature - Quick check for swarm signature
|
|
1970
|
+
* - isSwarmActive - Check if swarm has pending work
|
|
1971
|
+
* - getSwarmSummary - Human-readable status summary
|
|
1972
|
+
*
|
|
1973
|
+
* Types:
|
|
1974
|
+
* - SwarmProjection - Complete swarm state from event projection
|
|
1975
|
+
* - ToolCallEvent - Tool call event from session messages
|
|
1976
|
+
* - SubtaskState - Subtask lifecycle state
|
|
1977
|
+
* - EpicState - Epic state
|
|
1978
|
+
*/
|
|
1979
|
+
export { projectSwarmState, hasSwarmSignature, isSwarmActive, getSwarmSummary, type SwarmProjection, type ToolCallEvent, type SubtaskState, type SubtaskStatus, type EpicState, } from "./swarm-signature";
|
|
1980
|
+
/**
|
|
1981
|
+
* Coordinator Guard - Runtime Violation Enforcement
|
|
1982
|
+
*
|
|
1983
|
+
* Detects and REJECTS coordinator protocol violations at runtime.
|
|
1984
|
+
* Unlike planning-guardrails (which only warns), the coordinator guard throws errors
|
|
1985
|
+
* to prevent coordinators from performing work that should be delegated to workers.
|
|
1986
|
+
*
|
|
1987
|
+
* Functions:
|
|
1988
|
+
* - checkCoordinatorGuard - Main entry point for guard checks
|
|
1989
|
+
* - isCoordinator - Type guard for coordinator context
|
|
1990
|
+
*
|
|
1991
|
+
* Types:
|
|
1992
|
+
* - CoordinatorGuardError - Custom error with violation details
|
|
1993
|
+
* - GuardCheckResult - Result of guard check
|
|
1994
|
+
*/
|
|
1995
|
+
export { checkCoordinatorGuard, isCoordinator, CoordinatorGuardError, type GuardCheckResult, } from "./coordinator-guard";
|
|
1996
|
+
/**
|
|
1997
|
+
* Re-export CASS tools module
|
|
1998
|
+
*
|
|
1999
|
+
* Cross-Agent Session Search - search across all AI coding agent histories.
|
|
2000
|
+
* Wraps the external `cass` CLI from Dicklesworthstone's repo.
|
|
2001
|
+
*
|
|
2002
|
+
* Includes:
|
|
2003
|
+
* - cassTools - All CASS tools (search, view, expand, health, index, stats)
|
|
2004
|
+
* - cass_search - Search across agent histories
|
|
2005
|
+
* - cass_view - View specific session
|
|
2006
|
+
* - cass_expand - Expand context around a line
|
|
2007
|
+
* - cass_health - Check index health
|
|
2008
|
+
* - cass_index - Build/rebuild index
|
|
2009
|
+
* - cass_stats - Show index statistics
|
|
2010
|
+
*
|
|
2011
|
+
* Events emitted:
|
|
2012
|
+
* - cass_searched - When a search is performed
|
|
2013
|
+
* - cass_viewed - When a session is viewed
|
|
2014
|
+
* - cass_indexed - When the index is built/rebuilt
|
|
2015
|
+
*/
|
|
2016
|
+
export { cassTools } from "./cass-tools";
|
|
2017
|
+
//# sourceMappingURL=index.d.ts.map
|