bleam 0.0.10 → 0.0.12

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 (90) hide show
  1. package/dist/ai.cjs +1872 -1182
  2. package/dist/ai.d.cts +267 -234
  3. package/dist/ai.d.ts +267 -234
  4. package/dist/ai.js +1859 -1167
  5. package/dist/cli.cjs +3 -183
  6. package/dist/cli.d.cts +3 -47
  7. package/dist/cli.d.ts +3 -47
  8. package/dist/cli.js +3 -183
  9. package/dist/config.d.cts +1 -1
  10. package/dist/config.d.ts +1 -1
  11. package/dist/{files-Ds1wT8C2.js → files-BXVkPrPN.js} +6 -1
  12. package/dist/{files-Bo7h9fik.cjs → files-DxaQ-Nv0.cjs} +11 -0
  13. package/dist/files.cjs +1 -1
  14. package/dist/files.js +1 -1
  15. package/dist/index.d.cts +1 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/platform.cjs +1 -13
  18. package/dist/platform.d.cts +1 -28
  19. package/dist/platform.d.ts +1 -28
  20. package/dist/platform.js +1 -10
  21. package/dist/schema-B5BfdswF.js +226 -0
  22. package/dist/schema-BnVZOXfu.cjs +286 -0
  23. package/dist/schema-D5eImHxu.d.cts +125 -0
  24. package/dist/schema-SSjokbtw.d.ts +125 -0
  25. package/dist/schema.cjs +10 -2
  26. package/dist/schema.d.cts +2 -2
  27. package/dist/schema.d.ts +2 -2
  28. package/dist/schema.js +2 -2
  29. package/dist/state-Dh3HLixb.js +874 -0
  30. package/dist/state-LssDgpff.cjs +973 -0
  31. package/dist/state.cjs +16 -12
  32. package/dist/state.d.cts +144 -140
  33. package/dist/state.d.ts +145 -140
  34. package/dist/state.js +3 -3
  35. package/dist/{ui-Bg11tvlc.d.ts → ui-1WepaMS4.d.cts} +1 -1
  36. package/dist/{ui-Dd7SXdbg.d.cts → ui-D7bRLYee.d.ts} +7 -7
  37. package/dist/ui.d.cts +1 -1
  38. package/dist/ui.d.ts +1 -1
  39. package/dist/window.d.cts +1 -1
  40. package/dist/window.d.ts +1 -1
  41. package/package.json +3 -1
  42. package/templates/foundation-models/app/index.tsx +77 -15
  43. package/templates/image-generation/app/index.tsx +4 -2
  44. package/templates/native/ios/Bleam/AI/Flux2/Configuration/ModelRegistry.swift +1 -1
  45. package/templates/native/ios/Bleam/AI/Flux2/Pipeline/FluxImageRunner.swift +7 -2
  46. package/templates/native/ios/Bleam/AI/TextGeneration/Bonsai/BonsaiTextGenerator.swift +46 -0
  47. package/templates/native/ios/Bleam/AI/TextGeneration/Bonsai/BonsaiTextModel.swift +107 -0
  48. package/templates/native/ios/Bleam/AI/TextGeneration/Bonsai/BonsaiTextSnapshotValidator.swift +201 -0
  49. package/templates/native/ios/Bleam/AI/TextGeneration/Core/GenerationTypes.swift +85 -0
  50. package/templates/native/ios/Bleam/AI/TextGeneration/Core/ModelCapabilities.swift +21 -0
  51. package/templates/native/ios/Bleam/AI/TextGeneration/Core/TextKVCache.swift +23 -0
  52. package/templates/native/ios/Bleam/AI/TextGeneration/Core/TokenSampler.swift +79 -0
  53. package/templates/native/ios/Bleam/AI/TextGeneration/Qwen3/Qwen3CheckpointLoader.swift +161 -0
  54. package/templates/native/ios/Bleam/AI/TextGeneration/Qwen3/Qwen3Configuration.swift +119 -0
  55. package/templates/native/ios/Bleam/AI/TextGeneration/Qwen3/Qwen3InferenceSession.swift +84 -0
  56. package/templates/native/ios/Bleam/AI/TextGeneration/Qwen3/Qwen3Layers.swift +197 -0
  57. package/templates/native/ios/Bleam/AI/TextGeneration/Qwen3/Qwen3Model.swift +130 -0
  58. package/templates/native/ios/Bleam/AI/TextGeneration/Qwen35/Qwen35Checkpoint.swift +102 -0
  59. package/templates/native/ios/Bleam/AI/TextGeneration/Qwen35/Qwen35Configuration.swift +140 -0
  60. package/templates/native/ios/Bleam/AI/TextGeneration/Qwen35/Qwen35Model.swift +112 -0
  61. package/templates/native/ios/Bleam/AI/TextGeneration/Qwen35/Qwen35Session.swift +121 -0
  62. package/templates/native/ios/Bleam/AI/TextGeneration/QwenHybrid/QwenHybridCache.swift +42 -0
  63. package/templates/native/ios/Bleam/AI/TextGeneration/QwenHybrid/QwenHybridFullAttention.swift +57 -0
  64. package/templates/native/ios/Bleam/AI/TextGeneration/QwenHybrid/QwenHybridLayers.swift +58 -0
  65. package/templates/native/ios/Bleam/AI/TextGeneration/QwenHybrid/QwenHybridLinearAttention.swift +111 -0
  66. package/templates/native/ios/Bleam/AppDelegate.swift +0 -206
  67. package/templates/native/ios/Bleam.xcodeproj/project.pbxproj +135 -129
  68. package/templates/native/ios/GenerationService/BonsaiTextGenerationRunner.swift +103 -0
  69. package/templates/native/ios/GenerationService/ImageGenerationRunner.swift +19 -7
  70. package/templates/native/ios/GenerationService/main.swift +174 -48
  71. package/templates/native/ios/Podfile.lock +173 -173
  72. package/templates/native/ios/Shared/Generation/GenerationServiceProtocol.swift +3 -0
  73. package/templates/native/ios/Shared/Generation/GenerationWorkerProtocol.swift +44 -0
  74. package/templates/native/modules/bleam-runtime/ios/AIModule.swift +239 -341
  75. package/templates/native/modules/bleam-runtime/ios/GenerationContracts.swift +47 -0
  76. package/templates/native/modules/bleam-runtime/ios/PlatformModule.swift +0 -191
  77. package/templates/text-generation/app/index.tsx +124 -0
  78. package/templates/text-generation/app.config.ts +5 -0
  79. package/templates/updates/README.md +43 -199
  80. package/templates/updates/src/index.ts +5 -98
  81. package/templates/updates/src/schema.ts +18 -173
  82. package/dist/schema-Bo5Jvqus.js +0 -90
  83. package/dist/schema-DOOjfXvs.d.ts +0 -58
  84. package/dist/schema-ENSMX_1t.d.cts +0 -58
  85. package/dist/schema-rQ13mrpD.cjs +0 -102
  86. package/dist/state-Bx0VlTlO.cjs +0 -852
  87. package/dist/state-CAwe-Vw1.js +0 -767
  88. package/templates/native/ios/PlatformHelper/main.swift +0 -726
  89. /package/dist/{config-Cms0rvqg.d.ts → config-COcRnn5a.d.cts} +0 -0
  90. /package/dist/{config-CufOVJV3.d.cts → config-Chi-flpJ.d.ts} +0 -0
@@ -1921,273 +1921,273 @@ PODS:
1921
1921
 
1922
1922
  DEPENDENCIES:
1923
1923
  - BleamRuntime (from `../modules/bleam-runtime`)
1924
- - EXConstants (from `../../../node_modules/expo-constants/ios`)
1925
- - Expo (from `../../../node_modules/expo`)
1926
- - ExpoAsset (from `../../../node_modules/expo-asset/ios`)
1927
- - "ExpoDomWebView (from `../../../node_modules/@expo/dom-webview/ios`)"
1928
- - ExpoFileSystem (from `../../../node_modules/expo-file-system/ios`)
1929
- - ExpoFont (from `../../../node_modules/expo-font/ios`)
1930
- - ExpoKeepAwake (from `../../../node_modules/expo-keep-awake/ios`)
1931
- - "ExpoLogBox (from `../../../node_modules/@expo/log-box`)"
1932
- - ExpoModulesCore (from `../../../node_modules/expo-modules-core`)
1933
- - ExpoModulesJSI (from `../../../node_modules/expo-modules-jsi/apple`)
1934
- - ExpoModulesWorklets (from `../../../node_modules/expo-modules-core`)
1935
- - FBLazyVector (from `../../../node_modules/react-native/Libraries/FBLazyVector`)
1936
- - hermes-engine (from `../../../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`)
1937
- - "NativeScriptNativeApi (from `../../../node_modules/@nativescript/react-native`)"
1938
- - RCTDeprecation (from `../../../node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation`)
1939
- - RCTRequired (from `../../../node_modules/react-native/Libraries/Required`)
1940
- - RCTSwiftUI (from `../../../node_modules/react-native/ReactApple/RCTSwiftUI`)
1941
- - RCTSwiftUIWrapper (from `../../../node_modules/react-native/ReactApple/RCTSwiftUIWrapper`)
1942
- - RCTTypeSafety (from `../../../node_modules/react-native/Libraries/TypeSafety`)
1943
- - React (from `../../../node_modules/react-native/`)
1944
- - React-callinvoker (from `../../../node_modules/react-native/ReactCommon/callinvoker`)
1945
- - React-Core (from `../../../node_modules/react-native/`)
1946
- - React-Core-prebuilt (from `../../../node_modules/react-native/React-Core-prebuilt.podspec`)
1947
- - React-Core/RCTWebSocket (from `../../../node_modules/react-native/`)
1948
- - React-CoreModules (from `../../../node_modules/react-native/React/CoreModules`)
1949
- - React-cxxreact (from `../../../node_modules/react-native/ReactCommon/cxxreact`)
1950
- - React-debug (from `../../../node_modules/react-native/ReactCommon/react/debug`)
1951
- - React-defaultsnativemodule (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/defaults`)
1952
- - React-domnativemodule (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/dom`)
1953
- - React-Fabric (from `../../../node_modules/react-native/ReactCommon`)
1954
- - React-FabricComponents (from `../../../node_modules/react-native/ReactCommon`)
1955
- - React-FabricImage (from `../../../node_modules/react-native/ReactCommon`)
1956
- - React-featureflags (from `../../../node_modules/react-native/ReactCommon/react/featureflags`)
1957
- - React-featureflagsnativemodule (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/featureflags`)
1958
- - React-graphics (from `../../../node_modules/react-native/ReactCommon/react/renderer/graphics`)
1959
- - React-hermes (from `../../../node_modules/react-native/ReactCommon/hermes`)
1960
- - React-idlecallbacksnativemodule (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/idlecallbacks`)
1961
- - React-ImageManager (from `../../../node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios`)
1962
- - React-intersectionobservernativemodule (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/intersectionobserver`)
1963
- - React-jserrorhandler (from `../../../node_modules/react-native/ReactCommon/jserrorhandler`)
1964
- - React-jsi (from `../../../node_modules/react-native/ReactCommon/jsi`)
1965
- - React-jsiexecutor (from `../../../node_modules/react-native/ReactCommon/jsiexecutor`)
1966
- - React-jsinspector (from `../../../node_modules/react-native/ReactCommon/jsinspector-modern`)
1967
- - React-jsinspectorcdp (from `../../../node_modules/react-native/ReactCommon/jsinspector-modern/cdp`)
1968
- - React-jsinspectornetwork (from `../../../node_modules/react-native/ReactCommon/jsinspector-modern/network`)
1969
- - React-jsinspectortracing (from `../../../node_modules/react-native/ReactCommon/jsinspector-modern/tracing`)
1970
- - React-jsitooling (from `../../../node_modules/react-native/ReactCommon/jsitooling`)
1971
- - React-jsitracing (from `../../../node_modules/react-native/ReactCommon/hermes/executor/`)
1972
- - React-logger (from `../../../node_modules/react-native/ReactCommon/logger`)
1973
- - React-Mapbuffer (from `../../../node_modules/react-native/ReactCommon`)
1974
- - React-microtasksnativemodule (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/microtasks`)
1975
- - React-mutationobservernativemodule (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/mutationobserver`)
1976
- - React-NativeModulesApple (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
1977
- - React-networking (from `../../../node_modules/react-native/ReactCommon/react/networking`)
1978
- - React-oscompat (from `../../../node_modules/react-native/ReactCommon/oscompat`)
1979
- - React-perflogger (from `../../../node_modules/react-native/ReactCommon/reactperflogger`)
1980
- - React-performancecdpmetrics (from `../../../node_modules/react-native/ReactCommon/react/performance/cdpmetrics`)
1981
- - React-performancetimeline (from `../../../node_modules/react-native/ReactCommon/react/performance/timeline`)
1982
- - React-RCTActionSheet (from `../../../node_modules/react-native/Libraries/ActionSheetIOS`)
1983
- - React-RCTAnimation (from `../../../node_modules/react-native/Libraries/NativeAnimation`)
1984
- - React-RCTAppDelegate (from `../../../node_modules/react-native/Libraries/AppDelegate`)
1985
- - React-RCTBlob (from `../../../node_modules/react-native/Libraries/Blob`)
1986
- - React-RCTFabric (from `../../../node_modules/react-native/React`)
1987
- - React-RCTFBReactNativeSpec (from `../../../node_modules/react-native/React`)
1988
- - React-RCTImage (from `../../../node_modules/react-native/Libraries/Image`)
1989
- - React-RCTLinking (from `../../../node_modules/react-native/Libraries/LinkingIOS`)
1990
- - React-RCTNetwork (from `../../../node_modules/react-native/Libraries/Network`)
1991
- - React-RCTRuntime (from `../../../node_modules/react-native/React/Runtime`)
1992
- - React-RCTSettings (from `../../../node_modules/react-native/Libraries/Settings`)
1993
- - React-RCTText (from `../../../node_modules/react-native/Libraries/Text`)
1994
- - React-RCTVibration (from `../../../node_modules/react-native/Libraries/Vibration`)
1995
- - React-rendererconsistency (from `../../../node_modules/react-native/ReactCommon/react/renderer/consistency`)
1996
- - React-renderercss (from `../../../node_modules/react-native/ReactCommon/react/renderer/css`)
1997
- - React-rendererdebug (from `../../../node_modules/react-native/ReactCommon/react/renderer/debug`)
1998
- - React-RuntimeApple (from `../../../node_modules/react-native/ReactCommon/react/runtime/platform/ios`)
1999
- - React-RuntimeCore (from `../../../node_modules/react-native/ReactCommon/react/runtime`)
2000
- - React-runtimeexecutor (from `../../../node_modules/react-native/ReactCommon/runtimeexecutor`)
2001
- - React-RuntimeHermes (from `../../../node_modules/react-native/ReactCommon/react/runtime`)
2002
- - React-runtimescheduler (from `../../../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`)
2003
- - React-timing (from `../../../node_modules/react-native/ReactCommon/react/timing`)
2004
- - React-utils (from `../../../node_modules/react-native/ReactCommon/react/utils`)
2005
- - React-viewtransitionnativemodule (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/viewtransition`)
2006
- - React-webperformancenativemodule (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/webperformance`)
1924
+ - EXConstants (from `../node_modules/expo-constants/ios`)
1925
+ - Expo (from `../node_modules/expo`)
1926
+ - ExpoAsset (from `../node_modules/expo-asset/ios`)
1927
+ - "ExpoDomWebView (from `../node_modules/@expo/dom-webview/ios`)"
1928
+ - ExpoFileSystem (from `../node_modules/expo-file-system/ios`)
1929
+ - ExpoFont (from `../node_modules/expo-font/ios`)
1930
+ - ExpoKeepAwake (from `../node_modules/expo-keep-awake/ios`)
1931
+ - "ExpoLogBox (from `../node_modules/@expo/log-box`)"
1932
+ - ExpoModulesCore (from `../node_modules/expo-modules-core`)
1933
+ - ExpoModulesJSI (from `../node_modules/expo-modules-jsi/apple`)
1934
+ - ExpoModulesWorklets (from `../node_modules/expo-modules-core`)
1935
+ - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
1936
+ - hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`)
1937
+ - "NativeScriptNativeApi (from `../node_modules/@nativescript/react-native`)"
1938
+ - RCTDeprecation (from `../node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation`)
1939
+ - RCTRequired (from `../node_modules/react-native/Libraries/Required`)
1940
+ - RCTSwiftUI (from `../node_modules/react-native/ReactApple/RCTSwiftUI`)
1941
+ - RCTSwiftUIWrapper (from `../node_modules/react-native/ReactApple/RCTSwiftUIWrapper`)
1942
+ - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
1943
+ - React (from `../node_modules/react-native/`)
1944
+ - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`)
1945
+ - React-Core (from `../node_modules/react-native/`)
1946
+ - React-Core-prebuilt (from `../node_modules/react-native/React-Core-prebuilt.podspec`)
1947
+ - React-Core/RCTWebSocket (from `../node_modules/react-native/`)
1948
+ - React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
1949
+ - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
1950
+ - React-debug (from `../node_modules/react-native/ReactCommon/react/debug`)
1951
+ - React-defaultsnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/defaults`)
1952
+ - React-domnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/dom`)
1953
+ - React-Fabric (from `../node_modules/react-native/ReactCommon`)
1954
+ - React-FabricComponents (from `../node_modules/react-native/ReactCommon`)
1955
+ - React-FabricImage (from `../node_modules/react-native/ReactCommon`)
1956
+ - React-featureflags (from `../node_modules/react-native/ReactCommon/react/featureflags`)
1957
+ - React-featureflagsnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/featureflags`)
1958
+ - React-graphics (from `../node_modules/react-native/ReactCommon/react/renderer/graphics`)
1959
+ - React-hermes (from `../node_modules/react-native/ReactCommon/hermes`)
1960
+ - React-idlecallbacksnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/idlecallbacks`)
1961
+ - React-ImageManager (from `../node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios`)
1962
+ - React-intersectionobservernativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/intersectionobserver`)
1963
+ - React-jserrorhandler (from `../node_modules/react-native/ReactCommon/jserrorhandler`)
1964
+ - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
1965
+ - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
1966
+ - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector-modern`)
1967
+ - React-jsinspectorcdp (from `../node_modules/react-native/ReactCommon/jsinspector-modern/cdp`)
1968
+ - React-jsinspectornetwork (from `../node_modules/react-native/ReactCommon/jsinspector-modern/network`)
1969
+ - React-jsinspectortracing (from `../node_modules/react-native/ReactCommon/jsinspector-modern/tracing`)
1970
+ - React-jsitooling (from `../node_modules/react-native/ReactCommon/jsitooling`)
1971
+ - React-jsitracing (from `../node_modules/react-native/ReactCommon/hermes/executor/`)
1972
+ - React-logger (from `../node_modules/react-native/ReactCommon/logger`)
1973
+ - React-Mapbuffer (from `../node_modules/react-native/ReactCommon`)
1974
+ - React-microtasksnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/microtasks`)
1975
+ - React-mutationobservernativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/mutationobserver`)
1976
+ - React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
1977
+ - React-networking (from `../node_modules/react-native/ReactCommon/react/networking`)
1978
+ - React-oscompat (from `../node_modules/react-native/ReactCommon/oscompat`)
1979
+ - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
1980
+ - React-performancecdpmetrics (from `../node_modules/react-native/ReactCommon/react/performance/cdpmetrics`)
1981
+ - React-performancetimeline (from `../node_modules/react-native/ReactCommon/react/performance/timeline`)
1982
+ - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
1983
+ - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
1984
+ - React-RCTAppDelegate (from `../node_modules/react-native/Libraries/AppDelegate`)
1985
+ - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
1986
+ - React-RCTFabric (from `../node_modules/react-native/React`)
1987
+ - React-RCTFBReactNativeSpec (from `../node_modules/react-native/React`)
1988
+ - React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
1989
+ - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
1990
+ - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
1991
+ - React-RCTRuntime (from `../node_modules/react-native/React/Runtime`)
1992
+ - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
1993
+ - React-RCTText (from `../node_modules/react-native/Libraries/Text`)
1994
+ - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
1995
+ - React-rendererconsistency (from `../node_modules/react-native/ReactCommon/react/renderer/consistency`)
1996
+ - React-renderercss (from `../node_modules/react-native/ReactCommon/react/renderer/css`)
1997
+ - React-rendererdebug (from `../node_modules/react-native/ReactCommon/react/renderer/debug`)
1998
+ - React-RuntimeApple (from `../node_modules/react-native/ReactCommon/react/runtime/platform/ios`)
1999
+ - React-RuntimeCore (from `../node_modules/react-native/ReactCommon/react/runtime`)
2000
+ - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
2001
+ - React-RuntimeHermes (from `../node_modules/react-native/ReactCommon/react/runtime`)
2002
+ - React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`)
2003
+ - React-timing (from `../node_modules/react-native/ReactCommon/react/timing`)
2004
+ - React-utils (from `../node_modules/react-native/ReactCommon/react/utils`)
2005
+ - React-viewtransitionnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/viewtransition`)
2006
+ - React-webperformancenativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/webperformance`)
2007
2007
  - ReactAppDependencyProvider (from `build/generated/ios/ReactAppDependencyProvider`)
2008
2008
  - ReactCodegen (from `build/generated/ios/ReactCodegen`)
2009
- - ReactCommon/turbomodule/core (from `../../../node_modules/react-native/ReactCommon`)
2010
- - ReactNativeDependencies (from `../../../node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec`)
2011
- - Yoga (from `../../../node_modules/react-native/ReactCommon/yoga`)
2009
+ - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
2010
+ - ReactNativeDependencies (from `../node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec`)
2011
+ - Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
2012
2012
 
2013
2013
  EXTERNAL SOURCES:
2014
2014
  BleamRuntime:
2015
2015
  :path: "../modules/bleam-runtime"
2016
2016
  EXConstants:
2017
- :path: "../../../node_modules/expo-constants/ios"
2017
+ :path: "../node_modules/expo-constants/ios"
2018
2018
  Expo:
2019
- :path: "../../../node_modules/expo"
2019
+ :path: "../node_modules/expo"
2020
2020
  ExpoAsset:
2021
- :path: "../../../node_modules/expo-asset/ios"
2021
+ :path: "../node_modules/expo-asset/ios"
2022
2022
  ExpoDomWebView:
2023
- :path: "../../../node_modules/@expo/dom-webview/ios"
2023
+ :path: "../node_modules/@expo/dom-webview/ios"
2024
2024
  ExpoFileSystem:
2025
- :path: "../../../node_modules/expo-file-system/ios"
2025
+ :path: "../node_modules/expo-file-system/ios"
2026
2026
  ExpoFont:
2027
- :path: "../../../node_modules/expo-font/ios"
2027
+ :path: "../node_modules/expo-font/ios"
2028
2028
  ExpoKeepAwake:
2029
- :path: "../../../node_modules/expo-keep-awake/ios"
2029
+ :path: "../node_modules/expo-keep-awake/ios"
2030
2030
  ExpoLogBox:
2031
- :path: "../../../node_modules/@expo/log-box"
2031
+ :path: "../node_modules/@expo/log-box"
2032
2032
  ExpoModulesCore:
2033
- :path: "../../../node_modules/expo-modules-core"
2033
+ :path: "../node_modules/expo-modules-core"
2034
2034
  ExpoModulesJSI:
2035
- :path: "../../../node_modules/expo-modules-jsi/apple"
2035
+ :path: "../node_modules/expo-modules-jsi/apple"
2036
2036
  ExpoModulesWorklets:
2037
- :path: "../../../node_modules/expo-modules-core"
2037
+ :path: "../node_modules/expo-modules-core"
2038
2038
  FBLazyVector:
2039
- :path: "../../../node_modules/react-native/Libraries/FBLazyVector"
2039
+ :path: "../node_modules/react-native/Libraries/FBLazyVector"
2040
2040
  hermes-engine:
2041
- :podspec: "../../../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec"
2041
+ :podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec"
2042
2042
  :tag: hermes-v250829098.0.14
2043
2043
  NativeScriptNativeApi:
2044
- :path: "../../../node_modules/@nativescript/react-native"
2044
+ :path: "../node_modules/@nativescript/react-native"
2045
2045
  RCTDeprecation:
2046
- :path: "../../../node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation"
2046
+ :path: "../node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation"
2047
2047
  RCTRequired:
2048
- :path: "../../../node_modules/react-native/Libraries/Required"
2048
+ :path: "../node_modules/react-native/Libraries/Required"
2049
2049
  RCTSwiftUI:
2050
- :path: "../../../node_modules/react-native/ReactApple/RCTSwiftUI"
2050
+ :path: "../node_modules/react-native/ReactApple/RCTSwiftUI"
2051
2051
  RCTSwiftUIWrapper:
2052
- :path: "../../../node_modules/react-native/ReactApple/RCTSwiftUIWrapper"
2052
+ :path: "../node_modules/react-native/ReactApple/RCTSwiftUIWrapper"
2053
2053
  RCTTypeSafety:
2054
- :path: "../../../node_modules/react-native/Libraries/TypeSafety"
2054
+ :path: "../node_modules/react-native/Libraries/TypeSafety"
2055
2055
  React:
2056
- :path: "../../../node_modules/react-native/"
2056
+ :path: "../node_modules/react-native/"
2057
2057
  React-callinvoker:
2058
- :path: "../../../node_modules/react-native/ReactCommon/callinvoker"
2058
+ :path: "../node_modules/react-native/ReactCommon/callinvoker"
2059
2059
  React-Core:
2060
- :path: "../../../node_modules/react-native/"
2060
+ :path: "../node_modules/react-native/"
2061
2061
  React-Core-prebuilt:
2062
- :podspec: "../../../node_modules/react-native/React-Core-prebuilt.podspec"
2062
+ :podspec: "../node_modules/react-native/React-Core-prebuilt.podspec"
2063
2063
  React-CoreModules:
2064
- :path: "../../../node_modules/react-native/React/CoreModules"
2064
+ :path: "../node_modules/react-native/React/CoreModules"
2065
2065
  React-cxxreact:
2066
- :path: "../../../node_modules/react-native/ReactCommon/cxxreact"
2066
+ :path: "../node_modules/react-native/ReactCommon/cxxreact"
2067
2067
  React-debug:
2068
- :path: "../../../node_modules/react-native/ReactCommon/react/debug"
2068
+ :path: "../node_modules/react-native/ReactCommon/react/debug"
2069
2069
  React-defaultsnativemodule:
2070
- :path: "../../../node_modules/react-native/ReactCommon/react/nativemodule/defaults"
2070
+ :path: "../node_modules/react-native/ReactCommon/react/nativemodule/defaults"
2071
2071
  React-domnativemodule:
2072
- :path: "../../../node_modules/react-native/ReactCommon/react/nativemodule/dom"
2072
+ :path: "../node_modules/react-native/ReactCommon/react/nativemodule/dom"
2073
2073
  React-Fabric:
2074
- :path: "../../../node_modules/react-native/ReactCommon"
2074
+ :path: "../node_modules/react-native/ReactCommon"
2075
2075
  React-FabricComponents:
2076
- :path: "../../../node_modules/react-native/ReactCommon"
2076
+ :path: "../node_modules/react-native/ReactCommon"
2077
2077
  React-FabricImage:
2078
- :path: "../../../node_modules/react-native/ReactCommon"
2078
+ :path: "../node_modules/react-native/ReactCommon"
2079
2079
  React-featureflags:
2080
- :path: "../../../node_modules/react-native/ReactCommon/react/featureflags"
2080
+ :path: "../node_modules/react-native/ReactCommon/react/featureflags"
2081
2081
  React-featureflagsnativemodule:
2082
- :path: "../../../node_modules/react-native/ReactCommon/react/nativemodule/featureflags"
2082
+ :path: "../node_modules/react-native/ReactCommon/react/nativemodule/featureflags"
2083
2083
  React-graphics:
2084
- :path: "../../../node_modules/react-native/ReactCommon/react/renderer/graphics"
2084
+ :path: "../node_modules/react-native/ReactCommon/react/renderer/graphics"
2085
2085
  React-hermes:
2086
- :path: "../../../node_modules/react-native/ReactCommon/hermes"
2086
+ :path: "../node_modules/react-native/ReactCommon/hermes"
2087
2087
  React-idlecallbacksnativemodule:
2088
- :path: "../../../node_modules/react-native/ReactCommon/react/nativemodule/idlecallbacks"
2088
+ :path: "../node_modules/react-native/ReactCommon/react/nativemodule/idlecallbacks"
2089
2089
  React-ImageManager:
2090
- :path: "../../../node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios"
2090
+ :path: "../node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios"
2091
2091
  React-intersectionobservernativemodule:
2092
- :path: "../../../node_modules/react-native/ReactCommon/react/nativemodule/intersectionobserver"
2092
+ :path: "../node_modules/react-native/ReactCommon/react/nativemodule/intersectionobserver"
2093
2093
  React-jserrorhandler:
2094
- :path: "../../../node_modules/react-native/ReactCommon/jserrorhandler"
2094
+ :path: "../node_modules/react-native/ReactCommon/jserrorhandler"
2095
2095
  React-jsi:
2096
- :path: "../../../node_modules/react-native/ReactCommon/jsi"
2096
+ :path: "../node_modules/react-native/ReactCommon/jsi"
2097
2097
  React-jsiexecutor:
2098
- :path: "../../../node_modules/react-native/ReactCommon/jsiexecutor"
2098
+ :path: "../node_modules/react-native/ReactCommon/jsiexecutor"
2099
2099
  React-jsinspector:
2100
- :path: "../../../node_modules/react-native/ReactCommon/jsinspector-modern"
2100
+ :path: "../node_modules/react-native/ReactCommon/jsinspector-modern"
2101
2101
  React-jsinspectorcdp:
2102
- :path: "../../../node_modules/react-native/ReactCommon/jsinspector-modern/cdp"
2102
+ :path: "../node_modules/react-native/ReactCommon/jsinspector-modern/cdp"
2103
2103
  React-jsinspectornetwork:
2104
- :path: "../../../node_modules/react-native/ReactCommon/jsinspector-modern/network"
2104
+ :path: "../node_modules/react-native/ReactCommon/jsinspector-modern/network"
2105
2105
  React-jsinspectortracing:
2106
- :path: "../../../node_modules/react-native/ReactCommon/jsinspector-modern/tracing"
2106
+ :path: "../node_modules/react-native/ReactCommon/jsinspector-modern/tracing"
2107
2107
  React-jsitooling:
2108
- :path: "../../../node_modules/react-native/ReactCommon/jsitooling"
2108
+ :path: "../node_modules/react-native/ReactCommon/jsitooling"
2109
2109
  React-jsitracing:
2110
- :path: "../../../node_modules/react-native/ReactCommon/hermes/executor/"
2110
+ :path: "../node_modules/react-native/ReactCommon/hermes/executor/"
2111
2111
  React-logger:
2112
- :path: "../../../node_modules/react-native/ReactCommon/logger"
2112
+ :path: "../node_modules/react-native/ReactCommon/logger"
2113
2113
  React-Mapbuffer:
2114
- :path: "../../../node_modules/react-native/ReactCommon"
2114
+ :path: "../node_modules/react-native/ReactCommon"
2115
2115
  React-microtasksnativemodule:
2116
- :path: "../../../node_modules/react-native/ReactCommon/react/nativemodule/microtasks"
2116
+ :path: "../node_modules/react-native/ReactCommon/react/nativemodule/microtasks"
2117
2117
  React-mutationobservernativemodule:
2118
- :path: "../../../node_modules/react-native/ReactCommon/react/nativemodule/mutationobserver"
2118
+ :path: "../node_modules/react-native/ReactCommon/react/nativemodule/mutationobserver"
2119
2119
  React-NativeModulesApple:
2120
- :path: "../../../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios"
2120
+ :path: "../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios"
2121
2121
  React-networking:
2122
- :path: "../../../node_modules/react-native/ReactCommon/react/networking"
2122
+ :path: "../node_modules/react-native/ReactCommon/react/networking"
2123
2123
  React-oscompat:
2124
- :path: "../../../node_modules/react-native/ReactCommon/oscompat"
2124
+ :path: "../node_modules/react-native/ReactCommon/oscompat"
2125
2125
  React-perflogger:
2126
- :path: "../../../node_modules/react-native/ReactCommon/reactperflogger"
2126
+ :path: "../node_modules/react-native/ReactCommon/reactperflogger"
2127
2127
  React-performancecdpmetrics:
2128
- :path: "../../../node_modules/react-native/ReactCommon/react/performance/cdpmetrics"
2128
+ :path: "../node_modules/react-native/ReactCommon/react/performance/cdpmetrics"
2129
2129
  React-performancetimeline:
2130
- :path: "../../../node_modules/react-native/ReactCommon/react/performance/timeline"
2130
+ :path: "../node_modules/react-native/ReactCommon/react/performance/timeline"
2131
2131
  React-RCTActionSheet:
2132
- :path: "../../../node_modules/react-native/Libraries/ActionSheetIOS"
2132
+ :path: "../node_modules/react-native/Libraries/ActionSheetIOS"
2133
2133
  React-RCTAnimation:
2134
- :path: "../../../node_modules/react-native/Libraries/NativeAnimation"
2134
+ :path: "../node_modules/react-native/Libraries/NativeAnimation"
2135
2135
  React-RCTAppDelegate:
2136
- :path: "../../../node_modules/react-native/Libraries/AppDelegate"
2136
+ :path: "../node_modules/react-native/Libraries/AppDelegate"
2137
2137
  React-RCTBlob:
2138
- :path: "../../../node_modules/react-native/Libraries/Blob"
2138
+ :path: "../node_modules/react-native/Libraries/Blob"
2139
2139
  React-RCTFabric:
2140
- :path: "../../../node_modules/react-native/React"
2140
+ :path: "../node_modules/react-native/React"
2141
2141
  React-RCTFBReactNativeSpec:
2142
- :path: "../../../node_modules/react-native/React"
2142
+ :path: "../node_modules/react-native/React"
2143
2143
  React-RCTImage:
2144
- :path: "../../../node_modules/react-native/Libraries/Image"
2144
+ :path: "../node_modules/react-native/Libraries/Image"
2145
2145
  React-RCTLinking:
2146
- :path: "../../../node_modules/react-native/Libraries/LinkingIOS"
2146
+ :path: "../node_modules/react-native/Libraries/LinkingIOS"
2147
2147
  React-RCTNetwork:
2148
- :path: "../../../node_modules/react-native/Libraries/Network"
2148
+ :path: "../node_modules/react-native/Libraries/Network"
2149
2149
  React-RCTRuntime:
2150
- :path: "../../../node_modules/react-native/React/Runtime"
2150
+ :path: "../node_modules/react-native/React/Runtime"
2151
2151
  React-RCTSettings:
2152
- :path: "../../../node_modules/react-native/Libraries/Settings"
2152
+ :path: "../node_modules/react-native/Libraries/Settings"
2153
2153
  React-RCTText:
2154
- :path: "../../../node_modules/react-native/Libraries/Text"
2154
+ :path: "../node_modules/react-native/Libraries/Text"
2155
2155
  React-RCTVibration:
2156
- :path: "../../../node_modules/react-native/Libraries/Vibration"
2156
+ :path: "../node_modules/react-native/Libraries/Vibration"
2157
2157
  React-rendererconsistency:
2158
- :path: "../../../node_modules/react-native/ReactCommon/react/renderer/consistency"
2158
+ :path: "../node_modules/react-native/ReactCommon/react/renderer/consistency"
2159
2159
  React-renderercss:
2160
- :path: "../../../node_modules/react-native/ReactCommon/react/renderer/css"
2160
+ :path: "../node_modules/react-native/ReactCommon/react/renderer/css"
2161
2161
  React-rendererdebug:
2162
- :path: "../../../node_modules/react-native/ReactCommon/react/renderer/debug"
2162
+ :path: "../node_modules/react-native/ReactCommon/react/renderer/debug"
2163
2163
  React-RuntimeApple:
2164
- :path: "../../../node_modules/react-native/ReactCommon/react/runtime/platform/ios"
2164
+ :path: "../node_modules/react-native/ReactCommon/react/runtime/platform/ios"
2165
2165
  React-RuntimeCore:
2166
- :path: "../../../node_modules/react-native/ReactCommon/react/runtime"
2166
+ :path: "../node_modules/react-native/ReactCommon/react/runtime"
2167
2167
  React-runtimeexecutor:
2168
- :path: "../../../node_modules/react-native/ReactCommon/runtimeexecutor"
2168
+ :path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
2169
2169
  React-RuntimeHermes:
2170
- :path: "../../../node_modules/react-native/ReactCommon/react/runtime"
2170
+ :path: "../node_modules/react-native/ReactCommon/react/runtime"
2171
2171
  React-runtimescheduler:
2172
- :path: "../../../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler"
2172
+ :path: "../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler"
2173
2173
  React-timing:
2174
- :path: "../../../node_modules/react-native/ReactCommon/react/timing"
2174
+ :path: "../node_modules/react-native/ReactCommon/react/timing"
2175
2175
  React-utils:
2176
- :path: "../../../node_modules/react-native/ReactCommon/react/utils"
2176
+ :path: "../node_modules/react-native/ReactCommon/react/utils"
2177
2177
  React-viewtransitionnativemodule:
2178
- :path: "../../../node_modules/react-native/ReactCommon/react/nativemodule/viewtransition"
2178
+ :path: "../node_modules/react-native/ReactCommon/react/nativemodule/viewtransition"
2179
2179
  React-webperformancenativemodule:
2180
- :path: "../../../node_modules/react-native/ReactCommon/react/nativemodule/webperformance"
2180
+ :path: "../node_modules/react-native/ReactCommon/react/nativemodule/webperformance"
2181
2181
  ReactAppDependencyProvider:
2182
2182
  :path: build/generated/ios/ReactAppDependencyProvider
2183
2183
  ReactCodegen:
2184
2184
  :path: build/generated/ios/ReactCodegen
2185
2185
  ReactCommon:
2186
- :path: "../../../node_modules/react-native/ReactCommon"
2186
+ :path: "../node_modules/react-native/ReactCommon"
2187
2187
  ReactNativeDependencies:
2188
- :podspec: "../../../node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec"
2188
+ :podspec: "../node_modules/react-native/third-party-podspecs/ReactNativeDependencies.podspec"
2189
2189
  Yoga:
2190
- :path: "../../../node_modules/react-native/ReactCommon/yoga"
2190
+ :path: "../node_modules/react-native/ReactCommon/yoga"
2191
2191
 
2192
2192
  SPEC CHECKSUMS:
2193
2193
  BleamRuntime: b4bb4150a1cab795f73bcb9289194e214b3c069e
@@ -2203,7 +2203,7 @@ SPEC CHECKSUMS:
2203
2203
  ExpoModulesJSI: ef7f197a8e7eeb245557f560ade794bfc1abdc79
2204
2204
  ExpoModulesWorklets: 0340ed9a30017f8597b90a1ef9aa210c43e44c4b
2205
2205
  FBLazyVector: b3e7ad108f0d882e30445c5527d774e3fd432f3d
2206
- hermes-engine: f66e5c7c290634bc2dc5818baa54f88f00cb14df
2206
+ hermes-engine: 6f298675a7f5d45e1a61a3c664a2b9618befb1e1
2207
2207
  NativeScriptNativeApi: b35cf5bb2727adf20eb13d2b1bd8651d0698a362
2208
2208
  RCTDeprecation: 2a74a2c57675e64419bd89078efde81f7c1de90b
2209
2209
  RCTRequired: 30451112e6fef4e6f31b4e7eee0845156e35e4b0
@@ -2274,7 +2274,7 @@ SPEC CHECKSUMS:
2274
2274
  React-viewtransitionnativemodule: 11fe091101d381451b1542c37b2745900254f096
2275
2275
  React-webperformancenativemodule: b5d249419f1546663845c82f24de4e18a3180997
2276
2276
  ReactAppDependencyProvider: dcdd0e1b9559a6d8d8aea05286f4ed085091978e
2277
- ReactCodegen: 21807c5e7d6d0e334667f755e23063834d581e62
2277
+ ReactCodegen: afe0d436ee089d7bea6418429d8312b1d23a6801
2278
2278
  ReactCommon: d5c1bb4427bf51c443de5926aac332c89ddd9363
2279
2279
  ReactNativeDependencies: fa0a54b3f5319ae0e3b9aff32bfee7a424b88e66
2280
2280
  Yoga: fe50ab299e578f397fef753cf309c6703a4db29b
@@ -3,10 +3,13 @@ import Foundation
3
3
  @objc protocol GenerationServiceProtocol {
4
4
  func startGeneration(requestData: Data, reply: @escaping (Bool) -> Void)
5
5
  func cancelGeneration(reply: @escaping (Bool) -> Void)
6
+ func startTextGeneration(requestData: Data, reply: @escaping (Bool) -> Void)
7
+ func cancelTextGeneration(id: String, reply: @escaping (Bool) -> Void)
6
8
  func memoryTelemetry(reply: @escaping (Data?) -> Void)
7
9
  func shutdown(reply: @escaping (Bool) -> Void)
8
10
  }
9
11
 
10
12
  @objc protocol GenerationServiceClientProtocol {
11
13
  func generationWorkerDidEmit(eventData: Data)
14
+ func textGenerationWorkerDidEmit(eventData: Data)
12
15
  }
@@ -122,3 +122,47 @@ struct GenerationWorkerLoRA: Codable, Sendable {
122
122
  let path: String
123
123
  let scale: Double
124
124
  }
125
+
126
+ struct BonsaiTextGenerationRequest: Codable, Sendable {
127
+ let id: String
128
+ let model: String
129
+ let modelPath: String
130
+ let inputIDs: [Int]
131
+ let endTokenIDs: [Int]
132
+ let maximumNewTokens: Int?
133
+ let temperature: Double?
134
+ let topP: Double?
135
+ let topK: Int?
136
+ let repetitionPenalty: Double?
137
+ let repetitionContextSize: Int?
138
+ let seed: Int?
139
+ }
140
+
141
+ struct BonsaiTextGenerationEvent: Codable, Sendable {
142
+ enum EventType: String, Codable, Sendable {
143
+ case update
144
+ case completed
145
+ case canceled
146
+ case failed
147
+ }
148
+
149
+ let type: EventType
150
+ let id: String
151
+ let tokenIDs: [Int]
152
+ let finishReason: String?
153
+ let message: String?
154
+
155
+ init(
156
+ type: EventType,
157
+ id: String,
158
+ tokenIDs: [Int] = [],
159
+ finishReason: String? = nil,
160
+ message: String? = nil
161
+ ) {
162
+ self.type = type
163
+ self.id = id
164
+ self.tokenIDs = tokenIDs
165
+ self.finishReason = finishReason
166
+ self.message = message
167
+ }
168
+ }