toolcraft-openapi 0.0.129 → 0.0.130

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.
@@ -38,12 +38,12 @@
38
38
  },
39
39
  {
40
40
  "name": "toolcraft-openapi",
41
- "version": "0.0.129",
41
+ "version": "0.0.130",
42
42
  "license": "MIT"
43
43
  },
44
44
  {
45
45
  "name": "toolcraft-schema",
46
- "version": "0.0.129",
46
+ "version": "0.0.130",
47
47
  "license": "MIT"
48
48
  },
49
49
  {
@@ -117,7 +117,7 @@ export function formatColumns(opts) {
117
117
  export function formatCommandList(commands) {
118
118
  return formatColumns({
119
119
  rows: commands.map((cmd) => ({
120
- left: cmd.name,
120
+ left: `${" ".repeat((cmd.depth ?? 0) * 2)}${cmd.name}`,
121
121
  right: cmd.description
122
122
  }))
123
123
  });
@@ -1,6 +1,8 @@
1
1
  export interface CommandInfo {
2
2
  name: string;
3
3
  description: string;
4
+ /** Nesting depth relative to the help target. Depth 0 is a direct child. */
5
+ depth?: number;
4
6
  }
5
7
  export interface OptionInfo {
6
8
  flags: string;
@@ -190,7 +190,7 @@ export function formatOption(flags, description) {
190
190
  export function formatCommandList(commands) {
191
191
  return formatColumns({
192
192
  rows: commands.map((cmd) => ({
193
- left: text.command(cmd.name),
193
+ left: `${" ".repeat((cmd.depth ?? 0) * 2)}${text.command(cmd.name)}`,
194
194
  right: cmd.description
195
195
  }))
196
196
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft-schema",
3
- "version": "0.0.129",
3
+ "version": "0.0.130",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft-openapi",
3
- "version": "0.0.129",
3
+ "version": "0.0.130",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "toolcraft-openapi-generate": "dist/bin/generate.js"
31
31
  },
32
32
  "dependencies": {
33
- "toolcraft": "0.0.129",
33
+ "toolcraft": "0.0.130",
34
34
  "auth-store": "^0.0.1",
35
35
  "fast-string-width": "^3.0.2",
36
36
  "fast-wrap-ansi": "^0.2.0",
@@ -46,7 +46,7 @@
46
46
  "directory": "packages/toolcraft-openapi"
47
47
  },
48
48
  "optionalDependencies": {
49
- "toolcraft-schema": "0.0.129",
49
+ "toolcraft-schema": "0.0.130",
50
50
  "toolcraft-design": "*",
51
51
  "@poe-code/frontmatter": "*"
52
52
  },