@agimon-ai/po-native 0.0.1-alpha.31 → 0.0.1-alpha.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/po-native",
3
- "version": "0.0.1-alpha.31",
3
+ "version": "0.0.1-alpha.32",
4
4
  "description": "Po for iOS and Android",
5
5
  "homepage": "https://agimon.ai",
6
6
  "bugs": {
@@ -29,17 +29,17 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@agimon-ai/po-core": "0.0.0-alpha.151",
33
- "@agimon-ai/po-expo-signing": "0.0.1-alpha.31",
34
- "@agimon-ai/po-identity": "0.0.2-alpha.98",
35
- "@agimon-ai/po-native-components": "0.0.0-alpha.151",
36
- "@agimon-ai/po-native-dashboard": "0.0.0-alpha.23",
37
- "@agimon-ai/po-template-advanced": "0.0.0-alpha.151",
38
- "@agimon-ai/po-template-elegant": "0.0.0-alpha.151",
39
- "@agimon-ai/po-voice": "0.0.0-alpha.151",
40
- "@agimon-ai/po-web-components": "0.0.0-alpha.151",
41
- "@agimon-ai/po-web-dashboard": "0.0.0-alpha.151",
42
- "@agimon-ai/po-web-security": "0.0.0-alpha.151",
32
+ "@agimon-ai/po-core": "0.0.0-alpha.152",
33
+ "@agimon-ai/po-expo-signing": "0.0.1-alpha.32",
34
+ "@agimon-ai/po-identity": "0.0.2-alpha.99",
35
+ "@agimon-ai/po-native-components": "0.0.0-alpha.152",
36
+ "@agimon-ai/po-native-dashboard": "0.0.0-alpha.24",
37
+ "@agimon-ai/po-template-advanced": "0.0.0-alpha.152",
38
+ "@agimon-ai/po-template-elegant": "0.0.0-alpha.152",
39
+ "@agimon-ai/po-voice": "0.0.0-alpha.152",
40
+ "@agimon-ai/po-web-components": "0.0.0-alpha.152",
41
+ "@agimon-ai/po-web-dashboard": "0.0.0-alpha.152",
42
+ "@agimon-ai/po-web-security": "0.0.0-alpha.152",
43
43
  "@better-auth/expo": "1.7.12",
44
44
  "@config-plugins/react-native-webrtc": "15.0.2",
45
45
  "@earendil-works/chord": "1.5.1",
@@ -188,6 +188,9 @@ function RowState({
188
188
  </Button>
189
189
  );
190
190
  }
191
+ // "On" is kept for the default preset, which is what a new session loads; otherwise the card says where.
192
+ // One string: the badge lays its children out in a row, which would space "In" away from the names.
193
+ if (plugin.outsideDefault) return <StatusBadge tone="neutral">{`In ${plugin.inPresets.join(', ')}`}</StatusBadge>;
191
194
  if (plugin.setup === 'needs-setup') return <StatusBadge tone="accent">Finish setup</StatusBadge>;
192
195
  return <StatusBadge tone="ok">On</StatusBadge>;
193
196
  }
@@ -68,6 +68,9 @@ const PLUGINS: readonly PluginEntry[] = [
68
68
  description: 'Lets Po hand parts of a big job to helpers that work at the same time.',
69
69
  icon: 'users',
70
70
  install: 'installed',
71
+ // In a preset that is not the default: the card names it instead of saying On.
72
+ inPresets: ['Research'],
73
+ outsideDefault: true,
71
74
  },
72
75
  {
73
76
  ...SCHEDULE,
@@ -1,4 +1,10 @@
1
- import { catalogEntries, destinationOf, presetSummaries, splitHostId } from '@agimon-ai/po-web-dashboard/core';
1
+ import {
2
+ catalogEntries,
3
+ destinationOf,
4
+ installReadLost,
5
+ presetSummaries,
6
+ splitHostId,
7
+ } from '@agimon-ai/po-web-dashboard/core';
2
8
  import type {
3
9
  CatalogLayer,
4
10
  ExternalPluginsView,
@@ -25,8 +31,6 @@ import {
25
31
  */
26
32
 
27
33
  const INSTALL_POLL_MS = 1500;
28
- /** Status reads in a row that may fail before the screen stops waiting: the computer restarted or is gone. */
29
- const INSTALL_LOST_AFTER = 8;
30
34
  const SETTLED: ReadonlySet<InstallOperation['state']> = new Set(['succeeded', 'failed', 'cancelled']);
31
35
 
32
36
  type Edit = { ok: true } | { ok: false; error: string };
@@ -71,10 +75,7 @@ export function usePluginMarketplace(hostId?: string, hostLabel = 'your computer
71
75
  void readInstall(id, hostId).then((read) => {
72
76
  if (!('operation' in read)) {
73
77
  // A computer that restarted has forgotten the install. Stop waiting and show what it reports now.
74
- const missed = (missedReads.current.get(id) ?? 0) + 1;
75
- missedReads.current.set(id, missed);
76
- if (missed < INSTALL_LOST_AFTER) return;
77
- missedReads.current.delete(id);
78
+ if (!installReadLost(missedReads.current, id)) return;
78
79
  setInstalls((current) =>
79
80
  Object.fromEntries(Object.entries(current).filter(([, operation]) => operation.id !== id)),
80
81
  );