@memberjunction/cli-core 6.1.0-edge.5 → 6.1.0-edge.7
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.
|
@@ -9,7 +9,7 @@ import { type IMJCLIRuntimeHost, type MJCLIResult, type PluginUsage } from './ty
|
|
|
9
9
|
* shared {@link BaseCLIPlugin.run} wires up the {@link IMJCLIRuntimeHost}, emits
|
|
10
10
|
* the runtime advisory, renders the result per `--format`, and sets the exit code.
|
|
11
11
|
*
|
|
12
|
-
* The global flags `--format`, `--verbose`, `--no-banner`, and `--interactive`
|
|
12
|
+
* The global flags `--format`, `--verbose`, `--no-banner`, `--no-app-packages`, and `--interactive`
|
|
13
13
|
* are declared on {@link BaseCLIPlugin.baseFlags} and inherited by every subclass
|
|
14
14
|
* via oclif's native `baseFlags` merging — no per-command duplication (plan D3).
|
|
15
15
|
*
|
|
@@ -29,6 +29,7 @@ export declare abstract class BaseCLIPlugin extends Command {
|
|
|
29
29
|
format: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
30
30
|
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
31
31
|
'no-banner': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
32
|
+
'no-app-packages': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
32
33
|
interactive: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
33
34
|
};
|
|
34
35
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-cli-plugin.d.ts","sourceRoot":"","sources":["../src/base-cli-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAC;AAI7C,OAAO,EAAmB,KAAK,iBAAiB,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,8BAAsB,aAAc,SAAQ,OAAO;IACjD,gFAAgF;IAChF,OAAgB,SAAS
|
|
1
|
+
{"version":3,"file":"base-cli-plugin.d.ts","sourceRoot":"","sources":["../src/base-cli-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAC;AAI7C,OAAO,EAAmB,KAAK,iBAAiB,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,8BAAsB,aAAc,SAAQ,OAAO;IACjD,gFAAgF;IAChF,OAAgB,SAAS;;;;;;MAuBvB;IAEF;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC;IAE1B,SAAS,CAAC,IAAI,EAAG,iBAAiB,CAAC;IAEnC;;;;;OAKG;IACH,SAAS,CAAC,WAAW,UAAS;IAE9B,6EAA6E;IAC7E,OAAO,CAAC,WAAW,CAAU;IAE7B;;;;;;;;;OASG;IACH,SAAS,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC;IAI1B;;OAEG;IACG,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAoC1B;;;;;;OAMG;YACW,UAAU;IAcxB;;;OAGG;cACa,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAI5D,+DAA+D;IAC/D,SAAS,CAAC,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC;CACnD"}
|
package/dist/base-cli-plugin.js
CHANGED
|
@@ -12,7 +12,7 @@ import { MJCLIErrorCodes } from './types.js';
|
|
|
12
12
|
* shared {@link BaseCLIPlugin.run} wires up the {@link IMJCLIRuntimeHost}, emits
|
|
13
13
|
* the runtime advisory, renders the result per `--format`, and sets the exit code.
|
|
14
14
|
*
|
|
15
|
-
* The global flags `--format`, `--verbose`, `--no-banner`, and `--interactive`
|
|
15
|
+
* The global flags `--format`, `--verbose`, `--no-banner`, `--no-app-packages`, and `--interactive`
|
|
16
16
|
* are declared on {@link BaseCLIPlugin.baseFlags} and inherited by every subclass
|
|
17
17
|
* via oclif's native `baseFlags` merging — no per-command duplication (plan D3).
|
|
18
18
|
*
|
|
@@ -46,6 +46,13 @@ export class BaseCLIPlugin extends Command {
|
|
|
46
46
|
}),
|
|
47
47
|
verbose: Flags.boolean({ char: 'v', default: false, description: 'Show detailed output' }),
|
|
48
48
|
'no-banner': Flags.boolean({ default: false, description: 'Suppress the startup banner and runtime advisory' }),
|
|
49
|
+
// Consumed by the `mj` prerun hook (like --no-banner) and mapped to MJ_DYNAMIC_PACKAGES=none
|
|
50
|
+
// before any command parses argv; declared here so it appears in --help.
|
|
51
|
+
'no-app-packages': Flags.boolean({
|
|
52
|
+
default: false,
|
|
53
|
+
description: "Do not load installed Open App server packages (or the host's generated packages) for this run, " +
|
|
54
|
+
'so records are written with the generic BaseEntity — no custom Save() logic or lifecycle hooks.',
|
|
55
|
+
}),
|
|
49
56
|
interactive: Flags.boolean({
|
|
50
57
|
allowNo: true,
|
|
51
58
|
description: 'Allow interactive prompts. Defaults to on at a terminal and off when piped, spawned, or in CI, ' +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-cli-plugin.js","sourceRoot":"","sources":["../src/base-cli-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,eAAe,EAA8D,MAAM,SAAS,CAAC;AAEtG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,OAAgB,aAAc,SAAQ,OAAO;IAAnD;;
|
|
1
|
+
{"version":3,"file":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,CAAC;QAE3B,wEAAwE;QACxE,2DAA2D;QAC3D,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACf,CAAC;IACH,CAAC;IAED;;;;;;OAMG;IACK,KAAK,CAAC,UAAU,CAAC,IAA0B;QACjD,IAAI,CAAC;YACH,OAAO,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;QAC9B,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,IAAI,CAAC,CAAC,CAAC,YAAY,mBAAmB,CAAC;gBAAE,MAAM,CAAC,CAAC;YACjD,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,IAAI,IAAI,CAAC,EAAE,IAAI,SAAS;gBACpD,eAAe,EAAE,CAAC;gBAClB,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,IAAI,EAAE,eAAe,CAAC,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC;aACjG,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;;OAGG;IACO,KAAK,CAAC,OAAO,CAAC,OAAoB;QAC1C,mBAAmB;IACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/cli-core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.1.0-edge.
|
|
4
|
+
"version": "6.1.0-edge.7",
|
|
5
5
|
"description": "Pluggable MJ CLI core — BaseCLIPlugin, runtime host, and progressive-disclosure usage primitives shared by mj CLI plugins",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"author": "MemberJunction",
|
|
15
15
|
"license": "BUSL-1.1",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@memberjunction/global": "6.1.0-edge.
|
|
17
|
+
"@memberjunction/global": "6.1.0-edge.7",
|
|
18
18
|
"@oclif/core": "^3.27.0",
|
|
19
19
|
"chalk": "^5.6.2",
|
|
20
20
|
"ora-classic": "^5.4.2"
|