@vitest-agent/cli 4.1.6 → 4.1.7
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 +1 -1
- package/commands/db.js +1 -1
- package/commands/doctor.js +1 -1
- package/commands/record.js +2 -2
- package/commands/triage.js +1 -1
- package/commands/wrapup.js +1 -1
- package/lib/format-db-query.js +1 -1
- package/lib/render-failure.js +1 -1
- package/main.d.ts +2 -2
- package/main.js +5 -5
- package/package.json +14 -14
- package/tsdoc-metadata.json +1 -1
- package/version.js +1 -1
package/commands/agent.js
CHANGED
|
@@ -3,7 +3,7 @@ import { recordCommand } from "./record.js";
|
|
|
3
3
|
import { triageCommand } from "./triage.js";
|
|
4
4
|
import { wrapupCommand } from "./wrapup.js";
|
|
5
5
|
import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
6
|
-
import { CliExit } from "@effected/cli";
|
|
6
|
+
import { CliExit } from "@effected/cli-kit";
|
|
7
7
|
import { SidecarPlatformLive, endAgentEffect, registerAgentEffect, resolveHookPaths, resolveProjectKeyFromCwdEffect } from "@vitest-agent/engine";
|
|
8
8
|
import { Cause, Effect, Option } from "effect";
|
|
9
9
|
import { Argument, Command, Flag } from "effect/cli";
|
package/commands/db.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProjectDataLive, ProjectDir } from "../layers/project-data.js";
|
|
2
2
|
import { formatDbQuery } from "../lib/format-db-query.js";
|
|
3
|
-
import { Cancelled, CliExit, CliInteractive, Fmt } from "@effected/cli";
|
|
3
|
+
import { Cancelled, CliExit, CliInteractive, Fmt } from "@effected/cli-kit";
|
|
4
4
|
import { ConfigLive, DataStore, VitestAgentConfigFile, resolveDataPath } from "@vitest-agent/engine";
|
|
5
5
|
import { Console, Effect, FileSystem, Layer, Option, Schema } from "effect";
|
|
6
6
|
import { Argument, Command, Flag, Prompt } from "effect/cli";
|
package/commands/doctor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProjectDataLive, ProjectDir } from "../layers/project-data.js";
|
|
2
2
|
import { formatDoctor } from "../lib/format-doctor.js";
|
|
3
|
-
import { CliExit, CliFormat } from "@effected/cli";
|
|
3
|
+
import { CliExit, CliFormat } from "@effected/cli-kit";
|
|
4
4
|
import { DataReader, resolveDataPath } from "@vitest-agent/engine";
|
|
5
5
|
import { Effect, Option } from "effect";
|
|
6
6
|
import { Command, Flag } from "effect/cli";
|
package/commands/record.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { nowIso } from "./flag-defaults.js";
|
|
2
1
|
import { ProjectDataLive } from "../layers/project-data.js";
|
|
3
|
-
import {
|
|
2
|
+
import { nowIso } from "./flag-defaults.js";
|
|
3
|
+
import { CliExit, Fmt } from "@effected/cli-kit";
|
|
4
4
|
import { DataReader, DataStore, dispatchRecordTddArtifactEffect, recordRunWorkspaceChangesEffect, recordSessionEnd, recordSessionStart, recordTurnEffect } from "@vitest-agent/engine";
|
|
5
5
|
import { Effect, Option } from "effect";
|
|
6
6
|
import { Argument, Command, Flag } from "effect/cli";
|
package/commands/triage.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProjectDataLive } from "../layers/project-data.js";
|
|
2
|
-
import { CliFormat } from "@effected/cli";
|
|
2
|
+
import { CliFormat } from "@effected/cli-kit";
|
|
3
3
|
import { formatTriageEffect } from "@vitest-agent/engine";
|
|
4
4
|
import { Effect } from "effect";
|
|
5
5
|
import { Command, Flag } from "effect/cli";
|
package/commands/wrapup.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProjectDataLive } from "../layers/project-data.js";
|
|
2
|
-
import { CliFormat } from "@effected/cli";
|
|
2
|
+
import { CliFormat } from "@effected/cli-kit";
|
|
3
3
|
import { formatWrapupEffect } from "@vitest-agent/engine";
|
|
4
4
|
import { Effect } from "effect";
|
|
5
5
|
import { Command, Flag } from "effect/cli";
|
package/lib/format-db-query.js
CHANGED
package/lib/render-failure.js
CHANGED
package/main.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Distribution } from "@effected/
|
|
1
|
+
import { Distribution } from "@effected/kit";
|
|
2
2
|
/**
|
|
3
3
|
* Options the carrier's bin shim passes to {@link main}.
|
|
4
4
|
*
|
|
@@ -17,7 +17,7 @@ export interface MainOptions {
|
|
|
17
17
|
* re-exported from `index.ts` — a library consumer's import graph must not
|
|
18
18
|
* pull in the process-owning module.
|
|
19
19
|
*
|
|
20
|
-
* The one `@effected/cli` wiring: the root carries `CliAudience.flags()`
|
|
20
|
+
* The one `@effected/cli-kit` wiring: the root carries `CliAudience.flags()`
|
|
21
21
|
* (`--audience <human|agent|ci>`, `--human`, `--agent`, `--ci`), runs through
|
|
22
22
|
* `CliAudience.run`, and `CliRuntime.main`'s `env` option builds the
|
|
23
23
|
* `@effected/env` services (`Audience` with the `VITEST_AGENT_AUDIENCE`
|
package/main.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { CURRENT_CLI_VERSION } from "./version.js";
|
|
2
|
-
import { ProjectDir } from "./layers/project-data.js";
|
|
3
1
|
import { agentCommand } from "./commands/agent.js";
|
|
4
2
|
import { dbCommand } from "./commands/db.js";
|
|
5
3
|
import { doctorCommand } from "./commands/doctor.js";
|
|
4
|
+
import { ProjectDir } from "./layers/project-data.js";
|
|
6
5
|
import { renderFailure } from "./lib/render-failure.js";
|
|
7
6
|
import { plainVersionFormatter } from "./lib/version-formatter.js";
|
|
7
|
+
import { CURRENT_CLI_VERSION } from "./version.js";
|
|
8
8
|
import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
|
|
9
9
|
import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
10
|
-
import { CliAudience, CliRuntime } from "@effected/cli";
|
|
10
|
+
import { CliAudience, CliRuntime } from "@effected/cli-kit";
|
|
11
11
|
import { PathResolutionLive, resolveProjectDir } from "@vitest-agent/engine";
|
|
12
12
|
import { Layer } from "effect";
|
|
13
13
|
import { Command } from "effect/cli";
|
|
@@ -16,7 +16,7 @@ import { Command } from "effect/cli";
|
|
|
16
16
|
/**
|
|
17
17
|
* Assembled CLI program. Owns the process: resolves the project directory, wires the
|
|
18
18
|
* root platform (no database), and runs the root command through
|
|
19
|
-
* `@effected/cli`'s `CliRuntime.main` under `NodeRuntime.runMain`.
|
|
19
|
+
* `@effected/cli-kit`'s `CliRuntime.main` under `NodeRuntime.runMain`.
|
|
20
20
|
*
|
|
21
21
|
* `bin.ts` is the published bin shim (`#!/usr/bin/env node` +
|
|
22
22
|
* `main()`); this module is also published as the `./main` subpath so the
|
|
@@ -44,7 +44,7 @@ const rootCommand = Command.make("vitest-agent").pipe(Command.withSharedFlags(Cl
|
|
|
44
44
|
* re-exported from `index.ts` — a library consumer's import graph must not
|
|
45
45
|
* pull in the process-owning module.
|
|
46
46
|
*
|
|
47
|
-
* The one `@effected/cli` wiring: the root carries `CliAudience.flags()`
|
|
47
|
+
* The one `@effected/cli-kit` wiring: the root carries `CliAudience.flags()`
|
|
48
48
|
* (`--audience <human|agent|ci>`, `--human`, `--agent`, `--ci`), runs through
|
|
49
49
|
* `CliAudience.run`, and `CliRuntime.main`'s `env` option builds the
|
|
50
50
|
* `@effected/env` services (`Audience` with the `VITEST_AGENT_AUDIENCE`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/cli",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.7",
|
|
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": [
|
|
@@ -43,19 +43,19 @@
|
|
|
43
43
|
"vitest-agent": "bin/vitest-agent.js"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@effect/platform-node": "~4.1.
|
|
47
|
-
"@effect/sql-sqlite-node": "~4.1.
|
|
48
|
-
"@effected/cli": "^0.
|
|
49
|
-
"@effected/config-file": "^0.
|
|
50
|
-
"@effected/
|
|
51
|
-
"@effected/
|
|
52
|
-
"@effected/
|
|
53
|
-
"@effected/walker": "^0.
|
|
54
|
-
"@effected/workspaces": "^0.
|
|
55
|
-
"@vitest-agent/engine": "3.1.
|
|
56
|
-
"@vitest-agent/sdk": "9.0.
|
|
57
|
-
"@vitest-agent/sidecar": "2.2.
|
|
58
|
-
"effect": "~4.1.
|
|
46
|
+
"@effect/platform-node": "~4.1.2",
|
|
47
|
+
"@effect/sql-sqlite-node": "~4.1.2",
|
|
48
|
+
"@effected/cli-kit": "^0.26.0",
|
|
49
|
+
"@effected/config-file": "^0.24.0",
|
|
50
|
+
"@effected/env": "^0.10.0",
|
|
51
|
+
"@effected/glob": "^0.18.0",
|
|
52
|
+
"@effected/kit": "^0.12.0",
|
|
53
|
+
"@effected/walker": "^0.25.0",
|
|
54
|
+
"@effected/workspaces": "^0.42.0",
|
|
55
|
+
"@vitest-agent/engine": "3.1.1",
|
|
56
|
+
"@vitest-agent/sdk": "9.0.3",
|
|
57
|
+
"@vitest-agent/sidecar": "2.2.18",
|
|
58
|
+
"effect": "~4.1.2"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=24.11.0"
|
package/tsdoc-metadata.json
CHANGED