replicas-cli 0.3.419 → 0.3.421

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.
Files changed (2) hide show
  1. package/dist/index.cjs +12 -5
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -23391,7 +23391,8 @@ Use this when:
23391
23391
  - A task requires interacting with a website, web app, or desktop application that has no usable API
23392
23392
  - You want the user to watch the agent work - they can open the \`Desktop\` tab, or you can share the URL from \`replicas computer info\`
23393
23393
  - You're testing UI changes in a browser before reporting them as done
23394
- - You want to record a screen capture of a task as proof to share back`;
23394
+ - You want to record a screen capture of a task as proof to share back
23395
+ - You need to open or use an app on the user's Mac: use \`replicas computer mac\`, never \`ssh\` with \`open\` or AppleScript, which can switch the user's view`;
23395
23396
  REFERENCE = `# Computer use (Linux desktop control)
23396
23397
 
23397
23398
  Every Replicas workspace boots with a full Linux desktop stack - Xvfb (1920\xD71080), openbox, tint2, PulseAudio, ffmpeg, and Google Chrome. The engine auto-registers the H.264 and Opus viewer (port 6080) as an authenticated preview at startup, so the dashboard \`Desktop\` tab is live the moment the workspace is up. You drive the desktop through the \`replicas computer\` CLI.
@@ -24709,7 +24710,7 @@ var init_local_computer = __esm({
24709
24710
  "../shared/src/default-skills/replicas-agent/abilities/local-computer.ts"() {
24710
24711
  "use strict";
24711
24712
  SECTION8 = `### The user's computer
24712
- Run commands on the user's own Mac or Linux computer over \`ssh <name>\`, such as an Xcode build, a simulator, or a tool that only exists there. Your instructions name the computers this workspace can reach, either through the desktop app's local control or as devices. With none, ask the user for theirs with \`replicas local-control request\`.
24713
+ Run commands on the user's own Mac or Linux computer over \`ssh <name>\`, such as an Xcode build, a simulator, or a tool that only exists there. Your instructions name the computers this workspace can reach, either through the desktop app's local control or as devices. With none, ask the user for theirs with \`replicas local-control request\`. To open or use an app on their Mac, use \`replicas computer mac\` instead (\`references/COMPUTER-USE.md\`), so the user's view never switches.
24713
24714
 
24714
24715
  **Reference:** \`references/LOCAL-COMPUTER.md\`
24715
24716
 
@@ -24732,7 +24733,13 @@ replicas local-control request --reason "Build and run the iOS app in the Simula
24732
24733
 
24733
24734
  It asks the user above the chat composer to let this workspace use their computer and to open the desktop app, waits until their computer connects, and prints its name. If it stops waiting first, end your turn and say what you need the computer for; you get a message when the user answers.
24734
24735
 
24735
- It is a personal machine with the user's files, accounts and running apps. Change only what the task needs, keep your files in one folder, and ask before anything destructive, slow to undo, or visible on their screen (opening apps, booting a simulator window, changing settings).
24736
+ It is a personal machine with the user's files, accounts and running apps. Change only what the task needs, keep your files in one folder, and ask before anything destructive, slow to undo, or visible on their screen (bringing an app to the front, booting a simulator window, changing settings).
24737
+
24738
+ ## Apps on a Mac: use \`replicas computer mac\`, not \`ssh\`
24739
+
24740
+ To open or use an app (launch it, click, type, play music, read its window), use \`replicas computer mac\` (see \`references/COMPUTER-USE.md\`). It keeps the app in the background, so the user's front window and focus stay theirs, and the user sees what you do in Replicas. It takes no host: it drives the Mac connected through the desktop app (a \`desktop-*\` host). When you're working on a different computer, ask the user before using it. \`open\`, \`osascript\` and other commands over \`ssh\` can bring an app to the front and switch the user's view, and they don't show up in Replicas.
24741
+
24742
+ Use \`ssh\` when it makes more sense: files, shell commands, builds, the Simulator through \`xcrun simctl\`, and quick read-only checks (\`osascript\` asking an app what it is doing) that change nothing on screen.
24736
24743
 
24737
24744
  ## Running commands
24738
24745
 
@@ -24789,7 +24796,7 @@ ssh mac 'xcodebuild -version; xcrun simctl list runtimes; xcrun simctl list devi
24789
24796
  LOCAL_COMPUTER_ABILITY = {
24790
24797
  label: "User's computer",
24791
24798
  description: "Run commands, builds and simulators on the user's own Mac or Linux computer over `ssh`.",
24792
- bullet: "- Running commands on the user's own computer (`ssh <name>`), such as a local Xcode build or the iOS Simulator",
24799
+ bullet: "- Running commands on the user's own computer (`ssh <name>`), such as a local Xcode build or the iOS Simulator, or opening and using an app on their Mac in the background (`replicas computer mac`, never `ssh` with `open` or AppleScript)",
24793
24800
  section: SECTION8,
24794
24801
  referenceFile: { name: "LOCAL-COMPUTER.md", content: REFERENCE8 }
24795
24802
  };
@@ -38358,7 +38365,7 @@ var CLI_VERSION;
38358
38365
  var init_cli_version = __esm({
38359
38366
  "../shared/src/cli-version.ts"() {
38360
38367
  "use strict";
38361
- CLI_VERSION = "0.3.419";
38368
+ CLI_VERSION = "0.3.421";
38362
38369
  }
38363
38370
  });
38364
38371
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.419",
3
+ "version": "0.3.421",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {