@hearsay-tools/squawk 0.18.0-dev.7694 → 0.18.0-dev.7696

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.
@@ -9,7 +9,7 @@ import { AutomationStore } from '../automations/store.ts';
9
9
  import type { IncomingMessage } from 'node:http';
10
10
  import { Hono } from 'hono';
11
11
  import { TaskWebhooks } from '../runs/webhook.ts';
12
- import type { detectEnvironment } from '../core/backend-detect.ts';
12
+ import { type detectEnvironment } from '../core/backend-detect.ts';
13
13
  import { ProviderAuthService } from '../core/provider-auth.ts';
14
14
  import { RunnerModelCatalog } from '../core/runner-model-catalog.ts';
15
15
  import { type RunStore } from '../runs/store.ts';
@@ -182,46 +182,65 @@ export declare class WorkspaceEventBus {
182
182
  on(listener: (event: WorkspaceEventName, data: unknown) => void): () => void;
183
183
  }
184
184
  export declare function createApp(deps: ServerDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
185
- "/runners": {
185
+ "/models": {
186
186
  $get: {
187
187
  output: {
188
- runners: {
188
+ error: string;
189
+ code?: "invalid_input" | undefined;
190
+ };
191
+ outputFormat: "json";
192
+ status: 400;
193
+ input: {
194
+ query: {
195
+ runner: string | string[];
196
+ profileId?: string | undefined;
197
+ };
198
+ };
199
+ } | {
200
+ output: {
201
+ runner: string;
202
+ models: {
189
203
  id: string;
190
- displayName: string;
191
- modelListName: string;
192
- modelIdScope: "own" | "provider-spanning";
193
- pickerLabel: string;
194
- pickerDescription: string;
195
- icon: string;
196
- installHint: string;
197
- loginCommand: string;
198
- terminalLogin?: boolean | undefined;
199
- browserLogin?: boolean | undefined;
200
- accountFolderExample?: string | undefined;
201
- models: {
202
- suggested: {
203
- id: string;
204
- label: string;
205
- desc: string;
206
- }[];
207
- retired: string[];
208
- };
209
- agentConfig: {
210
- label: string;
211
- note?: string | undefined;
212
- groups: {
213
- id: "mcp" | "memory" | "settings";
214
- label: string;
215
- note?: string | undefined;
216
- empty?: string | undefined;
217
- showsUserMcp?: true | undefined;
218
- }[];
219
- };
204
+ label: string;
205
+ description: string;
206
+ effortLevels?: import('../contract/index.js').EffortLevel[];
220
207
  }[];
208
+ source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
209
+ stale: boolean;
210
+ reason?: string;
221
211
  };
222
212
  outputFormat: "json";
223
213
  status: import("hono/utils/http-status").ContentfulStatusCode;
224
- input: {};
214
+ input: {
215
+ query: {
216
+ runner: string | string[];
217
+ profileId?: string | undefined;
218
+ };
219
+ };
220
+ } | {
221
+ output: {
222
+ error: string;
223
+ };
224
+ outputFormat: "json";
225
+ status: 409;
226
+ input: {
227
+ query: {
228
+ runner: string | string[];
229
+ profileId?: string | undefined;
230
+ };
231
+ };
232
+ } | {
233
+ output: {
234
+ error: string;
235
+ };
236
+ outputFormat: "json";
237
+ status: 400;
238
+ input: {
239
+ query: {
240
+ runner: string | string[];
241
+ profileId?: string | undefined;
242
+ };
243
+ };
225
244
  };
226
245
  };
227
246
  }, "/"> | import("hono/types").MergeSchemaPath<{
@@ -377,65 +396,46 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
377
396
  };
378
397
  };
379
398
  }, "/"> | import("hono/types").MergeSchemaPath<{
380
- "/models": {
399
+ "/runners": {
381
400
  $get: {
382
401
  output: {
383
- error: string;
384
- code?: "invalid_input" | undefined;
385
- };
386
- outputFormat: "json";
387
- status: 400;
388
- input: {
389
- query: {
390
- runner: string | string[];
391
- profileId?: string | undefined;
392
- };
393
- };
394
- } | {
395
- output: {
396
- runner: string;
397
- models: {
402
+ runners: {
398
403
  id: string;
399
- label: string;
400
- description: string;
401
- effortLevels?: import('../contract/index.js').EffortLevel[];
404
+ displayName: string;
405
+ modelListName: string;
406
+ modelIdScope: "own" | "provider-spanning";
407
+ pickerLabel: string;
408
+ pickerDescription: string;
409
+ icon: string;
410
+ installHint: string;
411
+ loginCommand: string;
412
+ terminalLogin?: boolean | undefined;
413
+ browserLogin?: boolean | undefined;
414
+ accountFolderExample?: string | undefined;
415
+ models: {
416
+ suggested: {
417
+ id: string;
418
+ label: string;
419
+ desc: string;
420
+ }[];
421
+ retired: string[];
422
+ };
423
+ agentConfig: {
424
+ label: string;
425
+ note?: string | undefined;
426
+ groups: {
427
+ id: "mcp" | "memory" | "settings";
428
+ label: string;
429
+ note?: string | undefined;
430
+ empty?: string | undefined;
431
+ showsUserMcp?: true | undefined;
432
+ }[];
433
+ };
402
434
  }[];
403
- source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
404
- stale: boolean;
405
- reason?: string;
406
435
  };
407
436
  outputFormat: "json";
408
437
  status: import("hono/utils/http-status").ContentfulStatusCode;
409
- input: {
410
- query: {
411
- runner: string | string[];
412
- profileId?: string | undefined;
413
- };
414
- };
415
- } | {
416
- output: {
417
- error: string;
418
- };
419
- outputFormat: "json";
420
- status: 409;
421
- input: {
422
- query: {
423
- runner: string | string[];
424
- profileId?: string | undefined;
425
- };
426
- };
427
- } | {
428
- output: {
429
- error: string;
430
- };
431
- outputFormat: "json";
432
- status: 400;
433
- input: {
434
- query: {
435
- runner: string | string[];
436
- profileId?: string | undefined;
437
- };
438
- };
438
+ input: {};
439
439
  };
440
440
  };
441
441
  }, "/"> | import("hono/types").MergeSchemaPath<{
@@ -2978,12 +2978,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2978
2978
  output: {
2979
2979
  generation: string;
2980
2980
  results: ({
2981
- projectId: string;
2982
- runId: string;
2983
- type: "error" | "reset";
2984
- status: 400 | 404 | 409 | 413 | 503;
2985
- error: string;
2986
- } | {
2987
2981
  projectId: string;
2988
2982
  runId: string;
2989
2983
  type: "batch";
@@ -2997,6 +2991,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2997
2991
  cursor: string;
2998
2992
  afterSeq: number;
2999
2993
  hasMore: boolean;
2994
+ } | {
2995
+ projectId: string;
2996
+ runId: string;
2997
+ type: "error" | "reset";
2998
+ status: 400 | 404 | 409 | 413 | 503;
2999
+ error: string;
3000
3000
  })[];
3001
3001
  };
3002
3002
  outputFormat: "json";
@@ -3307,94 +3307,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3307
3307
  };
3308
3308
  };
3309
3309
  };
3310
- }, "/"> | import("hono/types").MergeSchemaPath<{
3311
- "/reports/state": {
3312
- $get: {
3313
- output: {
3314
- error: string;
3315
- };
3316
- outputFormat: "json";
3317
- status: 409;
3318
- input: {};
3319
- } | {
3320
- output: {
3321
- epoch: string;
3322
- generation: number;
3323
- metadataGeneration: number;
3324
- };
3325
- outputFormat: "json";
3326
- status: import("hono/utils/http-status").ContentfulStatusCode;
3327
- input: {};
3328
- };
3329
- };
3330
- } & {
3331
- "/reports": {
3332
- $get: {
3333
- output: {
3334
- error: string;
3335
- code?: "invalid_input" | undefined;
3336
- };
3337
- outputFormat: "json";
3338
- status: 400;
3339
- input: {
3340
- query: {
3341
- q?: string | undefined;
3342
- before?: string | undefined;
3343
- limit?: number | undefined;
3344
- };
3345
- };
3346
- } | {
3347
- output: {
3348
- error: string;
3349
- };
3350
- outputFormat: "json";
3351
- status: 409;
3352
- input: {
3353
- query: {
3354
- q?: string | undefined;
3355
- before?: string | undefined;
3356
- limit?: number | undefined;
3357
- };
3358
- };
3359
- } | {
3360
- output: {
3361
- error: string;
3362
- };
3363
- outputFormat: "json";
3364
- status: 400;
3365
- input: {
3366
- query: {
3367
- q?: string | undefined;
3368
- before?: string | undefined;
3369
- limit?: number | undefined;
3370
- };
3371
- };
3372
- } | {
3373
- output: {
3374
- reports: {
3375
- id: string;
3376
- runId: string;
3377
- name: string;
3378
- title: string;
3379
- createdAt: string;
3380
- size: number;
3381
- taskTitle: string;
3382
- taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
3383
- }[];
3384
- nextCursor: string | null;
3385
- total: number;
3386
- };
3387
- outputFormat: "json";
3388
- status: import("hono/utils/http-status").ContentfulStatusCode;
3389
- input: {
3390
- query: {
3391
- q?: string | undefined;
3392
- before?: string | undefined;
3393
- limit?: number | undefined;
3394
- };
3395
- };
3396
- };
3397
- };
3398
3310
  }, "/"> | import("hono/types").MergeSchemaPath<{
3399
3311
  "/ui-state": {
3400
3312
  $get: {
@@ -3883,6 +3795,94 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3883
3795
  };
3884
3796
  };
3885
3797
  };
3798
+ }, "/"> | import("hono/types").MergeSchemaPath<{
3799
+ "/reports/state": {
3800
+ $get: {
3801
+ output: {
3802
+ error: string;
3803
+ };
3804
+ outputFormat: "json";
3805
+ status: 409;
3806
+ input: {};
3807
+ } | {
3808
+ output: {
3809
+ epoch: string;
3810
+ generation: number;
3811
+ metadataGeneration: number;
3812
+ };
3813
+ outputFormat: "json";
3814
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3815
+ input: {};
3816
+ };
3817
+ };
3818
+ } & {
3819
+ "/reports": {
3820
+ $get: {
3821
+ output: {
3822
+ error: string;
3823
+ code?: "invalid_input" | undefined;
3824
+ };
3825
+ outputFormat: "json";
3826
+ status: 400;
3827
+ input: {
3828
+ query: {
3829
+ q?: string | undefined;
3830
+ before?: string | undefined;
3831
+ limit?: number | undefined;
3832
+ };
3833
+ };
3834
+ } | {
3835
+ output: {
3836
+ error: string;
3837
+ };
3838
+ outputFormat: "json";
3839
+ status: 409;
3840
+ input: {
3841
+ query: {
3842
+ q?: string | undefined;
3843
+ before?: string | undefined;
3844
+ limit?: number | undefined;
3845
+ };
3846
+ };
3847
+ } | {
3848
+ output: {
3849
+ error: string;
3850
+ };
3851
+ outputFormat: "json";
3852
+ status: 400;
3853
+ input: {
3854
+ query: {
3855
+ q?: string | undefined;
3856
+ before?: string | undefined;
3857
+ limit?: number | undefined;
3858
+ };
3859
+ };
3860
+ } | {
3861
+ output: {
3862
+ reports: {
3863
+ id: string;
3864
+ runId: string;
3865
+ name: string;
3866
+ title: string;
3867
+ createdAt: string;
3868
+ size: number;
3869
+ taskTitle: string;
3870
+ taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
3871
+ }[];
3872
+ nextCursor: string | null;
3873
+ total: number;
3874
+ };
3875
+ outputFormat: "json";
3876
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3877
+ input: {
3878
+ query: {
3879
+ q?: string | undefined;
3880
+ before?: string | undefined;
3881
+ limit?: number | undefined;
3882
+ };
3883
+ };
3884
+ };
3885
+ };
3886
3886
  }, "/"> | import("hono/types").MergeSchemaPath<{
3887
3887
  "/worktrees": {
3888
3888
  $get: {
@@ -8378,24 +8378,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8378
8378
  };
8379
8379
  } | {
8380
8380
  output: {
8381
- workerId: string;
8382
- state: "complete" | "incomplete";
8383
- work?: {
8384
- uncommittedFiles: number;
8385
- commits: number;
8381
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
8382
+ readonly error: string;
8383
+ readonly modelChoices?: {
8384
+ runner: string;
8385
+ requestedModel: string;
8386
+ availableModels: {
8387
+ id: string;
8388
+ label: string;
8389
+ description: string;
8390
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
8391
+ }[];
8392
+ otherRunners: string[];
8386
8393
  } | undefined;
8387
- deleted?: ({
8388
- kind: "worktree";
8389
- path: string;
8390
- } | {
8391
- kind: "branch";
8392
- ref: string;
8393
- })[] | undefined;
8394
- remaining: ("branch" | "process" | "worktree")[];
8395
- error?: string | undefined;
8396
8394
  };
8397
8395
  outputFormat: "json";
8398
- status: 200;
8396
+ status: 400 | 401 | 403 | 409 | 503;
8399
8397
  input: {
8400
8398
  query: {
8401
8399
  [x: string]: string | string[];
@@ -8428,7 +8426,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8428
8426
  error?: string | undefined;
8429
8427
  };
8430
8428
  outputFormat: "json";
8431
- status: 409;
8429
+ status: 200;
8432
8430
  input: {
8433
8431
  query: {
8434
8432
  [x: string]: string | string[];
@@ -8438,28 +8436,30 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8438
8436
  id: string;
8439
8437
  };
8440
8438
  } & {
8441
- json: {
8442
- discardWork?: true | undefined;
8443
- };
8444
- };
8445
- } | {
8446
- output: {
8447
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
8448
- readonly error: string;
8449
- readonly modelChoices?: {
8450
- runner: string;
8451
- requestedModel: string;
8452
- availableModels: {
8453
- id: string;
8454
- label: string;
8455
- description: string;
8456
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
8457
- }[];
8458
- otherRunners: string[];
8439
+ json: {
8440
+ discardWork?: true | undefined;
8441
+ };
8442
+ };
8443
+ } | {
8444
+ output: {
8445
+ workerId: string;
8446
+ state: "complete" | "incomplete";
8447
+ work?: {
8448
+ uncommittedFiles: number;
8449
+ commits: number;
8459
8450
  } | undefined;
8451
+ deleted?: ({
8452
+ kind: "worktree";
8453
+ path: string;
8454
+ } | {
8455
+ kind: "branch";
8456
+ ref: string;
8457
+ })[] | undefined;
8458
+ remaining: ("branch" | "process" | "worktree")[];
8459
+ error?: string | undefined;
8460
8460
  };
8461
8461
  outputFormat: "json";
8462
- status: 400 | 401 | 403 | 409 | 503;
8462
+ status: 409;
8463
8463
  input: {
8464
8464
  query: {
8465
8465
  [x: string]: string | string[];
@@ -19266,94 +19266,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19266
19266
  };
19267
19267
  };
19268
19268
  };
19269
- }, "/"> | import("hono/types").MergeSchemaPath<{
19270
- "/reports/state": {
19271
- $get: {
19272
- output: {
19273
- error: string;
19274
- };
19275
- outputFormat: "json";
19276
- status: 409;
19277
- input: {};
19278
- } | {
19279
- output: {
19280
- epoch: string;
19281
- generation: number;
19282
- metadataGeneration: number;
19283
- };
19284
- outputFormat: "json";
19285
- status: import("hono/utils/http-status").ContentfulStatusCode;
19286
- input: {};
19287
- };
19288
- };
19289
- } & {
19290
- "/reports": {
19291
- $get: {
19292
- output: {
19293
- error: string;
19294
- code?: "invalid_input" | undefined;
19295
- };
19296
- outputFormat: "json";
19297
- status: 400;
19298
- input: {
19299
- query: {
19300
- q?: string | undefined;
19301
- before?: string | undefined;
19302
- limit?: number | undefined;
19303
- };
19304
- };
19305
- } | {
19306
- output: {
19307
- error: string;
19308
- };
19309
- outputFormat: "json";
19310
- status: 409;
19311
- input: {
19312
- query: {
19313
- q?: string | undefined;
19314
- before?: string | undefined;
19315
- limit?: number | undefined;
19316
- };
19317
- };
19318
- } | {
19319
- output: {
19320
- error: string;
19321
- };
19322
- outputFormat: "json";
19323
- status: 400;
19324
- input: {
19325
- query: {
19326
- q?: string | undefined;
19327
- before?: string | undefined;
19328
- limit?: number | undefined;
19329
- };
19330
- };
19331
- } | {
19332
- output: {
19333
- reports: {
19334
- id: string;
19335
- runId: string;
19336
- name: string;
19337
- title: string;
19338
- createdAt: string;
19339
- size: number;
19340
- taskTitle: string;
19341
- taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
19342
- }[];
19343
- nextCursor: string | null;
19344
- total: number;
19345
- };
19346
- outputFormat: "json";
19347
- status: import("hono/utils/http-status").ContentfulStatusCode;
19348
- input: {
19349
- query: {
19350
- q?: string | undefined;
19351
- before?: string | undefined;
19352
- limit?: number | undefined;
19353
- };
19354
- };
19355
- };
19356
- };
19357
19269
  }, "/"> | import("hono/types").MergeSchemaPath<{
19358
19270
  "/ui-state": {
19359
19271
  $get: {
@@ -19842,6 +19754,94 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19842
19754
  };
19843
19755
  };
19844
19756
  };
19757
+ }, "/"> | import("hono/types").MergeSchemaPath<{
19758
+ "/reports/state": {
19759
+ $get: {
19760
+ output: {
19761
+ error: string;
19762
+ };
19763
+ outputFormat: "json";
19764
+ status: 409;
19765
+ input: {};
19766
+ } | {
19767
+ output: {
19768
+ epoch: string;
19769
+ generation: number;
19770
+ metadataGeneration: number;
19771
+ };
19772
+ outputFormat: "json";
19773
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19774
+ input: {};
19775
+ };
19776
+ };
19777
+ } & {
19778
+ "/reports": {
19779
+ $get: {
19780
+ output: {
19781
+ error: string;
19782
+ code?: "invalid_input" | undefined;
19783
+ };
19784
+ outputFormat: "json";
19785
+ status: 400;
19786
+ input: {
19787
+ query: {
19788
+ q?: string | undefined;
19789
+ before?: string | undefined;
19790
+ limit?: number | undefined;
19791
+ };
19792
+ };
19793
+ } | {
19794
+ output: {
19795
+ error: string;
19796
+ };
19797
+ outputFormat: "json";
19798
+ status: 409;
19799
+ input: {
19800
+ query: {
19801
+ q?: string | undefined;
19802
+ before?: string | undefined;
19803
+ limit?: number | undefined;
19804
+ };
19805
+ };
19806
+ } | {
19807
+ output: {
19808
+ error: string;
19809
+ };
19810
+ outputFormat: "json";
19811
+ status: 400;
19812
+ input: {
19813
+ query: {
19814
+ q?: string | undefined;
19815
+ before?: string | undefined;
19816
+ limit?: number | undefined;
19817
+ };
19818
+ };
19819
+ } | {
19820
+ output: {
19821
+ reports: {
19822
+ id: string;
19823
+ runId: string;
19824
+ name: string;
19825
+ title: string;
19826
+ createdAt: string;
19827
+ size: number;
19828
+ taskTitle: string;
19829
+ taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
19830
+ }[];
19831
+ nextCursor: string | null;
19832
+ total: number;
19833
+ };
19834
+ outputFormat: "json";
19835
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19836
+ input: {
19837
+ query: {
19838
+ q?: string | undefined;
19839
+ before?: string | undefined;
19840
+ limit?: number | undefined;
19841
+ };
19842
+ };
19843
+ };
19844
+ };
19845
19845
  }, "/"> | import("hono/types").MergeSchemaPath<{
19846
19846
  "/worktrees": {
19847
19847
  $get: {
@@ -24337,24 +24337,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24337
24337
  };
24338
24338
  } | {
24339
24339
  output: {
24340
- workerId: string;
24341
- state: "complete" | "incomplete";
24342
- work?: {
24343
- uncommittedFiles: number;
24344
- commits: number;
24340
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
24341
+ readonly error: string;
24342
+ readonly modelChoices?: {
24343
+ runner: string;
24344
+ requestedModel: string;
24345
+ availableModels: {
24346
+ id: string;
24347
+ label: string;
24348
+ description: string;
24349
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
24350
+ }[];
24351
+ otherRunners: string[];
24345
24352
  } | undefined;
24346
- deleted?: ({
24347
- kind: "worktree";
24348
- path: string;
24349
- } | {
24350
- kind: "branch";
24351
- ref: string;
24352
- })[] | undefined;
24353
- remaining: ("branch" | "process" | "worktree")[];
24354
- error?: string | undefined;
24355
24353
  };
24356
24354
  outputFormat: "json";
24357
- status: 200;
24355
+ status: 400 | 401 | 403 | 409 | 503;
24358
24356
  input: {
24359
24357
  query: {
24360
24358
  [x: string]: string | string[];
@@ -24387,7 +24385,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24387
24385
  error?: string | undefined;
24388
24386
  };
24389
24387
  outputFormat: "json";
24390
- status: 409;
24388
+ status: 200;
24391
24389
  input: {
24392
24390
  query: {
24393
24391
  [x: string]: string | string[];
@@ -24403,22 +24401,24 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24403
24401
  };
24404
24402
  } | {
24405
24403
  output: {
24406
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
24407
- readonly error: string;
24408
- readonly modelChoices?: {
24409
- runner: string;
24410
- requestedModel: string;
24411
- availableModels: {
24412
- id: string;
24413
- label: string;
24414
- description: string;
24415
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
24416
- }[];
24417
- otherRunners: string[];
24404
+ workerId: string;
24405
+ state: "complete" | "incomplete";
24406
+ work?: {
24407
+ uncommittedFiles: number;
24408
+ commits: number;
24418
24409
  } | undefined;
24410
+ deleted?: ({
24411
+ kind: "worktree";
24412
+ path: string;
24413
+ } | {
24414
+ kind: "branch";
24415
+ ref: string;
24416
+ })[] | undefined;
24417
+ remaining: ("branch" | "process" | "worktree")[];
24418
+ error?: string | undefined;
24419
24419
  };
24420
24420
  outputFormat: "json";
24421
- status: 400 | 401 | 403 | 409 | 503;
24421
+ status: 409;
24422
24422
  input: {
24423
24423
  query: {
24424
24424
  [x: string]: string | string[];