@sonisoft/now-sdk-ext-cli 1.0.0-alpha.0 → 1.1.0-alpha.1

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/README.md CHANGED
@@ -29,7 +29,7 @@ $ npm install -g @sonisoft/now-sdk-ext-cli
29
29
  $ nex COMMAND
30
30
  running command...
31
31
  $ nex (--version)
32
- @sonisoft/now-sdk-ext-cli/1.0.0-alpha.0 darwin-arm64 node-v22.2.0
32
+ @sonisoft/now-sdk-ext-cli/1.1.0-alpha.1 darwin-arm64 node-v22.6.0
33
33
  $ nex --help [COMMAND]
34
34
  USAGE
35
35
  $ nex COMMAND
@@ -38,6 +38,7 @@ USAGE
38
38
  <!-- usagestop -->
39
39
  # Commands
40
40
  <!-- commands -->
41
+ * [`nex app`](#nex-app)
41
42
  * [`nex exec SCOPE FILE`](#nex-exec-scope-file)
42
43
  * [`nex help [COMMAND]`](#nex-help-command)
43
44
  * [`nex plugins`](#nex-plugins)
@@ -51,6 +52,35 @@ USAGE
51
52
  * [`nex plugins unlink [PLUGIN]`](#nex-plugins-unlink-plugin)
52
53
  * [`nex plugins update`](#nex-plugins-update)
53
54
 
55
+ ## `nex app`
56
+
57
+ Execute a local javascript file on a ServiceNow instance using Scripts - Background remotely. Returns the output/raw console output that Scripts - Background outputs to the browser in order to support the execution and result being piped to another command.
58
+
59
+ ```
60
+ USAGE
61
+ $ nex app [--json] [-a <value>] [--log-level debug|warn|error|info|trace] [-u] [-i <value>] [-s <value>]
62
+
63
+ FLAGS
64
+ -a, --auth=<value> Auth alias to use.
65
+ -i, --applicationId=<value> Application sys_id
66
+ -s, --scope=<value> Scope of application.
67
+ -u, --uninstall Uninstall the app
68
+
69
+ GLOBAL FLAGS
70
+ --json Format output as json.
71
+ --log-level=<option> [default: info] Specify level for logging.
72
+ <options: debug|warn|error|info|trace>
73
+
74
+ DESCRIPTION
75
+ Execute a local javascript file on a ServiceNow instance using Scripts - Background remotely. Returns the output/raw
76
+ console output that Scripts - Background outputs to the browser in order to support the execution and result being
77
+ piped to another command.
78
+
79
+ EXAMPLES
80
+ $ nex app exec global test.js --auth sn_alias
81
+ test
82
+ ```
83
+
54
84
  ## `nex exec SCOPE FILE`
55
85
 
56
86
  Execute a local javascript file on a ServiceNow instance using Scripts - Background remotely. Returns the output/raw console output that Scripts - Background outputs to the browser in order to support the execution and result being piped to another command.
@@ -99,7 +129,7 @@ DESCRIPTION
99
129
  Display help for nex.
100
130
  ```
101
131
 
102
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.13/src/commands/help.ts)_
132
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.31/src/commands/help.ts)_
103
133
 
104
134
  ## `nex plugins`
105
135
 
@@ -122,7 +152,7 @@ EXAMPLES
122
152
  $ nex plugins
123
153
  ```
124
154
 
125
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.10/src/commands/plugins/index.ts)_
155
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.45/src/commands/plugins/index.ts)_
126
156
 
127
157
  ## `nex plugins add PLUGIN`
128
158
 
@@ -196,7 +226,7 @@ EXAMPLES
196
226
  $ nex plugins inspect myplugin
197
227
  ```
198
228
 
199
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.10/src/commands/plugins/inspect.ts)_
229
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.45/src/commands/plugins/inspect.ts)_
200
230
 
201
231
  ## `nex plugins install PLUGIN`
202
232
 
@@ -245,7 +275,7 @@ EXAMPLES
245
275
  $ nex plugins install someuser/someplugin
246
276
  ```
247
277
 
248
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.10/src/commands/plugins/install.ts)_
278
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.45/src/commands/plugins/install.ts)_
249
279
 
250
280
  ## `nex plugins link PATH`
251
281
 
@@ -265,6 +295,7 @@ FLAGS
265
295
 
266
296
  DESCRIPTION
267
297
  Links a plugin into the CLI for development.
298
+
268
299
  Installation of a linked plugin will override a user-installed or core plugin.
269
300
 
270
301
  e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
@@ -275,7 +306,7 @@ EXAMPLES
275
306
  $ nex plugins link myplugin
276
307
  ```
277
308
 
278
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.10/src/commands/plugins/link.ts)_
309
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.45/src/commands/plugins/link.ts)_
279
310
 
280
311
  ## `nex plugins remove [PLUGIN]`
281
312
 
@@ -316,7 +347,7 @@ FLAGS
316
347
  --reinstall Reinstall all plugins after uninstalling.
317
348
  ```
318
349
 
319
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.10/src/commands/plugins/reset.ts)_
350
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.45/src/commands/plugins/reset.ts)_
320
351
 
321
352
  ## `nex plugins uninstall [PLUGIN]`
322
353
 
@@ -344,7 +375,7 @@ EXAMPLES
344
375
  $ nex plugins uninstall myplugin
345
376
  ```
346
377
 
347
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.10/src/commands/plugins/uninstall.ts)_
378
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.45/src/commands/plugins/uninstall.ts)_
348
379
 
349
380
  ## `nex plugins unlink [PLUGIN]`
350
381
 
@@ -388,5 +419,5 @@ DESCRIPTION
388
419
  Update installed plugins.
389
420
  ```
390
421
 
391
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.10/src/commands/plugins/update.ts)_
422
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.45/src/commands/plugins/update.ts)_
392
423
  <!-- commandsstop -->
@@ -0,0 +1,14 @@
1
+ import { AuthenticatedCommand } from '../../common/authenticated-command.js';
2
+ export declare class App extends AuthenticatedCommand<typeof App> {
3
+ static args: {};
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ uninstall: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
8
+ applicationId: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
9
+ scope: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
10
+ };
11
+ private _logger;
12
+ run(): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/app/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAE5E,qBAAa,GAAI,SAAQ,oBAAoB,CAAC,OAAO,GAAG,CAAC;IAEvD,MAAM,CAAC,IAAI,KACV;IAED,MAAM,CAAC,WAAW,SAAuQ;IAEzR,MAAM,CAAC,QAAQ,WAId;IAED,MAAM,CAAC,KAAK;;;;MAKX;IAED,OAAO,CAAC,OAAO,CAAmC;IAE5C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAqD3B"}
@@ -0,0 +1,67 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /* eslint-disable perfectionist/sort-objects */
3
+ import { Flags } from '@oclif/core';
4
+ import { Application, BackgroundScriptExecutor, Logger, NowStringUtil } from '@sonisoft/now-sdk-ext-core';
5
+ import fs from 'node:fs';
6
+ import path from 'node:path';
7
+ import { AuthenticatedCommand } from '../../common/authenticated-command.js';
8
+ export class App extends AuthenticatedCommand {
9
+ static args = {};
10
+ static description = 'Execute a local javascript file on a ServiceNow instance using Scripts - Background remotely. Returns the output/raw console output that Scripts - Background outputs to the browser in order to support the execution and result being piped to another command.';
11
+ static examples = [
12
+ `<%= config.bin %> <%= command.id %> exec global test.js --auth sn_alias
13
+ test
14
+ `,
15
+ ];
16
+ static flags = {
17
+ // from: Flags.string({char: 'f', description: 'Who is saying hello', required: true}),
18
+ uninstall: Flags.boolean({ char: 'u', description: 'Uninstall the app', required: false }),
19
+ applicationId: Flags.string({ char: 'i', description: 'Application sys_id', required: false }),
20
+ scope: Flags.string({ char: 's', description: 'Scope of application.', required: false }),
21
+ };
22
+ _logger = new Logger("AppCommand");
23
+ async run() {
24
+ const { args, flags } = await this.parse(App);
25
+ this.log("App command");
26
+ if (flags.uninstall) {
27
+ this.log("Uninstalling app");
28
+ if (NowStringUtil.isStringEmpty(flags.applicationId)) {
29
+ this.error("Application ID is required when uninstalling an app");
30
+ return;
31
+ }
32
+ if (NowStringUtil.isStringEmpty(flags.scope)) {
33
+ this.error("Scope is required when uninstalling an app");
34
+ return;
35
+ }
36
+ this.log("Passed checks. Uninstalling app.");
37
+ const app = new Application(this.instance, flags.scope, flags.applicationId);
38
+ await app.changeApplication();
39
+ await app.uninstall();
40
+ }
41
+ if (!NowStringUtil.isStringEmpty(args.file) && !NowStringUtil.isStringEmpty(args.scope)) {
42
+ try {
43
+ const filePath = path.resolve(args.file);
44
+ const script = fs.readFileSync(filePath).toString('utf8');
45
+ const scope = args.scope ?? "global";
46
+ const executor = new BackgroundScriptExecutor(this.instance, args.scope);
47
+ ;
48
+ const result = await executor.executeScript(script, scope, this.instance);
49
+ this._logger.debug("Ran background script", result);
50
+ if (result !== null && result.scriptResults !== null) {
51
+ const { scriptResults } = result;
52
+ for (const scriptResult of scriptResults) {
53
+ this.log(scriptResult.line);
54
+ }
55
+ }
56
+ else {
57
+ throw new Error("Response from script execution was null or undefined. Please review logs to identify the problem.");
58
+ }
59
+ }
60
+ catch (error) {
61
+ this._logger.error("Error occurred when executing background script.", error);
62
+ this.error(error);
63
+ }
64
+ }
65
+ }
66
+ }
67
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/app/index.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,+CAA+C;AAC/C,OAAO,EAAgB,KAAK,EAAC,MAAM,aAAa,CAAA;AAChD,OAAO,EAAG,WAAW,EAAE,wBAAwB,EAAG,MAAM,EAAE,aAAa,EAAuB,MAAM,4BAA4B,CAAC;AACjI,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAE5E,MAAM,OAAO,GAAI,SAAQ,oBAAgC;IAEvD,MAAM,CAAC,IAAI,GAAG,EACb,CAAA;IAED,MAAM,CAAC,WAAW,GAAG,mQAAmQ,CAAC;IAEzR,MAAM,CAAC,QAAQ,GAAG;QAChB;;CAEH;KACE,CAAA;IAED,MAAM,CAAC,KAAK,GAAG;QACb,uFAAuF;QACvF,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EAAC,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,mBAAmB,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC;QACxF,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,oBAAoB,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC;QAC5F,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,uBAAuB,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC;KACxF,CAAA;IAEO,OAAO,GAAU,IAAI,MAAM,CAAC,YAAY,CAAC,CAAC;IAElD,KAAK,CAAC,GAAG;QACP,MAAM,EAAC,IAAI,EAAE,KAAK,EAAC,GAAG,MAAM,IAAI,C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,GAAG,CAAC;IAK9C,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAgCnC"}
@@ -1,6 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  import { Command, Flags } from '@oclif/core';
3
- import { CredentialWrapper, Logger, ServiceNowInstance } from '@sonisoft/now-sdk-ext-core';
3
+ import { getCredentials } from "@servicenow/sdk-cli/dist/auth/index.js";
4
+ import { Logger, ServiceNowInstance } from '@sonisoft/now-sdk-ext-core';
4
5
  export class AuthenticatedCommand extends Command {
5
6
  // // define flags that can be inherited by any command that extends BaseCommand
6
7
  static baseFlags = {
@@ -39,15 +40,15 @@ export class AuthenticatedCommand extends Command {
39
40
  });
40
41
  this.flags = flags;
41
42
  this.args = args;
42
- const wrapper = new CredentialWrapper();
43
- const credential = await (flags.auth ? wrapper.getStoredCredentialsByAlias(flags.auth) : wrapper.getStoredCredentialsByAlias('fluent-default'));
43
+ // const wrapper:CredentialWrapper = new CredentialWrapper();
44
+ // const credential:Creds = await (flags.auth ? wrapper.getStoredCredentialsByAlias(flags.auth) : wrapper.getStoredCredentialsByAlias( 'fluent-default'));
45
+ const credentialArgs = { "_": "get-credentials", auth: flags.auth || "fluent-default" };
46
+ const credential = await getCredentials(credentialArgs);
44
47
  this.authLogger.debug("Credentials Received: ", credential);
45
48
  if (credential) {
46
49
  const snSettings = {
47
50
  alias: flags.auth,
48
- host: credential.host,
49
- password: credential.password,
50
- username: credential.username,
51
+ credential
51
52
  };
52
53
  this.authLogger.debug("SN auth settings to instantiate ServiceNowInstance object: ", snSettings);
53
54
  this.instance = new ServiceNowInstance(snSettings);
@@ -1 +1 @@
1
- {"version":3,"file":"authenticated-command.js","sourceRoot":"","sources":["../../src/common/authenticated-command.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAc,MAAM,aAAa,CAAA;AAExD,OAAO,EAAE,iBAAiB,EAAG,MAAM,EAAE,kBAAkB,EAA8B,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CAAC;YACrC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI;YACpB,SAAS,EAAG,KAAK,CAAC,IAAoC,CAAC,SAAS;YAChE,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc;YACxC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK;YACtB,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM;SACzB,CAAC,CAAA;QAEF,IAAI,CAAC,KAAK,GAAG,KAAiB,CAAA;QAC9B,IAAI,CAAC,IAAI,GAAG,IAAe,CAAA;QAG3B,6DAA6D;QAC7D,0JAA0J;QAC1J,MAAM,cAAc,GAAG,EAAC,GAAG,EAAE,iBAAiB,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,gBAAgB,EAAC,CAAC;QAEtF,MAAM,UAAU,GAAG,MAAM,cAAc,CAAC,cAAc,CAAC,CAAC;QACxD,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,wBAAwB,EAAE,UAAU,CAAC,CAAC;QAC5D,IAAG,UAAU,EAAC,CAAC;YACZ,MAAM,UAAU,GAA8B;gBACzC,KAAK,EAAE,KAAK,CAAC,IAAI;gBAClB,UAAU;aACZ,CAAA;YACD,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,6DAA6D,EAAE,UAAU,CAAC,CAAC;YACjG,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACvD,CAAC;aAAI,CAAC;YACF,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,wDAAwD,EAAE,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAC,CAAC,CAAC;QAC1H,CAAC;IAEH,CAAC"}
@@ -1,5 +1,88 @@
1
1
  {
2
2
  "commands": {
3
+ "app": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Execute a local javascript file on a ServiceNow instance using Scripts - Background remotely. Returns the output/raw console output that Scripts - Background outputs to the browser in order to support the execution and result being piped to another command.",
7
+ "examples": [
8
+ "<%= config.bin %> <%= command.id %> exec global test.js --auth sn_alias\ntest\n"
9
+ ],
10
+ "flags": {
11
+ "json": {
12
+ "description": "Format output as json.",
13
+ "helpGroup": "GLOBAL",
14
+ "name": "json",
15
+ "allowNo": false,
16
+ "type": "boolean"
17
+ },
18
+ "auth": {
19
+ "char": "a",
20
+ "description": "Auth alias to use.",
21
+ "name": "auth",
22
+ "required": false,
23
+ "hasDynamicHelp": false,
24
+ "multiple": false,
25
+ "type": "option"
26
+ },
27
+ "log-level": {
28
+ "helpGroup": "GLOBAL",
29
+ "name": "log-level",
30
+ "summary": "Specify level for logging.",
31
+ "default": "info",
32
+ "hasDynamicHelp": false,
33
+ "multiple": false,
34
+ "options": [
35
+ "debug",
36
+ "warn",
37
+ "error",
38
+ "info",
39
+ "trace"
40
+ ],
41
+ "type": "option"
42
+ },
43
+ "uninstall": {
44
+ "char": "u",
45
+ "description": "Uninstall the app",
46
+ "name": "uninstall",
47
+ "required": false,
48
+ "allowNo": false,
49
+ "type": "boolean"
50
+ },
51
+ "applicationId": {
52
+ "char": "i",
53
+ "description": "Application sys_id",
54
+ "name": "applicationId",
55
+ "required": false,
56
+ "hasDynamicHelp": false,
57
+ "multiple": false,
58
+ "type": "option"
59
+ },
60
+ "scope": {
61
+ "char": "s",
62
+ "description": "Scope of application.",
63
+ "name": "scope",
64
+ "required": false,
65
+ "hasDynamicHelp": false,
66
+ "multiple": false,
67
+ "type": "option"
68
+ }
69
+ },
70
+ "hasDynamicHelp": false,
71
+ "hiddenAliases": [],
72
+ "id": "app",
73
+ "pluginAlias": "@sonisoft/now-sdk-ext-cli",
74
+ "pluginName": "@sonisoft/now-sdk-ext-cli",
75
+ "pluginType": "core",
76
+ "strict": true,
77
+ "enableJsonFlag": true,
78
+ "isESM": true,
79
+ "relativePath": [
80
+ "dist",
81
+ "commands",
82
+ "app",
83
+ "index.js"
84
+ ]
85
+ },
3
86
  "exec": {
4
87
  "aliases": [],
5
88
  "args": {
@@ -69,5 +152,5 @@
69
152
  ]
70
153
  }
71
154
  },
72
- "version": "1.0.0-alpha.0"
155
+ "version": "1.1.0-alpha.1"
73
156
  }
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@sonisoft/now-sdk-ext-cli",
3
3
  "description": "A CLI extending the functionality of the ServiceNow SDK.",
4
- "version": "1.0.0-alpha.0",
4
+ "version": "1.1.0-alpha.1",
5
5
  "author": "Chris Nanda",
6
6
  "bin": {
7
7
  "nex": "./bin/run.js"
8
8
  },
9
9
  "bugs": "",
10
10
  "dependencies": {
11
- "@oclif/core": "^4.0.2",
12
11
  "@oclif/plugin-help": "^6.2.10",
13
12
  "@oclif/plugin-plugins": "^5.4.6",
14
13
  "@servicenow/glide": "^26.0.1",
15
- "@servicenow/sdk": "2.0.1",
16
- "@servicenow/sdk-build": "2.0.1",
17
- "@servicenow/sdk-cli": "2.0.1",
18
- "@servicenow/sdk-cli-core": "2.0.1",
19
- "@servicenow/sdk-core": "2.0.1",
20
- "@servicenow/sdk-project": "2.0.1",
21
- "@sonisoft/now-sdk-ext-core": "^1.0.0-alpha.6",
14
+ "@servicenow/sdk": "3.0.2",
15
+ "@servicenow/sdk-build": "3.0.2",
16
+ "@servicenow/sdk-build-core": "3.0.2",
17
+ "@servicenow/sdk-cli": "3.0.2",
18
+ "@servicenow/sdk-cli-core": "3.0.2",
19
+ "@servicenow/sdk-core": "3.0.2",
20
+ "@servicenow/sdk-project": "3.0.2",
21
+ "@sonisoft/now-sdk-ext-core": "^1.0.0-alpha.32",
22
22
  "@ts-morph/common": "^0.24.0",
23
23
  "cometd": "^8.0.4",
24
24
  "cometd-nodejs-client": "^2.0.0",
@@ -30,6 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@jest/globals": "^29.7.0",
33
+ "@oclif/core": "^4.5.1",
33
34
  "@oclif/prettier-config": "^0.2.1",
34
35
  "@oclif/test": "^4",
35
36
  "@supercharge/fs": "^3.4.2",
@@ -87,13 +88,14 @@
87
88
  "topics": {
88
89
  "exec": {
89
90
  "description": "Execute scripts remotely on a ServiceNow instance. Immitates using Scripts - Background from within ServiceNow."
91
+ },
92
+ "app": {
93
+ "description": "Operations on ServiceNow Applications."
90
94
  }
91
95
  }
92
96
  },
93
97
  "repository": "",
94
98
  "scripts": {
95
- "prepublish": "npm version prerelease",
96
- "publish-registry": "npm publish",
97
99
  "clean": "rimraf dist && rimraf tsconfig.tsbuildinfo",
98
100
  "alpha": "npm version premajor --preid alpha",
99
101
  "beta": " npm version premajor --preid beta",
@@ -108,4 +110,4 @@
108
110
  "version": "oclif readme && git add README.md"
109
111
  },
110
112
  "types": "dist/index.d.ts"
111
- }
113
+ }