fix: suppress ExperimentalWarning, PEP 668 guidance, setup help (#116) #117
Reference in New Issue
Block a user
Delete Branch "fix/116-setup-ux-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Address #116 feedback (items 1, 2, 4, 5; item 3 skipped per decision).
Changes
#1 + #4: ExperimentalWarning suppressed
All 5 CLI bins (
uwf,uwf-hermes,uwf-claude-code,uwf-builtin,uwf-mock) now use:Root cause was
@ocas/fsstatically importingnode:sqlite— ESM hoisting means no runtime patch can intercept it. Shebang is the only reliable approach.Removed the
NODE_OPTIONSinjection fromthread.tsspawn (redundant now).#2: PEP 668 pip install guidance
Bootstrap now offers 3 options:
#5: setup --help interactive mode
uwf setupdescription now says "Run without options for interactive wizard."Tests
806/806 passing ✅ (shebang test updated to accept
-Sflag)Ref
Fixes #116
LGTM ✅
shebang —
#!/usr/bin/env -S node --disable-warning=ExperimentalWarning是正解,从源头压掉 warning,不用在 spawn 层注入 NODE_OPTIONS。5 个 bin 全改了,spawn 的 env override 也同步删掉了,干净。issue-551 测试也放宽了 shebang 匹配。PEP 668 — venv/pipx/source 三种方式都列出来,覆盖了主流 Linux 发行版的情况。
setup --help — description 加了 "Run without options for interactive wizard",一行解决。