khoj 1.32.2.dev3__tar.gz → 1.32.2.dev5__tar.gz

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 (403) hide show
  1. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/PKG-INFO +1 -1
  2. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/404/index.html +1 -1
  3. khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/chunks/app/agents/layout-2e626327abfbe612.js +1 -0
  4. khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/chunks/app/agents/page-6f4ff1d32a66ed71.js → khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/chunks/app/agents/page-29a611a7bca38ef0.js +1 -1
  5. khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/chunks/app/automations/page-148a48ddfb2ff90d.js → khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/chunks/app/automations/page-2b496761af80385b.js +1 -1
  6. khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/chunks/app/chat/layout-ad4d1792ab1a4108.js +1 -0
  7. khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/chunks/app/chat/page-be00870a40de3a25.js → khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/chunks/app/chat/page-3cedff562384e2f9.js +1 -1
  8. khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/chunks/app/page-765292332c31523e.js → khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/chunks/app/page-661bf7802aee26f7.js +1 -1
  9. khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/chunks/app/search/layout-4505b79deb734a30.js +1 -0
  10. khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/chunks/app/search/page-7af2cab294dccd81.js → khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/chunks/app/search/page-1cf8693a1355dd08.js +1 -1
  11. khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/chunks/app/settings/page-6b600bf11fa89194.js → khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/chunks/app/settings/page-1ff525b09e4677fb.js +1 -1
  12. khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-6fb51c5c80f8ec67.js +1 -0
  13. khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/chunks/app/share/chat/page-6054e88b56708f44.js → khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/chunks/app/share/chat/page-ece87a4fa7dfdc16.js +1 -1
  14. khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/chunks/webpack-81fb63f79021b56c.js → khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/chunks/webpack-031fd7ef41706d41.js +1 -1
  15. khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/css/4d48a4eef3f0b657.css +1 -0
  16. khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/css/80bd6301fc657983.css +1 -0
  17. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/agents/index.html +1 -1
  18. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/agents/index.txt +2 -2
  19. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/automations/index.html +1 -1
  20. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/automations/index.txt +2 -2
  21. khoj-1.32.2.dev5/src/khoj/interface/compiled/chat/index.html +1 -0
  22. khoj-1.32.2.dev5/src/khoj/interface/compiled/chat/index.txt +7 -0
  23. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/index.html +1 -1
  24. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/index.txt +2 -2
  25. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/search/index.html +1 -1
  26. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/search/index.txt +2 -2
  27. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/settings/index.html +1 -1
  28. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/settings/index.txt +2 -2
  29. khoj-1.32.2.dev5/src/khoj/interface/compiled/share/chat/index.html +1 -0
  30. khoj-1.32.2.dev5/src/khoj/interface/compiled/share/chat/index.txt +7 -0
  31. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/auth.py +1 -0
  32. khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/chunks/app/agents/layout-e00fb81dca656a10.js +0 -1
  33. khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/chunks/app/chat/layout-33934fc2d6ae6838.js +0 -1
  34. khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/chunks/app/search/layout-c02531d586972d7d.js +0 -1
  35. khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-e8e5db7830bf3f47.js +0 -1
  36. khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/css/3cf13271869a4aeb.css +0 -1
  37. khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/css/9504108437df6804.css +0 -1
  38. khoj-1.32.2.dev3/src/khoj/interface/compiled/chat/index.html +0 -1
  39. khoj-1.32.2.dev3/src/khoj/interface/compiled/chat/index.txt +0 -7
  40. khoj-1.32.2.dev3/src/khoj/interface/compiled/share/chat/index.html +0 -1
  41. khoj-1.32.2.dev3/src/khoj/interface/compiled/share/chat/index.txt +0 -7
  42. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/.gitignore +0 -0
  43. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/LICENSE +0 -0
  44. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/README.md +0 -0
  45. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/pyproject.toml +0 -0
  46. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/__init__.py +0 -0
  47. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/app/README.md +0 -0
  48. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/app/__init__.py +0 -0
  49. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/app/asgi.py +0 -0
  50. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/app/settings.py +0 -0
  51. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/app/urls.py +0 -0
  52. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/configure.py +0 -0
  53. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/__init__.py +0 -0
  54. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/adapters/__init__.py +0 -0
  55. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/admin.py +0 -0
  56. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/apps.py +0 -0
  57. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/management/__init__.py +0 -0
  58. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/management/commands/__init__.py +0 -0
  59. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/management/commands/change_default_model.py +0 -0
  60. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/management/commands/change_generated_images_url.py +0 -0
  61. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/management/commands/convert_images_png_to_webp.py +0 -0
  62. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0001_khojuser.py +0 -0
  63. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0002_googleuser.py +0 -0
  64. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0003_vector_extension.py +0 -0
  65. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0004_content_types_and_more.py +0 -0
  66. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0005_embeddings_corpus_id.py +0 -0
  67. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0006_embeddingsdates.py +0 -0
  68. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0007_add_conversation.py +0 -0
  69. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0008_alter_conversation_conversation_log.py +0 -0
  70. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0009_khojapiuser.py +0 -0
  71. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0010_chatmodeloptions_and_more.py +0 -0
  72. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0010_rename_embeddings_entry_and_more.py +0 -0
  73. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0011_merge_20231102_0138.py +0 -0
  74. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0012_entry_file_source.py +0 -0
  75. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0013_subscription.py +0 -0
  76. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0014_alter_googleuser_picture.py +0 -0
  77. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0015_alter_subscription_user.py +0 -0
  78. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0016_alter_subscription_renewal_date.py +0 -0
  79. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0017_searchmodel.py +0 -0
  80. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0018_searchmodelconfig_delete_searchmodel.py +0 -0
  81. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0019_alter_googleuser_family_name_and_more.py +0 -0
  82. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0020_reflectivequestion.py +0 -0
  83. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0021_speechtotextmodeloptions_and_more.py +0 -0
  84. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0022_texttoimagemodelconfig.py +0 -0
  85. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0023_usersearchmodelconfig.py +0 -0
  86. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0024_alter_entry_embeddings.py +0 -0
  87. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0025_clientapplication_khojuser_phone_number_and_more.py +0 -0
  88. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0025_searchmodelconfig_embeddings_inference_endpoint_and_more.py +0 -0
  89. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0026_searchmodelconfig_cross_encoder_inference_endpoint_and_more.py +0 -0
  90. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0027_merge_20240118_1324.py +0 -0
  91. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0028_khojuser_verified_phone_number.py +0 -0
  92. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0029_userrequests.py +0 -0
  93. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0030_conversation_slug_and_title.py +0 -0
  94. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0031_agent_conversation_agent.py +0 -0
  95. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0031_alter_googleuser_locale.py +0 -0
  96. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0032_merge_20240322_0427.py +0 -0
  97. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0033_rename_tuning_agent_personality.py +0 -0
  98. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0034_alter_chatmodeloptions_chat_model.py +0 -0
  99. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0035_processlock.py +0 -0
  100. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0036_alter_processlock_name.py +0 -0
  101. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0036_delete_offlinechatprocessorconversationconfig.py +0 -0
  102. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0036_publicconversation.py +0 -0
  103. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0037_chatmodeloptions_openai_config_and_more.py +0 -0
  104. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0037_searchmodelconfig_bi_encoder_docs_encode_config_and_more.py +0 -0
  105. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0038_merge_20240425_0857.py +0 -0
  106. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0038_merge_20240426_1640.py +0 -0
  107. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0039_merge_20240501_0301.py +0 -0
  108. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0040_alter_processlock_name.py +0 -0
  109. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0040_merge_20240504_1010.py +0 -0
  110. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0041_merge_20240505_1234.py +0 -0
  111. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0042_serverchatsettings.py +0 -0
  112. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0043_alter_chatmodeloptions_model_type.py +0 -0
  113. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0044_conversation_file_filters.py +0 -0
  114. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0045_fileobject.py +0 -0
  115. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0046_khojuser_email_verification_code_and_more.py +0 -0
  116. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0047_alter_entry_file_type.py +0 -0
  117. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0048_voicemodeloption_uservoicemodelconfig.py +0 -0
  118. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0049_datastore.py +0 -0
  119. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0049_texttoimagemodelconfig_api_key_and_more.py +0 -0
  120. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0050_alter_processlock_name.py +0 -0
  121. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0051_merge_20240702_1220.py +0 -0
  122. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0052_alter_searchmodelconfig_bi_encoder_docs_encode_config_and_more.py +0 -0
  123. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0053_agent_style_color_agent_style_icon.py +0 -0
  124. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0054_alter_agent_style_color.py +0 -0
  125. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0055_alter_agent_style_icon.py +0 -0
  126. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0056_chatmodeloptions_vision_enabled.py +0 -0
  127. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0056_searchmodelconfig_cross_encoder_model_config.py +0 -0
  128. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0057_merge_20240816_1409.py +0 -0
  129. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0057_remove_serverchatsettings_default_model_and_more.py +0 -0
  130. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0058_alter_chatmodeloptions_chat_model.py +0 -0
  131. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0059_searchmodelconfig_bi_encoder_confidence_threshold.py +0 -0
  132. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0060_merge_20240905_1828.py +0 -0
  133. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0061_alter_chatmodeloptions_model_type.py +0 -0
  134. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0061_alter_texttoimagemodelconfig_model_type.py +0 -0
  135. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0062_merge_20240913_0222.py +0 -0
  136. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0063_conversation_temp_id.py +0 -0
  137. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0064_remove_conversation_temp_id_alter_conversation_id.py +0 -0
  138. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0065_remove_agent_avatar_remove_agent_public_and_more.py +0 -0
  139. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0066_remove_agent_tools_agent_input_tools_and_more.py +0 -0
  140. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0067_alter_agent_style_icon.py +0 -0
  141. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0068_alter_agent_output_modes.py +0 -0
  142. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0069_webscraper_serverchatsettings_web_scraper.py +0 -0
  143. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0070_alter_agent_input_tools_alter_agent_output_modes.py +0 -0
  144. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0071_subscription_enabled_trial_at_and_more.py +0 -0
  145. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0072_entry_search_model.py +0 -0
  146. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0073_delete_usersearchmodelconfig.py +0 -0
  147. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0074_alter_conversation_title.py +0 -0
  148. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0075_migrate_generated_assets_and_validate.py +0 -0
  149. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0076_rename_openaiprocessorconversationconfig_aimodelapi_and_more.py +0 -0
  150. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0077_chatmodel_alter_agent_chat_model_and_more.py +0 -0
  151. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/0078_khojuser_email_verification_code_expiry.py +0 -0
  152. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/migrations/__init__.py +0 -0
  153. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/models/__init__.py +0 -0
  154. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/database/tests.py +0 -0
  155. {khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/cV9d70z6WtGn0x0rOuzzU → khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/EdJrUgX27r5xCkYXFDNO8}/_buildManifest.js +0 -0
  156. {khoj-1.32.2.dev3/src/khoj/interface/compiled/_next/static/cV9d70z6WtGn0x0rOuzzU → khoj-1.32.2.dev5/src/khoj/interface/compiled/_next/static/EdJrUgX27r5xCkYXFDNO8}/_ssgManifest.js +0 -0
  157. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/1201-aac5b5f9a28edf09.js +0 -0
  158. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/1662-adf4c615bef2fdc2.js +0 -0
  159. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/1915-878efdc6db697d8f.js +0 -0
  160. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/2117-9886e6a0232dc093.js +0 -0
  161. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/2264-23b2c33cd8c74d07.js +0 -0
  162. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/2781-4f022b6e9eb6df6e.js +0 -0
  163. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/2813-f842b08bce4c61a0.js +0 -0
  164. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/3091-e0ff2288e8a29dd7.js +0 -0
  165. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/3727.dcea8f2193111552.js +0 -0
  166. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/5401-980a4f512c81232e.js +0 -0
  167. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/5473-b1cf56dedac6577a.js +0 -0
  168. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/5477-8d032883aed8a2d2.js +0 -0
  169. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/6589-f806113de469d684.js +0 -0
  170. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/8117-2e1697b782c5f185.js +0 -0
  171. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/8407-af326f8c200e619b.js +0 -0
  172. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/8667-d3e5bc726e4ff4e3.js +0 -0
  173. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/9058-25ef3344805f06ea.js +0 -0
  174. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/9262-21c17de77aafdce8.js +0 -0
  175. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/94ca1967.1d9b42d929a1ee8c.js +0 -0
  176. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/9597.83583248dfbf6e73.js +0 -0
  177. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/964ecbae.51d6faf8801d15e6.js +0 -0
  178. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/app/_not-found/page-a834eddae3e235df.js +0 -0
  179. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/app/automations/layout-dce809da279a4a8a.js +0 -0
  180. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/app/layout-30e7fda7262713ce.js +0 -0
  181. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/app/settings/layout-b3f6bc6f1aa118e0.js +0 -0
  182. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/d3ac728e-44ebd2a0c99b12a0.js +0 -0
  183. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/fd9d1056-4482b99a36fd1673.js +0 -0
  184. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/framework-8e0e0f4a6b83a956.js +0 -0
  185. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/main-app-de1f09df97a3cfc7.js +0 -0
  186. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/main-db4bfac6b0a8d00b.js +0 -0
  187. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/pages/_app-3c9ca398d360b709.js +0 -0
  188. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/pages/_error-cf5ca766ac8f493f.js +0 -0
  189. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -0
  190. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/css/089de1d8526b96e9.css +0 -0
  191. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/css/3f27c3cf45375eb5.css +0 -0
  192. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/css/4cae6c0e5c72fb2d.css +0 -0
  193. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/css/5a400c87d295e68a.css +0 -0
  194. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/css/65ac59e147eb2057.css +0 -0
  195. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/css/c8837bdb7d5f13de.css +0 -0
  196. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/1d8a05b60287ae6c-s.p.woff2 +0 -0
  197. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/6f22fce21a7c433c-s.woff2 +0 -0
  198. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/77c207b095007c34-s.p.woff2 +0 -0
  199. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/82ef96de0e8f4d8c-s.p.woff2 +0 -0
  200. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_AMS-Regular.1608a09b.woff +0 -0
  201. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
  202. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
  203. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
  204. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
  205. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
  206. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
  207. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
  208. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
  209. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
  210. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
  211. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
  212. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
  213. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
  214. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
  215. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
  216. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
  217. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Main-Bold.d181c465.woff +0 -0
  218. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
  219. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
  220. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
  221. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Main-Italic.47373d1e.ttf +0 -0
  222. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Main-Italic.8916142b.woff2 +0 -0
  223. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Main-Italic.9024d815.woff +0 -0
  224. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
  225. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Main-Regular.7f51fe03.woff +0 -0
  226. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
  227. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
  228. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
  229. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
  230. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Math-Italic.5295ba48.woff +0 -0
  231. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Math-Italic.939bc644.ttf +0 -0
  232. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
  233. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
  234. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
  235. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
  236. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
  237. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
  238. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
  239. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_SansSerif-Regular.74048478.woff +0 -0
  240. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
  241. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
  242. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
  243. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Script-Regular.07505710.woff +0 -0
  244. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
  245. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
  246. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
  247. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
  248. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Size2-Regular.57727022.woff +0 -0
  249. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
  250. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
  251. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
  252. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
  253. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
  254. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
  255. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
  256. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
  257. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
  258. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
  259. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
  260. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/a6ecd16fa044d500-s.p.woff2 +0 -0
  261. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/bd82c78e5b7b3fe9-s.p.woff2 +0 -0
  262. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/c32c8052c071fc42-s.woff2 +0 -0
  263. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/c4250770ab8708b6-s.p.woff2 +0 -0
  264. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/e098aaaecc9cfbb2-s.p.woff2 +0 -0
  265. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/flags.3afdda2f.webp +0 -0
  266. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/flags@2x.5fbe9fc1.webp +0 -0
  267. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/globe.98e105ca.webp +0 -0
  268. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/_next/static/media/globe@2x.974df6f8.webp +0 -0
  269. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/agents.svg +0 -0
  270. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/assets/icons/khoj_lantern.ico +0 -0
  271. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/assets/icons/khoj_lantern.svg +0 -0
  272. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/assets/icons/khoj_lantern_1200x1200.png +0 -0
  273. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/assets/icons/khoj_lantern_128x128.png +0 -0
  274. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/assets/icons/khoj_lantern_128x128_dark.png +0 -0
  275. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/assets/icons/khoj_lantern_256x256.png +0 -0
  276. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/assets/icons/khoj_lantern_512x512.png +0 -0
  277. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/assets/icons/khoj_lantern_logomarktype_1200x630.png +0 -0
  278. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/assets/samples/desktop-browse-draw-sample.png +0 -0
  279. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/assets/samples/desktop-plain-chat-sample.png +0 -0
  280. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/assets/samples/desktop-remember-plan-sample.png +0 -0
  281. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/assets/samples/phone-browse-draw-sample.png +0 -0
  282. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/assets/samples/phone-plain-chat-sample.png +0 -0
  283. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/assets/samples/phone-remember-plan-sample.png +0 -0
  284. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/automation.svg +0 -0
  285. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/chat.svg +0 -0
  286. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/close.svg +0 -0
  287. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/copy-button-success.svg +0 -0
  288. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/copy-button.svg +0 -0
  289. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/khoj.webmanifest +0 -0
  290. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/logo.svg +0 -0
  291. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/send.svg +0 -0
  292. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/share.svg +0 -0
  293. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/thumbs-down.svg +0 -0
  294. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/compiled/thumbs-up.svg +0 -0
  295. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/email/feedback.html +0 -0
  296. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/email/magic_link.html +0 -0
  297. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/email/task.html +0 -0
  298. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/email/welcome.html +0 -0
  299. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/.well-known/assetlinks.json +0 -0
  300. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/assets/icons/agents.svg +0 -0
  301. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/assets/icons/automation.svg +0 -0
  302. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/assets/icons/chat.svg +0 -0
  303. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/assets/icons/github.svg +0 -0
  304. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/assets/icons/khoj-logo-sideways-200.png +0 -0
  305. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/assets/icons/khoj-logo-sideways-500.png +0 -0
  306. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/assets/icons/khoj-logo-sideways.svg +0 -0
  307. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/assets/icons/khoj.svg +0 -0
  308. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/assets/icons/logotype.svg +0 -0
  309. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/assets/icons/search.svg +0 -0
  310. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/assets/icons/sync.svg +0 -0
  311. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/assets/khoj.css +0 -0
  312. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/assets/utils.js +0 -0
  313. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/base_config.html +0 -0
  314. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/content_source_github_input.html +0 -0
  315. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/login.html +0 -0
  316. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/interface/web/utils.html +0 -0
  317. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/main.py +0 -0
  318. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/manage.py +0 -0
  319. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/migrations/__init__.py +0 -0
  320. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/migrations/migrate_offline_chat_default_model.py +0 -0
  321. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/migrations/migrate_offline_chat_default_model_2.py +0 -0
  322. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/migrations/migrate_offline_chat_schema.py +0 -0
  323. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/migrations/migrate_offline_model.py +0 -0
  324. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/migrations/migrate_processor_config_openai.py +0 -0
  325. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/migrations/migrate_server_pg.py +0 -0
  326. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/migrations/migrate_version.py +0 -0
  327. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/__init__.py +0 -0
  328. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/__init__.py +0 -0
  329. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/docx/__init__.py +0 -0
  330. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/docx/docx_to_entries.py +0 -0
  331. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/github/__init__.py +0 -0
  332. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/github/github_to_entries.py +0 -0
  333. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/images/__init__.py +0 -0
  334. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/images/image_to_entries.py +0 -0
  335. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/markdown/__init__.py +0 -0
  336. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/markdown/markdown_to_entries.py +0 -0
  337. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/notion/notion_to_entries.py +0 -0
  338. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/org_mode/__init__.py +0 -0
  339. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/org_mode/org_to_entries.py +0 -0
  340. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/org_mode/orgnode.py +0 -0
  341. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/pdf/__init__.py +0 -0
  342. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/pdf/pdf_to_entries.py +0 -0
  343. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/plaintext/__init__.py +0 -0
  344. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/plaintext/plaintext_to_entries.py +0 -0
  345. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/content/text_to_entries.py +0 -0
  346. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/__init__.py +0 -0
  347. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/anthropic/__init__.py +0 -0
  348. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/anthropic/anthropic_chat.py +0 -0
  349. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/anthropic/utils.py +0 -0
  350. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/google/__init__.py +0 -0
  351. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/google/gemini_chat.py +0 -0
  352. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/google/utils.py +0 -0
  353. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/offline/__init__.py +0 -0
  354. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/offline/chat_model.py +0 -0
  355. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/offline/utils.py +0 -0
  356. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/offline/whisper.py +0 -0
  357. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/openai/__init__.py +0 -0
  358. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/openai/gpt.py +0 -0
  359. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/openai/utils.py +0 -0
  360. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/openai/whisper.py +0 -0
  361. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/prompts.py +0 -0
  362. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/conversation/utils.py +0 -0
  363. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/embeddings.py +0 -0
  364. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/image/generate.py +0 -0
  365. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/speech/__init__.py +0 -0
  366. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/speech/text_to_speech.py +0 -0
  367. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/tools/__init__.py +0 -0
  368. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/tools/online_search.py +0 -0
  369. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/processor/tools/run_code.py +0 -0
  370. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/__init__.py +0 -0
  371. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/api.py +0 -0
  372. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/api_agents.py +0 -0
  373. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/api_chat.py +0 -0
  374. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/api_content.py +0 -0
  375. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/api_model.py +0 -0
  376. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/api_phone.py +0 -0
  377. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/api_subscription.py +0 -0
  378. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/email.py +0 -0
  379. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/helpers.py +0 -0
  380. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/notion.py +0 -0
  381. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/research.py +0 -0
  382. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/storage.py +0 -0
  383. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/twilio.py +0 -0
  384. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/routers/web_client.py +0 -0
  385. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/search_filter/__init__.py +0 -0
  386. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/search_filter/base_filter.py +0 -0
  387. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/search_filter/date_filter.py +0 -0
  388. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/search_filter/file_filter.py +0 -0
  389. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/search_filter/word_filter.py +0 -0
  390. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/search_type/__init__.py +0 -0
  391. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/search_type/text_search.py +0 -0
  392. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/utils/__init__.py +0 -0
  393. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/utils/cli.py +0 -0
  394. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/utils/config.py +0 -0
  395. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/utils/constants.py +0 -0
  396. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/utils/fs_syncer.py +0 -0
  397. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/utils/helpers.py +0 -0
  398. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/utils/initialization.py +0 -0
  399. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/utils/jsonl.py +0 -0
  400. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/utils/models.py +0 -0
  401. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/utils/rawconfig.py +0 -0
  402. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/utils/state.py +0 -0
  403. {khoj-1.32.2.dev3 → khoj-1.32.2.dev5}/src/khoj/utils/yaml.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: khoj
3
- Version: 1.32.2.dev3
3
+ Version: 1.32.2.dev5
4
4
  Summary: Your Second Brain
5
5
  Project-URL: Homepage, https://khoj.dev
6
6
  Project-URL: Documentation, https://docs.khoj.dev
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en" class="__variable_f36179 __variable_702545"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/1d8a05b60287ae6c-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/77c207b095007c34-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/82ef96de0e8f4d8c-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/a6ecd16fa044d500-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/bd82c78e5b7b3fe9-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/c4250770ab8708b6-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/e098aaaecc9cfbb2-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/089de1d8526b96e9.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/65ac59e147eb2057.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-81fb63f79021b56c.js"/><script src="/_next/static/chunks/fd9d1056-4482b99a36fd1673.js" async=""></script><script src="/_next/static/chunks/2117-9886e6a0232dc093.js" async=""></script><script src="/_next/static/chunks/main-app-de1f09df97a3cfc7.js" async=""></script><meta name="robots" content="noindex"/><meta http-equiv="Content-Security-Policy" content="default-src &#x27;self&#x27; https://assets.khoj.dev; media-src * blob:; script-src &#x27;self&#x27; https://assets.khoj.dev https://app.chatwoot.com https://accounts.google.com &#x27;unsafe-inline&#x27; &#x27;unsafe-eval&#x27;; connect-src &#x27;self&#x27; blob: https://ipapi.co/json ws://localhost:42110 https://accounts.google.com; style-src &#x27;self&#x27; https://assets.khoj.dev &#x27;unsafe-inline&#x27; https://fonts.googleapis.com https://accounts.google.com; img-src &#x27;self&#x27; data: blob: https://*.khoj.dev https://accounts.google.com https://*.googleusercontent.com https://*.google.com/ https://*.gstatic.com; font-src &#x27;self&#x27; https://assets.khoj.dev https://fonts.gstatic.com; frame-src &#x27;self&#x27; https://accounts.google.com; child-src &#x27;self&#x27; https://app.chatwoot.com; object-src &#x27;none&#x27;;"/><title>404: This page could not be found.</title><title>Khoj AI - Ask Anything</title><meta name="description" content="Khoj is a personal research assistant. It helps you understand better and create faster."/><link rel="manifest" href="/static/khoj.webmanifest" crossorigin="use-credentials"/><meta name="keywords" content="research assistant, productivity, AI, Khoj, open source, model agnostic, research, productivity tool, personal assistant, personal research assistant, personal productivity assistant"/><meta property="og:title" content="Khoj AI"/><meta property="og:description" content="Khoj is a personal research assistant. It helps you understand better and create faster."/><meta property="og:url" content="https://app.khoj.dev/"/><meta property="og:site_name" content="Khoj AI"/><meta property="og:image" content="https://assets.khoj.dev/khoj_hero.png"/><meta property="og:image:width" content="940"/><meta property="og:image:height" content="525"/><meta property="og:image" content="https://assets.khoj.dev/khoj_lantern_256x256.png"/><meta property="og:image:width" content="256"/><meta property="og:image:height" content="256"/><meta property="og:image" content="https://assets.khoj.dev/khoj_lantern_logomarktype_1200x630.png"/><meta property="og:image:width" content="1200"/><meta property="og:image:height" content="630"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:title" content="Khoj AI"/><meta name="twitter:description" content="Khoj is a personal research assistant. It helps you understand better and create faster."/><meta name="twitter:image" content="https://assets.khoj.dev/khoj_hero.png"/><meta name="twitter:image:width" content="940"/><meta name="twitter:image:height" content="525"/><meta name="twitter:image" content="https://assets.khoj.dev/khoj_lantern_256x256.png"/><meta name="twitter:image:width" content="256"/><meta name="twitter:image:height" content="256"/><meta name="twitter:image" content="https://assets.khoj.dev/khoj_lantern_logomarktype_1200x630.png"/><meta name="twitter:image:width" content="1200"/><meta name="twitter:image:height" content="630"/><link rel="icon" href="/static/assets/icons/khoj_lantern.ico"/><link rel="apple-touch-icon" href="/static/assets/icons/khoj_lantern_256x256.png"/><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-81fb63f79021b56c.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/media/1d8a05b60287ae6c-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/_next/static/media/77c207b095007c34-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n3:HL[\"/_next/static/media/82ef96de0e8f4d8c-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n4:HL[\"/_next/static/media/a6ecd16fa044d500-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n5:HL[\"/_next/static/media/bd82c78e5b7b3fe9-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n6:HL[\"/_next/static/media/c4250770ab8708b6-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n7:HL[\"/_next/static/media/e098aaaecc9cfbb2-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n8:HL[\"/_next/static/css/089de1d8526b96e9.css\",\"style\"]\n9:HL[\"/_next/static/css/65ac59e147eb2057.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"a:I[12846,[],\"\"]\nc:I[4707,[],\"\"]\nd:I[36423,[],\"\"]\n13:I[61060,[],\"\"]\ne:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\nf:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n10:{\"display\":\"inline-block\"}\n11:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\n14:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$La\",null,{\"buildId\":\"cV9d70z6WtGn0x0rOuzzU\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\",\"\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$Lb\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$Lc\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Ld\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/089de1d8526b96e9.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/65ac59e147eb2057.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"__variable_f36179 __variable_702545\",\"children\":[[\"$\",\"meta\",null,{\"httpEquiv\":\"Content-Security-Policy\",\"content\":\"default-src 'self' https://assets.khoj.dev; media-src * blob:; script-src 'self' https://assets.khoj.dev https://app.chatwoot.com https://accounts.google.com 'unsafe-inline' 'unsafe-eval'; connect-src 'self' blob: https://ipapi.co/json ws://localhost:42110 https://accounts.google.com; style-src 'self' https://assets.khoj.dev 'unsafe-inline' https://fonts.googleapis.com https://accounts.google.com; img-src 'self' data: blob: https://*.khoj.dev https://accounts.google.com https://*.googleusercontent.com https://*.google.com/ https://*.gstatic.com; font-src 'self' https://assets.khoj.dev https://fonts.gstatic.com; frame-src 'self' https://accounts.google.com; child-src 'self' https://app.chatwoot.com; object-src 'none';\"}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$Lc\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Ld\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$e\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$f\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$10\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$11\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$L12\"],\"globalErrorComponent\":\"$13\",\"missingSlots\":\"$W14\"}]\n"])</script><script>self.__next_f.push([1,"12:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Khoj AI - Ask Anything\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Khoj is a personal research assistant. It helps you understand better and create faster.\"}],[\"$\",\"link\",\"4\",{\"rel\":\"manifest\",\"href\":\"/static/khoj.webmanifest\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"5\",{\"name\":\"keywords\",\"content\":\"research assistant, productivity, AI, Khoj, open source, model agnostic, research, productivity tool, personal assistant, personal research assistant, personal productivity assistant\"}],[\"$\",\"meta\",\"6\",{\"property\":\"og:title\",\"content\":\"Khoj AI\"}],[\"$\",\"meta\",\"7\",{\"property\":\"og:description\",\"content\":\"Khoj is a personal research assistant. It helps you understand better and create faster.\"}],[\"$\",\"meta\",\"8\",{\"property\":\"og:url\",\"content\":\"https://app.khoj.dev/\"}],[\"$\",\"meta\",\"9\",{\"property\":\"og:site_name\",\"content\":\"Khoj AI\"}],[\"$\",\"meta\",\"10\",{\"property\":\"og:image\",\"content\":\"https://assets.khoj.dev/khoj_hero.png\"}],[\"$\",\"meta\",\"11\",{\"property\":\"og:image:width\",\"content\":\"940\"}],[\"$\",\"meta\",\"12\",{\"property\":\"og:image:height\",\"content\":\"525\"}],[\"$\",\"meta\",\"13\",{\"property\":\"og:image\",\"content\":\"https://assets.khoj.dev/khoj_lantern_256x256.png\"}],[\"$\",\"meta\",\"14\",{\"property\":\"og:image:width\",\"content\":\"256\"}],[\"$\",\"meta\",\"15\",{\"property\":\"og:image:height\",\"content\":\"256\"}],[\"$\",\"meta\",\"16\",{\"property\":\"og:image\",\"content\":\"https://assets.khoj.dev/khoj_lantern_logomarktype_1200x630.png\"}],[\"$\",\"meta\",\"17\",{\"property\":\"og:image:width\",\"content\":\"1200\"}],[\"$\",\"meta\",\"18\",{\"property\":\"og:image:height\",\"content\":\"630\"}],[\"$\",\"meta\",\"19\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"20\",{\"name\":\"twitter:card\",\"content\":\"summary_large_image\"}],[\"$\",\"meta\",\"21\",{\"name\":\"twitter:title\",\"content\":\"Khoj AI\"}],[\"$\",\"meta\",\"22\",{\"name\":\"twitter:description\",\"content\":\"Khoj is a personal research assistant. It helps you understand better and create faster.\"}],[\"$\",\"meta\",\"23\",{\"name\":\"twitter:image\",\"content\":\"https://assets.khoj.dev/khoj_hero.png\"}],[\"$\",\"meta\",\"24\",{\"name\":\"twitter:image:width\",\"content\":\"940\"}],[\"$\",\"meta\",\"25\",{\"name\":\"twitter:image:height\",\"content\":\"525\"}],[\"$\",\"meta\",\"26\",{\"name\":\"twitter:image\",\"content\":\"https://assets.khoj.dev/khoj_lantern_256x256.png\"}],[\"$\",\"meta\",\"27\",{\"name\":\"twitter:image:width\",\"content\":\"256\"}],[\"$\",\"meta\",\"28\",{\"name\":\"twitter:image:height\",\"content\":\"256\"}],[\"$\",\"meta\",\"29\",{\"name\":\"twitter:image\",\"content\":\"https://assets.khoj.dev/khoj_lantern_logomarktype_1200x630.png\"}],[\"$\",\"meta\",\"30\",{\"name\":\"twitter:image:width\",\"content\":\"1200\"}],[\"$\",\"meta\",\"31\",{\"name\":\"twitter:image:height\",\"content\":\"630\"}],[\"$\",\"link\",\"32\",{\"rel\":\"icon\",\"href\":\"/static/assets/icons/khoj_lantern.ico\"}],[\"$\",\"link\",\"33\",{\"rel\":\"apple-touch-icon\",\"href\":\"/static/assets/icons/khoj_lantern_256x256.png\"}],[\"$\",\"meta\",\"34\",{\"name\":\"next-size-adjust\"}]]\n"])</script><script>self.__next_f.push([1,"b:null\n"])</script></body></html>
1
+ <!DOCTYPE html><html lang="en" class="__variable_f36179 __variable_702545"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/1d8a05b60287ae6c-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/77c207b095007c34-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/82ef96de0e8f4d8c-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/a6ecd16fa044d500-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/bd82c78e5b7b3fe9-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/c4250770ab8708b6-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/e098aaaecc9cfbb2-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/089de1d8526b96e9.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/65ac59e147eb2057.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-031fd7ef41706d41.js"/><script src="/_next/static/chunks/fd9d1056-4482b99a36fd1673.js" async=""></script><script src="/_next/static/chunks/2117-9886e6a0232dc093.js" async=""></script><script src="/_next/static/chunks/main-app-de1f09df97a3cfc7.js" async=""></script><meta name="robots" content="noindex"/><meta http-equiv="Content-Security-Policy" content="default-src &#x27;self&#x27; https://assets.khoj.dev; media-src * blob:; script-src &#x27;self&#x27; https://assets.khoj.dev https://app.chatwoot.com https://accounts.google.com &#x27;unsafe-inline&#x27; &#x27;unsafe-eval&#x27;; connect-src &#x27;self&#x27; blob: https://ipapi.co/json ws://localhost:42110 https://accounts.google.com; style-src &#x27;self&#x27; https://assets.khoj.dev &#x27;unsafe-inline&#x27; https://fonts.googleapis.com https://accounts.google.com; img-src &#x27;self&#x27; data: blob: https://*.khoj.dev https://accounts.google.com https://*.googleusercontent.com https://*.google.com/ https://*.gstatic.com; font-src &#x27;self&#x27; https://assets.khoj.dev https://fonts.gstatic.com; frame-src &#x27;self&#x27; https://accounts.google.com; child-src &#x27;self&#x27; https://app.chatwoot.com; object-src &#x27;none&#x27;;"/><title>404: This page could not be found.</title><title>Khoj AI - Ask Anything</title><meta name="description" content="Khoj is a personal research assistant. It helps you understand better and create faster."/><link rel="manifest" href="/static/khoj.webmanifest" crossorigin="use-credentials"/><meta name="keywords" content="research assistant, productivity, AI, Khoj, open source, model agnostic, research, productivity tool, personal assistant, personal research assistant, personal productivity assistant"/><meta property="og:title" content="Khoj AI"/><meta property="og:description" content="Khoj is a personal research assistant. It helps you understand better and create faster."/><meta property="og:url" content="https://app.khoj.dev/"/><meta property="og:site_name" content="Khoj AI"/><meta property="og:image" content="https://assets.khoj.dev/khoj_hero.png"/><meta property="og:image:width" content="940"/><meta property="og:image:height" content="525"/><meta property="og:image" content="https://assets.khoj.dev/khoj_lantern_256x256.png"/><meta property="og:image:width" content="256"/><meta property="og:image:height" content="256"/><meta property="og:image" content="https://assets.khoj.dev/khoj_lantern_logomarktype_1200x630.png"/><meta property="og:image:width" content="1200"/><meta property="og:image:height" content="630"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:title" content="Khoj AI"/><meta name="twitter:description" content="Khoj is a personal research assistant. It helps you understand better and create faster."/><meta name="twitter:image" content="https://assets.khoj.dev/khoj_hero.png"/><meta name="twitter:image:width" content="940"/><meta name="twitter:image:height" content="525"/><meta name="twitter:image" content="https://assets.khoj.dev/khoj_lantern_256x256.png"/><meta name="twitter:image:width" content="256"/><meta name="twitter:image:height" content="256"/><meta name="twitter:image" content="https://assets.khoj.dev/khoj_lantern_logomarktype_1200x630.png"/><meta name="twitter:image:width" content="1200"/><meta name="twitter:image:height" content="630"/><link rel="icon" href="/static/assets/icons/khoj_lantern.ico"/><link rel="apple-touch-icon" href="/static/assets/icons/khoj_lantern_256x256.png"/><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-031fd7ef41706d41.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/media/1d8a05b60287ae6c-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n2:HL[\"/_next/static/media/77c207b095007c34-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n3:HL[\"/_next/static/media/82ef96de0e8f4d8c-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n4:HL[\"/_next/static/media/a6ecd16fa044d500-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n5:HL[\"/_next/static/media/bd82c78e5b7b3fe9-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n6:HL[\"/_next/static/media/c4250770ab8708b6-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n7:HL[\"/_next/static/media/e098aaaecc9cfbb2-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n8:HL[\"/_next/static/css/089de1d8526b96e9.css\",\"style\"]\n9:HL[\"/_next/static/css/65ac59e147eb2057.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"a:I[12846,[],\"\"]\nc:I[4707,[],\"\"]\nd:I[36423,[],\"\"]\n13:I[61060,[],\"\"]\ne:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\nf:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n10:{\"display\":\"inline-block\"}\n11:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\n14:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$La\",null,{\"buildId\":\"EdJrUgX27r5xCkYXFDNO8\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\",\"\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$Lb\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$Lc\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Ld\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/089de1d8526b96e9.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/65ac59e147eb2057.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"__variable_f36179 __variable_702545\",\"children\":[[\"$\",\"meta\",null,{\"httpEquiv\":\"Content-Security-Policy\",\"content\":\"default-src 'self' https://assets.khoj.dev; media-src * blob:; script-src 'self' https://assets.khoj.dev https://app.chatwoot.com https://accounts.google.com 'unsafe-inline' 'unsafe-eval'; connect-src 'self' blob: https://ipapi.co/json ws://localhost:42110 https://accounts.google.com; style-src 'self' https://assets.khoj.dev 'unsafe-inline' https://fonts.googleapis.com https://accounts.google.com; img-src 'self' data: blob: https://*.khoj.dev https://accounts.google.com https://*.googleusercontent.com https://*.google.com/ https://*.gstatic.com; font-src 'self' https://assets.khoj.dev https://fonts.gstatic.com; frame-src 'self' https://accounts.google.com; child-src 'self' https://app.chatwoot.com; object-src 'none';\"}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$Lc\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$Ld\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$e\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$f\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$10\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$11\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$L12\"],\"globalErrorComponent\":\"$13\",\"missingSlots\":\"$W14\"}]\n"])</script><script>self.__next_f.push([1,"12:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Khoj AI - Ask Anything\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Khoj is a personal research assistant. It helps you understand better and create faster.\"}],[\"$\",\"link\",\"4\",{\"rel\":\"manifest\",\"href\":\"/static/khoj.webmanifest\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"5\",{\"name\":\"keywords\",\"content\":\"research assistant, productivity, AI, Khoj, open source, model agnostic, research, productivity tool, personal assistant, personal research assistant, personal productivity assistant\"}],[\"$\",\"meta\",\"6\",{\"property\":\"og:title\",\"content\":\"Khoj AI\"}],[\"$\",\"meta\",\"7\",{\"property\":\"og:description\",\"content\":\"Khoj is a personal research assistant. It helps you understand better and create faster.\"}],[\"$\",\"meta\",\"8\",{\"property\":\"og:url\",\"content\":\"https://app.khoj.dev/\"}],[\"$\",\"meta\",\"9\",{\"property\":\"og:site_name\",\"content\":\"Khoj AI\"}],[\"$\",\"meta\",\"10\",{\"property\":\"og:image\",\"content\":\"https://assets.khoj.dev/khoj_hero.png\"}],[\"$\",\"meta\",\"11\",{\"property\":\"og:image:width\",\"content\":\"940\"}],[\"$\",\"meta\",\"12\",{\"property\":\"og:image:height\",\"content\":\"525\"}],[\"$\",\"meta\",\"13\",{\"property\":\"og:image\",\"content\":\"https://assets.khoj.dev/khoj_lantern_256x256.png\"}],[\"$\",\"meta\",\"14\",{\"property\":\"og:image:width\",\"content\":\"256\"}],[\"$\",\"meta\",\"15\",{\"property\":\"og:image:height\",\"content\":\"256\"}],[\"$\",\"meta\",\"16\",{\"property\":\"og:image\",\"content\":\"https://assets.khoj.dev/khoj_lantern_logomarktype_1200x630.png\"}],[\"$\",\"meta\",\"17\",{\"property\":\"og:image:width\",\"content\":\"1200\"}],[\"$\",\"meta\",\"18\",{\"property\":\"og:image:height\",\"content\":\"630\"}],[\"$\",\"meta\",\"19\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"20\",{\"name\":\"twitter:card\",\"content\":\"summary_large_image\"}],[\"$\",\"meta\",\"21\",{\"name\":\"twitter:title\",\"content\":\"Khoj AI\"}],[\"$\",\"meta\",\"22\",{\"name\":\"twitter:description\",\"content\":\"Khoj is a personal research assistant. It helps you understand better and create faster.\"}],[\"$\",\"meta\",\"23\",{\"name\":\"twitter:image\",\"content\":\"https://assets.khoj.dev/khoj_hero.png\"}],[\"$\",\"meta\",\"24\",{\"name\":\"twitter:image:width\",\"content\":\"940\"}],[\"$\",\"meta\",\"25\",{\"name\":\"twitter:image:height\",\"content\":\"525\"}],[\"$\",\"meta\",\"26\",{\"name\":\"twitter:image\",\"content\":\"https://assets.khoj.dev/khoj_lantern_256x256.png\"}],[\"$\",\"meta\",\"27\",{\"name\":\"twitter:image:width\",\"content\":\"256\"}],[\"$\",\"meta\",\"28\",{\"name\":\"twitter:image:height\",\"content\":\"256\"}],[\"$\",\"meta\",\"29\",{\"name\":\"twitter:image\",\"content\":\"https://assets.khoj.dev/khoj_lantern_logomarktype_1200x630.png\"}],[\"$\",\"meta\",\"30\",{\"name\":\"twitter:image:width\",\"content\":\"1200\"}],[\"$\",\"meta\",\"31\",{\"name\":\"twitter:image:height\",\"content\":\"630\"}],[\"$\",\"link\",\"32\",{\"rel\":\"icon\",\"href\":\"/static/assets/icons/khoj_lantern.ico\"}],[\"$\",\"link\",\"33\",{\"rel\":\"apple-touch-icon\",\"href\":\"/static/assets/icons/khoj_lantern_256x256.png\"}],[\"$\",\"meta\",\"34\",{\"name\":\"next-size-adjust\"}]]\n"])</script><script>self.__next_f.push([1,"b:null\n"])</script></body></html>
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8459,7138,244,3317],{63521:function(){}},function(n){n.O(0,[2971,2117,1744],function(){return n(n.s=63521)}),_N_E=n.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9718],{1813:function(e,t,a){Promise.resolve().then(a.bind(a,37335))},37335:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return O}});var n=a(57437),l=a(14675),o=a.n(l),s=a(63861),i=a(2265),r=a(56937),d=a(89203),c=a(78527),u=a(26110),p=a(33494),m=a(14308),f=a(92813),g=a(65613),h=a(7436),x=a(9262),v=a(29501),b=a(13590);let _=()=>window.fetch("/api/agents").then(e=>e.json()).catch(e=>console.log(e)),j=e=>fetch(e).then(e=>e.json());function y(e){let[t,a]=(0,i.useState)(!1),[l,o]=(0,i.useState)(null),[s,r]=(0,i.useState)(!0),c=(0,v.cI)({resolver:(0,b.F)(x.bc),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:[]}});return(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]),(0,n.jsxs)(u.Vq,{open:t,onOpenChange:a,children:[(0,n.jsx)(u.hg,{children:(0,n.jsxs)("div",{className:"flex items-center text-md gap-2",children:[(0,n.jsx)(d.v,{}),"Create Agent"]})}),(0,n.jsxs)(u.cZ,{className:"lg:max-w-screen-lg overflow-y-scroll max-h-screen",children:[(0,n.jsx)(u.fK,{children:"Create Agent"}),!e.userProfile&&s&&(0,n.jsx)(p.Z,{loginRedirectMessage:"Sign in to start chatting with a specialized agent",onOpenChange:r,isMobileWidth:e.isMobileWidth}),(0,n.jsx)(x.ks,{form:c,onSubmit:t=>{fetch("/api/agents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(t=>{200===t.status?(c.reset(),a(!1),o(null),e.setAgentChangeTriggered(!0)):t.json().then(e=>{console.error(e),e.error&&o(e.error)})}).catch(e=>{console.error("Error:",e),o(e)})},create:!0,errors:l,filesOptions:e.filesOptions,modelOptions:e.modelOptions,inputToolOptions:e.inputToolOptions,outputModeOptions:e.outputModeOptions,isSubscribed:e.isSubscribed})]})]})}function O(){let{data:e,error:t,mutate:a}=(0,s.ZP)("agents",_,{revalidateOnFocus:!1}),l=(0,r.GW)(),{userConfig:d}=(0,r.h2)(!0),[u,v]=(0,i.useState)(!1),b=(0,h.IC)(),[O,w]=(0,i.useState)([]),[N,M]=(0,i.useState)([]),[L,E]=(0,i.useState)(null),{data:C,error:S}=(0,s.ZP)(d?"/api/content/computer":null,j),{data:P,error:Z}=(0,s.ZP)("/api/agents/options",j),[A,T]=(0,i.useState)(!1);if((0,i.useEffect)(()=>{A&&(a(),T(!1))},[A]),(0,i.useEffect)(()=>{if(e){w(e.filter(e=>e.creator===(null==l?void 0:l.username)));let t=e.filter(e=>"private"!==e.privacy_level&&e.creator!==(null==l?void 0:l.username));M(t);{let a=new URLSearchParams(window.location.search).get("agent");if(a){E(a);let n=e.find(e=>e.slug===a);n||(n=t.find(e=>e.slug===a)),n||fetch("/api/agents/".concat(a)).then(e=>{if(404===e.status)throw Error("Agent not found");return e.json()}).then(e=>{"protected"===e.privacy_level&&M(t=>[...t,e])})}}}},[e,l]),t)return(0,n.jsxs)("main",{className:o().main,children:[(0,n.jsx)("div",{className:"".concat(o().titleBar," text-5xl"),children:"Agents"}),(0,n.jsx)("div",{className:o().agentList,children:"Error loading agents"})]});if(!e)return(0,n.jsx)("main",{className:o().main,children:(0,n.jsxs)("div",{className:o().agentList,children:[(0,n.jsx)(m.l,{})," booting up your agents"]})});let z=(null==d?void 0:d.chat_model_options)||[],F=(null==d?void 0:d.selected_chat_model_config)||0,k=(0,r.T8)(d),R=z.find(e=>e.id===F);return(0,n.jsx)("main",{className:"w-full mx-auto",children:(0,n.jsxs)("div",{className:"grid w-full mx-auto",children:[(0,n.jsx)("div",{className:"".concat(o().sidePanel," top-0"),children:(0,n.jsx)(f.ZP,{conversationId:null,uploadedFiles:[],isMobileWidth:b})}),(0,n.jsxs)("div",{className:"".concat(o().pageLayout," w-full"),children:[(0,n.jsxs)("div",{className:"pt-6 md:pt-8 flex justify-between",children:[(0,n.jsx)("h1",{className:"text-3xl flex items-center",children:"Agents"}),(0,n.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,n.jsx)(y,{data:{slug:"",name:"",persona:"",color:"",icon:"",privacy_level:"private",managed_by_admin:!1,chat_model:"",input_tools:[],output_modes:[]},userProfile:l,isMobileWidth:b,filesOptions:C||[],modelOptions:(null==d?void 0:d.chat_model_options)||[],selectedChatModelOption:(null==R?void 0:R.name)||"",isSubscribed:k,setAgentChangeTriggered:T,inputToolOptions:(null==P?void 0:P.input_tools)||{},outputModeOptions:(null==P?void 0:P.output_modes)||{}})})]}),u&&(0,n.jsx)(p.Z,{loginRedirectMessage:"Sign in to start chatting with a specialized agent",onOpenChange:v,isMobileWidth:b}),(0,n.jsx)(g.bZ,{className:"bg-secondary border-none my-4",children:(0,n.jsxs)(g.X,{children:[(0,n.jsx)(c.B,{weight:"fill",className:"h-4 w-4 text-purple-400 inline"}),(0,n.jsx)("span",{className:"font-bold",children:"How it works"})," Use any of these specialized personas to tune your conversation to your needs."]})}),(0,n.jsx)("div",{className:"pt-6 md:pt-8",children:(0,n.jsx)("div",{className:"".concat(o().agentList),children:O.map(e=>(0,n.jsx)(x.EY,{data:e,userProfile:l,isMobileWidth:b,filesOptions:null!=C?C:[],selectedChatModelOption:(null==R?void 0:R.name)||"",isSubscribed:k,setAgentChangeTriggered:T,modelOptions:(null==d?void 0:d.chat_model_options)||[],editCard:!0,agentSlug:L||"",inputToolOptions:(null==P?void 0:P.input_tools)||{},outputModeOptions:(null==P?void 0:P.output_modes)||{}},e.slug))})}),(0,n.jsxs)("div",{className:"pt-6 md:pt-8",children:[(0,n.jsx)("h2",{className:"text-2xl",children:"Explore"}),(0,n.jsx)("div",{className:"".concat(o().agentList),children:N.map(e=>(0,n.jsx)(x.EY,{data:e,userProfile:l,isMobileWidth:b,editCard:!1,filesOptions:null!=C?C:[],selectedChatModelOption:(null==R?void 0:R.name)||"",isSubscribed:k,setAgentChangeTriggered:T,modelOptions:(null==d?void 0:d.chat_model_options)||[],agentSlug:L||"",inputToolOptions:(null==P?void 0:P.input_tools)||{},outputModeOptions:(null==P?void 0:P.output_modes)||{}},e.slug))})]})]})]})})}},32759:function(e,t,a){"use strict";a.d(t,{E:function(){return i}});var n=a(57437),l=a(2265),o=a(60610),s=a(94508);let i=l.forwardRef((e,t)=>{let{className:a,value:l,indicatorColor:i,...r}=e;return(0,n.jsx)(o.fC,{ref:t,className:(0,s.cn)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",a),...r,children:(0,n.jsx)(o.z$,{className:"h-full w-full flex-1 bg-primary transition-all ".concat(i),style:{transform:"translateX(-".concat(100-(l||0),"%)")}})})});i.displayName=o.fC.displayName},76818:function(e,t,a){"use strict";a.d(t,{g:function(){return s}});var n=a(57437),l=a(2265),o=a(94508);let s=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,n.jsx)("textarea",{className:(0,o.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 disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...l})});s.displayName="Textarea"},81103:function(e,t,a){"use strict";a.d(t,{_v:function(){return c},aJ:function(){return d},pn:function(){return i},u:function(){return r}});var n=a(57437),l=a(2265),o=a(61312),s=a(94508);let i=o.zt,r=o.fC,d=o.xz,c=l.forwardRef((e,t)=>{let{className:a,sideOffset:l=4,...i}=e;return(0,n.jsx)(o.VY,{ref:t,sideOffset:l,className:(0,s.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",a),...i})});c.displayName=o.VY.displayName},14675: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"}},78527:function(e,t,a){"use strict";a.d(t,{B:function(){return g}});var n=a(2265),l=a(49656);let o=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),n.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z"}))]]);var s=Object.defineProperty,i=Object.defineProperties,r=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,p=(e,t,a)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,m=(e,t)=>{for(var a in t||(t={}))c.call(t,a)&&p(e,a,t[a]);if(d)for(var a of d(t))u.call(t,a)&&p(e,a,t[a]);return e},f=(e,t)=>i(e,r(t));let g=(0,n.forwardRef)((e,t)=>n.createElement(l.Z,f(m({ref:t},e),{weights:o})));g.displayName="Lightning"}},function(e){e.O(0,[2693,5540,8407,8667,5401,6589,8117,1662,2813,9262,2971,2117,1744],function(){return e(e.s=1813)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9718],{1813:function(e,t,a){Promise.resolve().then(a.bind(a,37335))},37335:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return O}});var n=a(57437),l=a(14675),o=a.n(l),s=a(63861),i=a(2265),r=a(56937),d=a(89203),c=a(78527),u=a(26110),p=a(33494),m=a(14308),f=a(92813),g=a(65613),h=a(7436),x=a(9262),v=a(29501),b=a(13590);let _=()=>window.fetch("/api/agents").then(e=>e.json()).catch(e=>console.log(e)),j=e=>fetch(e).then(e=>e.json());function y(e){let[t,a]=(0,i.useState)(!1),[l,o]=(0,i.useState)(null),[s,r]=(0,i.useState)(!0),c=(0,v.cI)({resolver:(0,b.F)(x.bc),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:[]}});return(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]),(0,n.jsxs)(u.Vq,{open:t,onOpenChange:a,children:[(0,n.jsx)(u.hg,{children:(0,n.jsxs)("div",{className:"flex items-center text-md gap-2",children:[(0,n.jsx)(d.v,{}),"Create Agent"]})}),(0,n.jsxs)(u.cZ,{className:"lg:max-w-screen-lg overflow-y-scroll max-h-screen",children:[(0,n.jsx)(u.fK,{children:"Create Agent"}),!e.userProfile&&s&&(0,n.jsx)(p.Z,{loginRedirectMessage:"Sign in to start chatting with a specialized agent",onOpenChange:r,isMobileWidth:e.isMobileWidth}),(0,n.jsx)(x.ks,{form:c,onSubmit:t=>{fetch("/api/agents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(t=>{200===t.status?(c.reset(),a(!1),o(null),e.setAgentChangeTriggered(!0)):t.json().then(e=>{console.error(e),e.error&&o(e.error)})}).catch(e=>{console.error("Error:",e),o(e)})},create:!0,errors:l,filesOptions:e.filesOptions,modelOptions:e.modelOptions,inputToolOptions:e.inputToolOptions,outputModeOptions:e.outputModeOptions,isSubscribed:e.isSubscribed})]})]})}function O(){let{data:e,error:t,mutate:a}=(0,s.ZP)("agents",_,{revalidateOnFocus:!1}),l=(0,r.GW)(),{userConfig:d}=(0,r.h2)(!0),[u,v]=(0,i.useState)(!1),b=(0,h.IC)(),[O,w]=(0,i.useState)([]),[N,M]=(0,i.useState)([]),[L,E]=(0,i.useState)(null),{data:C,error:S}=(0,s.ZP)(d?"/api/content/computer":null,j),{data:P,error:Z}=(0,s.ZP)("/api/agents/options",j),[A,T]=(0,i.useState)(!1);if((0,i.useEffect)(()=>{A&&(a(),T(!1))},[A]),(0,i.useEffect)(()=>{if(e){w(e.filter(e=>e.creator===(null==l?void 0:l.username)));let t=e.filter(e=>"private"!==e.privacy_level&&e.creator!==(null==l?void 0:l.username));M(t);{let a=new URLSearchParams(window.location.search).get("agent");if(a){E(a);let n=e.find(e=>e.slug===a);n||(n=t.find(e=>e.slug===a)),n||fetch("/api/agents/".concat(a)).then(e=>{if(404===e.status)throw Error("Agent not found");return e.json()}).then(e=>{"protected"===e.privacy_level&&M(t=>[...t,e])})}}}},[e,l]),t)return(0,n.jsxs)("main",{className:o().main,children:[(0,n.jsx)("div",{className:"".concat(o().titleBar," text-5xl"),children:"Agents"}),(0,n.jsx)("div",{className:o().agentList,children:"Error loading agents"})]});if(!e)return(0,n.jsx)("main",{className:o().main,children:(0,n.jsxs)("div",{className:o().agentList,children:[(0,n.jsx)(m.l,{})," booting up your agents"]})});let z=(null==d?void 0:d.chat_model_options)||[],F=(null==d?void 0:d.selected_chat_model_config)||0,k=(0,r.T8)(d),R=z.find(e=>e.id===F);return(0,n.jsx)("main",{className:"w-full mx-auto",children:(0,n.jsxs)("div",{className:"grid w-full mx-auto",children:[(0,n.jsx)("div",{className:"".concat(o().sidePanel," top-0"),children:(0,n.jsx)(f.ZP,{conversationId:null,uploadedFiles:[],isMobileWidth:b})}),(0,n.jsxs)("div",{className:"".concat(o().pageLayout," w-full"),children:[(0,n.jsxs)("div",{className:"pt-6 md:pt-8 flex justify-between",children:[(0,n.jsx)("h1",{className:"text-3xl flex items-center",children:"Agents"}),(0,n.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,n.jsx)(y,{data:{slug:"",name:"",persona:"",color:"",icon:"",privacy_level:"private",managed_by_admin:!1,chat_model:"",input_tools:[],output_modes:[]},userProfile:l,isMobileWidth:b,filesOptions:C||[],modelOptions:(null==d?void 0:d.chat_model_options)||[],selectedChatModelOption:(null==R?void 0:R.name)||"",isSubscribed:k,setAgentChangeTriggered:T,inputToolOptions:(null==P?void 0:P.input_tools)||{},outputModeOptions:(null==P?void 0:P.output_modes)||{}})})]}),u&&(0,n.jsx)(p.Z,{loginRedirectMessage:"Sign in to start chatting with a specialized agent",onOpenChange:v,isMobileWidth:b}),(0,n.jsx)(g.bZ,{className:"bg-secondary border-none my-4",children:(0,n.jsxs)(g.X,{children:[(0,n.jsx)(c.B,{weight:"fill",className:"h-4 w-4 text-purple-400 inline"}),(0,n.jsx)("span",{className:"font-bold",children:"How it works"})," Use any of these specialized personas to tune your conversation to your needs."]})}),(0,n.jsx)("div",{className:"pt-6 md:pt-8",children:(0,n.jsx)("div",{className:"".concat(o().agentList),children:O.map(e=>(0,n.jsx)(x.EY,{data:e,userProfile:l,isMobileWidth:b,filesOptions:null!=C?C:[],selectedChatModelOption:(null==R?void 0:R.name)||"",isSubscribed:k,setAgentChangeTriggered:T,modelOptions:(null==d?void 0:d.chat_model_options)||[],editCard:!0,agentSlug:L||"",inputToolOptions:(null==P?void 0:P.input_tools)||{},outputModeOptions:(null==P?void 0:P.output_modes)||{}},e.slug))})}),(0,n.jsxs)("div",{className:"pt-6 md:pt-8",children:[(0,n.jsx)("h2",{className:"text-2xl",children:"Explore"}),(0,n.jsx)("div",{className:"".concat(o().agentList),children:N.map(e=>(0,n.jsx)(x.EY,{data:e,userProfile:l,isMobileWidth:b,editCard:!1,filesOptions:null!=C?C:[],selectedChatModelOption:(null==R?void 0:R.name)||"",isSubscribed:k,setAgentChangeTriggered:T,modelOptions:(null==d?void 0:d.chat_model_options)||[],agentSlug:L||"",inputToolOptions:(null==P?void 0:P.input_tools)||{},outputModeOptions:(null==P?void 0:P.output_modes)||{}},e.slug))})]})]})]})})}},32759:function(e,t,a){"use strict";a.d(t,{E:function(){return i}});var n=a(57437),l=a(2265),o=a(60610),s=a(94508);let i=l.forwardRef((e,t)=>{let{className:a,value:l,indicatorColor:i,...r}=e;return(0,n.jsx)(o.fC,{ref:t,className:(0,s.cn)("relative h-4 w-full overflow-hidden rounded-full bg-secondary",a),...r,children:(0,n.jsx)(o.z$,{className:"h-full w-full flex-1 bg-primary transition-all ".concat(i),style:{transform:"translateX(-".concat(100-(l||0),"%)")}})})});i.displayName=o.fC.displayName},76818:function(e,t,a){"use strict";a.d(t,{g:function(){return s}});var n=a(57437),l=a(2265),o=a(94508);let s=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,n.jsx)("textarea",{className:(0,o.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 disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...l})});s.displayName="Textarea"},81103:function(e,t,a){"use strict";a.d(t,{_v:function(){return c},aJ:function(){return d},pn:function(){return i},u:function(){return r}});var n=a(57437),l=a(2265),o=a(61312),s=a(94508);let i=o.zt,r=o.fC,d=o.xz,c=l.forwardRef((e,t)=>{let{className:a,sideOffset:l=4,...i}=e;return(0,n.jsx)(o.VY,{ref:t,sideOffset:l,className:(0,s.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",a),...i})});c.displayName=o.VY.displayName},14675: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"}},78527:function(e,t,a){"use strict";a.d(t,{B:function(){return g}});var n=a(2265),l=a(49656);let o=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),n.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z"}))]]);var s=Object.defineProperty,i=Object.defineProperties,r=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,p=(e,t,a)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,m=(e,t)=>{for(var a in t||(t={}))c.call(t,a)&&p(e,a,t[a]);if(d)for(var a of d(t))u.call(t,a)&&p(e,a,t[a]);return e},f=(e,t)=>i(e,r(t));let g=(0,n.forwardRef)((e,t)=>n.createElement(l.Z,f(m({ref:t},e),{weights:o})));g.displayName="Lightning"}},function(e){e.O(0,[2693,7265,8407,8667,5401,6589,8117,1662,2813,9262,2971,2117,1744],function(){return e(e.s=1813)}),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4371],{2743:function(e,t,a){Promise.resolve().then(a.bind(a,77837))},77837:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return ef}});var n=a(57437),s=a(63861),r=a(14308),o=a(66070),i=a(62869),l=a(53647),c=a(47107),d=a.n(c),u=a(13590),m=a(29501),h=a(31229),f=a(2265),x=a(15681),p=a(95186),g=a(26110),j=a(49027),y=a(76818),w=a(7436),v=a(30190),N=a.n(v),b=a(97673),D=a(99376),k=a(57054),C=a(41317),S=a(87332),_=a(19841),I=a(3634),A=a(97822),M=a(93435),R=a(27484),T=a(39353),z=a(66594),P=a(12443),L=a(89203),W=a(78527),O=a(56937),q=a(33494),E=a(77992),U=a(89534),F=a(65613),V=a(92813),B=a(17814);let G=()=>window.fetch("/api/automations").then(e=>e.json()).catch(e=>console.log(e));function Z(e){let t=e.split(" "),a=t[2],n=t[4];return"*"===a&&"*"===n?"Day":"*"!==n?"Week":"*"!==a?"Month":"Day"}function J(e){let t=e.split(" ");if("*"===t[3]&&"*"!==t[4])return Number(t[4])}function Q(e){let t=e.split(" "),a=t[1],n=t[0],s=Number(a)>=12?"PM":"AM",r=Number(a)>12?Number(a)-12:a;"00"===r&&(r="12");let o=n;return 10>Number(o)&&"00"!==o&&(o="0".concat(o)),"".concat(r,":").concat(o," ").concat(s)}function X(e){return String(e.split(" ")[2])}function Y(e){return d().toString(e)}let H=["Day","Week","Month"],$=Array.from({length:31},(e,t)=>String(t+1)),K=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ee=[],et=["AM","PM"];for(var ea=0;ea<et.length;ea++)for(var en=0;en<12;en++)for(var es=0;es<60;es+=15){let e=String(es).padStart(2,"0"),t=0===en?12:en;ee.push("".concat(t,":").concat(e," ").concat(et[ea]))}let er=Date.now(),eo=[{subject:"Weekly Newsletter",query_to_run:"/research Compile a message including: 1. A recap of news from last week 2. An at-home workout I can do before work 3. A quote to inspire me for the week ahead",schedule:"9AM every Monday",next:"Next run at 9AM on Monday",crontime:"0 9 * * 1",id:er,scheduling_request:""},{subject:"Daily Bedtime Story",query_to_run:"Compose a bedtime story that a five-year-old might enjoy. It should not exceed five paragraphs. Appeal to the imagination, but weave in learnings.",schedule:"9PM every night",next:"Next run at 9PM today",crontime:"0 21 * * *",id:er+1,scheduling_request:""},{subject:"Front Page of Hacker News",query_to_run:"/research Summarize the top 5 posts from https://news.ycombinator.com/best and share them with me, including links",schedule:"9PM on every Wednesday",next:"Next run at 9PM on Wednesday",crontime:"0 21 * * 3",id:er+2,scheduling_request:""},{subject:"Market Summary",query_to_run:"/research Get the market summary for today and share it with me. Focus on tech stocks and the S&P 500.",schedule:"9AM on every weekday",next:"Next run at 9AM on Monday",crontime:"0 9 * * *",id:er+3,scheduling_request:""},{subject:"Market Crash Notification",query_to_run:"Notify me if the stock market fell by more than 5% today.",schedule:"5PM every evening",next:"Next run at 5PM today",crontime:"0 17 * * *",id:er+5,scheduling_request:""},{subject:"Round-up of research papers about AI in healthcare",query_to_run:"/research Summarize the top 3 research papers about AI in healthcare that were published in the last week. Include links to the full papers.",schedule:"9AM every Friday",next:"Next run at 9AM on Friday",crontime:"0 9 * * 5",id:er+4,scheduling_request:""}];function ei(e){let t=encodeURIComponent(e.subject),a=encodeURIComponent(e.query_to_run),n=encodeURIComponent(e.crontime);return"".concat(window.location.origin,"/automations?subject=").concat(t,"&query=").concat(a,"&crontime=").concat(n)}function el(e){let[t,a]=(0,f.useState)(!1),[s,r]=(0,f.useState)(null),[l,c]=(0,f.useState)(!1),[d,u]=(0,f.useState)(""),{toast:m}=(0,E.pm)(),h=e.automation,[x,p]=(0,f.useState)(""),[g,j]=(0,f.useState)("");return((0,f.useEffect)(()=>{let e=s||h;p(Q(e.crontime));let t=Z(e.crontime);if("Day"===t)j("Daily");else if("Week"===t){let t=J(e.crontime);void 0===t?j("Weekly"):j("".concat(K[t]))}else if("Month"===t){let t=X(e.crontime);j("Monthly on the ".concat(t))}},[s,h]),(0,f.useEffect)(()=>{let e="Automation: ".concat((null==s?void 0:s.subject)||h.subject);d&&(m({title:e,description:d,action:(0,n.jsx)(U.gD,{altText:"Dismiss",children:"Ok"})}),u(""))},[d,s,h,m]),l)?null:(0,n.jsxs)(o.Zb,{className:"bg-secondary h-full shadow-sm rounded-lg bg-gradient-to-b from-background to-slate-50 dark:to-gray-950 border ".concat(N().automationCard),children:[(0,n.jsx)(o.Ol,{children:(0,n.jsxs)(o.ll,{className:"line-clamp-2 leading-normal flex justify-between",children:[(null==s?void 0:s.subject)||h.subject,(0,n.jsxs)(k.J2,{children:[(0,n.jsx)(k.xo,{asChild:!0,children:(0,n.jsx)(i.z,{className:"bg-background",variant:"ghost",children:(0,n.jsx)(C.F,{className:"h-4 w-4"})})}),(0,n.jsxs)(k.yk,{className:"w-auto grid gap-2 text-left bg-secondary",children:[!e.suggestedCard&&e.locationData&&(0,n.jsx)(eh,{isMobileWidth:e.isMobileWidth,callToAction:"Edit",createNew:!1,setIsCreating:a,setShowLoginPrompt:e.setShowLoginPrompt,setNewAutomationData:r,authenticatedData:e.authenticatedData,isCreating:t,automation:s||h,ipLocationData:e.locationData}),(0,n.jsx)(b.Z,{buttonTitle:"Share",includeIcon:!0,buttonClassName:"justify-start px-4 py-2 h-10",buttonVariant:"outline",title:"Share Automation",description:"Copy the link below and share it with your coworkers or friends.",url:ei(h),onShare:()=>{navigator.clipboard.writeText(ei(h))}}),!e.suggestedCard&&(0,n.jsxs)(i.z,{variant:"outline",className:"justify-start",onClick:()=>{!function(e,t){fetch("/api/trigger/automation?automation_id=".concat(e),{method:"POST"}).then(e=>{if(!e.ok)throw Error("Network response was not ok");return e}).then(e=>{t("Automation triggered. Check your inbox in a few minutes!")}).catch(e=>{t("Sorry, something went wrong. Try again later.")})}(h.id.toString(),u)},children:[(0,n.jsx)(S.s,{className:"h-4 w-4 mr-2"}),"Run Now"]}),(0,n.jsxs)(i.z,{variant:"destructive",className:"justify-start",onClick:()=>{if(e.suggestedCard){c(!0);return}!function(e,t){fetch("/api/automation?automation_id=".concat(e),{method:"DELETE"}).then(e=>e.json()).then(e=>{t(!0)})}(h.id.toString(),c)},children:[(0,n.jsx)(_.r,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]})]})}),(0,n.jsx)(o.aY,{className:"text-secondary-foreground break-all",children:(null==s?void 0:s.query_to_run)||h.query_to_run}),(0,n.jsxs)(o.eW,{className:"flex flex-col items-start md:flex-row md:justify-between md:items-center gap-2",children:[(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsxs)("div",{className:"flex items-center bg-blue-50 rounded-lg p-1.5 border-blue-200 border dark:bg-blue-800 dark:border-blue-500",children:[(0,n.jsx)(I.T,{className:"h-4 w-4 mr-2 text-blue-700 dark:text-blue-300"}),(0,n.jsx)("div",{className:"text-s text-blue-700 dark:text-blue-300",children:x})]}),(0,n.jsxs)("div",{className:"flex items-center bg-purple-50 rounded-lg p-1.5 border-purple-200 border dark:bg-purple-800 dark:border-purple-500",children:[(0,n.jsx)(A.u,{className:"h-4 w-4 mr-2 text-purple-700 dark:text-purple-300"}),(0,n.jsx)("div",{className:"text-s text-purple-700 dark:text-purple-300",children:g})]})]}),e.suggestedCard&&e.setNewAutomationData&&(0,n.jsx)(eh,{isMobileWidth:e.isMobileWidth,callToAction:"Add",createNew:!0,setIsCreating:a,setShowLoginPrompt:e.setShowLoginPrompt,setNewAutomationData:e.setNewAutomationData,authenticatedData:e.authenticatedData,isCreating:t,automation:h,ipLocationData:e.locationData})]})]})}function ec(e){let t=(0,D.useSearchParams)(),[a,s]=(0,f.useState)(!0),r=t.get("subject"),o=t.get("query"),i=t.get("crontime");if(!r||!o||!i)return null;let l={id:0,subject:decodeURIComponent(r),query_to_run:decodeURIComponent(o),scheduling_request:"",schedule:Y(decodeURIComponent(i)),crontime:decodeURIComponent(i),next:""};return a?(0,n.jsx)(eh,{isMobileWidth:e.isMobileWidth,callToAction:"Shared",createNew:!0,setIsCreating:s,setShowLoginPrompt:e.setShowLoginPrompt,setNewAutomationData:e.setNewAutomationData,authenticatedData:e.authenticatedData,isCreating:a,automation:l,ipLocationData:e.locationData}):null}let ed=h.z.object({subject:h.z.optional(h.z.string()),everyBlah:h.z.string({required_error:"Every is required"}),dayOfWeek:h.z.optional(h.z.number()),dayOfMonth:h.z.optional(h.z.string()),timeRecurrence:h.z.string({required_error:"Time Recurrence is required"}),queryToRun:h.z.string({required_error:"Query to Run is required"})});function eu(e){let t=e.automation,a=(0,m.cI)({resolver:(0,u.F)(ed),defaultValues:{subject:null==t?void 0:t.subject,everyBlah:(null==t?void 0:t.crontime)?Z(t.crontime):"Day",dayOfWeek:(null==t?void 0:t.crontime)?J(t.crontime):void 0,timeRecurrence:(null==t?void 0:t.crontime)?Q(t.crontime):"12:00 PM",dayOfMonth:(null==t?void 0:t.crontime)?X(t.crontime):"1",queryToRun:null==t?void 0:t.query_to_run}});return(0,n.jsx)(em,{authenticatedData:e.authenticatedData,locationData:e.locationData||null,form:a,onSubmit:a=>{let n=function(e,t,a,n){let s="",r=t.split(":")[1].split(" ")[0],o=t.split(":")[1].split(" ")[1],i=Number(t.split(":")[0]),l="PM"===o&&i<12?String(i+12):i;switch(e){case"Day":s="".concat(r," ").concat(l," * * *");break;case"Week":s="".concat(r," ").concat(l," * * ").concat(void 0!==a?7===a?0:a:"*");break;case"Month":s="".concat(r," ").concat(l," ").concat(n," * *")}return s}(a.everyBlah,a.timeRecurrence,a.dayOfWeek,a.dayOfMonth),s="/api/automation?";s+="q=".concat(encodeURIComponent(a.queryToRun)),(null==t?void 0:t.id)&&!e.createNew&&(s+="&automation_id=".concat(encodeURIComponent(t.id))),a.subject&&(s+="&subject=".concat(encodeURIComponent(a.subject))),s+="&crontime=".concat(encodeURIComponent(n)),e.locationData&&e.locationData.city&&(s+="&city=".concat(encodeURIComponent(e.locationData.city))),e.locationData&&e.locationData.region&&(s+="&region=".concat(encodeURIComponent(e.locationData.region))),e.locationData&&e.locationData.country&&(s+="&country=".concat(encodeURIComponent(e.locationData.country))),e.locationData&&e.locationData.timezone&&(s+="&timezone=".concat(encodeURIComponent(e.locationData.timezone))),fetch(s,{method:e.createNew?"POST":"PUT"}).then(e=>e.json()).then(t=>{e.setIsEditing(!1),e.setUpdatedAutomationData({id:t.id,subject:t.subject||"",query_to_run:t.query_to_run,scheduling_request:t.scheduling_request,schedule:Y(t.crontime),crontime:t.crontime,next:t.next})})},create:e.createNew,isLoggedIn:e.isLoggedIn,setShowLoginPrompt:e.setShowLoginPrompt})}function em(e){var t,a;let[s,r]=(0,f.useState)(!1),{errors:o}=e.form.formState,c=["Make a picture of","Generate a summary of","Create a newsletter of","Notify me when"];return(0,n.jsx)(x.l0,{...e.form,children:(0,n.jsxs)("form",{onSubmit:e.form.handleSubmit(t=>{e.onSubmit(t),r(!0)}),className:"space-y-6",children:[(0,n.jsx)(x.xJ,{className:"space-y-1",children:(0,n.jsxs)(x.pf,{children:["Emails will be sent to this address. Timezone and location data will be used to schedule automations.",e.locationData&&(t=e.locationData,a=e.authenticatedData,(0,n.jsxs)("div",{className:"flex flex-wrap gap-2 items-center justify-start",children:[a?(0,n.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,n.jsx)(T.w,{className:"h-4 w-4 mr-2 inline text-orange-500 shadow-sm"}),a.email]}):null,t&&(0,n.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,n.jsx)(z.x,{className:"h-4 w-4 mr-2 inline text-purple-500"}),t?"".concat(t.city,", ").concat(t.country):"Unknown"]}),t&&(0,n.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,n.jsx)(P.S,{className:"h-4 w-4 mr-2 inline text-green-500"}),t?"".concat(t.timezone):"Unknown"]})]}))]})}),!e.create&&(0,n.jsx)(x.Wi,{control:e.form.control,name:"subject",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(x.xJ,{className:"space-y-1",children:[(0,n.jsx)(x.lX,{children:"Subject"}),(0,n.jsx)(x.pf,{children:"This is the subject of the email you will receive."}),(0,n.jsx)(x.NI,{children:(0,n.jsx)(p.I,{placeholder:"Digest of Healthcare AI trends",...a})}),(0,n.jsx)(x.zG,{}),o.subject&&(0,n.jsx)(x.zG,{children:null===(t=o.subject)||void 0===t?void 0:t.message})]})}}),(0,n.jsx)(x.Wi,{control:e.form.control,name:"everyBlah",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(x.xJ,{className:"w-full space-y-1",children:[(0,n.jsx)(x.lX,{children:"Frequency"}),(0,n.jsx)(x.pf,{children:"How often should this automation run?"}),(0,n.jsxs)(l.Ph,{onValueChange:a.onChange,defaultValue:a.value,children:[(0,n.jsx)(x.NI,{children:(0,n.jsxs)(l.i4,{className:"w-[200px]",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(M.W,{className:"h-4 w-4 mr-2 inline"}),"Every"]}),(0,n.jsx)(l.ki,{placeholder:""})]})}),(0,n.jsx)(l.Bw,{children:H.map(e=>(0,n.jsx)(l.Ql,{value:e,children:e},e))})]}),(0,n.jsx)(x.zG,{}),o.subject&&(0,n.jsx)(x.zG,{children:null===(t=o.everyBlah)||void 0===t?void 0:t.message})]})}}),"Week"===e.form.watch("everyBlah")&&(0,n.jsx)(x.Wi,{control:e.form.control,name:"dayOfWeek",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(x.xJ,{className:"w-full space-y-1",children:[(0,n.jsx)(x.pf,{children:"Every week, on which day should this automation run?"}),(0,n.jsxs)(l.Ph,{onValueChange:e=>a.onChange(Number(e)),defaultValue:String(a.value),children:[(0,n.jsx)(x.NI,{children:(0,n.jsxs)(l.i4,{className:"w-[200px]",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(R.n,{className:"h-4 w-4 mr-2 inline"}),"On"]}),(0,n.jsx)(l.ki,{placeholder:""})]})}),(0,n.jsx)(l.Bw,{children:K.map((e,t)=>(0,n.jsx)(l.Ql,{value:String(t),children:e},e))})]}),(0,n.jsx)(x.zG,{}),o.subject&&(0,n.jsx)(x.zG,{children:null===(t=o.dayOfWeek)||void 0===t?void 0:t.message})]})}}),"Month"===e.form.watch("everyBlah")&&(0,n.jsx)(x.Wi,{control:e.form.control,name:"dayOfMonth",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(x.xJ,{className:"w-full space-y-1",children:[(0,n.jsx)(x.pf,{children:"Every month, on which day should the automation run?"}),(0,n.jsxs)(l.Ph,{onValueChange:a.onChange,defaultValue:a.value,children:[(0,n.jsx)(x.NI,{children:(0,n.jsxs)(l.i4,{className:"w-[200px]",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(R.n,{className:"h-4 w-4 mr-2 inline"}),"On the"]}),(0,n.jsx)(l.ki,{placeholder:""})]})}),(0,n.jsx)(l.Bw,{children:$.map(e=>(0,n.jsx)(l.Ql,{value:e,children:e},e))})]}),(0,n.jsx)(x.zG,{}),o.subject&&(0,n.jsx)(x.zG,{children:null===(t=o.dayOfMonth)||void 0===t?void 0:t.message})]})}}),("Day"===e.form.watch("everyBlah")||"Week"==e.form.watch("everyBlah")||"Month"==e.form.watch("everyBlah"))&&(0,n.jsx)(x.Wi,{control:e.form.control,name:"timeRecurrence",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(x.xJ,{className:"w-full space-y-1",children:[(0,n.jsx)(x.lX,{children:"Time"}),(0,n.jsx)(x.pf,{children:"On the days this automation runs, at what time should it run?"}),(0,n.jsxs)(l.Ph,{onValueChange:a.onChange,defaultValue:a.value,children:[(0,n.jsx)(x.NI,{children:(0,n.jsxs)(l.i4,{className:"w-[200px]",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(A.u,{className:"h-4 w-4 mr-2 inline"}),"At"]}),(0,n.jsx)(l.ki,{placeholder:""})]})}),(0,n.jsx)(l.Bw,{children:ee.map(e=>(0,n.jsx)(l.Ql,{value:e,children:e},e))})]}),(0,n.jsx)(x.zG,{}),o.subject&&(0,n.jsx)(x.zG,{children:null===(t=o.timeRecurrence)||void 0===t?void 0:t.message})]})}}),(0,n.jsx)(x.Wi,{control:e.form.control,name:"queryToRun",render:t=>{var a;let{field:s}=t;return(0,n.jsxs)(x.xJ,{className:"space-y-1",children:[(0,n.jsx)(x.lX,{children:"Instructions"}),(0,n.jsx)(x.pf,{children:"What do you want Khoj to do?"}),e.create&&(0,n.jsx)("div",{children:c.map(e=>{var t;return t=s.onChange,(0,n.jsxs)(i.z,{className:"text-xs bg-slate-50 dark:bg-slate-950 h-auto p-1.5 m-1 rounded-full",variant:"ghost",onClick:a=>{a.preventDefault(),t({target:{value:e}},a)},children:[e,"..."]},e)})}),(0,n.jsx)(x.NI,{children:(0,n.jsx)(y.g,{placeholder:"Create a summary of the latest news about AI in healthcare.",value:s.value,onChange:s.onChange})}),(0,n.jsx)(x.zG,{}),o.subject&&(0,n.jsx)(x.zG,{children:null===(a=o.queryToRun)||void 0===a?void 0:a.message})]})}}),(0,n.jsx)("fieldset",{disabled:s,children:e.isLoggedIn?s?(0,n.jsx)(i.z,{type:"submit",disabled:!0,children:"Saving..."}):(0,n.jsx)(i.z,{type:"submit",children:"Save"}):(0,n.jsx)(i.z,{onClick:t=>{t.preventDefault(),e.setShowLoginPrompt(!0)},variant:"default",children:"Login to Save"})})]})})}function eh(e){return e.isMobileWidth?(0,n.jsxs)(B.dy,{open:e.isCreating,onOpenChange:t=>{e.setIsCreating(t)},children:[(0,n.jsx)(B.Qz,{asChild:!0,children:(0,n.jsxs)(i.z,{className:"shadow-sm justify-start",variant:"outline",children:[(0,n.jsx)(L.v,{className:"h-4 w-4 mr-2"}),e.callToAction]})}),(0,n.jsxs)(B.sc,{className:"p-2",children:[(0,n.jsx)(B.iI,{children:"Automation"}),(0,n.jsx)(eu,{createNew:e.createNew,automation:e.automation,setIsEditing:e.setIsCreating,isLoggedIn:!!e.authenticatedData,authenticatedData:e.authenticatedData,setShowLoginPrompt:e.setShowLoginPrompt,setUpdatedAutomationData:e.setNewAutomationData,locationData:e.ipLocationData})]})]}):(0,n.jsxs)(g.Vq,{open:e.isCreating,onOpenChange:t=>{e.setIsCreating(t)},children:[(0,n.jsx)(g.hg,{asChild:!0,children:(0,n.jsxs)(i.z,{className:"shadow-sm justify-start",variant:"outline",children:[(0,n.jsx)(L.v,{className:"h-4 w-4 mr-2"}),e.callToAction]})}),(0,n.jsxs)(g.cZ,{className:"max-h-[98vh] overflow-y-auto",children:[(0,n.jsx)(j.$N,{children:"Automation"}),(0,n.jsx)(eu,{automation:e.automation,createNew:e.createNew,setIsEditing:e.setIsCreating,isLoggedIn:!!e.authenticatedData,authenticatedData:e.authenticatedData,setShowLoginPrompt:e.setShowLoginPrompt,setUpdatedAutomationData:e.setNewAutomationData,locationData:e.ipLocationData})]})]})}function ef(){let e=(0,O.GW)(),{data:t,error:a,isLoading:o}=(0,s.ZP)(e?"automations":null,G,{revalidateOnFocus:!1}),[l,c]=(0,f.useState)(!1),[d,u]=(0,f.useState)(null),[m,h]=(0,f.useState)([]),[x,p]=(0,f.useState)([]),[g,j]=(0,f.useState)(!1),y=(0,w.IC)(),{locationData:v,locationDataError:b,locationDataLoading:D}=(0,w.k6)();return((0,f.useEffect)(()=>{d&&(h([...m,d]),u(null))},[d,m]),(0,f.useEffect)(()=>{let e=t?t.concat(m):m;e&&p(eo.filter(t=>void 0===e.find(e=>t.subject===e.subject)))},[t,m]),a)?(0,n.jsx)(r.l,{message:"Oops, something went wrong. Please refresh the page."}):(0,n.jsx)("main",{className:"w-full mx-auto",children:(0,n.jsxs)("div",{className:"grid w-full mx-auto",children:[(0,n.jsx)("div",{className:"".concat(N().sidePanel," top-0"),children:(0,n.jsx)(V.ZP,{conversationId:null,uploadedFiles:[],isMobileWidth:y})}),(0,n.jsxs)("div",{className:"".concat(N().pageLayout," w-full"),children:[(0,n.jsxs)("div",{className:"pt-6 md:pt-8 grid gap-1 md:flex md:justify-between",children:[(0,n.jsx)("h1",{className:"text-3xl flex items-center",children:"Automations"}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-2 items-center justify-start",children:[e?(0,n.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,n.jsx)(T.w,{className:"h-4 w-4 mr-2 inline text-orange-500 shadow-sm"}),e.email]}):null,v&&(0,n.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,n.jsx)(z.x,{className:"h-4 w-4 mr-2 inline text-purple-500"}),v?"".concat(v.city,", ").concat(v.country):"Unknown"]}),v&&(0,n.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,n.jsx)(P.S,{className:"h-4 w-4 mr-2 inline text-green-500"}),v?"".concat(v.timezone):"Unknown"]})]})]}),g&&(0,n.jsx)(q.Z,{loginRedirectMessage:"Create an account to make your own automation",onOpenChange:j,isMobileWidth:y}),(0,n.jsx)(F.bZ,{className:"bg-secondary border-none my-4",children:(0,n.jsxs)(F.X,{children:[(0,n.jsx)(W.B,{weight:"fill",className:"h-4 w-4 text-purple-400 inline"}),(0,n.jsx)("span",{className:"font-bold",children:"How it works"})," Automations help you structure your time by automating tasks you do regularly. Build your own, or try out our presets. Get results straight to your inbox."]})}),(0,n.jsxs)("div",{className:"flex justify-between items-center py-4",children:[(0,n.jsx)("h3",{className:"text-xl",children:"Your Creations"}),e?(0,n.jsx)(eh,{isMobileWidth:y,callToAction:"Create Automation",createNew:!0,setIsCreating:c,setShowLoginPrompt:j,setNewAutomationData:u,authenticatedData:e,isCreating:l,ipLocationData:v}):(0,n.jsxs)(i.z,{className:"shadow-sm",onClick:()=>j(!0),variant:"outline",children:[(0,n.jsx)(L.v,{className:"h-4 w-4 mr-2"}),"Create Automation"]})]}),(0,n.jsx)(f.Suspense,{children:(0,n.jsx)(ec,{isMobileWidth:y,authenticatedData:e,locationData:v,isLoggedIn:!!e,setShowLoginPrompt:j,setNewAutomationData:u})}),(!t||0===t.length)&&0==m.length&&!o&&(0,n.jsxs)("div",{className:"px-4",children:["So empty! Create your own automation to get started.",(0,n.jsx)("div",{className:"mt-4",children:e?(0,n.jsx)(eh,{isMobileWidth:y,callToAction:"Design Automation",createNew:!0,setIsCreating:c,setShowLoginPrompt:j,setNewAutomationData:u,authenticatedData:e,isCreating:l,ipLocationData:v}):(0,n.jsx)(i.z,{onClick:()=>j(!0),variant:"default",children:"Design"})})]}),o&&(0,n.jsx)(r.l,{message:"booting up your automations"}),(0,n.jsxs)("div",{className:"".concat(N().automationsLayout),children:[t&&t.map(t=>(0,n.jsx)(el,{isMobileWidth:y,authenticatedData:e,automation:t,locationData:v,isLoggedIn:!!e,setShowLoginPrompt:j},t.id)),m.map(t=>(0,n.jsx)(el,{isMobileWidth:y,authenticatedData:e,automation:t,locationData:v,isLoggedIn:!!e,setShowLoginPrompt:j},t.id))]}),(0,n.jsx)("h3",{className:"text-xl py-4",children:"Try these out"}),(0,n.jsx)("div",{className:"".concat(N().automationsLayout),children:x.map(t=>(0,n.jsx)(el,{isMobileWidth:y,setNewAutomationData:u,authenticatedData:e,automation:t,locationData:v,isLoggedIn:!!e,setShowLoginPrompt:j,suggestedCard:!0},t.id))})]})]})})}},97673:function(e,t,a){"use strict";a.d(t,{Z:function(){return c}});var n=a(57437),s=a(26110),r=a(62869),o=a(95186),i=a(26815),l=a(92457);function c(e){var t;return(0,n.jsxs)(s.Vq,{children:[(0,n.jsx)(s.hg,{asChild:!0,onClick:e.onShare,children:(0,n.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,n.jsx)(l.m,{className:"w-4 h-4 mr-2"}),e.buttonTitle]})}),(0,n.jsxs)(s.cZ,{children:[(0,n.jsxs)(s.fK,{children:[(0,n.jsx)(s.$N,{children:e.title}),(0,n.jsx)(s.Be,{children:e.description})]}),(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsxs)("div",{className:"grid flex-1 gap-2",children:[(0,n.jsx)(i._,{htmlFor:"link",className:"sr-only",children:"Link"}),(0,n.jsx)(o.I,{id:"link",defaultValue:e.url,readOnly:!0})]}),(0,n.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,n.jsx)("span",{children:"Copy"})})]})]})]})}},65613:function(e,t,a){"use strict";a.d(t,{X:function(){return c},bZ:function(){return l}});var n=a(57437),s=a(2265),r=a(90535),o=a(94508);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"}}),l=s.forwardRef((e,t)=>{let{className:a,variant:s,...r}=e;return(0,n.jsx)("div",{ref:t,role:"alert",className:(0,o.cn)(i({variant:s}),a),...r})});l.displayName="Alert",s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)("h5",{ref:t,className:(0,o.cn)("mb-1 font-medium leading-none tracking-tight",a),...s})}).displayName="AlertTitle";let c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,o.cn)("text-sm [&_p]:leading-relaxed",a),...s})});c.displayName="AlertDescription"},15681:function(e,t,a){"use strict";a.d(t,{NI:function(){return p},Wi:function(){return u},l0:function(){return c},lX:function(){return x},pf:function(){return g},xJ:function(){return f},zG:function(){return j}});var n=a(57437),s=a(2265),r=a(37053),o=a(29501),i=a(94508),l=a(26815);let c=o.RV,d=s.createContext({}),u=e=>{let{...t}=e;return(0,n.jsx)(d.Provider,{value:{name:t.name},children:(0,n.jsx)(o.Qr,{...t})})},m=()=>{let e=s.useContext(d),t=s.useContext(h),{getFieldState:a,formState:n}=(0,o.Gc)(),r=a(e.name,n);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}},h=s.createContext({}),f=s.forwardRef((e,t)=>{let{className:a,...r}=e,o=s.useId();return(0,n.jsx)(h.Provider,{value:{id:o},children:(0,n.jsx)("div",{ref:t,className:(0,i.cn)("space-y-2",a),...r})})});f.displayName="FormItem";let x=s.forwardRef((e,t)=>{let{className:a,...s}=e,{error:r,formItemId:o}=m();return(0,n.jsx)(l._,{ref:t,className:(0,i.cn)(r&&"text-destructive",a),htmlFor:o,...s})});x.displayName="FormLabel";let p=s.forwardRef((e,t)=>{let{...a}=e,{error:s,formItemId:o,formDescriptionId:i,formMessageId:l}=m();return(0,n.jsx)(r.g7,{ref:t,id:o,"aria-describedby":s?"".concat(i," ").concat(l):"".concat(i),"aria-invalid":!!s,...a})});p.displayName="FormControl";let g=s.forwardRef((e,t)=>{let{className:a,...s}=e,{formDescriptionId:r}=m();return(0,n.jsx)("p",{ref:t,id:r,className:(0,i.cn)("text-sm text-muted-foreground",a),...s})});g.displayName="FormDescription";let j=s.forwardRef((e,t)=>{let{className:a,children:s,...r}=e,{error:o,formMessageId:l}=m(),c=o?String(null==o?void 0:o.message):s;return c?(0,n.jsx)("p",{ref:t,id:l,className:(0,i.cn)("text-sm font-medium text-destructive",a),...r,children:c}):null});j.displayName="FormMessage"},26815:function(e,t,a){"use strict";a.d(t,{_:function(){return c}});var n=a(57437),s=a(2265),r=a(6394),o=a(90535),i=a(94508);let l=(0,o.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.f,{ref:t,className:(0,i.cn)(l(),a),...s})});c.displayName=r.f.displayName},53647:function(e,t,a){"use strict";a.d(t,{Bw:function(){return x},Ph:function(){return d},Ql:function(){return p},i4:function(){return m},ki:function(){return u}});var n=a(57437),s=a(2265),r=a(28951),o=a(40875),i=a(22135),l=a(30401),c=a(94508);let d=r.fC;r.ZA;let u=r.B4,m=s.forwardRef((e,t)=>{let{className:a,children:s,...i}=e;return(0,n.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",a),...i,children:[s,(0,n.jsx)(r.JO,{asChild:!0,children:(0,n.jsx)(o.Z,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=r.xz.displayName;let h=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.u_,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,n.jsx)(i.Z,{className:"h-4 w-4"})})});h.displayName=r.u_.displayName;let f=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.$G,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,n.jsx)(o.Z,{className:"h-4 w-4"})})});f.displayName=r.$G.displayName;let x=s.forwardRef((e,t)=>{let{className:a,children:s,position:o="popper",...i}=e;return(0,n.jsx)(r.h_,{children:(0,n.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"===o&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:o,...i,children:[(0,n.jsx)(h,{}),(0,n.jsx)(r.l_,{className:(0,c.cn)("p-1","popper"===o&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,n.jsx)(f,{})]})})});x.displayName=r.VY.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.__,{ref:t,className:(0,c.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...s})}).displayName=r.__.displayName;let p=s.forwardRef((e,t)=>{let{className:a,children:s,...o}=e;return(0,n.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",a),...o,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(r.wU,{children:(0,n.jsx)(l.Z,{className:"h-4 w-4"})})}),(0,n.jsx)(r.eT,{children:s})]})});p.displayName=r.ck.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.Z0,{ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",a),...s})}).displayName=r.Z0.displayName},76818:function(e,t,a){"use strict";a.d(t,{g:function(){return o}});var n=a(57437),s=a(2265),r=a(94508);let o=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.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 disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...s})});o.displayName="Textarea"},89534:function(e,t,a){"use strict";a.d(t,{FN:function(){return m},Mi:function(){return x},VW:function(){return c},_i:function(){return d},gD:function(){return h},lj:function(){return p},sA:function(){return f}});var n=a(57437),s=a(2265),r=a(41915),o=a(90535),i=a(32489),l=a(94508);let c=r.zt,d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.l_,{ref:t,className:(0,l.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",a),...s})});d.displayName=r.l_.displayName;let u=(0,o.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),m=s.forwardRef((e,t)=>{let{className:a,variant:s,...o}=e;return(0,n.jsx)(r.fC,{ref:t,className:(0,l.cn)(u({variant:s}),a),...o})});m.displayName=r.fC.displayName;let h=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.aU,{ref:t,className:(0,l.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",a),...s})});h.displayName=r.aU.displayName;let f=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.x8,{ref:t,className:(0,l.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",a),"toast-close":"",...s,children:(0,n.jsx)(i.Z,{className:"h-4 w-4"})})});f.displayName=r.x8.displayName;let x=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.Dx,{ref:t,className:(0,l.cn)("text-sm font-semibold",a),...s})});x.displayName=r.Dx.displayName;let p=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.dk,{ref:t,className:(0,l.cn)("text-sm opacity-90",a),...s})});p.displayName=r.dk.displayName},77992:function(e,t,a){"use strict";a.d(t,{pm:function(){return m}});var n=a(2265);let s=0,r=new Map,o=e=>{if(r.has(e))return;let t=setTimeout(()=>{r.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?o(a):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],c={toasts:[]};function d(e){c=i(c,e),l.forEach(e=>{e(c)})}function u(e){let{...t}=e,a=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>d({type:"DISMISS_TOAST",toastId:a});return d({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||n()}}}),{id:a,dismiss:n,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=n.useState(c);return n.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},30190:function(e){e.exports={automationsLayout:"automations_automationsLayout__Atoh_",automationCard:"automations_automationCard__BKidA",pageLayout:"automations_pageLayout__OaoYA",sidePanel:"automations_sidePanel__MPciO"}}},function(e){e.O(0,[1387,2693,5540,8407,8667,5401,8117,1915,5473,2813,2971,2117,1744],function(){return e(e.s=2743)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4371],{2743:function(e,t,a){Promise.resolve().then(a.bind(a,77837))},77837:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return ef}});var n=a(57437),s=a(63861),r=a(14308),o=a(66070),i=a(62869),l=a(53647),c=a(47107),d=a.n(c),u=a(13590),m=a(29501),h=a(31229),f=a(2265),x=a(15681),p=a(95186),g=a(26110),j=a(49027),y=a(76818),w=a(7436),v=a(30190),N=a.n(v),b=a(97673),D=a(99376),k=a(57054),C=a(41317),S=a(87332),_=a(19841),I=a(3634),A=a(97822),M=a(93435),R=a(27484),T=a(39353),z=a(66594),P=a(12443),L=a(89203),W=a(78527),O=a(56937),q=a(33494),E=a(77992),U=a(89534),F=a(65613),V=a(92813),B=a(17814);let G=()=>window.fetch("/api/automations").then(e=>e.json()).catch(e=>console.log(e));function Z(e){let t=e.split(" "),a=t[2],n=t[4];return"*"===a&&"*"===n?"Day":"*"!==n?"Week":"*"!==a?"Month":"Day"}function J(e){let t=e.split(" ");if("*"===t[3]&&"*"!==t[4])return Number(t[4])}function Q(e){let t=e.split(" "),a=t[1],n=t[0],s=Number(a)>=12?"PM":"AM",r=Number(a)>12?Number(a)-12:a;"00"===r&&(r="12");let o=n;return 10>Number(o)&&"00"!==o&&(o="0".concat(o)),"".concat(r,":").concat(o," ").concat(s)}function X(e){return String(e.split(" ")[2])}function Y(e){return d().toString(e)}let H=["Day","Week","Month"],$=Array.from({length:31},(e,t)=>String(t+1)),K=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ee=[],et=["AM","PM"];for(var ea=0;ea<et.length;ea++)for(var en=0;en<12;en++)for(var es=0;es<60;es+=15){let e=String(es).padStart(2,"0"),t=0===en?12:en;ee.push("".concat(t,":").concat(e," ").concat(et[ea]))}let er=Date.now(),eo=[{subject:"Weekly Newsletter",query_to_run:"/research Compile a message including: 1. A recap of news from last week 2. An at-home workout I can do before work 3. A quote to inspire me for the week ahead",schedule:"9AM every Monday",next:"Next run at 9AM on Monday",crontime:"0 9 * * 1",id:er,scheduling_request:""},{subject:"Daily Bedtime Story",query_to_run:"Compose a bedtime story that a five-year-old might enjoy. It should not exceed five paragraphs. Appeal to the imagination, but weave in learnings.",schedule:"9PM every night",next:"Next run at 9PM today",crontime:"0 21 * * *",id:er+1,scheduling_request:""},{subject:"Front Page of Hacker News",query_to_run:"/research Summarize the top 5 posts from https://news.ycombinator.com/best and share them with me, including links",schedule:"9PM on every Wednesday",next:"Next run at 9PM on Wednesday",crontime:"0 21 * * 3",id:er+2,scheduling_request:""},{subject:"Market Summary",query_to_run:"/research Get the market summary for today and share it with me. Focus on tech stocks and the S&P 500.",schedule:"9AM on every weekday",next:"Next run at 9AM on Monday",crontime:"0 9 * * *",id:er+3,scheduling_request:""},{subject:"Market Crash Notification",query_to_run:"Notify me if the stock market fell by more than 5% today.",schedule:"5PM every evening",next:"Next run at 5PM today",crontime:"0 17 * * *",id:er+5,scheduling_request:""},{subject:"Round-up of research papers about AI in healthcare",query_to_run:"/research Summarize the top 3 research papers about AI in healthcare that were published in the last week. Include links to the full papers.",schedule:"9AM every Friday",next:"Next run at 9AM on Friday",crontime:"0 9 * * 5",id:er+4,scheduling_request:""}];function ei(e){let t=encodeURIComponent(e.subject),a=encodeURIComponent(e.query_to_run),n=encodeURIComponent(e.crontime);return"".concat(window.location.origin,"/automations?subject=").concat(t,"&query=").concat(a,"&crontime=").concat(n)}function el(e){let[t,a]=(0,f.useState)(!1),[s,r]=(0,f.useState)(null),[l,c]=(0,f.useState)(!1),[d,u]=(0,f.useState)(""),{toast:m}=(0,E.pm)(),h=e.automation,[x,p]=(0,f.useState)(""),[g,j]=(0,f.useState)("");return((0,f.useEffect)(()=>{let e=s||h;p(Q(e.crontime));let t=Z(e.crontime);if("Day"===t)j("Daily");else if("Week"===t){let t=J(e.crontime);void 0===t?j("Weekly"):j("".concat(K[t]))}else if("Month"===t){let t=X(e.crontime);j("Monthly on the ".concat(t))}},[s,h]),(0,f.useEffect)(()=>{let e="Automation: ".concat((null==s?void 0:s.subject)||h.subject);d&&(m({title:e,description:d,action:(0,n.jsx)(U.gD,{altText:"Dismiss",children:"Ok"})}),u(""))},[d,s,h,m]),l)?null:(0,n.jsxs)(o.Zb,{className:"bg-secondary h-full shadow-sm rounded-lg bg-gradient-to-b from-background to-slate-50 dark:to-gray-950 border ".concat(N().automationCard),children:[(0,n.jsx)(o.Ol,{children:(0,n.jsxs)(o.ll,{className:"line-clamp-2 leading-normal flex justify-between",children:[(null==s?void 0:s.subject)||h.subject,(0,n.jsxs)(k.J2,{children:[(0,n.jsx)(k.xo,{asChild:!0,children:(0,n.jsx)(i.z,{className:"bg-background",variant:"ghost",children:(0,n.jsx)(C.F,{className:"h-4 w-4"})})}),(0,n.jsxs)(k.yk,{className:"w-auto grid gap-2 text-left bg-secondary",children:[!e.suggestedCard&&e.locationData&&(0,n.jsx)(eh,{isMobileWidth:e.isMobileWidth,callToAction:"Edit",createNew:!1,setIsCreating:a,setShowLoginPrompt:e.setShowLoginPrompt,setNewAutomationData:r,authenticatedData:e.authenticatedData,isCreating:t,automation:s||h,ipLocationData:e.locationData}),(0,n.jsx)(b.Z,{buttonTitle:"Share",includeIcon:!0,buttonClassName:"justify-start px-4 py-2 h-10",buttonVariant:"outline",title:"Share Automation",description:"Copy the link below and share it with your coworkers or friends.",url:ei(h),onShare:()=>{navigator.clipboard.writeText(ei(h))}}),!e.suggestedCard&&(0,n.jsxs)(i.z,{variant:"outline",className:"justify-start",onClick:()=>{!function(e,t){fetch("/api/trigger/automation?automation_id=".concat(e),{method:"POST"}).then(e=>{if(!e.ok)throw Error("Network response was not ok");return e}).then(e=>{t("Automation triggered. Check your inbox in a few minutes!")}).catch(e=>{t("Sorry, something went wrong. Try again later.")})}(h.id.toString(),u)},children:[(0,n.jsx)(S.s,{className:"h-4 w-4 mr-2"}),"Run Now"]}),(0,n.jsxs)(i.z,{variant:"destructive",className:"justify-start",onClick:()=>{if(e.suggestedCard){c(!0);return}!function(e,t){fetch("/api/automation?automation_id=".concat(e),{method:"DELETE"}).then(e=>e.json()).then(e=>{t(!0)})}(h.id.toString(),c)},children:[(0,n.jsx)(_.r,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]})]})}),(0,n.jsx)(o.aY,{className:"text-secondary-foreground break-all",children:(null==s?void 0:s.query_to_run)||h.query_to_run}),(0,n.jsxs)(o.eW,{className:"flex flex-col items-start md:flex-row md:justify-between md:items-center gap-2",children:[(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsxs)("div",{className:"flex items-center bg-blue-50 rounded-lg p-1.5 border-blue-200 border dark:bg-blue-800 dark:border-blue-500",children:[(0,n.jsx)(I.T,{className:"h-4 w-4 mr-2 text-blue-700 dark:text-blue-300"}),(0,n.jsx)("div",{className:"text-s text-blue-700 dark:text-blue-300",children:x})]}),(0,n.jsxs)("div",{className:"flex items-center bg-purple-50 rounded-lg p-1.5 border-purple-200 border dark:bg-purple-800 dark:border-purple-500",children:[(0,n.jsx)(A.u,{className:"h-4 w-4 mr-2 text-purple-700 dark:text-purple-300"}),(0,n.jsx)("div",{className:"text-s text-purple-700 dark:text-purple-300",children:g})]})]}),e.suggestedCard&&e.setNewAutomationData&&(0,n.jsx)(eh,{isMobileWidth:e.isMobileWidth,callToAction:"Add",createNew:!0,setIsCreating:a,setShowLoginPrompt:e.setShowLoginPrompt,setNewAutomationData:e.setNewAutomationData,authenticatedData:e.authenticatedData,isCreating:t,automation:h,ipLocationData:e.locationData})]})]})}function ec(e){let t=(0,D.useSearchParams)(),[a,s]=(0,f.useState)(!0),r=t.get("subject"),o=t.get("query"),i=t.get("crontime");if(!r||!o||!i)return null;let l={id:0,subject:decodeURIComponent(r),query_to_run:decodeURIComponent(o),scheduling_request:"",schedule:Y(decodeURIComponent(i)),crontime:decodeURIComponent(i),next:""};return a?(0,n.jsx)(eh,{isMobileWidth:e.isMobileWidth,callToAction:"Shared",createNew:!0,setIsCreating:s,setShowLoginPrompt:e.setShowLoginPrompt,setNewAutomationData:e.setNewAutomationData,authenticatedData:e.authenticatedData,isCreating:a,automation:l,ipLocationData:e.locationData}):null}let ed=h.z.object({subject:h.z.optional(h.z.string()),everyBlah:h.z.string({required_error:"Every is required"}),dayOfWeek:h.z.optional(h.z.number()),dayOfMonth:h.z.optional(h.z.string()),timeRecurrence:h.z.string({required_error:"Time Recurrence is required"}),queryToRun:h.z.string({required_error:"Query to Run is required"})});function eu(e){let t=e.automation,a=(0,m.cI)({resolver:(0,u.F)(ed),defaultValues:{subject:null==t?void 0:t.subject,everyBlah:(null==t?void 0:t.crontime)?Z(t.crontime):"Day",dayOfWeek:(null==t?void 0:t.crontime)?J(t.crontime):void 0,timeRecurrence:(null==t?void 0:t.crontime)?Q(t.crontime):"12:00 PM",dayOfMonth:(null==t?void 0:t.crontime)?X(t.crontime):"1",queryToRun:null==t?void 0:t.query_to_run}});return(0,n.jsx)(em,{authenticatedData:e.authenticatedData,locationData:e.locationData||null,form:a,onSubmit:a=>{let n=function(e,t,a,n){let s="",r=t.split(":")[1].split(" ")[0],o=t.split(":")[1].split(" ")[1],i=Number(t.split(":")[0]),l="PM"===o&&i<12?String(i+12):i;switch(e){case"Day":s="".concat(r," ").concat(l," * * *");break;case"Week":s="".concat(r," ").concat(l," * * ").concat(void 0!==a?7===a?0:a:"*");break;case"Month":s="".concat(r," ").concat(l," ").concat(n," * *")}return s}(a.everyBlah,a.timeRecurrence,a.dayOfWeek,a.dayOfMonth),s="/api/automation?";s+="q=".concat(encodeURIComponent(a.queryToRun)),(null==t?void 0:t.id)&&!e.createNew&&(s+="&automation_id=".concat(encodeURIComponent(t.id))),a.subject&&(s+="&subject=".concat(encodeURIComponent(a.subject))),s+="&crontime=".concat(encodeURIComponent(n)),e.locationData&&e.locationData.city&&(s+="&city=".concat(encodeURIComponent(e.locationData.city))),e.locationData&&e.locationData.region&&(s+="&region=".concat(encodeURIComponent(e.locationData.region))),e.locationData&&e.locationData.country&&(s+="&country=".concat(encodeURIComponent(e.locationData.country))),e.locationData&&e.locationData.timezone&&(s+="&timezone=".concat(encodeURIComponent(e.locationData.timezone))),fetch(s,{method:e.createNew?"POST":"PUT"}).then(e=>e.json()).then(t=>{e.setIsEditing(!1),e.setUpdatedAutomationData({id:t.id,subject:t.subject||"",query_to_run:t.query_to_run,scheduling_request:t.scheduling_request,schedule:Y(t.crontime),crontime:t.crontime,next:t.next})})},create:e.createNew,isLoggedIn:e.isLoggedIn,setShowLoginPrompt:e.setShowLoginPrompt})}function em(e){var t,a;let[s,r]=(0,f.useState)(!1),{errors:o}=e.form.formState,c=["Make a picture of","Generate a summary of","Create a newsletter of","Notify me when"];return(0,n.jsx)(x.l0,{...e.form,children:(0,n.jsxs)("form",{onSubmit:e.form.handleSubmit(t=>{e.onSubmit(t),r(!0)}),className:"space-y-6",children:[(0,n.jsx)(x.xJ,{className:"space-y-1",children:(0,n.jsxs)(x.pf,{children:["Emails will be sent to this address. Timezone and location data will be used to schedule automations.",e.locationData&&(t=e.locationData,a=e.authenticatedData,(0,n.jsxs)("div",{className:"flex flex-wrap gap-2 items-center justify-start",children:[a?(0,n.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,n.jsx)(T.w,{className:"h-4 w-4 mr-2 inline text-orange-500 shadow-sm"}),a.email]}):null,t&&(0,n.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,n.jsx)(z.x,{className:"h-4 w-4 mr-2 inline text-purple-500"}),t?"".concat(t.city,", ").concat(t.country):"Unknown"]}),t&&(0,n.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,n.jsx)(P.S,{className:"h-4 w-4 mr-2 inline text-green-500"}),t?"".concat(t.timezone):"Unknown"]})]}))]})}),!e.create&&(0,n.jsx)(x.Wi,{control:e.form.control,name:"subject",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(x.xJ,{className:"space-y-1",children:[(0,n.jsx)(x.lX,{children:"Subject"}),(0,n.jsx)(x.pf,{children:"This is the subject of the email you will receive."}),(0,n.jsx)(x.NI,{children:(0,n.jsx)(p.I,{placeholder:"Digest of Healthcare AI trends",...a})}),(0,n.jsx)(x.zG,{}),o.subject&&(0,n.jsx)(x.zG,{children:null===(t=o.subject)||void 0===t?void 0:t.message})]})}}),(0,n.jsx)(x.Wi,{control:e.form.control,name:"everyBlah",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(x.xJ,{className:"w-full space-y-1",children:[(0,n.jsx)(x.lX,{children:"Frequency"}),(0,n.jsx)(x.pf,{children:"How often should this automation run?"}),(0,n.jsxs)(l.Ph,{onValueChange:a.onChange,defaultValue:a.value,children:[(0,n.jsx)(x.NI,{children:(0,n.jsxs)(l.i4,{className:"w-[200px]",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(M.W,{className:"h-4 w-4 mr-2 inline"}),"Every"]}),(0,n.jsx)(l.ki,{placeholder:""})]})}),(0,n.jsx)(l.Bw,{children:H.map(e=>(0,n.jsx)(l.Ql,{value:e,children:e},e))})]}),(0,n.jsx)(x.zG,{}),o.subject&&(0,n.jsx)(x.zG,{children:null===(t=o.everyBlah)||void 0===t?void 0:t.message})]})}}),"Week"===e.form.watch("everyBlah")&&(0,n.jsx)(x.Wi,{control:e.form.control,name:"dayOfWeek",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(x.xJ,{className:"w-full space-y-1",children:[(0,n.jsx)(x.pf,{children:"Every week, on which day should this automation run?"}),(0,n.jsxs)(l.Ph,{onValueChange:e=>a.onChange(Number(e)),defaultValue:String(a.value),children:[(0,n.jsx)(x.NI,{children:(0,n.jsxs)(l.i4,{className:"w-[200px]",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(R.n,{className:"h-4 w-4 mr-2 inline"}),"On"]}),(0,n.jsx)(l.ki,{placeholder:""})]})}),(0,n.jsx)(l.Bw,{children:K.map((e,t)=>(0,n.jsx)(l.Ql,{value:String(t),children:e},e))})]}),(0,n.jsx)(x.zG,{}),o.subject&&(0,n.jsx)(x.zG,{children:null===(t=o.dayOfWeek)||void 0===t?void 0:t.message})]})}}),"Month"===e.form.watch("everyBlah")&&(0,n.jsx)(x.Wi,{control:e.form.control,name:"dayOfMonth",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(x.xJ,{className:"w-full space-y-1",children:[(0,n.jsx)(x.pf,{children:"Every month, on which day should the automation run?"}),(0,n.jsxs)(l.Ph,{onValueChange:a.onChange,defaultValue:a.value,children:[(0,n.jsx)(x.NI,{children:(0,n.jsxs)(l.i4,{className:"w-[200px]",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(R.n,{className:"h-4 w-4 mr-2 inline"}),"On the"]}),(0,n.jsx)(l.ki,{placeholder:""})]})}),(0,n.jsx)(l.Bw,{children:$.map(e=>(0,n.jsx)(l.Ql,{value:e,children:e},e))})]}),(0,n.jsx)(x.zG,{}),o.subject&&(0,n.jsx)(x.zG,{children:null===(t=o.dayOfMonth)||void 0===t?void 0:t.message})]})}}),("Day"===e.form.watch("everyBlah")||"Week"==e.form.watch("everyBlah")||"Month"==e.form.watch("everyBlah"))&&(0,n.jsx)(x.Wi,{control:e.form.control,name:"timeRecurrence",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(x.xJ,{className:"w-full space-y-1",children:[(0,n.jsx)(x.lX,{children:"Time"}),(0,n.jsx)(x.pf,{children:"On the days this automation runs, at what time should it run?"}),(0,n.jsxs)(l.Ph,{onValueChange:a.onChange,defaultValue:a.value,children:[(0,n.jsx)(x.NI,{children:(0,n.jsxs)(l.i4,{className:"w-[200px]",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(A.u,{className:"h-4 w-4 mr-2 inline"}),"At"]}),(0,n.jsx)(l.ki,{placeholder:""})]})}),(0,n.jsx)(l.Bw,{children:ee.map(e=>(0,n.jsx)(l.Ql,{value:e,children:e},e))})]}),(0,n.jsx)(x.zG,{}),o.subject&&(0,n.jsx)(x.zG,{children:null===(t=o.timeRecurrence)||void 0===t?void 0:t.message})]})}}),(0,n.jsx)(x.Wi,{control:e.form.control,name:"queryToRun",render:t=>{var a;let{field:s}=t;return(0,n.jsxs)(x.xJ,{className:"space-y-1",children:[(0,n.jsx)(x.lX,{children:"Instructions"}),(0,n.jsx)(x.pf,{children:"What do you want Khoj to do?"}),e.create&&(0,n.jsx)("div",{children:c.map(e=>{var t;return t=s.onChange,(0,n.jsxs)(i.z,{className:"text-xs bg-slate-50 dark:bg-slate-950 h-auto p-1.5 m-1 rounded-full",variant:"ghost",onClick:a=>{a.preventDefault(),t({target:{value:e}},a)},children:[e,"..."]},e)})}),(0,n.jsx)(x.NI,{children:(0,n.jsx)(y.g,{placeholder:"Create a summary of the latest news about AI in healthcare.",value:s.value,onChange:s.onChange})}),(0,n.jsx)(x.zG,{}),o.subject&&(0,n.jsx)(x.zG,{children:null===(a=o.queryToRun)||void 0===a?void 0:a.message})]})}}),(0,n.jsx)("fieldset",{disabled:s,children:e.isLoggedIn?s?(0,n.jsx)(i.z,{type:"submit",disabled:!0,children:"Saving..."}):(0,n.jsx)(i.z,{type:"submit",children:"Save"}):(0,n.jsx)(i.z,{onClick:t=>{t.preventDefault(),e.setShowLoginPrompt(!0)},variant:"default",children:"Login to Save"})})]})})}function eh(e){return e.isMobileWidth?(0,n.jsxs)(B.dy,{open:e.isCreating,onOpenChange:t=>{e.setIsCreating(t)},children:[(0,n.jsx)(B.Qz,{asChild:!0,children:(0,n.jsxs)(i.z,{className:"shadow-sm justify-start",variant:"outline",children:[(0,n.jsx)(L.v,{className:"h-4 w-4 mr-2"}),e.callToAction]})}),(0,n.jsxs)(B.sc,{className:"p-2",children:[(0,n.jsx)(B.iI,{children:"Automation"}),(0,n.jsx)(eu,{createNew:e.createNew,automation:e.automation,setIsEditing:e.setIsCreating,isLoggedIn:!!e.authenticatedData,authenticatedData:e.authenticatedData,setShowLoginPrompt:e.setShowLoginPrompt,setUpdatedAutomationData:e.setNewAutomationData,locationData:e.ipLocationData})]})]}):(0,n.jsxs)(g.Vq,{open:e.isCreating,onOpenChange:t=>{e.setIsCreating(t)},children:[(0,n.jsx)(g.hg,{asChild:!0,children:(0,n.jsxs)(i.z,{className:"shadow-sm justify-start",variant:"outline",children:[(0,n.jsx)(L.v,{className:"h-4 w-4 mr-2"}),e.callToAction]})}),(0,n.jsxs)(g.cZ,{className:"max-h-[98vh] overflow-y-auto",children:[(0,n.jsx)(j.$N,{children:"Automation"}),(0,n.jsx)(eu,{automation:e.automation,createNew:e.createNew,setIsEditing:e.setIsCreating,isLoggedIn:!!e.authenticatedData,authenticatedData:e.authenticatedData,setShowLoginPrompt:e.setShowLoginPrompt,setUpdatedAutomationData:e.setNewAutomationData,locationData:e.ipLocationData})]})]})}function ef(){let e=(0,O.GW)(),{data:t,error:a,isLoading:o}=(0,s.ZP)(e?"automations":null,G,{revalidateOnFocus:!1}),[l,c]=(0,f.useState)(!1),[d,u]=(0,f.useState)(null),[m,h]=(0,f.useState)([]),[x,p]=(0,f.useState)([]),[g,j]=(0,f.useState)(!1),y=(0,w.IC)(),{locationData:v,locationDataError:b,locationDataLoading:D}=(0,w.k6)();return((0,f.useEffect)(()=>{d&&(h([...m,d]),u(null))},[d,m]),(0,f.useEffect)(()=>{let e=t?t.concat(m):m;e&&p(eo.filter(t=>void 0===e.find(e=>t.subject===e.subject)))},[t,m]),a)?(0,n.jsx)(r.l,{message:"Oops, something went wrong. Please refresh the page."}):(0,n.jsx)("main",{className:"w-full mx-auto",children:(0,n.jsxs)("div",{className:"grid w-full mx-auto",children:[(0,n.jsx)("div",{className:"".concat(N().sidePanel," top-0"),children:(0,n.jsx)(V.ZP,{conversationId:null,uploadedFiles:[],isMobileWidth:y})}),(0,n.jsxs)("div",{className:"".concat(N().pageLayout," w-full"),children:[(0,n.jsxs)("div",{className:"pt-6 md:pt-8 grid gap-1 md:flex md:justify-between",children:[(0,n.jsx)("h1",{className:"text-3xl flex items-center",children:"Automations"}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-2 items-center justify-start",children:[e?(0,n.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,n.jsx)(T.w,{className:"h-4 w-4 mr-2 inline text-orange-500 shadow-sm"}),e.email]}):null,v&&(0,n.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,n.jsx)(z.x,{className:"h-4 w-4 mr-2 inline text-purple-500"}),v?"".concat(v.city,", ").concat(v.country):"Unknown"]}),v&&(0,n.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm",children:[(0,n.jsx)(P.S,{className:"h-4 w-4 mr-2 inline text-green-500"}),v?"".concat(v.timezone):"Unknown"]})]})]}),g&&(0,n.jsx)(q.Z,{loginRedirectMessage:"Create an account to make your own automation",onOpenChange:j,isMobileWidth:y}),(0,n.jsx)(F.bZ,{className:"bg-secondary border-none my-4",children:(0,n.jsxs)(F.X,{children:[(0,n.jsx)(W.B,{weight:"fill",className:"h-4 w-4 text-purple-400 inline"}),(0,n.jsx)("span",{className:"font-bold",children:"How it works"})," Automations help you structure your time by automating tasks you do regularly. Build your own, or try out our presets. Get results straight to your inbox."]})}),(0,n.jsxs)("div",{className:"flex justify-between items-center py-4",children:[(0,n.jsx)("h3",{className:"text-xl",children:"Your Creations"}),e?(0,n.jsx)(eh,{isMobileWidth:y,callToAction:"Create Automation",createNew:!0,setIsCreating:c,setShowLoginPrompt:j,setNewAutomationData:u,authenticatedData:e,isCreating:l,ipLocationData:v}):(0,n.jsxs)(i.z,{className:"shadow-sm",onClick:()=>j(!0),variant:"outline",children:[(0,n.jsx)(L.v,{className:"h-4 w-4 mr-2"}),"Create Automation"]})]}),(0,n.jsx)(f.Suspense,{children:(0,n.jsx)(ec,{isMobileWidth:y,authenticatedData:e,locationData:v,isLoggedIn:!!e,setShowLoginPrompt:j,setNewAutomationData:u})}),(!t||0===t.length)&&0==m.length&&!o&&(0,n.jsxs)("div",{className:"px-4",children:["So empty! Create your own automation to get started.",(0,n.jsx)("div",{className:"mt-4",children:e?(0,n.jsx)(eh,{isMobileWidth:y,callToAction:"Design Automation",createNew:!0,setIsCreating:c,setShowLoginPrompt:j,setNewAutomationData:u,authenticatedData:e,isCreating:l,ipLocationData:v}):(0,n.jsx)(i.z,{onClick:()=>j(!0),variant:"default",children:"Design"})})]}),o&&(0,n.jsx)(r.l,{message:"booting up your automations"}),(0,n.jsxs)("div",{className:"".concat(N().automationsLayout),children:[t&&t.map(t=>(0,n.jsx)(el,{isMobileWidth:y,authenticatedData:e,automation:t,locationData:v,isLoggedIn:!!e,setShowLoginPrompt:j},t.id)),m.map(t=>(0,n.jsx)(el,{isMobileWidth:y,authenticatedData:e,automation:t,locationData:v,isLoggedIn:!!e,setShowLoginPrompt:j},t.id))]}),(0,n.jsx)("h3",{className:"text-xl py-4",children:"Try these out"}),(0,n.jsx)("div",{className:"".concat(N().automationsLayout),children:x.map(t=>(0,n.jsx)(el,{isMobileWidth:y,setNewAutomationData:u,authenticatedData:e,automation:t,locationData:v,isLoggedIn:!!e,setShowLoginPrompt:j,suggestedCard:!0},t.id))})]})]})})}},97673:function(e,t,a){"use strict";a.d(t,{Z:function(){return c}});var n=a(57437),s=a(26110),r=a(62869),o=a(95186),i=a(26815),l=a(92457);function c(e){var t;return(0,n.jsxs)(s.Vq,{children:[(0,n.jsx)(s.hg,{asChild:!0,onClick:e.onShare,children:(0,n.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,n.jsx)(l.m,{className:"w-4 h-4 mr-2"}),e.buttonTitle]})}),(0,n.jsxs)(s.cZ,{children:[(0,n.jsxs)(s.fK,{children:[(0,n.jsx)(s.$N,{children:e.title}),(0,n.jsx)(s.Be,{children:e.description})]}),(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsxs)("div",{className:"grid flex-1 gap-2",children:[(0,n.jsx)(i._,{htmlFor:"link",className:"sr-only",children:"Link"}),(0,n.jsx)(o.I,{id:"link",defaultValue:e.url,readOnly:!0})]}),(0,n.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,n.jsx)("span",{children:"Copy"})})]})]})]})}},65613:function(e,t,a){"use strict";a.d(t,{X:function(){return c},bZ:function(){return l}});var n=a(57437),s=a(2265),r=a(90535),o=a(94508);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"}}),l=s.forwardRef((e,t)=>{let{className:a,variant:s,...r}=e;return(0,n.jsx)("div",{ref:t,role:"alert",className:(0,o.cn)(i({variant:s}),a),...r})});l.displayName="Alert",s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)("h5",{ref:t,className:(0,o.cn)("mb-1 font-medium leading-none tracking-tight",a),...s})}).displayName="AlertTitle";let c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,o.cn)("text-sm [&_p]:leading-relaxed",a),...s})});c.displayName="AlertDescription"},15681:function(e,t,a){"use strict";a.d(t,{NI:function(){return p},Wi:function(){return u},l0:function(){return c},lX:function(){return x},pf:function(){return g},xJ:function(){return f},zG:function(){return j}});var n=a(57437),s=a(2265),r=a(37053),o=a(29501),i=a(94508),l=a(26815);let c=o.RV,d=s.createContext({}),u=e=>{let{...t}=e;return(0,n.jsx)(d.Provider,{value:{name:t.name},children:(0,n.jsx)(o.Qr,{...t})})},m=()=>{let e=s.useContext(d),t=s.useContext(h),{getFieldState:a,formState:n}=(0,o.Gc)(),r=a(e.name,n);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}},h=s.createContext({}),f=s.forwardRef((e,t)=>{let{className:a,...r}=e,o=s.useId();return(0,n.jsx)(h.Provider,{value:{id:o},children:(0,n.jsx)("div",{ref:t,className:(0,i.cn)("space-y-2",a),...r})})});f.displayName="FormItem";let x=s.forwardRef((e,t)=>{let{className:a,...s}=e,{error:r,formItemId:o}=m();return(0,n.jsx)(l._,{ref:t,className:(0,i.cn)(r&&"text-destructive",a),htmlFor:o,...s})});x.displayName="FormLabel";let p=s.forwardRef((e,t)=>{let{...a}=e,{error:s,formItemId:o,formDescriptionId:i,formMessageId:l}=m();return(0,n.jsx)(r.g7,{ref:t,id:o,"aria-describedby":s?"".concat(i," ").concat(l):"".concat(i),"aria-invalid":!!s,...a})});p.displayName="FormControl";let g=s.forwardRef((e,t)=>{let{className:a,...s}=e,{formDescriptionId:r}=m();return(0,n.jsx)("p",{ref:t,id:r,className:(0,i.cn)("text-sm text-muted-foreground",a),...s})});g.displayName="FormDescription";let j=s.forwardRef((e,t)=>{let{className:a,children:s,...r}=e,{error:o,formMessageId:l}=m(),c=o?String(null==o?void 0:o.message):s;return c?(0,n.jsx)("p",{ref:t,id:l,className:(0,i.cn)("text-sm font-medium text-destructive",a),...r,children:c}):null});j.displayName="FormMessage"},26815:function(e,t,a){"use strict";a.d(t,{_:function(){return c}});var n=a(57437),s=a(2265),r=a(6394),o=a(90535),i=a(94508);let l=(0,o.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.f,{ref:t,className:(0,i.cn)(l(),a),...s})});c.displayName=r.f.displayName},53647:function(e,t,a){"use strict";a.d(t,{Bw:function(){return x},Ph:function(){return d},Ql:function(){return p},i4:function(){return m},ki:function(){return u}});var n=a(57437),s=a(2265),r=a(28951),o=a(40875),i=a(22135),l=a(30401),c=a(94508);let d=r.fC;r.ZA;let u=r.B4,m=s.forwardRef((e,t)=>{let{className:a,children:s,...i}=e;return(0,n.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",a),...i,children:[s,(0,n.jsx)(r.JO,{asChild:!0,children:(0,n.jsx)(o.Z,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=r.xz.displayName;let h=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.u_,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,n.jsx)(i.Z,{className:"h-4 w-4"})})});h.displayName=r.u_.displayName;let f=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.$G,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...s,children:(0,n.jsx)(o.Z,{className:"h-4 w-4"})})});f.displayName=r.$G.displayName;let x=s.forwardRef((e,t)=>{let{className:a,children:s,position:o="popper",...i}=e;return(0,n.jsx)(r.h_,{children:(0,n.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"===o&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:o,...i,children:[(0,n.jsx)(h,{}),(0,n.jsx)(r.l_,{className:(0,c.cn)("p-1","popper"===o&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,n.jsx)(f,{})]})})});x.displayName=r.VY.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.__,{ref:t,className:(0,c.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...s})}).displayName=r.__.displayName;let p=s.forwardRef((e,t)=>{let{className:a,children:s,...o}=e;return(0,n.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",a),...o,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(r.wU,{children:(0,n.jsx)(l.Z,{className:"h-4 w-4"})})}),(0,n.jsx)(r.eT,{children:s})]})});p.displayName=r.ck.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.Z0,{ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",a),...s})}).displayName=r.Z0.displayName},76818:function(e,t,a){"use strict";a.d(t,{g:function(){return o}});var n=a(57437),s=a(2265),r=a(94508);let o=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.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 disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...s})});o.displayName="Textarea"},89534:function(e,t,a){"use strict";a.d(t,{FN:function(){return m},Mi:function(){return x},VW:function(){return c},_i:function(){return d},gD:function(){return h},lj:function(){return p},sA:function(){return f}});var n=a(57437),s=a(2265),r=a(41915),o=a(90535),i=a(32489),l=a(94508);let c=r.zt,d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.l_,{ref:t,className:(0,l.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",a),...s})});d.displayName=r.l_.displayName;let u=(0,o.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),m=s.forwardRef((e,t)=>{let{className:a,variant:s,...o}=e;return(0,n.jsx)(r.fC,{ref:t,className:(0,l.cn)(u({variant:s}),a),...o})});m.displayName=r.fC.displayName;let h=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.aU,{ref:t,className:(0,l.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",a),...s})});h.displayName=r.aU.displayName;let f=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.x8,{ref:t,className:(0,l.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",a),"toast-close":"",...s,children:(0,n.jsx)(i.Z,{className:"h-4 w-4"})})});f.displayName=r.x8.displayName;let x=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.Dx,{ref:t,className:(0,l.cn)("text-sm font-semibold",a),...s})});x.displayName=r.Dx.displayName;let p=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.dk,{ref:t,className:(0,l.cn)("text-sm opacity-90",a),...s})});p.displayName=r.dk.displayName},77992:function(e,t,a){"use strict";a.d(t,{pm:function(){return m}});var n=a(2265);let s=0,r=new Map,o=e=>{if(r.has(e))return;let t=setTimeout(()=>{r.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?o(a):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],c={toasts:[]};function d(e){c=i(c,e),l.forEach(e=>{e(c)})}function u(e){let{...t}=e,a=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>d({type:"DISMISS_TOAST",toastId:a});return d({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||n()}}}),{id:a,dismiss:n,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=n.useState(c);return n.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},30190:function(e){e.exports={automationsLayout:"automations_automationsLayout__Atoh_",automationCard:"automations_automationCard__BKidA",pageLayout:"automations_pageLayout__OaoYA",sidePanel:"automations_sidePanel__MPciO"}}},function(e){e.O(0,[1387,2693,7265,8407,8667,5401,8117,1915,5473,2813,2971,2117,1744],function(){return e(e.s=2743)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3317,8459,7138,244],{63521:function(){}},function(n){n.O(0,[2971,2117,1744],function(){return n(n.s=63521)}),_N_E=n.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1929],{39929:function(e,t,s){Promise.resolve().then(s.bind(s,74723))},74723:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return p}});var a=s(57437),o=s(63136),n=s.n(o),i=s(2265),r=s(92813),l=s(62264),c=s(99376),d=s(14308),u=s(59199);s(2446);var h=s(7436),m=s(5477),g=s(56937);function f(e){let t=(0,c.useSearchParams)().get("conversationId"),[s,o]=(0,i.useState)(""),[r,d]=(0,i.useState)([]),[u,h]=(0,i.useState)(!1),[g,f]=(0,i.useState)(null),[p,x]=(0,i.useState)(!1),_=(0,i.useRef)(null),y=e.setQueryToProcess,w=e.onConversationIdChange,S=e.isMobileWidth?"w-full":"w-4/6";if((0,i.useEffect)(()=>{if(r.length>0){let t=r.map(e=>encodeURIComponent(e));e.setImages(t)}},[r,e.setImages]),(0,i.useEffect)(()=>{let t=localStorage.getItem("images");if(t){let s=JSON.parse(t);d(s);let a=s.map(e=>encodeURIComponent(e));e.setImages(a),localStorage.removeItem("images")}let s=localStorage.getItem("message");s&&(h(!0),y(s),s.trim().startsWith("/research")&&x(!0));let a=localStorage.getItem("uploadedFiles");if(a){let t=a?JSON.parse(a):[],s=[];for(let e of t)s.push({name:e.name,file_type:e.file_type,content:e.content,size:e.size});localStorage.removeItem("uploadedFiles"),e.setUploadedFiles(s)}},[y,e.setImages,t]),(0,i.useEffect)(()=>{s&&(h(!0),y(s))},[s,y]),(0,i.useEffect)(()=>{t&&(null==w||w(t))},[t,w]),(0,i.useEffect)(()=>{e.streamedMessages&&e.streamedMessages.length>0&&e.streamedMessages[e.streamedMessages.length-1].completed?(h(!1),d([]),e.setUploadedFiles(void 0)):o("")},[e.streamedMessages]),!t){window.location.href="/";return}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:n().chatBodyFull,children:(0,a.jsx)(l.Z,{conversationId:t,setTitle:e.setTitle,setAgent:f,pendingMessage:u?s:"",incomingMessages:e.streamedMessages,setIncomingMessages:e.setStreamedMessages,customClassName:S})}),(0,a.jsx)("div",{className:"".concat(n().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 h-fit ").concat(S," mr-auto ml-auto"),children:(0,a.jsx)(m.a,{agentColor:null==g?void 0:g.color,isLoggedIn:e.isLoggedIn,sendMessage:e=>o(e),sendImage:e=>d(t=>[...t,e]),sendDisabled:u,chatOptionsData:e.chatOptionsData,conversationId:t,isMobileWidth:e.isMobileWidth,setUploadedFiles:e.setUploadedFiles,ref:_,isResearchModeEnabled:p,setTriggeredAbort:e.setTriggeredAbort})})]})}function p(){let e="Khoj AI - Chat",[t,s]=(0,i.useState)(null),[o,l]=(0,i.useState)(!0),[c,m]=(0,i.useState)(e),[p,x]=(0,i.useState)(null),[_,y]=(0,i.useState)([]),[w,S]=(0,i.useState)(""),[I,b]=(0,i.useState)(!1),[v,j]=(0,i.useState)(void 0),[C,B]=(0,i.useState)([]),[E,M]=(0,i.useState)(null),[T,k]=(0,i.useState)(!1),{locationData:F,locationDataError:R,locationDataLoading:N}=(0,h.k6)()||{locationData:{timezone:Intl.DateTimeFormat().resolvedOptions().timeZone}},O=(0,g.GW)(),D=(0,h.IC)();async function W(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,a="␃\uD83D\uDD1A␗",o="",n=[],i={},r={};for(;;){let e;let{done:l,value:c}=await t.read();if(l){S(""),b(!1),B([]),p&&(0,u.tQ)(p,m);break}for(o+=s.decode(c,{stream:!0});-1!==(e=o.indexOf(a));){let t=o.slice(0,e);if(o=o.slice(e+a.length),t){let e=_.find(e=>!e.completed);if(!e){console.error("No current message found");return}({context:n,onlineContext:i,codeContext:r}=(0,u.VK)(t,e,n,i,r)),y([..._])}}}}async function P(){if(localStorage.removeItem("message"),!w||!p)return;let e={q:w,conversation_id:p,stream:!0,...F&&{city:F.city,region:F.region,country:F.country,country_code:F.countryCode,timezone:F.timezone},...C.length>0&&{images:C},...v&&{files:v}},t=await fetch("/api/chat?client=web",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),signal:null==E?void 0:E.signal});try{await W(t)}catch(n){let e=await t.json();console.error(e);let s=_.find(e=>!e.completed);if(!s)return;let a=n.message,o=n.name;a.includes("Error in input stream")?s.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?":429===t.status?"detail"in e?s.rawResponse="".concat(e.detail):s.rawResponse="I'm a bit overwhelmed at the moment. Could you try again in a bit or dislike this message if the issue persists?":"AbortError"===o?s.rawResponse="I've stopped processing this message. If you'd like to continue, please send the message again.":s.rawResponse="Umm, not sure what just happened. I see this error message: ".concat(a,". Could you try again or dislike this message if the issue persists?"),s.completed=!0,y([..._]),S(""),b(!1)}}return(0,i.useEffect)(()=>{fetch("/api/chat/options").then(e=>e.json()).then(e=>{l(!1),e&&s(e)}).catch(e=>{console.error(e)}),(0,h.EK)()},[]),(0,i.useEffect)(()=>{T&&(null==E||E.abort(),function(){let e=_.find(e=>!e.completed);e&&(e.completed=!0,y([..._]),S(""),b(!1))}(),k(!1))}),(0,i.useEffect)(()=>{if(w){let e={rawResponse:"",trainOfThought:[],context:[],onlineContext:{},codeContext:{},completed:!1,timestamp:new Date().toISOString(),rawQuery:w||"",images:C,queryFiles:v};y(t=>[...t,e]),b(!0),M(new AbortController)}},[w]),(0,i.useEffect)(()=>{I&&!N&&P()},[I,N]),o?(0,a.jsx)(d.Z,{}):(0,a.jsxs)("div",{className:"".concat(n().main," ").concat(n().chatLayout),children:[(0,a.jsx)("title",{children:"".concat(e).concat(c&&c!==e?": ".concat(c):"")}),(0,a.jsx)("div",{className:D?"h-1":"h-auto",children:(0,a.jsx)(r.ZP,{conversationId:p,uploadedFiles:[],isMobileWidth:D})}),(0,a.jsx)("div",{className:n().chatBox,children:(0,a.jsxs)("div",{className:n().chatBoxBody,children:[p&&(0,a.jsxs)("div",{className:"".concat(n().chatTitleWrapper," text-nowrap text-ellipsis overflow-hidden max-w-screen-md grid items-top font-bold mx-2 md:mr-8 md:pt-6 col-auto h-fit"),children:[c&&(0,a.jsx)("h2",{className:"text-lg text-ellipsis whitespace-nowrap overflow-x-hidden",children:c}),(0,a.jsx)(r.En,{conversationId:p,setTitle:m,sizing:D?"sm":"md"})]}),(0,a.jsx)(i.Suspense,{fallback:(0,a.jsx)(d.Z,{}),children:(0,a.jsx)(f,{isLoggedIn:null!==O,streamedMessages:_,setStreamedMessages:y,chatOptionsData:t,setTitle:m,setQueryToProcess:S,setUploadedFiles:j,isMobileWidth:D,onConversationIdChange:e=>{x(e)},setImages:B,setTriggeredAbort:k})})]})})]})}},99376:function(e,t,s){"use strict";var a=s(35475);s.o(a,"useRouter")&&s.d(t,{useRouter:function(){return a.useRouter}}),s.o(a,"useSearchParams")&&s.d(t,{useSearchParams:function(){return a.useSearchParams}})},63136: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",chatTitleWrapper:"chat_chatTitleWrapper__6ChWq"}}},function(e){e.O(0,[5540,2693,2664,3954,8407,8667,5401,6589,9058,2781,2813,5477,2264,2971,2117,1744],function(){return e(e.s=39929)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1929],{39929:function(e,t,s){Promise.resolve().then(s.bind(s,74723))},74723:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return p}});var a=s(57437),o=s(63136),n=s.n(o),i=s(2265),r=s(92813),l=s(62264),c=s(99376),d=s(14308),u=s(59199);s(2446);var h=s(7436),m=s(5477),g=s(56937);function f(e){let t=(0,c.useSearchParams)().get("conversationId"),[s,o]=(0,i.useState)(""),[r,d]=(0,i.useState)([]),[u,h]=(0,i.useState)(!1),[g,f]=(0,i.useState)(null),[p,x]=(0,i.useState)(!1),_=(0,i.useRef)(null),y=e.setQueryToProcess,w=e.onConversationIdChange,S=e.isMobileWidth?"w-full":"w-4/6";if((0,i.useEffect)(()=>{if(r.length>0){let t=r.map(e=>encodeURIComponent(e));e.setImages(t)}},[r,e.setImages]),(0,i.useEffect)(()=>{let t=localStorage.getItem("images");if(t){let s=JSON.parse(t);d(s);let a=s.map(e=>encodeURIComponent(e));e.setImages(a),localStorage.removeItem("images")}let s=localStorage.getItem("message");s&&(h(!0),y(s),s.trim().startsWith("/research")&&x(!0));let a=localStorage.getItem("uploadedFiles");if(a){let t=a?JSON.parse(a):[],s=[];for(let e of t)s.push({name:e.name,file_type:e.file_type,content:e.content,size:e.size});localStorage.removeItem("uploadedFiles"),e.setUploadedFiles(s)}},[y,e.setImages,t]),(0,i.useEffect)(()=>{s&&(h(!0),y(s))},[s,y]),(0,i.useEffect)(()=>{t&&(null==w||w(t))},[t,w]),(0,i.useEffect)(()=>{e.streamedMessages&&e.streamedMessages.length>0&&e.streamedMessages[e.streamedMessages.length-1].completed?(h(!1),d([]),e.setUploadedFiles(void 0)):o("")},[e.streamedMessages]),!t){window.location.href="/";return}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:n().chatBodyFull,children:(0,a.jsx)(l.Z,{conversationId:t,setTitle:e.setTitle,setAgent:f,pendingMessage:u?s:"",incomingMessages:e.streamedMessages,setIncomingMessages:e.setStreamedMessages,customClassName:S})}),(0,a.jsx)("div",{className:"".concat(n().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 h-fit ").concat(S," mr-auto ml-auto"),children:(0,a.jsx)(m.a,{agentColor:null==g?void 0:g.color,isLoggedIn:e.isLoggedIn,sendMessage:e=>o(e),sendImage:e=>d(t=>[...t,e]),sendDisabled:u,chatOptionsData:e.chatOptionsData,conversationId:t,isMobileWidth:e.isMobileWidth,setUploadedFiles:e.setUploadedFiles,ref:_,isResearchModeEnabled:p,setTriggeredAbort:e.setTriggeredAbort})})]})}function p(){let e="Khoj AI - Chat",[t,s]=(0,i.useState)(null),[o,l]=(0,i.useState)(!0),[c,m]=(0,i.useState)(e),[p,x]=(0,i.useState)(null),[_,y]=(0,i.useState)([]),[w,S]=(0,i.useState)(""),[I,b]=(0,i.useState)(!1),[v,j]=(0,i.useState)(void 0),[C,B]=(0,i.useState)([]),[E,M]=(0,i.useState)(null),[T,k]=(0,i.useState)(!1),{locationData:F,locationDataError:R,locationDataLoading:N}=(0,h.k6)()||{locationData:{timezone:Intl.DateTimeFormat().resolvedOptions().timeZone}},O=(0,g.GW)(),D=(0,h.IC)();async function W(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,a="␃\uD83D\uDD1A␗",o="",n=[],i={},r={};for(;;){let e;let{done:l,value:c}=await t.read();if(l){S(""),b(!1),B([]),p&&(0,u.tQ)(p,m);break}for(o+=s.decode(c,{stream:!0});-1!==(e=o.indexOf(a));){let t=o.slice(0,e);if(o=o.slice(e+a.length),t){let e=_.find(e=>!e.completed);if(!e){console.error("No current message found");return}({context:n,onlineContext:i,codeContext:r}=(0,u.VK)(t,e,n,i,r)),y([..._])}}}}async function P(){if(localStorage.removeItem("message"),!w||!p)return;let e={q:w,conversation_id:p,stream:!0,...F&&{city:F.city,region:F.region,country:F.country,country_code:F.countryCode,timezone:F.timezone},...C.length>0&&{images:C},...v&&{files:v}},t=await fetch("/api/chat?client=web",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),signal:null==E?void 0:E.signal});try{await W(t)}catch(n){let e=await t.json();console.error(e);let s=_.find(e=>!e.completed);if(!s)return;let a=n.message,o=n.name;a.includes("Error in input stream")?s.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?":429===t.status?"detail"in e?s.rawResponse="".concat(e.detail):s.rawResponse="I'm a bit overwhelmed at the moment. Could you try again in a bit or dislike this message if the issue persists?":"AbortError"===o?s.rawResponse="I've stopped processing this message. If you'd like to continue, please send the message again.":s.rawResponse="Umm, not sure what just happened. I see this error message: ".concat(a,". Could you try again or dislike this message if the issue persists?"),s.completed=!0,y([..._]),S(""),b(!1)}}return(0,i.useEffect)(()=>{fetch("/api/chat/options").then(e=>e.json()).then(e=>{l(!1),e&&s(e)}).catch(e=>{console.error(e)}),(0,h.EK)()},[]),(0,i.useEffect)(()=>{T&&(null==E||E.abort(),function(){let e=_.find(e=>!e.completed);e&&(e.completed=!0,y([..._]),S(""),b(!1))}(),k(!1))}),(0,i.useEffect)(()=>{if(w){let e={rawResponse:"",trainOfThought:[],context:[],onlineContext:{},codeContext:{},completed:!1,timestamp:new Date().toISOString(),rawQuery:w||"",images:C,queryFiles:v};y(t=>[...t,e]),b(!0),M(new AbortController)}},[w]),(0,i.useEffect)(()=>{I&&!N&&P()},[I,N]),o?(0,a.jsx)(d.Z,{}):(0,a.jsxs)("div",{className:"".concat(n().main," ").concat(n().chatLayout),children:[(0,a.jsx)("title",{children:"".concat(e).concat(c&&c!==e?": ".concat(c):"")}),(0,a.jsx)("div",{className:D?"h-1":"h-auto",children:(0,a.jsx)(r.ZP,{conversationId:p,uploadedFiles:[],isMobileWidth:D})}),(0,a.jsx)("div",{className:n().chatBox,children:(0,a.jsxs)("div",{className:n().chatBoxBody,children:[p&&(0,a.jsxs)("div",{className:"".concat(n().chatTitleWrapper," text-nowrap text-ellipsis overflow-hidden max-w-screen-md grid items-top font-bold mx-2 md:mr-8 md:pt-6 col-auto h-fit"),children:[c&&(0,a.jsx)("h2",{className:"text-lg text-ellipsis whitespace-nowrap overflow-x-hidden",children:c}),(0,a.jsx)(r.En,{conversationId:p,setTitle:m,sizing:D?"sm":"md"})]}),(0,a.jsx)(i.Suspense,{fallback:(0,a.jsx)(d.Z,{}),children:(0,a.jsx)(f,{isLoggedIn:null!==O,streamedMessages:_,setStreamedMessages:y,chatOptionsData:t,setTitle:m,setQueryToProcess:S,setUploadedFiles:j,isMobileWidth:D,onConversationIdChange:e=>{x(e)},setImages:B,setTriggeredAbort:k})})]})})]})}},99376:function(e,t,s){"use strict";var a=s(35475);s.o(a,"useRouter")&&s.d(t,{useRouter:function(){return a.useRouter}}),s.o(a,"useSearchParams")&&s.d(t,{useSearchParams:function(){return a.useSearchParams}})},63136: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",chatTitleWrapper:"chat_chatTitleWrapper__6ChWq"}}},function(e){e.O(0,[9202,7265,2693,2664,3954,8407,8667,5401,6589,9058,2781,2813,5477,2264,2971,2117,1744],function(){return e(e.s=39929)}),_N_E=e.O()}]);