opencode-swarm 6.40.8 → 6.41.1
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 +9 -1
- package/dist/cli/index.js +8054 -7756
- package/dist/commands/close.d.ts +6 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/registry.d.ts +4 -0
- package/dist/config/plan-schema.d.ts +7 -0
- package/dist/hooks/guardrails.d.ts +1 -1
- package/dist/index.js +3185 -2786
- package/dist/services/history-service.d.ts +1 -1
- package/dist/tools/declare-scope.d.ts +1 -0
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/tool-names.d.ts +1 -1
- package/dist/tools/write-drift-evidence.d.ts +29 -0
- package/package.json +1 -1
|
@@ -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>;
|
package/dist/commands/index.d.ts
CHANGED
|
@@ -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";
|
|
@@ -106,7 +106,7 @@ export declare function validateAndRecordAttestation(dir: string, findingId: str
|
|
|
106
106
|
/**
|
|
107
107
|
* Checks whether the given agent is authorised to write to the given file path.
|
|
108
108
|
*/
|
|
109
|
-
export declare function checkFileAuthority(agentName: string, filePath: string,
|
|
109
|
+
export declare function checkFileAuthority(agentName: string, filePath: string, cwd: string): {
|
|
110
110
|
allowed: true;
|
|
111
111
|
} | {
|
|
112
112
|
allowed: false;
|