vite-plugin-agent-tail 0.3.0 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +5 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -2,10 +2,12 @@
2
2
 
3
3
  Vite plugin for [agent-tail](https://agent-tail.vercel.app/) — captures browser `console.log`, `console.warn`, `console.error`, unhandled errors, and unhandled promise rejections to log files on disk during development.
4
4
 
5
+ > **Tip:** Install the umbrella [`agent-tail`](https://www.npmjs.com/package/agent-tail) package to get the CLI, Vite plugin, and Next.js plugin in one install: `npm install -D agent-tail`
6
+
5
7
  ## Install
6
8
 
7
9
  ```bash
8
- npm install -D vite-plugin-agent-tail
10
+ npm install -D agent-tail
9
11
  ```
10
12
 
11
13
  ## Setup
@@ -13,7 +15,7 @@ npm install -D vite-plugin-agent-tail
13
15
  ```ts
14
16
  // vite.config.ts
15
17
  import { defineConfig } from "vite"
16
- import { agentTail } from "vite-plugin-agent-tail"
18
+ import { agentTail } from "agent-tail/vite"
17
19
 
18
20
  export default defineConfig({
19
21
  plugins: [agentTail()],
@@ -35,7 +37,7 @@ The plugin injects a small script into your HTML that intercepts console methods
35
37
  Use both the plugin and the CLI to get browser console logs *and* server output in one place:
36
38
 
37
39
  ```bash
38
- npx agent-tail-core run 'fe: npm run dev' 'api: uvicorn main:app'
40
+ agent-tail run 'fe: npm run dev' 'api: uvicorn main:app'
39
41
  ```
40
42
 
41
43
  ## Docs
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vite-plugin-agent-tail",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "description": "Vite plugin for agent-tail — pipes browser console logs to files on disk during development.",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -30,7 +30,7 @@
30
30
  "README.md"
31
31
  ],
32
32
  "dependencies": {
33
- "agent-tail-core": "^0.3.0"
33
+ "agent-tail-core": "^0.3.1"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "vite": ">=5.0.0"