@vitest-agent/mcp 5.3.1 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +2376 -69
- package/index.js +31 -27
- package/package.json +4 -4
- package/tools/hypothesis.js +6 -1
- package/tools/tdd-behavior.js +5 -0
- package/tools/tdd-goal.js +5 -0
- package/tools/tdd-task.js +6 -1
- package/version.js +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ToolRefusal } from "@effected/mcp";
|
|
1
|
+
import { ToolRefusal, ToolRefusal as ToolRefusal$1 } from "@effected/mcp";
|
|
2
2
|
import { Context, Effect, Layer, Schema, Stdio } from "effect";
|
|
3
3
|
import { DataReader, DataStore, ProjectDiscovery, SessionContext } from "@vitest-agent/engine";
|
|
4
|
-
import { McpServer, Toolkit } from "effect/ai";
|
|
4
|
+
import { McpServer, Tool, Toolkit } from "effect/ai";
|
|
5
5
|
import "@effected/git";
|
|
6
6
|
import "@vitest-agent/sdk";
|
|
7
7
|
import { Remediation } from "@effected/engine";
|
|
@@ -230,7 +230,40 @@ type AcceptanceMetricsResultType = Schema.Schema.Type<typeof AcceptanceMetricsRe
|
|
|
230
230
|
*
|
|
231
231
|
* @public
|
|
232
232
|
*/
|
|
233
|
-
declare const handleAcceptanceMetrics: () => Effect.Effect<AcceptanceMetricsResultType, never, DataReader>;
|
|
233
|
+
export declare const handleAcceptanceMetrics: () => Effect.Effect<AcceptanceMetricsResultType, never, DataReader>;
|
|
234
|
+
/**
|
|
235
|
+
* The Effect-native `acceptance_metrics` tool. No parameters (the default
|
|
236
|
+
* `Tool.EmptyParams` serves as a strict empty object).
|
|
237
|
+
*
|
|
238
|
+
* @public
|
|
239
|
+
*/
|
|
240
|
+
export declare const acceptanceMetricsTool: Tool.Tool<"acceptance_metrics", {
|
|
241
|
+
readonly parameters: Tool.EmptyParams;
|
|
242
|
+
readonly success: Schema.Struct<{
|
|
243
|
+
readonly phaseEvidenceIntegrity: Schema.Struct<{
|
|
244
|
+
readonly total: Schema.Finite;
|
|
245
|
+
readonly compliant: Schema.Finite;
|
|
246
|
+
readonly ratio: Schema.Finite;
|
|
247
|
+
}>;
|
|
248
|
+
readonly complianceHookResponsiveness: Schema.Struct<{
|
|
249
|
+
readonly total: Schema.Finite;
|
|
250
|
+
readonly withFollowup: Schema.Finite;
|
|
251
|
+
readonly ratio: Schema.Finite;
|
|
252
|
+
}>;
|
|
253
|
+
readonly orientationUsefulness: Schema.Struct<{
|
|
254
|
+
readonly total: Schema.Finite;
|
|
255
|
+
readonly referencedCount: Schema.Finite;
|
|
256
|
+
readonly ratio: Schema.Finite;
|
|
257
|
+
}>;
|
|
258
|
+
readonly antiPatternDetectionRate: Schema.Struct<{
|
|
259
|
+
readonly total: Schema.Finite;
|
|
260
|
+
readonly cleanSessions: Schema.Finite;
|
|
261
|
+
readonly ratio: Schema.Finite;
|
|
262
|
+
}>;
|
|
263
|
+
}>;
|
|
264
|
+
readonly failure: Schema.Never;
|
|
265
|
+
readonly failureMode: "error";
|
|
266
|
+
}, DataReader>;
|
|
234
267
|
/**
|
|
235
268
|
* The `cache_health` tool's success payload.
|
|
236
269
|
*
|
|
@@ -265,7 +298,36 @@ type CacheHealthResultType = Schema.Schema.Type<typeof CacheHealthResult>;
|
|
|
265
298
|
*
|
|
266
299
|
* @public
|
|
267
300
|
*/
|
|
268
|
-
declare const handleCacheHealth: () => Effect.Effect<CacheHealthResultType, never, DataReader>;
|
|
301
|
+
export declare const handleCacheHealth: () => Effect.Effect<CacheHealthResultType, never, DataReader>;
|
|
302
|
+
/**
|
|
303
|
+
* The Effect-native `cache_health` tool. No parameters (the default
|
|
304
|
+
* `Tool.EmptyParams` serves as a strict empty object).
|
|
305
|
+
*
|
|
306
|
+
* @public
|
|
307
|
+
*/
|
|
308
|
+
export declare const cacheHealthTool: Tool.Tool<"cache_health", {
|
|
309
|
+
readonly parameters: Tool.EmptyParams;
|
|
310
|
+
readonly success: Schema.Union<readonly [Schema.Struct<{
|
|
311
|
+
readonly manifestPresent: Schema.Literal<true>;
|
|
312
|
+
readonly manifest: Schema.Struct<{
|
|
313
|
+
readonly updatedAt: Schema.String;
|
|
314
|
+
readonly cacheDir: Schema.String;
|
|
315
|
+
readonly projects: Schema.$Array<Schema.Struct<{
|
|
316
|
+
readonly project: Schema.String;
|
|
317
|
+
readonly reportFile: Schema.String;
|
|
318
|
+
readonly historyFile: Schema.optional<Schema.String>;
|
|
319
|
+
readonly lastRun: Schema.NullOr<Schema.String>;
|
|
320
|
+
readonly lastResult: Schema.NullOr<Schema.Literals<readonly ["passed", "failed", "interrupted"]>>;
|
|
321
|
+
}>>;
|
|
322
|
+
}>;
|
|
323
|
+
readonly ageMs: Schema.Finite;
|
|
324
|
+
readonly stale: Schema.Boolean;
|
|
325
|
+
}>, Schema.Struct<{
|
|
326
|
+
readonly manifestPresent: Schema.Literal<false>;
|
|
327
|
+
}>]>;
|
|
328
|
+
readonly failure: Schema.Never;
|
|
329
|
+
readonly failureMode: "error";
|
|
330
|
+
}, DataReader>;
|
|
269
331
|
/**
|
|
270
332
|
* The `commit_changes` tool's success payload.
|
|
271
333
|
*
|
|
@@ -312,7 +374,35 @@ type CommitChangesInputType = Schema.Schema.Type<typeof CommitChangesInput>;
|
|
|
312
374
|
*
|
|
313
375
|
* @public
|
|
314
376
|
*/
|
|
315
|
-
declare const handleCommitChanges: (input: CommitChangesInputType) => Effect.Effect<CommitChangesResultType, never, DataReader>;
|
|
377
|
+
export declare const handleCommitChanges: (input: CommitChangesInputType) => Effect.Effect<CommitChangesResultType, never, DataReader>;
|
|
378
|
+
/**
|
|
379
|
+
* The Effect-native `commit_changes` tool.
|
|
380
|
+
*
|
|
381
|
+
* @public
|
|
382
|
+
*/
|
|
383
|
+
export declare const commitChangesTool: Tool.Tool<"commit_changes", {
|
|
384
|
+
readonly parameters: Schema.Struct<{
|
|
385
|
+
readonly sha: Schema.optionalKey<Schema.String>;
|
|
386
|
+
}>;
|
|
387
|
+
readonly success: Schema.Struct<{
|
|
388
|
+
readonly filterSha: Schema.optional<Schema.String>;
|
|
389
|
+
readonly count: Schema.Finite;
|
|
390
|
+
readonly commits: Schema.$Array<Schema.Struct<{
|
|
391
|
+
readonly sha: Schema.String;
|
|
392
|
+
readonly parentSha: Schema.NullOr<Schema.String>;
|
|
393
|
+
readonly message: Schema.NullOr<Schema.String>;
|
|
394
|
+
readonly author: Schema.NullOr<Schema.String>;
|
|
395
|
+
readonly committedAt: Schema.NullOr<Schema.String>;
|
|
396
|
+
readonly branch: Schema.NullOr<Schema.String>;
|
|
397
|
+
readonly files: Schema.$Array<Schema.Struct<{
|
|
398
|
+
readonly filePath: Schema.String;
|
|
399
|
+
readonly changeKind: Schema.Literals<readonly ["added", "modified", "deleted", "renamed", "untracked-modified"]>;
|
|
400
|
+
}>>;
|
|
401
|
+
}>>;
|
|
402
|
+
}>;
|
|
403
|
+
readonly failure: Schema.Never;
|
|
404
|
+
readonly failureMode: "error";
|
|
405
|
+
}, DataReader>;
|
|
316
406
|
/**
|
|
317
407
|
* The `configure` tool's success payload.
|
|
318
408
|
*
|
|
@@ -365,7 +455,41 @@ type ConfigureInputType = Schema.Schema.Type<typeof ConfigureInput>;
|
|
|
365
455
|
*
|
|
366
456
|
* @public
|
|
367
457
|
*/
|
|
368
|
-
declare const handleConfigure: (input: ConfigureInputType) => Effect.Effect<ConfigureResultType, never, DataReader>;
|
|
458
|
+
export declare const handleConfigure: (input: ConfigureInputType) => Effect.Effect<ConfigureResultType, never, DataReader>;
|
|
459
|
+
/**
|
|
460
|
+
* The Effect-native `configure` tool.
|
|
461
|
+
*
|
|
462
|
+
* @public
|
|
463
|
+
*/
|
|
464
|
+
export declare const configureTool: Tool.Tool<"configure", {
|
|
465
|
+
readonly parameters: Schema.Struct<{
|
|
466
|
+
readonly settingsHash: Schema.optionalKey<Schema.String>;
|
|
467
|
+
}>;
|
|
468
|
+
readonly success: Schema.Union<readonly [Schema.Struct<{
|
|
469
|
+
readonly found: Schema.Literal<true>;
|
|
470
|
+
readonly source: Schema.Literals<readonly ["requested", "latest"]>;
|
|
471
|
+
readonly settings: Schema.Struct<{
|
|
472
|
+
readonly hash: Schema.String;
|
|
473
|
+
readonly reporters: Schema.NullOr<Schema.String>;
|
|
474
|
+
readonly coverageEnabled: Schema.Boolean;
|
|
475
|
+
readonly coverageProvider: Schema.NullOr<Schema.String>;
|
|
476
|
+
readonly coverageThresholds: Schema.NullOr<Schema.String>;
|
|
477
|
+
readonly coverageTargets: Schema.NullOr<Schema.String>;
|
|
478
|
+
readonly pool: Schema.NullOr<Schema.String>;
|
|
479
|
+
readonly shard: Schema.NullOr<Schema.String>;
|
|
480
|
+
readonly project: Schema.NullOr<Schema.String>;
|
|
481
|
+
readonly environment: Schema.NullOr<Schema.String>;
|
|
482
|
+
readonly envVars: Schema.$Record<Schema.String, Schema.String>;
|
|
483
|
+
readonly capturedAt: Schema.String;
|
|
484
|
+
}>;
|
|
485
|
+
}>, Schema.Struct<{
|
|
486
|
+
readonly found: Schema.Literal<false>;
|
|
487
|
+
readonly source: Schema.Literals<readonly ["requested", "latest"]>;
|
|
488
|
+
readonly requestedHash: Schema.optional<Schema.String>;
|
|
489
|
+
}>]>;
|
|
490
|
+
readonly failure: Schema.Never;
|
|
491
|
+
readonly failureMode: "error";
|
|
492
|
+
}, DataReader>;
|
|
369
493
|
/**
|
|
370
494
|
* The `test_coverage` tool's success payload.
|
|
371
495
|
*
|
|
@@ -511,7 +635,134 @@ type TestCoverageInputType = Schema.Schema.Type<typeof TestCoverageInput>;
|
|
|
511
635
|
*
|
|
512
636
|
* @public
|
|
513
637
|
*/
|
|
514
|
-
declare const handleTestCoverage: (input: TestCoverageInputType) => Effect.Effect<TestCoverageResultType, never, DataReader>;
|
|
638
|
+
export declare const handleTestCoverage: (input: TestCoverageInputType) => Effect.Effect<TestCoverageResultType, never, DataReader>;
|
|
639
|
+
/**
|
|
640
|
+
* The Effect-native `test_coverage` tool.
|
|
641
|
+
*
|
|
642
|
+
* @public
|
|
643
|
+
*/
|
|
644
|
+
export declare const testCoverageTool: Tool.Tool<"test_coverage", {
|
|
645
|
+
readonly parameters: Schema.Struct<{
|
|
646
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
647
|
+
}>;
|
|
648
|
+
readonly success: Schema.Union<readonly [Schema.Struct<{
|
|
649
|
+
readonly dataAvailable: Schema.Literal<true>;
|
|
650
|
+
readonly project: Schema.String;
|
|
651
|
+
readonly coverage: Schema.Struct<{
|
|
652
|
+
readonly totals: Schema.Struct<{
|
|
653
|
+
readonly statements: Schema.Finite;
|
|
654
|
+
readonly branches: Schema.Finite;
|
|
655
|
+
readonly functions: Schema.Finite;
|
|
656
|
+
readonly lines: Schema.Finite;
|
|
657
|
+
}>;
|
|
658
|
+
readonly thresholds: Schema.Struct<{
|
|
659
|
+
readonly global: Schema.Struct<{
|
|
660
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
661
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
662
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
663
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
664
|
+
}>;
|
|
665
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
666
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
667
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
668
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
669
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
670
|
+
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
671
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
672
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
673
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
674
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
675
|
+
}>]>>;
|
|
676
|
+
}>]>>, never>;
|
|
677
|
+
}>;
|
|
678
|
+
readonly targets: Schema.optional<Schema.Struct<{
|
|
679
|
+
readonly global: Schema.Struct<{
|
|
680
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
681
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
682
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
683
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
684
|
+
}>;
|
|
685
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
686
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
687
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
688
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
689
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
690
|
+
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
691
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
692
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
693
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
694
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
695
|
+
}>]>>;
|
|
696
|
+
}>]>>, never>;
|
|
697
|
+
}>>;
|
|
698
|
+
readonly baselines: Schema.optional<Schema.Struct<{
|
|
699
|
+
readonly global: Schema.Struct<{
|
|
700
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
701
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
702
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
703
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
704
|
+
}>;
|
|
705
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
706
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
707
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
708
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
709
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
710
|
+
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
711
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
712
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
713
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
714
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
715
|
+
}>]>>;
|
|
716
|
+
}>]>>, never>;
|
|
717
|
+
}>>;
|
|
718
|
+
readonly scoped: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
719
|
+
readonly scopedFiles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
720
|
+
readonly totalFiles: Schema.optional<Schema.Finite>;
|
|
721
|
+
readonly lowCoverage: Schema.$Array<Schema.Struct<{
|
|
722
|
+
readonly file: Schema.String;
|
|
723
|
+
readonly summary: Schema.Struct<{
|
|
724
|
+
readonly statements: Schema.Finite;
|
|
725
|
+
readonly branches: Schema.Finite;
|
|
726
|
+
readonly functions: Schema.Finite;
|
|
727
|
+
readonly lines: Schema.Finite;
|
|
728
|
+
}>;
|
|
729
|
+
readonly uncoveredLines: Schema.String;
|
|
730
|
+
}>>;
|
|
731
|
+
readonly lowCoverageFiles: Schema.$Array<Schema.String>;
|
|
732
|
+
readonly belowTarget: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
733
|
+
readonly file: Schema.String;
|
|
734
|
+
readonly summary: Schema.Struct<{
|
|
735
|
+
readonly statements: Schema.Finite;
|
|
736
|
+
readonly branches: Schema.Finite;
|
|
737
|
+
readonly functions: Schema.Finite;
|
|
738
|
+
readonly lines: Schema.Finite;
|
|
739
|
+
}>;
|
|
740
|
+
readonly uncoveredLines: Schema.String;
|
|
741
|
+
}>>>;
|
|
742
|
+
readonly belowTargetFiles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
743
|
+
readonly globShortfalls: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
744
|
+
readonly pattern: Schema.String;
|
|
745
|
+
readonly summary: Schema.Struct<{
|
|
746
|
+
readonly statements: Schema.Finite;
|
|
747
|
+
readonly branches: Schema.Finite;
|
|
748
|
+
readonly functions: Schema.Finite;
|
|
749
|
+
readonly lines: Schema.Finite;
|
|
750
|
+
}>;
|
|
751
|
+
readonly thresholds: Schema.Struct<{
|
|
752
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
753
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
754
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
755
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
756
|
+
}>;
|
|
757
|
+
}>>>;
|
|
758
|
+
}>;
|
|
759
|
+
}>, Schema.Struct<{
|
|
760
|
+
readonly dataAvailable: Schema.Literal<false>;
|
|
761
|
+
readonly project: Schema.String;
|
|
762
|
+
}>]>;
|
|
763
|
+
readonly failure: Schema.Never;
|
|
764
|
+
readonly failureMode: "error";
|
|
765
|
+
}, DataReader>;
|
|
515
766
|
/**
|
|
516
767
|
* The `test_errors` tool's success payload — populates `structuredContent`.
|
|
517
768
|
*
|
|
@@ -570,7 +821,47 @@ type TestErrorsInputType = Schema.Schema.Type<typeof TestErrorsInput>;
|
|
|
570
821
|
*
|
|
571
822
|
* @public
|
|
572
823
|
*/
|
|
573
|
-
declare const handleTestErrors: (input: TestErrorsInputType) => Effect.Effect<TestErrorsResultType, never, DataReader>;
|
|
824
|
+
export declare const handleTestErrors: (input: TestErrorsInputType) => Effect.Effect<TestErrorsResultType, never, DataReader>;
|
|
825
|
+
/**
|
|
826
|
+
* The Effect-native `test_errors` tool.
|
|
827
|
+
*
|
|
828
|
+
* @public
|
|
829
|
+
*/
|
|
830
|
+
export declare const testErrorsTool: Tool.Tool<"test_errors", {
|
|
831
|
+
readonly parameters: Schema.Struct<{
|
|
832
|
+
readonly project: Schema.String;
|
|
833
|
+
readonly errorName: Schema.optionalKey<Schema.String>;
|
|
834
|
+
}>;
|
|
835
|
+
readonly success: Schema.Struct<{
|
|
836
|
+
readonly project: Schema.String;
|
|
837
|
+
readonly errorName: Schema.optional<Schema.String>;
|
|
838
|
+
readonly count: Schema.Finite;
|
|
839
|
+
readonly errors: Schema.$Array<Schema.Struct<{
|
|
840
|
+
readonly id: Schema.Finite;
|
|
841
|
+
readonly topStackFrameId: Schema.NullOr<Schema.Number>;
|
|
842
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
843
|
+
readonly message: Schema.String;
|
|
844
|
+
readonly diff: Schema.NullOr<Schema.String>;
|
|
845
|
+
readonly actual: Schema.NullOr<Schema.String>;
|
|
846
|
+
readonly expected: Schema.NullOr<Schema.String>;
|
|
847
|
+
readonly stack: Schema.NullOr<Schema.String>;
|
|
848
|
+
readonly scope: Schema.Literals<readonly ["test", "suite", "module", "unhandled"]>;
|
|
849
|
+
readonly testFullName: Schema.NullOr<Schema.String>;
|
|
850
|
+
readonly moduleFile: Schema.NullOr<Schema.String>;
|
|
851
|
+
readonly annotations: Schema.$Array<Schema.Struct<{
|
|
852
|
+
readonly type: Schema.String;
|
|
853
|
+
readonly message: Schema.String;
|
|
854
|
+
readonly location: Schema.optional<Schema.Struct<{
|
|
855
|
+
readonly file: Schema.String;
|
|
856
|
+
readonly line: Schema.Number;
|
|
857
|
+
readonly column: Schema.Number;
|
|
858
|
+
}>>;
|
|
859
|
+
}>>;
|
|
860
|
+
}>>;
|
|
861
|
+
}>;
|
|
862
|
+
readonly failure: Schema.Never;
|
|
863
|
+
readonly failureMode: "error";
|
|
864
|
+
}, DataReader>;
|
|
574
865
|
/**
|
|
575
866
|
* The `failure_signature_get` tool's success payload.
|
|
576
867
|
*
|
|
@@ -617,7 +908,35 @@ type FailureSignatureGetInputType = Schema.Schema.Type<typeof FailureSignatureGe
|
|
|
617
908
|
*
|
|
618
909
|
* @public
|
|
619
910
|
*/
|
|
620
|
-
declare const handleFailureSignatureGet: (input: FailureSignatureGetInputType) => Effect.Effect<FailureSignatureGetResultType, never, DataReader>;
|
|
911
|
+
export declare const handleFailureSignatureGet: (input: FailureSignatureGetInputType) => Effect.Effect<FailureSignatureGetResultType, never, DataReader>;
|
|
912
|
+
/**
|
|
913
|
+
* The Effect-native `failure_signature_get` tool.
|
|
914
|
+
*
|
|
915
|
+
* @public
|
|
916
|
+
*/
|
|
917
|
+
export declare const failureSignatureGetTool: Tool.Tool<"failure_signature_get", {
|
|
918
|
+
readonly parameters: Schema.Struct<{
|
|
919
|
+
readonly hash: Schema.String;
|
|
920
|
+
}>;
|
|
921
|
+
readonly success: Schema.Union<readonly [Schema.Struct<{
|
|
922
|
+
readonly found: Schema.Literal<true>;
|
|
923
|
+
readonly signatureHash: Schema.String;
|
|
924
|
+
readonly firstSeenRunId: Schema.NullOr<Schema.Number>;
|
|
925
|
+
readonly firstSeenAt: Schema.String;
|
|
926
|
+
readonly lastSeenAt: Schema.NullOr<Schema.String>;
|
|
927
|
+
readonly occurrenceCount: Schema.Finite;
|
|
928
|
+
readonly recentErrors: Schema.$Array<Schema.Struct<{
|
|
929
|
+
readonly runId: Schema.Number;
|
|
930
|
+
readonly errorName: Schema.NullOr<Schema.String>;
|
|
931
|
+
readonly message: Schema.String;
|
|
932
|
+
}>>;
|
|
933
|
+
}>, Schema.Struct<{
|
|
934
|
+
readonly found: Schema.Literal<false>;
|
|
935
|
+
readonly requestedHash: Schema.String;
|
|
936
|
+
}>]>;
|
|
937
|
+
readonly failure: Schema.Never;
|
|
938
|
+
readonly failureMode: "error";
|
|
939
|
+
}, DataReader>;
|
|
621
940
|
/**
|
|
622
941
|
* The `file_coverage` tool's success payload.
|
|
623
942
|
*
|
|
@@ -685,7 +1004,56 @@ type FileCoverageInputType = Schema.Schema.Type<typeof FileCoverageInput>;
|
|
|
685
1004
|
*
|
|
686
1005
|
* @public
|
|
687
1006
|
*/
|
|
688
|
-
declare const handleFileCoverage: (input: FileCoverageInputType) => Effect.Effect<FileCoverageResultType, never, DataReader>;
|
|
1007
|
+
export declare const handleFileCoverage: (input: FileCoverageInputType) => Effect.Effect<FileCoverageResultType, never, DataReader>;
|
|
1008
|
+
/**
|
|
1009
|
+
* The Effect-native `file_coverage` tool.
|
|
1010
|
+
*
|
|
1011
|
+
* @public
|
|
1012
|
+
*/
|
|
1013
|
+
export declare const fileCoverageTool: Tool.Tool<"file_coverage", {
|
|
1014
|
+
readonly parameters: Schema.Struct<{
|
|
1015
|
+
readonly filePath: Schema.String;
|
|
1016
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
1017
|
+
}>;
|
|
1018
|
+
readonly success: Schema.Union<readonly [Schema.Struct<{
|
|
1019
|
+
readonly dataAvailable: Schema.Literal<true>;
|
|
1020
|
+
readonly matched: Schema.Literal<true>;
|
|
1021
|
+
readonly filePath: Schema.String;
|
|
1022
|
+
readonly report: Schema.Struct<{
|
|
1023
|
+
readonly file: Schema.String;
|
|
1024
|
+
readonly summary: Schema.Struct<{
|
|
1025
|
+
readonly statements: Schema.Finite;
|
|
1026
|
+
readonly branches: Schema.Finite;
|
|
1027
|
+
readonly functions: Schema.Finite;
|
|
1028
|
+
readonly lines: Schema.Finite;
|
|
1029
|
+
}>;
|
|
1030
|
+
readonly uncoveredLines: Schema.String;
|
|
1031
|
+
}>;
|
|
1032
|
+
readonly globalThresholds: Schema.Struct<{
|
|
1033
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
1034
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
1035
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
1036
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
1037
|
+
}>;
|
|
1038
|
+
readonly relatedTestFiles: Schema.$Array<Schema.String>;
|
|
1039
|
+
}>, Schema.Struct<{
|
|
1040
|
+
readonly dataAvailable: Schema.Literal<true>;
|
|
1041
|
+
readonly matched: Schema.Literal<false>;
|
|
1042
|
+
readonly filePath: Schema.String;
|
|
1043
|
+
readonly totals: Schema.Struct<{
|
|
1044
|
+
readonly statements: Schema.Finite;
|
|
1045
|
+
readonly branches: Schema.Finite;
|
|
1046
|
+
readonly functions: Schema.Finite;
|
|
1047
|
+
readonly lines: Schema.Finite;
|
|
1048
|
+
}>;
|
|
1049
|
+
readonly relatedTestFiles: Schema.$Array<Schema.String>;
|
|
1050
|
+
}>, Schema.Struct<{
|
|
1051
|
+
readonly dataAvailable: Schema.Literal<false>;
|
|
1052
|
+
readonly filePath: Schema.String;
|
|
1053
|
+
}>]>;
|
|
1054
|
+
readonly failure: Schema.Never;
|
|
1055
|
+
readonly failureMode: "error";
|
|
1056
|
+
}, DataReader>;
|
|
689
1057
|
/**
|
|
690
1058
|
* The `help` tool's success payload.
|
|
691
1059
|
*
|
|
@@ -700,12 +1068,26 @@ export declare const HelpResult: Schema.Struct<{
|
|
|
700
1068
|
* @public
|
|
701
1069
|
*/
|
|
702
1070
|
type HelpResultType = Schema.Schema.Type<typeof HelpResult>;
|
|
1071
|
+
/**
|
|
1072
|
+
* The Effect-native `help` tool. `structuredContent.helpText` carries the
|
|
1073
|
+
* markdown reference.
|
|
1074
|
+
*
|
|
1075
|
+
* @public
|
|
1076
|
+
*/
|
|
1077
|
+
export declare const helpTool: Tool.Tool<"help", {
|
|
1078
|
+
readonly parameters: Tool.EmptyParams;
|
|
1079
|
+
readonly success: Schema.Struct<{
|
|
1080
|
+
readonly helpText: Schema.String;
|
|
1081
|
+
}>;
|
|
1082
|
+
readonly failure: Schema.Never;
|
|
1083
|
+
readonly failureMode: "error";
|
|
1084
|
+
}, never>;
|
|
703
1085
|
/**
|
|
704
1086
|
* Handler for {@link helpTool}.
|
|
705
1087
|
*
|
|
706
1088
|
* @public
|
|
707
1089
|
*/
|
|
708
|
-
declare const handleHelp: () => Effect.Effect<HelpResultType>;
|
|
1090
|
+
export declare const handleHelp: () => Effect.Effect<HelpResultType>;
|
|
709
1091
|
/**
|
|
710
1092
|
* The `test_history` tool's success payload.
|
|
711
1093
|
*
|
|
@@ -792,7 +1174,75 @@ type TestHistoryInputType = Schema.Schema.Type<typeof TestHistoryInput>;
|
|
|
792
1174
|
*
|
|
793
1175
|
* @public
|
|
794
1176
|
*/
|
|
795
|
-
declare const handleTestHistory: (input: TestHistoryInputType) => Effect.Effect<TestHistoryResultType, never, DataReader>;
|
|
1177
|
+
export declare const handleTestHistory: (input: TestHistoryInputType) => Effect.Effect<TestHistoryResultType, never, DataReader>;
|
|
1178
|
+
/**
|
|
1179
|
+
* The Effect-native `test_history` tool.
|
|
1180
|
+
*
|
|
1181
|
+
* @public
|
|
1182
|
+
*/
|
|
1183
|
+
export declare const testHistoryTool: Tool.Tool<"test_history", {
|
|
1184
|
+
readonly parameters: Schema.Struct<{
|
|
1185
|
+
readonly project: Schema.String;
|
|
1186
|
+
readonly testName: Schema.optionalKey<Schema.String>;
|
|
1187
|
+
readonly modulePath: Schema.optionalKey<Schema.String>;
|
|
1188
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
1189
|
+
}>;
|
|
1190
|
+
readonly success: Schema.Struct<{
|
|
1191
|
+
readonly project: Schema.String;
|
|
1192
|
+
readonly hasData: Schema.Boolean;
|
|
1193
|
+
readonly history: Schema.Struct<{
|
|
1194
|
+
readonly project: Schema.String;
|
|
1195
|
+
readonly updatedAt: Schema.String;
|
|
1196
|
+
readonly tests: Schema.$Array<Schema.Struct<{
|
|
1197
|
+
readonly modulePath: Schema.String;
|
|
1198
|
+
readonly fullName: Schema.String;
|
|
1199
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
1200
|
+
readonly timestamp: Schema.String;
|
|
1201
|
+
readonly state: Schema.Literals<readonly ["passed", "failed"]>;
|
|
1202
|
+
}>>;
|
|
1203
|
+
}>>;
|
|
1204
|
+
}>;
|
|
1205
|
+
readonly flaky: Schema.$Array<Schema.Struct<{
|
|
1206
|
+
readonly fullName: Schema.String;
|
|
1207
|
+
readonly modulePath: Schema.String;
|
|
1208
|
+
readonly project: Schema.String;
|
|
1209
|
+
readonly passCount: Schema.Finite;
|
|
1210
|
+
readonly failCount: Schema.Finite;
|
|
1211
|
+
readonly lastState: Schema.Literals<readonly ["passed", "failed"]>;
|
|
1212
|
+
readonly lastTimestamp: Schema.String;
|
|
1213
|
+
}>>;
|
|
1214
|
+
readonly persistent: Schema.$Array<Schema.Struct<{
|
|
1215
|
+
readonly fullName: Schema.String;
|
|
1216
|
+
readonly modulePath: Schema.String;
|
|
1217
|
+
readonly project: Schema.String;
|
|
1218
|
+
readonly consecutiveFailures: Schema.Finite;
|
|
1219
|
+
readonly firstFailedAt: Schema.String;
|
|
1220
|
+
readonly lastFailedAt: Schema.String;
|
|
1221
|
+
readonly lastErrorMessage: Schema.NullOr<Schema.String>;
|
|
1222
|
+
}>>;
|
|
1223
|
+
readonly recovered: Schema.$Array<Schema.Struct<{
|
|
1224
|
+
readonly modulePath: Schema.String;
|
|
1225
|
+
readonly fullName: Schema.String;
|
|
1226
|
+
readonly recentRuns: Schema.$Array<Schema.Literals<readonly ["passed", "failed"]>>;
|
|
1227
|
+
}>>;
|
|
1228
|
+
readonly strayOutput: Schema.Struct<{
|
|
1229
|
+
readonly runs: Schema.Finite;
|
|
1230
|
+
readonly runsWithStrayOutput: Schema.Finite;
|
|
1231
|
+
readonly latest: Schema.NullOr<Schema.Struct<{
|
|
1232
|
+
readonly total: Schema.Finite;
|
|
1233
|
+
readonly stdout: Schema.Finite;
|
|
1234
|
+
readonly stderr: Schema.Finite;
|
|
1235
|
+
readonly bytes: Schema.Finite;
|
|
1236
|
+
readonly samples: Schema.$Array<Schema.Struct<{
|
|
1237
|
+
readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
|
|
1238
|
+
readonly text: Schema.String;
|
|
1239
|
+
}>>;
|
|
1240
|
+
}>>;
|
|
1241
|
+
}>;
|
|
1242
|
+
}>;
|
|
1243
|
+
readonly failure: Schema.Never;
|
|
1244
|
+
readonly failureMode: "error";
|
|
1245
|
+
}, DataReader>;
|
|
796
1246
|
/**
|
|
797
1247
|
* The `test_overview` tool's success payload.
|
|
798
1248
|
*
|
|
@@ -840,7 +1290,36 @@ type TestOverviewInputType = Schema.Schema.Type<typeof TestOverviewInput>;
|
|
|
840
1290
|
*
|
|
841
1291
|
* @public
|
|
842
1292
|
*/
|
|
843
|
-
declare const handleTestOverview: (input: TestOverviewInputType) => Effect.Effect<TestOverviewResultType, never, DataReader>;
|
|
1293
|
+
export declare const handleTestOverview: (input: TestOverviewInputType) => Effect.Effect<TestOverviewResultType, never, DataReader>;
|
|
1294
|
+
/**
|
|
1295
|
+
* The Effect-native `test_overview` tool.
|
|
1296
|
+
*
|
|
1297
|
+
* @public
|
|
1298
|
+
*/
|
|
1299
|
+
export declare const testOverviewTool: Tool.Tool<"test_overview", {
|
|
1300
|
+
readonly parameters: Schema.Struct<{
|
|
1301
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
1302
|
+
}>;
|
|
1303
|
+
readonly success: Schema.Union<readonly [Schema.Struct<{
|
|
1304
|
+
readonly dataAvailable: Schema.Literal<true>;
|
|
1305
|
+
readonly projectFilter: Schema.optional<Schema.String>;
|
|
1306
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
1307
|
+
readonly project: Schema.String;
|
|
1308
|
+
readonly lastRun: Schema.NullOr<Schema.String>;
|
|
1309
|
+
readonly lastResult: Schema.NullOr<Schema.Literals<readonly ["passed", "failed", "interrupted"]>>;
|
|
1310
|
+
readonly total: Schema.Number;
|
|
1311
|
+
readonly passed: Schema.Number;
|
|
1312
|
+
readonly failed: Schema.Number;
|
|
1313
|
+
readonly skipped: Schema.Number;
|
|
1314
|
+
}>>;
|
|
1315
|
+
}>, Schema.Struct<{
|
|
1316
|
+
readonly dataAvailable: Schema.Literal<false>;
|
|
1317
|
+
readonly projectFilter: Schema.optional<Schema.String>;
|
|
1318
|
+
readonly reason: Schema.Literals<readonly ["no_runs", "project_filter_empty"]>;
|
|
1319
|
+
}>]>;
|
|
1320
|
+
readonly failure: Schema.Never;
|
|
1321
|
+
readonly failureMode: "error";
|
|
1322
|
+
}, DataReader>;
|
|
844
1323
|
/**
|
|
845
1324
|
* The `ping` tool's success payload.
|
|
846
1325
|
*
|
|
@@ -859,12 +1338,31 @@ export declare const PingResult: Schema.Struct<{
|
|
|
859
1338
|
* @public
|
|
860
1339
|
*/
|
|
861
1340
|
type PingResultType = Schema.Schema.Type<typeof PingResult>;
|
|
1341
|
+
/**
|
|
1342
|
+
* The Effect-native `ping` tool. No parameters (the default
|
|
1343
|
+
* `Tool.EmptyParams` serves as a strict empty object; `Schema.Struct({})`
|
|
1344
|
+
* would serialize to a non-object JSON Schema that MCP rejects).
|
|
1345
|
+
*
|
|
1346
|
+
* @public
|
|
1347
|
+
*/
|
|
1348
|
+
export declare const pingTool: Tool.Tool<"ping", {
|
|
1349
|
+
readonly parameters: Tool.EmptyParams;
|
|
1350
|
+
readonly success: Schema.Struct<{
|
|
1351
|
+
readonly message: Schema.Literal<"pong">;
|
|
1352
|
+
readonly distribution: Schema.NullOr<Schema.Struct<{
|
|
1353
|
+
readonly name: Schema.String;
|
|
1354
|
+
readonly version: Schema.String;
|
|
1355
|
+
}>>;
|
|
1356
|
+
}>;
|
|
1357
|
+
readonly failure: Schema.Never;
|
|
1358
|
+
readonly failureMode: "error";
|
|
1359
|
+
}, never>;
|
|
862
1360
|
/**
|
|
863
1361
|
* Handler for {@link pingTool}.
|
|
864
1362
|
*
|
|
865
1363
|
* @public
|
|
866
1364
|
*/
|
|
867
|
-
declare const handlePing: () => Effect.Effect<PingResultType>;
|
|
1365
|
+
export declare const handlePing: () => Effect.Effect<PingResultType>;
|
|
868
1366
|
/**
|
|
869
1367
|
* The `register_agent` tool's parameters.
|
|
870
1368
|
*
|
|
@@ -919,7 +1417,41 @@ type RegisterAgentOutput = Schema.Schema.Type<typeof RegisterAgentResult>;
|
|
|
919
1417
|
*
|
|
920
1418
|
* @public
|
|
921
1419
|
*/
|
|
922
|
-
declare const handleRegisterAgent: (input: RegisterAgentInputType) => Effect.Effect<RegisterAgentOutput, never, DataReader | DataStore>;
|
|
1420
|
+
export declare const handleRegisterAgent: (input: RegisterAgentInputType) => Effect.Effect<RegisterAgentOutput, never, DataReader | DataStore>;
|
|
1421
|
+
/**
|
|
1422
|
+
* The Effect-native `register_agent` tool.
|
|
1423
|
+
*
|
|
1424
|
+
* @public
|
|
1425
|
+
*/
|
|
1426
|
+
export declare const registerAgentTool: Tool.Tool<"register_agent", {
|
|
1427
|
+
readonly parameters: Schema.Struct<{
|
|
1428
|
+
readonly chatId: Schema.String;
|
|
1429
|
+
readonly conversationId: Schema.optionalKey<Schema.String>;
|
|
1430
|
+
readonly hostKind: Schema.optionalKey<Schema.String>;
|
|
1431
|
+
readonly agentType: Schema.String;
|
|
1432
|
+
readonly parentAgentId: Schema.optionalKey<Schema.String>;
|
|
1433
|
+
readonly clientNonce: Schema.optionalKey<Schema.String>;
|
|
1434
|
+
readonly startGitBranch: Schema.optionalKey<Schema.String>;
|
|
1435
|
+
readonly startGitCommitSha: Schema.optionalKey<Schema.String>;
|
|
1436
|
+
readonly startWorktreeDir: Schema.optionalKey<Schema.String>;
|
|
1437
|
+
}>;
|
|
1438
|
+
readonly success: Schema.Union<readonly [Schema.Struct<{
|
|
1439
|
+
readonly ok: Schema.Literal<true>;
|
|
1440
|
+
readonly agentId: Schema.String;
|
|
1441
|
+
readonly conversationId: Schema.NullOr<Schema.String>;
|
|
1442
|
+
readonly idempotencyKey: Schema.String;
|
|
1443
|
+
}>, Schema.Struct<{
|
|
1444
|
+
readonly ok: Schema.Literal<false>;
|
|
1445
|
+
readonly error: Schema.Struct<{
|
|
1446
|
+
readonly code: Schema.Literals<readonly ["AGENT_ALREADY_REGISTERED", "PARENT_AGENT_NOT_FOUND", "SESSION_NOT_FOUND", "INVALID_AGENT_TYPE_PREFIX"]>;
|
|
1447
|
+
readonly message: Schema.String;
|
|
1448
|
+
readonly existingAgentId: Schema.optional<Schema.String>;
|
|
1449
|
+
readonly expectedPrefix: Schema.optional<Schema.String>;
|
|
1450
|
+
}>;
|
|
1451
|
+
}>]>;
|
|
1452
|
+
readonly failure: Schema.Never;
|
|
1453
|
+
readonly failureMode: "error";
|
|
1454
|
+
}, DataReader | DataStore>;
|
|
923
1455
|
/**
|
|
924
1456
|
* The `run_tests` tool's success payload.
|
|
925
1457
|
*
|
|
@@ -1200,18 +1732,274 @@ type RunTestsInputType = Schema.Schema.Type<typeof RunTestsInput>;
|
|
|
1200
1732
|
*
|
|
1201
1733
|
* @public
|
|
1202
1734
|
*/
|
|
1203
|
-
declare const handleRunTests: (input: RunTestsInputType) => Effect.Effect<RunTestsResultType, never, McpSession | DataReader | DataStore>;
|
|
1735
|
+
export declare const handleRunTests: (input: RunTestsInputType) => Effect.Effect<RunTestsResultType, never, McpSession | DataReader | DataStore>;
|
|
1204
1736
|
/**
|
|
1205
|
-
* The `
|
|
1737
|
+
* The Effect-native `run_tests` tool.
|
|
1206
1738
|
*
|
|
1207
1739
|
* @public
|
|
1208
1740
|
*/
|
|
1209
|
-
export declare const
|
|
1210
|
-
readonly
|
|
1211
|
-
|
|
1212
|
-
readonly
|
|
1213
|
-
readonly
|
|
1214
|
-
|
|
1741
|
+
export declare const runTestsTool: Tool.Tool<"run_tests", {
|
|
1742
|
+
readonly parameters: Schema.Struct<{
|
|
1743
|
+
readonly files: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1744
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
1745
|
+
readonly projectRoot: Schema.optionalKey<Schema.String>;
|
|
1746
|
+
readonly tags: Schema.optionalKey<Schema.Struct<{
|
|
1747
|
+
readonly all: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1748
|
+
readonly any: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1749
|
+
readonly none: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1750
|
+
}>>;
|
|
1751
|
+
readonly passWithNoTests: Schema.optionalKey<Schema.Boolean>;
|
|
1752
|
+
readonly timeout: Schema.optionalKey<Schema.Finite>;
|
|
1753
|
+
readonly _sessionContext: Schema.optionalKey<Schema.Struct<{
|
|
1754
|
+
readonly chatId: Schema.String;
|
|
1755
|
+
readonly conversationId: Schema.String;
|
|
1756
|
+
readonly mainAgentId: Schema.String;
|
|
1757
|
+
}>>;
|
|
1758
|
+
}>;
|
|
1759
|
+
readonly success: Schema.Union<readonly [Schema.Struct<{
|
|
1760
|
+
readonly kind: Schema.Literal<"ok">;
|
|
1761
|
+
readonly project: Schema.optional<Schema.String>;
|
|
1762
|
+
readonly projectRoot: Schema.String;
|
|
1763
|
+
readonly scope: Schema.Struct<{
|
|
1764
|
+
readonly project: Schema.NullOr<Schema.String>;
|
|
1765
|
+
readonly files: Schema.$Array<Schema.String>;
|
|
1766
|
+
readonly tags: Schema.NullOr<Schema.Struct<{
|
|
1767
|
+
readonly all: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1768
|
+
readonly any: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1769
|
+
readonly none: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1770
|
+
}>>;
|
|
1771
|
+
}>;
|
|
1772
|
+
readonly report: Schema.Struct<{
|
|
1773
|
+
readonly timestamp: Schema.String;
|
|
1774
|
+
readonly project: Schema.optional<Schema.String>;
|
|
1775
|
+
readonly reason: Schema.Literals<readonly ["passed", "failed", "interrupted"]>;
|
|
1776
|
+
readonly summary: Schema.Struct<{
|
|
1777
|
+
readonly total: Schema.Finite;
|
|
1778
|
+
readonly passed: Schema.Finite;
|
|
1779
|
+
readonly failed: Schema.Finite;
|
|
1780
|
+
readonly skipped: Schema.Finite;
|
|
1781
|
+
readonly duration: Schema.Finite;
|
|
1782
|
+
readonly modules: Schema.optional<Schema.Finite>;
|
|
1783
|
+
}>;
|
|
1784
|
+
readonly failed: Schema.$Array<Schema.Struct<{
|
|
1785
|
+
readonly file: Schema.String;
|
|
1786
|
+
readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
|
|
1787
|
+
readonly duration: Schema.optional<Schema.Finite>;
|
|
1788
|
+
readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1789
|
+
readonly message: Schema.String;
|
|
1790
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
1791
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
1792
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
1793
|
+
readonly received: Schema.optional<Schema.String>;
|
|
1794
|
+
}>>>;
|
|
1795
|
+
readonly tests: Schema.$Array<Schema.Struct<{
|
|
1796
|
+
readonly name: Schema.String;
|
|
1797
|
+
readonly fullName: Schema.String;
|
|
1798
|
+
readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
|
|
1799
|
+
readonly duration: Schema.optional<Schema.Finite>;
|
|
1800
|
+
readonly flaky: Schema.optional<Schema.Boolean>;
|
|
1801
|
+
readonly slow: Schema.optional<Schema.Boolean>;
|
|
1802
|
+
readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1803
|
+
readonly message: Schema.String;
|
|
1804
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
1805
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
1806
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
1807
|
+
readonly received: Schema.optional<Schema.String>;
|
|
1808
|
+
}>>>;
|
|
1809
|
+
readonly classification: Schema.optional<Schema.Literals<readonly ["stable", "new-failure", "persistent", "flaky", "recovered"]>>;
|
|
1810
|
+
}>>;
|
|
1811
|
+
}>>;
|
|
1812
|
+
readonly unhandledErrors: Schema.$Array<Schema.Struct<{
|
|
1813
|
+
readonly message: Schema.String;
|
|
1814
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
1815
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
1816
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
1817
|
+
readonly received: Schema.optional<Schema.String>;
|
|
1818
|
+
}>>;
|
|
1819
|
+
readonly failedFiles: Schema.$Array<Schema.String>;
|
|
1820
|
+
readonly coverage: Schema.optional<Schema.Struct<{
|
|
1821
|
+
readonly totals: Schema.Struct<{
|
|
1822
|
+
readonly statements: Schema.Finite;
|
|
1823
|
+
readonly branches: Schema.Finite;
|
|
1824
|
+
readonly functions: Schema.Finite;
|
|
1825
|
+
readonly lines: Schema.Finite;
|
|
1826
|
+
}>;
|
|
1827
|
+
readonly thresholds: Schema.Struct<{
|
|
1828
|
+
readonly global: Schema.Struct<{
|
|
1829
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1830
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1831
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1832
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1833
|
+
}>;
|
|
1834
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
1835
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1836
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1837
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1838
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1839
|
+
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
1840
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1841
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1842
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1843
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1844
|
+
}>]>>;
|
|
1845
|
+
}>]>>, never>;
|
|
1846
|
+
}>;
|
|
1847
|
+
readonly targets: Schema.optional<Schema.Struct<{
|
|
1848
|
+
readonly global: Schema.Struct<{
|
|
1849
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1850
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1851
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1852
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1853
|
+
}>;
|
|
1854
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
1855
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1856
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1857
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1858
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1859
|
+
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
1860
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1861
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1862
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1863
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1864
|
+
}>]>>;
|
|
1865
|
+
}>]>>, never>;
|
|
1866
|
+
}>>;
|
|
1867
|
+
readonly baselines: Schema.optional<Schema.Struct<{
|
|
1868
|
+
readonly global: Schema.Struct<{
|
|
1869
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1870
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1871
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1872
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1873
|
+
}>;
|
|
1874
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
1875
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1876
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1877
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1878
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1879
|
+
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
1880
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1881
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1882
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1883
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1884
|
+
}>]>>;
|
|
1885
|
+
}>]>>, never>;
|
|
1886
|
+
}>>;
|
|
1887
|
+
readonly scoped: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
1888
|
+
readonly scopedFiles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1889
|
+
readonly totalFiles: Schema.optional<Schema.Finite>;
|
|
1890
|
+
readonly lowCoverage: Schema.$Array<Schema.Struct<{
|
|
1891
|
+
readonly file: Schema.String;
|
|
1892
|
+
readonly summary: Schema.Struct<{
|
|
1893
|
+
readonly statements: Schema.Finite;
|
|
1894
|
+
readonly branches: Schema.Finite;
|
|
1895
|
+
readonly functions: Schema.Finite;
|
|
1896
|
+
readonly lines: Schema.Finite;
|
|
1897
|
+
}>;
|
|
1898
|
+
readonly uncoveredLines: Schema.String;
|
|
1899
|
+
}>>;
|
|
1900
|
+
readonly lowCoverageFiles: Schema.$Array<Schema.String>;
|
|
1901
|
+
readonly belowTarget: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1902
|
+
readonly file: Schema.String;
|
|
1903
|
+
readonly summary: Schema.Struct<{
|
|
1904
|
+
readonly statements: Schema.Finite;
|
|
1905
|
+
readonly branches: Schema.Finite;
|
|
1906
|
+
readonly functions: Schema.Finite;
|
|
1907
|
+
readonly lines: Schema.Finite;
|
|
1908
|
+
}>;
|
|
1909
|
+
readonly uncoveredLines: Schema.String;
|
|
1910
|
+
}>>>;
|
|
1911
|
+
readonly belowTargetFiles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1912
|
+
readonly globShortfalls: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1913
|
+
readonly pattern: Schema.String;
|
|
1914
|
+
readonly summary: Schema.Struct<{
|
|
1915
|
+
readonly statements: Schema.Finite;
|
|
1916
|
+
readonly branches: Schema.Finite;
|
|
1917
|
+
readonly functions: Schema.Finite;
|
|
1918
|
+
readonly lines: Schema.Finite;
|
|
1919
|
+
}>;
|
|
1920
|
+
readonly thresholds: Schema.Struct<{
|
|
1921
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1922
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1923
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1924
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1925
|
+
}>;
|
|
1926
|
+
}>>>;
|
|
1927
|
+
}>>;
|
|
1928
|
+
readonly tagCounts: Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
1929
|
+
readonly passed: Schema.optional<Schema.Finite>;
|
|
1930
|
+
readonly failed: Schema.optional<Schema.Finite>;
|
|
1931
|
+
readonly skipped: Schema.optional<Schema.Finite>;
|
|
1932
|
+
}>>>;
|
|
1933
|
+
readonly consoleLeaks: Schema.optional<Schema.Struct<{
|
|
1934
|
+
readonly total: Schema.Finite;
|
|
1935
|
+
readonly byFile: Schema.$Array<Schema.Struct<{
|
|
1936
|
+
readonly file: Schema.String;
|
|
1937
|
+
readonly stdout: Schema.Finite;
|
|
1938
|
+
readonly stderr: Schema.Finite;
|
|
1939
|
+
readonly tests: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1940
|
+
readonly sample: Schema.optional<Schema.String>;
|
|
1941
|
+
}>>;
|
|
1942
|
+
readonly truncated: Schema.optional<Schema.Boolean>;
|
|
1943
|
+
readonly fromFailingTests: Schema.optional<Schema.Struct<{
|
|
1944
|
+
readonly total: Schema.Finite;
|
|
1945
|
+
readonly files: Schema.Finite;
|
|
1946
|
+
}>>;
|
|
1947
|
+
}>>;
|
|
1948
|
+
readonly strayOutput: Schema.optional<Schema.Struct<{
|
|
1949
|
+
readonly total: Schema.Finite;
|
|
1950
|
+
readonly stdout: Schema.Finite;
|
|
1951
|
+
readonly stderr: Schema.Finite;
|
|
1952
|
+
readonly bytes: Schema.Finite;
|
|
1953
|
+
readonly samples: Schema.$Array<Schema.Struct<{
|
|
1954
|
+
readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
|
|
1955
|
+
readonly text: Schema.String;
|
|
1956
|
+
}>>;
|
|
1957
|
+
}>>;
|
|
1958
|
+
}>;
|
|
1959
|
+
readonly classifications: Schema.$Record<Schema.String, Schema.String>;
|
|
1960
|
+
readonly discoveryLastScannedAt: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
1961
|
+
readonly scopedNote: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
1962
|
+
readonly suggestedActions: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1963
|
+
readonly severity: Schema.Literals<readonly ["info", "warn", "blocker"]>;
|
|
1964
|
+
readonly title: Schema.String;
|
|
1965
|
+
readonly detail: Schema.String;
|
|
1966
|
+
readonly targetTool: Schema.optional<Schema.String>;
|
|
1967
|
+
}>>>;
|
|
1968
|
+
}>, Schema.Struct<{
|
|
1969
|
+
readonly kind: Schema.Literal<"timeout">;
|
|
1970
|
+
readonly timeoutSeconds: Schema.Number;
|
|
1971
|
+
}>, Schema.Struct<{
|
|
1972
|
+
readonly kind: Schema.Literal<"error">;
|
|
1973
|
+
readonly message: Schema.String;
|
|
1974
|
+
readonly reason: Schema.optionalKey<Schema.Literals<readonly ["stale-install"]>>;
|
|
1975
|
+
}>, Schema.Struct<{
|
|
1976
|
+
readonly kind: Schema.Literal<"no-match">;
|
|
1977
|
+
readonly projectRoot: Schema.String;
|
|
1978
|
+
readonly filter: Schema.Struct<{
|
|
1979
|
+
readonly project: Schema.NullOr<Schema.String>;
|
|
1980
|
+
readonly files: Schema.$Array<Schema.String>;
|
|
1981
|
+
readonly tags: Schema.NullOr<Schema.Struct<{
|
|
1982
|
+
readonly all: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1983
|
+
readonly any: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1984
|
+
readonly none: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1985
|
+
}>>;
|
|
1986
|
+
readonly resolvedExpression: Schema.NullOr<Schema.String>;
|
|
1987
|
+
}>;
|
|
1988
|
+
}>]>;
|
|
1989
|
+
readonly failure: Schema.Never;
|
|
1990
|
+
readonly failureMode: "error";
|
|
1991
|
+
}, DataReader | DataStore | McpSession>;
|
|
1992
|
+
/**
|
|
1993
|
+
* The `settings_list` tool's success payload.
|
|
1994
|
+
*
|
|
1995
|
+
* @public
|
|
1996
|
+
*/
|
|
1997
|
+
export declare const SettingsListResult: Schema.Struct<{
|
|
1998
|
+
readonly count: Schema.Number;
|
|
1999
|
+
readonly settings: Schema.$Array<Schema.Struct<{
|
|
2000
|
+
readonly hash: Schema.String;
|
|
2001
|
+
readonly capturedAt: Schema.String;
|
|
2002
|
+
}>>;
|
|
1215
2003
|
}>;
|
|
1216
2004
|
/**
|
|
1217
2005
|
* The decoded {@link SettingsListResult}.
|
|
@@ -1224,7 +2012,25 @@ type SettingsListResultType = Schema.Schema.Type<typeof SettingsListResult>;
|
|
|
1224
2012
|
*
|
|
1225
2013
|
* @public
|
|
1226
2014
|
*/
|
|
1227
|
-
declare const handleSettingsList: () => Effect.Effect<SettingsListResultType, never, DataReader>;
|
|
2015
|
+
export declare const handleSettingsList: () => Effect.Effect<SettingsListResultType, never, DataReader>;
|
|
2016
|
+
/**
|
|
2017
|
+
* The Effect-native `settings_list` tool. No parameters (the default
|
|
2018
|
+
* `Tool.EmptyParams` serves as a strict empty object).
|
|
2019
|
+
*
|
|
2020
|
+
* @public
|
|
2021
|
+
*/
|
|
2022
|
+
export declare const settingsListTool: Tool.Tool<"settings_list", {
|
|
2023
|
+
readonly parameters: Tool.EmptyParams;
|
|
2024
|
+
readonly success: Schema.Struct<{
|
|
2025
|
+
readonly count: Schema.Number;
|
|
2026
|
+
readonly settings: Schema.$Array<Schema.Struct<{
|
|
2027
|
+
readonly hash: Schema.String;
|
|
2028
|
+
readonly capturedAt: Schema.String;
|
|
2029
|
+
}>>;
|
|
2030
|
+
}>;
|
|
2031
|
+
readonly failure: Schema.Never;
|
|
2032
|
+
readonly failureMode: "error";
|
|
2033
|
+
}, DataReader>;
|
|
1228
2034
|
/**
|
|
1229
2035
|
* The `test_status` tool's success payload.
|
|
1230
2036
|
*
|
|
@@ -1282,7 +2088,45 @@ type TestStatusInputType = Schema.Schema.Type<typeof TestStatusInput>;
|
|
|
1282
2088
|
*
|
|
1283
2089
|
* @public
|
|
1284
2090
|
*/
|
|
1285
|
-
declare const handleTestStatus: (input: TestStatusInputType) => Effect.Effect<TestStatusResultType, never, DataReader>;
|
|
2091
|
+
export declare const handleTestStatus: (input: TestStatusInputType) => Effect.Effect<TestStatusResultType, never, DataReader>;
|
|
2092
|
+
/**
|
|
2093
|
+
* The Effect-native `test_status` tool.
|
|
2094
|
+
*
|
|
2095
|
+
* @public
|
|
2096
|
+
*/
|
|
2097
|
+
export declare const testStatusTool: Tool.Tool<"test_status", {
|
|
2098
|
+
readonly parameters: Schema.Struct<{
|
|
2099
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
2100
|
+
}>;
|
|
2101
|
+
readonly success: Schema.Union<readonly [Schema.Struct<{
|
|
2102
|
+
readonly dataAvailable: Schema.Literal<true>;
|
|
2103
|
+
readonly manifestUpdatedAt: Schema.String;
|
|
2104
|
+
readonly projectFilter: Schema.optional<Schema.String>;
|
|
2105
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
2106
|
+
readonly project: Schema.String;
|
|
2107
|
+
readonly reportFile: Schema.String;
|
|
2108
|
+
readonly historyFile: Schema.optional<Schema.String>;
|
|
2109
|
+
readonly lastRun: Schema.NullOr<Schema.String>;
|
|
2110
|
+
readonly lastResult: Schema.NullOr<Schema.Literals<readonly ["passed", "failed", "interrupted"]>>;
|
|
2111
|
+
readonly strayOutput: Schema.optionalKey<Schema.Struct<{
|
|
2112
|
+
readonly total: Schema.Finite;
|
|
2113
|
+
readonly stdout: Schema.Finite;
|
|
2114
|
+
readonly stderr: Schema.Finite;
|
|
2115
|
+
readonly bytes: Schema.Finite;
|
|
2116
|
+
readonly samples: Schema.$Array<Schema.Struct<{
|
|
2117
|
+
readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
|
|
2118
|
+
readonly text: Schema.String;
|
|
2119
|
+
}>>;
|
|
2120
|
+
}>>;
|
|
2121
|
+
}>>;
|
|
2122
|
+
}>, Schema.Struct<{
|
|
2123
|
+
readonly dataAvailable: Schema.Literal<false>;
|
|
2124
|
+
readonly projectFilter: Schema.optional<Schema.String>;
|
|
2125
|
+
readonly reason: Schema.Literals<readonly ["no_manifest", "project_filter_empty"]>;
|
|
2126
|
+
}>]>;
|
|
2127
|
+
readonly failure: Schema.Never;
|
|
2128
|
+
readonly failureMode: "error";
|
|
2129
|
+
}, DataReader>;
|
|
1286
2130
|
/**
|
|
1287
2131
|
* The `tdd_artifact_list` tool's success payload.
|
|
1288
2132
|
*
|
|
@@ -1339,7 +2183,45 @@ type TddArtifactListInputType = Schema.Schema.Type<typeof TddArtifactListInput>;
|
|
|
1339
2183
|
*
|
|
1340
2184
|
* @public
|
|
1341
2185
|
*/
|
|
1342
|
-
declare const handleTddArtifactList: (input: TddArtifactListInputType) => Effect.Effect<TddArtifactListResultType, never, DataReader>;
|
|
2186
|
+
export declare const handleTddArtifactList: (input: TddArtifactListInputType) => Effect.Effect<TddArtifactListResultType, never, DataReader>;
|
|
2187
|
+
/**
|
|
2188
|
+
* The Effect-native `tdd_artifact_list` tool.
|
|
2189
|
+
*
|
|
2190
|
+
* @public
|
|
2191
|
+
*/
|
|
2192
|
+
export declare const tddArtifactListTool: Tool.Tool<"tdd_artifact_list", {
|
|
2193
|
+
readonly parameters: Schema.Struct<{
|
|
2194
|
+
readonly tddTaskId: Schema.Finite;
|
|
2195
|
+
readonly artifactKind: Schema.optionalKey<Schema.Literals<readonly ["test_written", "test_failed_run", "code_written", "test_passed_run", "refactor", "test_weakened"]>>;
|
|
2196
|
+
readonly phaseId: Schema.optionalKey<Schema.Finite>;
|
|
2197
|
+
readonly behaviorId: Schema.optionalKey<Schema.Finite>;
|
|
2198
|
+
readonly limit: Schema.optionalKey<Schema.Finite>;
|
|
2199
|
+
}>;
|
|
2200
|
+
readonly success: Schema.Struct<{
|
|
2201
|
+
readonly tddTaskId: Schema.Number;
|
|
2202
|
+
readonly filters: Schema.Struct<{
|
|
2203
|
+
readonly artifactKind: Schema.optional<Schema.Literals<readonly ["test_written", "test_failed_run", "code_written", "test_passed_run", "refactor", "test_weakened"]>>;
|
|
2204
|
+
readonly phaseId: Schema.optional<Schema.Number>;
|
|
2205
|
+
readonly behaviorId: Schema.optional<Schema.Number>;
|
|
2206
|
+
}>;
|
|
2207
|
+
readonly count: Schema.Number;
|
|
2208
|
+
readonly artifacts: Schema.$Array<Schema.Struct<{
|
|
2209
|
+
readonly id: Schema.Finite;
|
|
2210
|
+
readonly tddTaskId: Schema.Number;
|
|
2211
|
+
readonly phaseId: Schema.Number;
|
|
2212
|
+
readonly phaseName: Schema.Literals<readonly ["spike", "red", "red.triangulate", "green", "green.fake-it", "refactor", "extended-red", "green-without-red"]>;
|
|
2213
|
+
readonly artifactKind: Schema.Literals<readonly ["test_written", "test_failed_run", "code_written", "test_passed_run", "refactor", "test_weakened"]>;
|
|
2214
|
+
readonly behaviorId: Schema.NullOr<Schema.Number>;
|
|
2215
|
+
readonly testCaseId: Schema.NullOr<Schema.Number>;
|
|
2216
|
+
readonly testRunId: Schema.NullOr<Schema.Number>;
|
|
2217
|
+
readonly testFirstFailureRunId: Schema.NullOr<Schema.Number>;
|
|
2218
|
+
readonly recordedAt: Schema.String;
|
|
2219
|
+
readonly suite: Schema.Literals<readonly ["vitest", "bats"]>;
|
|
2220
|
+
}>>;
|
|
2221
|
+
}>;
|
|
2222
|
+
readonly failure: Schema.Never;
|
|
2223
|
+
readonly failureMode: "error";
|
|
2224
|
+
}, DataReader>;
|
|
1343
2225
|
/**
|
|
1344
2226
|
* The `tdd_phase_transition_request` tool's success payload.
|
|
1345
2227
|
*
|
|
@@ -1401,7 +2283,42 @@ type PhaseTransitionInputType = Schema.Schema.Type<typeof PhaseTransitionInput>;
|
|
|
1401
2283
|
*
|
|
1402
2284
|
* @public
|
|
1403
2285
|
*/
|
|
1404
|
-
declare const handlePhaseTransitionRequest: (input: PhaseTransitionInputType) => Effect.Effect<PhaseTransitionResultType, never, DataReader | DataStore>;
|
|
2286
|
+
export declare const handlePhaseTransitionRequest: (input: PhaseTransitionInputType) => Effect.Effect<PhaseTransitionResultType, never, DataReader | DataStore>;
|
|
2287
|
+
/**
|
|
2288
|
+
* The Effect-native `tdd_phase_transition_request` tool.
|
|
2289
|
+
*
|
|
2290
|
+
* @public
|
|
2291
|
+
*/
|
|
2292
|
+
export declare const tddPhaseTransitionRequestTool: Tool.Tool<"tdd_phase_transition_request", {
|
|
2293
|
+
readonly parameters: Schema.Struct<{
|
|
2294
|
+
readonly tddTaskId: Schema.Finite;
|
|
2295
|
+
readonly goalId: Schema.Finite;
|
|
2296
|
+
readonly requestedPhase: Schema.Literals<readonly ["spike", "red", "red.triangulate", "green", "green.fake-it", "refactor", "extended-red", "green-without-red"]>;
|
|
2297
|
+
readonly citedArtifactId: Schema.optionalKey<Schema.Finite>;
|
|
2298
|
+
readonly citedArtifactKind: Schema.optionalKey<Schema.Literals<readonly ["test_written", "test_failed_run", "code_written", "test_passed_run", "refactor", "test_weakened"]>>;
|
|
2299
|
+
readonly behaviorId: Schema.optionalKey<Schema.Finite>;
|
|
2300
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
2301
|
+
}>;
|
|
2302
|
+
readonly success: Schema.Union<readonly [Schema.Struct<{
|
|
2303
|
+
readonly accepted: Schema.Literal<true>;
|
|
2304
|
+
readonly phase: Schema.Literals<readonly ["spike", "red", "red.triangulate", "green", "green.fake-it", "refactor", "extended-red", "green-without-red"]>;
|
|
2305
|
+
readonly newPhaseId: Schema.Finite;
|
|
2306
|
+
readonly previousPhaseId: Schema.NullOr<Schema.Number>;
|
|
2307
|
+
readonly citedArtifactId: Schema.optional<Schema.Number>;
|
|
2308
|
+
readonly citedArtifactSource: Schema.optional<Schema.Literals<readonly ["explicit-id", "explicit-kind", "transition-derived", "none"]>>;
|
|
2309
|
+
}>, Schema.Struct<{
|
|
2310
|
+
readonly accepted: Schema.Literal<false>;
|
|
2311
|
+
readonly phase: Schema.Literals<readonly ["spike", "red", "red.triangulate", "green", "green.fake-it", "refactor", "extended-red", "green-without-red"]>;
|
|
2312
|
+
readonly denialReason: Schema.Literals<readonly ["missing_artifact_evidence", "wrong_artifact_kind", "wrong_source_phase", "unknown_tdd_task", "tdd_task_already_ended", "goal_not_started", "goal_not_found", "goal_not_in_progress", "goal_not_in_tdd_task", "behavior_not_found", "behavior_not_in_goal", "refactor_without_passing_run", "evidence_not_in_phase_window", "evidence_not_for_behavior", "evidence_test_was_already_failing"]>;
|
|
2313
|
+
readonly remediation: Schema.Struct<{
|
|
2314
|
+
readonly hint: Schema.String;
|
|
2315
|
+
readonly suggestedTool: Schema.optionalKey<Schema.String>;
|
|
2316
|
+
readonly suggestedArgs: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
2317
|
+
}>;
|
|
2318
|
+
}>]>;
|
|
2319
|
+
readonly failure: Schema.Never;
|
|
2320
|
+
readonly failureMode: "error";
|
|
2321
|
+
}, DataReader | DataStore>;
|
|
1405
2322
|
/**
|
|
1406
2323
|
* The `tdd_progress_push` tool's parameters.
|
|
1407
2324
|
*
|
|
@@ -1438,7 +2355,22 @@ type TddProgressPushResultType = Schema.Schema.Type<typeof TddProgressPushResult
|
|
|
1438
2355
|
*
|
|
1439
2356
|
* @public
|
|
1440
2357
|
*/
|
|
1441
|
-
declare const handleTddProgressPush: (input: TddProgressPushInputType) => Effect.Effect<TddProgressPushResultType, never, DataReader | McpServer.McpServer>;
|
|
2358
|
+
export declare const handleTddProgressPush: (input: TddProgressPushInputType) => Effect.Effect<TddProgressPushResultType, never, DataReader | McpServer.McpServer>;
|
|
2359
|
+
/**
|
|
2360
|
+
* The Effect-native `tdd_progress_push` tool.
|
|
2361
|
+
*
|
|
2362
|
+
* @public
|
|
2363
|
+
*/
|
|
2364
|
+
export declare const tddProgressPushTool: Tool.Tool<"tdd_progress_push", {
|
|
2365
|
+
readonly parameters: Schema.Struct<{
|
|
2366
|
+
readonly payload: Schema.String;
|
|
2367
|
+
}>;
|
|
2368
|
+
readonly success: Schema.Struct<{
|
|
2369
|
+
readonly ok: Schema.Literal<true>;
|
|
2370
|
+
}>;
|
|
2371
|
+
readonly failure: Schema.Never;
|
|
2372
|
+
readonly failureMode: "error";
|
|
2373
|
+
}, DataReader | McpServer.McpServer>;
|
|
1442
2374
|
/**
|
|
1443
2375
|
* The `test_trends` tool's success payload.
|
|
1444
2376
|
*
|
|
@@ -1496,7 +2428,46 @@ type TestTrendsInputType = Schema.Schema.Type<typeof TestTrendsInput>;
|
|
|
1496
2428
|
*
|
|
1497
2429
|
* @public
|
|
1498
2430
|
*/
|
|
1499
|
-
declare const handleTestTrends: (input: TestTrendsInputType) => Effect.Effect<TestTrendsResultType, never, DataReader>;
|
|
2431
|
+
export declare const handleTestTrends: (input: TestTrendsInputType) => Effect.Effect<TestTrendsResultType, never, DataReader>;
|
|
2432
|
+
/**
|
|
2433
|
+
* The Effect-native `test_trends` tool.
|
|
2434
|
+
*
|
|
2435
|
+
* @public
|
|
2436
|
+
*/
|
|
2437
|
+
export declare const testTrendsTool: Tool.Tool<"test_trends", {
|
|
2438
|
+
readonly parameters: Schema.Struct<{
|
|
2439
|
+
readonly project: Schema.String;
|
|
2440
|
+
readonly limit: Schema.optionalKey<Schema.Finite>;
|
|
2441
|
+
}>;
|
|
2442
|
+
readonly success: Schema.Union<readonly [Schema.Struct<{
|
|
2443
|
+
readonly dataAvailable: Schema.Literal<true>;
|
|
2444
|
+
readonly project: Schema.String;
|
|
2445
|
+
readonly trends: Schema.Struct<{
|
|
2446
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
2447
|
+
readonly timestamp: Schema.String;
|
|
2448
|
+
readonly coverage: Schema.Struct<{
|
|
2449
|
+
readonly statements: Schema.Finite;
|
|
2450
|
+
readonly branches: Schema.Finite;
|
|
2451
|
+
readonly functions: Schema.Finite;
|
|
2452
|
+
readonly lines: Schema.Finite;
|
|
2453
|
+
}>;
|
|
2454
|
+
readonly delta: Schema.Struct<{
|
|
2455
|
+
readonly statements: Schema.Finite;
|
|
2456
|
+
readonly branches: Schema.Finite;
|
|
2457
|
+
readonly functions: Schema.Finite;
|
|
2458
|
+
readonly lines: Schema.Finite;
|
|
2459
|
+
}>;
|
|
2460
|
+
readonly direction: Schema.Literals<readonly ["improving", "regressing", "stable"]>;
|
|
2461
|
+
readonly targetsHash: Schema.optional<Schema.String>;
|
|
2462
|
+
}>>;
|
|
2463
|
+
}>;
|
|
2464
|
+
}>, Schema.Struct<{
|
|
2465
|
+
readonly dataAvailable: Schema.Literal<false>;
|
|
2466
|
+
readonly project: Schema.String;
|
|
2467
|
+
}>]>;
|
|
2468
|
+
readonly failure: Schema.Never;
|
|
2469
|
+
readonly failureMode: "error";
|
|
2470
|
+
}, DataReader>;
|
|
1500
2471
|
/**
|
|
1501
2472
|
* The `triage_brief` tool's success payload.
|
|
1502
2473
|
*
|
|
@@ -1532,7 +2503,24 @@ type TriageBriefInputType = Schema.Schema.Type<typeof TriageBriefInput>;
|
|
|
1532
2503
|
*
|
|
1533
2504
|
* @public
|
|
1534
2505
|
*/
|
|
1535
|
-
declare const handleTriageBrief: (input: TriageBriefInputType) => Effect.Effect<TriageBriefResultType, never, DataReader>;
|
|
2506
|
+
export declare const handleTriageBrief: (input: TriageBriefInputType) => Effect.Effect<TriageBriefResultType, never, DataReader>;
|
|
2507
|
+
/**
|
|
2508
|
+
* The Effect-native `triage_brief` tool.
|
|
2509
|
+
*
|
|
2510
|
+
* @public
|
|
2511
|
+
*/
|
|
2512
|
+
export declare const triageBriefTool: Tool.Tool<"triage_brief", {
|
|
2513
|
+
readonly parameters: Schema.Struct<{
|
|
2514
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
2515
|
+
readonly maxLines: Schema.optionalKey<Schema.Finite>;
|
|
2516
|
+
}>;
|
|
2517
|
+
readonly success: Schema.Struct<{
|
|
2518
|
+
readonly hasContent: Schema.Boolean;
|
|
2519
|
+
readonly markdown: Schema.String;
|
|
2520
|
+
}>;
|
|
2521
|
+
readonly failure: Schema.Never;
|
|
2522
|
+
readonly failureMode: "error";
|
|
2523
|
+
}, DataReader>;
|
|
1536
2524
|
/**
|
|
1537
2525
|
* The `turn_search` tool's success payload.
|
|
1538
2526
|
*
|
|
@@ -1577,7 +2565,33 @@ type TurnSearchInputType = Schema.Schema.Type<typeof TurnSearchInput>;
|
|
|
1577
2565
|
*
|
|
1578
2566
|
* @public
|
|
1579
2567
|
*/
|
|
1580
|
-
declare const handleTurnSearch: (input: TurnSearchInputType) => Effect.Effect<TurnSearchResultType, never, DataReader>;
|
|
2568
|
+
export declare const handleTurnSearch: (input: TurnSearchInputType) => Effect.Effect<TurnSearchResultType, never, DataReader>;
|
|
2569
|
+
/**
|
|
2570
|
+
* The Effect-native `turn_search` tool.
|
|
2571
|
+
*
|
|
2572
|
+
* @public
|
|
2573
|
+
*/
|
|
2574
|
+
export declare const turnSearchTool: Tool.Tool<"turn_search", {
|
|
2575
|
+
readonly parameters: Schema.Struct<{
|
|
2576
|
+
readonly sessionId: Schema.optionalKey<Schema.Finite>;
|
|
2577
|
+
readonly since: Schema.optionalKey<Schema.String>;
|
|
2578
|
+
readonly type: Schema.optionalKey<Schema.Literals<readonly ["user_prompt", "tool_call", "tool_result", "file_edit", "hook_fire", "note", "hypothesis"]>>;
|
|
2579
|
+
readonly limit: Schema.optionalKey<Schema.Finite>;
|
|
2580
|
+
}>;
|
|
2581
|
+
readonly success: Schema.Struct<{
|
|
2582
|
+
readonly count: Schema.Finite;
|
|
2583
|
+
readonly turns: Schema.$Array<Schema.Struct<{
|
|
2584
|
+
readonly id: Schema.Finite;
|
|
2585
|
+
readonly sessionId: Schema.Finite;
|
|
2586
|
+
readonly turnNo: Schema.Finite;
|
|
2587
|
+
readonly type: Schema.String;
|
|
2588
|
+
readonly payload: Schema.String;
|
|
2589
|
+
readonly occurredAt: Schema.String;
|
|
2590
|
+
}>>;
|
|
2591
|
+
}>;
|
|
2592
|
+
readonly failure: Schema.Never;
|
|
2593
|
+
readonly failureMode: "error";
|
|
2594
|
+
}, DataReader>;
|
|
1581
2595
|
/**
|
|
1582
2596
|
* The `wrapup_prompt` tool's success payload.
|
|
1583
2597
|
*
|
|
@@ -1616,7 +2630,27 @@ type WrapupPromptInputType = Schema.Schema.Type<typeof WrapupPromptInput>;
|
|
|
1616
2630
|
*
|
|
1617
2631
|
* @public
|
|
1618
2632
|
*/
|
|
1619
|
-
declare const handleWrapupPrompt: (input: WrapupPromptInputType) => Effect.Effect<WrapupPromptResultType, never, DataReader>;
|
|
2633
|
+
export declare const handleWrapupPrompt: (input: WrapupPromptInputType) => Effect.Effect<WrapupPromptResultType, never, DataReader>;
|
|
2634
|
+
/**
|
|
2635
|
+
* The Effect-native `wrapup_prompt` tool.
|
|
2636
|
+
*
|
|
2637
|
+
* @public
|
|
2638
|
+
*/
|
|
2639
|
+
export declare const wrapupPromptTool: Tool.Tool<"wrapup_prompt", {
|
|
2640
|
+
readonly parameters: Schema.Struct<{
|
|
2641
|
+
readonly sessionId: Schema.optionalKey<Schema.Finite>;
|
|
2642
|
+
readonly chatId: Schema.optionalKey<Schema.String>;
|
|
2643
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["stop", "session_end", "pre_compact", "tdd_handoff", "user_prompt_nudge"]>>;
|
|
2644
|
+
readonly userPromptHint: Schema.optionalKey<Schema.String>;
|
|
2645
|
+
}>;
|
|
2646
|
+
readonly success: Schema.Struct<{
|
|
2647
|
+
readonly hasContent: Schema.Boolean;
|
|
2648
|
+
readonly kind: Schema.Literals<readonly ["stop", "session_end", "pre_compact", "tdd_handoff", "user_prompt_nudge"]>;
|
|
2649
|
+
readonly markdown: Schema.String;
|
|
2650
|
+
}>;
|
|
2651
|
+
readonly failure: Schema.Never;
|
|
2652
|
+
readonly failureMode: "error";
|
|
2653
|
+
}, DataReader>;
|
|
1620
2654
|
/**
|
|
1621
2655
|
* Every tool the server registers.
|
|
1622
2656
|
*
|
|
@@ -5804,6 +6838,120 @@ interface TddErrorEnvelope {
|
|
|
5804
6838
|
readonly [key: string]: unknown;
|
|
5805
6839
|
};
|
|
5806
6840
|
}
|
|
6841
|
+
/**
|
|
6842
|
+
* The `hypothesis` tool's success payload.
|
|
6843
|
+
*
|
|
6844
|
+
* @public
|
|
6845
|
+
*/
|
|
6846
|
+
export declare const HypothesisResult: Schema.Union<readonly [Schema.Struct<{
|
|
6847
|
+
readonly action: Schema.Literal<"record">;
|
|
6848
|
+
readonly id: Schema.Finite;
|
|
6849
|
+
}>, Schema.Struct<{
|
|
6850
|
+
readonly _idempotentReplay: Schema.optionalKey<Schema.Literal<true>>;
|
|
6851
|
+
readonly action: Schema.Literal<"validate">;
|
|
6852
|
+
}>, Schema.Struct<{
|
|
6853
|
+
readonly action: Schema.Literal<"list">;
|
|
6854
|
+
readonly count: Schema.Number;
|
|
6855
|
+
readonly hypotheses: Schema.$Array<Schema.Struct<{
|
|
6856
|
+
readonly id: Schema.Number;
|
|
6857
|
+
readonly sessionId: Schema.Number;
|
|
6858
|
+
readonly content: Schema.String;
|
|
6859
|
+
readonly citedTestErrorId: Schema.NullOr<Schema.Number>;
|
|
6860
|
+
readonly citedStackFrameId: Schema.NullOr<Schema.Number>;
|
|
6861
|
+
readonly validationOutcome: Schema.NullOr<Schema.Literals<readonly ["confirmed", "refuted", "abandoned"]>>;
|
|
6862
|
+
readonly validatedAt: Schema.NullOr<Schema.String>;
|
|
6863
|
+
}>>;
|
|
6864
|
+
}>]>;
|
|
6865
|
+
/**
|
|
6866
|
+
* The decoded {@link HypothesisResult}.
|
|
6867
|
+
*
|
|
6868
|
+
* @public
|
|
6869
|
+
*/
|
|
6870
|
+
type HypothesisResultType = Schema.Schema.Type<typeof HypothesisResult>;
|
|
6871
|
+
/**
|
|
6872
|
+
* The `hypothesis` tool's parameters — a union discriminated on `action`.
|
|
6873
|
+
*
|
|
6874
|
+
* @public
|
|
6875
|
+
*/
|
|
6876
|
+
export declare const HypothesisInput: Schema.Union<readonly [Schema.Struct<{
|
|
6877
|
+
readonly action: Schema.Literal<"record">;
|
|
6878
|
+
readonly tddTaskId: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>;
|
|
6879
|
+
readonly sessionId: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>;
|
|
6880
|
+
readonly content: Schema.String;
|
|
6881
|
+
readonly createdTurnId: Schema.optionalKey<Schema.Finite>;
|
|
6882
|
+
readonly citedTestErrorId: Schema.optionalKey<Schema.Finite>;
|
|
6883
|
+
readonly citedStackFrameId: Schema.optionalKey<Schema.Finite>;
|
|
6884
|
+
}>, Schema.Struct<{
|
|
6885
|
+
readonly action: Schema.Literal<"validate">;
|
|
6886
|
+
readonly id: Schema.Finite;
|
|
6887
|
+
readonly outcome: Schema.Literals<readonly ["confirmed", "refuted", "abandoned"]>;
|
|
6888
|
+
readonly validatedTurnId: Schema.optionalKey<Schema.Finite>;
|
|
6889
|
+
readonly validatedAt: Schema.optionalKey<Schema.String>;
|
|
6890
|
+
}>, Schema.Struct<{
|
|
6891
|
+
readonly action: Schema.Literal<"list">;
|
|
6892
|
+
readonly sessionId: Schema.optionalKey<Schema.Finite>;
|
|
6893
|
+
readonly outcome: Schema.optionalKey<Schema.Literals<readonly ["confirmed", "refuted", "abandoned", "open"]>>;
|
|
6894
|
+
readonly limit: Schema.optionalKey<Schema.Finite>;
|
|
6895
|
+
}>]>;
|
|
6896
|
+
/**
|
|
6897
|
+
* The decoded {@link HypothesisInput}.
|
|
6898
|
+
*
|
|
6899
|
+
* @public
|
|
6900
|
+
*/
|
|
6901
|
+
type HypothesisInputType = Schema.Schema.Type<typeof HypothesisInput>;
|
|
6902
|
+
/**
|
|
6903
|
+
* Handler for {@link hypothesisTool}. `record` fails with a
|
|
6904
|
+
* `ToolRefusal` (an `isError` result naming the fix) when the binding
|
|
6905
|
+
* session cannot be resolved: an unknown `tddTaskId`, an unknown fallback
|
|
6906
|
+
* `sessionId`, or no session at all; `validate` does for an unknown id. Any
|
|
6907
|
+
* other store failure is a defect.
|
|
6908
|
+
*
|
|
6909
|
+
* @public
|
|
6910
|
+
*/
|
|
6911
|
+
export declare const handleHypothesis: (input: HypothesisInputType) => Effect.Effect<HypothesisResultType, ToolRefusal$1, DataReader | DataStore | McpSession>;
|
|
6912
|
+
/**
|
|
6913
|
+
* The Effect-native `hypothesis` tool.
|
|
6914
|
+
*
|
|
6915
|
+
* @public
|
|
6916
|
+
*/
|
|
6917
|
+
export declare const hypothesisTool: import("@effected/mcp").UnionTool<"hypothesis", Schema.Union<readonly [Schema.Struct<{
|
|
6918
|
+
readonly action: Schema.Literal<"record">;
|
|
6919
|
+
readonly tddTaskId: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>;
|
|
6920
|
+
readonly sessionId: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>;
|
|
6921
|
+
readonly content: Schema.String;
|
|
6922
|
+
readonly createdTurnId: Schema.optionalKey<Schema.Finite>;
|
|
6923
|
+
readonly citedTestErrorId: Schema.optionalKey<Schema.Finite>;
|
|
6924
|
+
readonly citedStackFrameId: Schema.optionalKey<Schema.Finite>;
|
|
6925
|
+
}>, Schema.Struct<{
|
|
6926
|
+
readonly action: Schema.Literal<"validate">;
|
|
6927
|
+
readonly id: Schema.Finite;
|
|
6928
|
+
readonly outcome: Schema.Literals<readonly ["confirmed", "refuted", "abandoned"]>;
|
|
6929
|
+
readonly validatedTurnId: Schema.optionalKey<Schema.Finite>;
|
|
6930
|
+
readonly validatedAt: Schema.optionalKey<Schema.String>;
|
|
6931
|
+
}>, Schema.Struct<{
|
|
6932
|
+
readonly action: Schema.Literal<"list">;
|
|
6933
|
+
readonly sessionId: Schema.optionalKey<Schema.Finite>;
|
|
6934
|
+
readonly outcome: Schema.optionalKey<Schema.Literals<readonly ["confirmed", "refuted", "abandoned", "open"]>>;
|
|
6935
|
+
readonly limit: Schema.optionalKey<Schema.Finite>;
|
|
6936
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
6937
|
+
readonly action: Schema.Literal<"record">;
|
|
6938
|
+
readonly id: Schema.Finite;
|
|
6939
|
+
}>, Schema.Struct<{
|
|
6940
|
+
readonly _idempotentReplay: Schema.optionalKey<Schema.Literal<true>>;
|
|
6941
|
+
readonly action: Schema.Literal<"validate">;
|
|
6942
|
+
}>, Schema.Struct<{
|
|
6943
|
+
readonly action: Schema.Literal<"list">;
|
|
6944
|
+
readonly count: Schema.Number;
|
|
6945
|
+
readonly hypotheses: Schema.$Array<Schema.Struct<{
|
|
6946
|
+
readonly id: Schema.Number;
|
|
6947
|
+
readonly sessionId: Schema.Number;
|
|
6948
|
+
readonly content: Schema.String;
|
|
6949
|
+
readonly citedTestErrorId: Schema.NullOr<Schema.Number>;
|
|
6950
|
+
readonly citedStackFrameId: Schema.NullOr<Schema.Number>;
|
|
6951
|
+
readonly validationOutcome: Schema.NullOr<Schema.Literals<readonly ["confirmed", "refuted", "abandoned"]>>;
|
|
6952
|
+
readonly validatedAt: Schema.NullOr<Schema.String>;
|
|
6953
|
+
}>>;
|
|
6954
|
+
}>]>, typeof ToolRefusal$1, DataReader | DataStore | McpSession>;
|
|
5807
6955
|
/**
|
|
5808
6956
|
* The `inventory` tool's success payload.
|
|
5809
6957
|
*
|
|
@@ -5945,11 +7093,137 @@ export declare const InventoryInput: Schema.Union<readonly [Schema.Struct<{
|
|
|
5945
7093
|
*/
|
|
5946
7094
|
type InventoryInputType = Schema.Schema.Type<typeof InventoryInput>;
|
|
5947
7095
|
/**
|
|
5948
|
-
*
|
|
7096
|
+
* Handler for {@link inventoryTool}.
|
|
5949
7097
|
*
|
|
5950
7098
|
* @public
|
|
5951
7099
|
*/
|
|
5952
|
-
export declare const
|
|
7100
|
+
export declare const handleInventory: (input: InventoryInputType) => Effect.Effect<InventoryResultType, never, DataReader>;
|
|
7101
|
+
/**
|
|
7102
|
+
* The Effect-native `inventory` tool.
|
|
7103
|
+
*
|
|
7104
|
+
* @public
|
|
7105
|
+
*/
|
|
7106
|
+
export declare const inventoryTool: import("@effected/mcp").UnionTool<"inventory", Schema.Union<readonly [Schema.Struct<{
|
|
7107
|
+
readonly kind: Schema.Literal<"project">;
|
|
7108
|
+
}>, Schema.Struct<{
|
|
7109
|
+
readonly kind: Schema.Literal<"module">;
|
|
7110
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
7111
|
+
}>, Schema.Struct<{
|
|
7112
|
+
readonly kind: Schema.Literal<"suite">;
|
|
7113
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
7114
|
+
readonly module: Schema.optionalKey<Schema.String>;
|
|
7115
|
+
}>, Schema.Struct<{
|
|
7116
|
+
readonly kind: Schema.Literal<"session">;
|
|
7117
|
+
readonly id: Schema.optionalKey<Schema.Finite>;
|
|
7118
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
7119
|
+
readonly agentKind: Schema.optionalKey<Schema.Literals<readonly ["main", "subagent"]>>;
|
|
7120
|
+
readonly limit: Schema.optionalKey<Schema.Finite>;
|
|
7121
|
+
}>, Schema.Struct<{
|
|
7122
|
+
readonly kind: Schema.Literal<"tag">;
|
|
7123
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
7124
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
7125
|
+
readonly inventoryKind: Schema.Literal<"project">;
|
|
7126
|
+
readonly count: Schema.Number;
|
|
7127
|
+
readonly projects: Schema.$Array<Schema.Struct<{
|
|
7128
|
+
readonly project: Schema.String;
|
|
7129
|
+
readonly lastRun: Schema.NullOr<Schema.String>;
|
|
7130
|
+
readonly lastResult: Schema.NullOr<Schema.Literals<readonly ["passed", "failed", "interrupted"]>>;
|
|
7131
|
+
readonly total: Schema.Number;
|
|
7132
|
+
readonly passed: Schema.Number;
|
|
7133
|
+
readonly failed: Schema.Number;
|
|
7134
|
+
readonly skipped: Schema.Number;
|
|
7135
|
+
}>>;
|
|
7136
|
+
}>, Schema.Struct<{
|
|
7137
|
+
readonly inventoryKind: Schema.Literal<"module">;
|
|
7138
|
+
readonly count: Schema.Number;
|
|
7139
|
+
readonly groups: Schema.$Array<Schema.Struct<{
|
|
7140
|
+
readonly project: Schema.String;
|
|
7141
|
+
readonly modules: Schema.$Array<Schema.Struct<{
|
|
7142
|
+
readonly id: Schema.Number;
|
|
7143
|
+
readonly file: Schema.String;
|
|
7144
|
+
readonly state: Schema.String;
|
|
7145
|
+
readonly testCount: Schema.Number;
|
|
7146
|
+
readonly duration: Schema.NullOr<Schema.Number>;
|
|
7147
|
+
}>>;
|
|
7148
|
+
}>>;
|
|
7149
|
+
}>, Schema.Struct<{
|
|
7150
|
+
readonly inventoryKind: Schema.Literal<"suite">;
|
|
7151
|
+
readonly count: Schema.Number;
|
|
7152
|
+
readonly groups: Schema.$Array<Schema.Struct<{
|
|
7153
|
+
readonly project: Schema.String;
|
|
7154
|
+
readonly suites: Schema.$Array<Schema.Struct<{
|
|
7155
|
+
readonly id: Schema.Number;
|
|
7156
|
+
readonly name: Schema.String;
|
|
7157
|
+
readonly module: Schema.String;
|
|
7158
|
+
readonly state: Schema.String;
|
|
7159
|
+
readonly testCount: Schema.Number;
|
|
7160
|
+
}>>;
|
|
7161
|
+
}>>;
|
|
7162
|
+
}>, Schema.Struct<{
|
|
7163
|
+
readonly inventoryKind: Schema.Literal<"session_detail">;
|
|
7164
|
+
readonly found: Schema.Literal<true>;
|
|
7165
|
+
readonly session: Schema.Struct<{
|
|
7166
|
+
readonly id: Schema.Number;
|
|
7167
|
+
readonly chatId: Schema.String;
|
|
7168
|
+
readonly project: Schema.String;
|
|
7169
|
+
readonly cwd: Schema.String;
|
|
7170
|
+
readonly agentKind: Schema.Literals<readonly ["main", "subagent"]>;
|
|
7171
|
+
readonly agentType: Schema.NullOr<Schema.String>;
|
|
7172
|
+
readonly parentSessionId: Schema.NullOr<Schema.Number>;
|
|
7173
|
+
readonly triageWasNonEmpty: Schema.Boolean;
|
|
7174
|
+
readonly startedAt: Schema.String;
|
|
7175
|
+
readonly endedAt: Schema.NullOr<Schema.String>;
|
|
7176
|
+
readonly endReason: Schema.NullOr<Schema.String>;
|
|
7177
|
+
}>;
|
|
7178
|
+
}>, Schema.Struct<{
|
|
7179
|
+
readonly inventoryKind: Schema.Literal<"session_detail">;
|
|
7180
|
+
readonly found: Schema.Literal<false>;
|
|
7181
|
+
readonly id: Schema.Number;
|
|
7182
|
+
}>, Schema.Struct<{
|
|
7183
|
+
readonly inventoryKind: Schema.Literal<"session_list">;
|
|
7184
|
+
readonly count: Schema.Number;
|
|
7185
|
+
readonly sessions: Schema.$Array<Schema.Struct<{
|
|
7186
|
+
readonly id: Schema.Number;
|
|
7187
|
+
readonly chatId: Schema.String;
|
|
7188
|
+
readonly project: Schema.String;
|
|
7189
|
+
readonly cwd: Schema.String;
|
|
7190
|
+
readonly agentKind: Schema.Literals<readonly ["main", "subagent"]>;
|
|
7191
|
+
readonly agentType: Schema.NullOr<Schema.String>;
|
|
7192
|
+
readonly parentSessionId: Schema.NullOr<Schema.Number>;
|
|
7193
|
+
readonly triageWasNonEmpty: Schema.Boolean;
|
|
7194
|
+
readonly startedAt: Schema.String;
|
|
7195
|
+
readonly endedAt: Schema.NullOr<Schema.String>;
|
|
7196
|
+
readonly endReason: Schema.NullOr<Schema.String>;
|
|
7197
|
+
}>>;
|
|
7198
|
+
}>, Schema.Struct<{
|
|
7199
|
+
readonly inventoryKind: Schema.Literal<"tag_scoped">;
|
|
7200
|
+
readonly project: Schema.String;
|
|
7201
|
+
readonly count: Schema.Number;
|
|
7202
|
+
readonly tags: Schema.$Array<Schema.Struct<{
|
|
7203
|
+
readonly tag: Schema.String;
|
|
7204
|
+
readonly moduleCount: Schema.Number;
|
|
7205
|
+
readonly testCount: Schema.Number;
|
|
7206
|
+
}>>;
|
|
7207
|
+
}>, Schema.Struct<{
|
|
7208
|
+
readonly inventoryKind: Schema.Literal<"tag_unscoped">;
|
|
7209
|
+
readonly count: Schema.Number;
|
|
7210
|
+
readonly tags: Schema.$Array<Schema.Struct<{
|
|
7211
|
+
readonly tag: Schema.String;
|
|
7212
|
+
readonly moduleCount: Schema.Number;
|
|
7213
|
+
readonly testCount: Schema.Number;
|
|
7214
|
+
readonly byProject: Schema.$Array<Schema.Struct<{
|
|
7215
|
+
readonly project: Schema.String;
|
|
7216
|
+
readonly moduleCount: Schema.Number;
|
|
7217
|
+
readonly testCount: Schema.Number;
|
|
7218
|
+
}>>;
|
|
7219
|
+
}>>;
|
|
7220
|
+
}>]>, typeof ToolRefusal$1, DataReader>;
|
|
7221
|
+
/**
|
|
7222
|
+
* The `note` tool's success payload.
|
|
7223
|
+
*
|
|
7224
|
+
* @public
|
|
7225
|
+
*/
|
|
7226
|
+
export declare const NoteResult: Schema.Union<readonly [Schema.Struct<{
|
|
5953
7227
|
readonly action: Schema.Literal<"create">;
|
|
5954
7228
|
readonly id: Schema.Finite;
|
|
5955
7229
|
}>, Schema.Struct<{
|
|
@@ -6019,56 +7293,928 @@ export declare const NoteResult: Schema.Union<readonly [Schema.Struct<{
|
|
|
6019
7293
|
}>>;
|
|
6020
7294
|
}>]>;
|
|
6021
7295
|
/**
|
|
6022
|
-
* The decoded {@link NoteResult}.
|
|
7296
|
+
* The decoded {@link NoteResult}.
|
|
7297
|
+
*
|
|
7298
|
+
* @public
|
|
7299
|
+
*/
|
|
7300
|
+
type NoteResultType = Schema.Schema.Type<typeof NoteResult>;
|
|
7301
|
+
/**
|
|
7302
|
+
* The `note` tool's parameters — a union discriminated on `action`.
|
|
7303
|
+
*
|
|
7304
|
+
* @public
|
|
7305
|
+
*/
|
|
7306
|
+
export declare const NoteParams: Schema.Union<readonly [Schema.Struct<{
|
|
7307
|
+
readonly action: Schema.Literal<"create">;
|
|
7308
|
+
readonly title: Schema.String;
|
|
7309
|
+
readonly content: Schema.String;
|
|
7310
|
+
readonly scope: Schema.Literals<readonly ["global", "project", "module", "suite", "test", "note"]>;
|
|
7311
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
7312
|
+
readonly testFullName: Schema.optionalKey<Schema.String>;
|
|
7313
|
+
readonly modulePath: Schema.optionalKey<Schema.String>;
|
|
7314
|
+
readonly parentNoteId: Schema.optionalKey<Schema.Finite>;
|
|
7315
|
+
readonly createdBy: Schema.optionalKey<Schema.String>;
|
|
7316
|
+
readonly expiresAt: Schema.optionalKey<Schema.String>;
|
|
7317
|
+
readonly pinned: Schema.optionalKey<Schema.Boolean>;
|
|
7318
|
+
}>, Schema.Struct<{
|
|
7319
|
+
readonly action: Schema.Literal<"list">;
|
|
7320
|
+
readonly scope: Schema.optionalKey<Schema.Literals<readonly ["global", "project", "module", "suite", "test", "note"]>>;
|
|
7321
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
7322
|
+
readonly testFullName: Schema.optionalKey<Schema.String>;
|
|
7323
|
+
}>, Schema.Struct<{
|
|
7324
|
+
readonly action: Schema.Literal<"get">;
|
|
7325
|
+
readonly id: Schema.Finite;
|
|
7326
|
+
}>, Schema.Struct<{
|
|
7327
|
+
readonly action: Schema.Literal<"update">;
|
|
7328
|
+
readonly id: Schema.Finite;
|
|
7329
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
7330
|
+
readonly content: Schema.optionalKey<Schema.String>;
|
|
7331
|
+
readonly pinned: Schema.optionalKey<Schema.Boolean>;
|
|
7332
|
+
readonly expiresAt: Schema.optionalKey<Schema.String>;
|
|
7333
|
+
}>, Schema.Struct<{
|
|
7334
|
+
readonly action: Schema.Literal<"delete">;
|
|
7335
|
+
readonly id: Schema.Finite;
|
|
7336
|
+
}>, Schema.Struct<{
|
|
7337
|
+
readonly action: Schema.Literal<"search">;
|
|
7338
|
+
readonly query: Schema.String;
|
|
7339
|
+
}>]>;
|
|
7340
|
+
/**
|
|
7341
|
+
* The decoded {@link NoteParams}.
|
|
7342
|
+
*
|
|
7343
|
+
* @public
|
|
7344
|
+
*/
|
|
7345
|
+
type NoteParamsType = Schema.Schema.Type<typeof NoteParams>;
|
|
7346
|
+
/**
|
|
7347
|
+
* Handler for {@link noteTool}.
|
|
7348
|
+
*
|
|
7349
|
+
* @public
|
|
7350
|
+
*/
|
|
7351
|
+
export declare const handleNote: (input: NoteParamsType) => Effect.Effect<NoteResultType, never, DataReader | DataStore>;
|
|
7352
|
+
/**
|
|
7353
|
+
* The Effect-native `note` tool.
|
|
7354
|
+
*
|
|
7355
|
+
* @public
|
|
7356
|
+
*/
|
|
7357
|
+
export declare const noteTool: import("@effected/mcp").UnionTool<"note", Schema.Union<readonly [Schema.Struct<{
|
|
7358
|
+
readonly action: Schema.Literal<"create">;
|
|
7359
|
+
readonly title: Schema.String;
|
|
7360
|
+
readonly content: Schema.String;
|
|
7361
|
+
readonly scope: Schema.Literals<readonly ["global", "project", "module", "suite", "test", "note"]>;
|
|
7362
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
7363
|
+
readonly testFullName: Schema.optionalKey<Schema.String>;
|
|
7364
|
+
readonly modulePath: Schema.optionalKey<Schema.String>;
|
|
7365
|
+
readonly parentNoteId: Schema.optionalKey<Schema.Finite>;
|
|
7366
|
+
readonly createdBy: Schema.optionalKey<Schema.String>;
|
|
7367
|
+
readonly expiresAt: Schema.optionalKey<Schema.String>;
|
|
7368
|
+
readonly pinned: Schema.optionalKey<Schema.Boolean>;
|
|
7369
|
+
}>, Schema.Struct<{
|
|
7370
|
+
readonly action: Schema.Literal<"list">;
|
|
7371
|
+
readonly scope: Schema.optionalKey<Schema.Literals<readonly ["global", "project", "module", "suite", "test", "note"]>>;
|
|
7372
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
7373
|
+
readonly testFullName: Schema.optionalKey<Schema.String>;
|
|
7374
|
+
}>, Schema.Struct<{
|
|
7375
|
+
readonly action: Schema.Literal<"get">;
|
|
7376
|
+
readonly id: Schema.Finite;
|
|
7377
|
+
}>, Schema.Struct<{
|
|
7378
|
+
readonly action: Schema.Literal<"update">;
|
|
7379
|
+
readonly id: Schema.Finite;
|
|
7380
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
7381
|
+
readonly content: Schema.optionalKey<Schema.String>;
|
|
7382
|
+
readonly pinned: Schema.optionalKey<Schema.Boolean>;
|
|
7383
|
+
readonly expiresAt: Schema.optionalKey<Schema.String>;
|
|
7384
|
+
}>, Schema.Struct<{
|
|
7385
|
+
readonly action: Schema.Literal<"delete">;
|
|
7386
|
+
readonly id: Schema.Finite;
|
|
7387
|
+
}>, Schema.Struct<{
|
|
7388
|
+
readonly action: Schema.Literal<"search">;
|
|
7389
|
+
readonly query: Schema.String;
|
|
7390
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
7391
|
+
readonly action: Schema.Literal<"create">;
|
|
7392
|
+
readonly id: Schema.Finite;
|
|
7393
|
+
}>, Schema.Struct<{
|
|
7394
|
+
readonly action: Schema.Literal<"list">;
|
|
7395
|
+
readonly count: Schema.Number;
|
|
7396
|
+
readonly notes: Schema.$Array<Schema.Struct<{
|
|
7397
|
+
readonly id: Schema.Finite;
|
|
7398
|
+
readonly title: Schema.String;
|
|
7399
|
+
readonly content: Schema.String;
|
|
7400
|
+
readonly scope: Schema.Literals<readonly ["global", "project", "module", "suite", "test", "note"]>;
|
|
7401
|
+
readonly project: Schema.NullOr<Schema.String>;
|
|
7402
|
+
readonly testFullName: Schema.NullOr<Schema.String>;
|
|
7403
|
+
readonly modulePath: Schema.NullOr<Schema.String>;
|
|
7404
|
+
readonly parentNoteId: Schema.NullOr<Schema.Number>;
|
|
7405
|
+
readonly createdBy: Schema.NullOr<Schema.String>;
|
|
7406
|
+
readonly expiresAt: Schema.NullOr<Schema.String>;
|
|
7407
|
+
readonly pinned: Schema.Boolean;
|
|
7408
|
+
readonly createdAt: Schema.String;
|
|
7409
|
+
readonly updatedAt: Schema.String;
|
|
7410
|
+
}>>;
|
|
7411
|
+
}>, Schema.Struct<{
|
|
7412
|
+
readonly action: Schema.Literal<"get">;
|
|
7413
|
+
readonly found: Schema.Literal<true>;
|
|
7414
|
+
readonly note: Schema.Struct<{
|
|
7415
|
+
readonly id: Schema.Finite;
|
|
7416
|
+
readonly title: Schema.String;
|
|
7417
|
+
readonly content: Schema.String;
|
|
7418
|
+
readonly scope: Schema.Literals<readonly ["global", "project", "module", "suite", "test", "note"]>;
|
|
7419
|
+
readonly project: Schema.NullOr<Schema.String>;
|
|
7420
|
+
readonly testFullName: Schema.NullOr<Schema.String>;
|
|
7421
|
+
readonly modulePath: Schema.NullOr<Schema.String>;
|
|
7422
|
+
readonly parentNoteId: Schema.NullOr<Schema.Number>;
|
|
7423
|
+
readonly createdBy: Schema.NullOr<Schema.String>;
|
|
7424
|
+
readonly expiresAt: Schema.NullOr<Schema.String>;
|
|
7425
|
+
readonly pinned: Schema.Boolean;
|
|
7426
|
+
readonly createdAt: Schema.String;
|
|
7427
|
+
readonly updatedAt: Schema.String;
|
|
7428
|
+
}>;
|
|
7429
|
+
}>, Schema.Struct<{
|
|
7430
|
+
readonly action: Schema.Literal<"get">;
|
|
7431
|
+
readonly found: Schema.Literal<false>;
|
|
7432
|
+
readonly id: Schema.Number;
|
|
7433
|
+
}>, Schema.Struct<{
|
|
7434
|
+
readonly action: Schema.Literal<"update">;
|
|
7435
|
+
readonly success: Schema.Literal<true>;
|
|
7436
|
+
}>, Schema.Struct<{
|
|
7437
|
+
readonly action: Schema.Literal<"delete">;
|
|
7438
|
+
readonly success: Schema.Literal<true>;
|
|
7439
|
+
}>, Schema.Struct<{
|
|
7440
|
+
readonly action: Schema.Literal<"search">;
|
|
7441
|
+
readonly query: Schema.String;
|
|
7442
|
+
readonly count: Schema.Number;
|
|
7443
|
+
readonly notes: Schema.$Array<Schema.Struct<{
|
|
7444
|
+
readonly id: Schema.Finite;
|
|
7445
|
+
readonly title: Schema.String;
|
|
7446
|
+
readonly content: Schema.String;
|
|
7447
|
+
readonly scope: Schema.Literals<readonly ["global", "project", "module", "suite", "test", "note"]>;
|
|
7448
|
+
readonly project: Schema.NullOr<Schema.String>;
|
|
7449
|
+
readonly testFullName: Schema.NullOr<Schema.String>;
|
|
7450
|
+
readonly modulePath: Schema.NullOr<Schema.String>;
|
|
7451
|
+
readonly parentNoteId: Schema.NullOr<Schema.Number>;
|
|
7452
|
+
readonly createdBy: Schema.NullOr<Schema.String>;
|
|
7453
|
+
readonly expiresAt: Schema.NullOr<Schema.String>;
|
|
7454
|
+
readonly pinned: Schema.Boolean;
|
|
7455
|
+
readonly createdAt: Schema.String;
|
|
7456
|
+
readonly updatedAt: Schema.String;
|
|
7457
|
+
}>>;
|
|
7458
|
+
}>]>, typeof ToolRefusal$1, DataReader | DataStore>;
|
|
7459
|
+
/**
|
|
7460
|
+
* The `tdd_behavior` tool's success payload.
|
|
7461
|
+
*
|
|
7462
|
+
* @public
|
|
7463
|
+
*/
|
|
7464
|
+
export declare const TddBehaviorResult: Schema.Union<readonly [Schema.Struct<{
|
|
7465
|
+
readonly _idempotentReplay: Schema.optionalKey<Schema.Literal<true>>;
|
|
7466
|
+
readonly ok: Schema.Literal<true>;
|
|
7467
|
+
readonly action: Schema.Literal<"create">;
|
|
7468
|
+
readonly behavior: Schema.Struct<{
|
|
7469
|
+
readonly id: Schema.Number;
|
|
7470
|
+
readonly goalId: Schema.Number;
|
|
7471
|
+
readonly ordinal: Schema.Number;
|
|
7472
|
+
readonly behavior: Schema.String;
|
|
7473
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7474
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7475
|
+
readonly createdAt: Schema.String;
|
|
7476
|
+
}>;
|
|
7477
|
+
}>, Schema.Struct<{
|
|
7478
|
+
readonly ok: Schema.Literal<true>;
|
|
7479
|
+
readonly action: Schema.Literal<"update">;
|
|
7480
|
+
readonly behavior: Schema.Struct<{
|
|
7481
|
+
readonly id: Schema.Number;
|
|
7482
|
+
readonly goalId: Schema.Number;
|
|
7483
|
+
readonly ordinal: Schema.Number;
|
|
7484
|
+
readonly behavior: Schema.String;
|
|
7485
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7486
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7487
|
+
readonly createdAt: Schema.String;
|
|
7488
|
+
}>;
|
|
7489
|
+
}>, Schema.Struct<{
|
|
7490
|
+
readonly ok: Schema.Literal<true>;
|
|
7491
|
+
readonly action: Schema.Literal<"delete">;
|
|
7492
|
+
readonly id: Schema.Number;
|
|
7493
|
+
}>, Schema.Struct<{
|
|
7494
|
+
readonly action: Schema.Literal<"get">;
|
|
7495
|
+
readonly found: Schema.Literal<true>;
|
|
7496
|
+
readonly behavior: Schema.Struct<{
|
|
7497
|
+
readonly id: Schema.Number;
|
|
7498
|
+
readonly goalId: Schema.Number;
|
|
7499
|
+
readonly ordinal: Schema.Number;
|
|
7500
|
+
readonly behavior: Schema.String;
|
|
7501
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7502
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7503
|
+
readonly createdAt: Schema.String;
|
|
7504
|
+
readonly parentGoal: Schema.Struct<{
|
|
7505
|
+
readonly id: Schema.Number;
|
|
7506
|
+
readonly goal: Schema.String;
|
|
7507
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7508
|
+
}>;
|
|
7509
|
+
readonly dependencies: Schema.$Array<Schema.Struct<{
|
|
7510
|
+
readonly id: Schema.Number;
|
|
7511
|
+
readonly goalId: Schema.Number;
|
|
7512
|
+
readonly ordinal: Schema.Number;
|
|
7513
|
+
readonly behavior: Schema.String;
|
|
7514
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7515
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7516
|
+
readonly createdAt: Schema.String;
|
|
7517
|
+
}>>;
|
|
7518
|
+
}>;
|
|
7519
|
+
}>, Schema.Struct<{
|
|
7520
|
+
readonly action: Schema.Literal<"get">;
|
|
7521
|
+
readonly found: Schema.Literal<false>;
|
|
7522
|
+
readonly id: Schema.Number;
|
|
7523
|
+
}>, Schema.Struct<{
|
|
7524
|
+
readonly ok: Schema.Literal<true>;
|
|
7525
|
+
readonly action: Schema.Literal<"list_by_goal">;
|
|
7526
|
+
readonly goalId: Schema.Number;
|
|
7527
|
+
readonly behaviors: Schema.$Array<Schema.Struct<{
|
|
7528
|
+
readonly id: Schema.Number;
|
|
7529
|
+
readonly goalId: Schema.Number;
|
|
7530
|
+
readonly ordinal: Schema.Number;
|
|
7531
|
+
readonly behavior: Schema.String;
|
|
7532
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7533
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7534
|
+
readonly createdAt: Schema.String;
|
|
7535
|
+
}>>;
|
|
7536
|
+
}>, Schema.Struct<{
|
|
7537
|
+
readonly ok: Schema.Literal<true>;
|
|
7538
|
+
readonly action: Schema.Literal<"list_by_tdd_task">;
|
|
7539
|
+
readonly tddTaskId: Schema.Number;
|
|
7540
|
+
readonly behaviors: Schema.$Array<Schema.Struct<{
|
|
7541
|
+
readonly id: Schema.Number;
|
|
7542
|
+
readonly goalId: Schema.Number;
|
|
7543
|
+
readonly ordinal: Schema.Number;
|
|
7544
|
+
readonly behavior: Schema.String;
|
|
7545
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7546
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7547
|
+
readonly createdAt: Schema.String;
|
|
7548
|
+
}>>;
|
|
7549
|
+
}>, Schema.Struct<{
|
|
7550
|
+
readonly ok: Schema.Literal<false>;
|
|
7551
|
+
readonly error: Schema.StructWithRest<Schema.Struct<{
|
|
7552
|
+
readonly _tag: Schema.String;
|
|
7553
|
+
readonly remediation: Schema.Struct<{
|
|
7554
|
+
readonly hint: Schema.String;
|
|
7555
|
+
readonly suggestedTool: Schema.optionalKey<Schema.String>;
|
|
7556
|
+
readonly suggestedArgs: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
7557
|
+
}>;
|
|
7558
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
|
|
7559
|
+
}>]>;
|
|
7560
|
+
/**
|
|
7561
|
+
* The decoded {@link TddBehaviorResult}.
|
|
7562
|
+
*
|
|
7563
|
+
* @public
|
|
7564
|
+
*/
|
|
7565
|
+
type TddBehaviorResultType = Schema.Schema.Type<typeof TddBehaviorResult>;
|
|
7566
|
+
/**
|
|
7567
|
+
* The `tdd_behavior` tool's parameters — a union discriminated on `action`.
|
|
7568
|
+
*
|
|
7569
|
+
* @public
|
|
7570
|
+
*/
|
|
7571
|
+
export declare const TddBehaviorInput: Schema.Union<readonly [Schema.Struct<{
|
|
7572
|
+
readonly action: Schema.Literal<"create">;
|
|
7573
|
+
readonly goalId: Schema.Finite;
|
|
7574
|
+
readonly behavior: Schema.String;
|
|
7575
|
+
readonly suggestedTestName: Schema.optionalKey<Schema.String>;
|
|
7576
|
+
readonly dependsOnBehaviorIds: Schema.optionalKey<Schema.$Array<Schema.Finite>>;
|
|
7577
|
+
}>, Schema.Struct<{
|
|
7578
|
+
readonly action: Schema.Literal<"update">;
|
|
7579
|
+
readonly id: Schema.Finite;
|
|
7580
|
+
readonly behavior: Schema.optionalKey<Schema.String>;
|
|
7581
|
+
readonly suggestedTestName: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
7582
|
+
readonly status: Schema.optionalKey<Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>>;
|
|
7583
|
+
readonly dependsOnBehaviorIds: Schema.optionalKey<Schema.$Array<Schema.Finite>>;
|
|
7584
|
+
}>, Schema.Struct<{
|
|
7585
|
+
readonly action: Schema.Literal<"delete">;
|
|
7586
|
+
readonly id: Schema.Finite;
|
|
7587
|
+
}>, Schema.Struct<{
|
|
7588
|
+
readonly action: Schema.Literal<"get">;
|
|
7589
|
+
readonly id: Schema.Finite;
|
|
7590
|
+
}>, Schema.Struct<{
|
|
7591
|
+
readonly action: Schema.Literal<"list_by_goal">;
|
|
7592
|
+
readonly goalId: Schema.Finite;
|
|
7593
|
+
}>, Schema.Struct<{
|
|
7594
|
+
readonly action: Schema.Literal<"list_by_tdd_task">;
|
|
7595
|
+
readonly tddTaskId: Schema.Finite;
|
|
7596
|
+
}>]>;
|
|
7597
|
+
/**
|
|
7598
|
+
* The decoded {@link TddBehaviorInput}.
|
|
7599
|
+
*
|
|
7600
|
+
* @public
|
|
7601
|
+
*/
|
|
7602
|
+
type TddBehaviorInputType = Schema.Schema.Type<typeof TddBehaviorInput>;
|
|
7603
|
+
/**
|
|
7604
|
+
* Handler for {@link tddBehaviorTool}. The five tagged TDD errors come
|
|
7605
|
+
* back as the `{ ok: false, error }` envelope; anything else is a defect.
|
|
7606
|
+
*
|
|
7607
|
+
* @public
|
|
7608
|
+
*/
|
|
7609
|
+
export declare const handleTddBehavior: (input: TddBehaviorInputType) => Effect.Effect<TddBehaviorResultType, never, DataReader | DataStore>;
|
|
7610
|
+
/**
|
|
7611
|
+
* The Effect-native `tdd_behavior` tool.
|
|
7612
|
+
*
|
|
7613
|
+
* @public
|
|
7614
|
+
*/
|
|
7615
|
+
export declare const tddBehaviorTool: import("@effected/mcp").UnionTool<"tdd_behavior", Schema.Union<readonly [Schema.Struct<{
|
|
7616
|
+
readonly action: Schema.Literal<"create">;
|
|
7617
|
+
readonly goalId: Schema.Finite;
|
|
7618
|
+
readonly behavior: Schema.String;
|
|
7619
|
+
readonly suggestedTestName: Schema.optionalKey<Schema.String>;
|
|
7620
|
+
readonly dependsOnBehaviorIds: Schema.optionalKey<Schema.$Array<Schema.Finite>>;
|
|
7621
|
+
}>, Schema.Struct<{
|
|
7622
|
+
readonly action: Schema.Literal<"update">;
|
|
7623
|
+
readonly id: Schema.Finite;
|
|
7624
|
+
readonly behavior: Schema.optionalKey<Schema.String>;
|
|
7625
|
+
readonly suggestedTestName: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
7626
|
+
readonly status: Schema.optionalKey<Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>>;
|
|
7627
|
+
readonly dependsOnBehaviorIds: Schema.optionalKey<Schema.$Array<Schema.Finite>>;
|
|
7628
|
+
}>, Schema.Struct<{
|
|
7629
|
+
readonly action: Schema.Literal<"delete">;
|
|
7630
|
+
readonly id: Schema.Finite;
|
|
7631
|
+
}>, Schema.Struct<{
|
|
7632
|
+
readonly action: Schema.Literal<"get">;
|
|
7633
|
+
readonly id: Schema.Finite;
|
|
7634
|
+
}>, Schema.Struct<{
|
|
7635
|
+
readonly action: Schema.Literal<"list_by_goal">;
|
|
7636
|
+
readonly goalId: Schema.Finite;
|
|
7637
|
+
}>, Schema.Struct<{
|
|
7638
|
+
readonly action: Schema.Literal<"list_by_tdd_task">;
|
|
7639
|
+
readonly tddTaskId: Schema.Finite;
|
|
7640
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
7641
|
+
readonly _idempotentReplay: Schema.optionalKey<Schema.Literal<true>>;
|
|
7642
|
+
readonly ok: Schema.Literal<true>;
|
|
7643
|
+
readonly action: Schema.Literal<"create">;
|
|
7644
|
+
readonly behavior: Schema.Struct<{
|
|
7645
|
+
readonly id: Schema.Number;
|
|
7646
|
+
readonly goalId: Schema.Number;
|
|
7647
|
+
readonly ordinal: Schema.Number;
|
|
7648
|
+
readonly behavior: Schema.String;
|
|
7649
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7650
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7651
|
+
readonly createdAt: Schema.String;
|
|
7652
|
+
}>;
|
|
7653
|
+
}>, Schema.Struct<{
|
|
7654
|
+
readonly ok: Schema.Literal<true>;
|
|
7655
|
+
readonly action: Schema.Literal<"update">;
|
|
7656
|
+
readonly behavior: Schema.Struct<{
|
|
7657
|
+
readonly id: Schema.Number;
|
|
7658
|
+
readonly goalId: Schema.Number;
|
|
7659
|
+
readonly ordinal: Schema.Number;
|
|
7660
|
+
readonly behavior: Schema.String;
|
|
7661
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7662
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7663
|
+
readonly createdAt: Schema.String;
|
|
7664
|
+
}>;
|
|
7665
|
+
}>, Schema.Struct<{
|
|
7666
|
+
readonly ok: Schema.Literal<true>;
|
|
7667
|
+
readonly action: Schema.Literal<"delete">;
|
|
7668
|
+
readonly id: Schema.Number;
|
|
7669
|
+
}>, Schema.Struct<{
|
|
7670
|
+
readonly action: Schema.Literal<"get">;
|
|
7671
|
+
readonly found: Schema.Literal<true>;
|
|
7672
|
+
readonly behavior: Schema.Struct<{
|
|
7673
|
+
readonly id: Schema.Number;
|
|
7674
|
+
readonly goalId: Schema.Number;
|
|
7675
|
+
readonly ordinal: Schema.Number;
|
|
7676
|
+
readonly behavior: Schema.String;
|
|
7677
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7678
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7679
|
+
readonly createdAt: Schema.String;
|
|
7680
|
+
readonly parentGoal: Schema.Struct<{
|
|
7681
|
+
readonly id: Schema.Number;
|
|
7682
|
+
readonly goal: Schema.String;
|
|
7683
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7684
|
+
}>;
|
|
7685
|
+
readonly dependencies: Schema.$Array<Schema.Struct<{
|
|
7686
|
+
readonly id: Schema.Number;
|
|
7687
|
+
readonly goalId: Schema.Number;
|
|
7688
|
+
readonly ordinal: Schema.Number;
|
|
7689
|
+
readonly behavior: Schema.String;
|
|
7690
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7691
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7692
|
+
readonly createdAt: Schema.String;
|
|
7693
|
+
}>>;
|
|
7694
|
+
}>;
|
|
7695
|
+
}>, Schema.Struct<{
|
|
7696
|
+
readonly action: Schema.Literal<"get">;
|
|
7697
|
+
readonly found: Schema.Literal<false>;
|
|
7698
|
+
readonly id: Schema.Number;
|
|
7699
|
+
}>, Schema.Struct<{
|
|
7700
|
+
readonly ok: Schema.Literal<true>;
|
|
7701
|
+
readonly action: Schema.Literal<"list_by_goal">;
|
|
7702
|
+
readonly goalId: Schema.Number;
|
|
7703
|
+
readonly behaviors: Schema.$Array<Schema.Struct<{
|
|
7704
|
+
readonly id: Schema.Number;
|
|
7705
|
+
readonly goalId: Schema.Number;
|
|
7706
|
+
readonly ordinal: Schema.Number;
|
|
7707
|
+
readonly behavior: Schema.String;
|
|
7708
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7709
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7710
|
+
readonly createdAt: Schema.String;
|
|
7711
|
+
}>>;
|
|
7712
|
+
}>, Schema.Struct<{
|
|
7713
|
+
readonly ok: Schema.Literal<true>;
|
|
7714
|
+
readonly action: Schema.Literal<"list_by_tdd_task">;
|
|
7715
|
+
readonly tddTaskId: Schema.Number;
|
|
7716
|
+
readonly behaviors: Schema.$Array<Schema.Struct<{
|
|
7717
|
+
readonly id: Schema.Number;
|
|
7718
|
+
readonly goalId: Schema.Number;
|
|
7719
|
+
readonly ordinal: Schema.Number;
|
|
7720
|
+
readonly behavior: Schema.String;
|
|
7721
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7722
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7723
|
+
readonly createdAt: Schema.String;
|
|
7724
|
+
}>>;
|
|
7725
|
+
}>, Schema.Struct<{
|
|
7726
|
+
readonly ok: Schema.Literal<false>;
|
|
7727
|
+
readonly error: Schema.StructWithRest<Schema.Struct<{
|
|
7728
|
+
readonly _tag: Schema.String;
|
|
7729
|
+
readonly remediation: Schema.Struct<{
|
|
7730
|
+
readonly hint: Schema.String;
|
|
7731
|
+
readonly suggestedTool: Schema.optionalKey<Schema.String>;
|
|
7732
|
+
readonly suggestedArgs: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
7733
|
+
}>;
|
|
7734
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
|
|
7735
|
+
}>]>, typeof ToolRefusal$1, DataReader | DataStore>;
|
|
7736
|
+
/**
|
|
7737
|
+
* The `tdd_goal` tool's success payload.
|
|
7738
|
+
*
|
|
7739
|
+
* @public
|
|
7740
|
+
*/
|
|
7741
|
+
export declare const TddGoalResult: Schema.Union<readonly [Schema.Struct<{
|
|
7742
|
+
readonly _idempotentReplay: Schema.optionalKey<Schema.Literal<true>>;
|
|
7743
|
+
readonly ok: Schema.Literal<true>;
|
|
7744
|
+
readonly action: Schema.Literal<"create">;
|
|
7745
|
+
readonly goal: Schema.Struct<{
|
|
7746
|
+
readonly id: Schema.Number;
|
|
7747
|
+
readonly sessionId: Schema.Number;
|
|
7748
|
+
readonly ordinal: Schema.Number;
|
|
7749
|
+
readonly goal: Schema.String;
|
|
7750
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7751
|
+
readonly createdAt: Schema.String;
|
|
7752
|
+
}>;
|
|
7753
|
+
}>, Schema.Struct<{
|
|
7754
|
+
readonly ok: Schema.Literal<true>;
|
|
7755
|
+
readonly action: Schema.Literal<"update">;
|
|
7756
|
+
readonly goal: Schema.Struct<{
|
|
7757
|
+
readonly id: Schema.Number;
|
|
7758
|
+
readonly sessionId: Schema.Number;
|
|
7759
|
+
readonly ordinal: Schema.Number;
|
|
7760
|
+
readonly goal: Schema.String;
|
|
7761
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7762
|
+
readonly createdAt: Schema.String;
|
|
7763
|
+
}>;
|
|
7764
|
+
}>, Schema.Struct<{
|
|
7765
|
+
readonly ok: Schema.Literal<true>;
|
|
7766
|
+
readonly action: Schema.Literal<"delete">;
|
|
7767
|
+
readonly id: Schema.Number;
|
|
7768
|
+
}>, Schema.Struct<{
|
|
7769
|
+
readonly action: Schema.Literal<"get">;
|
|
7770
|
+
readonly found: Schema.Literal<true>;
|
|
7771
|
+
readonly goal: Schema.Struct<{
|
|
7772
|
+
readonly id: Schema.Number;
|
|
7773
|
+
readonly sessionId: Schema.Number;
|
|
7774
|
+
readonly ordinal: Schema.Number;
|
|
7775
|
+
readonly goal: Schema.String;
|
|
7776
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7777
|
+
readonly createdAt: Schema.String;
|
|
7778
|
+
readonly behaviors: Schema.$Array<Schema.Struct<{
|
|
7779
|
+
readonly id: Schema.Number;
|
|
7780
|
+
readonly goalId: Schema.Number;
|
|
7781
|
+
readonly ordinal: Schema.Number;
|
|
7782
|
+
readonly behavior: Schema.String;
|
|
7783
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7784
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7785
|
+
readonly createdAt: Schema.String;
|
|
7786
|
+
}>>;
|
|
7787
|
+
}>;
|
|
7788
|
+
}>, Schema.Struct<{
|
|
7789
|
+
readonly action: Schema.Literal<"get">;
|
|
7790
|
+
readonly found: Schema.Literal<false>;
|
|
7791
|
+
readonly id: Schema.Number;
|
|
7792
|
+
}>, Schema.Struct<{
|
|
7793
|
+
readonly ok: Schema.Literal<true>;
|
|
7794
|
+
readonly action: Schema.Literal<"list">;
|
|
7795
|
+
readonly tddTaskId: Schema.Number;
|
|
7796
|
+
readonly goals: Schema.$Array<Schema.Struct<{
|
|
7797
|
+
readonly id: Schema.Number;
|
|
7798
|
+
readonly sessionId: Schema.Number;
|
|
7799
|
+
readonly ordinal: Schema.Number;
|
|
7800
|
+
readonly goal: Schema.String;
|
|
7801
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7802
|
+
readonly createdAt: Schema.String;
|
|
7803
|
+
readonly behaviors: Schema.$Array<Schema.Struct<{
|
|
7804
|
+
readonly id: Schema.Number;
|
|
7805
|
+
readonly goalId: Schema.Number;
|
|
7806
|
+
readonly ordinal: Schema.Number;
|
|
7807
|
+
readonly behavior: Schema.String;
|
|
7808
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7809
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7810
|
+
readonly createdAt: Schema.String;
|
|
7811
|
+
}>>;
|
|
7812
|
+
}>>;
|
|
7813
|
+
}>, Schema.Struct<{
|
|
7814
|
+
readonly ok: Schema.Literal<false>;
|
|
7815
|
+
readonly error: Schema.StructWithRest<Schema.Struct<{
|
|
7816
|
+
readonly _tag: Schema.String;
|
|
7817
|
+
readonly remediation: Schema.Struct<{
|
|
7818
|
+
readonly hint: Schema.String;
|
|
7819
|
+
readonly suggestedTool: Schema.optionalKey<Schema.String>;
|
|
7820
|
+
readonly suggestedArgs: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
7821
|
+
}>;
|
|
7822
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
|
|
7823
|
+
}>]>;
|
|
7824
|
+
/**
|
|
7825
|
+
* The decoded {@link TddGoalResult}.
|
|
7826
|
+
*
|
|
7827
|
+
* @public
|
|
7828
|
+
*/
|
|
7829
|
+
type TddGoalResultType = Schema.Schema.Type<typeof TddGoalResult>;
|
|
7830
|
+
/**
|
|
7831
|
+
* The `tdd_goal` tool's parameters — a union discriminated on `action`.
|
|
7832
|
+
*
|
|
7833
|
+
* @public
|
|
7834
|
+
*/
|
|
7835
|
+
export declare const TddGoalInput: Schema.Union<readonly [Schema.Struct<{
|
|
7836
|
+
readonly action: Schema.Literal<"create">;
|
|
7837
|
+
readonly tddTaskId: Schema.Finite;
|
|
7838
|
+
readonly goal: Schema.String;
|
|
7839
|
+
}>, Schema.Struct<{
|
|
7840
|
+
readonly action: Schema.Literal<"update">;
|
|
7841
|
+
readonly id: Schema.Finite;
|
|
7842
|
+
readonly goal: Schema.optionalKey<Schema.String>;
|
|
7843
|
+
readonly status: Schema.optionalKey<Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>>;
|
|
7844
|
+
}>, Schema.Struct<{
|
|
7845
|
+
readonly action: Schema.Literal<"delete">;
|
|
7846
|
+
readonly id: Schema.Finite;
|
|
7847
|
+
}>, Schema.Struct<{
|
|
7848
|
+
readonly action: Schema.Literal<"get">;
|
|
7849
|
+
readonly id: Schema.Finite;
|
|
7850
|
+
}>, Schema.Struct<{
|
|
7851
|
+
readonly action: Schema.Literal<"list">;
|
|
7852
|
+
readonly tddTaskId: Schema.Finite;
|
|
7853
|
+
}>]>;
|
|
7854
|
+
/**
|
|
7855
|
+
* The decoded {@link TddGoalInput}.
|
|
7856
|
+
*
|
|
7857
|
+
* @public
|
|
7858
|
+
*/
|
|
7859
|
+
type TddGoalInputType = Schema.Schema.Type<typeof TddGoalInput>;
|
|
7860
|
+
/**
|
|
7861
|
+
* Handler for {@link tddGoalTool}. The five tagged TDD errors come back as
|
|
7862
|
+
* the `{ ok: false, error }` envelope; anything else is a defect.
|
|
7863
|
+
*
|
|
7864
|
+
* @public
|
|
7865
|
+
*/
|
|
7866
|
+
export declare const handleTddGoal: (input: TddGoalInputType) => Effect.Effect<TddGoalResultType, never, DataReader | DataStore>;
|
|
7867
|
+
/**
|
|
7868
|
+
* The Effect-native `tdd_goal` tool.
|
|
7869
|
+
*
|
|
7870
|
+
* @public
|
|
7871
|
+
*/
|
|
7872
|
+
export declare const tddGoalTool: import("@effected/mcp").UnionTool<"tdd_goal", Schema.Union<readonly [Schema.Struct<{
|
|
7873
|
+
readonly action: Schema.Literal<"create">;
|
|
7874
|
+
readonly tddTaskId: Schema.Finite;
|
|
7875
|
+
readonly goal: Schema.String;
|
|
7876
|
+
}>, Schema.Struct<{
|
|
7877
|
+
readonly action: Schema.Literal<"update">;
|
|
7878
|
+
readonly id: Schema.Finite;
|
|
7879
|
+
readonly goal: Schema.optionalKey<Schema.String>;
|
|
7880
|
+
readonly status: Schema.optionalKey<Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>>;
|
|
7881
|
+
}>, Schema.Struct<{
|
|
7882
|
+
readonly action: Schema.Literal<"delete">;
|
|
7883
|
+
readonly id: Schema.Finite;
|
|
7884
|
+
}>, Schema.Struct<{
|
|
7885
|
+
readonly action: Schema.Literal<"get">;
|
|
7886
|
+
readonly id: Schema.Finite;
|
|
7887
|
+
}>, Schema.Struct<{
|
|
7888
|
+
readonly action: Schema.Literal<"list">;
|
|
7889
|
+
readonly tddTaskId: Schema.Finite;
|
|
7890
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
7891
|
+
readonly _idempotentReplay: Schema.optionalKey<Schema.Literal<true>>;
|
|
7892
|
+
readonly ok: Schema.Literal<true>;
|
|
7893
|
+
readonly action: Schema.Literal<"create">;
|
|
7894
|
+
readonly goal: Schema.Struct<{
|
|
7895
|
+
readonly id: Schema.Number;
|
|
7896
|
+
readonly sessionId: Schema.Number;
|
|
7897
|
+
readonly ordinal: Schema.Number;
|
|
7898
|
+
readonly goal: Schema.String;
|
|
7899
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7900
|
+
readonly createdAt: Schema.String;
|
|
7901
|
+
}>;
|
|
7902
|
+
}>, Schema.Struct<{
|
|
7903
|
+
readonly ok: Schema.Literal<true>;
|
|
7904
|
+
readonly action: Schema.Literal<"update">;
|
|
7905
|
+
readonly goal: Schema.Struct<{
|
|
7906
|
+
readonly id: Schema.Number;
|
|
7907
|
+
readonly sessionId: Schema.Number;
|
|
7908
|
+
readonly ordinal: Schema.Number;
|
|
7909
|
+
readonly goal: Schema.String;
|
|
7910
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7911
|
+
readonly createdAt: Schema.String;
|
|
7912
|
+
}>;
|
|
7913
|
+
}>, Schema.Struct<{
|
|
7914
|
+
readonly ok: Schema.Literal<true>;
|
|
7915
|
+
readonly action: Schema.Literal<"delete">;
|
|
7916
|
+
readonly id: Schema.Number;
|
|
7917
|
+
}>, Schema.Struct<{
|
|
7918
|
+
readonly action: Schema.Literal<"get">;
|
|
7919
|
+
readonly found: Schema.Literal<true>;
|
|
7920
|
+
readonly goal: Schema.Struct<{
|
|
7921
|
+
readonly id: Schema.Number;
|
|
7922
|
+
readonly sessionId: Schema.Number;
|
|
7923
|
+
readonly ordinal: Schema.Number;
|
|
7924
|
+
readonly goal: Schema.String;
|
|
7925
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7926
|
+
readonly createdAt: Schema.String;
|
|
7927
|
+
readonly behaviors: Schema.$Array<Schema.Struct<{
|
|
7928
|
+
readonly id: Schema.Number;
|
|
7929
|
+
readonly goalId: Schema.Number;
|
|
7930
|
+
readonly ordinal: Schema.Number;
|
|
7931
|
+
readonly behavior: Schema.String;
|
|
7932
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7933
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7934
|
+
readonly createdAt: Schema.String;
|
|
7935
|
+
}>>;
|
|
7936
|
+
}>;
|
|
7937
|
+
}>, Schema.Struct<{
|
|
7938
|
+
readonly action: Schema.Literal<"get">;
|
|
7939
|
+
readonly found: Schema.Literal<false>;
|
|
7940
|
+
readonly id: Schema.Number;
|
|
7941
|
+
}>, Schema.Struct<{
|
|
7942
|
+
readonly ok: Schema.Literal<true>;
|
|
7943
|
+
readonly action: Schema.Literal<"list">;
|
|
7944
|
+
readonly tddTaskId: Schema.Number;
|
|
7945
|
+
readonly goals: Schema.$Array<Schema.Struct<{
|
|
7946
|
+
readonly id: Schema.Number;
|
|
7947
|
+
readonly sessionId: Schema.Number;
|
|
7948
|
+
readonly ordinal: Schema.Number;
|
|
7949
|
+
readonly goal: Schema.String;
|
|
7950
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7951
|
+
readonly createdAt: Schema.String;
|
|
7952
|
+
readonly behaviors: Schema.$Array<Schema.Struct<{
|
|
7953
|
+
readonly id: Schema.Number;
|
|
7954
|
+
readonly goalId: Schema.Number;
|
|
7955
|
+
readonly ordinal: Schema.Number;
|
|
7956
|
+
readonly behavior: Schema.String;
|
|
7957
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
7958
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
7959
|
+
readonly createdAt: Schema.String;
|
|
7960
|
+
}>>;
|
|
7961
|
+
}>>;
|
|
7962
|
+
}>, Schema.Struct<{
|
|
7963
|
+
readonly ok: Schema.Literal<false>;
|
|
7964
|
+
readonly error: Schema.StructWithRest<Schema.Struct<{
|
|
7965
|
+
readonly _tag: Schema.String;
|
|
7966
|
+
readonly remediation: Schema.Struct<{
|
|
7967
|
+
readonly hint: Schema.String;
|
|
7968
|
+
readonly suggestedTool: Schema.optionalKey<Schema.String>;
|
|
7969
|
+
readonly suggestedArgs: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
7970
|
+
}>;
|
|
7971
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
|
|
7972
|
+
}>]>, typeof ToolRefusal$1, DataReader | DataStore>;
|
|
7973
|
+
/**
|
|
7974
|
+
* The `tdd_task` tool's success payload.
|
|
7975
|
+
*
|
|
7976
|
+
* @public
|
|
7977
|
+
*/
|
|
7978
|
+
export declare const TddTaskResult: Schema.Union<readonly [Schema.Struct<{
|
|
7979
|
+
readonly _idempotentReplay: Schema.optionalKey<Schema.Literal<true>>;
|
|
7980
|
+
readonly action: Schema.Literal<"start">;
|
|
7981
|
+
readonly tddTaskId: Schema.Number;
|
|
7982
|
+
readonly goal: Schema.String;
|
|
7983
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
7984
|
+
}>, Schema.Struct<{
|
|
7985
|
+
readonly _idempotentReplay: Schema.optionalKey<Schema.Literal<true>>;
|
|
7986
|
+
readonly action: Schema.Literal<"end">;
|
|
7987
|
+
readonly tddTaskId: Schema.Number;
|
|
7988
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "blocked", "abandoned"]>;
|
|
7989
|
+
}>, Schema.Struct<{
|
|
7990
|
+
readonly action: Schema.Literal<"get">;
|
|
7991
|
+
readonly found: Schema.Literal<true>;
|
|
7992
|
+
readonly task: Schema.Struct<{
|
|
7993
|
+
readonly tddTaskId: Schema.Number;
|
|
7994
|
+
readonly sessionId: Schema.Number;
|
|
7995
|
+
readonly goal: Schema.String;
|
|
7996
|
+
readonly startedAt: Schema.String;
|
|
7997
|
+
readonly endedAt: Schema.NullOr<Schema.String>;
|
|
7998
|
+
readonly outcome: Schema.NullOr<Schema.String>;
|
|
7999
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
8000
|
+
readonly goals: Schema.$Array<Schema.Struct<{
|
|
8001
|
+
readonly id: Schema.Number;
|
|
8002
|
+
readonly sessionId: Schema.Number;
|
|
8003
|
+
readonly ordinal: Schema.Number;
|
|
8004
|
+
readonly goal: Schema.String;
|
|
8005
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
8006
|
+
readonly createdAt: Schema.String;
|
|
8007
|
+
readonly behaviors: Schema.$Array<Schema.Struct<{
|
|
8008
|
+
readonly id: Schema.Number;
|
|
8009
|
+
readonly goalId: Schema.Number;
|
|
8010
|
+
readonly ordinal: Schema.Number;
|
|
8011
|
+
readonly behavior: Schema.String;
|
|
8012
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
8013
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
8014
|
+
readonly createdAt: Schema.String;
|
|
8015
|
+
}>>;
|
|
8016
|
+
}>>;
|
|
8017
|
+
readonly phases: Schema.$Array<Schema.Struct<{
|
|
8018
|
+
readonly id: Schema.Number;
|
|
8019
|
+
readonly behaviorId: Schema.NullOr<Schema.Number>;
|
|
8020
|
+
readonly phase: Schema.String;
|
|
8021
|
+
readonly startedAt: Schema.String;
|
|
8022
|
+
readonly endedAt: Schema.NullOr<Schema.String>;
|
|
8023
|
+
readonly transitionReason: Schema.NullOr<Schema.String>;
|
|
8024
|
+
}>>;
|
|
8025
|
+
readonly artifacts: Schema.$Array<Schema.Struct<{
|
|
8026
|
+
readonly id: Schema.Number;
|
|
8027
|
+
readonly phaseId: Schema.Number;
|
|
8028
|
+
readonly artifactKind: Schema.String;
|
|
8029
|
+
readonly testCaseId: Schema.NullOr<Schema.Number>;
|
|
8030
|
+
readonly testRunId: Schema.NullOr<Schema.Number>;
|
|
8031
|
+
readonly recordedAt: Schema.String;
|
|
8032
|
+
}>>;
|
|
8033
|
+
}>;
|
|
8034
|
+
readonly currentPhase: Schema.NullOr<Schema.Struct<{
|
|
8035
|
+
readonly id: Schema.Number;
|
|
8036
|
+
readonly phase: Schema.String;
|
|
8037
|
+
readonly startedAt: Schema.String;
|
|
8038
|
+
readonly behaviorId: Schema.NullOr<Schema.Number>;
|
|
8039
|
+
}>>;
|
|
8040
|
+
}>, Schema.Struct<{
|
|
8041
|
+
readonly action: Schema.Literal<"get">;
|
|
8042
|
+
readonly found: Schema.Literal<false>;
|
|
8043
|
+
readonly tddTaskId: Schema.Number;
|
|
8044
|
+
}>, Schema.Struct<{
|
|
8045
|
+
readonly action: Schema.Literal<"resume">;
|
|
8046
|
+
readonly found: Schema.Literal<true>;
|
|
8047
|
+
readonly tddTaskId: Schema.Number;
|
|
8048
|
+
readonly goal: Schema.String;
|
|
8049
|
+
readonly status: Schema.String;
|
|
8050
|
+
readonly currentPhase: Schema.NullOr<Schema.Struct<{
|
|
8051
|
+
readonly id: Schema.Number;
|
|
8052
|
+
readonly phase: Schema.String;
|
|
8053
|
+
readonly startedAt: Schema.String;
|
|
8054
|
+
readonly behaviorId: Schema.NullOr<Schema.Number>;
|
|
8055
|
+
}>>;
|
|
8056
|
+
readonly phasesRecorded: Schema.Number;
|
|
8057
|
+
readonly artifactsRecorded: Schema.Number;
|
|
8058
|
+
}>, Schema.Struct<{
|
|
8059
|
+
readonly action: Schema.Literal<"resume">;
|
|
8060
|
+
readonly found: Schema.Literal<false>;
|
|
8061
|
+
readonly tddTaskId: Schema.Number;
|
|
8062
|
+
}>]>;
|
|
8063
|
+
/**
|
|
8064
|
+
* The decoded {@link TddTaskResult}.
|
|
6023
8065
|
*
|
|
6024
8066
|
* @public
|
|
6025
8067
|
*/
|
|
6026
|
-
type
|
|
8068
|
+
type TddTaskResultType = Schema.Schema.Type<typeof TddTaskResult>;
|
|
6027
8069
|
/**
|
|
6028
|
-
* The `
|
|
8070
|
+
* The `tdd_task` tool's parameters — a union discriminated on `action`.
|
|
6029
8071
|
*
|
|
6030
8072
|
* @public
|
|
6031
8073
|
*/
|
|
6032
|
-
export declare const
|
|
6033
|
-
readonly action: Schema.Literal<"
|
|
6034
|
-
readonly
|
|
6035
|
-
readonly
|
|
6036
|
-
readonly
|
|
6037
|
-
readonly
|
|
6038
|
-
readonly
|
|
6039
|
-
readonly
|
|
6040
|
-
readonly parentNoteId: Schema.optionalKey<Schema.Finite>;
|
|
6041
|
-
readonly createdBy: Schema.optionalKey<Schema.String>;
|
|
6042
|
-
readonly expiresAt: Schema.optionalKey<Schema.String>;
|
|
6043
|
-
readonly pinned: Schema.optionalKey<Schema.Boolean>;
|
|
8074
|
+
export declare const TddTaskInput: Schema.Union<readonly [Schema.Struct<{
|
|
8075
|
+
readonly action: Schema.Literal<"start">;
|
|
8076
|
+
readonly goal: Schema.String;
|
|
8077
|
+
readonly sessionId: Schema.optionalKey<Schema.Finite>;
|
|
8078
|
+
readonly chatId: Schema.optionalKey<Schema.String>;
|
|
8079
|
+
readonly parentTddTaskId: Schema.optionalKey<Schema.Finite>;
|
|
8080
|
+
readonly startedAt: Schema.optionalKey<Schema.String>;
|
|
8081
|
+
readonly runId: Schema.optionalKey<Schema.String>;
|
|
6044
8082
|
}>, Schema.Struct<{
|
|
6045
|
-
readonly action: Schema.Literal<"
|
|
6046
|
-
readonly
|
|
6047
|
-
readonly
|
|
6048
|
-
readonly
|
|
8083
|
+
readonly action: Schema.Literal<"end">;
|
|
8084
|
+
readonly tddTaskId: Schema.Finite;
|
|
8085
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "blocked", "abandoned"]>;
|
|
8086
|
+
readonly summaryNoteId: Schema.optionalKey<Schema.Finite>;
|
|
6049
8087
|
}>, Schema.Struct<{
|
|
6050
8088
|
readonly action: Schema.Literal<"get">;
|
|
6051
|
-
readonly
|
|
6052
|
-
}>, Schema.Struct<{
|
|
6053
|
-
readonly action: Schema.Literal<"update">;
|
|
6054
|
-
readonly id: Schema.Finite;
|
|
6055
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
6056
|
-
readonly content: Schema.optionalKey<Schema.String>;
|
|
6057
|
-
readonly pinned: Schema.optionalKey<Schema.Boolean>;
|
|
6058
|
-
readonly expiresAt: Schema.optionalKey<Schema.String>;
|
|
6059
|
-
}>, Schema.Struct<{
|
|
6060
|
-
readonly action: Schema.Literal<"delete">;
|
|
6061
|
-
readonly id: Schema.Finite;
|
|
8089
|
+
readonly tddTaskId: Schema.Finite;
|
|
6062
8090
|
}>, Schema.Struct<{
|
|
6063
|
-
readonly action: Schema.Literal<"
|
|
6064
|
-
readonly
|
|
8091
|
+
readonly action: Schema.Literal<"resume">;
|
|
8092
|
+
readonly tddTaskId: Schema.Finite;
|
|
6065
8093
|
}>]>;
|
|
6066
8094
|
/**
|
|
6067
|
-
* The decoded {@link
|
|
8095
|
+
* The decoded {@link TddTaskInput}.
|
|
6068
8096
|
*
|
|
6069
8097
|
* @public
|
|
6070
8098
|
*/
|
|
6071
|
-
type
|
|
8099
|
+
type TddTaskInputType = Schema.Schema.Type<typeof TddTaskInput>;
|
|
8100
|
+
/**
|
|
8101
|
+
* Handler for {@link tddTaskTool}. A `start` with neither `sessionId` nor
|
|
8102
|
+
* `chatId`, an unknown `sessionId` or `chatId`, or a blank `runId` fails with a
|
|
8103
|
+
* `ToolRefusal` (an `isError` result naming the fix). A store failure is
|
|
8104
|
+
* a defect.
|
|
8105
|
+
*
|
|
8106
|
+
* @public
|
|
8107
|
+
*/
|
|
8108
|
+
export declare const handleTddTask: (input: TddTaskInputType) => Effect.Effect<TddTaskResultType, ToolRefusal$1, DataReader | DataStore>;
|
|
8109
|
+
/**
|
|
8110
|
+
* The Effect-native `tdd_task` tool.
|
|
8111
|
+
*
|
|
8112
|
+
* @public
|
|
8113
|
+
*/
|
|
8114
|
+
export declare const tddTaskTool: import("@effected/mcp").UnionTool<"tdd_task", Schema.Union<readonly [Schema.Struct<{
|
|
8115
|
+
readonly action: Schema.Literal<"start">;
|
|
8116
|
+
readonly goal: Schema.String;
|
|
8117
|
+
readonly sessionId: Schema.optionalKey<Schema.Finite>;
|
|
8118
|
+
readonly chatId: Schema.optionalKey<Schema.String>;
|
|
8119
|
+
readonly parentTddTaskId: Schema.optionalKey<Schema.Finite>;
|
|
8120
|
+
readonly startedAt: Schema.optionalKey<Schema.String>;
|
|
8121
|
+
readonly runId: Schema.optionalKey<Schema.String>;
|
|
8122
|
+
}>, Schema.Struct<{
|
|
8123
|
+
readonly action: Schema.Literal<"end">;
|
|
8124
|
+
readonly tddTaskId: Schema.Finite;
|
|
8125
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "blocked", "abandoned"]>;
|
|
8126
|
+
readonly summaryNoteId: Schema.optionalKey<Schema.Finite>;
|
|
8127
|
+
}>, Schema.Struct<{
|
|
8128
|
+
readonly action: Schema.Literal<"get">;
|
|
8129
|
+
readonly tddTaskId: Schema.Finite;
|
|
8130
|
+
}>, Schema.Struct<{
|
|
8131
|
+
readonly action: Schema.Literal<"resume">;
|
|
8132
|
+
readonly tddTaskId: Schema.Finite;
|
|
8133
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
8134
|
+
readonly _idempotentReplay: Schema.optionalKey<Schema.Literal<true>>;
|
|
8135
|
+
readonly action: Schema.Literal<"start">;
|
|
8136
|
+
readonly tddTaskId: Schema.Number;
|
|
8137
|
+
readonly goal: Schema.String;
|
|
8138
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
8139
|
+
}>, Schema.Struct<{
|
|
8140
|
+
readonly _idempotentReplay: Schema.optionalKey<Schema.Literal<true>>;
|
|
8141
|
+
readonly action: Schema.Literal<"end">;
|
|
8142
|
+
readonly tddTaskId: Schema.Number;
|
|
8143
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "blocked", "abandoned"]>;
|
|
8144
|
+
}>, Schema.Struct<{
|
|
8145
|
+
readonly action: Schema.Literal<"get">;
|
|
8146
|
+
readonly found: Schema.Literal<true>;
|
|
8147
|
+
readonly task: Schema.Struct<{
|
|
8148
|
+
readonly tddTaskId: Schema.Number;
|
|
8149
|
+
readonly sessionId: Schema.Number;
|
|
8150
|
+
readonly goal: Schema.String;
|
|
8151
|
+
readonly startedAt: Schema.String;
|
|
8152
|
+
readonly endedAt: Schema.NullOr<Schema.String>;
|
|
8153
|
+
readonly outcome: Schema.NullOr<Schema.String>;
|
|
8154
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
8155
|
+
readonly goals: Schema.$Array<Schema.Struct<{
|
|
8156
|
+
readonly id: Schema.Number;
|
|
8157
|
+
readonly sessionId: Schema.Number;
|
|
8158
|
+
readonly ordinal: Schema.Number;
|
|
8159
|
+
readonly goal: Schema.String;
|
|
8160
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
8161
|
+
readonly createdAt: Schema.String;
|
|
8162
|
+
readonly behaviors: Schema.$Array<Schema.Struct<{
|
|
8163
|
+
readonly id: Schema.Number;
|
|
8164
|
+
readonly goalId: Schema.Number;
|
|
8165
|
+
readonly ordinal: Schema.Number;
|
|
8166
|
+
readonly behavior: Schema.String;
|
|
8167
|
+
readonly suggestedTestName: Schema.NullOr<Schema.String>;
|
|
8168
|
+
readonly status: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
|
|
8169
|
+
readonly createdAt: Schema.String;
|
|
8170
|
+
}>>;
|
|
8171
|
+
}>>;
|
|
8172
|
+
readonly phases: Schema.$Array<Schema.Struct<{
|
|
8173
|
+
readonly id: Schema.Number;
|
|
8174
|
+
readonly behaviorId: Schema.NullOr<Schema.Number>;
|
|
8175
|
+
readonly phase: Schema.String;
|
|
8176
|
+
readonly startedAt: Schema.String;
|
|
8177
|
+
readonly endedAt: Schema.NullOr<Schema.String>;
|
|
8178
|
+
readonly transitionReason: Schema.NullOr<Schema.String>;
|
|
8179
|
+
}>>;
|
|
8180
|
+
readonly artifacts: Schema.$Array<Schema.Struct<{
|
|
8181
|
+
readonly id: Schema.Number;
|
|
8182
|
+
readonly phaseId: Schema.Number;
|
|
8183
|
+
readonly artifactKind: Schema.String;
|
|
8184
|
+
readonly testCaseId: Schema.NullOr<Schema.Number>;
|
|
8185
|
+
readonly testRunId: Schema.NullOr<Schema.Number>;
|
|
8186
|
+
readonly recordedAt: Schema.String;
|
|
8187
|
+
}>>;
|
|
8188
|
+
}>;
|
|
8189
|
+
readonly currentPhase: Schema.NullOr<Schema.Struct<{
|
|
8190
|
+
readonly id: Schema.Number;
|
|
8191
|
+
readonly phase: Schema.String;
|
|
8192
|
+
readonly startedAt: Schema.String;
|
|
8193
|
+
readonly behaviorId: Schema.NullOr<Schema.Number>;
|
|
8194
|
+
}>>;
|
|
8195
|
+
}>, Schema.Struct<{
|
|
8196
|
+
readonly action: Schema.Literal<"get">;
|
|
8197
|
+
readonly found: Schema.Literal<false>;
|
|
8198
|
+
readonly tddTaskId: Schema.Number;
|
|
8199
|
+
}>, Schema.Struct<{
|
|
8200
|
+
readonly action: Schema.Literal<"resume">;
|
|
8201
|
+
readonly found: Schema.Literal<true>;
|
|
8202
|
+
readonly tddTaskId: Schema.Number;
|
|
8203
|
+
readonly goal: Schema.String;
|
|
8204
|
+
readonly status: Schema.String;
|
|
8205
|
+
readonly currentPhase: Schema.NullOr<Schema.Struct<{
|
|
8206
|
+
readonly id: Schema.Number;
|
|
8207
|
+
readonly phase: Schema.String;
|
|
8208
|
+
readonly startedAt: Schema.String;
|
|
8209
|
+
readonly behaviorId: Schema.NullOr<Schema.Number>;
|
|
8210
|
+
}>>;
|
|
8211
|
+
readonly phasesRecorded: Schema.Number;
|
|
8212
|
+
readonly artifactsRecorded: Schema.Number;
|
|
8213
|
+
}>, Schema.Struct<{
|
|
8214
|
+
readonly action: Schema.Literal<"resume">;
|
|
8215
|
+
readonly found: Schema.Literal<false>;
|
|
8216
|
+
readonly tddTaskId: Schema.Number;
|
|
8217
|
+
}>]>, typeof ToolRefusal$1, DataReader | DataStore>;
|
|
6072
8218
|
/**
|
|
6073
8219
|
* The `test` tool's success payload.
|
|
6074
8220
|
*
|
|
@@ -6244,6 +8390,167 @@ export declare const TestInput: Schema.Union<readonly [Schema.Struct<{
|
|
|
6244
8390
|
* @public
|
|
6245
8391
|
*/
|
|
6246
8392
|
type TestInputType = Schema.Schema.Type<typeof TestInput>;
|
|
8393
|
+
/**
|
|
8394
|
+
* Handler for {@link testTool}.
|
|
8395
|
+
*
|
|
8396
|
+
* @public
|
|
8397
|
+
*/
|
|
8398
|
+
export declare const handleTest: (input: TestInputType) => Effect.Effect<TestResultType, never, DataReader>;
|
|
8399
|
+
/**
|
|
8400
|
+
* The Effect-native `test` tool.
|
|
8401
|
+
*
|
|
8402
|
+
* @public
|
|
8403
|
+
*/
|
|
8404
|
+
export declare const testTool: import("@effected/mcp").UnionTool<"test", Schema.Union<readonly [Schema.Struct<{
|
|
8405
|
+
readonly action: Schema.Literal<"list">;
|
|
8406
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
8407
|
+
readonly state: Schema.optionalKey<Schema.String>;
|
|
8408
|
+
readonly module: Schema.optionalKey<Schema.String>;
|
|
8409
|
+
readonly limit: Schema.optionalKey<Schema.Finite>;
|
|
8410
|
+
}>, Schema.Struct<{
|
|
8411
|
+
readonly action: Schema.Literal<"get">;
|
|
8412
|
+
readonly fullName: Schema.String;
|
|
8413
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
8414
|
+
readonly modulePath: Schema.optionalKey<Schema.String>;
|
|
8415
|
+
}>, Schema.Struct<{
|
|
8416
|
+
readonly action: Schema.Literal<"for_file">;
|
|
8417
|
+
readonly filePath: Schema.String;
|
|
8418
|
+
}>, Schema.Struct<{
|
|
8419
|
+
readonly action: Schema.Literal<"for_tag">;
|
|
8420
|
+
readonly tag: Schema.String;
|
|
8421
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
8422
|
+
}>, Schema.Struct<{
|
|
8423
|
+
readonly action: Schema.Literal<"annotations">;
|
|
8424
|
+
readonly fullName: Schema.String;
|
|
8425
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
8426
|
+
readonly modulePath: Schema.optionalKey<Schema.String>;
|
|
8427
|
+
readonly maxBytes: Schema.optionalKey<Schema.Int>;
|
|
8428
|
+
}>, Schema.Struct<{
|
|
8429
|
+
readonly action: Schema.Literal<"artifacts">;
|
|
8430
|
+
readonly fullName: Schema.String;
|
|
8431
|
+
readonly project: Schema.optionalKey<Schema.String>;
|
|
8432
|
+
readonly modulePath: Schema.optionalKey<Schema.String>;
|
|
8433
|
+
readonly maxBytes: Schema.optionalKey<Schema.Int>;
|
|
8434
|
+
}>]>, Schema.Union<readonly [Schema.Struct<{
|
|
8435
|
+
readonly action: Schema.Literal<"list">;
|
|
8436
|
+
readonly count: Schema.Number;
|
|
8437
|
+
readonly groups: Schema.$Array<Schema.Struct<{
|
|
8438
|
+
readonly project: Schema.String;
|
|
8439
|
+
readonly tests: Schema.$Array<Schema.Struct<{
|
|
8440
|
+
readonly id: Schema.Number;
|
|
8441
|
+
readonly fullName: Schema.String;
|
|
8442
|
+
readonly state: Schema.String;
|
|
8443
|
+
readonly duration: Schema.NullOr<Schema.Number>;
|
|
8444
|
+
readonly module: Schema.String;
|
|
8445
|
+
readonly classification: Schema.NullOr<Schema.String>;
|
|
8446
|
+
}>>;
|
|
8447
|
+
}>>;
|
|
8448
|
+
}>, Schema.Struct<{
|
|
8449
|
+
readonly action: Schema.Literal<"get">;
|
|
8450
|
+
readonly found: Schema.Literal<true>;
|
|
8451
|
+
readonly project: Schema.String;
|
|
8452
|
+
readonly test: Schema.Struct<{
|
|
8453
|
+
readonly id: Schema.Number;
|
|
8454
|
+
readonly fullName: Schema.String;
|
|
8455
|
+
readonly state: Schema.String;
|
|
8456
|
+
readonly duration: Schema.NullOr<Schema.Number>;
|
|
8457
|
+
readonly module: Schema.String;
|
|
8458
|
+
readonly classification: Schema.NullOr<Schema.String>;
|
|
8459
|
+
}>;
|
|
8460
|
+
readonly errors: Schema.$Array<Schema.Struct<{
|
|
8461
|
+
readonly name: Schema.NullOr<Schema.String>;
|
|
8462
|
+
readonly message: Schema.String;
|
|
8463
|
+
readonly diff: Schema.NullOr<Schema.String>;
|
|
8464
|
+
readonly stack: Schema.NullOr<Schema.String>;
|
|
8465
|
+
}>>;
|
|
8466
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
8467
|
+
readonly state: Schema.Literals<readonly ["passed", "failed"]>;
|
|
8468
|
+
readonly timestamp: Schema.String;
|
|
8469
|
+
}>>;
|
|
8470
|
+
}>, Schema.Struct<{
|
|
8471
|
+
readonly action: Schema.Literal<"get">;
|
|
8472
|
+
readonly found: Schema.Literal<false>;
|
|
8473
|
+
readonly project: Schema.String;
|
|
8474
|
+
readonly fullName: Schema.String;
|
|
8475
|
+
/**
|
|
8476
|
+
* `true` when the lookup failed *because* the name matched more than
|
|
8477
|
+
* one module in the project's latest run and no `modulePath` was
|
|
8478
|
+
* supplied to disambiguate (issue #243) — as opposed to the name
|
|
8479
|
+
* simply not existing.
|
|
8480
|
+
*/
|
|
8481
|
+
readonly ambiguous: Schema.optional<Schema.Boolean>;
|
|
8482
|
+
/** The module paths a `fullName` matched when `ambiguous` is `true`. */
|
|
8483
|
+
readonly candidateModules: Schema.optional<Schema.$Array<Schema.String>>;
|
|
8484
|
+
}>, Schema.Struct<{
|
|
8485
|
+
readonly action: Schema.Literal<"for_file">;
|
|
8486
|
+
readonly filePath: Schema.String;
|
|
8487
|
+
readonly count: Schema.Number;
|
|
8488
|
+
readonly testFiles: Schema.$Array<Schema.String>;
|
|
8489
|
+
}>, Schema.Struct<{
|
|
8490
|
+
readonly action: Schema.Literal<"for_tag">;
|
|
8491
|
+
readonly tag: Schema.String;
|
|
8492
|
+
readonly count: Schema.Number;
|
|
8493
|
+
readonly groups: Schema.$Array<Schema.Struct<{
|
|
8494
|
+
readonly project: Schema.String;
|
|
8495
|
+
readonly tests: Schema.$Array<Schema.Struct<{
|
|
8496
|
+
readonly id: Schema.Number;
|
|
8497
|
+
readonly fullName: Schema.String;
|
|
8498
|
+
readonly state: Schema.String;
|
|
8499
|
+
readonly duration: Schema.NullOr<Schema.Number>;
|
|
8500
|
+
readonly module: Schema.String;
|
|
8501
|
+
readonly classification: Schema.NullOr<Schema.String>;
|
|
8502
|
+
}>>;
|
|
8503
|
+
}>>;
|
|
8504
|
+
}>, Schema.Struct<{
|
|
8505
|
+
readonly action: Schema.Literal<"annotations">;
|
|
8506
|
+
readonly project: Schema.String;
|
|
8507
|
+
readonly fullName: Schema.String;
|
|
8508
|
+
readonly count: Schema.Number;
|
|
8509
|
+
readonly annotations: Schema.$Array<Schema.Struct<{
|
|
8510
|
+
readonly id: Schema.Number;
|
|
8511
|
+
readonly type: Schema.String;
|
|
8512
|
+
readonly message: Schema.String;
|
|
8513
|
+
readonly location: Schema.optional<Schema.Struct<{
|
|
8514
|
+
readonly file: Schema.String;
|
|
8515
|
+
readonly line: Schema.Number;
|
|
8516
|
+
readonly column: Schema.Number;
|
|
8517
|
+
}>>;
|
|
8518
|
+
readonly attachments: Schema.$Array<Schema.Struct<{
|
|
8519
|
+
readonly contentType: Schema.optional<Schema.String>;
|
|
8520
|
+
readonly path: Schema.optional<Schema.String>;
|
|
8521
|
+
readonly byteSize: Schema.NullOr<Schema.Number>;
|
|
8522
|
+
/** Present only for inline attachments under the 64 KiB persistence cap. */
|
|
8523
|
+
readonly body: Schema.optional<Schema.String>;
|
|
8524
|
+
/** How to read `body`. Absent when nothing was stored inline. */
|
|
8525
|
+
readonly bodyEncoding: Schema.optional<Schema.Literals<readonly ["base64", "utf-8"]>>;
|
|
8526
|
+
}>>;
|
|
8527
|
+
}>>;
|
|
8528
|
+
}>, Schema.Struct<{
|
|
8529
|
+
readonly action: Schema.Literal<"artifacts">;
|
|
8530
|
+
readonly project: Schema.String;
|
|
8531
|
+
readonly fullName: Schema.String;
|
|
8532
|
+
readonly count: Schema.Number;
|
|
8533
|
+
readonly artifacts: Schema.$Array<Schema.Struct<{
|
|
8534
|
+
readonly id: Schema.Number;
|
|
8535
|
+
readonly type: Schema.String;
|
|
8536
|
+
readonly message: Schema.NullOr<Schema.String>;
|
|
8537
|
+
readonly data: Schema.NullOr<Schema.String>;
|
|
8538
|
+
readonly location: Schema.optional<Schema.Struct<{
|
|
8539
|
+
readonly file: Schema.String;
|
|
8540
|
+
readonly line: Schema.Number;
|
|
8541
|
+
readonly column: Schema.Number;
|
|
8542
|
+
}>>;
|
|
8543
|
+
readonly attachments: Schema.$Array<Schema.Struct<{
|
|
8544
|
+
readonly contentType: Schema.optional<Schema.String>;
|
|
8545
|
+
readonly path: Schema.optional<Schema.String>;
|
|
8546
|
+
readonly byteSize: Schema.NullOr<Schema.Number>;
|
|
8547
|
+
/** Present only for inline attachments under the 64 KiB persistence cap. */
|
|
8548
|
+
readonly body: Schema.optional<Schema.String>;
|
|
8549
|
+
/** How to read `body`. Absent when nothing was stored inline. */
|
|
8550
|
+
readonly bodyEncoding: Schema.optional<Schema.Literals<readonly ["base64", "utf-8"]>>;
|
|
8551
|
+
}>>;
|
|
8552
|
+
}>>;
|
|
8553
|
+
}>]>, typeof ToolRefusal$1, DataReader>;
|
|
6247
8554
|
/**
|
|
6248
8555
|
* The version of this package, inlined at build time from
|
|
6249
8556
|
* `package.json#version` via the bundler's `__PACKAGE_VERSION__` substitution.
|
|
@@ -6253,5 +8560,5 @@ type TestInputType = Schema.Schema.Type<typeof TestInput>;
|
|
|
6253
8560
|
* @public
|
|
6254
8561
|
*/
|
|
6255
8562
|
export declare const CURRENT_MCP_VERSION: string;
|
|
6256
|
-
export { type AcceptanceMetricsResultType, type CacheHealthResultType, type CommitChangesInputType, type CommitChangesResultType, type ConfigureInputType, type ConfigureResultType, type CurrentSessionIdRef, type FailureSignatureGetInputType, type FailureSignatureGetResultType, type FileCoverageInputType, type FileCoverageResultType, type HelpResultType, type InventoryInputType, type InventoryResultType, type McpSessionOptions, type NoteParamsType, type NoteResultType, type PhaseTransitionInputType, type PhaseTransitionResultType, type PingResultType, type PlatformServices, type RegisterAgentInputType, type RegisterAgentOutput, type Remediation, type RunTestsInputType, type RunTestsResultType, type ServerLayerOptions, type SessionContext, type SessionContextRef, type SettingsListResultType, type TddArtifactListInputType, type TddArtifactListResultType, type TddErrorEnvelope, type TddProgressPushInputType, type TddProgressPushResultType, type TestCoverageInputType, type TestCoverageResultType, type TestErrorsInputType, type TestErrorsResultType, type TestHistoryInputType, type TestHistoryResultType, type TestInputType, type TestOverviewInputType, type TestOverviewResultType, type TestResultType, type TestStatusInputType, type TestStatusResultType, type TestTrendsInputType, type TestTrendsResultType, ToolRefusal, type TriageBriefInputType, type TriageBriefResultType, type TurnSearchInputType, type TurnSearchResultType, type WrapupPromptInputType, type WrapupPromptResultType };
|
|
8563
|
+
export { type AcceptanceMetricsResultType, type CacheHealthResultType, type CommitChangesInputType, type CommitChangesResultType, type ConfigureInputType, type ConfigureResultType, type CurrentSessionIdRef, type FailureSignatureGetInputType, type FailureSignatureGetResultType, type FileCoverageInputType, type FileCoverageResultType, type HelpResultType, type HypothesisInputType, type HypothesisResultType, type InventoryInputType, type InventoryResultType, type McpSessionOptions, type NoteParamsType, type NoteResultType, type PhaseTransitionInputType, type PhaseTransitionResultType, type PingResultType, type PlatformServices, type RegisterAgentInputType, type RegisterAgentOutput, type Remediation, type RunTestsInputType, type RunTestsResultType, type ServerLayerOptions, type SessionContext, type SessionContextRef, type SettingsListResultType, type TddArtifactListInputType, type TddArtifactListResultType, type TddBehaviorInputType, type TddBehaviorResultType, type TddErrorEnvelope, type TddGoalInputType, type TddGoalResultType, type TddProgressPushInputType, type TddProgressPushResultType, type TddTaskInputType, type TddTaskResultType, type TestCoverageInputType, type TestCoverageResultType, type TestErrorsInputType, type TestErrorsResultType, type TestHistoryInputType, type TestHistoryResultType, type TestInputType, type TestOverviewInputType, type TestOverviewResultType, type TestResultType, type TestStatusInputType, type TestStatusResultType, type TestTrendsInputType, type TestTrendsResultType, ToolRefusal, type TriageBriefInputType, type TriageBriefResultType, type TurnSearchInputType, type TurnSearchResultType, type WrapupPromptInputType, type WrapupPromptResultType };
|
|
6257
8564
|
//# sourceMappingURL=index.d.ts.map
|