opencode-swarm-plugin 0.26.1 → 0.27.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/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +23 -0
- package/README.md +43 -46
- package/bin/swarm.ts +8 -8
- package/dist/compaction-hook.d.ts +57 -0
- package/dist/compaction-hook.d.ts.map +1 -0
- package/dist/hive.d.ts +741 -0
- package/dist/hive.d.ts.map +1 -0
- package/dist/index.d.ts +139 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1353 -350
- package/dist/learning.d.ts +9 -9
- package/dist/plugin.js +1176 -350
- package/dist/schemas/cell-events.d.ts +1352 -0
- package/dist/schemas/{bead-events.d.ts.map → cell-events.d.ts.map} +1 -1
- package/dist/schemas/{bead.d.ts → cell.d.ts} +173 -29
- package/dist/schemas/cell.d.ts.map +1 -0
- package/dist/schemas/index.d.ts +11 -7
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/structured.d.ts +17 -7
- package/dist/structured.d.ts.map +1 -1
- package/dist/swarm-decompose.d.ts +5 -5
- package/dist/swarm-orchestrate.d.ts +16 -2
- package/dist/swarm-orchestrate.d.ts.map +1 -1
- package/dist/swarm-prompts.d.ts +9 -9
- package/dist/swarm-prompts.d.ts.map +1 -1
- package/dist/swarm-review.d.ts +210 -0
- package/dist/swarm-review.d.ts.map +1 -0
- package/dist/swarm-worktree.d.ts +185 -0
- package/dist/swarm-worktree.d.ts.map +1 -0
- package/dist/swarm.d.ts +7 -0
- package/dist/swarm.d.ts.map +1 -1
- package/dist/tool-availability.d.ts +3 -2
- package/dist/tool-availability.d.ts.map +1 -1
- package/docs/analysis-socratic-planner-pattern.md +1 -1
- package/docs/planning/ADR-007-swarm-enhancements-worktree-review.md +168 -0
- package/docs/testing/context-recovery-test.md +2 -2
- package/evals/README.md +2 -2
- package/evals/scorers/index.ts +7 -7
- package/examples/commands/swarm.md +21 -23
- package/examples/plugin-wrapper-template.ts +310 -44
- package/examples/skills/{beads-workflow → hive-workflow}/SKILL.md +40 -40
- package/examples/skills/swarm-coordination/SKILL.md +1 -1
- package/global-skills/swarm-coordination/SKILL.md +14 -14
- package/global-skills/swarm-coordination/references/coordinator-patterns.md +3 -3
- package/package.json +2 -2
- package/src/compaction-hook.ts +161 -0
- package/src/{beads.integration.test.ts → hive.integration.test.ts} +92 -80
- package/src/{beads.ts → hive.ts} +378 -219
- package/src/index.ts +57 -20
- package/src/learning.ts +9 -9
- package/src/output-guardrails.test.ts +4 -4
- package/src/output-guardrails.ts +9 -9
- package/src/planning-guardrails.test.ts +1 -1
- package/src/planning-guardrails.ts +1 -1
- package/src/schemas/{bead-events.test.ts → cell-events.test.ts} +83 -77
- package/src/schemas/cell-events.ts +807 -0
- package/src/schemas/{bead.ts → cell.ts} +95 -41
- package/src/schemas/evaluation.ts +1 -1
- package/src/schemas/index.ts +90 -18
- package/src/schemas/swarm-context.ts +2 -2
- package/src/structured.test.ts +15 -15
- package/src/structured.ts +18 -11
- package/src/swarm-decompose.ts +23 -23
- package/src/swarm-orchestrate.ts +135 -21
- package/src/swarm-prompts.ts +43 -43
- package/src/swarm-review.test.ts +702 -0
- package/src/swarm-review.ts +696 -0
- package/src/swarm-worktree.test.ts +501 -0
- package/src/swarm-worktree.ts +575 -0
- package/src/swarm.integration.test.ts +12 -12
- package/src/tool-availability.ts +36 -3
- package/dist/beads.d.ts +0 -386
- package/dist/beads.d.ts.map +0 -1
- package/dist/schemas/bead-events.d.ts +0 -698
- package/dist/schemas/bead.d.ts.map +0 -1
- package/src/schemas/bead-events.ts +0 -583
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
$ bun build ./src/index.ts --outdir ./dist --target node --external @electric-sql/pglite --external swarm-mail && bun build ./src/plugin.ts --outfile ./dist/plugin.js --target node --external @electric-sql/pglite --external swarm-mail && tsc
|
|
2
|
-
Bundled
|
|
2
|
+
Bundled 200 modules in 42ms
|
|
3
3
|
|
|
4
|
-
index.js 1.
|
|
4
|
+
index.js 1.19 MB (entry point)
|
|
5
5
|
|
|
6
|
-
Bundled
|
|
6
|
+
Bundled 201 modules in 42ms
|
|
7
7
|
|
|
8
|
-
plugin.js 1.
|
|
8
|
+
plugin.js 1.16 MB (entry point)
|
|
9
9
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# opencode-swarm-plugin
|
|
2
2
|
|
|
3
|
+
## 0.27.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`26fd2ef`](https://github.com/joelhooks/swarm-tools/commit/26fd2ef27562edc39f7db7a9cdbed399a465200d) Thanks [@joelhooks](https://github.com/joelhooks)! - Rename beads → hive across the codebase
|
|
8
|
+
|
|
9
|
+
- `createBeadsAdapter` → `createHiveAdapter` (old name still exported as alias)
|
|
10
|
+
- `BeadsAdapter` type → `HiveAdapter` type
|
|
11
|
+
- All internal references updated to use hive terminology
|
|
12
|
+
- Backward compatible: old exports still work but are deprecated
|
|
13
|
+
|
|
14
|
+
- [`ab23071`](https://github.com/joelhooks/swarm-tools/commit/ab23071cc7509c4fc37e1cac0f38a3812022cdf5) Thanks [@joelhooks](https://github.com/joelhooks)! - Add swarm-aware compaction hook to keep swarms cooking after context compression
|
|
15
|
+
|
|
16
|
+
- New `experimental.session.compacting` hook detects active swarms and injects recovery context
|
|
17
|
+
- `hasSwarmSign()` checks for swarm evidence: in-progress beads, subtasks, unclosed epics
|
|
18
|
+
- Compaction prompt instructs coordinator to immediately resume orchestration
|
|
19
|
+
- Fix @types/node conflicts by pinning to 22.19.3 in root overrides
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`26fd2ef`](https://github.com/joelhooks/swarm-tools/commit/26fd2ef27562edc39f7db7a9cdbed399a465200d)]:
|
|
24
|
+
- swarm-mail@0.3.0
|
|
25
|
+
|
|
3
26
|
## 0.26.1
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -14,22 +14,28 @@ OpenCode plugin for multi-agent swarm coordination with learning capabilities.
|
|
|
14
14
|
╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# Install
|
|
21
|
+
npm install -g opencode-swarm-plugin@latest
|
|
22
|
+
swarm setup
|
|
23
|
+
|
|
24
|
+
# For semantic memory (optional but recommended)
|
|
25
|
+
brew install ollama
|
|
26
|
+
ollama serve &
|
|
27
|
+
ollama pull mxbai-embed-large
|
|
28
|
+
```
|
|
29
|
+
|
|
17
30
|
## Features
|
|
18
31
|
|
|
19
32
|
- **Swarm Coordination** - Break tasks into parallel subtasks, spawn worker agents
|
|
20
|
-
- **
|
|
33
|
+
- **Hive Integration** - Git-backed work item tracking with atomic epic creation
|
|
21
34
|
- **Agent Mail** - Inter-agent messaging with file reservations
|
|
22
35
|
- **Learning System** - Pattern maturity, anti-pattern detection, confidence decay
|
|
23
36
|
- **Skills System** - Knowledge injection with bundled and custom skills
|
|
24
37
|
- **Checkpoint & Recovery** - Auto-checkpoint at 25/50/75%, survive context death (9 integration tests ✅)
|
|
25
38
|
|
|
26
|
-
## Install
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
npm install -g opencode-swarm-plugin@latest
|
|
30
|
-
swarm setup
|
|
31
|
-
```
|
|
32
|
-
|
|
33
39
|
## Usage
|
|
34
40
|
|
|
35
41
|
```bash
|
|
@@ -38,18 +44,20 @@ swarm setup
|
|
|
38
44
|
|
|
39
45
|
## Tools Provided
|
|
40
46
|
|
|
41
|
-
###
|
|
47
|
+
### Hive (Work Item Tracking)
|
|
42
48
|
|
|
43
|
-
| Tool
|
|
44
|
-
|
|
|
45
|
-
| `
|
|
46
|
-
| `
|
|
47
|
-
| `
|
|
48
|
-
| `
|
|
49
|
-
| `
|
|
50
|
-
| `
|
|
51
|
-
| `
|
|
52
|
-
| `
|
|
49
|
+
| Tool | Purpose |
|
|
50
|
+
| ------------------ | ------------------------------------- |
|
|
51
|
+
| `hive_create` | Create cell with type-safe validation |
|
|
52
|
+
| `hive_create_epic` | Atomic epic + subtasks creation |
|
|
53
|
+
| `hive_query` | Query with filters |
|
|
54
|
+
| `hive_update` | Update status/description/priority |
|
|
55
|
+
| `hive_close` | Close with reason |
|
|
56
|
+
| `hive_start` | Mark in-progress |
|
|
57
|
+
| `hive_ready` | Get next unblocked cell |
|
|
58
|
+
| `hive_sync` | Sync to git |
|
|
59
|
+
|
|
60
|
+
> **Migration Note:** `beads_*` tools still work but show deprecation warnings. Update to `hive_*` tools.
|
|
53
61
|
|
|
54
62
|
### Swarm Mail (Agent Coordination)
|
|
55
63
|
|
|
@@ -108,8 +116,8 @@ When `swarm_progress` reports 25%, 50%, or 75% completion, a checkpoint is autom
|
|
|
108
116
|
```typescript
|
|
109
117
|
// Stored in .swarm-mail/ directory (no external database needed)
|
|
110
118
|
{
|
|
111
|
-
epic_id: "
|
|
112
|
-
|
|
119
|
+
epic_id: "hv-123",
|
|
120
|
+
cell_id: "hv-123.1",
|
|
113
121
|
strategy: "file-based",
|
|
114
122
|
files: ["src/auth.ts", "src/middleware.ts"],
|
|
115
123
|
progress_percent: 50,
|
|
@@ -133,8 +141,8 @@ When `swarm_progress` reports 25%, 50%, or 75% completion, a checkpoint is autom
|
|
|
133
141
|
swarm_checkpoint({
|
|
134
142
|
project_key: "/abs/path",
|
|
135
143
|
agent_name: "WorkerA",
|
|
136
|
-
|
|
137
|
-
epic_id: "
|
|
144
|
+
cell_id: "hv-123.1",
|
|
145
|
+
epic_id: "hv-123",
|
|
138
146
|
files_modified: ["src/auth.ts"],
|
|
139
147
|
progress_percent: 30,
|
|
140
148
|
directives: { shared_context: "..." },
|
|
@@ -146,12 +154,12 @@ swarm_checkpoint({
|
|
|
146
154
|
```typescript
|
|
147
155
|
swarm_recover({
|
|
148
156
|
project_key: "/abs/path",
|
|
149
|
-
epic_id: "
|
|
157
|
+
epic_id: "hv-123"
|
|
150
158
|
})
|
|
151
159
|
// Returns:
|
|
152
160
|
// {
|
|
153
161
|
// found: true,
|
|
154
|
-
// context: { epic_id,
|
|
162
|
+
// context: { epic_id, cell_id, files, strategy, directives, recovery },
|
|
155
163
|
// age_seconds: 120
|
|
156
164
|
// }
|
|
157
165
|
```
|
|
@@ -175,7 +183,7 @@ Located in `global-skills/`:
|
|
|
175
183
|
|
|
176
184
|
```
|
|
177
185
|
src/
|
|
178
|
-
├──
|
|
186
|
+
├── hive.ts # Hive integration (work item tracking)
|
|
179
187
|
├── agent-mail.ts # Agent Mail tools (legacy MCP wrapper)
|
|
180
188
|
├── swarm-mail.ts # Swarm Mail tools (new, uses swarm-mail package)
|
|
181
189
|
├── swarm.ts # Swarm orchestration tools
|
|
@@ -197,7 +205,12 @@ src/
|
|
|
197
205
|
| Dependency | Purpose |
|
|
198
206
|
|------------|---------|
|
|
199
207
|
| [OpenCode](https://opencode.ai) | AI coding agent (the plugin runs inside OpenCode) |
|
|
200
|
-
|
|
208
|
+
|
|
209
|
+
### Required for Semantic Memory
|
|
210
|
+
|
|
211
|
+
| Dependency | Purpose | Install |
|
|
212
|
+
|------------|---------|---------|
|
|
213
|
+
| [Ollama](https://ollama.ai) | Embedding model for semantic memory | `brew install ollama && ollama serve & && ollama pull mxbai-embed-large` |
|
|
201
214
|
|
|
202
215
|
### Optional (Highly Recommended)
|
|
203
216
|
|
|
@@ -207,7 +220,7 @@ These tools significantly enhance the swarm experience:
|
|
|
207
220
|
|------|---------|---------|
|
|
208
221
|
| [CASS](https://github.com/Dicklesworthstone/coding_agent_session_search) | Historical context - queries past sessions for similar decompositions | See below |
|
|
209
222
|
| [UBS](https://github.com/Dicklesworthstone/ultimate_bug_scanner) | Bug scanning - runs on subtask completion to catch issues | See below |
|
|
210
|
-
| [semantic-memory](https://github.com/joelhooks/semantic-memory) | Learning persistence - stores patterns across sessions |
|
|
223
|
+
| [semantic-memory](https://github.com/joelhooks/semantic-memory) | Learning persistence - stores patterns across sessions | Requires Ollama (see above) |
|
|
211
224
|
|
|
212
225
|
#### Installing CASS
|
|
213
226
|
|
|
@@ -232,23 +245,7 @@ pip install -e .
|
|
|
232
245
|
|
|
233
246
|
#### Installing semantic-memory
|
|
234
247
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
```bash
|
|
238
|
-
# 1. Install Ollama (macOS)
|
|
239
|
-
brew install ollama
|
|
240
|
-
|
|
241
|
-
# 2. Start Ollama service
|
|
242
|
-
ollama serve
|
|
243
|
-
|
|
244
|
-
# 3. Pull an embedding model
|
|
245
|
-
ollama pull mxbai-embed-large
|
|
246
|
-
|
|
247
|
-
# 4. Install the OpenCode plugin
|
|
248
|
-
# Add to your OpenCode config
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
The `semantic-memory_check` tool verifies Ollama is ready.
|
|
248
|
+
The `semantic-memory_check` tool verifies Ollama is ready (see installation steps above).
|
|
252
249
|
|
|
253
250
|
**Why install these?**
|
|
254
251
|
|
|
@@ -284,7 +281,7 @@ bun run typecheck
|
|
|
284
281
|
```bash
|
|
285
282
|
swarm setup # Install and configure
|
|
286
283
|
swarm doctor # Check dependencies
|
|
287
|
-
swarm init # Initialize
|
|
284
|
+
swarm init # Initialize hive in project
|
|
288
285
|
swarm config # Show config file paths
|
|
289
286
|
```
|
|
290
287
|
|
package/bin/swarm.ts
CHANGED
|
@@ -951,11 +951,11 @@ Synthesize findings into shared_context for workers.
|
|
|
951
951
|
\`\`\`
|
|
952
952
|
swarm_select_strategy(task="<task>")
|
|
953
953
|
swarm_plan_prompt(task="<task>", context="<synthesized knowledge>")
|
|
954
|
-
swarm_validate_decomposition(response="<
|
|
954
|
+
swarm_validate_decomposition(response="<CellTree JSON>")
|
|
955
955
|
\`\`\`
|
|
956
956
|
|
|
957
957
|
### Phase 4: Create Beads
|
|
958
|
-
\`
|
|
958
|
+
\`hive_create_epic(epic_title="<task>", subtasks=[...])\`
|
|
959
959
|
|
|
960
960
|
### Phase 5: Reserve Files
|
|
961
961
|
\`swarmmail_reserve(paths=[...], reason="<bead-id>: <desc>")\`
|
|
@@ -979,7 +979,7 @@ Intervene if: blocked >5min, file conflicts, scope creep.
|
|
|
979
979
|
### Phase 8: Complete
|
|
980
980
|
\`\`\`
|
|
981
981
|
swarm_complete(...)
|
|
982
|
-
|
|
982
|
+
hive_sync()
|
|
983
983
|
\`\`\`
|
|
984
984
|
|
|
985
985
|
## Strategy Reference
|
|
@@ -1033,7 +1033,7 @@ Synthesize findings - note relevant patterns, past approaches, and skills to rec
|
|
|
1033
1033
|
|
|
1034
1034
|
\`swarm_plan_prompt(task="<task>", context="<synthesized knowledge>")\`
|
|
1035
1035
|
|
|
1036
|
-
### 4. Output
|
|
1036
|
+
### 4. Output CellTree
|
|
1037
1037
|
|
|
1038
1038
|
Return ONLY valid JSON - no markdown, no explanation:
|
|
1039
1039
|
|
|
@@ -1093,7 +1093,7 @@ Your Task prompt contains detailed instructions including:
|
|
|
1093
1093
|
6. **swarm_progress()** - Report at 25/50/75%
|
|
1094
1094
|
7. **swarm_checkpoint()** - Before risky operations
|
|
1095
1095
|
8. **semantic-memory_store()** - Store learnings
|
|
1096
|
-
9. **swarm_complete()** - NOT
|
|
1096
|
+
9. **swarm_complete()** - NOT hive_close
|
|
1097
1097
|
|
|
1098
1098
|
## Non-Negotiables
|
|
1099
1099
|
|
|
@@ -1112,7 +1112,7 @@ swarmmail_send(
|
|
|
1112
1112
|
body="<what you need>",
|
|
1113
1113
|
importance="high"
|
|
1114
1114
|
)
|
|
1115
|
-
|
|
1115
|
+
hive_update(id="<bead-id>", status="blocked")
|
|
1116
1116
|
\`\`\`
|
|
1117
1117
|
|
|
1118
1118
|
## Focus
|
|
@@ -2224,9 +2224,9 @@ async function listTools() {
|
|
|
2224
2224
|
}
|
|
2225
2225
|
|
|
2226
2226
|
console.log(dim("Usage: swarm tool <name> [--json '<args>']"));
|
|
2227
|
-
console.log(dim("Example: swarm tool
|
|
2227
|
+
console.log(dim("Example: swarm tool hive_ready"));
|
|
2228
2228
|
console.log(
|
|
2229
|
-
dim('Example: swarm tool
|
|
2229
|
+
dim('Example: swarm tool hive_create --json \'{"title": "Fix bug"}\''),
|
|
2230
2230
|
);
|
|
2231
2231
|
}
|
|
2232
2232
|
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Swarm-Aware Compaction Hook
|
|
3
|
+
*
|
|
4
|
+
* Provides context preservation during OpenCode session compaction.
|
|
5
|
+
* When context is compacted, this hook injects instructions for the summarizer
|
|
6
|
+
* to preserve swarm coordination state and enable seamless resumption.
|
|
7
|
+
*
|
|
8
|
+
* Hook signature (from @opencode-ai/plugin):
|
|
9
|
+
* ```typescript
|
|
10
|
+
* "experimental.session.compacting"?: (
|
|
11
|
+
* input: { sessionID: string },
|
|
12
|
+
* output: { context: string[] }
|
|
13
|
+
* ) => Promise<void>
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import { SWARM_COMPACTION_CONTEXT, createCompactionHook } from "opencode-swarm-plugin";
|
|
19
|
+
*
|
|
20
|
+
* const hooks: Hooks = {
|
|
21
|
+
* "experimental.session.compacting": createCompactionHook(),
|
|
22
|
+
* };
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* Swarm-aware compaction context
|
|
27
|
+
*
|
|
28
|
+
* Injected during compaction to keep the swarm cooking. The coordinator should
|
|
29
|
+
* wake up from compaction and immediately resume orchestration - spawning agents,
|
|
30
|
+
* monitoring progress, unblocking work.
|
|
31
|
+
*
|
|
32
|
+
* This is NOT about preserving state for a human - it's about the swarm continuing
|
|
33
|
+
* autonomously after context compression.
|
|
34
|
+
*/
|
|
35
|
+
export declare const SWARM_COMPACTION_CONTEXT = "## \uD83D\uDC1D SWARM ACTIVE - Keep Cooking\n\nYou are the **COORDINATOR** of an active swarm. Context was compacted but the swarm is still running.\n\n**YOUR JOB:** Keep orchestrating. Spawn agents. Monitor progress. Unblock work. Ship it.\n\n### Preserve in Summary\n\nExtract from session context:\n\n1. **Epic & Subtasks** - IDs, titles, status, file assignments\n2. **What's Running** - Which agents are active, what they're working on \n3. **What's Blocked** - Blockers and what's needed to unblock\n4. **What's Done** - Completed work and any follow-ups needed\n5. **What's Next** - Pending subtasks ready to spawn\n\n### Summary Format\n\n```\n## \uD83D\uDC1D Swarm State\n\n**Epic:** <bd-xxx> - <title>\n**Project:** <path>\n**Progress:** X/Y subtasks complete\n\n**Active:**\n- <bd-xxx>: <title> [in_progress] \u2192 <agent> working on <files>\n\n**Blocked:**\n- <bd-xxx>: <title> - BLOCKED: <reason>\n\n**Completed:**\n- <bd-xxx>: <title> \u2713\n\n**Ready to Spawn:**\n- <bd-xxx>: <title> (files: <...>)\n```\n\n### On Resume - IMMEDIATELY\n\n1. `swarm_status(epic_id=\"<epic>\", project_key=\"<path>\")` - Get current state\n2. `swarmmail_inbox(limit=5)` - Check for agent messages\n3. **Spawn ready subtasks** - Don't wait, fire them off\n4. **Unblock blocked work** - Resolve dependencies, reassign if needed\n5. **Collect completed work** - Close done subtasks, verify quality\n\n### Keep the Swarm Cooking\n\n- **Spawn aggressively** - If a subtask is ready and unblocked, spawn an agent\n- **Monitor actively** - Check status, read messages, respond to blockers\n- **Close the loop** - When all subtasks done, verify and close the epic\n- **Don't stop** - The swarm runs until the epic is closed\n\n**You are not waiting for instructions. You are the coordinator. Coordinate.**\n";
|
|
36
|
+
/**
|
|
37
|
+
* Create the compaction hook for use in plugin registration
|
|
38
|
+
*
|
|
39
|
+
* Only injects swarm context if there's an active swarm (in-progress beads).
|
|
40
|
+
* This keeps the coordinator cooking after compaction.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import { createCompactionHook } from "opencode-swarm-plugin";
|
|
45
|
+
*
|
|
46
|
+
* export const SwarmPlugin: Plugin = async () => ({
|
|
47
|
+
* tool: { ... },
|
|
48
|
+
* "experimental.session.compacting": createCompactionHook(),
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare function createCompactionHook(): (_input: {
|
|
53
|
+
sessionID: string;
|
|
54
|
+
}, output: {
|
|
55
|
+
context: string[];
|
|
56
|
+
}) => Promise<void>;
|
|
57
|
+
//# sourceMappingURL=compaction-hook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compaction-hook.d.ts","sourceRoot":"","sources":["../src/compaction-hook.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAMH;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,2wDAsDpC,CAAC;AAyCF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,KAEhC,QAAQ;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,EAC7B,QAAQ;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,KAC5B,OAAO,CAAC,IAAI,CAAC,CAMjB"}
|