@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/dispatch.d.ts CHANGED
@@ -1,12 +1,9 @@
1
- //#region src/exit-code-for-tag.d.ts
2
1
  /**
3
2
  * Map a tagged-error `_tag` to the agent-agnostic sidecar exit-code
4
3
  * taxonomy. Unknown tags collapse to `5` (other unexpected defect).
5
4
  * @public
6
5
  */
7
6
  export declare const exitCodeForTag: (tag: string) => number;
8
- //#endregion
9
- //#region src/internal-inject-env.d.ts
10
7
  /** Input to {@link injectEnv}. @public */
11
8
  interface InjectEnvInput {
12
9
  readonly command: string;
@@ -31,8 +28,6 @@ interface InjectEnvInput {
31
28
  * @public
32
29
  */
33
30
  export declare const injectEnv: (input: InjectEnvInput) => string;
34
- //#endregion
35
- //#region src/sidecar-dispatch.d.ts
36
31
  /**
37
32
  * The process-level inputs {@link dispatch} needs, supplied by the bin
38
33
  * runner so the dispatch core itself never reads `process` or `node:fs`.
@@ -62,6 +57,5 @@ interface DispatchResult {
62
57
  * @public
63
58
  */
64
59
  export declare const dispatch: (argv: readonly string[], io: DispatchIo) => Promise<DispatchResult>;
65
- //#endregion
66
60
  export type { DispatchIo, DispatchResult, InjectEnvInput };
67
61
  //# sourceMappingURL=dispatch.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { Data } from "effect";
2
2
 
3
- //#region src/errors/AgentErrors.ts
3
+ // src/errors/AgentErrors.ts
4
4
  /**
5
5
  * `agent_id` does not exist for the given chat. Surface to the
6
6
  * caller; the typical resolution is to call `register_agent` for
@@ -61,5 +61,4 @@ var SidecarTimeoutError = class extends Data.TaggedError("SidecarTimeoutError")
61
61
  }
62
62
  };
63
63
 
64
- //#endregion
65
64
  export { AgentNotFoundError, ConversationNotFoundError, HostMetadataParseError, RegistrationConflictError, SessionNotFoundError, SidecarTimeoutError };
@@ -1,6 +1,6 @@
1
1
  import { Data } from "effect";
2
2
 
3
- //#region src/errors/DataStoreError.ts
3
+ // src/errors/DataStoreError.ts
4
4
  /**
5
5
  * Error raised when a SQLite operation fails at read, write, or migration time.
6
6
  * @public
@@ -66,5 +66,4 @@ const extractSqlReason = (e) => {
66
66
  }
67
67
  };
68
68
 
69
- //#endregion
70
69
  export { DataStoreError, extractSqlReason };
@@ -1,6 +1,6 @@
1
1
  import { Data } from "effect";
2
2
 
3
- //#region src/errors/DiscoveryError.ts
3
+ // src/errors/DiscoveryError.ts
4
4
  /**
5
5
  * Error raised when project discovery (glob, file read, or stat) fails.
6
6
  * @public
@@ -17,5 +17,4 @@ var DiscoveryError = class extends Data.TaggedError("DiscoveryError") {
17
17
  }
18
18
  };
19
19
 
20
- //#endregion
21
20
  export { DiscoveryError };
@@ -1,6 +1,6 @@
1
1
  import { Data } from "effect";
2
2
 
3
- //#region src/errors/PathResolutionError.ts
3
+ // src/errors/PathResolutionError.ts
4
4
  /**
5
5
  * Error raised when the data directory path cannot be resolved.
6
6
  *
@@ -23,5 +23,4 @@ var PathResolutionError = class extends Data.TaggedError("PathResolutionError")
23
23
  }
24
24
  };
25
25
 
26
- //#endregion
27
26
  export { PathResolutionError };
@@ -1,6 +1,6 @@
1
1
  import { Data } from "effect";
2
2
 
3
- //#region src/errors/ProjectIdentityError.ts
3
+ // src/errors/ProjectIdentityError.ts
4
4
  /**
5
5
  * Raised at plugin / sidecar / MCP boot when the project's identity
6
6
  * cannot be resolved through the documented fallback chain. The error
@@ -25,5 +25,4 @@ var ProjectIdentityNotResolvableError = class extends Data.TaggedError("ProjectI
25
25
  }
26
26
  };
27
27
 
28
- //#endregion
29
28
  export { ProjectIdentityNotResolvableError };
@@ -1,6 +1,6 @@
1
1
  import { Data } from "effect";
2
2
 
3
- //#region src/errors/RunContextError.ts
3
+ // src/errors/RunContextError.ts
4
4
  /**
5
5
  * Surfaces unexpected git-command failures from `RunContext`. Expected
6
6
  * non-zero exits (e.g., "not a git repository") are absorbed via
@@ -31,5 +31,4 @@ var GitCommandError = class extends Data.TaggedError("GitCommandError") {
31
31
  */
32
32
  var ProbeMissError = class extends Data.TaggedError("ProbeMissError") {};
33
33
 
34
- //#endregion
35
34
  export { GitCommandError, ProbeMissError };
@@ -1,6 +1,6 @@
1
1
  import { Data } from "effect";
2
2
 
3
- //#region src/errors/TddErrors.ts
3
+ // src/errors/TddErrors.ts
4
4
  /** @public */
5
5
  var GoalNotFoundError = class extends Data.TaggedError("GoalNotFoundError") {
6
6
  constructor(args) {
@@ -62,5 +62,4 @@ var IllegalStatusTransitionError = class extends Data.TaggedError("IllegalStatus
62
62
  }
63
63
  };
64
64
 
65
- //#endregion
66
65
  export { BehaviorNotFoundError, GoalNotFoundError, IllegalStatusTransitionError, TddTaskAlreadyEndedError, TddTaskNotFoundError };
@@ -1,4 +1,4 @@
1
- //#region src/exit-code-for-tag.ts
1
+ // src/exit-code-for-tag.ts
2
2
  /**
3
3
  * Map a tagged-error `_tag` to the agent-agnostic sidecar exit-code
4
4
  * taxonomy. Unknown tags collapse to `5` (other unexpected defect).
@@ -14,5 +14,4 @@ const exitCodeForTag = (tag) => {
14
14
  }
15
15
  };
16
16
 
17
- //#endregion
18
17
  export { exitCodeForTag };