@agimon-ai/po-native 0.0.1-alpha.3 → 0.0.1-alpha.30

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/README.md +1 -1
  2. package/generated/richAssets.json +1 -1
  3. package/modules/po-bundle-store/android/build.gradle +15 -0
  4. package/modules/po-bundle-store/android/src/main/java/expo/modules/pobundlestore/PoBundleStoreModule.kt +66 -0
  5. package/modules/po-bundle-store/expo-module.config.json +5 -0
  6. package/modules/po-bundle-store/index.ts +30 -0
  7. package/modules/po-bundle-store/ios/PoBundleStore.podspec +16 -0
  8. package/modules/po-bundle-store/ios/PoBundleStoreModule.swift +81 -0
  9. package/package.json +13 -11
  10. package/src/adapters/remoteSocket.ts +5 -3
  11. package/src/app/App.tsx +1052 -600
  12. package/src/app/HostBackdrop.tsx +55 -0
  13. package/src/app/HostsRoutes.tsx +84 -3
  14. package/src/app/activityLoads.ts +32 -0
  15. package/src/app/appearance.ts +53 -5
  16. package/src/app/cloudRuntime.ts +7 -3
  17. package/src/app/hostRuntimes.ts +53 -21
  18. package/src/app/liveRuntime.ts +389 -226
  19. package/src/app/nativeTemplate.tsx +45 -19
  20. package/src/app/useHome.ts +46 -13
  21. package/src/components/ActivitySheet.stories.tsx +1 -1
  22. package/src/components/CompletionSheet.stories.tsx +7 -5
  23. package/src/components/DialogSheet.stories.tsx +1 -1
  24. package/src/components/MessageActionsSheet.stories.tsx +1 -4
  25. package/src/components/SessionSheets.stories.tsx +93 -0
  26. package/src/components/SessionSheets.tsx +293 -2
  27. package/src/components/homeApps.ts +1 -38
  28. package/src/components/richActivity/McpAppChrome.stories.tsx +62 -0
  29. package/src/components/richActivity/McpAppChrome.tsx +54 -0
  30. package/src/components/richActivity/McpAppView.tsx +289 -0
  31. package/src/components/richActivity/createRichActivityRenderers.tsx +1 -1
  32. package/src/components/richActivity/mcpAppBridge.ts +165 -0
  33. package/src/components/richActivity/offlineDocuments.ts +9 -0
  34. package/src/screens/AccountHosts.stories.tsx +51 -0
  35. package/src/screens/AppearanceScreen.tsx +61 -34
  36. package/src/screens/ContributedSettingsScreen.tsx +6 -8
  37. package/src/screens/ConversationDesign.stories.tsx +1 -2
  38. package/src/screens/GlobalSettings.stories.tsx +36 -0
  39. package/src/screens/GlobalSettings.tsx +144 -0
  40. package/src/screens/HomeComputers.stories.tsx +54 -45
  41. package/src/screens/HomeDesign.stories.tsx +305 -0
  42. package/src/screens/HomeScreen.stories.tsx +17 -161
  43. package/src/screens/HomeScreen.tsx +230 -222
  44. package/src/screens/HostsView.tsx +64 -0
  45. package/src/screens/MultiHostDesign.stories.tsx +1 -1
  46. package/src/screens/NativeListsDesign.stories.tsx +2 -3
  47. package/src/screens/PluginActionsDesign.stories.tsx +1 -2
  48. package/src/screens/PluginCatalogScreen.tsx +241 -0
  49. package/src/screens/PluginDetailScreen.tsx +270 -0
  50. package/src/screens/PluginMarketplaceDesign.stories.tsx +344 -0
  51. package/src/screens/PluginOnboardingScreen.tsx +181 -0
  52. package/src/screens/PresetsScreen.tsx +212 -0
  53. package/src/screens/ProvidersScreen.tsx +2 -2
  54. package/src/screens/SessionScreen.stories.tsx +1 -3
  55. package/src/screens/SettingsRound2Design.stories.tsx +1 -1
  56. package/src/screens/SettingsScreen.stories.tsx +1 -1
  57. package/src/screens/SettingsScreen.tsx +54 -0
  58. package/src/screens/homeModel.ts +2 -3
  59. package/src/screens/pluginModel.tsx +78 -0
  60. package/src/screens/usePluginMarketplace.ts +222 -0
  61. package/src/services/accountClient/index.ts +104 -0
  62. package/src/services/accountGrants/index.ts +19 -2
  63. package/src/services/accountRoster/index.ts +122 -1
  64. package/src/services/bundleCache/index.ts +35 -0
  65. package/src/services/bundleUpdates/index.ts +536 -0
  66. package/src/services/connection/index.ts +1 -1
  67. package/src/services/hostActions/index.ts +57 -2
  68. package/src/services/hostModules/index.ts +16 -3
  69. package/src/services/pluginRuntime/index.ts +79 -28
  70. package/src/services/requestCache/index.ts +70 -0
  71. package/src/services/requestCache/type.ts +6 -0
  72. package/src/services/sessionRuntime/index.ts +1 -1
  73. package/src/services/settingsApi/index.ts +103 -5
  74. package/src/services/workspaceProviders/index.ts +15 -6
  75. package/src/types/poTemplateElegant.d.ts +9 -0
  76. package/src/components/ActivityPanel.tsx +0 -49
  77. package/src/components/CaptureTray.tsx +0 -93
  78. package/src/components/CompletionSheet.tsx +0 -378
  79. package/src/components/Composer.tsx +0 -453
  80. package/src/components/DialogSheet.tsx +0 -114
  81. package/src/components/MessageActionsSheet.tsx +0 -37
  82. package/src/components/TimelineItem.tsx +0 -238
  83. package/src/components/slotProps.ts +0 -158
  84. package/src/screens/PluginsScreen.tsx +0 -97
  85. package/src/screens/SessionScreen.tsx +0 -666
package/README.md CHANGED
@@ -9,7 +9,7 @@ The app pairs with one Po host over its remote-access tunnel, lists that host's
9
9
  - **Pairing.** Scan the host's pairing QR with the camera, or paste the URL. The host approves the request on its own screen. The app then registers device keys (see the trust model) and keeps the host record.
10
10
  - **Connection.** Remote HTTP with the device cookie, three sealed channels (session, protocol, HTTP), the Pi `Client` over the protocol socket, and the hub socket. A dropped hub signs in again with the device key and rebuilds the connection.
11
11
  - **Session state.** `@agimon-ai/po-web-dashboard/core` supplies the session, transcript, and plugin registry stores, the same ones the browser cockpit uses, without any DOM dependency.
12
- - **Plugins.** The host advertises native compositions through `nativeGlobal` and `workspaces[].nativeComposition` on `/api/compositions` and `nativeComposition` on a session summary. For each mount the app loads the composition through its verified cache, evaluates it, keeps only the plugin ids the descriptor admits, installs them in the plugin registry, and starts them. Channel frames reach plugins through `dispatchChannelFrame`. A newer load for a mount makes older ones stale.
12
+ - **Plugins.** The host advertises native compositions through `nativeHost` and `workspaces[].nativeComposition` on `/api/compositions` and `nativeComposition` on a session summary. For each mount the app loads the composition through its verified cache, evaluates it, keeps only the plugin ids the descriptor admits, installs them in the plugin registry, and starts them. Channel frames reach plugins through `dispatchChannelFrame`. A newer load for a mount makes older ones stale.
13
13
  - **Navigation.** `App` registers screens by phase (reconnecting, pairing, ready) in a React Navigation native stack, inside `SafeAreaProvider > PoNativeProvider > KeyboardProvider > NavigationContainer`. Native headers own back navigation and swipe back; Sessions has a large title and a Settings action. A session opens in the live runtime on focus and closes on blur; Settings reloads trusted devices on focus.
14
14
  - **Lists and content.** Sessions and transcripts use the component library's FlashList-backed `List`; the transcript uses `startAtBottom`. Assistant text uses `Markdown`; tool entries use the plugin `sessionToolRenderer`, falling back to `MessageItem` and `CodeBlock`.
15
15
  - **Sheets.** `PoNativeProvider` supplies the shared gesture root and bottom sheet host for plugin detail sheets and action menus. The composer's decision prompts stay inline as gentle rose panels, not modal sheets. `SettingsScreen` lists trusted devices, revokes one through biometric step-up, and forgets the host.