peachsim 0.1.647 → 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 (67) 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 +1 -1
  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 +1 -1
  33. package/dist-lib/host/websocket-proxy.cjs +1 -1
  34. package/dist-lib/index.cjs +1 -1
  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 +1 -1
  45. package/dist-lib/native-app-identity.cjs +1 -1
  46. package/dist-lib/native-app-identity.mjs +1 -1
  47. package/dist-lib/profiles.cjs +1 -1
  48. package/dist-lib/public-brand.cjs +1 -1
  49. package/dist-lib/react-native-host-modules.cjs +1 -1
  50. package/dist-lib/react-native-host-modules.mjs +1 -1
  51. package/dist-lib/render-mode.cjs +1 -1
  52. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  53. package/dist-lib/sdk.cjs +1 -1
  54. package/dist-lib/sdk.mjs +1 -1
  55. package/dist-lib/skills.cjs +1 -1
  56. package/dist-lib/swift-compile.cjs +1 -1
  57. package/dist-lib/swift-compile.mjs +1 -1
  58. package/dist-lib/swift-package.cjs +1 -1
  59. package/dist-lib/swift-package.mjs +1 -1
  60. package/dist-lib/swift-submit.cjs +2 -2
  61. package/dist-lib/swift-submit.mjs +2 -2
  62. package/dist-lib/swift.cjs +1 -1
  63. package/dist-lib/vite-swift.cjs +1067 -1064
  64. package/dist-lib/vite.cjs +1 -1
  65. package/package.json +1 -1
  66. package/src/swift-submit.ts +3 -1
  67. package/src/vite-plugin-swift.ts +10 -6
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.647 | (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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.647",
3
+ "version": "0.1.648",
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",
@@ -44,8 +44,10 @@ export const MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024
44
44
  * `peach.icu_data_v1` (`packages/sootsim-swift/src/icuData.ts`). a request
45
45
  * without one comes from before this field, a host that is 0.
46
46
  * 2: scroll anchors carry numeric unit coordinates to the kit.
47
+ * 3: the host provides `rnx.measure_text`, UIKitCore's synchronous text
48
+ * measure (`packages/sootsim-swift/src/mount.tsx`).
47
49
  */
48
- export const SWIFT_HOST_ABI = 2
50
+ export const SWIFT_HOST_ABI = 3
49
51
 
50
52
  export interface SwiftImageUpload {
51
53
  /** the raster file picked for the asset (has the extension). */
@@ -2,6 +2,7 @@
2
2
  import fs from 'node:fs'
3
3
  import path from 'node:path'
4
4
  import { swiftEntryModuleEsm } from '../../sootsim-swift/src/entryModule'
5
+ import { swiftModuleInputFiles } from './swift-compile'
5
6
  import {
6
7
  artifactFor,
7
8
  entryRootId,
@@ -133,12 +134,15 @@ export function swiftPlugin(options: SwiftPluginOptions = {}): Plugin {
133
134
  this.addWatchFile(source)
134
135
  this.addWatchFile(path.join(packagePath, 'Package.swift'))
135
136
  // an edit to the linked SwiftUI module rebuilds the artifact without
136
- // touching the project's own sources, so those files gate the reload
137
- // too: the new hash in the emitted module is what tells the mount it
138
- // is looking at a different app.
139
- for (const root of linkedModuleRoots(packagePath)) {
140
- for (const source of sourceFiles(root)) this.addWatchFile(source)
141
- }
137
+ // touching the project's own sources, so the module inputs the source
138
+ // stamp hashes gate the reload too. the module is never uploaded, so
139
+ // the compile service's source caps do not apply to it.
140
+ const moduleRoot = linkedModuleRoots(packagePath).find((root) =>
141
+ fs.existsSync(path.join(root, 'toolchain.json')),
142
+ )
143
+ if (moduleRoot)
144
+ for (const relative of swiftModuleInputFiles(moduleRoot))
145
+ this.addWatchFile(path.join(moduleRoot, relative))
142
146
  let artifact: SwiftArtifact
143
147
  try {
144
148
  artifact = await artifactFor(project, entry)