@inf-monkeys-tech/monkeys-cli 0.12.14 → 0.12.16

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 (38) hide show
  1. package/dist/command/metadata.d.ts.map +1 -1
  2. package/dist/command/metadata.js +10 -1
  3. package/dist/command/metadata.js.map +1 -1
  4. package/dist/commands/data/field/workflow/configure.d.ts +21 -0
  5. package/dist/commands/data/field/workflow/configure.d.ts.map +1 -0
  6. package/dist/commands/data/field/workflow/configure.js +27 -0
  7. package/dist/commands/data/field/workflow/configure.js.map +1 -0
  8. package/dist/commands/data/field/workflow/get.d.ts +16 -0
  9. package/dist/commands/data/field/workflow/get.d.ts.map +1 -0
  10. package/dist/commands/data/field/workflow/get.js +15 -0
  11. package/dist/commands/data/field/workflow/get.js.map +1 -0
  12. package/dist/commands/data/field/workflow/input-contract.d.ts +19 -0
  13. package/dist/commands/data/field/workflow/input-contract.d.ts.map +1 -0
  14. package/dist/commands/data/field/workflow/input-contract.js +20 -0
  15. package/dist/commands/data/field/workflow/input-contract.js.map +1 -0
  16. package/dist/commands/data/field/workflow/recompute.d.ts +19 -0
  17. package/dist/commands/data/field/workflow/recompute.d.ts.map +1 -0
  18. package/dist/commands/data/field/workflow/recompute.js +20 -0
  19. package/dist/commands/data/field/workflow/recompute.js.map +1 -0
  20. package/dist/data/workflow-column-flags.d.ts +18 -0
  21. package/dist/data/workflow-column-flags.d.ts.map +1 -0
  22. package/dist/data/workflow-column-flags.js +20 -0
  23. package/dist/data/workflow-column-flags.js.map +1 -0
  24. package/dist/data/workflow-columns.d.ts +509 -0
  25. package/dist/data/workflow-columns.d.ts.map +1 -0
  26. package/dist/data/workflow-columns.js +218 -0
  27. package/dist/data/workflow-columns.js.map +1 -0
  28. package/dist/openapi/schema.d.ts +2 -0
  29. package/dist/openapi/schema.d.ts.map +1 -0
  30. package/dist/openapi/schema.js +27 -0
  31. package/dist/openapi/schema.js.map +1 -0
  32. package/dist/transport/http-client.js +1 -1
  33. package/dist/transport/http-client.js.map +1 -1
  34. package/dist/workflow/mutation.d.ts.map +1 -1
  35. package/dist/workflow/mutation.js +1 -25
  36. package/dist/workflow/mutation.js.map +1 -1
  37. package/oclif.manifest.json +427 -1
  38. package/package.json +3 -2
@@ -0,0 +1,509 @@
1
+ import { type WorkflowColumnBinding } from '@inf-monkeys-tech/monkeys';
2
+ import { type SemanticRuntime } from '../semantic/runtime.js';
3
+ export declare const WORKFLOW_COLUMN_OPERATIONS: {
4
+ get: {
5
+ id: string;
6
+ method: "GET" | "POST" | "PUT";
7
+ path: string;
8
+ command: string[];
9
+ risk: "bounded-write" | "read";
10
+ apiBindings: {
11
+ apiOperationId: string;
12
+ adapter: string;
13
+ }[];
14
+ };
15
+ configure: {
16
+ id: string;
17
+ method: "GET" | "POST" | "PUT";
18
+ path: string;
19
+ command: string[];
20
+ risk: "bounded-write" | "read";
21
+ apiBindings: {
22
+ apiOperationId: string;
23
+ adapter: string;
24
+ }[];
25
+ };
26
+ recompute: {
27
+ id: string;
28
+ method: "GET" | "POST" | "PUT";
29
+ path: string;
30
+ command: string[];
31
+ risk: "bounded-write" | "read";
32
+ apiBindings: {
33
+ apiOperationId: string;
34
+ adapter: string;
35
+ }[];
36
+ };
37
+ inputContract: {
38
+ id: string;
39
+ method: "GET" | "POST" | "PUT";
40
+ path: string;
41
+ command: string[];
42
+ risk: "bounded-write" | "read";
43
+ apiBindings: {
44
+ apiOperationId: string;
45
+ adapter: string;
46
+ }[];
47
+ };
48
+ };
49
+ type Operation = keyof typeof WORKFLOW_COLUMN_OPERATIONS;
50
+ export declare function workflowColumnBinding(value: unknown): WorkflowColumnBinding;
51
+ export declare class WorkflowColumnClient {
52
+ readonly runtime: SemanticRuntime;
53
+ readonly columnId: string;
54
+ readonly executionTeamId: string;
55
+ readonly resourceTeamId: string;
56
+ constructor(runtime: SemanticRuntime, columnId: string, resourceTeam?: string);
57
+ validate(key: Operation, body?: unknown): import("../api-operation/types.js").ResolvedApiOperation;
58
+ private call;
59
+ private parseStatus;
60
+ get(): Promise<{
61
+ id: string;
62
+ teamId: string;
63
+ ontologyId: string;
64
+ columnId: string;
65
+ state: "active" | "disabled" | "invalid" | "paused" | "preparing";
66
+ definitionVersion: string;
67
+ initializing: boolean;
68
+ lastError: string | null;
69
+ counts: Record<string, number>;
70
+ failures: {
71
+ assetId: string;
72
+ error: string | null;
73
+ updatedTimestamp: number;
74
+ }[];
75
+ binding: {
76
+ contract: "WorkflowColumnBinding";
77
+ version: 1;
78
+ enabled: boolean;
79
+ paused: boolean;
80
+ workflow: {
81
+ id: string;
82
+ version: number;
83
+ inputSchemaHash: string;
84
+ };
85
+ inputs: Record<string, {
86
+ kind: "default";
87
+ } | {
88
+ kind: "constant";
89
+ value: import("@inf-monkeys-tech/monkeys").JsonValue;
90
+ } | {
91
+ kind: "field";
92
+ field: {
93
+ ontologyId: string;
94
+ fieldKey: string;
95
+ };
96
+ } | {
97
+ kind: "context";
98
+ field: "assetId" | "columnId" | "ontologyId" | "teamId";
99
+ }>;
100
+ dependencies: ({
101
+ kind: "field";
102
+ field: {
103
+ ontologyId: string;
104
+ fieldKey: string;
105
+ };
106
+ } | {
107
+ kind: "relation";
108
+ relation: {
109
+ ontologyId: string;
110
+ fieldKey: string;
111
+ };
112
+ direction: "incoming" | "outgoing";
113
+ fields: {
114
+ ontologyId: string;
115
+ fieldKey: string;
116
+ }[];
117
+ })[];
118
+ output: {
119
+ type: "json" | "number" | "text";
120
+ path: string[];
121
+ nullable: boolean;
122
+ };
123
+ policy: {
124
+ debounceMs: number;
125
+ maxDelayMs: number;
126
+ concurrency: number;
127
+ requireSearchProjection?: boolean | undefined;
128
+ };
129
+ expiry?: {
130
+ path: string[];
131
+ } | undefined;
132
+ };
133
+ }>;
134
+ inputContract(ontologyId: string, workflowId: string, workflowVersion: number): Promise<{
135
+ workflowId: string;
136
+ workflowVersion: number;
137
+ schemaHash: string;
138
+ variables: Record<string, unknown>[];
139
+ }>;
140
+ mutate(input: {
141
+ action: 'configure' | 'recompute';
142
+ ontologyId?: string;
143
+ binding?: unknown;
144
+ dryRun: boolean;
145
+ yes: boolean;
146
+ snapshot?: string;
147
+ }): Promise<{
148
+ action: "configure" | "recompute";
149
+ executionTeamId: string;
150
+ resourceTeamId: string;
151
+ columnId: string;
152
+ ontologyId: string;
153
+ binding: {
154
+ contract: "WorkflowColumnBinding";
155
+ version: 1;
156
+ enabled: boolean;
157
+ paused: boolean;
158
+ workflow: {
159
+ id: string;
160
+ version: number;
161
+ inputSchemaHash: string;
162
+ };
163
+ inputs: Record<string, {
164
+ kind: "default";
165
+ } | {
166
+ kind: "constant";
167
+ value: import("@inf-monkeys-tech/monkeys").JsonValue;
168
+ } | {
169
+ kind: "field";
170
+ field: {
171
+ ontologyId: string;
172
+ fieldKey: string;
173
+ };
174
+ } | {
175
+ kind: "context";
176
+ field: "assetId" | "columnId" | "ontologyId" | "teamId";
177
+ }>;
178
+ dependencies: ({
179
+ kind: "field";
180
+ field: {
181
+ ontologyId: string;
182
+ fieldKey: string;
183
+ };
184
+ } | {
185
+ kind: "relation";
186
+ relation: {
187
+ ontologyId: string;
188
+ fieldKey: string;
189
+ };
190
+ direction: "incoming" | "outgoing";
191
+ fields: {
192
+ ontologyId: string;
193
+ fieldKey: string;
194
+ }[];
195
+ })[];
196
+ output: {
197
+ type: "json" | "number" | "text";
198
+ path: string[];
199
+ nullable: boolean;
200
+ };
201
+ policy: {
202
+ debounceMs: number;
203
+ maxDelayMs: number;
204
+ concurrency: number;
205
+ requireSearchProjection?: boolean | undefined;
206
+ };
207
+ expiry?: {
208
+ path: string[];
209
+ } | undefined;
210
+ };
211
+ before: {
212
+ id: string;
213
+ teamId: string;
214
+ ontologyId: string;
215
+ columnId: string;
216
+ state: "active" | "disabled" | "invalid" | "paused" | "preparing";
217
+ definitionVersion: string;
218
+ initializing: boolean;
219
+ lastError: string | null;
220
+ counts: Record<string, number>;
221
+ failures: {
222
+ assetId: string;
223
+ error: string | null;
224
+ updatedTimestamp: number;
225
+ }[];
226
+ binding: {
227
+ contract: "WorkflowColumnBinding";
228
+ version: 1;
229
+ enabled: boolean;
230
+ paused: boolean;
231
+ workflow: {
232
+ id: string;
233
+ version: number;
234
+ inputSchemaHash: string;
235
+ };
236
+ inputs: Record<string, {
237
+ kind: "default";
238
+ } | {
239
+ kind: "constant";
240
+ value: import("@inf-monkeys-tech/monkeys").JsonValue;
241
+ } | {
242
+ kind: "field";
243
+ field: {
244
+ ontologyId: string;
245
+ fieldKey: string;
246
+ };
247
+ } | {
248
+ kind: "context";
249
+ field: "assetId" | "columnId" | "ontologyId" | "teamId";
250
+ }>;
251
+ dependencies: ({
252
+ kind: "field";
253
+ field: {
254
+ ontologyId: string;
255
+ fieldKey: string;
256
+ };
257
+ } | {
258
+ kind: "relation";
259
+ relation: {
260
+ ontologyId: string;
261
+ fieldKey: string;
262
+ };
263
+ direction: "incoming" | "outgoing";
264
+ fields: {
265
+ ontologyId: string;
266
+ fieldKey: string;
267
+ }[];
268
+ })[];
269
+ output: {
270
+ type: "json" | "number" | "text";
271
+ path: string[];
272
+ nullable: boolean;
273
+ };
274
+ policy: {
275
+ debounceMs: number;
276
+ maxDelayMs: number;
277
+ concurrency: number;
278
+ requireSearchProjection?: boolean | undefined;
279
+ };
280
+ expiry?: {
281
+ path: string[];
282
+ } | undefined;
283
+ };
284
+ } | null;
285
+ dryRun: boolean;
286
+ writeRequestSent: boolean;
287
+ } | {
288
+ action: "configure" | "recompute";
289
+ executionTeamId: string;
290
+ resourceTeamId: string;
291
+ columnId: string;
292
+ ontologyId: string;
293
+ binding: {
294
+ contract: "WorkflowColumnBinding";
295
+ version: 1;
296
+ enabled: boolean;
297
+ paused: boolean;
298
+ workflow: {
299
+ id: string;
300
+ version: number;
301
+ inputSchemaHash: string;
302
+ };
303
+ inputs: Record<string, {
304
+ kind: "default";
305
+ } | {
306
+ kind: "constant";
307
+ value: import("@inf-monkeys-tech/monkeys").JsonValue;
308
+ } | {
309
+ kind: "field";
310
+ field: {
311
+ ontologyId: string;
312
+ fieldKey: string;
313
+ };
314
+ } | {
315
+ kind: "context";
316
+ field: "assetId" | "columnId" | "ontologyId" | "teamId";
317
+ }>;
318
+ dependencies: ({
319
+ kind: "field";
320
+ field: {
321
+ ontologyId: string;
322
+ fieldKey: string;
323
+ };
324
+ } | {
325
+ kind: "relation";
326
+ relation: {
327
+ ontologyId: string;
328
+ fieldKey: string;
329
+ };
330
+ direction: "incoming" | "outgoing";
331
+ fields: {
332
+ ontologyId: string;
333
+ fieldKey: string;
334
+ }[];
335
+ })[];
336
+ output: {
337
+ type: "json" | "number" | "text";
338
+ path: string[];
339
+ nullable: boolean;
340
+ };
341
+ policy: {
342
+ debounceMs: number;
343
+ maxDelayMs: number;
344
+ concurrency: number;
345
+ requireSearchProjection?: boolean | undefined;
346
+ };
347
+ expiry?: {
348
+ path: string[];
349
+ } | undefined;
350
+ };
351
+ before: {
352
+ id: string;
353
+ teamId: string;
354
+ ontologyId: string;
355
+ columnId: string;
356
+ state: "active" | "disabled" | "invalid" | "paused" | "preparing";
357
+ definitionVersion: string;
358
+ initializing: boolean;
359
+ lastError: string | null;
360
+ counts: Record<string, number>;
361
+ failures: {
362
+ assetId: string;
363
+ error: string | null;
364
+ updatedTimestamp: number;
365
+ }[];
366
+ binding: {
367
+ contract: "WorkflowColumnBinding";
368
+ version: 1;
369
+ enabled: boolean;
370
+ paused: boolean;
371
+ workflow: {
372
+ id: string;
373
+ version: number;
374
+ inputSchemaHash: string;
375
+ };
376
+ inputs: Record<string, {
377
+ kind: "default";
378
+ } | {
379
+ kind: "constant";
380
+ value: import("@inf-monkeys-tech/monkeys").JsonValue;
381
+ } | {
382
+ kind: "field";
383
+ field: {
384
+ ontologyId: string;
385
+ fieldKey: string;
386
+ };
387
+ } | {
388
+ kind: "context";
389
+ field: "assetId" | "columnId" | "ontologyId" | "teamId";
390
+ }>;
391
+ dependencies: ({
392
+ kind: "field";
393
+ field: {
394
+ ontologyId: string;
395
+ fieldKey: string;
396
+ };
397
+ } | {
398
+ kind: "relation";
399
+ relation: {
400
+ ontologyId: string;
401
+ fieldKey: string;
402
+ };
403
+ direction: "incoming" | "outgoing";
404
+ fields: {
405
+ ontologyId: string;
406
+ fieldKey: string;
407
+ }[];
408
+ })[];
409
+ output: {
410
+ type: "json" | "number" | "text";
411
+ path: string[];
412
+ nullable: boolean;
413
+ };
414
+ policy: {
415
+ debounceMs: number;
416
+ maxDelayMs: number;
417
+ concurrency: number;
418
+ requireSearchProjection?: boolean | undefined;
419
+ };
420
+ expiry?: {
421
+ path: string[];
422
+ } | undefined;
423
+ };
424
+ } | null;
425
+ snapshotPath: string;
426
+ after: {
427
+ id: string;
428
+ teamId: string;
429
+ ontologyId: string;
430
+ columnId: string;
431
+ state: "active" | "disabled" | "invalid" | "paused" | "preparing";
432
+ definitionVersion: string;
433
+ initializing: boolean;
434
+ lastError: string | null;
435
+ counts: Record<string, number>;
436
+ failures: {
437
+ assetId: string;
438
+ error: string | null;
439
+ updatedTimestamp: number;
440
+ }[];
441
+ binding: {
442
+ contract: "WorkflowColumnBinding";
443
+ version: 1;
444
+ enabled: boolean;
445
+ paused: boolean;
446
+ workflow: {
447
+ id: string;
448
+ version: number;
449
+ inputSchemaHash: string;
450
+ };
451
+ inputs: Record<string, {
452
+ kind: "default";
453
+ } | {
454
+ kind: "constant";
455
+ value: import("@inf-monkeys-tech/monkeys").JsonValue;
456
+ } | {
457
+ kind: "field";
458
+ field: {
459
+ ontologyId: string;
460
+ fieldKey: string;
461
+ };
462
+ } | {
463
+ kind: "context";
464
+ field: "assetId" | "columnId" | "ontologyId" | "teamId";
465
+ }>;
466
+ dependencies: ({
467
+ kind: "field";
468
+ field: {
469
+ ontologyId: string;
470
+ fieldKey: string;
471
+ };
472
+ } | {
473
+ kind: "relation";
474
+ relation: {
475
+ ontologyId: string;
476
+ fieldKey: string;
477
+ };
478
+ direction: "incoming" | "outgoing";
479
+ fields: {
480
+ ontologyId: string;
481
+ fieldKey: string;
482
+ }[];
483
+ })[];
484
+ output: {
485
+ type: "json" | "number" | "text";
486
+ path: string[];
487
+ nullable: boolean;
488
+ };
489
+ policy: {
490
+ debounceMs: number;
491
+ maxDelayMs: number;
492
+ concurrency: number;
493
+ requireSearchProjection?: boolean | undefined;
494
+ };
495
+ expiry?: {
496
+ path: string[];
497
+ } | undefined;
498
+ };
499
+ };
500
+ dryRun: boolean;
501
+ writeRequestSent: boolean;
502
+ readBack: {
503
+ matches: boolean;
504
+ sha256: string;
505
+ };
506
+ }>;
507
+ }
508
+ export {};
509
+ //# sourceMappingURL=workflow-columns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-columns.d.ts","sourceRoot":"","sources":["../../src/data/workflow-columns.ts"],"names":[],"mappings":"AAIA,OAAO,EAA8B,KAAK,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAKnG,OAAO,EAA0D,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAgBtH,eAAO,MAAM,0BAA0B;IACrC,GAAG;;;;;;;;;;;IACH,SAAS;;;;;;;;;;;IACT,SAAS;;;;;;;;;;;IACT,aAAa;;;;;;;;;;;CACd,CAAC;AACF,KAAK,SAAS,GAAG,MAAM,OAAO,0BAA0B,CAAC;AAsCzD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,qBAAqB,CAU3E;AAED,qBAAa,oBAAoB;IAI7B,QAAQ,CAAC,OAAO,EAAE,eAAe;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM;IAJ3B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,YACW,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,MAAM,EACzB,YAAY,CAAC,EAAE,MAAM,EAStB;IACD,QAAQ,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,OAAO,4DAoCtC;YACa,IAAI;IAWlB,OAAO,CAAC,WAAW;IAab,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAER;IACK,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM;;;;;OAalF;IACK,MAAM,CAAC,KAAK,EAAE;QAClB,MAAM,EAAE,WAAW,GAAG,WAAW,CAAC;QAClC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,MAAM,EAAE,OAAO,CAAC;QAChB,GAAG,EAAE,OAAO,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA0DiB,OAAO;YAAQ,MAAM;;OAatC;CACF"}