@cobol-ts/ai-mock 0.0.37 → 0.0.39
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 +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,3 +3,5 @@
|
|
|
3
3
|
Deterministic implementation of the `@cobol-ts/ai` Chat Completions port. The mock selects a response by reading the **last user message**, which includes `<target-characteristic>` containing JSON with the target `id`. Its `create()` call returns an OpenAI-shaped assistant choice with the configured graph YAML. It does not receive characteristic IDs through a private side channel.
|
|
4
4
|
|
|
5
5
|
`mockResponsesFromDocument` accepts parsed YAML with `responses.<id>.graph` mappings; serialization is injected. No filesystem, HTTP or AI SDK dependencies.
|
|
6
|
+
|
|
7
|
+
Configure a named entry under `models` in `ai.yaml` with `provider: mock`, `model` and `responses`. The active alias can be overridden per CLI invocation or in AI Explorer. No API key is needed.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobol-ts/ai-mock",
|
|
3
3
|
"description": "Deterministic OpenAI-shaped mock Chat Completions adapter for characteristic graphs",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.39",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index",
|
|
7
7
|
"browserslist": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
]
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cobol-ts/ai": "0.0.
|
|
20
|
+
"@cobol-ts/ai": "0.0.39"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "^5.2.2",
|