bunli 0.9.0 → 0.9.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.
Files changed (60) hide show
  1. package/README.md +26 -17
  2. package/dist/cli.js +48 -1455
  3. package/dist/commands/build.d.ts +1 -1
  4. package/dist/commands/build.d.ts.map +1 -1
  5. package/dist/commands/dev.d.ts +1 -1
  6. package/dist/commands/dev.d.ts.map +1 -1
  7. package/dist/commands/doctor/completions.d.ts +1 -1
  8. package/dist/commands/doctor/completions.d.ts.map +1 -1
  9. package/dist/commands/doctor.d.ts.map +1 -1
  10. package/dist/commands/generate.d.ts +1 -1
  11. package/dist/commands/generate.d.ts.map +1 -1
  12. package/dist/commands/init.d.ts +2 -2
  13. package/dist/commands/init.d.ts.map +1 -1
  14. package/dist/commands/prompt/choose.d.ts +1 -1
  15. package/dist/commands/prompt/choose.d.ts.map +1 -1
  16. package/dist/commands/prompt/confirm.d.ts +1 -1
  17. package/dist/commands/prompt/confirm.d.ts.map +1 -1
  18. package/dist/commands/prompt/file.d.ts +1 -1
  19. package/dist/commands/prompt/file.d.ts.map +1 -1
  20. package/dist/commands/prompt/filter.d.ts +1 -1
  21. package/dist/commands/prompt/filter.d.ts.map +1 -1
  22. package/dist/commands/prompt/format.d.ts +1 -1
  23. package/dist/commands/prompt/format.d.ts.map +1 -1
  24. package/dist/commands/prompt/input.d.ts +2 -2
  25. package/dist/commands/prompt/input.d.ts.map +1 -1
  26. package/dist/commands/prompt/join.d.ts +1 -1
  27. package/dist/commands/prompt/join.d.ts.map +1 -1
  28. package/dist/commands/prompt/log.d.ts +1 -1
  29. package/dist/commands/prompt/log.d.ts.map +1 -1
  30. package/dist/commands/prompt/pager.d.ts +1 -1
  31. package/dist/commands/prompt/pager.d.ts.map +1 -1
  32. package/dist/commands/prompt/spin.d.ts +1 -1
  33. package/dist/commands/prompt/spin.d.ts.map +1 -1
  34. package/dist/commands/prompt/style.d.ts +1 -1
  35. package/dist/commands/prompt/style.d.ts.map +1 -1
  36. package/dist/commands/prompt/write.d.ts +2 -2
  37. package/dist/commands/prompt/write.d.ts.map +1 -1
  38. package/dist/commands/release.d.ts +3 -3
  39. package/dist/commands/release.d.ts.map +1 -1
  40. package/dist/commands/shell.d.ts.map +1 -1
  41. package/dist/commands/test.d.ts +1 -1
  42. package/dist/commands/test.d.ts.map +1 -1
  43. package/dist/index.d.ts +3 -3
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/utils/install-check.d.ts +3 -0
  46. package/dist/utils/install-check.d.ts.map +1 -0
  47. package/dist/utils/release-state.d.ts +2 -2
  48. package/dist/utils/release-state.d.ts.map +1 -1
  49. package/package.json +27 -27
  50. package/dist/highlights-eq9cgrbb.scm +0 -604
  51. package/dist/highlights-ghv9g403.scm +0 -205
  52. package/dist/highlights-hk7bwhj4.scm +0 -284
  53. package/dist/highlights-r812a2qc.scm +0 -150
  54. package/dist/highlights-x6tmsnaa.scm +0 -115
  55. package/dist/injections-73j83es3.scm +0 -27
  56. package/dist/tree-sitter-javascript-nd0q4pe9.wasm +0 -0
  57. package/dist/tree-sitter-markdown-411r6y9b.wasm +0 -0
  58. package/dist/tree-sitter-markdown_inline-j5349f42.wasm +0 -0
  59. package/dist/tree-sitter-typescript-zxjzwt75.wasm +0 -0
  60. package/dist/tree-sitter-zig-e78zbjpm.wasm +0 -0
package/README.md CHANGED
@@ -31,6 +31,7 @@ bunli dev -- --help
31
31
  ```
32
32
 
33
33
  Development options:
34
+
34
35
  - `--entry, -e` - Entry file (defaults to auto-detect)
35
36
  - `--watch, -w` - Watch for changes (default: true)
36
37
  - `--inspect, -i` - Enable debugger
@@ -82,12 +83,14 @@ bunli generate --output ./types/commands.gen.ts
82
83
  ```
83
84
 
84
85
  Generate options:
86
+
85
87
  - `--entry, -e` - CLI entry file used for command discovery
86
88
  - `--directory` - Optional fallback command source directory
87
89
  - `--output, -o` - Output file path (default: ./.bunli/commands.gen.ts)
88
90
  - `--watch, -w` - Watch for changes and regenerate
89
91
 
90
92
  The generator creates type-safe command definitions with:
93
+
91
94
  - Autocomplete for command names and options
92
95
  - Type safety at compile time
93
96
  - IntelliSense for command metadata
@@ -125,6 +128,7 @@ bunli init --git false --install false
125
128
  ```
126
129
 
127
130
  Init options:
131
+
128
132
  - `--name, -n` - Project name
129
133
  - `--template, -t` - Project template (basic/advanced/monorepo)
130
134
  - `--dir, -d` - Directory to create project in
@@ -151,6 +155,7 @@ bunli test --all
151
155
  ```
152
156
 
153
157
  Test options:
158
+
154
159
  - `--pattern, -p` - Test file patterns
155
160
  - `--watch, -w` - Watch for changes
156
161
  - `--coverage, -c` - Generate coverage report
@@ -186,6 +191,7 @@ bunli release --github=true
186
191
  ```
187
192
 
188
193
  Release options:
194
+
189
195
  - `--version, -v` - Version to release (patch/minor/major/x.y.z)
190
196
  - `--tag, -t` - Git tag format
191
197
  - `--npm` - Publish to npm (`--npm=false` to disable)
@@ -199,6 +205,7 @@ Note: `bunli release` supports npm package release flows, including binary packa
199
205
  use the `bunli-releaser` GitHub Action.
200
206
 
201
207
  Resume behavior notes:
208
+
202
209
  - On failed non-dry runs, Bunli writes checkpoint state to `.bunli/release-state.json`.
203
210
  - Next `bunli release` auto-resumes from that state (with an interactive prompt in TTY shells).
204
211
  - Side-effectful steps (git tag/push, npm publish, GitHub release) are probed and skipped when already complete.
@@ -235,6 +242,7 @@ bunli build --targets all
235
242
  ```
236
243
 
237
244
  Supported platforms:
245
+
238
246
  - `darwin-arm64` - macOS Apple Silicon
239
247
  - `darwin-x64` - macOS Intel
240
248
  - `linux-arm64` - Linux ARM64
@@ -246,40 +254,41 @@ Supported platforms:
246
254
  Create a `bunli.config.ts` file in your project root:
247
255
 
248
256
  ```typescript
249
- import { defineConfig } from 'bunli'
257
+ import { defineConfig } from "bunli";
250
258
 
251
259
  export default defineConfig({
252
- name: 'my-cli',
253
- version: '1.0.0',
260
+ name: "my-cli",
261
+ version: "1.0.0",
254
262
 
255
263
  commands: {
256
- entry: './src/cli.ts',
257
- directory: './src/commands' // optional fallback hint
264
+ entry: "./src/cli.ts",
265
+ directory: "./src/commands", // optional fallback hint
258
266
  },
259
-
267
+
260
268
  build: {
261
- entry: './src/cli.ts',
262
- outdir: './dist',
263
- targets: ['darwin-arm64', 'linux-x64'], // Compile for these platforms
264
- compress: true, // Compress multi-platform builds
269
+ entry: "./src/cli.ts",
270
+ outdir: "./dist",
271
+ targets: ["darwin-arm64", "linux-x64"], // Compile for these platforms
272
+ compress: true, // Compress multi-platform builds
265
273
  minify: true,
266
- external: ['some-native-module']
274
+ external: ["some-native-module"],
267
275
  },
268
-
276
+
269
277
  dev: {
270
278
  watch: true,
271
- inspect: false
279
+ inspect: false,
272
280
  },
273
281
 
274
282
  tui: {
275
283
  renderer: {
276
- bufferMode: 'alternate' // or 'standard'
277
- }
278
- }
279
- })
284
+ bufferMode: "alternate", // or 'standard'
285
+ },
286
+ },
287
+ });
280
288
  ```
281
289
 
282
290
  Default `tui.renderer.bufferMode` policy:
291
+
283
292
  - `'standard'` by default
284
293
  - set `'alternate'` explicitly for fullscreen/blocking terminal flows
285
294