Repository navigation
refactor(openshell): trim internal exports - #107291
Conversation
|
Land-ready proof for exact head
Known gap: the corrected assertion did not get a second Testbox lease because reacquisition failed. Hosted CI intentionally not awaited under the maintainer's direct-land instruction. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6ec9f048ec
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "upload", | ||
| "--no-git-ignore", | ||
| backend.runtimeId, | ||
| expect.stringMatching(/\/seed\.txt$/), |
There was a problem hiding this comment.
Use a path-neutral matcher for the upload source path
When this extension test suite is run on Windows, uploadPathToRemote builds the uploaded local path with path.join(...), so the mocked CLI sees a ...\seed.txt source path. This POSIX-only regex only accepts /seed.txt, making the new test fail even though the backend behavior is correct; assert with path.basename(...) or a separator-neutral pattern instead.
Useful? React with 👍 / 👎.
What Problem This Solves
The shrink-only production Knip baseline grandfathered eleven internal exports under
extensions/openshell. Nine had no production, public entrypoint, runtime API, plugin SDK, dynamic, string, or lazy consumer.Why This Change Was Made
Privatize the nine safely migratable helpers and remove redundant SSH helper/type re-exports. Retarget behavior coverage through the backend factory, exec spec, upload flow, generated SSH session config, and canonical sandbox SDK. Keep the two exported shell-script constants because their symlink/path-safety assertions require direct script execution and lack an equivalent retained production seam.
User Impact
No sandbox CLI, config, plugin, or runtime behavior changes. Production source is net 8 lines smaller. On the latest base, the dead-export baseline shrinks from 837 to 828 and OpenShell shrinks from eleven entries to two retained seams.
Evidence
tbx_01kxftp0mc2xvz7kr5r6js9nc9: production Knip update/exact check, format, type-aware lint, extension types, and 54/55 OpenShell tests passed. The sole failure was a corrected test expectation (/workspaceversus the actual configured/sandboxremote root).Known proof gap: Testbox reacquisition failed twice after the initial runner cleanup, so the corrected assertion used the repo's narrow local wrapper. Hosted CI was intentionally not awaited under the maintainer's direct-land instruction.