opencode-plugin-flow 4.3.9 → 5.0.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/CHANGELOG.md +84 -0
- package/README.md +59 -48
- package/dist/application/errors.d.ts +5 -0
- package/dist/{runtime/api.d.ts → application/flow-service.d.ts} +89 -57
- package/dist/application/ports/session-repository.d.ts +11 -0
- package/dist/{runtime → application}/schema.d.ts +291 -371
- package/dist/cli.js +283 -2773
- package/dist/cli.js.map +7 -6
- package/dist/config-shared.d.ts +30 -16
- package/dist/config.d.ts +1 -1
- package/dist/distribution/legacy-cleanup.d.ts +25 -0
- package/dist/domain/feature-id.d.ts +3 -0
- package/dist/domain/limits.d.ts +1 -0
- package/dist/domain/orchestration-policy.d.ts +27 -0
- package/dist/domain/session.d.ts +181 -0
- package/dist/domain/transitions.d.ts +80 -0
- package/dist/guidance/catalog.d.ts +18 -0
- package/dist/guidance/ids.d.ts +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2676 -1929
- package/dist/index.js.map +24 -16
- package/dist/infrastructure/fs/session-repository.d.ts +2 -0
- package/dist/infrastructure/fs/workspace-flow-service.d.ts +9 -0
- package/dist/{runtime → infrastructure/fs}/workspace.d.ts +10 -14
- package/dist/infrastructure/system/transition-environment.d.ts +2 -0
- package/dist/platform/opencode/config.d.ts +2 -0
- package/dist/{adapters → platform}/opencode/plugin.d.ts +1 -1
- package/dist/{adapters → platform}/opencode/sdk.d.ts +0 -1
- package/dist/platform/opencode/tools.d.ts +6 -0
- package/dist/prompt-baseline-fixtures.d.ts +19 -0
- package/dist/prompt-model-evaluation.d.ts +88 -0
- package/dist/prompt-quality.d.ts +73 -0
- package/dist/prompt-surfaces.d.ts +28 -0
- package/dist/version.d.ts +1 -0
- package/package.json +19 -12
- package/dist/adapters/opencode/config.d.ts +0 -3
- package/dist/adapters/opencode/tools.d.ts +0 -322
- package/dist/distribution/flow-skill-definitions.d.ts +0 -9
- package/dist/distribution/sync.d.ts +0 -69
- package/dist/runtime/time.d.ts +0 -2
- package/dist/runtime/transitions.d.ts +0 -230
- /package/dist/{runtime/json/strict-object.d.ts → infrastructure/fs/strict-json-object.d.ts} +0 -0
- /package/dist/{adapters → platform}/opencode/logging.d.ts +0 -0
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import { type ToolContext } from "./sdk";
|
|
2
|
-
export declare function createTools(ctx: unknown): {
|
|
3
|
-
flow_status: {
|
|
4
|
-
description: string;
|
|
5
|
-
args: {};
|
|
6
|
-
execute(args: Record<string, never>, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
7
|
-
};
|
|
8
|
-
flow_plan_save: {
|
|
9
|
-
description: string;
|
|
10
|
-
args: {
|
|
11
|
-
goal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
-
plan: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
13
|
-
summary: import("zod").ZodString;
|
|
14
|
-
overview: import("zod").ZodString;
|
|
15
|
-
requirements: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
16
|
-
decisions: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
17
|
-
finalReviewPolicy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
18
|
-
broad: "broad";
|
|
19
|
-
detailed: "detailed";
|
|
20
|
-
}>>;
|
|
21
|
-
features: import("zod").ZodArray<import("zod").ZodObject<{
|
|
22
|
-
summary: import("zod").ZodString;
|
|
23
|
-
id: import("zod").ZodString;
|
|
24
|
-
title: import("zod").ZodString;
|
|
25
|
-
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
26
|
-
pending: "pending";
|
|
27
|
-
in_progress: "in_progress";
|
|
28
|
-
completed: "completed";
|
|
29
|
-
blocked: "blocked";
|
|
30
|
-
}>>;
|
|
31
|
-
reviewDepth: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
32
|
-
quick: "quick";
|
|
33
|
-
standard: "standard";
|
|
34
|
-
detailed: "detailed";
|
|
35
|
-
}>>;
|
|
36
|
-
targets: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
37
|
-
validation: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
38
|
-
dependsOn: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
39
|
-
}, import("zod/v4/core").$strict>>;
|
|
40
|
-
}, import("zod/v4/core").$strict>>;
|
|
41
|
-
};
|
|
42
|
-
execute(args: {
|
|
43
|
-
goal?: string | undefined;
|
|
44
|
-
plan?: {
|
|
45
|
-
summary: string;
|
|
46
|
-
overview: string;
|
|
47
|
-
requirements: string[];
|
|
48
|
-
decisions: string[];
|
|
49
|
-
features: {
|
|
50
|
-
summary: string;
|
|
51
|
-
id: string;
|
|
52
|
-
title: string;
|
|
53
|
-
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
54
|
-
reviewDepth?: "quick" | "standard" | "detailed" | undefined;
|
|
55
|
-
targets?: string[] | undefined;
|
|
56
|
-
validation?: string[] | undefined;
|
|
57
|
-
dependsOn?: string[] | undefined;
|
|
58
|
-
}[];
|
|
59
|
-
finalReviewPolicy?: "broad" | "detailed" | undefined;
|
|
60
|
-
} | undefined;
|
|
61
|
-
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
62
|
-
};
|
|
63
|
-
flow_plan_approve: {
|
|
64
|
-
description: string;
|
|
65
|
-
args: {};
|
|
66
|
-
execute(args: Record<string, never>, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
67
|
-
};
|
|
68
|
-
flow_run_start: {
|
|
69
|
-
description: string;
|
|
70
|
-
args: {
|
|
71
|
-
featureId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
72
|
-
phaseBoundaryAck: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
73
|
-
};
|
|
74
|
-
execute(args: {
|
|
75
|
-
featureId?: string | undefined;
|
|
76
|
-
phaseBoundaryAck?: boolean | undefined;
|
|
77
|
-
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
78
|
-
};
|
|
79
|
-
flow_feature_complete: {
|
|
80
|
-
description: string;
|
|
81
|
-
args: {
|
|
82
|
-
status: import("zod").ZodEnum<{
|
|
83
|
-
ok: "ok";
|
|
84
|
-
needs_input: "needs_input";
|
|
85
|
-
}>;
|
|
86
|
-
featureId: import("zod").ZodString;
|
|
87
|
-
summary: import("zod").ZodString;
|
|
88
|
-
artifactsChanged: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
89
|
-
path: import("zod").ZodString;
|
|
90
|
-
}, import("zod/v4/core").$strict>>>;
|
|
91
|
-
validationRun: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
92
|
-
command: import("zod").ZodString;
|
|
93
|
-
status: import("zod").ZodEnum<{
|
|
94
|
-
passed: "passed";
|
|
95
|
-
failed: "failed";
|
|
96
|
-
}>;
|
|
97
|
-
summary: import("zod").ZodString;
|
|
98
|
-
}, import("zod/v4/core").$strict>>>;
|
|
99
|
-
validationScope: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
100
|
-
targeted: "targeted";
|
|
101
|
-
broad: "broad";
|
|
102
|
-
}>>;
|
|
103
|
-
featureReviewDepth: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
104
|
-
quick: "quick";
|
|
105
|
-
standard: "standard";
|
|
106
|
-
detailed: "detailed";
|
|
107
|
-
}>>;
|
|
108
|
-
featureReview: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
109
|
-
status: import("zod").ZodEnum<{
|
|
110
|
-
passed: "passed";
|
|
111
|
-
failed: "failed";
|
|
112
|
-
}>;
|
|
113
|
-
summary: import("zod").ZodString;
|
|
114
|
-
blockingFindings: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
115
|
-
summary: import("zod").ZodString;
|
|
116
|
-
severity: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
117
|
-
blocking: "blocking";
|
|
118
|
-
advisory: "advisory";
|
|
119
|
-
}>>;
|
|
120
|
-
}, import("zod/v4/core").$strict>>>;
|
|
121
|
-
}, import("zod/v4/core").$strict>>;
|
|
122
|
-
finalReview: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
123
|
-
status: import("zod").ZodEnum<{
|
|
124
|
-
passed: "passed";
|
|
125
|
-
failed: "failed";
|
|
126
|
-
}>;
|
|
127
|
-
summary: import("zod").ZodString;
|
|
128
|
-
blockingFindings: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
129
|
-
summary: import("zod").ZodString;
|
|
130
|
-
severity: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
131
|
-
blocking: "blocking";
|
|
132
|
-
advisory: "advisory";
|
|
133
|
-
}>>;
|
|
134
|
-
}, import("zod/v4/core").$strict>>>;
|
|
135
|
-
reviewDepth: import("zod").ZodEnum<{
|
|
136
|
-
broad: "broad";
|
|
137
|
-
detailed: "detailed";
|
|
138
|
-
}>;
|
|
139
|
-
}, import("zod/v4/core").$strict>>;
|
|
140
|
-
outcome: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
141
|
-
kind: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
142
|
-
completed: "completed";
|
|
143
|
-
blocked: "blocked";
|
|
144
|
-
needs_input: "needs_input";
|
|
145
|
-
replan_required: "replan_required";
|
|
146
|
-
}>>;
|
|
147
|
-
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
148
|
-
resolutionHint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
149
|
-
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
150
|
-
kind: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
151
|
-
blocked: "blocked";
|
|
152
|
-
needs_input: "needs_input";
|
|
153
|
-
replan_required: "replan_required";
|
|
154
|
-
}>>;
|
|
155
|
-
summary: import("zod").ZodString;
|
|
156
|
-
resolutionHint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
157
|
-
}, import("zod/v4/core").$strict>]>>;
|
|
158
|
-
orchestrationPasses: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
159
|
-
id: import("zod").ZodString;
|
|
160
|
-
kind: import("zod").ZodEnum<{
|
|
161
|
-
discovery: "discovery";
|
|
162
|
-
audit: "audit";
|
|
163
|
-
review: "review";
|
|
164
|
-
validation: "validation";
|
|
165
|
-
verification: "verification";
|
|
166
|
-
candidate: "candidate";
|
|
167
|
-
"implementation-decision": "implementation-decision";
|
|
168
|
-
}>;
|
|
169
|
-
decision: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
170
|
-
serial: "serial";
|
|
171
|
-
parallel: "parallel";
|
|
172
|
-
"candidate-exact-path": "candidate-exact-path";
|
|
173
|
-
"candidate-worktree": "candidate-worktree";
|
|
174
|
-
tournament: "tournament";
|
|
175
|
-
skipped: "skipped";
|
|
176
|
-
}>>;
|
|
177
|
-
decisionReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
178
|
-
candidateEligibility: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
179
|
-
eligible: "eligible";
|
|
180
|
-
not_eligible: "not_eligible";
|
|
181
|
-
unknown: "unknown";
|
|
182
|
-
}>>;
|
|
183
|
-
candidateDecision: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
184
|
-
skipped: "skipped";
|
|
185
|
-
used: "used";
|
|
186
|
-
serial_required: "serial_required";
|
|
187
|
-
}>>;
|
|
188
|
-
decisionFactors: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
189
|
-
shared_state: "shared_state";
|
|
190
|
-
overlapping_files: "overlapping_files";
|
|
191
|
-
small_slice: "small_slice";
|
|
192
|
-
needs_manager_judgment: "needs_manager_judgment";
|
|
193
|
-
independent_surface: "independent_surface";
|
|
194
|
-
validation_available: "validation_available";
|
|
195
|
-
}>>>;
|
|
196
|
-
modes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
197
|
-
audit: "audit";
|
|
198
|
-
review: "review";
|
|
199
|
-
validation: "validation";
|
|
200
|
-
evidence: "evidence";
|
|
201
|
-
verifier: "verifier";
|
|
202
|
-
"candidate-implementation": "candidate-implementation";
|
|
203
|
-
}>>>;
|
|
204
|
-
workerCount: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
205
|
-
candidateWorkerCount: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
206
|
-
verifierWorkerCount: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
207
|
-
sliceIds: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
208
|
-
dependsOn: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
209
|
-
writeScope: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
210
|
-
none: "none";
|
|
211
|
-
"manager-serial": "manager-serial";
|
|
212
|
-
"exact-path": "exact-path";
|
|
213
|
-
"isolated-worktree": "isolated-worktree";
|
|
214
|
-
mixed: "mixed";
|
|
215
|
-
}>>;
|
|
216
|
-
handoffRefs: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
217
|
-
verificationStatus: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
218
|
-
pending: "pending";
|
|
219
|
-
passed: "passed";
|
|
220
|
-
failed: "failed";
|
|
221
|
-
mixed: "mixed";
|
|
222
|
-
"not-needed": "not-needed";
|
|
223
|
-
downgraded: "downgraded";
|
|
224
|
-
}>>;
|
|
225
|
-
outcome: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
226
|
-
accepted: "accepted";
|
|
227
|
-
modified: "modified";
|
|
228
|
-
rejected: "rejected";
|
|
229
|
-
partial: "partial";
|
|
230
|
-
"not-covered": "not-covered";
|
|
231
|
-
superseded: "superseded";
|
|
232
|
-
}>>;
|
|
233
|
-
synthesisRef: import("zod").ZodOptional<import("zod").ZodString>;
|
|
234
|
-
}, import("zod/v4/core").$strict>>>;
|
|
235
|
-
};
|
|
236
|
-
execute(args: {
|
|
237
|
-
status: "ok" | "needs_input";
|
|
238
|
-
featureId: string;
|
|
239
|
-
summary: string;
|
|
240
|
-
artifactsChanged?: {
|
|
241
|
-
path: string;
|
|
242
|
-
}[] | undefined;
|
|
243
|
-
validationRun?: {
|
|
244
|
-
command: string;
|
|
245
|
-
status: "passed" | "failed";
|
|
246
|
-
summary: string;
|
|
247
|
-
}[] | undefined;
|
|
248
|
-
validationScope?: "targeted" | "broad" | undefined;
|
|
249
|
-
featureReviewDepth?: "quick" | "standard" | "detailed" | undefined;
|
|
250
|
-
featureReview?: {
|
|
251
|
-
status: "passed" | "failed";
|
|
252
|
-
summary: string;
|
|
253
|
-
blockingFindings: {
|
|
254
|
-
summary: string;
|
|
255
|
-
severity: "blocking" | "advisory";
|
|
256
|
-
}[];
|
|
257
|
-
} | undefined;
|
|
258
|
-
finalReview?: {
|
|
259
|
-
status: "passed" | "failed";
|
|
260
|
-
summary: string;
|
|
261
|
-
blockingFindings: {
|
|
262
|
-
summary: string;
|
|
263
|
-
severity: "blocking" | "advisory";
|
|
264
|
-
}[];
|
|
265
|
-
reviewDepth: "broad" | "detailed";
|
|
266
|
-
} | undefined;
|
|
267
|
-
outcome?: {
|
|
268
|
-
kind: "completed" | "blocked" | "needs_input" | "replan_required";
|
|
269
|
-
summary?: string | undefined;
|
|
270
|
-
resolutionHint?: string | undefined;
|
|
271
|
-
} | {
|
|
272
|
-
kind: "blocked" | "needs_input" | "replan_required";
|
|
273
|
-
summary: string;
|
|
274
|
-
resolutionHint?: string | undefined;
|
|
275
|
-
} | undefined;
|
|
276
|
-
orchestrationPasses?: {
|
|
277
|
-
id: string;
|
|
278
|
-
kind: "discovery" | "audit" | "review" | "validation" | "verification" | "candidate" | "implementation-decision";
|
|
279
|
-
candidateEligibility: "eligible" | "not_eligible" | "unknown";
|
|
280
|
-
decisionFactors: ("shared_state" | "overlapping_files" | "small_slice" | "needs_manager_judgment" | "independent_surface" | "validation_available")[];
|
|
281
|
-
modes: ("audit" | "review" | "validation" | "evidence" | "verifier" | "candidate-implementation")[];
|
|
282
|
-
workerCount: number;
|
|
283
|
-
candidateWorkerCount: number;
|
|
284
|
-
verifierWorkerCount: number;
|
|
285
|
-
sliceIds: string[];
|
|
286
|
-
dependsOn: string[];
|
|
287
|
-
writeScope: "none" | "manager-serial" | "exact-path" | "isolated-worktree" | "mixed";
|
|
288
|
-
handoffRefs: string[];
|
|
289
|
-
verificationStatus: "pending" | "passed" | "failed" | "mixed" | "not-needed" | "downgraded";
|
|
290
|
-
outcome: "accepted" | "modified" | "rejected" | "partial" | "not-covered" | "superseded";
|
|
291
|
-
decision?: "serial" | "parallel" | "candidate-exact-path" | "candidate-worktree" | "tournament" | "skipped" | undefined;
|
|
292
|
-
decisionReason?: string | undefined;
|
|
293
|
-
candidateDecision?: "skipped" | "used" | "serial_required" | undefined;
|
|
294
|
-
synthesisRef?: string | undefined;
|
|
295
|
-
}[] | undefined;
|
|
296
|
-
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
297
|
-
};
|
|
298
|
-
flow_feature_reset: {
|
|
299
|
-
description: string;
|
|
300
|
-
args: {
|
|
301
|
-
featureId: import("zod").ZodString;
|
|
302
|
-
};
|
|
303
|
-
execute(args: {
|
|
304
|
-
featureId: string;
|
|
305
|
-
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
306
|
-
};
|
|
307
|
-
flow_session_close: {
|
|
308
|
-
description: string;
|
|
309
|
-
args: {
|
|
310
|
-
kind: import("zod").ZodEnum<{
|
|
311
|
-
completed: "completed";
|
|
312
|
-
deferred: "deferred";
|
|
313
|
-
abandoned: "abandoned";
|
|
314
|
-
}>;
|
|
315
|
-
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
316
|
-
};
|
|
317
|
-
execute(args: {
|
|
318
|
-
kind: "completed" | "deferred" | "abandoned";
|
|
319
|
-
summary?: string | undefined;
|
|
320
|
-
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
321
|
-
};
|
|
322
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
type FlowLog = (level: "info" | "warn" | "error", message: string) => void;
|
|
2
|
-
export type FlowSkillSyncAction = "installed" | "updated" | "updated_with_backup" | "marker_updated" | "unchanged" | "skipped_foreign";
|
|
3
|
-
export type FlowSkillSyncResult = {
|
|
4
|
-
name: string;
|
|
5
|
-
action: FlowSkillSyncAction;
|
|
6
|
-
backupPaths?: string[];
|
|
7
|
-
};
|
|
8
|
-
export declare const CHANGED_SYNC_ACTIONS: readonly FlowSkillSyncAction[];
|
|
9
|
-
export declare function isChangedSyncAction(action: FlowSkillSyncAction): boolean;
|
|
10
|
-
export type FlowSkillSyncHealth = {
|
|
11
|
-
status: "ok" | "restart_required" | "action_required" | "error";
|
|
12
|
-
version: string;
|
|
13
|
-
root: string;
|
|
14
|
-
checkedAt: string;
|
|
15
|
-
expectedSkills: string[];
|
|
16
|
-
results: FlowSkillSyncResult[];
|
|
17
|
-
changedSkills: string[];
|
|
18
|
-
actionRequiredSkills: string[];
|
|
19
|
-
restartRequired: boolean;
|
|
20
|
-
summary: string;
|
|
21
|
-
error?: string;
|
|
22
|
-
};
|
|
23
|
-
export type FlowSkillSetupStatus = {
|
|
24
|
-
status: "restart_required" | "action_required" | "sync_failed";
|
|
25
|
-
summary: string;
|
|
26
|
-
version: string;
|
|
27
|
-
root: string;
|
|
28
|
-
changed?: string[];
|
|
29
|
-
actionRequired?: string[];
|
|
30
|
-
error?: string;
|
|
31
|
-
};
|
|
32
|
-
export type FlowSkillDoctorSkill = {
|
|
33
|
-
name: string;
|
|
34
|
-
path: string;
|
|
35
|
-
status: "ok" | "missing" | "foreign" | "incomplete" | "edited" | "outdated";
|
|
36
|
-
markerVersion: string | null;
|
|
37
|
-
missingFiles: string[];
|
|
38
|
-
editedFiles: string[];
|
|
39
|
-
outdatedFiles: string[];
|
|
40
|
-
backupFiles: string[];
|
|
41
|
-
};
|
|
42
|
-
export type FlowSkillDoctorReport = {
|
|
43
|
-
status: "ok" | "sync_required" | "action_required";
|
|
44
|
-
version: string;
|
|
45
|
-
root: string;
|
|
46
|
-
expectedSkills: string[];
|
|
47
|
-
skills: FlowSkillDoctorSkill[];
|
|
48
|
-
syncRequiredSkills: string[];
|
|
49
|
-
actionRequiredSkills: string[];
|
|
50
|
-
unmanagedFlowSkills: string[];
|
|
51
|
-
};
|
|
52
|
-
export declare function resolveFlowSkillsRoot(home?: string): string;
|
|
53
|
-
export declare function getLatestFlowSkillSyncHealth(): FlowSkillSyncHealth | null;
|
|
54
|
-
export declare function formatFlowDoctorCommand(version: string): string;
|
|
55
|
-
export declare function getFlowSkillSetupStatus(health?: FlowSkillSyncHealth | null): FlowSkillSetupStatus | null;
|
|
56
|
-
export declare function formatFlowSkillSetupWarning(health?: FlowSkillSyncHealth | null): string | null;
|
|
57
|
-
export declare function resolveFlowPluginVersion(): string;
|
|
58
|
-
export declare function syncFlowSkills(version: string, home?: string): Promise<FlowSkillSyncResult[]>;
|
|
59
|
-
export declare function runFlowSkillSync(version: string, log: FlowLog, home?: string): Promise<void>;
|
|
60
|
-
export declare function inspectFlowSkillInstall(version?: string, home?: string): Promise<FlowSkillDoctorReport>;
|
|
61
|
-
export declare function formatFlowSkillDoctor(report: FlowSkillDoctorReport): string;
|
|
62
|
-
export declare function uninstallFlowSkills(home?: string, options?: {
|
|
63
|
-
dryRun?: boolean;
|
|
64
|
-
}): Promise<{
|
|
65
|
-
removed: string[];
|
|
66
|
-
kept: string[];
|
|
67
|
-
removedBackups: string[];
|
|
68
|
-
}>;
|
|
69
|
-
export {};
|
package/dist/runtime/time.d.ts
DELETED
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import { type Feature, type PlanInput, type Session } from "./schema";
|
|
2
|
-
export type TransitionResult<T> = {
|
|
3
|
-
ok: true;
|
|
4
|
-
value: T;
|
|
5
|
-
} | {
|
|
6
|
-
ok: false;
|
|
7
|
-
message: string;
|
|
8
|
-
recovery?: string;
|
|
9
|
-
session?: Session;
|
|
10
|
-
};
|
|
11
|
-
export declare function createSession(goal: string): Session;
|
|
12
|
-
export declare function applyPlan(session: Session, planInput: PlanInput): TransitionResult<Session>;
|
|
13
|
-
export declare function approvePlan(session: Session): TransitionResult<Session>;
|
|
14
|
-
export declare function startRun(session: Session, featureId?: string, options?: {
|
|
15
|
-
phaseBoundaryAck?: boolean;
|
|
16
|
-
}): TransitionResult<{
|
|
17
|
-
session: Session;
|
|
18
|
-
feature: Feature;
|
|
19
|
-
}>;
|
|
20
|
-
export declare function completeFeature(session: Session, input: unknown): TransitionResult<Session>;
|
|
21
|
-
export declare function resetFeature(session: Session, featureId: string): TransitionResult<Session>;
|
|
22
|
-
export declare function closeSession(session: Session, kind: "completed" | "deferred" | "abandoned", summary?: string): TransitionResult<Session>;
|
|
23
|
-
export declare function summarizeSession(session: Session | null): {
|
|
24
|
-
status: string;
|
|
25
|
-
summary: string;
|
|
26
|
-
nextAction: string;
|
|
27
|
-
statusSummary?: never;
|
|
28
|
-
dataNote?: never;
|
|
29
|
-
session?: never;
|
|
30
|
-
} | {
|
|
31
|
-
status: "completed" | "blocked" | "planning" | "ready" | "running";
|
|
32
|
-
summary: string;
|
|
33
|
-
statusSummary: string;
|
|
34
|
-
nextAction: string;
|
|
35
|
-
dataNote: string;
|
|
36
|
-
session: {
|
|
37
|
-
id: string;
|
|
38
|
-
goal: string;
|
|
39
|
-
status: "completed" | "blocked" | "planning" | "ready" | "running";
|
|
40
|
-
approval: "pending" | "approved";
|
|
41
|
-
activeFeature: {
|
|
42
|
-
id: string;
|
|
43
|
-
title: string;
|
|
44
|
-
summary: string;
|
|
45
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
46
|
-
reviewDepth: "quick" | "standard" | "detailed";
|
|
47
|
-
targets: string[];
|
|
48
|
-
validation: string[];
|
|
49
|
-
dependsOn: string[];
|
|
50
|
-
} | null;
|
|
51
|
-
nextFeature: {
|
|
52
|
-
id: string;
|
|
53
|
-
title: string;
|
|
54
|
-
summary: string;
|
|
55
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
56
|
-
reviewDepth: "quick" | "standard" | "detailed";
|
|
57
|
-
targets: string[];
|
|
58
|
-
validation: string[];
|
|
59
|
-
dependsOn: string[];
|
|
60
|
-
} | null;
|
|
61
|
-
pendingFeatures: {
|
|
62
|
-
id: string;
|
|
63
|
-
title: string;
|
|
64
|
-
summary: string;
|
|
65
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
66
|
-
reviewDepth: "quick" | "standard" | "detailed";
|
|
67
|
-
targets: string[];
|
|
68
|
-
validation: string[];
|
|
69
|
-
dependsOn: string[];
|
|
70
|
-
}[];
|
|
71
|
-
progress: {
|
|
72
|
-
completed: number;
|
|
73
|
-
total: number;
|
|
74
|
-
remaining: number;
|
|
75
|
-
};
|
|
76
|
-
features: {
|
|
77
|
-
id: string;
|
|
78
|
-
title: string;
|
|
79
|
-
summary: string;
|
|
80
|
-
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
81
|
-
reviewDepth: "quick" | "standard" | "detailed";
|
|
82
|
-
targets: string[];
|
|
83
|
-
validation: string[];
|
|
84
|
-
dependsOn: string[];
|
|
85
|
-
}[];
|
|
86
|
-
budget: {
|
|
87
|
-
phaseStartedAt: string;
|
|
88
|
-
completedFeaturesSinceBoundary: number;
|
|
89
|
-
reviewCount: number;
|
|
90
|
-
failedReviewCount: number;
|
|
91
|
-
failedReviewAttemptsByFeature: Record<string, number>;
|
|
92
|
-
orchestration: {
|
|
93
|
-
passCount: number;
|
|
94
|
-
workerCount: number;
|
|
95
|
-
candidatePassCount: number;
|
|
96
|
-
verifierPassCount: number;
|
|
97
|
-
candidateEligibleCount: number;
|
|
98
|
-
candidateUsedDecisionCount: number;
|
|
99
|
-
candidateSerialRequiredDecisionCount: number;
|
|
100
|
-
skippedCandidateDecisionCount: number;
|
|
101
|
-
recordedPassIds: string[];
|
|
102
|
-
latestPasses: {
|
|
103
|
-
id: string;
|
|
104
|
-
kind: "discovery" | "audit" | "review" | "validation" | "verification" | "candidate" | "implementation-decision";
|
|
105
|
-
candidateEligibility: "eligible" | "not_eligible" | "unknown";
|
|
106
|
-
decisionFactors: ("shared_state" | "overlapping_files" | "small_slice" | "needs_manager_judgment" | "independent_surface" | "validation_available")[];
|
|
107
|
-
modes: ("audit" | "review" | "validation" | "evidence" | "verifier" | "candidate-implementation")[];
|
|
108
|
-
workerCount: number;
|
|
109
|
-
candidateWorkerCount: number;
|
|
110
|
-
verifierWorkerCount: number;
|
|
111
|
-
sliceIds: string[];
|
|
112
|
-
dependsOn: string[];
|
|
113
|
-
writeScope: "none" | "manager-serial" | "exact-path" | "isolated-worktree" | "mixed";
|
|
114
|
-
handoffRefs: string[];
|
|
115
|
-
verificationStatus: "pending" | "passed" | "failed" | "mixed" | "not-needed" | "downgraded";
|
|
116
|
-
outcome: "accepted" | "modified" | "rejected" | "partial" | "not-covered" | "superseded";
|
|
117
|
-
decision?: "serial" | "parallel" | "candidate-exact-path" | "candidate-worktree" | "tournament" | "skipped" | undefined;
|
|
118
|
-
decisionReason?: string | undefined;
|
|
119
|
-
candidateDecision?: "skipped" | "used" | "serial_required" | undefined;
|
|
120
|
-
synthesisRef?: string | undefined;
|
|
121
|
-
}[];
|
|
122
|
-
};
|
|
123
|
-
tokenTelemetry: {
|
|
124
|
-
note: string | undefined;
|
|
125
|
-
source: "host_unavailable" | "reported";
|
|
126
|
-
visibleTokens: number | null;
|
|
127
|
-
cacheReadTokens: number | null;
|
|
128
|
-
nonCacheTokens: number | null;
|
|
129
|
-
};
|
|
130
|
-
phaseBoundary: {
|
|
131
|
-
reason: "feature_limit" | "token_limit" | "review_failure_limit";
|
|
132
|
-
summary: string;
|
|
133
|
-
resumeInstructions: string;
|
|
134
|
-
recordedAt: string;
|
|
135
|
-
} | null;
|
|
136
|
-
};
|
|
137
|
-
resumePacket: {
|
|
138
|
-
sessionId: string;
|
|
139
|
-
goal: string;
|
|
140
|
-
status: "completed" | "blocked" | "planning" | "ready" | "running";
|
|
141
|
-
activeFeatureId: string | null;
|
|
142
|
-
progress: {
|
|
143
|
-
completed: number;
|
|
144
|
-
total: number;
|
|
145
|
-
};
|
|
146
|
-
phaseBoundary: {
|
|
147
|
-
reason: "feature_limit" | "token_limit" | "review_failure_limit";
|
|
148
|
-
summary: string;
|
|
149
|
-
resumeInstructions: string;
|
|
150
|
-
recordedAt: string;
|
|
151
|
-
};
|
|
152
|
-
nextAction: string;
|
|
153
|
-
} | null;
|
|
154
|
-
closure: {
|
|
155
|
-
kind: "completed" | "deferred" | "abandoned";
|
|
156
|
-
summary: string;
|
|
157
|
-
recordedAt: string;
|
|
158
|
-
} | null;
|
|
159
|
-
lastError: {
|
|
160
|
-
tool: string;
|
|
161
|
-
summary: string;
|
|
162
|
-
recordedAt: string;
|
|
163
|
-
recovery?: string | undefined;
|
|
164
|
-
} | null;
|
|
165
|
-
latestHistoryEntry: {
|
|
166
|
-
featureId: string;
|
|
167
|
-
status: "completed" | "blocked" | "needs_input";
|
|
168
|
-
summary: string;
|
|
169
|
-
recordedAt: string;
|
|
170
|
-
artifactsChanged: {
|
|
171
|
-
path: string;
|
|
172
|
-
}[];
|
|
173
|
-
validationRun: {
|
|
174
|
-
command: string;
|
|
175
|
-
status: "passed" | "failed";
|
|
176
|
-
summary: string;
|
|
177
|
-
}[];
|
|
178
|
-
orchestrationPasses: {
|
|
179
|
-
id: string;
|
|
180
|
-
kind: "discovery" | "audit" | "review" | "validation" | "verification" | "candidate" | "implementation-decision";
|
|
181
|
-
candidateEligibility: "eligible" | "not_eligible" | "unknown";
|
|
182
|
-
decisionFactors: ("shared_state" | "overlapping_files" | "small_slice" | "needs_manager_judgment" | "independent_surface" | "validation_available")[];
|
|
183
|
-
modes: ("audit" | "review" | "validation" | "evidence" | "verifier" | "candidate-implementation")[];
|
|
184
|
-
workerCount: number;
|
|
185
|
-
candidateWorkerCount: number;
|
|
186
|
-
verifierWorkerCount: number;
|
|
187
|
-
sliceIds: string[];
|
|
188
|
-
dependsOn: string[];
|
|
189
|
-
writeScope: "none" | "manager-serial" | "exact-path" | "isolated-worktree" | "mixed";
|
|
190
|
-
handoffRefs: string[];
|
|
191
|
-
verificationStatus: "pending" | "passed" | "failed" | "mixed" | "not-needed" | "downgraded";
|
|
192
|
-
outcome: "accepted" | "modified" | "rejected" | "partial" | "not-covered" | "superseded";
|
|
193
|
-
decision?: "serial" | "parallel" | "candidate-exact-path" | "candidate-worktree" | "tournament" | "skipped" | undefined;
|
|
194
|
-
decisionReason?: string | undefined;
|
|
195
|
-
candidateDecision?: "skipped" | "used" | "serial_required" | undefined;
|
|
196
|
-
synthesisRef?: string | undefined;
|
|
197
|
-
}[];
|
|
198
|
-
validationScope?: "targeted" | "broad" | undefined;
|
|
199
|
-
featureReviewDepth?: "quick" | "standard" | "detailed" | undefined;
|
|
200
|
-
featureReview?: {
|
|
201
|
-
status: "passed" | "failed";
|
|
202
|
-
summary: string;
|
|
203
|
-
blockingFindings: {
|
|
204
|
-
summary: string;
|
|
205
|
-
severity: "blocking" | "advisory";
|
|
206
|
-
}[];
|
|
207
|
-
} | undefined;
|
|
208
|
-
finalReview?: {
|
|
209
|
-
status: "passed" | "failed";
|
|
210
|
-
summary: string;
|
|
211
|
-
blockingFindings: {
|
|
212
|
-
summary: string;
|
|
213
|
-
severity: "blocking" | "advisory";
|
|
214
|
-
}[];
|
|
215
|
-
reviewDepth: "broad" | "detailed";
|
|
216
|
-
} | undefined;
|
|
217
|
-
outcome?: {
|
|
218
|
-
kind: "completed" | "blocked" | "needs_input" | "replan_required";
|
|
219
|
-
summary?: string | undefined;
|
|
220
|
-
resolutionHint?: string | undefined;
|
|
221
|
-
} | undefined;
|
|
222
|
-
} | null;
|
|
223
|
-
historyCount: number;
|
|
224
|
-
timestamps: {
|
|
225
|
-
createdAt: string;
|
|
226
|
-
updatedAt: string;
|
|
227
|
-
completedAt: string | null;
|
|
228
|
-
};
|
|
229
|
-
};
|
|
230
|
-
};
|
|
File without changes
|
|
File without changes
|