Repository navigation
Conversation
🦋 Changeset detectedLatest commit: 3aa626e The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Host modules for `WorkerJavaScriptBackend`, and the source modules a
host provides beside them, now use `codemode:*` specifiers, so
isolate code writes `import { status } from "codemode:git"` instead
of `"ws:git"`. The built-in modules, the AI SDK and pi tool bindings,
the docs, and the rlm example move to the new prefix. A host module
configured under `ws:` now throws when the backend is constructed.
One script-runner test matched a longer slice of a link error than
the 64-byte stderr limit keeps once the specifier grows, so it now
matches the start of the message.
aron-cf
force-pushed
the
codemode-module-prefix
branch
from
October 27, 2026 21:11
2635480 to
76fc6a7
Compare
commit: |
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.
Host modules for
WorkerJavaScriptBackendused aws:prefix. It reads like a WebSocket URL, and it doesn't tell the person writing isolate code where these modules come from. This change renames the prefix tocodemode:. Source modules that a host provides under the same names move tocodemode:*too.This breaks existing setups, and there's no alias. A host module configured under
ws:now throws when the backend is constructed, so a missed rename fails at startup, not partway through a run. The changeset tells users to rename both theirmoduleskeys and their imports. Existing changelog entries still sayws:, because they describe past releases.The built-in modules, the AI SDK and pi tool bindings, and the
examples/rlmexample (codemode:model) use the new prefix. The docs moved over too, including thedocs/17_isolate_javascript.mdanchors such as#codemodetools.Existing tests now use the new prefix, including the construction test that rejects host modules outside
codemode:*. One script-runner test caps stderr at 64 bytes, and the longer prefix cut its link error short ofdoes not provide an export. It now checks fordoes not provide. To verify locally: