@vitest-agent/engine 3.0.0 → 3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitest-agent/engine",
3
- "version": "3.0.0",
3
+ "version": "3.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": [
@@ -40,25 +40,25 @@
40
40
  "./package.json": "./package.json"
41
41
  },
42
42
  "dependencies": {
43
- "@effect/platform-node": "^4.0.6",
44
- "@effect/sql-sqlite-node": "^4.0.6",
45
- "@effected/app": "^0.28.0",
46
- "@effected/cli": "^0.23.0",
47
- "@effected/config-file": "^0.21.0",
48
- "@effected/engine": "^0.9.0",
49
- "@effected/env": "^0.6.0",
50
- "@effected/git": "^0.26.0",
51
- "@effected/glob": "^0.15.0",
52
- "@effected/jsonc": "^0.20.1",
53
- "@effected/package-json": "^0.26.1",
54
- "@effected/store": "^0.20.0",
55
- "@effected/toml": "^0.16.0",
56
- "@effected/walker": "^0.21.0",
57
- "@effected/workspaces": "^0.39.1",
58
- "@effected/xdg": "^0.16.0",
59
- "@effected/yaml": "^0.25.1",
60
- "@vitest-agent/sdk": "9.0.0",
61
- "effect": "^4.0.6"
43
+ "@effect/platform-node": "^4.0.7",
44
+ "@effect/sql-sqlite-node": "^4.0.7",
45
+ "@effected/app": "^0.29.0",
46
+ "@effected/cli": "^0.24.0",
47
+ "@effected/config-file": "^0.22.0",
48
+ "@effected/engine": "^0.10.0",
49
+ "@effected/env": "^0.7.0",
50
+ "@effected/git": "^0.27.0",
51
+ "@effected/glob": "^0.16.0",
52
+ "@effected/jsonc": "^0.21.0",
53
+ "@effected/package-json": "^0.27.0",
54
+ "@effected/store": "^0.21.0",
55
+ "@effected/toml": "^0.17.0",
56
+ "@effected/walker": "^0.22.0",
57
+ "@effected/workspaces": "^0.40.0",
58
+ "@effected/xdg": "^0.17.0",
59
+ "@effected/yaml": "^0.26.0",
60
+ "@vitest-agent/sdk": "9.0.1",
61
+ "effect": "^4.0.7"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=24.11.0"
@@ -2,6 +2,7 @@ import { DataStore } from "../services/DataStore.js";
2
2
  import { resolveSessionForRecording } from "./resolve-session-for-recording.js";
3
3
  import { TurnPayload } from "@vitest-agent/sdk";
4
4
  import { Effect, Schema } from "effect";
5
+ import { ErrorText } from "@effected/engine";
5
6
 
6
7
  // src/programs/record-turn.ts
7
8
  /**
@@ -19,7 +20,7 @@ const parseAndValidateTurnPayload = (raw) => {
19
20
  } catch (e) {
20
21
  return {
21
22
  ok: false,
22
- error: `Invalid JSON: ${e instanceof Error ? e.message : String(e)}`
23
+ error: `Invalid JSON: ${ErrorText.describe(e)}`
23
24
  };
24
25
  }
25
26
  const decoded = Schema.decodeUnknownResult(TurnPayload)(parsed);
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.59.4"
8
+ "packageVersion": "7.60.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -2,22 +2,17 @@ import { repositoryUrlOf } from "./package-manifest.js";
2
2
  import { gitUrlToProjectKey } from "@vitest-agent/sdk";
3
3
  import { Effect, FileSystem, Option, Path, Result } from "effect";
4
4
  import { AppDirs } from "@effected/xdg";
5
- import { dirname, join } from "node:path";
5
+ import { join } from "node:path";
6
6
  import { Walker } from "@effected/walker";
7
7
  import { LenientManifest } from "@effected/package-json";
8
- import { existsSync, readFileSync } from "node:fs";
8
+ import { readFileSync } from "node:fs";
9
+ import { nodeWalkerSyncOps } from "@effected/walker/node-sync";
9
10
 
10
11
  // src/utils/resolve-project-key-from-cwd.ts
11
12
  const PACKAGE_JSON = "package.json";
12
13
  const findNearestPackageJson = (startDir) => {
13
- let dir = startDir;
14
- while (true) {
15
- const candidate = join(dir, PACKAGE_JSON);
16
- if (existsSync(candidate)) return candidate;
17
- const parent = dirname(dir);
18
- if (parent === dir) return null;
19
- dir = parent;
20
- }
14
+ const dirs = Walker.ascendSync(startDir, { path: nodeWalkerSyncOps.path });
15
+ return Option.getOrNull(Walker.findUpwardSync(dirs, (dir) => [join(dir, PACKAGE_JSON)], nodeWalkerSyncOps));
21
16
  };
22
17
  /**
23
18
  * The key a `package.json` body names: the canonical `host__path` form of
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
2
  /** Build-time injected package version (see architecture.md D36). @public */
3
- const CURRENT_ENGINE_VERSION = "3.0.0";
3
+ const CURRENT_ENGINE_VERSION = "3.0.1";
4
4
 
5
5
  export { CURRENT_ENGINE_VERSION };