@worktango/ai-assistant 0.0.69 → 0.0.71-beta01
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/constants.js +68 -0
- package/dist/{Absenteeism-DT5VgaJL.mjs → Absenteeism-DuMBI7Xy.mjs} +1 -1
- package/dist/{ActivityFeed-CFvJistd.mjs → ActivityFeed-BWNonTyl.mjs} +1 -1
- package/dist/{AddUser-GSQ16m4f.mjs → AddUser-C0-ZkzGq.mjs} +1 -1
- package/dist/{Admin-B2SWuM3b.mjs → Admin-ByiNr7tO.mjs} +1 -1
- package/dist/{Admin-BjRgRhwN.mjs → Admin-DP1o-B_y.mjs} +1 -1
- package/dist/{AiGeneral-DuEl7Hfn.mjs → AiGeneral-DvuHlNKR.mjs} +1 -1
- package/dist/{AiScoring-V7ObyvEs.mjs → AiScoring-89dTmyjq.mjs} +1 -1
- package/dist/{AiText-DUGbdQAE.mjs → AiText-HsJgVY_3.mjs} +1 -1
- package/dist/{Anniversary-4cU4KrNd.mjs → Anniversary-v9IGmefK.mjs} +1 -1
- package/dist/{Appreciation-DFnlut3M.mjs → Appreciation-CQ2-9dAd.mjs} +1 -1
- package/dist/{ArrowDown-DSZmRpdi.mjs → ArrowDown-BDUMxyP3.mjs} +1 -1
- package/dist/{ArrowLeft-B2dtHiw6.mjs → ArrowLeft-34QqmZ4n.mjs} +1 -1
- package/dist/{ArrowRight-Da-8Y1RN.mjs → ArrowRight-x51qrhuA.mjs} +1 -1
- package/dist/{ArrowUp-BgSLw_df.mjs → ArrowUp-CkTsEqix.mjs} +1 -1
- package/dist/{Attachment-BqlKb3hB.mjs → Attachment-CL-a84Ot.mjs} +1 -1
- package/dist/{BeQuickDontHurry-D54ptPXz.mjs → BeQuickDontHurry-Dqd_I3uU.mjs} +1 -1
- package/dist/{Birthday-D_P44y1-.mjs → Birthday-Eq3n4k7r.mjs} +1 -1
- package/dist/{BrandPromise-9j889NEB.mjs → BrandPromise-C9muZdEm.mjs} +1 -1
- package/dist/{BrandVision-QfQx0ps4.mjs → BrandVision-DOgcTip9.mjs} +1 -1
- package/dist/{Calendar-DAK8r2D5.mjs → Calendar-kj_aoh3X.mjs} +1 -1
- package/dist/{CaretDn-CJm0jc0T.mjs → CaretDn-3QvC2Ks_.mjs} +1 -1
- package/dist/{CaretDown-CLCB1IOE.mjs → CaretDown-CthpwW0X.mjs} +1 -1
- package/dist/{CaretLeft-Bc3gGHmr.mjs → CaretLeft-ajHt3pl3.mjs} +1 -1
- package/dist/{CaretRight-YTMVzof_.mjs → CaretRight-2DcXo501.mjs} +1 -1
- package/dist/{CaretUp-BGDpKuz6.mjs → CaretUp-BOZxLYEj.mjs} +1 -1
- package/dist/{ChallengeAccepted-TnK2kV5Q.mjs → ChallengeAccepted-Bj03oQUN.mjs} +1 -1
- package/dist/{CheckIn-CD8YNcWi.mjs → CheckIn-CKB2mhUq.mjs} +1 -1
- package/dist/{CheckIns-DnWs9XQz.mjs → CheckIns-PUWSLI-J.mjs} +1 -1
- package/dist/{CheckSeal-HqdIi40Y.mjs → CheckSeal-CXgj42hp.mjs} +1 -1
- package/dist/{Checkmark-D7ch0w1a.mjs → Checkmark-DncX4ntg.mjs} +1 -1
- package/dist/{Clock-BJEC_jNv.mjs → Clock-DWjnrd1k.mjs} +1 -1
- package/dist/{Close-DfrgjTyl.mjs → Close-DTkJmDWV.mjs} +1 -1
- package/dist/{CloudDownload-_4uwgLuT.mjs → CloudDownload-DFewwHDe.mjs} +1 -1
- package/dist/{Comment-BZZM3kRH.mjs → Comment-DM8g4G0s.mjs} +1 -1
- package/dist/{Comments-HLG8J2h0.mjs → Comments-DTdRD1se.mjs} +1 -1
- package/dist/{Connections-CsOCXV0c.mjs → Connections-BVd-jr4_.mjs} +1 -1
- package/dist/{Copy-u0hDQjfo.mjs → Copy-BEjRKzrN.mjs} +1 -1
- package/dist/{CustomQuestion-CcU1EAfa.mjs → CustomQuestion-B6uVQYSv.mjs} +1 -1
- package/dist/{CustomerSuccess-CfffgyTY.mjs → CustomerSuccess-DulDuCd9.mjs} +1 -1
- package/dist/{DatePicker-BtNoWceT.mjs → DatePicker-CnI-egW2.mjs} +1 -1
- package/dist/{Dot-CVFGECzW.mjs → Dot-CzrLmso4.mjs} +1 -1
- package/dist/{Download-BI07i6hB.mjs → Download-CjqzCfa4.mjs} +1 -1
- package/dist/{Drag-DutAOYoV.mjs → Drag-B41Ws-uT.mjs} +1 -1
- package/dist/{Earn-BEdLmZ4J.mjs → Earn-DH70AdxA.mjs} +1 -1
- package/dist/{Email-Dl_xaxUp.mjs → Email-CzT4P6OW.mjs} +1 -1
- package/dist/{EmojiDisplay-DoIPaF0B.mjs → EmojiDisplay-BQsqSy4X.mjs} +2 -2
- package/dist/{EmojiPicker-BTf5cVF5.mjs → EmojiPicker-BJDgVpe4.mjs} +2 -2
- package/dist/{EnpsSurvey-DZdXwOr_.mjs → EnpsSurvey-BoLTDAVU.mjs} +1 -1
- package/dist/{Expired-BPdZKRq4.mjs → Expired-BbYRUX2m.mjs} +1 -1
- package/dist/{Eye-kkKiVC2N.mjs → Eye-DywHAWVC.mjs} +1 -1
- package/dist/{Feedback-DquEXzcR.mjs → Feedback-BgYnRo0E.mjs} +1 -1
- package/dist/{Feedback-CNwrVM24.mjs → Feedback-BwytIkQ7.mjs} +1 -1
- package/dist/{Filter-BQWjDou3.mjs → Filter-B5m-GyfA.mjs} +1 -1
- package/dist/{Flag-BJaKtwLg.mjs → Flag-BOkmmH_U.mjs} +1 -1
- package/dist/{Giphy-R5itCsCW.mjs → Giphy-C9OnU_l9.mjs} +1 -1
- package/dist/{GoalCount-BqXg2-fg.mjs → GoalCount-NgsZLCRw.mjs} +1 -1
- package/dist/{GoalPercent-Qv0c6_LJ.mjs → GoalPercent-zmTLiIgF.mjs} +1 -1
- package/dist/{GoalTask-D9jiyjCl.mjs → GoalTask-D8hIoTBL.mjs} +1 -1
- package/dist/{GoalTask-CoGYN6fS.mjs → GoalTask-PkpMK2Rw.mjs} +1 -1
- package/dist/{Goals-CYlcjSBO.mjs → Goals-BT7C0gX_.mjs} +1 -1
- package/dist/{Goals-Xv8j-t2x.mjs → Goals-DBsMacWl.mjs} +1 -1
- package/dist/{Growth-CFoAF9VD.mjs → Growth-iGSfCsck.mjs} +1 -1
- package/dist/{Hamburger-CnZDciEh.mjs → Hamburger-B-l4mo8V.mjs} +1 -1
- package/dist/{Help-CcNJafOG.mjs → Help-BxnCPylW.mjs} +1 -1
- package/dist/{HighFive-BxOfwgoU.mjs → HighFive-BFKnmRAy.mjs} +1 -1
- package/dist/{HighFive-DLP2y-Ve.mjs → HighFive-kxFJpz59.mjs} +1 -1
- package/dist/{Home-Bkj3YEvH.mjs → Home-DFfglJP6.mjs} +1 -1
- package/dist/{Home-Bn3yxLO9.mjs → Home-Ds_idk71.mjs} +1 -1
- package/dist/{HorizontalLine-SkpExaXz.mjs → HorizontalLine-Cb3y1Utr.mjs} +1 -1
- package/dist/{Hourglass-DryI37Tp.mjs → Hourglass-B37mo0x8.mjs} +1 -1
- package/dist/{Image-h3wq1aS-.mjs → Image-DnE8ikHl.mjs} +1 -1
- package/dist/{ImageFile-DJFZYENH.mjs → ImageFile-BZNr8OVR.mjs} +1 -1
- package/dist/{InGoodCompany-isRT88YM.mjs → InGoodCompany-DP5XEL_V.mjs} +1 -1
- package/dist/{Incentives-efZC0SQt.mjs → Incentives-DvmGyLGc.mjs} +1 -1
- package/dist/{Info-D7V6DzQZ.mjs → Info-Cka4VEXY.mjs} +1 -1
- package/dist/{Insights-DOlgVPHE.mjs → Insights-5Gf_culV.mjs} +1 -1
- package/dist/{Insights-Chzv4Jv2.mjs → Insights-wE51IRMF.mjs} +1 -1
- package/dist/{Integrations-Bx471QFU.mjs → Integrations-BRywgEQ6.mjs} +1 -1
- package/dist/{KazooLogo-C-iDs5m6.mjs → KazooLogo-_0ABAjUv.mjs} +1 -1
- package/dist/{KnowYourAudience-jFI6hOd_.mjs → KnowYourAudience-BZQECUTB.mjs} +1 -1
- package/dist/{Launch-Bi6amAFc.mjs → Launch-ax4u-6n3.mjs} +1 -1
- package/dist/{Link-_j2yO8Jz.mjs → Link-XA75rPCR.mjs} +1 -1
- package/dist/{LinkArrow-yo1yFFQd.mjs → LinkArrow-CAeKx1f4.mjs} +1 -1
- package/dist/{Loading-BH3tWOGG.mjs → Loading-CjYB9qmp.mjs} +1 -1
- package/dist/{Lock-DS6vdQ_x.mjs → Lock-69UrUPmJ.mjs} +1 -1
- package/dist/{Management-FZKfdQZV.mjs → Management-DnFsvcyC.mjs} +1 -1
- package/dist/{MeatballMenu-DKVJjWNJ.mjs → MeatballMenu-CLXkzcFh.mjs} +1 -1
- package/dist/{Messages-DfbwF4Je.mjs → Messages-B8WyYPMj.mjs} +1 -1
- package/dist/{Microphone-BEIqzGPx.mjs → Microphone-CS6qwaH0.mjs} +1 -1
- package/dist/{Mobile-CSh5CvcA.mjs → Mobile-NnqglnIo.mjs} +1 -1
- package/dist/{Nomination-CBOrtgfg.mjs → Nomination-CD2Pzw7e.mjs} +1 -1
- package/dist/{NominationsAndAwards-Qy0NrlIq.mjs → NominationsAndAwards-D-sx79Qq.mjs} +1 -1
- package/dist/{Notification-_4n_Ew0q.mjs → Notification-uVIokPjd.mjs} +1 -1
- package/dist/{Okrs-1TsjG-uR.mjs → Okrs-CeeC5-WI.mjs} +1 -1
- package/dist/{PeerToPeer-M0PhthI6.mjs → PeerToPeer-Bt7lA4EI.mjs} +1 -1
- package/dist/{Pencil-C7PI1gq5.mjs → Pencil-BSznpVyJ.mjs} +1 -1
- package/dist/{People-iPSMqHLX.mjs → People-CZKWvsPU.mjs} +1 -1
- package/dist/{PerformanceManagement-0SGH_2Gu.mjs → PerformanceManagement-DqyvpLGO.mjs} +1 -1
- package/dist/{Pin-q3gfeBMN.mjs → Pin-ByK7q9sG.mjs} +1 -1
- package/dist/{PinnedIconAward-Dd5p9gvf.mjs → PinnedIconAward-ZaX8jtOC.mjs} +1 -1
- package/dist/{PinnedIconBrightIdea-C-GC7wYo.mjs → PinnedIconBrightIdea-ClTTn93X.mjs} +1 -1
- package/dist/{PinnedIconBullseye-C2wEaxum.mjs → PinnedIconBullseye-Doj-8ur-.mjs} +1 -1
- package/dist/{PinnedIconChampagne-iTOHZOvg.mjs → PinnedIconChampagne-BA3_2aFn.mjs} +1 -1
- package/dist/{PinnedIconCheer-BIWL3FJV.mjs → PinnedIconCheer-B656rcWX.mjs} +1 -1
- package/dist/{PinnedIconCrown-CuTrZu3w.mjs → PinnedIconCrown-CO-A37in.mjs} +1 -1
- package/dist/{PinnedIconDiamond-DPePAVHy.mjs → PinnedIconDiamond-H0KBb_xl.mjs} +1 -1
- package/dist/{PinnedIconHoleInOne-ljt0zzuN.mjs → PinnedIconHoleInOne-C5FZMKMW.mjs} +1 -1
- package/dist/{PinnedIconMedal-DHvm6oOH.mjs → PinnedIconMedal-DeczmVLR.mjs} +1 -1
- package/dist/{PinnedIconMetrics-mDBt3saD.mjs → PinnedIconMetrics-Vo8lmJ3Z.mjs} +1 -1
- package/dist/{PinnedIconPin-TxtpehoH.mjs → PinnedIconPin-BXuzdqdF.mjs} +1 -1
- package/dist/{PinnedIconRockAndRoll-iQfLB5ov.mjs → PinnedIconRockAndRoll-BHkaO8pl.mjs} +1 -1
- package/dist/{PinnedIconRocket-DA30gpev.mjs → PinnedIconRocket-Dg57D8pB.mjs} +1 -1
- package/dist/{PinnedIconStrength-CSnLa4R3.mjs → PinnedIconStrength-CEFqBAe_.mjs} +1 -1
- package/dist/{PinnedIconTeddyBear-DENU0RqT.mjs → PinnedIconTeddyBear-BPj5kWMM.mjs} +1 -1
- package/dist/{PlatformLogo-BL8uujRw.mjs → PlatformLogo-Bd5CLNVS.mjs} +1 -1
- package/dist/{Plus-Doa51C25.mjs → Plus-CQ--QYba.mjs} +1 -1
- package/dist/{Popper-B7Amsdim.mjs → Popper-g5IDo5FN.mjs} +1 -1
- package/dist/{PrivateEye-BDO4JFFb.mjs → PrivateEye-Czl9gNCb.mjs} +1 -1
- package/dist/{PrivatePushPin-vOWN2SQ2.mjs → PrivatePushPin-B9G__YHi.mjs} +1 -1
- package/dist/{Processing-B2vmUZ8Y.mjs → Processing-KzIf6nZU.mjs} +1 -1
- package/dist/{Productivity-BrgnIFqF.mjs → Productivity-I6M3lwf9.mjs} +1 -1
- package/dist/{ProgressCircle-C7uc49W9.mjs → ProgressCircle-DvgyeHRG.mjs} +1 -1
- package/dist/{PulseSurvey-BmYMcsXw.mjs → PulseSurvey-C7-7jD1h.mjs} +1 -1
- package/dist/{PushPin-Zmssd93L.mjs → PushPin-CqGXF1FB.mjs} +1 -1
- package/dist/{Recognition-BesqhT0O.mjs → Recognition-hIJCr74N.mjs} +1 -1
- package/dist/{Recognition-oOW8RpuJ.mjs → Recognition-pOKzQihK.mjs} +1 -1
- package/dist/{Retention-B1IFhHrg.mjs → Retention-Cd9A5IQX.mjs} +1 -1
- package/dist/{Rewards-DDbA5482.mjs → Rewards-JjlUq6RQ.mjs} +1 -1
- package/dist/{Rewards-CAeDDuNW.mjs → Rewards-s_HMCycp.mjs} +1 -1
- package/dist/{RewardsCatalog-CV0I2bKl.mjs → RewardsCatalog-CRoqYFjF.mjs} +1 -1
- package/dist/{Roadmap-CDQ_DfN7.mjs → Roadmap-CReoXD2U.mjs} +1 -1
- package/dist/{Search-CUky2mKC.mjs → Search--vKA_TZI.mjs} +1 -1
- package/dist/{Security-C72KYHT4.mjs → Security-QIVIkW1v.mjs} +1 -1
- package/dist/{SendRecognition-Dcf8nFfU.mjs → SendRecognition-DASEyV9e.mjs} +1 -1
- package/dist/{ShareLink-B4Co9_ma.mjs → ShareLink-CLek7wF6.mjs} +1 -1
- package/dist/{Skill-CTzMnhnD.mjs → Skill-RKEbFaQ3.mjs} +1 -1
- package/dist/{Skills-BBV6TFHF.mjs → Skills-D45QjPNf.mjs} +1 -1
- package/dist/{Smiley-CTCwiSlh.mjs → Smiley-CXC0AePT.mjs} +1 -1
- package/dist/{Stop-BuLTUEb1.mjs → Stop-B6BC9sNg.mjs} +1 -1
- package/dist/{Survey-BVWRC4JS.mjs → Survey-DaAgyTfW.mjs} +1 -1
- package/dist/{Surveys-JpjcyDUm.mjs → Surveys-B-hEa17U.mjs} +1 -1
- package/dist/{SyncUps-BdNcWpYd.mjs → SyncUps-DVBRDyub.mjs} +1 -1
- package/dist/{Syncs-CqdBrO3e.mjs → Syncs-DHM9PIQO.mjs} +1 -1
- package/dist/{TalentReview-CTKddH_I.mjs → TalentReview-BX-7HZLD.mjs} +1 -1
- package/dist/{TalentReview-DXOUGqNl.mjs → TalentReview-Dr6b9BQF.mjs} +1 -1
- package/dist/{TalentReviewInsights-Bm3yxUei.mjs → TalentReviewInsights-CwSrja0N.mjs} +1 -1
- package/dist/{TaskCompleted-DbEzciWA.mjs → TaskCompleted-BrPGzY5v.mjs} +1 -1
- package/dist/{Team-DgRlTrzR.mjs → Team-DgTwMIDn.mjs} +1 -1
- package/dist/{Teams-Cd80VAMQ.mjs → Teams-a_wzr-Ky.mjs} +1 -1
- package/dist/{TextBold-DNyVO3mv.mjs → TextBold-CtZmQwGj.mjs} +1 -1
- package/dist/{TextBulletList-CXWIlo-p.mjs → TextBulletList-BoyWVmgN.mjs} +1 -1
- package/dist/{TextInput-J48wY8Z6.mjs → TextInput-CaTGviAH.mjs} +1 -1
- package/dist/{TextItalic-B4PGPWar.mjs → TextItalic-iYWhFsmL.mjs} +1 -1
- package/dist/{TextNumberList-C4iZkb-_.mjs → TextNumberList-DeymU-DS.mjs} +1 -1
- package/dist/{TextUnderline-AgSL_bMj.mjs → TextUnderline-hOduo8Db.mjs} +1 -1
- package/dist/{Toggle-D8PAtpZj.mjs → Toggle-MOhNfG2Q.mjs} +1 -1
- package/dist/{Translate-hB5JEpIi.mjs → Translate-CphArBVk.mjs} +1 -1
- package/dist/{Trash-ByrsHSB_.mjs → Trash-pJ_aDsGQ.mjs} +1 -1
- package/dist/{TrendDown-CRIiu2Tb.mjs → TrendDown-B20Dfhtf.mjs} +1 -1
- package/dist/{TrendUp-qTFRxjOG.mjs → TrendUp-SMVq8Q-2.mjs} +1 -1
- package/dist/{Undo-C5Mi3v_l.mjs → Undo-jQdYOHrl.mjs} +1 -1
- package/dist/{Unplugged-BnUQ7_9v.mjs → Unplugged-Cbo7PqXI.mjs} +1 -1
- package/dist/{UpDownCaret-B9I5aInR.mjs → UpDownCaret-C_BmX9ns.mjs} +1 -1
- package/dist/{VerticalLine-BzdwX7Bb.mjs → VerticalLine-CBWfqCcc.mjs} +1 -1
- package/dist/{Warning-BW1tO_5z.mjs → Warning-BmT3K24_.mjs} +1 -1
- package/dist/{WarningNoOutline-BC2CPaux.mjs → WarningNoOutline-_MByofbX.mjs} +1 -1
- package/dist/{YesAnd-BMEVJRQr.mjs → YesAnd-DvjVYfQ9.mjs} +1 -1
- package/dist/ai-assistant.css +1 -1
- package/dist/{emoji-DNiOMj7f.mjs → emoji-DfS8qZ_s.mjs} +1 -1
- package/dist/{react-apexcharts.min-IHuaUwIW.mjs → react-apexcharts.min-BBY0m6GV.mjs} +1 -1
- package/dist/react.es.js +5 -4
- package/dist/react.umd.js +340 -333
- package/dist/{reactComponent-DiIpALV0.mjs → reactComponent-DaYg-c3g.mjs} +17934 -15988
- package/package.json +3 -1
- package/react.d.ts +39 -146
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktango/ai-assistant",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.71-beta01",
|
|
4
4
|
"files": [
|
|
5
|
+
"constants.js",
|
|
5
6
|
"dist",
|
|
6
7
|
"express.d.ts",
|
|
7
8
|
"express.js",
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
"@ricky0123/vad-react": "^0.0.28",
|
|
25
26
|
"@sinclair/typebox": "^0.34",
|
|
26
27
|
"apexcharts": "^4.7.0",
|
|
28
|
+
"classnames": "^2.2.6",
|
|
27
29
|
"dom-to-semantic-markdown": "^1.3",
|
|
28
30
|
"html2canvas": "^1.4.1",
|
|
29
31
|
"http-proxy-middleware": "^3",
|
package/react.d.ts
CHANGED
|
@@ -1,107 +1,20 @@
|
|
|
1
1
|
import type { TSchema, Type, Static, TObject } from "@sinclair/typebox";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+
AiAssistantSuggestedPromptsProps,
|
|
10
|
+
} from "./sharedTypes";
|
|
102
11
|
|
|
103
12
|
export function AiAssistant(args: AiAssistantProps): JSX.Element;
|
|
104
13
|
|
|
14
|
+
export function AiAssistantSuggestedPrompts(
|
|
15
|
+
args: AiAssistantSuggestedPromptsProps
|
|
16
|
+
): JSX.Element;
|
|
17
|
+
|
|
105
18
|
export const tools: {
|
|
106
19
|
kazooTools: {
|
|
107
20
|
getRewardsAndRecognitionCurrentUserTool: ToolDeclaration;
|
|
@@ -112,13 +25,7 @@ export const tools: {
|
|
|
112
25
|
askSingleShotQuestion: ToolDeclaration;
|
|
113
26
|
analyzeCurrentPage: ToolDeclaration;
|
|
114
27
|
};
|
|
115
|
-
createTool<TParams extends TSchema = TSchema>({
|
|
116
|
-
name,
|
|
117
|
-
description,
|
|
118
|
-
parameters: userParameters,
|
|
119
|
-
fulfill,
|
|
120
|
-
chatItemMatches,
|
|
121
|
-
}: {
|
|
28
|
+
createTool<TParams extends TSchema = TSchema>(args: {
|
|
122
29
|
name: string;
|
|
123
30
|
description: string;
|
|
124
31
|
parameters?: (t: typeof Type) => TParams;
|
|
@@ -170,50 +77,36 @@ export const config: {
|
|
|
170
77
|
getScreenshotMainContentSelector: () => string;
|
|
171
78
|
};
|
|
172
79
|
|
|
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
80
|
/**
|
|
191
81
|
* Makes a structured response request to the LLM API.
|
|
192
82
|
*/
|
|
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
|
-
};
|
|
83
|
+
export function getStructuredResponse<T extends TSchema>(
|
|
84
|
+
args: GetStructuredResponseOptions<T>
|
|
85
|
+
): Promise<Static<T>>;
|
|
209
86
|
|
|
210
87
|
/**
|
|
211
88
|
* Makes a chat completion request to the LLM API. Can be used both with streaming and non-streaming responses.
|
|
212
89
|
* For streaming responses, provides callbacks for handling chunks and errors.
|
|
213
90
|
*/
|
|
214
|
-
export
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
91
|
+
export function getChatCompletion(
|
|
92
|
+
args: GetChatCompletionOptions
|
|
93
|
+
): Promise<ChatData[]>;
|
|
94
|
+
|
|
95
|
+
export {
|
|
96
|
+
AiAssistantControls,
|
|
97
|
+
ChatData,
|
|
98
|
+
ChatItem,
|
|
99
|
+
GetChatCompletionOptions,
|
|
100
|
+
GetStructuredResponseOptions,
|
|
101
|
+
ToolDeclaration,
|
|
102
|
+
AiAssistantProps,
|
|
103
|
+
ChatDataFile,
|
|
104
|
+
ChatDataText,
|
|
105
|
+
ChatDataToolCall,
|
|
106
|
+
ChatDataToolResult,
|
|
107
|
+
ChatHistory,
|
|
108
|
+
ChatHistoryItem,
|
|
109
|
+
ChatSizes,
|
|
110
|
+
Conversation,
|
|
111
|
+
SupportedTextModel,
|
|
112
|
+
} from "./sharedTypes";
|