opencode-swarm 7.15.0 → 7.17.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/README.md +3 -3
- package/dist/agents/index.d.ts +3 -2
- package/dist/agents/project-context.d.ts +58 -0
- package/dist/agents/template.d.ts +85 -0
- package/dist/build/discovery.d.ts +2 -4
- package/dist/cli/index.js +2954 -543
- package/dist/commands/close.d.ts +14 -1
- package/dist/commands/registry.d.ts +3 -3
- package/dist/index.js +3814 -2064
- package/dist/lang/backend.d.ts +199 -0
- package/dist/lang/backends/go.d.ts +21 -0
- package/dist/lang/backends/index.d.ts +27 -0
- package/dist/lang/backends/python.d.ts +25 -0
- package/dist/lang/backends/typescript.d.ts +56 -0
- package/dist/lang/default-backend.d.ts +105 -0
- package/dist/lang/dispatch.d.ts +52 -0
- package/dist/lang/profiles.d.ts +28 -0
- package/dist/lang/registry-backend.d.ts +35 -0
- package/dist/services/skill-improver.d.ts +1 -0
- package/dist/test-impact/analyzer.d.ts +7 -0
- package/dist/tools/test-runner.d.ts +22 -0
- package/package.json +1 -1
package/dist/commands/close.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
interface CloseCommandOptions {
|
|
2
|
+
sessionID?: string;
|
|
3
|
+
skillReviewTimeoutMs?: number;
|
|
4
|
+
}
|
|
5
|
+
interface CloseKnowledgeEntry {
|
|
6
|
+
created_at?: string;
|
|
7
|
+
}
|
|
8
|
+
declare function countSessionKnowledgeEntries(entries: CloseKnowledgeEntry[], sessionStart: string | undefined, fallbackCount: number): number;
|
|
1
9
|
/**
|
|
2
10
|
* Handles /swarm close command - performs full terminal session finalization:
|
|
3
11
|
* 0. Guarantee: mark all incomplete phases/tasks as closed
|
|
@@ -8,4 +16,9 @@
|
|
|
8
16
|
*
|
|
9
17
|
* Must be idempotent - safe to run multiple times.
|
|
10
18
|
*/
|
|
11
|
-
export declare function handleCloseCommand(directory: string, args: string[]): Promise<string>;
|
|
19
|
+
export declare function handleCloseCommand(directory: string, args: string[], options?: CloseCommandOptions): Promise<string>;
|
|
20
|
+
export declare const _internals: {
|
|
21
|
+
countSessionKnowledgeEntries: typeof countSessionKnowledgeEntries;
|
|
22
|
+
CLOSE_SKILL_REVIEW_TIMEOUT_MS: number;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -235,15 +235,15 @@ export declare const COMMAND_REGISTRY: {
|
|
|
235
235
|
readonly finalize: {
|
|
236
236
|
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
237
237
|
readonly description: "Use /swarm finalize to finalize the swarm project and archive evidence";
|
|
238
|
-
readonly details: "Idempotent 4-stage terminal finalization: (1) finalize writes retrospectives for in-progress phases, (2) archive creates timestamped bundle of swarm artifacts and evidence, (3) clean removes active-state files for a clean slate, (4) align performs safe git ff-only to main. Resets agent sessions and delegation chains. Reads .swarm/close-lessons.md for explicit lessons and runs curation.";
|
|
239
|
-
readonly args: "--prune-branches";
|
|
238
|
+
readonly details: "Idempotent 4-stage terminal finalization: (1) finalize writes retrospectives for in-progress phases, (2) archive creates timestamped bundle of swarm artifacts and evidence, (3) clean removes active-state files for a clean slate, (4) align performs safe git ff-only to main. Resets agent sessions and delegation chains. Reads .swarm/close-lessons.md for explicit lessons and runs curation. Use --skill-review to run the quota-bounded skill_improver in proposal mode.";
|
|
239
|
+
readonly args: "--prune-branches, --skill-review";
|
|
240
240
|
readonly category: "core";
|
|
241
241
|
};
|
|
242
242
|
readonly close: {
|
|
243
243
|
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
244
244
|
readonly description: "Use /swarm close (deprecated alias) to finalize and archive swarm state";
|
|
245
245
|
readonly details: "Deprecated alias for /swarm finalize. Preserved for backward compatibility.";
|
|
246
|
-
readonly args: "--prune-branches";
|
|
246
|
+
readonly args: "--prune-branches, --skill-review";
|
|
247
247
|
readonly category: "core";
|
|
248
248
|
readonly aliasOf: "finalize";
|
|
249
249
|
readonly deprecated: true;
|