peachsim 0.1.1659 → 0.1.1660

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 (85) hide show
  1. package/detox/index.ts +0 -1
  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 +1 -1
  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 +1 -1
  12. package/dist-lib/bridge-contract.cjs +1 -1
  13. package/dist-lib/bridge-contract.mjs +1 -1
  14. package/dist-lib/bundle-channel.cjs +1546 -34
  15. package/dist-lib/capture-contract.cjs +1 -1
  16. package/dist-lib/capture-contract.mjs +1 -1
  17. package/dist-lib/cloud-contract.cjs +1 -1
  18. package/dist-lib/cloud-contract.mjs +1 -1
  19. package/dist-lib/cloud-test-args.cjs +1 -1
  20. package/dist-lib/cloud-test-args.mjs +1 -1
  21. package/dist-lib/cloud.cjs +1 -1
  22. package/dist-lib/cloud.mjs +1 -1
  23. package/dist-lib/config.cjs +1 -1
  24. package/dist-lib/config.mjs +1 -1
  25. package/dist-lib/detox/index.cjs +2 -3
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/expo-swift-bundle.cjs +1545 -33
  28. package/dist-lib/expo-swift-metadata.cjs +1 -1
  29. package/dist-lib/expo-swift-metadata.mjs +1 -1
  30. package/dist-lib/home-paths.cjs +1 -1
  31. package/dist-lib/host/bridge-host.cjs +1546 -34
  32. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  33. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  34. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  35. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  36. package/dist-lib/host/websocket-proxy.cjs +1 -1
  37. package/dist-lib/index.cjs +2 -2
  38. package/dist-lib/jump-to-source-babel.cjs +1 -1
  39. package/dist-lib/jump-to-source-native.cjs +1 -1
  40. package/dist-lib/kotlin-host.cjs +1 -1
  41. package/dist-lib/menu.cjs +1 -1
  42. package/dist-lib/menu.mjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  45. package/dist-lib/metro-production-bundle.cjs +1 -1
  46. package/dist-lib/metro-production-bundle.mjs +1 -1
  47. package/dist-lib/metro.cjs +1 -1
  48. package/dist-lib/native-app-identity-project.cjs +1 -1
  49. package/dist-lib/native-app-identity-project.mjs +1 -1
  50. package/dist-lib/native-app-identity.cjs +1 -1
  51. package/dist-lib/native-app-identity.mjs +1 -1
  52. package/dist-lib/native-firebase-metadata.cjs +1 -1
  53. package/dist-lib/native-firebase-metadata.mjs +1 -1
  54. package/dist-lib/plist.cjs +1 -1
  55. package/dist-lib/plist.mjs +1 -1
  56. package/dist-lib/profiles.cjs +1 -1
  57. package/dist-lib/public-brand.cjs +1 -1
  58. package/dist-lib/public-origins-lib-esm.json +23 -23
  59. package/dist-lib/public-origins-lib.json +51 -51
  60. package/dist-lib/react-native-host-modules.cjs +1 -1
  61. package/dist-lib/react-native-host-modules.mjs +1 -1
  62. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  63. package/dist-lib/sdk.cjs +1 -1
  64. package/dist-lib/sdk.mjs +1 -1
  65. package/dist-lib/skills.cjs +1569 -57
  66. package/dist-lib/swift-compile.cjs +1545 -33
  67. package/dist-lib/swift-compile.mjs +1545 -33
  68. package/dist-lib/swift-package.cjs +1 -1
  69. package/dist-lib/swift-package.mjs +1 -1
  70. package/dist-lib/swift-submit.cjs +1 -1
  71. package/dist-lib/swift-submit.mjs +1 -1
  72. package/dist-lib/swift-toolchain.cjs +1 -1
  73. package/dist-lib/swift.cjs +1 -1
  74. package/dist-lib/vite-swift.cjs +1545 -33
  75. package/dist-lib/vite.cjs +2 -2
  76. package/dist-lib/worklet-executable.cjs +1 -1
  77. package/dist-lib/worklet-executable.mjs +1 -1
  78. package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +1 -0
  79. package/dist-types/packages/peach-globals/src/index.d.ts +9 -0
  80. package/package.json +1 -1
  81. package/runtime-companion.json +1 -1
  82. package/src/stub-pattern-matcher.ts +4 -0
  83. package/src/swift-compile.ts +32 -11
  84. package/src/swift-objc-sdk.ts +1518 -19
  85. package/src/swift-objc-standin.ts +4 -2
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1659 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1660 | (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;
@@ -36,7 +36,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
36
36
  var runtime_companion_default;
37
37
  var init_runtime_companion = __esm({
38
38
  "runtime-companion.json"() {
39
- runtime_companion_default = { abi: 1, sha256: "59277122bc52023de2774e83d48eb795f32324c06d15d9780c8d827791bea7c6", file: "node/cli-59277122bc52023de2774e83d48eb795f32324c06d15d9780c8d827791bea7c6.cjs" };
39
+ runtime_companion_default = { abi: 1, sha256: "a0c90fd4b5bf7e03f5705f9f4eba0fa945d8fc7834bfc5505f6e1cf6244d0931", file: "node/cli-a0c90fd4b5bf7e03f5705f9f4eba0fa945d8fc7834bfc5505f6e1cf6244d0931.cjs" };
40
40
  }
41
41
  });
42
42
 
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1659 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1660 | (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
- /*! peach v0.1.1659 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1660 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -134,6 +134,7 @@ declare const RNGestureHandlerModule: {
134
134
  hasYieldedToDescendantScroll: (handlerTag: number) => boolean;
135
135
  handlerNeedsPointerData: (handlerTag: number) => boolean;
136
136
  setGestureState: (handlerTag: number, newState: number) => void;
137
+ setManualGestureState: (handlerTag: number, newState: number, numberOfPointers: number) => void;
137
138
  cancelGestureHandler: (handlerTag: number) => void;
138
139
  install: () => boolean;
139
140
  flushOperations: () => void;
@@ -2116,6 +2116,15 @@ export interface SootSimElectronBridge {
2116
2116
  }>;
2117
2117
  onCliInstallOffer?(callback: () => void): () => void;
2118
2118
  openExternal?(url: string): MaybeAsync<void>;
2119
+ nativeWebView?: true;
2120
+ openBrowserWindow?(request: {
2121
+ id: string;
2122
+ url: string;
2123
+ width?: number;
2124
+ height?: number;
2125
+ }): Promise<void>;
2126
+ closeBrowserWindow?(id: string): Promise<void>;
2127
+ onBrowserWindowClosed?(callback: (id: string) => void): () => void;
2119
2128
  setDevice?(model: string): void;
2120
2129
  setDevicePosture?(posture: string, foldActive: boolean): void;
2121
2130
  setDeviceOrientation?(orientation: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.1659",
3
+ "version": "0.1.1660",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -1 +1 @@
1
- {"abi":1,"sha256":"59277122bc52023de2774e83d48eb795f32324c06d15d9780c8d827791bea7c6","file":"node/cli-59277122bc52023de2774e83d48eb795f32324c06d15d9780c8d827791bea7c6.cjs"}
1
+ {"abi":1,"sha256":"a0c90fd4b5bf7e03f5705f9f4eba0fa945d8fc7834bfc5505f6e1cf6244d0931","file":"node/cli-a0c90fd4b5bf7e03f5705f9f4eba0fa945d8fc7834bfc5505f6e1cf6244d0931.cjs"}
@@ -489,6 +489,10 @@ function canonicalSourceModulePath(
489
489
  if (normalized.startsWith('node_modules/') || normalized.includes('/node_modules/')) {
490
490
  return null
491
491
  }
492
+ // a workspace package sits outside the app's project root. a folder inside
493
+ // it is the app's own source, even when it is named after a package, such as
494
+ // a vendored copy of that package's JS the app never installed
495
+ if (!normalized.startsWith('../') && !normalized.startsWith('/')) return null
492
496
  const searchable = normalized.startsWith('/') ? normalized : `/${normalized}`
493
497
  sourceDirectoryPattern.lastIndex = 0
494
498
  let match: RegExpExecArray | null
@@ -34,7 +34,11 @@ import {
34
34
  } from './swift-distribution-contract'
35
35
  import { swiftIcuAsset, type SwiftIcuAsset } from './swift-icu'
36
36
  import { swiftObjCExports } from './swift-objc-export'
37
- import { swiftObjCImports, swiftObjCPrivateImports } from './swift-objc-import'
37
+ import {
38
+ SwiftObjCImportError,
39
+ swiftObjCImports,
40
+ swiftObjCPrivateImports,
41
+ } from './swift-objc-import'
38
42
  import { validateObjcPeerStartupLibraries } from './swift-objc-metadata'
39
43
  import { materializeObjcSdk, objcView } from './swift-objc-standin'
40
44
  import {
@@ -178,9 +182,15 @@ const SWIFTPM_PROGRESS = /^\[\d+\/\d+\] /
178
182
  const SWIFTPM_NOISE =
179
183
  /^(?:\[\d+\/\d+\] |Building for production\.\.\.$|warning: '--build-system native' has been deprecated)/
180
184
 
181
- // compiler jobs match the fixture builder's cap to fit a 16GiB Linux slot.
185
+ // compiler jobs match the fixture builder's cap to fit a 16GiB Linux slot, and
186
+ // never exceed the cores an admitted build scope granted (TM_EXEC_CPU_CORES).
187
+ const admittedCores = Number(process.env.TM_EXEC_CPU_CORES)
182
188
  const BUILD_JOBS = String(
183
- Math.min(4, Math.max(1, Math.floor(os.availableParallelism() / 2))),
189
+ Math.min(
190
+ 4,
191
+ Math.max(1, Math.floor(os.availableParallelism() / 2)),
192
+ Number.isInteger(admittedCores) && admittedCores > 0 ? admittedCores : 4,
193
+ ),
184
194
  )
185
195
 
186
196
  export interface SwiftCompileInput {
@@ -6525,6 +6535,24 @@ export function writeSwiftProject(
6525
6535
  }
6526
6536
  const original = imports.get(name)
6527
6537
  if (!exported && !original) continue
6538
+ let generated: ReturnType<typeof swiftObjCImports> | undefined
6539
+ try {
6540
+ generated =
6541
+ original &&
6542
+ swiftObjCImports(original.view.graphs, {
6543
+ module: swiftTargetModuleName(name),
6544
+ headers: original.headers,
6545
+ classes: original.classes,
6546
+ clangAST: original.view.clangAST,
6547
+ peerTypes: exported?.types,
6548
+ })
6549
+ } catch (error) {
6550
+ // a refused import registers nothing, and the target's swift then fails
6551
+ // on the missing declarations in the same build.
6552
+ if (!(error instanceof SwiftObjCImportError)) throw error
6553
+ targetFailures.push(`${name}: ${error.message}`)
6554
+ continue
6555
+ }
6528
6556
  objcModules.add(name)
6529
6557
  rootOwner ??= exported
6530
6558
  ? [...exported.swift.keys()][0]
@@ -6557,14 +6585,7 @@ export function writeSwiftProject(
6557
6585
  for (const type of original?.classes ?? []) registeredClasses.add(type)
6558
6586
  for (const [file, text] of exported?.swift ?? [])
6559
6587
  compiled.set(file, compiled.get(file)! + text)
6560
- if (original) {
6561
- const generated = swiftObjCImports(original.view.graphs, {
6562
- module: swiftTargetModuleName(name),
6563
- headers: original.headers,
6564
- classes: original.classes,
6565
- clangAST: original.view.clangAST,
6566
- peerTypes: exported?.types,
6567
- })
6588
+ if (generated) {
6568
6589
  const register = `_peach_objc_imports_${swiftTargetModuleName(name)}`
6569
6590
  files.set(
6570
6591
  path.join(layout.root, target.path, 'PeachObjCImports.generated.swift'),