peachsim 0.1.1990 → 0.1.1992
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/app-catalog.ts +24 -8
- package/cli/commands/package.ts +1 -20
- package/cli/commands/shell-url.ts +16 -18
- 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 +1265 -1264
- 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 +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +939 -938
- 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 +1392 -1391
- 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 +1 -1
- 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 +1 -1
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +7 -6
- 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 +56 -56
- 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 +1757 -1749
- package/dist-lib/swift-compile.cjs +242 -244
- package/dist-lib/swift-compile.mjs +58 -60
- 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 +734 -736
- 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-engine/src/engine/canvaskit-renderer.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +5 -0
- package/package.json +1 -1
- package/src/expo-native-workspace.ts +14 -7
- package/src/nitro-adapter.lock.json +242 -242
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-distribution.lock.json +23 -60
- package/src/turbo-runtime.lock.json +18 -18
- package/src/wasm-optimize.ts +17 -21
package/cli/app-catalog.ts
CHANGED
|
@@ -5,10 +5,16 @@ import {
|
|
|
5
5
|
enumerateBundleImages,
|
|
6
6
|
enumerateBundleSymbols,
|
|
7
7
|
} from '../../sootsim-swift/src/bundleAssets'
|
|
8
|
+
import {
|
|
9
|
+
declaresNativeDependency,
|
|
10
|
+
prepareExpoNativeProject,
|
|
11
|
+
} from '../src/expo-native-workspace'
|
|
12
|
+
import { stageHostFile } from '../src/host/staged-host-files'
|
|
8
13
|
import {
|
|
9
14
|
ONE_NATIVE_APP_ACCENT_ROUTE,
|
|
10
15
|
parseOneNativeAppAccent,
|
|
11
16
|
} from '../src/one-native-app-accent'
|
|
17
|
+
import { findExpoAppConfig } from './app-project'
|
|
12
18
|
import type { AppCatalog } from '#peach-cli-contract/engine/app-catalog-wire'
|
|
13
19
|
|
|
14
20
|
// the xcode build setting actool turns into the built Info.plist's
|
|
@@ -77,13 +83,24 @@ export function readAssetCatalog(
|
|
|
77
83
|
// the app's asset-catalog colors, images, symbols and declared accent, read off
|
|
78
84
|
// the ios project a prebuild or a bare app keeps on disk: the app target is
|
|
79
85
|
// the folder holding the AppDelegate, the catalogs are its .xcassets, and the
|
|
80
|
-
// accent is what its Info.plist or project build settings name.
|
|
81
|
-
// each picked raster
|
|
82
|
-
// the app
|
|
83
|
-
export function discoverAppCatalog(
|
|
86
|
+
// accent is what its Info.plist or project build settings name. the bridge serves
|
|
87
|
+
// each picked raster from its immutable staged bytes. null when
|
|
88
|
+
// the app declares none of them. managed apps use Expo's generated project.
|
|
89
|
+
export async function discoverAppCatalog(
|
|
84
90
|
appDir: string,
|
|
85
|
-
|
|
86
|
-
): AppCatalog | null {
|
|
91
|
+
assetOrigin: string,
|
|
92
|
+
): Promise<AppCatalog | null> {
|
|
93
|
+
if (!fs.existsSync(path.join(appDir, 'ios')) && findExpoAppConfig(appDir)) {
|
|
94
|
+
const packageJson = readText(path.join(appDir, 'package.json'))
|
|
95
|
+
if (packageJson) {
|
|
96
|
+
const manifest = JSON.parse(packageJson)
|
|
97
|
+
if (
|
|
98
|
+
declaresNativeDependency(manifest, 'expo') ||
|
|
99
|
+
declaresNativeDependency(manifest, 'one')
|
|
100
|
+
)
|
|
101
|
+
appDir = (await prepareExpoNativeProject(appDir)).app
|
|
102
|
+
}
|
|
103
|
+
}
|
|
87
104
|
const iosDir = path.join(appDir, 'ios')
|
|
88
105
|
const target = listDir(iosDir).find(
|
|
89
106
|
(entry) =>
|
|
@@ -104,7 +121,6 @@ export function discoverAppCatalog(
|
|
|
104
121
|
path.relative(targetDir, file).split(path.sep).join(path.posix.sep),
|
|
105
122
|
)
|
|
106
123
|
const readContents = (candidate: string) => readText(path.join(targetDir, candidate))
|
|
107
|
-
const served = path.relative(appDir, targetDir).split(path.sep).join(path.posix.sep)
|
|
108
124
|
const pbxproj = listDir(iosDir).find((entry) => entry.name.endsWith('.xcodeproj'))
|
|
109
125
|
const accentName =
|
|
110
126
|
readText(path.join(targetDir, 'Info.plist'))?.match(PLIST_ACCENT)?.[1] ??
|
|
@@ -125,7 +141,7 @@ export function discoverAppCatalog(
|
|
|
125
141
|
)
|
|
126
142
|
return null
|
|
127
143
|
}
|
|
128
|
-
return
|
|
144
|
+
return stageHostFile(path.join(targetDir, file), assetOrigin)
|
|
129
145
|
},
|
|
130
146
|
accentName,
|
|
131
147
|
)
|
package/cli/commands/package.ts
CHANGED
|
@@ -508,7 +508,7 @@ export async function runPackage(args: string[]): Promise<void> {
|
|
|
508
508
|
// a release bundle carries no asset catalog; the project's ios
|
|
509
509
|
// catalog travels with it, its images routed below
|
|
510
510
|
const catalog = configuredProject
|
|
511
|
-
? discoverAppCatalog(configuredProject.appDir, origin)
|
|
511
|
+
? await discoverAppCatalog(configuredProject.appDir, origin)
|
|
512
512
|
: null
|
|
513
513
|
if (catalog) {
|
|
514
514
|
const url = new URL(launchUrl)
|
|
@@ -621,25 +621,6 @@ export async function runPackage(args: string[]): Promise<void> {
|
|
|
621
621
|
route(pathname, fs.readFileSync(file), splashImageContentType(image))
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
if (configuredProject) {
|
|
625
|
-
const catalog = getCliRuntime().engine_app_catalog_wire.decodeAppCatalogWire(
|
|
626
|
-
new URL(launchUrl).searchParams.get('appCatalog'),
|
|
627
|
-
)
|
|
628
|
-
if (catalog)
|
|
629
|
-
for (const variants of Object.values(catalog.images))
|
|
630
|
-
for (const image of variants) {
|
|
631
|
-
const pathname = new URL(image.uri).pathname
|
|
632
|
-
if (!pathname.startsWith('/assets/'))
|
|
633
|
-
throw new Error('app catalog image must name a project asset')
|
|
634
|
-
const file = path.resolve(
|
|
635
|
-
configuredProject.appDir,
|
|
636
|
-
decodeURIComponent(pathname.slice('/assets/'.length)),
|
|
637
|
-
)
|
|
638
|
-
if (!file.startsWith(configuredProject.appDir + path.sep))
|
|
639
|
-
throw new Error('app catalog image is outside its project')
|
|
640
|
-
route(pathname, fs.readFileSync(file), splashImageContentType(image.uri))
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
624
|
if (values.has('--splash')) {
|
|
644
625
|
const url = new URL(launchUrl)
|
|
645
626
|
const image = stageHostBytes(
|
|
@@ -449,28 +449,25 @@ async function stampAppSplash(
|
|
|
449
449
|
// stamp the engine page url with `?appCatalog=` so an app's asset-catalog
|
|
450
450
|
// colors and images and its declared accent reach the tenant, which applies
|
|
451
451
|
// them to the bundle this url opens. the catalog lives in the native binary,
|
|
452
|
-
// never in the js bundle, so
|
|
453
|
-
//
|
|
452
|
+
// never in the js bundle, so read the app's native project, generated for a
|
|
453
|
+
// managed app, or the accent its One dev server declares.
|
|
454
454
|
async function stampAppCatalog(
|
|
455
455
|
urlStr: string,
|
|
456
|
+
assetOrigin: string,
|
|
456
457
|
project?: ResolvedAppProject | null,
|
|
457
458
|
): Promise<string> {
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
return url.toString()
|
|
471
|
-
} catch {
|
|
472
|
-
return urlStr
|
|
473
|
-
}
|
|
459
|
+
const url = new URL(urlStr)
|
|
460
|
+
const metroOrigin = loopbackOriginOf(url.searchParams.get('bundle') ?? '')
|
|
461
|
+
if (!metroOrigin || !project) return urlStr
|
|
462
|
+
const catalog =
|
|
463
|
+
(await discoverAppCatalog(project.appDir, assetOrigin)) ??
|
|
464
|
+
(await discoverOneNativeAppCatalog(metroOrigin))
|
|
465
|
+
if (!catalog) return urlStr
|
|
466
|
+
url.searchParams.set(
|
|
467
|
+
'appCatalog',
|
|
468
|
+
getCliRuntime().engine_app_catalog_wire.encodeAppCatalogWire(catalog),
|
|
469
|
+
)
|
|
470
|
+
return url.toString()
|
|
474
471
|
}
|
|
475
472
|
|
|
476
473
|
// a splash spec names `<origin>/assets/<project-relative-path>`, the file the
|
|
@@ -746,6 +743,7 @@ export async function buildShellUrl(
|
|
|
746
743
|
project,
|
|
747
744
|
opts.oneAppSplash,
|
|
748
745
|
),
|
|
746
|
+
nativeAssetOrigin,
|
|
749
747
|
project,
|
|
750
748
|
)
|
|
751
749
|
const expoStamped = new URL(stamped)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1992 | (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.1992 | (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.1992 | (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.1992 | (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.1992 | (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.1992 | (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.1992 | (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.1992 | (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.1992 | (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;
|