replicas-cli 0.3.232 → 0.3.234
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17517,6 +17517,11 @@ Only one recording at a time. Re-running \`start\` while one is active fails - c
|
|
|
17517
17517
|
### \`replicas computer record stop\`
|
|
17518
17518
|
SIGINTs ffmpeg, verifies that the process has finalized the MP4, then prints the output path. A finalization timeout preserves the recording state so \`stop\` can be retried safely. To show the interaction in a PR or message, turn it into a short looping GIF with \`replicas media gif <path>\`, then upload with \`replicas media upload <path> --name "<name>"\`.
|
|
17519
17519
|
|
|
17520
|
+
### \`replicas computer mac <tool> ['<json>'] [--screenshot PATH] [--session NAME]\`
|
|
17521
|
+
Drives one app on the user's own Mac in the background, while they keep working: their cursor, focus and front window stay theirs. It works while they have this workspace open in the Replicas desktop app with computer use turned on; otherwise it says no Mac is connected. Each call runs one [Cua Driver tool](https://cua.ai/docs/cua-driver) and opens a live view of the window you're working in on this desktop, so the user can watch it in the \`Desktop\` tab.
|
|
17522
|
+
|
|
17523
|
+
Start with \`list_apps\` or \`launch_app '{"bundle_id":"com.apple.TextEdit"}'\` (never \`open\`, which brings the app forward), then \`get_window_state '{"pid":\u2026,"window_id":\u2026}'\` for the accessibility tree and a screenshot (\`--screenshot\` saves it), then act with \`click\`, \`type_text\`, \`press_key\`, \`set_value\` or \`scroll\` by \`element_token\`, and read the window again to verify. Type line breaks as a separate \`press_key\` Return: a newline inside \`type_text\` is dropped. Pass the same \`--session\` to keep element tokens valid across calls. Apps that open no window when launched in the background show one once you open a file with \`launch_app\`'s \`urls\`. \`get_guide\` explains everything else. Some actions, like a disabled menu item, need the app in front: ask the user before \`bring_to_front\`.
|
|
17524
|
+
|
|
17520
17525
|
## Patterns
|
|
17521
17526
|
|
|
17522
17527
|
### Browser action / state loop
|
|
@@ -30681,7 +30686,8 @@ function applyInterruptions(messages, events) {
|
|
|
30681
30686
|
insertDisplayMessageByTimestamp(result, {
|
|
30682
30687
|
id: `interruption-${event.timestamp}`,
|
|
30683
30688
|
type: "interruption",
|
|
30684
|
-
timestamp: event.timestamp
|
|
30689
|
+
timestamp: event.timestamp,
|
|
30690
|
+
...event.payload.steered === true ? { steered: true } : {}
|
|
30685
30691
|
});
|
|
30686
30692
|
}
|
|
30687
30693
|
let lastUserMs = null;
|
|
@@ -30700,6 +30706,7 @@ function applyInterruptions(messages, events) {
|
|
|
30700
30706
|
}
|
|
30701
30707
|
const ms = parseTimestampMs(msg.timestamp);
|
|
30702
30708
|
if (lastInterruption && ms - parseTimestampMs(lastInterruption.timestamp) <= INTERRUPTION_DEDUP_WINDOW_MS) {
|
|
30709
|
+
if (msg.steered) lastInterruption.steered = true;
|
|
30703
30710
|
continue;
|
|
30704
30711
|
}
|
|
30705
30712
|
lastInterruption = {
|
|
@@ -31408,7 +31415,7 @@ var CLI_VERSION;
|
|
|
31408
31415
|
var init_cli_version = __esm({
|
|
31409
31416
|
"../shared/src/cli-version.ts"() {
|
|
31410
31417
|
"use strict";
|
|
31411
|
-
CLI_VERSION = "0.3.
|
|
31418
|
+
CLI_VERSION = "0.3.234";
|
|
31412
31419
|
}
|
|
31413
31420
|
});
|
|
31414
31421
|
|