peachsim 0.1.2569 → 0.1.2571
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/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 +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +84 -15
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-GX23OCPZ.mjs → acorn-5M5MV3CK.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-7YWKCVEU.mjs → chunk-2GWCBQHJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ESH5LJOH.mjs → chunk-3BB63S7D.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GV67FFM6.mjs → chunk-3XDXN5YJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JABXIJTY.mjs → chunk-3YVRUNIC.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-GAEDNJAS.mjs → chunk-46JMMAV6.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-GT3ADYH4.mjs → chunk-5ZEP3VDJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BJJ5YZB6.mjs → chunk-ADYHQRDA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BBG63EGL.mjs → chunk-BTJFDORP.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-UEUASU5U.mjs → chunk-DJWPSOF7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VUIHHG2L.mjs → chunk-ENORGRIV.mjs} +68 -19
- package/dist-lib/esm-chunks/{chunk-QBUIEC3Q.mjs → chunk-FTVQYYHS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6LJ5E7DT.mjs → chunk-IAIMLYKR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RSK7YOQW.mjs → chunk-KDLBPYUA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CU2BGZX6.mjs → chunk-P5XF6BQI.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-EHCUOL6F.mjs → chunk-SQLRBUNW.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-EPUMB2XB.mjs → chunk-UNMLURNR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FEC6H5QL.mjs → chunk-V2HUCZUV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QNQSRP6K.mjs → chunk-WMD5EHVS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KE7VRNGK.mjs → chunk-XFIJIZCQ.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-TW5TQVFF.mjs → chunk-YNK2HQJ5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NQBE6OUN.mjs → chunk-Z2CY33T5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-AVHLCUS5.mjs → chunk-ZUIVYHSD.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-IMUYCZFS.mjs → metro-layout-parser-2GOJN7K7.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-RH6SSCXW.mjs → swift-package-prebuilt-OKF5UMUJ.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-C5ADG7WT.mjs → swift-sdk-app-module-YNWZ6RNK.mjs} +14 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-CRWKDNXU.mjs → swift-sdk-image-3TSN37C2.mjs} +14 -14
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-WBUYIGYR.mjs → swift-sdk-image-producer-D5F2QTHJ.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +83 -14
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +84 -15
- package/dist-lib/host/fetch-proxy-handler.cjs +25 -5
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +16 -16
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +81 -81
- package/dist-lib/public-origins-lib.json +69 -69
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- 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 +8 -8
- package/dist-lib/skills.cjs +84 -15
- package/dist-lib/swift-compile.cjs +57 -8
- package/dist-lib/swift-compile.mjs +10 -10
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-globals/src/frameBreakdownContract.d.ts +1 -1
- package/package.json +1 -1
- package/src/swift-compile.ts +61 -14
- package/src/swift-objc-compile.ts +25 -5
- package/src/swiftContract.ts +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const FRAME_PRESENTATION_REQUEST_KEY = "presentation";
|
|
2
|
-
export declare const FRAME_WORK: readonly ['react commit', 'tenant frame', 'worklet call', 'sync wait', 'javascript frame', 'native frame', 'object-path handback', 'layout', 'paint', 'record', 'submit', 'submit-to-done bound', 'pipeline creation', 'raster miss', 'glyph build', 'mask build', 'javascript task', 'frame request', 'ui frame', 'ui pose', 'ui frame wait'];
|
|
2
|
+
export declare const FRAME_WORK: readonly ['react commit', 'tenant frame', 'worklet call', 'sync wait', 'javascript frame', 'native frame', 'object-path handback', 'layout', 'paint', 'record', 'submit', 'submit-to-done bound', 'pipeline creation', 'raster miss', 'glyph build', 'mask build', 'javascript task', 'frame request', 'ui frame', 'ui pose', 'ui frame wait', 'direct native commit'];
|
|
3
3
|
export type FrameWork = (typeof FRAME_WORK)[number];
|
|
4
4
|
export type FrameRealm = 'page' | 'tenant' | 'ui' | 'compositor';
|
|
5
5
|
export type FrameWorkSpan = {
|
package/package.json
CHANGED
package/src/swift-compile.ts
CHANGED
|
@@ -6943,12 +6943,53 @@ export function writeSwiftProject(
|
|
|
6943
6943
|
const remainingNativeBuildTargets = nativeBuildTargets.filter(
|
|
6944
6944
|
(name) => !nativePrerequisiteSet.has(name),
|
|
6945
6945
|
)
|
|
6946
|
-
const
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6946
|
+
const nativeTargetUnitCount = new Map<string, number>()
|
|
6947
|
+
for (const target of manifestTargets)
|
|
6948
|
+
if (target.sources?.length)
|
|
6949
|
+
nativeTargetUnitCount.set(target.name, target.sources.length)
|
|
6950
|
+
for (const [name, plan] of native) {
|
|
6951
|
+
if (!plan.mixed && plan.sources.length > 0)
|
|
6952
|
+
nativeTargetUnitCount.set(name, plan.clang?.sources.length ?? plan.sources.length)
|
|
6953
|
+
for (const group of plan.groups ?? [])
|
|
6954
|
+
nativeTargetUnitCount.set(group.name, group.sources.length)
|
|
6955
|
+
if (plan.late && !plan.groups?.length)
|
|
6956
|
+
nativeTargetUnitCount.set(plan.late.name, plan.sources.length)
|
|
6957
|
+
}
|
|
6958
|
+
// bound each native product stage so llbuild commits build.db every few hundred
|
|
6959
|
+
// translation units instead of rolling back a whole multi-target native pass on timeout.
|
|
6960
|
+
const MAX_NATIVE_STAGE_UNITS = 250
|
|
6961
|
+
const chunkNativeStageTargets = (prefix: string, names: string[]): string[] => {
|
|
6962
|
+
if (names.length === 0) return []
|
|
6963
|
+
const total = names.reduce(
|
|
6964
|
+
(sum, name) => sum + Math.max(1, nativeTargetUnitCount.get(name) ?? 1),
|
|
6965
|
+
0,
|
|
6966
|
+
)
|
|
6967
|
+
if (names.length === 1 || total <= MAX_NATIVE_STAGE_UNITS)
|
|
6968
|
+
return [buildProduct(prefix, names)]
|
|
6969
|
+
const chunks: string[][] = []
|
|
6970
|
+
let current: string[] = []
|
|
6971
|
+
let count = 0
|
|
6972
|
+
for (const name of names) {
|
|
6973
|
+
const size = Math.max(1, nativeTargetUnitCount.get(name) ?? 1)
|
|
6974
|
+
if (current.length > 0 && count + size > MAX_NATIVE_STAGE_UNITS) {
|
|
6975
|
+
chunks.push(current)
|
|
6976
|
+
current = []
|
|
6977
|
+
count = 0
|
|
6978
|
+
}
|
|
6979
|
+
current.push(name)
|
|
6980
|
+
count += size
|
|
6981
|
+
}
|
|
6982
|
+
if (current.length > 0) chunks.push(current)
|
|
6983
|
+
return chunks.map((members, index) => buildProduct(`${prefix}${index + 1}`, members))
|
|
6984
|
+
}
|
|
6985
|
+
const nativePrerequisiteStageTargets = chunkNativeStageTargets(
|
|
6986
|
+
'PeachHeaderNativePrereqs',
|
|
6987
|
+
nativePrerequisiteTargets,
|
|
6988
|
+
)
|
|
6989
|
+
const nativeProductStageTargets = chunkNativeStageTargets(
|
|
6990
|
+
'PeachNativeProducts',
|
|
6991
|
+
remainingNativeBuildTargets,
|
|
6992
|
+
)
|
|
6952
6993
|
files.set(manifestPath, manifest)
|
|
6953
6994
|
syncSwiftTree(layout.root, files)
|
|
6954
6995
|
// a header-only clang module compiles nothing, and swiftpm still needs its directory
|
|
@@ -6960,10 +7001,14 @@ export function writeSwiftProject(
|
|
|
6960
7001
|
if (files.has(clangWrapper) && (statSync(clangWrapper).mode & 0o7777) !== 0o755)
|
|
6961
7002
|
chmodSync(clangWrapper, 0o755)
|
|
6962
7003
|
return {
|
|
6963
|
-
|
|
7004
|
+
...(nativePrerequisiteStageTargets.length
|
|
7005
|
+
? { nativePrerequisiteTargets: nativePrerequisiteStageTargets }
|
|
7006
|
+
: {}),
|
|
6964
7007
|
headerBuilds,
|
|
6965
7008
|
nativeHeaderDeclarations,
|
|
6966
|
-
|
|
7009
|
+
...(nativeProductStageTargets.length
|
|
7010
|
+
? { nativeProductTargets: nativeProductStageTargets }
|
|
7011
|
+
: {}),
|
|
6967
7012
|
targetFailures,
|
|
6968
7013
|
generatedOwners,
|
|
6969
7014
|
targetToolset,
|
|
@@ -8743,13 +8788,15 @@ async function compileSwiftProjectOnce(
|
|
|
8743
8788
|
// swiftpm's transitive swift module maps are not C declarations:
|
|
8744
8789
|
// importing them would shadow SDK modules such as ObjectiveC.
|
|
8745
8790
|
const stages = [
|
|
8746
|
-
...(preparation.
|
|
8747
|
-
|
|
8748
|
-
: []
|
|
8791
|
+
...(preparation.nativePrerequisiteTargets ?? []).map((target) => ({
|
|
8792
|
+
target,
|
|
8793
|
+
producers: [],
|
|
8794
|
+
})),
|
|
8749
8795
|
...preparation.headerBuilds,
|
|
8750
|
-
...(preparation.
|
|
8751
|
-
|
|
8752
|
-
: []
|
|
8796
|
+
...(preparation.nativeProductTargets ?? []).map((target) => ({
|
|
8797
|
+
target,
|
|
8798
|
+
producers: [],
|
|
8799
|
+
})),
|
|
8753
8800
|
]
|
|
8754
8801
|
const checkpoints = path.join(root, '.build', 'peach-product-checkpoints')
|
|
8755
8802
|
for (const { target, producers } of stages) {
|
|
@@ -296,6 +296,28 @@ function installedPackageDirs(root: string): string[] {
|
|
|
296
296
|
return dirs.filter((directory) => relativeInside(root, directory) === null)
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
+
const webrtcUnknownArchitecture =
|
|
300
|
+
'#else\n#error Please add support for your architecture in rtc_base/system/arch.h'
|
|
301
|
+
const wasm64HeaderDerivations = new Map([
|
|
302
|
+
['utils.h', DOUBLE_CONVERSION_WASM64_BACKPORT],
|
|
303
|
+
[
|
|
304
|
+
'arch.h',
|
|
305
|
+
{
|
|
306
|
+
// same wasm64 target gate as sdk-patches/webrtc/0001-src-wasm64-arch.patch.
|
|
307
|
+
upstreamCommit: '6513c71d6c80311d69a0a6b9c09fcf32cfbeb247',
|
|
308
|
+
originalSha256: 'f2d0b0dc7b01b6b91b8159495850d84afbcfb3134859dbcac60cd96823699cf0',
|
|
309
|
+
derivedSha256: '4d412be1f1c8861e81d2d5638eed8685adc581c5289123a8de63d01cb21aabf9',
|
|
310
|
+
before: webrtcUnknownArchitecture,
|
|
311
|
+
after: [
|
|
312
|
+
'#elif defined(__wasm64__)',
|
|
313
|
+
'#define WEBRTC_ARCH_64_BITS',
|
|
314
|
+
'#define WEBRTC_ARCH_LITTLE_ENDIAN',
|
|
315
|
+
webrtcUnknownArchitecture,
|
|
316
|
+
].join('\n'),
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
])
|
|
320
|
+
|
|
299
321
|
function* xcodeObjCInputSteps(
|
|
300
322
|
app: XcodeAppTarget,
|
|
301
323
|
binaries: readonly SwiftPackageBinary[],
|
|
@@ -360,11 +382,9 @@ function* xcodeObjCInputSteps(
|
|
|
360
382
|
resolved,
|
|
361
383
|
Infinity,
|
|
362
384
|
)
|
|
363
|
-
|
|
364
|
-
// its exact original bytes; the file on disk stays unchanged.
|
|
365
|
-
const backport = DOUBLE_CONVERSION_WASM64_BACKPORT
|
|
385
|
+
const backport = wasm64HeaderDerivations.get(path.basename(file))
|
|
366
386
|
if (
|
|
367
|
-
|
|
387
|
+
!backport ||
|
|
368
388
|
createHash('sha256').update(bytes).digest('hex') !== backport.originalSha256
|
|
369
389
|
) {
|
|
370
390
|
sources.set(file, bytes)
|
|
@@ -374,7 +394,7 @@ function* xcodeObjCInputSteps(
|
|
|
374
394
|
bytes.toString('utf8').replace(backport.before, backport.after),
|
|
375
395
|
)
|
|
376
396
|
if (createHash('sha256').update(derived).digest('hex') !== backport.derivedSha256)
|
|
377
|
-
throw new Error(`
|
|
397
|
+
throw new Error(`Native header derivation differs: ${file}`)
|
|
378
398
|
sources.set(file, derived)
|
|
379
399
|
derivations[file] = {
|
|
380
400
|
upstreamCommit: backport.upstreamCommit,
|
package/src/swiftContract.ts
CHANGED
|
@@ -216,12 +216,12 @@ export function isSwiftHeaderAliases(value: unknown): value is SwiftHeaderAliase
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
export interface SwiftProjectPreparation {
|
|
219
|
-
/** pure-clang
|
|
220
|
-
|
|
219
|
+
/** pure-clang prerequisite stages of header producers that commit objects before Swift builds. */
|
|
220
|
+
nativePrerequisiteTargets?: string[]
|
|
221
221
|
/** dependency-ordered stages; independent producers share one SwiftPM build. */
|
|
222
222
|
headerBuilds: { target: string; producers: string[] }[]
|
|
223
|
-
/**
|
|
224
|
-
|
|
223
|
+
/** checkpointed native product stages that commit object records before the app build. */
|
|
224
|
+
nativeProductTargets?: string[]
|
|
225
225
|
/** original binary C and Objective-C declarations retained beside a local Swift surface. */
|
|
226
226
|
nativeHeaderDeclarations: Record<string, string[]>
|
|
227
227
|
/** targets that could not be prepared; the rest still build. */
|