@athenaintel/react 0.50.0 → 0.53.0
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/README.md +24 -0
- package/dist/agent-runtime/src/desktop-handoff.d.ts +10 -0
- package/dist/agent-runtime/src/edit-command.cjs +21 -0
- package/dist/agent-runtime/src/edit-command.cjs.map +1 -1
- package/dist/agent-runtime/src/edit-command.d.ts +8 -0
- package/dist/agent-runtime/src/edit-command.js +21 -0
- package/dist/agent-runtime/src/edit-command.js.map +1 -1
- package/dist/agent-runtime/src/handoff-arrival.cjs +19 -0
- package/dist/agent-runtime/src/handoff-arrival.cjs.map +1 -1
- package/dist/agent-runtime/src/handoff-arrival.d.ts +18 -3
- package/dist/agent-runtime/src/handoff-arrival.js +20 -1
- package/dist/agent-runtime/src/handoff-arrival.js.map +1 -1
- package/dist/agent-runtime/src/handoff-cursor-id.cjs +6 -0
- package/dist/agent-runtime/src/handoff-cursor-id.cjs.map +1 -0
- package/dist/agent-runtime/src/handoff-cursor-id.d.ts +12 -0
- package/dist/agent-runtime/src/handoff-cursor-id.js +6 -0
- package/dist/agent-runtime/src/handoff-cursor-id.js.map +1 -0
- package/dist/agent-runtime/src/handoff-cursor.cjs +88 -0
- package/dist/agent-runtime/src/handoff-cursor.cjs.map +1 -0
- package/dist/agent-runtime/src/handoff-cursor.d.ts +120 -0
- package/dist/agent-runtime/src/handoff-cursor.js +88 -0
- package/dist/agent-runtime/src/handoff-cursor.js.map +1 -0
- package/dist/agent-runtime/src/index.d.ts +4 -3
- package/dist/agent-runtime/src/thread-handoff-flow-machine.d.ts +6 -0
- package/dist/agent-runtime/src/thread-handoff-protocol.d.ts +114 -4
- package/dist/agent-runtime/src/thread-handoff.d.ts +1 -1
- package/dist/agent-runtime/src/use-deep-agent-window-sync.cjs +8 -3
- package/dist/agent-runtime/src/use-deep-agent-window-sync.cjs.map +1 -1
- package/dist/agent-runtime/src/use-deep-agent-window-sync.d.ts +7 -0
- package/dist/agent-runtime/src/use-deep-agent-window-sync.js +9 -4
- package/dist/agent-runtime/src/use-deep-agent-window-sync.js.map +1 -1
- package/dist/agent-runtime/src/use-thread-handoff-flow.d.ts +5 -0
- package/dist/chat/AthenaChat.cjs +27 -12
- package/dist/chat/AthenaChat.cjs.map +1 -1
- package/dist/chat/AthenaChat.d.ts +13 -0
- package/dist/chat/AthenaChat.js +27 -12
- package/dist/chat/AthenaChat.js.map +1 -1
- package/dist/chat/AthenaPlanStrip.cjs +97 -0
- package/dist/chat/AthenaPlanStrip.cjs.map +1 -0
- package/dist/chat/AthenaPlanStrip.d.ts +15 -0
- package/dist/chat/AthenaPlanStrip.js +97 -0
- package/dist/chat/AthenaPlanStrip.js.map +1 -0
- package/dist/chat/super-grouping/SuperGroupingCard.cjs +4 -2
- package/dist/chat/super-grouping/SuperGroupingCard.cjs.map +1 -1
- package/dist/chat/super-grouping/SuperGroupingCard.js +4 -2
- package/dist/chat/super-grouping/SuperGroupingCard.js.map +1 -1
- package/dist/chat/super-grouping/SuperGroupingTranscript.cjs +4 -2
- package/dist/chat/super-grouping/SuperGroupingTranscript.cjs.map +1 -1
- package/dist/chat/super-grouping/SuperGroupingTranscript.js +4 -2
- package/dist/chat/super-grouping/SuperGroupingTranscript.js.map +1 -1
- package/dist/chat/super-grouping/activity-timeline.cjs +6 -4
- package/dist/chat/super-grouping/activity-timeline.cjs.map +1 -1
- package/dist/chat/super-grouping/activity-timeline.d.ts +9 -1
- package/dist/chat/super-grouping/activity-timeline.js +6 -4
- package/dist/chat/super-grouping/activity-timeline.js.map +1 -1
- package/dist/chat/super-grouping/index.d.ts +1 -1
- package/dist/chat/super-grouping/use-earlier-steps-unloaded.cjs +17 -0
- package/dist/chat/super-grouping/use-earlier-steps-unloaded.cjs.map +1 -0
- package/dist/chat/super-grouping/use-earlier-steps-unloaded.d.ts +8 -0
- package/dist/chat/super-grouping/use-earlier-steps-unloaded.js +17 -0
- package/dist/chat/super-grouping/use-earlier-steps-unloaded.js.map +1 -0
- package/dist/chat-ui/index.cjs +8 -0
- package/dist/chat-ui/index.cjs.map +1 -1
- package/dist/chat-ui/index.d.ts +2 -1
- package/dist/chat-ui/index.js +9 -1
- package/dist/chat-ui/index.js.map +1 -1
- package/dist/chat-ui/mentions/mention-chip.cjs +1 -12
- package/dist/chat-ui/mentions/mention-chip.cjs.map +1 -1
- package/dist/chat-ui/mentions/mention-chip.js +1 -12
- package/dist/chat-ui/mentions/mention-chip.js.map +1 -1
- package/dist/chat-ui/mentions/use-mention-asset.cjs +18 -3
- package/dist/chat-ui/mentions/use-mention-asset.cjs.map +1 -1
- package/dist/chat-ui/mentions/use-mention-asset.js +19 -4
- package/dist/chat-ui/mentions/use-mention-asset.js.map +1 -1
- package/dist/chat-ui/thread/chat-thread-shell.cjs +2 -0
- package/dist/chat-ui/thread/chat-thread-shell.cjs.map +1 -1
- package/dist/chat-ui/thread/chat-thread-shell.d.ts +4 -0
- package/dist/chat-ui/thread/chat-thread-shell.js +2 -0
- package/dist/chat-ui/thread/chat-thread-shell.js.map +1 -1
- package/dist/chat-ui/thread/handoff-cursor.cjs +216 -0
- package/dist/chat-ui/thread/handoff-cursor.cjs.map +1 -0
- package/dist/chat-ui/thread/handoff-cursor.d.ts +57 -0
- package/dist/chat-ui/thread/handoff-cursor.js +216 -0
- package/dist/chat-ui/thread/handoff-cursor.js.map +1 -0
- package/dist/chat-ui/thread/statewire-history-edge.cjs +2 -0
- package/dist/chat-ui/thread/statewire-history-edge.cjs.map +1 -1
- package/dist/chat-ui/thread/statewire-history-edge.d.ts +2 -0
- package/dist/chat-ui/thread/statewire-history-edge.js +3 -1
- package/dist/chat-ui/thread/statewire-history-edge.js.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/keryx-http/src/unconfirmed-update-attributions.cjs +20 -3
- package/dist/keryx-http/src/unconfirmed-update-attributions.cjs.map +1 -1
- package/dist/keryx-http/src/unconfirmed-update-attributions.d.ts +11 -2
- package/dist/keryx-http/src/unconfirmed-update-attributions.js +21 -4
- package/dist/keryx-http/src/unconfirmed-update-attributions.js.map +1 -1
- package/dist/react/package.json.cjs +1 -1
- package/dist/react/package.json.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tools/write-todos-tool-ui.cjs +8 -0
- package/dist/tools/write-todos-tool-ui.cjs.map +1 -1
- package/dist/tools/write-todos-tool-ui.d.ts +2 -0
- package/dist/tools/write-todos-tool-ui.js +8 -0
- package/dist/tools/write-todos-tool-ui.js.map +1 -1
- package/dist/workbench/session-workbench-panes.cjs +1 -8
- package/dist/workbench/session-workbench-panes.cjs.map +1 -1
- package/dist/workbench/session-workbench-panes.js +2 -9
- package/dist/workbench/session-workbench-panes.js.map +1 -1
- package/package.json +2 -2
|
@@ -36,6 +36,13 @@ export interface AthenaChatProps {
|
|
|
36
36
|
* express a per-thread fence, so the host that knows passes it here.
|
|
37
37
|
*/
|
|
38
38
|
readOnly?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* What sits above the composer for the run's plan. Defaults to
|
|
41
|
+
* `<AthenaPlanStrip />`: the plan's progress and current step, opening to
|
|
42
|
+
* the whole `write_todos` list. Pass your own element to replace it, or
|
|
43
|
+
* `null` for none (a host that shows the plan elsewhere).
|
|
44
|
+
*/
|
|
45
|
+
plan?: ReactNode;
|
|
39
46
|
/**
|
|
40
47
|
* The Athena app this chat runs in. With it, the chat says when the person
|
|
41
48
|
* is driving the conversation from another of their apps ("Driving on your
|
|
@@ -116,6 +123,12 @@ export interface AthenaChatComposerSlots {
|
|
|
116
123
|
* `placeholder`.
|
|
117
124
|
*/
|
|
118
125
|
runningPlaceholder?: string;
|
|
126
|
+
/**
|
|
127
|
+
* A row at the top of the composer, above the editor and inside its border: where Spaces shows
|
|
128
|
+
* its running status and Follow Agent Operations switch (Athena Desktop's Follow Athena). Rendered
|
|
129
|
+
* as given, above any voice offer, quote or attachment preview; absent, nothing changes.
|
|
130
|
+
*/
|
|
131
|
+
aboveEditor?: ReactNode;
|
|
119
132
|
/** Toolbar contents after the attach button. */
|
|
120
133
|
toolbarStart?: ReactNode;
|
|
121
134
|
/** Toolbar contents before the mic and the send/stop control. */
|
package/dist/chat/AthenaChat.js
CHANGED
|
@@ -2,6 +2,7 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { TiptapText } from "./tiptap-text.js";
|
|
3
3
|
import { AthenaChatErrorBoundary } from "./AthenaChatErrorBoundary.js";
|
|
4
4
|
import { StatewireApprovalCard } from "./StatewireApprovalCard.js";
|
|
5
|
+
import { AthenaPlanStrip } from "./AthenaPlanStrip.js";
|
|
5
6
|
import { StatewireQueuedMessages } from "./StatewireQueuedMessages.js";
|
|
6
7
|
import { StatewireConnectionBanner, StatewireErrorBanner } from "./statewire-banners.js";
|
|
7
8
|
import { AthenaChatModeMenu } from "../catalog/chat-pickers.js";
|
|
@@ -26,6 +27,7 @@ import { Button } from "../ui/button.js";
|
|
|
26
27
|
import { Collapsible, CollapsibleTrigger, CollapsibleContent } from "../ui/collapsible.js";
|
|
27
28
|
import { ChatComposerDock } from "../chat-ui/thread/chat-composer-dock.js";
|
|
28
29
|
import { ChatThreadShell } from "../chat-ui/thread/chat-thread-shell.js";
|
|
30
|
+
import { HandoffCursorReveal } from "../chat-ui/thread/handoff-cursor.js";
|
|
29
31
|
import { StatewireHistoryEdge } from "../chat-ui/thread/statewire-history-edge.js";
|
|
30
32
|
import { ThreadLoadingOverlay } from "../chat-ui/thread/thread-loading-overlay.js";
|
|
31
33
|
import { ComposerSendOrStop } from "../chat-ui/thread/composer-send-or-stop.js";
|
|
@@ -164,6 +166,7 @@ const AthenaChatContent = ({
|
|
|
164
166
|
maxWidth = "46rem",
|
|
165
167
|
turnAnchor = "bottom",
|
|
166
168
|
readOnly = false,
|
|
169
|
+
plan,
|
|
167
170
|
surface,
|
|
168
171
|
confirmDecision,
|
|
169
172
|
toolUIs,
|
|
@@ -297,7 +300,10 @@ const AthenaChatContent = ({
|
|
|
297
300
|
] }),
|
|
298
301
|
viewportClassName: "aui-thread-viewport relative flex flex-1 flex-col overflow-x-hidden overflow-y-scroll overscroll-y-none scroll-smooth px-4 pt-4",
|
|
299
302
|
contentClassName: "flex w-full flex-1 flex-col",
|
|
300
|
-
viewportOverlay: /* @__PURE__ */
|
|
303
|
+
viewportOverlay: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
304
|
+
/* @__PURE__ */ jsx(HandoffCursorReveal, { threadId: statewireThreadId }),
|
|
305
|
+
/* @__PURE__ */ jsx(ThreadScrollToTop, {})
|
|
306
|
+
] }),
|
|
301
307
|
welcome: /* @__PURE__ */ jsx(AthenaChatWelcome, { welcomeMessage, welcomeSubtext }),
|
|
302
308
|
beforeMessages: /* @__PURE__ */ jsx(StatewireHistoryEdge, { className: "aui-thread-history-edge" }),
|
|
303
309
|
components: messageComponents,
|
|
@@ -311,6 +317,7 @@ const AthenaChatContent = ({
|
|
|
311
317
|
/* @__PURE__ */ jsx(StatewireErrorBanner, { onStartNewSession: startNewSession }),
|
|
312
318
|
/* @__PURE__ */ jsx(StatewireRunRefusalNotice, { onStartNewSession: startNewSession }),
|
|
313
319
|
/* @__PURE__ */ jsx(StatewireApprovalCard, { confirmDecision }),
|
|
320
|
+
plan === void 0 ? /* @__PURE__ */ jsx(AthenaPlanStrip, { className: "mx-3" }) : plan,
|
|
314
321
|
/* @__PURE__ */ jsx(StatewireQueuedMessages, {}),
|
|
315
322
|
/* @__PURE__ */ jsx(AttachmentProvider, { children: /* @__PURE__ */ jsxs(QuoteProvider, { children: [
|
|
316
323
|
/* @__PURE__ */ jsx(QuotePostMessageBridge, {}),
|
|
@@ -362,17 +369,24 @@ const ThreadScrollToTop = () => {
|
|
|
362
369
|
const { isAtTop, containerRef, handleClick } = useScrollToTop();
|
|
363
370
|
const isEmpty = useAuiState((s) => s.thread.isEmpty);
|
|
364
371
|
if (isEmpty) return null;
|
|
365
|
-
return
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
372
|
+
return (
|
|
373
|
+
// At the viewport's right edge, beside the text column: over the column
|
|
374
|
+
// it would cover the line being read.
|
|
375
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-none sticky top-0 z-10 flex h-0 w-full justify-end", children: /* @__PURE__ */ jsx(
|
|
376
|
+
TooltipIconButton,
|
|
377
|
+
{
|
|
378
|
+
ref: containerRef,
|
|
379
|
+
tooltip: "Scroll to top",
|
|
380
|
+
variant: "outline",
|
|
381
|
+
className: cn(
|
|
382
|
+
"aui-thread-scroll-to-top pointer-events-auto absolute top-2 right-0 size-8 rounded-full bg-background/90 shadow-sm dark:bg-background dark:hover:bg-accent",
|
|
383
|
+
isAtTop && "invisible"
|
|
384
|
+
),
|
|
385
|
+
onClick: handleClick,
|
|
386
|
+
children: /* @__PURE__ */ jsx(ArrowUpIcon, {})
|
|
387
|
+
}
|
|
388
|
+
) })
|
|
389
|
+
);
|
|
376
390
|
};
|
|
377
391
|
const ATHENA_CHAT_MENTION_CATEGORIES = [
|
|
378
392
|
"favorites",
|
|
@@ -607,6 +621,7 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
|
|
|
607
621
|
appearance: "paper",
|
|
608
622
|
dragActive,
|
|
609
623
|
beforeEditor: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
624
|
+
slots == null ? void 0 : slots.aboveEditor,
|
|
610
625
|
/* @__PURE__ */ jsx(
|
|
611
626
|
ChatVoiceStatus,
|
|
612
627
|
{
|