peachsim 0.1.577 → 0.1.579

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 (178) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +11 -9
  3. package/cli/app-catalog.ts +77 -0
  4. package/cli/app-fonts.ts +4 -20
  5. package/cli/app-splash.ts +2 -18
  6. package/cli/bridge-flow-runner.ts +505 -139
  7. package/cli/cloud-client.ts +1 -4
  8. package/cli/cloud-session.ts +1 -4
  9. package/cli/cloud-test-result-files.ts +3 -0
  10. package/cli/cloud-test-tunnel.ts +2 -5
  11. package/cli/command-registry.ts +2 -0
  12. package/cli/commands/agent.ts +149 -23
  13. package/cli/commands/assert.ts +1 -4
  14. package/cli/commands/box/peach-command.ts +62 -0
  15. package/cli/commands/box/plane-share.ts +0 -70
  16. package/cli/commands/box/rnx-command.ts +1 -60
  17. package/cli/commands/box/search-command.ts +14 -0
  18. package/cli/commands/box.ts +2 -2
  19. package/cli/commands/control.ts +121 -27
  20. package/cli/commands/cpu-profile.ts +23 -10
  21. package/cli/commands/daemon.ts +1 -9
  22. package/cli/commands/detox.ts +26 -18
  23. package/cli/commands/device.ts +129 -1
  24. package/cli/commands/film.ts +25 -16
  25. package/cli/commands/flow.ts +9 -2
  26. package/cli/commands/inspect/actions.ts +75 -1
  27. package/cli/commands/inspect/core.ts +81 -2
  28. package/cli/commands/inspect/describe.ts +2 -6
  29. package/cli/commands/inspect/env.ts +1 -1
  30. package/cli/commands/inspect/settling.ts +20 -3
  31. package/cli/commands/inspect/shared.ts +1 -4
  32. package/cli/commands/inspect/sleep.ts +1 -1
  33. package/cli/commands/inspect.ts +16 -49
  34. package/cli/commands/install-desktop.ts +8 -6
  35. package/cli/commands/login.ts +3 -5
  36. package/cli/commands/maestro-generate.ts +1 -4
  37. package/cli/commands/maestro.ts +38 -21
  38. package/cli/commands/no-bridge-hint.ts +0 -14
  39. package/cli/commands/permissions.ts +2 -2
  40. package/cli/commands/platform.ts +13 -6
  41. package/cli/commands/screenshot.ts +6 -1
  42. package/cli/commands/skills.ts +1 -1
  43. package/cli/commands/test.ts +6 -2
  44. package/cli/commands/three-mode.ts +162 -19
  45. package/cli/commands/upload.ts +3 -18
  46. package/cli/current-sim.ts +0 -1
  47. package/cli/desktop-companion.ts +40 -8
  48. package/cli/drivers/playwright-provisioning.ts +1 -4
  49. package/cli/flow-export.ts +1 -8
  50. package/cli/flow-session.ts +0 -4
  51. package/cli/hints.ts +1 -16
  52. package/cli/inspect-notice-state.ts +0 -4
  53. package/cli/main.ts +2 -4
  54. package/cli/outbound-endpoints.ts +1 -24
  55. package/cli/parse-args.ts +1 -2
  56. package/cli/rnx-in-process.ts +3 -1
  57. package/cli/run-rnx-core.ts +4 -2
  58. package/cli/run-rnx.ts +18 -10
  59. package/cli/send-to-box.ts +1 -4
  60. package/cli/telemetry.ts +1 -1
  61. package/cli/ws-bridge.ts +1 -5
  62. package/detox/gestures.ts +20 -6
  63. package/detox/index.ts +379 -123
  64. package/detox/navigation-lifecycle.ts +22 -13
  65. package/dist-lib/agent-daemon-client.cjs +21 -15
  66. package/dist-lib/agent-events.cjs +1 -1
  67. package/dist-lib/agent-identity.cjs +3 -17
  68. package/dist-lib/agent-sessions.cjs +5 -4
  69. package/dist-lib/attached-projects.cjs +1 -77
  70. package/dist-lib/auth/shared-session.cjs +1 -1
  71. package/dist-lib/backend-origin.cjs +11 -1
  72. package/dist-lib/beta.cjs +1 -1
  73. package/dist-lib/beta.mjs +1 -1
  74. package/dist-lib/bridge-constants.cjs +1 -1
  75. package/dist-lib/bridge-contract-input.cjs +7 -5
  76. package/dist-lib/bridge-contract-input.mjs +7 -5
  77. package/dist-lib/bridge-contract.cjs +1 -1
  78. package/dist-lib/bridge-contract.mjs +1 -1
  79. package/dist-lib/capture-contract.cjs +30 -7
  80. package/dist-lib/capture-contract.mjs +30 -7
  81. package/dist-lib/cli-constants.cjs +1 -1
  82. package/dist-lib/cloud-contract.cjs +1 -1
  83. package/dist-lib/cloud-contract.mjs +1 -1
  84. package/dist-lib/cloud-test-args.cjs +1 -1
  85. package/dist-lib/cloud-test-args.mjs +1 -1
  86. package/dist-lib/cloud.cjs +17 -11
  87. package/dist-lib/cloud.mjs +17 -11
  88. package/dist-lib/config.cjs +1 -1
  89. package/dist-lib/detox/index.cjs +321 -122
  90. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  91. package/dist-lib/home-paths.cjs +1 -1
  92. package/dist-lib/host/bridge-host.cjs +427 -212
  93. package/dist-lib/host/fetch-proxy-handler.cjs +5 -28
  94. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  95. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  96. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  97. package/dist-lib/host/websocket-proxy.cjs +1 -1
  98. package/dist-lib/index.cjs +315 -58
  99. package/dist-lib/jump-to-source-babel.cjs +1 -1
  100. package/dist-lib/jump-to-source-native.cjs +1 -1
  101. package/dist-lib/menu.cjs +67 -31
  102. package/dist-lib/menu.mjs +64 -28
  103. package/dist-lib/metro-fingerprint-registry.cjs +8 -4
  104. package/dist-lib/metro-fingerprint-registry.mjs +6 -4
  105. package/dist-lib/metro-production-bundle.cjs +2 -2
  106. package/dist-lib/metro-production-bundle.mjs +2 -2
  107. package/dist-lib/metro.cjs +8 -4
  108. package/dist-lib/profiles.cjs +1 -1
  109. package/dist-lib/public-brand.cjs +7 -4
  110. package/dist-lib/react-native-host-modules.cjs +1 -1
  111. package/dist-lib/react-native-host-modules.mjs +1 -1
  112. package/dist-lib/render-mode.cjs +3 -13
  113. package/dist-lib/scripts/dev-server-scanner.cjs +5 -17
  114. package/dist-lib/sdk.cjs +129 -10
  115. package/dist-lib/sdk.mjs +127 -10
  116. package/dist-lib/skills.cjs +1635 -1121
  117. package/dist-lib/swift-compile.cjs +277 -70
  118. package/dist-lib/swift-compile.mjs +275 -70
  119. package/dist-lib/swift-package.cjs +17 -5
  120. package/dist-lib/swift-package.mjs +15 -4
  121. package/dist-lib/swift-submit.cjs +32 -8
  122. package/dist-lib/swift-submit.mjs +29 -7
  123. package/dist-lib/swift.cjs +30912 -577
  124. package/dist-lib/vite-kotlin.cjs +356 -0
  125. package/dist-lib/vite-swift.cjs +1743 -0
  126. package/dist-lib/vite.cjs +208 -1039
  127. package/kotlin/README.md +18 -0
  128. package/kotlin/Sources/androidx/annotation/Keep.kt +4 -0
  129. package/kotlin/Sources/dev/onejs/one/OneNativeSourceDispatch.kt +7 -0
  130. package/kotlin/Sources/dev/onejs/one/source/OneModule.kt +4 -0
  131. package/kotlin/Sources/org/json/JSON.kt +244 -0
  132. package/kotlin/toolchain.json +19 -0
  133. package/package.json +14 -2
  134. package/scripts/dev-server-scanner.ts +0 -18
  135. package/scripts/optional-demo-registry.ts +0 -17
  136. package/skills/contrast/SKILL.md +2 -2
  137. package/skills/peach-setup/SKILL.md +16 -0
  138. package/src/agent-daemon-client.ts +36 -22
  139. package/src/agent-identity.ts +0 -15
  140. package/src/agent-prompt.ts +12 -0
  141. package/src/attached-projects.ts +0 -72
  142. package/src/backend-origin.ts +10 -0
  143. package/src/bridge-contract-input.ts +2 -5
  144. package/src/bridge-contract.ts +2 -0
  145. package/src/capture-contract.ts +53 -11
  146. package/src/cloud.ts +4 -9
  147. package/src/dev-server-open.ts +0 -99
  148. package/src/home-paths.ts +2 -3
  149. package/src/host/agent-host.ts +82 -36
  150. package/src/host/bridge-host.ts +5 -11
  151. package/src/host/fetch-proxy-handler.ts +19 -43
  152. package/src/is-record.ts +4 -0
  153. package/src/menu.ts +82 -37
  154. package/src/metro-fingerprint-registry.ts +1 -4
  155. package/src/metro-production-bundle.ts +1 -1
  156. package/src/plist.ts +1 -4
  157. package/src/public-brand.ts +5 -3
  158. package/src/render-mode.ts +0 -12
  159. package/src/runtime-assets.ts +9 -2
  160. package/src/screenshots/compose.ts +7 -1
  161. package/src/screenshots/frame-compose.ts +21 -10
  162. package/src/screenshots/schema.ts +1 -4
  163. package/src/sim-client.ts +2 -4
  164. package/src/skills/builtin/maestro-test.ts +1 -4
  165. package/src/sleep.ts +4 -0
  166. package/src/swift-compile.ts +209 -47
  167. package/src/swift-icu.ts +140 -0
  168. package/src/swift-package.ts +26 -2
  169. package/src/swift-submit.ts +84 -4
  170. package/src/swift.ts +2 -0
  171. package/src/vite-plugin-kotlin.ts +376 -0
  172. package/src/vite-plugin-one.ts +224 -36
  173. package/src/vite-plugin-swift.ts +382 -96
  174. package/src/vite-plugin.ts +121 -134
  175. package/src/vite.d.ts +10 -0
  176. package/cli/resolve-assets.ts +0 -63
  177. package/src/rolldown-plugin-swift.ts +0 -244
  178. package/src/team-machine-prompt.ts +0 -73
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.577 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.579 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -23,23 +23,43 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
23
23
  var swift_submit_exports = {};
24
24
  __export(swift_submit_exports, {
25
25
  SWIFT_COMPILE_PATH: () => SWIFT_COMPILE_PATH,
26
+ SWIFT_HOST_ABI: () => SWIFT_HOST_ABI,
26
27
  compileSwiftProject: () => compileSwiftProject,
27
- httpSwiftCompileSubmit: () => httpSwiftCompileSubmit
28
+ httpSwiftCompileSubmit: () => httpSwiftCompileSubmit,
29
+ swiftNativeEntry: () => swiftNativeEntry
28
30
  });
29
31
  module.exports = __toCommonJS(swift_submit_exports);
30
32
  var SWIFT_COMPILE_PATH = "/api/swift-compile";
33
+ var SWIFT_HOST_ABI = 1;
31
34
  var POLL_INTERVAL_MS = 1500;
35
+ function swiftNativeEntry(native, file) {
36
+ return {
37
+ packageId: native.packageId,
38
+ contractHash: native.hash,
39
+ modules: Object.fromEntries(
40
+ (native.files[file] ?? []).map((name) => [name, native.modules[name] ?? []])
41
+ ),
42
+ defaultView: native.defaultViewFiles.includes(file)
43
+ };
44
+ }
32
45
  function httpSwiftCompileSubmit(context) {
33
- const { assetReadToken, endpoint } = context;
34
- if (!assetReadToken) return void 0;
46
+ const { assetReadToken, authorization, endpoint } = context;
47
+ if (!assetReadToken && !authorization) return void 0;
35
48
  const url = endpoint ? `${endpoint.replace(/\/+$/, "")}${SWIFT_COMPILE_PATH}` : SWIFT_COMPILE_PATH;
36
49
  return async (work) => {
37
50
  let response;
38
51
  try {
39
52
  response = await fetch(url, {
40
53
  method: "POST",
41
- headers: { "content-type": "application/json" },
42
- body: JSON.stringify({ ...work, token: assetReadToken })
54
+ headers: {
55
+ "content-type": "application/json",
56
+ ...authorization ? { authorization } : {}
57
+ },
58
+ body: JSON.stringify({
59
+ ...work,
60
+ hostAbi: SWIFT_HOST_ABI,
61
+ ...assetReadToken ? { token: assetReadToken } : {}
62
+ })
43
63
  });
44
64
  } catch (error) {
45
65
  throw new Error(
@@ -71,7 +91,9 @@ async function compileSwiftProject(submit, work, origin) {
71
91
  return {
72
92
  url: new URL(outcome.artifactUrl, origin).href,
73
93
  hash: outcome.hash,
74
- ...outcome.imageUrls === void 0 ? {} : { imageUrls: resolveImageUrls(outcome.imageUrls, origin) }
94
+ icuUrl: new URL(outcome.icuUrl, origin).href,
95
+ ...outcome.imageUrls === void 0 ? {} : { imageUrls: resolveImageUrls(outcome.imageUrls, origin) },
96
+ ...outcome.native === void 0 ? {} : { native: outcome.native }
75
97
  };
76
98
  case "compiling":
77
99
  await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS));
@@ -87,6 +109,8 @@ async function compileSwiftProject(submit, work, origin) {
87
109
  // Annotate the CommonJS export names for ESM import in node:
88
110
  0 && (module.exports = {
89
111
  SWIFT_COMPILE_PATH,
112
+ SWIFT_HOST_ABI,
90
113
  compileSwiftProject,
91
- httpSwiftCompileSubmit
114
+ httpSwiftCompileSubmit,
115
+ swiftNativeEntry
92
116
  });
@@ -1,19 +1,37 @@
1
- /*! rnx v0.1.577 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.579 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-submit.ts
4
4
  var SWIFT_COMPILE_PATH = "/api/swift-compile";
5
+ var SWIFT_HOST_ABI = 1;
5
6
  var POLL_INTERVAL_MS = 1500;
7
+ function swiftNativeEntry(native, file) {
8
+ return {
9
+ packageId: native.packageId,
10
+ contractHash: native.hash,
11
+ modules: Object.fromEntries(
12
+ (native.files[file] ?? []).map((name) => [name, native.modules[name] ?? []])
13
+ ),
14
+ defaultView: native.defaultViewFiles.includes(file)
15
+ };
16
+ }
6
17
  function httpSwiftCompileSubmit(context) {
7
- const { assetReadToken, endpoint } = context;
8
- if (!assetReadToken) return void 0;
18
+ const { assetReadToken, authorization, endpoint } = context;
19
+ if (!assetReadToken && !authorization) return void 0;
9
20
  const url = endpoint ? `${endpoint.replace(/\/+$/, "")}${SWIFT_COMPILE_PATH}` : SWIFT_COMPILE_PATH;
10
21
  return async (work) => {
11
22
  let response;
12
23
  try {
13
24
  response = await fetch(url, {
14
25
  method: "POST",
15
- headers: { "content-type": "application/json" },
16
- body: JSON.stringify({ ...work, token: assetReadToken })
26
+ headers: {
27
+ "content-type": "application/json",
28
+ ...authorization ? { authorization } : {}
29
+ },
30
+ body: JSON.stringify({
31
+ ...work,
32
+ hostAbi: SWIFT_HOST_ABI,
33
+ ...assetReadToken ? { token: assetReadToken } : {}
34
+ })
17
35
  });
18
36
  } catch (error) {
19
37
  throw new Error(
@@ -45,7 +63,9 @@ async function compileSwiftProject(submit, work, origin) {
45
63
  return {
46
64
  url: new URL(outcome.artifactUrl, origin).href,
47
65
  hash: outcome.hash,
48
- ...outcome.imageUrls === void 0 ? {} : { imageUrls: resolveImageUrls(outcome.imageUrls, origin) }
66
+ icuUrl: new URL(outcome.icuUrl, origin).href,
67
+ ...outcome.imageUrls === void 0 ? {} : { imageUrls: resolveImageUrls(outcome.imageUrls, origin) },
68
+ ...outcome.native === void 0 ? {} : { native: outcome.native }
49
69
  };
50
70
  case "compiling":
51
71
  await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS));
@@ -60,6 +80,8 @@ async function compileSwiftProject(submit, work, origin) {
60
80
  }
61
81
  export {
62
82
  SWIFT_COMPILE_PATH,
83
+ SWIFT_HOST_ABI,
63
84
  compileSwiftProject,
64
- httpSwiftCompileSubmit
85
+ httpSwiftCompileSubmit,
86
+ swiftNativeEntry
65
87
  };