khoj 1.23.2__py3-none-any.whl → 1.23.2.dev1__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.
- khoj/interface/compiled/404/index.html +1 -1
- khoj/interface/compiled/_next/static/chunks/app/chat/page-132e5199f954559f.js +1 -0
- khoj/interface/compiled/_next/static/chunks/{webpack-14f504dff756f79c.js → webpack-0f6d4805ea01afda.js} +1 -1
- khoj/interface/compiled/agents/index.html +1 -1
- khoj/interface/compiled/agents/index.txt +2 -2
- khoj/interface/compiled/automations/index.html +1 -1
- khoj/interface/compiled/automations/index.txt +1 -1
- khoj/interface/compiled/chat/index.html +1 -1
- khoj/interface/compiled/chat/index.txt +2 -2
- khoj/interface/compiled/factchecker/index.html +1 -1
- khoj/interface/compiled/factchecker/index.txt +2 -2
- khoj/interface/compiled/index.html +1 -1
- khoj/interface/compiled/index.txt +2 -2
- khoj/interface/compiled/search/index.html +1 -1
- khoj/interface/compiled/search/index.txt +2 -2
- khoj/interface/compiled/settings/index.html +1 -1
- khoj/interface/compiled/settings/index.txt +1 -1
- khoj/interface/compiled/share/chat/index.html +1 -1
- khoj/interface/compiled/share/chat/index.txt +2 -2
- {khoj-1.23.2.dist-info → khoj-1.23.2.dev1.dist-info}/METADATA +1 -1
- {khoj-1.23.2.dist-info → khoj-1.23.2.dev1.dist-info}/RECORD +31 -31
- khoj/interface/compiled/_next/static/chunks/app/chat/page-4534a3104d24ddc9.js +0 -1
- /khoj/interface/compiled/_next/static/{9uwb5t7DoQqI3yWXNbS71 → 3f6RIoWaeCo3_t0vDow30}/_buildManifest.js +0 -0
- /khoj/interface/compiled/_next/static/{9uwb5t7DoQqI3yWXNbS71 → 3f6RIoWaeCo3_t0vDow30}/_ssgManifest.js +0 -0
- /khoj/interface/compiled/_next/static/chunks/{8423-14fc72aec9104ce9.js → 8423-ce22327cf2d2edae.js} +0 -0
- /khoj/interface/compiled/_next/static/chunks/{9178-c153fc402c970365.js → 9178-3a0baad1c172d515.js} +0 -0
- /khoj/interface/compiled/_next/static/chunks/{9417-5d14ac74aaab2c66.js → 9417-2e54c6fd056982d8.js} +0 -0
- /khoj/interface/compiled/_next/static/chunks/app/agents/{page-6ade083d5e27a023.js → page-3c01900e7b5c7e50.js} +0 -0
- /khoj/interface/compiled/_next/static/chunks/app/{page-8465c90401833c39.js → page-95ecd0acac7ece82.js} +0 -0
- {khoj-1.23.2.dist-info → khoj-1.23.2.dev1.dist-info}/WHEEL +0 -0
- {khoj-1.23.2.dist-info → khoj-1.23.2.dev1.dist-info}/entry_points.txt +0 -0
- {khoj-1.23.2.dist-info → khoj-1.23.2.dev1.dist-info}/licenses/LICENSE +0 -0
@@ -98,17 +98,17 @@ khoj/interface/compiled/chat.svg,sha256=l2JoYRRgk201adTTdvJ-buKUrc0WGfsudix5xEvt
|
|
98
98
|
khoj/interface/compiled/close.svg,sha256=hQ2iFLkNzHk0_iyTrSbwnWAeXYlgA-c2Eof2Iqh76n4,417
|
99
99
|
khoj/interface/compiled/copy-button-success.svg,sha256=byqWAYD3Pn9IOXRjOKudJ-TJbP2UESbQGvtLWazNGjY,829
|
100
100
|
khoj/interface/compiled/copy-button.svg,sha256=05bKM2eRxksfBlAPT7yMaoNJEk85bZCxQg67EVrPeHo,669
|
101
|
-
khoj/interface/compiled/index.html,sha256=
|
102
|
-
khoj/interface/compiled/index.txt,sha256=
|
101
|
+
khoj/interface/compiled/index.html,sha256=y5HhSmTvEAi5ZzvrIAsN7ni-yLLnivbkV890SlguuIw,12063
|
102
|
+
khoj/interface/compiled/index.txt,sha256=jVOCfEnAW--WWIqFDmldYaFWTV4BzDEK3p1qQNMWYr4,5573
|
103
103
|
khoj/interface/compiled/khoj.webmanifest,sha256=lsknYkvEdMbRTOUYKXPM_8krN2gamJmM4u3qj8u9lrU,1682
|
104
104
|
khoj/interface/compiled/logo.svg,sha256=_QCKVYM4WT2Qhcf7aVFImjq_s5CwjynGXYAOgI7yf8w,8059
|
105
105
|
khoj/interface/compiled/send.svg,sha256=VdavOWkVddcwcGcld6pdfmwfz7S91M-9O28cfeiKJkM,635
|
106
106
|
khoj/interface/compiled/share.svg,sha256=91lwo75PvMDrgocuZQab6EQ62CxRbubh9Bhw7CWMKbg,1221
|
107
107
|
khoj/interface/compiled/thumbs-down.svg,sha256=JGNl-DwoRmH2XFMPWwFFklmoYtKxaQbkLE3nuYKe8ZY,1019
|
108
108
|
khoj/interface/compiled/thumbs-up.svg,sha256=yS1wxTRtiztkN-6nZciLoYQUB_KTYNPV8xFRwH2TQFw,1036
|
109
|
-
khoj/interface/compiled/404/index.html,sha256=
|
110
|
-
khoj/interface/compiled/_next/static/
|
111
|
-
khoj/interface/compiled/_next/static/
|
109
|
+
khoj/interface/compiled/404/index.html,sha256=83vTGju-er9zBmtlEh9WIl84N7EiV-pGeI3cQkcn-cw,11971
|
110
|
+
khoj/interface/compiled/_next/static/3f6RIoWaeCo3_t0vDow30/_buildManifest.js,sha256=6I9QUstNpJnhe3leR2Daw0pSXwzcbBscv6h2jmmPpms,224
|
111
|
+
khoj/interface/compiled/_next/static/3f6RIoWaeCo3_t0vDow30/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
|
112
112
|
khoj/interface/compiled/_next/static/chunks/121-7024f479c297aef0.js,sha256=CcRT2AArGYTo7Orl5w69nrnMqdI_EmyEP_YqIj3FU1c,20952
|
113
113
|
khoj/interface/compiled/_next/static/chunks/1603-fb2d80ae73990df3.js,sha256=CCbOXifiixbhMf7lgTG96225tP1Pou72Wb0Zh6KC1Rs,71007
|
114
114
|
khoj/interface/compiled/_next/static/chunks/1906-1747a36c336df02c.js,sha256=PAEKTp-H8pKEZTPQiKpr2DiCXzjBG6zJfBgZosV2Vd8,1083851
|
@@ -120,11 +120,11 @@ khoj/interface/compiled/_next/static/chunks/6648-ff677e51f1b2bcf1.js,sha256=9bJl
|
|
120
120
|
khoj/interface/compiled/_next/static/chunks/7023-52c1be60135eb057.js,sha256=CI8R2DdZNEt3nACmiXUG1NnKhnal1ImzXglW-xDuxcI,123657
|
121
121
|
khoj/interface/compiled/_next/static/chunks/7071-b4711cecca6619a8.js,sha256=z-KSur3LbIFPg_90wN0EMhV0et9cJVfG_MR9POVmdCQ,7801
|
122
122
|
khoj/interface/compiled/_next/static/chunks/743-1a64254447cda71f.js,sha256=YH4bEkjmttcOGzAzXKaDCJ-C68jk2qy1cQJP2ljjoAA,100834
|
123
|
-
khoj/interface/compiled/_next/static/chunks/8423-
|
123
|
+
khoj/interface/compiled/_next/static/chunks/8423-ce22327cf2d2edae.js,sha256=q03PbOtkL3uoNxrhwlreR4DXAU35lRzmzm1TCJ_YvmY,11359
|
124
124
|
khoj/interface/compiled/_next/static/chunks/9001-3b27af6d5f21df44.js,sha256=Flth4g5eWRwc5YXKFgtTxW0dr13NMy7Bf3iw7bj38J0,34911
|
125
125
|
khoj/interface/compiled/_next/static/chunks/9162-0be016519a18568b.js,sha256=3MT-VTsB7Q-ATTO5X6Eu2-QNZfrZNaAr-R41iRsn3RY,149610
|
126
|
-
khoj/interface/compiled/_next/static/chunks/9178-
|
127
|
-
khoj/interface/compiled/_next/static/chunks/9417-
|
126
|
+
khoj/interface/compiled/_next/static/chunks/9178-3a0baad1c172d515.js,sha256=kDBTe9uINH3f7CDYoKN1rO-YRVon_pczC0Bgz3M0JJ8,17678
|
127
|
+
khoj/interface/compiled/_next/static/chunks/9417-2e54c6fd056982d8.js,sha256=FZ8xOLMdzrlVmwtcyuQSy8bBwd8_UZ1hH3FlL4DwXpA,17252
|
128
128
|
khoj/interface/compiled/_next/static/chunks/9984-e410179c6fac7cf1.js,sha256=FECyLY1WnBRP9TpLhPHxxmf4nSWwEKX4SLnb3W9UqT8,31305
|
129
129
|
khoj/interface/compiled/_next/static/chunks/d3ac728e-a9e3522eef9b6b28.js,sha256=wK1TsLdl56xtbQG6HMRDpylzTOYXQaAnnn2xobFnX40,267216
|
130
130
|
khoj/interface/compiled/_next/static/chunks/fd9d1056-2b978342deb60015.js,sha256=2lquiZSfbI-gX4j4TW4JSMLL_D5ShqwydgWpFyXrTy8,172834
|
@@ -132,16 +132,16 @@ khoj/interface/compiled/_next/static/chunks/framework-8e0e0f4a6b83a956.js,sha256
|
|
132
132
|
khoj/interface/compiled/_next/static/chunks/main-175c164f5e0f026c.js,sha256=hlUnjERudON4V4kUKprrFz1e9JRtSp4A9i7vnM-1bzA,110324
|
133
133
|
khoj/interface/compiled/_next/static/chunks/main-app-6d6ee3495efe03d4.js,sha256=i52E7sWOcSq1G8eYZL3mtTxbUbwRNxcAbSWQ6uWpMsY,475
|
134
134
|
khoj/interface/compiled/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js,sha256=6QPOwdWeAVe8x-SsiDrm-Ga6u2DkqgG5SFqglrlyIgA,91381
|
135
|
-
khoj/interface/compiled/_next/static/chunks/webpack-
|
135
|
+
khoj/interface/compiled/_next/static/chunks/webpack-0f6d4805ea01afda.js,sha256=DLxaUKTVEOOzW0l8ZpPXgmo8p0PdR8ZJZvH2GJytCcs,3724
|
136
136
|
khoj/interface/compiled/_next/static/chunks/app/layout-f3e40d346da53112.js,sha256=nekGSUVbvB81OfqGgJa2UoDmbxPhNwFwtc4o11O_1jI,442
|
137
|
-
khoj/interface/compiled/_next/static/chunks/app/page-
|
137
|
+
khoj/interface/compiled/_next/static/chunks/app/page-95ecd0acac7ece82.js,sha256=Q-_TS9Bq_Zb2FnEffZtdV5mJEGWQ7eznKVrz2rt3OuA,28686
|
138
138
|
khoj/interface/compiled/_next/static/chunks/app/_not-found/page-07ff4ab42b07845e.js,sha256=3mCUnxfMxyK44eqk21TVBrC6u--WSbvx31fTmQuOvMQ,1755
|
139
139
|
khoj/interface/compiled/_next/static/chunks/app/agents/layout-e71c8e913cccf792.js,sha256=VyIMrkvntFObMzXF-elNtngJ8mBdjg8XrOGfboJ2f_4,372
|
140
|
-
khoj/interface/compiled/_next/static/chunks/app/agents/page-
|
140
|
+
khoj/interface/compiled/_next/static/chunks/app/agents/page-3c01900e7b5c7e50.js,sha256=8tp_0cKBkscDxbQcd5hwQPOI7sZHZeHy0S4zEiVFkl8,18092
|
141
141
|
khoj/interface/compiled/_next/static/chunks/app/automations/layout-27c28e923c9b1ff0.js,sha256=d2vJ_lVB0pfeFXNUPzHAe1ca5NzdNowHPh___SPqugM,5143
|
142
142
|
khoj/interface/compiled/_next/static/chunks/app/automations/page-6ea3381528603372.js,sha256=k3i98nr6E_PNFbysxyybVnX3HPQeO9lYCLGJLLDoQzA,34467
|
143
143
|
khoj/interface/compiled/_next/static/chunks/app/chat/layout-8102549127db3067.js,sha256=YIoA3fqOBt8nKWw5iQAwA_avg2t1Q5Afn65IA5PBOz4,374
|
144
|
-
khoj/interface/compiled/_next/static/chunks/app/chat/page-
|
144
|
+
khoj/interface/compiled/_next/static/chunks/app/chat/page-132e5199f954559f.js,sha256=n8BxmjEhcLNaIQdRTJjUwRRohs_dVk5954xRwJsv8fk,10746
|
145
145
|
khoj/interface/compiled/_next/static/chunks/app/factchecker/layout-7b30c541c05fb904.js,sha256=yub2AuBKHKSCqrHRFnkZv9JXLmLJLOB99iiaD3DtZQM,170
|
146
146
|
khoj/interface/compiled/_next/static/chunks/app/factchecker/page-04a19ab1a988976f.js,sha256=pY0MoXEHFoRpZhJk5eBfox6_eVJ9UQe5RzBBp6v1Rd8,14028
|
147
147
|
khoj/interface/compiled/_next/static/chunks/app/search/layout-3720f1362310bebb.js,sha256=Smpa4MQaw5ItashtspsDKsOvRa6sOXH_lv4jIfWIbNI,170
|
@@ -233,8 +233,8 @@ khoj/interface/compiled/_next/static/media/flags.3afdda2f.webp,sha256=M2AW_HLpBn
|
|
233
233
|
khoj/interface/compiled/_next/static/media/flags@2x.5fbe9fc1.webp,sha256=BBeRPBZkxY3-aKkMnYv5TSkxmbeMbyUH4VRIPfrWg1E,137406
|
234
234
|
khoj/interface/compiled/_next/static/media/globe.98e105ca.webp,sha256=g3ofb8-W9GM75zIhlvQhaS8I2py9TtrovOKR3_7Jf04,514
|
235
235
|
khoj/interface/compiled/_next/static/media/globe@2x.974df6f8.webp,sha256=I_N7Yke3IOoS-0CC6XD8o0IUWG8PdPbrHmf6lpgWlZY,1380
|
236
|
-
khoj/interface/compiled/agents/index.html,sha256=
|
237
|
-
khoj/interface/compiled/agents/index.txt,sha256=
|
236
|
+
khoj/interface/compiled/agents/index.html,sha256=NILSLxdC_0NRNqMQ9nMyNtFaIWi0__Bj6bOh14PgvRo,12723
|
237
|
+
khoj/interface/compiled/agents/index.txt,sha256=I0y4cL4jCiJx6gmb9AzjEN4ujCxKSnphg2_R0Lz2CiA,6087
|
238
238
|
khoj/interface/compiled/assets/icons/khoj_lantern.ico,sha256=eggu-B_v3z1R53EjOFhIqqPnICBGdoaw1xnc0NrzHck,174144
|
239
239
|
khoj/interface/compiled/assets/icons/khoj_lantern_128x128.png,sha256=aTxivDb3CYyThkVZWz8A19xl_dNut5DbkXhODWF3A9Q,5640
|
240
240
|
khoj/interface/compiled/assets/icons/khoj_lantern_256x256.png,sha256=xPCMLHiaL7lYOdQLZrKwWE-Qjn5ZaysSZB0ScYv4UZU,12312
|
@@ -245,18 +245,18 @@ khoj/interface/compiled/assets/samples/desktop-remember-plan-sample.png,sha256=i
|
|
245
245
|
khoj/interface/compiled/assets/samples/phone-browse-draw-sample.png,sha256=Dd4fPwtFl6BWqnHjeb1mCK_ND0hhHsWtx8sNE7EiMuE,406179
|
246
246
|
khoj/interface/compiled/assets/samples/phone-plain-chat-sample.png,sha256=DEDaNRCkfEWUeh3kYZWIQDTVK1a6KKnYdwj5ZWisN_Q,82985
|
247
247
|
khoj/interface/compiled/assets/samples/phone-remember-plan-sample.png,sha256=Ma3blirRmq3X4oYSsDbbT7MDn29rymDrjwmUfA9BMuM,236285
|
248
|
-
khoj/interface/compiled/automations/index.html,sha256=
|
249
|
-
khoj/interface/compiled/automations/index.txt,sha256=
|
250
|
-
khoj/interface/compiled/chat/index.html,sha256=
|
251
|
-
khoj/interface/compiled/chat/index.txt,sha256=
|
252
|
-
khoj/interface/compiled/factchecker/index.html,sha256=
|
253
|
-
khoj/interface/compiled/factchecker/index.txt,sha256=
|
254
|
-
khoj/interface/compiled/search/index.html,sha256=
|
255
|
-
khoj/interface/compiled/search/index.txt,sha256=
|
256
|
-
khoj/interface/compiled/settings/index.html,sha256=
|
257
|
-
khoj/interface/compiled/settings/index.txt,sha256=
|
258
|
-
khoj/interface/compiled/share/chat/index.html,sha256=
|
259
|
-
khoj/interface/compiled/share/chat/index.txt,sha256=
|
248
|
+
khoj/interface/compiled/automations/index.html,sha256=oVQ5lxCOlcm6QEfsUvh1S_rHuuQrTmqlfKyIBFjBrAA,30524
|
249
|
+
khoj/interface/compiled/automations/index.txt,sha256=y-ze1fluWLBDnsxl0NCZp6asdGTMkjUflbrkZxJRUbc,5459
|
250
|
+
khoj/interface/compiled/chat/index.html,sha256=mQjl6neS9MNZDsa7vJs-RoYmtJt8koaVUHBtKyTIKA4,13741
|
251
|
+
khoj/interface/compiled/chat/index.txt,sha256=iIG3d5pI2oYHsazsH6o-v2aCn5zkeBlKY-RYEkJx9pU,6491
|
252
|
+
khoj/interface/compiled/factchecker/index.html,sha256=2bOiKHY4wtukUjZItDsl-e-gcu4WP_zvzsaG29nVptE,29990
|
253
|
+
khoj/interface/compiled/factchecker/index.txt,sha256=fq42Z3t36G5JlvEUBYMowiFnd2yS9VEzrfQ_zfZ70Oo,5793
|
254
|
+
khoj/interface/compiled/search/index.html,sha256=W1RrZq-MRGuBlVgowvhWj7bmA9UnARfuFpcMQJQl3Hs,30178
|
255
|
+
khoj/interface/compiled/search/index.txt,sha256=LA846tIH6H4yXJACAPj2Weh-z8-js6-bQ_qPHWJtIio,5261
|
256
|
+
khoj/interface/compiled/settings/index.html,sha256=3dfIuKh_MXT6OxQsXOr70yj4OfhjnZBcOaWvoIXsdjY,12851
|
257
|
+
khoj/interface/compiled/settings/index.txt,sha256=_h2TUMs0EbGR81q-EEvEGckTbe6kBT_2QzTzi9yp81g,6085
|
258
|
+
khoj/interface/compiled/share/chat/index.html,sha256=bnkw_47nVQsSpbIA-YwYpg11j8cRBLIyU-pFGLIs4UA,15071
|
259
|
+
khoj/interface/compiled/share/chat/index.txt,sha256=uGms3hFeGfZF1riDGKi-6C7bCzZl7Z2Un6J-cU_6Qnw,7309
|
260
260
|
khoj/interface/email/feedback.html,sha256=xksuPFamx4hGWyTTxZKRgX_eiYQQEuv-eK9Xmkt-nwU,1216
|
261
261
|
khoj/interface/email/magic_link.html,sha256=jXY_2hD3o15Ns5UDzbjLT8FHBnZiS7jo38YkYXIS-4w,947
|
262
262
|
khoj/interface/email/task.html,sha256=yXywzC-5P4nXbhqvgCmwcCpTRbD5eWuDXMpgYSotztM,3311
|
@@ -362,8 +362,8 @@ khoj/utils/models.py,sha256=Q5tcC9-z25sCiub048fLnvZ6_IIO1bcPNxt5payekk0,2009
|
|
362
362
|
khoj/utils/rawconfig.py,sha256=BKicp6kEBax7h76YRYgyFAUpfWHAI5m9ZJ2HVqyh45Y,3983
|
363
363
|
khoj/utils/state.py,sha256=x4GTewP1YhOA6c_32N4wOjnV-3AA3xG_qbY1-wC2Uxc,1559
|
364
364
|
khoj/utils/yaml.py,sha256=H0mfw0ZvBFUvFmCQn8pWkfxdmIebsrSykza7D8Wv6wQ,1430
|
365
|
-
khoj-1.23.2.dist-info/METADATA,sha256=
|
366
|
-
khoj-1.23.2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
367
|
-
khoj-1.23.2.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
|
368
|
-
khoj-1.23.2.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
369
|
-
khoj-1.23.2.dist-info/RECORD,,
|
365
|
+
khoj-1.23.2.dev1.dist-info/METADATA,sha256=urV2FGuK2-3rGwD2bRgdHvVFWWfGKdvoHFsTidQmYx0,6768
|
366
|
+
khoj-1.23.2.dev1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
367
|
+
khoj-1.23.2.dev1.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
|
368
|
+
khoj-1.23.2.dev1.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
369
|
+
khoj-1.23.2.dev1.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1929],{39929:function(e,t,s){Promise.resolve().then(s.bind(s,38874))},38874:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return p}});var n=s(57437),a=s(65104),o=s.n(a),i=s(2265),r=s(48861),c=s(82697),l=s(16463),d=s(58485),u=s(9557);s(7395);var g=s(69591),h=s(38423),m=s(79306);function f(e){let t=(0,l.useSearchParams)().get("conversationId"),[s,a]=(0,i.useState)(""),[r,d]=(0,i.useState)(null),[u,g]=(0,i.useState)(!1),[m,f]=(0,i.useState)(null),p=e.setQueryToProcess,x=e.onConversationIdChange;if((0,i.useEffect)(()=>{r&&e.setImage64(encodeURIComponent(r))},[r,e.setImage64]),(0,i.useEffect)(()=>{let t=localStorage.getItem("image");t&&(d(t),e.setImage64(encodeURIComponent(t)),localStorage.removeItem("image"));let s=localStorage.getItem("message");s&&(g(!0),p(s))},[p]),(0,i.useEffect)(()=>{s&&(g(!0),p(s))},[s,p]),(0,i.useEffect)(()=>{t&&(null==x||x(t))},[t,x]),(0,i.useEffect)(()=>{e.streamedMessages&&e.streamedMessages.length>0&&e.streamedMessages[e.streamedMessages.length-1].completed?g(!1):a("")},[e.streamedMessages]),!t){window.location.href="/";return}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:o().chatBodyFull,children:(0,n.jsx)(c.Z,{conversationId:t,setTitle:e.setTitle,setAgent:f,pendingMessage:u?s:"",incomingMessages:e.streamedMessages})}),(0,n.jsx)("div",{className:"".concat(o().inputBox," p-1 md:px-2 shadow-md bg-background align-middle items-center justify-center dark:bg-neutral-700 dark:border-0 dark:shadow-sm rounded-t-2xl rounded-b-none md:rounded-xl"),children:(0,n.jsx)(h.Z,{agentColor:null==m?void 0:m.color,isLoggedIn:e.isLoggedIn,sendMessage:e=>a(e),sendImage:e=>d(e),sendDisabled:u,chatOptionsData:e.chatOptionsData,conversationId:t,isMobileWidth:e.isMobileWidth,setUploadedFiles:e.setUploadedFiles})})]})}function p(){let e="Khoj AI - Chat",[t,s]=(0,i.useState)(null),[a,c]=(0,i.useState)(!0),[l,h]=(0,i.useState)(e),[p,x]=(0,i.useState)(null),[v,y]=(0,i.useState)([]),[_,j]=(0,i.useState)(""),[b,I]=(0,i.useState)(!1),[w,M]=(0,i.useState)([]),[S,C]=(0,i.useState)(""),N=(0,g.k6)(),T=(0,m.G)(),B=(0,g.IC)();async function E(e){if(!e.ok)throw Error(e.statusText);if(!e.body)throw Error("Response body is null");let t=e.body.getReader(),s=new TextDecoder,n="␃\uD83D\uDD1A␗",a="",o=[],i={};for(;;){let e;let{done:r,value:c}=await t.read();if(r){j(""),I(!1),C("");break}for(a+=s.decode(c,{stream:!0});-1!==(e=a.indexOf(n));){let t=a.slice(0,e);if(a=a.slice(e+n.length),t){let e=v.find(e=>!e.completed);if(!e){console.error("No current message found");return}({context:o,onlineContext:i}=(0,u.VK)(t,e,o,i)),y([...v])}}}}async function k(){if(localStorage.removeItem("message"),!_||!p)return;let e={q:_,conversation_id:parseInt(p),stream:!0,...N&&{region:N.region,country:N.country,city:N.city,timezone:N.timezone},...S&&{image:S}},t=await fetch("/api/chat?client=web",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});try{await E(t)}catch(s){console.error(s);let e=v.find(e=>!e.completed);if(!e)return;let t=s.message;t.includes("Error in input stream")?e.rawResponse="Woops! The connection broke while I was writing my thoughts down. Maybe try again in a bit or dislike this message if the issue persists?":e.rawResponse="Umm, not sure what just happened. I see this error message: ".concat(t,". Could you try again or dislike this message if the issue persists?"),e.completed=!0,y([...v]),j(""),I(!1)}}return((0,i.useEffect)(()=>{fetch("/api/chat/options").then(e=>e.json()).then(e=>{c(!1),e&&s(e)}).catch(e=>{console.error(e)}),(0,g.EK)()},[]),(0,i.useEffect)(()=>{if(_){let e={rawResponse:"",trainOfThought:[],context:[],onlineContext:{},completed:!1,timestamp:new Date().toISOString(),rawQuery:_||"",uploadedImageData:decodeURIComponent(S)};y(t=>[...t,e]),I(!0)}},[_]),(0,i.useEffect)(()=>{b&&k()},[b]),a)?(0,n.jsx)(d.Z,{}):(0,n.jsxs)("div",{className:"".concat(o().main," ").concat(o().chatLayout),children:[(0,n.jsx)("title",{children:"".concat(e).concat(l&&l!==e?": ".concat(l):"")}),(0,n.jsx)("div",{children:(0,n.jsx)(r.Z,{conversationId:p,uploadedFiles:w,isMobileWidth:B})}),(0,n.jsx)("div",{className:o().chatBox,children:(0,n.jsxs)("div",{className:o().chatBoxBody,children:[!B&&(0,n.jsx)("div",{className:"text-nowrap text-ellipsis overflow-hidden max-w-screen-md grid items-top font-bold mr-8",children:l&&(0,n.jsx)("h2",{className:"text-lg text-ellipsis whitespace-nowrap overflow-x-hidden pt-6",children:l})}),(0,n.jsx)(i.Suspense,{fallback:(0,n.jsx)(d.Z,{}),children:(0,n.jsx)(f,{isLoggedIn:null!==T,streamedMessages:v,chatOptionsData:t,setTitle:h,setQueryToProcess:j,setUploadedFiles:M,isMobileWidth:B,onConversationIdChange:e=>{x(e)},setImage64:C})})]})})]})}},82697:function(e,t,s){"use strict";s.d(t,{Z:function(){return x}});var n=s(57437),a=s(15238),o=s.n(a),i=s(2265),r=s(89178),c=s(94880),l=s(58485),d=s(16288),u=s(26100),g=s(19666),h=s(50495),m=e=>{let{name:t,avatar:s,link:a,description:o}=e;return(0,n.jsx)("div",{className:"relative group flex",children:(0,n.jsx)(g.pn,{children:(0,n.jsxs)(g.u,{children:[(0,n.jsx)(g.aJ,{asChild:!0,children:(0,n.jsxs)(h.z,{variant:"ghost",className:"flex items-center justify-center",children:[s,(0,n.jsx)("div",{children:t})]})}),(0,n.jsx)(g._v,{children:(0,n.jsxs)("div",{className:"w-80 h-30",children:[(0,n.jsx)("a",{href:a,target:"_blank",rel:"noreferrer",className:"mt-1 ml-2 block no-underline",children:(0,n.jsxs)("div",{className:"flex items-center justify-start gap-2",children:[s,(0,n.jsxs)("div",{className:"mr-2 mt-1 flex justify-center items-center text-sm font-semibold text-gray-800",children:[t,(0,n.jsx)(u.o,{weight:"bold",className:"ml-1"})]})]})}),o&&(0,n.jsx)("p",{className:"mt-2 ml-6 text-sm text-gray-600 line-clamp-2",children:o||"A Khoj agent"})]})})]})})})},f=s(89417),p=s(69591);function x(e){let[t,s]=(0,i.useState)(null),[a,u]=(0,i.useState)(0),[g,h]=(0,i.useState)(!0),x=(0,i.useRef)(null),v=(0,i.useRef)(null),y=(0,i.useRef)(null),[_,j]=(0,i.useState)(null),[b,I]=(0,i.useState)(!1),w=(0,p.IC)();(0,i.useEffect)(()=>{a<2&&((null==t?void 0:t.chat.length)||setTimeout(()=>{M()},500))},[t,a]),(0,i.useEffect)(()=>{if(!g||b)return;let n=new IntersectionObserver(n=>{n[0].isIntersecting&&g&&(I(!0),function(n){if(!g||b)return;let a=n+1,o="";if(e.conversationId)o="/api/chat/history?client=web&conversation_id=".concat(e.conversationId,"&n=").concat(10*a);else{if(!e.publicConversationSlug)return;o="/api/chat/share/history?client=web&public_conversation_slug=".concat(e.publicConversationSlug,"&n=").concat(10*a)}fetch(o).then(e=>e.json()).then(a=>{if(e.setTitle(a.response.slug),a&&a.response&&a.response.chat&&a.response.chat.length>0){if(a.response.chat.length===(null==t?void 0:t.chat.length)){h(!1),I(!1);return}e.setAgent(a.response.agent),s(a.response),n<2&&M(),I(!1)}else{if(a.response.agent&&a.response.conversation_id){let t={chat:[],agent:a.response.agent,conversation_id:a.response.conversation_id,slug:a.response.slug};e.setAgent(a.response.agent),s(t)}h(!1),I(!1)}}).catch(e=>{console.error(e),window.location.href="/"})}(a),u(e=>e+1))},{threshold:1});return y.current&&n.observe(y.current),()=>n.disconnect()},[g,a,b]),(0,i.useEffect)(()=>{h(!0),I(!1),u(0),s(null)},[e.conversationId]),(0,i.useEffect)(()=>{if(e.incomingMessages){let t=e.incomingMessages[e.incomingMessages.length-1];t&&!t.completed&&j(e.incomingMessages.length-1)}S()&&M()},[e.incomingMessages]);let M=()=>{v.current&&v.current.scrollIntoView(!1)},S=()=>{if(!v.current)return!1;let{scrollTop:e,scrollHeight:t,clientHeight:s}=v.current;return e+s>=t-25};return e.conversationId||e.publicConversationSlug?(0,n.jsx)(c.x,{className:"h-[80vh]",children:(0,n.jsx)("div",{ref:x,children:(0,n.jsxs)("div",{className:o().chatHistory,ref:v,children:[(0,n.jsx)("div",{ref:y,style:{height:"1px"},children:b&&(0,n.jsx)(l.l,{message:"Loading Conversation",className:"opacity-50"})}),t&&t.chat&&t.chat.map((e,s)=>(0,n.jsx)(r.Z,{isMobileWidth:w,chatMessage:e,customClassName:"fullHistory",borderLeftColor:"".concat(null==t?void 0:t.agent.color,"-500"),isLastMessage:s===t.chat.length-1},"".concat(s,"fullHistory"))),e.incomingMessages&&e.incomingMessages.map((e,s)=>(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(r.Z,{isMobileWidth:w,chatMessage:{message:e.rawQuery,context:[],onlineContext:{},created:e.timestamp,by:"you",automationId:"",uploadedImageData:e.uploadedImageData},customClassName:"fullHistory",borderLeftColor:"".concat(null==t?void 0:t.agent.color,"-500")},"".concat(s,"outgoing")),e.trainOfThought&&function(e,t,s,a){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=e.length-1;return(0,n.jsxs)("div",{className:"".concat(o().trainOfThought," shadow-sm"),children:[!i&&(0,n.jsx)(l.l,{className:"float-right"}),e.map((e,a)=>(0,n.jsx)(r.H,{message:e,primary:a===c&&t&&!i,agentColor:s},"train-".concat(a)))]},a)}(e.trainOfThought,s===_,(null==t?void 0:t.agent.color)||"orange","".concat(s,"trainOfThought"),e.completed),(0,n.jsx)(r.Z,{isMobileWidth:w,chatMessage:{message:e.rawResponse,context:e.context,onlineContext:e.onlineContext,created:e.timestamp,by:"khoj",automationId:"",rawQuery:e.rawQuery},customClassName:"fullHistory",borderLeftColor:"".concat(null==t?void 0:t.agent.color,"-500"),isLastMessage:!0},"".concat(s,"incoming"))]},"incomingMessage".concat(s))),e.pendingMessage&&(0,n.jsx)(r.Z,{isMobileWidth:w,chatMessage:{message:e.pendingMessage,context:[],onlineContext:{},created:new Date().getTime().toString(),by:"you",automationId:"",uploadedImageData:e.pendingMessage},customClassName:"fullHistory",borderLeftColor:"".concat(null==t?void 0:t.agent.color,"-500"),isLastMessage:!0},"pendingMessage-".concat(e.pendingMessage.length)),t&&(0,n.jsx)("div",{className:"".concat(o().agentIndicator," pb-4"),children:(0,n.jsx)("div",{className:"relative group mx-2 cursor-pointer",children:(0,n.jsx)(m,{name:t&&t.agent&&t.agent.name?t.agent.name:"Agent",link:t&&t.agent&&t.agent.slug?"/agents?agent=".concat(t.agent.slug):"/agents",avatar:(0,f.T)(t.agent.icon,t.agent.color)||(0,n.jsx)(d.v,{}),description:t&&t.agent&&t.agent.persona?t.agent.persona:""})})})]})})}):null}},16463:function(e,t,s){"use strict";var n=s(71169);s.o(n,"useSearchParams")&&s.d(t,{useSearchParams:function(){return n.useSearchParams}})},65104:function(e){e.exports={main:"chat_main__8xQu5",suggestions:"chat_suggestions__m8n2t",inputBox:"chat_inputBox__LOFws",chatBodyFull:"chat_chatBodyFull__FfKEK",chatBody:"chat_chatBody__sS1LX",chatLayout:"chat_chatLayout__pR203",chatBox:"chat_chatBox__FBct_",titleBar:"chat_titleBar__R5QlK",chatBoxBody:"chat_chatBoxBody__qT_SC",agentIndicator:"chat_agentIndicator__8V55w"}},15238:function(e){e.exports={chatHistory:"chatHistory_chatHistory__CoaVT",chatLayout:"chatHistory_chatLayout__ABli_",agentIndicator:"chatHistory_agentIndicator__wOU1f",trainOfThought:"chatHistory_trainOfThought__mMWSR"}}},function(e){e.O(0,[7812,9427,929,3954,9001,3062,743,121,7071,1906,9984,1603,9417,9178,8423,2971,7023,1744],function(){return e(e.s=39929)}),_N_E=e.O()}]);
|
File without changes
|
File without changes
|
/khoj/interface/compiled/_next/static/chunks/{8423-14fc72aec9104ce9.js → 8423-ce22327cf2d2edae.js}
RENAMED
File without changes
|
/khoj/interface/compiled/_next/static/chunks/{9178-c153fc402c970365.js → 9178-3a0baad1c172d515.js}
RENAMED
File without changes
|
/khoj/interface/compiled/_next/static/chunks/{9417-5d14ac74aaab2c66.js → 9417-2e54c6fd056982d8.js}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|