opencode-swarm-plugin 0.33.0 → 0.35.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 (41) hide show
  1. package/.hive/issues.jsonl +12 -0
  2. package/.hive/memories.jsonl +255 -1
  3. package/.turbo/turbo-build.log +4 -4
  4. package/.turbo/turbo-test.log +289 -289
  5. package/CHANGELOG.md +133 -0
  6. package/README.md +29 -1
  7. package/bin/swarm.test.ts +342 -1
  8. package/bin/swarm.ts +351 -4
  9. package/dist/compaction-hook.d.ts +1 -1
  10. package/dist/compaction-hook.d.ts.map +1 -1
  11. package/dist/index.d.ts +95 -0
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +11848 -124
  14. package/dist/logger.d.ts +34 -0
  15. package/dist/logger.d.ts.map +1 -0
  16. package/dist/plugin.js +11722 -112
  17. package/dist/swarm-orchestrate.d.ts +105 -0
  18. package/dist/swarm-orchestrate.d.ts.map +1 -1
  19. package/dist/swarm-prompts.d.ts +54 -2
  20. package/dist/swarm-prompts.d.ts.map +1 -1
  21. package/dist/swarm-research.d.ts +127 -0
  22. package/dist/swarm-research.d.ts.map +1 -0
  23. package/dist/swarm-review.d.ts.map +1 -1
  24. package/dist/swarm.d.ts +56 -1
  25. package/dist/swarm.d.ts.map +1 -1
  26. package/evals/compaction-resumption.eval.ts +289 -0
  27. package/evals/coordinator-behavior.eval.ts +307 -0
  28. package/evals/fixtures/compaction-cases.ts +350 -0
  29. package/evals/scorers/compaction-scorers.ts +305 -0
  30. package/evals/scorers/index.ts +12 -0
  31. package/package.json +5 -2
  32. package/src/compaction-hook.test.ts +639 -1
  33. package/src/compaction-hook.ts +488 -18
  34. package/src/index.ts +29 -0
  35. package/src/logger.test.ts +189 -0
  36. package/src/logger.ts +135 -0
  37. package/src/swarm-decompose.ts +0 -7
  38. package/src/swarm-prompts.test.ts +164 -1
  39. package/src/swarm-prompts.ts +179 -12
  40. package/src/swarm-review.test.ts +177 -0
  41. package/src/swarm-review.ts +12 -47
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Logger infrastructure using Pino with daily rotation
3
+ *
4
+ * Features:
5
+ * - Daily log rotation via pino-roll (numeric format: swarm.1log, swarm.2log, etc.)
6
+ * - 14-day retention (14 files max in addition to current file)
7
+ * - Module-specific child loggers with separate log files
8
+ * - Pretty mode for development (SWARM_LOG_PRETTY=1 env var)
9
+ * - Logs to ~/.config/swarm-tools/logs/ by default
10
+ *
11
+ * Note: pino-roll uses numeric rotation (e.g., swarm.1log, swarm.2log) not date-based names.
12
+ * Files rotate daily based on frequency='daily', with a maximum of 14 retained files.
13
+ */
14
+ import type { Logger } from "pino";
15
+ /**
16
+ * Gets or creates the main logger instance
17
+ *
18
+ * @param logDir - Optional log directory (defaults to ~/.config/swarm-tools/logs)
19
+ * @returns Pino logger instance
20
+ */
21
+ export declare function getLogger(logDir?: string): Logger;
22
+ /**
23
+ * Creates a child logger for a specific module with its own log file
24
+ *
25
+ * @param module - Module name (e.g., "compaction", "cli")
26
+ * @param logDir - Optional log directory (defaults to ~/.config/swarm-tools/logs)
27
+ * @returns Child logger instance
28
+ */
29
+ export declare function createChildLogger(module: string, logDir?: string): Logger;
30
+ /**
31
+ * Default logger instance for immediate use
32
+ */
33
+ export declare const logger: Logger;
34
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAuDnC;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,MAAM,GAAE,MAAwB,GAAG,MAAM,CAmBlE;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,MAAwB,GAC/B,MAAM,CAoBR;AAED;;GAEG;AACH,eAAO,MAAM,MAAM,QAAc,CAAC"}