@futdevpro/nts-dynamo 1.15.306 → 1.15.308

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.
Files changed (54) hide show
  1. package/build/_collections/global-settings.const.d.ts.map +1 -1
  2. package/build/_collections/global-settings.const.js +1 -0
  3. package/build/_collections/global-settings.const.js.map +1 -1
  4. package/build/_models/interfaces/global-settings.interface.d.ts +6 -0
  5. package/build/_models/interfaces/global-settings.interface.d.ts.map +1 -1
  6. package/build/_modules/cli/_collections/cli-envelope.util.d.ts +52 -0
  7. package/build/_modules/cli/_collections/cli-envelope.util.d.ts.map +1 -0
  8. package/build/_modules/cli/_collections/cli-envelope.util.js +77 -0
  9. package/build/_modules/cli/_collections/cli-envelope.util.js.map +1 -0
  10. package/build/_modules/cli/_collections/cli-flag.util.d.ts +37 -0
  11. package/build/_modules/cli/_collections/cli-flag.util.d.ts.map +1 -0
  12. package/build/_modules/cli/_collections/cli-flag.util.js +174 -0
  13. package/build/_modules/cli/_collections/cli-flag.util.js.map +1 -0
  14. package/build/_modules/cli/_enums/cli-exit-code.type-enum.d.ts +20 -0
  15. package/build/_modules/cli/_enums/cli-exit-code.type-enum.d.ts.map +1 -0
  16. package/build/_modules/cli/_enums/cli-exit-code.type-enum.js +24 -0
  17. package/build/_modules/cli/_enums/cli-exit-code.type-enum.js.map +1 -0
  18. package/build/_modules/cli/_enums/cli-flag-value.type-enum.d.ts +16 -0
  19. package/build/_modules/cli/_enums/cli-flag-value.type-enum.d.ts.map +1 -0
  20. package/build/_modules/cli/_enums/cli-flag-value.type-enum.js +20 -0
  21. package/build/_modules/cli/_enums/cli-flag-value.type-enum.js.map +1 -0
  22. package/build/_modules/cli/_enums/cli-output.type-enum.d.ts +8 -0
  23. package/build/_modules/cli/_enums/cli-output.type-enum.d.ts.map +1 -0
  24. package/build/_modules/cli/_enums/cli-output.type-enum.js +12 -0
  25. package/build/_modules/cli/_enums/cli-output.type-enum.js.map +1 -0
  26. package/build/_modules/cli/_models/control-models/cli-command-params.control-model.d.ts +116 -0
  27. package/build/_modules/cli/_models/control-models/cli-command-params.control-model.d.ts.map +1 -0
  28. package/build/_modules/cli/_models/control-models/cli-command-params.control-model.js +237 -0
  29. package/build/_modules/cli/_models/control-models/cli-command-params.control-model.js.map +1 -0
  30. package/build/_modules/cli/_models/interfaces/cli-common-options.interface.d.ts +20 -0
  31. package/build/_modules/cli/_models/interfaces/cli-common-options.interface.d.ts.map +1 -0
  32. package/build/_modules/cli/_models/interfaces/cli-common-options.interface.js +3 -0
  33. package/build/_modules/cli/_models/interfaces/cli-common-options.interface.js.map +1 -0
  34. package/build/_modules/cli/_models/interfaces/cli-envelope.interface.d.ts +28 -0
  35. package/build/_modules/cli/_models/interfaces/cli-envelope.interface.d.ts.map +1 -0
  36. package/build/_modules/cli/_models/interfaces/cli-envelope.interface.js +3 -0
  37. package/build/_modules/cli/_models/interfaces/cli-envelope.interface.js.map +1 -0
  38. package/build/_modules/cli/_models/interfaces/cli-flag.interface.d.ts +47 -0
  39. package/build/_modules/cli/_models/interfaces/cli-flag.interface.d.ts.map +1 -0
  40. package/build/_modules/cli/_models/interfaces/cli-flag.interface.js +3 -0
  41. package/build/_modules/cli/_models/interfaces/cli-flag.interface.js.map +1 -0
  42. package/build/_modules/cli/_models/interfaces/cli-settings.interface.d.ts +25 -0
  43. package/build/_modules/cli/_models/interfaces/cli-settings.interface.d.ts.map +1 -0
  44. package/build/_modules/cli/_models/interfaces/cli-settings.interface.js +3 -0
  45. package/build/_modules/cli/_models/interfaces/cli-settings.interface.js.map +1 -0
  46. package/build/_modules/cli/_services/cli-program.control-service.d.ts +106 -0
  47. package/build/_modules/cli/_services/cli-program.control-service.d.ts.map +1 -0
  48. package/build/_modules/cli/_services/cli-program.control-service.js +271 -0
  49. package/build/_modules/cli/_services/cli-program.control-service.js.map +1 -0
  50. package/build/_modules/cli/index.d.ts +11 -0
  51. package/build/_modules/cli/index.d.ts.map +1 -1
  52. package/build/_modules/cli/index.js +15 -0
  53. package/build/_modules/cli/index.js.map +1 -1
  54. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"global-settings.const.d.ts","sourceRoot":"","sources":["../../src/_collections/global-settings.const.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAIxF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,qBAiInC,CAAC"}
1
+ {"version":3,"file":"global-settings.const.d.ts","sourceRoot":"","sources":["../../src/_collections/global-settings.const.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAIxF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,qBAmInC,CAAC"}
@@ -58,6 +58,7 @@ exports.DyNTS_global_settings = {
58
58
  },
59
59
  bot_settings: null,
60
60
  mcp_settings: null,
61
+ cli_settings: null,
61
62
  openAi_settings: null,
62
63
  dias_settings: null,
63
64
  assistant_settings: null,
@@ -1 +1 @@
1
- {"version":3,"file":"global-settings.const.js","sourceRoot":"","sources":["../../src/_collections/global-settings.const.ts"],"names":[],"mappings":";;;AAEA,uEAAoE;AAEpE,yFAAsF;AACtF,mFAAgF;AAEhF;;;GAGG;AACU,QAAA,qBAAqB,GAA0B;IAC1D,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,iBAAiB;IAChC,oBAAoB,EAAE,yCAAmB,CAAC,IAAI;IAC9C,qBAAqB,EAAE,2CAAoB,CAAC,IAAI;IAEhD,eAAe,EAAE,EAAE;IACnB,gBAAgB,EAAE,GAAG;IACrB,YAAY,EAAE,IAAA,6DAA6B,GAAE;IAE7C,oCAAoC,EAAE,IAAI;IAC1C,oBAAoB,EAAE,IAAI;IAE1B,+FAA+F;IAC/F,6FAA6F;IAC7F,oBAAoB,EAAE,SAAS;IAC/B,qFAAqF;IACrF,gFAAgF;IAChF,gBAAgB,EAAE,KAAK;IACvB,sBAAsB,EAAE,IAAI;IA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kB,EAAE,IAAI;QACxB,2GAA2G;QAC3G,0GAA0G;QAC1G,kGAAkG;QAClG,sBAAsB,EAAE,CAAC;QACzB,uBAAuB,EAAE,CAAC;QAC1B,oBAAoB,EAAE,IAAI;QAC1B,uBAAuB,EAAE,KAAK;QAC9B,sBAAsB,EAAE,CAAC;QACzB,QAAQ,EAAE,GAAG;QACb,WAAW,EAAE,KAAK;QAClB,8FAA8F;QAC9F,eAAe,EAAE,KAAK;QACtB,uBAAuB,EAAE,CAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,CAAE;KACzE;IACD,+FAA+F;IAC/F,aAAa,EAAE;QACb,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,IAAI;QACpB,eAAe,EAAE,GAAG;KACrB;IAED,+FAA+F;IAC/F,iGAAiG;IACjG,iGAAiG;IACjG,gGAAgG;IAChG,uBAAuB,EAAE;QACvB,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,MAAM;QACtB,qBAAqB,EAAE,MAAM;QAC7B,sBAAsB,EAAE,EAAE;QAC1B,iBAAiB,EAAE,OAAO;KAC3B;CACF,CAAC"}
1
+ {"version":3,"file":"global-settings.const.js","sourceRoot":"","sources":["../../src/_collections/global-settings.const.ts"],"names":[],"mappings":";;;AAEA,uEAAoE;AAEpE,yFAAsF;AACtF,mFAAgF;AAEhF;;;GAGG;AACU,QAAA,qBAAqB,GAA0B;IAC1D,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,iBAAiB;IAChC,oBAAoB,EAAE,yCAAmB,CAAC,IAAI;IAC9C,qBAAqB,EAAE,2CAAoB,CAAC,IAAI;IAEhD,eAAe,EAAE,EAAE;IACnB,gBAAgB,EAAE,GAAG;IACrB,YAAY,EAAE,IAAA,6DAA6B,GAAE;IAE7C,oCAAoC,EAAE,IAAI;IAC1C,oBAAoB,EAAE,IAAI;IAE1B,+FAA+F;IAC/F,6FAA6F;IAC7F,oBAAoB,EAAE,SAAS;IAC/B,qFAAqF;IACrF,gF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AE,EAAE;QAClB,eAAe,EAAE,GAAG;QACpB,kHAAkH;QAClH,iBAAiB,EAAE,IAAI;QACvB,kBAAkB,EAAE,IAAI;QACxB,2GAA2G;QAC3G,0GAA0G;QAC1G,kGAAkG;QAClG,sBAAsB,EAAE,CAAC;QACzB,uBAAuB,EAAE,CAAC;QAC1B,oBAAoB,EAAE,IAAI;QAC1B,uBAAuB,EAAE,KAAK;QAC9B,sBAAsB,EAAE,CAAC;QACzB,QAAQ,EAAE,GAAG;QACb,WAAW,EAAE,KAAK;QAClB,8FAA8F;QAC9F,eAAe,EAAE,KAAK;QACtB,uBAAuB,EAAE,CAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,CAAE;KACzE;IACD,+FAA+F;IAC/F,aAAa,EAAE;QACb,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,IAAI;QACpB,eAAe,EAAE,GAAG;KACrB;IAED,+FAA+F;IAC/F,iGAAiG;IACjG,iGAAiG;IACjG,gGAAgG;IAChG,uBAAuB,EAAE;QACvB,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,MAAM;QACtB,qBAAqB,EAAE,MAAM;QAC7B,sBAAsB,EAAE,EAAE;QAC1B,iBAAiB,EAAE,OAAO;KAC3B;CACF,CAAC"}
@@ -4,6 +4,7 @@ import { DyNTS_AppVersionHeader_Settings } from './app-version-header-settings.i
4
4
  import { DyNTS_Environment_Settings } from './environment-settings.interface';
5
5
  import { DyNTS_GlobalLog_Settings } from './global-log-settings.interface';
6
6
  import { DyNTS_SecurityHeaders_Settings } from './security-headers-settings.interface';
7
+ import type { DyCLI_Settings } from '../../_modules/cli/_models/interfaces/cli-settings.interface';
7
8
  import type { DyNTS_Mcp_Settings } from '../../_modules/mcp/_models/interfaces/mcp-settings.interface';
8
9
  /**
9
10
  *
@@ -118,6 +119,11 @@ export interface DyNTS_Global_Settings {
118
119
  * `null` (default) = every field takes its documented default ({@link DyNTS_Mcp_Settings}).
119
120
  */
120
121
  mcp_settings: DyNTS_Mcp_Settings | null;
122
+ /**
123
+ * CLI-wide defaults (HP-DOPL MP-4.2): the default output and the exit-code overrides of the `/cli` commands.
124
+ * `null` (default) = every field takes its documented default ({@link DyCLI_Settings}).
125
+ */
126
+ cli_settings: DyCLI_Settings | null;
121
127
  /**
122
128
  * this setting will set the openai settings
123
129
  * (this will be set in the {@link DyNTS_OAI_LLMChat_ServiceBase} constructor)
@@ -1 +1 @@
1
- {"version":3,"file":"global-settings.interface.d.ts","sourceRoot":"","sources":["../../../src/_models/interfaces/global-settings.interface.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAEvG;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB;IAEpC,YAAY,EAAE,0BAA0B,CAAC;IAEzC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,oBAAoB,EAAE,mBAAmB,CAAC;IAC1C;;OAEG;IACH,qBAAqB,EAAE,oBAAoB,CAAC;IAE5C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;OAEG;IACH,oCAAoC,EAAE,OAAO,CAAC;IAE9C;;OAEG;IACH,oBAAoB,EAAE,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C,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnD,wGAAwG;QACxG,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B,CAAC;IAEF;;;;;OAKG;IACH,aAAa,CAAC,EAAE;QACd,oFAAoF;QACpF,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,2FAA2F;QAC3F,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,sDAAsD;QACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH"}
1
+ {"version":3,"file":"global-settings.interface.d.ts","sourceRoot":"","sources":["../../../src/_models/interfaces/global-settings.interface.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAC;AACnG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAEvG;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB;IAEpC,YAAY,EAAE,0BAA0B,CAAC;IAEzC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,oBAAoB,EAAE,mBAAmB,CAAC;IAC1C;;OAEG;IACH,qBAAqB,EAAE,oBAAoB,CAAC;IAE5C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAE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QACxD,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,4EAA4E;QAC5E,qBAAqB,CAAC,EAAE,MAAM,CAAC;QAC/B,uFAAuF;QACvF,sBAAsB,CAAC,EAAE,MAAM,CAAC;QAChC;;;WAGG;QACH,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACnD,wGAAwG;QACxG,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B,CAAC;IAEF;;;;;OAKG;IACH,aAAa,CAAC,EAAE;QACd,oFAAoF;QACpF,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,2FAA2F;QAC3F,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,sDAAsD;QACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH"}
@@ -0,0 +1,52 @@
1
+ import { DyCLI_Envelope, DyCLI_EnvelopeError } from '../_models/interfaces/cli-envelope.interface';
2
+ /**
3
+ * Builds and writes the result envelope of a CLI command (HP-DOPL MP-4.3) — the organizer `fo` shape
4
+ * `{ ok, action, requestId, elapsedMs, result | error }`, so an agent or a script reads every Dynamo CLI the same way.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * const envelope: DyCLI_Envelope = DyCLI_Envelope_Util.failure({ action: 'tasks.list', requestId, startedAt, error });
9
+ * process.stderr.write(DyCLI_Envelope_Util.stringify(envelope, pretty));
10
+ * ```
11
+ */
12
+ export declare class DyCLI_Envelope_Util {
13
+ /**
14
+ * The envelope of a successful command.
15
+ * @param set.action - the command name
16
+ * @param set.requestId - the id of the call
17
+ * @param set.startedAt - `Date.now()` at the start of the call
18
+ * @param set.result - the result
19
+ */
20
+ static success(set: {
21
+ action: string;
22
+ requestId: string;
23
+ startedAt: number;
24
+ result: unknown;
25
+ }): DyCLI_Envelope;
26
+ /**
27
+ * The envelope of a failed command.
28
+ * @param set.action - the command name
29
+ * @param set.requestId - the id of the call
30
+ * @param set.startedAt - `Date.now()` at the start of the call
31
+ * @param set.error - the failure
32
+ */
33
+ static failure(set: {
34
+ action: string;
35
+ requestId: string;
36
+ startedAt: number;
37
+ error: unknown;
38
+ }): DyCLI_Envelope;
39
+ /**
40
+ * The envelope error of a failure: a coded `DyFM_Error` keeps its code, its user message and its
41
+ * `additionalContent.suggestion`; a commander error keeps its code; anything else is `CLI_ERROR` with its message.
42
+ * @param error - the failure
43
+ */
44
+ static errorOf(error: unknown): DyCLI_EnvelopeError;
45
+ /**
46
+ * The text of an envelope: one JSON line, or indented with `pretty`.
47
+ * @param envelope - the envelope
48
+ * @param pretty - indent the JSON
49
+ */
50
+ static stringify(envelope: DyCLI_Envelope, pretty?: boolean): string;
51
+ }
52
+ //# sourceMappingURL=cli-envelope.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-envelope.util.d.ts","sourceRoot":"","sources":["../../../../src/_modules/cli/_collections/cli-envelope.util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAGnG;;;;;;;;;GASG;AACH,qBAAa,mBAAmB;IAC9B;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE,GAAG,cAAc;IAO9G;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,GAAG,cAAc;IAO7G;;;;OAIG;IACH,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB;IAyBnD;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;CAGrE"}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DyCLI_Envelope_Util = void 0;
4
+ const fsm_dynamo_1 = require("@futdevpro/fsm-dynamo");
5
+ /**
6
+ * Builds and writes the result envelope of a CLI command (HP-DOPL MP-4.3) — the organizer `fo` shape
7
+ * `{ ok, action, requestId, elapsedMs, result | error }`, so an agent or a script reads every Dynamo CLI the same way.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const envelope: DyCLI_Envelope = DyCLI_Envelope_Util.failure({ action: 'tasks.list', requestId, startedAt, error });
12
+ * process.stderr.write(DyCLI_Envelope_Util.stringify(envelope, pretty));
13
+ * ```
14
+ */
15
+ class DyCLI_Envelope_Util {
16
+ /**
17
+ * The envelope of a successful command.
18
+ * @param set.action - the command name
19
+ * @param set.requestId - the id of the call
20
+ * @param set.startedAt - `Date.now()` at the start of the call
21
+ * @param set.result - the result
22
+ */
23
+ static success(set) {
24
+ return {
25
+ ok: true, action: set.action, requestId: set.requestId, elapsedMs: Date.now() - set.startedAt,
26
+ result: set.result === undefined ? null : set.result,
27
+ };
28
+ }
29
+ /**
30
+ * The envelope of a failed command.
31
+ * @param set.action - the command name
32
+ * @param set.requestId - the id of the call
33
+ * @param set.startedAt - `Date.now()` at the start of the call
34
+ * @param set.error - the failure
35
+ */
36
+ static failure(set) {
37
+ return {
38
+ ok: false, action: set.action, requestId: set.requestId, elapsedMs: Date.now() - set.startedAt,
39
+ error: DyCLI_Envelope_Util.errorOf(set.error),
40
+ };
41
+ }
42
+ /**
43
+ * The envelope error of a failure: a coded `DyFM_Error` keeps its code, its user message and its
44
+ * `additionalContent.suggestion`; a commander error keeps its code; anything else is `CLI_ERROR` with its message.
45
+ * @param error - the failure
46
+ */
47
+ static errorOf(error) {
48
+ if (error instanceof fsm_dynamo_1.DyFM_Error) {
49
+ // the operation guardrails put their hint here (e.g. "Fetch the entity and send its current etag as ifMatch.")
50
+ const details = error.additionalContent;
51
+ const envelopeError = {
52
+ code: error._errorCode || 'CLI_ERROR',
53
+ message: error.__userMessage || error._message || 'The command failed.',
54
+ };
55
+ if (typeof details?.suggestion === 'string') {
56
+ envelopeError.nextStep = details.suggestion;
57
+ }
58
+ return envelopeError;
59
+ }
60
+ const failure = (error ?? {});
61
+ return {
62
+ code: typeof failure.code === 'string' && failure.code ? failure.code : 'CLI_ERROR',
63
+ message: typeof failure.message === 'string' && failure.message.trim() ?
64
+ failure.message.trim() : 'The command failed.',
65
+ };
66
+ }
67
+ /**
68
+ * The text of an envelope: one JSON line, or indented with `pretty`.
69
+ * @param envelope - the envelope
70
+ * @param pretty - indent the JSON
71
+ */
72
+ static stringify(envelope, pretty) {
73
+ return `${JSON.stringify(envelope, null, pretty ? 2 : undefined)}\n`;
74
+ }
75
+ }
76
+ exports.DyCLI_Envelope_Util = DyCLI_Envelope_Util;
77
+ //# sourceMappingURL=cli-envelope.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-envelope.util.js","sourceRoot":"","sources":["../../../../src/_modules/cli/_collections/cli-envelope.util.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AAKnD;;;;;;;;;GASG;AACH,MAAa,mBAAmB;IAC9B;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,CAAC,GAA8E;QAC3F,OAAO;YACL,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,CAAC,SAAS;YAC7F,MAAM,EAAE,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM;SACrD,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,CAAC,GAA6E;QAC1F,OAAO;YACL,EAAE,EA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G,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC;IACvE,CAAC;CACF;AAnED,kDAmEC"}
@@ -0,0 +1,37 @@
1
+ import { DyFM_Error, DyFM_Operation_Settings } from '@futdevpro/fsm-dynamo';
2
+ import { DyCLI_Flag, DyCLI_Flag_Settings } from '../_models/interfaces/cli-flag.interface';
3
+ /** Flags every command has from commander itself — a command flag can not take them. */
4
+ export declare const DyCLI_reservedFlags: string[];
5
+ /**
6
+ * The flags of a CLI command (HP-DOPL MP-4.2): generation from the operation input schema, name validation and the
7
+ * conversion of the command-line text to typed values. Used by `DyCLI_Command_Params`.
8
+ */
9
+ export declare class DyCLI_Flag_Util {
10
+ /**
11
+ * Converts the raw text of a flag to its value.
12
+ * @param flag - the flag
13
+ * @param raw - the text from the command line
14
+ * @throws 400 `DyNTS-CLP-VAL` when the text is not a valid value of the flag
15
+ */
16
+ static convert(flag: DyCLI_Flag, raw: string): unknown;
17
+ /** The commander attribute of a long flag (commander's own camel-casing: `note-id` → `noteId`). */
18
+ static attributeOf(flag: string): string;
19
+ /**
20
+ * The flags of a command: generated from the operation schema, overridden and extended by `flags`.
21
+ * @param operation - the operation (absent for a local command)
22
+ * @param overrides - the per-parameter flag settings
23
+ * @param invalid - builds the construction error of the calling command
24
+ */
25
+ static resolveFlags(operation: DyFM_Operation_Settings<unknown, unknown[], unknown> | undefined, overrides: {
26
+ [param: string]: DyCLI_Flag_Settings;
27
+ }, invalid: (code: string, reason: string) => DyFM_Error): DyCLI_Flag[];
28
+ /** Validates the long and short flag names: format, reserved names, duplicates. */
29
+ private static checkFlagNames;
30
+ /** The flag value kind of a schema property. */
31
+ private static typeOf;
32
+ /** `noteId` → `note-id`. */
33
+ private static kebabOf;
34
+ /** Sets only the defined optional fields, so the resolved flag carries no `undefined` keys. */
35
+ private static assign;
36
+ }
37
+ //# sourceMappingURL=cli-flag.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-flag.util.d.ts","sourceRoot":"","sources":["../../../../src/_modules/cli/_collections/cli-flag.util.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAA6B,uBAAuB,EAC/D,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAQ3F,wFAAwF;AACxF,eAAO,MAAM,mBAAmB,EAAE,MAAM,EAA0B,CAAC;AAEnE;;;GAGG;AACH,qBAAa,eAAe;IAC1B;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO;IA0CtD,mGAAmG;IACnG,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAIxC;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CACjB,SAAS,EAAE,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,GAAG,SAAS,EAC3E,SAAS,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,mBAAmB,CAAA;KAAE,EACnD,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,UAAU,GACpD,UAAU,EAAE;IAyDf,mFAAmF;IACnF,OAAO,CAAC,MAAM,CAAC,cAAc;IAsC7B,gDAAgD;IAChD,OAAO,CAAC,MAAM,CAAC,MAAM;IAerB,4BAA4B;IAC5B,OAAO,CAAC,MAAM,CAAC,OAAO;IAItB,+FAA+F;IAC/F,OAAO,CAAC,MAAM,CAAC,MAAM;CAMtB"}
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DyCLI_Flag_Util = exports.DyCLI_reservedFlags = void 0;
4
+ const fsm_dynamo_1 = require("@futdevpro/fsm-dynamo");
5
+ const global_settings_const_1 = require("../../../_collections/global-settings.const");
6
+ const cli_flag_value_type_enum_1 = require("../_enums/cli-flag-value.type-enum");
7
+ /** Long flag names: kebab-case. */
8
+ const DyCLI_flagName = /^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;
9
+ /** A finite decimal number — the same notations the REST adapter accepts. */
10
+ const DyCLI_decimal = /^[-+]?(\d+\.?\d*|\.\d+)([eE][-+]?\d+)?$/;
11
+ /** Flags every command has from commander itself — a command flag can not take them. */
12
+ exports.DyCLI_reservedFlags = ['help', 'version'];
13
+ /**
14
+ * The flags of a CLI command (HP-DOPL MP-4.2): generation from the operation input schema, name validation and the
15
+ * conversion of the command-line text to typed values. Used by `DyCLI_Command_Params`.
16
+ */
17
+ class DyCLI_Flag_Util {
18
+ /**
19
+ * Converts the raw text of a flag to its value.
20
+ * @param flag - the flag
21
+ * @param raw - the text from the command line
22
+ * @throws 400 `DyNTS-CLP-VAL` when the text is not a valid value of the flag
23
+ */
24
+ static convert(flag, raw) {
25
+ const refuse = (expected) => new fsm_dynamo_1.DyFM_Error({
26
+ status: 400,
27
+ errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-CLP-VAL`,
28
+ message: `--${flag.flag} must be ${expected} (got: ${JSON.stringify(raw)})`,
29
+ userMessage: `--${flag.flag} must be ${expected} (got: ${JSON.stringify(raw)})`,
30
+ additionalContent: { flag: flag.flag },
31
+ });
32
+ let value = raw;
33
+ if (flag.parse) {
34
+ value = flag.parse(raw);
35
+ }
36
+ else if (flag.type === cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.number ||
37
+ (flag.type === cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.list && flag.itemType === cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.number)) {
38
+ if (!DyCLI_decimal.test(raw.trim()) || !Number.isFinite(Number(raw))) {
39
+ throw refuse('a finite decimal number');
40
+ }
41
+ value = Number(raw);
42
+ }
43
+ else if (flag.type === cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.date) {
44
+ if (Number.isNaN(new Date(raw).getTime())) {
45
+ throw refuse('an ISO date-time');
46
+ }
47
+ }
48
+ else if (flag.type === cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.json) {
49
+ try {
50
+ value = JSON.parse(raw);
51
+ }
52
+ catch {
53
+ throw refuse('JSON');
54
+ }
55
+ if (value === null || typeof value !== 'object') {
56
+ throw refuse('a JSON object or array');
57
+ }
58
+ }
59
+ if (flag.enum && !flag.enum.includes(value)) {
60
+ throw refuse(`one of ${flag.enum.join(', ')}`);
61
+ }
62
+ return value;
63
+ }
64
+ /** The commander attribute of a long flag (commander's own camel-casing: `note-id` → `noteId`). */
65
+ static attributeOf(flag) {
66
+ return flag.split('-').reduce((name, word) => name + word[0].toUpperCase() + word.slice(1));
67
+ }
68
+ /**
69
+ * The flags of a command: generated from the operation schema, overridden and extended by `flags`.
70
+ * @param operation - the operation (absent for a local command)
71
+ * @param overrides - the per-parameter flag settings
72
+ * @param invalid - builds the construction error of the calling command
73
+ */
74
+ static resolveFlags(operation, overrides, invalid) {
75
+ const schema = operation ?
76
+ fsm_dynamo_1.DyFM_OperationSchema_Util.inputSchema(operation) : { type: 'object', properties: {} };
77
+ const required = schema.required ?? [];
78
+ const params = [...Object.keys(schema.properties ?? {})];
79
+ Object.keys(overrides).filter((param) => !params.includes(param))
80
+ .forEach((param) => {
81
+ params.push(param);
82
+ });
83
+ const flags = params.map((param) => {
84
+ const property = schema.properties?.[param];
85
+ const override = overrides[param] ?? {};
86
+ const type = override.type ?? DyCLI_Flag_Util.typeOf(property);
87
+ if (!Object.values(cli_flag_value_type_enum_1.DyCLI_FlagValue_Type).includes(type)) {
88
+ throw invalid('DyNTS-CLP-TYP', `flag of "${param}" needs a known type (an extra flag must declare it)`);
89
+ }
90
+ ['parse'].forEach((name) => {
91
+ if (override[name] !== undefined && typeof override[name] !== 'function') {
92
+ throw invalid('DyNTS-CLP-HOK', `flags.${param}.${name} must be a function`);
93
+ }
94
+ });
95
+ const enumValues = override.enum ?? property?.enum;
96
+ if (enumValues !== undefined && !Array.isArray(enumValues)) {
97
+ throw invalid('DyNTS-CLP-ENM', `flags.${param}.enum must be an array`);
98
+ }
99
+ const flag = {
100
+ param: param,
101
+ flag: override.flag ?? DyCLI_Flag_Util.kebabOf(param),
102
+ description: override.description ?? property?.description ?? param,
103
+ type: type,
104
+ required: override.required ?? required.includes(param),
105
+ };
106
+ DyCLI_Flag_Util.assign(flag, {
107
+ short: override.short,
108
+ itemType: type === cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.list ?
109
+ (property?.items?.type === 'number' ? cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.number : cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.string) : undefined,
110
+ enum: enumValues ? [...enumValues] : undefined,
111
+ default: override.default ?? property?.default,
112
+ parse: override.parse,
113
+ });
114
+ return flag;
115
+ });
116
+ DyCLI_Flag_Util.checkFlagNames(flags, invalid);
117
+ return flags;
118
+ }
119
+ /** Validates the long and short flag names: format, reserved names, duplicates. */
120
+ static checkFlagNames(flags, invalid) {
121
+ const longs = new Set();
122
+ const shorts = new Set();
123
+ flags.forEach((flag) => {
124
+ if (typeof flag.flag !== 'string' || !DyCLI_flagName.test(flag.flag)) {
125
+ throw invalid('DyNTS-CLP-FLG', `flag of "${flag.param}" must be kebab-case (got: ${JSON.stringify(flag.flag)})`);
126
+ }
127
+ if (exports.DyCLI_reservedFlags.includes(flag.flag)) {
128
+ throw invalid('DyNTS-CLP-RSV', `--${flag.flag} is reserved; set flags.${flag.param}.flag to another name`);
129
+ }
130
+ // `--x` and its negated `--no-x` share one attribute, so they collide as well
131
+ const attribute = DyCLI_Flag_Util.attributeOf(flag.flag.replace(/^no-/, ''));
132
+ if (longs.has(attribute)) {
133
+ throw invalid('DyNTS-CLP-DUP', `two flags use --${flag.flag}`);
134
+ }
135
+ longs.add(attribute);
136
+ if (flag.short === undefined) {
137
+ return;
138
+ }
139
+ if (typeof flag.short !== 'string' || !/^[A-Za-z]$/.test(flag.short) || flag.short === 'h' || flag.short === 'V') {
140
+ throw invalid('DyNTS-CLP-SHT', `short flag of "${flag.param}" must be one letter, not -h or -V`);
141
+ }
142
+ if (shorts.has(flag.short)) {
143
+ throw invalid('DyNTS-CLP-DUP', `two flags use -${flag.short}`);
144
+ }
145
+ shorts.add(flag.short);
146
+ });
147
+ }
148
+ /** The flag value kind of a schema property. */
149
+ static typeOf(property) {
150
+ if (!property) {
151
+ return undefined;
152
+ }
153
+ if (property.format === 'date-time') {
154
+ return cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.date;
155
+ }
156
+ return {
157
+ string: cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.string, number: cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.number, integer: cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.number,
158
+ boolean: cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.boolean, array: cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.list,
159
+ }[property.type] ?? cli_flag_value_type_enum_1.DyCLI_FlagValue_Type.json;
160
+ }
161
+ /** `noteId` → `note-id`. */
162
+ static kebabOf(param) {
163
+ return param.replace(/([a-z0-9])([A-Z])/g, '$1-$2').replace(/_/g, '-').toLowerCase();
164
+ }
165
+ /** Sets only the defined optional fields, so the resolved flag carries no `undefined` keys. */
166
+ static assign(flag, optional) {
167
+ Object.entries(optional).filter(([, value]) => value !== undefined)
168
+ .forEach(([key, value]) => {
169
+ flag[key] = value;
170
+ });
171
+ }
172
+ }
173
+ exports.DyCLI_Flag_Util = DyCLI_Flag_Util;
174
+ //# sourceMappingURL=cli-flag.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-flag.util.js","sourceRoot":"","sources":["../../../../src/_modules/cli/_collections/cli-flag.util.ts"],"names":[],"mappings":";;;AAAA,sDAE+B;AAE/B,uFAAoF;AACpF,iFAA0E;AAI1E,mCAAmC;AACnC,MAAM,cAAc,GAAW,+BAA+B,C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,oBAAoB,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;IACvF,CAAC;IAED,+FAA+F;IACvF,MAAM,CAAC,MAAM,CAAC,IAAgB,EAAE,QAA6B;QACnE,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAE,AAAD,EAAG,KAAK,CAAqB,EAAW,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC;aAC9F,OAAO,CAAC,CAAC,CAAE,GAAG,EAAE,KAAK,CAAqB,EAAQ,EAAE;YAClD,IAA8C,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QAC/D,CAAC,CAAC,CAAC;IACP,CAAC;CACF;AA5LD,0CA4LC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Process exit codes of a Dynamo CLI command (HP-DOPL MP-4.2). The values follow the organizer `fo` CLI, the pattern the
3
+ * fleet CLIs copy (`ok 0 · operation error 1 · usage 2 · auth 10 · network 11 · remote 12`); a command may override
4
+ * them with `DyCLI_Command_Params.exitCodes`.
5
+ */
6
+ export declare enum DyCLI_ExitCode_Type {
7
+ /** Success. */
8
+ ok = 0,
9
+ /** The command failed without an HTTP-like status (a local error). */
10
+ operationError = 1,
11
+ /** Invalid arguments: a parse error, or a 400/404/422 answer. */
12
+ usage = 2,
13
+ /** Not authenticated or not allowed: a 401/403 answer. */
14
+ auth = 10,
15
+ /** The server could not be reached. */
16
+ network = 11,
17
+ /** The server answered with any other error status. */
18
+ remote = 12
19
+ }
20
+ //# sourceMappingURL=cli-exit-code.type-enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-exit-code.type-enum.d.ts","sourceRoot":"","sources":["../../../../src/_modules/cli/_enums/cli-exit-code.type-enum.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oBAAY,mBAAmB;IAC7B,eAAe;IACf,EAAE,IAAI;IACN,sEAAsE;IACtE,cAAc,IAAI;IAClB,iEAAiE;IACjE,KAAK,IAAI;IACT,0DAA0D;IAC1D,IAAI,KAAK;IACT,uCAAuC;IACvC,OAAO,KAAK;IACZ,uDAAuD;IACvD,MAAM,KAAK;CACZ"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DyCLI_ExitCode_Type = void 0;
4
+ /**
5
+ * Process exit codes of a Dynamo CLI command (HP-DOPL MP-4.2). The values follow the organizer `fo` CLI, the pattern the
6
+ * fleet CLIs copy (`ok 0 · operation error 1 · usage 2 · auth 10 · network 11 · remote 12`); a command may override
7
+ * them with `DyCLI_Command_Params.exitCodes`.
8
+ */
9
+ var DyCLI_ExitCode_Type;
10
+ (function (DyCLI_ExitCode_Type) {
11
+ /** Success. */
12
+ DyCLI_ExitCode_Type[DyCLI_ExitCode_Type["ok"] = 0] = "ok";
13
+ /** The command failed without an HTTP-like status (a local error). */
14
+ DyCLI_ExitCode_Type[DyCLI_ExitCode_Type["operationError"] = 1] = "operationError";
15
+ /** Invalid arguments: a parse error, or a 400/404/422 answer. */
16
+ DyCLI_ExitCode_Type[DyCLI_ExitCode_Type["usage"] = 2] = "usage";
17
+ /** Not authenticated or not allowed: a 401/403 answer. */
18
+ DyCLI_ExitCode_Type[DyCLI_ExitCode_Type["auth"] = 10] = "auth";
19
+ /** The server could not be reached. */
20
+ DyCLI_ExitCode_Type[DyCLI_ExitCode_Type["network"] = 11] = "network";
21
+ /** The server answered with any other error status. */
22
+ DyCLI_ExitCode_Type[DyCLI_ExitCode_Type["remote"] = 12] = "remote";
23
+ })(DyCLI_ExitCode_Type || (exports.DyCLI_ExitCode_Type = DyCLI_ExitCode_Type = {}));
24
+ //# sourceMappingURL=cli-exit-code.type-enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-exit-code.type-enum.js","sourceRoot":"","sources":["../../../../src/_modules/cli/_enums/cli-exit-code.type-enum.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,IAAY,mBAaX;AAbD,WAAY,mBAAmB;IAC7B,eAAe;IACf,yDAAM,CAAA;IACN,sEAAsE;IACtE,iFAAkB,CAAA;IAClB,iEAAiE;IACjE,+DAAS,CAAA;IACT,0DAA0D;IAC1D,8DAAS,CAAA;IACT,uCAAuC;IACvC,oEAAY,CAAA;IACZ,uDAAuD;IACvD,kEAAW,CAAA;AACb,CAAC,EAbW,mBAAmB,mCAAnB,mBAAmB,QAa9B"}
@@ -0,0 +1,16 @@
1
+ /** The value kind of a CLI flag — decides how the text from the command line is converted (HP-DOPL MP-4.2). */
2
+ export declare enum DyCLI_FlagValue_Type {
3
+ /** Any text. */
4
+ string = "string",
5
+ /** A finite decimal number (`12`, `-2.5`, `1e3`); `Infinity`, hex and binary notations are refused. */
6
+ number = "number",
7
+ /** A switch without a value (`--done`); a flag whose default is `true` is negated (`--no-done`). */
8
+ boolean = "boolean",
9
+ /** An ISO date-time text, kept as text (the same value an MCP call sends). */
10
+ date = "date",
11
+ /** A repeatable flag collecting its values into an array (`--tag a --tag b`). */
12
+ list = "list",
13
+ /** A JSON object or array (`--location '{"city":"Pécs"}'`). */
14
+ json = "json"
15
+ }
16
+ //# sourceMappingURL=cli-flag-value.type-enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-flag-value.type-enum.d.ts","sourceRoot":"","sources":["../../../../src/_modules/cli/_enums/cli-flag-value.type-enum.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAC/G,oBAAY,oBAAoB;IAC9B,gBAAgB;IAChB,MAAM,WAAW;IACjB,uGAAuG;IACvG,MAAM,WAAW;IACjB,oGAAoG;IACpG,OAAO,YAAY;IACnB,8EAA8E;IAC9E,IAAI,SAAS;IACb,iFAAiF;IACjF,IAAI,SAAS;IACb,+DAA+D;IAC/D,IAAI,SAAS;CACd"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DyCLI_FlagValue_Type = void 0;
4
+ /** The value kind of a CLI flag — decides how the text from the command line is converted (HP-DOPL MP-4.2). */
5
+ var DyCLI_FlagValue_Type;
6
+ (function (DyCLI_FlagValue_Type) {
7
+ /** Any text. */
8
+ DyCLI_FlagValue_Type["string"] = "string";
9
+ /** A finite decimal number (`12`, `-2.5`, `1e3`); `Infinity`, hex and binary notations are refused. */
10
+ DyCLI_FlagValue_Type["number"] = "number";
11
+ /** A switch without a value (`--done`); a flag whose default is `true` is negated (`--no-done`). */
12
+ DyCLI_FlagValue_Type["boolean"] = "boolean";
13
+ /** An ISO date-time text, kept as text (the same value an MCP call sends). */
14
+ DyCLI_FlagValue_Type["date"] = "date";
15
+ /** A repeatable flag collecting its values into an array (`--tag a --tag b`). */
16
+ DyCLI_FlagValue_Type["list"] = "list";
17
+ /** A JSON object or array (`--location '{"city":"Pécs"}'`). */
18
+ DyCLI_FlagValue_Type["json"] = "json";
19
+ })(DyCLI_FlagValue_Type || (exports.DyCLI_FlagValue_Type = DyCLI_FlagValue_Type = {}));
20
+ //# sourceMappingURL=cli-flag-value.type-enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-flag-value.type-enum.js","sourceRoot":"","sources":["../../../../src/_modules/cli/_enums/cli-flag-value.type-enum.ts"],"names":[],"mappings":";;;AAAA,+GAA+G;AAC/G,IAAY,oBAaX;AAbD,WAAY,oBAAoB;IAC9B,gBAAgB;IAChB,yCAAiB,CAAA;IACjB,uGAAuG;IACvG,yCAAiB,CAAA;IACjB,oGAAoG;IACpG,2CAAmB,CAAA;IACnB,8EAA8E;IAC9E,qCAAa,CAAA;IACb,iFAAiF;IACjF,qCAAa,CAAA;IACb,+DAA+D;IAC/D,qCAAa,CAAA;AACf,CAAC,EAbW,oBAAoB,oCAApB,oBAAoB,QAa/B"}
@@ -0,0 +1,8 @@
1
+ /** How a Dynamo CLI command prints its result (HP-DOPL MP-4.2). */
2
+ export declare enum DyCLI_Output_Type {
3
+ /** The JSON result envelope — for scripts and agents (default). */
4
+ json = "json",
5
+ /** Human-readable text, through the command's `formatHuman`. */
6
+ human = "human"
7
+ }
8
+ //# sourceMappingURL=cli-output.type-enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-output.type-enum.d.ts","sourceRoot":"","sources":["../../../../src/_modules/cli/_enums/cli-output.type-enum.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,oBAAY,iBAAiB;IAC3B,mEAAmE;IACnE,IAAI,SAAS;IACb,gEAAgE;IAChE,KAAK,UAAU;CAChB"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DyCLI_Output_Type = void 0;
4
+ /** How a Dynamo CLI command prints its result (HP-DOPL MP-4.2). */
5
+ var DyCLI_Output_Type;
6
+ (function (DyCLI_Output_Type) {
7
+ /** The JSON result envelope — for scripts and agents (default). */
8
+ DyCLI_Output_Type["json"] = "json";
9
+ /** Human-readable text, through the command's `formatHuman`. */
10
+ DyCLI_Output_Type["human"] = "human";
11
+ })(DyCLI_Output_Type || (exports.DyCLI_Output_Type = DyCLI_Output_Type = {}));
12
+ //# sourceMappingURL=cli-output.type-enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-output.type-enum.js","sourceRoot":"","sources":["../../../../src/_modules/cli/_enums/cli-output.type-enum.ts"],"names":[],"mappings":";;;AAAA,mEAAmE;AACnE,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,mEAAmE;IACnE,kCAAa,CAAA;IACb,gEAAgE;IAChE,oCAAe,CAAA;AACjB,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B"}