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.
- package/README.md +30 -98
- package/cli/app-catalog.ts +4 -73
- package/cli/catalog/content.ts +1 -1
- package/cli/cloud-box-artifact.ts +26 -39
- package/cli/cloud-client.ts +69 -117
- package/cli/cloud-session.ts +2 -9
- package/cli/commands/box.ts +6 -6
- package/cli/commands/control.ts +4 -11
- package/cli/commands/flow.ts +5 -9
- package/cli/commands/kotlin.ts +2 -1
- package/cli/commands/platform.ts +21 -39
- package/cli/commands/record-three.ts +1 -1
- package/cli/commands/shell-url.ts +29 -23
- package/cli/dev-build-freshness.ts +4 -3
- package/cli/native-input.ts +2 -2
- package/cli/outbound-endpoints.ts +20 -45
- package/cli/remote-project-bundle.ts +8 -14
- package/cli/remote-simulators.ts +1 -1
- package/cli/send-to-box.ts +2 -1
- package/detox/jest-preset.cjs +1 -1
- package/detox/jest-transform.cjs +40 -2
- package/dist-lib/agent-daemon-client.cjs +34 -24
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +19 -17
- package/dist-lib/auth/shared-session.cjs +18 -16
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -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 +20 -583
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +17 -99
- package/dist-lib/bundle-channel.cjs +8718 -5552
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +13 -363
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +34 -155
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +26 -155
- package/dist-lib/config.cjs +1 -4
- package/dist-lib/config.mjs +11 -30
- package/dist-lib/detox/index.cjs +2554 -230
- package/dist-lib/detox/jest-preset.cjs +1 -1
- package/dist-lib/detox/jest-transform.cjs +40 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/acorn-FGE4PYDJ.mjs +50 -0
- package/dist-lib/esm-chunks/chunk-2EUHEBIJ.mjs +664 -0
- package/dist-lib/esm-chunks/chunk-2NPABFPN.mjs +5719 -0
- package/dist-lib/esm-chunks/chunk-4ZFNH7TU.mjs +10 -0
- package/dist-lib/esm-chunks/chunk-5T4XBUJP.mjs +1353 -0
- package/dist-lib/esm-chunks/chunk-6VY6HTJC.mjs +18951 -0
- package/dist-lib/esm-chunks/chunk-7HANEMO4.mjs +188 -0
- package/dist-lib/esm-chunks/chunk-C3WBGYP6.mjs +186 -0
- package/dist-lib/esm-chunks/chunk-CVGDRROP.mjs +57 -0
- package/dist-lib/esm-chunks/chunk-DADGQELM.mjs +375 -0
- package/dist-lib/esm-chunks/chunk-DEGYKHN7.mjs +12 -0
- package/dist-lib/esm-chunks/chunk-HIDNO3RP.mjs +10992 -0
- package/dist-lib/esm-chunks/chunk-HSADZOVN.mjs +30 -0
- package/dist-lib/esm-chunks/chunk-IWJUYJQO.mjs +42 -0
- package/dist-lib/esm-chunks/chunk-JCKI3VZ6.mjs +10 -0
- package/dist-lib/esm-chunks/chunk-KSQ5KM5Y.mjs +17 -0
- package/dist-lib/esm-chunks/chunk-KVTIDLBK.mjs +598 -0
- package/dist-lib/esm-chunks/chunk-MIQSRBVU.mjs +10 -0
- package/dist-lib/esm-chunks/chunk-YB27R6JG.mjs +115 -0
- package/dist-lib/esm-chunks/metro-layout-parser-MVUAXRUJ.mjs +58 -0
- package/dist-lib/expo-swift-bundle.cjs +7856 -4707
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +16 -165
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +15658 -11404
- package/dist-lib/host/fetch-proxy-handler.cjs +3927 -342
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -1
- package/dist-lib/host/replacement-module-handler.cjs +4 -4
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +9145 -32150
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +2 -2
- package/dist-lib/kotlin-host.cjs +260 -253
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +5 -13
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +5 -6
- package/dist-lib/metro-production-bundle.cjs +22 -3
- package/dist-lib/metro-production-bundle.mjs +26 -92
- package/dist-lib/native-app-identity-project.cjs +663 -451
- package/dist-lib/native-app-identity-project.mjs +509 -2318
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +27 -1340
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +5 -18
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -1
- package/dist-lib/plist.cjs +2 -2
- package/dist-lib/plist.mjs +5 -7
- package/dist-lib/profiles.cjs +2 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +246 -187
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +1059 -1238
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -1
- package/dist-lib/reap-browser.cjs +18 -7
- package/dist-lib/scripts/dev-server-scanner.cjs +6 -230
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +22 -78
- package/dist-lib/skills.cjs +21657 -17374
- package/dist-lib/swift-compile.cjs +1343 -1318
- package/dist-lib/swift-compile.mjs +68 -19013
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +35 -630
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +9 -24
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +18061 -0
- package/dist-lib/vendor/acorn.cjs +5699 -0
- package/dist-lib/vendor/bplist-parser.cjs +1589 -0
- package/dist-lib/vendor/ignore.cjs +455 -0
- package/dist-lib/vendor/magic-string.cjs +1693 -0
- package/dist-lib/vendor/plist.cjs +10978 -0
- package/dist-lib/vendor/smol-toml.cjs +768 -0
- package/dist-lib/vendor/stream-json.cjs +1997 -0
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +23593 -0
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +15750 -0
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +11316 -0
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +482 -0
- package/dist-lib/vendor/sucrase.cjs +23593 -0
- package/dist-lib/vendor/terser.cjs +36874 -0
- package/dist-lib/vendor/valibot.cjs +6253 -0
- package/dist-lib/vendor/zod.cjs +23262 -0
- package/dist-lib/worklet-executable.cjs +3 -3
- package/dist-lib/worklet-executable.mjs +11 -16
- package/dist-types/packages/peach-engine/src/config.d.ts +1 -1
- package/kotlin/fork/NOTICE +3 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/kotlin/toolchain.json +6 -6
- package/package.json +17 -121
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +13 -223
- package/src/android-autolinking.ts +2 -2
- package/src/bundle-channel.mjs +3 -15
- package/src/cloud-contract.ts +3 -4
- package/src/config.ts +0 -5
- package/src/host/bridge-host.ts +19 -1
- package/src/host/server-scan-handler.ts +1 -9
- package/src/index.ts +0 -2
- package/src/kotlin-host.ts +1 -2
- package/src/kotlinDiscoveryContract.ts +1 -0
- package/src/metro-production-bundle.ts +28 -6
- package/src/native-seam-manifest.ts +0 -13
- package/src/one-native-app-catalog.ts +8 -27
- package/src/one-native-app-config.ts +95 -0
- package/src/one-native-source.ts +250 -0
- package/src/one-widget-metadata.ts +45 -126
- package/src/oneWidgetContract.ts +80 -117
- package/src/serverDiscoveryContract.ts +0 -1
- package/src/simulator-route.ts +8 -0
- package/src/vite-plugin.ts +2 -2
- package/src/xcode-project.ts +1 -1
- package/dist-lib/metro.cjs +0 -27984
- package/dist-lib/vite-swift.cjs +0 -43376
- package/dist-lib/vite.cjs +0 -21456
- package/src/androidAutolinkingContract.ts +0 -48
- package/src/androidRootModuleContract.ts +0 -39
- package/src/dev-server-open.ts +0 -92
- package/src/metro-plugin.ts +0 -578
- package/src/one-widget-discovery.ts +0 -23
- package/src/swift-vite-lifetime.ts +0 -42
- package/src/vite-plugin-one.ts +0 -746
- package/src/vite-plugin-swift.ts +0 -225
- package/src/vite.d.ts +0 -10
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,7 +1,29 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/*! peach v0.1.2439 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import {
|
|
3
|
+
sleep
|
|
4
|
+
} from "./esm-chunks/chunk-MIQSRBVU.mjs";
|
|
5
|
+
import {
|
|
6
|
+
isRnxScreenCapture
|
|
7
|
+
} from "./esm-chunks/chunk-DADGQELM.mjs";
|
|
8
|
+
import {
|
|
9
|
+
RNX_CLOUD_COMMAND_TYPES,
|
|
10
|
+
RNX_CLOUD_MAX_ARTIFACT_BYTES,
|
|
11
|
+
RNX_CLOUD_SCOPED_TOKEN_PREFIX,
|
|
12
|
+
RNX_CLOUD_TOKEN_SCOPES,
|
|
13
|
+
isRnxCloudCommandScope,
|
|
14
|
+
isRnxCloudCommandType,
|
|
15
|
+
rnxCloudCommandScope,
|
|
16
|
+
rnxCloudScopesAllowCommand
|
|
17
|
+
} from "./esm-chunks/chunk-7HANEMO4.mjs";
|
|
18
|
+
import {
|
|
19
|
+
rnxPublicBrand
|
|
20
|
+
} from "./esm-chunks/chunk-KSQ5KM5Y.mjs";
|
|
21
|
+
import {
|
|
22
|
+
isRecord
|
|
23
|
+
} from "./esm-chunks/chunk-JCKI3VZ6.mjs";
|
|
24
|
+
import {
|
|
25
|
+
__publicField
|
|
26
|
+
} from "./esm-chunks/chunk-IWJUYJQO.mjs";
|
|
5
27
|
|
|
6
28
|
// src/backend-origin.ts
|
|
7
29
|
var NativeURL = globalThis.URL;
|
|
@@ -13,157 +35,6 @@ function isLoopbackHost(hostname) {
|
|
|
13
35
|
return normalized === "localhost" || normalized.endsWith(".localhost") || normalized === "0.0.0.0" || normalized === "::1" || /^127(?:\.\d{1,3}){3}$/.test(normalized);
|
|
14
36
|
}
|
|
15
37
|
|
|
16
|
-
// src/capture-contract.ts
|
|
17
|
-
var RNX_SCREEN_CAPTURE_VERSION = 1;
|
|
18
|
-
function captureRecord(value) {
|
|
19
|
-
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
20
|
-
}
|
|
21
|
-
function captureInteger(value) {
|
|
22
|
-
return typeof value === "number" && Number.isSafeInteger(value);
|
|
23
|
-
}
|
|
24
|
-
function captureNumber(value) {
|
|
25
|
-
return typeof value === "number" && Number.isFinite(value);
|
|
26
|
-
}
|
|
27
|
-
function captureNullableString(value) {
|
|
28
|
-
return value === null || typeof value === "string";
|
|
29
|
-
}
|
|
30
|
-
function captureRect(value) {
|
|
31
|
-
return captureRecord(value) && captureNumber(value.x) && captureNumber(value.y) && captureNumber(value.width) && captureNumber(value.height);
|
|
32
|
-
}
|
|
33
|
-
function captureOptionalString(value) {
|
|
34
|
-
return value === void 0 || typeof value === "string";
|
|
35
|
-
}
|
|
36
|
-
function captureOptionalNullableString(value) {
|
|
37
|
-
return value === void 0 || captureNullableString(value);
|
|
38
|
-
}
|
|
39
|
-
function captureFontRegistration(value) {
|
|
40
|
-
return captureRecord(value) && typeof value.family === "string" && value.family.length > 0 && captureOptionalString(value.url) && captureOptionalString(value.sourceLabel) && captureOptionalNullableString(value.parsedFamily) && captureOptionalNullableString(value.parsedPostScript) && captureOptionalNullableString(value.fullName);
|
|
41
|
-
}
|
|
42
|
-
function capturePoint(value) {
|
|
43
|
-
return captureRecord(value) && captureNumber(value.x) && captureNumber(value.y);
|
|
44
|
-
}
|
|
45
|
-
function captureNode(value) {
|
|
46
|
-
if (!captureRecord(value) || !captureInteger(value.nodeId) || !(value.parentNodeId === null || captureInteger(value.parentNodeId)) || !Array.isArray(value.childNodeIds) || !value.childNodeIds.every(captureInteger) || !captureInteger(value.paintIndex) || typeof value.type !== "string" || !captureNullableString(value.id) || !captureNullableString(value.testID) || !captureNullableString(value.text) || !captureInteger(value.childCount) || !captureRecord(value.accessibility) || !captureRecord(value.interaction) || !captureRecord(value.layout) || !captureRecord(value.style) || !captureRecord(value.source) || !captureRecord(value.props) || !captureRecord(value.inspection)) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
const accessibility = value.accessibility;
|
|
50
|
-
if (typeof accessibility.accessible !== "boolean" || !captureNullableString(accessibility.label) || !captureNullableString(accessibility.role) || !captureNullableString(accessibility.hint) || !(accessibility.liveRegion === null || accessibility.liveRegion === "none" || accessibility.liveRegion === "polite" || accessibility.liveRegion === "assertive") || !(accessibility.state === null || captureRecord(accessibility.state)) || !(accessibility.value === null || captureRecord(accessibility.value))) {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
const interaction = value.interaction;
|
|
54
|
-
if (typeof interaction.pressed !== "boolean" || typeof interaction.pressable !== "boolean" || typeof interaction.textInput !== "boolean" || !(interaction.textSelection === null || captureRecord(interaction.textSelection)) || typeof interaction.secureTextEntry !== "boolean" || !captureNullableString(interaction.placeholder) || !capturePoint(interaction.scrollOffset) || !(interaction.zoomScale === null || captureNumber(interaction.zoomScale)) || typeof interaction.nativePinchEnabled !== "boolean" || !(interaction.contentOffsetProp === null || captureRecord(interaction.contentOffsetProp)) || !(interaction.strokeDashoffsetProp === null || captureNumber(interaction.strokeDashoffsetProp))) {
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
const layout = value.layout;
|
|
58
|
-
if (!captureRect(layout.local) || !(layout.frame === null || captureRect(layout.frame)) || !capturePoint(layout.absolutePosition) || !(layout.visibleFrame === null || captureRect(layout.visibleFrame))) {
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
const style = value.style;
|
|
62
|
-
return captureRecord(style.resolved) && captureRecord(style.authored) && captureRecord(style.computed) && captureRecord(style.tokenBindings) && (value.textLines === void 0 || Array.isArray(value.textLines));
|
|
63
|
-
}
|
|
64
|
-
function isRnxScreenCapture(value) {
|
|
65
|
-
if (!captureRecord(value) || value.contractVersion !== RNX_SCREEN_CAPTURE_VERSION || !captureInteger(value.capturedAt) || !(value.committedRoute === void 0 || value.committedRoute === null || captureRecord(value.committedRoute) && typeof value.committedRoute.href === "string" && value.committedRoute.href.startsWith("/")) || !captureRecord(value.tree) || !(value.fonts === void 0 || Array.isArray(value.fonts) && value.fonts.length <= 200 && value.fonts.every(captureFontRegistration)) || !(value.visual === void 0 || captureRecord(value.visual))) {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
const tree = value.tree;
|
|
69
|
-
const visual = value.visual;
|
|
70
|
-
return captureRecord(tree.viewport) && captureInteger(tree.viewport.width) && tree.viewport.width > 0 && captureInteger(tree.viewport.height) && tree.viewport.height > 0 && captureInteger(tree.rootNodeId) && (tree.commitRevision === void 0 || captureInteger(tree.commitRevision)) && Array.isArray(tree.nodes) && tree.nodes.every(captureNode) && (visual === void 0 || visual.kind === "png" && (visual.producer === "headless-cpu-app-surface" || visual.producer === "browser-compositor-app-surface") && typeof visual.dataUri === "string" && visual.dataUri.startsWith("data:image/png;base64,") && captureInteger(visual.pixelWidth) && visual.pixelWidth > 0 && captureInteger(visual.pixelHeight) && visual.pixelHeight > 0);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// src/cloud-contract.ts
|
|
74
|
-
var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
|
|
75
|
-
var RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES = 1024 * 1024;
|
|
76
|
-
var RNX_CLOUD_COMMAND_SCOPE_SET = /* @__PURE__ */ new Set([
|
|
77
|
-
"read",
|
|
78
|
-
"drive",
|
|
79
|
-
"reset",
|
|
80
|
-
"media",
|
|
81
|
-
"debug",
|
|
82
|
-
"watch"
|
|
83
|
-
]);
|
|
84
|
-
function isRnxCloudCommandScope(value) {
|
|
85
|
-
return RNX_CLOUD_COMMAND_SCOPE_SET.has(value);
|
|
86
|
-
}
|
|
87
|
-
var RNX_CLOUD_SCOPED_TOKEN_PREFIX = "sk_rnx_sim_";
|
|
88
|
-
var RNX_CLOUD_COMMAND_SCOPES = {
|
|
89
|
-
state: "read",
|
|
90
|
-
tree: "read",
|
|
91
|
-
query: "read",
|
|
92
|
-
resolve: "read",
|
|
93
|
-
screenshot: "read",
|
|
94
|
-
capture: "read",
|
|
95
|
-
captureRegions: "read",
|
|
96
|
-
memory: "read",
|
|
97
|
-
diagnostics: "read",
|
|
98
|
-
storageSnapshot: "read",
|
|
99
|
-
perform: "drive",
|
|
100
|
-
waitFor: "drive",
|
|
101
|
-
tap: "drive",
|
|
102
|
-
longPress: "drive",
|
|
103
|
-
settle: "drive",
|
|
104
|
-
openUrl: "drive",
|
|
105
|
-
setAppearance: "drive",
|
|
106
|
-
keyboard: "drive",
|
|
107
|
-
focus: "drive",
|
|
108
|
-
flowStatus: "drive",
|
|
109
|
-
reset: "reset",
|
|
110
|
-
recorder: "drive",
|
|
111
|
-
camera: "media",
|
|
112
|
-
location: "media",
|
|
113
|
-
// string evaluation and arbitrary bridge calls are maestro's boundary: the
|
|
114
|
-
// customer sdk never carries this scope, and the service grants it only to
|
|
115
|
-
// the account api key caller. close rides along, since ending the page ends
|
|
116
|
-
// the sim and belongs to the sim's owner rather than any driver.
|
|
117
|
-
evaluate: "debug",
|
|
118
|
-
call: "debug",
|
|
119
|
-
close: "debug"
|
|
120
|
-
};
|
|
121
|
-
function scopeTableKeys() {
|
|
122
|
-
return Object.keys(RNX_CLOUD_COMMAND_SCOPES).filter(
|
|
123
|
-
(key) => Object.prototype.hasOwnProperty.call(RNX_CLOUD_COMMAND_SCOPES, key)
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
var RNX_CLOUD_COMMAND_TYPES = Object.freeze(scopeTableKeys());
|
|
127
|
-
var RNX_CLOUD_COMMAND_TYPE_SET = new Set(RNX_CLOUD_COMMAND_TYPES);
|
|
128
|
-
function isRnxCloudCommandType(value) {
|
|
129
|
-
return RNX_CLOUD_COMMAND_TYPE_SET.has(value);
|
|
130
|
-
}
|
|
131
|
-
function rnxCloudCommandScope(type) {
|
|
132
|
-
return RNX_CLOUD_COMMAND_SCOPES[type];
|
|
133
|
-
}
|
|
134
|
-
var RNX_CLOUD_TOKEN_SCOPES = Object.freeze([
|
|
135
|
-
"read",
|
|
136
|
-
"drive",
|
|
137
|
-
"reset",
|
|
138
|
-
"media"
|
|
139
|
-
]);
|
|
140
|
-
var RNX_CLOUD_ALL_COMMAND_SCOPES = Object.freeze(["read", "drive", "reset", "media", "debug"]);
|
|
141
|
-
function rnxCloudScopesAllowCommand(scopes, type) {
|
|
142
|
-
return scopes.includes(RNX_CLOUD_COMMAND_SCOPES[type]);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// src/is-record.ts
|
|
146
|
-
function isRecord(value) {
|
|
147
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
// src/public-brand.ts
|
|
151
|
-
var name = "Peach";
|
|
152
|
-
var peachPublicBrand = Object.freeze({
|
|
153
|
-
name,
|
|
154
|
-
packageName: "peachsim",
|
|
155
|
-
commandName: "peach",
|
|
156
|
-
domain: "peachsim.com",
|
|
157
|
-
origin: "https://peachsim.com",
|
|
158
|
-
boxOrigin: "https://rnx-box.contrast.dev"
|
|
159
|
-
});
|
|
160
|
-
var rnxPublicBrand = peachPublicBrand;
|
|
161
|
-
|
|
162
|
-
// src/sleep.ts
|
|
163
|
-
function sleep(ms) {
|
|
164
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
165
|
-
}
|
|
166
|
-
|
|
167
38
|
// src/cloud.ts
|
|
168
39
|
var DEFAULT_DEVICE = "iphone-16";
|
|
169
40
|
var DEFAULT_WAIT_READY_MS = 2e4;
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
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;
|
|
@@ -24,7 +24,6 @@ var config_exports = {};
|
|
|
24
24
|
__export(config_exports, {
|
|
25
25
|
PEACH_CONFIGURED_FILES_HOOK: () => PEACH_CONFIGURED_FILES_HOOK,
|
|
26
26
|
PEACH_CONFIG_QUERY_PARAM: () => PEACH_CONFIG_QUERY_PARAM,
|
|
27
|
-
PEACH_WORKSPACE_MODULE_MARKER: () => PEACH_WORKSPACE_MODULE_MARKER,
|
|
28
27
|
applyPeachConfigToUrl: () => applyPeachConfigToUrl,
|
|
29
28
|
collectConfiguredFileModules: () => collectConfiguredFileModules,
|
|
30
29
|
createPeachBundleConfigFooter: () => createPeachBundleConfigFooter,
|
|
@@ -94,7 +93,6 @@ function readNativeRenderer(value) {
|
|
|
94
93
|
if (value === "paper" || value === "fabric") return value;
|
|
95
94
|
throw new Error("nativeRenderer must be paper or fabric");
|
|
96
95
|
}
|
|
97
|
-
var PEACH_WORKSPACE_MODULE_MARKER = "__peach_workspace_module";
|
|
98
96
|
function matchConfigModule(name, modules) {
|
|
99
97
|
const entries = Object.entries(modules).sort((a, b) => b[0].length - a[0].length);
|
|
100
98
|
const modulePath = name.startsWith("/") ? name : `/${name}`;
|
|
@@ -264,7 +262,6 @@ function applyPeachConfigToUrl(url, config) {
|
|
|
264
262
|
0 && (module.exports = {
|
|
265
263
|
PEACH_CONFIGURED_FILES_HOOK,
|
|
266
264
|
PEACH_CONFIG_QUERY_PARAM,
|
|
267
|
-
PEACH_WORKSPACE_MODULE_MARKER,
|
|
268
265
|
applyPeachConfigToUrl,
|
|
269
266
|
collectConfiguredFileModules,
|
|
270
267
|
createPeachBundleConfigFooter,
|
package/dist-lib/config.mjs
CHANGED
|
@@ -1,31 +1,14 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const newline = source.lastIndexOf("\n", end - 1);
|
|
13
|
-
if (newline < 0) return -1;
|
|
14
|
-
const line = newline + 1;
|
|
15
|
-
if (source.startsWith(prefix, line)) return newline;
|
|
16
|
-
if (!isFooterBlockLine(source, line, end)) return -1;
|
|
17
|
-
end = newline;
|
|
18
|
-
}
|
|
19
|
-
return -1;
|
|
20
|
-
}
|
|
21
|
-
function isFooterBlockLine(source, line, end) {
|
|
22
|
-
return line === end || source.startsWith("globalThis.", line) || source.startsWith("//", line);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// src/is-record.ts
|
|
26
|
-
function isRecord(value) {
|
|
27
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
28
|
-
}
|
|
1
|
+
/*! peach v0.1.2439 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import {
|
|
3
|
+
isValidRuntimeVersion
|
|
4
|
+
} from "./esm-chunks/chunk-4ZFNH7TU.mjs";
|
|
5
|
+
import {
|
|
6
|
+
findBundleFooter
|
|
7
|
+
} from "./esm-chunks/chunk-CVGDRROP.mjs";
|
|
8
|
+
import {
|
|
9
|
+
isRecord
|
|
10
|
+
} from "./esm-chunks/chunk-JCKI3VZ6.mjs";
|
|
11
|
+
import "./esm-chunks/chunk-IWJUYJQO.mjs";
|
|
29
12
|
|
|
30
13
|
// src/nativeViewSourceContract.ts
|
|
31
14
|
function isNativeViewSource(value) {
|
|
@@ -52,7 +35,6 @@ function readNativeRenderer(value) {
|
|
|
52
35
|
if (value === "paper" || value === "fabric") return value;
|
|
53
36
|
throw new Error("nativeRenderer must be paper or fabric");
|
|
54
37
|
}
|
|
55
|
-
var PEACH_WORKSPACE_MODULE_MARKER = "__peach_workspace_module";
|
|
56
38
|
function matchConfigModule(name, modules) {
|
|
57
39
|
const entries = Object.entries(modules).sort((a, b) => b[0].length - a[0].length);
|
|
58
40
|
const modulePath = name.startsWith("/") ? name : `/${name}`;
|
|
@@ -221,7 +203,6 @@ function applyPeachConfigToUrl(url, config) {
|
|
|
221
203
|
export {
|
|
222
204
|
PEACH_CONFIGURED_FILES_HOOK,
|
|
223
205
|
PEACH_CONFIG_QUERY_PARAM,
|
|
224
|
-
PEACH_WORKSPACE_MODULE_MARKER,
|
|
225
206
|
applyPeachConfigToUrl,
|
|
226
207
|
collectConfiguredFileModules,
|
|
227
208
|
createPeachBundleConfigFooter,
|