@outfitter/cli 0.5.2 → 1.0.0

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.
Files changed (110) hide show
  1. package/README.md +179 -60
  2. package/dist/actions.d.ts +5 -2
  3. package/dist/actions.js +2 -2
  4. package/dist/cli.d.ts +1 -1
  5. package/dist/cli.js +8 -1
  6. package/dist/colors/index.js +1 -17
  7. package/dist/command.d.ts +3 -43
  8. package/dist/command.js +241 -13
  9. package/dist/envelope.d.ts +5 -0
  10. package/dist/envelope.js +160 -0
  11. package/dist/flags.d.ts +5 -189
  12. package/dist/flags.js +5 -1
  13. package/dist/hints.d.ts +34 -0
  14. package/dist/hints.js +26 -0
  15. package/dist/index.d.ts +3 -2
  16. package/dist/index.js +2 -17
  17. package/dist/input.d.ts +3 -124
  18. package/dist/input.js +14 -359
  19. package/dist/internal/envelope-helpers.d.ts +4 -0
  20. package/dist/internal/envelope-helpers.js +24 -0
  21. package/dist/internal/envelope-types.d.ts +3 -0
  22. package/dist/internal/flag-builders.d.ts +3 -0
  23. package/dist/internal/flag-builders.js +155 -0
  24. package/dist/internal/flag-types.d.ts +3 -0
  25. package/dist/internal/flag-types.js +13 -0
  26. package/dist/internal/hint-action-graph.d.ts +5 -0
  27. package/dist/internal/hint-action-graph.js +11 -0
  28. package/dist/internal/hint-command-tree.d.ts +5 -0
  29. package/dist/internal/hint-command-tree.js +9 -0
  30. package/dist/internal/hint-error-recovery.d.ts +2 -0
  31. package/dist/internal/hint-error-recovery.js +7 -0
  32. package/dist/internal/hint-types.d.ts +4 -0
  33. package/dist/internal/hint-types.js +1 -0
  34. package/dist/internal/input-helpers.d.ts +18 -0
  35. package/dist/internal/input-helpers.js +11 -0
  36. package/dist/internal/input-normalization.d.ts +3 -0
  37. package/dist/internal/input-normalization.js +9 -0
  38. package/dist/internal/input-parsers.d.ts +3 -0
  39. package/dist/internal/input-parsers.js +19 -0
  40. package/dist/internal/input-security.d.ts +22 -0
  41. package/dist/internal/input-security.js +11 -0
  42. package/dist/internal/output-formatting.d.ts +3 -0
  43. package/dist/internal/output-formatting.js +21 -0
  44. package/dist/internal/presets.d.ts +3 -0
  45. package/dist/{shared/@outfitter/cli-pdb7znbq.js → internal/presets.js} +49 -223
  46. package/dist/internal/schema-commands.d.ts +3 -0
  47. package/dist/{shared/@outfitter/cli-0cjts94k.js → internal/schema-commands.js} +12 -100
  48. package/dist/internal/schema-formatting.d.ts +2 -0
  49. package/dist/internal/schema-formatting.js +7 -0
  50. package/dist/internal/schema-types.d.ts +2 -0
  51. package/dist/internal/schema-types.js +1 -0
  52. package/dist/output.d.ts +4 -3
  53. package/dist/output.js +10 -2
  54. package/dist/pagination.d.ts +1 -1
  55. package/dist/query.d.ts +84 -2
  56. package/dist/query.js +8 -45
  57. package/dist/schema-input.d.ts +80 -0
  58. package/dist/schema-input.js +15 -0
  59. package/dist/schema.d.ts +4 -1
  60. package/dist/schema.js +1 -1
  61. package/dist/shared/@outfitter/cli-10wxfc78.d.ts +45 -0
  62. package/dist/shared/@outfitter/cli-16wg5mka.d.ts +71 -0
  63. package/dist/shared/@outfitter/cli-1q5redaj.js +267 -0
  64. package/dist/shared/@outfitter/cli-2dfxs239.js +98 -0
  65. package/dist/shared/@outfitter/cli-30mt7c5w.d.ts +112 -0
  66. package/dist/shared/@outfitter/cli-3jta1h1h.js +134 -0
  67. package/dist/shared/@outfitter/cli-4h85mpth.js +76 -0
  68. package/dist/shared/@outfitter/cli-6shkwxdc.js +28 -0
  69. package/dist/shared/@outfitter/cli-89335n9a.js +16 -0
  70. package/dist/shared/@outfitter/cli-8999qjdd.js +3 -0
  71. package/dist/shared/@outfitter/cli-8cfxdady.js +60 -0
  72. package/dist/shared/@outfitter/cli-bcajqy33.d.ts +25 -0
  73. package/dist/shared/@outfitter/cli-c09332vm.d.ts +39 -0
  74. package/dist/shared/@outfitter/cli-cgha038c.d.ts +3 -0
  75. package/dist/shared/@outfitter/{cli-zahqsaby.js → cli-d40m2x1d.js} +19 -3
  76. package/dist/shared/@outfitter/{cli-7wp5nj0s.js → cli-dg0cz7rw.js} +39 -81
  77. package/dist/shared/@outfitter/cli-dv8kk4jw.d.ts +24 -0
  78. package/dist/shared/@outfitter/cli-g43887b7.js +20 -0
  79. package/dist/shared/@outfitter/cli-gqtkhgw4.js +52 -0
  80. package/dist/shared/@outfitter/cli-h4ejpmjs.d.ts +104 -0
  81. package/dist/shared/@outfitter/cli-htzez8v2.js +70 -0
  82. package/dist/shared/@outfitter/cli-hvg2m5gf.js +79 -0
  83. package/dist/shared/@outfitter/cli-n54zs151.d.ts +78 -0
  84. package/dist/shared/@outfitter/cli-nbpgw7z7.d.ts +15 -0
  85. package/dist/shared/@outfitter/cli-nkt399zf.d.ts +94 -0
  86. package/dist/shared/@outfitter/cli-pmd04gtv.d.ts +60 -0
  87. package/dist/shared/@outfitter/{cli-xy3gs50c.d.ts → cli-q6csxmeh.d.ts} +19 -12
  88. package/dist/shared/@outfitter/cli-qcskd96y.d.ts +11 -0
  89. package/dist/shared/@outfitter/cli-ry7btmy4.js +118 -0
  90. package/dist/shared/@outfitter/cli-sy99pjyj.js +32 -0
  91. package/dist/shared/@outfitter/cli-tm2fzngs.d.ts +23 -0
  92. package/dist/shared/@outfitter/cli-vvvhjwks.js +106 -0
  93. package/dist/shared/@outfitter/cli-wjv7g1aq.d.ts +16 -0
  94. package/dist/shared/@outfitter/{cli-98aa9104.d.ts → cli-x6qr7bnd.d.ts} +338 -16
  95. package/dist/shared/@outfitter/cli-xde45xcc.d.ts +53 -0
  96. package/dist/shared/@outfitter/cli-xw8ys1je.d.ts +123 -0
  97. package/dist/shared/@outfitter/cli-yfewnyc2.d.ts +43 -0
  98. package/dist/shared/@outfitter/cli-zkzj0q4q.js +99 -0
  99. package/dist/shared/@outfitter/cli-zv3ah6f0.js +3 -0
  100. package/dist/streaming.d.ts +47 -0
  101. package/dist/streaming.js +13 -0
  102. package/dist/terminal/index.js +1 -19
  103. package/dist/truncation.d.ts +104 -0
  104. package/dist/truncation.js +111 -0
  105. package/dist/types.d.ts +2 -2
  106. package/dist/types.js +0 -5
  107. package/dist/verbs.d.ts +1 -1
  108. package/package.json +66 -36
  109. package/dist/shared/@outfitter/cli-n1k0d23k.d.ts +0 -33
  110. /package/dist/{shared/@outfitter/cli-zw75pdk8.js → internal/envelope-types.js} +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@outfitter/cli",
3
3
  "description": "Typed CLI runtime with terminal detection, rendering, output contracts, and input parsing",
4
- "version": "0.5.2",
4
+ "version": "1.0.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -39,12 +39,24 @@
39
39
  "default": "./dist/completion.js"
40
40
  }
41
41
  },
42
+ "./envelope": {
43
+ "import": {
44
+ "types": "./dist/envelope.d.ts",
45
+ "default": "./dist/envelope.js"
46
+ }
47
+ },
42
48
  "./flags": {
43
49
  "import": {
44
50
  "types": "./dist/flags.d.ts",
45
51
  "default": "./dist/flags.js"
46
52
  }
47
53
  },
54
+ "./hints": {
55
+ "import": {
56
+ "types": "./dist/hints.d.ts",
57
+ "default": "./dist/hints.js"
58
+ }
59
+ },
48
60
  "./input": {
49
61
  "import": {
50
62
  "types": "./dist/input.d.ts",
@@ -76,6 +88,18 @@
76
88
  "default": "./dist/schema.js"
77
89
  }
78
90
  },
91
+ "./schema-input": {
92
+ "import": {
93
+ "types": "./dist/schema-input.d.ts",
94
+ "default": "./dist/schema-input.js"
95
+ }
96
+ },
97
+ "./streaming": {
98
+ "import": {
99
+ "types": "./dist/streaming.d.ts",
100
+ "default": "./dist/streaming.js"
101
+ }
102
+ },
79
103
  "./terminal": {
80
104
  "import": {
81
105
  "types": "./dist/terminal/index.d.ts",
@@ -94,6 +118,12 @@
94
118
  "default": "./dist/text.js"
95
119
  }
96
120
  },
121
+ "./truncation": {
122
+ "import": {
123
+ "types": "./dist/truncation.d.ts",
124
+ "default": "./dist/truncation.js"
125
+ }
126
+ },
97
127
  "./types": {
98
128
  "import": {
99
129
  "types": "./dist/types.d.ts",
@@ -107,57 +137,57 @@
107
137
  }
108
138
  }
109
139
  },
140
+ "keywords": [
141
+ "bun",
142
+ "cli",
143
+ "colors",
144
+ "commander",
145
+ "outfitter",
146
+ "renderers",
147
+ "terminal",
148
+ "typescript"
149
+ ],
150
+ "license": "MIT",
151
+ "repository": {
152
+ "type": "git",
153
+ "url": "https://github.com/outfitter-dev/outfitter.git",
154
+ "directory": "packages/cli"
155
+ },
110
156
  "sideEffects": false,
157
+ "publishConfig": {
158
+ "access": "public"
159
+ },
111
160
  "scripts": {
112
- "build": "cd ../.. && bunup --filter @outfitter/cli",
161
+ "build": "cd ../.. && bash ./scripts/run-bunup-with-lock.sh bunup --filter @outfitter/cli",
113
162
  "test": "bun test",
114
163
  "test:watch": "bun test --watch",
115
- "lint": "biome lint ./src",
116
- "lint:fix": "biome lint --write ./src",
164
+ "lint": "oxlint ./src",
165
+ "lint:fix": "oxlint --fix ./src",
117
166
  "typecheck": "tsc --noEmit",
118
167
  "clean": "rm -rf dist",
119
168
  "prepublishOnly": "bun ../../scripts/check-publish-manifest.ts"
120
169
  },
121
170
  "dependencies": {
122
171
  "@clack/prompts": "^1.0.1",
123
- "better-result": "^2.5.1",
124
- "commander": "^14.0.2"
172
+ "better-result": "^2.5.1"
173
+ },
174
+ "devDependencies": {
175
+ "@outfitter/config": "0.4.0",
176
+ "@outfitter/contracts": "0.5.0",
177
+ "@outfitter/schema": "0.2.4",
178
+ "@types/bun": "^1.3.9",
179
+ "@types/node": "^25.3.0",
180
+ "typescript": "^5.9.3"
125
181
  },
126
182
  "peerDependencies": {
127
183
  "@outfitter/config": ">=0.3.0",
128
184
  "@outfitter/contracts": ">=0.2.0",
129
185
  "@outfitter/schema": ">=0.1.0",
130
186
  "@outfitter/types": ">=0.2.0",
131
- "zod": "^4.3.5"
132
- },
133
- "devDependencies": {
134
- "@outfitter/config": "0.3.3",
135
- "@outfitter/contracts": "0.4.1",
136
- "@outfitter/schema": "0.2.2",
137
- "@types/bun": "^1.3.9",
138
- "@types/node": "^25.0.10",
139
- "typescript": "^5.9.3"
187
+ "commander": ">=14.0.0",
188
+ "zod": ">=4.0.0"
140
189
  },
141
190
  "engines": {
142
- "bun": ">=1.3.9"
143
- },
144
- "publishConfig": {
145
- "access": "public"
146
- },
147
- "repository": {
148
- "type": "git",
149
- "url": "https://github.com/outfitter-dev/outfitter.git",
150
- "directory": "packages/cli"
151
- },
152
- "license": "MIT",
153
- "keywords": [
154
- "cli",
155
- "commander",
156
- "typescript",
157
- "bun",
158
- "outfitter",
159
- "terminal",
160
- "colors",
161
- "renderers"
162
- ]
191
+ "bun": ">=1.3.10"
192
+ }
163
193
  }
@@ -1,33 +0,0 @@
1
- import { ActionManifest, ActionSource } from "@outfitter/schema";
2
- import { Command } from "commander";
3
- import { ActionManifest as ActionManifest2, ActionManifestEntry, ActionSource as ActionSource2, GenerateManifestOptions } from "@outfitter/schema";
4
- import { generateManifest } from "@outfitter/schema";
5
- interface SurfaceCommandOptions {
6
- readonly cwd?: string;
7
- readonly outputDir?: string;
8
- }
9
- interface SchemaCommandOptions {
10
- readonly programName?: string;
11
- readonly surface?: SurfaceCommandOptions;
12
- }
13
- /**
14
- * Format a manifest for human-readable terminal output.
15
- *
16
- * @param manifest - The manifest to format
17
- * @param programName - CLI program name (for header)
18
- * @param actionId - If provided, show detail for this single action
19
- * @returns Formatted string
20
- */
21
- declare function formatManifestHuman(manifest: ActionManifest, programName?: string, actionId?: string): string;
22
- /**
23
- * Create a `schema` command for CLI introspection.
24
- *
25
- * When `options.surface` is provided, adds `generate` and `diff` subcommands
26
- * for surface map file I/O and drift detection.
27
- *
28
- * @param source - ActionRegistry or array of ActionSpec
29
- * @param options - Command configuration
30
- * @returns A Commander command instance
31
- */
32
- declare function createSchemaCommand(source: ActionSource, options?: SchemaCommandOptions): Command;
33
- export { SurfaceCommandOptions, SchemaCommandOptions, formatManifestHuman, createSchemaCommand, ActionManifest2 as ActionManifest, ActionManifestEntry, ActionSource2 as ActionSource, GenerateManifestOptions, generateManifest };