@mobilerun/sdk 1.0.0 → 2.1.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 +142 -0
- package/LICENSE +1 -1
- package/README.md +9 -0
- package/client.d.mts +13 -9
- package/client.d.mts.map +1 -1
- package/client.d.ts +13 -9
- package/client.d.ts.map +1 -1
- package/client.js +23 -17
- package/client.js.map +1 -1
- package/client.mjs +24 -18
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/apps.d.mts +20 -7
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +20 -7
- package/resources/apps.d.ts.map +1 -1
- package/resources/credentials/credentials.d.mts +18 -3
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +18 -3
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +2 -2
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +2 -2
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts +1 -1
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts +1 -1
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.js.map +1 -1
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +6 -6
- package/resources/credentials/packages/credentials/fields.d.ts +6 -6
- 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 +93 -0
- package/resources/devices/apps.d.mts.map +1 -0
- package/resources/devices/apps.d.ts +93 -0
- package/resources/devices/apps.d.ts.map +1 -0
- package/resources/devices/apps.js +105 -0
- package/resources/devices/apps.js.map +1 -0
- package/resources/devices/apps.mjs +101 -0
- package/resources/devices/apps.mjs.map +1 -0
- package/resources/devices/devices.d.mts +154 -0
- package/resources/devices/devices.d.mts.map +1 -0
- package/resources/devices/devices.d.ts +154 -0
- package/resources/devices/devices.d.ts.map +1 -0
- package/resources/devices/devices.js +80 -0
- package/resources/devices/devices.js.map +1 -0
- package/resources/devices/devices.mjs +75 -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 +22 -3
- package/resources/hooks.d.mts.map +1 -1
- package/resources/hooks.d.ts +22 -3
- package/resources/hooks.d.ts.map +1 -1
- package/resources/hooks.js +11 -4
- package/resources/hooks.js.map +1 -1
- package/resources/hooks.mjs +11 -4
- package/resources/hooks.mjs.map +1 -1
- package/resources/index.d.mts +5 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/models.d.mts +28 -0
- package/resources/models.d.mts.map +1 -0
- package/resources/models.d.ts +28 -0
- package/resources/models.d.ts.map +1 -0
- package/resources/models.js +15 -0
- package/resources/models.js.map +1 -0
- package/resources/models.mjs +11 -0
- package/resources/models.mjs.map +1 -0
- package/resources/tasks/index.d.mts +1 -1
- package/resources/tasks/index.d.mts.map +1 -1
- package/resources/tasks/index.d.ts +1 -1
- package/resources/tasks/index.d.ts.map +1 -1
- package/resources/tasks/index.js.map +1 -1
- package/resources/tasks/index.mjs.map +1 -1
- package/resources/tasks/screenshots.d.mts +2 -2
- package/resources/tasks/screenshots.d.ts +2 -2
- package/resources/tasks/screenshots.js +2 -2
- package/resources/tasks/screenshots.mjs +2 -2
- package/resources/tasks/tasks.d.mts +158 -424
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +158 -424
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +12 -10
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +12 -10
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/tasks/ui-states.d.mts +2 -2
- package/resources/tasks/ui-states.d.ts +2 -2
- package/resources/tasks/ui-states.js +2 -2
- package/resources/tasks/ui-states.mjs +2 -2
- package/src/client.ts +60 -26
- package/src/internal/parse.ts +6 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/resources/apps.ts +31 -9
- package/src/resources/credentials/credentials.ts +34 -4
- package/src/resources/credentials/index.ts +1 -1
- package/src/resources/credentials/packages/credentials/fields.ts +6 -6
- package/src/resources/devices/actions.ts +138 -0
- package/src/resources/devices/apps.ts +204 -0
- package/src/resources/devices/devices.ts +303 -0
- package/src/resources/devices/index.ts +38 -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 +36 -4
- package/src/resources/index.ts +17 -3
- package/src/resources/models.ts +39 -0
- package/src/resources/tasks/index.ts +0 -2
- package/src/resources/tasks/screenshots.ts +2 -2
- package/src/resources/tasks/tasks.ts +176 -554
- package/src/resources/tasks/ui-states.ts +2 -2
- 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
|
@@ -15,24 +15,24 @@ export class Tasks extends APIResource {
|
|
|
15
15
|
uiStates: UiStatesAPI.UiStates = new UiStatesAPI.UiStates(this._client);
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Get
|
|
18
|
+
* Get full details of a task by ID.
|
|
19
19
|
*/
|
|
20
20
|
retrieve(taskID: string, options?: RequestOptions): APIPromise<TaskRetrieveResponse> {
|
|
21
21
|
return this._client.get(path`/tasks/${taskID}`, options);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* List
|
|
25
|
+
* List tasks with optional filtering, sorting, and pagination.
|
|
26
26
|
*/
|
|
27
27
|
list(
|
|
28
28
|
query: TaskListParams | null | undefined = {},
|
|
29
29
|
options?: RequestOptions,
|
|
30
30
|
): APIPromise<TaskListResponse> {
|
|
31
|
-
return this._client.get('/tasks
|
|
31
|
+
return this._client.get('/tasks', { query, ...options });
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* Attach
|
|
35
|
+
* Attach to a running task and receive its events as an SSE stream.
|
|
36
36
|
*/
|
|
37
37
|
attach(taskID: string, options?: RequestOptions): APIPromise<void> {
|
|
38
38
|
return this._client.get(path`/tasks/${taskID}/attach`, {
|
|
@@ -42,8 +42,7 @@ export class Tasks extends APIResource {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
* Get the status of a task.
|
|
46
|
-
* specific device. Otherwise, return the status of all devices.
|
|
45
|
+
* Get the status of a task.
|
|
47
46
|
*/
|
|
48
47
|
getStatus(taskID: string, options?: RequestOptions): APIPromise<TaskGetStatusResponse> {
|
|
49
48
|
return this._client.get(path`/tasks/${taskID}/status`, options);
|
|
@@ -57,14 +56,16 @@ export class Tasks extends APIResource {
|
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
/**
|
|
60
|
-
*
|
|
59
|
+
* Create and dispatch a new agent task. Returns the task ID and device stream
|
|
60
|
+
* details.
|
|
61
61
|
*/
|
|
62
62
|
run(body: TaskRunParams, options?: RequestOptions): APIPromise<TaskRunResponse> {
|
|
63
|
-
return this._client.post('/tasks
|
|
63
|
+
return this._client.post('/tasks', { body, ...options });
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Create and dispatch a new agent task, returning an SSE stream of task events.
|
|
68
|
+
* Cancels the task if the client disconnects.
|
|
68
69
|
*/
|
|
69
70
|
runStreamed(body: TaskRunStreamedParams, options?: RequestOptions): APIPromise<void> {
|
|
70
71
|
return this._client.post('/tasks/stream', {
|
|
@@ -75,26 +76,21 @@ export class Tasks extends APIResource {
|
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
/**
|
|
78
|
-
*
|
|
79
|
+
* Cancel a running task. Returns an error if the task is already in a terminal
|
|
80
|
+
* state.
|
|
79
81
|
*/
|
|
80
82
|
stop(taskID: string, options?: RequestOptions): APIPromise<TaskStopResponse> {
|
|
81
83
|
return this._client.post(path`/tasks/${taskID}/cancel`, options);
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
|
|
85
|
-
export type LlmModel =
|
|
86
|
-
| 'openai/gpt-5'
|
|
87
|
-
| 'google/gemini-2.5-flash'
|
|
88
|
-
| 'google/gemini-2.5-pro'
|
|
89
|
-
| 'google/gemini-3-pro-preview'
|
|
90
|
-
| 'anthropic/claude-sonnet-4.5'
|
|
91
|
-
| 'minimax/minimax-m2'
|
|
92
|
-
| 'moonshotai/kimi-k2-thinking';
|
|
93
|
-
|
|
94
87
|
export interface Task {
|
|
95
88
|
deviceId: string;
|
|
96
89
|
|
|
97
|
-
|
|
90
|
+
/**
|
|
91
|
+
* The LLM model identifier to use for the task (e.g. 'gemini/gemini-2.5-flash')
|
|
92
|
+
*/
|
|
93
|
+
llmModel: string;
|
|
98
94
|
|
|
99
95
|
task: string;
|
|
100
96
|
|
|
@@ -108,6 +104,8 @@ export interface Task {
|
|
|
108
104
|
|
|
109
105
|
credentials?: Array<Task.Credential>;
|
|
110
106
|
|
|
107
|
+
displayId?: number;
|
|
108
|
+
|
|
111
109
|
executionTimeout?: number;
|
|
112
110
|
|
|
113
111
|
files?: Array<string>;
|
|
@@ -124,12 +122,16 @@ export interface Task {
|
|
|
124
122
|
|
|
125
123
|
status?: TaskStatus;
|
|
126
124
|
|
|
125
|
+
stealth?: boolean;
|
|
126
|
+
|
|
127
127
|
steps?: number | null;
|
|
128
128
|
|
|
129
129
|
succeeded?: boolean | null;
|
|
130
130
|
|
|
131
131
|
temperature?: number;
|
|
132
132
|
|
|
133
|
+
tmpDevice?: boolean;
|
|
134
|
+
|
|
133
135
|
trajectory?: Array<{ [key: string]: unknown }>;
|
|
134
136
|
|
|
135
137
|
updatedAt?: string;
|
|
@@ -147,40 +149,6 @@ export namespace Task {
|
|
|
147
149
|
}
|
|
148
150
|
}
|
|
149
151
|
|
|
150
|
-
export interface TaskCreate {
|
|
151
|
-
llmModel: LlmModel;
|
|
152
|
-
|
|
153
|
-
task: string;
|
|
154
|
-
|
|
155
|
-
apps?: Array<string>;
|
|
156
|
-
|
|
157
|
-
credentials?: Array<TaskCreate.Credential>;
|
|
158
|
-
|
|
159
|
-
executionTimeout?: number;
|
|
160
|
-
|
|
161
|
-
files?: Array<string>;
|
|
162
|
-
|
|
163
|
-
maxSteps?: number;
|
|
164
|
-
|
|
165
|
-
outputSchema?: { [key: string]: unknown } | null;
|
|
166
|
-
|
|
167
|
-
reasoning?: boolean;
|
|
168
|
-
|
|
169
|
-
temperature?: number;
|
|
170
|
-
|
|
171
|
-
vision?: boolean;
|
|
172
|
-
|
|
173
|
-
vpnCountry?: 'US' | 'BR' | 'FR' | 'DE' | 'IN' | 'JP' | 'KR' | 'ZA' | null;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export namespace TaskCreate {
|
|
177
|
-
export interface Credential {
|
|
178
|
-
credentialNames: Array<string>;
|
|
179
|
-
|
|
180
|
-
packageName: string;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
152
|
export type TaskStatus = 'created' | 'running' | 'paused' | 'completed' | 'failed' | 'cancelled';
|
|
185
153
|
|
|
186
154
|
export interface TaskRetrieveResponse {
|
|
@@ -256,7 +224,6 @@ export interface TaskGetTrajectoryResponse {
|
|
|
256
224
|
| TaskGetTrajectoryResponse.TrajectoryCancelEvent
|
|
257
225
|
| TaskGetTrajectoryResponse.TrajectoryScreenshotEvent
|
|
258
226
|
| TaskGetTrajectoryResponse.TrajectoryStartEvent
|
|
259
|
-
| TaskGetTrajectoryResponse.TrajectoryTaskRunnerEvent
|
|
260
227
|
| TaskGetTrajectoryResponse.TrajectoryFinalizeEvent
|
|
261
228
|
| TaskGetTrajectoryResponse.TrajectoryStopEvent
|
|
262
229
|
| TaskGetTrajectoryResponse.TrajectoryResultEvent
|
|
@@ -264,25 +231,15 @@ export interface TaskGetTrajectoryResponse {
|
|
|
264
231
|
| TaskGetTrajectoryResponse.TrajectoryManagerPlanEvent
|
|
265
232
|
| TaskGetTrajectoryResponse.TrajectoryExecutorInputEvent
|
|
266
233
|
| TaskGetTrajectoryResponse.TrajectoryExecutorResultEvent
|
|
267
|
-
| TaskGetTrajectoryResponse.
|
|
268
|
-
| TaskGetTrajectoryResponse.
|
|
269
|
-
| TaskGetTrajectoryResponse.
|
|
270
|
-
| TaskGetTrajectoryResponse.
|
|
271
|
-
| TaskGetTrajectoryResponse.
|
|
272
|
-
| TaskGetTrajectoryResponse.
|
|
273
|
-
| TaskGetTrajectoryResponse.
|
|
274
|
-
| TaskGetTrajectoryResponse.
|
|
275
|
-
| TaskGetTrajectoryResponse.TrajectoryTaskEndEvent
|
|
276
|
-
| TaskGetTrajectoryResponse.TrajectoryCodeActExecuteEvent
|
|
277
|
-
| TaskGetTrajectoryResponse.TrajectoryCodeActResultEvent
|
|
278
|
-
| TaskGetTrajectoryResponse.TrajectoryTapActionEvent
|
|
279
|
-
| TaskGetTrajectoryResponse.TrajectorySwipeActionEvent
|
|
280
|
-
| TaskGetTrajectoryResponse.TrajectoryDragActionEvent
|
|
281
|
-
| TaskGetTrajectoryResponse.TrajectoryInputTextActionEvent
|
|
282
|
-
| TaskGetTrajectoryResponse.TrajectoryKeyPressActionEvent
|
|
283
|
-
| TaskGetTrajectoryResponse.TrajectoryStartAppEvent
|
|
234
|
+
| TaskGetTrajectoryResponse.TrajectoryFastAgentInputEvent
|
|
235
|
+
| TaskGetTrajectoryResponse.TrajectoryFastAgentResponseEvent
|
|
236
|
+
| TaskGetTrajectoryResponse.TrajectoryFastAgentToolCallEvent
|
|
237
|
+
| TaskGetTrajectoryResponse.TrajectoryFastAgentOutputEvent
|
|
238
|
+
| TaskGetTrajectoryResponse.TrajectoryFastAgentEndEvent
|
|
239
|
+
| TaskGetTrajectoryResponse.TrajectoryFastAgentExecuteEvent
|
|
240
|
+
| TaskGetTrajectoryResponse.TrajectoryFastAgentResultEvent
|
|
241
|
+
| TaskGetTrajectoryResponse.TrajectoryToolExecutionEvent
|
|
284
242
|
| TaskGetTrajectoryResponse.TrajectoryRecordUiStateEvent
|
|
285
|
-
| TaskGetTrajectoryResponse.TrajectoryWaitEvent
|
|
286
243
|
| TaskGetTrajectoryResponse.TrajectoryManagerContextEvent
|
|
287
244
|
| TaskGetTrajectoryResponse.TrajectoryManagerResponseEvent
|
|
288
245
|
| TaskGetTrajectoryResponse.TrajectoryManagerPlanDetailsEvent
|
|
@@ -290,13 +247,7 @@ export interface TaskGetTrajectoryResponse {
|
|
|
290
247
|
| TaskGetTrajectoryResponse.TrajectoryExecutorResponseEvent
|
|
291
248
|
| TaskGetTrajectoryResponse.TrajectoryExecutorActionEvent
|
|
292
249
|
| TaskGetTrajectoryResponse.TrajectoryExecutorActionResultEvent
|
|
293
|
-
| TaskGetTrajectoryResponse.
|
|
294
|
-
| TaskGetTrajectoryResponse.TrajectoryScripterThinkingEvent
|
|
295
|
-
| TaskGetTrajectoryResponse.TrajectoryScripterExecutionEvent
|
|
296
|
-
| TaskGetTrajectoryResponse.TrajectoryScripterExecutionResultEvent
|
|
297
|
-
| TaskGetTrajectoryResponse.TrajectoryScripterEndEvent
|
|
298
|
-
| TaskGetTrajectoryResponse.TrajectoryTextManipulatorInputEvent
|
|
299
|
-
| TaskGetTrajectoryResponse.TrajectoryTextManipulatorResultEvent
|
|
250
|
+
| TaskGetTrajectoryResponse.TrajectoryUnknownEvent
|
|
300
251
|
>;
|
|
301
252
|
}
|
|
302
253
|
|
|
@@ -364,19 +315,19 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
364
315
|
event: 'StartEvent';
|
|
365
316
|
}
|
|
366
317
|
|
|
367
|
-
export interface TrajectoryTaskRunnerEvent {
|
|
368
|
-
data: unknown;
|
|
369
|
-
|
|
370
|
-
event: 'TaskRunnerEvent';
|
|
371
|
-
}
|
|
372
|
-
|
|
373
318
|
export interface TrajectoryFinalizeEvent {
|
|
319
|
+
/**
|
|
320
|
+
* Trigger finalization.
|
|
321
|
+
*/
|
|
374
322
|
data: TrajectoryFinalizeEvent.Data;
|
|
375
323
|
|
|
376
324
|
event: 'FinalizeEvent';
|
|
377
325
|
}
|
|
378
326
|
|
|
379
327
|
export namespace TrajectoryFinalizeEvent {
|
|
328
|
+
/**
|
|
329
|
+
* Trigger finalization.
|
|
330
|
+
*/
|
|
380
331
|
export interface Data {
|
|
381
332
|
reason: string;
|
|
382
333
|
|
|
@@ -411,11 +362,33 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
411
362
|
}
|
|
412
363
|
|
|
413
364
|
export interface TrajectoryResultEvent {
|
|
414
|
-
|
|
365
|
+
/**
|
|
366
|
+
* Lazy wrapper — avoids importing droidrun at module level.
|
|
367
|
+
*
|
|
368
|
+
* The worker uses droidrun's ResultEvent directly; this model only exists so the
|
|
369
|
+
* API OpenAPI schema can reference it without the heavy droidrun import.
|
|
370
|
+
*/
|
|
371
|
+
data: TrajectoryResultEvent.Data;
|
|
415
372
|
|
|
416
373
|
event: 'ResultEvent';
|
|
417
374
|
}
|
|
418
375
|
|
|
376
|
+
export namespace TrajectoryResultEvent {
|
|
377
|
+
/**
|
|
378
|
+
* Lazy wrapper — avoids importing droidrun at module level.
|
|
379
|
+
*
|
|
380
|
+
* The worker uses droidrun's ResultEvent directly; this model only exists so the
|
|
381
|
+
* API OpenAPI schema can reference it without the heavy droidrun import.
|
|
382
|
+
*/
|
|
383
|
+
export interface Data {
|
|
384
|
+
steps?: number | null;
|
|
385
|
+
|
|
386
|
+
structured_output?: { [key: string]: unknown } | null;
|
|
387
|
+
|
|
388
|
+
success?: boolean | null;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
419
392
|
export interface TrajectoryManagerInputEvent {
|
|
420
393
|
/**
|
|
421
394
|
* Trigger Manager workflow for planning
|
|
@@ -451,7 +424,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
451
424
|
|
|
452
425
|
thought: string;
|
|
453
426
|
|
|
454
|
-
|
|
427
|
+
answer?: string;
|
|
455
428
|
|
|
456
429
|
success?: boolean | null;
|
|
457
430
|
}
|
|
@@ -477,10 +450,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
477
450
|
|
|
478
451
|
export interface TrajectoryExecutorResultEvent {
|
|
479
452
|
/**
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
* Used for workflow step routing only (NOT streamed to frontend). For internal
|
|
483
|
-
* events with thought/action_json metadata, see ExecutorActionResultEvent.
|
|
453
|
+
* Executor finished with action result.
|
|
484
454
|
*/
|
|
485
455
|
data: TrajectoryExecutorResultEvent.Data;
|
|
486
456
|
|
|
@@ -489,10 +459,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
489
459
|
|
|
490
460
|
export namespace TrajectoryExecutorResultEvent {
|
|
491
461
|
/**
|
|
492
|
-
*
|
|
493
|
-
*
|
|
494
|
-
* Used for workflow step routing only (NOT streamed to frontend). For internal
|
|
495
|
-
* events with thought/action_json metadata, see ExecutorActionResultEvent.
|
|
462
|
+
* Executor finished with action result.
|
|
496
463
|
*/
|
|
497
464
|
export interface Data {
|
|
498
465
|
action: { [key: string]: unknown };
|
|
@@ -502,87 +469,36 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
502
469
|
outcome: boolean;
|
|
503
470
|
|
|
504
471
|
summary: string;
|
|
505
|
-
|
|
506
|
-
full_response?: string;
|
|
507
472
|
}
|
|
508
473
|
}
|
|
509
474
|
|
|
510
|
-
export interface
|
|
475
|
+
export interface TrajectoryFastAgentInputEvent {
|
|
511
476
|
/**
|
|
512
|
-
*
|
|
477
|
+
* Input ready for LLM.
|
|
513
478
|
*/
|
|
514
|
-
data:
|
|
479
|
+
data: unknown;
|
|
515
480
|
|
|
516
|
-
event: '
|
|
481
|
+
event: 'FastAgentInputEvent';
|
|
517
482
|
}
|
|
518
483
|
|
|
519
|
-
export
|
|
484
|
+
export interface TrajectoryFastAgentResponseEvent {
|
|
520
485
|
/**
|
|
521
|
-
*
|
|
486
|
+
* LLM response received.
|
|
522
487
|
*/
|
|
523
|
-
|
|
524
|
-
task: string;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
488
|
+
data: TrajectoryFastAgentResponseEvent.Data;
|
|
527
489
|
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* Coordination event from ScripterAgent to DroidAgent.
|
|
531
|
-
*
|
|
532
|
-
* Used for workflow step routing only (NOT streamed to frontend).
|
|
533
|
-
*/
|
|
534
|
-
data: TrajectoryScripterExecutorResultEvent.Data;
|
|
535
|
-
|
|
536
|
-
event: 'ScripterExecutorResultEvent';
|
|
490
|
+
event: 'FastAgentResponseEvent';
|
|
537
491
|
}
|
|
538
492
|
|
|
539
|
-
export namespace
|
|
493
|
+
export namespace TrajectoryFastAgentResponseEvent {
|
|
540
494
|
/**
|
|
541
|
-
*
|
|
542
|
-
*
|
|
543
|
-
* Used for workflow step routing only (NOT streamed to frontend).
|
|
495
|
+
* LLM response received.
|
|
544
496
|
*/
|
|
545
497
|
export interface Data {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
message: string;
|
|
549
|
-
|
|
550
|
-
success: boolean;
|
|
551
|
-
|
|
552
|
-
task: string;
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
export interface TrajectoryPlanCreatedEvent {
|
|
557
|
-
data: { [key: string]: unknown };
|
|
558
|
-
|
|
559
|
-
event: 'PlanCreatedEvent';
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
export interface TrajectoryPlanInputEvent {
|
|
563
|
-
data: { [key: string]: unknown };
|
|
564
|
-
|
|
565
|
-
event: 'PlanInputEvent';
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
export interface TrajectoryPlanThinkingEvent {
|
|
569
|
-
data: { [key: string]: unknown };
|
|
570
|
-
|
|
571
|
-
event: 'PlanThinkingEvent';
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
export interface TrajectoryTaskThinkingEvent {
|
|
575
|
-
data: TrajectoryTaskThinkingEvent.Data;
|
|
576
|
-
|
|
577
|
-
event: 'TaskThinkingEvent';
|
|
578
|
-
}
|
|
498
|
+
thought: string;
|
|
579
499
|
|
|
580
|
-
export namespace TrajectoryTaskThinkingEvent {
|
|
581
|
-
export interface Data {
|
|
582
500
|
code?: string | null;
|
|
583
501
|
|
|
584
|
-
thoughts?: string | null;
|
|
585
|
-
|
|
586
502
|
usage?: Data.Usage | null;
|
|
587
503
|
}
|
|
588
504
|
|
|
@@ -599,233 +515,113 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
599
515
|
}
|
|
600
516
|
}
|
|
601
517
|
|
|
602
|
-
export interface
|
|
603
|
-
data: TrajectoryTaskExecutionEvent.Data;
|
|
604
|
-
|
|
605
|
-
event: 'TaskExecutionEvent';
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
export namespace TrajectoryTaskExecutionEvent {
|
|
609
|
-
export interface Data {
|
|
610
|
-
code: string;
|
|
611
|
-
|
|
612
|
-
globals?: { [key: string]: string };
|
|
613
|
-
|
|
614
|
-
locals?: { [key: string]: string };
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
export interface TrajectoryTaskExecutionResultEvent {
|
|
619
|
-
data: TrajectoryTaskExecutionResultEvent.Data;
|
|
620
|
-
|
|
621
|
-
event: 'TaskExecutionResultEvent';
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
export namespace TrajectoryTaskExecutionResultEvent {
|
|
625
|
-
export interface Data {
|
|
626
|
-
output: string;
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
export interface TrajectoryTaskEndEvent {
|
|
631
|
-
data: TrajectoryTaskEndEvent.Data;
|
|
632
|
-
|
|
633
|
-
event: 'TaskEndEvent';
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
export namespace TrajectoryTaskEndEvent {
|
|
637
|
-
export interface Data {
|
|
638
|
-
reason: string;
|
|
639
|
-
|
|
640
|
-
success: boolean;
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
export interface TrajectoryCodeActExecuteEvent {
|
|
645
|
-
data: TrajectoryCodeActExecuteEvent.Data;
|
|
646
|
-
|
|
647
|
-
event: 'CodeActExecuteEvent';
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
export namespace TrajectoryCodeActExecuteEvent {
|
|
651
|
-
export interface Data {
|
|
652
|
-
instruction: string;
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
export interface TrajectoryCodeActResultEvent {
|
|
657
|
-
data: TrajectoryCodeActResultEvent.Data;
|
|
658
|
-
|
|
659
|
-
event: 'CodeActResultEvent';
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
export namespace TrajectoryCodeActResultEvent {
|
|
663
|
-
export interface Data {
|
|
664
|
-
instruction: string;
|
|
665
|
-
|
|
666
|
-
reason: string;
|
|
667
|
-
|
|
668
|
-
success: boolean;
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
export interface TrajectoryTapActionEvent {
|
|
518
|
+
export interface TrajectoryFastAgentToolCallEvent {
|
|
673
519
|
/**
|
|
674
|
-
*
|
|
520
|
+
* Tool calls ready to execute.
|
|
675
521
|
*/
|
|
676
|
-
data:
|
|
522
|
+
data: TrajectoryFastAgentToolCallEvent.Data;
|
|
677
523
|
|
|
678
|
-
event: '
|
|
524
|
+
event: 'FastAgentToolCallEvent';
|
|
679
525
|
}
|
|
680
526
|
|
|
681
|
-
export namespace
|
|
527
|
+
export namespace TrajectoryFastAgentToolCallEvent {
|
|
682
528
|
/**
|
|
683
|
-
*
|
|
529
|
+
* Tool calls ready to execute.
|
|
684
530
|
*/
|
|
685
531
|
export interface Data {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
description: string;
|
|
689
|
-
|
|
690
|
-
x: number;
|
|
691
|
-
|
|
692
|
-
y: number;
|
|
693
|
-
|
|
694
|
-
element_bounds?: string;
|
|
695
|
-
|
|
696
|
-
element_index?: number;
|
|
697
|
-
|
|
698
|
-
element_text?: string;
|
|
532
|
+
tool_calls_repr: string;
|
|
699
533
|
}
|
|
700
534
|
}
|
|
701
535
|
|
|
702
|
-
export interface
|
|
536
|
+
export interface TrajectoryFastAgentOutputEvent {
|
|
703
537
|
/**
|
|
704
|
-
*
|
|
538
|
+
* Tool execution result.
|
|
705
539
|
*/
|
|
706
|
-
data:
|
|
540
|
+
data: TrajectoryFastAgentOutputEvent.Data;
|
|
707
541
|
|
|
708
|
-
event: '
|
|
542
|
+
event: 'FastAgentOutputEvent';
|
|
709
543
|
}
|
|
710
544
|
|
|
711
|
-
export namespace
|
|
545
|
+
export namespace TrajectoryFastAgentOutputEvent {
|
|
712
546
|
/**
|
|
713
|
-
*
|
|
547
|
+
* Tool execution result.
|
|
714
548
|
*/
|
|
715
549
|
export interface Data {
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
description: string;
|
|
719
|
-
|
|
720
|
-
duration_ms: number;
|
|
721
|
-
|
|
722
|
-
end_x: number;
|
|
723
|
-
|
|
724
|
-
end_y: number;
|
|
725
|
-
|
|
726
|
-
start_x: number;
|
|
727
|
-
|
|
728
|
-
start_y: number;
|
|
550
|
+
output: string;
|
|
729
551
|
}
|
|
730
552
|
}
|
|
731
553
|
|
|
732
|
-
export interface
|
|
554
|
+
export interface TrajectoryFastAgentEndEvent {
|
|
733
555
|
/**
|
|
734
|
-
*
|
|
556
|
+
* FastAgent finished.
|
|
735
557
|
*/
|
|
736
|
-
data:
|
|
558
|
+
data: TrajectoryFastAgentEndEvent.Data;
|
|
737
559
|
|
|
738
|
-
event: '
|
|
560
|
+
event: 'FastAgentEndEvent';
|
|
739
561
|
}
|
|
740
562
|
|
|
741
|
-
export namespace
|
|
563
|
+
export namespace TrajectoryFastAgentEndEvent {
|
|
742
564
|
/**
|
|
743
|
-
*
|
|
565
|
+
* FastAgent finished.
|
|
744
566
|
*/
|
|
745
567
|
export interface Data {
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
description: string;
|
|
749
|
-
|
|
750
|
-
duration_ms: number;
|
|
751
|
-
|
|
752
|
-
end_x: number;
|
|
753
|
-
|
|
754
|
-
end_y: number;
|
|
568
|
+
reason: string;
|
|
755
569
|
|
|
756
|
-
|
|
570
|
+
success: boolean;
|
|
757
571
|
|
|
758
|
-
|
|
572
|
+
tool_call_count?: number;
|
|
759
573
|
}
|
|
760
574
|
}
|
|
761
575
|
|
|
762
|
-
export interface
|
|
763
|
-
|
|
764
|
-
* Event for text input actions
|
|
765
|
-
*/
|
|
766
|
-
data: TrajectoryInputTextActionEvent.Data;
|
|
576
|
+
export interface TrajectoryFastAgentExecuteEvent {
|
|
577
|
+
data: TrajectoryFastAgentExecuteEvent.Data;
|
|
767
578
|
|
|
768
|
-
event: '
|
|
579
|
+
event: 'FastAgentExecuteEvent';
|
|
769
580
|
}
|
|
770
581
|
|
|
771
|
-
export namespace
|
|
772
|
-
/**
|
|
773
|
-
* Event for text input actions
|
|
774
|
-
*/
|
|
582
|
+
export namespace TrajectoryFastAgentExecuteEvent {
|
|
775
583
|
export interface Data {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
description: string;
|
|
779
|
-
|
|
780
|
-
text: string;
|
|
584
|
+
instruction: string;
|
|
781
585
|
}
|
|
782
586
|
}
|
|
783
587
|
|
|
784
|
-
export interface
|
|
785
|
-
|
|
786
|
-
* Event for key press actions
|
|
787
|
-
*/
|
|
788
|
-
data: TrajectoryKeyPressActionEvent.Data;
|
|
588
|
+
export interface TrajectoryFastAgentResultEvent {
|
|
589
|
+
data: TrajectoryFastAgentResultEvent.Data;
|
|
789
590
|
|
|
790
|
-
event: '
|
|
591
|
+
event: 'FastAgentResultEvent';
|
|
791
592
|
}
|
|
792
593
|
|
|
793
|
-
export namespace
|
|
794
|
-
/**
|
|
795
|
-
* Event for key press actions
|
|
796
|
-
*/
|
|
594
|
+
export namespace TrajectoryFastAgentResultEvent {
|
|
797
595
|
export interface Data {
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
description: string;
|
|
596
|
+
instruction: string;
|
|
801
597
|
|
|
802
|
-
|
|
598
|
+
reason: string;
|
|
803
599
|
|
|
804
|
-
|
|
600
|
+
success: boolean;
|
|
805
601
|
}
|
|
806
602
|
}
|
|
807
603
|
|
|
808
|
-
export interface
|
|
604
|
+
export interface TrajectoryToolExecutionEvent {
|
|
809
605
|
/**
|
|
810
|
-
*
|
|
606
|
+
* Emitted after every tool call dispatched through ToolRegistry.
|
|
811
607
|
*/
|
|
812
|
-
data:
|
|
608
|
+
data: TrajectoryToolExecutionEvent.Data;
|
|
813
609
|
|
|
814
|
-
event: '
|
|
610
|
+
event: 'ToolExecutionEvent';
|
|
815
611
|
}
|
|
816
612
|
|
|
817
|
-
export namespace
|
|
613
|
+
export namespace TrajectoryToolExecutionEvent {
|
|
818
614
|
/**
|
|
819
|
-
*
|
|
615
|
+
* Emitted after every tool call dispatched through ToolRegistry.
|
|
820
616
|
*/
|
|
821
617
|
export interface Data {
|
|
822
|
-
|
|
618
|
+
success: boolean;
|
|
823
619
|
|
|
824
|
-
|
|
620
|
+
summary: string;
|
|
825
621
|
|
|
826
|
-
|
|
622
|
+
tool_args: { [key: string]: unknown };
|
|
827
623
|
|
|
828
|
-
|
|
624
|
+
tool_name: string;
|
|
829
625
|
}
|
|
830
626
|
}
|
|
831
627
|
|
|
@@ -843,31 +639,9 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
843
639
|
}
|
|
844
640
|
}
|
|
845
641
|
|
|
846
|
-
export interface TrajectoryWaitEvent {
|
|
847
|
-
/**
|
|
848
|
-
* Event for wait/sleep actions
|
|
849
|
-
*/
|
|
850
|
-
data: TrajectoryWaitEvent.Data;
|
|
851
|
-
|
|
852
|
-
event: 'WaitEvent';
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
export namespace TrajectoryWaitEvent {
|
|
856
|
-
/**
|
|
857
|
-
* Event for wait/sleep actions
|
|
858
|
-
*/
|
|
859
|
-
export interface Data {
|
|
860
|
-
action_type: string;
|
|
861
|
-
|
|
862
|
-
description: string;
|
|
863
|
-
|
|
864
|
-
duration: number;
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
|
|
868
642
|
export interface TrajectoryManagerContextEvent {
|
|
869
643
|
/**
|
|
870
|
-
*
|
|
644
|
+
* Context prepared, ready for LLM call.
|
|
871
645
|
*/
|
|
872
646
|
data: unknown;
|
|
873
647
|
|
|
@@ -876,9 +650,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
876
650
|
|
|
877
651
|
export interface TrajectoryManagerResponseEvent {
|
|
878
652
|
/**
|
|
879
|
-
*
|
|
880
|
-
*
|
|
881
|
-
* This event carries the raw validated LLM output before parsing.
|
|
653
|
+
* LLM response received, ready for parsing.
|
|
882
654
|
*/
|
|
883
655
|
data: TrajectoryManagerResponseEvent.Data;
|
|
884
656
|
|
|
@@ -887,12 +659,10 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
887
659
|
|
|
888
660
|
export namespace TrajectoryManagerResponseEvent {
|
|
889
661
|
/**
|
|
890
|
-
*
|
|
891
|
-
*
|
|
892
|
-
* This event carries the raw validated LLM output before parsing.
|
|
662
|
+
* LLM response received, ready for parsing.
|
|
893
663
|
*/
|
|
894
664
|
export interface Data {
|
|
895
|
-
|
|
665
|
+
response: string;
|
|
896
666
|
|
|
897
667
|
usage?: Data.Usage | null;
|
|
898
668
|
}
|
|
@@ -912,12 +682,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
912
682
|
|
|
913
683
|
export interface TrajectoryManagerPlanDetailsEvent {
|
|
914
684
|
/**
|
|
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
|
|
685
|
+
* Plan parsed and ready (internal event with full details).
|
|
921
686
|
*/
|
|
922
687
|
data: TrajectoryManagerPlanDetailsEvent.Data;
|
|
923
688
|
|
|
@@ -926,33 +691,30 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
926
691
|
|
|
927
692
|
export namespace TrajectoryManagerPlanDetailsEvent {
|
|
928
693
|
/**
|
|
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
|
|
694
|
+
* Plan parsed and ready (internal event with full details).
|
|
935
695
|
*/
|
|
936
696
|
export interface Data {
|
|
937
|
-
current_subgoal: string;
|
|
938
|
-
|
|
939
697
|
plan: string;
|
|
940
698
|
|
|
699
|
+
subgoal: string;
|
|
700
|
+
|
|
941
701
|
thought: string;
|
|
942
702
|
|
|
943
|
-
|
|
703
|
+
answer?: string;
|
|
944
704
|
|
|
945
|
-
|
|
705
|
+
full_response?: string;
|
|
946
706
|
|
|
947
707
|
memory_update?: string;
|
|
948
708
|
|
|
709
|
+
progress_summary?: string;
|
|
710
|
+
|
|
949
711
|
success?: boolean | null;
|
|
950
712
|
}
|
|
951
713
|
}
|
|
952
714
|
|
|
953
715
|
export interface TrajectoryExecutorContextEvent {
|
|
954
716
|
/**
|
|
955
|
-
*
|
|
717
|
+
* Context prepared, ready for LLM call.
|
|
956
718
|
*/
|
|
957
719
|
data: TrajectoryExecutorContextEvent.Data;
|
|
958
720
|
|
|
@@ -961,20 +723,16 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
961
723
|
|
|
962
724
|
export namespace TrajectoryExecutorContextEvent {
|
|
963
725
|
/**
|
|
964
|
-
*
|
|
726
|
+
* Context prepared, ready for LLM call.
|
|
965
727
|
*/
|
|
966
728
|
export interface Data {
|
|
967
|
-
messages: Array<unknown>;
|
|
968
|
-
|
|
969
729
|
subgoal: string;
|
|
970
730
|
}
|
|
971
731
|
}
|
|
972
732
|
|
|
973
733
|
export interface TrajectoryExecutorResponseEvent {
|
|
974
734
|
/**
|
|
975
|
-
*
|
|
976
|
-
*
|
|
977
|
-
* This event carries the raw LLM output before parsing.
|
|
735
|
+
* LLM response received, ready for parsing.
|
|
978
736
|
*/
|
|
979
737
|
data: TrajectoryExecutorResponseEvent.Data;
|
|
980
738
|
|
|
@@ -983,12 +741,10 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
983
741
|
|
|
984
742
|
export namespace TrajectoryExecutorResponseEvent {
|
|
985
743
|
/**
|
|
986
|
-
*
|
|
987
|
-
*
|
|
988
|
-
* This event carries the raw LLM output before parsing.
|
|
744
|
+
* LLM response received, ready for parsing.
|
|
989
745
|
*/
|
|
990
746
|
export interface Data {
|
|
991
|
-
|
|
747
|
+
response: string;
|
|
992
748
|
|
|
993
749
|
usage?: Data.Usage | null;
|
|
994
750
|
}
|
|
@@ -1008,12 +764,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1008
764
|
|
|
1009
765
|
export interface TrajectoryExecutorActionEvent {
|
|
1010
766
|
/**
|
|
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
|
|
767
|
+
* Action parsed, ready to execute.
|
|
1017
768
|
*/
|
|
1018
769
|
data: TrajectoryExecutorActionEvent.Data;
|
|
1019
770
|
|
|
@@ -1022,12 +773,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1022
773
|
|
|
1023
774
|
export namespace TrajectoryExecutorActionEvent {
|
|
1024
775
|
/**
|
|
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
|
|
776
|
+
* Action parsed, ready to execute.
|
|
1031
777
|
*/
|
|
1032
778
|
export interface Data {
|
|
1033
779
|
action_json: string;
|
|
@@ -1042,12 +788,7 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1042
788
|
|
|
1043
789
|
export interface TrajectoryExecutorActionResultEvent {
|
|
1044
790
|
/**
|
|
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
|
|
791
|
+
* Action execution result (internal event with full details).
|
|
1051
792
|
*/
|
|
1052
793
|
data: TrajectoryExecutorActionResultEvent.Data;
|
|
1053
794
|
|
|
@@ -1056,174 +797,27 @@ export namespace TaskGetTrajectoryResponse {
|
|
|
1056
797
|
|
|
1057
798
|
export namespace TrajectoryExecutorActionResultEvent {
|
|
1058
799
|
/**
|
|
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
|
|
800
|
+
* Action execution result (internal event with full details).
|
|
1065
801
|
*/
|
|
1066
802
|
export interface Data {
|
|
1067
803
|
action: { [key: string]: unknown };
|
|
1068
804
|
|
|
1069
805
|
error: string;
|
|
1070
806
|
|
|
1071
|
-
|
|
807
|
+
success: boolean;
|
|
1072
808
|
|
|
1073
809
|
summary: string;
|
|
1074
810
|
|
|
1075
|
-
action_json?: string;
|
|
1076
|
-
|
|
1077
811
|
full_response?: string;
|
|
1078
812
|
|
|
1079
813
|
thought?: string;
|
|
1080
814
|
}
|
|
1081
815
|
}
|
|
1082
816
|
|
|
1083
|
-
export interface
|
|
1084
|
-
|
|
1085
|
-
* Input to LLM (chat history).
|
|
1086
|
-
*/
|
|
1087
|
-
data: TrajectoryScripterInputEvent.Data;
|
|
1088
|
-
|
|
1089
|
-
event: 'ScripterInputEvent';
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
export namespace TrajectoryScripterInputEvent {
|
|
1093
|
-
/**
|
|
1094
|
-
* Input to LLM (chat history).
|
|
1095
|
-
*/
|
|
1096
|
-
export interface Data {
|
|
1097
|
-
input: Array<unknown>;
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
export interface TrajectoryScripterThinkingEvent {
|
|
1102
|
-
/**
|
|
1103
|
-
* LLM generated thought + code.
|
|
1104
|
-
*/
|
|
1105
|
-
data: TrajectoryScripterThinkingEvent.Data;
|
|
817
|
+
export interface TrajectoryUnknownEvent {
|
|
818
|
+
event: string;
|
|
1106
819
|
|
|
1107
|
-
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
export namespace TrajectoryScripterThinkingEvent {
|
|
1111
|
-
/**
|
|
1112
|
-
* LLM generated thought + code.
|
|
1113
|
-
*/
|
|
1114
|
-
export interface Data {
|
|
1115
|
-
thoughts: string;
|
|
1116
|
-
|
|
1117
|
-
code?: string | null;
|
|
1118
|
-
|
|
1119
|
-
full_response?: string;
|
|
1120
|
-
|
|
1121
|
-
usage?: Data.Usage | null;
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
export namespace Data {
|
|
1125
|
-
export interface Usage {
|
|
1126
|
-
request_tokens: number;
|
|
1127
|
-
|
|
1128
|
-
requests: number;
|
|
1129
|
-
|
|
1130
|
-
response_tokens: number;
|
|
1131
|
-
|
|
1132
|
-
total_tokens: number;
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
export interface TrajectoryScripterExecutionEvent {
|
|
1138
|
-
/**
|
|
1139
|
-
* Trigger code execution.
|
|
1140
|
-
*/
|
|
1141
|
-
data: TrajectoryScripterExecutionEvent.Data;
|
|
1142
|
-
|
|
1143
|
-
event: 'ScripterExecutionEvent';
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
export namespace TrajectoryScripterExecutionEvent {
|
|
1147
|
-
/**
|
|
1148
|
-
* Trigger code execution.
|
|
1149
|
-
*/
|
|
1150
|
-
export interface Data {
|
|
1151
|
-
code: string;
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
export interface TrajectoryScripterExecutionResultEvent {
|
|
1156
|
-
/**
|
|
1157
|
-
* Code execution result.
|
|
1158
|
-
*/
|
|
1159
|
-
data: TrajectoryScripterExecutionResultEvent.Data;
|
|
1160
|
-
|
|
1161
|
-
event: 'ScripterExecutionResultEvent';
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
export namespace TrajectoryScripterExecutionResultEvent {
|
|
1165
|
-
/**
|
|
1166
|
-
* Code execution result.
|
|
1167
|
-
*/
|
|
1168
|
-
export interface Data {
|
|
1169
|
-
output: string;
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
export interface TrajectoryScripterEndEvent {
|
|
1174
|
-
/**
|
|
1175
|
-
* Script agent finished.
|
|
1176
|
-
*/
|
|
1177
|
-
data: TrajectoryScripterEndEvent.Data;
|
|
1178
|
-
|
|
1179
|
-
event: 'ScripterEndEvent';
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
export namespace TrajectoryScripterEndEvent {
|
|
1183
|
-
/**
|
|
1184
|
-
* Script agent finished.
|
|
1185
|
-
*/
|
|
1186
|
-
export interface Data {
|
|
1187
|
-
message: string;
|
|
1188
|
-
|
|
1189
|
-
success: boolean;
|
|
1190
|
-
|
|
1191
|
-
code_executions?: number;
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
export interface TrajectoryTextManipulatorInputEvent {
|
|
1196
|
-
/**
|
|
1197
|
-
* Trigger TextManipulatorAgent workflow for text manipulation
|
|
1198
|
-
*/
|
|
1199
|
-
data: TrajectoryTextManipulatorInputEvent.Data;
|
|
1200
|
-
|
|
1201
|
-
event: 'TextManipulatorInputEvent';
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
export namespace TrajectoryTextManipulatorInputEvent {
|
|
1205
|
-
/**
|
|
1206
|
-
* Trigger TextManipulatorAgent workflow for text manipulation
|
|
1207
|
-
*/
|
|
1208
|
-
export interface Data {
|
|
1209
|
-
task: string;
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
export interface TrajectoryTextManipulatorResultEvent {
|
|
1214
|
-
data: TrajectoryTextManipulatorResultEvent.Data;
|
|
1215
|
-
|
|
1216
|
-
event: 'TextManipulatorResultEvent';
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
export namespace TrajectoryTextManipulatorResultEvent {
|
|
1220
|
-
export interface Data {
|
|
1221
|
-
code_ran: string;
|
|
1222
|
-
|
|
1223
|
-
task: string;
|
|
1224
|
-
|
|
1225
|
-
text_to_type: string;
|
|
1226
|
-
}
|
|
820
|
+
data?: { [key: string]: unknown };
|
|
1227
821
|
}
|
|
1228
822
|
}
|
|
1229
823
|
|
|
@@ -1275,7 +869,10 @@ export interface TaskListParams {
|
|
|
1275
869
|
}
|
|
1276
870
|
|
|
1277
871
|
export interface TaskRunParams {
|
|
1278
|
-
|
|
872
|
+
/**
|
|
873
|
+
* The LLM model identifier to use for the task (e.g. 'gemini/gemini-2.5-flash')
|
|
874
|
+
*/
|
|
875
|
+
llmModel: string;
|
|
1279
876
|
|
|
1280
877
|
task: string;
|
|
1281
878
|
|
|
@@ -1283,6 +880,16 @@ export interface TaskRunParams {
|
|
|
1283
880
|
|
|
1284
881
|
credentials?: Array<TaskRunParams.Credential>;
|
|
1285
882
|
|
|
883
|
+
/**
|
|
884
|
+
* The ID of the device to run the task on.
|
|
885
|
+
*/
|
|
886
|
+
deviceId?: string | null;
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* The display ID of the device to run the task on.
|
|
890
|
+
*/
|
|
891
|
+
displayId?: number;
|
|
892
|
+
|
|
1286
893
|
executionTimeout?: number;
|
|
1287
894
|
|
|
1288
895
|
files?: Array<string>;
|
|
@@ -1293,6 +900,8 @@ export interface TaskRunParams {
|
|
|
1293
900
|
|
|
1294
901
|
reasoning?: boolean;
|
|
1295
902
|
|
|
903
|
+
stealth?: boolean;
|
|
904
|
+
|
|
1296
905
|
temperature?: number;
|
|
1297
906
|
|
|
1298
907
|
vision?: boolean;
|
|
@@ -1309,7 +918,10 @@ export namespace TaskRunParams {
|
|
|
1309
918
|
}
|
|
1310
919
|
|
|
1311
920
|
export interface TaskRunStreamedParams {
|
|
1312
|
-
|
|
921
|
+
/**
|
|
922
|
+
* The LLM model identifier to use for the task (e.g. 'gemini/gemini-2.5-flash')
|
|
923
|
+
*/
|
|
924
|
+
llmModel: string;
|
|
1313
925
|
|
|
1314
926
|
task: string;
|
|
1315
927
|
|
|
@@ -1317,6 +929,16 @@ export interface TaskRunStreamedParams {
|
|
|
1317
929
|
|
|
1318
930
|
credentials?: Array<TaskRunStreamedParams.Credential>;
|
|
1319
931
|
|
|
932
|
+
/**
|
|
933
|
+
* The ID of the device to run the task on.
|
|
934
|
+
*/
|
|
935
|
+
deviceId?: string | null;
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* The display ID of the device to run the task on.
|
|
939
|
+
*/
|
|
940
|
+
displayId?: number;
|
|
941
|
+
|
|
1320
942
|
executionTimeout?: number;
|
|
1321
943
|
|
|
1322
944
|
files?: Array<string>;
|
|
@@ -1327,6 +949,8 @@ export interface TaskRunStreamedParams {
|
|
|
1327
949
|
|
|
1328
950
|
reasoning?: boolean;
|
|
1329
951
|
|
|
952
|
+
stealth?: boolean;
|
|
953
|
+
|
|
1330
954
|
temperature?: number;
|
|
1331
955
|
|
|
1332
956
|
vision?: boolean;
|
|
@@ -1347,9 +971,7 @@ Tasks.UiStates = UiStates;
|
|
|
1347
971
|
|
|
1348
972
|
export declare namespace Tasks {
|
|
1349
973
|
export {
|
|
1350
|
-
type LlmModel as LlmModel,
|
|
1351
974
|
type Task as Task,
|
|
1352
|
-
type TaskCreate as TaskCreate,
|
|
1353
975
|
type TaskStatus as TaskStatus,
|
|
1354
976
|
type TaskRetrieveResponse as TaskRetrieveResponse,
|
|
1355
977
|
type TaskListResponse as TaskListResponse,
|