khoj 1.28.4.dev7__py3-none-any.whl → 1.28.4.dev22__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- khoj/configure.py +0 -6
- khoj/database/admin.py +6 -1
- khoj/interface/compiled/404/index.html +1 -1
- khoj/interface/compiled/_next/static/chunks/2261-748f7c327df3c8c1.js +1 -0
- khoj/interface/compiled/_next/static/chunks/3803-d74118a2d0182c52.js +1 -0
- khoj/interface/compiled/_next/static/chunks/5538-bf582517a8dd3faa.js +1 -0
- khoj/interface/compiled/_next/static/chunks/9434-9bbae0af6e92854c.js +3 -0
- khoj/interface/compiled/_next/static/chunks/app/agents/layout-e9838b642913a071.js +1 -0
- khoj/interface/compiled/_next/static/chunks/app/agents/page-f29d6b3efa6f96c6.js +1 -0
- khoj/interface/compiled/_next/static/chunks/app/automations/{page-774ae3e033f938cd.js → page-d3edae545a1b5393.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/app/chat/layout-b0e7ff4baa3b5265.js +1 -0
- khoj/interface/compiled/_next/static/chunks/app/chat/{page-d8f4c107ad78e9e9.js → page-60bfb0b3b81d3d9d.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/app/{layout-d0f0a9067427fb20.js → layout-86561d2fac35a91a.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/app/{page-543c1ca0b0449be9.js → page-cbc0e7b837bd35fa.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/app/search/layout-ea6b73fdaf9b24ca.js +1 -0
- khoj/interface/compiled/_next/static/chunks/app/search/{page-9b64f61caa5bd7f9.js → page-a5c277eff207959e.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/app/settings/{layout-a8f33dfe92f997fb.js → layout-254eaaf916449a60.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/app/settings/{page-10b288c103f19468.js → page-210bd54db4841333.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-cf7445cf0326bda3.js +1 -0
- khoj/interface/compiled/_next/static/chunks/app/share/chat/{page-db775d42e820afb2.js → page-79cf030b31c7e793.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/{main-f84cd3c1873cd842.js → main-1ea5c2e0fdef4626.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/{webpack-363358fa8ff3d0b2.js → webpack-5018ce30001e8c48.js} +1 -1
- khoj/interface/compiled/_next/static/css/{467a524c75e7d7c0.css → 0e9d53dcd7f11342.css} +1 -1
- khoj/interface/compiled/_next/static/css/{26c1c33d0423a7d8.css → 1f293605f2871853.css} +1 -1
- khoj/interface/compiled/_next/static/css/592ca99f5122e75a.css +1 -0
- khoj/interface/compiled/_next/static/css/63e106a52a0ec4ca.css +1 -0
- khoj/interface/compiled/_next/static/css/d2bc549245313f26.css +25 -0
- khoj/interface/compiled/_next/static/media/5455839c73f146e7-s.p.woff2 +0 -0
- khoj/interface/compiled/_next/static/media/5984b96ba4822821-s.woff2 +0 -0
- khoj/interface/compiled/_next/static/media/684adc3dde1b03f1-s.woff2 +0 -0
- khoj/interface/compiled/_next/static/media/82e3b9a1bdaf0c26-s.woff2 +0 -0
- khoj/interface/compiled/_next/static/media/8d1ea331386a0db8-s.woff2 +0 -0
- khoj/interface/compiled/_next/static/media/91475f6526542a4f-s.woff2 +0 -0
- khoj/interface/compiled/_next/static/media/b98b13dbc1c3b59c-s.woff2 +0 -0
- khoj/interface/compiled/_next/static/media/c824d7a20139e39d-s.woff2 +0 -0
- khoj/interface/compiled/agents/index.html +1 -1
- khoj/interface/compiled/agents/index.txt +2 -2
- khoj/interface/compiled/automations/index.html +1 -1
- khoj/interface/compiled/automations/index.txt +2 -2
- khoj/interface/compiled/chat/index.html +1 -1
- khoj/interface/compiled/chat/index.txt +2 -2
- khoj/interface/compiled/index.html +1 -1
- khoj/interface/compiled/index.txt +2 -2
- khoj/interface/compiled/search/index.html +1 -1
- khoj/interface/compiled/search/index.txt +2 -2
- khoj/interface/compiled/settings/index.html +1 -1
- khoj/interface/compiled/settings/index.txt +3 -3
- khoj/interface/compiled/share/chat/index.html +1 -1
- khoj/interface/compiled/share/chat/index.txt +2 -2
- khoj/processor/conversation/utils.py +7 -1
- khoj/processor/tools/online_search.py +49 -15
- khoj/routers/api.py +3 -1
- khoj/routers/api_chat.py +16 -9
- khoj/routers/helpers.py +45 -17
- khoj/routers/research.py +64 -29
- khoj/routers/web_client.py +0 -10
- {khoj-1.28.4.dev7.dist-info → khoj-1.28.4.dev22.dist-info}/METADATA +3 -3
- {khoj-1.28.4.dev7.dist-info → khoj-1.28.4.dev22.dist-info}/RECORD +66 -73
- {khoj-1.28.4.dev7.dist-info → khoj-1.28.4.dev22.dist-info}/WHEEL +1 -1
- khoj/interface/compiled/_next/static/chunks/1034-da58b679fcbb79c1.js +0 -1
- khoj/interface/compiled/_next/static/chunks/1467-b331e469fe411347.js +0 -1
- khoj/interface/compiled/_next/static/chunks/3110-ef2cacd1b8d79ad8.js +0 -1
- khoj/interface/compiled/_next/static/chunks/3423-ff7402ae1dd66592.js +0 -1
- khoj/interface/compiled/_next/static/chunks/394-6bcb8c429f168f21.js +0 -3
- khoj/interface/compiled/_next/static/chunks/7113-f2e114d7034a0835.js +0 -1
- khoj/interface/compiled/_next/static/chunks/app/agents/layout-75636ab3a413fa8e.js +0 -1
- khoj/interface/compiled/_next/static/chunks/app/agents/page-5ae1e540bb5be8a9.js +0 -1
- khoj/interface/compiled/_next/static/chunks/app/chat/layout-96fcf62857bf8f30.js +0 -1
- khoj/interface/compiled/_next/static/chunks/app/factchecker/layout-7b30c541c05fb904.js +0 -1
- khoj/interface/compiled/_next/static/chunks/app/factchecker/page-1cc42ee55f89fb2e.js +0 -1
- khoj/interface/compiled/_next/static/chunks/app/search/layout-3720f1362310bebb.js +0 -1
- khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-2df56074e42adaa0.js +0 -1
- khoj/interface/compiled/_next/static/css/553f9cdcc7a2bcd6.css +0 -1
- khoj/interface/compiled/_next/static/css/798b0de12852bd20.css +0 -1
- khoj/interface/compiled/_next/static/css/80bd6301fc657983.css +0 -1
- khoj/interface/compiled/_next/static/css/a795ee88875f4853.css +0 -25
- khoj/interface/compiled/_next/static/media/0e790e04fd40ad16-s.p.woff2 +0 -0
- khoj/interface/compiled/_next/static/media/4221e1667cd19c7d-s.woff2 +0 -0
- khoj/interface/compiled/_next/static/media/6c276159aa0eb14b-s.woff2 +0 -0
- khoj/interface/compiled/_next/static/media/6cc0b9500e4f9168-s.woff2 +0 -0
- khoj/interface/compiled/_next/static/media/9d9319a7a2ac39c6-s.woff2 +0 -0
- khoj/interface/compiled/_next/static/media/a75c8ea86756d52d-s.woff2 +0 -0
- khoj/interface/compiled/_next/static/media/abce7c400ca31a51-s.woff2 +0 -0
- khoj/interface/compiled/_next/static/media/f759c939737fb668-s.woff2 +0 -0
- khoj/interface/compiled/factchecker/index.html +0 -1
- khoj/interface/compiled/factchecker/index.txt +0 -7
- /khoj/interface/compiled/_next/static/chunks/{1970-90dd510762d820ba.js → 1970-d44050bf658ae5cc.js} +0 -0
- /khoj/interface/compiled/_next/static/chunks/{8423-f4976d6bda964f96.js → 8423-a1f432e4a8d9a6b0.js} +0 -0
- /khoj/interface/compiled/_next/static/chunks/{9417-951f46451a8dd6d7.js → 9417-0d0fc7eb49a86abb.js} +0 -0
- /khoj/interface/compiled/_next/static/{JfCnAJYWMXkmMgbWQv1u3 → hIwmaAtdW0-B6vZcnHMX0}/_buildManifest.js +0 -0
- /khoj/interface/compiled/_next/static/{JfCnAJYWMXkmMgbWQv1u3 → hIwmaAtdW0-B6vZcnHMX0}/_ssgManifest.js +0 -0
- {khoj-1.28.4.dev7.dist-info → khoj-1.28.4.dev22.dist-info}/entry_points.txt +0 -0
- {khoj-1.28.4.dev7.dist-info → khoj-1.28.4.dev22.dist-info}/licenses/LICENSE +0 -0
khoj/routers/research.py
CHANGED
@@ -43,38 +43,35 @@ async def apick_next_tool(
|
|
43
43
|
location: LocationData = None,
|
44
44
|
user_name: str = None,
|
45
45
|
agent: Agent = None,
|
46
|
-
|
46
|
+
previous_iterations: List[InformationCollectionIteration] = [],
|
47
47
|
max_iterations: int = 5,
|
48
48
|
send_status_func: Optional[Callable] = None,
|
49
49
|
tracer: dict = {},
|
50
50
|
):
|
51
|
-
"""
|
52
|
-
Given a query, determine which of the available tools the agent should use in order to answer appropriately. One at a time, and it's able to use subsequent iterations to refine the answer.
|
53
|
-
"""
|
51
|
+
"""Given a query, determine which of the available tools the agent should use in order to answer appropriately."""
|
54
52
|
|
53
|
+
# Construct tool options for the agent to choose from
|
55
54
|
tool_options = dict()
|
56
55
|
tool_options_str = ""
|
57
|
-
|
58
56
|
agent_tools = agent.input_tools if agent else []
|
59
|
-
|
60
57
|
for tool, description in function_calling_description_for_llm.items():
|
61
58
|
tool_options[tool.value] = description
|
62
59
|
if len(agent_tools) == 0 or tool.value in agent_tools:
|
63
60
|
tool_options_str += f'- "{tool.value}": "{description}"\n'
|
64
61
|
|
62
|
+
# Construct chat history with user and iteration history with researcher agent for context
|
65
63
|
chat_history = construct_chat_history(conversation_history, agent_name=agent.name if agent else "Khoj")
|
64
|
+
previous_iterations_history = construct_iteration_history(previous_iterations, prompts.previous_iteration)
|
66
65
|
|
67
66
|
if query_images:
|
68
67
|
query = f"[placeholder for user attached images]\n{query}"
|
69
68
|
|
69
|
+
today = datetime.today()
|
70
|
+
location_data = f"{location}" if location else "Unknown"
|
70
71
|
personality_context = (
|
71
72
|
prompts.personality_context.format(personality=agent.personality) if agent and agent.personality else ""
|
72
73
|
)
|
73
74
|
|
74
|
-
# Extract Past User Message and Inferred Questions from Conversation Log
|
75
|
-
today = datetime.today()
|
76
|
-
location_data = f"{location}" if location else "Unknown"
|
77
|
-
|
78
75
|
function_planning_prompt = prompts.plan_function_execution.format(
|
79
76
|
tools=tool_options_str,
|
80
77
|
chat_history=chat_history,
|
@@ -87,15 +84,24 @@ async def apick_next_tool(
|
|
87
84
|
max_iterations=max_iterations,
|
88
85
|
)
|
89
86
|
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
87
|
+
try:
|
88
|
+
with timer("Chat actor: Infer information sources to refer", logger):
|
89
|
+
response = await send_message_to_model_wrapper(
|
90
|
+
query=query,
|
91
|
+
context=function_planning_prompt,
|
92
|
+
response_type="json_object",
|
93
|
+
user=user,
|
94
|
+
query_images=query_images,
|
95
|
+
tracer=tracer,
|
96
|
+
)
|
97
|
+
except Exception as e:
|
98
|
+
logger.error(f"Failed to infer information sources to refer: {e}", exc_info=True)
|
99
|
+
yield InformationCollectionIteration(
|
100
|
+
tool=None,
|
101
|
+
query=None,
|
102
|
+
warning="Failed to infer information sources to refer. Skipping iteration. Try again.",
|
98
103
|
)
|
104
|
+
return
|
99
105
|
|
100
106
|
try:
|
101
107
|
response = clean_json(response)
|
@@ -103,8 +109,15 @@ async def apick_next_tool(
|
|
103
109
|
selected_tool = response.get("tool", None)
|
104
110
|
generated_query = response.get("query", None)
|
105
111
|
scratchpad = response.get("scratchpad", None)
|
112
|
+
warning = None
|
106
113
|
logger.info(f"Response for determining relevant tools: {response}")
|
107
|
-
|
114
|
+
|
115
|
+
# Detect selection of previously used query, tool combination.
|
116
|
+
previous_tool_query_combinations = {(i.tool, i.query) for i in previous_iterations}
|
117
|
+
if (selected_tool, generated_query) in previous_tool_query_combinations:
|
118
|
+
warning = f"Repeated tool, query combination detected. Skipping iteration. Try something different."
|
119
|
+
# Only send client status updates if we'll execute this iteration
|
120
|
+
elif send_status_func:
|
108
121
|
determined_tool_message = "**Determined Tool**: "
|
109
122
|
determined_tool_message += f"{selected_tool}({generated_query})." if selected_tool else "respond."
|
110
123
|
determined_tool_message += f"\nReason: {scratchpad}" if scratchpad else ""
|
@@ -114,13 +127,14 @@ async def apick_next_tool(
|
|
114
127
|
yield InformationCollectionIteration(
|
115
128
|
tool=selected_tool,
|
116
129
|
query=generated_query,
|
130
|
+
warning=warning,
|
117
131
|
)
|
118
|
-
|
119
132
|
except Exception as e:
|
120
133
|
logger.error(f"Invalid response for determining relevant tools: {response}. {e}", exc_info=True)
|
121
134
|
yield InformationCollectionIteration(
|
122
135
|
tool=None,
|
123
136
|
query=None,
|
137
|
+
warning=f"Invalid response for determining relevant tools: {response}. Skipping iteration. Fix error: {e}",
|
124
138
|
)
|
125
139
|
|
126
140
|
|
@@ -147,7 +161,6 @@ async def execute_information_collection(
|
|
147
161
|
document_results: List[Dict[str, str]] = []
|
148
162
|
summarize_files: str = ""
|
149
163
|
this_iteration = InformationCollectionIteration(tool=None, query=query)
|
150
|
-
previous_iterations_history = construct_iteration_history(previous_iterations, prompts.previous_iteration)
|
151
164
|
|
152
165
|
async for result in apick_next_tool(
|
153
166
|
query,
|
@@ -157,7 +170,7 @@ async def execute_information_collection(
|
|
157
170
|
location,
|
158
171
|
user_name,
|
159
172
|
agent,
|
160
|
-
|
173
|
+
previous_iterations,
|
161
174
|
MAX_ITERATIONS,
|
162
175
|
send_status_func,
|
163
176
|
tracer=tracer,
|
@@ -167,9 +180,16 @@ async def execute_information_collection(
|
|
167
180
|
elif isinstance(result, InformationCollectionIteration):
|
168
181
|
this_iteration = result
|
169
182
|
|
170
|
-
if
|
183
|
+
# Skip running iteration if warning present in iteration
|
184
|
+
if this_iteration.warning:
|
185
|
+
logger.warning(f"Research mode: {this_iteration.warning}.")
|
186
|
+
|
187
|
+
elif this_iteration.tool == ConversationCommand.Notes:
|
171
188
|
this_iteration.context = []
|
172
189
|
document_results = []
|
190
|
+
previous_inferred_queries = {
|
191
|
+
c["query"] for iteration in previous_iterations if iteration.context for c in iteration.context
|
192
|
+
}
|
173
193
|
async for result in extract_references_and_questions(
|
174
194
|
request,
|
175
195
|
construct_tool_chat_history(previous_iterations, ConversationCommand.Notes),
|
@@ -181,6 +201,7 @@ async def execute_information_collection(
|
|
181
201
|
location,
|
182
202
|
send_status_func,
|
183
203
|
query_images,
|
204
|
+
previous_inferred_queries=previous_inferred_queries,
|
184
205
|
agent=agent,
|
185
206
|
tracer=tracer,
|
186
207
|
):
|
@@ -204,6 +225,12 @@ async def execute_information_collection(
|
|
204
225
|
logger.error(f"Error extracting document references: {e}", exc_info=True)
|
205
226
|
|
206
227
|
elif this_iteration.tool == ConversationCommand.Online:
|
228
|
+
previous_subqueries = {
|
229
|
+
subquery
|
230
|
+
for iteration in previous_iterations
|
231
|
+
if iteration.onlineContext
|
232
|
+
for subquery in iteration.onlineContext.keys()
|
233
|
+
}
|
207
234
|
async for result in search_online(
|
208
235
|
this_iteration.query,
|
209
236
|
construct_tool_chat_history(previous_iterations, ConversationCommand.Online),
|
@@ -213,11 +240,16 @@ async def execute_information_collection(
|
|
213
240
|
[],
|
214
241
|
max_webpages_to_read=0,
|
215
242
|
query_images=query_images,
|
243
|
+
previous_subqueries=previous_subqueries,
|
216
244
|
agent=agent,
|
217
245
|
tracer=tracer,
|
218
246
|
):
|
219
247
|
if isinstance(result, dict) and ChatEvent.STATUS in result:
|
220
248
|
yield result[ChatEvent.STATUS]
|
249
|
+
elif is_none_or_empty(result):
|
250
|
+
this_iteration.warning = (
|
251
|
+
"Detected previously run online search queries. Skipping iteration. Try something different."
|
252
|
+
)
|
221
253
|
else:
|
222
254
|
online_results: Dict[str, Dict] = result # type: ignore
|
223
255
|
this_iteration.onlineContext = online_results
|
@@ -302,16 +334,19 @@ async def execute_information_collection(
|
|
302
334
|
|
303
335
|
current_iteration += 1
|
304
336
|
|
305
|
-
if document_results or online_results or code_results or summarize_files:
|
306
|
-
results_data = f"
|
337
|
+
if document_results or online_results or code_results or summarize_files or this_iteration.warning:
|
338
|
+
results_data = f"\n<iteration>{current_iteration}\n<tool>{this_iteration.tool}</tool>\n<query>{this_iteration.query}</query>\n<results>"
|
307
339
|
if document_results:
|
308
|
-
results_data += f"
|
340
|
+
results_data += f"\n<document_references>\n{yaml.dump(document_results, allow_unicode=True, sort_keys=False, default_flow_style=False)}\n</document_references>"
|
309
341
|
if online_results:
|
310
|
-
results_data += f"
|
342
|
+
results_data += f"\n<online_results>\n{yaml.dump(online_results, allow_unicode=True, sort_keys=False, default_flow_style=False)}\n</online_results>"
|
311
343
|
if code_results:
|
312
|
-
results_data += f"
|
344
|
+
results_data += f"\n<code_results>\n{yaml.dump(code_results, allow_unicode=True, sort_keys=False, default_flow_style=False)}\n</code_results>"
|
313
345
|
if summarize_files:
|
314
|
-
results_data += f"
|
346
|
+
results_data += f"\n<summarized_files>\n{yaml.dump(summarize_files, allow_unicode=True, sort_keys=False, default_flow_style=False)}\n</summarized_files>"
|
347
|
+
if this_iteration.warning:
|
348
|
+
results_data += f"\n<warning>\n{this_iteration.warning}\n</warning>"
|
349
|
+
results_data += "\n</results>\n</iteration>"
|
315
350
|
|
316
351
|
# intermediate_result = await extract_relevant_info(this_iteration.query, results_data, agent)
|
317
352
|
this_iteration.summarizedResult = results_data
|
khoj/routers/web_client.py
CHANGED
@@ -51,16 +51,6 @@ def chat_page(request: Request):
|
|
51
51
|
)
|
52
52
|
|
53
53
|
|
54
|
-
@web_client.get("/factchecker", response_class=FileResponse)
|
55
|
-
def fact_checker_page(request: Request):
|
56
|
-
return templates.TemplateResponse(
|
57
|
-
"factchecker/index.html",
|
58
|
-
context={
|
59
|
-
"request": request,
|
60
|
-
},
|
61
|
-
)
|
62
|
-
|
63
|
-
|
64
54
|
@web_client.get("/login", response_class=FileResponse)
|
65
55
|
def login_page(request: Request):
|
66
56
|
next_url = get_next_url(request)
|
@@ -1,13 +1,11 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: khoj
|
3
|
-
Version: 1.28.4.
|
3
|
+
Version: 1.28.4.dev22
|
4
4
|
Summary: Your Second Brain
|
5
5
|
Project-URL: Homepage, https://khoj.dev
|
6
6
|
Project-URL: Documentation, https://docs.khoj.dev
|
7
7
|
Project-URL: Code, https://github.com/khoj-ai/khoj
|
8
8
|
Author: Debanjum Singh Solanky, Saba Imran
|
9
|
-
License-Expression: AGPL-3.0-or-later
|
10
|
-
License-File: LICENSE
|
11
9
|
Keywords: AI,NLP,images,markdown,org-mode,pdf,productivity,search,semantic-search
|
12
10
|
Classifier: Development Status :: 5 - Production/Stable
|
13
11
|
Classifier: Intended Audience :: Information Technology
|
@@ -76,12 +74,14 @@ Requires-Dist: websockets==12.0
|
|
76
74
|
Provides-Extra: dev
|
77
75
|
Requires-Dist: black>=23.1.0; extra == 'dev'
|
78
76
|
Requires-Dist: boto3>=1.34.57; extra == 'dev'
|
77
|
+
Requires-Dist: datasets; extra == 'dev'
|
79
78
|
Requires-Dist: factory-boy>=3.2.1; extra == 'dev'
|
80
79
|
Requires-Dist: freezegun>=1.2.0; extra == 'dev'
|
81
80
|
Requires-Dist: gitpython~=3.1.43; extra == 'dev'
|
82
81
|
Requires-Dist: google-auth==2.23.3; extra == 'dev'
|
83
82
|
Requires-Dist: gunicorn==22.0.0; extra == 'dev'
|
84
83
|
Requires-Dist: mypy>=1.0.1; extra == 'dev'
|
84
|
+
Requires-Dist: pandas; extra == 'dev'
|
85
85
|
Requires-Dist: pre-commit>=3.0.4; extra == 'dev'
|
86
86
|
Requires-Dist: pytest-asyncio==0.21.1; extra == 'dev'
|
87
87
|
Requires-Dist: pytest-django==4.5.2; extra == 'dev'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
khoj/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
khoj/configure.py,sha256=
|
2
|
+
khoj/configure.py,sha256=mOagLV6APR2GfTtIopuHinFCO_NcJZe54dz9xpE2K6c,17324
|
3
3
|
khoj/main.py,sha256=9YMJEaKlVin5hxU0TcVH5X1CP6wX9HE8Z7qWSxNGPd0,8161
|
4
4
|
khoj/manage.py,sha256=njo6uLxGaMamTPesHjFEOIBJbpIUrz39e1V59zKj544,664
|
5
5
|
khoj/app/README.md,sha256=PSQjKCdpU2hgszLVF8yEhV7TWhbEEb-1aYLTRuuAsKI,2832
|
@@ -8,7 +8,7 @@ khoj/app/asgi.py,sha256=soh3C1xazlgHt_bDgKzrfzo2TKXbNYJsckcXNEgTip8,388
|
|
8
8
|
khoj/app/settings.py,sha256=M6sQUu_AdeKl3eruecBaifRBhYOBIait0KA2NPizcBM,6198
|
9
9
|
khoj/app/urls.py,sha256=7ECnusoAPAfbO_H_b5FUzYGvnb4LLdWaRDyKNvYuBvg,869
|
10
10
|
khoj/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
|
-
khoj/database/admin.py,sha256=
|
11
|
+
khoj/database/admin.py,sha256=Tmvcc4f3HECgxtynIs9ISkjapvu9hsPaStugzVoCmyE,9640
|
12
12
|
khoj/database/apps.py,sha256=pM4tkX5Odw4YW_hLLKK8Nd5kqGddf1en0oMCea44RZw,153
|
13
13
|
khoj/database/tests.py,sha256=mrbGGRNg5jwbTJtWWa7zSKdDyeB4vmgZCRc2nk6VY-g,60
|
14
14
|
khoj/database/adapters/__init__.py,sha256=JZNJF34Z4QYKHcvwBwXY5S92pbJaiHBKSOS1-r2wQZ4,67031
|
@@ -110,81 +110,77 @@ khoj/interface/compiled/chat.svg,sha256=l2JoYRRgk201adTTdvJ-buKUrc0WGfsudix5xEvt
|
|
110
110
|
khoj/interface/compiled/close.svg,sha256=hQ2iFLkNzHk0_iyTrSbwnWAeXYlgA-c2Eof2Iqh76n4,417
|
111
111
|
khoj/interface/compiled/copy-button-success.svg,sha256=byqWAYD3Pn9IOXRjOKudJ-TJbP2UESbQGvtLWazNGjY,829
|
112
112
|
khoj/interface/compiled/copy-button.svg,sha256=05bKM2eRxksfBlAPT7yMaoNJEk85bZCxQg67EVrPeHo,669
|
113
|
-
khoj/interface/compiled/index.html,sha256=
|
114
|
-
khoj/interface/compiled/index.txt,sha256=
|
113
|
+
khoj/interface/compiled/index.html,sha256=V17lrFmeci1fZvu_VQOBiFKfDS4ku1xU163y2XcWnd4,12184
|
114
|
+
khoj/interface/compiled/index.txt,sha256=xCjU05HYFuQR6wT0M40-_WMOiYqtudrJpaTg1jAkGFY,5625
|
115
115
|
khoj/interface/compiled/khoj.webmanifest,sha256=lsknYkvEdMbRTOUYKXPM_8krN2gamJmM4u3qj8u9lrU,1682
|
116
116
|
khoj/interface/compiled/logo.svg,sha256=_QCKVYM4WT2Qhcf7aVFImjq_s5CwjynGXYAOgI7yf8w,8059
|
117
117
|
khoj/interface/compiled/send.svg,sha256=VdavOWkVddcwcGcld6pdfmwfz7S91M-9O28cfeiKJkM,635
|
118
118
|
khoj/interface/compiled/share.svg,sha256=91lwo75PvMDrgocuZQab6EQ62CxRbubh9Bhw7CWMKbg,1221
|
119
119
|
khoj/interface/compiled/thumbs-down.svg,sha256=JGNl-DwoRmH2XFMPWwFFklmoYtKxaQbkLE3nuYKe8ZY,1019
|
120
120
|
khoj/interface/compiled/thumbs-up.svg,sha256=yS1wxTRtiztkN-6nZciLoYQUB_KTYNPV8xFRwH2TQFw,1036
|
121
|
-
khoj/interface/compiled/404/index.html,sha256=
|
122
|
-
khoj/interface/compiled/_next/static/JfCnAJYWMXkmMgbWQv1u3/_buildManifest.js,sha256=6I9QUstNpJnhe3leR2Daw0pSXwzcbBscv6h2jmmPpms,224
|
123
|
-
khoj/interface/compiled/_next/static/JfCnAJYWMXkmMgbWQv1u3/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
|
124
|
-
khoj/interface/compiled/_next/static/chunks/1034-da58b679fcbb79c1.js,sha256=Na2MJjnR44aBYNaUX6faMh8swqUxaTRsWnmH_gR_Dbk,16380
|
121
|
+
khoj/interface/compiled/404/index.html,sha256=tpszFTCfIv0x-ne_aI7QDG0GgyfXjz0ukWCZst-fd6A,12051
|
125
122
|
khoj/interface/compiled/_next/static/chunks/1210.132a7e1910006bbb.js,sha256=2dJueIfOg5qlQdanOM9HrgwcfrUXCD57bfd8Iv7iJcU,2104
|
126
123
|
khoj/interface/compiled/_next/static/chunks/1279-f37ee4a388ebf544.js,sha256=U_1WaocOdgJ4HZB8tRx_izzYGD1EZlCohC1uLCffCWc,45582
|
127
124
|
khoj/interface/compiled/_next/static/chunks/1459.690bf20e7d7b7090.js,sha256=z-ruZPxF_Z3ef_WOThd9Ox36AMhxaW3znizVivNnA34,34239
|
128
|
-
khoj/interface/compiled/_next/static/chunks/1467-b331e469fe411347.js,sha256=doNFtg16H_GUiIl20nECSukOXd5nT_S6IF3VikZXE8Y,12009
|
129
125
|
khoj/interface/compiled/_next/static/chunks/1603-c1568f45947e9f2c.js,sha256=b44y9AMEdvJMW6xc0mhcrHz_QKSvf1Rv2ZPMHjNt2mM,73175
|
130
|
-
khoj/interface/compiled/_next/static/chunks/1970-
|
126
|
+
khoj/interface/compiled/_next/static/chunks/1970-d44050bf658ae5cc.js,sha256=6cdvTgAJqyyihAHrhAN0Ht8yA-Y6ERdj99lLIveswZg,29835
|
127
|
+
khoj/interface/compiled/_next/static/chunks/2261-748f7c327df3c8c1.js,sha256=mnccV1BR2b9kKlj9DPF_XzoxuUal3kgajndLRVhj5bA,37344
|
131
128
|
khoj/interface/compiled/_next/static/chunks/3062-71ed4b46ac2bb87c.js,sha256=847h3nNxc8t4GOW20GIAp8c5kquVPEQ7EZurPzGySo0,258667
|
132
|
-
khoj/interface/compiled/_next/static/chunks/
|
133
|
-
khoj/interface/compiled/_next/static/chunks/3423-ff7402ae1dd66592.js,sha256=z1E26qIrzaCx4q8FLKW4uRv8K8Qj5bZ4OQ9KB0onVjo,22206
|
134
|
-
khoj/interface/compiled/_next/static/chunks/394-6bcb8c429f168f21.js,sha256=eg8aHEE09K4aI1MfxpslzHWU_ol0iR52EqlcrsJr20I,1084027
|
129
|
+
khoj/interface/compiled/_next/static/chunks/3803-d74118a2d0182c52.js,sha256=ElqfX0F63FP6mxsqJW-kD7U3Rlv922uDyF2LZ1VbJDc,15369
|
135
130
|
khoj/interface/compiled/_next/static/chunks/4504-1629487c8bc82203.js,sha256=z6NvJ2KOjYPbMNsYQKyX9PV4DeURUoP6LKoNb4kZXg0,11637
|
136
131
|
khoj/interface/compiled/_next/static/chunks/4602-8eeb4b76385ad159.js,sha256=pz2lEr0JOrMdrddv2R2vej4e9uxpOr5KFX966ClLbOU,29928
|
137
132
|
khoj/interface/compiled/_next/static/chunks/5512-94c7c2bbcf58c19d.js,sha256=ySpWRBlOMbttpBPr-j6_y9FmVrWfeRdardPkVnYAXzw,103730
|
133
|
+
khoj/interface/compiled/_next/static/chunks/5538-bf582517a8dd3faa.js,sha256=wKWyS5Spi4seYzZJuW4aVzoyAumHSaxBBjMHR_2Bd2M,31219
|
138
134
|
khoj/interface/compiled/_next/static/chunks/6297-d1c842ed3f714ab0.js,sha256=4nzZ2umR-q6wQ-8L4RSivWXKV_SE1dWoN9qA1I9lCRI,25675
|
139
135
|
khoj/interface/compiled/_next/static/chunks/7023-a5bf5744d19b3bd3.js,sha256=TBJA7dTnI8nymtbljKuZzo2hbStXWR-P8Qkl57k2Tw8,123898
|
140
|
-
khoj/interface/compiled/_next/static/chunks/7113-f2e114d7034a0835.js,sha256=_WB4I13sT-IJhhwbN6-pePwZYGrtDRVKERptTLMANzU,26827
|
141
136
|
khoj/interface/compiled/_next/static/chunks/7883-b1305ec254213afe.js,sha256=dDbERTNiKRIIdC7idybjZq03gnxQtudMawrekye0zH8,241134
|
142
|
-
khoj/interface/compiled/_next/static/chunks/8423-
|
137
|
+
khoj/interface/compiled/_next/static/chunks/8423-a1f432e4a8d9a6b0.js,sha256=uMaXu1uSVfkbnLhX7apT5OFkPTTgZ_cUYrUbr1hRh1g,12571
|
143
138
|
khoj/interface/compiled/_next/static/chunks/8840-b8d7b9f0923c6651.js,sha256=n1JrzFrvB_rC6THUiPniysyjauEG3Q3qAh20PTcfmhQ,173276
|
144
139
|
khoj/interface/compiled/_next/static/chunks/9001-3b27af6d5f21df44.js,sha256=ran2mMGTO2kiAJebRGMyfyAu4Sdjw-WobS_m6g-qjz8,34223
|
145
|
-
khoj/interface/compiled/_next/static/chunks/9417-
|
140
|
+
khoj/interface/compiled/_next/static/chunks/9417-0d0fc7eb49a86abb.js,sha256=F_6dFaA3bWVQX8ISxQ7mlz1CEaGFGsClOk0Fg_BQGSM,19548
|
141
|
+
khoj/interface/compiled/_next/static/chunks/9434-9bbae0af6e92854c.js,sha256=pmsxw60O5Wibz7OOi2f7rGGMG4KCloBZeju45jIibxw,1086908
|
146
142
|
khoj/interface/compiled/_next/static/chunks/94ca1967.5584df65931cfe83.js,sha256=lxdrZ8h3_IWkTuk6QlzM2Hd9Pvu9_p8h_EI4aveSOgE,1174519
|
147
143
|
khoj/interface/compiled/_next/static/chunks/964ecbae.ea4eab2a3a835ffe.js,sha256=EccPkhdFk6L0NIAVQfWe4kOpRWqhf20PkYecy7R_fyo,1175119
|
148
144
|
khoj/interface/compiled/_next/static/chunks/d3ac728e-a9e3522eef9b6b28.js,sha256=wK1TsLdl56xtbQG6HMRDpylzTOYXQaAnnn2xobFnX40,267216
|
149
145
|
khoj/interface/compiled/_next/static/chunks/fd9d1056-2b978342deb60015.js,sha256=2lquiZSfbI-gX4j4TW4JSMLL_D5ShqwydgWpFyXrTy8,172834
|
150
146
|
khoj/interface/compiled/_next/static/chunks/framework-8e0e0f4a6b83a956.js,sha256=sFFnSyDnFoOc61lP-EtTzTyf-zGA78ejDyMgPFMDw2Q,140001
|
147
|
+
khoj/interface/compiled/_next/static/chunks/main-1ea5c2e0fdef4626.js,sha256=8_u87PGI3PahFbDfGWGvpD-a18J7X7ChUqWIeqxVq7g,111061
|
151
148
|
khoj/interface/compiled/_next/static/chunks/main-app-6d6ee3495efe03d4.js,sha256=i52E7sWOcSq1G8eYZL3mtTxbUbwRNxcAbSWQ6uWpMsY,475
|
152
|
-
khoj/interface/compiled/_next/static/chunks/main-f84cd3c1873cd842.js,sha256=jKg2A4pPMmEAQmrA10rACH3daS8XXJeMnGOz1AsTkdI,111099
|
153
149
|
khoj/interface/compiled/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js,sha256=6QPOwdWeAVe8x-SsiDrm-Ga6u2DkqgG5SFqglrlyIgA,91381
|
154
|
-
khoj/interface/compiled/_next/static/chunks/webpack-
|
155
|
-
khoj/interface/compiled/_next/static/chunks/app/layout-
|
156
|
-
khoj/interface/compiled/_next/static/chunks/app/page-
|
150
|
+
khoj/interface/compiled/_next/static/chunks/webpack-5018ce30001e8c48.js,sha256=LjZh2hZD6tUJUS9JBQRHU-OF3Q6ow3SWlP2jq0Eyoxk,4054
|
151
|
+
khoj/interface/compiled/_next/static/chunks/app/layout-86561d2fac35a91a.js,sha256=2EWsyKE2kcC5uDvsOtgG5OP0hHCX8sCph4NqhUU2rCg,442
|
152
|
+
khoj/interface/compiled/_next/static/chunks/app/page-cbc0e7b837bd35fa.js,sha256=SQLkQXMfYJd5hs_OOvbyHD7v2t0IFt5_BL3NNBoJs0I,29487
|
157
153
|
khoj/interface/compiled/_next/static/chunks/app/_not-found/page-07ff4ab42b07845e.js,sha256=3mCUnxfMxyK44eqk21TVBrC6u--WSbvx31fTmQuOvMQ,1755
|
158
|
-
khoj/interface/compiled/_next/static/chunks/app/agents/layout-
|
159
|
-
khoj/interface/compiled/_next/static/chunks/app/agents/page-
|
154
|
+
khoj/interface/compiled/_next/static/chunks/app/agents/layout-e9838b642913a071.js,sha256=w3vWDf7m2_VG7q98_KGAWbCO06RI7iqFYsb4nDqGUDw,372
|
155
|
+
khoj/interface/compiled/_next/static/chunks/app/agents/page-f29d6b3efa6f96c6.js,sha256=xdsNNinlUZddYWXziWL5ESJwivTQRBktXxddM8VG3N0,11855
|
160
156
|
khoj/interface/compiled/_next/static/chunks/app/automations/layout-27c28e923c9b1ff0.js,sha256=d2vJ_lVB0pfeFXNUPzHAe1ca5NzdNowHPh___SPqugM,5143
|
161
|
-
khoj/interface/compiled/_next/static/chunks/app/automations/page-
|
162
|
-
khoj/interface/compiled/_next/static/chunks/app/chat/layout-
|
163
|
-
khoj/interface/compiled/_next/static/chunks/app/chat/page-
|
164
|
-
khoj/interface/compiled/_next/static/chunks/app/
|
165
|
-
khoj/interface/compiled/_next/static/chunks/app/
|
166
|
-
khoj/interface/compiled/_next/static/chunks/app/
|
167
|
-
khoj/interface/compiled/_next/static/chunks/app/
|
168
|
-
khoj/interface/compiled/_next/static/chunks/app/
|
169
|
-
khoj/interface/compiled/_next/static/chunks/app/
|
170
|
-
khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-2df56074e42adaa0.js,sha256=RPeayaV3Gbu0bJnD9vW5ml-xN-zN6UFBlTel-vOMYys,373
|
171
|
-
khoj/interface/compiled/_next/static/chunks/app/share/chat/page-db775d42e820afb2.js,sha256=9tH0E46ZZQm3SyFTaPFnuxh1iaBmGN03jAcbR1Gxk_w,5511
|
157
|
+
khoj/interface/compiled/_next/static/chunks/app/automations/page-d3edae545a1b5393.js,sha256=_rz2I87Y1B7HdtEn6h4k0ZZfp4K3UUKtb-j8RaL_jTg,35449
|
158
|
+
khoj/interface/compiled/_next/static/chunks/app/chat/layout-b0e7ff4baa3b5265.js,sha256=a-Qv2nHUrCa1gIs4Qo5txnOlhhQessAdcnAhhjaN3ag,374
|
159
|
+
khoj/interface/compiled/_next/static/chunks/app/chat/page-60bfb0b3b81d3d9d.js,sha256=aKGjJcu9s66hayzwXG-Z3jiI1L7VPZ5muZpnpLFCybc,6314
|
160
|
+
khoj/interface/compiled/_next/static/chunks/app/search/layout-ea6b73fdaf9b24ca.js,sha256=mBgNUjaTBNgIKOpZj722mh1ojg1CNIYRBPiupStSS6s,165
|
161
|
+
khoj/interface/compiled/_next/static/chunks/app/search/page-a5c277eff207959e.js,sha256=JE9P84ko6vhBzqw7zmd2PxCt3E7xcZjq-DWV0x8gVIM,6958
|
162
|
+
khoj/interface/compiled/_next/static/chunks/app/settings/layout-254eaaf916449a60.js,sha256=kHAKleDbNFfhNM3e1WLJm3OFw6PDtGcjyj5toO24vps,5347
|
163
|
+
khoj/interface/compiled/_next/static/chunks/app/settings/page-210bd54db4841333.js,sha256=JM7y1glSPLQD64iNrqVX6MzmPdBuU6zekT3An3tsC_g,32383
|
164
|
+
khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-cf7445cf0326bda3.js,sha256=W3axh1K4y-pLSXcXogLl4qLKXr5BZLY1uA7JfSWp5TU,373
|
165
|
+
khoj/interface/compiled/_next/static/chunks/app/share/chat/page-79cf030b31c7e793.js,sha256=s9d0P1hUSZIDGgnsj4_8Vq9UdtdALLv4hUcN1c9lu24,5503
|
172
166
|
khoj/interface/compiled/_next/static/chunks/pages/_app-f870474a17b7f2fd.js,sha256=eqdFPAN_XFyMUzZ9qwFk-_rhMWZrU7lgNVt1foVUANo,286
|
173
167
|
khoj/interface/compiled/_next/static/chunks/pages/_error-c66a4e8afc46f17b.js,sha256=vjERjtMAbVk-19LyPf1Jc-H6TMcrSznSz6brzNqbqf8,253
|
174
|
-
khoj/interface/compiled/_next/static/css/
|
168
|
+
khoj/interface/compiled/_next/static/css/0e9d53dcd7f11342.css,sha256=52_LSJ59Vwm1p2UpcDXEvq99pTjz2sW4EjF5iKf-dzs,2622
|
169
|
+
khoj/interface/compiled/_next/static/css/1f293605f2871853.css,sha256=G2b3Wx4e0DRBWSdNU20ivCChZI5HBzvPYUVVIdTRjLc,26590
|
175
170
|
khoj/interface/compiled/_next/static/css/3cf13271869a4aeb.css,sha256=sGjJTeMeN6wbQF4OCPgWYgJmSLLSHyzIH2rSVstWx7k,1857
|
176
|
-
khoj/interface/compiled/_next/static/css/467a524c75e7d7c0.css,sha256=yNoCTf6WSvmOpMGCnq1LEjF8lFDydKu4O5isN5KWqO8,2622
|
177
171
|
khoj/interface/compiled/_next/static/css/4cae6c0e5c72fb2d.css,sha256=3CjTMmtMrm_MYt1ywtUh2MHEjSLSl356SQLl4hdBuYw,534
|
178
|
-
khoj/interface/compiled/_next/static/css/
|
172
|
+
khoj/interface/compiled/_next/static/css/592ca99f5122e75a.css,sha256=BSqRkeb9vBh0phx5GkAlZirTFZintbyggGaUkuOBfaU,914
|
179
173
|
khoj/interface/compiled/_next/static/css/5a400c87d295e68a.css,sha256=ojDUPJ9fJpEo9DzTAsEa-k1cg7Bef-nSTfpszMiqknQ,17711
|
180
|
-
khoj/interface/compiled/_next/static/css/
|
181
|
-
khoj/interface/compiled/_next/static/css/
|
182
|
-
khoj/interface/compiled/_next/static/
|
183
|
-
khoj/interface/compiled/_next/static/
|
184
|
-
khoj/interface/compiled/_next/static/media/
|
185
|
-
khoj/interface/compiled/_next/static/media/
|
186
|
-
khoj/interface/compiled/_next/static/media/
|
187
|
-
khoj/interface/compiled/_next/static/media/
|
174
|
+
khoj/interface/compiled/_next/static/css/63e106a52a0ec4ca.css,sha256=Wv-HjEgVcNJ3OHNbnsizTFoL1P6Khfb9o4Qt-rQyPY4,9549
|
175
|
+
khoj/interface/compiled/_next/static/css/d2bc549245313f26.css,sha256=qWp5cJlw4rOWHy1fnNQsCrnTzvaEtCzihIVem9ocN1o,3055444
|
176
|
+
khoj/interface/compiled/_next/static/hIwmaAtdW0-B6vZcnHMX0/_buildManifest.js,sha256=6I9QUstNpJnhe3leR2Daw0pSXwzcbBscv6h2jmmPpms,224
|
177
|
+
khoj/interface/compiled/_next/static/hIwmaAtdW0-B6vZcnHMX0/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
|
178
|
+
khoj/interface/compiled/_next/static/media/5455839c73f146e7-s.p.woff2,sha256=BUeNjYxyX7Bu76aNlJrZtW3PwYgcH-kp8syFdODZoyc,35788
|
179
|
+
khoj/interface/compiled/_next/static/media/5984b96ba4822821-s.woff2,sha256=RFrf6fMTduuQwEe78qK6_Y_Mnj97HmRDG-VujYxwA90,99368
|
180
|
+
khoj/interface/compiled/_next/static/media/684adc3dde1b03f1-s.woff2,sha256=5loL1Nrr0sWovNVA8BcfMnck7uDntv7wBNd9oxGMaM8,19820
|
181
|
+
khoj/interface/compiled/_next/static/media/82e3b9a1bdaf0c26-s.woff2,sha256=12nxTBGEi6NMmSKH4aLyaTynNRtuMM_boJeA15j-tCU,70720
|
182
|
+
khoj/interface/compiled/_next/static/media/8d1ea331386a0db8-s.woff2,sha256=LinNkR026HAjnEHitceckgTUQJZNMkpOkpJLKGajPWY,167984
|
183
|
+
khoj/interface/compiled/_next/static/media/91475f6526542a4f-s.woff2,sha256=S-6BrPKi8mCL1RgdWeUl1X2-owSeZe_FtCpGxE6spVQ,10760
|
188
184
|
khoj/interface/compiled/_next/static/media/KaTeX_AMS-Regular.1608a09b.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
|
189
185
|
khoj/interface/compiled/_next/static/media/KaTeX_AMS-Regular.4aafdb68.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
|
190
186
|
khoj/interface/compiled/_next/static/media/KaTeX_AMS-Regular.a79f1c31.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
|
@@ -245,15 +241,14 @@ khoj/interface/compiled/_next/static/media/KaTeX_Size4-Regular.fbccdabe.ttf,sha2
|
|
245
241
|
khoj/interface/compiled/_next/static/media/KaTeX_Typewriter-Regular.6258592b.woff,sha256=4U_tArGrp86fWv1YRLXQMhsiNR_rxyDg3ouHI1J2Cfc,16028
|
246
242
|
khoj/interface/compiled/_next/static/media/KaTeX_Typewriter-Regular.a8709e36.woff2,sha256=cdUX1ngneHz6vfGGkUzDNY7aU543kxlB8rL9SiH2jAs,13568
|
247
243
|
khoj/interface/compiled/_next/static/media/KaTeX_Typewriter-Regular.d97aaf4a.ttf,sha256=8B8-h9nGphwMCBzrV3q9hk6wCmEvesFiDdaRX60u9ao,27556
|
248
|
-
khoj/interface/compiled/_next/static/media/
|
249
|
-
khoj/interface/compiled/_next/static/media/
|
250
|
-
khoj/interface/compiled/_next/static/media/f759c939737fb668-s.woff2,sha256=_rujNRyE70waQoZR-QT9fHMAwLp4eQ5DiZDNo84AXcw,126628
|
244
|
+
khoj/interface/compiled/_next/static/media/b98b13dbc1c3b59c-s.woff2,sha256=IFYibW121lOX2r1qlYb53zIkSvP_DOI5wBFkvpiyrd0,14456
|
245
|
+
khoj/interface/compiled/_next/static/media/c824d7a20139e39d-s.woff2,sha256=YTBjBpMFGNfNGOqz3DU-R0tI5OmIxLFnT4eRKmNQ8HE,21580
|
251
246
|
khoj/interface/compiled/_next/static/media/flags.3afdda2f.webp,sha256=M2AW_HLpBnqDVp8fm33s1kM1w6xOtAjHn53JFfxmlqg,56280
|
252
247
|
khoj/interface/compiled/_next/static/media/flags@2x.5fbe9fc1.webp,sha256=BBeRPBZkxY3-aKkMnYv5TSkxmbeMbyUH4VRIPfrWg1E,137406
|
253
248
|
khoj/interface/compiled/_next/static/media/globe.98e105ca.webp,sha256=g3ofb8-W9GM75zIhlvQhaS8I2py9TtrovOKR3_7Jf04,514
|
254
249
|
khoj/interface/compiled/_next/static/media/globe@2x.974df6f8.webp,sha256=I_N7Yke3IOoS-0CC6XD8o0IUWG8PdPbrHmf6lpgWlZY,1380
|
255
|
-
khoj/interface/compiled/agents/index.html,sha256=
|
256
|
-
khoj/interface/compiled/agents/index.txt,sha256=
|
250
|
+
khoj/interface/compiled/agents/index.html,sha256=JeH1SUF3u0vb_pA9WeX13_uH50JjXSy_1ySiWF9US-g,12966
|
251
|
+
khoj/interface/compiled/agents/index.txt,sha256=6yqk-up77DTLOPSUDtU3GMauGJwpwM7T_5GwQb8LG2s,6178
|
257
252
|
khoj/interface/compiled/assets/icons/khoj_lantern.ico,sha256=eggu-B_v3z1R53EjOFhIqqPnICBGdoaw1xnc0NrzHck,174144
|
258
253
|
khoj/interface/compiled/assets/icons/khoj_lantern_128x128.png,sha256=aTxivDb3CYyThkVZWz8A19xl_dNut5DbkXhODWF3A9Q,5640
|
259
254
|
khoj/interface/compiled/assets/icons/khoj_lantern_256x256.png,sha256=xPCMLHiaL7lYOdQLZrKwWE-Qjn5ZaysSZB0ScYv4UZU,12312
|
@@ -264,18 +259,16 @@ khoj/interface/compiled/assets/samples/desktop-remember-plan-sample.png,sha256=i
|
|
264
259
|
khoj/interface/compiled/assets/samples/phone-browse-draw-sample.png,sha256=Dd4fPwtFl6BWqnHjeb1mCK_ND0hhHsWtx8sNE7EiMuE,406179
|
265
260
|
khoj/interface/compiled/assets/samples/phone-plain-chat-sample.png,sha256=DEDaNRCkfEWUeh3kYZWIQDTVK1a6KKnYdwj5ZWisN_Q,82985
|
266
261
|
khoj/interface/compiled/assets/samples/phone-remember-plan-sample.png,sha256=Ma3blirRmq3X4oYSsDbbT7MDn29rymDrjwmUfA9BMuM,236285
|
267
|
-
khoj/interface/compiled/automations/index.html,sha256=
|
268
|
-
khoj/interface/compiled/automations/index.txt,sha256=
|
269
|
-
khoj/interface/compiled/chat/index.html,sha256=
|
270
|
-
khoj/interface/compiled/chat/index.txt,sha256=
|
271
|
-
khoj/interface/compiled/
|
272
|
-
khoj/interface/compiled/
|
273
|
-
khoj/interface/compiled/
|
274
|
-
khoj/interface/compiled/
|
275
|
-
khoj/interface/compiled/
|
276
|
-
khoj/interface/compiled/
|
277
|
-
khoj/interface/compiled/share/chat/index.html,sha256=mwofApjoVEL8nlaAMyE_oUYb-FGr5rwdy4aTWTvEy4I,15442
|
278
|
-
khoj/interface/compiled/share/chat/index.txt,sha256=mhLNjJr9mbvi11dG8utSpcrA5oatz-lGfwDptJB9ZfM,7495
|
262
|
+
khoj/interface/compiled/automations/index.html,sha256=bnI2J9fU_vKuYUkW5KgiHsXertRDto_FlLYihIgW0dA,30941
|
263
|
+
khoj/interface/compiled/automations/index.txt,sha256=wQ0UteGWdLeOE8hFRQ17A_rPlyiiDQSabzxpAJwrc70,5633
|
264
|
+
khoj/interface/compiled/chat/index.html,sha256=SxqUWc8Py84MV9Ob8V35CzX1AW3cz24HCKhPG8pU8EM,13552
|
265
|
+
khoj/interface/compiled/chat/index.txt,sha256=_cNTuGWeZTduyUgp8qR_jblPiLh8sdey89pQrOLREtA,6457
|
266
|
+
khoj/interface/compiled/search/index.html,sha256=5c_p0ZFN81cniRc-KvMf7SQxtB0leA7JB52-ZntMmvg,30161
|
267
|
+
khoj/interface/compiled/search/index.txt,sha256=WqDJArWE7zf1bXhmwO4nORq_p-9BVD-xxICknGDMJdQ,5256
|
268
|
+
khoj/interface/compiled/settings/index.html,sha256=rbsCtwf5H2Y67eK40y1CUy9cm0h9BvhiuwIRRiV5RhY,12831
|
269
|
+
khoj/interface/compiled/settings/index.txt,sha256=0enSdPYgpCyAWwfr0EQdaoC0GLbSa3uxq1u1vYEhhVs,6078
|
270
|
+
khoj/interface/compiled/share/chat/index.html,sha256=oD-O8VqDZE-SYSOsc9yfDM2n5RLpYkLZsT6yyA_rgdc,15185
|
271
|
+
khoj/interface/compiled/share/chat/index.txt,sha256=pxCYgGe08FT_oVwcI_b6BwUCJz7m31o2AO30rN0gFIU,7401
|
279
272
|
khoj/interface/email/feedback.html,sha256=xksuPFamx4hGWyTTxZKRgX_eiYQQEuv-eK9Xmkt-nwU,1216
|
280
273
|
khoj/interface/email/magic_link.html,sha256=EoGKQucfPj3xQrWXhSZAzPFOYCHF_ZX94TWCd1XHl1M,941
|
281
274
|
khoj/interface/email/task.html,sha256=tY7a0gzVeQ2lSQNu7WyXR_s7VYeWTrxWEj1iHVuoVE4,2813
|
@@ -328,7 +321,7 @@ khoj/processor/content/plaintext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
|
|
328
321
|
khoj/processor/content/plaintext/plaintext_to_entries.py,sha256=97i7Cm0DTY7jW4iqKOT_oVc2ooa_XhQ8iImsljp1Kek,4994
|
329
322
|
khoj/processor/conversation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
330
323
|
khoj/processor/conversation/prompts.py,sha256=ec_sldNbX-FHrc1h824_2_MREnwbbRpcYHFZhU_sOg4,46807
|
331
|
-
khoj/processor/conversation/utils.py,sha256=
|
324
|
+
khoj/processor/conversation/utils.py,sha256=OBM_rUymlhs71nkD0RTq8_xLFmJxY6cPtmA0Ed617Nk,25626
|
332
325
|
khoj/processor/conversation/anthropic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
333
326
|
khoj/processor/conversation/anthropic/anthropic_chat.py,sha256=jWmko9jzYqaojQmv_u8Iow5GzU0FPbCEslP4z9XufWQ,8521
|
334
327
|
khoj/processor/conversation/anthropic/utils.py,sha256=6_FnsfLRqjkubkfMVmPTEEBzvMUOAccIz5AHV6B9mU8,6623
|
@@ -347,24 +340,24 @@ khoj/processor/image/generate.py,sha256=sSviN4d5jPCayEqVY-VgePf1bac9ljbpAJ3_g1ri
|
|
347
340
|
khoj/processor/speech/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
348
341
|
khoj/processor/speech/text_to_speech.py,sha256=Q7sapi5Hv6woXOumtrGqR0t6izZrFBkWXFOGrHM6dJ4,1929
|
349
342
|
khoj/processor/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
350
|
-
khoj/processor/tools/online_search.py,sha256=
|
343
|
+
khoj/processor/tools/online_search.py,sha256=5HnaKlE2eRO7swz_b73dppEmUre4THLfbtzfyqNGibY,16085
|
351
344
|
khoj/processor/tools/run_code.py,sha256=BmGIO8vBBkDSVJ_CnjcC-DKm_23Irht5w2DVNQHf548,4851
|
352
345
|
khoj/routers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
353
|
-
khoj/routers/api.py,sha256=
|
346
|
+
khoj/routers/api.py,sha256=kD0HPmPzuAdfkGAIRfNPDyyKcMg9_bDb6GAyLTiK1R8,28296
|
354
347
|
khoj/routers/api_agents.py,sha256=4T0osmOGFmYC-BhdAkT5HpT2zaktlL7Agj47-To-jxo,9773
|
355
|
-
khoj/routers/api_chat.py,sha256=
|
348
|
+
khoj/routers/api_chat.py,sha256=jNbzOLD_t9sAmDJPr-iV7n7tKIQJaZHrMxpVTjxPSRk,46551
|
356
349
|
khoj/routers/api_content.py,sha256=lWunOwVWYvnl1ue_D81g9ZSwBc0UxHmBIrdJoVPxN_A,17900
|
357
350
|
khoj/routers/api_model.py,sha256=KDsxNwHspC94eTcv6l3ehr773EOvgc670UnZLE1WZ4o,3642
|
358
351
|
khoj/routers/api_phone.py,sha256=p9yfc4WeMHDC0hg3aQk60a2VBy8rZPdEnz9wdJ7DzkU,2208
|
359
352
|
khoj/routers/api_subscription.py,sha256=sR5_XxQ4e_1hk3K4g0i3S8PZeULP23lnGtrWnfjhNDI,5307
|
360
353
|
khoj/routers/auth.py,sha256=HO54PR-BkWA_iJIktEobUrObcXVYG-00jpnIcEVdR5s,6564
|
361
354
|
khoj/routers/email.py,sha256=SGYNPQvfcvYeHf70F0YqpY0FLMRElF2ZekROXdwGI18,3821
|
362
|
-
khoj/routers/helpers.py,sha256=
|
355
|
+
khoj/routers/helpers.py,sha256=BbyiIsvZvrR46Gt7Xdmucrx6XxRG-6WksCOwGBRY1JE,79686
|
363
356
|
khoj/routers/notion.py,sha256=Lp67xP9rVgpAF9BQoGTjZFcVdF1HYtvPP0kjq6uurKU,2802
|
364
|
-
khoj/routers/research.py,sha256=
|
357
|
+
khoj/routers/research.py,sha256=RKGJRaSxNxbd7tguR3CXp7rs0pogMWrSrLeUxVlQZ8I,15390
|
365
358
|
khoj/routers/storage.py,sha256=tJrwhFRVWv0MHv7V7huMc1Diwm-putZSwnZXJ3tqT_c,2338
|
366
359
|
khoj/routers/twilio.py,sha256=MLsuCm4--ETvr3sLxbF0CL_ehlg_l2rKBSLR2Qh2Xls,1081
|
367
|
-
khoj/routers/web_client.py,sha256=
|
360
|
+
khoj/routers/web_client.py,sha256=frH03Sh0AR7c2MvRyc5a3tOFyxyVak3d1pl1sLcLLD4,4212
|
368
361
|
khoj/search_filter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
369
362
|
khoj/search_filter/base_filter.py,sha256=BzoZA_wAUg_eZ5vhaaipwVTSG0ZMxWCHxHsZrzo4KS0,358
|
370
363
|
khoj/search_filter/date_filter.py,sha256=7MCXyeDy9TGG81IesLrgV7vnTUDXWe8xj8NeeESd1Xk,10019
|
@@ -384,8 +377,8 @@ khoj/utils/models.py,sha256=Q5tcC9-z25sCiub048fLnvZ6_IIO1bcPNxt5payekk0,2009
|
|
384
377
|
khoj/utils/rawconfig.py,sha256=kURDuk7x0MDtniGLU4x1IsvU4UIBS-V9dSM4GD8X-LY,4274
|
385
378
|
khoj/utils/state.py,sha256=x4GTewP1YhOA6c_32N4wOjnV-3AA3xG_qbY1-wC2Uxc,1559
|
386
379
|
khoj/utils/yaml.py,sha256=qy1Tkc61rDMesBw_Cyx2vOR6H-Hngcsm5kYfjwQBwkE,1543
|
387
|
-
khoj-1.28.4.
|
388
|
-
khoj-1.28.4.
|
389
|
-
khoj-1.28.4.
|
390
|
-
khoj-1.28.4.
|
391
|
-
khoj-1.28.4.
|
380
|
+
khoj-1.28.4.dev22.dist-info/METADATA,sha256=owmlf09dakk-z0_0J-ffnL2QZDTGf4oyld7wUT9jzKc,7093
|
381
|
+
khoj-1.28.4.dev22.dist-info/WHEEL,sha256=3U_NnUcV_1B1kPkYaPzN-irRckL5VW_lytn0ytO_kRY,87
|
382
|
+
khoj-1.28.4.dev22.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
|
383
|
+
khoj-1.28.4.dev22.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
384
|
+
khoj-1.28.4.dev22.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1034],{33009:function(e,a,t){t.d(a,{a:function(){return d}});var r=t(2265),l=t(52195);let n=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,112H56l72-72Z",opacity:"0.2"}),r.createElement("path",{d:"M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z"}))]]);var m=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,h=(e,a,t)=>a in e?m(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,E=(e,a)=>{for(var t in a||(a={}))i.call(a,t)&&h(e,t,a[t]);if(p)for(var t of p(a))u.call(a,t)&&h(e,t,a[t]);return e},Z=(e,a)=>c(e,o(a));let d=(0,r.forwardRef)((e,a)=>r.createElement(l.Z,Z(E({ref:a},e),{weights:n})));d.displayName="ArrowUp"},86829:function(e,a,t){t.d(a,{P:function(){return d}});var r=t(2265),l=t(52195);let n=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,180a52.06,52.06,0,0,0,52-52V64A52,52,0,0,0,76,64v64A52.06,52.06,0,0,0,128,180ZM100,64a28,28,0,0,1,56,0v64a28,28,0,0,1-56,0Zm40,155.22V240a12,12,0,0,1-24,0V219.22A92.14,92.14,0,0,1,36,128a12,12,0,0,1,24,0,68,68,0,0,0,136,0,12,12,0,0,1,24,0A92.14,92.14,0,0,1,140,219.22Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M168,64v64a40,40,0,0,1-40,40h0a40,40,0,0,1-40-40V64a40,40,0,0,1,40-40h0A40,40,0,0,1,168,64Z",opacity:"0.2"}),r.createElement("path",{d:"M128,176a48.05,48.05,0,0,0,48-48V64a48,48,0,0,0-96,0v64A48.05,48.05,0,0,0,128,176ZM96,64a32,32,0,0,1,64,0v64a32,32,0,0,1-64,0Zm40,143.6V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64,64,0,0,0,128,0,8,8,0,0,1,16,0A80.11,80.11,0,0,1,136,207.6Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M80,128V64a48,48,0,0,1,96,0v64a48,48,0,0,1-96,0Zm128,0a8,8,0,0,0-16,0,64,64,0,0,1-128,0,8,8,0,0,0-16,0,80.11,80.11,0,0,0,72,79.6V240a8,8,0,0,0,16,0V207.6A80.11,80.11,0,0,0,208,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,174a46.06,46.06,0,0,0,46-46V64a46,46,0,0,0-92,0v64A46.06,46.06,0,0,0,128,174ZM94,64a34,34,0,0,1,68,0v64a34,34,0,0,1-68,0Zm40,141.75V240a6,6,0,0,1-12,0V205.75A78.09,78.09,0,0,1,50,128a6,6,0,0,1,12,0,66,66,0,0,0,132,0,6,6,0,0,1,12,0A78.09,78.09,0,0,1,134,205.75Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,176a48.05,48.05,0,0,0,48-48V64a48,48,0,0,0-96,0v64A48.05,48.05,0,0,0,128,176ZM96,64a32,32,0,0,1,64,0v64a32,32,0,0,1-64,0Zm40,143.6V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64,64,0,0,0,128,0,8,8,0,0,1,16,0A80.11,80.11,0,0,1,136,207.6Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,172a44.05,44.05,0,0,0,44-44V64a44,44,0,0,0-88,0v64A44.05,44.05,0,0,0,128,172ZM92,64a36,36,0,0,1,72,0v64a36,36,0,0,1-72,0Zm40,139.89V240a4,4,0,0,1-8,0V203.89A76.09,76.09,0,0,1,52,128a4,4,0,0,1,8,0,68,68,0,0,0,136,0,4,4,0,0,1,8,0A76.09,76.09,0,0,1,132,203.89Z"}))]]);var m=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,h=(e,a,t)=>a in e?m(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,E=(e,a)=>{for(var t in a||(a={}))i.call(a,t)&&h(e,t,a[t]);if(p)for(var t of p(a))u.call(a,t)&&h(e,t,a[t]);return e},Z=(e,a)=>c(e,o(a));let d=(0,r.forwardRef)((e,a)=>r.createElement(l.Z,Z(E({ref:a},e),{weights:n})));d.displayName="Microphone"},35719:function(e,a,t){t.d(a,{p:function(){return d}});var r=t(2265),l=t(52195);let n=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M212.48,136.49l-82.06,82a60,60,0,0,1-84.85-84.88l98.16-97.89a40,40,0,0,1,56.56,56.59l-.17.16-95.8,92.22a12,12,0,1,1-16.64-17.3l95.71-92.12a16,16,0,0,0-22.7-22.56L62.53,150.57a36,36,0,0,0,50.93,50.91l82.06-82a12,12,0,0,1,17,17Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M180.75,104.75,204,128l-82.06,81.94a48,48,0,0,1-67.88-67.88L153.37,41.37a32,32,0,0,1,45.26,45.26Z",opacity:"0.2"}),r.createElement("path",{d:"M209.66,122.34a8,8,0,0,1,0,11.32l-82.05,82a56,56,0,0,1-79.2-79.21L147.67,35.73a40,40,0,1,1,56.61,56.55L105,193A24,24,0,1,1,71,159L154.3,74.38A8,8,0,1,1,165.7,85.6L82.39,170.31a8,8,0,1,0,11.27,11.36L192.93,81A24,24,0,1,0,159,47L59.76,147.68a40,40,0,1,0,56.53,56.62l82.06-82A8,8,0,0,1,209.66,122.34Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,50.34a8,8,0,0,0-11.32,0L87.09,143A24,24,0,1,0,121,177l49.32-50.32a8,8,0,1,1,11.42,11.2l-49.37,50.38a40,40,0,1,1-56.62-56.51L143,63.09A24,24,0,1,1,177,97L109.71,165.6a8,8,0,1,1-11.42-11.2L165.6,85.71a8,8,0,0,0,.06-11.37Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208.25,123.76a6,6,0,0,1,0,8.49l-82.06,82a54,54,0,0,1-76.36-76.39L149.1,37.14a38,38,0,1,1,53.77,53.72L103.59,191.54a22,22,0,1,1-31.15-31.09l83.28-84.67a6,6,0,0,1,8.56,8.42L81,168.91a10,10,0,1,0,14.11,14.18L194.35,82.4a26,26,0,1,0-36.74-36.8L58.33,146.28a42,42,0,1,0,59.37,59.44l82.06-82A6,6,0,0,1,208.25,123.76Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M209.66,122.34a8,8,0,0,1,0,11.32l-82.05,82a56,56,0,0,1-79.2-79.21L147.67,35.73a40,40,0,1,1,56.61,56.55L105,193A24,24,0,1,1,71,159L154.3,74.38A8,8,0,1,1,165.7,85.6L82.39,170.31a8,8,0,1,0,11.27,11.36L192.93,81A24,24,0,1,0,159,47L59.76,147.68a40,40,0,1,0,56.53,56.62l82.06-82A8,8,0,0,1,209.66,122.34Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M206.83,125.17a4,4,0,0,1,0,5.66l-82.06,82a52,52,0,0,1-73.54-73.55L150.52,38.55a36,36,0,1,1,50.94,50.9l-99.3,100.69a20,20,0,1,1-28.3-28.27l83.29-84.68a4,4,0,1,1,5.7,5.61L79.54,167.5a12,12,0,1,0,16.95,17L195.78,83.81A28,28,0,1,0,156.2,44.18L56.91,144.87a44,44,0,1,0,62.21,62.26l82-82A4,4,0,0,1,206.83,125.17Z"}))]]);var m=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,h=(e,a,t)=>a in e?m(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,E=(e,a)=>{for(var t in a||(a={}))i.call(a,t)&&h(e,t,a[t]);if(p)for(var t of p(a))u.call(a,t)&&h(e,t,a[t]);return e},Z=(e,a)=>c(e,o(a));let d=(0,r.forwardRef)((e,a)=>r.createElement(l.Z,Z(E({ref:a},e),{weights:n})));d.displayName="Paperclip"},77689:function(e,a,t){t.d(a,{d:function(){return d}});var r=t(2265),l=t(52195);let n=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,36H56A20,20,0,0,0,36,56V200a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,160H60V60H196Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,56V200a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z",opacity:"0.2"}),r.createElement("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,42H56A14,14,0,0,0,42,56V200a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,158a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M200,44H56A12,12,0,0,0,44,56V200a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,156a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4Z"}))]]);var m=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,h=(e,a,t)=>a in e?m(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,E=(e,a)=>{for(var t in a||(a={}))i.call(a,t)&&h(e,t,a[t]);if(p)for(var t of p(a))u.call(a,t)&&h(e,t,a[t]);return e},Z=(e,a)=>c(e,o(a));let d=(0,r.forwardRef)((e,a)=>r.createElement(l.Z,Z(E({ref:a},e),{weights:n})));d.displayName="Stop"},82119:function(e,a,t){t.d(a,{$:function(){return d}});var r=t(2265),l=t(52195);let n=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,52H80a76,76,0,0,0,0,152h96a76,76,0,0,0,0-152Zm0,128H80A52,52,0,0,1,80,76h96a52,52,0,0,1,0,104ZM80,88a40,40,0,1,0,40,40A40,40,0,0,0,80,88Zm0,56a16,16,0,1,1,16-16A16,16,0,0,1,80,144Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M112,128A32,32,0,1,1,80,96,32,32,0,0,1,112,128Z",opacity:"0.2"}),r.createElement("path",{d:"M176,56H80a72,72,0,0,0,0,144h96a72,72,0,0,0,0-144Zm0,128H80A56,56,0,0,1,80,72h96a56,56,0,0,1,0,112ZM80,88a40,40,0,1,0,40,40A40,40,0,0,0,80,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,80,152Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,56H80a72,72,0,0,0,0,144h96a72,72,0,0,0,0-144ZM80,168a40,40,0,1,1,40-40A40,40,0,0,1,80,168Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,58H80a70,70,0,0,0,0,140h96a70,70,0,0,0,0-140Zm0,128H80A58,58,0,0,1,80,70h96a58,58,0,0,1,0,116ZM80,90a38,38,0,1,0,38,38A38,38,0,0,0,80,90Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,80,154Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,56H80a72,72,0,0,0,0,144h96a72,72,0,0,0,0-144Zm0,128H80A56,56,0,0,1,80,72h96a56,56,0,0,1,0,112ZM80,88a40,40,0,1,0,40,40A40,40,0,0,0,80,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,80,152Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,60H80a68,68,0,0,0,0,136h96a68,68,0,0,0,0-136Zm0,128H80A60,60,0,0,1,80,68h96a60,60,0,0,1,0,120ZM80,92a36,36,0,1,0,36,36A36,36,0,0,0,80,92Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,80,156Z"}))]]);var m=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,h=(e,a,t)=>a in e?m(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,E=(e,a)=>{for(var t in a||(a={}))i.call(a,t)&&h(e,t,a[t]);if(p)for(var t of p(a))u.call(a,t)&&h(e,t,a[t]);return e},Z=(e,a)=>c(e,o(a));let d=(0,r.forwardRef)((e,a)=>r.createElement(l.Z,Z(E({ref:a},e),{weights:n})));d.displayName="ToggleLeft"},51091:function(e,a,t){t.d(a,{W:function(){return d}});var r=t(2265),l=t(52195);let n=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,52H80a76,76,0,0,0,0,152h96a76,76,0,0,0,0-152Zm0,128H80A52,52,0,0,1,80,76h96a52,52,0,0,1,0,104Zm0-92a40,40,0,1,0,40,40A40,40,0,0,0,176,88Zm0,56a16,16,0,1,1,16-16A16,16,0,0,1,176,144Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,128a32,32,0,1,1-32-32A32,32,0,0,1,208,128Z",opacity:"0.2"}),r.createElement("path",{d:"M176,56H80a72,72,0,0,0,0,144h96a72,72,0,0,0,0-144Zm0,128H80A56,56,0,0,1,80,72h96a56,56,0,0,1,0,112Zm0-96a40,40,0,1,0,40,40A40,40,0,0,0,176,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,176,152Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,56H80a72,72,0,0,0,0,144h96a72,72,0,0,0,0-144Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,176,168Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,58H80a70,70,0,0,0,0,140h96a70,70,0,0,0,0-140Zm0,128H80A58,58,0,0,1,80,70h96a58,58,0,0,1,0,116Zm0-96a38,38,0,1,0,38,38A38,38,0,0,0,176,90Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,176,154Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,56H80a72,72,0,0,0,0,144h96a72,72,0,0,0,0-144Zm0,128H80A56,56,0,0,1,80,72h96a56,56,0,0,1,0,112Zm0-96a40,40,0,1,0,40,40A40,40,0,0,0,176,88Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,176,152Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M176,60H80a68,68,0,0,0,0,136h96a68,68,0,0,0,0-136Zm0,128H80A60,60,0,0,1,80,68h96a60,60,0,0,1,0,120Zm0-96a36,36,0,1,0,36,36A36,36,0,0,0,176,92Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,176,156Z"}))]]);var m=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,h=(e,a,t)=>a in e?m(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,E=(e,a)=>{for(var t in a||(a={}))i.call(a,t)&&h(e,t,a[t]);if(p)for(var t of p(a))u.call(a,t)&&h(e,t,a[t]);return e},Z=(e,a)=>c(e,o(a));let d=(0,r.forwardRef)((e,a)=>r.createElement(l.Z,Z(E({ref:a},e),{weights:n})));d.displayName="ToggleRight"},86819:function(e,a,t){t.d(a,{X:function(){return d}});var r=t(2265),l=t(52195);let n=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),r.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]);var m=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,h=(e,a,t)=>a in e?m(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,E=(e,a)=>{for(var t in a||(a={}))i.call(a,t)&&h(e,t,a[t]);if(p)for(var t of p(a))u.call(a,t)&&h(e,t,a[t]);return e},Z=(e,a)=>c(e,o(a));let d=(0,r.forwardRef)((e,a)=>r.createElement(l.Z,Z(E({ref:a},e),{weights:n})));d.displayName="X"}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1467],{81467:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var a=n(57437),o=n(15238),s=n.n(o),l=n(2265),r=n(53423),i=n(94880),c=n(58485),u=n(52195);let d=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),l.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]);var g=Object.defineProperty,h=Object.defineProperties,m=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,x=(e,t,n)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&x(e,n,t[n]);if(v)for(var n of v(t))p.call(t,n)&&x(e,n,t[n]);return e},b=(e,t)=>h(e,m(t));let j=(0,l.forwardRef)((e,t)=>l.createElement(u.Z,b(y({ref:t},e),{weights:d})));j.displayName="XCircle";var M=n(16288),I=n(20721),C=n(26100),w=n(19666),N=n(50495),L=e=>{let{name:t,avatar:n,link:o,description:s}=e;return(0,a.jsx)("div",{className:"relative group flex",children:(0,a.jsx)(w.pn,{children:(0,a.jsxs)(w.u,{delayDuration:0,children:[(0,a.jsx)(w.aJ,{asChild:!0,children:(0,a.jsxs)(N.z,{variant:"ghost",className:"flex items-center justify-center",children:[n,(0,a.jsx)("div",{children:t})]})}),(0,a.jsx)(w._v,{children:(0,a.jsxs)("div",{className:"w-80 h-30",children:[(0,a.jsx)("a",{href:o,target:"_blank",rel:"noreferrer",className:"mt-1 ml-2 block no-underline",children:(0,a.jsxs)("div",{className:"flex items-center justify-start gap-2",children:[n,(0,a.jsxs)("div",{className:"mr-2 mt-1 flex justify-center items-center text-sm font-semibold text-gray-800",children:[t,(0,a.jsx)(C.o,{weight:"bold",className:"ml-1"})]})]})}),s&&(0,a.jsx)("p",{className:"mt-2 ml-6 text-sm text-gray-600 line-clamp-2",children:s||"A Khoj agent"})]})})]})})})},O=n(89417),E=n(69591);function Z(e){let t=e.trainOfThought.length-1,[n,o]=(0,l.useState)(e.completed);return(0,a.jsxs)("div",{className:"".concat(n?"":s().trainOfThought+" shadow-sm"),children:[!e.completed&&(0,a.jsx)(c.l,{className:"float-right"}),e.completed&&(n?(0,a.jsx)(N.z,{className:"w-fit text-left justify-start content-start text-xs",onClick:()=>o(!1),variant:"ghost",size:"sm",children:"What was my train of thought?"}):(0,a.jsxs)(N.z,{className:"w-fit text-left justify-start content-start text-xs p-0 h-fit",onClick:()=>o(!0),variant:"ghost",size:"sm",children:[(0,a.jsx)(j,{size:16,className:"mr-1"}),"Close"]})),!n&&e.trainOfThought.map((n,o)=>(0,a.jsx)(r.H,{message:n,primary:o===t&&e.lastMessage&&!e.completed,agentColor:e.agentColor},"train-".concat(o)))]},e.keyId)}function T(e){var t,n,o,u,d,g,h,m,v;let[f,p]=(0,l.useState)(null),[x,y]=(0,l.useState)(0),[b,j]=(0,l.useState)(!0),[C,w]=(0,l.useState)(null),N=(0,l.useRef)(null),T=(0,l.useRef)(null),_=(0,l.useRef)(null),k=(0,l.useRef)(null),[A,S]=(0,l.useState)(null),[H,F]=(0,l.useState)(!1),[q,z]=(0,l.useState)(!0),R=(0,E.IC)(),D="[data-radix-scroll-area-viewport]";(0,l.useEffect)(()=>{var e;let t=null===(e=T.current)||void 0===e?void 0:e.querySelector(D);if(!t)return;let n=()=>{let{scrollTop:e,scrollHeight:n,clientHeight:a}=t;z(n-(e+a)<=50)};return t.addEventListener("scroll",n),()=>t.removeEventListener("scroll",n)},[]),(0,l.useEffect)(()=>{e.incomingMessages&&e.incomingMessages.length>0&&q&&W()},[e.incomingMessages,q]),(0,l.useEffect)(()=>{f&&f.chat&&f.chat.length>0&&x<2&&requestAnimationFrame(()=>{var e;null===(e=_.current)||void 0===e||e.scrollIntoView({behavior:"auto",block:"start"})})},[f,x]),(0,l.useEffect)(()=>{if(!b||H)return;let t=new IntersectionObserver(t=>{t[0].isIntersecting&&b&&(F(!0),function(t){if(!b||H)return;let n=(t+1)*10,a="";if(e.conversationId)a="/api/chat/history?client=web&conversation_id=".concat(encodeURIComponent(e.conversationId),"&n=").concat(n);else{if(!e.publicConversationSlug)return;a="/api/chat/share/history?client=web&public_conversation_slug=".concat(e.publicConversationSlug,"&n=").concat(n)}fetch(a).then(e=>e.json()).then(n=>{if(e.setTitle(n.response.slug),n&&n.response&&n.response.chat&&n.response.chat.length>0){if(y(Math.ceil(n.response.chat.length/10)),n.response.chat.length===(null==f?void 0:f.chat.length)){j(!1),F(!1);return}e.setAgent(n.response.agent),p(n.response),F(!1),0===t?W(!0):Q()}else{if(n.response.agent&&n.response.conversation_id){let t={chat:[],agent:n.response.agent,conversation_id:n.response.conversation_id,slug:n.response.slug};e.setAgent(n.response.agent),p(t)}j(!1),F(!1)}}).catch(e=>{console.error(e),window.location.href="/"})}(x))},{threshold:1});return N.current&&t.observe(N.current),()=>t.disconnect()},[b,x,H]),(0,l.useEffect)(()=>{j(!0),F(!1),y(0),p(null)},[e.conversationId]),(0,l.useEffect)(()=>{if(e.incomingMessages){let t=e.incomingMessages[e.incomingMessages.length-1];t&&!t.completed&&(S(e.incomingMessages.length-1),e.setTitle(t.rawQuery),t.turnId&&w(t.turnId))}},[e.incomingMessages]);let Q=()=>{var e;let t=null===(e=T.current)||void 0===e?void 0:e.querySelector(D);requestAnimationFrame(()=>{var e;null===(e=k.current)||void 0===e||e.scrollIntoView({behavior:"auto",block:"start"}),null==t||t.scrollBy({behavior:"smooth",top:-150})})},W=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=null===(e=T.current)||void 0===e?void 0:e.querySelector(D);requestAnimationFrame(()=>{null==n||n.scrollTo({top:n.scrollHeight,behavior:t?"auto":"smooth"})}),z(!0)},P=t=>{t&&(p(e=>e&&t?{...e,chat:e.chat.filter(e=>e.turnId!==t)}:e),e.incomingMessages&&e.setIncomingMessages&&e.setIncomingMessages(e.incomingMessages.filter(e=>e.turnId!==t)))};return e.conversationId||e.publicConversationSlug?(0,a.jsx)(i.x,{className:"h-[73vh] relative",ref:T,children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"".concat(s().chatHistory," ").concat(e.customClassName),children:[(0,a.jsx)("div",{ref:N,style:{height:"1px"},children:H&&(0,a.jsx)(c.l,{className:"opacity-50"})}),f&&f.chat&&f.chat.map((t,n)=>{var o,s,l;return(0,a.jsxs)(a.Fragment,{children:[t.trainOfThought&&"khoj"===t.by&&(0,a.jsx)(Z,{trainOfThought:null===(o=t.trainOfThought)||void 0===o?void 0:o.map(e=>e.data),lastMessage:!1,agentColor:(null==f?void 0:null===(s=f.agent)||void 0===s?void 0:s.color)||"orange",keyId:"".concat(n,"trainOfThought"),completed:!0},"".concat(n,"trainOfThought")),(0,a.jsx)(r.Z,{ref:n===f.chat.length-2?_:n===f.chat.length-(x-1)*10?k:null,isMobileWidth:R,chatMessage:t,customClassName:"fullHistory",borderLeftColor:"".concat(null==f?void 0:null===(l=f.agent)||void 0===l?void 0:l.color,"-500"),isLastMessage:n===f.chat.length-1,onDeleteMessage:P,conversationId:e.conversationId},"".concat(n,"fullHistory"))]})}),e.incomingMessages&&e.incomingMessages.map((t,n)=>{var o,s,i,c,u;let d=null!==(u=null!==(c=t.turnId)&&void 0!==c?c:C)&&void 0!==u?u:void 0;return(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)(r.Z,{isMobileWidth:R,chatMessage:{message:t.rawQuery,context:[],onlineContext:{},codeContext:{},created:t.timestamp,by:"you",automationId:"",images:t.images,conversationId:e.conversationId,turnId:d},customClassName:"fullHistory",borderLeftColor:"".concat(null==f?void 0:null===(o=f.agent)||void 0===o?void 0:o.color,"-500"),onDeleteMessage:P,conversationId:e.conversationId,turnId:d},"".concat(n,"outgoing")),t.trainOfThought&&(0,a.jsx)(Z,{trainOfThought:t.trainOfThought,lastMessage:n===A,agentColor:(null==f?void 0:null===(s=f.agent)||void 0===s?void 0:s.color)||"orange",keyId:"".concat(n,"trainOfThought"),completed:t.completed},"".concat(n,"trainOfThought")),(0,a.jsx)(r.Z,{isMobileWidth:R,chatMessage:{message:t.rawResponse,context:t.context,onlineContext:t.onlineContext,codeContext:t.codeContext,created:t.timestamp,by:"khoj",automationId:"",rawQuery:t.rawQuery,intent:{type:t.intentType||"",query:t.rawQuery,"memory-type":"","inferred-queries":t.inferredQueries||[]},conversationId:e.conversationId,turnId:d},conversationId:e.conversationId,turnId:d,onDeleteMessage:P,customClassName:"fullHistory",borderLeftColor:"".concat(null==f?void 0:null===(i=f.agent)||void 0===i?void 0:i.color,"-500"),isLastMessage:!0},"".concat(n,"incoming"))]},"incomingMessage".concat(n))}),e.pendingMessage&&(0,a.jsx)(r.Z,{isMobileWidth:R,chatMessage:{message:e.pendingMessage,context:[],onlineContext:{},codeContext:{},created:new Date().getTime().toString(),by:"you",automationId:"",conversationId:e.conversationId,turnId:void 0},conversationId:e.conversationId,onDeleteMessage:P,customClassName:"fullHistory",borderLeftColor:"".concat(null==f?void 0:null===(t=f.agent)||void 0===t?void 0:t.color,"-500"),isLastMessage:!0},"pendingMessage-".concat(e.pendingMessage.length)),f&&(0,a.jsx)("div",{className:"".concat(s().agentIndicator," pb-4"),children:(0,a.jsx)("div",{className:"relative group mx-2 cursor-pointer",children:(0,a.jsx)(L,{name:f&&f.agent&&(null===(u=f.agent)||void 0===u?void 0:u.name)?null===(d=f.agent)||void 0===d?void 0:d.name:"Agent",link:f&&f.agent&&(null===(g=f.agent)||void 0===g?void 0:g.slug)?"/agents?agent=".concat(null===(h=f.agent)||void 0===h?void 0:h.slug):"/agents",avatar:(0,O.TI)(null===(n=f.agent)||void 0===n?void 0:n.icon,null===(o=f.agent)||void 0===o?void 0:o.color)||(0,a.jsx)(M.v,{}),description:f&&f.agent&&(null===(m=f.agent)||void 0===m?void 0:m.persona)?null===(v=f.agent)||void 0===v?void 0:v.persona:"Your agent is no longer available. You will be reset to the default agent."})})})]}),(0,a.jsx)("div",{className:"".concat(e.customClassName," fixed bottom-[20%] z-10"),children:!q&&(0,a.jsx)("button",{title:"Scroll to bottom",className:"absolute bottom-0 right-0 bg-white dark:bg-[hsl(var(--background))] text-neutral-500 dark:text-white p-2 rounded-full shadow-xl",onClick:()=>{W(),z(!0)},children:(0,a.jsx)(I.K,{size:24})})})]})}):null}},15238:function(e){e.exports={chatHistory:"chatHistory_chatHistory__CoaVT",agentIndicator:"chatHistory_agentIndicator__wOU1f",trainOfThought:"chatHistory_trainOfThought__mMWSR"}}}]);
|