@vitest-agent/engine 3.2.1 → 3.2.3
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 +12 -0
- package/package.json +21 -21
- package/testing.d.ts +5 -9
- package/version.js +1 -1
package/index.d.ts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vitest-agent/engine
|
|
3
|
+
*
|
|
4
|
+
* Platform-dependent half of the former `@vitest-agent/sdk` (issue #412):
|
|
5
|
+
* Effect services, Live layers, the SQLite data layer, migrations, the
|
|
6
|
+
* shared triage/wrapup programs, and platform resolution. Consumed by
|
|
7
|
+
* `@vitest-agent/cli`, `@vitest-agent/mcp` and `@vitest-agent/plugin`.
|
|
8
|
+
* Schemas, contracts, errors, formatters and pure utilities stay in
|
|
9
|
+
* `@vitest-agent/sdk`.
|
|
10
|
+
*
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
*/
|
|
1
13
|
import { ConfigCodecError, ConfigFileShape, ConfigReadError } from "@effected/config-file";
|
|
2
14
|
import { AppDirs, AppDirs as AppDirs$1, AppDirsError, AppDirsError as AppDirsError$1, AppDirsSegmentError, XdgEnvError } from "@effected/xdg";
|
|
3
15
|
import { Context, Effect, FileSystem, Layer, LogLevel, Option, Path, Schema } from "effect";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/engine",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared services, layers, SQLite data layer, migrations and platform resolution for the vitest-agent CLI and MCP server.",
|
|
6
6
|
"keywords": [
|
|
@@ -40,26 +40,26 @@
|
|
|
40
40
|
"./package.json": "./package.json"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@effect/platform-node": "
|
|
44
|
-
"@effect/sql-sqlite-node": "
|
|
45
|
-
"@effected/app": "^0.
|
|
46
|
-
"@effected/cli-kit": "^0.
|
|
47
|
-
"@effected/config-file": "^0.
|
|
48
|
-
"@effected/env": "^0.
|
|
49
|
-
"@effected/git": "^0.
|
|
50
|
-
"@effected/glob": "^0.
|
|
51
|
-
"@effected/jsonc": "^0.
|
|
52
|
-
"@effected/kit": "^0.
|
|
53
|
-
"@effected/memfs": "^0.
|
|
54
|
-
"@effected/package-json": "^0.
|
|
55
|
-
"@effected/store": "^0.
|
|
56
|
-
"@effected/toml": "^0.
|
|
57
|
-
"@effected/walker": "^0.
|
|
58
|
-
"@effected/workspaces": "^0.
|
|
59
|
-
"@effected/xdg": "^0.
|
|
60
|
-
"@effected/yaml": "^0.
|
|
61
|
-
"@vitest-agent/sdk": "9.0.
|
|
62
|
-
"effect": "
|
|
43
|
+
"@effect/platform-node": "4.1.3",
|
|
44
|
+
"@effect/sql-sqlite-node": "4.1.3",
|
|
45
|
+
"@effected/app": "^0.32.1",
|
|
46
|
+
"@effected/cli-kit": "^0.28.1",
|
|
47
|
+
"@effected/config-file": "^0.27.1",
|
|
48
|
+
"@effected/env": "^0.12.0",
|
|
49
|
+
"@effected/git": "^0.32.0",
|
|
50
|
+
"@effected/glob": "^0.21.0",
|
|
51
|
+
"@effected/jsonc": "^0.25.0",
|
|
52
|
+
"@effected/kit": "^0.14.0",
|
|
53
|
+
"@effected/memfs": "^0.26.0",
|
|
54
|
+
"@effected/package-json": "^0.32.1",
|
|
55
|
+
"@effected/store": "^0.25.0",
|
|
56
|
+
"@effected/toml": "^0.20.0",
|
|
57
|
+
"@effected/walker": "^0.28.0",
|
|
58
|
+
"@effected/workspaces": "^0.46.0",
|
|
59
|
+
"@effected/xdg": "^0.20.1",
|
|
60
|
+
"@effected/yaml": "^0.30.0",
|
|
61
|
+
"@vitest-agent/sdk": "9.0.4",
|
|
62
|
+
"effect": "4.1.3"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=24.11.0"
|
package/testing.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { Agent, Agent as Agent$1, AgentId, AgentNotFoundError, AgentNotFoundError as AgentNotFoundError$1, AgentReport, AgentReport as AgentReport$1, ArtifactKind, ArtifactKind as ArtifactKind$1, ArtifactKind as ArtifactKind$2, ArtifactSuite, ArtifactSuite as ArtifactSuite$1, ArtifactSuite as ArtifactSuite$2, BehaviorDetail, BehaviorDetail as BehaviorDetail$1, BehaviorNotFoundError, BehaviorNotFoundError as BehaviorNotFoundError$1, BehaviorRow, BehaviorRow as BehaviorRow$1, BehaviorStatus, BehaviorStatus as BehaviorStatus$1, CacheManifest, CacheManifest as CacheManifest$1, ChatId, CitedArtifact, CitedArtifact as CitedArtifact$1, CoverageBaselines, CoverageBaselines as CoverageBaselines$1, CoverageReport, CoverageReport as CoverageReport$1, DataStoreError, DataStoreError as DataStoreError$1, FileCoverageReport, FileCoverageReport as FileCoverageReport$1, GoalDetail, GoalDetail as GoalDetail$1, GoalNotFoundError, GoalNotFoundError as GoalNotFoundError$1, GoalRow, GoalRow as GoalRow$1, GoalStatus, GoalStatus as GoalStatus$1, HistoryRecord, HistoryRecord as HistoryRecord$1, IdempotencyHit, IdempotencyHit as IdempotencyHit$1, IllegalStatusTransitionEntity, IllegalStatusTransitionError, IllegalStatusTransitionError as IllegalStatusTransitionError$1, Phase, Phase as Phase$1, RegistrationConflictError, RegistrationConflictError as RegistrationConflictError$1, ResolvedThresholds, ResolvedThresholds as ResolvedThresholds$1, RunRetentionPolicy, RunRetentionPolicy as RunRetentionPolicy$1, StrayOutput, TddTaskAlreadyEndedError, TddTaskAlreadyEndedError as TddTaskAlreadyEndedError$1, TddTaskEndOutcome, TddTaskNotFoundError, TddTaskNotFoundError as TddTaskNotFoundError$1, TrendEntry, TrendEntry as TrendEntry$1, TrendRecord, TrendRecord as TrendRecord$1 } from "@vitest-agent/sdk";
|
|
2
2
|
import { Context, Effect, Layer, Option } from "effect";
|
|
3
|
-
import "@effect/platform-node/NodeServices";
|
|
4
|
-
import "@effect/sql-sqlite-node/SqliteClient";
|
|
5
3
|
import { StoreError, StoreMigrationError } from "@effected/store";
|
|
6
|
-
import "effect/sql/SqlClient";
|
|
7
4
|
import { SqlError } from "effect/sql/SqlError";
|
|
8
|
-
import "@effected/env";
|
|
9
5
|
/** @public */
|
|
10
6
|
interface CreateGoalInput {
|
|
11
7
|
readonly tddTaskId: number;
|
|
@@ -348,7 +344,7 @@ interface WriteTddPhaseOutput {
|
|
|
348
344
|
/** @public */
|
|
349
345
|
interface WriteTddArtifactInput {
|
|
350
346
|
readonly phaseId: number;
|
|
351
|
-
readonly artifactKind: ArtifactKind$
|
|
347
|
+
readonly artifactKind: ArtifactKind$1;
|
|
352
348
|
readonly fileId?: number;
|
|
353
349
|
readonly testCaseId?: number;
|
|
354
350
|
readonly testRunId?: number;
|
|
@@ -356,7 +352,7 @@ interface WriteTddArtifactInput {
|
|
|
356
352
|
readonly diffExcerpt?: string;
|
|
357
353
|
readonly recordedAt: string;
|
|
358
354
|
/** Issue #363: explicit suite marker. Defaults to `"vitest"` when omitted. */
|
|
359
|
-
readonly suite?: ArtifactSuite$
|
|
355
|
+
readonly suite?: ArtifactSuite$1;
|
|
360
356
|
}
|
|
361
357
|
/** @public */
|
|
362
358
|
interface WriteCommitInput {
|
|
@@ -892,13 +888,13 @@ interface TddArtifactRow {
|
|
|
892
888
|
readonly tddTaskId: number;
|
|
893
889
|
readonly phaseId: number;
|
|
894
890
|
readonly phaseName: Phase$1;
|
|
895
|
-
readonly artifactKind: ArtifactKind$
|
|
891
|
+
readonly artifactKind: ArtifactKind$2;
|
|
896
892
|
readonly behaviorId: number | null;
|
|
897
893
|
readonly testCaseId: number | null;
|
|
898
894
|
readonly testRunId: number | null;
|
|
899
895
|
readonly testFirstFailureRunId: number | null;
|
|
900
896
|
readonly recordedAt: string;
|
|
901
|
-
readonly suite: ArtifactSuite$
|
|
897
|
+
readonly suite: ArtifactSuite$2;
|
|
902
898
|
}
|
|
903
899
|
/** @public */
|
|
904
900
|
interface TagInventoryRow {
|
|
@@ -1092,7 +1088,7 @@ declare const DataReader_base: Context.ServiceClass<DataReader, "vitest-agent/Da
|
|
|
1092
1088
|
*/
|
|
1093
1089
|
readonly listTddArtifactsForTask: (input: {
|
|
1094
1090
|
readonly tddTaskId: number;
|
|
1095
|
-
readonly artifactKind?: ArtifactKind$
|
|
1091
|
+
readonly artifactKind?: ArtifactKind$2;
|
|
1096
1092
|
readonly phaseId?: number;
|
|
1097
1093
|
readonly behaviorId?: number;
|
|
1098
1094
|
readonly limit?: number;
|
package/version.js
CHANGED