@vitest-agent/mcp 2.0.6 → 2.0.7

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.
Files changed (3) hide show
  1. package/index.d.ts +951 -949
  2. package/index.js +1 -1
  3. package/package.json +5 -5
package/index.d.ts CHANGED
@@ -137,9 +137,9 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
137
137
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
138
138
  help: import("@trpc/server").TRPCQueryProcedure<{
139
139
  input: void;
140
- output: import("effect/Schema").Struct.ReadonlySide<{
141
- readonly helpText: import("effect/Schema").String;
142
- }, "Type">;
140
+ output: {
141
+ readonly helpText: string;
142
+ };
143
143
  meta: object;
144
144
  }>;
145
145
  test_status: import("@trpc/server").TRPCQueryProcedure<{
@@ -171,15 +171,15 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
171
171
  output: {
172
172
  readonly dataAvailable: true;
173
173
  readonly projectFilter?: string | undefined;
174
- readonly runs: readonly import("effect/Schema").Struct.ReadonlySide<{
175
- readonly project: import("effect/Schema").String;
176
- readonly lastRun: import("effect/Schema").NullOr<import("effect/Schema").String>;
177
- readonly lastResult: import("effect/Schema").NullOr<import("effect/Schema").Literals<readonly ["passed", "failed", "interrupted"]>>;
178
- readonly total: import("effect/Schema").Number;
179
- readonly passed: import("effect/Schema").Number;
180
- readonly failed: import("effect/Schema").Number;
181
- readonly skipped: import("effect/Schema").Number;
182
- }, "Type">[];
174
+ readonly runs: readonly {
175
+ readonly project: string;
176
+ readonly lastRun: string | null;
177
+ readonly lastResult: "failed" | "interrupted" | "passed" | null;
178
+ readonly total: number;
179
+ readonly passed: number;
180
+ readonly failed: number;
181
+ readonly skipped: number;
182
+ }[];
183
183
  } | {
184
184
  readonly dataAvailable: false;
185
185
  readonly projectFilter?: string | undefined;
@@ -191,132 +191,132 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
191
191
  input: {
192
192
  readonly project?: string | undefined;
193
193
  };
194
- output: import("effect/Schema").Struct.ReadonlySide<{
195
- readonly dataAvailable: import("effect/Schema").Literal<true>;
196
- readonly project: import("effect/Schema").String;
197
- readonly coverage: import("effect/Schema").Struct<{
198
- readonly totals: import("effect/Schema").Struct<{
199
- readonly statements: import("effect/Schema").Number;
200
- readonly branches: import("effect/Schema").Number;
201
- readonly functions: import("effect/Schema").Number;
202
- readonly lines: import("effect/Schema").Number;
203
- }>;
204
- readonly thresholds: import("effect/Schema").Struct<{
205
- readonly global: import("effect/Schema").Struct<{
206
- readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
207
- readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
208
- readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
209
- readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
210
- }>;
211
- readonly patterns: import("effect/Schema").withDecodingDefaultKey<import("effect/Schema").$Array<import("effect/Schema").Tuple<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
212
- readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
213
- readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
214
- readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
215
- readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
216
- }>]>>, never>;
217
- }>;
218
- readonly targets: import("effect/Schema").optional<import("effect/Schema").Struct<{
219
- readonly global: import("effect/Schema").Struct<{
220
- readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
221
- readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
222
- readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
223
- readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
224
- }>;
225
- readonly patterns: import("effect/Schema").withDecodingDefaultKey<import("effect/Schema").$Array<import("effect/Schema").Tuple<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
226
- readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
227
- readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
228
- readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
229
- readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
230
- }>]>>, never>;
231
- }>>;
232
- readonly baselines: import("effect/Schema").optional<import("effect/Schema").Struct<{
233
- readonly global: import("effect/Schema").Struct<{
234
- readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
235
- readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
236
- readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
237
- readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
238
- }>;
239
- readonly patterns: import("effect/Schema").withDecodingDefaultKey<import("effect/Schema").$Array<import("effect/Schema").Tuple<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
240
- readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
241
- readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
242
- readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
243
- readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
244
- }>]>>, never>;
245
- }>>;
246
- readonly scoped: import("effect/Schema").withDecodingDefaultKey<import("effect/Schema").Boolean, never>;
247
- readonly scopedFiles: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
248
- readonly lowCoverage: import("effect/Schema").$Array<import("effect/Schema").Struct<{
249
- readonly file: import("effect/Schema").String;
250
- readonly summary: import("effect/Schema").Struct<{
251
- readonly statements: import("effect/Schema").Number;
252
- readonly branches: import("effect/Schema").Number;
253
- readonly functions: import("effect/Schema").Number;
254
- readonly lines: import("effect/Schema").Number;
255
- }>;
256
- readonly uncoveredLines: import("effect/Schema").String;
257
- }>>;
258
- readonly lowCoverageFiles: import("effect/Schema").$Array<import("effect/Schema").String>;
259
- readonly belowTarget: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
260
- readonly file: import("effect/Schema").String;
261
- readonly summary: import("effect/Schema").Struct<{
262
- readonly statements: import("effect/Schema").Number;
263
- readonly branches: import("effect/Schema").Number;
264
- readonly functions: import("effect/Schema").Number;
265
- readonly lines: import("effect/Schema").Number;
266
- }>;
267
- readonly uncoveredLines: import("effect/Schema").String;
268
- }>>>;
269
- readonly belowTargetFiles: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
270
- }>;
271
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
272
- readonly dataAvailable: import("effect/Schema").Literal<false>;
273
- readonly project: import("effect/Schema").String;
274
- }, "Type">;
194
+ output: {
195
+ readonly dataAvailable: true;
196
+ readonly project: string;
197
+ readonly coverage: {
198
+ readonly totals: {
199
+ readonly statements: number;
200
+ readonly branches: number;
201
+ readonly functions: number;
202
+ readonly lines: number;
203
+ };
204
+ readonly thresholds: {
205
+ readonly global: {
206
+ readonly lines?: number | undefined;
207
+ readonly functions?: number | undefined;
208
+ readonly branches?: number | undefined;
209
+ readonly statements?: number | undefined;
210
+ };
211
+ readonly patterns: readonly (readonly [string, {
212
+ readonly lines?: number | undefined;
213
+ readonly functions?: number | undefined;
214
+ readonly branches?: number | undefined;
215
+ readonly statements?: number | undefined;
216
+ }])[];
217
+ };
218
+ readonly targets?: {
219
+ readonly global: {
220
+ readonly lines?: number | undefined;
221
+ readonly functions?: number | undefined;
222
+ readonly branches?: number | undefined;
223
+ readonly statements?: number | undefined;
224
+ };
225
+ readonly patterns: readonly (readonly [string, {
226
+ readonly lines?: number | undefined;
227
+ readonly functions?: number | undefined;
228
+ readonly branches?: number | undefined;
229
+ readonly statements?: number | undefined;
230
+ }])[];
231
+ } | undefined;
232
+ readonly baselines?: {
233
+ readonly global: {
234
+ readonly lines?: number | undefined;
235
+ readonly functions?: number | undefined;
236
+ readonly branches?: number | undefined;
237
+ readonly statements?: number | undefined;
238
+ };
239
+ readonly patterns: readonly (readonly [string, {
240
+ readonly lines?: number | undefined;
241
+ readonly functions?: number | undefined;
242
+ readonly branches?: number | undefined;
243
+ readonly statements?: number | undefined;
244
+ }])[];
245
+ } | undefined;
246
+ readonly scoped: boolean;
247
+ readonly scopedFiles?: readonly string[] | undefined;
248
+ readonly lowCoverage: readonly {
249
+ readonly file: string;
250
+ readonly summary: {
251
+ readonly statements: number;
252
+ readonly branches: number;
253
+ readonly functions: number;
254
+ readonly lines: number;
255
+ };
256
+ readonly uncoveredLines: string;
257
+ }[];
258
+ readonly lowCoverageFiles: readonly string[];
259
+ readonly belowTarget?: readonly {
260
+ readonly file: string;
261
+ readonly summary: {
262
+ readonly statements: number;
263
+ readonly branches: number;
264
+ readonly functions: number;
265
+ readonly lines: number;
266
+ };
267
+ readonly uncoveredLines: string;
268
+ }[] | undefined;
269
+ readonly belowTargetFiles?: readonly string[] | undefined;
270
+ };
271
+ } | {
272
+ readonly dataAvailable: false;
273
+ readonly project: string;
274
+ };
275
275
  meta: object;
276
276
  }>;
277
277
  test_history: import("@trpc/server").TRPCQueryProcedure<{
278
- input: import("effect/Schema").Struct.ReadonlySide<{
279
- readonly project: import("effect/Schema").String;
280
- }, "Encoded">;
281
- output: import("effect/Schema").Struct.ReadonlySide<{
282
- readonly project: import("effect/Schema").String;
283
- readonly hasData: import("effect/Schema").Boolean;
284
- readonly history: import("effect/Schema").Struct<{
285
- readonly project: import("effect/Schema").String;
286
- readonly updatedAt: import("effect/Schema").String;
287
- readonly tests: import("effect/Schema").$Array<import("effect/Schema").Struct<{
288
- readonly modulePath: import("effect/Schema").String;
289
- readonly fullName: import("effect/Schema").String;
290
- readonly runs: import("effect/Schema").$Array<import("effect/Schema").Struct<{
291
- readonly timestamp: import("effect/Schema").String;
292
- readonly state: import("effect/Schema").Literals<readonly ["passed", "failed"]>;
293
- }>>;
294
- }>>;
295
- }>;
296
- readonly flaky: import("effect/Schema").$Array<import("effect/Schema").Struct<{
297
- readonly fullName: import("effect/Schema").String;
298
- readonly modulePath: import("effect/Schema").String;
299
- readonly project: import("effect/Schema").String;
300
- readonly passCount: import("effect/Schema").Number;
301
- readonly failCount: import("effect/Schema").Number;
302
- readonly lastState: import("effect/Schema").Literals<readonly ["passed", "failed"]>;
303
- readonly lastTimestamp: import("effect/Schema").String;
304
- }>>;
305
- readonly persistent: import("effect/Schema").$Array<import("effect/Schema").Struct<{
306
- readonly fullName: import("effect/Schema").String;
307
- readonly modulePath: import("effect/Schema").String;
308
- readonly project: import("effect/Schema").String;
309
- readonly consecutiveFailures: import("effect/Schema").Number;
310
- readonly firstFailedAt: import("effect/Schema").String;
311
- readonly lastFailedAt: import("effect/Schema").String;
312
- readonly lastErrorMessage: import("effect/Schema").NullOr<import("effect/Schema").String>;
313
- }>>;
314
- readonly recovered: import("effect/Schema").$Array<import("effect/Schema").Struct<{
315
- readonly modulePath: import("effect/Schema").String;
316
- readonly fullName: import("effect/Schema").String;
317
- readonly recentRuns: import("effect/Schema").$Array<import("effect/Schema").Literals<readonly ["passed", "failed"]>>;
318
- }>>;
319
- }, "Type">;
278
+ input: {
279
+ readonly project: string;
280
+ };
281
+ output: {
282
+ readonly project: string;
283
+ readonly hasData: boolean;
284
+ readonly history: {
285
+ readonly project: string;
286
+ readonly updatedAt: string;
287
+ readonly tests: readonly {
288
+ readonly modulePath: string;
289
+ readonly fullName: string;
290
+ readonly runs: readonly {
291
+ readonly timestamp: string;
292
+ readonly state: "failed" | "passed";
293
+ }[];
294
+ }[];
295
+ };
296
+ readonly flaky: readonly {
297
+ readonly fullName: string;
298
+ readonly modulePath: string;
299
+ readonly project: string;
300
+ readonly passCount: number;
301
+ readonly failCount: number;
302
+ readonly lastState: "failed" | "passed";
303
+ readonly lastTimestamp: string;
304
+ }[];
305
+ readonly persistent: readonly {
306
+ readonly fullName: string;
307
+ readonly modulePath: string;
308
+ readonly project: string;
309
+ readonly consecutiveFailures: number;
310
+ readonly firstFailedAt: string;
311
+ readonly lastFailedAt: string;
312
+ readonly lastErrorMessage: string | null;
313
+ }[];
314
+ readonly recovered: readonly {
315
+ readonly modulePath: string;
316
+ readonly fullName: string;
317
+ readonly recentRuns: readonly ("failed" | "passed")[];
318
+ }[];
319
+ };
320
320
  meta: object;
321
321
  }>;
322
322
  test_trends: import("@trpc/server").TRPCQueryProcedure<{
@@ -324,32 +324,32 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
324
324
  readonly project: string;
325
325
  readonly limit?: number | undefined;
326
326
  };
327
- output: import("effect/Schema").Struct.ReadonlySide<{
328
- readonly dataAvailable: import("effect/Schema").Literal<true>;
329
- readonly project: import("effect/Schema").String;
330
- readonly trends: import("effect/Schema").Struct<{
331
- readonly entries: import("effect/Schema").$Array<import("effect/Schema").Struct<{
332
- readonly timestamp: import("effect/Schema").String;
333
- readonly coverage: import("effect/Schema").Struct<{
334
- readonly statements: import("effect/Schema").Number;
335
- readonly branches: import("effect/Schema").Number;
336
- readonly functions: import("effect/Schema").Number;
337
- readonly lines: import("effect/Schema").Number;
338
- }>;
339
- readonly delta: import("effect/Schema").Struct<{
340
- readonly statements: import("effect/Schema").Number;
341
- readonly branches: import("effect/Schema").Number;
342
- readonly functions: import("effect/Schema").Number;
343
- readonly lines: import("effect/Schema").Number;
344
- }>;
345
- readonly direction: import("effect/Schema").Literals<readonly ["improving", "regressing", "stable"]>;
346
- readonly targetsHash: import("effect/Schema").optional<import("effect/Schema").String>;
347
- }>>;
348
- }>;
349
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
350
- readonly dataAvailable: import("effect/Schema").Literal<false>;
351
- readonly project: import("effect/Schema").String;
352
- }, "Type">;
327
+ output: {
328
+ readonly dataAvailable: true;
329
+ readonly project: string;
330
+ readonly trends: {
331
+ readonly entries: readonly {
332
+ readonly timestamp: string;
333
+ readonly coverage: {
334
+ readonly statements: number;
335
+ readonly branches: number;
336
+ readonly functions: number;
337
+ readonly lines: number;
338
+ };
339
+ readonly delta: {
340
+ readonly statements: number;
341
+ readonly branches: number;
342
+ readonly functions: number;
343
+ readonly lines: number;
344
+ };
345
+ readonly direction: "improving" | "regressing" | "stable";
346
+ readonly targetsHash?: string | undefined;
347
+ }[];
348
+ };
349
+ } | {
350
+ readonly dataAvailable: false;
351
+ readonly project: string;
352
+ };
353
353
  meta: object;
354
354
  }>;
355
355
  test_errors: import("@trpc/server").TRPCQueryProcedure<{
@@ -361,27 +361,24 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
361
361
  readonly project: string;
362
362
  readonly errorName?: string | undefined;
363
363
  readonly count: number;
364
- readonly errors: readonly import("effect/Schema").Struct.ReadonlySide<{
365
- readonly id: import("effect/Schema").Number;
366
- readonly topStackFrameId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
367
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
368
- readonly message: import("effect/Schema").String;
369
- readonly diff: import("effect/Schema").NullOr<import("effect/Schema").String>;
370
- readonly actual: import("effect/Schema").NullOr<import("effect/Schema").String>;
371
- readonly expected: import("effect/Schema").NullOr<import("effect/Schema").String>;
372
- readonly stack: import("effect/Schema").NullOr<import("effect/Schema").String>;
373
- readonly scope: import("effect/Schema").Literals<readonly ["test", "suite", "module", "unhandled"]>;
374
- readonly testFullName: import("effect/Schema").NullOr<import("effect/Schema").String>;
375
- readonly moduleFile: import("effect/Schema").NullOr<import("effect/Schema").String>;
376
- }, "Type">[];
364
+ readonly errors: readonly {
365
+ readonly id: number;
366
+ readonly topStackFrameId: number | null;
367
+ readonly name: string | null;
368
+ readonly message: string;
369
+ readonly diff: string | null;
370
+ readonly actual: string | null;
371
+ readonly expected: string | null;
372
+ readonly stack: string | null;
373
+ readonly scope: "module" | "suite" | "test" | "unhandled";
374
+ readonly testFullName: string | null;
375
+ readonly moduleFile: string | null;
376
+ }[];
377
377
  };
378
378
  meta: object;
379
379
  }>;
380
380
  test: import("@trpc/server").TRPCQueryProcedure<{
381
- input: import("effect/Schema").Struct.ReadonlySide<{
382
- readonly action: import("effect/Schema").Literal<"for_file">;
383
- readonly filePath: import("effect/Schema").String;
384
- }, "Encoded"> | {
381
+ input: {
385
382
  readonly action: "list";
386
383
  readonly project?: string | undefined;
387
384
  readonly state?: string | undefined;
@@ -391,73 +388,76 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
391
388
  readonly action: "get";
392
389
  readonly fullName: string;
393
390
  readonly project?: string | undefined;
391
+ } | {
392
+ readonly action: "for_file";
393
+ readonly filePath: string;
394
394
  } | {
395
395
  readonly action: "for_tag";
396
396
  readonly tag: string;
397
397
  readonly project?: string | undefined;
398
398
  };
399
- output: import("effect/Schema").Struct.ReadonlySide<{
400
- readonly action: import("effect/Schema").Literal<"list">;
401
- readonly count: import("effect/Schema").Number;
402
- readonly groups: import("effect/Schema").$Array<import("effect/Schema").Struct<{
403
- readonly project: import("effect/Schema").String;
404
- readonly tests: import("effect/Schema").$Array<import("effect/Schema").Struct<{
405
- readonly id: import("effect/Schema").Number;
406
- readonly fullName: import("effect/Schema").String;
407
- readonly state: import("effect/Schema").String;
408
- readonly duration: import("effect/Schema").NullOr<import("effect/Schema").Number>;
409
- readonly module: import("effect/Schema").String;
410
- readonly classification: import("effect/Schema").NullOr<import("effect/Schema").String>;
411
- }>>;
412
- }>>;
413
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
414
- readonly action: import("effect/Schema").Literal<"get">;
415
- readonly found: import("effect/Schema").Literal<true>;
416
- readonly project: import("effect/Schema").String;
417
- readonly test: import("effect/Schema").Struct<{
418
- readonly id: import("effect/Schema").Number;
419
- readonly fullName: import("effect/Schema").String;
420
- readonly state: import("effect/Schema").String;
421
- readonly duration: import("effect/Schema").NullOr<import("effect/Schema").Number>;
422
- readonly module: import("effect/Schema").String;
423
- readonly classification: import("effect/Schema").NullOr<import("effect/Schema").String>;
424
- }>;
425
- readonly errors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
426
- readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
427
- readonly message: import("effect/Schema").String;
428
- readonly diff: import("effect/Schema").NullOr<import("effect/Schema").String>;
429
- readonly stack: import("effect/Schema").NullOr<import("effect/Schema").String>;
430
- }>>;
431
- readonly runs: import("effect/Schema").$Array<import("effect/Schema").Struct<{
432
- readonly state: import("effect/Schema").Literals<readonly ["passed", "failed"]>;
433
- readonly timestamp: import("effect/Schema").String;
434
- }>>;
435
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
436
- readonly action: import("effect/Schema").Literal<"get">;
437
- readonly found: import("effect/Schema").Literal<false>;
438
- readonly project: import("effect/Schema").String;
439
- readonly fullName: import("effect/Schema").String;
440
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
441
- readonly action: import("effect/Schema").Literal<"for_file">;
442
- readonly filePath: import("effect/Schema").String;
443
- readonly count: import("effect/Schema").Number;
444
- readonly testFiles: import("effect/Schema").$Array<import("effect/Schema").String>;
445
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
446
- readonly action: import("effect/Schema").Literal<"for_tag">;
447
- readonly tag: import("effect/Schema").String;
448
- readonly count: import("effect/Schema").Number;
449
- readonly groups: import("effect/Schema").$Array<import("effect/Schema").Struct<{
450
- readonly project: import("effect/Schema").String;
451
- readonly tests: import("effect/Schema").$Array<import("effect/Schema").Struct<{
452
- readonly id: import("effect/Schema").Number;
453
- readonly fullName: import("effect/Schema").String;
454
- readonly state: import("effect/Schema").String;
455
- readonly duration: import("effect/Schema").NullOr<import("effect/Schema").Number>;
456
- readonly module: import("effect/Schema").String;
457
- readonly classification: import("effect/Schema").NullOr<import("effect/Schema").String>;
458
- }>>;
459
- }>>;
460
- }, "Type">;
399
+ output: {
400
+ readonly action: "list";
401
+ readonly count: number;
402
+ readonly groups: readonly {
403
+ readonly project: string;
404
+ readonly tests: readonly {
405
+ readonly id: number;
406
+ readonly fullName: string;
407
+ readonly state: string;
408
+ readonly duration: number | null;
409
+ readonly module: string;
410
+ readonly classification: string | null;
411
+ }[];
412
+ }[];
413
+ } | {
414
+ readonly action: "get";
415
+ readonly found: true;
416
+ readonly project: string;
417
+ readonly test: {
418
+ readonly id: number;
419
+ readonly fullName: string;
420
+ readonly state: string;
421
+ readonly duration: number | null;
422
+ readonly module: string;
423
+ readonly classification: string | null;
424
+ };
425
+ readonly errors: readonly {
426
+ readonly name: string | null;
427
+ readonly message: string;
428
+ readonly diff: string | null;
429
+ readonly stack: string | null;
430
+ }[];
431
+ readonly runs: readonly {
432
+ readonly state: "failed" | "passed";
433
+ readonly timestamp: string;
434
+ }[];
435
+ } | {
436
+ readonly action: "get";
437
+ readonly found: false;
438
+ readonly project: string;
439
+ readonly fullName: string;
440
+ } | {
441
+ readonly action: "for_file";
442
+ readonly filePath: string;
443
+ readonly count: number;
444
+ readonly testFiles: readonly string[];
445
+ } | {
446
+ readonly action: "for_tag";
447
+ readonly tag: string;
448
+ readonly count: number;
449
+ readonly groups: readonly {
450
+ readonly project: string;
451
+ readonly tests: readonly {
452
+ readonly id: number;
453
+ readonly fullName: string;
454
+ readonly state: string;
455
+ readonly duration: number | null;
456
+ readonly module: string;
457
+ readonly classification: string | null;
458
+ }[];
459
+ }[];
460
+ };
461
461
  meta: object;
462
462
  }>;
463
463
  file_coverage: import("@trpc/server").TRPCQueryProcedure<{
@@ -465,42 +465,42 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
465
465
  readonly filePath: string;
466
466
  readonly project?: string | undefined;
467
467
  };
468
- output: import("effect/Schema").Struct.ReadonlySide<{
469
- readonly dataAvailable: import("effect/Schema").Literal<true>;
470
- readonly matched: import("effect/Schema").Literal<true>;
471
- readonly filePath: import("effect/Schema").String;
472
- readonly report: import("effect/Schema").Struct<{
473
- readonly file: import("effect/Schema").String;
474
- readonly summary: import("effect/Schema").Struct<{
475
- readonly statements: import("effect/Schema").Number;
476
- readonly branches: import("effect/Schema").Number;
477
- readonly functions: import("effect/Schema").Number;
478
- readonly lines: import("effect/Schema").Number;
479
- }>;
480
- readonly uncoveredLines: import("effect/Schema").String;
481
- }>;
482
- readonly globalThresholds: import("effect/Schema").Struct<{
483
- readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
484
- readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
485
- readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
486
- readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
487
- }>;
488
- readonly relatedTestFiles: import("effect/Schema").$Array<import("effect/Schema").String>;
489
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
490
- readonly dataAvailable: import("effect/Schema").Literal<true>;
491
- readonly matched: import("effect/Schema").Literal<false>;
492
- readonly filePath: import("effect/Schema").String;
493
- readonly totals: import("effect/Schema").Struct<{
494
- readonly statements: import("effect/Schema").Number;
495
- readonly branches: import("effect/Schema").Number;
496
- readonly functions: import("effect/Schema").Number;
497
- readonly lines: import("effect/Schema").Number;
498
- }>;
499
- readonly relatedTestFiles: import("effect/Schema").$Array<import("effect/Schema").String>;
500
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
501
- readonly dataAvailable: import("effect/Schema").Literal<false>;
502
- readonly filePath: import("effect/Schema").String;
503
- }, "Type">;
468
+ output: {
469
+ readonly dataAvailable: true;
470
+ readonly matched: true;
471
+ readonly filePath: string;
472
+ readonly report: {
473
+ readonly file: string;
474
+ readonly summary: {
475
+ readonly statements: number;
476
+ readonly branches: number;
477
+ readonly functions: number;
478
+ readonly lines: number;
479
+ };
480
+ readonly uncoveredLines: string;
481
+ };
482
+ readonly globalThresholds: {
483
+ readonly statements?: number | undefined;
484
+ readonly branches?: number | undefined;
485
+ readonly functions?: number | undefined;
486
+ readonly lines?: number | undefined;
487
+ };
488
+ readonly relatedTestFiles: readonly string[];
489
+ } | {
490
+ readonly dataAvailable: true;
491
+ readonly matched: false;
492
+ readonly filePath: string;
493
+ readonly totals: {
494
+ readonly statements: number;
495
+ readonly branches: number;
496
+ readonly functions: number;
497
+ readonly lines: number;
498
+ };
499
+ readonly relatedTestFiles: readonly string[];
500
+ } | {
501
+ readonly dataAvailable: false;
502
+ readonly filePath: string;
503
+ };
504
504
  meta: object;
505
505
  }>;
506
506
  run_tests: import("@trpc/server").TRPCMutationProcedure<{
@@ -514,44 +514,26 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
514
514
  } | undefined;
515
515
  readonly passWithNoTests?: boolean | undefined;
516
516
  readonly timeout?: number | undefined;
517
- readonly _sessionContext?: import("effect/Schema").Struct.ReadonlySide<{
518
- readonly chatId: import("effect/Schema").String;
519
- readonly conversationId: import("effect/Schema").String;
520
- readonly mainAgentId: import("effect/Schema").String;
521
- }, "Encoded"> | undefined;
517
+ readonly _sessionContext?: {
518
+ readonly chatId: string;
519
+ readonly conversationId: string;
520
+ readonly mainAgentId: string;
521
+ } | undefined;
522
522
  };
523
- output: import("effect/Schema").Struct.ReadonlySide<{
524
- readonly kind: import("effect/Schema").Literal<"timeout">;
525
- readonly timeoutSeconds: import("effect/Schema").Number;
526
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
527
- readonly kind: import("effect/Schema").Literal<"error">;
528
- readonly message: import("effect/Schema").String;
529
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
530
- readonly kind: import("effect/Schema").Literal<"no-match">;
531
- readonly filter: import("effect/Schema").Struct<{
532
- readonly project: import("effect/Schema").NullOr<import("effect/Schema").String>;
533
- readonly files: import("effect/Schema").$Array<import("effect/Schema").String>;
534
- readonly tags: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
535
- readonly all: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
536
- readonly any: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
537
- readonly none: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").String>>;
538
- }>>;
539
- readonly resolvedExpression: import("effect/Schema").NullOr<import("effect/Schema").String>;
540
- }>;
541
- }, "Type"> | {
523
+ output: {
542
524
  readonly kind: "ok";
543
525
  readonly project?: string | undefined;
544
526
  readonly report: {
545
527
  readonly timestamp: string;
546
528
  readonly project?: string | undefined;
547
529
  readonly reason: "failed" | "interrupted" | "passed";
548
- readonly summary: import("effect/Schema").Struct.ReadonlySide<{
549
- readonly total: import("effect/Schema").Number;
550
- readonly passed: import("effect/Schema").Number;
551
- readonly failed: import("effect/Schema").Number;
552
- readonly skipped: import("effect/Schema").Number;
553
- readonly duration: import("effect/Schema").Number;
554
- }, "Type">;
530
+ readonly summary: {
531
+ readonly total: number;
532
+ readonly passed: number;
533
+ readonly failed: number;
534
+ readonly skipped: number;
535
+ readonly duration: number;
536
+ };
555
537
  readonly failed: readonly {
556
538
  readonly file: string;
557
539
  readonly state: "failed" | "passed" | "pending" | "skipped";
@@ -589,77 +571,77 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
589
571
  }[];
590
572
  readonly failedFiles: readonly string[];
591
573
  readonly coverage?: {
592
- readonly totals: import("effect/Schema").Struct.ReadonlySide<{
593
- readonly statements: import("effect/Schema").Number;
594
- readonly branches: import("effect/Schema").Number;
595
- readonly functions: import("effect/Schema").Number;
596
- readonly lines: import("effect/Schema").Number;
597
- }, "Type">;
598
- readonly thresholds: import("effect/Schema").Struct.ReadonlySide<{
599
- readonly global: import("effect/Schema").Struct<{
600
- readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
601
- readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
602
- readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
603
- readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
604
- }>;
605
- readonly patterns: import("effect/Schema").withDecodingDefaultKey<import("effect/Schema").$Array<import("effect/Schema").Tuple<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
606
- readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
607
- readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
608
- readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
609
- readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
610
- }>]>>, never>;
611
- }, "Type">;
612
- readonly targets?: import("effect/Schema").Struct.ReadonlySide<{
613
- readonly global: import("effect/Schema").Struct<{
614
- readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
615
- readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
616
- readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
617
- readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
618
- }>;
619
- readonly patterns: import("effect/Schema").withDecodingDefaultKey<import("effect/Schema").$Array<import("effect/Schema").Tuple<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
620
- readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
621
- readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
622
- readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
623
- readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
624
- }>]>>, never>;
625
- }, "Type"> | undefined;
626
- readonly baselines?: import("effect/Schema").Struct.ReadonlySide<{
627
- readonly global: import("effect/Schema").Struct<{
628
- readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
629
- readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
630
- readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
631
- readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
632
- }>;
633
- readonly patterns: import("effect/Schema").withDecodingDefaultKey<import("effect/Schema").$Array<import("effect/Schema").Tuple<readonly [import("effect/Schema").String, import("effect/Schema").Struct<{
634
- readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
635
- readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
636
- readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
637
- readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
638
- }>]>>, never>;
639
- }, "Type"> | undefined;
574
+ readonly totals: {
575
+ readonly statements: number;
576
+ readonly branches: number;
577
+ readonly functions: number;
578
+ readonly lines: number;
579
+ };
580
+ readonly thresholds: {
581
+ readonly global: {
582
+ readonly lines?: number | undefined;
583
+ readonly functions?: number | undefined;
584
+ readonly branches?: number | undefined;
585
+ readonly statements?: number | undefined;
586
+ };
587
+ readonly patterns: readonly (readonly [string, {
588
+ readonly lines?: number | undefined;
589
+ readonly functions?: number | undefined;
590
+ readonly branches?: number | undefined;
591
+ readonly statements?: number | undefined;
592
+ }])[];
593
+ };
594
+ readonly targets?: {
595
+ readonly global: {
596
+ readonly lines?: number | undefined;
597
+ readonly functions?: number | undefined;
598
+ readonly branches?: number | undefined;
599
+ readonly statements?: number | undefined;
600
+ };
601
+ readonly patterns: readonly (readonly [string, {
602
+ readonly lines?: number | undefined;
603
+ readonly functions?: number | undefined;
604
+ readonly branches?: number | undefined;
605
+ readonly statements?: number | undefined;
606
+ }])[];
607
+ } | undefined;
608
+ readonly baselines?: {
609
+ readonly global: {
610
+ readonly lines?: number | undefined;
611
+ readonly functions?: number | undefined;
612
+ readonly branches?: number | undefined;
613
+ readonly statements?: number | undefined;
614
+ };
615
+ readonly patterns: readonly (readonly [string, {
616
+ readonly lines?: number | undefined;
617
+ readonly functions?: number | undefined;
618
+ readonly branches?: number | undefined;
619
+ readonly statements?: number | undefined;
620
+ }])[];
621
+ } | undefined;
640
622
  readonly scoped: boolean;
641
623
  readonly scopedFiles?: readonly string[] | undefined;
642
- readonly lowCoverage: readonly import("effect/Schema").Struct.ReadonlySide<{
643
- readonly file: import("effect/Schema").String;
644
- readonly summary: import("effect/Schema").Struct<{
645
- readonly statements: import("effect/Schema").Number;
646
- readonly branches: import("effect/Schema").Number;
647
- readonly functions: import("effect/Schema").Number;
648
- readonly lines: import("effect/Schema").Number;
649
- }>;
650
- readonly uncoveredLines: import("effect/Schema").String;
651
- }, "Type">[];
624
+ readonly lowCoverage: readonly {
625
+ readonly file: string;
626
+ readonly summary: {
627
+ readonly statements: number;
628
+ readonly branches: number;
629
+ readonly functions: number;
630
+ readonly lines: number;
631
+ };
632
+ readonly uncoveredLines: string;
633
+ }[];
652
634
  readonly lowCoverageFiles: readonly string[];
653
- readonly belowTarget?: readonly import("effect/Schema").Struct.ReadonlySide<{
654
- readonly file: import("effect/Schema").String;
655
- readonly summary: import("effect/Schema").Struct<{
656
- readonly statements: import("effect/Schema").Number;
657
- readonly branches: import("effect/Schema").Number;
658
- readonly functions: import("effect/Schema").Number;
659
- readonly lines: import("effect/Schema").Number;
660
- }>;
661
- readonly uncoveredLines: import("effect/Schema").String;
662
- }, "Type">[] | undefined;
635
+ readonly belowTarget?: readonly {
636
+ readonly file: string;
637
+ readonly summary: {
638
+ readonly statements: number;
639
+ readonly branches: number;
640
+ readonly functions: number;
641
+ readonly lines: number;
642
+ };
643
+ readonly uncoveredLines: string;
644
+ }[] | undefined;
663
645
  readonly belowTargetFiles?: readonly string[] | undefined;
664
646
  } | undefined;
665
647
  readonly tagCounts?: {
@@ -685,6 +667,24 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
685
667
  readonly [x: string]: string;
686
668
  };
687
669
  readonly discoveryLastScannedAt?: string | null | undefined;
670
+ } | {
671
+ readonly kind: "timeout";
672
+ readonly timeoutSeconds: number;
673
+ } | {
674
+ readonly kind: "error";
675
+ readonly message: string;
676
+ } | {
677
+ readonly kind: "no-match";
678
+ readonly filter: {
679
+ readonly project: string | null;
680
+ readonly files: readonly string[];
681
+ readonly tags: {
682
+ readonly all?: readonly string[] | undefined;
683
+ readonly any?: readonly string[] | undefined;
684
+ readonly none?: readonly string[] | undefined;
685
+ } | null;
686
+ readonly resolvedExpression: string | null;
687
+ };
688
688
  };
689
689
  meta: object;
690
690
  }>;
@@ -700,66 +700,68 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
700
700
  readonly startGitCommitSha?: string | undefined;
701
701
  readonly startWorktreeDir?: string | undefined;
702
702
  };
703
- output: import("effect/Schema").Struct.ReadonlySide<{
704
- readonly ok: import("effect/Schema").Literal<true>;
705
- readonly agentId: import("effect/Schema").String;
706
- readonly conversationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
707
- readonly idempotencyKey: import("effect/Schema").String;
708
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
709
- readonly ok: import("effect/Schema").Literal<false>;
710
- readonly error: import("effect/Schema").Struct<{
711
- readonly code: import("effect/Schema").Literals<readonly ["AGENT_ALREADY_REGISTERED", "PARENT_AGENT_NOT_FOUND", "SESSION_NOT_FOUND", "INVALID_AGENT_TYPE_PREFIX"]>;
712
- readonly message: import("effect/Schema").String;
713
- readonly existingAgentId: import("effect/Schema").optional<import("effect/Schema").String>;
714
- readonly expectedPrefix: import("effect/Schema").optional<import("effect/Schema").String>;
715
- }>;
716
- }, "Type">;
703
+ output: {
704
+ readonly ok: true;
705
+ readonly agentId: string;
706
+ readonly conversationId: string | null;
707
+ readonly idempotencyKey: string;
708
+ } | {
709
+ readonly ok: false;
710
+ readonly error: {
711
+ readonly code: "AGENT_ALREADY_REGISTERED" | "INVALID_AGENT_TYPE_PREFIX" | "PARENT_AGENT_NOT_FOUND" | "SESSION_NOT_FOUND";
712
+ readonly message: string;
713
+ readonly existingAgentId?: string | undefined;
714
+ readonly expectedPrefix?: string | undefined;
715
+ };
716
+ };
717
717
  meta: object;
718
718
  }>;
719
719
  cache_health: import("@trpc/server").TRPCQueryProcedure<{
720
720
  input: void;
721
- output: import("effect/Schema").Struct.ReadonlySide<{
722
- readonly manifestPresent: import("effect/Schema").Literal<true>;
723
- readonly manifest: import("effect/Schema").Struct<{
724
- readonly updatedAt: import("effect/Schema").String;
725
- readonly cacheDir: import("effect/Schema").String;
726
- readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
727
- readonly project: import("effect/Schema").String;
728
- readonly reportFile: import("effect/Schema").String;
729
- readonly historyFile: import("effect/Schema").optional<import("effect/Schema").String>;
730
- readonly lastRun: import("effect/Schema").NullOr<import("effect/Schema").String>;
731
- readonly lastResult: import("effect/Schema").NullOr<import("effect/Schema").Literals<readonly ["passed", "failed", "interrupted"]>>;
732
- }>>;
733
- }>;
734
- readonly ageMs: import("effect/Schema").Number;
735
- readonly stale: import("effect/Schema").Boolean;
736
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
737
- readonly manifestPresent: import("effect/Schema").Literal<false>;
738
- }, "Type">;
721
+ output: {
722
+ readonly manifestPresent: true;
723
+ readonly manifest: {
724
+ readonly updatedAt: string;
725
+ readonly cacheDir: string;
726
+ readonly projects: readonly {
727
+ readonly project: string;
728
+ readonly reportFile: string;
729
+ readonly historyFile?: string | undefined;
730
+ readonly lastRun: string | null;
731
+ readonly lastResult: "failed" | "interrupted" | "passed" | null;
732
+ }[];
733
+ };
734
+ readonly ageMs: number;
735
+ readonly stale: boolean;
736
+ } | {
737
+ readonly manifestPresent: false;
738
+ };
739
739
  meta: object;
740
740
  }>;
741
741
  configure: import("@trpc/server").TRPCQueryProcedure<{
742
742
  input: {
743
743
  readonly settingsHash?: string | undefined;
744
744
  };
745
- output: import("effect/Schema").Struct.ReadonlySide<{
746
- readonly found: import("effect/Schema").Literal<true>;
747
- readonly source: import("effect/Schema").Literals<readonly ["requested", "latest"]>;
748
- readonly settings: import("effect/Schema").Struct<{
749
- readonly hash: import("effect/Schema").String;
750
- readonly reporters: import("effect/Schema").NullOr<import("effect/Schema").String>;
751
- readonly coverageEnabled: import("effect/Schema").Boolean;
752
- readonly coverageProvider: import("effect/Schema").NullOr<import("effect/Schema").String>;
753
- readonly coverageThresholds: import("effect/Schema").NullOr<import("effect/Schema").String>;
754
- readonly coverageTargets: import("effect/Schema").NullOr<import("effect/Schema").String>;
755
- readonly pool: import("effect/Schema").NullOr<import("effect/Schema").String>;
756
- readonly shard: import("effect/Schema").NullOr<import("effect/Schema").String>;
757
- readonly project: import("effect/Schema").NullOr<import("effect/Schema").String>;
758
- readonly environment: import("effect/Schema").NullOr<import("effect/Schema").String>;
759
- readonly envVars: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").String>;
760
- readonly capturedAt: import("effect/Schema").String;
761
- }>;
762
- }, "Type"> | {
745
+ output: {
746
+ readonly found: true;
747
+ readonly source: "latest" | "requested";
748
+ readonly settings: {
749
+ readonly hash: string;
750
+ readonly reporters: string | null;
751
+ readonly coverageEnabled: boolean;
752
+ readonly coverageProvider: string | null;
753
+ readonly coverageThresholds: string | null;
754
+ readonly coverageTargets: string | null;
755
+ readonly pool: string | null;
756
+ readonly shard: string | null;
757
+ readonly project: string | null;
758
+ readonly environment: string | null;
759
+ readonly envVars: {
760
+ readonly [x: string]: string;
761
+ };
762
+ readonly capturedAt: string;
763
+ };
764
+ } | {
763
765
  readonly found: false;
764
766
  readonly source: "latest" | "requested";
765
767
  readonly requestedHash?: string | undefined;
@@ -767,9 +769,9 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
767
769
  meta: object;
768
770
  }>;
769
771
  inventory: import("@trpc/server").TRPCQueryProcedure<{
770
- input: import("effect/Schema").Struct.ReadonlySide<{
771
- readonly kind: import("effect/Schema").Literal<"project">;
772
- }, "Encoded"> | {
772
+ input: {
773
+ readonly kind: "project";
774
+ } | {
773
775
  readonly kind: "module";
774
776
  readonly project?: string | undefined;
775
777
  } | {
@@ -786,127 +788,118 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
786
788
  readonly kind: "tag";
787
789
  readonly project?: string | undefined;
788
790
  };
789
- output: import("effect/Schema").Struct.ReadonlySide<{
790
- readonly inventoryKind: import("effect/Schema").Literal<"project">;
791
- readonly count: import("effect/Schema").Number;
792
- readonly projects: import("effect/Schema").$Array<import("effect/Schema").Struct<{
793
- readonly project: import("effect/Schema").String;
794
- readonly lastRun: import("effect/Schema").NullOr<import("effect/Schema").String>;
795
- readonly lastResult: import("effect/Schema").NullOr<import("effect/Schema").Literals<readonly ["passed", "failed", "interrupted"]>>;
796
- readonly total: import("effect/Schema").Number;
797
- readonly passed: import("effect/Schema").Number;
798
- readonly failed: import("effect/Schema").Number;
799
- readonly skipped: import("effect/Schema").Number;
800
- }>>;
801
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
802
- readonly inventoryKind: import("effect/Schema").Literal<"module">;
803
- readonly count: import("effect/Schema").Number;
804
- readonly groups: import("effect/Schema").$Array<import("effect/Schema").Struct<{
805
- readonly project: import("effect/Schema").String;
806
- readonly modules: import("effect/Schema").$Array<import("effect/Schema").Struct<{
807
- readonly id: import("effect/Schema").Number;
808
- readonly file: import("effect/Schema").String;
809
- readonly state: import("effect/Schema").String;
810
- readonly testCount: import("effect/Schema").Number;
811
- readonly duration: import("effect/Schema").NullOr<import("effect/Schema").Number>;
812
- }>>;
813
- }>>;
814
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
815
- readonly inventoryKind: import("effect/Schema").Literal<"suite">;
816
- readonly count: import("effect/Schema").Number;
817
- readonly groups: import("effect/Schema").$Array<import("effect/Schema").Struct<{
818
- readonly project: import("effect/Schema").String;
819
- readonly suites: import("effect/Schema").$Array<import("effect/Schema").Struct<{
820
- readonly id: import("effect/Schema").Number;
821
- readonly name: import("effect/Schema").String;
822
- readonly module: import("effect/Schema").String;
823
- readonly state: import("effect/Schema").String;
824
- readonly testCount: import("effect/Schema").Number;
825
- }>>;
826
- }>>;
827
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
828
- readonly inventoryKind: import("effect/Schema").Literal<"session_detail">;
829
- readonly found: import("effect/Schema").Literal<true>;
830
- readonly session: import("effect/Schema").Struct<{
831
- readonly id: import("effect/Schema").Number;
832
- readonly chatId: import("effect/Schema").String;
833
- readonly project: import("effect/Schema").String;
834
- readonly cwd: import("effect/Schema").String;
835
- readonly agentKind: import("effect/Schema").Literals<readonly ["main", "subagent"]>;
836
- readonly agentType: import("effect/Schema").NullOr<import("effect/Schema").String>;
837
- readonly parentSessionId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
838
- readonly triageWasNonEmpty: import("effect/Schema").Boolean;
839
- readonly startedAt: import("effect/Schema").String;
840
- readonly endedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
841
- readonly endReason: import("effect/Schema").NullOr<import("effect/Schema").String>;
842
- }>;
843
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
844
- readonly inventoryKind: import("effect/Schema").Literal<"session_detail">;
845
- readonly found: import("effect/Schema").Literal<false>;
846
- readonly id: import("effect/Schema").Number;
847
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
848
- readonly inventoryKind: import("effect/Schema").Literal<"session_list">;
849
- readonly count: import("effect/Schema").Number;
850
- readonly sessions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
851
- readonly id: import("effect/Schema").Number;
852
- readonly chatId: import("effect/Schema").String;
853
- readonly project: import("effect/Schema").String;
854
- readonly cwd: import("effect/Schema").String;
855
- readonly agentKind: import("effect/Schema").Literals<readonly ["main", "subagent"]>;
856
- readonly agentType: import("effect/Schema").NullOr<import("effect/Schema").String>;
857
- readonly parentSessionId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
858
- readonly triageWasNonEmpty: import("effect/Schema").Boolean;
859
- readonly startedAt: import("effect/Schema").String;
860
- readonly endedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
861
- readonly endReason: import("effect/Schema").NullOr<import("effect/Schema").String>;
862
- }>>;
863
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
864
- readonly inventoryKind: import("effect/Schema").Literal<"tag_scoped">;
865
- readonly project: import("effect/Schema").String;
866
- readonly count: import("effect/Schema").Number;
867
- readonly tags: import("effect/Schema").$Array<import("effect/Schema").Struct<{
868
- readonly tag: import("effect/Schema").String;
869
- readonly moduleCount: import("effect/Schema").Number;
870
- readonly testCount: import("effect/Schema").Number;
871
- }>>;
872
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
873
- readonly inventoryKind: import("effect/Schema").Literal<"tag_unscoped">;
874
- readonly count: import("effect/Schema").Number;
875
- readonly tags: import("effect/Schema").$Array<import("effect/Schema").Struct<{
876
- readonly tag: import("effect/Schema").String;
877
- readonly moduleCount: import("effect/Schema").Number;
878
- readonly testCount: import("effect/Schema").Number;
879
- readonly byProject: import("effect/Schema").$Array<import("effect/Schema").Struct<{
880
- readonly project: import("effect/Schema").String;
881
- readonly moduleCount: import("effect/Schema").Number;
882
- readonly testCount: import("effect/Schema").Number;
883
- }>>;
884
- }>>;
885
- }, "Type">;
791
+ output: {
792
+ readonly inventoryKind: "project";
793
+ readonly count: number;
794
+ readonly projects: readonly {
795
+ readonly project: string;
796
+ readonly lastRun: string | null;
797
+ readonly lastResult: "failed" | "interrupted" | "passed" | null;
798
+ readonly total: number;
799
+ readonly passed: number;
800
+ readonly failed: number;
801
+ readonly skipped: number;
802
+ }[];
803
+ } | {
804
+ readonly inventoryKind: "module";
805
+ readonly count: number;
806
+ readonly groups: readonly {
807
+ readonly project: string;
808
+ readonly modules: readonly {
809
+ readonly id: number;
810
+ readonly file: string;
811
+ readonly state: string;
812
+ readonly testCount: number;
813
+ readonly duration: number | null;
814
+ }[];
815
+ }[];
816
+ } | {
817
+ readonly inventoryKind: "suite";
818
+ readonly count: number;
819
+ readonly groups: readonly {
820
+ readonly project: string;
821
+ readonly suites: readonly {
822
+ readonly id: number;
823
+ readonly name: string;
824
+ readonly module: string;
825
+ readonly state: string;
826
+ readonly testCount: number;
827
+ }[];
828
+ }[];
829
+ } | {
830
+ readonly inventoryKind: "session_detail";
831
+ readonly found: true;
832
+ readonly session: {
833
+ readonly id: number;
834
+ readonly chatId: string;
835
+ readonly project: string;
836
+ readonly cwd: string;
837
+ readonly agentKind: "main" | "subagent";
838
+ readonly agentType: string | null;
839
+ readonly parentSessionId: number | null;
840
+ readonly triageWasNonEmpty: boolean;
841
+ readonly startedAt: string;
842
+ readonly endedAt: string | null;
843
+ readonly endReason: string | null;
844
+ };
845
+ } | {
846
+ readonly inventoryKind: "session_detail";
847
+ readonly found: false;
848
+ readonly id: number;
849
+ } | {
850
+ readonly inventoryKind: "session_list";
851
+ readonly count: number;
852
+ readonly sessions: readonly {
853
+ readonly id: number;
854
+ readonly chatId: string;
855
+ readonly project: string;
856
+ readonly cwd: string;
857
+ readonly agentKind: "main" | "subagent";
858
+ readonly agentType: string | null;
859
+ readonly parentSessionId: number | null;
860
+ readonly triageWasNonEmpty: boolean;
861
+ readonly startedAt: string;
862
+ readonly endedAt: string | null;
863
+ readonly endReason: string | null;
864
+ }[];
865
+ } | {
866
+ readonly inventoryKind: "tag_scoped";
867
+ readonly project: string;
868
+ readonly count: number;
869
+ readonly tags: readonly {
870
+ readonly tag: string;
871
+ readonly moduleCount: number;
872
+ readonly testCount: number;
873
+ }[];
874
+ } | {
875
+ readonly inventoryKind: "tag_unscoped";
876
+ readonly count: number;
877
+ readonly tags: readonly {
878
+ readonly tag: string;
879
+ readonly moduleCount: number;
880
+ readonly testCount: number;
881
+ readonly byProject: readonly {
882
+ readonly project: string;
883
+ readonly moduleCount: number;
884
+ readonly testCount: number;
885
+ }[];
886
+ }[];
887
+ };
886
888
  meta: object;
887
889
  }>;
888
890
  settings_list: import("@trpc/server").TRPCQueryProcedure<{
889
- input: import("effect/Schema").Struct.ReadonlySide<{}, "Encoded">;
890
- output: import("effect/Schema").Struct.ReadonlySide<{
891
- readonly count: import("effect/Schema").Number;
892
- readonly settings: import("effect/Schema").$Array<import("effect/Schema").Struct<{
893
- readonly hash: import("effect/Schema").String;
894
- readonly capturedAt: import("effect/Schema").String;
895
- }>>;
896
- }, "Type">;
891
+ input: {};
892
+ output: {
893
+ readonly count: number;
894
+ readonly settings: readonly {
895
+ readonly hash: string;
896
+ readonly capturedAt: string;
897
+ }[];
898
+ };
897
899
  meta: object;
898
900
  }>;
899
901
  note: import("@trpc/server").TRPCMutationProcedure<{
900
- input: import("effect/Schema").Struct.ReadonlySide<{
901
- readonly action: import("effect/Schema").Literal<"get">;
902
- readonly id: import("effect/Schema").Number;
903
- }, "Encoded"> | import("effect/Schema").Struct.ReadonlySide<{
904
- readonly action: import("effect/Schema").Literal<"delete">;
905
- readonly id: import("effect/Schema").Number;
906
- }, "Encoded"> | import("effect/Schema").Struct.ReadonlySide<{
907
- readonly action: import("effect/Schema").Literal<"search">;
908
- readonly query: import("effect/Schema").String;
909
- }, "Encoded"> | {
902
+ input: {
910
903
  readonly action: "create";
911
904
  readonly title: string;
912
905
  readonly content: string;
@@ -923,6 +916,9 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
923
916
  readonly scope?: string | undefined;
924
917
  readonly project?: string | undefined;
925
918
  readonly testFullName?: string | undefined;
919
+ } | {
920
+ readonly action: "get";
921
+ readonly id: number;
926
922
  } | {
927
923
  readonly action: "update";
928
924
  readonly id: number;
@@ -930,76 +926,82 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
930
926
  readonly content?: string | undefined;
931
927
  readonly pinned?: boolean | undefined;
932
928
  readonly expiresAt?: string | undefined;
929
+ } | {
930
+ readonly action: "delete";
931
+ readonly id: number;
932
+ } | {
933
+ readonly action: "search";
934
+ readonly query: string;
935
+ };
936
+ output: {
937
+ readonly action: "create";
938
+ readonly id: number;
939
+ } | {
940
+ readonly action: "list";
941
+ readonly count: number;
942
+ readonly notes: readonly {
943
+ readonly id: number;
944
+ readonly title: string;
945
+ readonly content: string;
946
+ readonly scope: "global" | "module" | "note" | "project" | "suite" | "test";
947
+ readonly project: string | null;
948
+ readonly testFullName: string | null;
949
+ readonly modulePath: string | null;
950
+ readonly parentNoteId: number | null;
951
+ readonly createdBy: string | null;
952
+ readonly expiresAt: string | null;
953
+ readonly pinned: boolean;
954
+ readonly createdAt: string;
955
+ readonly updatedAt: string;
956
+ }[];
957
+ } | {
958
+ readonly action: "get";
959
+ readonly found: true;
960
+ readonly note: {
961
+ readonly id: number;
962
+ readonly title: string;
963
+ readonly content: string;
964
+ readonly scope: "global" | "module" | "note" | "project" | "suite" | "test";
965
+ readonly project: string | null;
966
+ readonly testFullName: string | null;
967
+ readonly modulePath: string | null;
968
+ readonly parentNoteId: number | null;
969
+ readonly createdBy: string | null;
970
+ readonly expiresAt: string | null;
971
+ readonly pinned: boolean;
972
+ readonly createdAt: string;
973
+ readonly updatedAt: string;
974
+ };
975
+ } | {
976
+ readonly action: "get";
977
+ readonly found: false;
978
+ readonly id: number;
979
+ } | {
980
+ readonly action: "update";
981
+ readonly success: true;
982
+ } | {
983
+ readonly action: "delete";
984
+ readonly success: true;
985
+ } | {
986
+ readonly action: "search";
987
+ readonly query: string;
988
+ readonly count: number;
989
+ readonly notes: readonly {
990
+ readonly id: number;
991
+ readonly title: string;
992
+ readonly content: string;
993
+ readonly scope: "global" | "module" | "note" | "project" | "suite" | "test";
994
+ readonly project: string | null;
995
+ readonly testFullName: string | null;
996
+ readonly modulePath: string | null;
997
+ readonly parentNoteId: number | null;
998
+ readonly createdBy: string | null;
999
+ readonly expiresAt: string | null;
1000
+ readonly pinned: boolean;
1001
+ readonly createdAt: string;
1002
+ readonly updatedAt: string;
1003
+ }[];
933
1004
  };
934
- output: import("effect/Schema").Struct.ReadonlySide<{
935
- readonly action: import("effect/Schema").Literal<"create">;
936
- readonly id: import("effect/Schema").Number;
937
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
938
- readonly action: import("effect/Schema").Literal<"list">;
939
- readonly count: import("effect/Schema").Number;
940
- readonly notes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
941
- readonly id: import("effect/Schema").Number;
942
- readonly title: import("effect/Schema").String;
943
- readonly content: import("effect/Schema").String;
944
- readonly scope: import("effect/Schema").Literals<readonly ["global", "project", "module", "suite", "test", "note"]>;
945
- readonly project: import("effect/Schema").NullOr<import("effect/Schema").String>;
946
- readonly testFullName: import("effect/Schema").NullOr<import("effect/Schema").String>;
947
- readonly modulePath: import("effect/Schema").NullOr<import("effect/Schema").String>;
948
- readonly parentNoteId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
949
- readonly createdBy: import("effect/Schema").NullOr<import("effect/Schema").String>;
950
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
951
- readonly pinned: import("effect/Schema").Boolean;
952
- readonly createdAt: import("effect/Schema").String;
953
- readonly updatedAt: import("effect/Schema").String;
954
- }>>;
955
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
956
- readonly action: import("effect/Schema").Literal<"get">;
957
- readonly found: import("effect/Schema").Literal<true>;
958
- readonly note: import("effect/Schema").Struct<{
959
- readonly id: import("effect/Schema").Number;
960
- readonly title: import("effect/Schema").String;
961
- readonly content: import("effect/Schema").String;
962
- readonly scope: import("effect/Schema").Literals<readonly ["global", "project", "module", "suite", "test", "note"]>;
963
- readonly project: import("effect/Schema").NullOr<import("effect/Schema").String>;
964
- readonly testFullName: import("effect/Schema").NullOr<import("effect/Schema").String>;
965
- readonly modulePath: import("effect/Schema").NullOr<import("effect/Schema").String>;
966
- readonly parentNoteId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
967
- readonly createdBy: import("effect/Schema").NullOr<import("effect/Schema").String>;
968
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
969
- readonly pinned: import("effect/Schema").Boolean;
970
- readonly createdAt: import("effect/Schema").String;
971
- readonly updatedAt: import("effect/Schema").String;
972
- }>;
973
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
974
- readonly action: import("effect/Schema").Literal<"get">;
975
- readonly found: import("effect/Schema").Literal<false>;
976
- readonly id: import("effect/Schema").Number;
977
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
978
- readonly action: import("effect/Schema").Literal<"update">;
979
- readonly success: import("effect/Schema").Literal<true>;
980
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
981
- readonly action: import("effect/Schema").Literal<"delete">;
982
- readonly success: import("effect/Schema").Literal<true>;
983
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
984
- readonly action: import("effect/Schema").Literal<"search">;
985
- readonly query: import("effect/Schema").String;
986
- readonly count: import("effect/Schema").Number;
987
- readonly notes: import("effect/Schema").$Array<import("effect/Schema").Struct<{
988
- readonly id: import("effect/Schema").Number;
989
- readonly title: import("effect/Schema").String;
990
- readonly content: import("effect/Schema").String;
991
- readonly scope: import("effect/Schema").Literals<readonly ["global", "project", "module", "suite", "test", "note"]>;
992
- readonly project: import("effect/Schema").NullOr<import("effect/Schema").String>;
993
- readonly testFullName: import("effect/Schema").NullOr<import("effect/Schema").String>;
994
- readonly modulePath: import("effect/Schema").NullOr<import("effect/Schema").String>;
995
- readonly parentNoteId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
996
- readonly createdBy: import("effect/Schema").NullOr<import("effect/Schema").String>;
997
- readonly expiresAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
998
- readonly pinned: import("effect/Schema").Boolean;
999
- readonly createdAt: import("effect/Schema").String;
1000
- readonly updatedAt: import("effect/Schema").String;
1001
- }>>;
1002
- }, "Type">;
1003
1005
  meta: object;
1004
1006
  }>;
1005
1007
  turn_search: import("@trpc/server").TRPCQueryProcedure<{
@@ -1009,49 +1011,43 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1009
1011
  readonly type?: "file_edit" | "hook_fire" | "hypothesis" | "note" | "tool_call" | "tool_result" | "user_prompt" | undefined;
1010
1012
  readonly limit?: number | undefined;
1011
1013
  };
1012
- output: import("effect/Schema").Struct.ReadonlySide<{
1013
- readonly count: import("effect/Schema").Number;
1014
- readonly turns: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1015
- readonly id: import("effect/Schema").Number;
1016
- readonly sessionId: import("effect/Schema").Number;
1017
- readonly turnNo: import("effect/Schema").Number;
1018
- readonly type: import("effect/Schema").String;
1019
- readonly payload: import("effect/Schema").String;
1020
- readonly occurredAt: import("effect/Schema").String;
1021
- }>>;
1022
- }, "Type">;
1014
+ output: {
1015
+ readonly count: number;
1016
+ readonly turns: readonly {
1017
+ readonly id: number;
1018
+ readonly sessionId: number;
1019
+ readonly turnNo: number;
1020
+ readonly type: string;
1021
+ readonly payload: string;
1022
+ readonly occurredAt: string;
1023
+ }[];
1024
+ };
1023
1025
  meta: object;
1024
1026
  }>;
1025
1027
  failure_signature_get: import("@trpc/server").TRPCQueryProcedure<{
1026
- input: import("effect/Schema").Struct.ReadonlySide<{
1027
- readonly hash: import("effect/Schema").String;
1028
- }, "Encoded">;
1029
- output: import("effect/Schema").Struct.ReadonlySide<{
1030
- readonly found: import("effect/Schema").Literal<true>;
1031
- readonly signatureHash: import("effect/Schema").String;
1032
- readonly firstSeenRunId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1033
- readonly firstSeenAt: import("effect/Schema").String;
1034
- readonly lastSeenAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
1035
- readonly occurrenceCount: import("effect/Schema").Number;
1036
- readonly recentErrors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1037
- readonly runId: import("effect/Schema").Number;
1038
- readonly errorName: import("effect/Schema").NullOr<import("effect/Schema").String>;
1039
- readonly message: import("effect/Schema").String;
1040
- }>>;
1041
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1042
- readonly found: import("effect/Schema").Literal<false>;
1043
- readonly requestedHash: import("effect/Schema").String;
1044
- }, "Type">;
1028
+ input: {
1029
+ readonly hash: string;
1030
+ };
1031
+ output: {
1032
+ readonly found: true;
1033
+ readonly signatureHash: string;
1034
+ readonly firstSeenRunId: number | null;
1035
+ readonly firstSeenAt: string;
1036
+ readonly lastSeenAt: string | null;
1037
+ readonly occurrenceCount: number;
1038
+ readonly recentErrors: readonly {
1039
+ readonly runId: number;
1040
+ readonly errorName: string | null;
1041
+ readonly message: string;
1042
+ }[];
1043
+ } | {
1044
+ readonly found: false;
1045
+ readonly requestedHash: string;
1046
+ };
1045
1047
  meta: object;
1046
1048
  }>;
1047
1049
  tdd_task: import("@trpc/server").TRPCMutationProcedure<{
1048
- input: import("effect/Schema").Struct.ReadonlySide<{
1049
- readonly action: import("effect/Schema").Literal<"get">;
1050
- readonly tddTaskId: import("effect/Schema").Number;
1051
- }, "Encoded"> | import("effect/Schema").Struct.ReadonlySide<{
1052
- readonly action: import("effect/Schema").Literal<"resume">;
1053
- readonly tddTaskId: import("effect/Schema").Number;
1054
- }, "Encoded"> | {
1050
+ input: {
1055
1051
  readonly action: "start";
1056
1052
  readonly goal: string;
1057
1053
  readonly sessionId?: number | undefined;
@@ -1064,89 +1060,95 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1064
1060
  readonly tddTaskId: number;
1065
1061
  readonly outcome: "abandoned" | "blocked" | "succeeded";
1066
1062
  readonly summaryNoteId?: number | undefined;
1063
+ } | {
1064
+ readonly action: "get";
1065
+ readonly tddTaskId: number;
1066
+ } | {
1067
+ readonly action: "resume";
1068
+ readonly tddTaskId: number;
1067
1069
  };
1068
- output: import("effect/Schema").Struct.ReadonlySide<{
1069
- readonly action: import("effect/Schema").Literal<"end">;
1070
- readonly tddTaskId: import("effect/Schema").Number;
1071
- readonly outcome: import("effect/Schema").Literals<readonly ["succeeded", "blocked", "abandoned"]>;
1072
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1073
- readonly action: import("effect/Schema").Literal<"get">;
1074
- readonly found: import("effect/Schema").Literal<true>;
1075
- readonly task: import("effect/Schema").Struct<{
1076
- readonly tddTaskId: import("effect/Schema").Number;
1077
- readonly sessionId: import("effect/Schema").Number;
1078
- readonly goal: import("effect/Schema").String;
1079
- readonly startedAt: import("effect/Schema").String;
1080
- readonly endedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
1081
- readonly outcome: import("effect/Schema").NullOr<import("effect/Schema").String>;
1082
- readonly runId: import("effect/Schema").NullOr<import("effect/Schema").String>;
1083
- readonly goals: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1084
- readonly id: import("effect/Schema").Number;
1085
- readonly sessionId: import("effect/Schema").Number;
1086
- readonly ordinal: import("effect/Schema").Number;
1087
- readonly goal: import("effect/Schema").String;
1088
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1089
- readonly createdAt: import("effect/Schema").String;
1090
- readonly behaviors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1091
- readonly id: import("effect/Schema").Number;
1092
- readonly goalId: import("effect/Schema").Number;
1093
- readonly ordinal: import("effect/Schema").Number;
1094
- readonly behavior: import("effect/Schema").String;
1095
- readonly suggestedTestName: import("effect/Schema").NullOr<import("effect/Schema").String>;
1096
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1097
- readonly createdAt: import("effect/Schema").String;
1098
- }>>;
1099
- }>>;
1100
- readonly phases: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1101
- readonly id: import("effect/Schema").Number;
1102
- readonly behaviorId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1103
- readonly phase: import("effect/Schema").String;
1104
- readonly startedAt: import("effect/Schema").String;
1105
- readonly endedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
1106
- readonly transitionReason: import("effect/Schema").NullOr<import("effect/Schema").String>;
1107
- }>>;
1108
- readonly artifacts: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1109
- readonly id: import("effect/Schema").Number;
1110
- readonly phaseId: import("effect/Schema").Number;
1111
- readonly artifactKind: import("effect/Schema").String;
1112
- readonly testCaseId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1113
- readonly testRunId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1114
- readonly recordedAt: import("effect/Schema").String;
1115
- }>>;
1116
- }>;
1117
- readonly currentPhase: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1118
- readonly id: import("effect/Schema").Number;
1119
- readonly phase: import("effect/Schema").String;
1120
- readonly startedAt: import("effect/Schema").String;
1121
- readonly behaviorId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1122
- }>>;
1123
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1124
- readonly action: import("effect/Schema").Literal<"get">;
1125
- readonly found: import("effect/Schema").Literal<false>;
1126
- readonly tddTaskId: import("effect/Schema").Number;
1127
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1128
- readonly action: import("effect/Schema").Literal<"resume">;
1129
- readonly found: import("effect/Schema").Literal<true>;
1130
- readonly tddTaskId: import("effect/Schema").Number;
1131
- readonly goal: import("effect/Schema").String;
1132
- readonly status: import("effect/Schema").String;
1133
- readonly currentPhase: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1134
- readonly id: import("effect/Schema").Number;
1135
- readonly phase: import("effect/Schema").String;
1136
- readonly startedAt: import("effect/Schema").String;
1137
- readonly behaviorId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1138
- }>>;
1139
- readonly phasesRecorded: import("effect/Schema").Number;
1140
- readonly artifactsRecorded: import("effect/Schema").Number;
1141
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1142
- readonly action: import("effect/Schema").Literal<"resume">;
1143
- readonly found: import("effect/Schema").Literal<false>;
1144
- readonly tddTaskId: import("effect/Schema").Number;
1145
- }, "Type"> | {
1070
+ output: {
1146
1071
  readonly action: "start";
1147
1072
  readonly tddTaskId: number;
1148
1073
  readonly goal: string;
1149
1074
  readonly runId?: string | undefined;
1075
+ } | {
1076
+ readonly action: "end";
1077
+ readonly tddTaskId: number;
1078
+ readonly outcome: "abandoned" | "blocked" | "succeeded";
1079
+ } | {
1080
+ readonly action: "get";
1081
+ readonly found: true;
1082
+ readonly task: {
1083
+ readonly tddTaskId: number;
1084
+ readonly sessionId: number;
1085
+ readonly goal: string;
1086
+ readonly startedAt: string;
1087
+ readonly endedAt: string | null;
1088
+ readonly outcome: string | null;
1089
+ readonly runId: string | null;
1090
+ readonly goals: readonly {
1091
+ readonly id: number;
1092
+ readonly sessionId: number;
1093
+ readonly ordinal: number;
1094
+ readonly goal: string;
1095
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1096
+ readonly createdAt: string;
1097
+ readonly behaviors: readonly {
1098
+ readonly id: number;
1099
+ readonly goalId: number;
1100
+ readonly ordinal: number;
1101
+ readonly behavior: string;
1102
+ readonly suggestedTestName: string | null;
1103
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1104
+ readonly createdAt: string;
1105
+ }[];
1106
+ }[];
1107
+ readonly phases: readonly {
1108
+ readonly id: number;
1109
+ readonly behaviorId: number | null;
1110
+ readonly phase: string;
1111
+ readonly startedAt: string;
1112
+ readonly endedAt: string | null;
1113
+ readonly transitionReason: string | null;
1114
+ }[];
1115
+ readonly artifacts: readonly {
1116
+ readonly id: number;
1117
+ readonly phaseId: number;
1118
+ readonly artifactKind: string;
1119
+ readonly testCaseId: number | null;
1120
+ readonly testRunId: number | null;
1121
+ readonly recordedAt: string;
1122
+ }[];
1123
+ };
1124
+ readonly currentPhase: {
1125
+ readonly id: number;
1126
+ readonly phase: string;
1127
+ readonly startedAt: string;
1128
+ readonly behaviorId: number | null;
1129
+ } | null;
1130
+ } | {
1131
+ readonly action: "get";
1132
+ readonly found: false;
1133
+ readonly tddTaskId: number;
1134
+ } | {
1135
+ readonly action: "resume";
1136
+ readonly found: true;
1137
+ readonly tddTaskId: number;
1138
+ readonly goal: string;
1139
+ readonly status: string;
1140
+ readonly currentPhase: {
1141
+ readonly id: number;
1142
+ readonly phase: string;
1143
+ readonly startedAt: string;
1144
+ readonly behaviorId: number | null;
1145
+ } | null;
1146
+ readonly phasesRecorded: number;
1147
+ readonly artifactsRecorded: number;
1148
+ } | {
1149
+ readonly action: "resume";
1150
+ readonly found: false;
1151
+ readonly tddTaskId: number;
1150
1152
  };
1151
1153
  meta: object;
1152
1154
  }>;
@@ -1176,47 +1178,47 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1176
1178
  meta: object;
1177
1179
  }>;
1178
1180
  tdd_goal: import("@trpc/server").TRPCMutationProcedure<{
1179
- input: import("effect/Schema").Struct.ReadonlySide<{
1180
- readonly action: import("effect/Schema").Literal<"create">;
1181
- readonly tddTaskId: import("effect/Schema").Number;
1182
- readonly goal: import("effect/Schema").String;
1183
- }, "Encoded"> | import("effect/Schema").Struct.ReadonlySide<{
1184
- readonly action: import("effect/Schema").Literal<"delete">;
1185
- readonly id: import("effect/Schema").Number;
1186
- }, "Encoded"> | import("effect/Schema").Struct.ReadonlySide<{
1187
- readonly action: import("effect/Schema").Literal<"get">;
1188
- readonly id: import("effect/Schema").Number;
1189
- }, "Encoded"> | import("effect/Schema").Struct.ReadonlySide<{
1190
- readonly action: import("effect/Schema").Literal<"list">;
1191
- readonly tddTaskId: import("effect/Schema").Number;
1192
- }, "Encoded"> | {
1181
+ input: {
1182
+ readonly action: "create";
1183
+ readonly tddTaskId: number;
1184
+ readonly goal: string;
1185
+ } | {
1193
1186
  readonly action: "update";
1194
1187
  readonly id: number;
1195
1188
  readonly goal?: string | undefined;
1196
1189
  readonly status?: "abandoned" | "done" | "in_progress" | "pending" | undefined;
1190
+ } | {
1191
+ readonly action: "delete";
1192
+ readonly id: number;
1193
+ } | {
1194
+ readonly action: "get";
1195
+ readonly id: number;
1196
+ } | {
1197
+ readonly action: "list";
1198
+ readonly tddTaskId: number;
1197
1199
  };
1198
1200
  output: TddErrorEnvelope | {
1199
1201
  ok: true;
1200
1202
  action: "create";
1201
- goal: import("effect/Schema").Struct.ReadonlySide<{
1202
- readonly id: import("effect/Schema").Number;
1203
- readonly sessionId: import("effect/Schema").Number;
1204
- readonly ordinal: import("effect/Schema").Number;
1205
- readonly goal: import("effect/Schema").String;
1206
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1207
- readonly createdAt: import("effect/Schema").String;
1208
- }, "Type">;
1203
+ goal: {
1204
+ readonly id: number;
1205
+ readonly sessionId: number;
1206
+ readonly ordinal: number;
1207
+ readonly goal: string;
1208
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1209
+ readonly createdAt: string;
1210
+ };
1209
1211
  } | {
1210
1212
  ok: true;
1211
1213
  action: "update";
1212
- goal: import("effect/Schema").Struct.ReadonlySide<{
1213
- readonly id: import("effect/Schema").Number;
1214
- readonly sessionId: import("effect/Schema").Number;
1215
- readonly ordinal: import("effect/Schema").Number;
1216
- readonly goal: import("effect/Schema").String;
1217
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1218
- readonly createdAt: import("effect/Schema").String;
1219
- }, "Type">;
1214
+ goal: {
1215
+ readonly id: number;
1216
+ readonly sessionId: number;
1217
+ readonly ordinal: number;
1218
+ readonly goal: string;
1219
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1220
+ readonly createdAt: string;
1221
+ };
1220
1222
  } | {
1221
1223
  ok: true;
1222
1224
  action: "delete";
@@ -1230,61 +1232,49 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1230
1232
  id?: undefined;
1231
1233
  action: "get";
1232
1234
  found: true;
1233
- goal: import("effect/Schema").Struct.ReadonlySide<{
1234
- readonly id: import("effect/Schema").Number;
1235
- readonly sessionId: import("effect/Schema").Number;
1236
- readonly ordinal: import("effect/Schema").Number;
1237
- readonly goal: import("effect/Schema").String;
1238
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1239
- readonly createdAt: import("effect/Schema").String;
1240
- readonly behaviors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1241
- readonly id: import("effect/Schema").Number;
1242
- readonly goalId: import("effect/Schema").Number;
1243
- readonly ordinal: import("effect/Schema").Number;
1244
- readonly behavior: import("effect/Schema").String;
1245
- readonly suggestedTestName: import("effect/Schema").NullOr<import("effect/Schema").String>;
1246
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1247
- readonly createdAt: import("effect/Schema").String;
1248
- }>>;
1249
- }, "Type">;
1235
+ goal: {
1236
+ readonly id: number;
1237
+ readonly sessionId: number;
1238
+ readonly ordinal: number;
1239
+ readonly goal: string;
1240
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1241
+ readonly createdAt: string;
1242
+ readonly behaviors: readonly {
1243
+ readonly id: number;
1244
+ readonly goalId: number;
1245
+ readonly ordinal: number;
1246
+ readonly behavior: string;
1247
+ readonly suggestedTestName: string | null;
1248
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1249
+ readonly createdAt: string;
1250
+ }[];
1251
+ };
1250
1252
  } | {
1251
1253
  ok: true;
1252
1254
  action: "list";
1253
1255
  tddTaskId: number;
1254
- goals: readonly import("effect/Schema").Struct.ReadonlySide<{
1255
- readonly id: import("effect/Schema").Number;
1256
- readonly sessionId: import("effect/Schema").Number;
1257
- readonly ordinal: import("effect/Schema").Number;
1258
- readonly goal: import("effect/Schema").String;
1259
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1260
- readonly createdAt: import("effect/Schema").String;
1261
- readonly behaviors: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1262
- readonly id: import("effect/Schema").Number;
1263
- readonly goalId: import("effect/Schema").Number;
1264
- readonly ordinal: import("effect/Schema").Number;
1265
- readonly behavior: import("effect/Schema").String;
1266
- readonly suggestedTestName: import("effect/Schema").NullOr<import("effect/Schema").String>;
1267
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1268
- readonly createdAt: import("effect/Schema").String;
1269
- }>>;
1270
- }, "Type">[];
1256
+ goals: readonly {
1257
+ readonly id: number;
1258
+ readonly sessionId: number;
1259
+ readonly ordinal: number;
1260
+ readonly goal: string;
1261
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1262
+ readonly createdAt: string;
1263
+ readonly behaviors: readonly {
1264
+ readonly id: number;
1265
+ readonly goalId: number;
1266
+ readonly ordinal: number;
1267
+ readonly behavior: string;
1268
+ readonly suggestedTestName: string | null;
1269
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1270
+ readonly createdAt: string;
1271
+ }[];
1272
+ }[];
1271
1273
  };
1272
1274
  meta: object;
1273
1275
  }>;
1274
1276
  tdd_behavior: import("@trpc/server").TRPCMutationProcedure<{
1275
- input: import("effect/Schema").Struct.ReadonlySide<{
1276
- readonly action: import("effect/Schema").Literal<"delete">;
1277
- readonly id: import("effect/Schema").Number;
1278
- }, "Encoded"> | import("effect/Schema").Struct.ReadonlySide<{
1279
- readonly action: import("effect/Schema").Literal<"get">;
1280
- readonly id: import("effect/Schema").Number;
1281
- }, "Encoded"> | import("effect/Schema").Struct.ReadonlySide<{
1282
- readonly action: import("effect/Schema").Literal<"list_by_goal">;
1283
- readonly goalId: import("effect/Schema").Number;
1284
- }, "Encoded"> | import("effect/Schema").Struct.ReadonlySide<{
1285
- readonly action: import("effect/Schema").Literal<"list_by_tdd_task">;
1286
- readonly tddTaskId: import("effect/Schema").Number;
1287
- }, "Encoded"> | {
1277
+ input: {
1288
1278
  readonly action: "create";
1289
1279
  readonly goalId: number;
1290
1280
  readonly behavior: string;
@@ -1297,31 +1287,43 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1297
1287
  readonly suggestedTestName?: string | null | undefined;
1298
1288
  readonly status?: "abandoned" | "done" | "in_progress" | "pending" | undefined;
1299
1289
  readonly dependsOnBehaviorIds?: readonly number[] | undefined;
1290
+ } | {
1291
+ readonly action: "delete";
1292
+ readonly id: number;
1293
+ } | {
1294
+ readonly action: "get";
1295
+ readonly id: number;
1296
+ } | {
1297
+ readonly action: "list_by_goal";
1298
+ readonly goalId: number;
1299
+ } | {
1300
+ readonly action: "list_by_tdd_task";
1301
+ readonly tddTaskId: number;
1300
1302
  };
1301
1303
  output: TddErrorEnvelope | {
1302
1304
  ok: true;
1303
1305
  action: "create";
1304
- behavior: import("effect/Schema").Struct.ReadonlySide<{
1305
- readonly id: import("effect/Schema").Number;
1306
- readonly goalId: import("effect/Schema").Number;
1307
- readonly ordinal: import("effect/Schema").Number;
1308
- readonly behavior: import("effect/Schema").String;
1309
- readonly suggestedTestName: import("effect/Schema").NullOr<import("effect/Schema").String>;
1310
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1311
- readonly createdAt: import("effect/Schema").String;
1312
- }, "Type">;
1306
+ behavior: {
1307
+ readonly id: number;
1308
+ readonly goalId: number;
1309
+ readonly ordinal: number;
1310
+ readonly behavior: string;
1311
+ readonly suggestedTestName: string | null;
1312
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1313
+ readonly createdAt: string;
1314
+ };
1313
1315
  } | {
1314
1316
  ok: true;
1315
1317
  action: "update";
1316
- behavior: import("effect/Schema").Struct.ReadonlySide<{
1317
- readonly id: import("effect/Schema").Number;
1318
- readonly goalId: import("effect/Schema").Number;
1319
- readonly ordinal: import("effect/Schema").Number;
1320
- readonly behavior: import("effect/Schema").String;
1321
- readonly suggestedTestName: import("effect/Schema").NullOr<import("effect/Schema").String>;
1322
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1323
- readonly createdAt: import("effect/Schema").String;
1324
- }, "Type">;
1318
+ behavior: {
1319
+ readonly id: number;
1320
+ readonly goalId: number;
1321
+ readonly ordinal: number;
1322
+ readonly behavior: string;
1323
+ readonly suggestedTestName: string | null;
1324
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1325
+ readonly createdAt: string;
1326
+ };
1325
1327
  } | {
1326
1328
  ok: true;
1327
1329
  action: "delete";
@@ -1334,56 +1336,56 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1334
1336
  } | {
1335
1337
  action: "get";
1336
1338
  found: true;
1337
- behavior: import("effect/Schema").Struct.ReadonlySide<{
1338
- readonly id: import("effect/Schema").Number;
1339
- readonly goalId: import("effect/Schema").Number;
1340
- readonly ordinal: import("effect/Schema").Number;
1341
- readonly behavior: import("effect/Schema").String;
1342
- readonly suggestedTestName: import("effect/Schema").NullOr<import("effect/Schema").String>;
1343
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1344
- readonly createdAt: import("effect/Schema").String;
1345
- readonly parentGoal: import("effect/Schema").Struct<{
1346
- readonly id: import("effect/Schema").Number;
1347
- readonly goal: import("effect/Schema").String;
1348
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1349
- }>;
1350
- readonly dependencies: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1351
- readonly id: import("effect/Schema").Number;
1352
- readonly goalId: import("effect/Schema").Number;
1353
- readonly ordinal: import("effect/Schema").Number;
1354
- readonly behavior: import("effect/Schema").String;
1355
- readonly suggestedTestName: import("effect/Schema").NullOr<import("effect/Schema").String>;
1356
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1357
- readonly createdAt: import("effect/Schema").String;
1358
- }>>;
1359
- }, "Type">;
1339
+ behavior: {
1340
+ readonly id: number;
1341
+ readonly goalId: number;
1342
+ readonly ordinal: number;
1343
+ readonly behavior: string;
1344
+ readonly suggestedTestName: string | null;
1345
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1346
+ readonly createdAt: string;
1347
+ readonly parentGoal: {
1348
+ readonly id: number;
1349
+ readonly goal: string;
1350
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1351
+ };
1352
+ readonly dependencies: readonly {
1353
+ readonly id: number;
1354
+ readonly goalId: number;
1355
+ readonly ordinal: number;
1356
+ readonly behavior: string;
1357
+ readonly suggestedTestName: string | null;
1358
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1359
+ readonly createdAt: string;
1360
+ }[];
1361
+ };
1360
1362
  id?: undefined;
1361
1363
  } | {
1362
1364
  ok: true;
1363
1365
  action: "list_by_goal";
1364
1366
  goalId: number;
1365
- behaviors: readonly import("effect/Schema").Struct.ReadonlySide<{
1366
- readonly id: import("effect/Schema").Number;
1367
- readonly goalId: import("effect/Schema").Number;
1368
- readonly ordinal: import("effect/Schema").Number;
1369
- readonly behavior: import("effect/Schema").String;
1370
- readonly suggestedTestName: import("effect/Schema").NullOr<import("effect/Schema").String>;
1371
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1372
- readonly createdAt: import("effect/Schema").String;
1373
- }, "Type">[];
1367
+ behaviors: readonly {
1368
+ readonly id: number;
1369
+ readonly goalId: number;
1370
+ readonly ordinal: number;
1371
+ readonly behavior: string;
1372
+ readonly suggestedTestName: string | null;
1373
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1374
+ readonly createdAt: string;
1375
+ }[];
1374
1376
  } | {
1375
1377
  ok: true;
1376
1378
  action: "list_by_tdd_task";
1377
1379
  tddTaskId: number;
1378
- behaviors: readonly import("effect/Schema").Struct.ReadonlySide<{
1379
- readonly id: import("effect/Schema").Number;
1380
- readonly goalId: import("effect/Schema").Number;
1381
- readonly ordinal: import("effect/Schema").Number;
1382
- readonly behavior: import("effect/Schema").String;
1383
- readonly suggestedTestName: import("effect/Schema").NullOr<import("effect/Schema").String>;
1384
- readonly status: import("effect/Schema").Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
1385
- readonly createdAt: import("effect/Schema").String;
1386
- }, "Type">[];
1380
+ behaviors: readonly {
1381
+ readonly id: number;
1382
+ readonly goalId: number;
1383
+ readonly ordinal: number;
1384
+ readonly behavior: string;
1385
+ readonly suggestedTestName: string | null;
1386
+ readonly status: "abandoned" | "done" | "in_progress" | "pending";
1387
+ readonly createdAt: string;
1388
+ }[];
1387
1389
  };
1388
1390
  meta: object;
1389
1391
  }>;
@@ -1395,27 +1397,27 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1395
1397
  readonly behaviorId?: number | undefined;
1396
1398
  readonly limit?: number | undefined;
1397
1399
  };
1398
- output: import("effect/Schema").Struct.ReadonlySide<{
1399
- readonly tddTaskId: import("effect/Schema").Number;
1400
- readonly filters: import("effect/Schema").Struct<{
1401
- readonly artifactKind: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["test_written", "test_failed_run", "code_written", "test_passed_run", "refactor", "test_weakened"]>>;
1402
- readonly phaseId: import("effect/Schema").optional<import("effect/Schema").Number>;
1403
- readonly behaviorId: import("effect/Schema").optional<import("effect/Schema").Number>;
1404
- }>;
1405
- readonly count: import("effect/Schema").Number;
1406
- readonly artifacts: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1407
- readonly id: import("effect/Schema").Number;
1408
- readonly tddTaskId: import("effect/Schema").Number;
1409
- readonly phaseId: import("effect/Schema").Number;
1410
- readonly phaseName: import("effect/Schema").Literals<readonly ["spike", "red", "red.triangulate", "green", "green.fake-it", "refactor", "extended-red", "green-without-red"]>;
1411
- readonly artifactKind: import("effect/Schema").Literals<readonly ["test_written", "test_failed_run", "code_written", "test_passed_run", "refactor", "test_weakened"]>;
1412
- readonly behaviorId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1413
- readonly testCaseId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1414
- readonly testRunId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1415
- readonly testFirstFailureRunId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1416
- readonly recordedAt: import("effect/Schema").String;
1417
- }>>;
1418
- }, "Type">;
1400
+ output: {
1401
+ readonly tddTaskId: number;
1402
+ readonly filters: {
1403
+ readonly artifactKind?: "code_written" | "refactor" | "test_failed_run" | "test_passed_run" | "test_weakened" | "test_written" | undefined;
1404
+ readonly phaseId?: number | undefined;
1405
+ readonly behaviorId?: number | undefined;
1406
+ };
1407
+ readonly count: number;
1408
+ readonly artifacts: readonly {
1409
+ readonly id: number;
1410
+ readonly tddTaskId: number;
1411
+ readonly phaseId: number;
1412
+ readonly phaseName: "extended-red" | "green" | "green-without-red" | "green.fake-it" | "red" | "red.triangulate" | "refactor" | "spike";
1413
+ readonly artifactKind: "code_written" | "refactor" | "test_failed_run" | "test_passed_run" | "test_weakened" | "test_written";
1414
+ readonly behaviorId: number | null;
1415
+ readonly testCaseId: number | null;
1416
+ readonly testRunId: number | null;
1417
+ readonly testFirstFailureRunId: number | null;
1418
+ readonly recordedAt: string;
1419
+ }[];
1420
+ };
1419
1421
  meta: object;
1420
1422
  }>;
1421
1423
  hypothesis: import("@trpc/server").TRPCMutationProcedure<{
@@ -1439,50 +1441,50 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1439
1441
  readonly outcome?: "abandoned" | "confirmed" | "open" | "refuted" | undefined;
1440
1442
  readonly limit?: number | undefined;
1441
1443
  };
1442
- output: import("effect/Schema").Struct.ReadonlySide<{
1443
- readonly action: import("effect/Schema").Literal<"record">;
1444
- readonly id: import("effect/Schema").Number;
1445
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1446
- readonly action: import("effect/Schema").Literal<"validate">;
1447
- }, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
1448
- readonly action: import("effect/Schema").Literal<"list">;
1449
- readonly count: import("effect/Schema").Number;
1450
- readonly hypotheses: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1451
- readonly id: import("effect/Schema").Number;
1452
- readonly sessionId: import("effect/Schema").Number;
1453
- readonly content: import("effect/Schema").String;
1454
- readonly citedTestErrorId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1455
- readonly citedStackFrameId: import("effect/Schema").NullOr<import("effect/Schema").Number>;
1456
- readonly validationOutcome: import("effect/Schema").NullOr<import("effect/Schema").Literals<readonly ["confirmed", "refuted", "abandoned"]>>;
1457
- readonly validatedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
1458
- }>>;
1459
- }, "Type">;
1444
+ output: {
1445
+ readonly action: "record";
1446
+ readonly id: number;
1447
+ } | {
1448
+ readonly action: "validate";
1449
+ } | {
1450
+ readonly action: "list";
1451
+ readonly count: number;
1452
+ readonly hypotheses: readonly {
1453
+ readonly id: number;
1454
+ readonly sessionId: number;
1455
+ readonly content: string;
1456
+ readonly citedTestErrorId: number | null;
1457
+ readonly citedStackFrameId: number | null;
1458
+ readonly validationOutcome: "abandoned" | "confirmed" | "refuted" | null;
1459
+ readonly validatedAt: string | null;
1460
+ }[];
1461
+ };
1460
1462
  meta: object;
1461
1463
  }>;
1462
1464
  acceptance_metrics: import("@trpc/server").TRPCQueryProcedure<{
1463
- input: import("effect/Schema").Struct.ReadonlySide<{}, "Encoded">;
1464
- output: import("effect/Schema").Struct.ReadonlySide<{
1465
- readonly phaseEvidenceIntegrity: import("effect/Schema").Struct<{
1466
- readonly total: import("effect/Schema").Number;
1467
- readonly compliant: import("effect/Schema").Number;
1468
- readonly ratio: import("effect/Schema").Number;
1469
- }>;
1470
- readonly complianceHookResponsiveness: import("effect/Schema").Struct<{
1471
- readonly total: import("effect/Schema").Number;
1472
- readonly withFollowup: import("effect/Schema").Number;
1473
- readonly ratio: import("effect/Schema").Number;
1474
- }>;
1475
- readonly orientationUsefulness: import("effect/Schema").Struct<{
1476
- readonly total: import("effect/Schema").Number;
1477
- readonly referencedCount: import("effect/Schema").Number;
1478
- readonly ratio: import("effect/Schema").Number;
1479
- }>;
1480
- readonly antiPatternDetectionRate: import("effect/Schema").Struct<{
1481
- readonly total: import("effect/Schema").Number;
1482
- readonly cleanSessions: import("effect/Schema").Number;
1483
- readonly ratio: import("effect/Schema").Number;
1484
- }>;
1485
- }, "Type">;
1465
+ input: {};
1466
+ output: {
1467
+ readonly phaseEvidenceIntegrity: {
1468
+ readonly total: number;
1469
+ readonly compliant: number;
1470
+ readonly ratio: number;
1471
+ };
1472
+ readonly complianceHookResponsiveness: {
1473
+ readonly total: number;
1474
+ readonly withFollowup: number;
1475
+ readonly ratio: number;
1476
+ };
1477
+ readonly orientationUsefulness: {
1478
+ readonly total: number;
1479
+ readonly referencedCount: number;
1480
+ readonly ratio: number;
1481
+ };
1482
+ readonly antiPatternDetectionRate: {
1483
+ readonly total: number;
1484
+ readonly cleanSessions: number;
1485
+ readonly ratio: number;
1486
+ };
1487
+ };
1486
1488
  meta: object;
1487
1489
  }>;
1488
1490
  triage_brief: import("@trpc/server").TRPCQueryProcedure<{
@@ -1490,10 +1492,10 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1490
1492
  readonly project?: string | undefined;
1491
1493
  readonly maxLines?: number | undefined;
1492
1494
  };
1493
- output: import("effect/Schema").Struct.ReadonlySide<{
1494
- readonly hasContent: import("effect/Schema").Boolean;
1495
- readonly markdown: import("effect/Schema").String;
1496
- }, "Type">;
1495
+ output: {
1496
+ readonly hasContent: boolean;
1497
+ readonly markdown: string;
1498
+ };
1497
1499
  meta: object;
1498
1500
  }>;
1499
1501
  wrapup_prompt: import("@trpc/server").TRPCQueryProcedure<{
@@ -1503,11 +1505,11 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1503
1505
  readonly kind?: "pre_compact" | "session_end" | "stop" | "tdd_handoff" | "user_prompt_nudge" | undefined;
1504
1506
  readonly userPromptHint?: string | undefined;
1505
1507
  };
1506
- output: import("effect/Schema").Struct.ReadonlySide<{
1507
- readonly hasContent: import("effect/Schema").Boolean;
1508
- readonly kind: import("effect/Schema").Literals<readonly ["stop", "session_end", "pre_compact", "tdd_handoff", "user_prompt_nudge"]>;
1509
- readonly markdown: import("effect/Schema").String;
1510
- }, "Type">;
1508
+ output: {
1509
+ readonly hasContent: boolean;
1510
+ readonly kind: "pre_compact" | "session_end" | "stop" | "tdd_handoff" | "user_prompt_nudge";
1511
+ readonly markdown: string;
1512
+ };
1511
1513
  meta: object;
1512
1514
  }>;
1513
1515
  commit_changes: import("@trpc/server").TRPCQueryProcedure<{
@@ -1517,26 +1519,26 @@ declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1517
1519
  output: {
1518
1520
  readonly filterSha?: string | undefined;
1519
1521
  readonly count: number;
1520
- readonly commits: readonly import("effect/Schema").Struct.ReadonlySide<{
1521
- readonly sha: import("effect/Schema").String;
1522
- readonly parentSha: import("effect/Schema").NullOr<import("effect/Schema").String>;
1523
- readonly message: import("effect/Schema").NullOr<import("effect/Schema").String>;
1524
- readonly author: import("effect/Schema").NullOr<import("effect/Schema").String>;
1525
- readonly committedAt: import("effect/Schema").NullOr<import("effect/Schema").String>;
1526
- readonly branch: import("effect/Schema").NullOr<import("effect/Schema").String>;
1527
- readonly files: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1528
- readonly filePath: import("effect/Schema").String;
1529
- readonly changeKind: import("effect/Schema").Literals<readonly ["added", "modified", "deleted", "renamed", "untracked-modified"]>;
1530
- }>>;
1531
- }, "Type">[];
1522
+ readonly commits: readonly {
1523
+ readonly sha: string;
1524
+ readonly parentSha: string | null;
1525
+ readonly message: string | null;
1526
+ readonly author: string | null;
1527
+ readonly committedAt: string | null;
1528
+ readonly branch: string | null;
1529
+ readonly files: readonly {
1530
+ readonly filePath: string;
1531
+ readonly changeKind: "added" | "deleted" | "modified" | "renamed" | "untracked-modified";
1532
+ }[];
1533
+ }[];
1532
1534
  };
1533
1535
  meta: object;
1534
1536
  }>;
1535
1537
  ping: import("@trpc/server").TRPCQueryProcedure<{
1536
1538
  input: void;
1537
- output: import("effect/Schema").Struct.ReadonlySide<{
1538
- readonly message: import("effect/Schema").Literal<"pong">;
1539
- }, "Type">;
1539
+ output: {
1540
+ readonly message: "pong";
1541
+ };
1540
1542
  meta: object;
1541
1543
  }>;
1542
1544
  }>>;