@melra/protocol 0.3.0-alpha.4 → 0.3.0-alpha.6
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/README.md +42 -0
- package/dist/index.d.ts +1251 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +206 -6
- package/dist/index.js.map +1 -1
- package/dist/index.test.js +56 -1
- package/dist/index.test.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const PROTOCOL_VERSION = "2025-11-25";
|
|
3
|
-
export declare const PRODUCT_VERSION = "0.3.0-alpha.
|
|
3
|
+
export declare const PRODUCT_VERSION = "0.3.0-alpha.6";
|
|
4
4
|
export declare const FileOperationSchema: z.ZodObject<{
|
|
5
5
|
kind: z.ZodLiteral<"file">;
|
|
6
6
|
action: z.ZodEnum<{
|
|
@@ -30,12 +30,16 @@ export declare const TerminalOperationSchema: z.ZodObject<{
|
|
|
30
30
|
start: "start";
|
|
31
31
|
status: "status";
|
|
32
32
|
stop: "stop";
|
|
33
|
+
send: "send";
|
|
33
34
|
}>;
|
|
34
35
|
command: z.ZodOptional<z.ZodString>;
|
|
35
36
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
36
37
|
jobId: z.ZodOptional<z.ZodString>;
|
|
37
38
|
cwd: z.ZodOptional<z.ZodString>;
|
|
38
39
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
41
|
+
input: z.ZodOptional<z.ZodString>;
|
|
42
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
39
43
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
40
44
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
41
45
|
}, z.core.$strict>;
|
|
@@ -158,11 +162,13 @@ export declare const ComputerOperationSchema: z.ZodObject<{
|
|
|
158
162
|
action: z.ZodEnum<{
|
|
159
163
|
type: "type";
|
|
160
164
|
move: "move";
|
|
165
|
+
inspect: "inspect";
|
|
161
166
|
click: "click";
|
|
162
167
|
scroll: "scroll";
|
|
163
168
|
screenshot: "screenshot";
|
|
164
169
|
key: "key";
|
|
165
170
|
capabilities: "capabilities";
|
|
171
|
+
drag: "drag";
|
|
166
172
|
}>;
|
|
167
173
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
168
174
|
normalized: "normalized";
|
|
@@ -170,6 +176,8 @@ export declare const ComputerOperationSchema: z.ZodObject<{
|
|
|
170
176
|
}>>;
|
|
171
177
|
x: z.ZodOptional<z.ZodNumber>;
|
|
172
178
|
y: z.ZodOptional<z.ZodNumber>;
|
|
179
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
180
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
173
181
|
text: z.ZodOptional<z.ZodString>;
|
|
174
182
|
key: z.ZodOptional<z.ZodEnum<{
|
|
175
183
|
ENTER: "ENTER";
|
|
@@ -222,12 +230,16 @@ export declare const OperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
222
230
|
start: "start";
|
|
223
231
|
status: "status";
|
|
224
232
|
stop: "stop";
|
|
233
|
+
send: "send";
|
|
225
234
|
}>;
|
|
226
235
|
command: z.ZodOptional<z.ZodString>;
|
|
227
236
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
228
237
|
jobId: z.ZodOptional<z.ZodString>;
|
|
229
238
|
cwd: z.ZodOptional<z.ZodString>;
|
|
230
239
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
240
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
241
|
+
input: z.ZodOptional<z.ZodString>;
|
|
242
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
231
243
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
232
244
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
233
245
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -332,11 +344,13 @@ export declare const OperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
332
344
|
action: z.ZodEnum<{
|
|
333
345
|
type: "type";
|
|
334
346
|
move: "move";
|
|
347
|
+
inspect: "inspect";
|
|
335
348
|
click: "click";
|
|
336
349
|
scroll: "scroll";
|
|
337
350
|
screenshot: "screenshot";
|
|
338
351
|
key: "key";
|
|
339
352
|
capabilities: "capabilities";
|
|
353
|
+
drag: "drag";
|
|
340
354
|
}>;
|
|
341
355
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
342
356
|
normalized: "normalized";
|
|
@@ -344,6 +358,8 @@ export declare const OperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
344
358
|
}>>;
|
|
345
359
|
x: z.ZodOptional<z.ZodNumber>;
|
|
346
360
|
y: z.ZodOptional<z.ZodNumber>;
|
|
361
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
362
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
347
363
|
text: z.ZodOptional<z.ZodString>;
|
|
348
364
|
key: z.ZodOptional<z.ZodEnum<{
|
|
349
365
|
ENTER: "ENTER";
|
|
@@ -404,6 +420,70 @@ export declare const EvidencePredicateSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
404
420
|
text: z.ZodString;
|
|
405
421
|
}, z.core.$strict>], "type">;
|
|
406
422
|
export type EvidencePredicate = z.infer<typeof EvidencePredicateSchema>;
|
|
423
|
+
export declare const PrincipalKindSchema: z.ZodEnum<{
|
|
424
|
+
session: "session";
|
|
425
|
+
organization: "organization";
|
|
426
|
+
human: "human";
|
|
427
|
+
harness: "harness";
|
|
428
|
+
agent: "agent";
|
|
429
|
+
subagent: "subagent";
|
|
430
|
+
service: "service";
|
|
431
|
+
}>;
|
|
432
|
+
export declare const PrincipalSchema: z.ZodObject<{
|
|
433
|
+
kind: z.ZodEnum<{
|
|
434
|
+
session: "session";
|
|
435
|
+
organization: "organization";
|
|
436
|
+
human: "human";
|
|
437
|
+
harness: "harness";
|
|
438
|
+
agent: "agent";
|
|
439
|
+
subagent: "subagent";
|
|
440
|
+
service: "service";
|
|
441
|
+
}>;
|
|
442
|
+
id: z.ZodString;
|
|
443
|
+
}, z.core.$strict>;
|
|
444
|
+
/**
|
|
445
|
+
* Who is asking, and on whose behalf.
|
|
446
|
+
*
|
|
447
|
+
* `principal` is the immediate caller — the agent or session that dispatched
|
|
448
|
+
* this effect. `onBehalfOf` is the delegation chain behind it, outermost first
|
|
449
|
+
* (organization → human → harness → parent agent), so a receipt answers "who
|
|
450
|
+
* authorised this" rather than only "what ran". MELRA does not authenticate any
|
|
451
|
+
* of it; a link is a claim the layer above makes, and it is worth exactly as
|
|
452
|
+
* much as that layer's own boundary.
|
|
453
|
+
*/
|
|
454
|
+
export declare const IdentitySchema: z.ZodObject<{
|
|
455
|
+
principal: z.ZodObject<{
|
|
456
|
+
kind: z.ZodEnum<{
|
|
457
|
+
session: "session";
|
|
458
|
+
organization: "organization";
|
|
459
|
+
human: "human";
|
|
460
|
+
harness: "harness";
|
|
461
|
+
agent: "agent";
|
|
462
|
+
subagent: "subagent";
|
|
463
|
+
service: "service";
|
|
464
|
+
}>;
|
|
465
|
+
id: z.ZodString;
|
|
466
|
+
}, z.core.$strict>;
|
|
467
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
468
|
+
kind: z.ZodEnum<{
|
|
469
|
+
session: "session";
|
|
470
|
+
organization: "organization";
|
|
471
|
+
human: "human";
|
|
472
|
+
harness: "harness";
|
|
473
|
+
agent: "agent";
|
|
474
|
+
subagent: "subagent";
|
|
475
|
+
service: "service";
|
|
476
|
+
}>;
|
|
477
|
+
id: z.ZodString;
|
|
478
|
+
}, z.core.$strict>>>;
|
|
479
|
+
}, z.core.$strict>;
|
|
480
|
+
export type Principal = z.infer<typeof PrincipalSchema>;
|
|
481
|
+
export type Identity = z.infer<typeof IdentitySchema>;
|
|
482
|
+
/** The one principal assumed when a caller declares none. */
|
|
483
|
+
export declare const LOCAL_IDENTITY: Identity;
|
|
484
|
+
export declare function principalRef(principal: Principal): string;
|
|
485
|
+
/** The delegation chain as one line, outermost first. */
|
|
486
|
+
export declare function delegationChain(identity: Identity): string;
|
|
407
487
|
export declare const TaskBudgetSchema: z.ZodObject<{
|
|
408
488
|
maxSteps: z.ZodDefault<z.ZodNumber>;
|
|
409
489
|
maxDurationMs: z.ZodDefault<z.ZodNumber>;
|
|
@@ -439,12 +519,16 @@ export declare const TaskRequestSchema: z.ZodObject<{
|
|
|
439
519
|
start: "start";
|
|
440
520
|
status: "status";
|
|
441
521
|
stop: "stop";
|
|
522
|
+
send: "send";
|
|
442
523
|
}>;
|
|
443
524
|
command: z.ZodOptional<z.ZodString>;
|
|
444
525
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
445
526
|
jobId: z.ZodOptional<z.ZodString>;
|
|
446
527
|
cwd: z.ZodOptional<z.ZodString>;
|
|
447
528
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
529
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
530
|
+
input: z.ZodOptional<z.ZodString>;
|
|
531
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
448
532
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
449
533
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
450
534
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -549,11 +633,13 @@ export declare const TaskRequestSchema: z.ZodObject<{
|
|
|
549
633
|
action: z.ZodEnum<{
|
|
550
634
|
type: "type";
|
|
551
635
|
move: "move";
|
|
636
|
+
inspect: "inspect";
|
|
552
637
|
click: "click";
|
|
553
638
|
scroll: "scroll";
|
|
554
639
|
screenshot: "screenshot";
|
|
555
640
|
key: "key";
|
|
556
641
|
capabilities: "capabilities";
|
|
642
|
+
drag: "drag";
|
|
557
643
|
}>;
|
|
558
644
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
559
645
|
normalized: "normalized";
|
|
@@ -561,6 +647,8 @@ export declare const TaskRequestSchema: z.ZodObject<{
|
|
|
561
647
|
}>>;
|
|
562
648
|
x: z.ZodOptional<z.ZodNumber>;
|
|
563
649
|
y: z.ZodOptional<z.ZodNumber>;
|
|
650
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
651
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
564
652
|
text: z.ZodOptional<z.ZodString>;
|
|
565
653
|
key: z.ZodOptional<z.ZodEnum<{
|
|
566
654
|
ENTER: "ENTER";
|
|
@@ -623,6 +711,32 @@ export declare const TaskRequestSchema: z.ZodObject<{
|
|
|
623
711
|
type: z.ZodLiteral<"page_contains">;
|
|
624
712
|
text: z.ZodString;
|
|
625
713
|
}, z.core.$strict>], "type">>>;
|
|
714
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
715
|
+
principal: z.ZodObject<{
|
|
716
|
+
kind: z.ZodEnum<{
|
|
717
|
+
session: "session";
|
|
718
|
+
organization: "organization";
|
|
719
|
+
human: "human";
|
|
720
|
+
harness: "harness";
|
|
721
|
+
agent: "agent";
|
|
722
|
+
subagent: "subagent";
|
|
723
|
+
service: "service";
|
|
724
|
+
}>;
|
|
725
|
+
id: z.ZodString;
|
|
726
|
+
}, z.core.$strict>;
|
|
727
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
728
|
+
kind: z.ZodEnum<{
|
|
729
|
+
session: "session";
|
|
730
|
+
organization: "organization";
|
|
731
|
+
human: "human";
|
|
732
|
+
harness: "harness";
|
|
733
|
+
agent: "agent";
|
|
734
|
+
subagent: "subagent";
|
|
735
|
+
service: "service";
|
|
736
|
+
}>;
|
|
737
|
+
id: z.ZodString;
|
|
738
|
+
}, z.core.$strict>>>;
|
|
739
|
+
}, z.core.$strict>>;
|
|
626
740
|
}, z.core.$strict>;
|
|
627
741
|
export type TaskRequest = z.infer<typeof TaskRequestSchema>;
|
|
628
742
|
export type TaskRequestInput = z.input<typeof TaskRequestSchema>;
|
|
@@ -643,6 +757,16 @@ export declare const PolicyOutcomeSchema: z.ZodEnum<{
|
|
|
643
757
|
deny: "deny";
|
|
644
758
|
confirm: "confirm";
|
|
645
759
|
}>;
|
|
760
|
+
/**
|
|
761
|
+
* What an operation reaches for, as opposed to what it is named. `npm ls` and
|
|
762
|
+
* `npm install` are the same allowlisted command; only the second one installs
|
|
763
|
+
* a package and talks to a registry. Traits are what `policy.deniedTraits`
|
|
764
|
+
* matches on and what a caller sees before it echoes an approval phrase.
|
|
765
|
+
*/
|
|
766
|
+
export declare const CapabilityTraitSchema: z.ZodEnum<{
|
|
767
|
+
"package-install": "package-install";
|
|
768
|
+
network: "network";
|
|
769
|
+
}>;
|
|
646
770
|
export declare const PolicyDecisionSchema: z.ZodObject<{
|
|
647
771
|
outcome: z.ZodEnum<{
|
|
648
772
|
allow: "allow";
|
|
@@ -662,8 +786,13 @@ export declare const PolicyDecisionSchema: z.ZodObject<{
|
|
|
662
786
|
}>;
|
|
663
787
|
reason: z.ZodString;
|
|
664
788
|
policyVersion: z.ZodString;
|
|
789
|
+
traits: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
790
|
+
"package-install": "package-install";
|
|
791
|
+
network: "network";
|
|
792
|
+
}>>>;
|
|
665
793
|
}, z.core.$strict>;
|
|
666
794
|
export type PolicyDecision = z.infer<typeof PolicyDecisionSchema>;
|
|
795
|
+
export type CapabilityTrait = z.infer<typeof CapabilityTraitSchema>;
|
|
667
796
|
export type Effect = z.infer<typeof EffectSchema>;
|
|
668
797
|
export type Risk = z.infer<typeof RiskSchema>;
|
|
669
798
|
export declare const ApprovalChallengeSchema: z.ZodObject<{
|
|
@@ -679,6 +808,61 @@ export declare const ApprovalResponseSchema: z.ZodObject<{
|
|
|
679
808
|
phrase: z.ZodString;
|
|
680
809
|
}, z.core.$strict>;
|
|
681
810
|
export type ApprovalResponse = z.infer<typeof ApprovalResponseSchema>;
|
|
811
|
+
/**
|
|
812
|
+
* Bounded authority to take one kind of effect, issued to a principal by the
|
|
813
|
+
* operator rather than derived from a credential.
|
|
814
|
+
*
|
|
815
|
+
* `capability` and `target` are matched against what `classifyOperation`
|
|
816
|
+
* reports, with `*` standing for any run of characters, so `file.*` over
|
|
817
|
+
* `/repo/build/*` grants file work inside one directory and nothing else. An
|
|
818
|
+
* empty grant list means no capability narrowing is configured — the rest of
|
|
819
|
+
* policy still applies. A non-empty list is a closed world: an effect with no
|
|
820
|
+
* matching grant is denied before any allowlist is consulted.
|
|
821
|
+
*/
|
|
822
|
+
export declare const CapabilityGrantSchema: z.ZodObject<{
|
|
823
|
+
id: z.ZodString;
|
|
824
|
+
capability: z.ZodString;
|
|
825
|
+
effects: z.ZodArray<z.ZodEnum<{
|
|
826
|
+
read: "read";
|
|
827
|
+
mutate: "mutate";
|
|
828
|
+
destructive: "destructive";
|
|
829
|
+
}>>;
|
|
830
|
+
target: z.ZodDefault<z.ZodString>;
|
|
831
|
+
principal: z.ZodDefault<z.ZodString>;
|
|
832
|
+
validUntil: z.ZodOptional<z.ZodString>;
|
|
833
|
+
policyVersion: z.ZodOptional<z.ZodString>;
|
|
834
|
+
}, z.core.$strict>;
|
|
835
|
+
export type CapabilityGrant = z.infer<typeof CapabilityGrantSchema>;
|
|
836
|
+
/**
|
|
837
|
+
* One bounded effect, named as a single object.
|
|
838
|
+
*
|
|
839
|
+
* Every field here already governed execution; the contract is what they are
|
|
840
|
+
* called together. It is derived from a persisted task rather than supplied,
|
|
841
|
+
* so there is no second input path that could describe an effect differently
|
|
842
|
+
* from the one that will run.
|
|
843
|
+
*/
|
|
844
|
+
export interface EffectContract {
|
|
845
|
+
contractVersion: string;
|
|
846
|
+
taskId: string;
|
|
847
|
+
identity: Identity;
|
|
848
|
+
capability: string;
|
|
849
|
+
operation: Operation;
|
|
850
|
+
effect: Effect;
|
|
851
|
+
risk: Risk;
|
|
852
|
+
target: string;
|
|
853
|
+
traits: CapabilityTrait[];
|
|
854
|
+
/** Effects this request refuses for itself, honoured even in unhinged mode. */
|
|
855
|
+
forbiddenEffects: Effect[];
|
|
856
|
+
/** What must hold afterwards for the effect to count as a success. */
|
|
857
|
+
postconditions: EvidencePredicate[];
|
|
858
|
+
budget: TaskBudget;
|
|
859
|
+
idempotencyKey?: string;
|
|
860
|
+
policy: PolicyDecision;
|
|
861
|
+
authorization?: ApprovalChallenge;
|
|
862
|
+
metadata: {
|
|
863
|
+
goal: string;
|
|
864
|
+
};
|
|
865
|
+
}
|
|
682
866
|
export declare const WorkflowNodeIdSchema: z.ZodString;
|
|
683
867
|
export declare const OperationNodeSchema: z.ZodObject<{
|
|
684
868
|
id: z.ZodString;
|
|
@@ -714,12 +898,16 @@ export declare const OperationNodeSchema: z.ZodObject<{
|
|
|
714
898
|
start: "start";
|
|
715
899
|
status: "status";
|
|
716
900
|
stop: "stop";
|
|
901
|
+
send: "send";
|
|
717
902
|
}>;
|
|
718
903
|
command: z.ZodOptional<z.ZodString>;
|
|
719
904
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
720
905
|
jobId: z.ZodOptional<z.ZodString>;
|
|
721
906
|
cwd: z.ZodOptional<z.ZodString>;
|
|
722
907
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
908
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
909
|
+
input: z.ZodOptional<z.ZodString>;
|
|
910
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
723
911
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
724
912
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
725
913
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -824,11 +1012,13 @@ export declare const OperationNodeSchema: z.ZodObject<{
|
|
|
824
1012
|
action: z.ZodEnum<{
|
|
825
1013
|
type: "type";
|
|
826
1014
|
move: "move";
|
|
1015
|
+
inspect: "inspect";
|
|
827
1016
|
click: "click";
|
|
828
1017
|
scroll: "scroll";
|
|
829
1018
|
screenshot: "screenshot";
|
|
830
1019
|
key: "key";
|
|
831
1020
|
capabilities: "capabilities";
|
|
1021
|
+
drag: "drag";
|
|
832
1022
|
}>;
|
|
833
1023
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
834
1024
|
normalized: "normalized";
|
|
@@ -836,6 +1026,8 @@ export declare const OperationNodeSchema: z.ZodObject<{
|
|
|
836
1026
|
}>>;
|
|
837
1027
|
x: z.ZodOptional<z.ZodNumber>;
|
|
838
1028
|
y: z.ZodOptional<z.ZodNumber>;
|
|
1029
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
1030
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
839
1031
|
text: z.ZodOptional<z.ZodString>;
|
|
840
1032
|
key: z.ZodOptional<z.ZodEnum<{
|
|
841
1033
|
ENTER: "ENTER";
|
|
@@ -898,6 +1090,32 @@ export declare const OperationNodeSchema: z.ZodObject<{
|
|
|
898
1090
|
type: z.ZodLiteral<"page_contains">;
|
|
899
1091
|
text: z.ZodString;
|
|
900
1092
|
}, z.core.$strict>], "type">>>;
|
|
1093
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1094
|
+
principal: z.ZodObject<{
|
|
1095
|
+
kind: z.ZodEnum<{
|
|
1096
|
+
session: "session";
|
|
1097
|
+
organization: "organization";
|
|
1098
|
+
human: "human";
|
|
1099
|
+
harness: "harness";
|
|
1100
|
+
agent: "agent";
|
|
1101
|
+
subagent: "subagent";
|
|
1102
|
+
service: "service";
|
|
1103
|
+
}>;
|
|
1104
|
+
id: z.ZodString;
|
|
1105
|
+
}, z.core.$strict>;
|
|
1106
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1107
|
+
kind: z.ZodEnum<{
|
|
1108
|
+
session: "session";
|
|
1109
|
+
organization: "organization";
|
|
1110
|
+
human: "human";
|
|
1111
|
+
harness: "harness";
|
|
1112
|
+
agent: "agent";
|
|
1113
|
+
subagent: "subagent";
|
|
1114
|
+
service: "service";
|
|
1115
|
+
}>;
|
|
1116
|
+
id: z.ZodString;
|
|
1117
|
+
}, z.core.$strict>>>;
|
|
1118
|
+
}, z.core.$strict>>;
|
|
901
1119
|
}, z.core.$strict>;
|
|
902
1120
|
}, z.core.$strict>;
|
|
903
1121
|
export declare const ApprovalNodeSchema: z.ZodObject<{
|
|
@@ -969,12 +1187,16 @@ export declare const ConditionNodeSchema: z.ZodObject<{
|
|
|
969
1187
|
start: "start";
|
|
970
1188
|
status: "status";
|
|
971
1189
|
stop: "stop";
|
|
1190
|
+
send: "send";
|
|
972
1191
|
}>;
|
|
973
1192
|
command: z.ZodOptional<z.ZodString>;
|
|
974
1193
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
975
1194
|
jobId: z.ZodOptional<z.ZodString>;
|
|
976
1195
|
cwd: z.ZodOptional<z.ZodString>;
|
|
977
1196
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1197
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
1198
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1199
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
978
1200
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
979
1201
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
980
1202
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1079,11 +1301,13 @@ export declare const ConditionNodeSchema: z.ZodObject<{
|
|
|
1079
1301
|
action: z.ZodEnum<{
|
|
1080
1302
|
type: "type";
|
|
1081
1303
|
move: "move";
|
|
1304
|
+
inspect: "inspect";
|
|
1082
1305
|
click: "click";
|
|
1083
1306
|
scroll: "scroll";
|
|
1084
1307
|
screenshot: "screenshot";
|
|
1085
1308
|
key: "key";
|
|
1086
1309
|
capabilities: "capabilities";
|
|
1310
|
+
drag: "drag";
|
|
1087
1311
|
}>;
|
|
1088
1312
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
1089
1313
|
normalized: "normalized";
|
|
@@ -1091,6 +1315,8 @@ export declare const ConditionNodeSchema: z.ZodObject<{
|
|
|
1091
1315
|
}>>;
|
|
1092
1316
|
x: z.ZodOptional<z.ZodNumber>;
|
|
1093
1317
|
y: z.ZodOptional<z.ZodNumber>;
|
|
1318
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
1319
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
1094
1320
|
text: z.ZodOptional<z.ZodString>;
|
|
1095
1321
|
key: z.ZodOptional<z.ZodEnum<{
|
|
1096
1322
|
ENTER: "ENTER";
|
|
@@ -1153,6 +1379,32 @@ export declare const ConditionNodeSchema: z.ZodObject<{
|
|
|
1153
1379
|
type: z.ZodLiteral<"page_contains">;
|
|
1154
1380
|
text: z.ZodString;
|
|
1155
1381
|
}, z.core.$strict>], "type">>>;
|
|
1382
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1383
|
+
principal: z.ZodObject<{
|
|
1384
|
+
kind: z.ZodEnum<{
|
|
1385
|
+
session: "session";
|
|
1386
|
+
organization: "organization";
|
|
1387
|
+
human: "human";
|
|
1388
|
+
harness: "harness";
|
|
1389
|
+
agent: "agent";
|
|
1390
|
+
subagent: "subagent";
|
|
1391
|
+
service: "service";
|
|
1392
|
+
}>;
|
|
1393
|
+
id: z.ZodString;
|
|
1394
|
+
}, z.core.$strict>;
|
|
1395
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1396
|
+
kind: z.ZodEnum<{
|
|
1397
|
+
session: "session";
|
|
1398
|
+
organization: "organization";
|
|
1399
|
+
human: "human";
|
|
1400
|
+
harness: "harness";
|
|
1401
|
+
agent: "agent";
|
|
1402
|
+
subagent: "subagent";
|
|
1403
|
+
service: "service";
|
|
1404
|
+
}>;
|
|
1405
|
+
id: z.ZodString;
|
|
1406
|
+
}, z.core.$strict>>>;
|
|
1407
|
+
}, z.core.$strict>>;
|
|
1156
1408
|
}, z.core.$strict>>>;
|
|
1157
1409
|
whenFalse: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1158
1410
|
goal: z.ZodString;
|
|
@@ -1184,12 +1436,16 @@ export declare const ConditionNodeSchema: z.ZodObject<{
|
|
|
1184
1436
|
start: "start";
|
|
1185
1437
|
status: "status";
|
|
1186
1438
|
stop: "stop";
|
|
1439
|
+
send: "send";
|
|
1187
1440
|
}>;
|
|
1188
1441
|
command: z.ZodOptional<z.ZodString>;
|
|
1189
1442
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1190
1443
|
jobId: z.ZodOptional<z.ZodString>;
|
|
1191
1444
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1192
1445
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1446
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
1447
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1448
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
1193
1449
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1194
1450
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
1195
1451
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1294,11 +1550,13 @@ export declare const ConditionNodeSchema: z.ZodObject<{
|
|
|
1294
1550
|
action: z.ZodEnum<{
|
|
1295
1551
|
type: "type";
|
|
1296
1552
|
move: "move";
|
|
1553
|
+
inspect: "inspect";
|
|
1297
1554
|
click: "click";
|
|
1298
1555
|
scroll: "scroll";
|
|
1299
1556
|
screenshot: "screenshot";
|
|
1300
1557
|
key: "key";
|
|
1301
1558
|
capabilities: "capabilities";
|
|
1559
|
+
drag: "drag";
|
|
1302
1560
|
}>;
|
|
1303
1561
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
1304
1562
|
normalized: "normalized";
|
|
@@ -1306,6 +1564,8 @@ export declare const ConditionNodeSchema: z.ZodObject<{
|
|
|
1306
1564
|
}>>;
|
|
1307
1565
|
x: z.ZodOptional<z.ZodNumber>;
|
|
1308
1566
|
y: z.ZodOptional<z.ZodNumber>;
|
|
1567
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
1568
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
1309
1569
|
text: z.ZodOptional<z.ZodString>;
|
|
1310
1570
|
key: z.ZodOptional<z.ZodEnum<{
|
|
1311
1571
|
ENTER: "ENTER";
|
|
@@ -1368,6 +1628,32 @@ export declare const ConditionNodeSchema: z.ZodObject<{
|
|
|
1368
1628
|
type: z.ZodLiteral<"page_contains">;
|
|
1369
1629
|
text: z.ZodString;
|
|
1370
1630
|
}, z.core.$strict>], "type">>>;
|
|
1631
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1632
|
+
principal: z.ZodObject<{
|
|
1633
|
+
kind: z.ZodEnum<{
|
|
1634
|
+
session: "session";
|
|
1635
|
+
organization: "organization";
|
|
1636
|
+
human: "human";
|
|
1637
|
+
harness: "harness";
|
|
1638
|
+
agent: "agent";
|
|
1639
|
+
subagent: "subagent";
|
|
1640
|
+
service: "service";
|
|
1641
|
+
}>;
|
|
1642
|
+
id: z.ZodString;
|
|
1643
|
+
}, z.core.$strict>;
|
|
1644
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1645
|
+
kind: z.ZodEnum<{
|
|
1646
|
+
session: "session";
|
|
1647
|
+
organization: "organization";
|
|
1648
|
+
human: "human";
|
|
1649
|
+
harness: "harness";
|
|
1650
|
+
agent: "agent";
|
|
1651
|
+
subagent: "subagent";
|
|
1652
|
+
service: "service";
|
|
1653
|
+
}>;
|
|
1654
|
+
id: z.ZodString;
|
|
1655
|
+
}, z.core.$strict>>>;
|
|
1656
|
+
}, z.core.$strict>>;
|
|
1371
1657
|
}, z.core.$strict>>>;
|
|
1372
1658
|
}, z.core.$strict>;
|
|
1373
1659
|
export declare const ParallelNodeSchema: z.ZodObject<{
|
|
@@ -1404,12 +1690,16 @@ export declare const ParallelNodeSchema: z.ZodObject<{
|
|
|
1404
1690
|
start: "start";
|
|
1405
1691
|
status: "status";
|
|
1406
1692
|
stop: "stop";
|
|
1693
|
+
send: "send";
|
|
1407
1694
|
}>;
|
|
1408
1695
|
command: z.ZodOptional<z.ZodString>;
|
|
1409
1696
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1410
1697
|
jobId: z.ZodOptional<z.ZodString>;
|
|
1411
1698
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1412
1699
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1700
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
1701
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1702
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
1413
1703
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1414
1704
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
1415
1705
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1514,11 +1804,13 @@ export declare const ParallelNodeSchema: z.ZodObject<{
|
|
|
1514
1804
|
action: z.ZodEnum<{
|
|
1515
1805
|
type: "type";
|
|
1516
1806
|
move: "move";
|
|
1807
|
+
inspect: "inspect";
|
|
1517
1808
|
click: "click";
|
|
1518
1809
|
scroll: "scroll";
|
|
1519
1810
|
screenshot: "screenshot";
|
|
1520
1811
|
key: "key";
|
|
1521
1812
|
capabilities: "capabilities";
|
|
1813
|
+
drag: "drag";
|
|
1522
1814
|
}>;
|
|
1523
1815
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
1524
1816
|
normalized: "normalized";
|
|
@@ -1526,6 +1818,8 @@ export declare const ParallelNodeSchema: z.ZodObject<{
|
|
|
1526
1818
|
}>>;
|
|
1527
1819
|
x: z.ZodOptional<z.ZodNumber>;
|
|
1528
1820
|
y: z.ZodOptional<z.ZodNumber>;
|
|
1821
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
1822
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
1529
1823
|
text: z.ZodOptional<z.ZodString>;
|
|
1530
1824
|
key: z.ZodOptional<z.ZodEnum<{
|
|
1531
1825
|
ENTER: "ENTER";
|
|
@@ -1588,6 +1882,32 @@ export declare const ParallelNodeSchema: z.ZodObject<{
|
|
|
1588
1882
|
type: z.ZodLiteral<"page_contains">;
|
|
1589
1883
|
text: z.ZodString;
|
|
1590
1884
|
}, z.core.$strict>], "type">>>;
|
|
1885
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1886
|
+
principal: z.ZodObject<{
|
|
1887
|
+
kind: z.ZodEnum<{
|
|
1888
|
+
session: "session";
|
|
1889
|
+
organization: "organization";
|
|
1890
|
+
human: "human";
|
|
1891
|
+
harness: "harness";
|
|
1892
|
+
agent: "agent";
|
|
1893
|
+
subagent: "subagent";
|
|
1894
|
+
service: "service";
|
|
1895
|
+
}>;
|
|
1896
|
+
id: z.ZodString;
|
|
1897
|
+
}, z.core.$strict>;
|
|
1898
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1899
|
+
kind: z.ZodEnum<{
|
|
1900
|
+
session: "session";
|
|
1901
|
+
organization: "organization";
|
|
1902
|
+
human: "human";
|
|
1903
|
+
harness: "harness";
|
|
1904
|
+
agent: "agent";
|
|
1905
|
+
subagent: "subagent";
|
|
1906
|
+
service: "service";
|
|
1907
|
+
}>;
|
|
1908
|
+
id: z.ZodString;
|
|
1909
|
+
}, z.core.$strict>>>;
|
|
1910
|
+
}, z.core.$strict>>;
|
|
1591
1911
|
}, z.core.$strict>>>;
|
|
1592
1912
|
}, z.core.$strict>;
|
|
1593
1913
|
export declare const BoundedLoopNodeSchema: z.ZodObject<{
|
|
@@ -1624,12 +1944,16 @@ export declare const BoundedLoopNodeSchema: z.ZodObject<{
|
|
|
1624
1944
|
start: "start";
|
|
1625
1945
|
status: "status";
|
|
1626
1946
|
stop: "stop";
|
|
1947
|
+
send: "send";
|
|
1627
1948
|
}>;
|
|
1628
1949
|
command: z.ZodOptional<z.ZodString>;
|
|
1629
1950
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1630
1951
|
jobId: z.ZodOptional<z.ZodString>;
|
|
1631
1952
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1632
1953
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1954
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
1955
|
+
input: z.ZodOptional<z.ZodString>;
|
|
1956
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
1633
1957
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1634
1958
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
1635
1959
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1734,11 +2058,13 @@ export declare const BoundedLoopNodeSchema: z.ZodObject<{
|
|
|
1734
2058
|
action: z.ZodEnum<{
|
|
1735
2059
|
type: "type";
|
|
1736
2060
|
move: "move";
|
|
2061
|
+
inspect: "inspect";
|
|
1737
2062
|
click: "click";
|
|
1738
2063
|
scroll: "scroll";
|
|
1739
2064
|
screenshot: "screenshot";
|
|
1740
2065
|
key: "key";
|
|
1741
2066
|
capabilities: "capabilities";
|
|
2067
|
+
drag: "drag";
|
|
1742
2068
|
}>;
|
|
1743
2069
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
1744
2070
|
normalized: "normalized";
|
|
@@ -1746,6 +2072,8 @@ export declare const BoundedLoopNodeSchema: z.ZodObject<{
|
|
|
1746
2072
|
}>>;
|
|
1747
2073
|
x: z.ZodOptional<z.ZodNumber>;
|
|
1748
2074
|
y: z.ZodOptional<z.ZodNumber>;
|
|
2075
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
2076
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
1749
2077
|
text: z.ZodOptional<z.ZodString>;
|
|
1750
2078
|
key: z.ZodOptional<z.ZodEnum<{
|
|
1751
2079
|
ENTER: "ENTER";
|
|
@@ -1808,6 +2136,32 @@ export declare const BoundedLoopNodeSchema: z.ZodObject<{
|
|
|
1808
2136
|
type: z.ZodLiteral<"page_contains">;
|
|
1809
2137
|
text: z.ZodString;
|
|
1810
2138
|
}, z.core.$strict>], "type">>>;
|
|
2139
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2140
|
+
principal: z.ZodObject<{
|
|
2141
|
+
kind: z.ZodEnum<{
|
|
2142
|
+
session: "session";
|
|
2143
|
+
organization: "organization";
|
|
2144
|
+
human: "human";
|
|
2145
|
+
harness: "harness";
|
|
2146
|
+
agent: "agent";
|
|
2147
|
+
subagent: "subagent";
|
|
2148
|
+
service: "service";
|
|
2149
|
+
}>;
|
|
2150
|
+
id: z.ZodString;
|
|
2151
|
+
}, z.core.$strict>;
|
|
2152
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2153
|
+
kind: z.ZodEnum<{
|
|
2154
|
+
session: "session";
|
|
2155
|
+
organization: "organization";
|
|
2156
|
+
human: "human";
|
|
2157
|
+
harness: "harness";
|
|
2158
|
+
agent: "agent";
|
|
2159
|
+
subagent: "subagent";
|
|
2160
|
+
service: "service";
|
|
2161
|
+
}>;
|
|
2162
|
+
id: z.ZodString;
|
|
2163
|
+
}, z.core.$strict>>>;
|
|
2164
|
+
}, z.core.$strict>>;
|
|
1811
2165
|
}, z.core.$strict>>;
|
|
1812
2166
|
maxIterations: z.ZodNumber;
|
|
1813
2167
|
until: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1879,12 +2233,16 @@ export declare const CompensationNodeSchema: z.ZodObject<{
|
|
|
1879
2233
|
start: "start";
|
|
1880
2234
|
status: "status";
|
|
1881
2235
|
stop: "stop";
|
|
2236
|
+
send: "send";
|
|
1882
2237
|
}>;
|
|
1883
2238
|
command: z.ZodOptional<z.ZodString>;
|
|
1884
2239
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1885
2240
|
jobId: z.ZodOptional<z.ZodString>;
|
|
1886
2241
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1887
2242
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2243
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
2244
|
+
input: z.ZodOptional<z.ZodString>;
|
|
2245
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
1888
2246
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1889
2247
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
1890
2248
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1989,11 +2347,13 @@ export declare const CompensationNodeSchema: z.ZodObject<{
|
|
|
1989
2347
|
action: z.ZodEnum<{
|
|
1990
2348
|
type: "type";
|
|
1991
2349
|
move: "move";
|
|
2350
|
+
inspect: "inspect";
|
|
1992
2351
|
click: "click";
|
|
1993
2352
|
scroll: "scroll";
|
|
1994
2353
|
screenshot: "screenshot";
|
|
1995
2354
|
key: "key";
|
|
1996
2355
|
capabilities: "capabilities";
|
|
2356
|
+
drag: "drag";
|
|
1997
2357
|
}>;
|
|
1998
2358
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
1999
2359
|
normalized: "normalized";
|
|
@@ -2001,6 +2361,8 @@ export declare const CompensationNodeSchema: z.ZodObject<{
|
|
|
2001
2361
|
}>>;
|
|
2002
2362
|
x: z.ZodOptional<z.ZodNumber>;
|
|
2003
2363
|
y: z.ZodOptional<z.ZodNumber>;
|
|
2364
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
2365
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
2004
2366
|
text: z.ZodOptional<z.ZodString>;
|
|
2005
2367
|
key: z.ZodOptional<z.ZodEnum<{
|
|
2006
2368
|
ENTER: "ENTER";
|
|
@@ -2063,8 +2425,77 @@ export declare const CompensationNodeSchema: z.ZodObject<{
|
|
|
2063
2425
|
type: z.ZodLiteral<"page_contains">;
|
|
2064
2426
|
text: z.ZodString;
|
|
2065
2427
|
}, z.core.$strict>], "type">>>;
|
|
2428
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2429
|
+
principal: z.ZodObject<{
|
|
2430
|
+
kind: z.ZodEnum<{
|
|
2431
|
+
session: "session";
|
|
2432
|
+
organization: "organization";
|
|
2433
|
+
human: "human";
|
|
2434
|
+
harness: "harness";
|
|
2435
|
+
agent: "agent";
|
|
2436
|
+
subagent: "subagent";
|
|
2437
|
+
service: "service";
|
|
2438
|
+
}>;
|
|
2439
|
+
id: z.ZodString;
|
|
2440
|
+
}, z.core.$strict>;
|
|
2441
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2442
|
+
kind: z.ZodEnum<{
|
|
2443
|
+
session: "session";
|
|
2444
|
+
organization: "organization";
|
|
2445
|
+
human: "human";
|
|
2446
|
+
harness: "harness";
|
|
2447
|
+
agent: "agent";
|
|
2448
|
+
subagent: "subagent";
|
|
2449
|
+
service: "service";
|
|
2450
|
+
}>;
|
|
2451
|
+
id: z.ZodString;
|
|
2452
|
+
}, z.core.$strict>>>;
|
|
2453
|
+
}, z.core.$strict>>;
|
|
2066
2454
|
}, z.core.$strict>;
|
|
2067
2455
|
}, z.core.$strict>;
|
|
2456
|
+
export declare const HumanInputNodeSchema: z.ZodObject<{
|
|
2457
|
+
id: z.ZodString;
|
|
2458
|
+
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2459
|
+
type: z.ZodLiteral<"human_input">;
|
|
2460
|
+
prompt: z.ZodString;
|
|
2461
|
+
choices: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2462
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
2463
|
+
}, z.core.$strict>;
|
|
2464
|
+
export declare const DelegationNodeSchema: z.ZodObject<{
|
|
2465
|
+
id: z.ZodString;
|
|
2466
|
+
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2467
|
+
type: z.ZodLiteral<"delegation">;
|
|
2468
|
+
assignee: z.ZodString;
|
|
2469
|
+
goal: z.ZodString;
|
|
2470
|
+
requiredEvidence: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2471
|
+
type: z.ZodLiteral<"result_equals">;
|
|
2472
|
+
path: z.ZodString;
|
|
2473
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2474
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2475
|
+
type: z.ZodLiteral<"result_contains">;
|
|
2476
|
+
path: z.ZodString;
|
|
2477
|
+
value: z.ZodString;
|
|
2478
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2479
|
+
type: z.ZodLiteral<"file_exists">;
|
|
2480
|
+
path: z.ZodString;
|
|
2481
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2482
|
+
type: z.ZodLiteral<"file_absent">;
|
|
2483
|
+
path: z.ZodString;
|
|
2484
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2485
|
+
type: z.ZodLiteral<"file_hash">;
|
|
2486
|
+
path: z.ZodString;
|
|
2487
|
+
sha256: z.ZodString;
|
|
2488
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2489
|
+
type: z.ZodLiteral<"exit_code">;
|
|
2490
|
+
value: z.ZodNumber;
|
|
2491
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2492
|
+
type: z.ZodLiteral<"url_matches">;
|
|
2493
|
+
pattern: z.ZodString;
|
|
2494
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2495
|
+
type: z.ZodLiteral<"page_contains">;
|
|
2496
|
+
text: z.ZodString;
|
|
2497
|
+
}, z.core.$strict>], "type">>>;
|
|
2498
|
+
}, z.core.$strict>;
|
|
2068
2499
|
export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2069
2500
|
id: z.ZodString;
|
|
2070
2501
|
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -2099,12 +2530,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2099
2530
|
start: "start";
|
|
2100
2531
|
status: "status";
|
|
2101
2532
|
stop: "stop";
|
|
2533
|
+
send: "send";
|
|
2102
2534
|
}>;
|
|
2103
2535
|
command: z.ZodOptional<z.ZodString>;
|
|
2104
2536
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2105
2537
|
jobId: z.ZodOptional<z.ZodString>;
|
|
2106
2538
|
cwd: z.ZodOptional<z.ZodString>;
|
|
2107
2539
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2540
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
2541
|
+
input: z.ZodOptional<z.ZodString>;
|
|
2542
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
2108
2543
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
2109
2544
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
2110
2545
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -2209,11 +2644,13 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2209
2644
|
action: z.ZodEnum<{
|
|
2210
2645
|
type: "type";
|
|
2211
2646
|
move: "move";
|
|
2647
|
+
inspect: "inspect";
|
|
2212
2648
|
click: "click";
|
|
2213
2649
|
scroll: "scroll";
|
|
2214
2650
|
screenshot: "screenshot";
|
|
2215
2651
|
key: "key";
|
|
2216
2652
|
capabilities: "capabilities";
|
|
2653
|
+
drag: "drag";
|
|
2217
2654
|
}>;
|
|
2218
2655
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
2219
2656
|
normalized: "normalized";
|
|
@@ -2221,6 +2658,8 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2221
2658
|
}>>;
|
|
2222
2659
|
x: z.ZodOptional<z.ZodNumber>;
|
|
2223
2660
|
y: z.ZodOptional<z.ZodNumber>;
|
|
2661
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
2662
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
2224
2663
|
text: z.ZodOptional<z.ZodString>;
|
|
2225
2664
|
key: z.ZodOptional<z.ZodEnum<{
|
|
2226
2665
|
ENTER: "ENTER";
|
|
@@ -2283,6 +2722,32 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2283
2722
|
type: z.ZodLiteral<"page_contains">;
|
|
2284
2723
|
text: z.ZodString;
|
|
2285
2724
|
}, z.core.$strict>], "type">>>;
|
|
2725
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2726
|
+
principal: z.ZodObject<{
|
|
2727
|
+
kind: z.ZodEnum<{
|
|
2728
|
+
session: "session";
|
|
2729
|
+
organization: "organization";
|
|
2730
|
+
human: "human";
|
|
2731
|
+
harness: "harness";
|
|
2732
|
+
agent: "agent";
|
|
2733
|
+
subagent: "subagent";
|
|
2734
|
+
service: "service";
|
|
2735
|
+
}>;
|
|
2736
|
+
id: z.ZodString;
|
|
2737
|
+
}, z.core.$strict>;
|
|
2738
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2739
|
+
kind: z.ZodEnum<{
|
|
2740
|
+
session: "session";
|
|
2741
|
+
organization: "organization";
|
|
2742
|
+
human: "human";
|
|
2743
|
+
harness: "harness";
|
|
2744
|
+
agent: "agent";
|
|
2745
|
+
subagent: "subagent";
|
|
2746
|
+
service: "service";
|
|
2747
|
+
}>;
|
|
2748
|
+
id: z.ZodString;
|
|
2749
|
+
}, z.core.$strict>>>;
|
|
2750
|
+
}, z.core.$strict>>;
|
|
2286
2751
|
}, z.core.$strict>;
|
|
2287
2752
|
}, z.core.$strict>, z.ZodObject<{
|
|
2288
2753
|
id: z.ZodString;
|
|
@@ -2352,12 +2817,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2352
2817
|
start: "start";
|
|
2353
2818
|
status: "status";
|
|
2354
2819
|
stop: "stop";
|
|
2820
|
+
send: "send";
|
|
2355
2821
|
}>;
|
|
2356
2822
|
command: z.ZodOptional<z.ZodString>;
|
|
2357
2823
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2358
2824
|
jobId: z.ZodOptional<z.ZodString>;
|
|
2359
2825
|
cwd: z.ZodOptional<z.ZodString>;
|
|
2360
2826
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2827
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
2828
|
+
input: z.ZodOptional<z.ZodString>;
|
|
2829
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
2361
2830
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
2362
2831
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
2363
2832
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -2462,11 +2931,13 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2462
2931
|
action: z.ZodEnum<{
|
|
2463
2932
|
type: "type";
|
|
2464
2933
|
move: "move";
|
|
2934
|
+
inspect: "inspect";
|
|
2465
2935
|
click: "click";
|
|
2466
2936
|
scroll: "scroll";
|
|
2467
2937
|
screenshot: "screenshot";
|
|
2468
2938
|
key: "key";
|
|
2469
2939
|
capabilities: "capabilities";
|
|
2940
|
+
drag: "drag";
|
|
2470
2941
|
}>;
|
|
2471
2942
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
2472
2943
|
normalized: "normalized";
|
|
@@ -2474,6 +2945,8 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2474
2945
|
}>>;
|
|
2475
2946
|
x: z.ZodOptional<z.ZodNumber>;
|
|
2476
2947
|
y: z.ZodOptional<z.ZodNumber>;
|
|
2948
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
2949
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
2477
2950
|
text: z.ZodOptional<z.ZodString>;
|
|
2478
2951
|
key: z.ZodOptional<z.ZodEnum<{
|
|
2479
2952
|
ENTER: "ENTER";
|
|
@@ -2536,6 +3009,32 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2536
3009
|
type: z.ZodLiteral<"page_contains">;
|
|
2537
3010
|
text: z.ZodString;
|
|
2538
3011
|
}, z.core.$strict>], "type">>>;
|
|
3012
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
3013
|
+
principal: z.ZodObject<{
|
|
3014
|
+
kind: z.ZodEnum<{
|
|
3015
|
+
session: "session";
|
|
3016
|
+
organization: "organization";
|
|
3017
|
+
human: "human";
|
|
3018
|
+
harness: "harness";
|
|
3019
|
+
agent: "agent";
|
|
3020
|
+
subagent: "subagent";
|
|
3021
|
+
service: "service";
|
|
3022
|
+
}>;
|
|
3023
|
+
id: z.ZodString;
|
|
3024
|
+
}, z.core.$strict>;
|
|
3025
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3026
|
+
kind: z.ZodEnum<{
|
|
3027
|
+
session: "session";
|
|
3028
|
+
organization: "organization";
|
|
3029
|
+
human: "human";
|
|
3030
|
+
harness: "harness";
|
|
3031
|
+
agent: "agent";
|
|
3032
|
+
subagent: "subagent";
|
|
3033
|
+
service: "service";
|
|
3034
|
+
}>;
|
|
3035
|
+
id: z.ZodString;
|
|
3036
|
+
}, z.core.$strict>>>;
|
|
3037
|
+
}, z.core.$strict>>;
|
|
2539
3038
|
}, z.core.$strict>>>;
|
|
2540
3039
|
whenFalse: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2541
3040
|
goal: z.ZodString;
|
|
@@ -2567,12 +3066,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2567
3066
|
start: "start";
|
|
2568
3067
|
status: "status";
|
|
2569
3068
|
stop: "stop";
|
|
3069
|
+
send: "send";
|
|
2570
3070
|
}>;
|
|
2571
3071
|
command: z.ZodOptional<z.ZodString>;
|
|
2572
3072
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2573
3073
|
jobId: z.ZodOptional<z.ZodString>;
|
|
2574
3074
|
cwd: z.ZodOptional<z.ZodString>;
|
|
2575
3075
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3076
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
3077
|
+
input: z.ZodOptional<z.ZodString>;
|
|
3078
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
2576
3079
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
2577
3080
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
2578
3081
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -2677,11 +3180,13 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2677
3180
|
action: z.ZodEnum<{
|
|
2678
3181
|
type: "type";
|
|
2679
3182
|
move: "move";
|
|
3183
|
+
inspect: "inspect";
|
|
2680
3184
|
click: "click";
|
|
2681
3185
|
scroll: "scroll";
|
|
2682
3186
|
screenshot: "screenshot";
|
|
2683
3187
|
key: "key";
|
|
2684
3188
|
capabilities: "capabilities";
|
|
3189
|
+
drag: "drag";
|
|
2685
3190
|
}>;
|
|
2686
3191
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
2687
3192
|
normalized: "normalized";
|
|
@@ -2689,6 +3194,8 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2689
3194
|
}>>;
|
|
2690
3195
|
x: z.ZodOptional<z.ZodNumber>;
|
|
2691
3196
|
y: z.ZodOptional<z.ZodNumber>;
|
|
3197
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
3198
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
2692
3199
|
text: z.ZodOptional<z.ZodString>;
|
|
2693
3200
|
key: z.ZodOptional<z.ZodEnum<{
|
|
2694
3201
|
ENTER: "ENTER";
|
|
@@ -2751,6 +3258,32 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2751
3258
|
type: z.ZodLiteral<"page_contains">;
|
|
2752
3259
|
text: z.ZodString;
|
|
2753
3260
|
}, z.core.$strict>], "type">>>;
|
|
3261
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
3262
|
+
principal: z.ZodObject<{
|
|
3263
|
+
kind: z.ZodEnum<{
|
|
3264
|
+
session: "session";
|
|
3265
|
+
organization: "organization";
|
|
3266
|
+
human: "human";
|
|
3267
|
+
harness: "harness";
|
|
3268
|
+
agent: "agent";
|
|
3269
|
+
subagent: "subagent";
|
|
3270
|
+
service: "service";
|
|
3271
|
+
}>;
|
|
3272
|
+
id: z.ZodString;
|
|
3273
|
+
}, z.core.$strict>;
|
|
3274
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3275
|
+
kind: z.ZodEnum<{
|
|
3276
|
+
session: "session";
|
|
3277
|
+
organization: "organization";
|
|
3278
|
+
human: "human";
|
|
3279
|
+
harness: "harness";
|
|
3280
|
+
agent: "agent";
|
|
3281
|
+
subagent: "subagent";
|
|
3282
|
+
service: "service";
|
|
3283
|
+
}>;
|
|
3284
|
+
id: z.ZodString;
|
|
3285
|
+
}, z.core.$strict>>>;
|
|
3286
|
+
}, z.core.$strict>>;
|
|
2754
3287
|
}, z.core.$strict>>>;
|
|
2755
3288
|
}, z.core.$strict>, z.ZodObject<{
|
|
2756
3289
|
id: z.ZodString;
|
|
@@ -2786,12 +3319,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2786
3319
|
start: "start";
|
|
2787
3320
|
status: "status";
|
|
2788
3321
|
stop: "stop";
|
|
3322
|
+
send: "send";
|
|
2789
3323
|
}>;
|
|
2790
3324
|
command: z.ZodOptional<z.ZodString>;
|
|
2791
3325
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2792
3326
|
jobId: z.ZodOptional<z.ZodString>;
|
|
2793
3327
|
cwd: z.ZodOptional<z.ZodString>;
|
|
2794
3328
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3329
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
3330
|
+
input: z.ZodOptional<z.ZodString>;
|
|
3331
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
2795
3332
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
2796
3333
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
2797
3334
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -2896,11 +3433,13 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2896
3433
|
action: z.ZodEnum<{
|
|
2897
3434
|
type: "type";
|
|
2898
3435
|
move: "move";
|
|
3436
|
+
inspect: "inspect";
|
|
2899
3437
|
click: "click";
|
|
2900
3438
|
scroll: "scroll";
|
|
2901
3439
|
screenshot: "screenshot";
|
|
2902
3440
|
key: "key";
|
|
2903
3441
|
capabilities: "capabilities";
|
|
3442
|
+
drag: "drag";
|
|
2904
3443
|
}>;
|
|
2905
3444
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
2906
3445
|
normalized: "normalized";
|
|
@@ -2908,6 +3447,8 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2908
3447
|
}>>;
|
|
2909
3448
|
x: z.ZodOptional<z.ZodNumber>;
|
|
2910
3449
|
y: z.ZodOptional<z.ZodNumber>;
|
|
3450
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
3451
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
2911
3452
|
text: z.ZodOptional<z.ZodString>;
|
|
2912
3453
|
key: z.ZodOptional<z.ZodEnum<{
|
|
2913
3454
|
ENTER: "ENTER";
|
|
@@ -2970,6 +3511,32 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2970
3511
|
type: z.ZodLiteral<"page_contains">;
|
|
2971
3512
|
text: z.ZodString;
|
|
2972
3513
|
}, z.core.$strict>], "type">>>;
|
|
3514
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
3515
|
+
principal: z.ZodObject<{
|
|
3516
|
+
kind: z.ZodEnum<{
|
|
3517
|
+
session: "session";
|
|
3518
|
+
organization: "organization";
|
|
3519
|
+
human: "human";
|
|
3520
|
+
harness: "harness";
|
|
3521
|
+
agent: "agent";
|
|
3522
|
+
subagent: "subagent";
|
|
3523
|
+
service: "service";
|
|
3524
|
+
}>;
|
|
3525
|
+
id: z.ZodString;
|
|
3526
|
+
}, z.core.$strict>;
|
|
3527
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3528
|
+
kind: z.ZodEnum<{
|
|
3529
|
+
session: "session";
|
|
3530
|
+
organization: "organization";
|
|
3531
|
+
human: "human";
|
|
3532
|
+
harness: "harness";
|
|
3533
|
+
agent: "agent";
|
|
3534
|
+
subagent: "subagent";
|
|
3535
|
+
service: "service";
|
|
3536
|
+
}>;
|
|
3537
|
+
id: z.ZodString;
|
|
3538
|
+
}, z.core.$strict>>>;
|
|
3539
|
+
}, z.core.$strict>>;
|
|
2973
3540
|
}, z.core.$strict>>>;
|
|
2974
3541
|
}, z.core.$strict>, z.ZodObject<{
|
|
2975
3542
|
id: z.ZodString;
|
|
@@ -3005,12 +3572,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3005
3572
|
start: "start";
|
|
3006
3573
|
status: "status";
|
|
3007
3574
|
stop: "stop";
|
|
3575
|
+
send: "send";
|
|
3008
3576
|
}>;
|
|
3009
3577
|
command: z.ZodOptional<z.ZodString>;
|
|
3010
3578
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3011
3579
|
jobId: z.ZodOptional<z.ZodString>;
|
|
3012
3580
|
cwd: z.ZodOptional<z.ZodString>;
|
|
3013
3581
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3582
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
3583
|
+
input: z.ZodOptional<z.ZodString>;
|
|
3584
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
3014
3585
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
3015
3586
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
3016
3587
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3115,11 +3686,13 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3115
3686
|
action: z.ZodEnum<{
|
|
3116
3687
|
type: "type";
|
|
3117
3688
|
move: "move";
|
|
3689
|
+
inspect: "inspect";
|
|
3118
3690
|
click: "click";
|
|
3119
3691
|
scroll: "scroll";
|
|
3120
3692
|
screenshot: "screenshot";
|
|
3121
3693
|
key: "key";
|
|
3122
3694
|
capabilities: "capabilities";
|
|
3695
|
+
drag: "drag";
|
|
3123
3696
|
}>;
|
|
3124
3697
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
3125
3698
|
normalized: "normalized";
|
|
@@ -3127,6 +3700,8 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3127
3700
|
}>>;
|
|
3128
3701
|
x: z.ZodOptional<z.ZodNumber>;
|
|
3129
3702
|
y: z.ZodOptional<z.ZodNumber>;
|
|
3703
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
3704
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
3130
3705
|
text: z.ZodOptional<z.ZodString>;
|
|
3131
3706
|
key: z.ZodOptional<z.ZodEnum<{
|
|
3132
3707
|
ENTER: "ENTER";
|
|
@@ -3189,6 +3764,32 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3189
3764
|
type: z.ZodLiteral<"page_contains">;
|
|
3190
3765
|
text: z.ZodString;
|
|
3191
3766
|
}, z.core.$strict>], "type">>>;
|
|
3767
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
3768
|
+
principal: z.ZodObject<{
|
|
3769
|
+
kind: z.ZodEnum<{
|
|
3770
|
+
session: "session";
|
|
3771
|
+
organization: "organization";
|
|
3772
|
+
human: "human";
|
|
3773
|
+
harness: "harness";
|
|
3774
|
+
agent: "agent";
|
|
3775
|
+
subagent: "subagent";
|
|
3776
|
+
service: "service";
|
|
3777
|
+
}>;
|
|
3778
|
+
id: z.ZodString;
|
|
3779
|
+
}, z.core.$strict>;
|
|
3780
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3781
|
+
kind: z.ZodEnum<{
|
|
3782
|
+
session: "session";
|
|
3783
|
+
organization: "organization";
|
|
3784
|
+
human: "human";
|
|
3785
|
+
harness: "harness";
|
|
3786
|
+
agent: "agent";
|
|
3787
|
+
subagent: "subagent";
|
|
3788
|
+
service: "service";
|
|
3789
|
+
}>;
|
|
3790
|
+
id: z.ZodString;
|
|
3791
|
+
}, z.core.$strict>>>;
|
|
3792
|
+
}, z.core.$strict>>;
|
|
3192
3793
|
}, z.core.$strict>>;
|
|
3193
3794
|
maxIterations: z.ZodNumber;
|
|
3194
3795
|
until: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -3258,12 +3859,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3258
3859
|
start: "start";
|
|
3259
3860
|
status: "status";
|
|
3260
3861
|
stop: "stop";
|
|
3862
|
+
send: "send";
|
|
3261
3863
|
}>;
|
|
3262
3864
|
command: z.ZodOptional<z.ZodString>;
|
|
3263
3865
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3264
3866
|
jobId: z.ZodOptional<z.ZodString>;
|
|
3265
3867
|
cwd: z.ZodOptional<z.ZodString>;
|
|
3266
3868
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3869
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
3870
|
+
input: z.ZodOptional<z.ZodString>;
|
|
3871
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
3267
3872
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
3268
3873
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
3269
3874
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3368,11 +3973,13 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3368
3973
|
action: z.ZodEnum<{
|
|
3369
3974
|
type: "type";
|
|
3370
3975
|
move: "move";
|
|
3976
|
+
inspect: "inspect";
|
|
3371
3977
|
click: "click";
|
|
3372
3978
|
scroll: "scroll";
|
|
3373
3979
|
screenshot: "screenshot";
|
|
3374
3980
|
key: "key";
|
|
3375
3981
|
capabilities: "capabilities";
|
|
3982
|
+
drag: "drag";
|
|
3376
3983
|
}>;
|
|
3377
3984
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
3378
3985
|
normalized: "normalized";
|
|
@@ -3380,6 +3987,8 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3380
3987
|
}>>;
|
|
3381
3988
|
x: z.ZodOptional<z.ZodNumber>;
|
|
3382
3989
|
y: z.ZodOptional<z.ZodNumber>;
|
|
3990
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
3991
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
3383
3992
|
text: z.ZodOptional<z.ZodString>;
|
|
3384
3993
|
key: z.ZodOptional<z.ZodEnum<{
|
|
3385
3994
|
ENTER: "ENTER";
|
|
@@ -3442,8 +4051,80 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3442
4051
|
type: z.ZodLiteral<"page_contains">;
|
|
3443
4052
|
text: z.ZodString;
|
|
3444
4053
|
}, z.core.$strict>], "type">>>;
|
|
4054
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
4055
|
+
principal: z.ZodObject<{
|
|
4056
|
+
kind: z.ZodEnum<{
|
|
4057
|
+
session: "session";
|
|
4058
|
+
organization: "organization";
|
|
4059
|
+
human: "human";
|
|
4060
|
+
harness: "harness";
|
|
4061
|
+
agent: "agent";
|
|
4062
|
+
subagent: "subagent";
|
|
4063
|
+
service: "service";
|
|
4064
|
+
}>;
|
|
4065
|
+
id: z.ZodString;
|
|
4066
|
+
}, z.core.$strict>;
|
|
4067
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4068
|
+
kind: z.ZodEnum<{
|
|
4069
|
+
session: "session";
|
|
4070
|
+
organization: "organization";
|
|
4071
|
+
human: "human";
|
|
4072
|
+
harness: "harness";
|
|
4073
|
+
agent: "agent";
|
|
4074
|
+
subagent: "subagent";
|
|
4075
|
+
service: "service";
|
|
4076
|
+
}>;
|
|
4077
|
+
id: z.ZodString;
|
|
4078
|
+
}, z.core.$strict>>>;
|
|
4079
|
+
}, z.core.$strict>>;
|
|
3445
4080
|
}, z.core.$strict>;
|
|
4081
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4082
|
+
id: z.ZodString;
|
|
4083
|
+
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4084
|
+
type: z.ZodLiteral<"human_input">;
|
|
4085
|
+
prompt: z.ZodString;
|
|
4086
|
+
choices: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4087
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
4088
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4089
|
+
id: z.ZodString;
|
|
4090
|
+
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4091
|
+
type: z.ZodLiteral<"delegation">;
|
|
4092
|
+
assignee: z.ZodString;
|
|
4093
|
+
goal: z.ZodString;
|
|
4094
|
+
requiredEvidence: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4095
|
+
type: z.ZodLiteral<"result_equals">;
|
|
4096
|
+
path: z.ZodString;
|
|
4097
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4098
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4099
|
+
type: z.ZodLiteral<"result_contains">;
|
|
4100
|
+
path: z.ZodString;
|
|
4101
|
+
value: z.ZodString;
|
|
4102
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4103
|
+
type: z.ZodLiteral<"file_exists">;
|
|
4104
|
+
path: z.ZodString;
|
|
4105
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4106
|
+
type: z.ZodLiteral<"file_absent">;
|
|
4107
|
+
path: z.ZodString;
|
|
4108
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4109
|
+
type: z.ZodLiteral<"file_hash">;
|
|
4110
|
+
path: z.ZodString;
|
|
4111
|
+
sha256: z.ZodString;
|
|
4112
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4113
|
+
type: z.ZodLiteral<"exit_code">;
|
|
4114
|
+
value: z.ZodNumber;
|
|
4115
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4116
|
+
type: z.ZodLiteral<"url_matches">;
|
|
4117
|
+
pattern: z.ZodString;
|
|
4118
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4119
|
+
type: z.ZodLiteral<"page_contains">;
|
|
4120
|
+
text: z.ZodString;
|
|
4121
|
+
}, z.core.$strict>], "type">>>;
|
|
3446
4122
|
}, z.core.$strict>], "type">;
|
|
4123
|
+
export declare const WorkflowInputSchema: z.ZodObject<{
|
|
4124
|
+
nodeId: z.ZodString;
|
|
4125
|
+
value: z.ZodString;
|
|
4126
|
+
}, z.core.$strict>;
|
|
4127
|
+
export type WorkflowInput = z.infer<typeof WorkflowInputSchema>;
|
|
3447
4128
|
export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
3448
4129
|
schemaVersion: z.ZodLiteral<"1.0.0">;
|
|
3449
4130
|
id: z.ZodString;
|
|
@@ -3484,12 +4165,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
3484
4165
|
start: "start";
|
|
3485
4166
|
status: "status";
|
|
3486
4167
|
stop: "stop";
|
|
4168
|
+
send: "send";
|
|
3487
4169
|
}>;
|
|
3488
4170
|
command: z.ZodOptional<z.ZodString>;
|
|
3489
4171
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3490
4172
|
jobId: z.ZodOptional<z.ZodString>;
|
|
3491
4173
|
cwd: z.ZodOptional<z.ZodString>;
|
|
3492
4174
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4175
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
4176
|
+
input: z.ZodOptional<z.ZodString>;
|
|
4177
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
3493
4178
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
3494
4179
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
3495
4180
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3594,11 +4279,13 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
3594
4279
|
action: z.ZodEnum<{
|
|
3595
4280
|
type: "type";
|
|
3596
4281
|
move: "move";
|
|
4282
|
+
inspect: "inspect";
|
|
3597
4283
|
click: "click";
|
|
3598
4284
|
scroll: "scroll";
|
|
3599
4285
|
screenshot: "screenshot";
|
|
3600
4286
|
key: "key";
|
|
3601
4287
|
capabilities: "capabilities";
|
|
4288
|
+
drag: "drag";
|
|
3602
4289
|
}>;
|
|
3603
4290
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
3604
4291
|
normalized: "normalized";
|
|
@@ -3606,6 +4293,8 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
3606
4293
|
}>>;
|
|
3607
4294
|
x: z.ZodOptional<z.ZodNumber>;
|
|
3608
4295
|
y: z.ZodOptional<z.ZodNumber>;
|
|
4296
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
4297
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
3609
4298
|
text: z.ZodOptional<z.ZodString>;
|
|
3610
4299
|
key: z.ZodOptional<z.ZodEnum<{
|
|
3611
4300
|
ENTER: "ENTER";
|
|
@@ -3668,6 +4357,32 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
3668
4357
|
type: z.ZodLiteral<"page_contains">;
|
|
3669
4358
|
text: z.ZodString;
|
|
3670
4359
|
}, z.core.$strict>], "type">>>;
|
|
4360
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
4361
|
+
principal: z.ZodObject<{
|
|
4362
|
+
kind: z.ZodEnum<{
|
|
4363
|
+
session: "session";
|
|
4364
|
+
organization: "organization";
|
|
4365
|
+
human: "human";
|
|
4366
|
+
harness: "harness";
|
|
4367
|
+
agent: "agent";
|
|
4368
|
+
subagent: "subagent";
|
|
4369
|
+
service: "service";
|
|
4370
|
+
}>;
|
|
4371
|
+
id: z.ZodString;
|
|
4372
|
+
}, z.core.$strict>;
|
|
4373
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4374
|
+
kind: z.ZodEnum<{
|
|
4375
|
+
session: "session";
|
|
4376
|
+
organization: "organization";
|
|
4377
|
+
human: "human";
|
|
4378
|
+
harness: "harness";
|
|
4379
|
+
agent: "agent";
|
|
4380
|
+
subagent: "subagent";
|
|
4381
|
+
service: "service";
|
|
4382
|
+
}>;
|
|
4383
|
+
id: z.ZodString;
|
|
4384
|
+
}, z.core.$strict>>>;
|
|
4385
|
+
}, z.core.$strict>>;
|
|
3671
4386
|
}, z.core.$strict>;
|
|
3672
4387
|
}, z.core.$strict>, z.ZodObject<{
|
|
3673
4388
|
id: z.ZodString;
|
|
@@ -3737,12 +4452,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
3737
4452
|
start: "start";
|
|
3738
4453
|
status: "status";
|
|
3739
4454
|
stop: "stop";
|
|
4455
|
+
send: "send";
|
|
3740
4456
|
}>;
|
|
3741
4457
|
command: z.ZodOptional<z.ZodString>;
|
|
3742
4458
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3743
4459
|
jobId: z.ZodOptional<z.ZodString>;
|
|
3744
4460
|
cwd: z.ZodOptional<z.ZodString>;
|
|
3745
4461
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4462
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
4463
|
+
input: z.ZodOptional<z.ZodString>;
|
|
4464
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
3746
4465
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
3747
4466
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
3748
4467
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3847,11 +4566,13 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
3847
4566
|
action: z.ZodEnum<{
|
|
3848
4567
|
type: "type";
|
|
3849
4568
|
move: "move";
|
|
4569
|
+
inspect: "inspect";
|
|
3850
4570
|
click: "click";
|
|
3851
4571
|
scroll: "scroll";
|
|
3852
4572
|
screenshot: "screenshot";
|
|
3853
4573
|
key: "key";
|
|
3854
4574
|
capabilities: "capabilities";
|
|
4575
|
+
drag: "drag";
|
|
3855
4576
|
}>;
|
|
3856
4577
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
3857
4578
|
normalized: "normalized";
|
|
@@ -3859,6 +4580,8 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
3859
4580
|
}>>;
|
|
3860
4581
|
x: z.ZodOptional<z.ZodNumber>;
|
|
3861
4582
|
y: z.ZodOptional<z.ZodNumber>;
|
|
4583
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
4584
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
3862
4585
|
text: z.ZodOptional<z.ZodString>;
|
|
3863
4586
|
key: z.ZodOptional<z.ZodEnum<{
|
|
3864
4587
|
ENTER: "ENTER";
|
|
@@ -3921,6 +4644,32 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
3921
4644
|
type: z.ZodLiteral<"page_contains">;
|
|
3922
4645
|
text: z.ZodString;
|
|
3923
4646
|
}, z.core.$strict>], "type">>>;
|
|
4647
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
4648
|
+
principal: z.ZodObject<{
|
|
4649
|
+
kind: z.ZodEnum<{
|
|
4650
|
+
session: "session";
|
|
4651
|
+
organization: "organization";
|
|
4652
|
+
human: "human";
|
|
4653
|
+
harness: "harness";
|
|
4654
|
+
agent: "agent";
|
|
4655
|
+
subagent: "subagent";
|
|
4656
|
+
service: "service";
|
|
4657
|
+
}>;
|
|
4658
|
+
id: z.ZodString;
|
|
4659
|
+
}, z.core.$strict>;
|
|
4660
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4661
|
+
kind: z.ZodEnum<{
|
|
4662
|
+
session: "session";
|
|
4663
|
+
organization: "organization";
|
|
4664
|
+
human: "human";
|
|
4665
|
+
harness: "harness";
|
|
4666
|
+
agent: "agent";
|
|
4667
|
+
subagent: "subagent";
|
|
4668
|
+
service: "service";
|
|
4669
|
+
}>;
|
|
4670
|
+
id: z.ZodString;
|
|
4671
|
+
}, z.core.$strict>>>;
|
|
4672
|
+
}, z.core.$strict>>;
|
|
3924
4673
|
}, z.core.$strict>>>;
|
|
3925
4674
|
whenFalse: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3926
4675
|
goal: z.ZodString;
|
|
@@ -3952,12 +4701,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
3952
4701
|
start: "start";
|
|
3953
4702
|
status: "status";
|
|
3954
4703
|
stop: "stop";
|
|
4704
|
+
send: "send";
|
|
3955
4705
|
}>;
|
|
3956
4706
|
command: z.ZodOptional<z.ZodString>;
|
|
3957
4707
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3958
4708
|
jobId: z.ZodOptional<z.ZodString>;
|
|
3959
4709
|
cwd: z.ZodOptional<z.ZodString>;
|
|
3960
4710
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4711
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
4712
|
+
input: z.ZodOptional<z.ZodString>;
|
|
4713
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
3961
4714
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
3962
4715
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
3963
4716
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -4062,11 +4815,13 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4062
4815
|
action: z.ZodEnum<{
|
|
4063
4816
|
type: "type";
|
|
4064
4817
|
move: "move";
|
|
4818
|
+
inspect: "inspect";
|
|
4065
4819
|
click: "click";
|
|
4066
4820
|
scroll: "scroll";
|
|
4067
4821
|
screenshot: "screenshot";
|
|
4068
4822
|
key: "key";
|
|
4069
4823
|
capabilities: "capabilities";
|
|
4824
|
+
drag: "drag";
|
|
4070
4825
|
}>;
|
|
4071
4826
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
4072
4827
|
normalized: "normalized";
|
|
@@ -4074,6 +4829,8 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4074
4829
|
}>>;
|
|
4075
4830
|
x: z.ZodOptional<z.ZodNumber>;
|
|
4076
4831
|
y: z.ZodOptional<z.ZodNumber>;
|
|
4832
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
4833
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
4077
4834
|
text: z.ZodOptional<z.ZodString>;
|
|
4078
4835
|
key: z.ZodOptional<z.ZodEnum<{
|
|
4079
4836
|
ENTER: "ENTER";
|
|
@@ -4136,6 +4893,32 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4136
4893
|
type: z.ZodLiteral<"page_contains">;
|
|
4137
4894
|
text: z.ZodString;
|
|
4138
4895
|
}, z.core.$strict>], "type">>>;
|
|
4896
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
4897
|
+
principal: z.ZodObject<{
|
|
4898
|
+
kind: z.ZodEnum<{
|
|
4899
|
+
session: "session";
|
|
4900
|
+
organization: "organization";
|
|
4901
|
+
human: "human";
|
|
4902
|
+
harness: "harness";
|
|
4903
|
+
agent: "agent";
|
|
4904
|
+
subagent: "subagent";
|
|
4905
|
+
service: "service";
|
|
4906
|
+
}>;
|
|
4907
|
+
id: z.ZodString;
|
|
4908
|
+
}, z.core.$strict>;
|
|
4909
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4910
|
+
kind: z.ZodEnum<{
|
|
4911
|
+
session: "session";
|
|
4912
|
+
organization: "organization";
|
|
4913
|
+
human: "human";
|
|
4914
|
+
harness: "harness";
|
|
4915
|
+
agent: "agent";
|
|
4916
|
+
subagent: "subagent";
|
|
4917
|
+
service: "service";
|
|
4918
|
+
}>;
|
|
4919
|
+
id: z.ZodString;
|
|
4920
|
+
}, z.core.$strict>>>;
|
|
4921
|
+
}, z.core.$strict>>;
|
|
4139
4922
|
}, z.core.$strict>>>;
|
|
4140
4923
|
}, z.core.$strict>, z.ZodObject<{
|
|
4141
4924
|
id: z.ZodString;
|
|
@@ -4171,12 +4954,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4171
4954
|
start: "start";
|
|
4172
4955
|
status: "status";
|
|
4173
4956
|
stop: "stop";
|
|
4957
|
+
send: "send";
|
|
4174
4958
|
}>;
|
|
4175
4959
|
command: z.ZodOptional<z.ZodString>;
|
|
4176
4960
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4177
4961
|
jobId: z.ZodOptional<z.ZodString>;
|
|
4178
4962
|
cwd: z.ZodOptional<z.ZodString>;
|
|
4179
4963
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4964
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
4965
|
+
input: z.ZodOptional<z.ZodString>;
|
|
4966
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
4180
4967
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
4181
4968
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
4182
4969
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -4281,11 +5068,13 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4281
5068
|
action: z.ZodEnum<{
|
|
4282
5069
|
type: "type";
|
|
4283
5070
|
move: "move";
|
|
5071
|
+
inspect: "inspect";
|
|
4284
5072
|
click: "click";
|
|
4285
5073
|
scroll: "scroll";
|
|
4286
5074
|
screenshot: "screenshot";
|
|
4287
5075
|
key: "key";
|
|
4288
5076
|
capabilities: "capabilities";
|
|
5077
|
+
drag: "drag";
|
|
4289
5078
|
}>;
|
|
4290
5079
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
4291
5080
|
normalized: "normalized";
|
|
@@ -4293,6 +5082,8 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4293
5082
|
}>>;
|
|
4294
5083
|
x: z.ZodOptional<z.ZodNumber>;
|
|
4295
5084
|
y: z.ZodOptional<z.ZodNumber>;
|
|
5085
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
5086
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
4296
5087
|
text: z.ZodOptional<z.ZodString>;
|
|
4297
5088
|
key: z.ZodOptional<z.ZodEnum<{
|
|
4298
5089
|
ENTER: "ENTER";
|
|
@@ -4355,6 +5146,32 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4355
5146
|
type: z.ZodLiteral<"page_contains">;
|
|
4356
5147
|
text: z.ZodString;
|
|
4357
5148
|
}, z.core.$strict>], "type">>>;
|
|
5149
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
5150
|
+
principal: z.ZodObject<{
|
|
5151
|
+
kind: z.ZodEnum<{
|
|
5152
|
+
session: "session";
|
|
5153
|
+
organization: "organization";
|
|
5154
|
+
human: "human";
|
|
5155
|
+
harness: "harness";
|
|
5156
|
+
agent: "agent";
|
|
5157
|
+
subagent: "subagent";
|
|
5158
|
+
service: "service";
|
|
5159
|
+
}>;
|
|
5160
|
+
id: z.ZodString;
|
|
5161
|
+
}, z.core.$strict>;
|
|
5162
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5163
|
+
kind: z.ZodEnum<{
|
|
5164
|
+
session: "session";
|
|
5165
|
+
organization: "organization";
|
|
5166
|
+
human: "human";
|
|
5167
|
+
harness: "harness";
|
|
5168
|
+
agent: "agent";
|
|
5169
|
+
subagent: "subagent";
|
|
5170
|
+
service: "service";
|
|
5171
|
+
}>;
|
|
5172
|
+
id: z.ZodString;
|
|
5173
|
+
}, z.core.$strict>>>;
|
|
5174
|
+
}, z.core.$strict>>;
|
|
4358
5175
|
}, z.core.$strict>>>;
|
|
4359
5176
|
}, z.core.$strict>, z.ZodObject<{
|
|
4360
5177
|
id: z.ZodString;
|
|
@@ -4390,12 +5207,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4390
5207
|
start: "start";
|
|
4391
5208
|
status: "status";
|
|
4392
5209
|
stop: "stop";
|
|
5210
|
+
send: "send";
|
|
4393
5211
|
}>;
|
|
4394
5212
|
command: z.ZodOptional<z.ZodString>;
|
|
4395
5213
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4396
5214
|
jobId: z.ZodOptional<z.ZodString>;
|
|
4397
5215
|
cwd: z.ZodOptional<z.ZodString>;
|
|
4398
5216
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5217
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
5218
|
+
input: z.ZodOptional<z.ZodString>;
|
|
5219
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
4399
5220
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
4400
5221
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
4401
5222
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -4500,11 +5321,13 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4500
5321
|
action: z.ZodEnum<{
|
|
4501
5322
|
type: "type";
|
|
4502
5323
|
move: "move";
|
|
5324
|
+
inspect: "inspect";
|
|
4503
5325
|
click: "click";
|
|
4504
5326
|
scroll: "scroll";
|
|
4505
5327
|
screenshot: "screenshot";
|
|
4506
5328
|
key: "key";
|
|
4507
5329
|
capabilities: "capabilities";
|
|
5330
|
+
drag: "drag";
|
|
4508
5331
|
}>;
|
|
4509
5332
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
4510
5333
|
normalized: "normalized";
|
|
@@ -4512,6 +5335,8 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4512
5335
|
}>>;
|
|
4513
5336
|
x: z.ZodOptional<z.ZodNumber>;
|
|
4514
5337
|
y: z.ZodOptional<z.ZodNumber>;
|
|
5338
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
5339
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
4515
5340
|
text: z.ZodOptional<z.ZodString>;
|
|
4516
5341
|
key: z.ZodOptional<z.ZodEnum<{
|
|
4517
5342
|
ENTER: "ENTER";
|
|
@@ -4574,6 +5399,32 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4574
5399
|
type: z.ZodLiteral<"page_contains">;
|
|
4575
5400
|
text: z.ZodString;
|
|
4576
5401
|
}, z.core.$strict>], "type">>>;
|
|
5402
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
5403
|
+
principal: z.ZodObject<{
|
|
5404
|
+
kind: z.ZodEnum<{
|
|
5405
|
+
session: "session";
|
|
5406
|
+
organization: "organization";
|
|
5407
|
+
human: "human";
|
|
5408
|
+
harness: "harness";
|
|
5409
|
+
agent: "agent";
|
|
5410
|
+
subagent: "subagent";
|
|
5411
|
+
service: "service";
|
|
5412
|
+
}>;
|
|
5413
|
+
id: z.ZodString;
|
|
5414
|
+
}, z.core.$strict>;
|
|
5415
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5416
|
+
kind: z.ZodEnum<{
|
|
5417
|
+
session: "session";
|
|
5418
|
+
organization: "organization";
|
|
5419
|
+
human: "human";
|
|
5420
|
+
harness: "harness";
|
|
5421
|
+
agent: "agent";
|
|
5422
|
+
subagent: "subagent";
|
|
5423
|
+
service: "service";
|
|
5424
|
+
}>;
|
|
5425
|
+
id: z.ZodString;
|
|
5426
|
+
}, z.core.$strict>>>;
|
|
5427
|
+
}, z.core.$strict>>;
|
|
4577
5428
|
}, z.core.$strict>>;
|
|
4578
5429
|
maxIterations: z.ZodNumber;
|
|
4579
5430
|
until: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -4643,12 +5494,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4643
5494
|
start: "start";
|
|
4644
5495
|
status: "status";
|
|
4645
5496
|
stop: "stop";
|
|
5497
|
+
send: "send";
|
|
4646
5498
|
}>;
|
|
4647
5499
|
command: z.ZodOptional<z.ZodString>;
|
|
4648
5500
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4649
5501
|
jobId: z.ZodOptional<z.ZodString>;
|
|
4650
5502
|
cwd: z.ZodOptional<z.ZodString>;
|
|
4651
5503
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5504
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
5505
|
+
input: z.ZodOptional<z.ZodString>;
|
|
5506
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
4652
5507
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
4653
5508
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
4654
5509
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -4753,11 +5608,13 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4753
5608
|
action: z.ZodEnum<{
|
|
4754
5609
|
type: "type";
|
|
4755
5610
|
move: "move";
|
|
5611
|
+
inspect: "inspect";
|
|
4756
5612
|
click: "click";
|
|
4757
5613
|
scroll: "scroll";
|
|
4758
5614
|
screenshot: "screenshot";
|
|
4759
5615
|
key: "key";
|
|
4760
5616
|
capabilities: "capabilities";
|
|
5617
|
+
drag: "drag";
|
|
4761
5618
|
}>;
|
|
4762
5619
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
4763
5620
|
normalized: "normalized";
|
|
@@ -4765,6 +5622,8 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4765
5622
|
}>>;
|
|
4766
5623
|
x: z.ZodOptional<z.ZodNumber>;
|
|
4767
5624
|
y: z.ZodOptional<z.ZodNumber>;
|
|
5625
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
5626
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
4768
5627
|
text: z.ZodOptional<z.ZodString>;
|
|
4769
5628
|
key: z.ZodOptional<z.ZodEnum<{
|
|
4770
5629
|
ENTER: "ENTER";
|
|
@@ -4827,7 +5686,74 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
|
|
|
4827
5686
|
type: z.ZodLiteral<"page_contains">;
|
|
4828
5687
|
text: z.ZodString;
|
|
4829
5688
|
}, z.core.$strict>], "type">>>;
|
|
5689
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
5690
|
+
principal: z.ZodObject<{
|
|
5691
|
+
kind: z.ZodEnum<{
|
|
5692
|
+
session: "session";
|
|
5693
|
+
organization: "organization";
|
|
5694
|
+
human: "human";
|
|
5695
|
+
harness: "harness";
|
|
5696
|
+
agent: "agent";
|
|
5697
|
+
subagent: "subagent";
|
|
5698
|
+
service: "service";
|
|
5699
|
+
}>;
|
|
5700
|
+
id: z.ZodString;
|
|
5701
|
+
}, z.core.$strict>;
|
|
5702
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5703
|
+
kind: z.ZodEnum<{
|
|
5704
|
+
session: "session";
|
|
5705
|
+
organization: "organization";
|
|
5706
|
+
human: "human";
|
|
5707
|
+
harness: "harness";
|
|
5708
|
+
agent: "agent";
|
|
5709
|
+
subagent: "subagent";
|
|
5710
|
+
service: "service";
|
|
5711
|
+
}>;
|
|
5712
|
+
id: z.ZodString;
|
|
5713
|
+
}, z.core.$strict>>>;
|
|
5714
|
+
}, z.core.$strict>>;
|
|
4830
5715
|
}, z.core.$strict>;
|
|
5716
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5717
|
+
id: z.ZodString;
|
|
5718
|
+
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5719
|
+
type: z.ZodLiteral<"human_input">;
|
|
5720
|
+
prompt: z.ZodString;
|
|
5721
|
+
choices: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5722
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
5723
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5724
|
+
id: z.ZodString;
|
|
5725
|
+
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5726
|
+
type: z.ZodLiteral<"delegation">;
|
|
5727
|
+
assignee: z.ZodString;
|
|
5728
|
+
goal: z.ZodString;
|
|
5729
|
+
requiredEvidence: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5730
|
+
type: z.ZodLiteral<"result_equals">;
|
|
5731
|
+
path: z.ZodString;
|
|
5732
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
5733
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5734
|
+
type: z.ZodLiteral<"result_contains">;
|
|
5735
|
+
path: z.ZodString;
|
|
5736
|
+
value: z.ZodString;
|
|
5737
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5738
|
+
type: z.ZodLiteral<"file_exists">;
|
|
5739
|
+
path: z.ZodString;
|
|
5740
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5741
|
+
type: z.ZodLiteral<"file_absent">;
|
|
5742
|
+
path: z.ZodString;
|
|
5743
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5744
|
+
type: z.ZodLiteral<"file_hash">;
|
|
5745
|
+
path: z.ZodString;
|
|
5746
|
+
sha256: z.ZodString;
|
|
5747
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5748
|
+
type: z.ZodLiteral<"exit_code">;
|
|
5749
|
+
value: z.ZodNumber;
|
|
5750
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5751
|
+
type: z.ZodLiteral<"url_matches">;
|
|
5752
|
+
pattern: z.ZodString;
|
|
5753
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5754
|
+
type: z.ZodLiteral<"page_contains">;
|
|
5755
|
+
text: z.ZodString;
|
|
5756
|
+
}, z.core.$strict>], "type">>>;
|
|
4831
5757
|
}, z.core.$strict>], "type">>;
|
|
4832
5758
|
budget: z.ZodOptional<z.ZodObject<{
|
|
4833
5759
|
maxSteps: z.ZodDefault<z.ZodNumber>;
|
|
@@ -4839,6 +5765,7 @@ export declare const WorkflowStatusSchema: z.ZodEnum<{
|
|
|
4839
5765
|
draft: "draft";
|
|
4840
5766
|
planned: "planned";
|
|
4841
5767
|
awaiting_approval: "awaiting_approval";
|
|
5768
|
+
awaiting_input: "awaiting_input";
|
|
4842
5769
|
running: "running";
|
|
4843
5770
|
paused: "paused";
|
|
4844
5771
|
suspended: "suspended";
|
|
@@ -4850,6 +5777,7 @@ export declare const WorkflowStatusSchema: z.ZodEnum<{
|
|
|
4850
5777
|
}>;
|
|
4851
5778
|
export declare const WorkflowNodeStatusSchema: z.ZodEnum<{
|
|
4852
5779
|
awaiting_approval: "awaiting_approval";
|
|
5780
|
+
awaiting_input: "awaiting_input";
|
|
4853
5781
|
running: "running";
|
|
4854
5782
|
verified_complete: "verified_complete";
|
|
4855
5783
|
recovery_required: "recovery_required";
|
|
@@ -4881,6 +5809,7 @@ export declare const WorkflowEventSchema: z.ZodObject<{
|
|
|
4881
5809
|
export declare const WorkflowNodeStateSchema: z.ZodObject<{
|
|
4882
5810
|
status: z.ZodEnum<{
|
|
4883
5811
|
awaiting_approval: "awaiting_approval";
|
|
5812
|
+
awaiting_input: "awaiting_input";
|
|
4884
5813
|
running: "running";
|
|
4885
5814
|
verified_complete: "verified_complete";
|
|
4886
5815
|
recovery_required: "recovery_required";
|
|
@@ -4901,6 +5830,8 @@ export declare const WorkflowNodeStateSchema: z.ZodObject<{
|
|
|
4901
5830
|
expiresAt: z.ZodString;
|
|
4902
5831
|
}, z.core.$strict>>;
|
|
4903
5832
|
iterations: z.ZodOptional<z.ZodNumber>;
|
|
5833
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
5834
|
+
input: z.ZodOptional<z.ZodString>;
|
|
4904
5835
|
error: z.ZodOptional<z.ZodString>;
|
|
4905
5836
|
}, z.core.$strict>;
|
|
4906
5837
|
export declare const WorkflowRunSchema: z.ZodObject<{
|
|
@@ -4912,6 +5843,7 @@ export declare const WorkflowRunSchema: z.ZodObject<{
|
|
|
4912
5843
|
draft: "draft";
|
|
4913
5844
|
planned: "planned";
|
|
4914
5845
|
awaiting_approval: "awaiting_approval";
|
|
5846
|
+
awaiting_input: "awaiting_input";
|
|
4915
5847
|
running: "running";
|
|
4916
5848
|
paused: "paused";
|
|
4917
5849
|
suspended: "suspended";
|
|
@@ -4925,6 +5857,7 @@ export declare const WorkflowRunSchema: z.ZodObject<{
|
|
|
4925
5857
|
nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4926
5858
|
status: z.ZodEnum<{
|
|
4927
5859
|
awaiting_approval: "awaiting_approval";
|
|
5860
|
+
awaiting_input: "awaiting_input";
|
|
4928
5861
|
running: "running";
|
|
4929
5862
|
verified_complete: "verified_complete";
|
|
4930
5863
|
recovery_required: "recovery_required";
|
|
@@ -4945,6 +5878,8 @@ export declare const WorkflowRunSchema: z.ZodObject<{
|
|
|
4945
5878
|
expiresAt: z.ZodString;
|
|
4946
5879
|
}, z.core.$strict>>;
|
|
4947
5880
|
iterations: z.ZodOptional<z.ZodNumber>;
|
|
5881
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
5882
|
+
input: z.ZodOptional<z.ZodString>;
|
|
4948
5883
|
error: z.ZodOptional<z.ZodString>;
|
|
4949
5884
|
}, z.core.$strict>>;
|
|
4950
5885
|
traceId: z.ZodString;
|
|
@@ -4965,6 +5900,7 @@ export declare const WorkflowSnapshotSchema: z.ZodObject<{
|
|
|
4965
5900
|
draft: "draft";
|
|
4966
5901
|
planned: "planned";
|
|
4967
5902
|
awaiting_approval: "awaiting_approval";
|
|
5903
|
+
awaiting_input: "awaiting_input";
|
|
4968
5904
|
running: "running";
|
|
4969
5905
|
paused: "paused";
|
|
4970
5906
|
suspended: "suspended";
|
|
@@ -4978,6 +5914,7 @@ export declare const WorkflowSnapshotSchema: z.ZodObject<{
|
|
|
4978
5914
|
nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4979
5915
|
status: z.ZodEnum<{
|
|
4980
5916
|
awaiting_approval: "awaiting_approval";
|
|
5917
|
+
awaiting_input: "awaiting_input";
|
|
4981
5918
|
running: "running";
|
|
4982
5919
|
verified_complete: "verified_complete";
|
|
4983
5920
|
recovery_required: "recovery_required";
|
|
@@ -4998,6 +5935,8 @@ export declare const WorkflowSnapshotSchema: z.ZodObject<{
|
|
|
4998
5935
|
expiresAt: z.ZodString;
|
|
4999
5936
|
}, z.core.$strict>>;
|
|
5000
5937
|
iterations: z.ZodOptional<z.ZodNumber>;
|
|
5938
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
5939
|
+
input: z.ZodOptional<z.ZodString>;
|
|
5001
5940
|
error: z.ZodOptional<z.ZodString>;
|
|
5002
5941
|
}, z.core.$strict>>;
|
|
5003
5942
|
traceId: z.ZodString;
|
|
@@ -5017,6 +5956,7 @@ export declare const WorkflowAdvanceResultSchema: z.ZodObject<{
|
|
|
5017
5956
|
draft: "draft";
|
|
5018
5957
|
planned: "planned";
|
|
5019
5958
|
awaiting_approval: "awaiting_approval";
|
|
5959
|
+
awaiting_input: "awaiting_input";
|
|
5020
5960
|
running: "running";
|
|
5021
5961
|
paused: "paused";
|
|
5022
5962
|
suspended: "suspended";
|
|
@@ -5030,6 +5970,7 @@ export declare const WorkflowAdvanceResultSchema: z.ZodObject<{
|
|
|
5030
5970
|
nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5031
5971
|
status: z.ZodEnum<{
|
|
5032
5972
|
awaiting_approval: "awaiting_approval";
|
|
5973
|
+
awaiting_input: "awaiting_input";
|
|
5033
5974
|
running: "running";
|
|
5034
5975
|
verified_complete: "verified_complete";
|
|
5035
5976
|
recovery_required: "recovery_required";
|
|
@@ -5050,6 +5991,8 @@ export declare const WorkflowAdvanceResultSchema: z.ZodObject<{
|
|
|
5050
5991
|
expiresAt: z.ZodString;
|
|
5051
5992
|
}, z.core.$strict>>;
|
|
5052
5993
|
iterations: z.ZodOptional<z.ZodNumber>;
|
|
5994
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
5995
|
+
input: z.ZodOptional<z.ZodString>;
|
|
5053
5996
|
error: z.ZodOptional<z.ZodString>;
|
|
5054
5997
|
}, z.core.$strict>>;
|
|
5055
5998
|
traceId: z.ZodString;
|
|
@@ -5110,12 +6053,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5110
6053
|
start: "start";
|
|
5111
6054
|
status: "status";
|
|
5112
6055
|
stop: "stop";
|
|
6056
|
+
send: "send";
|
|
5113
6057
|
}>;
|
|
5114
6058
|
command: z.ZodOptional<z.ZodString>;
|
|
5115
6059
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5116
6060
|
jobId: z.ZodOptional<z.ZodString>;
|
|
5117
6061
|
cwd: z.ZodOptional<z.ZodString>;
|
|
5118
6062
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6063
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
6064
|
+
input: z.ZodOptional<z.ZodString>;
|
|
6065
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
5119
6066
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
5120
6067
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
5121
6068
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5220,11 +6167,13 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5220
6167
|
action: z.ZodEnum<{
|
|
5221
6168
|
type: "type";
|
|
5222
6169
|
move: "move";
|
|
6170
|
+
inspect: "inspect";
|
|
5223
6171
|
click: "click";
|
|
5224
6172
|
scroll: "scroll";
|
|
5225
6173
|
screenshot: "screenshot";
|
|
5226
6174
|
key: "key";
|
|
5227
6175
|
capabilities: "capabilities";
|
|
6176
|
+
drag: "drag";
|
|
5228
6177
|
}>;
|
|
5229
6178
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
5230
6179
|
normalized: "normalized";
|
|
@@ -5232,6 +6181,8 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5232
6181
|
}>>;
|
|
5233
6182
|
x: z.ZodOptional<z.ZodNumber>;
|
|
5234
6183
|
y: z.ZodOptional<z.ZodNumber>;
|
|
6184
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
6185
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
5235
6186
|
text: z.ZodOptional<z.ZodString>;
|
|
5236
6187
|
key: z.ZodOptional<z.ZodEnum<{
|
|
5237
6188
|
ENTER: "ENTER";
|
|
@@ -5294,6 +6245,32 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5294
6245
|
type: z.ZodLiteral<"page_contains">;
|
|
5295
6246
|
text: z.ZodString;
|
|
5296
6247
|
}, z.core.$strict>], "type">>>;
|
|
6248
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
6249
|
+
principal: z.ZodObject<{
|
|
6250
|
+
kind: z.ZodEnum<{
|
|
6251
|
+
session: "session";
|
|
6252
|
+
organization: "organization";
|
|
6253
|
+
human: "human";
|
|
6254
|
+
harness: "harness";
|
|
6255
|
+
agent: "agent";
|
|
6256
|
+
subagent: "subagent";
|
|
6257
|
+
service: "service";
|
|
6258
|
+
}>;
|
|
6259
|
+
id: z.ZodString;
|
|
6260
|
+
}, z.core.$strict>;
|
|
6261
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
6262
|
+
kind: z.ZodEnum<{
|
|
6263
|
+
session: "session";
|
|
6264
|
+
organization: "organization";
|
|
6265
|
+
human: "human";
|
|
6266
|
+
harness: "harness";
|
|
6267
|
+
agent: "agent";
|
|
6268
|
+
subagent: "subagent";
|
|
6269
|
+
service: "service";
|
|
6270
|
+
}>;
|
|
6271
|
+
id: z.ZodString;
|
|
6272
|
+
}, z.core.$strict>>>;
|
|
6273
|
+
}, z.core.$strict>>;
|
|
5297
6274
|
}, z.core.$strict>;
|
|
5298
6275
|
}, z.core.$strict>, z.ZodObject<{
|
|
5299
6276
|
id: z.ZodString;
|
|
@@ -5363,12 +6340,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5363
6340
|
start: "start";
|
|
5364
6341
|
status: "status";
|
|
5365
6342
|
stop: "stop";
|
|
6343
|
+
send: "send";
|
|
5366
6344
|
}>;
|
|
5367
6345
|
command: z.ZodOptional<z.ZodString>;
|
|
5368
6346
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5369
6347
|
jobId: z.ZodOptional<z.ZodString>;
|
|
5370
6348
|
cwd: z.ZodOptional<z.ZodString>;
|
|
5371
6349
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6350
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
6351
|
+
input: z.ZodOptional<z.ZodString>;
|
|
6352
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
5372
6353
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
5373
6354
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
5374
6355
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5473,11 +6454,13 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5473
6454
|
action: z.ZodEnum<{
|
|
5474
6455
|
type: "type";
|
|
5475
6456
|
move: "move";
|
|
6457
|
+
inspect: "inspect";
|
|
5476
6458
|
click: "click";
|
|
5477
6459
|
scroll: "scroll";
|
|
5478
6460
|
screenshot: "screenshot";
|
|
5479
6461
|
key: "key";
|
|
5480
6462
|
capabilities: "capabilities";
|
|
6463
|
+
drag: "drag";
|
|
5481
6464
|
}>;
|
|
5482
6465
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
5483
6466
|
normalized: "normalized";
|
|
@@ -5485,6 +6468,8 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5485
6468
|
}>>;
|
|
5486
6469
|
x: z.ZodOptional<z.ZodNumber>;
|
|
5487
6470
|
y: z.ZodOptional<z.ZodNumber>;
|
|
6471
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
6472
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
5488
6473
|
text: z.ZodOptional<z.ZodString>;
|
|
5489
6474
|
key: z.ZodOptional<z.ZodEnum<{
|
|
5490
6475
|
ENTER: "ENTER";
|
|
@@ -5547,6 +6532,32 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5547
6532
|
type: z.ZodLiteral<"page_contains">;
|
|
5548
6533
|
text: z.ZodString;
|
|
5549
6534
|
}, z.core.$strict>], "type">>>;
|
|
6535
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
6536
|
+
principal: z.ZodObject<{
|
|
6537
|
+
kind: z.ZodEnum<{
|
|
6538
|
+
session: "session";
|
|
6539
|
+
organization: "organization";
|
|
6540
|
+
human: "human";
|
|
6541
|
+
harness: "harness";
|
|
6542
|
+
agent: "agent";
|
|
6543
|
+
subagent: "subagent";
|
|
6544
|
+
service: "service";
|
|
6545
|
+
}>;
|
|
6546
|
+
id: z.ZodString;
|
|
6547
|
+
}, z.core.$strict>;
|
|
6548
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
6549
|
+
kind: z.ZodEnum<{
|
|
6550
|
+
session: "session";
|
|
6551
|
+
organization: "organization";
|
|
6552
|
+
human: "human";
|
|
6553
|
+
harness: "harness";
|
|
6554
|
+
agent: "agent";
|
|
6555
|
+
subagent: "subagent";
|
|
6556
|
+
service: "service";
|
|
6557
|
+
}>;
|
|
6558
|
+
id: z.ZodString;
|
|
6559
|
+
}, z.core.$strict>>>;
|
|
6560
|
+
}, z.core.$strict>>;
|
|
5550
6561
|
}, z.core.$strict>>>;
|
|
5551
6562
|
whenFalse: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5552
6563
|
goal: z.ZodString;
|
|
@@ -5578,12 +6589,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5578
6589
|
start: "start";
|
|
5579
6590
|
status: "status";
|
|
5580
6591
|
stop: "stop";
|
|
6592
|
+
send: "send";
|
|
5581
6593
|
}>;
|
|
5582
6594
|
command: z.ZodOptional<z.ZodString>;
|
|
5583
6595
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5584
6596
|
jobId: z.ZodOptional<z.ZodString>;
|
|
5585
6597
|
cwd: z.ZodOptional<z.ZodString>;
|
|
5586
6598
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6599
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
6600
|
+
input: z.ZodOptional<z.ZodString>;
|
|
6601
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
5587
6602
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
5588
6603
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
5589
6604
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5688,11 +6703,13 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5688
6703
|
action: z.ZodEnum<{
|
|
5689
6704
|
type: "type";
|
|
5690
6705
|
move: "move";
|
|
6706
|
+
inspect: "inspect";
|
|
5691
6707
|
click: "click";
|
|
5692
6708
|
scroll: "scroll";
|
|
5693
6709
|
screenshot: "screenshot";
|
|
5694
6710
|
key: "key";
|
|
5695
6711
|
capabilities: "capabilities";
|
|
6712
|
+
drag: "drag";
|
|
5696
6713
|
}>;
|
|
5697
6714
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
5698
6715
|
normalized: "normalized";
|
|
@@ -5700,6 +6717,8 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5700
6717
|
}>>;
|
|
5701
6718
|
x: z.ZodOptional<z.ZodNumber>;
|
|
5702
6719
|
y: z.ZodOptional<z.ZodNumber>;
|
|
6720
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
6721
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
5703
6722
|
text: z.ZodOptional<z.ZodString>;
|
|
5704
6723
|
key: z.ZodOptional<z.ZodEnum<{
|
|
5705
6724
|
ENTER: "ENTER";
|
|
@@ -5762,6 +6781,32 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5762
6781
|
type: z.ZodLiteral<"page_contains">;
|
|
5763
6782
|
text: z.ZodString;
|
|
5764
6783
|
}, z.core.$strict>], "type">>>;
|
|
6784
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
6785
|
+
principal: z.ZodObject<{
|
|
6786
|
+
kind: z.ZodEnum<{
|
|
6787
|
+
session: "session";
|
|
6788
|
+
organization: "organization";
|
|
6789
|
+
human: "human";
|
|
6790
|
+
harness: "harness";
|
|
6791
|
+
agent: "agent";
|
|
6792
|
+
subagent: "subagent";
|
|
6793
|
+
service: "service";
|
|
6794
|
+
}>;
|
|
6795
|
+
id: z.ZodString;
|
|
6796
|
+
}, z.core.$strict>;
|
|
6797
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
6798
|
+
kind: z.ZodEnum<{
|
|
6799
|
+
session: "session";
|
|
6800
|
+
organization: "organization";
|
|
6801
|
+
human: "human";
|
|
6802
|
+
harness: "harness";
|
|
6803
|
+
agent: "agent";
|
|
6804
|
+
subagent: "subagent";
|
|
6805
|
+
service: "service";
|
|
6806
|
+
}>;
|
|
6807
|
+
id: z.ZodString;
|
|
6808
|
+
}, z.core.$strict>>>;
|
|
6809
|
+
}, z.core.$strict>>;
|
|
5765
6810
|
}, z.core.$strict>>>;
|
|
5766
6811
|
}, z.core.$strict>, z.ZodObject<{
|
|
5767
6812
|
id: z.ZodString;
|
|
@@ -5797,12 +6842,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5797
6842
|
start: "start";
|
|
5798
6843
|
status: "status";
|
|
5799
6844
|
stop: "stop";
|
|
6845
|
+
send: "send";
|
|
5800
6846
|
}>;
|
|
5801
6847
|
command: z.ZodOptional<z.ZodString>;
|
|
5802
6848
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5803
6849
|
jobId: z.ZodOptional<z.ZodString>;
|
|
5804
6850
|
cwd: z.ZodOptional<z.ZodString>;
|
|
5805
6851
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6852
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
6853
|
+
input: z.ZodOptional<z.ZodString>;
|
|
6854
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
5806
6855
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
5807
6856
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
5808
6857
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -5907,11 +6956,13 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5907
6956
|
action: z.ZodEnum<{
|
|
5908
6957
|
type: "type";
|
|
5909
6958
|
move: "move";
|
|
6959
|
+
inspect: "inspect";
|
|
5910
6960
|
click: "click";
|
|
5911
6961
|
scroll: "scroll";
|
|
5912
6962
|
screenshot: "screenshot";
|
|
5913
6963
|
key: "key";
|
|
5914
6964
|
capabilities: "capabilities";
|
|
6965
|
+
drag: "drag";
|
|
5915
6966
|
}>;
|
|
5916
6967
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
5917
6968
|
normalized: "normalized";
|
|
@@ -5919,6 +6970,8 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5919
6970
|
}>>;
|
|
5920
6971
|
x: z.ZodOptional<z.ZodNumber>;
|
|
5921
6972
|
y: z.ZodOptional<z.ZodNumber>;
|
|
6973
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
6974
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
5922
6975
|
text: z.ZodOptional<z.ZodString>;
|
|
5923
6976
|
key: z.ZodOptional<z.ZodEnum<{
|
|
5924
6977
|
ENTER: "ENTER";
|
|
@@ -5981,6 +7034,32 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
5981
7034
|
type: z.ZodLiteral<"page_contains">;
|
|
5982
7035
|
text: z.ZodString;
|
|
5983
7036
|
}, z.core.$strict>], "type">>>;
|
|
7037
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
7038
|
+
principal: z.ZodObject<{
|
|
7039
|
+
kind: z.ZodEnum<{
|
|
7040
|
+
session: "session";
|
|
7041
|
+
organization: "organization";
|
|
7042
|
+
human: "human";
|
|
7043
|
+
harness: "harness";
|
|
7044
|
+
agent: "agent";
|
|
7045
|
+
subagent: "subagent";
|
|
7046
|
+
service: "service";
|
|
7047
|
+
}>;
|
|
7048
|
+
id: z.ZodString;
|
|
7049
|
+
}, z.core.$strict>;
|
|
7050
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7051
|
+
kind: z.ZodEnum<{
|
|
7052
|
+
session: "session";
|
|
7053
|
+
organization: "organization";
|
|
7054
|
+
human: "human";
|
|
7055
|
+
harness: "harness";
|
|
7056
|
+
agent: "agent";
|
|
7057
|
+
subagent: "subagent";
|
|
7058
|
+
service: "service";
|
|
7059
|
+
}>;
|
|
7060
|
+
id: z.ZodString;
|
|
7061
|
+
}, z.core.$strict>>>;
|
|
7062
|
+
}, z.core.$strict>>;
|
|
5984
7063
|
}, z.core.$strict>>>;
|
|
5985
7064
|
}, z.core.$strict>, z.ZodObject<{
|
|
5986
7065
|
id: z.ZodString;
|
|
@@ -6016,12 +7095,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
6016
7095
|
start: "start";
|
|
6017
7096
|
status: "status";
|
|
6018
7097
|
stop: "stop";
|
|
7098
|
+
send: "send";
|
|
6019
7099
|
}>;
|
|
6020
7100
|
command: z.ZodOptional<z.ZodString>;
|
|
6021
7101
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6022
7102
|
jobId: z.ZodOptional<z.ZodString>;
|
|
6023
7103
|
cwd: z.ZodOptional<z.ZodString>;
|
|
6024
7104
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7105
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
7106
|
+
input: z.ZodOptional<z.ZodString>;
|
|
7107
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
6025
7108
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
6026
7109
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
6027
7110
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -6126,11 +7209,13 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
6126
7209
|
action: z.ZodEnum<{
|
|
6127
7210
|
type: "type";
|
|
6128
7211
|
move: "move";
|
|
7212
|
+
inspect: "inspect";
|
|
6129
7213
|
click: "click";
|
|
6130
7214
|
scroll: "scroll";
|
|
6131
7215
|
screenshot: "screenshot";
|
|
6132
7216
|
key: "key";
|
|
6133
7217
|
capabilities: "capabilities";
|
|
7218
|
+
drag: "drag";
|
|
6134
7219
|
}>;
|
|
6135
7220
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
6136
7221
|
normalized: "normalized";
|
|
@@ -6138,6 +7223,8 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
6138
7223
|
}>>;
|
|
6139
7224
|
x: z.ZodOptional<z.ZodNumber>;
|
|
6140
7225
|
y: z.ZodOptional<z.ZodNumber>;
|
|
7226
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
7227
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
6141
7228
|
text: z.ZodOptional<z.ZodString>;
|
|
6142
7229
|
key: z.ZodOptional<z.ZodEnum<{
|
|
6143
7230
|
ENTER: "ENTER";
|
|
@@ -6200,6 +7287,32 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
6200
7287
|
type: z.ZodLiteral<"page_contains">;
|
|
6201
7288
|
text: z.ZodString;
|
|
6202
7289
|
}, z.core.$strict>], "type">>>;
|
|
7290
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
7291
|
+
principal: z.ZodObject<{
|
|
7292
|
+
kind: z.ZodEnum<{
|
|
7293
|
+
session: "session";
|
|
7294
|
+
organization: "organization";
|
|
7295
|
+
human: "human";
|
|
7296
|
+
harness: "harness";
|
|
7297
|
+
agent: "agent";
|
|
7298
|
+
subagent: "subagent";
|
|
7299
|
+
service: "service";
|
|
7300
|
+
}>;
|
|
7301
|
+
id: z.ZodString;
|
|
7302
|
+
}, z.core.$strict>;
|
|
7303
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7304
|
+
kind: z.ZodEnum<{
|
|
7305
|
+
session: "session";
|
|
7306
|
+
organization: "organization";
|
|
7307
|
+
human: "human";
|
|
7308
|
+
harness: "harness";
|
|
7309
|
+
agent: "agent";
|
|
7310
|
+
subagent: "subagent";
|
|
7311
|
+
service: "service";
|
|
7312
|
+
}>;
|
|
7313
|
+
id: z.ZodString;
|
|
7314
|
+
}, z.core.$strict>>>;
|
|
7315
|
+
}, z.core.$strict>>;
|
|
6203
7316
|
}, z.core.$strict>>;
|
|
6204
7317
|
maxIterations: z.ZodNumber;
|
|
6205
7318
|
until: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -6269,12 +7382,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
6269
7382
|
start: "start";
|
|
6270
7383
|
status: "status";
|
|
6271
7384
|
stop: "stop";
|
|
7385
|
+
send: "send";
|
|
6272
7386
|
}>;
|
|
6273
7387
|
command: z.ZodOptional<z.ZodString>;
|
|
6274
7388
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6275
7389
|
jobId: z.ZodOptional<z.ZodString>;
|
|
6276
7390
|
cwd: z.ZodOptional<z.ZodString>;
|
|
6277
7391
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7392
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
7393
|
+
input: z.ZodOptional<z.ZodString>;
|
|
7394
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
6278
7395
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
6279
7396
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
6280
7397
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -6379,11 +7496,13 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
6379
7496
|
action: z.ZodEnum<{
|
|
6380
7497
|
type: "type";
|
|
6381
7498
|
move: "move";
|
|
7499
|
+
inspect: "inspect";
|
|
6382
7500
|
click: "click";
|
|
6383
7501
|
scroll: "scroll";
|
|
6384
7502
|
screenshot: "screenshot";
|
|
6385
7503
|
key: "key";
|
|
6386
7504
|
capabilities: "capabilities";
|
|
7505
|
+
drag: "drag";
|
|
6387
7506
|
}>;
|
|
6388
7507
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
6389
7508
|
normalized: "normalized";
|
|
@@ -6391,6 +7510,8 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
6391
7510
|
}>>;
|
|
6392
7511
|
x: z.ZodOptional<z.ZodNumber>;
|
|
6393
7512
|
y: z.ZodOptional<z.ZodNumber>;
|
|
7513
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
7514
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
6394
7515
|
text: z.ZodOptional<z.ZodString>;
|
|
6395
7516
|
key: z.ZodOptional<z.ZodEnum<{
|
|
6396
7517
|
ENTER: "ENTER";
|
|
@@ -6453,7 +7574,74 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
|
|
|
6453
7574
|
type: z.ZodLiteral<"page_contains">;
|
|
6454
7575
|
text: z.ZodString;
|
|
6455
7576
|
}, z.core.$strict>], "type">>>;
|
|
7577
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
7578
|
+
principal: z.ZodObject<{
|
|
7579
|
+
kind: z.ZodEnum<{
|
|
7580
|
+
session: "session";
|
|
7581
|
+
organization: "organization";
|
|
7582
|
+
human: "human";
|
|
7583
|
+
harness: "harness";
|
|
7584
|
+
agent: "agent";
|
|
7585
|
+
subagent: "subagent";
|
|
7586
|
+
service: "service";
|
|
7587
|
+
}>;
|
|
7588
|
+
id: z.ZodString;
|
|
7589
|
+
}, z.core.$strict>;
|
|
7590
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7591
|
+
kind: z.ZodEnum<{
|
|
7592
|
+
session: "session";
|
|
7593
|
+
organization: "organization";
|
|
7594
|
+
human: "human";
|
|
7595
|
+
harness: "harness";
|
|
7596
|
+
agent: "agent";
|
|
7597
|
+
subagent: "subagent";
|
|
7598
|
+
service: "service";
|
|
7599
|
+
}>;
|
|
7600
|
+
id: z.ZodString;
|
|
7601
|
+
}, z.core.$strict>>>;
|
|
7602
|
+
}, z.core.$strict>>;
|
|
6456
7603
|
}, z.core.$strict>;
|
|
7604
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7605
|
+
id: z.ZodString;
|
|
7606
|
+
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7607
|
+
type: z.ZodLiteral<"human_input">;
|
|
7608
|
+
prompt: z.ZodString;
|
|
7609
|
+
choices: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7610
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
7611
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7612
|
+
id: z.ZodString;
|
|
7613
|
+
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7614
|
+
type: z.ZodLiteral<"delegation">;
|
|
7615
|
+
assignee: z.ZodString;
|
|
7616
|
+
goal: z.ZodString;
|
|
7617
|
+
requiredEvidence: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7618
|
+
type: z.ZodLiteral<"result_equals">;
|
|
7619
|
+
path: z.ZodString;
|
|
7620
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
7621
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7622
|
+
type: z.ZodLiteral<"result_contains">;
|
|
7623
|
+
path: z.ZodString;
|
|
7624
|
+
value: z.ZodString;
|
|
7625
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7626
|
+
type: z.ZodLiteral<"file_exists">;
|
|
7627
|
+
path: z.ZodString;
|
|
7628
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7629
|
+
type: z.ZodLiteral<"file_absent">;
|
|
7630
|
+
path: z.ZodString;
|
|
7631
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7632
|
+
type: z.ZodLiteral<"file_hash">;
|
|
7633
|
+
path: z.ZodString;
|
|
7634
|
+
sha256: z.ZodString;
|
|
7635
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7636
|
+
type: z.ZodLiteral<"exit_code">;
|
|
7637
|
+
value: z.ZodNumber;
|
|
7638
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7639
|
+
type: z.ZodLiteral<"url_matches">;
|
|
7640
|
+
pattern: z.ZodString;
|
|
7641
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
7642
|
+
type: z.ZodLiteral<"page_contains">;
|
|
7643
|
+
text: z.ZodString;
|
|
7644
|
+
}, z.core.$strict>], "type">>>;
|
|
6457
7645
|
}, z.core.$strict>], "type">>;
|
|
6458
7646
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6459
7647
|
maxSteps: z.ZodDefault<z.ZodNumber>;
|
|
@@ -6468,10 +7656,22 @@ export declare const WorkflowAdvanceInputSchema: z.ZodObject<{
|
|
|
6468
7656
|
approvalId: z.ZodString;
|
|
6469
7657
|
phrase: z.ZodString;
|
|
6470
7658
|
}, z.core.$strict>>>;
|
|
7659
|
+
inputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7660
|
+
nodeId: z.ZodString;
|
|
7661
|
+
value: z.ZodString;
|
|
7662
|
+
}, z.core.$strict>>>;
|
|
6471
7663
|
}, z.core.$strict>;
|
|
6472
7664
|
export declare const WorkflowIdInputSchema: z.ZodObject<{
|
|
6473
7665
|
workflowId: z.ZodString;
|
|
6474
7666
|
}, z.core.$strict>;
|
|
7667
|
+
export declare const WorkflowControlInputSchema: z.ZodObject<{
|
|
7668
|
+
workflowId: z.ZodString;
|
|
7669
|
+
action: z.ZodEnum<{
|
|
7670
|
+
pause: "pause";
|
|
7671
|
+
resume: "resume";
|
|
7672
|
+
suspend: "suspend";
|
|
7673
|
+
}>;
|
|
7674
|
+
}, z.core.$strict>;
|
|
6475
7675
|
export type WorkflowNodeId = z.infer<typeof WorkflowNodeIdSchema>;
|
|
6476
7676
|
export type OperationNode = z.infer<typeof OperationNodeSchema>;
|
|
6477
7677
|
export type ApprovalNode = z.infer<typeof ApprovalNodeSchema>;
|
|
@@ -6482,6 +7682,7 @@ export type CheckpointNode = z.infer<typeof CheckpointNodeSchema>;
|
|
|
6482
7682
|
export type CompensationNode = z.infer<typeof CompensationNodeSchema>;
|
|
6483
7683
|
export type WorkflowNode = z.infer<typeof WorkflowNodeSchema>;
|
|
6484
7684
|
export type WorkflowDefinition = z.infer<typeof WorkflowDefinitionSchema>;
|
|
7685
|
+
export type WorkflowDefinitionInput = z.input<typeof WorkflowDefinitionSchema>;
|
|
6485
7686
|
export type WorkflowStatus = z.infer<typeof WorkflowStatusSchema>;
|
|
6486
7687
|
export type WorkflowNodeStatus = z.infer<typeof WorkflowNodeStatusSchema>;
|
|
6487
7688
|
export type EncryptedPayload = z.infer<typeof EncryptedPayloadSchema>;
|
|
@@ -6493,6 +7694,9 @@ export type WorkflowAdvanceResult = z.infer<typeof WorkflowAdvanceResultSchema>;
|
|
|
6493
7694
|
export type WorkflowPlanInput = z.infer<typeof WorkflowPlanInputSchema>;
|
|
6494
7695
|
export type WorkflowAdvanceInput = z.infer<typeof WorkflowAdvanceInputSchema>;
|
|
6495
7696
|
export type WorkflowIdInput = z.infer<typeof WorkflowIdInputSchema>;
|
|
7697
|
+
export type WorkflowControlInput = z.infer<typeof WorkflowControlInputSchema>;
|
|
7698
|
+
export type HumanInputNode = z.infer<typeof HumanInputNodeSchema>;
|
|
7699
|
+
export type DelegationNode = z.infer<typeof DelegationNodeSchema>;
|
|
6496
7700
|
export declare const TaskStatusSchema: z.ZodEnum<{
|
|
6497
7701
|
planned: "planned";
|
|
6498
7702
|
awaiting_approval: "awaiting_approval";
|
|
@@ -6524,6 +7728,17 @@ export interface TaskRecord {
|
|
|
6524
7728
|
createdAt: string;
|
|
6525
7729
|
updatedAt: string;
|
|
6526
7730
|
}
|
|
7731
|
+
/**
|
|
7732
|
+
* Assemble the contract for a planned task.
|
|
7733
|
+
*
|
|
7734
|
+
* `classification` comes from `classifyOperation`, which lives in the policy
|
|
7735
|
+
* package; passing it in keeps this file free of dependencies and keeps one
|
|
7736
|
+
* classifier authoritative instead of a second copy that could disagree.
|
|
7737
|
+
*/
|
|
7738
|
+
export declare function effectContract(task: TaskRecord, classification: {
|
|
7739
|
+
capability: string;
|
|
7740
|
+
target: string;
|
|
7741
|
+
}): EffectContract;
|
|
6527
7742
|
export declare const MelraCapabilitiesInputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
6528
7743
|
export declare const MelraPlanInputSchema: z.ZodObject<{
|
|
6529
7744
|
goal: z.ZodString;
|
|
@@ -6555,12 +7770,16 @@ export declare const MelraPlanInputSchema: z.ZodObject<{
|
|
|
6555
7770
|
start: "start";
|
|
6556
7771
|
status: "status";
|
|
6557
7772
|
stop: "stop";
|
|
7773
|
+
send: "send";
|
|
6558
7774
|
}>;
|
|
6559
7775
|
command: z.ZodOptional<z.ZodString>;
|
|
6560
7776
|
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6561
7777
|
jobId: z.ZodOptional<z.ZodString>;
|
|
6562
7778
|
cwd: z.ZodOptional<z.ZodString>;
|
|
6563
7779
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7780
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
7781
|
+
input: z.ZodOptional<z.ZodString>;
|
|
7782
|
+
appendNewline: z.ZodDefault<z.ZodBoolean>;
|
|
6564
7783
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
6565
7784
|
maxOutputChars: z.ZodDefault<z.ZodNumber>;
|
|
6566
7785
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -6665,11 +7884,13 @@ export declare const MelraPlanInputSchema: z.ZodObject<{
|
|
|
6665
7884
|
action: z.ZodEnum<{
|
|
6666
7885
|
type: "type";
|
|
6667
7886
|
move: "move";
|
|
7887
|
+
inspect: "inspect";
|
|
6668
7888
|
click: "click";
|
|
6669
7889
|
scroll: "scroll";
|
|
6670
7890
|
screenshot: "screenshot";
|
|
6671
7891
|
key: "key";
|
|
6672
7892
|
capabilities: "capabilities";
|
|
7893
|
+
drag: "drag";
|
|
6673
7894
|
}>;
|
|
6674
7895
|
coordinateSpace: z.ZodDefault<z.ZodEnum<{
|
|
6675
7896
|
normalized: "normalized";
|
|
@@ -6677,6 +7898,8 @@ export declare const MelraPlanInputSchema: z.ZodObject<{
|
|
|
6677
7898
|
}>>;
|
|
6678
7899
|
x: z.ZodOptional<z.ZodNumber>;
|
|
6679
7900
|
y: z.ZodOptional<z.ZodNumber>;
|
|
7901
|
+
toX: z.ZodOptional<z.ZodNumber>;
|
|
7902
|
+
toY: z.ZodOptional<z.ZodNumber>;
|
|
6680
7903
|
text: z.ZodOptional<z.ZodString>;
|
|
6681
7904
|
key: z.ZodOptional<z.ZodEnum<{
|
|
6682
7905
|
ENTER: "ENTER";
|
|
@@ -6739,6 +7962,32 @@ export declare const MelraPlanInputSchema: z.ZodObject<{
|
|
|
6739
7962
|
type: z.ZodLiteral<"page_contains">;
|
|
6740
7963
|
text: z.ZodString;
|
|
6741
7964
|
}, z.core.$strict>], "type">>>;
|
|
7965
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
7966
|
+
principal: z.ZodObject<{
|
|
7967
|
+
kind: z.ZodEnum<{
|
|
7968
|
+
session: "session";
|
|
7969
|
+
organization: "organization";
|
|
7970
|
+
human: "human";
|
|
7971
|
+
harness: "harness";
|
|
7972
|
+
agent: "agent";
|
|
7973
|
+
subagent: "subagent";
|
|
7974
|
+
service: "service";
|
|
7975
|
+
}>;
|
|
7976
|
+
id: z.ZodString;
|
|
7977
|
+
}, z.core.$strict>;
|
|
7978
|
+
onBehalfOf: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7979
|
+
kind: z.ZodEnum<{
|
|
7980
|
+
session: "session";
|
|
7981
|
+
organization: "organization";
|
|
7982
|
+
human: "human";
|
|
7983
|
+
harness: "harness";
|
|
7984
|
+
agent: "agent";
|
|
7985
|
+
subagent: "subagent";
|
|
7986
|
+
service: "service";
|
|
7987
|
+
}>;
|
|
7988
|
+
id: z.ZodString;
|
|
7989
|
+
}, z.core.$strict>>>;
|
|
7990
|
+
}, z.core.$strict>>;
|
|
6742
7991
|
}, z.core.$strict>;
|
|
6743
7992
|
export declare const MelraExecuteInputSchema: z.ZodObject<{
|
|
6744
7993
|
taskId: z.ZodString;
|
|
@@ -6761,5 +8010,5 @@ export declare const MelraReceiptInputSchema: z.ZodObject<{
|
|
|
6761
8010
|
taskId: z.ZodOptional<z.ZodString>;
|
|
6762
8011
|
receiptId: z.ZodOptional<z.ZodString>;
|
|
6763
8012
|
}, z.core.$strict>;
|
|
6764
|
-
export declare const TOOL_NAMES: readonly ["melra_capabilities", "melra_plan", "melra_execute", "melra_task_status", "melra_task_cancel", "melra_receipt", "melra_workflow_plan", "melra_workflow_advance", "melra_workflow_status", "melra_workflow_cancel"];
|
|
8013
|
+
export declare const TOOL_NAMES: readonly ["melra_capabilities", "melra_plan", "melra_execute", "melra_task_status", "melra_task_cancel", "melra_receipt", "melra_workflow_plan", "melra_workflow_advance", "melra_workflow_status", "melra_workflow_cancel", "melra_workflow_control"];
|
|
6765
8014
|
//# sourceMappingURL=index.d.ts.map
|