peachsim 0.1.2207 → 0.1.2209

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/bridge-diagnostics.ts +4 -4
  2. package/cli/bridge-flow-runner.ts +33 -33
  3. package/cli/browser-evals.ts +2 -2
  4. package/cli/commands/control.ts +1 -1
  5. package/cli/commands/cpu-profile.ts +5 -4
  6. package/cli/commands/debug.ts +3 -3
  7. package/cli/commands/diagnose.ts +2 -2
  8. package/cli/commands/flow.ts +7 -7
  9. package/cli/commands/inspect/core.ts +22 -22
  10. package/cli/commands/inspect/get-node.ts +2 -2
  11. package/cli/commands/inspect/shared.ts +2 -2
  12. package/cli/commands/inspect/wait-event.ts +1 -1
  13. package/cli/commands/inspect.ts +33 -33
  14. package/cli/commands/record-three.ts +17 -17
  15. package/cli/commands/record.ts +44 -40
  16. package/cli/commands/shell-boolean-mode.ts +1 -1
  17. package/cli/commands/slides.ts +5 -3
  18. package/cli/commands/three-mode.ts +3 -3
  19. package/cli/commands/upload.ts +8 -8
  20. package/cli/drivers/types.ts +1 -1
  21. package/cli/runtime-diagnostics.ts +2 -2
  22. package/cli/scene-video.ts +5 -3
  23. package/cli/send-to-box.ts +1 -1
  24. package/cli/ws-bridge.ts +3 -3
  25. package/dist-lib/agent-daemon-client.cjs +1 -1
  26. package/dist-lib/agent-events.cjs +1 -1
  27. package/dist-lib/attached-projects.cjs +1 -1
  28. package/dist-lib/auth/shared-session.cjs +1 -1
  29. package/dist-lib/backend-origin.cjs +1 -1
  30. package/dist-lib/beta.cjs +1 -1
  31. package/dist-lib/beta.mjs +1 -1
  32. package/dist-lib/bridge-constants.cjs +1 -1
  33. package/dist-lib/bridge-contract-input.cjs +1 -1
  34. package/dist-lib/bridge-contract-input.mjs +1 -1
  35. package/dist-lib/bridge-contract.cjs +1 -1
  36. package/dist-lib/bridge-contract.mjs +1 -1
  37. package/dist-lib/bundle-channel.cjs +448 -22
  38. package/dist-lib/capture-contract.cjs +1 -1
  39. package/dist-lib/capture-contract.mjs +1 -1
  40. package/dist-lib/cloud-contract.cjs +1 -1
  41. package/dist-lib/cloud-contract.mjs +1 -1
  42. package/dist-lib/cloud-test-args.cjs +1 -1
  43. package/dist-lib/cloud-test-args.mjs +1 -1
  44. package/dist-lib/cloud.cjs +1 -1
  45. package/dist-lib/cloud.mjs +1 -1
  46. package/dist-lib/config.cjs +1 -1
  47. package/dist-lib/config.mjs +1 -1
  48. package/dist-lib/detox/index.cjs +4 -4
  49. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  50. package/dist-lib/expo-swift-bundle.cjs +436 -16
  51. package/dist-lib/expo-swift-metadata.cjs +1 -1
  52. package/dist-lib/expo-swift-metadata.mjs +1 -1
  53. package/dist-lib/home-paths.cjs +1 -1
  54. package/dist-lib/host/bridge-host.cjs +449 -23
  55. package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
  56. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  57. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  58. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  59. package/dist-lib/host/websocket-proxy.cjs +1 -1
  60. package/dist-lib/index.cjs +10 -10
  61. package/dist-lib/jump-to-source-babel.cjs +1 -1
  62. package/dist-lib/jump-to-source-native.cjs +1 -1
  63. package/dist-lib/kotlin-host.cjs +7 -1
  64. package/dist-lib/menu.cjs +1 -1
  65. package/dist-lib/menu.mjs +1 -1
  66. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  67. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  68. package/dist-lib/metro-production-bundle.cjs +1 -1
  69. package/dist-lib/metro-production-bundle.mjs +1 -1
  70. package/dist-lib/metro.cjs +4 -4
  71. package/dist-lib/native-app-identity-project.cjs +2 -2
  72. package/dist-lib/native-app-identity-project.mjs +2 -2
  73. package/dist-lib/native-app-identity.cjs +1 -1
  74. package/dist-lib/native-app-identity.mjs +1 -1
  75. package/dist-lib/native-firebase-metadata.cjs +1 -1
  76. package/dist-lib/native-firebase-metadata.mjs +1 -1
  77. package/dist-lib/pdfium-raster.cjs +1 -1
  78. package/dist-lib/pdfium-raster.mjs +1 -1
  79. package/dist-lib/plist.cjs +1 -1
  80. package/dist-lib/plist.mjs +1 -1
  81. package/dist-lib/profiles.cjs +1 -1
  82. package/dist-lib/public-brand.cjs +1 -1
  83. package/dist-lib/public-origins-lib-esm.json +24 -24
  84. package/dist-lib/public-origins-lib.json +59 -53
  85. package/dist-lib/react-native-host-modules.cjs +1 -1
  86. package/dist-lib/react-native-host-modules.mjs +1 -1
  87. package/dist-lib/reap-browser.cjs +1 -1
  88. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  89. package/dist-lib/sdk.cjs +23 -23
  90. package/dist-lib/sdk.mjs +23 -23
  91. package/dist-lib/skills.cjs +5176 -75
  92. package/dist-lib/swift-compile.cjs +98 -6
  93. package/dist-lib/swift-compile.mjs +98 -6
  94. package/dist-lib/swift-package.cjs +1 -1
  95. package/dist-lib/swift-package.mjs +1 -1
  96. package/dist-lib/swift-submit.cjs +1 -1
  97. package/dist-lib/swift-submit.mjs +1 -1
  98. package/dist-lib/swift-toolchain.cjs +1 -1
  99. package/dist-lib/swift.cjs +1 -1
  100. package/dist-lib/vite-swift.cjs +351 -13
  101. package/dist-lib/vite.cjs +4 -4
  102. package/dist-lib/worklet-executable.cjs +1 -1
  103. package/dist-lib/worklet-executable.mjs +1 -1
  104. package/dist-types/packages/peach-engine/src/engine/animated.d.ts +2 -1
  105. package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +1 -0
  106. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -1
  107. package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +6 -0
  108. package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
  109. package/dist-types/packages/peach-engine/src/engine/types.d.ts +1 -0
  110. package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +8 -0
  111. package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +3 -0
  112. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +14 -0
  113. package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/render-tree.d.ts +18 -0
  114. package/dist-types/packages/peach-engine/src/settings/store.d.ts +1 -0
  115. package/kotlin/sdk.tar.gz +0 -0
  116. package/package.json +1 -1
  117. package/runtime-companion.json +1 -1
  118. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCompoundPredicate.h +1 -1
  119. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExpression.h +1 -1
  120. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h +1 -1
  121. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurementFormatter.h +1 -1
  122. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectCollection.h +27 -0
  123. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectSection.h +24 -0
  124. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/Intents.h +9 -0
  125. package/sdk/ios/System/Library/Frameworks/Intents.framework/Modules/module.modulemap +5 -0
  126. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFeedbackGenerator.h +1 -1
  127. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIImpactFeedbackGenerator.h +1 -1
  128. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINibLoading.h +1 -1
  129. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h +1 -1
  130. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISelectionFeedbackGenerator.h +1 -1
  131. package/sdk/ios/usr/include/ObjectiveC.apinotes +7 -0
  132. package/src/android-theme.ts +136 -2
  133. package/src/expo-swift-host.ts +90 -1
  134. package/src/generated/android-framework-text.json +4566 -0
  135. package/src/generated/android-framework-themes.json +11 -0
  136. package/src/kotlin-app.ts +24 -4
  137. package/src/kotlin-host.ts +9 -0
  138. package/src/nitro-adapter.lock.json +246 -246
  139. package/src/nitro-superset.lock.json +4 -4
  140. package/src/swift-compile.ts +120 -2
  141. package/src/swift-distribution.lock.json +8 -8
  142. package/src/swift-objc-standin.ts +9 -2
  143. package/src/swift-shared-sdk.ts +2 -1
  144. package/src/swift-standin-builtin-behavior.ts +248 -0
  145. package/src/swift-standin-emit.ts +2 -0
  146. package/src/swift-standins.ts +17 -5
  147. package/src/turbo-runtime.lock.json +17 -17
@@ -2189,6 +2189,17 @@
2189
2189
  "windowMinWidthMinor": "@null"
2190
2190
  }
2191
2191
  },
2192
+ "Theme.DeviceDefault.AppLockActivity": {
2193
+ "parent": "Theme.DeviceDefault.Resolver",
2194
+ "items": {
2195
+ "android:windowIsFloating": "false",
2196
+ "android:windowBackground": "@android:color/transparent",
2197
+ "android:windowIsTranslucent": "true",
2198
+ "android:windowNoDisplay": "false",
2199
+ "android:windowDisablePreview": "true",
2200
+ "android:windowAnimationStyle": "@android:style/Animation.Activity"
2201
+ }
2202
+ },
2192
2203
  "Theme": {
2193
2204
  "parent": null,
2194
2205
  "items": {
package/src/kotlin-app.ts CHANGED
@@ -10,12 +10,15 @@ import { readAndroidLayoutIds, type AndroidLayoutIds } from './android-layout-id
10
10
  import { readAndroidStrings, type AndroidStringResources } from './android-strings'
11
11
  import {
12
12
  readResourceValues,
13
+ resolveTextAppearance,
13
14
  resolveThemeAttribute,
14
15
  resourceColor,
15
16
  type ResourceValues,
17
+ type TextAppearance,
16
18
  type ThemeSources,
17
19
  } from './android-theme'
18
20
  import { parseXml, type XmlElement } from './android-xml'
21
+ import frameworkText from './generated/android-framework-text.json' with { type: 'json' }
19
22
  import frameworkThemes from './generated/android-framework-themes.json' with { type: 'json' }
20
23
  import { isRecord } from './is-record'
21
24
  import { composeBomVersions } from './kotlin-compose-bom'
@@ -47,6 +50,8 @@ export interface KotlinAppProject {
47
50
  // the launched activity's window as its theme and target SDK configure it
48
51
  // in a day and a night configuration
49
52
  window: { day: KotlinWindowTheme; night: KotlinWindowTheme }
53
+ // a TextView's default color and size under the launched activity's theme
54
+ text: { day: TextAppearance; night: TextAppearance }
50
55
  applicationClass: string | null
51
56
  launcher: { name: string; targetClass: string }
52
57
  // back reaches the activity through its window's back dispatch rather than
@@ -399,21 +404,32 @@ function defaultTheme(targetSdk: number): string {
399
404
  return '@android:style/Theme.DeviceDefault.Light.DarkActionBar'
400
405
  }
401
406
 
402
- // a night configuration takes the styles and colors values-night redefines,
403
- // in the app and the framework, over values.
407
+ // a night configuration takes what values-night and color-night redefine, in
408
+ // the app and the framework, over values.
404
409
  function themeSources(moduleDir: string, night: boolean): ThemeSources {
405
410
  const read = (qualifier: string) =>
406
411
  readResourceValues(valuesFiles(moduleDir, qualifier))
407
412
  const over = (base: ResourceValues, qualified: ResourceValues): ResourceValues => ({
408
413
  styles: { ...base.styles, ...qualified.styles },
409
414
  colors: { ...base.colors, ...qualified.colors },
415
+ dimens: { ...base.dimens, ...qualified.dimens },
416
+ stateColors: { ...base.stateColors, ...qualified.stateColors },
410
417
  })
418
+ const framework = (
419
+ themes: Pick<ResourceValues, 'styles' | 'colors'>,
420
+ text: Omit<ResourceValues, 'colors'>,
421
+ ): ResourceValues => ({
422
+ ...text,
423
+ styles: { ...themes.styles, ...text.styles },
424
+ colors: themes.colors,
425
+ })
426
+ const android = framework(frameworkThemes, frameworkText)
411
427
  return night
412
428
  ? {
413
- android: over(frameworkThemes, frameworkThemes.night),
429
+ android: over(android, framework(frameworkThemes.night, frameworkText.night)),
414
430
  app: over(read('values'), read('values-night')),
415
431
  }
416
- : { android: frameworkThemes, app: read('values') }
432
+ : { android, app: read('values') }
417
433
  }
418
434
 
419
435
  function valuesFiles(moduleDir: string, qualifier: string) {
@@ -774,6 +790,10 @@ export async function readKotlinApp(
774
790
  day: readWindowTheme(theme, targetSdk, resources.day),
775
791
  night: readWindowTheme(theme, targetSdk, resources.night),
776
792
  },
793
+ text: {
794
+ day: resolveTextAppearance(theme ?? defaultTheme(targetSdk), resources.day),
795
+ night: resolveTextAppearance(theme ?? defaultTheme(targetSdk), resources.night),
796
+ },
777
797
  applicationClass: applicationName ? className(applicationName) : null,
778
798
  launcher: { name: launcherName, targetClass },
779
799
  predictiveBack,
@@ -40,6 +40,7 @@ import {
40
40
  type ViewModelClass,
41
41
  } from './kotlin-view-models'
42
42
  import type { DayNight, DrawableFile } from './android-drawables'
43
+ import type { TextAppearance } from './android-theme'
43
44
  import type { XmlElement } from './android-xml'
44
45
  import type { ExpoKotlinModules } from './expo-kotlin-host'
45
46
  import type { KotlinAppProject, KotlinWindowTheme } from './kotlin-app'
@@ -848,6 +849,13 @@ function windowTheme(window: KotlinWindowTheme): string[] {
848
849
  ]
849
850
  }
850
851
 
852
+ // a TextView appearance: its ARGB, and its size split into number and unit
853
+ function themeText(text: TextAppearance): string {
854
+ const [, size, unit] = /^([\d.]+)([a-z]+)$/.exec(text.size) ?? []
855
+ if (!size || !unit) throw new Error(`unreadable text size ${text.size}`)
856
+ return ` android.content.res.ThemeText(${argb(text.color)}, ${size}f, ${literal(unit)}),`
857
+ }
858
+
851
859
  // a pure Kotlin app: its module's sources, the Android platform actuals and
852
860
  // the compose host, with an entry that cold-starts the resolved launcher
853
861
 
@@ -873,6 +881,7 @@ export async function kotlinAppArtifact(
873
881
  ` android.content.ComponentName(${literal(app.packageName)}, ${literal(app.launcher.targetClass)}),`,
874
882
  ...windowTheme(app.window.day),
875
883
  ...windowTheme(app.window.night),
884
+ ...[app.text.day, app.text.night].map(themeText),
876
885
  ` { ${app.applicationClass ?? 'android.app.Application'}() },`,
877
886
  ` { ${app.launcher.targetClass}() },`,
878
887
  ` ${app.handlesUiMode},`,