@vitest-agent/cli 1.0.0 → 1.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.
@@ -27,7 +27,7 @@ const cli = Command.run(rootCommand, {
27
27
  const logLevel = resolveLogLevel();
28
28
  const logFile = resolveLogFile();
29
29
  // @vitest-agent/sdk and writes a single stderr line on mismatch.
30
- if ("1.0.0" !== "0.0.0" && CURRENT_SDK_VERSION !== "1.0.0") process.stderr.write(`[@vitest-agent/cli] version drift: @vitest-agent/cli@${CURRENT_CLI_VERSION} with @vitest-agent/sdk@${CURRENT_SDK_VERSION}. Reinstall @vitest-agent/* packages so versions match.\n`);
30
+ if ("1.0.1" !== "0.0.0" && CURRENT_SDK_VERSION !== "1.0.1") process.stderr.write(`[@vitest-agent/cli] version drift: @vitest-agent/cli@${CURRENT_CLI_VERSION} with @vitest-agent/sdk@${CURRENT_SDK_VERSION}. Reinstall @vitest-agent/* packages so versions match.\n`);
31
31
  const projectDir = process.env.VITEST_AGENT_PROJECT_DIR ?? process.cwd();
32
32
  const main = resolveDataPath(projectDir).pipe(Effect.flatMap((dbPath) => Effect.suspend(() => cli(process.argv)).pipe(Effect.provide(CliLive(dbPath, logLevel, logFile)))), Effect.provide(PathResolutionLive(projectDir)), Effect.provide(NodeContext.layer), Effect.catchAllCause((cause) => {
33
33
  if (Cause.defects(cause).length > 0) return Console.error(`vitest-agent: ${formatFatalError(cause)}`).pipe(Effect.andThen(Effect.failCause(cause)));
package/index.d.ts CHANGED
@@ -17,7 +17,7 @@ import { DataReader, DataStore, PerClientSessionMapWriter, ProjectIdentityNotRes
17
17
  * @param logFile - optional path for structured log output
18
18
  * @public
19
19
  */
20
- declare const CliLive: (dbPath: string, logLevel?: LogLevel.LogLevel, logFile?: string) => Layer.Layer<import("@vitest-agent/sdk").DataStore | import("@vitest-agent/sdk").DataReader | import("@effect/sql/SqlClient").SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient | NodeContext.NodeContext | import("@vitest-agent/sdk").ProjectDiscovery | import("@vitest-agent/sdk").HistoryTracker | import("@vitest-agent/sdk").DetailResolver | import("@vitest-agent/sdk").EnvironmentDetector | import("@vitest-agent/sdk").ExecutorResolver | import("@vitest-agent/sdk").FormatSelector | import("@vitest-agent/sdk").OutputRenderer, import("effect/ConfigError").ConfigError | import("@effect/sql/SqlError").SqlError | SqliteMigrator.MigrationError, never>;
20
+ declare const CliLive: (dbPath: string, logLevel?: LogLevel.LogLevel, logFile?: string) => Layer.Layer<import("@vitest-agent/sdk").ProjectDiscovery | import("@vitest-agent/sdk").HistoryTracker | import("@vitest-agent/sdk").DataReader | import("@vitest-agent/sdk").FormatSelector | import("@vitest-agent/sdk").ExecutorResolver | import("@vitest-agent/sdk").DetailResolver | import("@vitest-agent/sdk").EnvironmentDetector | import("@vitest-agent/sdk").OutputRenderer | import("@effect/sql/SqlClient").SqlClient | import("@vitest-agent/sdk").DataStore | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient | NodeContext.NodeContext, import("@effect/sql/SqlError").SqlError | SqliteMigrator.MigrationError | import("effect/ConfigError").ConfigError, never>;
21
21
  //#endregion
22
22
  //#region src/layers/SidecarLive.d.ts
23
23
  /**
@@ -43,7 +43,7 @@ interface SidecarPaths {
43
43
  * @param paths - the three SQLite database paths to open
44
44
  * @public
45
45
  */
46
- declare const SidecarLive: (paths: SidecarPaths) => Layer.Layer<import("@vitest-agent/sdk").DataStore | import("@vitest-agent/sdk").DataReader | import("@vitest-agent/sdk").PerClientSessionMapWriter | import("@vitest-agent/sdk").RunContext$ | NodeContext.NodeContext | import("@vitest-agent/sdk").PerClientSessionMapReader | import("@vitest-agent/sdk").DiscoveryRegistry, import("effect/ConfigError").ConfigError | import("@effect/sql/SqlError").SqlError | SqliteMigrator.MigrationError, never>;
46
+ declare const SidecarLive: (paths: SidecarPaths) => Layer.Layer<import("@vitest-agent/sdk").DataReader | import("@vitest-agent/sdk").DataStore | NodeContext.NodeContext | import("@vitest-agent/sdk").PerClientSessionMapWriter | import("@vitest-agent/sdk").RunContext$ | import("@vitest-agent/sdk").PerClientSessionMapReader | import("@vitest-agent/sdk").DiscoveryRegistry, import("@effect/sql/SqlError").SqlError | SqliteMigrator.MigrationError | import("effect/ConfigError").ConfigError, never>;
47
47
  //#endregion
48
48
  //#region src/lib/internal-register-agent.d.ts
49
49
  /**
@@ -102,7 +102,7 @@ declare const registerAgentEffect: (input: RegisterAgentInput) => Effect.Effect<
102
102
  mainAgentId: string;
103
103
  idempotencyKey: string;
104
104
  idempotencyHit: boolean;
105
- }, import("@vitest-agent/sdk").DataStoreError | import("@vitest-agent/sdk").RegistrationConflictError, DataStore | DataReader | PerClientSessionMapWriter | import("@vitest-agent/sdk").RunContext$>;
105
+ }, import("@vitest-agent/sdk").DataStoreError | import("@vitest-agent/sdk").RegistrationConflictError, DataReader | DataStore | PerClientSessionMapWriter | import("@vitest-agent/sdk").RunContext$>;
106
106
  //#endregion
107
107
  //#region src/lib/sidecar-paths.d.ts
108
108
  /**
package/index.js CHANGED
@@ -12,7 +12,7 @@ import { DATA_DB_FILENAME, REGISTRY_DB_FILENAME, SESSIONS_DB_FILENAME, resolvePr
12
12
  *
13
13
  * @public
14
14
  */
15
- const CURRENT_CLI_VERSION = "1.0.0";
15
+ const CURRENT_CLI_VERSION = "1.0.1";
16
16
 
17
17
  //#endregion
18
18
  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": "1.0.0",
3
+ "version": "1.0.1",
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": [
@@ -44,8 +44,8 @@
44
44
  "@effect/rpc": "^0.75.1",
45
45
  "@effect/sql": "^0.51.1",
46
46
  "@effect/sql-sqlite-node": "^0.52.0",
47
- "@vitest-agent/sdk": "1.0.0",
48
- "@vitest-agent/sidecar": "1.0.0",
47
+ "@vitest-agent/sdk": "1.0.1",
48
+ "@vitest-agent/sidecar": "1.0.1",
49
49
  "effect": "^3.21.4"
50
50
  },
51
51
  "engines": {