peachsim 0.1.2277 → 0.1.2296
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/platform.ts +28 -8
- package/cli/commands/shell-url.ts +13 -4
- package/cli/outbound-endpoints.ts +2 -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 +2552 -2481
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +1953 -1881
- 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 +2765 -2694
- package/dist-lib/host/fetch-proxy-handler.cjs +16 -6
- 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 +9865 -7701
- 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 +6699 -4534
- package/dist-lib/native-app-identity-project.cjs +12 -4
- package/dist-lib/native-app-identity-project.mjs +12 -4
- package/dist-lib/native-app-identity.cjs +11 -3
- package/dist-lib/native-app-identity.mjs +11 -3
- 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 +26 -25
- package/dist-lib/public-origins-lib.json +92 -78
- 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 +3468 -3364
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +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 +465 -446
- package/dist-lib/vite.cjs +16 -6
- package/dist-lib/worklet-executable.cjs +421 -118
- package/dist-lib/worklet-executable.mjs +427 -113
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +4 -3
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +14 -15
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +17 -21
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/kernel/kernel.d.ts +69 -0
- package/dist-types/packages/peach-engine/src/kernel/worklet-kernel.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/platform/personality.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/app-load.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/graph-linked-value.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +1 -2
- package/dist-types/packages/peach-engine/src/render-worker/worklet-serialize.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-wire.d.ts +2 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/expo-native-prebuilt.ts +24 -0
- package/src/expo-native-workspace.ts +51 -5
- package/src/metro-plugin.ts +4 -1
- package/src/nitro-adapter.lock.json +265 -265
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-compiler-digest.ts +8 -1
- package/src/swift-distribution.lock.json +8 -8
- package/src/swift-helper.ts +38 -0
- package/src/swift-pdf-raster.ts +7 -33
- package/src/turbo-compile.ts +12 -1
- package/src/turbo-runtime.lock.json +19 -19
- package/src/worklet-executable.ts +4 -1
- package/src/worklet-kernel.ts +370 -0
- package/src/worklets-babel.ts +10 -0
- package/src/xcode-target-members.ts +17 -7
package/cli/commands/platform.ts
CHANGED
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
type DeviceModel,
|
|
16
16
|
type RuntimePlatform,
|
|
17
17
|
} from '../../src/device-catalog.ts'
|
|
18
|
+
import { isRecord } from '../../src/is-record'
|
|
18
19
|
import { rnxPublicBrand } from '../../src/public-brand'
|
|
19
20
|
import { UnsupportedRemoteHostError } from '../cloud-client'
|
|
20
21
|
import { rethrowIfExit } from '../run-rnx'
|
|
@@ -488,6 +489,29 @@ async function runRemoteBox(
|
|
|
488
489
|
if (projectDir && (input.assetsDirectory || input.nativeProjectDir))
|
|
489
490
|
throw new Error('--assets and --native-project apply to a prebuilt bundle')
|
|
490
491
|
const nativeProjectDir = projectDir ?? input.nativeProjectDir
|
|
492
|
+
// the build takes minutes, so whether the account can start a simulator at
|
|
493
|
+
// all is asked before it rather than after
|
|
494
|
+
const { auth, header } = authHeaderOrExit(command)
|
|
495
|
+
const accountId = cloudAccountIdOrExit(auth)
|
|
496
|
+
const apiOrigin = box.cloudBoxApiOrigin(args, auth)
|
|
497
|
+
const covered = await fetch(`${apiOrigin}/api/v1/rnx/sessions`, {
|
|
498
|
+
method: 'POST',
|
|
499
|
+
headers: { authorization: header, 'content-type': 'application/json' },
|
|
500
|
+
body: JSON.stringify({ kind: 'sim', size: 'micro', accountId, preflight: true }),
|
|
501
|
+
signal: AbortSignal.timeout(30_000),
|
|
502
|
+
})
|
|
503
|
+
if (!covered.ok) {
|
|
504
|
+
const body: unknown = await covered.json().catch(() => null)
|
|
505
|
+
const message =
|
|
506
|
+
isRecord(body) && typeof body.message === 'string'
|
|
507
|
+
? body.message
|
|
508
|
+
: `Peach Cloud refused the simulator (${covered.status})`
|
|
509
|
+
throw new Error(
|
|
510
|
+
covered.status === 402
|
|
511
|
+
? `${message}. add credit with \`${rnxPublicBrand.commandName} support fund\` and run it again.`
|
|
512
|
+
: message,
|
|
513
|
+
)
|
|
514
|
+
}
|
|
491
515
|
const buildDir = projectDir && mkdtempSync(join(tmpdir(), 'peach-remote-'))
|
|
492
516
|
let artifact: Awaited<ReturnType<typeof produceCloudBoxArtifact>>
|
|
493
517
|
try {
|
|
@@ -538,10 +562,9 @@ async function runRemoteBox(
|
|
|
538
562
|
await closeBoxOnBootFailure(existingSession, () => awaitBoxBoot(existingSession))
|
|
539
563
|
// grants are short-lived, so a reconnect mints a fresh one rather than
|
|
540
564
|
// reopening whatever url the create printed.
|
|
541
|
-
const signedIn = authHeaderOrExit(command)
|
|
542
565
|
const watchUrl = await shortWatchUrl({
|
|
543
|
-
apiOrigin
|
|
544
|
-
authHeader:
|
|
566
|
+
apiOrigin,
|
|
567
|
+
authHeader: header,
|
|
545
568
|
watchUrl: await closeBoxOnBootFailure(existingSession, () =>
|
|
546
569
|
requestBoxWatchUrl(existingSession),
|
|
547
570
|
),
|
|
@@ -555,9 +578,6 @@ async function runRemoteBox(
|
|
|
555
578
|
}
|
|
556
579
|
}
|
|
557
580
|
|
|
558
|
-
const { auth, header } = authHeaderOrExit(command)
|
|
559
|
-
const accountId = cloudAccountIdOrExit(auth)
|
|
560
|
-
|
|
561
581
|
if (existingSession?.service === 'box') {
|
|
562
582
|
await closeCloudBox(existingSession)
|
|
563
583
|
// the shell takes exactly one update, the new box's below; until then
|
|
@@ -575,7 +595,7 @@ async function runRemoteBox(
|
|
|
575
595
|
name: input.name ?? boxNameForBundle(projectDir ?? input.bundlePath),
|
|
576
596
|
fresh: input.name === null,
|
|
577
597
|
endpoint,
|
|
578
|
-
apiOrigin
|
|
598
|
+
apiOrigin,
|
|
579
599
|
apiKey: header.replace(/^Bearer /, ''),
|
|
580
600
|
accountId,
|
|
581
601
|
})
|
|
@@ -621,7 +641,7 @@ async function runRemoteBox(
|
|
|
621
641
|
// the session is published before the grant is minted, so a grant that never
|
|
622
642
|
// arrives still leaves the box addressable: re-running this command mints it.
|
|
623
643
|
const watchUrl = await shortWatchUrl({
|
|
624
|
-
apiOrigin
|
|
644
|
+
apiOrigin,
|
|
625
645
|
authHeader: header,
|
|
626
646
|
watchUrl: await closeBoxOnBootFailure(session, () => requestBoxWatchUrl(session)),
|
|
627
647
|
})
|
|
@@ -695,12 +695,12 @@ function readOneConfigNativeAppIdentity(appDir: string, platform: 'ios' | 'andro
|
|
|
695
695
|
// identity the Peach Metro plugin reads from the same project. artwork travels
|
|
696
696
|
// in the staged launch metadata body with the rest of the native configuration.
|
|
697
697
|
// `--ios-target` here and the plugin's iosTarget override the default scheme.
|
|
698
|
-
function readProjectNativeAppIdentityWire(
|
|
698
|
+
async function readProjectNativeAppIdentityWire(
|
|
699
699
|
project: ResolvedAppProject,
|
|
700
700
|
platform: 'ios' | 'android',
|
|
701
701
|
iosTarget: string | undefined,
|
|
702
702
|
environment: Record<string, string> | undefined,
|
|
703
|
-
): string | null {
|
|
703
|
+
): Promise<string | null> {
|
|
704
704
|
if (!canExtractNativeAppIdentity(platform)) return null
|
|
705
705
|
try {
|
|
706
706
|
const identity =
|
|
@@ -711,7 +711,11 @@ function readProjectNativeAppIdentityWire(
|
|
|
711
711
|
iosTarget,
|
|
712
712
|
undefined,
|
|
713
713
|
environment,
|
|
714
|
-
) ??
|
|
714
|
+
) ??
|
|
715
|
+
readOneConfigNativeAppIdentity(project.appDir, platform) ??
|
|
716
|
+
(await (
|
|
717
|
+
await import('../../src/expo-native-prebuilt')
|
|
718
|
+
).managedExpoNativeAppIdentity(project.appDir, platform))
|
|
715
719
|
return identity && createNativeAppIdentityHeader(identity)
|
|
716
720
|
} catch (error) {
|
|
717
721
|
if (error instanceof NativeAppTargetSelectionError) return null
|
|
@@ -853,7 +857,12 @@ export async function buildShellUrl(
|
|
|
853
857
|
)
|
|
854
858
|
}
|
|
855
859
|
const nativeAppIdentity = bundle
|
|
856
|
-
? readProjectNativeAppIdentityWire(
|
|
860
|
+
? await readProjectNativeAppIdentityWire(
|
|
861
|
+
project,
|
|
862
|
+
platform,
|
|
863
|
+
opts.iosTarget,
|
|
864
|
+
opts.dotEnv,
|
|
865
|
+
)
|
|
857
866
|
: null
|
|
858
867
|
if (nativeAppIdentity)
|
|
859
868
|
expoStamped.searchParams.set('nativeAppIdentity', nativeAppIdentity)
|
|
@@ -429,6 +429,8 @@ export const DECLARED_OUTBOUND_CALLS: Record<string, OutboundCallDeclaration> =
|
|
|
429
429
|
category: 'contrast_user_action',
|
|
430
430
|
count: 1,
|
|
431
431
|
},
|
|
432
|
+
'packages/peachsim/cli/commands/platform.ts :: fetch :: `${apiOrigin}/api/v1/rnx/sessions`':
|
|
433
|
+
{ category: 'contrast_user_action', count: 1 },
|
|
432
434
|
'packages/peachsim/cli/commands/preview.ts :: fetch :: endpoint': {
|
|
433
435
|
category: 'contrast_user_action',
|
|
434
436
|
count: 2,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2296 | (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.2296 | (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.2296 | (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.2296 | (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.2296 | (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.2296 | (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.2296 | (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.2296 | (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.2296 | (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;
|