@agimon-ai/po-native 0.0.1-alpha.8 → 0.0.1-alpha.81

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 (204) hide show
  1. package/LICENSE +110 -149
  2. package/README.md +50 -120
  3. package/app.config.ts +12 -0
  4. package/assets/cta-renew.png +0 -0
  5. package/assets/cta-sign-in.png +0 -0
  6. package/assets/onboarding/ink-day.webp +0 -0
  7. package/assets/onboarding/ink-night.webp +0 -0
  8. package/assets/onboarding/welcome-pos-night.png +0 -0
  9. package/assets/onboarding/welcome-pos.png +0 -0
  10. package/assets/po-avatars/dev.png +0 -0
  11. package/assets/po-avatars/marketing.png +0 -0
  12. package/assets/po-avatars/personal.png +0 -0
  13. package/assets/po-avatars/po.png +0 -0
  14. package/assets/po-avatars/sales.png +0 -0
  15. package/assets/po-cards/dev-night.webp +0 -0
  16. package/assets/po-cards/dev.webp +0 -0
  17. package/assets/po-cards/marketing-night.webp +0 -0
  18. package/assets/po-cards/marketing.webp +0 -0
  19. package/assets/po-cards/personal-night.webp +0 -0
  20. package/assets/po-cards/personal.webp +0 -0
  21. package/assets/po-cards/po-night.webp +0 -0
  22. package/assets/po-cards/po.webp +0 -0
  23. package/assets/po-cards/sales-night.webp +0 -0
  24. package/assets/po-cards/sales.webp +0 -0
  25. package/generated/richAssets.json +1 -1
  26. package/metro.config.cjs +4 -0
  27. package/modules/po-bundle-store/android/build.gradle +15 -0
  28. package/modules/po-bundle-store/android/src/main/java/expo/modules/pobundlestore/PoBundleStoreModule.kt +66 -0
  29. package/modules/po-bundle-store/expo-module.config.json +5 -0
  30. package/modules/po-bundle-store/index.ts +30 -0
  31. package/modules/po-bundle-store/ios/PoBundleStore.podspec +16 -0
  32. package/modules/po-bundle-store/ios/PoBundleStoreModule.swift +81 -0
  33. package/modules/po-lan-tls/android/build.gradle +20 -0
  34. package/modules/po-lan-tls/android/src/main/java/expo/modules/polantls/PoLanTlsModule.kt +521 -0
  35. package/modules/po-lan-tls/expo-module.config.json +5 -0
  36. package/modules/po-lan-tls/index.ts +538 -0
  37. package/modules/po-lan-tls/ios/PoLanTls.podspec +17 -0
  38. package/modules/po-lan-tls/ios/PoLanTlsModule.swift +593 -0
  39. package/package.json +16 -12
  40. package/src/adapters/remoteHttp.ts +47 -8
  41. package/src/adapters/remoteSocket.ts +55 -51
  42. package/src/app/AccountRoute.tsx +269 -654
  43. package/src/app/App.tsx +2076 -819
  44. package/src/app/GrantNotices.tsx +51 -6
  45. package/src/app/HostBackdrop.tsx +55 -0
  46. package/src/app/HostsRoutes.tsx +153 -28
  47. package/src/app/OnboardingRoute.tsx +172 -0
  48. package/src/app/SessionSharingRoute.tsx +204 -0
  49. package/src/app/TeamRoute.tsx +111 -0
  50. package/src/app/activityLoads.ts +32 -0
  51. package/src/app/appearance.ts +53 -5
  52. package/src/app/bundledPlugins.ts +8 -0
  53. package/src/app/cloudRuntime.ts +217 -67
  54. package/src/app/firstSteps.ts +41 -0
  55. package/src/app/homeState.ts +7 -3
  56. package/src/app/hostRuntimes.ts +430 -57
  57. package/src/app/liveRuntime.ts +318 -156
  58. package/src/app/locale.ts +57 -0
  59. package/src/app/nativeTemplate.tsx +45 -19
  60. package/src/app/pickSettingsAvatar.ts +39 -0
  61. package/src/app/railWorkspaces.ts +15 -8
  62. package/src/app/sessionAvatars.ts +52 -0
  63. package/src/app/useHome.ts +53 -16
  64. package/src/components/ActivitySheet.stories.tsx +3 -3
  65. package/src/components/ActivitySheet.tsx +68 -41
  66. package/src/components/CompletionSheet.stories.tsx +8 -6
  67. package/src/components/ConnectCard.tsx +26 -12
  68. package/src/components/ContextFace.stories.tsx +1 -1
  69. package/src/components/ContextFace.tsx +53 -30
  70. package/src/components/DashboardTiles.tsx +6 -2
  71. package/src/components/DialogSheet.stories.tsx +1 -1
  72. package/src/components/GrantNotice.tsx +31 -41
  73. package/src/components/MessageActionsSheet.stories.tsx +2 -5
  74. package/src/components/RestoreCard.tsx +7 -5
  75. package/src/components/ResumeSheetView.tsx +11 -5
  76. package/src/components/SessionChoicesView.tsx +9 -2
  77. package/src/components/SessionOptionsSheet.tsx +128 -42
  78. package/src/components/SessionSheets.stories.tsx +121 -33
  79. package/src/components/SessionSheets.tsx +286 -50
  80. package/src/components/SocialSignInButton.tsx +2 -1
  81. package/src/components/TabBar.tsx +7 -1
  82. package/src/components/WakePeriodView.tsx +89 -0
  83. package/src/components/contextRows.ts +6 -1
  84. package/src/components/homeApps.ts +1 -38
  85. package/src/components/liveActivity/SessionActivity.stories.tsx +149 -0
  86. package/src/components/richActivity/AuthorMediaHost.tsx +82 -95
  87. package/src/components/richActivity/AuthorVideoTransport.stories.tsx +95 -0
  88. package/src/components/richActivity/AuthorVideoTransport.tsx +154 -0
  89. package/src/components/richActivity/ImageViewer.tsx +5 -1
  90. package/src/components/richActivity/McpAppChrome.tsx +14 -11
  91. package/src/components/richActivity/McpAppView.tsx +25 -15
  92. package/src/components/richActivity/NativeAuthorCaptureSurface.tsx +3 -1
  93. package/src/components/richActivity/NativeAuthorHtmlView.tsx +6 -1
  94. package/src/components/richActivity/createRichActivityRenderers.tsx +187 -23
  95. package/src/components/richActivity/isolatedContent.ts +57 -4
  96. package/src/index.tsx +6 -0
  97. package/src/screens/AccountHosts.stories.tsx +51 -0
  98. package/src/screens/AccountOnboarding.stories.tsx +67 -3
  99. package/src/screens/AccountScreen.tsx +502 -194
  100. package/src/screens/AppearanceScreen.tsx +119 -55
  101. package/src/screens/AuthoringDesign.stories.tsx +420 -0
  102. package/src/screens/ClientDevices.tsx +8 -4
  103. package/src/screens/ClientDevicesView.tsx +62 -19
  104. package/src/screens/ComposerOptionsDesign.stories.tsx +5 -5
  105. package/src/screens/ContributedSettingsScreen.tsx +65 -24
  106. package/src/screens/ConversationDesign.stories.tsx +1 -2
  107. package/src/screens/GitRemoteScreen.tsx +60 -28
  108. package/src/screens/GlobalSettings.stories.tsx +36 -0
  109. package/src/screens/GlobalSettings.tsx +172 -0
  110. package/src/screens/Grants.stories.tsx +198 -3
  111. package/src/screens/HomeComputers.stories.tsx +41 -45
  112. package/src/screens/HomeDesign.stories.tsx +335 -0
  113. package/src/screens/HomeScreen.stories.tsx +17 -161
  114. package/src/screens/HomeScreen.tsx +339 -265
  115. package/src/screens/HostDrawer.stories.tsx +35 -3
  116. package/src/screens/HostDrawer.tsx +50 -12
  117. package/src/screens/HostedOnboarding.tsx +842 -0
  118. package/src/screens/HostedOnboardingDesign.stories.tsx +358 -0
  119. package/src/screens/HostsView.tsx +235 -50
  120. package/src/screens/ImagesScreen.tsx +33 -11
  121. package/src/screens/LanguageScreen.tsx +48 -0
  122. package/src/screens/LargeContentDesign.stories.tsx +2 -2
  123. package/src/screens/McpServersScreen.tsx +84 -37
  124. package/src/screens/MetricsScreen.tsx +147 -63
  125. package/src/screens/MultiHostDesign.stories.tsx +1 -1
  126. package/src/screens/NativeListsDesign.stories.tsx +67 -15
  127. package/src/screens/PairingScreen.stories.tsx +16 -1
  128. package/src/screens/PairingScreen.tsx +13 -10
  129. package/src/screens/PluginActionsDesign.stories.tsx +1 -2
  130. package/src/screens/PluginCatalogScreen.tsx +324 -0
  131. package/src/screens/PluginDetailScreen.tsx +365 -0
  132. package/src/screens/PluginMarketplaceDesign.stories.tsx +367 -0
  133. package/src/screens/PluginOnboardingScreen.tsx +202 -0
  134. package/src/screens/PresetsScreen.tsx +256 -0
  135. package/src/screens/ProvidersScreen.tsx +135 -53
  136. package/src/screens/RemoteControlScreen.tsx +91 -110
  137. package/src/screens/SessionActionsDesign.stories.tsx +2 -3
  138. package/src/screens/SessionLifecycleDesign.stories.tsx +221 -0
  139. package/src/screens/SessionListScreen.tsx +35 -7
  140. package/src/screens/SessionScreen.stories.tsx +121 -6
  141. package/src/screens/SessionSharing.stories.tsx +78 -0
  142. package/src/screens/SessionSharingView.tsx +276 -0
  143. package/src/screens/SettingsDirectory.stories.tsx +270 -0
  144. package/src/screens/SettingsFields.tsx +20 -9
  145. package/src/screens/SettingsRound2Design.stories.tsx +3 -3
  146. package/src/screens/SettingsScreen.stories.tsx +86 -38
  147. package/src/screens/SettingsScreen.tsx +176 -62
  148. package/src/screens/Team.stories.tsx +56 -0
  149. package/src/screens/TeamView.tsx +357 -0
  150. package/src/screens/WorkspaceProviders.tsx +36 -15
  151. package/src/screens/WorkspaceProvidersSection.tsx +43 -29
  152. package/src/screens/WorkspaceScreen.tsx +44 -10
  153. package/src/screens/WorkspaceSettingsScreen.tsx +194 -74
  154. package/src/screens/homeModel.ts +82 -34
  155. package/src/screens/localPlugins.ts +46 -0
  156. package/src/screens/pluginModel.tsx +81 -0
  157. package/src/screens/usePluginMarketplace.ts +251 -0
  158. package/src/services/accountClient/index.ts +79 -272
  159. package/src/services/apiTransport/index.ts +70 -25
  160. package/src/services/bundleCache/index.ts +35 -0
  161. package/src/services/bundleUpdates/index.ts +128 -27
  162. package/src/services/calendarTargets/index.ts +5 -1
  163. package/src/services/cloudHosts/index.ts +125 -12
  164. package/src/services/connection/index.ts +24 -16
  165. package/src/services/deviceTrust/index.ts +209 -52
  166. package/src/services/hostActions/index.ts +113 -31
  167. package/src/services/hostLinkBroker/index.ts +36 -16
  168. package/src/services/hostModules/index.ts +47 -1
  169. package/src/services/hostSnapshots/index.ts +3 -0
  170. package/src/services/liveActivity/SessionActivity.ios.tsx +108 -0
  171. package/src/services/liveActivity/index.ios.ts +216 -0
  172. package/src/services/liveActivity/index.ts +6 -0
  173. package/src/services/liveActivity/lifecycle.ts +253 -0
  174. package/src/services/logExport/index.ts +4 -1
  175. package/src/services/nativeAudio/index.ts +10 -4
  176. package/src/services/nativePush/index.ts +9 -16
  177. package/src/services/pairing/index.ts +86 -28
  178. package/src/services/pluginRuntime/index.ts +28 -23
  179. package/src/services/relayTransport/index.ts +258 -0
  180. package/src/services/relayTransport/route.ts +19 -0
  181. package/src/services/requestCache/index.ts +70 -0
  182. package/src/services/requestCache/type.ts +6 -0
  183. package/src/services/sessionProfiles/index.ts +2 -1
  184. package/src/services/sessionRuntime/index.ts +1 -1
  185. package/src/services/sessionTap.ts +47 -0
  186. package/src/services/settingsApi/index.ts +104 -52
  187. package/src/services/workspaceProviders/index.ts +28 -14
  188. package/src/types/assets.d.ts +5 -0
  189. package/src/types/poTemplateElegant.d.ts +9 -0
  190. package/src/components/ActivityPanel.tsx +0 -49
  191. package/src/components/CaptureTray.tsx +0 -93
  192. package/src/components/CompletionSheet.tsx +0 -378
  193. package/src/components/Composer.tsx +0 -453
  194. package/src/components/DialogSheet.tsx +0 -114
  195. package/src/components/MessageActionsSheet.tsx +0 -37
  196. package/src/components/TimelineItem.tsx +0 -238
  197. package/src/components/slotProps.ts +0 -159
  198. package/src/screens/PluginsScreen.tsx +0 -97
  199. package/src/screens/SessionScreen.tsx +0 -666
  200. package/src/screens/accountBack.ts +0 -15
  201. package/src/services/accountGrants/index.ts +0 -147
  202. package/src/services/accountRoster/index.ts +0 -390
  203. package/src/services/accountTrust/index.ts +0 -261
  204. package/src/services/issuerSelection.native.ts +0 -27
package/LICENSE CHANGED
@@ -1,149 +1,110 @@
1
- License text copyright © 2017 MariaDB Corporation Ab, All Rights Reserved.
2
- "Business Source License" is a trademark of MariaDB Corporation Ab.
3
-
4
- Parameters
5
-
6
- Licensor: Agimon Pty Ltd
7
- Licensed Work: Po, the software in the Po source repository and the
8
- packages released from it, in each version released by
9
- the Licensor.
10
- The Licensed Work is (c) 2026 Agimon Pty Ltd.
11
- Material identified as third-party in the "Third-party
12
- components" section at the end of this file or in a
13
- NOTICE file, and any package or directory whose own
14
- license file grants a different license, is not part of
15
- the Licensed Work and remains under its own license.
16
- Additional Use Grant: You may make production use of the Licensed Work if
17
- your use is Eligible Use. "Eligible Use" is production use that falls
18
- within at least one of the following:
19
-
20
- (a) Personal Use. Use by an individual for their own personal purposes,
21
- and not on behalf of, or for the benefit of, an employer, client, or
22
- other Organization. Use by an individual in the course of employment
23
- or engagement by an Organization is use by that Organization.
24
-
25
- (b) Small Organization Use. Use by or on behalf of an Organization whose
26
- Annual Revenue is less than USD 1,000,000.
27
-
28
- (c) Non-profit, Education and Research Use. Use, regardless of Annual
29
- Revenue, by (i) an Organization registered or recognized as a
30
- non-profit or charitable organization under the laws of its
31
- jurisdiction, for its non-profit purposes; (ii) an accredited school,
32
- college, or university, for teaching, learning, or academic research;
33
- or (iii) a publicly funded research institution, for its research.
34
-
35
- (d) Service Provider Use. Use by a consultant, contractor, agency, or other
36
- service provider, regardless of its own Annual Revenue, solely to
37
- build, deploy, host, operate, or support the Licensed Work for a client
38
- whose own use would be Eligible Use under (a), (b), or (c). A service
39
- provider's use for its own purposes is Eligible Use only if the service
40
- provider itself qualifies under (b) or (c).
41
-
42
-
43
- Hosted services. Offering the Licensed Work to third parties as a hosted
44
- or managed service whose primary value is the Licensed Work is Eligible
45
- Use only if each such third party's own use would be Eligible Use.
46
-
47
- Definitions. "Organization" means any company, partnership, sole
48
- proprietorship, trust, association, government body, or other entity, and
49
- includes an individual acting in a business or professional capacity.
50
- "Affiliate" means any entity that directly or indirectly controls, is
51
- controlled by, or is under common control with an Organization, where
52
- "control" means ownership of more than 50% of the voting interests of an
53
- entity or the power to direct its management and policies by contract or
54
- otherwise. "Annual Revenue" means the total gross revenue of an
55
- Organization and all of its Affiliates combined, from all sources and
56
- whether or not related to the Licensed Work, for its most recently
57
- completed fiscal year, or, if it has not completed a fiscal year, for the
58
- twelve months before the use (or since its formation, if shorter),
59
- converted into US dollars at the average exchange rate for that period.
60
- Proceeds of equity or debt financing are not revenue.
61
-
62
- Threshold. If an Organization stops qualifying under (b), its existing
63
- production use remains Eligible Use for 90 days after it stops
64
- qualifying, after which it must obtain a commercial license or stop
65
- production use. Use that was Eligible Use when it occurred never requires
66
- a commercial license after the fact.
67
- Change Date: Four years from the date a version of the Licensed Work
68
- is first publicly released by the Licensor.
69
- Change License: Apache License, Version 2.0
70
-
71
- For information about alternative licensing arrangements for the Licensed
72
- Work, please visit: https://agimon.ai/licensing
73
-
74
- Notice
75
-
76
- The Business Source License (this document, or the "License") is not an Open
77
- Source license. However, the Licensed Work will eventually be made available
78
- under an Open Source License, as stated in this License.
79
-
80
- -----------------------------------------------------------------------------
81
-
82
- Business Source License 1.1
83
-
84
- Terms
85
-
86
- The Licensor hereby grants you the right to copy, modify, create derivative
87
- works, redistribute, and make non-production use of the Licensed Work. The
88
- Licensor may make an Additional Use Grant, above, permitting limited
89
- production use.
90
-
91
- Effective on the Change Date, or the fourth anniversary of the first publicly
92
- available distribution of a specific version of the Licensed Work under this
93
- License, whichever comes first, the Licensor hereby grants you rights under
94
- the terms of the Change License, and the rights granted in the paragraph
95
- above terminate.
96
-
97
- If your use of the Licensed Work does not comply with the requirements
98
- currently in effect as described in this License, you must purchase a
99
- commercial license from the Licensor, its affiliated entities, or authorized
100
- resellers, or you must refrain from using the Licensed Work.
101
-
102
- All copies of the original and modified Licensed Work, and derivative works
103
- of the Licensed Work, are subject to this License. This License applies
104
- separately for each version of the Licensed Work and the Change Date may vary
105
- for each version of the Licensed Work released by Licensor.
106
-
107
- You must conspicuously display this License on each original or modified copy
108
- of the Licensed Work. If you receive the Licensed Work in original or
109
- modified form from a third party, the terms and conditions set forth in this
110
- License apply to your use of that work.
111
-
112
- Any use of the Licensed Work in violation of this License will automatically
113
- terminate your rights under this License for the current and all other
114
- versions of the Licensed Work.
115
-
116
- This License does not grant you any right in any trademark or logo of
117
- Licensor or its affiliates (provided that you may use a trademark or logo of
118
- Licensor as expressly required by this License).
119
-
120
- TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
121
- AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
122
- EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
123
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
124
- TITLE.
125
-
126
- MariaDB hereby grants you permission to use this License’s text to license
127
- your works, and to refer to it using the trademark “Business Source License”,
128
- as long as you comply with the Covenants of Licensor below.
129
-
130
- Covenants of Licensor
131
-
132
- In consideration of the right to use this License’s text and the “Business
133
- Source License” name and trademark, Licensor covenants to MariaDB, and to all
134
- other recipients of the licensed work to be provided by Licensor:
135
-
136
- 1. To specify as the Change License the GPL Version 2.0 or any later version,
137
- or a license that is compatible with GPL Version 2.0 or a later version,
138
- where “compatible” means that software provided under the Change License can
139
- be included in a program with software provided under GPL Version 2.0 or a
140
- later version. Licensor may specify additional Change Licenses without
141
- limitation.
142
-
143
- 2. To either: (a) specify an additional grant of rights to use that does not
144
- impose any additional restriction on the right granted in this License, as
145
- the Additional Use Grant; or (b) insert the text “None”.
146
-
147
- 3. To specify a Change Date.
148
-
149
- 4. Not to modify this License in any other way.
1
+ # Functional Source License, Version 1.1, MIT Future License
2
+
3
+ ## Abbreviation
4
+
5
+ FSL-1.1-MIT
6
+
7
+ ## Notice
8
+
9
+ Copyright 2026 Agimon Pty Ltd
10
+
11
+ ## Terms and Conditions
12
+
13
+ ### Licensor ("We")
14
+
15
+ The party offering the Software under these Terms and Conditions.
16
+
17
+ ### The Software
18
+
19
+ The "Software" is each version of the software that we make available under
20
+ these Terms and Conditions, as indicated by our inclusion of these Terms and
21
+ Conditions with the Software.
22
+
23
+ ### License Grant
24
+
25
+ Subject to your compliance with this License Grant and the Patents,
26
+ Redistribution and Trademark clauses below, we hereby grant you the right to
27
+ use, copy, modify, create derivative works, publicly perform, publicly display
28
+ and redistribute the Software for any Permitted Purpose identified below.
29
+
30
+ ### Permitted Purpose
31
+
32
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
33
+ means making the Software available to others in a commercial product or
34
+ service that:
35
+
36
+ 1. substitutes for the Software;
37
+
38
+ 2. substitutes for any other product or service we offer using the Software
39
+ that exists as of the date we make the Software available; or
40
+
41
+ 3. offers the same or substantially similar functionality as the Software.
42
+
43
+ Permitted Purposes specifically include using the Software:
44
+
45
+ 1. for your internal use and access;
46
+
47
+ 2. for non-commercial education;
48
+
49
+ 3. for non-commercial research; and
50
+
51
+ 4. in connection with professional services that you provide to a licensee
52
+ using the Software in accordance with these Terms and Conditions.
53
+
54
+ ### Patents
55
+
56
+ To the extent your use for a Permitted Purpose would necessarily infringe our
57
+ patents, the license grant above includes a license under our patents. If you
58
+ make a claim against any party that the Software infringes or contributes to
59
+ the infringement of any patent, then your patent license to the Software ends
60
+ immediately.
61
+
62
+ ### Redistribution
63
+
64
+ The Terms and Conditions apply to all copies, modifications and derivatives of
65
+ the Software.
66
+
67
+ If you redistribute any copies, modifications or derivatives of the Software,
68
+ you must include a copy of or a link to these Terms and Conditions and not
69
+ remove any copyright notices provided in or with the Software.
70
+
71
+ ### Disclaimer
72
+
73
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
74
+ IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
75
+ PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
76
+
77
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
78
+ SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
79
+ EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
80
+
81
+ ### Trademarks
82
+
83
+ Except for displaying the License Details and identifying us as the origin of
84
+ the Software, you have no right under these Terms and Conditions to use our
85
+ trademarks, trade names, service marks or product names.
86
+
87
+ ## Grant of Future License
88
+
89
+ We hereby irrevocably grant you an additional license to use the Software under
90
+ the MIT license that is effective on the second anniversary of the date we make
91
+ the Software available. On or after that date, you may use the Software under
92
+ the MIT license, in which case the following will apply:
93
+
94
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
95
+ this software and associated documentation files (the "Software"), to deal in
96
+ the Software without restriction, including without limitation the rights to
97
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
98
+ of the Software, and to permit persons to whom the Software is furnished to do
99
+ so, subject to the following conditions:
100
+
101
+ The above copyright notice and this permission notice shall be included in all
102
+ copies or substantial portions of the Software.
103
+
104
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
105
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
106
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
107
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
108
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
109
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
110
+ SOFTWARE.
package/README.md CHANGED
@@ -1,162 +1,92 @@
1
1
  # Po Native
2
2
 
3
- The Po phone app for iOS and Android, built with Expo 57 and React Native 0.86. App name "Po", company iOS bundle id `ai.po.app`, Android package `ai.agimon.po`. It is private, experimental (`stage:experimental`), and built locally only: no EAS or other cloud build.
3
+ Po's experimental iOS and Android client, built with Expo and React Native. It connects to paired Po computers and hosted accounts, shares the dashboard's session stores, and mounts native plugin interfaces from each host's verified composition. Dependency versions are maintained in [`package.json`](package.json), not in this guide.
4
4
 
5
- The app pairs with one Po host over its remote-access tunnel, lists that host's sessions, shows a session transcript with a composer, and runs the host's native plugin contributions (for example po-task's task tool renderer and task graph channel) from a signed composition it downloads.
5
+ The app is named **Po**. Its iOS bundle ID is `ai.po.app`; Android remains `ai.agimon.po`. Builds use the local Expo/Xcode/Gradle scripts, not EAS.
6
6
 
7
- ## How it works
7
+ ## Trust and connection
8
8
 
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
- - **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
- - **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.
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
- - **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
- - **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.
16
- - **Styling.** `react-native-unistyles` 3.5.2 with Po's `light` and `dark` themes from `@agimon-ai/po-web-components/nativeTheme`, registered in `src/unistyles.ts` with adaptive themes. Every screen and component keeps its `StyleSheet.create` in its own file so the Unistyles Babel plugin rewrites it.
9
+ Pair a computer by scanning its QR or pasting the pairing URL, then approve on that computer. Pairing requires enrolled phone biometrics. The phone pins the host's bundle signer and uses separate P-256 identity and biometric step-up keys. Keys and host records are stored in host-specific SecureStore namespaces with `WHEN_UNLOCKED_THIS_DEVICE_ONLY`; legacy records migrate from the earlier single-host keys.
17
10
 
18
- ## Trust model
11
+ Reconnect uses the identity key and accepts a fresh tunnel key only after the pinned signer attests it over the phone's nonce. Gated actions require biometric step-up. These are software keys decrypted into JavaScript memory for signing, not Secure Enclave or StrongBox keys.
19
12
 
20
- The full model is in [Security model](../../../docs/securities.md#trusted-native-devices). In short:
13
+ Each host has its own sealed session, protocol, and HTTP channels, runtime, and composition cache. The selected phone pairing ID is not the remote federation host ID. See [host linking and account operations](docs/host-link-bridge.md) and the [security guide](../../../docs/security.md#remote-access).
21
14
 
22
- - **Pairing needs host approval and biometrics.** If the phone has no Face ID, Touch ID, or fingerprint enrolled, pairing stops with "Set up Face ID or a fingerprint to pair this phone."
23
- - **Two device keys.** After approval the app generates two P-256 keys and registers them through the sealed gateway: an identity key for silent sign-in, and a step-up key that only biometrics unlock. They live in `expo-secure-store` as `po.device.identity.v1` and `po.device.stepup.v1`; the host record (origin, trusted device id, pinned signer key and revision, label) is `po.host.v1`. All three are `WHEN_UNLOCKED_THIS_DEVICE_ONLY`.
24
- - **Reconnect.** On start the app signs in with the identity key, no QR and no host approval. It trusts the host's fresh tunnel key only after the bundle signer it pinned from the QR attests that key over the app's own nonce. A changed signer fails closed and Home shows the connect card again.
25
- - **Step-up.** Every gated action from a device-key session needs a biometric signature, on every tunnel. `fetchWithStepUp` retries a request once after a 401 that names an action.
26
- - **Revocation.** From the host UI, or from a paired phone after step-up (`device.revoke`). A quick-tunnel browser cannot revoke. Forget host requires successful remote revocation before deleting local keys; failure retains them for retry. A confirmed revocation is checkpointed so interrupted local cleanup can finish after restart. A biometric change invalidates the step-up key; pair again by QR.
27
- - **Keys are software keys.** They are decrypted into JS memory to sign. They are not Secure Enclave or StrongBox keys.
15
+ **Forget on this phone is local and works offline.** It clears that computer's pairing keys, summaries, plugins, and runtime. Revoke-only metadata remains for a later pairing with the same pinned computer; it does not retain reconnect credentials or revoke the fresh pairing. Forget does not remove account membership or unlink peers. Account removal and device revocation are separate actions with separate confirmation requirements.
28
16
 
29
- ### Trusted compositions are not sandboxed
17
+ ## Native plugins are trusted code
30
18
 
31
- A native composition is host code, one CommonJS module per plugin. The app verifies each module before running it: on every load, cached or downloaded, it checks the signed manifest against the pinned signer with the `native` bundle profile (top-level `.js` modules, each at most 4 MiB), requires the exact advertised revision, and checks that module's hash. The same revision with a different hash is refused, a signer change clears the cache, and the cache keeps at most 64 modules under `Paths.cache/po/compositions/`. It then evaluates each module with `new Function` against a frozen map of host modules (`NATIVE_HOST_MODULE_IDS` from `@agimon-ai/po-core/native`); any other `require` throws. A module that fails to load, verify, or evaluate is left out with a warning and the rest still run. That map is a compatibility boundary, not a sandbox: a verified module runs with the app's full JavaScript privileges.
19
+ The app checks a composition's signed manifest against the pinned signer with the `native` profile, requires the advertised revision, and verifies each module's hash before evaluation. Reusing a known revision with different bytes is refused. The cache is host-scoped and bounded to 64 modules; builds with the native bundle store use it, with the Expo cache as a migration fallback.
32
20
 
33
- ## Local checks
21
+ Modules are CommonJS evaluated with `new Function`. `require` resolves only the frozen `NATIVE_HOST_MODULE_IDS` map. That is a compatibility boundary, **not a sandbox**: verified code has the app's JavaScript privileges. A failed module is omitted with a warning, not executed unverified.
34
22
 
35
- ```sh
36
- pnpm install
37
- pnpm nx run-many -t lint typecheck build test -p @agimon-ai/po-native --parallel=2
38
- ```
23
+ Shared native views live in `@agimon-ai/po-native-dashboard`; components and providers live in `@agimon-ai/po-native-components`. Register Unistyles themes before importing the component library. Runtime code must not import stories.
39
24
 
40
- `build` runs the proof fixture builder and `expo export --platform all` into `dist/shell`. `build:proof` (`scripts/buildProof.mjs`) builds a small counter composition and signs it with the `native` profile; tests use it as a fixture. Node tests do not exercise native crypto, Hermes, or native modules.
25
+ ## Local development and checks
41
26
 
42
- ## Running on a device
27
+ From the repository root:
43
28
 
44
29
  ```sh
30
+ pnpm install
31
+ pnpm nx run-many -t lint typecheck build test -p @agimon-ai/po-native --parallel=2
45
32
  pnpm nx run @agimon-ai/po-native:prebuild
46
33
  pnpm --filter @agimon-ai/po-native ios:setup
47
34
  pnpm nx run @agimon-ai/po-native:ios
35
+ # Android needs JDK 17; on macOS:
48
36
  JAVA_HOME=$(/usr/libexec/java_home -v 17) pnpm nx run @agimon-ai/po-native:android
49
37
  ```
50
38
 
51
- `ios` and `android` are local Release builds. `ios:setup` installs CocoaPods 1.16.2 under `.build/gems` and the iOS commands set `GEM_HOME`, `GEM_PATH`, and `PATH` for that process only; system gems and shell configuration are untouched. The generated `ios/` and `android/` folders, Expo state, and `.build/` are gitignored and never edited by hand; signing changes come from `@agimon-ai/po-expo-signing` during prebuild.
39
+ `build` generates the signed proof fixture, then runs Expo export into `dist/shell`. `ios` and `android` are local Release builds. `ios:setup` installs CocoaPods under `.build/gems`, without changing system gems or shell configuration. Generated native projects are gitignored; signing changes belong in [`po-expo-signing`](../../expo/po-expo-signing/README.md), not hand-edited `ios/` or `android/` files.
52
40
 
53
- The company iOS build requires an `ai.po.app` provisioning profile with Push Notifications. Previous
54
- `ai.agimon.po` iOS installs are a separate app identity; rebuild and pair the company app. Native push
55
- checks the installed iOS application ID before enrollment and reads its provisioning-profile APNs
56
- environment, with a production fallback for App Store/TestFlight installs.
57
- Android remains `ai.agimon.po` with FCM. See [push setup](../../foundations/po-notification/README.md#native-push-server-credentials).
41
+ Node tests do not establish Hermes evaluation, native crypto signatures, biometric invalidation, camera scanning, push delivery, or device rendering. Colocated stories use the workspace style-system tooling. A story or source check is not human visual approval or a device acceptance test.
58
42
 
59
- ## Ad hoc builds
43
+ ## Signed local builds
60
44
 
61
45
  ```sh
62
46
  pnpm nx run @agimon-ai/po-native:ios:adhoc
63
47
  pnpm nx run @agimon-ai/po-native:android:adhoc
64
48
  ```
65
49
 
66
- Both run `scripts/buildAdHoc.mjs`, which fails before touching earlier outputs when a required variable is missing. Every command runs through `spawnSync` with an argument array, and secret values are redacted from console output and logs.
67
-
68
- - **iOS** (macOS with Xcode): build the proof fixture, `expo prebuild --clean --platform ios`, `pod install`, `xcodebuild archive`, then `-exportArchive` with a temporary `ExportOptions.plist` (`method: release-testing`, manual signing) that is deleted afterwards. Run `ios:setup` first.
69
- - **Android**: build the proof fixture, `expo prebuild --clean --platform android`, then `./gradlew assembleRelease` under JDK 17.
50
+ The build script validates required inputs before replacing earlier final artifacts. It uses argument-array commands, redacts signing secrets in logs, and does not upload anything.
70
51
 
71
- | Variable | Platform | Required | Meaning |
72
- | ------------------------------------- | -------- | -------- | ------------------------------------------------------------------------------- |
73
- | `APPLE_TEAM_ID` | iOS | yes | Team id for `appleTeamId`, `DEVELOPMENT_TEAM`, and the export plist |
74
- | `PO_NATIVE_IOS_PROFILE` | iOS | yes | Provisioning profile name; the Release target switches to manual signing |
75
- | `PO_NATIVE_IOS_CODE_SIGN_IDENTITY` | iOS | no | `CODE_SIGN_IDENTITY` and export `signingCertificate`, e.g. `Apple Distribution` |
76
- | `PO_NATIVE_ANDROID_KEYSTORE` | Android | yes | Path to the release keystore, made absolute before Gradle runs |
77
- | `PO_NATIVE_ANDROID_KEYSTORE_PASSWORD` | Android | yes | Keystore password |
78
- | `PO_NATIVE_ANDROID_KEY_ALIAS` | Android | yes | Key alias |
79
- | `PO_NATIVE_ANDROID_KEY_PASSWORD` | Android | yes | Key password |
80
- | `JAVA_HOME` | Android | no | JDK 17; on macOS it defaults to `/usr/libexec/java_home -v 17` |
52
+ | Input | Use |
53
+ | ------------------------------------- | ------------------------------------------------------------------------------ |
54
+ | `APPLE_TEAM_ID` | Required iOS signing team |
55
+ | `PO_NATIVE_IOS_PROFILE` | Required installed profile for `ai.po.app` |
56
+ | `PO_NATIVE_IOS_WIDGET_PROFILE` | Required installed profile for `ai.po.app.ExpoWidgetsTarget` |
57
+ | `PO_NATIVE_IOS_CODE_SIGN_IDENTITY` | Optional signing certificate name; TestFlight defaults to `Apple Distribution` |
58
+ | `PO_NATIVE_ANDROID_KEYSTORE` | Required Android keystore path |
59
+ | `PO_NATIVE_ANDROID_KEYSTORE_PASSWORD` | Required keystore password |
60
+ | `PO_NATIVE_ANDROID_KEY_ALIAS` | Required key alias |
61
+ | `PO_NATIVE_ANDROID_KEY_PASSWORD` | Required key password |
62
+ | `JAVA_HOME` | JDK 17; macOS scripts can resolve it through `java_home` |
81
63
 
82
- Secrets come only from these variables or the keychain. Gradle reads the Android values at build time, so none is written into the generated project.
64
+ iOS archives and exports with manual signing (`release-testing` for ad hoc). Both iOS profiles must include the `group.ai.po.app` App Group. Android runs `assembleRelease`. Secrets come from the environment or keychain, not generated project files. Outputs are `.build/adhoc/po-native.ipa` or `po-native.apk`, with `SHA256SUMS`. Private per-step logs are under `.build/adhoc/logs/`; work files are under `.build/adhoc/work/`. A failed build preserves the previous final artifact.
83
65
 
84
- **Output.** `.build/adhoc/po-native.ipa` or `.build/adhoc/po-native.apk`, plus `.build/adhoc/SHA256SUMS` covering whichever artifacts exist. Per-step logs (mode `0600`) go to `.build/adhoc/logs/<platform>/`, and intermediate files to `.build/adhoc/work/<platform>/`.
66
+ ### TestFlight export
85
67
 
86
- ## TestFlight archive and export
87
-
88
- Use an installed **App Store Connect distribution profile** for `ai.po.app`, with Push Notifications,
89
- and the matching **Apple Distribution certificate and private key** in the local keychain. A development
90
- or ad hoc profile is not interchangeable. Run `ios:setup` first. No App Store Connect API key is needed
91
- for this local export.
68
+ Install App Store Connect distribution profiles for `ai.po.app` and `ai.po.app.ExpoWidgetsTarget`, with the `group.ai.po.app` App Group on both and Push Notifications on `ai.po.app`. Install the matching Apple Distribution certificate/private key. Run `ios:setup`, then set:
92
69
 
93
70
  ```sh
94
- export APPLE_TEAM_ID="RYQ366PW4R"
71
+ export APPLE_TEAM_ID="YOUR_TEAM_ID"
95
72
  export PO_NATIVE_IOS_PROFILE="YOUR_APP_STORE_CONNECT_PROFILE"
73
+ export PO_NATIVE_IOS_WIDGET_PROFILE="YOUR_WIDGET_APP_STORE_CONNECT_PROFILE"
96
74
  export PO_NATIVE_IOS_CODE_SIGN_IDENTITY="Apple Distribution"
97
75
  export PO_NATIVE_IOS_BUILD_NUMBER="42"
98
- export PO_NATIVE_APNS_ENVIRONMENT="production"
76
+ export PO_NATIVE_IDENTITY_ISSUER="https://your-identity-home.example"
99
77
  pnpm nx run @agimon-ai/po-native:ios:testflight
100
78
  ```
101
79
 
102
- The same command is available as `pnpm --filter @agimon-ai/po-native ios:testflight`. It reuses the
103
- local iOS archive script, defaults the signing identity to `Apple Distribution`, and supplies production
104
- APNs to prebuild. An explicitly configured sandbox environment is rejected before building.
105
- `PO_NATIVE_IOS_BUILD_NUMBER` is required, becomes Expo's `ios.buildNumber`, and must increase for each
106
- submitted build. Use a valid `CFBundleVersion`, for example `42` or `1.2.3` (first component 1-9999,
107
- remaining components 0-99). The marketing version remains `version` in `app.config.ts`.
108
-
109
- Before export, the script verifies the archive's bundle ID, build number and signed production APNs
110
- entitlement. It exports with `method: app-store-connect`, `destination: export`, manual signing, and
111
- `manageAppVersionAndBuildNumber: false`. It does not upload, submit, install, create credentials, or
112
- modify the Apple portal. Upload remains a separate, explicitly approved action.
113
-
114
- TestFlight installs have no embedded provisioning profile. When the profile environment is unavailable,
115
- the app checks the native release type and registers `production` only for App Store/TestFlight builds.
116
- Other release types still require an explicit profile environment. After pairing and allowing notifications,
117
- open the app and verify `nativePush.environment: "production"` on its trusted device record in the
118
- server's `~/.po/web/trusted-devices.json`. Do not print or share the token. This confirms enrollment,
119
- not APNs delivery.
120
-
121
- **Output:** `.build/testflight/po-native.ipa` and `.build/testflight/SHA256SUMS`. The archive and dSYMs
122
- remain under `.build/testflight/work/ios/`, with private per-step logs under `.build/testflight/logs/ios/`.
123
- Existing ad hoc and Android commands keep their methods and `.build/adhoc/` outputs. A failed build
124
- keeps the previous final IPA/APK. Command/configuration tests do not verify real signing, App Store
125
- Connect acceptance, or TestFlight push delivery.
126
-
127
- ## Native stories
128
-
129
- Each screen has a story beside it (`src/screens/*.stories.tsx`), and po-task has three `*.native.stories.tsx` stories for its native task UI. They are tagged `style-system`, `mockup`, and `native`. They render through `@agimon-ai/style-system`'s native mode: this package's `style-system.config.yaml` extends the root `native-app` preset (`bundler: vite-react-native`, `unistylesConfig: src/unistyles.ts`, dark scheme, 393 by 852 viewport). Whether style-system accepts po-task's stories, which live in another package, when rendered against this app path is unverified.
130
-
131
- ## Not yet
132
-
133
- - **Activity groups are not rendered.** Only the plain host `activity` slot is; `activity.<group>` fills such as po-task's task section do not appear.
134
- - **Threads, transient tabs, and composer context are inert placeholders.** The slot props the app passes to plugins stub `renderThread`, `openTransientTab`, `closeTransientTab`, `appendComposerDraft`, `attachComposerContext`, and `attachComposerCapture`; `sendSessionFrame`, `renderSlot`, and `slotData` are inert there too.
135
- - **A session's composition mounts only if its summary is loaded when the session is opened.** A summary that arrives later does not mount it.
136
- - **Not ported from po-web:** alerts, voice handoff, dormant transcripts, thread frames, and held channels.
137
- - **`po doctor` does not show the native build.** `po sync --check` does.
138
- - **Device runtime is unverified.** No release-mode device run has confirmed that Hermes runs `new Function`, that `react-native-quick-crypto` WebCrypto ECDSA produces the P1363 signatures the host verifies, that `expo-secure-store` biometric items prompt and invalidate as expected, or that the `expo-camera` scanner works.
139
- - **Visual fidelity is BLOCKED.** The screens and stories are mockups (`mockup` tag). Rendered appearance needs human approval of the native stories before it can be claimed.
140
- - **One paired host per phone.**
141
-
142
- ## Phase 3 native grants
143
-
144
- `accountGrants` exposes `onSessionStart` and `onJobCreated` typed hooks. Same-host work returns
145
- no grant and does not contact the account service. Cross-host work gets a 30-day, non-redelegable
146
- C5 signed by the account device key with the issuer's current revocation epoch. SecureStore keeps
147
- envelopes in issuer-specific namespaces. Opening or foregrounding the app renews unexpired grants
148
- only inside the seven-day window. An epoch change never silently renews old consent. An explicit
149
- renew action may obtain new consent after refreshing account trust.
150
-
151
- `receiveGrantPause` accepts the typed work-paused event plus the authenticated reporting host id,
152
- matches it to saved work, and supplies Home's gentle rose notice. `startLiveRuntime` accepts an
153
- optional network-authenticated `federationHostId`. The local pairing record id is not that id.
154
-
155
- Cross-host session/job creation and network host-id mapping are pending phases 5 and 7. Those
156
- callers must pass the returned envelopes to the calling host, which stores them and refreshes
157
- delegated tokens. App-open renewal currently updates the phone's saved envelopes only; host
158
- handoff and automatic job resume are not mounted yet. No public host upload route is invented.
159
- The notice deliberately says permission was renewed on this phone, not that a job resumed.
160
-
161
- Notice targets: `Native/Design/Grants`, Playground, Dark, Renewing and Retry. These remain mockups.
162
- Visual fidelity is BLOCKED pending explicit user approval, and native device behavior is unverified.
80
+ Choose the actual HTTPS identity-home origin, not the example. Production builds require it. The command supplies production APNs and rejects an explicitly configured sandbox environment. Build numbers must increase for submissions and satisfy `CFBundleVersion` (for example `42` or `1.2.3`; first component 1–9999, others 0–99). The marketing version comes from `app.config.ts`.
81
+
82
+ Before export the script checks the archive's bundle ID, build number and signed production APNs entitlement. It also verifies the embedded extension's signature and bundle ID and the App Group entitlement on both targets. It uses `app-store-connect` export with manual signing. It does not create credentials, alter the Apple portal, upload, or submit. Output is `.build/testflight/po-native.ipa` with `SHA256SUMS`; archive/dSYMs and private logs remain under that directory's `work/` and `logs/` trees. Existing ad hoc outputs stay separate.
83
+
84
+ ## Push and remaining acceptance
85
+
86
+ Native push validates the installed iOS app ID and provisioning environment. App Store/TestFlight installs without an embedded profile use the native release type to select production APNs. Android uses FCM. See [server credentials](../../foundations/po-notification/README.md#native-push-server-credentials). Earlier `ai.agimon.po` iOS installs are a different identity and must be rebuilt and paired as the company app.
87
+
88
+ After pairing and granting notification permission, inspect the trusted device's enrollment on the host without printing or sharing its token. Production enrollment is not proof of APNs delivery; verify delivery on the signed installed app.
89
+
90
+ Cross-host grants are explicit, time-limited, non-redelegable consent. Phone-side renewal does not by itself prove that a host received the renewed envelope or resumed a job. Preserve that distinction in notices and acceptance reports. Historical grant targets remain `Native/Design/Grants` (Playground, Dark, Renewing, Retry); their mockup tags are not approval evidence.
91
+
92
+ The host-link guide records scoped approval evidence and unverified device behavior. Do not infer blanket visual approval, device acceptance, or full web feature parity from source, test success, or this README.
package/app.config.ts CHANGED
@@ -36,6 +36,9 @@ const config: ExpoConfig = {
36
36
  ios: {
37
37
  bundleIdentifier: 'ai.po.app',
38
38
  usesAppleSignIn: true,
39
+ infoPlist: { NSLocalNetworkUsageDescription: 'Connect to your paired Po computer on your local network.' },
40
+ // Pinned here: expo-widgets otherwise writes 'development' first and expo-notifications keeps it.
41
+ entitlements: { 'aps-environment': apnsEnvironment },
39
42
  // Export compliance answer on App Store Connect: no non-exempt encryption.
40
43
  config: { usesNonExemptEncryption: false },
41
44
  ...(iosBuildNumber ? { buildNumber: iosBuildNumber } : {}),
@@ -77,7 +80,16 @@ const config: ExpoConfig = {
77
80
  },
78
81
  ],
79
82
  '@config-plugins/react-native-webrtc',
83
+ // Xcode mods run in reverse registration order. Generate the extension before signing it.
80
84
  '@agimon-ai/po-expo-signing',
85
+ [
86
+ 'expo-widgets',
87
+ {
88
+ bundleIdentifier: 'ai.po.app.ExpoWidgetsTarget',
89
+ groupIdentifier: 'group.ai.po.app',
90
+ enablePushNotifications: true,
91
+ },
92
+ ],
81
93
  ],
82
94
  };
83
95
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file