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.
Files changed (71) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/agent-identity.cjs +1 -1
  4. package/dist-lib/agent-sessions.cjs +1 -1
  5. package/dist-lib/attached-projects.cjs +1 -1
  6. package/dist-lib/auth/shared-session.cjs +1 -1
  7. package/dist-lib/backend-origin.cjs +1 -1
  8. package/dist-lib/beta.cjs +1 -1
  9. package/dist-lib/beta.mjs +1 -1
  10. package/dist-lib/bridge-constants.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.mjs +1 -1
  13. package/dist-lib/bridge-contract.cjs +1 -1
  14. package/dist-lib/bridge-contract.mjs +1 -1
  15. package/dist-lib/capture-contract.cjs +1 -1
  16. package/dist-lib/capture-contract.mjs +1 -1
  17. package/dist-lib/cli-constants.cjs +1 -1
  18. package/dist-lib/cloud-contract.cjs +1 -1
  19. package/dist-lib/cloud-contract.mjs +1 -1
  20. package/dist-lib/cloud-test-args.cjs +1 -1
  21. package/dist-lib/cloud-test-args.mjs +1 -1
  22. package/dist-lib/cloud.cjs +1 -1
  23. package/dist-lib/cloud.mjs +1 -1
  24. package/dist-lib/config.cjs +1 -1
  25. package/dist-lib/detox/index.cjs +1 -1
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/home-paths.cjs +1 -1
  28. package/dist-lib/host/bridge-host.cjs +257 -236
  29. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  30. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  31. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  32. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  33. package/dist-lib/host/websocket-proxy.cjs +1 -1
  34. package/dist-lib/index.cjs +1 -1
  35. package/dist-lib/jump-to-source-babel.cjs +1 -1
  36. package/dist-lib/jump-to-source-native.cjs +1 -1
  37. package/dist-lib/kotlin-host.cjs +1 -1
  38. package/dist-lib/menu.cjs +1 -1
  39. package/dist-lib/menu.mjs +1 -1
  40. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  41. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  42. package/dist-lib/metro-production-bundle.cjs +1 -1
  43. package/dist-lib/metro-production-bundle.mjs +1 -1
  44. package/dist-lib/metro.cjs +1 -1
  45. package/dist-lib/native-app-identity.cjs +1 -1
  46. package/dist-lib/native-app-identity.mjs +1 -1
  47. package/dist-lib/native-firebase-metadata.cjs +1 -1
  48. package/dist-lib/native-firebase-metadata.mjs +1 -1
  49. package/dist-lib/plist.cjs +1 -1
  50. package/dist-lib/plist.mjs +1 -1
  51. package/dist-lib/profiles.cjs +1 -1
  52. package/dist-lib/public-brand.cjs +1 -1
  53. package/dist-lib/react-native-host-modules.cjs +1 -1
  54. package/dist-lib/react-native-host-modules.mjs +1 -1
  55. package/dist-lib/render-mode.cjs +1 -1
  56. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  57. package/dist-lib/sdk.cjs +1 -1
  58. package/dist-lib/sdk.mjs +1 -1
  59. package/dist-lib/skills.cjs +434 -406
  60. package/dist-lib/swift-compile.cjs +21 -7
  61. package/dist-lib/swift-compile.mjs +21 -7
  62. package/dist-lib/swift-package.cjs +1 -1
  63. package/dist-lib/swift-package.mjs +1 -1
  64. package/dist-lib/swift-submit.cjs +1 -1
  65. package/dist-lib/swift-submit.mjs +1 -1
  66. package/dist-lib/swift.cjs +1 -1
  67. package/dist-lib/vite-swift.cjs +109 -88
  68. package/dist-lib/vite.cjs +1 -1
  69. package/package.json +1 -1
  70. package/src/swift-compile.ts +31 -10
  71. package/src/swift-host.ts +2 -4
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.673 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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/v6
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
- if (char === "@") tokens.push(i);
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.673 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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/v6
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
- if (char === "@") tokens.push(i);
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.673 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.673 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.674 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function isSwiftManifestFile(file) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.673 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.673 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.674 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-submit.ts
4
4
  var SWIFT_COMPILE_PATH = "/api/swift-compile";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.673 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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;