@mobilerun/sdk 1.0.0 → 2.0.0
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/CHANGELOG.md +77 -0
- package/LICENSE +1 -1
- package/README.md +9 -0
- package/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +19 -7
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +19 -7
- package/resources/apps.d.ts.map +1 -1
- package/resources/devices/actions.d.mts +71 -0
- package/resources/devices/actions.d.mts.map +1 -0
- package/resources/devices/actions.d.ts +71 -0
- package/resources/devices/actions.d.ts.map +1 -0
- package/resources/devices/actions.js +68 -0
- package/resources/devices/actions.js.map +1 -0
- package/resources/devices/actions.mjs +64 -0
- package/resources/devices/actions.mjs.map +1 -0
- package/resources/devices/apps.d.mts +79 -0
- package/resources/devices/apps.d.mts.map +1 -0
- package/resources/devices/apps.d.ts +79 -0
- package/resources/devices/apps.d.ts.map +1 -0
- package/resources/devices/apps.js +86 -0
- package/resources/devices/apps.js.map +1 -0
- package/resources/devices/apps.mjs +82 -0
- package/resources/devices/apps.mjs.map +1 -0
- package/resources/devices/devices.d.mts +142 -0
- package/resources/devices/devices.d.mts.map +1 -0
- package/resources/devices/devices.d.ts +142 -0
- package/resources/devices/devices.d.ts.map +1 -0
- package/resources/devices/devices.js +73 -0
- package/resources/devices/devices.js.map +1 -0
- package/resources/devices/devices.mjs +68 -0
- package/resources/devices/devices.mjs.map +1 -0
- package/resources/devices/index.d.mts +8 -0
- package/resources/devices/index.d.mts.map +1 -0
- package/resources/devices/index.d.ts +8 -0
- package/resources/devices/index.d.ts.map +1 -0
- package/resources/devices/index.js +19 -0
- package/resources/devices/index.js.map +1 -0
- package/resources/devices/index.mjs +9 -0
- package/resources/devices/index.mjs.map +1 -0
- package/resources/devices/keyboard.d.mts +48 -0
- package/resources/devices/keyboard.d.mts.map +1 -0
- package/resources/devices/keyboard.d.ts +48 -0
- package/resources/devices/keyboard.d.ts.map +1 -0
- package/resources/devices/keyboard.js +67 -0
- package/resources/devices/keyboard.js.map +1 -0
- package/resources/devices/keyboard.mjs +63 -0
- package/resources/devices/keyboard.mjs.map +1 -0
- package/resources/devices/packages.d.mts +24 -0
- package/resources/devices/packages.d.mts.map +1 -0
- package/resources/devices/packages.d.ts +24 -0
- package/resources/devices/packages.d.ts.map +1 -0
- package/resources/devices/packages.js +29 -0
- package/resources/devices/packages.js.map +1 -0
- package/resources/devices/packages.mjs +25 -0
- package/resources/devices/packages.mjs.map +1 -0
- package/resources/devices/state.d.mts +99 -0
- package/resources/devices/state.d.mts.map +1 -0
- package/resources/devices/state.d.ts +99 -0
- package/resources/devices/state.d.ts.map +1 -0
- package/resources/devices/state.js +64 -0
- package/resources/devices/state.js.map +1 -0
- package/resources/devices/state.mjs +60 -0
- package/resources/devices/state.mjs.map +1 -0
- package/resources/devices/tasks.d.mts +42 -0
- package/resources/devices/tasks.d.mts.map +1 -0
- package/resources/devices/tasks.d.ts +42 -0
- package/resources/devices/tasks.d.ts.map +1 -0
- package/resources/devices/tasks.js +16 -0
- package/resources/devices/tasks.js.map +1 -0
- package/resources/devices/tasks.mjs +12 -0
- package/resources/devices/tasks.mjs.map +1 -0
- package/resources/devices.d.mts +2 -0
- package/resources/devices.d.mts.map +1 -0
- package/resources/devices.d.ts +2 -0
- package/resources/devices.d.ts.map +1 -0
- package/resources/devices.js +6 -0
- package/resources/devices.js.map +1 -0
- package/resources/devices.mjs +3 -0
- package/resources/devices.mjs.map +1 -0
- package/resources/hooks.d.mts +16 -2
- package/resources/hooks.d.mts.map +1 -1
- package/resources/hooks.d.ts +16 -2
- package/resources/hooks.d.ts.map +1 -1
- package/resources/hooks.js +7 -1
- package/resources/hooks.js.map +1 -1
- package/resources/hooks.mjs +7 -1
- package/resources/hooks.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +115 -121
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +115 -121
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/src/client.ts +19 -0
- package/src/resources/apps.ts +29 -9
- package/src/resources/devices/actions.ts +138 -0
- package/src/resources/devices/apps.ts +171 -0
- package/src/resources/devices/devices.ts +277 -0
- package/src/resources/devices/index.ts +35 -0
- package/src/resources/devices/keyboard.ts +113 -0
- package/src/resources/devices/packages.ts +50 -0
- package/src/resources/devices/state.ts +201 -0
- package/src/resources/devices/tasks.ts +68 -0
- package/src/resources/devices.ts +3 -0
- package/src/resources/hooks.ts +27 -1
- package/src/resources/index.ts +8 -0
- package/src/resources/tasks/tasks.ts +133 -132
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -89,7 +89,8 @@ export type LlmModel =
|
|
|
89
89
|
| 'google/gemini-3-pro-preview'
|
|
90
90
|
| 'anthropic/claude-sonnet-4.5'
|
|
91
91
|
| 'minimax/minimax-m2'
|
|
92
|
-
| 'moonshotai/kimi-k2-thinking'
|
|
92
|
+
| 'moonshotai/kimi-k2-thinking'
|
|
93
|
+
| 'qwen/qwen3-8b';
|
|
93
94
|
|
|
94
95
|
export interface Task {
|
|
95
96
|
deviceId: string;
|
|
@@ -156,6 +157,16 @@ export interface TaskCreate {
|
|
|
156
157
|
|
|
157
158
|
credentials?: Array<TaskCreate.Credential>;
|
|
158
159
|
|
|
160
|
+
/**
|
|
161
|
+
* The ID of the device to run the task on.
|
|
162
|
+
*/
|
|
163
|
+
deviceId?: string | null;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The display ID of the device to run the task on.
|
|
167
|
+
*/
|
|
168
|
+
displayId?: number;
|
|
169
|
+
|
|
159
170
|
executionTimeout?: number;
|
|
160
171
|
|
|
161
172
|
files?: Array<string>;
|
|
@@ -256,7 +267,6 @@ export interface TaskGetTrajectoryResponse {
|
|
|
256
267
|
| TaskGetTrajectoryResponse.TrajectoryCancelEvent
|
|
257
268
|
| TaskGetTrajectoryResponse.TrajectoryScreenshotEvent
|
|
258
269
|
| TaskGetTrajectoryResponse.TrajectoryStartEvent
|
|
259
|
-
| TaskGetTrajectoryResponse.TrajectoryTaskRunnerEvent
|
|
260
270
|
| TaskGetTrajectoryResponse.TrajectoryFinalizeEvent
|
|
261
271
|
| TaskGetTrajectoryResponse.TrajectoryStopEvent
|
|
262
272
|
| TaskGetTrajectoryResponse.TrajectoryResultEvent
|
|
@@ -269,10 +279,11 @@ export interface TaskGetTrajectoryResponse {
|
|
|
269
279
|
| TaskGetTrajectoryResponse.TrajectoryPlanCreatedEvent
|
|
270
280
|
| TaskGetTrajectoryResponse.TrajectoryPlanInputEvent
|
|
271
281
|
| TaskGetTrajectoryResponse.TrajectoryPlanThinkingEvent
|
|
272
|
-
| TaskGetTrajectoryResponse.
|
|
273
|
-
| TaskGetTrajectoryResponse.
|
|
274
|
-
| TaskGetTrajectoryResponse.
|
|
275
|
-
| TaskGetTrajectoryResponse.
|
|
282
|
+
| TaskGetTrajectoryResponse.TrajectoryCodeActInputEvent
|
|
283
|
+
| TaskGetTrajectoryResponse.TrajectoryCodeActResponseEvent
|
|
284
|
+
| TaskGetTrajectoryResponse.TrajectoryCodeActCodeEvent
|
|
285
|
+
| TaskGetTrajectoryResponse.TrajectoryCodeActOutputEvent
|
|
286
|
+
| TaskGetTrajectoryResponse.TrajectoryCodeActEndEvent
|
|
276
287
|
| TaskGetTrajectoryResponse.TrajectoryCodeActExecuteEvent
|
|
277
288
|
| TaskGetTrajectoryResponse.TrajectoryCodeActResultEvent
|
|
278
289
|
| TaskGetTrajectoryResponse.TrajectoryTapActionEvent
|
|
@@ -364,19 +375,19 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
364
375
|
event: 'StartEvent';
|
|
365
376
|
}
|
|
366
377
|
|
|
367
|
-
export interface TrajectoryTaskRunnerEvent {
|
|
368
|
-
data: unknown;
|
|
369
|
-
|
|
370
|
-
event: 'TaskRunnerEvent';
|
|
371
|
-
}
|
|
372
|
-
|
|
373
378
|
export interface TrajectoryFinalizeEvent {
|
|
379
|
+
/**
|
|
380
|
+
* Trigger finalization.
|
|
381
|
+
*/
|
|
374
382
|
data: TrajectoryFinalizeEvent.Data;
|
|
375
383
|
|
|
376
384
|
event: 'FinalizeEvent';
|
|
377
385
|
}
|
|
378
386
|
|
|
379
387
|
export namespace TrajectoryFinalizeEvent {
|
|
388
|
+
/**
|
|
389
|
+
* Trigger finalization.
|
|
390
|
+
*/
|
|
380
391
|
export interface Data {
|
|
381
392
|
reason: string;
|
|
382
393
|
|
|
@@ -477,10 +488,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
477
488
|
|
|
478
489
|
export interface TrajectoryExecutorResultEvent {
|
|
479
490
|
/**
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
* Used for workflow step routing only (NOT streamed to frontend). For internal
|
|
483
|
-
* events with thought/action_json metadata, see ExecutorActionResultEvent.
|
|
491
|
+
* Executor finished with action result.
|
|
484
492
|
*/
|
|
485
493
|
data: TrajectoryExecutorResultEvent.Data;
|
|
486
494
|
|
|
@@ -489,10 +497,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
489
497
|
|
|
490
498
|
export namespace TrajectoryExecutorResultEvent {
|
|
491
499
|
/**
|
|
492
|
-
*
|
|
493
|
-
*
|
|
494
|
-
* Used for workflow step routing only (NOT streamed to frontend). For internal
|
|
495
|
-
* events with thought/action_json metadata, see ExecutorActionResultEvent.
|
|
500
|
+
* Executor finished with action result.
|
|
496
501
|
*/
|
|
497
502
|
export interface Data {
|
|
498
503
|
action: { [key: string]: unknown };
|
|
@@ -502,8 +507,6 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
502
507
|
outcome: boolean;
|
|
503
508
|
|
|
504
509
|
summary: string;
|
|
505
|
-
|
|
506
|
-
full_response?: string;
|
|
507
510
|
}
|
|
508
511
|
}
|
|
509
512
|
|
|
@@ -527,9 +530,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
527
530
|
|
|
528
531
|
export interface TrajectoryScripterExecutorResultEvent {
|
|
529
532
|
/**
|
|
530
|
-
*
|
|
531
|
-
*
|
|
532
|
-
* Used for workflow step routing only (NOT streamed to frontend).
|
|
533
|
+
* Scripter finished.
|
|
533
534
|
*/
|
|
534
535
|
data: TrajectoryScripterExecutorResultEvent.Data;
|
|
535
536
|
|
|
@@ -538,9 +539,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
538
539
|
|
|
539
540
|
export namespace TrajectoryScripterExecutorResultEvent {
|
|
540
541
|
/**
|
|
541
|
-
*
|
|
542
|
-
*
|
|
543
|
-
* Used for workflow step routing only (NOT streamed to frontend).
|
|
542
|
+
* Scripter finished.
|
|
544
543
|
*/
|
|
545
544
|
export interface Data {
|
|
546
545
|
code_executions: number;
|
|
@@ -571,17 +570,32 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
571
570
|
event: 'PlanThinkingEvent';
|
|
572
571
|
}
|
|
573
572
|
|
|
574
|
-
export interface
|
|
575
|
-
|
|
573
|
+
export interface TrajectoryCodeActInputEvent {
|
|
574
|
+
/**
|
|
575
|
+
* Input ready for LLM.
|
|
576
|
+
*/
|
|
577
|
+
data: unknown;
|
|
578
|
+
|
|
579
|
+
event: 'CodeActInputEvent';
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export interface TrajectoryCodeActResponseEvent {
|
|
583
|
+
/**
|
|
584
|
+
* LLM response received.
|
|
585
|
+
*/
|
|
586
|
+
data: TrajectoryCodeActResponseEvent.Data;
|
|
576
587
|
|
|
577
|
-
event: '
|
|
588
|
+
event: 'CodeActResponseEvent';
|
|
578
589
|
}
|
|
579
590
|
|
|
580
|
-
export namespace
|
|
591
|
+
export namespace TrajectoryCodeActResponseEvent {
|
|
592
|
+
/**
|
|
593
|
+
* LLM response received.
|
|
594
|
+
*/
|
|
581
595
|
export interface Data {
|
|
582
|
-
|
|
596
|
+
thought: string;
|
|
583
597
|
|
|
584
|
-
|
|
598
|
+
code?: string | null;
|
|
585
599
|
|
|
586
600
|
usage?: Data.Usage | null;
|
|
587
601
|
}
|
|
@@ -599,45 +613,61 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
599
613
|
}
|
|
600
614
|
}
|
|
601
615
|
|
|
602
|
-
export interface
|
|
603
|
-
|
|
616
|
+
export interface TrajectoryCodeActCodeEvent {
|
|
617
|
+
/**
|
|
618
|
+
* Code ready to execute (internal event).
|
|
619
|
+
*/
|
|
620
|
+
data: TrajectoryCodeActCodeEvent.Data;
|
|
604
621
|
|
|
605
|
-
event: '
|
|
622
|
+
event: 'CodeActCodeEvent';
|
|
606
623
|
}
|
|
607
624
|
|
|
608
|
-
export namespace
|
|
625
|
+
export namespace TrajectoryCodeActCodeEvent {
|
|
626
|
+
/**
|
|
627
|
+
* Code ready to execute (internal event).
|
|
628
|
+
*/
|
|
609
629
|
export interface Data {
|
|
610
630
|
code: string;
|
|
611
|
-
|
|
612
|
-
globals?: { [key: string]: string };
|
|
613
|
-
|
|
614
|
-
locals?: { [key: string]: string };
|
|
615
631
|
}
|
|
616
632
|
}
|
|
617
633
|
|
|
618
|
-
export interface
|
|
619
|
-
|
|
634
|
+
export interface TrajectoryCodeActOutputEvent {
|
|
635
|
+
/**
|
|
636
|
+
* Code execution result (internal event).
|
|
637
|
+
*/
|
|
638
|
+
data: TrajectoryCodeActOutputEvent.Data;
|
|
620
639
|
|
|
621
|
-
event: '
|
|
640
|
+
event: 'CodeActOutputEvent';
|
|
622
641
|
}
|
|
623
642
|
|
|
624
|
-
export namespace
|
|
643
|
+
export namespace TrajectoryCodeActOutputEvent {
|
|
644
|
+
/**
|
|
645
|
+
* Code execution result (internal event).
|
|
646
|
+
*/
|
|
625
647
|
export interface Data {
|
|
626
648
|
output: string;
|
|
627
649
|
}
|
|
628
650
|
}
|
|
629
651
|
|
|
630
|
-
export interface
|
|
631
|
-
|
|
652
|
+
export interface TrajectoryCodeActEndEvent {
|
|
653
|
+
/**
|
|
654
|
+
* CodeAct finished.
|
|
655
|
+
*/
|
|
656
|
+
data: TrajectoryCodeActEndEvent.Data;
|
|
632
657
|
|
|
633
|
-
event: '
|
|
658
|
+
event: 'CodeActEndEvent';
|
|
634
659
|
}
|
|
635
660
|
|
|
636
|
-
export namespace
|
|
661
|
+
export namespace TrajectoryCodeActEndEvent {
|
|
662
|
+
/**
|
|
663
|
+
* CodeAct finished.
|
|
664
|
+
*/
|
|
637
665
|
export interface Data {
|
|
638
666
|
reason: string;
|
|
639
667
|
|
|
640
668
|
success: boolean;
|
|
669
|
+
|
|
670
|
+
code_executions?: number;
|
|
641
671
|
}
|
|
642
672
|
}
|
|
643
673
|
|
|
@@ -693,7 +723,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
693
723
|
|
|
694
724
|
element_bounds?: string;
|
|
695
725
|
|
|
696
|
-
element_index?: number;
|
|
726
|
+
element_index?: number | null;
|
|
697
727
|
|
|
698
728
|
element_text?: string;
|
|
699
729
|
}
|
|
@@ -825,7 +855,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
825
855
|
|
|
826
856
|
package: string;
|
|
827
857
|
|
|
828
|
-
activity?: string;
|
|
858
|
+
activity?: string | null;
|
|
829
859
|
}
|
|
830
860
|
}
|
|
831
861
|
|
|
@@ -867,7 +897,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
867
897
|
|
|
868
898
|
export interface TrajectoryManagerContextEvent {
|
|
869
899
|
/**
|
|
870
|
-
*
|
|
900
|
+
* Context prepared, ready for LLM call.
|
|
871
901
|
*/
|
|
872
902
|
data: unknown;
|
|
873
903
|
|
|
@@ -876,9 +906,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
876
906
|
|
|
877
907
|
export interface TrajectoryManagerResponseEvent {
|
|
878
908
|
/**
|
|
879
|
-
*
|
|
880
|
-
*
|
|
881
|
-
* This event carries the raw validated LLM output before parsing.
|
|
909
|
+
* LLM response received, ready for parsing.
|
|
882
910
|
*/
|
|
883
911
|
data: TrajectoryManagerResponseEvent.Data;
|
|
884
912
|
|
|
@@ -887,12 +915,10 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
887
915
|
|
|
888
916
|
export namespace TrajectoryManagerResponseEvent {
|
|
889
917
|
/**
|
|
890
|
-
*
|
|
891
|
-
*
|
|
892
|
-
* This event carries the raw validated LLM output before parsing.
|
|
918
|
+
* LLM response received, ready for parsing.
|
|
893
919
|
*/
|
|
894
920
|
export interface Data {
|
|
895
|
-
|
|
921
|
+
response: string;
|
|
896
922
|
|
|
897
923
|
usage?: Data.Usage | null;
|
|
898
924
|
}
|
|
@@ -912,12 +938,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
912
938
|
|
|
913
939
|
export interface TrajectoryManagerPlanDetailsEvent {
|
|
914
940
|
/**
|
|
915
|
-
*
|
|
916
|
-
*
|
|
917
|
-
* This event is streamed to frontend/logging but NOT used for workflow
|
|
918
|
-
* coordination between ManagerAgent and DroidAgent.
|
|
919
|
-
*
|
|
920
|
-
* For workflow coordination, see ManagerPlanEvent in droid/events.py
|
|
941
|
+
* Plan parsed and ready (internal event with full details).
|
|
921
942
|
*/
|
|
922
943
|
data: TrajectoryManagerPlanDetailsEvent.Data;
|
|
923
944
|
|
|
@@ -926,33 +947,30 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
926
947
|
|
|
927
948
|
export namespace TrajectoryManagerPlanDetailsEvent {
|
|
928
949
|
/**
|
|
929
|
-
*
|
|
930
|
-
*
|
|
931
|
-
* This event is streamed to frontend/logging but NOT used for workflow
|
|
932
|
-
* coordination between ManagerAgent and DroidAgent.
|
|
933
|
-
*
|
|
934
|
-
* For workflow coordination, see ManagerPlanEvent in droid/events.py
|
|
950
|
+
* Plan parsed and ready (internal event with full details).
|
|
935
951
|
*/
|
|
936
952
|
export interface Data {
|
|
937
|
-
current_subgoal: string;
|
|
938
|
-
|
|
939
953
|
plan: string;
|
|
940
954
|
|
|
955
|
+
subgoal: string;
|
|
956
|
+
|
|
941
957
|
thought: string;
|
|
942
958
|
|
|
943
|
-
|
|
959
|
+
answer?: string;
|
|
944
960
|
|
|
945
|
-
|
|
961
|
+
full_response?: string;
|
|
946
962
|
|
|
947
963
|
memory_update?: string;
|
|
948
964
|
|
|
965
|
+
progress_summary?: string;
|
|
966
|
+
|
|
949
967
|
success?: boolean | null;
|
|
950
968
|
}
|
|
951
969
|
}
|
|
952
970
|
|
|
953
971
|
export interface TrajectoryExecutorContextEvent {
|
|
954
972
|
/**
|
|
955
|
-
*
|
|
973
|
+
* Context prepared, ready for LLM call.
|
|
956
974
|
*/
|
|
957
975
|
data: TrajectoryExecutorContextEvent.Data;
|
|
958
976
|
|
|
@@ -961,20 +979,16 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
961
979
|
|
|
962
980
|
export namespace TrajectoryExecutorContextEvent {
|
|
963
981
|
/**
|
|
964
|
-
*
|
|
982
|
+
* Context prepared, ready for LLM call.
|
|
965
983
|
*/
|
|
966
984
|
export interface Data {
|
|
967
|
-
messages: Array<unknown>;
|
|
968
|
-
|
|
969
985
|
subgoal: string;
|
|
970
986
|
}
|
|
971
987
|
}
|
|
972
988
|
|
|
973
989
|
export interface TrajectoryExecutorResponseEvent {
|
|
974
990
|
/**
|
|
975
|
-
*
|
|
976
|
-
*
|
|
977
|
-
* This event carries the raw LLM output before parsing.
|
|
991
|
+
* LLM response received, ready for parsing.
|
|
978
992
|
*/
|
|
979
993
|
data: TrajectoryExecutorResponseEvent.Data;
|
|
980
994
|
|
|
@@ -983,12 +997,10 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
983
997
|
|
|
984
998
|
export namespace TrajectoryExecutorResponseEvent {
|
|
985
999
|
/**
|
|
986
|
-
*
|
|
987
|
-
*
|
|
988
|
-
* This event carries the raw LLM output before parsing.
|
|
1000
|
+
* LLM response received, ready for parsing.
|
|
989
1001
|
*/
|
|
990
1002
|
export interface Data {
|
|
991
|
-
|
|
1003
|
+
response: string;
|
|
992
1004
|
|
|
993
1005
|
usage?: Data.Usage | null;
|
|
994
1006
|
}
|
|
@@ -1008,12 +1020,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1008
1020
|
|
|
1009
1021
|
export interface TrajectoryExecutorActionEvent {
|
|
1010
1022
|
/**
|
|
1011
|
-
*
|
|
1012
|
-
*
|
|
1013
|
-
* This event is streamed to frontend/logging but NOT used for workflow
|
|
1014
|
-
* coordination between ExecutorAgent and DroidAgent.
|
|
1015
|
-
*
|
|
1016
|
-
* For workflow coordination, see ExecutorInputEvent in droid/events.py
|
|
1023
|
+
* Action parsed, ready to execute.
|
|
1017
1024
|
*/
|
|
1018
1025
|
data: TrajectoryExecutorActionEvent.Data;
|
|
1019
1026
|
|
|
@@ -1022,12 +1029,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1022
1029
|
|
|
1023
1030
|
export namespace TrajectoryExecutorActionEvent {
|
|
1024
1031
|
/**
|
|
1025
|
-
*
|
|
1026
|
-
*
|
|
1027
|
-
* This event is streamed to frontend/logging but NOT used for workflow
|
|
1028
|
-
* coordination between ExecutorAgent and DroidAgent.
|
|
1029
|
-
*
|
|
1030
|
-
* For workflow coordination, see ExecutorInputEvent in droid/events.py
|
|
1032
|
+
* Action parsed, ready to execute.
|
|
1031
1033
|
*/
|
|
1032
1034
|
export interface Data {
|
|
1033
1035
|
action_json: string;
|
|
@@ -1042,12 +1044,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1042
1044
|
|
|
1043
1045
|
export interface TrajectoryExecutorActionResultEvent {
|
|
1044
1046
|
/**
|
|
1045
|
-
*
|
|
1046
|
-
*
|
|
1047
|
-
* This event is streamed to frontend/logging but NOT used for workflow
|
|
1048
|
-
* coordination between ExecutorAgent and DroidAgent.
|
|
1049
|
-
*
|
|
1050
|
-
* For workflow coordination, see ExecutorResultEvent in droid/events.py
|
|
1047
|
+
* Action execution result (internal event with full details).
|
|
1051
1048
|
*/
|
|
1052
1049
|
data: TrajectoryExecutorActionResultEvent.Data;
|
|
1053
1050
|
|
|
@@ -1056,24 +1053,17 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1056
1053
|
|
|
1057
1054
|
export namespace TrajectoryExecutorActionResultEvent {
|
|
1058
1055
|
/**
|
|
1059
|
-
*
|
|
1060
|
-
*
|
|
1061
|
-
* This event is streamed to frontend/logging but NOT used for workflow
|
|
1062
|
-
* coordination between ExecutorAgent and DroidAgent.
|
|
1063
|
-
*
|
|
1064
|
-
* For workflow coordination, see ExecutorResultEvent in droid/events.py
|
|
1056
|
+
* Action execution result (internal event with full details).
|
|
1065
1057
|
*/
|
|
1066
1058
|
export interface Data {
|
|
1067
1059
|
action: { [key: string]: unknown };
|
|
1068
1060
|
|
|
1069
1061
|
error: string;
|
|
1070
1062
|
|
|
1071
|
-
|
|
1063
|
+
success: boolean;
|
|
1072
1064
|
|
|
1073
1065
|
summary: string;
|
|
1074
1066
|
|
|
1075
|
-
action_json?: string;
|
|
1076
|
-
|
|
1077
1067
|
full_response?: string;
|
|
1078
1068
|
|
|
1079
1069
|
thought?: string;
|
|
@@ -1082,25 +1072,16 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1082
1072
|
|
|
1083
1073
|
export interface TrajectoryScripterInputEvent {
|
|
1084
1074
|
/**
|
|
1085
|
-
* Input
|
|
1075
|
+
* Input ready for LLM.
|
|
1086
1076
|
*/
|
|
1087
|
-
data:
|
|
1077
|
+
data: unknown;
|
|
1088
1078
|
|
|
1089
1079
|
event: 'ScripterInputEvent';
|
|
1090
1080
|
}
|
|
1091
1081
|
|
|
1092
|
-
export namespace TrajectoryScripterInputEvent {
|
|
1093
|
-
/**
|
|
1094
|
-
* Input to LLM (chat history).
|
|
1095
|
-
*/
|
|
1096
|
-
export interface Data {
|
|
1097
|
-
input: Array<unknown>;
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
1082
|
export interface TrajectoryScripterThinkingEvent {
|
|
1102
1083
|
/**
|
|
1103
|
-
* LLM
|
|
1084
|
+
* LLM response received.
|
|
1104
1085
|
*/
|
|
1105
1086
|
data: TrajectoryScripterThinkingEvent.Data;
|
|
1106
1087
|
|
|
@@ -1109,10 +1090,10 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1109
1090
|
|
|
1110
1091
|
export namespace TrajectoryScripterThinkingEvent {
|
|
1111
1092
|
/**
|
|
1112
|
-
* LLM
|
|
1093
|
+
* LLM response received.
|
|
1113
1094
|
*/
|
|
1114
1095
|
export interface Data {
|
|
1115
|
-
|
|
1096
|
+
thought: string;
|
|
1116
1097
|
|
|
1117
1098
|
code?: string | null;
|
|
1118
1099
|
|
|
@@ -1136,7 +1117,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1136
1117
|
|
|
1137
1118
|
export interface TrajectoryScripterExecutionEvent {
|
|
1138
1119
|
/**
|
|
1139
|
-
*
|
|
1120
|
+
* Code ready to execute.
|
|
1140
1121
|
*/
|
|
1141
1122
|
data: TrajectoryScripterExecutionEvent.Data;
|
|
1142
1123
|
|
|
@@ -1145,7 +1126,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1145
1126
|
|
|
1146
1127
|
export namespace TrajectoryScripterExecutionEvent {
|
|
1147
1128
|
/**
|
|
1148
|
-
*
|
|
1129
|
+
* Code ready to execute.
|
|
1149
1130
|
*/
|
|
1150
1131
|
export interface Data {
|
|
1151
1132
|
code: string;
|
|
@@ -1172,7 +1153,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1172
1153
|
|
|
1173
1154
|
export interface TrajectoryScripterEndEvent {
|
|
1174
1155
|
/**
|
|
1175
|
-
*
|
|
1156
|
+
* Scripter finished.
|
|
1176
1157
|
*/
|
|
1177
1158
|
data: TrajectoryScripterEndEvent.Data;
|
|
1178
1159
|
|
|
@@ -1181,7 +1162,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1181
1162
|
|
|
1182
1163
|
export namespace TrajectoryScripterEndEvent {
|
|
1183
1164
|
/**
|
|
1184
|
-
*
|
|
1165
|
+
* Scripter finished.
|
|
1185
1166
|
*/
|
|
1186
1167
|
export interface Data {
|
|
1187
1168
|
message: string;
|
|
@@ -1283,6 +1264,16 @@ export interface TaskRunParams {
|
|
|
1283
1264
|
|
|
1284
1265
|
credentials?: Array<TaskRunParams.Credential>;
|
|
1285
1266
|
|
|
1267
|
+
/**
|
|
1268
|
+
* The ID of the device to run the task on.
|
|
1269
|
+
*/
|
|
1270
|
+
deviceId?: string | null;
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* The display ID of the device to run the task on.
|
|
1274
|
+
*/
|
|
1275
|
+
displayId?: number;
|
|
1276
|
+
|
|
1286
1277
|
executionTimeout?: number;
|
|
1287
1278
|
|
|
1288
1279
|
files?: Array<string>;
|
|
@@ -1317,6 +1308,16 @@ export interface TaskRunStreamedParams {
|
|
|
1317
1308
|
|
|
1318
1309
|
credentials?: Array<TaskRunStreamedParams.Credential>;
|
|
1319
1310
|
|
|
1311
|
+
/**
|
|
1312
|
+
* The ID of the device to run the task on.
|
|
1313
|
+
*/
|
|
1314
|
+
deviceId?: string | null;
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* The display ID of the device to run the task on.
|
|
1318
|
+
*/
|
|
1319
|
+
displayId?: number;
|
|
1320
|
+
|
|
1320
1321
|
executionTimeout?: number;
|
|
1321
1322
|
|
|
1322
1323
|
files?: Array<string>;
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '2.0.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "2.0.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "2.0.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '2.0.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|