libmodulor 0.24.0 → 0.26.0
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/CHANGELOG.md +32 -0
- package/README.md +32 -151
- package/dist/esm/app/workers/AppUCsLoader.d.ts +2 -3
- package/dist/esm/apps/Helper/src/i18n.d.ts +39 -2
- package/dist/esm/apps/Helper/src/i18n.js +15 -1
- package/dist/esm/apps/Helper/src/lib/SrcFilesGenerator.d.ts +13 -0
- package/dist/esm/apps/Helper/src/lib/SrcFilesGenerator.js +37 -0
- package/dist/esm/apps/Helper/src/lib/consts.d.ts +2 -0
- package/dist/esm/apps/Helper/src/lib/consts.js +2 -0
- package/dist/esm/apps/Helper/src/lib/funcs.d.ts +4 -0
- package/dist/esm/apps/Helper/src/lib/funcs.js +9 -0
- package/dist/esm/apps/Helper/src/lib/io.d.ts +10 -0
- package/dist/esm/apps/Helper/src/lib/io.js +22 -0
- package/dist/esm/apps/Helper/src/lib/layers/app.d.ts +3 -0
- package/dist/esm/apps/Helper/src/lib/layers/app.js +30 -0
- package/dist/esm/apps/Helper/src/lib/layers/product.d.ts +3 -0
- package/dist/esm/apps/Helper/src/lib/layers/product.js +27 -0
- package/dist/esm/apps/Helper/src/lib/layers/project.d.ts +4 -0
- package/dist/esm/apps/Helper/src/lib/layers/project.js +163 -0
- package/dist/esm/apps/Helper/src/lib/layers/target.d.ts +3 -0
- package/dist/esm/apps/Helper/src/lib/layers/target.js +202 -0
- package/dist/esm/apps/Helper/src/lib/layers/uc.d.ts +3 -0
- package/dist/esm/apps/Helper/src/lib/layers/uc.js +113 -0
- package/dist/esm/apps/Helper/src/lib/project.js +21 -23
- package/dist/esm/apps/Helper/src/lib/types.d.ts +3 -0
- package/dist/esm/apps/Helper/src/lib/types.js +1 -0
- package/dist/esm/apps/Helper/src/manifest.d.ts +20 -0
- package/dist/esm/apps/Helper/src/manifest.js +20 -0
- package/dist/esm/apps/Helper/src/ucds/CreateAppUCD.d.ts +7 -0
- package/dist/esm/apps/Helper/src/ucds/CreateAppUCD.js +101 -0
- package/dist/esm/apps/Helper/src/ucds/CreateProductUCD.d.ts +7 -0
- package/dist/esm/apps/Helper/src/ucds/CreateProductUCD.js +101 -0
- package/dist/esm/apps/Helper/src/ucds/CreateProjectUCD.d.ts +1 -17
- package/dist/esm/apps/Helper/src/ucds/CreateProjectUCD.js +40 -34
- package/dist/esm/apps/Helper/src/ucds/CreateTargetUCD.d.ts +9 -0
- package/dist/esm/apps/Helper/src/ucds/CreateTargetUCD.js +109 -0
- package/dist/esm/apps/Helper/src/ucds/CreateUCUCD.d.ts +8 -0
- package/dist/esm/apps/Helper/src/ucds/CreateUCUCD.js +87 -0
- package/dist/esm/apps/Helper/src/ucds/DeleteGeneratedAppsTestsUCD.d.ts +1 -1
- package/dist/esm/apps/Helper/src/ucds/DeleteGeneratedAppsTestsUCD.js +1 -1
- package/dist/esm/apps/Helper/src/ucds/GenerateAppsTestsUCD.d.ts +1 -1
- package/dist/esm/apps/Helper/src/ucds/GenerateAppsTestsUCD.js +1 -1
- package/dist/esm/apps/Helper/src/ucds/TestAppUCD.d.ts +1 -1
- package/dist/esm/apps/Helper/src/ucds/TestAppUCD.js +1 -1
- package/dist/esm/convention.d.ts +15 -4
- package/dist/esm/convention.js +33 -9
- package/dist/esm/dt/Validation.d.ts +2 -2
- package/dist/esm/dt/base/TBase.d.ts +2 -0
- package/dist/esm/dt/base/TBase.js +3 -0
- package/dist/esm/dt/base/TObject.d.ts +6 -4
- package/dist/esm/dt/base/TObject.js +4 -5
- package/dist/esm/dt/base/TString.d.ts +2 -1
- package/dist/esm/dt/base/TString.js +22 -0
- package/dist/esm/dt/final/TFile.d.ts +13 -4
- package/dist/esm/dt/final/TFile.js +70 -8
- package/dist/esm/dt/final/TFileExtension.d.ts +1 -1
- package/dist/esm/dt/final/TFileMimeType.d.ts +2 -6
- package/dist/esm/dt/final/TFileMimeType.js +0 -6
- package/dist/esm/dt/final/TFilePath.d.ts +7 -0
- package/dist/esm/dt/final/TFilePath.js +5 -1
- package/dist/esm/dt/index.d.ts +1 -1
- package/dist/esm/error/funcs.d.ts +2 -0
- package/dist/esm/error/funcs.js +20 -0
- package/dist/esm/error/index.d.ts +1 -1
- package/dist/esm/error/index.js +1 -1
- package/dist/esm/i18n/WordingManager.d.ts +2 -1
- package/dist/esm/i18n/WordingManager.js +23 -2
- package/dist/esm/i18n/locales/de.js +8 -0
- package/dist/esm/i18n/locales/en.js +8 -0
- package/dist/esm/i18n/locales/es.js +8 -0
- package/dist/esm/i18n/locales/fr.js +8 -0
- package/dist/esm/i18n/types.d.ts +2 -2
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.node-test.d.ts +1 -1
- package/dist/esm/index.node-test.js +1 -1
- package/dist/esm/product/index.d.ts +1 -1
- package/dist/esm/product/index.js +1 -1
- package/dist/esm/product/workers/ProductUCsLoader.d.ts +8 -6
- package/dist/esm/product/workers/ProductUCsLoader.js +19 -5
- package/dist/esm/products/Helper/cli-node-core/container.d.ts +3 -0
- package/dist/esm/products/Helper/cli-node-core/container.js +26 -0
- package/dist/esm/products/Helper/cli-node-core/index.d.ts +1 -0
- package/dist/esm/products/Helper/cli-node-core/index.js +9 -0
- package/dist/esm/products/Helper/i18n.d.ts +101 -2
- package/dist/esm/products/Helper/targets/node-core-cli/container.d.ts +3 -0
- package/dist/esm/products/Helper/targets/node-core-cli/container.js +26 -0
- package/dist/esm/products/Helper/targets/node-core-cli/index.d.ts +1 -0
- package/dist/esm/products/Helper/targets/node-core-cli/index.js +9 -0
- package/dist/esm/std/FSManager.d.ts +7 -5
- package/dist/esm/std/FSManager.js +5 -6
- package/dist/esm/std/FormDataBuilder.d.ts +2 -1
- package/dist/esm/std/SettingsManager.d.ts +3 -16
- package/dist/esm/std/SettingsManager.js +1 -16
- package/dist/esm/std/ShellCommandExecutor.d.ts +1 -1
- package/dist/esm/std/consts.js +4 -4
- package/dist/esm/std/impl/EnvSettingsManager.d.ts +5 -4
- package/dist/esm/std/impl/EnvSettingsManager.js +40 -62
- package/dist/esm/std/impl/FakeFSManager.d.ts +3 -1
- package/dist/esm/std/impl/FakeFSManager.js +3 -0
- package/dist/esm/std/impl/FakeShellCommandExecutor.d.ts +12 -0
- package/dist/esm/std/impl/FakeShellCommandExecutor.js +30 -0
- package/dist/esm/std/impl/NodeFSManager.js +3 -2
- package/dist/esm/std/impl/StaticSettingsManager.d.ts +1 -1
- package/dist/esm/std/impl/StaticSettingsManager.js +3 -0
- package/dist/esm/std/index.d.ts +1 -0
- package/dist/esm/std/index.js +1 -0
- package/dist/esm/std/lib/settings.d.ts +5 -0
- package/dist/esm/std/lib/settings.js +39 -0
- package/dist/esm/target/edge-worker-hono-server/SyncEdgeWorkerHonoServerManager.d.ts +3 -1
- package/dist/esm/target/edge-worker-hono-server/SyncEdgeWorkerHonoServerManager.js +12 -7
- package/dist/esm/target/index.d.ts +1 -0
- package/dist/esm/target/index.js +1 -0
- package/dist/esm/target/lib/cli/CLIManager.d.ts +2 -2
- package/dist/esm/target/lib/client/consts.js +2 -1
- package/dist/esm/target/lib/entrypoint.d.ts +2 -0
- package/dist/esm/target/lib/entrypoint.js +1 -0
- package/dist/esm/target/lib/manifest.d.ts +13 -0
- package/dist/esm/target/lib/manifest.js +11 -0
- package/dist/esm/target/lib/mcp-server/MCPServerBooter.d.ts +2 -2
- package/dist/esm/target/lib/react/StyleContextProvider.d.ts +1 -0
- package/dist/esm/target/lib/react/form.d.ts +1 -1
- package/dist/esm/target/lib/react/form.js +1 -0
- package/dist/esm/target/lib/react/useAction.d.ts +1 -1
- package/dist/esm/target/lib/react/useAction.js +13 -12
- package/dist/esm/target/lib/server/CustomerFacingErrorBuilder.js +6 -1
- package/dist/esm/target/lib/server/ServerBooter.d.ts +2 -2
- package/dist/esm/target/lib/server/ServerRequestHandler.js +6 -2
- package/dist/esm/target/lib/server/consts.js +2 -1
- package/dist/esm/target/lib/server-express/funcs.d.ts +2 -0
- package/dist/esm/target/lib/server-express/funcs.js +8 -1
- package/dist/esm/target/lib/server-hono/funcs.d.ts +2 -1
- package/dist/esm/target/lib/server-hono/funcs.js +7 -3
- package/dist/esm/target/lib/web/input.d.ts +1 -0
- package/dist/esm/target/lib/web/input.js +5 -1
- package/dist/esm/target/node-express-server/NodeExpressServerManager.d.ts +3 -1
- package/dist/esm/target/node-express-server/NodeExpressServerManager.js +17 -12
- package/dist/esm/target/node-hono-server/NodeHonoServerManager.d.ts +3 -1
- package/dist/esm/target/node-hono-server/NodeHonoServerManager.js +15 -10
- package/dist/esm/target/node-stricli-cli/NodeStricliCLIManager.d.ts +3 -1
- package/dist/esm/target/node-stricli-cli/NodeStricliCLIManager.js +9 -5
- package/dist/esm/target/react-native-pure/UCFormField.js +2 -1
- package/dist/esm/target/react-native-pure/UCFormFieldControl.js +6 -4
- package/dist/esm/target/react-native-pure/UCFormFieldErr.d.ts +1 -1
- package/dist/esm/target/react-native-pure/UCFormFieldErr.js +4 -1
- package/dist/esm/target/react-native-pure/UCFormFieldHelp.d.ts +4 -0
- package/dist/esm/target/react-native-pure/UCFormFieldHelp.js +15 -0
- package/dist/esm/target/react-web-pure/UCFormField.js +2 -1
- package/dist/esm/target/react-web-pure/UCFormFieldErr.d.ts +1 -1
- package/dist/esm/target/react-web-pure/UCFormFieldErr.js +4 -1
- package/dist/esm/target/react-web-pure/UCFormFieldHelp.d.ts +4 -0
- package/dist/esm/target/react-web-pure/UCFormFieldHelp.js +14 -0
- package/dist/esm/testing/impl/NodeAppTesterConfigurator.d.ts +15 -0
- package/dist/esm/testing/impl/NodeAppTesterConfigurator.js +68 -0
- package/dist/esm/testing/impl/SimpleAppDocsEmitter/SimpleAppDocsEmitter.d.ts +7 -0
- package/dist/esm/testing/impl/SimpleAppDocsEmitter/SimpleAppDocsEmitter.js +59 -0
- package/dist/esm/testing/impl/SimpleAppDocsEmitter/markdown.d.ts +2 -0
- package/dist/esm/testing/impl/SimpleAppDocsEmitter/markdown.js +10 -0
- package/dist/esm/testing/impl/SimpleAppDocsEmitter/sequence-diagram.d.ts +2 -0
- package/dist/esm/testing/impl/SimpleAppDocsEmitter/sequence-diagram.js +92 -0
- package/dist/esm/testing/impl/SimpleAppDocsEmitter/tech-summary.d.ts +2 -0
- package/dist/esm/testing/impl/SimpleAppDocsEmitter/tech-summary.js +27 -0
- package/dist/esm/testing/impl/SimpleAppDocsEmitter/uc-summary.d.ts +2 -0
- package/dist/esm/testing/impl/SimpleAppDocsEmitter/uc-summary.js +63 -0
- package/dist/esm/testing/impl/VitestAppTestSuiteEmitter.d.ts +2 -0
- package/dist/esm/testing/impl/VitestAppTestSuiteEmitter.js +27 -10
- package/dist/esm/testing/impl/newNodeAppTester.js +4 -5
- package/dist/esm/testing/opts.d.ts +1 -1
- package/dist/esm/testing/uc-input.js +5 -2
- package/dist/esm/uc/exec.d.ts +42 -21
- package/dist/esm/uc/exec.js +48 -13
- package/dist/esm/uc/input-field.d.ts +6 -4
- package/dist/esm/uc/input-field.js +4 -5
- package/dist/esm/uc/side-effect.d.ts +10 -8
- package/dist/esm/uc/side-effect.js +5 -6
- package/dist/esm/uc/workers/UCInputFilesProcessor.js +3 -3
- package/dist/esm/uc/workers/UCInputValidator.js +2 -1
- package/dist/esm/uc/workers/UCOutputFilesProcessor.js +1 -1
- package/dist/esm/utils/bundling/webpack/loader.js +1 -1
- package/dist/esm/utils/index.d.ts +1 -1
- package/dist/esm/utils/ioc/bindCommon.d.ts +4 -4
- package/dist/esm/utils/ioc/bindCommon.js +17 -15
- package/dist/esm/utils/ioc/bindNodeCore.js +5 -0
- package/dist/esm/utils/ioc/bindServer.js +8 -2
- package/dist/esm/utils/types/utility-types.d.ts +4 -0
- package/package.json +19 -16
- package/pnpm-workspace.yaml +0 -8
- package/tsconfig.build.examples.json +0 -8
- package/tsconfig.json +0 -36
- package/vitest.config.ts +0 -16
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export const I18nDE = {
|
|
2
|
+
dt_File_constr_accept: 'Akzeptierte Typen: {{expected}}',
|
|
3
|
+
dt_File_constr_maxSizeInBytes: 'Maximale Größe: {{expected}}',
|
|
4
|
+
dt_File_constr_minSizeInBytes: 'Minimale Größe: {{expected}}',
|
|
5
|
+
dt_FreeTextShort_constr_format: 'Format: {{expected}}',
|
|
6
|
+
dt_FreeTextShort_constr_maxLength: 'Maximale Länge: {{expected}}',
|
|
7
|
+
dt_FreeTextShort_constr_minLength: 'Minimale Länge: {{expected}}',
|
|
2
8
|
dt_YesNo_N_desc: '',
|
|
3
9
|
dt_YesNo_N_label: 'Nein',
|
|
4
10
|
dt_YesNo_Y_desc: '',
|
|
@@ -39,9 +45,11 @@ export const I18nDE = {
|
|
|
39
45
|
validation_max: 'Muss kleiner oder gleich {{expected}} sein',
|
|
40
46
|
validation_maxCount: 'Darf höchstens {{expected}} Element(e) enthalten',
|
|
41
47
|
validation_maxLength: 'Darf höchstens {{expected}} Zeichen enthalten',
|
|
48
|
+
validation_maxSize: 'Muss eine maximale Größe von {{expected}} haben',
|
|
42
49
|
validation_min: 'Muss größer oder gleich {{expected}} sein',
|
|
43
50
|
validation_minCount: 'Muss mindestens {{expected}} Element(e) enthalten',
|
|
44
51
|
validation_minLength: 'Muss mindestens {{expected}} Zeichen enthalten',
|
|
52
|
+
validation_minSize: 'Muss eine minimale Größe von {{expected}} haben',
|
|
45
53
|
validation_oneOf: 'Muss eines der Elemente der Liste sein',
|
|
46
54
|
validation_shape: 'Muss der erwarteten Objektstruktur entsprechen',
|
|
47
55
|
validation_type_array: 'Muss ein Array sein',
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export const I18nEN = {
|
|
2
|
+
dt_File_constr_accept: 'Accepted types: {{expected}}',
|
|
3
|
+
dt_File_constr_maxSizeInBytes: 'Max size: {{expected}}',
|
|
4
|
+
dt_File_constr_minSizeInBytes: 'Min size: {{expected}}',
|
|
5
|
+
dt_FreeTextShort_constr_format: 'Format : {{expected}}',
|
|
6
|
+
dt_FreeTextShort_constr_maxLength: 'Max length : {{expected}}',
|
|
7
|
+
dt_FreeTextShort_constr_minLength: 'Min length : {{expected}}',
|
|
2
8
|
dt_YesNo_N_desc: '',
|
|
3
9
|
dt_YesNo_N_label: 'No',
|
|
4
10
|
dt_YesNo_Y_desc: '',
|
|
@@ -39,9 +45,11 @@ export const I18nEN = {
|
|
|
39
45
|
validation_max: 'Must be lower than or equal to {{expected}}',
|
|
40
46
|
validation_maxCount: 'Must contain at most {{expected}} item(s)',
|
|
41
47
|
validation_maxLength: 'Must contain at most {{expected}} character(s)',
|
|
48
|
+
validation_maxSize: 'Must have a max size of {{expected}}',
|
|
42
49
|
validation_min: 'Must be greater than or equal to {{expected}}',
|
|
43
50
|
validation_minCount: 'Must contain at least {{expected}} item(s)',
|
|
44
51
|
validation_minLength: 'Must contain at least {{expected}} character(s)',
|
|
52
|
+
validation_minSize: 'Must have a min size of {{expected}}',
|
|
45
53
|
validation_oneOf: 'Must be one of the elements of the list',
|
|
46
54
|
validation_shape: 'Must respect the expected object shape',
|
|
47
55
|
validation_type_array: 'Must be an array',
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export const I18nES = {
|
|
2
|
+
dt_File_constr_accept: 'Tipos aceptados: {{expected}}',
|
|
3
|
+
dt_File_constr_maxSizeInBytes: 'Tamaño máximo: {{expected}}',
|
|
4
|
+
dt_File_constr_minSizeInBytes: 'Tamaño mínimo: {{expected}}',
|
|
5
|
+
dt_FreeTextShort_constr_format: 'Formato: {{expected}}',
|
|
6
|
+
dt_FreeTextShort_constr_maxLength: 'Longitud máxima: {{expected}}',
|
|
7
|
+
dt_FreeTextShort_constr_minLength: 'Longitud mínima: {{expected}}',
|
|
2
8
|
dt_YesNo_N_desc: '',
|
|
3
9
|
dt_YesNo_N_label: 'No',
|
|
4
10
|
dt_YesNo_Y_desc: '',
|
|
@@ -39,9 +45,11 @@ export const I18nES = {
|
|
|
39
45
|
validation_max: 'Debe ser menor o igual que {{expected}}',
|
|
40
46
|
validation_maxCount: 'Debe contener como máximo {{expected}} elemento(s)',
|
|
41
47
|
validation_maxLength: 'Debe contener como máximo {{expected}} carácter(es)',
|
|
48
|
+
validation_maxSize: 'Debe tener un tamaño máximo de {{expected}}',
|
|
42
49
|
validation_min: 'Debe ser mayor o igual que {{expected}}',
|
|
43
50
|
validation_minCount: 'Debe contener al menos {{expected}} elemento(s)',
|
|
44
51
|
validation_minLength: 'Debe contener al menos {{expected}} carácter(es)',
|
|
52
|
+
validation_minSize: 'Debe tener un tamaño mínimo de {{expected}}',
|
|
45
53
|
validation_oneOf: 'Debe ser uno de los elementos de la lista',
|
|
46
54
|
validation_shape: 'Debe respetar la estructura esperada del objeto',
|
|
47
55
|
validation_type_array: 'Debe ser un array',
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export const I18nFR = {
|
|
2
|
+
dt_File_constr_accept: 'Types acceptés : {{expected}}',
|
|
3
|
+
dt_File_constr_maxSizeInBytes: 'Taille max : {{expected}}',
|
|
4
|
+
dt_File_constr_minSizeInBytes: 'Taille min : {{expected}}',
|
|
5
|
+
dt_FreeTextShort_constr_format: 'Format : {{expected}}',
|
|
6
|
+
dt_FreeTextShort_constr_maxLength: 'Longueur max : {{expected}}',
|
|
7
|
+
dt_FreeTextShort_constr_minLength: 'Longueur min : {{expected}}',
|
|
2
8
|
dt_YesNo_N_desc: '',
|
|
3
9
|
dt_YesNo_N_label: 'Non',
|
|
4
10
|
dt_YesNo_Y_desc: '',
|
|
@@ -39,9 +45,11 @@ export const I18nFR = {
|
|
|
39
45
|
validation_max: 'Doit être inférieur ou égal à {{expected}}',
|
|
40
46
|
validation_maxCount: 'Doit contenir au maximim {{expected}} élément(s)',
|
|
41
47
|
validation_maxLength: 'Doit contenir au maximum {{expected}} caractère(s)',
|
|
48
|
+
validation_maxSize: 'Doit avoir une taille maximum de {{expected}}',
|
|
42
49
|
validation_min: 'Doit être supérieur ou égal à {{expected}}',
|
|
43
50
|
validation_minCount: 'Doit contenir au minimum {{expected}} élément(s)',
|
|
44
51
|
validation_minLength: 'Doit contenir au minimum {{expected}} caractère(s)',
|
|
52
|
+
validation_minSize: 'Doit avoir une taille minimum de {{expected}}',
|
|
45
53
|
validation_oneOf: 'Doit être un des éléments de la liste',
|
|
46
54
|
validation_shape: "Doit respecter la forme de l'objet attendue",
|
|
47
55
|
validation_type_array: 'Doît être un tableau',
|
package/dist/esm/i18n/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ViolationI18nable, YesNo } from '../dt/index.js';
|
|
1
|
+
import type { TFileConstraints, TStringConstraints, ViolationI18nable, YesNo } from '../dt/index.js';
|
|
2
2
|
import type { UCClientConfirmConfig, UCExecState, UCWording } from '../uc/index.js';
|
|
3
3
|
export type I18nLanguageCode = 'de' | 'en' | 'es' | 'fr';
|
|
4
4
|
/**
|
|
@@ -8,7 +8,7 @@ export type I18nLanguageCode = 'de' | 'en' | 'es' | 'fr';
|
|
|
8
8
|
*/
|
|
9
9
|
export type I18nTranslation = string;
|
|
10
10
|
export type I18nTranslationKey = string;
|
|
11
|
-
export type I18nCoreKey = ViolationI18nable | `dt_YesNo_${YesNo}_${keyof UCWording}` | `uc_client_confirm_${keyof UCClientConfirmConfig}` | `uc_i_submit_${UCExecState}`;
|
|
11
|
+
export type I18nCoreKey = ViolationI18nable | `dt_FreeTextShort_constr_${keyof TStringConstraints}` | `dt_File_constr_${keyof TFileConstraints}` | `dt_YesNo_${YesNo}_${keyof UCWording}` | `uc_client_confirm_${keyof UCClientConfirmConfig}` | `uc_i_submit_${UCExecState}`;
|
|
12
12
|
export type I18nCoreTranslations = Record<I18nCoreKey, I18nTranslation>;
|
|
13
13
|
export type I18nSource = any;
|
|
14
14
|
export type I18nSourceSafe = {
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './std/impl/FakeFSManager.js';
|
|
|
13
13
|
export * from './std/impl/FakeHTTPAPICallExecutor.js';
|
|
14
14
|
export * from './std/impl/FakeJobManager.js';
|
|
15
15
|
export * from './std/impl/FakeLLMManager.js';
|
|
16
|
+
export * from './std/impl/FakeShellCommandExecutor.js';
|
|
16
17
|
export * from './std/impl/FetchHTTPAPICallExecutor.js';
|
|
17
18
|
export * from './std/impl/MistralAILLMManager.js';
|
|
18
19
|
export * from './std/impl/NoopHTTPAPICallExecutorAgentBuilder.js';
|
|
@@ -27,6 +28,7 @@ export * from './std/impl/StaticSettingsManager.js';
|
|
|
27
28
|
export * from './std/impl/StdDateClockManager.js';
|
|
28
29
|
export * from './std/impl/UCDataStoreExternalResourceManager.js';
|
|
29
30
|
export * from './std/index.js';
|
|
31
|
+
export * from './target/index.js';
|
|
30
32
|
export * from './target/lib/cli/CLIManager.js';
|
|
31
33
|
export * from './target/lib/client/consts.js';
|
|
32
34
|
export * from './target/lib/client/ServerClientManager.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -14,6 +14,7 @@ export * from './std/impl/FakeFSManager.js';
|
|
|
14
14
|
export * from './std/impl/FakeHTTPAPICallExecutor.js';
|
|
15
15
|
export * from './std/impl/FakeJobManager.js';
|
|
16
16
|
export * from './std/impl/FakeLLMManager.js';
|
|
17
|
+
export * from './std/impl/FakeShellCommandExecutor.js';
|
|
17
18
|
export * from './std/impl/FetchHTTPAPICallExecutor.js';
|
|
18
19
|
export * from './std/impl/MistralAILLMManager.js';
|
|
19
20
|
export * from './std/impl/NoopHTTPAPICallExecutorAgentBuilder.js';
|
|
@@ -28,6 +29,7 @@ export * from './std/impl/StaticSettingsManager.js';
|
|
|
28
29
|
export * from './std/impl/StdDateClockManager.js';
|
|
29
30
|
export * from './std/impl/UCDataStoreExternalResourceManager.js';
|
|
30
31
|
export * from './std/index.js';
|
|
32
|
+
export * from './target/index.js';
|
|
31
33
|
export * from './target/lib/cli/CLIManager.js';
|
|
32
34
|
export * from './target/lib/client/consts.js';
|
|
33
35
|
export * from './target/lib/client/ServerClientManager.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
+
export { NodeAppTesterConfigurator } from './testing/impl/NodeAppTesterConfigurator.js';
|
|
1
2
|
export { newNodeAppTester } from './testing/impl/newNodeAppTester.js';
|
|
2
|
-
export { SimpleAppTesterConfigurator } from './testing/impl/SimpleAppTesterConfigurator.js';
|
|
3
3
|
export type { TestData } from './testing/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { ProductI18n } from './i18n.js';
|
|
2
2
|
export type { ProductAppReg, ProductManifest, ProductName, ProductWording, } from './manifest.js';
|
|
3
|
-
export { ProductUCsLoader } from './workers/ProductUCsLoader.js';
|
|
3
|
+
export { type Input as ProductUCsLoaderInput, type Output as ProductUCsLoaderOutput, ProductUCsLoader, } from './workers/ProductUCsLoader.js';
|
|
4
4
|
export { type Input as SyncProductUCsLoaderInput, type Output as SyncProductUCsLoaderOutput, SyncProductUCsLoader, } from './workers/SyncProductUCsLoader.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ProductUCsLoader } from './workers/ProductUCsLoader.js';
|
|
1
|
+
export { ProductUCsLoader, } from './workers/ProductUCsLoader.js';
|
|
2
2
|
export { SyncProductUCsLoader, } from './workers/SyncProductUCsLoader.js';
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { AppUCsLoader, type AppUCsLoaderInput, type AppUCsLoaderOutput } from '../../app/index.js';
|
|
2
|
-
import type { Worker } from '../../std/index.js';
|
|
2
|
+
import type { FSManager, Worker } from '../../std/index.js';
|
|
3
3
|
import type { ProductManifest } from '../manifest.js';
|
|
4
|
-
type Input = Pick<AppUCsLoaderInput, 'appsRootPath' | 'srcImporter'
|
|
5
|
-
|
|
4
|
+
export type Input = Pick<AppUCsLoaderInput, 'appsRootPath' | 'srcImporter'> & {
|
|
5
|
+
from?: 'target' | undefined;
|
|
6
|
+
};
|
|
7
|
+
export type Output = AppUCsLoaderOutput;
|
|
6
8
|
export declare class ProductUCsLoader implements Worker<Input, Promise<Output>> {
|
|
7
9
|
private appUCsLoader;
|
|
10
|
+
private fsManager;
|
|
8
11
|
private productManifest;
|
|
9
|
-
constructor(appUCsLoader: AppUCsLoader, productManifest: ProductManifest);
|
|
10
|
-
exec({ appsRootPath, srcImporter }: Input): Promise<Output>;
|
|
12
|
+
constructor(appUCsLoader: AppUCsLoader, fsManager: FSManager, productManifest: ProductManifest);
|
|
13
|
+
exec({ appsRootPath, from, srcImporter, }: Input): Promise<Output>;
|
|
11
14
|
}
|
|
12
|
-
export {};
|
|
@@ -12,19 +12,32 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
};
|
|
13
13
|
import { inject, injectable } from 'inversify';
|
|
14
14
|
import { AppUCsLoader, } from '../../app/index.js';
|
|
15
|
+
import { APPS_PATH_FROM_PRODUCT_TARGET_PATH } from '../../convention.js';
|
|
15
16
|
let ProductUCsLoader = class ProductUCsLoader {
|
|
16
17
|
appUCsLoader;
|
|
18
|
+
fsManager;
|
|
17
19
|
productManifest;
|
|
18
|
-
constructor(appUCsLoader, productManifest) {
|
|
20
|
+
constructor(appUCsLoader, fsManager, productManifest) {
|
|
19
21
|
this.appUCsLoader = appUCsLoader;
|
|
22
|
+
this.fsManager = fsManager;
|
|
20
23
|
this.productManifest = productManifest;
|
|
21
24
|
}
|
|
22
|
-
async exec({ appsRootPath, srcImporter }) {
|
|
25
|
+
async exec({ appsRootPath, from = 'target', srcImporter, }) {
|
|
23
26
|
const output = [];
|
|
27
|
+
let actualRootPath = appsRootPath;
|
|
28
|
+
if (!actualRootPath) {
|
|
29
|
+
switch (from) {
|
|
30
|
+
case 'target':
|
|
31
|
+
actualRootPath = this.fsManager.path(...APPS_PATH_FROM_PRODUCT_TARGET_PATH);
|
|
32
|
+
break;
|
|
33
|
+
default:
|
|
34
|
+
from;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
24
37
|
for await (const app of this.productManifest.appReg) {
|
|
25
38
|
const ucs = await this.appUCsLoader.exec({
|
|
26
39
|
app,
|
|
27
|
-
appsRootPath,
|
|
40
|
+
appsRootPath: actualRootPath,
|
|
28
41
|
srcImporter,
|
|
29
42
|
});
|
|
30
43
|
output.push(...ucs);
|
|
@@ -35,7 +48,8 @@ let ProductUCsLoader = class ProductUCsLoader {
|
|
|
35
48
|
ProductUCsLoader = __decorate([
|
|
36
49
|
injectable(),
|
|
37
50
|
__param(0, inject(AppUCsLoader)),
|
|
38
|
-
__param(1, inject('
|
|
39
|
-
|
|
51
|
+
__param(1, inject('FSManager')),
|
|
52
|
+
__param(2, inject('ProductManifest')),
|
|
53
|
+
__metadata("design:paramtypes", [AppUCsLoader, Object, Object])
|
|
40
54
|
], ProductUCsLoader);
|
|
41
55
|
export { ProductUCsLoader };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Container } from 'inversify';
|
|
2
|
+
import { NodeSpawnShellCommandExecutor } from '../../../std/impl/NodeSpawnShellCommandExecutor.js';
|
|
3
|
+
import { VitestAppTestSuiteEmitter } from '../../../testing/impl/VitestAppTestSuiteEmitter.js';
|
|
4
|
+
import { VitestAppTestSuiteRunner } from '../../../testing/impl/VitestAppTestSuiteRunner.js';
|
|
5
|
+
import { CONTAINER_OPTS } from '../../../utils/index.js';
|
|
6
|
+
import { bindCommon } from '../../../utils/ioc/bindCommon.js';
|
|
7
|
+
import { bindNodeCLI } from '../../../utils/ioc/bindNodeCLI.js';
|
|
8
|
+
import { bindNodeCore } from '../../../utils/ioc/bindNodeCore.js';
|
|
9
|
+
import { bindProduct } from '../../../utils/ioc/bindProduct.js';
|
|
10
|
+
import { I18n } from '../i18n.js';
|
|
11
|
+
import { Manifest } from '../manifest.js';
|
|
12
|
+
const container = new Container(CONTAINER_OPTS);
|
|
13
|
+
bindCommon(container);
|
|
14
|
+
bindNodeCore(container);
|
|
15
|
+
bindNodeCLI(container);
|
|
16
|
+
bindProduct(container, Manifest, I18n);
|
|
17
|
+
container
|
|
18
|
+
.bind('AppTestSuiteEmitter')
|
|
19
|
+
.to(VitestAppTestSuiteEmitter);
|
|
20
|
+
container
|
|
21
|
+
.bind('AppTestSuiteRunner')
|
|
22
|
+
.to(VitestAppTestSuiteRunner);
|
|
23
|
+
container
|
|
24
|
+
.bind('ShellCommandExecutor')
|
|
25
|
+
.to(NodeSpawnShellCommandExecutor);
|
|
26
|
+
export default container;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { NodeCoreCLIManager } from '../../../target/node-core-cli/NodeCoreCLIManager.js';
|
|
4
|
+
import container from './container.js';
|
|
5
|
+
const i18nManager = container.get('I18nManager');
|
|
6
|
+
await i18nManager.init();
|
|
7
|
+
await container.get(NodeCoreCLIManager).handleCommand({
|
|
8
|
+
srcImporter: (path) => import(path),
|
|
9
|
+
});
|
|
@@ -1,2 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const I18n: {
|
|
2
|
+
en: {
|
|
3
|
+
p_desc: string;
|
|
4
|
+
p_slogan: string;
|
|
5
|
+
err_existing_app: string;
|
|
6
|
+
err_existing_product: string;
|
|
7
|
+
err_existing_target: string;
|
|
8
|
+
err_target_generator_not_available: string;
|
|
9
|
+
err_unknown_app: string;
|
|
10
|
+
uc_CreateApp_desc: string;
|
|
11
|
+
uc_CreateApp_label: string;
|
|
12
|
+
uc_CreateProduct_desc: string;
|
|
13
|
+
uc_CreateProduct_label: string;
|
|
14
|
+
uc_CreateProject_desc: string;
|
|
15
|
+
uc_CreateProject_label: string;
|
|
16
|
+
uc_CreateTarget_desc: string;
|
|
17
|
+
uc_CreateTarget_label: string;
|
|
18
|
+
uc_CreateUC_desc: string;
|
|
19
|
+
uc_CreateUC_label: string;
|
|
20
|
+
uc_DeleteGeneratedAppsTests_desc: string;
|
|
21
|
+
uc_DeleteGeneratedAppsTests_label: string;
|
|
22
|
+
uc_GenerateAppsTests_desc: string;
|
|
23
|
+
uc_GenerateAppsTests_label: string;
|
|
24
|
+
uc_TestApp_desc: string;
|
|
25
|
+
uc_TestApp_label: string;
|
|
26
|
+
ucif_appName_desc: string;
|
|
27
|
+
ucif_appPath_desc: string;
|
|
28
|
+
ucif_appsPath_desc: string;
|
|
29
|
+
ucif_depsMapping_desc: string;
|
|
30
|
+
ucif_initialCommit_desc: string;
|
|
31
|
+
ucif_monkeyTestingTimeoutInMs_desc: string;
|
|
32
|
+
ucif_outPath_desc: string;
|
|
33
|
+
ucif_pkgManagerBin_desc: string;
|
|
34
|
+
ucif_productName_desc: string;
|
|
35
|
+
ucif_projectName_desc: string;
|
|
36
|
+
ucif_scmBin_desc: string;
|
|
37
|
+
ucif_serverPortRangeStart_desc: string;
|
|
38
|
+
ucif_skipCoverage_desc: string;
|
|
39
|
+
ucif_updateSnapshots_desc: string;
|
|
40
|
+
validation_max: string;
|
|
41
|
+
validation_min: string;
|
|
42
|
+
validation_fieldsOr: string;
|
|
43
|
+
validation_mandatory: string;
|
|
44
|
+
validation_maxCount: string;
|
|
45
|
+
validation_maxLength: string;
|
|
46
|
+
validation_maxSize: string;
|
|
47
|
+
validation_minCount: string;
|
|
48
|
+
validation_minLength: string;
|
|
49
|
+
validation_minSize: string;
|
|
50
|
+
validation_oneOf: string;
|
|
51
|
+
validation_shape: string;
|
|
52
|
+
validation_format_JWT: string;
|
|
53
|
+
validation_format_ColorRGBA: string;
|
|
54
|
+
validation_format_DateISO8601: string;
|
|
55
|
+
validation_format_DirPath: string;
|
|
56
|
+
validation_format_DomainName: string;
|
|
57
|
+
validation_format_Email: string;
|
|
58
|
+
validation_format_FilePath: string;
|
|
59
|
+
validation_format_GitSSHURL: string;
|
|
60
|
+
validation_format_IPv4: string;
|
|
61
|
+
validation_format_IPv6: string;
|
|
62
|
+
validation_format_JSON: string;
|
|
63
|
+
validation_format_PersonFirstname: string;
|
|
64
|
+
validation_format_PersonFullname: string;
|
|
65
|
+
validation_format_PersonInitials: string;
|
|
66
|
+
validation_format_PersonLastname: string;
|
|
67
|
+
validation_format_QRCode: string;
|
|
68
|
+
validation_format_SemVerVersion: string;
|
|
69
|
+
validation_format_Slug: string;
|
|
70
|
+
validation_format_SSHPrivateKey: string;
|
|
71
|
+
validation_format_SSHPublicKey: string;
|
|
72
|
+
validation_format_Time: string;
|
|
73
|
+
validation_format_URL: string;
|
|
74
|
+
validation_format_UUID: string;
|
|
75
|
+
validation_type_string: string;
|
|
76
|
+
validation_type_number: string;
|
|
77
|
+
validation_type_boolean: string;
|
|
78
|
+
validation_type_object: string;
|
|
79
|
+
validation_type_array: string;
|
|
80
|
+
validation_type_int: string;
|
|
81
|
+
validation_type_scalar: string;
|
|
82
|
+
dt_FreeTextShort_constr_format: string;
|
|
83
|
+
dt_FreeTextShort_constr_maxLength: string;
|
|
84
|
+
dt_FreeTextShort_constr_minLength: string;
|
|
85
|
+
dt_File_constr_accept: string;
|
|
86
|
+
dt_File_constr_maxSizeInBytes: string;
|
|
87
|
+
dt_File_constr_minSizeInBytes: string;
|
|
88
|
+
dt_YesNo_N_desc: string;
|
|
89
|
+
dt_YesNo_N_label: string;
|
|
90
|
+
dt_YesNo_Y_desc: string;
|
|
91
|
+
dt_YesNo_Y_label: string;
|
|
92
|
+
uc_client_confirm_confirm: string;
|
|
93
|
+
uc_client_confirm_message: string;
|
|
94
|
+
uc_client_confirm_cancel: string;
|
|
95
|
+
uc_client_confirm_title: string;
|
|
96
|
+
uc_i_submit_changing: string;
|
|
97
|
+
uc_i_submit_idle: string;
|
|
98
|
+
uc_i_submit_initializing: string;
|
|
99
|
+
uc_i_submit_submitting: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Container } from 'inversify';
|
|
2
|
+
import { NodeSpawnShellCommandExecutor } from '../../../../std/impl/NodeSpawnShellCommandExecutor.js';
|
|
3
|
+
import { VitestAppTestSuiteEmitter } from '../../../../testing/impl/VitestAppTestSuiteEmitter.js';
|
|
4
|
+
import { VitestAppTestSuiteRunner } from '../../../../testing/impl/VitestAppTestSuiteRunner.js';
|
|
5
|
+
import { CONTAINER_OPTS } from '../../../../utils/index.js';
|
|
6
|
+
import { bindCommon } from '../../../../utils/ioc/bindCommon.js';
|
|
7
|
+
import { bindNodeCLI } from '../../../../utils/ioc/bindNodeCLI.js';
|
|
8
|
+
import { bindNodeCore } from '../../../../utils/ioc/bindNodeCore.js';
|
|
9
|
+
import { bindProduct } from '../../../../utils/ioc/bindProduct.js';
|
|
10
|
+
import { I18n } from '../../i18n.js';
|
|
11
|
+
import { Manifest } from '../../manifest.js';
|
|
12
|
+
const container = new Container(CONTAINER_OPTS);
|
|
13
|
+
bindCommon(container);
|
|
14
|
+
bindNodeCore(container);
|
|
15
|
+
bindNodeCLI(container);
|
|
16
|
+
bindProduct(container, Manifest, I18n);
|
|
17
|
+
container
|
|
18
|
+
.bind('AppTestSuiteEmitter')
|
|
19
|
+
.to(VitestAppTestSuiteEmitter);
|
|
20
|
+
container
|
|
21
|
+
.bind('AppTestSuiteRunner')
|
|
22
|
+
.to(VitestAppTestSuiteRunner);
|
|
23
|
+
container
|
|
24
|
+
.bind('ShellCommandExecutor')
|
|
25
|
+
.to(NodeSpawnShellCommandExecutor);
|
|
26
|
+
export default container;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { NodeCoreCLIManager } from '../../../../target/node-core-cli/NodeCoreCLIManager.js';
|
|
4
|
+
import container from './container.js';
|
|
5
|
+
const i18nManager = container.get('I18nManager');
|
|
6
|
+
await i18nManager.init();
|
|
7
|
+
await container.get(NodeCoreCLIManager).handleCommand({
|
|
8
|
+
srcImporter: (path) => import(path),
|
|
9
|
+
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DateISO8601, DirPath, File, FileExtension, FileMimeType, FileName, FilePath, UIntQuantity } from '../dt/index.js';
|
|
2
|
+
import type { EnumOf } from '../utils/index.js';
|
|
2
3
|
export type FSManagerChmodMode = number | string;
|
|
3
4
|
export interface FSManagerCatOpts {
|
|
4
5
|
encoding?: FSManagerEncoding;
|
|
@@ -9,11 +10,12 @@ export interface FSManagerFilePickerOpts {
|
|
|
9
10
|
path?: FilePath;
|
|
10
11
|
}
|
|
11
12
|
export type FSManagerFilePickerSource = 'camera' | 'library' | 'path';
|
|
12
|
-
export declare
|
|
13
|
-
DIR
|
|
14
|
-
FILE
|
|
15
|
-
OTHER
|
|
16
|
-
}
|
|
13
|
+
export declare const FSManagerItemInfoType: {
|
|
14
|
+
readonly DIR: "DIR";
|
|
15
|
+
readonly FILE: "FILE";
|
|
16
|
+
readonly OTHER: "OTHER";
|
|
17
|
+
};
|
|
18
|
+
export type FSManagerItemInfoType = EnumOf<typeof FSManagerItemInfoType>;
|
|
17
19
|
export interface FSManagerItemInfo {
|
|
18
20
|
base: string;
|
|
19
21
|
birthtime: DateISO8601;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
})(FSManagerItemInfoType || (FSManagerItemInfoType = {}));
|
|
1
|
+
export const FSManagerItemInfoType = {
|
|
2
|
+
DIR: 'DIR',
|
|
3
|
+
FILE: 'FILE',
|
|
4
|
+
OTHER: 'OTHER',
|
|
5
|
+
};
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Placeholder for string settings that must be defined explicitly at runtime (e.g. secrets).
|
|
3
|
-
*/
|
|
4
|
-
export declare const SettingsManagerMandatoryPlaceholder = "!<>!";
|
|
5
|
-
/**
|
|
6
|
-
* Placeholder for array settings that must be defined explicitly at runtime (e.g. secrets).
|
|
7
|
-
*/
|
|
8
|
-
export declare const SettingsManagerMandatoryPlaceholderForArray: string[];
|
|
9
|
-
/**
|
|
10
|
-
* Placeholder for object settings that must be defined explicitly at runtime (e.g. secrets).
|
|
11
|
-
*/
|
|
12
|
-
export declare const SettingsManagerMandatoryPlaceholderForObject: {
|
|
13
|
-
'0': string;
|
|
14
|
-
};
|
|
1
|
+
import type { StringKeys } from '../utils/index.js';
|
|
15
2
|
/**
|
|
16
3
|
* A group of settings
|
|
17
4
|
*
|
|
@@ -27,7 +14,7 @@ export interface Settings {
|
|
|
27
14
|
export interface Configurable<S> {
|
|
28
15
|
s(): S;
|
|
29
16
|
}
|
|
30
|
-
export type SettingsGetter<S> = <K extends
|
|
31
|
-
export interface SettingsManager<S = Settings> {
|
|
17
|
+
export type SettingsGetter<S extends Settings> = <K extends StringKeys<S>>(key: K) => S[K];
|
|
18
|
+
export interface SettingsManager<S extends Settings = Settings> {
|
|
32
19
|
get(): SettingsGetter<S>;
|
|
33
20
|
}
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Placeholder for string settings that must be defined explicitly at runtime (e.g. secrets).
|
|
3
|
-
*/
|
|
4
|
-
export const SettingsManagerMandatoryPlaceholder = '!<>!';
|
|
5
|
-
/**
|
|
6
|
-
* Placeholder for array settings that must be defined explicitly at runtime (e.g. secrets).
|
|
7
|
-
*/
|
|
8
|
-
export const SettingsManagerMandatoryPlaceholderForArray = [
|
|
9
|
-
SettingsManagerMandatoryPlaceholder,
|
|
10
|
-
];
|
|
11
|
-
/**
|
|
12
|
-
* Placeholder for object settings that must be defined explicitly at runtime (e.g. secrets).
|
|
13
|
-
*/
|
|
14
|
-
export const SettingsManagerMandatoryPlaceholderForObject = {
|
|
15
|
-
'0': SettingsManagerMandatoryPlaceholder,
|
|
16
|
-
};
|
|
1
|
+
export {};
|
|
@@ -13,7 +13,7 @@ export interface ShellCommandExecutorInput {
|
|
|
13
13
|
cwd?: FilePath;
|
|
14
14
|
env?: ShellCommandExecutorEnv;
|
|
15
15
|
streamData?: boolean;
|
|
16
|
-
};
|
|
16
|
+
} | undefined;
|
|
17
17
|
}
|
|
18
18
|
export type ShellCommandExecutorOutput = string;
|
|
19
19
|
export interface ShellCommandExecutor extends Worker<ShellCommandExecutorInput, Promise<ShellCommandExecutorOutput>> {
|
package/dist/esm/std/consts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { unsafeDefaultSetting } from './lib/settings.js';
|
|
2
2
|
export const STD_DEFAULT_EMAIL_MANAGER_SETTINGS = {
|
|
3
3
|
email_manager_enabled: false,
|
|
4
4
|
email_manager_from: 'me@example.com',
|
|
@@ -9,12 +9,12 @@ export const STD_DEFAULT_JOB_MANAGER_SETTINGS = {
|
|
|
9
9
|
};
|
|
10
10
|
export const STD_DEFAULT_JWT_MANAGER_SETTINGS = {
|
|
11
11
|
jwt_manager_algorithm: 'HS256',
|
|
12
|
-
jwt_manager_audience:
|
|
12
|
+
jwt_manager_audience: 'libmodulor',
|
|
13
13
|
jwt_manager_expires_in: '1h',
|
|
14
14
|
jwt_manager_invalidate_issued_before: null,
|
|
15
|
-
jwt_manager_issuer:
|
|
15
|
+
jwt_manager_issuer: 'libmodulor',
|
|
16
16
|
jwt_manager_key_id: null,
|
|
17
|
-
jwt_manager_secret:
|
|
17
|
+
jwt_manager_secret: unsafeDefaultSetting(),
|
|
18
18
|
jwt_manager_subject: null,
|
|
19
19
|
};
|
|
20
20
|
export const STD_DEFAULT_LOGGER_SETTINGS = {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { EnvironmentManager } from '../EnvironmentManager.js';
|
|
2
|
-
import {
|
|
3
|
-
export declare class EnvSettingsManager<S extends Settings
|
|
2
|
+
import type { Settings, SettingsGetter, SettingsManager } from '../SettingsManager.js';
|
|
3
|
+
export declare class EnvSettingsManager<S extends Settings> implements SettingsManager<S> {
|
|
4
4
|
private environmentManager;
|
|
5
5
|
private settings;
|
|
6
|
-
static ENV_VAR_PREFIX
|
|
6
|
+
private static ENV_VAR_PREFIX;
|
|
7
|
+
private settingsWithEnv;
|
|
7
8
|
constructor(environmentManager: EnvironmentManager, settings: S);
|
|
8
9
|
get(): SettingsGetter<S>;
|
|
9
|
-
|
|
10
|
+
private loadFromEnv;
|
|
10
11
|
}
|