@darkhorseprojects/circuitry 0.2.12 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,547 @@
1
+ import { z } from "zod";
2
+ import type { CircuitryHost } from "./host";
3
+ export declare const standardSchema: z.ZodOptional<z.ZodObject<{
4
+ version: z.ZodOptional<z.ZodString>;
5
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
6
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
8
+ rule: z.ZodString;
9
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10
+ rule: z.ZodString;
11
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
12
+ rule: z.ZodString;
13
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
14
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
15
+ version: z.ZodOptional<z.ZodString>;
16
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
17
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
19
+ rule: z.ZodString;
20
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
21
+ rule: z.ZodString;
22
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
23
+ rule: z.ZodString;
24
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
25
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
26
+ version: z.ZodOptional<z.ZodString>;
27
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
28
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
29
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
30
+ rule: z.ZodString;
31
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
32
+ rule: z.ZodString;
33
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
34
+ rule: z.ZodString;
35
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
36
+ }, z.ZodTypeAny, "passthrough">>>;
37
+ export declare const createCircuitryReadGraphTool: (host: CircuitryHost) => {
38
+ name: string;
39
+ description: string;
40
+ parameters: z.ZodObject<{
41
+ filename: z.ZodOptional<z.ZodString>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ filename?: string | undefined;
44
+ }, {
45
+ filename?: string | undefined;
46
+ }>;
47
+ execute: (input: {
48
+ filename?: string;
49
+ }) => Promise<{
50
+ filename: string;
51
+ graph: import("./graph").CircuitryGraph;
52
+ text: string;
53
+ lastRun?: any;
54
+ }>;
55
+ };
56
+ export declare const createCircuitryWriteGraphTool: (host: CircuitryHost) => {
57
+ name: string;
58
+ description: string;
59
+ parameters: z.ZodObject<{
60
+ text: z.ZodOptional<z.ZodString>;
61
+ filename: z.ZodOptional<z.ZodString>;
62
+ graph: z.ZodOptional<z.ZodAny>;
63
+ standard: z.ZodOptional<z.ZodObject<{
64
+ version: z.ZodOptional<z.ZodString>;
65
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
66
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
67
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
68
+ rule: z.ZodString;
69
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
70
+ rule: z.ZodString;
71
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
72
+ rule: z.ZodString;
73
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
74
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
75
+ version: z.ZodOptional<z.ZodString>;
76
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
77
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
78
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
79
+ rule: z.ZodString;
80
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
81
+ rule: z.ZodString;
82
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83
+ rule: z.ZodString;
84
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
85
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
86
+ version: z.ZodOptional<z.ZodString>;
87
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
88
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
89
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
90
+ rule: z.ZodString;
91
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
92
+ rule: z.ZodString;
93
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
94
+ rule: z.ZodString;
95
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
96
+ }, z.ZodTypeAny, "passthrough">>>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ text?: string | undefined;
99
+ graph?: any;
100
+ filename?: string | undefined;
101
+ standard?: z.objectOutputType<{
102
+ version: z.ZodOptional<z.ZodString>;
103
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
104
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
105
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
106
+ rule: z.ZodString;
107
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
108
+ rule: z.ZodString;
109
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
110
+ rule: z.ZodString;
111
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
112
+ }, z.ZodTypeAny, "passthrough"> | undefined;
113
+ }, {
114
+ text?: string | undefined;
115
+ graph?: any;
116
+ filename?: string | undefined;
117
+ standard?: z.objectInputType<{
118
+ version: z.ZodOptional<z.ZodString>;
119
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
120
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
121
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
122
+ rule: z.ZodString;
123
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
124
+ rule: z.ZodString;
125
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
126
+ rule: z.ZodString;
127
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
128
+ }, z.ZodTypeAny, "passthrough"> | undefined;
129
+ }>;
130
+ execute: (input: any) => Promise<{
131
+ filename: string;
132
+ graph: import("./graph").CircuitryGraph;
133
+ mode: "replace";
134
+ }>;
135
+ };
136
+ export declare const createCircuitryRunGraphTool: (host: CircuitryHost) => {
137
+ name: string;
138
+ description: string;
139
+ parameters: z.ZodObject<{
140
+ source: z.ZodOptional<z.ZodEnum<["current", "text"]>>;
141
+ text: z.ZodOptional<z.ZodString>;
142
+ filename: z.ZodOptional<z.ZodString>;
143
+ selectedNodeId: z.ZodOptional<z.ZodString>;
144
+ standard: z.ZodOptional<z.ZodObject<{
145
+ version: z.ZodOptional<z.ZodString>;
146
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
147
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
148
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
149
+ rule: z.ZodString;
150
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
151
+ rule: z.ZodString;
152
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
153
+ rule: z.ZodString;
154
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
155
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
156
+ version: z.ZodOptional<z.ZodString>;
157
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
158
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
159
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
160
+ rule: z.ZodString;
161
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
162
+ rule: z.ZodString;
163
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
164
+ rule: z.ZodString;
165
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
166
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
167
+ version: z.ZodOptional<z.ZodString>;
168
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
169
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
170
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
171
+ rule: z.ZodString;
172
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
173
+ rule: z.ZodString;
174
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
175
+ rule: z.ZodString;
176
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
177
+ }, z.ZodTypeAny, "passthrough">>>;
178
+ hostModel: z.ZodOptional<z.ZodString>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ text?: string | undefined;
181
+ selectedNodeId?: string | undefined;
182
+ filename?: string | undefined;
183
+ standard?: z.objectOutputType<{
184
+ version: z.ZodOptional<z.ZodString>;
185
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
186
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
187
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
188
+ rule: z.ZodString;
189
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
190
+ rule: z.ZodString;
191
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
192
+ rule: z.ZodString;
193
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
194
+ }, z.ZodTypeAny, "passthrough"> | undefined;
195
+ source?: "text" | "current" | undefined;
196
+ hostModel?: string | undefined;
197
+ }, {
198
+ text?: string | undefined;
199
+ selectedNodeId?: string | undefined;
200
+ filename?: string | undefined;
201
+ standard?: z.objectInputType<{
202
+ version: z.ZodOptional<z.ZodString>;
203
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
204
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
205
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
206
+ rule: z.ZodString;
207
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
208
+ rule: z.ZodString;
209
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
210
+ rule: z.ZodString;
211
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
212
+ }, z.ZodTypeAny, "passthrough"> | undefined;
213
+ source?: "text" | "current" | undefined;
214
+ hostModel?: string | undefined;
215
+ }>;
216
+ execute: (input: any) => Promise<{
217
+ completedAt: string;
218
+ runItems: import("./simulation").SimulationRunItem[];
219
+ }>;
220
+ };
221
+ export declare const createCircuitryValidateGraphTool: (host: CircuitryHost) => {
222
+ name: string;
223
+ description: string;
224
+ parameters: z.ZodObject<{
225
+ text: z.ZodString;
226
+ filename: z.ZodOptional<z.ZodString>;
227
+ standard: z.ZodOptional<z.ZodObject<{
228
+ version: z.ZodOptional<z.ZodString>;
229
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
230
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
231
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
232
+ rule: z.ZodString;
233
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
234
+ rule: z.ZodString;
235
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
236
+ rule: z.ZodString;
237
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
238
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
239
+ version: z.ZodOptional<z.ZodString>;
240
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
241
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
242
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
243
+ rule: z.ZodString;
244
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
245
+ rule: z.ZodString;
246
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
247
+ rule: z.ZodString;
248
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
249
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
250
+ version: z.ZodOptional<z.ZodString>;
251
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
252
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
253
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
254
+ rule: z.ZodString;
255
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
256
+ rule: z.ZodString;
257
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
258
+ rule: z.ZodString;
259
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
260
+ }, z.ZodTypeAny, "passthrough">>>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ text: string;
263
+ filename?: string | undefined;
264
+ standard?: z.objectOutputType<{
265
+ version: z.ZodOptional<z.ZodString>;
266
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
267
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
268
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
269
+ rule: z.ZodString;
270
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
271
+ rule: z.ZodString;
272
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
273
+ rule: z.ZodString;
274
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
275
+ }, z.ZodTypeAny, "passthrough"> | undefined;
276
+ }, {
277
+ text: string;
278
+ filename?: string | undefined;
279
+ standard?: z.objectInputType<{
280
+ version: z.ZodOptional<z.ZodString>;
281
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
282
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
283
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
284
+ rule: z.ZodString;
285
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
286
+ rule: z.ZodString;
287
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
288
+ rule: z.ZodString;
289
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
290
+ }, z.ZodTypeAny, "passthrough"> | undefined;
291
+ }>;
292
+ execute: (input: any) => Promise<import("./graph").CircuitryValidationResult>;
293
+ };
294
+ export declare const createCircuitryTools: (host: CircuitryHost) => ({
295
+ name: string;
296
+ description: string;
297
+ parameters: z.ZodObject<{
298
+ filename: z.ZodOptional<z.ZodString>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ filename?: string | undefined;
301
+ }, {
302
+ filename?: string | undefined;
303
+ }>;
304
+ execute: (input: {
305
+ filename?: string;
306
+ }) => Promise<{
307
+ filename: string;
308
+ graph: import("./graph").CircuitryGraph;
309
+ text: string;
310
+ lastRun?: any;
311
+ }>;
312
+ } | {
313
+ name: string;
314
+ description: string;
315
+ parameters: z.ZodObject<{
316
+ text: z.ZodOptional<z.ZodString>;
317
+ filename: z.ZodOptional<z.ZodString>;
318
+ graph: z.ZodOptional<z.ZodAny>;
319
+ standard: z.ZodOptional<z.ZodObject<{
320
+ version: z.ZodOptional<z.ZodString>;
321
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
322
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
323
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
324
+ rule: z.ZodString;
325
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
326
+ rule: z.ZodString;
327
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
328
+ rule: z.ZodString;
329
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
330
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
331
+ version: z.ZodOptional<z.ZodString>;
332
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
333
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
334
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
335
+ rule: z.ZodString;
336
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
337
+ rule: z.ZodString;
338
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
339
+ rule: z.ZodString;
340
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
341
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
342
+ version: z.ZodOptional<z.ZodString>;
343
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
344
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
345
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
346
+ rule: z.ZodString;
347
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
348
+ rule: z.ZodString;
349
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
350
+ rule: z.ZodString;
351
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
352
+ }, z.ZodTypeAny, "passthrough">>>;
353
+ }, "strip", z.ZodTypeAny, {
354
+ text?: string | undefined;
355
+ graph?: any;
356
+ filename?: string | undefined;
357
+ standard?: z.objectOutputType<{
358
+ version: z.ZodOptional<z.ZodString>;
359
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
360
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
361
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
362
+ rule: z.ZodString;
363
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
364
+ rule: z.ZodString;
365
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
366
+ rule: z.ZodString;
367
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
368
+ }, z.ZodTypeAny, "passthrough"> | undefined;
369
+ }, {
370
+ text?: string | undefined;
371
+ graph?: any;
372
+ filename?: string | undefined;
373
+ standard?: z.objectInputType<{
374
+ version: z.ZodOptional<z.ZodString>;
375
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
376
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
377
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
378
+ rule: z.ZodString;
379
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
380
+ rule: z.ZodString;
381
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
382
+ rule: z.ZodString;
383
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
384
+ }, z.ZodTypeAny, "passthrough"> | undefined;
385
+ }>;
386
+ execute: (input: any) => Promise<{
387
+ filename: string;
388
+ graph: import("./graph").CircuitryGraph;
389
+ mode: "replace";
390
+ }>;
391
+ } | {
392
+ name: string;
393
+ description: string;
394
+ parameters: z.ZodObject<{
395
+ source: z.ZodOptional<z.ZodEnum<["current", "text"]>>;
396
+ text: z.ZodOptional<z.ZodString>;
397
+ filename: z.ZodOptional<z.ZodString>;
398
+ selectedNodeId: z.ZodOptional<z.ZodString>;
399
+ standard: z.ZodOptional<z.ZodObject<{
400
+ version: z.ZodOptional<z.ZodString>;
401
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
402
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
403
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
404
+ rule: z.ZodString;
405
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
406
+ rule: z.ZodString;
407
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
408
+ rule: z.ZodString;
409
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
410
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
411
+ version: z.ZodOptional<z.ZodString>;
412
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
413
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
414
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
415
+ rule: z.ZodString;
416
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
417
+ rule: z.ZodString;
418
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
419
+ rule: z.ZodString;
420
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
421
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
422
+ version: z.ZodOptional<z.ZodString>;
423
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
424
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
425
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
426
+ rule: z.ZodString;
427
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
428
+ rule: z.ZodString;
429
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
430
+ rule: z.ZodString;
431
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
432
+ }, z.ZodTypeAny, "passthrough">>>;
433
+ hostModel: z.ZodOptional<z.ZodString>;
434
+ }, "strip", z.ZodTypeAny, {
435
+ text?: string | undefined;
436
+ selectedNodeId?: string | undefined;
437
+ filename?: string | undefined;
438
+ standard?: z.objectOutputType<{
439
+ version: z.ZodOptional<z.ZodString>;
440
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
441
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
442
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
443
+ rule: z.ZodString;
444
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
445
+ rule: z.ZodString;
446
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
447
+ rule: z.ZodString;
448
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
449
+ }, z.ZodTypeAny, "passthrough"> | undefined;
450
+ source?: "text" | "current" | undefined;
451
+ hostModel?: string | undefined;
452
+ }, {
453
+ text?: string | undefined;
454
+ selectedNodeId?: string | undefined;
455
+ filename?: string | undefined;
456
+ standard?: z.objectInputType<{
457
+ version: z.ZodOptional<z.ZodString>;
458
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
459
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
460
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
461
+ rule: z.ZodString;
462
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
463
+ rule: z.ZodString;
464
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
465
+ rule: z.ZodString;
466
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
467
+ }, z.ZodTypeAny, "passthrough"> | undefined;
468
+ source?: "text" | "current" | undefined;
469
+ hostModel?: string | undefined;
470
+ }>;
471
+ execute: (input: any) => Promise<{
472
+ completedAt: string;
473
+ runItems: import("./simulation").SimulationRunItem[];
474
+ }>;
475
+ } | {
476
+ name: string;
477
+ description: string;
478
+ parameters: z.ZodObject<{
479
+ text: z.ZodString;
480
+ filename: z.ZodOptional<z.ZodString>;
481
+ standard: z.ZodOptional<z.ZodObject<{
482
+ version: z.ZodOptional<z.ZodString>;
483
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
484
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
485
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
486
+ rule: z.ZodString;
487
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
488
+ rule: z.ZodString;
489
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
490
+ rule: z.ZodString;
491
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
492
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
493
+ version: z.ZodOptional<z.ZodString>;
494
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
495
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
496
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
497
+ rule: z.ZodString;
498
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
499
+ rule: z.ZodString;
500
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
501
+ rule: z.ZodString;
502
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
503
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
504
+ version: z.ZodOptional<z.ZodString>;
505
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
506
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
507
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
508
+ rule: z.ZodString;
509
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
510
+ rule: z.ZodString;
511
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
512
+ rule: z.ZodString;
513
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
514
+ }, z.ZodTypeAny, "passthrough">>>;
515
+ }, "strip", z.ZodTypeAny, {
516
+ text: string;
517
+ filename?: string | undefined;
518
+ standard?: z.objectOutputType<{
519
+ version: z.ZodOptional<z.ZodString>;
520
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
521
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
522
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
523
+ rule: z.ZodString;
524
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
525
+ rule: z.ZodString;
526
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
527
+ rule: z.ZodString;
528
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
529
+ }, z.ZodTypeAny, "passthrough"> | undefined;
530
+ }, {
531
+ text: string;
532
+ filename?: string | undefined;
533
+ standard?: z.objectInputType<{
534
+ version: z.ZodOptional<z.ZodString>;
535
+ requireSpecVersion: z.ZodOptional<z.ZodBoolean>;
536
+ executableKinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
537
+ rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
538
+ rule: z.ZodString;
539
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
540
+ rule: z.ZodString;
541
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
542
+ rule: z.ZodString;
543
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
544
+ }, z.ZodTypeAny, "passthrough"> | undefined;
545
+ }>;
546
+ execute: (input: any) => Promise<import("./graph").CircuitryValidationResult>;
547
+ })[];
@@ -0,0 +1,42 @@
1
+ export declare const CIRCUITRY_NODE_CUSTOM_TYPE: "circuitry-node-person";
2
+ export declare const CIRCUITRY_NODE_KIND: "circuitry-node";
3
+ export type NodeRuntimeStatus = "idle" | "queued" | "running" | "done" | "error";
4
+ export type CircuitryNodeData = {
5
+ kind: typeof CIRCUITRY_NODE_KIND;
6
+ identity: string;
7
+ label: string;
8
+ model: string;
9
+ tools: string[];
10
+ thinkingLevel: "off" | "minimal" | "low" | "medium" | "high" | "xhigh";
11
+ personality: string;
12
+ instructions: string;
13
+ context: string;
14
+ output: string;
15
+ status: NodeRuntimeStatus;
16
+ lastError: string | null;
17
+ lastRunAt: string | null;
18
+ };
19
+ export type CircuitryNodeCustomData = {
20
+ circuitry?: CircuitryNodeData;
21
+ [key: string]: unknown;
22
+ };
23
+ export type HasCircuitryNodeData = {
24
+ customData?: CircuitryNodeCustomData;
25
+ };
26
+ export declare const createDefaultNodeData: (label?: string) => CircuitryNodeData;
27
+ export declare const hasCircuitryNodeData: (element: HasCircuitryNodeData) => element is HasCircuitryNodeData & {
28
+ customData: {
29
+ circuitry: CircuitryNodeData;
30
+ };
31
+ };
32
+ type SceneElement = {
33
+ id: string;
34
+ type: string;
35
+ customData?: CircuitryNodeCustomData;
36
+ };
37
+ export declare const isNodeElement: (element: SceneElement) => element is SceneElement & {
38
+ customData: {
39
+ circuitry: CircuitryNodeData;
40
+ };
41
+ };
42
+ export {};
package/dist/yaml.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import { type CircuitryGraph, type CircuitryValidationStandard } from "./graph";
2
+ export declare const parseCircuitryYaml: (text: string, standard?: CircuitryValidationStandard, options?: {
3
+ validate?: boolean;
4
+ }) => CircuitryGraph;
5
+ export declare const stringifyCircuitryYaml: (graph: CircuitryGraph) => string;
6
+ export declare const parseCircuitryText: (text: string, filename?: string, standard?: CircuitryValidationStandard, options?: {
7
+ validate?: boolean;
8
+ }) => CircuitryGraph;
9
+ export declare const stringifyCircuitryText: (graph: CircuitryGraph, filename?: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darkhorseprojects/circuitry",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",