@qui-cli/core 5.0.0 → 5.0.2

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 CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [5.0.2](https://github.com/battis/qui-cli/compare/core/5.0.1...core/5.0.2) (2026-01-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * normalize peer dependencies ([cdd81b7](https://github.com/battis/qui-cli/commit/cdd81b7c4bea7c769021ff58177750c5a1369f76))
11
+ * update color-coding to current standards ([2fccf74](https://github.com/battis/qui-cli/commit/2fccf7433f729020022b7df85578e05576b47958))
12
+
13
+ ## [5.0.1](https://github.com/battis/qui-cli/compare/core/5.0.0...core/5.0.1) (2025-12-19)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * update documentation to reflect current core plugin model ([dbb3f26](https://github.com/battis/qui-cli/commit/dbb3f269d3dc3996c1d7050eb3a1acfdd08ab640))
19
+
5
20
  ## [5.0.0](https://github.com/battis/qui-cli/compare/core/4.1.0...core/5.0.0) (2025-11-07)
6
21
 
7
22
  ### ⚠ BREAKING CHANGES
package/README.md CHANGED
@@ -44,19 +44,29 @@ See [examples](https://github.com/battis/qui-cli/tree/main/examples#readme) for
44
44
 
45
45
  Three core plugins are registered automatically to provide consistent functionality.
46
46
 
47
- ### `jackspeak`
47
+ ### `JackSpeak`
48
48
 
49
- Manages any custom [jackspeak](https://www.npmjs.com/package/jackspeak#user-content-jackoptions-jackoptions----jack) options. As with any other plugin, it can be configured via `Core.configure()`:
49
+ Manages any custom [jackspeak](https://www.npmjs.com/package/jackspeak#user-content-jackoptions-jackoptions----jack) options. As with any other plugin, it can be configured via `configure()`:
50
50
 
51
51
  ```ts
52
- await Core.configure({
53
- jackspeak: {
54
- envPrefix: 'MY_APP'
52
+ import { Core, JackSpeak } from '@qui-cli/core';
53
+
54
+ await JackSpeak.configure({
55
+ envPrefix: 'MY_APP'
56
+ });
57
+
58
+ await Core.init({
59
+ foo: {
60
+ description: 'bar'
55
61
  }
56
62
  });
63
+
64
+ await Core.run();
65
+
66
+ console.log(process.env.MY_APP_FOO);
57
67
  ```
58
68
 
59
- ### `positionals`
69
+ ### `Positionals`
60
70
 
61
71
  Provides per-plugin positonal argument management and documentation. Individual plugins can require named positional arguments, which are collected and documented by `usage()` and accessible throgh the `Positionals` plugin.
62
72
 
@@ -97,7 +107,7 @@ Positionals.setMinArg(6);
97
107
  Positionals.setMaxArg(4);
98
108
  ```
99
109
 
100
- ### `help`
110
+ ### `Help`
101
111
 
102
112
  Provides consistent `--help` (`-h`) flag for all commands that displays usage. No confiuration.
103
113
 
package/dist/Core.d.ts CHANGED
@@ -3,9 +3,9 @@ import * as JackSpeak from './JackSpeak.js';
3
3
  export { Options } from '@qui-cli/plugin';
4
4
  export * from './Usage.js';
5
5
  export type Configuration = Plugin.Registrar.Configuration & {
6
- /** @deprecated Use `jackspeak` property */
6
+ /** @deprecated Use {@link JackSpeak} core plugin */
7
7
  core?: JackSpeak.Configuration & {
8
- /** @deprecated Use `Positional` plugin */
8
+ /** @deprecated Use {@link Positionals} core plugin */
9
9
  requirePositionals?: boolean | number;
10
10
  };
11
11
  };
package/dist/Help.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as Plugin from '@qui-cli/plugin';
2
2
  export type Configuration = Plugin.Configuration & {
3
+ /** Get usage information */
3
4
  help?: boolean;
4
5
  };
5
6
  export declare const name = "core.help";
@@ -1,12 +1,17 @@
1
1
  import * as Plugin from '@qui-cli/plugin';
2
2
  type PositionalConfig = {
3
+ /** Description of the purpose of the positional argument */
3
4
  description?: string;
5
+ /** Hint about the value of the positional argument */
4
6
  hint?: string;
7
+ /** Must return true for the argument to be accepted */
5
8
  validate?: (v?: string) => boolean | string;
6
9
  };
7
10
  type PositionalConfigSet = Record<string, PositionalConfig>;
8
11
  export type Configuration = Plugin.Configuration & {
12
+ /** Minimum number of accepted positional arguments */
9
13
  min?: number;
14
+ /** Maximum number of accepted positional arguments */
10
15
  max?: number;
11
16
  };
12
17
  export declare const name = "positionals";
package/dist/Usage.js CHANGED
@@ -6,7 +6,7 @@ function commandColor(usage) {
6
6
  const cmd = usage.slice(pre.length, usage.indexOf(' ', pre.length));
7
7
  const terms = usage.slice(pre.length + cmd.length, usage.indexOf('-', pre.length + cmd.length) - 1);
8
8
  const post = usage.slice(pre.length + cmd.length + terms.length);
9
- return `${pre}${Colors.command(`${Colors.keyword(cmd)}${terms}`)}${post}`;
9
+ return `${pre}${Colors.command(`${cmd}${terms}`, Colors.keyword)}${post}`;
10
10
  }
11
11
  export function usage() {
12
12
  return Positionals.usage(commandColor(JackSpeak.usage()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qui-cli/core",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "description": "Core features of @qui-cli/qui-cli",
5
5
  "homepage": "https://github.com/battis/qui-cli/tree/main/packages/core#readme",
6
6
  "repository": {
@@ -19,19 +19,19 @@
19
19
  "dependencies": {
20
20
  "jackspeak": "^4.1.1",
21
21
  "wrap-ansi": "^9.0.2",
22
- "@qui-cli/colors": "3.1.0"
22
+ "@qui-cli/colors": "3.2.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@tsconfig/node20": "^20.1.6",
26
- "@types/node": "^24.10.0",
27
- "commit-and-tag-version": "^12.6.0",
25
+ "@tsconfig/node20": "^20.1.8",
26
+ "@types/node": "^24.10.4",
27
+ "commit-and-tag-version": "^12.6.1",
28
28
  "del-cli": "^6.0.0",
29
29
  "npm-run-all": "^4.1.5",
30
30
  "typescript": "^5.9.3",
31
31
  "@qui-cli/plugin": "4.0.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@qui-cli/plugin": "4.x"
34
+ "@qui-cli/plugin": ">=3"
35
35
  },
36
36
  "target": "node",
37
37
  "scripts": {