peachsim 0.1.722 → 0.1.724
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/outbound-endpoints.ts +60 -28
- 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 +31 -44
- 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 +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +16 -28
- 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 +16 -28
- 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 +3 -22
- package/dist-lib/plist.mjs +3 -22
- 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 +6 -25
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +126 -96
- 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 +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +2 -2
- package/dist-lib/vite.cjs +1 -1
- package/package.json +3 -2
- package/src/plist.ts +2 -21
- package/src/swift-submit.ts +2 -1
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.724 | (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;
|
|
@@ -7156,11 +7156,54 @@ var init_registry = __esm({
|
|
|
7156
7156
|
stubType: "native",
|
|
7157
7157
|
versions: [
|
|
7158
7158
|
{
|
|
7159
|
-
range: "
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7159
|
+
range: "=4.7.3 || =5.2.3",
|
|
7160
|
+
features: [
|
|
7161
|
+
{
|
|
7162
|
+
id: "discovery-and-negotiation",
|
|
7163
|
+
usage: 3,
|
|
7164
|
+
importance: 3,
|
|
7165
|
+
estimate: 1,
|
|
7166
|
+
rationale: "sourced devices, formats, FPS, codec recommendations, permissions and native constraint negotiation are implemented"
|
|
7167
|
+
},
|
|
7168
|
+
{
|
|
7169
|
+
id: "capture-and-preview",
|
|
7170
|
+
usage: 3,
|
|
7171
|
+
importance: 3,
|
|
7172
|
+
estimate: 1,
|
|
7173
|
+
rationale: "single-camera preview, encoded photo capture, native frames and renderer delivery are implemented"
|
|
7174
|
+
},
|
|
7175
|
+
{
|
|
7176
|
+
id: "recording",
|
|
7177
|
+
usage: 3,
|
|
7178
|
+
importance: 3,
|
|
7179
|
+
estimate: 0.75,
|
|
7180
|
+
rationale: "ordinary and persistent recording are implemented; encoder support depends on the host codec and native audio-session configuration is absent"
|
|
7181
|
+
},
|
|
7182
|
+
{
|
|
7183
|
+
id: "frame-processors",
|
|
7184
|
+
usage: 2,
|
|
7185
|
+
importance: 3,
|
|
7186
|
+
estimate: 0.5,
|
|
7187
|
+
rationale: "native frame delivery, retained planes and synchronization are implemented; optional vision-camera-worklets integration is absent"
|
|
7188
|
+
},
|
|
7189
|
+
{
|
|
7190
|
+
id: "hardware-controls",
|
|
7191
|
+
usage: 2,
|
|
7192
|
+
importance: 2,
|
|
7193
|
+
estimate: 0,
|
|
7194
|
+
rationale: "optical zoom, sensor focus/exposure, torch, HDR, stabilization, depth and calibration backing are absent"
|
|
7195
|
+
},
|
|
7196
|
+
{
|
|
7197
|
+
id: "multi-camera",
|
|
7198
|
+
usage: 1,
|
|
7199
|
+
importance: 2,
|
|
7200
|
+
estimate: 0,
|
|
7201
|
+
rationale: "the host source has a single camera graph"
|
|
7202
|
+
}
|
|
7203
|
+
],
|
|
7204
|
+
note: "published package JavaScript runs over native v4 CameraView/CameraDevices and v5 Nitro surfaces. The iPhone Air catalog supplies four camera devices, 217 formats, native FPS ranges, stabilization capabilities and MOV/MP4 encoder recommendations. Selected-format planes are resized through FFmpeg and imported into retained native allocations.",
|
|
7205
|
+
working: "sourced device discovery and format/FPS negotiation, native permissions, single-camera preview, retained NV12/BGRA frame planes, encoded JPEG/HEIC capture and MOV/MP4 recording through the shared camera source",
|
|
7206
|
+
missing: "hardware controls for optical zoom/focus/exposure/torch, HDR, stabilization and depth capture; multi-camera source graphs; optional vision-camera-worklets integration. These are backing gaps and remain unadmitted even when the physical catalog reports support."
|
|
7164
7207
|
}
|
|
7165
7208
|
]
|
|
7166
7209
|
},
|
|
@@ -19394,43 +19437,20 @@ var init_native_dev_bundle_url = __esm({
|
|
|
19394
19437
|
}
|
|
19395
19438
|
});
|
|
19396
19439
|
|
|
19397
|
-
// src/is-record.ts
|
|
19398
|
-
function isRecord(value) {
|
|
19399
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
19400
|
-
}
|
|
19401
|
-
var init_is_record = __esm({
|
|
19402
|
-
"src/is-record.ts"() {
|
|
19403
|
-
"use strict";
|
|
19404
|
-
}
|
|
19405
|
-
});
|
|
19406
|
-
|
|
19407
19440
|
// src/plist.ts
|
|
19408
|
-
function resolvePlistParser(value) {
|
|
19409
|
-
if (!isRecord(value)) return null;
|
|
19410
|
-
const direct = value.parse;
|
|
19411
|
-
if (typeof direct === "function") {
|
|
19412
|
-
return (source) => Reflect.apply(direct, value, [source]);
|
|
19413
|
-
}
|
|
19414
|
-
const nested = value.default;
|
|
19415
|
-
if (!isRecord(nested)) return null;
|
|
19416
|
-
const nestedParse = nested.parse;
|
|
19417
|
-
return typeof nestedParse === "function" ? (source) => Reflect.apply(nestedParse, nested, [source]) : null;
|
|
19418
|
-
}
|
|
19419
19441
|
function parsePlistSource(source) {
|
|
19420
|
-
return
|
|
19442
|
+
return import_plist.default.parse(source);
|
|
19421
19443
|
}
|
|
19422
|
-
var import_plist
|
|
19444
|
+
var import_plist;
|
|
19423
19445
|
var init_plist = __esm({
|
|
19424
19446
|
"src/plist.ts"() {
|
|
19425
19447
|
"use strict";
|
|
19426
|
-
import_plist = __toESM(require("
|
|
19427
|
-
init_is_record();
|
|
19428
|
-
parsePlist = resolvePlistParser(import_plist.default);
|
|
19448
|
+
import_plist = __toESM(require("plist"), 1);
|
|
19429
19449
|
}
|
|
19430
19450
|
});
|
|
19431
19451
|
|
|
19432
19452
|
// src/settings-bundle.ts
|
|
19433
|
-
function
|
|
19453
|
+
function isRecord(value) {
|
|
19434
19454
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
19435
19455
|
}
|
|
19436
19456
|
function optionalString(value) {
|
|
@@ -19559,7 +19579,7 @@ async function parsePlistRecord(path30) {
|
|
|
19559
19579
|
if (!metadata.isFile() || metadata.size > MAX_PLIST_BYTES) return null;
|
|
19560
19580
|
const source = await (0, import_promises.readFile)(path30, "utf8");
|
|
19561
19581
|
const parsed = parsePlistSource(source);
|
|
19562
|
-
return
|
|
19582
|
+
return isRecord(parsed) ? parsed : null;
|
|
19563
19583
|
} catch {
|
|
19564
19584
|
return null;
|
|
19565
19585
|
}
|
|
@@ -19595,7 +19615,7 @@ function normalizeMultiValue(raw2, key, title) {
|
|
|
19595
19615
|
};
|
|
19596
19616
|
}
|
|
19597
19617
|
async function normalizeSpecifier(raw2, context) {
|
|
19598
|
-
if (!
|
|
19618
|
+
if (!isRecord(raw2)) return null;
|
|
19599
19619
|
if (context.budget.specifiers >= MAX_SPECIFIERS) return null;
|
|
19600
19620
|
const type = requiredString(raw2.Type);
|
|
19601
19621
|
if (!type) return null;
|
|
@@ -21185,13 +21205,23 @@ var init_internal_child = __esm({
|
|
|
21185
21205
|
}
|
|
21186
21206
|
});
|
|
21187
21207
|
|
|
21208
|
+
// src/is-record.ts
|
|
21209
|
+
function isRecord2(value) {
|
|
21210
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
21211
|
+
}
|
|
21212
|
+
var init_is_record = __esm({
|
|
21213
|
+
"src/is-record.ts"() {
|
|
21214
|
+
"use strict";
|
|
21215
|
+
}
|
|
21216
|
+
});
|
|
21217
|
+
|
|
21188
21218
|
// src/swift-distribution-contract.ts
|
|
21189
21219
|
function swiftDistributionHost(platform, arch) {
|
|
21190
21220
|
const host2 = `${platform}-${arch}`;
|
|
21191
21221
|
return SWIFT_DISTRIBUTION_HOSTS.find((candidate) => candidate === host2) ?? null;
|
|
21192
21222
|
}
|
|
21193
21223
|
function parseSwiftDistributionManifest(value) {
|
|
21194
|
-
if (!
|
|
21224
|
+
if (!isRecord2(value) || typeof value.id !== "string" || typeof value.release !== "string" || typeof value.wasmSdkId !== "string" || typeof value.wasmSdkUrl !== "string" || typeof value.wasmSdkChecksum !== "string" || !isStrings(value.modules) || !isStrings(value.objects) || !isStrings(value.link) || !isRecord2(value.files) || !Object.values(value.files).every((sha) => typeof sha === "string") || typeof value.host !== "string" || !isStrings(value.plugins)) {
|
|
21195
21225
|
throw new Error(`invalid Swift distribution ${SWIFT_DISTRIBUTION_MANIFEST}`);
|
|
21196
21226
|
}
|
|
21197
21227
|
const host2 = SWIFT_DISTRIBUTION_HOSTS.find((candidate) => candidate === value.host);
|
|
@@ -21213,13 +21243,13 @@ function parseSwiftDistributionManifest(value) {
|
|
|
21213
21243
|
};
|
|
21214
21244
|
}
|
|
21215
21245
|
function parseSwiftDistributionLock(value) {
|
|
21216
|
-
if (!
|
|
21246
|
+
if (!isRecord2(value) || typeof value.id !== "string" || !/^[a-f0-9]{16}$/.test(value.id) || typeof value.release !== "string" || typeof value.wasmSdkId !== "string" || typeof value.wasmSdkUrl !== "string" || typeof value.wasmSdkChecksum !== "string" || typeof value.source !== "string" || !isRecord2(value.hosts)) {
|
|
21217
21247
|
throw new Error("invalid Swift distribution lock");
|
|
21218
21248
|
}
|
|
21219
21249
|
const hosts = value.hosts;
|
|
21220
21250
|
const entry = (host2) => {
|
|
21221
21251
|
const item = hosts[host2];
|
|
21222
|
-
if (!
|
|
21252
|
+
if (!isRecord2(item) || typeof item.sha256 !== "string" || !/^[a-f0-9]{64}$/.test(item.sha256) || typeof item.size !== "number") {
|
|
21223
21253
|
throw new Error(`invalid Swift distribution lock entry for ${host2}`);
|
|
21224
21254
|
}
|
|
21225
21255
|
return { sha256: item.sha256, size: item.size };
|
|
@@ -23589,7 +23619,7 @@ var init_swift_submit = __esm({
|
|
|
23589
23619
|
MAX_SWIFT_COMPILE_IMAGES = 128;
|
|
23590
23620
|
MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
23591
23621
|
MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
23592
|
-
SWIFT_HOST_ABI =
|
|
23622
|
+
SWIFT_HOST_ABI = 20;
|
|
23593
23623
|
POLL_INTERVAL_MS = 1500;
|
|
23594
23624
|
}
|
|
23595
23625
|
});
|
|
@@ -31062,7 +31092,7 @@ function parseCloudSession(encoded) {
|
|
|
31062
31092
|
} catch {
|
|
31063
31093
|
throw new Error(`${PEACH_CLOUD_SESSION_ENV} is invalid`);
|
|
31064
31094
|
}
|
|
31065
|
-
if (!
|
|
31095
|
+
if (!isRecord2(parsed) || parsed.version !== CLOUD_SESSION_VERSION) {
|
|
31066
31096
|
throw new Error(`${PEACH_CLOUD_SESSION_ENV} is invalid`);
|
|
31067
31097
|
}
|
|
31068
31098
|
const apiOrigin = parsed.apiOrigin;
|
|
@@ -31071,7 +31101,7 @@ function parseCloudSession(encoded) {
|
|
|
31071
31101
|
}
|
|
31072
31102
|
const platform = parsed.platform === "ios" || parsed.platform === "android" ? parsed.platform : void 0;
|
|
31073
31103
|
const device = typeof parsed.device === "string" ? parsed.device : void 0;
|
|
31074
|
-
const artifact =
|
|
31104
|
+
const artifact = isRecord2(parsed.artifact) && typeof parsed.artifact.sha256 === "string" ? {
|
|
31075
31105
|
sha256: parsed.artifact.sha256,
|
|
31076
31106
|
bytes: typeof parsed.artifact.bytes === "number" ? parsed.artifact.bytes : void 0
|
|
31077
31107
|
} : void 0;
|
|
@@ -31227,8 +31257,8 @@ function failureSentence(text) {
|
|
|
31227
31257
|
} catch {
|
|
31228
31258
|
return null;
|
|
31229
31259
|
}
|
|
31230
|
-
if (!
|
|
31231
|
-
if (
|
|
31260
|
+
if (!isRecord2(parsed)) return null;
|
|
31261
|
+
if (isRecord2(parsed.error) && typeof parsed.error.message === "string") {
|
|
31232
31262
|
const code = typeof parsed.error.code === "string" && parsed.error.code ? ` [${parsed.error.code}]` : "";
|
|
31233
31263
|
return `${parsed.error.message}${code}`;
|
|
31234
31264
|
}
|
|
@@ -31660,16 +31690,16 @@ async function produceArtifact(bundlePath, maxBytes, command, assetPolicy) {
|
|
|
31660
31690
|
};
|
|
31661
31691
|
}
|
|
31662
31692
|
function readCreateResponse(value, expectedBytes, expectedSha256) {
|
|
31663
|
-
if (!
|
|
31693
|
+
if (!isRecord2(value)) throw new Error("remote simulator create returned invalid JSON");
|
|
31664
31694
|
const artifactId = `sha256:${expectedSha256}`;
|
|
31665
|
-
const isExpectedArtifact = (artifact) =>
|
|
31695
|
+
const isExpectedArtifact = (artifact) => isRecord2(artifact) && artifact.id === artifactId && typeof artifact.bytes === "number" && Number.isInteger(artifact.bytes) && artifact.bytes === expectedBytes;
|
|
31666
31696
|
const boxId = value.boxId;
|
|
31667
31697
|
const boxToken = value.token;
|
|
31668
31698
|
const simulator = value.simulator;
|
|
31669
|
-
const simId =
|
|
31670
|
-
const claim =
|
|
31671
|
-
const simulatorToken =
|
|
31672
|
-
if (typeof boxId !== "string" || !boxId || value.size !== "nano" || typeof boxToken !== "string" || !boxToken || !isExpectedArtifact(value.artifact) || !
|
|
31699
|
+
const simId = isRecord2(simulator) ? simulator.simId : null;
|
|
31700
|
+
const claim = isRecord2(simulator) ? simulator.claim : null;
|
|
31701
|
+
const simulatorToken = isRecord2(simulator) ? simulator.token : null;
|
|
31702
|
+
if (typeof boxId !== "string" || !boxId || value.size !== "nano" || typeof boxToken !== "string" || !boxToken || !isExpectedArtifact(value.artifact) || !isRecord2(simulator) || typeof simId !== "string" || !simId || !isExpectedArtifact(simulator.artifact) || !isRecord2(claim) || typeof claim.id !== "string" || !claim.id || typeof claim.expiresAt !== "number" || typeof simulatorToken !== "string" || !simulatorToken) {
|
|
31673
31703
|
throw new Error("remote simulator create returned an invalid receipt");
|
|
31674
31704
|
}
|
|
31675
31705
|
return {
|
|
@@ -31875,7 +31905,7 @@ var init_cloud_client = __esm({
|
|
|
31875
31905
|
} catch {
|
|
31876
31906
|
throw new Error("remote simulator command returned unreadable JSON");
|
|
31877
31907
|
}
|
|
31878
|
-
if (!
|
|
31908
|
+
if (!isRecord2(parsed) || parsed.id !== body.id) {
|
|
31879
31909
|
throw new Error("remote simulator command returned an invalid command receipt");
|
|
31880
31910
|
}
|
|
31881
31911
|
if (typeof parsed.error === "string" && parsed.error) throw new Error(parsed.error);
|
|
@@ -31946,7 +31976,7 @@ var init_cloud_client = __esm({
|
|
|
31946
31976
|
} catch {
|
|
31947
31977
|
throw new Error("box command returned unreadable JSON");
|
|
31948
31978
|
}
|
|
31949
|
-
if (!
|
|
31979
|
+
if (!isRecord2(parsed) || parsed.id !== id) {
|
|
31950
31980
|
throw new Error("box command returned an invalid command receipt");
|
|
31951
31981
|
}
|
|
31952
31982
|
if (typeof parsed.error === "string" && parsed.error) throw new Error(parsed.error);
|
|
@@ -31993,8 +32023,8 @@ async function sendToBox(options) {
|
|
|
31993
32023
|
simId: options.simId,
|
|
31994
32024
|
code: '(typeof window.__sootsimCaptureBundle === "function") ? window.__sootsimCaptureBundle() : null'
|
|
31995
32025
|
});
|
|
31996
|
-
const bundleUrl =
|
|
31997
|
-
if (!
|
|
32026
|
+
const bundleUrl = isRecord2(captured) ? captured.bundleUrl : null;
|
|
32027
|
+
if (!isRecord2(captured) || typeof bundleUrl !== "string" || !bundleUrl) {
|
|
31998
32028
|
throw new Error(
|
|
31999
32029
|
"send to box needs a simulator running an app: this one has no bundle loaded"
|
|
32000
32030
|
);
|
|
@@ -32010,7 +32040,7 @@ async function sendToBox(options) {
|
|
|
32010
32040
|
const storage = dumped;
|
|
32011
32041
|
const created = await createCloudBox({
|
|
32012
32042
|
bundlePath: toRNXProductionBundleUrl(bundleUrl),
|
|
32013
|
-
device: options.device ?? cloudDevice(
|
|
32043
|
+
device: options.device ?? cloudDevice(isRecord2(captured.deviceSpec) ? captured.deviceSpec.model : null),
|
|
32014
32044
|
authorization: options.authorization,
|
|
32015
32045
|
accountId: options.accountId,
|
|
32016
32046
|
apiOrigin: options.apiOrigin,
|
|
@@ -35473,8 +35503,8 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35473
35503
|
let config = {};
|
|
35474
35504
|
const appJsonPath = import_node_path27.default.join(projectRoot, "app.json");
|
|
35475
35505
|
const appJson = import_node_fs27.default.existsSync(appJsonPath) ? JSON.parse(import_node_fs27.default.readFileSync(appJsonPath, "utf8")) : null;
|
|
35476
|
-
const staticExpo =
|
|
35477
|
-
(value) =>
|
|
35506
|
+
const staticExpo = isRecord2(appJson) && (isRecord2(appJson.expo) || [appJson.ios, appJson.android].some(
|
|
35507
|
+
(value) => isRecord2(value) && typeof value.googleServicesFile === "string"
|
|
35478
35508
|
));
|
|
35479
35509
|
const dynamicExpo = [
|
|
35480
35510
|
"app.config.js",
|
|
@@ -35485,16 +35515,16 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35485
35515
|
if (staticExpo || dynamicExpo) {
|
|
35486
35516
|
const require5 = (0, import_node_module2.createRequire)(import_node_path27.default.join(projectRoot, "package.json"));
|
|
35487
35517
|
const configModule = require5("@expo/config");
|
|
35488
|
-
if (!
|
|
35518
|
+
if (!isRecord2(configModule) || typeof configModule.getConfig !== "function")
|
|
35489
35519
|
throw new Error("Expo native configuration is unavailable.");
|
|
35490
35520
|
const resolved = Reflect.apply(configModule.getConfig, configModule, [
|
|
35491
35521
|
projectRoot,
|
|
35492
35522
|
{ skipSDKVersionRequirement: true }
|
|
35493
35523
|
]);
|
|
35494
|
-
config =
|
|
35524
|
+
config = isRecord2(resolved) && isRecord2(resolved.exp) ? resolved.exp : {};
|
|
35495
35525
|
}
|
|
35496
35526
|
const ios = config.ios;
|
|
35497
|
-
if (platforms.includes("ios") && (!
|
|
35527
|
+
if (platforms.includes("ios") && (!isRecord2(ios) || typeof ios.googleServicesFile !== "string")) {
|
|
35498
35528
|
const iosRoot = import_node_path27.default.join(projectRoot, "ios");
|
|
35499
35529
|
if (import_node_fs27.default.existsSync(iosRoot)) {
|
|
35500
35530
|
const projects2 = import_node_fs27.default.readdirSync(iosRoot, { withFileTypes: true }).filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj"));
|
|
@@ -35503,32 +35533,32 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35503
35533
|
if (projects2.length === 1) {
|
|
35504
35534
|
const require5 = (0, import_node_module2.createRequire)(import_node_path27.default.join(projectRoot, "package.json"));
|
|
35505
35535
|
const xcode = require5("xcode");
|
|
35506
|
-
if (!
|
|
35536
|
+
if (!isRecord2(xcode) || typeof xcode.project !== "function")
|
|
35507
35537
|
throw new Error("native Xcode project parser is unavailable");
|
|
35508
35538
|
const project = Reflect.apply(xcode.project, xcode, [
|
|
35509
35539
|
import_node_path27.default.join(iosRoot, projects2[0].name, "project.pbxproj")
|
|
35510
35540
|
]);
|
|
35511
|
-
if (!
|
|
35541
|
+
if (!isRecord2(project) || typeof project.parseSync !== "function")
|
|
35512
35542
|
throw new Error("native Xcode project is malformed");
|
|
35513
35543
|
Reflect.apply(project.parseSync, project, []);
|
|
35514
35544
|
const hash = project.hash;
|
|
35515
|
-
const native =
|
|
35516
|
-
const objects =
|
|
35517
|
-
if (!
|
|
35545
|
+
const native = isRecord2(hash) ? hash.project : null;
|
|
35546
|
+
const objects = isRecord2(native) ? native.objects : null;
|
|
35547
|
+
if (!isRecord2(objects)) throw new Error("native Xcode objects are malformed");
|
|
35518
35548
|
const unquote = (value) => typeof value === "string" ? value.replace(/^"|"$/g, "") : "";
|
|
35519
|
-
const targets =
|
|
35520
|
-
(target2) =>
|
|
35549
|
+
const targets = isRecord2(objects.PBXNativeTarget) ? Object.values(objects.PBXNativeTarget).filter(
|
|
35550
|
+
(target2) => isRecord2(target2) && unquote(target2.productType) === "com.apple.product-type.application"
|
|
35521
35551
|
) : [];
|
|
35522
35552
|
if (targets.length > 1)
|
|
35523
35553
|
throw new Error("native Firebase configuration requires a selected app target");
|
|
35524
35554
|
const target = targets[0];
|
|
35525
|
-
if (
|
|
35555
|
+
if (isRecord2(target) && Array.isArray(target.buildPhases)) {
|
|
35526
35556
|
const buildPhases = target.buildPhases;
|
|
35527
35557
|
const filePaths = /* @__PURE__ */ new Map();
|
|
35528
|
-
const groups =
|
|
35529
|
-
const references =
|
|
35530
|
-
const nativeProjects =
|
|
35531
|
-
const roots = nativeProjects.filter(
|
|
35558
|
+
const groups = isRecord2(objects.PBXGroup) ? objects.PBXGroup : {};
|
|
35559
|
+
const references = isRecord2(objects.PBXFileReference) ? objects.PBXFileReference : {};
|
|
35560
|
+
const nativeProjects = isRecord2(objects.PBXProject) ? Object.values(objects.PBXProject) : [];
|
|
35561
|
+
const roots = nativeProjects.filter(isRecord2).map((value) => value.mainGroup);
|
|
35532
35562
|
const pending = roots.filter((id) => typeof id === "string").map((id) => ({ id, base: iosRoot }));
|
|
35533
35563
|
const visited = /* @__PURE__ */ new Map();
|
|
35534
35564
|
while (pending.length) {
|
|
@@ -35542,7 +35572,7 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35542
35572
|
}
|
|
35543
35573
|
visited.set(item.id, item.base);
|
|
35544
35574
|
const group = groups[item.id];
|
|
35545
|
-
if (!
|
|
35575
|
+
if (!isRecord2(group) || !Array.isArray(group.children)) continue;
|
|
35546
35576
|
const sourceTree = unquote(group.sourceTree);
|
|
35547
35577
|
if (sourceTree && sourceTree !== "<group>" && sourceTree !== "SOURCE_ROOT")
|
|
35548
35578
|
continue;
|
|
@@ -35551,13 +35581,13 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35551
35581
|
unquote(group.path)
|
|
35552
35582
|
);
|
|
35553
35583
|
for (const child of group.children) {
|
|
35554
|
-
if (!
|
|
35555
|
-
if (
|
|
35584
|
+
if (!isRecord2(child) || typeof child.value !== "string") continue;
|
|
35585
|
+
if (isRecord2(groups[child.value])) {
|
|
35556
35586
|
pending.push({ id: child.value, base: directory });
|
|
35557
35587
|
continue;
|
|
35558
35588
|
}
|
|
35559
35589
|
const file = references[child.value];
|
|
35560
|
-
if (!
|
|
35590
|
+
if (!isRecord2(file)) continue;
|
|
35561
35591
|
const tree = unquote(file.sourceTree);
|
|
35562
35592
|
if (tree !== "<group>" && tree !== "SOURCE_ROOT") continue;
|
|
35563
35593
|
const filePath = import_node_path27.default.resolve(
|
|
@@ -35569,20 +35599,20 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35569
35599
|
filePaths.set(child.value, values);
|
|
35570
35600
|
}
|
|
35571
35601
|
}
|
|
35572
|
-
const buildFiles =
|
|
35602
|
+
const buildFiles = isRecord2(objects.PBXBuildFile) ? objects.PBXBuildFile : {};
|
|
35573
35603
|
const filesInPhase = (section, name2) => {
|
|
35574
|
-
if (!
|
|
35604
|
+
if (!isRecord2(section)) return [];
|
|
35575
35605
|
const paths = [];
|
|
35576
35606
|
for (const phase of buildPhases) {
|
|
35577
|
-
if (!
|
|
35607
|
+
if (!isRecord2(phase) || typeof phase.value !== "string") continue;
|
|
35578
35608
|
const value = section[phase.value];
|
|
35579
|
-
if (!
|
|
35609
|
+
if (!isRecord2(value) || !Array.isArray(value.files)) continue;
|
|
35580
35610
|
for (const entry of value.files) {
|
|
35581
|
-
if (!
|
|
35611
|
+
if (!isRecord2(entry) || typeof entry.value !== "string") continue;
|
|
35582
35612
|
const file = buildFiles[entry.value];
|
|
35583
|
-
if (!
|
|
35613
|
+
if (!isRecord2(file) || typeof file.fileRef !== "string") continue;
|
|
35584
35614
|
const reference = references[file.fileRef];
|
|
35585
|
-
if (!
|
|
35615
|
+
if (!isRecord2(reference) || !name2.test(import_node_path27.default.basename(unquote(reference.path))))
|
|
35586
35616
|
continue;
|
|
35587
35617
|
const candidates = filePaths.get(file.fileRef);
|
|
35588
35618
|
if (!candidates || candidates.size !== 1)
|
|
@@ -35640,14 +35670,14 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35640
35670
|
}
|
|
35641
35671
|
for (const platform of platforms) {
|
|
35642
35672
|
const native = config[platform];
|
|
35643
|
-
if (!
|
|
35673
|
+
if (!isRecord2(native) || typeof native.googleServicesFile !== "string") continue;
|
|
35644
35674
|
try {
|
|
35645
35675
|
const source = import_node_fs27.default.readFileSync(
|
|
35646
35676
|
import_node_path27.default.resolve(projectRoot, native.googleServicesFile),
|
|
35647
35677
|
"utf8"
|
|
35648
35678
|
);
|
|
35649
35679
|
const parsed = platform === "ios" ? parsePlistSource(source) : JSON.parse(source);
|
|
35650
|
-
if (!
|
|
35680
|
+
if (!isRecord2(parsed)) throw new Error("Invalid Google services file.");
|
|
35651
35681
|
if (platform === "ios") {
|
|
35652
35682
|
result[platform] = {
|
|
35653
35683
|
apiKey: parsed.API_KEY,
|
|
@@ -35662,31 +35692,31 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35662
35692
|
deepLinkUrlScheme: parsed.REVERSED_CLIENT_ID
|
|
35663
35693
|
};
|
|
35664
35694
|
} else {
|
|
35665
|
-
const project =
|
|
35695
|
+
const project = isRecord2(parsed.project_info) ? parsed.project_info : {};
|
|
35666
35696
|
const clients = Array.isArray(parsed.client) ? parsed.client : [];
|
|
35667
35697
|
const client = clients.find((value) => {
|
|
35668
|
-
if (!
|
|
35698
|
+
if (!isRecord2(value) || !isRecord2(value.client_info)) return false;
|
|
35669
35699
|
const android = value.client_info.android_client_info;
|
|
35670
|
-
return
|
|
35700
|
+
return isRecord2(android) && android.package_name === native.package;
|
|
35671
35701
|
});
|
|
35672
|
-
if (!
|
|
35702
|
+
if (!isRecord2(client) || !isRecord2(client.client_info))
|
|
35673
35703
|
throw new Error("No Google services client matches the Android package.");
|
|
35674
35704
|
const apiKeys = Array.isArray(client.api_key) ? client.api_key : [];
|
|
35675
35705
|
const apiKey = apiKeys.find(
|
|
35676
|
-
(value) =>
|
|
35706
|
+
(value) => isRecord2(value) && typeof value.current_key === "string"
|
|
35677
35707
|
);
|
|
35678
35708
|
const oauthClients = Array.isArray(client.oauth_client) ? client.oauth_client : [];
|
|
35679
35709
|
const oauth = oauthClients.find(
|
|
35680
|
-
(value) =>
|
|
35710
|
+
(value) => isRecord2(value) && value.client_type === 3
|
|
35681
35711
|
);
|
|
35682
35712
|
result[platform] = {
|
|
35683
|
-
apiKey:
|
|
35713
|
+
apiKey: isRecord2(apiKey) ? apiKey.current_key : void 0,
|
|
35684
35714
|
appId: client.client_info.mobilesdk_app_id,
|
|
35685
35715
|
projectId: project.project_id,
|
|
35686
35716
|
databaseURL: project.firebase_url,
|
|
35687
35717
|
storageBucket: project.storage_bucket,
|
|
35688
35718
|
messagingSenderId: project.project_number,
|
|
35689
|
-
clientId:
|
|
35719
|
+
clientId: isRecord2(oauth) ? oauth.client_id : void 0
|
|
35690
35720
|
};
|
|
35691
35721
|
}
|
|
35692
35722
|
} catch (error) {
|
|
@@ -38620,10 +38650,10 @@ var init_linux_browser_libs_lock = __esm({
|
|
|
38620
38650
|
|
|
38621
38651
|
// cli/drivers/linux-browser-libs.ts
|
|
38622
38652
|
function isLockPackage(value) {
|
|
38623
|
-
return
|
|
38653
|
+
return isRecord2(value) && typeof value.name === "string" && typeof value.version === "string" && typeof value.url === "string" && typeof value.sha256 === "string" && /^[a-f0-9]{64}$/.test(value.sha256) && typeof value.size === "number";
|
|
38624
38654
|
}
|
|
38625
38655
|
function parseLinuxBrowserLibsLock(value) {
|
|
38626
|
-
if (!
|
|
38656
|
+
if (!isRecord2(value) || typeof value.id !== "string" || !/^[a-f0-9]{16}$/.test(value.id) || typeof value.suite !== "string" || !isRecord2(value.arches)) {
|
|
38627
38657
|
throw new Error("invalid linux browser library lock");
|
|
38628
38658
|
}
|
|
38629
38659
|
const { x64, arm64 } = value.arches;
|
|
@@ -38730,7 +38760,7 @@ function resolvePlaywright() {
|
|
|
38730
38760
|
const modulePath = requireFromRoot.resolve(spec);
|
|
38731
38761
|
const packageJsonPath = requireFromRoot.resolve(`${spec}/package.json`);
|
|
38732
38762
|
const parsed = JSON.parse((0, import_node_fs32.readFileSync)(packageJsonPath, "utf8"));
|
|
38733
|
-
if (!
|
|
38763
|
+
if (!isRecord2(parsed) || typeof parsed.version !== "string") continue;
|
|
38734
38764
|
const corePackagePath = (0, import_node_module6.createRequire)(modulePath).resolve(
|
|
38735
38765
|
"playwright-core/package.json"
|
|
38736
38766
|
);
|
|
@@ -38800,7 +38830,7 @@ function probeBrowser(resolved, env) {
|
|
|
38800
38830
|
}
|
|
38801
38831
|
try {
|
|
38802
38832
|
const parsed = JSON.parse(probe3.stdout);
|
|
38803
|
-
if (!
|
|
38833
|
+
if (!isRecord2(parsed) || typeof parsed.executablePath !== "string" || typeof parsed.exists !== "boolean") {
|
|
38804
38834
|
throw new Error("probe returned an invalid result");
|
|
38805
38835
|
}
|
|
38806
38836
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.724 | (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.724 | (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.724 | (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;
|
|
@@ -51,7 +51,7 @@ var MAX_SWIFT_COMPILE_RESOURCE_TOTAL_BYTES = 8 * 1024 * 1024;
|
|
|
51
51
|
var MAX_SWIFT_COMPILE_IMAGES = 128;
|
|
52
52
|
var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
53
53
|
var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
54
|
-
var SWIFT_HOST_ABI =
|
|
54
|
+
var SWIFT_HOST_ABI = 20;
|
|
55
55
|
var POLL_INTERVAL_MS = 1500;
|
|
56
56
|
function swiftNativeEntry(native, file) {
|
|
57
57
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.724 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-submit.ts
|
|
4
4
|
var SWIFT_COMPILE_PATH = "/api/swift-compile";
|
|
@@ -12,7 +12,7 @@ var MAX_SWIFT_COMPILE_RESOURCE_TOTAL_BYTES = 8 * 1024 * 1024;
|
|
|
12
12
|
var MAX_SWIFT_COMPILE_IMAGES = 128;
|
|
13
13
|
var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
14
14
|
var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
15
|
-
var SWIFT_HOST_ABI =
|
|
15
|
+
var SWIFT_HOST_ABI = 20;
|
|
16
16
|
var POLL_INTERVAL_MS = 1500;
|
|
17
17
|
function swiftNativeEntry(native, file) {
|
|
18
18
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.724 | (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/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.724 | (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/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.724 | (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;
|
|
@@ -1924,7 +1924,7 @@ var MAX_SWIFT_COMPILE_RESOURCE_TOTAL_BYTES = 8 * 1024 * 1024;
|
|
|
1924
1924
|
var MAX_SWIFT_COMPILE_IMAGES = 128;
|
|
1925
1925
|
var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
1926
1926
|
var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
1927
|
-
var SWIFT_HOST_ABI =
|
|
1927
|
+
var SWIFT_HOST_ABI = 20;
|
|
1928
1928
|
var POLL_INTERVAL_MS = 1500;
|
|
1929
1929
|
function swiftNativeEntry(native, file) {
|
|
1930
1930
|
return {
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.724 | (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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "peachsim",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.724",
|
|
4
4
|
"description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
|
|
5
5
|
"author": "Tamagui LLC",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -320,13 +320,13 @@
|
|
|
320
320
|
"pack:smoke": "bun scripts/pack-smoke.ts"
|
|
321
321
|
},
|
|
322
322
|
"dependencies": {
|
|
323
|
-
"@expo/plist": "^0.5.4",
|
|
324
323
|
"@peculiar/x509": "1.14.3",
|
|
325
324
|
"@sucrase/jest-plugin": "3.0.0",
|
|
326
325
|
"jiti": "2.7.0",
|
|
327
326
|
"magic-string": "^0.30.21",
|
|
328
327
|
"oxc-parser": "^0.112.0",
|
|
329
328
|
"playwright-core": "1.61.0",
|
|
329
|
+
"plist": "3.1.1",
|
|
330
330
|
"sucrase": "3.35.1",
|
|
331
331
|
"svgpath": "2.6.0",
|
|
332
332
|
"terser": "^5.49.0",
|
|
@@ -341,6 +341,7 @@
|
|
|
341
341
|
}
|
|
342
342
|
},
|
|
343
343
|
"devDependencies": {
|
|
344
|
+
"@types/plist": "3.0.5",
|
|
344
345
|
"@contrast/runtime-delivery": "workspace:*",
|
|
345
346
|
"@peach/box": "workspace:*",
|
|
346
347
|
"@peach/globals": "workspace:*",
|