peachsim 0.1.2609 → 0.1.2610

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 (147) hide show
  1. package/cli/commands/perf-native.ts +120 -6
  2. package/dist-lib/agent-daemon-client.cjs +1 -1
  3. package/dist-lib/agent-events.cjs +1 -1
  4. package/dist-lib/attached-projects.cjs +1 -1
  5. package/dist-lib/auth/shared-session.cjs +1 -1
  6. package/dist-lib/backend-origin.cjs +1 -1
  7. package/dist-lib/beta.cjs +1 -1
  8. package/dist-lib/beta.mjs +2 -2
  9. package/dist-lib/bridge-constants.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.mjs +5 -5
  12. package/dist-lib/bridge-contract.cjs +1 -1
  13. package/dist-lib/bridge-contract.mjs +3 -3
  14. package/dist-lib/bundle-channel.cjs +60485 -60177
  15. package/dist-lib/capture-contract.cjs +1 -1
  16. package/dist-lib/capture-contract.mjs +3 -3
  17. package/dist-lib/cloud-contract.cjs +1 -1
  18. package/dist-lib/cloud-contract.mjs +3 -3
  19. package/dist-lib/cloud-test-args.cjs +1 -1
  20. package/dist-lib/cloud-test-args.mjs +2 -2
  21. package/dist-lib/cloud.cjs +1 -1
  22. package/dist-lib/cloud.mjs +7 -7
  23. package/dist-lib/config.cjs +1 -1
  24. package/dist-lib/config.mjs +5 -5
  25. package/dist-lib/detox/index.cjs +1 -1
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/esm-chunks/{acorn-P6Q3SN6U.mjs → acorn-L2SFCOHG.mjs} +3 -3
  28. package/dist-lib/esm-chunks/{chunk-CJLXAXGU.mjs → chunk-2LJTZ2KG.mjs} +17 -328
  29. package/dist-lib/esm-chunks/{chunk-DN4RY4ZO.mjs → chunk-42NDD4R7.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-MF7HNQ5K.mjs → chunk-73NIGS7D.mjs} +1490 -3950
  31. package/dist-lib/esm-chunks/{chunk-LSNKOL3L.mjs → chunk-CUBTZPSZ.mjs} +1 -1
  32. package/dist-lib/esm-chunks/chunk-EU5WMP5O.mjs +322 -0
  33. package/dist-lib/esm-chunks/{chunk-7JYSTMRO.mjs → chunk-EYSNLE5V.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-UMKSCALR.mjs → chunk-FP447MCW.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-2UJG76LY.mjs → chunk-HMTSU22Q.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-GJZ2ROIK.mjs → chunk-KTAGV5U6.mjs} +14 -12
  37. package/dist-lib/esm-chunks/{chunk-3MJN4KBR.mjs → chunk-MJP4WOSX.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-3LX34QVB.mjs → chunk-MK4DOEDN.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-4HCHYS5S.mjs → chunk-N3M5KT33.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-IHK4FK5A.mjs → chunk-N7XU2WWO.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-D44BCQPZ.mjs → chunk-RN73P2DY.mjs} +34 -28
  42. package/dist-lib/esm-chunks/{chunk-62CUUMJF.mjs → chunk-VDLPNJ6P.mjs} +1 -1
  43. package/dist-lib/esm-chunks/chunk-W3LNUIUA.mjs +2655 -0
  44. package/dist-lib/esm-chunks/{chunk-T554RY2B.mjs → chunk-WBQFHIGS.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-5V7JOQMI.mjs → chunk-WZHEW7Z7.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-FOM5H3FB.mjs → chunk-X74N3K5N.mjs} +4 -4
  47. package/dist-lib/esm-chunks/{chunk-ZUBTL7EH.mjs → chunk-XN74REO2.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-PKXGC5OZ.mjs → chunk-YLUD2UET.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-VHBBOWKT.mjs → chunk-YVLXYLNV.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-L4ATOCRX.mjs → chunk-YYGSN3BN.mjs} +3 -3
  51. package/dist-lib/esm-chunks/{chunk-FIUWBFDV.mjs → chunk-ZZB2LFYV.mjs} +1 -1
  52. package/dist-lib/esm-chunks/{metro-layout-parser-7VIYXTX3.mjs → metro-layout-parser-VDPXJ7LW.mjs} +3 -3
  53. package/dist-lib/esm-chunks/{swift-package-prebuilt-GNRGNGKJ.mjs → swift-package-prebuilt-HRPDLN2P.mjs} +14 -11
  54. package/dist-lib/esm-chunks/{swift-sdk-app-module-QMYD4WKD.mjs → swift-sdk-app-module-5DOGMU3M.mjs} +16 -14
  55. package/dist-lib/esm-chunks/{swift-sdk-image-LUAWELUR.mjs → swift-sdk-image-W3UU4H4L.mjs} +16 -14
  56. package/dist-lib/esm-chunks/{swift-sdk-image-producer-A4Y2EYPV.mjs → swift-sdk-image-producer-OJWD6ZOH.mjs} +8 -6
  57. package/dist-lib/expo-swift-bundle.cjs +42524 -42216
  58. package/dist-lib/expo-swift-metadata.cjs +1 -1
  59. package/dist-lib/expo-swift-metadata.mjs +7 -7
  60. package/dist-lib/home-paths.cjs +1 -1
  61. package/dist-lib/host/bridge-host.cjs +43719 -43248
  62. package/dist-lib/host/fetch-proxy-handler.cjs +670 -645
  63. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  64. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  65. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  66. package/dist-lib/host/websocket-proxy.cjs +1 -1
  67. package/dist-lib/index.cjs +1 -1
  68. package/dist-lib/kotlin-host.cjs +1 -1
  69. package/dist-lib/menu.cjs +1 -1
  70. package/dist-lib/menu.mjs +3 -3
  71. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  72. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  73. package/dist-lib/metro-production-bundle.cjs +1 -1
  74. package/dist-lib/metro-production-bundle.mjs +4 -4
  75. package/dist-lib/native-app-identity-project.cjs +1499 -2889
  76. package/dist-lib/native-app-identity-project.mjs +317 -339
  77. package/dist-lib/native-app-identity.cjs +1 -1
  78. package/dist-lib/native-app-identity.mjs +6 -6
  79. package/dist-lib/native-firebase-metadata.cjs +1 -1
  80. package/dist-lib/native-firebase-metadata.mjs +3 -3
  81. package/dist-lib/pdfium-raster.cjs +1 -1
  82. package/dist-lib/pdfium-raster.mjs +2 -2
  83. package/dist-lib/plist.cjs +1 -1
  84. package/dist-lib/plist.mjs +3 -3
  85. package/dist-lib/profiles.cjs +1 -1
  86. package/dist-lib/public-brand.cjs +1 -1
  87. package/dist-lib/public-origins-lib-esm.json +166 -154
  88. package/dist-lib/public-origins-lib.json +141 -198
  89. package/dist-lib/react-native-host-modules.cjs +1 -1
  90. package/dist-lib/react-native-host-modules.mjs +2 -2
  91. package/dist-lib/reap-browser.cjs +1 -1
  92. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  93. package/dist-lib/sdk.cjs +1 -1
  94. package/dist-lib/sdk.mjs +8 -8
  95. package/dist-lib/skills.cjs +38909 -38438
  96. package/dist-lib/swift-compile.cjs +12239 -12121
  97. package/dist-lib/swift-compile.mjs +36 -33
  98. package/dist-lib/swift-package.cjs +1 -1
  99. package/dist-lib/swift-package.mjs +3 -3
  100. package/dist-lib/swift-submit.cjs +1 -1
  101. package/dist-lib/swift-submit.mjs +6 -6
  102. package/dist-lib/swift-svg-raster.cjs +1 -1
  103. package/dist-lib/swift-svg-raster.mjs +2 -2
  104. package/dist-lib/swift-toolchain.cjs +1 -1
  105. package/dist-lib/swift.cjs +1 -1
  106. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  108. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  109. package/dist-lib/vendor/acorn.cjs +1 -1
  110. package/dist-lib/vendor/magic-string.cjs +1 -1
  111. package/dist-lib/vendor/stream-json.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  116. package/dist-lib/vendor/sucrase.cjs +1 -1
  117. package/dist-lib/vendor/terser.cjs +1 -1
  118. package/dist-lib/vendor/valibot.cjs +1 -1
  119. package/dist-lib/vendor/ws.cjs +1 -1
  120. package/dist-lib/vendor/zod.cjs +1 -1
  121. package/dist-lib/worklet-executable.cjs +1 -1
  122. package/dist-lib/worklet-executable.mjs +3 -3
  123. package/package.json +1 -1
  124. package/src/binaryen.lock.json +3 -3
  125. package/src/genrule-archives.ts +5 -2
  126. package/src/native-framework-compiler.ts +1 -1
  127. package/src/native-static-libraries.ts +2 -3
  128. package/src/native-swift-slices.ts +1 -1
  129. package/src/nitro-dependencies.ts +3 -7
  130. package/src/one-native-controls-package.ts +165 -11
  131. package/src/oneNativeControlsContract.ts +1 -0
  132. package/src/rive-runtime-dependencies.ts +1 -2
  133. package/src/swift-compile.ts +165 -1796
  134. package/src/swift-compiler-digest.ts +2 -0
  135. package/src/swift-distribution.ts +39 -15
  136. package/src/swift-objc-compile.ts +194 -32
  137. package/src/swift-package-manifest.ts +6 -29
  138. package/src/swift-packages.ts +6 -14
  139. package/src/swift-sdk-surface.ts +1811 -0
  140. package/src/swift-standin-digest.ts +28 -5
  141. package/src/swift-standins.ts +16 -19
  142. package/src/swift-wasm-archive.ts +200 -0
  143. package/src/swift-wasm-prune.ts +3 -93
  144. package/src/swift-wasm64-native-source.ts +4 -2
  145. package/src/swiftWasm64ConfigContract.ts +10 -0
  146. package/src/wasm-optimize.ts +18 -14
  147. package/src/xcode-project.ts +2 -4
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2609 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -0,0 +1,322 @@
1
+ /*! peach v0.1.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
+ import {
3
+ killOrphanedProcessGroup,
4
+ readProcessTable,
5
+ terminateProcessGroup
6
+ } from "./chunk-2LJTZ2KG.mjs";
7
+
8
+ // src/swift-root-lock.ts
9
+ import {
10
+ spawn
11
+ } from "node:child_process";
12
+ import { createHash, randomUUID } from "node:crypto";
13
+ import {
14
+ closeSync,
15
+ existsSync,
16
+ linkSync,
17
+ mkdirSync,
18
+ openSync,
19
+ readdirSync,
20
+ readFileSync,
21
+ realpathSync,
22
+ rmSync,
23
+ writeFileSync
24
+ } from "node:fs";
25
+ import { homedir } from "node:os";
26
+ import path from "node:path";
27
+ var POLL_MS = 250;
28
+ var INSPECT_ATTEMPTS = 5;
29
+ var START_TOLERANCE_MS = 2e3;
30
+ function errorCode(error) {
31
+ return error instanceof Error && "code" in error && typeof error.code === "string" ? error.code : void 0;
32
+ }
33
+ function processTable(pid) {
34
+ try {
35
+ return readProcessTable(void 0, pid);
36
+ } catch (error) {
37
+ throw new Error(
38
+ `swift root lock cannot read the process table: ${error instanceof Error ? error.message : String(error)}`
39
+ );
40
+ }
41
+ }
42
+ async function processTableWithRetry(pid, signal) {
43
+ for (let attempt = 1; ; attempt++) {
44
+ try {
45
+ return processTable(pid);
46
+ } catch (error) {
47
+ if (attempt >= INSPECT_ATTEMPTS) throw error;
48
+ await pause(POLL_MS * attempt, signal);
49
+ signal?.throwIfAborted();
50
+ }
51
+ }
52
+ }
53
+ function sameProcess(row, identity) {
54
+ return row.pid === identity.pid && Math.abs(row.start - identity.start) <= START_TOLERANCE_MS;
55
+ }
56
+ function ownIdentity(pid) {
57
+ const row = processTable(pid).find(
58
+ (candidate) => candidate.pid === pid && !candidate.zombie
59
+ );
60
+ if (!row) throw new Error(`swift root lock cannot find process ${pid}`);
61
+ return { pid, start: row.start };
62
+ }
63
+ function parseIdentity(text) {
64
+ const value = JSON.parse(text);
65
+ if (value && typeof value === "object" && "pid" in value && typeof value.pid === "number" && Number.isInteger(value.pid) && value.pid > 1 && "start" in value && typeof value.start === "number")
66
+ return { pid: value.pid, start: value.start };
67
+ throw new Error(`swift root lock record is not a process identity: ${text}`);
68
+ }
69
+ function pause(ms, signal) {
70
+ return new Promise((resolve) => {
71
+ const done = () => {
72
+ clearTimeout(timer);
73
+ signal?.removeEventListener("abort", done);
74
+ resolve();
75
+ };
76
+ const timer = setTimeout(done, ms);
77
+ signal?.addEventListener("abort", done, { once: true });
78
+ });
79
+ }
80
+ var name = (number, suffix) => `${String(number).padStart(12, "0")}.${suffix}`;
81
+ function generationNumbers(directory) {
82
+ const numbers = /* @__PURE__ */ new Set();
83
+ for (const entry of readdirSync(directory)) {
84
+ const match = /^(\d{12})\./.exec(entry);
85
+ if (match) numbers.add(Number(match[1]));
86
+ }
87
+ return [...numbers].sort((a, b) => a - b);
88
+ }
89
+ function readGeneration(directory, number) {
90
+ let owner;
91
+ try {
92
+ owner = readFileSync(path.join(directory, name(number, "owner")), "utf8");
93
+ } catch (error) {
94
+ if (errorCode(error) === "ENOENT") return null;
95
+ throw error;
96
+ }
97
+ return {
98
+ number,
99
+ holder: parseIdentity(owner),
100
+ released: readdirSync(directory).includes(name(number, "released"))
101
+ };
102
+ }
103
+ function readChildren(directory, number) {
104
+ const prefix = name(number, "child.");
105
+ return readdirSync(directory).filter((entry) => entry.startsWith(prefix)).map((entry) => parseIdentity(readFileSync(path.join(directory, entry), "utf8")));
106
+ }
107
+ function groupAlive(table, leader) {
108
+ const row = table.find((candidate) => candidate.pid === leader.pid);
109
+ if (row && !sameProcess(row, leader)) return false;
110
+ return table.some((candidate) => candidate.pgid === leader.pid && !candidate.zombie);
111
+ }
112
+ function linuxMountPath(existing) {
113
+ const fd = openSync(existing, "r");
114
+ try {
115
+ const mountId = /^mnt_id:\s+(\d+)$/m.exec(
116
+ readFileSync("/proc/self/fdinfo/" + fd, "utf8")
117
+ )?.[1];
118
+ const mount = readFileSync("/proc/self/mountinfo", "utf8").split("\n").find((line) => line.startsWith(mountId + " "))?.split(" ");
119
+ if (!mount?.[4]) throw new Error("cannot identify Swift build mount for " + existing);
120
+ const decode = (value) => value.replace(
121
+ /\\([0-7]{3})/g,
122
+ (_, octal) => String.fromCharCode(parseInt(octal, 8))
123
+ );
124
+ return mount[2] + ":" + path.join(decode(mount[3]), path.relative(decode(mount[4]), existing));
125
+ } finally {
126
+ closeSync(fd);
127
+ }
128
+ }
129
+ function rootLockKey(root) {
130
+ let existing = path.resolve(root);
131
+ const missing = [];
132
+ while (!existsSync(existing) && path.dirname(existing) !== existing) {
133
+ missing.unshift(path.basename(existing));
134
+ existing = path.dirname(existing);
135
+ }
136
+ existing = realpathSync(existing);
137
+ const backingPath = process.platform === "linux" ? linuxMountPath(existing) : existing;
138
+ return path.join(backingPath, ...missing);
139
+ }
140
+ function swiftRootLocksDir() {
141
+ return path.join(homedir(), ".peach", "cache", "swift-root-locks");
142
+ }
143
+ function lockDirectoryFor(root) {
144
+ const directory = path.join(
145
+ swiftRootLocksDir(),
146
+ createHash("sha256").update(rootLockKey(root)).digest("hex").slice(0, 32)
147
+ );
148
+ mkdirSync(directory, { recursive: true });
149
+ return directory;
150
+ }
151
+ function acquireSwiftRootReadHold(root) {
152
+ const directory = lockDirectoryFor(root);
153
+ const token = randomUUID();
154
+ const pending = path.join(directory, `pending.reader.${token}`);
155
+ const reader = path.join(directory, `reader.${token}`);
156
+ writeFileSync(pending, JSON.stringify(ownIdentity(process.pid)));
157
+ try {
158
+ linkSync(pending, reader);
159
+ } finally {
160
+ rmSync(pending, { force: true });
161
+ }
162
+ let released = false;
163
+ return {
164
+ release() {
165
+ if (released) return;
166
+ released = true;
167
+ rmSync(reader, { force: true });
168
+ }
169
+ };
170
+ }
171
+ async function hasLiveSwiftRootReaders(root, signal) {
172
+ const directory = lockDirectoryFor(root);
173
+ const entries = readdirSync(directory).filter((entry) => entry.startsWith("reader."));
174
+ if (entries.length === 0) return false;
175
+ for (const entry of entries) {
176
+ const file = path.join(directory, entry);
177
+ let text;
178
+ try {
179
+ text = readFileSync(file, "utf8");
180
+ } catch (error) {
181
+ if (errorCode(error) === "ENOENT") continue;
182
+ throw error;
183
+ }
184
+ const identity = parseIdentity(text);
185
+ const rows = await processTableWithRetry(identity.pid, signal);
186
+ if (rows.some((row) => !row.zombie && sameProcess(row, identity))) return true;
187
+ rmSync(file, { force: true });
188
+ }
189
+ return false;
190
+ }
191
+ async function waitForNoSwiftRootReaders(root, signal) {
192
+ let announced = false;
193
+ while (await hasLiveSwiftRootReaders(root, signal)) {
194
+ signal?.throwIfAborted();
195
+ if (!announced) {
196
+ announced = true;
197
+ process.stderr.write(`[swift-root-lock] waiting for readers of ${root}
198
+ `);
199
+ }
200
+ await pause(POLL_MS, signal);
201
+ }
202
+ }
203
+ async function withSwiftRootLock(root, work, signal, wait = true) {
204
+ const directory = lockDirectoryFor(root);
205
+ const token = randomUUID();
206
+ const ownRow = (await processTableWithRetry(process.pid, signal)).find(
207
+ (candidate) => candidate.pid === process.pid && !candidate.zombie
208
+ );
209
+ if (!ownRow) throw new Error(`swift root lock cannot find process ${process.pid}`);
210
+ const owner = JSON.stringify({ pid: process.pid, start: ownRow.start });
211
+ const pending = path.join(directory, `pending.${token}`);
212
+ let held = 0;
213
+ let announced = 0;
214
+ let current = null;
215
+ const waiting = async (reason) => {
216
+ if (announced !== current?.number) {
217
+ announced = current?.number ?? 0;
218
+ process.stderr.write(`[swift-root-lock] waiting for ${root}: ${reason}
219
+ `);
220
+ }
221
+ await pause(POLL_MS, signal);
222
+ };
223
+ for (; ; ) {
224
+ signal?.throwIfAborted();
225
+ const newest = generationNumbers(directory).at(-1) ?? 0;
226
+ current = newest > 0 ? readGeneration(directory, newest) : null;
227
+ if (newest > 0 && !current) continue;
228
+ if (current && !current.released) {
229
+ const { holder: identity } = current;
230
+ const holder = await processTableWithRetry(identity.pid, signal);
231
+ if (holder.some((row) => !row.zombie && sameProcess(row, identity))) {
232
+ if (!wait) return void 0;
233
+ await waiting(`held by pid ${identity.pid}`);
234
+ continue;
235
+ }
236
+ const children2 = readChildren(directory, newest);
237
+ if (children2.length) {
238
+ const table = await processTableWithRetry(void 0, signal);
239
+ const orphaned = children2.filter((child) => groupAlive(table, child));
240
+ if (orphaned.length) {
241
+ if (!wait) return void 0;
242
+ for (const child of orphaned) killOrphanedProcessGroup(child.pid);
243
+ await waiting(
244
+ `stopping compiler groups ${orphaned.map((child) => child.pid).join(", ")} left by dead pid ${identity.pid}`
245
+ );
246
+ continue;
247
+ }
248
+ }
249
+ }
250
+ writeFileSync(pending, owner);
251
+ try {
252
+ linkSync(pending, path.join(directory, name(newest + 1, "owner")));
253
+ } catch (error) {
254
+ if (errorCode(error) === "EEXIST") continue;
255
+ throw error;
256
+ } finally {
257
+ rmSync(pending, { force: true });
258
+ }
259
+ const numbers = generationNumbers(directory);
260
+ if (numbers.at(-1) !== newest + 1) {
261
+ rmSync(path.join(directory, name(newest + 1, "owner")), { force: true });
262
+ continue;
263
+ }
264
+ held = newest + 1;
265
+ for (const number of numbers)
266
+ if (number < held) {
267
+ for (const entry of readdirSync(directory))
268
+ if (entry.startsWith(name(number, "")))
269
+ rmSync(path.join(directory, entry), { force: true });
270
+ }
271
+ break;
272
+ }
273
+ const children = [];
274
+ const lease = {
275
+ register(child) {
276
+ const index = children.push(child);
277
+ if (child.pid === void 0) throw new Error("could not register compiler process");
278
+ const childPending = `${pending}.child.${index}`;
279
+ try {
280
+ writeFileSync(childPending, JSON.stringify(ownIdentity(child.pid)));
281
+ linkSync(childPending, path.join(directory, name(held, `child.${index}`)));
282
+ } finally {
283
+ rmSync(childPending, { force: true });
284
+ }
285
+ },
286
+ spawn(command, args, options, companion) {
287
+ const child = spawn(
288
+ "/bin/sh",
289
+ ["-c", 'IFS= read -r go || exit 1; exec "$@" </dev/null', "sh", command, ...args],
290
+ { ...options, detached: true, stdio: ["pipe", "pipe", "pipe"] }
291
+ );
292
+ child.stdin.on("error", () => {
293
+ });
294
+ if (child.pid === void 0) {
295
+ child.stdin.destroy();
296
+ return child;
297
+ }
298
+ try {
299
+ lease.register(child);
300
+ companion?.register(child);
301
+ } catch (error) {
302
+ child.stdin.destroy();
303
+ throw error;
304
+ }
305
+ child.stdin.end("go\n");
306
+ return child;
307
+ }
308
+ };
309
+ try {
310
+ return await work(lease);
311
+ } finally {
312
+ await Promise.all(children.map((child) => terminateProcessGroup(child, "SIGKILL", 0)));
313
+ writeFileSync(path.join(directory, name(held, "released")), "");
314
+ }
315
+ }
316
+
317
+ export {
318
+ acquireSwiftRootReadHold,
319
+ hasLiveSwiftRootReaders,
320
+ waitForNoSwiftRootReaders,
321
+ withSwiftRootLock
322
+ };
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2609 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/assetCatalogContract.ts
4
4
  function isSwiftImageVariants(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2609 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/plist.ts
4
4
  var NAMED_ENTITIES = {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2609 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/public-brand.ts
4
4
  var name = "Peach";
@@ -1,7 +1,4 @@
1
- /*! peach v0.1.2609 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
- import {
3
- swiftModuleToolchain
4
- } from "./chunk-D44BCQPZ.mjs";
1
+ /*! peach v0.1.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
5
2
  import {
6
3
  DARWIN_RECORDS_PREFIX,
7
4
  KEEP_WASM_NAMES,
@@ -24,20 +21,25 @@ import {
24
21
  readWasmLinkMap,
25
22
  relocationEdges,
26
23
  strongDefinitions,
27
- swiftDistributionAt,
28
- swiftModuleDigest,
29
24
  swiftProjectBuildKey,
30
25
  swiftSdkGuestLookups,
31
- swiftSdkPaths,
32
26
  unslottedFunctions,
33
27
  wasmSections
34
- } from "./chunk-MF7HNQ5K.mjs";
28
+ } from "./chunk-73NIGS7D.mjs";
29
+ import {
30
+ withSwiftRootLock
31
+ } from "./chunk-EU5WMP5O.mjs";
32
+ import {
33
+ swiftDistributionAt,
34
+ swiftModuleDigest,
35
+ swiftModuleToolchain,
36
+ swiftSdkPaths
37
+ } from "./chunk-W3LNUIUA.mjs";
35
38
  import {
36
39
  SWIFT_WASM_TRIPLE,
37
40
  sourceSwiftCheckout,
38
- swiftCacheDir,
39
- withSwiftRootLock
40
- } from "./chunk-CJLXAXGU.mjs";
41
+ swiftCacheDir
42
+ } from "./chunk-2LJTZ2KG.mjs";
41
43
 
42
44
  // src/swift-sdk-image.ts
43
45
  import { execFile } from "node:child_process";
@@ -217,7 +219,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
217
219
  const existing = cached(directory, key);
218
220
  if (existing) return existing;
219
221
  if (!options?.producer && !swiftDistributionAt(moduleRoot) && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
220
- const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-A4Y2EYPV.mjs");
222
+ const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-OJWD6ZOH.mjs");
221
223
  await produceSwiftSdkImage({
222
224
  moduleRoot,
223
225
  key,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2609 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var AGENT_IDENTITY_MAX_CHARS = 200;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2609 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swiftContract.ts
4
4
  function isSwiftSourceLinkGraph(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2609 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __typeError = (msg) => {
4
4
  throw TypeError(msg);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2609 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/sleep.ts
4
4
  function sleep(ms) {
@@ -1,29 +1,28 @@
1
- /*! peach v0.1.2609 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  LAUNCH_METADATA_KEYS,
4
4
  LAUNCH_METADATA_KEYS_PATH
5
- } from "./chunk-DN4RY4ZO.mjs";
5
+ } from "./chunk-42NDD4R7.mjs";
6
6
  import {
7
+ cacheDir,
7
8
  parseSwiftDistributionLock,
8
9
  readActiveRuntime,
9
- runtimeDir,
10
- swiftDistributionAt,
11
- swiftModuleSdk
12
- } from "./chunk-MF7HNQ5K.mjs";
10
+ runtimeDir
11
+ } from "./chunk-W3LNUIUA.mjs";
13
12
  import {
14
13
  SWIFT_WASM_TRIPLE,
15
- registerSwiftHostCompiler,
16
- swiftCompiler,
17
- swiftToolchain
18
- } from "./chunk-CJLXAXGU.mjs";
14
+ registerSwiftHostCompiler
15
+ } from "./chunk-2LJTZ2KG.mjs";
19
16
  import {
20
17
  isRecord
21
- } from "./chunk-ZUBTL7EH.mjs";
18
+ } from "./chunk-XN74REO2.mjs";
22
19
 
23
20
  // src/swift-distribution.ts
24
- import fs2 from "node:fs";
25
- import os from "node:os";
26
- import path3 from "node:path";
21
+ import { execFile as execFile2 } from "node:child_process";
22
+ import fs3 from "node:fs";
23
+ import os2 from "node:os";
24
+ import path4 from "node:path";
25
+ import { promisify as promisify2 } from "node:util";
27
26
 
28
27
  // cli/drivers/linux-browser-libs.ts
29
28
  import { spawnSync } from "node:child_process";
@@ -249,20 +248,27 @@ function swiftNativePin() {
249
248
  return pin;
250
249
  }
251
250
 
252
- // src/swift-distribution.ts
253
- function swiftModuleCompiler(root) {
254
- const pin2 = swiftDistributionAt(root) ?? JSON.parse(fs2.readFileSync(path3.join(root, "toolchain.json"), "utf8"));
255
- return {
256
- release: pin2.release,
257
- toolchainBin: swiftCompiler(pin2.release)
258
- };
259
- }
260
- function swiftModuleToolchain(root) {
261
- const { release } = swiftModuleCompiler(root);
262
- return { release, toolchainBin: swiftToolchain(release, swiftModuleSdk(root)) };
263
- }
251
+ // src/swift-package-manifest.ts
252
+ import {
253
+ execFile,
254
+ execFileSync
255
+ } from "node:child_process";
256
+ import { createHash as createHash2 } from "node:crypto";
257
+ import fs2 from "node:fs";
258
+ import os from "node:os";
259
+ import path3 from "node:path";
260
+ import { promisify } from "node:util";
261
+
262
+ // src/git-repo-env.ts
263
+ var UNATTENDED_GIT_ENV = {
264
+ GIT_TERMINAL_PROMPT: "0",
265
+ GIT_SSH_COMMAND: process.env.GIT_SSH_COMMAND ?? "ssh -o BatchMode=yes"
266
+ };
267
+
268
+ // src/swift-package-manifest.ts
269
+ var cacheDir2 = path3.join(cacheDir(), "swift-manifests");
270
+ var execFileAsync = promisify(execFile);
264
271
 
265
272
  export {
266
- swiftNativePin,
267
- swiftModuleToolchain
273
+ swiftNativePin
268
274
  };
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2609 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2610 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [