peachsim 0.1.822 → 0.1.823

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 (77) 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/bundle-channel.cjs +169 -44
  16. package/dist-lib/capture-contract.cjs +1 -1
  17. package/dist-lib/capture-contract.mjs +1 -1
  18. package/dist-lib/cli-constants.cjs +1 -1
  19. package/dist-lib/cloud-contract.cjs +1 -1
  20. package/dist-lib/cloud-contract.mjs +1 -1
  21. package/dist-lib/cloud-test-args.cjs +1 -1
  22. package/dist-lib/cloud-test-args.mjs +1 -1
  23. package/dist-lib/cloud.cjs +1 -1
  24. package/dist-lib/cloud.mjs +1 -1
  25. package/dist-lib/config.cjs +1 -1
  26. package/dist-lib/detox/index.cjs +1 -1
  27. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  28. package/dist-lib/expo-swift-bundle.cjs +169 -44
  29. package/dist-lib/expo-swift-metadata.cjs +1 -1
  30. package/dist-lib/expo-swift-metadata.mjs +1 -1
  31. package/dist-lib/home-paths.cjs +1 -1
  32. package/dist-lib/host/bridge-host.cjs +169 -44
  33. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  34. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  35. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  36. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  37. package/dist-lib/host/websocket-proxy.cjs +1 -1
  38. package/dist-lib/index.cjs +1 -1
  39. package/dist-lib/jump-to-source-babel.cjs +1 -1
  40. package/dist-lib/jump-to-source-native.cjs +1 -1
  41. package/dist-lib/kotlin-host.cjs +1 -1
  42. package/dist-lib/menu.cjs +1 -1
  43. package/dist-lib/menu.mjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  46. package/dist-lib/metro-production-bundle.cjs +1 -1
  47. package/dist-lib/metro-production-bundle.mjs +1 -1
  48. package/dist-lib/metro.cjs +1 -1
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/plist.cjs +1 -1
  54. package/dist-lib/plist.mjs +1 -1
  55. package/dist-lib/profiles.cjs +1 -1
  56. package/dist-lib/public-brand.cjs +1 -1
  57. package/dist-lib/react-native-host-modules.cjs +1 -1
  58. package/dist-lib/react-native-host-modules.mjs +1 -1
  59. package/dist-lib/render-mode.cjs +1 -1
  60. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  61. package/dist-lib/sdk.cjs +1 -1
  62. package/dist-lib/sdk.mjs +1 -1
  63. package/dist-lib/skills.cjs +169 -44
  64. package/dist-lib/swift-compile.cjs +169 -44
  65. package/dist-lib/swift-compile.mjs +169 -44
  66. package/dist-lib/swift-package.cjs +1 -1
  67. package/dist-lib/swift-package.mjs +1 -1
  68. package/dist-lib/swift-submit.cjs +1 -1
  69. package/dist-lib/swift-submit.mjs +1 -1
  70. package/dist-lib/swift-toolchain.cjs +1 -1
  71. package/dist-lib/swift.cjs +1 -1
  72. package/dist-lib/vite-swift.cjs +169 -44
  73. package/dist-lib/vite.cjs +1 -1
  74. package/dist-lib/worklet-executable.cjs +1 -1
  75. package/dist-lib/worklet-executable.mjs +1 -1
  76. package/package.json +1 -1
  77. package/src/swift-compile.ts +183 -48
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/native-app-identity.ts
4
4
  var NATIVE_APP_IDENTITY_PREFIX = "globalThis.__sootsimNativeAppIdentity=";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/native-firebase-metadata.ts
4
4
  var PREFIX = "globalThis.__peachNativeFirebaseConfig=";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/plist.ts
4
4
  import plist from "plist";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/react-native-host-modules.ts
4
4
  var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (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);
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -30022,10 +30022,25 @@ function tableProtocolConformances(sources) {
30022
30022
  for (const source of sources) {
30023
30023
  const code = swiftCodeMask(source);
30024
30024
  for (const owner of code.matchAll(
30025
- /\b(?:class|extension)\s+([A-Za-z_]\w*)\s*:\s*([^{}]+)\{/g
30025
+ /\b(?:class|extension|protocol)\s+(?!(?:func|var)\b)([A-Za-z_]\w*)([^{}]*)\{/g
30026
30026
  )) {
30027
+ const header = owner[2];
30028
+ let depth = 0;
30029
+ let colon = -1;
30030
+ for (let at = 0; at < header.length; at++) {
30031
+ if (header[at] === "<") depth++;
30032
+ else if (header[at] === ">") depth--;
30033
+ else if (header[at] === ":" && depth === 0) {
30034
+ colon = at;
30035
+ break;
30036
+ }
30037
+ }
30038
+ if (colon === -1) continue;
30027
30039
  const inherited = parents.get(owner[1]) ?? /* @__PURE__ */ new Set();
30028
- for (const type of owner[2].matchAll(/\b[A-Za-z_]\w*\b/g)) inherited.add(type[0]);
30040
+ for (const type of splitTopLevel(header.slice(colon + 1).split(/\bwhere\b/)[0])) {
30041
+ const name2 = /^\s*(?:[A-Za-z_]\w*\.)*([A-Za-z_]\w*)/.exec(type)?.[1];
30042
+ if (name2 && !type.includes("<")) inherited.add(name2);
30043
+ }
30029
30044
  parents.set(owner[1], inherited);
30030
30045
  }
30031
30046
  }
@@ -30049,47 +30064,148 @@ function tableProtocolConformances(sources) {
30049
30064
  function lowerTableProtocolMethods(source, conformances) {
30050
30065
  const code = swiftCodeMask(source);
30051
30066
  const dataSource = {
30052
- numberOfRowsInSection: "tableView:numberOfRowsInSection:",
30053
- cellForRowAt: "tableView:cellForRowAtIndexPath:",
30054
- titleForHeaderInSection: "tableView:titleForHeaderInSection:",
30055
- titleForFooterInSection: "tableView:titleForFooterInSection:",
30056
- canEditRowAt: "tableView:canEditRowAtIndexPath:",
30057
- commit: "tableView:commitEditingStyle:forRowAtIndexPath:"
30067
+ numberOfRowsInSection: [
30068
+ "tableView:numberOfRowsInSection:",
30069
+ "_:UITableView,numberOfRowsInSection:Int->Int"
30070
+ ],
30071
+ cellForRowAt: [
30072
+ "tableView:cellForRowAtIndexPath:",
30073
+ "_:UITableView,cellForRowAt:IndexPath->UITableViewCell"
30074
+ ],
30075
+ titleForHeaderInSection: [
30076
+ "tableView:titleForHeaderInSection:",
30077
+ "_:UITableView,titleForHeaderInSection:Int->String?"
30078
+ ],
30079
+ titleForFooterInSection: [
30080
+ "tableView:titleForFooterInSection:",
30081
+ "_:UITableView,titleForFooterInSection:Int->String?"
30082
+ ],
30083
+ canEditRowAt: [
30084
+ "tableView:canEditRowAtIndexPath:",
30085
+ "_:UITableView,canEditRowAt:IndexPath->Bool"
30086
+ ],
30087
+ commit: [
30088
+ "tableView:commitEditingStyle:forRowAtIndexPath:",
30089
+ "_:UITableView,commit:UITableViewCell.EditingStyle,forRowAt:IndexPath->Void"
30090
+ ]
30058
30091
  };
30059
30092
  const delegate = {
30060
- willDisplay: "tableView:willDisplayCell:forRowAtIndexPath:",
30061
- didEndDisplaying: "tableView:didEndDisplayingCell:forRowAtIndexPath:",
30062
- heightForRowAt: "tableView:heightForRowAtIndexPath:",
30063
- estimatedHeightForRowAt: "tableView:estimatedHeightForRowAtIndexPath:",
30064
- heightForHeaderInSection: "tableView:heightForHeaderInSection:",
30065
- heightForFooterInSection: "tableView:heightForFooterInSection:",
30066
- estimatedHeightForHeaderInSection: "tableView:estimatedHeightForHeaderInSection:",
30067
- estimatedHeightForFooterInSection: "tableView:estimatedHeightForFooterInSection:",
30068
- viewForHeaderInSection: "tableView:viewForHeaderInSection:",
30069
- viewForFooterInSection: "tableView:viewForFooterInSection:",
30070
- willDisplayHeaderView: "tableView:willDisplayHeaderView:forSection:",
30071
- willDisplayFooterView: "tableView:willDisplayFooterView:forSection:",
30072
- didEndDisplayingHeaderView: "tableView:didEndDisplayingHeaderView:forSection:",
30073
- didEndDisplayingFooterView: "tableView:didEndDisplayingFooterView:forSection:",
30074
- shouldHighlightRowAt: "tableView:shouldHighlightRowAtIndexPath:",
30075
- didHighlightRowAt: "tableView:didHighlightRowAtIndexPath:",
30076
- didUnhighlightRowAt: "tableView:didUnhighlightRowAtIndexPath:",
30077
- willSelectRowAt: "tableView:willSelectRowAtIndexPath:",
30078
- willDeselectRowAt: "tableView:willDeselectRowAtIndexPath:",
30079
- didSelectRowAt: "tableView:didSelectRowAtIndexPath:",
30080
- didDeselectRowAt: "tableView:didDeselectRowAtIndexPath:",
30081
- accessoryButtonTappedForRowWith: "tableView:accessoryButtonTappedForRowWithIndexPath:",
30082
- editingStyleForRowAt: "tableView:editingStyleForRowAtIndexPath:",
30083
- leadingSwipeActionsConfigurationForRowAt: "tableView:leadingSwipeActionsConfigurationForRowAtIndexPath:",
30084
- trailingSwipeActionsConfigurationForRowAt: "tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:",
30085
- willBeginEditingRowAt: "tableView:willBeginEditingRowAtIndexPath:",
30086
- didEndEditingRowAt: "tableView:didEndEditingRowAtIndexPath:"
30093
+ willDisplay: [
30094
+ "tableView:willDisplayCell:forRowAtIndexPath:",
30095
+ "_:UITableView,willDisplay:UITableViewCell,forRowAt:IndexPath->Void"
30096
+ ],
30097
+ didEndDisplaying: [
30098
+ "tableView:didEndDisplayingCell:forRowAtIndexPath:",
30099
+ "_:UITableView,didEndDisplaying:UITableViewCell,forRowAt:IndexPath->Void"
30100
+ ],
30101
+ heightForRowAt: [
30102
+ "tableView:heightForRowAtIndexPath:",
30103
+ "_:UITableView,heightForRowAt:IndexPath->CGFloat"
30104
+ ],
30105
+ estimatedHeightForRowAt: [
30106
+ "tableView:estimatedHeightForRowAtIndexPath:",
30107
+ "_:UITableView,estimatedHeightForRowAt:IndexPath->CGFloat"
30108
+ ],
30109
+ heightForHeaderInSection: [
30110
+ "tableView:heightForHeaderInSection:",
30111
+ "_:UITableView,heightForHeaderInSection:Int->CGFloat"
30112
+ ],
30113
+ heightForFooterInSection: [
30114
+ "tableView:heightForFooterInSection:",
30115
+ "_:UITableView,heightForFooterInSection:Int->CGFloat"
30116
+ ],
30117
+ estimatedHeightForHeaderInSection: [
30118
+ "tableView:estimatedHeightForHeaderInSection:",
30119
+ "_:UITableView,estimatedHeightForHeaderInSection:Int->CGFloat"
30120
+ ],
30121
+ estimatedHeightForFooterInSection: [
30122
+ "tableView:estimatedHeightForFooterInSection:",
30123
+ "_:UITableView,estimatedHeightForFooterInSection:Int->CGFloat"
30124
+ ],
30125
+ viewForHeaderInSection: [
30126
+ "tableView:viewForHeaderInSection:",
30127
+ "_:UITableView,viewForHeaderInSection:Int->UIView?"
30128
+ ],
30129
+ viewForFooterInSection: [
30130
+ "tableView:viewForFooterInSection:",
30131
+ "_:UITableView,viewForFooterInSection:Int->UIView?"
30132
+ ],
30133
+ willDisplayHeaderView: [
30134
+ "tableView:willDisplayHeaderView:forSection:",
30135
+ "_:UITableView,willDisplayHeaderView:UIView,forSection:Int->Void"
30136
+ ],
30137
+ willDisplayFooterView: [
30138
+ "tableView:willDisplayFooterView:forSection:",
30139
+ "_:UITableView,willDisplayFooterView:UIView,forSection:Int->Void"
30140
+ ],
30141
+ didEndDisplayingHeaderView: [
30142
+ "tableView:didEndDisplayingHeaderView:forSection:",
30143
+ "_:UITableView,didEndDisplayingHeaderView:UIView,forSection:Int->Void"
30144
+ ],
30145
+ didEndDisplayingFooterView: [
30146
+ "tableView:didEndDisplayingFooterView:forSection:",
30147
+ "_:UITableView,didEndDisplayingFooterView:UIView,forSection:Int->Void"
30148
+ ],
30149
+ shouldHighlightRowAt: [
30150
+ "tableView:shouldHighlightRowAtIndexPath:",
30151
+ "_:UITableView,shouldHighlightRowAt:IndexPath->Bool"
30152
+ ],
30153
+ didHighlightRowAt: [
30154
+ "tableView:didHighlightRowAtIndexPath:",
30155
+ "_:UITableView,didHighlightRowAt:IndexPath->Void"
30156
+ ],
30157
+ didUnhighlightRowAt: [
30158
+ "tableView:didUnhighlightRowAtIndexPath:",
30159
+ "_:UITableView,didUnhighlightRowAt:IndexPath->Void"
30160
+ ],
30161
+ willSelectRowAt: [
30162
+ "tableView:willSelectRowAtIndexPath:",
30163
+ "_:UITableView,willSelectRowAt:IndexPath->IndexPath?"
30164
+ ],
30165
+ willDeselectRowAt: [
30166
+ "tableView:willDeselectRowAtIndexPath:",
30167
+ "_:UITableView,willDeselectRowAt:IndexPath->IndexPath?"
30168
+ ],
30169
+ didSelectRowAt: [
30170
+ "tableView:didSelectRowAtIndexPath:",
30171
+ "_:UITableView,didSelectRowAt:IndexPath->Void"
30172
+ ],
30173
+ didDeselectRowAt: [
30174
+ "tableView:didDeselectRowAtIndexPath:",
30175
+ "_:UITableView,didDeselectRowAt:IndexPath->Void"
30176
+ ],
30177
+ accessoryButtonTappedForRowWith: [
30178
+ "tableView:accessoryButtonTappedForRowWithIndexPath:",
30179
+ "_:UITableView,accessoryButtonTappedForRowWith:IndexPath->Void"
30180
+ ],
30181
+ editingStyleForRowAt: [
30182
+ "tableView:editingStyleForRowAtIndexPath:",
30183
+ "_:UITableView,editingStyleForRowAt:IndexPath->UITableViewCell.EditingStyle"
30184
+ ],
30185
+ leadingSwipeActionsConfigurationForRowAt: [
30186
+ "tableView:leadingSwipeActionsConfigurationForRowAtIndexPath:",
30187
+ "_:UITableView,leadingSwipeActionsConfigurationForRowAt:IndexPath->UISwipeActionsConfiguration?"
30188
+ ],
30189
+ trailingSwipeActionsConfigurationForRowAt: [
30190
+ "tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:",
30191
+ "_:UITableView,trailingSwipeActionsConfigurationForRowAt:IndexPath->UISwipeActionsConfiguration?"
30192
+ ],
30193
+ willBeginEditingRowAt: [
30194
+ "tableView:willBeginEditingRowAtIndexPath:",
30195
+ "_:UITableView,willBeginEditingRowAt:IndexPath->Void"
30196
+ ],
30197
+ didEndEditingRowAt: [
30198
+ "tableView:didEndEditingRowAtIndexPath:",
30199
+ "_:UITableView,didEndEditingRowAt:IndexPath?->Void"
30200
+ ]
30087
30201
  };
30088
30202
  const braces = [...code.matchAll(/[{}]/g)].map((match) => match.index);
30089
30203
  const edits = [];
30090
30204
  for (const owner of code.matchAll(/\b(?:class|extension)\s+([A-Za-z_]\w*)[^{}]*\{/g)) {
30091
30205
  const conforms = conformances.get(owner[1]);
30092
30206
  if (!conforms) continue;
30207
+ if (/^\s*</.test(owner[0].slice(owner[0].indexOf(owner[1]) + owner[1].length)))
30208
+ continue;
30093
30209
  const selectors = {
30094
30210
  ...conforms.has("UITableViewDataSource") ? dataSource : {},
30095
30211
  ...conforms.has("UITableViewDelegate") ? delegate : {}
@@ -30113,15 +30229,24 @@ function lowerTableProtocolMethods(source, conformances) {
30113
30229
  if (/\b(?:override|static|class)\b|@(?:objc|ObjC|IBAction)\b/.test(attributes))
30114
30230
  continue;
30115
30231
  let selector;
30116
- if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
30232
+ const method = /^func\s+(tableView|numberOfSections)\s*\(([^()]*)\)\s*(?:->\s*([\w.?!]+|\(\s*\)))?\s*$/.exec(
30117
30233
  signature
30118
- ))
30119
- selector = "numberOfSectionsInTableView:";
30120
- else {
30121
- const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
30122
- signature
30123
- );
30124
- if (match) selector = selectors[match[1]];
30234
+ );
30235
+ if (method) {
30236
+ const parameters = splitTopLevel(method[2]).map((parameter) => {
30237
+ const match = /^(?:(\w+)\s+)?(\w+)\s*:\s*([\w.?]+)\s*$/.exec(parameter);
30238
+ return match ? `${match[1] ?? match[2]}:${match[3]}` : "";
30239
+ }).join(",").replace(/\b(?:UIKit|UIKitCore|Foundation|CoreGraphics|Swift)\./g, "");
30240
+ const result2 = (method[3] ?? "Void").replace(/\(\s*\)/, "Void").replaceAll("!", "?").replace(/\b(?:UIKit|UIKitCore|Foundation|CoreGraphics|Swift)\./g, "");
30241
+ if (method[1] === "numberOfSections") {
30242
+ if (conforms.has("UITableViewDataSource") && parameters === "in:UITableView" && result2 === "Int")
30243
+ selector = "numberOfSectionsInTableView:";
30244
+ } else {
30245
+ const label = /^_:UITableView,(\w+):/.exec(parameters)?.[1];
30246
+ const requirement = label ? selectors[label] : void 0;
30247
+ if (requirement && `${parameters}->${result2}` === requirement[1])
30248
+ selector = requirement[0];
30249
+ }
30125
30250
  }
30126
30251
  if (selector)
30127
30252
  edits.push([
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.822 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.823 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1253,10 +1253,25 @@ function tableProtocolConformances(sources) {
1253
1253
  for (const source of sources) {
1254
1254
  const code = swiftCodeMask(source);
1255
1255
  for (const owner of code.matchAll(
1256
- /\b(?:class|extension)\s+([A-Za-z_]\w*)\s*:\s*([^{}]+)\{/g
1256
+ /\b(?:class|extension|protocol)\s+(?!(?:func|var)\b)([A-Za-z_]\w*)([^{}]*)\{/g
1257
1257
  )) {
1258
+ const header = owner[2];
1259
+ let depth = 0;
1260
+ let colon = -1;
1261
+ for (let at = 0; at < header.length; at++) {
1262
+ if (header[at] === "<") depth++;
1263
+ else if (header[at] === ">") depth--;
1264
+ else if (header[at] === ":" && depth === 0) {
1265
+ colon = at;
1266
+ break;
1267
+ }
1268
+ }
1269
+ if (colon === -1) continue;
1258
1270
  const inherited = parents.get(owner[1]) ?? /* @__PURE__ */ new Set();
1259
- for (const type of owner[2].matchAll(/\b[A-Za-z_]\w*\b/g)) inherited.add(type[0]);
1271
+ for (const type of splitTopLevel(header.slice(colon + 1).split(/\bwhere\b/)[0])) {
1272
+ const name = /^\s*(?:[A-Za-z_]\w*\.)*([A-Za-z_]\w*)/.exec(type)?.[1];
1273
+ if (name && !type.includes("<")) inherited.add(name);
1274
+ }
1260
1275
  parents.set(owner[1], inherited);
1261
1276
  }
1262
1277
  }
@@ -1280,47 +1295,148 @@ function tableProtocolConformances(sources) {
1280
1295
  function lowerTableProtocolMethods(source, conformances) {
1281
1296
  const code = swiftCodeMask(source);
1282
1297
  const dataSource = {
1283
- numberOfRowsInSection: "tableView:numberOfRowsInSection:",
1284
- cellForRowAt: "tableView:cellForRowAtIndexPath:",
1285
- titleForHeaderInSection: "tableView:titleForHeaderInSection:",
1286
- titleForFooterInSection: "tableView:titleForFooterInSection:",
1287
- canEditRowAt: "tableView:canEditRowAtIndexPath:",
1288
- commit: "tableView:commitEditingStyle:forRowAtIndexPath:"
1298
+ numberOfRowsInSection: [
1299
+ "tableView:numberOfRowsInSection:",
1300
+ "_:UITableView,numberOfRowsInSection:Int->Int"
1301
+ ],
1302
+ cellForRowAt: [
1303
+ "tableView:cellForRowAtIndexPath:",
1304
+ "_:UITableView,cellForRowAt:IndexPath->UITableViewCell"
1305
+ ],
1306
+ titleForHeaderInSection: [
1307
+ "tableView:titleForHeaderInSection:",
1308
+ "_:UITableView,titleForHeaderInSection:Int->String?"
1309
+ ],
1310
+ titleForFooterInSection: [
1311
+ "tableView:titleForFooterInSection:",
1312
+ "_:UITableView,titleForFooterInSection:Int->String?"
1313
+ ],
1314
+ canEditRowAt: [
1315
+ "tableView:canEditRowAtIndexPath:",
1316
+ "_:UITableView,canEditRowAt:IndexPath->Bool"
1317
+ ],
1318
+ commit: [
1319
+ "tableView:commitEditingStyle:forRowAtIndexPath:",
1320
+ "_:UITableView,commit:UITableViewCell.EditingStyle,forRowAt:IndexPath->Void"
1321
+ ]
1289
1322
  };
1290
1323
  const delegate = {
1291
- willDisplay: "tableView:willDisplayCell:forRowAtIndexPath:",
1292
- didEndDisplaying: "tableView:didEndDisplayingCell:forRowAtIndexPath:",
1293
- heightForRowAt: "tableView:heightForRowAtIndexPath:",
1294
- estimatedHeightForRowAt: "tableView:estimatedHeightForRowAtIndexPath:",
1295
- heightForHeaderInSection: "tableView:heightForHeaderInSection:",
1296
- heightForFooterInSection: "tableView:heightForFooterInSection:",
1297
- estimatedHeightForHeaderInSection: "tableView:estimatedHeightForHeaderInSection:",
1298
- estimatedHeightForFooterInSection: "tableView:estimatedHeightForFooterInSection:",
1299
- viewForHeaderInSection: "tableView:viewForHeaderInSection:",
1300
- viewForFooterInSection: "tableView:viewForFooterInSection:",
1301
- willDisplayHeaderView: "tableView:willDisplayHeaderView:forSection:",
1302
- willDisplayFooterView: "tableView:willDisplayFooterView:forSection:",
1303
- didEndDisplayingHeaderView: "tableView:didEndDisplayingHeaderView:forSection:",
1304
- didEndDisplayingFooterView: "tableView:didEndDisplayingFooterView:forSection:",
1305
- shouldHighlightRowAt: "tableView:shouldHighlightRowAtIndexPath:",
1306
- didHighlightRowAt: "tableView:didHighlightRowAtIndexPath:",
1307
- didUnhighlightRowAt: "tableView:didUnhighlightRowAtIndexPath:",
1308
- willSelectRowAt: "tableView:willSelectRowAtIndexPath:",
1309
- willDeselectRowAt: "tableView:willDeselectRowAtIndexPath:",
1310
- didSelectRowAt: "tableView:didSelectRowAtIndexPath:",
1311
- didDeselectRowAt: "tableView:didDeselectRowAtIndexPath:",
1312
- accessoryButtonTappedForRowWith: "tableView:accessoryButtonTappedForRowWithIndexPath:",
1313
- editingStyleForRowAt: "tableView:editingStyleForRowAtIndexPath:",
1314
- leadingSwipeActionsConfigurationForRowAt: "tableView:leadingSwipeActionsConfigurationForRowAtIndexPath:",
1315
- trailingSwipeActionsConfigurationForRowAt: "tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:",
1316
- willBeginEditingRowAt: "tableView:willBeginEditingRowAtIndexPath:",
1317
- didEndEditingRowAt: "tableView:didEndEditingRowAtIndexPath:"
1324
+ willDisplay: [
1325
+ "tableView:willDisplayCell:forRowAtIndexPath:",
1326
+ "_:UITableView,willDisplay:UITableViewCell,forRowAt:IndexPath->Void"
1327
+ ],
1328
+ didEndDisplaying: [
1329
+ "tableView:didEndDisplayingCell:forRowAtIndexPath:",
1330
+ "_:UITableView,didEndDisplaying:UITableViewCell,forRowAt:IndexPath->Void"
1331
+ ],
1332
+ heightForRowAt: [
1333
+ "tableView:heightForRowAtIndexPath:",
1334
+ "_:UITableView,heightForRowAt:IndexPath->CGFloat"
1335
+ ],
1336
+ estimatedHeightForRowAt: [
1337
+ "tableView:estimatedHeightForRowAtIndexPath:",
1338
+ "_:UITableView,estimatedHeightForRowAt:IndexPath->CGFloat"
1339
+ ],
1340
+ heightForHeaderInSection: [
1341
+ "tableView:heightForHeaderInSection:",
1342
+ "_:UITableView,heightForHeaderInSection:Int->CGFloat"
1343
+ ],
1344
+ heightForFooterInSection: [
1345
+ "tableView:heightForFooterInSection:",
1346
+ "_:UITableView,heightForFooterInSection:Int->CGFloat"
1347
+ ],
1348
+ estimatedHeightForHeaderInSection: [
1349
+ "tableView:estimatedHeightForHeaderInSection:",
1350
+ "_:UITableView,estimatedHeightForHeaderInSection:Int->CGFloat"
1351
+ ],
1352
+ estimatedHeightForFooterInSection: [
1353
+ "tableView:estimatedHeightForFooterInSection:",
1354
+ "_:UITableView,estimatedHeightForFooterInSection:Int->CGFloat"
1355
+ ],
1356
+ viewForHeaderInSection: [
1357
+ "tableView:viewForHeaderInSection:",
1358
+ "_:UITableView,viewForHeaderInSection:Int->UIView?"
1359
+ ],
1360
+ viewForFooterInSection: [
1361
+ "tableView:viewForFooterInSection:",
1362
+ "_:UITableView,viewForFooterInSection:Int->UIView?"
1363
+ ],
1364
+ willDisplayHeaderView: [
1365
+ "tableView:willDisplayHeaderView:forSection:",
1366
+ "_:UITableView,willDisplayHeaderView:UIView,forSection:Int->Void"
1367
+ ],
1368
+ willDisplayFooterView: [
1369
+ "tableView:willDisplayFooterView:forSection:",
1370
+ "_:UITableView,willDisplayFooterView:UIView,forSection:Int->Void"
1371
+ ],
1372
+ didEndDisplayingHeaderView: [
1373
+ "tableView:didEndDisplayingHeaderView:forSection:",
1374
+ "_:UITableView,didEndDisplayingHeaderView:UIView,forSection:Int->Void"
1375
+ ],
1376
+ didEndDisplayingFooterView: [
1377
+ "tableView:didEndDisplayingFooterView:forSection:",
1378
+ "_:UITableView,didEndDisplayingFooterView:UIView,forSection:Int->Void"
1379
+ ],
1380
+ shouldHighlightRowAt: [
1381
+ "tableView:shouldHighlightRowAtIndexPath:",
1382
+ "_:UITableView,shouldHighlightRowAt:IndexPath->Bool"
1383
+ ],
1384
+ didHighlightRowAt: [
1385
+ "tableView:didHighlightRowAtIndexPath:",
1386
+ "_:UITableView,didHighlightRowAt:IndexPath->Void"
1387
+ ],
1388
+ didUnhighlightRowAt: [
1389
+ "tableView:didUnhighlightRowAtIndexPath:",
1390
+ "_:UITableView,didUnhighlightRowAt:IndexPath->Void"
1391
+ ],
1392
+ willSelectRowAt: [
1393
+ "tableView:willSelectRowAtIndexPath:",
1394
+ "_:UITableView,willSelectRowAt:IndexPath->IndexPath?"
1395
+ ],
1396
+ willDeselectRowAt: [
1397
+ "tableView:willDeselectRowAtIndexPath:",
1398
+ "_:UITableView,willDeselectRowAt:IndexPath->IndexPath?"
1399
+ ],
1400
+ didSelectRowAt: [
1401
+ "tableView:didSelectRowAtIndexPath:",
1402
+ "_:UITableView,didSelectRowAt:IndexPath->Void"
1403
+ ],
1404
+ didDeselectRowAt: [
1405
+ "tableView:didDeselectRowAtIndexPath:",
1406
+ "_:UITableView,didDeselectRowAt:IndexPath->Void"
1407
+ ],
1408
+ accessoryButtonTappedForRowWith: [
1409
+ "tableView:accessoryButtonTappedForRowWithIndexPath:",
1410
+ "_:UITableView,accessoryButtonTappedForRowWith:IndexPath->Void"
1411
+ ],
1412
+ editingStyleForRowAt: [
1413
+ "tableView:editingStyleForRowAtIndexPath:",
1414
+ "_:UITableView,editingStyleForRowAt:IndexPath->UITableViewCell.EditingStyle"
1415
+ ],
1416
+ leadingSwipeActionsConfigurationForRowAt: [
1417
+ "tableView:leadingSwipeActionsConfigurationForRowAtIndexPath:",
1418
+ "_:UITableView,leadingSwipeActionsConfigurationForRowAt:IndexPath->UISwipeActionsConfiguration?"
1419
+ ],
1420
+ trailingSwipeActionsConfigurationForRowAt: [
1421
+ "tableView:trailingSwipeActionsConfigurationForRowAtIndexPath:",
1422
+ "_:UITableView,trailingSwipeActionsConfigurationForRowAt:IndexPath->UISwipeActionsConfiguration?"
1423
+ ],
1424
+ willBeginEditingRowAt: [
1425
+ "tableView:willBeginEditingRowAtIndexPath:",
1426
+ "_:UITableView,willBeginEditingRowAt:IndexPath->Void"
1427
+ ],
1428
+ didEndEditingRowAt: [
1429
+ "tableView:didEndEditingRowAtIndexPath:",
1430
+ "_:UITableView,didEndEditingRowAt:IndexPath?->Void"
1431
+ ]
1318
1432
  };
1319
1433
  const braces = [...code.matchAll(/[{}]/g)].map((match) => match.index);
1320
1434
  const edits = [];
1321
1435
  for (const owner of code.matchAll(/\b(?:class|extension)\s+([A-Za-z_]\w*)[^{}]*\{/g)) {
1322
1436
  const conforms = conformances.get(owner[1]);
1323
1437
  if (!conforms) continue;
1438
+ if (/^\s*</.test(owner[0].slice(owner[0].indexOf(owner[1]) + owner[1].length)))
1439
+ continue;
1324
1440
  const selectors = {
1325
1441
  ...conforms.has("UITableViewDataSource") ? dataSource : {},
1326
1442
  ...conforms.has("UITableViewDelegate") ? delegate : {}
@@ -1344,15 +1460,24 @@ function lowerTableProtocolMethods(source, conformances) {
1344
1460
  if (/\b(?:override|static|class)\b|@(?:objc|ObjC|IBAction)\b/.test(attributes))
1345
1461
  continue;
1346
1462
  let selector;
1347
- if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
1463
+ const method = /^func\s+(tableView|numberOfSections)\s*\(([^()]*)\)\s*(?:->\s*([\w.?!]+|\(\s*\)))?\s*$/.exec(
1348
1464
  signature
1349
- ))
1350
- selector = "numberOfSectionsInTableView:";
1351
- else {
1352
- const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
1353
- signature
1354
- );
1355
- if (match) selector = selectors[match[1]];
1465
+ );
1466
+ if (method) {
1467
+ const parameters = splitTopLevel(method[2]).map((parameter) => {
1468
+ const match = /^(?:(\w+)\s+)?(\w+)\s*:\s*([\w.?]+)\s*$/.exec(parameter);
1469
+ return match ? `${match[1] ?? match[2]}:${match[3]}` : "";
1470
+ }).join(",").replace(/\b(?:UIKit|UIKitCore|Foundation|CoreGraphics|Swift)\./g, "");
1471
+ const result2 = (method[3] ?? "Void").replace(/\(\s*\)/, "Void").replaceAll("!", "?").replace(/\b(?:UIKit|UIKitCore|Foundation|CoreGraphics|Swift)\./g, "");
1472
+ if (method[1] === "numberOfSections") {
1473
+ if (conforms.has("UITableViewDataSource") && parameters === "in:UITableView" && result2 === "Int")
1474
+ selector = "numberOfSectionsInTableView:";
1475
+ } else {
1476
+ const label = /^_:UITableView,(\w+):/.exec(parameters)?.[1];
1477
+ const requirement = label ? selectors[label] : void 0;
1478
+ if (requirement && `${parameters}->${result2}` === requirement[1])
1479
+ selector = requirement[0];
1480
+ }
1356
1481
  }
1357
1482
  if (selector)
1358
1483
  edits.push([