peachsim 0.1.2159 → 0.1.2172
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/README.md +7 -1
- package/cli/app-catalog.ts +22 -15
- package/cli/bridge-flow-runner.ts +8 -7
- package/cli/commands/cleanup.ts +4 -2
- package/cli/commands/control.ts +2 -1
- package/cli/commands/kotlin.ts +2 -2
- package/cli/commands/package.ts +22 -7
- package/cli/commands/shell-url.ts +4 -2
- package/cli/native-input.ts +1 -1
- package/cli/outbound-endpoints.ts +13 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +2 -3
- package/dist-lib/auth/shared-session.cjs +2 -3
- 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 +3639 -3304
- 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 +6 -5
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +4226 -8528
- package/dist-lib/expo-swift-metadata.cjs +5 -1
- package/dist-lib/expo-swift-metadata.mjs +5 -1
- package/dist-lib/home-paths.cjs +2 -3
- package/dist-lib/host/bridge-host.cjs +4562 -4251
- package/dist-lib/host/fetch-proxy-handler.cjs +35 -15
- 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 +195 -155
- 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 +12 -7
- 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 +42 -16
- package/dist-lib/native-app-identity-project.cjs +10 -5
- package/dist-lib/native-app-identity-project.mjs +10 -5
- package/dist-lib/native-app-identity.cjs +9 -1
- package/dist-lib/native-app-identity.mjs +9 -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 +2 -3
- 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 +99 -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 +4 -2
- 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 +5756 -5114
- package/dist-lib/swift-compile.cjs +22 -11
- package/dist-lib/swift-compile.mjs +22 -11
- 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 +27 -13
- package/dist-lib/vite.cjs +119 -85
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/inspect-info.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +9 -1
- package/dist-types/packages/peach-engine/src/render-worker/ui-frame-clock.d.ts +26 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/worklet-sab.d.ts +1 -6
- package/kotlin/README.md +5 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/src/answeredNativePackages.ts +1 -5
- package/src/disk-cleanup.ts +44 -1
- package/src/expo-native-compiler-digest.ts +2 -0
- package/src/expo-native-workspace.ts +61 -16
- package/src/expo-swift-host.ts +64 -53
- package/src/expoSwiftContract.ts +6 -0
- package/src/home-activity.ts +124 -0
- package/src/home-paths.ts +1 -2
- package/src/installed-native-build-options.ts +27 -3
- package/src/kotlin-app.ts +156 -31
- package/src/kotlin-compose-bom.ts +64 -0
- package/src/kotlin-host.ts +12 -3
- package/src/kotlin-version-catalog.ts +77 -0
- package/src/native-app-identity-project.ts +3 -0
- package/src/native-app-identity.ts +15 -0
- package/src/native-git.ts +12 -0
- package/src/native-prebuilt.ts +11 -2
- package/src/nitro-compile.ts +12 -4
- package/src/one-native-app-catalog.ts +59 -0
- package/src/one-sdk-preparation.ts +53 -8
- package/src/react-native-core-digest.ts +24 -0
- package/src/react-native-core.ts +239 -0
- package/src/reap-browser.ts +3 -1
- package/src/swift-compile.ts +6 -5
- package/src/swift-packages.ts +2 -0
- package/src/swift-wasm-prune.ts +20 -2
- package/src/turbo-bundle.ts +1 -1
- package/src/turbo-compile.ts +27 -6
- package/src/turbo-source.ts +29 -9
- package/src/vite-plugin-one.ts +8 -5
- package/src/one-native-app-accent.ts +0 -32
package/README.md
CHANGED
|
@@ -865,7 +865,7 @@ verifies its sha256, and unpacks it under `~/.peach`:
|
|
|
865
865
|
├── electron/userData/ desktop app storage, with bounded browser caches
|
|
866
866
|
├── daemon.json lockfile: pid, ports, cli version, active runtime, heartbeat
|
|
867
867
|
├── cli-update.json cached standalone CLI version and notice state
|
|
868
|
-
├── automatic-cleanup-
|
|
868
|
+
├── automatic-cleanup-v2.json last complete safe cleanup
|
|
869
869
|
└── config.json user prefs: update channel, cdn origin override
|
|
870
870
|
```
|
|
871
871
|
|
|
@@ -917,6 +917,12 @@ pass becomes eligible again after 30 minutes. The explicit `peach cleanup --aggr
|
|
|
917
917
|
command remains the only path that removes the rollback runtime or user-created
|
|
918
918
|
recordings.
|
|
919
919
|
|
|
920
|
+
Default cleanup also expires regenerable caches in development `port-homes`
|
|
921
|
+
after seven days without activation. Opening a home holds a process lease before
|
|
922
|
+
using its files; cleanup rechecks that lease before retiring a cache. Existing
|
|
923
|
+
homes use their last file modification until first opened by this CLI. Profiles,
|
|
924
|
+
packaged apps, and shared runtime symlinks stay in place.
|
|
925
|
+
|
|
920
926
|
## Development and building
|
|
921
927
|
|
|
922
928
|
This package is part of the Contrast monorepo. To build the standalone executable
|
package/cli/app-catalog.ts
CHANGED
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
} from '../src/expo-native-workspace'
|
|
12
12
|
import { stageHostFile } from '../src/host/staged-host-files'
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from '../src/one-native-app-
|
|
14
|
+
ONE_NATIVE_APP_CATALOG_ROUTE,
|
|
15
|
+
parseOneNativeAppCatalog,
|
|
16
|
+
} from '../src/one-native-app-catalog'
|
|
17
17
|
import { findExpoAppConfig } from './app-project'
|
|
18
18
|
import type { AppCatalog } from '#peach-cli-contract/engine/app-catalog-wire'
|
|
19
19
|
|
|
@@ -147,12 +147,14 @@ export async function discoverAppCatalog(
|
|
|
147
147
|
)
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
// a One app with no ios/ on disk: its dev server reports
|
|
151
|
-
//
|
|
150
|
+
// a One app with no ios/ on disk: its dev server reports what its native.app
|
|
151
|
+
// declares for the catalog `one prebuild` writes, the AccentColor and the
|
|
152
|
+
// declared asset catalog folder, read the way a prebuilt app's catalogs are.
|
|
152
153
|
export async function discoverOneNativeAppCatalog(
|
|
153
154
|
metroOrigin: string,
|
|
155
|
+
assetOrigin: string,
|
|
154
156
|
): Promise<AppCatalog | null> {
|
|
155
|
-
const response = await fetch(`${metroOrigin}${
|
|
157
|
+
const response = await fetch(`${metroOrigin}${ONE_NATIVE_APP_CATALOG_ROUTE}`, {
|
|
156
158
|
signal: AbortSignal.timeout(1500),
|
|
157
159
|
}).catch(() => null)
|
|
158
160
|
if (
|
|
@@ -160,13 +162,18 @@ export async function discoverOneNativeAppCatalog(
|
|
|
160
162
|
!(response.headers.get('content-type') ?? '').toLowerCase().includes('json')
|
|
161
163
|
)
|
|
162
164
|
return null
|
|
163
|
-
const
|
|
164
|
-
return
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
165
|
+
const declared = parseOneNativeAppCatalog(await response.json().catch(() => null))
|
|
166
|
+
if (!declared) return null
|
|
167
|
+
const { accentColor, assetCatalog } = declared
|
|
168
|
+
const accentName = accentColor ? 'AccentColor' : null
|
|
169
|
+
const files: string[] = []
|
|
170
|
+
if (assetCatalog) catalogFiles(assetCatalog, files)
|
|
171
|
+
const catalog = readAssetCatalog(
|
|
172
|
+
files,
|
|
173
|
+
readText,
|
|
174
|
+
(file) => stageHostFile(file, assetOrigin),
|
|
175
|
+
accentName,
|
|
176
|
+
)
|
|
177
|
+
if (catalog && accentColor) catalog.colors.AccentColor = accentColor
|
|
178
|
+
return catalog
|
|
172
179
|
}
|
|
@@ -3387,16 +3387,17 @@ export class SootSimBridgeFlowRunner {
|
|
|
3387
3387
|
console.log(`[flow] runScript: ${spec.file} done`)
|
|
3388
3388
|
}
|
|
3389
3389
|
|
|
3390
|
-
//
|
|
3391
|
-
//
|
|
3392
|
-
// into the next flow state, then deliver the URL to the replacement guest.
|
|
3390
|
+
// maestro's ios openLink is `simctl openurl`: a running app receives the url
|
|
3391
|
+
// in place, and only a stopped or never launched app starts first.
|
|
3393
3392
|
async openLink(target: string | { link: string }) {
|
|
3394
3393
|
const link = typeof target === 'string' ? target : target.link
|
|
3395
3394
|
if (!link) throw new Error('openLink: missing link')
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3395
|
+
if (this.appStopped || !this.firstLaunchDone) {
|
|
3396
|
+
await this.reloadGuestAppRuntime({
|
|
3397
|
+
initialUrl: null,
|
|
3398
|
+
launchArguments: null,
|
|
3399
|
+
})
|
|
3400
|
+
}
|
|
3400
3401
|
await this.waitForTree(120000)
|
|
3401
3402
|
const result = await this.callTest<{ ok: boolean; error?: string }>(
|
|
3402
3403
|
'openDeepLink',
|
package/cli/commands/cleanup.ts
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
const KIND_LABELS: Record<SootsimCleanupKind, string> = {
|
|
11
11
|
'browser-cache': 'browser caches',
|
|
12
12
|
'camera-fixture': 'staged camera fixture videos',
|
|
13
|
+
'port-home-cache': 'inactive development home caches',
|
|
13
14
|
recording: 'recordings and captured frames',
|
|
14
15
|
'runtime-archive': 'downloaded runtime archives',
|
|
15
16
|
'runtime-version': 'inactive runtime versions',
|
|
@@ -44,8 +45,9 @@ usage:
|
|
|
44
45
|
peach cleanup --apply --aggressive
|
|
45
46
|
|
|
46
47
|
The default is a read-only preview. --apply removes downloaded runtime archives,
|
|
47
|
-
old runtimes outside a two-version rollback window,
|
|
48
|
-
caches
|
|
48
|
+
old runtimes outside a two-version rollback window, disposable browser caches,
|
|
49
|
+
and development caches in port homes inactive for seven days. It never removes
|
|
50
|
+
packaged app caches, the active runtime, a runtime serving a connected
|
|
49
51
|
simulator, cookies, localStorage, IndexedDB, service workers, or other persistent
|
|
50
52
|
app storage.
|
|
51
53
|
|
package/cli/commands/control.ts
CHANGED
|
@@ -29,6 +29,7 @@ import { isDeviceModel, type DeviceModel } from '../../src/device-catalog.ts'
|
|
|
29
29
|
import { readProjectDotEnv } from '../../src/dot-env'
|
|
30
30
|
import { awaitStampedExpoSwiftReady } from '../../src/expo-swift-ready'
|
|
31
31
|
import { flowTimeoutScale } from '../../src/flow-timeout-scale'
|
|
32
|
+
import { activatePeachHome } from '../../src/home-activity'
|
|
32
33
|
import {
|
|
33
34
|
isDaemonLockfileFresh,
|
|
34
35
|
isDevBridgeLockfileFresh,
|
|
@@ -545,7 +546,7 @@ function isolateHomeForExplicitPort(
|
|
|
545
546
|
}
|
|
546
547
|
const sharedRuntimes = runtimesDir()
|
|
547
548
|
const home = path.join(rnxHomeDir(), 'port-homes', String(preferredPort))
|
|
548
|
-
|
|
549
|
+
activatePeachHome(home)
|
|
549
550
|
const runtimes = path.join(home, 'runtimes')
|
|
550
551
|
// a dev checkout serves its own build (ensureRuntimeForOpen returns early
|
|
551
552
|
// for it): linking the ambient installed runtimes here would make the
|
package/cli/commands/kotlin.ts
CHANGED
|
@@ -89,7 +89,7 @@ export async function runKotlin(
|
|
|
89
89
|
)
|
|
90
90
|
const moduleRoot = peachKotlinModuleRoot()
|
|
91
91
|
const pins = readAndroidPins(moduleRoot)
|
|
92
|
-
let project: KotlinAppProject = readKotlinApp(modulePath, { activity, pins })
|
|
92
|
+
let project: KotlinAppProject = await readKotlinApp(modulePath, { activity, pins })
|
|
93
93
|
const host = await import('../../src/kotlin-host')
|
|
94
94
|
const controller = new AbortController()
|
|
95
95
|
const resources: OpenCommandResources = {}
|
|
@@ -173,7 +173,7 @@ export async function runKotlin(
|
|
|
173
173
|
while (pending && !controller.signal.aborted) {
|
|
174
174
|
pending = false
|
|
175
175
|
try {
|
|
176
|
-
const nextProject = readKotlinApp(modulePath, { activity, pins })
|
|
176
|
+
const nextProject = await readKotlinApp(modulePath, { activity, pins })
|
|
177
177
|
const nextArtifact = await host.kotlinAppArtifact(
|
|
178
178
|
nextProject,
|
|
179
179
|
moduleRoot,
|
package/cli/commands/package.ts
CHANGED
|
@@ -28,7 +28,7 @@ import { getCliRuntime, verifyCliCompanion } from '../../src/cli-runtime'
|
|
|
28
28
|
import { produceConfiguredBundle } from '../../src/configured-bundle-producer'
|
|
29
29
|
import { activeDesktopHostApp } from '../../src/desktop-host-delivery'
|
|
30
30
|
import { readExpoSwiftFooter } from '../../src/expoSwiftContract'
|
|
31
|
-
import { readActiveRuntime } from '../../src/home-paths'
|
|
31
|
+
import { readActiveRuntime, rnxHomeDir } from '../../src/home-paths'
|
|
32
32
|
import {
|
|
33
33
|
captureStagedHostFiles,
|
|
34
34
|
stageHostBytes,
|
|
@@ -76,12 +76,27 @@ async function primeCodeCache(app: string, home: string): Promise<void> {
|
|
|
76
76
|
PEACH_HOME: home,
|
|
77
77
|
PEACH_CLI_CURRENT_SIM_PATH: path.join(home, 'current-sim.json'),
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
const nodeHost = path.join(home, 'desktop', 'node-host')
|
|
80
|
+
fs.mkdirSync(nodeHost, { recursive: true })
|
|
81
|
+
const hostLog = path.join(home, 'host.log')
|
|
82
|
+
const hostOutput = fs.openSync(hostLog, 'a', 0o600)
|
|
80
83
|
const host = spawn(
|
|
81
84
|
path.join(app, 'Contents', 'MacOS', 'PeachApp'),
|
|
82
85
|
['--peach-app-home', home],
|
|
83
|
-
{ stdio: 'ignore', detached: true },
|
|
86
|
+
{ stdio: ['ignore', hostOutput, hostOutput], detached: true },
|
|
84
87
|
)
|
|
88
|
+
fs.closeSync(hostOutput)
|
|
89
|
+
const startupFailure = (detail: string) => {
|
|
90
|
+
const logs = [hostLog, path.join(home, 'runtime.log')]
|
|
91
|
+
.filter((file) => fs.existsSync(file))
|
|
92
|
+
.map((file) => `${path.basename(file)}:\n${fs.readFileSync(file, 'utf8')}`)
|
|
93
|
+
.join('\n')
|
|
94
|
+
const directory = path.join(rnxHomeDir(), 'package-diagnostics')
|
|
95
|
+
fs.mkdirSync(directory, { recursive: true, mode: 0o700 })
|
|
96
|
+
const diagnostic = path.join(directory, `${randomUUID()}.log`)
|
|
97
|
+
fs.writeFileSync(diagnostic, `${detail}\n${logs}`, { mode: 0o600 })
|
|
98
|
+
return new Error(`${detail}\n${logs.slice(-4000)}\nstartup log: ${diagnostic}`)
|
|
99
|
+
}
|
|
85
100
|
const exited = new Promise<NodeJS.Signals | null>((resolve) =>
|
|
86
101
|
host.once('exit', (_code, signal) => resolve(signal)),
|
|
87
102
|
)
|
|
@@ -104,7 +119,7 @@ async function primeCodeCache(app: string, home: string): Promise<void> {
|
|
|
104
119
|
if (fs.existsSync(record)) done()
|
|
105
120
|
}).catch(async (error: unknown) => {
|
|
106
121
|
await terminateProcessGroup(host, 'SIGKILL')
|
|
107
|
-
throw error
|
|
122
|
+
throw startupFailure(error instanceof Error ? error.message : String(error))
|
|
108
123
|
})
|
|
109
124
|
const service: { pid: number; bridgePort: number } = JSON.parse(
|
|
110
125
|
fs.readFileSync(record, 'utf8'),
|
|
@@ -120,7 +135,7 @@ async function primeCodeCache(app: string, home: string): Promise<void> {
|
|
|
120
135
|
if (ready.status === 0) break
|
|
121
136
|
if (Date.now() > deadline) {
|
|
122
137
|
await terminateProcessGroup(host, 'SIGKILL')
|
|
123
|
-
throw
|
|
138
|
+
throw startupFailure(
|
|
124
139
|
`the packaged app did not start: ${(ready.stderr + ready.stdout).slice(-400)}`,
|
|
125
140
|
)
|
|
126
141
|
}
|
|
@@ -135,7 +150,7 @@ async function primeCodeCache(app: string, home: string): Promise<void> {
|
|
|
135
150
|
spawnSync('/bin/kill', [String(service.pid)])
|
|
136
151
|
const seeded = path.join(app, 'Contents', 'Resources', 'code-cache')
|
|
137
152
|
fs.mkdirSync(seeded)
|
|
138
|
-
for (const entry of fs.readdirSync(
|
|
153
|
+
for (const entry of fs.readdirSync(nodeHost, {
|
|
139
154
|
recursive: true,
|
|
140
155
|
withFileTypes: true,
|
|
141
156
|
}))
|
|
@@ -150,7 +165,7 @@ async function primeCodeCache(app: string, home: string): Promise<void> {
|
|
|
150
165
|
path.join(seeded, entry.name),
|
|
151
166
|
)
|
|
152
167
|
// the realms its first page started, for the host to start before webkit loads the page (node/host.mjs)
|
|
153
|
-
const prestart = path.join(
|
|
168
|
+
const prestart = path.join(nodeHost, 'realm-prestart.json')
|
|
154
169
|
if (fs.existsSync(prestart))
|
|
155
170
|
fs.copyFileSync(
|
|
156
171
|
prestart,
|
|
@@ -384,7 +384,9 @@ async function resolveShellUrl(
|
|
|
384
384
|
): Promise<string> {
|
|
385
385
|
// no target = open home screen
|
|
386
386
|
if (!target) {
|
|
387
|
-
|
|
387
|
+
const url = new URL(baseUrl)
|
|
388
|
+
url.pathname = `${getShellRoutePrefix(url.pathname)}/`
|
|
389
|
+
return url.toString()
|
|
388
390
|
}
|
|
389
391
|
|
|
390
392
|
if (looksLikeSootsimUrl(target)) {
|
|
@@ -466,7 +468,7 @@ async function stampAppCatalog(
|
|
|
466
468
|
if (!metroOrigin || !project) return urlStr
|
|
467
469
|
const catalog =
|
|
468
470
|
(await discoverAppCatalog(project.appDir, assetOrigin)) ??
|
|
469
|
-
(await discoverOneNativeAppCatalog(metroOrigin))
|
|
471
|
+
(await discoverOneNativeAppCatalog(metroOrigin, assetOrigin))
|
|
470
472
|
if (!catalog) return urlStr
|
|
471
473
|
url.searchParams.set(
|
|
472
474
|
'appCatalog',
|
package/cli/native-input.ts
CHANGED
|
@@ -150,7 +150,7 @@ export async function prepareNativeInput(
|
|
|
150
150
|
const host = await import('../src/kotlin-host')
|
|
151
151
|
const { readAndroidPins, readKotlinApp } = await import('../src/kotlin-app')
|
|
152
152
|
const moduleRoot = host.peachKotlinModuleRoot()
|
|
153
|
-
const project = readKotlinApp(input.path, {
|
|
153
|
+
const project = await readKotlinApp(input.path, {
|
|
154
154
|
activity: opts.activity,
|
|
155
155
|
pins: readAndroidPins(moduleRoot),
|
|
156
156
|
})
|
|
@@ -236,6 +236,13 @@ export const OUTBOUND_ENDPOINTS: Record<string, OutboundEndpointDeclaration> = {
|
|
|
236
236
|
payload:
|
|
237
237
|
'HTTP GET of a pinned, sha256-checked toolchain file; fires only when the user builds a Kotlin app and the file is not cached',
|
|
238
238
|
},
|
|
239
|
+
kotlin_dependency_metadata: {
|
|
240
|
+
category: 'explicit-user-action',
|
|
241
|
+
destination: 'https://dl.google.com/dl/android/maven2/androidx/compose/compose-bom*/',
|
|
242
|
+
preConsent: false,
|
|
243
|
+
payload:
|
|
244
|
+
'HTTP GET of the public Compose BOM artifact and version declared by the app; no source, paths, credentials or app data',
|
|
245
|
+
},
|
|
239
246
|
coverage_parser_download: {
|
|
240
247
|
category: 'explicit-user-action',
|
|
241
248
|
destination:
|
|
@@ -413,8 +420,8 @@ export const DECLARED_OUTBOUND_CALLS: Record<string, OutboundCallDeclaration> =
|
|
|
413
420
|
{ category: 'tunnel_tool_download', count: 1 },
|
|
414
421
|
"packages/peachsim/cli/cloud-test-tunnel.ts :: node-request :: { host: 'localhost', port: selectedPort, path: req.url, method: req.method, headers, }":
|
|
415
422
|
{ category: 'local_development', count: 1 },
|
|
416
|
-
// the one dev server on loopback reports the
|
|
417
|
-
'packages/peachsim/cli/app-catalog.ts :: fetch :: `${metroOrigin}${
|
|
423
|
+
// the one dev server on loopback reports the catalog its config declares.
|
|
424
|
+
'packages/peachsim/cli/app-catalog.ts :: fetch :: `${metroOrigin}${ONE_NATIVE_APP_CATALOG_ROUTE}`':
|
|
418
425
|
{ category: 'local_development', count: 1 },
|
|
419
426
|
// compiling a project's .swift sources needs a swift toolchain, so the
|
|
420
427
|
// bundler posts them to the app's own /api/swift-compile. it only fires with
|
|
@@ -1001,6 +1008,10 @@ export const DECLARED_OUTBOUND_CALLS: Record<string, OutboundCallDeclaration> =
|
|
|
1001
1008
|
category: 'kotlin_toolchain_download',
|
|
1002
1009
|
count: 1,
|
|
1003
1010
|
},
|
|
1011
|
+
'packages/peachsim/src/kotlin-compose-bom.ts :: fetch :: url': {
|
|
1012
|
+
category: 'kotlin_dependency_metadata',
|
|
1013
|
+
count: 1,
|
|
1014
|
+
},
|
|
1004
1015
|
'packages/peach-engine/src/engine/app-font-loader.ts :: fetch-alias :: url': {
|
|
1005
1016
|
category: 'local_development',
|
|
1006
1017
|
count: 1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2172 | (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.2172 | (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.2172 | (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;
|
|
@@ -132,8 +132,7 @@ function ambientHomeDir() {
|
|
|
132
132
|
}
|
|
133
133
|
function rnxHomeDir() {
|
|
134
134
|
const override = process.env[PEACH_HOME_ENV];
|
|
135
|
-
|
|
136
|
-
return ambientHomeDir();
|
|
135
|
+
return override && override.length > 0 ? import_node_path.default.resolve(override) : ambientHomeDir();
|
|
137
136
|
}
|
|
138
137
|
function electronDir() {
|
|
139
138
|
return import_node_path.default.join(rnxHomeDir(), "electron");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2172 | (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;
|
|
@@ -54,8 +54,7 @@ function ambientHomeDir() {
|
|
|
54
54
|
}
|
|
55
55
|
function rnxHomeDir() {
|
|
56
56
|
const override = process.env[PEACH_HOME_ENV];
|
|
57
|
-
|
|
58
|
-
return ambientHomeDir();
|
|
57
|
+
return override && override.length > 0 ? import_node_path.default.resolve(override) : ambientHomeDir();
|
|
59
58
|
}
|
|
60
59
|
function electronDir() {
|
|
61
60
|
return import_node_path.default.join(rnxHomeDir(), "electron");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2172 | (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.2172 | (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.2172 | (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.2172 | (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.2172 | (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;
|