khoj 1.24.2.dev6__py3-none-any.whl → 1.24.2.dev9__py3-none-any.whl

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.
Files changed (32) hide show
  1. khoj/database/adapters/__init__.py +4 -1
  2. khoj/database/admin.py +2 -0
  3. khoj/interface/compiled/404/index.html +1 -1
  4. khoj/interface/compiled/_next/static/chunks/9178-676470b9ce8324dc.js +1 -0
  5. khoj/interface/compiled/_next/static/chunks/{webpack-9257083ec6042fc1.js → webpack-dff708c71e9234cb.js} +1 -1
  6. khoj/interface/compiled/_next/static/css/{60fc94dfe42ddfe9.css → 2de69f0be774c768.css} +1 -1
  7. khoj/interface/compiled/agents/index.html +1 -1
  8. khoj/interface/compiled/agents/index.txt +1 -1
  9. khoj/interface/compiled/automations/index.html +1 -1
  10. khoj/interface/compiled/automations/index.txt +1 -1
  11. khoj/interface/compiled/chat/index.html +1 -1
  12. khoj/interface/compiled/chat/index.txt +2 -2
  13. khoj/interface/compiled/factchecker/index.html +1 -1
  14. khoj/interface/compiled/factchecker/index.txt +2 -2
  15. khoj/interface/compiled/index.html +1 -1
  16. khoj/interface/compiled/index.txt +1 -1
  17. khoj/interface/compiled/search/index.html +1 -1
  18. khoj/interface/compiled/search/index.txt +1 -1
  19. khoj/interface/compiled/settings/index.html +1 -1
  20. khoj/interface/compiled/settings/index.txt +1 -1
  21. khoj/interface/compiled/share/chat/index.html +1 -1
  22. khoj/interface/compiled/share/chat/index.txt +2 -2
  23. khoj/routers/api_chat.py +1 -1
  24. khoj/routers/helpers.py +13 -0
  25. {khoj-1.24.2.dev6.dist-info → khoj-1.24.2.dev9.dist-info}/METADATA +1 -1
  26. {khoj-1.24.2.dev6.dist-info → khoj-1.24.2.dev9.dist-info}/RECORD +31 -31
  27. khoj/interface/compiled/_next/static/chunks/9178-7dcdc4fb8cc8cc24.js +0 -1
  28. /khoj/interface/compiled/_next/static/{mRXreP-unBb35nvpcsyA9 → FgOzomXFZwfuF3KhbR4wy}/_buildManifest.js +0 -0
  29. /khoj/interface/compiled/_next/static/{mRXreP-unBb35nvpcsyA9 → FgOzomXFZwfuF3KhbR4wy}/_ssgManifest.js +0 -0
  30. {khoj-1.24.2.dev6.dist-info → khoj-1.24.2.dev9.dist-info}/WHEEL +0 -0
  31. {khoj-1.24.2.dev6.dist-info → khoj-1.24.2.dev9.dist-info}/entry_points.txt +0 -0
  32. {khoj-1.24.2.dev6.dist-info → khoj-1.24.2.dev9.dist-info}/licenses/LICENSE +0 -0
@@ -8,10 +8,10 @@ khoj/app/asgi.py,sha256=soh3C1xazlgHt_bDgKzrfzo2TKXbNYJsckcXNEgTip8,388
8
8
  khoj/app/settings.py,sha256=M6sQUu_AdeKl3eruecBaifRBhYOBIait0KA2NPizcBM,6198
9
9
  khoj/app/urls.py,sha256=7ECnusoAPAfbO_H_b5FUzYGvnb4LLdWaRDyKNvYuBvg,869
10
10
  khoj/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- khoj/database/admin.py,sha256=bYF13peHgHpugd9bkEwYzO1r-r5l9JIDjCQbdmK3tT8,9166
11
+ khoj/database/admin.py,sha256=ZKywmGF3q_YdPtoTVUCCpxZ_zYm3d3bhGRzSf9wi7FM,9218
12
12
  khoj/database/apps.py,sha256=pM4tkX5Odw4YW_hLLKK8Nd5kqGddf1en0oMCea44RZw,153
13
13
  khoj/database/tests.py,sha256=mrbGGRNg5jwbTJtWWa7zSKdDyeB4vmgZCRc2nk6VY-g,60
14
- khoj/database/adapters/__init__.py,sha256=bCdiFzjVAQt5liuIsoNpEJLnwdchAk7Znsd8OdsPIBk,58159
14
+ khoj/database/adapters/__init__.py,sha256=IZf2-SuREIsPkebwaSQFmyg1X6CH-KmTQ6mcRZxA2FE,58303
15
15
  khoj/database/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  khoj/database/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  khoj/database/management/commands/change_generated_images_url.py,sha256=w52FwRlyOL4YRpp9O6jJUjSIuGLxVhaS2w1D7gtQgOE,2644
@@ -103,15 +103,17 @@ khoj/interface/compiled/chat.svg,sha256=l2JoYRRgk201adTTdvJ-buKUrc0WGfsudix5xEvt
103
103
  khoj/interface/compiled/close.svg,sha256=hQ2iFLkNzHk0_iyTrSbwnWAeXYlgA-c2Eof2Iqh76n4,417
104
104
  khoj/interface/compiled/copy-button-success.svg,sha256=byqWAYD3Pn9IOXRjOKudJ-TJbP2UESbQGvtLWazNGjY,829
105
105
  khoj/interface/compiled/copy-button.svg,sha256=05bKM2eRxksfBlAPT7yMaoNJEk85bZCxQg67EVrPeHo,669
106
- khoj/interface/compiled/index.html,sha256=ZR79p94fI8XcaBfCuQPpYoN6I3wBwkaTnRAWTRe38gQ,11791
107
- khoj/interface/compiled/index.txt,sha256=lYqJmJJPotpKomILy89SPVEp4z0SmXdaG9hOw37m804,5479
106
+ khoj/interface/compiled/index.html,sha256=BK-jdJt4P8dtzwDERs1q9Uf1fxNu3T7M2L7smPiebNc,11791
107
+ khoj/interface/compiled/index.txt,sha256=Zs0HsR4R3B24aD84pDJ-JZurotH-PZSLpm5NKUJHaqM,5479
108
108
  khoj/interface/compiled/khoj.webmanifest,sha256=lsknYkvEdMbRTOUYKXPM_8krN2gamJmM4u3qj8u9lrU,1682
109
109
  khoj/interface/compiled/logo.svg,sha256=_QCKVYM4WT2Qhcf7aVFImjq_s5CwjynGXYAOgI7yf8w,8059
110
110
  khoj/interface/compiled/send.svg,sha256=VdavOWkVddcwcGcld6pdfmwfz7S91M-9O28cfeiKJkM,635
111
111
  khoj/interface/compiled/share.svg,sha256=91lwo75PvMDrgocuZQab6EQ62CxRbubh9Bhw7CWMKbg,1221
112
112
  khoj/interface/compiled/thumbs-down.svg,sha256=JGNl-DwoRmH2XFMPWwFFklmoYtKxaQbkLE3nuYKe8ZY,1019
113
113
  khoj/interface/compiled/thumbs-up.svg,sha256=yS1wxTRtiztkN-6nZciLoYQUB_KTYNPV8xFRwH2TQFw,1036
114
- khoj/interface/compiled/404/index.html,sha256=6eZgvk-1rTYLD_e2Ztv-jwCwbF10xWFHkSIefyVIP9U,12051
114
+ khoj/interface/compiled/404/index.html,sha256=DuWe46_ABgNlqOuZ4KoFl1N8m-VIqao2prRdlrMOgAQ,12051
115
+ khoj/interface/compiled/_next/static/FgOzomXFZwfuF3KhbR4wy/_buildManifest.js,sha256=6I9QUstNpJnhe3leR2Daw0pSXwzcbBscv6h2jmmPpms,224
116
+ khoj/interface/compiled/_next/static/FgOzomXFZwfuF3KhbR4wy/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
115
117
  khoj/interface/compiled/_next/static/chunks/121-7024f479c297aef0.js,sha256=CcRT2AArGYTo7Orl5w69nrnMqdI_EmyEP_YqIj3FU1c,20952
116
118
  khoj/interface/compiled/_next/static/chunks/1269-2e52d48e7d0e5c61.js,sha256=8iWbeeo_pCFEivsCeLB8dCtO2mMw8Z3LqWi2g5bE-OA,33828
117
119
  khoj/interface/compiled/_next/static/chunks/1603-67a89278e2c5dbe6.js,sha256=2ZLMR7DmmkCjtMyIwUy2FrHXh8fAmEEdlzhjr4Zll3k,71252
@@ -127,7 +129,7 @@ khoj/interface/compiled/_next/static/chunks/51-e8f5bdb69b5ea421.js,sha256=djNz3m
127
129
  khoj/interface/compiled/_next/static/chunks/6297-d1c842ed3f714ab0.js,sha256=4nzZ2umR-q6wQ-8L4RSivWXKV_SE1dWoN9qA1I9lCRI,25675
128
130
  khoj/interface/compiled/_next/static/chunks/7023-a5bf5744d19b3bd3.js,sha256=TBJA7dTnI8nymtbljKuZzo2hbStXWR-P8Qkl57k2Tw8,123898
129
131
  khoj/interface/compiled/_next/static/chunks/9001-3b27af6d5f21df44.js,sha256=ran2mMGTO2kiAJebRGMyfyAu4Sdjw-WobS_m6g-qjz8,34223
130
- khoj/interface/compiled/_next/static/chunks/9178-7dcdc4fb8cc8cc24.js,sha256=Ckw4wa0qPOCdel8DP4eyle0rrtoNh-TqICBer5e2Cgo,17686
132
+ khoj/interface/compiled/_next/static/chunks/9178-676470b9ce8324dc.js,sha256=07x3DU3KT8o121qZX742IAoGnKrerIAtB4s5O34VBFA,17768
131
133
  khoj/interface/compiled/_next/static/chunks/9417-1d158bf46d3a0dc9.js,sha256=RCdrdKyvMQRMyVnZPALFw_EU0IMNvl3x0DN4_1XzJig,19473
132
134
  khoj/interface/compiled/_next/static/chunks/9479-563e4d61f91d5a7c.js,sha256=c4VtkdNKRyB4nl1tAEqPKQHOJUEzcsQ8shdC4y2YFI8,22261
133
135
  khoj/interface/compiled/_next/static/chunks/d3ac728e-a9e3522eef9b6b28.js,sha256=wK1TsLdl56xtbQG6HMRDpylzTOYXQaAnnn2xobFnX40,267216
@@ -136,7 +138,7 @@ khoj/interface/compiled/_next/static/chunks/framework-8e0e0f4a6b83a956.js,sha256
136
138
  khoj/interface/compiled/_next/static/chunks/main-app-6d6ee3495efe03d4.js,sha256=i52E7sWOcSq1G8eYZL3mtTxbUbwRNxcAbSWQ6uWpMsY,475
137
139
  khoj/interface/compiled/_next/static/chunks/main-f84cd3c1873cd842.js,sha256=jKg2A4pPMmEAQmrA10rACH3daS8XXJeMnGOz1AsTkdI,111099
138
140
  khoj/interface/compiled/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js,sha256=6QPOwdWeAVe8x-SsiDrm-Ga6u2DkqgG5SFqglrlyIgA,91381
139
- khoj/interface/compiled/_next/static/chunks/webpack-9257083ec6042fc1.js,sha256=jD2Xn4u0xsscpI9quV0c8aTpCXqO6i7EUp3JQKIsVhA,3724
141
+ khoj/interface/compiled/_next/static/chunks/webpack-dff708c71e9234cb.js,sha256=2LSuY6NKV6K5HhtsHlbQQs_eQSfEbIIRlZzjpzijKWU,3724
140
142
  khoj/interface/compiled/_next/static/chunks/app/layout-f3e40d346da53112.js,sha256=nekGSUVbvB81OfqGgJa2UoDmbxPhNwFwtc4o11O_1jI,442
141
143
  khoj/interface/compiled/_next/static/chunks/app/page-421d13f70c505dd9.js,sha256=eugKXd0nrJGg9NbfmNmUrkCxT-w5opawTRxpheHICQ4,28641
142
144
  khoj/interface/compiled/_next/static/chunks/app/_not-found/page-07ff4ab42b07845e.js,sha256=3mCUnxfMxyK44eqk21TVBrC6u--WSbvx31fTmQuOvMQ,1755
@@ -158,15 +160,13 @@ khoj/interface/compiled/_next/static/chunks/pages/_app-f870474a17b7f2fd.js,sha25
158
160
  khoj/interface/compiled/_next/static/chunks/pages/_error-c66a4e8afc46f17b.js,sha256=vjERjtMAbVk-19LyPf1Jc-H6TMcrSznSz6brzNqbqf8,253
159
161
  khoj/interface/compiled/_next/static/css/1538cedb321e3a97.css,sha256=-qLZhPN-wA3kcrVODVTaG1sN0pmuzRCqNH12gs5_qYc,2569
160
162
  khoj/interface/compiled/_next/static/css/2272c73fc7a3b571.css,sha256=1fHKFd8zLOHosAHx-kxv4b9lVSqHag_E71WkV3dXx2Y,26940
163
+ khoj/interface/compiled/_next/static/css/2de69f0be774c768.css,sha256=E00JnHdJVDT2Ai0dxE6VRD0odoBTLEyeQW48rlv5zH4,7849
161
164
  khoj/interface/compiled/_next/static/css/3e1f1fdd70775091.css,sha256=HT70_NVRMtV5IPc5k9JBGrVirjDZ3tyap7mEPXjQlGM,1634
162
165
  khoj/interface/compiled/_next/static/css/553f9cdcc7a2bcd6.css,sha256=JpjOOwmqP9Hba-w_8Lx9jWW0ZD0kD3wR0HvdPGDyUPo,2134
163
166
  khoj/interface/compiled/_next/static/css/592ca99f5122e75a.css,sha256=BSqRkeb9vBh0phx5GkAlZirTFZintbyggGaUkuOBfaU,914
164
167
  khoj/interface/compiled/_next/static/css/5a400c87d295e68a.css,sha256=ojDUPJ9fJpEo9DzTAsEa-k1cg7Bef-nSTfpszMiqknQ,17711
165
- khoj/interface/compiled/_next/static/css/60fc94dfe42ddfe9.css,sha256=N_rlPS4iamKUJVtQ0xLyBm8b6ok-pmCDq9tIyWGkmDc,7849
166
168
  khoj/interface/compiled/_next/static/css/c808691c459e3887.css,sha256=Xj1SLFCKntSIqZSDCMg2MnzZowIiKFtqPT3KxrT4i94,1857
167
169
  khoj/interface/compiled/_next/static/css/e294b18216ce4cd6.css,sha256=LSk56c3AxiNTbm38OCsl4xYj0xPF0lWT4gZugnQrwtA,1882220
168
- khoj/interface/compiled/_next/static/mRXreP-unBb35nvpcsyA9/_buildManifest.js,sha256=6I9QUstNpJnhe3leR2Daw0pSXwzcbBscv6h2jmmPpms,224
169
- khoj/interface/compiled/_next/static/mRXreP-unBb35nvpcsyA9/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
170
170
  khoj/interface/compiled/_next/static/media/0e790e04fd40ad16-s.p.woff2,sha256=41ewITd0G1ZAoB62BTHMW58a1q8Hl6vSbTQkkHP7EbI,39372
171
171
  khoj/interface/compiled/_next/static/media/4221e1667cd19c7d-s.woff2,sha256=_Y3g0keA8P6nZnFfm_VO5o2Sne1iST3v9xz4fBo3fwM,75532
172
172
  khoj/interface/compiled/_next/static/media/6c276159aa0eb14b-s.woff2,sha256=i9Ibzi_O7y5KpImujj2rEdOZf96lpNYxYzVvCryW5Uc,140408
@@ -239,8 +239,8 @@ khoj/interface/compiled/_next/static/media/flags.3afdda2f.webp,sha256=M2AW_HLpBn
239
239
  khoj/interface/compiled/_next/static/media/flags@2x.5fbe9fc1.webp,sha256=BBeRPBZkxY3-aKkMnYv5TSkxmbeMbyUH4VRIPfrWg1E,137406
240
240
  khoj/interface/compiled/_next/static/media/globe.98e105ca.webp,sha256=g3ofb8-W9GM75zIhlvQhaS8I2py9TtrovOKR3_7Jf04,514
241
241
  khoj/interface/compiled/_next/static/media/globe@2x.974df6f8.webp,sha256=I_N7Yke3IOoS-0CC6XD8o0IUWG8PdPbrHmf6lpgWlZY,1380
242
- khoj/interface/compiled/agents/index.html,sha256=daBdcG4gU0ol9u5axx6Kj84LOweK9NZLDu2uOevNz5Q,12830
243
- khoj/interface/compiled/agents/index.txt,sha256=Tmlr_5vGXn-RfYgWJRz-fPLYd8I5qQV5Gv7VX71lHhk,6126
242
+ khoj/interface/compiled/agents/index.html,sha256=tbGNWAgW5QHJdLitzfE8A8DhRKc7v44zWom_X1ggC1E,12830
243
+ khoj/interface/compiled/agents/index.txt,sha256=VMNwd0XW2cA5ex26dk_B6CHWhxZMBy_SH1SInYp5GDc,6126
244
244
  khoj/interface/compiled/assets/icons/khoj_lantern.ico,sha256=eggu-B_v3z1R53EjOFhIqqPnICBGdoaw1xnc0NrzHck,174144
245
245
  khoj/interface/compiled/assets/icons/khoj_lantern_128x128.png,sha256=aTxivDb3CYyThkVZWz8A19xl_dNut5DbkXhODWF3A9Q,5640
246
246
  khoj/interface/compiled/assets/icons/khoj_lantern_256x256.png,sha256=xPCMLHiaL7lYOdQLZrKwWE-Qjn5ZaysSZB0ScYv4UZU,12312
@@ -251,18 +251,18 @@ khoj/interface/compiled/assets/samples/desktop-remember-plan-sample.png,sha256=i
251
251
  khoj/interface/compiled/assets/samples/phone-browse-draw-sample.png,sha256=Dd4fPwtFl6BWqnHjeb1mCK_ND0hhHsWtx8sNE7EiMuE,406179
252
252
  khoj/interface/compiled/assets/samples/phone-plain-chat-sample.png,sha256=DEDaNRCkfEWUeh3kYZWIQDTVK1a6KKnYdwj5ZWisN_Q,82985
253
253
  khoj/interface/compiled/assets/samples/phone-remember-plan-sample.png,sha256=Ma3blirRmq3X4oYSsDbbT7MDn29rymDrjwmUfA9BMuM,236285
254
- khoj/interface/compiled/automations/index.html,sha256=WSvlUhglj2wsoO08GBoGQy04wmalsXrZmQQiW_DdaPs,30624
255
- khoj/interface/compiled/automations/index.txt,sha256=w-D-tpYPF1fVnUqs7fW1EqMDWqI65n1TYgMpRrrxfa0,5494
256
- khoj/interface/compiled/chat/index.html,sha256=pVHRyWtbvOp6k22506vWqYhR9nGQVpQjOslfLpgULzM,13724
257
- khoj/interface/compiled/chat/index.txt,sha256=urELBlf7fGrcwwvVIu-UIRu7xAB0Z3Fxb91GYWKUsoo,6486
258
- khoj/interface/compiled/factchecker/index.html,sha256=YDXbiLgy5x9LSNOobY-B9IwlRVolZLt3qQsLzIfcvSo,29973
259
- khoj/interface/compiled/factchecker/index.txt,sha256=v6BuISTAKtr32Uvgq5YQyAmt0FRn_aSFenUA_mB-veo,5788
260
- khoj/interface/compiled/search/index.html,sha256=4r1VeANPRrQyXbA0qAuIAPXjRz5b-pDwFCLxE-Kjj6A,30161
261
- khoj/interface/compiled/search/index.txt,sha256=FvTj2dhftrIgg87GDESZcP1Z40Xnjh2-e9skXCHSXUk,5256
262
- khoj/interface/compiled/settings/index.html,sha256=77Uc68NwbVd8qM9zzmIwfBsXxPrZ35dbs2d0MbYOYX4,12831
263
- khoj/interface/compiled/settings/index.txt,sha256=6wDYe2RWBBGJzlkXgK26Q4xE8z34Ww7ZaIidmWx5j8o,6078
264
- khoj/interface/compiled/share/chat/index.html,sha256=UUBScW0pAbv8unwF8gGQ1AIR0KgpJtSZvwgBjDpVyRw,15049
265
- khoj/interface/compiled/share/chat/index.txt,sha256=2owvDSDmIHT6c9sa_rbgeZ6toUb1owO0zoKIpOttq1k,7297
254
+ khoj/interface/compiled/automations/index.html,sha256=HMCSVy3QNUb_nibIYvSnAvzBaLYitagpQ46VhsJMNGE,30624
255
+ khoj/interface/compiled/automations/index.txt,sha256=VTtQoTlkZxvKDhr0eLZ38hInprXP4ekiQCZBlM6QKyg,5494
256
+ khoj/interface/compiled/chat/index.html,sha256=hH-ijPV8trxm1aIYFAiDSVyEq5NxizQQJBNtV860Y4M,13724
257
+ khoj/interface/compiled/chat/index.txt,sha256=HTsvIZNlF5kf1pfmgkmbKZuiCeA_30lb2XOmzqTk-dw,6486
258
+ khoj/interface/compiled/factchecker/index.html,sha256=htDJg68G-rWEiB_71J-592JBK_2cFT8goP37ncfBw9o,29973
259
+ khoj/interface/compiled/factchecker/index.txt,sha256=ub2p8NyE2MEnLC3mrfWiQkj0p_39Qx7BsjgNd7obiGk,5788
260
+ khoj/interface/compiled/search/index.html,sha256=Ke-jp2oM5ks6jp0qCEZSjUMYefNG4Gzx8D2HAiLnSzQ,30161
261
+ khoj/interface/compiled/search/index.txt,sha256=Fa_YVYAKXHIb7TZI6dIe2Wo5dWNHo_u0r0T0EYlmy5M,5256
262
+ khoj/interface/compiled/settings/index.html,sha256=CFg3A71YZ-cO_MKplmDrvsbwIQjwjhrwoTs7WZeCyDo,12831
263
+ khoj/interface/compiled/settings/index.txt,sha256=WxPEmZL9CS82R6dfLD9VibypB6GFf7MpOyCi4iSAAgk,6078
264
+ khoj/interface/compiled/share/chat/index.html,sha256=YJAsDg-QqUTo_oamMCwDq5JRFhmVa39VM1PzG9_Hjjw,15049
265
+ khoj/interface/compiled/share/chat/index.txt,sha256=IYiFdkilX6VkO3tQP8PIXAPL18ZS2e0p9ultZCEXow0,7297
266
266
  khoj/interface/email/feedback.html,sha256=xksuPFamx4hGWyTTxZKRgX_eiYQQEuv-eK9Xmkt-nwU,1216
267
267
  khoj/interface/email/magic_link.html,sha256=EoGKQucfPj3xQrWXhSZAzPFOYCHF_ZX94TWCd1XHl1M,941
268
268
  khoj/interface/email/task.html,sha256=tY7a0gzVeQ2lSQNu7WyXR_s7VYeWTrxWEj1iHVuoVE4,2813
@@ -337,13 +337,13 @@ khoj/processor/tools/online_search.py,sha256=xViS7wWRysTMun0p7DeM-313mYzkw4fsuTO
337
337
  khoj/routers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
338
338
  khoj/routers/api.py,sha256=EeOuRhZTRLeesmzx_O6cQ2fKKlk7StLcKuYWBnP-Wxo,27103
339
339
  khoj/routers/api_agents.py,sha256=XOmM_mJj6T9EyyPaYHG1fDvgWqtezg1oFpmHgFSYM7c,8584
340
- khoj/routers/api_chat.py,sha256=7XYKe-r6tda0Lqn6_yJpFIfGhga1IY6-TgqhYaPAMEg,59150
340
+ khoj/routers/api_chat.py,sha256=wfw0wvCRNs8zc-8kBSJkweEe21IbNcB8LpmTrpWQTMg,59151
341
341
  khoj/routers/api_content.py,sha256=lWunOwVWYvnl1ue_D81g9ZSwBc0UxHmBIrdJoVPxN_A,17900
342
342
  khoj/routers/api_model.py,sha256=5m7JWwgd9jILiLivRu7NEyY2E-tUkqoEkGg6j6uM1g0,4646
343
343
  khoj/routers/api_phone.py,sha256=p9yfc4WeMHDC0hg3aQk60a2VBy8rZPdEnz9wdJ7DzkU,2208
344
344
  khoj/routers/auth.py,sha256=pCOLSRihJWcn097DRPxLjPdlejsjHJFRs9jHIzLujZU,6247
345
345
  khoj/routers/email.py,sha256=SGYNPQvfcvYeHf70F0YqpY0FLMRElF2ZekROXdwGI18,3821
346
- khoj/routers/helpers.py,sha256=VzitrSsyfD2ClexgKUc7JsOz41NY2Z47ZkM18LxqEFs,66968
346
+ khoj/routers/helpers.py,sha256=DdqMNoO46BeYiVmok9W8C8pn7AhqVFTrAAPa2pA0JMk,67710
347
347
  khoj/routers/notion.py,sha256=Lp67xP9rVgpAF9BQoGTjZFcVdF1HYtvPP0kjq6uurKU,2802
348
348
  khoj/routers/storage.py,sha256=tJrwhFRVWv0MHv7V7huMc1Diwm-putZSwnZXJ3tqT_c,2338
349
349
  khoj/routers/subscription.py,sha256=qEyV7m7mrY6MGtaij8W3v61tpzX2a7ydm2B-E8h_R-M,4285
@@ -368,8 +368,8 @@ khoj/utils/models.py,sha256=Q5tcC9-z25sCiub048fLnvZ6_IIO1bcPNxt5payekk0,2009
368
368
  khoj/utils/rawconfig.py,sha256=kURDuk7x0MDtniGLU4x1IsvU4UIBS-V9dSM4GD8X-LY,4274
369
369
  khoj/utils/state.py,sha256=x4GTewP1YhOA6c_32N4wOjnV-3AA3xG_qbY1-wC2Uxc,1559
370
370
  khoj/utils/yaml.py,sha256=H0mfw0ZvBFUvFmCQn8pWkfxdmIebsrSykza7D8Wv6wQ,1430
371
- khoj-1.24.2.dev6.dist-info/METADATA,sha256=gutkzeP8hvvLAXzE1LDJZIDF7JesWqUk0eQ7-1UraOY,6495
372
- khoj-1.24.2.dev6.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
373
- khoj-1.24.2.dev6.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
374
- khoj-1.24.2.dev6.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
375
- khoj-1.24.2.dev6.dist-info/RECORD,,
371
+ khoj-1.24.2.dev9.dist-info/METADATA,sha256=JT0aXkyKsmyVjm_JaO1sFme6jBshXBvWyKBaR2n6WWk,6495
372
+ khoj-1.24.2.dev9.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
373
+ khoj-1.24.2.dev9.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
374
+ khoj-1.24.2.dev9.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
375
+ khoj-1.24.2.dev9.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9178],{89178:function(e,t,a){"use strict";a.d(t,{H:function(){return ee},Z:function(){return ea}});var s=a(57437),n=a(34531),l=a.n(n),r=a(14944),o=a(39952),c=a.n(o),i=a(2265),d=a(34040);a(7395);var h=a(26100),u=a(36013),m=a(13304),g=a(12218),p=a(74697),f=a(37440);let x=m.fC,w=m.xz;m.x8;let j=m.h_,y=i.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(m.aV,{className:(0,f.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...n,ref:t})});y.displayName=m.aV.displayName;let b=(0,g.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),N=i.forwardRef((e,t)=>{let{side:a="right",className:n,children:l,...r}=e;return(0,s.jsxs)(j,{children:[(0,s.jsx)(y,{}),(0,s.jsxs)(m.VY,{ref:t,className:(0,f.cn)(b({side:a}),n),...r,children:[l,(0,s.jsxs)(m.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,s.jsx)(p.Z,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});N.displayName=m.VY.displayName;let k=e=>{let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,f.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...a})};k.displayName="SheetHeader";let C=i.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(m.Dx,{ref:t,className:(0,f.cn)("text-lg font-semibold text-foreground",a),...n})});C.displayName=m.Dx.displayName;let M=i.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(m.dk,{ref:t,className:(0,f.cn)("text-sm text-muted-foreground",a),...n})});M.displayName=m.dk.displayName;var v=a(19573),_=a(11838),R=a.n(_),E=a(89417);let T=new r.Z({html:!0,linkify:!0,typographer:!0});function D(e){let t=(0,E.Le)(e.title||".txt","w-6 h-6 text-muted-foreground inline-flex mr-2"),a=function(e){let t=["org","md","markdown"].includes(e.title.split(".").pop()||"")?e.content.split("\n").slice(1).join("\n"):e.content;return e.showFullContent?R().sanitize(T.render(t)):R().sanitize(t)}(e),[n,l]=(0,i.useState)(!1);return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(v.J2,{open:n&&!e.showFullContent,onOpenChange:l,children:[(0,s.jsx)(v.xo,{asChild:!0,children:(0,s.jsxs)(u.Zb,{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),className:"".concat(e.showFullContent?"w-auto":"w-[200px]"," overflow-hidden break-words text-balance rounded-lg p-2 bg-muted border-none"),children:[(0,s.jsxs)("h3",{className:"".concat(e.showFullContent?"block":"line-clamp-1"," text-muted-foreground}"),children:[t,e.title]}),(0,s.jsx)("p",{className:"".concat(e.showFullContent?"block":"overflow-hidden line-clamp-2"),dangerouslySetInnerHTML:{__html:a}})]})}),(0,s.jsx)(v.yk,{className:"w-[400px] mx-2",children:(0,s.jsxs)(u.Zb,{className:"w-auto overflow-hidden break-words text-balance rounded-lg p-2 border-none",children:[(0,s.jsxs)("h3",{className:"line-clamp-2 text-muted-foreground}",children:[t,e.title]}),(0,s.jsx)("p",{className:"overflow-hidden line-clamp-3",dangerouslySetInnerHTML:{__html:a}})]})})]})})}function L(e){let[t,a]=(0,i.useState)(!1);if(!e.link||e.link.split(" ").length>1)return null;let n="https://www.google.com/s2/favicons?domain=globe",l="unknown";try{l=new URL(e.link).hostname,n="https://www.google.com/s2/favicons?domain=".concat(l)}catch(t){return console.warn("Error parsing domain from link: ".concat(e.link)),null}return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(v.J2,{open:t&&!e.showFullContent,onOpenChange:a,children:[(0,s.jsx)(v.xo,{asChild:!0,children:(0,s.jsx)(u.Zb,{onMouseEnter:()=>{a(!0)},onMouseLeave:()=>{a(!1)},className:"".concat(e.showFullContent?"w-auto":"w-[200px]"," overflow-hidden break-words rounded-lg text-balance p-2 bg-muted border-none"),children:(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsxs)("a",{href:e.link,target:"_blank",rel:"noreferrer",className:"!no-underline p-2",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("img",{src:n,alt:"",className:"!w-4 h-4 mr-2"}),(0,s.jsx)("h3",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-1"," text-muted-foreground"),children:l})]}),(0,s.jsx)("h3",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-1"," font-bold"),children:e.title}),(0,s.jsx)("p",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-2"),children:e.description})]})})})}),(0,s.jsx)(v.yk,{className:"w-[400px] mx-2",children:(0,s.jsx)(u.Zb,{className:"w-auto overflow-hidden break-words text-balance rounded-lg border-none",children:(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsxs)("a",{href:e.link,target:"_blank",rel:"noreferrer",className:"!no-underline p-2",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("img",{src:n,alt:"",className:"!w-4 h-4 mr-2"}),(0,s.jsx)("h3",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-2"," text-muted-foreground"),children:l})]}),(0,s.jsx)("h3",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-2"," font-bold"),children:e.title}),(0,s.jsx)("p",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-3"),children:e.description})]})})})})]})})}function F(e){let[t,a]=(0,i.useState)(3);(0,i.useEffect)(()=>{a(e.isMobileWidth?1:3)},[e.isMobileWidth]);let n=e.notesReferenceCardData.slice(0,t),l=n.length<t?e.onlineReferenceCardData.slice(0,t-n.length):[],r=e.notesReferenceCardData.length>0||e.onlineReferenceCardData.length>0,o=e.notesReferenceCardData.length+e.onlineReferenceCardData.length;return 0===o?null:(0,s.jsxs)("div",{className:"pt-0 px-4 pb-4 md:px-6",children:[(0,s.jsxs)("h3",{className:"inline-flex items-center",children:["References",(0,s.jsxs)("p",{className:"text-gray-400 m-2",children:[o," sources"]})]}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-2 w-auto mt-2",children:[n.map((e,t)=>(0,i.createElement)(D,{showFullContent:!1,...e,key:"".concat(e.title,"-").concat(t)})),l.map((e,t)=>(0,i.createElement)(L,{showFullContent:!1,...e,key:"".concat(e.title,"-").concat(t)})),r&&(0,s.jsx)(S,{notesReferenceCardData:e.notesReferenceCardData,onlineReferenceCardData:e.onlineReferenceCardData})]})]})}function S(e){return e.notesReferenceCardData||e.onlineReferenceCardData?(0,s.jsxs)(x,{children:[(0,s.jsxs)(w,{className:"text-balance w-auto md:w-[200px] justify-start overflow-hidden break-words p-0 bg-transparent border-none text-gray-400 align-middle items-center !m-2 inline-flex",children:["View references",(0,s.jsx)(h.o,{className:"m-1"})]}),(0,s.jsxs)(N,{className:"overflow-y-scroll",children:[(0,s.jsxs)(k,{children:[(0,s.jsx)(C,{children:"References"}),(0,s.jsx)(M,{children:"View all references for this response"})]}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-2 w-auto mt-2",children:[e.notesReferenceCardData.map((e,t)=>(0,i.createElement)(D,{showFullContent:!0,...e,key:"".concat(e.title,"-").concat(t)})),e.onlineReferenceCardData.map((e,t)=>(0,i.createElement)(L,{showFullContent:!0,...e,key:"".concat(e.title,"-").concat(t)}))]})]})]}):null}var B=a(34149),H=a(29386),O=a(31784),A=a(60665),Z=a(96006),q=a(18444),z=a(35304),I=a(8589),P=a(63205),W=a(32970),$=a(92880),G=a(48408),U=a(67722),V=a(58485),J=a(58575),Y=a(25800);let K=new r.Z({html:!0,linkify:!0,typographer:!0});function Q(e,t,a){fetch("/api/chat/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uquery:e,kquery:t,sentiment:a})})}function X(e){let{uquery:t,kquery:a}=e,[n,r]=(0,i.useState)(null);return(0,i.useEffect)(()=>{null!==n&&setTimeout(()=>{r(null)},2e3)},[n]),(0,s.jsxs)("div",{className:"".concat(l().feedbackButtons," flex align-middle justify-center items-center"),children:[(0,s.jsx)("button",{title:"Like",className:l().thumbsUpButton,disabled:null!==n,onClick:()=>{Q(t,a,"positive"),r(!0)},children:!0===n?(0,s.jsx)(B.V,{alt:"Liked Message",className:"text-green-500",weight:"fill"}):(0,s.jsx)(B.V,{alt:"Like Message",className:"hsl(var(--muted-foreground)) hover:text-green-500"})}),(0,s.jsx)("button",{title:"Dislike",className:l().thumbsDownButton,disabled:null!==n,onClick:()=>{Q(t,a,"negative"),r(!1)},children:!1===n?(0,s.jsx)(H.L,{alt:"Disliked Message",className:"text-red-500",weight:"fill"}):(0,s.jsx)(H.L,{alt:"Dislike Message",className:"hsl(var(--muted-foreground)) hover:text-red-500"})})]})}function ee(e){let t=e.message.match(/\*\*(.*)\*\*/),a=function(e,t){let a=e.toLowerCase(),n="inline mt-1 mr-2 ".concat(t," h-4 w-4");return a.includes("understanding")?(0,s.jsx)(O.a,{className:"".concat(n)}):a.includes("generating")?(0,s.jsx)(A.Z,{className:"".concat(n)}):a.includes("data sources")||a.includes("notes")?(0,s.jsx)(Z.g,{className:"".concat(n)}):a.includes("read")?(0,s.jsx)(q.f,{className:"".concat(n)}):a.includes("search")?(0,s.jsx)(z.Y,{className:"".concat(n)}):a.includes("summary")||a.includes("summarize")||a.includes("enhanc")?(0,s.jsx)(I.u,{className:"".concat(n)}):a.includes("paint")?(0,s.jsx)(P.Y,{className:"".concat(n)}):(0,s.jsx)(O.a,{className:"".concat(n)})}(t?t[1]:"",e.primary?(0,J.oz)(e.agentColor):"text-gray-500"),n=R().sanitize(K.render(e.message));return(0,s.jsxs)("div",{className:"".concat(l().trainOfThoughtElement," break-all items-center ").concat(e.primary?"text-gray-400":"text-gray-300"," ").concat(l().trainOfThought," ").concat(e.primary?l().primary:""),children:[a,(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:n}})]})}K.use(c(),{inline:!0,code:!0});let et=(0,i.forwardRef)((e,t)=>{var a,n;let r,o,c,h,u;let[m,g]=(0,i.useState)(!1),[p,f]=(0,i.useState)(!1),[x,w]=(0,i.useState)(""),[j,y]=(0,i.useState)(""),[b,N]=(0,i.useState)(!1),[k,C]=(0,i.useState)(!1),M=(0,i.useRef)(!1),v=(0,i.useRef)(null);async function _(){let t=e.chatMessage.message.match(/[^.!?]+[.!?]*/g)||[];if(!t||0===t.length||!t[0])return;N(!0);let a=E(t[0]);for(let e=0;e<t.length&&!M.current;e++){let s=a;e<t.length-1&&(a=E(t[e+1]));try{let e=await s,t=URL.createObjectURL(e);await function(e){return new Promise((t,a)=>{let s=new Audio(e);s.onended=t,s.onerror=a,s.play()})}(t)}catch(e){console.error("Error:",e);break}}N(!1),C(!1)}async function E(e){let t=await fetch("/api/chat/speech?text=".concat(encodeURIComponent(e)),{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok)throw Error("Network response was not ok");return await t.blob()}(0,i.useEffect)(()=>{M.current=k},[k]),(0,i.useEffect)(()=>{let e=new MutationObserver((e,t)=>{if(v.current)for(let t of e)"childList"===t.type&&t.addedNodes.length>0&&(0,Y.Z)(v.current,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\(",right:"\\)",display:!1}]})});return v.current&&e.observe(v.current,{childList:!0}),()=>e.disconnect()},[v.current]),(0,i.useEffect)(()=>{var t;let a=e.chatMessage.message;a=a.replace(/\\\(/g,"LEFTPAREN").replace(/\\\)/g,"RIGHTPAREN").replace(/\\\[/g,"LEFTBRACKET").replace(/\\\]/g,"RIGHTBRACKET"),e.chatMessage.uploadedImageData&&(a="![uploaded image](".concat(e.chatMessage.uploadedImageData,")\n\n").concat(a)),e.chatMessage.intent&&"text-to-image"==e.chatMessage.intent.type?a="![generated image](data:image/png;base64,".concat(a,")"):e.chatMessage.intent&&"text-to-image2"==e.chatMessage.intent.type?a="![generated image](".concat(a,")"):e.chatMessage.intent&&"text-to-image-v3"==e.chatMessage.intent.type&&(a="![generated image](data:image/webp;base64,".concat(a,")")),e.chatMessage.intent&&e.chatMessage.intent.type.includes("text-to-image")&&(null===(t=e.chatMessage.intent["inferred-queries"])||void 0===t?void 0:t.length)>0&&(a+="\n\n".concat(e.chatMessage.intent["inferred-queries"][0])),w(a);let s=K.render(a);s=s.replace(/LEFTPAREN/g,"\\(").replace(/RIGHTPAREN/g,"\\)").replace(/LEFTBRACKET/g,"\\[").replace(/RIGHTBRACKET/g,"\\]"),y(R().sanitize(s))},[e.chatMessage.message,e.chatMessage.intent]),(0,i.useEffect)(()=>{m&&setTimeout(()=>{g(!1)},2e3)},[m]),(0,i.useEffect)(()=>{v.current&&(v.current.querySelectorAll("pre > .hljs").forEach(e=>{let t=document.createElement("button"),a=(0,s.jsx)(W.w,{size:24,weight:"bold"});(0,d.createRoot)(t).render(a),t.className="hljs ".concat(l().codeCopyButton),t.addEventListener("click",()=>{let t=e.textContent||"";t=(t=(t=t.replace(/^\$+/,"")).replace(/^Copy/,"")).trim(),navigator.clipboard.writeText(t)}),e.prepend(t)}),(0,Y.Z)(v.current,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1}]}))},[j,p,v]);let T=function(e,t){let a=[],s=[];if(t){let e=[];for(let[a,s]of Object.entries(t)){if(s.answerBox&&e.push({title:s.answerBox.title,description:s.answerBox.answer,link:s.answerBox.source}),s.knowledgeGraph&&e.push({title:s.knowledgeGraph.title,description:s.knowledgeGraph.description,link:s.knowledgeGraph.descriptionLink}),s.webpages){if(s.webpages instanceof Array){let t=s.webpages.map(e=>({title:e.query,description:e.snippet,link:e.link}));e.push(...t)}else{let t=s.webpages;e.push({title:t.query,description:t.snippet,link:t.link})}}if(s.organic){let t=s.organic.map(e=>({title:e.title,description:e.snippet,link:e.link}));e.push(...t)}}a.push(...e)}if(e){let t=e.map(e=>e.compiled?{title:e.file,content:e.compiled}:{title:e.split("\n")[0],content:e.split("\n").slice(1).join("\n")});s.push(...t)}return{notesReferenceCardData:s,onlineReferenceCardData:a}}(e.chatMessage.context,e.chatMessage.onlineContext);return(0,s.jsxs)("div",{ref:t,className:(a=e.chatMessage,(r=[l().chatMessageContainer,"shadow-md"]).push(l()[a.by]),a.message||r.push(l().emptyChatMessage),e.customClassName&&r.push(l()["".concat(a.by).concat(e.customClassName)]),r.join(" ")),onMouseLeave:e=>f(!1),onMouseEnter:e=>f(!0),children:[(0,s.jsx)("div",{className:(n=e.chatMessage,(o=[l().chatMessageWrapper]).push(l()[n.by]),"khoj"===n.by&&o.push("border-l-4 border-opacity-50 ".concat("border-l-"+e.borderLeftColor)),o.join(" ")),children:(0,s.jsx)("div",{ref:v,className:l().chatMessage,dangerouslySetInnerHTML:{__html:j}})}),(0,s.jsx)("div",{className:l().teaserReferencesContainer,children:(0,s.jsx)(F,{isMobileWidth:e.isMobileWidth,notesReferenceCardData:T.notesReferenceCardData,onlineReferenceCardData:T.onlineReferenceCardData})}),(0,s.jsx)("div",{className:l().chatFooter,children:(p||e.isMobileWidth||e.isLastMessage||b)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{title:(h=(c=new Date(e.chatMessage.created+"Z")).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}).toUpperCase(),u=c.toLocaleString("en-US",{year:"numeric",month:"short",day:"2-digit"}).replaceAll("-"," "),"".concat(h," on ").concat(u)),className:"text-gray-400 relative top-0 left-4",children:function(e){e.endsWith("Z")||(e+="Z");let t=new Date(e),a=new Date().getTime()-t.getTime();return a<6e4?"Just now":a<36e5?"".concat(Math.round(a/6e4),"m ago"):a<864e5?"".concat(Math.round(a/36e5),"h ago"):"".concat(Math.round(a/864e5),"d ago")}(e.chatMessage.created)}),(0,s.jsxs)("div",{className:"".concat(l().chatButtons," shadow-sm"),children:["khoj"===e.chatMessage.by&&(b?k?(0,s.jsx)(V.l,{iconClassName:"p-0",className:"m-0"}):(0,s.jsx)("button",{title:"Pause Speech",onClick:e=>C(!0),children:(0,s.jsx)($.d,{alt:"Pause Message",className:"hsl(var(--muted-foreground))"})}):(0,s.jsx)("button",{title:"Speak",onClick:e=>_(),children:(0,s.jsx)(G.j,{alt:"Speak Message",className:"hsl(var(--muted-foreground)) hover:text-green-500"})})),(0,s.jsx)("button",{title:"Copy",className:"".concat(l().copyButton),onClick:()=>{navigator.clipboard.writeText(x),g(!0)},children:m?(0,s.jsx)(U.C,{alt:"Copied Message",weight:"fill",className:"text-green-500"}):(0,s.jsx)(U.C,{alt:"Copy Message",className:"hsl(var(--muted-foreground)) hover:text-green-500"})}),"khoj"===e.chatMessage.by&&(e.chatMessage.intent?(0,s.jsx)(X,{uquery:e.chatMessage.intent.query,kquery:e.chatMessage.message}):(0,s.jsx)(X,{uquery:e.chatMessage.rawQuery||e.chatMessage.message,kquery:e.chatMessage.message}))]})]})})]})});et.displayName="ChatMessage";var ea=et},34531:function(e){e.exports={chatMessageContainer:"chatMessage_chatMessageContainer__sAivf",chatMessageWrapper:"chatMessage_chatMessageWrapper__u5m8A",khojfullHistory:"chatMessage_khojfullHistory__NPu2l",youfullHistory:"chatMessage_youfullHistory__ioyfH",you:"chatMessage_you__6GUC4",khoj:"chatMessage_khoj__cjWON",khojChatMessage:"chatMessage_khojChatMessage__BabQz",emptyChatMessage:"chatMessage_emptyChatMessage__J9JRn",author:"chatMessage_author__muRtC",chatFooter:"chatMessage_chatFooter__0vR8s",chatButtons:"chatMessage_chatButtons__Lbk8T",codeCopyButton:"chatMessage_codeCopyButton__Y_Ujv",feedbackButtons:"chatMessage_feedbackButtons___Brdy",copyButton:"chatMessage_copyButton__jd7q7",trainOfThought:"chatMessage_trainOfThought__mR2Gg",primary:"chatMessage_primary__WYPEb",trainOfThoughtElement:"chatMessage_trainOfThoughtElement__le_bC"}}}]);