@agimon-ai/po-native 0.0.1-alpha.8 → 0.0.1-alpha.80
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.
- package/LICENSE +110 -149
- package/README.md +50 -120
- package/app.config.ts +12 -0
- package/assets/cta-renew.png +0 -0
- package/assets/cta-sign-in.png +0 -0
- package/assets/onboarding/ink-day.webp +0 -0
- package/assets/onboarding/ink-night.webp +0 -0
- package/assets/onboarding/welcome-pos-night.png +0 -0
- package/assets/onboarding/welcome-pos.png +0 -0
- package/assets/po-avatars/dev.png +0 -0
- package/assets/po-avatars/marketing.png +0 -0
- package/assets/po-avatars/personal.png +0 -0
- package/assets/po-avatars/po.png +0 -0
- package/assets/po-avatars/sales.png +0 -0
- package/assets/po-cards/dev-night.webp +0 -0
- package/assets/po-cards/dev.webp +0 -0
- package/assets/po-cards/marketing-night.webp +0 -0
- package/assets/po-cards/marketing.webp +0 -0
- package/assets/po-cards/personal-night.webp +0 -0
- package/assets/po-cards/personal.webp +0 -0
- package/assets/po-cards/po-night.webp +0 -0
- package/assets/po-cards/po.webp +0 -0
- package/assets/po-cards/sales-night.webp +0 -0
- package/assets/po-cards/sales.webp +0 -0
- package/generated/richAssets.json +1 -1
- package/metro.config.cjs +4 -0
- package/modules/po-bundle-store/android/build.gradle +15 -0
- package/modules/po-bundle-store/android/src/main/java/expo/modules/pobundlestore/PoBundleStoreModule.kt +66 -0
- package/modules/po-bundle-store/expo-module.config.json +5 -0
- package/modules/po-bundle-store/index.ts +30 -0
- package/modules/po-bundle-store/ios/PoBundleStore.podspec +16 -0
- package/modules/po-bundle-store/ios/PoBundleStoreModule.swift +81 -0
- package/modules/po-lan-tls/android/build.gradle +20 -0
- package/modules/po-lan-tls/android/src/main/java/expo/modules/polantls/PoLanTlsModule.kt +521 -0
- package/modules/po-lan-tls/expo-module.config.json +5 -0
- package/modules/po-lan-tls/index.ts +538 -0
- package/modules/po-lan-tls/ios/PoLanTls.podspec +17 -0
- package/modules/po-lan-tls/ios/PoLanTlsModule.swift +593 -0
- package/package.json +16 -12
- package/src/adapters/remoteHttp.ts +47 -8
- package/src/adapters/remoteSocket.ts +55 -51
- package/src/app/AccountRoute.tsx +269 -654
- package/src/app/App.tsx +2076 -819
- package/src/app/GrantNotices.tsx +51 -6
- package/src/app/HostBackdrop.tsx +55 -0
- package/src/app/HostsRoutes.tsx +153 -28
- package/src/app/OnboardingRoute.tsx +172 -0
- package/src/app/SessionSharingRoute.tsx +204 -0
- package/src/app/TeamRoute.tsx +111 -0
- package/src/app/activityLoads.ts +32 -0
- package/src/app/appearance.ts +53 -5
- package/src/app/bundledPlugins.ts +8 -0
- package/src/app/cloudRuntime.ts +217 -67
- package/src/app/firstSteps.ts +41 -0
- package/src/app/homeState.ts +7 -3
- package/src/app/hostRuntimes.ts +430 -57
- package/src/app/liveRuntime.ts +318 -156
- package/src/app/locale.ts +57 -0
- package/src/app/nativeTemplate.tsx +45 -19
- package/src/app/pickSettingsAvatar.ts +39 -0
- package/src/app/railWorkspaces.ts +15 -8
- package/src/app/sessionAvatars.ts +52 -0
- package/src/app/useHome.ts +53 -16
- package/src/components/ActivitySheet.stories.tsx +3 -3
- package/src/components/ActivitySheet.tsx +68 -41
- package/src/components/CompletionSheet.stories.tsx +8 -6
- package/src/components/ConnectCard.tsx +26 -12
- package/src/components/ContextFace.stories.tsx +1 -1
- package/src/components/ContextFace.tsx +53 -30
- package/src/components/DashboardTiles.tsx +6 -2
- package/src/components/DialogSheet.stories.tsx +1 -1
- package/src/components/GrantNotice.tsx +31 -41
- package/src/components/MessageActionsSheet.stories.tsx +2 -5
- package/src/components/RestoreCard.tsx +7 -5
- package/src/components/ResumeSheetView.tsx +11 -5
- package/src/components/SessionChoicesView.tsx +9 -2
- package/src/components/SessionOptionsSheet.tsx +128 -42
- package/src/components/SessionSheets.stories.tsx +121 -33
- package/src/components/SessionSheets.tsx +286 -50
- package/src/components/SocialSignInButton.tsx +2 -1
- package/src/components/TabBar.tsx +7 -1
- package/src/components/WakePeriodView.tsx +89 -0
- package/src/components/contextRows.ts +6 -1
- package/src/components/homeApps.ts +1 -38
- package/src/components/liveActivity/SessionActivity.stories.tsx +149 -0
- package/src/components/richActivity/AuthorMediaHost.tsx +82 -95
- package/src/components/richActivity/AuthorVideoTransport.stories.tsx +95 -0
- package/src/components/richActivity/AuthorVideoTransport.tsx +154 -0
- package/src/components/richActivity/ImageViewer.tsx +5 -1
- package/src/components/richActivity/McpAppChrome.tsx +14 -11
- package/src/components/richActivity/McpAppView.tsx +25 -15
- package/src/components/richActivity/NativeAuthorCaptureSurface.tsx +3 -1
- package/src/components/richActivity/NativeAuthorHtmlView.tsx +6 -1
- package/src/components/richActivity/createRichActivityRenderers.tsx +187 -23
- package/src/components/richActivity/isolatedContent.ts +57 -4
- package/src/index.tsx +6 -0
- package/src/screens/AccountHosts.stories.tsx +51 -0
- package/src/screens/AccountOnboarding.stories.tsx +67 -3
- package/src/screens/AccountScreen.tsx +502 -194
- package/src/screens/AppearanceScreen.tsx +119 -55
- package/src/screens/AuthoringDesign.stories.tsx +420 -0
- package/src/screens/ClientDevices.tsx +8 -4
- package/src/screens/ClientDevicesView.tsx +62 -19
- package/src/screens/ComposerOptionsDesign.stories.tsx +5 -5
- package/src/screens/ContributedSettingsScreen.tsx +65 -24
- package/src/screens/ConversationDesign.stories.tsx +1 -2
- package/src/screens/GitRemoteScreen.tsx +60 -28
- package/src/screens/GlobalSettings.stories.tsx +36 -0
- package/src/screens/GlobalSettings.tsx +172 -0
- package/src/screens/Grants.stories.tsx +198 -3
- package/src/screens/HomeComputers.stories.tsx +41 -45
- package/src/screens/HomeDesign.stories.tsx +335 -0
- package/src/screens/HomeScreen.stories.tsx +17 -161
- package/src/screens/HomeScreen.tsx +339 -265
- package/src/screens/HostDrawer.stories.tsx +35 -3
- package/src/screens/HostDrawer.tsx +50 -12
- package/src/screens/HostedOnboarding.tsx +842 -0
- package/src/screens/HostedOnboardingDesign.stories.tsx +358 -0
- package/src/screens/HostsView.tsx +235 -50
- package/src/screens/ImagesScreen.tsx +33 -11
- package/src/screens/LanguageScreen.tsx +48 -0
- package/src/screens/LargeContentDesign.stories.tsx +2 -2
- package/src/screens/McpServersScreen.tsx +84 -37
- package/src/screens/MetricsScreen.tsx +147 -63
- package/src/screens/MultiHostDesign.stories.tsx +1 -1
- package/src/screens/NativeListsDesign.stories.tsx +67 -15
- package/src/screens/PairingScreen.stories.tsx +16 -1
- package/src/screens/PairingScreen.tsx +13 -10
- package/src/screens/PluginActionsDesign.stories.tsx +1 -2
- package/src/screens/PluginCatalogScreen.tsx +324 -0
- package/src/screens/PluginDetailScreen.tsx +365 -0
- package/src/screens/PluginMarketplaceDesign.stories.tsx +367 -0
- package/src/screens/PluginOnboardingScreen.tsx +202 -0
- package/src/screens/PresetsScreen.tsx +256 -0
- package/src/screens/ProvidersScreen.tsx +135 -53
- package/src/screens/RemoteControlScreen.tsx +91 -110
- package/src/screens/SessionActionsDesign.stories.tsx +2 -3
- package/src/screens/SessionLifecycleDesign.stories.tsx +221 -0
- package/src/screens/SessionListScreen.tsx +35 -7
- package/src/screens/SessionScreen.stories.tsx +121 -6
- package/src/screens/SessionSharing.stories.tsx +78 -0
- package/src/screens/SessionSharingView.tsx +276 -0
- package/src/screens/SettingsDirectory.stories.tsx +270 -0
- package/src/screens/SettingsFields.tsx +20 -9
- package/src/screens/SettingsRound2Design.stories.tsx +3 -3
- package/src/screens/SettingsScreen.stories.tsx +86 -38
- package/src/screens/SettingsScreen.tsx +176 -62
- package/src/screens/Team.stories.tsx +56 -0
- package/src/screens/TeamView.tsx +357 -0
- package/src/screens/WorkspaceProviders.tsx +36 -15
- package/src/screens/WorkspaceProvidersSection.tsx +43 -29
- package/src/screens/WorkspaceScreen.tsx +44 -10
- package/src/screens/WorkspaceSettingsScreen.tsx +194 -74
- package/src/screens/homeModel.ts +82 -34
- package/src/screens/localPlugins.ts +46 -0
- package/src/screens/pluginModel.tsx +81 -0
- package/src/screens/usePluginMarketplace.ts +251 -0
- package/src/services/accountClient/index.ts +79 -272
- package/src/services/apiTransport/index.ts +70 -25
- package/src/services/bundleCache/index.ts +35 -0
- package/src/services/bundleUpdates/index.ts +128 -27
- package/src/services/calendarTargets/index.ts +5 -1
- package/src/services/cloudHosts/index.ts +125 -12
- package/src/services/connection/index.ts +24 -16
- package/src/services/deviceTrust/index.ts +209 -52
- package/src/services/hostActions/index.ts +113 -31
- package/src/services/hostLinkBroker/index.ts +36 -16
- package/src/services/hostModules/index.ts +47 -1
- package/src/services/hostSnapshots/index.ts +3 -0
- package/src/services/liveActivity/SessionActivity.ios.tsx +108 -0
- package/src/services/liveActivity/index.ios.ts +216 -0
- package/src/services/liveActivity/index.ts +6 -0
- package/src/services/liveActivity/lifecycle.ts +253 -0
- package/src/services/logExport/index.ts +4 -1
- package/src/services/nativeAudio/index.ts +10 -4
- package/src/services/nativePush/index.ts +9 -16
- package/src/services/pairing/index.ts +86 -28
- package/src/services/pluginRuntime/index.ts +28 -23
- package/src/services/relayTransport/index.ts +258 -0
- package/src/services/relayTransport/route.ts +19 -0
- package/src/services/requestCache/index.ts +70 -0
- package/src/services/requestCache/type.ts +6 -0
- package/src/services/sessionProfiles/index.ts +2 -1
- package/src/services/sessionRuntime/index.ts +1 -1
- package/src/services/sessionTap.ts +47 -0
- package/src/services/settingsApi/index.ts +104 -52
- package/src/services/workspaceProviders/index.ts +28 -14
- package/src/types/assets.d.ts +5 -0
- package/src/types/poTemplateElegant.d.ts +9 -0
- package/src/components/ActivityPanel.tsx +0 -49
- package/src/components/CaptureTray.tsx +0 -93
- package/src/components/CompletionSheet.tsx +0 -378
- package/src/components/Composer.tsx +0 -453
- package/src/components/DialogSheet.tsx +0 -114
- package/src/components/MessageActionsSheet.tsx +0 -37
- package/src/components/TimelineItem.tsx +0 -238
- package/src/components/slotProps.ts +0 -159
- package/src/screens/PluginsScreen.tsx +0 -97
- package/src/screens/SessionScreen.tsx +0 -666
- package/src/screens/accountBack.ts +0 -15
- package/src/services/accountGrants/index.ts +0 -147
- package/src/services/accountRoster/index.ts +0 -390
- package/src/services/accountTrust/index.ts +0 -261
- package/src/services/issuerSelection.native.ts +0 -27
package/LICENSE
CHANGED
|
@@ -1,149 +1,110 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
Terms
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
##
|
|
7
|
+
## Trust and connection
|
|
8
8
|
|
|
9
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
17
|
+
## Native plugins are trusted code
|
|
30
18
|
|
|
31
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
25
|
+
## Local development and checks
|
|
41
26
|
|
|
42
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
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
|
-
|
|
|
72
|
-
| ------------------------------------- |
|
|
73
|
-
| `APPLE_TEAM_ID` | iOS
|
|
74
|
-
| `PO_NATIVE_IOS_PROFILE` |
|
|
75
|
-
| `
|
|
76
|
-
| `
|
|
77
|
-
| `
|
|
78
|
-
| `
|
|
79
|
-
| `
|
|
80
|
-
| `
|
|
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
|
|
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
|
-
|
|
66
|
+
### TestFlight export
|
|
85
67
|
|
|
86
|
-
|
|
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="
|
|
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
|
|
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
|
|
103
|
-
|
|
104
|
-
APNs
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|