peachsim 0.1.795 → 0.1.797
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/cloud-test-tunnel.ts +1 -1
- package/cli/outbound-endpoints.ts +6 -1
- 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/bundle-channel.cjs +383 -355
- 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 +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 +357 -336
- 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 +680 -575
- 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 +401 -178
- 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.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 +85 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +976 -851
- package/dist-lib/swift-compile.cjs +18 -4
- package/dist-lib/swift-compile.mjs +18 -4
- 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 +416 -368
- package/dist-lib/vite.cjs +240 -15
- package/package.json +1 -1
- package/scripts/dev-server-scanner.ts +16 -5
- package/src/expo-swift-host.ts +8 -4
- package/src/one-widget-discovery.ts +17 -0
- package/src/one-widget-metadata.ts +208 -0
- package/src/one-widget-package.ts +11 -165
- package/src/oneWidgetContract.ts +122 -0
- package/src/swift-compile.ts +21 -3
- package/src/swift-distribution.lock.json +11 -11
- package/src/swift-host.ts +2 -48
- package/src/swift-source-file.ts +48 -0
- package/src/vite-plugin-one.ts +18 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.797 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -636,7 +636,7 @@ var importsSpriteKit = (files) => Object.entries(files).some(
|
|
|
636
636
|
);
|
|
637
637
|
var FOUNDATION_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "PeachObjC", "-Xfrontend", "-import-module", "-Xfrontend", "Dispatch", "-Xfrontend", "-import-module", "-Xfrontend", "FoundationNetworking", "-Xfrontend", "-import-module", "-Xfrontend", "WASILibc", "-Xfrontend", "-import-module", "-Xfrontend", "wasi_pthread"';
|
|
638
638
|
var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"';
|
|
639
|
-
var MULTI_MANIFEST_VERSION =
|
|
639
|
+
var MULTI_MANIFEST_VERSION = 12;
|
|
640
640
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
641
641
|
const hash = (0, import_node_crypto2.createHash)("sha256");
|
|
642
642
|
hash.update(`swift-compile/v18
|
|
@@ -687,8 +687,12 @@ function emitSwiftPackageManifest(args) {
|
|
|
687
687
|
(name) => OPTIONAL_FRAMEWORKS.has(name) && !targets.some((target) => target.name === name)
|
|
688
688
|
).flatMap((name) => [name, ...OPTIONAL_FRAMEWORK_DEPENDENCIES[name] ?? []])
|
|
689
689
|
);
|
|
690
|
+
if (spriteKit) {
|
|
691
|
+
reachedFrameworks.add("SpriteKit");
|
|
692
|
+
reachedFrameworks.add("PeachBox2D");
|
|
693
|
+
}
|
|
690
694
|
const distributionObjects = distribution?.objects.filter(
|
|
691
|
-
(object) => [...OPTIONAL_FRAMEWORKS].every(
|
|
695
|
+
(object) => [...OPTIONAL_FRAMEWORKS, "SpriteKit", "PeachBox2D"].every(
|
|
692
696
|
(name) => !object.startsWith(`lib/${name}-`) || reachedFrameworks.has(name)
|
|
693
697
|
)
|
|
694
698
|
);
|
|
@@ -1891,7 +1895,17 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
1891
1895
|
])
|
|
1892
1896
|
],
|
|
1893
1897
|
{
|
|
1894
|
-
env:
|
|
1898
|
+
env: {
|
|
1899
|
+
...BUILD_ENV,
|
|
1900
|
+
// shipped host plugins resolve against the selected compiler's runtime.
|
|
1901
|
+
...process.platform === "linux" ? {
|
|
1902
|
+
LD_LIBRARY_PATH: [
|
|
1903
|
+
import_node_path2.default.resolve(options.toolchainBin, "../lib/swift/linux"),
|
|
1904
|
+
import_node_path2.default.resolve(options.toolchainBin, "../lib/swift/host"),
|
|
1905
|
+
process.env.LD_LIBRARY_PATH
|
|
1906
|
+
].filter(Boolean).join(":")
|
|
1907
|
+
} : {}
|
|
1908
|
+
},
|
|
1895
1909
|
maxBuffer: 64 * 1024 * 1024,
|
|
1896
1910
|
timeout: options.timeoutMs
|
|
1897
1911
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.797 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import { execFile as execFile2, execFileSync } from "node:child_process";
|
|
@@ -584,7 +584,7 @@ var importsSpriteKit = (files) => Object.entries(files).some(
|
|
|
584
584
|
);
|
|
585
585
|
var FOUNDATION_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "PeachObjC", "-Xfrontend", "-import-module", "-Xfrontend", "Dispatch", "-Xfrontend", "-import-module", "-Xfrontend", "FoundationNetworking", "-Xfrontend", "-import-module", "-Xfrontend", "WASILibc", "-Xfrontend", "-import-module", "-Xfrontend", "wasi_pthread"';
|
|
586
586
|
var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"';
|
|
587
|
-
var MULTI_MANIFEST_VERSION =
|
|
587
|
+
var MULTI_MANIFEST_VERSION = 12;
|
|
588
588
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
589
589
|
const hash = createHash2("sha256");
|
|
590
590
|
hash.update(`swift-compile/v18
|
|
@@ -635,8 +635,12 @@ function emitSwiftPackageManifest(args) {
|
|
|
635
635
|
(name) => OPTIONAL_FRAMEWORKS.has(name) && !targets.some((target) => target.name === name)
|
|
636
636
|
).flatMap((name) => [name, ...OPTIONAL_FRAMEWORK_DEPENDENCIES[name] ?? []])
|
|
637
637
|
);
|
|
638
|
+
if (spriteKit) {
|
|
639
|
+
reachedFrameworks.add("SpriteKit");
|
|
640
|
+
reachedFrameworks.add("PeachBox2D");
|
|
641
|
+
}
|
|
638
642
|
const distributionObjects = distribution?.objects.filter(
|
|
639
|
-
(object) => [...OPTIONAL_FRAMEWORKS].every(
|
|
643
|
+
(object) => [...OPTIONAL_FRAMEWORKS, "SpriteKit", "PeachBox2D"].every(
|
|
640
644
|
(name) => !object.startsWith(`lib/${name}-`) || reachedFrameworks.has(name)
|
|
641
645
|
)
|
|
642
646
|
);
|
|
@@ -1839,7 +1843,17 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
1839
1843
|
])
|
|
1840
1844
|
],
|
|
1841
1845
|
{
|
|
1842
|
-
env:
|
|
1846
|
+
env: {
|
|
1847
|
+
...BUILD_ENV,
|
|
1848
|
+
// shipped host plugins resolve against the selected compiler's runtime.
|
|
1849
|
+
...process.platform === "linux" ? {
|
|
1850
|
+
LD_LIBRARY_PATH: [
|
|
1851
|
+
path2.resolve(options.toolchainBin, "../lib/swift/linux"),
|
|
1852
|
+
path2.resolve(options.toolchainBin, "../lib/swift/host"),
|
|
1853
|
+
process.env.LD_LIBRARY_PATH
|
|
1854
|
+
].filter(Boolean).join(":")
|
|
1855
|
+
} : {}
|
|
1856
|
+
},
|
|
1843
1857
|
maxBuffer: 64 * 1024 * 1024,
|
|
1844
1858
|
timeout: options.timeoutMs
|
|
1845
1859
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.797 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.797 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.797 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.797 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|