peachsim 0.1.747 → 0.1.749
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/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 +352 -3
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +17 -3
- 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 +17 -3
- package/dist-lib/swift-compile.cjs +19 -3
- package/dist-lib/swift-compile.mjs +18 -3
- 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 +17 -3
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/swift-compile.ts +26 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.749 | (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.749 | (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.749 | (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.749 | (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.749 | (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.749 | (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.749 | (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.749 | (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.749 | (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.749 | (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.749 | (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.749 | (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.749 | (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/plist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.749 | (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/plist.mjs
CHANGED
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.749 | (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.749 | (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.749 | (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/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.749 | (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.749 | (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/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.749 | (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/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.749 | (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.749 | (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;
|
|
@@ -22064,7 +22064,7 @@ function swiftTargetDependencies(files, targets) {
|
|
|
22064
22064
|
}
|
|
22065
22065
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
22066
22066
|
const hash = (0, import_node_crypto3.createHash)("sha256");
|
|
22067
|
-
hash.update(`swift-compile/
|
|
22067
|
+
hash.update(`swift-compile/v17
|
|
22068
22068
|
${release}
|
|
22069
22069
|
`);
|
|
22070
22070
|
if (input.oneModule) hash.update("one-module\n");
|
|
@@ -22563,6 +22563,18 @@ function lowerAnyObjectDoubleValue(source) {
|
|
|
22563
22563
|
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
22564
22564
|
return out;
|
|
22565
22565
|
}
|
|
22566
|
+
function lowerAVAssetURLCluster(source) {
|
|
22567
|
+
const masked = swiftCodeMask(source);
|
|
22568
|
+
const pattern = /\bAVAsset\s*(\.\s*init\s*)?\(\s*url\s*:/g;
|
|
22569
|
+
const edits = [];
|
|
22570
|
+
let hit;
|
|
22571
|
+
while ((hit = pattern.exec(masked)) !== null)
|
|
22572
|
+
edits.push([hit.index, "AVAsset".length, "AVURLAsset"]);
|
|
22573
|
+
let out = source;
|
|
22574
|
+
for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
|
|
22575
|
+
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
22576
|
+
return out;
|
|
22577
|
+
}
|
|
22566
22578
|
function swiftCodeMask(source) {
|
|
22567
22579
|
const chars = source.split("");
|
|
22568
22580
|
const blank = (from, to) => {
|
|
@@ -22766,7 +22778,9 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
|
|
|
22766
22778
|
out += conditioned.slice(copied, at) + replacement;
|
|
22767
22779
|
copied = at + match[0].length;
|
|
22768
22780
|
}
|
|
22769
|
-
return
|
|
22781
|
+
return lowerAVAssetURLCluster(
|
|
22782
|
+
lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
|
|
22783
|
+
);
|
|
22770
22784
|
}
|
|
22771
22785
|
function swiftCodeScan(source) {
|
|
22772
22786
|
const starts = /* @__PURE__ */ new Set();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.749 | (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;
|
|
@@ -37,6 +37,7 @@ __export(swift_compile_exports, {
|
|
|
37
37
|
compileSwiftProjectUnit: () => compileSwiftProjectUnit,
|
|
38
38
|
compileTargets: () => compileTargets,
|
|
39
39
|
emitSwiftPackageManifest: () => emitSwiftPackageManifest,
|
|
40
|
+
lowerAVAssetURLCluster: () => lowerAVAssetURLCluster,
|
|
40
41
|
lowerAnyObjectDoubleValue: () => lowerAnyObjectDoubleValue,
|
|
41
42
|
missingSwiftModules: () => missingSwiftModules,
|
|
42
43
|
objcExtensionMemberIndex: () => objcExtensionMemberIndex,
|
|
@@ -531,7 +532,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
|
|
|
531
532
|
var MULTI_MANIFEST_VERSION = 11;
|
|
532
533
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
533
534
|
const hash = (0, import_node_crypto2.createHash)("sha256");
|
|
534
|
-
hash.update(`swift-compile/
|
|
535
|
+
hash.update(`swift-compile/v17
|
|
535
536
|
${release}
|
|
536
537
|
`);
|
|
537
538
|
if (input.oneModule) hash.update("one-module\n");
|
|
@@ -1050,6 +1051,18 @@ function lowerAnyObjectDoubleValue(source) {
|
|
|
1050
1051
|
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
1051
1052
|
return out;
|
|
1052
1053
|
}
|
|
1054
|
+
function lowerAVAssetURLCluster(source) {
|
|
1055
|
+
const masked = swiftCodeMask(source);
|
|
1056
|
+
const pattern = /\bAVAsset\s*(\.\s*init\s*)?\(\s*url\s*:/g;
|
|
1057
|
+
const edits = [];
|
|
1058
|
+
let hit;
|
|
1059
|
+
while ((hit = pattern.exec(masked)) !== null)
|
|
1060
|
+
edits.push([hit.index, "AVAsset".length, "AVURLAsset"]);
|
|
1061
|
+
let out = source;
|
|
1062
|
+
for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
|
|
1063
|
+
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
1064
|
+
return out;
|
|
1065
|
+
}
|
|
1053
1066
|
function swiftCodeMask(source) {
|
|
1054
1067
|
const chars = source.split("");
|
|
1055
1068
|
const blank = (from, to) => {
|
|
@@ -1253,7 +1266,9 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
|
|
|
1253
1266
|
out += conditioned.slice(copied, at) + replacement;
|
|
1254
1267
|
copied = at + match[0].length;
|
|
1255
1268
|
}
|
|
1256
|
-
return
|
|
1269
|
+
return lowerAVAssetURLCluster(
|
|
1270
|
+
lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
|
|
1271
|
+
);
|
|
1257
1272
|
}
|
|
1258
1273
|
function swiftApplicationEntry(file, source) {
|
|
1259
1274
|
const { tokens } = swiftCodeScan(source);
|
|
@@ -1634,6 +1649,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
1634
1649
|
compileSwiftProjectUnit,
|
|
1635
1650
|
compileTargets,
|
|
1636
1651
|
emitSwiftPackageManifest,
|
|
1652
|
+
lowerAVAssetURLCluster,
|
|
1637
1653
|
lowerAnyObjectDoubleValue,
|
|
1638
1654
|
missingSwiftModules,
|
|
1639
1655
|
objcExtensionMemberIndex,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.749 | (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";
|
|
@@ -484,7 +484,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
|
|
|
484
484
|
var MULTI_MANIFEST_VERSION = 11;
|
|
485
485
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
486
486
|
const hash = createHash2("sha256");
|
|
487
|
-
hash.update(`swift-compile/
|
|
487
|
+
hash.update(`swift-compile/v17
|
|
488
488
|
${release}
|
|
489
489
|
`);
|
|
490
490
|
if (input.oneModule) hash.update("one-module\n");
|
|
@@ -1003,6 +1003,18 @@ function lowerAnyObjectDoubleValue(source) {
|
|
|
1003
1003
|
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
1004
1004
|
return out;
|
|
1005
1005
|
}
|
|
1006
|
+
function lowerAVAssetURLCluster(source) {
|
|
1007
|
+
const masked = swiftCodeMask(source);
|
|
1008
|
+
const pattern = /\bAVAsset\s*(\.\s*init\s*)?\(\s*url\s*:/g;
|
|
1009
|
+
const edits = [];
|
|
1010
|
+
let hit;
|
|
1011
|
+
while ((hit = pattern.exec(masked)) !== null)
|
|
1012
|
+
edits.push([hit.index, "AVAsset".length, "AVURLAsset"]);
|
|
1013
|
+
let out = source;
|
|
1014
|
+
for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
|
|
1015
|
+
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
1016
|
+
return out;
|
|
1017
|
+
}
|
|
1006
1018
|
function swiftCodeMask(source) {
|
|
1007
1019
|
const chars = source.split("");
|
|
1008
1020
|
const blank = (from, to) => {
|
|
@@ -1206,7 +1218,9 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
|
|
|
1206
1218
|
out += conditioned.slice(copied, at) + replacement;
|
|
1207
1219
|
copied = at + match[0].length;
|
|
1208
1220
|
}
|
|
1209
|
-
return
|
|
1221
|
+
return lowerAVAssetURLCluster(
|
|
1222
|
+
lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
|
|
1223
|
+
);
|
|
1210
1224
|
}
|
|
1211
1225
|
function swiftApplicationEntry(file, source) {
|
|
1212
1226
|
const { tokens } = swiftCodeScan(source);
|
|
@@ -1586,6 +1600,7 @@ export {
|
|
|
1586
1600
|
compileSwiftProjectUnit,
|
|
1587
1601
|
compileTargets,
|
|
1588
1602
|
emitSwiftPackageManifest,
|
|
1603
|
+
lowerAVAssetURLCluster,
|
|
1589
1604
|
lowerAnyObjectDoubleValue,
|
|
1590
1605
|
missingSwiftModules,
|
|
1591
1606
|
objcExtensionMemberIndex,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.749 | (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.749 | (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.749 | (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/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.749 | (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/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.749 | (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;
|
|
@@ -924,7 +924,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
|
|
|
924
924
|
var MULTI_MANIFEST_VERSION = 11;
|
|
925
925
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
926
926
|
const hash = (0, import_node_crypto2.createHash)("sha256");
|
|
927
|
-
hash.update(`swift-compile/
|
|
927
|
+
hash.update(`swift-compile/v17
|
|
928
928
|
${release}
|
|
929
929
|
`);
|
|
930
930
|
if (input.oneModule) hash.update("one-module\n");
|
|
@@ -1443,6 +1443,18 @@ function lowerAnyObjectDoubleValue(source) {
|
|
|
1443
1443
|
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
1444
1444
|
return out;
|
|
1445
1445
|
}
|
|
1446
|
+
function lowerAVAssetURLCluster(source) {
|
|
1447
|
+
const masked = swiftCodeMask(source);
|
|
1448
|
+
const pattern = /\bAVAsset\s*(\.\s*init\s*)?\(\s*url\s*:/g;
|
|
1449
|
+
const edits = [];
|
|
1450
|
+
let hit;
|
|
1451
|
+
while ((hit = pattern.exec(masked)) !== null)
|
|
1452
|
+
edits.push([hit.index, "AVAsset".length, "AVURLAsset"]);
|
|
1453
|
+
let out = source;
|
|
1454
|
+
for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
|
|
1455
|
+
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
1456
|
+
return out;
|
|
1457
|
+
}
|
|
1446
1458
|
function swiftCodeMask(source) {
|
|
1447
1459
|
const chars = source.split("");
|
|
1448
1460
|
const blank = (from, to) => {
|
|
@@ -1646,7 +1658,9 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
|
|
|
1646
1658
|
out += conditioned.slice(copied, at) + replacement;
|
|
1647
1659
|
copied = at + match[0].length;
|
|
1648
1660
|
}
|
|
1649
|
-
return
|
|
1661
|
+
return lowerAVAssetURLCluster(
|
|
1662
|
+
lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
|
|
1663
|
+
);
|
|
1650
1664
|
}
|
|
1651
1665
|
function swiftApplicationEntry(file, source) {
|
|
1652
1666
|
const { tokens } = swiftCodeScan(source);
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.749 | (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/package.json
CHANGED
package/src/swift-compile.ts
CHANGED
|
@@ -427,6 +427,7 @@ export function swiftArtifactHash(
|
|
|
427
427
|
moduleRoot: string,
|
|
428
428
|
): string {
|
|
429
429
|
const hash = createHash('sha256')
|
|
430
|
+
// v17: AVAsset(url:) constructs AVURLAsset for the class cluster
|
|
430
431
|
// v16: overrides of @objc extension members rename to __peach_ovr_
|
|
431
432
|
// v15: Foundation-only sources see the platform libc (WASILibc, including
|
|
432
433
|
// math round) and its pthread mutexes (wasi_pthread)
|
|
@@ -440,7 +441,7 @@ export function swiftArtifactHash(
|
|
|
440
441
|
// v6: app and scene delegate classes compile final
|
|
441
442
|
// (v5: a target declaring resources gets SwiftPM's Bundle.module accessor;
|
|
442
443
|
// v4: sources compile through swiftSourceAsIOS)
|
|
443
|
-
hash.update(`swift-compile/
|
|
444
|
+
hash.update(`swift-compile/v17\n${release}\n`)
|
|
444
445
|
if (input.oneModule) hash.update('one-module\n')
|
|
445
446
|
hash.update(swiftModuleDigest(moduleRoot))
|
|
446
447
|
for (const file of Object.keys(input.files).sort()) {
|
|
@@ -1156,6 +1157,27 @@ export function lowerAnyObjectDoubleValue(source: string): string {
|
|
|
1156
1157
|
return out
|
|
1157
1158
|
}
|
|
1158
1159
|
|
|
1160
|
+
// AVAsset(url:) is a class cluster: the sdk vends an AVURLAsset for it
|
|
1161
|
+
// (AVAsset.h: "a newly allocated instance of a subclass of AVAsset").
|
|
1162
|
+
// Swift cannot substitute the subclass inside an initializer, so compiled
|
|
1163
|
+
// sources construct the concrete class directly; only the token changes,
|
|
1164
|
+
// spacing and the argument list stay as written. AVURLAsset(url:) never
|
|
1165
|
+
// matches (\bAVAsset cannot start inside it), and neither do strings,
|
|
1166
|
+
// comments, regex literals or the legacy URL: spelling, which stays on the
|
|
1167
|
+
// trapping stub. the base initializer remains for whatever this misses.
|
|
1168
|
+
export function lowerAVAssetURLCluster(source: string): string {
|
|
1169
|
+
const masked = swiftCodeMask(source)
|
|
1170
|
+
const pattern = /\bAVAsset\s*(\.\s*init\s*)?\(\s*url\s*:/g
|
|
1171
|
+
const edits: [number, number, string][] = []
|
|
1172
|
+
let hit: RegExpExecArray | null
|
|
1173
|
+
while ((hit = pattern.exec(masked)) !== null)
|
|
1174
|
+
edits.push([hit.index, 'AVAsset'.length, 'AVURLAsset'])
|
|
1175
|
+
let out = source
|
|
1176
|
+
for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
|
|
1177
|
+
out = out.slice(0, at) + insert + out.slice(at + remove)
|
|
1178
|
+
return out
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1159
1181
|
// the index-preserving view lowerAnyObjectDoubleValue matches on: every
|
|
1160
1182
|
// char outside code (comments, strings, regex literals) reads as a space,
|
|
1161
1183
|
// so an identifier that survives is code. newlines stay, keeping every
|
|
@@ -1391,7 +1413,9 @@ export function swiftSourceAsIOS(
|
|
|
1391
1413
|
out += conditioned.slice(copied, at) + replacement
|
|
1392
1414
|
copied = at + match[0].length
|
|
1393
1415
|
}
|
|
1394
|
-
return
|
|
1416
|
+
return lowerAVAssetURLCluster(
|
|
1417
|
+
lowerAnyObjectDoubleValue(out + conditioned.slice(copied)),
|
|
1418
|
+
)
|
|
1395
1419
|
}
|
|
1396
1420
|
|
|
1397
1421
|
/** Swift's application entry declarations, ignoring comments and strings. */
|