@nomac/cli 0.21.2 → 0.21.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomac/cli",
3
- "version": "0.21.2",
3
+ "version": "0.21.3",
4
4
  "description": "A real cloud Mac for AI agents: Xcode, the iOS Simulator, signing, TestFlight and App Store publishing, by the minute, over MCP, SSH and HTTPS.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -159,7 +159,8 @@ async function uploadLink({ size, sha256, session_id }) {
159
159
  const link = await api("POST", `${phones}/${phone}/sync/upload`, { body: sha256 ? { size, sha256 } : {} });
160
160
  if (!sha256) return asText({ upload: link.upload, upload_url: link.upload_url, upload_command: link.upload_command, expires_at: link.expires_at,
161
161
  next: `Here, local_path does it in one call instead: phone_app_run or phone_tests_run with local_path (the project's folder) sends only what changed; phone_app_control install with local_path sends a .app. Otherwise run upload_command in the project's folder, then call phone_app_run or phone_tests_run with upload "${link.upload}"; the link takes a new upload until expires_at.` });
162
- return asText({ upload_url: link.upload_url, expires_at: link.expires_at, upload_command: `curl -fsS -T PATH_TO_ARCHIVE '${String(link.upload_url)}'`, next: `Upload the archive to upload_url (an HTTP PUT), then pass upload: "${sha256}" to phone_app_run, phone_tests_run or phone_app_control install.` });
162
+ // upload is what the other tools take, as an open link's answer names it: here the archive's own sha256.
163
+ return asText({ upload: sha256, upload_url: link.upload_url, expires_at: link.expires_at, upload_command: `curl -fsS -T PATH_TO_ARCHIVE '${String(link.upload_url)}'`, next: `Upload the archive to upload_url (an HTTP PUT), then pass upload: "${sha256}" to phone_app_run, phone_tests_run or phone_app_control install.` });
163
164
  }
164
165
 
165
166
  const SETTINGS = [["appearance", "appearance"], ["locale", "locale"], ["timezone", "time_zone"], ["location", "location"]];