peachsim 0.1.2179 → 0.1.2182
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/package.ts +7 -2
- package/cli/commands/shell-url.ts +28 -22
- 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 +225 -85
- 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 +140 -48
- 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 +201 -82
- 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 +4 -4
- 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 +11 -3
- 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 +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 +239 -176
- package/dist-lib/swift-compile.cjs +85 -16
- package/dist-lib/swift-compile.mjs +85 -16
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +87 -18
- 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/cli-companion.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/ios/frame-art.d.ts +41 -0
- package/dist-types/packages/peach-engine/src/ios/frame-paint.d.ts +43 -0
- package/dist-types/packages/peach-engine/src/ios/frame-svg.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/map-command-channel.d.ts +14 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +8 -25
- package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +26 -0
- package/src/expo-native-workspace.ts +17 -20
- package/src/expo-swift-bundle.ts +6 -1
- package/src/expo-swift-host.ts +35 -6
- package/src/expo-widgets-bundle.ts +12 -8
- package/src/expoSwiftContract.ts +3 -0
- package/src/kotlin-host.ts +10 -2
- package/src/native-bundles.ts +30 -10
- package/src/one-sdk/source.ts +10 -4
- package/src/one-sdk-bundle.ts +57 -24
- package/src/screenshots/frame-compose.ts +14 -109
- package/src/swift-compile.ts +105 -13
- package/src/swift-submit.ts +2 -1
- package/src/wasm-optimize.ts +13 -4
package/cli/commands/package.ts
CHANGED
|
@@ -504,6 +504,11 @@ export async function runPackage(args: string[]): Promise<void> {
|
|
|
504
504
|
JSON.stringify(packaged),
|
|
505
505
|
)
|
|
506
506
|
}
|
|
507
|
+
// footers (the native asset catalog among them) name release files by
|
|
508
|
+
// absolute url; the release server is gone once the package launches
|
|
509
|
+
const releaseBase = new URL('.', channel.bundleUrl).href
|
|
510
|
+
for (const [, url] of source.matchAll(/"(https?:\/\/[^"\\\s]+)"/g))
|
|
511
|
+
if (url?.startsWith(releaseBase)) resources.add(url)
|
|
507
512
|
for (const url of resources) {
|
|
508
513
|
const asset = await fetch(url)
|
|
509
514
|
if (!asset.ok) throw new Error(`native app resource: HTTP ${asset.status}`)
|
|
@@ -530,8 +535,8 @@ export async function runPackage(args: string[]): Promise<void> {
|
|
|
530
535
|
fs.writeFileSync(icon, Buffer.from(await artwork.arrayBuffer()))
|
|
531
536
|
}
|
|
532
537
|
launchUrl = await routeBundle('/__peach/app.js', await prepareBundle(source))
|
|
533
|
-
//
|
|
534
|
-
//
|
|
538
|
+
// the project's ios catalog travels with the launch, its images
|
|
539
|
+
// routed below
|
|
535
540
|
const catalog = configuredProject
|
|
536
541
|
? await discoverAppCatalog(configuredProject.appDir, origin)
|
|
537
542
|
: null
|
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
readInstalledNativePackageVersions,
|
|
31
31
|
readInstalledPackageVersions,
|
|
32
32
|
} from '../../src/installed-package-versions'
|
|
33
|
+
import { LAUNCH_METADATA_QUERY_PARAM } from '../../src/launchMetadataContract'
|
|
33
34
|
import { resolveMetroProjectRoot } from '../../src/metro-project-root'
|
|
34
35
|
import {
|
|
35
36
|
canExtractNativeAppIdentity,
|
|
@@ -731,6 +732,21 @@ export async function buildShellUrl(
|
|
|
731
732
|
opts: BuildShellUrlOptions = {},
|
|
732
733
|
): Promise<string> {
|
|
733
734
|
const resolved = await resolveShellUrl(target, baseUrl, opts)
|
|
735
|
+
const supplied = new URL(resolved)
|
|
736
|
+
if (
|
|
737
|
+
!opts.project &&
|
|
738
|
+
looksLikeSootsimUrl(target) &&
|
|
739
|
+
[
|
|
740
|
+
LAUNCH_METADATA_QUERY_PARAM,
|
|
741
|
+
'oneSDK',
|
|
742
|
+
'expoSwift',
|
|
743
|
+
'expoWidgets',
|
|
744
|
+
'nitro',
|
|
745
|
+
'turbo',
|
|
746
|
+
'expoKotlin',
|
|
747
|
+
].some((key) => supplied.searchParams.has(key))
|
|
748
|
+
)
|
|
749
|
+
return applyShellLaunchOptions(supplied, opts).toString()
|
|
734
750
|
// callers that hand us a bare port or url (the flow/maestro runner, the
|
|
735
751
|
// electron companion) have no project to pass. derive it from the bundle
|
|
736
752
|
// metro advertises so those paths get the same UIAppFonts and splash
|
|
@@ -882,9 +898,6 @@ export async function buildShellUrl(
|
|
|
882
898
|
: null
|
|
883
899
|
if (manifest) expoStamped.searchParams.set('appManifest', manifest)
|
|
884
900
|
}
|
|
885
|
-
if (opts.bundleOriginOverride)
|
|
886
|
-
expoStamped.searchParams.set('bundleOriginOverride', opts.bundleOriginOverride)
|
|
887
|
-
if (opts.hostDriver) expoStamped.searchParams.set('peachHostDriver', opts.hostDriver)
|
|
888
901
|
if (expoRoot && !opts.offline) {
|
|
889
902
|
if (packageVersions?.['expo-widgets'])
|
|
890
903
|
expoStamped.searchParams.set(
|
|
@@ -919,24 +932,17 @@ export async function buildShellUrl(
|
|
|
919
932
|
`${nativeAssetOrigin}/__peach/expo-kotlin?root=${encodeURIComponent(expoRoot)}`,
|
|
920
933
|
)
|
|
921
934
|
}
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
!opts.args?.length &&
|
|
934
|
-
!opts.dotEnv
|
|
935
|
-
)
|
|
936
|
-
return opts.offline
|
|
937
|
-
? expoStamped.toString()
|
|
938
|
-
: stageHostLaunchMetadata(expoStamped, nativeAssetOrigin)
|
|
939
|
-
const url = expoStamped
|
|
935
|
+
const url = applyShellLaunchOptions(expoStamped, opts)
|
|
936
|
+
return opts.offline ? url.toString() : stageHostLaunchMetadata(url, nativeAssetOrigin)
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
function applyShellLaunchOptions(url: URL, opts: BuildShellUrlOptions): URL {
|
|
940
|
+
const bundle = url.searchParams.get('bundle')
|
|
941
|
+
if (bundle && opts.hot !== undefined)
|
|
942
|
+
url.searchParams.set('bundle', applyHotMode(bundle, opts.hot))
|
|
943
|
+
if (opts.bundleOriginOverride)
|
|
944
|
+
url.searchParams.set('bundleOriginOverride', opts.bundleOriginOverride)
|
|
945
|
+
if (opts.hostDriver) url.searchParams.set('peachHostDriver', opts.hostDriver)
|
|
940
946
|
if (opts.dotEnv) url.searchParams.set('dotEnv', JSON.stringify(opts.dotEnv))
|
|
941
947
|
if (opts.device) url.searchParams.set('device', opts.device)
|
|
942
948
|
if (opts.posture) url.searchParams.set('posture', opts.posture)
|
|
@@ -956,5 +962,5 @@ export async function buildShellUrl(
|
|
|
956
962
|
if (opts.ephemeral) url.searchParams.set('ephemeral', '1')
|
|
957
963
|
for (const entry of opts.env ?? []) url.searchParams.append('env', entry)
|
|
958
964
|
for (const entry of opts.args ?? []) url.searchParams.append('arg', entry)
|
|
959
|
-
return
|
|
965
|
+
return url
|
|
960
966
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2182 | (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.2182 | (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.2182 | (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.2182 | (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.2182 | (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.2182 | (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.2182 | (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.2182 | (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.2182 | (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;
|