@vitest-agent/engine 2.0.0 → 2.0.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 +1 -1
- package/layers/ConfigLive.js +2 -1
- package/layers/DataReaderLive.js +4 -3
- package/package.json +9 -9
- package/sql/assemblers.js +2 -1
- package/tsdoc-metadata.json +1 -1
- package/version.js +1 -1
package/index.d.ts
CHANGED
|
@@ -2752,7 +2752,7 @@ export interface ResolveDataPathOptions {
|
|
|
2752
2752
|
* @param options - Optional programmatic overrides.
|
|
2753
2753
|
* @public
|
|
2754
2754
|
*/
|
|
2755
|
-
export declare const resolveDataPath: (projectDir: string, options?: ResolveDataPathOptions) => Effect.Effect<
|
|
2755
|
+
export declare const resolveDataPath: (projectDir: string, options?: ResolveDataPathOptions) => Effect.Effect<string, import("@effected/xdg").AppDirsError | import("effect/PlatformError").PlatformError | import("@effected/config-file").ConfigReadError<import("@effected/config-file").ConfigCodecError>, AppDirs | FileSystem.FileSystem | VitestAgentConfigFile>;
|
|
2756
2756
|
/**
|
|
2757
2757
|
* Compute the project key for a workspace by reading `package.json`
|
|
2758
2758
|
* fields directly. Returns the canonical `host__path` form when a git
|
package/layers/ConfigLive.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { VitestAgentConfigFile } from "../services/Config.js";
|
|
2
|
-
import { ConfigFile, ConfigResolver, MergeStrategy
|
|
2
|
+
import { ConfigFile, ConfigResolver, MergeStrategy } from "@effected/config-file";
|
|
3
|
+
import { TomlCodec } from "@effected/config-file/toml";
|
|
3
4
|
import { VitestAgentConfig } from "@vitest-agent/sdk";
|
|
4
5
|
|
|
5
6
|
// src/layers/ConfigLive.ts
|
package/layers/DataReaderLive.js
CHANGED
|
@@ -319,7 +319,8 @@ const DataReaderLive = Layer.effect(DataReader, Effect.gen(function* () {
|
|
|
319
319
|
project,
|
|
320
320
|
updatedAt: tests.reduce((latest, t) => {
|
|
321
321
|
const ts = t.runs[0]?.timestamp ?? "";
|
|
322
|
-
|
|
322
|
+
if (ts > latest) return ts;
|
|
323
|
+
return latest;
|
|
323
324
|
}, "") || (/* @__PURE__ */ new Date()).toISOString(),
|
|
324
325
|
tests
|
|
325
326
|
};
|
|
@@ -852,8 +853,8 @@ const DataReaderLive = Layer.effect(DataReader, Effect.gen(function* () {
|
|
|
852
853
|
const manifest = {
|
|
853
854
|
updatedAt: rows.reduce((latest, r) => {
|
|
854
855
|
if (!r.last_run) return latest;
|
|
855
|
-
if (!latest) return r.last_run;
|
|
856
|
-
return
|
|
856
|
+
if (!latest || r.last_run > latest) return r.last_run;
|
|
857
|
+
return latest;
|
|
857
858
|
}, null) ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
858
859
|
cacheDir: dbPath,
|
|
859
860
|
projects
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/engine",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
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": [
|
|
@@ -42,19 +42,19 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@effect/platform-node": "^4.0.6",
|
|
44
44
|
"@effect/sql-sqlite-node": "^4.0.6",
|
|
45
|
-
"@effected/app": "^0.
|
|
46
|
-
"@effected/cli": "^0.22.
|
|
47
|
-
"@effected/config-file": "^0.
|
|
45
|
+
"@effected/app": "^0.27.0",
|
|
46
|
+
"@effected/cli": "^0.22.1",
|
|
47
|
+
"@effected/config-file": "^0.20.0",
|
|
48
48
|
"@effected/engine": "^0.8.0",
|
|
49
49
|
"@effected/env": "^0.5.0",
|
|
50
50
|
"@effected/glob": "^0.14.0",
|
|
51
51
|
"@effected/jsonc": "^0.20.0",
|
|
52
|
-
"@effected/store": "^0.
|
|
52
|
+
"@effected/store": "^0.19.0",
|
|
53
53
|
"@effected/toml": "^0.16.0",
|
|
54
|
-
"@effected/walker": "^0.
|
|
55
|
-
"@effected/workspaces": "^0.38.
|
|
56
|
-
"@effected/xdg": "^0.
|
|
57
|
-
"@effected/yaml": "^0.25.
|
|
54
|
+
"@effected/walker": "^0.20.0",
|
|
55
|
+
"@effected/workspaces": "^0.38.1",
|
|
56
|
+
"@effected/xdg": "^0.15.0",
|
|
57
|
+
"@effected/yaml": "^0.25.1",
|
|
58
58
|
"@vitest-agent/sdk": "8.0.0",
|
|
59
59
|
"effect": "^4.0.6"
|
|
60
60
|
},
|
package/sql/assemblers.js
CHANGED
|
@@ -11,7 +11,8 @@ import { historyKey } from "../services/HistoryTracker.js";
|
|
|
11
11
|
function assembleManifest(rows, dbPath) {
|
|
12
12
|
return {
|
|
13
13
|
updatedAt: rows.reduce((latest, row) => {
|
|
14
|
-
|
|
14
|
+
if (row.timestamp > latest) return row.timestamp;
|
|
15
|
+
return latest;
|
|
15
16
|
}, (/* @__PURE__ */ new Date(0)).toISOString()),
|
|
16
17
|
cacheDir: dbPath,
|
|
17
18
|
projects: rows.map((row) => {
|
package/tsdoc-metadata.json
CHANGED
package/version.js
CHANGED