peachsim 0.1.754 → 0.1.756
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-config.ts +4 -29
- package/cli/commands/daemon.ts +117 -116
- package/cli/commands/install-desktop.ts +13 -8
- package/cli/desktop-companion.ts +9 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +8 -5
- 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/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +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 +88 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +2 -23
- package/dist-lib/host/bridge-host.cjs +54 -38
- 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 +13 -5
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +2551 -2220
- 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 +914 -584
- 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/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/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +4 -4
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +137 -107
- package/dist-lib/swift-compile.cjs +6 -2
- package/dist-lib/swift-compile.mjs +6 -2
- 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 +6 -2
- package/dist-lib/vite.cjs +10 -4
- package/package.json +1 -1
- package/src/auth/shared-session.ts +9 -4
- package/src/config.ts +92 -0
- package/src/configured-bundle-producer.ts +110 -0
- package/src/desktop-host-delivery.ts +82 -19
- package/src/home-paths.ts +5 -22
- package/src/host/agent-host.ts +4 -1
- package/src/host/replacement-module-handler.ts +8 -2
- package/src/metro-plugin.ts +27 -0
- package/src/swift-compile.ts +4 -0
package/src/metro-plugin.ts
CHANGED
|
@@ -12,6 +12,7 @@ import fs from 'fs'
|
|
|
12
12
|
import { createRequire } from 'module'
|
|
13
13
|
import { randomUUID } from 'node:crypto'
|
|
14
14
|
import path from 'path'
|
|
15
|
+
import { resolveAppProject } from '../cli/app-project'
|
|
15
16
|
import { tagRnxBundleForPlugin } from './dev-server-open'
|
|
16
17
|
import {
|
|
17
18
|
handleReplacementModuleRequest,
|
|
@@ -282,6 +283,32 @@ export function withRNX<T extends Record<string, unknown>>(config: T): T {
|
|
|
282
283
|
code: insertNativeFirebaseFooter(annotated.code, firebase),
|
|
283
284
|
}
|
|
284
285
|
}
|
|
286
|
+
const project = resolveAppProject(cfgProjectRoot)
|
|
287
|
+
const appConfig = project?.configPath
|
|
288
|
+
? await (await import('../cli/app-config')).loadRNXAppConfig(project)
|
|
289
|
+
: undefined
|
|
290
|
+
if (appConfig) {
|
|
291
|
+
const { produceConfiguredBundle } = await import('./configured-bundle-producer')
|
|
292
|
+
const runtimePackages = new Set<string>()
|
|
293
|
+
for (const module of graph.dependencies?.values() ?? []) {
|
|
294
|
+
for (const [key, dependency] of module.dependencies ?? []) {
|
|
295
|
+
const specifier = dependency.data?.name ?? key
|
|
296
|
+
if (!specifier.startsWith('.') && !specifier.startsWith('/'))
|
|
297
|
+
runtimePackages.add(specifier)
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
annotated =
|
|
301
|
+
typeof annotated === 'string'
|
|
302
|
+
? await produceConfiguredBundle(annotated, appConfig, runtimePackages)
|
|
303
|
+
: {
|
|
304
|
+
...annotated,
|
|
305
|
+
code: await produceConfiguredBundle(
|
|
306
|
+
annotated.code,
|
|
307
|
+
appConfig,
|
|
308
|
+
runtimePackages,
|
|
309
|
+
),
|
|
310
|
+
}
|
|
311
|
+
}
|
|
285
312
|
return annotated
|
|
286
313
|
},
|
|
287
314
|
},
|
package/src/swift-compile.ts
CHANGED
|
@@ -263,6 +263,10 @@ const OPTIONAL_FRAMEWORK_DEPENDENCIES: Record<string, string[]> = {
|
|
|
263
263
|
DatadogLogs: ['DatadogCore'],
|
|
264
264
|
DatadogRUM: ['DatadogCore'],
|
|
265
265
|
DatadogTrace: ['DatadogCore'],
|
|
266
|
+
AppLovinSDK: [],
|
|
267
|
+
AppsFlyerLib: [],
|
|
268
|
+
FBSDKCoreKit: [],
|
|
269
|
+
FBAudienceNetwork: [],
|
|
266
270
|
}
|
|
267
271
|
const OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES))
|
|
268
272
|
|