peachsim 0.1.2438 → 0.1.2439

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 (175) hide show
  1. package/README.md +30 -98
  2. package/cli/app-catalog.ts +4 -73
  3. package/cli/catalog/content.ts +1 -1
  4. package/cli/cloud-box-artifact.ts +26 -39
  5. package/cli/cloud-client.ts +69 -117
  6. package/cli/cloud-session.ts +2 -9
  7. package/cli/commands/box.ts +6 -6
  8. package/cli/commands/control.ts +4 -11
  9. package/cli/commands/flow.ts +5 -9
  10. package/cli/commands/kotlin.ts +2 -1
  11. package/cli/commands/platform.ts +21 -39
  12. package/cli/commands/record-three.ts +1 -1
  13. package/cli/commands/shell-url.ts +29 -23
  14. package/cli/dev-build-freshness.ts +4 -3
  15. package/cli/native-input.ts +2 -2
  16. package/cli/outbound-endpoints.ts +20 -45
  17. package/cli/remote-project-bundle.ts +8 -14
  18. package/cli/remote-simulators.ts +1 -1
  19. package/cli/send-to-box.ts +2 -1
  20. package/detox/jest-preset.cjs +1 -1
  21. package/detox/jest-transform.cjs +40 -2
  22. package/dist-lib/agent-daemon-client.cjs +34 -24
  23. package/dist-lib/agent-events.cjs +1 -1
  24. package/dist-lib/attached-projects.cjs +19 -17
  25. package/dist-lib/auth/shared-session.cjs +18 -16
  26. package/dist-lib/backend-origin.cjs +1 -1
  27. package/dist-lib/beta.cjs +1 -1
  28. package/dist-lib/beta.mjs +2 -1
  29. package/dist-lib/bridge-constants.cjs +1 -1
  30. package/dist-lib/bridge-contract-input.cjs +1 -1
  31. package/dist-lib/bridge-contract-input.mjs +20 -583
  32. package/dist-lib/bridge-contract.cjs +1 -1
  33. package/dist-lib/bridge-contract.mjs +17 -99
  34. package/dist-lib/bundle-channel.cjs +8718 -5552
  35. package/dist-lib/capture-contract.cjs +1 -1
  36. package/dist-lib/capture-contract.mjs +13 -363
  37. package/dist-lib/cloud-contract.cjs +1 -1
  38. package/dist-lib/cloud-contract.mjs +34 -155
  39. package/dist-lib/cloud-test-args.cjs +1 -1
  40. package/dist-lib/cloud-test-args.mjs +2 -1
  41. package/dist-lib/cloud.cjs +1 -1
  42. package/dist-lib/cloud.mjs +26 -155
  43. package/dist-lib/config.cjs +1 -4
  44. package/dist-lib/config.mjs +11 -30
  45. package/dist-lib/detox/index.cjs +2554 -230
  46. package/dist-lib/detox/jest-preset.cjs +1 -1
  47. package/dist-lib/detox/jest-transform.cjs +40 -2
  48. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  49. package/dist-lib/esm-chunks/acorn-FGE4PYDJ.mjs +50 -0
  50. package/dist-lib/esm-chunks/chunk-2EUHEBIJ.mjs +664 -0
  51. package/dist-lib/esm-chunks/chunk-2NPABFPN.mjs +5719 -0
  52. package/dist-lib/esm-chunks/chunk-4ZFNH7TU.mjs +10 -0
  53. package/dist-lib/esm-chunks/chunk-5T4XBUJP.mjs +1353 -0
  54. package/dist-lib/esm-chunks/chunk-6VY6HTJC.mjs +18951 -0
  55. package/dist-lib/esm-chunks/chunk-7HANEMO4.mjs +188 -0
  56. package/dist-lib/esm-chunks/chunk-C3WBGYP6.mjs +186 -0
  57. package/dist-lib/esm-chunks/chunk-CVGDRROP.mjs +57 -0
  58. package/dist-lib/esm-chunks/chunk-DADGQELM.mjs +375 -0
  59. package/dist-lib/esm-chunks/chunk-DEGYKHN7.mjs +12 -0
  60. package/dist-lib/esm-chunks/chunk-HIDNO3RP.mjs +10992 -0
  61. package/dist-lib/esm-chunks/chunk-HSADZOVN.mjs +30 -0
  62. package/dist-lib/esm-chunks/chunk-IWJUYJQO.mjs +42 -0
  63. package/dist-lib/esm-chunks/chunk-JCKI3VZ6.mjs +10 -0
  64. package/dist-lib/esm-chunks/chunk-KSQ5KM5Y.mjs +17 -0
  65. package/dist-lib/esm-chunks/chunk-KVTIDLBK.mjs +598 -0
  66. package/dist-lib/esm-chunks/chunk-MIQSRBVU.mjs +10 -0
  67. package/dist-lib/esm-chunks/chunk-YB27R6JG.mjs +115 -0
  68. package/dist-lib/esm-chunks/metro-layout-parser-MVUAXRUJ.mjs +58 -0
  69. package/dist-lib/expo-swift-bundle.cjs +7856 -4707
  70. package/dist-lib/expo-swift-metadata.cjs +1 -1
  71. package/dist-lib/expo-swift-metadata.mjs +16 -165
  72. package/dist-lib/home-paths.cjs +1 -1
  73. package/dist-lib/host/bridge-host.cjs +15658 -11404
  74. package/dist-lib/host/fetch-proxy-handler.cjs +3927 -342
  75. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  76. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -1
  77. package/dist-lib/host/replacement-module-handler.cjs +4 -4
  78. package/dist-lib/host/websocket-proxy.cjs +1 -1
  79. package/dist-lib/index.cjs +9145 -32150
  80. package/dist-lib/jump-to-source-babel.cjs +1 -1
  81. package/dist-lib/jump-to-source-native.cjs +2 -2
  82. package/dist-lib/kotlin-host.cjs +260 -253
  83. package/dist-lib/menu.cjs +1 -1
  84. package/dist-lib/menu.mjs +5 -13
  85. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  86. package/dist-lib/metro-fingerprint-registry.mjs +5 -6
  87. package/dist-lib/metro-production-bundle.cjs +22 -3
  88. package/dist-lib/metro-production-bundle.mjs +26 -92
  89. package/dist-lib/native-app-identity-project.cjs +663 -451
  90. package/dist-lib/native-app-identity-project.mjs +509 -2318
  91. package/dist-lib/native-app-identity.cjs +1 -1
  92. package/dist-lib/native-app-identity.mjs +27 -1340
  93. package/dist-lib/native-firebase-metadata.cjs +1 -1
  94. package/dist-lib/native-firebase-metadata.mjs +5 -18
  95. package/dist-lib/pdfium-raster.cjs +1 -1
  96. package/dist-lib/pdfium-raster.mjs +2 -1
  97. package/dist-lib/plist.cjs +2 -2
  98. package/dist-lib/plist.mjs +5 -7
  99. package/dist-lib/profiles.cjs +2 -1
  100. package/dist-lib/public-brand.cjs +1 -1
  101. package/dist-lib/public-origins-lib-esm.json +246 -187
  102. package/dist-lib/public-origins-lib-static.json +1 -1
  103. package/dist-lib/public-origins-lib.json +1059 -1238
  104. package/dist-lib/react-native-host-modules.cjs +1 -1
  105. package/dist-lib/react-native-host-modules.mjs +2 -1
  106. package/dist-lib/reap-browser.cjs +18 -7
  107. package/dist-lib/scripts/dev-server-scanner.cjs +6 -230
  108. package/dist-lib/sdk.cjs +1 -1
  109. package/dist-lib/sdk.mjs +22 -78
  110. package/dist-lib/skills.cjs +21657 -17374
  111. package/dist-lib/swift-compile.cjs +1343 -1318
  112. package/dist-lib/swift-compile.mjs +68 -19013
  113. package/dist-lib/swift-package.cjs +1 -1
  114. package/dist-lib/swift-package.mjs +35 -630
  115. package/dist-lib/swift-submit.cjs +1 -1
  116. package/dist-lib/swift-submit.mjs +9 -24
  117. package/dist-lib/swift-toolchain.cjs +1 -1
  118. package/dist-lib/swift.cjs +1 -1
  119. package/dist-lib/vendor/@peculiar/x509.cjs +18061 -0
  120. package/dist-lib/vendor/acorn.cjs +5699 -0
  121. package/dist-lib/vendor/bplist-parser.cjs +1589 -0
  122. package/dist-lib/vendor/ignore.cjs +455 -0
  123. package/dist-lib/vendor/magic-string.cjs +1693 -0
  124. package/dist-lib/vendor/plist.cjs +10978 -0
  125. package/dist-lib/vendor/smol-toml.cjs +768 -0
  126. package/dist-lib/vendor/stream-json.cjs +1997 -0
  127. package/dist-lib/vendor/sucrase/dist/index.js.cjs +23593 -0
  128. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +15750 -0
  129. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +11316 -0
  130. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +482 -0
  131. package/dist-lib/vendor/sucrase.cjs +23593 -0
  132. package/dist-lib/vendor/terser.cjs +36874 -0
  133. package/dist-lib/vendor/valibot.cjs +6253 -0
  134. package/dist-lib/vendor/zod.cjs +23262 -0
  135. package/dist-lib/worklet-executable.cjs +3 -3
  136. package/dist-lib/worklet-executable.mjs +11 -16
  137. package/dist-types/packages/peach-engine/src/config.d.ts +1 -1
  138. package/kotlin/fork/NOTICE +3 -0
  139. package/kotlin/sdk.tar.gz +0 -0
  140. package/kotlin/toolchain.json +6 -6
  141. package/package.json +17 -121
  142. package/runtime-companion.json +1 -1
  143. package/scripts/dev-server-scanner.ts +13 -223
  144. package/src/android-autolinking.ts +2 -2
  145. package/src/bundle-channel.mjs +3 -15
  146. package/src/cloud-contract.ts +3 -4
  147. package/src/config.ts +0 -5
  148. package/src/host/bridge-host.ts +19 -1
  149. package/src/host/server-scan-handler.ts +1 -9
  150. package/src/index.ts +0 -2
  151. package/src/kotlin-host.ts +1 -2
  152. package/src/kotlinDiscoveryContract.ts +1 -0
  153. package/src/metro-production-bundle.ts +28 -6
  154. package/src/native-seam-manifest.ts +0 -13
  155. package/src/one-native-app-catalog.ts +8 -27
  156. package/src/one-native-app-config.ts +95 -0
  157. package/src/one-native-source.ts +250 -0
  158. package/src/one-widget-metadata.ts +45 -126
  159. package/src/oneWidgetContract.ts +80 -117
  160. package/src/serverDiscoveryContract.ts +0 -1
  161. package/src/simulator-route.ts +8 -0
  162. package/src/vite-plugin.ts +2 -2
  163. package/src/xcode-project.ts +1 -1
  164. package/dist-lib/metro.cjs +0 -27984
  165. package/dist-lib/vite-swift.cjs +0 -43376
  166. package/dist-lib/vite.cjs +0 -21456
  167. package/src/androidAutolinkingContract.ts +0 -48
  168. package/src/androidRootModuleContract.ts +0 -39
  169. package/src/dev-server-open.ts +0 -92
  170. package/src/metro-plugin.ts +0 -578
  171. package/src/one-widget-discovery.ts +0 -23
  172. package/src/swift-vite-lifetime.ts +0 -42
  173. package/src/vite-plugin-one.ts +0 -746
  174. package/src/vite-plugin-swift.ts +0 -225
  175. package/src/vite.d.ts +0 -10
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2438 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2439 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,168 +1,19 @@
1
- /*! peach v0.1.2438 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
-
3
- // ../peach-globals/src/bundle-global-footer.ts
4
- function findBundleFooter(source, prefix) {
5
- let end = source.length;
6
- while (end > 0) {
7
- const newline = source.lastIndexOf("\n", end - 1);
8
- if (newline < 0) return -1;
9
- const line = newline + 1;
10
- if (source.startsWith(prefix, line)) return newline;
11
- if (!isFooterBlockLine(source, line, end)) return -1;
12
- end = newline;
13
- }
14
- return -1;
15
- }
16
- function isFooterBlockLine(source, line, end) {
17
- return line === end || source.startsWith("globalThis.", line) || source.startsWith("//", line);
18
- }
19
- function readFooter(source, prefix, suffix, name) {
20
- const start = findBundleFooter(source, prefix);
21
- if (start < 0) return null;
22
- const end = source.indexOf("\n", start + 1);
23
- const line = source.slice(start + 1, end < 0 ? void 0 : end);
24
- if (!line.endsWith(suffix)) throw new Error(`${name} footer is truncated`);
25
- const value = JSON.parse(
26
- line.slice(prefix.length, suffix ? -suffix.length : void 0)
27
- );
28
- if (value === null) throw new Error(`${name} footer has no metadata`);
29
- return value;
30
- }
31
- function readBundleGlobalFooter(source, name) {
32
- return readFooter(source, `globalThis.${name}=`, ";", name);
33
- }
34
- function detachFooter(source, prefix, suffix, name) {
35
- const start = findBundleFooter(source, prefix);
36
- if (start < 0) return { source, value: null };
37
- const value = readFooter(source, prefix, suffix, name);
38
- const end = source.indexOf("\n", start + 1);
39
- return { source: source.slice(0, start) + (end < 0 ? "" : source.slice(end)), value };
40
- }
41
- function insertBundleGlobalFooter(source, name, value) {
42
- return insertFooter(source, `globalThis.${name}=`, ";", name, value);
43
- }
44
- function insertFooter(source, prefix, suffix, name, value) {
45
- source = detachFooter(source, prefix, suffix, name).source;
46
- const json = JSON.stringify(value).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/<\//g, "<\\/");
47
- const footer = `
48
- ${prefix}${json}${suffix}`;
49
- const identity = findBundleFooter(source, "globalThis.__sootsimModulePaths=");
50
- return identity < 0 ? source + footer : source.slice(0, identity) + footer + source.slice(identity);
51
- }
52
-
53
- // src/is-record.ts
54
- function isRecord(value) {
55
- return typeof value === "object" && value !== null && !Array.isArray(value);
56
- }
57
-
58
- // src/assetCatalogContract.ts
59
- function isSwiftImageVariants(value) {
60
- return Array.isArray(value) && value.length > 0 && value.every(
61
- (image) => typeof image === "object" && image !== null && typeof image.uri === "string" && typeof image.scale === "number" && Number.isFinite(image.scale) && image.scale > 0 && (image.renderingMode === void 0 || image.renderingMode === "template" || image.renderingMode === "original")
62
- );
63
- }
64
-
65
- // src/nativeAppIconContract.ts
66
- function isNativeAppIconArtwork(value) {
67
- return isRecord(value) && (value.primary === void 0 || isSwiftImageVariants(value.primary)) && isRecord(value.alternates) && Object.values(value.alternates).every(isSwiftImageVariants);
68
- }
69
-
70
- // src/native-app-identity.ts
71
- function nonEmptyString(value) {
72
- return typeof value === "string" && value.length > 0 ? value : null;
73
- }
74
- function isNativeAppIdentity(value) {
75
- if (!isRecord(value)) return false;
76
- for (const key of ["statusBarHidden", "viewControllerBasedStatusBarAppearance"]) {
77
- if (value[key] !== void 0 && typeof value[key] !== "boolean") return false;
78
- }
79
- if (value.sceneManifest !== void 0 && value.sceneManifest !== null && !isRecord(value.sceneManifest))
80
- return false;
81
- const oneUpdates = value.oneUpdates;
82
- if (oneUpdates !== void 0 && (!isRecord(oneUpdates) || typeof oneUpdates.enabled !== "boolean" || oneUpdates.url !== null && typeof oneUpdates.url !== "string" || oneUpdates.runtimeVersion !== null && typeof oneUpdates.runtimeVersion !== "string" || oneUpdates.embeddedManifestJson !== null && typeof oneUpdates.embeddedManifestJson !== "string" || oneUpdates.enabled && (typeof oneUpdates.url !== "string" || oneUpdates.url.length === 0 || typeof oneUpdates.runtimeVersion !== "string" || oneUpdates.runtimeVersion.length === 0))) {
83
- return false;
84
- }
85
- if (value.dtPlatformVersion !== void 0 && typeof value.dtPlatformVersion !== "string")
86
- return false;
87
- if (value.androidManifestPermissions !== void 0 && (!Array.isArray(value.androidManifestPermissions) || !value.androidManifestPermissions.every(
88
- (permission) => isRecord(permission) && typeof permission.name === "string" && permission.name.length > 0 && Number.isInteger(permission.minSdkVersion) && typeof permission.minSdkVersion === "number" && permission.minSdkVersion > 0 && (permission.maxSdkVersion === void 0 || typeof permission.maxSdkVersion === "number" && Number.isInteger(permission.maxSdkVersion) && permission.maxSdkVersion >= 0)
89
- )))
90
- return false;
91
- if (value.androidPhotoLibraryAddOnly !== void 0 && value.androidPhotoLibraryAddOnly !== true)
92
- return false;
93
- if (value.googleSignIn !== void 0 && !isRecord(value.googleSignIn)) return false;
94
- if (value.bundleIcons !== void 0 && !isRecord(value.bundleIcons)) return false;
95
- const descriptions = value.permissionUsageDescriptions;
96
- if (value.reanimatedStaticFeatureFlags !== void 0 && (!isRecord(value.reanimatedStaticFeatureFlags) || !Object.values(value.reanimatedStaticFeatureFlags).every(
97
- (flag) => typeof flag === "boolean"
98
- )))
99
- return false;
100
- if (descriptions !== void 0 && !isRecord(descriptions)) return false;
101
- if (value.infoPlistStrings !== void 0 && (!isRecord(value.infoPlistStrings) || !Object.values(value.infoPlistStrings).every((entry) => typeof entry === "string")))
102
- return false;
103
- if (value.infoPlistBooleans !== void 0 && (!isRecord(value.infoPlistBooleans) || !Object.values(value.infoPlistBooleans).every(
104
- (entry) => typeof entry === "boolean"
105
- )))
106
- return false;
107
- if (value.urlQuerySchemes !== void 0 && !Array.isArray(value.urlQuerySchemes))
108
- return false;
109
- if (value.appIntentIdentifiers !== void 0 && (!Array.isArray(value.appIntentIdentifiers) || !value.appIntentIdentifiers.every((identifier) => typeof identifier === "string")))
110
- return false;
111
- if (value.backgroundTaskIdentifiers !== void 0 && (!Array.isArray(value.backgroundTaskIdentifiers) || !value.backgroundTaskIdentifiers.every(
112
- (identifier) => typeof identifier === "string"
113
- )))
114
- return false;
115
- if (value.backgroundModes !== void 0 && (!Array.isArray(value.backgroundModes) || !value.backgroundModes.every((mode) => typeof mode === "string")))
116
- return false;
117
- if (value.keychainAccessGroups !== void 0 && (!Array.isArray(value.keychainAccessGroups) || !value.keychainAccessGroups.every(
118
- (group) => typeof group === "string" && group.length > 0 && !/\$[({]/.test(group)
119
- )))
120
- return false;
121
- if (value.shareIntoAppGroupId !== void 0 && typeof value.shareIntoAppGroupId !== "string")
122
- return false;
123
- if (value.rtcAppGroupIdentifier !== void 0 && typeof value.rtcAppGroupIdentifier !== "string")
124
- return false;
125
- if (value.screenShareExtensionBundleId !== void 0 && typeof value.screenShareExtensionBundleId !== "string")
126
- return false;
127
- if (value.applicationDisplayName !== void 0 && typeof value.applicationDisplayName !== "string")
128
- return false;
129
- if (value.rootModuleName !== void 0 && typeof value.rootModuleName !== "string")
130
- return false;
131
- if (value.rootViewBackgroundColor !== void 0 && (typeof value.rootViewBackgroundColor !== "number" || !Number.isInteger(value.rootViewBackgroundColor)))
132
- return false;
133
- if (value.designRequiresCompatibility !== void 0 && value.designRequiresCompatibility !== true)
134
- return false;
135
- for (const orientations of [
136
- value.supportedInterfaceOrientations,
137
- value.ipadSupportedInterfaceOrientations
138
- ]) {
139
- if (orientations !== void 0 && (!Array.isArray(orientations) || !orientations.every((orientation) => typeof orientation === "string")))
140
- return false;
141
- }
142
- if (value.defaultScreenOrientationMask !== void 0 && typeof value.defaultScreenOrientationMask !== "string")
143
- return false;
144
- if (value.appIconArtwork !== void 0 && !isNativeAppIconArtwork(value.appIconArtwork))
145
- return false;
146
- const platform = value.platform;
147
- if (value.alternateIconNames !== void 0 && (!Array.isArray(value.alternateIconNames) || !value.alternateIconNames.every((name) => typeof name === "string")))
148
- return false;
149
- if (platform !== "ios" && platform !== "android") return false;
150
- const applicationName = value.applicationName;
151
- if (applicationName !== null && nonEmptyString(applicationName) === null) return false;
152
- if (value.bundleName !== void 0 && nonEmptyString(value.bundleName) === null)
153
- return false;
154
- if (nonEmptyString(value.appVersion) === null) return false;
155
- if (nonEmptyString(value.bundleIdentifier) === null) return false;
156
- const buildVersion = nonEmptyString(value.buildVersion);
157
- if (buildVersion === null) return false;
158
- if (platform === "android" && !/^[1-9][0-9]*$/.test(buildVersion)) return false;
159
- return true;
160
- }
161
-
162
- // src/swiftContract.ts
163
- function isSwiftResourcePath(value) {
164
- return typeof value === "string" && value.length <= 4096 && !value.startsWith("/") && !value.includes("\\") && !value.includes("\0") && value.split("/").every((part) => part !== "" && part !== "." && part !== "..");
165
- }
1
+ /*! peach v0.1.2439 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
+ import {
3
+ isSwiftResourcePath
4
+ } from "./esm-chunks/chunk-C3WBGYP6.mjs";
5
+ import {
6
+ isNativeAppIdentity
7
+ } from "./esm-chunks/chunk-5T4XBUJP.mjs";
8
+ import "./esm-chunks/chunk-DEGYKHN7.mjs";
9
+ import {
10
+ insertBundleGlobalFooter,
11
+ readBundleGlobalFooter
12
+ } from "./esm-chunks/chunk-CVGDRROP.mjs";
13
+ import {
14
+ isRecord
15
+ } from "./esm-chunks/chunk-JCKI3VZ6.mjs";
16
+ import "./esm-chunks/chunk-IWJUYJQO.mjs";
166
17
 
167
18
  // src/expoSwiftContract.ts
168
19
  function strings(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2438 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2439 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;