peachsim 0.1.755 → 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/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 +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/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 +1 -1
- package/dist-lib/host/bridge-host.cjs +47 -36
- 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 +94 -69
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- 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 +1 -1
- package/dist-lib/vite.cjs +10 -4
- package/package.json +1 -1
- package/src/config.ts +92 -0
- package/src/configured-bundle-producer.ts +110 -0
- package/src/host/replacement-module-handler.ts +8 -2
- package/src/metro-plugin.ts +27 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.756 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -34,7 +34,8 @@ var replacement_module_handler_exports = {};
|
|
|
34
34
|
__export(replacement_module_handler_exports, {
|
|
35
35
|
REPLACEMENT_MODULE_ROUTE: () => REPLACEMENT_MODULE_ROUTE,
|
|
36
36
|
handleReplacementModuleRequest: () => handleReplacementModuleRequest,
|
|
37
|
-
isReplacementModuleRequestUrl: () => isReplacementModuleRequestUrl
|
|
37
|
+
isReplacementModuleRequestUrl: () => isReplacementModuleRequestUrl,
|
|
38
|
+
resolveReplacementModuleFile: () => resolveReplacementModuleFile
|
|
38
39
|
});
|
|
39
40
|
module.exports = __toCommonJS(replacement_module_handler_exports);
|
|
40
41
|
var import_node_fs = require("node:fs");
|
|
@@ -218,6 +219,7 @@ function compileReplacementModule(input) {
|
|
|
218
219
|
return code.slice(token.start + 1, token.end - 1);
|
|
219
220
|
};
|
|
220
221
|
const bridgeNames = /* @__PURE__ */ new Map();
|
|
222
|
+
const bareSpecifiers = /* @__PURE__ */ new Set();
|
|
221
223
|
const declarations = [];
|
|
222
224
|
let needsDefaultInterop = false;
|
|
223
225
|
const bridgeFor = (specifier) => {
|
|
@@ -318,6 +320,7 @@ function compileReplacementModule(input) {
|
|
|
318
320
|
if (specifier !== "react" && specifier !== "react-native" && !JSX_RUNTIME_SPECIFIERS.has(specifier) && !isPeachKitSpecifier(specifier) && !input.runtimePackages.has(specifier)) {
|
|
319
321
|
throw unsupportedSpecifier(specifier);
|
|
320
322
|
}
|
|
323
|
+
bareSpecifiers.add(specifier);
|
|
321
324
|
const bridge = bindings.length > 0 ? bridgeFor(specifier) : null;
|
|
322
325
|
const replacement = bindings.map((binding) => {
|
|
323
326
|
if (binding.imported === null) return `const ${binding.local} = ${bridge};`;
|
|
@@ -340,6 +343,7 @@ function compileReplacementModule(input) {
|
|
|
340
343
|
const preamble = declarations.join(" ");
|
|
341
344
|
return {
|
|
342
345
|
code: preamble ? `${preamble} ${out}` : out,
|
|
346
|
+
bareSpecifiers: [...bareSpecifiers],
|
|
343
347
|
sourceMap: { ...sourceMap, sourcesContent: [input.source] }
|
|
344
348
|
};
|
|
345
349
|
}
|
|
@@ -371,7 +375,7 @@ function sendJavaScript(req, res, source) {
|
|
|
371
375
|
});
|
|
372
376
|
res.end(req.method === "HEAD" ? void 0 : source);
|
|
373
377
|
}
|
|
374
|
-
function
|
|
378
|
+
function resolveReplacementModuleFile(fromFile, specifier) {
|
|
375
379
|
const base = import_node_path.default.resolve(import_node_path.default.dirname(fromFile), specifier);
|
|
376
380
|
const candidates = [
|
|
377
381
|
...REPLACEMENT_MODULE_EXTENSIONS.some(
|
|
@@ -485,7 +489,10 @@ async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
|
485
489
|
// so the token, cache key and runtime packages carry over.
|
|
486
490
|
localModuleUrl: (specifier) => {
|
|
487
491
|
const local = new URL(url.href);
|
|
488
|
-
local.searchParams.set(
|
|
492
|
+
local.searchParams.set(
|
|
493
|
+
"path",
|
|
494
|
+
resolveReplacementModuleFile(targetPath, specifier)
|
|
495
|
+
);
|
|
489
496
|
return `${local.pathname}${local.search}`;
|
|
490
497
|
}
|
|
491
498
|
});
|
|
@@ -508,5 +515,6 @@ async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
|
508
515
|
0 && (module.exports = {
|
|
509
516
|
REPLACEMENT_MODULE_ROUTE,
|
|
510
517
|
handleReplacementModuleRequest,
|
|
511
|
-
isReplacementModuleRequestUrl
|
|
518
|
+
isReplacementModuleRequestUrl,
|
|
519
|
+
resolveReplacementModuleFile
|
|
512
520
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.756 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|