peachsim 0.1.2422 → 0.1.2423
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/command-agent.ts +14 -15
- package/cli/commands/box.ts +33 -28
- package/cli/commands/canvas.ts +54 -0
- package/cli/commands/platform.ts +28 -27
- package/cli/commands/preview.ts +2 -1
- package/cli/outbound-endpoints.ts +3 -0
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +6 -7
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +22 -1
- package/dist-lib/cloud-contract.mjs +20 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +27 -13
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +4 -5
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +6 -7
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- 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 +67 -53
- 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 +4 -4
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- 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/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +54 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +148 -127
- package/dist-lib/swift-compile.cjs +2 -3
- package/dist-lib/swift-compile.mjs +2 -3
- 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 +3 -4
- package/dist-lib/vite.cjs +4 -4
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +83 -2
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +9 -0
- package/dist-types/packages/peach-globals/src/canvasAgentContract.d.ts +8 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +4 -2
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +12 -0
- package/dist-types/packages/peach-globals/src/sceneStreamBridgeContract.d.ts +5 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStore.h +2 -0
- package/sdk/ios/wasm/include/errno.h +10 -0
- package/src/agent-daemon-client.ts +1 -1
- package/src/agent-prompt.ts +1 -8
- package/src/canvas-agent-note-delivery.ts +2 -5
- package/src/canvas-groups.ts +11 -3
- package/src/cloud-contract.ts +31 -1
- package/src/swift-compile.ts +0 -1
- package/src/vite-plugin.ts +4 -1
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2423 | (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 __create = Object.create;
|
|
@@ -15718,7 +15718,7 @@ var init_registry = __esm({
|
|
|
15718
15718
|
coverage: 0.88,
|
|
15719
15719
|
note: "native-seam only - upstream WebSQL-compatible JS wrapper runs from the bundle; RNSqlite2.exec is backed by the shared bedrock-sqlite WASM engine",
|
|
15720
15720
|
working: "openDatabase wrapper, transaction/readTransaction JS flow, exec query batches, rows/rowsAffected/insertId result shape, read-only transaction write rejection, multiply native smoke method",
|
|
15721
|
-
missing: "exact native file locations, multi-connection throughput behavior, and platform-specific SQLite extension loading"
|
|
15721
|
+
missing: "exact native file locations, embedded NUL in returned text, multi-connection throughput behavior, and platform-specific SQLite extension loading"
|
|
15722
15722
|
}
|
|
15723
15723
|
]
|
|
15724
15724
|
},
|
|
@@ -31114,8 +31114,8 @@ function swiftNativeTargetsRefusal(value) {
|
|
|
31114
31114
|
const products = field2("productHeaders");
|
|
31115
31115
|
const inputPath = (value2) => typeof value2 === "string" && value2.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) && isSwiftResourcePath(value2.slice(SWIFT_NATIVE_INPUT_ROOT.length + 1));
|
|
31116
31116
|
const deployment = field2("deploymentTarget");
|
|
31117
|
-
const
|
|
31118
|
-
if (typeof
|
|
31117
|
+
const targetName = field2("name");
|
|
31118
|
+
if (typeof targetName !== "string" || targetName.length === 0 || targetName.length > 4096 || targetName.includes("\0") || targetName.includes("/") || targetName.includes("\\") || targetName === "." || targetName === "..")
|
|
31119
31119
|
return at("name");
|
|
31120
31120
|
if (!(deployment === null || typeof deployment === "string" && /^\d+(?:\.\d+){0,2}$/.test(deployment)))
|
|
31121
31121
|
return at("deploymentTarget");
|
|
@@ -44769,8 +44769,8 @@ function collectNitroSources(options, nativeSourceKeys, sourceRoot) {
|
|
|
44769
44769
|
}
|
|
44770
44770
|
return deps;
|
|
44771
44771
|
};
|
|
44772
|
-
const admitTextualIncludes = (root,
|
|
44773
|
-
const prefix = `${targetPath(
|
|
44772
|
+
const admitTextualIncludes = (root, targetName, targetObj, searchRoots) => {
|
|
44773
|
+
const prefix = `${targetPath(targetName)}/upstream/`;
|
|
44774
44774
|
const queue2 = Object.keys(result.files).filter((key2) => key2.startsWith(prefix));
|
|
44775
44775
|
const scanned = /* @__PURE__ */ new Set();
|
|
44776
44776
|
const excludes = new Set(targetObj.exclude ?? []);
|
|
@@ -44829,22 +44829,22 @@ function collectNitroSources(options, nativeSourceKeys, sourceRoot) {
|
|
|
44829
44829
|
for (const node of allModules) {
|
|
44830
44830
|
const module2 = node.provider;
|
|
44831
44831
|
const config = node.config;
|
|
44832
|
-
const
|
|
44833
|
-
const targetObj = nodeTargets.get(
|
|
44832
|
+
const targetName = nitroProviderTarget(module2);
|
|
44833
|
+
const targetObj = nodeTargets.get(targetName);
|
|
44834
44834
|
const podName = node.podspec.podName ?? config.swiftModule ?? module2.name;
|
|
44835
44835
|
const searchRoots = node.podspec.headerSearchPaths;
|
|
44836
44836
|
for (const dir of searchRoots) searchRootDirs.add(dir);
|
|
44837
|
-
const implementationHeaders = import_node_fs28.default.existsSync(import_node_path25.default.join(module2.root, "cpp")) ? collect(module2.root, "cpp",
|
|
44837
|
+
const implementationHeaders = import_node_fs28.default.existsSync(import_node_path25.default.join(module2.root, "cpp")) ? collect(module2.root, "cpp", targetName, podName) : /* @__PURE__ */ new Map();
|
|
44838
44838
|
for (const dir of searchRoots.filter(
|
|
44839
44839
|
(dir2) => dir2 !== "cpp" && !dir2.startsWith("cpp/") && dir2 !== "ios" && !dir2.startsWith("ios/") && !searchRoots.some((other) => other !== dir2 && dir2.startsWith(`${other}/`))
|
|
44840
44840
|
)) {
|
|
44841
|
-
collect(module2.root, dir,
|
|
44841
|
+
collect(module2.root, dir, targetName, podName);
|
|
44842
44842
|
}
|
|
44843
44843
|
if (import_node_fs28.default.existsSync(import_node_path25.default.join(module2.root, "ios"))) {
|
|
44844
44844
|
const iosCollected = collect(
|
|
44845
44845
|
module2.root,
|
|
44846
44846
|
"ios",
|
|
44847
|
-
|
|
44847
|
+
targetName,
|
|
44848
44848
|
podName,
|
|
44849
44849
|
/* @__PURE__ */ new Set(["Tests"]),
|
|
44850
44850
|
() => true,
|
|
@@ -44852,24 +44852,24 @@ function collectNitroSources(options, nativeSourceKeys, sourceRoot) {
|
|
|
44852
44852
|
);
|
|
44853
44853
|
if (config.swiftModule) {
|
|
44854
44854
|
const objcHeaders = [...iosCollected.entries()].filter(
|
|
44855
|
-
([name3, original]) => name3.endsWith(".h") && Object.hasOwn(result.files, `${targetPath(
|
|
44855
|
+
([name3, original]) => name3.endsWith(".h") && Object.hasOwn(result.files, `${targetPath(targetName)}/include/${name3}`) && /(?:@(?:interface|protocol)\b|\b(?:NS_(?:ENUM|OPTIONS)|FOUNDATION_EXPORT)\b)/.test(
|
|
44856
44856
|
result.files[original] ?? ""
|
|
44857
44857
|
)
|
|
44858
44858
|
).map(([name3]) => name3);
|
|
44859
|
-
if (objcHeaders.length > 0) iosObjcHeadersByTarget.set(
|
|
44859
|
+
if (objcHeaders.length > 0) iosObjcHeadersByTarget.set(targetName, objcHeaders);
|
|
44860
44860
|
}
|
|
44861
44861
|
}
|
|
44862
|
-
admitTextualIncludes(module2.root,
|
|
44862
|
+
admitTextualIncludes(module2.root, targetName, targetObj, searchRoots);
|
|
44863
44863
|
const viewsDir = import_node_path25.default.join(module2.root, "nitrogen/generated/shared/c++/views");
|
|
44864
44864
|
const viewHeaders = import_node_fs28.default.existsSync(viewsDir) ? import_node_fs28.default.readdirSync(viewsDir).filter((file) => /\.(?:h|hh|hpp|hxx)$/.test(file)) : [];
|
|
44865
|
-
const upstreamPrefix = `${targetPath(
|
|
44865
|
+
const upstreamPrefix = `${targetPath(targetName)}/upstream/`;
|
|
44866
44866
|
const needsViews = viewHeaders.length > 0 && Object.entries(result.files).some(
|
|
44867
44867
|
([key2, text7]) => (key2.startsWith(`${upstreamPrefix}cpp/`) || key2.startsWith(`${upstreamPrefix}ios/`)) && viewHeaders.some((header) => text7.includes(header))
|
|
44868
44868
|
);
|
|
44869
44869
|
collect(
|
|
44870
44870
|
module2.root,
|
|
44871
44871
|
"nitrogen/generated/shared/c++",
|
|
44872
|
-
|
|
44872
|
+
targetName,
|
|
44873
44873
|
podName,
|
|
44874
44874
|
needsViews ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set(["views"])
|
|
44875
44875
|
);
|
|
@@ -44880,7 +44880,7 @@ function collectNitroSources(options, nativeSourceKeys, sourceRoot) {
|
|
|
44880
44880
|
`${module2.root}: missing C++ implementation header ${entry.implementation}.hpp`
|
|
44881
44881
|
);
|
|
44882
44882
|
}
|
|
44883
|
-
collect(module2.root, "nitrogen/generated/ios",
|
|
44883
|
+
collect(module2.root, "nitrogen/generated/ios", targetName, podName);
|
|
44884
44884
|
if (config.swiftModule) {
|
|
44885
44885
|
const companionDeps = collectCompanionPods(node);
|
|
44886
44886
|
const peerModuleDeps = node.peerRoots.flatMap((peerRoot) => {
|
|
@@ -44891,7 +44891,7 @@ function collectNitroSources(options, nativeSourceKeys, sourceRoot) {
|
|
|
44891
44891
|
];
|
|
44892
44892
|
});
|
|
44893
44893
|
const packageSwift = target(config.swiftModule, [
|
|
44894
|
-
|
|
44894
|
+
targetName,
|
|
44895
44895
|
"NitroModules",
|
|
44896
44896
|
.../* @__PURE__ */ new Set([...peerModuleDeps, ...companionDeps])
|
|
44897
44897
|
]);
|
|
@@ -44917,7 +44917,7 @@ function collectNitroSources(options, nativeSourceKeys, sourceRoot) {
|
|
|
44917
44917
|
);
|
|
44918
44918
|
add2(
|
|
44919
44919
|
`${targetPath(config.swiftModule)}/PeachNitroExports.swift`,
|
|
44920
|
-
`@_exported import ${
|
|
44920
|
+
`@_exported import ${targetName}
|
|
44921
44921
|
`
|
|
44922
44922
|
);
|
|
44923
44923
|
}
|
|
@@ -44925,21 +44925,21 @@ function collectNitroSources(options, nativeSourceKeys, sourceRoot) {
|
|
|
44925
44925
|
const dependencyHeader = nitroDependencyReader(reactNative.version, reactNative.root);
|
|
44926
44926
|
const admitted = /* @__PURE__ */ new Set();
|
|
44927
44927
|
const dependencyTrees = /* @__PURE__ */ new Set();
|
|
44928
|
-
const scan3 = (
|
|
44928
|
+
const scan3 = (targetName, text7, includer) => {
|
|
44929
44929
|
for (const [, quote, name3] of text7.matchAll(
|
|
44930
44930
|
/^\s*#\s*include\s*([<"])([^>"\n]+)[>"]/gm
|
|
44931
44931
|
)) {
|
|
44932
44932
|
const relative6 = quote === '"' && includer ? [import_node_path25.default.posix.normalize(import_node_path25.default.posix.join(import_node_path25.default.posix.dirname(includer), name3))] : [];
|
|
44933
|
-
for (const include of [...relative6, name3]) if (admit(
|
|
44933
|
+
for (const include of [...relative6, name3]) if (admit(targetName, include)) break;
|
|
44934
44934
|
}
|
|
44935
44935
|
};
|
|
44936
|
-
const admit = (
|
|
44937
|
-
const key2 = `${
|
|
44936
|
+
const admit = (targetName, include) => {
|
|
44937
|
+
const key2 = `${targetName}\0${include}`;
|
|
44938
44938
|
if (admitted.has(key2)) return true;
|
|
44939
44939
|
const header = dependencyHeader(include);
|
|
44940
44940
|
if (!header) return false;
|
|
44941
44941
|
admitted.add(key2);
|
|
44942
|
-
const original = `${targetPath(
|
|
44942
|
+
const original = `${targetPath(targetName)}/include/${include}`;
|
|
44943
44943
|
add2(original, header.text);
|
|
44944
44944
|
result.sources.push({
|
|
44945
44945
|
file: original,
|
|
@@ -44947,8 +44947,8 @@ function collectNitroSources(options, nativeSourceKeys, sourceRoot) {
|
|
|
44947
44947
|
sha256: header.sha256,
|
|
44948
44948
|
...header.derivation && { derivation: header.derivation }
|
|
44949
44949
|
});
|
|
44950
|
-
scan3(
|
|
44951
|
-
const tree2 = `${
|
|
44950
|
+
scan3(targetName, header.text, include);
|
|
44951
|
+
const tree2 = `${targetName}\0${header.name}`;
|
|
44952
44952
|
if (!dependencyTrees.has(tree2)) {
|
|
44953
44953
|
dependencyTrees.add(tree2);
|
|
44954
44954
|
for (const name3 of nitroDependencyIncludes(
|
|
@@ -44956,15 +44956,15 @@ function collectNitroSources(options, nativeSourceKeys, sourceRoot) {
|
|
|
44956
44956
|
reactNative.root,
|
|
44957
44957
|
header.name
|
|
44958
44958
|
))
|
|
44959
|
-
admit(
|
|
44959
|
+
admit(targetName, name3);
|
|
44960
44960
|
}
|
|
44961
44961
|
return true;
|
|
44962
44962
|
};
|
|
44963
44963
|
for (const node of allModules) {
|
|
44964
|
-
const
|
|
44964
|
+
const targetName = nitroProviderTarget(node.provider);
|
|
44965
44965
|
for (const [file, text7] of Object.entries(result.files))
|
|
44966
|
-
if (file.startsWith(`${targetPath(
|
|
44967
|
-
scan3(
|
|
44966
|
+
if (file.startsWith(`${targetPath(targetName)}/upstream/`))
|
|
44967
|
+
scan3(targetName, text7, null);
|
|
44968
44968
|
}
|
|
44969
44969
|
add2(
|
|
44970
44970
|
`${targetPath(jsiTarget)}/include/module.modulemap`,
|
|
@@ -45077,11 +45077,11 @@ function collectNitroSources(options, nativeSourceKeys, sourceRoot) {
|
|
|
45077
45077
|
for (const node of allModules) {
|
|
45078
45078
|
const module2 = node.provider;
|
|
45079
45079
|
const config = node.config;
|
|
45080
|
-
const
|
|
45081
|
-
const iosObjcHeaders = iosObjcHeadersByTarget.get(
|
|
45080
|
+
const targetName = nitroProviderTarget(module2);
|
|
45081
|
+
const iosObjcHeaders = iosObjcHeadersByTarget.get(targetName) ?? [];
|
|
45082
45082
|
if (iosObjcHeaders.length > 0) {
|
|
45083
45083
|
add2(
|
|
45084
|
-
`${targetPath(
|
|
45084
|
+
`${targetPath(targetName)}/include/PeachPodObjCUmbrella.h`,
|
|
45085
45085
|
[
|
|
45086
45086
|
"#pragma once",
|
|
45087
45087
|
"#ifdef __OBJC__",
|
|
@@ -45099,8 +45099,8 @@ function collectNitroSources(options, nativeSourceKeys, sourceRoot) {
|
|
|
45099
45099
|
...iosObjcHeaders.length > 0 ? ['header "PeachPodObjCUmbrella.h"'] : []
|
|
45100
45100
|
];
|
|
45101
45101
|
add2(
|
|
45102
|
-
`${targetPath(
|
|
45103
|
-
`module ${
|
|
45102
|
+
`${targetPath(targetName)}/include/module.modulemap`,
|
|
45103
|
+
`module ${targetName} { ${modulemapHeaders.length > 0 ? `${modulemapHeaders.join(" ")} ` : ""}export * }
|
|
45104
45104
|
`
|
|
45105
45105
|
);
|
|
45106
45106
|
if (!node.registered) continue;
|
|
@@ -45113,7 +45113,7 @@ function collectNitroSources(options, nativeSourceKeys, sourceRoot) {
|
|
|
45113
45113
|
extern "C" void ${registration.symbol}();
|
|
45114
45114
|
`);
|
|
45115
45115
|
add2(
|
|
45116
|
-
`${targetPath(
|
|
45116
|
+
`${targetPath(targetName)}/PeachNitroRegistration.cpp`,
|
|
45117
45117
|
[
|
|
45118
45118
|
'#include "PeachNitroRegistration.hpp"',
|
|
45119
45119
|
"#include <NitroModules/HybridObjectRegistry.hpp>",
|
|
@@ -49953,14 +49953,14 @@ function canonicalLabel(label, from) {
|
|
|
49953
49953
|
const { repo, pkg } = splitLabel(from);
|
|
49954
49954
|
return `${repo ? `@@${repo}` : ""}//${pkg}:${label.replace(/^:/, "")}`;
|
|
49955
49955
|
}
|
|
49956
|
-
function readBazelAppTarget(buildFile,
|
|
49957
|
-
if (!
|
|
49956
|
+
function readBazelAppTarget(buildFile, targetName, configurationName, options = {}) {
|
|
49957
|
+
if (!targetName)
|
|
49958
49958
|
throw new Error(
|
|
49959
49959
|
`${buildFile}: pass --target with the ios_application the bazel package builds`
|
|
49960
49960
|
);
|
|
49961
49961
|
const root = import_node_fs38.default.realpathSync.native(workspaceRoot(import_node_fs38.default.realpathSync.native(buildFile)));
|
|
49962
49962
|
const pkg = import_node_path35.default.relative(root, import_node_path35.default.dirname(import_node_fs38.default.realpathSync.native(buildFile)));
|
|
49963
|
-
const label = `//${pkg.split(import_node_path35.default.sep).join("/")}:${
|
|
49963
|
+
const label = `//${pkg.split(import_node_path35.default.sep).join("/")}:${targetName}`;
|
|
49964
49964
|
const configuration = configurationName ?? "Debug";
|
|
49965
49965
|
const graph = bazelGraph(root, label, configuration);
|
|
49966
49966
|
const files2 = new BazelFiles(graph, root);
|
|
@@ -50196,7 +50196,7 @@ ${published3.map(
|
|
|
50196
50196
|
const appModule = {
|
|
50197
50197
|
...named,
|
|
50198
50198
|
id: idOf(graph.app),
|
|
50199
|
-
name:
|
|
50199
|
+
name: targetName,
|
|
50200
50200
|
targetIdentity: graph.app.label,
|
|
50201
50201
|
targetDependencies: [
|
|
50202
50202
|
...new Set(appParts.flatMap(({ module: module2 }) => module2.targetDependencies))
|
|
@@ -50485,7 +50485,7 @@ ${published3.map(
|
|
|
50485
50485
|
{
|
|
50486
50486
|
id: appModule.id,
|
|
50487
50487
|
sourceTarget: appModule.moduleName,
|
|
50488
|
-
productName: `${
|
|
50488
|
+
productName: `${targetName}.app`,
|
|
50489
50489
|
productType: "com.apple.product-type.application",
|
|
50490
50490
|
installName: null,
|
|
50491
50491
|
buildVersion: { platform: "iphonesimulator", minimumOS, sdk: null },
|
|
@@ -50529,7 +50529,7 @@ ${published3.map(
|
|
|
50529
50529
|
binaryFrameworks,
|
|
50530
50530
|
sdkFrameworks,
|
|
50531
50531
|
packageResolved: [],
|
|
50532
|
-
appTargets: [
|
|
50532
|
+
appTargets: [targetName],
|
|
50533
50533
|
configuration,
|
|
50534
50534
|
settings: (key2) => key2 === "PRODUCT_MODULE_NAME" ? appModule.moduleName : key2 === "IPHONEOS_DEPLOYMENT_TARGET" ? minimumOS : key2 === "PRODUCT_BUNDLE_IDENTIFIER" ? graph.app.attrs.get("bundle_id")?.value ?? "" : "",
|
|
50535
50535
|
cocoapods: null
|
|
@@ -51796,7 +51796,7 @@ function parseBuildSettings(block2) {
|
|
|
51796
51796
|
}
|
|
51797
51797
|
return settings;
|
|
51798
51798
|
}
|
|
51799
|
-
function appTargetReleaseSettings(pbxproj,
|
|
51799
|
+
function appTargetReleaseSettings(pbxproj, targetName, infoPlistRelativePath) {
|
|
51800
51800
|
const configurationPattern = /\/\* (Release|Debug) \*\/ = \{/g;
|
|
51801
51801
|
const candidates = [];
|
|
51802
51802
|
let match;
|
|
@@ -51817,7 +51817,7 @@ function appTargetReleaseSettings(pbxproj, targetName2, infoPlistRelativePath) {
|
|
|
51817
51817
|
const normalized = plist6.replace(/^"|"$/g, "");
|
|
51818
51818
|
return normalized === infoPlistRelativePath || infoPlistRelativePath.endsWith(`/${normalized}`) || normalized.endsWith(`/${infoPlistRelativePath}`);
|
|
51819
51819
|
};
|
|
51820
|
-
const named = (settings) => resolveBuildSetting(settings.PRODUCT_NAME ?? "", settings) ===
|
|
51820
|
+
const named = (settings) => resolveBuildSetting(settings.PRODUCT_NAME ?? "", settings) === targetName;
|
|
51821
51821
|
return candidates.find(
|
|
51822
51822
|
(candidate) => candidate.name === "Release" && plistMatch(candidate.settings)
|
|
51823
51823
|
)?.settings ?? candidates.find(
|
|
@@ -51861,31 +51861,31 @@ function nativeAppIdentityFromIos(files2, parseInfoPlist, iosTarget, resourceUri
|
|
|
51861
51861
|
applicationTargetNames.add(match[1]);
|
|
51862
51862
|
}
|
|
51863
51863
|
}
|
|
51864
|
-
let
|
|
51864
|
+
let targetName = null;
|
|
51865
51865
|
if (iosTarget) {
|
|
51866
51866
|
if (applicationTargetNames.has(iosTarget)) {
|
|
51867
|
-
|
|
51867
|
+
targetName = iosTarget;
|
|
51868
51868
|
} else {
|
|
51869
51869
|
return null;
|
|
51870
51870
|
}
|
|
51871
51871
|
} else if (applicationTargetNames.size === 1) {
|
|
51872
|
-
|
|
51872
|
+
targetName = [...applicationTargetNames][0];
|
|
51873
51873
|
} else if (applicationTargetNames.size > 1) {
|
|
51874
51874
|
const delegateTargets = Object.keys(files2).filter((path154) => !path154.includes("/Pods/")).map((path154) => path154.match(APP_DELEGATE_PATH_RE)?.[1]).filter(
|
|
51875
51875
|
(name3) => typeof name3 === "string" && applicationTargetNames.has(name3)
|
|
51876
51876
|
);
|
|
51877
51877
|
if (delegateTargets.length === 1) {
|
|
51878
|
-
|
|
51878
|
+
targetName = delegateTargets[0];
|
|
51879
51879
|
} else {
|
|
51880
51880
|
return null;
|
|
51881
51881
|
}
|
|
51882
51882
|
} else {
|
|
51883
51883
|
return null;
|
|
51884
51884
|
}
|
|
51885
|
-
const selectedTarget = targets.find((t) => t.name ===
|
|
51885
|
+
const selectedTarget = targets.find((t) => t.name === targetName);
|
|
51886
51886
|
const settings = {
|
|
51887
|
-
TARGET_NAME:
|
|
51888
|
-
PRODUCT_NAME:
|
|
51887
|
+
TARGET_NAME: targetName,
|
|
51888
|
+
PRODUCT_NAME: targetName
|
|
51889
51889
|
};
|
|
51890
51890
|
for (const obj of Object.values(objects)) {
|
|
51891
51891
|
if (isRecord(obj) && obj.isa === "PBXProject" && typeof obj.buildConfigurationList === "string") {
|
|
@@ -51921,8 +51921,8 @@ function nativeAppIdentityFromIos(files2, parseInfoPlist, iosTarget, resourceUri
|
|
|
51921
51921
|
} else {
|
|
51922
51922
|
const legacy2 = appTargetReleaseSettings(
|
|
51923
51923
|
pbxproj,
|
|
51924
|
-
|
|
51925
|
-
`${
|
|
51924
|
+
targetName,
|
|
51925
|
+
`${targetName}/Info.plist`
|
|
51926
51926
|
);
|
|
51927
51927
|
if (legacy2) Object.assign(settings, legacy2);
|
|
51928
51928
|
}
|
|
@@ -51933,7 +51933,7 @@ function nativeAppIdentityFromIos(files2, parseInfoPlist, iosTarget, resourceUri
|
|
|
51933
51933
|
plist6 = files2[`ios/${normalized}`] ?? files2[normalized] ?? Object.entries(files2).find(([k]) => k.endsWith(`/${normalized}`))?.[1];
|
|
51934
51934
|
}
|
|
51935
51935
|
if (!plist6) {
|
|
51936
|
-
plist6 = files2[`ios/${
|
|
51936
|
+
plist6 = files2[`ios/${targetName}/Info.plist`] ?? files2[`${targetName}/Info.plist`] ?? Object.entries(files2).find(([k]) => k.endsWith(`/${targetName}/Info.plist`))?.[1];
|
|
51937
51937
|
}
|
|
51938
51938
|
if (!plist6) return null;
|
|
51939
51939
|
const bundleIdentifier = identityFieldFrom(
|
|
@@ -51957,7 +51957,7 @@ function nativeAppIdentityFromIos(files2, parseInfoPlist, iosTarget, resourceUri
|
|
|
51957
51957
|
settings,
|
|
51958
51958
|
plistString(plist6, "CFBundleName"),
|
|
51959
51959
|
settings.PRODUCT_NAME
|
|
51960
|
-
) ?? resolvedIdentityField(resolveBuildSetting(settings.PRODUCT_NAME ?? "", settings)) ?? resolvedIdentityField(
|
|
51960
|
+
) ?? resolvedIdentityField(resolveBuildSetting(settings.PRODUCT_NAME ?? "", settings)) ?? resolvedIdentityField(targetName);
|
|
51961
51961
|
if (!bundleName) return null;
|
|
51962
51962
|
const applicationName = identityFieldFrom(settings, plistString(plist6, "CFBundleDisplayName"), void 0) ?? bundleName;
|
|
51963
51963
|
const dictionary2 = parseInfoPlist(plist6);
|
|
@@ -52123,7 +52123,7 @@ function nativeAppIdentityFromIos(files2, parseInfoPlist, iosTarget, resourceUri
|
|
|
52123
52123
|
}
|
|
52124
52124
|
const rootModuleName = readRootModuleName(
|
|
52125
52125
|
Object.entries(files2).filter(
|
|
52126
|
-
([path154]) => !path154.includes("/Pods/") && (/(?:^|\/)(?:ios\/)?AppDelegate\.(?:swift|mm|m)$/.test(path154) || path154.match(APP_DELEGATE_PATH_RE)?.[1] ===
|
|
52126
|
+
([path154]) => !path154.includes("/Pods/") && (/(?:^|\/)(?:ios\/)?AppDelegate\.(?:swift|mm|m)$/.test(path154) || path154.match(APP_DELEGATE_PATH_RE)?.[1] === targetName)
|
|
52127
52127
|
).map(([, source]) => source)
|
|
52128
52128
|
);
|
|
52129
52129
|
return {
|
|
@@ -60035,9 +60035,9 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
60035
60035
|
const sLive = liveSegs.get(obj);
|
|
60036
60036
|
const dLive = liveDataSyms.get(obj);
|
|
60037
60037
|
const tLive = liveTypes.get(obj);
|
|
60038
|
-
const
|
|
60038
|
+
const targetName = obj.symNames[r.rs] ?? "";
|
|
60039
60039
|
if (segName === "swift5_type_metadata") {
|
|
60040
|
-
const raw2 =
|
|
60040
|
+
const raw2 = targetName.startsWith(".Lgot.") ? targetName.slice(6) : targetName;
|
|
60041
60041
|
if (raw2.endsWith("Mn")) {
|
|
60042
60042
|
const pref = raw2.slice(0, -2);
|
|
60043
60043
|
if (obj.typePrefixesInObj.has(pref)) return tLive.has(pref);
|
|
@@ -71578,7 +71578,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
71578
71578
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
71579
71579
|
MULTI_MANIFEST_VERSION = 72;
|
|
71580
71580
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
71581
|
-
compilerSourceDigest = true ? "
|
|
71581
|
+
compilerSourceDigest = true ? "886349932526d72a5a1493acbcd1799ec941afd89998ad0eab64bbe9c48afb95" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
71582
71582
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
71583
71583
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
71584
71584
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -71662,7 +71662,6 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
71662
71662
|
"NSSwappedDouble",
|
|
71663
71663
|
"NSSwappedFloat",
|
|
71664
71664
|
"NSUbiquitousKeyValueStore",
|
|
71665
|
-
"NSValueTransformerName",
|
|
71666
71665
|
"NSXPCCoder",
|
|
71667
71666
|
"NSXPCConnection",
|
|
71668
71667
|
"NSXPCInterface",
|
|
@@ -73520,10 +73519,10 @@ function readXcodeJsonProject(xcodeproj, source) {
|
|
|
73520
73519
|
phases.set(`id:${phaseId}`, phaseId);
|
|
73521
73520
|
}
|
|
73522
73521
|
}
|
|
73523
|
-
const phaseFiles = (reference,
|
|
73522
|
+
const phaseFiles = (reference, targetName) => {
|
|
73524
73523
|
const value = text6(reference);
|
|
73525
73524
|
if (value === void 0) return null;
|
|
73526
|
-
const key2 = value.startsWith("id:") || !
|
|
73525
|
+
const key2 = value.startsWith("id:") || !targetName ? value : `${targetName}/${value}`;
|
|
73527
73526
|
const phase = objects[phases.get(key2) ?? ""];
|
|
73528
73527
|
return phase && typeof phase === "object" && !Array.isArray(phase) && Array.isArray(phase.files) ? phase.files : null;
|
|
73529
73528
|
};
|
|
@@ -74213,7 +74212,7 @@ function fileListEntries(file, absolute) {
|
|
|
74213
74212
|
}
|
|
74214
74213
|
function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
74215
74214
|
const { project: project2, target, id: targetId } = ref;
|
|
74216
|
-
const
|
|
74215
|
+
const targetName = str2(target.name) ?? targetId;
|
|
74217
74216
|
const sources = /* @__PURE__ */ new Set();
|
|
74218
74217
|
const allSources = /* @__PURE__ */ new Set();
|
|
74219
74218
|
const headers = /* @__PURE__ */ new Set();
|
|
@@ -74286,7 +74285,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
74286
74285
|
for (const { file } of lists)
|
|
74287
74286
|
if (!import_node_fs67.default.existsSync(file))
|
|
74288
74287
|
throw new Error(
|
|
74289
|
-
`${
|
|
74288
|
+
`${targetName}: Run Script "${script}" missing file list ${file}`
|
|
74290
74289
|
);
|
|
74291
74290
|
const env = {
|
|
74292
74291
|
...process.env,
|
|
@@ -74382,7 +74381,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
|
|
|
74382
74381
|
const output2 = error instanceof Error ? `${error.message}
|
|
74383
74382
|
${"stdout" in error ? String(error.stdout) : ""}${"stderr" in error ? String(error.stderr) : ""}` : String(error);
|
|
74384
74383
|
throw new Error(
|
|
74385
|
-
`${
|
|
74384
|
+
`${targetName}: Run Script "${script}" failed preparing generated outputs:
|
|
74386
74385
|
${output2}`
|
|
74387
74386
|
);
|
|
74388
74387
|
}
|
|
@@ -74391,7 +74390,7 @@ ${output2}`
|
|
|
74391
74390
|
);
|
|
74392
74391
|
if (missing2.length > 0)
|
|
74393
74392
|
throw new Error(
|
|
74394
|
-
`${
|
|
74393
|
+
`${targetName}: Run Script "${script}" did not produce ${missing2.join(", ")}`
|
|
74395
74394
|
);
|
|
74396
74395
|
preparedSourcePhases.set(key2, stamp);
|
|
74397
74396
|
preparedXcodePhase(
|
|
@@ -74423,7 +74422,7 @@ ${output2}`
|
|
|
74423
74422
|
if (options.requireSources === false) return;
|
|
74424
74423
|
const script = scriptForOutput.get(import_node_path65.default.normalize(file));
|
|
74425
74424
|
throw new Error(
|
|
74426
|
-
script ? `${
|
|
74425
|
+
script ? `${targetName}: missing generated source ${file} (Run Script "${script}" declares it in outputPaths; run the script or check in its output)` : `${targetName}: missing source ${file}`
|
|
74427
74426
|
);
|
|
74428
74427
|
}
|
|
74429
74428
|
allSources.add(file);
|
|
@@ -74446,7 +74445,7 @@ ${output2}`
|
|
|
74446
74445
|
);
|
|
74447
74446
|
if (runtimeInterfaceFiles.length > 0)
|
|
74448
74447
|
throw new Error(
|
|
74449
|
-
`${
|
|
74448
|
+
`${targetName}: Interface Builder compilation requires macOS and Xcode`
|
|
74450
74449
|
);
|
|
74451
74450
|
for (const file of interfaceFiles) resources.delete(file);
|
|
74452
74451
|
interfaceFiles.length = 0;
|
|
@@ -74462,7 +74461,7 @@ ${output2}`
|
|
|
74462
74461
|
import_node_path65.default.basename(file, import_node_path65.default.extname(file)) + extension
|
|
74463
74462
|
);
|
|
74464
74463
|
if (interfaceOutputs.has(output2))
|
|
74465
|
-
throw new Error(`${
|
|
74464
|
+
throw new Error(`${targetName}: duplicate Interface Builder output ${output2}`);
|
|
74466
74465
|
interfaceOutputs.add(output2);
|
|
74467
74466
|
const args = [
|
|
74468
74467
|
"ibtool",
|
|
@@ -74504,7 +74503,7 @@ ${output2}`
|
|
|
74504
74503
|
);
|
|
74505
74504
|
if (definitions.length > 0 && process.platform !== "darwin")
|
|
74506
74505
|
throw new Error(
|
|
74507
|
-
`${
|
|
74506
|
+
`${targetName}: intent definition code generation requires macOS and Xcode`
|
|
74508
74507
|
);
|
|
74509
74508
|
for (const definition2 of definitions) {
|
|
74510
74509
|
const configuredLanguage = settings("INTENTS_CODEGEN_LANGUAGE");
|
|
@@ -74789,8 +74788,8 @@ function readXcodeScheme(xcodeprojOrWorkspace, scheme) {
|
|
|
74789
74788
|
if (!name3) {
|
|
74790
74789
|
const declared = (project2 ? [project2] : projects2).flatMap(
|
|
74791
74790
|
(candidate) => projectTargets(candidate).flatMap((ref) => {
|
|
74792
|
-
const
|
|
74793
|
-
return
|
|
74791
|
+
const targetName = str2(ref.target.name);
|
|
74792
|
+
return targetName ? [targetName] : [];
|
|
74794
74793
|
})
|
|
74795
74794
|
);
|
|
74796
74795
|
throw new Error(
|
|
@@ -74892,9 +74891,9 @@ async function resolveXcodeSwiftPackages(input, signal, target, configuration) {
|
|
|
74892
74891
|
);
|
|
74893
74892
|
}
|
|
74894
74893
|
}
|
|
74895
|
-
function readXcodeAppTarget(input,
|
|
74894
|
+
function readXcodeAppTarget(input, targetName, configurationName, options = {}) {
|
|
74896
74895
|
if (isBazelPackage(input))
|
|
74897
|
-
return readBazelAppTarget(input,
|
|
74896
|
+
return readBazelAppTarget(input, targetName, configurationName, options);
|
|
74898
74897
|
const xcodeprojOrWorkspace = import_node_fs67.default.realpathSync.native(input);
|
|
74899
74898
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
74900
74899
|
const { listed, projects: projects2, projectAt, cocoapods } = workspaceProjects(
|
|
@@ -74903,22 +74902,22 @@ function readXcodeAppTarget(input, targetName2, configurationName, options = {})
|
|
|
74903
74902
|
);
|
|
74904
74903
|
const allTargets = projects2.flatMap(projectTargets);
|
|
74905
74904
|
const appTargets = allTargets.filter(
|
|
74906
|
-
(ref) => options.frameworkMachOType ? ref.target.name ===
|
|
74905
|
+
(ref) => options.frameworkMachOType ? ref.target.name === targetName && FRAMEWORK_PRODUCTS.has(str2(ref.target.productType) ?? "") : isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
|
|
74907
74906
|
);
|
|
74908
74907
|
const appTargetNames = appTargets.map((ref) => str2(ref.target.name) ?? ref.id);
|
|
74909
74908
|
const container = import_node_path65.default.basename(xcodeprojOrWorkspace);
|
|
74910
|
-
const named =
|
|
74909
|
+
const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
|
|
74911
74910
|
if (named.length !== 1) {
|
|
74912
74911
|
if (options.frameworkMachOType)
|
|
74913
74912
|
throw new Error(
|
|
74914
|
-
`${container} must declare one framework target named ${
|
|
74913
|
+
`${container} must declare one framework target named ${targetName}`
|
|
74915
74914
|
);
|
|
74916
74915
|
if (appTargets.length === 0)
|
|
74917
74916
|
throw new Error(
|
|
74918
74917
|
`${container} has no application targets; open a project or workspace that contains one`
|
|
74919
74918
|
);
|
|
74920
74919
|
throw new Error(
|
|
74921
|
-
|
|
74920
|
+
targetName && named.length === 0 ? `${container} has no application target ${targetName}; it has ${appTargetNames.join(", ") || "none"}` : targetName ? `${container} has ${named.length} application targets named ${targetName}; open its .xcodeproj` : `${container} has ${appTargetNames.length} application targets (${appTargetNames.join(", ")}); pass --target`
|
|
74922
74921
|
);
|
|
74923
74922
|
}
|
|
74924
74923
|
const app = named[0];
|
|
@@ -78328,7 +78327,7 @@ var init_swift_standin_digest = __esm({
|
|
|
78328
78327
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
78329
78328
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
78330
78329
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
78331
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
78330
|
+
STANDIN_SOURCE_DIGEST = true ? "2913d6a693b8a1c42193c1962c3468c2f8bc68c78a2f2f52961ca5efe03d1e67" : standinSourceDigest();
|
|
78332
78331
|
}
|
|
78333
78332
|
});
|
|
78334
78333
|
|
|
@@ -78823,7 +78822,7 @@ __export(expo_native_prebuilt_exports, {
|
|
|
78823
78822
|
servedExpoSwift: () => servedExpoSwift
|
|
78824
78823
|
});
|
|
78825
78824
|
function expoNativeCompilerDigestValue() {
|
|
78826
|
-
return true ? "
|
|
78825
|
+
return true ? "5a193936cb2c362dd919d9127e9318122bd8e86f9c6e05cbe56c4c6580a4636a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
78827
78826
|
}
|
|
78828
78827
|
function readSources(value) {
|
|
78829
78828
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -93238,12 +93237,12 @@ async function collectTurboSources(options) {
|
|
|
93238
93237
|
)
|
|
93239
93238
|
)
|
|
93240
93239
|
);
|
|
93241
|
-
const original = (
|
|
93240
|
+
const original = (targetName, label, root, relative6, compiled = true) => {
|
|
93242
93241
|
const staged = relative6.replace(
|
|
93243
93242
|
/(^|\/)main(\.(?:c|cc|cpp|cxx|m|mm))$/,
|
|
93244
93243
|
"$1main.library$2"
|
|
93245
93244
|
);
|
|
93246
|
-
const key2 = `${targetPath(
|
|
93245
|
+
const key2 = `${targetPath(targetName)}/upstream/${label}/${staged}`;
|
|
93247
93246
|
if (UNIT.test(relative6) || OBJC2.test(relative6))
|
|
93248
93247
|
(compiled ? compiledSources : textualSources).add(key2);
|
|
93249
93248
|
if (Object.hasOwn(result.files, key2)) return key2;
|
|
@@ -93252,24 +93251,24 @@ async function collectTurboSources(options) {
|
|
|
93252
93251
|
if (installed2?.flags.length) {
|
|
93253
93252
|
let prefixHeader = null;
|
|
93254
93253
|
if (installed2.prefixHeader) {
|
|
93255
|
-
prefixHeader = `${targetPath(
|
|
93254
|
+
prefixHeader = `${targetPath(targetName)}/${import_node_path98.default.basename(installed2.prefixHeader)}`;
|
|
93256
93255
|
add2(prefixHeader, import_node_fs101.default.readFileSync(installed2.prefixHeader, "utf8"));
|
|
93257
93256
|
}
|
|
93258
93257
|
result.nativeTargets ??= [];
|
|
93259
|
-
let native = result.nativeTargets.find(({ name: name3 }) => name3 ===
|
|
93258
|
+
let native = result.nativeTargets.find(({ name: name3 }) => name3 === targetName);
|
|
93260
93259
|
if (!native) {
|
|
93261
93260
|
native = {
|
|
93262
|
-
name:
|
|
93261
|
+
name: targetName,
|
|
93263
93262
|
deploymentTarget: null,
|
|
93264
93263
|
headers: [],
|
|
93265
|
-
publicHeaders:
|
|
93266
|
-
`${targetPath(
|
|
93264
|
+
publicHeaders: targetName === TURBO_CORE_TARGET ? [
|
|
93265
|
+
`${targetPath(targetName)}/${TURBO_CORE_PUBLIC_HEADERS}/${TURBO_ENTRY_HEADER}`
|
|
93267
93266
|
] : [],
|
|
93268
93267
|
flattensPublicHeaders: false,
|
|
93269
93268
|
bridgingHeader: null,
|
|
93270
93269
|
prefixHeader,
|
|
93271
93270
|
headerSearchPaths: [
|
|
93272
|
-
`${targetPath(
|
|
93271
|
+
`${targetPath(targetName)}/${targetName === TURBO_CORE_TARGET ? TURBO_CORE_PUBLIC_HEADERS : "include"}`
|
|
93273
93272
|
],
|
|
93274
93273
|
userHeaderSearchPaths: [],
|
|
93275
93274
|
frameworkSearchPaths: [],
|
|
@@ -93297,7 +93296,7 @@ async function collectTurboSources(options) {
|
|
|
93297
93296
|
throw new Error(`TurboModule source is not UTF-8: ${disk}`);
|
|
93298
93297
|
add2(key2, text7);
|
|
93299
93298
|
result.sources.push({ file: key2, source: disk, sha256: sha2564(bytes) });
|
|
93300
|
-
pending2.push({ key: key2, targetName
|
|
93299
|
+
pending2.push({ key: key2, targetName, label, root, relative: relative6 });
|
|
93301
93300
|
return key2;
|
|
93302
93301
|
};
|
|
93303
93302
|
const pending2 = [];
|
|
@@ -93652,9 +93651,9 @@ async function collectTurboSources(options) {
|
|
|
93652
93651
|
const unregisteredObjcClasses = /* @__PURE__ */ new Set();
|
|
93653
93652
|
const deferredDepUnits = [];
|
|
93654
93653
|
for (const provider of providers) {
|
|
93655
|
-
const
|
|
93654
|
+
const targetName = providerTarget(provider.info.name);
|
|
93656
93655
|
const label = provider.info.name;
|
|
93657
|
-
const providerTargetInput = target(
|
|
93656
|
+
const providerTargetInput = target(targetName, [
|
|
93658
93657
|
TURBO_CORE_TARGET
|
|
93659
93658
|
]);
|
|
93660
93659
|
result.targets.push(providerTargetInput);
|
|
@@ -93672,11 +93671,11 @@ async function collectTurboSources(options) {
|
|
|
93672
93671
|
if (provider.providerFabric) {
|
|
93673
93672
|
fabric = true;
|
|
93674
93673
|
fabricPackages.add(provider.name);
|
|
93675
|
-
fabricTarget ??= { targetName
|
|
93674
|
+
fabricTarget ??= { targetName, label, root: provider.root };
|
|
93676
93675
|
}
|
|
93677
93676
|
if (pod.installed?.library) {
|
|
93678
93677
|
result.libraries ??= {};
|
|
93679
|
-
result.libraries[
|
|
93678
|
+
result.libraries[targetName] = import_node_fs101.default.readFileSync(pod.installed.library).toString("base64");
|
|
93680
93679
|
}
|
|
93681
93680
|
const files2 = podFiles(pod).filter((file) => {
|
|
93682
93681
|
if (!provider.reactModulesOnly || HEADER5.test(file)) return true;
|
|
@@ -93689,10 +93688,10 @@ async function collectTurboSources(options) {
|
|
|
93689
93688
|
if (paper.length > 0) {
|
|
93690
93689
|
fabric = true;
|
|
93691
93690
|
paperClasses.push(...paper);
|
|
93692
|
-
paperTarget ??= { targetName
|
|
93691
|
+
paperTarget ??= { targetName, label, root: provider.root };
|
|
93693
93692
|
}
|
|
93694
93693
|
const headers = /* @__PURE__ */ new Map();
|
|
93695
|
-
podHeaders.set(
|
|
93694
|
+
podHeaders.set(targetName, {
|
|
93696
93695
|
headers,
|
|
93697
93696
|
label,
|
|
93698
93697
|
root,
|
|
@@ -94005,33 +94004,33 @@ async function collectTurboSources(options) {
|
|
|
94005
94004
|
);
|
|
94006
94005
|
if (filtered !== source) {
|
|
94007
94006
|
if (definedFacebookReactComponentNames(filtered).size === 0) continue;
|
|
94008
|
-
const key2 = original(
|
|
94007
|
+
const key2 = original(targetName, "ReactCodegen", generated, file);
|
|
94009
94008
|
result.files[key2] = filtered;
|
|
94010
94009
|
continue;
|
|
94011
94010
|
}
|
|
94012
94011
|
}
|
|
94013
94012
|
}
|
|
94014
|
-
original(
|
|
94013
|
+
original(targetName, "ReactCodegen", generated, file);
|
|
94015
94014
|
}
|
|
94016
94015
|
}
|
|
94017
94016
|
}
|
|
94018
|
-
for (const file of sources) original(
|
|
94017
|
+
for (const file of sources) original(targetName, label, root, file);
|
|
94019
94018
|
for (const unit2 of depUnits) {
|
|
94020
94019
|
if (!unit2.companionHeader) {
|
|
94021
94020
|
result.externalPodSources.push({
|
|
94022
94021
|
moduleName: unit2.moduleName,
|
|
94023
|
-
file: original(
|
|
94022
|
+
file: original(targetName, unit2.label, unit2.root, unit2.relative)
|
|
94024
94023
|
});
|
|
94025
94024
|
} else {
|
|
94026
|
-
deferredDepUnits.push({ targetName
|
|
94025
|
+
deferredDepUnits.push({ targetName, ...unit2 });
|
|
94027
94026
|
}
|
|
94028
94027
|
}
|
|
94029
94028
|
const declared = [];
|
|
94030
94029
|
for (const [count, { file, load: load2 }] of loads.entries()) {
|
|
94031
|
-
const symbol2 = `peach_turbo_load_${
|
|
94030
|
+
const symbol2 = `peach_turbo_load_${targetName}_${count}`;
|
|
94032
94031
|
declared.push(symbol2);
|
|
94033
|
-
result.loads.push({ symbol: symbol2, target:
|
|
94034
|
-
const unit2 = `${targetPath(
|
|
94032
|
+
result.loads.push({ symbol: symbol2, target: targetName });
|
|
94033
|
+
const unit2 = `${targetPath(targetName)}/PeachTurboLoad${count}.cpp`;
|
|
94035
94034
|
add2(
|
|
94036
94035
|
unit2,
|
|
94037
94036
|
[
|
|
@@ -94043,21 +94042,21 @@ async function collectTurboSources(options) {
|
|
|
94043
94042
|
].join("\n")
|
|
94044
94043
|
);
|
|
94045
94044
|
scanText(
|
|
94046
|
-
{ key: unit2, targetName
|
|
94045
|
+
{ key: unit2, targetName, label, root, relative: file },
|
|
94047
94046
|
result.files[unit2]
|
|
94048
94047
|
);
|
|
94049
94048
|
}
|
|
94050
94049
|
add2(
|
|
94051
|
-
`${targetPath(
|
|
94050
|
+
`${targetPath(targetName)}/include/PeachTurboLoad.hpp`,
|
|
94052
94051
|
`#pragma once
|
|
94053
94052
|
${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
94054
94053
|
`).join("")}`
|
|
94055
94054
|
);
|
|
94056
94055
|
add2(
|
|
94057
|
-
`${targetPath(
|
|
94058
|
-
`module ${
|
|
94059
|
-
const source = original(
|
|
94060
|
-
return ` header ${JSON.stringify(import_node_path98.default.posix.relative(`${targetPath(
|
|
94056
|
+
`${targetPath(targetName)}/include/module.modulemap`,
|
|
94057
|
+
`module ${targetName} { header "PeachTurboLoad.hpp"${swiftSources.length > 0 || depSwiftPods.length > 0 ? publicHeaders.map((file) => {
|
|
94058
|
+
const source = original(targetName, label, root, file);
|
|
94059
|
+
return ` header ${JSON.stringify(import_node_path98.default.posix.relative(`${targetPath(targetName)}/include`, source))}`;
|
|
94061
94060
|
}).join("") : ""} export * }
|
|
94062
94061
|
`
|
|
94063
94062
|
);
|
|
@@ -102026,7 +102025,7 @@ var init_nitro_superset = __esm({
|
|
|
102026
102025
|
init_nitroContract();
|
|
102027
102026
|
init_swift_standin_digest();
|
|
102028
102027
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
102029
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
102028
|
+
NITRO_COMPILER_DIGEST = true ? "a6905cb4da4fec9b5ef03b34b0b2891e3ed553f5571d77e24e075fa7c483b0a9" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
102030
102029
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
102031
102030
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
102032
102031
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -102718,7 +102717,7 @@ var init_one_sdk_bundle = __esm({
|
|
|
102718
102717
|
var runtime_companion_default;
|
|
102719
102718
|
var init_runtime_companion = __esm({
|
|
102720
102719
|
"runtime-companion.json"() {
|
|
102721
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
102720
|
+
runtime_companion_default = { abi: 1, sha256: "50f7ba9b5269b150a6bd2189f202e3cde6ecd829f705d24a70a88f13e6a92474", file: "node/cli-50f7ba9b5269b150a6bd2189f202e3cde6ecd829f705d24a70a88f13e6a92474.cjs" };
|
|
102722
102721
|
}
|
|
102723
102722
|
});
|
|
102724
102723
|
|
|
@@ -116635,6 +116634,22 @@ var init_metroCloudArtifact = __esm({
|
|
|
116635
116634
|
});
|
|
116636
116635
|
|
|
116637
116636
|
// src/cloud-contract.ts
|
|
116637
|
+
function agentActionTarget(target) {
|
|
116638
|
+
if (!target) return void 0;
|
|
116639
|
+
const clean = (value) => {
|
|
116640
|
+
const text8 = value?.trim().replace(/\s+/g, " ");
|
|
116641
|
+
return text8 ? text8.slice(0, AGENT_IDENTITY_MAX_CHARS) : void 0;
|
|
116642
|
+
};
|
|
116643
|
+
const id = clean(target.id);
|
|
116644
|
+
const testID = clean(target.testID);
|
|
116645
|
+
const text7 = TEXT_FIELD_TYPE.test(target.type ?? "") ? void 0 : clean(target.text);
|
|
116646
|
+
if (!id && !testID && !text7) return void 0;
|
|
116647
|
+
return { ...id && { id }, ...testID && { testID }, ...text7 && { text: text7 } };
|
|
116648
|
+
}
|
|
116649
|
+
function agentActionTargetName(target) {
|
|
116650
|
+
const safe2 = agentActionTarget(target);
|
|
116651
|
+
return safe2?.text ?? safe2?.testID ?? safe2?.id ?? null;
|
|
116652
|
+
}
|
|
116638
116653
|
function scopeTableKeys() {
|
|
116639
116654
|
return Object.keys(RNX_CLOUD_COMMAND_SCOPES).filter(
|
|
116640
116655
|
(key2) => Object.prototype.hasOwnProperty.call(RNX_CLOUD_COMMAND_SCOPES, key2)
|
|
@@ -116652,11 +116667,12 @@ function rnxCloudScopesAllowCommand(scopes, type) {
|
|
|
116652
116667
|
function isRnxCloudSimStatus(value) {
|
|
116653
116668
|
return value === "creating" || value === "open" || value === "hibernated" || value === "deleting" || value === "deleted";
|
|
116654
116669
|
}
|
|
116655
|
-
var AGENT_IDENTITY_MAX_CHARS, RNX_CLOUD_MAX_ARTIFACT_BYTES, RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES, RNX_CLOUD_COMMAND_SCOPES, RNX_CLOUD_COMMAND_TYPES, RNX_CLOUD_COMMAND_TYPE_SET, RNX_CLOUD_TOKEN_SCOPES, RNX_CLOUD_ALL_COMMAND_SCOPES;
|
|
116670
|
+
var AGENT_IDENTITY_MAX_CHARS, TEXT_FIELD_TYPE, RNX_CLOUD_MAX_ARTIFACT_BYTES, RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES, RNX_CLOUD_COMMAND_SCOPES, RNX_CLOUD_COMMAND_TYPES, RNX_CLOUD_COMMAND_TYPE_SET, RNX_CLOUD_TOKEN_SCOPES, RNX_CLOUD_ALL_COMMAND_SCOPES;
|
|
116656
116671
|
var init_cloud_contract = __esm({
|
|
116657
116672
|
"src/cloud-contract.ts"() {
|
|
116658
116673
|
"use strict";
|
|
116659
116674
|
AGENT_IDENTITY_MAX_CHARS = 200;
|
|
116675
|
+
TEXT_FIELD_TYPE = /text ?(input|field)/i;
|
|
116660
116676
|
RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
|
|
116661
116677
|
RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES = 1024 * 1024;
|
|
116662
116678
|
RNX_CLOUD_COMMAND_SCOPES = {
|
|
@@ -117334,23 +117350,19 @@ var init_current_sim = __esm({
|
|
|
117334
117350
|
function clip(text7) {
|
|
117335
117351
|
return text7.length > AGENT_IDENTITY_MAX_CHARS ? `${text7.slice(0, AGENT_IDENTITY_MAX_CHARS - 1)}\u2026` : text7;
|
|
117336
117352
|
}
|
|
117337
|
-
function targetName(target) {
|
|
117338
|
-
const name3 = target?.text?.trim() || target?.testID?.trim() || target?.id?.trim();
|
|
117339
|
-
return name3 ? name3.replace(/\s+/g, " ") : null;
|
|
117340
|
-
}
|
|
117341
117353
|
function verb(action, target) {
|
|
117342
117354
|
return target ? `${action} ${target}` : action;
|
|
117343
117355
|
}
|
|
117344
117356
|
function describeStep(step) {
|
|
117345
117357
|
switch (step.type) {
|
|
117346
117358
|
case "tap":
|
|
117347
|
-
return verb("Tapping",
|
|
117359
|
+
return verb("Tapping", agentActionTargetName(step.target));
|
|
117348
117360
|
case "tapId":
|
|
117349
117361
|
return verb("Tapping", step.id);
|
|
117350
117362
|
case "doubleTap":
|
|
117351
117363
|
return "Double tapping";
|
|
117352
117364
|
case "longPress":
|
|
117353
|
-
return verb("Long pressing",
|
|
117365
|
+
return verb("Long pressing", agentActionTargetName(step.target));
|
|
117354
117366
|
case "drag":
|
|
117355
117367
|
return "Dragging";
|
|
117356
117368
|
case "pinch":
|
|
@@ -117393,9 +117405,9 @@ function describeStep(step) {
|
|
|
117393
117405
|
function describeCommand(command) {
|
|
117394
117406
|
switch (command.type) {
|
|
117395
117407
|
case "tap":
|
|
117396
|
-
return verb("Tapping",
|
|
117408
|
+
return verb("Tapping", agentActionTargetName(command.target));
|
|
117397
117409
|
case "longPress":
|
|
117398
|
-
return verb("Long pressing",
|
|
117410
|
+
return verb("Long pressing", agentActionTargetName(command.target));
|
|
117399
117411
|
case "keyboard":
|
|
117400
117412
|
return command.action === "dismiss" ? "Dismissing the keyboard" : command.action === "press" || command.action === "dispatchKey" ? "Pressing a key" : "Typing";
|
|
117401
117413
|
case "screenshot":
|
|
@@ -117410,6 +117422,9 @@ function describeCommand(command) {
|
|
|
117410
117422
|
return null;
|
|
117411
117423
|
}
|
|
117412
117424
|
}
|
|
117425
|
+
function cliAgentName(identityKey) {
|
|
117426
|
+
return readAgentId() ?? (process.env.PEACH_AGENT_ID?.trim() || formatLockOwner(identityKey));
|
|
117427
|
+
}
|
|
117413
117428
|
function commandAgent(command) {
|
|
117414
117429
|
const step = describeCommand(command);
|
|
117415
117430
|
if (!step) return void 0;
|
|
@@ -117419,9 +117434,7 @@ function commandAgent(command) {
|
|
|
117419
117434
|
if (!machine) return void 0;
|
|
117420
117435
|
return {
|
|
117421
117436
|
id: clip(identity2.key),
|
|
117422
|
-
name: clip(
|
|
117423
|
-
readAgentId() ?? (process.env.PEACH_AGENT_ID?.trim() || formatLockOwner(identity2.key))
|
|
117424
|
-
),
|
|
117437
|
+
name: clip(cliAgentName(identity2.key)),
|
|
117425
117438
|
machine: clip(machine),
|
|
117426
117439
|
step: clip(step)
|
|
117427
117440
|
};
|
|
@@ -122131,6 +122144,13 @@ var init_timelineBridgeContract = __esm({
|
|
|
122131
122144
|
}
|
|
122132
122145
|
});
|
|
122133
122146
|
|
|
122147
|
+
// ../peach-globals/src/canvasAgentContract.ts
|
|
122148
|
+
var init_canvasAgentContract = __esm({
|
|
122149
|
+
"../peach-globals/src/canvasAgentContract.ts"() {
|
|
122150
|
+
"use strict";
|
|
122151
|
+
}
|
|
122152
|
+
});
|
|
122153
|
+
|
|
122134
122154
|
// ../peach-globals/src/index.ts
|
|
122135
122155
|
var init_src2 = __esm({
|
|
122136
122156
|
"../peach-globals/src/index.ts"() {
|
|
@@ -122146,6 +122166,7 @@ var init_src2 = __esm({
|
|
|
122146
122166
|
init_captureBridgeContract();
|
|
122147
122167
|
init_timelineBridgeContract();
|
|
122148
122168
|
init_replayBridgeContract();
|
|
122169
|
+
init_canvasAgentContract();
|
|
122149
122170
|
}
|
|
122150
122171
|
});
|
|
122151
122172
|
|
|
@@ -145211,16 +145232,16 @@ async function readKotlinApp(moduleArg, options) {
|
|
|
145211
145232
|
const name3 = element.attributes[`${ANDROID_NS}name`];
|
|
145212
145233
|
if (!name3) throw new Error(`${manifestFile}: <${element.name}> has no android:name`);
|
|
145213
145234
|
if (element.name === "activity") return className2(name3);
|
|
145214
|
-
const
|
|
145235
|
+
const targetName = element.attributes[`${ANDROID_NS}targetActivity`];
|
|
145215
145236
|
const activity = activities.find(
|
|
145216
|
-
(candidate) => className2(candidate.attributes[`${ANDROID_NS}name`] ?? "") === className2(
|
|
145237
|
+
(candidate) => className2(candidate.attributes[`${ANDROID_NS}name`] ?? "") === className2(targetName ?? "")
|
|
145217
145238
|
);
|
|
145218
|
-
if (!
|
|
145239
|
+
if (!targetName || !activity)
|
|
145219
145240
|
throw new Error(
|
|
145220
145241
|
`${manifestFile}: activity-alias ${name3} targets no declared activity`
|
|
145221
145242
|
);
|
|
145222
145243
|
if (!enabled(activity)) return null;
|
|
145223
|
-
return className2(
|
|
145244
|
+
return className2(targetName);
|
|
145224
145245
|
};
|
|
145225
145246
|
const applicationEnabled = enabled(application);
|
|
145226
145247
|
let chosen;
|