ai-mock-provider 0.1.0 → 0.1.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/LICENSE +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +11 -8
package/LICENSE
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -45,7 +45,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
45
45
|
// src/model.ts
|
|
46
46
|
var import_provider = require("@ai-sdk/provider");
|
|
47
47
|
|
|
48
|
-
//
|
|
48
|
+
// node_modules/lorem-ipsum/dist/index.js
|
|
49
49
|
var FORMAT_HTML = "html";
|
|
50
50
|
var FORMAT_PLAIN = "plain";
|
|
51
51
|
var FORMATS = [FORMAT_HTML, FORMAT_PLAIN];
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-mock-provider",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Mock provider for the Vercel AI SDK (LanguageModelV4): scenario-based canned responses (markdown headings, tables, math, code, JSON, files), lorem ipsum filler, streaming speed simulation in tokens per second driven by the user message, tool calls with schema-generated inputs, provider-executed tool results, multi-call scripts, reasoning and error simulation. Test streamText and generateText with no API key.",
|
|
5
|
-
"author": "
|
|
6
|
-
"homepage": "https://
|
|
5
|
+
"author": "wladimiiir",
|
|
6
|
+
"homepage": "https://github.com/wladimiiir/ai-mock-provider#readme",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/
|
|
10
|
-
"directory": "packages/ai-mock-provider"
|
|
9
|
+
"url": "git+https://github.com/wladimiiir/ai-mock-provider.git"
|
|
11
10
|
},
|
|
12
11
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/
|
|
12
|
+
"url": "https://github.com/wladimiiir/ai-mock-provider/issues"
|
|
14
13
|
},
|
|
15
14
|
"license": "MIT",
|
|
16
15
|
"type": "module",
|
|
@@ -47,7 +46,7 @@
|
|
|
47
46
|
"test": "vitest run",
|
|
48
47
|
"test:watch": "vitest",
|
|
49
48
|
"harness": "esbuild src/harness/run-harness.ts --bundle --platform=node --format=cjs --outfile=dist-harness/run-harness.cjs && node dist-harness/run-harness.cjs",
|
|
50
|
-
"prepublishOnly": "npm run
|
|
49
|
+
"prepublishOnly": "npm run build"
|
|
51
50
|
},
|
|
52
51
|
"keywords": [
|
|
53
52
|
"ai",
|
|
@@ -73,7 +72,11 @@
|
|
|
73
72
|
},
|
|
74
73
|
"devDependencies": {
|
|
75
74
|
"@ai-sdk/provider": "4.0.39",
|
|
76
|
-
"
|
|
75
|
+
"@types/node": "22.19.15",
|
|
76
|
+
"ai": "7.0.176",
|
|
77
|
+
"esbuild": "0.28.1",
|
|
78
|
+
"typescript": "5.9.3",
|
|
79
|
+
"vitest": "4.1.12"
|
|
77
80
|
},
|
|
78
81
|
"dependencies": {
|
|
79
82
|
"lorem-ipsum": "^3.0.0"
|