opencode-swarm-plugin 0.33.0 → 0.34.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/.hive/issues.jsonl +12 -0
- package/.hive/memories.jsonl +255 -1
- package/.turbo/turbo-build.log +4 -4
- package/.turbo/turbo-test.log +289 -289
- package/CHANGELOG.md +98 -0
- package/README.md +29 -1
- package/bin/swarm.test.ts +272 -1
- package/bin/swarm.ts +226 -4
- package/dist/compaction-hook.d.ts +1 -1
- package/dist/compaction-hook.d.ts.map +1 -1
- package/dist/index.d.ts +95 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11848 -124
- package/dist/logger.d.ts +34 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/plugin.js +11722 -112
- package/dist/swarm-orchestrate.d.ts +105 -0
- package/dist/swarm-orchestrate.d.ts.map +1 -1
- package/dist/swarm-prompts.d.ts +54 -2
- package/dist/swarm-prompts.d.ts.map +1 -1
- package/dist/swarm-research.d.ts +127 -0
- package/dist/swarm-research.d.ts.map +1 -0
- package/dist/swarm-review.d.ts.map +1 -1
- package/dist/swarm.d.ts +56 -1
- package/dist/swarm.d.ts.map +1 -1
- package/evals/compaction-resumption.eval.ts +289 -0
- package/evals/coordinator-behavior.eval.ts +307 -0
- package/evals/fixtures/compaction-cases.ts +350 -0
- package/evals/scorers/compaction-scorers.ts +305 -0
- package/evals/scorers/index.ts +12 -0
- package/package.json +5 -2
- package/src/compaction-hook.test.ts +617 -1
- package/src/compaction-hook.ts +291 -18
- package/src/index.ts +29 -0
- package/src/logger.test.ts +189 -0
- package/src/logger.ts +135 -0
- package/src/swarm-prompts.test.ts +164 -1
- package/src/swarm-prompts.ts +178 -4
- package/src/swarm-review.test.ts +177 -0
- package/src/swarm-review.ts +12 -47
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{"id":"opencode-swarm-plugin--ys7z8-mjk7dc97sjc","title":"Pino Logging Infrastructure + Compaction Instrumentation","description":"Add structured Pino logging to ~/.config/swarm-tools/logs/ with daily rotation. Instrument compaction-hook.ts as first consumer. Add swarm log CLI for querying. Complements existing DEBUG env var approach.\n\n## Execution Order\n1. Logger infrastructure (parallel-ready after this)\n2. Compaction instrumentation (depends on 1)\n3. CLI command (depends on 1, parallel with 2)\n\n## Success Criteria\n- Logs written to ~/.config/swarm-tools/logs/compaction-YYYY-MM-DD.log\n- 14-day retention with daily rotation\n- SWARM_LOG_PRETTY=1 shows human-readable output\n- swarm log CLI can tail/filter logs\n- Compaction phases fully instrumented","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-24T16:02:57.739Z","updated_at":"2025-12-24T16:24:35.974Z","closed_at":"2025-12-24T16:24:35.974Z","dependencies":[],"labels":[],"comments":[]}
|
|
2
|
+
{"id":"opencode-swarm-plugin--ys7z8-mjk7dc9fs37","title":"Create logger infrastructure (src/logger.ts)","status":"closed","priority":0,"issue_type":"task","created_at":"2025-12-24T16:02:57.747Z","updated_at":"2025-12-24T16:13:39.015Z","closed_at":"2025-12-24T16:13:39.015Z","parent_id":"opencode-swarm-plugin--ys7z8-mjk7dc97sjc","dependencies":[],"labels":[],"comments":[]}
|
|
3
|
+
{"id":"opencode-swarm-plugin--ys7z8-mjk7dc9igjj","title":"Instrument compaction-hook.ts with structured logging","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-24T16:02:57.750Z","updated_at":"2025-12-24T16:24:25.848Z","closed_at":"2025-12-24T16:24:25.848Z","parent_id":"opencode-swarm-plugin--ys7z8-mjk7dc97sjc","dependencies":[],"labels":[],"comments":[]}
|
|
4
|
+
{"id":"opencode-swarm-plugin--ys7z8-mjk7dc9k1k7","title":"Add swarm log CLI command","status":"closed","priority":1,"issue_type":"task","created_at":"2025-12-24T16:02:57.752Z","updated_at":"2025-12-24T16:24:26.653Z","closed_at":"2025-12-24T16:24:26.653Z","parent_id":"opencode-swarm-plugin--ys7z8-mjk7dc97sjc","dependencies":[],"labels":[],"comments":[]}
|
|
5
|
+
{"id":"opencode-swarm-plugin--ys7z8-mjk8n0jbbb9","title":"P0 Security Fixes + Analytics Queries","description":"Fix SQL injection vulnerabilities in cursor.ts and lock.ts, then implement pre-built analytics queries.\n\n## Phase 1: Security Fixes (P0 - parallel)\n- cursor.ts: Replace db.exec() string interpolation with db.query() parameterized\n- lock.ts: Same pattern\n\n## Phase 2: Analytics Queries\n- Implement 5 pre-built analytics queries for swarm-db CLI\n- Based on Four Golden Signals (latency, traffic, errors, saturation)\n\n## Success Criteria\n- No SQL injection vulnerabilities (parameterized queries only)\n- Tests verify malicious input is safely escaped\n- Analytics queries work with --format, --since, --until flags","status":"closed","priority":1,"issue_type":"epic","created_at":"2025-12-24T16:38:28.727Z","updated_at":"2025-12-24T16:50:06.170Z","closed_at":"2025-12-24T16:50:06.170Z","dependencies":[],"labels":[],"comments":[]}
|
|
6
|
+
{"id":"opencode-swarm-plugin--ys7z8-mjk8n0jkf0y","title":"Fix SQL injection in cursor.ts","status":"closed","priority":0,"issue_type":"task","created_at":"2025-12-24T16:38:28.736Z","updated_at":"2025-12-24T16:41:00.391Z","closed_at":"2025-12-24T16:41:00.391Z","parent_id":"opencode-swarm-plugin--ys7z8-mjk8n0jbbb9","dependencies":[],"labels":[],"comments":[]}
|
|
7
|
+
{"id":"opencode-swarm-plugin--ys7z8-mjk8n0jm0rb","title":"Fix SQL injection in lock.ts","status":"closed","priority":0,"issue_type":"task","created_at":"2025-12-24T16:38:28.738Z","updated_at":"2025-12-24T16:41:00.939Z","closed_at":"2025-12-24T16:41:00.939Z","parent_id":"opencode-swarm-plugin--ys7z8-mjk8n0jbbb9","dependencies":[],"labels":[],"comments":[]}
|
|
8
|
+
{"id":"opencode-swarm-plugin--ys7z8-mjk8n0jonu4","title":"Implement pre-built analytics queries (1-5)","status":"closed","priority":2,"issue_type":"task","created_at":"2025-12-24T16:38:28.740Z","updated_at":"2025-12-24T16:49:57.415Z","closed_at":"2025-12-24T16:49:57.415Z","parent_id":"opencode-swarm-plugin--ys7z8-mjk8n0jbbb9","dependencies":[],"labels":[],"comments":[]}
|
|
9
|
+
{"id":"opencode-swarm-plugin--ys7z8-mjk979715dp","title":"Durable Streams Adapter for Hive Visualizer","description":"Phase 1 of Hive Visualizer: Create Durable Streams protocol adapter exposing swarm-mail events for real-time visualization.\n\nProtocol: https://github.com/durable-streams/durable-streams\n\nComponents:\n1. DurableStreamAdapter - wraps event store with read(offset, limit), head(), subscribe()\n2. HTTP Server - SSE endpoint at /streams/:project for live tailing\n3. Exports - expose from swarm-mail index","status":"open","priority":1,"issue_type":"epic","created_at":"2025-12-24T16:54:13.069Z","updated_at":"2025-12-24T16:54:13.069Z","dependencies":[],"labels":[],"comments":[]}
|
|
10
|
+
{"id":"opencode-swarm-plugin--ys7z8-mjk9797bp4t","title":"DurableStreamAdapter core implementation","status":"open","priority":1,"issue_type":"task","created_at":"2025-12-24T16:54:13.079Z","updated_at":"2025-12-24T16:54:13.079Z","parent_id":"opencode-swarm-plugin--ys7z8-mjk979715dp","dependencies":[],"labels":[],"comments":[]}
|
|
11
|
+
{"id":"opencode-swarm-plugin--ys7z8-mjk9797g8pe","title":"Durable Streams HTTP server with SSE","status":"open","priority":2,"issue_type":"task","created_at":"2025-12-24T16:54:13.084Z","updated_at":"2025-12-24T16:54:13.084Z","parent_id":"opencode-swarm-plugin--ys7z8-mjk979715dp","dependencies":[],"labels":[],"comments":[]}
|
|
12
|
+
{"id":"opencode-swarm-plugin--ys7z8-mjk9797i98d","title":"Export Durable Streams from swarm-mail index","status":"open","priority":2,"issue_type":"task","created_at":"2025-12-24T16:54:13.086Z","updated_at":"2025-12-24T16:54:13.086Z","parent_id":"opencode-swarm-plugin--ys7z8-mjk979715dp","dependencies":[],"labels":[],"comments":[]}
|