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.
- 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 +133 -0
- package/README.md +29 -1
- package/bin/swarm.test.ts +342 -1
- package/bin/swarm.ts +351 -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 +639 -1
- package/src/compaction-hook.ts +488 -18
- package/src/index.ts +29 -0
- package/src/logger.test.ts +189 -0
- package/src/logger.ts +135 -0
- package/src/swarm-decompose.ts +0 -7
- package/src/swarm-prompts.test.ts +164 -1
- package/src/swarm-prompts.ts +179 -12
- package/src/swarm-review.test.ts +177 -0
- package/src/swarm-review.ts +12 -47
package/dist/logger.d.ts
ADDED
|
@@ -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"}
|