peachsim 0.1.782 → 0.1.783
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/commands/detox.ts +6 -0
- package/cli/main.ts +1 -0
- 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 +1 -1
- package/dist-lib/detox/index.cjs +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +109 -32
- 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 +1 -1
- 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 +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +111 -34
- 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 +109 -32
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/swift-standin-emit.ts +149 -39
package/cli/commands/detox.ts
CHANGED
|
@@ -48,6 +48,10 @@ it warns when none is reachable; --no-launch skips that check.
|
|
|
48
48
|
`
|
|
49
49
|
|
|
50
50
|
export async function runDetox(args: string[], opts: RunDetoxOpts = {}): Promise<void> {
|
|
51
|
+
const separator = args.indexOf('--')
|
|
52
|
+
const positionalArgs = separator < 0 ? [] : args.slice(separator + 1)
|
|
53
|
+
if (separator >= 0) args = args.slice(0, separator)
|
|
54
|
+
|
|
51
55
|
if (args.includes('--help') || args.includes('-h')) {
|
|
52
56
|
console.log(HELP)
|
|
53
57
|
rnxExit(0)
|
|
@@ -261,6 +265,8 @@ export async function runDetox(args: string[], opts: RunDetoxOpts = {}): Promise
|
|
|
261
265
|
// execution stays on the stable Ignition + TurboFan pipeline under Node 24.
|
|
262
266
|
// normal user detox runs retain their node defaults and resolve jest through npx.
|
|
263
267
|
const command = proofCapture ? 'node' : 'npx'
|
|
268
|
+
// generated jest options must precede its positional-only separator.
|
|
269
|
+
if (separator >= 0) jestArgs.push('--', ...positionalArgs)
|
|
264
270
|
const commandArgs = proofCapture
|
|
265
271
|
? [
|
|
266
272
|
'--no-maglev',
|
package/cli/main.ts
CHANGED
|
@@ -46,6 +46,7 @@ async function handleTopLevelError(err: unknown): Promise<never> {
|
|
|
46
46
|
msg.startsWith(`${rnxPublicBrand.commandName} open: requested bridge port`) ||
|
|
47
47
|
msg.startsWith('background daemon setup is unavailable') ||
|
|
48
48
|
msg.startsWith('non-interactive setup requires ') ||
|
|
49
|
+
msg.startsWith('no live peach world serves ') ||
|
|
49
50
|
msg.startsWith('peach bridge did not start within') ||
|
|
50
51
|
msg.startsWith(
|
|
51
52
|
`package.json already defines scripts.${rnxPublicBrand.commandName} as `,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1385,7 +1385,7 @@ function processIdentity(pid) {
|
|
|
1385
1385
|
}
|
|
1386
1386
|
function softwareChromeAllowed(runtime = currentRuntime()) {
|
|
1387
1387
|
if (runtime.platform !== "linux") return false;
|
|
1388
|
-
return runtime.env.GITHUB_ACTIONS === "true" && runtime.env.RUNNER_OS === "Linux" || runtime.env.CONTRAST_CF_FACTORY_CONTAINER === "1" || runtime.env.PEACH_NATIVE_COMPOSITOR === "1";
|
|
1388
|
+
return runtime.env.CONTRAST_REMOTE_BUILD === "linux" || runtime.env.GITHUB_ACTIONS === "true" && runtime.env.RUNNER_OS === "Linux" || runtime.env.CONTRAST_CF_FACTORY_CONTAINER === "1" || runtime.env.PEACH_NATIVE_COMPOSITOR === "1";
|
|
1389
1389
|
}
|
|
1390
1390
|
function isSoftwareRendererArgument(value) {
|
|
1391
1391
|
const arg = String(value);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -13763,7 +13763,7 @@ var import_node_os7 = __toESM(require("node:os"), 1);
|
|
|
13763
13763
|
var import_node_path16 = __toESM(require("node:path"), 1);
|
|
13764
13764
|
|
|
13765
13765
|
// src/swift-standin-emit.ts
|
|
13766
|
-
var STANDIN_EMIT_VERSION = "
|
|
13766
|
+
var STANDIN_EMIT_VERSION = "2";
|
|
13767
13767
|
var TYPE_KINDS = /* @__PURE__ */ new Set([
|
|
13768
13768
|
"swift.class",
|
|
13769
13769
|
"swift.struct",
|
|
@@ -13781,7 +13781,18 @@ var MEMBER_KINDS = /* @__PURE__ */ new Set([
|
|
|
13781
13781
|
"swift.subscript",
|
|
13782
13782
|
"swift.type.subscript"
|
|
13783
13783
|
]);
|
|
13784
|
-
var
|
|
13784
|
+
var ACCESSOR_WORD = /^(?:get|set|nonmutating|mutating|async|throws|rethrows|_read|_modify)$/;
|
|
13785
|
+
function splitAccessors(core) {
|
|
13786
|
+
const match = /\{\s*([^}]*)\}\s*$/.exec(core);
|
|
13787
|
+
const words = match ? match[1].trim().split(/\s+/).filter(Boolean) : [];
|
|
13788
|
+
const accessors = words.length > 0 && words.every((word) => ACCESSOR_WORD.test(word));
|
|
13789
|
+
return {
|
|
13790
|
+
decl: accessors ? core.slice(0, match.index).trimEnd() : core,
|
|
13791
|
+
effects: `${words.includes("async") ? " async" : ""}${words.includes("throws") ? " throws" : words.includes("rethrows") ? " rethrows" : ""}`,
|
|
13792
|
+
settable: accessors ? words.includes("set") : /^(?:static |class )?var /.test(core),
|
|
13793
|
+
nonmutating: words.includes("nonmutating")
|
|
13794
|
+
};
|
|
13795
|
+
}
|
|
13785
13796
|
var KEEP_EXTERNAL = /* @__PURE__ */ new Map([
|
|
13786
13797
|
["s:SH", "Hashable"],
|
|
13787
13798
|
["s:SQ", "Equatable"],
|
|
@@ -13803,7 +13814,10 @@ var pathOf = (symbol) => symbol.pathComponents.join(".");
|
|
|
13803
13814
|
var unavailable = (symbol) => (symbol.availability ?? []).some(
|
|
13804
13815
|
(entry) => entry.isUnconditionallyUnavailable || entry.obsoleted !== void 0
|
|
13805
13816
|
);
|
|
13806
|
-
var witnessKey = (symbol) => `${symbol.kind.identifier.startsWith("swift.type.") ? "type" : "instance"}|${
|
|
13817
|
+
var witnessKey = (symbol) => `${symbol.kind.identifier.startsWith("swift.type.") ? "type" : "instance"}|${stripDefaults(
|
|
13818
|
+
splitAccessors(text(symbol)).decl
|
|
13819
|
+
).replace(/\s+/g, " ").trim()}`;
|
|
13820
|
+
var sideLeaf = (symbol) => `${symbol.kind.identifier.startsWith("swift.type.") ? "type" : "instance"}|leaf|${leaf(symbol)}`;
|
|
13807
13821
|
var isObjC = (symbol) => symbol.identifier.precise.startsWith("c:");
|
|
13808
13822
|
var trap = (path24) => `fatalError("${path24} is a binary framework peach cannot run")`;
|
|
13809
13823
|
function emitSwiftStandin(graphs, options) {
|
|
@@ -13838,11 +13852,10 @@ function emitSwiftStandin(graphs, options) {
|
|
|
13838
13852
|
if (local) return { name: pathOf(local), local: true };
|
|
13839
13853
|
if (!fallback) return null;
|
|
13840
13854
|
const parts = fallback.split(".");
|
|
13841
|
-
|
|
13842
|
-
|
|
13843
|
-
|
|
13844
|
-
|
|
13845
|
-
};
|
|
13855
|
+
const module2 = parts[0] === "SwiftUICore" ? "SwiftUI" : parts[0];
|
|
13856
|
+
const unqualified = parts.slice(1).join(".") || parts[0];
|
|
13857
|
+
const name2 = family.has(parts[0]) && parts[0] !== "SwiftUICore" ? parts.join(".") : unqualified;
|
|
13858
|
+
return { name: name2, module: module2, local: false };
|
|
13846
13859
|
};
|
|
13847
13860
|
for (const graph of graphs)
|
|
13848
13861
|
for (const edge of graph.relationships) {
|
|
@@ -13897,8 +13910,42 @@ function emitSwiftStandin(graphs, options) {
|
|
|
13897
13910
|
case "overrides":
|
|
13898
13911
|
overrides.add(edge.source);
|
|
13899
13912
|
break;
|
|
13913
|
+
case "defaultImplementationOf":
|
|
13914
|
+
break;
|
|
13900
13915
|
}
|
|
13901
13916
|
}
|
|
13917
|
+
const requirementProtocol = /* @__PURE__ */ new Map();
|
|
13918
|
+
const hasDefault = /* @__PURE__ */ new Set();
|
|
13919
|
+
for (const graph of graphs)
|
|
13920
|
+
for (const edge of graph.relationships) {
|
|
13921
|
+
if ((edge.kind === "requirementOf" || edge.kind === "optionalRequirementOf") && byId.has(edge.target))
|
|
13922
|
+
requirementProtocol.set(edge.source, edge.target);
|
|
13923
|
+
if (edge.kind === "defaultImplementationOf") hasDefault.add(edge.target);
|
|
13924
|
+
}
|
|
13925
|
+
for (const graph of graphs)
|
|
13926
|
+
for (const edge of graph.relationships) {
|
|
13927
|
+
if (edge.kind !== "defaultImplementationOf" || !byId.has(edge.source) || owner.has(edge.source))
|
|
13928
|
+
continue;
|
|
13929
|
+
const protocolId = requirementProtocol.get(edge.target);
|
|
13930
|
+
if (!protocolId) continue;
|
|
13931
|
+
owner.set(edge.source, protocolId);
|
|
13932
|
+
children.set(protocolId, [...children.get(protocolId) ?? [], ...all(edge.source)]);
|
|
13933
|
+
}
|
|
13934
|
+
const typeByPath = /* @__PURE__ */ new Map();
|
|
13935
|
+
for (const symbol of byId.values())
|
|
13936
|
+
if (TYPE_KINDS.has(symbol.kind.identifier))
|
|
13937
|
+
typeByPath.set(pathOf(symbol), symbol.identifier.precise);
|
|
13938
|
+
for (const symbol of byId.values()) {
|
|
13939
|
+
if (owner.has(symbol.identifier.precise) || symbol.pathComponents.length < 2) continue;
|
|
13940
|
+
if (TYPE_KINDS.has(symbol.kind.identifier)) continue;
|
|
13941
|
+
const parent = typeByPath.get(symbol.pathComponents.slice(0, -1).join("."));
|
|
13942
|
+
if (!parent) continue;
|
|
13943
|
+
owner.set(symbol.identifier.precise, parent);
|
|
13944
|
+
children.set(parent, [
|
|
13945
|
+
...children.get(parent) ?? [],
|
|
13946
|
+
...all(symbol.identifier.precise)
|
|
13947
|
+
]);
|
|
13948
|
+
}
|
|
13902
13949
|
const lines = [];
|
|
13903
13950
|
const owners = [];
|
|
13904
13951
|
const omit = options.omit ?? /* @__PURE__ */ new Map();
|
|
@@ -13923,7 +13970,7 @@ function emitSwiftStandin(graphs, options) {
|
|
|
13923
13970
|
const seen = /* @__PURE__ */ new Set();
|
|
13924
13971
|
return (children.get(id) ?? []).filter((member) => {
|
|
13925
13972
|
if (unavailable(member)) return false;
|
|
13926
|
-
const key2 = `${member.kind.identifier}|${text(member)}`;
|
|
13973
|
+
const key2 = `${member.kind.identifier}|${requirement.has(member.identifier.precise) ? "req" : "ext"}|${text(member)}`;
|
|
13927
13974
|
if (seen.has(key2)) return false;
|
|
13928
13975
|
seen.add(key2);
|
|
13929
13976
|
return true;
|
|
@@ -13952,8 +13999,8 @@ function emitSwiftStandin(graphs, options) {
|
|
|
13952
13999
|
const required = context.inClass && flags.has("required");
|
|
13953
14000
|
const final = context.inClass && flags.has("final") ? "final " : "";
|
|
13954
14001
|
const mutating = flags.has("mutating") ? "mutating " : flags.has("nonmutating") ? "nonmutating " : "";
|
|
13955
|
-
let core = `${
|
|
13956
|
-
const override = context.inClass && !options.plain?.has(path24) && (flags.has("override") || overrides.has(member.identifier.precise) || isObjC(member) && path24.endsWith(".init()")) ? "override " : "";
|
|
14002
|
+
let core = `${flags.has("convenience") ? "convenience " : ""}${modifiers[2]}`;
|
|
14003
|
+
const override = context.inClass && !options.plain?.has(path24) && (flags.has("override") || overrides.has(member.identifier.precise) || options.forcedOverride?.has(path24) || isObjC(member) && path24.endsWith(".init()")) ? "override " : "";
|
|
13957
14004
|
const head = `${indent}${attrs}${access(member, context.openOwner)} ${required ? "required " : ""}${final}${override}${mutating}`;
|
|
13958
14005
|
const measured = behavior.get(path24);
|
|
13959
14006
|
if (measured) used.add(path24);
|
|
@@ -13964,10 +14011,10 @@ function emitSwiftStandin(graphs, options) {
|
|
|
13964
14011
|
case "swift.type.property":
|
|
13965
14012
|
case "swift.subscript":
|
|
13966
14013
|
case "swift.type.subscript": {
|
|
13967
|
-
const
|
|
13968
|
-
const decl =
|
|
13969
|
-
const effects =
|
|
13970
|
-
const settable =
|
|
14014
|
+
const parsed = splitAccessors(core);
|
|
14015
|
+
const decl = parsed.decl;
|
|
14016
|
+
const effects = parsed.effects;
|
|
14017
|
+
const settable = parsed.settable;
|
|
13971
14018
|
const computed = decl.replace(/^((?:static |class )*)let /, "$1var ");
|
|
13972
14019
|
if (measured?.stored !== void 0) {
|
|
13973
14020
|
const ownership = flags.has("weak") ? "weak " : flags.has("unowned") ? "unowned " : "";
|
|
@@ -13979,7 +14026,7 @@ function emitSwiftStandin(graphs, options) {
|
|
|
13979
14026
|
return;
|
|
13980
14027
|
}
|
|
13981
14028
|
emit(
|
|
13982
|
-
`${head}${computed} { get${effects} { ${body} }${settable && !effects ? ` set { ${measured?.set ?? trap(path24)} }` : ""} }`
|
|
14029
|
+
`${head}${computed} { get${effects} { ${body} }${settable && !effects ? ` ${parsed.nonmutating ? "nonmutating " : ""}set { ${measured?.set ?? trap(path24)} }` : ""} }`
|
|
13983
14030
|
);
|
|
13984
14031
|
return;
|
|
13985
14032
|
}
|
|
@@ -14074,7 +14121,18 @@ function emitSwiftStandin(graphs, options) {
|
|
|
14074
14121
|
);
|
|
14075
14122
|
const have = /* @__PURE__ */ new Set();
|
|
14076
14123
|
for (let at = id; at; at = superId.get(at))
|
|
14077
|
-
for (const member of children.get(at) ?? [])
|
|
14124
|
+
for (const member of children.get(at) ?? []) {
|
|
14125
|
+
have.add(witnessKey(member));
|
|
14126
|
+
have.add(sideLeaf(member));
|
|
14127
|
+
}
|
|
14128
|
+
const covered = /* @__PURE__ */ new Set();
|
|
14129
|
+
const cover = (protocolId) => {
|
|
14130
|
+
if (covered.has(protocolId)) return;
|
|
14131
|
+
covered.add(protocolId);
|
|
14132
|
+
for (const edge of protocolParents.get(protocolId) ?? []) cover(edge);
|
|
14133
|
+
};
|
|
14134
|
+
for (let at = superId.get(id); at; at = superId.get(at))
|
|
14135
|
+
for (const protocolId of conformIds.get(at) ?? []) cover(protocolId);
|
|
14078
14136
|
const protocols = [];
|
|
14079
14137
|
const visit3 = (protocolId) => {
|
|
14080
14138
|
if (protocols.includes(protocolId)) return;
|
|
@@ -14082,16 +14140,28 @@ function emitSwiftStandin(graphs, options) {
|
|
|
14082
14140
|
for (const edge of protocolParents.get(protocolId) ?? []) visit3(edge);
|
|
14083
14141
|
};
|
|
14084
14142
|
for (const protocolId of conformIds.get(id) ?? []) visit3(protocolId);
|
|
14143
|
+
const overloaded = /* @__PURE__ */ new Set();
|
|
14144
|
+
const named = /* @__PURE__ */ new Set();
|
|
14085
14145
|
for (const protocolId of protocols)
|
|
14146
|
+
for (const member of children.get(protocolId) ?? []) {
|
|
14147
|
+
if (!requirement.has(member.identifier.precise)) continue;
|
|
14148
|
+
if (named.has(sideLeaf(member))) overloaded.add(sideLeaf(member));
|
|
14149
|
+
named.add(sideLeaf(member));
|
|
14150
|
+
}
|
|
14151
|
+
const met = (member) => have.has(witnessKey(member)) || !overloaded.has(sideLeaf(member)) && have.has(sideLeaf(member));
|
|
14152
|
+
for (const protocolId of protocols) {
|
|
14153
|
+
if (covered.has(protocolId)) continue;
|
|
14086
14154
|
for (const member of children.get(protocolId) ?? []) {
|
|
14087
14155
|
if (!requirement.has(member.identifier.precise) || optional.has(member.identifier.precise))
|
|
14088
14156
|
continue;
|
|
14157
|
+
if (hasDefault.has(member.identifier.precise)) continue;
|
|
14089
14158
|
if (isObjC(member) && / async\b/.test(text(member))) continue;
|
|
14090
|
-
if (
|
|
14091
|
-
continue;
|
|
14159
|
+
if (met(member) || member.kind.identifier === "swift.associatedtype") continue;
|
|
14092
14160
|
have.add(witnessKey(member));
|
|
14161
|
+
have.add(sideLeaf(member));
|
|
14093
14162
|
emitWitness(member, inner, path24);
|
|
14094
14163
|
}
|
|
14164
|
+
}
|
|
14095
14165
|
const coder = members.some((member) => leaf(member) === "init(coder:)");
|
|
14096
14166
|
if (designated && !coder && externalRoot(id) !== "NSObject" && externalRoot(id) !== null)
|
|
14097
14167
|
emit(
|
|
@@ -14204,7 +14274,8 @@ function emitSwiftStandin(graphs, options) {
|
|
|
14204
14274
|
continue;
|
|
14205
14275
|
}
|
|
14206
14276
|
emitRequirement(member, inner);
|
|
14207
|
-
if (optional.has(member.identifier.precise)
|
|
14277
|
+
if (optional.has(member.identifier.precise) && !hasDefault.has(member.identifier.precise))
|
|
14278
|
+
defaults.push(member);
|
|
14208
14279
|
}
|
|
14209
14280
|
emit(`${indent}}`);
|
|
14210
14281
|
if (defaults.length > 0) {
|
|
@@ -14233,11 +14304,9 @@ function emitSwiftStandin(graphs, options) {
|
|
|
14233
14304
|
const witness = `${owner2}.${leaf(member)}`;
|
|
14234
14305
|
const body = trap(witness);
|
|
14235
14306
|
if (member.kind.identifier === "swift.property" || member.kind.identifier === "swift.type.property") {
|
|
14236
|
-
const
|
|
14237
|
-
const
|
|
14238
|
-
emit(
|
|
14239
|
-
`${indent}public ${bare} { get { ${body} }${accessors?.[3] ? ` set { ${body} }` : ""} }`
|
|
14240
|
-
);
|
|
14307
|
+
const parsed = splitAccessors(decl);
|
|
14308
|
+
const setter = parsed.settable ? ` ${parsed.nonmutating ? "nonmutating " : ""}set { ${body} }` : "";
|
|
14309
|
+
emit(`${indent}public ${parsed.decl} { get${parsed.effects} { ${body} }${setter} }`);
|
|
14241
14310
|
} else
|
|
14242
14311
|
emit(
|
|
14243
14312
|
`${indent}public ${member.kind.identifier === "swift.init" ? "required " : ""}${stripDefaults(decl)} { ${body} }`
|
|
@@ -14258,15 +14327,23 @@ function emitSwiftStandin(graphs, options) {
|
|
|
14258
14327
|
};
|
|
14259
14328
|
const emitGlobal = scoped((symbol) => {
|
|
14260
14329
|
const path24 = pathOf(symbol);
|
|
14261
|
-
|
|
14330
|
+
const kind = symbol.kind.identifier;
|
|
14331
|
+
if (kind === "swift.func" || kind === "swift.func.op" || kind === "swift.method" || kind === "swift.type.method") {
|
|
14262
14332
|
const { 1: attrs, 2: rest } = LEADING_ATTRS.exec(text(symbol));
|
|
14263
|
-
|
|
14264
|
-
|
|
14265
|
-
|
|
14333
|
+
let spelled = rest;
|
|
14334
|
+
if (kind === "swift.func.op") {
|
|
14335
|
+
const token = /func\s+(\S+)/.exec(spelled)?.[1];
|
|
14336
|
+
const fix = token ? options.operators?.get(token) : void 0;
|
|
14337
|
+
if (fix && !/^(?:prefix|infix|postfix)\b/.test(spelled))
|
|
14338
|
+
spelled = `${fix} ${spelled}`;
|
|
14339
|
+
}
|
|
14340
|
+
emit(`${attrs}public ${spelled} { ${trap(path24)} }`);
|
|
14341
|
+
} else if (kind === "swift.var") {
|
|
14342
|
+
const parsed = splitAccessors(text(symbol).replace(/^let /, "var "));
|
|
14266
14343
|
const measured = behavior.get(path24);
|
|
14267
14344
|
if (measured) used.add(path24);
|
|
14268
|
-
emit(`public ${decl} { ${measured?.body ?? trap(path24)} }`);
|
|
14269
|
-
} else skipped.push({ path: path24, reason: `unhandled top-level ${
|
|
14345
|
+
emit(`public ${parsed.decl} { ${measured?.body ?? trap(path24)} }`);
|
|
14346
|
+
} else skipped.push({ path: path24, reason: `unhandled top-level ${kind}` });
|
|
14270
14347
|
});
|
|
14271
14348
|
const roots = [...byId.values()].filter((symbol) => !owner.has(symbol.identifier.precise) && !unavailable(symbol)).sort((a, b) => pathOf(a).localeCompare(pathOf(b)));
|
|
14272
14349
|
for (const symbol of roots) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
package/dist-lib/menu.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.783 | (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;
|