Add external Codemode runtime adapter example - #28
Draft
scuffi wants to merge 1 commit into
Draft
Conversation
commit: |
aron-cf
changed the base branch from
workspace-runtime-execution
to
workspace-javascript-backend
July 31, 2026 12:11
scuffi
force-pushed
the
workspace-codemode-adapter
branch
3 times, most recently
from
July 31, 2026 12:35
6b8cd20 to
be031a6
Compare
Base automatically changed from
workspace-javascript-backend
to
workspace-runtime-execution
July 31, 2026 14:14
scuffi
force-pushed
the
workspace-codemode-adapter
branch
from
July 31, 2026 14:38
be031a6 to
c6048e3
Compare
aron-cf
force-pushed
the
workspace-codemode-adapter
branch
from
July 31, 2026 14:38
c6048e3 to
f1cf132
Compare
scuffi
force-pushed
the
workspace-codemode-adapter
branch
from
July 31, 2026 15:10
c6048e3 to
509bf0d
Compare
Contributor
|
Trying to figure out if we need this on top of the existing backend. I'm not sure what it would be used for. What are your thoughts? |
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
@cloudflare/codemodeto the Computer runtime through a private trusted moduleundefinedacross the runtime bridgePOST /runreference harness@cloudflare/computercoreTrust model
The adapter backend is host-owned and private. Execution tokens grant only the providers/connectors installed for that call. The executor serializes calls, the dispatcher rejects overlapping tokens, and authority is revoked before retained execution cleanup. The checked-in HTTP route accepts no caller code, provider set, backend, or Workspace identity. It remains an unauthenticated local harness; production services must add tenant identity, authorization, and quotas.
Validation
npm run checknpm run build --workspaces --if-presentnpm run typechecknpm test --workspaces --if-presentnpx wrangler deploy --dry-run --outdir /tmp/computer-codemode-finalnpm ci --ignore-scripts --dry-run --no-audit --no-fundgit diff --check origin/main..HEAD