@worktango/ai-assistant 0.0.69 → 0.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Absenteeism-DT5VgaJL.mjs → Absenteeism-B8zHBQI5.mjs} +1 -1
- package/dist/{ActivityFeed-CFvJistd.mjs → ActivityFeed-ymxaqCIv.mjs} +1 -1
- package/dist/{AddUser-GSQ16m4f.mjs → AddUser-Cz-3AWM0.mjs} +1 -1
- package/dist/{Admin-B2SWuM3b.mjs → Admin-B9Iinp76.mjs} +1 -1
- package/dist/{Admin-BjRgRhwN.mjs → Admin-CrO303UM.mjs} +1 -1
- package/dist/{AiGeneral-DuEl7Hfn.mjs → AiGeneral-qv_QrnA6.mjs} +1 -1
- package/dist/{AiScoring-V7ObyvEs.mjs → AiScoring-Dy2ipnuV.mjs} +1 -1
- package/dist/{AiText-DUGbdQAE.mjs → AiText-B0xHjF-V.mjs} +1 -1
- package/dist/{Anniversary-4cU4KrNd.mjs → Anniversary-1jZnrCDW.mjs} +1 -1
- package/dist/{Appreciation-DFnlut3M.mjs → Appreciation-BaznLvd5.mjs} +1 -1
- package/dist/{ArrowDown-DSZmRpdi.mjs → ArrowDown-BxrC5ODj.mjs} +1 -1
- package/dist/{ArrowLeft-B2dtHiw6.mjs → ArrowLeft-Cjz4Cgsr.mjs} +1 -1
- package/dist/{ArrowRight-Da-8Y1RN.mjs → ArrowRight-CF2rgRUN.mjs} +1 -1
- package/dist/{ArrowUp-BgSLw_df.mjs → ArrowUp-CEFJoYak.mjs} +1 -1
- package/dist/{Attachment-BqlKb3hB.mjs → Attachment-9GmnfEF0.mjs} +1 -1
- package/dist/{BeQuickDontHurry-D54ptPXz.mjs → BeQuickDontHurry-IfrBbrMf.mjs} +1 -1
- package/dist/{Birthday-D_P44y1-.mjs → Birthday-DOvQr-FQ.mjs} +1 -1
- package/dist/{BrandPromise-9j889NEB.mjs → BrandPromise-BS5uJSIk.mjs} +1 -1
- package/dist/{BrandVision-QfQx0ps4.mjs → BrandVision-DeJilePq.mjs} +1 -1
- package/dist/{Calendar-DAK8r2D5.mjs → Calendar-Cq75DDuR.mjs} +1 -1
- package/dist/{CaretDn-CJm0jc0T.mjs → CaretDn-tMXT42G8.mjs} +1 -1
- package/dist/{CaretDown-CLCB1IOE.mjs → CaretDown-CpI-XkVq.mjs} +1 -1
- package/dist/{CaretLeft-Bc3gGHmr.mjs → CaretLeft-BFn3WQ5K.mjs} +1 -1
- package/dist/{CaretRight-YTMVzof_.mjs → CaretRight-CIdV0Z8Y.mjs} +1 -1
- package/dist/{CaretUp-BGDpKuz6.mjs → CaretUp-DP0pwL60.mjs} +1 -1
- package/dist/{ChallengeAccepted-TnK2kV5Q.mjs → ChallengeAccepted-Cv8fwv5E.mjs} +1 -1
- package/dist/{CheckIn-CD8YNcWi.mjs → CheckIn-Dj5EhH9q.mjs} +1 -1
- package/dist/{CheckIns-DnWs9XQz.mjs → CheckIns-AjMXWzX6.mjs} +1 -1
- package/dist/{CheckSeal-HqdIi40Y.mjs → CheckSeal-CP0qxJlq.mjs} +1 -1
- package/dist/{Checkmark-D7ch0w1a.mjs → Checkmark-zn-qgNjF.mjs} +1 -1
- package/dist/{Clock-BJEC_jNv.mjs → Clock-Ct821I-s.mjs} +1 -1
- package/dist/{Close-DfrgjTyl.mjs → Close-Bw5snNmh.mjs} +1 -1
- package/dist/{CloudDownload-_4uwgLuT.mjs → CloudDownload-C8-lqjMV.mjs} +1 -1
- package/dist/{Comment-BZZM3kRH.mjs → Comment-B08PRIoq.mjs} +1 -1
- package/dist/{Comments-HLG8J2h0.mjs → Comments-Bm1eaDrF.mjs} +1 -1
- package/dist/{Connections-CsOCXV0c.mjs → Connections-Bb0l2JR_.mjs} +1 -1
- package/dist/{Copy-u0hDQjfo.mjs → Copy-Dc2BFZGF.mjs} +1 -1
- package/dist/{CustomQuestion-CcU1EAfa.mjs → CustomQuestion-DgGI36d6.mjs} +1 -1
- package/dist/{CustomerSuccess-CfffgyTY.mjs → CustomerSuccess-DY1wvAOd.mjs} +1 -1
- package/dist/{DatePicker-BtNoWceT.mjs → DatePicker-BN4v7etH.mjs} +1 -1
- package/dist/{Dot-CVFGECzW.mjs → Dot-C9mcrGjb.mjs} +1 -1
- package/dist/{Download-BI07i6hB.mjs → Download-BPhht08q.mjs} +1 -1
- package/dist/{Drag-DutAOYoV.mjs → Drag-BrdZoy8t.mjs} +1 -1
- package/dist/{Earn-BEdLmZ4J.mjs → Earn-BK58KEOv.mjs} +1 -1
- package/dist/{Email-Dl_xaxUp.mjs → Email-DR-ChS3X.mjs} +1 -1
- package/dist/{EmojiDisplay-DoIPaF0B.mjs → EmojiDisplay-CvJ56ohC.mjs} +2 -2
- package/dist/{EmojiPicker-BTf5cVF5.mjs → EmojiPicker-DC83KBGY.mjs} +2 -2
- package/dist/{EnpsSurvey-DZdXwOr_.mjs → EnpsSurvey-DOqNdx-u.mjs} +1 -1
- package/dist/{Expired-BPdZKRq4.mjs → Expired-BfCs2U59.mjs} +1 -1
- package/dist/{Eye-kkKiVC2N.mjs → Eye-VKRhZcqg.mjs} +1 -1
- package/dist/{Feedback-CNwrVM24.mjs → Feedback-BQr-nYeS.mjs} +1 -1
- package/dist/{Feedback-DquEXzcR.mjs → Feedback-CCa50G9c.mjs} +1 -1
- package/dist/{Filter-BQWjDou3.mjs → Filter-D8nEMEM9.mjs} +1 -1
- package/dist/{Flag-BJaKtwLg.mjs → Flag-CW6CB9KV.mjs} +1 -1
- package/dist/{Giphy-R5itCsCW.mjs → Giphy-CczeO5zL.mjs} +1 -1
- package/dist/{GoalCount-BqXg2-fg.mjs → GoalCount-Djy0ofWi.mjs} +1 -1
- package/dist/{GoalPercent-Qv0c6_LJ.mjs → GoalPercent-tcPWsVn-.mjs} +1 -1
- package/dist/{GoalTask-D9jiyjCl.mjs → GoalTask-DiAFlw3C.mjs} +1 -1
- package/dist/{GoalTask-CoGYN6fS.mjs → GoalTask-qTcMWoK-.mjs} +1 -1
- package/dist/{Goals-Xv8j-t2x.mjs → Goals-S4npZQfJ.mjs} +1 -1
- package/dist/{Goals-CYlcjSBO.mjs → Goals-gWkc4Bcm.mjs} +1 -1
- package/dist/{Growth-CFoAF9VD.mjs → Growth-DGWneydC.mjs} +1 -1
- package/dist/{Hamburger-CnZDciEh.mjs → Hamburger-BZugx4Rf.mjs} +1 -1
- package/dist/{Help-CcNJafOG.mjs → Help-DB5iBJ1i.mjs} +1 -1
- package/dist/{HighFive-BxOfwgoU.mjs → HighFive-C5Qoq4xY.mjs} +1 -1
- package/dist/{HighFive-DLP2y-Ve.mjs → HighFive-EHavycEb.mjs} +1 -1
- package/dist/{Home-Bkj3YEvH.mjs → Home-DWhphorr.mjs} +1 -1
- package/dist/{Home-Bn3yxLO9.mjs → Home-ePCKRnN6.mjs} +1 -1
- package/dist/{HorizontalLine-SkpExaXz.mjs → HorizontalLine-DvqM1uMH.mjs} +1 -1
- package/dist/{Hourglass-DryI37Tp.mjs → Hourglass-DN9jP4b4.mjs} +1 -1
- package/dist/{Image-h3wq1aS-.mjs → Image-C-D1I9-B.mjs} +1 -1
- package/dist/{ImageFile-DJFZYENH.mjs → ImageFile-BkttvKgI.mjs} +1 -1
- package/dist/{InGoodCompany-isRT88YM.mjs → InGoodCompany-BdHhVppn.mjs} +1 -1
- package/dist/{Incentives-efZC0SQt.mjs → Incentives-CMgZ1qFl.mjs} +1 -1
- package/dist/{Info-D7V6DzQZ.mjs → Info-Bg5sPUR4.mjs} +1 -1
- package/dist/{Insights-DOlgVPHE.mjs → Insights-BxPBWl5D.mjs} +1 -1
- package/dist/{Insights-Chzv4Jv2.mjs → Insights-IVWtNh5U.mjs} +1 -1
- package/dist/{Integrations-Bx471QFU.mjs → Integrations-0FlSCDjv.mjs} +1 -1
- package/dist/{KazooLogo-C-iDs5m6.mjs → KazooLogo-Dv8fjSMu.mjs} +1 -1
- package/dist/{KnowYourAudience-jFI6hOd_.mjs → KnowYourAudience-BHcVkz4b.mjs} +1 -1
- package/dist/{Launch-Bi6amAFc.mjs → Launch-f8YkkgGu.mjs} +1 -1
- package/dist/{Link-_j2yO8Jz.mjs → Link-DrrRMcdT.mjs} +1 -1
- package/dist/{LinkArrow-yo1yFFQd.mjs → LinkArrow-BRnKCWtp.mjs} +1 -1
- package/dist/{Loading-BH3tWOGG.mjs → Loading-DmrRW0dh.mjs} +1 -1
- package/dist/{Lock-DS6vdQ_x.mjs → Lock-BDrNd3h4.mjs} +1 -1
- package/dist/{Management-FZKfdQZV.mjs → Management-B1rYqhve.mjs} +1 -1
- package/dist/{MeatballMenu-DKVJjWNJ.mjs → MeatballMenu-CbPK_R6k.mjs} +1 -1
- package/dist/{Messages-DfbwF4Je.mjs → Messages-CMqnLSc1.mjs} +1 -1
- package/dist/{Microphone-BEIqzGPx.mjs → Microphone-s5acy5gE.mjs} +1 -1
- package/dist/{Mobile-CSh5CvcA.mjs → Mobile-Bkcb2paD.mjs} +1 -1
- package/dist/{Nomination-CBOrtgfg.mjs → Nomination-B8as8Hrv.mjs} +1 -1
- package/dist/{NominationsAndAwards-Qy0NrlIq.mjs → NominationsAndAwards-Du9O5oHU.mjs} +1 -1
- package/dist/{Notification-_4n_Ew0q.mjs → Notification-CxkvzFhn.mjs} +1 -1
- package/dist/{Okrs-1TsjG-uR.mjs → Okrs-GVi5lA8U.mjs} +1 -1
- package/dist/{PeerToPeer-M0PhthI6.mjs → PeerToPeer-ClFbM4s9.mjs} +1 -1
- package/dist/{Pencil-C7PI1gq5.mjs → Pencil-DAGjkGCX.mjs} +1 -1
- package/dist/{People-iPSMqHLX.mjs → People-BjIWvWVx.mjs} +1 -1
- package/dist/{PerformanceManagement-0SGH_2Gu.mjs → PerformanceManagement-DLaF-Q37.mjs} +1 -1
- package/dist/{Pin-q3gfeBMN.mjs → Pin-DpS93f33.mjs} +1 -1
- package/dist/{PinnedIconAward-Dd5p9gvf.mjs → PinnedIconAward-BZpW6dpf.mjs} +1 -1
- package/dist/{PinnedIconBrightIdea-C-GC7wYo.mjs → PinnedIconBrightIdea-PUFMYCc6.mjs} +1 -1
- package/dist/{PinnedIconBullseye-C2wEaxum.mjs → PinnedIconBullseye-CH1V91R5.mjs} +1 -1
- package/dist/{PinnedIconChampagne-iTOHZOvg.mjs → PinnedIconChampagne-C5Qm1D9B.mjs} +1 -1
- package/dist/{PinnedIconCheer-BIWL3FJV.mjs → PinnedIconCheer-C4YallMe.mjs} +1 -1
- package/dist/{PinnedIconCrown-CuTrZu3w.mjs → PinnedIconCrown-D0zO8C7D.mjs} +1 -1
- package/dist/{PinnedIconDiamond-DPePAVHy.mjs → PinnedIconDiamond-D48eEcGP.mjs} +1 -1
- package/dist/{PinnedIconHoleInOne-ljt0zzuN.mjs → PinnedIconHoleInOne-xffC7jth.mjs} +1 -1
- package/dist/{PinnedIconMedal-DHvm6oOH.mjs → PinnedIconMedal-TV7JAtAM.mjs} +1 -1
- package/dist/{PinnedIconMetrics-mDBt3saD.mjs → PinnedIconMetrics-CQ8dTBZu.mjs} +1 -1
- package/dist/{PinnedIconPin-TxtpehoH.mjs → PinnedIconPin-NFhWkZEb.mjs} +1 -1
- package/dist/{PinnedIconRockAndRoll-iQfLB5ov.mjs → PinnedIconRockAndRoll-B3H0P1n0.mjs} +1 -1
- package/dist/{PinnedIconRocket-DA30gpev.mjs → PinnedIconRocket-C3jKXT9I.mjs} +1 -1
- package/dist/{PinnedIconStrength-CSnLa4R3.mjs → PinnedIconStrength-BdQGBncD.mjs} +1 -1
- package/dist/{PinnedIconTeddyBear-DENU0RqT.mjs → PinnedIconTeddyBear-CQVP8YO5.mjs} +1 -1
- package/dist/{PlatformLogo-BL8uujRw.mjs → PlatformLogo-DV5zS4Ye.mjs} +1 -1
- package/dist/{Plus-Doa51C25.mjs → Plus-yJtUAonX.mjs} +1 -1
- package/dist/{Popper-B7Amsdim.mjs → Popper-BHSspc5e.mjs} +1 -1
- package/dist/{PrivateEye-BDO4JFFb.mjs → PrivateEye-BuLJvdJw.mjs} +1 -1
- package/dist/{PrivatePushPin-vOWN2SQ2.mjs → PrivatePushPin-eWeLfa83.mjs} +1 -1
- package/dist/{Processing-B2vmUZ8Y.mjs → Processing-DBEMZiXd.mjs} +1 -1
- package/dist/{Productivity-BrgnIFqF.mjs → Productivity-BMBIScxs.mjs} +1 -1
- package/dist/{ProgressCircle-C7uc49W9.mjs → ProgressCircle-vYIWtKI8.mjs} +1 -1
- package/dist/{PulseSurvey-BmYMcsXw.mjs → PulseSurvey-CrDDd1na.mjs} +1 -1
- package/dist/{PushPin-Zmssd93L.mjs → PushPin-BGiHec4b.mjs} +1 -1
- package/dist/{Recognition-oOW8RpuJ.mjs → Recognition-CtxrkE11.mjs} +1 -1
- package/dist/{Recognition-BesqhT0O.mjs → Recognition-DEXZW0FF.mjs} +1 -1
- package/dist/{Retention-B1IFhHrg.mjs → Retention-COwtOLUL.mjs} +1 -1
- package/dist/{Rewards-DDbA5482.mjs → Rewards-CHCxTgd4.mjs} +1 -1
- package/dist/{Rewards-CAeDDuNW.mjs → Rewards-CxOhbzrB.mjs} +1 -1
- package/dist/{RewardsCatalog-CV0I2bKl.mjs → RewardsCatalog-DDZX2DDj.mjs} +1 -1
- package/dist/{Roadmap-CDQ_DfN7.mjs → Roadmap-DMNMXNwI.mjs} +1 -1
- package/dist/{Search-CUky2mKC.mjs → Search-BElyy7Rl.mjs} +1 -1
- package/dist/{Security-C72KYHT4.mjs → Security-D3GxNOKD.mjs} +1 -1
- package/dist/{SendRecognition-Dcf8nFfU.mjs → SendRecognition-B1a9_UpO.mjs} +1 -1
- package/dist/{ShareLink-B4Co9_ma.mjs → ShareLink-BdYtUZNn.mjs} +1 -1
- package/dist/{Skill-CTzMnhnD.mjs → Skill-BmYKwcDn.mjs} +1 -1
- package/dist/{Skills-BBV6TFHF.mjs → Skills-DYdAbUXK.mjs} +1 -1
- package/dist/{Smiley-CTCwiSlh.mjs → Smiley-CwKuzgNP.mjs} +1 -1
- package/dist/{Stop-BuLTUEb1.mjs → Stop-CuHdTX1F.mjs} +1 -1
- package/dist/{Survey-BVWRC4JS.mjs → Survey-B396ApRr.mjs} +1 -1
- package/dist/{Surveys-JpjcyDUm.mjs → Surveys-J-Ta5I0U.mjs} +1 -1
- package/dist/{SyncUps-BdNcWpYd.mjs → SyncUps-mJO7Wrr-.mjs} +1 -1
- package/dist/{Syncs-CqdBrO3e.mjs → Syncs-oeaNrrde.mjs} +1 -1
- package/dist/{TalentReview-CTKddH_I.mjs → TalentReview-BN4rVbfv.mjs} +1 -1
- package/dist/{TalentReview-DXOUGqNl.mjs → TalentReview-LXvNicMb.mjs} +1 -1
- package/dist/{TalentReviewInsights-Bm3yxUei.mjs → TalentReviewInsights-Bv8Zzq-J.mjs} +1 -1
- package/dist/{TaskCompleted-DbEzciWA.mjs → TaskCompleted-DdrBZ9yH.mjs} +1 -1
- package/dist/{Team-DgRlTrzR.mjs → Team-C9iNL3J1.mjs} +1 -1
- package/dist/{Teams-Cd80VAMQ.mjs → Teams-DYHzL5bZ.mjs} +1 -1
- package/dist/{TextBold-DNyVO3mv.mjs → TextBold-Cazylaa4.mjs} +1 -1
- package/dist/{TextBulletList-CXWIlo-p.mjs → TextBulletList-C1ezA6Ml.mjs} +1 -1
- package/dist/{TextInput-J48wY8Z6.mjs → TextInput-CaF2XDDZ.mjs} +1 -1
- package/dist/{TextItalic-B4PGPWar.mjs → TextItalic-BYHbGBMu.mjs} +1 -1
- package/dist/{TextNumberList-C4iZkb-_.mjs → TextNumberList-BdHO8PNW.mjs} +1 -1
- package/dist/{TextUnderline-AgSL_bMj.mjs → TextUnderline-Do3EiIWM.mjs} +1 -1
- package/dist/{Toggle-D8PAtpZj.mjs → Toggle-CQ4KEjZD.mjs} +1 -1
- package/dist/{Translate-hB5JEpIi.mjs → Translate-BcWgbOeZ.mjs} +1 -1
- package/dist/{Trash-ByrsHSB_.mjs → Trash-C5P05R3V.mjs} +1 -1
- package/dist/{TrendDown-CRIiu2Tb.mjs → TrendDown-Cl5XOgpt.mjs} +1 -1
- package/dist/{TrendUp-qTFRxjOG.mjs → TrendUp-A_s2nsIk.mjs} +1 -1
- package/dist/{Undo-C5Mi3v_l.mjs → Undo-CtulXEwQ.mjs} +1 -1
- package/dist/{Unplugged-BnUQ7_9v.mjs → Unplugged-C8YyBtd1.mjs} +1 -1
- package/dist/{UpDownCaret-B9I5aInR.mjs → UpDownCaret-C_JAPTni.mjs} +1 -1
- package/dist/{VerticalLine-BzdwX7Bb.mjs → VerticalLine-B5C_K49a.mjs} +1 -1
- package/dist/{Warning-BW1tO_5z.mjs → Warning-B7zBN1qk.mjs} +1 -1
- package/dist/{WarningNoOutline-BC2CPaux.mjs → WarningNoOutline-CgfKfOVF.mjs} +1 -1
- package/dist/{YesAnd-BMEVJRQr.mjs → YesAnd-BdUhex42.mjs} +1 -1
- package/dist/ai-assistant.css +1 -1
- package/dist/{emoji-DNiOMj7f.mjs → emoji-BmhMw4Ak.mjs} +1 -1
- package/dist/{react-apexcharts.min-IHuaUwIW.mjs → react-apexcharts.min-BWVor6_A.mjs} +1 -1
- package/dist/react.es.js +1 -1
- package/dist/react.umd.js +287 -280
- package/dist/{reactComponent-DiIpALV0.mjs → reactComponent-BaYgrUle.mjs} +17586 -15758
- package/package.json +2 -1
- package/react.d.ts +34 -146
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktango/ai-assistant",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.70",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"express.d.ts",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"@ricky0123/vad-react": "^0.0.28",
|
|
25
25
|
"@sinclair/typebox": "^0.34",
|
|
26
26
|
"apexcharts": "^4.7.0",
|
|
27
|
+
"classnames": "^2.2.6",
|
|
27
28
|
"dom-to-semantic-markdown": "^1.3",
|
|
28
29
|
"html2canvas": "^1.4.1",
|
|
29
30
|
"http-proxy-middleware": "^3",
|
package/react.d.ts
CHANGED
|
@@ -1,104 +1,12 @@
|
|
|
1
1
|
import type { TSchema, Type, Static, TObject } from "@sinclair/typebox";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
description: string;
|
|
11
|
-
parameters?: any;
|
|
12
|
-
chatItemMatches?: (chatItem: {
|
|
13
|
-
role: "user" | "model" | "tool";
|
|
14
|
-
parts: ChatData[];
|
|
15
|
-
}) => boolean;
|
|
16
|
-
fulfill: (result: any) => Promise<string | ChatDataFile>;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
type ChatData =
|
|
20
|
-
| ChatDataText
|
|
21
|
-
| ChatDataToolCall
|
|
22
|
-
| ChatDataToolResult
|
|
23
|
-
| ChatDataFile;
|
|
24
|
-
|
|
25
|
-
type ChatDataText = { type: "text"; text: string };
|
|
26
|
-
|
|
27
|
-
type ChatDataFile = {
|
|
28
|
-
type: "file";
|
|
29
|
-
fileUri: string;
|
|
30
|
-
mimeType: string;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
type ChatDataToolCall = {
|
|
34
|
-
type: "toolCall";
|
|
35
|
-
toolName: string;
|
|
36
|
-
args: Record<string, unknown>;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
type ChatDataToolResult = {
|
|
40
|
-
type: "toolResult";
|
|
41
|
-
toolName: string;
|
|
42
|
-
result: any;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export type ChatHistoryItem = {
|
|
46
|
-
title: string;
|
|
47
|
-
messages: any[];
|
|
48
|
-
[key: string]: any;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export type ChatHistory = Record<string, ChatHistoryItem[]>;
|
|
52
|
-
|
|
53
|
-
export type ChatSizes = "small" | "default" | "large" | "full";
|
|
54
|
-
|
|
55
|
-
export type AiAssistantControls = {
|
|
56
|
-
setPrompt?: (prompt: string) => void;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export type AiAssistantProps = {
|
|
60
|
-
/**
|
|
61
|
-
* The title to display in the window. Default: "WorkTango AI Assistant".
|
|
62
|
-
*/
|
|
63
|
-
windowTitle?: React.ReactNode;
|
|
64
|
-
tools?: ToolDeclaration[];
|
|
65
|
-
enableDebug: boolean;
|
|
66
|
-
onClose: () => void;
|
|
67
|
-
hasCloseButton?: boolean;
|
|
68
|
-
chatWindowZeroState?: React.ReactNode;
|
|
69
|
-
hasToggleChatSizeButton?: boolean;
|
|
70
|
-
hasChatHistory?: boolean;
|
|
71
|
-
chatHistory?: ChatHistory;
|
|
72
|
-
startingWidth?: ChatSizes;
|
|
73
|
-
/**
|
|
74
|
-
* The system instruction to use for the AI assistant.
|
|
75
|
-
*/
|
|
76
|
-
systemInstruction?: () => string | Promise<string>;
|
|
77
|
-
/**
|
|
78
|
-
* The initial prompt to use for the AI assistant.
|
|
79
|
-
*/
|
|
80
|
-
initialPrompt?: string;
|
|
81
|
-
/**
|
|
82
|
-
* A ref to the controls object for the AI assistant. Used to allow some form
|
|
83
|
-
* of control over the AI assistant from outside the component, allowing things
|
|
84
|
-
* like recommended prompts to be set from outside the component.
|
|
85
|
-
*/
|
|
86
|
-
controls?: React.MutableRefObject<AiAssistantControls>;
|
|
87
|
-
/**
|
|
88
|
-
* Whether to show the chat history by default. Default: true.
|
|
89
|
-
*/
|
|
90
|
-
chatHistoryShownByDefault?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Otherwise, if there's a chat history, we start with the latest history, so
|
|
93
|
-
* the user can continue the previous conversation.
|
|
94
|
-
*/
|
|
95
|
-
startWithNewChat?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* The minimum number of characters that must be entered before the user can
|
|
98
|
-
* submit a message. Default: 5.
|
|
99
|
-
*/
|
|
100
|
-
minimumCharacterCount?: number;
|
|
101
|
-
};
|
|
2
|
+
import {
|
|
3
|
+
AiAssistantProps,
|
|
4
|
+
ChatData,
|
|
5
|
+
ChatItem,
|
|
6
|
+
GetChatCompletionOptions,
|
|
7
|
+
GetStructuredResponseOptions,
|
|
8
|
+
ToolDeclaration,
|
|
9
|
+
} from "./sharedTypes";
|
|
102
10
|
|
|
103
11
|
export function AiAssistant(args: AiAssistantProps): JSX.Element;
|
|
104
12
|
|
|
@@ -112,13 +20,7 @@ export const tools: {
|
|
|
112
20
|
askSingleShotQuestion: ToolDeclaration;
|
|
113
21
|
analyzeCurrentPage: ToolDeclaration;
|
|
114
22
|
};
|
|
115
|
-
createTool<TParams extends TSchema = TSchema>({
|
|
116
|
-
name,
|
|
117
|
-
description,
|
|
118
|
-
parameters: userParameters,
|
|
119
|
-
fulfill,
|
|
120
|
-
chatItemMatches,
|
|
121
|
-
}: {
|
|
23
|
+
createTool<TParams extends TSchema = TSchema>(args: {
|
|
122
24
|
name: string;
|
|
123
25
|
description: string;
|
|
124
26
|
parameters?: (t: typeof Type) => TParams;
|
|
@@ -170,50 +72,36 @@ export const config: {
|
|
|
170
72
|
getScreenshotMainContentSelector: () => string;
|
|
171
73
|
};
|
|
172
74
|
|
|
173
|
-
export interface Conversation {
|
|
174
|
-
id: string;
|
|
175
|
-
title: string;
|
|
176
|
-
updatedAt: Date;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
import type { Static, TSchema, Type } from "@sinclair/typebox";
|
|
180
|
-
|
|
181
|
-
export type GetStructuredResponseOptions<T extends TSchema> = {
|
|
182
|
-
requestBody: {
|
|
183
|
-
model: SupportedTextModel | undefined;
|
|
184
|
-
temperature: number | undefined;
|
|
185
|
-
prompt: string;
|
|
186
|
-
schema: (t: typeof Type) => TSchema;
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
|
|
190
75
|
/**
|
|
191
76
|
* Makes a structured response request to the LLM API.
|
|
192
77
|
*/
|
|
193
|
-
export
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
export type GetChatCompletionOptions = {
|
|
198
|
-
requestBody: {
|
|
199
|
-
model: SupportedTextModel | undefined;
|
|
200
|
-
temperature: number | undefined;
|
|
201
|
-
stream: boolean;
|
|
202
|
-
messages: ChatItem[];
|
|
203
|
-
tools?: ToolDeclaration[] | undefined;
|
|
204
|
-
};
|
|
205
|
-
onChunk?: (chunk: ChatData) => void;
|
|
206
|
-
onError?: (error: Error) => void;
|
|
207
|
-
onComplete?: () => void;
|
|
208
|
-
};
|
|
78
|
+
export function getStructuredResponse<T extends TSchema>(
|
|
79
|
+
args: GetStructuredResponseOptions<T>
|
|
80
|
+
): Promise<Static<T>>;
|
|
209
81
|
|
|
210
82
|
/**
|
|
211
83
|
* Makes a chat completion request to the LLM API. Can be used both with streaming and non-streaming responses.
|
|
212
84
|
* For streaming responses, provides callbacks for handling chunks and errors.
|
|
213
85
|
*/
|
|
214
|
-
export
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
86
|
+
export function getChatCompletion(
|
|
87
|
+
args: GetChatCompletionOptions
|
|
88
|
+
): Promise<ChatData[]>;
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
AiAssistantControls,
|
|
92
|
+
ChatData,
|
|
93
|
+
ChatItem,
|
|
94
|
+
GetChatCompletionOptions,
|
|
95
|
+
GetStructuredResponseOptions,
|
|
96
|
+
ToolDeclaration,
|
|
97
|
+
AiAssistantProps,
|
|
98
|
+
ChatDataFile,
|
|
99
|
+
ChatDataText,
|
|
100
|
+
ChatDataToolCall,
|
|
101
|
+
ChatDataToolResult,
|
|
102
|
+
ChatHistory,
|
|
103
|
+
ChatHistoryItem,
|
|
104
|
+
ChatSizes,
|
|
105
|
+
Conversation,
|
|
106
|
+
SupportedTextModel,
|
|
107
|
+
} from "./sharedTypes";
|