@futdevpro/nts-dynamo 1.15.304 → 1.15.306

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.
@@ -0,0 +1,25 @@
1
+ import type * as Commander from 'commander';
2
+ /** The supported `commander` range — kept in sync with `peerDependencies` (measured fleet: 12.1 – 14.x). */
3
+ export declare const DyCLI_commanderRange: string;
4
+ /**
5
+ * Lazy access to `commander` (HP-DOPL MP-4.1, D-5): `commander` is an OPTIONAL peer of `@futdevpro/nts-dynamo`, so
6
+ * it is never required in a module body — a server that only imports the root package must not need it. The `/cli`
7
+ * subpath loads it here, at the place of use; a missing package becomes the coded `DyNTS-OPT-MIS` error that says
8
+ * what to install.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const commander: typeof Commander = await DyCLI_Commander_Util.load();
13
+ * const program: Commander.Command = new commander.Command('organizer');
14
+ * ```
15
+ */
16
+ export declare class DyCLI_Commander_Util {
17
+ /**
18
+ * Loads `commander`.
19
+ * @throws 501 `DyNTS-OPT-MIS` (not installed) · `DyNTS-OPT-LDF` (installed, but failed to load)
20
+ */
21
+ static load(): Promise<typeof Commander>;
22
+ /** Imports `commander` — a static seam, so a spec can simulate a missing package. */
23
+ private static importCommander;
24
+ }
25
+ //# sourceMappingURL=cli-commander.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-commander.util.d.ts","sourceRoot":"","sources":["../../../../src/_modules/cli/_collections/cli-commander.util.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,SAAS,MAAM,WAAW,CAAC;AAK5C,4GAA4G;AAC5G,eAAO,MAAM,oBAAoB,EAAE,MAAuB,CAAC;AAE3D;;;;;;;;;;;GAWG;AACH,qBAAa,oBAAoB;IAC/B;;;OAGG;WACU,IAAI,IAAI,OAAO,CAAC,OAAO,SAAS,CAAC;IAO9C,qFAAqF;IACrF,OAAO,CAAC,MAAM,CAAC,eAAe,CAEyB;CACxD"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.DyCLI_Commander_Util = exports.DyCLI_commanderRange = void 0;
37
+ const optional_peer_util_1 = require("../../../_collections/optional-peer.util");
38
+ /** The supported `commander` range — kept in sync with `peerDependencies` (measured fleet: 12.1 – 14.x). */
39
+ exports.DyCLI_commanderRange = '>=12.1.0 <15';
40
+ /**
41
+ * Lazy access to `commander` (HP-DOPL MP-4.1, D-5): `commander` is an OPTIONAL peer of `@futdevpro/nts-dynamo`, so
42
+ * it is never required in a module body — a server that only imports the root package must not need it. The `/cli`
43
+ * subpath loads it here, at the place of use; a missing package becomes the coded `DyNTS-OPT-MIS` error that says
44
+ * what to install.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const commander: typeof Commander = await DyCLI_Commander_Util.load();
49
+ * const program: Commander.Command = new commander.Command('organizer');
50
+ * ```
51
+ */
52
+ class DyCLI_Commander_Util {
53
+ /**
54
+ * Loads `commander`.
55
+ * @throws 501 `DyNTS-OPT-MIS` (not installed) · `DyNTS-OPT-LDF` (installed, but failed to load)
56
+ */
57
+ static async load() {
58
+ return optional_peer_util_1.DyNTS_OptionalPeer_Util.load({
59
+ packageName: 'commander', range: exports.DyCLI_commanderRange, feature: 'the Dynamo CLI',
60
+ importer: DyCLI_Commander_Util.importCommander,
61
+ });
62
+ }
63
+ /** Imports `commander` — a static seam, so a spec can simulate a missing package. */
64
+ static importCommander =
65
+ // eslint-disable-next-line @futdevpro/dynamo/no-dynamic-imports
66
+ () => Promise.resolve().then(() => __importStar(require('commander')));
67
+ }
68
+ exports.DyCLI_Commander_Util = DyCLI_Commander_Util;
69
+ //# sourceMappingURL=cli-commander.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-commander.util.js","sourceRoot":"","sources":["../../../../src/_modules/cli/_collections/cli-commander.util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,iFAAmF;AAGnF,4GAA4G;AAC/F,QAAA,oBAAoB,GAAW,cAAc,CAAC;AAE3D;;;;;;;;;;;GAWG;AACH,MAAa,oBAAoB;IAC/B;;;OAGG;IACH,MAAM,CAAC,KAAK,CAAC,IAAI;QACf,OAAO,4CAAuB,CAAC,IAAI,CAAC;YAClC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,4BAAoB,EAAE,OAAO,EAAE,gBAAgB;YAChF,QAAQ,EAAE,oBAAoB,CAAC,eAAe;SAC/C,CAAC,CAAC;IACL,CAAC;IAED,qFAAqF;IAC7E,MAAM,CAAC,eAAe;IAC5B,gEAAgE;IAChE,GAA8B,EAAE,mDAAQ,WAAW,GAAC,CAAC;;AAfzD,oDAgBC"}
@@ -0,0 +1,2 @@
1
+ export * from './_collections/cli-commander.util';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_modules/cli/index.ts"],"names":[],"mappings":"AAOA,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // CLI MODULE (HP-DOPL MP-4, D-4/D-5) — `@futdevpro/nts-dynamo/cli`: CLI commands from the same operation settings as
3
+ // the REST endpoints and the MCP tools. `commander` is an OPTIONAL peer, loaded lazily; the root `index.ts` does NOT
4
+ // re-export this module, so a server never needs `commander`.
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const tslib_1 = require("tslib");
7
+ // COLLECTIONS
8
+ tslib_1.__exportStar(require("./_collections/cli-commander.util"), exports);
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/_modules/cli/index.ts"],"names":[],"mappings":";AAEA,qHAAqH;AACrH,qHAAqH;AACrH,8DAA8D;;;AAE9D,cAAc;AACd,4EAAkD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@futdevpro/nts-dynamo",
3
- "version": "01.15.304",
3
+ "version": "01.15.306",
4
4
  "description": "Dynamic NodeTS (NodeJS-Typescript), MongoDB Backend System Framework by Future Development Program Ltd.",
5
5
  "DyBu_settings": {
6
6
  "packageType": "server-package",
@@ -203,6 +203,12 @@
203
203
  "types": "./build/_modules/mcp/index.d.ts",
204
204
  "typings": "./build/_modules/mcp/index.d.ts"
205
205
  },
206
+ "./cli": {
207
+ "default": "./build/_modules/cli/index.js",
208
+ "module": "./build/_modules/cli/index.js",
209
+ "types": "./build/_modules/cli/index.d.ts",
210
+ "typings": "./build/_modules/cli/index.d.ts"
211
+ },
206
212
  "./admin-auth": {
207
213
  "default": "./build/_modules/admin-auth/index.js",
208
214
  "module": "./build/_modules/admin-auth/index.js",
@@ -378,6 +384,9 @@
378
384
  "mcp": [
379
385
  "build/_modules/mcp/index.d.ts"
380
386
  ],
387
+ "cli": [
388
+ "build/_modules/cli/index.d.ts"
389
+ ],
381
390
  "admin-auth": [
382
391
  "build/_modules/admin-auth/index.d.ts"
383
392
  ],
@@ -452,6 +461,7 @@
452
461
  "@anthropic-ai/sdk": "~0.39.0",
453
462
  "@modelcontextprotocol/sdk": "~1.29.0",
454
463
  "better-sqlite3": "~12.4.1",
464
+ "commander": ">=12.1.0 <15",
455
465
  "@futdevpro/fsm-dynamo": ">=1.20.64 <2",
456
466
  "@types/express": "4.17.21",
457
467
  "@types/geoip-lite": "~1.4.4",
@@ -479,6 +489,9 @@
479
489
  "better-sqlite3": {
480
490
  "optional": true
481
491
  },
492
+ "commander": {
493
+ "optional": true
494
+ },
482
495
  "discord.js": {
483
496
  "optional": true
484
497
  },
@@ -510,9 +523,11 @@
510
523
  "@modelcontextprotocol/sdk": "~1.29.0",
511
524
  "@types/better-sqlite3": "~7.6.13",
512
525
  "better-sqlite3": "~12.4.1",
526
+ "commander": "~14.0.3",
513
527
  "decimal.js": "10.6.0",
514
528
  "discord.js": "~14.24.2",
515
529
  "eslint": "~9.39.5",
530
+ "express": "~4.22.2",
516
531
  "eslint-plugin-import": "^2.29.0",
517
532
  "eslint-plugin-jsdoc": "^48.0.0",
518
533
  "eslint-plugin-max-params-no-constructor": "^0.0.4",