@claude-flow/plugin-gastown-bridge 0.1.2 → 0.1.4
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/dist/bd-bridge-C9wTbkhi.d.cts +318 -0
- package/dist/bd-bridge-C9wTbkhi.d.ts +318 -0
- package/dist/bridges.cjs +1 -1
- package/dist/bridges.d.cts +5 -604
- package/dist/bridges.d.ts +5 -604
- package/dist/bridges.js +1 -1
- package/dist/chunk-2KNTWGUX.js +12 -0
- package/dist/chunk-2KNTWGUX.js.map +1 -0
- package/dist/chunk-46PJFOMY.cjs +11 -0
- package/dist/chunk-46PJFOMY.cjs.map +1 -0
- package/dist/chunk-7UPWLRZX.js +11 -0
- package/dist/chunk-7UPWLRZX.js.map +1 -0
- package/dist/chunk-7VD5N6NG.cjs +11 -0
- package/dist/chunk-7VD5N6NG.cjs.map +1 -0
- package/dist/chunk-EBOVUTYL.js +12 -0
- package/dist/chunk-EBOVUTYL.js.map +1 -0
- package/dist/chunk-I2TLUPMJ.cjs +12 -0
- package/dist/chunk-I2TLUPMJ.cjs.map +1 -0
- package/dist/chunk-Q7MLH722.cjs +11 -0
- package/dist/chunk-Q7MLH722.cjs.map +1 -0
- package/dist/chunk-QFMFM7NE.cjs +13 -0
- package/dist/chunk-QFMFM7NE.cjs.map +1 -0
- package/dist/chunk-SUKPSMVK.cjs +12 -0
- package/dist/chunk-SUKPSMVK.cjs.map +1 -0
- package/dist/chunk-TGFYZY3C.js +11 -0
- package/dist/chunk-TGFYZY3C.js.map +1 -0
- package/dist/chunk-U74VYTRV.js +11 -0
- package/dist/chunk-U74VYTRV.js.map +1 -0
- package/dist/chunk-UJ56JMNG.js +13 -0
- package/dist/chunk-UJ56JMNG.js.map +1 -0
- package/dist/convoy.cjs +2 -0
- package/dist/convoy.cjs.map +1 -0
- package/dist/convoy.d.cts +6 -0
- package/dist/convoy.d.ts +6 -0
- package/dist/convoy.js +2 -0
- package/dist/convoy.js.map +1 -0
- package/dist/formula.cjs +2 -0
- package/dist/formula.cjs.map +1 -0
- package/dist/formula.d.cts +317 -0
- package/dist/formula.d.ts +317 -0
- package/dist/formula.js +2 -0
- package/dist/formula.js.map +1 -0
- package/dist/gt-bridge-B7hZz5vC.d.cts +291 -0
- package/dist/gt-bridge-B7hZz5vC.d.ts +291 -0
- package/dist/index-BzkAx4ho.d.ts +785 -0
- package/dist/index-CGJs8eMa.d.cts +785 -0
- package/dist/index.cjs +8 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -2237
- package/dist/index.d.ts +13 -2237
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/dist/types-CMoOZXrm.d.cts +1146 -0
- package/dist/types-CMoOZXrm.d.ts +1146 -0
- package/dist/wasm-loader.js +1 -1
- package/package.json +16 -20
- package/dist/chunk-2QQ3FUZF.cjs +0 -14
- package/dist/chunk-2QQ3FUZF.cjs.map +0 -1
- package/dist/chunk-GKNIKJVQ.js +0 -14
- package/dist/chunk-GKNIKJVQ.js.map +0 -1
|
@@ -0,0 +1,1146 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Gas Town Bridge Plugin - Type Definitions
|
|
5
|
+
*
|
|
6
|
+
* Core types for Gas Town integration including:
|
|
7
|
+
* - Beads: Git-backed issue tracking with graph semantics
|
|
8
|
+
* - Formulas: TOML-defined workflows (convoy, workflow, expansion, aspect)
|
|
9
|
+
* - Convoys: Work-order tracking for slung work
|
|
10
|
+
* - Steps/Legs: Workflow components
|
|
11
|
+
* - Variables: Template substitution
|
|
12
|
+
*
|
|
13
|
+
* @module gastown-bridge/types
|
|
14
|
+
* @version 0.1.0
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Bead status enumeration
|
|
19
|
+
*/
|
|
20
|
+
type BeadStatus = 'open' | 'in_progress' | 'closed';
|
|
21
|
+
/**
|
|
22
|
+
* Bead - Git-backed issue with graph semantics
|
|
23
|
+
*/
|
|
24
|
+
interface Bead {
|
|
25
|
+
/** Unique identifier (e.g., "gt-abc12") */
|
|
26
|
+
readonly id: string;
|
|
27
|
+
/** Issue title */
|
|
28
|
+
readonly title: string;
|
|
29
|
+
/** Issue description */
|
|
30
|
+
readonly description: string;
|
|
31
|
+
/** Current status */
|
|
32
|
+
readonly status: BeadStatus;
|
|
33
|
+
/** Priority (0 = highest) */
|
|
34
|
+
readonly priority: number;
|
|
35
|
+
/** Issue labels */
|
|
36
|
+
readonly labels: string[];
|
|
37
|
+
/** Parent bead ID (for epics) */
|
|
38
|
+
readonly parentId?: string;
|
|
39
|
+
/** Creation timestamp */
|
|
40
|
+
readonly createdAt: Date;
|
|
41
|
+
/** Last update timestamp */
|
|
42
|
+
readonly updatedAt: Date;
|
|
43
|
+
/** Assigned agent/user */
|
|
44
|
+
readonly assignee?: string;
|
|
45
|
+
/** Gas Town rig name */
|
|
46
|
+
readonly rig?: string;
|
|
47
|
+
/** Blocking beads (dependencies) */
|
|
48
|
+
readonly blockedBy?: string[];
|
|
49
|
+
/** Beads this blocks */
|
|
50
|
+
readonly blocks?: string[];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Options for creating a new bead
|
|
54
|
+
*/
|
|
55
|
+
interface CreateBeadOptions {
|
|
56
|
+
readonly title: string;
|
|
57
|
+
readonly description?: string;
|
|
58
|
+
readonly priority?: number;
|
|
59
|
+
readonly labels?: string[];
|
|
60
|
+
readonly parent?: string;
|
|
61
|
+
readonly rig?: string;
|
|
62
|
+
readonly assignee?: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Bead dependency relationship
|
|
66
|
+
*/
|
|
67
|
+
interface BeadDependency {
|
|
68
|
+
readonly child: string;
|
|
69
|
+
readonly parent: string;
|
|
70
|
+
readonly type: 'blocks' | 'relates' | 'duplicates';
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Formula type enumeration
|
|
74
|
+
*/
|
|
75
|
+
type FormulaType = 'convoy' | 'workflow' | 'expansion' | 'aspect';
|
|
76
|
+
/**
|
|
77
|
+
* Workflow step definition
|
|
78
|
+
*/
|
|
79
|
+
interface Step {
|
|
80
|
+
/** Step identifier */
|
|
81
|
+
readonly id: string;
|
|
82
|
+
/** Step title */
|
|
83
|
+
readonly title: string;
|
|
84
|
+
/** Step description */
|
|
85
|
+
readonly description: string;
|
|
86
|
+
/** Dependencies - step IDs that must complete first */
|
|
87
|
+
readonly needs?: string[];
|
|
88
|
+
/** Estimated duration in minutes */
|
|
89
|
+
readonly duration?: number;
|
|
90
|
+
/** Required capabilities */
|
|
91
|
+
readonly requires?: string[];
|
|
92
|
+
/** Step metadata */
|
|
93
|
+
readonly metadata?: Record<string, unknown>;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Convoy leg definition
|
|
97
|
+
*/
|
|
98
|
+
interface Leg {
|
|
99
|
+
/** Leg identifier */
|
|
100
|
+
readonly id: string;
|
|
101
|
+
/** Leg title */
|
|
102
|
+
readonly title: string;
|
|
103
|
+
/** Focus area */
|
|
104
|
+
readonly focus: string;
|
|
105
|
+
/** Leg description */
|
|
106
|
+
readonly description: string;
|
|
107
|
+
/** Assigned agent type */
|
|
108
|
+
readonly agent?: string;
|
|
109
|
+
/** Leg sequence order */
|
|
110
|
+
readonly order?: number;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Formula variable definition
|
|
114
|
+
*/
|
|
115
|
+
interface Var {
|
|
116
|
+
/** Variable name */
|
|
117
|
+
readonly name: string;
|
|
118
|
+
/** Variable description */
|
|
119
|
+
readonly description?: string;
|
|
120
|
+
/** Default value */
|
|
121
|
+
readonly default?: string;
|
|
122
|
+
/** Whether the variable is required */
|
|
123
|
+
readonly required?: boolean;
|
|
124
|
+
/** Validation pattern (regex) */
|
|
125
|
+
readonly pattern?: string;
|
|
126
|
+
/** Allowed values */
|
|
127
|
+
readonly enum?: string[];
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Synthesis definition (convoy result combination)
|
|
131
|
+
*/
|
|
132
|
+
interface Synthesis {
|
|
133
|
+
/** Synthesis strategy */
|
|
134
|
+
readonly strategy: 'merge' | 'sequential' | 'parallel';
|
|
135
|
+
/** Output format */
|
|
136
|
+
readonly format?: string;
|
|
137
|
+
/** Synthesis description */
|
|
138
|
+
readonly description?: string;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Template for expansion formulas
|
|
142
|
+
*/
|
|
143
|
+
interface Template {
|
|
144
|
+
/** Template name */
|
|
145
|
+
readonly name: string;
|
|
146
|
+
/** Template content with variable placeholders */
|
|
147
|
+
readonly content: string;
|
|
148
|
+
/** Output path pattern */
|
|
149
|
+
readonly outputPath?: string;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Aspect definition for cross-cutting concerns
|
|
153
|
+
*/
|
|
154
|
+
interface Aspect {
|
|
155
|
+
/** Aspect name */
|
|
156
|
+
readonly name: string;
|
|
157
|
+
/** Pointcut expression */
|
|
158
|
+
readonly pointcut: string;
|
|
159
|
+
/** Advice to apply */
|
|
160
|
+
readonly advice: string;
|
|
161
|
+
/** Aspect type */
|
|
162
|
+
readonly type: 'before' | 'after' | 'around';
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Formula - TOML-defined workflow specification
|
|
166
|
+
*/
|
|
167
|
+
interface Formula {
|
|
168
|
+
/** Formula name */
|
|
169
|
+
readonly name: string;
|
|
170
|
+
/** Formula description */
|
|
171
|
+
readonly description: string;
|
|
172
|
+
/** Formula type */
|
|
173
|
+
readonly type: FormulaType;
|
|
174
|
+
/** Formula version */
|
|
175
|
+
readonly version: number;
|
|
176
|
+
/** Convoy legs */
|
|
177
|
+
readonly legs?: Leg[];
|
|
178
|
+
/** Synthesis configuration */
|
|
179
|
+
readonly synthesis?: Synthesis;
|
|
180
|
+
/** Workflow steps */
|
|
181
|
+
readonly steps?: Step[];
|
|
182
|
+
/** Variable definitions */
|
|
183
|
+
readonly vars?: Record<string, Var>;
|
|
184
|
+
/** Expansion templates */
|
|
185
|
+
readonly templates?: Template[];
|
|
186
|
+
/** Cross-cutting aspects */
|
|
187
|
+
readonly aspects?: Aspect[];
|
|
188
|
+
/** Formula metadata */
|
|
189
|
+
readonly metadata?: Record<string, unknown>;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Cooked formula with variables substituted
|
|
193
|
+
*/
|
|
194
|
+
interface CookedFormula extends Formula {
|
|
195
|
+
/** When the formula was cooked */
|
|
196
|
+
readonly cookedAt: Date;
|
|
197
|
+
/** Variables used for cooking */
|
|
198
|
+
readonly cookedVars: Record<string, string>;
|
|
199
|
+
/** Original (uncooked) formula name */
|
|
200
|
+
readonly originalName: string;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Convoy status enumeration
|
|
204
|
+
*/
|
|
205
|
+
type ConvoyStatus = 'active' | 'landed' | 'failed' | 'paused';
|
|
206
|
+
/**
|
|
207
|
+
* Convoy progress tracking
|
|
208
|
+
*/
|
|
209
|
+
interface ConvoyProgress {
|
|
210
|
+
/** Total issues tracked */
|
|
211
|
+
readonly total: number;
|
|
212
|
+
/** Closed issues */
|
|
213
|
+
readonly closed: number;
|
|
214
|
+
/** In-progress issues */
|
|
215
|
+
readonly inProgress: number;
|
|
216
|
+
/** Blocked issues */
|
|
217
|
+
readonly blocked: number;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Convoy - Work order tracking for slung work
|
|
221
|
+
*/
|
|
222
|
+
interface Convoy {
|
|
223
|
+
/** Convoy identifier */
|
|
224
|
+
readonly id: string;
|
|
225
|
+
/** Convoy name */
|
|
226
|
+
readonly name: string;
|
|
227
|
+
/** Tracked issue IDs */
|
|
228
|
+
readonly trackedIssues: string[];
|
|
229
|
+
/** Convoy status */
|
|
230
|
+
readonly status: ConvoyStatus;
|
|
231
|
+
/** Start timestamp */
|
|
232
|
+
readonly startedAt: Date;
|
|
233
|
+
/** Completion timestamp */
|
|
234
|
+
readonly completedAt?: Date;
|
|
235
|
+
/** Progress tracking */
|
|
236
|
+
readonly progress: ConvoyProgress;
|
|
237
|
+
/** Formula used to create convoy */
|
|
238
|
+
readonly formula?: string;
|
|
239
|
+
/** Description */
|
|
240
|
+
readonly description?: string;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Options for creating a convoy
|
|
244
|
+
*/
|
|
245
|
+
interface CreateConvoyOptions {
|
|
246
|
+
readonly name: string;
|
|
247
|
+
readonly issues: string[];
|
|
248
|
+
readonly description?: string;
|
|
249
|
+
readonly formula?: string;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Gas Town agent role
|
|
253
|
+
*/
|
|
254
|
+
type GasTownAgentRole = 'mayor' | 'polecat' | 'refinery' | 'witness' | 'deacon' | 'dog' | 'crew';
|
|
255
|
+
/**
|
|
256
|
+
* Gas Town agent
|
|
257
|
+
*/
|
|
258
|
+
interface GasTownAgent {
|
|
259
|
+
/** Agent name */
|
|
260
|
+
readonly name: string;
|
|
261
|
+
/** Agent role */
|
|
262
|
+
readonly role: GasTownAgentRole;
|
|
263
|
+
/** Rig assignment */
|
|
264
|
+
readonly rig?: string;
|
|
265
|
+
/** Current status */
|
|
266
|
+
readonly status: 'active' | 'idle' | 'busy';
|
|
267
|
+
/** Agent capabilities */
|
|
268
|
+
readonly capabilities?: string[];
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Sling target type
|
|
272
|
+
*/
|
|
273
|
+
type SlingTarget = 'polecat' | 'crew' | 'mayor';
|
|
274
|
+
/**
|
|
275
|
+
* Sling operation options
|
|
276
|
+
*/
|
|
277
|
+
interface SlingOptions {
|
|
278
|
+
readonly beadId: string;
|
|
279
|
+
readonly target: SlingTarget;
|
|
280
|
+
readonly formula?: string;
|
|
281
|
+
readonly priority?: number;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Gas Town mail message
|
|
285
|
+
*/
|
|
286
|
+
interface GasTownMail {
|
|
287
|
+
readonly id: string;
|
|
288
|
+
readonly from: string;
|
|
289
|
+
readonly to: string;
|
|
290
|
+
readonly subject: string;
|
|
291
|
+
readonly body: string;
|
|
292
|
+
readonly sentAt: Date;
|
|
293
|
+
readonly read: boolean;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Sync direction
|
|
297
|
+
*/
|
|
298
|
+
type SyncDirection = 'pull' | 'push' | 'both';
|
|
299
|
+
/**
|
|
300
|
+
* Sync result
|
|
301
|
+
*/
|
|
302
|
+
interface SyncResult {
|
|
303
|
+
readonly direction: SyncDirection;
|
|
304
|
+
readonly pulled: number;
|
|
305
|
+
readonly pushed: number;
|
|
306
|
+
readonly errors: string[];
|
|
307
|
+
readonly timestamp: Date;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Dependency graph for beads
|
|
311
|
+
*/
|
|
312
|
+
interface BeadGraph {
|
|
313
|
+
readonly nodes: string[];
|
|
314
|
+
readonly edges: Array<[string, string]>;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Topological sort result
|
|
318
|
+
*/
|
|
319
|
+
interface TopoSortResult {
|
|
320
|
+
readonly sorted: string[];
|
|
321
|
+
readonly hasCycle: boolean;
|
|
322
|
+
readonly cycleNodes?: string[];
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Critical path result
|
|
326
|
+
*/
|
|
327
|
+
interface CriticalPathResult {
|
|
328
|
+
readonly path: string[];
|
|
329
|
+
readonly totalDuration: number;
|
|
330
|
+
readonly slack: Map<string, number>;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Gas Town Bridge plugin configuration
|
|
334
|
+
*/
|
|
335
|
+
interface GasTownConfig {
|
|
336
|
+
/** Path to Gas Town installation */
|
|
337
|
+
readonly townRoot: string;
|
|
338
|
+
/** Enable Beads sync with AgentDB */
|
|
339
|
+
readonly enableBeadsSync: boolean;
|
|
340
|
+
/** Sync interval in milliseconds */
|
|
341
|
+
readonly syncInterval: number;
|
|
342
|
+
/** Enable native formula parsing (WASM) */
|
|
343
|
+
readonly nativeFormulas: boolean;
|
|
344
|
+
/** Enable convoy tracking */
|
|
345
|
+
readonly enableConvoys: boolean;
|
|
346
|
+
/** Auto-create beads from Claude Flow tasks */
|
|
347
|
+
readonly autoCreateBeads: boolean;
|
|
348
|
+
/** Enable GUPP integration */
|
|
349
|
+
readonly enableGUPP: boolean;
|
|
350
|
+
/** GUPP check interval in milliseconds */
|
|
351
|
+
readonly guppCheckInterval: number;
|
|
352
|
+
/** CLI timeout in milliseconds */
|
|
353
|
+
readonly cliTimeout: number;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Default configuration values
|
|
357
|
+
*/
|
|
358
|
+
declare const DEFAULT_CONFIG: GasTownConfig;
|
|
359
|
+
/**
|
|
360
|
+
* Gas Town Bridge error codes
|
|
361
|
+
*/
|
|
362
|
+
declare const GasTownErrorCodes: {
|
|
363
|
+
readonly CLI_NOT_FOUND: "GT_CLI_NOT_FOUND";
|
|
364
|
+
readonly CLI_TIMEOUT: "GT_CLI_TIMEOUT";
|
|
365
|
+
readonly CLI_ERROR: "GT_CLI_ERROR";
|
|
366
|
+
readonly BEAD_NOT_FOUND: "GT_BEAD_NOT_FOUND";
|
|
367
|
+
readonly CONVOY_NOT_FOUND: "GT_CONVOY_NOT_FOUND";
|
|
368
|
+
readonly FORMULA_NOT_FOUND: "GT_FORMULA_NOT_FOUND";
|
|
369
|
+
readonly FORMULA_PARSE_ERROR: "GT_FORMULA_PARSE_ERROR";
|
|
370
|
+
readonly WASM_NOT_INITIALIZED: "GT_WASM_NOT_INITIALIZED";
|
|
371
|
+
readonly SYNC_ERROR: "GT_SYNC_ERROR";
|
|
372
|
+
readonly DEPENDENCY_CYCLE: "GT_DEPENDENCY_CYCLE";
|
|
373
|
+
readonly INVALID_SLING_TARGET: "GT_INVALID_SLING_TARGET";
|
|
374
|
+
};
|
|
375
|
+
type GasTownErrorCode = (typeof GasTownErrorCodes)[keyof typeof GasTownErrorCodes];
|
|
376
|
+
/**
|
|
377
|
+
* Bead status schema
|
|
378
|
+
*/
|
|
379
|
+
declare const BeadStatusSchema: z.ZodEnum<["open", "in_progress", "closed"]>;
|
|
380
|
+
/**
|
|
381
|
+
* Bead schema
|
|
382
|
+
*/
|
|
383
|
+
declare const BeadSchema: z.ZodObject<{
|
|
384
|
+
id: z.ZodString;
|
|
385
|
+
title: z.ZodString;
|
|
386
|
+
description: z.ZodString;
|
|
387
|
+
status: z.ZodEnum<["open", "in_progress", "closed"]>;
|
|
388
|
+
priority: z.ZodNumber;
|
|
389
|
+
labels: z.ZodArray<z.ZodString, "many">;
|
|
390
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
391
|
+
createdAt: z.ZodDate;
|
|
392
|
+
updatedAt: z.ZodDate;
|
|
393
|
+
assignee: z.ZodOptional<z.ZodString>;
|
|
394
|
+
rig: z.ZodOptional<z.ZodString>;
|
|
395
|
+
blockedBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
396
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
397
|
+
}, "strip", z.ZodTypeAny, {
|
|
398
|
+
id: string;
|
|
399
|
+
title: string;
|
|
400
|
+
description: string;
|
|
401
|
+
status: "open" | "in_progress" | "closed";
|
|
402
|
+
priority: number;
|
|
403
|
+
labels: string[];
|
|
404
|
+
createdAt: Date;
|
|
405
|
+
updatedAt: Date;
|
|
406
|
+
blocks?: string[] | undefined;
|
|
407
|
+
parentId?: string | undefined;
|
|
408
|
+
assignee?: string | undefined;
|
|
409
|
+
rig?: string | undefined;
|
|
410
|
+
blockedBy?: string[] | undefined;
|
|
411
|
+
}, {
|
|
412
|
+
id: string;
|
|
413
|
+
title: string;
|
|
414
|
+
description: string;
|
|
415
|
+
status: "open" | "in_progress" | "closed";
|
|
416
|
+
priority: number;
|
|
417
|
+
labels: string[];
|
|
418
|
+
createdAt: Date;
|
|
419
|
+
updatedAt: Date;
|
|
420
|
+
blocks?: string[] | undefined;
|
|
421
|
+
parentId?: string | undefined;
|
|
422
|
+
assignee?: string | undefined;
|
|
423
|
+
rig?: string | undefined;
|
|
424
|
+
blockedBy?: string[] | undefined;
|
|
425
|
+
}>;
|
|
426
|
+
/**
|
|
427
|
+
* Create bead options schema
|
|
428
|
+
*/
|
|
429
|
+
declare const CreateBeadOptionsSchema: z.ZodObject<{
|
|
430
|
+
title: z.ZodString;
|
|
431
|
+
description: z.ZodOptional<z.ZodString>;
|
|
432
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
433
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
434
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
435
|
+
rig: z.ZodOptional<z.ZodString>;
|
|
436
|
+
assignee: z.ZodOptional<z.ZodString>;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
title: string;
|
|
439
|
+
description?: string | undefined;
|
|
440
|
+
priority?: number | undefined;
|
|
441
|
+
labels?: string[] | undefined;
|
|
442
|
+
assignee?: string | undefined;
|
|
443
|
+
rig?: string | undefined;
|
|
444
|
+
parent?: string | undefined;
|
|
445
|
+
}, {
|
|
446
|
+
title: string;
|
|
447
|
+
description?: string | undefined;
|
|
448
|
+
priority?: number | undefined;
|
|
449
|
+
labels?: string[] | undefined;
|
|
450
|
+
assignee?: string | undefined;
|
|
451
|
+
rig?: string | undefined;
|
|
452
|
+
parent?: string | undefined;
|
|
453
|
+
}>;
|
|
454
|
+
/**
|
|
455
|
+
* Formula type schema
|
|
456
|
+
*/
|
|
457
|
+
declare const FormulaTypeSchema: z.ZodEnum<["convoy", "workflow", "expansion", "aspect"]>;
|
|
458
|
+
/**
|
|
459
|
+
* Step schema
|
|
460
|
+
*/
|
|
461
|
+
declare const StepSchema: z.ZodObject<{
|
|
462
|
+
id: z.ZodString;
|
|
463
|
+
title: z.ZodString;
|
|
464
|
+
description: z.ZodString;
|
|
465
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
466
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
467
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
468
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
469
|
+
}, "strip", z.ZodTypeAny, {
|
|
470
|
+
id: string;
|
|
471
|
+
title: string;
|
|
472
|
+
description: string;
|
|
473
|
+
needs?: string[] | undefined;
|
|
474
|
+
duration?: number | undefined;
|
|
475
|
+
requires?: string[] | undefined;
|
|
476
|
+
metadata?: Record<string, unknown> | undefined;
|
|
477
|
+
}, {
|
|
478
|
+
id: string;
|
|
479
|
+
title: string;
|
|
480
|
+
description: string;
|
|
481
|
+
needs?: string[] | undefined;
|
|
482
|
+
duration?: number | undefined;
|
|
483
|
+
requires?: string[] | undefined;
|
|
484
|
+
metadata?: Record<string, unknown> | undefined;
|
|
485
|
+
}>;
|
|
486
|
+
/**
|
|
487
|
+
* Leg schema
|
|
488
|
+
*/
|
|
489
|
+
declare const LegSchema: z.ZodObject<{
|
|
490
|
+
id: z.ZodString;
|
|
491
|
+
title: z.ZodString;
|
|
492
|
+
focus: z.ZodString;
|
|
493
|
+
description: z.ZodString;
|
|
494
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
495
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
496
|
+
}, "strip", z.ZodTypeAny, {
|
|
497
|
+
id: string;
|
|
498
|
+
title: string;
|
|
499
|
+
description: string;
|
|
500
|
+
focus: string;
|
|
501
|
+
agent?: string | undefined;
|
|
502
|
+
order?: number | undefined;
|
|
503
|
+
}, {
|
|
504
|
+
id: string;
|
|
505
|
+
title: string;
|
|
506
|
+
description: string;
|
|
507
|
+
focus: string;
|
|
508
|
+
agent?: string | undefined;
|
|
509
|
+
order?: number | undefined;
|
|
510
|
+
}>;
|
|
511
|
+
/**
|
|
512
|
+
* Variable schema
|
|
513
|
+
*/
|
|
514
|
+
declare const VarSchema: z.ZodObject<{
|
|
515
|
+
name: z.ZodString;
|
|
516
|
+
description: z.ZodOptional<z.ZodString>;
|
|
517
|
+
default: z.ZodOptional<z.ZodString>;
|
|
518
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
519
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
520
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
521
|
+
}, "strip", z.ZodTypeAny, {
|
|
522
|
+
name: string;
|
|
523
|
+
description?: string | undefined;
|
|
524
|
+
default?: string | undefined;
|
|
525
|
+
required?: boolean | undefined;
|
|
526
|
+
pattern?: string | undefined;
|
|
527
|
+
enum?: string[] | undefined;
|
|
528
|
+
}, {
|
|
529
|
+
name: string;
|
|
530
|
+
description?: string | undefined;
|
|
531
|
+
default?: string | undefined;
|
|
532
|
+
required?: boolean | undefined;
|
|
533
|
+
pattern?: string | undefined;
|
|
534
|
+
enum?: string[] | undefined;
|
|
535
|
+
}>;
|
|
536
|
+
/**
|
|
537
|
+
* Synthesis schema
|
|
538
|
+
*/
|
|
539
|
+
declare const SynthesisSchema: z.ZodObject<{
|
|
540
|
+
strategy: z.ZodEnum<["merge", "sequential", "parallel"]>;
|
|
541
|
+
format: z.ZodOptional<z.ZodString>;
|
|
542
|
+
description: z.ZodOptional<z.ZodString>;
|
|
543
|
+
}, "strip", z.ZodTypeAny, {
|
|
544
|
+
strategy: "merge" | "sequential" | "parallel";
|
|
545
|
+
description?: string | undefined;
|
|
546
|
+
format?: string | undefined;
|
|
547
|
+
}, {
|
|
548
|
+
strategy: "merge" | "sequential" | "parallel";
|
|
549
|
+
description?: string | undefined;
|
|
550
|
+
format?: string | undefined;
|
|
551
|
+
}>;
|
|
552
|
+
/**
|
|
553
|
+
* Template schema
|
|
554
|
+
*/
|
|
555
|
+
declare const TemplateSchema: z.ZodObject<{
|
|
556
|
+
name: z.ZodString;
|
|
557
|
+
content: z.ZodString;
|
|
558
|
+
outputPath: z.ZodOptional<z.ZodString>;
|
|
559
|
+
}, "strip", z.ZodTypeAny, {
|
|
560
|
+
name: string;
|
|
561
|
+
content: string;
|
|
562
|
+
outputPath?: string | undefined;
|
|
563
|
+
}, {
|
|
564
|
+
name: string;
|
|
565
|
+
content: string;
|
|
566
|
+
outputPath?: string | undefined;
|
|
567
|
+
}>;
|
|
568
|
+
/**
|
|
569
|
+
* Aspect schema
|
|
570
|
+
*/
|
|
571
|
+
declare const AspectSchema: z.ZodObject<{
|
|
572
|
+
name: z.ZodString;
|
|
573
|
+
pointcut: z.ZodString;
|
|
574
|
+
advice: z.ZodString;
|
|
575
|
+
type: z.ZodEnum<["before", "after", "around"]>;
|
|
576
|
+
}, "strip", z.ZodTypeAny, {
|
|
577
|
+
type: "before" | "after" | "around";
|
|
578
|
+
name: string;
|
|
579
|
+
pointcut: string;
|
|
580
|
+
advice: string;
|
|
581
|
+
}, {
|
|
582
|
+
type: "before" | "after" | "around";
|
|
583
|
+
name: string;
|
|
584
|
+
pointcut: string;
|
|
585
|
+
advice: string;
|
|
586
|
+
}>;
|
|
587
|
+
/**
|
|
588
|
+
* Formula schema
|
|
589
|
+
*/
|
|
590
|
+
declare const FormulaSchema: z.ZodObject<{
|
|
591
|
+
name: z.ZodString;
|
|
592
|
+
description: z.ZodString;
|
|
593
|
+
type: z.ZodEnum<["convoy", "workflow", "expansion", "aspect"]>;
|
|
594
|
+
version: z.ZodNumber;
|
|
595
|
+
legs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
596
|
+
id: z.ZodString;
|
|
597
|
+
title: z.ZodString;
|
|
598
|
+
focus: z.ZodString;
|
|
599
|
+
description: z.ZodString;
|
|
600
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
601
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
602
|
+
}, "strip", z.ZodTypeAny, {
|
|
603
|
+
id: string;
|
|
604
|
+
title: string;
|
|
605
|
+
description: string;
|
|
606
|
+
focus: string;
|
|
607
|
+
agent?: string | undefined;
|
|
608
|
+
order?: number | undefined;
|
|
609
|
+
}, {
|
|
610
|
+
id: string;
|
|
611
|
+
title: string;
|
|
612
|
+
description: string;
|
|
613
|
+
focus: string;
|
|
614
|
+
agent?: string | undefined;
|
|
615
|
+
order?: number | undefined;
|
|
616
|
+
}>, "many">>;
|
|
617
|
+
synthesis: z.ZodOptional<z.ZodObject<{
|
|
618
|
+
strategy: z.ZodEnum<["merge", "sequential", "parallel"]>;
|
|
619
|
+
format: z.ZodOptional<z.ZodString>;
|
|
620
|
+
description: z.ZodOptional<z.ZodString>;
|
|
621
|
+
}, "strip", z.ZodTypeAny, {
|
|
622
|
+
strategy: "merge" | "sequential" | "parallel";
|
|
623
|
+
description?: string | undefined;
|
|
624
|
+
format?: string | undefined;
|
|
625
|
+
}, {
|
|
626
|
+
strategy: "merge" | "sequential" | "parallel";
|
|
627
|
+
description?: string | undefined;
|
|
628
|
+
format?: string | undefined;
|
|
629
|
+
}>>;
|
|
630
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
631
|
+
id: z.ZodString;
|
|
632
|
+
title: z.ZodString;
|
|
633
|
+
description: z.ZodString;
|
|
634
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
635
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
636
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
637
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
638
|
+
}, "strip", z.ZodTypeAny, {
|
|
639
|
+
id: string;
|
|
640
|
+
title: string;
|
|
641
|
+
description: string;
|
|
642
|
+
needs?: string[] | undefined;
|
|
643
|
+
duration?: number | undefined;
|
|
644
|
+
requires?: string[] | undefined;
|
|
645
|
+
metadata?: Record<string, unknown> | undefined;
|
|
646
|
+
}, {
|
|
647
|
+
id: string;
|
|
648
|
+
title: string;
|
|
649
|
+
description: string;
|
|
650
|
+
needs?: string[] | undefined;
|
|
651
|
+
duration?: number | undefined;
|
|
652
|
+
requires?: string[] | undefined;
|
|
653
|
+
metadata?: Record<string, unknown> | undefined;
|
|
654
|
+
}>, "many">>;
|
|
655
|
+
vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
656
|
+
name: z.ZodString;
|
|
657
|
+
description: z.ZodOptional<z.ZodString>;
|
|
658
|
+
default: z.ZodOptional<z.ZodString>;
|
|
659
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
660
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
661
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
662
|
+
}, "strip", z.ZodTypeAny, {
|
|
663
|
+
name: string;
|
|
664
|
+
description?: string | undefined;
|
|
665
|
+
default?: string | undefined;
|
|
666
|
+
required?: boolean | undefined;
|
|
667
|
+
pattern?: string | undefined;
|
|
668
|
+
enum?: string[] | undefined;
|
|
669
|
+
}, {
|
|
670
|
+
name: string;
|
|
671
|
+
description?: string | undefined;
|
|
672
|
+
default?: string | undefined;
|
|
673
|
+
required?: boolean | undefined;
|
|
674
|
+
pattern?: string | undefined;
|
|
675
|
+
enum?: string[] | undefined;
|
|
676
|
+
}>>>;
|
|
677
|
+
templates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
678
|
+
name: z.ZodString;
|
|
679
|
+
content: z.ZodString;
|
|
680
|
+
outputPath: z.ZodOptional<z.ZodString>;
|
|
681
|
+
}, "strip", z.ZodTypeAny, {
|
|
682
|
+
name: string;
|
|
683
|
+
content: string;
|
|
684
|
+
outputPath?: string | undefined;
|
|
685
|
+
}, {
|
|
686
|
+
name: string;
|
|
687
|
+
content: string;
|
|
688
|
+
outputPath?: string | undefined;
|
|
689
|
+
}>, "many">>;
|
|
690
|
+
aspects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
691
|
+
name: z.ZodString;
|
|
692
|
+
pointcut: z.ZodString;
|
|
693
|
+
advice: z.ZodString;
|
|
694
|
+
type: z.ZodEnum<["before", "after", "around"]>;
|
|
695
|
+
}, "strip", z.ZodTypeAny, {
|
|
696
|
+
type: "before" | "after" | "around";
|
|
697
|
+
name: string;
|
|
698
|
+
pointcut: string;
|
|
699
|
+
advice: string;
|
|
700
|
+
}, {
|
|
701
|
+
type: "before" | "after" | "around";
|
|
702
|
+
name: string;
|
|
703
|
+
pointcut: string;
|
|
704
|
+
advice: string;
|
|
705
|
+
}>, "many">>;
|
|
706
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
707
|
+
}, "strip", z.ZodTypeAny, {
|
|
708
|
+
description: string;
|
|
709
|
+
type: "convoy" | "workflow" | "expansion" | "aspect";
|
|
710
|
+
name: string;
|
|
711
|
+
version: number;
|
|
712
|
+
metadata?: Record<string, unknown> | undefined;
|
|
713
|
+
legs?: {
|
|
714
|
+
id: string;
|
|
715
|
+
title: string;
|
|
716
|
+
description: string;
|
|
717
|
+
focus: string;
|
|
718
|
+
agent?: string | undefined;
|
|
719
|
+
order?: number | undefined;
|
|
720
|
+
}[] | undefined;
|
|
721
|
+
synthesis?: {
|
|
722
|
+
strategy: "merge" | "sequential" | "parallel";
|
|
723
|
+
description?: string | undefined;
|
|
724
|
+
format?: string | undefined;
|
|
725
|
+
} | undefined;
|
|
726
|
+
steps?: {
|
|
727
|
+
id: string;
|
|
728
|
+
title: string;
|
|
729
|
+
description: string;
|
|
730
|
+
needs?: string[] | undefined;
|
|
731
|
+
duration?: number | undefined;
|
|
732
|
+
requires?: string[] | undefined;
|
|
733
|
+
metadata?: Record<string, unknown> | undefined;
|
|
734
|
+
}[] | undefined;
|
|
735
|
+
vars?: Record<string, {
|
|
736
|
+
name: string;
|
|
737
|
+
description?: string | undefined;
|
|
738
|
+
default?: string | undefined;
|
|
739
|
+
required?: boolean | undefined;
|
|
740
|
+
pattern?: string | undefined;
|
|
741
|
+
enum?: string[] | undefined;
|
|
742
|
+
}> | undefined;
|
|
743
|
+
templates?: {
|
|
744
|
+
name: string;
|
|
745
|
+
content: string;
|
|
746
|
+
outputPath?: string | undefined;
|
|
747
|
+
}[] | undefined;
|
|
748
|
+
aspects?: {
|
|
749
|
+
type: "before" | "after" | "around";
|
|
750
|
+
name: string;
|
|
751
|
+
pointcut: string;
|
|
752
|
+
advice: string;
|
|
753
|
+
}[] | undefined;
|
|
754
|
+
}, {
|
|
755
|
+
description: string;
|
|
756
|
+
type: "convoy" | "workflow" | "expansion" | "aspect";
|
|
757
|
+
name: string;
|
|
758
|
+
version: number;
|
|
759
|
+
metadata?: Record<string, unknown> | undefined;
|
|
760
|
+
legs?: {
|
|
761
|
+
id: string;
|
|
762
|
+
title: string;
|
|
763
|
+
description: string;
|
|
764
|
+
focus: string;
|
|
765
|
+
agent?: string | undefined;
|
|
766
|
+
order?: number | undefined;
|
|
767
|
+
}[] | undefined;
|
|
768
|
+
synthesis?: {
|
|
769
|
+
strategy: "merge" | "sequential" | "parallel";
|
|
770
|
+
description?: string | undefined;
|
|
771
|
+
format?: string | undefined;
|
|
772
|
+
} | undefined;
|
|
773
|
+
steps?: {
|
|
774
|
+
id: string;
|
|
775
|
+
title: string;
|
|
776
|
+
description: string;
|
|
777
|
+
needs?: string[] | undefined;
|
|
778
|
+
duration?: number | undefined;
|
|
779
|
+
requires?: string[] | undefined;
|
|
780
|
+
metadata?: Record<string, unknown> | undefined;
|
|
781
|
+
}[] | undefined;
|
|
782
|
+
vars?: Record<string, {
|
|
783
|
+
name: string;
|
|
784
|
+
description?: string | undefined;
|
|
785
|
+
default?: string | undefined;
|
|
786
|
+
required?: boolean | undefined;
|
|
787
|
+
pattern?: string | undefined;
|
|
788
|
+
enum?: string[] | undefined;
|
|
789
|
+
}> | undefined;
|
|
790
|
+
templates?: {
|
|
791
|
+
name: string;
|
|
792
|
+
content: string;
|
|
793
|
+
outputPath?: string | undefined;
|
|
794
|
+
}[] | undefined;
|
|
795
|
+
aspects?: {
|
|
796
|
+
type: "before" | "after" | "around";
|
|
797
|
+
name: string;
|
|
798
|
+
pointcut: string;
|
|
799
|
+
advice: string;
|
|
800
|
+
}[] | undefined;
|
|
801
|
+
}>;
|
|
802
|
+
/**
|
|
803
|
+
* Convoy status schema
|
|
804
|
+
*/
|
|
805
|
+
declare const ConvoyStatusSchema: z.ZodEnum<["active", "landed", "failed", "paused"]>;
|
|
806
|
+
/**
|
|
807
|
+
* Convoy progress schema
|
|
808
|
+
*/
|
|
809
|
+
declare const ConvoyProgressSchema: z.ZodObject<{
|
|
810
|
+
total: z.ZodNumber;
|
|
811
|
+
closed: z.ZodNumber;
|
|
812
|
+
inProgress: z.ZodNumber;
|
|
813
|
+
blocked: z.ZodNumber;
|
|
814
|
+
}, "strip", z.ZodTypeAny, {
|
|
815
|
+
closed: number;
|
|
816
|
+
total: number;
|
|
817
|
+
inProgress: number;
|
|
818
|
+
blocked: number;
|
|
819
|
+
}, {
|
|
820
|
+
closed: number;
|
|
821
|
+
total: number;
|
|
822
|
+
inProgress: number;
|
|
823
|
+
blocked: number;
|
|
824
|
+
}>;
|
|
825
|
+
/**
|
|
826
|
+
* Convoy schema
|
|
827
|
+
*/
|
|
828
|
+
declare const ConvoySchema: z.ZodObject<{
|
|
829
|
+
id: z.ZodString;
|
|
830
|
+
name: z.ZodString;
|
|
831
|
+
trackedIssues: z.ZodArray<z.ZodString, "many">;
|
|
832
|
+
status: z.ZodEnum<["active", "landed", "failed", "paused"]>;
|
|
833
|
+
startedAt: z.ZodDate;
|
|
834
|
+
completedAt: z.ZodOptional<z.ZodDate>;
|
|
835
|
+
progress: z.ZodObject<{
|
|
836
|
+
total: z.ZodNumber;
|
|
837
|
+
closed: z.ZodNumber;
|
|
838
|
+
inProgress: z.ZodNumber;
|
|
839
|
+
blocked: z.ZodNumber;
|
|
840
|
+
}, "strip", z.ZodTypeAny, {
|
|
841
|
+
closed: number;
|
|
842
|
+
total: number;
|
|
843
|
+
inProgress: number;
|
|
844
|
+
blocked: number;
|
|
845
|
+
}, {
|
|
846
|
+
closed: number;
|
|
847
|
+
total: number;
|
|
848
|
+
inProgress: number;
|
|
849
|
+
blocked: number;
|
|
850
|
+
}>;
|
|
851
|
+
formula: z.ZodOptional<z.ZodString>;
|
|
852
|
+
description: z.ZodOptional<z.ZodString>;
|
|
853
|
+
}, "strip", z.ZodTypeAny, {
|
|
854
|
+
id: string;
|
|
855
|
+
status: "active" | "landed" | "failed" | "paused";
|
|
856
|
+
name: string;
|
|
857
|
+
trackedIssues: string[];
|
|
858
|
+
startedAt: Date;
|
|
859
|
+
progress: {
|
|
860
|
+
closed: number;
|
|
861
|
+
total: number;
|
|
862
|
+
inProgress: number;
|
|
863
|
+
blocked: number;
|
|
864
|
+
};
|
|
865
|
+
description?: string | undefined;
|
|
866
|
+
completedAt?: Date | undefined;
|
|
867
|
+
formula?: string | undefined;
|
|
868
|
+
}, {
|
|
869
|
+
id: string;
|
|
870
|
+
status: "active" | "landed" | "failed" | "paused";
|
|
871
|
+
name: string;
|
|
872
|
+
trackedIssues: string[];
|
|
873
|
+
startedAt: Date;
|
|
874
|
+
progress: {
|
|
875
|
+
closed: number;
|
|
876
|
+
total: number;
|
|
877
|
+
inProgress: number;
|
|
878
|
+
blocked: number;
|
|
879
|
+
};
|
|
880
|
+
description?: string | undefined;
|
|
881
|
+
completedAt?: Date | undefined;
|
|
882
|
+
formula?: string | undefined;
|
|
883
|
+
}>;
|
|
884
|
+
/**
|
|
885
|
+
* Create convoy options schema
|
|
886
|
+
*/
|
|
887
|
+
declare const CreateConvoyOptionsSchema: z.ZodObject<{
|
|
888
|
+
name: z.ZodString;
|
|
889
|
+
issues: z.ZodArray<z.ZodString, "many">;
|
|
890
|
+
description: z.ZodOptional<z.ZodString>;
|
|
891
|
+
formula: z.ZodOptional<z.ZodString>;
|
|
892
|
+
}, "strip", z.ZodTypeAny, {
|
|
893
|
+
issues: string[];
|
|
894
|
+
name: string;
|
|
895
|
+
description?: string | undefined;
|
|
896
|
+
formula?: string | undefined;
|
|
897
|
+
}, {
|
|
898
|
+
issues: string[];
|
|
899
|
+
name: string;
|
|
900
|
+
description?: string | undefined;
|
|
901
|
+
formula?: string | undefined;
|
|
902
|
+
}>;
|
|
903
|
+
/**
|
|
904
|
+
* Gas Town agent role schema
|
|
905
|
+
*/
|
|
906
|
+
declare const GasTownAgentRoleSchema: z.ZodEnum<["mayor", "polecat", "refinery", "witness", "deacon", "dog", "crew"]>;
|
|
907
|
+
/**
|
|
908
|
+
* Sling target schema
|
|
909
|
+
*/
|
|
910
|
+
declare const SlingTargetSchema: z.ZodEnum<["polecat", "crew", "mayor"]>;
|
|
911
|
+
/**
|
|
912
|
+
* Sling options schema
|
|
913
|
+
*/
|
|
914
|
+
declare const SlingOptionsSchema: z.ZodObject<{
|
|
915
|
+
beadId: z.ZodString;
|
|
916
|
+
target: z.ZodEnum<["polecat", "crew", "mayor"]>;
|
|
917
|
+
formula: z.ZodOptional<z.ZodString>;
|
|
918
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
919
|
+
}, "strip", z.ZodTypeAny, {
|
|
920
|
+
beadId: string;
|
|
921
|
+
target: "mayor" | "polecat" | "crew";
|
|
922
|
+
priority?: number | undefined;
|
|
923
|
+
formula?: string | undefined;
|
|
924
|
+
}, {
|
|
925
|
+
beadId: string;
|
|
926
|
+
target: "mayor" | "polecat" | "crew";
|
|
927
|
+
priority?: number | undefined;
|
|
928
|
+
formula?: string | undefined;
|
|
929
|
+
}>;
|
|
930
|
+
/**
|
|
931
|
+
* Sync direction schema
|
|
932
|
+
*/
|
|
933
|
+
declare const SyncDirectionSchema: z.ZodEnum<["pull", "push", "both"]>;
|
|
934
|
+
/**
|
|
935
|
+
* Configuration schema
|
|
936
|
+
*/
|
|
937
|
+
declare const GasTownConfigSchema: z.ZodObject<{
|
|
938
|
+
townRoot: z.ZodDefault<z.ZodString>;
|
|
939
|
+
enableBeadsSync: z.ZodDefault<z.ZodBoolean>;
|
|
940
|
+
syncInterval: z.ZodDefault<z.ZodNumber>;
|
|
941
|
+
nativeFormulas: z.ZodDefault<z.ZodBoolean>;
|
|
942
|
+
enableConvoys: z.ZodDefault<z.ZodBoolean>;
|
|
943
|
+
autoCreateBeads: z.ZodDefault<z.ZodBoolean>;
|
|
944
|
+
enableGUPP: z.ZodDefault<z.ZodBoolean>;
|
|
945
|
+
guppCheckInterval: z.ZodDefault<z.ZodNumber>;
|
|
946
|
+
cliTimeout: z.ZodDefault<z.ZodNumber>;
|
|
947
|
+
}, "strip", z.ZodTypeAny, {
|
|
948
|
+
townRoot: string;
|
|
949
|
+
enableBeadsSync: boolean;
|
|
950
|
+
syncInterval: number;
|
|
951
|
+
nativeFormulas: boolean;
|
|
952
|
+
enableConvoys: boolean;
|
|
953
|
+
autoCreateBeads: boolean;
|
|
954
|
+
enableGUPP: boolean;
|
|
955
|
+
guppCheckInterval: number;
|
|
956
|
+
cliTimeout: number;
|
|
957
|
+
}, {
|
|
958
|
+
townRoot?: string | undefined;
|
|
959
|
+
enableBeadsSync?: boolean | undefined;
|
|
960
|
+
syncInterval?: number | undefined;
|
|
961
|
+
nativeFormulas?: boolean | undefined;
|
|
962
|
+
enableConvoys?: boolean | undefined;
|
|
963
|
+
autoCreateBeads?: boolean | undefined;
|
|
964
|
+
enableGUPP?: boolean | undefined;
|
|
965
|
+
guppCheckInterval?: number | undefined;
|
|
966
|
+
cliTimeout?: number | undefined;
|
|
967
|
+
}>;
|
|
968
|
+
/**
|
|
969
|
+
* Validate bead
|
|
970
|
+
*/
|
|
971
|
+
declare function validateBead(input: unknown): Bead;
|
|
972
|
+
/**
|
|
973
|
+
* Validate create bead options
|
|
974
|
+
*/
|
|
975
|
+
declare function validateCreateBeadOptions(input: unknown): CreateBeadOptions;
|
|
976
|
+
/**
|
|
977
|
+
* Validate formula
|
|
978
|
+
*/
|
|
979
|
+
declare function validateFormula(input: unknown): Formula;
|
|
980
|
+
/**
|
|
981
|
+
* Validate convoy
|
|
982
|
+
*/
|
|
983
|
+
declare function validateConvoy(input: unknown): Convoy;
|
|
984
|
+
/**
|
|
985
|
+
* Validate create convoy options
|
|
986
|
+
*/
|
|
987
|
+
declare function validateCreateConvoyOptions(input: unknown): CreateConvoyOptions;
|
|
988
|
+
/**
|
|
989
|
+
* Validate sling options
|
|
990
|
+
*/
|
|
991
|
+
declare function validateSlingOptions(input: unknown): SlingOptions;
|
|
992
|
+
/**
|
|
993
|
+
* Validate configuration
|
|
994
|
+
*/
|
|
995
|
+
declare function validateConfig(input: unknown): GasTownConfig;
|
|
996
|
+
/**
|
|
997
|
+
* Dependency action type
|
|
998
|
+
*/
|
|
999
|
+
type DepAction = 'add' | 'remove';
|
|
1000
|
+
/**
|
|
1001
|
+
* Convoy action type
|
|
1002
|
+
*/
|
|
1003
|
+
type ConvoyAction = 'create' | 'track' | 'land' | 'pause' | 'resume';
|
|
1004
|
+
/**
|
|
1005
|
+
* Mail action type
|
|
1006
|
+
*/
|
|
1007
|
+
type MailAction = 'send' | 'read' | 'list';
|
|
1008
|
+
/**
|
|
1009
|
+
* Agent role type (alias for GasTownAgentRole)
|
|
1010
|
+
*/
|
|
1011
|
+
type AgentRole = GasTownAgentRole;
|
|
1012
|
+
/**
|
|
1013
|
+
* Target agent type (alias for SlingTarget)
|
|
1014
|
+
*/
|
|
1015
|
+
type TargetAgent = SlingTarget;
|
|
1016
|
+
/**
|
|
1017
|
+
* Convoy strategy type
|
|
1018
|
+
*/
|
|
1019
|
+
type ConvoyStrategy = 'parallel' | 'serial' | 'hybrid' | 'fastest' | 'balanced' | 'throughput' | 'minimal_context_switches';
|
|
1020
|
+
/**
|
|
1021
|
+
* Dependency action type (for graph operations)
|
|
1022
|
+
*/
|
|
1023
|
+
type DependencyAction = 'topo_sort' | 'cycle_detect' | 'critical_path';
|
|
1024
|
+
/**
|
|
1025
|
+
* Formula AST (Abstract Syntax Tree) - alias for Formula
|
|
1026
|
+
*/
|
|
1027
|
+
type FormulaAST = Formula;
|
|
1028
|
+
/**
|
|
1029
|
+
* Dependency resolution result
|
|
1030
|
+
*/
|
|
1031
|
+
interface DependencyResolution {
|
|
1032
|
+
readonly action: DependencyAction;
|
|
1033
|
+
readonly sorted?: string[];
|
|
1034
|
+
readonly hasCycle?: boolean;
|
|
1035
|
+
readonly cycleNodes?: string[];
|
|
1036
|
+
readonly criticalPath?: string[];
|
|
1037
|
+
readonly totalDuration?: number;
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
* Pattern match result
|
|
1041
|
+
*/
|
|
1042
|
+
interface PatternMatch {
|
|
1043
|
+
readonly index: number;
|
|
1044
|
+
readonly candidate: string;
|
|
1045
|
+
readonly similarity: number;
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* Convoy optimization result
|
|
1049
|
+
*/
|
|
1050
|
+
interface ConvoyOptimization {
|
|
1051
|
+
readonly convoyId: string;
|
|
1052
|
+
readonly strategy: string;
|
|
1053
|
+
readonly executionOrder: string[];
|
|
1054
|
+
readonly parallelGroups: string[][];
|
|
1055
|
+
readonly estimatedDuration: number;
|
|
1056
|
+
}
|
|
1057
|
+
/**
|
|
1058
|
+
* Gas Town Bridge interface
|
|
1059
|
+
*/
|
|
1060
|
+
interface IGasTownBridge {
|
|
1061
|
+
createBead(opts: CreateBeadOptions): Promise<Bead>;
|
|
1062
|
+
getReady(limit?: number, rig?: string, labels?: string[]): Promise<Bead[]>;
|
|
1063
|
+
showBead(beadId: string): Promise<{
|
|
1064
|
+
bead: Bead;
|
|
1065
|
+
dependencies: string[];
|
|
1066
|
+
dependents: string[];
|
|
1067
|
+
}>;
|
|
1068
|
+
manageDependency(action: DepAction, child: string, parent: string): Promise<void>;
|
|
1069
|
+
createConvoy(opts: CreateConvoyOptions): Promise<Convoy>;
|
|
1070
|
+
getConvoyStatus(convoyId?: string, detailed?: boolean): Promise<Convoy[]>;
|
|
1071
|
+
trackConvoy(convoyId: string, action: 'add' | 'remove', issues: string[]): Promise<void>;
|
|
1072
|
+
listFormulas(type?: FormulaType, includeBuiltin?: boolean): Promise<Array<{
|
|
1073
|
+
name: string;
|
|
1074
|
+
type: FormulaType;
|
|
1075
|
+
description: string;
|
|
1076
|
+
builtin: boolean;
|
|
1077
|
+
}>>;
|
|
1078
|
+
cookFormula(formula: Formula | string, vars: Record<string, string>): Promise<CookedFormula>;
|
|
1079
|
+
executeFormula(formula: Formula | string, vars: Record<string, string>, targetAgent?: string, dryRun?: boolean): Promise<{
|
|
1080
|
+
beads_created: string[];
|
|
1081
|
+
}>;
|
|
1082
|
+
createFormula(opts: {
|
|
1083
|
+
name: string;
|
|
1084
|
+
type: FormulaType;
|
|
1085
|
+
steps?: Step[];
|
|
1086
|
+
vars?: Record<string, unknown>;
|
|
1087
|
+
description?: string;
|
|
1088
|
+
}): Promise<{
|
|
1089
|
+
path: string;
|
|
1090
|
+
}>;
|
|
1091
|
+
sling(beadId: string, target: SlingTarget, formula?: string, priority?: number): Promise<void>;
|
|
1092
|
+
listAgents(rig?: string, role?: AgentRole, includeInactive?: boolean): Promise<GasTownAgent[]>;
|
|
1093
|
+
sendMail(to: string, subject: string, body: string): Promise<string>;
|
|
1094
|
+
readMail(mailId: string): Promise<GasTownMail>;
|
|
1095
|
+
listMail(limit?: number): Promise<GasTownMail[]>;
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Beads sync service interface
|
|
1099
|
+
*/
|
|
1100
|
+
interface IBeadsSyncService {
|
|
1101
|
+
pullBeads(rig?: string, namespace?: string): Promise<{
|
|
1102
|
+
synced: number;
|
|
1103
|
+
conflicts: number;
|
|
1104
|
+
}>;
|
|
1105
|
+
pushTasks(namespace?: string): Promise<{
|
|
1106
|
+
pushed: number;
|
|
1107
|
+
conflicts: number;
|
|
1108
|
+
}>;
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
* Formula WASM interface
|
|
1112
|
+
*/
|
|
1113
|
+
interface IFormulaWasm {
|
|
1114
|
+
isInitialized(): boolean;
|
|
1115
|
+
initialize(): Promise<void>;
|
|
1116
|
+
parseFormula(content: string, validate?: boolean): Promise<Formula>;
|
|
1117
|
+
cookFormula(formula: Formula | string, vars: Record<string, string>, isContent?: boolean): Promise<CookedFormula>;
|
|
1118
|
+
cookBatch(formulas: Array<{
|
|
1119
|
+
name: string;
|
|
1120
|
+
content: string;
|
|
1121
|
+
}>, vars: Record<string, string>[], continueOnError?: boolean): Promise<{
|
|
1122
|
+
cooked: CookedFormula[];
|
|
1123
|
+
errors: Array<{
|
|
1124
|
+
index: number;
|
|
1125
|
+
error: string;
|
|
1126
|
+
}>;
|
|
1127
|
+
}>;
|
|
1128
|
+
}
|
|
1129
|
+
/**
|
|
1130
|
+
* Dependency WASM interface
|
|
1131
|
+
*/
|
|
1132
|
+
interface IDependencyWasm {
|
|
1133
|
+
isInitialized(): boolean;
|
|
1134
|
+
initialize(): Promise<void>;
|
|
1135
|
+
resolveDependencies(beads: Array<{
|
|
1136
|
+
id: string;
|
|
1137
|
+
dependencies?: string[];
|
|
1138
|
+
}>, action: DependencyAction): Promise<DependencyResolution>;
|
|
1139
|
+
matchPatterns(query: string, candidates: string[], k: number, threshold: number): Promise<PatternMatch[]>;
|
|
1140
|
+
optimizeConvoy(convoy: {
|
|
1141
|
+
id: string;
|
|
1142
|
+
trackedIssues: string[];
|
|
1143
|
+
}, strategy: ConvoyStrategy, constraints?: unknown): Promise<ConvoyOptimization>;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
export { SlingOptionsSchema as $, type AgentRole as A, type Bead as B, type Convoy as C, CreateConvoyOptionsSchema as D, DEFAULT_CONFIG as E, type Formula as F, type GasTownConfig as G, type DepAction as H, type IGasTownBridge as I, type DependencyAction as J, type DependencyResolution as K, type FormulaAST as L, FormulaSchema as M, FormulaTypeSchema as N, type GasTownAgent as O, type GasTownAgentRole as P, GasTownAgentRoleSchema as Q, GasTownConfigSchema as R, type Step as S, type TopoSortResult as T, type GasTownErrorCode as U, GasTownErrorCodes as V, type GasTownMail as W, type Leg as X, LegSchema as Y, type MailAction as Z, type PatternMatch as _, type BeadStatus as a, type SlingTarget as a0, SlingTargetSchema as a1, StepSchema as a2, type SyncDirection as a3, SyncDirectionSchema as a4, type Synthesis as a5, SynthesisSchema as a6, type TargetAgent as a7, type Template as a8, TemplateSchema as a9, type Var as aa, VarSchema as ab, validateBead as ac, validateConfig as ad, validateConvoy as ae, validateCreateBeadOptions as af, validateCreateConvoyOptions as ag, validateFormula as ah, validateSlingOptions as ai, type FormulaType as b, type ConvoyStatus as c, type IBeadsSyncService as d, type IFormulaWasm as e, type IDependencyWasm as f, type CriticalPathResult as g, type CreateBeadOptions as h, type SlingOptions as i, type SyncResult as j, type BeadGraph as k, type Aspect as l, AspectSchema as m, type BeadDependency as n, BeadSchema as o, BeadStatusSchema as p, type ConvoyAction as q, type ConvoyOptimization as r, type ConvoyProgress as s, ConvoyProgressSchema as t, ConvoySchema as u, ConvoyStatusSchema as v, type ConvoyStrategy as w, type CookedFormula as x, CreateBeadOptionsSchema as y, type CreateConvoyOptions as z };
|