ef852af986
- Replaced monolithic desktop native bindings and action batching with a modular cross-platform backend structure supporting Wayland, X11, macOS, and Win32. - Updated the computer tool schema and supervisor to execute persistent JavaScript script runs with timeout clamping and asynchronous tool calling. - Integrated accessibility (AX) tree snapshotting, node querying, and bounds-based hit testing across platform desktop layers. - Added native clipboard bindings and updated coding-agent prompts, renderers, and tests to validate script-based computer workflows.
12 lines
382 B
JavaScript
12 lines
382 B
JavaScript
import { loadNative } from "./loader-state.js";
|
|
|
|
/** Copy text to the clipboard, loading the native addon on first use. */
|
|
export function copyToClipboard(text) {
|
|
return loadNative().copyToClipboard(text);
|
|
}
|
|
|
|
/** Read an image from the clipboard, loading the native addon on first use. */
|
|
export function readImageFromClipboard() {
|
|
return loadNative().readImageFromClipboard();
|
|
}
|