@deepagents/devtool-history 7.82.0 → 7.83.1
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/index.d.ts +17 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -72
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { AgentHistoryItem, ChildProgress, ConversationStatus } from '@deepagents/experimental/zukhruf';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ConversationOwnerEvent } from '@deepagents/experimental/zukhruf/http';
|
|
4
|
+
import type { ScheduledChange } from '@deepagents/experimental/zukhruf/schedules';
|
|
4
5
|
export type { ConversationStatus } from '@deepagents/experimental/zukhruf';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
export type ConversationTitleEvent = {
|
|
13
|
-
type: 'change';
|
|
14
|
-
resource: 'conversation';
|
|
15
|
-
id: string;
|
|
16
|
-
title: string;
|
|
17
|
-
};
|
|
18
|
-
export type ConversationEvent = ConversationStatusEvent | ConversationTitleEvent;
|
|
19
|
-
export type RuntimeEvent = OwnerEvent;
|
|
6
|
+
/** One event of the runtime's `GET /events`, as `ZukhrufChatTransport.events()` yields it. */
|
|
7
|
+
export type RuntimeEvent = {
|
|
8
|
+
readonly type: 'ready';
|
|
9
|
+
} | ConversationOwnerEvent | Exclude<ScheduledChange, {
|
|
10
|
+
type: 'reset';
|
|
11
|
+
}>;
|
|
20
12
|
export declare function conversationName(record: Pick<AgentHistoryItem, 'chatId' | 'title' | 'preview'>): string;
|
|
21
13
|
export declare function conversationStatusLabel(status: ConversationStatus): "active" | "approval" | "error" | "idle" | "input";
|
|
22
|
-
export declare function RuntimeEventsProvider({
|
|
23
|
-
|
|
14
|
+
export declare function RuntimeEventsProvider({ events, onEvent, history, children, }: {
|
|
15
|
+
/**
|
|
16
|
+
* Reads the runtime's events until `signal` aborts, such as
|
|
17
|
+
* `(options) => transport.events(options)`. A new function reopens the
|
|
18
|
+
* stream, so keep it stable across renders.
|
|
19
|
+
*/
|
|
20
|
+
events: ((options: {
|
|
21
|
+
signal: AbortSignal;
|
|
22
|
+
}) => AsyncIterable<RuntimeEvent>) | undefined;
|
|
24
23
|
onEvent: (event: RuntimeEvent) => void;
|
|
25
24
|
history?: readonly AgentHistoryItem[];
|
|
26
25
|
children: ReactNode;
|
|
@@ -31,7 +30,6 @@ export declare function ChildProgressList({ treeId, snapshot, }: {
|
|
|
31
30
|
treeId: string;
|
|
32
31
|
snapshot?: readonly ChildProgress[];
|
|
33
32
|
}): import("react").JSX.Element | null;
|
|
34
|
-
export declare function isConversationEvent(event: RuntimeEvent): event is ConversationEvent;
|
|
35
33
|
declare function HistoryRoot({ activeChatId, onSelect, className, children, }: {
|
|
36
34
|
activeChatId: string | undefined;
|
|
37
35
|
onSelect: (history: AgentHistoryItem) => void;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../src/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,SAAS,EAOf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EACV,gBAAgB,EAEhB,aAAa,EACb,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../src/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,SAAS,EAOf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EACV,gBAAgB,EAEhB,aAAa,EACb,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,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AAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAYA;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,QAAQ,GACT,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAMA;AAED,iBAAS,kBAAkB,CAAC,EAC1B,OAAO,EACP,SAAS,EACT,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,gBAAgB,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAmBA;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,QAAQ,GACT,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAMA;AAED,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,MAAM,GACP,EAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,QAAQ,CAAC,+BA8B7C;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,+BAYzD;AAOD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,UAErD;AAED,eAAO,MAAM,OAAO;aAClB,IAAI;aACJ,IAAI;aACJ,WAAW;aACX,KAAK;CACG,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ function conversationStatusLabel(status) {
|
|
|
34
34
|
var ConversationStatusContext = createContext(null);
|
|
35
35
|
var RuntimeHistoryContext = createContext([]);
|
|
36
36
|
function RuntimeEventsProvider({
|
|
37
|
-
|
|
37
|
+
events,
|
|
38
38
|
onEvent,
|
|
39
39
|
history = [],
|
|
40
40
|
children
|
|
@@ -42,24 +42,20 @@ function RuntimeEventsProvider({
|
|
|
42
42
|
const [statuses, setStatuses] = useState(/* @__PURE__ */ new Map());
|
|
43
43
|
const notify = useEffectEvent(onEvent);
|
|
44
44
|
useEffect(() => {
|
|
45
|
-
if (!
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
const event
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
45
|
+
if (!events) return;
|
|
46
|
+
const abort = new AbortController();
|
|
47
|
+
void (async () => {
|
|
48
|
+
for await (const event of events({ signal: abort.signal })) {
|
|
49
|
+
if (event.type === "ready") {
|
|
50
|
+
setStatuses(/* @__PURE__ */ new Map());
|
|
51
|
+
} else if ("status" in event) {
|
|
52
|
+
setStatuses((previous) => new Map(previous).set(event.id, event));
|
|
53
|
+
}
|
|
54
|
+
notify(event);
|
|
54
55
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return () => {
|
|
59
|
-
source.removeEventListener("message", handleEvent);
|
|
60
|
-
source.close();
|
|
61
|
-
};
|
|
62
|
-
}, [href]);
|
|
56
|
+
})().catch((error) => console.error(error));
|
|
57
|
+
return () => abort.abort();
|
|
58
|
+
}, [events]);
|
|
63
59
|
return /* @__PURE__ */ jsx(ConversationStatusContext, { value: statuses, children: /* @__PURE__ */ jsx(RuntimeHistoryContext, { value: history, children }) });
|
|
64
60
|
}
|
|
65
61
|
function useConversationStatus(chatId, snapshot) {
|
|
@@ -132,59 +128,6 @@ function ChildProgressList({
|
|
|
132
128
|
}) })
|
|
133
129
|
] });
|
|
134
130
|
}
|
|
135
|
-
function isConversationEvent(event) {
|
|
136
|
-
if (event.type !== "change" || event.resource !== "conversation") {
|
|
137
|
-
return false;
|
|
138
|
-
}
|
|
139
|
-
if (event.title !== void 0) {
|
|
140
|
-
return typeof event.title === "string" && event.status === void 0 && event.child === void 0;
|
|
141
|
-
}
|
|
142
|
-
return isConversationStatus(event.status) && (event.child === void 0 || isChildProgress(event.child) && event.child.chatId === event.id);
|
|
143
|
-
}
|
|
144
|
-
function parseRuntimeEvent(data) {
|
|
145
|
-
let event;
|
|
146
|
-
try {
|
|
147
|
-
event = JSON.parse(data);
|
|
148
|
-
} catch {
|
|
149
|
-
return void 0;
|
|
150
|
-
}
|
|
151
|
-
if (!isRecord(event) || typeof event.type !== "string") return void 0;
|
|
152
|
-
if (event.type === "ready") return { type: "ready" };
|
|
153
|
-
if (event.type !== "change" || typeof event.resource !== "string" || !event.resource || typeof event.id !== "string" || !event.id) {
|
|
154
|
-
return void 0;
|
|
155
|
-
}
|
|
156
|
-
const change = {
|
|
157
|
-
...event,
|
|
158
|
-
type: "change",
|
|
159
|
-
resource: event.resource,
|
|
160
|
-
id: event.id
|
|
161
|
-
};
|
|
162
|
-
if (change.resource === "conversation" && !isConversationEvent(change)) {
|
|
163
|
-
return void 0;
|
|
164
|
-
}
|
|
165
|
-
return change;
|
|
166
|
-
}
|
|
167
|
-
function isConversationStatus(value) {
|
|
168
|
-
if (!isRecord(value) || typeof value.type !== "string") return false;
|
|
169
|
-
if (value.type === "idle" || value.type === "systemError") return true;
|
|
170
|
-
return value.type === "active" && Array.isArray(value.activeFlags) && value.activeFlags.every(
|
|
171
|
-
(flag) => flag === "waitingOnApproval" || flag === "waitingOnUserInput"
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
function isRecord(value) {
|
|
175
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
176
|
-
}
|
|
177
|
-
function isChildProgress(value) {
|
|
178
|
-
if (!isRecord(value) || !isRecord(value.activities) || !["chatId", "treeId", "path", "parentChatId", "declarationName"].every(
|
|
179
|
-
(key) => typeof value[key] === "string"
|
|
180
|
-
) || typeof value.state !== "string" || !Object.hasOwn(childStateLabels, value.state))
|
|
181
|
-
return false;
|
|
182
|
-
return Object.entries(value.activities).every(
|
|
183
|
-
([kind, activity]) => Object.hasOwn(activityLabels, kind) && isRecord(activity) && activity.type === kind && typeof activity.at === "number" && Number.isFinite(activity.at) && (activity.outcome === void 0 || activity.outcome === "completed" || activity.outcome === "failed" || activity.outcome === "cancelled") && ["id", "actorPath", "targetPath", "streamId"].every(
|
|
184
|
-
(key) => typeof activity[key] === "string"
|
|
185
|
-
)
|
|
186
|
-
);
|
|
187
|
-
}
|
|
188
131
|
var HistoryContext = createContext(null);
|
|
189
132
|
function useHistoryContext() {
|
|
190
133
|
const context = use(HistoryContext);
|
|
@@ -310,7 +253,6 @@ export {
|
|
|
310
253
|
conversationName,
|
|
311
254
|
conversationStatusLabel,
|
|
312
255
|
formatTimestamp,
|
|
313
|
-
isConversationEvent,
|
|
314
256
|
useConversationStatus
|
|
315
257
|
};
|
|
316
258
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import { cn } from 'cn';\nimport {\n CircleAlertIcon,\n CircleDotIcon,\n CirclePauseIcon,\n MessageCircleQuestionIcon,\n MessageSquareIcon,\n} from 'lucide-react';\nimport {\n type ReactNode,\n createContext,\n use,\n useEffect,\n useEffectEvent,\n useMemo,\n useState,\n} from 'react';\n\nimport type {\n AgentHistoryItem,\n ChildActivity,\n ChildProgress,\n ConversationStatus,\n} from '@deepagents/experimental/zukhruf';\nimport type { OwnerEvent } from '@deepagents/experimental/zukhruf/http';\n\nexport type { ConversationStatus } from '@deepagents/experimental/zukhruf';\n\nexport type ConversationStatusEvent = {\n type: 'change';\n resource: 'conversation';\n id: string;\n status: ConversationStatus;\n child?: ChildProgress;\n};\n\nexport type ConversationTitleEvent = {\n type: 'change';\n resource: 'conversation';\n id: string;\n title: string;\n};\n\nexport type ConversationEvent =\n ConversationStatusEvent | ConversationTitleEvent;\n\nexport type RuntimeEvent = OwnerEvent;\n\nexport function conversationName(\n record: Pick<AgentHistoryItem, 'chatId' | 'title' | 'preview'>,\n) {\n return record.title ?? record.preview ?? record.chatId;\n}\n\nexport function conversationStatusLabel(status: ConversationStatus) {\n switch (status.type) {\n case 'idle':\n return 'idle';\n case 'systemError':\n return 'error';\n case 'active':\n if (status.activeFlags.includes('waitingOnApproval')) return 'approval';\n if (status.activeFlags.includes('waitingOnUserInput')) return 'input';\n return 'active';\n }\n}\n\ntype LiveStatuses = ReadonlyMap<string, ConversationStatusEvent>;\n\nconst ConversationStatusContext = createContext<LiveStatuses | null>(null);\nconst RuntimeHistoryContext = createContext<readonly AgentHistoryItem[]>([]);\n\nexport function RuntimeEventsProvider({\n href,\n onEvent,\n history = [],\n children,\n}: {\n href: string | undefined;\n onEvent: (event: RuntimeEvent) => void;\n history?: readonly AgentHistoryItem[];\n children: ReactNode;\n}) {\n const [statuses, setStatuses] = useState<LiveStatuses>(new Map());\n const notify = useEffectEvent(onEvent);\n useEffect(() => {\n if (!href) return;\n const source = new EventSource(href);\n const handleEvent = (message: MessageEvent<string>) => {\n const event = parseRuntimeEvent(message.data);\n if (!event) return;\n if (event.type === 'ready') {\n setStatuses(new Map());\n } else if (isConversationEvent(event) && 'status' in event) {\n setStatuses((previous) => new Map(previous).set(event.id, event));\n }\n notify(event);\n };\n source.addEventListener('message', handleEvent);\n return () => {\n source.removeEventListener('message', handleEvent);\n source.close();\n };\n }, [href]);\n return (\n <ConversationStatusContext value={statuses}>\n <RuntimeHistoryContext value={history}>{children}</RuntimeHistoryContext>\n </ConversationStatusContext>\n );\n}\n\nexport function useConversationStatus(\n chatId: string,\n snapshot: ConversationStatus,\n): ConversationStatus {\n const statuses = use(ConversationStatusContext);\n if (!statuses) {\n throw new Error(\n 'useConversationStatus must be used inside <RuntimeEventsProvider>.',\n );\n }\n return statuses.get(chatId)?.status ?? snapshot;\n}\n\nconst childStateLabels: Record<ChildProgress['state'], string> = {\n pending: 'Pending',\n queued: 'Queued',\n running: 'Running',\n waitingOnApproval: 'Waiting on approval',\n waitingOnUserInput: 'Waiting on user input',\n completed: 'Completed',\n failed: 'Failed',\n interrupted: 'Interrupted',\n};\n\nconst activityLabels: Record<ChildActivity['type'], string> = {\n spawn: 'Spawned',\n message: 'Message sent',\n followup: 'Follow-up sent',\n interrupt: 'Interrupt accepted',\n completion: 'Turn finished',\n};\n\n/** One row per child in the selected project, refreshed by the owner stream. */\nexport function ChildProgressList({\n treeId,\n snapshot = [],\n}: {\n treeId: string;\n snapshot?: readonly ChildProgress[];\n}) {\n const events = use(ConversationStatusContext);\n const history = use(RuntimeHistoryContext);\n const saved =\n history.find((record) => record.chatId === treeId)?.children ?? snapshot;\n const children = new Map(\n saved\n .filter((child) => child.treeId === treeId)\n .map((child) => [child.chatId, child]),\n );\n for (const event of events?.values() ?? []) {\n if (event.child?.treeId === treeId) children.set(event.id, event.child);\n }\n if (children.size === 0) return null;\n return (\n <section aria-label=\"Child agents\" className=\"border-t px-6 py-3\">\n <h2 className=\"mb-2 text-sm font-medium\">Child agents</h2>\n <ul className=\"space-y-2\">\n {[...children.values()]\n .sort((a, b) => a.path.localeCompare(b.path))\n .map((child) => {\n const latest = Object.values(child.activities).sort(\n (a, b) => b.at - a.at,\n )[0];\n return (\n <li\n key={child.chatId}\n className=\"flex items-center justify-between gap-4 text-sm\"\n >\n <div className=\"min-w-0\">\n <p className=\"truncate font-mono text-xs\">{child.path}</p>\n {latest && (\n <p className=\"text-muted-foreground text-xs\">\n {activityLabels[latest.type]} \u00B7 {latest.actorPath} \u2192{' '}\n {latest.targetPath}\n </p>\n )}\n </div>\n <StatusBadge status={childStateLabels[child.state]} />\n </li>\n );\n })}\n </ul>\n </section>\n );\n}\n\nexport function isConversationEvent(\n event: RuntimeEvent,\n): event is ConversationEvent {\n if (event.type !== 'change' || event.resource !== 'conversation') {\n return false;\n }\n if (event.title !== undefined) {\n return (\n typeof event.title === 'string' &&\n event.status === undefined &&\n event.child === undefined\n );\n }\n return (\n isConversationStatus(event.status) &&\n (event.child === undefined ||\n (isChildProgress(event.child) && event.child.chatId === event.id))\n );\n}\n\nfunction parseRuntimeEvent(data: string): RuntimeEvent | undefined {\n let event: unknown;\n try {\n event = JSON.parse(data);\n } catch {\n return undefined;\n }\n if (!isRecord(event) || typeof event.type !== 'string') return undefined;\n if (event.type === 'ready') return { type: 'ready' };\n if (\n event.type !== 'change' ||\n typeof event.resource !== 'string' ||\n !event.resource ||\n typeof event.id !== 'string' ||\n !event.id\n ) {\n return undefined;\n }\n const change: RuntimeEvent = {\n ...event,\n type: 'change',\n resource: event.resource,\n id: event.id,\n };\n if (change.resource === 'conversation' && !isConversationEvent(change)) {\n return undefined;\n }\n return change;\n}\n\nfunction isConversationStatus(value: unknown): value is ConversationStatus {\n if (!isRecord(value) || typeof value.type !== 'string') return false;\n if (value.type === 'idle' || value.type === 'systemError') return true;\n return (\n value.type === 'active' &&\n Array.isArray(value.activeFlags) &&\n value.activeFlags.every(\n (flag) => flag === 'waitingOnApproval' || flag === 'waitingOnUserInput',\n )\n );\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\nfunction isChildProgress(value: unknown): value is ChildProgress {\n if (\n !isRecord(value) ||\n !isRecord(value.activities) ||\n !['chatId', 'treeId', 'path', 'parentChatId', 'declarationName'].every(\n (key) => typeof value[key] === 'string',\n ) ||\n typeof value.state !== 'string' ||\n !Object.hasOwn(childStateLabels, value.state)\n )\n return false;\n return Object.entries(value.activities).every(\n ([kind, activity]) =>\n Object.hasOwn(activityLabels, kind) &&\n isRecord(activity) &&\n activity.type === kind &&\n typeof activity.at === 'number' &&\n Number.isFinite(activity.at) &&\n (activity.outcome === undefined ||\n activity.outcome === 'completed' ||\n activity.outcome === 'failed' ||\n activity.outcome === 'cancelled') &&\n ['id', 'actorPath', 'targetPath', 'streamId'].every(\n (key) => typeof activity[key] === 'string',\n ),\n );\n}\n\ntype HistoryContextValue = {\n activeChatId: string | undefined;\n onSelect: (history: AgentHistoryItem) => void;\n};\n\nconst HistoryContext = createContext<HistoryContextValue | null>(null);\n\nfunction useHistoryContext() {\n const context = use(HistoryContext);\n if (!context) {\n throw new Error('History.* parts must be rendered inside <History.Root>.');\n }\n return context;\n}\n\nfunction HistoryRoot({\n activeChatId,\n onSelect,\n className,\n children,\n}: {\n activeChatId: string | undefined;\n onSelect: (history: AgentHistoryItem) => void;\n className?: string;\n children: ReactNode;\n}) {\n const value = useMemo(\n () => ({ activeChatId, onSelect }),\n [activeChatId, onSelect],\n );\n return (\n <HistoryContext.Provider value={value}>\n <div className={cn('flex min-h-0 flex-col gap-1', className)}>\n {children}\n </div>\n </HistoryContext.Provider>\n );\n}\n\nfunction HistoryItem({\n className,\n children,\n}: {\n className?: string;\n children: ReactNode;\n}) {\n return (\n <div className={cn('group/history-item relative', className)}>\n {children}\n </div>\n );\n}\n\nfunction HistoryItemTrigger({\n history,\n className,\n children,\n}: {\n history: AgentHistoryItem;\n className?: string;\n children: ReactNode;\n}) {\n const { activeChatId, onSelect } = useHistoryContext();\n const isActive = activeChatId === history.chatId;\n return (\n <button\n type=\"button\"\n aria-current={isActive ? 'true' : undefined}\n onClick={() => onSelect(history)}\n className={cn(\n 'flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-left text-sm transition-colors',\n isActive\n ? 'bg-accent text-foreground'\n : 'text-muted-foreground hover:bg-accent hover:text-foreground',\n className,\n )}\n >\n {children}\n </button>\n );\n}\n\nfunction HistoryEmpty({\n className,\n children,\n}: {\n className?: string;\n children: ReactNode;\n}) {\n return (\n <div className={cn('text-muted-foreground px-2 py-4 text-sm', className)}>\n {children}\n </div>\n );\n}\n\nexport function ChatStatusIcon({\n chatId,\n status,\n}: Pick<AgentHistoryItem, 'chatId' | 'status'>) {\n const className = 'size-3.5 shrink-0';\n const label = conversationStatusLabel(useConversationStatus(chatId, status));\n switch (label) {\n case 'active':\n return <CircleDotIcon aria-label=\"Active\" className={className} />;\n case 'error':\n return (\n <CircleAlertIcon\n aria-label=\"Error\"\n className={cn(className, 'text-destructive')}\n />\n );\n case 'idle':\n return <MessageSquareIcon aria-label=\"idle\" className={className} />;\n case 'approval':\n return (\n <CirclePauseIcon\n aria-label=\"Waiting on approval\"\n className={className}\n />\n );\n case 'input':\n return (\n <MessageCircleQuestionIcon\n aria-label=\"Waiting on user input\"\n className={className}\n />\n );\n }\n}\n\nexport function StatusBadge({ status }: { status: string }) {\n return (\n <span\n className={cn(\n 'text-muted-foreground rounded-md border px-2 py-1 font-mono text-[0.6875rem] capitalize',\n (status === 'failed' || status === 'error') &&\n 'text-destructive border-destructive/30',\n )}\n >\n {status}\n </span>\n );\n}\n\nconst dateTime = new Intl.DateTimeFormat(undefined, {\n dateStyle: 'medium',\n timeStyle: 'short',\n});\n\nexport function formatTimestamp(value: number | string) {\n return dateTime.format(new Date(value));\n}\n\nexport const History = {\n Root: HistoryRoot,\n Item: HistoryItem,\n ItemTrigger: HistoryItemTrigger,\n Empty: HistoryEmpty,\n} as const;\n"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;
|
|
4
|
+
"sourcesContent": ["import { cn } from 'cn';\nimport {\n CircleAlertIcon,\n CircleDotIcon,\n CirclePauseIcon,\n MessageCircleQuestionIcon,\n MessageSquareIcon,\n} from 'lucide-react';\nimport {\n type ReactNode,\n createContext,\n use,\n useEffect,\n useEffectEvent,\n useMemo,\n useState,\n} from 'react';\n\nimport type {\n AgentHistoryItem,\n ChildActivity,\n ChildProgress,\n ConversationStatus,\n} from '@deepagents/experimental/zukhruf';\nimport type { ConversationOwnerEvent } from '@deepagents/experimental/zukhruf/http';\nimport type { ScheduledChange } from '@deepagents/experimental/zukhruf/schedules';\n\nexport type { ConversationStatus } from '@deepagents/experimental/zukhruf';\n\n/** One event of the runtime's `GET /events`, as `ZukhrufChatTransport.events()` yields it. */\nexport type RuntimeEvent =\n | { readonly type: 'ready' }\n | ConversationOwnerEvent\n | Exclude<ScheduledChange, { type: 'reset' }>;\n\ntype ConversationStatusEvent = Extract<\n ConversationOwnerEvent,\n { readonly status: ConversationStatus }\n>;\n\nexport function conversationName(\n record: Pick<AgentHistoryItem, 'chatId' | 'title' | 'preview'>,\n) {\n return record.title ?? record.preview ?? record.chatId;\n}\n\nexport function conversationStatusLabel(status: ConversationStatus) {\n switch (status.type) {\n case 'idle':\n return 'idle';\n case 'systemError':\n return 'error';\n case 'active':\n if (status.activeFlags.includes('waitingOnApproval')) return 'approval';\n if (status.activeFlags.includes('waitingOnUserInput')) return 'input';\n return 'active';\n }\n}\n\ntype LiveStatuses = ReadonlyMap<string, ConversationStatusEvent>;\n\nconst ConversationStatusContext = createContext<LiveStatuses | null>(null);\nconst RuntimeHistoryContext = createContext<readonly AgentHistoryItem[]>([]);\n\nexport function RuntimeEventsProvider({\n events,\n onEvent,\n history = [],\n children,\n}: {\n /**\n * Reads the runtime's events until `signal` aborts, such as\n * `(options) => transport.events(options)`. A new function reopens the\n * stream, so keep it stable across renders.\n */\n events:\n | ((options: { signal: AbortSignal }) => AsyncIterable<RuntimeEvent>)\n | undefined;\n onEvent: (event: RuntimeEvent) => void;\n history?: readonly AgentHistoryItem[];\n children: ReactNode;\n}) {\n const [statuses, setStatuses] = useState<LiveStatuses>(new Map());\n const notify = useEffectEvent(onEvent);\n useEffect(() => {\n if (!events) return;\n const abort = new AbortController();\n void (async () => {\n for await (const event of events({ signal: abort.signal })) {\n if (event.type === 'ready') {\n setStatuses(new Map());\n } else if ('status' in event) {\n setStatuses((previous) => new Map(previous).set(event.id, event));\n }\n notify(event);\n }\n })()\n // A refused stream ends the reads; the sidebar keeps the loaded snapshot.\n .catch((error: unknown) => console.error(error));\n return () => abort.abort();\n }, [events]);\n return (\n <ConversationStatusContext value={statuses}>\n <RuntimeHistoryContext value={history}>{children}</RuntimeHistoryContext>\n </ConversationStatusContext>\n );\n}\n\nexport function useConversationStatus(\n chatId: string,\n snapshot: ConversationStatus,\n): ConversationStatus {\n const statuses = use(ConversationStatusContext);\n if (!statuses) {\n throw new Error(\n 'useConversationStatus must be used inside <RuntimeEventsProvider>.',\n );\n }\n return statuses.get(chatId)?.status ?? snapshot;\n}\n\nconst childStateLabels: Record<ChildProgress['state'], string> = {\n pending: 'Pending',\n queued: 'Queued',\n running: 'Running',\n waitingOnApproval: 'Waiting on approval',\n waitingOnUserInput: 'Waiting on user input',\n completed: 'Completed',\n failed: 'Failed',\n interrupted: 'Interrupted',\n};\n\nconst activityLabels: Record<ChildActivity['type'], string> = {\n spawn: 'Spawned',\n message: 'Message sent',\n followup: 'Follow-up sent',\n interrupt: 'Interrupt accepted',\n completion: 'Turn finished',\n};\n\n/** One row per child in the selected project, refreshed by the owner stream. */\nexport function ChildProgressList({\n treeId,\n snapshot = [],\n}: {\n treeId: string;\n snapshot?: readonly ChildProgress[];\n}) {\n const events = use(ConversationStatusContext);\n const history = use(RuntimeHistoryContext);\n const saved =\n history.find((record) => record.chatId === treeId)?.children ?? snapshot;\n const children = new Map(\n saved\n .filter((child) => child.treeId === treeId)\n .map((child) => [child.chatId, child]),\n );\n for (const event of events?.values() ?? []) {\n if (event.child?.treeId === treeId) children.set(event.id, event.child);\n }\n if (children.size === 0) return null;\n return (\n <section aria-label=\"Child agents\" className=\"border-t px-6 py-3\">\n <h2 className=\"mb-2 text-sm font-medium\">Child agents</h2>\n <ul className=\"space-y-2\">\n {[...children.values()]\n .sort((a, b) => a.path.localeCompare(b.path))\n .map((child) => {\n const latest = Object.values(child.activities).sort(\n (a, b) => b.at - a.at,\n )[0];\n return (\n <li\n key={child.chatId}\n className=\"flex items-center justify-between gap-4 text-sm\"\n >\n <div className=\"min-w-0\">\n <p className=\"truncate font-mono text-xs\">{child.path}</p>\n {latest && (\n <p className=\"text-muted-foreground text-xs\">\n {activityLabels[latest.type]} \u00B7 {latest.actorPath} \u2192{' '}\n {latest.targetPath}\n </p>\n )}\n </div>\n <StatusBadge status={childStateLabels[child.state]} />\n </li>\n );\n })}\n </ul>\n </section>\n );\n}\n\ntype HistoryContextValue = {\n activeChatId: string | undefined;\n onSelect: (history: AgentHistoryItem) => void;\n};\n\nconst HistoryContext = createContext<HistoryContextValue | null>(null);\n\nfunction useHistoryContext() {\n const context = use(HistoryContext);\n if (!context) {\n throw new Error('History.* parts must be rendered inside <History.Root>.');\n }\n return context;\n}\n\nfunction HistoryRoot({\n activeChatId,\n onSelect,\n className,\n children,\n}: {\n activeChatId: string | undefined;\n onSelect: (history: AgentHistoryItem) => void;\n className?: string;\n children: ReactNode;\n}) {\n const value = useMemo(\n () => ({ activeChatId, onSelect }),\n [activeChatId, onSelect],\n );\n return (\n <HistoryContext.Provider value={value}>\n <div className={cn('flex min-h-0 flex-col gap-1', className)}>\n {children}\n </div>\n </HistoryContext.Provider>\n );\n}\n\nfunction HistoryItem({\n className,\n children,\n}: {\n className?: string;\n children: ReactNode;\n}) {\n return (\n <div className={cn('group/history-item relative', className)}>\n {children}\n </div>\n );\n}\n\nfunction HistoryItemTrigger({\n history,\n className,\n children,\n}: {\n history: AgentHistoryItem;\n className?: string;\n children: ReactNode;\n}) {\n const { activeChatId, onSelect } = useHistoryContext();\n const isActive = activeChatId === history.chatId;\n return (\n <button\n type=\"button\"\n aria-current={isActive ? 'true' : undefined}\n onClick={() => onSelect(history)}\n className={cn(\n 'flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-left text-sm transition-colors',\n isActive\n ? 'bg-accent text-foreground'\n : 'text-muted-foreground hover:bg-accent hover:text-foreground',\n className,\n )}\n >\n {children}\n </button>\n );\n}\n\nfunction HistoryEmpty({\n className,\n children,\n}: {\n className?: string;\n children: ReactNode;\n}) {\n return (\n <div className={cn('text-muted-foreground px-2 py-4 text-sm', className)}>\n {children}\n </div>\n );\n}\n\nexport function ChatStatusIcon({\n chatId,\n status,\n}: Pick<AgentHistoryItem, 'chatId' | 'status'>) {\n const className = 'size-3.5 shrink-0';\n const label = conversationStatusLabel(useConversationStatus(chatId, status));\n switch (label) {\n case 'active':\n return <CircleDotIcon aria-label=\"Active\" className={className} />;\n case 'error':\n return (\n <CircleAlertIcon\n aria-label=\"Error\"\n className={cn(className, 'text-destructive')}\n />\n );\n case 'idle':\n return <MessageSquareIcon aria-label=\"idle\" className={className} />;\n case 'approval':\n return (\n <CirclePauseIcon\n aria-label=\"Waiting on approval\"\n className={className}\n />\n );\n case 'input':\n return (\n <MessageCircleQuestionIcon\n aria-label=\"Waiting on user input\"\n className={className}\n />\n );\n }\n}\n\nexport function StatusBadge({ status }: { status: string }) {\n return (\n <span\n className={cn(\n 'text-muted-foreground rounded-md border px-2 py-1 font-mono text-[0.6875rem] capitalize',\n (status === 'failed' || status === 'error') &&\n 'text-destructive border-destructive/30',\n )}\n >\n {status}\n </span>\n );\n}\n\nconst dateTime = new Intl.DateTimeFormat(undefined, {\n dateStyle: 'medium',\n timeStyle: 'short',\n});\n\nexport function formatTimestamp(value: number | string) {\n return dateTime.format(new Date(value));\n}\n\nexport const History = {\n Root: HistoryRoot,\n Item: HistoryItem,\n ItemTrigger: HistoryItemTrigger,\n Empty: HistoryEmpty,\n} as const;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAuFD,cA4Ec,YA5Ed;AA/DC,SAAS,iBACd,QACA;AACA,SAAO,OAAO,SAAS,OAAO,WAAW,OAAO;AAClD;AAEO,SAAS,wBAAwB,QAA4B;AAClE,UAAQ,OAAO,MAAM;AAAA,IACnB,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,UAAI,OAAO,YAAY,SAAS,mBAAmB,EAAG,QAAO;AAC7D,UAAI,OAAO,YAAY,SAAS,oBAAoB,EAAG,QAAO;AA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",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@deepagents/experimental": "7.
|
|
32
|
+
"@deepagents/experimental": "7.83.1",
|
|
33
33
|
"cn": "^0.4.0",
|
|
34
34
|
"lucide-react": "^1.77.0"
|
|
35
35
|
},
|