@cobol-ts/ai-mock 0.0.0-stage → 0.0.18

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 CHANGED
@@ -1,3 +1,5 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # `@cobol-ts/ai-mock`
2
+
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
+
5
+ `mockResponsesFromDocument` accepts parsed YAML with `responses.<id>.graph` mappings; serialization is injected. No filesystem, HTTP or AI SDK dependencies.
@@ -0,0 +1 @@
1
+ export * from './src/mock.chat';
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/mock.chat"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B"}
@@ -0,0 +1,10 @@
1
+ import type { AiClient, ChatCompletionCreateParams } from '@cobol-ts/ai';
2
+ /** The mock consumes the same messages as the real AI. The final user message
3
+ * carries an explicitly delimited, JSON-encoded target characteristic.
4
+ * No additional mock-only arguments are passed through the application port. */
5
+ export declare function targetIdFromChat(request: ChatCompletionCreateParams): string;
6
+ /** Responses are a map from *output* characteristic ID to graph YAML text. */
7
+ export declare function createMockAiClient(responses: ReadonlyMap<string, string>): AiClient;
8
+ /** Parse the mock YAML shape without coupling the mock adapter to a YAML library.
9
+ * `stringify` is supplied by the outer YAML composition. */
10
+ export declare function mockResponsesFromDocument(document: unknown, stringify: (graph: unknown) => string): ReadonlyMap<string, string>;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.targetIdFromChat = targetIdFromChat;
4
+ exports.createMockAiClient = createMockAiClient;
5
+ exports.mockResponsesFromDocument = mockResponsesFromDocument;
6
+ /** The mock consumes the same messages as the real AI. The final user message
7
+ * carries an explicitly delimited, JSON-encoded target characteristic.
8
+ * No additional mock-only arguments are passed through the application port. */
9
+ function targetIdFromChat(request) {
10
+ const last = request.messages[request.messages.length - 1];
11
+ if (!last || last.role !== 'user')
12
+ throw new Error('Mock AI: the final message must be a user target');
13
+ const match = /<target-characteristic>\s*([\s\S]*?)\s*<\/target-characteristic>/.exec(last.content);
14
+ if (!match)
15
+ throw new Error('Mock AI: target message must contain <target-characteristic> JSON');
16
+ let target;
17
+ try {
18
+ target = JSON.parse(match[1]);
19
+ }
20
+ catch {
21
+ throw new Error('Mock AI: target characteristic must be valid JSON');
22
+ }
23
+ if (!target || typeof target !== 'object' || Array.isArray(target) ||
24
+ typeof target.id !== 'string' || !target.id.trim())
25
+ throw new Error('Mock AI: target characteristic must contain a non-empty id');
26
+ return target.id.trim();
27
+ }
28
+ /** Responses are a map from *output* characteristic ID to graph YAML text. */
29
+ function createMockAiClient(responses) {
30
+ return {
31
+ chat: { completions: {
32
+ async create(request) {
33
+ const id = targetIdFromChat(request);
34
+ const response = responses.get(id);
35
+ if (response === undefined)
36
+ throw new Error(`Mock AI: no graph response for output characteristic '${id}'`);
37
+ return {
38
+ id: `mock-${id}`, object: 'chat.completion', created: 0, model: request.model,
39
+ choices: [{ index: 0, message: { role: 'assistant', content: response }, finish_reason: 'stop' }]
40
+ };
41
+ }
42
+ } }
43
+ };
44
+ }
45
+ function mapping(value, location) {
46
+ if (!value || typeof value !== 'object' || Array.isArray(value))
47
+ throw new Error(`Mock AI ${location}: expected YAML mapping`);
48
+ return value;
49
+ }
50
+ /** Parse the mock YAML shape without coupling the mock adapter to a YAML library.
51
+ * `stringify` is supplied by the outer YAML composition. */
52
+ function mockResponsesFromDocument(document, stringify) {
53
+ const entries = mapping(mapping(document, 'document').responses, 'responses');
54
+ const responses = new Map();
55
+ for (const [id, entry] of Object.entries(entries)) {
56
+ if (!id.trim() || responses.has(id.trim()))
57
+ throw new Error(`Mock AI: duplicate or empty characteristic ID '${id}'`);
58
+ const graph = mapping(mapping(entry, `responses.${id}`).graph, `responses.${id}.graph`);
59
+ if (Object.keys(graph).length === 0)
60
+ throw new Error(`Mock AI responses.${id}.graph: expected at least one node`);
61
+ responses.set(id.trim(), stringify(graph));
62
+ }
63
+ return responses;
64
+ }
65
+ //# sourceMappingURL=mock.chat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock.chat.js","sourceRoot":"","sources":["../../src/mock.chat.ts"],"names":[],"mappings":";;AAKA,4CAaC;AAGD,gDAcC;AAUD,8DAUC;AArDD;;gFAEgF;AAChF,SAAgB,gBAAgB,CAAC,OAAmC;IAChE,MAAM,IAAI,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IAC1D,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAA;IACtG,MAAM,KAAK,G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AC,CAAC,CAAA;IAC9C,CAAC;IACD,OAAO,SAAS,CAAA;AACpB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mock_chat_1 = require("./mock.chat");
4
+ const request = (id) => ({
5
+ model: 'mock-graph',
6
+ messages: [
7
+ { role: 'system', content: 'Instructions' },
8
+ { role: 'user', content: 'Available inputs' },
9
+ { role: 'user', content: `<target-characteristic>\n${JSON.stringify({ id, metadata: { type: 'number' } })}\n</target-characteristic>` }
10
+ ]
11
+ });
12
+ describe('mock OpenAI Chat Completions adapter', () => {
13
+ it('selects a reply from the last user message and returns the OpenAI envelope', async () => {
14
+ const responses = new Map([['C0010', 'C0010:\n type: cel\n']]);
15
+ const client = (0, mock_chat_1.createMockAiClient)(responses);
16
+ expect((0, mock_chat_1.targetIdFromChat)(request('C0010'))).toEqual('C0010');
17
+ expect(await client.chat.completions.create(request('C0010'))).toEqual({
18
+ id: 'mock-C0010', object: 'chat.completion', created: 0, model: 'mock-graph',
19
+ choices: [{ index: 0, message: { role: 'assistant', content: 'C0010:\n type: cel\n' }, finish_reason: 'stop' }]
20
+ });
21
+ });
22
+ it('rejects absent, malformed and unknown targets', async () => {
23
+ const client = (0, mock_chat_1.createMockAiClient)(new Map());
24
+ await expect(client.chat.completions.create(request('NOT_HERE')))
25
+ .rejects.toThrow("Mock AI: no graph response for output characteristic 'NOT_HERE'");
26
+ expect(() => (0, mock_chat_1.targetIdFromChat)({ model: 'mock', messages: [{ role: 'user', content: 'missing target' }] }))
27
+ .toThrow('Mock AI: target message must contain <target-characteristic> JSON');
28
+ expect(() => (0, mock_chat_1.targetIdFromChat)({ model: 'mock', messages: [{ role: 'user', content: '<target-characteristic>oops</target-characteristic>' }] }))
29
+ .toThrow('Mock AI: target characteristic must be valid JSON');
30
+ expect(() => (0, mock_chat_1.targetIdFromChat)({ model: 'mock', messages: [{ role: 'user', content: '<target-characteristic>{}</target-characteristic>' }] }))
31
+ .toThrow('Mock AI: target characteristic must contain a non-empty id');
32
+ });
33
+ it('parses nested mock response graphs without requiring a YAML dependency', () => {
34
+ const responses = (0, mock_chat_1.mockResponsesFromDocument)({ responses: {
35
+ C0010: { graph: { C0010: { type: 'cel', cel: 'input.x' } } },
36
+ C0020: { graph: { C0020: { type: 'cel', cel: 'input.y' } } }
37
+ } }, graph => JSON.stringify(graph));
38
+ expect([...responses.entries()]).toEqual([
39
+ ['C0010', '{"C0010":{"type":"cel","cel":"input.x"}}'],
40
+ ['C0020', '{"C0020":{"type":"cel","cel":"input.y"}}']
41
+ ]);
42
+ });
43
+ it('rejects invalid mock response documents', () => {
44
+ expect(() => (0, mock_chat_1.mockResponsesFromDocument)({ responses: { C0010: { graph: {} } } }, JSON.stringify))
45
+ .toThrow('Mock AI responses.C0010.graph: expected at least one node');
46
+ expect(() => (0, mock_chat_1.mockResponsesFromDocument)({ responses: { ' C0010': { graph: { x: {} } }, C0010: { graph: { y: {} } } } }, JSON.stringify))
47
+ .toThrow("Mock AI: duplicate or empty characteristic ID 'C0010'");
48
+ });
49
+ });
50
+ //# sourceMappingURL=mock.chat.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock.chat.spec.js","sourceRoot":"","sources":["../../src/mock.chat.spec.ts"],"names":[],"mappings":";;AAAA,2CAA2F;AAG3F,MAAM,OAAO,GAAG,CAAC,EAAU,EAA8B,EAAE,CAAC,CAAC;IACzD,KAAK,EAAE,YAAY;IACnB,QAAQ,EAAE;QACN,EAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAC;QACzC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,EAAC;QAC3C,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,4BAA4B,IAAI,CAAC,SAAS,CAAC,EAAC,EAAE,EAAE,QAAQ,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC,EAAC,CAAC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AA;IACF,EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE;QAC/C,MAAM,CAAC,GAAG,EAAE,CAAC,IAAA,qCAAyB,EAAC,EAAC,SAAS,EAAE,EAAC,KAAK,EAAE,EAAC,KAAK,EAAE,EAAE,EAAC,EAAC,EAAC,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;aACrF,OAAO,CAAC,2DAA2D,CAAC,CAAA;QACzE,MAAM,CAAC,GAAG,EAAE,CAAC,IAAA,qCAAyB,EAAC,EAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,EAAC,KAAK,EAAE,EAAC,CAAC,EAAE,EAAE,EAAC,EAAC,EAAE,KAAK,EAAE,EAAC,KAAK,EAAE,EAAC,CAAC,EAAE,EAAE,EAAC,EAAC,EAAC,EAAC,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;aACtH,OAAO,CAAC,uDAAuD,CAAC,CAAA;IACzE,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,61 @@
1
1
  {
2
2
  "name": "@cobol-ts/ai-mock",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "description": "Deterministic OpenAI-shaped mock Chat Completions adapter for characteristic graphs",
4
+ "version": "0.0.18",
5
+ "main": "dist/index",
6
+ "types": "dist/index",
7
+ "browserslist": {
8
+ "development": [
9
+ "last 1 chrome version",
10
+ "last 1 firefox version",
11
+ "last 1 safari version"
12
+ ],
13
+ "production": [
14
+ ">0.2%",
15
+ "not dead",
16
+ "not op_mini all"
17
+ ]
18
+ },
19
+ "dependencies": {
20
+ "@cobol-ts/ai": "0.0.18"
21
+ },
22
+ "devDependencies": {
23
+ "typescript": "^5.2.2",
24
+ "@testing-library/jest-dom": "^6.1.4",
25
+ "@types/jest": "^29.0.0",
26
+ "@types/node": "^14.0.0",
27
+ "jest": "^29.0.0",
28
+ "ts-jest": "^29.0.0"
29
+ },
30
+ "eslintConfig": {
31
+ "extends": [
32
+ "react-app",
33
+ "react-app/jest"
34
+ ],
35
+ "overrides": [
36
+ {
37
+ "files": [
38
+ "**/*.stories.*"
39
+ ],
40
+ "rules": {
41
+ "import/no-anonymous-default-export": "off"
42
+ }
43
+ }
44
+ ]
45
+ },
46
+ "files": [
47
+ "dist/index.js",
48
+ "dist/index.d.ts",
49
+ "dist/src/",
50
+ "dist/**/*"
51
+ ],
52
+ "keywords": [
53
+ "indexing"
54
+ ],
55
+ "license": "MIT",
56
+ "repository": "git@github.com:intellimaintain/intellimaintain.git",
57
+ "scripts": {
58
+ "test": "jest --config jest.config.json --env node",
59
+ "test:watch": "npm run test -- --watch"
60
+ }
6
61
  }