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.
@@ -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;