@ai-sdk/devtools 1.0.5 → 1.0.6
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/README.md +4 -2
- package/dist/viewer/server.js +4 -2
- package/package.json +2 -2
- package/src/viewer/server.ts +3 -1
package/README.md
CHANGED
|
@@ -60,13 +60,15 @@ const result = streamText({
|
|
|
60
60
|
### 2. Run the viewer
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
npx @ai-sdk/devtools
|
|
63
|
+
npx @ai-sdk/devtools@latest
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
Open http://localhost:4983 to view your AI SDK interactions.
|
|
67
67
|
|
|
68
68
|
If you are using a monorepo, start DevTools from the same workspace where your
|
|
69
|
-
AI SDK code runs.
|
|
69
|
+
AI SDK code runs. The explicit `@latest` tag ensures that `npx` installs an
|
|
70
|
+
executable copy instead of selecting a transitive dependency whose binary is
|
|
71
|
+
not linked into that workspace.
|
|
70
72
|
|
|
71
73
|
## How it works
|
|
72
74
|
|
package/dist/viewer/server.js
CHANGED
|
@@ -390,8 +390,10 @@ var startViewer = (port = 4983) => {
|
|
|
390
390
|
`);
|
|
391
391
|
console.error(` To use a different port, set AI_SDK_DEVTOOLS_PORT:
|
|
392
392
|
`);
|
|
393
|
-
console.error(
|
|
394
|
-
`
|
|
393
|
+
console.error(
|
|
394
|
+
` AI_SDK_DEVTOOLS_PORT=4984 npx @ai-sdk/devtools@latest
|
|
395
|
+
`
|
|
396
|
+
);
|
|
395
397
|
process.exit(1);
|
|
396
398
|
}
|
|
397
399
|
throw err;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/devtools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"vite": "^6.4.3",
|
|
56
56
|
"vitest": "^4.1.6",
|
|
57
57
|
"zod": "3.25.76",
|
|
58
|
-
"ai": "7.0.
|
|
58
|
+
"ai": "7.0.27"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public",
|
package/src/viewer/server.ts
CHANGED
|
@@ -347,7 +347,9 @@ export const startViewer = (port = 4983) => {
|
|
|
347
347
|
);
|
|
348
348
|
console.error(` Open http://localhost:${port} in your browser.\n`);
|
|
349
349
|
console.error(` To use a different port, set AI_SDK_DEVTOOLS_PORT:\n`);
|
|
350
|
-
console.error(
|
|
350
|
+
console.error(
|
|
351
|
+
` AI_SDK_DEVTOOLS_PORT=4984 npx @ai-sdk/devtools@latest\n`,
|
|
352
|
+
);
|
|
351
353
|
process.exit(1);
|
|
352
354
|
}
|
|
353
355
|
throw err;
|