opencode-swarm 6.40.8 → 6.41.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.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Handles /swarm close command - closes the swarm by archiving evidence,
3
+ * writing retrospectives for in-progress phases, and clearing session state.
4
+ * Must be idempotent - safe to run multiple times.
5
+ */
6
+ export declare function handleCloseCommand(directory: string, _args: string[]): Promise<string>;
@@ -5,6 +5,7 @@ export { handleArchiveCommand } from './archive';
5
5
  export { handleBenchmarkCommand } from './benchmark';
6
6
  export { handleCheckpointCommand } from './checkpoint';
7
7
  export { handleClarifyCommand } from './clarify';
8
+ export { handleCloseCommand } from './close';
8
9
  export { handleConfigCommand } from './config';
9
10
  export { handleCurateCommand } from './curate';
10
11
  export { handleDarkMatterCommand } from './dark-matter';
@@ -80,6 +80,10 @@ export declare const COMMAND_REGISTRY: {
80
80
  readonly handler: (ctx: CommandContext) => Promise<string>;
81
81
  readonly description: "Detect hidden file couplings via co-change NPMI analysis";
82
82
  };
83
+ readonly close: {
84
+ readonly handler: (ctx: CommandContext) => Promise<string>;
85
+ readonly description: "Use /swarm close to close the swarm project and archive evidence";
86
+ };
83
87
  readonly simulate: {
84
88
  readonly handler: (ctx: CommandContext) => Promise<string>;
85
89
  readonly description: "Dry-run impact analysis of proposed changes [--target <glob>]";
@@ -4,6 +4,7 @@ export declare const TaskStatusSchema: z.ZodEnum<{
4
4
  in_progress: "in_progress";
5
5
  completed: "completed";
6
6
  blocked: "blocked";
7
+ closed: "closed";
7
8
  }>;
8
9
  export type TaskStatus = z.infer<typeof TaskStatusSchema>;
9
10
  export declare const TaskSizeSchema: z.ZodEnum<{
@@ -17,6 +18,7 @@ export declare const PhaseStatusSchema: z.ZodEnum<{
17
18
  in_progress: "in_progress";
18
19
  completed: "completed";
19
20
  blocked: "blocked";
21
+ closed: "closed";
20
22
  complete: "complete";
21
23
  }>;
22
24
  export type PhaseStatus = z.infer<typeof PhaseStatusSchema>;
@@ -46,6 +48,7 @@ export declare const TaskSchema: z.ZodObject<{
46
48
  in_progress: "in_progress";
47
49
  completed: "completed";
48
50
  blocked: "blocked";
51
+ closed: "closed";
49
52
  }>>;
50
53
  size: z.ZodDefault<z.ZodEnum<{
51
54
  small: "small";
@@ -68,6 +71,7 @@ export declare const PhaseSchema: z.ZodObject<{
68
71
  in_progress: "in_progress";
69
72
  completed: "completed";
70
73
  blocked: "blocked";
74
+ closed: "closed";
71
75
  complete: "complete";
72
76
  }>>;
73
77
  tasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -78,6 +82,7 @@ export declare const PhaseSchema: z.ZodObject<{
78
82
  in_progress: "in_progress";
79
83
  completed: "completed";
80
84
  blocked: "blocked";
85
+ closed: "closed";
81
86
  }>>;
82
87
  size: z.ZodDefault<z.ZodEnum<{
83
88
  small: "small";
@@ -107,6 +112,7 @@ export declare const PlanSchema: z.ZodObject<{
107
112
  in_progress: "in_progress";
108
113
  completed: "completed";
109
114
  blocked: "blocked";
115
+ closed: "closed";
110
116
  complete: "complete";
111
117
  }>>;
112
118
  tasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -117,6 +123,7 @@ export declare const PlanSchema: z.ZodObject<{
117
123
  in_progress: "in_progress";
118
124
  completed: "completed";
119
125
  blocked: "blocked";
126
+ closed: "closed";
120
127
  }>>;
121
128
  size: z.ZodDefault<z.ZodEnum<{
122
129
  small: "small";