peachsim 0.1.770 → 0.1.772
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/main.ts +5 -1
- package/cli/outbound-endpoints.ts +1 -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/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/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +16 -4
- 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 +16 -4
- package/dist-lib/swift-compile.cjs +18 -4
- package/dist-lib/swift-compile.mjs +17 -4
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +16 -4
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/swift-compile.ts +28 -3
package/cli/main.ts
CHANGED
|
@@ -45,14 +45,18 @@ async function handleTopLevelError(err: unknown): Promise<never> {
|
|
|
45
45
|
msg.startsWith('peach bridge exited before becoming ready') ||
|
|
46
46
|
msg.startsWith(`${rnxPublicBrand.commandName} open: requested bridge port`) ||
|
|
47
47
|
msg.startsWith('background daemon setup is unavailable') ||
|
|
48
|
+
msg.startsWith('non-interactive setup requires ') ||
|
|
48
49
|
msg.startsWith('peach bridge did not start within') ||
|
|
50
|
+
msg.startsWith(
|
|
51
|
+
`package.json already defines scripts.${rnxPublicBrand.commandName} as `,
|
|
52
|
+
) ||
|
|
49
53
|
msg.startsWith('could not resolve a native bundle for ')
|
|
50
54
|
if (isKnownCliFailure && !process.env.SOOTSIM_VERBOSE) {
|
|
51
55
|
process.stderr.write(` ${msg}\n`)
|
|
52
56
|
process.exit(1)
|
|
53
57
|
}
|
|
54
58
|
// an unexpected crash is ours to fix: it goes to the issue queue on its own
|
|
55
|
-
await reportCliCrash(err)
|
|
59
|
+
if (!isKnownCliFailure) await reportCliCrash(err)
|
|
56
60
|
// bun can render an async-thrown error's stack with a bare `Error` header, so
|
|
57
61
|
// the message always goes first.
|
|
58
62
|
process.stderr.write(` ${msg}\n`)
|
|
@@ -555,7 +555,7 @@ export const DECLARED_OUTBOUND_CALLS: Record<string, OutboundCallDeclaration> =
|
|
|
555
555
|
category: 'guest_app_network',
|
|
556
556
|
count: 1,
|
|
557
557
|
},
|
|
558
|
-
'packages/peach-engine/src/render-worker/map-host.ts :: fetch :: url': {
|
|
558
|
+
'packages/peach-engine/src/render-worker/map-host.ts :: fetch-alias :: url': {
|
|
559
559
|
category: 'map_style_delivery',
|
|
560
560
|
count: 1,
|
|
561
561
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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;
|
|
@@ -6922,7 +6922,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
|
|
|
6922
6922
|
var MULTI_MANIFEST_VERSION = 11;
|
|
6923
6923
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
6924
6924
|
const hash = (0, import_node_crypto3.createHash)("sha256");
|
|
6925
|
-
hash.update(`swift-compile/
|
|
6925
|
+
hash.update(`swift-compile/v18
|
|
6926
6926
|
${release}
|
|
6927
6927
|
`);
|
|
6928
6928
|
if (input.oneModule) hash.update("one-module\n");
|
|
@@ -7453,6 +7453,18 @@ function lowerAVAssetURLCluster(source) {
|
|
|
7453
7453
|
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
7454
7454
|
return out;
|
|
7455
7455
|
}
|
|
7456
|
+
function lowerNSValueTimeBox(source) {
|
|
7457
|
+
const masked = swiftCodeMask(source);
|
|
7458
|
+
const pattern = /\bNSValue\s*\(\s*time\s*:/g;
|
|
7459
|
+
const edits = [];
|
|
7460
|
+
let hit;
|
|
7461
|
+
while ((hit = pattern.exec(masked)) !== null)
|
|
7462
|
+
edits.push([hit.index, "NSValue".length, "NSValue.boxedTime"]);
|
|
7463
|
+
let out = source;
|
|
7464
|
+
for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
|
|
7465
|
+
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
7466
|
+
return out;
|
|
7467
|
+
}
|
|
7456
7468
|
function swiftCodeMask(source) {
|
|
7457
7469
|
const chars = source.split("");
|
|
7458
7470
|
const blank = (from, to) => {
|
|
@@ -7656,8 +7668,8 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
|
|
|
7656
7668
|
out += conditioned.slice(copied, at) + replacement;
|
|
7657
7669
|
copied = at + match[0].length;
|
|
7658
7670
|
}
|
|
7659
|
-
return
|
|
7660
|
-
lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
|
|
7671
|
+
return lowerNSValueTimeBox(
|
|
7672
|
+
lowerAVAssetURLCluster(lowerAnyObjectDoubleValue(out + conditioned.slice(copied)))
|
|
7661
7673
|
);
|
|
7662
7674
|
}
|
|
7663
7675
|
function swiftCodeScan(source) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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;
|
|
@@ -22021,7 +22021,7 @@ function swiftTargetDependencies(files, targets) {
|
|
|
22021
22021
|
}
|
|
22022
22022
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
22023
22023
|
const hash = (0, import_node_crypto3.createHash)("sha256");
|
|
22024
|
-
hash.update(`swift-compile/
|
|
22024
|
+
hash.update(`swift-compile/v18
|
|
22025
22025
|
${release}
|
|
22026
22026
|
`);
|
|
22027
22027
|
if (input.oneModule) hash.update("one-module\n");
|
|
@@ -22532,6 +22532,18 @@ function lowerAVAssetURLCluster(source) {
|
|
|
22532
22532
|
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
22533
22533
|
return out;
|
|
22534
22534
|
}
|
|
22535
|
+
function lowerNSValueTimeBox(source) {
|
|
22536
|
+
const masked = swiftCodeMask(source);
|
|
22537
|
+
const pattern = /\bNSValue\s*\(\s*time\s*:/g;
|
|
22538
|
+
const edits = [];
|
|
22539
|
+
let hit;
|
|
22540
|
+
while ((hit = pattern.exec(masked)) !== null)
|
|
22541
|
+
edits.push([hit.index, "NSValue".length, "NSValue.boxedTime"]);
|
|
22542
|
+
let out = source;
|
|
22543
|
+
for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
|
|
22544
|
+
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
22545
|
+
return out;
|
|
22546
|
+
}
|
|
22535
22547
|
function swiftCodeMask(source) {
|
|
22536
22548
|
const chars = source.split("");
|
|
22537
22549
|
const blank = (from, to) => {
|
|
@@ -22735,8 +22747,8 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
|
|
|
22735
22747
|
out += conditioned.slice(copied, at) + replacement;
|
|
22736
22748
|
copied = at + match[0].length;
|
|
22737
22749
|
}
|
|
22738
|
-
return
|
|
22739
|
-
lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
|
|
22750
|
+
return lowerNSValueTimeBox(
|
|
22751
|
+
lowerAVAssetURLCluster(lowerAnyObjectDoubleValue(out + conditioned.slice(copied)))
|
|
22740
22752
|
);
|
|
22741
22753
|
}
|
|
22742
22754
|
function swiftCodeScan(source) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.772 | (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;
|
|
@@ -39,6 +39,7 @@ __export(swift_compile_exports, {
|
|
|
39
39
|
emitSwiftPackageManifest: () => emitSwiftPackageManifest,
|
|
40
40
|
lowerAVAssetURLCluster: () => lowerAVAssetURLCluster,
|
|
41
41
|
lowerAnyObjectDoubleValue: () => lowerAnyObjectDoubleValue,
|
|
42
|
+
lowerNSValueTimeBox: () => lowerNSValueTimeBox,
|
|
42
43
|
missingSwiftModules: () => missingSwiftModules,
|
|
43
44
|
objcExtensionMemberIndex: () => objcExtensionMemberIndex,
|
|
44
45
|
prepareSwiftDependency: () => prepareSwiftDependency,
|
|
@@ -594,7 +595,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
|
|
|
594
595
|
var MULTI_MANIFEST_VERSION = 11;
|
|
595
596
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
596
597
|
const hash = (0, import_node_crypto2.createHash)("sha256");
|
|
597
|
-
hash.update(`swift-compile/
|
|
598
|
+
hash.update(`swift-compile/v18
|
|
598
599
|
${release}
|
|
599
600
|
`);
|
|
600
601
|
if (input.oneModule) hash.update("one-module\n");
|
|
@@ -1125,6 +1126,18 @@ function lowerAVAssetURLCluster(source) {
|
|
|
1125
1126
|
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
1126
1127
|
return out;
|
|
1127
1128
|
}
|
|
1129
|
+
function lowerNSValueTimeBox(source) {
|
|
1130
|
+
const masked = swiftCodeMask(source);
|
|
1131
|
+
const pattern = /\bNSValue\s*\(\s*time\s*:/g;
|
|
1132
|
+
const edits = [];
|
|
1133
|
+
let hit;
|
|
1134
|
+
while ((hit = pattern.exec(masked)) !== null)
|
|
1135
|
+
edits.push([hit.index, "NSValue".length, "NSValue.boxedTime"]);
|
|
1136
|
+
let out = source;
|
|
1137
|
+
for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
|
|
1138
|
+
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
1139
|
+
return out;
|
|
1140
|
+
}
|
|
1128
1141
|
function swiftCodeMask(source) {
|
|
1129
1142
|
const chars = source.split("");
|
|
1130
1143
|
const blank = (from, to) => {
|
|
@@ -1328,8 +1341,8 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
|
|
|
1328
1341
|
out += conditioned.slice(copied, at) + replacement;
|
|
1329
1342
|
copied = at + match[0].length;
|
|
1330
1343
|
}
|
|
1331
|
-
return
|
|
1332
|
-
lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
|
|
1344
|
+
return lowerNSValueTimeBox(
|
|
1345
|
+
lowerAVAssetURLCluster(lowerAnyObjectDoubleValue(out + conditioned.slice(copied)))
|
|
1333
1346
|
);
|
|
1334
1347
|
}
|
|
1335
1348
|
function swiftApplicationEntry(file, source) {
|
|
@@ -1713,6 +1726,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
1713
1726
|
emitSwiftPackageManifest,
|
|
1714
1727
|
lowerAVAssetURLCluster,
|
|
1715
1728
|
lowerAnyObjectDoubleValue,
|
|
1729
|
+
lowerNSValueTimeBox,
|
|
1716
1730
|
missingSwiftModules,
|
|
1717
1731
|
objcExtensionMemberIndex,
|
|
1718
1732
|
prepareSwiftDependency,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.772 | (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";
|
|
@@ -546,7 +546,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
|
|
|
546
546
|
var MULTI_MANIFEST_VERSION = 11;
|
|
547
547
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
548
548
|
const hash = createHash2("sha256");
|
|
549
|
-
hash.update(`swift-compile/
|
|
549
|
+
hash.update(`swift-compile/v18
|
|
550
550
|
${release}
|
|
551
551
|
`);
|
|
552
552
|
if (input.oneModule) hash.update("one-module\n");
|
|
@@ -1077,6 +1077,18 @@ function lowerAVAssetURLCluster(source) {
|
|
|
1077
1077
|
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
1078
1078
|
return out;
|
|
1079
1079
|
}
|
|
1080
|
+
function lowerNSValueTimeBox(source) {
|
|
1081
|
+
const masked = swiftCodeMask(source);
|
|
1082
|
+
const pattern = /\bNSValue\s*\(\s*time\s*:/g;
|
|
1083
|
+
const edits = [];
|
|
1084
|
+
let hit;
|
|
1085
|
+
while ((hit = pattern.exec(masked)) !== null)
|
|
1086
|
+
edits.push([hit.index, "NSValue".length, "NSValue.boxedTime"]);
|
|
1087
|
+
let out = source;
|
|
1088
|
+
for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
|
|
1089
|
+
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
1090
|
+
return out;
|
|
1091
|
+
}
|
|
1080
1092
|
function swiftCodeMask(source) {
|
|
1081
1093
|
const chars = source.split("");
|
|
1082
1094
|
const blank = (from, to) => {
|
|
@@ -1280,8 +1292,8 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
|
|
|
1280
1292
|
out += conditioned.slice(copied, at) + replacement;
|
|
1281
1293
|
copied = at + match[0].length;
|
|
1282
1294
|
}
|
|
1283
|
-
return
|
|
1284
|
-
lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
|
|
1295
|
+
return lowerNSValueTimeBox(
|
|
1296
|
+
lowerAVAssetURLCluster(lowerAnyObjectDoubleValue(out + conditioned.slice(copied)))
|
|
1285
1297
|
);
|
|
1286
1298
|
}
|
|
1287
1299
|
function swiftApplicationEntry(file, source) {
|
|
@@ -1664,6 +1676,7 @@ export {
|
|
|
1664
1676
|
emitSwiftPackageManifest,
|
|
1665
1677
|
lowerAVAssetURLCluster,
|
|
1666
1678
|
lowerAnyObjectDoubleValue,
|
|
1679
|
+
lowerNSValueTimeBox,
|
|
1667
1680
|
missingSwiftModules,
|
|
1668
1681
|
objcExtensionMemberIndex,
|
|
1669
1682
|
prepareSwiftDependency,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.772 | (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.772 | (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.772 | (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.772 | (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.772 | (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;
|
|
@@ -879,7 +879,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
|
|
|
879
879
|
var MULTI_MANIFEST_VERSION = 11;
|
|
880
880
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
881
881
|
const hash = (0, import_node_crypto2.createHash)("sha256");
|
|
882
|
-
hash.update(`swift-compile/
|
|
882
|
+
hash.update(`swift-compile/v18
|
|
883
883
|
${release}
|
|
884
884
|
`);
|
|
885
885
|
if (input.oneModule) hash.update("one-module\n");
|
|
@@ -1410,6 +1410,18 @@ function lowerAVAssetURLCluster(source) {
|
|
|
1410
1410
|
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
1411
1411
|
return out;
|
|
1412
1412
|
}
|
|
1413
|
+
function lowerNSValueTimeBox(source) {
|
|
1414
|
+
const masked = swiftCodeMask(source);
|
|
1415
|
+
const pattern = /\bNSValue\s*\(\s*time\s*:/g;
|
|
1416
|
+
const edits = [];
|
|
1417
|
+
let hit;
|
|
1418
|
+
while ((hit = pattern.exec(masked)) !== null)
|
|
1419
|
+
edits.push([hit.index, "NSValue".length, "NSValue.boxedTime"]);
|
|
1420
|
+
let out = source;
|
|
1421
|
+
for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
|
|
1422
|
+
out = out.slice(0, at) + insert + out.slice(at + remove);
|
|
1423
|
+
return out;
|
|
1424
|
+
}
|
|
1413
1425
|
function swiftCodeMask(source) {
|
|
1414
1426
|
const chars = source.split("");
|
|
1415
1427
|
const blank = (from, to) => {
|
|
@@ -1613,8 +1625,8 @@ function swiftSourceAsIOS(original, extraObjCExtensions) {
|
|
|
1613
1625
|
out += conditioned.slice(copied, at) + replacement;
|
|
1614
1626
|
copied = at + match[0].length;
|
|
1615
1627
|
}
|
|
1616
|
-
return
|
|
1617
|
-
lowerAnyObjectDoubleValue(out + conditioned.slice(copied))
|
|
1628
|
+
return lowerNSValueTimeBox(
|
|
1629
|
+
lowerAVAssetURLCluster(lowerAnyObjectDoubleValue(out + conditioned.slice(copied)))
|
|
1618
1630
|
);
|
|
1619
1631
|
}
|
|
1620
1632
|
function swiftApplicationEntry(file, source) {
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.772 | (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
|
@@ -521,6 +521,7 @@ export function swiftArtifactHash(
|
|
|
521
521
|
moduleRoot: string,
|
|
522
522
|
): string {
|
|
523
523
|
const hash = createHash('sha256')
|
|
524
|
+
// v18: NSValue(time:) constructs NSStructBox through NSValue.boxedTime
|
|
524
525
|
// v17: AVAsset(url:) constructs AVURLAsset for the class cluster
|
|
525
526
|
// v16: overrides of @objc extension members rename to __peach_ovr_
|
|
526
527
|
// v15: Foundation-only sources see the platform libc (WASILibc, including
|
|
@@ -535,7 +536,7 @@ export function swiftArtifactHash(
|
|
|
535
536
|
// v6: app and scene delegate classes compile final
|
|
536
537
|
// (v5: a target declaring resources gets SwiftPM's Bundle.module accessor;
|
|
537
538
|
// v4: sources compile through swiftSourceAsIOS)
|
|
538
|
-
hash.update(`swift-compile/
|
|
539
|
+
hash.update(`swift-compile/v18\n${release}\n`)
|
|
539
540
|
if (input.oneModule) hash.update('one-module\n')
|
|
540
541
|
hash.update(swiftModuleDigest(moduleRoot))
|
|
541
542
|
for (const file of Object.keys(input.files).sort()) {
|
|
@@ -1272,6 +1273,30 @@ export function lowerAVAssetURLCluster(source: string): string {
|
|
|
1272
1273
|
return out
|
|
1273
1274
|
}
|
|
1274
1275
|
|
|
1276
|
+
// NSValue(time:) boxes a CMTime struct, which the sdk's NSValue cluster
|
|
1277
|
+
// cannot encode (its concrete value traps on struct objCType strings), and
|
|
1278
|
+
// a convenience initializer cannot substitute the box subclass, so compiled
|
|
1279
|
+
// sources construct the landed NSStructBox through NSValue.boxedTime
|
|
1280
|
+
// instead; only the token changes, spacing and the argument list stay as
|
|
1281
|
+
// written. NSValue.boxedTime keeps the time: label for exactly this reason.
|
|
1282
|
+
// every other NSValue construction keeps its spelling: timeRange:,
|
|
1283
|
+
// timeMapping: and the struct-taking siblings stay on their trapping stubs,
|
|
1284
|
+
// the explicit .init(time:) spelling stays on the shim, and the sdk's own
|
|
1285
|
+
// NSValue(bytes:objCType:) still traps on struct encodings (the probe's
|
|
1286
|
+
// sdk-trap negative pins that wall as the one the box avoids).
|
|
1287
|
+
export function lowerNSValueTimeBox(source: string): string {
|
|
1288
|
+
const masked = swiftCodeMask(source)
|
|
1289
|
+
const pattern = /\bNSValue\s*\(\s*time\s*:/g
|
|
1290
|
+
const edits: [number, number, string][] = []
|
|
1291
|
+
let hit: RegExpExecArray | null
|
|
1292
|
+
while ((hit = pattern.exec(masked)) !== null)
|
|
1293
|
+
edits.push([hit.index, 'NSValue'.length, 'NSValue.boxedTime'])
|
|
1294
|
+
let out = source
|
|
1295
|
+
for (const [at, remove, insert] of edits.sort((a, b) => b[0] - a[0]))
|
|
1296
|
+
out = out.slice(0, at) + insert + out.slice(at + remove)
|
|
1297
|
+
return out
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1275
1300
|
// the index-preserving view lowerAnyObjectDoubleValue matches on: every
|
|
1276
1301
|
// char outside code (comments, strings, regex literals) reads as a space,
|
|
1277
1302
|
// so an identifier that survives is code. newlines stay, keeping every
|
|
@@ -1507,8 +1532,8 @@ export function swiftSourceAsIOS(
|
|
|
1507
1532
|
out += conditioned.slice(copied, at) + replacement
|
|
1508
1533
|
copied = at + match[0].length
|
|
1509
1534
|
}
|
|
1510
|
-
return
|
|
1511
|
-
lowerAnyObjectDoubleValue(out + conditioned.slice(copied)),
|
|
1535
|
+
return lowerNSValueTimeBox(
|
|
1536
|
+
lowerAVAssetURLCluster(lowerAnyObjectDoubleValue(out + conditioned.slice(copied))),
|
|
1512
1537
|
)
|
|
1513
1538
|
}
|
|
1514
1539
|
|