@melra/protocol 0.3.0-alpha.5 → 0.3.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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.5";
3
+ export declare const PRODUCT_VERSION = "0.3.0-alpha.8";
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,6 +2425,32 @@ 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>;
2068
2456
  export declare const HumanInputNodeSchema: z.ZodObject<{
@@ -2142,12 +2530,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2142
2530
  start: "start";
2143
2531
  status: "status";
2144
2532
  stop: "stop";
2533
+ send: "send";
2145
2534
  }>;
2146
2535
  command: z.ZodOptional<z.ZodString>;
2147
2536
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
2148
2537
  jobId: z.ZodOptional<z.ZodString>;
2149
2538
  cwd: z.ZodOptional<z.ZodString>;
2150
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>;
2151
2543
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2152
2544
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
2153
2545
  }, z.core.$strict>, z.ZodObject<{
@@ -2252,11 +2644,13 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2252
2644
  action: z.ZodEnum<{
2253
2645
  type: "type";
2254
2646
  move: "move";
2647
+ inspect: "inspect";
2255
2648
  click: "click";
2256
2649
  scroll: "scroll";
2257
2650
  screenshot: "screenshot";
2258
2651
  key: "key";
2259
2652
  capabilities: "capabilities";
2653
+ drag: "drag";
2260
2654
  }>;
2261
2655
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
2262
2656
  normalized: "normalized";
@@ -2264,6 +2658,8 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2264
2658
  }>>;
2265
2659
  x: z.ZodOptional<z.ZodNumber>;
2266
2660
  y: z.ZodOptional<z.ZodNumber>;
2661
+ toX: z.ZodOptional<z.ZodNumber>;
2662
+ toY: z.ZodOptional<z.ZodNumber>;
2267
2663
  text: z.ZodOptional<z.ZodString>;
2268
2664
  key: z.ZodOptional<z.ZodEnum<{
2269
2665
  ENTER: "ENTER";
@@ -2326,6 +2722,32 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2326
2722
  type: z.ZodLiteral<"page_contains">;
2327
2723
  text: z.ZodString;
2328
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>>;
2329
2751
  }, z.core.$strict>;
2330
2752
  }, z.core.$strict>, z.ZodObject<{
2331
2753
  id: z.ZodString;
@@ -2395,12 +2817,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2395
2817
  start: "start";
2396
2818
  status: "status";
2397
2819
  stop: "stop";
2820
+ send: "send";
2398
2821
  }>;
2399
2822
  command: z.ZodOptional<z.ZodString>;
2400
2823
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
2401
2824
  jobId: z.ZodOptional<z.ZodString>;
2402
2825
  cwd: z.ZodOptional<z.ZodString>;
2403
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>;
2404
2830
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2405
2831
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
2406
2832
  }, z.core.$strict>, z.ZodObject<{
@@ -2505,11 +2931,13 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2505
2931
  action: z.ZodEnum<{
2506
2932
  type: "type";
2507
2933
  move: "move";
2934
+ inspect: "inspect";
2508
2935
  click: "click";
2509
2936
  scroll: "scroll";
2510
2937
  screenshot: "screenshot";
2511
2938
  key: "key";
2512
2939
  capabilities: "capabilities";
2940
+ drag: "drag";
2513
2941
  }>;
2514
2942
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
2515
2943
  normalized: "normalized";
@@ -2517,6 +2945,8 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2517
2945
  }>>;
2518
2946
  x: z.ZodOptional<z.ZodNumber>;
2519
2947
  y: z.ZodOptional<z.ZodNumber>;
2948
+ toX: z.ZodOptional<z.ZodNumber>;
2949
+ toY: z.ZodOptional<z.ZodNumber>;
2520
2950
  text: z.ZodOptional<z.ZodString>;
2521
2951
  key: z.ZodOptional<z.ZodEnum<{
2522
2952
  ENTER: "ENTER";
@@ -2579,6 +3009,32 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2579
3009
  type: z.ZodLiteral<"page_contains">;
2580
3010
  text: z.ZodString;
2581
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>>;
2582
3038
  }, z.core.$strict>>>;
2583
3039
  whenFalse: z.ZodDefault<z.ZodArray<z.ZodObject<{
2584
3040
  goal: z.ZodString;
@@ -2610,12 +3066,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2610
3066
  start: "start";
2611
3067
  status: "status";
2612
3068
  stop: "stop";
3069
+ send: "send";
2613
3070
  }>;
2614
3071
  command: z.ZodOptional<z.ZodString>;
2615
3072
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
2616
3073
  jobId: z.ZodOptional<z.ZodString>;
2617
3074
  cwd: z.ZodOptional<z.ZodString>;
2618
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>;
2619
3079
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2620
3080
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
2621
3081
  }, z.core.$strict>, z.ZodObject<{
@@ -2720,11 +3180,13 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2720
3180
  action: z.ZodEnum<{
2721
3181
  type: "type";
2722
3182
  move: "move";
3183
+ inspect: "inspect";
2723
3184
  click: "click";
2724
3185
  scroll: "scroll";
2725
3186
  screenshot: "screenshot";
2726
3187
  key: "key";
2727
3188
  capabilities: "capabilities";
3189
+ drag: "drag";
2728
3190
  }>;
2729
3191
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
2730
3192
  normalized: "normalized";
@@ -2732,6 +3194,8 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2732
3194
  }>>;
2733
3195
  x: z.ZodOptional<z.ZodNumber>;
2734
3196
  y: z.ZodOptional<z.ZodNumber>;
3197
+ toX: z.ZodOptional<z.ZodNumber>;
3198
+ toY: z.ZodOptional<z.ZodNumber>;
2735
3199
  text: z.ZodOptional<z.ZodString>;
2736
3200
  key: z.ZodOptional<z.ZodEnum<{
2737
3201
  ENTER: "ENTER";
@@ -2794,6 +3258,32 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2794
3258
  type: z.ZodLiteral<"page_contains">;
2795
3259
  text: z.ZodString;
2796
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>>;
2797
3287
  }, z.core.$strict>>>;
2798
3288
  }, z.core.$strict>, z.ZodObject<{
2799
3289
  id: z.ZodString;
@@ -2829,12 +3319,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2829
3319
  start: "start";
2830
3320
  status: "status";
2831
3321
  stop: "stop";
3322
+ send: "send";
2832
3323
  }>;
2833
3324
  command: z.ZodOptional<z.ZodString>;
2834
3325
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
2835
3326
  jobId: z.ZodOptional<z.ZodString>;
2836
3327
  cwd: z.ZodOptional<z.ZodString>;
2837
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>;
2838
3332
  timeoutMs: z.ZodDefault<z.ZodNumber>;
2839
3333
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
2840
3334
  }, z.core.$strict>, z.ZodObject<{
@@ -2939,11 +3433,13 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2939
3433
  action: z.ZodEnum<{
2940
3434
  type: "type";
2941
3435
  move: "move";
3436
+ inspect: "inspect";
2942
3437
  click: "click";
2943
3438
  scroll: "scroll";
2944
3439
  screenshot: "screenshot";
2945
3440
  key: "key";
2946
3441
  capabilities: "capabilities";
3442
+ drag: "drag";
2947
3443
  }>;
2948
3444
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
2949
3445
  normalized: "normalized";
@@ -2951,6 +3447,8 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2951
3447
  }>>;
2952
3448
  x: z.ZodOptional<z.ZodNumber>;
2953
3449
  y: z.ZodOptional<z.ZodNumber>;
3450
+ toX: z.ZodOptional<z.ZodNumber>;
3451
+ toY: z.ZodOptional<z.ZodNumber>;
2954
3452
  text: z.ZodOptional<z.ZodString>;
2955
3453
  key: z.ZodOptional<z.ZodEnum<{
2956
3454
  ENTER: "ENTER";
@@ -3013,6 +3511,32 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3013
3511
  type: z.ZodLiteral<"page_contains">;
3014
3512
  text: z.ZodString;
3015
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>>;
3016
3540
  }, z.core.$strict>>>;
3017
3541
  }, z.core.$strict>, z.ZodObject<{
3018
3542
  id: z.ZodString;
@@ -3048,12 +3572,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3048
3572
  start: "start";
3049
3573
  status: "status";
3050
3574
  stop: "stop";
3575
+ send: "send";
3051
3576
  }>;
3052
3577
  command: z.ZodOptional<z.ZodString>;
3053
3578
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
3054
3579
  jobId: z.ZodOptional<z.ZodString>;
3055
3580
  cwd: z.ZodOptional<z.ZodString>;
3056
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>;
3057
3585
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3058
3586
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
3059
3587
  }, z.core.$strict>, z.ZodObject<{
@@ -3158,11 +3686,13 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3158
3686
  action: z.ZodEnum<{
3159
3687
  type: "type";
3160
3688
  move: "move";
3689
+ inspect: "inspect";
3161
3690
  click: "click";
3162
3691
  scroll: "scroll";
3163
3692
  screenshot: "screenshot";
3164
3693
  key: "key";
3165
3694
  capabilities: "capabilities";
3695
+ drag: "drag";
3166
3696
  }>;
3167
3697
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
3168
3698
  normalized: "normalized";
@@ -3170,6 +3700,8 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3170
3700
  }>>;
3171
3701
  x: z.ZodOptional<z.ZodNumber>;
3172
3702
  y: z.ZodOptional<z.ZodNumber>;
3703
+ toX: z.ZodOptional<z.ZodNumber>;
3704
+ toY: z.ZodOptional<z.ZodNumber>;
3173
3705
  text: z.ZodOptional<z.ZodString>;
3174
3706
  key: z.ZodOptional<z.ZodEnum<{
3175
3707
  ENTER: "ENTER";
@@ -3232,6 +3764,32 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3232
3764
  type: z.ZodLiteral<"page_contains">;
3233
3765
  text: z.ZodString;
3234
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>>;
3235
3793
  }, z.core.$strict>>;
3236
3794
  maxIterations: z.ZodNumber;
3237
3795
  until: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -3301,12 +3859,16 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3301
3859
  start: "start";
3302
3860
  status: "status";
3303
3861
  stop: "stop";
3862
+ send: "send";
3304
3863
  }>;
3305
3864
  command: z.ZodOptional<z.ZodString>;
3306
3865
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
3307
3866
  jobId: z.ZodOptional<z.ZodString>;
3308
3867
  cwd: z.ZodOptional<z.ZodString>;
3309
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>;
3310
3872
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3311
3873
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
3312
3874
  }, z.core.$strict>, z.ZodObject<{
@@ -3411,11 +3973,13 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3411
3973
  action: z.ZodEnum<{
3412
3974
  type: "type";
3413
3975
  move: "move";
3976
+ inspect: "inspect";
3414
3977
  click: "click";
3415
3978
  scroll: "scroll";
3416
3979
  screenshot: "screenshot";
3417
3980
  key: "key";
3418
3981
  capabilities: "capabilities";
3982
+ drag: "drag";
3419
3983
  }>;
3420
3984
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
3421
3985
  normalized: "normalized";
@@ -3423,6 +3987,8 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3423
3987
  }>>;
3424
3988
  x: z.ZodOptional<z.ZodNumber>;
3425
3989
  y: z.ZodOptional<z.ZodNumber>;
3990
+ toX: z.ZodOptional<z.ZodNumber>;
3991
+ toY: z.ZodOptional<z.ZodNumber>;
3426
3992
  text: z.ZodOptional<z.ZodString>;
3427
3993
  key: z.ZodOptional<z.ZodEnum<{
3428
3994
  ENTER: "ENTER";
@@ -3485,6 +4051,32 @@ export declare const WorkflowNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3485
4051
  type: z.ZodLiteral<"page_contains">;
3486
4052
  text: z.ZodString;
3487
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>>;
3488
4080
  }, z.core.$strict>;
3489
4081
  }, z.core.$strict>, z.ZodObject<{
3490
4082
  id: z.ZodString;
@@ -3573,12 +4165,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
3573
4165
  start: "start";
3574
4166
  status: "status";
3575
4167
  stop: "stop";
4168
+ send: "send";
3576
4169
  }>;
3577
4170
  command: z.ZodOptional<z.ZodString>;
3578
4171
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
3579
4172
  jobId: z.ZodOptional<z.ZodString>;
3580
4173
  cwd: z.ZodOptional<z.ZodString>;
3581
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>;
3582
4178
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3583
4179
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
3584
4180
  }, z.core.$strict>, z.ZodObject<{
@@ -3683,11 +4279,13 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
3683
4279
  action: z.ZodEnum<{
3684
4280
  type: "type";
3685
4281
  move: "move";
4282
+ inspect: "inspect";
3686
4283
  click: "click";
3687
4284
  scroll: "scroll";
3688
4285
  screenshot: "screenshot";
3689
4286
  key: "key";
3690
4287
  capabilities: "capabilities";
4288
+ drag: "drag";
3691
4289
  }>;
3692
4290
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
3693
4291
  normalized: "normalized";
@@ -3695,6 +4293,8 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
3695
4293
  }>>;
3696
4294
  x: z.ZodOptional<z.ZodNumber>;
3697
4295
  y: z.ZodOptional<z.ZodNumber>;
4296
+ toX: z.ZodOptional<z.ZodNumber>;
4297
+ toY: z.ZodOptional<z.ZodNumber>;
3698
4298
  text: z.ZodOptional<z.ZodString>;
3699
4299
  key: z.ZodOptional<z.ZodEnum<{
3700
4300
  ENTER: "ENTER";
@@ -3757,6 +4357,32 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
3757
4357
  type: z.ZodLiteral<"page_contains">;
3758
4358
  text: z.ZodString;
3759
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>>;
3760
4386
  }, z.core.$strict>;
3761
4387
  }, z.core.$strict>, z.ZodObject<{
3762
4388
  id: z.ZodString;
@@ -3826,12 +4452,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
3826
4452
  start: "start";
3827
4453
  status: "status";
3828
4454
  stop: "stop";
4455
+ send: "send";
3829
4456
  }>;
3830
4457
  command: z.ZodOptional<z.ZodString>;
3831
4458
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
3832
4459
  jobId: z.ZodOptional<z.ZodString>;
3833
4460
  cwd: z.ZodOptional<z.ZodString>;
3834
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>;
3835
4465
  timeoutMs: z.ZodDefault<z.ZodNumber>;
3836
4466
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
3837
4467
  }, z.core.$strict>, z.ZodObject<{
@@ -3936,11 +4566,13 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
3936
4566
  action: z.ZodEnum<{
3937
4567
  type: "type";
3938
4568
  move: "move";
4569
+ inspect: "inspect";
3939
4570
  click: "click";
3940
4571
  scroll: "scroll";
3941
4572
  screenshot: "screenshot";
3942
4573
  key: "key";
3943
4574
  capabilities: "capabilities";
4575
+ drag: "drag";
3944
4576
  }>;
3945
4577
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
3946
4578
  normalized: "normalized";
@@ -3948,6 +4580,8 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
3948
4580
  }>>;
3949
4581
  x: z.ZodOptional<z.ZodNumber>;
3950
4582
  y: z.ZodOptional<z.ZodNumber>;
4583
+ toX: z.ZodOptional<z.ZodNumber>;
4584
+ toY: z.ZodOptional<z.ZodNumber>;
3951
4585
  text: z.ZodOptional<z.ZodString>;
3952
4586
  key: z.ZodOptional<z.ZodEnum<{
3953
4587
  ENTER: "ENTER";
@@ -4010,6 +4644,32 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4010
4644
  type: z.ZodLiteral<"page_contains">;
4011
4645
  text: z.ZodString;
4012
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>>;
4013
4673
  }, z.core.$strict>>>;
4014
4674
  whenFalse: z.ZodDefault<z.ZodArray<z.ZodObject<{
4015
4675
  goal: z.ZodString;
@@ -4041,12 +4701,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4041
4701
  start: "start";
4042
4702
  status: "status";
4043
4703
  stop: "stop";
4704
+ send: "send";
4044
4705
  }>;
4045
4706
  command: z.ZodOptional<z.ZodString>;
4046
4707
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
4047
4708
  jobId: z.ZodOptional<z.ZodString>;
4048
4709
  cwd: z.ZodOptional<z.ZodString>;
4049
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>;
4050
4714
  timeoutMs: z.ZodDefault<z.ZodNumber>;
4051
4715
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
4052
4716
  }, z.core.$strict>, z.ZodObject<{
@@ -4151,11 +4815,13 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4151
4815
  action: z.ZodEnum<{
4152
4816
  type: "type";
4153
4817
  move: "move";
4818
+ inspect: "inspect";
4154
4819
  click: "click";
4155
4820
  scroll: "scroll";
4156
4821
  screenshot: "screenshot";
4157
4822
  key: "key";
4158
4823
  capabilities: "capabilities";
4824
+ drag: "drag";
4159
4825
  }>;
4160
4826
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
4161
4827
  normalized: "normalized";
@@ -4163,6 +4829,8 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4163
4829
  }>>;
4164
4830
  x: z.ZodOptional<z.ZodNumber>;
4165
4831
  y: z.ZodOptional<z.ZodNumber>;
4832
+ toX: z.ZodOptional<z.ZodNumber>;
4833
+ toY: z.ZodOptional<z.ZodNumber>;
4166
4834
  text: z.ZodOptional<z.ZodString>;
4167
4835
  key: z.ZodOptional<z.ZodEnum<{
4168
4836
  ENTER: "ENTER";
@@ -4225,6 +4893,32 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4225
4893
  type: z.ZodLiteral<"page_contains">;
4226
4894
  text: z.ZodString;
4227
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>>;
4228
4922
  }, z.core.$strict>>>;
4229
4923
  }, z.core.$strict>, z.ZodObject<{
4230
4924
  id: z.ZodString;
@@ -4260,12 +4954,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4260
4954
  start: "start";
4261
4955
  status: "status";
4262
4956
  stop: "stop";
4957
+ send: "send";
4263
4958
  }>;
4264
4959
  command: z.ZodOptional<z.ZodString>;
4265
4960
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
4266
4961
  jobId: z.ZodOptional<z.ZodString>;
4267
4962
  cwd: z.ZodOptional<z.ZodString>;
4268
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>;
4269
4967
  timeoutMs: z.ZodDefault<z.ZodNumber>;
4270
4968
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
4271
4969
  }, z.core.$strict>, z.ZodObject<{
@@ -4370,11 +5068,13 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4370
5068
  action: z.ZodEnum<{
4371
5069
  type: "type";
4372
5070
  move: "move";
5071
+ inspect: "inspect";
4373
5072
  click: "click";
4374
5073
  scroll: "scroll";
4375
5074
  screenshot: "screenshot";
4376
5075
  key: "key";
4377
5076
  capabilities: "capabilities";
5077
+ drag: "drag";
4378
5078
  }>;
4379
5079
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
4380
5080
  normalized: "normalized";
@@ -4382,6 +5082,8 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4382
5082
  }>>;
4383
5083
  x: z.ZodOptional<z.ZodNumber>;
4384
5084
  y: z.ZodOptional<z.ZodNumber>;
5085
+ toX: z.ZodOptional<z.ZodNumber>;
5086
+ toY: z.ZodOptional<z.ZodNumber>;
4385
5087
  text: z.ZodOptional<z.ZodString>;
4386
5088
  key: z.ZodOptional<z.ZodEnum<{
4387
5089
  ENTER: "ENTER";
@@ -4444,6 +5146,32 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4444
5146
  type: z.ZodLiteral<"page_contains">;
4445
5147
  text: z.ZodString;
4446
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>>;
4447
5175
  }, z.core.$strict>>>;
4448
5176
  }, z.core.$strict>, z.ZodObject<{
4449
5177
  id: z.ZodString;
@@ -4479,12 +5207,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4479
5207
  start: "start";
4480
5208
  status: "status";
4481
5209
  stop: "stop";
5210
+ send: "send";
4482
5211
  }>;
4483
5212
  command: z.ZodOptional<z.ZodString>;
4484
5213
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
4485
5214
  jobId: z.ZodOptional<z.ZodString>;
4486
5215
  cwd: z.ZodOptional<z.ZodString>;
4487
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>;
4488
5220
  timeoutMs: z.ZodDefault<z.ZodNumber>;
4489
5221
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
4490
5222
  }, z.core.$strict>, z.ZodObject<{
@@ -4589,11 +5321,13 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4589
5321
  action: z.ZodEnum<{
4590
5322
  type: "type";
4591
5323
  move: "move";
5324
+ inspect: "inspect";
4592
5325
  click: "click";
4593
5326
  scroll: "scroll";
4594
5327
  screenshot: "screenshot";
4595
5328
  key: "key";
4596
5329
  capabilities: "capabilities";
5330
+ drag: "drag";
4597
5331
  }>;
4598
5332
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
4599
5333
  normalized: "normalized";
@@ -4601,6 +5335,8 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4601
5335
  }>>;
4602
5336
  x: z.ZodOptional<z.ZodNumber>;
4603
5337
  y: z.ZodOptional<z.ZodNumber>;
5338
+ toX: z.ZodOptional<z.ZodNumber>;
5339
+ toY: z.ZodOptional<z.ZodNumber>;
4604
5340
  text: z.ZodOptional<z.ZodString>;
4605
5341
  key: z.ZodOptional<z.ZodEnum<{
4606
5342
  ENTER: "ENTER";
@@ -4663,6 +5399,32 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4663
5399
  type: z.ZodLiteral<"page_contains">;
4664
5400
  text: z.ZodString;
4665
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>>;
4666
5428
  }, z.core.$strict>>;
4667
5429
  maxIterations: z.ZodNumber;
4668
5430
  until: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -4732,12 +5494,16 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4732
5494
  start: "start";
4733
5495
  status: "status";
4734
5496
  stop: "stop";
5497
+ send: "send";
4735
5498
  }>;
4736
5499
  command: z.ZodOptional<z.ZodString>;
4737
5500
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
4738
5501
  jobId: z.ZodOptional<z.ZodString>;
4739
5502
  cwd: z.ZodOptional<z.ZodString>;
4740
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>;
4741
5507
  timeoutMs: z.ZodDefault<z.ZodNumber>;
4742
5508
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
4743
5509
  }, z.core.$strict>, z.ZodObject<{
@@ -4842,11 +5608,13 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4842
5608
  action: z.ZodEnum<{
4843
5609
  type: "type";
4844
5610
  move: "move";
5611
+ inspect: "inspect";
4845
5612
  click: "click";
4846
5613
  scroll: "scroll";
4847
5614
  screenshot: "screenshot";
4848
5615
  key: "key";
4849
5616
  capabilities: "capabilities";
5617
+ drag: "drag";
4850
5618
  }>;
4851
5619
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
4852
5620
  normalized: "normalized";
@@ -4854,6 +5622,8 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4854
5622
  }>>;
4855
5623
  x: z.ZodOptional<z.ZodNumber>;
4856
5624
  y: z.ZodOptional<z.ZodNumber>;
5625
+ toX: z.ZodOptional<z.ZodNumber>;
5626
+ toY: z.ZodOptional<z.ZodNumber>;
4857
5627
  text: z.ZodOptional<z.ZodString>;
4858
5628
  key: z.ZodOptional<z.ZodEnum<{
4859
5629
  ENTER: "ENTER";
@@ -4916,6 +5686,32 @@ export declare const WorkflowDefinitionSchema: z.ZodObject<{
4916
5686
  type: z.ZodLiteral<"page_contains">;
4917
5687
  text: z.ZodString;
4918
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>>;
4919
5715
  }, z.core.$strict>;
4920
5716
  }, z.core.$strict>, z.ZodObject<{
4921
5717
  id: z.ZodString;
@@ -5257,12 +6053,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
5257
6053
  start: "start";
5258
6054
  status: "status";
5259
6055
  stop: "stop";
6056
+ send: "send";
5260
6057
  }>;
5261
6058
  command: z.ZodOptional<z.ZodString>;
5262
6059
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
5263
6060
  jobId: z.ZodOptional<z.ZodString>;
5264
6061
  cwd: z.ZodOptional<z.ZodString>;
5265
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>;
5266
6066
  timeoutMs: z.ZodDefault<z.ZodNumber>;
5267
6067
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
5268
6068
  }, z.core.$strict>, z.ZodObject<{
@@ -5367,11 +6167,13 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
5367
6167
  action: z.ZodEnum<{
5368
6168
  type: "type";
5369
6169
  move: "move";
6170
+ inspect: "inspect";
5370
6171
  click: "click";
5371
6172
  scroll: "scroll";
5372
6173
  screenshot: "screenshot";
5373
6174
  key: "key";
5374
6175
  capabilities: "capabilities";
6176
+ drag: "drag";
5375
6177
  }>;
5376
6178
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
5377
6179
  normalized: "normalized";
@@ -5379,6 +6181,8 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
5379
6181
  }>>;
5380
6182
  x: z.ZodOptional<z.ZodNumber>;
5381
6183
  y: z.ZodOptional<z.ZodNumber>;
6184
+ toX: z.ZodOptional<z.ZodNumber>;
6185
+ toY: z.ZodOptional<z.ZodNumber>;
5382
6186
  text: z.ZodOptional<z.ZodString>;
5383
6187
  key: z.ZodOptional<z.ZodEnum<{
5384
6188
  ENTER: "ENTER";
@@ -5441,6 +6245,32 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
5441
6245
  type: z.ZodLiteral<"page_contains">;
5442
6246
  text: z.ZodString;
5443
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>>;
5444
6274
  }, z.core.$strict>;
5445
6275
  }, z.core.$strict>, z.ZodObject<{
5446
6276
  id: z.ZodString;
@@ -5510,12 +6340,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
5510
6340
  start: "start";
5511
6341
  status: "status";
5512
6342
  stop: "stop";
6343
+ send: "send";
5513
6344
  }>;
5514
6345
  command: z.ZodOptional<z.ZodString>;
5515
6346
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
5516
6347
  jobId: z.ZodOptional<z.ZodString>;
5517
6348
  cwd: z.ZodOptional<z.ZodString>;
5518
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>;
5519
6353
  timeoutMs: z.ZodDefault<z.ZodNumber>;
5520
6354
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
5521
6355
  }, z.core.$strict>, z.ZodObject<{
@@ -5620,11 +6454,13 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
5620
6454
  action: z.ZodEnum<{
5621
6455
  type: "type";
5622
6456
  move: "move";
6457
+ inspect: "inspect";
5623
6458
  click: "click";
5624
6459
  scroll: "scroll";
5625
6460
  screenshot: "screenshot";
5626
6461
  key: "key";
5627
6462
  capabilities: "capabilities";
6463
+ drag: "drag";
5628
6464
  }>;
5629
6465
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
5630
6466
  normalized: "normalized";
@@ -5632,6 +6468,8 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
5632
6468
  }>>;
5633
6469
  x: z.ZodOptional<z.ZodNumber>;
5634
6470
  y: z.ZodOptional<z.ZodNumber>;
6471
+ toX: z.ZodOptional<z.ZodNumber>;
6472
+ toY: z.ZodOptional<z.ZodNumber>;
5635
6473
  text: z.ZodOptional<z.ZodString>;
5636
6474
  key: z.ZodOptional<z.ZodEnum<{
5637
6475
  ENTER: "ENTER";
@@ -5694,6 +6532,32 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
5694
6532
  type: z.ZodLiteral<"page_contains">;
5695
6533
  text: z.ZodString;
5696
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>>;
5697
6561
  }, z.core.$strict>>>;
5698
6562
  whenFalse: z.ZodDefault<z.ZodArray<z.ZodObject<{
5699
6563
  goal: z.ZodString;
@@ -5725,12 +6589,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
5725
6589
  start: "start";
5726
6590
  status: "status";
5727
6591
  stop: "stop";
6592
+ send: "send";
5728
6593
  }>;
5729
6594
  command: z.ZodOptional<z.ZodString>;
5730
6595
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
5731
6596
  jobId: z.ZodOptional<z.ZodString>;
5732
6597
  cwd: z.ZodOptional<z.ZodString>;
5733
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>;
5734
6602
  timeoutMs: z.ZodDefault<z.ZodNumber>;
5735
6603
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
5736
6604
  }, z.core.$strict>, z.ZodObject<{
@@ -5835,11 +6703,13 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
5835
6703
  action: z.ZodEnum<{
5836
6704
  type: "type";
5837
6705
  move: "move";
6706
+ inspect: "inspect";
5838
6707
  click: "click";
5839
6708
  scroll: "scroll";
5840
6709
  screenshot: "screenshot";
5841
6710
  key: "key";
5842
6711
  capabilities: "capabilities";
6712
+ drag: "drag";
5843
6713
  }>;
5844
6714
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
5845
6715
  normalized: "normalized";
@@ -5847,6 +6717,8 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
5847
6717
  }>>;
5848
6718
  x: z.ZodOptional<z.ZodNumber>;
5849
6719
  y: z.ZodOptional<z.ZodNumber>;
6720
+ toX: z.ZodOptional<z.ZodNumber>;
6721
+ toY: z.ZodOptional<z.ZodNumber>;
5850
6722
  text: z.ZodOptional<z.ZodString>;
5851
6723
  key: z.ZodOptional<z.ZodEnum<{
5852
6724
  ENTER: "ENTER";
@@ -5909,6 +6781,32 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
5909
6781
  type: z.ZodLiteral<"page_contains">;
5910
6782
  text: z.ZodString;
5911
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>>;
5912
6810
  }, z.core.$strict>>>;
5913
6811
  }, z.core.$strict>, z.ZodObject<{
5914
6812
  id: z.ZodString;
@@ -5944,12 +6842,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
5944
6842
  start: "start";
5945
6843
  status: "status";
5946
6844
  stop: "stop";
6845
+ send: "send";
5947
6846
  }>;
5948
6847
  command: z.ZodOptional<z.ZodString>;
5949
6848
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
5950
6849
  jobId: z.ZodOptional<z.ZodString>;
5951
6850
  cwd: z.ZodOptional<z.ZodString>;
5952
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>;
5953
6855
  timeoutMs: z.ZodDefault<z.ZodNumber>;
5954
6856
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
5955
6857
  }, z.core.$strict>, z.ZodObject<{
@@ -6054,11 +6956,13 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6054
6956
  action: z.ZodEnum<{
6055
6957
  type: "type";
6056
6958
  move: "move";
6959
+ inspect: "inspect";
6057
6960
  click: "click";
6058
6961
  scroll: "scroll";
6059
6962
  screenshot: "screenshot";
6060
6963
  key: "key";
6061
6964
  capabilities: "capabilities";
6965
+ drag: "drag";
6062
6966
  }>;
6063
6967
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
6064
6968
  normalized: "normalized";
@@ -6066,6 +6970,8 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6066
6970
  }>>;
6067
6971
  x: z.ZodOptional<z.ZodNumber>;
6068
6972
  y: z.ZodOptional<z.ZodNumber>;
6973
+ toX: z.ZodOptional<z.ZodNumber>;
6974
+ toY: z.ZodOptional<z.ZodNumber>;
6069
6975
  text: z.ZodOptional<z.ZodString>;
6070
6976
  key: z.ZodOptional<z.ZodEnum<{
6071
6977
  ENTER: "ENTER";
@@ -6128,6 +7034,32 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6128
7034
  type: z.ZodLiteral<"page_contains">;
6129
7035
  text: z.ZodString;
6130
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>>;
6131
7063
  }, z.core.$strict>>>;
6132
7064
  }, z.core.$strict>, z.ZodObject<{
6133
7065
  id: z.ZodString;
@@ -6163,12 +7095,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6163
7095
  start: "start";
6164
7096
  status: "status";
6165
7097
  stop: "stop";
7098
+ send: "send";
6166
7099
  }>;
6167
7100
  command: z.ZodOptional<z.ZodString>;
6168
7101
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
6169
7102
  jobId: z.ZodOptional<z.ZodString>;
6170
7103
  cwd: z.ZodOptional<z.ZodString>;
6171
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>;
6172
7108
  timeoutMs: z.ZodDefault<z.ZodNumber>;
6173
7109
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
6174
7110
  }, z.core.$strict>, z.ZodObject<{
@@ -6273,11 +7209,13 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6273
7209
  action: z.ZodEnum<{
6274
7210
  type: "type";
6275
7211
  move: "move";
7212
+ inspect: "inspect";
6276
7213
  click: "click";
6277
7214
  scroll: "scroll";
6278
7215
  screenshot: "screenshot";
6279
7216
  key: "key";
6280
7217
  capabilities: "capabilities";
7218
+ drag: "drag";
6281
7219
  }>;
6282
7220
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
6283
7221
  normalized: "normalized";
@@ -6285,6 +7223,8 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6285
7223
  }>>;
6286
7224
  x: z.ZodOptional<z.ZodNumber>;
6287
7225
  y: z.ZodOptional<z.ZodNumber>;
7226
+ toX: z.ZodOptional<z.ZodNumber>;
7227
+ toY: z.ZodOptional<z.ZodNumber>;
6288
7228
  text: z.ZodOptional<z.ZodString>;
6289
7229
  key: z.ZodOptional<z.ZodEnum<{
6290
7230
  ENTER: "ENTER";
@@ -6347,6 +7287,32 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6347
7287
  type: z.ZodLiteral<"page_contains">;
6348
7288
  text: z.ZodString;
6349
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>>;
6350
7316
  }, z.core.$strict>>;
6351
7317
  maxIterations: z.ZodNumber;
6352
7318
  until: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -6416,12 +7382,16 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6416
7382
  start: "start";
6417
7383
  status: "status";
6418
7384
  stop: "stop";
7385
+ send: "send";
6419
7386
  }>;
6420
7387
  command: z.ZodOptional<z.ZodString>;
6421
7388
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
6422
7389
  jobId: z.ZodOptional<z.ZodString>;
6423
7390
  cwd: z.ZodOptional<z.ZodString>;
6424
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>;
6425
7395
  timeoutMs: z.ZodDefault<z.ZodNumber>;
6426
7396
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
6427
7397
  }, z.core.$strict>, z.ZodObject<{
@@ -6526,11 +7496,13 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6526
7496
  action: z.ZodEnum<{
6527
7497
  type: "type";
6528
7498
  move: "move";
7499
+ inspect: "inspect";
6529
7500
  click: "click";
6530
7501
  scroll: "scroll";
6531
7502
  screenshot: "screenshot";
6532
7503
  key: "key";
6533
7504
  capabilities: "capabilities";
7505
+ drag: "drag";
6534
7506
  }>;
6535
7507
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
6536
7508
  normalized: "normalized";
@@ -6538,6 +7510,8 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6538
7510
  }>>;
6539
7511
  x: z.ZodOptional<z.ZodNumber>;
6540
7512
  y: z.ZodOptional<z.ZodNumber>;
7513
+ toX: z.ZodOptional<z.ZodNumber>;
7514
+ toY: z.ZodOptional<z.ZodNumber>;
6541
7515
  text: z.ZodOptional<z.ZodString>;
6542
7516
  key: z.ZodOptional<z.ZodEnum<{
6543
7517
  ENTER: "ENTER";
@@ -6600,6 +7574,32 @@ export declare const WorkflowPlanInputSchema: z.ZodObject<{
6600
7574
  type: z.ZodLiteral<"page_contains">;
6601
7575
  text: z.ZodString;
6602
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>>;
6603
7603
  }, z.core.$strict>;
6604
7604
  }, z.core.$strict>, z.ZodObject<{
6605
7605
  id: z.ZodString;
@@ -6728,6 +7728,17 @@ export interface TaskRecord {
6728
7728
  createdAt: string;
6729
7729
  updatedAt: string;
6730
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;
6731
7742
  export declare const MelraCapabilitiesInputSchema: z.ZodObject<{}, z.core.$strict>;
6732
7743
  export declare const MelraPlanInputSchema: z.ZodObject<{
6733
7744
  goal: z.ZodString;
@@ -6759,12 +7770,16 @@ export declare const MelraPlanInputSchema: z.ZodObject<{
6759
7770
  start: "start";
6760
7771
  status: "status";
6761
7772
  stop: "stop";
7773
+ send: "send";
6762
7774
  }>;
6763
7775
  command: z.ZodOptional<z.ZodString>;
6764
7776
  args: z.ZodDefault<z.ZodArray<z.ZodString>>;
6765
7777
  jobId: z.ZodOptional<z.ZodString>;
6766
7778
  cwd: z.ZodOptional<z.ZodString>;
6767
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>;
6768
7783
  timeoutMs: z.ZodDefault<z.ZodNumber>;
6769
7784
  maxOutputChars: z.ZodDefault<z.ZodNumber>;
6770
7785
  }, z.core.$strict>, z.ZodObject<{
@@ -6869,11 +7884,13 @@ export declare const MelraPlanInputSchema: z.ZodObject<{
6869
7884
  action: z.ZodEnum<{
6870
7885
  type: "type";
6871
7886
  move: "move";
7887
+ inspect: "inspect";
6872
7888
  click: "click";
6873
7889
  scroll: "scroll";
6874
7890
  screenshot: "screenshot";
6875
7891
  key: "key";
6876
7892
  capabilities: "capabilities";
7893
+ drag: "drag";
6877
7894
  }>;
6878
7895
  coordinateSpace: z.ZodDefault<z.ZodEnum<{
6879
7896
  normalized: "normalized";
@@ -6881,6 +7898,8 @@ export declare const MelraPlanInputSchema: z.ZodObject<{
6881
7898
  }>>;
6882
7899
  x: z.ZodOptional<z.ZodNumber>;
6883
7900
  y: z.ZodOptional<z.ZodNumber>;
7901
+ toX: z.ZodOptional<z.ZodNumber>;
7902
+ toY: z.ZodOptional<z.ZodNumber>;
6884
7903
  text: z.ZodOptional<z.ZodString>;
6885
7904
  key: z.ZodOptional<z.ZodEnum<{
6886
7905
  ENTER: "ENTER";
@@ -6943,6 +7962,32 @@ export declare const MelraPlanInputSchema: z.ZodObject<{
6943
7962
  type: z.ZodLiteral<"page_contains">;
6944
7963
  text: z.ZodString;
6945
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>>;
6946
7991
  }, z.core.$strict>;
6947
7992
  export declare const MelraExecuteInputSchema: z.ZodObject<{
6948
7993
  taskId: z.ZodString;