peachsim 0.1.721 → 0.1.723
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/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 -43
- 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 +78 -90
- package/dist-lib/swift-compile.cjs +2 -1
- package/dist-lib/swift-compile.mjs +2 -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-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +2 -1
- package/dist-lib/vite.cjs +1 -1
- package/package.json +3 -2
- package/src/plist.ts +2 -21
- package/src/swift-compile.ts +1 -0
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.723 | (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;
|
|
@@ -19394,43 +19394,20 @@ var init_native_dev_bundle_url = __esm({
|
|
|
19394
19394
|
}
|
|
19395
19395
|
});
|
|
19396
19396
|
|
|
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
19397
|
// 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
19398
|
function parsePlistSource(source) {
|
|
19420
|
-
return
|
|
19399
|
+
return import_plist.default.parse(source);
|
|
19421
19400
|
}
|
|
19422
|
-
var import_plist
|
|
19401
|
+
var import_plist;
|
|
19423
19402
|
var init_plist = __esm({
|
|
19424
19403
|
"src/plist.ts"() {
|
|
19425
19404
|
"use strict";
|
|
19426
|
-
import_plist = __toESM(require("
|
|
19427
|
-
init_is_record();
|
|
19428
|
-
parsePlist = resolvePlistParser(import_plist.default);
|
|
19405
|
+
import_plist = __toESM(require("plist"), 1);
|
|
19429
19406
|
}
|
|
19430
19407
|
});
|
|
19431
19408
|
|
|
19432
19409
|
// src/settings-bundle.ts
|
|
19433
|
-
function
|
|
19410
|
+
function isRecord(value) {
|
|
19434
19411
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
19435
19412
|
}
|
|
19436
19413
|
function optionalString(value) {
|
|
@@ -19559,7 +19536,7 @@ async function parsePlistRecord(path30) {
|
|
|
19559
19536
|
if (!metadata.isFile() || metadata.size > MAX_PLIST_BYTES) return null;
|
|
19560
19537
|
const source = await (0, import_promises.readFile)(path30, "utf8");
|
|
19561
19538
|
const parsed = parsePlistSource(source);
|
|
19562
|
-
return
|
|
19539
|
+
return isRecord(parsed) ? parsed : null;
|
|
19563
19540
|
} catch {
|
|
19564
19541
|
return null;
|
|
19565
19542
|
}
|
|
@@ -19595,7 +19572,7 @@ function normalizeMultiValue(raw2, key, title) {
|
|
|
19595
19572
|
};
|
|
19596
19573
|
}
|
|
19597
19574
|
async function normalizeSpecifier(raw2, context) {
|
|
19598
|
-
if (!
|
|
19575
|
+
if (!isRecord(raw2)) return null;
|
|
19599
19576
|
if (context.budget.specifiers >= MAX_SPECIFIERS) return null;
|
|
19600
19577
|
const type = requiredString(raw2.Type);
|
|
19601
19578
|
if (!type) return null;
|
|
@@ -21185,13 +21162,23 @@ var init_internal_child = __esm({
|
|
|
21185
21162
|
}
|
|
21186
21163
|
});
|
|
21187
21164
|
|
|
21165
|
+
// src/is-record.ts
|
|
21166
|
+
function isRecord2(value) {
|
|
21167
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
21168
|
+
}
|
|
21169
|
+
var init_is_record = __esm({
|
|
21170
|
+
"src/is-record.ts"() {
|
|
21171
|
+
"use strict";
|
|
21172
|
+
}
|
|
21173
|
+
});
|
|
21174
|
+
|
|
21188
21175
|
// src/swift-distribution-contract.ts
|
|
21189
21176
|
function swiftDistributionHost(platform, arch) {
|
|
21190
21177
|
const host2 = `${platform}-${arch}`;
|
|
21191
21178
|
return SWIFT_DISTRIBUTION_HOSTS.find((candidate) => candidate === host2) ?? null;
|
|
21192
21179
|
}
|
|
21193
21180
|
function parseSwiftDistributionManifest(value) {
|
|
21194
|
-
if (!
|
|
21181
|
+
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
21182
|
throw new Error(`invalid Swift distribution ${SWIFT_DISTRIBUTION_MANIFEST}`);
|
|
21196
21183
|
}
|
|
21197
21184
|
const host2 = SWIFT_DISTRIBUTION_HOSTS.find((candidate) => candidate === value.host);
|
|
@@ -21213,13 +21200,13 @@ function parseSwiftDistributionManifest(value) {
|
|
|
21213
21200
|
};
|
|
21214
21201
|
}
|
|
21215
21202
|
function parseSwiftDistributionLock(value) {
|
|
21216
|
-
if (!
|
|
21203
|
+
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
21204
|
throw new Error("invalid Swift distribution lock");
|
|
21218
21205
|
}
|
|
21219
21206
|
const hosts = value.hosts;
|
|
21220
21207
|
const entry = (host2) => {
|
|
21221
21208
|
const item = hosts[host2];
|
|
21222
|
-
if (!
|
|
21209
|
+
if (!isRecord2(item) || typeof item.sha256 !== "string" || !/^[a-f0-9]{64}$/.test(item.sha256) || typeof item.size !== "number") {
|
|
21223
21210
|
throw new Error(`invalid Swift distribution lock entry for ${host2}`);
|
|
21224
21211
|
}
|
|
21225
21212
|
return { sha256: item.sha256, size: item.size };
|
|
@@ -22268,6 +22255,7 @@ var init_swift_compile = __esm({
|
|
|
22268
22255
|
GameplayKit: [],
|
|
22269
22256
|
Accelerate: [],
|
|
22270
22257
|
CryptoKit: [],
|
|
22258
|
+
CommonCrypto: [],
|
|
22271
22259
|
Security: [],
|
|
22272
22260
|
TikTokBusinessSDK: [],
|
|
22273
22261
|
nSure: [],
|
|
@@ -31061,7 +31049,7 @@ function parseCloudSession(encoded) {
|
|
|
31061
31049
|
} catch {
|
|
31062
31050
|
throw new Error(`${PEACH_CLOUD_SESSION_ENV} is invalid`);
|
|
31063
31051
|
}
|
|
31064
|
-
if (!
|
|
31052
|
+
if (!isRecord2(parsed) || parsed.version !== CLOUD_SESSION_VERSION) {
|
|
31065
31053
|
throw new Error(`${PEACH_CLOUD_SESSION_ENV} is invalid`);
|
|
31066
31054
|
}
|
|
31067
31055
|
const apiOrigin = parsed.apiOrigin;
|
|
@@ -31070,7 +31058,7 @@ function parseCloudSession(encoded) {
|
|
|
31070
31058
|
}
|
|
31071
31059
|
const platform = parsed.platform === "ios" || parsed.platform === "android" ? parsed.platform : void 0;
|
|
31072
31060
|
const device = typeof parsed.device === "string" ? parsed.device : void 0;
|
|
31073
|
-
const artifact =
|
|
31061
|
+
const artifact = isRecord2(parsed.artifact) && typeof parsed.artifact.sha256 === "string" ? {
|
|
31074
31062
|
sha256: parsed.artifact.sha256,
|
|
31075
31063
|
bytes: typeof parsed.artifact.bytes === "number" ? parsed.artifact.bytes : void 0
|
|
31076
31064
|
} : void 0;
|
|
@@ -31226,8 +31214,8 @@ function failureSentence(text) {
|
|
|
31226
31214
|
} catch {
|
|
31227
31215
|
return null;
|
|
31228
31216
|
}
|
|
31229
|
-
if (!
|
|
31230
|
-
if (
|
|
31217
|
+
if (!isRecord2(parsed)) return null;
|
|
31218
|
+
if (isRecord2(parsed.error) && typeof parsed.error.message === "string") {
|
|
31231
31219
|
const code = typeof parsed.error.code === "string" && parsed.error.code ? ` [${parsed.error.code}]` : "";
|
|
31232
31220
|
return `${parsed.error.message}${code}`;
|
|
31233
31221
|
}
|
|
@@ -31659,16 +31647,16 @@ async function produceArtifact(bundlePath, maxBytes, command, assetPolicy) {
|
|
|
31659
31647
|
};
|
|
31660
31648
|
}
|
|
31661
31649
|
function readCreateResponse(value, expectedBytes, expectedSha256) {
|
|
31662
|
-
if (!
|
|
31650
|
+
if (!isRecord2(value)) throw new Error("remote simulator create returned invalid JSON");
|
|
31663
31651
|
const artifactId = `sha256:${expectedSha256}`;
|
|
31664
|
-
const isExpectedArtifact = (artifact) =>
|
|
31652
|
+
const isExpectedArtifact = (artifact) => isRecord2(artifact) && artifact.id === artifactId && typeof artifact.bytes === "number" && Number.isInteger(artifact.bytes) && artifact.bytes === expectedBytes;
|
|
31665
31653
|
const boxId = value.boxId;
|
|
31666
31654
|
const boxToken = value.token;
|
|
31667
31655
|
const simulator = value.simulator;
|
|
31668
|
-
const simId =
|
|
31669
|
-
const claim =
|
|
31670
|
-
const simulatorToken =
|
|
31671
|
-
if (typeof boxId !== "string" || !boxId || value.size !== "nano" || typeof boxToken !== "string" || !boxToken || !isExpectedArtifact(value.artifact) || !
|
|
31656
|
+
const simId = isRecord2(simulator) ? simulator.simId : null;
|
|
31657
|
+
const claim = isRecord2(simulator) ? simulator.claim : null;
|
|
31658
|
+
const simulatorToken = isRecord2(simulator) ? simulator.token : null;
|
|
31659
|
+
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) {
|
|
31672
31660
|
throw new Error("remote simulator create returned an invalid receipt");
|
|
31673
31661
|
}
|
|
31674
31662
|
return {
|
|
@@ -31874,7 +31862,7 @@ var init_cloud_client = __esm({
|
|
|
31874
31862
|
} catch {
|
|
31875
31863
|
throw new Error("remote simulator command returned unreadable JSON");
|
|
31876
31864
|
}
|
|
31877
|
-
if (!
|
|
31865
|
+
if (!isRecord2(parsed) || parsed.id !== body.id) {
|
|
31878
31866
|
throw new Error("remote simulator command returned an invalid command receipt");
|
|
31879
31867
|
}
|
|
31880
31868
|
if (typeof parsed.error === "string" && parsed.error) throw new Error(parsed.error);
|
|
@@ -31945,7 +31933,7 @@ var init_cloud_client = __esm({
|
|
|
31945
31933
|
} catch {
|
|
31946
31934
|
throw new Error("box command returned unreadable JSON");
|
|
31947
31935
|
}
|
|
31948
|
-
if (!
|
|
31936
|
+
if (!isRecord2(parsed) || parsed.id !== id) {
|
|
31949
31937
|
throw new Error("box command returned an invalid command receipt");
|
|
31950
31938
|
}
|
|
31951
31939
|
if (typeof parsed.error === "string" && parsed.error) throw new Error(parsed.error);
|
|
@@ -31992,8 +31980,8 @@ async function sendToBox(options) {
|
|
|
31992
31980
|
simId: options.simId,
|
|
31993
31981
|
code: '(typeof window.__sootsimCaptureBundle === "function") ? window.__sootsimCaptureBundle() : null'
|
|
31994
31982
|
});
|
|
31995
|
-
const bundleUrl =
|
|
31996
|
-
if (!
|
|
31983
|
+
const bundleUrl = isRecord2(captured) ? captured.bundleUrl : null;
|
|
31984
|
+
if (!isRecord2(captured) || typeof bundleUrl !== "string" || !bundleUrl) {
|
|
31997
31985
|
throw new Error(
|
|
31998
31986
|
"send to box needs a simulator running an app: this one has no bundle loaded"
|
|
31999
31987
|
);
|
|
@@ -32009,7 +31997,7 @@ async function sendToBox(options) {
|
|
|
32009
31997
|
const storage = dumped;
|
|
32010
31998
|
const created = await createCloudBox({
|
|
32011
31999
|
bundlePath: toRNXProductionBundleUrl(bundleUrl),
|
|
32012
|
-
device: options.device ?? cloudDevice(
|
|
32000
|
+
device: options.device ?? cloudDevice(isRecord2(captured.deviceSpec) ? captured.deviceSpec.model : null),
|
|
32013
32001
|
authorization: options.authorization,
|
|
32014
32002
|
accountId: options.accountId,
|
|
32015
32003
|
apiOrigin: options.apiOrigin,
|
|
@@ -35472,8 +35460,8 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35472
35460
|
let config = {};
|
|
35473
35461
|
const appJsonPath = import_node_path27.default.join(projectRoot, "app.json");
|
|
35474
35462
|
const appJson = import_node_fs27.default.existsSync(appJsonPath) ? JSON.parse(import_node_fs27.default.readFileSync(appJsonPath, "utf8")) : null;
|
|
35475
|
-
const staticExpo =
|
|
35476
|
-
(value) =>
|
|
35463
|
+
const staticExpo = isRecord2(appJson) && (isRecord2(appJson.expo) || [appJson.ios, appJson.android].some(
|
|
35464
|
+
(value) => isRecord2(value) && typeof value.googleServicesFile === "string"
|
|
35477
35465
|
));
|
|
35478
35466
|
const dynamicExpo = [
|
|
35479
35467
|
"app.config.js",
|
|
@@ -35484,16 +35472,16 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35484
35472
|
if (staticExpo || dynamicExpo) {
|
|
35485
35473
|
const require5 = (0, import_node_module2.createRequire)(import_node_path27.default.join(projectRoot, "package.json"));
|
|
35486
35474
|
const configModule = require5("@expo/config");
|
|
35487
|
-
if (!
|
|
35475
|
+
if (!isRecord2(configModule) || typeof configModule.getConfig !== "function")
|
|
35488
35476
|
throw new Error("Expo native configuration is unavailable.");
|
|
35489
35477
|
const resolved = Reflect.apply(configModule.getConfig, configModule, [
|
|
35490
35478
|
projectRoot,
|
|
35491
35479
|
{ skipSDKVersionRequirement: true }
|
|
35492
35480
|
]);
|
|
35493
|
-
config =
|
|
35481
|
+
config = isRecord2(resolved) && isRecord2(resolved.exp) ? resolved.exp : {};
|
|
35494
35482
|
}
|
|
35495
35483
|
const ios = config.ios;
|
|
35496
|
-
if (platforms.includes("ios") && (!
|
|
35484
|
+
if (platforms.includes("ios") && (!isRecord2(ios) || typeof ios.googleServicesFile !== "string")) {
|
|
35497
35485
|
const iosRoot = import_node_path27.default.join(projectRoot, "ios");
|
|
35498
35486
|
if (import_node_fs27.default.existsSync(iosRoot)) {
|
|
35499
35487
|
const projects2 = import_node_fs27.default.readdirSync(iosRoot, { withFileTypes: true }).filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj"));
|
|
@@ -35502,32 +35490,32 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35502
35490
|
if (projects2.length === 1) {
|
|
35503
35491
|
const require5 = (0, import_node_module2.createRequire)(import_node_path27.default.join(projectRoot, "package.json"));
|
|
35504
35492
|
const xcode = require5("xcode");
|
|
35505
|
-
if (!
|
|
35493
|
+
if (!isRecord2(xcode) || typeof xcode.project !== "function")
|
|
35506
35494
|
throw new Error("native Xcode project parser is unavailable");
|
|
35507
35495
|
const project = Reflect.apply(xcode.project, xcode, [
|
|
35508
35496
|
import_node_path27.default.join(iosRoot, projects2[0].name, "project.pbxproj")
|
|
35509
35497
|
]);
|
|
35510
|
-
if (!
|
|
35498
|
+
if (!isRecord2(project) || typeof project.parseSync !== "function")
|
|
35511
35499
|
throw new Error("native Xcode project is malformed");
|
|
35512
35500
|
Reflect.apply(project.parseSync, project, []);
|
|
35513
35501
|
const hash = project.hash;
|
|
35514
|
-
const native =
|
|
35515
|
-
const objects =
|
|
35516
|
-
if (!
|
|
35502
|
+
const native = isRecord2(hash) ? hash.project : null;
|
|
35503
|
+
const objects = isRecord2(native) ? native.objects : null;
|
|
35504
|
+
if (!isRecord2(objects)) throw new Error("native Xcode objects are malformed");
|
|
35517
35505
|
const unquote = (value) => typeof value === "string" ? value.replace(/^"|"$/g, "") : "";
|
|
35518
|
-
const targets =
|
|
35519
|
-
(target2) =>
|
|
35506
|
+
const targets = isRecord2(objects.PBXNativeTarget) ? Object.values(objects.PBXNativeTarget).filter(
|
|
35507
|
+
(target2) => isRecord2(target2) && unquote(target2.productType) === "com.apple.product-type.application"
|
|
35520
35508
|
) : [];
|
|
35521
35509
|
if (targets.length > 1)
|
|
35522
35510
|
throw new Error("native Firebase configuration requires a selected app target");
|
|
35523
35511
|
const target = targets[0];
|
|
35524
|
-
if (
|
|
35512
|
+
if (isRecord2(target) && Array.isArray(target.buildPhases)) {
|
|
35525
35513
|
const buildPhases = target.buildPhases;
|
|
35526
35514
|
const filePaths = /* @__PURE__ */ new Map();
|
|
35527
|
-
const groups =
|
|
35528
|
-
const references =
|
|
35529
|
-
const nativeProjects =
|
|
35530
|
-
const roots = nativeProjects.filter(
|
|
35515
|
+
const groups = isRecord2(objects.PBXGroup) ? objects.PBXGroup : {};
|
|
35516
|
+
const references = isRecord2(objects.PBXFileReference) ? objects.PBXFileReference : {};
|
|
35517
|
+
const nativeProjects = isRecord2(objects.PBXProject) ? Object.values(objects.PBXProject) : [];
|
|
35518
|
+
const roots = nativeProjects.filter(isRecord2).map((value) => value.mainGroup);
|
|
35531
35519
|
const pending = roots.filter((id) => typeof id === "string").map((id) => ({ id, base: iosRoot }));
|
|
35532
35520
|
const visited = /* @__PURE__ */ new Map();
|
|
35533
35521
|
while (pending.length) {
|
|
@@ -35541,7 +35529,7 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35541
35529
|
}
|
|
35542
35530
|
visited.set(item.id, item.base);
|
|
35543
35531
|
const group = groups[item.id];
|
|
35544
|
-
if (!
|
|
35532
|
+
if (!isRecord2(group) || !Array.isArray(group.children)) continue;
|
|
35545
35533
|
const sourceTree = unquote(group.sourceTree);
|
|
35546
35534
|
if (sourceTree && sourceTree !== "<group>" && sourceTree !== "SOURCE_ROOT")
|
|
35547
35535
|
continue;
|
|
@@ -35550,13 +35538,13 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35550
35538
|
unquote(group.path)
|
|
35551
35539
|
);
|
|
35552
35540
|
for (const child of group.children) {
|
|
35553
|
-
if (!
|
|
35554
|
-
if (
|
|
35541
|
+
if (!isRecord2(child) || typeof child.value !== "string") continue;
|
|
35542
|
+
if (isRecord2(groups[child.value])) {
|
|
35555
35543
|
pending.push({ id: child.value, base: directory });
|
|
35556
35544
|
continue;
|
|
35557
35545
|
}
|
|
35558
35546
|
const file = references[child.value];
|
|
35559
|
-
if (!
|
|
35547
|
+
if (!isRecord2(file)) continue;
|
|
35560
35548
|
const tree = unquote(file.sourceTree);
|
|
35561
35549
|
if (tree !== "<group>" && tree !== "SOURCE_ROOT") continue;
|
|
35562
35550
|
const filePath = import_node_path27.default.resolve(
|
|
@@ -35568,20 +35556,20 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35568
35556
|
filePaths.set(child.value, values);
|
|
35569
35557
|
}
|
|
35570
35558
|
}
|
|
35571
|
-
const buildFiles =
|
|
35559
|
+
const buildFiles = isRecord2(objects.PBXBuildFile) ? objects.PBXBuildFile : {};
|
|
35572
35560
|
const filesInPhase = (section, name2) => {
|
|
35573
|
-
if (!
|
|
35561
|
+
if (!isRecord2(section)) return [];
|
|
35574
35562
|
const paths = [];
|
|
35575
35563
|
for (const phase of buildPhases) {
|
|
35576
|
-
if (!
|
|
35564
|
+
if (!isRecord2(phase) || typeof phase.value !== "string") continue;
|
|
35577
35565
|
const value = section[phase.value];
|
|
35578
|
-
if (!
|
|
35566
|
+
if (!isRecord2(value) || !Array.isArray(value.files)) continue;
|
|
35579
35567
|
for (const entry of value.files) {
|
|
35580
|
-
if (!
|
|
35568
|
+
if (!isRecord2(entry) || typeof entry.value !== "string") continue;
|
|
35581
35569
|
const file = buildFiles[entry.value];
|
|
35582
|
-
if (!
|
|
35570
|
+
if (!isRecord2(file) || typeof file.fileRef !== "string") continue;
|
|
35583
35571
|
const reference = references[file.fileRef];
|
|
35584
|
-
if (!
|
|
35572
|
+
if (!isRecord2(reference) || !name2.test(import_node_path27.default.basename(unquote(reference.path))))
|
|
35585
35573
|
continue;
|
|
35586
35574
|
const candidates = filePaths.get(file.fileRef);
|
|
35587
35575
|
if (!candidates || candidates.size !== 1)
|
|
@@ -35639,14 +35627,14 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35639
35627
|
}
|
|
35640
35628
|
for (const platform of platforms) {
|
|
35641
35629
|
const native = config[platform];
|
|
35642
|
-
if (!
|
|
35630
|
+
if (!isRecord2(native) || typeof native.googleServicesFile !== "string") continue;
|
|
35643
35631
|
try {
|
|
35644
35632
|
const source = import_node_fs27.default.readFileSync(
|
|
35645
35633
|
import_node_path27.default.resolve(projectRoot, native.googleServicesFile),
|
|
35646
35634
|
"utf8"
|
|
35647
35635
|
);
|
|
35648
35636
|
const parsed = platform === "ios" ? parsePlistSource(source) : JSON.parse(source);
|
|
35649
|
-
if (!
|
|
35637
|
+
if (!isRecord2(parsed)) throw new Error("Invalid Google services file.");
|
|
35650
35638
|
if (platform === "ios") {
|
|
35651
35639
|
result[platform] = {
|
|
35652
35640
|
apiKey: parsed.API_KEY,
|
|
@@ -35661,31 +35649,31 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"]) {
|
|
|
35661
35649
|
deepLinkUrlScheme: parsed.REVERSED_CLIENT_ID
|
|
35662
35650
|
};
|
|
35663
35651
|
} else {
|
|
35664
|
-
const project =
|
|
35652
|
+
const project = isRecord2(parsed.project_info) ? parsed.project_info : {};
|
|
35665
35653
|
const clients = Array.isArray(parsed.client) ? parsed.client : [];
|
|
35666
35654
|
const client = clients.find((value) => {
|
|
35667
|
-
if (!
|
|
35655
|
+
if (!isRecord2(value) || !isRecord2(value.client_info)) return false;
|
|
35668
35656
|
const android = value.client_info.android_client_info;
|
|
35669
|
-
return
|
|
35657
|
+
return isRecord2(android) && android.package_name === native.package;
|
|
35670
35658
|
});
|
|
35671
|
-
if (!
|
|
35659
|
+
if (!isRecord2(client) || !isRecord2(client.client_info))
|
|
35672
35660
|
throw new Error("No Google services client matches the Android package.");
|
|
35673
35661
|
const apiKeys = Array.isArray(client.api_key) ? client.api_key : [];
|
|
35674
35662
|
const apiKey = apiKeys.find(
|
|
35675
|
-
(value) =>
|
|
35663
|
+
(value) => isRecord2(value) && typeof value.current_key === "string"
|
|
35676
35664
|
);
|
|
35677
35665
|
const oauthClients = Array.isArray(client.oauth_client) ? client.oauth_client : [];
|
|
35678
35666
|
const oauth = oauthClients.find(
|
|
35679
|
-
(value) =>
|
|
35667
|
+
(value) => isRecord2(value) && value.client_type === 3
|
|
35680
35668
|
);
|
|
35681
35669
|
result[platform] = {
|
|
35682
|
-
apiKey:
|
|
35670
|
+
apiKey: isRecord2(apiKey) ? apiKey.current_key : void 0,
|
|
35683
35671
|
appId: client.client_info.mobilesdk_app_id,
|
|
35684
35672
|
projectId: project.project_id,
|
|
35685
35673
|
databaseURL: project.firebase_url,
|
|
35686
35674
|
storageBucket: project.storage_bucket,
|
|
35687
35675
|
messagingSenderId: project.project_number,
|
|
35688
|
-
clientId:
|
|
35676
|
+
clientId: isRecord2(oauth) ? oauth.client_id : void 0
|
|
35689
35677
|
};
|
|
35690
35678
|
}
|
|
35691
35679
|
} catch (error) {
|
|
@@ -38619,10 +38607,10 @@ var init_linux_browser_libs_lock = __esm({
|
|
|
38619
38607
|
|
|
38620
38608
|
// cli/drivers/linux-browser-libs.ts
|
|
38621
38609
|
function isLockPackage(value) {
|
|
38622
|
-
return
|
|
38610
|
+
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";
|
|
38623
38611
|
}
|
|
38624
38612
|
function parseLinuxBrowserLibsLock(value) {
|
|
38625
|
-
if (!
|
|
38613
|
+
if (!isRecord2(value) || typeof value.id !== "string" || !/^[a-f0-9]{16}$/.test(value.id) || typeof value.suite !== "string" || !isRecord2(value.arches)) {
|
|
38626
38614
|
throw new Error("invalid linux browser library lock");
|
|
38627
38615
|
}
|
|
38628
38616
|
const { x64, arm64 } = value.arches;
|
|
@@ -38729,7 +38717,7 @@ function resolvePlaywright() {
|
|
|
38729
38717
|
const modulePath = requireFromRoot.resolve(spec);
|
|
38730
38718
|
const packageJsonPath = requireFromRoot.resolve(`${spec}/package.json`);
|
|
38731
38719
|
const parsed = JSON.parse((0, import_node_fs32.readFileSync)(packageJsonPath, "utf8"));
|
|
38732
|
-
if (!
|
|
38720
|
+
if (!isRecord2(parsed) || typeof parsed.version !== "string") continue;
|
|
38733
38721
|
const corePackagePath = (0, import_node_module6.createRequire)(modulePath).resolve(
|
|
38734
38722
|
"playwright-core/package.json"
|
|
38735
38723
|
);
|
|
@@ -38799,7 +38787,7 @@ function probeBrowser(resolved, env) {
|
|
|
38799
38787
|
}
|
|
38800
38788
|
try {
|
|
38801
38789
|
const parsed = JSON.parse(probe3.stdout);
|
|
38802
|
-
if (!
|
|
38790
|
+
if (!isRecord2(parsed) || typeof parsed.executablePath !== "string" || typeof parsed.exists !== "boolean") {
|
|
38803
38791
|
throw new Error("probe returned an invalid result");
|
|
38804
38792
|
}
|
|
38805
38793
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.723 | (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;
|
|
@@ -391,6 +391,7 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
|
391
391
|
GameplayKit: [],
|
|
392
392
|
Accelerate: [],
|
|
393
393
|
CryptoKit: [],
|
|
394
|
+
CommonCrypto: [],
|
|
394
395
|
Security: [],
|
|
395
396
|
TikTokBusinessSDK: [],
|
|
396
397
|
nSure: [],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.723 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import { execFile as execFile2 } from "node:child_process";
|
|
@@ -351,6 +351,7 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
|
351
351
|
GameplayKit: [],
|
|
352
352
|
Accelerate: [],
|
|
353
353
|
CryptoKit: [],
|
|
354
|
+
CommonCrypto: [],
|
|
354
355
|
Security: [],
|
|
355
356
|
TikTokBusinessSDK: [],
|
|
356
357
|
nSure: [],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.723 | (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.723 | (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.723 | (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.723 | (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.723 | (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;
|
|
@@ -439,6 +439,7 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
|
439
439
|
GameplayKit: [],
|
|
440
440
|
Accelerate: [],
|
|
441
441
|
CryptoKit: [],
|
|
442
|
+
CommonCrypto: [],
|
|
442
443
|
Security: [],
|
|
443
444
|
TikTokBusinessSDK: [],
|
|
444
445
|
nSure: [],
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.723 | (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.723",
|
|
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:*",
|
package/src/plist.ts
CHANGED
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { isRecord } from './is-record'
|
|
3
|
-
|
|
4
|
-
function resolvePlistParser(value: unknown): ((source: string) => unknown) | null {
|
|
5
|
-
if (!isRecord(value)) return null
|
|
6
|
-
const direct = value.parse
|
|
7
|
-
if (typeof direct === 'function') {
|
|
8
|
-
return (source) => Reflect.apply(direct, value, [source])
|
|
9
|
-
}
|
|
10
|
-
const nested = value.default
|
|
11
|
-
if (!isRecord(nested)) return null
|
|
12
|
-
const nestedParse = nested.parse
|
|
13
|
-
return typeof nestedParse === 'function'
|
|
14
|
-
? (source) => Reflect.apply(nestedParse, nested, [source])
|
|
15
|
-
: null
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// bun consumes @expo/plist's default export directly, while the compiled commonjs
|
|
19
|
-
// scanner receives the package namespace with that export nested under default.
|
|
20
|
-
const parsePlist = resolvePlistParser(plistModule)
|
|
1
|
+
import plist from 'plist'
|
|
21
2
|
|
|
22
3
|
export function parsePlistSource(source: string): unknown {
|
|
23
|
-
return
|
|
4
|
+
return plist.parse(source)
|
|
24
5
|
}
|