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