@agimon-ai/po-ios 0.0.1-alpha.6 → 0.0.1-alpha.60

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 (29) hide show
  1. package/dist/{contracts-BQjfOjy0.mjs → contracts-C1z6efHT.mjs} +11 -3
  2. package/dist/contracts-C1z6efHT.mjs.map +1 -0
  3. package/dist/{contracts-EZxEDrrj.cjs → contracts-fijOu6K9.cjs} +28 -2
  4. package/dist/contracts-fijOu6K9.cjs.map +1 -0
  5. package/dist/extensions/native.mjs +101 -125
  6. package/dist/extensions/native.mjs.map +1 -1
  7. package/dist/extensions/server.cjs +557 -88
  8. package/dist/extensions/server.cjs.map +1 -1
  9. package/dist/extensions/server.mjs +557 -88
  10. package/dist/extensions/server.mjs.map +1 -1
  11. package/dist/extensions/web.mjs +163 -167
  12. package/dist/extensions/web.mjs.map +1 -1
  13. package/dist/index.cjs +1 -1
  14. package/dist/index.d.mts +44 -2
  15. package/dist/index.d.mts.map +1 -1
  16. package/dist/index.mjs +1 -1
  17. package/native/device-runner/PoRunnerUITests/Runner.swift +27 -9
  18. package/native/sim-helper/Sources/PoIosCore/Compaction.swift +25 -20
  19. package/native/sim-helper/Sources/PoIosCore/Protocol.swift +31 -3
  20. package/native/sim-helper/Sources/PoIosSimHelper/Backends.swift +41 -12
  21. package/native/sim-helper/Sources/PoIosSimHelper/PrivateApis.swift +5 -0
  22. package/native/sim-helper/Sources/PoIosSimHelper/ScreenRecorder.swift +102 -0
  23. package/native/sim-helper/Sources/PoIosSimHelper/main.swift +12 -3
  24. package/native/sim-helper/Tests/PoIosCoreTests/CompactionTests.swift +41 -18
  25. package/native/sim-helper/Tests/PoIosCoreTests/ProtocolTests.swift +36 -0
  26. package/package.json +72 -14
  27. package/src/prompts/codemode-how-to-ios/SKILL.md +33 -2
  28. package/dist/contracts-BQjfOjy0.mjs.map +0 -1
  29. package/dist/contracts-EZxEDrrj.cjs.map +0 -1
@@ -35,7 +35,8 @@ const IOS_ERROR_CODES = [
35
35
  "IOS_HELPER_UNAVAILABLE",
36
36
  "IOS_ELEMENT_STALE",
37
37
  "IOS_AMBIGUOUS",
38
- "IOS_NO_MATCH"
38
+ "IOS_NO_MATCH",
39
+ "IOS_OBSERVE_TOO_LARGE"
39
40
  ];
40
41
  /** The resident Swift helper that reads accessibility and sends touches; built from source on first use. */
41
42
  const HELPER_PRODUCT = "po-ios-sim-helper";
@@ -48,6 +49,7 @@ const HELPER_SOURCES = [
48
49
  "Sources/PoIosSimHelper/main.swift",
49
50
  "Sources/PoIosSimHelper/PrivateApis.swift",
50
51
  "Sources/PoIosSimHelper/Backends.swift",
52
+ "Sources/PoIosSimHelper/ScreenRecorder.swift",
51
53
  "Tests/PoIosCoreTests/ProtocolTests.swift",
52
54
  "Tests/PoIosCoreTests/CompactionTests.swift"
53
55
  ];
@@ -60,12 +62,18 @@ const HELPER_MAX_LINE_CHARS = 8388608;
60
62
  const WAIT_MAX_POLL_MS = 1e3;
61
63
  const WAIT_DEFAULT_MS = 1e4;
62
64
  const SETTLE_DEFAULT_MS = 5e3;
65
+ /** Observe results above this many UTF-8 bytes go to a line file unless the caller picks an output. */
66
+ const OBSERVE_INLINE_MAX_BYTES = 1e4;
67
+ /** A recorder that exits this soon after starting failed to start. */
68
+ const RECORDING_EARLY_EXIT_MS = 2e3;
69
+ /** How long a stopped recorder may take to finalize its file before it is killed. */
70
+ const RECORDING_FINALIZE_MS = 1e4;
63
71
  //#endregion
64
72
  //#region src/schemas/contracts.ts
65
73
  /** Bound once at the global level; every session leases from the same pool. */
66
74
  const IOS_POOL_CONTRACT = defineServiceContract(IOS_POOL_SERVICE, { scope: "global" });
67
75
  const IOS_SETTINGS_CONTRACT = defineServiceContract("po/ios-settings", { scope: "global" });
68
76
  //#endregion
69
- export { MAX_COMMAND_OUTPUT_CHARS as C, SIMCTL_TIMEOUT_MS as D, SETTLE_DEFAULT_MS as E, WAIT_DEFAULT_MS as O, JANITOR_INTERVAL_MS as S, SCREENSHOT_MAX_PIXELS as T, IOS_ERROR_CODES as _, CONSOLE_MAX_MS as a, IOS_POOL_SERVICE as b, HELPER_MAX_LINE_CHARS as c, HELPER_RESTART_WINDOW_MS as d, HELPER_SOURCES as f, IOS_DEVICE_SET_DIRECTORY as g, IOS_DEVICE_NAME_PREFIX as h, CONSOLE_MAX_LINES as i, WAIT_MAX_POLL_MS as k, HELPER_NATIVE_DIRECTORY as l, HELPER_TIMEOUT_MS as m, IOS_SETTINGS_CONTRACT as n, HELPER_BUILD_LOCK as o, HELPER_SOURCE_DIRECTORY as p, BOOT_TIMEOUT_MS as r, HELPER_BUILD_TIMEOUT_MS as s, IOS_POOL_CONTRACT as t, HELPER_PRODUCT as u, IOS_PACKAGE as v, ORPHAN_GRACE_MS as w, IOS_TOOL_PATH as x, IOS_POOL_DEFAULTS as y };
77
+ export { SIMCTL_TIMEOUT_MS as A, MAX_COMMAND_OUTPUT_CHARS as C, RECORDING_FINALIZE_MS as D, RECORDING_EARLY_EXIT_MS as E, WAIT_MAX_POLL_MS as M, SCREENSHOT_MAX_PIXELS as O, JANITOR_INTERVAL_MS as S, ORPHAN_GRACE_MS as T, IOS_ERROR_CODES as _, CONSOLE_MAX_MS as a, IOS_POOL_SERVICE as b, HELPER_MAX_LINE_CHARS as c, HELPER_RESTART_WINDOW_MS as d, HELPER_SOURCES as f, IOS_DEVICE_SET_DIRECTORY as g, IOS_DEVICE_NAME_PREFIX as h, CONSOLE_MAX_LINES as i, WAIT_DEFAULT_MS as j, SETTLE_DEFAULT_MS as k, HELPER_NATIVE_DIRECTORY as l, HELPER_TIMEOUT_MS as m, IOS_SETTINGS_CONTRACT as n, HELPER_BUILD_LOCK as o, HELPER_SOURCE_DIRECTORY as p, BOOT_TIMEOUT_MS as r, HELPER_BUILD_TIMEOUT_MS as s, IOS_POOL_CONTRACT as t, HELPER_PRODUCT as u, IOS_PACKAGE as v, OBSERVE_INLINE_MAX_BYTES as w, IOS_TOOL_PATH as x, IOS_POOL_DEFAULTS as y };
70
78
 
71
- //# sourceMappingURL=contracts-BQjfOjy0.mjs.map
79
+ //# sourceMappingURL=contracts-C1z6efHT.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts-C1z6efHT.mjs","names":[],"sources":["../src/constants/ios.ts","../src/schemas/contracts.ts"],"sourcesContent":["export const IOS_NAMESPACE = 'ios';\nexport const IOS_PACKAGE = '@agimon-ai/po-ios';\nexport const IOS_POOL_SERVICE = 'po/ios-pool';\n\n/** Table prefix in the shared `po/db`. */\nexport const IOS_DB_PREFIX = 'ios';\n/** `<po home>/ios/devices` is the simulator device set Po owns; the person's own simulators live elsewhere. */\nexport const IOS_DIRECTORY = 'ios';\nexport const IOS_DEVICE_SET_DIRECTORY = 'devices';\nexport const IOS_DEVICE_NAME_PREFIX = 'po-pool-';\n\nexport const IOS_POOL_DEFAULTS = {\n minBooted: 0,\n maxBooted: 2,\n maxDevices: 4,\n idleShutdownMinutes: 10,\n waitTimeoutSeconds: 120,\n} as const;\n\nexport const JANITOR_INTERVAL_MS = 60_000;\nexport const QUEUE_POLL_MS = 750;\n/** A set member with no row must stay orphaned this long before it is deleted, so a create in flight survives. */\nexport const ORPHAN_GRACE_MS = 5 * 60_000;\nexport const SIMCTL_TIMEOUT_MS = 120_000;\nexport const BOOT_TIMEOUT_MS = 300_000;\nexport const MAX_COMMAND_OUTPUT_CHARS = 8 * 1024 * 1024;\nexport const SCREENSHOT_MAX_PIXELS = 1200;\nexport const LOG_DEFAULT_SECONDS = 60;\nexport const LOG_DEFAULT_LINES = 200;\n/** A phone app's console: lines kept per device, and how long devicectl stays attached before it is stopped. */\nexport const CONSOLE_MAX_LINES = 5000;\nexport const CONSOLE_MAX_MS = 12 * 60 * 60_000;\n\n/** Fixed tool path: never the server's own PATH. */\nexport const IOS_TOOL_PATH = '/usr/bin:/bin:/usr/sbin:/sbin';\n\nexport const IOS_ERROR_CODES = [\n 'IOS_UNSUPPORTED_HOST',\n 'IOS_NO_XCODE',\n 'IOS_NO_RUNTIME',\n 'IOS_POOL_BUSY',\n 'IOS_NO_LEASE',\n 'IOS_LEASE_LOST',\n 'IOS_COMMAND_FAILED',\n 'IOS_INVALID_ARGUMENT',\n 'IOS_HELPER_UNAVAILABLE',\n 'IOS_ELEMENT_STALE',\n 'IOS_AMBIGUOUS',\n 'IOS_NO_MATCH',\n 'IOS_OBSERVE_TOO_LARGE',\n] as const;\n\n/** The resident Swift helper that reads accessibility and sends touches; built from source on first use. */\nexport const HELPER_PRODUCT = 'po-ios-sim-helper';\nexport const HELPER_PROTOCOL_VERSION = 2;\nexport const HELPER_SOURCE_DIRECTORY = 'native/sim-helper';\n/** Every file the helper build reads; their contents key the build cache. A contract test keeps this list complete. */\nexport const HELPER_SOURCES = [\n 'Package.swift',\n 'Sources/PoIosCore/Protocol.swift',\n 'Sources/PoIosCore/Compaction.swift',\n 'Sources/PoIosSimHelper/main.swift',\n 'Sources/PoIosSimHelper/PrivateApis.swift',\n 'Sources/PoIosSimHelper/Backends.swift',\n 'Sources/PoIosSimHelper/ScreenRecorder.swift',\n 'Tests/PoIosCoreTests/ProtocolTests.swift',\n 'Tests/PoIosCoreTests/CompactionTests.swift',\n] as const;\nexport const HELPER_NATIVE_DIRECTORY = 'native';\nexport const HELPER_BUILD_LOCK = 'helper-build';\nexport const HELPER_TIMEOUT_MS = 15_000;\nexport const HELPER_BUILD_TIMEOUT_MS = 10 * 60_000;\nexport const HELPER_MAX_RESTARTS = 3;\nexport const HELPER_RESTART_WINDOW_MS = 5 * 60_000;\nexport const HELPER_MAX_LINE_CHARS = 8 * 1024 * 1024;\n\nexport const WAIT_POLL_MS = 250;\nexport const WAIT_MAX_POLL_MS = 1000;\nexport const WAIT_DEFAULT_MS = 10_000;\nexport const SETTLE_DEFAULT_MS = 5000;\nexport const SETTLE_QUIET_MS = 500;\nexport const AMBIGUOUS_CANDIDATES = 5;\nexport const SWIPE_DEFAULT_MS = 300;\n/** Observe results above this many UTF-8 bytes go to a line file unless the caller picks an output. */\nexport const OBSERVE_INLINE_MAX_BYTES = 10_000;\nexport const RECORDING_DEFAULT_SECONDS = 600;\n/** A recorder that exits this soon after starting failed to start. */\nexport const RECORDING_EARLY_EXIT_MS = 2000;\n/** How long a stopped recorder may take to finalize its file before it is killed. */\nexport const RECORDING_FINALIZE_MS = 10_000;\nexport const HARDWARE_BUTTONS = ['home', 'lock', 'siri', 'volumeUp', 'volumeDown'] as const;\n","import { defineServiceContract } from '@agimon-ai/po-core/extensionFile';\n\nimport { IOS_POOL_SERVICE } from '../constants/ios';\nimport type { IosPool } from '../services/devicePool/type';\nimport type { IosSettingsRuntime } from '../types/iosSettings';\n\n/** Bound once at the global level; every session leases from the same pool. */\nexport const IOS_POOL_CONTRACT = defineServiceContract<IosPool>(IOS_POOL_SERVICE, { scope: 'global' });\n\nexport const IOS_SETTINGS_CONTRACT = defineServiceContract<IosSettingsRuntime>('po/ios-settings', { scope: 'global' });\n\ndeclare module '@deepseek-ai/cordis' {\n interface Context {\n 'po/ios-pool': IosPool;\n 'po/ios-settings': IosSettingsRuntime;\n }\n}\n"],"mappings":";;AACA,MAAa,cAAc;AAC3B,MAAa,mBAAmB;AAMhC,MAAa,2BAA2B;AACxC,MAAa,yBAAyB;AAEtC,MAAa,oBAAoB;CAC/B,WAAW;CACX,WAAW;CACX,YAAY;CACZ,qBAAqB;CACrB,oBAAoB;AACtB;AAEA,MAAa,sBAAsB;;AAGnC,MAAa,kBAAkB;AAC/B,MAAa,oBAAoB;AACjC,MAAa,kBAAkB;AAC/B,MAAa,2BAA2B;AACxC,MAAa,wBAAwB;;AAIrC,MAAa,oBAAoB;AACjC,MAAa,iBAAiB;;AAG9B,MAAa,gBAAgB;AAE7B,MAAa,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;AAGA,MAAa,iBAAiB;AAE9B,MAAa,0BAA0B;;AAEvC,MAAa,iBAAiB;CAC5B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,MAAa,0BAA0B;AACvC,MAAa,oBAAoB;AACjC,MAAa,oBAAoB;AACjC,MAAa,0BAA0B;AAEvC,MAAa,2BAA2B;AACxC,MAAa,wBAAwB;AAGrC,MAAa,mBAAmB;AAChC,MAAa,kBAAkB;AAC/B,MAAa,oBAAoB;;AAKjC,MAAa,2BAA2B;;AAGxC,MAAa,0BAA0B;;AAEvC,MAAa,wBAAwB;;;;AClFrC,MAAa,oBAAoB,sBAA+B,kBAAkB,EAAE,OAAO,SAAS,CAAC;AAErG,MAAa,wBAAwB,sBAA0C,mBAAmB,EAAE,OAAO,SAAS,CAAC"}
@@ -35,7 +35,8 @@ const IOS_ERROR_CODES = [
35
35
  "IOS_HELPER_UNAVAILABLE",
36
36
  "IOS_ELEMENT_STALE",
37
37
  "IOS_AMBIGUOUS",
38
- "IOS_NO_MATCH"
38
+ "IOS_NO_MATCH",
39
+ "IOS_OBSERVE_TOO_LARGE"
39
40
  ];
40
41
  /** The resident Swift helper that reads accessibility and sends touches; built from source on first use. */
41
42
  const HELPER_PRODUCT = "po-ios-sim-helper";
@@ -48,6 +49,7 @@ const HELPER_SOURCES = [
48
49
  "Sources/PoIosSimHelper/main.swift",
49
50
  "Sources/PoIosSimHelper/PrivateApis.swift",
50
51
  "Sources/PoIosSimHelper/Backends.swift",
52
+ "Sources/PoIosSimHelper/ScreenRecorder.swift",
51
53
  "Tests/PoIosCoreTests/ProtocolTests.swift",
52
54
  "Tests/PoIosCoreTests/CompactionTests.swift"
53
55
  ];
@@ -60,6 +62,12 @@ const HELPER_MAX_LINE_CHARS = 8388608;
60
62
  const WAIT_MAX_POLL_MS = 1e3;
61
63
  const WAIT_DEFAULT_MS = 1e4;
62
64
  const SETTLE_DEFAULT_MS = 5e3;
65
+ /** Observe results above this many UTF-8 bytes go to a line file unless the caller picks an output. */
66
+ const OBSERVE_INLINE_MAX_BYTES = 1e4;
67
+ /** A recorder that exits this soon after starting failed to start. */
68
+ const RECORDING_EARLY_EXIT_MS = 2e3;
69
+ /** How long a stopped recorder may take to finalize its file before it is killed. */
70
+ const RECORDING_FINALIZE_MS = 1e4;
63
71
  //#endregion
64
72
  //#region src/schemas/contracts.ts
65
73
  /** Bound once at the global level; every session leases from the same pool. */
@@ -204,12 +212,30 @@ Object.defineProperty(exports, "MAX_COMMAND_OUTPUT_CHARS", {
204
212
  return MAX_COMMAND_OUTPUT_CHARS;
205
213
  }
206
214
  });
215
+ Object.defineProperty(exports, "OBSERVE_INLINE_MAX_BYTES", {
216
+ enumerable: true,
217
+ get: function() {
218
+ return OBSERVE_INLINE_MAX_BYTES;
219
+ }
220
+ });
207
221
  Object.defineProperty(exports, "ORPHAN_GRACE_MS", {
208
222
  enumerable: true,
209
223
  get: function() {
210
224
  return ORPHAN_GRACE_MS;
211
225
  }
212
226
  });
227
+ Object.defineProperty(exports, "RECORDING_EARLY_EXIT_MS", {
228
+ enumerable: true,
229
+ get: function() {
230
+ return RECORDING_EARLY_EXIT_MS;
231
+ }
232
+ });
233
+ Object.defineProperty(exports, "RECORDING_FINALIZE_MS", {
234
+ enumerable: true,
235
+ get: function() {
236
+ return RECORDING_FINALIZE_MS;
237
+ }
238
+ });
213
239
  Object.defineProperty(exports, "SCREENSHOT_MAX_PIXELS", {
214
240
  enumerable: true,
215
241
  get: function() {
@@ -241,4 +267,4 @@ Object.defineProperty(exports, "WAIT_MAX_POLL_MS", {
241
267
  }
242
268
  });
243
269
 
244
- //# sourceMappingURL=contracts-EZxEDrrj.cjs.map
270
+ //# sourceMappingURL=contracts-fijOu6K9.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts-fijOu6K9.cjs","names":["defineServiceContract"],"sources":["../src/constants/ios.ts","../src/schemas/contracts.ts"],"sourcesContent":["export const IOS_NAMESPACE = 'ios';\nexport const IOS_PACKAGE = '@agimon-ai/po-ios';\nexport const IOS_POOL_SERVICE = 'po/ios-pool';\n\n/** Table prefix in the shared `po/db`. */\nexport const IOS_DB_PREFIX = 'ios';\n/** `<po home>/ios/devices` is the simulator device set Po owns; the person's own simulators live elsewhere. */\nexport const IOS_DIRECTORY = 'ios';\nexport const IOS_DEVICE_SET_DIRECTORY = 'devices';\nexport const IOS_DEVICE_NAME_PREFIX = 'po-pool-';\n\nexport const IOS_POOL_DEFAULTS = {\n minBooted: 0,\n maxBooted: 2,\n maxDevices: 4,\n idleShutdownMinutes: 10,\n waitTimeoutSeconds: 120,\n} as const;\n\nexport const JANITOR_INTERVAL_MS = 60_000;\nexport const QUEUE_POLL_MS = 750;\n/** A set member with no row must stay orphaned this long before it is deleted, so a create in flight survives. */\nexport const ORPHAN_GRACE_MS = 5 * 60_000;\nexport const SIMCTL_TIMEOUT_MS = 120_000;\nexport const BOOT_TIMEOUT_MS = 300_000;\nexport const MAX_COMMAND_OUTPUT_CHARS = 8 * 1024 * 1024;\nexport const SCREENSHOT_MAX_PIXELS = 1200;\nexport const LOG_DEFAULT_SECONDS = 60;\nexport const LOG_DEFAULT_LINES = 200;\n/** A phone app's console: lines kept per device, and how long devicectl stays attached before it is stopped. */\nexport const CONSOLE_MAX_LINES = 5000;\nexport const CONSOLE_MAX_MS = 12 * 60 * 60_000;\n\n/** Fixed tool path: never the server's own PATH. */\nexport const IOS_TOOL_PATH = '/usr/bin:/bin:/usr/sbin:/sbin';\n\nexport const IOS_ERROR_CODES = [\n 'IOS_UNSUPPORTED_HOST',\n 'IOS_NO_XCODE',\n 'IOS_NO_RUNTIME',\n 'IOS_POOL_BUSY',\n 'IOS_NO_LEASE',\n 'IOS_LEASE_LOST',\n 'IOS_COMMAND_FAILED',\n 'IOS_INVALID_ARGUMENT',\n 'IOS_HELPER_UNAVAILABLE',\n 'IOS_ELEMENT_STALE',\n 'IOS_AMBIGUOUS',\n 'IOS_NO_MATCH',\n 'IOS_OBSERVE_TOO_LARGE',\n] as const;\n\n/** The resident Swift helper that reads accessibility and sends touches; built from source on first use. */\nexport const HELPER_PRODUCT = 'po-ios-sim-helper';\nexport const HELPER_PROTOCOL_VERSION = 2;\nexport const HELPER_SOURCE_DIRECTORY = 'native/sim-helper';\n/** Every file the helper build reads; their contents key the build cache. A contract test keeps this list complete. */\nexport const HELPER_SOURCES = [\n 'Package.swift',\n 'Sources/PoIosCore/Protocol.swift',\n 'Sources/PoIosCore/Compaction.swift',\n 'Sources/PoIosSimHelper/main.swift',\n 'Sources/PoIosSimHelper/PrivateApis.swift',\n 'Sources/PoIosSimHelper/Backends.swift',\n 'Sources/PoIosSimHelper/ScreenRecorder.swift',\n 'Tests/PoIosCoreTests/ProtocolTests.swift',\n 'Tests/PoIosCoreTests/CompactionTests.swift',\n] as const;\nexport const HELPER_NATIVE_DIRECTORY = 'native';\nexport const HELPER_BUILD_LOCK = 'helper-build';\nexport const HELPER_TIMEOUT_MS = 15_000;\nexport const HELPER_BUILD_TIMEOUT_MS = 10 * 60_000;\nexport const HELPER_MAX_RESTARTS = 3;\nexport const HELPER_RESTART_WINDOW_MS = 5 * 60_000;\nexport const HELPER_MAX_LINE_CHARS = 8 * 1024 * 1024;\n\nexport const WAIT_POLL_MS = 250;\nexport const WAIT_MAX_POLL_MS = 1000;\nexport const WAIT_DEFAULT_MS = 10_000;\nexport const SETTLE_DEFAULT_MS = 5000;\nexport const SETTLE_QUIET_MS = 500;\nexport const AMBIGUOUS_CANDIDATES = 5;\nexport const SWIPE_DEFAULT_MS = 300;\n/** Observe results above this many UTF-8 bytes go to a line file unless the caller picks an output. */\nexport const OBSERVE_INLINE_MAX_BYTES = 10_000;\nexport const RECORDING_DEFAULT_SECONDS = 600;\n/** A recorder that exits this soon after starting failed to start. */\nexport const RECORDING_EARLY_EXIT_MS = 2000;\n/** How long a stopped recorder may take to finalize its file before it is killed. */\nexport const RECORDING_FINALIZE_MS = 10_000;\nexport const HARDWARE_BUTTONS = ['home', 'lock', 'siri', 'volumeUp', 'volumeDown'] as const;\n","import { defineServiceContract } from '@agimon-ai/po-core/extensionFile';\n\nimport { IOS_POOL_SERVICE } from '../constants/ios';\nimport type { IosPool } from '../services/devicePool/type';\nimport type { IosSettingsRuntime } from '../types/iosSettings';\n\n/** Bound once at the global level; every session leases from the same pool. */\nexport const IOS_POOL_CONTRACT = defineServiceContract<IosPool>(IOS_POOL_SERVICE, { scope: 'global' });\n\nexport const IOS_SETTINGS_CONTRACT = defineServiceContract<IosSettingsRuntime>('po/ios-settings', { scope: 'global' });\n\ndeclare module '@deepseek-ai/cordis' {\n interface Context {\n 'po/ios-pool': IosPool;\n 'po/ios-settings': IosSettingsRuntime;\n }\n}\n"],"mappings":";;AACA,MAAa,cAAc;AAC3B,MAAa,mBAAmB;AAMhC,MAAa,2BAA2B;AACxC,MAAa,yBAAyB;AAEtC,MAAa,oBAAoB;CAC/B,WAAW;CACX,WAAW;CACX,YAAY;CACZ,qBAAqB;CACrB,oBAAoB;AACtB;AAEA,MAAa,sBAAsB;;AAGnC,MAAa,kBAAkB;AAC/B,MAAa,oBAAoB;AACjC,MAAa,kBAAkB;AAC/B,MAAa,2BAA2B;AACxC,MAAa,wBAAwB;;AAIrC,MAAa,oBAAoB;AACjC,MAAa,iBAAiB;;AAG9B,MAAa,gBAAgB;AAE7B,MAAa,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;AAGA,MAAa,iBAAiB;AAE9B,MAAa,0BAA0B;;AAEvC,MAAa,iBAAiB;CAC5B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,MAAa,0BAA0B;AACvC,MAAa,oBAAoB;AACjC,MAAa,oBAAoB;AACjC,MAAa,0BAA0B;AAEvC,MAAa,2BAA2B;AACxC,MAAa,wBAAwB;AAGrC,MAAa,mBAAmB;AAChC,MAAa,kBAAkB;AAC/B,MAAa,oBAAoB;;AAKjC,MAAa,2BAA2B;;AAGxC,MAAa,0BAA0B;;AAEvC,MAAa,wBAAwB;;;;AClFrC,MAAa,qBAAA,GAAoBA,iCAAAA,sBAAAA,CAA+B,kBAAkB,EAAE,OAAO,SAAS,CAAC;AAErG,MAAa,yBAAA,GAAwBA,iCAAAA,sBAAAA,CAA0C,mBAAmB,EAAE,OAAO,SAAS,CAAC"}
@@ -6,7 +6,7 @@ import { ScrollView } from "react-native-unistyles/components/native/ScrollView"
6
6
  import { KeyboardAvoidingView } from "react-native-unistyles/components/native/KeyboardAvoidingView";
7
7
  import { ActivityIcon, Button, DropdownMenu, DropdownMenuContent, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuTrigger, Input, Panel, fontOf } from "@agimon-ai/po-native-components";
8
8
  import { StyleSheet } from "react-native-unistyles";
9
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import { AppState, Share } from "react-native";
11
11
  import { Image } from "react-native-unistyles/components/native/Image";
12
12
  //#region src/extensions/(frontend)/setting/_lib/settingsRuntime.native.ts
@@ -807,128 +807,112 @@ function deviceDetail(device) {
807
807
  //#region src/extensions/workspaces/sessions/(frontend)/_components/IosActivityView.native.tsx
808
808
  function IosActivityView({ devices, build, details, install, notice, footer, installExpanded = false, busy = false, canOpen = false, onView, onDownload, onCopy, onOpen, onInstall }) {
809
809
  const [installation, setInstallation] = useState(installExpanded);
810
- return /* @__PURE__ */ jsx(ScrollView, {
811
- contentContainerStyle: styles$2.content,
812
- children: /* @__PURE__ */ jsxs(View, {
813
- style: styles$2.card,
814
- children: [
815
- /* @__PURE__ */ jsx(Text, {
816
- accessibilityRole: "header",
817
- style: styles$2.heading,
818
- children: "iOS"
819
- }),
820
- devices.length === 0 ? /* @__PURE__ */ jsx(Text, {
821
- style: styles$2.dim,
822
- children: "No device is leased to this session."
823
- }) : devices.map((device) => /* @__PURE__ */ jsxs(View, {
824
- style: styles$2.group,
825
- children: [
826
- /* @__PURE__ */ jsx(Text, {
827
- style: styles$2.title,
828
- children: device.name
829
- }),
830
- /* @__PURE__ */ jsx(Text, {
831
- style: styles$2.dim,
832
- children: device.detail
833
- }),
834
- /* @__PURE__ */ jsx(Button, {
835
- style: styles$2.touch,
836
- disabled: !device.canView,
837
- onPress: () => onView(device.id),
838
- children: "View screen"
839
- })
840
- ]
841
- }, device.id)),
842
- /* @__PURE__ */ jsxs(View, {
843
- style: styles$2.build,
844
- children: [
845
- /* @__PURE__ */ jsx(Text, {
846
- accessibilityRole: "header",
847
- style: styles$2.title,
848
- children: "Latest build"
849
- }),
850
- build && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Text, {
851
- style: styles$2.literal,
852
- children: build.name
853
- }), /* @__PURE__ */ jsx(Text, {
854
- style: styles$2.dim,
855
- children: build.detail
856
- })] }),
857
- /* @__PURE__ */ jsx(Text, {
858
- style: styles$2.dim,
859
- children: details.note
860
- }),
861
- !details.blocked && /* @__PURE__ */ jsx(Text, {
810
+ return /* @__PURE__ */ jsx(ScrollView, { children: /* @__PURE__ */ jsxs(View, {
811
+ style: styles$2.content,
812
+ children: [
813
+ devices.length === 0 ? /* @__PURE__ */ jsx(Text, {
814
+ style: styles$2.dim,
815
+ children: "No device is leased to this session."
816
+ }) : devices.map((device) => /* @__PURE__ */ jsxs(View, {
817
+ style: styles$2.group,
818
+ children: [
819
+ /* @__PURE__ */ jsx(Text, {
820
+ style: styles$2.title,
821
+ children: device.name
822
+ }),
823
+ /* @__PURE__ */ jsx(Text, {
824
+ style: styles$2.dim,
825
+ children: device.detail
826
+ }),
827
+ device.canView && /* @__PURE__ */ jsx(Button, {
828
+ style: styles$2.touch,
829
+ onPress: () => onView(device.id),
830
+ children: "View screen"
831
+ })
832
+ ]
833
+ }, device.id)),
834
+ build && /* @__PURE__ */ jsxs(View, {
835
+ style: styles$2.build,
836
+ children: [
837
+ /* @__PURE__ */ jsx(Text, {
838
+ accessibilityRole: "header",
839
+ style: styles$2.title,
840
+ children: "Latest build"
841
+ }),
842
+ /* @__PURE__ */ jsx(Text, {
843
+ style: styles$2.literal,
844
+ children: build.name
845
+ }),
846
+ /* @__PURE__ */ jsx(Text, {
847
+ style: styles$2.dim,
848
+ children: build.detail
849
+ }),
850
+ /* @__PURE__ */ jsx(Text, {
851
+ style: styles$2.dim,
852
+ children: details.note
853
+ }),
854
+ !details.blocked && /* @__PURE__ */ jsx(Text, {
855
+ style: styles$2.dim,
856
+ children: "Links expire after 10 minutes. Anyone with the link can download."
857
+ }),
858
+ /* @__PURE__ */ jsx(Button, {
859
+ style: styles$2.touch,
860
+ variant: "primary",
861
+ disabled: details.blocked,
862
+ loading: busy,
863
+ onPress: onDownload,
864
+ children: details.action
865
+ }),
866
+ /* @__PURE__ */ jsx(Button, {
867
+ style: styles$2.touch,
868
+ variant: "link",
869
+ disabled: details.blocked,
870
+ onPress: onCopy,
871
+ children: "Copy download link"
872
+ }),
873
+ /* @__PURE__ */ jsx(Button, {
874
+ style: styles$2.touch,
875
+ variant: "link",
876
+ disabled: !canOpen,
877
+ onPress: onOpen,
878
+ children: "Open in Po"
879
+ }),
880
+ /* @__PURE__ */ jsx(Button, {
881
+ style: styles$2.touch,
882
+ variant: "ghost",
883
+ "aria-expanded": installation,
884
+ onPress: () => setInstallation(!installation),
885
+ children: "Install on iPhone"
886
+ }),
887
+ installation && /* @__PURE__ */ jsxs(View, {
888
+ style: styles$2.group,
889
+ children: [/* @__PURE__ */ jsx(Text, {
862
890
  style: styles$2.dim,
863
- children: "Links expire after 10 minutes. Anyone with the link can download."
864
- }),
865
- /* @__PURE__ */ jsx(Button, {
866
- style: styles$2.touch,
867
- variant: "primary",
868
- disabled: details.blocked,
869
- loading: busy,
870
- onPress: onDownload,
871
- children: details.action
872
- }),
873
- /* @__PURE__ */ jsx(Button, {
874
- style: styles$2.touch,
875
- variant: "link",
876
- disabled: details.blocked,
877
- onPress: onCopy,
878
- children: "Copy download link"
879
- }),
880
- /* @__PURE__ */ jsx(Button, {
881
- style: styles$2.touch,
882
- variant: "link",
883
- disabled: !canOpen,
884
- onPress: onOpen,
885
- children: "Open in Po"
886
- }),
887
- build && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Button, {
891
+ children: install.note
892
+ }), /* @__PURE__ */ jsx(Button, {
888
893
  style: styles$2.touch,
889
- variant: "ghost",
890
- "aria-expanded": installation,
891
- onPress: () => setInstallation(!installation),
892
- children: "Install on iPhone"
893
- }), installation && /* @__PURE__ */ jsxs(View, {
894
- style: styles$2.group,
895
- children: [/* @__PURE__ */ jsx(Text, {
896
- style: styles$2.dim,
897
- children: install.note
898
- }), /* @__PURE__ */ jsx(Button, {
899
- style: styles$2.touch,
900
- disabled: install.blocked,
901
- onPress: onInstall,
902
- children: install.action
903
- })]
904
- })] })
905
- ]
906
- }),
907
- notice && /* @__PURE__ */ jsx(Text, {
908
- accessibilityLiveRegion: "polite",
909
- style: styles$2.notice,
910
- children: notice
911
- }),
912
- footer && /* @__PURE__ */ jsx(Text, {
913
- style: styles$2.dim,
914
- children: footer
915
- })
916
- ]
917
- })
918
- });
894
+ disabled: install.blocked,
895
+ onPress: onInstall,
896
+ children: install.action
897
+ })]
898
+ })
899
+ ]
900
+ }),
901
+ notice && /* @__PURE__ */ jsx(Text, {
902
+ accessibilityLiveRegion: "polite",
903
+ style: styles$2.notice,
904
+ children: notice
905
+ }),
906
+ footer && /* @__PURE__ */ jsx(Text, {
907
+ style: styles$2.dim,
908
+ children: footer
909
+ })
910
+ ]
911
+ }) });
919
912
  }
920
913
  const styles$2 = StyleSheet.create((theme) => ({
921
914
  content: {
922
- padding: theme.spacing(4),
923
- uni__dependencies: [0]
924
- },
925
- card: {
926
- padding: theme.spacing(4),
927
915
  gap: theme.spacing(4),
928
- borderWidth: 1,
929
- borderColor: theme.colors.border,
930
- borderRadius: theme.borderRadius.md,
931
- backgroundColor: theme.colors.rail,
932
916
  uni__dependencies: [0]
933
917
  },
934
918
  group: {
@@ -943,14 +927,6 @@ const styles$2 = StyleSheet.create((theme) => ({
943
927
  uni__dependencies: [0]
944
928
  },
945
929
  touch: { minHeight: 44 },
946
- heading: {
947
- fontFamily: fontOf(theme.fontFamily.sans),
948
- fontSize: theme.fontSize.lg,
949
- lineHeight: theme.lineHeight.lg,
950
- fontWeight: "600",
951
- color: theme.colors.hi,
952
- uni__dependencies: [0]
953
- },
954
930
  title: {
955
931
  fontFamily: fontOf(theme.fontFamily.sans),
956
932
  fontSize: theme.fontSize.base,