opencode-swarm-plugin 0.40.0 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/.hive/analysis/eval-failure-analysis-2025-12-25.md +331 -0
  2. package/.hive/analysis/session-data-quality-audit.md +320 -0
  3. package/.hive/eval-results.json +481 -24
  4. package/.hive/issues.jsonl +65 -16
  5. package/.hive/memories.jsonl +159 -1
  6. package/.opencode/eval-history.jsonl +315 -0
  7. package/.turbo/turbo-build.log +5 -5
  8. package/CHANGELOG.md +155 -0
  9. package/README.md +2 -0
  10. package/SCORER-ANALYSIS.md +598 -0
  11. package/bin/eval-gate.test.ts +158 -0
  12. package/bin/eval-gate.ts +74 -0
  13. package/bin/swarm.test.ts +661 -732
  14. package/bin/swarm.ts +274 -0
  15. package/dist/compaction-hook.d.ts +7 -5
  16. package/dist/compaction-hook.d.ts.map +1 -1
  17. package/dist/compaction-prompt-scoring.d.ts +1 -0
  18. package/dist/compaction-prompt-scoring.d.ts.map +1 -1
  19. package/dist/eval-runner.d.ts +134 -0
  20. package/dist/eval-runner.d.ts.map +1 -0
  21. package/dist/hive.d.ts.map +1 -1
  22. package/dist/index.d.ts +29 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +99741 -58858
  25. package/dist/memory-tools.d.ts +70 -2
  26. package/dist/memory-tools.d.ts.map +1 -1
  27. package/dist/memory.d.ts +37 -0
  28. package/dist/memory.d.ts.map +1 -1
  29. package/dist/observability-tools.d.ts +64 -0
  30. package/dist/observability-tools.d.ts.map +1 -1
  31. package/dist/plugin.js +99356 -58318
  32. package/dist/swarm-orchestrate.d.ts.map +1 -1
  33. package/dist/swarm-prompts.d.ts +32 -1
  34. package/dist/swarm-prompts.d.ts.map +1 -1
  35. package/docs/planning/ADR-009-oh-my-opencode-patterns.md +353 -0
  36. package/evals/ARCHITECTURE.md +1189 -0
  37. package/evals/example.eval.ts +3 -4
  38. package/evals/fixtures/compaction-prompt-cases.ts +6 -0
  39. package/evals/scorers/coordinator-discipline.ts +0 -253
  40. package/evals/swarm-decomposition.eval.ts +4 -2
  41. package/package.json +4 -3
  42. package/src/compaction-prompt-scorers.test.ts +10 -9
  43. package/src/compaction-prompt-scoring.ts +7 -5
  44. package/src/eval-runner.test.ts +128 -1
  45. package/src/eval-runner.ts +46 -0
  46. package/src/hive.ts +43 -42
  47. package/src/memory-tools.test.ts +84 -0
  48. package/src/memory-tools.ts +68 -3
  49. package/src/memory.test.ts +2 -112
  50. package/src/memory.ts +88 -49
  51. package/src/observability-tools.test.ts +13 -0
  52. package/src/observability-tools.ts +277 -0
  53. package/src/swarm-orchestrate.test.ts +162 -0
  54. package/src/swarm-orchestrate.ts +7 -5
  55. package/src/swarm-prompts.test.ts +168 -4
  56. package/src/swarm-prompts.ts +228 -7
  57. package/.env +0 -2
  58. package/.turbo/turbo-test.log +0 -481
  59. package/.turbo/turbo-typecheck.log +0 -1
package/bin/swarm.ts CHANGED
@@ -2520,6 +2520,8 @@ ${cyan("Commands:")}
2520
2520
  swarm migrate Migrate PGlite database to libSQL
2521
2521
  swarm cells List or get cells from database (replaces 'swarm tool hive_query')
2522
2522
  swarm log View swarm logs with filtering
2523
+ swarm stats Show swarm health metrics and success rates
2524
+ swarm history Show recent swarm activity timeline
2523
2525
  swarm eval Eval-driven development commands
2524
2526
  swarm update Update to latest version
2525
2527
  swarm version Show version and banner
@@ -2554,6 +2556,16 @@ ${cyan("Log Viewing:")}
2554
2556
  swarm log sessions --type <type> Filter by event type (DECISION, VIOLATION, OUTCOME, COMPACTION)
2555
2557
  swarm log sessions --json Raw JSON output for jq
2556
2558
 
2559
+ ${cyan("Stats & History:")}
2560
+ swarm stats Show swarm health metrics (last 7 days)
2561
+ swarm stats --since 24h Show stats for custom time period
2562
+ swarm stats --json Output as JSON for scripting
2563
+ swarm history Show recent swarms (last 10)
2564
+ swarm history --limit 20 Show more swarms
2565
+ swarm history --status success Filter by success/failed/in_progress
2566
+ swarm history --strategy file-based Filter by decomposition strategy
2567
+ swarm history --verbose Show detailed subtask information
2568
+
2557
2569
  ${cyan("Eval Commands:")}
2558
2570
  swarm eval status [eval-name] Show current phase, thresholds, recent scores
2559
2571
  swarm eval history Show eval run history with trends
@@ -4013,6 +4025,262 @@ function formatEvalRunResultOutput(result: {
4013
4025
  p.log.message(result.message);
4014
4026
  }
4015
4027
 
4028
+ // ============================================================================
4029
+ // Stats Command - Swarm Health Metrics
4030
+ // ============================================================================
4031
+
4032
+ async function stats() {
4033
+ const { getSwarmMailLibSQL } = await import("swarm-mail");
4034
+ const { formatSwarmStats, parseTimePeriod, aggregateByStrategy } = await import(
4035
+ "../src/observability-tools"
4036
+ );
4037
+
4038
+ p.intro("swarm stats");
4039
+
4040
+ // Parse args
4041
+ const args = process.argv.slice(3);
4042
+ let period = "7d"; // default to 7 days
4043
+ let format: "text" | "json" = "text";
4044
+
4045
+ for (let i = 0; i < args.length; i++) {
4046
+ if (args[i] === "--since" || args[i] === "-s") {
4047
+ period = args[i + 1] || "7d";
4048
+ i++;
4049
+ } else if (args[i] === "--json") {
4050
+ format = "json";
4051
+ }
4052
+ }
4053
+
4054
+ try {
4055
+ const projectPath = process.cwd();
4056
+ const swarmMail = await getSwarmMailLibSQL(projectPath);
4057
+ const db = await swarmMail.getDatabase();
4058
+
4059
+ // Calculate since timestamp
4060
+ const since = parseTimePeriod(period);
4061
+ const periodMatch = period.match(/^(\d+)([dhm])$/);
4062
+ const periodDays = periodMatch ?
4063
+ (periodMatch[2] === "d" ? Number.parseInt(periodMatch[1]) :
4064
+ periodMatch[2] === "h" ? Number.parseInt(periodMatch[1]) / 24 :
4065
+ Number.parseInt(periodMatch[1]) / (24 * 60)) : 7;
4066
+
4067
+ // Query overall stats
4068
+ const overallResult = await db.query(
4069
+ `SELECT
4070
+ COUNT(DISTINCT json_extract(data, '$.epic_id')) as total_swarms,
4071
+ SUM(CASE WHEN json_extract(data, '$.success') = 'true' THEN 1 ELSE 0 END) as successes,
4072
+ COUNT(*) as total_outcomes,
4073
+ CAST(AVG(CAST(json_extract(data, '$.duration_ms') AS REAL)) / 60000 AS REAL) as avg_duration_min
4074
+ FROM events
4075
+ WHERE type = 'subtask_outcome'
4076
+ AND timestamp >= ?`,
4077
+ [since],
4078
+ );
4079
+
4080
+ const overall = overallResult.rows[0] as {
4081
+ total_swarms: number;
4082
+ successes: number;
4083
+ total_outcomes: number;
4084
+ avg_duration_min: number;
4085
+ } || { total_swarms: 0, successes: 0, total_outcomes: 0, avg_duration_min: 0 };
4086
+
4087
+ // Query strategy breakdown
4088
+ const strategyResult = await db.query(
4089
+ `SELECT
4090
+ json_extract(data, '$.strategy') as strategy,
4091
+ json_extract(data, '$.success') as success
4092
+ FROM events
4093
+ WHERE type = 'subtask_outcome'
4094
+ AND timestamp >= ?`,
4095
+ [since],
4096
+ );
4097
+
4098
+ const strategies = aggregateByStrategy(
4099
+ (strategyResult.rows as Array<{ strategy: string | null; success: string }>).map(
4100
+ (row) => ({
4101
+ strategy: row.strategy,
4102
+ success: row.success === "true",
4103
+ }),
4104
+ ),
4105
+ );
4106
+
4107
+ // Query coordinator stats from sessions
4108
+ const sessionsPath = join(
4109
+ homedir(),
4110
+ ".config",
4111
+ "swarm-tools",
4112
+ "sessions",
4113
+ );
4114
+ let coordinatorStats = {
4115
+ violationRate: 0,
4116
+ spawnEfficiency: 0,
4117
+ reviewThoroughness: 0,
4118
+ };
4119
+
4120
+ if (existsSync(sessionsPath)) {
4121
+ const sessionFiles = readdirSync(sessionsPath).filter(
4122
+ (f) => f.endsWith(".jsonl") && statSync(join(sessionsPath, f)).mtimeMs >= since,
4123
+ );
4124
+
4125
+ let totalViolations = 0;
4126
+ let totalSpawns = 0;
4127
+ let totalReviews = 0;
4128
+ let totalSwarms = 0;
4129
+
4130
+ for (const file of sessionFiles) {
4131
+ try {
4132
+ const content = readFileSync(join(sessionsPath, file), "utf-8");
4133
+ const lines = content.trim().split("\n");
4134
+
4135
+ let violations = 0;
4136
+ let spawns = 0;
4137
+ let reviews = 0;
4138
+
4139
+ for (const line of lines) {
4140
+ try {
4141
+ const event = JSON.parse(line);
4142
+ if (event.type === "VIOLATION") violations++;
4143
+ if (event.type === "DECISION" && event.action === "spawn") spawns++;
4144
+ if (event.type === "DECISION" && event.action === "review") reviews++;
4145
+ } catch {
4146
+ // Skip invalid lines
4147
+ }
4148
+ }
4149
+
4150
+ if (spawns > 0 || violations > 0) {
4151
+ totalViolations += violations;
4152
+ totalSpawns += spawns;
4153
+ totalReviews += reviews;
4154
+ totalSwarms++;
4155
+ }
4156
+ } catch {
4157
+ // Skip unreadable files
4158
+ }
4159
+ }
4160
+
4161
+ coordinatorStats = {
4162
+ violationRate: totalSwarms > 0 ? (totalViolations / totalSwarms) * 100 : 0,
4163
+ spawnEfficiency: totalSwarms > 0 ? (totalSpawns / totalSwarms) * 100 : 0,
4164
+ reviewThoroughness: totalSpawns > 0 ? (totalReviews / totalSpawns) * 100 : 0,
4165
+ };
4166
+ }
4167
+
4168
+ // Build stats data
4169
+ const stats = {
4170
+ overall: {
4171
+ totalSwarms: overall.total_swarms,
4172
+ successRate:
4173
+ overall.total_outcomes > 0
4174
+ ? (overall.successes / overall.total_outcomes) * 100
4175
+ : 0,
4176
+ avgDurationMin: overall.avg_duration_min || 0,
4177
+ },
4178
+ byStrategy: strategies,
4179
+ coordinator: coordinatorStats,
4180
+ recentDays: Math.round(periodDays * 10) / 10,
4181
+ };
4182
+
4183
+ // Output
4184
+ if (format === "json") {
4185
+ console.log(JSON.stringify(stats, null, 2));
4186
+ } else {
4187
+ console.log();
4188
+ console.log(formatSwarmStats(stats));
4189
+ console.log();
4190
+ }
4191
+
4192
+ p.outro("Stats ready!");
4193
+ } catch (error) {
4194
+ p.log.error(error instanceof Error ? error.message : String(error));
4195
+ p.outro("Failed to load stats");
4196
+ process.exit(1);
4197
+ }
4198
+ }
4199
+
4200
+ // ============================================================================
4201
+ // History Command
4202
+ // ============================================================================
4203
+
4204
+ async function swarmHistory() {
4205
+ const {
4206
+ querySwarmHistory,
4207
+ formatSwarmHistory,
4208
+ } = await import("../src/observability-tools.js");
4209
+
4210
+ p.intro("swarm history");
4211
+
4212
+ // Parse args
4213
+ const args = process.argv.slice(3);
4214
+ let limit = 10;
4215
+ let status: "success" | "failed" | "in_progress" | undefined;
4216
+ let strategy: "file-based" | "feature-based" | "risk-based" | undefined;
4217
+ let verbose = false;
4218
+
4219
+ for (let i = 0; i < args.length; i++) {
4220
+ const arg = args[i];
4221
+
4222
+ if (arg === "--limit" || arg === "-n") {
4223
+ const limitStr = args[i + 1];
4224
+ if (limitStr && !Number.isNaN(Number(limitStr))) {
4225
+ limit = Number(limitStr);
4226
+ i++;
4227
+ }
4228
+ } else if (arg === "--status") {
4229
+ const statusStr = args[i + 1];
4230
+ if (
4231
+ statusStr &&
4232
+ ["success", "failed", "in_progress"].includes(statusStr)
4233
+ ) {
4234
+ status = statusStr as "success" | "failed" | "in_progress";
4235
+ i++;
4236
+ }
4237
+ } else if (arg === "--strategy") {
4238
+ const strategyStr = args[i + 1];
4239
+ if (
4240
+ strategyStr &&
4241
+ ["file-based", "feature-based", "risk-based"].includes(strategyStr)
4242
+ ) {
4243
+ strategy = strategyStr as "file-based" | "feature-based" | "risk-based";
4244
+ i++;
4245
+ }
4246
+ } else if (arg === "--verbose" || arg === "-v") {
4247
+ verbose = true;
4248
+ }
4249
+ }
4250
+
4251
+ try {
4252
+ const projectPath = process.cwd();
4253
+ const records = await querySwarmHistory(projectPath, {
4254
+ limit,
4255
+ status,
4256
+ strategy,
4257
+ });
4258
+
4259
+ console.log();
4260
+ console.log(formatSwarmHistory(records));
4261
+ console.log();
4262
+
4263
+ if (verbose && records.length > 0) {
4264
+ console.log("Details:");
4265
+ for (const record of records) {
4266
+ console.log(
4267
+ ` ${record.epic_id}: ${record.epic_title} (${record.strategy})`,
4268
+ );
4269
+ console.log(
4270
+ ` Tasks: ${record.completed_count}/${record.task_count}, Success: ${record.overall_success ? "✅" : "❌"}`,
4271
+ );
4272
+ }
4273
+ console.log();
4274
+ }
4275
+
4276
+ p.outro("History ready!");
4277
+ } catch (error) {
4278
+ p.log.error(error instanceof Error ? error.message : String(error));
4279
+ p.outro("Failed to load history");
4280
+ process.exit(1);
4281
+ }
4282
+ }
4283
+
4016
4284
  // ============================================================================
4017
4285
  // Eval Command
4018
4286
  // ============================================================================
@@ -4274,6 +4542,12 @@ switch (command) {
4274
4542
  case "logs":
4275
4543
  await logs();
4276
4544
  break;
4545
+ case "stats":
4546
+ await stats();
4547
+ break;
4548
+ case "history":
4549
+ await swarmHistory();
4550
+ break;
4277
4551
  case "eval":
4278
4552
  await evalCommand();
4279
4553
  break;
@@ -40,12 +40,14 @@
40
40
  *
41
41
  * Structure optimized for eval scores:
42
42
  * 1. ASCII header (visual anchor, coordinatorIdentity scorer)
43
- * 2. Immediate actions (actionable tool calls, postCompactionDiscipline scorer)
44
- * 3. Forbidden tools (explicit list, forbiddenToolsPresent scorer)
45
- * 4. Role & mandates (strong language, coordinatorIdentity scorer)
46
- * 5. Reference sections (supporting material)
43
+ * 2. What Good Looks Like (behavioral examples, outcome-focused)
44
+ * 3. Immediate actions (actionable tool calls, postCompactionDiscipline scorer)
45
+ * 4. Forbidden tools (explicit list, forbiddenToolsPresent scorer)
46
+ * 5. Mandatory behaviors (inbox, skills, review)
47
+ * 6. Role & mandates (strong language, coordinatorIdentity scorer)
48
+ * 7. Reference sections (supporting material)
47
49
  */
48
- export declare const SWARM_COMPACTION_CONTEXT = "\n\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502 \u2502\n\u2502 \uD83D\uDC1D YOU ARE THE COORDINATOR \uD83D\uDC1D \u2502\n\u2502 \u2502\n\u2502 NOT A WORKER. NOT AN IMPLEMENTER. \u2502\n\u2502 YOU ORCHESTRATE. \u2502\n\u2502 \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n\nContext was compacted but the swarm is still running. **YOU ARE THE COORDINATOR.**\n\nYour role is ORCHESTRATION, not implementation. The resume steps above (if present) tell you exactly what to do first.\n\n---\n\n## \uD83D\uDEAB FORBIDDEN TOOLS (NEVER Use These Directly)\n\nCoordinators do NOT do implementation work. These tools are **FORBIDDEN**:\n\n### File Modification (ALWAYS spawn workers instead)\n- `Edit` - SPAWN A WORKER\n- `Write` - SPAWN A WORKER\n- `bash` (for file modifications) - SPAWN A WORKER\n- `swarmmail_reserve` - Workers reserve their own files\n- `git commit` - Workers commit their own changes\n\n### External Data Fetching (SPAWN A RESEARCHER instead)\n\n**Repository fetching:**\n- `repo-crawl_file`, `repo-crawl_readme`, `repo-crawl_search`, `repo-crawl_structure`, `repo-crawl_tree`\n- `repo-autopsy_*` (all repo-autopsy tools)\n\n**Web/documentation fetching:**\n- `webfetch`, `fetch_fetch`\n- `context7_resolve-library-id`, `context7_get-library-docs`\n\n**Knowledge base:**\n- `pdf-brain_search`, `pdf-brain_read`\n\n**Instead:** Use `swarm_spawn_researcher` with a clear research task. The researcher will fetch, summarize, and return findings.\n\n---\n\n## \uD83D\uDCBC YOUR ROLE (Non-Negotiable)\n\nYou are the **COORDINATOR**. Your job is ORCHESTRATION, not implementation.\n\n### What Coordinators Do:\n- \u2705 Spawn workers for implementation tasks\n- \u2705 Monitor worker progress via `swarm_status` and `swarmmail_inbox`\n- \u2705 Review completed work with `swarm_review`\n- \u2705 Unblock dependencies and resolve conflicts\n- \u2705 Close the loop when epics complete\n\n### What Coordinators NEVER Do:\n- \u274C **NEVER** edit or write files directly\n- \u274C **NEVER** run tests with `bash`\n- \u274C **NEVER** \"just do it myself to save time\"\n- \u274C **NEVER** reserve files (workers reserve)\n- \u274C **NEVER** fetch external data directly (spawn researchers)\n\n**If you catch yourself about to edit a file, STOP. Use `swarm_spawn_subtask` instead.**\n\n### Strong Mandates:\n- **ALWAYS** spawn workers for implementation tasks\n- **ALWAYS** check status and inbox before decisions\n- **ALWAYS** review worker output before accepting\n- **NON-NEGOTIABLE:** You orchestrate. You do NOT implement.\n\n---\n\n## \uD83D\uDCDD SUMMARY FORMAT (Preserve This State)\n\nWhen compaction occurs, extract and preserve this structure:\n\n```\n## \uD83D\uDC1D Swarm State\n\n**Epic:** CELL_ID - TITLE\n**Project:** PROJECT_PATH\n**Progress:** X/Y subtasks complete\n\n**Active:**\n- CELL_ID: TITLE [in_progress] \u2192 AGENT working on FILES\n\n**Blocked:**\n- CELL_ID: TITLE - BLOCKED: REASON\n\n**Completed:**\n- CELL_ID: TITLE \u2713\n\n**Ready to Spawn:**\n- CELL_ID: TITLE (files: FILES)\n```\n\n### What to Extract:\n1. **Epic & Subtasks** - IDs, titles, status, file assignments\n2. **What's Running** - Active agents and their current work\n3. **What's Blocked** - Blockers and what's needed to unblock\n4. **What's Done** - Completed work and follow-ups\n5. **What's Next** - Pending subtasks ready to spawn\n\n---\n\n## \uD83D\uDCCB REFERENCE: Full Coordinator Workflow\n\nYou are ALWAYS swarming. Use this workflow for any new work:\n\n### Phase 1.5: Research (For Complex Tasks)\n\nIf the task requires unfamiliar technologies, spawn a researcher FIRST:\n\n```\nswarm_spawn_researcher(\n research_id=\"research-TOPIC\",\n epic_id=\"mjkw...\", # your epic ID\n tech_stack=[\"TECHNOLOGY\"],\n project_path=\"PROJECT_PATH\"\n)\n// Then spawn with Task(subagent_type=\"swarm/researcher\", prompt=\"...\")\n```\n\n### Phase 2: Knowledge Gathering\n\n```\nsemantic-memory_find(query=\"TASK_KEYWORDS\", limit=5) # Past learnings\ncass_search(query=\"TASK_DESCRIPTION\", limit=5) # Similar past tasks\nskills_list() # Available skills\n```\n\n### Phase 3: Decompose\n\n```\nswarm_select_strategy(task=\"TASK\")\nswarm_plan_prompt(task=\"TASK\", context=\"KNOWLEDGE\")\nswarm_validate_decomposition(response=\"CELLTREE_JSON\")\n```\n\n### Phase 4: Create Cells\n\n`hive_create_epic(epic_title=\"TASK\", subtasks=[...])`\n\n### Phase 5: File Reservations\n\n> **\u26A0\uFE0F Coordinator NEVER reserves files.** Workers reserve their own files with `swarmmail_reserve`.\n\n### Phase 6: Spawn Workers\n\n```\nswarm_spawn_subtask(bead_id, epic_id, title, files, shared_context, project_path)\nTask(subagent_type=\"swarm/worker\", prompt=\"GENERATED_PROMPT\")\n```\n\n### Phase 7: Review Loop (MANDATORY)\n\n**AFTER EVERY Task() RETURNS:**\n\n1. `swarmmail_inbox()` - Check for messages\n2. `swarm_review(project_key, epic_id, task_id, files_touched)` - Generate review\n3. Evaluate against epic goals\n4. `swarm_review_feedback(project_key, task_id, worker_id, status, issues)`\n\n**If needs_changes:**\n```\nswarm_spawn_retry(bead_id, epic_id, original_prompt, attempt, issues, diff, files, project_path)\n// Spawn NEW worker with Task() using retry prompt\n// Max 3 attempts before marking task blocked\n```\n\n### Phase 8: Complete\n\n`hive_sync()` - Sync all cells to git\n\n---\n\n## \uD83D\uDCCA REFERENCE: Decomposition Strategies\n\n| Strategy | Best For | Keywords |\n| -------------- | ------------------------ | -------------------------------------- |\n| file-based | Refactoring, migrations | refactor, migrate, rename, update all |\n| feature-based | New features | add, implement, build, create, feature |\n| risk-based | Bug fixes, security | fix, bug, security, critical, urgent |\n\n---\n\n**You are the COORDINATOR. You orchestrate. You do NOT implement. Spawn workers.**\n";
50
+ export declare const SWARM_COMPACTION_CONTEXT = "\n\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502 \u2502\n\u2502 \uD83D\uDC1D YOU ARE THE COORDINATOR \uD83D\uDC1D \u2502\n\u2502 \u2502\n\u2502 NOT A WORKER. NOT AN IMPLEMENTER. \u2502\n\u2502 YOU ORCHESTRATE. \u2502\n\u2502 \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n\nContext was compacted but the swarm is still running. **YOU ARE THE COORDINATOR.**\n\nYour role is ORCHESTRATION, not implementation. The resume steps above (if present) tell you exactly what to do first.\n\n---\n\n## \uD83C\uDFAF WHAT GOOD LOOKS LIKE (Behavioral Examples)\n\n**\u2705 GOOD Coordinator Behavior:**\n- Spawned researcher for unfamiliar tech \u2192 got summary \u2192 stored in semantic-memory\n- Loaded `skills_use(name=\"testing-patterns\")` BEFORE spawning test workers\n- Checked `swarmmail_inbox()` every 5-10 minutes \u2192 caught blocked worker \u2192 unblocked in 2min\n- Delegated planning to swarm/planner subagent \u2192 main context stayed clean\n- Workers reserved their OWN files \u2192 no conflicts\n- Reviewed all worker output with `swarm_review` \u2192 caught integration issue before merge\n\n**\u274C COMMON MISTAKES (Avoid These):**\n- Called context7/pdf-brain directly \u2192 dumped 50KB into thread \u2192 context exhaustion\n- Skipped skill loading \u2192 workers reinvented patterns already in skills\n- Never checked inbox \u2192 worker stuck 25 minutes \u2192 silent failure\n- Reserved files as coordinator \u2192 workers blocked \u2192 swarm stalled\n- Closed cells when workers said \"done\" \u2192 skipped review \u2192 shipped broken code\n\n---\n\n## \uD83D\uDEAB FORBIDDEN TOOLS (NEVER Use These Directly)\n\nCoordinators do NOT do implementation work. These tools are **FORBIDDEN**:\n\n### File Modification (ALWAYS spawn workers instead)\n- `Edit` - SPAWN A WORKER\n- `Write` - SPAWN A WORKER\n- `bash` (for file modifications) - SPAWN A WORKER\n- `swarmmail_reserve` - Workers reserve their own files\n- `git commit` - Workers commit their own changes\n\n### External Data Fetching (SPAWN A RESEARCHER instead)\n\n**Repository fetching:**\n- `repo-crawl_file`, `repo-crawl_readme`, `repo-crawl_search`, `repo-crawl_structure`, `repo-crawl_tree`\n- `repo-autopsy_*` (all repo-autopsy tools)\n\n**Web/documentation fetching:**\n- `webfetch`, `fetch_fetch`\n- `context7_resolve-library-id`, `context7_get-library-docs`\n\n**Knowledge base:**\n- `pdf-brain_search`, `pdf-brain_read`\n\n**Instead:** Use `swarm_spawn_researcher` with a clear research task. The researcher will fetch, summarize, and return findings.\n\n---\n\n## \uD83D\uDCBC YOUR ROLE (Non-Negotiable)\n\nYou are the **COORDINATOR**. Your job is ORCHESTRATION, not implementation.\n\n### What Coordinators Do:\n- \u2705 Spawn workers for implementation tasks\n- \u2705 Monitor worker progress via `swarm_status` and `swarmmail_inbox`\n- \u2705 Review completed work with `swarm_review`\n- \u2705 Unblock dependencies and resolve conflicts\n- \u2705 Close the loop when epics complete\n\n### What Coordinators NEVER Do:\n- \u274C **NEVER** edit or write files directly\n- \u274C **NEVER** run tests with `bash`\n- \u274C **NEVER** \"just do it myself to save time\"\n- \u274C **NEVER** reserve files (workers reserve)\n- \u274C **NEVER** fetch external data directly (spawn researchers)\n\n**If you catch yourself about to edit a file, STOP. Use `swarm_spawn_subtask` instead.**\n\n### Strong Mandates:\n- **ALWAYS** spawn workers for implementation tasks\n- **ALWAYS** check status and inbox before decisions\n- **ALWAYS** review worker output before accepting\n- **NON-NEGOTIABLE:** You orchestrate. You do NOT implement.\n\n---\n\n## \uD83D\uDCCB MANDATORY BEHAVIORS (Post-Compaction Checklist)\n\n### 1. Inbox Monitoring (EVERY 5-10 MINUTES)\n```\nswarmmail_inbox(limit=5) # Check for messages\nswarmmail_read_message(message_id=N) # Read urgent ones\nswarm_status(epic_id, project_key) # Overall progress\n```\n**Intervention triggers:** Worker blocked >5min, file conflict, scope creep\n\n### 2. Skill Loading (BEFORE spawning workers)\n```\nskills_use(name=\"swarm-coordination\") # ALWAYS for swarms\nskills_use(name=\"testing-patterns\") # If task involves tests\nskills_use(name=\"system-design\") # If architectural decisions\n```\n**Include skill recommendations in shared_context for workers.**\n\n### 3. Worker Review (AFTER EVERY worker returns)\n```\nswarm_review(project_key, epic_id, task_id, files_touched)\n# Evaluate: Does it fulfill requirements? Enable downstream tasks? Type safe?\nswarm_review_feedback(project_key, task_id, worker_id, status, issues)\n```\n**3-Strike Rule:** After 3 rejections \u2192 mark blocked \u2192 escalate to human.\n\n### 4. Research Spawning (For unfamiliar tech)\n```\nTask(subagent_type=\"swarm-researcher\", prompt=\"Research <topic>...\")\n```\n**NEVER call context7, pdf-brain, webfetch directly.** Spawn a researcher.\n\n---\n\n## \uD83D\uDCDD SUMMARY FORMAT (Preserve This State)\n\nWhen compaction occurs, extract and preserve this structure:\n\n```\n## \uD83D\uDC1D Swarm State\n\n**Epic:** CELL_ID - TITLE\n**Project:** PROJECT_PATH\n**Progress:** X/Y subtasks complete\n\n**Active:**\n- CELL_ID: TITLE [in_progress] \u2192 AGENT working on FILES\n\n**Blocked:**\n- CELL_ID: TITLE - BLOCKED: REASON\n\n**Completed:**\n- CELL_ID: TITLE \u2713\n\n**Ready to Spawn:**\n- CELL_ID: TITLE (files: FILES)\n```\n\n### What to Extract:\n1. **Epic & Subtasks** - IDs, titles, status, file assignments\n2. **What's Running** - Active agents and their current work\n3. **What's Blocked** - Blockers and what's needed to unblock\n4. **What's Done** - Completed work and follow-ups\n5. **What's Next** - Pending subtasks ready to spawn\n\n---\n\n## \uD83D\uDCCB REFERENCE: Full Coordinator Workflow\n\nYou are ALWAYS swarming. Use this workflow for any new work:\n\n### Phase 1.5: Research (For Complex Tasks)\n\nIf the task requires unfamiliar technologies, spawn a researcher FIRST:\n\n```\nswarm_spawn_researcher(\n research_id=\"research-TOPIC\",\n epic_id=\"mjkw...\", # your epic ID\n tech_stack=[\"TECHNOLOGY\"],\n project_path=\"PROJECT_PATH\"\n)\n// Then spawn with Task(subagent_type=\"swarm/researcher\", prompt=\"...\")\n```\n\n### Phase 2: Knowledge Gathering\n\n```\nsemantic-memory_find(query=\"TASK_KEYWORDS\", limit=5) # Past learnings\ncass_search(query=\"TASK_DESCRIPTION\", limit=5) # Similar past tasks\nskills_list() # Available skills\n```\n\n### Phase 3: Decompose\n\n```\nswarm_select_strategy(task=\"TASK\")\nswarm_plan_prompt(task=\"TASK\", context=\"KNOWLEDGE\")\nswarm_validate_decomposition(response=\"CELLTREE_JSON\")\n```\n\n### Phase 4: Create Cells\n\n`hive_create_epic(epic_title=\"TASK\", subtasks=[...])`\n\n### Phase 5: File Reservations\n\n> **\u26A0\uFE0F Coordinator NEVER reserves files.** Workers reserve their own files with `swarmmail_reserve`.\n\n### Phase 6: Spawn Workers\n\n```\nswarm_spawn_subtask(bead_id, epic_id, title, files, shared_context, project_path)\nTask(subagent_type=\"swarm/worker\", prompt=\"GENERATED_PROMPT\")\n```\n\n### Phase 7: Review Loop (MANDATORY)\n\n**AFTER EVERY Task() RETURNS:**\n\n1. `swarmmail_inbox()` - Check for messages\n2. `swarm_review(project_key, epic_id, task_id, files_touched)` - Generate review\n3. Evaluate against epic goals\n4. `swarm_review_feedback(project_key, task_id, worker_id, status, issues)`\n\n**If needs_changes:**\n```\nswarm_spawn_retry(bead_id, epic_id, original_prompt, attempt, issues, diff, files, project_path)\n// Spawn NEW worker with Task() using retry prompt\n// Max 3 attempts before marking task blocked\n```\n\n### Phase 8: Complete\n\n`hive_sync()` - Sync all cells to git\n\n---\n\n## \uD83D\uDCCA REFERENCE: Decomposition Strategies\n\n| Strategy | Best For | Keywords |\n| -------------- | ------------------------ | -------------------------------------- |\n| file-based | Refactoring, migrations | refactor, migrate, rename, update all |\n| feature-based | New features | add, implement, build, create, feature |\n| risk-based | Bug fixes, security | fix, bug, security, critical, urgent |\n\n---\n\n**You are the COORDINATOR. You orchestrate. You do NOT implement. Spawn workers.**\n";
49
51
  /**
50
52
  * Fallback detection prompt - tells the compactor what to look for
51
53
  *
@@ -1 +1 @@
1
- {"version":3,"file":"compaction-hook.d.ts","sourceRoot":"","sources":["../src/compaction-hook.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAwCH;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,wBAAwB,mwNA2LpC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,0nCAiCpC,CAAC;AA2FF;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,GAAG,CACX,MAAM,EACN;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM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MAAM,EAAE,CAAA;KAAE,CACrE,CAAC;IACF,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,OAAO,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;CACjE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,cAAc,EACtB,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,MAAY,GAClB,OAAO,CAAC,iBAAiB,CAAC,CAgJ5B;AAwVD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,cAAc,IAExD,OAAO;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,EAC5B,QAAQ;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,KAC5B,OAAO,CAAC,IAAI,CAAC,CAqLjB"}
@@ -99,6 +99,7 @@ export declare function scoreCoordinatorIdentity(prompt: CompactionPrompt): Scor
99
99
  * 2. Write
100
100
  * 3. swarmmail_reserve (only workers reserve)
101
101
  * 4. git commit (workers commit)
102
+ * 5. bash (for file modifications)
102
103
  *
103
104
  * @returns ratio of forbidden tools mentioned (0.0 to 1.0)
104
105
  */
@@ -1 +1 @@
1
- {"version":3,"file":"compaction-prompt-scoring.d.ts","sourceRoot":"","sources":["../src/compaction-prompt-scoring.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CAChB;AAID,iEAAiE;AACjE,eAAO,MAAM,YAAY,QAAqB,CAAC;AAE/C,0CAA0C;AAC1C,eAAO,MAAM,YAAY,UAKxB,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,SAAS,QAAiB,CAAC;AAExC,sCAAsC;AACtC,eAAO,MAAM,eAAe,UAAoD,CAAC;AAIjF;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,gBAAgB,GAAG,YAAY,CAuB7E;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,GAAG,YAAY,CA+BzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CACvC,MAAM,EAAE,gBAAgB,GACtB,YAAY,CA6Bd;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,0BAA0B,CACzC,MAAM,EAAE,gBAAgB,GACtB,YAAY,CAiCd;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,6BAA6B,CAC5C,MAAM,EAAE,gBAAgB,GACtB,YAAY,CAiCd"}
1
+ {"version":3,"file":"compaction-prompt-scoring.d.ts","sourceRoot":"","sources":["../src/compaction-prompt-scoring.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CAChB;AAID,iEAAiE;AACjE,eAAO,MAAM,YAAY,QAAqB,CAAC;AAE/C,0CAA0C;AAC1C,eAAO,MAAM,YAAY,UAKxB,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,SAAS,QAAiB,CAAC;AAExC,sCAAsC;AACtC,eAAO,MAAM,eAAe,UAAoD,CAAC;AAIjF;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,gBAAgB,GAAG,YAAY,CAuB7E;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,GAAG,YAAY,CA+BzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CACvC,MAAM,EAAE,gBAAgB,GACtB,YAAY,CA6Bd;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,0BAA0B,CACzC,MAAM,EAAE,gBAAgB,GACtB,YAAY,CAkCd;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,6BAA6B,CAC5C,MAAM,EAAE,gBAAgB,GACtB,YAAY,CAiCd"}
@@ -0,0 +1,134 @@
1
+ /**
2
+ * Programmatic Evalite Runner
3
+ *
4
+ * Provides a type-safe API for running evalite evals programmatically.
5
+ * Wraps evalite's runEvalite function with structured result parsing.
6
+ *
7
+ * @module eval-runner
8
+ */
9
+ /**
10
+ * Options for running evals programmatically
11
+ */
12
+ export interface RunEvalsOptions {
13
+ /**
14
+ * Working directory containing eval files (defaults to process.cwd())
15
+ */
16
+ cwd?: string;
17
+ /**
18
+ * Optional filter to run specific eval suites (e.g., "coordinator", "compaction")
19
+ * Matches against eval file paths using substring matching
20
+ */
21
+ suiteFilter?: string;
22
+ /**
23
+ * Minimum average score threshold (0-100)
24
+ * If average score falls below this, result.success will be false
25
+ */
26
+ scoreThreshold?: number;
27
+ /**
28
+ * Optional path to write raw evalite JSON output
29
+ */
30
+ outputPath?: string;
31
+ }
32
+ /**
33
+ * Structured suite result with scores
34
+ */
35
+ export interface SuiteResult {
36
+ /** Suite name from evalite() call */
37
+ name: string;
38
+ /** Absolute path to eval file */
39
+ filepath: string;
40
+ /** Suite status: success, fail, or running */
41
+ status: "success" | "fail" | "running";
42
+ /** Total duration in milliseconds */
43
+ duration: number;
44
+ /** Average score across all evals in suite (0-1 scale) */
45
+ averageScore: number;
46
+ /** Number of evals in this suite */
47
+ evalCount: number;
48
+ /** Individual eval results (optional, can be large) */
49
+ evals?: Array<{
50
+ input: unknown;
51
+ output: unknown;
52
+ expected?: unknown;
53
+ scores: Array<{
54
+ name: string;
55
+ score: number;
56
+ description?: string;
57
+ }>;
58
+ }>;
59
+ }
60
+ /**
61
+ * Structured result from running evals
62
+ */
63
+ export interface RunEvalsResult {
64
+ /** Whether the run succeeded (all evals passed threshold) */
65
+ success: boolean;
66
+ /** Total number of suites executed */
67
+ totalSuites: number;
68
+ /** Total number of individual evals executed */
69
+ totalEvals: number;
70
+ /** Average score across all suites (0-1 scale) */
71
+ averageScore: number;
72
+ /** Individual suite results */
73
+ suites: SuiteResult[];
74
+ /** Error message if run failed */
75
+ error?: string;
76
+ /** Gate check results per suite */
77
+ gateResults?: Array<{
78
+ suite: string;
79
+ passed: boolean;
80
+ phase: string;
81
+ message: string;
82
+ baseline?: number;
83
+ currentScore: number;
84
+ regressionPercent?: number;
85
+ }>;
86
+ }
87
+ /**
88
+ * Run evalite evals programmatically
89
+ *
90
+ * @param options - Configuration for eval run
91
+ * @returns Structured results with scores per suite
92
+ *
93
+ * @example
94
+ * ```typescript
95
+ * // Run all evals
96
+ * const result = await runEvals({ cwd: "/path/to/project" });
97
+ * console.log(`Average score: ${result.averageScore}`);
98
+ *
99
+ * // Run specific suite
100
+ * const coordResult = await runEvals({
101
+ * cwd: "/path/to/project",
102
+ * suiteFilter: "coordinator"
103
+ * });
104
+ *
105
+ * // Enforce score threshold
106
+ * const gatedResult = await runEvals({
107
+ * cwd: "/path/to/project",
108
+ * scoreThreshold: 80
109
+ * });
110
+ * if (!gatedResult.success) {
111
+ * throw new Error(`Evals failed threshold: ${gatedResult.averageScore}`);
112
+ * }
113
+ * ```
114
+ */
115
+ export declare function runEvals(options?: RunEvalsOptions): Promise<RunEvalsResult>;
116
+ /**
117
+ * All eval tools exported for registration
118
+ */
119
+ export declare const evalTools: {
120
+ readonly eval_run: {
121
+ description: string;
122
+ args: {
123
+ suiteFilter: import("zod").ZodOptional<import("zod").ZodString>;
124
+ scoreThreshold: import("zod").ZodOptional<import("zod").ZodNumber>;
125
+ includeDetailedResults: import("zod").ZodOptional<import("zod").ZodBoolean>;
126
+ };
127
+ execute(args: {
128
+ suiteFilter?: string | undefined;
129
+ scoreThreshold?: number | undefined;
130
+ includeDetailedResults?: boolean | undefined;
131
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
132
+ };
133
+ };
134
+ //# sourceMappingURL=eval-runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eval-runner.d.ts","sourceRoot":"","sources":["../src/eval-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAaH;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAC;IAEb,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;IAEjB,8CAA8C;IAC9C,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;IAEvC,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IAEjB,0DAA0D;IAC1D,YAAY,EAAE,MAAM,CAAC;IAErB,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;IAElB,uDAAuD;IACvD,KAAK,CAAC,EAAE,KAAK,CAAC;QACZ,KAAK,EAAE,OAAO,CAAC;QACf,MAAM,EAAE,OAAO,CAAC;QAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,MAAM,EAAE,KAAK,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC;YACb,KAAK,EAAE,MAAM,CAAC;YACd,WAAW,CAAC,EAAE,MAAM,CAAC;SACtB,CAAC,CAAC;KACJ,CAAC,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,OAAO,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWrB,CAAC;AAkCF;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;CAMvB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CAMtB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;CAMvB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;CAMtB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;CAMtB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;CAMtB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;CAMrB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;CAM5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUtB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -147,6 +147,9 @@ export declare const allTools: {
147
147
  tags: import("zod").ZodOptional<import("zod").ZodString>;
148
148
  metadata: import("zod").ZodOptional<import("zod").ZodString>;
149
149
  confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
150
+ autoTag: import("zod").ZodOptional<import("zod").ZodBoolean>;
151
+ autoLink: import("zod").ZodOptional<import("zod").ZodBoolean>;
152
+ extractEntities: import("zod").ZodOptional<import("zod").ZodBoolean>;
150
153
  };
151
154
  execute(args: {
152
155
  information: string;
@@ -154,6 +157,9 @@ export declare const allTools: {
154
157
  tags?: string | undefined;
155
158
  metadata?: string | undefined;
156
159
  confidence?: number | undefined;
160
+ autoTag?: boolean | undefined;
161
+ autoLink?: boolean | undefined;
162
+ extractEntities?: boolean | undefined;
157
163
  }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
158
164
  };
159
165
  readonly "semantic-memory_find": {
@@ -219,6 +225,29 @@ export declare const allTools: {
219
225
  args: {};
220
226
  execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
221
227
  };
228
+ readonly "semantic-memory_upsert": {
229
+ description: string;
230
+ args: {
231
+ information: import("zod").ZodString;
232
+ collection: import("zod").ZodOptional<import("zod").ZodString>;
233
+ tags: import("zod").ZodOptional<import("zod").ZodString>;
234
+ metadata: import("zod").ZodOptional<import("zod").ZodString>;
235
+ confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
236
+ autoTag: import("zod").ZodOptional<import("zod").ZodBoolean>;
237
+ autoLink: import("zod").ZodOptional<import("zod").ZodBoolean>;
238
+ extractEntities: import("zod").ZodOptional<import("zod").ZodBoolean>;
239
+ };
240
+ execute(args: {
241
+ information: string;
242
+ collection?: string | undefined;
243
+ tags?: string | undefined;
244
+ metadata?: string | undefined;
245
+ confidence?: number | undefined;
246
+ autoTag?: boolean | undefined;
247
+ autoLink?: boolean | undefined;
248
+ extractEntities?: boolean | undefined;
249
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
250
+ };
222
251
  readonly mandate_file: {
223
252
  description: string;
224
253
  args: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,MAAM,EAAsB,MAAM,qBAAqB,CAAC;AA6CtE;;;;;;;;;;;;;;;;;GAiBG;AACH,QA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