opencode-plugin-flow 5.2.0 → 5.2.2

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +6 -5
  3. package/dist/cli.js +10 -1
  4. package/dist/cli.js.map +3 -3
  5. package/dist/index.js +1198 -514
  6. package/dist/index.js.map +15 -15
  7. package/package.json +12 -5
  8. package/dist/application/errors.d.ts +0 -10
  9. package/dist/application/flow-service.d.ts +0 -311
  10. package/dist/application/ports/evidence-artifact-store.d.ts +0 -28
  11. package/dist/application/ports/session-repository.d.ts +0 -19
  12. package/dist/application/ports/source-identity.d.ts +0 -61
  13. package/dist/application/replay/canonical-json.d.ts +0 -7
  14. package/dist/application/replay/contract.d.ts +0 -2130
  15. package/dist/application/replay/engine.d.ts +0 -101
  16. package/dist/application/replay/index.d.ts +0 -7
  17. package/dist/application/replay/privacy.d.ts +0 -14
  18. package/dist/application/schema.d.ts +0 -1813
  19. package/dist/cli.d.ts +0 -1
  20. package/dist/config-shared.d.ts +0 -287
  21. package/dist/config.d.ts +0 -1
  22. package/dist/distribution/legacy-cleanup.d.ts +0 -25
  23. package/dist/domain/feature-id.d.ts +0 -3
  24. package/dist/domain/limits.d.ts +0 -4
  25. package/dist/domain/orchestration-policy.d.ts +0 -27
  26. package/dist/domain/session-invariants.d.ts +0 -8
  27. package/dist/domain/session.d.ts +0 -356
  28. package/dist/domain/transitions.d.ts +0 -275
  29. package/dist/domain/validation-command.d.ts +0 -8
  30. package/dist/guidance/catalog.d.ts +0 -18
  31. package/dist/guidance/ids.d.ts +0 -4
  32. package/dist/infrastructure/fs/evidence-artifact-store.d.ts +0 -5
  33. package/dist/infrastructure/fs/session-repository.d.ts +0 -2
  34. package/dist/infrastructure/fs/source-identity.d.ts +0 -26
  35. package/dist/infrastructure/fs/strict-json-object.d.ts +0 -9
  36. package/dist/infrastructure/fs/workspace-flow-service.d.ts +0 -10
  37. package/dist/infrastructure/fs/workspace.d.ts +0 -62
  38. package/dist/infrastructure/system/transition-environment.d.ts +0 -2
  39. package/dist/platform/opencode/config.d.ts +0 -2
  40. package/dist/platform/opencode/logging.d.ts +0 -3
  41. package/dist/platform/opencode/tools.d.ts +0 -4
  42. package/dist/prompt-baseline-fixtures.d.ts +0 -20
  43. package/dist/prompt-model-evaluation.d.ts +0 -88
  44. package/dist/prompt-quality.d.ts +0 -80
  45. package/dist/prompt-surfaces.d.ts +0 -28
  46. package/dist/version.d.ts +0 -1
package/dist/cli.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,287 +0,0 @@
1
- export type FlowPermissionConfig = {
2
- edit?: string;
3
- bash?: string;
4
- skill?: string | Record<string, string>;
5
- task?: Record<string, string>;
6
- [toolPattern: string]: string | Record<string, string> | undefined;
7
- };
8
- export type FlowAgentConfig = {
9
- mode: "subagent";
10
- description: string;
11
- prompt: string;
12
- hidden?: boolean;
13
- model?: string;
14
- permission?: FlowPermissionConfig;
15
- };
16
- type FlowCommandConfigBase = {
17
- description: string;
18
- template: string;
19
- };
20
- export type FlowManagerCommandConfig = FlowCommandConfigBase & {
21
- agent?: never;
22
- subtask: false;
23
- };
24
- export type FlowSubtaskCommandConfig = FlowCommandConfigBase & {
25
- agent: string;
26
- subtask: true;
27
- };
28
- export type FlowCommandConfig = FlowManagerCommandConfig | FlowSubtaskCommandConfig;
29
- export type MutableFlowConfig = {
30
- agent?: Record<string, unknown>;
31
- command?: Record<string, unknown>;
32
- };
33
- export declare const FLOW_CORE_AGENTS: {
34
- "flow-reviewer": {
35
- mode: "subagent";
36
- hidden: true;
37
- description: string;
38
- prompt: string;
39
- permission: {
40
- edit: string;
41
- bash: string;
42
- skill: string;
43
- task: {
44
- "*": string;
45
- };
46
- "flow_*": string;
47
- flow_status: string;
48
- };
49
- };
50
- "flow-evidence-worker": {
51
- mode: "subagent";
52
- hidden: true;
53
- description: string;
54
- prompt: string;
55
- permission: {
56
- edit: string;
57
- bash: string;
58
- skill: string;
59
- task: {
60
- "*": string;
61
- };
62
- "flow_*": string;
63
- flow_status: string;
64
- };
65
- };
66
- "flow-validation-worker": {
67
- mode: "subagent";
68
- hidden: true;
69
- description: string;
70
- prompt: string;
71
- permission: {
72
- edit: string;
73
- bash: string;
74
- skill: string;
75
- task: {
76
- "*": string;
77
- };
78
- "flow_*": string;
79
- flow_status: string;
80
- };
81
- };
82
- "flow-audit-worker": {
83
- mode: "subagent";
84
- hidden: true;
85
- description: string;
86
- prompt: string;
87
- permission: {
88
- edit: string;
89
- bash: string;
90
- skill: string;
91
- task: {
92
- "*": string;
93
- };
94
- "flow_*": string;
95
- flow_status: string;
96
- };
97
- };
98
- "flow-candidate-worker": {
99
- mode: "subagent";
100
- hidden: true;
101
- description: string;
102
- prompt: string;
103
- permission: {
104
- edit: string;
105
- bash: string;
106
- skill: string;
107
- task: {
108
- "*": string;
109
- };
110
- "flow_*": string;
111
- flow_status: string;
112
- };
113
- };
114
- "flow-verifier-worker": {
115
- mode: "subagent";
116
- hidden: true;
117
- description: string;
118
- prompt: string;
119
- permission: {
120
- edit: string;
121
- bash: string;
122
- skill: string;
123
- task: {
124
- "*": string;
125
- };
126
- "flow_*": string;
127
- flow_status: string;
128
- };
129
- };
130
- };
131
- export declare const FLOW_CORE_COMMANDS: {
132
- "flow-auto": {
133
- description: string;
134
- subtask: false;
135
- template: string;
136
- };
137
- "flow-plan": {
138
- description: string;
139
- subtask: false;
140
- template: string;
141
- };
142
- "flow-run": {
143
- description: string;
144
- subtask: false;
145
- template: string;
146
- };
147
- "flow-review": {
148
- description: string;
149
- agent: string;
150
- subtask: true;
151
- template: string;
152
- };
153
- "flow-status": {
154
- description: string;
155
- subtask: false;
156
- template: string;
157
- };
158
- };
159
- export declare function createFlowCoreConfigEntries(): {
160
- agent: {
161
- [k: string]: {
162
- mode: "subagent";
163
- hidden: true;
164
- description: string;
165
- prompt: string;
166
- permission: {
167
- edit: string;
168
- bash: string;
169
- skill: string;
170
- task: {
171
- "*": string;
172
- };
173
- "flow_*": string;
174
- flow_status: string;
175
- };
176
- model?: string;
177
- } | {
178
- mode: "subagent";
179
- hidden: true;
180
- description: string;
181
- prompt: string;
182
- permission: {
183
- edit: string;
184
- bash: string;
185
- skill: string;
186
- task: {
187
- "*": string;
188
- };
189
- "flow_*": string;
190
- flow_status: string;
191
- };
192
- model?: string;
193
- } | {
194
- mode: "subagent";
195
- hidden: true;
196
- description: string;
197
- prompt: string;
198
- permission: {
199
- edit: string;
200
- bash: string;
201
- skill: string;
202
- task: {
203
- "*": string;
204
- };
205
- "flow_*": string;
206
- flow_status: string;
207
- };
208
- model?: string;
209
- } | {
210
- mode: "subagent";
211
- hidden: true;
212
- description: string;
213
- prompt: string;
214
- permission: {
215
- edit: string;
216
- bash: string;
217
- skill: string;
218
- task: {
219
- "*": string;
220
- };
221
- "flow_*": string;
222
- flow_status: string;
223
- };
224
- model?: string;
225
- } | {
226
- mode: "subagent";
227
- hidden: true;
228
- description: string;
229
- prompt: string;
230
- permission: {
231
- edit: string;
232
- bash: string;
233
- skill: string;
234
- task: {
235
- "*": string;
236
- };
237
- "flow_*": string;
238
- flow_status: string;
239
- };
240
- model?: string;
241
- } | {
242
- mode: "subagent";
243
- hidden: true;
244
- description: string;
245
- prompt: string;
246
- permission: {
247
- edit: string;
248
- bash: string;
249
- skill: string;
250
- task: {
251
- "*": string;
252
- };
253
- "flow_*": string;
254
- flow_status: string;
255
- };
256
- model?: string;
257
- };
258
- };
259
- command: {
260
- [k: string]: {
261
- description: string;
262
- subtask: false;
263
- template: string;
264
- } | {
265
- description: string;
266
- subtask: false;
267
- template: string;
268
- } | {
269
- description: string;
270
- subtask: false;
271
- template: string;
272
- } | {
273
- description: string;
274
- agent: string;
275
- subtask: true;
276
- template: string;
277
- } | {
278
- description: string;
279
- subtask: false;
280
- template: string;
281
- };
282
- };
283
- };
284
- export declare function applyFlowConfig(config: MutableFlowConfig, options?: {
285
- onCollision?: (kind: "agent" | "command", name: string) => void;
286
- }): void;
287
- export {};
package/dist/config.d.ts DELETED
@@ -1 +0,0 @@
1
- export { applyFlowConfig, createFlowCoreConfigEntries, } from "./config-shared.js";
@@ -1,25 +0,0 @@
1
- export type LegacySkillCleanupResult = {
2
- name: string;
3
- path: string;
4
- status: "absent" | "eligible" | "archived" | "refused" | "quarantined";
5
- reason?: string;
6
- archivePath?: string;
7
- };
8
- export type LegacyCleanupReport = {
9
- mode: "dry-run" | "apply";
10
- root: string;
11
- archiveRoot: string;
12
- results: LegacySkillCleanupResult[];
13
- };
14
- export declare function resolveLegacySkillsRoot(home?: string): string;
15
- export declare function resolveLegacyArchiveRoot(home?: string): string;
16
- export declare function cleanupLegacySkills(options?: {
17
- home?: string;
18
- apply?: boolean;
19
- /** @internal Deterministic race-testing seam; package consumers should omit it. */
20
- afterQuarantine?: (context: {
21
- name: string;
22
- path: string;
23
- archivePath: string;
24
- }) => Promise<void>;
25
- }): Promise<LegacyCleanupReport>;
@@ -1,3 +0,0 @@
1
- export declare const FEATURE_ID_PATTERN: RegExp;
2
- export declare const FEATURE_ID_MESSAGE = "Feature ids must be lowercase kebab-case";
3
- export declare function isFeatureId(value: string): boolean;
@@ -1,4 +0,0 @@
1
- export declare const MAX_ORCHESTRATION_PASSES = 50;
2
- export declare const MAX_HISTORY_ENTRIES = 500;
3
- export declare const MAX_SESSION_ID_LENGTH = 128;
4
- export declare const MAX_REVIEW_ASSIGNMENT_RESULT_BYTES: number;
@@ -1,27 +0,0 @@
1
- export type OrchestrationPassEvidence = {
2
- kind: string;
3
- decision?: string | undefined;
4
- candidateEligibility: string;
5
- candidateDecision?: string | undefined;
6
- decisionFactors: readonly string[];
7
- modes: readonly string[];
8
- workerCount: number;
9
- candidateWorkerCount: number;
10
- verifierWorkerCount: number;
11
- };
12
- export type OrchestrationPolicyIssue = {
13
- path: string;
14
- message: string;
15
- };
16
- export declare function isCandidateShapedDecision(decision: string | undefined): boolean;
17
- export declare function hasCandidateExecutionEvidence(pass: {
18
- kind: string;
19
- modes: readonly string[];
20
- candidateWorkerCount: number;
21
- }): boolean;
22
- export declare function hasVerifierExecutionEvidence(pass: {
23
- kind: string;
24
- modes: readonly string[];
25
- verifierWorkerCount: number;
26
- }): boolean;
27
- export declare function validateOrchestrationPassPolicy(value: OrchestrationPassEvidence): OrchestrationPolicyIssue[];
@@ -1,8 +0,0 @@
1
- import type { Session } from "./session.js";
2
- /**
3
- * Validate relationships that cannot be expressed by the local Session v4
4
- * object schemas. The first returned error is stable, curated recovery
5
- * evidence; callers must treat any error as corruption and never partially
6
- * hydrate the graph.
7
- */
8
- export declare function validateSessionInvariants(session: Session): string | null;