ai-test-kit 0.0.1 → 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.
package/dist/ui/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as tokenize } from "../tokenize-C-Zp26iY.mjs";
1
+ import { n as toJSONString, t as tokenize } from "../tokenize-Cy46iVSX.mjs";
2
2
 
3
3
  //#region src/ui/parts.ts
4
4
  /**
@@ -192,7 +192,7 @@ const createUIChunks = () => ({
192
192
  toolCallId: args.toolCallId,
193
193
  toolName: args.toolName
194
194
  },
195
- ...tokenize(JSON.stringify(args.input), { length: args.length }).map((inputTextDelta) => ({
195
+ ...tokenize(toJSONString(args.input), { length: args.length }).map((inputTextDelta) => ({
196
196
  type: "tool-input-delta",
197
197
  toolCallId: args.toolCallId,
198
198
  inputTextDelta
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-test-kit",
3
- "version": "0.0.1",
3
+ "version": "1.0.1",
4
4
  "description": "Test utilities for the AI SDK: mock models, content and stream-part builders, fully type-safe",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -23,16 +23,6 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "scripts": {
27
- "prepublishOnly": "pnpm build",
28
- "build": "tsdown",
29
- "test": "vitest",
30
- "lint": "oxlint --fix",
31
- "lint:ci": "oxlint",
32
- "format": "oxfmt --write",
33
- "format:ci": "oxfmt --check",
34
- "prepare": "husky"
35
- },
36
26
  "devDependencies": {
37
27
  "@ai-sdk/provider": "^3.0.10",
38
28
  "@ai-sdk/provider-utils": "^4.0.27",
@@ -67,5 +57,12 @@
67
57
  "pnpm format"
68
58
  ]
69
59
  },
70
- "packageManager": "pnpm@10.29.2"
71
- }
60
+ "scripts": {
61
+ "build": "tsdown",
62
+ "test": "vitest",
63
+ "lint": "oxlint --fix",
64
+ "lint:ci": "oxlint",
65
+ "format": "oxfmt --write",
66
+ "format:ci": "oxfmt --check"
67
+ }
68
+ }