peachsim 0.1.1902 → 0.1.1904
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/commands/record.ts +78 -43
- 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 +25 -20
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +2 -1
- package/dist-lib/cloud-contract.mjs +2 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +2 -1
- package/dist-lib/cloud.mjs +2 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +2 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +24 -19
- 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 +26 -20
- 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 +3 -2
- 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 +2 -2
- 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 +53 -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 +26 -20
- package/dist-lib/swift-compile.cjs +22 -17
- package/dist-lib/swift-compile.mjs +22 -17
- 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 +23 -18
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +1 -0
- package/package.json +1 -1
- package/sdk/ios/usr/include/darwin.modulemap +430 -0
- package/sdk/ios/usr/include/module.modulemap +1 -0
- package/src/bridge-contract.ts +25 -0
- package/src/cloud-contract.ts +1 -0
- package/src/swift-compile.ts +13 -13
- package/src/swift-shared-sdk.ts +12 -7
package/cli/commands/record.ts
CHANGED
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
parseBridgeCliArgs,
|
|
29
29
|
type WsBridge,
|
|
30
30
|
} from '../ws-bridge'
|
|
31
|
+
import type { RecorderCommand, WsBridgeCommand } from '../../src/bridge-contract'
|
|
31
32
|
import type { PreviewCaptureKind } from '@peach/globals'
|
|
32
33
|
|
|
33
34
|
interface RecordOptions {
|
|
@@ -83,7 +84,7 @@ const CAPTURE_STEP_ENCODE_BUDGET_MS = 30_000
|
|
|
83
84
|
// connection before the encode/flush step could use it.
|
|
84
85
|
async function holdCapture(bridge: WsBridge, durationMs: number) {
|
|
85
86
|
await bridge.send(
|
|
86
|
-
{ type: '
|
|
87
|
+
{ type: 'recorder', recorder: { method: 'hold', durationMs } },
|
|
87
88
|
{ timeoutMs: durationMs + CAPTURE_STEP_ENCODE_BUDGET_MS },
|
|
88
89
|
)
|
|
89
90
|
}
|
|
@@ -102,13 +103,13 @@ function captureStepTimeoutMs(
|
|
|
102
103
|
|
|
103
104
|
async function evalCaptureStep<T>(
|
|
104
105
|
bridge: WsBridge,
|
|
105
|
-
|
|
106
|
+
recorder: RecorderCommand,
|
|
106
107
|
step: string,
|
|
107
108
|
durationMs: number,
|
|
108
109
|
timeoutMs: number,
|
|
109
110
|
): Promise<T> {
|
|
110
111
|
try {
|
|
111
|
-
return (await bridge.send({ type: '
|
|
112
|
+
return (await bridge.send({ type: 'recorder', recorder }, { timeoutMs })) as T
|
|
112
113
|
} catch (err) {
|
|
113
114
|
const msg = err instanceof Error ? err.message : String(err)
|
|
114
115
|
if (/^command timed out after \d+(?:\.\d+)?s$/.test(msg)) {
|
|
@@ -489,10 +490,11 @@ export async function runRecord(args: string[], opts: RecordOptions) {
|
|
|
489
490
|
console.log(` sampling ${count} frames over ${durationSec}s → ${outDir}`)
|
|
490
491
|
const start: { ok: boolean; requestId?: number; error?: string } =
|
|
491
492
|
await bridge.send({
|
|
492
|
-
type: '
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
493
|
+
type: 'recorder',
|
|
494
|
+
recorder: {
|
|
495
|
+
method: 'startFrameCapture',
|
|
496
|
+
options: { count, durationMs, ...(layers ? { layers } : {}) },
|
|
497
|
+
},
|
|
496
498
|
})
|
|
497
499
|
if (!start.ok || !start.requestId) {
|
|
498
500
|
console.error(` frame capture start failed: ${start.error ?? 'unknown error'}`)
|
|
@@ -512,8 +514,12 @@ export async function runRecord(args: string[], opts: RecordOptions) {
|
|
|
512
514
|
frames?: Array<{ data: string; size: number }>
|
|
513
515
|
error?: string
|
|
514
516
|
} | null = await bridge.send({
|
|
515
|
-
type: '
|
|
516
|
-
|
|
517
|
+
type: 'recorder',
|
|
518
|
+
recorder: {
|
|
519
|
+
method: 'getFrameCaptureResult',
|
|
520
|
+
requestId: start.requestId,
|
|
521
|
+
options: { offset: saved, limit: FRAMES_PER_PAGE },
|
|
522
|
+
},
|
|
517
523
|
})
|
|
518
524
|
if (!result) {
|
|
519
525
|
console.error(' frame capture result missing')
|
|
@@ -549,9 +555,15 @@ export async function runRecord(args: string[], opts: RecordOptions) {
|
|
|
549
555
|
console.log(` encoding gif: ${count} frames over ${durationSec}s → ${out}`)
|
|
550
556
|
const result: { data: string; size: number } | null = await evalCaptureStep(
|
|
551
557
|
bridge,
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
558
|
+
{
|
|
559
|
+
method: 'captureGif',
|
|
560
|
+
options: {
|
|
561
|
+
frames: count,
|
|
562
|
+
durationMs,
|
|
563
|
+
...(maxWidth ? { maxWidth } : {}),
|
|
564
|
+
...(layers ? { layers } : {}),
|
|
565
|
+
},
|
|
566
|
+
},
|
|
555
567
|
'gif encode',
|
|
556
568
|
durationMs,
|
|
557
569
|
captureStepTimeoutMs(parsed, durationMs, true),
|
|
@@ -574,9 +586,9 @@ export async function runRecord(args: string[], opts: RecordOptions) {
|
|
|
574
586
|
mkdirSync(dirname(out), { recursive: true })
|
|
575
587
|
|
|
576
588
|
const startOpts: {
|
|
577
|
-
format:
|
|
589
|
+
format: 'webm' | 'mp4'
|
|
578
590
|
fps: number
|
|
579
|
-
layers?:
|
|
591
|
+
layers?: 'tenant' | 'shell'
|
|
580
592
|
durationMs: number
|
|
581
593
|
scene: boolean
|
|
582
594
|
} = {
|
|
@@ -591,7 +603,7 @@ export async function runRecord(args: string[], opts: RecordOptions) {
|
|
|
591
603
|
const startResult: { ok: boolean; error?: string; format?: string } =
|
|
592
604
|
await evalCaptureStep(
|
|
593
605
|
bridge,
|
|
594
|
-
|
|
606
|
+
{ method: 'start', options: startOpts },
|
|
595
607
|
`${format} start`,
|
|
596
608
|
durationMs,
|
|
597
609
|
captureStepTimeoutMs(parsed, durationMs, false),
|
|
@@ -626,7 +638,7 @@ export async function runRecord(args: string[], opts: RecordOptions) {
|
|
|
626
638
|
frameCount?: number
|
|
627
639
|
} = await evalCaptureStep(
|
|
628
640
|
bridge,
|
|
629
|
-
|
|
641
|
+
{ method: 'stop' },
|
|
630
642
|
`${format} encode/flush`,
|
|
631
643
|
durationMs,
|
|
632
644
|
captureStepTimeoutMs(parsed, durationMs, false),
|
|
@@ -642,7 +654,13 @@ export async function runRecord(args: string[], opts: RecordOptions) {
|
|
|
642
654
|
}
|
|
643
655
|
|
|
644
656
|
if (startOpts.scene)
|
|
645
|
-
await saveSceneVideo(bridge, out, {
|
|
657
|
+
await saveSceneVideo(bridge, out, {
|
|
658
|
+
fps,
|
|
659
|
+
layers,
|
|
660
|
+
maxWidth,
|
|
661
|
+
format,
|
|
662
|
+
sceneOnly,
|
|
663
|
+
})
|
|
646
664
|
else {
|
|
647
665
|
await downloadBlob(bridge, out)
|
|
648
666
|
console.log(` saved: ${out} (${formatBytes(stopResult.size)})`)
|
|
@@ -657,12 +675,11 @@ export async function runRecord(args: string[], opts: RecordOptions) {
|
|
|
657
675
|
// died. without the short cap the probe stalls the full recording timeout
|
|
658
676
|
// (60s) before failing; cap it at 6s and fail fast with an actionable message.
|
|
659
677
|
const SIM_PROBE_TIMEOUT_MS = 6_000
|
|
660
|
-
async function probeSim(bridge: WsBridge,
|
|
678
|
+
async function probeSim(bridge: WsBridge, command: WsBridgeCommand): Promise<boolean> {
|
|
661
679
|
try {
|
|
662
|
-
return await bridge.send(
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
)
|
|
680
|
+
return await bridge.send(command, {
|
|
681
|
+
defaultTimeoutMs: SIM_PROBE_TIMEOUT_MS,
|
|
682
|
+
})
|
|
666
683
|
} catch (err) {
|
|
667
684
|
const msg = err instanceof Error ? err.message : String(err)
|
|
668
685
|
if (/^command timed out after \d+(?:\.\d+)?s$/.test(msg)) {
|
|
@@ -678,7 +695,10 @@ async function probeSim(bridge: WsBridge, code: string): Promise<boolean> {
|
|
|
678
695
|
}
|
|
679
696
|
|
|
680
697
|
async function assertRecorderAvailable(bridge: WsBridge) {
|
|
681
|
-
const ok = await probeSim(bridge,
|
|
698
|
+
const ok = await probeSim(bridge, {
|
|
699
|
+
type: 'recorder',
|
|
700
|
+
recorder: { method: 'available' },
|
|
701
|
+
})
|
|
682
702
|
if (!ok) {
|
|
683
703
|
console.error(
|
|
684
704
|
' window.__sootsimRecorder missing — is peach engine running in this sim?',
|
|
@@ -721,10 +741,11 @@ async function downloadBlob(bridge: WsBridge, outPath: string) {
|
|
|
721
741
|
done: boolean
|
|
722
742
|
mime: string
|
|
723
743
|
} | null = await bridge.send({
|
|
724
|
-
type: '
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
744
|
+
type: 'recorder',
|
|
745
|
+
recorder: {
|
|
746
|
+
method: 'getBlobBase64',
|
|
747
|
+
options: { offset, chunk: 2 * 1024 * 1024 },
|
|
748
|
+
},
|
|
728
749
|
})
|
|
729
750
|
if (!result) throw new Error('no blob available on recorder')
|
|
730
751
|
chunks.push(Buffer.from(result.data, 'base64'))
|
|
@@ -809,7 +830,10 @@ async function renderStoreScene(
|
|
|
809
830
|
},
|
|
810
831
|
) {
|
|
811
832
|
const requestId: string | null = await bridge.send(
|
|
812
|
-
{
|
|
833
|
+
{
|
|
834
|
+
type: 'evaluate',
|
|
835
|
+
code: 'window.__sootsimRecorder.waitSceneVideoRequest()',
|
|
836
|
+
},
|
|
813
837
|
{ timeoutMs: UPLOAD_TIMEOUT_MS },
|
|
814
838
|
)
|
|
815
839
|
if (!requestId) return
|
|
@@ -833,7 +857,12 @@ async function renderStoreScene(
|
|
|
833
857
|
const output = join(dir, `video.${video.format}`)
|
|
834
858
|
const { renderSceneToVideo } = await import('../scene-video')
|
|
835
859
|
const result = await holdBridgeDuring(bridge, () =>
|
|
836
|
-
renderSceneToVideo({
|
|
860
|
+
renderSceneToVideo({
|
|
861
|
+
scene: Buffer.concat(chunks),
|
|
862
|
+
shellUrl,
|
|
863
|
+
output,
|
|
864
|
+
video,
|
|
865
|
+
}),
|
|
837
866
|
)
|
|
838
867
|
const bytes = readFileSync(output)
|
|
839
868
|
for (let start = 0; start < bytes.length; start += 1024 * 1024) {
|
|
@@ -1230,10 +1259,13 @@ async function probeEngineRecordingState(
|
|
|
1230
1259
|
bridge: WsBridge,
|
|
1231
1260
|
): Promise<EngineRecordingState | null> {
|
|
1232
1261
|
try {
|
|
1233
|
-
const snap: {
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1262
|
+
const snap: {
|
|
1263
|
+
store?: string
|
|
1264
|
+
headless?: string
|
|
1265
|
+
eventRecording?: boolean
|
|
1266
|
+
} | null = await bridge.send({
|
|
1267
|
+
type: 'evaluate',
|
|
1268
|
+
code: `(() => {
|
|
1237
1269
|
const store = window.SootSim?.bridges?.getRecordingState?.();
|
|
1238
1270
|
const headless = window.__sootsimRecorder?.state?.();
|
|
1239
1271
|
const eventRecorder = window.SootSim?.bridges?.eventRecorder ?? window.__sootsimEventRecorder;
|
|
@@ -1243,7 +1275,7 @@ async function probeEngineRecordingState(
|
|
|
1243
1275
|
: false;
|
|
1244
1276
|
return { store: store ? store.state : undefined, headless, eventRecording };
|
|
1245
1277
|
})()`,
|
|
1246
|
-
|
|
1278
|
+
})
|
|
1247
1279
|
if (!snap) return null
|
|
1248
1280
|
if (snap.headless === 'starting') return 'starting'
|
|
1249
1281
|
if (snap.store === 'recording' || snap.headless === 'recording') return 'recording'
|
|
@@ -1407,7 +1439,10 @@ async function recordCancel(args: string[], opts: RecordOptions) {
|
|
|
1407
1439
|
}
|
|
1408
1440
|
return
|
|
1409
1441
|
}
|
|
1410
|
-
const parsed = parseBridgeCliArgs(args, {
|
|
1442
|
+
const parsed = parseBridgeCliArgs(args, {
|
|
1443
|
+
port: opts.port,
|
|
1444
|
+
commandTimeoutMs: 15_000,
|
|
1445
|
+
})
|
|
1411
1446
|
noteSimMismatch(parsed.simId, state)
|
|
1412
1447
|
// the recorder (and its buffered blob) lives in the page of the sim the
|
|
1413
1448
|
// recording was *started* on — `state.simId` wins over the requested
|
|
@@ -1574,10 +1609,10 @@ async function recordStop(args: string[], opts: RecordOptions) {
|
|
|
1574
1609
|
// ─── store-backed recording helpers (live / combined) ─────────────────────
|
|
1575
1610
|
|
|
1576
1611
|
async function assertStoreBridgesAvailable(bridge: WsBridge) {
|
|
1577
|
-
const ok = await probeSim(
|
|
1578
|
-
|
|
1579
|
-
'typeof window.SootSim?.bridges?.startRecording === "function" && typeof window.SootSim?.bridges?.stopRecording === "function"',
|
|
1580
|
-
)
|
|
1612
|
+
const ok = await probeSim(bridge, {
|
|
1613
|
+
type: 'evaluate',
|
|
1614
|
+
code: 'typeof window.SootSim?.bridges?.startRecording === "function" && typeof window.SootSim?.bridges?.stopRecording === "function"',
|
|
1615
|
+
})
|
|
1581
1616
|
if (!ok) {
|
|
1582
1617
|
console.error(
|
|
1583
1618
|
' SootSim.bridges.startRecording missing — is peach engine running in this sim?',
|
|
@@ -1600,15 +1635,15 @@ async function assertStoreBridgesAvailable(bridge: WsBridge) {
|
|
|
1600
1635
|
// ran (QA F19-3). probe the same `__sootsimCaptureBundle` snapshot the upload
|
|
1601
1636
|
// uses, up front, and fail fast with an actionable message instead.
|
|
1602
1637
|
async function assertGuestBundleLoaded(bridge: WsBridge, mode: RecordMode) {
|
|
1603
|
-
const hasBundle = await probeSim(
|
|
1604
|
-
|
|
1605
|
-
`(() => {
|
|
1638
|
+
const hasBundle = await probeSim(bridge, {
|
|
1639
|
+
type: 'evaluate',
|
|
1640
|
+
code: `(() => {
|
|
1606
1641
|
const fn = window.__sootsimCaptureBundle
|
|
1607
1642
|
if (typeof fn !== 'function') return false
|
|
1608
1643
|
const snap = fn()
|
|
1609
1644
|
return !!(snap && snap.bundleUrl)
|
|
1610
1645
|
})()`,
|
|
1611
|
-
)
|
|
1646
|
+
})
|
|
1612
1647
|
if (!hasBundle) {
|
|
1613
1648
|
console.error(
|
|
1614
1649
|
` --mode ${mode} needs a guest app bundle to upload to /preview/<id>,\n` +
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (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;
|
|
@@ -20785,7 +20785,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
20785
20785
|
const overlay = import_node_path28.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "wasm/include");
|
|
20786
20786
|
const overlayFiles = (0, import_node_fs30.readdirSync)(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path28.default.join(entry.parentPath, entry.name)).sort();
|
|
20787
20787
|
const key2 = JSON.stringify([
|
|
20788
|
-
"
|
|
20788
|
+
"v18",
|
|
20789
20789
|
toolchainBin,
|
|
20790
20790
|
sdk,
|
|
20791
20791
|
frameworks,
|
|
@@ -20828,12 +20828,17 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
20828
20828
|
const realRoot = import_node_path28.default.dirname(bundle);
|
|
20829
20829
|
const overrides = new Map([
|
|
20830
20830
|
[import_node_path28.default.join(sysroot, "darwin/System/Library/Frameworks"), frameworks],
|
|
20831
|
-
...[
|
|
20832
|
-
|
|
20833
|
-
|
|
20834
|
-
|
|
20835
|
-
|
|
20836
|
-
|
|
20831
|
+
...[
|
|
20832
|
+
"MacTypes.h",
|
|
20833
|
+
"net/if.h",
|
|
20834
|
+
"notify.h",
|
|
20835
|
+
"notify.modulemap",
|
|
20836
|
+
"module.modulemap",
|
|
20837
|
+
"darwin.modulemap"
|
|
20838
|
+
].map((header) => [
|
|
20839
|
+
import_node_path28.default.join(sysroot, "darwin/usr/include", header),
|
|
20840
|
+
import_node_path28.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "usr/include", header)
|
|
20841
|
+
])
|
|
20837
20842
|
]);
|
|
20838
20843
|
for (const file of overlayFiles) {
|
|
20839
20844
|
overrides.set(
|
|
@@ -28922,9 +28927,9 @@ function emitSwiftPackageManifest(args) {
|
|
|
28922
28927
|
foundationCategoryObjects.map((name3) => `lib/Foundation-${name3}.o`)
|
|
28923
28928
|
);
|
|
28924
28929
|
const roots = swiftObjcRootObjects(distribution.id, moduleRoot, distribution.objects);
|
|
28925
|
-
const eager =
|
|
28930
|
+
const eager = new Set(
|
|
28926
28931
|
objects.filter((object6) => roots.has(object6) || categoryObjects.has(object6))
|
|
28927
|
-
)
|
|
28932
|
+
);
|
|
28928
28933
|
const list2 = [
|
|
28929
28934
|
...[...eager].map(quoted),
|
|
28930
28935
|
"-Wl,--start-lib",
|
|
@@ -31171,8 +31176,7 @@ module ${moduleName2}.Swift {
|
|
|
31171
31176
|
distributionLink: {
|
|
31172
31177
|
path: import_node_path44.default.join(layout2.root, ".peach-distribution-objects.rsp"),
|
|
31173
31178
|
files: files2
|
|
31174
|
-
}
|
|
31175
|
-
lazyDistribution: input.optimize
|
|
31179
|
+
}
|
|
31176
31180
|
} : {},
|
|
31177
31181
|
...prebuilt && frameworkLink ? {
|
|
31178
31182
|
prebuilt: {
|
|
@@ -31792,7 +31796,8 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
31792
31796
|
linked.owners.set(object6, "Foundation");
|
|
31793
31797
|
}
|
|
31794
31798
|
const providerDir = import_node_path44.default.join(scratch2, "darwin-records");
|
|
31795
|
-
|
|
31799
|
+
const providerStamp = import_node_path44.default.join(providerDir, ".complete");
|
|
31800
|
+
if (!(0, import_node_fs46.existsSync)(providerStamp) || (0, import_node_fs46.readFileSync)(providerStamp, "utf8") !== args.frameworkKey) {
|
|
31796
31801
|
(0, import_node_fs46.rmSync)(providerDir, { recursive: true, force: true });
|
|
31797
31802
|
(0, import_node_fs46.mkdirSync)(providerDir);
|
|
31798
31803
|
const sdkPaths2 = swiftSdkPaths(args.moduleRoot, args.toolchainBin);
|
|
@@ -31804,7 +31809,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
31804
31809
|
minimum: darwinRecordsMinimum(),
|
|
31805
31810
|
out: providerDir
|
|
31806
31811
|
});
|
|
31807
|
-
(0, import_node_fs46.writeFileSync)(
|
|
31812
|
+
(0, import_node_fs46.writeFileSync)(providerStamp, args.frameworkKey);
|
|
31808
31813
|
}
|
|
31809
31814
|
const providers = (0, import_node_fs46.readdirSync)(providerDir).filter((file) => file.endsWith(".o")).sort().map((file) => import_node_path44.default.join(providerDir, file));
|
|
31810
31815
|
for (const provider of providers) linked.owners.set(provider, "DarwinRecords");
|
|
@@ -32104,7 +32109,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
32104
32109
|
process.env.LD_LIBRARY_PATH
|
|
32105
32110
|
].filter(Boolean).join(":")
|
|
32106
32111
|
} : {},
|
|
32107
|
-
|
|
32112
|
+
PEACH_DEFER_WASM_LINK: "1"
|
|
32108
32113
|
},
|
|
32109
32114
|
maxBuffer: 64 * 1024 * 1024,
|
|
32110
32115
|
timeout: options.timeoutMs,
|
|
@@ -32331,7 +32336,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
32331
32336
|
);
|
|
32332
32337
|
}
|
|
32333
32338
|
if (options.project) removeProjectLinks(root);
|
|
32334
|
-
if (
|
|
32339
|
+
if (!guestGraph)
|
|
32335
32340
|
pruneSwiftWasmLink(
|
|
32336
32341
|
root,
|
|
32337
32342
|
options.toolchainBin,
|
|
@@ -32545,7 +32550,7 @@ var init_swift_compile = __esm({
|
|
|
32545
32550
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
32546
32551
|
MULTI_MANIFEST_VERSION = 66;
|
|
32547
32552
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
32548
|
-
compilerSourceDigest = true ? "
|
|
32553
|
+
compilerSourceDigest = true ? "71079de71f4a1e7a0657c353087f4acbe4adbc3206addf4cb5fff1ceb7636910" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
32549
32554
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
32550
32555
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
32551
32556
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -38271,7 +38276,7 @@ var init_swift_standin_digest = __esm({
|
|
|
38271
38276
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
38272
38277
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
38273
38278
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
38274
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
38279
|
+
STANDIN_SOURCE_DIGEST = true ? "580db5994503f2975c631297effb0303b577cbf6383a5502509342728318995d" : standinSourceDigest();
|
|
38275
38280
|
}
|
|
38276
38281
|
});
|
|
38277
38282
|
|
|
@@ -38761,7 +38766,7 @@ var init_expo_native_prebuilt = __esm({
|
|
|
38761
38766
|
init_swift_native_pin();
|
|
38762
38767
|
init_xcode_project();
|
|
38763
38768
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
38764
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
38769
|
+
EXPO_NATIVE_COMPILER_DIGEST = true ? "9288eb4631d9a1252c94c4bbf61488c923fafaa02e01f7877e17351221a753d5" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
38765
38770
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
38766
38771
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
38767
38772
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -55918,7 +55923,7 @@ var init_nitro_superset = __esm({
|
|
|
55918
55923
|
init_swift_standin_digest();
|
|
55919
55924
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
55920
55925
|
packageVersion = (root) => JSON.parse((0, import_node_fs86.readFileSync)((0, import_node_path84.join)(root, "package.json"), "utf8")).version;
|
|
55921
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
55926
|
+
NITRO_COMPILER_DIGEST = true ? "1248f428cf35666e713fd65b1f0ac037419c1c119f8ae3ecc6b8242255a7f2c7" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
55922
55927
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
55923
55928
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
55924
55929
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -96,6 +96,7 @@ var RNX_CLOUD_COMMAND_SCOPES = {
|
|
|
96
96
|
focus: "drive",
|
|
97
97
|
flowStatus: "drive",
|
|
98
98
|
reset: "reset",
|
|
99
|
+
recorder: "drive",
|
|
99
100
|
camera: "media",
|
|
100
101
|
location: "media",
|
|
101
102
|
// string evaluation and arbitrary bridge calls are maestro's boundary: the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/cloud-contract.ts
|
|
4
4
|
var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
|
|
@@ -47,6 +47,7 @@ var RNX_CLOUD_COMMAND_SCOPES = {
|
|
|
47
47
|
focus: "drive",
|
|
48
48
|
flowStatus: "drive",
|
|
49
49
|
reset: "reset",
|
|
50
|
+
recorder: "drive",
|
|
50
51
|
camera: "media",
|
|
51
52
|
location: "media",
|
|
52
53
|
// string evaluation and arbitrary bridge calls are maestro's boundary: the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -137,6 +137,7 @@ var RNX_CLOUD_COMMAND_SCOPES = {
|
|
|
137
137
|
focus: "drive",
|
|
138
138
|
flowStatus: "drive",
|
|
139
139
|
reset: "reset",
|
|
140
|
+
recorder: "drive",
|
|
140
141
|
camera: "media",
|
|
141
142
|
location: "media",
|
|
142
143
|
// string evaluation and arbitrary bridge calls are maestro's boundary: the
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -107,6 +107,7 @@ var RNX_CLOUD_COMMAND_SCOPES = {
|
|
|
107
107
|
focus: "drive",
|
|
108
108
|
flowStatus: "drive",
|
|
109
109
|
reset: "reset",
|
|
110
|
+
recorder: "drive",
|
|
110
111
|
camera: "media",
|
|
111
112
|
location: "media",
|
|
112
113
|
// string evaluation and arbitrary bridge calls are maestro's boundary: the
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/config.mjs
CHANGED
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (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;
|
|
@@ -2619,6 +2619,7 @@ var RNX_CLOUD_COMMAND_SCOPES = {
|
|
|
2619
2619
|
focus: "drive",
|
|
2620
2620
|
flowStatus: "drive",
|
|
2621
2621
|
reset: "reset",
|
|
2622
|
+
recorder: "drive",
|
|
2622
2623
|
camera: "media",
|
|
2623
2624
|
location: "media",
|
|
2624
2625
|
// string evaluation and arbitrary bridge calls are maestro's boundary: the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1904 | (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;
|