peachsim 0.1.646 → 0.1.648

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 (70) hide show
  1. package/cli/desktop-companion.ts +48 -8
  2. package/cli/drivers/electron.ts +1 -3
  3. package/dist-lib/agent-daemon-client.cjs +1 -1
  4. package/dist-lib/agent-events.cjs +1 -1
  5. package/dist-lib/agent-identity.cjs +1 -1
  6. package/dist-lib/agent-sessions.cjs +1 -1
  7. package/dist-lib/attached-projects.cjs +1 -1
  8. package/dist-lib/auth/shared-session.cjs +1 -1
  9. package/dist-lib/backend-origin.cjs +1 -1
  10. package/dist-lib/beta.cjs +1 -1
  11. package/dist-lib/beta.mjs +1 -1
  12. package/dist-lib/bridge-constants.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.mjs +1 -1
  15. package/dist-lib/bridge-contract.cjs +1 -1
  16. package/dist-lib/bridge-contract.mjs +1 -1
  17. package/dist-lib/capture-contract.cjs +1 -1
  18. package/dist-lib/capture-contract.mjs +1 -1
  19. package/dist-lib/cli-constants.cjs +1 -1
  20. package/dist-lib/cloud-contract.cjs +1 -1
  21. package/dist-lib/cloud-contract.mjs +1 -1
  22. package/dist-lib/cloud-test-args.cjs +1 -1
  23. package/dist-lib/cloud-test-args.mjs +1 -1
  24. package/dist-lib/cloud.cjs +1 -1
  25. package/dist-lib/cloud.mjs +1 -1
  26. package/dist-lib/config.cjs +1 -1
  27. package/dist-lib/detox/index.cjs +1 -1
  28. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +1 -1
  31. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +1 -1
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +1 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +1 -1
  47. package/dist-lib/native-app-identity.cjs +1 -1
  48. package/dist-lib/native-app-identity.mjs +1 -1
  49. package/dist-lib/profiles.cjs +1 -1
  50. package/dist-lib/public-brand.cjs +1 -1
  51. package/dist-lib/react-native-host-modules.cjs +1 -1
  52. package/dist-lib/react-native-host-modules.mjs +1 -1
  53. package/dist-lib/render-mode.cjs +1 -1
  54. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  55. package/dist-lib/sdk.cjs +1 -1
  56. package/dist-lib/sdk.mjs +1 -1
  57. package/dist-lib/skills.cjs +24 -8
  58. package/dist-lib/swift-compile.cjs +15 -3
  59. package/dist-lib/swift-compile.mjs +15 -3
  60. package/dist-lib/swift-package.cjs +1 -1
  61. package/dist-lib/swift-package.mjs +1 -1
  62. package/dist-lib/swift-submit.cjs +2 -2
  63. package/dist-lib/swift-submit.mjs +2 -2
  64. package/dist-lib/swift.cjs +1 -1
  65. package/dist-lib/vite-swift.cjs +1067 -1052
  66. package/dist-lib/vite.cjs +1 -1
  67. package/package.json +1 -1
  68. package/src/swift-compile.ts +31 -7
  69. package/src/swift-submit.ts +3 -1
  70. package/src/vite-plugin-swift.ts +10 -6
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.646 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.648 | (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/v5
333
+ hash.update(`swift-compile/v6
334
334
  ${release}
335
335
  `);
336
336
  if (input.oneModule) hash.update("one-module\n");
@@ -434,6 +434,7 @@ var DIRECTIVE = /^[ \t]*#(?:if|elseif)\b/;
434
434
  var OS_IOS = /\bos\(\s*iOS\s*\)/g;
435
435
  var OBJC_ATTRIBUTE = /^@(?:objcMembers\b|objc\b(?:(\s*)\(([^()]*)\))?|IBAction\b)/;
436
436
  var SELECTOR = /^#selector\b/;
437
+ var DELEGATE_CLASS = /^class\s+[A-Za-z_]\w*\s*(?:<[^>{]*>)?\s*:[^{]*\b(?:UIApplicationDelegate|UISceneDelegate|UIWindowSceneDelegate)\b[^{]*\{/;
437
438
  function swiftSourceAsIOS(source) {
438
439
  const { lineStarts, tokens } = swiftCodeScan(source);
439
440
  let offset = 0;
@@ -446,7 +447,15 @@ function swiftSourceAsIOS(source) {
446
447
  let out = "";
447
448
  let copied = 0;
448
449
  for (const at of tokens) {
449
- const rest = conditioned.slice(at, at + 200);
450
+ const rest = conditioned.slice(at, at + 400);
451
+ if (rest.startsWith("class")) {
452
+ const modifiers = conditioned.slice(conditioned.lastIndexOf("\n", at - 1) + 1, at);
453
+ if (DELEGATE_CLASS.test(rest) && !/\b(?:final|open)\b/.test(modifiers)) {
454
+ out += `${conditioned.slice(copied, at)}final `;
455
+ copied = at;
456
+ }
457
+ continue;
458
+ }
450
459
  const selector = SELECTOR.exec(rest);
451
460
  const match = selector ?? OBJC_ATTRIBUTE.exec(rest);
452
461
  if (!match) continue;
@@ -539,6 +548,9 @@ function swiftCodeScan(source) {
539
548
  if (top.parens === 0 && stack.length > 1) stack.pop();
540
549
  else top.parens--;
541
550
  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;
542
554
  } else {
543
555
  if (char === "@") tokens.push(i);
544
556
  i++;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.646 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.648 | (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/v5
298
+ hash.update(`swift-compile/v6
299
299
  ${release}
300
300
  `);
301
301
  if (input.oneModule) hash.update("one-module\n");
@@ -399,6 +399,7 @@ var DIRECTIVE = /^[ \t]*#(?:if|elseif)\b/;
399
399
  var OS_IOS = /\bos\(\s*iOS\s*\)/g;
400
400
  var OBJC_ATTRIBUTE = /^@(?:objcMembers\b|objc\b(?:(\s*)\(([^()]*)\))?|IBAction\b)/;
401
401
  var SELECTOR = /^#selector\b/;
402
+ var DELEGATE_CLASS = /^class\s+[A-Za-z_]\w*\s*(?:<[^>{]*>)?\s*:[^{]*\b(?:UIApplicationDelegate|UISceneDelegate|UIWindowSceneDelegate)\b[^{]*\{/;
402
403
  function swiftSourceAsIOS(source) {
403
404
  const { lineStarts, tokens } = swiftCodeScan(source);
404
405
  let offset = 0;
@@ -411,7 +412,15 @@ function swiftSourceAsIOS(source) {
411
412
  let out = "";
412
413
  let copied = 0;
413
414
  for (const at of tokens) {
414
- const rest = conditioned.slice(at, at + 200);
415
+ const rest = conditioned.slice(at, at + 400);
416
+ if (rest.startsWith("class")) {
417
+ const modifiers = conditioned.slice(conditioned.lastIndexOf("\n", at - 1) + 1, at);
418
+ if (DELEGATE_CLASS.test(rest) && !/\b(?:final|open)\b/.test(modifiers)) {
419
+ out += `${conditioned.slice(copied, at)}final `;
420
+ copied = at;
421
+ }
422
+ continue;
423
+ }
415
424
  const selector = SELECTOR.exec(rest);
416
425
  const match = selector ?? OBJC_ATTRIBUTE.exec(rest);
417
426
  if (!match) continue;
@@ -504,6 +513,9 @@ function swiftCodeScan(source) {
504
513
  if (top.parens === 0 && stack.length > 1) stack.pop();
505
514
  else top.parens--;
506
515
  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;
507
519
  } else {
508
520
  if (char === "@") tokens.push(i);
509
521
  i++;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.646 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.648 | (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.646 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.648 | (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.646 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.648 | (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;
@@ -51,7 +51,7 @@ var MAX_SWIFT_COMPILE_RESOURCE_TOTAL_BYTES = 8 * 1024 * 1024;
51
51
  var MAX_SWIFT_COMPILE_IMAGES = 128;
52
52
  var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
53
53
  var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
54
- var SWIFT_HOST_ABI = 2;
54
+ var SWIFT_HOST_ABI = 3;
55
55
  var POLL_INTERVAL_MS = 1500;
56
56
  function swiftNativeEntry(native, file) {
57
57
  return {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.646 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.648 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-submit.ts
4
4
  var SWIFT_COMPILE_PATH = "/api/swift-compile";
@@ -12,7 +12,7 @@ var MAX_SWIFT_COMPILE_RESOURCE_TOTAL_BYTES = 8 * 1024 * 1024;
12
12
  var MAX_SWIFT_COMPILE_IMAGES = 128;
13
13
  var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
14
14
  var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
15
- var SWIFT_HOST_ABI = 2;
15
+ var SWIFT_HOST_ABI = 3;
16
16
  var POLL_INTERVAL_MS = 1500;
17
17
  function swiftNativeEntry(native, file) {
18
18
  return {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.646 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.648 | (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;