@vitest-agent/sdk 7.0.4 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dispatch.d.ts +0 -6
- package/errors/AgentErrors.js +1 -2
- package/errors/DataStoreError.js +1 -2
- package/errors/DiscoveryError.js +1 -2
- package/errors/PathResolutionError.js +1 -2
- package/errors/ProjectIdentityError.js +1 -2
- package/errors/RunContextError.js +1 -2
- package/errors/TddErrors.js +1 -2
- package/exit-code-for-tag.js +1 -2
- package/index.d.ts +108 -141
- package/index.js +2 -2
- package/internal-inject-env.js +1 -2
- package/package.json +2 -2
- package/schemas/5.0/run.json +75 -135
- package/schemas/Agent.js +1 -2
- package/schemas/AgentReport.js +1 -2
- package/schemas/Baselines.js +1 -2
- package/schemas/CacheManifest.js +1 -2
- package/schemas/ChannelEvent.js +1 -2
- package/schemas/Common.js +1 -2
- package/schemas/Config.js +73 -7
- package/schemas/ConsoleLeaks.js +1 -2
- package/schemas/Coverage.js +1 -2
- package/schemas/CoverageLevel.js +1 -2
- package/schemas/CoverageTargets.js +1 -2
- package/schemas/History.js +1 -2
- package/schemas/Identity.js +1 -2
- package/schemas/Options.js +32 -5
- package/schemas/RenderState.js +1 -2
- package/schemas/RunEvent.js +1 -2
- package/schemas/RunReportFile.js +1 -2
- package/schemas/StrayOutput.js +1 -2
- package/schemas/Tdd.js +1 -2
- package/schemas/TestArtifacts.js +1 -2
- package/schemas/Thresholds.js +1 -2
- package/schemas/Transport.js +1 -2
- package/schemas/Trends.js +1 -2
- package/schemas/turns/FileEditPayload.js +1 -2
- package/schemas/turns/HookFirePayload.js +1 -2
- package/schemas/turns/HypothesisPayload.js +1 -2
- package/schemas/turns/NotePayload.js +1 -2
- package/schemas/turns/ToolCallPayload.js +1 -2
- package/schemas/turns/ToolResultPayload.js +1 -2
- package/schemas/turns/UserPromptPayload.js +1 -2
- package/schemas/turns/index.js +1 -2
- package/sidecar-dispatch.js +1 -2
- package/utils/ansi.js +1 -2
- package/utils/build-report.js +1 -2
- package/utils/canonicalize-git-url.js +1 -2
- package/utils/classify-test.js +1 -2
- package/utils/coerce-error-text.js +1 -2
- package/utils/compress-lines.js +1 -2
- package/utils/compute-trend.js +1 -2
- package/utils/console-leaks.js +1 -2
- package/utils/detect-non-default-discover-strategy.js +1 -2
- package/utils/detect-pm.js +1 -2
- package/utils/detect-timeout.js +1 -2
- package/utils/format-console.js +1 -2
- package/utils/format-fatal-error.js +1 -2
- package/utils/format-gfm.js +1 -2
- package/utils/format-scoped-coverage-note.js +1 -2
- package/utils/function-boundary.js +1 -2
- package/utils/hyperlink.js +1 -2
- package/utils/match-vitest-command.js +1 -2
- package/utils/normalize-workspace-key.js +1 -2
- package/utils/posix-path.js +1 -2
- package/utils/probe-host-metadata.js +1 -2
- package/utils/safe-filename.js +1 -2
- package/utils/stray-output.js +1 -2
- package/utils/test-location.js +1 -2
- package/utils/validate-coverage-targets-shape.js +1 -2
- package/utils/validate-phase-transition.js +1 -2
- 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
|
package/errors/AgentErrors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Data } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
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 };
|
package/errors/DataStoreError.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Data } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
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 };
|
package/errors/DiscoveryError.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Data } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|
package/errors/TddErrors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Data } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
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 };
|
package/exit-code-for-tag.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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 };
|