peachsim 0.1.2433 → 0.1.2435
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-project.ts +5 -0
- package/cli/commands/box.ts +3 -0
- package/cli/commands/control.ts +14 -6
- package/cli/commands/platform.ts +3 -3
- package/cli/commands/stream.ts +8 -1
- 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 +109 -38
- 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 +99 -28
- 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 +100 -29
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -3
- 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 +15 -6
- 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 +15 -6
- package/dist-lib/native-app-identity-project.cjs +13 -5
- package/dist-lib/native-app-identity-project.mjs +13 -5
- 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 +25 -25
- 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 +122 -39
- package/dist-lib/swift-compile.cjs +78 -25
- package/dist-lib/swift-compile.mjs +78 -25
- 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 +101 -31
- package/dist-lib/vite.cjs +4 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +2 -2
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/bazel-project.ts +11 -3
- package/src/react-native-coverage/native-typescript-parser.ts +29 -1
- package/src/swift-compile.ts +49 -5
- package/src/swift-guest-image-ledger.ts +15 -12
- package/src/swift-guest-link.ts +13 -2
- package/src/swift-guest-source-inputs.ts +5 -1
- package/src/swift-host.ts +12 -0
- package/src/swift-submit.ts +2 -0
- package/src/swift-wasm-prune.ts +8 -3
package/cli/app-project.ts
CHANGED
|
@@ -21,6 +21,11 @@ export interface ResolvedAppProject {
|
|
|
21
21
|
configPath: string | null
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
export function appNameFromPath(pathOrUrl: string): string {
|
|
25
|
+
const segment = pathOrUrl.split(/[?#]/)[0]?.split(/[/\\]/).filter(Boolean).at(-1) ?? ''
|
|
26
|
+
return segment.replace(/\.[^.]+$/, '')
|
|
27
|
+
}
|
|
28
|
+
|
|
24
29
|
function firstNamedFile(dir: string, names: readonly string[]): string | null {
|
|
25
30
|
for (const name of names) {
|
|
26
31
|
const candidate = path.join(dir, name)
|
package/cli/commands/box.ts
CHANGED
|
@@ -535,6 +535,7 @@ export async function createPrebuiltBundleBox(options: {
|
|
|
535
535
|
// the link the app launches with, as Linking.getInitialURL reports it
|
|
536
536
|
initialUrl?: string | null
|
|
537
537
|
name: string
|
|
538
|
+
appName: string
|
|
538
539
|
endpoint: string
|
|
539
540
|
apiOrigin: string
|
|
540
541
|
apiKey: string
|
|
@@ -546,6 +547,7 @@ export async function createPrebuiltBundleBox(options: {
|
|
|
546
547
|
const pending = Promise.withResolvers<{ source: BundleFilePlane; appFonts: string }>()
|
|
547
548
|
const box = await cloudBoxClient(options).create({
|
|
548
549
|
name: options.name,
|
|
550
|
+
simulator: { name: options.appName, device: options.device },
|
|
549
551
|
stack: prebuiltBundleBoxTemplate.stack,
|
|
550
552
|
template: BOX_TEMPLATES.resolve({ name: prebuiltBundleBoxTemplate.name }).provenance,
|
|
551
553
|
source: async () => {
|
|
@@ -748,6 +750,7 @@ async function runCloudBoxCreate(
|
|
|
748
750
|
nativeProjectDir,
|
|
749
751
|
device: null,
|
|
750
752
|
name,
|
|
753
|
+
appName: defaultName,
|
|
751
754
|
...(secrets ? { secrets } : {}),
|
|
752
755
|
})
|
|
753
756
|
: {
|
package/cli/commands/control.ts
CHANGED
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
import { rnxRuntime } from '../../src/runtime-delivery'
|
|
64
64
|
import { sleep } from '../../src/sleep'
|
|
65
65
|
import { fetchOneNativeAppCatalogDeclaration } from '../app-catalog'
|
|
66
|
-
import { findExpoAppConfig, resolveAppProject } from '../app-project'
|
|
66
|
+
import { appNameFromPath, findExpoAppConfig, resolveAppProject } from '../app-project'
|
|
67
67
|
import { discoverOneNativeAppSplash } from '../app-splash'
|
|
68
68
|
import { extractAppBinaryBundle, isAppBinaryPath } from '../binary-sidecar'
|
|
69
69
|
import { printBridgeFailureDiagnostics } from '../bridge-diagnostics'
|
|
@@ -1410,12 +1410,14 @@ type OpenCommandOptions = ControlCommandOptions & {
|
|
|
1410
1410
|
ownerPid?: number
|
|
1411
1411
|
}
|
|
1412
1412
|
|
|
1413
|
+
type OpenedSimulator = { simId: string; launched: boolean; appName?: string }
|
|
1414
|
+
|
|
1413
1415
|
// `--json` makes stdout exactly the {simId, url} payload: every other line
|
|
1414
1416
|
// the open path prints (progress, describe tree, hints) goes to stderr.
|
|
1415
1417
|
export async function runOpenCommand(
|
|
1416
1418
|
args: string[],
|
|
1417
1419
|
opts: OpenCommandOptions = {},
|
|
1418
|
-
): Promise<
|
|
1420
|
+
): Promise<OpenedSimulator | undefined> {
|
|
1419
1421
|
const { STREAM_FLAG, runStreamCommand } = await import('./stream')
|
|
1420
1422
|
if (args.includes(STREAM_FLAG)) {
|
|
1421
1423
|
const { authHeaderOrExit } = await import('../auth')
|
|
@@ -1425,7 +1427,10 @@ export async function runOpenCommand(
|
|
|
1425
1427
|
opts,
|
|
1426
1428
|
)
|
|
1427
1429
|
if (opened)
|
|
1428
|
-
await runStreamCommand(['start', '--sim', opened.simId], {
|
|
1430
|
+
await runStreamCommand(['start', '--sim', opened.simId], {
|
|
1431
|
+
port: opts.port,
|
|
1432
|
+
appName: opened.appName,
|
|
1433
|
+
})
|
|
1429
1434
|
return opened
|
|
1430
1435
|
}
|
|
1431
1436
|
if (!args.includes('--json')) return openSim(args, opts)
|
|
@@ -1441,7 +1446,7 @@ export async function runOpenCommand(
|
|
|
1441
1446
|
async function openSim(
|
|
1442
1447
|
args: string[],
|
|
1443
1448
|
opts: OpenCommandOptions,
|
|
1444
|
-
): Promise<
|
|
1449
|
+
): Promise<OpenedSimulator | undefined> {
|
|
1445
1450
|
// an ipa or apk we built opens as the plain bundle it carries
|
|
1446
1451
|
const binary = args.find((arg) => !arg.startsWith('-') && isAppBinaryPath(arg))
|
|
1447
1452
|
if (binary) {
|
|
@@ -1735,6 +1740,9 @@ async function openSim(
|
|
|
1735
1740
|
resolvedBundle?.manifestProjectRoot,
|
|
1736
1741
|
opts.signal,
|
|
1737
1742
|
)
|
|
1743
|
+
const appName =
|
|
1744
|
+
resolvedBundle?.projectName ??
|
|
1745
|
+
(appNameFromPath(project?.appDir ?? prebuiltBundle ?? '') || undefined)
|
|
1738
1746
|
startExpoConfigRead(project)
|
|
1739
1747
|
// playwright is the browser-sim launcher. it owns an isolated profile and
|
|
1740
1748
|
// can reap exactly its own browser tree. desktop opens the native host and
|
|
@@ -2307,7 +2315,7 @@ async function openSim(
|
|
|
2307
2315
|
)
|
|
2308
2316
|
await maybeDescribeAfterOpen(parsed.wsPort, targetSim.id, args)
|
|
2309
2317
|
printAgentHints(quiet)
|
|
2310
|
-
return { simId: targetSim.id, launched: false }
|
|
2318
|
+
return { simId: targetSim.id, launched: false, appName }
|
|
2311
2319
|
}
|
|
2312
2320
|
} finally {
|
|
2313
2321
|
bridge.close()
|
|
@@ -2483,7 +2491,7 @@ async function openSim(
|
|
|
2483
2491
|
printOpenedSim(openUrl, match, `${driver.name} driver`, quiet, json)
|
|
2484
2492
|
await maybeDescribeAfterOpen(parsed.wsPort, match.id, args)
|
|
2485
2493
|
printAgentHints(quiet)
|
|
2486
|
-
return { simId: match.id, launched: true }
|
|
2494
|
+
return { simId: match.id, launched: true, appName }
|
|
2487
2495
|
}
|
|
2488
2496
|
|
|
2489
2497
|
async function runUseLikeCommand(args: string[], opts: ControlCommandOptions = {}) {
|
package/cli/commands/platform.ts
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
import { isRecord } from '../../src/is-record'
|
|
19
19
|
import { toPeachDevelopmentBundleUrl } from '../../src/metro-production-bundle'
|
|
20
20
|
import { rnxPublicBrand } from '../../src/public-brand'
|
|
21
|
+
import { appNameFromPath } from '../app-project'
|
|
21
22
|
import { UnsupportedRemoteHostError } from '../cloud-client'
|
|
22
23
|
import { resolveCheckoutRepo } from '../run-registry'
|
|
23
24
|
import { rethrowIfExit } from '../run-rnx'
|
|
@@ -157,9 +158,7 @@ function remoteInputFromArgs(
|
|
|
157
158
|
* readable app name for both default and explicit-name creates.
|
|
158
159
|
*/
|
|
159
160
|
function boxNameForBundle(bundlePath: string): string {
|
|
160
|
-
const
|
|
161
|
-
const stem = segment.replace(/\.[^.]+$/, '')
|
|
162
|
-
const name = stem
|
|
161
|
+
const name = appNameFromPath(bundlePath)
|
|
163
162
|
.toLowerCase()
|
|
164
163
|
.replace(/[^a-z0-9]+/g, '-')
|
|
165
164
|
.replace(/^-+|-+$/g, '')
|
|
@@ -637,6 +636,7 @@ async function runRemoteBox(
|
|
|
637
636
|
device: selectedDevice,
|
|
638
637
|
initialUrl: input.initialUrl,
|
|
639
638
|
name: input.name ?? boxNameForBundle(projectDir ?? input.bundlePath),
|
|
639
|
+
appName: appNameFromPath(projectDir ?? input.bundlePath),
|
|
640
640
|
fresh: input.watch || input.name === null,
|
|
641
641
|
endpoint,
|
|
642
642
|
apiOrigin,
|
package/cli/commands/stream.ts
CHANGED
|
@@ -33,7 +33,7 @@ export function readLocalStreamRecord(simId: string) {
|
|
|
33
33
|
|
|
34
34
|
export async function runStreamCommand(
|
|
35
35
|
args: string[],
|
|
36
|
-
opts: { port?: number } = {},
|
|
36
|
+
opts: { port?: number; appName?: string } = {},
|
|
37
37
|
): Promise<void> {
|
|
38
38
|
const parsed = parseBridgeCliArgs(args, { port: opts.port })
|
|
39
39
|
const action = parsed.positional[0] ?? 'status'
|
|
@@ -92,6 +92,12 @@ export async function runStreamCommand(
|
|
|
92
92
|
bridge,
|
|
93
93
|
'SootSim.bridges.settings.get',
|
|
94
94
|
)
|
|
95
|
+
const name: unknown =
|
|
96
|
+
opts.appName ??
|
|
97
|
+
(await bridge.send({
|
|
98
|
+
type: 'evaluate',
|
|
99
|
+
code: 'globalThis.SootSim?.state?.engineSnapshot?.activeApp?.appName ?? null',
|
|
100
|
+
}))
|
|
95
101
|
const response = await fetch(new URL('/api/v1/rnx/streams', origin), {
|
|
96
102
|
method: 'POST',
|
|
97
103
|
headers: { authorization: header, 'content-type': 'application/json' },
|
|
@@ -99,6 +105,7 @@ export async function runStreamCommand(
|
|
|
99
105
|
accountId: cloudAccountIdOrExit(auth),
|
|
100
106
|
device:
|
|
101
107
|
typeof settings.deviceModel === 'string' ? settings.deviceModel : undefined,
|
|
108
|
+
name: typeof name === 'string' ? name : undefined,
|
|
102
109
|
repo: resolveCheckoutRepo() ?? undefined,
|
|
103
110
|
}),
|
|
104
111
|
signal: AbortSignal.timeout(15_000),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2435 | (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.2435 | (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.2435 | (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.2435 | (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.2435 | (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.2435 | (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.2435 | (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.2435 | (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.2435 | (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;
|