Repository navigation
refactor: rename leftover OPENCODE_* env, flatten packages/sdk, drop dead IDE caller - #2593
Merged
Merged
Conversation
Point oxlint $schema at the local node_modules copy and remove the CLAUDE.md → AGENTS.md symlink. Start the opencode-env-and-sdk-flat feature document on this branch.
SDK server helpers now write MIMOCODE_CONFIG_CONTENT (the name the CLI actually reads). Build defines OPENCODE_MIGRATIONS/WORKER_PATH/LIBC become MIMOCODE_*, and the ACP README documents the real MIMOCODE_ENABLE_QUESTION_TOOL flag. True opencode surfaces (ENABLE_OPENCODE_SKILLS, models.dev OPENCODE_API_KEY fixtures) stay; OPENCODE_CALLER is deferred for a follow-up removal.
Drop the unused committed openapi.json snapshot (no in-repo reader; codegen uses a private temp schema). Promote the JS package to packages/sdk so workspaces, tsconfigs, and scripts no longer need the nested js/ path. Also fix the stale build.ts cwd (../../opencode → ../cli) left over from the packages/cli rename.
Match packages/plugin/script/publish.ts depth. Finalize the opencode-env-and-sdk-flat feature document (delivered).
No in-repo IDE extension sets OPENCODE_CALLER any more. Drop alreadyInstalled(), the sst-dev.opencode install path, and unused Ide errors/event. Keep TERM_PROGRAM/GIT_ASKPASS ide() detection. Separate from the rename-only commits so the env rename stays a pure symbol rename.
Final delivery does not need a durable spec.
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.
Summary
OPENCODE_*→MIMOCODE_*(SDKCONFIG_CONTENT, build definesMIGRATIONS/WORKER_PATH/LIBC, ACP README question-tool flag). Keep genuine opencode surfaces (MIMOCODE_ENABLE_OPENCODE_SKILLS, models.devOPENCODE_API_KEYfixtures).packages/sdk/js→packages/sdkand delete the unused committedopenapi.jsonsnapshot (no in-repo reader; codegen uses a private temp schema).OPENCODE_CALLER/alreadyInstalled()and thesst-dev.opencodeinstall surface in a separate commit.$schema→ localnode_modulescopy; dropCLAUDE.mdsymlink.packages/sdk/script/build.tsgenerate cwd (../../opencode→../cli) left by the earlierpackages/clirename, and align publishREADME/LICENSEpaths after the flatten.Verification
bun ci— PASS (frozen lockfile)bun typecheck— PASSbun test test/ide/ide.test.ts test/config/config.test.ts— PASS (96; ide re-checked 7 pass after caller removal)OPENCODE_CALLER,packages/sdk/js— empty outside historical docsf40c76ac..b6ae3cac— no critical findings