byterover-cli 3.10.3 → 3.12.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/README.md +4 -2
- package/dist/agent/core/domain/llm/registry.d.ts +12 -0
- package/dist/agent/core/domain/llm/registry.js +49 -0
- package/dist/agent/core/domain/llm/types.d.ts +6 -0
- package/dist/agent/core/interfaces/i-content-generator.d.ts +8 -0
- package/dist/agent/infra/llm/agent-llm-service.js +18 -6
- package/dist/agent/infra/llm/context/context-manager.d.ts +4 -1
- package/dist/agent/infra/llm/context/context-manager.js +5 -1
- package/dist/agent/infra/llm/generators/ai-sdk-content-generator.d.ts +13 -0
- package/dist/agent/infra/llm/generators/ai-sdk-content-generator.js +19 -6
- package/dist/agent/infra/llm/generators/ai-sdk-message-converter.js +16 -4
- package/dist/agent/infra/llm/generators/byterover-content-generator.d.ts +1 -0
- package/dist/agent/infra/llm/generators/byterover-content-generator.js +4 -1
- package/dist/agent/infra/llm/model-capabilities.d.ts +2 -1
- package/dist/agent/infra/llm/model-capabilities.js +6 -4
- package/dist/agent/infra/llm/providers/anthropic.js +2 -0
- package/dist/agent/infra/llm/providers/deepseek.d.ts +10 -0
- package/dist/agent/infra/llm/providers/deepseek.js +33 -0
- package/dist/agent/infra/llm/providers/glm-coding-plan.d.ts +9 -0
- package/dist/agent/infra/llm/providers/glm-coding-plan.js +32 -0
- package/dist/agent/infra/llm/providers/index.js +4 -0
- package/dist/agent/infra/llm/providers/openrouter.js +2 -0
- package/dist/agent/infra/tools/implementations/curate-tool.js +18 -8
- package/dist/oclif/commands/query.js +7 -1
- package/dist/oclif/lib/task-client.d.ts +9 -0
- package/dist/oclif/lib/task-client.js +11 -1
- package/dist/server/constants.d.ts +6 -0
- package/dist/server/constants.js +11 -0
- package/dist/server/core/domain/entities/provider-registry.js +26 -0
- package/dist/server/core/domain/entities/task-history-entry.d.ts +775 -0
- package/dist/server/core/domain/entities/task-history-entry.js +88 -0
- package/dist/server/core/domain/transport/schemas.d.ts +1403 -11
- package/dist/server/core/domain/transport/schemas.js +157 -6
- package/dist/server/core/domain/transport/task-info.d.ts +18 -0
- package/dist/server/core/interfaces/process/i-task-lifecycle-hook.d.ts +7 -0
- package/dist/server/core/interfaces/storage/i-task-history-store.d.ts +62 -0
- package/dist/server/core/interfaces/storage/i-task-history-store.js +1 -0
- package/dist/server/infra/daemon/brv-server.js +43 -18
- package/dist/server/infra/dream/dream-response-schemas.d.ts +24 -0
- package/dist/server/infra/dream/dream-response-schemas.js +7 -0
- package/dist/server/infra/dream/operations/consolidate.js +21 -8
- package/dist/server/infra/dream/operations/synthesize.js +35 -8
- package/dist/server/infra/http/provider-model-fetcher-registry.js +5 -0
- package/dist/server/infra/http/provider-model-fetchers.js +54 -27
- package/dist/server/infra/process/query-log-handler.d.ts +6 -0
- package/dist/server/infra/process/query-log-handler.js +23 -0
- package/dist/server/infra/process/task-history-entry-builder.d.ts +36 -0
- package/dist/server/infra/process/task-history-entry-builder.js +101 -0
- package/dist/server/infra/process/task-history-hook.d.ts +37 -0
- package/dist/server/infra/process/task-history-hook.js +70 -0
- package/dist/server/infra/process/task-history-store-cache.d.ts +25 -0
- package/dist/server/infra/process/task-history-store-cache.js +106 -0
- package/dist/server/infra/process/task-router.d.ts +72 -0
- package/dist/server/infra/process/task-router.js +690 -15
- package/dist/server/infra/process/transport-handlers.d.ts +8 -0
- package/dist/server/infra/process/transport-handlers.js +2 -0
- package/dist/server/infra/storage/file-task-history-store.d.ts +294 -0
- package/dist/server/infra/storage/file-task-history-store.js +912 -0
- package/dist/shared/transport/events/index.d.ts +5 -0
- package/dist/shared/transport/events/task-events.d.ts +204 -1
- package/dist/shared/transport/events/task-events.js +11 -0
- package/dist/tui/features/tasks/hooks/use-task-subscriptions.js +7 -0
- package/dist/tui/features/tasks/stores/tasks-store.d.ts +4 -16
- package/dist/tui/features/tasks/stores/tasks-store.js +7 -0
- package/dist/tui/types/messages.d.ts +2 -9
- package/dist/webui/assets/index-DyVvFoM6.css +1 -0
- package/dist/webui/assets/index-lr0byHh9.js +130 -0
- package/dist/webui/index.html +2 -2
- package/dist/webui/sw.js +1 -1
- package/dist/webui/workbox-9c191d2f.js +1 -0
- package/oclif.manifest.json +985 -985
- package/package.json +1 -1
- package/dist/webui/assets/index-CvcqpMYn.css +0 -1
- package/dist/webui/assets/index-thSZZahh.js +0 -130
- package/dist/webui/workbox-8c29f6e4.js +0 -1
|
@@ -400,11 +400,16 @@ export declare const TransportTaskEventNames: {
|
|
|
400
400
|
readonly ACK: "task:ack";
|
|
401
401
|
readonly CANCEL: "task:cancel";
|
|
402
402
|
readonly CANCELLED: "task:cancelled";
|
|
403
|
+
readonly CLEAR_COMPLETED: "task:clearCompleted";
|
|
403
404
|
readonly COMPLETED: "task:completed";
|
|
404
405
|
readonly CREATE: "task:create";
|
|
405
406
|
readonly CREATED: "task:created";
|
|
407
|
+
readonly DELETE: "task:delete";
|
|
408
|
+
readonly DELETE_BULK: "task:deleteBulk";
|
|
409
|
+
readonly DELETED: "task:deleted";
|
|
406
410
|
readonly ERROR: "task:error";
|
|
407
411
|
readonly EXECUTE: "task:execute";
|
|
412
|
+
readonly GET: "task:get";
|
|
408
413
|
readonly LIST: "task:list";
|
|
409
414
|
readonly QUERY_RESULT: "task:queryResult";
|
|
410
415
|
readonly STARTED: "task:started";
|
|
@@ -540,8 +545,8 @@ export declare const TaskExecuteSchema: z.ZodObject<{
|
|
|
540
545
|
clientCwd?: string | undefined;
|
|
541
546
|
folderPath?: string | undefined;
|
|
542
547
|
projectPath?: string | undefined;
|
|
543
|
-
trigger?: "manual" | "agent-idle" | "cli" | undefined;
|
|
544
548
|
worktreeRoot?: string | undefined;
|
|
549
|
+
trigger?: "manual" | "agent-idle" | "cli" | undefined;
|
|
545
550
|
}, {
|
|
546
551
|
type: "curate" | "query" | "search" | "curate-folder" | "dream";
|
|
547
552
|
content: string;
|
|
@@ -553,8 +558,8 @@ export declare const TaskExecuteSchema: z.ZodObject<{
|
|
|
553
558
|
clientCwd?: string | undefined;
|
|
554
559
|
folderPath?: string | undefined;
|
|
555
560
|
projectPath?: string | undefined;
|
|
556
|
-
trigger?: "manual" | "agent-idle" | "cli" | undefined;
|
|
557
561
|
worktreeRoot?: string | undefined;
|
|
562
|
+
trigger?: "manual" | "agent-idle" | "cli" | undefined;
|
|
558
563
|
}>;
|
|
559
564
|
/**
|
|
560
565
|
* task:cancel - Transport tells Agent to cancel a task
|
|
@@ -702,6 +707,10 @@ export declare const TaskCreatedSchema: z.ZodObject<{
|
|
|
702
707
|
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
703
708
|
/** Folder path for curate-folder task type */
|
|
704
709
|
folderPath: z.ZodOptional<z.ZodString>;
|
|
710
|
+
/** Active model id at task creation time */
|
|
711
|
+
model: z.ZodOptional<z.ZodString>;
|
|
712
|
+
/** Active provider id at task creation time */
|
|
713
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
705
714
|
/** Unique task identifier */
|
|
706
715
|
taskId: z.ZodString;
|
|
707
716
|
/** Task type */
|
|
@@ -710,14 +719,18 @@ export declare const TaskCreatedSchema: z.ZodObject<{
|
|
|
710
719
|
type: "curate" | "query" | "search" | "curate-folder";
|
|
711
720
|
content: string;
|
|
712
721
|
taskId: string;
|
|
722
|
+
model?: string | undefined;
|
|
713
723
|
files?: string[] | undefined;
|
|
724
|
+
provider?: string | undefined;
|
|
714
725
|
clientCwd?: string | undefined;
|
|
715
726
|
folderPath?: string | undefined;
|
|
716
727
|
}, {
|
|
717
728
|
type: "curate" | "query" | "search" | "curate-folder";
|
|
718
729
|
content: string;
|
|
719
730
|
taskId: string;
|
|
731
|
+
model?: string | undefined;
|
|
720
732
|
files?: string[] | undefined;
|
|
733
|
+
provider?: string | undefined;
|
|
721
734
|
clientCwd?: string | undefined;
|
|
722
735
|
folderPath?: string | undefined;
|
|
723
736
|
}>;
|
|
@@ -776,14 +789,14 @@ export declare const TaskCompletedEventSchema: z.ZodObject<{
|
|
|
776
789
|
result: string;
|
|
777
790
|
taskId: string;
|
|
778
791
|
logId?: string | undefined;
|
|
779
|
-
clientId?: string | undefined;
|
|
780
792
|
projectPath?: string | undefined;
|
|
793
|
+
clientId?: string | undefined;
|
|
781
794
|
}, {
|
|
782
795
|
result: string;
|
|
783
796
|
taskId: string;
|
|
784
797
|
logId?: string | undefined;
|
|
785
|
-
clientId?: string | undefined;
|
|
786
798
|
projectPath?: string | undefined;
|
|
799
|
+
clientId?: string | undefined;
|
|
787
800
|
}>;
|
|
788
801
|
/**
|
|
789
802
|
* task:queryResult - Query execution metadata (Agent → Daemon, before task:completed)
|
|
@@ -919,8 +932,8 @@ export declare const TaskErrorEventSchema: z.ZodObject<{
|
|
|
919
932
|
};
|
|
920
933
|
taskId: string;
|
|
921
934
|
logId?: string | undefined;
|
|
922
|
-
clientId?: string | undefined;
|
|
923
935
|
projectPath?: string | undefined;
|
|
936
|
+
clientId?: string | undefined;
|
|
924
937
|
}, {
|
|
925
938
|
error: {
|
|
926
939
|
message: string;
|
|
@@ -930,8 +943,8 @@ export declare const TaskErrorEventSchema: z.ZodObject<{
|
|
|
930
943
|
};
|
|
931
944
|
taskId: string;
|
|
932
945
|
logId?: string | undefined;
|
|
933
|
-
clientId?: string | undefined;
|
|
934
946
|
projectPath?: string | undefined;
|
|
947
|
+
clientId?: string | undefined;
|
|
935
948
|
}>;
|
|
936
949
|
/**
|
|
937
950
|
* llmservice:response - LLM text output
|
|
@@ -1137,14 +1150,61 @@ export declare const TaskCancelResponseSchema: z.ZodObject<{
|
|
|
1137
1150
|
/**
|
|
1138
1151
|
* task:list - Snapshot of active and recently-completed tasks for a project.
|
|
1139
1152
|
* Used by the web UI Tasks tab to populate state without replaying history.
|
|
1153
|
+
*
|
|
1154
|
+
* M2.16: cursor pagination dropped; numbered pagination (page/pageSize) +
|
|
1155
|
+
* full filter dimensions (search/provider/model/time/duration).
|
|
1140
1156
|
*/
|
|
1141
1157
|
export declare const TaskListRequestSchema: z.ZodObject<{
|
|
1142
|
-
/**
|
|
1158
|
+
/** Created at >= this epoch ms (M2.16). */
|
|
1159
|
+
createdAfter: z.ZodOptional<z.ZodNumber>;
|
|
1160
|
+
/** Created at <= this epoch ms (M2.16). */
|
|
1161
|
+
createdBefore: z.ZodOptional<z.ZodNumber>;
|
|
1162
|
+
/** Maximum elapsed time (ms) for terminal tasks (M2.16). */
|
|
1163
|
+
maxDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1164
|
+
/** Minimum elapsed time (ms) for terminal tasks; only matches startedAt+completedAt rows (M2.16). */
|
|
1165
|
+
minDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1166
|
+
/** Optional model id filter (M2.16). */
|
|
1167
|
+
model: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1168
|
+
/** 1-based page index — server clamps to >= 1; defaults to 1 (M2.16). */
|
|
1169
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
1170
|
+
/** Page size — server clamps to 1..1000; defaults to 50 (M2.16). */
|
|
1171
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
1172
|
+
/** Optional project filter — defaults to caller's registered project. */
|
|
1143
1173
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
1144
|
-
|
|
1174
|
+
/** Optional provider id filter (M2.16). */
|
|
1175
|
+
provider: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1176
|
+
/** Case-insensitive substring search over content + result + error.message (M2.16). */
|
|
1177
|
+
searchText: z.ZodOptional<z.ZodString>;
|
|
1178
|
+
/** Optional status filter — return only tasks whose status matches one of these. */
|
|
1179
|
+
status: z.ZodOptional<z.ZodArray<z.ZodEnum<["cancelled", "completed", "created", "error", "started"]>, "many">>;
|
|
1180
|
+
/** Optional task-type filter — e.g. ['curate'], ['query']. */
|
|
1181
|
+
type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1182
|
+
}, "strict", z.ZodTypeAny, {
|
|
1183
|
+
type?: string[] | undefined;
|
|
1184
|
+
status?: ("error" | "cancelled" | "completed" | "created" | "started")[] | undefined;
|
|
1185
|
+
model?: string[] | undefined;
|
|
1186
|
+
provider?: string[] | undefined;
|
|
1145
1187
|
projectPath?: string | undefined;
|
|
1188
|
+
createdAfter?: number | undefined;
|
|
1189
|
+
createdBefore?: number | undefined;
|
|
1190
|
+
maxDurationMs?: number | undefined;
|
|
1191
|
+
minDurationMs?: number | undefined;
|
|
1192
|
+
page?: number | undefined;
|
|
1193
|
+
pageSize?: number | undefined;
|
|
1194
|
+
searchText?: string | undefined;
|
|
1146
1195
|
}, {
|
|
1196
|
+
type?: string[] | undefined;
|
|
1197
|
+
status?: ("error" | "cancelled" | "completed" | "created" | "started")[] | undefined;
|
|
1198
|
+
model?: string[] | undefined;
|
|
1199
|
+
provider?: string[] | undefined;
|
|
1147
1200
|
projectPath?: string | undefined;
|
|
1201
|
+
createdAfter?: number | undefined;
|
|
1202
|
+
createdBefore?: number | undefined;
|
|
1203
|
+
maxDurationMs?: number | undefined;
|
|
1204
|
+
minDurationMs?: number | undefined;
|
|
1205
|
+
page?: number | undefined;
|
|
1206
|
+
pageSize?: number | undefined;
|
|
1207
|
+
searchText?: string | undefined;
|
|
1148
1208
|
}>;
|
|
1149
1209
|
export declare const TaskListItemStatusSchema: z.ZodEnum<["cancelled", "completed", "created", "error", "started"]>;
|
|
1150
1210
|
export declare const TaskListItemSchema: z.ZodObject<{
|
|
@@ -1171,7 +1231,16 @@ export declare const TaskListItemSchema: z.ZodObject<{
|
|
|
1171
1231
|
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1172
1232
|
/** Folder path for `curate-folder` tasks */
|
|
1173
1233
|
folderPath: z.ZodOptional<z.ZodString>;
|
|
1234
|
+
/** Active model id at task creation time */
|
|
1235
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1174
1236
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
1237
|
+
/** Active provider id at task creation time */
|
|
1238
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1239
|
+
/**
|
|
1240
|
+
* Result string. Only present for in-memory completed tasks (toListItem
|
|
1241
|
+
* populates from TaskInfo.result). Persisted entries from the index do not
|
|
1242
|
+
* carry result by 2-tier design — detail panel uses task:get for full text.
|
|
1243
|
+
*/
|
|
1175
1244
|
result: z.ZodOptional<z.ZodString>;
|
|
1176
1245
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1177
1246
|
status: z.ZodEnum<["cancelled", "completed", "created", "error", "started"]>;
|
|
@@ -1183,6 +1252,7 @@ export declare const TaskListItemSchema: z.ZodObject<{
|
|
|
1183
1252
|
createdAt: number;
|
|
1184
1253
|
content: string;
|
|
1185
1254
|
taskId: string;
|
|
1255
|
+
model?: string | undefined;
|
|
1186
1256
|
error?: {
|
|
1187
1257
|
message: string;
|
|
1188
1258
|
name: string;
|
|
@@ -1190,6 +1260,7 @@ export declare const TaskListItemSchema: z.ZodObject<{
|
|
|
1190
1260
|
details?: Record<string, unknown> | undefined;
|
|
1191
1261
|
} | undefined;
|
|
1192
1262
|
files?: string[] | undefined;
|
|
1263
|
+
provider?: string | undefined;
|
|
1193
1264
|
startedAt?: number | undefined;
|
|
1194
1265
|
completedAt?: number | undefined;
|
|
1195
1266
|
result?: string | undefined;
|
|
@@ -1201,6 +1272,7 @@ export declare const TaskListItemSchema: z.ZodObject<{
|
|
|
1201
1272
|
createdAt: number;
|
|
1202
1273
|
content: string;
|
|
1203
1274
|
taskId: string;
|
|
1275
|
+
model?: string | undefined;
|
|
1204
1276
|
error?: {
|
|
1205
1277
|
message: string;
|
|
1206
1278
|
name: string;
|
|
@@ -1208,13 +1280,98 @@ export declare const TaskListItemSchema: z.ZodObject<{
|
|
|
1208
1280
|
details?: Record<string, unknown> | undefined;
|
|
1209
1281
|
} | undefined;
|
|
1210
1282
|
files?: string[] | undefined;
|
|
1283
|
+
provider?: string | undefined;
|
|
1211
1284
|
startedAt?: number | undefined;
|
|
1212
1285
|
completedAt?: number | undefined;
|
|
1213
1286
|
result?: string | undefined;
|
|
1214
1287
|
folderPath?: string | undefined;
|
|
1215
1288
|
projectPath?: string | undefined;
|
|
1216
1289
|
}>;
|
|
1290
|
+
/** Status histogram used by FE filter-bar breakdown (M2.16). */
|
|
1291
|
+
export declare const TaskListCountsSchema: z.ZodObject<{
|
|
1292
|
+
all: z.ZodNumber;
|
|
1293
|
+
cancelled: z.ZodNumber;
|
|
1294
|
+
completed: z.ZodNumber;
|
|
1295
|
+
/** Tasks with status === 'error'. */
|
|
1296
|
+
failed: z.ZodNumber;
|
|
1297
|
+
/** Tasks with status === 'created' || 'started'. */
|
|
1298
|
+
running: z.ZodNumber;
|
|
1299
|
+
}, "strip", z.ZodTypeAny, {
|
|
1300
|
+
all: number;
|
|
1301
|
+
cancelled: number;
|
|
1302
|
+
completed: number;
|
|
1303
|
+
failed: number;
|
|
1304
|
+
running: number;
|
|
1305
|
+
}, {
|
|
1306
|
+
all: number;
|
|
1307
|
+
cancelled: number;
|
|
1308
|
+
completed: number;
|
|
1309
|
+
failed: number;
|
|
1310
|
+
running: number;
|
|
1311
|
+
}>;
|
|
1312
|
+
/** (providerId, modelId) pair from history (M2.16). */
|
|
1313
|
+
export declare const TaskListAvailableModelSchema: z.ZodObject<{
|
|
1314
|
+
modelId: z.ZodString;
|
|
1315
|
+
providerId: z.ZodString;
|
|
1316
|
+
}, "strip", z.ZodTypeAny, {
|
|
1317
|
+
modelId: string;
|
|
1318
|
+
providerId: string;
|
|
1319
|
+
}, {
|
|
1320
|
+
modelId: string;
|
|
1321
|
+
providerId: string;
|
|
1322
|
+
}>;
|
|
1217
1323
|
export declare const TaskListResponseSchema: z.ZodObject<{
|
|
1324
|
+
/** Distinct (providerId, modelId) pairs in candidate set. History-derived. */
|
|
1325
|
+
availableModels: z.ZodArray<z.ZodObject<{
|
|
1326
|
+
modelId: z.ZodString;
|
|
1327
|
+
providerId: z.ZodString;
|
|
1328
|
+
}, "strip", z.ZodTypeAny, {
|
|
1329
|
+
modelId: string;
|
|
1330
|
+
providerId: string;
|
|
1331
|
+
}, {
|
|
1332
|
+
modelId: string;
|
|
1333
|
+
providerId: string;
|
|
1334
|
+
}>, "many">;
|
|
1335
|
+
/** Distinct providerId values in candidate set. History-derived (includes uninstalled). */
|
|
1336
|
+
availableProviders: z.ZodArray<z.ZodString, "many">;
|
|
1337
|
+
/**
|
|
1338
|
+
* Status histogram matching current filter scope (Model A — post-filter,
|
|
1339
|
+
* `counts.all === total` invariant). FE filter-bar chip count = visible
|
|
1340
|
+
* row count.
|
|
1341
|
+
*/
|
|
1342
|
+
counts: z.ZodObject<{
|
|
1343
|
+
all: z.ZodNumber;
|
|
1344
|
+
cancelled: z.ZodNumber;
|
|
1345
|
+
completed: z.ZodNumber;
|
|
1346
|
+
/** Tasks with status === 'error'. */
|
|
1347
|
+
failed: z.ZodNumber;
|
|
1348
|
+
/** Tasks with status === 'created' || 'started'. */
|
|
1349
|
+
running: z.ZodNumber;
|
|
1350
|
+
}, "strip", z.ZodTypeAny, {
|
|
1351
|
+
all: number;
|
|
1352
|
+
cancelled: number;
|
|
1353
|
+
completed: number;
|
|
1354
|
+
failed: number;
|
|
1355
|
+
running: number;
|
|
1356
|
+
}, {
|
|
1357
|
+
all: number;
|
|
1358
|
+
cancelled: number;
|
|
1359
|
+
completed: number;
|
|
1360
|
+
failed: number;
|
|
1361
|
+
running: number;
|
|
1362
|
+
}>;
|
|
1363
|
+
/**
|
|
1364
|
+
* 1-based page index, echoed back as-sent. Server clamps lower bound only
|
|
1365
|
+
* (page < 1 → 1). NOT clamped against `pageCount`: a request for `page=9999`
|
|
1366
|
+
* against a 1-page result returns `{page: 9999, tasks: []}` so the caller
|
|
1367
|
+
* can detect an out-of-range page and correct itself.
|
|
1368
|
+
*/
|
|
1369
|
+
page: z.ZodNumber;
|
|
1370
|
+
/** Total page count = max(ceil(total/pageSize), 1). */
|
|
1371
|
+
pageCount: z.ZodNumber;
|
|
1372
|
+
/** Page size echoed back, clamped to [1, 1000]. */
|
|
1373
|
+
pageSize: z.ZodNumber;
|
|
1374
|
+
/** Page slice of items after all filters. */
|
|
1218
1375
|
tasks: z.ZodArray<z.ZodObject<{
|
|
1219
1376
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
1220
1377
|
content: z.ZodString;
|
|
@@ -1239,7 +1396,16 @@ export declare const TaskListResponseSchema: z.ZodObject<{
|
|
|
1239
1396
|
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1240
1397
|
/** Folder path for `curate-folder` tasks */
|
|
1241
1398
|
folderPath: z.ZodOptional<z.ZodString>;
|
|
1399
|
+
/** Active model id at task creation time */
|
|
1400
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1242
1401
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
1402
|
+
/** Active provider id at task creation time */
|
|
1403
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1404
|
+
/**
|
|
1405
|
+
* Result string. Only present for in-memory completed tasks (toListItem
|
|
1406
|
+
* populates from TaskInfo.result). Persisted entries from the index do not
|
|
1407
|
+
* carry result by 2-tier design — detail panel uses task:get for full text.
|
|
1408
|
+
*/
|
|
1243
1409
|
result: z.ZodOptional<z.ZodString>;
|
|
1244
1410
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1245
1411
|
status: z.ZodEnum<["cancelled", "completed", "created", "error", "started"]>;
|
|
@@ -1251,6 +1417,7 @@ export declare const TaskListResponseSchema: z.ZodObject<{
|
|
|
1251
1417
|
createdAt: number;
|
|
1252
1418
|
content: string;
|
|
1253
1419
|
taskId: string;
|
|
1420
|
+
model?: string | undefined;
|
|
1254
1421
|
error?: {
|
|
1255
1422
|
message: string;
|
|
1256
1423
|
name: string;
|
|
@@ -1258,6 +1425,7 @@ export declare const TaskListResponseSchema: z.ZodObject<{
|
|
|
1258
1425
|
details?: Record<string, unknown> | undefined;
|
|
1259
1426
|
} | undefined;
|
|
1260
1427
|
files?: string[] | undefined;
|
|
1428
|
+
provider?: string | undefined;
|
|
1261
1429
|
startedAt?: number | undefined;
|
|
1262
1430
|
completedAt?: number | undefined;
|
|
1263
1431
|
result?: string | undefined;
|
|
@@ -1269,6 +1437,7 @@ export declare const TaskListResponseSchema: z.ZodObject<{
|
|
|
1269
1437
|
createdAt: number;
|
|
1270
1438
|
content: string;
|
|
1271
1439
|
taskId: string;
|
|
1440
|
+
model?: string | undefined;
|
|
1272
1441
|
error?: {
|
|
1273
1442
|
message: string;
|
|
1274
1443
|
name: string;
|
|
@@ -1276,19 +1445,39 @@ export declare const TaskListResponseSchema: z.ZodObject<{
|
|
|
1276
1445
|
details?: Record<string, unknown> | undefined;
|
|
1277
1446
|
} | undefined;
|
|
1278
1447
|
files?: string[] | undefined;
|
|
1448
|
+
provider?: string | undefined;
|
|
1279
1449
|
startedAt?: number | undefined;
|
|
1280
1450
|
completedAt?: number | undefined;
|
|
1281
1451
|
result?: string | undefined;
|
|
1282
1452
|
folderPath?: string | undefined;
|
|
1283
1453
|
projectPath?: string | undefined;
|
|
1284
1454
|
}>, "many">;
|
|
1285
|
-
|
|
1455
|
+
/** Total count of items matching ALL filters (incl. status). */
|
|
1456
|
+
total: z.ZodNumber;
|
|
1457
|
+
}, "strict", z.ZodTypeAny, {
|
|
1458
|
+
total: number;
|
|
1459
|
+
page: number;
|
|
1460
|
+
pageSize: number;
|
|
1461
|
+
availableModels: {
|
|
1462
|
+
modelId: string;
|
|
1463
|
+
providerId: string;
|
|
1464
|
+
}[];
|
|
1465
|
+
availableProviders: string[];
|
|
1466
|
+
counts: {
|
|
1467
|
+
all: number;
|
|
1468
|
+
cancelled: number;
|
|
1469
|
+
completed: number;
|
|
1470
|
+
failed: number;
|
|
1471
|
+
running: number;
|
|
1472
|
+
};
|
|
1473
|
+
pageCount: number;
|
|
1286
1474
|
tasks: {
|
|
1287
1475
|
type: string;
|
|
1288
1476
|
status: "error" | "cancelled" | "completed" | "created" | "started";
|
|
1289
1477
|
createdAt: number;
|
|
1290
1478
|
content: string;
|
|
1291
1479
|
taskId: string;
|
|
1480
|
+
model?: string | undefined;
|
|
1292
1481
|
error?: {
|
|
1293
1482
|
message: string;
|
|
1294
1483
|
name: string;
|
|
@@ -1296,6 +1485,7 @@ export declare const TaskListResponseSchema: z.ZodObject<{
|
|
|
1296
1485
|
details?: Record<string, unknown> | undefined;
|
|
1297
1486
|
} | undefined;
|
|
1298
1487
|
files?: string[] | undefined;
|
|
1488
|
+
provider?: string | undefined;
|
|
1299
1489
|
startedAt?: number | undefined;
|
|
1300
1490
|
completedAt?: number | undefined;
|
|
1301
1491
|
result?: string | undefined;
|
|
@@ -1303,12 +1493,29 @@ export declare const TaskListResponseSchema: z.ZodObject<{
|
|
|
1303
1493
|
projectPath?: string | undefined;
|
|
1304
1494
|
}[];
|
|
1305
1495
|
}, {
|
|
1496
|
+
total: number;
|
|
1497
|
+
page: number;
|
|
1498
|
+
pageSize: number;
|
|
1499
|
+
availableModels: {
|
|
1500
|
+
modelId: string;
|
|
1501
|
+
providerId: string;
|
|
1502
|
+
}[];
|
|
1503
|
+
availableProviders: string[];
|
|
1504
|
+
counts: {
|
|
1505
|
+
all: number;
|
|
1506
|
+
cancelled: number;
|
|
1507
|
+
completed: number;
|
|
1508
|
+
failed: number;
|
|
1509
|
+
running: number;
|
|
1510
|
+
};
|
|
1511
|
+
pageCount: number;
|
|
1306
1512
|
tasks: {
|
|
1307
1513
|
type: string;
|
|
1308
1514
|
status: "error" | "cancelled" | "completed" | "created" | "started";
|
|
1309
1515
|
createdAt: number;
|
|
1310
1516
|
content: string;
|
|
1311
1517
|
taskId: string;
|
|
1518
|
+
model?: string | undefined;
|
|
1312
1519
|
error?: {
|
|
1313
1520
|
message: string;
|
|
1314
1521
|
name: string;
|
|
@@ -1316,6 +1523,7 @@ export declare const TaskListResponseSchema: z.ZodObject<{
|
|
|
1316
1523
|
details?: Record<string, unknown> | undefined;
|
|
1317
1524
|
} | undefined;
|
|
1318
1525
|
files?: string[] | undefined;
|
|
1526
|
+
provider?: string | undefined;
|
|
1319
1527
|
startedAt?: number | undefined;
|
|
1320
1528
|
completedAt?: number | undefined;
|
|
1321
1529
|
result?: string | undefined;
|
|
@@ -1323,6 +1531,1182 @@ export declare const TaskListResponseSchema: z.ZodObject<{
|
|
|
1323
1531
|
projectPath?: string | undefined;
|
|
1324
1532
|
}[];
|
|
1325
1533
|
}>;
|
|
1534
|
+
/**
|
|
1535
|
+
* task:get — fetch full Level 2 detail for a single persisted task.
|
|
1536
|
+
* Returns null when the task is unknown or its data file is corrupt.
|
|
1537
|
+
*/
|
|
1538
|
+
export declare const TaskGetRequestSchema: z.ZodObject<{
|
|
1539
|
+
taskId: z.ZodString;
|
|
1540
|
+
}, "strip", z.ZodTypeAny, {
|
|
1541
|
+
taskId: string;
|
|
1542
|
+
}, {
|
|
1543
|
+
taskId: string;
|
|
1544
|
+
}>;
|
|
1545
|
+
export declare const TaskGetResponseSchema: z.ZodObject<{
|
|
1546
|
+
task: z.ZodNullable<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
1547
|
+
clientCwd: z.ZodOptional<z.ZodString>;
|
|
1548
|
+
content: z.ZodString;
|
|
1549
|
+
createdAt: z.ZodNumber;
|
|
1550
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1551
|
+
folderPath: z.ZodOptional<z.ZodString>;
|
|
1552
|
+
id: z.ZodString;
|
|
1553
|
+
logId: z.ZodOptional<z.ZodString>;
|
|
1554
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1555
|
+
projectPath: z.ZodString;
|
|
1556
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1557
|
+
reasoningContents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1558
|
+
content: z.ZodString;
|
|
1559
|
+
isThinking: z.ZodOptional<z.ZodBoolean>;
|
|
1560
|
+
timestamp: z.ZodNumber;
|
|
1561
|
+
}, "strip", z.ZodTypeAny, {
|
|
1562
|
+
timestamp: number;
|
|
1563
|
+
content: string;
|
|
1564
|
+
isThinking?: boolean | undefined;
|
|
1565
|
+
}, {
|
|
1566
|
+
timestamp: number;
|
|
1567
|
+
content: string;
|
|
1568
|
+
isThinking?: boolean | undefined;
|
|
1569
|
+
}>, "many">>;
|
|
1570
|
+
responseContent: z.ZodOptional<z.ZodString>;
|
|
1571
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1572
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
taskId: z.ZodString;
|
|
1574
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1575
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1576
|
+
callId: z.ZodOptional<z.ZodString>;
|
|
1577
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1578
|
+
errorType: z.ZodOptional<z.ZodString>;
|
|
1579
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
1580
|
+
sessionId: z.ZodString;
|
|
1581
|
+
status: z.ZodEnum<["completed", "error", "running"]>;
|
|
1582
|
+
timestamp: z.ZodNumber;
|
|
1583
|
+
toolName: z.ZodString;
|
|
1584
|
+
}, "strip", z.ZodTypeAny, {
|
|
1585
|
+
status: "error" | "completed" | "running";
|
|
1586
|
+
sessionId: string;
|
|
1587
|
+
toolName: string;
|
|
1588
|
+
timestamp: number;
|
|
1589
|
+
args: Record<string, unknown>;
|
|
1590
|
+
error?: string | undefined;
|
|
1591
|
+
callId?: string | undefined;
|
|
1592
|
+
result?: unknown;
|
|
1593
|
+
errorType?: string | undefined;
|
|
1594
|
+
}, {
|
|
1595
|
+
status: "error" | "completed" | "running";
|
|
1596
|
+
sessionId: string;
|
|
1597
|
+
toolName: string;
|
|
1598
|
+
timestamp: number;
|
|
1599
|
+
args: Record<string, unknown>;
|
|
1600
|
+
error?: string | undefined;
|
|
1601
|
+
callId?: string | undefined;
|
|
1602
|
+
result?: unknown;
|
|
1603
|
+
errorType?: string | undefined;
|
|
1604
|
+
}>, "many">>;
|
|
1605
|
+
type: z.ZodString;
|
|
1606
|
+
worktreeRoot: z.ZodOptional<z.ZodString>;
|
|
1607
|
+
} & {
|
|
1608
|
+
status: z.ZodLiteral<"created">;
|
|
1609
|
+
}, "strip", z.ZodTypeAny, {
|
|
1610
|
+
type: string;
|
|
1611
|
+
status: "created";
|
|
1612
|
+
id: string;
|
|
1613
|
+
createdAt: number;
|
|
1614
|
+
content: string;
|
|
1615
|
+
taskId: string;
|
|
1616
|
+
schemaVersion: 1;
|
|
1617
|
+
projectPath: string;
|
|
1618
|
+
model?: string | undefined;
|
|
1619
|
+
sessionId?: string | undefined;
|
|
1620
|
+
files?: string[] | undefined;
|
|
1621
|
+
provider?: string | undefined;
|
|
1622
|
+
toolCalls?: {
|
|
1623
|
+
status: "error" | "completed" | "running";
|
|
1624
|
+
sessionId: string;
|
|
1625
|
+
toolName: string;
|
|
1626
|
+
timestamp: number;
|
|
1627
|
+
args: Record<string, unknown>;
|
|
1628
|
+
error?: string | undefined;
|
|
1629
|
+
callId?: string | undefined;
|
|
1630
|
+
result?: unknown;
|
|
1631
|
+
errorType?: string | undefined;
|
|
1632
|
+
}[] | undefined;
|
|
1633
|
+
logId?: string | undefined;
|
|
1634
|
+
clientCwd?: string | undefined;
|
|
1635
|
+
folderPath?: string | undefined;
|
|
1636
|
+
reasoningContents?: {
|
|
1637
|
+
timestamp: number;
|
|
1638
|
+
content: string;
|
|
1639
|
+
isThinking?: boolean | undefined;
|
|
1640
|
+
}[] | undefined;
|
|
1641
|
+
responseContent?: string | undefined;
|
|
1642
|
+
worktreeRoot?: string | undefined;
|
|
1643
|
+
}, {
|
|
1644
|
+
type: string;
|
|
1645
|
+
status: "created";
|
|
1646
|
+
id: string;
|
|
1647
|
+
createdAt: number;
|
|
1648
|
+
content: string;
|
|
1649
|
+
taskId: string;
|
|
1650
|
+
schemaVersion: 1;
|
|
1651
|
+
projectPath: string;
|
|
1652
|
+
model?: string | undefined;
|
|
1653
|
+
sessionId?: string | undefined;
|
|
1654
|
+
files?: string[] | undefined;
|
|
1655
|
+
provider?: string | undefined;
|
|
1656
|
+
toolCalls?: {
|
|
1657
|
+
status: "error" | "completed" | "running";
|
|
1658
|
+
sessionId: string;
|
|
1659
|
+
toolName: string;
|
|
1660
|
+
timestamp: number;
|
|
1661
|
+
args: Record<string, unknown>;
|
|
1662
|
+
error?: string | undefined;
|
|
1663
|
+
callId?: string | undefined;
|
|
1664
|
+
result?: unknown;
|
|
1665
|
+
errorType?: string | undefined;
|
|
1666
|
+
}[] | undefined;
|
|
1667
|
+
logId?: string | undefined;
|
|
1668
|
+
clientCwd?: string | undefined;
|
|
1669
|
+
folderPath?: string | undefined;
|
|
1670
|
+
reasoningContents?: {
|
|
1671
|
+
timestamp: number;
|
|
1672
|
+
content: string;
|
|
1673
|
+
isThinking?: boolean | undefined;
|
|
1674
|
+
}[] | undefined;
|
|
1675
|
+
responseContent?: string | undefined;
|
|
1676
|
+
worktreeRoot?: string | undefined;
|
|
1677
|
+
}>, z.ZodObject<{
|
|
1678
|
+
clientCwd: z.ZodOptional<z.ZodString>;
|
|
1679
|
+
content: z.ZodString;
|
|
1680
|
+
createdAt: z.ZodNumber;
|
|
1681
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1682
|
+
folderPath: z.ZodOptional<z.ZodString>;
|
|
1683
|
+
id: z.ZodString;
|
|
1684
|
+
logId: z.ZodOptional<z.ZodString>;
|
|
1685
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1686
|
+
projectPath: z.ZodString;
|
|
1687
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1688
|
+
reasoningContents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1689
|
+
content: z.ZodString;
|
|
1690
|
+
isThinking: z.ZodOptional<z.ZodBoolean>;
|
|
1691
|
+
timestamp: z.ZodNumber;
|
|
1692
|
+
}, "strip", z.ZodTypeAny, {
|
|
1693
|
+
timestamp: number;
|
|
1694
|
+
content: string;
|
|
1695
|
+
isThinking?: boolean | undefined;
|
|
1696
|
+
}, {
|
|
1697
|
+
timestamp: number;
|
|
1698
|
+
content: string;
|
|
1699
|
+
isThinking?: boolean | undefined;
|
|
1700
|
+
}>, "many">>;
|
|
1701
|
+
responseContent: z.ZodOptional<z.ZodString>;
|
|
1702
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1703
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1704
|
+
taskId: z.ZodString;
|
|
1705
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1706
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1707
|
+
callId: z.ZodOptional<z.ZodString>;
|
|
1708
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1709
|
+
errorType: z.ZodOptional<z.ZodString>;
|
|
1710
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
1711
|
+
sessionId: z.ZodString;
|
|
1712
|
+
status: z.ZodEnum<["completed", "error", "running"]>;
|
|
1713
|
+
timestamp: z.ZodNumber;
|
|
1714
|
+
toolName: z.ZodString;
|
|
1715
|
+
}, "strip", z.ZodTypeAny, {
|
|
1716
|
+
status: "error" | "completed" | "running";
|
|
1717
|
+
sessionId: string;
|
|
1718
|
+
toolName: string;
|
|
1719
|
+
timestamp: number;
|
|
1720
|
+
args: Record<string, unknown>;
|
|
1721
|
+
error?: string | undefined;
|
|
1722
|
+
callId?: string | undefined;
|
|
1723
|
+
result?: unknown;
|
|
1724
|
+
errorType?: string | undefined;
|
|
1725
|
+
}, {
|
|
1726
|
+
status: "error" | "completed" | "running";
|
|
1727
|
+
sessionId: string;
|
|
1728
|
+
toolName: string;
|
|
1729
|
+
timestamp: number;
|
|
1730
|
+
args: Record<string, unknown>;
|
|
1731
|
+
error?: string | undefined;
|
|
1732
|
+
callId?: string | undefined;
|
|
1733
|
+
result?: unknown;
|
|
1734
|
+
errorType?: string | undefined;
|
|
1735
|
+
}>, "many">>;
|
|
1736
|
+
type: z.ZodString;
|
|
1737
|
+
worktreeRoot: z.ZodOptional<z.ZodString>;
|
|
1738
|
+
} & {
|
|
1739
|
+
startedAt: z.ZodNumber;
|
|
1740
|
+
status: z.ZodLiteral<"started">;
|
|
1741
|
+
}, "strip", z.ZodTypeAny, {
|
|
1742
|
+
type: string;
|
|
1743
|
+
status: "started";
|
|
1744
|
+
id: string;
|
|
1745
|
+
createdAt: number;
|
|
1746
|
+
content: string;
|
|
1747
|
+
startedAt: number;
|
|
1748
|
+
taskId: string;
|
|
1749
|
+
schemaVersion: 1;
|
|
1750
|
+
projectPath: string;
|
|
1751
|
+
model?: string | undefined;
|
|
1752
|
+
sessionId?: string | undefined;
|
|
1753
|
+
files?: string[] | undefined;
|
|
1754
|
+
provider?: string | undefined;
|
|
1755
|
+
toolCalls?: {
|
|
1756
|
+
status: "error" | "completed" | "running";
|
|
1757
|
+
sessionId: string;
|
|
1758
|
+
toolName: string;
|
|
1759
|
+
timestamp: number;
|
|
1760
|
+
args: Record<string, unknown>;
|
|
1761
|
+
error?: string | undefined;
|
|
1762
|
+
callId?: string | undefined;
|
|
1763
|
+
result?: unknown;
|
|
1764
|
+
errorType?: string | undefined;
|
|
1765
|
+
}[] | undefined;
|
|
1766
|
+
logId?: string | undefined;
|
|
1767
|
+
clientCwd?: string | undefined;
|
|
1768
|
+
folderPath?: string | undefined;
|
|
1769
|
+
reasoningContents?: {
|
|
1770
|
+
timestamp: number;
|
|
1771
|
+
content: string;
|
|
1772
|
+
isThinking?: boolean | undefined;
|
|
1773
|
+
}[] | undefined;
|
|
1774
|
+
responseContent?: string | undefined;
|
|
1775
|
+
worktreeRoot?: string | undefined;
|
|
1776
|
+
}, {
|
|
1777
|
+
type: string;
|
|
1778
|
+
status: "started";
|
|
1779
|
+
id: string;
|
|
1780
|
+
createdAt: number;
|
|
1781
|
+
content: string;
|
|
1782
|
+
startedAt: number;
|
|
1783
|
+
taskId: string;
|
|
1784
|
+
schemaVersion: 1;
|
|
1785
|
+
projectPath: string;
|
|
1786
|
+
model?: string | undefined;
|
|
1787
|
+
sessionId?: string | undefined;
|
|
1788
|
+
files?: string[] | undefined;
|
|
1789
|
+
provider?: string | undefined;
|
|
1790
|
+
toolCalls?: {
|
|
1791
|
+
status: "error" | "completed" | "running";
|
|
1792
|
+
sessionId: string;
|
|
1793
|
+
toolName: string;
|
|
1794
|
+
timestamp: number;
|
|
1795
|
+
args: Record<string, unknown>;
|
|
1796
|
+
error?: string | undefined;
|
|
1797
|
+
callId?: string | undefined;
|
|
1798
|
+
result?: unknown;
|
|
1799
|
+
errorType?: string | undefined;
|
|
1800
|
+
}[] | undefined;
|
|
1801
|
+
logId?: string | undefined;
|
|
1802
|
+
clientCwd?: string | undefined;
|
|
1803
|
+
folderPath?: string | undefined;
|
|
1804
|
+
reasoningContents?: {
|
|
1805
|
+
timestamp: number;
|
|
1806
|
+
content: string;
|
|
1807
|
+
isThinking?: boolean | undefined;
|
|
1808
|
+
}[] | undefined;
|
|
1809
|
+
responseContent?: string | undefined;
|
|
1810
|
+
worktreeRoot?: string | undefined;
|
|
1811
|
+
}>, z.ZodObject<{
|
|
1812
|
+
clientCwd: z.ZodOptional<z.ZodString>;
|
|
1813
|
+
content: z.ZodString;
|
|
1814
|
+
createdAt: z.ZodNumber;
|
|
1815
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1816
|
+
folderPath: z.ZodOptional<z.ZodString>;
|
|
1817
|
+
id: z.ZodString;
|
|
1818
|
+
logId: z.ZodOptional<z.ZodString>;
|
|
1819
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1820
|
+
projectPath: z.ZodString;
|
|
1821
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1822
|
+
reasoningContents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1823
|
+
content: z.ZodString;
|
|
1824
|
+
isThinking: z.ZodOptional<z.ZodBoolean>;
|
|
1825
|
+
timestamp: z.ZodNumber;
|
|
1826
|
+
}, "strip", z.ZodTypeAny, {
|
|
1827
|
+
timestamp: number;
|
|
1828
|
+
content: string;
|
|
1829
|
+
isThinking?: boolean | undefined;
|
|
1830
|
+
}, {
|
|
1831
|
+
timestamp: number;
|
|
1832
|
+
content: string;
|
|
1833
|
+
isThinking?: boolean | undefined;
|
|
1834
|
+
}>, "many">>;
|
|
1835
|
+
responseContent: z.ZodOptional<z.ZodString>;
|
|
1836
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1837
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1838
|
+
taskId: z.ZodString;
|
|
1839
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1840
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1841
|
+
callId: z.ZodOptional<z.ZodString>;
|
|
1842
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1843
|
+
errorType: z.ZodOptional<z.ZodString>;
|
|
1844
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
1845
|
+
sessionId: z.ZodString;
|
|
1846
|
+
status: z.ZodEnum<["completed", "error", "running"]>;
|
|
1847
|
+
timestamp: z.ZodNumber;
|
|
1848
|
+
toolName: z.ZodString;
|
|
1849
|
+
}, "strip", z.ZodTypeAny, {
|
|
1850
|
+
status: "error" | "completed" | "running";
|
|
1851
|
+
sessionId: string;
|
|
1852
|
+
toolName: string;
|
|
1853
|
+
timestamp: number;
|
|
1854
|
+
args: Record<string, unknown>;
|
|
1855
|
+
error?: string | undefined;
|
|
1856
|
+
callId?: string | undefined;
|
|
1857
|
+
result?: unknown;
|
|
1858
|
+
errorType?: string | undefined;
|
|
1859
|
+
}, {
|
|
1860
|
+
status: "error" | "completed" | "running";
|
|
1861
|
+
sessionId: string;
|
|
1862
|
+
toolName: string;
|
|
1863
|
+
timestamp: number;
|
|
1864
|
+
args: Record<string, unknown>;
|
|
1865
|
+
error?: string | undefined;
|
|
1866
|
+
callId?: string | undefined;
|
|
1867
|
+
result?: unknown;
|
|
1868
|
+
errorType?: string | undefined;
|
|
1869
|
+
}>, "many">>;
|
|
1870
|
+
type: z.ZodString;
|
|
1871
|
+
worktreeRoot: z.ZodOptional<z.ZodString>;
|
|
1872
|
+
} & {
|
|
1873
|
+
completedAt: z.ZodNumber;
|
|
1874
|
+
result: z.ZodOptional<z.ZodString>;
|
|
1875
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1876
|
+
status: z.ZodLiteral<"completed">;
|
|
1877
|
+
}, "strip", z.ZodTypeAny, {
|
|
1878
|
+
type: string;
|
|
1879
|
+
status: "completed";
|
|
1880
|
+
id: string;
|
|
1881
|
+
createdAt: number;
|
|
1882
|
+
content: string;
|
|
1883
|
+
completedAt: number;
|
|
1884
|
+
taskId: string;
|
|
1885
|
+
schemaVersion: 1;
|
|
1886
|
+
projectPath: string;
|
|
1887
|
+
model?: string | undefined;
|
|
1888
|
+
sessionId?: string | undefined;
|
|
1889
|
+
files?: string[] | undefined;
|
|
1890
|
+
provider?: string | undefined;
|
|
1891
|
+
startedAt?: number | undefined;
|
|
1892
|
+
toolCalls?: {
|
|
1893
|
+
status: "error" | "completed" | "running";
|
|
1894
|
+
sessionId: string;
|
|
1895
|
+
toolName: string;
|
|
1896
|
+
timestamp: number;
|
|
1897
|
+
args: Record<string, unknown>;
|
|
1898
|
+
error?: string | undefined;
|
|
1899
|
+
callId?: string | undefined;
|
|
1900
|
+
result?: unknown;
|
|
1901
|
+
errorType?: string | undefined;
|
|
1902
|
+
}[] | undefined;
|
|
1903
|
+
result?: string | undefined;
|
|
1904
|
+
logId?: string | undefined;
|
|
1905
|
+
clientCwd?: string | undefined;
|
|
1906
|
+
folderPath?: string | undefined;
|
|
1907
|
+
reasoningContents?: {
|
|
1908
|
+
timestamp: number;
|
|
1909
|
+
content: string;
|
|
1910
|
+
isThinking?: boolean | undefined;
|
|
1911
|
+
}[] | undefined;
|
|
1912
|
+
responseContent?: string | undefined;
|
|
1913
|
+
worktreeRoot?: string | undefined;
|
|
1914
|
+
}, {
|
|
1915
|
+
type: string;
|
|
1916
|
+
status: "completed";
|
|
1917
|
+
id: string;
|
|
1918
|
+
createdAt: number;
|
|
1919
|
+
content: string;
|
|
1920
|
+
completedAt: number;
|
|
1921
|
+
taskId: string;
|
|
1922
|
+
schemaVersion: 1;
|
|
1923
|
+
projectPath: string;
|
|
1924
|
+
model?: string | undefined;
|
|
1925
|
+
sessionId?: string | undefined;
|
|
1926
|
+
files?: string[] | undefined;
|
|
1927
|
+
provider?: string | undefined;
|
|
1928
|
+
startedAt?: number | undefined;
|
|
1929
|
+
toolCalls?: {
|
|
1930
|
+
status: "error" | "completed" | "running";
|
|
1931
|
+
sessionId: string;
|
|
1932
|
+
toolName: string;
|
|
1933
|
+
timestamp: number;
|
|
1934
|
+
args: Record<string, unknown>;
|
|
1935
|
+
error?: string | undefined;
|
|
1936
|
+
callId?: string | undefined;
|
|
1937
|
+
result?: unknown;
|
|
1938
|
+
errorType?: string | undefined;
|
|
1939
|
+
}[] | undefined;
|
|
1940
|
+
result?: string | undefined;
|
|
1941
|
+
logId?: string | undefined;
|
|
1942
|
+
clientCwd?: string | undefined;
|
|
1943
|
+
folderPath?: string | undefined;
|
|
1944
|
+
reasoningContents?: {
|
|
1945
|
+
timestamp: number;
|
|
1946
|
+
content: string;
|
|
1947
|
+
isThinking?: boolean | undefined;
|
|
1948
|
+
}[] | undefined;
|
|
1949
|
+
responseContent?: string | undefined;
|
|
1950
|
+
worktreeRoot?: string | undefined;
|
|
1951
|
+
}>, z.ZodObject<{
|
|
1952
|
+
clientCwd: z.ZodOptional<z.ZodString>;
|
|
1953
|
+
content: z.ZodString;
|
|
1954
|
+
createdAt: z.ZodNumber;
|
|
1955
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1956
|
+
folderPath: z.ZodOptional<z.ZodString>;
|
|
1957
|
+
id: z.ZodString;
|
|
1958
|
+
logId: z.ZodOptional<z.ZodString>;
|
|
1959
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1960
|
+
projectPath: z.ZodString;
|
|
1961
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1962
|
+
reasoningContents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1963
|
+
content: z.ZodString;
|
|
1964
|
+
isThinking: z.ZodOptional<z.ZodBoolean>;
|
|
1965
|
+
timestamp: z.ZodNumber;
|
|
1966
|
+
}, "strip", z.ZodTypeAny, {
|
|
1967
|
+
timestamp: number;
|
|
1968
|
+
content: string;
|
|
1969
|
+
isThinking?: boolean | undefined;
|
|
1970
|
+
}, {
|
|
1971
|
+
timestamp: number;
|
|
1972
|
+
content: string;
|
|
1973
|
+
isThinking?: boolean | undefined;
|
|
1974
|
+
}>, "many">>;
|
|
1975
|
+
responseContent: z.ZodOptional<z.ZodString>;
|
|
1976
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1977
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1978
|
+
taskId: z.ZodString;
|
|
1979
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1980
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1981
|
+
callId: z.ZodOptional<z.ZodString>;
|
|
1982
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1983
|
+
errorType: z.ZodOptional<z.ZodString>;
|
|
1984
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
1985
|
+
sessionId: z.ZodString;
|
|
1986
|
+
status: z.ZodEnum<["completed", "error", "running"]>;
|
|
1987
|
+
timestamp: z.ZodNumber;
|
|
1988
|
+
toolName: z.ZodString;
|
|
1989
|
+
}, "strip", z.ZodTypeAny, {
|
|
1990
|
+
status: "error" | "completed" | "running";
|
|
1991
|
+
sessionId: string;
|
|
1992
|
+
toolName: string;
|
|
1993
|
+
timestamp: number;
|
|
1994
|
+
args: Record<string, unknown>;
|
|
1995
|
+
error?: string | undefined;
|
|
1996
|
+
callId?: string | undefined;
|
|
1997
|
+
result?: unknown;
|
|
1998
|
+
errorType?: string | undefined;
|
|
1999
|
+
}, {
|
|
2000
|
+
status: "error" | "completed" | "running";
|
|
2001
|
+
sessionId: string;
|
|
2002
|
+
toolName: string;
|
|
2003
|
+
timestamp: number;
|
|
2004
|
+
args: Record<string, unknown>;
|
|
2005
|
+
error?: string | undefined;
|
|
2006
|
+
callId?: string | undefined;
|
|
2007
|
+
result?: unknown;
|
|
2008
|
+
errorType?: string | undefined;
|
|
2009
|
+
}>, "many">>;
|
|
2010
|
+
type: z.ZodString;
|
|
2011
|
+
worktreeRoot: z.ZodOptional<z.ZodString>;
|
|
2012
|
+
} & {
|
|
2013
|
+
completedAt: z.ZodNumber;
|
|
2014
|
+
error: z.ZodObject<{
|
|
2015
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2016
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2017
|
+
message: z.ZodString;
|
|
2018
|
+
name: z.ZodString;
|
|
2019
|
+
}, "strip", z.ZodTypeAny, {
|
|
2020
|
+
message: string;
|
|
2021
|
+
name: string;
|
|
2022
|
+
code?: string | undefined;
|
|
2023
|
+
details?: Record<string, unknown> | undefined;
|
|
2024
|
+
}, {
|
|
2025
|
+
message: string;
|
|
2026
|
+
name: string;
|
|
2027
|
+
code?: string | undefined;
|
|
2028
|
+
details?: Record<string, unknown> | undefined;
|
|
2029
|
+
}>;
|
|
2030
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
2031
|
+
status: z.ZodLiteral<"error">;
|
|
2032
|
+
}, "strip", z.ZodTypeAny, {
|
|
2033
|
+
type: string;
|
|
2034
|
+
status: "error";
|
|
2035
|
+
error: {
|
|
2036
|
+
message: string;
|
|
2037
|
+
name: string;
|
|
2038
|
+
code?: string | undefined;
|
|
2039
|
+
details?: Record<string, unknown> | undefined;
|
|
2040
|
+
};
|
|
2041
|
+
id: string;
|
|
2042
|
+
createdAt: number;
|
|
2043
|
+
content: string;
|
|
2044
|
+
completedAt: number;
|
|
2045
|
+
taskId: string;
|
|
2046
|
+
schemaVersion: 1;
|
|
2047
|
+
projectPath: string;
|
|
2048
|
+
model?: string | undefined;
|
|
2049
|
+
sessionId?: string | undefined;
|
|
2050
|
+
files?: string[] | undefined;
|
|
2051
|
+
provider?: string | undefined;
|
|
2052
|
+
startedAt?: number | undefined;
|
|
2053
|
+
toolCalls?: {
|
|
2054
|
+
status: "error" | "completed" | "running";
|
|
2055
|
+
sessionId: string;
|
|
2056
|
+
toolName: string;
|
|
2057
|
+
timestamp: number;
|
|
2058
|
+
args: Record<string, unknown>;
|
|
2059
|
+
error?: string | undefined;
|
|
2060
|
+
callId?: string | undefined;
|
|
2061
|
+
result?: unknown;
|
|
2062
|
+
errorType?: string | undefined;
|
|
2063
|
+
}[] | undefined;
|
|
2064
|
+
logId?: string | undefined;
|
|
2065
|
+
clientCwd?: string | undefined;
|
|
2066
|
+
folderPath?: string | undefined;
|
|
2067
|
+
reasoningContents?: {
|
|
2068
|
+
timestamp: number;
|
|
2069
|
+
content: string;
|
|
2070
|
+
isThinking?: boolean | undefined;
|
|
2071
|
+
}[] | undefined;
|
|
2072
|
+
responseContent?: string | undefined;
|
|
2073
|
+
worktreeRoot?: string | undefined;
|
|
2074
|
+
}, {
|
|
2075
|
+
type: string;
|
|
2076
|
+
status: "error";
|
|
2077
|
+
error: {
|
|
2078
|
+
message: string;
|
|
2079
|
+
name: string;
|
|
2080
|
+
code?: string | undefined;
|
|
2081
|
+
details?: Record<string, unknown> | undefined;
|
|
2082
|
+
};
|
|
2083
|
+
id: string;
|
|
2084
|
+
createdAt: number;
|
|
2085
|
+
content: string;
|
|
2086
|
+
completedAt: number;
|
|
2087
|
+
taskId: string;
|
|
2088
|
+
schemaVersion: 1;
|
|
2089
|
+
projectPath: string;
|
|
2090
|
+
model?: string | undefined;
|
|
2091
|
+
sessionId?: string | undefined;
|
|
2092
|
+
files?: string[] | undefined;
|
|
2093
|
+
provider?: string | undefined;
|
|
2094
|
+
startedAt?: number | undefined;
|
|
2095
|
+
toolCalls?: {
|
|
2096
|
+
status: "error" | "completed" | "running";
|
|
2097
|
+
sessionId: string;
|
|
2098
|
+
toolName: string;
|
|
2099
|
+
timestamp: number;
|
|
2100
|
+
args: Record<string, unknown>;
|
|
2101
|
+
error?: string | undefined;
|
|
2102
|
+
callId?: string | undefined;
|
|
2103
|
+
result?: unknown;
|
|
2104
|
+
errorType?: string | undefined;
|
|
2105
|
+
}[] | undefined;
|
|
2106
|
+
logId?: string | undefined;
|
|
2107
|
+
clientCwd?: string | undefined;
|
|
2108
|
+
folderPath?: string | undefined;
|
|
2109
|
+
reasoningContents?: {
|
|
2110
|
+
timestamp: number;
|
|
2111
|
+
content: string;
|
|
2112
|
+
isThinking?: boolean | undefined;
|
|
2113
|
+
}[] | undefined;
|
|
2114
|
+
responseContent?: string | undefined;
|
|
2115
|
+
worktreeRoot?: string | undefined;
|
|
2116
|
+
}>, z.ZodObject<{
|
|
2117
|
+
clientCwd: z.ZodOptional<z.ZodString>;
|
|
2118
|
+
content: z.ZodString;
|
|
2119
|
+
createdAt: z.ZodNumber;
|
|
2120
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2121
|
+
folderPath: z.ZodOptional<z.ZodString>;
|
|
2122
|
+
id: z.ZodString;
|
|
2123
|
+
logId: z.ZodOptional<z.ZodString>;
|
|
2124
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2125
|
+
projectPath: z.ZodString;
|
|
2126
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2127
|
+
reasoningContents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2128
|
+
content: z.ZodString;
|
|
2129
|
+
isThinking: z.ZodOptional<z.ZodBoolean>;
|
|
2130
|
+
timestamp: z.ZodNumber;
|
|
2131
|
+
}, "strip", z.ZodTypeAny, {
|
|
2132
|
+
timestamp: number;
|
|
2133
|
+
content: string;
|
|
2134
|
+
isThinking?: boolean | undefined;
|
|
2135
|
+
}, {
|
|
2136
|
+
timestamp: number;
|
|
2137
|
+
content: string;
|
|
2138
|
+
isThinking?: boolean | undefined;
|
|
2139
|
+
}>, "many">>;
|
|
2140
|
+
responseContent: z.ZodOptional<z.ZodString>;
|
|
2141
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
2142
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
2143
|
+
taskId: z.ZodString;
|
|
2144
|
+
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2145
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2146
|
+
callId: z.ZodOptional<z.ZodString>;
|
|
2147
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2148
|
+
errorType: z.ZodOptional<z.ZodString>;
|
|
2149
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
2150
|
+
sessionId: z.ZodString;
|
|
2151
|
+
status: z.ZodEnum<["completed", "error", "running"]>;
|
|
2152
|
+
timestamp: z.ZodNumber;
|
|
2153
|
+
toolName: z.ZodString;
|
|
2154
|
+
}, "strip", z.ZodTypeAny, {
|
|
2155
|
+
status: "error" | "completed" | "running";
|
|
2156
|
+
sessionId: string;
|
|
2157
|
+
toolName: string;
|
|
2158
|
+
timestamp: number;
|
|
2159
|
+
args: Record<string, unknown>;
|
|
2160
|
+
error?: string | undefined;
|
|
2161
|
+
callId?: string | undefined;
|
|
2162
|
+
result?: unknown;
|
|
2163
|
+
errorType?: string | undefined;
|
|
2164
|
+
}, {
|
|
2165
|
+
status: "error" | "completed" | "running";
|
|
2166
|
+
sessionId: string;
|
|
2167
|
+
toolName: string;
|
|
2168
|
+
timestamp: number;
|
|
2169
|
+
args: Record<string, unknown>;
|
|
2170
|
+
error?: string | undefined;
|
|
2171
|
+
callId?: string | undefined;
|
|
2172
|
+
result?: unknown;
|
|
2173
|
+
errorType?: string | undefined;
|
|
2174
|
+
}>, "many">>;
|
|
2175
|
+
type: z.ZodString;
|
|
2176
|
+
worktreeRoot: z.ZodOptional<z.ZodString>;
|
|
2177
|
+
} & {
|
|
2178
|
+
completedAt: z.ZodNumber;
|
|
2179
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
2180
|
+
status: z.ZodLiteral<"cancelled">;
|
|
2181
|
+
}, "strip", z.ZodTypeAny, {
|
|
2182
|
+
type: string;
|
|
2183
|
+
status: "cancelled";
|
|
2184
|
+
id: string;
|
|
2185
|
+
createdAt: number;
|
|
2186
|
+
content: string;
|
|
2187
|
+
completedAt: number;
|
|
2188
|
+
taskId: string;
|
|
2189
|
+
schemaVersion: 1;
|
|
2190
|
+
projectPath: string;
|
|
2191
|
+
model?: string | undefined;
|
|
2192
|
+
sessionId?: string | undefined;
|
|
2193
|
+
files?: string[] | undefined;
|
|
2194
|
+
provider?: string | undefined;
|
|
2195
|
+
startedAt?: number | undefined;
|
|
2196
|
+
toolCalls?: {
|
|
2197
|
+
status: "error" | "completed" | "running";
|
|
2198
|
+
sessionId: string;
|
|
2199
|
+
toolName: string;
|
|
2200
|
+
timestamp: number;
|
|
2201
|
+
args: Record<string, unknown>;
|
|
2202
|
+
error?: string | undefined;
|
|
2203
|
+
callId?: string | undefined;
|
|
2204
|
+
result?: unknown;
|
|
2205
|
+
errorType?: string | undefined;
|
|
2206
|
+
}[] | undefined;
|
|
2207
|
+
logId?: string | undefined;
|
|
2208
|
+
clientCwd?: string | undefined;
|
|
2209
|
+
folderPath?: string | undefined;
|
|
2210
|
+
reasoningContents?: {
|
|
2211
|
+
timestamp: number;
|
|
2212
|
+
content: string;
|
|
2213
|
+
isThinking?: boolean | undefined;
|
|
2214
|
+
}[] | undefined;
|
|
2215
|
+
responseContent?: string | undefined;
|
|
2216
|
+
worktreeRoot?: string | undefined;
|
|
2217
|
+
}, {
|
|
2218
|
+
type: string;
|
|
2219
|
+
status: "cancelled";
|
|
2220
|
+
id: string;
|
|
2221
|
+
createdAt: number;
|
|
2222
|
+
content: string;
|
|
2223
|
+
completedAt: number;
|
|
2224
|
+
taskId: string;
|
|
2225
|
+
schemaVersion: 1;
|
|
2226
|
+
projectPath: string;
|
|
2227
|
+
model?: string | undefined;
|
|
2228
|
+
sessionId?: string | undefined;
|
|
2229
|
+
files?: string[] | undefined;
|
|
2230
|
+
provider?: string | undefined;
|
|
2231
|
+
startedAt?: number | undefined;
|
|
2232
|
+
toolCalls?: {
|
|
2233
|
+
status: "error" | "completed" | "running";
|
|
2234
|
+
sessionId: string;
|
|
2235
|
+
toolName: string;
|
|
2236
|
+
timestamp: number;
|
|
2237
|
+
args: Record<string, unknown>;
|
|
2238
|
+
error?: string | undefined;
|
|
2239
|
+
callId?: string | undefined;
|
|
2240
|
+
result?: unknown;
|
|
2241
|
+
errorType?: string | undefined;
|
|
2242
|
+
}[] | undefined;
|
|
2243
|
+
logId?: string | undefined;
|
|
2244
|
+
clientCwd?: string | undefined;
|
|
2245
|
+
folderPath?: string | undefined;
|
|
2246
|
+
reasoningContents?: {
|
|
2247
|
+
timestamp: number;
|
|
2248
|
+
content: string;
|
|
2249
|
+
isThinking?: boolean | undefined;
|
|
2250
|
+
}[] | undefined;
|
|
2251
|
+
responseContent?: string | undefined;
|
|
2252
|
+
worktreeRoot?: string | undefined;
|
|
2253
|
+
}>]>>;
|
|
2254
|
+
}, "strip", z.ZodTypeAny, {
|
|
2255
|
+
task: {
|
|
2256
|
+
type: string;
|
|
2257
|
+
status: "created";
|
|
2258
|
+
id: string;
|
|
2259
|
+
createdAt: number;
|
|
2260
|
+
content: string;
|
|
2261
|
+
taskId: string;
|
|
2262
|
+
schemaVersion: 1;
|
|
2263
|
+
projectPath: string;
|
|
2264
|
+
model?: string | undefined;
|
|
2265
|
+
sessionId?: string | undefined;
|
|
2266
|
+
files?: string[] | undefined;
|
|
2267
|
+
provider?: string | undefined;
|
|
2268
|
+
toolCalls?: {
|
|
2269
|
+
status: "error" | "completed" | "running";
|
|
2270
|
+
sessionId: string;
|
|
2271
|
+
toolName: string;
|
|
2272
|
+
timestamp: number;
|
|
2273
|
+
args: Record<string, unknown>;
|
|
2274
|
+
error?: string | undefined;
|
|
2275
|
+
callId?: string | undefined;
|
|
2276
|
+
result?: unknown;
|
|
2277
|
+
errorType?: string | undefined;
|
|
2278
|
+
}[] | undefined;
|
|
2279
|
+
logId?: string | undefined;
|
|
2280
|
+
clientCwd?: string | undefined;
|
|
2281
|
+
folderPath?: string | undefined;
|
|
2282
|
+
reasoningContents?: {
|
|
2283
|
+
timestamp: number;
|
|
2284
|
+
content: string;
|
|
2285
|
+
isThinking?: boolean | undefined;
|
|
2286
|
+
}[] | undefined;
|
|
2287
|
+
responseContent?: string | undefined;
|
|
2288
|
+
worktreeRoot?: string | undefined;
|
|
2289
|
+
} | {
|
|
2290
|
+
type: string;
|
|
2291
|
+
status: "started";
|
|
2292
|
+
id: string;
|
|
2293
|
+
createdAt: number;
|
|
2294
|
+
content: string;
|
|
2295
|
+
startedAt: number;
|
|
2296
|
+
taskId: string;
|
|
2297
|
+
schemaVersion: 1;
|
|
2298
|
+
projectPath: string;
|
|
2299
|
+
model?: string | undefined;
|
|
2300
|
+
sessionId?: string | undefined;
|
|
2301
|
+
files?: string[] | undefined;
|
|
2302
|
+
provider?: string | undefined;
|
|
2303
|
+
toolCalls?: {
|
|
2304
|
+
status: "error" | "completed" | "running";
|
|
2305
|
+
sessionId: string;
|
|
2306
|
+
toolName: string;
|
|
2307
|
+
timestamp: number;
|
|
2308
|
+
args: Record<string, unknown>;
|
|
2309
|
+
error?: string | undefined;
|
|
2310
|
+
callId?: string | undefined;
|
|
2311
|
+
result?: unknown;
|
|
2312
|
+
errorType?: string | undefined;
|
|
2313
|
+
}[] | undefined;
|
|
2314
|
+
logId?: string | undefined;
|
|
2315
|
+
clientCwd?: string | undefined;
|
|
2316
|
+
folderPath?: string | undefined;
|
|
2317
|
+
reasoningContents?: {
|
|
2318
|
+
timestamp: number;
|
|
2319
|
+
content: string;
|
|
2320
|
+
isThinking?: boolean | undefined;
|
|
2321
|
+
}[] | undefined;
|
|
2322
|
+
responseContent?: string | undefined;
|
|
2323
|
+
worktreeRoot?: string | undefined;
|
|
2324
|
+
} | {
|
|
2325
|
+
type: string;
|
|
2326
|
+
status: "completed";
|
|
2327
|
+
id: string;
|
|
2328
|
+
createdAt: number;
|
|
2329
|
+
content: string;
|
|
2330
|
+
completedAt: number;
|
|
2331
|
+
taskId: string;
|
|
2332
|
+
schemaVersion: 1;
|
|
2333
|
+
projectPath: string;
|
|
2334
|
+
model?: string | undefined;
|
|
2335
|
+
sessionId?: string | undefined;
|
|
2336
|
+
files?: string[] | undefined;
|
|
2337
|
+
provider?: string | undefined;
|
|
2338
|
+
startedAt?: number | undefined;
|
|
2339
|
+
toolCalls?: {
|
|
2340
|
+
status: "error" | "completed" | "running";
|
|
2341
|
+
sessionId: string;
|
|
2342
|
+
toolName: string;
|
|
2343
|
+
timestamp: number;
|
|
2344
|
+
args: Record<string, unknown>;
|
|
2345
|
+
error?: string | undefined;
|
|
2346
|
+
callId?: string | undefined;
|
|
2347
|
+
result?: unknown;
|
|
2348
|
+
errorType?: string | undefined;
|
|
2349
|
+
}[] | undefined;
|
|
2350
|
+
result?: string | undefined;
|
|
2351
|
+
logId?: string | undefined;
|
|
2352
|
+
clientCwd?: string | undefined;
|
|
2353
|
+
folderPath?: string | undefined;
|
|
2354
|
+
reasoningContents?: {
|
|
2355
|
+
timestamp: number;
|
|
2356
|
+
content: string;
|
|
2357
|
+
isThinking?: boolean | undefined;
|
|
2358
|
+
}[] | undefined;
|
|
2359
|
+
responseContent?: string | undefined;
|
|
2360
|
+
worktreeRoot?: string | undefined;
|
|
2361
|
+
} | {
|
|
2362
|
+
type: string;
|
|
2363
|
+
status: "error";
|
|
2364
|
+
error: {
|
|
2365
|
+
message: string;
|
|
2366
|
+
name: string;
|
|
2367
|
+
code?: string | undefined;
|
|
2368
|
+
details?: Record<string, unknown> | undefined;
|
|
2369
|
+
};
|
|
2370
|
+
id: string;
|
|
2371
|
+
createdAt: number;
|
|
2372
|
+
content: string;
|
|
2373
|
+
completedAt: number;
|
|
2374
|
+
taskId: string;
|
|
2375
|
+
schemaVersion: 1;
|
|
2376
|
+
projectPath: string;
|
|
2377
|
+
model?: string | undefined;
|
|
2378
|
+
sessionId?: string | undefined;
|
|
2379
|
+
files?: string[] | undefined;
|
|
2380
|
+
provider?: string | undefined;
|
|
2381
|
+
startedAt?: number | undefined;
|
|
2382
|
+
toolCalls?: {
|
|
2383
|
+
status: "error" | "completed" | "running";
|
|
2384
|
+
sessionId: string;
|
|
2385
|
+
toolName: string;
|
|
2386
|
+
timestamp: number;
|
|
2387
|
+
args: Record<string, unknown>;
|
|
2388
|
+
error?: string | undefined;
|
|
2389
|
+
callId?: string | undefined;
|
|
2390
|
+
result?: unknown;
|
|
2391
|
+
errorType?: string | undefined;
|
|
2392
|
+
}[] | undefined;
|
|
2393
|
+
logId?: string | undefined;
|
|
2394
|
+
clientCwd?: string | undefined;
|
|
2395
|
+
folderPath?: string | undefined;
|
|
2396
|
+
reasoningContents?: {
|
|
2397
|
+
timestamp: number;
|
|
2398
|
+
content: string;
|
|
2399
|
+
isThinking?: boolean | undefined;
|
|
2400
|
+
}[] | undefined;
|
|
2401
|
+
responseContent?: string | undefined;
|
|
2402
|
+
worktreeRoot?: string | undefined;
|
|
2403
|
+
} | {
|
|
2404
|
+
type: string;
|
|
2405
|
+
status: "cancelled";
|
|
2406
|
+
id: string;
|
|
2407
|
+
createdAt: number;
|
|
2408
|
+
content: string;
|
|
2409
|
+
completedAt: number;
|
|
2410
|
+
taskId: string;
|
|
2411
|
+
schemaVersion: 1;
|
|
2412
|
+
projectPath: string;
|
|
2413
|
+
model?: string | undefined;
|
|
2414
|
+
sessionId?: string | undefined;
|
|
2415
|
+
files?: string[] | undefined;
|
|
2416
|
+
provider?: string | undefined;
|
|
2417
|
+
startedAt?: number | undefined;
|
|
2418
|
+
toolCalls?: {
|
|
2419
|
+
status: "error" | "completed" | "running";
|
|
2420
|
+
sessionId: string;
|
|
2421
|
+
toolName: string;
|
|
2422
|
+
timestamp: number;
|
|
2423
|
+
args: Record<string, unknown>;
|
|
2424
|
+
error?: string | undefined;
|
|
2425
|
+
callId?: string | undefined;
|
|
2426
|
+
result?: unknown;
|
|
2427
|
+
errorType?: string | undefined;
|
|
2428
|
+
}[] | undefined;
|
|
2429
|
+
logId?: string | undefined;
|
|
2430
|
+
clientCwd?: string | undefined;
|
|
2431
|
+
folderPath?: string | undefined;
|
|
2432
|
+
reasoningContents?: {
|
|
2433
|
+
timestamp: number;
|
|
2434
|
+
content: string;
|
|
2435
|
+
isThinking?: boolean | undefined;
|
|
2436
|
+
}[] | undefined;
|
|
2437
|
+
responseContent?: string | undefined;
|
|
2438
|
+
worktreeRoot?: string | undefined;
|
|
2439
|
+
} | null;
|
|
2440
|
+
}, {
|
|
2441
|
+
task: {
|
|
2442
|
+
type: string;
|
|
2443
|
+
status: "created";
|
|
2444
|
+
id: string;
|
|
2445
|
+
createdAt: number;
|
|
2446
|
+
content: string;
|
|
2447
|
+
taskId: string;
|
|
2448
|
+
schemaVersion: 1;
|
|
2449
|
+
projectPath: string;
|
|
2450
|
+
model?: string | undefined;
|
|
2451
|
+
sessionId?: string | undefined;
|
|
2452
|
+
files?: string[] | undefined;
|
|
2453
|
+
provider?: string | undefined;
|
|
2454
|
+
toolCalls?: {
|
|
2455
|
+
status: "error" | "completed" | "running";
|
|
2456
|
+
sessionId: string;
|
|
2457
|
+
toolName: string;
|
|
2458
|
+
timestamp: number;
|
|
2459
|
+
args: Record<string, unknown>;
|
|
2460
|
+
error?: string | undefined;
|
|
2461
|
+
callId?: string | undefined;
|
|
2462
|
+
result?: unknown;
|
|
2463
|
+
errorType?: string | undefined;
|
|
2464
|
+
}[] | undefined;
|
|
2465
|
+
logId?: string | undefined;
|
|
2466
|
+
clientCwd?: string | undefined;
|
|
2467
|
+
folderPath?: string | undefined;
|
|
2468
|
+
reasoningContents?: {
|
|
2469
|
+
timestamp: number;
|
|
2470
|
+
content: string;
|
|
2471
|
+
isThinking?: boolean | undefined;
|
|
2472
|
+
}[] | undefined;
|
|
2473
|
+
responseContent?: string | undefined;
|
|
2474
|
+
worktreeRoot?: string | undefined;
|
|
2475
|
+
} | {
|
|
2476
|
+
type: string;
|
|
2477
|
+
status: "started";
|
|
2478
|
+
id: string;
|
|
2479
|
+
createdAt: number;
|
|
2480
|
+
content: string;
|
|
2481
|
+
startedAt: number;
|
|
2482
|
+
taskId: string;
|
|
2483
|
+
schemaVersion: 1;
|
|
2484
|
+
projectPath: string;
|
|
2485
|
+
model?: string | undefined;
|
|
2486
|
+
sessionId?: string | undefined;
|
|
2487
|
+
files?: string[] | undefined;
|
|
2488
|
+
provider?: string | undefined;
|
|
2489
|
+
toolCalls?: {
|
|
2490
|
+
status: "error" | "completed" | "running";
|
|
2491
|
+
sessionId: string;
|
|
2492
|
+
toolName: string;
|
|
2493
|
+
timestamp: number;
|
|
2494
|
+
args: Record<string, unknown>;
|
|
2495
|
+
error?: string | undefined;
|
|
2496
|
+
callId?: string | undefined;
|
|
2497
|
+
result?: unknown;
|
|
2498
|
+
errorType?: string | undefined;
|
|
2499
|
+
}[] | undefined;
|
|
2500
|
+
logId?: string | undefined;
|
|
2501
|
+
clientCwd?: string | undefined;
|
|
2502
|
+
folderPath?: string | undefined;
|
|
2503
|
+
reasoningContents?: {
|
|
2504
|
+
timestamp: number;
|
|
2505
|
+
content: string;
|
|
2506
|
+
isThinking?: boolean | undefined;
|
|
2507
|
+
}[] | undefined;
|
|
2508
|
+
responseContent?: string | undefined;
|
|
2509
|
+
worktreeRoot?: string | undefined;
|
|
2510
|
+
} | {
|
|
2511
|
+
type: string;
|
|
2512
|
+
status: "completed";
|
|
2513
|
+
id: string;
|
|
2514
|
+
createdAt: number;
|
|
2515
|
+
content: string;
|
|
2516
|
+
completedAt: number;
|
|
2517
|
+
taskId: string;
|
|
2518
|
+
schemaVersion: 1;
|
|
2519
|
+
projectPath: string;
|
|
2520
|
+
model?: string | undefined;
|
|
2521
|
+
sessionId?: string | undefined;
|
|
2522
|
+
files?: string[] | undefined;
|
|
2523
|
+
provider?: string | undefined;
|
|
2524
|
+
startedAt?: number | undefined;
|
|
2525
|
+
toolCalls?: {
|
|
2526
|
+
status: "error" | "completed" | "running";
|
|
2527
|
+
sessionId: string;
|
|
2528
|
+
toolName: string;
|
|
2529
|
+
timestamp: number;
|
|
2530
|
+
args: Record<string, unknown>;
|
|
2531
|
+
error?: string | undefined;
|
|
2532
|
+
callId?: string | undefined;
|
|
2533
|
+
result?: unknown;
|
|
2534
|
+
errorType?: string | undefined;
|
|
2535
|
+
}[] | undefined;
|
|
2536
|
+
result?: string | undefined;
|
|
2537
|
+
logId?: string | undefined;
|
|
2538
|
+
clientCwd?: string | undefined;
|
|
2539
|
+
folderPath?: string | undefined;
|
|
2540
|
+
reasoningContents?: {
|
|
2541
|
+
timestamp: number;
|
|
2542
|
+
content: string;
|
|
2543
|
+
isThinking?: boolean | undefined;
|
|
2544
|
+
}[] | undefined;
|
|
2545
|
+
responseContent?: string | undefined;
|
|
2546
|
+
worktreeRoot?: string | undefined;
|
|
2547
|
+
} | {
|
|
2548
|
+
type: string;
|
|
2549
|
+
status: "error";
|
|
2550
|
+
error: {
|
|
2551
|
+
message: string;
|
|
2552
|
+
name: string;
|
|
2553
|
+
code?: string | undefined;
|
|
2554
|
+
details?: Record<string, unknown> | undefined;
|
|
2555
|
+
};
|
|
2556
|
+
id: string;
|
|
2557
|
+
createdAt: number;
|
|
2558
|
+
content: string;
|
|
2559
|
+
completedAt: number;
|
|
2560
|
+
taskId: string;
|
|
2561
|
+
schemaVersion: 1;
|
|
2562
|
+
projectPath: string;
|
|
2563
|
+
model?: string | undefined;
|
|
2564
|
+
sessionId?: string | undefined;
|
|
2565
|
+
files?: string[] | undefined;
|
|
2566
|
+
provider?: string | undefined;
|
|
2567
|
+
startedAt?: number | undefined;
|
|
2568
|
+
toolCalls?: {
|
|
2569
|
+
status: "error" | "completed" | "running";
|
|
2570
|
+
sessionId: string;
|
|
2571
|
+
toolName: string;
|
|
2572
|
+
timestamp: number;
|
|
2573
|
+
args: Record<string, unknown>;
|
|
2574
|
+
error?: string | undefined;
|
|
2575
|
+
callId?: string | undefined;
|
|
2576
|
+
result?: unknown;
|
|
2577
|
+
errorType?: string | undefined;
|
|
2578
|
+
}[] | undefined;
|
|
2579
|
+
logId?: string | undefined;
|
|
2580
|
+
clientCwd?: string | undefined;
|
|
2581
|
+
folderPath?: string | undefined;
|
|
2582
|
+
reasoningContents?: {
|
|
2583
|
+
timestamp: number;
|
|
2584
|
+
content: string;
|
|
2585
|
+
isThinking?: boolean | undefined;
|
|
2586
|
+
}[] | undefined;
|
|
2587
|
+
responseContent?: string | undefined;
|
|
2588
|
+
worktreeRoot?: string | undefined;
|
|
2589
|
+
} | {
|
|
2590
|
+
type: string;
|
|
2591
|
+
status: "cancelled";
|
|
2592
|
+
id: string;
|
|
2593
|
+
createdAt: number;
|
|
2594
|
+
content: string;
|
|
2595
|
+
completedAt: number;
|
|
2596
|
+
taskId: string;
|
|
2597
|
+
schemaVersion: 1;
|
|
2598
|
+
projectPath: string;
|
|
2599
|
+
model?: string | undefined;
|
|
2600
|
+
sessionId?: string | undefined;
|
|
2601
|
+
files?: string[] | undefined;
|
|
2602
|
+
provider?: string | undefined;
|
|
2603
|
+
startedAt?: number | undefined;
|
|
2604
|
+
toolCalls?: {
|
|
2605
|
+
status: "error" | "completed" | "running";
|
|
2606
|
+
sessionId: string;
|
|
2607
|
+
toolName: string;
|
|
2608
|
+
timestamp: number;
|
|
2609
|
+
args: Record<string, unknown>;
|
|
2610
|
+
error?: string | undefined;
|
|
2611
|
+
callId?: string | undefined;
|
|
2612
|
+
result?: unknown;
|
|
2613
|
+
errorType?: string | undefined;
|
|
2614
|
+
}[] | undefined;
|
|
2615
|
+
logId?: string | undefined;
|
|
2616
|
+
clientCwd?: string | undefined;
|
|
2617
|
+
folderPath?: string | undefined;
|
|
2618
|
+
reasoningContents?: {
|
|
2619
|
+
timestamp: number;
|
|
2620
|
+
content: string;
|
|
2621
|
+
isThinking?: boolean | undefined;
|
|
2622
|
+
}[] | undefined;
|
|
2623
|
+
responseContent?: string | undefined;
|
|
2624
|
+
worktreeRoot?: string | undefined;
|
|
2625
|
+
} | null;
|
|
2626
|
+
}>;
|
|
2627
|
+
/**
|
|
2628
|
+
* task:delete — remove a single task from the per-project history store.
|
|
2629
|
+
* Idempotent: deleting a non-existent task returns success: true.
|
|
2630
|
+
*/
|
|
2631
|
+
export declare const TaskDeleteRequestSchema: z.ZodObject<{
|
|
2632
|
+
taskId: z.ZodString;
|
|
2633
|
+
}, "strip", z.ZodTypeAny, {
|
|
2634
|
+
taskId: string;
|
|
2635
|
+
}, {
|
|
2636
|
+
taskId: string;
|
|
2637
|
+
}>;
|
|
2638
|
+
export declare const TaskDeleteResponseSchema: z.ZodObject<{
|
|
2639
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2640
|
+
/**
|
|
2641
|
+
* `true` when the task was actually removed (was live in-memory or persisted),
|
|
2642
|
+
* `false` when the call was a no-op (taskId unknown or already tombstoned).
|
|
2643
|
+
* Idempotent semantics on `success` are preserved — `success: true` indicates
|
|
2644
|
+
* the request was valid; `removed` distinguishes "actually removed" from
|
|
2645
|
+
* "no-op". `task:deleteBulk` uses this to compute an accurate `deletedCount`.
|
|
2646
|
+
*/
|
|
2647
|
+
removed: z.ZodOptional<z.ZodBoolean>;
|
|
2648
|
+
success: z.ZodBoolean;
|
|
2649
|
+
}, "strip", z.ZodTypeAny, {
|
|
2650
|
+
success: boolean;
|
|
2651
|
+
error?: string | undefined;
|
|
2652
|
+
removed?: boolean | undefined;
|
|
2653
|
+
}, {
|
|
2654
|
+
success: boolean;
|
|
2655
|
+
error?: string | undefined;
|
|
2656
|
+
removed?: boolean | undefined;
|
|
2657
|
+
}>;
|
|
2658
|
+
/**
|
|
2659
|
+
* task:deleteBulk — delete many tasks at once. `deletedCount` reports actual removals.
|
|
2660
|
+
*/
|
|
2661
|
+
export declare const TaskDeleteBulkRequestSchema: z.ZodObject<{
|
|
2662
|
+
taskIds: z.ZodArray<z.ZodString, "many">;
|
|
2663
|
+
}, "strip", z.ZodTypeAny, {
|
|
2664
|
+
taskIds: string[];
|
|
2665
|
+
}, {
|
|
2666
|
+
taskIds: string[];
|
|
2667
|
+
}>;
|
|
2668
|
+
export declare const TaskDeleteBulkResponseSchema: z.ZodObject<{
|
|
2669
|
+
deletedCount: z.ZodNumber;
|
|
2670
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2671
|
+
}, "strip", z.ZodTypeAny, {
|
|
2672
|
+
deletedCount: number;
|
|
2673
|
+
error?: string | undefined;
|
|
2674
|
+
}, {
|
|
2675
|
+
deletedCount: number;
|
|
2676
|
+
error?: string | undefined;
|
|
2677
|
+
}>;
|
|
2678
|
+
/**
|
|
2679
|
+
* task:clearCompleted — remove all terminal-state tasks (completed/error/cancelled)
|
|
2680
|
+
* from the project's history. Active tasks (created/started) are preserved.
|
|
2681
|
+
*/
|
|
2682
|
+
export declare const TaskClearCompletedRequestSchema: z.ZodObject<{
|
|
2683
|
+
projectPath: z.ZodOptional<z.ZodString>;
|
|
2684
|
+
}, "strip", z.ZodTypeAny, {
|
|
2685
|
+
projectPath?: string | undefined;
|
|
2686
|
+
}, {
|
|
2687
|
+
projectPath?: string | undefined;
|
|
2688
|
+
}>;
|
|
2689
|
+
export declare const TaskClearCompletedResponseSchema: z.ZodObject<{
|
|
2690
|
+
deletedCount: z.ZodNumber;
|
|
2691
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2692
|
+
}, "strip", z.ZodTypeAny, {
|
|
2693
|
+
deletedCount: number;
|
|
2694
|
+
error?: string | undefined;
|
|
2695
|
+
}, {
|
|
2696
|
+
deletedCount: number;
|
|
2697
|
+
error?: string | undefined;
|
|
2698
|
+
}>;
|
|
2699
|
+
/**
|
|
2700
|
+
* task:deleted — broadcast to project room when a task is removed from history.
|
|
2701
|
+
* Lets other clients (TUI, other webui tabs) drop the row from their local view.
|
|
2702
|
+
*/
|
|
2703
|
+
export declare const TaskDeletedEventSchema: z.ZodObject<{
|
|
2704
|
+
taskId: z.ZodString;
|
|
2705
|
+
}, "strip", z.ZodTypeAny, {
|
|
2706
|
+
taskId: string;
|
|
2707
|
+
}, {
|
|
2708
|
+
taskId: string;
|
|
2709
|
+
}>;
|
|
1326
2710
|
/**
|
|
1327
2711
|
* Session info returned by queries
|
|
1328
2712
|
*/
|
|
@@ -1622,8 +3006,16 @@ export type TaskCancelRequest = z.infer<typeof TaskCancelRequestSchema>;
|
|
|
1622
3006
|
export type TaskCancelResponse = z.infer<typeof TaskCancelResponseSchema>;
|
|
1623
3007
|
export type TaskListItem = z.infer<typeof TaskListItemSchema>;
|
|
1624
3008
|
export type TaskListItemStatus = z.infer<typeof TaskListItemStatusSchema>;
|
|
1625
|
-
export type TaskListRequest
|
|
1626
|
-
export type
|
|
3009
|
+
export type { TaskListAvailableModel, TaskListCounts, TaskListRequest, TaskListResponse, } from '../../../../shared/transport/events/task-events.js';
|
|
3010
|
+
export type TaskClearCompletedRequest = z.infer<typeof TaskClearCompletedRequestSchema>;
|
|
3011
|
+
export type TaskClearCompletedResponse = z.infer<typeof TaskClearCompletedResponseSchema>;
|
|
3012
|
+
export type TaskDeleteBulkRequest = z.infer<typeof TaskDeleteBulkRequestSchema>;
|
|
3013
|
+
export type TaskDeleteBulkResponse = z.infer<typeof TaskDeleteBulkResponseSchema>;
|
|
3014
|
+
export type TaskDeleteRequest = z.infer<typeof TaskDeleteRequestSchema>;
|
|
3015
|
+
export type TaskDeleteResponse = z.infer<typeof TaskDeleteResponseSchema>;
|
|
3016
|
+
export type TaskDeletedEvent = z.infer<typeof TaskDeletedEventSchema>;
|
|
3017
|
+
export type TaskGetRequest = z.infer<typeof TaskGetRequestSchema>;
|
|
3018
|
+
export type TaskGetResponse = z.infer<typeof TaskGetResponseSchema>;
|
|
1627
3019
|
export type SessionInfo = z.infer<typeof SessionInfoSchema>;
|
|
1628
3020
|
export type SessionStats = z.infer<typeof SessionStatsSchema>;
|
|
1629
3021
|
export type SessionInfoRequest = z.infer<typeof SessionInfoRequestSchema>;
|