@agimon-ai/po-team 0.0.0-alpha.192 → 0.0.0-alpha.194
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/dist/extensions/native.mjs +26 -19
- package/dist/extensions/native.mjs.map +1 -1
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/extensions/web.mjs +57 -35
- package/dist/extensions/web.mjs.map +1 -1
- package/dist/po-runtime-identity.json +1 -1
- package/package.json +22 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createApiClient, defineActivityGroup, defineApiRoutes, defineChannelFile, defineFill, defineNativePlugin, defineSessionStore, defineSlot, defineToolRenderer, nativeApiTransport, sessionApiAddress } from "@agimon-ai/po-core/native";
|
|
2
|
-
import { AgentAvatar, ArrowRightIcon, Badge, Button, ChevronDownIcon, Dot, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, Input, KebabIcon, ListRow, LiveDuration, MessageItem, MessageItemBody, MessageItemHeader, MessageItemStatus, Panel, STATUS_EDGE, SegmentedControl, SendIcon, Sheet, SheetBody, SheetContent, SheetHeader, SheetTitle, StatusBadge, Textarea, UsersIcon, fontOf, toolTone } from "@agimon-ai/po-native-components";
|
|
2
|
+
import { AgentAvatar, ArrowRightIcon, Badge, Button, ChevronDownIcon, Dot, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, EmptyState, Input, KebabIcon, ListRow, LiveDuration, MessageItem, MessageItemBody, MessageItemHeader, MessageItemStatus, Panel, STATUS_EDGE, SearchIcon, SegmentedControl, SendIcon, Sheet, SheetBody, SheetContent, SheetHeader, SheetTitle, StatusBadge, Textarea, UsersIcon, fontOf, toolTone } from "@agimon-ai/po-native-components";
|
|
3
3
|
import { createElement, useCallback, useEffect, useState, useSyncExternalStore } from "react";
|
|
4
4
|
import { View } from "react-native-unistyles/components/native/View";
|
|
5
5
|
import { Text } from "react-native-unistyles/components/native/Text";
|
|
@@ -650,7 +650,7 @@ function CompactAgents({ now, items, stoppingRunId, stoppingRunIds = [], menuRun
|
|
|
650
650
|
accessibilityRole: "header",
|
|
651
651
|
style: styles$5.heading,
|
|
652
652
|
children: "Agents · this session"
|
|
653
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
653
|
+
}), items.length === 0 ? null : /* @__PURE__ */ jsx(Button, {
|
|
654
654
|
variant: "primary",
|
|
655
655
|
testID: "compact-agent-launch",
|
|
656
656
|
onPress: () => onAction("launch"),
|
|
@@ -662,15 +662,15 @@ function CompactAgents({ now, items, stoppingRunId, stoppingRunIds = [], menuRun
|
|
|
662
662
|
children: items.length === 0 ? "No runs yet" : tally
|
|
663
663
|
})]
|
|
664
664
|
}),
|
|
665
|
-
ListEmptyComponent: /* @__PURE__ */
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
}
|
|
665
|
+
ListEmptyComponent: /* @__PURE__ */ jsx(EmptyState, {
|
|
666
|
+
icon: /* @__PURE__ */ jsx(UsersIcon, { size: 20 }),
|
|
667
|
+
title: "No runs yet",
|
|
668
|
+
description: "Start an agent run to get help with your work.",
|
|
669
|
+
action: {
|
|
670
|
+
label: "New agent run",
|
|
671
|
+
onAction: () => onAction("launch"),
|
|
672
|
+
testId: "compact-agent-launch"
|
|
673
|
+
}
|
|
674
674
|
}),
|
|
675
675
|
renderItem: ({ item }) => /* @__PURE__ */ jsx(CompactRun, {
|
|
676
676
|
item,
|
|
@@ -792,11 +792,6 @@ const styles$5 = StyleSheet.create((theme) => {
|
|
|
792
792
|
minHeight: 44,
|
|
793
793
|
alignSelf: "flex-start"
|
|
794
794
|
},
|
|
795
|
-
empty: {
|
|
796
|
-
gap: theme.spacing(2),
|
|
797
|
-
paddingVertical: theme.spacing(3),
|
|
798
|
-
uni__dependencies: [0]
|
|
799
|
-
},
|
|
800
795
|
fact: {
|
|
801
796
|
flexDirection: "row",
|
|
802
797
|
gap: theme.spacing(3),
|
|
@@ -959,6 +954,7 @@ function AgentCatalog({ sessionId }) {
|
|
|
959
954
|
if (sessionId !== null && state.open) return loadCatalog(sessionId);
|
|
960
955
|
}, [sessionId, state.open]);
|
|
961
956
|
if (sessionId === null || !state.open) return null;
|
|
957
|
+
const shown = filterCatalog(state.agents, filter);
|
|
962
958
|
return /* @__PURE__ */ jsx(Sheet, {
|
|
963
959
|
open: true,
|
|
964
960
|
onOpenChange: (open) => {
|
|
@@ -993,11 +989,23 @@ function AgentCatalog({ sessionId }) {
|
|
|
993
989
|
style: styles$4.error,
|
|
994
990
|
children: state.warning
|
|
995
991
|
}) : null,
|
|
996
|
-
|
|
992
|
+
shown.map((item) => /* @__PURE__ */ jsx(ListRow, {
|
|
997
993
|
title: item.name,
|
|
998
994
|
description: item.description || agentMeta(item),
|
|
999
995
|
onPress: () => setAgent(item)
|
|
1000
|
-
}, item.name))
|
|
996
|
+
}, item.name)),
|
|
997
|
+
!state.loading && shown.length === 0 && filter.trim() !== "" ? /* @__PURE__ */ jsx(EmptyState, {
|
|
998
|
+
testID: "catalog-no-match",
|
|
999
|
+
size: "compact",
|
|
1000
|
+
surface: "plain",
|
|
1001
|
+
icon: /* @__PURE__ */ jsx(SearchIcon, { size: 16 }),
|
|
1002
|
+
title: "No matching agents",
|
|
1003
|
+
description: "Try another name.",
|
|
1004
|
+
secondaryAction: {
|
|
1005
|
+
label: "Clear filter",
|
|
1006
|
+
onAction: () => setFilter("")
|
|
1007
|
+
}
|
|
1008
|
+
}) : null
|
|
1001
1009
|
]
|
|
1002
1010
|
}) })] })
|
|
1003
1011
|
});
|
|
@@ -1620,7 +1628,6 @@ var agents_native_default = defineActivityGroup({
|
|
|
1620
1628
|
keys: "a r",
|
|
1621
1629
|
icon: () => createElement(UsersIcon),
|
|
1622
1630
|
statusKey: "po-team-agents",
|
|
1623
|
-
order: 10,
|
|
1624
1631
|
transientTab: subagentsTab,
|
|
1625
1632
|
activeSource: {
|
|
1626
1633
|
subscribe(listener) {
|