peachsim 0.1.1653 → 0.1.1655
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-stubs.ts +97 -14
- package/cli/bridge-diagnostics.ts +10 -7
- package/cli/cloud-client.ts +11 -2
- package/cli/commands/doctor.ts +20 -10
- package/cli/commands/inspect/core.ts +2 -1
- package/cli/commands/inspect/shared.ts +2 -0
- package/cli/commands/inspect.ts +11 -2
- package/cli/output-redaction.ts +22 -6
- package/cli/pause-aware-timeout.ts +24 -10
- package/cli/ws-bridge.ts +17 -1
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.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/bundle-channel.cjs +277 -244
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +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/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +47 -12
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +276 -243
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +320 -246
- package/dist-lib/host/fetch-proxy-handler.cjs +191 -31
- 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 +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +633 -373
- 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 +62 -14
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.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/public-origins-lib-esm.json +23 -23
- package/dist-lib/public-origins-lib.json +62 -54
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +2 -2
- package/dist-lib/sdk.mjs +2 -2
- package/dist-lib/skills.cjs +535 -380
- package/dist-lib/swift-compile.cjs +258 -197
- package/dist-lib/swift-compile.mjs +257 -197
- 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-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +276 -243
- package/dist-lib/vite.cjs +385 -200
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +1 -0
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +10 -7
- package/dist-types/packages/peach-engine/src/capture/browser-composite.d.ts +10 -0
- package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +23 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/visible-frame.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/observability/types.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +38 -0
- package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +9 -0
- package/package.json +5 -1
- package/runtime-companion.json +1 -1
- package/src/bridge-contract.ts +2 -0
- package/src/bundleGlobalFooter.ts +9 -0
- package/src/host/fetch-proxy-handler.ts +54 -0
- package/src/sfSymbolMetricsContract.ts +268 -0
- package/src/swift-compile.ts +302 -238
- package/src/swift-distribution.lock.json +20 -46
- package/src/swift-objc-metadata.ts +21 -7
- package/src/swift-objc-sdk.ts +13 -0
- package/src/swiftContract.ts +2 -0
- package/src/vite-plugin-one.ts +161 -16
- package/src/host/lease-owner.test.ts +0 -49
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1655 | (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);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/config.mjs
CHANGED
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -4614,7 +4614,7 @@ var import_node_module = require("node:module");
|
|
|
4614
4614
|
var import_node_path2 = require("node:path");
|
|
4615
4615
|
|
|
4616
4616
|
// runtime-companion.json
|
|
4617
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
4617
|
+
var runtime_companion_default = { abi: 1, sha256: "6f6a55398d832d1703346a258bf9f81bf78fded8cf5d83cdf51e5e15ccd7a1ce", file: "node/cli-6f6a55398d832d1703346a258bf9f81bf78fded8cf5d83cdf51e5e15ccd7a1ce.cjs" };
|
|
4618
4618
|
|
|
4619
4619
|
// src/runtime-assets.ts
|
|
4620
4620
|
var import_fs = __toESM(require("fs"), 1);
|
|
@@ -5855,7 +5855,20 @@ var DEFAULT_ORIGIN = peachPublicBrand.origin;
|
|
|
5855
5855
|
|
|
5856
5856
|
// cli/run-rnx.ts
|
|
5857
5857
|
var import_node_async_hooks = require("node:async_hooks");
|
|
5858
|
+
var PeachExit = class extends Error {
|
|
5859
|
+
code;
|
|
5860
|
+
reason;
|
|
5861
|
+
constructor(code, reason = null) {
|
|
5862
|
+
super(`peach exited with code ${code}`);
|
|
5863
|
+
this.name = "PeachExit";
|
|
5864
|
+
this.code = code;
|
|
5865
|
+
this.reason = reason;
|
|
5866
|
+
}
|
|
5867
|
+
};
|
|
5858
5868
|
var sinks = new import_node_async_hooks.AsyncLocalStorage();
|
|
5869
|
+
function peachExit(code, reason) {
|
|
5870
|
+
throw new PeachExit(code, reason);
|
|
5871
|
+
}
|
|
5859
5872
|
|
|
5860
5873
|
// cli/cloud-session.ts
|
|
5861
5874
|
var MAX_ENCODED_SESSION_BYTES = 32 * 1024;
|
|
@@ -8537,6 +8550,7 @@ var LEDGER_PATH2 = import_node_path4.default.join(
|
|
|
8537
8550
|
var TICK_MS2 = 500;
|
|
8538
8551
|
var timers = /* @__PURE__ */ new Set();
|
|
8539
8552
|
var poll;
|
|
8553
|
+
var pollDueAt = 0;
|
|
8540
8554
|
function pausedPids() {
|
|
8541
8555
|
try {
|
|
8542
8556
|
const ledger = JSON.parse(
|
|
@@ -8568,6 +8582,7 @@ function heldRoots(paused, roots) {
|
|
|
8568
8582
|
return held;
|
|
8569
8583
|
}
|
|
8570
8584
|
function tick() {
|
|
8585
|
+
poll = void 0;
|
|
8571
8586
|
const now = Date.now();
|
|
8572
8587
|
const paused = pausedPids();
|
|
8573
8588
|
const held = paused.length ? heldRoots(paused, new Set([...timers].map((timer) => timer.hostPid))) : /* @__PURE__ */ new Set();
|
|
@@ -8579,10 +8594,23 @@ function tick() {
|
|
|
8579
8594
|
timer.fire();
|
|
8580
8595
|
}
|
|
8581
8596
|
}
|
|
8582
|
-
|
|
8583
|
-
|
|
8597
|
+
schedule();
|
|
8598
|
+
}
|
|
8599
|
+
function schedule() {
|
|
8600
|
+
if (timers.size === 0) {
|
|
8601
|
+
if (poll) clearTimeout(poll);
|
|
8584
8602
|
poll = void 0;
|
|
8603
|
+
return;
|
|
8585
8604
|
}
|
|
8605
|
+
const now = Date.now();
|
|
8606
|
+
const soonest = Math.min(
|
|
8607
|
+
...[...timers].map((timer) => timer.remaining - (now - timer.accountedAt))
|
|
8608
|
+
);
|
|
8609
|
+
const due = now + Math.max(0, Math.min(TICK_MS2, soonest));
|
|
8610
|
+
if (poll && pollDueAt <= due) return;
|
|
8611
|
+
if (poll) clearTimeout(poll);
|
|
8612
|
+
pollDueAt = due;
|
|
8613
|
+
poll = setTimeout(tick, due - now);
|
|
8586
8614
|
}
|
|
8587
8615
|
function setPauseAwareTimeout(fn, budgetMs, hostPid) {
|
|
8588
8616
|
if (hostPid === void 0) {
|
|
@@ -8591,15 +8619,10 @@ function setPauseAwareTimeout(fn, budgetMs, hostPid) {
|
|
|
8591
8619
|
}
|
|
8592
8620
|
const timer = { hostPid, remaining: budgetMs, accountedAt: Date.now(), fire: fn };
|
|
8593
8621
|
timers.add(timer);
|
|
8594
|
-
|
|
8595
|
-
poll = setInterval(tick, TICK_MS2);
|
|
8596
|
-
}
|
|
8622
|
+
schedule();
|
|
8597
8623
|
return () => {
|
|
8598
8624
|
timers.delete(timer);
|
|
8599
|
-
|
|
8600
|
-
clearInterval(poll);
|
|
8601
|
-
poll = void 0;
|
|
8602
|
-
}
|
|
8625
|
+
schedule();
|
|
8603
8626
|
};
|
|
8604
8627
|
}
|
|
8605
8628
|
|
|
@@ -8625,6 +8648,18 @@ var DisconnectedSimError = class extends Error {
|
|
|
8625
8648
|
function disconnectedSavedSimMessage(simId, detail = "") {
|
|
8626
8649
|
return `saved sim ${simId} is not connected${detail}; commands resume when it reconnects, or run \`peach list\` and \`peach use <sim>\`, or open a fresh sim`;
|
|
8627
8650
|
}
|
|
8651
|
+
var TIMEOUT_UNIT_MS = { ms: 1, s: 1e3, m: 6e4 };
|
|
8652
|
+
function parseTimeoutMs(value) {
|
|
8653
|
+
const match = /^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(value.trim());
|
|
8654
|
+
const ms = match ? Number(match[1]) * TIMEOUT_UNIT_MS[match[2] ?? "ms"] : NaN;
|
|
8655
|
+
if (!(ms > 0)) {
|
|
8656
|
+
console.error(
|
|
8657
|
+
`--timeout takes a positive duration in milliseconds (or with an ms, s or m suffix), got "${value}"`
|
|
8658
|
+
);
|
|
8659
|
+
peachExit(2);
|
|
8660
|
+
}
|
|
8661
|
+
return ms;
|
|
8662
|
+
}
|
|
8628
8663
|
var BRIDGE_VALUE_FLAGS_TABLE = [
|
|
8629
8664
|
{
|
|
8630
8665
|
names: ["--port", "-p"],
|
|
@@ -8639,7 +8674,7 @@ var BRIDGE_VALUE_FLAGS_TABLE = [
|
|
|
8639
8674
|
names: ["--timeout"],
|
|
8640
8675
|
apply: (state, value) => {
|
|
8641
8676
|
if (value !== void 0) {
|
|
8642
|
-
state.commandTimeoutMs =
|
|
8677
|
+
state.commandTimeoutMs = parseTimeoutMs(value);
|
|
8643
8678
|
state.explicitTimeout = true;
|
|
8644
8679
|
}
|
|
8645
8680
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1655 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|