peachsim 0.1.664 → 0.1.665
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/cli/app-fonts.ts +6 -3
- package/cli/commands/control.ts +18 -2
- package/cli/commands/inspect/core.ts +19 -6
- package/cli/commands/inspect/settling.ts +1 -5
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +2191 -335
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +7 -7
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +7 -7
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +7 -7
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +13 -9
- package/dist-lib/sdk.mjs +13 -9
- package/dist-lib/skills.cjs +2769 -944
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1 -1
- package/dist-lib/vite.cjs +7 -7
- package/kotlin/ComposeSources/PeachComposeHost.kt +6 -3
- package/kotlin/fixtures/kotlin-app-variants/Overlays.kt +56 -0
- package/kotlin/fixtures/kotlin-app-variants/Scroll.kt +63 -0
- package/kotlin/fixtures/kotlin-app-variants/Sheet.kt +43 -0
- package/kotlin/fixtures/kotlin-app-variants/Tabs.kt +47 -0
- package/kotlin/fixtures/kotlin-app-variants/Widgets.kt +13 -2
- package/package.json +2 -2
- package/skills/peach-setup/SKILL.md +1 -1
- package/src/expo-swift-host.ts +248 -0
- package/src/host/bridge-host.ts +19 -0
- package/src/vite-plugin.ts +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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 __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/host/fetch-proxy-overrides.ts
|
|
4
4
|
var FETCH_PROXY_BROWSER_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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 __create = Object.create;
|
|
@@ -170,12 +170,12 @@ function transformsFor(filePath) {
|
|
|
170
170
|
function isLocalSpecifier(specifier) {
|
|
171
171
|
return specifier.startsWith("./") || specifier.startsWith("../");
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
return specifier === "
|
|
173
|
+
function isPeachKitSpecifier(specifier) {
|
|
174
|
+
return specifier === "peach-kit" || specifier.startsWith("peach-kit/");
|
|
175
175
|
}
|
|
176
176
|
function unsupportedSpecifier(specifier) {
|
|
177
177
|
return new Error(
|
|
178
|
-
`replacement modules may only import react, react-native,
|
|
178
|
+
`replacement modules may only import react, react-native, peach-kit, the packages rnx stubs for this app, and other project files by relative path; '${specifier}' is none of those. vendor the code into a project file, or add the package to peach.config so the simulator bridges it.`
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
181
|
function bridgeDeclaration(name, specifier) {
|
|
@@ -186,8 +186,8 @@ function bridgeDeclaration(name, specifier) {
|
|
|
186
186
|
if (specifier === "react-native") {
|
|
187
187
|
return `const ${name} = ${REACT_NATIVE_BRIDGE}; if (!${name}) throw new Error(${notReady("React Native")});`;
|
|
188
188
|
}
|
|
189
|
-
if (
|
|
190
|
-
return `const ${name} = (globalThis.
|
|
189
|
+
if (isPeachKitSpecifier(specifier)) {
|
|
190
|
+
return `const ${name} = (globalThis.__peach_kit_modules && globalThis.__peach_kit_modules[${JSON.stringify(specifier)}]) || (${PACKAGE_BRIDGES} || {})[${JSON.stringify(specifier)}]; if (!${name}) throw new Error(${JSON.stringify(`[peach] replacement package bridge ${specifier} is not ready`)});`;
|
|
191
191
|
}
|
|
192
192
|
if (JSX_RUNTIME_SPECIFIERS.has(specifier)) {
|
|
193
193
|
return `const ${name} = (() => { const react = ${REACT_BRIDGE}; if (!react) throw new Error(${notReady("React")}); const jsx = (type, props, key) => react.createElement(type, key === undefined ? props : { ...props, key }); return { Fragment: react.Fragment, jsx, jsxs: jsx, jsxDEV: jsx }; })();`;
|
|
@@ -315,7 +315,7 @@ function compileReplacementModule(input) {
|
|
|
315
315
|
pointAtLocalModule(specifierToken, specifier);
|
|
316
316
|
continue;
|
|
317
317
|
}
|
|
318
|
-
if (specifier !== "react" && specifier !== "react-native" && !JSX_RUNTIME_SPECIFIERS.has(specifier) && !
|
|
318
|
+
if (specifier !== "react" && specifier !== "react-native" && !JSX_RUNTIME_SPECIFIERS.has(specifier) && !isPeachKitSpecifier(specifier) && !input.runtimePackages.has(specifier)) {
|
|
319
319
|
throw unsupportedSpecifier(specifier);
|
|
320
320
|
}
|
|
321
321
|
const bridge = bindings.length > 0 ? bridgeFor(specifier) : null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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 __create = Object.create;
|
|
@@ -3742,12 +3742,12 @@ function transformsFor(filePath) {
|
|
|
3742
3742
|
function isLocalSpecifier(specifier) {
|
|
3743
3743
|
return specifier.startsWith("./") || specifier.startsWith("../");
|
|
3744
3744
|
}
|
|
3745
|
-
function
|
|
3746
|
-
return specifier === "
|
|
3745
|
+
function isPeachKitSpecifier(specifier) {
|
|
3746
|
+
return specifier === "peach-kit" || specifier.startsWith("peach-kit/");
|
|
3747
3747
|
}
|
|
3748
3748
|
function unsupportedSpecifier(specifier) {
|
|
3749
3749
|
return new Error(
|
|
3750
|
-
`replacement modules may only import react, react-native,
|
|
3750
|
+
`replacement modules may only import react, react-native, peach-kit, the packages rnx stubs for this app, and other project files by relative path; '${specifier}' is none of those. vendor the code into a project file, or add the package to peach.config so the simulator bridges it.`
|
|
3751
3751
|
);
|
|
3752
3752
|
}
|
|
3753
3753
|
function bridgeDeclaration(name2, specifier) {
|
|
@@ -3758,8 +3758,8 @@ function bridgeDeclaration(name2, specifier) {
|
|
|
3758
3758
|
if (specifier === "react-native") {
|
|
3759
3759
|
return `const ${name2} = ${REACT_NATIVE_BRIDGE}; if (!${name2}) throw new Error(${notReady("React Native")});`;
|
|
3760
3760
|
}
|
|
3761
|
-
if (
|
|
3762
|
-
return `const ${name2} = (globalThis.
|
|
3761
|
+
if (isPeachKitSpecifier(specifier)) {
|
|
3762
|
+
return `const ${name2} = (globalThis.__peach_kit_modules && globalThis.__peach_kit_modules[${JSON.stringify(specifier)}]) || (${PACKAGE_BRIDGES} || {})[${JSON.stringify(specifier)}]; if (!${name2}) throw new Error(${JSON.stringify(`[peach] replacement package bridge ${specifier} is not ready`)});`;
|
|
3763
3763
|
}
|
|
3764
3764
|
if (JSX_RUNTIME_SPECIFIERS.has(specifier)) {
|
|
3765
3765
|
return `const ${name2} = (() => { const react = ${REACT_BRIDGE}; if (!react) throw new Error(${notReady("React")}); const jsx = (type, props, key) => react.createElement(type, key === undefined ? props : { ...props, key }); return { Fragment: react.Fragment, jsx, jsxs: jsx, jsxDEV: jsx }; })();`;
|
|
@@ -3887,7 +3887,7 @@ function compileReplacementModule(input) {
|
|
|
3887
3887
|
pointAtLocalModule(specifierToken, specifier);
|
|
3888
3888
|
continue;
|
|
3889
3889
|
}
|
|
3890
|
-
if (specifier !== "react" && specifier !== "react-native" && !JSX_RUNTIME_SPECIFIERS.has(specifier) && !
|
|
3890
|
+
if (specifier !== "react" && specifier !== "react-native" && !JSX_RUNTIME_SPECIFIERS.has(specifier) && !isPeachKitSpecifier(specifier) && !input.runtimePackages.has(specifier)) {
|
|
3891
3891
|
throw unsupportedSpecifier(specifier);
|
|
3892
3892
|
}
|
|
3893
3893
|
const bridge = bindings.length > 0 ? bridgeFor(specifier) : null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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 __create = Object.create;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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 __create = Object.create;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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;
|
package/dist-lib/menu.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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;
|
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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 __create = Object.create;
|
|
@@ -195,12 +195,12 @@ function transformsFor(filePath) {
|
|
|
195
195
|
function isLocalSpecifier(specifier) {
|
|
196
196
|
return specifier.startsWith("./") || specifier.startsWith("../");
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
return specifier === "
|
|
198
|
+
function isPeachKitSpecifier(specifier) {
|
|
199
|
+
return specifier === "peach-kit" || specifier.startsWith("peach-kit/");
|
|
200
200
|
}
|
|
201
201
|
function unsupportedSpecifier(specifier) {
|
|
202
202
|
return new Error(
|
|
203
|
-
`replacement modules may only import react, react-native,
|
|
203
|
+
`replacement modules may only import react, react-native, peach-kit, the packages rnx stubs for this app, and other project files by relative path; '${specifier}' is none of those. vendor the code into a project file, or add the package to peach.config so the simulator bridges it.`
|
|
204
204
|
);
|
|
205
205
|
}
|
|
206
206
|
function bridgeDeclaration(name, specifier) {
|
|
@@ -211,8 +211,8 @@ function bridgeDeclaration(name, specifier) {
|
|
|
211
211
|
if (specifier === "react-native") {
|
|
212
212
|
return `const ${name} = ${REACT_NATIVE_BRIDGE}; if (!${name}) throw new Error(${notReady("React Native")});`;
|
|
213
213
|
}
|
|
214
|
-
if (
|
|
215
|
-
return `const ${name} = (globalThis.
|
|
214
|
+
if (isPeachKitSpecifier(specifier)) {
|
|
215
|
+
return `const ${name} = (globalThis.__peach_kit_modules && globalThis.__peach_kit_modules[${JSON.stringify(specifier)}]) || (${PACKAGE_BRIDGES} || {})[${JSON.stringify(specifier)}]; if (!${name}) throw new Error(${JSON.stringify(`[peach] replacement package bridge ${specifier} is not ready`)});`;
|
|
216
216
|
}
|
|
217
217
|
if (JSX_RUNTIME_SPECIFIERS.has(specifier)) {
|
|
218
218
|
return `const ${name} = (() => { const react = ${REACT_BRIDGE}; if (!react) throw new Error(${notReady("React")}); const jsx = (type, props, key) => react.createElement(type, key === undefined ? props : { ...props, key }); return { Fragment: react.Fragment, jsx, jsxs: jsx, jsxDEV: jsx }; })();`;
|
|
@@ -340,7 +340,7 @@ function compileReplacementModule(input) {
|
|
|
340
340
|
pointAtLocalModule(specifierToken, specifier);
|
|
341
341
|
continue;
|
|
342
342
|
}
|
|
343
|
-
if (specifier !== "react" && specifier !== "react-native" && !JSX_RUNTIME_SPECIFIERS.has(specifier) && !
|
|
343
|
+
if (specifier !== "react" && specifier !== "react-native" && !JSX_RUNTIME_SPECIFIERS.has(specifier) && !isPeachKitSpecifier(specifier) && !input.runtimePackages.has(specifier)) {
|
|
344
344
|
throw unsupportedSpecifier(specifier);
|
|
345
345
|
}
|
|
346
346
|
const bridge = bindings.length > 0 ? bridgeFor(specifier) : null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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;
|
package/dist-lib/plist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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 __create = Object.create;
|
package/dist-lib/plist.mjs
CHANGED
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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 __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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;
|
package/dist-lib/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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 __create = Object.create;
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (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;
|
|
@@ -864,9 +864,17 @@ async function inspectWaitReady(bridge, timeoutMs = 2e4, options = {}) {
|
|
|
864
864
|
if (!status.ready && options.onProgress) options.onProgress(status);
|
|
865
865
|
return status;
|
|
866
866
|
}
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
867
|
+
var READY_SNAPSHOT_SEND_TIMEOUT_MS = 2e3;
|
|
868
|
+
async function inspectReadySnapshot(bridge, budgetMs, simId) {
|
|
869
|
+
const deadline = Date.now() + budgetMs;
|
|
870
|
+
let result;
|
|
871
|
+
do {
|
|
872
|
+
result = await sendReadyWait(bridge, 1, READY_SNAPSHOT_SEND_TIMEOUT_MS, simId);
|
|
873
|
+
} while (result.polls !== 1 && !result.error && Date.now() < deadline);
|
|
874
|
+
return waitReadyStatus(
|
|
875
|
+
result,
|
|
876
|
+
result.polls === 1 && result.probe ? readyProbeIsReady(result.probe) : false
|
|
877
|
+
);
|
|
870
878
|
}
|
|
871
879
|
async function sendReadyWait(bridge, timeoutMs, sendTimeoutMs, simId) {
|
|
872
880
|
const start = Date.now();
|
|
@@ -1712,11 +1720,7 @@ async function waitReadyAndSettle(bridge, timeoutMs, options = {}) {
|
|
|
1712
1720
|
stablePolls: 2
|
|
1713
1721
|
});
|
|
1714
1722
|
if (!idle.settled) return result(ready, idle);
|
|
1715
|
-
const settled = await inspectReadySnapshot(
|
|
1716
|
-
bridge,
|
|
1717
|
-
Math.max(1e3, remaining()),
|
|
1718
|
-
options.simId
|
|
1719
|
-
);
|
|
1723
|
+
const settled = await inspectReadySnapshot(bridge, remaining(), options.simId);
|
|
1720
1724
|
if (settled.ready || remaining() === 0) return result(settled, idle);
|
|
1721
1725
|
}
|
|
1722
1726
|
}
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.665 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -761,9 +761,17 @@ async function inspectWaitReady(bridge, timeoutMs = 2e4, options = {}) {
|
|
|
761
761
|
if (!status.ready && options.onProgress) options.onProgress(status);
|
|
762
762
|
return status;
|
|
763
763
|
}
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
764
|
+
var READY_SNAPSHOT_SEND_TIMEOUT_MS = 2e3;
|
|
765
|
+
async function inspectReadySnapshot(bridge, budgetMs, simId) {
|
|
766
|
+
const deadline = Date.now() + budgetMs;
|
|
767
|
+
let result;
|
|
768
|
+
do {
|
|
769
|
+
result = await sendReadyWait(bridge, 1, READY_SNAPSHOT_SEND_TIMEOUT_MS, simId);
|
|
770
|
+
} while (result.polls !== 1 && !result.error && Date.now() < deadline);
|
|
771
|
+
return waitReadyStatus(
|
|
772
|
+
result,
|
|
773
|
+
result.polls === 1 && result.probe ? readyProbeIsReady(result.probe) : false
|
|
774
|
+
);
|
|
767
775
|
}
|
|
768
776
|
async function sendReadyWait(bridge, timeoutMs, sendTimeoutMs, simId) {
|
|
769
777
|
const start = Date.now();
|
|
@@ -1609,11 +1617,7 @@ async function waitReadyAndSettle(bridge, timeoutMs, options = {}) {
|
|
|
1609
1617
|
stablePolls: 2
|
|
1610
1618
|
});
|
|
1611
1619
|
if (!idle.settled) return result(ready, idle);
|
|
1612
|
-
const settled = await inspectReadySnapshot(
|
|
1613
|
-
bridge,
|
|
1614
|
-
Math.max(1e3, remaining()),
|
|
1615
|
-
options.simId
|
|
1616
|
-
);
|
|
1620
|
+
const settled = await inspectReadySnapshot(bridge, remaining(), options.simId);
|
|
1617
1621
|
if (settled.ready || remaining() === 0) return result(settled, idle);
|
|
1618
1622
|
}
|
|
1619
1623
|
}
|