@copilotkit/vue 1.82.0 → 2.0.0-rc.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/AGENTS.md +1 -1
- package/dist/index.cjs +76 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +14290 -287
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/v2/components/A2UIMessageRenderer.d.ts.map +1 -1
- package/dist/v2/components/a2ui/catalog.d.ts +1 -1
- package/dist/v2/components/a2ui/catalog.d.ts.map +1 -1
- package/dist/v2/components/chat/BasicMarkdown.vue.d.ts +9 -0
- package/dist/v2/components/chat/BasicMarkdown.vue.d.ts.map +1 -0
- package/dist/v2/components/chat/CopilotChatAssistantMessage.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatReasoningMessage.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/StreamingMarkdownDefault.vue.d.ts +10 -0
- package/dist/v2/components/chat/StreamingMarkdownDefault.vue.d.ts.map +1 -0
- package/dist/v2/components/chat/index.d.ts +2 -0
- package/dist/v2/components/chat/index.d.ts.map +1 -1
- package/dist/v2/hooks/index.d.ts +0 -1
- package/dist/v2/hooks/index.d.ts.map +1 -1
- package/dist/v2/hooks/use-pin-to-send.d.ts +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.mjs +195 -188
- package/dist/v2/providers/CopilotKitProvider.types.d.ts +10 -0
- package/dist/v2/providers/CopilotKitProvider.types.d.ts.map +1 -1
- package/dist/v2/providers/CopilotKitProvider.vue.d.ts.map +1 -1
- package/dist/v2/providers/index.d.ts +1 -0
- package/dist/v2/providers/index.d.ts.map +1 -1
- package/dist/v2/providers/markdown-renderer.d.ts +23 -0
- package/dist/v2/providers/markdown-renderer.d.ts.map +1 -0
- package/package.json +8 -9
- package/src/styles/globals.css +0 -97
- package/src/v2/components/A2UIMessageRenderer.ts +3 -2
- package/src/v2/components/a2ui/catalog.ts +4 -2
- package/src/v2/components/chat/BasicMarkdown.vue +158 -0
- package/src/v2/components/chat/CopilotChatAssistantMessage.vue +27 -536
- package/src/v2/components/chat/CopilotChatReasoningMessage.vue +7 -2
- package/src/v2/components/chat/StreamingMarkdownDefault.vue +57 -0
- package/src/v2/components/chat/__tests__/BasicMarkdown.test.ts +69 -0
- package/src/v2/components/chat/__tests__/CopilotChat.e2e.test.ts +53 -16
- package/src/v2/components/chat/__tests__/CopilotChat.licenseWarning.test.ts +5 -7
- package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.markdown.test.ts +54 -0
- package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.test.ts +0 -41
- package/src/v2/components/chat/__tests__/CopilotChatToolRerenders.e2e.test.ts +18 -4
- package/src/v2/components/chat/__tests__/markdown-renderer-config.e2e.test.ts +59 -0
- package/src/v2/components/chat/index.ts +2 -0
- package/src/v2/hooks/__tests__/use-agent.e2e.test.ts +7 -3
- package/src/v2/hooks/__tests__/use-frontend-tool.e2e.test.ts +7 -3
- package/src/v2/hooks/index.ts +0 -1
- package/src/v2/hooks/use-pin-to-send.ts +1 -1
- package/src/v2/providers/CopilotKitProvider.types.ts +10 -0
- package/src/v2/providers/CopilotKitProvider.vue +2 -0
- package/src/v2/providers/__tests__/CopilotKitProvider.headersAtSendTime.test.ts +1 -1
- package/src/v2/providers/__tests__/markdown-renderer.test.ts +40 -0
- package/src/v2/providers/index.ts +1 -0
- package/src/v2/providers/markdown-renderer.ts +39 -0
- package/vite.config.ts +1 -3
- package/dist/use-render-activity-message-CrBnMluO.js +0 -12544
- package/dist/use-render-activity-message-CrBnMluO.js.map +0 -1
- package/dist/use-render-activity-message-DuOFLc23.cjs +0 -70
- package/dist/use-render-activity-message-DuOFLc23.cjs.map +0 -1
- package/dist/v2/hooks/use-katex-styles.d.ts +0 -22
- package/dist/v2/hooks/use-katex-styles.d.ts.map +0 -1
- package/src/v2/hooks/__tests__/use-katex-styles.test.ts +0 -69
- package/src/v2/hooks/use-katex-styles.ts +0 -44
package/dist/v2/index.mjs
CHANGED
|
@@ -1,194 +1,201 @@
|
|
|
1
|
-
|
|
1
|
+
import { A2UIActivityContentSchema as a, A2UISurfaceActivityRenderer as n, A2UISurfaceActivityType as o, ActivityDeltaEventSchema as i, ActivityMessageSchema as c, ActivitySnapshotEventSchema as s, AddOperationSchema as S, AgentCapabilitiesSchema as h, AssistantMessageSchema as m, AttributableSchema as u, AudioInputContentSchema as r, AudioInputContentSchema as p, AudioInputContentSchema as C, BaseEventSchema as l, BaseMessageSchema as g, BasicMarkdown as d, ContentPartSchema as v, ContextSchema as I, CopilotChat as E, CopilotChatAssistantMessage as R, CopilotChatAttachmentQueue as A, CopilotChatAttachmentRenderer as M, CopilotChatAudioRecorder as T, CopilotChatConfigurationProvider as b, CopilotChatDefaultLabels as O, CopilotChatInput as y, CopilotChatMessageView as P, CopilotChatReasoningMessage as x, CopilotChatSuggestionPill as f, CopilotChatSuggestionView as U, CopilotChatToggleButton as D, CopilotChatToggleButtonCloseIcon as V, CopilotChatToggleButtonOpenIcon as F, CopilotChatToolCallsView as w, CopilotChatUserMessage as K, CopilotChatView as L, CopilotKit as k, CopilotKitCoreVue as B, CopilotKitInspector as G, CopilotKitProvider as H, CopilotModalHeader as J, CopilotPopup as N, CopilotPopupView as _, CopilotSidebar as Q, CopilotSidebarView as W, CopilotThreadsDrawer as Y, CopyOperationSchema as j, CustomEventSchema as q, DataSourceSchema as z, DeveloperMessageSchema as X, DocumentInputContentSchema as Z, DocumentInputContentSchema as $, DocumentInputContentSchema as ee, EventSchema as te, EventSchema as ae, EventTypeSchema as ne, ExecutionCapabilitiesSchema as oe, FileSourceSchema as ie, FunctionCallSchema as ce, GenerateSandboxedUiArgsSchema as se, HumanInTheLoopCapabilitiesSchema as Se, IdentityCapabilitiesSchema as he, ImageInputContentSchema as me, ImageInputContentSchema as ue, ImageInputContentSchema as re, DataSourceSchema as pe, ContentPartSchema as Ce, InputContentSourceSchema as le, InputContentUrlSourceSchema as ge, InterruptSchema as de, JsonPatchOperationSchema as ve, JsonPatchSchema as Ie, JsonPointerSchema as Ee, LicenseContextKey as Re, MARKDOWN_RENDERER_KEY as Ae, MCPAppsActivityRenderer as Me, MessageSchema as Te, MessagesSnapshotEventSchema as be, MetadataSchema as Oe, MoveOperationSchema as ye, MultiAgentCapabilitiesSchema as Pe, MultimodalCapabilitiesSchema as xe, MultimodalInputCapabilitiesSchema as fe, MultimodalOutputCapabilitiesSchema as Ue, OpenGenerativeUIActivityRenderer as De, OpenGenerativeUIActivityType as Ve, OpenGenerativeUIContentSchema as Fe, OpenGenerativeUIRenderer as we, OpenGenerativeUIToolRenderer as Ke, OptionalMetadataSchema as Le, OutputCapabilitiesSchema as ke, InputContentSourceSchema as Be, RawEventSchema as Ge, ReasoningCapabilitiesSchema as He, ReasoningEncryptedValueEventSchema as Je, ReasoningEncryptedValueSubtypeSchema as Ne, ReasoningEndEventSchema as _e, ReasoningMessageChunkEventSchema as Qe, ReasoningMessageContentEventSchema as We, ReasoningMessageEndEventSchema as Ye, ReasoningMessageSchema as je, ReasoningMessageStartEventSchema as qe, ReasoningStartEventSchema as ze, RemoveOperationSchema as Xe, ReplaceOperationSchema as Ze, ResumeEntrySchema as $e, RoleSchema as et, RunAgentInputSchema as tt, RunErrorEventSchema as at, RunFinishedCancelledOutcomeSchema as nt, RunFinishedEventSchema as ot, RunFinishedInterruptOutcomeSchema as it, RunFinishedOutcomeSchema as ct, RunFinishedSuccessOutcomeSchema as st, RunStartedEventSchema as St, StateCapabilitiesSchema as ht, StateDeltaEventSchema as mt, StateSchema as ut, StateSnapshotEventSchema as rt, StepFinishedEventSchema as pt, StepStartedEventSchema as Ct, StreamingMarkdownDefault as lt, SubagentErrorEventSchema as gt, SubagentFinishedEventSchema as dt, SubagentFinishedOutcomeSchema as vt, SubagentFinishedSuccessOutcomeSchema as It, SubagentFinishedSuspendedOutcomeSchema as Et, SubagentInfoSchema as Rt, SubagentRunIdSchema as At, SubagentStartedEventSchema as Mt, SystemMessageSchema as Tt, TestOperationSchema as bt, TextInputContentSchema as Ot, TextMessageChunkEventSchema as yt, TextMessageContentEventSchema as Pt, TextMessageEndEventSchema as xt, TextMessageRoleSchema as ft, TextMessageStartEventSchema as Ut, TextInputContentSchema as Dt, TokenUsageSchema as Vt, ToolCallArgsEventSchema as Ft, ToolCallChunkEventSchema as wt, ToolCallEndEventSchema as Kt, ToolCallResultEventSchema as Lt, ToolCallSchema as kt, ToolCallStartEventSchema as Bt, ToolMessageSchema as Gt, ToolSchema as Ht, ToolsCapabilitiesSchema as Jt, TransportCapabilitiesSchema as Nt, InputContentUrlSourceSchema as _t, UseAgentUpdate as Qt, UserMessageSchema as Wt, VideoInputContentSchema as Yt, VideoInputContentSchema as jt, VideoInputContentSchema as qt, createA2UIMessageRenderer as zt, createDefaultLicenseRef as Xt, defineToolCallRenderer as Zt, extractCompleteStyles as $t, getOperationSurfaceId as ea, isVueComponentRenderer as ta, processPartialHtml as aa, useAgent as na, useAgentContext as oa, useAttachments as ia, useCapabilities as ca, useComponent as sa, useConfigureSuggestions as Sa, useCopilotAction as ha, useCopilotChatConfiguration as ma, useCopilotKit as ua, useCopilotReadable as ra, useDefaultRenderTool as pa, useFrontendTool as Ca, useHumanInTheLoop as la, useInterrupt as ga, useKeyboardHeight as da, useLicenseContext as va, useMarkdownRenderer as Ia, useRenderActivityMessage as Ea, useRenderCustomMessages as Ra, useRenderTool as Aa, useSandboxFunctions as Ma, useSuggestions as Ta, useThreads as ba, vueBasicCatalog as Oa } from "../index.mjs";
|
|
2
2
|
export * from "@ag-ui/client";
|
|
3
|
-
import { PROTOCOL_VERSION as
|
|
4
|
-
|
|
5
|
-
import { MCPAppsActivityContentSchema as
|
|
6
|
-
import { createLicenseContextValue as
|
|
3
|
+
import { PROTOCOL_VERSION as xa } from "@ag-ui/client";
|
|
4
|
+
export * from "@copilotkit/core";
|
|
5
|
+
import { MCPAppsActivityContentSchema as Da, MCPAppsActivityType as Va, ɵrunMcpFollowUp as Fa } from "@copilotkit/mcp-apps-renderer/activity";
|
|
6
|
+
import { createLicenseContextValue as Ka } from "@copilotkit/shared";
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
8
|
+
a as A2UIActivityContentSchema,
|
|
9
|
+
n as A2UISurfaceActivityRenderer,
|
|
10
|
+
o as A2UISurfaceActivityType,
|
|
11
|
+
i as ActivityDeltaEventSchema,
|
|
12
|
+
c as ActivityMessageSchema,
|
|
13
|
+
s as ActivitySnapshotEventSchema,
|
|
14
|
+
S as AddOperationSchema,
|
|
15
|
+
h as AgentCapabilitiesSchema,
|
|
16
|
+
m as AssistantMessageSchema,
|
|
17
|
+
u as AttributableSchema,
|
|
18
|
+
r as AudioInputContentSchema,
|
|
19
|
+
p as AudioInputPartSchema,
|
|
20
|
+
C as AudioPartSchema,
|
|
21
|
+
l as BaseEventSchema,
|
|
22
|
+
g as BaseMessageSchema,
|
|
23
|
+
d as BasicMarkdown,
|
|
24
|
+
v as ContentPartSchema,
|
|
24
25
|
I as ContextSchema,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
k as
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
N as
|
|
26
|
+
E as CopilotChat,
|
|
27
|
+
R as CopilotChatAssistantMessage,
|
|
28
|
+
A as CopilotChatAttachmentQueue,
|
|
29
|
+
M as CopilotChatAttachmentRenderer,
|
|
30
|
+
T as CopilotChatAudioRecorder,
|
|
31
|
+
b as CopilotChatConfigurationProvider,
|
|
32
|
+
O as CopilotChatDefaultLabels,
|
|
33
|
+
y as CopilotChatInput,
|
|
34
|
+
P as CopilotChatMessageView,
|
|
35
|
+
x as CopilotChatReasoningMessage,
|
|
36
|
+
f as CopilotChatSuggestionPill,
|
|
37
|
+
U as CopilotChatSuggestionView,
|
|
38
|
+
D as CopilotChatToggleButton,
|
|
39
|
+
V as CopilotChatToggleButtonCloseIcon,
|
|
40
|
+
F as CopilotChatToggleButtonOpenIcon,
|
|
41
|
+
w as CopilotChatToolCallsView,
|
|
42
|
+
K as CopilotChatUserMessage,
|
|
43
|
+
L as CopilotChatView,
|
|
44
|
+
k as CopilotKit,
|
|
45
|
+
B as CopilotKitCoreVue,
|
|
46
|
+
G as CopilotKitInspector,
|
|
47
|
+
H as CopilotKitProvider,
|
|
48
|
+
J as CopilotModalHeader,
|
|
49
|
+
N as CopilotPopup,
|
|
50
|
+
_ as CopilotPopupView,
|
|
49
51
|
Q as CopilotSidebar,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
52
|
+
W as CopilotSidebarView,
|
|
53
|
+
Y as CopilotThreadsDrawer,
|
|
54
|
+
j as CopyOperationSchema,
|
|
55
|
+
q as CustomEventSchema,
|
|
56
|
+
z as DataSourceSchema,
|
|
57
|
+
X as DeveloperMessageSchema,
|
|
58
|
+
Z as DocumentInputContentSchema,
|
|
59
|
+
$ as DocumentInputPartSchema,
|
|
60
|
+
ee as DocumentPartSchema,
|
|
61
|
+
te as EventSchema,
|
|
62
|
+
ae as EventSchemas,
|
|
63
|
+
ne as EventTypeSchema,
|
|
64
|
+
oe as ExecutionCapabilitiesSchema,
|
|
65
|
+
ie as FileSourceSchema,
|
|
66
|
+
ce as FunctionCallSchema,
|
|
67
|
+
se as GenerateSandboxedUiArgsSchema,
|
|
68
|
+
Se as HumanInTheLoopCapabilitiesSchema,
|
|
69
|
+
he as IdentityCapabilitiesSchema,
|
|
70
|
+
me as ImageInputContentSchema,
|
|
71
|
+
ue as ImageInputPartSchema,
|
|
72
|
+
re as ImagePartSchema,
|
|
73
|
+
pe as InputContentDataSourceSchema,
|
|
74
|
+
Ce as InputContentSchema,
|
|
75
|
+
le as InputContentSourceSchema,
|
|
76
|
+
ge as InputContentUrlSourceSchema,
|
|
77
|
+
de as InterruptSchema,
|
|
78
|
+
ve as JsonPatchOperationSchema,
|
|
79
|
+
Ie as JsonPatchSchema,
|
|
80
|
+
Ee as JsonPointerSchema,
|
|
81
|
+
Re as LicenseContextKey,
|
|
82
|
+
Ae as MARKDOWN_RENDERER_KEY,
|
|
83
|
+
Da as MCPAppsActivityContentSchema,
|
|
84
|
+
Me as MCPAppsActivityRenderer,
|
|
85
|
+
Va as MCPAppsActivityType,
|
|
86
|
+
Te as MessageSchema,
|
|
87
|
+
be as MessagesSnapshotEventSchema,
|
|
88
|
+
Oe as MetadataSchema,
|
|
89
|
+
ye as MoveOperationSchema,
|
|
90
|
+
Pe as MultiAgentCapabilitiesSchema,
|
|
91
|
+
xe as MultimodalCapabilitiesSchema,
|
|
92
|
+
fe as MultimodalInputCapabilitiesSchema,
|
|
93
|
+
Ue as MultimodalOutputCapabilitiesSchema,
|
|
94
|
+
De as OpenGenerativeUIActivityRenderer,
|
|
95
|
+
Ve as OpenGenerativeUIActivityType,
|
|
96
|
+
Fe as OpenGenerativeUIContentSchema,
|
|
97
|
+
we as OpenGenerativeUIRenderer,
|
|
98
|
+
Ke as OpenGenerativeUIToolRenderer,
|
|
99
|
+
Le as OptionalMetadataSchema,
|
|
100
|
+
ke as OutputCapabilitiesSchema,
|
|
101
|
+
xa as PROTOCOL_VERSION,
|
|
102
|
+
Be as PartSourceSchema,
|
|
103
|
+
Ge as RawEventSchema,
|
|
104
|
+
He as ReasoningCapabilitiesSchema,
|
|
105
|
+
Je as ReasoningEncryptedValueEventSchema,
|
|
106
|
+
Ne as ReasoningEncryptedValueSubtypeSchema,
|
|
107
|
+
_e as ReasoningEndEventSchema,
|
|
108
|
+
Qe as ReasoningMessageChunkEventSchema,
|
|
109
|
+
We as ReasoningMessageContentEventSchema,
|
|
110
|
+
Ye as ReasoningMessageEndEventSchema,
|
|
111
|
+
je as ReasoningMessageSchema,
|
|
112
|
+
qe as ReasoningMessageStartEventSchema,
|
|
113
|
+
ze as ReasoningStartEventSchema,
|
|
114
|
+
Xe as RemoveOperationSchema,
|
|
115
|
+
Ze as ReplaceOperationSchema,
|
|
116
|
+
$e as ResumeEntrySchema,
|
|
117
|
+
et as RoleSchema,
|
|
118
|
+
tt as RunAgentInputSchema,
|
|
119
|
+
at as RunErrorEventSchema,
|
|
120
|
+
nt as RunFinishedCancelledOutcomeSchema,
|
|
121
|
+
ot as RunFinishedEventSchema,
|
|
122
|
+
it as RunFinishedInterruptOutcomeSchema,
|
|
123
|
+
ct as RunFinishedOutcomeSchema,
|
|
124
|
+
st as RunFinishedSuccessOutcomeSchema,
|
|
125
|
+
St as RunStartedEventSchema,
|
|
126
|
+
ht as StateCapabilitiesSchema,
|
|
127
|
+
mt as StateDeltaEventSchema,
|
|
128
|
+
ut as StateSchema,
|
|
129
|
+
rt as StateSnapshotEventSchema,
|
|
130
|
+
pt as StepFinishedEventSchema,
|
|
131
|
+
Ct as StepStartedEventSchema,
|
|
132
|
+
lt as StreamingMarkdownDefault,
|
|
133
|
+
gt as SubagentErrorEventSchema,
|
|
134
|
+
dt as SubagentFinishedEventSchema,
|
|
135
|
+
vt as SubagentFinishedOutcomeSchema,
|
|
136
|
+
It as SubagentFinishedSuccessOutcomeSchema,
|
|
137
|
+
Et as SubagentFinishedSuspendedOutcomeSchema,
|
|
138
|
+
Rt as SubagentInfoSchema,
|
|
139
|
+
At as SubagentRunIdSchema,
|
|
140
|
+
Mt as SubagentStartedEventSchema,
|
|
141
|
+
Tt as SystemMessageSchema,
|
|
142
|
+
bt as TestOperationSchema,
|
|
143
|
+
Ot as TextInputContentSchema,
|
|
144
|
+
yt as TextMessageChunkEventSchema,
|
|
145
|
+
Pt as TextMessageContentEventSchema,
|
|
146
|
+
xt as TextMessageEndEventSchema,
|
|
147
|
+
ft as TextMessageRoleSchema,
|
|
148
|
+
Ut as TextMessageStartEventSchema,
|
|
149
|
+
Dt as TextPartSchema,
|
|
150
|
+
Vt as TokenUsageSchema,
|
|
151
|
+
Ft as ToolCallArgsEventSchema,
|
|
152
|
+
wt as ToolCallChunkEventSchema,
|
|
153
|
+
Kt as ToolCallEndEventSchema,
|
|
154
|
+
Lt as ToolCallResultEventSchema,
|
|
155
|
+
kt as ToolCallSchema,
|
|
156
|
+
Bt as ToolCallStartEventSchema,
|
|
157
|
+
Gt as ToolMessageSchema,
|
|
158
|
+
Ht as ToolSchema,
|
|
159
|
+
Jt as ToolsCapabilitiesSchema,
|
|
160
|
+
Nt as TransportCapabilitiesSchema,
|
|
161
|
+
_t as UrlSourceSchema,
|
|
162
|
+
Qt as UseAgentUpdate,
|
|
163
|
+
Wt as UserMessageSchema,
|
|
164
|
+
Yt as VideoInputContentSchema,
|
|
165
|
+
jt as VideoInputPartSchema,
|
|
166
|
+
qt as VideoPartSchema,
|
|
167
|
+
zt as createA2UIMessageRenderer,
|
|
168
|
+
Xt as createDefaultLicenseRef,
|
|
169
|
+
Ka as createLicenseContextValue,
|
|
170
|
+
Zt as defineToolCallRenderer,
|
|
171
|
+
$t as extractCompleteStyles,
|
|
172
|
+
ea as getOperationSurfaceId,
|
|
173
|
+
ta as isVueComponentRenderer,
|
|
174
|
+
aa as processPartialHtml,
|
|
175
|
+
na as useAgent,
|
|
176
|
+
oa as useAgentContext,
|
|
177
|
+
ia as useAttachments,
|
|
178
|
+
ca as useCapabilities,
|
|
179
|
+
sa as useComponent,
|
|
180
|
+
Sa as useConfigureSuggestions,
|
|
181
|
+
ha as useCopilotAction,
|
|
182
|
+
ma as useCopilotChatConfiguration,
|
|
183
|
+
ua as useCopilotKit,
|
|
184
|
+
ra as useCopilotReadable,
|
|
185
|
+
pa as useDefaultRenderTool,
|
|
186
|
+
Ca as useFrontendTool,
|
|
187
|
+
la as useHumanInTheLoop,
|
|
188
|
+
ga as useInterrupt,
|
|
189
|
+
da as useKeyboardHeight,
|
|
190
|
+
va as useLicenseContext,
|
|
191
|
+
Ia as useMarkdownRenderer,
|
|
192
|
+
Ea as useRenderActivityMessage,
|
|
193
|
+
Ra as useRenderCustomMessages,
|
|
194
|
+
Aa as useRenderTool,
|
|
195
|
+
Ma as useSandboxFunctions,
|
|
196
|
+
Ta as useSuggestions,
|
|
197
|
+
ba as useThreads,
|
|
198
|
+
Oa as vueBasicCatalog,
|
|
199
|
+
Fa as ɵrunMcpFollowUp
|
|
193
200
|
};
|
|
194
201
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -3,6 +3,7 @@ import type { CopilotKitCoreErrorCode, CopilotKitHeadersSource, CopilotKitMessag
|
|
|
3
3
|
import type { DebugConfig } from "@copilotkit/shared";
|
|
4
4
|
import type { A2UITheme, SandboxFunction, VueActivityMessageRenderer, VueCustomMessageRenderer, VueFrontendTool, VueHumanInTheLoop, VueToolCallRenderer } from "../types";
|
|
5
5
|
import type { Component } from "vue";
|
|
6
|
+
import type { MarkdownRendererValue } from "./markdown-renderer";
|
|
6
7
|
export interface CopilotKitProviderProps {
|
|
7
8
|
runtimeUrl?: string;
|
|
8
9
|
/**
|
|
@@ -106,6 +107,15 @@ export interface CopilotKitProviderProps {
|
|
|
106
107
|
*/
|
|
107
108
|
allowSameOriginFallback?: boolean;
|
|
108
109
|
};
|
|
110
|
+
/**
|
|
111
|
+
* Global markdown renderer for assistant/reasoning messages. Either a Vue
|
|
112
|
+
* component (escape hatch — receives `{ content: string; isStreaming?: boolean }`)
|
|
113
|
+
* or a `DefaultMarkdownRendererProps` config object (e.g.
|
|
114
|
+
* `{ nodeRenderers: { codeBlock: ShikiBlock } }`) to configure the built-in
|
|
115
|
+
* streaming renderer without writing a wrapper. Overrides the built-in default;
|
|
116
|
+
* a per-message slot still wins.
|
|
117
|
+
*/
|
|
118
|
+
markdownRenderer?: MarkdownRendererValue;
|
|
109
119
|
/**
|
|
110
120
|
* Enable debug logging for the client-side event pipeline.
|
|
111
121
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotKitProvider.types.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotKitProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"CopilotKitProvider.types.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotKitProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACxD,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAClD,eAAe,CAAC,EAAE,mBAAmB,CAAC,GAAG,CAAC,EAAE,CAAC;IAC7C,sBAAsB,CAAC,EAAE,0BAA0B,CAAC,OAAO,CAAC,EAAE,CAAC;IAC/D,oBAAoB,CAAC,EAAE,wBAAwB,EAAE,CAAC;IAClD,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACrC,gBAAgB,CAAC,EAAE;QACjB,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;QACrC,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAClC;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAChB,KAAK,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,uBAAuB,CAAC;QAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC9B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE,SAAS,CAAC;QAClB,OAAO,CAAC,EAAE,GAAG,CAAC;QACd,gBAAgB,CAAC,EAAE,SAAS,CAAC;QAC7B;;;;;;;;;;;;;;WAcG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,wDAAwD;IACxD,OAAO,CAAC,EAAE;QACR;;;;;;;WAOG;QACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;KACnC,CAAC;IACF;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotKitProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotKitProvider.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CopilotKitProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotKitProvider.vue"],"names":[],"mappings":"AAq2BA,OAAO,KAAK,EAAE,SAAS,EAAuB,MAAM,KAAK,CAAC;AAE1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAGV,uBAAuB,EAExB,MAAM,kBAAkB,CAAC;AAkC1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EAGhB,MAAM,UAAU,CAAC;AA21BlB,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA4B/C,QAAA,MAAM,eAAe;;;;;;;;;;;wBAt7BrB,CApxB6B;mBAoxB7B,CAnxB4B;;;;aAmxB5B,CA3wB2C;eA2wB3C,CA1wBK;wBA0wBL,CA1wBiC;qBA0wBjC,CAhwB2D;;;+BAgwB3D,CA1vBqD;;6EAurDnD,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -10,4 +10,5 @@ export { useSandboxFunctions } from "./SandboxFunctionsContext";
|
|
|
10
10
|
export { useCopilotChatConfiguration } from "./useCopilotChatConfiguration";
|
|
11
11
|
export { CopilotChatDefaultLabels, type CopilotChatLabels, type CopilotChatConfigurationValue, } from "./types";
|
|
12
12
|
export type { CopilotKitContextValue } from "./keys";
|
|
13
|
+
export * from "./markdown-renderer";
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACzE,YAAY,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AACrG,YAAY,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACtG,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,uBAAuB,EACvB,KAAK,mBAAmB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EACL,wBAAwB,EACxB,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,GACnC,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACzE,YAAY,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AACrG,YAAY,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACtG,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,uBAAuB,EACvB,KAAK,mBAAmB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EACL,wBAAwB,EACxB,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,GACnC,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAC;AACrD,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Component, InjectionKey } from "vue";
|
|
2
|
+
import type { VueStreamingMarkdownNodeRenderers } from "@copilotkit/markdown-renderer/vue";
|
|
3
|
+
import type { StreamingMarkdownParserOptions } from "@copilotkit/markdown-renderer";
|
|
4
|
+
/** Config for the built-in Vue default renderer (pass instead of a component). */
|
|
5
|
+
export interface DefaultMarkdownRendererProps {
|
|
6
|
+
nodeRenderers?: VueStreamingMarkdownNodeRenderers;
|
|
7
|
+
caret?: boolean;
|
|
8
|
+
options?: Partial<StreamingMarkdownParserOptions>;
|
|
9
|
+
class?: string;
|
|
10
|
+
}
|
|
11
|
+
export type MarkdownRendererValue = Component | DefaultMarkdownRendererProps;
|
|
12
|
+
/** Injection key for a global markdown renderer component (or `undefined`). */
|
|
13
|
+
export declare const MARKDOWN_RENDERER_KEY: InjectionKey<MarkdownRendererValue | undefined>;
|
|
14
|
+
/**
|
|
15
|
+
* The markdown renderer provided at the provider level, or `undefined`.
|
|
16
|
+
* Message components fall back to the built-in `StreamingMarkdownDefault` when undefined.
|
|
17
|
+
* The value is either a Vue component (accepting `{ content: string; isStreaming?: boolean }`)
|
|
18
|
+
* or a `DefaultMarkdownRendererProps` config object for the built-in renderer.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useMarkdownRenderer(): MarkdownRendererValue | undefined;
|
|
21
|
+
/** A Vue component is a function or an object carrying setup/render/__vccOpts/__name. */
|
|
22
|
+
export declare function isVueComponentRenderer(value: unknown): value is Component;
|
|
23
|
+
//# sourceMappingURL=markdown-renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-renderer.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/markdown-renderer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACnD,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AAC3F,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAEpF,kFAAkF;AAClF,MAAM,WAAW,4BAA4B;IAC3C,aAAa,CAAC,EAAE,iCAAiC,CAAC;IAClD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,4BAA4B,CAAC;AAE7E,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAC9C,qBAAqB,GAAG,SAAS,CACO,CAAC;AAE3C;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,qBAAqB,GAAG,SAAS,CAEvE;AAED,yFAAyF;AACzF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAOzE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkit/vue",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rc.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Vue 3 components and composables for CopilotKit",
|
|
6
6
|
"keywords": [
|
|
@@ -64,17 +64,16 @@
|
|
|
64
64
|
"@a2ui/web_core": "0.10.4",
|
|
65
65
|
"@ag-ui/client": "1.0.2",
|
|
66
66
|
"@ag-ui/core": "1.0.2",
|
|
67
|
+
"@copilotkit/core": "2.0.0-rc.0",
|
|
68
|
+
"@copilotkit/markdown-renderer": "2.0.0-rc.0",
|
|
69
|
+
"@copilotkit/mcp-apps-renderer": "2.0.0-rc.0",
|
|
70
|
+
"@copilotkit/shared": "2.0.0-rc.0",
|
|
71
|
+
"@copilotkit/web-components": "2.0.0-rc.0",
|
|
72
|
+
"@copilotkit/web-inspector": "2.0.0-rc.0",
|
|
67
73
|
"@jetbrains/websandbox": "^1.1.3",
|
|
68
|
-
"katex": "^0.16.27",
|
|
69
74
|
"lucide-vue-next": "^0.525.0",
|
|
70
|
-
"streamdown-vue": "^1.0.29",
|
|
71
75
|
"zod": "^3.25.75",
|
|
72
|
-
"zod-to-json-schema": "^3.24.5"
|
|
73
|
-
"@copilotkit/mcp-apps-renderer": "1.82.0",
|
|
74
|
-
"@copilotkit/core": "1.82.0",
|
|
75
|
-
"@copilotkit/shared": "1.82.0",
|
|
76
|
-
"@copilotkit/web-components": "1.82.0",
|
|
77
|
-
"@copilotkit/web-inspector": "1.82.0"
|
|
76
|
+
"zod-to-json-schema": "^3.24.5"
|
|
78
77
|
},
|
|
79
78
|
"devDependencies": {
|
|
80
79
|
"@eslint/js": "^9.39.2",
|
package/src/styles/globals.css
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@import "tailwindcss" prefix(cpk);
|
|
2
2
|
@plugin "@tailwindcss/typography";
|
|
3
3
|
@source "../**/*.{ts,tsx,vue}";
|
|
4
|
-
@source "../../node_modules/streamdown-vue/dist/**/*.{js,mjs,cjs}";
|
|
5
4
|
|
|
6
5
|
@import "tw-animate-css";
|
|
7
6
|
|
|
@@ -192,10 +191,6 @@
|
|
|
192
191
|
}
|
|
193
192
|
}
|
|
194
193
|
|
|
195
|
-
[data-copilotkit] div[data-streamdown="code-block"] > pre {
|
|
196
|
-
@apply cpk:mt-0 cpk:mb-0;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
194
|
[data-copilotkit] .prose input[type="checkbox"] {
|
|
200
195
|
appearance: none;
|
|
201
196
|
background-color: #fff;
|
|
@@ -225,30 +220,6 @@
|
|
|
225
220
|
background-size: 100% 100%;
|
|
226
221
|
}
|
|
227
222
|
|
|
228
|
-
.copilot-chat-assistant-markdown [data-streamdown="code-block"] {
|
|
229
|
-
@apply cpk:my-4 cpk:w-full cpk:overflow-hidden cpk:rounded-xl cpk:border cpk:border-border cpk:bg-transparent;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.copilot-chat-assistant-markdown [data-streamdown="code-block-header"] {
|
|
233
|
-
@apply cpk:flex cpk:items-center cpk:justify-between cpk:p-3 cpk:text-xs cpk:text-muted-foreground;
|
|
234
|
-
background-color: transparent !important;
|
|
235
|
-
border-bottom: 0 !important;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.copilot-chat-assistant-markdown [data-streamdown="code-lang"] {
|
|
239
|
-
@apply cpk:ml-1 cpk:font-mono cpk:lowercase;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.copilot-chat-assistant-markdown [data-streamdown="h2"] {
|
|
243
|
-
margin-bottom: 0.5rem;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.copilot-chat-assistant-markdown [data-streamdown="inline-code"] {
|
|
247
|
-
border-radius: 4px;
|
|
248
|
-
padding-left: 0 !important;
|
|
249
|
-
padding-right: 0 !important;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
223
|
.copilot-chat-assistant-markdown .sr-only {
|
|
253
224
|
position: absolute;
|
|
254
225
|
width: 1px;
|
|
@@ -260,71 +231,3 @@
|
|
|
260
231
|
white-space: nowrap;
|
|
261
232
|
border: 0;
|
|
262
233
|
}
|
|
263
|
-
|
|
264
|
-
.copilot-chat-assistant-markdown [data-streamdown="code-actions"] {
|
|
265
|
-
@apply cpk:flex cpk:items-center cpk:gap-2;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.copilot-chat-assistant-markdown [data-streamdown="code-actions"] button span {
|
|
269
|
-
position: absolute;
|
|
270
|
-
width: 1px;
|
|
271
|
-
height: 1px;
|
|
272
|
-
padding: 0;
|
|
273
|
-
margin: -1px;
|
|
274
|
-
overflow: hidden;
|
|
275
|
-
clip: rect(0, 0, 0, 0);
|
|
276
|
-
white-space: nowrap;
|
|
277
|
-
border: 0;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.copilot-chat-assistant-markdown [data-streamdown="download-button"],
|
|
281
|
-
.copilot-chat-assistant-markdown [data-streamdown="copy-button"] {
|
|
282
|
-
@apply cpk:cursor-pointer cpk:p-1 cpk:text-muted-foreground cpk:transition-all cpk:hover:text-foreground cpk:disabled:cursor-not-allowed cpk:disabled:opacity-50;
|
|
283
|
-
background: transparent !important;
|
|
284
|
-
border: 0 !important;
|
|
285
|
-
border-radius: 0 !important;
|
|
286
|
-
opacity: 1 !important;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.copilot-chat-assistant-markdown [data-streamdown="code-body"] {
|
|
290
|
-
@apply cpk:overflow-x-auto cpk:p-0;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.copilot-chat-assistant-markdown [data-streamdown="code-body"] pre {
|
|
294
|
-
@apply cpk:overflow-x-auto cpk:border-t cpk:border-border cpk:p-4 cpk:text-sm;
|
|
295
|
-
background-color: transparent !important;
|
|
296
|
-
margin: 0 !important;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.copilot-chat-assistant-markdown [data-streamdown="code-body"] pre.shiki {
|
|
300
|
-
--shiki-light-bg: transparent !important;
|
|
301
|
-
background-color: transparent !important;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
.copilot-chat-assistant-markdown [data-streamdown="code"] .line {
|
|
305
|
-
display: block;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.copilot-chat-assistant-markdown [data-streamdown="code-line-number"] {
|
|
309
|
-
@apply cpk:mr-4 cpk:inline-block cpk:w-4 cpk:select-none cpk:text-right cpk:font-mono cpk:text-[13px] cpk:text-muted-foreground/50;
|
|
310
|
-
opacity: 1 !important;
|
|
311
|
-
padding-right: 0 !important;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.copilot-chat-assistant-markdown [data-streamdown="table-header"],
|
|
315
|
-
.copilot-chat-assistant-markdown [data-streamdown="thead"] {
|
|
316
|
-
@apply cpk:bg-muted/80;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
.copilot-chat-assistant-markdown [data-streamdown="table-body"],
|
|
320
|
-
.copilot-chat-assistant-markdown [data-streamdown="tbody"] {
|
|
321
|
-
@apply cpk:divide-y cpk:divide-border cpk:bg-muted/40;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
.copilot-chat-assistant-markdown [data-streamdown="th"] {
|
|
325
|
-
@apply cpk:whitespace-nowrap cpk:px-4 cpk:py-2 cpk:text-left cpk:font-semibold cpk:text-sm;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.copilot-chat-assistant-markdown [data-streamdown="td"] {
|
|
329
|
-
@apply cpk:px-4 cpk:py-2 cpk:text-sm;
|
|
330
|
-
}
|