@agent-inspect/vitest 3.5.0 → 3.5.2

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.
Files changed (2) hide show
  1. package/README.md +65 -0
  2. package/package.json +4 -3
package/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # @agent-inspect/vitest
2
+
3
+ Vitest reporter — failed tests emit local trace artifacts; passing tests stay quiet.
4
+
5
+ ## When to use
6
+
7
+ - Vitest suites that run instrumented agents
8
+ - You want PR artifacts on failure without changing test assertions
9
+
10
+ ## When not to use
11
+
12
+ - Jest (use `@agent-inspect/jest`)
13
+ - Tests without AgentInspect traces
14
+
15
+ ## Install
16
+
17
+ ```bash
18
+ npm install agent-inspect @agent-inspect/vitest vitest
19
+ ```
20
+
21
+ **Peer:** `vitest@^2.1.0`
22
+
23
+ ## Example
24
+
25
+ ```ts
26
+ // vitest.config.ts
27
+ import { defineConfig } from "vitest/config";
28
+ import agentInspectReporter from "@agent-inspect/vitest";
29
+
30
+ export default defineConfig({
31
+ test: {
32
+ reporters: ["default", agentInspectReporter({ traceDir: ".agent-inspect" })],
33
+ },
34
+ });
35
+ ```
36
+
37
+ ## Privacy
38
+
39
+ - Writes traces locally on failure only (by default)
40
+ - No upload
41
+
42
+ ## API
43
+
44
+ Default export: Vitest reporter factory.
45
+
46
+ ## CLI
47
+
48
+ After failure: `npx agent-inspect report <run-id>`
49
+
50
+ ## Docs
51
+
52
+ - [CI artifacts](https://github.com/rajudandigam/agent-inspect/blob/main/docs/CI-ARTIFACTS.md)
53
+
54
+ ## Troubleshooting
55
+
56
+ - **No artifact:** Ensure trace was written during test and reporter `traceDir` matches
57
+ - **Original errors preserved:** Reporter does not swallow Vitest failures
58
+
59
+ ## Version
60
+
61
+ `agent-inspect@3.5.x` · Vitest `^2.1.0`
62
+
63
+ ## License
64
+
65
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-inspect/vitest",
3
- "version": "3.5.0",
3
+ "version": "3.5.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Optional Vitest reporter for AgentInspect local trace artifacts",
@@ -12,7 +12,7 @@
12
12
  "bugs": {
13
13
  "url": "https://github.com/rajudandigam/agent-inspect/issues"
14
14
  },
15
- "homepage": "https://github.com/rajudandigam/agent-inspect#readme",
15
+ "homepage": "https://github.com/rajudandigam/agent-inspect/tree/main/packages/vitest",
16
16
  "sideEffects": false,
17
17
  "main": "./dist/index.cjs",
18
18
  "module": "./dist/index.mjs",
@@ -30,13 +30,14 @@
30
30
  }
31
31
  },
32
32
  "files": [
33
+ "README.md",
33
34
  "dist"
34
35
  ],
35
36
  "peerDependencies": {
36
37
  "vitest": "^2.1.0"
37
38
  },
38
39
  "dependencies": {
39
- "agent-inspect": "3.5.0"
40
+ "agent-inspect": "3.5.2"
40
41
  },
41
42
  "devDependencies": {
42
43
  "vitest": "^2.1.8"