You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rpc, computer, computerd, examples/mcp, docs: Add discovery commands to codemode
codemode gains subcommands: types prints every declaration, search and
describe reach the runtime's own discovery helpers so a script author
can find one method without reading everything, and pending lists what
a paused run is waiting on. CodemodeRPC carries the same five methods.
Approving or rejecting a paused run is deliberately not on the surface:
a run pauses because a connector asked for a human's decision, and the
process that wrote the script is not that human.
Two review findings are folded in. The proxy only ever forwarded the
literal /codemode, so a configured path could not be reached; the path
option is gone and one shared constant serves both sides. The CLI sets
process.exitCode instead of calling process.exit, so a large result
piped to another process drains before it ends.
Copy file name to clipboardExpand all lines: .changeset/codemode-cli-binary.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,4 @@
2
2
"@cloudflare/computerd": minor
3
3
---
4
4
5
-
Ships a second binary, codemode, next to computerd in the release artifacts and the computer-computerd-linux-x64 image. Run inside the container, it sends a script to the workspace's host and prints the result, or prints the host's TypeScript declarations with --types. It dials ws://computer.internal/codemode by default and needs no credentials.
5
+
Ships a second binary, codemode, next to computerd in the release artifacts and the computer-computerd-linux-x64 image. Run inside the container, it sends a script to the workspace's host and prints the result, with subcommands to print the host's TypeScript declarations, search and describe one method at a time, and list what a paused run is waiting on. It dials ws://computer.internal/codemode by default and needs no credentials.
Copy file name to clipboardExpand all lines: .changeset/codemode-rpc-interface.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,4 @@
2
2
"@cloudflare/computer-rpc": minor
3
3
---
4
4
5
-
Adds the CodemodeRPC interface, the code surface a process inside the container reaches by opening a WebSocket to the host's egress endpoint at /codemode. It carries describe, which returns the TypeScript declarations of the globals a script may call, and execute, which runs a script body and reports completed, paused, or error rather than rejecting.
5
+
Adds the CodemodeRPC interface, the code surface a process inside the container reaches by opening a WebSocket to the host's egress endpoint at /codemode. It carries types, search, and describe for discovering the globals a script may call, execute, which runs a script body and reports completed, paused, or error rather than rejecting, and pending, which lists what a paused run is waiting on. Approval is deliberately not on the surface.
0 commit comments