@vitest-agent/sdk 7.0.3 → 7.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dispatch.d.ts +0 -6
  2. package/errors/AgentErrors.js +1 -2
  3. package/errors/DataStoreError.js +1 -2
  4. package/errors/DiscoveryError.js +1 -2
  5. package/errors/PathResolutionError.js +1 -2
  6. package/errors/ProjectIdentityError.js +1 -2
  7. package/errors/RunContextError.js +1 -2
  8. package/errors/TddErrors.js +1 -2
  9. package/exit-code-for-tag.js +1 -2
  10. package/index.d.ts +0 -136
  11. package/internal-inject-env.js +1 -2
  12. package/package.json +2 -2
  13. package/schemas/5.0/run.json +75 -135
  14. package/schemas/Agent.js +1 -2
  15. package/schemas/AgentReport.js +1 -2
  16. package/schemas/Baselines.js +1 -2
  17. package/schemas/CacheManifest.js +1 -2
  18. package/schemas/ChannelEvent.js +1 -2
  19. package/schemas/Common.js +1 -2
  20. package/schemas/Config.js +1 -2
  21. package/schemas/ConsoleLeaks.js +1 -2
  22. package/schemas/Coverage.js +1 -2
  23. package/schemas/CoverageLevel.js +1 -2
  24. package/schemas/CoverageTargets.js +1 -2
  25. package/schemas/History.js +1 -2
  26. package/schemas/Identity.js +1 -2
  27. package/schemas/Options.js +1 -2
  28. package/schemas/RenderState.js +1 -2
  29. package/schemas/RunEvent.js +1 -2
  30. package/schemas/RunReportFile.js +1 -2
  31. package/schemas/StrayOutput.js +1 -2
  32. package/schemas/Tdd.js +1 -2
  33. package/schemas/TestArtifacts.js +1 -2
  34. package/schemas/Thresholds.js +1 -2
  35. package/schemas/Transport.js +1 -2
  36. package/schemas/Trends.js +1 -2
  37. package/schemas/turns/FileEditPayload.js +1 -2
  38. package/schemas/turns/HookFirePayload.js +1 -2
  39. package/schemas/turns/HypothesisPayload.js +1 -2
  40. package/schemas/turns/NotePayload.js +1 -2
  41. package/schemas/turns/ToolCallPayload.js +1 -2
  42. package/schemas/turns/ToolResultPayload.js +1 -2
  43. package/schemas/turns/UserPromptPayload.js +1 -2
  44. package/schemas/turns/index.js +1 -2
  45. package/sidecar-dispatch.js +1 -2
  46. package/utils/ansi.js +1 -2
  47. package/utils/build-report.js +1 -2
  48. package/utils/canonicalize-git-url.js +1 -2
  49. package/utils/classify-test.js +1 -2
  50. package/utils/coerce-error-text.js +1 -2
  51. package/utils/compress-lines.js +1 -2
  52. package/utils/compute-trend.js +1 -2
  53. package/utils/console-leaks.js +1 -2
  54. package/utils/detect-non-default-discover-strategy.js +1 -2
  55. package/utils/detect-pm.js +1 -2
  56. package/utils/detect-timeout.js +1 -2
  57. package/utils/format-console.js +1 -2
  58. package/utils/format-fatal-error.js +1 -2
  59. package/utils/format-gfm.js +1 -2
  60. package/utils/format-scoped-coverage-note.js +1 -2
  61. package/utils/function-boundary.js +1 -2
  62. package/utils/hyperlink.js +1 -2
  63. package/utils/match-vitest-command.js +1 -2
  64. package/utils/normalize-workspace-key.js +1 -2
  65. package/utils/posix-path.js +1 -2
  66. package/utils/probe-host-metadata.js +1 -2
  67. package/utils/safe-filename.js +1 -2
  68. package/utils/stray-output.js +1 -2
  69. package/utils/test-location.js +1 -2
  70. package/utils/validate-coverage-targets-shape.js +1 -2
  71. package/utils/validate-phase-transition.js +1 -2
  72. package/version.js +2 -3
package/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { PubSub, Schema } from "effect";
2
- //#region src/schemas/Coverage.d.ts
3
2
  /**
4
3
  * Aggregate coverage percentages across four istanbul metrics.
5
4
  * @public
@@ -174,8 +173,6 @@ export declare const CoverageReport: Schema.Struct<{
174
173
  }>;
175
174
  /** @public */
176
175
  export type CoverageReport = typeof CoverageReport.Type;
177
- //#endregion
178
- //#region src/schemas/RenderState.d.ts
179
176
  /**
180
177
  * Per-test record accumulated as `TestStarted` / `TestFinished` events arrive.
181
178
  * @public
@@ -520,8 +517,6 @@ export type RenderState = typeof RenderState.Type;
520
517
  * @public
521
518
  */
522
519
  export declare const initialRenderState: RenderState;
523
- //#endregion
524
- //#region src/contracts/dispatcher.d.ts
525
520
  /**
526
521
  * The four run shapes the dispatcher distinguishes.
527
522
  *
@@ -643,8 +638,6 @@ export interface CellOptions {
643
638
  */
644
639
  readonly osc8: (url: string, label: string) => string;
645
640
  }
646
- //#endregion
647
- //#region src/formatters/types.d.ts
648
641
  /**
649
642
  * One unit of rendered reporter output, tagged by where it goes.
650
643
  *
@@ -668,8 +661,6 @@ export type RenderedOutput = {
668
661
  readonly content: string;
669
662
  readonly contentType: string;
670
663
  };
671
- //#endregion
672
- //#region src/schemas/AgentReport.d.ts
673
664
  /**
674
665
  * Aggregate test run statistics.
675
666
  * @public
@@ -958,8 +949,6 @@ export declare const AgentReport: Schema.Struct<{
958
949
  }>;
959
950
  /** @public */
960
951
  export type AgentReport = typeof AgentReport.Type;
961
- //#endregion
962
- //#region src/schemas/Common.d.ts
963
952
  /**
964
953
  * Possible states for an individual test case.
965
954
  * @public
@@ -1074,8 +1063,6 @@ export declare const ReportError: Schema.Struct<{
1074
1063
  }>;
1075
1064
  /** @public */
1076
1065
  export type ReportError = typeof ReportError.Type;
1077
- //#endregion
1078
- //#region src/schemas/RunEvent.d.ts
1079
1066
  /**
1080
1067
  * Coverage metric whose threshold can be violated independently.
1081
1068
  * @public
@@ -1366,8 +1353,6 @@ export type RunEvent = typeof RunEvent.Type;
1366
1353
  * @public
1367
1354
  */
1368
1355
  export type RunEventByTag = { [E in RunEvent as E["_tag"]]: E; };
1369
- //#endregion
1370
- //#region src/schemas/Thresholds.d.ts
1371
1356
  /**
1372
1357
  * Per-metric threshold values. All optional -- only set metrics are enforced.
1373
1358
  * @public
@@ -1467,8 +1452,6 @@ export declare const ResolvedThresholds: Schema.Struct<{
1467
1452
  }>;
1468
1453
  /** @public */
1469
1454
  export type ResolvedThresholds = typeof ResolvedThresholds.Type;
1470
- //#endregion
1471
- //#region src/schemas/Transport.d.ts
1472
1455
  /**
1473
1456
  * Transport binding for the persistence layer.
1474
1457
  *
@@ -1483,8 +1466,6 @@ export declare const Transport: Schema.Union<readonly [Schema.Struct<{
1483
1466
  }>]>;
1484
1467
  /** @public */
1485
1468
  export type Transport = typeof Transport.Type;
1486
- //#endregion
1487
- //#region src/contracts/reporter.d.ts
1488
1469
  /**
1489
1470
  * Config the plugin computes from its own options + Vitest's resolved config,
1490
1471
  * then hands to the reporter factory inside {@link ReporterKit}.
@@ -1696,8 +1677,6 @@ export interface VitestAgentReporter {
1696
1677
  * @public
1697
1678
  */
1698
1679
  export type VitestAgentReporterFactory = (kit: ReporterKit) => VitestAgentReporter | ReadonlyArray<VitestAgentReporter>;
1699
- //#endregion
1700
- //#region src/schemas/Identity.d.ts
1701
1680
  /**
1702
1681
  * Canonical UUID for an LLM agent invocation. Generated server-side at
1703
1682
  * `register_agent` time. Stable across transport reconnects within an
@@ -1770,8 +1749,6 @@ export type ActorType = typeof ActorType.Type;
1770
1749
  export declare const HostKind: Schema.Literals<readonly ["claude-code", "claude-desktop", "cursor", "goose", "chatgpt", "mcp-inspector", "unknown"]>;
1771
1750
  /** @public */
1772
1751
  export type HostKind = typeof HostKind.Type;
1773
- //#endregion
1774
- //#region src/errors/AgentErrors.d.ts
1775
1752
  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 & {
1776
1753
  readonly _tag: "AgentNotFoundError";
1777
1754
  } & Readonly<A>;
@@ -1853,8 +1830,6 @@ export declare class SidecarTimeoutError extends SidecarTimeoutError_base<{
1853
1830
  readonly timeoutMs: number;
1854
1831
  });
1855
1832
  }
1856
- //#endregion
1857
- //#region src/errors/DataStoreError.d.ts
1858
1833
  declare const DataStoreError_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 & {
1859
1834
  readonly _tag: "DataStoreError";
1860
1835
  } & Readonly<A>;
@@ -1886,8 +1861,6 @@ export declare class DataStoreError extends DataStoreError_base<{
1886
1861
  * @public
1887
1862
  */
1888
1863
  export declare const extractSqlReason: (e: unknown) => string;
1889
- //#endregion
1890
- //#region src/errors/DiscoveryError.d.ts
1891
1864
  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 & {
1892
1865
  readonly _tag: "DiscoveryError";
1893
1866
  } & Readonly<A>;
@@ -1906,8 +1879,6 @@ export declare class DiscoveryError extends DiscoveryError_base<{
1906
1879
  readonly reason: string;
1907
1880
  });
1908
1881
  }
1909
- //#endregion
1910
- //#region src/errors/PathResolutionError.d.ts
1911
1882
  declare const PathResolutionError_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 & {
1912
1883
  readonly _tag: "PathResolutionError";
1913
1884
  } & Readonly<A>;
@@ -1928,8 +1899,6 @@ export declare class PathResolutionError extends PathResolutionError_base<{
1928
1899
  readonly reason: string;
1929
1900
  });
1930
1901
  }
1931
- //#endregion
1932
- //#region src/errors/ProjectIdentityError.d.ts
1933
1902
  /**
1934
1903
  * One source the resolver tried while looking for project identity.
1935
1904
  *
@@ -1965,8 +1934,6 @@ export declare class ProjectIdentityNotResolvableError extends ProjectIdentityNo
1965
1934
  readonly tried: ReadonlyArray<ProjectIdentityCandidate>;
1966
1935
  });
1967
1936
  }
1968
- //#endregion
1969
- //#region src/errors/RunContextError.d.ts
1970
1937
  declare const GitCommandError_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 & {
1971
1938
  readonly _tag: "GitCommandError";
1972
1939
  } & Readonly<A>;
@@ -2002,8 +1969,6 @@ declare const ProbeMissError_base: new <A extends Record<string, any> = {}>(args
2002
1969
  export declare class ProbeMissError extends ProbeMissError_base<{
2003
1970
  readonly probe: string;
2004
1971
  }> {}
2005
- //#endregion
2006
- //#region src/errors/TddErrors.d.ts
2007
1972
  declare const GoalNotFoundError_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 & {
2008
1973
  readonly _tag: "GoalNotFoundError";
2009
1974
  } & Readonly<A>;
@@ -2081,8 +2046,6 @@ export declare class IllegalStatusTransitionError extends IllegalStatusTransitio
2081
2046
  readonly reason: string;
2082
2047
  });
2083
2048
  }
2084
- //#endregion
2085
- //#region src/schemas/Agent.d.ts
2086
2049
  declare const Agent_base: Schema.Class<Agent, Schema.TaggedStruct<"Agent", {
2087
2050
  readonly agentId: Schema.brand<Schema.String, "AgentId">;
2088
2051
  readonly sessionId: Schema.Number;
@@ -2139,8 +2102,6 @@ export interface AgentTreeNode {
2139
2102
  readonly agent: Agent;
2140
2103
  readonly children: ReadonlyArray<AgentTreeNode>;
2141
2104
  }
2142
- //#endregion
2143
- //#region src/schemas/Baselines.d.ts
2144
2105
  /**
2145
2106
  * Coverage baselines -- the auto-ratcheting high-water mark.
2146
2107
  * @public
@@ -2168,8 +2129,6 @@ export declare const CoverageBaselines: Schema.Struct<{
2168
2129
  }>;
2169
2130
  /** @public */
2170
2131
  export type CoverageBaselines = typeof CoverageBaselines.Type;
2171
- //#endregion
2172
- //#region src/schemas/CacheManifest.d.ts
2173
2132
  /**
2174
2133
  * A single project entry in the cache manifest.
2175
2134
  * @public
@@ -2200,8 +2159,6 @@ export declare const CacheManifest: Schema.Struct<{
2200
2159
  }>;
2201
2160
  /** @public */
2202
2161
  export type CacheManifest = typeof CacheManifest.Type;
2203
- //#endregion
2204
- //#region src/schemas/ChannelEvent.d.ts
2205
2162
  /** @public */
2206
2163
  export declare const SessionOutcome: Schema.Literals<readonly ["succeeded", "blocked", "abandoned"]>;
2207
2164
  /** @public */
@@ -2438,8 +2395,6 @@ export type ChannelEvent = typeof ChannelEvent.Type;
2438
2395
  export declare const BehaviorScopedEventTypes: readonly ["behavior_started", "phase_transition", "behavior_completed", "behavior_abandoned", "blocked"];
2439
2396
  /** @public */
2440
2397
  export type BehaviorScopedEventType = (typeof BehaviorScopedEventTypes)[number];
2441
- //#endregion
2442
- //#region src/schemas/Config.d.ts
2443
2398
  declare const VitestAgentConfig_base: Schema.Class<VitestAgentConfig, Schema.Struct<{
2444
2399
  readonly cacheDir: Schema.optional<Schema.String>;
2445
2400
  readonly projectKey: Schema.optional<Schema.String>;
@@ -2463,8 +2418,6 @@ declare const VitestAgentConfig_base: Schema.Class<VitestAgentConfig, Schema.Str
2463
2418
  * @public
2464
2419
  */
2465
2420
  export declare class VitestAgentConfig extends VitestAgentConfig_base {}
2466
- //#endregion
2467
- //#region src/schemas/ConsoleLeaks.d.ts
2468
2421
  /**
2469
2422
  * Per-file stray-console-output detail. Counts are of console writes
2470
2423
  * (one `console.*` call), not lines.
@@ -2519,8 +2472,6 @@ export declare const ConsoleLeaks: Schema.Struct<{
2519
2472
  }>;
2520
2473
  /** @public */
2521
2474
  export type ConsoleLeaks = typeof ConsoleLeaks.Type;
2522
- //#endregion
2523
- //#region src/schemas/CoverageLevel.d.ts
2524
2475
  declare const CoverageLevel_base: Schema.Class<CoverageLevel, Schema.Struct<{
2525
2476
  readonly lines: Schema.Number;
2526
2477
  readonly functions: Schema.Number;
@@ -2582,8 +2533,6 @@ export declare function resolveCoverageInput(input: CoverageInput | undefined, f
2582
2533
  * @public
2583
2534
  */
2584
2535
  export declare function validateCoverageConfig(thresholds: CoverageLevel, targets: CoverageLevel): void;
2585
- //#endregion
2586
- //#region src/schemas/CoverageTargets.d.ts
2587
2536
  /**
2588
2537
  * Per-metric leaf shape for coverageTargets entries. Allows optional
2589
2538
  * numeric targets per metric, the `100: true` shortcut, and — mirroring
@@ -2637,8 +2586,6 @@ export declare const CoverageTargets: Schema.$Record<Schema.String, Schema.Union
2637
2586
  }>]>>;
2638
2587
  /** @public */
2639
2588
  export type CoverageTargets = typeof CoverageTargets.Type;
2640
- //#endregion
2641
- //#region src/schemas/History.d.ts
2642
2589
  /**
2643
2590
  * A single test run outcome (pass or fail only).
2644
2591
  * @public
@@ -2681,8 +2628,6 @@ export declare const HistoryRecord: Schema.Struct<{
2681
2628
  }>;
2682
2629
  /** @public */
2683
2630
  export type HistoryRecord = typeof HistoryRecord.Type;
2684
- //#endregion
2685
- //#region src/schemas/Options.d.ts
2686
2631
  /**
2687
2632
  * Per-executor console-output matrix. Most users never set this — the
2688
2633
  * built-in defaults cover the common cases. Override per slot when you
@@ -2782,8 +2727,6 @@ export declare const AgentReporterOptions: Schema.Struct<{
2782
2727
  }>;
2783
2728
  /** @public */
2784
2729
  export type AgentReporterOptions = typeof AgentReporterOptions.Type;
2785
- //#endregion
2786
- //#region src/schemas/RunReportFile.d.ts
2787
2730
  /**
2788
2731
  * Canonical `$schema` URL for `RunReportFile` — the `schemas/5.0/run.json`
2789
2732
  * document GitHub serves raw from this repository.
@@ -2996,8 +2939,6 @@ export declare const RunReportFile: Schema.Struct<{
2996
2939
  }>;
2997
2940
  /** @public */
2998
2941
  export type RunReportFile = typeof RunReportFile.Type;
2999
- //#endregion
3000
- //#region src/schemas/StrayOutput.d.ts
3001
2942
  /**
3002
2943
  * One line of stray output, kept as a sample: the stream it was written to,
3003
2944
  * and its text with escapes stripped, cut to a sane length.
@@ -3037,8 +2978,6 @@ export declare const StrayOutput: Schema.Struct<{
3037
2978
  }>;
3038
2979
  /** @public */
3039
2980
  export type StrayOutput = typeof StrayOutput.Type;
3040
- //#endregion
3041
- //#region src/schemas/Tdd.d.ts
3042
2981
  /** @public */
3043
2982
  export declare const GoalStatus: Schema.Literals<readonly ["pending", "in_progress", "done", "abandoned"]>;
3044
2983
  /** @public */
@@ -3116,8 +3055,6 @@ export declare const BehaviorDetail: Schema.Struct<{
3116
3055
  }>;
3117
3056
  /** @public */
3118
3057
  export type BehaviorDetail = typeof BehaviorDetail.Type;
3119
- //#endregion
3120
- //#region src/schemas/TestArtifacts.d.ts
3121
3058
  /**
3122
3059
  * Source position a test annotation or test artifact points at.
3123
3060
  * @public
@@ -3207,8 +3144,6 @@ export declare const TestArtifact: Schema.Struct<{
3207
3144
  }>;
3208
3145
  /** @public */
3209
3146
  export type TestArtifact = typeof TestArtifact.Type;
3210
- //#endregion
3211
- //#region src/schemas/Trends.d.ts
3212
3147
  /**
3213
3148
  * A single coverage trend data point recorded on a full test run.
3214
3149
  * @public
@@ -3257,8 +3192,6 @@ export declare const TrendRecord: Schema.Struct<{
3257
3192
  }>;
3258
3193
  /** @public */
3259
3194
  export type TrendRecord = typeof TrendRecord.Type;
3260
- //#endregion
3261
- //#region src/schemas/turns/FileEditPayload.d.ts
3262
3195
  /** @public */
3263
3196
  export declare const FileEditPayload: Schema.Struct<{
3264
3197
  readonly type: Schema.Literal<"file_edit">;
@@ -3270,8 +3203,6 @@ export declare const FileEditPayload: Schema.Struct<{
3270
3203
  }>;
3271
3204
  /** @public */
3272
3205
  export type FileEditPayload = typeof FileEditPayload.Type;
3273
- //#endregion
3274
- //#region src/schemas/turns/HookFirePayload.d.ts
3275
3206
  /** @public */
3276
3207
  export declare const HookFirePayload: Schema.Struct<{
3277
3208
  readonly type: Schema.Literal<"hook_fire">;
@@ -3281,8 +3212,6 @@ export declare const HookFirePayload: Schema.Struct<{
3281
3212
  }>;
3282
3213
  /** @public */
3283
3214
  export type HookFirePayload = typeof HookFirePayload.Type;
3284
- //#endregion
3285
- //#region src/schemas/turns/HypothesisPayload.d.ts
3286
3215
  /** @public */
3287
3216
  export declare const HypothesisPayload: Schema.Struct<{
3288
3217
  readonly type: Schema.Literal<"hypothesis">;
@@ -3292,8 +3221,6 @@ export declare const HypothesisPayload: Schema.Struct<{
3292
3221
  }>;
3293
3222
  /** @public */
3294
3223
  export type HypothesisPayload = typeof HypothesisPayload.Type;
3295
- //#endregion
3296
- //#region src/schemas/turns/NotePayload.d.ts
3297
3224
  /** @public */
3298
3225
  export declare const NotePayload: Schema.Struct<{
3299
3226
  readonly type: Schema.Literal<"note">;
@@ -3303,8 +3230,6 @@ export declare const NotePayload: Schema.Struct<{
3303
3230
  }>;
3304
3231
  /** @public */
3305
3232
  export type NotePayload = typeof NotePayload.Type;
3306
- //#endregion
3307
- //#region src/schemas/turns/ToolCallPayload.d.ts
3308
3233
  /** @public */
3309
3234
  export declare const ToolCallPayload: Schema.Struct<{
3310
3235
  readonly type: Schema.Literal<"tool_call">;
@@ -3314,8 +3239,6 @@ export declare const ToolCallPayload: Schema.Struct<{
3314
3239
  }>;
3315
3240
  /** @public */
3316
3241
  export type ToolCallPayload = typeof ToolCallPayload.Type;
3317
- //#endregion
3318
- //#region src/schemas/turns/ToolResultPayload.d.ts
3319
3242
  /** @public */
3320
3243
  export declare const ToolResultPayload: Schema.Struct<{
3321
3244
  readonly type: Schema.Literal<"tool_result">;
@@ -3327,8 +3250,6 @@ export declare const ToolResultPayload: Schema.Struct<{
3327
3250
  }>;
3328
3251
  /** @public */
3329
3252
  export type ToolResultPayload = typeof ToolResultPayload.Type;
3330
- //#endregion
3331
- //#region src/schemas/turns/UserPromptPayload.d.ts
3332
3253
  /** @public */
3333
3254
  export declare const UserPromptPayload: Schema.Struct<{
3334
3255
  readonly type: Schema.Literal<"user_prompt">;
@@ -3337,8 +3258,6 @@ export declare const UserPromptPayload: Schema.Struct<{
3337
3258
  }>;
3338
3259
  /** @public */
3339
3260
  export type UserPromptPayload = typeof UserPromptPayload.Type;
3340
- //#endregion
3341
- //#region src/schemas/turns/index.d.ts
3342
3261
  /** @public */
3343
3262
  export declare const TurnPayload: Schema.Union<readonly [Schema.Struct<{
3344
3263
  readonly type: Schema.Literal<"user_prompt">;
@@ -3381,8 +3300,6 @@ export declare const TurnPayload: Schema.Union<readonly [Schema.Struct<{
3381
3300
  }>]>;
3382
3301
  /** @public */
3383
3302
  export type TurnPayload = typeof TurnPayload.Type;
3384
- //#endregion
3385
- //#region src/utils/ansi.d.ts
3386
3303
  /**
3387
3304
  * Options for ANSI color output control.
3388
3305
  *
@@ -3420,8 +3337,6 @@ export declare function ansi(text: string, color: string, options?: AnsiOptions)
3420
3337
  * @internal
3421
3338
  */
3422
3339
  export declare function stripAnsi(text: string): string;
3423
- //#endregion
3424
- //#region src/utils/build-report.d.ts
3425
3340
  /**
3426
3341
  * Duck-typed Vitest parsed stack frame.
3427
3342
  *
@@ -3600,8 +3515,6 @@ export declare function buildAgentReport(testModules: ReadonlyArray<VitestTestMo
3600
3515
  * @public
3601
3516
  */
3602
3517
  export declare const countSuiteFailures: (report: Pick<AgentReport, "failed">) => number;
3603
- //#endregion
3604
- //#region src/utils/canonicalize-git-url.d.ts
3605
3518
  /**
3606
3519
  * Canonicalize a git remote URL.
3607
3520
  *
@@ -3631,8 +3544,6 @@ export declare const canonicalizeGitUrl: (raw: string) => string | null;
3631
3544
  * @public
3632
3545
  */
3633
3546
  export declare const gitUrlToProjectKey: (raw: string) => string | null;
3634
- //#endregion
3635
- //#region src/utils/classify-test.d.ts
3636
3547
  /**
3637
3548
  * Classify a test based on its current state and prior run history.
3638
3549
  *
@@ -3644,8 +3555,6 @@ export declare const gitUrlToProjectKey: (raw: string) => string | null;
3644
3555
  export declare function classifyTest(current: "passed" | "failed", priorRuns: ReadonlyArray<{
3645
3556
  state: string;
3646
3557
  }>): TestClassification;
3647
- //#endregion
3648
- //#region src/utils/coerce-error-text.d.ts
3649
3558
  /**
3650
3559
  * Coerce an unknown error-field value (message, name, diff, stack, ...) into a
3651
3560
  * string that is safe to bind to a SQLite TEXT column or render to a terminal.
@@ -3680,8 +3589,6 @@ export declare const coerceErrorText: (value: unknown) => string | undefined;
3680
3589
  * @public
3681
3590
  */
3682
3591
  export declare const coerceErrorField: (source: unknown, key: string) => string | undefined;
3683
- //#endregion
3684
- //#region src/utils/compress-lines.d.ts
3685
3592
  /**
3686
3593
  * Compress an array of line numbers into a compact range string.
3687
3594
  *
@@ -3709,8 +3616,6 @@ export declare const coerceErrorField: (source: unknown, key: string) => string
3709
3616
  * @public
3710
3617
  */
3711
3618
  export declare function compressLines(lines: number[]): string;
3712
- //#endregion
3713
- //#region src/utils/compute-trend.d.ts
3714
3619
  /**
3715
3620
  * Hash resolved targets to detect configuration changes.
3716
3621
  *
@@ -3736,8 +3641,6 @@ export declare function getRecentDirection(record: TrendRecord, count?: number):
3736
3641
  direction: "improving" | "regressing" | "stable";
3737
3642
  runCount: number;
3738
3643
  };
3739
- //#endregion
3740
- //#region src/utils/console-leaks.d.ts
3741
3644
  /**
3742
3645
  * A single captured stray console write, attributed to a file (and a test
3743
3646
  * when the write happened inside one). Fed to buildConsoleLeaks.
@@ -3804,8 +3707,6 @@ export interface ConsoleLeakTask {
3804
3707
  * @public
3805
3708
  */
3806
3709
  export declare function collectConsoleLeakEntries(files: ReadonlyArray<ConsoleLeakTask>): ConsoleLeakEntry[];
3807
- //#endregion
3808
- //#region src/utils/detect-non-default-discover-strategy.d.ts
3809
3710
  /**
3810
3711
  * Lexically detects whether a Vitest/Vite config source text appears to
3811
3712
  * configure a non-default `DiscoverStrategy` — a custom `discoverStrategy`
@@ -3821,8 +3722,6 @@ export declare function collectConsoleLeakEntries(files: ReadonlyArray<ConsoleLe
3821
3722
  * @public
3822
3723
  */
3823
3724
  export declare function detectNonDefaultDiscoverStrategy(source: string): boolean;
3824
- //#endregion
3825
- //#region src/utils/detect-pm.d.ts
3826
3725
  /**
3827
3726
  * Filesystem abstraction for package manager detection.
3828
3727
  *
@@ -3883,8 +3782,6 @@ export declare function detectPackageManager(root: string, fs: FileSystemAdapter
3883
3782
  * @internal
3884
3783
  */
3885
3784
  export declare function getRunCommand(pm: PackageManager | null): string;
3886
- //#endregion
3887
- //#region src/utils/detect-timeout.d.ts
3888
3785
  /**
3889
3786
  * True when the error looks like a Vitest test or hook timeout. Either
3890
3787
  * the message matches "timed out in Nms" or the error name contains
@@ -3895,8 +3792,6 @@ export declare const isTimeoutError: (error: {
3895
3792
  message?: string;
3896
3793
  name?: string;
3897
3794
  }) => boolean;
3898
- //#endregion
3899
- //#region src/utils/format-console.d.ts
3900
3795
  /**
3901
3796
  * Options controlling console markdown output formatting.
3902
3797
  *
@@ -3988,8 +3883,6 @@ export declare function determineTier(report: AgentReport): "green" | "yellow" |
3988
3883
  * @internal
3989
3884
  */
3990
3885
  export declare function formatConsoleMarkdown(report: AgentReport, options: ConsoleFormatOptions): string;
3991
- //#endregion
3992
- //#region src/utils/format-fatal-error.d.ts
3993
3886
  /**
3994
3887
  * Format an unknown error into a human-readable string with issue URL.
3995
3888
  *
@@ -4002,8 +3895,6 @@ export declare function formatConsoleMarkdown(report: AgentReport, options: Cons
4002
3895
  * @public
4003
3896
  */
4004
3897
  export declare function formatFatalError(err: unknown): string;
4005
- //#endregion
4006
- //#region src/utils/format-gfm.d.ts
4007
3898
  /**
4008
3899
  * Format one or more {@link (AgentReport:variable) | AgentReports} as a GitHub-Flavored
4009
3900
  * Markdown string for writing to `GITHUB_STEP_SUMMARY`.
@@ -4027,8 +3918,6 @@ export declare function formatFatalError(err: unknown): string;
4027
3918
  * @public
4028
3919
  */
4029
3920
  export declare function formatGfm(reports: AgentReport[]): string;
4030
- //#endregion
4031
- //#region src/utils/format-scoped-coverage-note.d.ts
4032
3921
  /**
4033
3922
  * Format the informational note shown when coverage thresholds were
4034
3923
  * skipped because a run only exercised a subset of the project's test
@@ -4048,8 +3937,6 @@ export declare function formatGfm(reports: AgentReport[]): string;
4048
3937
  * @public
4049
3938
  */
4050
3939
  export declare function formatScopedCoverageNote(testedFileCount: number, totalFileCount?: number): string;
4051
- //#endregion
4052
- //#region src/utils/function-boundary.d.ts
4053
3940
  /** @public */
4054
3941
  export interface FunctionBoundary {
4055
3942
  readonly line: number;
@@ -4065,16 +3952,12 @@ export interface FunctionBoundary {
4065
3952
  * @public
4066
3953
  */
4067
3954
  export declare const findFunctionBoundary: (source: string, line: number) => FunctionBoundary | null;
4068
- //#endregion
4069
- //#region src/utils/hyperlink.d.ts
4070
3955
  /** @public */
4071
3956
  export interface Osc8Options {
4072
3957
  readonly enabled: boolean;
4073
3958
  }
4074
3959
  /** @public */
4075
3960
  export declare const osc8: (url: string, label: string, options: Osc8Options) => string;
4076
- //#endregion
4077
- //#region src/utils/match-vitest-command.d.ts
4078
3961
  /**
4079
3962
  * Return `true` if the command invokes Vitest in any of the five
4080
3963
  * supported shapes. The `vitestScripts` set carries the names of
@@ -4121,8 +4004,6 @@ export declare const rewriteBashCommand: (input: {
4121
4004
  * @public
4122
4005
  */
4123
4006
  export declare const detectVitestScripts: (scripts: Record<string, string>) => Set<string>;
4124
- //#endregion
4125
- //#region src/utils/normalize-workspace-key.d.ts
4126
4007
  /**
4127
4008
  * Normalize a workspace name into a filesystem-safe directory segment.
4128
4009
  *
@@ -4151,8 +4032,6 @@ export declare const detectVitestScripts: (scripts: Record<string, string>) => S
4151
4032
  * @public
4152
4033
  */
4153
4034
  export declare function normalizeWorkspaceKey(name: string): string;
4154
- //#endregion
4155
- //#region src/utils/posix-path.d.ts
4156
4035
  /**
4157
4036
  * Pure POSIX path helpers for the platform-free core.
4158
4037
  *
@@ -4186,8 +4065,6 @@ export declare const joinPosix: (...parts: ReadonlyArray<string>) => string;
4186
4065
  * @public
4187
4066
  */
4188
4067
  export declare const relativePosix: (from: string, to: string) => string;
4189
- //#endregion
4190
- //#region src/utils/probe-host-metadata.d.ts
4191
4068
  /** @public */
4192
4069
  export interface HostMetadataResult {
4193
4070
  readonly source: string | null;
@@ -4215,8 +4092,6 @@ export interface HostMetadataResult {
4215
4092
  * @public
4216
4093
  */
4217
4094
  export declare const probeHostMetadataFromEnv: (env: Record<string, string | undefined>) => HostMetadataResult;
4218
- //#endregion
4219
- //#region src/utils/safe-filename.d.ts
4220
4095
  /**
4221
4096
  * Convert a project name to a filesystem-safe filename.
4222
4097
  *
@@ -4244,8 +4119,6 @@ export declare const probeHostMetadataFromEnv: (env: Record<string, string | und
4244
4119
  * @public
4245
4120
  */
4246
4121
  export declare function safeFilename(name: string): string;
4247
- //#endregion
4248
- //#region src/utils/stray-output.d.ts
4249
4122
  /**
4250
4123
  * A stream stray output was written to.
4251
4124
  * @public
@@ -4317,8 +4190,6 @@ export declare const readStrayOutput: (logger: unknown) => StrayOutput | undefin
4317
4190
  * @public
4318
4191
  */
4319
4192
  export declare const formatStrayOutputNote: (stray: StrayOutput) => ReadonlyArray<string>;
4320
- //#endregion
4321
- //#region src/utils/test-location.d.ts
4322
4193
  /** Directory holding source files whose tests may be co-located. @public */
4323
4194
  export declare const SRC_DIR = "src";
4324
4195
  /** Canonical test directory name. @public */
@@ -4409,8 +4280,6 @@ export declare function findOwningWorkspace(workspaces: ReadonlyArray<WorkspaceL
4409
4280
  * @public
4410
4281
  */
4411
4282
  export declare function classifyTestPath(workspaces: ReadonlyArray<WorkspaceLike>, filePath: string): TestPathClassification | null;
4412
- //#endregion
4413
- //#region src/utils/validate-coverage-targets-shape.d.ts
4414
4283
  /** @public */
4415
4284
  export interface CoverageTargetsShapeError {
4416
4285
  readonly code: string;
@@ -4453,8 +4322,6 @@ export interface CoverageTargetsShapeResult {
4453
4322
  * @public
4454
4323
  */
4455
4324
  export declare function validateCoverageTargetsShape(input: unknown): CoverageTargetsShapeResult;
4456
- //#endregion
4457
- //#region src/utils/validate-phase-transition.d.ts
4458
4325
  /** @public */
4459
4326
  export type Phase = "spike" | "red" | "red.triangulate" | "green" | "green.fake-it" | "refactor" | "extended-red" | "green-without-red";
4460
4327
  /** @public */
@@ -4561,8 +4428,6 @@ export declare const requiredArtifactForTransition: (from: Phase, to: Phase) =>
4561
4428
  export declare const transitionEnforcesBehaviorMatch: (from: Phase, to: Phase) => boolean;
4562
4429
  /** @public */
4563
4430
  export declare const validatePhaseTransition: (ctx: PhaseTransitionContext) => PhaseTransitionResult;
4564
- //#endregion
4565
- //#region src/version.d.ts
4566
4431
  /**
4567
4432
  * The version of this package. Inlined at build time from
4568
4433
  * package.json#version via rslib-builder's __PACKAGE_VERSION__ substitution.
@@ -4576,6 +4441,5 @@ export declare const validatePhaseTransition: (ctx: PhaseTransitionContext) => P
4576
4441
  * @public
4577
4442
  */
4578
4443
  export declare const CURRENT_SDK_VERSION: string;
4579
- //#endregion
4580
4444
  export { FileCoverageReport as CoverageFile };
4581
4445
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { detectVitestScripts, rewriteBashCommand } from "./utils/match-vitest-command.js";
2
2
 
3
- //#region src/internal-inject-env.ts
3
+ // src/internal-inject-env.ts
4
4
  const readPackageScripts = (cwd, readFile) => {
5
5
  try {
6
6
  const raw = readFile(`${cwd}/package.json`);
@@ -37,5 +37,4 @@ const injectEnv = (input) => {
37
37
  });
38
38
  };
39
39
 
40
- //#endregion
41
40
  export { injectEnv };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitest-agent/sdk",
3
- "version": "7.0.3",
3
+ "version": "7.0.5",
4
4
  "private": false,
5
5
  "description": "Platform-free core for the vitest-agent package family: Effect Schema definitions, reporter and dispatcher contracts, errors, and pure utilities.",
6
6
  "keywords": [
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "acorn": "^8.19.0",
45
45
  "acorn-typescript": "^1.4.13",
46
- "effect": "^4.0.4"
46
+ "effect": "^4.0.6"
47
47
  },
48
48
  "engines": {
49
49
  "node": ">=24.11.0"