@agimon-ai/po-ios 0.0.1-alpha.76 → 0.0.1-alpha.78

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/README.md CHANGED
@@ -37,7 +37,7 @@ Isolated packed-source web acceptance verified a real 552 × 1200 simulator PNG,
37
37
 
38
38
  ## Package behavior
39
39
 
40
- Each server elects one global pool owner, including when a workspace selects the iOS layer. Servers using the same Po home share pool state through `po/db` (`ios_*` tables); simulators live at `<po home>/ios/devices`, never in the person's default set. Size it in `<po home>/config.yaml` (global only, read once per activation):
40
+ Each server elects one host-wide pool owner, including when a workspace selects the iOS layer. Servers using the same Po home share pool state through `po/db` (`ios_*` tables); simulators live at `<po home>/ios/devices`, never in the person's default set. Size it in `<po home>/config.yaml` (global only, read once per activation):
41
41
 
42
42
  ```yaml
43
43
  ios:
@@ -57,7 +57,7 @@ This is a partial implementation, not completion of the full iOS plan. Built-lay
57
57
 
58
58
  Physical devices: `ios.devices()` lists what CoreDevice sees (`xcrun devicectl list devices`), and `ios.acquireDevice({ udid })` leases a paired, reachable phone after the person approves it. An idle disconnected tunnel is checked with a bounded device-info request rather than rejected solely by its listed state. A phone lease shares the `ios_lease` table (`kind = 'device'`) so two sessions never hold one phone, but it has no `ios_device` row: the pool never boots, erases or counts it against `maxBooted`. Signed app install, uninstall, launch and console logs work without a runner. Phone `logs` is partial: `launch` keeps `devicectl device process launch --console` attached and buffers the app's stdout, stderr and NSLog lines (last 5000, 12 hours at most), because `log collect --device-udid` requires root. The unified system log, `process` and `subsystem` are not available on a phone.
59
59
 
60
- For phone accessibility and input, set `ios.device.developmentTeam` in the admitted global config and connect the phone by USB. First use builds and installs Po's own signed XCUITest runner with automatic provisioning. It binds only a USB IPv4 link-local address (`169.254.*`), requires a random per-run token and reuses the helper protocol. No WDA, Appium or iproxy is used. Observation selects a foreground app launched under this lease, otherwise SpringBoard. Release stops the runner and uninstalls its test host before freeing the lease, leaving the person's other apps installed. Cleanup failure holds the lease and can be retried. Phone screenshots, terminate and openUrl remain unavailable through `ios`; home, lock and Siri fail explicitly. Volume and rotation are unverified. An explicit bottom-edge swipe can leave an app.
60
+ For phone accessibility and input, set `ios.device.developmentTeam` in the admitted host config (`~/.po/config.yaml`) and connect the phone by USB. First use builds and installs Po's own signed XCUITest runner with automatic provisioning. It binds only a USB IPv4 link-local address (`169.254.*`), requires a random per-run token and reuses the helper protocol. No WDA, Appium or iproxy is used. Observation selects a foreground app launched under this lease, otherwise SpringBoard. Release stops the runner and uninstalls its test host before freeing the lease, leaving the person's other apps installed. Cleanup failure holds the lease and can be retried. Phone screenshots, terminate and openUrl remain unavailable through `ios`; home, lock and Siri fail explicitly. Volume and rotation are unverified. An explicit bottom-edge swipe can leave an app.
61
61
 
62
62
  Live phone evidence (iPhone 15 Pro, iOS 26.6.2, Xcode 27.1): listing by CoreDevice identifier and UDID, a wildcard development-profile build installed, launched and uninstalled, and `createDeviceCtl` console capture returned the sample app's stderr, stdout, NSLog and tick lines, then nothing after `forgetConsole`. Separate native runner trials verified probe, observation, tap, swipe and focused typing over USB. Home acknowledged without navigation, so it is now refused. A direct `devicectl` screenshot confirmed the typed text without submitting it; this does not establish `ios.screenshot` support. The probe runner was uninstalled. Automated service tests cover signing gates, protocol/authentication, cancellation and retryable cleanup. The initial built-layer phone run timed out waiting for launch status and was cleaned up separately. After the buffering fix, the approved built-layer rerun passed install, automatic runner observation, launch, waitFor, tap/count change, exact typing, secure-value exclusion, app console capture, explicit home refusal, sample uninstall and lease release. No lease or matching sample/runner app remained. Its keyboard-up swipe changed visible rows, but content scrolling was not established; the stronger scrolling result belongs to the separate platform-shell trial.
63
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/po-ios",
3
- "version": "0.0.1-alpha.76",
3
+ "version": "0.0.1-alpha.78",
4
4
  "description": "Leased iOS simulators and accessibility-first app control for Po sessions",
5
5
  "keywords": [
6
6
  "coding-agent",
@@ -68,23 +68,23 @@
68
68
  "access": "public"
69
69
  },
70
70
  "dependencies": {
71
- "@agimon-ai/po-artifact": "0.0.0-alpha.140",
72
- "@agimon-ai/po-config": "0.0.0-alpha.141",
73
- "@agimon-ai/po-core": "0.0.0-alpha.141",
74
- "@agimon-ai/po-db": "0.0.0-alpha.141",
75
- "@agimon-ai/po-web-components": "0.0.0-alpha.141",
71
+ "@agimon-ai/po-artifact": "0.0.0-alpha.142",
72
+ "@agimon-ai/po-config": "0.0.0-alpha.143",
73
+ "@agimon-ai/po-core": "0.0.0-alpha.143",
74
+ "@agimon-ai/po-db": "0.0.0-alpha.143",
75
+ "@agimon-ai/po-web-components": "0.0.0-alpha.143",
76
76
  "@deepseek-ai/cordis": "4.0.5",
77
77
  "@tanstack/react-store": "0.11.2",
78
78
  "react": "19.3.1",
79
79
  "typebox": "1.4.2"
80
80
  },
81
81
  "devDependencies": {
82
- "@agimon-ai/po-build": "0.0.0-alpha.141",
83
- "@agimon-ai/po-native-components": "0.0.0-alpha.141",
84
- "@agimon-ai/po-profile": "0.0.0-alpha.141",
85
- "@agimon-ai/po-vault": "0.0.0-alpha.141",
86
- "@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.141",
87
- "@agimon-ai/vibe-lint-plugin-po-web": "0.0.0-alpha.141",
82
+ "@agimon-ai/po-build": "0.0.0-alpha.143",
83
+ "@agimon-ai/po-native-components": "0.0.0-alpha.143",
84
+ "@agimon-ai/po-profile": "0.0.0-alpha.143",
85
+ "@agimon-ai/po-vault": "0.0.0-alpha.143",
86
+ "@agimon-ai/vibe-lint-plugin-po-extension": "0.0.0-alpha.143",
87
+ "@agimon-ai/vibe-lint-plugin-po-web": "0.0.0-alpha.143",
88
88
  "@earendil-works/pi-coding-agent": "1.5.1",
89
89
  "@types/node": "26.6.5",
90
90
  "@types/react": "19.3.0",
@@ -9,7 +9,7 @@ The `ios` namespace is a global in every code-mode `exec` script. Run `discover(
9
9
 
10
10
  ## The pool
11
11
 
12
- Servers using the same Po home share pool state through `po/db`. Each server elects one global pool owner, including when a workspace selects iOS. Po creates and owns simulators in its own device set; the person's own simulators are never touched. The person sets the size in `<po home>/config.yaml` under `ios.pool` (`maxBooted`, `maxDevices`, `waitTimeoutSeconds`); the owner reads it once per activation.
12
+ Servers using the same Po home share pool state through `po/db`. Each server elects one host-wide pool owner, including when a workspace selects iOS. Po creates and owns simulators in its own device set; the person's own simulators are never touched. The person sets the size in `<po home>/config.yaml` under `ios.pool` (`maxBooted`, `maxDevices`, `waitTimeoutSeconds`); the owner reads it once per activation.
13
13
 
14
14
  - `ios.acquire()` leases a device and returns `{ leaseId, udid, name }`. Calling it again returns the same lease, so a session holds one device unless it passes `separate: true`. Subagents share their root session's lease.
15
15
  - When the pool is full, `acquire` queues in order. When the wait runs out it throws `IOS_POOL_BUSY` with who holds what. Do not loop on it; tell the person, or release a device you hold.
@@ -108,7 +108,7 @@ await ios.release({ leaseId: phone.leaseId });
108
108
  ```
109
109
 
110
110
  - Unpaired phones are refused with `IOS_INVALID_ARGUMENT`. Idle disconnected tunnels are checked with a bounded device-info call. If a command reports an unreachable or locked phone, or missing Developer Mode, tell the person what to fix instead of retrying blindly.
111
- - Phone accessibility/input require `ios.device.developmentTeam` in global config, an unlocked Developer Mode phone and a USB cable. First use builds and installs a signed XCUITest runner, with a longer startup deadline. It listens only on USB link-local IPv4 and requires a per-run token. Without signing, basic app and console calls remain available.
111
+ - Phone accessibility/input require `ios.device.developmentTeam` in host config, an unlocked Developer Mode phone and a USB cable. First use builds and installs a signed XCUITest runner, with a longer startup deadline. It listens only on USB link-local IPv4 and requires a per-run token. Without signing, basic app and console calls remain available.
112
112
  - `observe`, `tap`, `type`, `swipe`, `waitFor` and `settle` use that runner. Observation selects a foreground app launched by this lease, otherwise SpringBoard. Launch the target app through `ios.launch` first, do not assume an app opened by tapping its icon becomes the observed target. Focus a text field before typing.
113
113
  - Phone home, lock and Siri are explicitly unavailable. Native volume APIs exist but their effect and rotation are unverified. An explicit swipe from the bottom edge upward can leave an app. `terminate` and `openUrl` remain simulator-only through this namespace.
114
114
  - Phone `screenshot` uses `devicectl device capture` and needs no runner or signing. Phone recording captures the screen over USB the way QuickTime does, because `devicectl` screen recording is unsupported on the phones tried. It needs a USB cable, an unlocked trusted phone, and Camera access for Po: the first recording asks the person through a macOS Camera prompt. A denial or a missing phone comes back as `IOS_COMMAND_FAILED` with the reason; tell the person what to fix. Setup can take over ten seconds before frames arrive, and two phones with the same name cannot be told apart.