You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setup wizard fails with error on latest version #10
When running bunx @cortexkit/aft-opencode@latest setup the wizard fails with an error pointing to non-existing type.
What happened?
The error:
$ bunx @cortexkit/aft-opencode@latest setup
file:///private/var/folders/yv/24zcyrzn0tsdg78xckk5mx0c0000gp/T/bunx-502-@cortexkit/aft-opencode@latest/node_modules/@cortexkit/aft-opencode/dist/cli.js:9528
import { styleText as t, stripVTControlCharacters as ne } from "node:util";
^^^^^^^^^
SyntaxError: The requested module 'node:util' does not provide an export named 'styleText'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
Node.js v19.9.0
Root cause: `bunx` honored the package's `#!/usr/bin/env node` shebang and delegated execution to your Node 19.9.0, which lacks `node:util.styleText` (added in Node 20.12). The CLI's `@clack/prompts` dependency requires that export.
Fix: Use `bunx --bun` instead of `bunx`. The `--bun` flag tells bun to run the JavaScript directly with its own runtime, completely bypassing the node shebang.
Activity
ualtinok commentedon Apr 18, 2026
Fixed in v0.13.1.
Root cause: `bunx` honored the package's `#!/usr/bin/env node` shebang and delegated execution to your Node 19.9.0, which lacks `node:util.styleText` (added in Node 20.12). The CLI's `@clack/prompts` dependency requires that export.
Fix: Use `bunx --bun` instead of `bunx`. The `--bun` flag tells bun to run the JavaScript directly with its own runtime, completely bypassing the node shebang.
Updated command:
```bash
bunx --bun @cortexkit/aft-opencode@latest setup
```
All documented commands in the README and CLI help now use `--bun`. Thanks for reporting!
fix(cli): use bunx --bun to bypass node shebang on older Node runtimes
fix: address second council audit — 33 confirmed findings + Oracle fo…
fix(imports): namespace imports distinct from side-effect, sort by ca…
fix(lsp,transaction,context): close 5 v0.18 council findings on LSP c…
test(rust): integration coverage for council fixes (#9, #10, #24, #25, …
fix(aft): fail ambiguous move_symbol requests (#10)
fix(bash_background): v0.21.1 audit batch — IO+lock, GC, canonicaliza…
fix(tests): unpin bg-notifications + bridge recovery from real timers
fix(semantic): bound degraded-grep fallback + cap interactive query e…
fix(context): normalize the status-bar filter root (verbatim class, #10)