khoj 1.24.2.dev19__py3-none-any.whl → 1.24.2.dev34__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 (50) hide show
  1. khoj/database/adapters/__init__.py +27 -15
  2. khoj/interface/compiled/404/index.html +1 -1
  3. khoj/interface/compiled/_next/static/chunks/app/agents/page-1b494bb54aca52de.js +1 -0
  4. khoj/interface/compiled/_next/static/chunks/app/automations/{page-5480731341f34450.js → page-1688dead2f21270d.js} +1 -1
  5. khoj/interface/compiled/_next/static/chunks/app/chat/{page-702057ccbcf27881.js → page-91abcb71846922b7.js} +1 -1
  6. khoj/interface/compiled/_next/static/chunks/app/factchecker/{page-e7b34316ec6f44de.js → page-7ab093711c27041c.js} +1 -1
  7. khoj/interface/compiled/_next/static/chunks/app/{page-421d13f70c505dd9.js → page-fada198096eab47f.js} +1 -1
  8. khoj/interface/compiled/_next/static/chunks/app/search/{page-d56541c746fded7d.js → page-a7e036689b6507ff.js} +1 -1
  9. khoj/interface/compiled/_next/static/chunks/app/settings/{page-e044a999468a7c5d.js → page-fa11cafaec7ab39f.js} +1 -1
  10. khoj/interface/compiled/_next/static/chunks/app/share/chat/{page-fbbd66a4d4633438.js → page-c5d2b9076e5390b2.js} +1 -1
  11. khoj/interface/compiled/_next/static/chunks/{webpack-c4376b110507dd22.js → webpack-f52083d548d804fa.js} +1 -1
  12. khoj/interface/compiled/_next/static/css/4cae6c0e5c72fb2d.css +1 -0
  13. khoj/interface/compiled/_next/static/css/dfb67a9287720a2b.css +1 -0
  14. khoj/interface/compiled/agents/index.html +1 -1
  15. khoj/interface/compiled/agents/index.txt +2 -2
  16. khoj/interface/compiled/automations/index.html +1 -1
  17. khoj/interface/compiled/automations/index.txt +2 -2
  18. khoj/interface/compiled/chat/index.html +1 -1
  19. khoj/interface/compiled/chat/index.txt +2 -2
  20. khoj/interface/compiled/factchecker/index.html +1 -1
  21. khoj/interface/compiled/factchecker/index.txt +2 -2
  22. khoj/interface/compiled/index.html +1 -1
  23. khoj/interface/compiled/index.txt +2 -2
  24. khoj/interface/compiled/search/index.html +1 -1
  25. khoj/interface/compiled/search/index.txt +2 -2
  26. khoj/interface/compiled/settings/index.html +1 -1
  27. khoj/interface/compiled/settings/index.txt +2 -2
  28. khoj/interface/compiled/share/chat/index.html +1 -1
  29. khoj/interface/compiled/share/chat/index.txt +2 -2
  30. khoj/processor/conversation/google/gemini_chat.py +4 -19
  31. khoj/processor/conversation/google/utils.py +29 -15
  32. khoj/processor/conversation/prompts.py +14 -3
  33. khoj/processor/conversation/utils.py +3 -7
  34. khoj/processor/embeddings.py +5 -3
  35. khoj/routers/api_chat.py +33 -18
  36. khoj/routers/helpers.py +11 -3
  37. khoj/utils/helpers.py +8 -8
  38. {khoj-1.24.2.dev19.dist-info → khoj-1.24.2.dev34.dist-info}/METADATA +1 -1
  39. {khoj-1.24.2.dev19.dist-info → khoj-1.24.2.dev34.dist-info}/RECORD +47 -47
  40. khoj/interface/compiled/_next/static/chunks/app/agents/page-4005bd96041d20f5.js +0 -1
  41. khoj/interface/compiled/_next/static/css/2de69f0be774c768.css +0 -1
  42. khoj/interface/compiled/_next/static/css/3e1f1fdd70775091.css +0 -1
  43. /khoj/interface/compiled/_next/static/{-g-BSlwy2eTVtQIJDFFXi → Be65WE5esb8ZOxD33psmy}/_buildManifest.js +0 -0
  44. /khoj/interface/compiled/_next/static/{-g-BSlwy2eTVtQIJDFFXi → Be65WE5esb8ZOxD33psmy}/_ssgManifest.js +0 -0
  45. /khoj/interface/compiled/_next/static/chunks/{9178-f208a3e6404714a9.js → 9178-899fe9a6b754ecfe.js} +0 -0
  46. /khoj/interface/compiled/_next/static/chunks/{9417-1d158bf46d3a0dc9.js → 9417-29502e39c3e7d60c.js} +0 -0
  47. /khoj/interface/compiled/_next/static/chunks/{9479-563e4d61f91d5a7c.js → 9479-7eed36fc954ef804.js} +0 -0
  48. {khoj-1.24.2.dev19.dist-info → khoj-1.24.2.dev34.dist-info}/WHEEL +0 -0
  49. {khoj-1.24.2.dev19.dist-info → khoj-1.24.2.dev34.dist-info}/entry_points.txt +0 -0
  50. {khoj-1.24.2.dev19.dist-info → khoj-1.24.2.dev34.dist-info}/licenses/LICENSE +0 -0
khoj/routers/api_chat.py CHANGED
@@ -209,14 +209,17 @@ def chat_history(
209
209
 
210
210
  agent_metadata = None
211
211
  if conversation.agent:
212
- agent_metadata = {
213
- "slug": conversation.agent.slug,
214
- "name": conversation.agent.name,
215
- "isCreator": conversation.agent.creator == user,
216
- "color": conversation.agent.style_color,
217
- "icon": conversation.agent.style_icon,
218
- "persona": conversation.agent.personality,
219
- }
212
+ if conversation.agent.privacy_level == Agent.PrivacyLevel.PRIVATE:
213
+ conversation.agent = None
214
+ else:
215
+ agent_metadata = {
216
+ "slug": conversation.agent.slug,
217
+ "name": conversation.agent.name,
218
+ "isCreator": conversation.agent.creator == user,
219
+ "color": conversation.agent.style_color,
220
+ "icon": conversation.agent.style_icon,
221
+ "persona": conversation.agent.personality,
222
+ }
220
223
 
221
224
  meta_log = conversation.conversation_log
222
225
  meta_log.update(
@@ -265,14 +268,17 @@ def get_shared_chat(
265
268
 
266
269
  agent_metadata = None
267
270
  if conversation.agent:
268
- agent_metadata = {
269
- "slug": conversation.agent.slug,
270
- "name": conversation.agent.name,
271
- "isCreator": conversation.agent.creator == user,
272
- "color": conversation.agent.style_color,
273
- "icon": conversation.agent.style_icon,
274
- "persona": conversation.agent.personality,
275
- }
271
+ if conversation.agent.privacy_level == Agent.PrivacyLevel.PRIVATE:
272
+ conversation.agent = None
273
+ else:
274
+ agent_metadata = {
275
+ "slug": conversation.agent.slug,
276
+ "name": conversation.agent.name,
277
+ "isCreator": conversation.agent.creator == user,
278
+ "color": conversation.agent.style_color,
279
+ "icon": conversation.agent.style_icon,
280
+ "persona": conversation.agent.personality,
281
+ }
276
282
 
277
283
  meta_log = conversation.conversation_log
278
284
  scrubbed_title = conversation.title if conversation.title else conversation.slug
@@ -758,7 +764,12 @@ async def chat(
758
764
  yield result
759
765
 
760
766
  response = await extract_relevant_summary(
761
- q, contextual_data, subscribed=subscribed, uploaded_image_url=uploaded_image_url, agent=agent
767
+ q,
768
+ contextual_data,
769
+ conversation_history=meta_log,
770
+ subscribed=subscribed,
771
+ uploaded_image_url=uploaded_image_url,
772
+ agent=agent,
762
773
  )
763
774
  response_log = str(response)
764
775
  async for result in send_llm_response(response_log):
@@ -1238,7 +1249,11 @@ async def get_chat(
1238
1249
  yield result
1239
1250
 
1240
1251
  response = await extract_relevant_summary(
1241
- q, contextual_data, subscribed=subscribed, uploaded_image_url=uploaded_image_url
1252
+ q,
1253
+ contextual_data,
1254
+ conversation_history=meta_log,
1255
+ subscribed=subscribed,
1256
+ uploaded_image_url=uploaded_image_url,
1242
1257
  )
1243
1258
  response_log = str(response)
1244
1259
  async for result in send_llm_response(response_log):
khoj/routers/helpers.py CHANGED
@@ -208,7 +208,7 @@ def get_next_url(request: Request) -> str:
208
208
  def construct_chat_history(conversation_history: dict, n: int = 4, agent_name="AI") -> str:
209
209
  chat_history = ""
210
210
  for chat in conversation_history.get("chat", [])[-n:]:
211
- if chat["by"] == "khoj" and chat["intent"].get("type") in ["remember", "reminder"]:
211
+ if chat["by"] == "khoj" and chat["intent"].get("type") in ["remember", "reminder", "summarize"]:
212
212
  chat_history += f"User: {chat['intent']['query']}\n"
213
213
  chat_history += f"{agent_name}: {chat['message']}\n"
214
214
  elif chat["by"] == "khoj" and ("text-to-image" in chat["intent"].get("type")):
@@ -351,7 +351,7 @@ async def aget_relevant_information_sources(
351
351
  if len(agent_tools) == 0:
352
352
  final_response = [ConversationCommand.Default]
353
353
  else:
354
- final_response = agent_tools
354
+ final_response = [ConversationCommand.General]
355
355
  return final_response
356
356
  except Exception as e:
357
357
  logger.error(f"Invalid response for determining relevant tools: {response}")
@@ -574,7 +574,12 @@ async def extract_relevant_info(q: str, corpus: str, subscribed: bool, agent: Ag
574
574
 
575
575
 
576
576
  async def extract_relevant_summary(
577
- q: str, corpus: str, subscribed: bool = False, uploaded_image_url: str = None, agent: Agent = None
577
+ q: str,
578
+ corpus: str,
579
+ conversation_history: dict,
580
+ subscribed: bool = False,
581
+ uploaded_image_url: str = None,
582
+ agent: Agent = None,
578
583
  ) -> Union[str, None]:
579
584
  """
580
585
  Extract relevant information for a given query from the target corpus
@@ -587,8 +592,11 @@ async def extract_relevant_summary(
587
592
  prompts.personality_context.format(personality=agent.personality) if agent and agent.personality else ""
588
593
  )
589
594
 
595
+ chat_history = construct_chat_history(conversation_history)
596
+
590
597
  extract_relevant_information = prompts.extract_relevant_summary.format(
591
598
  query=q,
599
+ chat_history=chat_history,
592
600
  corpus=corpus.strip(),
593
601
  personality_context=personality_context,
594
602
  )
khoj/utils/helpers.py CHANGED
@@ -321,7 +321,7 @@ command_descriptions = {
321
321
  ConversationCommand.Notes: "Only talk about information that is available in your knowledge base.",
322
322
  ConversationCommand.Default: "The default command when no command specified. It intelligently auto-switches between general and notes mode.",
323
323
  ConversationCommand.Online: "Search for information on the internet.",
324
- ConversationCommand.Webpage: "Get information from webpage links provided by you.",
324
+ ConversationCommand.Webpage: "Get information from webpage suggested by you.",
325
325
  ConversationCommand.Image: "Generate images by describing your imagination in words.",
326
326
  ConversationCommand.Automation: "Automatically run your query at a specified time or interval.",
327
327
  ConversationCommand.Help: "Get help with how to use or setup Khoj from the documentation",
@@ -329,11 +329,11 @@ command_descriptions = {
329
329
  }
330
330
 
331
331
  command_descriptions_for_agent = {
332
- ConversationCommand.General: "Respond without any outside information or personal knowledge.",
333
- ConversationCommand.Notes: "Search through the knowledge base. Required if the agent expects context from the knowledge base.",
334
- ConversationCommand.Online: "Search for the latest, up-to-date information from the internet.",
335
- ConversationCommand.Webpage: "Scrape specific web pages for information.",
336
- ConversationCommand.Summarize: "Retrieve an answer that depends on the entire document or a large text. Knowledge base must be a single document.",
332
+ ConversationCommand.General: "Agent can use the agents knowledge base and general knowledge.",
333
+ ConversationCommand.Notes: "Agent can search the users knowledge base for information.",
334
+ ConversationCommand.Online: "Agent can search the internet for information.",
335
+ ConversationCommand.Webpage: "Agent can read suggested web pages for information.",
336
+ ConversationCommand.Summarize: "Agent can read an entire document. Agents knowledge base must be a single document.",
337
337
  }
338
338
 
339
339
  tool_descriptions_for_llm = {
@@ -352,8 +352,8 @@ mode_descriptions_for_llm = {
352
352
  }
353
353
 
354
354
  mode_descriptions_for_agent = {
355
- ConversationCommand.Image: "Allow the agent to generate images.",
356
- ConversationCommand.Text: "Allow the agent to generate text.",
355
+ ConversationCommand.Image: "Agent can generate image in response.",
356
+ ConversationCommand.Text: "Agent can generate text in response.",
357
357
  }
358
358
 
359
359
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: khoj
3
- Version: 1.24.2.dev19
3
+ Version: 1.24.2.dev34
4
4
  Summary: Your Second Brain
5
5
  Project-URL: Homepage, https://khoj.dev
6
6
  Project-URL: Documentation, https://docs.khoj.dev
@@ -11,7 +11,7 @@ khoj/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
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=tmketWt9wZz4LAXTwuEQy3Z6rLClK-z-3tMXZywU2I8,58766
14
+ khoj/database/adapters/__init__.py,sha256=u9YciwUWeGO_ohm8xEQda0XL0jdi50Jg9xjwvRDNAAs,59159
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,17 +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=3Esz32MZpwpocrtcmyUuVF16CjzXiOBhLypr546Fzq4,11791
107
- khoj/interface/compiled/index.txt,sha256=fikafRQKLNaHu6o74H7MQ14moQTJ-m10HyogXaecxF4,5479
106
+ khoj/interface/compiled/index.html,sha256=UMQQuLZr9C2Fik40zziCYnDa1tpiTDE3-UaOj-Cqe_k,11791
107
+ khoj/interface/compiled/index.txt,sha256=Z1sr0EHqyacmTwvQwyR4RdcFbw74l-aIi-tarsWGI50,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=VfpHTyExh1pG02Y8QVZVjQ43vZQQhKVh3BTp1f0RoOs,12051
115
- khoj/interface/compiled/_next/static/-g-BSlwy2eTVtQIJDFFXi/_buildManifest.js,sha256=6I9QUstNpJnhe3leR2Daw0pSXwzcbBscv6h2jmmPpms,224
116
- khoj/interface/compiled/_next/static/-g-BSlwy2eTVtQIJDFFXi/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
114
+ khoj/interface/compiled/404/index.html,sha256=9Nvf1CI4GIk_4mbMd8e75kfGO3m5Ig05obqzseurd3Y,12051
115
+ khoj/interface/compiled/_next/static/Be65WE5esb8ZOxD33psmy/_buildManifest.js,sha256=6I9QUstNpJnhe3leR2Daw0pSXwzcbBscv6h2jmmPpms,224
116
+ khoj/interface/compiled/_next/static/Be65WE5esb8ZOxD33psmy/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
117
117
  khoj/interface/compiled/_next/static/chunks/121-7024f479c297aef0.js,sha256=CcRT2AArGYTo7Orl5w69nrnMqdI_EmyEP_YqIj3FU1c,20952
118
118
  khoj/interface/compiled/_next/static/chunks/1269-2e52d48e7d0e5c61.js,sha256=8iWbeeo_pCFEivsCeLB8dCtO2mMw8Z3LqWi2g5bE-OA,33828
119
119
  khoj/interface/compiled/_next/static/chunks/1603-67a89278e2c5dbe6.js,sha256=2ZLMR7DmmkCjtMyIwUy2FrHXh8fAmEEdlzhjr4Zll3k,71252
@@ -129,44 +129,44 @@ khoj/interface/compiled/_next/static/chunks/51-e8f5bdb69b5ea421.js,sha256=djNz3m
129
129
  khoj/interface/compiled/_next/static/chunks/6297-d1c842ed3f714ab0.js,sha256=4nzZ2umR-q6wQ-8L4RSivWXKV_SE1dWoN9qA1I9lCRI,25675
130
130
  khoj/interface/compiled/_next/static/chunks/7023-a5bf5744d19b3bd3.js,sha256=TBJA7dTnI8nymtbljKuZzo2hbStXWR-P8Qkl57k2Tw8,123898
131
131
  khoj/interface/compiled/_next/static/chunks/9001-3b27af6d5f21df44.js,sha256=ran2mMGTO2kiAJebRGMyfyAu4Sdjw-WobS_m6g-qjz8,34223
132
- khoj/interface/compiled/_next/static/chunks/9178-f208a3e6404714a9.js,sha256=AkZ8mx8fdZKFZxR0wXVkQ_0hkcd8NYbNoSSF8sthUSY,17798
133
- khoj/interface/compiled/_next/static/chunks/9417-1d158bf46d3a0dc9.js,sha256=RCdrdKyvMQRMyVnZPALFw_EU0IMNvl3x0DN4_1XzJig,19473
134
- khoj/interface/compiled/_next/static/chunks/9479-563e4d61f91d5a7c.js,sha256=c4VtkdNKRyB4nl1tAEqPKQHOJUEzcsQ8shdC4y2YFI8,22261
132
+ khoj/interface/compiled/_next/static/chunks/9178-899fe9a6b754ecfe.js,sha256=AkZ8mx8fdZKFZxR0wXVkQ_0hkcd8NYbNoSSF8sthUSY,17798
133
+ khoj/interface/compiled/_next/static/chunks/9417-29502e39c3e7d60c.js,sha256=RCdrdKyvMQRMyVnZPALFw_EU0IMNvl3x0DN4_1XzJig,19473
134
+ khoj/interface/compiled/_next/static/chunks/9479-7eed36fc954ef804.js,sha256=c4VtkdNKRyB4nl1tAEqPKQHOJUEzcsQ8shdC4y2YFI8,22261
135
135
  khoj/interface/compiled/_next/static/chunks/d3ac728e-a9e3522eef9b6b28.js,sha256=wK1TsLdl56xtbQG6HMRDpylzTOYXQaAnnn2xobFnX40,267216
136
136
  khoj/interface/compiled/_next/static/chunks/fd9d1056-2b978342deb60015.js,sha256=2lquiZSfbI-gX4j4TW4JSMLL_D5ShqwydgWpFyXrTy8,172834
137
137
  khoj/interface/compiled/_next/static/chunks/framework-8e0e0f4a6b83a956.js,sha256=sFFnSyDnFoOc61lP-EtTzTyf-zGA78ejDyMgPFMDw2Q,140001
138
138
  khoj/interface/compiled/_next/static/chunks/main-app-6d6ee3495efe03d4.js,sha256=i52E7sWOcSq1G8eYZL3mtTxbUbwRNxcAbSWQ6uWpMsY,475
139
139
  khoj/interface/compiled/_next/static/chunks/main-f84cd3c1873cd842.js,sha256=jKg2A4pPMmEAQmrA10rACH3daS8XXJeMnGOz1AsTkdI,111099
140
140
  khoj/interface/compiled/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js,sha256=6QPOwdWeAVe8x-SsiDrm-Ga6u2DkqgG5SFqglrlyIgA,91381
141
- khoj/interface/compiled/_next/static/chunks/webpack-c4376b110507dd22.js,sha256=4GEg0ZXzN4NPPBKA8LIRr2lSz2DmgpLj0woj_CMv1xA,3724
141
+ khoj/interface/compiled/_next/static/chunks/webpack-f52083d548d804fa.js,sha256=S5avn2tJkL1qJzKJ89Oj5h6LaHjzd1Z_tqnfpC3Tb_A,3725
142
142
  khoj/interface/compiled/_next/static/chunks/app/layout-f3e40d346da53112.js,sha256=nekGSUVbvB81OfqGgJa2UoDmbxPhNwFwtc4o11O_1jI,442
143
- khoj/interface/compiled/_next/static/chunks/app/page-421d13f70c505dd9.js,sha256=eugKXd0nrJGg9NbfmNmUrkCxT-w5opawTRxpheHICQ4,28641
143
+ khoj/interface/compiled/_next/static/chunks/app/page-fada198096eab47f.js,sha256=Td3TaqlUAdqfWC-srxUc5csowrB_IdVUwh8UgijuKc8,28641
144
144
  khoj/interface/compiled/_next/static/chunks/app/_not-found/page-07ff4ab42b07845e.js,sha256=3mCUnxfMxyK44eqk21TVBrC6u--WSbvx31fTmQuOvMQ,1755
145
145
  khoj/interface/compiled/_next/static/chunks/app/agents/layout-e71c8e913cccf792.js,sha256=VyIMrkvntFObMzXF-elNtngJ8mBdjg8XrOGfboJ2f_4,372
146
- khoj/interface/compiled/_next/static/chunks/app/agents/page-4005bd96041d20f5.js,sha256=Xby4EpdlOyujB2FLnXU01gqiwSSgR0wuKHNTi4vIgsE,40261
146
+ khoj/interface/compiled/_next/static/chunks/app/agents/page-1b494bb54aca52de.js,sha256=WaSIlTHowXE3B_dtgf517JjQwOof5nU-1kW5i4woH6U,40616
147
147
  khoj/interface/compiled/_next/static/chunks/app/automations/layout-27c28e923c9b1ff0.js,sha256=d2vJ_lVB0pfeFXNUPzHAe1ca5NzdNowHPh___SPqugM,5143
148
- khoj/interface/compiled/_next/static/chunks/app/automations/page-5480731341f34450.js,sha256=PgsFxtYymaDBMcJR31xPXLp4HX--uFJt6OAES95jM8k,35441
148
+ khoj/interface/compiled/_next/static/chunks/app/automations/page-1688dead2f21270d.js,sha256=Opqz4kE3FLbVI5dLo1OTIg8Vx8qsxV4CSOPyjG-hV_E,35446
149
149
  khoj/interface/compiled/_next/static/chunks/app/chat/layout-8102549127db3067.js,sha256=YIoA3fqOBt8nKWw5iQAwA_avg2t1Q5Afn65IA5PBOz4,374
150
- khoj/interface/compiled/_next/static/chunks/app/chat/page-702057ccbcf27881.js,sha256=Fge4qq3mFhPk0-tI5ts5JsJErlfjmlgHwbEugyVyAnk,5666
150
+ khoj/interface/compiled/_next/static/chunks/app/chat/page-91abcb71846922b7.js,sha256=6MODOR2pM8DnA5K190Tq_kiDCsgmPdiFRWzb1InO_Vo,5661
151
151
  khoj/interface/compiled/_next/static/chunks/app/factchecker/layout-7b30c541c05fb904.js,sha256=yub2AuBKHKSCqrHRFnkZv9JXLmLJLOB99iiaD3DtZQM,170
152
- khoj/interface/compiled/_next/static/chunks/app/factchecker/page-e7b34316ec6f44de.js,sha256=DPWy4Lh773zmhmrgEu8TPTI-r5DfZDeaoIOUGPKhi18,14032
152
+ khoj/interface/compiled/_next/static/chunks/app/factchecker/page-7ab093711c27041c.js,sha256=y9YyopS2Z7Q5Ut_-Jbq3WV99weALYRZhsTAv6WHB9fE,14032
153
153
  khoj/interface/compiled/_next/static/chunks/app/search/layout-3720f1362310bebb.js,sha256=Smpa4MQaw5ItashtspsDKsOvRa6sOXH_lv4jIfWIbNI,170
154
- khoj/interface/compiled/_next/static/chunks/app/search/page-d56541c746fded7d.js,sha256=4uRb6Ns9ichFXH7kBmbFLa7g8KgSgUsKFEYXEQqx9CQ,6958
154
+ khoj/interface/compiled/_next/static/chunks/app/search/page-a7e036689b6507ff.js,sha256=zf28zWiACH1fVjdBP9yz9fUSBBsc15o_sXlF5pR-L9o,6958
155
155
  khoj/interface/compiled/_next/static/chunks/app/settings/layout-6f9314b0d7a26046.js,sha256=ikl3vCXnp81sa24uPSuRbgvgDtpHGWfhxEs4OAOYXIM,5347
156
- khoj/interface/compiled/_next/static/chunks/app/settings/page-e044a999468a7c5d.js,sha256=PgBPWWlZyx65XgxrttZlHREESMDt44ICdrrZiO5gH9M,31848
156
+ khoj/interface/compiled/_next/static/chunks/app/settings/page-fa11cafaec7ab39f.js,sha256=p_AXxBnAB4OD3db46ij_E7P0AEqSuS7LTmf3ccFNo3g,31848
157
157
  khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-39f03f9e32399f0f.js,sha256=ClS8wrj6HOsRL4VX8DMiqX_MlQDsi_3CA-AQt4m7vuA,373
158
- khoj/interface/compiled/_next/static/chunks/app/share/chat/page-fbbd66a4d4633438.js,sha256=NfaF2T_Do-HHf0aFKmWqMUIQIXBJDzFiyxInUV7ulgw,4820
158
+ khoj/interface/compiled/_next/static/chunks/app/share/chat/page-c5d2b9076e5390b2.js,sha256=xDNyoPrYzQYPZ8pqXJmZYtamly2_Fu6dUomza3T66UA,4820
159
159
  khoj/interface/compiled/_next/static/chunks/pages/_app-f870474a17b7f2fd.js,sha256=eqdFPAN_XFyMUzZ9qwFk-_rhMWZrU7lgNVt1foVUANo,286
160
160
  khoj/interface/compiled/_next/static/chunks/pages/_error-c66a4e8afc46f17b.js,sha256=vjERjtMAbVk-19LyPf1Jc-H6TMcrSznSz6brzNqbqf8,253
161
161
  khoj/interface/compiled/_next/static/css/1538cedb321e3a97.css,sha256=-qLZhPN-wA3kcrVODVTaG1sN0pmuzRCqNH12gs5_qYc,2569
162
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
164
- khoj/interface/compiled/_next/static/css/3e1f1fdd70775091.css,sha256=HT70_NVRMtV5IPc5k9JBGrVirjDZ3tyap7mEPXjQlGM,1634
163
+ khoj/interface/compiled/_next/static/css/4cae6c0e5c72fb2d.css,sha256=3CjTMmtMrm_MYt1ywtUh2MHEjSLSl356SQLl4hdBuYw,534
165
164
  khoj/interface/compiled/_next/static/css/553f9cdcc7a2bcd6.css,sha256=JpjOOwmqP9Hba-w_8Lx9jWW0ZD0kD3wR0HvdPGDyUPo,2134
166
165
  khoj/interface/compiled/_next/static/css/592ca99f5122e75a.css,sha256=BSqRkeb9vBh0phx5GkAlZirTFZintbyggGaUkuOBfaU,914
167
166
  khoj/interface/compiled/_next/static/css/5a400c87d295e68a.css,sha256=ojDUPJ9fJpEo9DzTAsEa-k1cg7Bef-nSTfpszMiqknQ,17711
168
167
  khoj/interface/compiled/_next/static/css/7a2b0a2d7c3d86eb.css,sha256=dYeXulJ9Gx-Urisp7N8aOkinGTOZP7M3ff6a8t-k_xE,1882260
169
168
  khoj/interface/compiled/_next/static/css/c808691c459e3887.css,sha256=Xj1SLFCKntSIqZSDCMg2MnzZowIiKFtqPT3KxrT4i94,1857
169
+ khoj/interface/compiled/_next/static/css/dfb67a9287720a2b.css,sha256=Zj4T_zLIxVIP-QmLAUa5zLMvYENH7y8u3IMyz9xYDcU,8949
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=sIShKPEz2JH_6ZmElGTstnj-2DzdNNADf3oibyzSZtk,12830
243
- khoj/interface/compiled/agents/index.txt,sha256=ASCMqtCTQIS35p5xDmISaVCSan1ZdW7k4UiDQKaHrkA,6126
242
+ khoj/interface/compiled/agents/index.html,sha256=tc_VnHUopyFbPAZfqSvZV4maTB8qkdhNtJOUh8Y096k,12830
243
+ khoj/interface/compiled/agents/index.txt,sha256=unJngaFX1jPE9y4uxw1hkO1NGlSEQ9e_jlqXa2SZseU,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=e5JyQCByDcf4AuiPwIwtF6x4PUuGipAJA6STAq7D7Lk,30624
255
- khoj/interface/compiled/automations/index.txt,sha256=4cKtAWz1RZm_vN398Y-peYrmAbm2MQ-MfkIhLN27okw,5494
256
- khoj/interface/compiled/chat/index.html,sha256=gYvh8AZfAAK5u3Ih6V9Zmh-ilpGl6TEuvkZ9iCpGGYY,13724
257
- khoj/interface/compiled/chat/index.txt,sha256=vWDVook4aYva5UBM0gYG6vXZbyVP06Idtq_ex-7tAsw,6486
258
- khoj/interface/compiled/factchecker/index.html,sha256=iUClrYO3xsbfbNNYqpffSHsoMGxF9w63-shYTzE2NtY,29973
259
- khoj/interface/compiled/factchecker/index.txt,sha256=XTyzu-5S-stYIpJQpR0NN8nKcAYPeQNClb9yNn5jsbY,5788
260
- khoj/interface/compiled/search/index.html,sha256=_WGVW2hEeuG5RDjEEdNGKec9C7Xm2Ol2CNvY7o73crw,30161
261
- khoj/interface/compiled/search/index.txt,sha256=gi9Lrw8_o4Yzqa4OnIcESxqGz0Jdo3_gYjdwdNxcvKM,5256
262
- khoj/interface/compiled/settings/index.html,sha256=9Rs3eBoFEiBj7DmKEcO36rsrWTOcOo3oGG3sIbudF8Y,12831
263
- khoj/interface/compiled/settings/index.txt,sha256=L2lTUusC_3xbKoLo-tBChDZQEVBmBinyJ0BAZ5X8Uoc,6078
264
- khoj/interface/compiled/share/chat/index.html,sha256=DuWn6-5vhPzMjEa6FmV88HWLSeC5ouSsLAQG3xfNYGQ,15049
265
- khoj/interface/compiled/share/chat/index.txt,sha256=cuYgIsQsX4oEHoQcyCCpXtMWDvRQzap2UKZxRpVVwIc,7297
254
+ khoj/interface/compiled/automations/index.html,sha256=NP6OX2XYdF-d6brM-PBA3WxiL4er5eb2hCKiIioIcEE,30932
255
+ khoj/interface/compiled/automations/index.txt,sha256=pyJAom4GDGfdRxQhi_pa6dLR8V_nZlIciqyk6jjhq-M,5627
256
+ khoj/interface/compiled/chat/index.html,sha256=12Fg0LZOS9Ti11psHcnDjBU_mcyDLuDjHiU6d8mCFss,13416
257
+ khoj/interface/compiled/chat/index.txt,sha256=IDjg7tfRkQ9-m3Ah3Z_oeCwrV-IuFVqJB7Th-j1cncg,6353
258
+ khoj/interface/compiled/factchecker/index.html,sha256=XkJeskI0kLMFx7lsgu8lPExEKa2ti_M3jecUl27Uv3s,29973
259
+ khoj/interface/compiled/factchecker/index.txt,sha256=mf3QkRGpma-pyWox4_i9xojUo3a4gbhrY2bMp6ly910,5788
260
+ khoj/interface/compiled/search/index.html,sha256=yd2D8n23Nv2Lx66DTo4kpzysj3iMxaEoPlMdTgHJ1XA,30161
261
+ khoj/interface/compiled/search/index.txt,sha256=oYTJZ37DWzvZcXGiidlyOfX_U3ipPmAJY1niV_VH_N4,5256
262
+ khoj/interface/compiled/settings/index.html,sha256=Yhvive_4gS68eJReNb05FeSca45HyjpBHa1-xhv3E6Q,12831
263
+ khoj/interface/compiled/settings/index.txt,sha256=GD8qgHgRAyE8AJ5alY_67ZXqQGB-TBODK0B1XTMXcgQ,6078
264
+ khoj/interface/compiled/share/chat/index.html,sha256=QZu4d-T6GgY9DBhQLFOV30FNpoVMY77LJ1ySS4RxrUU,15049
265
+ khoj/interface/compiled/share/chat/index.txt,sha256=Lo_zQrkCC4qkwv3rf9wpQJ6K_AwPYos_LKcdGd11bSM,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
@@ -293,7 +293,7 @@ khoj/migrations/migrate_processor_config_openai.py,sha256=FfeUU2JPQMtlr1iYoc4Cer
293
293
  khoj/migrations/migrate_server_pg.py,sha256=b6ULFFBEF__W10YpgF28deKoOzGqDbdvyL4nBdj3eNU,5015
294
294
  khoj/migrations/migrate_version.py,sha256=6CTsLuxiLnFVF8A7CjsIz3PcnJd8fAOZeIx6tTu6Vgg,569
295
295
  khoj/processor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
296
- khoj/processor/embeddings.py,sha256=MUUNvv_2zDmm5auOhEyU_uAcl6wvdrUsTvpT7UbSMQ8,5262
296
+ khoj/processor/embeddings.py,sha256=qL2Vx5SxDJXJ7TZJNl6s4xclq-zJiVMLYbdnvod5_Cw,5427
297
297
  khoj/processor/content/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
298
298
  khoj/processor/content/text_to_entries.py,sha256=Oa4Ny8c5S1_IGCmjCtUI45hX1fPTRwxXhHg1lHFqHy8,14537
299
299
  khoj/processor/content/docx/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -313,14 +313,14 @@ khoj/processor/content/pdf/pdf_to_entries.py,sha256=OE90osFchohih3RYvDmZepbtzWoG
313
313
  khoj/processor/content/plaintext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
314
314
  khoj/processor/content/plaintext/plaintext_to_entries.py,sha256=97i7Cm0DTY7jW4iqKOT_oVc2ooa_XhQ8iImsljp1Kek,4994
315
315
  khoj/processor/conversation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
316
- khoj/processor/conversation/prompts.py,sha256=Ow8IFApuLABigj-S0SpLwMgBPvgMeF5JeBOQBCpvYIU,35865
317
- khoj/processor/conversation/utils.py,sha256=LQhMs77397b7lhJ-s6y7zuer45WShSWV7WccsIuKf9o,12220
316
+ khoj/processor/conversation/prompts.py,sha256=w6mCZ-_j1CC61dMuZU-GipTTERuJh6KQa1snYn2pkWo,36268
317
+ khoj/processor/conversation/utils.py,sha256=16Y8DUHcw7SQa65qnA1jFzJjoKyuTek9-5BGsnt1Qhk,11963
318
318
  khoj/processor/conversation/anthropic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
319
319
  khoj/processor/conversation/anthropic/anthropic_chat.py,sha256=2O44WySb7xZqXxqA0M12gT9YsOLdBn4mz-mtJKj6fgY,8143
320
320
  khoj/processor/conversation/anthropic/utils.py,sha256=GHCz-xll_DBipqSc5e5qdVhLQiKX5Kso3KQRf1BXbVA,3456
321
321
  khoj/processor/conversation/google/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
322
- khoj/processor/conversation/google/gemini_chat.py,sha256=dT7R_IXFJ5NuEXcKu_1cn3Fnq0l8yG8wjmrKkH4dmZg,8179
323
- khoj/processor/conversation/google/utils.py,sha256=yyi5w4Kcf0hVD8WIXbzoaAMHTVcBUDKLx_O-WWltwOY,8239
322
+ khoj/processor/conversation/google/gemini_chat.py,sha256=WMXsufumpQBqq2onpJ_Wc6CFrJd0YsvYajiYpstM3Qo,7823
323
+ khoj/processor/conversation/google/utils.py,sha256=jdeI4dscid9I59YhTvDv91uCmD0mMgjL27tO20IvLB0,8766
324
324
  khoj/processor/conversation/offline/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
325
325
  khoj/processor/conversation/offline/chat_model.py,sha256=aqAhf2N-Kw3klTg3StrKWev6FWmFCH2BN9Jqq2Nm_FU,9740
326
326
  khoj/processor/conversation/offline/utils.py,sha256=51McImxl6u1qgRYvMt7uzsgLGSLq5SMFy74ymlNjIcc,3033
@@ -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=qTXRV40GTqvk7IIVNxPBAMi56C47IqiXdp013LWLkFg,27586
339
339
  khoj/routers/api_agents.py,sha256=ntG5CDbYDxTrxCh5T_dPhh-PQhG-mtmgg_Qa0cMXAW4,8808
340
- khoj/routers/api_chat.py,sha256=LuSKqRchjJp54jU3y247233J3gctHn0d2trMEuxe_dg,59962
340
+ khoj/routers/api_chat.py,sha256=vULnZcKAiq31dY02doR_wVotQRyA1Id_UhhVEWC8EoM,60560
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=TgpEr3VR1lDupPdFsgb1hcJF_xWzAcNwMOUzBNh-7XQ,67918
346
+ khoj/routers/helpers.py,sha256=yWjuxFIpawWVVlf0veNmNyiEqA77CjnaK9fzq9peNds,68098
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
@@ -361,15 +361,15 @@ khoj/utils/cli.py,sha256=AgO3rO-bN5oI71sIReGxrJXPeXEH80fnCIsyVlZYgjI,3695
361
361
  khoj/utils/config.py,sha256=aiOkH0je8A30DAGYTHMRePrgJonFv_i07_7CdhhhcdA,1805
362
362
  khoj/utils/constants.py,sha256=UwE7U9bNsfeqTb0K2lcdXdAscM4-7uuVoR3KbZS03Pg,1216
363
363
  khoj/utils/fs_syncer.py,sha256=bQgcbYYC3x11RyCqI_kUzzqGpcKTodGgdT-3OTQsXqw,9977
364
- khoj/utils/helpers.py,sha256=sqaJXWB_rtE-bcdbh1Q2xSk9UyiAtFr6yXP-4fwOXY0,16054
364
+ khoj/utils/helpers.py,sha256=4DR3kWn5wrgrZRPAWNg1GB4JJdAvuqwJcIyzPwphes0,15976
365
365
  khoj/utils/initialization.py,sha256=wlGtgThdRx77trd8H83Cp0cxAtkel0789eyFoF7iToA,10315
366
366
  khoj/utils/jsonl.py,sha256=0Ac_COqr8sLCXntzZtquxuCEVRM2c3yKeDRGhgOBRpQ,1192
367
367
  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.dev19.dist-info/METADATA,sha256=z15t0IRtHz3mfLkiiq3hD9JkdL1YJ5nRqo_8gErXL9I,6496
372
- khoj-1.24.2.dev19.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
373
- khoj-1.24.2.dev19.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
374
- khoj-1.24.2.dev19.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
375
- khoj-1.24.2.dev19.dist-info/RECORD,,
371
+ khoj-1.24.2.dev34.dist-info/METADATA,sha256=bahFOS6Z409UfdGxKpf3jbr23Fd-y_nhhhFG7md01ZM,6496
372
+ khoj-1.24.2.dev34.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
373
+ khoj-1.24.2.dev34.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
374
+ khoj-1.24.2.dev34.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
375
+ khoj-1.24.2.dev34.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9718],{1813:function(e,t,s){Promise.resolve().then(s.bind(s,45050))},45050:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return eh}});var a=s(57437),n=s(15283),r=s.n(n),l=s(29039),i=s(2265),o=s(79306),c=s(50495),d=s(58284),u=s(5989),h=s(12275),x=s(18444),m=s(31784),f=s(20319),p=s(98750),g=s(55362),j=s(57691),v=s(68029),b=s(68131),N=s(83632),w=s(9950),y=s(35418),_=s(84120),C=s(15780),k=s(26058),O=s(64945),S=s(59772),z=s(36013),T=s(90837),I=s(7951),P=s(66820),M=s(58485),R=s(48861),V=s(89417),A=s(58575),E=s(47412),Z=s(69591),q=s(32653),B=s(39343),F=s(83102),W=s(31014),L=s(93146),D=s(46294),J=s(13304),X=s(40882);let Y=X.fC,G=X.wy,K=X.Fw;var U=s(37440),Q=s(42491),$=s(9557),H=s(6780),ee=s(70571),et=s(19573),es=s(18642),ea=s(19666);async function en(e,t){let s="/login?next=/agents?agent=".concat(e);if(!t){window.location.href=s;return}let a=await fetch("/api/chat/sessions?agent_slug=".concat(e),{method:"POST"}),n=await a.json();200==a.status?window.location.href="/chat?conversationId=".concat(n.conversation_id):403==a.status||401==a.status?window.location.href=s:alert("Failed to start chat session")}function er(e){var t;let s=(null===(t=e.text)||void 0===t?void 0:t.replace(/^\w/,e=>e.toUpperCase()))||"";return(0,a.jsx)(ea.pn,{children:(0,a.jsxs)(ea.u,{children:[(0,a.jsx)(ea._v,{asChild:!0,children:(0,a.jsx)("div",{className:"text-sm",children:e.hoverText||s})}),(0,a.jsx)(ea.aJ,{className:"cursor-text",children:(0,a.jsxs)("div",{className:"flex items-center space-x-2 rounded-full border-accent-500 border p-1.5",children:[(0,a.jsx)("div",{className:"text-muted-foreground",children:e.icon}),s&&s.length>0&&(0,a.jsx)("div",{className:"text-muted-foreground text-sm",children:s})]})})]})})}let el=()=>window.fetch("/api/agents").then(e=>e.json()).catch(e=>console.log(e)),ei=e=>fetch(e).then(e=>e.json());function eo(e){let[t,s]=(0,i.useState)(e.agentSlug===e.data.slug),[n,l]=(0,i.useState)(!1),[o,v]=(0,i.useState)(null),b=(0,a.jsx)(d.H,{}),N="Private agents are only visible to you.";"public"===e.data.privacy_level?(b=(0,a.jsx)(u.T,{}),N="Public agents are visible to everyone."):"protected"===e.data.privacy_level&&(b=(0,a.jsx)(h.M,{}),N="Protected agents are visible to anyone with a direct link.");let w=e.userProfile,y=(0,B.cI)({resolver:(0,W.F)(ec),defaultValues:{name:e.data.name,persona:e.data.persona,color:e.data.color,icon:e.data.icon,privacy_level:e.data.privacy_level,chat_model:e.data.chat_model,files:e.data.files,input_tools:e.data.input_tools,output_modes:e.data.output_modes}});t&&window.history.pushState({},"Khoj AI - Agent ".concat(e.data.slug),"/agents?agent=".concat(e.data.slug));let _=t=>{fetch("/api/agents",{method:e.editCard?"PATCH":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(t=>{200===t.status?(y.reset(),s(!1),v(null),e.setAgentChangeTriggered(!0)):t.json().then(e=>{console.error(e),y.clearErrors(),e.error&&v(e.error)})}).catch(e=>{console.error("Error:",e),v(e),y.clearErrors()})},C=(0,A.oz)(e.data.color);function k(){return(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-1",children:[e.editCard&&(0,a.jsx)(er,{icon:b,text:e.data.privacy_level,hoverText:N}),e.data.files&&e.data.files.length>0&&(0,a.jsx)(er,{icon:(0,a.jsx)(x.f,{}),text:"knowledge",hoverText:"The agent has a custom knowledge base it can use to give you answers."}),(0,a.jsx)(er,{icon:(0,a.jsx)(m.a,{}),text:e.data.chat_model,hoverText:"The agent uses the ".concat(e.data.chat_model," model to chat with you.")}),e.data.output_modes.map(t=>(0,a.jsx)(er,{icon:(0,V.vH)(t),hoverText:"".concat(t,": ").concat(e.outputModeOptions[t])},t)),e.data.input_tools.map(t=>(0,a.jsx)(er,{icon:(0,V.vH)(t),hoverText:"".concat(t,": ").concat(e.inputToolOptions[t])},t))]})}return(0,a.jsxs)(z.Zb,{className:"shadow-sm bg-gradient-to-b from-white 20% to-".concat(e.data.color?e.data.color:"gray","-100/50 dark:from-[hsl(var(--background))] dark:to-").concat(e.data.color?e.data.color:"gray","-950/50 rounded-xl hover:shadow-md"),children:[n&&(0,a.jsx)(P.Z,{loginRedirectMessage:"Sign in to start chatting with ".concat(e.data.name),onOpenChange:l}),(0,a.jsx)(z.Ol,{children:(0,a.jsx)(z.ll,{children:e.isMobileWidth?(0,a.jsxs)(I.dy,{open:t,onOpenChange:e=>{s(e),window.history.pushState({},"Khoj AI - Agents","/agents")},children:[(0,a.jsx)(I.Qz,{children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,V.TI)(e.data.icon,e.data.color),e.data.name]})}),(0,a.jsxs)("div",{className:"flex float-right",children:[e.editCard&&(0,a.jsx)("div",{className:"float-right",children:(0,a.jsxs)(et.J2,{children:[(0,a.jsx)(et.xo,{children:(0,a.jsx)(c.z,{className:"bg-[hsl(var(--background))] w-14 h-14 rounded-xl border dark:border-neutral-700 shadow-sm hover:bg-stone-100 dark:hover:bg-neutral-900",children:(0,a.jsx)(f.F,{className:"w-6 h-6 ".concat((0,A.oz)(e.data.color))})})}),(0,a.jsxs)(et.yk,{className:"w-fit grid p-1",side:"bottom",align:"end",children:[(0,a.jsxs)(c.z,{className:"items-center justify-start",variant:"ghost",onClick:()=>s(!0),children:[(0,a.jsx)(p.z,{className:"w-4 h-4 mr-2"}),"Edit"]}),e.editCard&&"private"!==e.data.privacy_level&&(0,a.jsx)(es.Z,{buttonTitle:"Share",title:"Share Agent",description:"Share a link to this agent with others. They'll be able to chat with it, and ask questions to all of its knowledge base.",buttonVariant:"ghost",includeIcon:!0,url:"".concat(window.location.origin,"/agents?agent=").concat(e.data.slug)}),e.data.creator===(null==w?void 0:w.username)&&(0,a.jsxs)(c.z,{className:"items-center justify-start",variant:"destructive",onClick:()=>{fetch("/api/agents/".concat(e.data.slug),{method:"DELETE"}).then(()=>{e.setAgentChangeTriggered(!0)})},children:[(0,a.jsx)(g.r,{className:"w-4 h-4 mr-2"}),"Delete"]})]})]})}),(0,a.jsx)("div",{className:"float-right",children:e.userProfile?(0,a.jsx)(c.z,{className:"bg-[hsl(var(--background))] w-14 h-14 rounded-xl border dark:border-neutral-700 shadow-sm hover:bg-stone-100 dark:hover:bg-neutral-900",onClick:()=>en(e.data.slug,w),children:(0,a.jsx)(j.g,{className:"w-6 h-6 ".concat((0,A.oz)(e.data.color))})}):(0,a.jsx)(c.z,{className:"bg-[hsl(var(--background))] w-14 h-14 rounded-xl border dark:border-neutral-700 shadow-sm hover:bg-stone-100 dark:hover:bg-neutral-900",onClick:()=>l(!0),children:(0,a.jsx)(j.g,{className:"w-6 h-6 ".concat((0,A.oz)(e.data.color))})})})]}),e.editCard?(0,a.jsx)(I.sc,{className:"whitespace-pre-line p-2",children:(0,a.jsx)(ed,{form:y,onSubmit:_,create:!1,errors:o,filesOptions:e.filesOptions,modelOptions:e.modelOptions,slug:e.data.slug,inputToolOptions:e.inputToolOptions,outputModeOptions:e.outputModeOptions,isSubscribed:e.isSubscribed})}):(0,a.jsxs)(I.sc,{className:"whitespace-pre-line p-2",children:[(0,a.jsxs)(I.OX,{children:[(0,a.jsx)(I.iI,{children:e.data.name}),(0,a.jsx)(I.u6,{children:"Persona"})]}),e.data.persona,(0,a.jsx)("div",{className:"flex flex-wrap items-center gap-1",children:k()}),(0,a.jsx)(I.ze,{children:(0,a.jsx)(I.uh,{children:"Done"})})]})]}):(0,a.jsxs)(T.Vq,{open:t,onOpenChange:()=>{s(!t),window.history.pushState({},"Khoj AI - Agents","/agents")},children:[(0,a.jsx)(T.hg,{children:(0,a.jsxs)("div",{className:"flex items-center relative top-2",children:[(0,V.TI)(e.data.icon,e.data.color),e.data.name]})}),(0,a.jsxs)("div",{className:"flex float-right",children:[e.editCard&&(0,a.jsx)("div",{className:"float-right",children:(0,a.jsxs)(et.J2,{children:[(0,a.jsx)(et.xo,{children:(0,a.jsx)(c.z,{className:"bg-[hsl(var(--background))] w-14 h-14 rounded-xl border dark:border-neutral-700 shadow-sm hover:bg-stone-100 dark:hover:bg-neutral-900",children:(0,a.jsx)(f.F,{className:"w-6 h-6 ".concat((0,A.oz)(e.data.color))})})}),(0,a.jsxs)(et.yk,{className:"w-fit grid p-1",side:"bottom",align:"end",children:[(0,a.jsxs)(c.z,{className:"items-center justify-start",variant:"ghost",onClick:()=>s(!0),children:[(0,a.jsx)(p.z,{className:"w-4 h-4 mr-2"}),"Edit"]}),e.editCard&&"private"!==e.data.privacy_level&&(0,a.jsx)(es.Z,{buttonTitle:"Share",title:"Share Agent",description:"Share a link to this agent with others. They'll be able to chat with it, and ask questions to all of its knowledge base.",buttonVariant:"ghost",includeIcon:!0,url:"".concat(window.location.origin,"/agents?agent=").concat(e.data.slug)}),e.data.creator===(null==w?void 0:w.username)&&(0,a.jsxs)(c.z,{className:"items-center justify-start",variant:"destructive",onClick:()=>{fetch("/api/agents/".concat(e.data.slug),{method:"DELETE"}).then(()=>{e.setAgentChangeTriggered(!0)})},children:[(0,a.jsx)(g.r,{className:"w-4 h-4 mr-2"}),"Delete"]})]})]})}),(0,a.jsx)("div",{className:"float-right",children:e.userProfile?(0,a.jsx)(c.z,{className:"bg-[hsl(var(--background))] w-14 h-14 rounded-xl border dark:border-neutral-700 shadow-sm hover:bg-stone-100 dark:hover:bg-neutral-900",onClick:()=>en(e.data.slug,w),children:(0,a.jsx)(j.g,{className:"w-6 h-6 ".concat((0,A.oz)(e.data.color))})}):(0,a.jsx)(c.z,{className:"bg-[hsl(var(--background))] w-14 h-14 rounded-xl border dark:border-neutral-700 shadow-sm hover:bg-stone-100 dark:hover:bg-neutral-900",onClick:()=>l(!0),children:(0,a.jsx)(j.g,{className:"w-6 h-6 ".concat((0,A.oz)(e.data.color))})})})]}),e.editCard?(0,a.jsxs)(T.cZ,{className:"lg:max-w-screen-lg overflow-y-scroll max-h-screen",children:[(0,a.jsxs)(J.$N,{children:["Edit ",(0,a.jsx)("b",{children:e.data.name})]}),(0,a.jsx)(ed,{form:y,onSubmit:_,create:!1,errors:o,filesOptions:e.filesOptions,modelOptions:e.modelOptions,slug:e.data.slug,inputToolOptions:e.inputToolOptions,isSubscribed:e.isSubscribed,outputModeOptions:e.outputModeOptions})]}):(0,a.jsxs)(T.cZ,{className:"whitespace-pre-line max-h-[80vh]",children:[(0,a.jsx)(T.fK,{children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,V.TI)(e.data.icon,e.data.color),(0,a.jsx)("p",{className:"font-bold text-lg",children:e.data.name})]})}),(0,a.jsx)("div",{className:"max-h-[60vh] overflow-y-scroll text-neutral-500 dark:text-white",children:e.data.persona}),(0,a.jsx)("div",{className:"flex flex-wrap items-center gap-1",children:k()}),(0,a.jsx)(T.cN,{children:(0,a.jsxs)(c.z,{className:"pt-6 pb-6 ".concat(C," bg-white dark:bg-[hsl(var(--background))] text-neutral-500 dark:text-white border-2 border-stone-100 shadow-sm rounded-xl hover:bg-stone-100 dark:hover:bg-neutral-900 dark:border-neutral-700"),onClick:()=>{en(e.data.slug,w),s(!1)},children:[(0,a.jsx)(j.g,{className:"w-6 h-6 m-2 ".concat((0,A.oz)(e.data.color))}),"Start Chatting"]})})]})]})})}),(0,a.jsx)(z.aY,{children:(0,a.jsx)("div",{className:r().agentPersonality,children:(0,a.jsx)("button",{className:"".concat(r().infoButton," text-neutral-500 dark:text-white"),onClick:()=>s(!0),children:(0,a.jsx)("p",{children:e.data.persona})})})}),(0,a.jsx)(z.eW,{children:(0,a.jsx)("div",{className:"flex flex-wrap items-center gap-1",children:k()})})]})}let ec=S.z.object({name:S.z.string({required_error:"Name is required"}).min(1,"Name is required"),persona:S.z.string({required_error:"Personality is required"}).min(1,"Personality is required"),color:S.z.string({required_error:"Color is required"}).min(1,"Color is required"),icon:S.z.string({required_error:"Icon is required"}).min(1,"Icon is required"),privacy_level:S.z.string({required_error:"Privacy level is required"}).min(1,"Privacy level is required"),chat_model:S.z.string({required_error:"Chat model is required"}).min(1,"Chat model is required"),files:S.z.array(S.z.string()).default([]).optional(),input_tools:S.z.array(S.z.string()).default([]).optional(),output_modes:S.z.array(S.z.string()).default([]).optional()});function ed(e){let[t,s]=(0,i.useState)(!1),n=(0,V.BI)(),r=A.xF,l=(0,A.oz)(e.form.getValues("color")),[o,d]=(0,i.useState)(!1),[u,h]=(0,i.useState)(null),[x,m]=(0,i.useState)(null),[f,p]=(0,i.useState)(!1),[g,j]=(0,i.useState)(0),[O,S]=(0,i.useState)([]),[z,T]=(0,i.useState)([]),[I,P]=(0,i.useState)(!0),M=(0,i.useRef)(null);function R(e){e.preventDefault(),d(!0)}function Z(e){e.preventDefault(),d(!1)}function B(e){e.preventDefault(),d(!1),e.dataTransfer.files&&W(e.dataTransfer.files)}function W(e){(0,$.ko)(e,h,p,m,S)}function J(){M&&M.current&&M.current.click()}function X(e){e.target.files&&W(e.target.files)}(0,i.useEffect)(()=>{if(f||j(0),f){let e=setInterval(()=>{j(e=>{let t=e+(Math.floor(5*Math.random())+1);return t<100?t:100})},800);return()=>clearInterval(e)}},[f]),(0,i.useEffect)(()=>{let t=[...e.form.getValues("files")||[],...e.filesOptions||[]];T(e=>[...e,...t])},[]),(0,i.useEffect)(()=>{O.length>0&&(ea(O),T(e=>[...e,...O]))},[O]),(0,i.useEffect)(()=>{e.errors&&s(!1)},[e.errors]);let ea=t=>{for(let s of t){let t=e.form.getValues("files")||[],a=t.includes(s)?t.filter(e=>e!==s):[...t,s];e.form.setValue("files",a)}},en=["public","private","protected"];return!e.isSubscribed&&I?(0,a.jsx)(H.aR,{open:!0,children:(0,a.jsxs)(H._T,{children:[(0,a.jsx)(H.fY,{children:(0,a.jsx)(H.f$,{children:"Upgrade to Futurist"})}),(0,a.jsxs)(H.yT,{children:["You need to be a Futurist subscriber to create more agents."," ",(0,a.jsx)("a",{href:"/settings",children:"Upgrade now"}),"."]}),(0,a.jsxs)(H.xo,{children:[(0,a.jsx)(H.le,{onClick:()=>{P(!1)},children:"Cancel"}),(0,a.jsx)(H.OL,{onClick:()=>{window.location.href="/settings"},children:"Continue"})]})]})}):(0,a.jsx)(q.l0,{...e.form,children:(0,a.jsxs)("form",{onSubmit:e.form.handleSubmit(t=>{e.onSubmit(t),s(!0)}),className:"space-y-6",children:[(0,a.jsx)(q.Wi,{control:e.form.control,name:"name",render:e=>{let{field:t}=e;return(0,a.jsxs)(q.xJ,{className:"space-y-0 grid gap-2",children:[(0,a.jsx)(q.lX,{children:"Name"}),(0,a.jsx)(q.pf,{children:"What should this agent be called? Pick something descriptive & memorable."}),(0,a.jsx)(q.NI,{children:(0,a.jsx)(F.I,{placeholder:"Biologist",...t})}),(0,a.jsx)(q.zG,{})]})}}),(0,a.jsx)(q.Wi,{control:e.form.control,name:"persona",render:e=>{let{field:t}=e;return(0,a.jsxs)(q.xJ,{className:"space-y-1 grid gap-2",children:[(0,a.jsx)(q.lX,{children:"Personality"}),(0,a.jsx)(q.pf,{children:"What is the personality, thought process, or tuning of this agent? Get creative; this is how you can influence the agent constitution."}),(0,a.jsx)(q.NI,{children:(0,a.jsx)(L.g,{placeholder:"You are an excellent biologist, at the top of your field in marine biology.",...t})}),(0,a.jsx)(q.zG,{})]})}}),(0,a.jsx)(q.Wi,{control:e.form.control,name:"chat_model",render:t=>{let{field:s}=t;return(0,a.jsxs)(q.xJ,{className:"space-y-1 grid gap-2",children:[(0,a.jsx)(q.lX,{children:"Chat Model"}),(0,a.jsx)(q.pf,{children:"Which large language model should this agent use?"}),(0,a.jsxs)(D.Ph,{onValueChange:s.onChange,defaultValue:s.value,children:[(0,a.jsx)(q.NI,{children:(0,a.jsx)(D.i4,{className:"text-left",children:(0,a.jsx)(D.ki,{})})}),(0,a.jsx)(D.Bw,{className:"items-start space-y-1 inline-flex flex-col",children:e.modelOptions.map(e=>(0,a.jsx)(D.Ql,{value:e.name,children:(0,a.jsx)("div",{className:"flex items-center space-x-2",children:e.name})},e.id))})]}),(0,a.jsx)(q.zG,{})]})}}),(0,a.jsx)(q.Wi,{control:e.form.control,name:"privacy_level",render:e=>{let{field:t}=e;return(0,a.jsxs)(q.xJ,{className:"space-y-1 grid gap-2",children:[(0,a.jsx)(q.lX,{children:(0,a.jsx)("div",{children:"Privacy Level"})}),(0,a.jsx)(q.pf,{children:(0,a.jsxs)(et.J2,{children:[(0,a.jsx)(et.xo,{asChild:!0,children:(0,a.jsx)(c.z,{variant:"ghost",className:"p-0 h-fit",children:(0,a.jsxs)("span",{className:"items-center flex gap-1 text-sm",children:[(0,a.jsx)(v.k,{className:"inline"}),(0,a.jsx)("p",{className:"text-sm",children:"Learn more"})]})})}),(0,a.jsxs)(et.yk,{children:[(0,a.jsx)("b",{children:"Private"}),": only visible to you.",(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:"Protected"}),": visible to anyone with a link.",(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:"Public"}),": visible to everyone.",(0,a.jsx)("br",{}),"All public agents will be reviewed by us before they are launched."]})]})}),(0,a.jsxs)(D.Ph,{onValueChange:t.onChange,defaultValue:t.value,children:[(0,a.jsx)(q.NI,{children:(0,a.jsx)(D.i4,{className:"w-[200px]",children:(0,a.jsx)(D.ki,{placeholder:"private"})})}),(0,a.jsx)(D.Bw,{className:"items-center space-y-1 inline-flex flex-col",children:en.map(e=>(0,a.jsx)(D.Ql,{value:e,children:(0,a.jsx)("div",{className:"flex items-center space-x-2",children:e})},e))})]}),(0,a.jsx)(q.zG,{})]})}}),(0,a.jsxs)("div",{className:"grid",children:[(0,a.jsx)(q.lX,{className:"mb-2",children:"Look & Feel"}),(0,a.jsxs)("div",{className:"flex gap-1 justify-left",children:[(0,a.jsx)(q.Wi,{control:e.form.control,name:"color",render:e=>{let{field:t}=e;return(0,a.jsxs)(q.xJ,{className:"space-y-3",children:[(0,a.jsxs)(D.Ph,{onValueChange:t.onChange,defaultValue:t.value,children:[(0,a.jsx)(q.NI,{children:(0,a.jsx)(D.i4,{className:"w-[200px]",children:(0,a.jsx)(D.ki,{placeholder:"Color"})})}),(0,a.jsx)(D.Bw,{className:"items-center space-y-1 inline-flex flex-col",children:r.map(e=>(0,a.jsx)(D.Ql,{value:e,children:(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(b.C,{className:"w-6 h-6 mr-2 ".concat((0,A.oz)(e)),weight:"fill"}),e]})},e))})]}),(0,a.jsx)(q.zG,{})]})}}),(0,a.jsx)(q.Wi,{control:e.form.control,name:"icon",render:t=>{let{field:s}=t;return(0,a.jsxs)(q.xJ,{className:"space-y-3",children:[(0,a.jsxs)(D.Ph,{onValueChange:s.onChange,defaultValue:s.value,children:[(0,a.jsx)(q.NI,{children:(0,a.jsx)(D.i4,{className:"w-[200px]",children:(0,a.jsx)(D.ki,{placeholder:"Icon"})})}),(0,a.jsx)(D.Bw,{className:"items-center space-y-1 inline-flex flex-col",children:n.map(t=>(0,a.jsx)(D.Ql,{value:t,children:(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,V.TI)(t,e.form.getValues("color"),"w-6","h-6"),t]})},t))})]}),(0,a.jsx)(q.zG,{})]})}})]})]}),(0,a.jsxs)(q.xJ,{className:"flex flex-col",children:[(0,a.jsx)(q.lX,{className:"text-md",children:"Advanced Settings"}),(0,a.jsx)(q.pf,{children:"These are optional settings that you can use to customize your agent."})]}),(0,a.jsx)(q.Wi,{control:e.form.control,name:"files",render:t=>{let{field:s}=t;return(0,a.jsxs)(q.xJ,{className:"flex flex-col gap-2",children:[(0,a.jsx)(q.lX,{children:"Knowledge Base"}),(0,a.jsxs)(q.pf,{children:["Which information should be part of its digital brain?"," ",(0,a.jsx)("a",{href:"/settings",children:"Manage data"}),"."]}),(0,a.jsxs)(Y,{children:[(0,a.jsxs)(G,{className:"flex items-center justify-between text-sm gap-2",children:[(0,a.jsx)(N.K,{}),s.value&&s.value.length>0?"".concat(s.value.length," files selected"):"Select files"]}),(0,a.jsx)(K,{children:(0,a.jsxs)(Q.mY,{children:[(0,a.jsx)(H.aR,{open:null!==u||null!=x,children:(0,a.jsxs)(H._T,{children:[(0,a.jsx)(H.fY,{children:(0,a.jsx)(H.f$,{children:"Alert"})}),(0,a.jsx)(H.yT,{children:u||x}),(0,a.jsx)(H.OL,{className:"bg-slate-400 hover:bg-slate-500",onClick:()=>{h(null),m(null),p(!1)},children:"Close"})]})}),(0,a.jsxs)("div",{className:"flex flex-col h-full cursor-pointer",onDragOver:R,onDragLeave:Z,onDrop:B,onClick:J,children:[(0,a.jsx)("input",{type:"file",multiple:!0,ref:M,style:{display:"none"},onChange:X}),(0,a.jsx)("div",{className:"flex-none p-4",children:f&&(0,a.jsx)(ee.E,{indicatorColor:"bg-slate-500",className:"w-full h-2 rounded-full",value:g})}),(0,a.jsx)("div",{className:"flex-none p-4 bg-secondary border-b ".concat(o?"animate-pulse":""," rounded-lg"),children:(0,a.jsx)("div",{className:"flex items-center justify-center w-full h-16 border-2 border-dashed border-gray-300 rounded-lg",children:o?(0,a.jsxs)("div",{className:"flex items-center justify-center w-full h-full",children:[(0,a.jsx)(w.u,{className:"h-6 w-6 mr-2"}),(0,a.jsx)("span",{children:"Drop files to upload"})]}):(0,a.jsxs)("div",{className:"flex items-center justify-center w-full h-full",children:[(0,a.jsx)(y.v,{className:"h-6 w-6 mr-2"}),(0,a.jsx)("span",{children:"Drag and drop files here"})]})})})]}),(0,a.jsx)(Q.sZ,{placeholder:"Select files..."}),(0,a.jsxs)(Q.e8,{children:[(0,a.jsx)(Q.rb,{children:"No files found."}),(0,a.jsx)(Q.fu,{children:z.map(t=>(0,a.jsxs)(Q.di,{value:t,onSelect:()=>{let s=e.form.getValues("files")||[],a=s.includes(t)?s.filter(e=>e!==t):[...s,t];e.form.setValue("files",a)},children:[(0,a.jsx)(_.J,{className:(0,U.cn)("mr-2 h-4 w-4",s.value&&s.value.includes(t)?"opacity-100":"opacity-0")}),t]},t))})]})]})})]})]})}}),(0,a.jsx)(q.Wi,{control:e.form.control,name:"input_tools",render:t=>{let{field:s}=t;return(0,a.jsxs)(q.xJ,{className:"flex flex-col gap-2",children:[(0,a.jsx)(q.lX,{children:"Restrict Input Tools"}),(0,a.jsxs)(q.pf,{children:["Which knowledge retrieval tools should this agent be limited to?",(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:"Default:"})," No limitations."]}),(0,a.jsxs)(Y,{children:[(0,a.jsxs)(G,{className:"flex items-center justify-between text-sm gap-2",children:[(0,a.jsx)(N.K,{}),s.value&&s.value.length>0?"".concat(s.value.length," tools selected"):"All tools"]}),(0,a.jsx)(K,{children:(0,a.jsx)(Q.mY,{children:(0,a.jsx)(Q.e8,{children:(0,a.jsx)(Q.fu,{children:Object.entries(e.inputToolOptions).map(t=>{let[n,r]=t;return(0,a.jsxs)(Q.di,{value:n,onSelect:()=>{let t=e.form.getValues("input_tools")||[],s=t.includes(n)?t.filter(e=>e!==n):[...t,n];e.form.setValue("input_tools",s)},children:[(0,a.jsx)(_.J,{className:(0,U.cn)("mr-2 h-4 w-4",s.value&&s.value.includes(n)?"opacity-100":"opacity-0")}),(0,a.jsx)("b",{children:n}),": ",r]},n)})})})})})]})]})}}),(0,a.jsx)(q.Wi,{control:e.form.control,name:"output_modes",render:t=>{let{field:s}=t;return(0,a.jsxs)(q.xJ,{className:"flex flex-col gap-2",children:[(0,a.jsx)(q.lX,{children:"Restrict Output Modes"}),(0,a.jsxs)(q.pf,{children:["Which output modes should this agent be limited to?",(0,a.jsx)("br",{}),(0,a.jsx)("b",{children:"Default:"})," No limitations."]}),(0,a.jsxs)(Y,{children:[(0,a.jsxs)(G,{className:"flex items-center justify-between text-sm gap-2",children:[(0,a.jsx)(N.K,{}),s.value&&s.value.length>0?"".concat(s.value.length," modes selected"):"All modes"]}),(0,a.jsx)(K,{children:(0,a.jsx)(Q.mY,{children:(0,a.jsx)(Q.e8,{children:(0,a.jsx)(Q.fu,{children:Object.entries(e.outputModeOptions).map(t=>{let[n,r]=t;return(0,a.jsxs)(Q.di,{value:n,onSelect:()=>{let t=e.form.getValues("output_modes")||[],s=t.includes(n)?t.filter(e=>e!==n):[...t,n];e.form.setValue("output_modes",s)},children:[(0,a.jsx)(_.J,{className:(0,U.cn)("mr-2 h-4 w-4",s.value&&s.value.includes(n)?"opacity-100":"opacity-0")}),(0,a.jsx)("b",{children:n}),": ",r]},n)})})})})})]})]})}}),e.errors&&(0,a.jsx)(E.bZ,{className:"bg-secondary border-none my-4",children:(0,a.jsxs)(E.X,{className:"flex items-center gap-1",children:[(0,a.jsx)(C.f,{weight:"fill",className:"h-4 w-4 text-yellow-400 inline"}),(0,a.jsx)("span",{children:e.errors})]})}),(0,a.jsxs)("fieldset",{children:[(0,a.jsxs)(c.z,{type:"submit",variant:"ghost",disabled:t||!e.isSubscribed,className:"items-center ".concat(t?"bg-stone-100 dark:bg-neutral-900":""," text-white ").concat(l),children:[(0,a.jsx)(k.B,{className:"h-4 w-4 mr-2"}),t?"Booting...":"Save"]}),!e.create&&"private"!==e.form.getValues("privacy_level")&&(0,a.jsx)(es.Z,{buttonTitle:"Share",title:"Share Agent",description:"Share a link to this agent with others. They'll be able to chat with it, and ask questions to all of its knowledge base.",buttonVariant:"ghost",buttonClassName:"".concat(l),includeIcon:!0,url:"".concat(window.location.origin,"/agents?agent=").concat(e.slug)})]})]})})}function eu(e){let[t,s]=(0,i.useState)(!1),[n,r]=(0,i.useState)(null),[l,o]=(0,i.useState)(!0),c=(0,B.cI)({resolver:(0,W.F)(ec),defaultValues:{name:e.data.name,persona:e.data.persona,color:e.data.color,icon:e.data.icon,privacy_level:e.data.privacy_level,chat_model:e.selectedChatModelOption,files:[]}});(0,i.useEffect)(()=>{c.reset({name:e.data.name,persona:e.data.persona,color:e.data.color,icon:e.data.icon,privacy_level:e.data.privacy_level,chat_model:e.selectedChatModelOption,files:[]})},[e.selectedChatModelOption,e.data]);let d=t=>{fetch("/api/agents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(t=>{200===t.status?(c.reset(),s(!1),r(null),e.setAgentChangeTriggered(!0)):t.json().then(e=>{console.error(e),e.error&&r(e.error)})}).catch(e=>{console.error("Error:",e),r(e)})};return e.isMobileWidth?(0,a.jsxs)(I.dy,{open:t,onOpenChange:s,children:[(0,a.jsx)(I.Qz,{children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(y.v,{}),"Create Agent"]})}),(0,a.jsxs)(I.sc,{className:"p-2",children:[(0,a.jsx)(I.OX,{children:(0,a.jsx)(I.iI,{children:"Create Agent"})}),!e.userProfile&&l&&(0,a.jsx)(P.Z,{loginRedirectMessage:"Sign in to start chatting with a specialized agent",onOpenChange:o}),(0,a.jsx)(ed,{form:c,onSubmit:d,create:!0,errors:n,filesOptions:e.filesOptions,modelOptions:e.modelOptions,inputToolOptions:e.inputToolOptions,outputModeOptions:e.outputModeOptions,isSubscribed:e.isSubscribed}),(0,a.jsx)(I.ze,{children:(0,a.jsx)(I.uh,{children:"Dismiss"})})]})]}):(0,a.jsxs)(T.Vq,{open:t,onOpenChange:s,children:[(0,a.jsx)(T.hg,{children:(0,a.jsxs)("div",{className:"flex items-center text-md gap-2",children:[(0,a.jsx)(y.v,{}),"Create Agent"]})}),(0,a.jsxs)(T.cZ,{className:"lg:max-w-screen-lg overflow-y-scroll max-h-screen",children:[(0,a.jsx)(T.fK,{children:"Create Agent"}),!e.userProfile&&l&&(0,a.jsx)(P.Z,{loginRedirectMessage:"Sign in to start chatting with a specialized agent",onOpenChange:o}),(0,a.jsx)(ed,{form:c,onSubmit:d,create:!0,errors:n,filesOptions:e.filesOptions,modelOptions:e.modelOptions,inputToolOptions:e.inputToolOptions,outputModeOptions:e.outputModeOptions,isSubscribed:e.isSubscribed})]})]})}function eh(){let{data:e,error:t,mutate:s}=(0,l.ZP)("agents",el,{revalidateOnFocus:!1}),n=(0,o.GW)(),{userConfig:c}=(0,o.h2)(!0),[d,u]=(0,i.useState)(!1),h=(0,Z.IC)(),[x,m]=(0,i.useState)([]),[f,p]=(0,i.useState)([]),[g,j]=(0,i.useState)(null),{data:v,error:b}=(0,l.ZP)(c?"/api/content/computer":null,ei),{data:N,error:w}=(0,l.ZP)("/api/agents/options",ei),[y,_]=(0,i.useState)(!1);if((0,i.useEffect)(()=>{y&&(s(),_(!1))},[y]),(0,i.useEffect)(()=>{if(e){m(e.filter(e=>e.creator===(null==n?void 0:n.username))),p(e.filter(e=>"private"!==e.privacy_level&&e.creator!==(null==n?void 0:n.username)));{let t=new URLSearchParams(window.location.search).get("agent");t&&(j(t),e.find(e=>e.slug===t)||fetch("/api/agents/".concat(t)).then(e=>{if(404===e.status)throw Error("Agent not found");return e.json()}).then(e=>{"protected"===e.privacy_level&&p(t=>[...t,e])}))}}},[e]),t)return(0,a.jsxs)("main",{className:r().main,children:[(0,a.jsx)("div",{className:"".concat(r().titleBar," text-5xl"),children:"Agents"}),(0,a.jsx)("div",{className:r().agentList,children:"Error loading agents"})]});if(!e)return(0,a.jsx)("main",{className:r().main,children:(0,a.jsxs)("div",{className:r().agentList,children:[(0,a.jsx)(M.l,{})," booting up your agents"]})});let C=(null==c?void 0:c.chat_model_options)||[],k=(null==c?void 0:c.selected_chat_model_config)||0,S=(null==c?void 0:c.subscription_state)&&[o.o9.SUBSCRIBED.valueOf(),o.o9.TRIAL.valueOf(),o.o9.UNSUBSCRIBED.valueOf()].includes(c.subscription_state)||!1,z=C.find(e=>e.id===k);return(0,a.jsx)("main",{className:"w-full mx-auto",children:(0,a.jsxs)("div",{className:"grid w-full mx-auto",children:[(0,a.jsx)("div",{className:"".concat(r().sidePanel," top-0"),children:(0,a.jsx)(R.ZP,{conversationId:null,uploadedFiles:[],isMobileWidth:h})}),(0,a.jsxs)("div",{className:"".concat(r().pageLayout," w-full"),children:[(0,a.jsxs)("div",{className:"pt-6 md:pt-8 flex justify-between",children:[(0,a.jsx)("h1",{className:"text-3xl flex items-center",children:"Agents"}),(0,a.jsx)("div",{className:"ml-auto float-right border p-2 pt-3 rounded-xl font-bold hover:bg-stone-100 dark:hover:bg-neutral-900",children:(0,a.jsx)(eu,{data:{slug:"",name:"",persona:"",color:"",icon:"",privacy_level:"private",managed_by_admin:!1,chat_model:"",input_tools:[],output_modes:[]},userProfile:n,isMobileWidth:h,filesOptions:v||[],modelOptions:(null==c?void 0:c.chat_model_options)||[],selectedChatModelOption:(null==z?void 0:z.name)||"",isSubscribed:S,setAgentChangeTriggered:_,inputToolOptions:(null==N?void 0:N.input_tools)||{},outputModeOptions:(null==N?void 0:N.output_modes)||{}})})]}),d&&(0,a.jsx)(P.Z,{loginRedirectMessage:"Sign in to start chatting with a specialized agent",onOpenChange:u}),(0,a.jsx)(E.bZ,{className:"bg-secondary border-none my-4",children:(0,a.jsxs)(E.X,{children:[(0,a.jsx)(O.B,{weight:"fill",className:"h-4 w-4 text-purple-400 inline"}),(0,a.jsx)("span",{className:"font-bold",children:"How it works"})," Use any of these specialized personas to tune your conversation to your needs."]})}),(0,a.jsx)("div",{className:"pt-6 md:pt-8",children:(0,a.jsx)("div",{className:"".concat(r().agentList),children:x.map(e=>(0,a.jsx)(eo,{data:e,userProfile:n,isMobileWidth:h,filesOptions:null!=v?v:[],selectedChatModelOption:(null==z?void 0:z.name)||"",isSubscribed:S,setAgentChangeTriggered:_,modelOptions:(null==c?void 0:c.chat_model_options)||[],editCard:!0,agentSlug:g||"",inputToolOptions:(null==N?void 0:N.input_tools)||{},outputModeOptions:(null==N?void 0:N.output_modes)||{}},e.slug))})}),(0,a.jsxs)("div",{className:"pt-6 md:pt-8",children:[(0,a.jsx)("h2",{className:"text-2xl",children:"Explore"}),(0,a.jsx)("div",{className:"".concat(r().agentList),children:f.map(e=>(0,a.jsx)(eo,{data:e,userProfile:n,isMobileWidth:h,editCard:!1,filesOptions:null!=v?v:[],selectedChatModelOption:(null==z?void 0:z.name)||"",isSubscribed:S,setAgentChangeTriggered:_,modelOptions:(null==c?void 0:c.chat_model_options)||[],agentSlug:g||"",inputToolOptions:(null==N?void 0:N.input_tools)||{},outputModeOptions:(null==N?void 0:N.output_modes)||{}},e.slug))})]})]})]})})}},66820:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var a=s(57437),n=s(6780),r=s(87138);function l(e){return(0,a.jsx)(n.aR,{open:!0,onOpenChange:e.onOpenChange,children:(0,a.jsxs)(n._T,{children:[(0,a.jsx)(n.fY,{children:(0,a.jsx)(n.f$,{children:"Sign in to Khoj to continue"})}),(0,a.jsxs)(n.yT,{children:[e.loginRedirectMessage,". By logging in, you agree to our"," ",(0,a.jsx)(r.default,{href:"https://khoj.dev/terms-of-service",children:"Terms of Service."})]}),(0,a.jsxs)(n.xo,{children:[(0,a.jsx)(n.le,{children:"Dismiss"}),(0,a.jsx)(n.OL,{className:"bg-slate-400 hover:bg-slate-500",onClick:()=>{window.location.href="/login?next=".concat(encodeURIComponent(window.location.pathname))},children:(0,a.jsxs)(r.default,{href:"/login?next=".concat(encodeURIComponent(window.location.pathname)),children:[" ","Login"]})})]})]})})}},18642:function(e,t,s){"use strict";s.d(t,{Z:function(){return c}});var a=s(57437),n=s(90837),r=s(50495),l=s(83102),i=s(67135),o=s(34797);function c(e){var t;return(0,a.jsxs)(n.Vq,{children:[(0,a.jsx)(n.hg,{asChild:!0,onClick:e.onShare,children:(0,a.jsxs)(r.z,{size:"sm",className:"".concat(e.buttonClassName||"px-3"),variant:null!==(t=e.buttonVariant)&&void 0!==t?t:"default",children:[e.includeIcon&&(0,a.jsx)(o.m,{className:"w-4 h-4 mr-2"}),e.buttonTitle]})}),(0,a.jsxs)(n.cZ,{children:[(0,a.jsxs)(n.fK,{children:[(0,a.jsx)(n.$N,{children:e.title}),(0,a.jsx)(n.Be,{children:e.description})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsxs)("div",{className:"grid flex-1 gap-2",children:[(0,a.jsx)(i._,{htmlFor:"link",className:"sr-only",children:"Link"}),(0,a.jsx)(l.I,{id:"link",defaultValue:e.url,readOnly:!0})]}),(0,a.jsx)(r.z,{type:"submit",size:"sm",className:"px-3",onClick:()=>(function(e){let t=navigator.clipboard;t&&t.writeText(e)})(e.url),children:(0,a.jsx)("span",{children:"Copy"})})]})]})]})}},47412:function(e,t,s){"use strict";s.d(t,{X:function(){return c},bZ:function(){return o}});var a=s(57437),n=s(2265),r=s(12218),l=s(37440);let i=(0,r.j)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),o=n.forwardRef((e,t)=>{let{className:s,variant:n,...r}=e;return(0,a.jsx)("div",{ref:t,role:"alert",className:(0,l.cn)(i({variant:n}),s),...r})});o.displayName="Alert",n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)("h5",{ref:t,className:(0,l.cn)("mb-1 font-medium leading-none tracking-tight",s),...n})}).displayName="AlertTitle";let c=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,l.cn)("text-sm [&_p]:leading-relaxed",s),...n})});c.displayName="AlertDescription"},32653:function(e,t,s){"use strict";s.d(t,{NI:function(){return p},Wi:function(){return u},l0:function(){return c},lX:function(){return f},pf:function(){return g},xJ:function(){return m},zG:function(){return j}});var a=s(57437),n=s(2265),r=s(71538),l=s(39343),i=s(37440),o=s(67135);let c=l.RV,d=n.createContext({}),u=e=>{let{...t}=e;return(0,a.jsx)(d.Provider,{value:{name:t.name},children:(0,a.jsx)(l.Qr,{...t})})},h=()=>{let e=n.useContext(d),t=n.useContext(x),{getFieldState:s,formState:a}=(0,l.Gc)(),r=s(e.name,a);if(!e)throw Error("useFormField should be used within <FormField>");let{id:i}=t;return{id:i,name:e.name,formItemId:"".concat(i,"-form-item"),formDescriptionId:"".concat(i,"-form-item-description"),formMessageId:"".concat(i,"-form-item-message"),...r}},x=n.createContext({}),m=n.forwardRef((e,t)=>{let{className:s,...r}=e,l=n.useId();return(0,a.jsx)(x.Provider,{value:{id:l},children:(0,a.jsx)("div",{ref:t,className:(0,i.cn)("space-y-2",s),...r})})});m.displayName="FormItem";let f=n.forwardRef((e,t)=>{let{className:s,...n}=e,{error:r,formItemId:l}=h();return(0,a.jsx)(o._,{ref:t,className:(0,i.cn)(r&&"text-destructive",s),htmlFor:l,...n})});f.displayName="FormLabel";let p=n.forwardRef((e,t)=>{let{...s}=e,{error:n,formItemId:l,formDescriptionId:i,formMessageId:o}=h();return(0,a.jsx)(r.g7,{ref:t,id:l,"aria-describedby":n?"".concat(i," ").concat(o):"".concat(i),"aria-invalid":!!n,...s})});p.displayName="FormControl";let g=n.forwardRef((e,t)=>{let{className:s,...n}=e,{formDescriptionId:r}=h();return(0,a.jsx)("p",{ref:t,id:r,className:(0,i.cn)("text-sm text-muted-foreground",s),...n})});g.displayName="FormDescription";let j=n.forwardRef((e,t)=>{let{className:s,children:n,...r}=e,{error:l,formMessageId:o}=h(),c=l?String(null==l?void 0:l.message):n;return c?(0,a.jsx)("p",{ref:t,id:o,className:(0,i.cn)("text-sm font-medium text-destructive",s),...r,children:c}):null});j.displayName="FormMessage"},67135:function(e,t,s){"use strict";s.d(t,{_:function(){return c}});var a=s(57437),n=s(2265),r=s(38364),l=s(12218),i=s(37440);let o=(0,l.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.f,{ref:t,className:(0,i.cn)(o(),s),...n})});c.displayName=r.f.displayName},70571:function(e,t,s){"use strict";s.d(t,{E:function(){return i}});var a=s(57437),n=s(2265),r=s(52431),l=s(37440);let i=n.forwardRef((e,t)=>{let{className:s,value:n,indicatorColor:i,...o}=e;return(0,a.jsx)(r.fC,{ref:t,className:(0,l.cn)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",s),...o,children:(0,a.jsx)(r.z$,{className:"h-full w-full flex-1 bg-primary transition-all ".concat(i),style:{transform:"translateX(-".concat(100-(n||0),"%)")}})})});i.displayName=r.fC.displayName},46294:function(e,t,s){"use strict";s.d(t,{Bw:function(){return f},Ph:function(){return d},Ql:function(){return p},i4:function(){return h},ki:function(){return u}});var a=s(57437),n=s(2265),r=s(77539),l=s(42421),i=s(14392),o=s(22468),c=s(37440);let d=r.fC;r.ZA;let u=r.B4,h=n.forwardRef((e,t)=>{let{className:s,children:n,...i}=e;return(0,a.jsxs)(r.xz,{ref:t,className:(0,c.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s),...i,children:[n,(0,a.jsx)(r.JO,{asChild:!0,children:(0,a.jsx)(l.Z,{className:"h-4 w-4 opacity-50"})})]})});h.displayName=r.xz.displayName;let x=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.u_,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",s),...n,children:(0,a.jsx)(i.Z,{className:"h-4 w-4"})})});x.displayName=r.u_.displayName;let m=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.$G,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",s),...n,children:(0,a.jsx)(l.Z,{className:"h-4 w-4"})})});m.displayName=r.$G.displayName;let f=n.forwardRef((e,t)=>{let{className:s,children:n,position:l="popper",...i}=e;return(0,a.jsx)(r.h_,{children:(0,a.jsxs)(r.VY,{ref:t,className:(0,c.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:l,...i,children:[(0,a.jsx)(x,{}),(0,a.jsx)(r.l_,{className:(0,c.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,a.jsx)(m,{})]})})});f.displayName=r.VY.displayName,n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.__,{ref:t,className:(0,c.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",s),...n})}).displayName=r.__.displayName;let p=n.forwardRef((e,t)=>{let{className:s,children:n,...l}=e;return(0,a.jsxs)(r.ck,{ref:t,className:(0,c.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...l,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(r.wU,{children:(0,a.jsx)(o.Z,{className:"h-4 w-4"})})}),(0,a.jsx)(r.eT,{children:n})]})});p.displayName=r.ck.displayName,n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(r.Z0,{ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",s),...n})}).displayName=r.Z0.displayName},93146:function(e,t,s){"use strict";s.d(t,{g:function(){return l}});var a=s(57437),n=s(2265),r=s(37440);let l=n.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)("textarea",{className:(0,r.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...n})});l.displayName="Textarea"},19666:function(e,t,s){"use strict";s.d(t,{_v:function(){return d},aJ:function(){return c},pn:function(){return i},u:function(){return o}});var a=s(57437),n=s(2265),r=s(27071),l=s(37440);let i=r.zt,o=r.fC,c=r.xz,d=n.forwardRef((e,t)=>{let{className:s,sideOffset:n=4,...i}=e;return(0,a.jsx)(r.VY,{ref:t,sideOffset:n,className:(0,l.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...i})});d.displayName=r.VY.displayName},15283:function(e){e.exports={titleBar:"agents_titleBar__FzYbY",agentPersonality:"agents_agentPersonality__o0Ysz",pageLayout:"agents_pageLayout__gR3S3",sidePanel:"agents_sidePanel__wGVGc",infoButton:"agents_infoButton__NqI7E",agentList:"agents_agentList__XVx4A"}}},function(e){e.O(0,[9460,9427,9001,3062,4086,3110,51,1269,1603,9417,2971,7023,1744],function(){return e(e.s=1813)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- div.automations_automationsLayout__Atoh_{display:grid;grid-template-columns:1fr 1fr;gap:1rem}div.automations_automationCard__BKidA{display:grid;grid-template-rows:auto 1fr auto}div.automations_pageLayout__OaoYA{max-width:60vw;margin:auto auto 2rem}div.automations_sidePanel__MPciO{position:fixed;height:100%;z-index:1}@media screen and (max-width:768px){div.automations_automationsLayout__Atoh_{grid-template-columns:1fr}div.automations_pageLayout__OaoYA{max-width:90vw}div.automations_sidePanel__MPciO{position:relative;height:100%}}div.sidePanel_session__R9wgH{padding:.5rem;margin-bottom:.25rem;border-radius:.5rem;cursor:pointer;max-width:14rem;font-size:medium;display:grid;grid-template-columns:minmax(auto,400px) 1fr;gap:0}div.sidePanel_compressed__YBPtM{grid-template-columns:minmax(12rem,100%) 1fr 1fr}div.sidePanel_sessionHover__iwfo8,div.sidePanel_session__R9wgH:hover{background-color:hsla(var(--popover))}div.sidePanel_session__R9wgH:hover{color:hsla(var(--popover-foreground))}div.sidePanel_session__R9wgH a{text-decoration:none}button.sidePanel_button__ihOfG{border:none;outline:none;background-color:transparent;cursor:pointer;color:var(--main-text-color);width:24px}button.sidePanel_showMoreButton__dt9Zw{border-radius:.5rem;padding:8px}div.sidePanel_panel__VZ8ye{display:flex;flex-direction:column;padding:1rem;overflow-y:auto;max-width:auto;transition:background-color .5s}div.sidePanel_expanded__ZjTHo{gap:1rem;background-color:hsla(var(--muted));height:100%}div.sidePanel_collapsed__OjVmG{display:grid;grid-template-columns:1fr;height:-moz-fit-content;height:fit-content;padding:1rem 0 0 1rem}p.sidePanel_session__R9wgH{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-align:left;font-size:small}div.sidePanel_header__d5cGA{display:grid;grid-template-columns:1fr auto}div.sidePanel_profile__x0w58{display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:center;margin-top:auto}div.sidePanel_panelWrapper__k_lal{display:grid;grid-template-rows:1fr auto auto;height:100%}div.sidePanel_modalSessionsList__nKe2n{position:fixed;top:0;left:0;width:100%;height:100%;background-color:hsla(var(--frosted-background-color));z-index:1;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}div.sidePanel_modalSessionsList__nKe2n div.sidePanel_content__Wq20_{max-width:80%;max-height:80%;background-color:hsla(var(--frosted-background-color));overflow:auto;padding:20px;border-radius:10px}div.sidePanel_modalSessionsList__nKe2n div.sidePanel_session__R9wgH{max-width:100%;text-overflow:ellipsis}@media screen and (max-width:768px){div.sidePanel_panel__VZ8ye{padding:.25rem;width:100%}div.sidePanel_expanded__ZjTHo{z-index:1}div.sidePanel_singleReference__r9z1n{padding:4px}div.sidePanel_panelWrapper__k_lal{width:100%;padding:0 1rem}div.sidePanel_session__R9wgH.sidePanel_compressed__YBPtM{max-width:100%;display:grid;grid-template-columns:70vw auto;justify-content:space-between}div.sidePanel_session__R9wgH{max-width:100%;grid-template-columns:minmax(auto,70vw) 1fr}}menu.navMenu_menu__fqlFF a{text-decoration:none;font-size:medium;font-weight:400;padding:0 4px;border-radius:4px;display:flex;justify-self:center;margin:0;align-items:center;gap:4px}a.navMenu_selected__A__aP{background-color:hsl(var(--accent))}div.navMenu_titleBar__HJoio{display:flex;justify-content:space-between;align-content:space-evenly;align-items:start}div.navMenu_titleBar__HJoio menu{padding:0;margin:0;border-radius:.5rem;display:grid;grid-auto-flow:column;gap:32px}div.navMenu_settingsMenuProfile__3npiK img{border-radius:50%;width:32px;height:32px;margin:0}div.navMenu_settingsMenu__X2i2U{padding:0 4px;border-radius:4px;display:flex;justify-self:center;margin:0;align-items:center}div.navMenu_settingsMenuOptions__KWnLv{display:block;grid-auto-flow:row;position:absolute;background-color:var(--background-color);box-shadow:0 8px 16px 0 rgba(0,0,0,.2);top:64px;text-align:left;padding:8px;border-radius:8px}@media screen and (max-width:600px){menu.navMenu_menu__fqlFF span{display:none}div.navMenu_settingsMenuOptions__KWnLv{right:4px}div.navMenu_titleBar__HJoio{padding:8px}}div.chatHistory_chatHistory__CoaVT{display:flex;flex-direction:column;height:100%}div.chatHistory_chatLayout__ABli_{height:80vh;overflow-y:auto;margin:0 auto}div.chatHistory_agentIndicator__wOU1f a{display:flex;text-align:center;align-content:center;align-items:center}div.chatHistory_trainOfThought__mMWSR{border:1px solid var(--border-color);border-radius:16px;padding:8px 16px;margin:12px}div.chatMessage_chatMessageContainer__sAivf{display:flex;flex-direction:column;margin:12px;border-radius:16px;padding:8px 16px 0}div.chatMessage_chatMessageWrapper__u5m8A{padding-left:1rem;padding-bottom:1rem;max-width:80vw}div.chatMessage_chatMessageWrapper__u5m8A ol,div.chatMessage_chatMessageWrapper__u5m8A p:not(:last-child),div.chatMessage_chatMessageWrapper__u5m8A ul{margin-bottom:16px}div.chatMessage_chatMessageWrapper__u5m8A a span{display:revert!important}div.chatMessage_khojfullHistory__NPu2l{border-width:1px;padding-left:4px}div.chatMessage_youfullHistory__ioyfH{max-width:100%}div.chatMessage_chatMessageContainer__sAivf.chatMessage_youfullHistory__ioyfH{padding-left:0}div.chatMessage_you__6GUC4{background-color:hsla(var(--secondary));align-self:flex-end;border-radius:16px}div.chatMessage_khoj__cjWON{background-color:transparent;color:hsl(var(--accent-foreground));align-self:flex-start}div.chatMessage_khojChatMessage__BabQz{padding-top:8px;padding-left:16px}div.chatMessage_emptyChatMessage__J9JRn{display:none}div.chatMessage_chatMessageContainer__sAivf img{width:auto;height:auto;max-width:100%;max-height:80vh;-o-object-fit:contain;object-fit:contain;display:block;margin-top:.25rem;margin-right:auto}div.chatMessage_chatMessageContainer__sAivf h3 img{width:24px}div.chatMessage_you__6GUC4{color:hsla(var(--secondary-foreground))}div.chatMessage_author__muRtC{font-size:.75rem;color:grey;text-align:right}div.chatMessage_chatFooter__0vR8s{display:flex;justify-content:space-between;min-height:28px}div.chatMessage_chatButtons__Lbk8T{display:flex;justify-content:flex-end;width:-moz-min-content;width:min-content;border:1px solid var(--border-color);border-radius:16px;position:relative;bottom:-12px;background-color:hsla(var(--secondary))}div.chatMessage_chatFooter__0vR8s button{cursor:pointer;color:hsl(var(--muted-foreground));border:none;border-radius:16px;padding:4px;margin-left:4px;margin-right:4px}div.chatMessage_chatFooter__0vR8s button:hover{background-color:hsla(var(--frosted-background-color))}button.chatMessage_codeCopyButton__Y_Ujv{cursor:pointer;float:right;border-radius:8px}button.chatMessage_codeCopyButton__Y_Ujv:hover{color:hsla(var(--frosted-background-color))}button.chatMessage_codeCopyButton__Y_Ujv img,button.chatMessage_copyButton__jd7q7 img,div.chatMessage_feedbackButtons___Brdy img{width:24px}div.chatMessage_trainOfThought__mR2Gg strong{font-weight:500}div.chatMessage_trainOfThought__mR2Gg.chatMessage_primary__WYPEb strong{font-weight:500;color:hsla(var(--secondary-foreground))}div.chatMessage_trainOfThought__mR2Gg.chatMessage_primary__WYPEb p{color:inherit}div.chatMessage_trainOfThoughtElement__le_bC{display:grid;grid-template-columns:auto 1fr;align-items:start}div.chatMessage_trainOfThoughtElement__le_bC ol,div.chatMessage_trainOfThoughtElement__le_bC ul{margin:auto}@media screen and (max-width:768px){div.chatMessage_youfullHistory__ioyfH{max-width:90%}}div.chatInputArea_actualInputArea__Ha6cN{display:grid;grid-template-columns:auto 1fr auto auto}div.search_searchLayout__fP3m0{display:grid;grid-template-columns:1fr;gap:1rem;height:100vh}div.search_sidePanel__myfc9{position:fixed;height:100%;z-index:1}@media screen and (max-width:768px){div.search_searchLayout__fP3m0{gap:0}div.search_sidePanel__myfc9{position:relative;height:100%}}
@@ -1 +0,0 @@
1
- div.chat_main__8xQu5{height:100dvh;color:hsla(var(--foreground))}.chat_suggestions__m8n2t{display:flex;overflow-x:none;height:50%;padding:10px;white-space:nowrap;gap:1rem}div.chat_inputBox__LOFws{border:1px solid var(--border-color);margin-bottom:20px;gap:12px;align-content:center}input.chat_inputBox__LOFws{border:none}input.chat_inputBox__LOFws:focus{outline:none;background-color:transparent}div.chat_inputBox__LOFws:focus{box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}div.chat_chatBodyFull__FfKEK{display:grid;grid-template-columns:1fr;height:100%}button.chat_inputBox__LOFws{border:none;outline:none;background-color:transparent;cursor:pointer;border-radius:.5rem;padding:.5rem;background:linear-gradient(var(--calm-green),var(--calm-blue))}div.chat_chatBody__sS1LX{display:grid;grid-template-columns:1fr 1fr;height:100%}.chat_inputBox__LOFws{color:hsla(var(--foreground))}div.chat_chatLayout__pR203{display:grid;grid-template-columns:auto 1fr;gap:1rem}div.chat_chatBox__FBct_{display:grid;height:100%}div.chat_titleBar__R5QlK{display:grid;grid-template-columns:1fr auto}div.chat_chatBoxBody__qT_SC{display:grid;height:100%;width:70%;margin:auto}div.chat_agentIndicator__8V55w a{display:flex;text-align:center;align-content:center;align-items:center}div.chat_agentIndicator__8V55w{padding:10px}div.chat_chatTitleWrapper__6ChWq{grid-template-columns:1fr auto}@media screen and (max-width:768px){div.chat_inputBox__LOFws{margin-bottom:0}div.chat_chatBoxBody__qT_SC{width:100%}div.chat_chatBody__sS1LX{grid-template-columns:0fr 1fr}div.chat_chatBox__FBct_{padding:0;height:100%}div.chat_chatLayout__pR203{gap:0;grid-template-columns:1fr}}