@futdevpro/nts-dynamo 1.15.105 → 1.15.110
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/.dynamo/logs/cicd-pipeline/output.log +1621 -1669
- package/.dynamo/logs/cicd-pipeline/status.json +43 -29
- package/build/_modules/ai/_collections/ai-model-config-validator.util.d.ts +32 -0
- package/build/_modules/ai/_collections/ai-model-config-validator.util.d.ts.map +1 -0
- package/build/_modules/ai/_collections/ai-model-config-validator.util.js +95 -0
- package/build/_modules/ai/_collections/ai-model-config-validator.util.js.map +1 -0
- package/build/_modules/ai/_collections/ai-provider-error.util.d.ts +44 -0
- package/build/_modules/ai/_collections/ai-provider-error.util.d.ts.map +1 -0
- package/build/_modules/ai/_collections/ai-provider-error.util.js +121 -0
- package/build/_modules/ai/_collections/ai-provider-error.util.js.map +1 -0
- package/build/_modules/ai/_models/interfaces/dynts-ai-provider-error.interface.d.ts +17 -0
- package/build/_modules/ai/_models/interfaces/dynts-ai-provider-error.interface.d.ts.map +1 -0
- package/build/_modules/ai/_models/interfaces/dynts-ai-provider-error.interface.js +3 -0
- package/build/_modules/ai/_models/interfaces/dynts-ai-provider-error.interface.js.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_collections/aim-default-collection.util.d.ts +23 -0
- package/build/_modules/ai/_modules/ai-mock/_collections/aim-default-collection.util.d.ts.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_collections/aim-default-collection.util.js +52 -0
- package/build/_modules/ai/_modules/ai-mock/_collections/aim-default-collection.util.js.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_collections/aim-fixture-match.util.d.ts +34 -0
- package/build/_modules/ai/_modules/ai-mock/_collections/aim-fixture-match.util.d.ts.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_collections/aim-fixture-match.util.js +56 -0
- package/build/_modules/ai/_modules/ai-mock/_collections/aim-fixture-match.util.js.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_collections/aim-fixture-serializer.util.d.ts +33 -0
- package/build/_modules/ai/_modules/ai-mock/_collections/aim-fixture-serializer.util.d.ts.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_collections/aim-fixture-serializer.util.js +89 -0
- package/build/_modules/ai/_modules/ai-mock/_collections/aim-fixture-serializer.util.js.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_enums/aim-modality.enum.d.ts +16 -0
- package/build/_modules/ai/_modules/ai-mock/_enums/aim-modality.enum.d.ts.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_enums/aim-modality.enum.js +20 -0
- package/build/_modules/ai/_modules/ai-mock/_enums/aim-modality.enum.js.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-call-input.interface.d.ts +15 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-call-input.interface.d.ts.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-call-input.interface.js +3 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-call-input.interface.js.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-error.interface.d.ts +11 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-error.interface.d.ts.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-error.interface.js +3 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-error.interface.js.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-fixture.interface.d.ts +30 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-fixture.interface.d.ts.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-fixture.interface.js +3 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-fixture.interface.js.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-request.interface.d.ts +19 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-request.interface.d.ts.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-request.interface.js +3 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-request.interface.js.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-service-collection.interface.d.ts +19 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-service-collection.interface.d.ts.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-service-collection.interface.js +3 -0
- package/build/_modules/ai/_modules/ai-mock/_models/interfaces/aim-service-collection.interface.js.map +1 -0
- package/build/_modules/ai/{_services → _modules/ai-mock/_services}/ai-embedding-mock.service.d.ts +2 -2
- package/build/_modules/ai/_modules/ai-mock/_services/ai-embedding-mock.service.d.ts.map +1 -0
- package/build/_modules/ai/{_services → _modules/ai-mock/_services}/ai-embedding-mock.service.js +1 -1
- package/build/_modules/ai/_modules/ai-mock/_services/ai-embedding-mock.service.js.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_services/aim-fixture-harness.service.d.ts +48 -0
- package/build/_modules/ai/_modules/ai-mock/_services/aim-fixture-harness.service.d.ts.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_services/aim-fixture-harness.service.js +104 -0
- package/build/_modules/ai/_modules/ai-mock/_services/aim-fixture-harness.service.js.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_services/aim-fixture-store.service.d.ts +35 -0
- package/build/_modules/ai/_modules/ai-mock/_services/aim-fixture-store.service.d.ts.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_services/aim-fixture-store.service.js +60 -0
- package/build/_modules/ai/_modules/ai-mock/_services/aim-fixture-store.service.js.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_services/aim-mock.service.d.ts +60 -0
- package/build/_modules/ai/_modules/ai-mock/_services/aim-mock.service.d.ts.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/_services/aim-mock.service.js +121 -0
- package/build/_modules/ai/_modules/ai-mock/_services/aim-mock.service.js.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/index.d.ts +14 -0
- package/build/_modules/ai/_modules/ai-mock/index.d.ts.map +1 -0
- package/build/_modules/ai/_modules/ai-mock/index.js +41 -0
- package/build/_modules/ai/_modules/ai-mock/index.js.map +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts +31 -3
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js +71 -33
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js.map +1 -1
- package/build/_modules/ai/_services/ai-embedding-provider.registry.d.ts +1 -1
- package/build/_modules/ai/_services/ai-embedding-provider.registry.d.ts.map +1 -1
- package/build/_modules/ai/_services/ai-embedding-provider.registry.js +1 -1
- package/build/_modules/ai/_services/ai-embedding-provider.registry.js.map +1 -1
- package/build/_modules/ai/_services/ai-llm.service-base.d.ts +16 -0
- package/build/_modules/ai/_services/ai-llm.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_services/ai-llm.service-base.js +65 -0
- package/build/_modules/ai/_services/ai-llm.service-base.js.map +1 -1
- package/build/_modules/ai/index.d.ts +4 -1
- package/build/_modules/ai/index.d.ts.map +1 -1
- package/build/_modules/ai/index.js +9 -1
- package/build/_modules/ai/index.js.map +1 -1
- package/build/_modules/server/server-status/server-status.control-service.d.ts +10 -0
- package/build/_modules/server/server-status/server-status.control-service.d.ts.map +1 -1
- package/build/_modules/server/server-status/server-status.control-service.js +21 -0
- package/build/_modules/server/server-status/server-status.control-service.js.map +1 -1
- package/package.json +11 -2
- package/src/_modules/ai/_collections/ai-model-config-validator.util.spec.ts +150 -0
- package/src/_modules/ai/_collections/ai-model-config-validator.util.ts +131 -0
- package/src/_modules/ai/_collections/ai-provider-error.util.ts +144 -0
- package/src/_modules/ai/_models/interfaces/dynts-ai-provider-error.interface.ts +16 -0
- package/src/_modules/ai/_modules/ai-mock/_collections/aim-default-collection.util.spec.ts +72 -0
- package/src/_modules/ai/_modules/ai-mock/_collections/aim-default-collection.util.ts +71 -0
- package/src/_modules/ai/_modules/ai-mock/_collections/aim-fixture-match.util.spec.ts +57 -0
- package/src/_modules/ai/_modules/ai-mock/_collections/aim-fixture-match.util.ts +60 -0
- package/src/_modules/ai/_modules/ai-mock/_collections/aim-fixture-serializer.util.spec.ts +56 -0
- package/src/_modules/ai/_modules/ai-mock/_collections/aim-fixture-serializer.util.ts +107 -0
- package/src/_modules/ai/_modules/ai-mock/_enums/aim-modality.enum.ts +15 -0
- package/src/_modules/ai/_modules/ai-mock/_models/interfaces/aim-call-input.interface.ts +14 -0
- package/src/_modules/ai/_modules/ai-mock/_models/interfaces/aim-error.interface.ts +11 -0
- package/src/_modules/ai/_modules/ai-mock/_models/interfaces/aim-fixture.interface.ts +30 -0
- package/src/_modules/ai/_modules/ai-mock/_models/interfaces/aim-request.interface.ts +19 -0
- package/src/_modules/ai/_modules/ai-mock/_models/interfaces/aim-service-collection.interface.ts +20 -0
- package/src/_modules/ai/{_services → _modules/ai-mock/_services}/ai-embedding-mock.service.spec.ts +1 -1
- package/src/_modules/ai/{_services → _modules/ai-mock/_services}/ai-embedding-mock.service.ts +2 -2
- package/src/_modules/ai/_modules/ai-mock/_services/aim-fixture-harness.service.spec.ts +134 -0
- package/src/_modules/ai/_modules/ai-mock/_services/aim-fixture-harness.service.ts +127 -0
- package/src/_modules/ai/_modules/ai-mock/_services/aim-fixture-pipeline.spec.ts +105 -0
- package/src/_modules/ai/_modules/ai-mock/_services/aim-fixture-store.service.spec.ts +50 -0
- package/src/_modules/ai/_modules/ai-mock/_services/aim-fixture-store.service.ts +65 -0
- package/src/_modules/ai/_modules/ai-mock/_services/aim-mock.service.spec.ts +112 -0
- package/src/_modules/ai/_modules/ai-mock/_services/aim-mock.service.ts +142 -0
- package/src/_modules/ai/_modules/ai-mock/index.ts +44 -0
- package/src/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.ts +90 -38
- package/src/_modules/ai/_services/ai-embedding-provider.registry.spec.ts +1 -1
- package/src/_modules/ai/_services/ai-embedding-provider.registry.ts +1 -1
- package/src/_modules/ai/_services/ai-llm.service-base.reconciler.spec.ts +133 -0
- package/src/_modules/ai/_services/ai-llm.service-base.ts +80 -0
- package/src/_modules/ai/index.ts +11 -1
- package/src/_modules/server/server-status/server-status.control-service.spec.ts +40 -0
- package/src/_modules/server/server-status/server-status.control-service.ts +40 -0
- package/build/_modules/ai/_services/ai-embedding-mock.service.d.ts.map +0 -1
- package/build/_modules/ai/_services/ai-embedding-mock.service.js.map +0 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { DyFM_AI_ModelInfo, DyFM_AI_ModelType, DyFM_AI_Provider } from '@futdevpro/fsm-dynamo/ai';
|
|
2
|
+
|
|
3
|
+
import { DyNTS_AIMock_Modality } from '../_enums/aim-modality.enum';
|
|
4
|
+
import { DyNTS_AIMock_Request } from '../_models/interfaces/aim-request.interface';
|
|
5
|
+
import { DyNTS_AIMock_Fixture } from '../_models/interfaces/aim-fixture.interface';
|
|
6
|
+
import { DyNTS_AIMock_FixtureSerializer_Util } from '../_collections/aim-fixture-serializer.util';
|
|
7
|
+
import { DyNTS_AIMock_FixtureHarness_Service } from './aim-fixture-harness.service';
|
|
8
|
+
import { DyNTS_AIMock_FixtureStore_Service } from './aim-fixture-store.service';
|
|
9
|
+
import { DyNTS_AIMock_Service } from './aim-mock.service';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* **End-to-end pipeline-bizonyitas (MP-3 + MP-4), NULLA koltessel.**
|
|
13
|
+
*
|
|
14
|
+
* A teljes fixture-eletciklust vegigviszi egyetlen teszben:
|
|
15
|
+
* `harness.capture()` (stub-generator) → `serializer.toConstantFile()` (beegetett konstans) →
|
|
16
|
+
* visszaolvasas (a generalt tomb-literal ERVENYES JSON) → `store.register()` → `service.chatCompletion()`.
|
|
17
|
+
*
|
|
18
|
+
* Ez azt igazolja, hogy a beegetett artefaktum **hianytalanul visszaallithato mukodo fixture-re** — vagyis a
|
|
19
|
+
* G1 (fizetos generalas) jovahagyasakor a gepezet mar bizonyitottan mukodik, csak valodi generatort kap.
|
|
20
|
+
*/
|
|
21
|
+
describe('| ai-mock fixture-pipeline (end-to-end, stub-generatorral)', () => {
|
|
22
|
+
|
|
23
|
+
const registry: DyFM_AI_ModelInfo[] = [
|
|
24
|
+
{
|
|
25
|
+
id: 'cheap-mini',
|
|
26
|
+
provider: DyFM_AI_Provider.OpenAI,
|
|
27
|
+
modelType: DyFM_AI_ModelType.Chat,
|
|
28
|
+
tier: 'mini',
|
|
29
|
+
capabilities: {} as any,
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
const request: DyNTS_AIMock_Request = {
|
|
34
|
+
provider: 'open-ai',
|
|
35
|
+
model: 'cheap-mini',
|
|
36
|
+
modality: DyNTS_AIMock_Modality.text,
|
|
37
|
+
config: { maxTokens: 32 },
|
|
38
|
+
input: 'Mi a fovarosa Magyarorszagnak?',
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** A beegetett konstans-fajlbol visszaolvassa a fixture-tombot (a tomb-literal ervenyes JSON). */
|
|
42
|
+
function parseBack(source: string): DyNTS_AIMock_Fixture[] {
|
|
43
|
+
const start: number = source.indexOf('= [') + 2;
|
|
44
|
+
const end: number = source.lastIndexOf('];') + 1;
|
|
45
|
+
|
|
46
|
+
return JSON.parse(source.slice(start, end));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
it('| capture → serialize → parse-back → store → replay: a beegetett ertek jon vissza', async () => {
|
|
50
|
+
// 1) GENERALAS — stub-generator, NULLA valodi hivas. A spend-guard explicit engedelyezve CSAK a stubhoz.
|
|
51
|
+
const harness: DyNTS_AIMock_FixtureHarness_Service = new DyNTS_AIMock_FixtureHarness_Service({
|
|
52
|
+
generator: async (): Promise<unknown> => 'Budapest.',
|
|
53
|
+
registry: registry,
|
|
54
|
+
allowRealSpend: true,
|
|
55
|
+
nowIso: (): string => '2026-07-21T00:00:00.000Z',
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const captured: DyNTS_AIMock_Fixture = await harness.capture(request);
|
|
59
|
+
|
|
60
|
+
// 2) BEEGETES — determinisztikus TS-konstans fajl tartalma
|
|
61
|
+
const fileSource: string = DyNTS_AIMock_FixtureSerializer_Util.toConstantFile({
|
|
62
|
+
constName: 'DyNTS_AIMock_PipelineFixtures',
|
|
63
|
+
fixtures: [ captured ],
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
expect(fileSource).toContain('export const DyNTS_AIMock_PipelineFixtures');
|
|
67
|
+
|
|
68
|
+
// 3) VISSZAOLVASAS — a beegetett artefaktumbol ujra fixture-objektum
|
|
69
|
+
const reloaded: DyNTS_AIMock_Fixture[] = parseBack(fileSource);
|
|
70
|
+
|
|
71
|
+
expect(reloaded.length).toBe(1);
|
|
72
|
+
expect(reloaded[0].inputHash).toBe(captured.inputHash);
|
|
73
|
+
|
|
74
|
+
// 4) REPLAY — a visszaolvasott fixture-t a store-ba tolve a mock ugyanazt adja vissza
|
|
75
|
+
const store: DyNTS_AIMock_FixtureStore_Service = new DyNTS_AIMock_FixtureStore_Service(reloaded);
|
|
76
|
+
const service: DyNTS_AIMock_Service = new DyNTS_AIMock_Service(store, registry);
|
|
77
|
+
|
|
78
|
+
await expectAsync(
|
|
79
|
+
service.chatCompletion({
|
|
80
|
+
provider: 'open-ai',
|
|
81
|
+
model: 'cheap-mini',
|
|
82
|
+
config: { maxTokens: 32 },
|
|
83
|
+
input: 'Mi a fovarosa Magyarorszagnak?',
|
|
84
|
+
})
|
|
85
|
+
).toBeResolvedTo('Budapest.');
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
it('| a beegetes/visszaolvasas kortje IDEMPOTENS (ketszer szerializalva azonos fajl)', async () => {
|
|
89
|
+
const harness: DyNTS_AIMock_FixtureHarness_Service = new DyNTS_AIMock_FixtureHarness_Service({
|
|
90
|
+
generator: async (): Promise<unknown> => 'Budapest.',
|
|
91
|
+
registry: registry,
|
|
92
|
+
allowRealSpend: true,
|
|
93
|
+
nowIso: (): string => '2026-07-21T00:00:00.000Z',
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
const captured: DyNTS_AIMock_Fixture = await harness.capture(request);
|
|
97
|
+
const first: string = DyNTS_AIMock_FixtureSerializer_Util.toConstantFile({ constName: 'X', fixtures: [ captured ] });
|
|
98
|
+
const second: string = DyNTS_AIMock_FixtureSerializer_Util.toConstantFile({
|
|
99
|
+
constName: 'X',
|
|
100
|
+
fixtures: parseBack(first),
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
expect(second).toBe(first);
|
|
104
|
+
});
|
|
105
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { DyNTS_AIMock_Modality } from '../_enums/aim-modality.enum';
|
|
2
|
+
import { DyNTS_AIMock_Request } from '../_models/interfaces/aim-request.interface';
|
|
3
|
+
import { DyNTS_AIMock_Fixture } from '../_models/interfaces/aim-fixture.interface';
|
|
4
|
+
import { DyNTS_AIMock_FixtureMatch_Util } from '../_collections/aim-fixture-match.util';
|
|
5
|
+
import { DyNTS_AIMock_FixtureStore_Service } from './aim-fixture-store.service';
|
|
6
|
+
|
|
7
|
+
describe('DyNTS_AIMock_FixtureStore_Service', () => {
|
|
8
|
+
|
|
9
|
+
const fixture: DyNTS_AIMock_Fixture = {
|
|
10
|
+
provider: 'open-ai',
|
|
11
|
+
model: 'gpt-4o-mini',
|
|
12
|
+
modality: DyNTS_AIMock_Modality.text,
|
|
13
|
+
config: { temperature: 0 },
|
|
14
|
+
input: 'ping',
|
|
15
|
+
inputHash: DyNTS_AIMock_FixtureMatch_Util.buildInputHash('ping'),
|
|
16
|
+
output: 'pong',
|
|
17
|
+
capturedAt: '2026-07-21T00:00:00.000Z',
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const hitRequest: DyNTS_AIMock_Request = {
|
|
21
|
+
provider: 'open-ai',
|
|
22
|
+
model: 'gpt-4o-mini',
|
|
23
|
+
modality: DyNTS_AIMock_Modality.text,
|
|
24
|
+
config: { temperature: 0 },
|
|
25
|
+
input: 'ping',
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
it('register + resolve hit → a fixture', () => {
|
|
29
|
+
const store: DyNTS_AIMock_FixtureStore_Service = new DyNTS_AIMock_FixtureStore_Service([fixture]);
|
|
30
|
+
|
|
31
|
+
expect(store.resolve(hitRequest)).toBe(fixture);
|
|
32
|
+
expect(store.has(hitRequest)).toBe(true);
|
|
33
|
+
expect(store.size).toBe(1);
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
it('resolve miss → undefined + has false', () => {
|
|
37
|
+
const store: DyNTS_AIMock_FixtureStore_Service = new DyNTS_AIMock_FixtureStore_Service([fixture]);
|
|
38
|
+
const miss: DyNTS_AIMock_Request = { ...hitRequest, input: 'unknown' };
|
|
39
|
+
|
|
40
|
+
expect(store.resolve(miss)).toBeUndefined();
|
|
41
|
+
expect(store.has(miss)).toBe(false);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
it('resolve config-sorrend-független hit', () => {
|
|
45
|
+
const store: DyNTS_AIMock_FixtureStore_Service = new DyNTS_AIMock_FixtureStore_Service([fixture]);
|
|
46
|
+
const reordered: DyNTS_AIMock_Request = { ...hitRequest, config: { temperature: 0 } };
|
|
47
|
+
|
|
48
|
+
expect(store.resolve(reordered)).toBe(fixture);
|
|
49
|
+
});
|
|
50
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { DyNTS_AIMock_Request } from '../_models/interfaces/aim-request.interface';
|
|
2
|
+
import { DyNTS_AIMock_Fixture } from '../_models/interfaces/aim-fixture.interface';
|
|
3
|
+
import { DyNTS_AIMock_FixtureMatch_Util } from '../_collections/aim-fixture-match.util';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A beégetett fixture-ök tára — match-kulcs → fixture Map (lazy-cache; a Map MAGA a cache). A fixture-öket
|
|
7
|
+
* konstans-blob-fájlokból (D6, git-tracked) importáljuk és `register`-rel adjuk be; a runtime-feloldás a
|
|
8
|
+
* `DyNTS_AIMock_FixtureMatch_Util.buildMatchKey`-en megy (config-sorrend- + input-whitespace-független).
|
|
9
|
+
* A reject-on-unknown (D3) NEM itt dől el — a `resolve` `undefined`-et ad, a hívó (`DyNTS_AIMock_Service`)
|
|
10
|
+
* dob strukturált „no-fixture" hibát. Ez a réteg tiszta, hálózat-mentes — NEM generál (SP-3.2 = G1 gate).
|
|
11
|
+
*/
|
|
12
|
+
export class DyNTS_AIMock_FixtureStore_Service {
|
|
13
|
+
|
|
14
|
+
/** match-kulcs → fixture. */
|
|
15
|
+
private readonly fixturesByKey: Map<string, DyNTS_AIMock_Fixture> = new Map();
|
|
16
|
+
|
|
17
|
+
/** @param fixtures opcionális kezdő-készlet (konstans-blob-okból). */
|
|
18
|
+
constructor(fixtures?: DyNTS_AIMock_Fixture[]) {
|
|
19
|
+
if (fixtures?.length) {
|
|
20
|
+
this.register(fixtures);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Fixture-ök beindexelése (match-kulcs szerint). Azonos kulcsú fixture felülírja a korábbit (last-wins).
|
|
26
|
+
* @param fixtures - a beégetett fixture-rekordok
|
|
27
|
+
*/
|
|
28
|
+
register(fixtures: DyNTS_AIMock_Fixture[]): void {
|
|
29
|
+
for (const fixture of fixtures) {
|
|
30
|
+
this.fixturesByKey.set(this.keyOf(fixture), fixture);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Input-match feloldás: hit → fixture; miss → `undefined` (a reject-on-unknown a hívó dolga).
|
|
36
|
+
* @param request - a mock-hívás bemenete
|
|
37
|
+
*/
|
|
38
|
+
resolve(request: DyNTS_AIMock_Request): DyNTS_AIMock_Fixture | undefined {
|
|
39
|
+
return this.fixturesByKey.get(DyNTS_AIMock_FixtureMatch_Util.buildMatchKey(request));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Van-e fixture az adott request-re.
|
|
44
|
+
* @param request - a mock-hívás bemenete
|
|
45
|
+
*/
|
|
46
|
+
has(request: DyNTS_AIMock_Request): boolean {
|
|
47
|
+
return this.fixturesByKey.has(DyNTS_AIMock_FixtureMatch_Util.buildMatchKey(request));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** A beindexelt fixture-ök száma. */
|
|
51
|
+
get size(): number {
|
|
52
|
+
return this.fixturesByKey.size;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** A fixture match-kulcsa a saját nyers mezőiből (a `resolve`-val szimmetrikusan képezve). */
|
|
56
|
+
private keyOf(fixture: DyNTS_AIMock_Fixture): string {
|
|
57
|
+
return DyNTS_AIMock_FixtureMatch_Util.buildMatchKey({
|
|
58
|
+
provider: fixture.provider,
|
|
59
|
+
model: fixture.model,
|
|
60
|
+
modality: fixture.modality,
|
|
61
|
+
config: fixture.config,
|
|
62
|
+
input: fixture.input,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { DyFM_Error } from '@futdevpro/fsm-dynamo';
|
|
2
|
+
import { DyFM_AI_ModelInfo, DyFM_AI_ModelType, DyFM_AI_Provider } from '@futdevpro/fsm-dynamo/ai';
|
|
3
|
+
|
|
4
|
+
import { DyNTS_AIMock_Modality } from '../_enums/aim-modality.enum';
|
|
5
|
+
import { DyNTS_AIMock_Fixture } from '../_models/interfaces/aim-fixture.interface';
|
|
6
|
+
import { DyNTS_AIMock_FixtureMatch_Util } from '../_collections/aim-fixture-match.util';
|
|
7
|
+
import { DyNTS_AIMock_FixtureStore_Service } from './aim-fixture-store.service';
|
|
8
|
+
import { DyNTS_AIMock_Service } from './aim-mock.service';
|
|
9
|
+
|
|
10
|
+
describe('DyNTS_AIMock_Service', () => {
|
|
11
|
+
|
|
12
|
+
const okFixture: DyNTS_AIMock_Fixture = {
|
|
13
|
+
provider: 'open-ai',
|
|
14
|
+
model: 'gpt-4o-mini',
|
|
15
|
+
modality: DyNTS_AIMock_Modality.text,
|
|
16
|
+
config: { temperature: 0 },
|
|
17
|
+
input: 'ping',
|
|
18
|
+
inputHash: DyNTS_AIMock_FixtureMatch_Util.buildInputHash('ping'),
|
|
19
|
+
output: 'pong',
|
|
20
|
+
capturedAt: '2026-07-21T00:00:00.000Z',
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const errFixture: DyNTS_AIMock_Fixture = {
|
|
24
|
+
provider: 'open-ai',
|
|
25
|
+
model: 'gpt-4o-mini',
|
|
26
|
+
modality: DyNTS_AIMock_Modality.text,
|
|
27
|
+
config: { temperature: 0.5 },
|
|
28
|
+
input: 'bad',
|
|
29
|
+
inputHash: DyNTS_AIMock_FixtureMatch_Util.buildInputHash('bad'),
|
|
30
|
+
error: {
|
|
31
|
+
httpStatus: 400,
|
|
32
|
+
providerErrorBody: { error: { type: 'invalid_request_error', param: 'temperature', code: 'unsupported_parameter' } },
|
|
33
|
+
reason: 'unsupported_parameter:temperature',
|
|
34
|
+
},
|
|
35
|
+
capturedAt: '2026-07-21T00:00:00.000Z',
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
function makeService(fixtures: DyNTS_AIMock_Fixture[]): DyNTS_AIMock_Service {
|
|
39
|
+
return new DyNTS_AIMock_Service(new DyNTS_AIMock_FixtureStore_Service(fixtures));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
it('replay hit → a beégetett output', async () => {
|
|
43
|
+
const service: DyNTS_AIMock_Service = makeService([okFixture]);
|
|
44
|
+
|
|
45
|
+
await expectAsync(
|
|
46
|
+
service.chatCompletion({ provider: 'open-ai', model: 'gpt-4o-mini', config: { temperature: 0 }, input: 'ping' })
|
|
47
|
+
).toBeResolvedTo('pong');
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it('miss → reject-on-unknown (DyNTS-AIMOCK-NOFIX), NEM silent', async () => {
|
|
51
|
+
const service: DyNTS_AIMock_Service = makeService([okFixture]);
|
|
52
|
+
|
|
53
|
+
try {
|
|
54
|
+
await service.chatCompletion({ provider: 'open-ai', model: 'gpt-4o-mini', input: 'unknown' });
|
|
55
|
+
fail('reject-on-unknown vártunk');
|
|
56
|
+
} catch (error) {
|
|
57
|
+
expect(error instanceof DyFM_Error).toBe(true);
|
|
58
|
+
if (error instanceof DyFM_Error) {
|
|
59
|
+
expect(error.message).toContain('no fixture');
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it('FR-048 config-check: NEM támogatott param → provider-faithful 400, MÉG fixture-lookup előtt', async () => {
|
|
65
|
+
const registry: DyFM_AI_ModelInfo[] = [
|
|
66
|
+
{
|
|
67
|
+
id: 'gpt-4o-mini',
|
|
68
|
+
provider: DyFM_AI_Provider.OpenAI,
|
|
69
|
+
modelType: DyFM_AI_ModelType.Chat,
|
|
70
|
+
capabilities: {} as any,
|
|
71
|
+
settingsSchema: { unsupported: ['temperature'] },
|
|
72
|
+
},
|
|
73
|
+
];
|
|
74
|
+
// A store URES → ha a config-check NEM futna, 'no fixture' jonne; igy bizonyitjuk a sorrendet.
|
|
75
|
+
const service: DyNTS_AIMock_Service = new DyNTS_AIMock_Service(
|
|
76
|
+
new DyNTS_AIMock_FixtureStore_Service([]),
|
|
77
|
+
registry
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
try {
|
|
81
|
+
await service.chatCompletion({ provider: 'open-ai', model: 'gpt-4o-mini', config: { temperature: 0.5 }, input: 'x' });
|
|
82
|
+
fail('provider-faithful 400-at vártunk');
|
|
83
|
+
} catch (error) {
|
|
84
|
+
expect(error instanceof DyFM_Error).toBe(true);
|
|
85
|
+
if (error instanceof DyFM_Error) {
|
|
86
|
+
expect(error.message).toContain('unsupported_parameter:temperature');
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
it('FR-048 config-check: registry nélkül permisszív (nem találgat) → a fixture-replay dönt', async () => {
|
|
92
|
+
const service: DyNTS_AIMock_Service = makeService([okFixture]);
|
|
93
|
+
|
|
94
|
+
await expectAsync(
|
|
95
|
+
service.chatCompletion({ provider: 'open-ai', model: 'gpt-4o-mini', config: { temperature: 0 }, input: 'ping' })
|
|
96
|
+
).toBeResolvedTo('pong');
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
it('beégetett error → provider-faithful hiba (DyNTS-AIMOCK-PERR)', async () => {
|
|
100
|
+
const service: DyNTS_AIMock_Service = makeService([errFixture]);
|
|
101
|
+
|
|
102
|
+
try {
|
|
103
|
+
await service.chatCompletion({ provider: 'open-ai', model: 'gpt-4o-mini', config: { temperature: 0.5 }, input: 'bad' });
|
|
104
|
+
fail('provider-faithful hibát vártunk');
|
|
105
|
+
} catch (error) {
|
|
106
|
+
expect(error instanceof DyFM_Error).toBe(true);
|
|
107
|
+
if (error instanceof DyFM_Error) {
|
|
108
|
+
expect(error.message).toContain('provider-faithful error');
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
});
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { DyFM_Error } from '@futdevpro/fsm-dynamo';
|
|
2
|
+
import { DyFM_AI_ModelInfo } from '@futdevpro/fsm-dynamo/ai';
|
|
3
|
+
|
|
4
|
+
import { DyNTS_AIMock_Modality } from '../_enums/aim-modality.enum';
|
|
5
|
+
import { DyNTS_AI_ModelConfig_Validator } from '../../../_collections/ai-model-config-validator.util';
|
|
6
|
+
import { DyNTS_AIMock_Request } from '../_models/interfaces/aim-request.interface';
|
|
7
|
+
import { DyNTS_AIMock_Fixture } from '../_models/interfaces/aim-fixture.interface';
|
|
8
|
+
import { DyNTS_AIMock_Error } from '../_models/interfaces/aim-error.interface';
|
|
9
|
+
import { DyNTS_AIMock_CallInput } from '../_models/interfaces/aim-call-input.interface';
|
|
10
|
+
import { DyNTS_AIMock_FixtureMatch_Util } from '../_collections/aim-fixture-match.util';
|
|
11
|
+
import { DyNTS_AIMock_FixtureStore_Service } from './aim-fixture-store.service';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A mock provider-surface (MP-4 SP-4.1) — a valódi AI-hívás kiváltása beégetett fixture-ökkel, outbound
|
|
15
|
+
* hívás NÉLKÜL. Négy modalitás-metódus (`chatCompletion`/`embed`/`generateImage`/`generateAudio`), mind a
|
|
16
|
+
* `DyNTS_AIMock_FixtureStore`-ból replay-el: hit → a beégetett kimenet; miss → strukturált reject-on-unknown
|
|
17
|
+
* (D3, NEM silent-fallback, NEM outbound); beégetett provider-faithful hiba → ugyanaz a hiba, mint a valódi
|
|
18
|
+
* providernél. A config-validáció (FR-048 reconciler validate-mode) a `settingsSchema` populálása UTÁN
|
|
19
|
+
* kötendő be (G4) — l. a `replay` TODO-ját; addig SZÁNDÉKOSAN nem validálunk (nem fake-elünk provider-error-t).
|
|
20
|
+
*/
|
|
21
|
+
export class DyNTS_AIMock_Service {
|
|
22
|
+
|
|
23
|
+
/** A fixture-tár, amiből a replay megy. */
|
|
24
|
+
private readonly store: DyNTS_AIMock_FixtureStore_Service;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* A modell-registry a config-validaciohoz (FR-048 `settingsSchema`). Ures registry → NINCS
|
|
28
|
+
* config-validacio (permissziv), csak fixture-replay — igy a mock a schema kikerulese elott is hasznalhato.
|
|
29
|
+
*/
|
|
30
|
+
private readonly modelRegistry: DyFM_AI_ModelInfo[];
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @param store a beégetett fixture-ök tára.
|
|
34
|
+
* @param modelRegistry opcionális modell-registry (pl. `DyFM_OAI_Models`) a FR-048 config-validációhoz.
|
|
35
|
+
*/
|
|
36
|
+
constructor(store: DyNTS_AIMock_FixtureStore_Service, modelRegistry?: DyFM_AI_ModelInfo[]) {
|
|
37
|
+
this.store = store;
|
|
38
|
+
this.modelRegistry = modelRegistry ?? [];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Chat/completion replay a beégetett fixture-ből.
|
|
43
|
+
* @param set - provider + model + opcionális config + prompt-input
|
|
44
|
+
*/
|
|
45
|
+
async chatCompletion(set: DyNTS_AIMock_CallInput): Promise<unknown> {
|
|
46
|
+
return this.replay(this.toRequest(set, DyNTS_AIMock_Modality.text));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Embedding replay a beégetett fixture-ből.
|
|
51
|
+
* @param set - provider + model + opcionális config + szöveg(ek)-input
|
|
52
|
+
*/
|
|
53
|
+
async embed(set: DyNTS_AIMock_CallInput): Promise<unknown> {
|
|
54
|
+
return this.replay(this.toRequest(set, DyNTS_AIMock_Modality.embedding));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Kép-generálás replay a beégetett fixture-ből.
|
|
59
|
+
* @param set - provider + model + opcionális config + kép-prompt-input
|
|
60
|
+
*/
|
|
61
|
+
async generateImage(set: DyNTS_AIMock_CallInput): Promise<unknown> {
|
|
62
|
+
return this.replay(this.toRequest(set, DyNTS_AIMock_Modality.image));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Hang (transcription / TTS) replay a beégetett fixture-ből.
|
|
67
|
+
* @param set - provider + model + opcionális config + audio/szöveg-input
|
|
68
|
+
*/
|
|
69
|
+
async generateAudio(set: DyNTS_AIMock_CallInput): Promise<unknown> {
|
|
70
|
+
return this.replay(this.toRequest(set, DyNTS_AIMock_Modality.audio));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** A modalitás-metódus bemenetéből teljes `DyNTS_AIMock_Request`. */
|
|
74
|
+
private toRequest(set: DyNTS_AIMock_CallInput, modality: DyNTS_AIMock_Modality): DyNTS_AIMock_Request {
|
|
75
|
+
return {
|
|
76
|
+
provider: set.provider,
|
|
77
|
+
model: set.model,
|
|
78
|
+
modality: modality,
|
|
79
|
+
config: set.config,
|
|
80
|
+
input: set.input,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** A közös replay/reject-mag. */
|
|
85
|
+
private replay(request: DyNTS_AIMock_Request): unknown {
|
|
86
|
+
// FR-048: a config-validáció a modell `settingsSchema.unsupported`-ja alapján — MÉG a fixture-lookup
|
|
87
|
+
// ELŐTT, ahogy a valódi providernél is a szerver utasítja el a rossz paramétert.
|
|
88
|
+
this.validateConfig(request);
|
|
89
|
+
|
|
90
|
+
const fixture: DyNTS_AIMock_Fixture | undefined = this.store.resolve(request);
|
|
91
|
+
|
|
92
|
+
if (!fixture) {
|
|
93
|
+
throw this.rejectOnUnknown(request);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (fixture.error) {
|
|
97
|
+
throw this.toProviderFaithfulError(fixture.error);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return fixture.output;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* FR-048 config-validáció — **delegál** a modul-szintű `DyNTS_AI_ModelConfig_Validator`-ra, hogy EGY
|
|
105
|
+
* validációs út legyen (SSoT): ugyanaz a kód dönt a production pre-validációnál és a mockban.
|
|
106
|
+
* Üres registry / schema-mentes modell → permisszív (nem találgatunk).
|
|
107
|
+
*/
|
|
108
|
+
private validateConfig(request: DyNTS_AIMock_Request): void {
|
|
109
|
+
const error: DyFM_Error = DyNTS_AI_ModelConfig_Validator.validate({
|
|
110
|
+
provider: request.provider,
|
|
111
|
+
model: request.model,
|
|
112
|
+
config: request.config,
|
|
113
|
+
registry: this.modelRegistry,
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
if (error) {
|
|
117
|
+
throw error;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** Egy `DyNTS_AIMock_Error` leíróból a dobandó `DyFM_Error`. */
|
|
122
|
+
private toProviderFaithfulError(error: DyNTS_AIMock_Error): DyFM_Error {
|
|
123
|
+
return new DyFM_Error({
|
|
124
|
+
message: `[ai-mock] provider-faithful error (HTTP ${error.httpStatus}): ${error.reason}`,
|
|
125
|
+
userMessage: 'AI request rejected (mock).',
|
|
126
|
+
errorCode: 'DyNTS-AIMOCK-PERR',
|
|
127
|
+
additionalContent: { providerErrorBody: error.providerErrorBody },
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/** Strukturált „no-fixture" hiba (D3) — beszédes, a hiányzó kulccsal + az extend-recepttel (MP-6). */
|
|
132
|
+
private rejectOnUnknown(request: DyNTS_AIMock_Request): DyFM_Error {
|
|
133
|
+
const matchKey: string = DyNTS_AIMock_FixtureMatch_Util.buildMatchKey(request);
|
|
134
|
+
|
|
135
|
+
return new DyFM_Error({
|
|
136
|
+
message: `[ai-mock] no fixture for '${request.provider}:${request.model}' (${request.modality}). ` +
|
|
137
|
+
`Match-key: ${matchKey}. Beégetés: 'dc ai-mock-extend' (MP-6).`,
|
|
138
|
+
userMessage: 'No mock fixture is registered for this AI request.',
|
|
139
|
+
errorCode: 'DyNTS-AIMOCK-NOFIX',
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ai-mock module (@futdevpro/nts-dynamo/ai/ai-mock)
|
|
3
|
+
//
|
|
4
|
+
// AI Mocking System — provider-faithful mock-service + fixture-store (Layer B) a valódi AI-hívások
|
|
5
|
+
// kiváltására teszt/CI/lokál-fejlesztésben. A Layer A (per-model config-registry + validátor) a FR-048
|
|
6
|
+
// (`DyFM_AI_ModelSettingsSchema` + reconciler) — az ai-mock azt FOGYASZTJA a provider-faithful
|
|
7
|
+
// error-reprodukcióhoz. Terv: `documentations/plans/ai-mocking-system/HYPERPLAN.md`.
|
|
8
|
+
//
|
|
9
|
+
// SCAFFOLD (Cikl. 2, 2026-07-21): a modul-váz + a meglévő determinisztikus embedding-mock re-exportja.
|
|
10
|
+
// A további szolgáltatások (fixture-store, mock-service, coverage) MP-3..MP-6 során kerülnek ide;
|
|
11
|
+
// almappák (_collections/_enums/_models/_services) csak 3-5+ elemnél jönnek létre (FDP folder-rule).
|
|
12
|
+
//
|
|
13
|
+
|
|
14
|
+
// Layer B embedding-mag: a determinisztikus embedding-mock (BFR-AM-008) — MP-5 SP-5.1 során FIZIKAILAG
|
|
15
|
+
// ide költözött (`_services/ai-embedding-mock.service.ts`). A régi `@futdevpro/nts-dynamo/ai` útvonal
|
|
16
|
+
// backward-compat re-exportként tovább él, így a FAM-consumer nem törik.
|
|
17
|
+
export * from './_services/ai-embedding-mock.service';
|
|
18
|
+
|
|
19
|
+
// ENUMS
|
|
20
|
+
export * from './_enums/aim-modality.enum';
|
|
21
|
+
|
|
22
|
+
// MODELS / INTERFACES — fixture-shape (MP-3 SP-3.1)
|
|
23
|
+
export * from './_models/interfaces/aim-request.interface';
|
|
24
|
+
export * from './_models/interfaces/aim-error.interface';
|
|
25
|
+
export * from './_models/interfaces/aim-fixture.interface';
|
|
26
|
+
export * from './_models/interfaces/aim-call-input.interface';
|
|
27
|
+
export * from './_models/interfaces/aim-service-collection.interface';
|
|
28
|
+
|
|
29
|
+
// COLLECTIONS — input-match normalizáció (MP-3 SP-3.1).
|
|
30
|
+
// A provider-faithful hiba-alak + a validate-mode a MODUL-SZINTŰ `ai/` alatt él (SSoT), mert production
|
|
31
|
+
// pre-validációra is kell — nem az ai-mock-ból importálandó: `@futdevpro/nts-dynamo/ai`.
|
|
32
|
+
export * from './_collections/aim-fixture-match.util';
|
|
33
|
+
|
|
34
|
+
// DEFAULT-BUNDLE factory (MP-7 SP-7.1) — egy hívással álló mock-készlet.
|
|
35
|
+
export * from './_collections/aim-default-collection.util';
|
|
36
|
+
|
|
37
|
+
// FIXTURE-SERIALIZER (MP-3 SP-3.1) — determinisztikus, diff-barát konstans-fájl generálás.
|
|
38
|
+
export * from './_collections/aim-fixture-serializer.util';
|
|
39
|
+
|
|
40
|
+
// SERVICES — fixture-store (MP-3) + mock-service surface (MP-4 SP-4.1) + generáló harness (MP-3 SP-3.2).
|
|
41
|
+
// A harness KÉT biztonsági zárral véd a véletlen pénzköltés ellen (spend-guard default OFF + D2 tier-cap).
|
|
42
|
+
export * from './_services/aim-fixture-store.service';
|
|
43
|
+
export * from './_services/aim-mock.service';
|
|
44
|
+
export * from './_services/aim-fixture-harness.service';
|