@vitest-agent/sdk 2.5.0 → 2.5.1

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 CHANGED
@@ -9,19 +9,19 @@ import { ChildProcessSpawner } from "effect/unstable/process";
9
9
  * Aggregate coverage percentages across four istanbul metrics.
10
10
  * @public
11
11
  */
12
- declare const CoverageTotals: Schema.Struct<{
12
+ export declare const CoverageTotals: Schema.Struct<{
13
13
  readonly statements: Schema.Number;
14
14
  readonly branches: Schema.Number;
15
15
  readonly functions: Schema.Number;
16
16
  readonly lines: Schema.Number;
17
17
  }>;
18
18
  /** @public */
19
- type CoverageTotals = typeof CoverageTotals.Type;
19
+ export type CoverageTotals = typeof CoverageTotals.Type;
20
20
  /**
21
21
  * Per-file coverage data including uncovered line ranges.
22
22
  * @public
23
23
  */
24
- declare const FileCoverageReport: Schema.Struct<{
24
+ export declare const FileCoverageReport: Schema.Struct<{
25
25
  readonly file: Schema.String;
26
26
  readonly summary: Schema.Struct<{
27
27
  readonly statements: Schema.Number;
@@ -32,12 +32,12 @@ declare const FileCoverageReport: Schema.Struct<{
32
32
  readonly uncoveredLines: Schema.String;
33
33
  }>;
34
34
  /** @public */
35
- type FileCoverageReport = typeof FileCoverageReport.Type;
35
+ export type FileCoverageReport = typeof FileCoverageReport.Type;
36
36
  /**
37
37
  * Complete coverage report attached to an AgentReport.
38
38
  * @public
39
39
  */
40
- declare const CoverageReport: Schema.Struct<{
40
+ export declare const CoverageReport: Schema.Struct<{
41
41
  readonly totals: Schema.Struct<{
42
42
  readonly statements: Schema.Number;
43
43
  readonly branches: Schema.Number;
@@ -113,14 +113,14 @@ declare const CoverageReport: Schema.Struct<{
113
113
  readonly belowTargetFiles: Schema.optional<Schema.$Array<Schema.String>>;
114
114
  }>;
115
115
  /** @public */
116
- type CoverageReport = typeof CoverageReport.Type;
116
+ export type CoverageReport = typeof CoverageReport.Type;
117
117
  //#endregion
118
118
  //#region src/schemas/RenderState.d.ts
119
119
  /**
120
120
  * Per-test record accumulated as `TestStarted` / `TestFinished` events arrive.
121
121
  * @public
122
122
  */
123
- declare const TestRecord: Schema.Struct<{
123
+ export declare const TestRecord: Schema.Struct<{
124
124
  readonly testName: Schema.String;
125
125
  readonly suitePath: Schema.$Array<Schema.String>;
126
126
  readonly status: Schema.Union<readonly [Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>, Schema.Literals<readonly ["running", "timed-out"]>]>;
@@ -134,13 +134,13 @@ declare const TestRecord: Schema.Struct<{
134
134
  }>>;
135
135
  }>;
136
136
  /** @public */
137
- type TestRecord = typeof TestRecord.Type;
137
+ export type TestRecord = typeof TestRecord.Type;
138
138
  /**
139
139
  * Per-module aggregation. The reducer keeps modules keyed on
140
140
  * `modulePath` so out-of-order events can update the right slot.
141
141
  * @public
142
142
  */
143
- declare const ModuleRecord: Schema.Struct<{
143
+ export declare const ModuleRecord: Schema.Struct<{
144
144
  readonly modulePath: Schema.String;
145
145
  readonly status: Schema.Literals<readonly ["queued", "running", "finished"]>;
146
146
  readonly passCount: Schema.Number;
@@ -177,14 +177,14 @@ declare const ModuleRecord: Schema.Struct<{
177
177
  readonly tagCounts: Schema.optional<Schema.$Record<Schema.String, Schema.Number>>;
178
178
  }>;
179
179
  /** @public */
180
- type ModuleRecord = typeof ModuleRecord.Type;
180
+ export type ModuleRecord = typeof ModuleRecord.Type;
181
181
  /**
182
182
  * One row in the failure list. A failure can exist before its
183
183
  * classification arrives (`FailureClassified` is emitted from a
184
184
  * separate pipeline), so `classification` is nullable.
185
185
  * @public
186
186
  */
187
- declare const FailureRecord: Schema.Struct<{
187
+ export declare const FailureRecord: Schema.Struct<{
188
188
  readonly modulePath: Schema.String;
189
189
  readonly testName: Schema.String;
190
190
  readonly suitePath: Schema.$Array<Schema.String>;
@@ -199,13 +199,13 @@ declare const FailureRecord: Schema.Struct<{
199
199
  readonly classification: Schema.NullOr<Schema.Literals<readonly ["stable", "new-failure", "persistent", "flaky", "recovered"]>>;
200
200
  }>;
201
201
  /** @public */
202
- type FailureRecord = typeof FailureRecord.Type;
202
+ export type FailureRecord = typeof FailureRecord.Type;
203
203
  /**
204
204
  * Coverage block, populated only after `CoverageReady`. Threshold
205
205
  * violations are accumulated separately as they arrive.
206
206
  * @public
207
207
  */
208
- declare const CoverageRenderState: Schema.Struct<{
208
+ export declare const CoverageRenderState: Schema.Struct<{
209
209
  readonly metrics: Schema.Struct<{
210
210
  readonly statements: Schema.Number;
211
211
  readonly branches: Schema.Number;
@@ -238,25 +238,25 @@ declare const CoverageRenderState: Schema.Struct<{
238
238
  readonly totalFiles: Schema.optional<Schema.Number>;
239
239
  }>;
240
240
  /** @public */
241
- type CoverageRenderState = typeof CoverageRenderState.Type;
241
+ export type CoverageRenderState = typeof CoverageRenderState.Type;
242
242
  /**
243
243
  * A `SuggestedAction` event, denormalized into the queue the renderer reads.
244
244
  * @public
245
245
  */
246
- declare const SuggestedActionRecord: Schema.Struct<{
246
+ export declare const SuggestedActionRecord: Schema.Struct<{
247
247
  readonly severity: Schema.Literals<readonly ["info", "warn", "blocker"]>;
248
248
  readonly title: Schema.String;
249
249
  readonly detail: Schema.String;
250
250
  readonly targetTool: Schema.optional<Schema.String>;
251
251
  }>;
252
252
  /** @public */
253
- type SuggestedActionRecord = typeof SuggestedActionRecord.Type;
253
+ export type SuggestedActionRecord = typeof SuggestedActionRecord.Type;
254
254
  /**
255
255
  * Per-run totals, recomputed on every `ModuleFinished` and reconciled
256
256
  * against `RunFinished` (which carries the runner's own count).
257
257
  * @public
258
258
  */
259
- declare const RenderTotals: Schema.Struct<{
259
+ export declare const RenderTotals: Schema.Struct<{
260
260
  readonly passCount: Schema.Number;
261
261
  readonly failCount: Schema.Number;
262
262
  readonly skipCount: Schema.Number;
@@ -264,7 +264,7 @@ declare const RenderTotals: Schema.Struct<{
264
264
  readonly durationMs: Schema.Number;
265
265
  }>;
266
266
  /** @public */
267
- type RenderTotals = typeof RenderTotals.Type;
267
+ export type RenderTotals = typeof RenderTotals.Type;
268
268
  /**
269
269
  * The renderer state. Both the human (Ink) and agent (string)
270
270
  * renderers read this shape; the reducer is the only producer.
@@ -276,7 +276,7 @@ type RenderTotals = typeof RenderTotals.Type;
276
276
  * rather than the suite completing.
277
277
  * @public
278
278
  */
279
- declare const RenderState: Schema.Struct<{
279
+ export declare const RenderState: Schema.Struct<{
280
280
  readonly phase: Schema.Literals<readonly ["idle", "running", "finished", "timed-out"]>;
281
281
  readonly runId: Schema.NullOr<Schema.String>;
282
282
  readonly configHash: Schema.NullOr<Schema.String>;
@@ -407,14 +407,14 @@ declare const RenderState: Schema.Struct<{
407
407
  }>>;
408
408
  }>;
409
409
  /** @public */
410
- type RenderState = typeof RenderState.Type;
410
+ export type RenderState = typeof RenderState.Type;
411
411
  /**
412
412
  * Initial state — what the reducer returns when no events have been
413
413
  * applied yet. Exported so tests and the renderers' bootstrapping
414
414
  * code share one definition.
415
415
  * @public
416
416
  */
417
- declare const initialRenderState: RenderState;
417
+ export declare const initialRenderState: RenderState;
418
418
  //#endregion
419
419
  //#region src/contracts/dispatcher.d.ts
420
420
  /**
@@ -430,7 +430,7 @@ declare const initialRenderState: RenderState;
430
430
  * - `workspace` — more than one project.
431
431
  * @public
432
432
  */
433
- type RunShape = "single-test" | "single-file" | "single-project" | "workspace";
433
+ export type RunShape = "single-test" | "single-file" | "single-project" | "workspace";
434
434
  /**
435
435
  * The three outcome classes the dispatcher distinguishes.
436
436
  *
@@ -439,7 +439,7 @@ type RunShape = "single-test" | "single-file" | "single-project" | "workspace";
439
439
  * - `threshold-violation` — `totals.failed === 0` and at least one coverage violation.
440
440
  * @public
441
441
  */
442
- type RunOutcome = "all-pass" | "some-fail" | "threshold-violation";
442
+ export type RunOutcome = "all-pass" | "some-fail" | "threshold-violation";
443
443
  /**
444
444
  * Compact per-project aggregate carried into workspace cells.
445
445
  *
@@ -448,7 +448,7 @@ type RunOutcome = "all-pass" | "some-fail" | "threshold-violation";
448
448
  * optional — workspace cells render the columns only when present.
449
449
  * @public
450
450
  */
451
- interface ProjectSummary {
451
+ export interface ProjectSummary {
452
452
  readonly name: string;
453
453
  readonly passCount: number;
454
454
  readonly failCount: number;
@@ -468,7 +468,7 @@ interface ProjectSummary {
468
468
  * `ReporterRenderInput.trendSummary` before invoking `dispatch`.
469
469
  * @public
470
470
  */
471
- interface TrendSummary {
471
+ export interface TrendSummary {
472
472
  readonly direction: "improving" | "regressing" | "stable";
473
473
  readonly runCount: number;
474
474
  readonly firstMetric?: {
@@ -487,7 +487,7 @@ interface TrendSummary {
487
487
  * helpers the plugin computes once before dispatch so cells stay pure.
488
488
  * @public
489
489
  */
490
- interface DispatchInputs {
490
+ export interface DispatchInputs {
491
491
  readonly state: RenderState;
492
492
  readonly shape: RunShape;
493
493
  readonly outcome: RunOutcome;
@@ -525,7 +525,7 @@ interface DispatchInputs {
525
525
  * `dispatch(inputs, opts)`. Cells destructure only what they consume.
526
526
  * @public
527
527
  */
528
- interface CellOptions {
528
+ export interface CellOptions {
529
529
  /**
530
530
  * Resolved value of the `NO_COLOR` env var. Cells gate ANSI escape
531
531
  * sequences and OSC-8 hyperlinks on this.
@@ -544,7 +544,7 @@ interface CellOptions {
544
544
  * Aggregate test run statistics.
545
545
  * @public
546
546
  */
547
- declare const ReportSummary: Schema.Struct<{
547
+ export declare const ReportSummary: Schema.Struct<{
548
548
  readonly total: Schema.Number;
549
549
  readonly passed: Schema.Number;
550
550
  readonly failed: Schema.Number;
@@ -560,12 +560,12 @@ declare const ReportSummary: Schema.Struct<{
560
560
  readonly modules: Schema.optional<Schema.Number>;
561
561
  }>;
562
562
  /** @public */
563
- type ReportSummary = typeof ReportSummary.Type;
563
+ export type ReportSummary = typeof ReportSummary.Type;
564
564
  /**
565
565
  * An individual test case result.
566
566
  * @public
567
567
  */
568
- declare const TestReport: Schema.Struct<{
568
+ export declare const TestReport: Schema.Struct<{
569
569
  readonly name: Schema.String;
570
570
  readonly fullName: Schema.String;
571
571
  readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
@@ -582,12 +582,12 @@ declare const TestReport: Schema.Struct<{
582
582
  readonly classification: Schema.optional<Schema.Literals<readonly ["stable", "new-failure", "persistent", "flaky", "recovered"]>>;
583
583
  }>;
584
584
  /** @public */
585
- type TestReport = typeof TestReport.Type;
585
+ export type TestReport = typeof TestReport.Type;
586
586
  /**
587
587
  * A test module (file) and its contained test cases.
588
588
  * @public
589
589
  */
590
- declare const ModuleReport: Schema.Struct<{
590
+ export declare const ModuleReport: Schema.Struct<{
591
591
  readonly file: Schema.String;
592
592
  readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
593
593
  readonly duration: Schema.optional<Schema.Number>;
@@ -616,23 +616,23 @@ declare const ModuleReport: Schema.Struct<{
616
616
  }>>;
617
617
  }>;
618
618
  /** @public */
619
- type ModuleReport = typeof ModuleReport.Type;
619
+ export type ModuleReport = typeof ModuleReport.Type;
620
620
  /**
621
621
  * Per-tag pass/fail/skip aggregates for a single project run.
622
622
  * @public
623
623
  */
624
- declare const TagCountEntry: Schema.Struct<{
624
+ export declare const TagCountEntry: Schema.Struct<{
625
625
  readonly passed: Schema.optional<Schema.Number>;
626
626
  readonly failed: Schema.optional<Schema.Number>;
627
627
  readonly skipped: Schema.optional<Schema.Number>;
628
628
  }>;
629
629
  /** @public */
630
- type TagCountEntry = typeof TagCountEntry.Type;
630
+ export type TagCountEntry = typeof TagCountEntry.Type;
631
631
  /**
632
632
  * Complete per-project test report written to disk as JSON.
633
633
  * @public
634
634
  */
635
- declare const AgentReport: Schema.Struct<{
635
+ export declare const AgentReport: Schema.Struct<{
636
636
  readonly timestamp: Schema.String;
637
637
  readonly project: Schema.optional<Schema.String>;
638
638
  readonly reason: Schema.Literals<readonly ["passed", "failed", "interrupted"]>;
@@ -784,37 +784,37 @@ declare const AgentReport: Schema.Struct<{
784
784
  }>>;
785
785
  }>;
786
786
  /** @public */
787
- type AgentReport = typeof AgentReport.Type;
787
+ export type AgentReport = typeof AgentReport.Type;
788
788
  //#endregion
789
789
  //#region src/schemas/Common.d.ts
790
790
  /**
791
791
  * Possible states for an individual test case.
792
792
  * @public
793
793
  */
794
- declare const TestState: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
794
+ export declare const TestState: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
795
795
  /** @public */
796
- type TestState = typeof TestState.Type;
796
+ export type TestState = typeof TestState.Type;
797
797
  /**
798
798
  * Overall outcome of a test run.
799
799
  * @public
800
800
  */
801
- declare const TestRunReason: Schema.Literals<readonly ["passed", "failed", "interrupted"]>;
801
+ export declare const TestRunReason: Schema.Literals<readonly ["passed", "failed", "interrupted"]>;
802
802
  /** @public */
803
- type TestRunReason = typeof TestRunReason.Type;
803
+ export type TestRunReason = typeof TestRunReason.Type;
804
804
  /**
805
805
  * Classification of a test's failure history across runs.
806
806
  * @public
807
807
  */
808
- declare const TestClassification: Schema.Literals<readonly ["stable", "new-failure", "persistent", "flaky", "recovered"]>;
808
+ export declare const TestClassification: Schema.Literals<readonly ["stable", "new-failure", "persistent", "flaky", "recovered"]>;
809
809
  /** @public */
810
- type TestClassification = typeof TestClassification.Type;
810
+ export type TestClassification = typeof TestClassification.Type;
811
811
  /**
812
812
  * Console output verbosity mode for AgentReporter.
813
813
  * @public
814
814
  */
815
- declare const ConsoleOutputMode: Schema.Literals<readonly ["failures", "full", "silent"]>;
815
+ export declare const ConsoleOutputMode: Schema.Literals<readonly ["failures", "full", "silent"]>;
816
816
  /** @public */
817
- type ConsoleOutputMode = typeof ConsoleOutputMode.Type;
817
+ export type ConsoleOutputMode = typeof ConsoleOutputMode.Type;
818
818
  /**
819
819
  * Console output choices per executor type.
820
820
  *
@@ -833,60 +833,60 @@ type ConsoleOutputMode = typeof ConsoleOutputMode.Type;
833
833
  * so the default for `ci` is `passthrough` until it lands.
834
834
  * @public
835
835
  */
836
- declare const HumanConsoleMode: Schema.Literals<readonly ["passthrough", "silent", "stream", "agent"]>;
836
+ export declare const HumanConsoleMode: Schema.Literals<readonly ["passthrough", "silent", "stream", "agent"]>;
837
837
  /** @public */
838
- type HumanConsoleMode = typeof HumanConsoleMode.Type;
838
+ export type HumanConsoleMode = typeof HumanConsoleMode.Type;
839
839
  /** @public */
840
- declare const AgentConsoleMode: Schema.Literals<readonly ["passthrough", "silent", "agent"]>;
840
+ export declare const AgentConsoleMode: Schema.Literals<readonly ["passthrough", "silent", "agent"]>;
841
841
  /** @public */
842
- type AgentConsoleMode = typeof AgentConsoleMode.Type;
842
+ export type AgentConsoleMode = typeof AgentConsoleMode.Type;
843
843
  /** @public */
844
- declare const CiConsoleMode: Schema.Literals<readonly ["passthrough", "silent", "ci-annotations"]>;
844
+ export declare const CiConsoleMode: Schema.Literals<readonly ["passthrough", "silent", "ci-annotations"]>;
845
845
  /** @public */
846
- type CiConsoleMode = typeof CiConsoleMode.Type;
846
+ export type CiConsoleMode = typeof CiConsoleMode.Type;
847
847
  /**
848
848
  * Union of every legal console-output value across the three executor slots.
849
849
  * Useful for type-narrowing in renderers that take the resolved value.
850
850
  * @public
851
851
  */
852
- declare const ConsoleMode: Schema.Union<readonly [Schema.Literals<readonly ["passthrough", "silent", "stream", "agent"]>, Schema.Literals<readonly ["passthrough", "silent", "agent"]>, Schema.Literals<readonly ["passthrough", "silent", "ci-annotations"]>]>;
852
+ export declare const ConsoleMode: Schema.Union<readonly [Schema.Literals<readonly ["passthrough", "silent", "stream", "agent"]>, Schema.Literals<readonly ["passthrough", "silent", "agent"]>, Schema.Literals<readonly ["passthrough", "silent", "ci-annotations"]>]>;
853
853
  /** @public */
854
- type ConsoleMode = typeof ConsoleMode.Type;
854
+ export type ConsoleMode = typeof ConsoleMode.Type;
855
855
  /**
856
856
  * Supported package managers for run command generation.
857
857
  * @public
858
858
  */
859
- declare const PackageManager: Schema.Literals<readonly ["pnpm", "npm", "yarn", "bun"]>;
859
+ export declare const PackageManager: Schema.Literals<readonly ["pnpm", "npm", "yarn", "bun"]>;
860
860
  /** @public */
861
- type PackageManager = typeof PackageManager.Type;
861
+ export type PackageManager = typeof PackageManager.Type;
862
862
  /**
863
863
  * Runtime environment where tests are being executed.
864
864
  * @public
865
865
  */
866
- declare const Environment: Schema.Literals<readonly ["agent-shell", "terminal", "ci-github", "ci-generic"]>;
866
+ export declare const Environment: Schema.Literals<readonly ["agent-shell", "terminal", "ci-github", "ci-generic"]>;
867
867
  /** @public */
868
- type Environment = typeof Environment.Type;
868
+ export type Environment = typeof Environment.Type;
869
869
  /**
870
870
  * Who or what is executing the test run.
871
871
  * @public
872
872
  */
873
- declare const Executor: Schema.Literals<readonly ["human", "agent", "ci"]>;
873
+ export declare const Executor: Schema.Literals<readonly ["human", "agent", "ci"]>;
874
874
  /** @public */
875
- type Executor = typeof Executor.Type;
875
+ export type Executor = typeof Executor.Type;
876
876
  /**
877
877
  * Output format for the reporter pipeline.
878
878
  * @public
879
879
  */
880
- declare const OutputFormat: Schema.Literals<readonly ["terminal", "markdown", "json", "vitest-bypass", "silent", "ci-annotations"]>;
880
+ export declare const OutputFormat: Schema.Literals<readonly ["terminal", "markdown", "json", "vitest-bypass", "silent", "ci-annotations"]>;
881
881
  /** @public */
882
- type OutputFormat = typeof OutputFormat.Type;
882
+ export type OutputFormat = typeof OutputFormat.Type;
883
883
  /**
884
884
  * Level of detail in reporter output.
885
885
  * @public
886
886
  */
887
- declare const DetailLevel: Schema.Literals<readonly ["minimal", "neutral", "standard", "verbose"]>;
887
+ export declare const DetailLevel: Schema.Literals<readonly ["minimal", "neutral", "standard", "verbose"]>;
888
888
  /** @public */
889
- type DetailLevel = typeof DetailLevel.Type;
889
+ export type DetailLevel = typeof DetailLevel.Type;
890
890
  /**
891
891
  * A single test or module error with optional stack trace, diff, and
892
892
  * structured assertion values.
@@ -899,7 +899,7 @@ type DetailLevel = typeof DetailLevel.Type;
899
899
  * the schema boundary.
900
900
  * @public
901
901
  */
902
- declare const ReportError: Schema.Struct<{
902
+ export declare const ReportError: Schema.Struct<{
903
903
  readonly message: Schema.String;
904
904
  readonly stack: Schema.optional<Schema.String>;
905
905
  readonly diff: Schema.optional<Schema.String>;
@@ -907,17 +907,17 @@ declare const ReportError: Schema.Struct<{
907
907
  readonly received: Schema.optional<Schema.String>;
908
908
  }>;
909
909
  /** @public */
910
- type ReportError = typeof ReportError.Type;
910
+ export type ReportError = typeof ReportError.Type;
911
911
  //#endregion
912
912
  //#region src/formatters/types.d.ts
913
913
  /** @public */
914
- interface RenderedOutput {
914
+ export interface RenderedOutput {
915
915
  readonly target: "stdout" | "file" | "github-summary";
916
916
  readonly content: string;
917
917
  readonly contentType: string;
918
918
  }
919
919
  /** @public */
920
- interface FormatterContext {
920
+ export interface FormatterContext {
921
921
  readonly detail: DetailLevel;
922
922
  readonly noColor: boolean;
923
923
  readonly coverageConsoleLimit: number;
@@ -936,7 +936,7 @@ interface FormatterContext {
936
936
  readonly mcp?: boolean;
937
937
  }
938
938
  /** @public */
939
- interface Formatter {
939
+ export interface Formatter {
940
940
  readonly format: string;
941
941
  readonly render: (reports: ReadonlyArray<AgentReport>, context: FormatterContext) => ReadonlyArray<RenderedOutput>;
942
942
  }
@@ -946,43 +946,43 @@ interface Formatter {
946
946
  * Coverage metric whose threshold can be violated independently.
947
947
  * @public
948
948
  */
949
- declare const CoverageMetric: Schema.Literals<readonly ["lines", "branches", "functions", "statements"]>;
949
+ export declare const CoverageMetric: Schema.Literals<readonly ["lines", "branches", "functions", "statements"]>;
950
950
  /** @public */
951
- type CoverageMetric = typeof CoverageMetric.Type;
951
+ export type CoverageMetric = typeof CoverageMetric.Type;
952
952
  /**
953
953
  * Severity tier for a suggested action emitted during a run.
954
954
  * @public
955
955
  */
956
- declare const ActionSeverity: Schema.Literals<readonly ["info", "warn", "blocker"]>;
956
+ export declare const ActionSeverity: Schema.Literals<readonly ["info", "warn", "blocker"]>;
957
957
  /** @public */
958
- type ActionSeverity = typeof ActionSeverity.Type;
958
+ export type ActionSeverity = typeof ActionSeverity.Type;
959
959
  /**
960
960
  * Lifecycle scope of a Vitest setup/teardown hook.
961
961
  * @public
962
962
  */
963
- declare const HookType: Schema.Literals<readonly ["beforeAll", "afterAll", "beforeEach", "afterEach"]>;
963
+ export declare const HookType: Schema.Literals<readonly ["beforeAll", "afterAll", "beforeEach", "afterEach"]>;
964
964
  /** @public */
965
- type HookType = typeof HookType.Type;
965
+ export type HookType = typeof HookType.Type;
966
966
  /**
967
967
  * Terminal status of a Vitest hook run.
968
968
  * @public
969
969
  */
970
- declare const HookStatus: Schema.Literals<readonly ["passed", "failed"]>;
970
+ export declare const HookStatus: Schema.Literals<readonly ["passed", "failed"]>;
971
971
  /** @public */
972
- type HookStatus = typeof HookStatus.Type;
972
+ export type HookStatus = typeof HookStatus.Type;
973
973
  /**
974
974
  * Output stream a captured user `console.log` was written to.
975
975
  * @public
976
976
  */
977
- declare const ConsoleLogLevel: Schema.Literals<readonly ["stdout", "stderr"]>;
977
+ export declare const ConsoleLogLevel: Schema.Literals<readonly ["stdout", "stderr"]>;
978
978
  /** @public */
979
- type ConsoleLogLevel = typeof ConsoleLogLevel.Type;
979
+ export type ConsoleLogLevel = typeof ConsoleLogLevel.Type;
980
980
  /**
981
981
  * A coverage gap surfaced to the renderer — a per-file shortfall that
982
982
  * a renderer may want to call out individually.
983
983
  * @public
984
984
  */
985
- declare const CoverageGap: Schema.Struct<{
985
+ export declare const CoverageGap: Schema.Struct<{
986
986
  readonly file: Schema.String;
987
987
  readonly missing: Schema.Struct<{
988
988
  readonly statements: Schema.Number;
@@ -993,7 +993,7 @@ declare const CoverageGap: Schema.Struct<{
993
993
  readonly uncoveredLines: Schema.optional<Schema.String>;
994
994
  }>;
995
995
  /** @public */
996
- type CoverageGap = typeof CoverageGap.Type;
996
+ export type CoverageGap = typeof CoverageGap.Type;
997
997
  /**
998
998
  * The reducer projects this union into `RenderState`. Renderers
999
999
  * never read the raw event stream — they read the projected state.
@@ -1004,7 +1004,7 @@ type CoverageGap = typeof CoverageGap.Type;
1004
1004
  * been updated to consume the new state shape.
1005
1005
  * @public
1006
1006
  */
1007
- declare const RunEvent: Schema.Union<readonly [Schema.TaggedStruct<"RunStarted", {
1007
+ export declare const RunEvent: Schema.Union<readonly [Schema.TaggedStruct<"RunStarted", {
1008
1008
  readonly runId: Schema.String;
1009
1009
  readonly startedAt: Schema.String;
1010
1010
  readonly configHash: Schema.String;
@@ -1168,7 +1168,7 @@ declare const RunEvent: Schema.Union<readonly [Schema.TaggedStruct<"RunStarted",
1168
1168
  }>>>;
1169
1169
  }>]>;
1170
1170
  /** @public */
1171
- type RunEvent = typeof RunEvent.Type;
1171
+ export type RunEvent = typeof RunEvent.Type;
1172
1172
  /**
1173
1173
  * Convenience: discriminator-keyed map of the individual variants.
1174
1174
  *
@@ -1176,38 +1176,38 @@ type RunEvent = typeof RunEvent.Type;
1176
1176
  * pulling the whole union shape into scope.
1177
1177
  * @public
1178
1178
  */
1179
- type RunEventByTag = { [E in RunEvent as E["_tag"]]: E; };
1179
+ export type RunEventByTag = { [E in RunEvent as E["_tag"]]: E; };
1180
1180
  //#endregion
1181
1181
  //#region src/schemas/Thresholds.d.ts
1182
1182
  /**
1183
1183
  * Per-metric threshold values. All optional -- only set metrics are enforced.
1184
1184
  * @public
1185
1185
  */
1186
- declare const MetricThresholds: Schema.Struct<{
1186
+ export declare const MetricThresholds: Schema.Struct<{
1187
1187
  readonly lines: Schema.optional<Schema.Number>;
1188
1188
  readonly functions: Schema.optional<Schema.Number>;
1189
1189
  readonly branches: Schema.optional<Schema.Number>;
1190
1190
  readonly statements: Schema.optional<Schema.Number>;
1191
1191
  }>;
1192
1192
  /** @public */
1193
- type MetricThresholds = typeof MetricThresholds.Type;
1193
+ export type MetricThresholds = typeof MetricThresholds.Type;
1194
1194
  /**
1195
1195
  * A glob pattern paired with its metric thresholds.
1196
1196
  * @public
1197
1197
  */
1198
- declare const PatternThresholds: Schema.Tuple<readonly [Schema.String, Schema.Struct<{
1198
+ export declare const PatternThresholds: Schema.Tuple<readonly [Schema.String, Schema.Struct<{
1199
1199
  readonly lines: Schema.optional<Schema.Number>;
1200
1200
  readonly functions: Schema.optional<Schema.Number>;
1201
1201
  readonly branches: Schema.optional<Schema.Number>;
1202
1202
  readonly statements: Schema.optional<Schema.Number>;
1203
1203
  }>]>;
1204
1204
  /** @public */
1205
- type PatternThresholds = typeof PatternThresholds.Type;
1205
+ export type PatternThresholds = typeof PatternThresholds.Type;
1206
1206
  /**
1207
1207
  * Fully resolved thresholds ready for evaluation.
1208
1208
  * @public
1209
1209
  */
1210
- declare const ResolvedThresholds: Schema.Struct<{
1210
+ export declare const ResolvedThresholds: Schema.Struct<{
1211
1211
  readonly global: Schema.Struct<{
1212
1212
  readonly lines: Schema.optional<Schema.Number>;
1213
1213
  readonly functions: Schema.optional<Schema.Number>;
@@ -1223,7 +1223,7 @@ declare const ResolvedThresholds: Schema.Struct<{
1223
1223
  }>]>>, never>;
1224
1224
  }>;
1225
1225
  /** @public */
1226
- type ResolvedThresholds = typeof ResolvedThresholds.Type;
1226
+ export type ResolvedThresholds = typeof ResolvedThresholds.Type;
1227
1227
  //#endregion
1228
1228
  //#region src/schemas/Transport.d.ts
1229
1229
  /**
@@ -1235,11 +1235,11 @@ type ResolvedThresholds = typeof ResolvedThresholds.Type;
1235
1235
  * diff and no breaking API change at the call site.
1236
1236
  * @public
1237
1237
  */
1238
- declare const Transport: Schema.Union<readonly [Schema.Struct<{
1238
+ export declare const Transport: Schema.Union<readonly [Schema.Struct<{
1239
1239
  readonly kind: Schema.Literal<"local">;
1240
1240
  }>]>;
1241
1241
  /** @public */
1242
- type Transport = typeof Transport.Type;
1242
+ export type Transport = typeof Transport.Type;
1243
1243
  //#endregion
1244
1244
  //#region src/contracts/reporter.d.ts
1245
1245
  /**
@@ -1257,7 +1257,7 @@ type Transport = typeof Transport.Type;
1257
1257
  * var; reporters use it to gate ANSI escapes and OSC-8 hyperlinks.
1258
1258
  * @public
1259
1259
  */
1260
- interface ResolvedReporterConfig {
1260
+ export interface ResolvedReporterConfig {
1261
1261
  readonly dbPath?: string;
1262
1262
  readonly projectFilter?: string;
1263
1263
  /**
@@ -1333,7 +1333,7 @@ interface ResolvedReporterConfig {
1333
1333
  * named-field object. Reporters destructure only what they consume.
1334
1334
  * @public
1335
1335
  */
1336
- interface ReporterKit {
1336
+ export interface ReporterKit {
1337
1337
  readonly config: ResolvedReporterConfig;
1338
1338
  readonly stdEnv: Environment;
1339
1339
  /**
@@ -1369,7 +1369,7 @@ interface ReporterKit {
1369
1369
  * where coverage trends were computed.
1370
1370
  * @public
1371
1371
  */
1372
- interface ReporterRenderInput {
1372
+ export interface ReporterRenderInput {
1373
1373
  readonly reports: ReadonlyArray<AgentReport>;
1374
1374
  readonly classifications: ReadonlyMap<string, TestClassification>;
1375
1375
  readonly trendSummary?: {
@@ -1403,7 +1403,7 @@ interface ReporterRenderInput {
1403
1403
  * no console output at all.
1404
1404
  * @public
1405
1405
  */
1406
- interface VitestAgentReporter {
1406
+ export interface VitestAgentReporter {
1407
1407
  readonly render: (input: ReporterRenderInput, kit: ReporterKit) => ReadonlyArray<RenderedOutput>;
1408
1408
  }
1409
1409
  /**
@@ -1425,7 +1425,7 @@ interface VitestAgentReporter {
1425
1425
  * the plugin own the kit assembly.
1426
1426
  * @public
1427
1427
  */
1428
- type VitestAgentReporterFactory = (kit: ReporterKit) => VitestAgentReporter | ReadonlyArray<VitestAgentReporter>;
1428
+ export type VitestAgentReporterFactory = (kit: ReporterKit) => VitestAgentReporter | ReadonlyArray<VitestAgentReporter>;
1429
1429
  //#endregion
1430
1430
  //#region src/schemas/Identity.d.ts
1431
1431
  /**
@@ -1434,18 +1434,18 @@ type VitestAgentReporterFactory = (kit: ReporterKit) => VitestAgentReporter | Re
1434
1434
  * agent's lifetime.
1435
1435
  * @public
1436
1436
  */
1437
- declare const AgentId: Schema.brand<Schema.String, "AgentId">;
1437
+ export declare const AgentId: Schema.brand<Schema.String, "AgentId">;
1438
1438
  /** @public */
1439
- type AgentId = Schema.Schema.Type<typeof AgentId>;
1439
+ export type AgentId = Schema.Schema.Type<typeof AgentId>;
1440
1440
  /**
1441
1441
  * The unit "all work on this feature" rolls up to. Survives
1442
1442
  * `claude --resume` and parallel windows; lives in the host's
1443
1443
  * transcript filename for Claude Code.
1444
1444
  * @public
1445
1445
  */
1446
- declare const ConversationId: Schema.brand<Schema.String, "ConversationId">;
1446
+ export declare const ConversationId: Schema.brand<Schema.String, "ConversationId">;
1447
1447
  /** @public */
1448
- type ConversationId = Schema.Schema.Type<typeof ConversationId>;
1448
+ export type ConversationId = Schema.Schema.Type<typeof ConversationId>;
1449
1449
  /**
1450
1450
  * The agent host process's chat id (Claude Code's per-process chat
1451
1451
  * UUID, etc.). Shorter-lived than a conversation; one conversation can
@@ -1453,17 +1453,17 @@ type ConversationId = Schema.Schema.Type<typeof ConversationId>;
1453
1453
  * `sessions.id` (the SQLite agent-run PK).
1454
1454
  * @public
1455
1455
  */
1456
- declare const ChatId: Schema.brand<Schema.String, "ChatId">;
1456
+ export declare const ChatId: Schema.brand<Schema.String, "ChatId">;
1457
1457
  /** @public */
1458
- type ChatId = Schema.Schema.Type<typeof ChatId>;
1458
+ export type ChatId = Schema.Schema.Type<typeof ChatId>;
1459
1459
  /**
1460
1460
  * One TDD orchestration task. Replaces the legacy `tdd_session_id`
1461
1461
  * vocabulary so "session" is unambiguous in the codebase.
1462
1462
  * @public
1463
1463
  */
1464
- declare const TddTaskId: Schema.brand<Schema.String, "TddTaskId">;
1464
+ export declare const TddTaskId: Schema.brand<Schema.String, "TddTaskId">;
1465
1465
  /** @public */
1466
- type TddTaskId = Schema.Schema.Type<typeof TddTaskId>;
1466
+ export type TddTaskId = Schema.Schema.Type<typeof TddTaskId>;
1467
1467
  /**
1468
1468
  * Filesystem-safe key for the per-project data store directory under
1469
1469
  * `$XDG_DATA_HOME/vitest-agent/<projectKey>/`. Resolved by the
@@ -1472,9 +1472,9 @@ type TddTaskId = Schema.Schema.Type<typeof TddTaskId>;
1472
1472
  * value is `ProjectIdentityNotResolvableError`, not an empty string).
1473
1473
  * @public
1474
1474
  */
1475
- declare const ProjectKey: Schema.brand<Schema.String, "ProjectKey">;
1475
+ export declare const ProjectKey: Schema.brand<Schema.String, "ProjectKey">;
1476
1476
  /** @public */
1477
- type ProjectKey = Schema.Schema.Type<typeof ProjectKey>;
1477
+ export type ProjectKey = Schema.Schema.Type<typeof ProjectKey>;
1478
1478
  /**
1479
1479
  * Who initiated the action (test run, hypothesis, note, TDD phase, …).
1480
1480
  * Recorded on every action row alongside `agent_id`.
@@ -1484,9 +1484,9 @@ type ProjectKey = Schema.Schema.Type<typeof ProjectKey>;
1484
1484
  * - `system` — a CI run, scheduler, or other non-human/non-agent actor
1485
1485
  * @public
1486
1486
  */
1487
- declare const ActorType: Schema.Literals<readonly ["agent", "user", "system"]>;
1487
+ export declare const ActorType: Schema.Literals<readonly ["agent", "user", "system"]>;
1488
1488
  /** @public */
1489
- type ActorType = typeof ActorType.Type;
1489
+ export type ActorType = typeof ActorType.Type;
1490
1490
  /**
1491
1491
  * Recommended canonical host identifiers. Open enum at the SDK level so
1492
1492
  * a new client doesn't require an SDK release; the MCP server defaults
@@ -1497,9 +1497,9 @@ type ActorType = typeof ActorType.Type;
1497
1497
  * match a known pattern — preferred over guessing.
1498
1498
  * @public
1499
1499
  */
1500
- declare const HostKind: Schema.Literals<readonly ["claude-code", "claude-desktop", "cursor", "goose", "chatgpt", "mcp-inspector", "unknown"]>;
1500
+ export declare const HostKind: Schema.Literals<readonly ["claude-code", "claude-desktop", "cursor", "goose", "chatgpt", "mcp-inspector", "unknown"]>;
1501
1501
  /** @public */
1502
- type HostKind = typeof HostKind.Type;
1502
+ export type HostKind = typeof HostKind.Type;
1503
1503
  //#endregion
1504
1504
  //#region src/errors/AgentErrors.d.ts
1505
1505
  declare const AgentNotFoundError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
@@ -1511,7 +1511,7 @@ declare const AgentNotFoundError_base: new <A extends Record<string, any> = {}>(
1511
1511
  * this agent first.
1512
1512
  * @public
1513
1513
  */
1514
- declare class AgentNotFoundError extends AgentNotFoundError_base<{
1514
+ export declare class AgentNotFoundError extends AgentNotFoundError_base<{
1515
1515
  readonly agentId: AgentId;
1516
1516
  readonly chatId?: ChatId;
1517
1517
  }> {}
@@ -1523,7 +1523,7 @@ declare const SessionNotFoundError_base: new <A extends Record<string, any> = {}
1523
1523
  * probably hasn't fired the SessionStart equivalent for this chat yet.
1524
1524
  * @public
1525
1525
  */
1526
- declare class SessionNotFoundError extends SessionNotFoundError_base<{
1526
+ export declare class SessionNotFoundError extends SessionNotFoundError_base<{
1527
1527
  readonly chatId: ChatId;
1528
1528
  }> {}
1529
1529
  declare const ConversationNotFoundError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
@@ -1534,7 +1534,7 @@ declare const ConversationNotFoundError_base: new <A extends Record<string, any>
1534
1534
  * require a conversation row.
1535
1535
  * @public
1536
1536
  */
1537
- declare class ConversationNotFoundError extends ConversationNotFoundError_base<{
1537
+ export declare class ConversationNotFoundError extends ConversationNotFoundError_base<{
1538
1538
  readonly conversationId: ConversationId;
1539
1539
  }> {}
1540
1540
  declare const RegistrationConflictError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
@@ -1546,7 +1546,7 @@ declare const RegistrationConflictError_base: new <A extends Record<string, any>
1546
1546
  * caller named. Distinct from `IdempotencyHit`, which is a success.
1547
1547
  * @public
1548
1548
  */
1549
- declare class RegistrationConflictError extends RegistrationConflictError_base<{
1549
+ export declare class RegistrationConflictError extends RegistrationConflictError_base<{
1550
1550
  readonly reason: string;
1551
1551
  }> {
1552
1552
  constructor(args: {
@@ -1562,7 +1562,7 @@ declare const HostMetadataParseError_base: new <A extends Record<string, any> =
1562
1562
  * paths that explicitly carry through `Schema.parseJson` errors.
1563
1563
  * @public
1564
1564
  */
1565
- declare class HostMetadataParseError extends HostMetadataParseError_base<{
1565
+ export declare class HostMetadataParseError extends HostMetadataParseError_base<{
1566
1566
  readonly raw: string;
1567
1567
  readonly reason: string;
1568
1568
  }> {}
@@ -1574,7 +1574,7 @@ declare const SidecarTimeoutError_base: new <A extends Record<string, any> = {}>
1574
1574
  * `Effect.timeout`; the top-level wrapper maps it to exit code 2.
1575
1575
  * @public
1576
1576
  */
1577
- declare class SidecarTimeoutError extends SidecarTimeoutError_base<{
1577
+ export declare class SidecarTimeoutError extends SidecarTimeoutError_base<{
1578
1578
  readonly operation: string;
1579
1579
  readonly timeoutMs: number;
1580
1580
  }> {
@@ -1592,7 +1592,7 @@ declare const DataStoreError_base: new <A extends Record<string, any> = {}>(args
1592
1592
  * Error raised when a SQLite operation fails at read, write, or migration time.
1593
1593
  * @public
1594
1594
  */
1595
- declare class DataStoreError extends DataStoreError_base<{
1595
+ export declare class DataStoreError extends DataStoreError_base<{
1596
1596
  readonly operation: "read" | "write" | "migrate";
1597
1597
  readonly table: string;
1598
1598
  readonly reason: string;
@@ -1615,7 +1615,7 @@ declare class DataStoreError extends DataStoreError_base<{
1615
1615
  * circular `cause` references.
1616
1616
  * @public
1617
1617
  */
1618
- declare const extractSqlReason: (e: unknown) => string;
1618
+ export declare const extractSqlReason: (e: unknown) => string;
1619
1619
  //#endregion
1620
1620
  //#region src/errors/DiscoveryError.d.ts
1621
1621
  declare const DiscoveryError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
@@ -1625,7 +1625,7 @@ declare const DiscoveryError_base: new <A extends Record<string, any> = {}>(args
1625
1625
  * Error raised when project discovery (glob, file read, or stat) fails.
1626
1626
  * @public
1627
1627
  */
1628
- declare class DiscoveryError extends DiscoveryError_base<{
1628
+ export declare class DiscoveryError extends DiscoveryError_base<{
1629
1629
  readonly operation: "glob" | "read" | "stat";
1630
1630
  readonly path: string;
1631
1631
  readonly reason: string;
@@ -1651,7 +1651,7 @@ declare const PathResolutionError_base: new <A extends Record<string, any> = {}>
1651
1651
  * write to.
1652
1652
  * @public
1653
1653
  */
1654
- declare class PathResolutionError extends PathResolutionError_base<{
1654
+ export declare class PathResolutionError extends PathResolutionError_base<{
1655
1655
  readonly reason: string;
1656
1656
  }> {
1657
1657
  constructor(args: {
@@ -1670,7 +1670,7 @@ declare class PathResolutionError extends PathResolutionError_base<{
1670
1670
  * "URL canonicalization rejected the value").
1671
1671
  * @public
1672
1672
  */
1673
- interface ProjectIdentityCandidate {
1673
+ export interface ProjectIdentityCandidate {
1674
1674
  readonly source: string;
1675
1675
  readonly reason: string;
1676
1676
  }
@@ -1688,7 +1688,7 @@ declare const ProjectIdentityNotResolvableError_base: new <A extends Record<stri
1688
1688
  * went through the new resolver.
1689
1689
  * @public
1690
1690
  */
1691
- declare class ProjectIdentityNotResolvableError extends ProjectIdentityNotResolvableError_base<{
1691
+ export declare class ProjectIdentityNotResolvableError extends ProjectIdentityNotResolvableError_base<{
1692
1692
  readonly tried: ReadonlyArray<ProjectIdentityCandidate>;
1693
1693
  }> {
1694
1694
  constructor(args: {
@@ -1709,7 +1709,7 @@ declare const GitCommandError_base: new <A extends Record<string, any> = {}>(arg
1709
1709
  * meaningfully recover from.
1710
1710
  * @public
1711
1711
  */
1712
- declare class GitCommandError extends GitCommandError_base<{
1712
+ export declare class GitCommandError extends GitCommandError_base<{
1713
1713
  readonly command: string;
1714
1714
  readonly reason: string;
1715
1715
  }> {
@@ -1729,7 +1729,7 @@ declare const ProbeMissError_base: new <A extends Record<string, any> = {}>(args
1729
1729
  * probes).
1730
1730
  * @internal
1731
1731
  */
1732
- declare class ProbeMissError extends ProbeMissError_base<{
1732
+ export declare class ProbeMissError extends ProbeMissError_base<{
1733
1733
  readonly probe: string;
1734
1734
  }> {}
1735
1735
  //#endregion
@@ -1738,7 +1738,7 @@ declare const GoalNotFoundError_base: new <A extends Record<string, any> = {}>(a
1738
1738
  readonly _tag: "GoalNotFoundError";
1739
1739
  } & Readonly<A>;
1740
1740
  /** @public */
1741
- declare class GoalNotFoundError extends GoalNotFoundError_base<{
1741
+ export declare class GoalNotFoundError extends GoalNotFoundError_base<{
1742
1742
  readonly id: number;
1743
1743
  readonly reason: string;
1744
1744
  }> {
@@ -1751,7 +1751,7 @@ declare const BehaviorNotFoundError_base: new <A extends Record<string, any> = {
1751
1751
  readonly _tag: "BehaviorNotFoundError";
1752
1752
  } & Readonly<A>;
1753
1753
  /** @public */
1754
- declare class BehaviorNotFoundError extends BehaviorNotFoundError_base<{
1754
+ export declare class BehaviorNotFoundError extends BehaviorNotFoundError_base<{
1755
1755
  readonly id: number;
1756
1756
  readonly reason: string;
1757
1757
  }> {
@@ -1764,7 +1764,7 @@ declare const TddTaskNotFoundError_base: new <A extends Record<string, any> = {}
1764
1764
  readonly _tag: "TddTaskNotFoundError";
1765
1765
  } & Readonly<A>;
1766
1766
  /** @public */
1767
- declare class TddTaskNotFoundError extends TddTaskNotFoundError_base<{
1767
+ export declare class TddTaskNotFoundError extends TddTaskNotFoundError_base<{
1768
1768
  readonly id: number;
1769
1769
  readonly reason: string;
1770
1770
  }> {
@@ -1774,12 +1774,12 @@ declare class TddTaskNotFoundError extends TddTaskNotFoundError_base<{
1774
1774
  });
1775
1775
  }
1776
1776
  /** @public */
1777
- type TddTaskEndOutcome = "succeeded" | "blocked" | "abandoned";
1777
+ export type TddTaskEndOutcome = "succeeded" | "blocked" | "abandoned";
1778
1778
  declare const TddTaskAlreadyEndedError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
1779
1779
  readonly _tag: "TddTaskAlreadyEndedError";
1780
1780
  } & Readonly<A>;
1781
1781
  /** @public */
1782
- declare class TddTaskAlreadyEndedError extends TddTaskAlreadyEndedError_base<{
1782
+ export declare class TddTaskAlreadyEndedError extends TddTaskAlreadyEndedError_base<{
1783
1783
  readonly id: number;
1784
1784
  readonly endedAt: string;
1785
1785
  readonly outcome: TddTaskEndOutcome;
@@ -1791,12 +1791,12 @@ declare class TddTaskAlreadyEndedError extends TddTaskAlreadyEndedError_base<{
1791
1791
  });
1792
1792
  }
1793
1793
  /** @public */
1794
- type IllegalStatusTransitionEntity = "goal" | "behavior" | "task";
1794
+ export type IllegalStatusTransitionEntity = "goal" | "behavior" | "task";
1795
1795
  declare const IllegalStatusTransitionError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
1796
1796
  readonly _tag: "IllegalStatusTransitionError";
1797
1797
  } & Readonly<A>;
1798
1798
  /** @public */
1799
- declare class IllegalStatusTransitionError extends IllegalStatusTransitionError_base<{
1799
+ export declare class IllegalStatusTransitionError extends IllegalStatusTransitionError_base<{
1800
1800
  readonly entity: IllegalStatusTransitionEntity;
1801
1801
  readonly id: number;
1802
1802
  readonly from: string;
@@ -1814,15 +1814,15 @@ declare class IllegalStatusTransitionError extends IllegalStatusTransitionError_
1814
1814
  //#endregion
1815
1815
  //#region src/formatters/ci-annotations.d.ts
1816
1816
  /** @public */
1817
- declare const ciAnnotationsFormatter: Formatter;
1817
+ export declare const ciAnnotationsFormatter: Formatter;
1818
1818
  //#endregion
1819
1819
  //#region src/formatters/gfm.d.ts
1820
1820
  /** @public */
1821
- declare const GfmFormatter: Formatter;
1821
+ export declare const GfmFormatter: Formatter;
1822
1822
  //#endregion
1823
1823
  //#region src/formatters/json.d.ts
1824
1824
  /** @public */
1825
- declare const JsonFormatter: Formatter;
1825
+ export declare const JsonFormatter: Formatter;
1826
1826
  //#endregion
1827
1827
  //#region src/formatters/markdown.d.ts
1828
1828
  /**
@@ -1836,15 +1836,15 @@ declare const JsonFormatter: Formatter;
1836
1836
  * Markdown-aware sink.
1837
1837
  * @public
1838
1838
  */
1839
- declare const MarkdownFormatter: Formatter;
1839
+ export declare const MarkdownFormatter: Formatter;
1840
1840
  //#endregion
1841
1841
  //#region src/formatters/silent.d.ts
1842
1842
  /** @public */
1843
- declare const SilentFormatter: Formatter;
1843
+ export declare const SilentFormatter: Formatter;
1844
1844
  //#endregion
1845
1845
  //#region src/formatters/terminal.d.ts
1846
1846
  /** @public */
1847
- declare const TerminalFormatter: Formatter;
1847
+ export declare const TerminalFormatter: Formatter;
1848
1848
  //#endregion
1849
1849
  //#region src/schemas/Config.d.ts
1850
1850
  declare const VitestAgentConfig_base: Schema.Class<VitestAgentConfig, Schema.Struct<{
@@ -1869,7 +1869,7 @@ declare const VitestAgentConfig_base: Schema.Class<VitestAgentConfig, Schema.Str
1869
1869
  * keying), or when you want a stable key independent of `name` changes.
1870
1870
  * @public
1871
1871
  */
1872
- declare class VitestAgentConfig extends VitestAgentConfig_base {}
1872
+ export declare class VitestAgentConfig extends VitestAgentConfig_base {}
1873
1873
  //#endregion
1874
1874
  //#region src/services/Config.d.ts
1875
1875
  /**
@@ -1878,7 +1878,7 @@ declare class VitestAgentConfig extends VitestAgentConfig_base {}
1878
1878
  * type without referencing the `ConfigFileShape<A>` generic directly.
1879
1879
  * @public
1880
1880
  */
1881
- type VitestAgentConfigFileService = ConfigFileShape<VitestAgentConfig>;
1881
+ export type VitestAgentConfigFileService = ConfigFileShape<VitestAgentConfig>;
1882
1882
  declare const VitestAgentConfigFile_base: import("effect/Context").ServiceClass<VitestAgentConfigFile, "vitest-agent/Config", ConfigFileShape<VitestAgentConfig>>;
1883
1883
  /**
1884
1884
  * Typed service class (Context tag) for the vitest-agent config file service.
@@ -1888,7 +1888,7 @@ declare const VitestAgentConfigFile_base: import("effect/Context").ServiceClass<
1888
1888
  * `ConfigLive(projectDir)`.
1889
1889
  * @public
1890
1890
  */
1891
- declare class VitestAgentConfigFile extends VitestAgentConfigFile_base {}
1891
+ export declare class VitestAgentConfigFile extends VitestAgentConfigFile_base {}
1892
1892
  //#endregion
1893
1893
  //#region src/layers/ConfigLive.d.ts
1894
1894
  /**
@@ -1909,14 +1909,14 @@ declare class VitestAgentConfigFile extends VitestAgentConfigFile_base {}
1909
1909
  * sees the right config even when invoked from elsewhere.
1910
1910
  * @public
1911
1911
  */
1912
- declare const ConfigLive: (projectDir: string) => Layer.Layer<VitestAgentConfigFile, never, FileSystem.FileSystem | Path.Path>;
1912
+ export declare const ConfigLive: (projectDir: string) => Layer.Layer<VitestAgentConfigFile, never, FileSystem.FileSystem | Path.Path>;
1913
1913
  //#endregion
1914
1914
  //#region src/schemas/Baselines.d.ts
1915
1915
  /**
1916
1916
  * Coverage baselines -- the auto-ratcheting high-water mark.
1917
1917
  * @public
1918
1918
  */
1919
- declare const CoverageBaselines: Schema.Struct<{
1919
+ export declare const CoverageBaselines: Schema.Struct<{
1920
1920
  readonly updatedAt: Schema.String;
1921
1921
  readonly global: Schema.Struct<{
1922
1922
  readonly lines: Schema.optional<Schema.Number>;
@@ -1932,14 +1932,14 @@ declare const CoverageBaselines: Schema.Struct<{
1932
1932
  }>]>>, never>;
1933
1933
  }>;
1934
1934
  /** @public */
1935
- type CoverageBaselines = typeof CoverageBaselines.Type;
1935
+ export type CoverageBaselines = typeof CoverageBaselines.Type;
1936
1936
  //#endregion
1937
1937
  //#region src/schemas/CacheManifest.d.ts
1938
1938
  /**
1939
1939
  * A single project entry in the cache manifest.
1940
1940
  * @public
1941
1941
  */
1942
- declare const CacheManifestEntry: Schema.Struct<{
1942
+ export declare const CacheManifestEntry: Schema.Struct<{
1943
1943
  readonly project: Schema.String;
1944
1944
  readonly reportFile: Schema.String;
1945
1945
  readonly historyFile: Schema.optional<Schema.String>;
@@ -1947,12 +1947,12 @@ declare const CacheManifestEntry: Schema.Struct<{
1947
1947
  readonly lastResult: Schema.NullOr<Schema.Literals<readonly ["passed", "failed", "interrupted"]>>;
1948
1948
  }>;
1949
1949
  /** @public */
1950
- type CacheManifestEntry = typeof CacheManifestEntry.Type;
1950
+ export type CacheManifestEntry = typeof CacheManifestEntry.Type;
1951
1951
  /**
1952
1952
  * Root manifest file that indexes all project reports.
1953
1953
  * @public
1954
1954
  */
1955
- declare const CacheManifest: Schema.Struct<{
1955
+ export declare const CacheManifest: Schema.Struct<{
1956
1956
  readonly updatedAt: Schema.String;
1957
1957
  readonly cacheDir: Schema.String;
1958
1958
  readonly projects: Schema.$Array<Schema.Struct<{
@@ -1964,24 +1964,24 @@ declare const CacheManifest: Schema.Struct<{
1964
1964
  }>>;
1965
1965
  }>;
1966
1966
  /** @public */
1967
- type CacheManifest = typeof CacheManifest.Type;
1967
+ export type CacheManifest = typeof CacheManifest.Type;
1968
1968
  //#endregion
1969
1969
  //#region src/schemas/History.d.ts
1970
1970
  /**
1971
1971
  * A single test run outcome (pass or fail only).
1972
1972
  * @public
1973
1973
  */
1974
- declare const TestRun: Schema.Struct<{
1974
+ export declare const TestRun: Schema.Struct<{
1975
1975
  readonly timestamp: Schema.String;
1976
1976
  readonly state: Schema.Literals<readonly ["passed", "failed"]>;
1977
1977
  }>;
1978
1978
  /** @public */
1979
- type TestRun = typeof TestRun.Type;
1979
+ export type TestRun = typeof TestRun.Type;
1980
1980
  /**
1981
1981
  * History for a single test across multiple runs.
1982
1982
  * @public
1983
1983
  */
1984
- declare const TestHistory: Schema.Struct<{
1984
+ export declare const TestHistory: Schema.Struct<{
1985
1985
  readonly modulePath: Schema.String;
1986
1986
  readonly fullName: Schema.String;
1987
1987
  readonly runs: Schema.$Array<Schema.Struct<{
@@ -1990,12 +1990,12 @@ declare const TestHistory: Schema.Struct<{
1990
1990
  }>>;
1991
1991
  }>;
1992
1992
  /** @public */
1993
- type TestHistory = typeof TestHistory.Type;
1993
+ export type TestHistory = typeof TestHistory.Type;
1994
1994
  /**
1995
1995
  * Per-project history record containing all tracked tests.
1996
1996
  * @public
1997
1997
  */
1998
- declare const HistoryRecord: Schema.Struct<{
1998
+ export declare const HistoryRecord: Schema.Struct<{
1999
1999
  readonly project: Schema.String;
2000
2000
  readonly updatedAt: Schema.String;
2001
2001
  readonly tests: Schema.$Array<Schema.Struct<{
@@ -2008,19 +2008,19 @@ declare const HistoryRecord: Schema.Struct<{
2008
2008
  }>>;
2009
2009
  }>;
2010
2010
  /** @public */
2011
- type HistoryRecord = typeof HistoryRecord.Type;
2011
+ export type HistoryRecord = typeof HistoryRecord.Type;
2012
2012
  //#endregion
2013
2013
  //#region src/schemas/Tdd.d.ts
2014
2014
  /** @public */
2015
- declare const GoalStatus: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
2015
+ export declare const GoalStatus: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
2016
2016
  /** @public */
2017
- type GoalStatus = typeof GoalStatus.Type;
2017
+ export type GoalStatus = typeof GoalStatus.Type;
2018
2018
  /** @public */
2019
- declare const BehaviorStatus: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
2019
+ export declare const BehaviorStatus: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
2020
2020
  /** @public */
2021
- type BehaviorStatus = typeof BehaviorStatus.Type;
2021
+ export type BehaviorStatus = typeof BehaviorStatus.Type;
2022
2022
  /** @public */
2023
- declare const GoalRow: Schema.Struct<{
2023
+ export declare const GoalRow: Schema.Struct<{
2024
2024
  readonly id: Schema.Number;
2025
2025
  readonly sessionId: Schema.Number;
2026
2026
  readonly ordinal: Schema.Number;
@@ -2029,9 +2029,9 @@ declare const GoalRow: Schema.Struct<{
2029
2029
  readonly createdAt: Schema.String;
2030
2030
  }>;
2031
2031
  /** @public */
2032
- type GoalRow = typeof GoalRow.Type;
2032
+ export type GoalRow = typeof GoalRow.Type;
2033
2033
  /** @public */
2034
- declare const BehaviorRow: Schema.Struct<{
2034
+ export declare const BehaviorRow: Schema.Struct<{
2035
2035
  readonly id: Schema.Number;
2036
2036
  readonly goalId: Schema.Number;
2037
2037
  readonly ordinal: Schema.Number;
@@ -2041,9 +2041,9 @@ declare const BehaviorRow: Schema.Struct<{
2041
2041
  readonly createdAt: Schema.String;
2042
2042
  }>;
2043
2043
  /** @public */
2044
- type BehaviorRow = typeof BehaviorRow.Type;
2044
+ export type BehaviorRow = typeof BehaviorRow.Type;
2045
2045
  /** @public */
2046
- declare const GoalDetail: Schema.Struct<{
2046
+ export declare const GoalDetail: Schema.Struct<{
2047
2047
  readonly id: Schema.Number;
2048
2048
  readonly sessionId: Schema.Number;
2049
2049
  readonly ordinal: Schema.Number;
@@ -2061,9 +2061,9 @@ declare const GoalDetail: Schema.Struct<{
2061
2061
  }>>;
2062
2062
  }>;
2063
2063
  /** @public */
2064
- type GoalDetail = typeof GoalDetail.Type;
2064
+ export type GoalDetail = typeof GoalDetail.Type;
2065
2065
  /** @public */
2066
- declare const BehaviorDetail: Schema.Struct<{
2066
+ export declare const BehaviorDetail: Schema.Struct<{
2067
2067
  readonly id: Schema.Number;
2068
2068
  readonly goalId: Schema.Number;
2069
2069
  readonly ordinal: Schema.Number;
@@ -2087,14 +2087,14 @@ declare const BehaviorDetail: Schema.Struct<{
2087
2087
  }>>;
2088
2088
  }>;
2089
2089
  /** @public */
2090
- type BehaviorDetail = typeof BehaviorDetail.Type;
2090
+ export type BehaviorDetail = typeof BehaviorDetail.Type;
2091
2091
  //#endregion
2092
2092
  //#region src/schemas/Trends.d.ts
2093
2093
  /**
2094
2094
  * A single coverage trend data point recorded on a full test run.
2095
2095
  * @public
2096
2096
  */
2097
- declare const TrendEntry: Schema.Struct<{
2097
+ export declare const TrendEntry: Schema.Struct<{
2098
2098
  readonly timestamp: Schema.String;
2099
2099
  readonly coverage: Schema.Struct<{
2100
2100
  readonly statements: Schema.Number;
@@ -2112,12 +2112,12 @@ declare const TrendEntry: Schema.Struct<{
2112
2112
  readonly targetsHash: Schema.optional<Schema.String>;
2113
2113
  }>;
2114
2114
  /** @public */
2115
- type TrendEntry = typeof TrendEntry.Type;
2115
+ export type TrendEntry = typeof TrendEntry.Type;
2116
2116
  /**
2117
2117
  * Per-project trend record with sliding window of entries.
2118
2118
  * @public
2119
2119
  */
2120
- declare const TrendRecord: Schema.Struct<{
2120
+ export declare const TrendRecord: Schema.Struct<{
2121
2121
  readonly entries: Schema.$Array<Schema.Struct<{
2122
2122
  readonly timestamp: Schema.String;
2123
2123
  readonly coverage: Schema.Struct<{
@@ -2137,13 +2137,13 @@ declare const TrendRecord: Schema.Struct<{
2137
2137
  }>>;
2138
2138
  }>;
2139
2139
  /** @public */
2140
- type TrendRecord = typeof TrendRecord.Type;
2140
+ export type TrendRecord = typeof TrendRecord.Type;
2141
2141
  //#endregion
2142
2142
  //#region src/utils/validate-phase-transition.d.ts
2143
2143
  /** @public */
2144
- type Phase = "spike" | "red" | "red.triangulate" | "green" | "green.fake-it" | "refactor" | "extended-red" | "green-without-red";
2144
+ export type Phase = "spike" | "red" | "red.triangulate" | "green" | "green.fake-it" | "refactor" | "extended-red" | "green-without-red";
2145
2145
  /** @public */
2146
- type ArtifactKind = "test_written" | "test_failed_run" | "code_written" | "test_passed_run" | "refactor" | "test_weakened";
2146
+ export type ArtifactKind = "test_written" | "test_failed_run" | "code_written" | "test_passed_run" | "refactor" | "test_weakened";
2147
2147
  /**
2148
2148
  * Explicit test-runner marker on a `tdd_artifacts` row (issue #363). `vitest`
2149
2149
  * artifacts always carry a `test_case_id` when they anchor a specific test;
@@ -2152,9 +2152,9 @@ type ArtifactKind = "test_written" | "test_failed_run" | "code_written" | "test_
2152
2152
  * run-level artifact without weakening the vitest guard.
2153
2153
  * @public
2154
2154
  */
2155
- type ArtifactSuite = "vitest" | "bats";
2155
+ export type ArtifactSuite = "vitest" | "bats";
2156
2156
  /** @public */
2157
- interface CitedArtifact {
2157
+ export interface CitedArtifact {
2158
2158
  readonly id: number;
2159
2159
  /**
2160
2160
  * `tdd_phases.id` of the phase this artifact was actually recorded in — the
@@ -2181,7 +2181,7 @@ interface CitedArtifact {
2181
2181
  readonly suite?: ArtifactSuite;
2182
2182
  }
2183
2183
  /** @public */
2184
- interface PhaseTransitionContext {
2184
+ export interface PhaseTransitionContext {
2185
2185
  readonly tdd_task_id: number;
2186
2186
  readonly current_phase: Phase;
2187
2187
  /**
@@ -2198,15 +2198,15 @@ interface PhaseTransitionContext {
2198
2198
  readonly requested_behavior_id: number | null;
2199
2199
  }
2200
2200
  /** @public */
2201
- type DenialReason = "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";
2201
+ export type DenialReason = "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";
2202
2202
  /** @public */
2203
- interface Remediation {
2203
+ export interface Remediation {
2204
2204
  readonly suggestedTool: string;
2205
2205
  readonly suggestedArgs: Record<string, unknown>;
2206
2206
  readonly humanHint: string;
2207
2207
  }
2208
2208
  /** @public */
2209
- type PhaseTransitionResult = {
2209
+ export type PhaseTransitionResult = {
2210
2210
  readonly accepted: true;
2211
2211
  readonly phase: Phase;
2212
2212
  } | {
@@ -2225,7 +2225,7 @@ type PhaseTransitionResult = {
2225
2225
  * required artifact (`spike→red`, `*→red`, etc.) return `null`.
2226
2226
  * @public
2227
2227
  */
2228
- declare const requiredArtifactForTransition: (from: Phase, to: Phase) => {
2228
+ export declare const requiredArtifactForTransition: (from: Phase, to: Phase) => {
2229
2229
  kind: ArtifactKind;
2230
2230
  humanHint: string;
2231
2231
  } | null;
@@ -2243,9 +2243,9 @@ declare const requiredArtifactForTransition: (from: Phase, to: Phase) => {
2243
2243
  * keeping the two in lockstep (issue #115).
2244
2244
  * @public
2245
2245
  */
2246
- declare const transitionEnforcesBehaviorMatch: (from: Phase, to: Phase) => boolean;
2246
+ export declare const transitionEnforcesBehaviorMatch: (from: Phase, to: Phase) => boolean;
2247
2247
  /** @public */
2248
- declare const validatePhaseTransition: (ctx: PhaseTransitionContext) => PhaseTransitionResult;
2248
+ export declare const validatePhaseTransition: (ctx: PhaseTransitionContext) => PhaseTransitionResult;
2249
2249
  //#endregion
2250
2250
  //#region src/schemas/Agent.d.ts
2251
2251
  declare const Agent_base: Schema.Class<Agent, Schema.TaggedStruct<"Agent", {
@@ -2271,7 +2271,7 @@ declare const Agent_base: Schema.Class<Agent, Schema.TaggedStruct<"Agent", {
2271
2271
  * two reveals a mid-session branch switch, which is itself signal.
2272
2272
  * @public
2273
2273
  */
2274
- declare class Agent extends Agent_base {}
2274
+ export declare class Agent extends Agent_base {}
2275
2275
  declare const IdempotencyHit_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => Readonly<A> & {
2276
2276
  readonly _tag: "IdempotencyHit";
2277
2277
  } & import("effect/Pipeable").Pipeable;
@@ -2286,46 +2286,46 @@ declare const IdempotencyHit_base: new <A extends Record<string, any> = {}>(args
2286
2286
  * downstream code uses `Match.tag` to branch.
2287
2287
  * @public
2288
2288
  */
2289
- declare class IdempotencyHit extends IdempotencyHit_base<{
2289
+ export declare class IdempotencyHit extends IdempotencyHit_base<{
2290
2290
  readonly existingAgentId: typeof AgentId.Type;
2291
2291
  }> {}
2292
2292
  /**
2293
2293
  * Sum type of the two possible outcomes of `registerAgent`.
2294
2294
  * @public
2295
2295
  */
2296
- type RegisterAgentResult = Agent | IdempotencyHit;
2296
+ export type RegisterAgentResult = Agent | IdempotencyHit;
2297
2297
  /**
2298
2298
  * Agent tree — root agent with all descendants nested under
2299
2299
  * `children`. Returned by `DataStore.getAgentTree` for forensics and
2300
2300
  * the `vitest-agent agent list` CLI subcommand.
2301
2301
  * @public
2302
2302
  */
2303
- interface AgentTreeNode {
2303
+ export interface AgentTreeNode {
2304
2304
  readonly agent: Agent;
2305
2305
  readonly children: ReadonlyArray<AgentTreeNode>;
2306
2306
  }
2307
2307
  //#endregion
2308
2308
  //#region src/services/DataStore.d.ts
2309
2309
  /** @public */
2310
- interface CreateGoalInput {
2310
+ export interface CreateGoalInput {
2311
2311
  readonly tddTaskId: number;
2312
2312
  readonly goal: string;
2313
2313
  }
2314
2314
  /** @public */
2315
- interface UpdateGoalInput {
2315
+ export interface UpdateGoalInput {
2316
2316
  readonly id: number;
2317
2317
  readonly goal?: string;
2318
2318
  readonly status?: GoalStatus;
2319
2319
  }
2320
2320
  /** @public */
2321
- interface CreateBehaviorInput {
2321
+ export interface CreateBehaviorInput {
2322
2322
  readonly goalId: number;
2323
2323
  readonly behavior: string;
2324
2324
  readonly suggestedTestName?: string;
2325
2325
  readonly dependsOnBehaviorIds?: ReadonlyArray<number>;
2326
2326
  }
2327
2327
  /** @public */
2328
- interface UpdateBehaviorInput {
2328
+ export interface UpdateBehaviorInput {
2329
2329
  readonly id: number;
2330
2330
  readonly behavior?: string;
2331
2331
  readonly suggestedTestName?: string | null;
@@ -2333,7 +2333,7 @@ interface UpdateBehaviorInput {
2333
2333
  readonly dependsOnBehaviorIds?: ReadonlyArray<number>;
2334
2334
  }
2335
2335
  /** @public */
2336
- interface SettingsInput {
2336
+ export interface SettingsInput {
2337
2337
  readonly vitestVersion: string;
2338
2338
  readonly pool?: string;
2339
2339
  readonly environment?: string;
@@ -2350,7 +2350,7 @@ interface SettingsInput {
2350
2350
  readonly coverageProvider?: string;
2351
2351
  }
2352
2352
  /** @public */
2353
- interface TestRunInput {
2353
+ export interface TestRunInput {
2354
2354
  readonly invocationId: string;
2355
2355
  readonly project: string;
2356
2356
  readonly settingsHash: string;
@@ -2402,7 +2402,7 @@ interface TestRunInput {
2402
2402
  readonly hostMetadata?: Record<string, unknown> | null;
2403
2403
  }
2404
2404
  /** @public */
2405
- interface ModuleInput {
2405
+ export interface ModuleInput {
2406
2406
  readonly fileId: number;
2407
2407
  readonly relativeModuleId: string;
2408
2408
  readonly state: string;
@@ -2414,7 +2414,7 @@ interface ModuleInput {
2414
2414
  readonly heap?: number;
2415
2415
  }
2416
2416
  /** @public */
2417
- interface TestCaseInput {
2417
+ export interface TestCaseInput {
2418
2418
  readonly suiteId?: number;
2419
2419
  readonly vitestId?: string;
2420
2420
  readonly name: string;
@@ -2446,7 +2446,7 @@ interface TestCaseInput {
2446
2446
  readonly createdTurnId?: number;
2447
2447
  }
2448
2448
  /** @public */
2449
- interface StackFrameInput {
2449
+ export interface StackFrameInput {
2450
2450
  readonly ordinal: number;
2451
2451
  readonly method: string | null;
2452
2452
  readonly filePath: string;
@@ -2456,7 +2456,7 @@ interface StackFrameInput {
2456
2456
  readonly functionBoundaryLine?: number;
2457
2457
  }
2458
2458
  /** @public */
2459
- interface TestErrorInput {
2459
+ export interface TestErrorInput {
2460
2460
  readonly testCaseId?: number;
2461
2461
  readonly testSuiteId?: number;
2462
2462
  readonly moduleId?: number;
@@ -2473,7 +2473,7 @@ interface TestErrorInput {
2473
2473
  readonly ordinal?: number;
2474
2474
  }
2475
2475
  /** @public */
2476
- interface FileCoverageInput {
2476
+ export interface FileCoverageInput {
2477
2477
  readonly fileId: number;
2478
2478
  readonly statements: number;
2479
2479
  readonly branches: number;
@@ -2493,7 +2493,7 @@ interface FileCoverageInput {
2493
2493
  readonly tier?: "below_threshold" | "below_target";
2494
2494
  }
2495
2495
  /** @public */
2496
- interface SuiteInput {
2496
+ export interface SuiteInput {
2497
2497
  readonly parentSuiteId?: number;
2498
2498
  readonly name: string;
2499
2499
  readonly fullName: string;
@@ -2507,7 +2507,7 @@ interface SuiteInput {
2507
2507
  readonly locationColumn?: number;
2508
2508
  }
2509
2509
  /** @public */
2510
- interface NoteInput {
2510
+ export interface NoteInput {
2511
2511
  readonly title: string;
2512
2512
  readonly content: string;
2513
2513
  readonly scope: "global" | "project" | "module" | "suite" | "test" | "note";
@@ -2520,7 +2520,7 @@ interface NoteInput {
2520
2520
  readonly pinned?: boolean;
2521
2521
  }
2522
2522
  /** @public */
2523
- interface SessionInput {
2523
+ export interface SessionInput {
2524
2524
  readonly chatId: string;
2525
2525
  readonly project: string;
2526
2526
  readonly cwd: string;
@@ -2538,7 +2538,7 @@ interface SessionInput {
2538
2538
  readonly conversationId?: string;
2539
2539
  }
2540
2540
  /** @public */
2541
- interface TurnInput {
2541
+ export interface TurnInput {
2542
2542
  readonly sessionId: number;
2543
2543
  /** When omitted, writeTurn computes MAX(turnNo) + 1 for the session. */
2544
2544
  readonly turnNo?: number;
@@ -2547,13 +2547,13 @@ interface TurnInput {
2547
2547
  readonly occurredAt: string;
2548
2548
  }
2549
2549
  /** @public */
2550
- interface FailureSignatureWriteInput {
2550
+ export interface FailureSignatureWriteInput {
2551
2551
  readonly signatureHash: string;
2552
2552
  readonly runId: number;
2553
2553
  readonly seenAt: string;
2554
2554
  }
2555
2555
  /** @public */
2556
- interface HypothesisInput {
2556
+ export interface HypothesisInput {
2557
2557
  readonly sessionId: number;
2558
2558
  readonly content: string;
2559
2559
  readonly createdTurnId?: number;
@@ -2561,21 +2561,21 @@ interface HypothesisInput {
2561
2561
  readonly citedStackFrameId?: number;
2562
2562
  }
2563
2563
  /** @public */
2564
- interface ValidateHypothesisInput {
2564
+ export interface ValidateHypothesisInput {
2565
2565
  readonly id: number;
2566
2566
  readonly outcome: "confirmed" | "refuted" | "abandoned";
2567
2567
  readonly validatedTurnId?: number;
2568
2568
  readonly validatedAt: string;
2569
2569
  }
2570
2570
  /** @public */
2571
- interface IdempotentResponseInput {
2571
+ export interface IdempotentResponseInput {
2572
2572
  readonly procedurePath: string;
2573
2573
  readonly key: string;
2574
2574
  readonly resultJson: string;
2575
2575
  readonly createdAt: string;
2576
2576
  }
2577
2577
  /** @public */
2578
- interface TddTaskInput {
2578
+ export interface TddTaskInput {
2579
2579
  readonly sessionId: number;
2580
2580
  readonly goal: string;
2581
2581
  readonly startedAt: string;
@@ -2583,14 +2583,14 @@ interface TddTaskInput {
2583
2583
  readonly runId?: string;
2584
2584
  }
2585
2585
  /** @public */
2586
- interface EndTddTaskInput {
2586
+ export interface EndTddTaskInput {
2587
2587
  readonly id: number;
2588
2588
  readonly endedAt: string;
2589
2589
  readonly outcome: "succeeded" | "blocked" | "abandoned";
2590
2590
  readonly summaryNoteId?: number;
2591
2591
  }
2592
2592
  /** @public */
2593
- interface WriteTddPhaseInput {
2593
+ export interface WriteTddPhaseInput {
2594
2594
  readonly tddTaskId: number;
2595
2595
  readonly behaviorId?: number;
2596
2596
  readonly phase: Phase;
@@ -2599,12 +2599,12 @@ interface WriteTddPhaseInput {
2599
2599
  readonly parentPhaseId?: number;
2600
2600
  }
2601
2601
  /** @public */
2602
- interface WriteTddPhaseOutput {
2602
+ export interface WriteTddPhaseOutput {
2603
2603
  readonly id: number;
2604
2604
  readonly previousPhaseId: number | null;
2605
2605
  }
2606
2606
  /** @public */
2607
- interface WriteTddArtifactInput {
2607
+ export interface WriteTddArtifactInput {
2608
2608
  readonly phaseId: number;
2609
2609
  readonly artifactKind: ArtifactKind;
2610
2610
  readonly fileId?: number;
@@ -2617,7 +2617,7 @@ interface WriteTddArtifactInput {
2617
2617
  readonly suite?: ArtifactSuite;
2618
2618
  }
2619
2619
  /** @public */
2620
- interface WriteCommitInput {
2620
+ export interface WriteCommitInput {
2621
2621
  readonly sha: string;
2622
2622
  readonly parentSha?: string;
2623
2623
  readonly message?: string;
@@ -2626,20 +2626,20 @@ interface WriteCommitInput {
2626
2626
  readonly branch?: string;
2627
2627
  }
2628
2628
  /** @public */
2629
- type ChangeKind = "added" | "modified" | "deleted" | "renamed" | "untracked-modified";
2629
+ export type ChangeKind = "added" | "modified" | "deleted" | "renamed" | "untracked-modified";
2630
2630
  /** @public */
2631
- interface RunChangedFile {
2631
+ export interface RunChangedFile {
2632
2632
  readonly filePath: string;
2633
2633
  readonly changeKind: ChangeKind;
2634
2634
  readonly commitSha?: string;
2635
2635
  }
2636
2636
  /** @public */
2637
- interface WriteRunChangedFilesInput {
2637
+ export interface WriteRunChangedFilesInput {
2638
2638
  readonly runId: number;
2639
2639
  readonly files: ReadonlyArray<RunChangedFile>;
2640
2640
  }
2641
2641
  /** @public */
2642
- type RunInvocationMethod = "bash" | "mcp" | "cli";
2642
+ export type RunInvocationMethod = "bash" | "mcp" | "cli";
2643
2643
  /**
2644
2644
  * Input to `DataStore.registerAgent`.
2645
2645
  *
@@ -2653,7 +2653,7 @@ type RunInvocationMethod = "bash" | "mcp" | "cli";
2653
2653
  * same row.
2654
2654
  * @public
2655
2655
  */
2656
- interface RegisterAgentInput {
2656
+ export interface RegisterAgentInput {
2657
2657
  readonly sessionId: number;
2658
2658
  readonly agentType: string;
2659
2659
  readonly parentAgentId: string | null;
@@ -2675,7 +2675,7 @@ interface RegisterAgentInput {
2675
2675
  readonly agentId?: string;
2676
2676
  }
2677
2677
  /** @public */
2678
- interface AssociateRunSessionInput {
2678
+ export interface AssociateRunSessionInput {
2679
2679
  readonly chatId: string;
2680
2680
  readonly invocationMethod: RunInvocationMethod;
2681
2681
  }
@@ -2783,11 +2783,11 @@ declare const DataStore_base: Context.ServiceClass<DataStore, "vitest-agent/Data
2783
2783
  readonly endAgent: (agentId: string, endedAt: number) => Effect.Effect<void, AgentNotFoundError | DataStoreError>;
2784
2784
  }>;
2785
2785
  /** @public */
2786
- declare class DataStore extends DataStore_base {}
2786
+ export declare class DataStore extends DataStore_base {}
2787
2787
  //#endregion
2788
2788
  //#region src/services/DataReader.d.ts
2789
2789
  /** @public */
2790
- interface ProjectRunSummary {
2790
+ export interface ProjectRunSummary {
2791
2791
  readonly project: string;
2792
2792
  readonly lastRun: string | null;
2793
2793
  readonly lastResult: "passed" | "failed" | "interrupted" | null;
@@ -2797,7 +2797,7 @@ interface ProjectRunSummary {
2797
2797
  readonly skipped: number;
2798
2798
  }
2799
2799
  /** @public */
2800
- interface FlakyTest {
2800
+ export interface FlakyTest {
2801
2801
  readonly fullName: string;
2802
2802
  readonly modulePath: string;
2803
2803
  readonly project: string;
@@ -2807,7 +2807,7 @@ interface FlakyTest {
2807
2807
  readonly lastTimestamp: string;
2808
2808
  }
2809
2809
  /** @public */
2810
- interface PersistentFailure {
2810
+ export interface PersistentFailure {
2811
2811
  readonly fullName: string;
2812
2812
  readonly modulePath: string;
2813
2813
  readonly project: string;
@@ -2817,7 +2817,7 @@ interface PersistentFailure {
2817
2817
  readonly lastErrorMessage: string | null;
2818
2818
  }
2819
2819
  /** @public */
2820
- interface TestError {
2820
+ export interface TestError {
2821
2821
  /** `test_errors.id` — required by `hypothesis (action: record).citedTestErrorId`. */
2822
2822
  readonly id: number;
2823
2823
  /**
@@ -2837,7 +2837,7 @@ interface TestError {
2837
2837
  readonly moduleFile: string | null;
2838
2838
  }
2839
2839
  /** @public */
2840
- interface NoteRow {
2840
+ export interface NoteRow {
2841
2841
  readonly id: number;
2842
2842
  readonly title: string;
2843
2843
  readonly content: string;
@@ -2853,7 +2853,7 @@ interface NoteRow {
2853
2853
  readonly updatedAt: string;
2854
2854
  }
2855
2855
  /** @public */
2856
- interface SettingsRow {
2856
+ export interface SettingsRow {
2857
2857
  readonly hash: string;
2858
2858
  readonly reporters: string | null;
2859
2859
  readonly coverageEnabled: boolean;
@@ -2868,7 +2868,7 @@ interface SettingsRow {
2868
2868
  readonly capturedAt: string;
2869
2869
  }
2870
2870
  /** @public */
2871
- interface TestListEntry {
2871
+ export interface TestListEntry {
2872
2872
  readonly id: number;
2873
2873
  readonly fullName: string;
2874
2874
  readonly state: string;
@@ -2877,7 +2877,7 @@ interface TestListEntry {
2877
2877
  readonly classification: string | null;
2878
2878
  }
2879
2879
  /** @public */
2880
- interface ModuleListEntry {
2880
+ export interface ModuleListEntry {
2881
2881
  readonly id: number;
2882
2882
  readonly file: string;
2883
2883
  readonly state: string;
@@ -2885,7 +2885,7 @@ interface ModuleListEntry {
2885
2885
  readonly duration: number | null;
2886
2886
  }
2887
2887
  /** @public */
2888
- interface SuiteListEntry {
2888
+ export interface SuiteListEntry {
2889
2889
  readonly id: number;
2890
2890
  readonly name: string;
2891
2891
  readonly module: string;
@@ -2893,12 +2893,12 @@ interface SuiteListEntry {
2893
2893
  readonly testCount: number;
2894
2894
  }
2895
2895
  /** @public */
2896
- interface SettingsListEntry {
2896
+ export interface SettingsListEntry {
2897
2897
  readonly hash: string;
2898
2898
  readonly capturedAt: string;
2899
2899
  }
2900
2900
  /** @public */
2901
- interface SessionDetail {
2901
+ export interface SessionDetail {
2902
2902
  readonly id: number;
2903
2903
  readonly chatId: string;
2904
2904
  readonly project: string;
@@ -2914,7 +2914,7 @@ interface SessionDetail {
2914
2914
  readonly conversationId: string | null;
2915
2915
  }
2916
2916
  /** @public */
2917
- interface TurnSummary {
2917
+ export interface TurnSummary {
2918
2918
  readonly id: number;
2919
2919
  readonly sessionId: number;
2920
2920
  readonly turnNo: number;
@@ -2923,7 +2923,7 @@ interface TurnSummary {
2923
2923
  readonly occurredAt: string;
2924
2924
  }
2925
2925
  /** @public */
2926
- interface HistoryQueryOptions {
2926
+ export interface HistoryQueryOptions {
2927
2927
  /** Exact `full_name` match — narrows to a single test's history. */
2928
2928
  readonly testName?: string;
2929
2929
  /** Exact `module_path` match — narrows to tests in one file. */
@@ -2941,7 +2941,7 @@ interface HistoryQueryOptions {
2941
2941
  *
2942
2942
  * @public
2943
2943
  */
2944
- interface ClassificationQueryOptions {
2944
+ export interface ClassificationQueryOptions {
2945
2945
  /** Exact `full_name` match — narrows to a single test's classification. */
2946
2946
  readonly testName?: string;
2947
2947
  /** Exact `module_path` match — narrows to tests in one file. */
@@ -2954,19 +2954,19 @@ interface ClassificationQueryOptions {
2954
2954
  *
2955
2955
  * @public
2956
2956
  */
2957
- interface TestLookupOptions {
2957
+ export interface TestLookupOptions {
2958
2958
  /** Exact `module_path` match — picks one variant of an ambiguous `full_name`. */
2959
2959
  readonly modulePath?: string;
2960
2960
  }
2961
2961
  /** @public */
2962
- interface TurnSearchOptions {
2962
+ export interface TurnSearchOptions {
2963
2963
  readonly sessionId?: number;
2964
2964
  readonly type?: string;
2965
2965
  readonly since?: string;
2966
2966
  readonly limit?: number;
2967
2967
  }
2968
2968
  /** @public */
2969
- interface AcceptanceMetrics {
2969
+ export interface AcceptanceMetrics {
2970
2970
  readonly phaseEvidenceIntegrity: {
2971
2971
  total: number;
2972
2972
  compliant: number;
@@ -2989,7 +2989,7 @@ interface AcceptanceMetrics {
2989
2989
  };
2990
2990
  }
2991
2991
  /** @public */
2992
- interface FailureSignatureDetail {
2992
+ export interface FailureSignatureDetail {
2993
2993
  readonly signatureHash: string;
2994
2994
  readonly firstSeenRunId: number | null;
2995
2995
  readonly firstSeenAt: string;
@@ -3002,7 +3002,7 @@ interface FailureSignatureDetail {
3002
3002
  }>;
3003
3003
  }
3004
3004
  /** @public */
3005
- interface TddPhaseDetail {
3005
+ export interface TddPhaseDetail {
3006
3006
  readonly id: number;
3007
3007
  readonly behaviorId: number | null;
3008
3008
  readonly phase: string;
@@ -3011,7 +3011,7 @@ interface TddPhaseDetail {
3011
3011
  readonly transitionReason: string | null;
3012
3012
  }
3013
3013
  /** @public */
3014
- interface TddArtifactDetail {
3014
+ export interface TddArtifactDetail {
3015
3015
  readonly id: number;
3016
3016
  readonly phaseId: number;
3017
3017
  readonly artifactKind: string;
@@ -3020,7 +3020,7 @@ interface TddArtifactDetail {
3020
3020
  readonly recordedAt: string;
3021
3021
  }
3022
3022
  /** @public */
3023
- interface TddTaskDetail {
3023
+ export interface TddTaskDetail {
3024
3024
  readonly id: number;
3025
3025
  readonly sessionId: number;
3026
3026
  readonly goal: string;
@@ -3033,18 +3033,18 @@ interface TddTaskDetail {
3033
3033
  readonly artifacts: ReadonlyArray<TddArtifactDetail>;
3034
3034
  }
3035
3035
  /** @public */
3036
- interface CurrentTddPhase {
3036
+ export interface CurrentTddPhase {
3037
3037
  readonly id: number;
3038
3038
  readonly phase: Phase;
3039
3039
  readonly startedAt: string;
3040
3040
  readonly behaviorId: number | null;
3041
3041
  }
3042
3042
  /** @public */
3043
- interface CitedArtifactRow extends CitedArtifact {
3043
+ export interface CitedArtifactRow extends CitedArtifact {
3044
3044
  readonly phase_id: number;
3045
3045
  }
3046
3046
  /** @public */
3047
- interface CommitChangesEntry {
3047
+ export interface CommitChangesEntry {
3048
3048
  readonly sha: string;
3049
3049
  readonly parentSha: string | null;
3050
3050
  readonly message: string | null;
@@ -3057,7 +3057,7 @@ interface CommitChangesEntry {
3057
3057
  }>;
3058
3058
  }
3059
3059
  /** @public */
3060
- interface HypothesisDetail {
3060
+ export interface HypothesisDetail {
3061
3061
  readonly id: number;
3062
3062
  readonly sessionId: number;
3063
3063
  readonly content: string;
@@ -3067,7 +3067,7 @@ interface HypothesisDetail {
3067
3067
  readonly validatedAt: string | null;
3068
3068
  }
3069
3069
  /** @public */
3070
- interface TddTaskSummary {
3070
+ export interface TddTaskSummary {
3071
3071
  readonly id: number;
3072
3072
  readonly sessionId: number;
3073
3073
  readonly goal: string;
@@ -3082,7 +3082,7 @@ interface TddTaskSummary {
3082
3082
  *
3083
3083
  * @public
3084
3084
  */
3085
- interface TddArtifactRow {
3085
+ export interface TddArtifactRow {
3086
3086
  readonly id: number;
3087
3087
  readonly tddTaskId: number;
3088
3088
  readonly phaseId: number;
@@ -3096,7 +3096,7 @@ interface TddArtifactRow {
3096
3096
  readonly suite: ArtifactSuite;
3097
3097
  }
3098
3098
  /** @public */
3099
- interface TagInventoryRow {
3099
+ export interface TagInventoryRow {
3100
3100
  /** The tag name (e.g. `"int"`, `"e2e"`, `"unit"`). */
3101
3101
  readonly tag: string;
3102
3102
  /** The Vitest project this tag was observed in. */
@@ -3271,19 +3271,19 @@ declare const DataReader_base: Context.ServiceClass<DataReader, "vitest-agent/Da
3271
3271
  }) => Effect.Effect<ReadonlyArray<TestListEntry>, DataStoreError>;
3272
3272
  }>;
3273
3273
  /** @public */
3274
- declare class DataReader extends DataReader_base {}
3274
+ export declare class DataReader extends DataReader_base {}
3275
3275
  //#endregion
3276
3276
  //#region src/layers/DataReaderLive.d.ts
3277
3277
  /** @public */
3278
- declare const DataReaderLive: Layer.Layer<DataReader, never, SqlClient>;
3278
+ export declare const DataReaderLive: Layer.Layer<DataReader, never, SqlClient>;
3279
3279
  //#endregion
3280
3280
  //#region src/layers/DataStoreLive.d.ts
3281
3281
  /** @public */
3282
- declare const DataStoreLive: Layer.Layer<DataStore, never, SqlClient>;
3282
+ export declare const DataStoreLive: Layer.Layer<DataStore, never, SqlClient>;
3283
3283
  //#endregion
3284
3284
  //#region src/services/DetailResolver.d.ts
3285
3285
  /** @public */
3286
- interface RunHealth {
3286
+ export interface RunHealth {
3287
3287
  readonly hasFailures: boolean;
3288
3288
  readonly belowTargets: boolean;
3289
3289
  readonly hasTargets?: boolean;
@@ -3292,11 +3292,11 @@ declare const DetailResolver_base: Context.ServiceClass<DetailResolver, "vitest-
3292
3292
  readonly resolve: (executor: Executor, health: RunHealth, explicit?: DetailLevel) => Effect.Effect<DetailLevel>;
3293
3293
  }>;
3294
3294
  /** @public */
3295
- declare class DetailResolver extends DetailResolver_base {}
3295
+ export declare class DetailResolver extends DetailResolver_base {}
3296
3296
  //#endregion
3297
3297
  //#region src/layers/DetailResolverLive.d.ts
3298
3298
  /** @public */
3299
- declare const DetailResolverLive: Layer.Layer<DetailResolver, never, never>;
3299
+ export declare const DetailResolverLive: Layer.Layer<DetailResolver, never, never>;
3300
3300
  //#endregion
3301
3301
  //#region src/services/DiscoveryRegistry.d.ts
3302
3302
  /**
@@ -3304,7 +3304,7 @@ declare const DetailResolverLive: Layer.Layer<DetailResolver, never, never>;
3304
3304
  *
3305
3305
  * @public
3306
3306
  */
3307
- interface KnownProjectInput {
3307
+ export interface KnownProjectInput {
3308
3308
  readonly projectKey: string;
3309
3309
  readonly canonicalForm: string;
3310
3310
  readonly dataDbPath: string;
@@ -3316,7 +3316,7 @@ interface KnownProjectInput {
3316
3316
  *
3317
3317
  * @public
3318
3318
  */
3319
- interface KnownProject {
3319
+ export interface KnownProject {
3320
3320
  readonly projectKey: string;
3321
3321
  readonly canonicalForm: string;
3322
3322
  readonly dataDbPath: string;
@@ -3345,11 +3345,11 @@ declare const DiscoveryRegistry_base: Context.ServiceClass<DiscoveryRegistry, "v
3345
3345
  readonly prune: (maxAgeDays: number) => Effect.Effect<number, DataStoreError>;
3346
3346
  }>;
3347
3347
  /** @public */
3348
- declare class DiscoveryRegistry extends DiscoveryRegistry_base {}
3348
+ export declare class DiscoveryRegistry extends DiscoveryRegistry_base {}
3349
3349
  //#endregion
3350
3350
  //#region src/layers/DiscoveryRegistryLive.d.ts
3351
3351
  /** @public */
3352
- declare const DiscoveryRegistryLive: Layer.Layer<DiscoveryRegistry, never, SqlClient>;
3352
+ export declare const DiscoveryRegistryLive: Layer.Layer<DiscoveryRegistry, never, SqlClient>;
3353
3353
  //#endregion
3354
3354
  //#region src/services/EnvironmentDetector.d.ts
3355
3355
  declare const EnvironmentDetector_base: Context.ServiceClass<EnvironmentDetector, "vitest-agent/EnvironmentDetector", {
@@ -3358,15 +3358,15 @@ declare const EnvironmentDetector_base: Context.ServiceClass<EnvironmentDetector
3358
3358
  readonly agentName: Effect.Effect<string | undefined>;
3359
3359
  }>;
3360
3360
  /** @public */
3361
- declare class EnvironmentDetector extends EnvironmentDetector_base {}
3361
+ export declare class EnvironmentDetector extends EnvironmentDetector_base {}
3362
3362
  //#endregion
3363
3363
  //#region src/layers/EnvironmentDetectorLive.d.ts
3364
3364
  /** @public */
3365
- declare const EnvironmentDetectorLive: Layer.Layer<EnvironmentDetector>;
3365
+ export declare const EnvironmentDetectorLive: Layer.Layer<EnvironmentDetector>;
3366
3366
  //#endregion
3367
3367
  //#region src/layers/EnvironmentDetectorTest.d.ts
3368
3368
  /** @public */
3369
- declare const EnvironmentDetectorTest: {
3369
+ export declare const EnvironmentDetectorTest: {
3370
3370
  layer: (env?: Environment) => Layer.Layer<EnvironmentDetector, never, never>;
3371
3371
  };
3372
3372
  //#endregion
@@ -3375,18 +3375,18 @@ declare const ExecutorResolver_base: Context.ServiceClass<ExecutorResolver, "vit
3375
3375
  readonly resolve: (env: Environment) => Effect.Effect<Executor>;
3376
3376
  }>;
3377
3377
  /** @public */
3378
- declare class ExecutorResolver extends ExecutorResolver_base {}
3378
+ export declare class ExecutorResolver extends ExecutorResolver_base {}
3379
3379
  //#endregion
3380
3380
  //#region src/layers/ExecutorResolverLive.d.ts
3381
3381
  /** @public */
3382
- declare const ExecutorResolverLive: Layer.Layer<ExecutorResolver, never, never>;
3382
+ export declare const ExecutorResolverLive: Layer.Layer<ExecutorResolver, never, never>;
3383
3383
  //#endregion
3384
3384
  //#region src/services/FormatSelector.d.ts
3385
3385
  declare const FormatSelector_base: Context.ServiceClass<FormatSelector, "vitest-agent/FormatSelector", {
3386
3386
  readonly select: (executor: Executor, explicitFormat?: OutputFormat, environment?: Environment) => Effect.Effect<OutputFormat>;
3387
3387
  }>;
3388
3388
  /** @public */
3389
- declare class FormatSelector extends FormatSelector_base {}
3389
+ export declare class FormatSelector extends FormatSelector_base {}
3390
3390
  //#endregion
3391
3391
  //#region src/layers/FormatSelectorLive.d.ts
3392
3392
  /**
@@ -3401,14 +3401,14 @@ declare class FormatSelector extends FormatSelector_base {}
3401
3401
  * for surfaces that *do* render it (MCP tools, GitHub step summary).
3402
3402
  * @public
3403
3403
  */
3404
- declare const FormatSelectorLive: Layer.Layer<FormatSelector, never, never>;
3404
+ export declare const FormatSelectorLive: Layer.Layer<FormatSelector, never, never>;
3405
3405
  //#endregion
3406
3406
  //#region src/services/HistoryTracker.d.ts
3407
3407
  /**
3408
3408
  * Lightweight test outcome for history classification.
3409
3409
  * @public
3410
3410
  */
3411
- interface TestOutcome {
3411
+ export interface TestOutcome {
3412
3412
  readonly modulePath: string;
3413
3413
  readonly fullName: string;
3414
3414
  readonly state: "passed" | "failed";
@@ -3424,7 +3424,7 @@ interface TestOutcome {
3424
3424
  * key exists to prevent.
3425
3425
  * @public
3426
3426
  */
3427
- declare const historyKey: (modulePath: string, fullName: string) => string;
3427
+ export declare const historyKey: (modulePath: string, fullName: string) => string;
3428
3428
  declare const HistoryTracker_base: Context.ServiceClass<HistoryTracker, "vitest-agent/HistoryTracker", {
3429
3429
  readonly classify: (project: string, testOutcomes: ReadonlyArray<TestOutcome>, timestamp: string) => Effect.Effect<{
3430
3430
  history: HistoryRecord;
@@ -3432,22 +3432,22 @@ declare const HistoryTracker_base: Context.ServiceClass<HistoryTracker, "vitest-
3432
3432
  }, DataStoreError>;
3433
3433
  }>;
3434
3434
  /** @public */
3435
- declare class HistoryTracker extends HistoryTracker_base {}
3435
+ export declare class HistoryTracker extends HistoryTracker_base {}
3436
3436
  //#endregion
3437
3437
  //#region src/layers/HistoryTrackerLive.d.ts
3438
3438
  /** @public */
3439
- declare const HistoryTrackerLive: Layer.Layer<HistoryTracker, never, DataReader>;
3439
+ export declare const HistoryTrackerLive: Layer.Layer<HistoryTracker, never, DataReader>;
3440
3440
  //#endregion
3441
3441
  //#region src/layers/HistoryTrackerTest.d.ts
3442
3442
  /** @public */
3443
- interface HistoryTrackerTestState {
3443
+ export interface HistoryTrackerTestState {
3444
3444
  readonly classifyCalls: Array<{
3445
3445
  project: string;
3446
3446
  timestamp: string;
3447
3447
  }>;
3448
3448
  }
3449
3449
  /** @public */
3450
- declare const HistoryTrackerTest: {
3450
+ export declare const HistoryTrackerTest: {
3451
3451
  readonly empty: () => HistoryTrackerTestState;
3452
3452
  readonly layer: (state: HistoryTrackerTestState, cannedResult?: {
3453
3453
  history: HistoryRecord;
@@ -3465,29 +3465,29 @@ declare const HistoryTrackerTest: {
3465
3465
  * output.
3466
3466
  * @public
3467
3467
  */
3468
- declare const LoggerLive: (level?: LogLevel.LogLevel, logFile?: string) => Layer.Layer<never>;
3468
+ export declare const LoggerLive: (level?: LogLevel.LogLevel, logFile?: string) => Layer.Layer<never>;
3469
3469
  /** @public */
3470
- declare function resolveLogLevel(option?: string): LogLevel.LogLevel | undefined;
3470
+ export declare function resolveLogLevel(option?: string): LogLevel.LogLevel | undefined;
3471
3471
  /**
3472
3472
  * Resolve log file from option or environment variable.
3473
3473
  * @public
3474
3474
  */
3475
- declare function resolveLogFile(option?: string): string | undefined;
3475
+ export declare function resolveLogFile(option?: string): string | undefined;
3476
3476
  //#endregion
3477
3477
  //#region src/layers/OutputPipelineLive.d.ts
3478
3478
  /** @public */
3479
- declare const OutputPipelineLive: Layer.Layer<DetailResolver | EnvironmentDetector | ExecutorResolver | FormatSelector | OutputRenderer, never, never>;
3479
+ export declare const OutputPipelineLive: Layer.Layer<DetailResolver | EnvironmentDetector | ExecutorResolver | FormatSelector | OutputRenderer, never, never>;
3480
3480
  //#endregion
3481
3481
  //#region src/services/OutputRenderer.d.ts
3482
3482
  declare const OutputRenderer_base: Context.ServiceClass<OutputRenderer, "vitest-agent/OutputRenderer", {
3483
3483
  readonly render: (reports: ReadonlyArray<AgentReport>, format: OutputFormat, context: FormatterContext) => Effect.Effect<ReadonlyArray<RenderedOutput>>;
3484
3484
  }>;
3485
3485
  /** @public */
3486
- declare class OutputRenderer extends OutputRenderer_base {}
3486
+ export declare class OutputRenderer extends OutputRenderer_base {}
3487
3487
  //#endregion
3488
3488
  //#region src/layers/OutputRendererLive.d.ts
3489
3489
  /** @public */
3490
- declare const OutputRendererLive: Layer.Layer<OutputRenderer, never, never>;
3490
+ export declare const OutputRendererLive: Layer.Layer<OutputRenderer, never, never>;
3491
3491
  //#endregion
3492
3492
  //#region src/layers/PathResolutionLive.d.ts
3493
3493
  /**
@@ -3510,23 +3510,23 @@ declare const OutputRendererLive: Layer.Layer<OutputRenderer, never, never>;
3510
3510
  * anchor the config file resolvers and workspace discovery.
3511
3511
  * @public
3512
3512
  */
3513
- declare const PathResolutionLive: (projectDir: string) => Layer.Layer<AppDirs | VitestAgentConfigFile | WorkspaceDiscovery, import("@effected/xdg").XdgEnvError, import("effect/FileSystem").FileSystem | import("effect/Path").Path>;
3513
+ export declare const PathResolutionLive: (projectDir: string) => Layer.Layer<AppDirs | VitestAgentConfigFile | WorkspaceDiscovery, import("@effected/xdg").XdgEnvError, import("effect/FileSystem").FileSystem | import("effect/Path").Path>;
3514
3514
  //#endregion
3515
3515
  //#region src/services/PerClientSessionMap.d.ts
3516
3516
  /** @public */
3517
- interface MapSessionInput {
3517
+ export interface MapSessionInput {
3518
3518
  readonly hostSessionId: string;
3519
3519
  readonly conversationId: string;
3520
3520
  readonly projectKey: string;
3521
3521
  readonly projectDir: string;
3522
3522
  }
3523
3523
  /** @public */
3524
- interface MapSessionOutput {
3524
+ export interface MapSessionOutput {
3525
3525
  readonly mainAgentId: string;
3526
3526
  readonly conversationId: string;
3527
3527
  }
3528
3528
  /** @public */
3529
- interface SessionContextRow {
3529
+ export interface SessionContextRow {
3530
3530
  readonly hostSessionId: string;
3531
3531
  readonly conversationId: string;
3532
3532
  readonly projectKey: string;
@@ -3558,7 +3558,7 @@ declare const PerClientSessionMapReader_base: Context.ServiceClass<PerClientSess
3558
3558
  * methods would be a type error.
3559
3559
  * @public
3560
3560
  */
3561
- declare class PerClientSessionMapReader extends PerClientSessionMapReader_base {}
3561
+ export declare class PerClientSessionMapReader extends PerClientSessionMapReader_base {}
3562
3562
  declare const PerClientSessionMapWriter_base: Context.ServiceClass<PerClientSessionMapWriter, "vitest-agent/PerClientSessionMapWriter", {
3563
3563
  /**
3564
3564
  * Upsert a conversation row. Returns the canonical conversation_id
@@ -3595,7 +3595,7 @@ declare const PerClientSessionMapWriter_base: Context.ServiceClass<PerClientSess
3595
3595
  * one resolve.
3596
3596
  * @public
3597
3597
  */
3598
- declare class PerClientSessionMapWriter extends PerClientSessionMapWriter_base {}
3598
+ export declare class PerClientSessionMapWriter extends PerClientSessionMapWriter_base {}
3599
3599
  //#endregion
3600
3600
  //#region src/layers/PerClientSessionMapLive.d.ts
3601
3601
  /**
@@ -3604,18 +3604,18 @@ declare class PerClientSessionMapWriter extends PerClientSessionMapWriter_base {
3604
3604
  * methods and never declares write methods.
3605
3605
  * @public
3606
3606
  */
3607
- declare const PerClientSessionMapReaderLive: Layer.Layer<PerClientSessionMapReader, never, SqlClient>;
3607
+ export declare const PerClientSessionMapReaderLive: Layer.Layer<PerClientSessionMapReader, never, SqlClient>;
3608
3608
  /**
3609
3609
  * Read-write layer. Provides both write methods and the Reader's read
3610
3610
  * methods so the same layer instance satisfies callers of either
3611
3611
  * tag.
3612
3612
  * @public
3613
3613
  */
3614
- declare const PerClientSessionMapWriterLive: Layer.Layer<PerClientSessionMapWriter | PerClientSessionMapReader, never, SqlClient>;
3614
+ export declare const PerClientSessionMapWriterLive: Layer.Layer<PerClientSessionMapWriter | PerClientSessionMapReader, never, SqlClient>;
3615
3615
  //#endregion
3616
3616
  //#region src/services/ProjectDiscovery.d.ts
3617
3617
  /** @public */
3618
- interface TestFileEntry {
3618
+ export interface TestFileEntry {
3619
3619
  readonly testFile: string;
3620
3620
  readonly sourceFiles: ReadonlyArray<string>;
3621
3621
  }
@@ -3624,15 +3624,15 @@ declare const ProjectDiscovery_base: Context.ServiceClass<ProjectDiscovery, "vit
3624
3624
  readonly mapTestToSource: (testFile: string) => Effect.Effect<ReadonlyArray<string>, DiscoveryError>;
3625
3625
  }>;
3626
3626
  /** @public */
3627
- declare class ProjectDiscovery extends ProjectDiscovery_base {}
3627
+ export declare class ProjectDiscovery extends ProjectDiscovery_base {}
3628
3628
  //#endregion
3629
3629
  //#region src/layers/ProjectDiscoveryLive.d.ts
3630
3630
  /** @public */
3631
- declare const ProjectDiscoveryLive: Layer.Layer<ProjectDiscovery, never, FileSystem.FileSystem>;
3631
+ export declare const ProjectDiscoveryLive: Layer.Layer<ProjectDiscovery, never, FileSystem.FileSystem>;
3632
3632
  //#endregion
3633
3633
  //#region src/layers/ProjectDiscoveryTest.d.ts
3634
3634
  /** @public */
3635
- declare const ProjectDiscoveryTest: {
3635
+ export declare const ProjectDiscoveryTest: {
3636
3636
  readonly layer: (entries: ReadonlyArray<TestFileEntry>) => Layer.Layer<ProjectDiscovery>;
3637
3637
  };
3638
3638
  //#endregion
@@ -3649,13 +3649,13 @@ declare const ProjectDiscoveryTest: {
3649
3649
  * `vitest-agent doctor`-style commands.
3650
3650
  * @public
3651
3651
  */
3652
- interface ResolvedIdentity {
3652
+ export interface ResolvedIdentity {
3653
3653
  readonly projectKey: string;
3654
3654
  readonly canonicalForm: string;
3655
3655
  readonly source: ProjectIdentitySource;
3656
3656
  }
3657
3657
  /** @public */
3658
- type ProjectIdentitySource = "explicit" | "toml" | "git-remote" | "package-repository" | "package-name";
3658
+ export type ProjectIdentitySource = "explicit" | "toml" | "git-remote" | "package-repository" | "package-name";
3659
3659
  /**
3660
3660
  * Per-source candidate values. Each is optional — an absent or empty
3661
3661
  * value causes the resolver to fall through to the next source.
@@ -3664,7 +3664,7 @@ type ProjectIdentitySource = "explicit" | "toml" | "git-remote" | "package-repos
3664
3664
  * subprocess, `package.json` read). Tests pass a literal object.
3665
3665
  * @public
3666
3666
  */
3667
- interface ProjectIdentityCandidates {
3667
+ export interface ProjectIdentityCandidates {
3668
3668
  readonly explicit?: string;
3669
3669
  readonly toml?: string;
3670
3670
  readonly gitRemote?: string;
@@ -3678,7 +3678,7 @@ interface ProjectIdentityCandidates {
3678
3678
  * configured `AgentPlugin({ projectId: "..." })` in `vitest.config.ts`.
3679
3679
  * @public
3680
3680
  */
3681
- interface ResolveProjectIdentityOptions {
3681
+ export interface ResolveProjectIdentityOptions {
3682
3682
  readonly projectId?: string;
3683
3683
  }
3684
3684
  /**
@@ -3692,7 +3692,7 @@ interface ResolveProjectIdentityOptions {
3692
3692
  * shape from `canonicalizeGitUrl`.
3693
3693
  * @public
3694
3694
  */
3695
- declare const resolveProjectIdentityFromCandidates: (candidates: ProjectIdentityCandidates) => ResolvedIdentity | null;
3695
+ export declare const resolveProjectIdentityFromCandidates: (candidates: ProjectIdentityCandidates) => ResolvedIdentity | null;
3696
3696
  declare const ProjectIdentity_base: Context.ServiceClass<ProjectIdentity, "vitest-agent/ProjectIdentity", {
3697
3697
  readonly resolve: (workspaceRoot: string, options?: ResolveProjectIdentityOptions) => Effect.Effect<ResolvedIdentity, ProjectIdentityNotResolvableError>;
3698
3698
  }>;
@@ -3702,7 +3702,7 @@ declare const ProjectIdentity_base: Context.ServiceClass<ProjectIdentity, "vites
3702
3702
  * pre-built `ResolvedIdentity`.
3703
3703
  * @public
3704
3704
  */
3705
- declare class ProjectIdentity extends ProjectIdentity_base {}
3705
+ export declare class ProjectIdentity extends ProjectIdentity_base {}
3706
3706
  //#endregion
3707
3707
  //#region src/layers/ProjectIdentityLive.d.ts
3708
3708
  /**
@@ -3715,7 +3715,7 @@ declare class ProjectIdentity extends ProjectIdentity_base {}
3715
3715
  *
3716
3716
  * @public
3717
3717
  */
3718
- type CandidateContext = FileSystem.FileSystem | WorkspaceDiscovery | VitestAgentConfigFile | ChildProcessSpawner.ChildProcessSpawner;
3718
+ export type CandidateContext = FileSystem.FileSystem | WorkspaceDiscovery | VitestAgentConfigFile | ChildProcessSpawner.ChildProcessSpawner;
3719
3719
  /**
3720
3720
  * Live layer that wires the resolver into real I/O. Requires
3721
3721
  * `FileSystem`, `CommandExecutor`, `WorkspaceDiscovery`, and
@@ -3723,7 +3723,7 @@ type CandidateContext = FileSystem.FileSystem | WorkspaceDiscovery | VitestAgent
3723
3723
  * `NodeServices.layer` at the entry point.
3724
3724
  * @public
3725
3725
  */
3726
- declare const ProjectIdentityLive: Layer.Layer<ProjectIdentity, never, CandidateContext>;
3726
+ export declare const ProjectIdentityLive: Layer.Layer<ProjectIdentity, never, CandidateContext>;
3727
3727
  /**
3728
3728
  * Build a Test layer that returns a fixed `ResolvedIdentity` (or
3729
3729
  * fails with `ProjectIdentityNotResolvableError`). Use in unit tests
@@ -3731,7 +3731,7 @@ declare const ProjectIdentityLive: Layer.Layer<ProjectIdentity, never, Candidate
3731
3731
  * services.
3732
3732
  * @public
3733
3733
  */
3734
- declare const ProjectIdentityTest: (result: ResolvedIdentity | ProjectIdentityNotResolvableError) => Layer.Layer<ProjectIdentity, never, never>;
3734
+ export declare const ProjectIdentityTest: (result: ResolvedIdentity | ProjectIdentityNotResolvableError) => Layer.Layer<ProjectIdentity, never, never>;
3735
3735
  //#endregion
3736
3736
  //#region src/services/RunContext.d.ts
3737
3737
  declare const RunContext_base: Schema.Class<RunContext, Schema.Struct<{
@@ -3755,7 +3755,7 @@ declare const RunContext_base: Schema.Class<RunContext, Schema.Struct<{
3755
3755
  * and `Schema.encode(...)` for the SQLite row mapping.
3756
3756
  * @public
3757
3757
  */
3758
- declare class RunContext extends RunContext_base {}
3758
+ export declare class RunContext extends RunContext_base {}
3759
3759
  declare const AgentContext_base: Schema.Class<AgentContext, Schema.Struct<{
3760
3760
  readonly startGitBranch: Schema.NullOr<Schema.String>;
3761
3761
  readonly startGitCommitSha: Schema.NullOr<Schema.String>;
@@ -3767,7 +3767,7 @@ declare const AgentContext_base: Schema.Class<AgentContext, Schema.Struct<{
3767
3767
  * dirty-tree state and upstream tracking are per-run concerns.
3768
3768
  * @public
3769
3769
  */
3770
- declare class AgentContext extends AgentContext_base {}
3770
+ export declare class AgentContext extends AgentContext_base {}
3771
3771
  declare const RunContext$_base: Context.ServiceClass<RunContext$, "vitest-agent/RunContextService", {
3772
3772
  readonly captureRunContext: (cwd: string) => Effect.Effect<RunContext>;
3773
3773
  readonly captureAgentContext: (cwd: string) => Effect.Effect<AgentContext>;
@@ -3777,7 +3777,7 @@ declare const RunContext$_base: Context.ServiceClass<RunContext$, "vitest-agent/
3777
3777
  * returns whatever the test fixture passes.
3778
3778
  * @public
3779
3779
  */
3780
- declare class RunContext$ extends RunContext$_base {}
3780
+ export declare class RunContext$ extends RunContext$_base {}
3781
3781
  /**
3782
3782
  * Re-export the service tag under a less-collision-prone name. The
3783
3783
  * `RunContext` Schema.Class above shares its symbol-name with the
@@ -3786,9 +3786,9 @@ declare class RunContext$ extends RunContext$_base {}
3786
3786
  *
3787
3787
  * @public
3788
3788
  */
3789
- declare const RunContextService: typeof RunContext$;
3789
+ export declare const RunContextService: typeof RunContext$;
3790
3790
  /** @public */
3791
- type RunContextService = RunContext$;
3791
+ export type RunContextService = RunContext$;
3792
3792
  //#endregion
3793
3793
  //#region src/layers/RunContextLive.d.ts
3794
3794
  /**
@@ -3799,13 +3799,13 @@ type RunContextService = RunContext$;
3799
3799
  * constructs.
3800
3800
  * @public
3801
3801
  */
3802
- declare const RunContextLive: Layer.Layer<RunContextService, never, ChildProcessSpawner.ChildProcessSpawner>;
3802
+ export declare const RunContextLive: Layer.Layer<RunContextService, never, ChildProcessSpawner.ChildProcessSpawner>;
3803
3803
  /**
3804
3804
  * Build a Test layer that returns fixed `RunContext` and
3805
3805
  * `AgentContext` values regardless of `cwd`.
3806
3806
  * @public
3807
3807
  */
3808
- declare const RunContextTest: (fixture: {
3808
+ export declare const RunContextTest: (fixture: {
3809
3809
  readonly runContext: RunContext;
3810
3810
  readonly agentContext: AgentContext;
3811
3811
  }) => Layer.Layer<RunContextService, never, never>;
@@ -3825,7 +3825,7 @@ interface FormatTriageOptions {
3825
3825
  * replaced with empty defaults so the caller is guaranteed a string.
3826
3826
  * @public
3827
3827
  */
3828
- declare const formatTriageEffect: (options?: FormatTriageOptions) => Effect.Effect<string, never, DataReader>;
3828
+ export declare const formatTriageEffect: (options?: FormatTriageOptions) => Effect.Effect<string, never, DataReader>;
3829
3829
  //#endregion
3830
3830
  //#region src/lib/format-wrapup.d.ts
3831
3831
  /** @public */
@@ -3838,7 +3838,7 @@ interface FormatWrapupOptions {
3838
3838
  readonly userPromptHint?: string;
3839
3839
  }
3840
3840
  /** @public */
3841
- declare const formatWrapupEffect: (options: FormatWrapupOptions) => Effect.Effect<string, never, DataReader>;
3841
+ export declare const formatWrapupEffect: (options: FormatWrapupOptions) => Effect.Effect<string, never, DataReader>;
3842
3842
  //#endregion
3843
3843
  //#region src/migrations/0001_initial.d.ts
3844
3844
  /** @internal */
@@ -3867,11 +3867,11 @@ declare const migration$2: Effect.Effect<void, import("effect/unstable/sql/SqlEr
3867
3867
  //#endregion
3868
3868
  //#region src/schemas/ChannelEvent.d.ts
3869
3869
  /** @public */
3870
- declare const SessionOutcome: Schema.Literals<readonly ["succeeded", "blocked", "abandoned"]>;
3870
+ export declare const SessionOutcome: Schema.Literals<readonly ["succeeded", "blocked", "abandoned"]>;
3871
3871
  /** @public */
3872
- type SessionOutcome = typeof SessionOutcome.Type;
3872
+ export type SessionOutcome = typeof SessionOutcome.Type;
3873
3873
  /** @public */
3874
- declare const GoalsReadyEvent: Schema.Struct<{
3874
+ export declare const GoalsReadyEvent: Schema.Struct<{
3875
3875
  readonly type: Schema.Literal<"goals_ready">;
3876
3876
  readonly sessionId: Schema.Number;
3877
3877
  readonly goals: Schema.$Array<Schema.Struct<{
@@ -3881,9 +3881,9 @@ declare const GoalsReadyEvent: Schema.Struct<{
3881
3881
  }>>;
3882
3882
  }>;
3883
3883
  /** @public */
3884
- type GoalsReadyEvent = typeof GoalsReadyEvent.Type;
3884
+ export type GoalsReadyEvent = typeof GoalsReadyEvent.Type;
3885
3885
  /** @public */
3886
- declare const GoalAddedEvent: Schema.Struct<{
3886
+ export declare const GoalAddedEvent: Schema.Struct<{
3887
3887
  readonly type: Schema.Literal<"goal_added">;
3888
3888
  readonly sessionId: Schema.Number;
3889
3889
  readonly goal: Schema.Struct<{
@@ -3893,35 +3893,35 @@ declare const GoalAddedEvent: Schema.Struct<{
3893
3893
  }>;
3894
3894
  }>;
3895
3895
  /** @public */
3896
- type GoalAddedEvent = typeof GoalAddedEvent.Type;
3896
+ export type GoalAddedEvent = typeof GoalAddedEvent.Type;
3897
3897
  /** @public */
3898
- declare const GoalStartedEvent: Schema.Struct<{
3898
+ export declare const GoalStartedEvent: Schema.Struct<{
3899
3899
  readonly type: Schema.Literal<"goal_started">;
3900
3900
  readonly sessionId: Schema.Number;
3901
3901
  readonly goalId: Schema.Number;
3902
3902
  }>;
3903
3903
  /** @public */
3904
- type GoalStartedEvent = typeof GoalStartedEvent.Type;
3904
+ export type GoalStartedEvent = typeof GoalStartedEvent.Type;
3905
3905
  /** @public */
3906
- declare const GoalCompletedEvent: Schema.Struct<{
3906
+ export declare const GoalCompletedEvent: Schema.Struct<{
3907
3907
  readonly type: Schema.Literal<"goal_completed">;
3908
3908
  readonly sessionId: Schema.Number;
3909
3909
  readonly goalId: Schema.Number;
3910
3910
  readonly behaviorIds: Schema.$Array<Schema.Number>;
3911
3911
  }>;
3912
3912
  /** @public */
3913
- type GoalCompletedEvent = typeof GoalCompletedEvent.Type;
3913
+ export type GoalCompletedEvent = typeof GoalCompletedEvent.Type;
3914
3914
  /** @public */
3915
- declare const GoalAbandonedEvent: Schema.Struct<{
3915
+ export declare const GoalAbandonedEvent: Schema.Struct<{
3916
3916
  readonly type: Schema.Literal<"goal_abandoned">;
3917
3917
  readonly sessionId: Schema.Number;
3918
3918
  readonly goalId: Schema.Number;
3919
3919
  readonly reason: Schema.String;
3920
3920
  }>;
3921
3921
  /** @public */
3922
- type GoalAbandonedEvent = typeof GoalAbandonedEvent.Type;
3922
+ export type GoalAbandonedEvent = typeof GoalAbandonedEvent.Type;
3923
3923
  /** @public */
3924
- declare const BehaviorsReadyEvent: Schema.Struct<{
3924
+ export declare const BehaviorsReadyEvent: Schema.Struct<{
3925
3925
  readonly type: Schema.Literal<"behaviors_ready">;
3926
3926
  readonly sessionId: Schema.Number;
3927
3927
  readonly goalId: Schema.Number;
@@ -3932,9 +3932,9 @@ declare const BehaviorsReadyEvent: Schema.Struct<{
3932
3932
  }>>;
3933
3933
  }>;
3934
3934
  /** @public */
3935
- type BehaviorsReadyEvent = typeof BehaviorsReadyEvent.Type;
3935
+ export type BehaviorsReadyEvent = typeof BehaviorsReadyEvent.Type;
3936
3936
  /** @public */
3937
- declare const BehaviorAddedEvent: Schema.Struct<{
3937
+ export declare const BehaviorAddedEvent: Schema.Struct<{
3938
3938
  readonly type: Schema.Literal<"behavior_added">;
3939
3939
  readonly sessionId: Schema.Number;
3940
3940
  readonly goalId: Schema.Number;
@@ -3945,18 +3945,18 @@ declare const BehaviorAddedEvent: Schema.Struct<{
3945
3945
  }>;
3946
3946
  }>;
3947
3947
  /** @public */
3948
- type BehaviorAddedEvent = typeof BehaviorAddedEvent.Type;
3948
+ export type BehaviorAddedEvent = typeof BehaviorAddedEvent.Type;
3949
3949
  /** @public */
3950
- declare const BehaviorStartedEvent: Schema.Struct<{
3950
+ export declare const BehaviorStartedEvent: Schema.Struct<{
3951
3951
  readonly type: Schema.Literal<"behavior_started">;
3952
3952
  readonly sessionId: Schema.Number;
3953
3953
  readonly goalId: Schema.Number;
3954
3954
  readonly behaviorId: Schema.Number;
3955
3955
  }>;
3956
3956
  /** @public */
3957
- type BehaviorStartedEvent = typeof BehaviorStartedEvent.Type;
3957
+ export type BehaviorStartedEvent = typeof BehaviorStartedEvent.Type;
3958
3958
  /** @public */
3959
- declare const PhaseTransitionEvent: Schema.Struct<{
3959
+ export declare const PhaseTransitionEvent: Schema.Struct<{
3960
3960
  readonly type: Schema.Literal<"phase_transition">;
3961
3961
  readonly sessionId: Schema.Number;
3962
3962
  readonly goalId: Schema.Number;
@@ -3965,18 +3965,18 @@ declare const PhaseTransitionEvent: Schema.Struct<{
3965
3965
  readonly to: Schema.Literals<readonly ["spike", "red", "red.triangulate", "green", "green.fake-it", "refactor", "extended-red", "green-without-red"]>;
3966
3966
  }>;
3967
3967
  /** @public */
3968
- type PhaseTransitionEvent = typeof PhaseTransitionEvent.Type;
3968
+ export type PhaseTransitionEvent = typeof PhaseTransitionEvent.Type;
3969
3969
  /** @public */
3970
- declare const BehaviorCompletedEvent: Schema.Struct<{
3970
+ export declare const BehaviorCompletedEvent: Schema.Struct<{
3971
3971
  readonly type: Schema.Literal<"behavior_completed">;
3972
3972
  readonly sessionId: Schema.Number;
3973
3973
  readonly goalId: Schema.Number;
3974
3974
  readonly behaviorId: Schema.Number;
3975
3975
  }>;
3976
3976
  /** @public */
3977
- type BehaviorCompletedEvent = typeof BehaviorCompletedEvent.Type;
3977
+ export type BehaviorCompletedEvent = typeof BehaviorCompletedEvent.Type;
3978
3978
  /** @public */
3979
- declare const BehaviorAbandonedEvent: Schema.Struct<{
3979
+ export declare const BehaviorAbandonedEvent: Schema.Struct<{
3980
3980
  readonly type: Schema.Literal<"behavior_abandoned">;
3981
3981
  readonly sessionId: Schema.Number;
3982
3982
  readonly goalId: Schema.Number;
@@ -3984,9 +3984,9 @@ declare const BehaviorAbandonedEvent: Schema.Struct<{
3984
3984
  readonly reason: Schema.String;
3985
3985
  }>;
3986
3986
  /** @public */
3987
- type BehaviorAbandonedEvent = typeof BehaviorAbandonedEvent.Type;
3987
+ export type BehaviorAbandonedEvent = typeof BehaviorAbandonedEvent.Type;
3988
3988
  /** @public */
3989
- declare const BlockedEvent: Schema.Struct<{
3989
+ export declare const BlockedEvent: Schema.Struct<{
3990
3990
  readonly type: Schema.Literal<"blocked">;
3991
3991
  readonly sessionId: Schema.Number;
3992
3992
  readonly goalId: Schema.Number;
@@ -3995,18 +3995,18 @@ declare const BlockedEvent: Schema.Struct<{
3995
3995
  readonly failureSignatureHash: Schema.optional<Schema.String>;
3996
3996
  }>;
3997
3997
  /** @public */
3998
- type BlockedEvent = typeof BlockedEvent.Type;
3998
+ export type BlockedEvent = typeof BlockedEvent.Type;
3999
3999
  /** @public */
4000
- declare const SessionCompleteEvent: Schema.Struct<{
4000
+ export declare const SessionCompleteEvent: Schema.Struct<{
4001
4001
  readonly type: Schema.Literal<"session_complete">;
4002
4002
  readonly sessionId: Schema.Number;
4003
4003
  readonly goalIds: Schema.$Array<Schema.Number>;
4004
4004
  readonly outcome: Schema.Literals<readonly ["succeeded", "blocked", "abandoned"]>;
4005
4005
  }>;
4006
4006
  /** @public */
4007
- type SessionCompleteEvent = typeof SessionCompleteEvent.Type;
4007
+ export type SessionCompleteEvent = typeof SessionCompleteEvent.Type;
4008
4008
  /** @public */
4009
- declare const ChannelEvent: Schema.Union<readonly [Schema.Struct<{
4009
+ export declare const ChannelEvent: Schema.Union<readonly [Schema.Struct<{
4010
4010
  readonly type: Schema.Literal<"goals_ready">;
4011
4011
  readonly sessionId: Schema.Number;
4012
4012
  readonly goals: Schema.$Array<Schema.Struct<{
@@ -4091,7 +4091,7 @@ declare const ChannelEvent: Schema.Union<readonly [Schema.Struct<{
4091
4091
  readonly outcome: Schema.Literals<readonly ["succeeded", "blocked", "abandoned"]>;
4092
4092
  }>]>;
4093
4093
  /** @public */
4094
- type ChannelEvent = typeof ChannelEvent.Type;
4094
+ export type ChannelEvent = typeof ChannelEvent.Type;
4095
4095
  /**
4096
4096
  * Event types whose `goalId` and `sessionId` should be resolved
4097
4097
  * server-side from `behaviorId` (per spec: "not trusting the
@@ -4099,9 +4099,9 @@ type ChannelEvent = typeof ChannelEvent.Type;
4099
4099
  * which subset to enrich vs pass through.
4100
4100
  * @public
4101
4101
  */
4102
- declare const BehaviorScopedEventTypes: readonly ["behavior_started", "phase_transition", "behavior_completed", "behavior_abandoned", "blocked"];
4102
+ export declare const BehaviorScopedEventTypes: readonly ["behavior_started", "phase_transition", "behavior_completed", "behavior_abandoned", "blocked"];
4103
4103
  /** @public */
4104
- type BehaviorScopedEventType = (typeof BehaviorScopedEventTypes)[number];
4104
+ export type BehaviorScopedEventType = (typeof BehaviorScopedEventTypes)[number];
4105
4105
  //#endregion
4106
4106
  //#region src/schemas/ConsoleLeaks.d.ts
4107
4107
  /**
@@ -4109,7 +4109,7 @@ type BehaviorScopedEventType = (typeof BehaviorScopedEventTypes)[number];
4109
4109
  * (one `console.*` call), not lines.
4110
4110
  * @public
4111
4111
  */
4112
- declare const ConsoleLeakFile: Schema.Struct<{
4112
+ export declare const ConsoleLeakFile: Schema.Struct<{
4113
4113
  readonly file: Schema.String;
4114
4114
  readonly stdout: Schema.Number;
4115
4115
  readonly stderr: Schema.Number;
@@ -4117,7 +4117,7 @@ declare const ConsoleLeakFile: Schema.Struct<{
4117
4117
  readonly sample: Schema.optional<Schema.String>;
4118
4118
  }>;
4119
4119
  /** @public */
4120
- type ConsoleLeakFile = typeof ConsoleLeakFile.Type;
4120
+ export type ConsoleLeakFile = typeof ConsoleLeakFile.Type;
4121
4121
  /**
4122
4122
  * Summary of console output logged inside tests that did NOT pass. Kept
4123
4123
  * separate from `total`/`byFile` so it can never be mistaken for a leak in a
@@ -4126,12 +4126,12 @@ type ConsoleLeakFile = typeof ConsoleLeakFile.Type;
4126
4126
  * genuine leaks on every red run.
4127
4127
  * @public
4128
4128
  */
4129
- declare const ConsoleLeaksFromFailingTests: Schema.Struct<{
4129
+ export declare const ConsoleLeaksFromFailingTests: Schema.Struct<{
4130
4130
  readonly total: Schema.Number;
4131
4131
  readonly files: Schema.Number;
4132
4132
  }>;
4133
4133
  /** @public */
4134
- type ConsoleLeaksFromFailingTests = typeof ConsoleLeaksFromFailingTests.Type;
4134
+ export type ConsoleLeaksFromFailingTests = typeof ConsoleLeaksFromFailingTests.Type;
4135
4135
  /**
4136
4136
  * Aggregate stray-console-output signal for a single test run. Omitted from
4137
4137
  * a report entirely when the run produced no user console output at all
@@ -4141,7 +4141,7 @@ type ConsoleLeaksFromFailingTests = typeof ConsoleLeaksFromFailingTests.Type;
4141
4141
  * visible without polluting the actionable leak signal (issue #263).
4142
4142
  * @public
4143
4143
  */
4144
- declare const ConsoleLeaks: Schema.Struct<{
4144
+ export declare const ConsoleLeaks: Schema.Struct<{
4145
4145
  readonly total: Schema.Number;
4146
4146
  readonly byFile: Schema.$Array<Schema.Struct<{
4147
4147
  readonly file: Schema.String;
@@ -4157,7 +4157,7 @@ declare const ConsoleLeaks: Schema.Struct<{
4157
4157
  }>>;
4158
4158
  }>;
4159
4159
  /** @public */
4160
- type ConsoleLeaks = typeof ConsoleLeaks.Type;
4160
+ export type ConsoleLeaks = typeof ConsoleLeaks.Type;
4161
4161
  //#endregion
4162
4162
  //#region src/schemas/CoverageLevel.d.ts
4163
4163
  declare const CoverageLevel_base: Schema.Class<CoverageLevel, Schema.Struct<{
@@ -4172,7 +4172,7 @@ declare const CoverageLevel_base: Schema.Class<CoverageLevel, Schema.Struct<{
4172
4172
  * perFile flag. Extend this class to define custom named presets.
4173
4173
  * @public
4174
4174
  */
4175
- declare class CoverageLevel extends CoverageLevel_base {
4175
+ export declare class CoverageLevel extends CoverageLevel_base {
4176
4176
  /** No enforcement — all metrics at 0%. */
4177
4177
  static readonly none: CoverageLevel;
4178
4178
  /** Minimal coverage bar — all metrics at 50%. */
@@ -4203,24 +4203,24 @@ declare class CoverageLevel extends CoverageLevel_base {
4203
4203
  }
4204
4204
  /** The named preset identifiers. * @public
4205
4205
  */
4206
- type CoverageLevelName = "none" | "basic" | "standard" | "strict" | "full";
4206
+ export type CoverageLevelName = "none" | "basic" | "standard" | "strict" | "full";
4207
4207
  /** Accepted input forms: a preset name string or a CoverageLevel instance. * @public
4208
4208
  */
4209
- type CoverageInput = CoverageLevelName | CoverageLevel;
4209
+ export type CoverageInput = CoverageLevelName | CoverageLevel;
4210
4210
  /**
4211
4211
  * Resolves a CoverageInput (preset name or CoverageLevel instance) to a
4212
4212
  * CoverageLevel. When input is undefined, returns the named fallback preset.
4213
4213
  * Throws if a string is provided that does not match a known preset name.
4214
4214
  * @public
4215
4215
  */
4216
- declare function resolveCoverageInput(input: CoverageInput | undefined, fallback: CoverageLevelName): CoverageLevel;
4216
+ export declare function resolveCoverageInput(input: CoverageInput | undefined, fallback: CoverageLevelName): CoverageLevel;
4217
4217
  /**
4218
4218
  * Validates that coverageTargets are not below coverageThresholds for any
4219
4219
  * metric, and that both agree on perFile. Throws a descriptive Error on
4220
4220
  * any violation.
4221
4221
  * @public
4222
4222
  */
4223
- declare function validateCoverageConfig(thresholds: CoverageLevel, targets: CoverageLevel): void;
4223
+ export declare function validateCoverageConfig(thresholds: CoverageLevel, targets: CoverageLevel): void;
4224
4224
  //#endregion
4225
4225
  //#region src/schemas/CoverageTargets.d.ts
4226
4226
  /**
@@ -4228,7 +4228,7 @@ declare function validateCoverageConfig(thresholds: CoverageLevel, targets: Cove
4228
4228
  * numeric targets per metric and the `100: true` shortcut.
4229
4229
  * @public
4230
4230
  */
4231
- declare const CoverageTargetsMetrics: Schema.Struct<{
4231
+ export declare const CoverageTargetsMetrics: Schema.Struct<{
4232
4232
  readonly lines: Schema.optional<Schema.Number>;
4233
4233
  readonly functions: Schema.optional<Schema.Number>;
4234
4234
  readonly branches: Schema.optional<Schema.Number>;
@@ -4236,7 +4236,7 @@ declare const CoverageTargetsMetrics: Schema.Struct<{
4236
4236
  readonly 100: Schema.optional<Schema.Literal<true>>;
4237
4237
  }>;
4238
4238
  /** @public */
4239
- type CoverageTargetsMetrics = typeof CoverageTargetsMetrics.Type;
4239
+ export type CoverageTargetsMetrics = typeof CoverageTargetsMetrics.Type;
4240
4240
  /**
4241
4241
  * Typed schema for the coverageTargets option.
4242
4242
  *
@@ -4252,7 +4252,7 @@ type CoverageTargetsMetrics = typeof CoverageTargetsMetrics.Type;
4252
4252
  * at key `"100"`.
4253
4253
  * @public
4254
4254
  */
4255
- declare const CoverageTargets: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Number, Schema.Literal<true>, Schema.Struct<{
4255
+ export declare const CoverageTargets: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Number, Schema.Literal<true>, Schema.Struct<{
4256
4256
  readonly lines: Schema.optional<Schema.Number>;
4257
4257
  readonly functions: Schema.optional<Schema.Number>;
4258
4258
  readonly branches: Schema.optional<Schema.Number>;
@@ -4260,7 +4260,7 @@ declare const CoverageTargets: Schema.$Record<Schema.String, Schema.Union<readon
4260
4260
  readonly 100: Schema.optional<Schema.Literal<true>>;
4261
4261
  }>]>>;
4262
4262
  /** @public */
4263
- type CoverageTargets = typeof CoverageTargets.Type;
4263
+ export type CoverageTargets = typeof CoverageTargets.Type;
4264
4264
  //#endregion
4265
4265
  //#region src/schemas/Options.d.ts
4266
4266
  /**
@@ -4278,13 +4278,13 @@ type CoverageTargets = typeof CoverageTargets.Type;
4278
4278
  * annotations writer ships.
4279
4279
  * @public
4280
4280
  */
4281
- declare const ConsoleOutputs: Schema.Struct<{
4281
+ export declare const ConsoleOutputs: Schema.Struct<{
4282
4282
  readonly human: Schema.optional<Schema.Literals<readonly ["passthrough", "silent", "stream", "agent"]>>;
4283
4283
  readonly agent: Schema.optional<Schema.Literals<readonly ["passthrough", "silent", "agent"]>>;
4284
4284
  readonly ci: Schema.optional<Schema.Literals<readonly ["passthrough", "silent", "ci-annotations"]>>;
4285
4285
  }>;
4286
4286
  /** @public */
4287
- type ConsoleOutputs = typeof ConsoleOutputs.Type;
4287
+ export type ConsoleOutputs = typeof ConsoleOutputs.Type;
4288
4288
  /**
4289
4289
  * The 2.0 user-facing options for `AgentPlugin`.
4290
4290
  *
@@ -4294,7 +4294,7 @@ type ConsoleOutputs = typeof ConsoleOutputs.Type;
4294
4294
  * so the schema-decodable struct carries the three data-shaped fields.
4295
4295
  * @public
4296
4296
  */
4297
- declare const AgentPluginOptions: Schema.Struct<{
4297
+ export declare const AgentPluginOptions: Schema.Struct<{
4298
4298
  readonly console: Schema.optional<Schema.Struct<{
4299
4299
  readonly human: Schema.optional<Schema.Literals<readonly ["passthrough", "silent", "stream", "agent"]>>;
4300
4300
  readonly agent: Schema.optional<Schema.Literals<readonly ["passthrough", "silent", "agent"]>>;
@@ -4312,7 +4312,7 @@ declare const AgentPluginOptions: Schema.Struct<{
4312
4312
  }>]>>;
4313
4313
  }>;
4314
4314
  /** @public */
4315
- type AgentPluginOptions = typeof AgentPluginOptions.Type;
4315
+ export type AgentPluginOptions = typeof AgentPluginOptions.Type;
4316
4316
  /**
4317
4317
  * Reporter-implementation options.
4318
4318
  *
@@ -4324,16 +4324,16 @@ type AgentPluginOptions = typeof AgentPluginOptions.Type;
4324
4324
  * (currently only `projectFilter` for per-project scoping).
4325
4325
  * @public
4326
4326
  */
4327
- declare const AgentReporterOptions: Schema.Struct<{
4327
+ export declare const AgentReporterOptions: Schema.Struct<{
4328
4328
  /** Set by the plugin per-project. Filters reports to one project. */
4329
4329
  readonly projectFilter: Schema.optional<Schema.String>;
4330
4330
  }>;
4331
4331
  /** @public */
4332
- type AgentReporterOptions = typeof AgentReporterOptions.Type;
4332
+ export type AgentReporterOptions = typeof AgentReporterOptions.Type;
4333
4333
  //#endregion
4334
4334
  //#region src/schemas/turns/FileEditPayload.d.ts
4335
4335
  /** @public */
4336
- declare const FileEditPayload: Schema.Struct<{
4336
+ export declare const FileEditPayload: Schema.Struct<{
4337
4337
  readonly type: Schema.Literal<"file_edit">;
4338
4338
  readonly file_path: Schema.String;
4339
4339
  readonly edit_kind: Schema.Literals<readonly ["write", "edit", "multi_edit"]>;
@@ -4342,55 +4342,55 @@ declare const FileEditPayload: Schema.Struct<{
4342
4342
  readonly diff: Schema.optional<Schema.String>;
4343
4343
  }>;
4344
4344
  /** @public */
4345
- type FileEditPayload = typeof FileEditPayload.Type;
4345
+ export type FileEditPayload = typeof FileEditPayload.Type;
4346
4346
  //#endregion
4347
4347
  //#region src/schemas/turns/HookFirePayload.d.ts
4348
4348
  /** @public */
4349
- declare const HookFirePayload: Schema.Struct<{
4349
+ export declare const HookFirePayload: Schema.Struct<{
4350
4350
  readonly type: Schema.Literal<"hook_fire">;
4351
4351
  readonly hook_kind: Schema.Literals<readonly ["SessionStart", "SessionEnd", "Stop", "StopFailure", "SubagentStart", "SubagentStop", "PreCompact", "PostCompact", "PreToolUse", "PostToolUse", "PostToolUseFailure", "UserPromptSubmit", "FileChanged"]>;
4352
4352
  readonly chat_id: Schema.optional<Schema.String>;
4353
4353
  readonly previous_record_failures: Schema.optional<Schema.$Array<Schema.String>>;
4354
4354
  }>;
4355
4355
  /** @public */
4356
- type HookFirePayload = typeof HookFirePayload.Type;
4356
+ export type HookFirePayload = typeof HookFirePayload.Type;
4357
4357
  //#endregion
4358
4358
  //#region src/schemas/turns/HypothesisPayload.d.ts
4359
4359
  /** @public */
4360
- declare const HypothesisPayload: Schema.Struct<{
4360
+ export declare const HypothesisPayload: Schema.Struct<{
4361
4361
  readonly type: Schema.Literal<"hypothesis">;
4362
4362
  readonly content: Schema.String;
4363
4363
  readonly cited_test_error_id: Schema.optional<Schema.Number>;
4364
4364
  readonly cited_stack_frame_id: Schema.optional<Schema.Number>;
4365
4365
  }>;
4366
4366
  /** @public */
4367
- type HypothesisPayload = typeof HypothesisPayload.Type;
4367
+ export type HypothesisPayload = typeof HypothesisPayload.Type;
4368
4368
  //#endregion
4369
4369
  //#region src/schemas/turns/NotePayload.d.ts
4370
4370
  /** @public */
4371
- declare const NotePayload: Schema.Struct<{
4371
+ export declare const NotePayload: Schema.Struct<{
4372
4372
  readonly type: Schema.Literal<"note">;
4373
4373
  readonly scope: Schema.String;
4374
4374
  readonly title: Schema.optional<Schema.String>;
4375
4375
  readonly content: Schema.String;
4376
4376
  }>;
4377
4377
  /** @public */
4378
- type NotePayload = typeof NotePayload.Type;
4378
+ export type NotePayload = typeof NotePayload.Type;
4379
4379
  //#endregion
4380
4380
  //#region src/schemas/turns/ToolCallPayload.d.ts
4381
4381
  /** @public */
4382
- declare const ToolCallPayload: Schema.Struct<{
4382
+ export declare const ToolCallPayload: Schema.Struct<{
4383
4383
  readonly type: Schema.Literal<"tool_call">;
4384
4384
  readonly tool_name: Schema.String;
4385
4385
  readonly tool_input: Schema.Unknown;
4386
4386
  readonly tool_use_id: Schema.optional<Schema.String>;
4387
4387
  }>;
4388
4388
  /** @public */
4389
- type ToolCallPayload = typeof ToolCallPayload.Type;
4389
+ export type ToolCallPayload = typeof ToolCallPayload.Type;
4390
4390
  //#endregion
4391
4391
  //#region src/schemas/turns/ToolResultPayload.d.ts
4392
4392
  /** @public */
4393
- declare const ToolResultPayload: Schema.Struct<{
4393
+ export declare const ToolResultPayload: Schema.Struct<{
4394
4394
  readonly type: Schema.Literal<"tool_result">;
4395
4395
  readonly tool_name: Schema.String;
4396
4396
  readonly tool_use_id: Schema.optional<Schema.String>;
@@ -4399,21 +4399,21 @@ declare const ToolResultPayload: Schema.Struct<{
4399
4399
  readonly duration_ms: Schema.optional<Schema.Number>;
4400
4400
  }>;
4401
4401
  /** @public */
4402
- type ToolResultPayload = typeof ToolResultPayload.Type;
4402
+ export type ToolResultPayload = typeof ToolResultPayload.Type;
4403
4403
  //#endregion
4404
4404
  //#region src/schemas/turns/UserPromptPayload.d.ts
4405
4405
  /** @public */
4406
- declare const UserPromptPayload: Schema.Struct<{
4406
+ export declare const UserPromptPayload: Schema.Struct<{
4407
4407
  readonly type: Schema.Literal<"user_prompt">;
4408
4408
  readonly prompt: Schema.String;
4409
4409
  readonly cc_message_id: Schema.optional<Schema.String>;
4410
4410
  }>;
4411
4411
  /** @public */
4412
- type UserPromptPayload = typeof UserPromptPayload.Type;
4412
+ export type UserPromptPayload = typeof UserPromptPayload.Type;
4413
4413
  //#endregion
4414
4414
  //#region src/schemas/turns/index.d.ts
4415
4415
  /** @public */
4416
- declare const TurnPayload: Schema.Union<readonly [Schema.Struct<{
4416
+ export declare const TurnPayload: Schema.Union<readonly [Schema.Struct<{
4417
4417
  readonly type: Schema.Literal<"user_prompt">;
4418
4418
  readonly prompt: Schema.String;
4419
4419
  readonly cc_message_id: Schema.optional<Schema.String>;
@@ -4453,7 +4453,7 @@ declare const TurnPayload: Schema.Union<readonly [Schema.Struct<{
4453
4453
  readonly cited_stack_frame_id: Schema.optional<Schema.Number>;
4454
4454
  }>]>;
4455
4455
  /** @public */
4456
- type TurnPayload = typeof TurnPayload.Type;
4456
+ export type TurnPayload = typeof TurnPayload.Type;
4457
4457
  //#endregion
4458
4458
  //#region src/services/idempotency.d.ts
4459
4459
  /**
@@ -4462,9 +4462,9 @@ type TurnPayload = typeof TurnPayload.Type;
4462
4462
  * string, both of which could collide with caller-supplied values.
4463
4463
  * @public
4464
4464
  */
4465
- declare const IDEMPOTENCY_ROOT_SENTINEL = "__ROOT__";
4465
+ export declare const IDEMPOTENCY_ROOT_SENTINEL = "__ROOT__";
4466
4466
  /** @public */
4467
- interface IdempotencyInput {
4467
+ export interface IdempotencyInput {
4468
4468
  readonly agentType: string;
4469
4469
  readonly parentAgentId: string | null;
4470
4470
  readonly clientNonce: string;
@@ -4483,14 +4483,14 @@ interface IdempotencyInput {
4483
4483
  * future debugging.
4484
4484
  * @public
4485
4485
  */
4486
- declare const deriveIdempotencyKey: (input: IdempotencyInput) => string;
4486
+ export declare const deriveIdempotencyKey: (input: IdempotencyInput) => string;
4487
4487
  //#endregion
4488
4488
  //#region src/sql/assemblers.d.ts
4489
4489
  /**
4490
4490
  * Minimal shape of a test_runs aggregation row used to build the manifest.
4491
4491
  * @public
4492
4492
  */
4493
- interface ManifestRow {
4493
+ export interface ManifestRow {
4494
4494
  project: string;
4495
4495
  sub_project: string | null;
4496
4496
  timestamp: string;
@@ -4500,7 +4500,7 @@ interface ManifestRow {
4500
4500
  * Minimal shape of a test_history row used to build a history record.
4501
4501
  * @public
4502
4502
  */
4503
- interface HistoryRow {
4503
+ export interface HistoryRow {
4504
4504
  module_path: string;
4505
4505
  full_name: string;
4506
4506
  timestamp: string;
@@ -4516,7 +4516,7 @@ interface HistoryRow {
4516
4516
  * into the `tests` array format.
4517
4517
  * @public
4518
4518
  */
4519
- interface AssembledHistoryRecord {
4519
+ export interface AssembledHistoryRecord {
4520
4520
  [compositeKey: string]: {
4521
4521
  modulePath: string;
4522
4522
  fullName: string;
@@ -4530,7 +4530,7 @@ interface AssembledHistoryRecord {
4530
4530
  * The `dbPath` is stored as `cacheDir` so CLI tools can locate the source.
4531
4531
  * @public
4532
4532
  */
4533
- declare function assembleManifest(rows: ManifestRow[], dbPath: string): CacheManifest;
4533
+ export declare function assembleManifest(rows: ManifestRow[], dbPath: string): CacheManifest;
4534
4534
  /**
4535
4535
  * Groups test_history rows by the composite (module_path, full_name) key
4536
4536
  * into a keyed record.
@@ -4544,7 +4544,7 @@ declare function assembleManifest(rows: ManifestRow[], dbPath: string): CacheMan
4544
4544
  * (matching the `TestRun` schema constraint).
4545
4545
  * @public
4546
4546
  */
4547
- declare function assembleHistoryRecord(rows: HistoryRow[]): AssembledHistoryRecord;
4547
+ export declare function assembleHistoryRecord(rows: HistoryRow[]): AssembledHistoryRecord;
4548
4548
  //#endregion
4549
4549
  //#region src/utils/ansi.d.ts
4550
4550
  /**
@@ -4552,7 +4552,7 @@ declare function assembleHistoryRecord(rows: HistoryRow[]): AssembledHistoryReco
4552
4552
  *
4553
4553
  * @internal
4554
4554
  */
4555
- interface AnsiOptions {
4555
+ export interface AnsiOptions {
4556
4556
  noColor?: boolean;
4557
4557
  }
4558
4558
  /**
@@ -4574,7 +4574,7 @@ interface AnsiOptions {
4574
4574
  * @see {@link https://no-color.org/ | NO_COLOR convention}
4575
4575
  * @internal
4576
4576
  */
4577
- declare function ansi(text: string, color: string, options?: AnsiOptions): string;
4577
+ export declare function ansi(text: string, color: string, options?: AnsiOptions): string;
4578
4578
  /**
4579
4579
  * Strip all ANSI escape codes from a string.
4580
4580
  *
@@ -4583,7 +4583,7 @@ declare function ansi(text: string, color: string, options?: AnsiOptions): strin
4583
4583
  *
4584
4584
  * @internal
4585
4585
  */
4586
- declare function stripAnsi(text: string): string;
4586
+ export declare function stripAnsi(text: string): string;
4587
4587
  //#endregion
4588
4588
  //#region src/utils/build-report.d.ts
4589
4589
  /**
@@ -4595,7 +4595,7 @@ declare function stripAnsi(text: string): string;
4595
4595
  *
4596
4596
  * @public
4597
4597
  */
4598
- interface VitestParsedStack {
4598
+ export interface VitestParsedStack {
4599
4599
  method: string;
4600
4600
  file: string;
4601
4601
  line: number;
@@ -4609,7 +4609,7 @@ interface VitestParsedStack {
4609
4609
  *
4610
4610
  * @public
4611
4611
  */
4612
- interface VitestTestError {
4612
+ export interface VitestTestError {
4613
4613
  message: string;
4614
4614
  diff?: string;
4615
4615
  stacks?: Array<string | VitestParsedStack>;
@@ -4622,7 +4622,7 @@ interface VitestTestError {
4622
4622
  *
4623
4623
  * @public
4624
4624
  */
4625
- interface VitestTestResult {
4625
+ export interface VitestTestResult {
4626
4626
  state: string;
4627
4627
  errors?: ReadonlyArray<VitestTestError>;
4628
4628
  }
@@ -4631,7 +4631,7 @@ interface VitestTestResult {
4631
4631
  *
4632
4632
  * @public
4633
4633
  */
4634
- interface VitestTestDiagnostic {
4634
+ export interface VitestTestDiagnostic {
4635
4635
  duration: number;
4636
4636
  flaky: boolean;
4637
4637
  slow: boolean;
@@ -4646,7 +4646,7 @@ interface VitestTestDiagnostic {
4646
4646
  *
4647
4647
  * @public
4648
4648
  */
4649
- interface VitestTestCase {
4649
+ export interface VitestTestCase {
4650
4650
  type: "test";
4651
4651
  name: string;
4652
4652
  fullName: string;
@@ -4661,7 +4661,7 @@ interface VitestTestCase {
4661
4661
  *
4662
4662
  * @public
4663
4663
  */
4664
- interface VitestModuleDiagnostic {
4664
+ export interface VitestModuleDiagnostic {
4665
4665
  duration: number;
4666
4666
  }
4667
4667
  /**
@@ -4669,7 +4669,7 @@ interface VitestModuleDiagnostic {
4669
4669
  *
4670
4670
  * @public
4671
4671
  */
4672
- interface VitestModuleError {
4672
+ export interface VitestModuleError {
4673
4673
  message: string;
4674
4674
  stacks?: Array<string | VitestParsedStack>;
4675
4675
  }
@@ -4678,7 +4678,7 @@ interface VitestModuleError {
4678
4678
  *
4679
4679
  * @public
4680
4680
  */
4681
- interface VitestTestSuite {
4681
+ export interface VitestTestSuite {
4682
4682
  type: "suite";
4683
4683
  name: string;
4684
4684
  fullName: string;
@@ -4713,7 +4713,7 @@ interface VitestTestSuite {
4713
4713
  *
4714
4714
  * @public
4715
4715
  */
4716
- interface VitestTestModule {
4716
+ export interface VitestTestModule {
4717
4717
  type: "module";
4718
4718
  moduleId: string;
4719
4719
  relativeModuleId: string;
@@ -4746,7 +4746,7 @@ interface VitestTestModule {
4746
4746
  *
4747
4747
  * @public
4748
4748
  */
4749
- declare function buildAgentReport(testModules: ReadonlyArray<VitestTestModule>, unhandledErrors: ReadonlyArray<VitestModuleError>, reason: "passed" | "failed" | "interrupted", options: {
4749
+ export declare function buildAgentReport(testModules: ReadonlyArray<VitestTestModule>, unhandledErrors: ReadonlyArray<VitestModuleError>, reason: "passed" | "failed" | "interrupted", options: {
4750
4750
  readonly omitPassingTests?: boolean;
4751
4751
  }, projectName?: string): AgentReport;
4752
4752
  /**
@@ -4763,7 +4763,7 @@ declare function buildAgentReport(testModules: ReadonlyArray<VitestTestModule>,
4763
4763
  * @returns the number of modules in `report.failed` with no failed test case
4764
4764
  * @public
4765
4765
  */
4766
- declare const countSuiteFailures: (report: Pick<AgentReport, "failed">) => number;
4766
+ export declare const countSuiteFailures: (report: Pick<AgentReport, "failed">) => number;
4767
4767
  //#endregion
4768
4768
  //#region src/utils/canonicalize-git-url.d.ts
4769
4769
  /**
@@ -4786,7 +4786,7 @@ declare const countSuiteFailures: (report: Pick<AgentReport, "failed">) => numbe
4786
4786
  * host like `github.com` is not a project identity.
4787
4787
  * @public
4788
4788
  */
4789
- declare const canonicalizeGitUrl: (raw: string) => string | null;
4789
+ export declare const canonicalizeGitUrl: (raw: string) => string | null;
4790
4790
  /**
4791
4791
  * Convert a (possibly raw) git URL to the filesystem-safe `project_key`
4792
4792
  * form. The canonical `host/path` is mapped 1:1 to `host__path` so it
@@ -4794,7 +4794,7 @@ declare const canonicalizeGitUrl: (raw: string) => string | null;
4794
4794
  * `$XDG_DATA_HOME/vitest-agent/`.
4795
4795
  * @public
4796
4796
  */
4797
- declare const gitUrlToProjectKey: (raw: string) => string | null;
4797
+ export declare const gitUrlToProjectKey: (raw: string) => string | null;
4798
4798
  //#endregion
4799
4799
  //#region src/utils/classify-test.d.ts
4800
4800
  /**
@@ -4805,7 +4805,7 @@ declare const gitUrlToProjectKey: (raw: string) => string | null;
4805
4805
  * @returns The test's classification
4806
4806
  * @public
4807
4807
  */
4808
- declare function classifyTest(current: "passed" | "failed", priorRuns: ReadonlyArray<{
4808
+ export declare function classifyTest(current: "passed" | "failed", priorRuns: ReadonlyArray<{
4809
4809
  state: string;
4810
4810
  }>): TestClassification;
4811
4811
  //#endregion
@@ -4828,7 +4828,7 @@ declare function classifyTest(current: "passed" | "failed", priorRuns: ReadonlyA
4828
4828
  *
4829
4829
  * @public
4830
4830
  */
4831
- declare const coerceErrorText: (value: unknown) => string | undefined;
4831
+ export declare const coerceErrorText: (value: unknown) => string | undefined;
4832
4832
  /**
4833
4833
  * Read a named field off an unknown error-like value and coerce it with
4834
4834
  * {@link coerceErrorText}, guarding the property access itself. A live getter
@@ -4843,7 +4843,7 @@ declare const coerceErrorText: (value: unknown) => string | undefined;
4843
4843
  *
4844
4844
  * @public
4845
4845
  */
4846
- declare const coerceErrorField: (source: unknown, key: string) => string | undefined;
4846
+ export declare const coerceErrorField: (source: unknown, key: string) => string | undefined;
4847
4847
  //#endregion
4848
4848
  //#region src/utils/compress-lines.d.ts
4849
4849
  /**
@@ -4872,7 +4872,7 @@ declare const coerceErrorField: (source: unknown, key: string) => string | undef
4872
4872
  *
4873
4873
  * @public
4874
4874
  */
4875
- declare function compressLines(lines: number[]): string;
4875
+ export declare function compressLines(lines: number[]): string;
4876
4876
  //#endregion
4877
4877
  //#region src/utils/compute-trend.d.ts
4878
4878
  /**
@@ -4883,7 +4883,7 @@ declare function compressLines(lines: number[]): string;
4883
4883
  * is stable for the same logical configuration.
4884
4884
  * @public
4885
4885
  */
4886
- declare function hashTargets(targets: ResolvedThresholds | undefined): string | undefined;
4886
+ export declare function hashTargets(targets: ResolvedThresholds | undefined): string | undefined;
4887
4887
  /**
4888
4888
  * Compute a new trend entry and return the updated trend record.
4889
4889
  *
@@ -4891,12 +4891,12 @@ declare function hashTargets(targets: ResolvedThresholds | undefined): string |
4891
4891
  * cleared and the new entry becomes the first data point.
4892
4892
  * @public
4893
4893
  */
4894
- declare function computeTrend(current: CoverageTotals, existing: TrendRecord | undefined, targets: ResolvedThresholds | undefined): TrendRecord;
4894
+ export declare function computeTrend(current: CoverageTotals, existing: TrendRecord | undefined, targets: ResolvedThresholds | undefined): TrendRecord;
4895
4895
  /**
4896
4896
  * Get the overall direction from recent entries.
4897
4897
  * @public
4898
4898
  */
4899
- declare function getRecentDirection(record: TrendRecord, count?: number): {
4899
+ export declare function getRecentDirection(record: TrendRecord, count?: number): {
4900
4900
  direction: "improving" | "regressing" | "stable";
4901
4901
  runCount: number;
4902
4902
  };
@@ -4907,7 +4907,7 @@ declare function getRecentDirection(record: TrendRecord, count?: number): {
4907
4907
  * when the write happened inside one). Fed to buildConsoleLeaks.
4908
4908
  * @public
4909
4909
  */
4910
- interface ConsoleLeakEntry {
4910
+ export interface ConsoleLeakEntry {
4911
4911
  readonly file: string;
4912
4912
  readonly test?: string;
4913
4913
  readonly type: "stdout" | "stderr";
@@ -4931,7 +4931,7 @@ interface ConsoleLeakEntry {
4931
4931
  * `undefined` only when there is no output at all, non-failing or failing.
4932
4932
  * @public
4933
4933
  */
4934
- declare function buildConsoleLeaks(entries: ReadonlyArray<ConsoleLeakEntry>): ConsoleLeaks | undefined;
4934
+ export declare function buildConsoleLeaks(entries: ReadonlyArray<ConsoleLeakEntry>): ConsoleLeaks | undefined;
4935
4935
  /**
4936
4936
  * Structural subset of a Vitest runner task (File / Suite / Test) carrying
4937
4937
  * captured console output. Modeled locally so this util needs no `vitest`
@@ -4940,7 +4940,7 @@ declare function buildConsoleLeaks(entries: ReadonlyArray<ConsoleLeakEntry>): Co
4940
4940
  * reporter stripping in agent mode.
4941
4941
  * @public
4942
4942
  */
4943
- interface ConsoleLeakTask {
4943
+ export interface ConsoleLeakTask {
4944
4944
  readonly type?: string;
4945
4945
  readonly name?: string;
4946
4946
  readonly fullTestName?: string;
@@ -4967,7 +4967,7 @@ interface ConsoleLeakTask {
4967
4967
  * enclosing file itself failed (e.g. a collection/load error).
4968
4968
  * @public
4969
4969
  */
4970
- declare function collectConsoleLeakEntries(files: ReadonlyArray<ConsoleLeakTask>): ConsoleLeakEntry[];
4970
+ export declare function collectConsoleLeakEntries(files: ReadonlyArray<ConsoleLeakTask>): ConsoleLeakEntry[];
4971
4971
  //#endregion
4972
4972
  //#region src/utils/detect-non-default-discover-strategy.d.ts
4973
4973
  /**
@@ -4984,7 +4984,7 @@ declare function collectConsoleLeakEntries(files: ReadonlyArray<ConsoleLeakTask>
4984
4984
  * false negative would produce a confidently wrong deny.
4985
4985
  * @public
4986
4986
  */
4987
- declare function detectNonDefaultDiscoverStrategy(source: string): boolean;
4987
+ export declare function detectNonDefaultDiscoverStrategy(source: string): boolean;
4988
4988
  //#endregion
4989
4989
  //#region src/utils/detect-pm.d.ts
4990
4990
  /**
@@ -5015,7 +5015,7 @@ declare function detectNonDefaultDiscoverStrategy(source: string): boolean;
5015
5015
  *
5016
5016
  * @internal
5017
5017
  */
5018
- interface FileSystemAdapter {
5018
+ export interface FileSystemAdapter {
5019
5019
  readFile(path: string): Promise<string>;
5020
5020
  exists(path: string): Promise<boolean>;
5021
5021
  }
@@ -5035,7 +5035,7 @@ interface FileSystemAdapter {
5035
5035
  *
5036
5036
  * @internal
5037
5037
  */
5038
- declare function detectPackageManager(root: string, fs: FileSystemAdapter): Promise<PackageManager | null>;
5038
+ export declare function detectPackageManager(root: string, fs: FileSystemAdapter): Promise<PackageManager | null>;
5039
5039
  /**
5040
5040
  * Return the vitest run command for the given package manager.
5041
5041
  *
@@ -5046,7 +5046,7 @@ declare function detectPackageManager(root: string, fs: FileSystemAdapter): Prom
5046
5046
  *
5047
5047
  * @internal
5048
5048
  */
5049
- declare function getRunCommand(pm: PackageManager | null): string;
5049
+ export declare function getRunCommand(pm: PackageManager | null): string;
5050
5050
  //#endregion
5051
5051
  //#region src/utils/detect-timeout.d.ts
5052
5052
  /**
@@ -5055,7 +5055,7 @@ declare function getRunCommand(pm: PackageManager | null): string;
5055
5055
  * "timeout".
5056
5056
  * @public
5057
5057
  */
5058
- declare const isTimeoutError: (error: {
5058
+ export declare const isTimeoutError: (error: {
5059
5059
  message?: string;
5060
5060
  name?: string;
5061
5061
  }) => boolean;
@@ -5068,17 +5068,17 @@ declare const isTimeoutError: (error: {
5068
5068
  * no-ops.
5069
5069
  * @public
5070
5070
  */
5071
- declare function ensureMigrated(dbPath: string, logLevel?: LogLevel.LogLevel, logFile?: string): Promise<void>;
5071
+ export declare function ensureMigrated(dbPath: string, logLevel?: LogLevel.LogLevel, logFile?: string): Promise<void>;
5072
5072
  /**
5073
5073
  * Reset the migration cache. Test-only.
5074
5074
  *
5075
5075
  * @internal
5076
5076
  */
5077
- declare function _resetMigrationCacheForTesting(): void;
5077
+ export declare function _resetMigrationCacheForTesting(): void;
5078
5078
  //#endregion
5079
5079
  //#region src/utils/failure-signature.d.ts
5080
5080
  /** @public */
5081
- interface FailureSignatureInput {
5081
+ export interface FailureSignatureInput {
5082
5082
  readonly error_name: string;
5083
5083
  readonly assertion_message: string;
5084
5084
  readonly top_frame_function_name: string;
@@ -5086,9 +5086,9 @@ interface FailureSignatureInput {
5086
5086
  readonly top_frame_raw_line?: number;
5087
5087
  }
5088
5088
  /** @public */
5089
- declare const normalizeAssertionShape: (message: string) => string | null;
5089
+ export declare const normalizeAssertionShape: (message: string) => string | null;
5090
5090
  /** @public */
5091
- declare const computeFailureSignature: (input: FailureSignatureInput) => string;
5091
+ export declare const computeFailureSignature: (input: FailureSignatureInput) => string;
5092
5092
  //#endregion
5093
5093
  //#region src/utils/format-console.d.ts
5094
5094
  /**
@@ -5096,7 +5096,7 @@ declare const computeFailureSignature: (input: FailureSignatureInput) => string;
5096
5096
  *
5097
5097
  * @internal
5098
5098
  */
5099
- interface ConsoleFormatOptions {
5099
+ export interface ConsoleFormatOptions {
5100
5100
  /** Output verbosity: `"failures"` (default), `"full"`, or `"silent"`. */
5101
5101
  consoleOutput: "failures" | "full" | "silent";
5102
5102
  /** Maximum number of low-coverage files to show in console output. */
@@ -5132,7 +5132,7 @@ interface ConsoleFormatOptions {
5132
5132
  *
5133
5133
  * @internal
5134
5134
  */
5135
- declare function getWorstMetric(f: FileCoverageReport): {
5135
+ export declare function getWorstMetric(f: FileCoverageReport): {
5136
5136
  label: string;
5137
5137
  pct: number;
5138
5138
  };
@@ -5146,7 +5146,7 @@ declare function getWorstMetric(f: FileCoverageReport): {
5146
5146
  *
5147
5147
  * @internal
5148
5148
  */
5149
- declare function relativePath(filePath: string, cwd?: string): string;
5149
+ export declare function relativePath(filePath: string, cwd?: string): string;
5150
5150
  /**
5151
5151
  * Determine the output tier based on test results and coverage state.
5152
5152
  *
@@ -5156,7 +5156,7 @@ declare function relativePath(filePath: string, cwd?: string): string;
5156
5156
  *
5157
5157
  * @internal
5158
5158
  */
5159
- declare function determineTier(report: AgentReport): "green" | "yellow" | "red";
5159
+ export declare function determineTier(report: AgentReport): "green" | "yellow" | "red";
5160
5160
  /**
5161
5161
  * Format an {@link (AgentReport:variable)} as compact, actionable console markdown.
5162
5162
  *
@@ -5179,7 +5179,7 @@ declare function determineTier(report: AgentReport): "green" | "yellow" | "red";
5179
5179
  *
5180
5180
  * @internal
5181
5181
  */
5182
- declare function formatConsoleMarkdown(report: AgentReport, options: ConsoleFormatOptions): string;
5182
+ export declare function formatConsoleMarkdown(report: AgentReport, options: ConsoleFormatOptions): string;
5183
5183
  //#endregion
5184
5184
  //#region src/utils/format-fatal-error.d.ts
5185
5185
  /**
@@ -5193,7 +5193,7 @@ declare function formatConsoleMarkdown(report: AgentReport, options: ConsoleForm
5193
5193
  *
5194
5194
  * @public
5195
5195
  */
5196
- declare function formatFatalError(err: unknown): string;
5196
+ export declare function formatFatalError(err: unknown): string;
5197
5197
  //#endregion
5198
5198
  //#region src/utils/format-gfm.d.ts
5199
5199
  /**
@@ -5218,7 +5218,7 @@ declare function formatFatalError(err: unknown): string;
5218
5218
  *
5219
5219
  * @public
5220
5220
  */
5221
- declare function formatGfm(reports: AgentReport[]): string;
5221
+ export declare function formatGfm(reports: AgentReport[]): string;
5222
5222
  //#endregion
5223
5223
  //#region src/utils/format-scoped-coverage-note.d.ts
5224
5224
  /**
@@ -5239,11 +5239,11 @@ declare function formatGfm(reports: AgentReport[]): string;
5239
5239
  * @returns the note text, e.g. `"Coverage thresholds skipped: partial run (2 of 47 test files)"`
5240
5240
  * @public
5241
5241
  */
5242
- declare function formatScopedCoverageNote(testedFileCount: number, totalFileCount?: number): string;
5242
+ export declare function formatScopedCoverageNote(testedFileCount: number, totalFileCount?: number): string;
5243
5243
  //#endregion
5244
5244
  //#region src/utils/function-boundary.d.ts
5245
5245
  /** @public */
5246
- interface FunctionBoundary {
5246
+ export interface FunctionBoundary {
5247
5247
  readonly line: number;
5248
5248
  readonly name: string;
5249
5249
  }
@@ -5256,15 +5256,15 @@ interface FunctionBoundary {
5256
5256
  * casts are all accepted.
5257
5257
  * @public
5258
5258
  */
5259
- declare const findFunctionBoundary: (source: string, line: number) => FunctionBoundary | null;
5259
+ export declare const findFunctionBoundary: (source: string, line: number) => FunctionBoundary | null;
5260
5260
  //#endregion
5261
5261
  //#region src/utils/hyperlink.d.ts
5262
5262
  /** @public */
5263
- interface Osc8Options {
5263
+ export interface Osc8Options {
5264
5264
  readonly enabled: boolean;
5265
5265
  }
5266
5266
  /** @public */
5267
- declare const osc8: (url: string, label: string, options: Osc8Options) => string;
5267
+ export declare const osc8: (url: string, label: string, options: Osc8Options) => string;
5268
5268
  //#endregion
5269
5269
  //#region src/utils/match-vitest-command.d.ts
5270
5270
  /**
@@ -5274,7 +5274,7 @@ declare const osc8: (url: string, label: string, options: Osc8Options) => string
5274
5274
  * (computed once per project and cached by the sidecar).
5275
5275
  * @public
5276
5276
  */
5277
- declare const isVitestInvocation: (command: string, vitestScripts: ReadonlySet<string>) => boolean;
5277
+ export declare const isVitestInvocation: (command: string, vitestScripts: ReadonlySet<string>) => boolean;
5278
5278
  /**
5279
5279
  * Build the env-var prefix string to prepend to a matched command.
5280
5280
  *
@@ -5286,7 +5286,7 @@ declare const isVitestInvocation: (command: string, vitestScripts: ReadonlySet<s
5286
5286
  * Bash calls, no risk of cross-contamination.
5287
5287
  * @public
5288
5288
  */
5289
- declare const buildEnvPrefix: (input: {
5289
+ export declare const buildEnvPrefix: (input: {
5290
5290
  readonly conversationId: string;
5291
5291
  readonly agentId: string;
5292
5292
  readonly parentAgentId?: string;
@@ -5297,7 +5297,7 @@ declare const buildEnvPrefix: (input: {
5297
5297
  * unchanged. When it matches, prepends the env prefix.
5298
5298
  * @public
5299
5299
  */
5300
- declare const rewriteBashCommand: (input: {
5300
+ export declare const rewriteBashCommand: (input: {
5301
5301
  readonly command: string;
5302
5302
  readonly vitestScripts: ReadonlySet<string>;
5303
5303
  readonly conversationId: string;
@@ -5312,7 +5312,7 @@ declare const rewriteBashCommand: (input: {
5312
5312
  * is a documented limitation.
5313
5313
  * @public
5314
5314
  */
5315
- declare const detectVitestScripts: (scripts: Record<string, string>) => Set<string>;
5315
+ export declare const detectVitestScripts: (scripts: Record<string, string>) => Set<string>;
5316
5316
  //#endregion
5317
5317
  //#region src/utils/normalize-workspace-key.d.ts
5318
5318
  /**
@@ -5342,11 +5342,11 @@ declare const detectVitestScripts: (scripts: Record<string, string>) => Set<stri
5342
5342
  * @returns A filesystem-safe single path segment.
5343
5343
  * @public
5344
5344
  */
5345
- declare function normalizeWorkspaceKey(name: string): string;
5345
+ export declare function normalizeWorkspaceKey(name: string): string;
5346
5346
  //#endregion
5347
5347
  //#region src/utils/probe-host-metadata.d.ts
5348
5348
  /** @public */
5349
- interface HostMetadataResult {
5349
+ export interface HostMetadataResult {
5350
5350
  readonly source: string | null;
5351
5351
  readonly value: string | null;
5352
5352
  readonly metadata: Record<string, unknown> | null;
@@ -5371,19 +5371,19 @@ interface HostMetadataResult {
5371
5371
  * 9. `process.ppid` walk (handled by the Live layer)
5372
5372
  * @public
5373
5373
  */
5374
- declare const probeHostMetadataFromEnv: (env: Record<string, string | undefined>) => HostMetadataResult;
5374
+ export declare const probeHostMetadataFromEnv: (env: Record<string, string | undefined>) => HostMetadataResult;
5375
5375
  //#endregion
5376
5376
  //#region src/utils/resolve-data-path.d.ts
5377
5377
  /**
5378
5378
  * Filename of the SQLite database that stores all reporter data.
5379
5379
  * @public
5380
5380
  */
5381
- declare const DATABASE_FILENAME = "data.db";
5381
+ export declare const DATABASE_FILENAME = "data.db";
5382
5382
  /**
5383
5383
  * Caller-supplied overrides for `resolveDataPath`.
5384
5384
  * @public
5385
5385
  */
5386
- interface ResolveDataPathOptions {
5386
+ export interface ResolveDataPathOptions {
5387
5387
  /**
5388
5388
  * Programmatic override for the entire data directory. Highest precedence.
5389
5389
  *
@@ -5423,7 +5423,7 @@ interface ResolveDataPathOptions {
5423
5423
  * @param options - Optional programmatic overrides.
5424
5424
  * @public
5425
5425
  */
5426
- declare const resolveDataPath: (projectDir: string, options?: ResolveDataPathOptions) => Effect.Effect<any, import("@effected/xdg").AppDirsError | import("effect/PlatformError").PlatformError | import("@effected/config-file").ConfigReadError, AppDirs | FileSystem.FileSystem | VitestAgentConfigFile>;
5426
+ export declare const resolveDataPath: (projectDir: string, options?: ResolveDataPathOptions) => Effect.Effect<any, import("@effected/xdg").AppDirsError | import("effect/PlatformError").PlatformError | import("@effected/config-file").ConfigReadError, AppDirs | FileSystem.FileSystem | VitestAgentConfigFile>;
5427
5427
  //#endregion
5428
5428
  //#region src/utils/resolve-project-key-from-cwd.d.ts
5429
5429
  /**
@@ -5436,7 +5436,7 @@ declare const resolveDataPath: (projectDir: string, options?: ResolveDataPathOpt
5436
5436
  * empty case.
5437
5437
  * @public
5438
5438
  */
5439
- declare const resolveProjectKeyFromCwd: (cwd: string) => string;
5439
+ export declare const resolveProjectKeyFromCwd: (cwd: string) => string;
5440
5440
  //#endregion
5441
5441
  //#region src/utils/resolve-workspace-key.d.ts
5442
5442
  /**
@@ -5464,7 +5464,7 @@ declare const resolveProjectKeyFromCwd: (cwd: string) => string;
5464
5464
  * reporter's resolved `projectDir` (CLAUDE_PROJECT_DIR or process.cwd()).
5465
5465
  * @public
5466
5466
  */
5467
- declare const resolveWorkspaceKey: (projectDir: string) => Effect.Effect<string, WorkspaceRootNotFoundError | WorkspaceDiscoveryFailure, WorkspaceDiscovery>;
5467
+ export declare const resolveWorkspaceKey: (projectDir: string) => Effect.Effect<string, WorkspaceRootNotFoundError | WorkspaceDiscoveryFailure, WorkspaceDiscovery>;
5468
5468
  //#endregion
5469
5469
  //#region src/utils/safe-filename.d.ts
5470
5470
  /**
@@ -5493,17 +5493,17 @@ declare const resolveWorkspaceKey: (projectDir: string) => Effect.Effect<string,
5493
5493
  *
5494
5494
  * @public
5495
5495
  */
5496
- declare function safeFilename(name: string): string;
5496
+ export declare function safeFilename(name: string): string;
5497
5497
  //#endregion
5498
5498
  //#region src/utils/test-location.d.ts
5499
5499
  /** Directory holding source files whose tests may be co-located. @public */
5500
- declare const SRC_DIR = "src";
5500
+ export declare const SRC_DIR = "src";
5501
5501
  /** Canonical test directory name. @public */
5502
- declare const TEST_DIR = "__test__";
5502
+ export declare const TEST_DIR = "__test__";
5503
5503
  /** Support directories under `__test__/` that are never collected. @public */
5504
- declare const TEST_HELPER_DIRS: readonly ["fixtures", "snapshots", "utils"];
5504
+ export declare const TEST_HELPER_DIRS: readonly ["fixtures", "snapshots", "utils"];
5505
5505
  /** Glob suffix matching every discoverable test file. @public */
5506
- declare const TEST_FILE_GLOB_SUFFIX = "*.{test,spec}.{ts,tsx,js,jsx}";
5506
+ export declare const TEST_FILE_GLOB_SUFFIX = "*.{test,spec}.{ts,tsx,js,jsx}";
5507
5507
  /**
5508
5508
  * Directory names discovery never walks into, and therefore never collects
5509
5509
  * tests from. Keep in step with {@link TEST_FILE_GLOB_SUFFIX}'s extension set:
@@ -5516,7 +5516,7 @@ declare const TEST_FILE_GLOB_SUFFIX = "*.{test,spec}.{ts,tsx,js,jsx}";
5516
5516
  * any path that crosses one.
5517
5517
  * @public
5518
5518
  */
5519
- declare const NON_DISCOVERABLE_DIRS: ReadonlySet<string>;
5519
+ export declare const NON_DISCOVERABLE_DIRS: ReadonlySet<string>;
5520
5520
  /**
5521
5521
  * True when `filePathOrName` ends in a discoverable test-file suffix — the
5522
5522
  * extension half of the layout rule, matching {@link TEST_FILE_GLOB_SUFFIX}.
@@ -5526,7 +5526,7 @@ declare const NON_DISCOVERABLE_DIRS: ReadonlySet<string>;
5526
5526
  * when the answer has to account for where the file sits.
5527
5527
  * @public
5528
5528
  */
5529
- declare function isTestFileName(filePathOrName: string): boolean;
5529
+ export declare function isTestFileName(filePathOrName: string): boolean;
5530
5530
  /**
5531
5531
  * Outcome of classifying a path against the test-layout rule.
5532
5532
  *
@@ -5535,15 +5535,15 @@ declare function isTestFileName(filePathOrName: string): boolean;
5535
5535
  * - `invalid` — not a legal test location.
5536
5536
  * @public
5537
5537
  */
5538
- type TestPathVerdict = "valid" | "excluded" | "invalid";
5538
+ export type TestPathVerdict = "valid" | "excluded" | "invalid";
5539
5539
  /** Result of {@link classifyTestPath}. @public */
5540
- interface TestPathClassification {
5540
+ export interface TestPathClassification {
5541
5541
  readonly verdict: TestPathVerdict;
5542
5542
  readonly workspace: string | null;
5543
5543
  readonly suggestedPath: string | null;
5544
5544
  }
5545
5545
  /** Minimal workspace shape {@link classifyTestPath} needs to attribute a path. @public */
5546
- interface WorkspaceLike {
5546
+ export interface WorkspaceLike {
5547
5547
  readonly name: string;
5548
5548
  readonly path: string;
5549
5549
  }
@@ -5557,7 +5557,7 @@ interface WorkspaceLike {
5557
5557
  * agree with {@link classifyTestPath} about which package owns it.
5558
5558
  * @public
5559
5559
  */
5560
- declare function findOwningWorkspace(workspaces: ReadonlyArray<WorkspaceLike>, filePath: string): WorkspaceLike | null;
5560
+ export declare function findOwningWorkspace(workspaces: ReadonlyArray<WorkspaceLike>, filePath: string): WorkspaceLike | null;
5561
5561
  /**
5562
5562
  * Classifies `filePath` against the test-layout rule: a test file is
5563
5563
  * discoverable only at `<workspace>/src/**` or `<workspace>/__test__/**`,
@@ -5575,28 +5575,28 @@ declare function findOwningWorkspace(workspaces: ReadonlyArray<WorkspaceLike>, f
5575
5575
  * when it fires — `@vitest-agent/cli`'s `agent check-test-path` does.
5576
5576
  * @public
5577
5577
  */
5578
- declare function classifyTestPath(workspaces: ReadonlyArray<WorkspaceLike>, filePath: string): TestPathClassification | null;
5578
+ export declare function classifyTestPath(workspaces: ReadonlyArray<WorkspaceLike>, filePath: string): TestPathClassification | null;
5579
5579
  //#endregion
5580
5580
  //#region src/utils/validate-coverage-targets-shape.d.ts
5581
5581
  /** @public */
5582
- interface CoverageTargetsShapeError {
5582
+ export interface CoverageTargetsShapeError {
5583
5583
  readonly code: string;
5584
5584
  readonly path: string;
5585
5585
  readonly message: string;
5586
5586
  }
5587
5587
  /** @public */
5588
- interface CoverageTargetsShapeWarning {
5588
+ export interface CoverageTargetsShapeWarning {
5589
5589
  readonly code: string;
5590
5590
  readonly path: string;
5591
5591
  readonly message: string;
5592
5592
  }
5593
5593
  /** @public */
5594
- interface CoverageTargetsShapeInfo {
5594
+ export interface CoverageTargetsShapeInfo {
5595
5595
  readonly code: string;
5596
5596
  readonly message: string;
5597
5597
  }
5598
5598
  /** @public */
5599
- interface CoverageTargetsShapeResult {
5599
+ export interface CoverageTargetsShapeResult {
5600
5600
  readonly errors: ReadonlyArray<CoverageTargetsShapeError>;
5601
5601
  readonly warnings: ReadonlyArray<CoverageTargetsShapeWarning>;
5602
5602
  readonly info: ReadonlyArray<CoverageTargetsShapeInfo>;
@@ -5617,7 +5617,7 @@ interface CoverageTargetsShapeResult {
5617
5617
  * @returns A result object with errors, warnings, and info arrays.
5618
5618
  * @public
5619
5619
  */
5620
- declare function validateCoverageTargetsShape(input: unknown): CoverageTargetsShapeResult;
5620
+ export declare function validateCoverageTargetsShape(input: unknown): CoverageTargetsShapeResult;
5621
5621
  //#endregion
5622
5622
  //#region src/index.d.ts
5623
5623
  /**
@@ -5628,7 +5628,7 @@ declare function validateCoverageTargetsShape(input: unknown): CoverageTargetsSh
5628
5628
  * substituted yet. Exported for version introspection by downstream tooling.
5629
5629
  * @public
5630
5630
  */
5631
- declare const CURRENT_SDK_VERSION: string;
5631
+ export declare const CURRENT_SDK_VERSION: string;
5632
5632
  //#endregion
5633
- export { AcceptanceMetrics, ActionSeverity, ActorType, Agent, AgentConsoleMode, AgentContext, AgentId, AgentNotFoundError, AgentPluginOptions, AgentReport, AgentReporterOptions, AgentTreeNode, AnsiOptions, ArtifactKind, ArtifactSuite, AssembledHistoryRecord, AssociateRunSessionInput, BehaviorAbandonedEvent, BehaviorAddedEvent, BehaviorCompletedEvent, BehaviorDetail, BehaviorNotFoundError, BehaviorRow, BehaviorScopedEventType, BehaviorScopedEventTypes, BehaviorStartedEvent, BehaviorStatus, BehaviorsReadyEvent, BlockedEvent, CURRENT_SDK_VERSION, CacheManifest, CacheManifestEntry, CandidateContext, CellOptions, ChangeKind, ChannelEvent, ChatId, CiConsoleMode, CitedArtifact, CitedArtifactRow, ClassificationQueryOptions, CommitChangesEntry, ConfigLive, ConsoleFormatOptions, ConsoleLeakEntry, ConsoleLeakFile, ConsoleLeakTask, ConsoleLeaks, ConsoleLeaksFromFailingTests, ConsoleLogLevel, ConsoleMode, ConsoleOutputMode, ConsoleOutputs, ConversationId, ConversationNotFoundError, CoverageBaselines, FileCoverageReport as CoverageFile, FileCoverageReport, CoverageGap, CoverageInput, CoverageLevel, CoverageLevelName, CoverageMetric, CoverageRenderState, CoverageReport, CoverageTargets, CoverageTargetsMetrics, CoverageTargetsShapeError, CoverageTargetsShapeInfo, CoverageTargetsShapeResult, CoverageTargetsShapeWarning, CoverageTotals, CreateBehaviorInput, CreateGoalInput, CurrentTddPhase, DATABASE_FILENAME, DataReader, DataReaderLive, DataStore, DataStoreError, DataStoreLive, DenialReason, DetailLevel, DetailResolver, DetailResolverLive, DiscoveryError, DiscoveryRegistry, DiscoveryRegistryLive, DispatchInputs, EndTddTaskInput, Environment, EnvironmentDetector, EnvironmentDetectorLive, EnvironmentDetectorTest, Executor, ExecutorResolver, ExecutorResolverLive, FailureRecord, FailureSignatureDetail, FailureSignatureInput, FailureSignatureWriteInput, FileCoverageInput, FileEditPayload, FileSystemAdapter, FlakyTest, FormatSelector, FormatSelectorLive, type FormatTriageOptions, type FormatWrapupOptions, Formatter, FormatterContext, FunctionBoundary, GfmFormatter, GitCommandError, GoalAbandonedEvent, GoalAddedEvent, GoalCompletedEvent, GoalDetail, GoalNotFoundError, GoalRow, GoalStartedEvent, GoalStatus, GoalsReadyEvent, HistoryQueryOptions, HistoryRecord, HistoryRow, HistoryTracker, HistoryTrackerLive, HistoryTrackerTest, HistoryTrackerTestState, HookFirePayload, HookStatus, HookType, HostKind, HostMetadataParseError, HostMetadataResult, HumanConsoleMode, HypothesisDetail, HypothesisInput, HypothesisPayload, IDEMPOTENCY_ROOT_SENTINEL, IdempotencyHit, IdempotencyInput, IdempotentResponseInput, IllegalStatusTransitionEntity, IllegalStatusTransitionError, JsonFormatter, KnownProject, KnownProjectInput, LoggerLive, ManifestRow, MapSessionInput, MapSessionOutput, MarkdownFormatter, MetricThresholds, ModuleInput, ModuleListEntry, ModuleRecord, ModuleReport, NON_DISCOVERABLE_DIRS, NoteInput, NotePayload, NoteRow, Osc8Options, OutputFormat, OutputPipelineLive, OutputRenderer, OutputRendererLive, PackageManager, PathResolutionError, PathResolutionLive, PatternThresholds, PerClientSessionMapReader, PerClientSessionMapReaderLive, PerClientSessionMapWriter, PerClientSessionMapWriterLive, PersistentFailure, Phase, PhaseTransitionContext, PhaseTransitionEvent, PhaseTransitionResult, ProbeMissError, ProjectDiscovery, ProjectDiscoveryLive, ProjectDiscoveryTest, ProjectIdentity, ProjectIdentityCandidate, ProjectIdentityCandidates, ProjectIdentityLive, ProjectIdentityNotResolvableError, ProjectIdentitySource, ProjectIdentityTest, ProjectKey, ProjectRunSummary, ProjectSummary, RegisterAgentInput, RegisterAgentResult, RegistrationConflictError, Remediation, RenderState, RenderTotals, RenderedOutput, ReportError, ReportSummary, ReporterKit, ReporterRenderInput, ResolveDataPathOptions, ResolveProjectIdentityOptions, ResolvedIdentity, ResolvedReporterConfig, ResolvedThresholds, RunChangedFile, RunContext, RunContext$, RunContextLive, RunContextService, RunContextTest, RunEvent, RunEventByTag, RunHealth, RunInvocationMethod, RunOutcome, RunShape, SRC_DIR, SessionCompleteEvent, SessionContextRow, SessionDetail, SessionInput, SessionNotFoundError, SessionOutcome, SettingsInput, SettingsListEntry, SettingsRow, SidecarTimeoutError, SilentFormatter, StackFrameInput, SuggestedActionRecord, SuiteInput, SuiteListEntry, TEST_DIR, TEST_FILE_GLOB_SUFFIX, TEST_HELPER_DIRS, TagCountEntry, TagInventoryRow, TddArtifactDetail, TddArtifactRow, TddPhaseDetail, TddTaskAlreadyEndedError, TddTaskDetail, TddTaskEndOutcome, TddTaskId, TddTaskInput, TddTaskNotFoundError, TddTaskSummary, TerminalFormatter, TestCaseInput, TestClassification, TestError, TestErrorInput, TestFileEntry, TestHistory, TestListEntry, TestLookupOptions, TestOutcome, TestPathClassification, TestPathVerdict, TestRecord, TestReport, TestRun, TestRunInput, TestRunReason, TestState, ToolCallPayload, ToolResultPayload, Transport, TrendEntry, TrendRecord, TrendSummary, TurnInput, TurnPayload, TurnSearchOptions, TurnSummary, UpdateBehaviorInput, UpdateGoalInput, UserPromptPayload, ValidateHypothesisInput, VitestAgentConfig, VitestAgentConfigFile, VitestAgentConfigFileService, VitestAgentReporter, VitestAgentReporterFactory, VitestModuleDiagnostic, VitestModuleError, VitestParsedStack, VitestTestCase, VitestTestDiagnostic, VitestTestError, VitestTestModule, VitestTestResult, VitestTestSuite, WorkspaceLike, type WrapupKind, WriteCommitInput, WriteRunChangedFilesInput, WriteTddArtifactInput, WriteTddPhaseInput, WriteTddPhaseOutput, _resetMigrationCacheForTesting, ansi, assembleHistoryRecord, assembleManifest, buildAgentReport, buildConsoleLeaks, buildEnvPrefix, canonicalizeGitUrl, ciAnnotationsFormatter, classifyTest, classifyTestPath, coerceErrorField, coerceErrorText, collectConsoleLeakEntries, compressLines, computeFailureSignature, computeTrend, countSuiteFailures, deriveIdempotencyKey, detectNonDefaultDiscoverStrategy, detectPackageManager, detectVitestScripts, determineTier, ensureMigrated, extractSqlReason, findFunctionBoundary, findOwningWorkspace, formatConsoleMarkdown, formatFatalError, formatGfm, formatScopedCoverageNote, formatTriageEffect, formatWrapupEffect, getRecentDirection, getRunCommand, getWorstMetric, gitUrlToProjectKey, hashTargets, historyKey, initialRenderState, isTestFileName, isTimeoutError, isVitestInvocation, migration as migration0001, normalizeAssertionShape, normalizeWorkspaceKey, osc8, probeHostMetadataFromEnv, migration$1 as registryMigration0001, relativePath, requiredArtifactForTransition, resolveCoverageInput, resolveDataPath, resolveLogFile, resolveLogLevel, resolveProjectIdentityFromCandidates, resolveProjectKeyFromCwd, resolveWorkspaceKey, rewriteBashCommand, safeFilename, migration$2 as sessionMapMigration0001, stripAnsi, transitionEnforcesBehaviorMatch, validateCoverageConfig, validateCoverageTargetsShape, validatePhaseTransition };
5633
+ export { FileCoverageReport as CoverageFile, type FormatTriageOptions, type FormatWrapupOptions, type WrapupKind, migration as migration0001, migration$1 as registryMigration0001, migration$2 as sessionMapMigration0001 };
5634
5634
  //# sourceMappingURL=index.d.ts.map