@athenaintel/react 0.18.0 → 0.19.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 +106 -4
- package/dist/SuperGroupingCard-BsWbHyV_.js +795 -0
- package/dist/SuperGroupingCard-BsWbHyV_.js.map +1 -0
- package/dist/SuperGroupingCard-CRRFUgjN.cjs +794 -0
- package/dist/SuperGroupingCard-CRRFUgjN.cjs.map +1 -0
- package/dist/chat/StatewireApprovalCard.d.ts +59 -2
- package/dist/chat/StatewireClientToolBridge.d.ts +3 -3
- package/dist/chat/StatewireQueuedMessages.d.ts +105 -6
- package/dist/chat/statewire-approval.d.ts +1 -1
- package/dist/chat/statewire-client-tools.d.ts +15 -21
- package/dist/chat/super-grouping/CollapsibleGroup.d.ts +52 -11
- package/dist/chat/super-grouping/SuperGroupingCard.d.ts +78 -21
- package/dist/chat/super-grouping/activity-timeline.d.ts +91 -0
- package/dist/chat/super-grouping/grouping-function.d.ts +13 -10
- package/dist/chat/super-grouping/index.d.ts +12 -0
- package/dist/chat/super-grouping/toolkit-map.d.ts +8 -1
- package/dist/chat/use-statewire-approval-request.d.ts +44 -0
- package/dist/chat-ui/header/conversation-history-panel.d.ts +11 -1
- package/dist/chat-ui/index.d.ts +7 -1
- package/dist/chat-ui/mentions/suggestions/shims.d.ts +0 -4
- package/dist/chat-ui/messages/runtime-message.d.ts +2 -3
- package/dist/chat-ui/messages/statewire-continue-run.d.ts +48 -7
- package/dist/chat-ui/messages/user-edit-composer.d.ts +5 -2
- package/dist/chat-ui/statewire.d.ts +19 -0
- package/dist/chat-ui/thread/chat-thread-shell.d.ts +7 -1
- package/dist/chat-ui/thread/statewire-history-edge.d.ts +52 -0
- package/dist/chat-ui-statewire.cjs +25 -0
- package/dist/chat-ui-statewire.cjs.map +1 -0
- package/dist/chat-ui-statewire.js +25 -0
- package/dist/chat-ui-statewire.js.map +1 -0
- package/dist/chat-ui.cjs +174 -357
- package/dist/chat-ui.cjs.map +1 -1
- package/dist/chat-ui.js +173 -355
- package/dist/chat-ui.js.map +1 -1
- package/dist/diagnostics/athena-diagnostics.d.ts +1 -1
- package/dist/diagnostics/errors.d.ts +4 -0
- package/dist/index.cjs +2222 -5183
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +21 -6
- package/dist/index.js +4193 -7151
- package/dist/index.js.map +1 -1
- package/dist/misc-tool-uis-B2e0Okkn.cjs +43 -0
- package/dist/misc-tool-uis-B2e0Okkn.cjs.map +1 -0
- package/dist/misc-tool-uis-gAiQw0Yl.js +44 -0
- package/dist/misc-tool-uis-gAiQw0Yl.js.map +1 -0
- package/dist/provider/AthenaProvider.d.ts +4 -2
- package/dist/provider/config.d.ts +9 -2
- package/dist/provider/statewire-window-context.d.ts +12 -0
- package/dist/runtime/statewire-auth-headers.d.ts +38 -0
- package/dist/runtime/statewire-lifecycle.d.ts +25 -0
- package/dist/runtime/statewire-session-key.d.ts +13 -0
- package/dist/runtime/useAthenaStatewireRuntime.d.ts +36 -5
- package/dist/statewire-continue-run-D34gS7_1.js +132 -0
- package/dist/statewire-continue-run-D34gS7_1.js.map +1 -0
- package/dist/statewire-continue-run-nE9VCKUh.cjs +131 -0
- package/dist/statewire-continue-run-nE9VCKUh.cjs.map +1 -0
- package/dist/statewire-history-edge-C8uyTEjX.cjs +1711 -0
- package/dist/statewire-history-edge-C8uyTEjX.cjs.map +1 -0
- package/dist/statewire-history-edge-CPohUKMt.js +1712 -0
- package/dist/statewire-history-edge-CPohUKMt.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/super-grouping.cjs +22 -0
- package/dist/super-grouping.cjs.map +1 -0
- package/dist/super-grouping.js +22 -0
- package/dist/super-grouping.js.map +1 -0
- package/dist/threads/mint-thread-id.d.ts +8 -0
- package/dist/threads/statewire-thread-list.d.ts +20 -4
- package/dist/tool-fallback-DkQ3DLkn.js +4281 -0
- package/dist/tool-fallback-DkQ3DLkn.js.map +1 -0
- package/dist/tool-fallback-kfhpJQZa.cjs +4297 -0
- package/dist/tool-fallback-kfhpJQZa.cjs.map +1 -0
- package/dist/tools/index.d.ts +14 -0
- package/dist/tools/misc-tool-uis.d.ts +2 -0
- package/dist/tools/primitives.d.ts +41 -0
- package/dist/tools/tool-fallback.d.ts +78 -6
- package/dist/tools/tool-icons.d.ts +10 -0
- package/dist/tools/tool-uis.d.ts +1 -23
- package/dist/tools.cjs +41 -0
- package/dist/tools.cjs.map +1 -0
- package/dist/tools.js +41 -0
- package/dist/tools.js.map +1 -0
- package/dist/trash-2-B5OaNAL7.cjs +5096 -0
- package/dist/trash-2-B5OaNAL7.cjs.map +1 -0
- package/dist/trash-2-CCwSURL-.js +5081 -0
- package/dist/trash-2-CCwSURL-.js.map +1 -0
- package/dist/{use-rest-conversation-history-Dm0rdQgT.cjs → use-rest-conversation-history-Cm8qMRxp.cjs} +445 -5406
- package/dist/use-rest-conversation-history-Cm8qMRxp.cjs.map +1 -0
- package/dist/{use-rest-conversation-history-Bs5qn5G3.js → use-rest-conversation-history-veDZS-oL.js} +491 -5452
- package/dist/use-rest-conversation-history-veDZS-oL.js.map +1 -0
- package/dist/wrench-BEf72cyP.cjs +417 -0
- package/dist/wrench-BEf72cyP.cjs.map +1 -0
- package/dist/wrench-CbrOlVYm.js +418 -0
- package/dist/wrench-CbrOlVYm.js.map +1 -0
- package/dist/x-Dfd2NzK0.cjs +42 -0
- package/dist/x-Dfd2NzK0.cjs.map +1 -0
- package/dist/x-_DntAa_a.js +43 -0
- package/dist/x-_DntAa_a.js.map +1 -0
- package/package.json +29 -11
- package/dist/chat/super-grouping/tool-status-labels.d.ts +0 -1
- package/dist/use-rest-conversation-history-Bs5qn5G3.js.map +0 -1
- package/dist/use-rest-conversation-history-Dm0rdQgT.cjs.map +0 -1
package/dist/chat-ui.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { T as THREAD_HEADER_ACTIONS_CLASS, a as THREAD_HEADER_PILL_CLASS, b as THREAD_HEADER_CLASS, R as RefreshCw, P as Plus, c as conversationDisplayTitle, d as assetTypeToThumb, N as Node, m as mergeAttributes, E as Extension, S as Suggestion, u as useFloating, F as FloatingPortal, e as autoUpdate, o as offset, f as flip, s as shift, g as getFilteredItems, h as getFetchState, i as getEntry, j as updateFetchState, k as addItems, r as registerSource, l as bindScopes, n as athenaDiagnostics, p as useStore, q as File$1, t as Sheet, L as LayoutGrid, v as FolderKanban, w as Store, x as getSearchScope, y as fetchGraphQL, z as PAGINATED_ASSETS_QUERY, W as WORKSPACE_MEMBERS_QUERY, A as SIMPLE_SEARCH_QUERY, B as assetTypeToIcon, C as TOOL_CATALOG_QUERY, D as useMentionAuth, G as createScopeRegistry, H as createItemCache, I as useEditor, J as StarterKit, K as Placeholder, M as EditorContent } from "./use-rest-conversation-history-veDZS-oL.js";
|
|
5
|
+
import { O, Q, U, V, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am } from "./use-rest-conversation-history-veDZS-oL.js";
|
|
6
|
+
import { L as LoaderCircle, Z as Zap } from "./statewire-history-edge-CPohUKMt.js";
|
|
7
|
+
import { C, g, H, a, R, S, b, c, d, T, u, e } from "./statewire-history-edge-CPohUKMt.js";
|
|
6
8
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
+
import { b as createLucideIcon, c as cn } from "./trash-2-CCwSURL-.js";
|
|
10
|
+
import { useRef, useCallback, useEffect, useMemo, useState, Fragment, useImperativeHandle, forwardRef, useId } from "react";
|
|
11
|
+
import { S as Search, B as Bot, M as MessageSquare, F as FileText, W as Workflow, a as Sparkles, b as BookOpen, L as LayoutDashboard, c as Palette, T as Table, D as Database, d as Phone, C as Calendar, e as Mail, V as Video, I as Image, f as Monitor, g as Code, h as Camera, H as HardDrive, P as Package, i as Wrench, U as Users, j as Star, G as Globe, k as Folder } from "./wrench-CbrOlVYm.js";
|
|
12
|
+
import { useAui, unstable_useComposerInput } from "@assistant-ui/react";
|
|
9
13
|
import "@assistant-ui/tap";
|
|
10
14
|
import "statewire";
|
|
15
|
+
import "@assistant-ui/react-statewire";
|
|
11
16
|
import "@assistant-ui/store";
|
|
12
|
-
import { useStatewireRuns, useStatewireSendCommand } from "@assistant-ui/react-statewire";
|
|
13
17
|
import "@assistant-ui/core";
|
|
18
|
+
import { S as S2, a as a10, b as b2 } from "./statewire-continue-run-D34gS7_1.js";
|
|
14
19
|
const mentionHandlersByThread = /* @__PURE__ */ new Map();
|
|
15
20
|
function registerChatAssetMentionHandler(threadId, handler) {
|
|
16
21
|
mentionHandlersByThread.set(threadId, handler);
|
|
@@ -26,34 +31,19 @@ function registerChatAssetMentionHandler(threadId, handler) {
|
|
|
26
31
|
* This source code is licensed under the ISC license.
|
|
27
32
|
* See the LICENSE file in the root directory of this source tree.
|
|
28
33
|
*/
|
|
29
|
-
const __iconNode$
|
|
34
|
+
const __iconNode$e = [
|
|
30
35
|
["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
|
|
31
36
|
["path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8", key: "1s80jp" }],
|
|
32
37
|
["path", { d: "M10 12h4", key: "a56b0p" }]
|
|
33
38
|
];
|
|
34
|
-
const Archive = createLucideIcon("archive", __iconNode$
|
|
39
|
+
const Archive = createLucideIcon("archive", __iconNode$e);
|
|
35
40
|
/**
|
|
36
41
|
* @license lucide-react v0.575.0 - ISC
|
|
37
42
|
*
|
|
38
43
|
* This source code is licensed under the ISC license.
|
|
39
44
|
* See the LICENSE file in the root directory of this source tree.
|
|
40
45
|
*/
|
|
41
|
-
const __iconNode$
|
|
42
|
-
["path", { d: "M12 8V4H8", key: "hb8ula" }],
|
|
43
|
-
["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2", key: "enze0r" }],
|
|
44
|
-
["path", { d: "M2 14h2", key: "vft8re" }],
|
|
45
|
-
["path", { d: "M20 14h2", key: "4cs60a" }],
|
|
46
|
-
["path", { d: "M15 13v2", key: "1xurst" }],
|
|
47
|
-
["path", { d: "M9 13v2", key: "rq6x2g" }]
|
|
48
|
-
];
|
|
49
|
-
const Bot = createLucideIcon("bot", __iconNode$l);
|
|
50
|
-
/**
|
|
51
|
-
* @license lucide-react v0.575.0 - ISC
|
|
52
|
-
*
|
|
53
|
-
* This source code is licensed under the ISC license.
|
|
54
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/
|
|
56
|
-
const __iconNode$k = [
|
|
46
|
+
const __iconNode$d = [
|
|
57
47
|
["path", { d: "M10 12h4", key: "a56b0p" }],
|
|
58
48
|
["path", { d: "M10 8h4", key: "1sr2af" }],
|
|
59
49
|
["path", { d: "M14 21v-3a2 2 0 0 0-4 0v3", key: "1rgiei" }],
|
|
@@ -66,24 +56,24 @@ const __iconNode$k = [
|
|
|
66
56
|
],
|
|
67
57
|
["path", { d: "M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16", key: "16ra0t" }]
|
|
68
58
|
];
|
|
69
|
-
const Building2 = createLucideIcon("building-2", __iconNode$
|
|
59
|
+
const Building2 = createLucideIcon("building-2", __iconNode$d);
|
|
70
60
|
/**
|
|
71
61
|
* @license lucide-react v0.575.0 - ISC
|
|
72
62
|
*
|
|
73
63
|
* This source code is licensed under the ISC license.
|
|
74
64
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
65
|
*/
|
|
76
|
-
const __iconNode$
|
|
66
|
+
const __iconNode$c = [
|
|
77
67
|
["path", { d: "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z", key: "p7xjir" }]
|
|
78
68
|
];
|
|
79
|
-
const Cloud = createLucideIcon("cloud", __iconNode$
|
|
69
|
+
const Cloud = createLucideIcon("cloud", __iconNode$c);
|
|
80
70
|
/**
|
|
81
71
|
* @license lucide-react v0.575.0 - ISC
|
|
82
72
|
*
|
|
83
73
|
* This source code is licensed under the ISC license.
|
|
84
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
85
75
|
*/
|
|
86
|
-
const __iconNode$
|
|
76
|
+
const __iconNode$b = [
|
|
87
77
|
[
|
|
88
78
|
"path",
|
|
89
79
|
{
|
|
@@ -93,14 +83,14 @@ const __iconNode$i = [
|
|
|
93
83
|
],
|
|
94
84
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
95
85
|
];
|
|
96
|
-
const Eye = createLucideIcon("eye", __iconNode$
|
|
86
|
+
const Eye = createLucideIcon("eye", __iconNode$b);
|
|
97
87
|
/**
|
|
98
88
|
* @license lucide-react v0.575.0 - ISC
|
|
99
89
|
*
|
|
100
90
|
* This source code is licensed under the ISC license.
|
|
101
91
|
* See the LICENSE file in the root directory of this source tree.
|
|
102
92
|
*/
|
|
103
|
-
const __iconNode$
|
|
93
|
+
const __iconNode$a = [
|
|
104
94
|
[
|
|
105
95
|
"path",
|
|
106
96
|
{
|
|
@@ -112,14 +102,14 @@ const __iconNode$h = [
|
|
|
112
102
|
["path", { d: "M10 12.5 8 15l2 2.5", key: "1tg20x" }],
|
|
113
103
|
["path", { d: "m14 12.5 2 2.5-2 2.5", key: "yinavb" }]
|
|
114
104
|
];
|
|
115
|
-
const FileCode = createLucideIcon("file-code", __iconNode$
|
|
105
|
+
const FileCode = createLucideIcon("file-code", __iconNode$a);
|
|
116
106
|
/**
|
|
117
107
|
* @license lucide-react v0.575.0 - ISC
|
|
118
108
|
*
|
|
119
109
|
* This source code is licensed under the ISC license.
|
|
120
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
121
111
|
*/
|
|
122
|
-
const __iconNode$
|
|
112
|
+
const __iconNode$9 = [
|
|
123
113
|
[
|
|
124
114
|
"path",
|
|
125
115
|
{
|
|
@@ -128,26 +118,26 @@ const __iconNode$g = [
|
|
|
128
118
|
}
|
|
129
119
|
]
|
|
130
120
|
];
|
|
131
|
-
const Headphones = createLucideIcon("headphones", __iconNode$
|
|
121
|
+
const Headphones = createLucideIcon("headphones", __iconNode$9);
|
|
132
122
|
/**
|
|
133
123
|
* @license lucide-react v0.575.0 - ISC
|
|
134
124
|
*
|
|
135
125
|
* This source code is licensed under the ISC license.
|
|
136
126
|
* See the LICENSE file in the root directory of this source tree.
|
|
137
127
|
*/
|
|
138
|
-
const __iconNode$
|
|
128
|
+
const __iconNode$8 = [
|
|
139
129
|
["path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4", key: "g0fldk" }],
|
|
140
130
|
["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
|
|
141
131
|
["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
|
|
142
132
|
];
|
|
143
|
-
const Key = createLucideIcon("key", __iconNode$
|
|
133
|
+
const Key = createLucideIcon("key", __iconNode$8);
|
|
144
134
|
/**
|
|
145
135
|
* @license lucide-react v0.575.0 - ISC
|
|
146
136
|
*
|
|
147
137
|
* This source code is licensed under the ISC license.
|
|
148
138
|
* See the LICENSE file in the root directory of this source tree.
|
|
149
139
|
*/
|
|
150
|
-
const __iconNode$
|
|
140
|
+
const __iconNode$7 = [
|
|
151
141
|
["path", { d: "M10 8h.01", key: "1r9ogq" }],
|
|
152
142
|
["path", { d: "M12 12h.01", key: "1mp3jc" }],
|
|
153
143
|
["path", { d: "M14 8h.01", key: "1primd" }],
|
|
@@ -158,84 +148,51 @@ const __iconNode$e = [
|
|
|
158
148
|
["path", { d: "M8 12h.01", key: "czm47f" }],
|
|
159
149
|
["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }]
|
|
160
150
|
];
|
|
161
|
-
const Keyboard = createLucideIcon("keyboard", __iconNode$
|
|
151
|
+
const Keyboard = createLucideIcon("keyboard", __iconNode$7);
|
|
162
152
|
/**
|
|
163
153
|
* @license lucide-react v0.575.0 - ISC
|
|
164
154
|
*
|
|
165
155
|
* This source code is licensed under the ISC license.
|
|
166
156
|
* See the LICENSE file in the root directory of this source tree.
|
|
167
157
|
*/
|
|
168
|
-
const __iconNode$
|
|
169
|
-
["rect", { width: "7", height: "9", x: "3", y: "3", rx: "1", key: "10lvy0" }],
|
|
170
|
-
["rect", { width: "7", height: "5", x: "14", y: "3", rx: "1", key: "16une8" }],
|
|
171
|
-
["rect", { width: "7", height: "9", x: "14", y: "12", rx: "1", key: "1hutg5" }],
|
|
172
|
-
["rect", { width: "7", height: "5", x: "3", y: "16", rx: "1", key: "ldoo1y" }]
|
|
173
|
-
];
|
|
174
|
-
const LayoutDashboard = createLucideIcon("layout-dashboard", __iconNode$d);
|
|
175
|
-
/**
|
|
176
|
-
* @license lucide-react v0.575.0 - ISC
|
|
177
|
-
*
|
|
178
|
-
* This source code is licensed under the ISC license.
|
|
179
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
-
*/
|
|
181
|
-
const __iconNode$c = [
|
|
158
|
+
const __iconNode$6 = [
|
|
182
159
|
["path", { d: "m16 6 4 14", key: "ji33uf" }],
|
|
183
160
|
["path", { d: "M12 6v14", key: "1n7gus" }],
|
|
184
161
|
["path", { d: "M8 8v12", key: "1gg7y9" }],
|
|
185
162
|
["path", { d: "M4 4v16", key: "6qkkli" }]
|
|
186
163
|
];
|
|
187
|
-
const Library = createLucideIcon("library", __iconNode$
|
|
164
|
+
const Library = createLucideIcon("library", __iconNode$6);
|
|
188
165
|
/**
|
|
189
166
|
* @license lucide-react v0.575.0 - ISC
|
|
190
167
|
*
|
|
191
168
|
* This source code is licensed under the ISC license.
|
|
192
169
|
* See the LICENSE file in the root directory of this source tree.
|
|
193
170
|
*/
|
|
194
|
-
const __iconNode$
|
|
171
|
+
const __iconNode$5 = [
|
|
195
172
|
["path", { d: "M12 19v3", key: "npa21l" }],
|
|
196
173
|
["path", { d: "M19 10v2a7 7 0 0 1-14 0v-2", key: "1vc78b" }],
|
|
197
174
|
["rect", { x: "9", y: "2", width: "6", height: "13", rx: "3", key: "s6n7sd" }]
|
|
198
175
|
];
|
|
199
|
-
const Mic = createLucideIcon("mic", __iconNode$
|
|
176
|
+
const Mic = createLucideIcon("mic", __iconNode$5);
|
|
200
177
|
/**
|
|
201
178
|
* @license lucide-react v0.575.0 - ISC
|
|
202
179
|
*
|
|
203
180
|
* This source code is licensed under the ISC license.
|
|
204
181
|
* See the LICENSE file in the root directory of this source tree.
|
|
205
182
|
*/
|
|
206
|
-
const __iconNode$
|
|
207
|
-
[
|
|
208
|
-
"path",
|
|
209
|
-
{
|
|
210
|
-
d: "M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",
|
|
211
|
-
key: "e79jfc"
|
|
212
|
-
}
|
|
213
|
-
],
|
|
214
|
-
["circle", { cx: "13.5", cy: "6.5", r: ".5", fill: "currentColor", key: "1okk4w" }],
|
|
215
|
-
["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
|
|
216
|
-
["circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor", key: "qy21gx" }],
|
|
217
|
-
["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }]
|
|
218
|
-
];
|
|
219
|
-
const Palette = createLucideIcon("palette", __iconNode$a);
|
|
220
|
-
/**
|
|
221
|
-
* @license lucide-react v0.575.0 - ISC
|
|
222
|
-
*
|
|
223
|
-
* This source code is licensed under the ISC license.
|
|
224
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
-
*/
|
|
226
|
-
const __iconNode$9 = [
|
|
183
|
+
const __iconNode$4 = [
|
|
227
184
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
228
185
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
229
186
|
["path", { d: "M9 21V9", key: "1oto5p" }]
|
|
230
187
|
];
|
|
231
|
-
const PanelsTopLeft = createLucideIcon("panels-top-left", __iconNode$
|
|
188
|
+
const PanelsTopLeft = createLucideIcon("panels-top-left", __iconNode$4);
|
|
232
189
|
/**
|
|
233
190
|
* @license lucide-react v0.575.0 - ISC
|
|
234
191
|
*
|
|
235
192
|
* This source code is licensed under the ISC license.
|
|
236
193
|
* See the LICENSE file in the root directory of this source tree.
|
|
237
194
|
*/
|
|
238
|
-
const __iconNode$
|
|
195
|
+
const __iconNode$3 = [
|
|
239
196
|
[
|
|
240
197
|
"path",
|
|
241
198
|
{
|
|
@@ -253,127 +210,43 @@ const __iconNode$8 = [
|
|
|
253
210
|
["path", { d: "m2.3 2.3 7.286 7.286", key: "1wuzzi" }],
|
|
254
211
|
["circle", { cx: "11", cy: "11", r: "2", key: "xmgehs" }]
|
|
255
212
|
];
|
|
256
|
-
const PenTool = createLucideIcon("pen-tool", __iconNode$
|
|
257
|
-
/**
|
|
258
|
-
* @license lucide-react v0.575.0 - ISC
|
|
259
|
-
*
|
|
260
|
-
* This source code is licensed under the ISC license.
|
|
261
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
262
|
-
*/
|
|
263
|
-
const __iconNode$7 = [
|
|
264
|
-
[
|
|
265
|
-
"path",
|
|
266
|
-
{
|
|
267
|
-
d: "M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",
|
|
268
|
-
key: "9njp5v"
|
|
269
|
-
}
|
|
270
|
-
]
|
|
271
|
-
];
|
|
272
|
-
const Phone = createLucideIcon("phone", __iconNode$7);
|
|
213
|
+
const PenTool = createLucideIcon("pen-tool", __iconNode$3);
|
|
273
214
|
/**
|
|
274
215
|
* @license lucide-react v0.575.0 - ISC
|
|
275
216
|
*
|
|
276
217
|
* This source code is licensed under the ISC license.
|
|
277
218
|
* See the LICENSE file in the root directory of this source tree.
|
|
278
219
|
*/
|
|
279
|
-
const __iconNode$
|
|
220
|
+
const __iconNode$2 = [
|
|
280
221
|
["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }],
|
|
281
222
|
["path", { d: "M12 18h.01", key: "mhygvu" }]
|
|
282
223
|
];
|
|
283
|
-
const Smartphone = createLucideIcon("smartphone", __iconNode$
|
|
224
|
+
const Smartphone = createLucideIcon("smartphone", __iconNode$2);
|
|
284
225
|
/**
|
|
285
226
|
* @license lucide-react v0.575.0 - ISC
|
|
286
227
|
*
|
|
287
228
|
* This source code is licensed under the ISC license.
|
|
288
229
|
* See the LICENSE file in the root directory of this source tree.
|
|
289
230
|
*/
|
|
290
|
-
const __iconNode$
|
|
291
|
-
[
|
|
292
|
-
"path",
|
|
293
|
-
{
|
|
294
|
-
d: "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",
|
|
295
|
-
key: "1s2grr"
|
|
296
|
-
}
|
|
297
|
-
],
|
|
298
|
-
["path", { d: "M20 2v4", key: "1rf3ol" }],
|
|
299
|
-
["path", { d: "M22 4h-4", key: "gwowj6" }],
|
|
300
|
-
["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
|
|
301
|
-
];
|
|
302
|
-
const Sparkles = createLucideIcon("sparkles", __iconNode$5);
|
|
303
|
-
/**
|
|
304
|
-
* @license lucide-react v0.575.0 - ISC
|
|
305
|
-
*
|
|
306
|
-
* This source code is licensed under the ISC license.
|
|
307
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
308
|
-
*/
|
|
309
|
-
const __iconNode$4 = [
|
|
231
|
+
const __iconNode$1 = [
|
|
310
232
|
[
|
|
311
233
|
"path",
|
|
312
234
|
{ d: "M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344", key: "2acyp4" }
|
|
313
235
|
],
|
|
314
236
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
315
237
|
];
|
|
316
|
-
const SquareCheckBig = createLucideIcon("square-check-big", __iconNode$
|
|
238
|
+
const SquareCheckBig = createLucideIcon("square-check-big", __iconNode$1);
|
|
317
239
|
/**
|
|
318
240
|
* @license lucide-react v0.575.0 - ISC
|
|
319
241
|
*
|
|
320
242
|
* This source code is licensed under the ISC license.
|
|
321
243
|
* See the LICENSE file in the root directory of this source tree.
|
|
322
244
|
*/
|
|
323
|
-
const __iconNode
|
|
324
|
-
[
|
|
325
|
-
"path",
|
|
326
|
-
{
|
|
327
|
-
d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",
|
|
328
|
-
key: "r04s7s"
|
|
329
|
-
}
|
|
330
|
-
]
|
|
331
|
-
];
|
|
332
|
-
const Star = createLucideIcon("star", __iconNode$3);
|
|
333
|
-
/**
|
|
334
|
-
* @license lucide-react v0.575.0 - ISC
|
|
335
|
-
*
|
|
336
|
-
* This source code is licensed under the ISC license.
|
|
337
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
338
|
-
*/
|
|
339
|
-
const __iconNode$2 = [
|
|
245
|
+
const __iconNode = [
|
|
340
246
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
341
247
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
342
248
|
];
|
|
343
|
-
const User = createLucideIcon("user", __iconNode
|
|
344
|
-
/**
|
|
345
|
-
* @license lucide-react v0.575.0 - ISC
|
|
346
|
-
*
|
|
347
|
-
* This source code is licensed under the ISC license.
|
|
348
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
349
|
-
*/
|
|
350
|
-
const __iconNode$1 = [
|
|
351
|
-
[
|
|
352
|
-
"path",
|
|
353
|
-
{
|
|
354
|
-
d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
|
|
355
|
-
key: "ftymec"
|
|
356
|
-
}
|
|
357
|
-
],
|
|
358
|
-
["rect", { x: "2", y: "6", width: "14", height: "12", rx: "2", key: "158x01" }]
|
|
359
|
-
];
|
|
360
|
-
const Video = createLucideIcon("video", __iconNode$1);
|
|
361
|
-
/**
|
|
362
|
-
* @license lucide-react v0.575.0 - ISC
|
|
363
|
-
*
|
|
364
|
-
* This source code is licensed under the ISC license.
|
|
365
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
366
|
-
*/
|
|
367
|
-
const __iconNode = [
|
|
368
|
-
[
|
|
369
|
-
"path",
|
|
370
|
-
{
|
|
371
|
-
d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
|
|
372
|
-
key: "1xq2db"
|
|
373
|
-
}
|
|
374
|
-
]
|
|
375
|
-
];
|
|
376
|
-
const Zap = createLucideIcon("zap", __iconNode);
|
|
249
|
+
const User = createLucideIcon("user", __iconNode);
|
|
377
250
|
function ChatHeaderRoot({
|
|
378
251
|
children,
|
|
379
252
|
className
|
|
@@ -504,8 +377,51 @@ function ConversationHistoryPanel({
|
|
|
504
377
|
isRefreshing = false,
|
|
505
378
|
hasNextPage = false,
|
|
506
379
|
isFetchingNextPage = false,
|
|
507
|
-
onLoadMore
|
|
380
|
+
onLoadMore,
|
|
381
|
+
onHoverIntent,
|
|
382
|
+
onHoverIntentEnd,
|
|
383
|
+
hoverIntentDelayMs = 150
|
|
508
384
|
}) {
|
|
385
|
+
const hoverTimer = useRef(null);
|
|
386
|
+
const hoverIntentThreadId = useRef(null);
|
|
387
|
+
const onHoverIntentRef = useRef(onHoverIntent);
|
|
388
|
+
onHoverIntentRef.current = onHoverIntent;
|
|
389
|
+
const onHoverIntentEndRef = useRef(onHoverIntentEnd);
|
|
390
|
+
onHoverIntentEndRef.current = onHoverIntentEnd;
|
|
391
|
+
const cancelHoverTimer = useCallback(() => {
|
|
392
|
+
if (hoverTimer.current === null) return;
|
|
393
|
+
clearTimeout(hoverTimer.current);
|
|
394
|
+
hoverTimer.current = null;
|
|
395
|
+
}, []);
|
|
396
|
+
const endHoverIntent = useCallback(() => {
|
|
397
|
+
var _a;
|
|
398
|
+
const threadId = hoverIntentThreadId.current;
|
|
399
|
+
if (threadId === null) return;
|
|
400
|
+
hoverIntentThreadId.current = null;
|
|
401
|
+
(_a = onHoverIntentEndRef.current) == null ? void 0 : _a.call(onHoverIntentEndRef, threadId);
|
|
402
|
+
}, []);
|
|
403
|
+
useEffect(
|
|
404
|
+
() => () => {
|
|
405
|
+
cancelHoverTimer();
|
|
406
|
+
endHoverIntent();
|
|
407
|
+
},
|
|
408
|
+
[cancelHoverTimer, endHoverIntent]
|
|
409
|
+
);
|
|
410
|
+
const handleRowEnter = (threadId) => {
|
|
411
|
+
if (!onHoverIntentRef.current) return;
|
|
412
|
+
cancelHoverTimer();
|
|
413
|
+
hoverTimer.current = setTimeout(() => {
|
|
414
|
+
var _a;
|
|
415
|
+
hoverTimer.current = null;
|
|
416
|
+
hoverIntentThreadId.current = threadId;
|
|
417
|
+
(_a = onHoverIntentRef.current) == null ? void 0 : _a.call(onHoverIntentRef, threadId);
|
|
418
|
+
}, hoverIntentDelayMs);
|
|
419
|
+
};
|
|
420
|
+
const handleRowLeave = (threadId) => {
|
|
421
|
+
cancelHoverTimer();
|
|
422
|
+
if (hoverIntentThreadId.current !== threadId) return;
|
|
423
|
+
endHoverIntent();
|
|
424
|
+
};
|
|
509
425
|
const origins = useMemo(
|
|
510
426
|
() => [...new Set(conversations.map(originKey))].sort(),
|
|
511
427
|
[conversations]
|
|
@@ -529,6 +445,14 @@ function ConversationHistoryPanel({
|
|
|
529
445
|
return items ? [{ group, items }] : [];
|
|
530
446
|
});
|
|
531
447
|
}, [activityFilter, conversations, originFilter]);
|
|
448
|
+
useEffect(() => {
|
|
449
|
+
const threadId = hoverIntentThreadId.current;
|
|
450
|
+
if (threadId === null) return;
|
|
451
|
+
const stillVisible = grouped.some(
|
|
452
|
+
({ items }) => items.some((conversation) => conversation.threadId === threadId)
|
|
453
|
+
);
|
|
454
|
+
if (!stillVisible) endHoverIntent();
|
|
455
|
+
}, [grouped, endHoverIntent]);
|
|
532
456
|
const visibleCount = grouped.reduce(
|
|
533
457
|
(count, group) => count + group.items.length,
|
|
534
458
|
0
|
|
@@ -629,6 +553,8 @@ function ConversationHistoryPanel({
|
|
|
629
553
|
"group flex items-start gap-2 rounded-md px-2 py-2 hover:bg-accent",
|
|
630
554
|
conversation.threadId === activeThreadId && "bg-primary/10 text-primary"
|
|
631
555
|
),
|
|
556
|
+
onMouseEnter: () => handleRowEnter(conversation.threadId),
|
|
557
|
+
onMouseLeave: () => handleRowLeave(conversation.threadId),
|
|
632
558
|
children: [
|
|
633
559
|
/* @__PURE__ */ jsxs(
|
|
634
560
|
"button",
|
|
@@ -922,7 +848,7 @@ const MentionSuggestionPopup = ({ clientRect, children }) => {
|
|
|
922
848
|
ref: refs.setFloating,
|
|
923
849
|
style: floatingStyles,
|
|
924
850
|
className: "z-[9999]",
|
|
925
|
-
onMouseDown: (
|
|
851
|
+
onMouseDown: (e2) => e2.preventDefault(),
|
|
926
852
|
children
|
|
927
853
|
}
|
|
928
854
|
) });
|
|
@@ -1016,11 +942,28 @@ function triggerFetchIfNeeded(store, scope, query, _targetCount, parentScope) {
|
|
|
1016
942
|
);
|
|
1017
943
|
store.setState((prev) => ({ ...prev }));
|
|
1018
944
|
}).catch((error) => {
|
|
1019
|
-
console.error(`[orchestrator] Fetch error for scope ${scopeId}:`, error);
|
|
1020
945
|
const currentState = store.state;
|
|
1021
946
|
const currentMeta = fetchState.meta || {};
|
|
1022
947
|
const errorAttempts = (currentMeta.errorAttempts || 0) + 1;
|
|
1023
948
|
const retriable = errorAttempts < MAX_ERROR_RETRIES;
|
|
949
|
+
if (retriable) {
|
|
950
|
+
athenaDiagnostics.emit("mentions.fetch.error", {
|
|
951
|
+
level: "warn",
|
|
952
|
+
data: {
|
|
953
|
+
scopeId,
|
|
954
|
+
attempt: errorAttempts,
|
|
955
|
+
retriable,
|
|
956
|
+
error: error instanceof Error ? error.message : String(error)
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
} else {
|
|
960
|
+
athenaDiagnostics.error(
|
|
961
|
+
"mentions.fetch.error",
|
|
962
|
+
error,
|
|
963
|
+
{ code: "mentions_fetch_failed", message: `Mention suggestions failed for ${scopeId}` },
|
|
964
|
+
{ scopeId, attempt: errorAttempts, retriable }
|
|
965
|
+
);
|
|
966
|
+
}
|
|
1024
967
|
updateFetchState(
|
|
1025
968
|
currentState.registry,
|
|
1026
969
|
scopeId,
|
|
@@ -1783,7 +1726,7 @@ const fetchFolderContents = async (context) => {
|
|
|
1783
1726
|
});
|
|
1784
1727
|
const rawAssets = data.getPaginatedAssetsForWorkspace || [];
|
|
1785
1728
|
const assets = rawAssets.filter(
|
|
1786
|
-
(
|
|
1729
|
+
(a11) => a11.athenaConvertedType !== "catalog" && a11.athenaOriginalType !== "catalog"
|
|
1787
1730
|
);
|
|
1788
1731
|
const items = assets.map(assetToMenuItem);
|
|
1789
1732
|
return {
|
|
@@ -2199,7 +2142,12 @@ const TiptapComposer = forwardRef(({ placeholder = "Message Athena... (type @ to
|
|
|
2199
2142
|
const ext = item.type.split("/")[1] || "png";
|
|
2200
2143
|
const file = new File([blob], `pasted-image-${Date.now()}.${ext}`, { type: item.type });
|
|
2201
2144
|
void addAttachment(file).catch((error) => {
|
|
2202
|
-
|
|
2145
|
+
athenaDiagnostics.error(
|
|
2146
|
+
"composer.attachment.error",
|
|
2147
|
+
error,
|
|
2148
|
+
{ code: "attachment_failed", message: "Pasted image upload failed" },
|
|
2149
|
+
{ source: "paste", type: file.type }
|
|
2150
|
+
);
|
|
2203
2151
|
});
|
|
2204
2152
|
}
|
|
2205
2153
|
handled = true;
|
|
@@ -2219,7 +2167,12 @@ const TiptapComposer = forwardRef(({ placeholder = "Message Athena... (type @ to
|
|
|
2219
2167
|
if (file.type.startsWith("image/")) {
|
|
2220
2168
|
event.preventDefault();
|
|
2221
2169
|
void addAttachment(file).catch((error) => {
|
|
2222
|
-
|
|
2170
|
+
athenaDiagnostics.error(
|
|
2171
|
+
"composer.attachment.error",
|
|
2172
|
+
error,
|
|
2173
|
+
{ code: "attachment_failed", message: "Dropped image upload failed" },
|
|
2174
|
+
{ source: "drop", type: file.type }
|
|
2175
|
+
);
|
|
2223
2176
|
});
|
|
2224
2177
|
handled = true;
|
|
2225
2178
|
}
|
|
@@ -2446,184 +2399,42 @@ const SignInConsent = ({ checked, onChange, children }) => /* @__PURE__ */ jsxs(
|
|
|
2446
2399
|
),
|
|
2447
2400
|
/* @__PURE__ */ jsx("span", { children })
|
|
2448
2401
|
] });
|
|
2449
|
-
const EXIT_ANIMATION_MS = 200;
|
|
2450
|
-
const EXIT_RESET_MS = 2500;
|
|
2451
|
-
const ContinuePill = ({ onClick, ariaLabel, dataTestId }) => {
|
|
2452
|
-
const [isExiting, setIsExiting] = useState(false);
|
|
2453
|
-
const onClickRef = useRef(onClick);
|
|
2454
|
-
const pendingOnClickRef = useRef(onClick);
|
|
2455
|
-
onClickRef.current = onClick;
|
|
2456
|
-
useEffect(() => {
|
|
2457
|
-
if (!isExiting) return;
|
|
2458
|
-
const dispatchTimer = setTimeout(
|
|
2459
|
-
() => pendingOnClickRef.current(),
|
|
2460
|
-
EXIT_ANIMATION_MS
|
|
2461
|
-
);
|
|
2462
|
-
const resetTimer = setTimeout(() => setIsExiting(false), EXIT_RESET_MS);
|
|
2463
|
-
return () => {
|
|
2464
|
-
clearTimeout(dispatchTimer);
|
|
2465
|
-
clearTimeout(resetTimer);
|
|
2466
|
-
};
|
|
2467
|
-
}, [isExiting]);
|
|
2468
|
-
const handleClick = () => {
|
|
2469
|
-
if (isExiting) return;
|
|
2470
|
-
pendingOnClickRef.current = onClickRef.current;
|
|
2471
|
-
setIsExiting(true);
|
|
2472
|
-
};
|
|
2473
|
-
return /* @__PURE__ */ jsxs(
|
|
2474
|
-
"button",
|
|
2475
|
-
{
|
|
2476
|
-
type: "button",
|
|
2477
|
-
onClick: handleClick,
|
|
2478
|
-
disabled: isExiting,
|
|
2479
|
-
className: cn(
|
|
2480
|
-
"group inline-flex items-center gap-1.5 rounded-full bg-primary px-3.5 py-1 text-xs font-medium text-primary-foreground shadow-sm",
|
|
2481
|
-
"transition-all duration-200 ease-out",
|
|
2482
|
-
"hover:bg-primary/90 hover:shadow-md active:scale-95",
|
|
2483
|
-
"animate-in fade-in slide-in-from-bottom-1",
|
|
2484
|
-
isExiting && "pointer-events-none scale-90 opacity-0"
|
|
2485
|
-
),
|
|
2486
|
-
"aria-label": ariaLabel,
|
|
2487
|
-
"data-testid": dataTestId,
|
|
2488
|
-
children: [
|
|
2489
|
-
/* @__PURE__ */ jsx(Play, { className: "size-3 fill-current transition-transform duration-200 ease-out group-hover:translate-x-0.5" }),
|
|
2490
|
-
/* @__PURE__ */ jsx("span", { children: "Continue" })
|
|
2491
|
-
]
|
|
2492
|
-
}
|
|
2493
|
-
);
|
|
2494
|
-
};
|
|
2495
|
-
function StatewireContinueRunButton({
|
|
2496
|
-
allowReadyFallback = false
|
|
2497
|
-
} = {}) {
|
|
2498
|
-
const status = useDeepAgentThreadStatus();
|
|
2499
|
-
const { runId } = useStatewireRuns();
|
|
2500
|
-
const sendCommand = useStatewireSendCommand();
|
|
2501
|
-
const isSettled = status === "stopped" || status === "error";
|
|
2502
|
-
if (!isSettled && !(allowReadyFallback && status === "ready")) return null;
|
|
2503
|
-
return /* @__PURE__ */ jsx(
|
|
2504
|
-
ContinuePill,
|
|
2505
|
-
{
|
|
2506
|
-
ariaLabel: "Continue this run from where it stopped",
|
|
2507
|
-
dataTestId: "statewire-continue-run",
|
|
2508
|
-
onClick: () => {
|
|
2509
|
-
sendCommand({
|
|
2510
|
-
type: "run/continue",
|
|
2511
|
-
...runId !== null && { runId }
|
|
2512
|
-
});
|
|
2513
|
-
}
|
|
2514
|
-
}
|
|
2515
|
-
);
|
|
2516
|
-
}
|
|
2517
|
-
function StatewireContinueRunAffordance() {
|
|
2518
|
-
const messageId = useAuiState((state) => state.message.id);
|
|
2519
|
-
const lastMessageId = useAuiState(
|
|
2520
|
-
(state) => {
|
|
2521
|
-
var _a;
|
|
2522
|
-
return (_a = state.thread.messages.at(-1)) == null ? void 0 : _a.id;
|
|
2523
|
-
}
|
|
2524
|
-
);
|
|
2525
|
-
const runMarker = useAuiState(
|
|
2526
|
-
(state) => {
|
|
2527
|
-
var _a;
|
|
2528
|
-
return (_a = readRunMarkerFromSourceMessages(state.message)) == null ? void 0 : _a.marker;
|
|
2529
|
-
}
|
|
2530
|
-
);
|
|
2531
|
-
const threadExtras = useAuiState((state) => state.thread.extras);
|
|
2532
|
-
const isContinuableMarker = runMarker === ATHENA_RUN_MARKER_CANCELLED || runMarker === ATHENA_RUN_MARKER_FAILED;
|
|
2533
|
-
if (messageId !== lastMessageId || !isContinuableMarker) return null;
|
|
2534
|
-
if (!hasStatewireThreadExtras(threadExtras)) return null;
|
|
2535
|
-
return /* @__PURE__ */ jsx("div", { className: "flex w-full justify-center py-1", children: /* @__PURE__ */ jsx(StatewireContinueRunButton, { allowReadyFallback: true }) });
|
|
2536
|
-
}
|
|
2537
|
-
function StatewireRunEndedFooter({
|
|
2538
|
-
className
|
|
2539
|
-
} = {}) {
|
|
2540
|
-
const threadExtras = useAuiState((state) => state.thread.extras);
|
|
2541
|
-
if (!hasStatewireThreadExtras(threadExtras)) return null;
|
|
2542
|
-
return /* @__PURE__ */ jsx(StatewireRunEndedFooterContent, { className });
|
|
2543
|
-
}
|
|
2544
|
-
function StatewireRunEndedFooterContent({
|
|
2545
|
-
className
|
|
2546
|
-
}) {
|
|
2547
|
-
const status = useDeepAgentThreadStatus();
|
|
2548
|
-
const { error } = useStatewireRuns();
|
|
2549
|
-
const tailEndingKind = useAuiState((state) => {
|
|
2550
|
-
var _a;
|
|
2551
|
-
const last = state.thread.messages.at(-1);
|
|
2552
|
-
return last ? ((_a = readRuntimeMessageFromSourceMessages(last)) == null ? void 0 : _a.kind) ?? null : null;
|
|
2553
|
-
});
|
|
2554
|
-
const tailEndingSilent = useAuiState((state) => {
|
|
2555
|
-
var _a;
|
|
2556
|
-
const last = state.thread.messages.at(-1);
|
|
2557
|
-
return last ? ((_a = readRuntimeMessageFromSourceMessages(last)) == null ? void 0 : _a.silent) ?? false : false;
|
|
2558
|
-
});
|
|
2559
|
-
if (status !== "stopped" && status !== "error") return null;
|
|
2560
|
-
if (status === "stopped" && tailEndingSilent) return null;
|
|
2561
|
-
const tailRendersEnding = tailEndingKind !== null && !tailEndingSilent;
|
|
2562
|
-
const tailMatchesStatus = status === "error" ? tailEndingKind === "failed" : tailEndingKind === "stopped" || tailEndingKind === "paused";
|
|
2563
|
-
if (tailRendersEnding && tailMatchesStatus) return null;
|
|
2564
|
-
const tailOwnsContinue = tailRendersEnding && (tailEndingKind === "stopped" || tailEndingKind === "paused" || tailEndingKind === "failed");
|
|
2565
|
-
const action = tailOwnsContinue ? void 0 : /* @__PURE__ */ jsx(StatewireContinueRunButton, {});
|
|
2566
|
-
const message = status === "error" ? {
|
|
2567
|
-
kind: "failed",
|
|
2568
|
-
reason: "error",
|
|
2569
|
-
severity: "error",
|
|
2570
|
-
title: "Run failed",
|
|
2571
|
-
detail: void 0,
|
|
2572
|
-
text: (error == null ? void 0 : error.message) ? `⚠️ The run failed: ${error.message}` : void 0,
|
|
2573
|
-
silent: false,
|
|
2574
|
-
isSoleSourceMessage: true
|
|
2575
|
-
} : {
|
|
2576
|
-
kind: "stopped",
|
|
2577
|
-
reason: void 0,
|
|
2578
|
-
severity: "info",
|
|
2579
|
-
title: "Conversation stopped",
|
|
2580
|
-
detail: void 0,
|
|
2581
|
-
text: void 0,
|
|
2582
|
-
silent: false,
|
|
2583
|
-
isSoleSourceMessage: true
|
|
2584
|
-
};
|
|
2585
|
-
return /* @__PURE__ */ jsx(
|
|
2586
|
-
RuntimeMessageCard,
|
|
2587
|
-
{
|
|
2588
|
-
message,
|
|
2589
|
-
action,
|
|
2590
|
-
className: cn("mx-auto max-w-[95%]", className)
|
|
2591
|
-
}
|
|
2592
|
-
);
|
|
2593
|
-
}
|
|
2594
2402
|
export {
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2403
|
+
O as BranchPicker,
|
|
2404
|
+
Q as COMPOSER_DOCK_CLASS,
|
|
2405
|
+
U as COMPOSER_EDITOR_ROW_CLASS,
|
|
2406
|
+
V as COMPOSER_SURFACE_CLASS,
|
|
2407
|
+
X as COMPOSER_TOOLBAR_CLASS,
|
|
2408
|
+
Y as ChatComposerDock,
|
|
2601
2409
|
ChatHeader,
|
|
2602
2410
|
ChatHeaderActions,
|
|
2603
2411
|
ChatHeaderIdentity,
|
|
2604
2412
|
ChatHeaderRoot,
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
ContinuePill,
|
|
2413
|
+
Z as ChatThreadShell,
|
|
2414
|
+
_ as ComposerSendButton,
|
|
2415
|
+
$ as ComposerSendOrStop,
|
|
2416
|
+
a0 as ComposerStopButton,
|
|
2417
|
+
C as ContinuePill,
|
|
2610
2418
|
ConversationHistoryPanel,
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2419
|
+
g as HISTORY_EDGE_NEAR_MARGIN_PX,
|
|
2420
|
+
H as HITL_PENDING_RESUME_GRACE_MS,
|
|
2421
|
+
a as HistoryEdgeRow,
|
|
2422
|
+
a1 as IconButton,
|
|
2423
|
+
a2 as MarkdownText,
|
|
2424
|
+
a3 as MentionAuthCtx,
|
|
2425
|
+
a4 as MentionChip,
|
|
2615
2426
|
MentionExtension,
|
|
2616
2427
|
MentionIcon,
|
|
2617
|
-
|
|
2428
|
+
a5 as MentionLink,
|
|
2618
2429
|
MentionMenuSection,
|
|
2619
2430
|
MentionSuggestionList,
|
|
2620
2431
|
MentionSuggestionPopup,
|
|
2621
2432
|
MentionSuggestionsExtension,
|
|
2622
2433
|
MenuList,
|
|
2623
|
-
|
|
2434
|
+
a6 as MessageActionsReadOnlyProvider,
|
|
2624
2435
|
PendingAttachmentUploads,
|
|
2625
2436
|
ROOT_MENTION_CATEGORIES,
|
|
2626
|
-
RuntimeMessageCard,
|
|
2437
|
+
R as RuntimeMessageCard,
|
|
2627
2438
|
SIMPLE_SEARCH_QUERY,
|
|
2628
2439
|
SignInCard,
|
|
2629
2440
|
SignInConsent,
|
|
@@ -2631,38 +2442,45 @@ export {
|
|
|
2631
2442
|
SignInSecondaryButton,
|
|
2632
2443
|
SignInSelect,
|
|
2633
2444
|
SignInTextField,
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2445
|
+
a7 as SmallIconButton,
|
|
2446
|
+
S as StatewireApprovalCard,
|
|
2447
|
+
S2 as StatewireContinueRunAffordance,
|
|
2448
|
+
a10 as StatewireContinueRunButton,
|
|
2449
|
+
b as StatewireHistoryEdge,
|
|
2450
|
+
c as StatewireQueuedMessages,
|
|
2451
|
+
b2 as StatewireRunEndedFooter,
|
|
2452
|
+
d as StatewireToolOutputsContext,
|
|
2638
2453
|
THREAD_HEADER_ACTIONS_CLASS,
|
|
2639
2454
|
THREAD_HEADER_CLASS,
|
|
2640
|
-
|
|
2455
|
+
a8 as THREAD_HEADER_ICON_CLASS,
|
|
2641
2456
|
THREAD_HEADER_PILL_CLASS,
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2457
|
+
a9 as THREAD_PANEL_CLASS,
|
|
2458
|
+
aa as THREAD_SCROLL_TO_BOTTOM_CLASS,
|
|
2459
|
+
T as THREAD_VIEWPORT_ATTR,
|
|
2460
|
+
ab as TextShimmerLoader,
|
|
2461
|
+
ac as ThreadRunningIndicator,
|
|
2646
2462
|
TiptapComposer,
|
|
2647
|
-
|
|
2648
|
-
|
|
2463
|
+
ad as UserEditComposer,
|
|
2464
|
+
ae as UserMessage,
|
|
2649
2465
|
assetTypeToIcon,
|
|
2650
2466
|
assetTypeToThumb,
|
|
2651
2467
|
buildRootMenuItems,
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2468
|
+
af as configureAssetIconBasePath,
|
|
2469
|
+
ag as createAssistantMessage,
|
|
2470
|
+
ah as createOlympusAssetUrl,
|
|
2655
2471
|
fetchGraphQL,
|
|
2656
2472
|
makeMentionUrl,
|
|
2657
|
-
|
|
2473
|
+
ai as normalizeAthenaMentionHtml,
|
|
2658
2474
|
parseMentionAnchorAttributes,
|
|
2659
|
-
|
|
2660
|
-
|
|
2475
|
+
aj as parseMentionUrl,
|
|
2476
|
+
ak as parseMentionsInText,
|
|
2661
2477
|
plainTextToTiptapContent,
|
|
2662
|
-
|
|
2478
|
+
al as resolveComposerAction,
|
|
2663
2479
|
useMentionAuth,
|
|
2664
2480
|
useMentionSuggestions,
|
|
2665
|
-
|
|
2481
|
+
am as useMessageActionsReadOnly,
|
|
2482
|
+
u as useStatewireApprovalRequest,
|
|
2483
|
+
e as useStatewireToolOutputs,
|
|
2666
2484
|
webpageMentionFingerprint
|
|
2667
2485
|
};
|
|
2668
2486
|
//# sourceMappingURL=chat-ui.js.map
|