feat: 100% TypeScript trunk — global config, publish-as-skill, delete Go#1
Open
Jackyffight wants to merge 6 commits into
Open
feat: 100% TypeScript trunk — global config, publish-as-skill, delete Go#1Jackyffight wants to merge 6 commits into
Jackyffight wants to merge 6 commits into
Conversation
…e Go
Adopts the native-TS rust-tui-rewrite line as the trunk and ports the three
genuinely-unique deltas from the (now superseded) vbox-publish line on top,
instead of shipping vbox-publish's from-scratch re-migration off an older base.
Delta ③ — config is GLOBAL only:
model / provider / api key / base_url / image model all resolve from
~/.openmelon/{config,credentials}.json + env, never the workdir. New helpers
in core/config.ts (resolveProvider, resolveApiKey, setGlobalDefaults,
setGlobalBaseUrl, setGlobalApiKey, unsetGlobalApiKey). nativeConfig, bootstrap,
App, and `project` commands rewired off project-level defaults/providers.
reasoning_effort stays the one per-project behaviour knob. Runtime tests now
isolate OPENMELON_HOME so they never hit the real config or API.
Delta ② — publish-as-skill:
bundle @e8s/vbox-cli as a tui dependency and prepend node_modules/.bin to the
bash tool's PATH (nativeTools bashEnv) so the agent runs vbox-cli itself; add
the "Publishing to V-Box" capability paragraph to the system prompt.
Delta ① — delete leftover Go:
remove cmd/ internal/ pkg/ npm/ go.mod go.sum; tui/ becomes the published
@e8s/openmelon package; Makefile + scripts/release.sh + root CLAUDE.md +
README rewritten for the pure-TS layout.
Build green; 27/28 tests pass (the 1 failure is a pre-existing /tmp realpath
symlink test, unrelated to this change).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adopts the native-TS rust-tui-rewrite line as the canonical trunk and ports the three genuinely-unique deltas from the (now superseded)
feat/vbox-publishline on top — instead of shipping vbox-publish's from-scratch re-migration off an older base.Two parallel TS migrations had diverged from the same
Add TS-first TUI bridgecommit:rust-tui-rewrite(mature: native TS runtime with tests, inputEditor, markdown, web tools, bash approvals)vbox-publish(a less-mature re-migration off an older base)This branch = rust-tui-rewrite + the 3 deltas.
③ Config is GLOBAL only
model / provider / API key / base_url / image model resolve from
~/.openmelon/{config,credentials}.json+ env, never the workdir. Newcore/config.tshelpers (resolveProvider,resolveApiKey,setGlobalDefaults,setGlobalBaseUrl,setGlobalApiKey,unsetGlobalApiKey);nativeConfig/bootstrap/App/projectcommands rewired off project-level defaults & providers.reasoning_effortstays the one per-project behaviour knob. Runtime tests now isolateOPENMELON_HOMEso they never touch the real config or API key.② Publish-as-skill
@e8s/vbox-cliis bundled as atui/dependency andnode_modules/.binis prepended to the bash tool's PATH (nativeTools.bashEnv) so the agent runsvbox-cli upload/vbox-cli postitself. The system prompt gets a "Publishing to V-Box" paragraph. No/publishcommand.① Delete leftover Go
cmd/ internal/ pkg/ npm/ go.mod go.sumremoved (121 files).tui/is now the published@e8s/openmelonpackage; Makefile,scripts/release.sh, rootCLAUDE.md, and README rewritten for the pure-TS layout.Verification
Clean build; 27/28 tests pass. The one failure (
trust accepts symlink-equivalent project paths) is a pre-existing/tmp→/private/tmprealpath issue on this line, not a regression from this PR.🤖 Generated with Claude Code