refactor: adopt src/tests/scripts layout and ship options.schema.json - #7
Merged
Merged
Conversation
#8) Verify the packed schema export and harden CI on the Node 26 baseline. - Packed-artifact step asserts the tarball contains package/options.schema.json and that the opencode2-tps/options.schema.json export resolves through the exports map (with the JSON import attribute) with the expected title. - scripts/check-compatibility.mjs resolves node_modules/.bin against the script location instead of cwd and execs @opencode/cli's real bin target (bin/opencode2.exe) instead of npm's .bin wrapper, dropping the process.platform branch. - CI node-version moves 24 -> 26.4.0 to match @opentui/core's documented floor; @types/node follows to ^26.0.0 with regenerated lockfile. - The two setInterval test doubles cast to typeof globalThis.setInterval for Node 26's conditional rest-args typing; no runtime source changes in src/.
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.
Splits the root monolith into src/debug.ts, src/tracker.ts, src/options.ts and src/plugin.tsx behind the tui.tsx shim, moves tests into tests/ (split by module plus a new options-schema agreement test) and scripts into scripts/. Ships options.schema.json (exported and packed) pinned to the runtime constants. check-compatibility now also verifies the README floor; CI drops the redundant beta-tag lookup and asserts the packed entrypoint id. Verified locally: lint, check, test (68 pass), build, compatibility, and a pack-install-import cycle.