@taico/client 0.2.14 → 0.2.15

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.
@@ -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;
@@ -1799,6 +1799,26 @@ export interface paths {
1799
1799
  patch: operations["ActiveTaskExecutionController_incrementToolCallCount"];
1800
1800
  trace?: never;
1801
1801
  };
1802
+ "/api/v1/executions/active/{executionId}/stats": {
1803
+ parameters: {
1804
+ query?: never;
1805
+ header?: never;
1806
+ path?: never;
1807
+ cookie?: never;
1808
+ };
1809
+ get?: never;
1810
+ put?: never;
1811
+ post?: never;
1812
+ delete?: never;
1813
+ options?: never;
1814
+ head?: never;
1815
+ /**
1816
+ * Patch execution stats and metadata
1817
+ * @description Atomically updates one or more execution metadata fields such as harness, model details, or token usage.
1818
+ */
1819
+ patch: operations["ActiveTaskExecutionController_updateExecutionStats"];
1820
+ trace?: never;
1821
+ };
1802
1822
  "/api/v1/executions/active/{executionId}/interrupt": {
1803
1823
  parameters: {
1804
1824
  query?: never;
@@ -1828,7 +1848,7 @@ export interface paths {
1828
1848
  };
1829
1849
  /**
1830
1850
  * List task execution history
1831
- * @description Returns the persisted execution history rows in the execution system.
1851
+ * @description Returns the persisted execution history rows in the execution system with pagination.
1832
1852
  */
1833
1853
  get: operations["TaskExecutionHistoryController_listHistory"];
1834
1854
  put?: never;
@@ -5237,6 +5257,30 @@ export interface components {
5237
5257
  */
5238
5258
  taskStatus: "NOT_STARTED" | "IN_PROGRESS" | "FOR_REVIEW" | "DONE" | null;
5239
5259
  };
5260
+ TaskExecutionQueueListResponseDto: {
5261
+ /** @description List of task execution queue entries */
5262
+ items: components["schemas"]["TaskExecutionQueueEntryResponseDto"][];
5263
+ /**
5264
+ * @description Total number of queue entries
5265
+ * @example 42
5266
+ */
5267
+ total: number;
5268
+ /**
5269
+ * @description Current page number
5270
+ * @example 1
5271
+ */
5272
+ page: number;
5273
+ /**
5274
+ * @description Number of items per page
5275
+ * @example 50
5276
+ */
5277
+ limit: number;
5278
+ /**
5279
+ * @description Total number of pages
5280
+ * @example 3
5281
+ */
5282
+ totalPages: number;
5283
+ };
5240
5284
  ActiveTaskExecutionTagSnapshotResponseDto: {
5241
5285
  /**
5242
5286
  * @description Tag ID at the time the task was claimed
@@ -5249,6 +5293,38 @@ export interface components {
5249
5293
  */
5250
5294
  name: string;
5251
5295
  };
5296
+ ExecutionStatsResponseDto: {
5297
+ /**
5298
+ * @description Harness used to execute the run
5299
+ * @example opencode
5300
+ */
5301
+ harness: string | null;
5302
+ /**
5303
+ * @description LLM provider id resolved for this run
5304
+ * @example openai
5305
+ */
5306
+ providerId: string | null;
5307
+ /**
5308
+ * @description LLM model id resolved for this run
5309
+ * @example gpt-5.4
5310
+ */
5311
+ modelId: string | null;
5312
+ /**
5313
+ * @description Input token usage when available
5314
+ * @example 1200
5315
+ */
5316
+ inputTokens: number | null;
5317
+ /**
5318
+ * @description Output token usage when available
5319
+ * @example 380
5320
+ */
5321
+ outputTokens: number | null;
5322
+ /**
5323
+ * @description Total token usage when available
5324
+ * @example 1580
5325
+ */
5326
+ totalTokens: number | null;
5327
+ };
5252
5328
  ActiveTaskExecutionResponseDto: {
5253
5329
  /**
5254
5330
  * @description Execution ID
@@ -5312,6 +5388,32 @@ export interface components {
5312
5388
  * @example 19dc147c-6051-49e3-bf7a-404e3bb575d3
5313
5389
  */
5314
5390
  agentActorId: string;
5391
+ /** @description Execution metadata and usage stats */
5392
+ stats: components["schemas"]["ExecutionStatsResponseDto"] | null;
5393
+ };
5394
+ ActiveTaskExecutionListResponseDto: {
5395
+ /** @description List of active task executions */
5396
+ items: components["schemas"]["ActiveTaskExecutionResponseDto"][];
5397
+ /**
5398
+ * @description Total number of active executions
5399
+ * @example 42
5400
+ */
5401
+ total: number;
5402
+ /**
5403
+ * @description Current page number
5404
+ * @example 1
5405
+ */
5406
+ page: number;
5407
+ /**
5408
+ * @description Number of items per page
5409
+ * @example 50
5410
+ */
5411
+ limit: number;
5412
+ /**
5413
+ * @description Total number of pages
5414
+ * @example 3
5415
+ */
5416
+ totalPages: number;
5315
5417
  };
5316
5418
  StopActiveTaskExecutionDto: {
5317
5419
  /**
@@ -5398,6 +5500,8 @@ export interface components {
5398
5500
  * @example ADK runner failed: 429 quota exceeded.
5399
5501
  */
5400
5502
  errorMessage: string | null;
5503
+ /** @description Execution metadata and usage stats */
5504
+ stats: components["schemas"]["ExecutionStatsResponseDto"] | null;
5401
5505
  };
5402
5506
  UpdateRunnerSessionIdDto: {
5403
5507
  /**
@@ -5406,6 +5510,62 @@ export interface components {
5406
5510
  */
5407
5511
  sessionId: string;
5408
5512
  };
5513
+ UpdateExecutionStatsDto: {
5514
+ /**
5515
+ * @description Harness used by the worker to run this execution
5516
+ * @example opencode
5517
+ */
5518
+ harness?: string | null;
5519
+ /**
5520
+ * @description Model provider id used by the harness
5521
+ * @example openai
5522
+ */
5523
+ providerId?: string | null;
5524
+ /**
5525
+ * @description Model id used by the harness
5526
+ * @example gpt-5.4
5527
+ */
5528
+ modelId?: string | null;
5529
+ /**
5530
+ * @description Input token usage when available
5531
+ * @example 1200
5532
+ */
5533
+ inputTokens?: number | null;
5534
+ /**
5535
+ * @description Output token usage when available
5536
+ * @example 380
5537
+ */
5538
+ outputTokens?: number | null;
5539
+ /**
5540
+ * @description Total token usage when available
5541
+ * @example 1580
5542
+ */
5543
+ totalTokens?: number | null;
5544
+ };
5545
+ TaskExecutionHistoryListResponseDto: {
5546
+ /** @description List of task execution history entries */
5547
+ items: components["schemas"]["TaskExecutionHistoryResponseDto"][];
5548
+ /**
5549
+ * @description Total number of history entries
5550
+ * @example 42
5551
+ */
5552
+ total: number;
5553
+ /**
5554
+ * @description Current page number
5555
+ * @example 1
5556
+ */
5557
+ page: number;
5558
+ /**
5559
+ * @description Number of items per page
5560
+ * @example 50
5561
+ */
5562
+ limit: number;
5563
+ /**
5564
+ * @description Total number of pages
5565
+ * @example 3
5566
+ */
5567
+ totalPages: number;
5568
+ };
5409
5569
  WorkerResponseDto: {
5410
5570
  /** Format: uuid */
5411
5571
  id: string;
@@ -9968,7 +10128,12 @@ export interface operations {
9968
10128
  };
9969
10129
  TaskExecutionQueueController_listQueue: {
9970
10130
  parameters: {
9971
- query?: never;
10131
+ query?: {
10132
+ /** @description Page number (1-indexed) */
10133
+ page?: number;
10134
+ /** @description Items per page (1-100) */
10135
+ limit?: number;
10136
+ };
9972
10137
  header?: never;
9973
10138
  path?: never;
9974
10139
  cookie?: never;
@@ -9980,7 +10145,7 @@ export interface operations {
9980
10145
  [name: string]: unknown;
9981
10146
  };
9982
10147
  content: {
9983
- "application/json": components["schemas"]["TaskExecutionQueueEntryResponseDto"][];
10148
+ "application/json": components["schemas"]["TaskExecutionQueueListResponseDto"];
9984
10149
  };
9985
10150
  };
9986
10151
  };
@@ -10009,7 +10174,14 @@ export interface operations {
10009
10174
  };
10010
10175
  ActiveTaskExecutionController_listActiveExecutions: {
10011
10176
  parameters: {
10012
- query?: never;
10177
+ query?: {
10178
+ /** @description Page number (1-indexed) */
10179
+ page?: number;
10180
+ /** @description Items per page (1-100) */
10181
+ limit?: number;
10182
+ /** @description Filter by task ID */
10183
+ taskId?: string;
10184
+ };
10013
10185
  header?: never;
10014
10186
  path?: never;
10015
10187
  cookie?: never;
@@ -10021,7 +10193,7 @@ export interface operations {
10021
10193
  [name: string]: unknown;
10022
10194
  };
10023
10195
  content: {
10024
- "application/json": components["schemas"]["ActiveTaskExecutionResponseDto"][];
10196
+ "application/json": components["schemas"]["ActiveTaskExecutionListResponseDto"];
10025
10197
  };
10026
10198
  };
10027
10199
  };
@@ -10096,6 +10268,30 @@ export interface operations {
10096
10268
  };
10097
10269
  };
10098
10270
  };
10271
+ ActiveTaskExecutionController_updateExecutionStats: {
10272
+ parameters: {
10273
+ query?: never;
10274
+ header?: never;
10275
+ path: {
10276
+ /** @description Execution ID to update */
10277
+ executionId: string;
10278
+ };
10279
+ cookie?: never;
10280
+ };
10281
+ requestBody: {
10282
+ content: {
10283
+ "application/json": components["schemas"]["UpdateExecutionStatsDto"];
10284
+ };
10285
+ };
10286
+ responses: {
10287
+ 204: {
10288
+ headers: {
10289
+ [name: string]: unknown;
10290
+ };
10291
+ content?: never;
10292
+ };
10293
+ };
10294
+ };
10099
10295
  ActiveTaskExecutionController_interruptExecution: {
10100
10296
  parameters: {
10101
10297
  query?: never;
@@ -10118,7 +10314,14 @@ export interface operations {
10118
10314
  };
10119
10315
  TaskExecutionHistoryController_listHistory: {
10120
10316
  parameters: {
10121
- query?: never;
10317
+ query?: {
10318
+ /** @description Page number (1-indexed) */
10319
+ page?: number;
10320
+ /** @description Items per page (1-100) */
10321
+ limit?: number;
10322
+ /** @description Filter by task ID */
10323
+ taskId?: string;
10324
+ };
10122
10325
  header?: never;
10123
10326
  path?: never;
10124
10327
  cookie?: never;
@@ -10130,7 +10333,7 @@ export interface operations {
10130
10333
  [name: string]: unknown;
10131
10334
  };
10132
10335
  content: {
10133
- "application/json": components["schemas"]["TaskExecutionHistoryResponseDto"][];
10336
+ "application/json": components["schemas"]["TaskExecutionHistoryListResponseDto"];
10134
10337
  };
10135
10338
  };
10136
10339
  };
@@ -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
+ };
@@ -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,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
+ };
@@ -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,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
+ };
@@ -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 { TaskExecutionQueueEntryResponseDto } from '../models/TaskExecutionQueueEntryResponseDto.js';
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
- * @returns TaskExecutionQueueEntryResponseDto
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<Array<TaskExecutionQueueEntryResponseDto>>;
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
- * @returns ActiveTaskExecutionResponseDto
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<Array<ActiveTaskExecutionResponseDto>>;
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.
@@ -54,6 +62,15 @@ export declare class ExecutionsService {
54
62
  * @throws ApiError
55
63
  */
56
64
  static activeTaskExecutionControllerIncrementToolCallCount(executionId: string, config?: OpenAPIConfig): CancelablePromise<void>;
65
+ /**
66
+ * Patch execution stats and metadata
67
+ * Atomically updates one or more execution metadata fields such as harness, model details, or token usage.
68
+ * @param executionId Execution ID to update
69
+ * @param requestBody
70
+ * @returns void
71
+ * @throws ApiError
72
+ */
73
+ static activeTaskExecutionControllerUpdateExecutionStats(executionId: string, requestBody: UpdateExecutionStatsDto, config?: OpenAPIConfig): CancelablePromise<void>;
57
74
  /**
58
75
  * Request interruption of an active execution
59
76
  * Signals the worker to abort the currently running agent execution.
@@ -64,9 +81,12 @@ export declare class ExecutionsService {
64
81
  static activeTaskExecutionControllerInterruptExecution(executionId: string, config?: OpenAPIConfig): CancelablePromise<void>;
65
82
  /**
66
83
  * List task execution history
67
- * Returns the persisted execution history rows in the execution system.
68
- * @returns TaskExecutionHistoryResponseDto
84
+ * Returns the persisted execution history rows in the execution system with pagination.
85
+ * @param page Page number (1-indexed)
86
+ * @param limit Items per page (1-100)
87
+ * @param taskId Filter by task ID
88
+ * @returns TaskExecutionHistoryListResponseDto
69
89
  * @throws ApiError
70
90
  */
71
- static taskExecutionHistoryControllerListHistory(config?: OpenAPIConfig): CancelablePromise<Array<TaskExecutionHistoryResponseDto>>;
91
+ static taskExecutionHistoryControllerListHistory(page?: number, limit?: number, taskId?: string, config?: OpenAPIConfig): CancelablePromise<TaskExecutionHistoryListResponseDto>;
72
92
  }
@@ -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
- * @returns TaskExecutionQueueEntryResponseDto
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
- * @returns ActiveTaskExecutionResponseDto
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
  /**
@@ -95,6 +109,25 @@ export class ExecutionsService {
95
109
  },
96
110
  });
97
111
  }
112
+ /**
113
+ * Patch execution stats and metadata
114
+ * Atomically updates one or more execution metadata fields such as harness, model details, or token usage.
115
+ * @param executionId Execution ID to update
116
+ * @param requestBody
117
+ * @returns void
118
+ * @throws ApiError
119
+ */
120
+ static activeTaskExecutionControllerUpdateExecutionStats(executionId, requestBody, config = OpenAPI) {
121
+ return __request(config, {
122
+ method: 'PATCH',
123
+ url: '/api/v1/executions/active/{executionId}/stats',
124
+ path: {
125
+ 'executionId': executionId,
126
+ },
127
+ body: requestBody,
128
+ mediaType: 'application/json',
129
+ });
130
+ }
98
131
  /**
99
132
  * Request interruption of an active execution
100
133
  * Signals the worker to abort the currently running agent execution.
@@ -113,14 +146,22 @@ export class ExecutionsService {
113
146
  }
114
147
  /**
115
148
  * List task execution history
116
- * Returns the persisted execution history rows in the execution system.
117
- * @returns TaskExecutionHistoryResponseDto
149
+ * Returns the persisted execution history rows in the execution system with pagination.
150
+ * @param page Page number (1-indexed)
151
+ * @param limit Items per page (1-100)
152
+ * @param taskId Filter by task ID
153
+ * @returns TaskExecutionHistoryListResponseDto
118
154
  * @throws ApiError
119
155
  */
120
- static taskExecutionHistoryControllerListHistory(config = OpenAPI) {
156
+ static taskExecutionHistoryControllerListHistory(page = 1, limit = 50, taskId, config = OpenAPI) {
121
157
  return __request(config, {
122
158
  method: 'GET',
123
159
  url: '/api/v1/executions/history',
160
+ query: {
161
+ 'page': page,
162
+ 'limit': limit,
163
+ 'taskId': taskId,
164
+ },
124
165
  });
125
166
  }
126
167
  }
@@ -1,11 +1,13 @@
1
1
  import { BaseClient, ClientConfig } from './base-client.js';
2
- import type { ActiveTaskExecutionResponseDto, StopActiveTaskExecutionDto, TaskExecutionHistoryResponseDto, TaskExecutionQueueEntryResponseDto, UpdateRunnerSessionIdDto } from './types.js';
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<TaskExecutionQueueEntryResponseDto[]>;
10
+ }): Promise<TaskExecutionQueueListResponseDto>;
9
11
  /** Claim a specific task from the execution queue */
10
12
  TaskExecutionQueueController_claimTask(params: {
11
13
  taskId: string;
@@ -13,8 +15,11 @@ 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<ActiveTaskExecutionResponseDto[]>;
22
+ }): Promise<ActiveTaskExecutionListResponseDto>;
18
23
  /** Stop an active task execution and move it to history */
19
24
  ActiveTaskExecutionController_stopTaskExecution(params: {
20
25
  executionId: string;
@@ -32,6 +37,12 @@ export declare class ExecutionsResource extends BaseClient {
32
37
  executionId: string;
33
38
  signal?: AbortSignal;
34
39
  }): Promise<void>;
40
+ /** Patch execution stats and metadata */
41
+ ActiveTaskExecutionController_updateExecutionStats(params: {
42
+ executionId: string;
43
+ body: UpdateExecutionStatsDto;
44
+ signal?: AbortSignal;
45
+ }): Promise<void>;
35
46
  /** Request interruption of an active execution */
36
47
  ActiveTaskExecutionController_interruptExecution(params: {
37
48
  executionId: string;
@@ -39,6 +50,9 @@ export declare class ExecutionsResource extends BaseClient {
39
50
  }): Promise<void>;
40
51
  /** List task execution history */
41
52
  TaskExecutionHistoryController_listHistory(params?: {
53
+ page?: number;
54
+ limit?: number;
55
+ taskId?: string;
42
56
  signal?: AbortSignal;
43
- }): Promise<TaskExecutionHistoryResponseDto[]>;
57
+ }): Promise<TaskExecutionHistoryListResponseDto>;
44
58
  }
@@ -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,7 +13,7 @@ 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) {
@@ -27,12 +27,16 @@ export class ExecutionsResource extends BaseClient {
27
27
  async ActiveTaskExecutionController_incrementToolCallCount(params) {
28
28
  return this.request('PATCH', `/api/v1/executions/active/${params.executionId}/tool-calls/increment`, { responseType: 'void', signal: params?.signal });
29
29
  }
30
+ /** Patch execution stats and metadata */
31
+ async ActiveTaskExecutionController_updateExecutionStats(params) {
32
+ return this.request('PATCH', `/api/v1/executions/active/${params.executionId}/stats`, { body: params.body, responseType: 'void', signal: params?.signal });
33
+ }
30
34
  /** Request interruption of an active execution */
31
35
  async ActiveTaskExecutionController_interruptExecution(params) {
32
36
  return this.request('POST', `/api/v1/executions/active/${params.executionId}/interrupt`, { responseType: 'void', signal: params?.signal });
33
37
  }
34
38
  /** List task execution history */
35
39
  async TaskExecutionHistoryController_listHistory(params) {
36
- return this.request('GET', '/api/v1/executions/history', { signal: params?.signal });
40
+ return this.request('GET', '/api/v1/executions/history', { params: { page: params?.page, limit: params?.limit, taskId: params?.taskId }, signal: params?.signal });
37
41
  }
38
42
  }
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taico/client",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",