Files
can1357 ef852af986 feat(computer): implemented modular desktop backend and script workflows
- 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.
2026-08-02 19:46:25 +02:00

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();
}