peachsim 0.1.814 → 0.1.815
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/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 +15 -35
- 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 +14 -34
- 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 +14 -34
- 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 +15 -35
- 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 +14 -34
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/swift-binary-modules.ts +9 -7
- package/src/swift-standin-emit.ts +2 -23
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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.815 | (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/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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;
|
package/dist-lib/menu.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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.815 | (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;
|
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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.815 | (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;
|
package/dist-lib/plist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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/plist.mjs
CHANGED
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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.815 | (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;
|
package/dist-lib/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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.815 | (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/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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;
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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;
|
|
@@ -29769,14 +29769,14 @@ function liftExtensionOverrides(source, extraObjCExtensions) {
|
|
|
29769
29769
|
const args = forwardedArguments(source.slice(open + 1, close));
|
|
29770
29770
|
if (args === null) continue;
|
|
29771
29771
|
const call = (clause.includes("->") ? "return " : "") + (/\b(?:throws|rethrows)\b/.test(clause) ? "try " : "") + (/\basync\b/.test(clause) ? "await " : "") + `__peach_ext_${name2}(${args})`;
|
|
29772
|
-
const
|
|
29772
|
+
const signature = `func ${name2}${func[3] ?? ""}${source.slice(open, close + 1)}${clause ? ` ${clause}` : ""}`;
|
|
29773
29773
|
const nameAt = at + rest.indexOf(name2, rest.indexOf("func", "override".length + func[1].length) + 4);
|
|
29774
29774
|
lifted.push({
|
|
29775
29775
|
type: top.name,
|
|
29776
29776
|
member: name2,
|
|
29777
29777
|
at,
|
|
29778
29778
|
modifiers,
|
|
29779
|
-
decl:
|
|
29779
|
+
decl: signature,
|
|
29780
29780
|
forward: `{ ${call} };`,
|
|
29781
29781
|
nameAt,
|
|
29782
29782
|
edits: [
|
|
@@ -30003,9 +30003,9 @@ function lowerNotificationDelegate(source) {
|
|
|
30003
30003
|
const body = code.slice(open + 1, close - 1);
|
|
30004
30004
|
for (const method of body.matchAll(/\bfunc\s+userNotificationCenter\s*\(/g)) {
|
|
30005
30005
|
const at = open + 1 + method.index;
|
|
30006
|
-
const
|
|
30006
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
30007
30007
|
const label = Object.keys(selectors).find(
|
|
30008
|
-
(name2) => new RegExp(`\\b${name2}\\b`).test(
|
|
30008
|
+
(name2) => new RegExp(`\\b${name2}\\b`).test(signature)
|
|
30009
30009
|
);
|
|
30010
30010
|
if (label) edits.push([at, 0, `@ObjC(${JSON.stringify(selectors[label])}) `]);
|
|
30011
30011
|
}
|
|
@@ -30103,7 +30103,7 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
30103
30103
|
depth--;
|
|
30104
30104
|
if (depth === 1) previous = at + 1;
|
|
30105
30105
|
} else if (depth === 1 && /^func\b/.test(code.slice(at))) {
|
|
30106
|
-
const
|
|
30106
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
30107
30107
|
const prefix = code.slice(previous, at);
|
|
30108
30108
|
const attributes = /(?:@\w+(?:\([^{}]*\))?\s*|(?:public|open|private|fileprivate|internal|final|override|static|class|nonisolated|dynamic)\s+)*$/.exec(
|
|
30109
30109
|
prefix
|
|
@@ -30112,12 +30112,12 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
30112
30112
|
continue;
|
|
30113
30113
|
let selector;
|
|
30114
30114
|
if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
|
|
30115
|
-
|
|
30115
|
+
signature
|
|
30116
30116
|
))
|
|
30117
30117
|
selector = "numberOfSectionsInTableView:";
|
|
30118
30118
|
else {
|
|
30119
30119
|
const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
|
|
30120
|
-
|
|
30120
|
+
signature
|
|
30121
30121
|
);
|
|
30122
30122
|
if (match) selector = selectors[match[1]];
|
|
30123
30123
|
}
|
|
@@ -32363,7 +32363,10 @@ async function range(url, spec) {
|
|
|
32363
32363
|
async function zipEntries(url) {
|
|
32364
32364
|
const { total } = await range(url, "0-0");
|
|
32365
32365
|
const tail = await range(url, `${Math.max(0, total - 65558)}-${total - 1}`);
|
|
32366
|
-
|
|
32366
|
+
let end = tail.bytes.length - 22;
|
|
32367
|
+
for (; end >= 0; end--)
|
|
32368
|
+
if (tail.bytes.readUInt32LE(end) === 101010256 && end + 22 + tail.bytes.readUInt16LE(end + 20) === tail.bytes.length)
|
|
32369
|
+
break;
|
|
32367
32370
|
if (end < 0) throw new Error(`${url} has no zip end record`);
|
|
32368
32371
|
let size = tail.bytes.readUInt32LE(end + 12);
|
|
32369
32372
|
let offset = tail.bytes.readUInt32LE(end + 16);
|
|
@@ -32408,7 +32411,7 @@ async function swiftBinaryModules(binary2) {
|
|
|
32408
32411
|
import_node_fs13.default.writeFileSync(cached4, JSON.stringify(modules));
|
|
32409
32412
|
return modules;
|
|
32410
32413
|
}
|
|
32411
|
-
var import_node_crypto5, import_node_fs13, import_node_os5, import_node_path13, cacheDir2
|
|
32414
|
+
var import_node_crypto5, import_node_fs13, import_node_os5, import_node_path13, cacheDir2;
|
|
32412
32415
|
var init_swift_binary_modules = __esm({
|
|
32413
32416
|
"src/swift-binary-modules.ts"() {
|
|
32414
32417
|
"use strict";
|
|
@@ -32417,11 +32420,6 @@ var init_swift_binary_modules = __esm({
|
|
|
32417
32420
|
import_node_os5 = __toESM(require("node:os"), 1);
|
|
32418
32421
|
import_node_path13 = __toESM(require("node:path"), 1);
|
|
32419
32422
|
cacheDir2 = import_node_path13.default.join(import_node_os5.default.tmpdir(), "peach-swift-binary-modules");
|
|
32420
|
-
signature = (bytes, value) => {
|
|
32421
|
-
const needle = Buffer.alloc(4);
|
|
32422
|
-
needle.writeUInt32LE(value);
|
|
32423
|
-
return bytes.lastIndexOf(needle);
|
|
32424
|
-
};
|
|
32425
32423
|
}
|
|
32426
32424
|
});
|
|
32427
32425
|
|
|
@@ -33315,24 +33313,6 @@ function emitSwiftStandin(graphs, options) {
|
|
|
33315
33313
|
);
|
|
33316
33314
|
continue;
|
|
33317
33315
|
}
|
|
33318
|
-
if (raw2 && list2.includes("Hashable")) {
|
|
33319
|
-
if (leaf(member) === "hash(into:)") {
|
|
33320
|
-
emit(
|
|
33321
|
-
`${inner}public func hash(into hasher: inout Hasher) { hasher.combine(rawValue) }`
|
|
33322
|
-
);
|
|
33323
|
-
continue;
|
|
33324
|
-
}
|
|
33325
|
-
if (leaf(member) === "hashValue") {
|
|
33326
|
-
emit(`${inner}public var hashValue: Int { rawValue.hashValue }`);
|
|
33327
|
-
continue;
|
|
33328
|
-
}
|
|
33329
|
-
if (leaf(member).startsWith("==")) {
|
|
33330
|
-
emit(
|
|
33331
|
-
`${inner}public static func == (lhs: ${shape.name}${shape.generics}, rhs: ${shape.name}${shape.generics}) -> Bool { lhs.rawValue == rhs.rawValue }`
|
|
33332
|
-
);
|
|
33333
|
-
continue;
|
|
33334
|
-
}
|
|
33335
|
-
}
|
|
33336
33316
|
emitMember(member, inner, {
|
|
33337
33317
|
openOwner: false,
|
|
33338
33318
|
inClass: false,
|
|
@@ -33348,7 +33328,7 @@ function emitSwiftStandin(graphs, options) {
|
|
|
33348
33328
|
return void skipped.push({ path: path38, reason: `unparsed enum ${text(symbol)}` });
|
|
33349
33329
|
const members = membersOf(id);
|
|
33350
33330
|
const raw2 = rawType(members);
|
|
33351
|
-
const cases =
|
|
33331
|
+
const cases = members.filter(
|
|
33352
33332
|
(member) => member.kind.identifier === "swift.enum.case"
|
|
33353
33333
|
);
|
|
33354
33334
|
const missing = raw2 ? cases.filter((member) => !values.has(member.identifier.precise)) : [];
|
|
@@ -33572,7 +33552,7 @@ var STANDIN_EMIT_VERSION, TYPE_KINDS, MEMBER_KINDS, ACCESSOR_WORD, KEEP_EXTERNAL
|
|
|
33572
33552
|
var init_swift_standin_emit = __esm({
|
|
33573
33553
|
"src/swift-standin-emit.ts"() {
|
|
33574
33554
|
"use strict";
|
|
33575
|
-
STANDIN_EMIT_VERSION = "
|
|
33555
|
+
STANDIN_EMIT_VERSION = "5";
|
|
33576
33556
|
TYPE_KINDS = /* @__PURE__ */ new Set([
|
|
33577
33557
|
"swift.class",
|
|
33578
33558
|
"swift.struct",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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.815 | (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.815 | (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.815 | (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;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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;
|
|
@@ -2394,14 +2394,14 @@ function liftExtensionOverrides(source, extraObjCExtensions) {
|
|
|
2394
2394
|
const args = forwardedArguments(source.slice(open + 1, close));
|
|
2395
2395
|
if (args === null) continue;
|
|
2396
2396
|
const call = (clause.includes("->") ? "return " : "") + (/\b(?:throws|rethrows)\b/.test(clause) ? "try " : "") + (/\basync\b/.test(clause) ? "await " : "") + `__peach_ext_${name2}(${args})`;
|
|
2397
|
-
const
|
|
2397
|
+
const signature = `func ${name2}${func[3] ?? ""}${source.slice(open, close + 1)}${clause ? ` ${clause}` : ""}`;
|
|
2398
2398
|
const nameAt = at + rest.indexOf(name2, rest.indexOf("func", "override".length + func[1].length) + 4);
|
|
2399
2399
|
lifted.push({
|
|
2400
2400
|
type: top.name,
|
|
2401
2401
|
member: name2,
|
|
2402
2402
|
at,
|
|
2403
2403
|
modifiers,
|
|
2404
|
-
decl:
|
|
2404
|
+
decl: signature,
|
|
2405
2405
|
forward: `{ ${call} };`,
|
|
2406
2406
|
nameAt,
|
|
2407
2407
|
edits: [
|
|
@@ -2628,9 +2628,9 @@ function lowerNotificationDelegate(source) {
|
|
|
2628
2628
|
const body = code.slice(open + 1, close - 1);
|
|
2629
2629
|
for (const method of body.matchAll(/\bfunc\s+userNotificationCenter\s*\(/g)) {
|
|
2630
2630
|
const at = open + 1 + method.index;
|
|
2631
|
-
const
|
|
2631
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
2632
2632
|
const label = Object.keys(selectors).find(
|
|
2633
|
-
(name2) => new RegExp(`\\b${name2}\\b`).test(
|
|
2633
|
+
(name2) => new RegExp(`\\b${name2}\\b`).test(signature)
|
|
2634
2634
|
);
|
|
2635
2635
|
if (label) edits.push([at, 0, `@ObjC(${JSON.stringify(selectors[label])}) `]);
|
|
2636
2636
|
}
|
|
@@ -2728,7 +2728,7 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
2728
2728
|
depth--;
|
|
2729
2729
|
if (depth === 1) previous = at + 1;
|
|
2730
2730
|
} else if (depth === 1 && /^func\b/.test(code.slice(at))) {
|
|
2731
|
-
const
|
|
2731
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
2732
2732
|
const prefix = code.slice(previous, at);
|
|
2733
2733
|
const attributes = /(?:@\w+(?:\([^{}]*\))?\s*|(?:public|open|private|fileprivate|internal|final|override|static|class|nonisolated|dynamic)\s+)*$/.exec(
|
|
2734
2734
|
prefix
|
|
@@ -2737,12 +2737,12 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
2737
2737
|
continue;
|
|
2738
2738
|
let selector;
|
|
2739
2739
|
if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
|
|
2740
|
-
|
|
2740
|
+
signature
|
|
2741
2741
|
))
|
|
2742
2742
|
selector = "numberOfSectionsInTableView:";
|
|
2743
2743
|
else {
|
|
2744
2744
|
const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
|
|
2745
|
-
|
|
2745
|
+
signature
|
|
2746
2746
|
);
|
|
2747
2747
|
if (match) selector = selectors[match[1]];
|
|
2748
2748
|
}
|
|
@@ -4172,15 +4172,13 @@ async function range(url, spec) {
|
|
|
4172
4172
|
total: Number(match[2])
|
|
4173
4173
|
};
|
|
4174
4174
|
}
|
|
4175
|
-
var signature = (bytes, value) => {
|
|
4176
|
-
const needle = Buffer.alloc(4);
|
|
4177
|
-
needle.writeUInt32LE(value);
|
|
4178
|
-
return bytes.lastIndexOf(needle);
|
|
4179
|
-
};
|
|
4180
4175
|
async function zipEntries(url) {
|
|
4181
4176
|
const { total } = await range(url, "0-0");
|
|
4182
4177
|
const tail = await range(url, `${Math.max(0, total - 65558)}-${total - 1}`);
|
|
4183
|
-
|
|
4178
|
+
let end = tail.bytes.length - 22;
|
|
4179
|
+
for (; end >= 0; end--)
|
|
4180
|
+
if (tail.bytes.readUInt32LE(end) === 101010256 && end + 22 + tail.bytes.readUInt16LE(end + 20) === tail.bytes.length)
|
|
4181
|
+
break;
|
|
4184
4182
|
if (end < 0) throw new Error(`${url} has no zip end record`);
|
|
4185
4183
|
let size = tail.bytes.readUInt32LE(end + 12);
|
|
4186
4184
|
let offset = tail.bytes.readUInt32LE(end + 16);
|
|
@@ -5017,7 +5015,7 @@ function getCliVersion() {
|
|
|
5017
5015
|
}
|
|
5018
5016
|
|
|
5019
5017
|
// src/swift-standin-emit.ts
|
|
5020
|
-
var STANDIN_EMIT_VERSION = "
|
|
5018
|
+
var STANDIN_EMIT_VERSION = "5";
|
|
5021
5019
|
var TYPE_KINDS = /* @__PURE__ */ new Set([
|
|
5022
5020
|
"swift.class",
|
|
5023
5021
|
"swift.struct",
|
|
@@ -5455,24 +5453,6 @@ function emitSwiftStandin(graphs, options) {
|
|
|
5455
5453
|
);
|
|
5456
5454
|
continue;
|
|
5457
5455
|
}
|
|
5458
|
-
if (raw2 && list2.includes("Hashable")) {
|
|
5459
|
-
if (leaf(member) === "hash(into:)") {
|
|
5460
|
-
emit(
|
|
5461
|
-
`${inner}public func hash(into hasher: inout Hasher) { hasher.combine(rawValue) }`
|
|
5462
|
-
);
|
|
5463
|
-
continue;
|
|
5464
|
-
}
|
|
5465
|
-
if (leaf(member) === "hashValue") {
|
|
5466
|
-
emit(`${inner}public var hashValue: Int { rawValue.hashValue }`);
|
|
5467
|
-
continue;
|
|
5468
|
-
}
|
|
5469
|
-
if (leaf(member).startsWith("==")) {
|
|
5470
|
-
emit(
|
|
5471
|
-
`${inner}public static func == (lhs: ${shape.name}${shape.generics}, rhs: ${shape.name}${shape.generics}) -> Bool { lhs.rawValue == rhs.rawValue }`
|
|
5472
|
-
);
|
|
5473
|
-
continue;
|
|
5474
|
-
}
|
|
5475
|
-
}
|
|
5476
5456
|
emitMember(member, inner, {
|
|
5477
5457
|
openOwner: false,
|
|
5478
5458
|
inClass: false,
|
|
@@ -5488,7 +5468,7 @@ function emitSwiftStandin(graphs, options) {
|
|
|
5488
5468
|
return void skipped.push({ path: path18, reason: `unparsed enum ${text(symbol)}` });
|
|
5489
5469
|
const members = membersOf(id);
|
|
5490
5470
|
const raw2 = rawType(members);
|
|
5491
|
-
const cases =
|
|
5471
|
+
const cases = members.filter(
|
|
5492
5472
|
(member) => member.kind.identifier === "swift.enum.case"
|
|
5493
5473
|
);
|
|
5494
5474
|
const missing = raw2 ? cases.filter((member) => !values.has(member.identifier.precise)) : [];
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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;
|
package/package.json
CHANGED
|
@@ -40,12 +40,6 @@ async function range(url: string, spec: string) {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
const signature = (bytes: Buffer, value: number) => {
|
|
44
|
-
const needle = Buffer.alloc(4)
|
|
45
|
-
needle.writeUInt32LE(value)
|
|
46
|
-
return bytes.lastIndexOf(needle)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
43
|
// a zip's entry names from its central directory: the end record (at most
|
|
50
44
|
// 22 bytes plus a 64k comment from the end), zip64's when the classic
|
|
51
45
|
// fields overflow, then the directory itself. github's release storage
|
|
@@ -53,7 +47,15 @@ const signature = (bytes: Buffer, value: number) => {
|
|
|
53
47
|
async function zipEntries(url: string): Promise<string[]> {
|
|
54
48
|
const { total } = await range(url, '0-0')
|
|
55
49
|
const tail = await range(url, `${Math.max(0, total - 65558)}-${total - 1}`)
|
|
56
|
-
|
|
50
|
+
// a comment may itself contain the signature; the record's comment length
|
|
51
|
+
// must end exactly at the archive boundary.
|
|
52
|
+
let end = tail.bytes.length - 22
|
|
53
|
+
for (; end >= 0; end--)
|
|
54
|
+
if (
|
|
55
|
+
tail.bytes.readUInt32LE(end) === 0x06054b50 &&
|
|
56
|
+
end + 22 + tail.bytes.readUInt16LE(end + 20) === tail.bytes.length
|
|
57
|
+
)
|
|
58
|
+
break
|
|
57
59
|
if (end < 0) throw new Error(`${url} has no zip end record`)
|
|
58
60
|
let size = tail.bytes.readUInt32LE(end + 12)
|
|
59
61
|
let offset = tail.bytes.readUInt32LE(end + 16)
|
|
@@ -85,7 +85,7 @@ export type StandinResult = {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/** bump when emitted source changes: the stand-in cache keys on it. */
|
|
88
|
-
export const STANDIN_EMIT_VERSION = '
|
|
88
|
+
export const STANDIN_EMIT_VERSION = '5'
|
|
89
89
|
|
|
90
90
|
const TYPE_KINDS = new Set([
|
|
91
91
|
'swift.class',
|
|
@@ -677,27 +677,6 @@ export function emitSwiftStandin(
|
|
|
677
677
|
)
|
|
678
678
|
continue
|
|
679
679
|
}
|
|
680
|
-
// a hashable raw-value struct hashes and equates by its raw
|
|
681
|
-
// value, which is what swift synthesizes when the graph spells
|
|
682
|
-
// the members out; without it any hashed use traps.
|
|
683
|
-
if (raw && list.includes('Hashable')) {
|
|
684
|
-
if (leaf(member) === 'hash(into:)') {
|
|
685
|
-
emit(
|
|
686
|
-
`${inner}public func hash(into hasher: inout Hasher) { hasher.combine(rawValue) }`,
|
|
687
|
-
)
|
|
688
|
-
continue
|
|
689
|
-
}
|
|
690
|
-
if (leaf(member) === 'hashValue') {
|
|
691
|
-
emit(`${inner}public var hashValue: Int { rawValue.hashValue }`)
|
|
692
|
-
continue
|
|
693
|
-
}
|
|
694
|
-
if (leaf(member).startsWith('==')) {
|
|
695
|
-
emit(
|
|
696
|
-
`${inner}public static func == (lhs: ${shape.name}${shape.generics}, rhs: ${shape.name}${shape.generics}) -> Bool { lhs.rawValue == rhs.rawValue }`,
|
|
697
|
-
)
|
|
698
|
-
continue
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
680
|
emitMember(member, inner, {
|
|
702
681
|
openOwner: false,
|
|
703
682
|
inClass: false,
|
|
@@ -713,7 +692,7 @@ export function emitSwiftStandin(
|
|
|
713
692
|
return void skipped.push({ path, reason: `unparsed enum ${text(symbol)}` })
|
|
714
693
|
const members = membersOf(id)
|
|
715
694
|
const raw = rawType(members)
|
|
716
|
-
const cases =
|
|
695
|
+
const cases = members.filter(
|
|
717
696
|
(member) => member.kind.identifier === 'swift.enum.case',
|
|
718
697
|
)
|
|
719
698
|
const missing = raw
|