peachsim 0.1.796 → 0.1.798
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 -346
- 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 +356 -326
- 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 +679 -565
- 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 -842
- package/dist-lib/swift-compile.cjs +30 -5
- package/dist-lib/swift-compile.mjs +29 -5
- 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 +415 -358
- 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 +31 -5
- 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.798 | (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;
|
|
@@ -32,6 +32,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
32
32
|
// src/swift-compile.ts
|
|
33
33
|
var swift_compile_exports = {};
|
|
34
34
|
__export(swift_compile_exports, {
|
|
35
|
+
FOUNDATION_IMPLICIT_MODULES: () => FOUNDATION_IMPLICIT_MODULES,
|
|
35
36
|
MULTI_MANIFEST_VERSION: () => MULTI_MANIFEST_VERSION,
|
|
36
37
|
clearLinkedModuleDigests: () => clearLinkedModuleDigests,
|
|
37
38
|
compileSwiftProjectUnit: () => compileSwiftProjectUnit,
|
|
@@ -634,9 +635,18 @@ var SPRITEKIT_PRODUCT = '.product(name: "SpriteKit", package: "sootsim-swift")';
|
|
|
634
635
|
var importsSpriteKit = (files) => Object.entries(files).some(
|
|
635
636
|
([file, contents]) => file.endsWith(".swift") && swiftImportNames(contents).includes("SpriteKit")
|
|
636
637
|
);
|
|
637
|
-
var
|
|
638
|
+
var FOUNDATION_IMPLICIT_MODULES = [
|
|
639
|
+
"PeachObjC",
|
|
640
|
+
"Dispatch",
|
|
641
|
+
"FoundationNetworking",
|
|
642
|
+
"WASILibc",
|
|
643
|
+
"wasi_pthread"
|
|
644
|
+
];
|
|
645
|
+
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
646
|
+
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
647
|
+
).join("");
|
|
638
648
|
var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"';
|
|
639
|
-
var MULTI_MANIFEST_VERSION =
|
|
649
|
+
var MULTI_MANIFEST_VERSION = 12;
|
|
640
650
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
641
651
|
const hash = (0, import_node_crypto2.createHash)("sha256");
|
|
642
652
|
hash.update(`swift-compile/v18
|
|
@@ -687,8 +697,12 @@ function emitSwiftPackageManifest(args) {
|
|
|
687
697
|
(name) => OPTIONAL_FRAMEWORKS.has(name) && !targets.some((target) => target.name === name)
|
|
688
698
|
).flatMap((name) => [name, ...OPTIONAL_FRAMEWORK_DEPENDENCIES[name] ?? []])
|
|
689
699
|
);
|
|
700
|
+
if (spriteKit) {
|
|
701
|
+
reachedFrameworks.add("SpriteKit");
|
|
702
|
+
reachedFrameworks.add("PeachBox2D");
|
|
703
|
+
}
|
|
690
704
|
const distributionObjects = distribution?.objects.filter(
|
|
691
|
-
(object) => [...OPTIONAL_FRAMEWORKS].every(
|
|
705
|
+
(object) => [...OPTIONAL_FRAMEWORKS, "SpriteKit", "PeachBox2D"].every(
|
|
692
706
|
(name) => !object.startsWith(`lib/${name}-`) || reachedFrameworks.has(name)
|
|
693
707
|
)
|
|
694
708
|
);
|
|
@@ -1891,7 +1905,17 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
1891
1905
|
])
|
|
1892
1906
|
],
|
|
1893
1907
|
{
|
|
1894
|
-
env:
|
|
1908
|
+
env: {
|
|
1909
|
+
...BUILD_ENV,
|
|
1910
|
+
// shipped host plugins resolve against the selected compiler's runtime.
|
|
1911
|
+
...process.platform === "linux" ? {
|
|
1912
|
+
LD_LIBRARY_PATH: [
|
|
1913
|
+
import_node_path2.default.resolve(options.toolchainBin, "../lib/swift/linux"),
|
|
1914
|
+
import_node_path2.default.resolve(options.toolchainBin, "../lib/swift/host"),
|
|
1915
|
+
process.env.LD_LIBRARY_PATH
|
|
1916
|
+
].filter(Boolean).join(":")
|
|
1917
|
+
} : {}
|
|
1918
|
+
},
|
|
1895
1919
|
maxBuffer: 64 * 1024 * 1024,
|
|
1896
1920
|
timeout: options.timeoutMs
|
|
1897
1921
|
}
|
|
@@ -1910,6 +1934,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
1910
1934
|
}
|
|
1911
1935
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1912
1936
|
0 && (module.exports = {
|
|
1937
|
+
FOUNDATION_IMPLICIT_MODULES,
|
|
1913
1938
|
MULTI_MANIFEST_VERSION,
|
|
1914
1939
|
clearLinkedModuleDigests,
|
|
1915
1940
|
compileSwiftProjectUnit,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.798 | (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";
|
|
@@ -582,9 +582,18 @@ var SPRITEKIT_PRODUCT = '.product(name: "SpriteKit", package: "sootsim-swift")';
|
|
|
582
582
|
var importsSpriteKit = (files) => Object.entries(files).some(
|
|
583
583
|
([file, contents]) => file.endsWith(".swift") && swiftImportNames(contents).includes("SpriteKit")
|
|
584
584
|
);
|
|
585
|
-
var
|
|
585
|
+
var FOUNDATION_IMPLICIT_MODULES = [
|
|
586
|
+
"PeachObjC",
|
|
587
|
+
"Dispatch",
|
|
588
|
+
"FoundationNetworking",
|
|
589
|
+
"WASILibc",
|
|
590
|
+
"wasi_pthread"
|
|
591
|
+
];
|
|
592
|
+
var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
593
|
+
(module) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module}"`
|
|
594
|
+
).join("");
|
|
586
595
|
var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"';
|
|
587
|
-
var MULTI_MANIFEST_VERSION =
|
|
596
|
+
var MULTI_MANIFEST_VERSION = 12;
|
|
588
597
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
589
598
|
const hash = createHash2("sha256");
|
|
590
599
|
hash.update(`swift-compile/v18
|
|
@@ -635,8 +644,12 @@ function emitSwiftPackageManifest(args) {
|
|
|
635
644
|
(name) => OPTIONAL_FRAMEWORKS.has(name) && !targets.some((target) => target.name === name)
|
|
636
645
|
).flatMap((name) => [name, ...OPTIONAL_FRAMEWORK_DEPENDENCIES[name] ?? []])
|
|
637
646
|
);
|
|
647
|
+
if (spriteKit) {
|
|
648
|
+
reachedFrameworks.add("SpriteKit");
|
|
649
|
+
reachedFrameworks.add("PeachBox2D");
|
|
650
|
+
}
|
|
638
651
|
const distributionObjects = distribution?.objects.filter(
|
|
639
|
-
(object) => [...OPTIONAL_FRAMEWORKS].every(
|
|
652
|
+
(object) => [...OPTIONAL_FRAMEWORKS, "SpriteKit", "PeachBox2D"].every(
|
|
640
653
|
(name) => !object.startsWith(`lib/${name}-`) || reachedFrameworks.has(name)
|
|
641
654
|
)
|
|
642
655
|
);
|
|
@@ -1839,7 +1852,17 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
1839
1852
|
])
|
|
1840
1853
|
],
|
|
1841
1854
|
{
|
|
1842
|
-
env:
|
|
1855
|
+
env: {
|
|
1856
|
+
...BUILD_ENV,
|
|
1857
|
+
// shipped host plugins resolve against the selected compiler's runtime.
|
|
1858
|
+
...process.platform === "linux" ? {
|
|
1859
|
+
LD_LIBRARY_PATH: [
|
|
1860
|
+
path2.resolve(options.toolchainBin, "../lib/swift/linux"),
|
|
1861
|
+
path2.resolve(options.toolchainBin, "../lib/swift/host"),
|
|
1862
|
+
process.env.LD_LIBRARY_PATH
|
|
1863
|
+
].filter(Boolean).join(":")
|
|
1864
|
+
} : {}
|
|
1865
|
+
},
|
|
1843
1866
|
maxBuffer: 64 * 1024 * 1024,
|
|
1844
1867
|
timeout: options.timeoutMs
|
|
1845
1868
|
}
|
|
@@ -1857,6 +1880,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
1857
1880
|
});
|
|
1858
1881
|
}
|
|
1859
1882
|
export {
|
|
1883
|
+
FOUNDATION_IMPLICIT_MODULES,
|
|
1860
1884
|
MULTI_MANIFEST_VERSION,
|
|
1861
1885
|
clearLinkedModuleDigests,
|
|
1862
1886
|
compileSwiftProjectUnit,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.798 | (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.798 | (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.798 | (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.798 | (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;
|