@taico/client 0.2.14 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/types.d.ts +252 -9
- package/dist/src/v1/client/index.d.ts +5 -0
- package/dist/src/v1/client/models/ActiveTaskExecutionListResponseDto.d.ts +23 -0
- package/dist/src/v1/client/models/ActiveTaskExecutionListResponseDto.js +1 -0
- package/dist/src/v1/client/models/ActiveTaskExecutionResponseDto.d.ts +5 -0
- package/dist/src/v1/client/models/ExecutionStatsResponseDto.d.ts +26 -0
- package/dist/src/v1/client/models/ExecutionStatsResponseDto.js +1 -0
- package/dist/src/v1/client/models/TaskExecutionHistoryListResponseDto.d.ts +23 -0
- package/dist/src/v1/client/models/TaskExecutionHistoryListResponseDto.js +1 -0
- package/dist/src/v1/client/models/TaskExecutionHistoryResponseDto.d.ts +5 -0
- package/dist/src/v1/client/models/TaskExecutionQueueListResponseDto.d.ts +23 -0
- package/dist/src/v1/client/models/TaskExecutionQueueListResponseDto.js +1 -0
- package/dist/src/v1/client/models/UpdateExecutionStatsDto.d.ts +26 -0
- package/dist/src/v1/client/models/UpdateExecutionStatsDto.js +1 -0
- package/dist/src/v1/client/services/ExecutionsService.d.ts +38 -10
- package/dist/src/v1/client/services/ExecutionsService.js +66 -9
- package/dist/src/v2/executions-resource.d.ts +23 -4
- package/dist/src/v2/executions-resource.js +11 -3
- package/dist/src/v2/types.d.ts +39 -0
- package/package.json +1 -1
|
@@ -1688,7 +1688,7 @@ export interface paths {
|
|
|
1688
1688
|
};
|
|
1689
1689
|
/**
|
|
1690
1690
|
* List the current task execution work queue
|
|
1691
|
-
* @description Returns the tasks currently present in the execution queue. Presence means the task is ready to be picked by the executor.
|
|
1691
|
+
* @description Returns the tasks currently present in the execution queue with pagination. Presence means the task is ready to be picked by the executor.
|
|
1692
1692
|
*/
|
|
1693
1693
|
get: operations["TaskExecutionQueueController_listQueue"];
|
|
1694
1694
|
put?: never;
|
|
@@ -1728,7 +1728,7 @@ export interface paths {
|
|
|
1728
1728
|
};
|
|
1729
1729
|
/**
|
|
1730
1730
|
* List active task executions
|
|
1731
|
-
* @description Returns the tasks currently being worked on in the execution system.
|
|
1731
|
+
* @description Returns the tasks currently being worked on in the execution system with pagination.
|
|
1732
1732
|
*/
|
|
1733
1733
|
get: operations["ActiveTaskExecutionController_listActiveExecutions"];
|
|
1734
1734
|
put?: never;
|
|
@@ -1759,6 +1759,26 @@ export interface paths {
|
|
|
1759
1759
|
patch?: never;
|
|
1760
1760
|
trace?: never;
|
|
1761
1761
|
};
|
|
1762
|
+
"/api/v1/executions/active/{executionId}/unclaim": {
|
|
1763
|
+
parameters: {
|
|
1764
|
+
query?: never;
|
|
1765
|
+
header?: never;
|
|
1766
|
+
path?: never;
|
|
1767
|
+
cookie?: never;
|
|
1768
|
+
};
|
|
1769
|
+
get?: never;
|
|
1770
|
+
put?: never;
|
|
1771
|
+
/**
|
|
1772
|
+
* Unclaim an active task execution and return it to the queue
|
|
1773
|
+
* @description Atomically removes the execution from the active execution table and returns its task to the execution queue. Only the worker that claimed the execution may unclaim it.
|
|
1774
|
+
*/
|
|
1775
|
+
post: operations["ActiveTaskExecutionController_unclaimTaskExecution"];
|
|
1776
|
+
delete?: never;
|
|
1777
|
+
options?: never;
|
|
1778
|
+
head?: never;
|
|
1779
|
+
patch?: never;
|
|
1780
|
+
trace?: never;
|
|
1781
|
+
};
|
|
1762
1782
|
"/api/v1/executions/active/{executionId}/session": {
|
|
1763
1783
|
parameters: {
|
|
1764
1784
|
query?: never;
|
|
@@ -1799,6 +1819,26 @@ export interface paths {
|
|
|
1799
1819
|
patch: operations["ActiveTaskExecutionController_incrementToolCallCount"];
|
|
1800
1820
|
trace?: never;
|
|
1801
1821
|
};
|
|
1822
|
+
"/api/v1/executions/active/{executionId}/stats": {
|
|
1823
|
+
parameters: {
|
|
1824
|
+
query?: never;
|
|
1825
|
+
header?: never;
|
|
1826
|
+
path?: never;
|
|
1827
|
+
cookie?: never;
|
|
1828
|
+
};
|
|
1829
|
+
get?: never;
|
|
1830
|
+
put?: never;
|
|
1831
|
+
post?: never;
|
|
1832
|
+
delete?: never;
|
|
1833
|
+
options?: never;
|
|
1834
|
+
head?: never;
|
|
1835
|
+
/**
|
|
1836
|
+
* Patch execution stats and metadata
|
|
1837
|
+
* @description Atomically updates one or more execution metadata fields such as harness, model details, or token usage.
|
|
1838
|
+
*/
|
|
1839
|
+
patch: operations["ActiveTaskExecutionController_updateExecutionStats"];
|
|
1840
|
+
trace?: never;
|
|
1841
|
+
};
|
|
1802
1842
|
"/api/v1/executions/active/{executionId}/interrupt": {
|
|
1803
1843
|
parameters: {
|
|
1804
1844
|
query?: never;
|
|
@@ -1828,7 +1868,7 @@ export interface paths {
|
|
|
1828
1868
|
};
|
|
1829
1869
|
/**
|
|
1830
1870
|
* List task execution history
|
|
1831
|
-
* @description Returns the persisted execution history rows in the execution system.
|
|
1871
|
+
* @description Returns the persisted execution history rows in the execution system with pagination.
|
|
1832
1872
|
*/
|
|
1833
1873
|
get: operations["TaskExecutionHistoryController_listHistory"];
|
|
1834
1874
|
put?: never;
|
|
@@ -5237,6 +5277,30 @@ export interface components {
|
|
|
5237
5277
|
*/
|
|
5238
5278
|
taskStatus: "NOT_STARTED" | "IN_PROGRESS" | "FOR_REVIEW" | "DONE" | null;
|
|
5239
5279
|
};
|
|
5280
|
+
TaskExecutionQueueListResponseDto: {
|
|
5281
|
+
/** @description List of task execution queue entries */
|
|
5282
|
+
items: components["schemas"]["TaskExecutionQueueEntryResponseDto"][];
|
|
5283
|
+
/**
|
|
5284
|
+
* @description Total number of queue entries
|
|
5285
|
+
* @example 42
|
|
5286
|
+
*/
|
|
5287
|
+
total: number;
|
|
5288
|
+
/**
|
|
5289
|
+
* @description Current page number
|
|
5290
|
+
* @example 1
|
|
5291
|
+
*/
|
|
5292
|
+
page: number;
|
|
5293
|
+
/**
|
|
5294
|
+
* @description Number of items per page
|
|
5295
|
+
* @example 50
|
|
5296
|
+
*/
|
|
5297
|
+
limit: number;
|
|
5298
|
+
/**
|
|
5299
|
+
* @description Total number of pages
|
|
5300
|
+
* @example 3
|
|
5301
|
+
*/
|
|
5302
|
+
totalPages: number;
|
|
5303
|
+
};
|
|
5240
5304
|
ActiveTaskExecutionTagSnapshotResponseDto: {
|
|
5241
5305
|
/**
|
|
5242
5306
|
* @description Tag ID at the time the task was claimed
|
|
@@ -5249,6 +5313,38 @@ export interface components {
|
|
|
5249
5313
|
*/
|
|
5250
5314
|
name: string;
|
|
5251
5315
|
};
|
|
5316
|
+
ExecutionStatsResponseDto: {
|
|
5317
|
+
/**
|
|
5318
|
+
* @description Harness used to execute the run
|
|
5319
|
+
* @example opencode
|
|
5320
|
+
*/
|
|
5321
|
+
harness: string | null;
|
|
5322
|
+
/**
|
|
5323
|
+
* @description LLM provider id resolved for this run
|
|
5324
|
+
* @example openai
|
|
5325
|
+
*/
|
|
5326
|
+
providerId: string | null;
|
|
5327
|
+
/**
|
|
5328
|
+
* @description LLM model id resolved for this run
|
|
5329
|
+
* @example gpt-5.4
|
|
5330
|
+
*/
|
|
5331
|
+
modelId: string | null;
|
|
5332
|
+
/**
|
|
5333
|
+
* @description Input token usage when available
|
|
5334
|
+
* @example 1200
|
|
5335
|
+
*/
|
|
5336
|
+
inputTokens: number | null;
|
|
5337
|
+
/**
|
|
5338
|
+
* @description Output token usage when available
|
|
5339
|
+
* @example 380
|
|
5340
|
+
*/
|
|
5341
|
+
outputTokens: number | null;
|
|
5342
|
+
/**
|
|
5343
|
+
* @description Total token usage when available
|
|
5344
|
+
* @example 1580
|
|
5345
|
+
*/
|
|
5346
|
+
totalTokens: number | null;
|
|
5347
|
+
};
|
|
5252
5348
|
ActiveTaskExecutionResponseDto: {
|
|
5253
5349
|
/**
|
|
5254
5350
|
* @description Execution ID
|
|
@@ -5312,6 +5408,32 @@ export interface components {
|
|
|
5312
5408
|
* @example 19dc147c-6051-49e3-bf7a-404e3bb575d3
|
|
5313
5409
|
*/
|
|
5314
5410
|
agentActorId: string;
|
|
5411
|
+
/** @description Execution metadata and usage stats */
|
|
5412
|
+
stats: components["schemas"]["ExecutionStatsResponseDto"] | null;
|
|
5413
|
+
};
|
|
5414
|
+
ActiveTaskExecutionListResponseDto: {
|
|
5415
|
+
/** @description List of active task executions */
|
|
5416
|
+
items: components["schemas"]["ActiveTaskExecutionResponseDto"][];
|
|
5417
|
+
/**
|
|
5418
|
+
* @description Total number of active executions
|
|
5419
|
+
* @example 42
|
|
5420
|
+
*/
|
|
5421
|
+
total: number;
|
|
5422
|
+
/**
|
|
5423
|
+
* @description Current page number
|
|
5424
|
+
* @example 1
|
|
5425
|
+
*/
|
|
5426
|
+
page: number;
|
|
5427
|
+
/**
|
|
5428
|
+
* @description Number of items per page
|
|
5429
|
+
* @example 50
|
|
5430
|
+
*/
|
|
5431
|
+
limit: number;
|
|
5432
|
+
/**
|
|
5433
|
+
* @description Total number of pages
|
|
5434
|
+
* @example 3
|
|
5435
|
+
*/
|
|
5436
|
+
totalPages: number;
|
|
5315
5437
|
};
|
|
5316
5438
|
StopActiveTaskExecutionDto: {
|
|
5317
5439
|
/**
|
|
@@ -5398,6 +5520,8 @@ export interface components {
|
|
|
5398
5520
|
* @example ADK runner failed: 429 quota exceeded.
|
|
5399
5521
|
*/
|
|
5400
5522
|
errorMessage: string | null;
|
|
5523
|
+
/** @description Execution metadata and usage stats */
|
|
5524
|
+
stats: components["schemas"]["ExecutionStatsResponseDto"] | null;
|
|
5401
5525
|
};
|
|
5402
5526
|
UpdateRunnerSessionIdDto: {
|
|
5403
5527
|
/**
|
|
@@ -5406,6 +5530,62 @@ export interface components {
|
|
|
5406
5530
|
*/
|
|
5407
5531
|
sessionId: string;
|
|
5408
5532
|
};
|
|
5533
|
+
UpdateExecutionStatsDto: {
|
|
5534
|
+
/**
|
|
5535
|
+
* @description Harness used by the worker to run this execution
|
|
5536
|
+
* @example opencode
|
|
5537
|
+
*/
|
|
5538
|
+
harness?: string | null;
|
|
5539
|
+
/**
|
|
5540
|
+
* @description Model provider id used by the harness
|
|
5541
|
+
* @example openai
|
|
5542
|
+
*/
|
|
5543
|
+
providerId?: string | null;
|
|
5544
|
+
/**
|
|
5545
|
+
* @description Model id used by the harness
|
|
5546
|
+
* @example gpt-5.4
|
|
5547
|
+
*/
|
|
5548
|
+
modelId?: string | null;
|
|
5549
|
+
/**
|
|
5550
|
+
* @description Input token usage when available
|
|
5551
|
+
* @example 1200
|
|
5552
|
+
*/
|
|
5553
|
+
inputTokens?: number | null;
|
|
5554
|
+
/**
|
|
5555
|
+
* @description Output token usage when available
|
|
5556
|
+
* @example 380
|
|
5557
|
+
*/
|
|
5558
|
+
outputTokens?: number | null;
|
|
5559
|
+
/**
|
|
5560
|
+
* @description Total token usage when available
|
|
5561
|
+
* @example 1580
|
|
5562
|
+
*/
|
|
5563
|
+
totalTokens?: number | null;
|
|
5564
|
+
};
|
|
5565
|
+
TaskExecutionHistoryListResponseDto: {
|
|
5566
|
+
/** @description List of task execution history entries */
|
|
5567
|
+
items: components["schemas"]["TaskExecutionHistoryResponseDto"][];
|
|
5568
|
+
/**
|
|
5569
|
+
* @description Total number of history entries
|
|
5570
|
+
* @example 42
|
|
5571
|
+
*/
|
|
5572
|
+
total: number;
|
|
5573
|
+
/**
|
|
5574
|
+
* @description Current page number
|
|
5575
|
+
* @example 1
|
|
5576
|
+
*/
|
|
5577
|
+
page: number;
|
|
5578
|
+
/**
|
|
5579
|
+
* @description Number of items per page
|
|
5580
|
+
* @example 50
|
|
5581
|
+
*/
|
|
5582
|
+
limit: number;
|
|
5583
|
+
/**
|
|
5584
|
+
* @description Total number of pages
|
|
5585
|
+
* @example 3
|
|
5586
|
+
*/
|
|
5587
|
+
totalPages: number;
|
|
5588
|
+
};
|
|
5409
5589
|
WorkerResponseDto: {
|
|
5410
5590
|
/** Format: uuid */
|
|
5411
5591
|
id: string;
|
|
@@ -9968,7 +10148,12 @@ export interface operations {
|
|
|
9968
10148
|
};
|
|
9969
10149
|
TaskExecutionQueueController_listQueue: {
|
|
9970
10150
|
parameters: {
|
|
9971
|
-
query?:
|
|
10151
|
+
query?: {
|
|
10152
|
+
/** @description Page number (1-indexed) */
|
|
10153
|
+
page?: number;
|
|
10154
|
+
/** @description Items per page (1-100) */
|
|
10155
|
+
limit?: number;
|
|
10156
|
+
};
|
|
9972
10157
|
header?: never;
|
|
9973
10158
|
path?: never;
|
|
9974
10159
|
cookie?: never;
|
|
@@ -9980,7 +10165,7 @@ export interface operations {
|
|
|
9980
10165
|
[name: string]: unknown;
|
|
9981
10166
|
};
|
|
9982
10167
|
content: {
|
|
9983
|
-
"application/json": components["schemas"]["
|
|
10168
|
+
"application/json": components["schemas"]["TaskExecutionQueueListResponseDto"];
|
|
9984
10169
|
};
|
|
9985
10170
|
};
|
|
9986
10171
|
};
|
|
@@ -10009,7 +10194,14 @@ export interface operations {
|
|
|
10009
10194
|
};
|
|
10010
10195
|
ActiveTaskExecutionController_listActiveExecutions: {
|
|
10011
10196
|
parameters: {
|
|
10012
|
-
query?:
|
|
10197
|
+
query?: {
|
|
10198
|
+
/** @description Page number (1-indexed) */
|
|
10199
|
+
page?: number;
|
|
10200
|
+
/** @description Items per page (1-100) */
|
|
10201
|
+
limit?: number;
|
|
10202
|
+
/** @description Filter by task ID */
|
|
10203
|
+
taskId?: string;
|
|
10204
|
+
};
|
|
10013
10205
|
header?: never;
|
|
10014
10206
|
path?: never;
|
|
10015
10207
|
cookie?: never;
|
|
@@ -10021,7 +10213,7 @@ export interface operations {
|
|
|
10021
10213
|
[name: string]: unknown;
|
|
10022
10214
|
};
|
|
10023
10215
|
content: {
|
|
10024
|
-
"application/json": components["schemas"]["
|
|
10216
|
+
"application/json": components["schemas"]["ActiveTaskExecutionListResponseDto"];
|
|
10025
10217
|
};
|
|
10026
10218
|
};
|
|
10027
10219
|
};
|
|
@@ -10052,6 +10244,26 @@ export interface operations {
|
|
|
10052
10244
|
};
|
|
10053
10245
|
};
|
|
10054
10246
|
};
|
|
10247
|
+
ActiveTaskExecutionController_unclaimTaskExecution: {
|
|
10248
|
+
parameters: {
|
|
10249
|
+
query?: never;
|
|
10250
|
+
header?: never;
|
|
10251
|
+
path: {
|
|
10252
|
+
/** @description Execution ID to unclaim */
|
|
10253
|
+
executionId: string;
|
|
10254
|
+
};
|
|
10255
|
+
cookie?: never;
|
|
10256
|
+
};
|
|
10257
|
+
requestBody?: never;
|
|
10258
|
+
responses: {
|
|
10259
|
+
204: {
|
|
10260
|
+
headers: {
|
|
10261
|
+
[name: string]: unknown;
|
|
10262
|
+
};
|
|
10263
|
+
content?: never;
|
|
10264
|
+
};
|
|
10265
|
+
};
|
|
10266
|
+
};
|
|
10055
10267
|
ActiveTaskExecutionController_updateRunnerSessionId: {
|
|
10056
10268
|
parameters: {
|
|
10057
10269
|
query?: never;
|
|
@@ -10096,6 +10308,30 @@ export interface operations {
|
|
|
10096
10308
|
};
|
|
10097
10309
|
};
|
|
10098
10310
|
};
|
|
10311
|
+
ActiveTaskExecutionController_updateExecutionStats: {
|
|
10312
|
+
parameters: {
|
|
10313
|
+
query?: never;
|
|
10314
|
+
header?: never;
|
|
10315
|
+
path: {
|
|
10316
|
+
/** @description Execution ID to update */
|
|
10317
|
+
executionId: string;
|
|
10318
|
+
};
|
|
10319
|
+
cookie?: never;
|
|
10320
|
+
};
|
|
10321
|
+
requestBody: {
|
|
10322
|
+
content: {
|
|
10323
|
+
"application/json": components["schemas"]["UpdateExecutionStatsDto"];
|
|
10324
|
+
};
|
|
10325
|
+
};
|
|
10326
|
+
responses: {
|
|
10327
|
+
204: {
|
|
10328
|
+
headers: {
|
|
10329
|
+
[name: string]: unknown;
|
|
10330
|
+
};
|
|
10331
|
+
content?: never;
|
|
10332
|
+
};
|
|
10333
|
+
};
|
|
10334
|
+
};
|
|
10099
10335
|
ActiveTaskExecutionController_interruptExecution: {
|
|
10100
10336
|
parameters: {
|
|
10101
10337
|
query?: never;
|
|
@@ -10118,7 +10354,14 @@ export interface operations {
|
|
|
10118
10354
|
};
|
|
10119
10355
|
TaskExecutionHistoryController_listHistory: {
|
|
10120
10356
|
parameters: {
|
|
10121
|
-
query?:
|
|
10357
|
+
query?: {
|
|
10358
|
+
/** @description Page number (1-indexed) */
|
|
10359
|
+
page?: number;
|
|
10360
|
+
/** @description Items per page (1-100) */
|
|
10361
|
+
limit?: number;
|
|
10362
|
+
/** @description Filter by task ID */
|
|
10363
|
+
taskId?: string;
|
|
10364
|
+
};
|
|
10122
10365
|
header?: never;
|
|
10123
10366
|
path?: never;
|
|
10124
10367
|
cookie?: never;
|
|
@@ -10130,7 +10373,7 @@ export interface operations {
|
|
|
10130
10373
|
[name: string]: unknown;
|
|
10131
10374
|
};
|
|
10132
10375
|
content: {
|
|
10133
|
-
"application/json": components["schemas"]["
|
|
10376
|
+
"application/json": components["schemas"]["TaskExecutionHistoryListResponseDto"];
|
|
10134
10377
|
};
|
|
10135
10378
|
};
|
|
10136
10379
|
};
|
|
@@ -2,6 +2,7 @@ export { ApiError } from './core/ApiError.js';
|
|
|
2
2
|
export { CancelablePromise, CancelError } from './core/CancelablePromise.js';
|
|
3
3
|
export { OpenAPI } from './core/OpenAPI.js';
|
|
4
4
|
export type { OpenAPIConfig } from './core/OpenAPI.js';
|
|
5
|
+
export type { ActiveTaskExecutionListResponseDto } from './models/ActiveTaskExecutionListResponseDto.js';
|
|
5
6
|
export { ActiveTaskExecutionResponseDto } from './models/ActiveTaskExecutionResponseDto.js';
|
|
6
7
|
export type { ActiveTaskExecutionTagSnapshotResponseDto } from './models/ActiveTaskExecutionTagSnapshotResponseDto.js';
|
|
7
8
|
export { ActorResponseDto } from './models/ActorResponseDto.js';
|
|
@@ -65,6 +66,7 @@ export type { DeleteConnectionResponseDto } from './models/DeleteConnectionRespo
|
|
|
65
66
|
export type { DeleteMappingResponseDto } from './models/DeleteMappingResponseDto.js';
|
|
66
67
|
export type { DeleteScopeResponseDto } from './models/DeleteScopeResponseDto.js';
|
|
67
68
|
export type { DeleteServerResponseDto } from './models/DeleteServerResponseDto.js';
|
|
69
|
+
export type { ExecutionStatsResponseDto } from './models/ExecutionStatsResponseDto.js';
|
|
68
70
|
export type { FlowClientDto } from './models/FlowClientDto.js';
|
|
69
71
|
export type { FlowServerDto } from './models/FlowServerDto.js';
|
|
70
72
|
export { GetConsentMetadataResponseDto } from './models/GetConsentMetadataResponseDto.js';
|
|
@@ -109,8 +111,10 @@ export { StopActiveTaskExecutionDto } from './models/StopActiveTaskExecutionDto.
|
|
|
109
111
|
export type { TagResponseDto } from './models/TagResponseDto.js';
|
|
110
112
|
export type { TaskBlueprintListResponseDto } from './models/TaskBlueprintListResponseDto.js';
|
|
111
113
|
export type { TaskBlueprintResponseDto } from './models/TaskBlueprintResponseDto.js';
|
|
114
|
+
export type { TaskExecutionHistoryListResponseDto } from './models/TaskExecutionHistoryListResponseDto.js';
|
|
112
115
|
export { TaskExecutionHistoryResponseDto } from './models/TaskExecutionHistoryResponseDto.js';
|
|
113
116
|
export { TaskExecutionQueueEntryResponseDto } from './models/TaskExecutionQueueEntryResponseDto.js';
|
|
117
|
+
export type { TaskExecutionQueueListResponseDto } from './models/TaskExecutionQueueListResponseDto.js';
|
|
114
118
|
export type { TaskInfoDto } from './models/TaskInfoDto.js';
|
|
115
119
|
export type { TaskListResponseDto } from './models/TaskListResponseDto.js';
|
|
116
120
|
export { TaskResponseDto } from './models/TaskResponseDto.js';
|
|
@@ -129,6 +133,7 @@ export type { UpdateAgentRunDto } from './models/UpdateAgentRunDto.js';
|
|
|
129
133
|
export type { UpdateBlockDto } from './models/UpdateBlockDto.js';
|
|
130
134
|
export type { UpdateChatProviderDto } from './models/UpdateChatProviderDto.js';
|
|
131
135
|
export type { UpdateConnectionDto } from './models/UpdateConnectionDto.js';
|
|
136
|
+
export type { UpdateExecutionStatsDto } from './models/UpdateExecutionStatsDto.js';
|
|
132
137
|
export type { UpdateRunnerSessionIdDto } from './models/UpdateRunnerSessionIdDto.js';
|
|
133
138
|
export type { UpdateScheduledTaskDto } from './models/UpdateScheduledTaskDto.js';
|
|
134
139
|
export type { UpdateSecretDto } from './models/UpdateSecretDto.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ActiveTaskExecutionResponseDto } from './ActiveTaskExecutionResponseDto.js';
|
|
2
|
+
export type ActiveTaskExecutionListResponseDto = {
|
|
3
|
+
/**
|
|
4
|
+
* List of active task executions
|
|
5
|
+
*/
|
|
6
|
+
items: Array<ActiveTaskExecutionResponseDto>;
|
|
7
|
+
/**
|
|
8
|
+
* Total number of active executions
|
|
9
|
+
*/
|
|
10
|
+
total: number;
|
|
11
|
+
/**
|
|
12
|
+
* Current page number
|
|
13
|
+
*/
|
|
14
|
+
page: number;
|
|
15
|
+
/**
|
|
16
|
+
* Number of items per page
|
|
17
|
+
*/
|
|
18
|
+
limit: number;
|
|
19
|
+
/**
|
|
20
|
+
* Total number of pages
|
|
21
|
+
*/
|
|
22
|
+
totalPages: number;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ActiveTaskExecutionTagSnapshotResponseDto } from './ActiveTaskExecutionTagSnapshotResponseDto.js';
|
|
2
|
+
import type { ExecutionStatsResponseDto } from './ExecutionStatsResponseDto.js';
|
|
2
3
|
export type ActiveTaskExecutionResponseDto = {
|
|
3
4
|
/**
|
|
4
5
|
* Execution ID
|
|
@@ -52,6 +53,10 @@ export type ActiveTaskExecutionResponseDto = {
|
|
|
52
53
|
* Agent actor id that picked up the task
|
|
53
54
|
*/
|
|
54
55
|
agentActorId: string;
|
|
56
|
+
/**
|
|
57
|
+
* Execution metadata and usage stats
|
|
58
|
+
*/
|
|
59
|
+
stats: ExecutionStatsResponseDto | null;
|
|
55
60
|
};
|
|
56
61
|
export declare namespace ActiveTaskExecutionResponseDto {
|
|
57
62
|
/**
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type ExecutionStatsResponseDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Harness used to execute the run
|
|
4
|
+
*/
|
|
5
|
+
harness: string | null;
|
|
6
|
+
/**
|
|
7
|
+
* LLM provider id resolved for this run
|
|
8
|
+
*/
|
|
9
|
+
providerId: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* LLM model id resolved for this run
|
|
12
|
+
*/
|
|
13
|
+
modelId: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Input token usage when available
|
|
16
|
+
*/
|
|
17
|
+
inputTokens: number | null;
|
|
18
|
+
/**
|
|
19
|
+
* Output token usage when available
|
|
20
|
+
*/
|
|
21
|
+
outputTokens: number | null;
|
|
22
|
+
/**
|
|
23
|
+
* Total token usage when available
|
|
24
|
+
*/
|
|
25
|
+
totalTokens: number | null;
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TaskExecutionHistoryResponseDto } from './TaskExecutionHistoryResponseDto.js';
|
|
2
|
+
export type TaskExecutionHistoryListResponseDto = {
|
|
3
|
+
/**
|
|
4
|
+
* List of task execution history entries
|
|
5
|
+
*/
|
|
6
|
+
items: Array<TaskExecutionHistoryResponseDto>;
|
|
7
|
+
/**
|
|
8
|
+
* Total number of history entries
|
|
9
|
+
*/
|
|
10
|
+
total: number;
|
|
11
|
+
/**
|
|
12
|
+
* Current page number
|
|
13
|
+
*/
|
|
14
|
+
page: number;
|
|
15
|
+
/**
|
|
16
|
+
* Number of items per page
|
|
17
|
+
*/
|
|
18
|
+
limit: number;
|
|
19
|
+
/**
|
|
20
|
+
* Total number of pages
|
|
21
|
+
*/
|
|
22
|
+
totalPages: number;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ExecutionStatsResponseDto } from './ExecutionStatsResponseDto.js';
|
|
1
2
|
export type TaskExecutionHistoryResponseDto = {
|
|
2
3
|
/**
|
|
3
4
|
* History row ID
|
|
@@ -51,6 +52,10 @@ export type TaskExecutionHistoryResponseDto = {
|
|
|
51
52
|
* Optional human-readable error message for failed or cancelled executions
|
|
52
53
|
*/
|
|
53
54
|
errorMessage: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Execution metadata and usage stats
|
|
57
|
+
*/
|
|
58
|
+
stats: ExecutionStatsResponseDto | null;
|
|
54
59
|
};
|
|
55
60
|
export declare namespace TaskExecutionHistoryResponseDto {
|
|
56
61
|
/**
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TaskExecutionQueueEntryResponseDto } from './TaskExecutionQueueEntryResponseDto.js';
|
|
2
|
+
export type TaskExecutionQueueListResponseDto = {
|
|
3
|
+
/**
|
|
4
|
+
* List of task execution queue entries
|
|
5
|
+
*/
|
|
6
|
+
items: Array<TaskExecutionQueueEntryResponseDto>;
|
|
7
|
+
/**
|
|
8
|
+
* Total number of queue entries
|
|
9
|
+
*/
|
|
10
|
+
total: number;
|
|
11
|
+
/**
|
|
12
|
+
* Current page number
|
|
13
|
+
*/
|
|
14
|
+
page: number;
|
|
15
|
+
/**
|
|
16
|
+
* Number of items per page
|
|
17
|
+
*/
|
|
18
|
+
limit: number;
|
|
19
|
+
/**
|
|
20
|
+
* Total number of pages
|
|
21
|
+
*/
|
|
22
|
+
totalPages: number;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type UpdateExecutionStatsDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Harness used by the worker to run this execution
|
|
4
|
+
*/
|
|
5
|
+
harness?: string | null;
|
|
6
|
+
/**
|
|
7
|
+
* Model provider id used by the harness
|
|
8
|
+
*/
|
|
9
|
+
providerId?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* Model id used by the harness
|
|
12
|
+
*/
|
|
13
|
+
modelId?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Input token usage when available
|
|
16
|
+
*/
|
|
17
|
+
inputTokens?: number | null;
|
|
18
|
+
/**
|
|
19
|
+
* Output token usage when available
|
|
20
|
+
*/
|
|
21
|
+
outputTokens?: number | null;
|
|
22
|
+
/**
|
|
23
|
+
* Total token usage when available
|
|
24
|
+
*/
|
|
25
|
+
totalTokens?: number | null;
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
+
import type { ActiveTaskExecutionListResponseDto } from '../models/ActiveTaskExecutionListResponseDto.js';
|
|
1
2
|
import type { ActiveTaskExecutionResponseDto } from '../models/ActiveTaskExecutionResponseDto.js';
|
|
2
3
|
import type { StopActiveTaskExecutionDto } from '../models/StopActiveTaskExecutionDto.js';
|
|
4
|
+
import type { TaskExecutionHistoryListResponseDto } from '../models/TaskExecutionHistoryListResponseDto.js';
|
|
3
5
|
import type { TaskExecutionHistoryResponseDto } from '../models/TaskExecutionHistoryResponseDto.js';
|
|
4
|
-
import type {
|
|
6
|
+
import type { TaskExecutionQueueListResponseDto } from '../models/TaskExecutionQueueListResponseDto.js';
|
|
7
|
+
import type { UpdateExecutionStatsDto } from '../models/UpdateExecutionStatsDto.js';
|
|
5
8
|
import type { UpdateRunnerSessionIdDto } from '../models/UpdateRunnerSessionIdDto.js';
|
|
6
9
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
10
|
import type { OpenAPIConfig } from '../core/OpenAPI.js';
|
|
8
11
|
export declare class ExecutionsService {
|
|
9
12
|
/**
|
|
10
13
|
* List the current task execution work queue
|
|
11
|
-
* Returns the tasks currently present in the execution queue. Presence means the task is ready to be picked by the executor.
|
|
12
|
-
* @
|
|
14
|
+
* Returns the tasks currently present in the execution queue with pagination. Presence means the task is ready to be picked by the executor.
|
|
15
|
+
* @param page Page number (1-indexed)
|
|
16
|
+
* @param limit Items per page (1-100)
|
|
17
|
+
* @returns TaskExecutionQueueListResponseDto
|
|
13
18
|
* @throws ApiError
|
|
14
19
|
*/
|
|
15
|
-
static taskExecutionQueueControllerListQueue(config?: OpenAPIConfig): CancelablePromise<
|
|
20
|
+
static taskExecutionQueueControllerListQueue(page?: number, limit?: number, config?: OpenAPIConfig): CancelablePromise<TaskExecutionQueueListResponseDto>;
|
|
16
21
|
/**
|
|
17
22
|
* Claim a specific task from the execution queue
|
|
18
23
|
* Atomically removes the task from the queue and inserts it into the active execution table.
|
|
@@ -23,11 +28,14 @@ export declare class ExecutionsService {
|
|
|
23
28
|
static taskExecutionQueueControllerClaimTask(taskId: string, config?: OpenAPIConfig): CancelablePromise<ActiveTaskExecutionResponseDto>;
|
|
24
29
|
/**
|
|
25
30
|
* List active task executions
|
|
26
|
-
* Returns the tasks currently being worked on in the execution system.
|
|
27
|
-
* @
|
|
31
|
+
* Returns the tasks currently being worked on in the execution system with pagination.
|
|
32
|
+
* @param page Page number (1-indexed)
|
|
33
|
+
* @param limit Items per page (1-100)
|
|
34
|
+
* @param taskId Filter by task ID
|
|
35
|
+
* @returns ActiveTaskExecutionListResponseDto
|
|
28
36
|
* @throws ApiError
|
|
29
37
|
*/
|
|
30
|
-
static activeTaskExecutionControllerListActiveExecutions(config?: OpenAPIConfig): CancelablePromise<
|
|
38
|
+
static activeTaskExecutionControllerListActiveExecutions(page?: number, limit?: number, taskId?: string, config?: OpenAPIConfig): CancelablePromise<ActiveTaskExecutionListResponseDto>;
|
|
31
39
|
/**
|
|
32
40
|
* Stop an active task execution and move it to history
|
|
33
41
|
* Atomically removes the execution from the active execution table and inserts it into the history table.
|
|
@@ -37,6 +45,14 @@ export declare class ExecutionsService {
|
|
|
37
45
|
* @throws ApiError
|
|
38
46
|
*/
|
|
39
47
|
static activeTaskExecutionControllerStopTaskExecution(executionId: string, requestBody: StopActiveTaskExecutionDto, config?: OpenAPIConfig): CancelablePromise<TaskExecutionHistoryResponseDto>;
|
|
48
|
+
/**
|
|
49
|
+
* Unclaim an active task execution and return it to the queue
|
|
50
|
+
* Atomically removes the execution from the active execution table and returns its task to the execution queue. Only the worker that claimed the execution may unclaim it.
|
|
51
|
+
* @param executionId Execution ID to unclaim
|
|
52
|
+
* @returns void
|
|
53
|
+
* @throws ApiError
|
|
54
|
+
*/
|
|
55
|
+
static activeTaskExecutionControllerUnclaimTaskExecution(executionId: string, config?: OpenAPIConfig): CancelablePromise<void>;
|
|
40
56
|
/**
|
|
41
57
|
* Attach the runner session id to an active execution
|
|
42
58
|
* Stores the runtime session identifier emitted by the agent harness so it can be propagated to execution history.
|
|
@@ -54,6 +70,15 @@ export declare class ExecutionsService {
|
|
|
54
70
|
* @throws ApiError
|
|
55
71
|
*/
|
|
56
72
|
static activeTaskExecutionControllerIncrementToolCallCount(executionId: string, config?: OpenAPIConfig): CancelablePromise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* Patch execution stats and metadata
|
|
75
|
+
* Atomically updates one or more execution metadata fields such as harness, model details, or token usage.
|
|
76
|
+
* @param executionId Execution ID to update
|
|
77
|
+
* @param requestBody
|
|
78
|
+
* @returns void
|
|
79
|
+
* @throws ApiError
|
|
80
|
+
*/
|
|
81
|
+
static activeTaskExecutionControllerUpdateExecutionStats(executionId: string, requestBody: UpdateExecutionStatsDto, config?: OpenAPIConfig): CancelablePromise<void>;
|
|
57
82
|
/**
|
|
58
83
|
* Request interruption of an active execution
|
|
59
84
|
* Signals the worker to abort the currently running agent execution.
|
|
@@ -64,9 +89,12 @@ export declare class ExecutionsService {
|
|
|
64
89
|
static activeTaskExecutionControllerInterruptExecution(executionId: string, config?: OpenAPIConfig): CancelablePromise<void>;
|
|
65
90
|
/**
|
|
66
91
|
* List task execution history
|
|
67
|
-
* Returns the persisted execution history rows in the execution system.
|
|
68
|
-
* @
|
|
92
|
+
* Returns the persisted execution history rows in the execution system with pagination.
|
|
93
|
+
* @param page Page number (1-indexed)
|
|
94
|
+
* @param limit Items per page (1-100)
|
|
95
|
+
* @param taskId Filter by task ID
|
|
96
|
+
* @returns TaskExecutionHistoryListResponseDto
|
|
69
97
|
* @throws ApiError
|
|
70
98
|
*/
|
|
71
|
-
static taskExecutionHistoryControllerListHistory(config?: OpenAPIConfig): CancelablePromise<
|
|
99
|
+
static taskExecutionHistoryControllerListHistory(page?: number, limit?: number, taskId?: string, config?: OpenAPIConfig): CancelablePromise<TaskExecutionHistoryListResponseDto>;
|
|
72
100
|
}
|
|
@@ -3,14 +3,20 @@ import { request as __request } from '../core/request.js';
|
|
|
3
3
|
export class ExecutionsService {
|
|
4
4
|
/**
|
|
5
5
|
* List the current task execution work queue
|
|
6
|
-
* Returns the tasks currently present in the execution queue. Presence means the task is ready to be picked by the executor.
|
|
7
|
-
* @
|
|
6
|
+
* Returns the tasks currently present in the execution queue with pagination. Presence means the task is ready to be picked by the executor.
|
|
7
|
+
* @param page Page number (1-indexed)
|
|
8
|
+
* @param limit Items per page (1-100)
|
|
9
|
+
* @returns TaskExecutionQueueListResponseDto
|
|
8
10
|
* @throws ApiError
|
|
9
11
|
*/
|
|
10
|
-
static taskExecutionQueueControllerListQueue(config = OpenAPI) {
|
|
12
|
+
static taskExecutionQueueControllerListQueue(page = 1, limit = 50, config = OpenAPI) {
|
|
11
13
|
return __request(config, {
|
|
12
14
|
method: 'GET',
|
|
13
15
|
url: '/api/v1/executions/queue',
|
|
16
|
+
query: {
|
|
17
|
+
'page': page,
|
|
18
|
+
'limit': limit,
|
|
19
|
+
},
|
|
14
20
|
});
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
@@ -31,14 +37,22 @@ export class ExecutionsService {
|
|
|
31
37
|
}
|
|
32
38
|
/**
|
|
33
39
|
* List active task executions
|
|
34
|
-
* Returns the tasks currently being worked on in the execution system.
|
|
35
|
-
* @
|
|
40
|
+
* Returns the tasks currently being worked on in the execution system with pagination.
|
|
41
|
+
* @param page Page number (1-indexed)
|
|
42
|
+
* @param limit Items per page (1-100)
|
|
43
|
+
* @param taskId Filter by task ID
|
|
44
|
+
* @returns ActiveTaskExecutionListResponseDto
|
|
36
45
|
* @throws ApiError
|
|
37
46
|
*/
|
|
38
|
-
static activeTaskExecutionControllerListActiveExecutions(config = OpenAPI) {
|
|
47
|
+
static activeTaskExecutionControllerListActiveExecutions(page = 1, limit = 50, taskId, config = OpenAPI) {
|
|
39
48
|
return __request(config, {
|
|
40
49
|
method: 'GET',
|
|
41
50
|
url: '/api/v1/executions/active',
|
|
51
|
+
query: {
|
|
52
|
+
'page': page,
|
|
53
|
+
'limit': limit,
|
|
54
|
+
'taskId': taskId,
|
|
55
|
+
},
|
|
42
56
|
});
|
|
43
57
|
}
|
|
44
58
|
/**
|
|
@@ -60,6 +74,22 @@ export class ExecutionsService {
|
|
|
60
74
|
mediaType: 'application/json',
|
|
61
75
|
});
|
|
62
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Unclaim an active task execution and return it to the queue
|
|
79
|
+
* Atomically removes the execution from the active execution table and returns its task to the execution queue. Only the worker that claimed the execution may unclaim it.
|
|
80
|
+
* @param executionId Execution ID to unclaim
|
|
81
|
+
* @returns void
|
|
82
|
+
* @throws ApiError
|
|
83
|
+
*/
|
|
84
|
+
static activeTaskExecutionControllerUnclaimTaskExecution(executionId, config = OpenAPI) {
|
|
85
|
+
return __request(config, {
|
|
86
|
+
method: 'POST',
|
|
87
|
+
url: '/api/v1/executions/active/{executionId}/unclaim',
|
|
88
|
+
path: {
|
|
89
|
+
'executionId': executionId,
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
}
|
|
63
93
|
/**
|
|
64
94
|
* Attach the runner session id to an active execution
|
|
65
95
|
* Stores the runtime session identifier emitted by the agent harness so it can be propagated to execution history.
|
|
@@ -95,6 +125,25 @@ export class ExecutionsService {
|
|
|
95
125
|
},
|
|
96
126
|
});
|
|
97
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Patch execution stats and metadata
|
|
130
|
+
* Atomically updates one or more execution metadata fields such as harness, model details, or token usage.
|
|
131
|
+
* @param executionId Execution ID to update
|
|
132
|
+
* @param requestBody
|
|
133
|
+
* @returns void
|
|
134
|
+
* @throws ApiError
|
|
135
|
+
*/
|
|
136
|
+
static activeTaskExecutionControllerUpdateExecutionStats(executionId, requestBody, config = OpenAPI) {
|
|
137
|
+
return __request(config, {
|
|
138
|
+
method: 'PATCH',
|
|
139
|
+
url: '/api/v1/executions/active/{executionId}/stats',
|
|
140
|
+
path: {
|
|
141
|
+
'executionId': executionId,
|
|
142
|
+
},
|
|
143
|
+
body: requestBody,
|
|
144
|
+
mediaType: 'application/json',
|
|
145
|
+
});
|
|
146
|
+
}
|
|
98
147
|
/**
|
|
99
148
|
* Request interruption of an active execution
|
|
100
149
|
* Signals the worker to abort the currently running agent execution.
|
|
@@ -113,14 +162,22 @@ export class ExecutionsService {
|
|
|
113
162
|
}
|
|
114
163
|
/**
|
|
115
164
|
* List task execution history
|
|
116
|
-
* Returns the persisted execution history rows in the execution system.
|
|
117
|
-
* @
|
|
165
|
+
* Returns the persisted execution history rows in the execution system with pagination.
|
|
166
|
+
* @param page Page number (1-indexed)
|
|
167
|
+
* @param limit Items per page (1-100)
|
|
168
|
+
* @param taskId Filter by task ID
|
|
169
|
+
* @returns TaskExecutionHistoryListResponseDto
|
|
118
170
|
* @throws ApiError
|
|
119
171
|
*/
|
|
120
|
-
static taskExecutionHistoryControllerListHistory(config = OpenAPI) {
|
|
172
|
+
static taskExecutionHistoryControllerListHistory(page = 1, limit = 50, taskId, config = OpenAPI) {
|
|
121
173
|
return __request(config, {
|
|
122
174
|
method: 'GET',
|
|
123
175
|
url: '/api/v1/executions/history',
|
|
176
|
+
query: {
|
|
177
|
+
'page': page,
|
|
178
|
+
'limit': limit,
|
|
179
|
+
'taskId': taskId,
|
|
180
|
+
},
|
|
124
181
|
});
|
|
125
182
|
}
|
|
126
183
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { BaseClient, ClientConfig } from './base-client.js';
|
|
2
|
-
import type { ActiveTaskExecutionResponseDto, StopActiveTaskExecutionDto, TaskExecutionHistoryResponseDto,
|
|
2
|
+
import type { ActiveTaskExecutionListResponseDto, ActiveTaskExecutionResponseDto, StopActiveTaskExecutionDto, TaskExecutionHistoryListResponseDto, TaskExecutionHistoryResponseDto, TaskExecutionQueueListResponseDto, UpdateExecutionStatsDto, UpdateRunnerSessionIdDto } from './types.js';
|
|
3
3
|
export declare class ExecutionsResource extends BaseClient {
|
|
4
4
|
constructor(config: ClientConfig);
|
|
5
5
|
/** List the current task execution work queue */
|
|
6
6
|
TaskExecutionQueueController_listQueue(params?: {
|
|
7
|
+
page?: number;
|
|
8
|
+
limit?: number;
|
|
7
9
|
signal?: AbortSignal;
|
|
8
|
-
}): Promise<
|
|
10
|
+
}): Promise<TaskExecutionQueueListResponseDto>;
|
|
9
11
|
/** Claim a specific task from the execution queue */
|
|
10
12
|
TaskExecutionQueueController_claimTask(params: {
|
|
11
13
|
taskId: string;
|
|
@@ -13,14 +15,22 @@ export declare class ExecutionsResource extends BaseClient {
|
|
|
13
15
|
}): Promise<ActiveTaskExecutionResponseDto>;
|
|
14
16
|
/** List active task executions */
|
|
15
17
|
ActiveTaskExecutionController_listActiveExecutions(params?: {
|
|
18
|
+
page?: number;
|
|
19
|
+
limit?: number;
|
|
20
|
+
taskId?: string;
|
|
16
21
|
signal?: AbortSignal;
|
|
17
|
-
}): Promise<
|
|
22
|
+
}): Promise<ActiveTaskExecutionListResponseDto>;
|
|
18
23
|
/** Stop an active task execution and move it to history */
|
|
19
24
|
ActiveTaskExecutionController_stopTaskExecution(params: {
|
|
20
25
|
executionId: string;
|
|
21
26
|
body: StopActiveTaskExecutionDto;
|
|
22
27
|
signal?: AbortSignal;
|
|
23
28
|
}): Promise<TaskExecutionHistoryResponseDto>;
|
|
29
|
+
/** Unclaim an active task execution and return it to the queue */
|
|
30
|
+
ActiveTaskExecutionController_unclaimTaskExecution(params: {
|
|
31
|
+
executionId: string;
|
|
32
|
+
signal?: AbortSignal;
|
|
33
|
+
}): Promise<void>;
|
|
24
34
|
/** Attach the runner session id to an active execution */
|
|
25
35
|
ActiveTaskExecutionController_updateRunnerSessionId(params: {
|
|
26
36
|
executionId: string;
|
|
@@ -32,6 +42,12 @@ export declare class ExecutionsResource extends BaseClient {
|
|
|
32
42
|
executionId: string;
|
|
33
43
|
signal?: AbortSignal;
|
|
34
44
|
}): Promise<void>;
|
|
45
|
+
/** Patch execution stats and metadata */
|
|
46
|
+
ActiveTaskExecutionController_updateExecutionStats(params: {
|
|
47
|
+
executionId: string;
|
|
48
|
+
body: UpdateExecutionStatsDto;
|
|
49
|
+
signal?: AbortSignal;
|
|
50
|
+
}): Promise<void>;
|
|
35
51
|
/** Request interruption of an active execution */
|
|
36
52
|
ActiveTaskExecutionController_interruptExecution(params: {
|
|
37
53
|
executionId: string;
|
|
@@ -39,6 +55,9 @@ export declare class ExecutionsResource extends BaseClient {
|
|
|
39
55
|
}): Promise<void>;
|
|
40
56
|
/** List task execution history */
|
|
41
57
|
TaskExecutionHistoryController_listHistory(params?: {
|
|
58
|
+
page?: number;
|
|
59
|
+
limit?: number;
|
|
60
|
+
taskId?: string;
|
|
42
61
|
signal?: AbortSignal;
|
|
43
|
-
}): Promise<
|
|
62
|
+
}): Promise<TaskExecutionHistoryListResponseDto>;
|
|
44
63
|
}
|
|
@@ -5,7 +5,7 @@ export class ExecutionsResource extends BaseClient {
|
|
|
5
5
|
}
|
|
6
6
|
/** List the current task execution work queue */
|
|
7
7
|
async TaskExecutionQueueController_listQueue(params) {
|
|
8
|
-
return this.request('GET', '/api/v1/executions/queue', { signal: params?.signal });
|
|
8
|
+
return this.request('GET', '/api/v1/executions/queue', { params: { page: params?.page, limit: params?.limit }, signal: params?.signal });
|
|
9
9
|
}
|
|
10
10
|
/** Claim a specific task from the execution queue */
|
|
11
11
|
async TaskExecutionQueueController_claimTask(params) {
|
|
@@ -13,12 +13,16 @@ export class ExecutionsResource extends BaseClient {
|
|
|
13
13
|
}
|
|
14
14
|
/** List active task executions */
|
|
15
15
|
async ActiveTaskExecutionController_listActiveExecutions(params) {
|
|
16
|
-
return this.request('GET', '/api/v1/executions/active', { signal: params?.signal });
|
|
16
|
+
return this.request('GET', '/api/v1/executions/active', { params: { page: params?.page, limit: params?.limit, taskId: params?.taskId }, signal: params?.signal });
|
|
17
17
|
}
|
|
18
18
|
/** Stop an active task execution and move it to history */
|
|
19
19
|
async ActiveTaskExecutionController_stopTaskExecution(params) {
|
|
20
20
|
return this.request('POST', `/api/v1/executions/active/${params.executionId}/stop`, { body: params.body, signal: params?.signal });
|
|
21
21
|
}
|
|
22
|
+
/** Unclaim an active task execution and return it to the queue */
|
|
23
|
+
async ActiveTaskExecutionController_unclaimTaskExecution(params) {
|
|
24
|
+
return this.request('POST', `/api/v1/executions/active/${params.executionId}/unclaim`, { responseType: 'void', signal: params?.signal });
|
|
25
|
+
}
|
|
22
26
|
/** Attach the runner session id to an active execution */
|
|
23
27
|
async ActiveTaskExecutionController_updateRunnerSessionId(params) {
|
|
24
28
|
return this.request('PATCH', `/api/v1/executions/active/${params.executionId}/session`, { body: params.body, responseType: 'void', signal: params?.signal });
|
|
@@ -27,12 +31,16 @@ export class ExecutionsResource extends BaseClient {
|
|
|
27
31
|
async ActiveTaskExecutionController_incrementToolCallCount(params) {
|
|
28
32
|
return this.request('PATCH', `/api/v1/executions/active/${params.executionId}/tool-calls/increment`, { responseType: 'void', signal: params?.signal });
|
|
29
33
|
}
|
|
34
|
+
/** Patch execution stats and metadata */
|
|
35
|
+
async ActiveTaskExecutionController_updateExecutionStats(params) {
|
|
36
|
+
return this.request('PATCH', `/api/v1/executions/active/${params.executionId}/stats`, { body: params.body, responseType: 'void', signal: params?.signal });
|
|
37
|
+
}
|
|
30
38
|
/** Request interruption of an active execution */
|
|
31
39
|
async ActiveTaskExecutionController_interruptExecution(params) {
|
|
32
40
|
return this.request('POST', `/api/v1/executions/active/${params.executionId}/interrupt`, { responseType: 'void', signal: params?.signal });
|
|
33
41
|
}
|
|
34
42
|
/** List task execution history */
|
|
35
43
|
async TaskExecutionHistoryController_listHistory(params) {
|
|
36
|
-
return this.request('GET', '/api/v1/executions/history', { signal: params?.signal });
|
|
44
|
+
return this.request('GET', '/api/v1/executions/history', { params: { page: params?.page, limit: params?.limit, taskId: params?.taskId }, signal: params?.signal });
|
|
37
45
|
}
|
|
38
46
|
}
|
package/dist/src/v2/types.d.ts
CHANGED
|
@@ -823,10 +823,25 @@ export interface TaskExecutionQueueEntryResponseDto {
|
|
|
823
823
|
taskName: string | null;
|
|
824
824
|
taskStatus: 'NOT_STARTED' | 'IN_PROGRESS' | 'FOR_REVIEW' | 'DONE';
|
|
825
825
|
}
|
|
826
|
+
export interface TaskExecutionQueueListResponseDto {
|
|
827
|
+
items: TaskExecutionQueueEntryResponseDto[];
|
|
828
|
+
total: number;
|
|
829
|
+
page: number;
|
|
830
|
+
limit: number;
|
|
831
|
+
totalPages: number;
|
|
832
|
+
}
|
|
826
833
|
export interface ActiveTaskExecutionTagSnapshotResponseDto {
|
|
827
834
|
id: string;
|
|
828
835
|
name: string;
|
|
829
836
|
}
|
|
837
|
+
export interface ExecutionStatsResponseDto {
|
|
838
|
+
harness: string | null;
|
|
839
|
+
providerId: string | null;
|
|
840
|
+
modelId: string | null;
|
|
841
|
+
inputTokens: number | null;
|
|
842
|
+
outputTokens: number | null;
|
|
843
|
+
totalTokens: number | null;
|
|
844
|
+
}
|
|
830
845
|
export interface ActiveTaskExecutionResponseDto {
|
|
831
846
|
id: string;
|
|
832
847
|
taskId: string;
|
|
@@ -841,6 +856,14 @@ export interface ActiveTaskExecutionResponseDto {
|
|
|
841
856
|
workerClientId: string;
|
|
842
857
|
taskAssigneeActorIdBeforeClaim: string | null;
|
|
843
858
|
agentActorId: string;
|
|
859
|
+
stats: ExecutionStatsResponseDto;
|
|
860
|
+
}
|
|
861
|
+
export interface ActiveTaskExecutionListResponseDto {
|
|
862
|
+
items: ActiveTaskExecutionResponseDto[];
|
|
863
|
+
total: number;
|
|
864
|
+
page: number;
|
|
865
|
+
limit: number;
|
|
866
|
+
totalPages: number;
|
|
844
867
|
}
|
|
845
868
|
export interface StopActiveTaskExecutionDto {
|
|
846
869
|
status: 'SUCCEEDED' | 'FAILED' | 'STALE' | 'CANCELLED';
|
|
@@ -861,10 +884,26 @@ export interface TaskExecutionHistoryResponseDto {
|
|
|
861
884
|
status: 'SUCCEEDED' | 'FAILED' | 'STALE' | 'CANCELLED';
|
|
862
885
|
errorCode: 'OUT_OF_QUOTA' | 'INTERRUPTED' | 'UNKNOWN';
|
|
863
886
|
errorMessage: string | null;
|
|
887
|
+
stats: ExecutionStatsResponseDto;
|
|
864
888
|
}
|
|
865
889
|
export interface UpdateRunnerSessionIdDto {
|
|
866
890
|
sessionId: string;
|
|
867
891
|
}
|
|
892
|
+
export interface UpdateExecutionStatsDto {
|
|
893
|
+
harness?: string | null;
|
|
894
|
+
providerId?: string | null;
|
|
895
|
+
modelId?: string | null;
|
|
896
|
+
inputTokens?: number | null;
|
|
897
|
+
outputTokens?: number | null;
|
|
898
|
+
totalTokens?: number | null;
|
|
899
|
+
}
|
|
900
|
+
export interface TaskExecutionHistoryListResponseDto {
|
|
901
|
+
items: TaskExecutionHistoryResponseDto[];
|
|
902
|
+
total: number;
|
|
903
|
+
page: number;
|
|
904
|
+
limit: number;
|
|
905
|
+
totalPages: number;
|
|
906
|
+
}
|
|
868
907
|
export interface WorkerResponseDto {
|
|
869
908
|
id: string;
|
|
870
909
|
oauthClientId: string;
|