Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .opencode/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"@opencode-ai/plugin": "1.2.24"
"@opencode-ai/plugin": "1.2.25"
Copy link
Contributor

@dom96 dom96 Mar 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be reverted?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, bonk is keep pushing changes to PRs. Will revert before merge.

}
}
9 changes: 9 additions & 0 deletions src/pyodide/python-entrypoint-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,16 @@ export type PyodideEntrypointHelper = {
workerEntrypoint: any;
patchWaitUntil: typeof patchWaitUntil;
patch_env_helper: (patch: unknown) => Generator<void>;
callRpcMethod: (binding: any, method: string, ...args: any[]) => any;
};

// Calls an RPC method on a JS binding entirely from the JS side, bypassing
// Pyodide's JsProxy attribute resolution. Pyodide adds extra methods such as
// send/throw to the JsProxy which can shadow RPC methods with the same name.
function callRpcMethod(binding: any, method: string, ...args: any[]): any {
return binding[method](...args);
}

// Function to import JavaScript modules from Python
let _pyodide_entrypoint_helper: PyodideEntrypointHelper | null = null;

Expand All @@ -106,6 +114,7 @@ export async function setDoAnImport(
workerEntrypoint,
patchWaitUntil,
patch_env_helper,
callRpcMethod,
};
}

Expand Down
Loading