@agimon-ai/po-template-advanced 0.0.0-alpha.72 → 0.0.0-alpha.74
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 +40 -22
- package/dist/extensions/native.mjs.map +1 -1
- package/dist/extensions/web.mjs +42 -18
- package/dist/extensions/web.mjs.map +1 -1
- package/dist/webClient.cjs +41 -17
- package/dist/webClient.cjs.map +1 -1
- package/dist/webClient.mjs +42 -18
- package/dist/webClient.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -3,7 +3,7 @@ import { View } from "react-native-unistyles/components/native/View";
|
|
|
3
3
|
import { Text } from "react-native-unistyles/components/native/Text";
|
|
4
4
|
import { SectionList } from "react-native-unistyles/components/native/SectionList";
|
|
5
5
|
import { Pressable } from "react-native-unistyles/components/native/Pressable";
|
|
6
|
-
import { ActivityIcon, AlertIcon, Badge, BranchIcon, Button, CheckIcon, EditIcon, EmptyState, FolderIcon, ForkIcon, HostTag, InfoStrip, Input, KebabIcon, Label, ListRow, LiveDuration, PlusIcon, Sheet, SheetBody, SheetContent, SheetHeader, SheetTitle, Spinner, Textarea, TrashIcon, UsersIcon, fontOf } from "@agimon-ai/po-native-components";
|
|
6
|
+
import { ActivityIcon, AlertIcon, Badge, BranchIcon, Button, CheckIcon, CountBadge, EditIcon, EmptyState, FolderIcon, ForkIcon, HostTag, InfoStrip, Input, KebabIcon, Label, ListRow, LiveDuration, PlusIcon, Sheet, SheetBody, SheetContent, SheetHeader, SheetTitle, Spinner, Textarea, TrashIcon, UsersIcon, fontOf } from "@agimon-ai/po-native-components";
|
|
7
7
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
8
8
|
import { StyleSheet } from "react-native-unistyles";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1128,9 +1128,10 @@ function SessionCard({ session, onOpen, onMenu, onSetupMenu, hostLabel, stale =
|
|
|
1128
1128
|
const tone = stale ? "quiet" : statusTone(session.status);
|
|
1129
1129
|
const name = session.name || "Untitled";
|
|
1130
1130
|
const markColor = session.active ? "green" : "faint";
|
|
1131
|
+
const waiting = stale ? 0 : session.waitingCount ?? (session.awaitingInput ? 1 : 0);
|
|
1131
1132
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(Pressable, {
|
|
1132
1133
|
accessibilityRole: "button",
|
|
1133
|
-
accessibilityLabel: `Open ${name}`,
|
|
1134
|
+
accessibilityLabel: waiting > 0 ? `Open ${name}, ${String(waiting)} waiting for you` : `Open ${name}`,
|
|
1134
1135
|
disabled: stale,
|
|
1135
1136
|
accessibilityState: { disabled: stale },
|
|
1136
1137
|
onPress: () => onOpen(session.id),
|
|
@@ -1144,41 +1145,47 @@ function SessionCard({ session, onOpen, onMenu, onSetupMenu, hostLabel, stale =
|
|
|
1144
1145
|
/* @__PURE__ */ jsxs(View, {
|
|
1145
1146
|
style: styles.cardHead,
|
|
1146
1147
|
children: [
|
|
1147
|
-
session.profile ? /* @__PURE__ */
|
|
1148
|
+
session.profile ? /* @__PURE__ */ jsxs(View, {
|
|
1148
1149
|
style: styles.avatar,
|
|
1149
1150
|
accessibilityLabel: session.profile.label,
|
|
1150
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
1151
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
1151
1152
|
style: styles.initials,
|
|
1152
1153
|
children: session.profile.initials
|
|
1153
|
-
})
|
|
1154
|
+
}), /* @__PURE__ */ jsx(CountBadge, {
|
|
1155
|
+
count: waiting,
|
|
1156
|
+
style: styles.avatarBadge
|
|
1157
|
+
})]
|
|
1154
1158
|
}) : null,
|
|
1155
1159
|
/* @__PURE__ */ jsxs(View, {
|
|
1156
1160
|
style: styles.cardText,
|
|
1157
1161
|
children: [/* @__PURE__ */ jsxs(View, {
|
|
1158
1162
|
style: styles.nameRow,
|
|
1159
|
-
children: [
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1163
|
+
children: [
|
|
1164
|
+
session.nested && session.provenance === "workflow-session" ? /* @__PURE__ */ jsx(ActivityIcon, {
|
|
1165
|
+
size: 13,
|
|
1166
|
+
color: markColor,
|
|
1167
|
+
accessibilityLabel: "workflow session"
|
|
1168
|
+
}) : session.nested && session.provenance ? /* @__PURE__ */ jsx(ForkIcon, {
|
|
1169
|
+
size: 13,
|
|
1170
|
+
color: markColor,
|
|
1171
|
+
accessibilityLabel: session.provenance === "worktree" ? "automatic per-conversation worktree" : session.provenance
|
|
1172
|
+
}) : null,
|
|
1173
|
+
/* @__PURE__ */ jsx(Text, {
|
|
1174
|
+
style: styles.name,
|
|
1175
|
+
numberOfLines: 2,
|
|
1176
|
+
children: name
|
|
1177
|
+
}),
|
|
1178
|
+
session.profile ? null : /* @__PURE__ */ jsx(CountBadge, {
|
|
1179
|
+
count: waiting,
|
|
1180
|
+
style: styles.nameBadge
|
|
1181
|
+
})
|
|
1182
|
+
]
|
|
1172
1183
|
}), /* @__PURE__ */ jsxs(View, {
|
|
1173
1184
|
style: styles.statusRow,
|
|
1174
1185
|
children: [stale ? null : session.restarting ? /* @__PURE__ */ jsx(Spinner, {
|
|
1175
1186
|
size: "small",
|
|
1176
1187
|
color: "dim",
|
|
1177
1188
|
label: "Restarting"
|
|
1178
|
-
}) : session.awaitingInput ? /* @__PURE__ */ jsx(AlertIcon, {
|
|
1179
|
-
size: 12,
|
|
1180
|
-
color: "magenta",
|
|
1181
|
-
accessibilityLabel: "Waiting for you"
|
|
1182
1189
|
}) : tone === "running" ? /* @__PURE__ */ jsx(Spinner, {
|
|
1183
1190
|
size: "small",
|
|
1184
1191
|
color: "yellow"
|
|
@@ -1722,6 +1729,17 @@ const styles = StyleSheet.create((theme) => {
|
|
|
1722
1729
|
fontWeight: theme.fontWeight.semibold,
|
|
1723
1730
|
uni__dependencies: [0]
|
|
1724
1731
|
},
|
|
1732
|
+
avatarBadge: {
|
|
1733
|
+
position: "absolute",
|
|
1734
|
+
top: -4,
|
|
1735
|
+
right: -6,
|
|
1736
|
+
borderColor: theme.colors.bg,
|
|
1737
|
+
uni__dependencies: [0]
|
|
1738
|
+
},
|
|
1739
|
+
nameBadge: {
|
|
1740
|
+
borderColor: theme.colors.bg,
|
|
1741
|
+
uni__dependencies: [0]
|
|
1742
|
+
},
|
|
1725
1743
|
cardText: {
|
|
1726
1744
|
flex: 1,
|
|
1727
1745
|
minWidth: 0,
|