@futdevpro/nts-dynamo 1.15.157 → 1.15.160
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 +17 -17
- package/build/_modules/privacy-lifecycle/_models/privacy-export-artifact.interface.d.ts +71 -0
- package/build/_modules/privacy-lifecycle/_models/privacy-export-artifact.interface.d.ts.map +1 -0
- package/build/_modules/privacy-lifecycle/_models/privacy-export-artifact.interface.js +3 -0
- package/build/_modules/privacy-lifecycle/_models/privacy-export-artifact.interface.js.map +1 -0
- package/build/_modules/privacy-lifecycle/index.d.ts +3 -0
- package/build/_modules/privacy-lifecycle/index.d.ts.map +1 -1
- package/build/_modules/privacy-lifecycle/index.js +5 -1
- package/build/_modules/privacy-lifecycle/index.js.map +1 -1
- package/build/_modules/privacy-lifecycle/privacy-export-artifact.control-service.d.ts +48 -0
- package/build/_modules/privacy-lifecycle/privacy-export-artifact.control-service.d.ts.map +1 -0
- package/build/_modules/privacy-lifecycle/privacy-export-artifact.control-service.js +332 -0
- package/build/_modules/privacy-lifecycle/privacy-export-artifact.control-service.js.map +1 -0
- package/build/_modules/privacy-lifecycle/privacy-export-artifact.mongo-store.d.ts +25 -0
- package/build/_modules/privacy-lifecycle/privacy-export-artifact.mongo-store.d.ts.map +1 -0
- package/build/_modules/privacy-lifecycle/privacy-export-artifact.mongo-store.js +126 -0
- package/build/_modules/privacy-lifecycle/privacy-export-artifact.mongo-store.js.map +1 -0
- package/package.json +11 -4
- package/.c8rc.json +0 -26
- package/.copilot/patterns.json +0 -8
- package/.cursor/rules/__assistant_guide.mdc +0 -30
- package/.cursor/rules/__main.mdc +0 -64
- package/.cursor/rules/_ag_backend-structure.mdc +0 -86
- package/.cursor/rules/_ag_backend.mdc +0 -16
- package/.cursor/rules/_ag_debug.mdc +0 -8
- package/.cursor/rules/_ag_documentation_writing_rules.mdc +0 -372
- package/.cursor/rules/_ag_file-refactoring.mdc +0 -113
- package/.cursor/rules/_ag_fixes_rules.mdc +0 -6
- package/.cursor/rules/_ag_frontend-structure.mdc +0 -87
- package/.cursor/rules/_ag_frontend.mdc +0 -40
- package/.cursor/rules/_ag_import-rules.mdc +0 -45
- package/.cursor/rules/_ag_naming.mdc +0 -116
- package/.cursor/rules/_ag_running_commands.mdc +0 -5
- package/.cursor/rules/_ag_server-controller.mdc +0 -6
- package/.cursor/rules/_ag_should-be.mdc +0 -7
- package/.cursor/rules/_ag_swearing.mdc +0 -47
- package/.cursor/rules/ai_development_guide.md +0 -61
- package/.cursor/rules/ai_directives.md +0 -114
- package/.cursor/rules/cursor-rules.md +0 -160
- package/.cursor/rules/default-command.mdc +0 -465
- package/.cursor/rules/error_code_pattern.md +0 -40
- package/.cursor/rules/saved rule mcp server use.md +0 -16
- package/.dynamo/pipeline.cicd.config.json +0 -190
- package/.dynamo/version-bump.config.json +0 -5
- package/.github/workflows/main.yml +0 -438
- package/.husky/pre-commit +0 -3
- package/.vscode/settings.json +0 -11
- package/BuildPackage.bat +0 -1
- package/HOWTO.md +0 -15
- package/__documentations/2026-04-28-logs-module.md +0 -49
- package/__documentations/2026-05-17-oai-compatible-providers.md +0 -229
- package/__documentations/2026-05-17-static-client-serving-howto.md +0 -144
- package/__documentations/2026-06-01-fr041-cors-middleware.md +0 -96
- package/__documentations/2026-06-01-fr047-p2p3-function-calling.md +0 -81
- package/__documentations/2026-06-15-fr193-memory-guard.md +0 -73
- package/__documentations/2026-08-08-fr292-app-version-header.md +0 -38
- package/__documentations/2026-08-14-field-encryption-mongoose-document-spread.md +0 -124
- package/__documentations/2026-08-18-artifact-compiler.md +0 -46
- package/__documentations/2026-08-18-mongo-transaction-control-service.md +0 -82
- package/__documentations/2026-08-18-standalone-account-security-and-privacy-bedrock.md +0 -132
- package/__documentations/2026-08-21-distributed-rate-limit-bfr-ctm-010.md +0 -59
- package/__documentations/2026-08-22-bfr-ctm-018-content-free-endpoint-errors.md +0 -54
- package/__documentations/2026-08-22-bfr-ctm-020-content-free-request-telemetry.md +0 -65
- package/__documentations/2026-08-22-content-free-process-error-boundary.md +0 -111
- package/__documentations/2026-08-22-npm-token-state-classifier.md +0 -92
- package/__documentations/nts-integration-tests-2026-03-17.md +0 -26
- package/__documentations/plans/BEDROCK-HYPERPLAN.md +0 -95
- package/_specifications/BACKLOG.md +0 -92
- package/_specifications/TODO.md +0 -15
- package/_specifications/agent.md +0 -138
- package/eslint.config.js +0 -3
- package/nodemon.json +0 -24
- package/pnpm-workspace.yaml +0 -6
- package/scripts/_seed-out/aim-seed.fixtures.ts +0 -161
- package/scripts/_seed-out/image-raw.json +0 -1
- package/scripts/_seed-out/llm-expand-raw.json +0 -60
- package/scripts/_seed-out/sample-image.png +0 -0
- package/scripts/_seed-out/seed-raw.json +0 -153
- package/scripts/ai-fixture-seed.js +0 -126
- package/scripts/run-coverage-tests.js +0 -28
- package/spec/support/helpers/spec-reporter-loader.js +0 -359
- package/spec/support/helpers/ts-node-helper.js +0 -93
- package/spec/support/jasmine.coverage.json +0 -24
- package/spec/support/jasmine.json +0 -24
- package/src/_assets/dynamo-nts-logo-128.png +0 -0
- package/src/_assets/dynamo-nts-logo-256.png +0 -0
- package/src/_assets/dynamo-nts-logo-512.png +0 -0
- package/src/_assets/dynamo-nts-logo-64.png +0 -0
- package/src/_collections/app-version-header.util.spec.ts +0 -108
- package/src/_collections/app-version-header.util.ts +0 -74
- package/src/_collections/archive-service-registry.const.ts +0 -21
- package/src/_collections/archive.util.spec.ts +0 -57
- package/src/_collections/archive.util.ts +0 -18
- package/src/_collections/atlas-default-db-options.const.ts +0 -10
- package/src/_collections/client-safe-error.util.spec.ts +0 -151
- package/src/_collections/client-safe-error.util.ts +0 -107
- package/src/_collections/default-fallback-cache-max-age.const.spec.ts +0 -11
- package/src/_collections/default-fallback-cache-max-age.const.ts +0 -2
- package/src/_collections/default-not-found-page.const.spec.ts +0 -19
- package/src/_collections/default-not-found-page.const.ts +0 -22
- package/src/_collections/default-socket-path.const.spec.ts +0 -12
- package/src/_collections/default-socket-path.const.ts +0 -2
- package/src/_collections/field-encryption.util.spec.ts +0 -195
- package/src/_collections/field-encryption.util.ts +0 -222
- package/src/_collections/get-environment-settings.util.spec.ts +0 -210
- package/src/_collections/get-environment-settings.util.ts +0 -49
- package/src/_collections/global-settings.const.ts +0 -126
- package/src/_collections/load-shed.util.spec.ts +0 -62
- package/src/_collections/load-shed.util.ts +0 -51
- package/src/_collections/mongo-reconnect-guard.util.spec.ts +0 -52
- package/src/_collections/mongo-reconnect-guard.util.ts +0 -172
- package/src/_collections/npm-token-check.util.spec.ts +0 -218
- package/src/_collections/npm-token-check.util.ts +0 -327
- package/src/_collections/sample.env +0 -21
- package/src/_collections/security-headers.util.spec.ts +0 -98
- package/src/_collections/security-headers.util.ts +0 -96
- package/src/_collections/signed-url.util.spec.ts +0 -198
- package/src/_collections/signed-url.util.ts +0 -170
- package/src/_collections/star.controller.spec.ts +0 -224
- package/src/_collections/star.controller.ts +0 -130
- package/src/_collections/static-cache-control.util.spec.ts +0 -47
- package/src/_collections/static-cache-control.util.ts +0 -25
- package/src/_enums/data-model-type.enum.ts +0 -14
- package/src/_enums/data-service-function.enum.ts +0 -24
- package/src/_enums/predefined-data-types.enum.ts +0 -17
- package/src/_enums/route-security.enum.ts +0 -12
- package/src/_models/control-models/api-call-params.control-model.spec.ts +0 -152
- package/src/_models/control-models/api-call-params.control-model.ts +0 -142
- package/src/_models/control-models/app-ext-system-controls.control-model.spec.ts +0 -52
- package/src/_models/control-models/app-ext-system-controls.control-model.ts +0 -9
- package/src/_models/control-models/app-params.control-model.spec.ts +0 -229
- package/src/_models/control-models/app-params.control-model.ts +0 -137
- package/src/_models/control-models/app-system-controls.control-model.spec.ts +0 -31
- package/src/_models/control-models/app-system-controls.control-model.ts +0 -9
- package/src/_models/control-models/endpoint-params.control-model.spec.ts +0 -754
- package/src/_models/control-models/endpoint-params.control-model.ts +0 -575
- package/src/_models/control-models/http-settings.control-model.spec.ts +0 -77
- package/src/_models/control-models/http-settings.control-model.ts +0 -37
- package/src/_models/control-models/system-control.control-model.spec.ts +0 -27
- package/src/_models/control-models/system-control.control-model.ts +0 -12
- package/src/_models/data-models/schema-migration.data-model.ts +0 -50
- package/src/_models/interfaces/app-version-header-settings.interface.ts +0 -17
- package/src/_models/interfaces/certification-settings.interface.ts +0 -7
- package/src/_models/interfaces/compare-data-options.interface.ts +0 -27
- package/src/_models/interfaces/compare-data-result.interface.ts +0 -12
- package/src/_models/interfaces/cors-settings.interface.spec.ts +0 -52
- package/src/_models/interfaces/cors-settings.interface.ts +0 -56
- package/src/_models/interfaces/db-query-options.interface.ts +0 -33
- package/src/_models/interfaces/environment-settings.interface.ts +0 -59
- package/src/_models/interfaces/global-log-settings.interface.ts +0 -171
- package/src/_models/interfaces/global-service-settings.interface.ts +0 -47
- package/src/_models/interfaces/global-settings.interface.ts +0 -294
- package/src/_models/interfaces/migration-entry.interface.ts +0 -19
- package/src/_models/interfaces/mongo-transaction-settings.interface.ts +0 -9
- package/src/_models/interfaces/request-telemetry-settings.interface.ts +0 -9
- package/src/_models/interfaces/request-telemetry-snapshot.interface.ts +0 -30
- package/src/_models/interfaces/routing-module-settings.interface.ts +0 -21
- package/src/_models/interfaces/security-headers-settings.interface.ts +0 -50
- package/src/_models/interfaces/signed-url-verify-result.interface.ts +0 -13
- package/src/_models/interfaces/static-client-settings.interface.spec.ts +0 -29
- package/src/_models/interfaces/static-client-settings.interface.ts +0 -36
- package/src/_models/types/db-update.type.ts +0 -100
- package/src/_modules/account-security/_enums/account-challenge-purpose.type-enum.ts +0 -5
- package/src/_modules/account-security/_enums/account-refresh-token-state.type-enum.ts +0 -6
- package/src/_modules/account-security/_enums/account-session-state.type-enum.ts +0 -6
- package/src/_modules/account-security/_models/account-challenge-adapter.interface.ts +0 -17
- package/src/_modules/account-security/_models/account-challenge-issued.interface.ts +0 -6
- package/src/_modules/account-security/_models/account-challenge-record.interface.ts +0 -13
- package/src/_modules/account-security/_models/account-challenge-result.interface.ts +0 -8
- package/src/_modules/account-security/_models/account-challenge-settings.interface.ts +0 -9
- package/src/_modules/account-security/_models/account-password-policy.interface.ts +0 -11
- package/src/_modules/account-security/_models/account-password-verification.interface.ts +0 -5
- package/src/_modules/account-security/_models/account-refresh-token-record.interface.ts +0 -13
- package/src/_modules/account-security/_models/account-session-adapter.interface.ts +0 -19
- package/src/_modules/account-security/_models/account-session-claims.interface.ts +0 -7
- package/src/_modules/account-security/_models/account-session-context.interface.ts +0 -6
- package/src/_modules/account-security/_models/account-session-create.interface.ts +0 -8
- package/src/_modules/account-security/_models/account-session-record.interface.ts +0 -21
- package/src/_modules/account-security/_models/account-session-rotate.interface.ts +0 -11
- package/src/_modules/account-security/_models/account-session-settings.interface.ts +0 -11
- package/src/_modules/account-security/_models/account-session-token-pair.interface.ts +0 -8
- package/src/_modules/account-security/_models/account-session-view.interface.ts +0 -13
- package/src/_modules/account-security/account-challenge.control-service.spec.ts +0 -195
- package/src/_modules/account-security/account-challenge.control-service.ts +0 -164
- package/src/_modules/account-security/account-password.control-service.spec.ts +0 -96
- package/src/_modules/account-security/account-password.control-service.ts +0 -288
- package/src/_modules/account-security/account-session.control-service.spec.ts +0 -294
- package/src/_modules/account-security/account-session.control-service.ts +0 -376
- package/src/_modules/account-security/index.ts +0 -31
- package/src/_modules/admin-auth/_models/admin-api-key-config.interface.ts +0 -33
- package/src/_modules/admin-auth/admin-api-key.auth-service.spec.ts +0 -200
- package/src/_modules/admin-auth/admin-api-key.auth-service.ts +0 -220
- package/src/_modules/admin-auth/index.ts +0 -2
- package/src/_modules/ai/_collections/ai-model-config-validator.util.spec.ts +0 -150
- package/src/_modules/ai/_collections/ai-model-config-validator.util.ts +0 -131
- package/src/_modules/ai/_collections/ai-provider-error.util.ts +0 -144
- package/src/_modules/ai/_models/ai-input-interfaces.ts +0 -117
- package/src/_modules/ai/_models/ai-test-generation-result.interface.ts +0 -16
- package/src/_modules/ai/_models/interfaces/dynts-ai-cost-event-callback.interface.ts +0 -14
- package/src/_modules/ai/_models/interfaces/dynts-ai-cost-event.interface.ts +0 -56
- package/src/_modules/ai/_models/interfaces/dynts-ai-provider-error.interface.ts +0 -16
- package/src/_modules/ai/_modules/ai-mock/_collections/aim-default-collection.util.spec.ts +0 -72
- package/src/_modules/ai/_modules/ai-mock/_collections/aim-default-collection.util.ts +0 -71
- package/src/_modules/ai/_modules/ai-mock/_collections/aim-fixture-match.util.spec.ts +0 -57
- package/src/_modules/ai/_modules/ai-mock/_collections/aim-fixture-match.util.ts +0 -60
- package/src/_modules/ai/_modules/ai-mock/_collections/aim-fixture-serializer.util.spec.ts +0 -56
- package/src/_modules/ai/_modules/ai-mock/_collections/aim-fixture-serializer.util.ts +0 -117
- package/src/_modules/ai/_modules/ai-mock/_enums/aim-modality.enum.ts +0 -28
- package/src/_modules/ai/_modules/ai-mock/_models/interfaces/aim-call-input.interface.ts +0 -14
- package/src/_modules/ai/_modules/ai-mock/_models/interfaces/aim-error.interface.ts +0 -11
- package/src/_modules/ai/_modules/ai-mock/_models/interfaces/aim-fixture.interface.ts +0 -30
- package/src/_modules/ai/_modules/ai-mock/_models/interfaces/aim-request.interface.ts +0 -19
- package/src/_modules/ai/_modules/ai-mock/_models/interfaces/aim-service-collection.interface.ts +0 -20
- package/src/_modules/ai/_modules/ai-mock/_services/ai-embedding-mock.service.spec.ts +0 -115
- package/src/_modules/ai/_modules/ai-mock/_services/ai-embedding-mock.service.ts +0 -233
- package/src/_modules/ai/_modules/ai-mock/_services/aim-fixture-harness.service.spec.ts +0 -134
- package/src/_modules/ai/_modules/ai-mock/_services/aim-fixture-harness.service.ts +0 -127
- package/src/_modules/ai/_modules/ai-mock/_services/aim-fixture-pipeline.spec.ts +0 -105
- package/src/_modules/ai/_modules/ai-mock/_services/aim-fixture-store.service.spec.ts +0 -50
- package/src/_modules/ai/_modules/ai-mock/_services/aim-fixture-store.service.ts +0 -65
- package/src/_modules/ai/_modules/ai-mock/_services/aim-integration-proof.spec.ts +0 -92
- package/src/_modules/ai/_modules/ai-mock/_services/aim-mock.service.spec.ts +0 -112
- package/src/_modules/ai/_modules/ai-mock/_services/aim-mock.service.ts +0 -155
- package/src/_modules/ai/_modules/ai-mock/fixtures/aim-text.fixtures.ts +0 -649
- package/src/_modules/ai/_modules/ai-mock/index.ts +0 -47
- package/src/_modules/ai/_modules/anthropic/_services/aai-user-key.control-service.ts +0 -138
- package/src/_modules/ai/_modules/anthropic/index.ts +0 -5
- package/src/_modules/ai/_modules/document-ai/_collections/dai-chunking.util.spec.ts +0 -242
- package/src/_modules/ai/_modules/document-ai/_collections/dai-chunking.util.ts +0 -639
- package/src/_modules/ai/_modules/document-ai/_collections/dai-code-chunking.util.spec.ts +0 -295
- package/src/_modules/ai/_modules/document-ai/_collections/dai-code-chunking.util.ts +0 -552
- package/src/_modules/ai/_modules/document-ai/_collections/dai-document.util.spec.ts +0 -209
- package/src/_modules/ai/_modules/document-ai/_collections/dai-document.util.ts +0 -85
- package/src/_modules/ai/_modules/document-ai/_enums/dai-compare-result-type.enum.ts +0 -8
- package/src/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-chunk.data-model.ts +0 -146
- package/src/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-page.data-model.ts +0 -163
- package/src/_modules/ai/_modules/document-ai/_models/data-models/dai-document.data-model.ts +0 -100
- package/src/_modules/ai/_modules/document-ai/_models/interfaces/dai-code-chunk.interface.ts +0 -68
- package/src/_modules/ai/_modules/document-ai/_models/interfaces/dai-doc-chunk-compare-result.interface.ts +0 -18
- package/src/_modules/ai/_modules/document-ai/_models/interfaces/dai-doc-page-compare-result.interface.ts +0 -19
- package/src/_modules/ai/_modules/document-ai/_models/interfaces/dai-document-compare-result.interface.ts +0 -25
- package/src/_modules/ai/_modules/document-ai/index.ts +0 -30
- package/src/_modules/ai/_modules/fdp-ai/_services/fdpai-user-key.control-service.ts +0 -189
- package/src/_modules/ai/_modules/fdp-ai/index.ts +0 -5
- package/src/_modules/ai/_modules/open-ai/_collections/oai-global-settings.const.ts +0 -9
- package/src/_modules/ai/_modules/open-ai/_collections/oai-llm-predefined-requests-hu.conts.ts +0 -83
- package/src/_modules/ai/_modules/open-ai/_collections/oai-llm-predefined-requests.conts.ts +0 -76
- package/src/_modules/ai/_modules/open-ai/_enums/oai-gpt-message-role.enum.ts +0 -45
- package/src/_modules/ai/_modules/open-ai/_models/interfaces/oai-global-settings.interface.ts +0 -8
- package/src/_modules/ai/_modules/open-ai/_models/interfaces/oai-gpt-message.interface.ts +0 -7
- package/src/_modules/ai/_modules/open-ai/_models/interfaces/oai-llm-predefined-requests.interface.ts +0 -57
- package/src/_modules/ai/_modules/open-ai/_services/data-services/oai-doc-chunk-data.service.ts +0 -293
- package/src/_modules/ai/_modules/open-ai/_services/data-services/oai-doc-page.data-service.ts +0 -572
- package/src/_modules/ai/_modules/open-ai/_services/data-services/oai-document.data-service.spec.ts +0 -342
- package/src/_modules/ai/_modules/open-ai/_services/data-services/oai-document.data-service.ts +0 -435
- package/src/_modules/ai/_modules/open-ai/_services/data-services/oai-vector-data.service.spec.ts +0 -550
- package/src/_modules/ai/_modules/open-ai/_services/data-services/oai-vector-data.service.ts +0 -631
- package/src/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.spec.ts +0 -332
- package/src/_modules/ai/_modules/open-ai/_services/oai-embedding.control-service.ts +0 -132
- package/src/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.spec.ts +0 -462
- package/src/_modules/ai/_modules/open-ai/_services/oai-llm-chat.service-base.ts +0 -635
- package/src/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.spec.ts +0 -489
- package/src/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.tools.spec.ts +0 -173
- package/src/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.ts +0 -1085
- package/src/_modules/ai/_modules/open-ai/_services/oai-user-key.control-service.ts +0 -157
- package/src/_modules/ai/_modules/open-ai/index.ts +0 -74
- package/src/_modules/ai/_services/ai-embedding-provider.registry.spec.ts +0 -110
- package/src/_modules/ai/_services/ai-embedding-provider.registry.ts +0 -114
- package/src/_modules/ai/_services/ai-embedding.service-base.spec.ts +0 -98
- package/src/_modules/ai/_services/ai-embedding.service-base.ts +0 -48
- package/src/_modules/ai/_services/ai-llm-chat.service-base.spec.ts +0 -229
- package/src/_modules/ai/_services/ai-llm-chat.service-base.ts +0 -68
- package/src/_modules/ai/_services/ai-llm.service-base.reconciler.spec.ts +0 -133
- package/src/_modules/ai/_services/ai-llm.service-base.spec.ts +0 -250
- package/src/_modules/ai/_services/ai-llm.service-base.ts +0 -599
- package/src/_modules/ai/_services/ai-provider.service-base.spec.ts +0 -158
- package/src/_modules/ai/_services/ai-provider.service-base.ts +0 -67
- package/src/_modules/ai/_services/ai-user-key.service-base.ts +0 -59
- package/src/_modules/ai/_services/lmstudio-embedding.control-service.spec.ts +0 -197
- package/src/_modules/ai/_services/lmstudio-embedding.control-service.ts +0 -399
- package/src/_modules/ai/index.ts +0 -33
- package/src/_modules/artifact-compiler/_enums/artifact-compile-outcome.type-enum.ts +0 -5
- package/src/_modules/artifact-compiler/_enums/artifact-compile-stage.type-enum.ts +0 -8
- package/src/_modules/artifact-compiler/_enums/artifact-retry-class.type-enum.ts +0 -6
- package/src/_modules/artifact-compiler/_models/artifact-compile.interface.ts +0 -35
- package/src/_modules/artifact-compiler/artifact-compiler.control-service.spec.ts +0 -151
- package/src/_modules/artifact-compiler/artifact-compiler.control-service.ts +0 -356
- package/src/_modules/artifact-compiler/index.ts +0 -9
- package/src/_modules/assistant/_collections/ass-global-settings.const.ts +0 -13
- package/src/_modules/assistant/_collections/ass.util.spec.ts +0 -176
- package/src/_modules/assistant/_collections/ass.util.ts +0 -50
- package/src/_modules/assistant/_models/ass-global-settings.interface.ts +0 -15
- package/src/_modules/assistant/_services/ass-io.control-service.spec.ts +0 -140
- package/src/_modules/assistant/_services/ass-io.control-service.ts +0 -74
- package/src/_modules/assistant/_services/ass-main.control-service.spec.ts +0 -192
- package/src/_modules/assistant/_services/ass-main.control-service.ts +0 -107
- package/src/_modules/assistant/index.ts +0 -19
- package/src/_modules/bot/_collections/bot-default-commands.const.ts +0 -12
- package/src/_modules/bot/_collections/bot-global-settings.const.ts +0 -39
- package/src/_modules/bot/_models/bot-channel-wrapper.interface.ts +0 -62
- package/src/_modules/bot/_models/bot-command.interface.ts +0 -8
- package/src/_modules/bot/_models/bot-global-settings.interface.ts +0 -96
- package/src/_modules/bot/_models/bot-last-mention-date.interface.ts +0 -6
- package/src/_modules/bot/_models/bot-last-message-date.interface.ts +0 -5
- package/src/_modules/bot/_models/bot-message-wrapper.interface.ts +0 -90
- package/src/_modules/bot/_models/bot-user-wrapper.interface.ts +0 -41
- package/src/_modules/bot/_modules/discord-bot/_models/dib-platform.types.ts +0 -10
- package/src/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.spec.ts +0 -431
- package/src/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.ts +0 -641
- package/src/_modules/bot/_modules/discord-bot/index.ts +0 -12
- package/src/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.spec.ts +0 -160
- package/src/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.ts +0 -55
- package/src/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.ts +0 -15
- package/src/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.spec.ts +0 -374
- package/src/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.ts +0 -447
- package/src/_modules/bot/_modules/dynamo-bot/index.ts +0 -15
- package/src/_modules/bot/_modules/slack-bot/_models/slb-platform.types.ts +0 -9
- package/src/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.spec.ts +0 -344
- package/src/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.ts +0 -197
- package/src/_modules/bot/_modules/slack-bot/index.ts +0 -12
- package/src/_modules/bot/_modules/teams-bot/_models/teb-platform.types.ts +0 -9
- package/src/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.spec.ts +0 -345
- package/src/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.ts +0 -197
- package/src/_modules/bot/_modules/teams-bot/index.ts +0 -11
- package/src/_modules/bot/_services/bot-commands.control-service.spec.ts +0 -116
- package/src/_modules/bot/_services/bot-commands.control-service.ts +0 -158
- package/src/_modules/bot/_services/bot-io.control-service.spec.ts +0 -285
- package/src/_modules/bot/_services/bot-io.control-service.ts +0 -329
- package/src/_modules/bot/_services/bot-main.control-service.spec.ts +0 -208
- package/src/_modules/bot/_services/bot-main.control-service.ts +0 -489
- package/src/_modules/bot/_services/bot-messaging-provider.service-base.spec.ts +0 -349
- package/src/_modules/bot/_services/bot-messaging-provider.service-base.ts +0 -158
- package/src/_modules/bot/_services/bot-routines.control-service.spec.ts +0 -111
- package/src/_modules/bot/_services/bot-routines.control-service.ts +0 -78
- package/src/_modules/bot/index.ts +0 -37
- package/src/_modules/custom-data/custom-data.controller.spec.ts +0 -49
- package/src/_modules/custom-data/custom-data.controller.ts +0 -67
- package/src/_modules/custom-data/custom-data.data-service.spec.ts +0 -54
- package/src/_modules/custom-data/custom-data.data-service.ts +0 -22
- package/src/_modules/custom-data/get-custom-data-routing-module.util.spec.ts +0 -28
- package/src/_modules/custom-data/get-custom-data-routing-module.util.ts +0 -24
- package/src/_modules/custom-data/index.ts +0 -9
- package/src/_modules/data-readers/_collections/dynts-sqlite-reader.util.spec.ts +0 -176
- package/src/_modules/data-readers/_collections/dynts-sqlite-reader.util.ts +0 -203
- package/src/_modules/data-readers/_models/interfaces/dynts-sqlite-reader.interface.ts +0 -33
- package/src/_modules/data-readers/index.ts +0 -11
- package/src/_modules/defaults/_collections/default-endpoints.util.ts +0 -487
- package/src/_modules/defaults/_models/default-user.data-model.ts +0 -72
- package/src/_modules/defaults/_services/default-auth.service.spec.ts +0 -269
- package/src/_modules/defaults/_services/default-auth.service.ts +0 -177
- package/src/_modules/defaults/_services/default-socket-events.service.spec.ts +0 -42
- package/src/_modules/defaults/_services/default-socket-events.service.ts +0 -61
- package/src/_modules/defaults/_services/default-user.data-service.spec.ts +0 -187
- package/src/_modules/defaults/_services/default-user.data-service.ts +0 -98
- package/src/_modules/defaults/index.ts +0 -17
- package/src/_modules/discord-assistant/_collections/dias-global-settings.const.ts +0 -19
- package/src/_modules/discord-assistant/_collections/dias.util.spec.ts +0 -366
- package/src/_modules/discord-assistant/_collections/dias.util.ts +0 -133
- package/src/_modules/discord-assistant/_models/dias-global-settings.interface.ts +0 -20
- package/src/_modules/discord-assistant/_models/dias-knowledge.data-model.ts +0 -53
- package/src/_modules/discord-assistant/_services/dias-chunk.data-service.ts +0 -177
- package/src/_modules/discord-assistant/_services/dias-io.control-service.spec.ts +0 -108
- package/src/_modules/discord-assistant/_services/dias-io.control-service.ts +0 -69
- package/src/_modules/discord-assistant/_services/dias-main.control-service.spec.ts +0 -22
- package/src/_modules/discord-assistant/_services/dias-main.control-service.ts +0 -27
- package/src/_modules/discord-assistant/_services/dias.service-base.spec.ts +0 -195
- package/src/_modules/discord-assistant/_services/dias.service-base.ts +0 -77
- package/src/_modules/discord-assistant/index.ts +0 -38
- package/src/_modules/discord-assistant-voiced/_services/dias-discord-bot.control-service.spec.ts +0 -34
- package/src/_modules/discord-assistant-voiced/_services/dias-discord-bot.control-service.ts +0 -11
- package/src/_modules/discord-assistant-voiced/index.ts +0 -36
- package/src/_modules/discord-bot/_collections/dibo-default-commands.const.ts +0 -17
- package/src/_modules/discord-bot/_collections/dibo-global-settings.conts.ts +0 -56
- package/src/_modules/discord-bot/_collections/dibo-operations.util.spec.ts +0 -214
- package/src/_modules/discord-bot/_collections/dibo-operations.util.ts +0 -387
- package/src/_modules/discord-bot/_models/dibo-command.interface.ts +0 -12
- package/src/_modules/discord-bot/_models/dibo-global-settings.interface.ts +0 -98
- package/src/_modules/discord-bot/_models/dibo-last-mention-date.inteface.ts +0 -8
- package/src/_modules/discord-bot/_models/dibo-last-message-date.interface.ts +0 -6
- package/src/_modules/discord-bot/_services/dibo-commands.control-service.spec.ts +0 -154
- package/src/_modules/discord-bot/_services/dibo-commands.control-service.ts +0 -153
- package/src/_modules/discord-bot/_services/dibo-io.control-service.spec.ts +0 -264
- package/src/_modules/discord-bot/_services/dibo-io.control-service.ts +0 -306
- package/src/_modules/discord-bot/_services/dibo-main.control-service.spec.ts +0 -408
- package/src/_modules/discord-bot/_services/dibo-main.control-service.ts +0 -488
- package/src/_modules/discord-bot/_services/dibo-routines.control-service.spec.ts +0 -105
- package/src/_modules/discord-bot/_services/dibo-routines.control-service.ts +0 -97
- package/src/_modules/discord-bot/index.ts +0 -36
- package/src/_modules/local-vector-search/_enums/lvs-search-mode.enum.ts +0 -35
- package/src/_modules/local-vector-search/_models/data-models/lvs-vector-persist.data-model.ts +0 -60
- package/src/_modules/local-vector-search/_models/lvs-search-result.interface.ts +0 -17
- package/src/_modules/local-vector-search/_services/lvs-bm25.util.spec.ts +0 -159
- package/src/_modules/local-vector-search/_services/lvs-bm25.util.ts +0 -206
- package/src/_modules/local-vector-search/_services/lvs-doc-chunk-data.service.spec.ts +0 -418
- package/src/_modules/local-vector-search/_services/lvs-doc-chunk-data.service.ts +0 -276
- package/src/_modules/local-vector-search/_services/lvs-local-vector-search.data-service.spec.ts +0 -480
- package/src/_modules/local-vector-search/_services/lvs-local-vector-search.data-service.ts +0 -416
- package/src/_modules/local-vector-search/_services/lvs-persistent-vector-pool.control-service.spec.ts +0 -214
- package/src/_modules/local-vector-search/_services/lvs-persistent-vector-pool.control-service.ts +0 -186
- package/src/_modules/local-vector-search/_services/lvs-vector-persist.data-service.spec.ts +0 -167
- package/src/_modules/local-vector-search/_services/lvs-vector-persist.data-service.ts +0 -130
- package/src/_modules/local-vector-search/_services/lvs-vector-pool.control-service.spec.ts +0 -509
- package/src/_modules/local-vector-search/_services/lvs-vector-pool.control-service.ts +0 -323
- package/src/_modules/local-vector-search/index.ts +0 -17
- package/src/_modules/logs/_models/file-log-entry.interface.ts +0 -13
- package/src/_modules/logs/_models/file-log-read-result.interface.ts +0 -37
- package/src/_modules/logs/file-log.service.spec.ts +0 -341
- package/src/_modules/logs/file-log.service.ts +0 -466
- package/src/_modules/logs/file-logs.controller.spec.ts +0 -245
- package/src/_modules/logs/file-logs.controller.ts +0 -165
- package/src/_modules/logs/get-file-logs-routing-module.util.ts +0 -51
- package/src/_modules/logs/get-logs-routing-module.util.ts +0 -36
- package/src/_modules/logs/index.ts +0 -11
- package/src/_modules/logs/log-buffer.service.ts +0 -101
- package/src/_modules/logs/logs.controller.ts +0 -109
- package/src/_modules/logs/logs.service.ts +0 -100
- package/src/_modules/mcp/_models/interfaces/dynts-mcp.interface.ts +0 -111
- package/src/_modules/mcp/_services/dynts-mcp-server.service-base.spec.ts +0 -151
- package/src/_modules/mcp/_services/dynts-mcp-server.service-base.ts +0 -125
- package/src/_modules/mcp/_services/dynts-mcp.adapter.ts +0 -168
- package/src/_modules/mcp/index.ts +0 -13
- package/src/_modules/messaging/README.md +0 -354
- package/src/_modules/messaging/_collections/get-messaging-routing-module.util.ts +0 -26
- package/src/_modules/messaging/_collections/msg-global-settings.const.ts +0 -22
- package/src/_modules/messaging/_collections/msg.util.spec.ts +0 -226
- package/src/_modules/messaging/_collections/msg.util.ts +0 -83
- package/src/_modules/messaging/_models/msg-global-settings.interface.ts +0 -37
- package/src/_modules/messaging/_services/msg-conversation.data-service.ts +0 -146
- package/src/_modules/messaging/_services/msg-events.service.spec.ts +0 -219
- package/src/_modules/messaging/_services/msg-events.service.ts +0 -267
- package/src/_modules/messaging/_services/msg-integration.control-service.ts +0 -180
- package/src/_modules/messaging/_services/msg-main.control-service.spec.ts +0 -147
- package/src/_modules/messaging/_services/msg-main.control-service.ts +0 -572
- package/src/_modules/messaging/_services/msg-message.data-service.ts +0 -129
- package/src/_modules/messaging/_services/msg.controller.spec.ts +0 -201
- package/src/_modules/messaging/_services/msg.controller.ts +0 -370
- package/src/_modules/messaging/index.ts +0 -30
- package/src/_modules/mock/app-extended-server.mock.ts +0 -201
- package/src/_modules/mock/app-integration-test.mock.ts +0 -51
- package/src/_modules/mock/app-params.mock.spec.ts +0 -21
- package/src/_modules/mock/app-params.mock.ts +0 -9
- package/src/_modules/mock/app-server.mock.ts +0 -188
- package/src/_modules/mock/auth-service.mock.spec.ts +0 -47
- package/src/_modules/mock/auth-service.mock.ts +0 -28
- package/src/_modules/mock/controller.mock.spec.ts +0 -26
- package/src/_modules/mock/controller.mock.ts +0 -16
- package/src/_modules/mock/data-model.mock.spec.ts +0 -111
- package/src/_modules/mock/data-model.mock.ts +0 -82
- package/src/_modules/mock/email-service-collection.mock.spec.ts +0 -24
- package/src/_modules/mock/email-service-collection.mock.ts +0 -15
- package/src/_modules/mock/email-service.mock.spec.ts +0 -17
- package/src/_modules/mock/email-service.mock.ts +0 -20
- package/src/_modules/mock/email-template.mock.html +0 -15
- package/src/_modules/mock/endpoint.mock.ts +0 -91
- package/src/_modules/mock/socket-client.mock.spec.ts +0 -40
- package/src/_modules/mock/socket-client.mock.ts +0 -45
- package/src/_modules/mock/socket-server.mock.spec.ts +0 -44
- package/src/_modules/mock/socket-server.mock.ts +0 -46
- package/src/_modules/oauth2/_routes/oauth2.controller.spec.ts +0 -107
- package/src/_modules/oauth2/_routes/oauth2.controller.ts +0 -99
- package/src/_modules/oauth2/_services/oauth2.auth-service.spec.ts +0 -254
- package/src/_modules/oauth2/_services/oauth2.auth-service.ts +0 -232
- package/src/_modules/oauth2/_services/oauth2.control-service.spec.ts +0 -585
- package/src/_modules/oauth2/_services/oauth2.control-service.ts +0 -654
- package/src/_modules/oauth2/index.ts +0 -17
- package/src/_modules/privacy-lifecycle/_enums/privacy-consent-decision.type-enum.ts +0 -5
- package/src/_modules/privacy-lifecycle/_enums/privacy-contributor-action.type-enum.ts +0 -10
- package/src/_modules/privacy-lifecycle/_enums/privacy-contributor-outcome.type-enum.ts +0 -7
- package/src/_modules/privacy-lifecycle/_enums/privacy-request-state.type-enum.ts +0 -15
- package/src/_modules/privacy-lifecycle/_enums/privacy-request.type-enum.ts +0 -9
- package/src/_modules/privacy-lifecycle/_models/privacy-consent-input.interface.ts +0 -12
- package/src/_modules/privacy-lifecycle/_models/privacy-consent-persistence-result.interface.ts +0 -7
- package/src/_modules/privacy-lifecycle/_models/privacy-consent-record.interface.ts +0 -15
- package/src/_modules/privacy-lifecycle/_models/privacy-consent-result.interface.ts +0 -7
- package/src/_modules/privacy-lifecycle/_models/privacy-consent-view.interface.ts +0 -13
- package/src/_modules/privacy-lifecycle/_models/privacy-contributor-context.interface.ts +0 -9
- package/src/_modules/privacy-lifecycle/_models/privacy-contributor-outcome.interface.ts +0 -14
- package/src/_modules/privacy-lifecycle/_models/privacy-contributor-plan.interface.ts +0 -8
- package/src/_modules/privacy-lifecycle/_models/privacy-contributor.interface.ts +0 -17
- package/src/_modules/privacy-lifecycle/_models/privacy-ledger-adapter.interface.ts +0 -21
- package/src/_modules/privacy-lifecycle/_models/privacy-ledger-result.interface.ts +0 -9
- package/src/_modules/privacy-lifecycle/_models/privacy-ledger-settings.interface.ts +0 -7
- package/src/_modules/privacy-lifecycle/_models/privacy-legal-acceptance-input.interface.ts +0 -10
- package/src/_modules/privacy-lifecycle/_models/privacy-legal-acceptance-persistence-result.interface.ts +0 -7
- package/src/_modules/privacy-lifecycle/_models/privacy-legal-acceptance-result.interface.ts +0 -7
- package/src/_modules/privacy-lifecycle/_models/privacy-legal-acceptance-view.interface.ts +0 -11
- package/src/_modules/privacy-lifecycle/_models/privacy-legal-acceptance.interface.ts +0 -13
- package/src/_modules/privacy-lifecycle/_models/privacy-lifecycle-adapter.interface.ts +0 -19
- package/src/_modules/privacy-lifecycle/_models/privacy-lifecycle-settings.interface.ts +0 -9
- package/src/_modules/privacy-lifecycle/_models/privacy-request-create-result.interface.ts +0 -7
- package/src/_modules/privacy-lifecycle/_models/privacy-request-open.interface.ts +0 -10
- package/src/_modules/privacy-lifecycle/_models/privacy-request-persistence-create-result.interface.ts +0 -7
- package/src/_modules/privacy-lifecycle/_models/privacy-request-record.interface.ts +0 -21
- package/src/_modules/privacy-lifecycle/_models/privacy-request-result.interface.ts +0 -8
- package/src/_modules/privacy-lifecycle/_models/privacy-request-view.interface.ts +0 -20
- package/src/_modules/privacy-lifecycle/index.ts +0 -40
- package/src/_modules/privacy-lifecycle/privacy-ledger.control-service.spec.ts +0 -206
- package/src/_modules/privacy-lifecycle/privacy-ledger.control-service.ts +0 -253
- package/src/_modules/privacy-lifecycle/privacy-lifecycle.control-service.spec.ts +0 -353
- package/src/_modules/privacy-lifecycle/privacy-lifecycle.control-service.ts +0 -586
- package/src/_modules/rate-limit/_enums/rate-limit-store-kind.type-enum.ts +0 -5
- package/src/_modules/rate-limit/_models/rate-limit-config.interface.ts +0 -82
- package/src/_modules/rate-limit/_models/rate-limit-consume-request.interface.ts +0 -9
- package/src/_modules/rate-limit/_models/rate-limit-consume-result.interface.ts +0 -6
- package/src/_modules/rate-limit/_models/rate-limit-policy.interface.ts +0 -16
- package/src/_modules/rate-limit/_models/rate-limit-store.interface.ts +0 -9
- package/src/_modules/rate-limit/index.ts +0 -8
- package/src/_modules/rate-limit/rate-limit-in-memory.store.ts +0 -91
- package/src/_modules/rate-limit/rate-limit.middleware.spec.ts +0 -488
- package/src/_modules/rate-limit/rate-limit.middleware.ts +0 -504
- package/src/_modules/scheduler/_models/scheduler-job.interface.ts +0 -35
- package/src/_modules/scheduler/get-scheduler-routing-module.util.ts +0 -33
- package/src/_modules/scheduler/index.ts +0 -8
- package/src/_modules/scheduler/scheduler.controller.spec.ts +0 -42
- package/src/_modules/scheduler/scheduler.controller.ts +0 -69
- package/src/_modules/scheduler/scheduler.service.spec.ts +0 -141
- package/src/_modules/scheduler/scheduler.service.ts +0 -176
- package/src/_modules/scoped-config/_enums/dynts-scoped-config-level.enum.ts +0 -22
- package/src/_modules/scoped-config/_models/data-models/dynts-scoped-config.data-model.ts +0 -82
- package/src/_modules/scoped-config/_models/interfaces/dynts-scoped-config.interface.ts +0 -107
- package/src/_modules/scoped-config/_services/dynts-scoped-config.control-service.spec.ts +0 -312
- package/src/_modules/scoped-config/_services/dynts-scoped-config.control-service.ts +0 -311
- package/src/_modules/scoped-config/_services/dynts-scoped-config.data-service.spec.ts +0 -123
- package/src/_modules/scoped-config/_services/dynts-scoped-config.data-service.ts +0 -108
- package/src/_modules/scoped-config/index.ts +0 -17
- package/src/_modules/server/errors/errors.control-service.spec.ts +0 -246
- package/src/_modules/server/errors/errors.control-service.ts +0 -100
- package/src/_modules/server/errors/errors.controller.spec.ts +0 -340
- package/src/_modules/server/errors/errors.controller.ts +0 -559
- package/src/_modules/server/errors/errors.data-service.spec.ts +0 -480
- package/src/_modules/server/errors/errors.data-service.ts +0 -867
- package/src/_modules/server/index.ts +0 -40
- package/src/_modules/server/safe-diagnostic/safe-diagnostic-cause.type-enum.ts +0 -8
- package/src/_modules/server/safe-diagnostic/safe-diagnostic-stage.type-enum.ts +0 -20
- package/src/_modules/server/safe-diagnostic/safe-diagnostic.control-service.spec.ts +0 -124
- package/src/_modules/server/safe-diagnostic/safe-diagnostic.control-service.ts +0 -99
- package/src/_modules/server/safe-diagnostic/safe-diagnostic.interface.ts +0 -20
- package/src/_modules/server/server-status/db-readiness-probe-code.type-enum.ts +0 -13
- package/src/_modules/server/server-status/db-readiness-probe-stage.type-enum.ts +0 -7
- package/src/_modules/server/server-status/db-readiness-probe.control-service.spec.ts +0 -235
- package/src/_modules/server/server-status/db-readiness-probe.control-service.ts +0 -158
- package/src/_modules/server/server-status/db-readiness-probe.interface.ts +0 -20
- package/src/_modules/server/server-status/server-status-snapshot.control-service.spec.ts +0 -70
- package/src/_modules/server/server-status/server-status-snapshot.control-service.ts +0 -17
- package/src/_modules/server/server-status/server-status-snapshot.data-service.spec.ts +0 -77
- package/src/_modules/server/server-status/server-status-snapshot.data-service.ts +0 -37
- package/src/_modules/server/server-status/server-status.control-service.spec.ts +0 -672
- package/src/_modules/server/server-status/server-status.control-service.ts +0 -491
- package/src/_modules/server/server-status/server-status.controller.spec.ts +0 -276
- package/src/_modules/server/server-status/server-status.controller.ts +0 -336
- package/src/_modules/socket/_enums/socket-security.enum.ts +0 -11
- package/src/_modules/socket/_models/socket-client-service-params.control-model.spec.ts +0 -32
- package/src/_modules/socket/_models/socket-client-service-params.control-model.ts +0 -22
- package/src/_modules/socket/_models/socket-presence.control-model.spec.ts +0 -165
- package/src/_modules/socket/_models/socket-presence.control-model.ts +0 -211
- package/src/_modules/socket/_models/socket-server-service-params.control-model.spec.ts +0 -69
- package/src/_modules/socket/_models/socket-server-service-params.control-model.ts +0 -33
- package/src/_modules/socket/_services/socket-client.service.spec.ts +0 -15
- package/src/_modules/socket/_services/socket-client.service.ts +0 -260
- package/src/_modules/socket/_services/socket-server.service.spec.ts +0 -272
- package/src/_modules/socket/_services/socket-server.service.ts +0 -1037
- package/src/_modules/socket/app-extended.integration.spec.ts +0 -85
- package/src/_modules/socket/app-extended.server.ts +0 -648
- package/src/_modules/socket/index.ts +0 -42
- package/src/_modules/test/get-test-routing-module.util.spec.ts +0 -28
- package/src/_modules/test/get-test-routing-module.util.ts +0 -23
- package/src/_modules/test/index.ts +0 -12
- package/src/_modules/test/test.controller.spec.ts +0 -72
- package/src/_modules/test/test.controller.ts +0 -115
- package/src/_modules/test-email-sink/_collections/test-email-pattern.const.ts +0 -10
- package/src/_modules/test-email-sink/_models/data-models/dynts-sent-test-mail.data-model.ts +0 -41
- package/src/_modules/test-email-sink/_services/dynts-test-email-sink.service.spec.ts +0 -112
- package/src/_modules/test-email-sink/_services/dynts-test-email-sink.service.ts +0 -141
- package/src/_modules/test-email-sink/get-sent-mail-routing-module.util.ts +0 -29
- package/src/_modules/test-email-sink/index.ts +0 -11
- package/src/_modules/test-email-sink/test-email-sink.controller.ts +0 -83
- package/src/_modules/usage/get-usage-routing-module.util.ts +0 -23
- package/src/_modules/usage/index.ts +0 -15
- package/src/_modules/usage/usage.controller.spec.ts +0 -106
- package/src/_modules/usage/usage.controller.ts +0 -140
- package/src/_modules/usage/usage.data-service.spec.ts +0 -332
- package/src/_modules/usage/usage.data-service.ts +0 -185
- package/src/_services/base/api.service-base.spec.ts +0 -125
- package/src/_services/base/api.service-base.ts +0 -75
- package/src/_services/base/archive-data.service.spec.ts +0 -209
- package/src/_services/base/archive-data.service.ts +0 -228
- package/src/_services/base/data.service.spec.ts +0 -784
- package/src/_services/base/data.service.ts +0 -2792
- package/src/_services/base/db.service.encryption.spec.ts +0 -76
- package/src/_services/base/db.service.spec.ts +0 -160
- package/src/_services/base/db.service.ts +0 -1698
- package/src/_services/base/singleton.service-base.spec.ts +0 -28
- package/src/_services/base/singleton.service-base.ts +0 -24
- package/src/_services/base/singleton.service.spec.ts +0 -114
- package/src/_services/base/singleton.service.ts +0 -38
- package/src/_services/core/api.service.spec.ts +0 -187
- package/src/_services/core/api.service.ts +0 -627
- package/src/_services/core/auth.service.spec.ts +0 -159
- package/src/_services/core/auth.service.ts +0 -174
- package/src/_services/core/collection-growth-monitor.service.spec.ts +0 -119
- package/src/_services/core/collection-growth-monitor.service.ts +0 -234
- package/src/_services/core/db-stats.service.ts +0 -104
- package/src/_services/core/diagnostics.service.spec.ts +0 -44
- package/src/_services/core/diagnostics.service.ts +0 -158
- package/src/_services/core/email.service.spec.ts +0 -85
- package/src/_services/core/email.service.ts +0 -757
- package/src/_services/core/event-loop-diag.service.spec.ts +0 -22
- package/src/_services/core/event-loop-diag.service.ts +0 -144
- package/src/_services/core/global.service.spec.ts +0 -292
- package/src/_services/core/global.service.ts +0 -488
- package/src/_services/core/memory-guard.service.spec.ts +0 -245
- package/src/_services/core/memory-guard.service.ts +0 -481
- package/src/_services/core/migration-runner.service.spec.ts +0 -91
- package/src/_services/core/migration-runner.service.ts +0 -106
- package/src/_services/core/mongo-transaction.control-service.spec.ts +0 -165
- package/src/_services/core/mongo-transaction.control-service.ts +0 -148
- package/src/_services/core/request-hunter.service.spec.ts +0 -124
- package/src/_services/core/request-hunter.service.ts +0 -157
- package/src/_services/core/request-telemetry.control-service.spec.ts +0 -217
- package/src/_services/core/request-telemetry.control-service.ts +0 -381
- package/src/_services/core/service-collection.service.spec.ts +0 -46
- package/src/_services/core/service-collection.service.ts +0 -6
- package/src/_services/route/controller.service.spec.ts +0 -53
- package/src/_services/route/controller.service.ts +0 -148
- package/src/_services/route/routing-module.service.spec.ts +0 -98
- package/src/_services/route/routing-module.service.ts +0 -339
- package/src/_services/server/app-safe-diagnostic.spec.ts +0 -124
- package/src/_services/server/app.server-retention.spec.ts +0 -106
- package/src/_services/server/app.server.ts +0 -1979
- package/src/_services/shared.static-service.spec.ts +0 -133
- package/src/_services/shared.static-service.ts +0 -107
- package/src/index.ts +0 -120
- package/tsconfig.app.json +0 -12
- package/tsconfig.json +0 -42
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { DyFM_AI_MessageRole } from '@futdevpro/fsm-dynamo/ai';
|
|
2
|
-
import { DyFM_AI_Message } from '@futdevpro/fsm-dynamo/ai';
|
|
3
|
-
import { DyFM_AI_CallSettings } from '@futdevpro/fsm-dynamo/ai';
|
|
4
|
-
|
|
5
|
-
export interface DyFM_AI_Base_Input<
|
|
6
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
7
|
-
> {
|
|
8
|
-
/* message: string; */
|
|
9
|
-
issuer: string;
|
|
10
|
-
settings?: T_AISettings;
|
|
11
|
-
debugLog?: boolean;
|
|
12
|
-
replaceThisInLog?: string;
|
|
13
|
-
getFullResponse?: boolean;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface DyFM_AI_Message_Input<
|
|
17
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
18
|
-
> extends DyFM_AI_Base_Input<T_AISettings> {
|
|
19
|
-
message: string;
|
|
20
|
-
conversation?: DyFM_AI_Message[];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface DyFM_AI_ListSelect_Input<
|
|
24
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings,
|
|
25
|
-
> extends DyFM_AI_Message_Input<T_AISettings> {
|
|
26
|
-
selectFrom: string[];
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface DyFM_AI_GenericSelect_Input<
|
|
30
|
-
T,
|
|
31
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
32
|
-
> extends DyFM_AI_Message_Input<T_AISettings> {
|
|
33
|
-
selectFrom: T[];
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface DyFM_AI_MultiSelect_Input<
|
|
37
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
38
|
-
> extends DyFM_AI_Message_Input<T_AISettings> {
|
|
39
|
-
options: string[];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface DyFM_AI_GenericMultiSelect_Input<
|
|
43
|
-
T,
|
|
44
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
45
|
-
> extends DyFM_AI_Message_Input<T_AISettings> {
|
|
46
|
-
options: T[];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface DyFM_AI_JSONKeysDescription_Input<
|
|
50
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
51
|
-
> extends DyFM_AI_Message_Input<T_AISettings> {
|
|
52
|
-
keysDescription: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface DyFM_AI_JSONExactKeys_Input<
|
|
56
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
57
|
-
> extends DyFM_AI_Message_Input<T_AISettings> {
|
|
58
|
-
keys: string[];
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/* export interface DyFM_AI_SimpleMessage_Input extends DyFM_AI_Base_Input {
|
|
62
|
-
message: string;
|
|
63
|
-
} */
|
|
64
|
-
|
|
65
|
-
export interface DyFM_AI_ConversationBase_Input<
|
|
66
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
67
|
-
> extends DyFM_AI_Base_Input<T_AISettings> {
|
|
68
|
-
message?: string;
|
|
69
|
-
conversation: DyFM_AI_Message[];
|
|
70
|
-
/* replaceThisInLog?: string; */
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/* export interface DyFM_AI_ConversationMessage_Input extends DyFM_AI_ConversationBase_Input {
|
|
74
|
-
message: string;
|
|
75
|
-
} */
|
|
76
|
-
|
|
77
|
-
export interface DyFM_AI_ConversationSelect_Input<
|
|
78
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
79
|
-
> extends DyFM_AI_ConversationBase_Input<T_AISettings> {
|
|
80
|
-
selectFrom: string[];
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export interface DyFM_AI_ConversationGenericSelect_Input<
|
|
84
|
-
T,
|
|
85
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
86
|
-
> extends DyFM_AI_ConversationBase_Input<T_AISettings> {
|
|
87
|
-
selectFrom: T[];
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export interface DyFM_AI_ConversationMultiSelect_Input<
|
|
91
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
92
|
-
> extends DyFM_AI_ConversationBase_Input<T_AISettings> {
|
|
93
|
-
options: string[];
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export interface DyFM_AI_ConversationGenericMultiSelect_Input<
|
|
97
|
-
T,
|
|
98
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
99
|
-
> extends DyFM_AI_ConversationBase_Input<T_AISettings> {
|
|
100
|
-
options: T[];
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export interface DyFM_AI_ConversationJSONKeysDescription_Input<
|
|
104
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
105
|
-
> extends DyFM_AI_ConversationBase_Input<T_AISettings> {
|
|
106
|
-
keysDescription: string;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export interface DyFM_AI_ConversationJSONExactKeys_Input<
|
|
110
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
111
|
-
> extends DyFM_AI_ConversationBase_Input<T_AISettings> {
|
|
112
|
-
keys: string[];
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/* export interface DyFM_AI_ConversationGetAnswer_Input extends DyFM_AI_ConversationBase_Input {
|
|
116
|
-
newMessage?: string;
|
|
117
|
-
} */
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Teszt generalas eredmenye
|
|
3
|
-
*
|
|
4
|
-
* A provider-specifikus testGeneration() metodus ezt adja vissza,
|
|
5
|
-
* tartalmazva a sikesseg flag-et, a valasz szoveget, a hasznalt modellt es a keses-idejet.
|
|
6
|
-
*/
|
|
7
|
-
export interface DyNTS_AI_TestGeneration_Result {
|
|
8
|
-
/** sikeres volt-e a teszt generalas */
|
|
9
|
-
success: boolean;
|
|
10
|
-
/** a provider valasza (sikertelen eseten undefined) */
|
|
11
|
-
response?: string;
|
|
12
|
-
/** a hasznalt modell azonosito */
|
|
13
|
-
model: string;
|
|
14
|
-
/** a keres-valasz ido milliszekundumban */
|
|
15
|
-
latencyMs: number;
|
|
16
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DyNTS_AI_CostEvent } from './dynts-ai-cost-event.interface';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* AI service per-call cost-event callback signature.
|
|
5
|
-
*
|
|
6
|
-
* A `DyNTS_AI_Provider_ServiceBase` és leszármazottak constructor-jában
|
|
7
|
-
* opcionálisan átadható callback, amit minden sikeres AI-call után
|
|
8
|
-
* meghív a service. Lásd `DyNTS_AI_CostEvent` interface a payload-leírásért.
|
|
9
|
-
*
|
|
10
|
-
* A callback **NEM dobhat** — a service `emitCostEvent` helper-je try/catch-
|
|
11
|
-
* csel hívja és warning-ot logol, de a callback hibája NEM akasztja meg az
|
|
12
|
-
* AI-call-t (consumer responsibility hogy a hiba ne fault-oljon).
|
|
13
|
-
*/
|
|
14
|
-
export type DyNTS_AI_CostEventCallback = (event: DyNTS_AI_CostEvent) => void;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AI service per-call cost-event payload.
|
|
3
|
-
*
|
|
4
|
-
* `DyNTS_AI_Provider_ServiceBase`-leszármazott AI service-ek emit-elik minden
|
|
5
|
-
* sikeres call után (embedding / LLM / chat / tool-use), feltéve hogy a constructor-
|
|
6
|
-
* ban át lett adva egy `onCostEvent` callback. Cél: consumer-oldali per-call
|
|
7
|
-
* cost-aggregáció (CCAP `CT_`, telemetry, debug, stb.) — instance-szintű
|
|
8
|
-
* accumulator nélkül.
|
|
9
|
-
*
|
|
10
|
-
* Non-breaking: a callback opcionális, a meglévő AI-call flow változatlan
|
|
11
|
-
* ha nincs hozzárendelve. A callback hibája NEM akasztja meg az AI-call-t —
|
|
12
|
-
* a `emitCostEvent` helper try/catch-csel hívja és warning-ot logol.
|
|
13
|
-
*
|
|
14
|
-
* `estimatedCostUsd`: opcionális — a Dynamo-szintű AI-service-ek NEM számítják
|
|
15
|
-
* (nincs model-pricing registry a Dynamo-ban). A consumer (pl. CCAP `CT_`) a
|
|
16
|
-
* saját pricing-jával egészíti ki a record-ot.
|
|
17
|
-
*/
|
|
18
|
-
export interface DyNTS_AI_CostEvent {
|
|
19
|
-
/** Az AI-call típusa — embedding (single/batch) vagy LLM (completion/chat/tool-use). */
|
|
20
|
-
callType: DyNTS_AI_CallType;
|
|
21
|
-
/** Provider azonosító (pl. 'openai', 'anthropic', 'lm-studio'). */
|
|
22
|
-
provider: string;
|
|
23
|
-
/** A használt model azonosítója (pl. 'gpt-4o-mini', 'text-embedding-3-small'). */
|
|
24
|
-
model: string;
|
|
25
|
-
/** Token-fogyasztás bontva (input/output/total). Output csak LLM-call esetén értelmes. */
|
|
26
|
-
tokensUsed: DyNTS_AI_CostEventTokens;
|
|
27
|
-
/** Az AI-call hívástól a response-igtart latency ms-ben. */
|
|
28
|
-
durationMs: number;
|
|
29
|
-
/** A hívó service / use-case azonosítója (service-class-name, sessionId, runId, stb.). */
|
|
30
|
-
issuer: string;
|
|
31
|
-
/** Az event-emisszió időpontja (a sikeres response UTÁNI időpont). */
|
|
32
|
-
timestamp: Date;
|
|
33
|
-
/**
|
|
34
|
-
* Becsült USD költség — opcionális. A Dynamo NEM számítja (model-pricing
|
|
35
|
-
* registry hiányában); a consumer (CCAP `CT_`) tölti ki ha kell.
|
|
36
|
-
*/
|
|
37
|
-
estimatedCostUsd?: number;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/** Az AI-call típusa. String-union, NEM enum (a spec szerint). */
|
|
41
|
-
export type DyNTS_AI_CallType =
|
|
42
|
-
| 'embedding-single'
|
|
43
|
-
| 'embedding-batch'
|
|
44
|
-
| 'llm-completion'
|
|
45
|
-
| 'llm-chat'
|
|
46
|
-
| 'llm-tool-use';
|
|
47
|
-
|
|
48
|
-
/** Token-fogyasztás bontása. Output csak LLM-call esetén értelmes. */
|
|
49
|
-
export interface DyNTS_AI_CostEventTokens {
|
|
50
|
-
/** Bemeneti (prompt) tokenek száma. */
|
|
51
|
-
input: number;
|
|
52
|
-
/** Kimeneti (completion) tokenek száma — embedding-call esetén undefined. */
|
|
53
|
-
output?: number;
|
|
54
|
-
/** Total = input + (output ?? 0). */
|
|
55
|
-
total: number;
|
|
56
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider-faithful hiba-leiro — azt irja le, MILYEN hibat adna a valodi provider egy szabalytalan
|
|
3
|
-
* hivasra (FR-048). A `providerErrorBody` a provider NATIV hiba-JSON-ja (OpenAI:
|
|
4
|
-
* `{error:{message,type,param,code}}`, Anthropic: `{type:'error',error:{type,message}}`).
|
|
5
|
-
*
|
|
6
|
-
* Egy helyen definialva, hogy a Layer A validator (`DyNTS_AI_ModelConfig_Validator`) es a Layer B
|
|
7
|
-
* mock-fixture-ok UGYANAZT az alakot hasznaljak — nincs parhuzamos hiba-shape (SSoT).
|
|
8
|
-
*/
|
|
9
|
-
export interface DyNTS_AI_ProviderError {
|
|
10
|
-
/** A reprodukalando HTTP-statusz (pl. 400). */
|
|
11
|
-
httpStatus: number;
|
|
12
|
-
/** A provider nativ hiba-body-ja. */
|
|
13
|
-
providerErrorBody: unknown;
|
|
14
|
-
/** Rovid, gepi ok-jeloles (pl. 'unsupported_parameter:temperature'). */
|
|
15
|
-
reason: string;
|
|
16
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { DyFM_AI_Provider } from '@futdevpro/fsm-dynamo/ai';
|
|
2
|
-
|
|
3
|
-
import { DyNTS_AIMock_Modality } from '../_enums/aim-modality.enum';
|
|
4
|
-
import { DyNTS_AIMock_Fixture } from '../_models/interfaces/aim-fixture.interface';
|
|
5
|
-
import { DyNTS_AIMock_ServiceCollection } from '../_models/interfaces/aim-service-collection.interface';
|
|
6
|
-
import { DyNTS_AIMock_FixtureMatch_Util } from './aim-fixture-match.util';
|
|
7
|
-
import { getDefaultAiMockServiceCollection } from './aim-default-collection.util';
|
|
8
|
-
|
|
9
|
-
describe('| getDefaultAiMockServiceCollection (MP-7 SP-7.1)', () => {
|
|
10
|
-
|
|
11
|
-
function fixture(modality: DyNTS_AIMock_Modality, input: string): DyNTS_AIMock_Fixture {
|
|
12
|
-
return {
|
|
13
|
-
provider: 'open-ai',
|
|
14
|
-
model: 'gpt-5.4-mini',
|
|
15
|
-
modality: modality,
|
|
16
|
-
input: input,
|
|
17
|
-
inputHash: DyNTS_AIMock_FixtureMatch_Util.buildInputHash(input),
|
|
18
|
-
output: 'out',
|
|
19
|
-
capturedAt: '2026-07-21T00:00:00.000Z',
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
it('| default: mindharom schema-s provider registry-je be van kotve', () => {
|
|
24
|
-
const collection: DyNTS_AIMock_ServiceCollection = getDefaultAiMockServiceCollection();
|
|
25
|
-
|
|
26
|
-
expect(collection.registry.length).toBeGreaterThan(0);
|
|
27
|
-
expect(collection.registry.some((model) => model.provider === DyFM_AI_Provider.OpenAI)).toBe(true);
|
|
28
|
-
expect(collection.registry.some((model) => model.provider === DyFM_AI_Provider.Anthropic)).toBe(true);
|
|
29
|
-
expect(collection.registry.some((model) => model.provider === DyFM_AI_Provider.Google)).toBe(true);
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
it('| providers szukites: csak a kert provider modelljei', () => {
|
|
33
|
-
const collection: DyNTS_AIMock_ServiceCollection = getDefaultAiMockServiceCollection({
|
|
34
|
-
providers: [DyFM_AI_Provider.OpenAI],
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
expect(collection.registry.length).toBeGreaterThan(0);
|
|
38
|
-
expect(collection.registry.every((model) => model.provider === DyFM_AI_Provider.OpenAI)).toBe(true);
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
it('| service + store ossze van drotozva (a store futas kozben bovitheto)', () => {
|
|
42
|
-
const collection: DyNTS_AIMock_ServiceCollection = getDefaultAiMockServiceCollection();
|
|
43
|
-
|
|
44
|
-
expect(collection.store.size).toBe(0);
|
|
45
|
-
|
|
46
|
-
collection.store.register([fixture(DyNTS_AIMock_Modality.text, 'ping')]);
|
|
47
|
-
|
|
48
|
-
expect(collection.store.size).toBe(1);
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
it('| modalities szukites: csak az adott modalitasu fixture-ok kerulnek a tarba', () => {
|
|
52
|
-
const collection: DyNTS_AIMock_ServiceCollection = getDefaultAiMockServiceCollection({
|
|
53
|
-
modalities: [DyNTS_AIMock_Modality.embedding],
|
|
54
|
-
fixtures: [
|
|
55
|
-
fixture(DyNTS_AIMock_Modality.text, 'a'),
|
|
56
|
-
fixture(DyNTS_AIMock_Modality.embedding, 'b'),
|
|
57
|
-
],
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
expect(collection.store.size).toBe(1);
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
it('| a bekototett fixture azonnal replay-elheto a service-en at', async () => {
|
|
64
|
-
const collection: DyNTS_AIMock_ServiceCollection = getDefaultAiMockServiceCollection({
|
|
65
|
-
fixtures: [fixture(DyNTS_AIMock_Modality.text, 'ping')],
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
await expectAsync(
|
|
69
|
-
collection.service.chatCompletion({ provider: 'open-ai', model: 'gpt-5.4-mini', input: 'ping' })
|
|
70
|
-
).toBeResolvedTo('out');
|
|
71
|
-
});
|
|
72
|
-
});
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { DyFM_AI_ModelInfo, DyFM_AI_Provider } from '@futdevpro/fsm-dynamo/ai';
|
|
2
|
-
import { DyFM_OAI_Models } from '@futdevpro/fsm-dynamo/ai/open-ai';
|
|
3
|
-
import { DyFM_AAI_Models } from '@futdevpro/fsm-dynamo/ai/anthropic';
|
|
4
|
-
import { DyFM_GAI_Models } from '@futdevpro/fsm-dynamo/ai/google';
|
|
5
|
-
|
|
6
|
-
import { DyNTS_AIMock_Modality } from '../_enums/aim-modality.enum';
|
|
7
|
-
import { DyNTS_AIMock_Fixture } from '../_models/interfaces/aim-fixture.interface';
|
|
8
|
-
import { DyNTS_AIMock_ServiceCollection } from '../_models/interfaces/aim-service-collection.interface';
|
|
9
|
-
import { DyNTS_AIMock_FixtureStore_Service } from '../_services/aim-fixture-store.service';
|
|
10
|
-
import { DyNTS_AIMock_Service } from '../_services/aim-mock.service';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Provider → modell-registry hozzarendeles.
|
|
14
|
-
*
|
|
15
|
-
* CSAK azok a providerek szerepelnek, amelyeknek van FR-048 `settingsSchema`-juk — a `local-ai` es az
|
|
16
|
-
* `fdp-ai` szandekosan schema-mentes (runtime/gateway-fuggo), igy a registry-be emelesuk a validaciohoz
|
|
17
|
-
* semmit nem adna hozza. L. a fsm registry-fejleceket + `FR-048-LAYER-A.md`.
|
|
18
|
-
*/
|
|
19
|
-
const REGISTRY_BY_PROVIDER: Record<string, DyFM_AI_ModelInfo[]> = {
|
|
20
|
-
[DyFM_AI_Provider.OpenAI]: DyFM_OAI_Models,
|
|
21
|
-
[DyFM_AI_Provider.Anthropic]: DyFM_AAI_Models,
|
|
22
|
-
[DyFM_AI_Provider.Google]: DyFM_GAI_Models,
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/** Provider-default: minden schema-val rendelkezo provider. */
|
|
26
|
-
const DEFAULT_PROVIDERS: DyFM_AI_Provider[] = [
|
|
27
|
-
DyFM_AI_Provider.OpenAI,
|
|
28
|
-
DyFM_AI_Provider.Anthropic,
|
|
29
|
-
DyFM_AI_Provider.Google,
|
|
30
|
-
];
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* **Default-bundle factory** (MP-7 SP-7.1) — egy hivassal osszeallit egy hasznalatra kesz AI-mock keszletet:
|
|
34
|
-
* fixture-tar + mock-provider + a config-validaciohoz bekototott modell-registry.
|
|
35
|
-
*
|
|
36
|
-
* A `fdp-templates` `getApiDefaultSettings`-mintajat koveti: a consumer teszt-modul egyetlen sorral kap egy
|
|
37
|
-
* mukodo mockot, es DI-vel a valodi provider helyere teheti.
|
|
38
|
-
*
|
|
39
|
-
* @param set - opcionalis szukites: mely providerek registry-je legyen bekotve, mely modalitasok
|
|
40
|
-
* fixture-oi keruljenek be, es a kezdo fixture-keszlet.
|
|
41
|
-
*/
|
|
42
|
-
export function getDefaultAiMockServiceCollection(
|
|
43
|
-
set?: {
|
|
44
|
-
/** Mely providerek registry-je legyen bekotve a config-validaciohoz (default: mind a harom schema-s). */
|
|
45
|
-
providers?: DyFM_AI_Provider[],
|
|
46
|
-
/** Ha meg van adva, CSAK az itt felsorolt modalitasu fixture-ok kerulnek a tarba. */
|
|
47
|
-
modalities?: DyNTS_AIMock_Modality[],
|
|
48
|
-
/** A kezdo (beegetett) fixture-keszlet. */
|
|
49
|
-
fixtures?: DyNTS_AIMock_Fixture[],
|
|
50
|
-
}
|
|
51
|
-
): DyNTS_AIMock_ServiceCollection {
|
|
52
|
-
const providers: DyFM_AI_Provider[] = set?.providers?.length ? set.providers : DEFAULT_PROVIDERS;
|
|
53
|
-
|
|
54
|
-
const registry: DyFM_AI_ModelInfo[] = providers.reduce(
|
|
55
|
-
(all: DyFM_AI_ModelInfo[], provider: DyFM_AI_Provider) => all.concat(REGISTRY_BY_PROVIDER[provider] ?? []),
|
|
56
|
-
[]
|
|
57
|
-
);
|
|
58
|
-
|
|
59
|
-
const allFixtures: DyNTS_AIMock_Fixture[] = set?.fixtures ?? [];
|
|
60
|
-
const fixtures: DyNTS_AIMock_Fixture[] = set?.modalities?.length ?
|
|
61
|
-
allFixtures.filter((fixture: DyNTS_AIMock_Fixture) => set.modalities.includes(fixture.modality)) :
|
|
62
|
-
allFixtures;
|
|
63
|
-
|
|
64
|
-
const store: DyNTS_AIMock_FixtureStore_Service = new DyNTS_AIMock_FixtureStore_Service(fixtures);
|
|
65
|
-
|
|
66
|
-
return {
|
|
67
|
-
store: store,
|
|
68
|
-
service: new DyNTS_AIMock_Service(store, registry),
|
|
69
|
-
registry: registry,
|
|
70
|
-
};
|
|
71
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
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_FixtureMatch_Util } from './aim-fixture-match.util';
|
|
4
|
-
|
|
5
|
-
describe('DyNTS_AIMock_FixtureMatch_Util', () => {
|
|
6
|
-
|
|
7
|
-
function req(overrides: Partial<DyNTS_AIMock_Request>): DyNTS_AIMock_Request {
|
|
8
|
-
return {
|
|
9
|
-
provider: 'open-ai',
|
|
10
|
-
model: 'gpt-4o-mini',
|
|
11
|
-
modality: DyNTS_AIMock_Modality.text,
|
|
12
|
-
config: { temperature: 0 },
|
|
13
|
-
input: 'ping',
|
|
14
|
-
...overrides,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
it('determinisztikus — azonos request kétszer → azonos kulcs', () => {
|
|
19
|
-
expect(DyNTS_AIMock_FixtureMatch_Util.buildMatchKey(req({}))).toBe(
|
|
20
|
-
DyNTS_AIMock_FixtureMatch_Util.buildMatchKey(req({}))
|
|
21
|
-
);
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
it('config-kulcs-sorrend független', () => {
|
|
25
|
-
const a: string = DyNTS_AIMock_FixtureMatch_Util.buildMatchKey(req({ config: { temperature: 0, topP: 1 } }));
|
|
26
|
-
const b: string = DyNTS_AIMock_FixtureMatch_Util.buildMatchKey(req({ config: { topP: 1, temperature: 0 } }));
|
|
27
|
-
|
|
28
|
-
expect(a).toBe(b);
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('input-whitespace független', () => {
|
|
32
|
-
const a: string = DyNTS_AIMock_FixtureMatch_Util.buildMatchKey(req({ input: 'hello world' }));
|
|
33
|
-
const b: string = DyNTS_AIMock_FixtureMatch_Util.buildMatchKey(req({ input: ' hello world ' }));
|
|
34
|
-
|
|
35
|
-
expect(a).toBe(b);
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
it('eltérő input → eltérő kulcs', () => {
|
|
39
|
-
const a: string = DyNTS_AIMock_FixtureMatch_Util.buildMatchKey(req({ input: 'ping' }));
|
|
40
|
-
const b: string = DyNTS_AIMock_FixtureMatch_Util.buildMatchKey(req({ input: 'pong' }));
|
|
41
|
-
|
|
42
|
-
expect(a).not.toBe(b);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
it('eltérő modalitás → eltérő kulcs (azonos input mellett is)', () => {
|
|
46
|
-
const a: string = DyNTS_AIMock_FixtureMatch_Util.buildMatchKey(req({ modality: DyNTS_AIMock_Modality.text }));
|
|
47
|
-
const b: string = DyNTS_AIMock_FixtureMatch_Util.buildMatchKey(req({ modality: DyNTS_AIMock_Modality.embedding }));
|
|
48
|
-
|
|
49
|
-
expect(a).not.toBe(b);
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
it('buildInputHash stabil ugyanarra a szövegre', () => {
|
|
53
|
-
expect(DyNTS_AIMock_FixtureMatch_Util.buildInputHash('alpha')).toBe(
|
|
54
|
-
DyNTS_AIMock_FixtureMatch_Util.buildInputHash('alpha')
|
|
55
|
-
);
|
|
56
|
-
});
|
|
57
|
-
});
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as crypto from 'crypto';
|
|
2
|
-
|
|
3
|
-
import { DyNTS_AIMock_Request } from '../_models/interfaces/aim-request.interface';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* A fixture-match kulcs DETERMINISZTIKUS képzése. Cél: azonos „jelentésű" request → azonos kulcs,
|
|
7
|
-
* függetlenül a config-kulcsok sorrendjétől és az input whitespace-variánsaitól (különben false
|
|
8
|
-
* reject-on-unknown, l. HYPERPLAN D3 + MP-3 SP-3.1). NEM végez generálást — tiszta, hálózat-mentes.
|
|
9
|
-
*/
|
|
10
|
-
export class DyNTS_AIMock_FixtureMatch_Util {
|
|
11
|
-
/**
|
|
12
|
-
* A teljes match-kulcs: `provider|model|modality|<config-hash>|<input-hash>`.
|
|
13
|
-
* @param request - a mock-hívás bemenete
|
|
14
|
-
*/
|
|
15
|
-
static buildMatchKey(request: DyNTS_AIMock_Request): string {
|
|
16
|
-
const configHash: string = this.hash(this.canonicalizeConfig(request.config ?? {}));
|
|
17
|
-
const inputHash: string = this.buildInputHash(request.input);
|
|
18
|
-
|
|
19
|
-
return `${request.provider}|${request.model}|${request.modality}|${configHash}|${inputHash}`;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Csak az input-hash (a `DyNTS_AIMock_Fixture.inputHash`-hez): a kanonizált input SHA-256-ja.
|
|
24
|
-
* @param input - a modalitás-függő bemenet
|
|
25
|
-
*/
|
|
26
|
-
static buildInputHash(input: unknown): string {
|
|
27
|
-
return this.hash(this.canonicalizeInput(input));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Kulcs-rendezett, stabil szöveg egy config-objektumból (a config-kulcsok sorrend-függetlenségéhez).
|
|
32
|
-
* Megjegyzés: a nested-objektum mély-kanonizációja jövőbeli finomítás (a shallow key-sort a config-flat
|
|
33
|
-
* paramétereket — temperature/dimensions/size — fedi).
|
|
34
|
-
* @param config - a kanonizálandó config
|
|
35
|
-
*/
|
|
36
|
-
private static canonicalizeConfig(config: Record<string, unknown>): string {
|
|
37
|
-
const sortedKeys: string[] = Object.keys(config).sort();
|
|
38
|
-
const parts: string[] = sortedKeys.map((key: string) => `${key}:${JSON.stringify(config[key])}`);
|
|
39
|
-
|
|
40
|
-
return parts.join('|');
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Input-kanonizáció: string → trim + belső whitespace-összevonás; egyéb (pl. embedding-szöveg-tömb) →
|
|
45
|
-
* stabil JSON (a sorrend jelentős, pl. batch-embedding).
|
|
46
|
-
* @param input - a bemenet
|
|
47
|
-
*/
|
|
48
|
-
private static canonicalizeInput(input: unknown): string {
|
|
49
|
-
if (typeof input === 'string') {
|
|
50
|
-
return input.trim().replace(/\s+/g, ' ');
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return JSON.stringify(input);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/** SHA-256 hex az adott szövegből. */
|
|
57
|
-
private static hash(value: string): string {
|
|
58
|
-
return crypto.createHash('sha256').update(value).digest('hex');
|
|
59
|
-
}
|
|
60
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { DyNTS_AIMock_Modality } from '../_enums/aim-modality.enum';
|
|
2
|
-
import { DyNTS_AIMock_Fixture } from '../_models/interfaces/aim-fixture.interface';
|
|
3
|
-
import { DyNTS_AIMock_FixtureSerializer_Util } from './aim-fixture-serializer.util';
|
|
4
|
-
|
|
5
|
-
describe('| DyNTS_AIMock_FixtureSerializer_Util', () => {
|
|
6
|
-
|
|
7
|
-
function fixture(model: string, inputHash: string): DyNTS_AIMock_Fixture {
|
|
8
|
-
return {
|
|
9
|
-
provider: 'open-ai',
|
|
10
|
-
model: model,
|
|
11
|
-
modality: DyNTS_AIMock_Modality.text,
|
|
12
|
-
input: 'ping',
|
|
13
|
-
inputHash: inputHash,
|
|
14
|
-
output: 'pong',
|
|
15
|
-
capturedAt: '2026-07-21T00:00:00.000Z',
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
it('| determinisztikus: a fixture-ok SORRENDJETOL fuggetlenul azonos kimenet', () => {
|
|
20
|
-
const a: DyNTS_AIMock_Fixture[] = [ fixture('m-b', 'h2'), fixture('m-a', 'h1') ];
|
|
21
|
-
const b: DyNTS_AIMock_Fixture[] = [ fixture('m-a', 'h1'), fixture('m-b', 'h2') ];
|
|
22
|
-
|
|
23
|
-
const first: string = DyNTS_AIMock_FixtureSerializer_Util.toConstantFile({ constName: 'X', fixtures: a });
|
|
24
|
-
const second: string = DyNTS_AIMock_FixtureSerializer_Util.toConstantFile({ constName: 'X', fixtures: b });
|
|
25
|
-
|
|
26
|
-
expect(first).toBe(second);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
it('| az objektum-kulcsok abc-sorrendben jonnek ki (stabil diff)', () => {
|
|
30
|
-
const output: string = DyNTS_AIMock_FixtureSerializer_Util.toConstantFile({
|
|
31
|
-
constName: 'X',
|
|
32
|
-
fixtures: [ fixture('m-a', 'h1') ],
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
expect(output.indexOf('"capturedAt"')).toBeLessThan(output.indexOf('"input"'));
|
|
36
|
-
expect(output.indexOf('"input"')).toBeLessThan(output.indexOf('"model"'));
|
|
37
|
-
expect(output.indexOf('"model"')).toBeLessThan(output.indexOf('"provider"'));
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
it('| valid TS-konstans vazat ad (import + export const + tipus)', () => {
|
|
41
|
-
const output: string = DyNTS_AIMock_FixtureSerializer_Util.toConstantFile({
|
|
42
|
-
constName: 'DyNTS_AIMock_TestFixtures',
|
|
43
|
-
fixtures: [ fixture('m-a', 'h1') ],
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
expect(output).toContain(`from '@futdevpro/nts-dynamo/ai/ai-mock'`);
|
|
47
|
-
expect(output).toContain('export const DyNTS_AIMock_TestFixtures: DyNTS_AIMock_Fixture[] = [');
|
|
48
|
-
expect(output.trim().endsWith('];')).toBe(true);
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
it('| ures keszlet → ures tomb-literal', () => {
|
|
52
|
-
const output: string = DyNTS_AIMock_FixtureSerializer_Util.toConstantFile({ constName: 'X', fixtures: [] });
|
|
53
|
-
|
|
54
|
-
expect(output).toContain('export const X: DyNTS_AIMock_Fixture[] = [');
|
|
55
|
-
});
|
|
56
|
-
});
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { DyNTS_AIMock_Fixture } from '../_models/interfaces/aim-fixture.interface';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Beegetett fixture-ok **determinisztikus** TS-konstans fajlla alakitasa (D6: git-tracked, NEM env-fuggo).
|
|
5
|
-
*
|
|
6
|
-
* A determinizmus itt nem kozmetika: a fixture-fajlok verziokezeltek, ezert ugyanaz a fixture-keszlet
|
|
7
|
-
* MINDIG ugyanazt a fajl-tartalmat kell adja — kulonben minden ujra-generalas zajos diff-et okoz, es a
|
|
8
|
-
* code-review hasznalhatatlanna valik. Ezert: a fixture-ok **match-kulcs szerint rendezve**, az objektum-
|
|
9
|
-
* kulcsok pedig **rekurzivan abc-sorrendben** kerulnek ki.
|
|
10
|
-
*/
|
|
11
|
-
export class DyNTS_AIMock_FixtureSerializer_Util {
|
|
12
|
-
|
|
13
|
-
/** Behuzas egy szintje. */
|
|
14
|
-
private static readonly indentUnit: string = ' ';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Fixture-tomb → teljes TS-konstans fajl tartalma (import + export const + JSDoc-fejlec).
|
|
18
|
-
* @param set - a konstans neve + a fixture-ok + opcionalis fejlec-megjegyzes
|
|
19
|
-
*/
|
|
20
|
-
static toConstantFile(
|
|
21
|
-
set: {
|
|
22
|
-
constName: string,
|
|
23
|
-
fixtures: DyNTS_AIMock_Fixture[],
|
|
24
|
-
headerNote?: string,
|
|
25
|
-
/**
|
|
26
|
-
* A generalt fajl import-utvonala a `DyNTS_AIMock_Fixture` tipushoz.
|
|
27
|
-
*
|
|
28
|
-
* Default a publikus package-utvonal (KULSO consumer fixture-fajljaihoz). **A csomagon BELULRE**
|
|
29
|
-
* kerulo fixture-oknel relativ utat kell adni (pl. `'../_models/interfaces/aim-fixture.interface'`),
|
|
30
|
-
* kulonben a fajl onmagara hivatkozna a package-nevvel, ami build-kor nem oldodik fel.
|
|
31
|
-
*/
|
|
32
|
-
importPath?: string,
|
|
33
|
-
}
|
|
34
|
-
): string {
|
|
35
|
-
const sorted: DyNTS_AIMock_Fixture[] = this.sortFixtures(set.fixtures);
|
|
36
|
-
const body: string = sorted
|
|
37
|
-
.map((fixture: DyNTS_AIMock_Fixture) => this.stringify(fixture, this.indentUnit))
|
|
38
|
-
.join(',\n');
|
|
39
|
-
|
|
40
|
-
const note: string = set.headerNote ?? 'Auto-generalt fixture-keszlet — kezzel NE szerkeszd.';
|
|
41
|
-
|
|
42
|
-
const importPath: string = set.importPath ?? '@futdevpro/nts-dynamo/ai/ai-mock';
|
|
43
|
-
|
|
44
|
-
return [
|
|
45
|
-
`import { DyNTS_AIMock_Fixture } from '${importPath}';`,
|
|
46
|
-
'',
|
|
47
|
-
'/**',
|
|
48
|
-
` * ${note}`,
|
|
49
|
-
' *',
|
|
50
|
-
' * Determinisztikus sorrend (match-kulcs szerint) + rendezett objektum-kulcsok, hogy az ujra-generalas',
|
|
51
|
-
' * ne okozzon zajos diff-et. Forras: `DyNTS_AIMock_FixtureSerializer_Util`.',
|
|
52
|
-
' */',
|
|
53
|
-
`export const ${set.constName}: DyNTS_AIMock_Fixture[] = [`,
|
|
54
|
-
body,
|
|
55
|
-
'];',
|
|
56
|
-
'',
|
|
57
|
-
].join('\n');
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/** Fixture-ok stabil rendezese (provider|model|modality|inputHash). */
|
|
61
|
-
private static sortFixtures(fixtures: DyNTS_AIMock_Fixture[]): DyNTS_AIMock_Fixture[] {
|
|
62
|
-
return [ ...fixtures ].sort((a: DyNTS_AIMock_Fixture, b: DyNTS_AIMock_Fixture) => {
|
|
63
|
-
return this.sortKeyOf(a).localeCompare(this.sortKeyOf(b));
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/** A rendezesi kulcs egy fixture-hoz. */
|
|
68
|
-
private static sortKeyOf(fixture: DyNTS_AIMock_Fixture): string {
|
|
69
|
-
return `${fixture.provider}|${fixture.model}|${fixture.modality}|${fixture.inputHash}`;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Rekurziv, kulcs-rendezett stringify (a `JSON.stringify` a beszurasi sorrendet tartana meg — az nem stabil).
|
|
74
|
-
* @param value - a szerializalando ertek
|
|
75
|
-
* @param indent - az aktualis behuzas
|
|
76
|
-
*/
|
|
77
|
-
private static stringify(value: unknown, indent: string): string {
|
|
78
|
-
if (value === null || value === undefined) {
|
|
79
|
-
return `${indent}null`;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
if (Array.isArray(value)) {
|
|
83
|
-
if (!value.length) {
|
|
84
|
-
return `${indent}[]`;
|
|
85
|
-
}
|
|
86
|
-
const items: string = value
|
|
87
|
-
.map((item: unknown) => this.stringify(item, indent + this.indentUnit))
|
|
88
|
-
.join(',\n');
|
|
89
|
-
|
|
90
|
-
return `${indent}[\n${items}\n${indent}]`;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
if (typeof value === 'object') {
|
|
94
|
-
// `Object.entries` a generikus `object`-en is mukodik → nincs szukseg `as`-castra.
|
|
95
|
-
const source: Map<string, unknown> = new Map(Object.entries(value));
|
|
96
|
-
const keys: string[] = [ ...source.keys() ]
|
|
97
|
-
.filter((key: string) => source.get(key) !== undefined)
|
|
98
|
-
.sort();
|
|
99
|
-
|
|
100
|
-
if (!keys.length) {
|
|
101
|
-
return `${indent}{}`;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
const entries: string = keys
|
|
105
|
-
.map((key: string) => {
|
|
106
|
-
const rendered: string = this.stringify(source.get(key), indent + this.indentUnit).trimStart();
|
|
107
|
-
|
|
108
|
-
return `${indent}${this.indentUnit}${JSON.stringify(key)}: ${rendered}`;
|
|
109
|
-
})
|
|
110
|
-
.join(',\n');
|
|
111
|
-
|
|
112
|
-
return `${indent}{\n${entries}\n${indent}}`;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
return `${indent}${JSON.stringify(value)}`;
|
|
116
|
-
}
|
|
117
|
-
}
|