bun build caches Commander.js from npm, making postinstall sed patch
ineffective. Directly changed the flag to single-char -D in:
- src/main.tsx (Option definition)
- src/utils/debug.ts (argv check)
Removed Commander.js patching from postinstall.sh.
The source uses -d2e flag which Commander.js rejects (single-char only).
postinstall.sh now patches both:
1. shortFlagExp regex: /^-[^-]$/ → /^-[^-]+$/
2. single-char restriction check disabled
Users no longer need to manually patch node_modules after bun install.
- scripts/postinstall.sh auto-creates @ant/* stubs after bun install
- Add turndown to package.json dependencies
- Update both READMEs with postinstall note in build steps
- Update missing packages section to explain postinstall mechanism
- Create src/utils/useEffectEvent.ts (useRef + useCallback shim)
- Replace react imports of useEffectEvent in BackgroundTasksDialog and AppState
- CLI now boots into trust dialog successfully
- assertMinVersion: always pass (skip remote version check)
- validateForceLoginOrg: skip in both interactive and non-interactive
- bundle.js: auto-invoke main() on load
Now 'bun dist/bundle.js --help' works without API key.
Squash the imported source snapshot and follow-up documentation history
into one root commit so the archive starts from a single coherent state.
Constraint: Repository intentionally tracks an analyzed Claude Code source snapshot
Constraint: Author and committer must be instructkr <no-contact@instruct.kr>
Rejected: Preserve the four-step import/docs history | user explicitly requested one squashed commit
Confidence: high
Scope-risk: broad
Reversibility: clean
Directive: Keep future analysis and refactor commits separate from this archive baseline
Tested: git status clean; local history rewritten to one commit; force-pushed main to origin and instructkr
Not-tested: Fresh clone verification after push