peachsim 0.1.758 → 0.1.760

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 (79) 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 +1316 -863
  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 +2 -4
  33. package/dist-lib/host/websocket-proxy.cjs +1 -1
  34. package/dist-lib/index.cjs +509 -336
  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 +480 -307
  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 +1637 -1173
  60. package/dist-lib/swift-compile.cjs +1 -1
  61. package/dist-lib/swift-compile.mjs +1 -1
  62. package/dist-lib/swift-package.cjs +1 -110
  63. package/dist-lib/swift-package.mjs +1 -109
  64. package/dist-lib/swift-submit.cjs +1 -1
  65. package/dist-lib/swift-submit.mjs +1 -1
  66. package/dist-lib/swift-toolchain.cjs +1 -1
  67. package/dist-lib/swift.cjs +1 -1
  68. package/dist-lib/vite-swift.cjs +1013 -558
  69. package/dist-lib/vite.cjs +2 -4
  70. package/package.json +1 -1
  71. package/src/host/replacement-module-handler.ts +2 -1
  72. package/src/native-seam-manifest.ts +8 -0
  73. package/src/swift-host.ts +68 -66
  74. package/src/swift-package-manifest.ts +307 -0
  75. package/src/swift-package.ts +2 -135
  76. package/src/swift-packages.ts +341 -0
  77. package/src/xcode-json-project.ts +450 -0
  78. package/src/xcode-project.ts +112 -92
  79. package/src/swift-remote-packages.ts +0 -255
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.758 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.760 | (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.758 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.760 | (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";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.758 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.760 | (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;
@@ -24,7 +24,6 @@ var swift_package_exports = {};
24
24
  __export(swift_package_exports, {
25
25
  isSwiftManifestFile: () => isSwiftManifestFile,
26
26
  swiftImplicitResourcePaths: () => swiftImplicitResourcePaths,
27
- swiftManifestGraph: () => swiftManifestGraph,
28
27
  swiftManifestTargets: () => swiftManifestTargets,
29
28
  swiftPackageIdentity: () => swiftPackageIdentity,
30
29
  swiftPackagePartition: () => swiftPackagePartition
@@ -92,116 +91,9 @@ function manifestCalls(manifest, kinds) {
92
91
  }
93
92
  return calls;
94
93
  }
95
- var NAME = /\bname\s*:\s*"([^"]+)"/;
96
- function listArgument(call, label) {
97
- const start = new RegExp(`\\b${label}\\s*:\\s*\\[`).exec(call);
98
- if (!start) return [];
99
- const items = [];
100
- let depth = 0;
101
- let inString = false;
102
- let item = "";
103
- for (let i = start.index + start[0].length; i < call.length; i++) {
104
- const ch = call[i];
105
- if (inString) {
106
- item += ch;
107
- if (ch === '"' && call[i - 1] !== "\\") inString = false;
108
- continue;
109
- }
110
- if (ch === '"') inString = true;
111
- else if (ch === "(" || ch === "[") depth++;
112
- else if (ch === ")" || ch === "]") {
113
- if (depth === 0) break;
114
- depth--;
115
- } else if (ch === "," && depth === 0) {
116
- items.push(item.trim());
117
- item = "";
118
- continue;
119
- }
120
- item += ch;
121
- }
122
- if (item.trim()) items.push(item.trim());
123
- return items;
124
- }
125
94
  function swiftPackageIdentity(url) {
126
95
  return (url.split("/").pop() ?? url).replace(/\.git$/, "").toLowerCase();
127
96
  }
128
- function swiftManifestGraph(manifest) {
129
- const graph = {
130
- products: /* @__PURE__ */ new Map(),
131
- dependencies: /* @__PURE__ */ new Map(),
132
- binaryTargets: /* @__PURE__ */ new Set(),
133
- systemLibraries: /* @__PURE__ */ new Set(),
134
- packageURLs: /* @__PURE__ */ new Map(),
135
- packagePaths: []
136
- };
137
- for (const { kind, flat, call } of manifestCalls(manifest, [
138
- "library",
139
- "executableTarget",
140
- "target",
141
- "binaryTarget",
142
- "systemLibrary",
143
- "package"
144
- ])) {
145
- if (kind === "package") {
146
- const local = /\bpath\s*:\s*"([^"]+)"/.exec(flat)?.[1];
147
- if (local) graph.packagePaths.push(local);
148
- const url = /\burl\s*:\s*"([^"]+)"/.exec(flat)?.[1];
149
- if (!url) continue;
150
- graph.packageURLs.set(swiftPackageIdentity(url), url);
151
- const name2 = NAME.exec(flat)?.[1];
152
- if (name2) graph.packageURLs.set(name2.toLowerCase(), url);
153
- continue;
154
- }
155
- const name = NAME.exec(flat)?.[1];
156
- if (!name) continue;
157
- if (kind === "library") {
158
- graph.products.set(
159
- name,
160
- listArgument(call, "targets").flatMap(
161
- (item) => /^"([^"]+)"$/.exec(item)?.[1] ?? []
162
- )
163
- );
164
- continue;
165
- }
166
- if (kind === "binaryTarget") graph.binaryTargets.add(name);
167
- if (kind === "systemLibrary") graph.systemLibraries.add(name);
168
- const dependencies = [];
169
- for (const item of listArgument(call, "dependencies")) {
170
- const platforms = /condition\s*:\s*\.when\(\s*platforms\s*:\s*\[([^\]]*)\]/.exec(
171
- item
172
- )?.[1];
173
- if (platforms !== void 0 && !/\.iOS\b/.test(platforms)) continue;
174
- if (/condition\s*:\s*\.when\([^)]*\btraits\s*:/.test(item)) continue;
175
- const plain = /^"([^"]+)"$/.exec(item)?.[1];
176
- const product = /^\.product(?:Item)?\(\s*name\s*:\s*"([^"]+)"\s*,\s*package\s*:\s*"([^"]+)"/.exec(
177
- item
178
- );
179
- const target = /^\.(?:target|byName)(?:Item)?\(\s*name\s*:\s*"([^"]+)"/.exec(
180
- item
181
- )?.[1];
182
- if (plain) dependencies.push({ kind: "target", name: plain });
183
- else if (product)
184
- dependencies.push({
185
- kind: "product",
186
- name: product[1],
187
- package: product[2].toLowerCase()
188
- });
189
- else if (target) dependencies.push({ kind: "target", name: target });
190
- }
191
- graph.dependencies.set(name, dependencies);
192
- }
193
- for (const dependencies of graph.dependencies.values()) {
194
- for (const [index, dependency] of dependencies.entries()) {
195
- if (dependency.kind === "target" && !graph.dependencies.has(dependency.name))
196
- dependencies[index] = {
197
- kind: "product",
198
- name: dependency.name,
199
- package: dependency.name.toLowerCase()
200
- };
201
- }
202
- }
203
- return graph;
204
- }
205
97
  function swiftManifestTargets(manifest, resourcePaths = []) {
206
98
  const implicitResources = swiftImplicitResourcePaths(resourcePaths);
207
99
  const targets = [];
@@ -250,7 +142,6 @@ function swiftPackagePartition(manifest, resourcePaths = []) {
250
142
  0 && (module.exports = {
251
143
  isSwiftManifestFile,
252
144
  swiftImplicitResourcePaths,
253
- swiftManifestGraph,
254
145
  swiftManifestTargets,
255
146
  swiftPackageIdentity,
256
147
  swiftPackagePartition
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.758 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.760 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function isSwiftManifestFile(file) {
@@ -63,116 +63,9 @@ function manifestCalls(manifest, kinds) {
63
63
  }
64
64
  return calls;
65
65
  }
66
- var NAME = /\bname\s*:\s*"([^"]+)"/;
67
- function listArgument(call, label) {
68
- const start = new RegExp(`\\b${label}\\s*:\\s*\\[`).exec(call);
69
- if (!start) return [];
70
- const items = [];
71
- let depth = 0;
72
- let inString = false;
73
- let item = "";
74
- for (let i = start.index + start[0].length; i < call.length; i++) {
75
- const ch = call[i];
76
- if (inString) {
77
- item += ch;
78
- if (ch === '"' && call[i - 1] !== "\\") inString = false;
79
- continue;
80
- }
81
- if (ch === '"') inString = true;
82
- else if (ch === "(" || ch === "[") depth++;
83
- else if (ch === ")" || ch === "]") {
84
- if (depth === 0) break;
85
- depth--;
86
- } else if (ch === "," && depth === 0) {
87
- items.push(item.trim());
88
- item = "";
89
- continue;
90
- }
91
- item += ch;
92
- }
93
- if (item.trim()) items.push(item.trim());
94
- return items;
95
- }
96
66
  function swiftPackageIdentity(url) {
97
67
  return (url.split("/").pop() ?? url).replace(/\.git$/, "").toLowerCase();
98
68
  }
99
- function swiftManifestGraph(manifest) {
100
- const graph = {
101
- products: /* @__PURE__ */ new Map(),
102
- dependencies: /* @__PURE__ */ new Map(),
103
- binaryTargets: /* @__PURE__ */ new Set(),
104
- systemLibraries: /* @__PURE__ */ new Set(),
105
- packageURLs: /* @__PURE__ */ new Map(),
106
- packagePaths: []
107
- };
108
- for (const { kind, flat, call } of manifestCalls(manifest, [
109
- "library",
110
- "executableTarget",
111
- "target",
112
- "binaryTarget",
113
- "systemLibrary",
114
- "package"
115
- ])) {
116
- if (kind === "package") {
117
- const local = /\bpath\s*:\s*"([^"]+)"/.exec(flat)?.[1];
118
- if (local) graph.packagePaths.push(local);
119
- const url = /\burl\s*:\s*"([^"]+)"/.exec(flat)?.[1];
120
- if (!url) continue;
121
- graph.packageURLs.set(swiftPackageIdentity(url), url);
122
- const name2 = NAME.exec(flat)?.[1];
123
- if (name2) graph.packageURLs.set(name2.toLowerCase(), url);
124
- continue;
125
- }
126
- const name = NAME.exec(flat)?.[1];
127
- if (!name) continue;
128
- if (kind === "library") {
129
- graph.products.set(
130
- name,
131
- listArgument(call, "targets").flatMap(
132
- (item) => /^"([^"]+)"$/.exec(item)?.[1] ?? []
133
- )
134
- );
135
- continue;
136
- }
137
- if (kind === "binaryTarget") graph.binaryTargets.add(name);
138
- if (kind === "systemLibrary") graph.systemLibraries.add(name);
139
- const dependencies = [];
140
- for (const item of listArgument(call, "dependencies")) {
141
- const platforms = /condition\s*:\s*\.when\(\s*platforms\s*:\s*\[([^\]]*)\]/.exec(
142
- item
143
- )?.[1];
144
- if (platforms !== void 0 && !/\.iOS\b/.test(platforms)) continue;
145
- if (/condition\s*:\s*\.when\([^)]*\btraits\s*:/.test(item)) continue;
146
- const plain = /^"([^"]+)"$/.exec(item)?.[1];
147
- const product = /^\.product(?:Item)?\(\s*name\s*:\s*"([^"]+)"\s*,\s*package\s*:\s*"([^"]+)"/.exec(
148
- item
149
- );
150
- const target = /^\.(?:target|byName)(?:Item)?\(\s*name\s*:\s*"([^"]+)"/.exec(
151
- item
152
- )?.[1];
153
- if (plain) dependencies.push({ kind: "target", name: plain });
154
- else if (product)
155
- dependencies.push({
156
- kind: "product",
157
- name: product[1],
158
- package: product[2].toLowerCase()
159
- });
160
- else if (target) dependencies.push({ kind: "target", name: target });
161
- }
162
- graph.dependencies.set(name, dependencies);
163
- }
164
- for (const dependencies of graph.dependencies.values()) {
165
- for (const [index, dependency] of dependencies.entries()) {
166
- if (dependency.kind === "target" && !graph.dependencies.has(dependency.name))
167
- dependencies[index] = {
168
- kind: "product",
169
- name: dependency.name,
170
- package: dependency.name.toLowerCase()
171
- };
172
- }
173
- }
174
- return graph;
175
- }
176
69
  function swiftManifestTargets(manifest, resourcePaths = []) {
177
70
  const implicitResources = swiftImplicitResourcePaths(resourcePaths);
178
71
  const targets = [];
@@ -220,7 +113,6 @@ function swiftPackagePartition(manifest, resourcePaths = []) {
220
113
  export {
221
114
  isSwiftManifestFile,
222
115
  swiftImplicitResourcePaths,
223
- swiftManifestGraph,
224
116
  swiftManifestTargets,
225
117
  swiftPackageIdentity,
226
118
  swiftPackagePartition
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.758 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.760 | (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.758 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.760 | (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.758 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.760 | (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.758 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.760 | (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;