@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,229 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { DyNTS_AI_LLMChat_ServiceBase } from './ai-llm-chat.service-base';
|
|
3
|
-
import { DyNTS_AI_LLM_ServiceBase } from './ai-llm.service-base';
|
|
4
|
-
import { DyFM_AI_CallSettings, DyFM_AI_MessageRole, DyFM_AI_Message } from '@futdevpro/fsm-dynamo/ai';
|
|
5
|
-
import { DyFM_AI_ConversationBase_Input, DyFM_AI_ConversationGenericSelect_Input, DyFM_AI_ConversationGenericMultiSelect_Input, DyFM_AI_ConversationJSONKeysDescription_Input, DyFM_AI_ConversationJSONExactKeys_Input } from '../_models/ai-input-interfaces';
|
|
6
|
-
|
|
7
|
-
class TestLLMChatService extends DyNTS_AI_LLMChat_ServiceBase<DyFM_AI_CallSettings> {
|
|
8
|
-
readonly aiProvider: any = {} as any;
|
|
9
|
-
readonly capabilities: any = {} as any;
|
|
10
|
-
setup = (config: any): void => {};
|
|
11
|
-
testConnection = async (issuer: string): Promise<boolean> => true;
|
|
12
|
-
readonly defaultSettings: DyFM_AI_CallSettings = {
|
|
13
|
-
systemPrompt: 'Test system prompt',
|
|
14
|
-
useModel: 'test-model',
|
|
15
|
-
debugLog: false,
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
readonly predefinedRequests = {
|
|
19
|
-
yesNo: {
|
|
20
|
-
upperCaseYes: 'YES',
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
requestSimpleMessage = async (set: any): Promise<string> => { return ''; };
|
|
25
|
-
requestYesNo = async (set: any): Promise<boolean> => { return false; };
|
|
26
|
-
requestPercentage = async (set: any): Promise<number> => { return 0; };
|
|
27
|
-
requestSelect = async <T>(set: any): Promise<T | { unparsableResult: string }> => { return null as any; };
|
|
28
|
-
requestMultiselect = async <T>(set: any): Promise<T[] | { unparsableResult: string }> => { return []; };
|
|
29
|
-
requestJSON = async <T>(set: any): Promise<T | { unparsableResult: string }> => { return null as any; };
|
|
30
|
-
requestJSONQuestionWithKeysDescription = async <T>(set: any): Promise<T | { unparsableResult: string }> => { return null as any; };
|
|
31
|
-
requestJSONWithExactKeys = async <T>(set: any): Promise<T | { unparsableResult: string }> => { return null as any; };
|
|
32
|
-
requestList = async <T>(set: any): Promise<T[] | { unparsableResult: string }> => { return []; };
|
|
33
|
-
|
|
34
|
-
async requestSimpleMessageInConversation(set: DyFM_AI_ConversationBase_Input<DyFM_AI_CallSettings>): Promise<string> {
|
|
35
|
-
return 'Test response';
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
async requestYesNoInConversation(set: DyFM_AI_ConversationBase_Input<DyFM_AI_CallSettings>): Promise<boolean> {
|
|
39
|
-
return true;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
async requestPercentageInConversation(set: DyFM_AI_ConversationBase_Input<DyFM_AI_CallSettings>): Promise<number> {
|
|
43
|
-
return 50;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
async requestSelectInConversation<T>(set: DyFM_AI_ConversationGenericSelect_Input<T, DyFM_AI_CallSettings>): Promise<T | { unparsableResult: string }> {
|
|
47
|
-
return null as any;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
async requestMultiselectInConversation<T>(set: DyFM_AI_ConversationGenericMultiSelect_Input<T, DyFM_AI_CallSettings>): Promise<T[] | { unparsableResult: string }> {
|
|
51
|
-
return [];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
async requestJSONInConversation<T = any>(set: DyFM_AI_ConversationBase_Input<DyFM_AI_CallSettings>): Promise<T | { unparsableResult: string }> {
|
|
55
|
-
return null as any;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
async requestJSONInConversationWithKeysDescription<T>(set: DyFM_AI_ConversationJSONKeysDescription_Input<DyFM_AI_CallSettings>): Promise<T | { unparsableResult: string }> {
|
|
59
|
-
return null as any;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
async requestJSONInConversationWithExactKeys<T>(set: DyFM_AI_ConversationJSONExactKeys_Input<DyFM_AI_CallSettings>): Promise<T | { unparsableResult: string }> {
|
|
63
|
-
return null as any;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
async requestListInConversation(set: DyFM_AI_ConversationBase_Input<DyFM_AI_CallSettings>): Promise<string[] | { unparsableResult: string }> {
|
|
67
|
-
return [];
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
static getInstance(): TestLLMChatService {
|
|
71
|
-
return TestLLMChatService.getSingletonInstance();
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
describe('| DyNTS_AI_LLMChat_ServiceBase', () => {
|
|
76
|
-
let service: TestLLMChatService;
|
|
77
|
-
|
|
78
|
-
beforeEach(() => {
|
|
79
|
-
service = new (TestLLMChatService as any)();
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
describe('| constructor', () => {
|
|
83
|
-
it('| should extend LLM service base', () => {
|
|
84
|
-
expect(service).toBeInstanceOf(DyNTS_AI_LLM_ServiceBase);
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
describe('| requestSimpleMessageInConversation', () => {
|
|
89
|
-
it('| should request simple message in conversation', async () => {
|
|
90
|
-
const input: DyFM_AI_ConversationBase_Input<DyFM_AI_CallSettings> = {
|
|
91
|
-
conversation: [
|
|
92
|
-
{ role: DyFM_AI_MessageRole.user, content: 'Hello' },
|
|
93
|
-
],
|
|
94
|
-
issuer: 'test-issuer',
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
const result = await service.requestSimpleMessageInConversation(input);
|
|
98
|
-
|
|
99
|
-
expect(result).toBe('Test response');
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
describe('| requestYesNoInConversation', () => {
|
|
104
|
-
it('| should request yes/no in conversation', async () => {
|
|
105
|
-
const input: DyFM_AI_ConversationBase_Input<DyFM_AI_CallSettings> = {
|
|
106
|
-
conversation: [
|
|
107
|
-
{ role: DyFM_AI_MessageRole.user, content: 'Is this true?' },
|
|
108
|
-
],
|
|
109
|
-
issuer: 'test-issuer',
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
const result = await service.requestYesNoInConversation(input);
|
|
113
|
-
|
|
114
|
-
expect(result).toBe(true);
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
describe('| requestPercentageInConversation', () => {
|
|
119
|
-
it('| should request percentage in conversation', async () => {
|
|
120
|
-
const input: DyFM_AI_ConversationBase_Input<DyFM_AI_CallSettings> = {
|
|
121
|
-
conversation: [
|
|
122
|
-
{ role: DyFM_AI_MessageRole.user, content: 'What percentage?' },
|
|
123
|
-
],
|
|
124
|
-
issuer: 'test-issuer',
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
const result = await service.requestPercentageInConversation(input);
|
|
128
|
-
|
|
129
|
-
expect(result).toBe(50);
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
describe('| requestSelectInConversation', () => {
|
|
134
|
-
it('| should request select in conversation', async () => {
|
|
135
|
-
const input: DyFM_AI_ConversationGenericSelect_Input<string, DyFM_AI_CallSettings> = {
|
|
136
|
-
conversation: [
|
|
137
|
-
{ role: DyFM_AI_MessageRole.user, content: 'Choose one' },
|
|
138
|
-
],
|
|
139
|
-
selectFrom: ['option1', 'option2'],
|
|
140
|
-
issuer: 'test-issuer',
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
const result = await service.requestSelectInConversation(input);
|
|
144
|
-
|
|
145
|
-
expect(result).toBeDefined();
|
|
146
|
-
});
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
describe('| requestMultiselectInConversation', () => {
|
|
150
|
-
it('| should request multiselect in conversation', async () => {
|
|
151
|
-
const input: DyFM_AI_ConversationGenericMultiSelect_Input<string, DyFM_AI_CallSettings> = {
|
|
152
|
-
conversation: [
|
|
153
|
-
{ role: DyFM_AI_MessageRole.user, content: 'Choose multiple' },
|
|
154
|
-
],
|
|
155
|
-
options: ['option1', 'option2'],
|
|
156
|
-
issuer: 'test-issuer',
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
const result = await service.requestMultiselectInConversation(input);
|
|
160
|
-
|
|
161
|
-
expect(result).toBeDefined();
|
|
162
|
-
expect(Array.isArray(result)).toBe(true);
|
|
163
|
-
});
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
describe('| requestJSONInConversation', () => {
|
|
167
|
-
it('| should request JSON in conversation', async () => {
|
|
168
|
-
const input: DyFM_AI_ConversationBase_Input<DyFM_AI_CallSettings> = {
|
|
169
|
-
conversation: [
|
|
170
|
-
{ role: DyFM_AI_MessageRole.user, content: 'Return JSON' },
|
|
171
|
-
],
|
|
172
|
-
issuer: 'test-issuer',
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
const result = await service.requestJSONInConversation(input);
|
|
176
|
-
|
|
177
|
-
expect(result).toBeDefined();
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
describe('| requestJSONInConversationWithKeysDescription', () => {
|
|
182
|
-
it('| should request JSON with keys description in conversation', async () => {
|
|
183
|
-
const input: DyFM_AI_ConversationJSONKeysDescription_Input<DyFM_AI_CallSettings> = {
|
|
184
|
-
conversation: [
|
|
185
|
-
{ role: DyFM_AI_MessageRole.user, content: 'Return JSON with keys' },
|
|
186
|
-
],
|
|
187
|
-
keysDescription: 'key1: Description 1',
|
|
188
|
-
issuer: 'test-issuer',
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
const result = await service.requestJSONInConversationWithKeysDescription(input);
|
|
192
|
-
|
|
193
|
-
expect(result).toBeDefined();
|
|
194
|
-
});
|
|
195
|
-
});
|
|
196
|
-
|
|
197
|
-
describe('| requestJSONInConversationWithExactKeys', () => {
|
|
198
|
-
it('| should request JSON with exact keys in conversation', async () => {
|
|
199
|
-
const input: DyFM_AI_ConversationJSONExactKeys_Input<DyFM_AI_CallSettings> = {
|
|
200
|
-
conversation: [
|
|
201
|
-
{ role: DyFM_AI_MessageRole.user, content: 'Return JSON with exact keys' },
|
|
202
|
-
],
|
|
203
|
-
keys: ['key1', 'key2'],
|
|
204
|
-
issuer: 'test-issuer',
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
const result = await service.requestJSONInConversationWithExactKeys(input);
|
|
208
|
-
|
|
209
|
-
expect(result).toBeDefined();
|
|
210
|
-
});
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
describe('| requestListInConversation', () => {
|
|
214
|
-
it('| should request list in conversation', async () => {
|
|
215
|
-
const input: DyFM_AI_ConversationBase_Input<DyFM_AI_CallSettings> = {
|
|
216
|
-
conversation: [
|
|
217
|
-
{ role: DyFM_AI_MessageRole.user, content: 'Return list' },
|
|
218
|
-
],
|
|
219
|
-
issuer: 'test-issuer',
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
const result = await service.requestListInConversation(input);
|
|
223
|
-
|
|
224
|
-
expect(result).toBeDefined();
|
|
225
|
-
expect(Array.isArray(result)).toBe(true);
|
|
226
|
-
});
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { DyNTS_AI_LLM_ServiceBase } from './ai-llm.service-base';
|
|
2
|
-
import { DyFM_AI_Message, DyFM_AI_CallSettings } from '@futdevpro/fsm-dynamo/ai';
|
|
3
|
-
import {
|
|
4
|
-
DyFM_AI_ConversationBase_Input,
|
|
5
|
-
DyFM_AI_ConversationSelect_Input,
|
|
6
|
-
DyFM_AI_ConversationGenericSelect_Input,
|
|
7
|
-
DyFM_AI_ConversationMultiSelect_Input,
|
|
8
|
-
DyFM_AI_ConversationGenericMultiSelect_Input,
|
|
9
|
-
DyFM_AI_ConversationJSONKeysDescription_Input,
|
|
10
|
-
DyFM_AI_ConversationJSONExactKeys_Input,
|
|
11
|
-
} from '../_models/ai-input-interfaces';
|
|
12
|
-
import { DyFM_getLocalStackLocation, DyFM_Log } from '@futdevpro/fsm-dynamo';
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Abstract base class for LLM Chat services
|
|
16
|
-
* Extends LLM service with conversation management capabilities
|
|
17
|
-
*/
|
|
18
|
-
export abstract class DyNTS_AI_LLMChat_ServiceBase<
|
|
19
|
-
T_AISettings extends DyFM_AI_CallSettings = DyFM_AI_CallSettings
|
|
20
|
-
> extends DyNTS_AI_LLM_ServiceBase<T_AISettings> {
|
|
21
|
-
// History management
|
|
22
|
-
/**
|
|
23
|
-
* Add a message to the conversation history
|
|
24
|
-
*/
|
|
25
|
-
/* abstract addMessageToHistory(message: DyFM_AI_Message, issuer: string): void; */
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Clear the conversation history for an issuer
|
|
29
|
-
*/
|
|
30
|
-
/* abstract clearHistory(issuer: string): void; */
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Get the conversation history for an issuer
|
|
34
|
-
*/
|
|
35
|
-
/* abstract getHistory(issuer: string): DyFM_AI_Message[]; */
|
|
36
|
-
|
|
37
|
-
// Conversation methods (from OAI_LLMChat_ServiceBase)
|
|
38
|
-
abstract requestSimpleMessageInConversation(set: DyFM_AI_ConversationBase_Input<T_AISettings>): Promise<string>;
|
|
39
|
-
abstract requestYesNoInConversation(set: DyFM_AI_ConversationBase_Input<T_AISettings>): Promise<boolean>;
|
|
40
|
-
abstract requestPercentageInConversation(set: DyFM_AI_ConversationBase_Input<T_AISettings>): Promise<number>;
|
|
41
|
-
|
|
42
|
-
/* abstract selectQuestionInConversation(set: DyFM_AI_ConversationSelect_Input): Promise<string>; */
|
|
43
|
-
abstract requestSelectInConversation<T>(
|
|
44
|
-
set: DyFM_AI_ConversationGenericSelect_Input<T, T_AISettings>
|
|
45
|
-
): Promise<T | { unparsableResult: string }>;
|
|
46
|
-
/* abstract multipleSelectQuestionInConversationWithOptions(
|
|
47
|
-
set: DyFM_AI_ConversationMultiSelect_Input<T_AISettings>
|
|
48
|
-
): Promise<string[]>; */
|
|
49
|
-
abstract requestMultiselectInConversation<T>(
|
|
50
|
-
set: DyFM_AI_ConversationGenericMultiSelect_Input<T, T_AISettings>
|
|
51
|
-
): Promise<T[] | { unparsableResult: string }>;
|
|
52
|
-
|
|
53
|
-
abstract requestJSONInConversation<T = any>(
|
|
54
|
-
set: DyFM_AI_ConversationBase_Input<T_AISettings>
|
|
55
|
-
): Promise<T | { unparsableResult: string }>;
|
|
56
|
-
abstract requestJSONInConversationWithKeysDescription<T>(
|
|
57
|
-
set: DyFM_AI_ConversationJSONKeysDescription_Input<T_AISettings>
|
|
58
|
-
): Promise<T | { unparsableResult: string }>;
|
|
59
|
-
abstract requestJSONInConversationWithExactKeys<T>(
|
|
60
|
-
set: DyFM_AI_ConversationJSONExactKeys_Input<T_AISettings>
|
|
61
|
-
): Promise<T | { unparsableResult: string }>;
|
|
62
|
-
//abstract getQuestionAnswerInConversation(set: DyFM_AI_ConversationQuestion_Input): Promise<string>;
|
|
63
|
-
//abstract getAnswerInConversation(set: DyFM_AI_ConversationGetAnswer_Input): Promise<string>;
|
|
64
|
-
|
|
65
|
-
abstract requestListInConversation(
|
|
66
|
-
set: DyFM_AI_ConversationBase_Input<T_AISettings>
|
|
67
|
-
): Promise<string[] | { unparsableResult: string }>;
|
|
68
|
-
}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DyFM_AI_CallSettings,
|
|
3
|
-
DyFM_AI_ModelInfo,
|
|
4
|
-
DyFM_AI_ModelType,
|
|
5
|
-
DyFM_AI_Provider,
|
|
6
|
-
} from '@futdevpro/fsm-dynamo/ai';
|
|
7
|
-
|
|
8
|
-
import { DyNTS_AI_LLM_ServiceBase } from './ai-llm.service-base';
|
|
9
|
-
|
|
10
|
-
/** Minden-false capability-blokk a teszt-registry bejegyzesekhez. */
|
|
11
|
-
const NO_CAPS: any = {
|
|
12
|
-
functionCalling: false,
|
|
13
|
-
vision: false,
|
|
14
|
-
streaming: false,
|
|
15
|
-
jsonMode: false,
|
|
16
|
-
audioInput: false,
|
|
17
|
-
audioOutput: false,
|
|
18
|
-
imageGeneration: false,
|
|
19
|
-
embeddings: false,
|
|
20
|
-
adultContent: false,
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/** Teszt-registry: egy schema-val rendelkezo es egy schema-mentes modell. */
|
|
24
|
-
const TEST_REGISTRY: DyFM_AI_ModelInfo[] = [
|
|
25
|
-
{
|
|
26
|
-
id: 'schema-model',
|
|
27
|
-
provider: DyFM_AI_Provider.OpenAI,
|
|
28
|
-
modelType: DyFM_AI_ModelType.Chat,
|
|
29
|
-
capabilities: NO_CAPS,
|
|
30
|
-
settingsSchema: {
|
|
31
|
-
supported: ['maxTokens'],
|
|
32
|
-
unsupported: ['temperature', 'topP'],
|
|
33
|
-
extraParams: ['reasoningEffort'],
|
|
34
|
-
constraints: {
|
|
35
|
-
maxTokens: { min: 10, max: 100 },
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
id: 'plain-model',
|
|
41
|
-
provider: DyFM_AI_Provider.OpenAI,
|
|
42
|
-
modelType: DyFM_AI_ModelType.Chat,
|
|
43
|
-
capabilities: NO_CAPS,
|
|
44
|
-
},
|
|
45
|
-
];
|
|
46
|
-
|
|
47
|
-
class ReconcilerTestService extends DyNTS_AI_LLM_ServiceBase<DyFM_AI_CallSettings> {
|
|
48
|
-
readonly aiProvider: any = {} as any;
|
|
49
|
-
readonly capabilities: any = {} as any;
|
|
50
|
-
setup = (config: any): void => {};
|
|
51
|
-
testConnection = async (issuer: string): Promise<boolean> => true;
|
|
52
|
-
|
|
53
|
-
readonly defaultSettings: DyFM_AI_CallSettings = {
|
|
54
|
-
systemPrompt: 'Test',
|
|
55
|
-
useModel: 'schema-model',
|
|
56
|
-
debugLog: false,
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
readonly predefinedRequests = { yesNo: { upperCaseYes: 'YES' } };
|
|
60
|
-
|
|
61
|
-
requestSimpleMessage = async (set: any): Promise<string> => { return ''; };
|
|
62
|
-
requestYesNo = async (set: any): Promise<boolean> => { return false; };
|
|
63
|
-
requestPercentage = async (set: any): Promise<number> => { return 0; };
|
|
64
|
-
requestSelect = async <T>(set: any): Promise<T | { unparsableResult: string }> => { return null as any; };
|
|
65
|
-
requestMultiselect = async <T>(set: any): Promise<T[] | { unparsableResult: string }> => { return []; };
|
|
66
|
-
requestJSON = async <T>(set: any): Promise<T | { unparsableResult: string }> => { return null as any; };
|
|
67
|
-
requestJSONQuestionWithKeysDescription = async <T>(set: any): Promise<T | { unparsableResult: string }> => { return null as any; };
|
|
68
|
-
requestJSONWithExactKeys = async <T>(set: any): Promise<T | { unparsableResult: string }> => { return null as any; };
|
|
69
|
-
requestList = async <T>(set: any): Promise<T[] | { unparsableResult: string }> => { return []; };
|
|
70
|
-
|
|
71
|
-
protected override getModelRegistry(): DyFM_AI_ModelInfo[] {
|
|
72
|
-
return TEST_REGISTRY;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
static getInstance(): ReconcilerTestService {
|
|
76
|
-
return ReconcilerTestService.getSingletonInstance();
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
describe('| DyNTS_AI_LLM_ServiceBase — FR-048 reconcileCallSettings', () => {
|
|
81
|
-
let service: ReconcilerTestService;
|
|
82
|
-
|
|
83
|
-
beforeEach(() => {
|
|
84
|
-
service = ReconcilerTestService.getInstance();
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
it('| dropolja az `unsupported` kulcsokat, a tobbit meghagyja', () => {
|
|
88
|
-
const result: DyFM_AI_CallSettings = (service as any).reconcileCallSettings('schema-model', {
|
|
89
|
-
temperature: 0.7,
|
|
90
|
-
topP: 0.9,
|
|
91
|
-
maxTokens: 50,
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
expect(result.temperature).toBeUndefined();
|
|
95
|
-
expect(result.topP).toBeUndefined();
|
|
96
|
-
expect(result.maxTokens).toBe(50);
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
it('| NEM mutalja az eredeti settings-objektumot', () => {
|
|
100
|
-
const original: DyFM_AI_CallSettings = { temperature: 0.7, maxTokens: 50 };
|
|
101
|
-
|
|
102
|
-
(service as any).reconcileCallSettings('schema-model', original);
|
|
103
|
-
|
|
104
|
-
expect(original.temperature).toBe(0.7);
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
it('| clamp-eli a `constraints` min/max szerint', () => {
|
|
108
|
-
const tooHigh: DyFM_AI_CallSettings = (service as any).reconcileCallSettings('schema-model', { maxTokens: 500 });
|
|
109
|
-
const tooLow: DyFM_AI_CallSettings = (service as any).reconcileCallSettings('schema-model', { maxTokens: 1 });
|
|
110
|
-
|
|
111
|
-
expect(tooHigh.maxTokens).toBe(100);
|
|
112
|
-
expect(tooLow.maxTokens).toBe(10);
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
it('| schema-mentes modell → permissziv passthrough (non-breaking)', () => {
|
|
116
|
-
const input: DyFM_AI_CallSettings = { temperature: 0.7, topP: 0.9 };
|
|
117
|
-
const result: DyFM_AI_CallSettings = (service as any).reconcileCallSettings('plain-model', input);
|
|
118
|
-
|
|
119
|
-
expect(result).toBe(input);
|
|
120
|
-
expect(result.temperature).toBe(0.7);
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
it('| ismeretlen modell → permissziv passthrough (honesty, nem dob)', () => {
|
|
124
|
-
const input: DyFM_AI_CallSettings = { temperature: 0.7 };
|
|
125
|
-
const result: DyFM_AI_CallSettings = (service as any).reconcileCallSettings('nincs-ilyen-modell', input);
|
|
126
|
-
|
|
127
|
-
expect(result).toBe(input);
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
it('| undefined settings → valtozatlanul visszaadva', () => {
|
|
131
|
-
expect((service as any).reconcileCallSettings('schema-model', undefined)).toBeUndefined();
|
|
132
|
-
});
|
|
133
|
-
});
|
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { DyNTS_AI_LLM_ServiceBase } from './ai-llm.service-base';
|
|
3
|
-
import { DyFM_AI_CallSettings, DyFM_AI_MessageRole } from '@futdevpro/fsm-dynamo/ai';
|
|
4
|
-
import { DyFM_Log, DyFM_Object } from '@futdevpro/fsm-dynamo';
|
|
5
|
-
|
|
6
|
-
class TestLLMService extends DyNTS_AI_LLM_ServiceBase<DyFM_AI_CallSettings> {
|
|
7
|
-
readonly aiProvider: any = {} as any;
|
|
8
|
-
readonly capabilities: any = {} as any;
|
|
9
|
-
setup = (config: any): void => {};
|
|
10
|
-
testConnection = async (issuer: string): Promise<boolean> => true;
|
|
11
|
-
readonly defaultSettings: DyFM_AI_CallSettings = {
|
|
12
|
-
systemPrompt: 'Test system prompt',
|
|
13
|
-
useModel: 'test-model',
|
|
14
|
-
debugLog: false,
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
readonly predefinedRequests = {
|
|
18
|
-
yesNo: {
|
|
19
|
-
upperCaseYes: 'YES',
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
requestSimpleMessage = async (set: any): Promise<string> => { return ''; };
|
|
24
|
-
requestYesNo = async (set: any): Promise<boolean> => { return false; };
|
|
25
|
-
requestPercentage = async (set: any): Promise<number> => { return 0; };
|
|
26
|
-
requestSelect = async <T>(set: any): Promise<T | { unparsableResult: string }> => { return null as any; };
|
|
27
|
-
requestMultiselect = async <T>(set: any): Promise<T[] | { unparsableResult: string }> => { return []; };
|
|
28
|
-
requestJSON = async <T>(set: any): Promise<T | { unparsableResult: string }> => { return null as any; };
|
|
29
|
-
requestJSONQuestionWithKeysDescription = async <T>(set: any): Promise<T | { unparsableResult: string }> => { return null as any; };
|
|
30
|
-
requestJSONWithExactKeys = async <T>(set: any): Promise<T | { unparsableResult: string }> => { return null as any; };
|
|
31
|
-
requestList = async <T>(set: any): Promise<T[] | { unparsableResult: string }> => { return []; };
|
|
32
|
-
|
|
33
|
-
static getInstance(): TestLLMService {
|
|
34
|
-
return TestLLMService.getSingletonInstance();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
describe('| DyNTS_AI_LLM_ServiceBase', () => {
|
|
39
|
-
let service: TestLLMService;
|
|
40
|
-
|
|
41
|
-
beforeEach(() => {
|
|
42
|
-
service = TestLLMService.getInstance();
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
it('| should be a singleton instance', () => {
|
|
46
|
-
const instance1 = TestLLMService.getInstance();
|
|
47
|
-
const instance2 = TestLLMService.getInstance();
|
|
48
|
-
|
|
49
|
-
expect(instance1).toBe(instance2);
|
|
50
|
-
expect(instance1).toBeInstanceOf(TestLLMService);
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
describe('| defaultSystemPrompt', () => {
|
|
54
|
-
it('| should return system prompt from default settings', () => {
|
|
55
|
-
expect(service.defaultSystemPrompt).toBe('Test system prompt');
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
describe('| defaultModel', () => {
|
|
60
|
-
it('| should return model from default settings', () => {
|
|
61
|
-
expect(service.defaultModel).toBe('test-model');
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
describe('| debugLog', () => {
|
|
66
|
-
it('| should return debugLog from default settings', () => {
|
|
67
|
-
expect(service.debugLog).toBe(false);
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
it('| should return _debugLog when defaultSettings debugLog is not set', () => {
|
|
71
|
-
const serviceWithoutDebugLog = new (class extends TestLLMService {
|
|
72
|
-
override readonly defaultSettings: DyFM_AI_CallSettings = {
|
|
73
|
-
systemPrompt: 'Test',
|
|
74
|
-
useModel: 'test',
|
|
75
|
-
};
|
|
76
|
-
override readonly aiProvider: any = {} as any;
|
|
77
|
-
override readonly capabilities: any = {} as any;
|
|
78
|
-
override setup = (config: any): void => {};
|
|
79
|
-
override testConnection = async (issuer: string): Promise<boolean> => true;
|
|
80
|
-
} as any)();
|
|
81
|
-
|
|
82
|
-
// Set _debugLog on the new instance
|
|
83
|
-
serviceWithoutDebugLog._debugLog = true;
|
|
84
|
-
expect(serviceWithoutDebugLog.debugLog).toBe(true);
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
describe('| convertAnswerToBoolean', () => {
|
|
89
|
-
it('| should return true when answer contains YES', () => {
|
|
90
|
-
const result = (service as any).convertAnswerToBoolean('YES');
|
|
91
|
-
|
|
92
|
-
expect(result).toBe(true);
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
it('| should return true when answer contains yes in uppercase', () => {
|
|
96
|
-
const result = (service as any).convertAnswerToBoolean('The answer is YES');
|
|
97
|
-
|
|
98
|
-
expect(result).toBe(true);
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
it('| should return false when answer does not contain YES', () => {
|
|
102
|
-
const result = (service as any).convertAnswerToBoolean('NO');
|
|
103
|
-
|
|
104
|
-
expect(result).toBe(false);
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
it('| should be case insensitive', () => {
|
|
108
|
-
const result = (service as any).convertAnswerToBoolean('yes');
|
|
109
|
-
|
|
110
|
-
expect(result).toBe(true);
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
describe('| convertAnswerToNumber', () => {
|
|
115
|
-
it('| should return number when answer is valid', () => {
|
|
116
|
-
const result = (service as any).convertAnswerToNumber('42', 'What is the answer?');
|
|
117
|
-
|
|
118
|
-
expect(result).toBe(42);
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
it('| should return null when answer is invalid (contains skip flag)', () => {
|
|
122
|
-
spyOn(service as any, 'isAnswerValid').and.returnValue(true);
|
|
123
|
-
|
|
124
|
-
const result = (service as any).convertAnswerToNumber('42', 'What is the answer?');
|
|
125
|
-
|
|
126
|
-
expect(result).toBeNull();
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
it('| should return null when answer is NaN', () => {
|
|
130
|
-
const logSpy = spyOn(DyFM_Log, 'T_error');
|
|
131
|
-
spyOn(service as any, 'isAnswerValid').and.returnValue(false);
|
|
132
|
-
|
|
133
|
-
const result = (service as any).convertAnswerToNumber('not-a-number', 'What is the answer?');
|
|
134
|
-
|
|
135
|
-
expect(result).toBeNull();
|
|
136
|
-
expect(logSpy).toHaveBeenCalled();
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
it('| should handle decimal numbers', () => {
|
|
140
|
-
const result = (service as any).convertAnswerToNumber('42.5', 'What is the answer?');
|
|
141
|
-
|
|
142
|
-
expect(result).toBe(42.5);
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
describe('| convertAnswerToSelectOption', () => {
|
|
147
|
-
it('| should return selected option when found', () => {
|
|
148
|
-
const options = ['option1', 'option2', 'option3'];
|
|
149
|
-
spyOn(service as any, 'isAnswerValid').and.returnValue(false);
|
|
150
|
-
spyOn(service as any, 'stringifySelectOptions').and.returnValue(['option1', 'option2', 'option3']);
|
|
151
|
-
|
|
152
|
-
const result = (service as any).convertAnswerToSelectOption('option1', 'Select an option', options);
|
|
153
|
-
|
|
154
|
-
expect(result).toBe('option1');
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
it('| should return null when answer is invalid', () => {
|
|
158
|
-
spyOn(service as any, 'isAnswerValid').and.returnValue(true);
|
|
159
|
-
|
|
160
|
-
const result = (service as any).convertAnswerToSelectOption('option1', 'Select an option', ['option1']);
|
|
161
|
-
|
|
162
|
-
expect(result).toBeNull();
|
|
163
|
-
});
|
|
164
|
-
|
|
165
|
-
it('| should return null when option not found', () => {
|
|
166
|
-
spyOn(service as any, 'isAnswerValid').and.returnValue(false);
|
|
167
|
-
spyOn(service as any, 'stringifySelectOptions').and.returnValue(['option1', 'option2']);
|
|
168
|
-
|
|
169
|
-
const result = (service as any).convertAnswerToSelectOption('option3', 'Select an option', ['option1', 'option2']);
|
|
170
|
-
|
|
171
|
-
expect(result).toBeNull();
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
it('| should handle JSON options', () => {
|
|
175
|
-
const options = [{ id: 1, name: 'test' }];
|
|
176
|
-
spyOn(service as any, 'isAnswerValid').and.returnValue(false);
|
|
177
|
-
spyOn(service as any, 'stringifySelectOptions').and.returnValue([JSON.stringify({ id: 1, name: 'test' })]);
|
|
178
|
-
spyOn(DyFM_Object, 'safeParseJSON').and.returnValue({ id: 1, name: 'test' });
|
|
179
|
-
|
|
180
|
-
const result = (service as any).convertAnswerToSelectOption(
|
|
181
|
-
JSON.stringify({ id: 1, name: 'test' }),
|
|
182
|
-
'Select an option',
|
|
183
|
-
options
|
|
184
|
-
);
|
|
185
|
-
|
|
186
|
-
expect(result).toEqual({ id: 1, name: 'test' });
|
|
187
|
-
});
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
describe('| convertAnswerToSelectOptions', () => {
|
|
191
|
-
it('| should return multiple selected options', () => {
|
|
192
|
-
const options = ['option1', 'option2', 'option3'];
|
|
193
|
-
spyOn(service as any, 'isAnswerValid').and.returnValue(false);
|
|
194
|
-
spyOn(service as any, 'stringifySelectOption').and.callFake((opt: string) => opt);
|
|
195
|
-
|
|
196
|
-
const result = (service as any).convertAnswerToSelectOptions('option1 and option2', 'Select options', options);
|
|
197
|
-
|
|
198
|
-
expect(result).toEqual(['option1', 'option2']);
|
|
199
|
-
});
|
|
200
|
-
|
|
201
|
-
it('| should return null when answer is invalid', () => {
|
|
202
|
-
spyOn(service as any, 'isAnswerValid').and.returnValue(true);
|
|
203
|
-
|
|
204
|
-
const result = (service as any).convertAnswerToSelectOptions('option1', 'Select options', ['option1']);
|
|
205
|
-
|
|
206
|
-
expect(result).toBeNull();
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
it('| should return empty array when no options match', () => {
|
|
210
|
-
spyOn(service as any, 'isAnswerValid').and.returnValue(false);
|
|
211
|
-
spyOn(service as any, 'stringifySelectOption').and.callFake((opt: string) => opt);
|
|
212
|
-
|
|
213
|
-
const result = (service as any).convertAnswerToSelectOptions('option4', 'Select options', ['option1', 'option2']);
|
|
214
|
-
|
|
215
|
-
expect(result).toEqual([]);
|
|
216
|
-
});
|
|
217
|
-
});
|
|
218
|
-
|
|
219
|
-
describe('| convertAnswerToJSON', () => {
|
|
220
|
-
it('| should return parsed JSON when valid', () => {
|
|
221
|
-
const jsonString = '{"key": "value"}';
|
|
222
|
-
spyOn(service as any, 'isAnswerValid').and.returnValue(false);
|
|
223
|
-
spyOn(DyFM_Object, 'safeParseJSON').and.returnValue({ key: 'value' });
|
|
224
|
-
|
|
225
|
-
const result = (service as any).convertAnswerToJSON(jsonString, 'Enter JSON') as { key: string };
|
|
226
|
-
|
|
227
|
-
expect(result).toEqual({ key: 'value' });
|
|
228
|
-
});
|
|
229
|
-
|
|
230
|
-
it('| should return unparsableResult when answer is invalid', () => {
|
|
231
|
-
spyOn(service as any, 'isAnswerValid').and.returnValue(true);
|
|
232
|
-
|
|
233
|
-
const result = (service as any).convertAnswerToJSON('{"key": "value"}', 'Enter JSON');
|
|
234
|
-
|
|
235
|
-
expect(result).toEqual({ unparsableResult: '{"key": "value"}' });
|
|
236
|
-
});
|
|
237
|
-
|
|
238
|
-
it('| should return unparsableResult when JSON is invalid', () => {
|
|
239
|
-
const logSpy = spyOn(DyFM_Log, 'T_error');
|
|
240
|
-
spyOn(service as any, 'isAnswerValid').and.returnValue(false);
|
|
241
|
-
spyOn(DyFM_Object, 'safeParseJSON').and.returnValue({ unparsableResult: 'invalid json' });
|
|
242
|
-
|
|
243
|
-
const result = (service as any).convertAnswerToJSON('invalid json', 'Enter JSON');
|
|
244
|
-
|
|
245
|
-
expect(result).toEqual({ unparsableResult: 'invalid json' });
|
|
246
|
-
expect(logSpy).toHaveBeenCalled();
|
|
247
|
-
});
|
|
248
|
-
});
|
|
249
|
-
});
|
|
250
|
-
|