@8wave/ai-elements 0.125.0-beta.15 → 0.125.0-beta.17
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 +23 -0
- package/dist/_chunks/{PkFilePreview-8nVPKv8k.js → PkFilePreview-BIFkMsAC.js} +559 -718
- package/dist/_chunks/PkFilePreview-BIFkMsAC.js.map +1 -0
- package/dist/_chunks/{PkFilePreviewDialog-BHPcGlnF.js → PkFilePreviewDialog-NLk4gZMd.js} +8 -8
- package/dist/_chunks/{PkFilePreviewDialog-BHPcGlnF.js.map → PkFilePreviewDialog-NLk4gZMd.js.map} +1 -1
- package/dist/_chunks/PkSelectionActions-CUymhwsG.js +168 -0
- package/dist/_chunks/PkSelectionActions-CUymhwsG.js.map +1 -0
- package/dist/ai-elements.es.js +4564 -4169
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Agent-DmxsItHG.js → Agent-Cm1LrkYm.js} +162 -162
- package/dist-vue/_chunks/{Agent-DmxsItHG.js.map → Agent-Cm1LrkYm.js.map} +1 -1
- package/dist-vue/_chunks/{Document-CXfJxfu6.js → Document-DHBTrCuO.js} +10 -10
- package/dist-vue/_chunks/{Document-CXfJxfu6.js.map → Document-DHBTrCuO.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot--fyFCXBu.js → PkChatbot-BtUaZ-LR.js} +10 -9
- package/dist-vue/_chunks/PkChatbot-BtUaZ-LR.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotEmptyState-CQ_Qdkge.js → PkChatbotEmptyState-DJIkAskP.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-CQ_Qdkge.js.map → PkChatbotEmptyState-DJIkAskP.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-BVu1b2Te.js → PkChatbotInput-DzqaW3EE.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-BVu1b2Te.js.map → PkChatbotInput-DzqaW3EE.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-DftNL5ZQ.js → PkChatbotMessages-vkbq5p1X.js} +17 -17
- package/dist-vue/_chunks/{PkChatbotMessages-DftNL5ZQ.js.map → PkChatbotMessages-vkbq5p1X.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-AiDZPbds.js → PkChatbotStepPayload-cuYclK_2.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-AiDZPbds.js.map → PkChatbotStepPayload-cuYclK_2.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-CALZDpfQ.js → PkChatbotStepToolDetail-Yd8cUQJP.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-CALZDpfQ.js.map → PkChatbotStepToolDetail-Yd8cUQJP.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-CY7pN2Gl.js → PkChatbotSteps-D5yz8lut.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-CY7pN2Gl.js.map → PkChatbotSteps-D5yz8lut.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CgJlfyd0.js → PkChatbotViewChat-DCPRePrE.js} +289 -289
- package/dist-vue/_chunks/PkChatbotViewChat-DCPRePrE.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-C0KqM_Wq.js → PkChatbotViewConversations-BBd3XMmM.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-C0KqM_Wq.js.map → PkChatbotViewConversations-BBd3XMmM.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-B9mYRoNK.js → PkChatbotViewFiles-BiQzDqJg.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-B9mYRoNK.js.map → PkChatbotViewFiles-BiQzDqJg.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-BfNE3d7F.js → PkChatbotViewProfile-7266UiRM.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-BfNE3d7F.js.map → PkChatbotViewProfile-7266UiRM.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-z7JcRtjP.js → PkFilePreview-DLo9nI2g.js} +426 -426
- package/dist-vue/_chunks/PkFilePreview-DLo9nI2g.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreviewDialog-zVon3aPY.js → PkFilePreviewDialog-CgDJQgIJ.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-zVon3aPY.js.map → PkFilePreviewDialog-CgDJQgIJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-bJEDk-kM.js → PkStreamingMarkdown-C3UGCEXm.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-bJEDk-kM.js.map → PkStreamingMarkdown-C3UGCEXm.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-DqLGwJxp.js → PkToolChatFile-Dy0rGC29.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-DqLGwJxp.js.map → PkToolChatFile-Dy0rGC29.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-BnV7A6SW.js → PkToolRequestGeolocation-p7Ip17F7.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-BnV7A6SW.js.map → PkToolRequestGeolocation-p7Ip17F7.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-QCbQ7bnl.js → PkToolRequestOAuthConnection-CtXSzKzM.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-QCbQ7bnl.js.map → PkToolRequestOAuthConnection-CtXSzKzM.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-DanzULWt.js → PkToolShowArtifact-B7udnhpb.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-DanzULWt.js.map → PkToolShowArtifact-B7udnhpb.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-DzttQBG6.js → PkToolShowContactForm-0SEgxn2S.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-DzttQBG6.js.map → PkToolShowContactForm-0SEgxn2S.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-BNa89wcw.js → PkToolShowDiagram-BqHBhZgd.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-BNa89wcw.js.map → PkToolShowDiagram-BqHBhZgd.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-BXol1WE3.js → PkToolShowForm-C4n_3mFL.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-BXol1WE3.js.map → PkToolShowForm-C4n_3mFL.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-Dmr5zXTj.js → PkToolShowImageGallery-DEpdtLns.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-Dmr5zXTj.js.map → PkToolShowImageGallery-DEpdtLns.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-C_uIUG_G.js → PkToolShowProductList-Bm2NLUGS.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-C_uIUG_G.js.map → PkToolShowProductList-Bm2NLUGS.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-BHRNGn4s.js → PkToolShowSources-DwFqlit2.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-BHRNGn4s.js.map → PkToolShowSources-DwFqlit2.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DHCqxA1P.js → PkToolShowSuggestedReply-BRIzGNwx.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DHCqxA1P.js.map → PkToolShowSuggestedReply-BRIzGNwx.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-P4H5A7ke.js → PkToolShowVideo-BLEJ8tng.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-P4H5A7ke.js.map → PkToolShowVideo-BLEJ8tng.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-BzNZHR7Q.js → PkToolShowWebPages-CeAXllAF.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-BzNZHR7Q.js.map → PkToolShowWebPages-CeAXllAF.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-CQjxHqLr.js → createChatbotApiClient-BPN6cLGF.js} +14 -14
- package/dist-vue/_chunks/{createChatbotApiClient-CQjxHqLr.js.map → createChatbotApiClient-BPN6cLGF.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-CyZha9pf.js → useChatbotStore-C4xhJtrb.js} +1242 -1242
- package/dist-vue/_chunks/{useChatbotStore-CyZha9pf.js.map → useChatbotStore-C4xhJtrb.js.map} +1 -1
- package/dist-vue/_chunks/{utils-8lO2Gj-m.js → utils-RwaXl9-x.js} +4 -4
- package/dist-vue/_chunks/{utils-8lO2Gj-m.js.map → utils-RwaXl9-x.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +4 -4
- package/dist-vue/apps/web-component/src/composables/usePagePointer.d.ts +14 -9
- package/dist-vue/apps/web-component/src/composables/usePendingMessage.d.ts +29 -15
- package/dist-vue/apps/web-component/src/composables/useSelectionActions.d.ts +77 -0
- package/dist-vue/composables.js +34 -8
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +5401 -5321
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +22 -2
- package/dist-vue/packages/components/src/chat/PkAgentSelectionActionsSettings.d.ts +25 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +23 -3
- package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +2 -1
- package/dist-vue/packages/components/src/chat/PkSelectionActions.d.ts +2 -12
- package/dist-vue/packages/components/src/chat/PkSelectionAnswerCard.d.ts +41 -0
- package/package.json +1 -1
- package/dist/_chunks/PkFilePreview-8nVPKv8k.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot--fyFCXBu.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-CgJlfyd0.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreview-z7JcRtjP.js.map +0 -1
package/dist-vue/locales.js
CHANGED
|
@@ -462,6 +462,7 @@ var e = {
|
|
|
462
462
|
pageAccessConfirmEveryAction: "The user confirms every click and every write, not only submits and page changes.",
|
|
463
463
|
pageAccessPointer: "A button in the chat input to point at an element of the page, or select its text, and ask about it.",
|
|
464
464
|
pageAccessNotice: "Empty, the widget uses the level's own text.",
|
|
465
|
+
selectionActionsMax: "At most {count} actions on the bar, built-in and the agent's together.",
|
|
465
466
|
modelRetired: "No longer available on the platform: move the agents using it to another model.",
|
|
466
467
|
modelNotCompatible: "Not compatible with the privacy flags of this agent.",
|
|
467
468
|
modelGuaranteedOnSome: "The guarantees you switched on hold only on some providers of this model: the gateway routes accordingly.",
|
|
@@ -882,7 +883,16 @@ var e = {
|
|
|
882
883
|
openLatest: "Open the latest",
|
|
883
884
|
label: "Actions on the selection",
|
|
884
885
|
askPlaceholder: "What should be done with the selection?",
|
|
885
|
-
ask: "Ask…"
|
|
886
|
+
ask: "Ask…",
|
|
887
|
+
card: {
|
|
888
|
+
aiNotice: "Answered by artificial intelligence",
|
|
889
|
+
thinking: "Answer on its way…",
|
|
890
|
+
waitsConfirm: "The agent is waiting for you to confirm an action: continue in chat to answer.",
|
|
891
|
+
waitsReply: "The agent is asking you something: continue in chat to answer.",
|
|
892
|
+
more: "The answer also holds content that shows only in the chat.",
|
|
893
|
+
noAnswer: "No answer: continue in chat to see what happened.",
|
|
894
|
+
continue: "Continue in chat"
|
|
895
|
+
}
|
|
886
896
|
},
|
|
887
897
|
confirmTitle: {
|
|
888
898
|
deleteMyConversations: "Delete all your conversations?",
|
|
@@ -1401,6 +1411,7 @@ var e = {
|
|
|
1401
1411
|
pageAccessConfirmEveryAction: "L'utente conferma ogni clic e ogni scrittura, non solo gli invii e i cambi di pagina.",
|
|
1402
1412
|
pageAccessPointer: "Un pulsante nel campo della chat per indicare un elemento della pagina, o selezionarne il testo, e chiedere.",
|
|
1403
1413
|
pageAccessNotice: "Vuoto, il widget usa il testo del livello.",
|
|
1414
|
+
selectionActionsMax: "Al massimo {count} azioni nella barra, predefinite e dell'agente insieme.",
|
|
1404
1415
|
modelRetired: "Non più disponibile sulla piattaforma: sposta su un altro modello gli agenti che lo usano.",
|
|
1405
1416
|
modelNotCompatible: "Non compatibile con i flag di riservatezza di questo agente.",
|
|
1406
1417
|
modelGuaranteedOnSome: "Le garanzie che hai acceso valgono solo su alcuni provider di questo modello: il gateway instrada di conseguenza.",
|
|
@@ -1821,7 +1832,16 @@ var e = {
|
|
|
1821
1832
|
openLatest: "Apri l'ultima",
|
|
1822
1833
|
label: "Azioni sulla selezione",
|
|
1823
1834
|
askPlaceholder: "Cosa vuoi fare con la selezione?",
|
|
1824
|
-
ask: "Chiedi…"
|
|
1835
|
+
ask: "Chiedi…",
|
|
1836
|
+
card: {
|
|
1837
|
+
aiNotice: "Risponde un'intelligenza artificiale",
|
|
1838
|
+
thinking: "Risposta in arrivo…",
|
|
1839
|
+
waitsConfirm: "L'agente aspetta che tu confermi un'azione: continua in chat per rispondere.",
|
|
1840
|
+
waitsReply: "L'agente ti chiede qualcosa: continua in chat per rispondere.",
|
|
1841
|
+
more: "La risposta ha anche contenuti che si vedono solo in chat.",
|
|
1842
|
+
noAnswer: "Nessuna risposta: continua in chat per vedere cosa è successo.",
|
|
1843
|
+
continue: "Continua in chat"
|
|
1844
|
+
}
|
|
1825
1845
|
},
|
|
1826
1846
|
confirmTitle: {
|
|
1827
1847
|
deleteMyConversations: "Eliminare tutte le vostre conversazioni?",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SelectionActionsSettings, SelectionSurface } from '../../../models/src';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* One group of the selection bar's settings (spec `selection-actions.md`,
|
|
5
|
+
* "Cosa è comune"): the switch and the built-in actions to tick, within
|
|
6
|
+
* the cap the bar shows. The page group sits in "Site and app" after
|
|
7
|
+
* "Point and ask", the Word and Excel groups in "Tools" beside their
|
|
8
|
+
* tools. Its labels are `label.selectionActions<Surface><Key>`, the names
|
|
9
|
+
* the change list of a save reads them by.
|
|
10
|
+
*/
|
|
11
|
+
type Group = SelectionActionsSettings[SelectionSurface];
|
|
12
|
+
type __VLS_Props = {
|
|
13
|
+
surface: SelectionSurface;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_ModelProps = {
|
|
16
|
+
modelValue?: Partial<Group> | undefined;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
19
|
+
declare const __VLS_export: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: Partial<Group> | undefined) => any;
|
|
21
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: Partial<Group> | undefined) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentFormSettings, AgentReasoning, AgentWebSearch, HostToolsSettings, LocalizedString, PageAccessSettings, Media, ModelCatalogEntry, OrganizationFeature, VoiceOption, AgentBuiltInTool, AgentChannel, AgentToolWorkingSetMode, AgentLoaderStrategy, AgentType, WebSearchProvider, StoragePolicy
|
|
1
|
+
import { AgentFormSettings, AgentReasoning, AgentWebSearch, HostToolsSettings, LocalizedString, PageAccessSettings, SelectionActionsSettings, Media, ModelCatalogEntry, OrganizationFeature, VoiceOption, AgentBuiltInTool, AgentChannel, AgentToolWorkingSetMode, AgentLoaderStrategy, AgentType, PageAccessLevel, WebSearchProvider, StoragePolicy } from '../../../models/src';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
organizationSlug?: string;
|
|
@@ -136,6 +136,8 @@ type __VLS_ModelProps = {
|
|
|
136
136
|
'hostTools'?: Partial<HostToolsSettings> | undefined;
|
|
137
137
|
/** What the agent may do on the page that embeds it (spec `page-tools.md`). */
|
|
138
138
|
'pageAccess'?: Partial<PageAccessSettings> | undefined;
|
|
139
|
+
/** The bar of actions on a text selected on the page (spec `selection-actions.md`). */
|
|
140
|
+
'selectionActionsPage'?: Partial<SelectionActionsSettings['page']> | undefined;
|
|
139
141
|
/** The user may choose automatic confirmations in the chat (spec `auto-confirmations.md`). */
|
|
140
142
|
'confirmationsAllowAutomatic'?: boolean;
|
|
141
143
|
'ranking'?: {
|
|
@@ -155,9 +157,9 @@ type __VLS_ModelProps = {
|
|
|
155
157
|
} | undefined;
|
|
156
158
|
};
|
|
157
159
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
158
|
-
declare var
|
|
160
|
+
declare var __VLS_914: {};
|
|
159
161
|
type __VLS_Slots = {} & {
|
|
160
|
-
default?: (props: typeof
|
|
162
|
+
default?: (props: typeof __VLS_914) => any;
|
|
161
163
|
};
|
|
162
164
|
declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
163
165
|
"update:reasoning": (value: {
|
|
@@ -415,6 +417,15 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
|
|
|
415
417
|
acknowledgedAt?: Date | undefined;
|
|
416
418
|
acknowledgedLevel?: PageAccessLevel | undefined;
|
|
417
419
|
}> | undefined) => any;
|
|
420
|
+
"update:selectionActionsPage": (value: Partial<{
|
|
421
|
+
enabled: boolean;
|
|
422
|
+
builtIns: ("explain" | "summarize")[];
|
|
423
|
+
actions: {
|
|
424
|
+
id: string;
|
|
425
|
+
label: Record<string, string>;
|
|
426
|
+
prompt: Record<string, string>;
|
|
427
|
+
}[];
|
|
428
|
+
}> | undefined) => any;
|
|
418
429
|
"update:confirmationsAllowAutomatic": (value: boolean) => any;
|
|
419
430
|
"update:ranking": (value: {
|
|
420
431
|
freshness?: {
|
|
@@ -688,6 +699,15 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
|
|
|
688
699
|
acknowledgedAt?: Date | undefined;
|
|
689
700
|
acknowledgedLevel?: PageAccessLevel | undefined;
|
|
690
701
|
}> | undefined) => any) | undefined;
|
|
702
|
+
"onUpdate:selectionActionsPage"?: ((value: Partial<{
|
|
703
|
+
enabled: boolean;
|
|
704
|
+
builtIns: ("explain" | "summarize")[];
|
|
705
|
+
actions: {
|
|
706
|
+
id: string;
|
|
707
|
+
label: Record<string, string>;
|
|
708
|
+
prompt: Record<string, string>;
|
|
709
|
+
}[];
|
|
710
|
+
}> | undefined) => any) | undefined;
|
|
691
711
|
"onUpdate:confirmationsAllowAutomatic"?: ((value: boolean) => any) | undefined;
|
|
692
712
|
"onUpdate:ranking"?: ((value: {
|
|
693
713
|
freshness?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AgentConfirmationsCapability, AgentInterface, AgentModel, AgentFileUpload, AgentGatewayOptions, AgentVoiceCapability, ChatMessageActions, RevisedAnswer, UIChatMessage, AgentTools, HostToolsCapability, PageAccessCapability, SelectionActionsCapability } from '../../../models/src';
|
|
2
|
-
import { RegisteredHostTool } from '../../../composable/src';
|
|
2
|
+
import { RegisteredHostTool, SelectionPointer } from '../../../composable/src';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
import { ChatRequestOptions } from 'ai';
|
|
5
5
|
type __VLS_Props = {
|
|
@@ -85,6 +85,7 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {
|
|
|
85
85
|
} & ChatRequestOptions) => Promise<void>>[0]) => Promise<void>;
|
|
86
86
|
stopGeneration: () => Promise<void>;
|
|
87
87
|
sendMessage: (text: string) => void;
|
|
88
|
+
sendSelection: (text: string, pointer: SelectionPointer) => boolean;
|
|
88
89
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
89
90
|
error: (error: {
|
|
90
91
|
type: string;
|
|
@@ -7,7 +7,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
7
7
|
* language). It sits above the start of the selection, below it without
|
|
8
8
|
* room there (`selectionBarPosition`). Its buttons take no focus on a
|
|
9
9
|
* click, so the selection stays and Cmd+C still copies it; the keyboard
|
|
10
|
-
* reaches them with Tab.
|
|
10
|
+
* reaches them with Tab.
|
|
11
11
|
*/
|
|
12
12
|
export type SelectionBarAction = {
|
|
13
13
|
id: string;
|
|
@@ -46,11 +46,7 @@ type __VLS_ModelProps = {
|
|
|
46
46
|
'asking'?: boolean;
|
|
47
47
|
};
|
|
48
48
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
49
|
-
declare
|
|
50
|
-
type __VLS_Slots = {} & {
|
|
51
|
-
card?: (props: typeof __VLS_1) => any;
|
|
52
|
-
};
|
|
53
|
-
declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
49
|
+
declare const __VLS_export: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
54
50
|
close: () => any;
|
|
55
51
|
"update:asking": (value: boolean) => any;
|
|
56
52
|
action: (id: string, value?: string | undefined) => any;
|
|
@@ -63,11 +59,5 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
|
|
|
63
59
|
onAsk?: ((text: string) => any) | undefined;
|
|
64
60
|
onNote?: (() => any) | undefined;
|
|
65
61
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
66
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
67
62
|
declare const _default: typeof __VLS_export;
|
|
68
63
|
export default _default;
|
|
69
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
70
|
-
new (): {
|
|
71
|
-
$slots: S;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { UIChatMessage } from '../../../models/src';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** The selected text the answer is about. */
|
|
5
|
+
quote: string;
|
|
6
|
+
agentName?: string;
|
|
7
|
+
/** The messages of the answer, after the action's own. */
|
|
8
|
+
messages: UIChatMessage[];
|
|
9
|
+
/** The answer is on its way: the action's message may not even have left. */
|
|
10
|
+
streaming: boolean;
|
|
11
|
+
/** The answer waits on the card of a page action the user must confirm. */
|
|
12
|
+
confirming?: boolean;
|
|
13
|
+
/** Where the selection was when the action left, in the window. */
|
|
14
|
+
anchor: {
|
|
15
|
+
start: {
|
|
16
|
+
top: number;
|
|
17
|
+
left: number;
|
|
18
|
+
};
|
|
19
|
+
bottom: number;
|
|
20
|
+
bounds: {
|
|
21
|
+
top: number;
|
|
22
|
+
left: number;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
isDark?: boolean;
|
|
28
|
+
/** The action came from the keyboard: the focus the bar had moves here. */
|
|
29
|
+
takeFocus?: boolean;
|
|
30
|
+
};
|
|
31
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
32
|
+
continue: () => any;
|
|
33
|
+
stop: () => any;
|
|
34
|
+
close: () => any;
|
|
35
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
36
|
+
onContinue?: (() => any) | undefined;
|
|
37
|
+
onStop?: (() => any) | undefined;
|
|
38
|
+
onClose?: (() => any) | undefined;
|
|
39
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
export default _default;
|