@vitest-agent/cli 2.0.9 → 2.0.11
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/commands/agent.js +6 -3
- package/index.js +1 -1
- package/package.json +3 -3
package/commands/agent.js
CHANGED
|
@@ -80,9 +80,10 @@ const registerAgentSubcommand = Command.make("register-agent", {
|
|
|
80
80
|
const projectKey = Option.isSome(opts.projectKeyOverride) ? opts.projectKeyOverride.value : resolveProjectKeyFromCwd(opts.cwd);
|
|
81
81
|
const perProjectDbPath = join(resolveProjectDataDir(projectKey), DATA_DB_FILENAME);
|
|
82
82
|
const registryDbPath = join(resolveRegistryDir(), REGISTRY_DB_FILENAME);
|
|
83
|
+
const sessionMapDbPath = yield* resolveSessionMapPath().pipe(Effect.catchCause(mapDefectToExit));
|
|
83
84
|
const sidecar = SidecarLive({
|
|
84
85
|
perProjectDbPath,
|
|
85
|
-
sessionMapDbPath
|
|
86
|
+
sessionMapDbPath,
|
|
86
87
|
registryDbPath
|
|
87
88
|
});
|
|
88
89
|
const result = yield* registerAgentEffect({
|
|
@@ -115,11 +116,13 @@ const endAgentSubcommand = Command.make("end-agent", {
|
|
|
115
116
|
cwd: endCwdOpt,
|
|
116
117
|
projectKeyOverride: endProjectKeyOverrideOpt
|
|
117
118
|
}, (opts) => Effect.gen(function* () {
|
|
118
|
-
const
|
|
119
|
+
const projectKey = Option.isSome(opts.projectKeyOverride) ? opts.projectKeyOverride.value : resolveProjectKeyFromCwd(opts.cwd);
|
|
120
|
+
const perProjectDbPath = join(resolveProjectDataDir(projectKey), DATA_DB_FILENAME);
|
|
119
121
|
const registryDbPath = join(resolveRegistryDir(), REGISTRY_DB_FILENAME);
|
|
122
|
+
const sessionMapDbPath = yield* resolveSessionMapPath().pipe(Effect.catchCause(mapDefectToExit));
|
|
120
123
|
const sidecar = SidecarLive({
|
|
121
124
|
perProjectDbPath,
|
|
122
|
-
sessionMapDbPath
|
|
125
|
+
sessionMapDbPath,
|
|
123
126
|
registryDbPath
|
|
124
127
|
});
|
|
125
128
|
const endedAt = Option.isSome(opts.endedAt) ? opts.endedAt.value : Math.floor(Date.now() / 1e3);
|
package/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { DATA_DB_FILENAME, REGISTRY_DB_FILENAME, SESSIONS_DB_FILENAME, resolvePr
|
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
const CURRENT_CLI_VERSION = "2.0.
|
|
14
|
+
const CURRENT_CLI_VERSION = "2.0.11";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
export { CURRENT_CLI_VERSION, CliLive, DATA_DB_FILENAME, REGISTRY_DB_FILENAME, SESSIONS_DB_FILENAME, SidecarLive, registerAgentEffect, resolveProjectDataDir, resolveRegistryDir, resolveSessionMapPath };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "On-demand CLI for vitest-agent. Reads cached test data and reports status, overview, coverage, history, trends, and cache health.",
|
|
6
6
|
"keywords": [
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@effect/platform-node": "4.0.0-beta.101",
|
|
42
42
|
"@effect/sql-sqlite-node": "4.0.0-beta.101",
|
|
43
|
-
"@vitest-agent/sdk": "2.0.
|
|
44
|
-
"@vitest-agent/sidecar": "2.0.
|
|
43
|
+
"@vitest-agent/sdk": "2.0.11",
|
|
44
|
+
"@vitest-agent/sidecar": "2.0.3",
|
|
45
45
|
"effect": "4.0.0-beta.101"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|