peachsim 0.1.673 → 0.1.674
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 +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 +257 -236
- 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 +434 -406
- package/dist-lib/swift-compile.cjs +21 -7
- package/dist-lib/swift-compile.mjs +21 -7
- 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.cjs +1 -1
- package/dist-lib/vite-swift.cjs +109 -88
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/swift-compile.ts +31 -10
- package/src/swift-host.ts +2 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.674 | (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;
|
|
@@ -330,7 +330,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
|
|
|
330
330
|
var MULTI_MANIFEST_VERSION = 6;
|
|
331
331
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
332
332
|
const hash = (0, import_node_crypto2.createHash)("sha256");
|
|
333
|
-
hash.update(`swift-compile/
|
|
333
|
+
hash.update(`swift-compile/v7
|
|
334
334
|
${release}
|
|
335
335
|
`);
|
|
336
336
|
if (input.oneModule) hash.update("one-module\n");
|
|
@@ -448,6 +448,17 @@ function swiftSourceAsIOS(source) {
|
|
|
448
448
|
let copied = 0;
|
|
449
449
|
for (const at of tokens) {
|
|
450
450
|
const rest = conditioned.slice(at, at + 400);
|
|
451
|
+
const imported = /^import\s+CoreImage\.CIFilterBuiltins\b/.exec(rest);
|
|
452
|
+
if (imported) {
|
|
453
|
+
out += conditioned.slice(copied, at) + "import CoreImage".padEnd(imported[0].length);
|
|
454
|
+
copied = at + imported[0].length;
|
|
455
|
+
continue;
|
|
456
|
+
}
|
|
457
|
+
if (/^NSClassFromString\b/.test(rest)) {
|
|
458
|
+
out += conditioned.slice(copied, at) + "_peachClassFromString";
|
|
459
|
+
copied = at + "NSClassFromString".length;
|
|
460
|
+
continue;
|
|
461
|
+
}
|
|
451
462
|
if (rest.startsWith("class")) {
|
|
452
463
|
const modifiers = conditioned.slice(conditioned.lastIndexOf("\n", at - 1) + 1, at);
|
|
453
464
|
if (DELEGATE_CLASS.test(rest) && !/\b(?:final|open)\b/.test(modifiers)) {
|
|
@@ -548,12 +559,15 @@ function swiftCodeScan(source) {
|
|
|
548
559
|
if (top.parens === 0 && stack.length > 1) stack.pop();
|
|
549
560
|
else top.parens--;
|
|
550
561
|
i++;
|
|
551
|
-
} else if (source.startsWith("class", i) && !/[\w$]/.test(source[i - 1] ?? "") && !/[\w$]/.test(source[i + 5] ?? "")) {
|
|
552
|
-
tokens.push(i);
|
|
553
|
-
i += 5;
|
|
554
562
|
} else {
|
|
555
|
-
|
|
556
|
-
i
|
|
563
|
+
const keyword = source.startsWith("class", i) ? "class" : source.startsWith("import", i) ? "import" : source.startsWith("NSClassFromString", i) ? "NSClassFromString" : null;
|
|
564
|
+
if (keyword && !/[\w$]/.test(source[i - 1] ?? "") && !/[\w$]/.test(source[i + keyword.length] ?? "")) {
|
|
565
|
+
tokens.push(i);
|
|
566
|
+
i += keyword.length;
|
|
567
|
+
} else {
|
|
568
|
+
if (char === "@") tokens.push(i);
|
|
569
|
+
i++;
|
|
570
|
+
}
|
|
557
571
|
}
|
|
558
572
|
}
|
|
559
573
|
return { lineStarts: starts, tokens };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.674 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import { execFile as execFile2 } from "node:child_process";
|
|
@@ -295,7 +295,7 @@ var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"'
|
|
|
295
295
|
var MULTI_MANIFEST_VERSION = 6;
|
|
296
296
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
297
297
|
const hash = createHash2("sha256");
|
|
298
|
-
hash.update(`swift-compile/
|
|
298
|
+
hash.update(`swift-compile/v7
|
|
299
299
|
${release}
|
|
300
300
|
`);
|
|
301
301
|
if (input.oneModule) hash.update("one-module\n");
|
|
@@ -413,6 +413,17 @@ function swiftSourceAsIOS(source) {
|
|
|
413
413
|
let copied = 0;
|
|
414
414
|
for (const at of tokens) {
|
|
415
415
|
const rest = conditioned.slice(at, at + 400);
|
|
416
|
+
const imported = /^import\s+CoreImage\.CIFilterBuiltins\b/.exec(rest);
|
|
417
|
+
if (imported) {
|
|
418
|
+
out += conditioned.slice(copied, at) + "import CoreImage".padEnd(imported[0].length);
|
|
419
|
+
copied = at + imported[0].length;
|
|
420
|
+
continue;
|
|
421
|
+
}
|
|
422
|
+
if (/^NSClassFromString\b/.test(rest)) {
|
|
423
|
+
out += conditioned.slice(copied, at) + "_peachClassFromString";
|
|
424
|
+
copied = at + "NSClassFromString".length;
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
416
427
|
if (rest.startsWith("class")) {
|
|
417
428
|
const modifiers = conditioned.slice(conditioned.lastIndexOf("\n", at - 1) + 1, at);
|
|
418
429
|
if (DELEGATE_CLASS.test(rest) && !/\b(?:final|open)\b/.test(modifiers)) {
|
|
@@ -513,12 +524,15 @@ function swiftCodeScan(source) {
|
|
|
513
524
|
if (top.parens === 0 && stack.length > 1) stack.pop();
|
|
514
525
|
else top.parens--;
|
|
515
526
|
i++;
|
|
516
|
-
} else if (source.startsWith("class", i) && !/[\w$]/.test(source[i - 1] ?? "") && !/[\w$]/.test(source[i + 5] ?? "")) {
|
|
517
|
-
tokens.push(i);
|
|
518
|
-
i += 5;
|
|
519
527
|
} else {
|
|
520
|
-
|
|
521
|
-
i
|
|
528
|
+
const keyword = source.startsWith("class", i) ? "class" : source.startsWith("import", i) ? "import" : source.startsWith("NSClassFromString", i) ? "NSClassFromString" : null;
|
|
529
|
+
if (keyword && !/[\w$]/.test(source[i - 1] ?? "") && !/[\w$]/.test(source[i + keyword.length] ?? "")) {
|
|
530
|
+
tokens.push(i);
|
|
531
|
+
i += keyword.length;
|
|
532
|
+
} else {
|
|
533
|
+
if (char === "@") tokens.push(i);
|
|
534
|
+
i++;
|
|
535
|
+
}
|
|
522
536
|
}
|
|
523
537
|
}
|
|
524
538
|
return { lineStarts: starts, tokens };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.674 | (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.674 | (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/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.674 | (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;
|