khoj 1.32.3.dev54__py3-none-any.whl → 1.32.3.dev61__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. khoj/database/adapters/__init__.py +14 -1
  2. khoj/interface/compiled/404/index.html +1 -1
  3. khoj/interface/compiled/_next/static/chunks/app/agents/{page-3128cbc99e97b41f.js → page-f6f93b8b4457f1f7.js} +1 -1
  4. khoj/interface/compiled/_next/static/chunks/app/automations/page-e8f13a995ae7f2fa.js +1 -0
  5. khoj/interface/compiled/_next/static/chunks/app/chat/layout-33934fc2d6ae6838.js +1 -0
  6. khoj/interface/compiled/_next/static/chunks/app/chat/{page-24bd2babb00ef871.js → page-4645a696ec970a94.js} +1 -1
  7. khoj/interface/compiled/_next/static/chunks/app/{page-260edf62476e9669.js → page-8ebd7e62c0542aa1.js} +1 -1
  8. khoj/interface/compiled/_next/static/chunks/app/search/{page-e1669aa16c662a5d.js → page-bbbfda90fa03c5be.js} +1 -1
  9. khoj/interface/compiled/_next/static/chunks/app/settings/{page-4b13801b99e0935b.js → page-1bf10e8d882533b6.js} +1 -1
  10. khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-6fb51c5c80f8ec67.js +1 -0
  11. khoj/interface/compiled/_next/static/chunks/app/share/chat/{page-5e452d2692ee2cf0.js → page-3067638b97048e5f.js} +1 -1
  12. khoj/interface/compiled/_next/static/chunks/webpack-4f582c9505ac1fb8.js +1 -0
  13. khoj/interface/compiled/_next/static/css/8e6a3ca11a60b189.css +1 -0
  14. khoj/interface/compiled/_next/static/css/dac88c17aaee5fcf.css +1 -0
  15. khoj/interface/compiled/agents/index.html +1 -1
  16. khoj/interface/compiled/agents/index.txt +2 -2
  17. khoj/interface/compiled/automations/index.html +1 -1
  18. khoj/interface/compiled/automations/index.txt +3 -3
  19. khoj/interface/compiled/chat/index.html +1 -1
  20. khoj/interface/compiled/chat/index.txt +2 -2
  21. khoj/interface/compiled/index.html +1 -1
  22. khoj/interface/compiled/index.txt +2 -2
  23. khoj/interface/compiled/search/index.html +1 -1
  24. khoj/interface/compiled/search/index.txt +2 -2
  25. khoj/interface/compiled/settings/index.html +1 -1
  26. khoj/interface/compiled/settings/index.txt +4 -4
  27. khoj/interface/compiled/share/chat/index.html +1 -1
  28. khoj/interface/compiled/share/chat/index.txt +2 -2
  29. khoj/processor/conversation/prompts.py +37 -17
  30. khoj/routers/api.py +23 -20
  31. khoj/routers/helpers.py +128 -13
  32. {khoj-1.32.3.dev54.dist-info → khoj-1.32.3.dev61.dist-info}/METADATA +1 -1
  33. {khoj-1.32.3.dev54.dist-info → khoj-1.32.3.dev61.dist-info}/RECORD +44 -44
  34. khoj/interface/compiled/_next/static/chunks/app/automations/page-a69f432a177a1cb1.js +0 -1
  35. khoj/interface/compiled/_next/static/chunks/app/chat/layout-d5ae861e1ade9d08.js +0 -1
  36. khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-95998f0bdc22bb13.js +0 -1
  37. khoj/interface/compiled/_next/static/chunks/webpack-2e14e2569b58aa67.js +0 -1
  38. khoj/interface/compiled/_next/static/css/0f0e5dbeda138161.css +0 -1
  39. khoj/interface/compiled/_next/static/css/bb7461ef275b9b8b.css +0 -1
  40. /khoj/interface/compiled/_next/static/chunks/{182-8cd8b17d40e6e989.js → 182-f1c48a203dc91e0e.js} +0 -0
  41. /khoj/interface/compiled/_next/static/chunks/{1915-605f698f2573cfd4.js → 1915-d3c36ad6ce697ce7.js} +0 -0
  42. /khoj/interface/compiled/_next/static/chunks/{2117-9886e6a0232dc093.js → 2117-165ef4747a5b836b.js} +0 -0
  43. /khoj/interface/compiled/_next/static/chunks/{8667-d3e5bc726e4ff4e3.js → 8667-b6bf63c72b2d76eb.js} +0 -0
  44. /khoj/interface/compiled/_next/static/chunks/{9259-27d1ff42af9a43e0.js → 9259-1172dbaca0515237.js} +0 -0
  45. /khoj/interface/compiled/_next/static/chunks/{9665-1ab5c8c667b74dca.js → 9665-391df1e5c51c960a.js} +0 -0
  46. /khoj/interface/compiled/_next/static/{cjGfvFwdmUHoj3lMJ1aB3 → iX3n9kOMMR5_Xg2yB-YVv}/_buildManifest.js +0 -0
  47. /khoj/interface/compiled/_next/static/{cjGfvFwdmUHoj3lMJ1aB3 → iX3n9kOMMR5_Xg2yB-YVv}/_ssgManifest.js +0 -0
  48. {khoj-1.32.3.dev54.dist-info → khoj-1.32.3.dev61.dist-info}/WHEEL +0 -0
  49. {khoj-1.32.3.dev54.dist-info → khoj-1.32.3.dev61.dist-info}/entry_points.txt +0 -0
  50. {khoj-1.32.3.dev54.dist-info → khoj-1.32.3.dev61.dist-info}/licenses/LICENSE +0 -0
khoj/routers/helpers.py CHANGED
@@ -551,9 +551,37 @@ async def generate_online_subqueries(
551
551
  return {q}
552
552
 
553
553
 
554
- async def schedule_query(
554
+ def schedule_query(
555
555
  q: str, conversation_history: dict, user: KhojUser, query_images: List[str] = None, tracer: dict = {}
556
- ) -> Tuple[str, ...]:
556
+ ) -> Tuple[str, str, str]:
557
+ """
558
+ Schedule the date, time to run the query. Assume the server timezone is UTC.
559
+ """
560
+ chat_history = construct_chat_history(conversation_history)
561
+
562
+ crontime_prompt = prompts.crontime_prompt.format(
563
+ query=q,
564
+ chat_history=chat_history,
565
+ )
566
+
567
+ raw_response = send_message_to_model_wrapper_sync(
568
+ crontime_prompt, query_images=query_images, response_type="json_object", user=user, tracer=tracer
569
+ )
570
+
571
+ # Validate that the response is a non-empty, JSON-serializable list
572
+ try:
573
+ raw_response = raw_response.strip()
574
+ response: Dict[str, str] = json.loads(clean_json(raw_response))
575
+ if not response or not isinstance(response, Dict) or len(response) != 3:
576
+ raise AssertionError(f"Invalid response for scheduling query : {response}")
577
+ return response.get("crontime"), response.get("query"), response.get("subject")
578
+ except Exception:
579
+ raise AssertionError(f"Invalid response for scheduling query: {raw_response}")
580
+
581
+
582
+ async def aschedule_query(
583
+ q: str, conversation_history: dict, user: KhojUser, query_images: List[str] = None, tracer: dict = {}
584
+ ) -> Tuple[str, str, str]:
557
585
  """
558
586
  Schedule the date, time to run the query. Assume the server timezone is UTC.
559
587
  """
@@ -571,7 +599,7 @@ async def schedule_query(
571
599
  # Validate that the response is a non-empty, JSON-serializable list
572
600
  try:
573
601
  raw_response = raw_response.strip()
574
- response: Dict[str, str] = json.loads(raw_response)
602
+ response: Dict[str, str] = json.loads(clean_json(raw_response))
575
603
  if not response or not isinstance(response, Dict) or len(response) != 3:
576
604
  raise AssertionError(f"Invalid response for scheduling query : {response}")
577
605
  return response.get("crontime"), response.get("query"), response.get("subject")
@@ -1065,6 +1093,7 @@ def send_message_to_model_wrapper_sync(
1065
1093
  system_message: str = "",
1066
1094
  response_type: str = "text",
1067
1095
  user: KhojUser = None,
1096
+ query_images: List[str] = None,
1068
1097
  query_files: str = "",
1069
1098
  tracer: dict = {},
1070
1099
  ):
@@ -1090,6 +1119,7 @@ def send_message_to_model_wrapper_sync(
1090
1119
  max_prompt_size=max_tokens,
1091
1120
  vision_enabled=vision_available,
1092
1121
  model_type=chat_model.model_type,
1122
+ query_images=query_images,
1093
1123
  query_files=query_files,
1094
1124
  )
1095
1125
 
@@ -1112,6 +1142,7 @@ def send_message_to_model_wrapper_sync(
1112
1142
  max_prompt_size=max_tokens,
1113
1143
  vision_enabled=vision_available,
1114
1144
  model_type=chat_model.model_type,
1145
+ query_images=query_images,
1115
1146
  query_files=query_files,
1116
1147
  )
1117
1148
 
@@ -1134,6 +1165,7 @@ def send_message_to_model_wrapper_sync(
1134
1165
  max_prompt_size=max_tokens,
1135
1166
  vision_enabled=vision_available,
1136
1167
  model_type=chat_model.model_type,
1168
+ query_images=query_images,
1137
1169
  query_files=query_files,
1138
1170
  )
1139
1171
 
@@ -1154,6 +1186,7 @@ def send_message_to_model_wrapper_sync(
1154
1186
  max_prompt_size=max_tokens,
1155
1187
  vision_enabled=vision_available,
1156
1188
  model_type=chat_model.model_type,
1189
+ query_images=query_images,
1157
1190
  query_files=query_files,
1158
1191
  )
1159
1192
 
@@ -1634,6 +1667,25 @@ class CommonQueryParamsClass:
1634
1667
  CommonQueryParams = Annotated[CommonQueryParamsClass, Depends()]
1635
1668
 
1636
1669
 
1670
+ def format_automation_response(scheduling_request: str, executed_query: str, ai_response: str, user: KhojUser) -> bool:
1671
+ """
1672
+ Format the AI response to send in automation email to user.
1673
+ """
1674
+ name = get_user_name(user)
1675
+ if name:
1676
+ username = prompts.user_name.format(name=name)
1677
+
1678
+ automation_format_prompt = prompts.automation_format_prompt.format(
1679
+ original_query=scheduling_request,
1680
+ executed_query=executed_query,
1681
+ response=ai_response,
1682
+ username=username,
1683
+ )
1684
+
1685
+ with timer("Chat actor: Format automation response", logger):
1686
+ return send_message_to_model_wrapper_sync(automation_format_prompt, user=user)
1687
+
1688
+
1637
1689
  def should_notify(original_query: str, executed_query: str, ai_response: str, user: KhojUser) -> bool:
1638
1690
  """
1639
1691
  Decide whether to notify the user of the AI response.
@@ -1651,12 +1703,19 @@ def should_notify(original_query: str, executed_query: str, ai_response: str, us
1651
1703
  with timer("Chat actor: Decide to notify user of automation response", logger):
1652
1704
  try:
1653
1705
  # TODO Replace with async call so we don't have to maintain a sync version
1654
- response = send_message_to_model_wrapper_sync(to_notify_or_not, user)
1655
- should_notify_result = "no" not in response.lower()
1656
- logger.info(f'Decided to {"not " if not should_notify_result else ""}notify user of automation response.')
1706
+ raw_response = send_message_to_model_wrapper_sync(to_notify_or_not, user=user, response_type="json_object")
1707
+ response = json.loads(raw_response)
1708
+ should_notify_result = response["decision"] == "Yes"
1709
+ reason = response.get("reason", "unknown")
1710
+ logger.info(
1711
+ f'Decided to {"not " if not should_notify_result else ""}notify user of automation response because of reason: {reason}.'
1712
+ )
1657
1713
  return should_notify_result
1658
- except:
1659
- logger.warning(f"Fallback to notify user of automation response as failed to infer should notify or not.")
1714
+ except Exception as e:
1715
+ logger.warning(
1716
+ f"Fallback to notify user of automation response as failed to infer should notify or not. {e}",
1717
+ exc_info=True,
1718
+ )
1660
1719
  return True
1661
1720
 
1662
1721
 
@@ -1751,10 +1810,12 @@ def scheduled_chat(
1751
1810
  if should_notify(
1752
1811
  original_query=scheduling_request, executed_query=cleaned_query, ai_response=ai_response, user=user
1753
1812
  ):
1813
+ formatted_response = format_automation_response(scheduling_request, cleaned_query, ai_response, user)
1814
+
1754
1815
  if is_resend_enabled():
1755
- send_task_email(user.get_short_name(), user.email, cleaned_query, ai_response, subject, is_image)
1816
+ send_task_email(user.get_short_name(), user.email, cleaned_query, formatted_response, subject, is_image)
1756
1817
  else:
1757
- return raw_response
1818
+ return formatted_response
1758
1819
 
1759
1820
 
1760
1821
  async def create_automation(
@@ -1766,12 +1827,66 @@ async def create_automation(
1766
1827
  conversation_id: str = None,
1767
1828
  tracer: dict = {},
1768
1829
  ):
1769
- crontime, query_to_run, subject = await schedule_query(q, meta_log, user, tracer=tracer)
1770
- job = await schedule_automation(query_to_run, subject, crontime, timezone, q, user, calling_url, conversation_id)
1830
+ crontime, query_to_run, subject = await aschedule_query(q, meta_log, user, tracer=tracer)
1831
+ job = await aschedule_automation(query_to_run, subject, crontime, timezone, q, user, calling_url, conversation_id)
1771
1832
  return job, crontime, query_to_run, subject
1772
1833
 
1773
1834
 
1774
- async def schedule_automation(
1835
+ def schedule_automation(
1836
+ query_to_run: str,
1837
+ subject: str,
1838
+ crontime: str,
1839
+ timezone: str,
1840
+ scheduling_request: str,
1841
+ user: KhojUser,
1842
+ calling_url: URL,
1843
+ conversation_id: str,
1844
+ ):
1845
+ # Disable minute level automation recurrence
1846
+ minute_value = crontime.split(" ")[0]
1847
+ if not minute_value.isdigit():
1848
+ # Run automation at some random minute (to distribute request load) instead of running every X minutes
1849
+ crontime = " ".join([str(math.floor(random() * 60))] + crontime.split(" ")[1:])
1850
+
1851
+ user_timezone = pytz.timezone(timezone)
1852
+ trigger = CronTrigger.from_crontab(crontime, user_timezone)
1853
+ trigger.jitter = 60
1854
+ # Generate id and metadata used by task scheduler and process locks for the task runs
1855
+ job_metadata = json.dumps(
1856
+ {
1857
+ "query_to_run": query_to_run,
1858
+ "scheduling_request": scheduling_request,
1859
+ "subject": subject,
1860
+ "crontime": crontime,
1861
+ "conversation_id": str(conversation_id),
1862
+ }
1863
+ )
1864
+ query_id = hashlib.md5(f"{query_to_run}_{crontime}".encode("utf-8")).hexdigest()
1865
+ job_id = f"automation_{user.uuid}_{query_id}"
1866
+ job = state.scheduler.add_job(
1867
+ run_with_process_lock,
1868
+ trigger=trigger,
1869
+ args=(
1870
+ scheduled_chat,
1871
+ f"{ProcessLock.Operation.SCHEDULED_JOB}_{user.uuid}_{query_id}",
1872
+ ),
1873
+ kwargs={
1874
+ "query_to_run": query_to_run,
1875
+ "scheduling_request": scheduling_request,
1876
+ "subject": subject,
1877
+ "user": user,
1878
+ "calling_url": calling_url,
1879
+ "job_id": job_id,
1880
+ "conversation_id": conversation_id,
1881
+ },
1882
+ id=job_id,
1883
+ name=job_metadata,
1884
+ max_instances=2, # Allow second instance to kill any previous instance with stale lock
1885
+ )
1886
+ return job
1887
+
1888
+
1889
+ async def aschedule_automation(
1775
1890
  query_to_run: str,
1776
1891
  subject: str,
1777
1892
  crontime: str,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: khoj
3
- Version: 1.32.3.dev54
3
+ Version: 1.32.3.dev61
4
4
  Summary: Your Second Brain
5
5
  Project-URL: Homepage, https://khoj.dev
6
6
  Project-URL: Documentation, https://docs.khoj.dev
@@ -11,7 +11,7 @@ khoj/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  khoj/database/admin.py,sha256=0Z1jB2Dq8PLf9Fnvv9t9bWb5CymzwpghoStpr_aLrHw,12645
12
12
  khoj/database/apps.py,sha256=pM4tkX5Odw4YW_hLLKK8Nd5kqGddf1en0oMCea44RZw,153
13
13
  khoj/database/tests.py,sha256=mrbGGRNg5jwbTJtWWa7zSKdDyeB4vmgZCRc2nk6VY-g,60
14
- khoj/database/adapters/__init__.py,sha256=EekqnMMThbWSW2mBW1QqzymrYAOQeAApVSqiBJhg87A,69161
14
+ khoj/database/adapters/__init__.py,sha256=Qo8ZMTFIYmgx5XkE7-AXjQ079XaL0Ns1BU9--yO9ddA,69691
15
15
  khoj/database/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  khoj/database/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  khoj/database/management/commands/change_default_model.py,sha256=HkFQOI-2rFjlu7YiulyRcTrITzSzXmY4WiV2hBmml0w,5209
@@ -115,19 +115,19 @@ khoj/interface/compiled/chat.svg,sha256=l2JoYRRgk201adTTdvJ-buKUrc0WGfsudix5xEvt
115
115
  khoj/interface/compiled/close.svg,sha256=hQ2iFLkNzHk0_iyTrSbwnWAeXYlgA-c2Eof2Iqh76n4,417
116
116
  khoj/interface/compiled/copy-button-success.svg,sha256=byqWAYD3Pn9IOXRjOKudJ-TJbP2UESbQGvtLWazNGjY,829
117
117
  khoj/interface/compiled/copy-button.svg,sha256=05bKM2eRxksfBlAPT7yMaoNJEk85bZCxQg67EVrPeHo,669
118
- khoj/interface/compiled/index.html,sha256=P08W_qfEuamdCnvVXkEUm-81Zl9tSwb8r2rdkT8idhA,15886
119
- khoj/interface/compiled/index.txt,sha256=zV0c-2be_1tjwbRVmZMXZrGRMSequ6gZQzClyrnIPOQ,6792
118
+ khoj/interface/compiled/index.html,sha256=xRFFq5IO2q6MqlkUfN8RQjYFyoVi1o1eaCs5d3Vj4G0,15886
119
+ khoj/interface/compiled/index.txt,sha256=U0C2f3fNtXiC636-ZSAY7WIRnyr5s3lRJLadN1N4VvI,6792
120
120
  khoj/interface/compiled/khoj.webmanifest,sha256=9wOK2BMS6xH5NKd2eaUgTLg9WepIxB2K2U33KU89LD8,2543
121
121
  khoj/interface/compiled/logo.svg,sha256=_QCKVYM4WT2Qhcf7aVFImjq_s5CwjynGXYAOgI7yf8w,8059
122
122
  khoj/interface/compiled/send.svg,sha256=VdavOWkVddcwcGcld6pdfmwfz7S91M-9O28cfeiKJkM,635
123
123
  khoj/interface/compiled/share.svg,sha256=91lwo75PvMDrgocuZQab6EQ62CxRbubh9Bhw7CWMKbg,1221
124
124
  khoj/interface/compiled/thumbs-down.svg,sha256=JGNl-DwoRmH2XFMPWwFFklmoYtKxaQbkLE3nuYKe8ZY,1019
125
125
  khoj/interface/compiled/thumbs-up.svg,sha256=yS1wxTRtiztkN-6nZciLoYQUB_KTYNPV8xFRwH2TQFw,1036
126
- khoj/interface/compiled/404/index.html,sha256=i3NT0uJqYAK8keZFQxlMuz9BgOaUAlMkLj08UVoN-uM,15705
126
+ khoj/interface/compiled/404/index.html,sha256=urgZwrBx75ozLstIeOJt0RMcNmeO_POGHveRRSpEBNA,15705
127
127
  khoj/interface/compiled/_next/static/chunks/1010-8f39bb4648b5ba10.js,sha256=5YkAi84Tc3fqa83pPShWPNf6GInBsRvVDurP6WOjrqI,48173
128
- khoj/interface/compiled/_next/static/chunks/182-8cd8b17d40e6e989.js,sha256=JRaMKdCDyIPYNIJkRYwiBj5I4h8JG8uj4I7Mxv9qiNA,469751
129
- khoj/interface/compiled/_next/static/chunks/1915-605f698f2573cfd4.js,sha256=qArqL3leavWRcZkX4ZuWgemtKnmV6c-_yrNtMu_8SeY,11277
130
- khoj/interface/compiled/_next/static/chunks/2117-9886e6a0232dc093.js,sha256=vTLu_qp-db5dk72ycjiCIq96HAsdHWNB3rC84EmAr-k,123993
128
+ khoj/interface/compiled/_next/static/chunks/182-f1c48a203dc91e0e.js,sha256=JRaMKdCDyIPYNIJkRYwiBj5I4h8JG8uj4I7Mxv9qiNA,469751
129
+ khoj/interface/compiled/_next/static/chunks/1915-d3c36ad6ce697ce7.js,sha256=qArqL3leavWRcZkX4ZuWgemtKnmV6c-_yrNtMu_8SeY,11277
130
+ khoj/interface/compiled/_next/static/chunks/2117-165ef4747a5b836b.js,sha256=vTLu_qp-db5dk72ycjiCIq96HAsdHWNB3rC84EmAr-k,123993
131
131
  khoj/interface/compiled/_next/static/chunks/2581-455000f8aeb08fc3.js,sha256=Ym3HUf6T2AJZNSPk0X3e_j2-n6htoq39Uh-UPSzlQpk,27056
132
132
  khoj/interface/compiled/_next/static/chunks/3727.dcea8f2193111552.js,sha256=nPBaUoj--93LLnMYWR149vLsp3ZaViwX_6os6JJlujs,34242
133
133
  khoj/interface/compiled/_next/static/chunks/3789-a09e37a819171a9d.js,sha256=zaxGAee4SqCU7ngN5Hij1fsKoyqrRKnLZNx8LpagYa0,31652
@@ -138,47 +138,47 @@ khoj/interface/compiled/_next/static/chunks/5473-b1cf56dedac6577a.js,sha256=GggN
138
138
  khoj/interface/compiled/_next/static/chunks/5477-0bbddb79c25a54a7.js,sha256=gKDUs15ajWWuxIMV-CAYqumgqvcEMp_36liD1tRfdU0,14553
139
139
  khoj/interface/compiled/_next/static/chunks/6065-64db9ad305ba0bcd.js,sha256=QHRBp6KEitIXyCMG4IOQyrDisokI7NR6rO5vBlLK0x8,23715
140
140
  khoj/interface/compiled/_next/static/chunks/6293-469dd16402ea8a6f.js,sha256=eYDSoU5ouQST98It9-bq9BT-Juf_HzPTw2DHJ4iic80,1102198
141
- khoj/interface/compiled/_next/static/chunks/8667-d3e5bc726e4ff4e3.js,sha256=kyiAVJTylsiOPFTb63uZn_pMlk4pYhDYt_N7xL76PTM,7214
142
- khoj/interface/compiled/_next/static/chunks/9259-27d1ff42af9a43e0.js,sha256=VPDpPt7r_7xpFB-OxF6mnr2dvKuwFFZltMkpnc98dc8,34824
141
+ khoj/interface/compiled/_next/static/chunks/8667-b6bf63c72b2d76eb.js,sha256=kyiAVJTylsiOPFTb63uZn_pMlk4pYhDYt_N7xL76PTM,7214
142
+ khoj/interface/compiled/_next/static/chunks/9259-1172dbaca0515237.js,sha256=VPDpPt7r_7xpFB-OxF6mnr2dvKuwFFZltMkpnc98dc8,34824
143
143
  khoj/interface/compiled/_next/static/chunks/94ca1967.1d9b42d929a1ee8c.js,sha256=4NgDGkBrtrBndP5tKblKoLgi9xpn4aDpIRH4kDop9Q0,1174520
144
144
  khoj/interface/compiled/_next/static/chunks/9597.83583248dfbf6e73.js,sha256=CndAkafBFeXVlIIlItX7fkn5pQSFPUUULHUZUSnolSM,2121
145
145
  khoj/interface/compiled/_next/static/chunks/964ecbae.51d6faf8801d15e6.js,sha256=c2w-Bc3Ru91uRlwy-IZZs8tMBZF84I7YvVGwG3gofhI,1175120
146
- khoj/interface/compiled/_next/static/chunks/9665-1ab5c8c667b74dca.js,sha256=sVVdXfK3a6QbJk91E0uJm36r6jrjlRZiKNrjOizrEuA,105531
146
+ khoj/interface/compiled/_next/static/chunks/9665-391df1e5c51c960a.js,sha256=sVVdXfK3a6QbJk91E0uJm36r6jrjlRZiKNrjOizrEuA,105531
147
147
  khoj/interface/compiled/_next/static/chunks/d3ac728e-44ebd2a0c99b12a0.js,sha256=W6sCoyCDYdfvkNjo_DZDyj9ArHFk216-aJcAHwdzIwk,268303
148
148
  khoj/interface/compiled/_next/static/chunks/fd9d1056-4482b99a36fd1673.js,sha256=IMKXmjolTYmQ_XEzOGc7GLgTH1e6iDJXu6rhdxT1Fn0,172834
149
149
  khoj/interface/compiled/_next/static/chunks/framework-8e0e0f4a6b83a956.js,sha256=sFFnSyDnFoOc61lP-EtTzTyf-zGA78ejDyMgPFMDw2Q,140001
150
150
  khoj/interface/compiled/_next/static/chunks/main-app-de1f09df97a3cfc7.js,sha256=bqnztujKItXfFBzQlaBmDZyfJpQt_M93CXOuchJfpD0,471
151
151
  khoj/interface/compiled/_next/static/chunks/main-db4bfac6b0a8d00b.js,sha256=vPSmGIy1oxKoIImN-yu0Cac-8hxcwGJJvJ9V4UTGQ6k,111273
152
152
  khoj/interface/compiled/_next/static/chunks/polyfills-42372ed130431b0a.js,sha256=CXPB1kyIrcjjyVBBDLWLKI9yEY1ZZbeASUON648vloM,112594
153
- khoj/interface/compiled/_next/static/chunks/webpack-2e14e2569b58aa67.js,sha256=pu2iwH8knC_84FuBibTrQtKRG1cesMVRGL2RbGEfrwI,4009
153
+ khoj/interface/compiled/_next/static/chunks/webpack-4f582c9505ac1fb8.js,sha256=oBfUYoPOJQ8seIH0GbiqcRYxI8W4uSCqVvM6tW0MhcU,4007
154
154
  khoj/interface/compiled/_next/static/chunks/app/layout-30e7fda7262713ce.js,sha256=U_kFR0Vycl8EfeY4NGizdPrucrgy5QnWZ4jqkkLJD20,712
155
- khoj/interface/compiled/_next/static/chunks/app/page-260edf62476e9669.js,sha256=g3Q-DArO9f1LL-WcUrDq4ChU3qmn9ylAbVjwFkiM0r8,27621
155
+ khoj/interface/compiled/_next/static/chunks/app/page-8ebd7e62c0542aa1.js,sha256=lHSSldEF1Kjani2rP_3reEP9_72rycgdQcUj5SFZ0s4,27621
156
156
  khoj/interface/compiled/_next/static/chunks/app/_not-found/page-a834eddae3e235df.js,sha256=zElhiTkdu2JqrEvJ8Lrxh4HCyfLmPllBHHWOuDtrVlw,1755
157
157
  khoj/interface/compiled/_next/static/chunks/app/agents/layout-e49165209d2e406c.js,sha256=WFG6nsdtjnYHsKazIx5-xBXemVzEKXfW_U6Q9dnc7CU,180
158
- khoj/interface/compiled/_next/static/chunks/app/agents/page-3128cbc99e97b41f.js,sha256=CwUszDhljVgWay__jNPcNJZmk4c5h96VhMANUBKjNRE,17990
158
+ khoj/interface/compiled/_next/static/chunks/app/agents/page-f6f93b8b4457f1f7.js,sha256=FKTuIUdWj-Yk85ZG84Tb2B3A0GNlaMtUj-mDWUre5Fg,17985
159
159
  khoj/interface/compiled/_next/static/chunks/app/automations/layout-1fe1537449f43496.js,sha256=s2wHeQ-ai9rKyU9EjOGY1Yo51L4ZEkjLtML85BqN3Zc,5143
160
- khoj/interface/compiled/_next/static/chunks/app/automations/page-a69f432a177a1cb1.js,sha256=Mki34fmeU-kY8v8B1nFJjEfcq_Noa4dtxTdrfjGCDiQ,34270
161
- khoj/interface/compiled/_next/static/chunks/app/chat/layout-d5ae861e1ade9d08.js,sha256=oe6TgLOEOch5Nr3Z-DEdMIp3MD5vd0rH7dTp-mdEXYg,180
162
- khoj/interface/compiled/_next/static/chunks/app/chat/page-24bd2babb00ef871.js,sha256=fISaIOFAMVRfS98loag9dQEWArhrPjaB1qsRZIgJlT4,7455
160
+ khoj/interface/compiled/_next/static/chunks/app/automations/page-e8f13a995ae7f2fa.js,sha256=2RU2CnraApW3Z6qccppCvpAGNuNEfcM2KcPtKv8e7IY,34761
161
+ khoj/interface/compiled/_next/static/chunks/app/chat/layout-33934fc2d6ae6838.js,sha256=zKdgnv4zZCkeNWFODWPJKYB3VjkTq4X5LtTCs0sqxaQ,180
162
+ khoj/interface/compiled/_next/static/chunks/app/chat/page-4645a696ec970a94.js,sha256=DrQV-djAxgsoVEBooX95toh_xcNEzrW-7d-2Rg0lNxo,7455
163
163
  khoj/interface/compiled/_next/static/chunks/app/search/layout-c02531d586972d7d.js,sha256=VQACqzXZcJUaa3W_0wHsrdLP22pj8yqeAOGBQfVnQxw,180
164
- khoj/interface/compiled/_next/static/chunks/app/search/page-e1669aa16c662a5d.js,sha256=sMHfYY2D4rw-DknI6vIE53SWSAD8dk8VOcEstsGdhGI,7137
164
+ khoj/interface/compiled/_next/static/chunks/app/search/page-bbbfda90fa03c5be.js,sha256=0I-BcFFH48DLqY17gYilS7s0RGrkjEBZZ2OjFV6zA5k,7137
165
165
  khoj/interface/compiled/_next/static/chunks/app/settings/layout-d09d6510a45cd4bd.js,sha256=dIfmM5C_Al-Zh_uqaJmniSxjXbu3LqPzrEw4SQ7vs0I,6132
166
- khoj/interface/compiled/_next/static/chunks/app/settings/page-4b13801b99e0935b.js,sha256=MDx0qnzbjJrCUm10kl8-G59AnfnIbrBPqTOqoI8EKXE,31267
167
- khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-95998f0bdc22bb13.js,sha256=DAKpITdwEGwTobUWKg2Fr8rYolYq2xNt9eUppTXkcsI,180
168
- khoj/interface/compiled/_next/static/chunks/app/share/chat/page-5e452d2692ee2cf0.js,sha256=p5-cumnPU4oPlF15ZP8D_vGQI3ei6mGuVRmddbvgGlQ,4640
166
+ khoj/interface/compiled/_next/static/chunks/app/settings/page-1bf10e8d882533b6.js,sha256=BkTXpbUdtW4uxjr9dgiD_j3qsHAWsw-cbiXXunSoWLM,31267
167
+ khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-6fb51c5c80f8ec67.js,sha256=MRWVUV6hiulN_DJo7uyZvW0HaMGGqoq6fdGK_jt4kJE,180
168
+ khoj/interface/compiled/_next/static/chunks/app/share/chat/page-3067638b97048e5f.js,sha256=88oe0tt76OHy-UyeFaYHihUjhEoF0atm9oTsf-u2Iac,4640
169
169
  khoj/interface/compiled/_next/static/chunks/pages/_app-3c9ca398d360b709.js,sha256=UqtikLsCsOWtDUJOW6Tuk9P-bV1V3MhYd3ghrQuEmfs,286
170
170
  khoj/interface/compiled/_next/static/chunks/pages/_error-cf5ca766ac8f493f.js,sha256=w_It3VzKT8O1M3CrJ_hZHsaU7M7dq3EAaVG8KvJ-fhU,253
171
- khoj/interface/compiled/_next/static/cjGfvFwdmUHoj3lMJ1aB3/_buildManifest.js,sha256=f2_nYnw25hHWQJ-39Lf5OH1u6kgdbOInyfplqgjvAV4,224
172
- khoj/interface/compiled/_next/static/cjGfvFwdmUHoj3lMJ1aB3/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
173
171
  khoj/interface/compiled/_next/static/css/089de1d8526b96e9.css,sha256=sjpmNlk7H2uKEYK9_DFccNq9J8V9uR799cS0yT-E7EI,4041
174
- khoj/interface/compiled/_next/static/css/0f0e5dbeda138161.css,sha256=N5TecMg0L184wfBEO2To7pn81iOSZYcbuBWONYf2Cqg,791
175
172
  khoj/interface/compiled/_next/static/css/307dd5243338dfd8.css,sha256=p5NIKY-t0BSsK_1vv-jU52o_6g7OchhVqC_4pq8chyc,17569
176
173
  khoj/interface/compiled/_next/static/css/37a73b87f02df402.css,sha256=hp0vlekKu0K2eITR5YIqFmLHQPqV3JETFnRd_-Uh0mk,165
177
174
  khoj/interface/compiled/_next/static/css/4e4e6a4a1c920d06.css,sha256=v52KOOFVYsJajTXsn7R2-B8ZU1dDPdmyN5J2a1d2dwk,1696
178
175
  khoj/interface/compiled/_next/static/css/5dd9bb87a50b706e.css,sha256=FlAYD9w3ogdYu-0MZL_w0wT-SLvYHphm5OSaMcYVb7E,3072695
176
+ khoj/interface/compiled/_next/static/css/8e6a3ca11a60b189.css,sha256=KR0nA1LdEJ-BwslNVZPATvBu6pCWJMMDyqAW5fljCkI,5858
179
177
  khoj/interface/compiled/_next/static/css/9c164d9727dd8092.css,sha256=89nMwZaML1CQfnzEPwbi_6vfauV5D8QwIiJBfsg3Hc8,30651
180
- khoj/interface/compiled/_next/static/css/bb7461ef275b9b8b.css,sha256=eoix_1bAd0oGkcidsOL8MhkI0R-5IMfVswY57eX8vGk,5468
178
+ khoj/interface/compiled/_next/static/css/dac88c17aaee5fcf.css,sha256=ZfRdWDktxctcmm_P9OmtA46MT7pPYRo2oHIQBt3DLQ0,401
181
179
  khoj/interface/compiled/_next/static/css/df4b47a2d0d85eae.css,sha256=EsBNJADFxaffgFa5iSYHPswGl9RAN9UdK3jD3d_W9Hs,1736
180
+ khoj/interface/compiled/_next/static/iX3n9kOMMR5_Xg2yB-YVv/_buildManifest.js,sha256=f2_nYnw25hHWQJ-39Lf5OH1u6kgdbOInyfplqgjvAV4,224
181
+ khoj/interface/compiled/_next/static/iX3n9kOMMR5_Xg2yB-YVv/_ssgManifest.js,sha256=Z49s4suAsf5y_GfnQSvm4qtq2ggxEbZPfEDTXjy6XgA,80
182
182
  khoj/interface/compiled/_next/static/media/1d8a05b60287ae6c-s.p.woff2,sha256=IzKBwB_bpSGvO7C9aRv29Js-jAbZPRDI-D-P4H2P918,14508
183
183
  khoj/interface/compiled/_next/static/media/6f22fce21a7c433c-s.woff2,sha256=T773llrgKNUxGlJzhaH0DUs2rcuRHU7bQpf0DTC4sSU,21812
184
184
  khoj/interface/compiled/_next/static/media/77c207b095007c34-s.p.woff2,sha256=vk9tBKB084h1U8mxwJ5WNHDz_pdUVqE_xb9-ILVhKXY,168144
@@ -252,8 +252,8 @@ khoj/interface/compiled/_next/static/media/flags.3afdda2f.webp,sha256=M2AW_HLpBn
252
252
  khoj/interface/compiled/_next/static/media/flags@2x.5fbe9fc1.webp,sha256=BBeRPBZkxY3-aKkMnYv5TSkxmbeMbyUH4VRIPfrWg1E,137406
253
253
  khoj/interface/compiled/_next/static/media/globe.98e105ca.webp,sha256=g3ofb8-W9GM75zIhlvQhaS8I2py9TtrovOKR3_7Jf04,514
254
254
  khoj/interface/compiled/_next/static/media/globe@2x.974df6f8.webp,sha256=I_N7Yke3IOoS-0CC6XD8o0IUWG8PdPbrHmf6lpgWlZY,1380
255
- khoj/interface/compiled/agents/index.html,sha256=wncho9MDDXthtdgDcDIAB217g8tGIuh_OMyDCiYCLX4,16944
256
- khoj/interface/compiled/agents/index.txt,sha256=mH3w81Xv7NcCixW2Yh346djqfr-7qZEXeyTdULmyb98,7477
255
+ khoj/interface/compiled/agents/index.html,sha256=PshumNYoyIrSg5UsrkjF7NWnOOoxRqX7Yc0nOXSgXgM,16633
256
+ khoj/interface/compiled/agents/index.txt,sha256=4LgH0hNWeGqxLIwgwX8w2Gu3PvrnV0fi1oFaiCQcAQ8,7344
257
257
  khoj/interface/compiled/assets/icons/khoj_lantern.ico,sha256=eggu-B_v3z1R53EjOFhIqqPnICBGdoaw1xnc0NrzHck,174144
258
258
  khoj/interface/compiled/assets/icons/khoj_lantern.svg,sha256=I_8XP5X84gEOoCRhCRKOQn_GKZrz3SUBXct7WxHvY7c,8767
259
259
  khoj/interface/compiled/assets/icons/khoj_lantern_1200x1200.png,sha256=xDx0bbD-WMflgg8zck9oPIIuTIvywtuED2k7CjSQS4w,66194
@@ -268,16 +268,16 @@ khoj/interface/compiled/assets/samples/desktop-remember-plan-sample.png,sha256=i
268
268
  khoj/interface/compiled/assets/samples/phone-browse-draw-sample.png,sha256=Dd4fPwtFl6BWqnHjeb1mCK_ND0hhHsWtx8sNE7EiMuE,406179
269
269
  khoj/interface/compiled/assets/samples/phone-plain-chat-sample.png,sha256=DEDaNRCkfEWUeh3kYZWIQDTVK1a6KKnYdwj5ZWisN_Q,82985
270
270
  khoj/interface/compiled/assets/samples/phone-remember-plan-sample.png,sha256=Ma3blirRmq3X4oYSsDbbT7MDn29rymDrjwmUfA9BMuM,236285
271
- khoj/interface/compiled/automations/index.html,sha256=Wq84tVR3yp23KV7OChG74mHD8aVvDnxmojmVmF1C5cE,52189
272
- khoj/interface/compiled/automations/index.txt,sha256=w2bnTqKAIPXWrQhxdpW-cHvybV83HpMPdtzXfiUUztM,7511
273
- khoj/interface/compiled/chat/index.html,sha256=LDAg21LF3PktcSTEzPDDgUl18-0cQnqEps9Bcax-T-Q,17782
274
- khoj/interface/compiled/chat/index.txt,sha256=EQMJ627V9LQwU8U-yMBr6KeRsDvCfdlYVbWe0aNDPXU,7882
275
- khoj/interface/compiled/search/index.html,sha256=NccNAL1iq3vmp0YJ8YqEA0aM6MAXPpc9OMdzR-UqOHo,50985
276
- khoj/interface/compiled/search/index.txt,sha256=jIsLurdIsj_dDuarim9hdAZV4QAgCtiuYjJ3GzzKMtI,6677
277
- khoj/interface/compiled/settings/index.html,sha256=bL-4EA76jxLg6lxZpZUZ2BRVYjQScck_urgmSIn8Hsw,17441
278
- khoj/interface/compiled/settings/index.txt,sha256=lZRYzpZLx3SvOdHwWHcBEYvLBOpyzzB2TO7udBKTcUY,7779
279
- khoj/interface/compiled/share/chat/index.html,sha256=CAy5mh449Wz6sU171UrP3DnYKBDUeJ0-gToy8FiPrF4,18621
280
- khoj/interface/compiled/share/chat/index.txt,sha256=fGVj3xPvYFiMAgMNJwoYu6iDzucF-S91EOlZBmMk_bk,8440
271
+ khoj/interface/compiled/automations/index.html,sha256=YwYPuQmzKx5txyDK8thCM5AogSlvCZvQqYfkv4Hl-T4,52500
272
+ khoj/interface/compiled/automations/index.txt,sha256=Y8uiKWVzzORSI3oYQbVOn4nuj4ZsVLncfCJxT6LTN80,7644
273
+ khoj/interface/compiled/chat/index.html,sha256=hWPQvVv9woqgzChNjwOhehVsYinXkQUP-5dI0xOSEAQ,17782
274
+ khoj/interface/compiled/chat/index.txt,sha256=q6uXoGT82bMWaLs4VMsMcbYzt1Gfn1j5As_14tRwim0,7882
275
+ khoj/interface/compiled/search/index.html,sha256=C8qe7l3VPno9ftpZnBuRalbanmko6xhr1lg6TA37KSM,50985
276
+ khoj/interface/compiled/search/index.txt,sha256=8M3l_w8vNQf1F3kc4b5sPUM18szxw3OUCPDA4p3nC2E,6677
277
+ khoj/interface/compiled/settings/index.html,sha256=ueQUBJeCNxj47zs7WTy4HoGhQDux6w6wr_Z_hAPnN3U,17441
278
+ khoj/interface/compiled/settings/index.txt,sha256=nusPRifBhRAHxhx84S-dZvyrFdeWwKFihATz4dqOsoY,7779
279
+ khoj/interface/compiled/share/chat/index.html,sha256=DsSJlWzsbflg9qVcqxoa51PNjvmLFCIV72mwTWWANys,18621
280
+ khoj/interface/compiled/share/chat/index.txt,sha256=0nb26CT5HfrUJNnjuvCMelq6hvcLIDFa2F_W3NpVIVc,8440
281
281
  khoj/interface/email/feedback.html,sha256=xksuPFamx4hGWyTTxZKRgX_eiYQQEuv-eK9Xmkt-nwU,1216
282
282
  khoj/interface/email/magic_link.html,sha256=372ESbTPKM9acekuZcOIKOw6kBl-KikFg_L9MOHqJkg,2094
283
283
  khoj/interface/email/task.html,sha256=tY7a0gzVeQ2lSQNu7WyXR_s7VYeWTrxWEj1iHVuoVE4,2813
@@ -329,7 +329,7 @@ khoj/processor/content/pdf/pdf_to_entries.py,sha256=GQUvab61okhV9_DK0g2MCrMq8wKp
329
329
  khoj/processor/content/plaintext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
330
330
  khoj/processor/content/plaintext/plaintext_to_entries.py,sha256=wFZwK_zIc7gWbRtO9sOHo9KvfhGAzL9psX_nKWYFduo,4975
331
331
  khoj/processor/conversation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
332
- khoj/processor/conversation/prompts.py,sha256=gdNL97K9d-7Dt_Rl4Ovfjw-ZJZ3cCtlXv1hQ4AJn1u4,51030
332
+ khoj/processor/conversation/prompts.py,sha256=8NPOieonOdksIEVZepOLJ3udCvscugNAGJMtUYZbx3c,52258
333
333
  khoj/processor/conversation/utils.py,sha256=shGBCU1gtfGbWZgm1_zQtezt9RmVFcftopugQob7EhA,32709
334
334
  khoj/processor/conversation/anthropic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
335
335
  khoj/processor/conversation/anthropic/anthropic_chat.py,sha256=2jLTh-5WiGcsm1b5pla9UDjeTrPFfck2TOPPex5MN4c,8962
@@ -352,7 +352,7 @@ khoj/processor/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
352
352
  khoj/processor/tools/online_search.py,sha256=LM-r9ED42RL5JEZhx61vUcwdyz5U7nwYMaRP1KvkPpg,19067
353
353
  khoj/processor/tools/run_code.py,sha256=pa8slKYU21yDxBxK2CoQTEwHxZIANA_-bI8GhEDjvxc,6547
354
354
  khoj/routers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
355
- khoj/routers/api.py,sha256=KfRCkx-CSTeAw6wNr4XiBJlcIDTw7oBtQ0LgpI0eTzY,28296
355
+ khoj/routers/api.py,sha256=8qq9MFmMlMC-M3E0cBb6qV7r643uYOKO9ocdSF0jueA,28621
356
356
  khoj/routers/api_agents.py,sha256=d6i2MQ6cxU5KjeH6MXTM6k2MOQcRdizV-OhCB4PiJ8s,9675
357
357
  khoj/routers/api_chat.py,sha256=O4dpo_xrFeSx-OEfa1k_G5-4B26cT5OGeiTkVouLQGA,49299
358
358
  khoj/routers/api_content.py,sha256=WNlB6lVwRW8hHDthO2HypbpPvqrqt9rTU5oMRNknpMU,21070
@@ -361,7 +361,7 @@ khoj/routers/api_phone.py,sha256=p9yfc4WeMHDC0hg3aQk60a2VBy8rZPdEnz9wdJ7DzkU,220
361
361
  khoj/routers/api_subscription.py,sha256=qnbKwA6N1TWK8Aiu1FFLka_JhbPOuwqT262NSHGZDiQ,5569
362
362
  khoj/routers/auth.py,sha256=944BdNZaFlwX2f8dD1_Rj7KqJljowoha-XXRP6urgDc,10811
363
363
  khoj/routers/email.py,sha256=rHn8ZizG9TbKm0TK7xnio8qrf9T3tNH1vEBSaAEwRzs,3902
364
- khoj/routers/helpers.py,sha256=meiUpWwDdxDiNYtIzctM1YOQ_sRHpLhDH5fffar5n7I,84831
364
+ khoj/routers/helpers.py,sha256=-E5G2EKyBtqX4lFr7n_MZpehK-zb-mJ_NfT7cETMnvg,89129
365
365
  khoj/routers/notion.py,sha256=g53xyYFmjr2JnuIrTW2vytbfkiK_UkoRTxqnnLSmD5o,2802
366
366
  khoj/routers/research.py,sha256=KjUuo-rwtSqUX-0BYjXgP6cWeH3xazffwtxfxKXZL00,16083
367
367
  khoj/routers/storage.py,sha256=tJrwhFRVWv0MHv7V7huMc1Diwm-putZSwnZXJ3tqT_c,2338
@@ -386,8 +386,8 @@ khoj/utils/models.py,sha256=Q5tcC9-z25sCiub048fLnvZ6_IIO1bcPNxt5payekk0,2009
386
386
  khoj/utils/rawconfig.py,sha256=bQ_MGbBzYt6ZUIsHUwZjaHKDLh6GQ7h-sENkv3fyVbQ,5028
387
387
  khoj/utils/state.py,sha256=axjZhnby8L3bY-N1VVoWgBH1RpFGK6U3_ZeNo1Kt7hs,1679
388
388
  khoj/utils/yaml.py,sha256=qy1Tkc61rDMesBw_Cyx2vOR6H-Hngcsm5kYfjwQBwkE,1543
389
- khoj-1.32.3.dev54.dist-info/METADATA,sha256=nut2QndnbWtHsVuy8fVKUJ8oJFPZ4A-wbHd1zUl3T5U,7533
390
- khoj-1.32.3.dev54.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
391
- khoj-1.32.3.dev54.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
392
- khoj-1.32.3.dev54.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
393
- khoj-1.32.3.dev54.dist-info/RECORD,,
389
+ khoj-1.32.3.dev61.dist-info/METADATA,sha256=hB_rDiHFME5eEadO7L_GA3s6ZjaLppu7Zl-oC2rco6g,7533
390
+ khoj-1.32.3.dev61.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
391
+ khoj-1.32.3.dev61.dist-info/entry_points.txt,sha256=KBIcez5N_jCgq_ER4Uxf-e1lxTBMTE_BBjMwwfeZyAg,39
392
+ khoj-1.32.3.dev61.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
393
+ khoj-1.32.3.dev61.dist-info/RECORD,,
@@ -1 +0,0 @@
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 eg}});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),x=a(2265),f=a(15681),p=a(95186),g=a(26110),j=a(49027),y=a(76818),w=a(7436),N=a(30190),v=a.n(N),b=a(97673),k=a(99376),D=a(57054),S=a(41317),C=a(87332),_=a(19841),I=a(3634),A=a(97822),M=a(93435),R=a(27484),z=a(39353),T=a(66594),P=a(12443),L=a(89203),O=a(78527),W=a(56937),q=a(33494),E=a(77992),U=a(89534),V=a(65613),F=a(17814),B=a(85872),G=a(34124),Z=a(6512),J=a(37104);let Q=()=>window.fetch("/api/automations").then(e=>e.json()).catch(e=>console.log(e));function X(e){let t=e.split(" "),a=t[2],n=t[4];return"*"===a&&"*"===n?"Day":"*"!==n?"Week":"*"!==a?"Month":"Day"}function H(e){let t=e.split(" ");if("*"===t[3]&&"*"!==t[4])return Number(t[4])}function Y(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 $(e){return String(e.split(" ")[2])}function K(e){return d().toString(e)}let ee=["Day","Week","Month"],et=Array.from({length:31},(e,t)=>String(t+1)),ea=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],en=[],es=["AM","PM"];for(var er=0;er<es.length;er++)for(var eo=0;eo<12;eo++)for(var ei=0;ei<60;ei+=15){let e=String(ei).padStart(2,"0"),t=0===eo?12:eo;en.push("".concat(t,":").concat(e," ").concat(es[er]))}let el=Date.now(),ec=[{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:el,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:el+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:el+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:el+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:el+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:el+4,scheduling_request:""}];function ed(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 eu(e){let[t,a]=(0,x.useState)(!1),[s,r]=(0,x.useState)(null),[l,c]=(0,x.useState)(!1),[d,u]=(0,x.useState)(""),{toast:m}=(0,E.pm)(),h=e.automation,[f,p]=(0,x.useState)(""),[g,j]=(0,x.useState)("");return((0,x.useEffect)(()=>{let e=s||h;p(Y(e.crontime));let t=X(e.crontime);if("Day"===t)j("Daily");else if("Week"===t){let t=H(e.crontime);void 0===t?j("Weekly"):j("".concat(ea[t]))}else if("Month"===t){let t=$(e.crontime);j("Monthly on the ".concat(t))}},[s,h]),(0,x.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:"h-full shadow-md rounded-lg dark:bg-muted ".concat(v().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)(D.J2,{children:[(0,n.jsx)(D.xo,{asChild:!0,children:(0,n.jsx)(i.z,{className:"bg-background",variant:"ghost",children:(0,n.jsx)(S.F,{className:"h-4 w-4"})})}),(0,n.jsxs)(D.yk,{className:"w-auto grid gap-2 text-left bg-secondary",children:[!e.suggestedCard&&e.locationData&&(0,n.jsx)(ep,{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:ed(h),onShare:()=>{navigator.clipboard.writeText(ed(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)(C.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 rounded-lg p-1.5 border-blue-200 border 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:f})]}),(0,n.jsxs)("div",{className:"flex items-center rounded-lg p-1.5 border-purple-200 border 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)(ep,{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 em(e){let t=(0,k.useSearchParams)(),[a,s]=(0,x.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:K(decodeURIComponent(i)),crontime:decodeURIComponent(i),next:""};return a?(0,n.jsx)(ep,{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 eh=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 ex(e){let t=e.automation,a=(0,m.cI)({resolver:(0,u.F)(eh),defaultValues:{subject:null==t?void 0:t.subject,everyBlah:(null==t?void 0:t.crontime)?X(t.crontime):"Day",dayOfWeek:(null==t?void 0:t.crontime)?H(t.crontime):void 0,timeRecurrence:(null==t?void 0:t.crontime)?Y(t.crontime):"12:00 PM",dayOfMonth:(null==t?void 0:t.crontime)?$(t.crontime):"1",queryToRun:null==t?void 0:t.query_to_run}});return(0,n.jsx)(ef,{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:K(t.crontime),crontime:t.crontime,next:t.next})})},create:e.createNew,isLoggedIn:e.isLoggedIn,setShowLoginPrompt:e.setShowLoginPrompt})}function ef(e){var t,a;let[s,r]=(0,x.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)(f.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)(f.xJ,{className:"space-y-1",children:(0,n.jsxs)(f.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 dark:bg-muted",children:[(0,n.jsx)(z.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 dark:bg-muted",children:[(0,n.jsx)(T.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 dark:bg-muted",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)(f.Wi,{control:e.form.control,name:"subject",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(f.xJ,{className:"space-y-1",children:[(0,n.jsx)(f.lX,{children:"Subject"}),(0,n.jsx)(f.pf,{children:"This is the subject of the email you will receive."}),(0,n.jsx)(f.NI,{children:(0,n.jsx)(p.I,{placeholder:"Digest of Healthcare AI trends",...a})}),(0,n.jsx)(f.zG,{}),o.subject&&(0,n.jsx)(f.zG,{children:null===(t=o.subject)||void 0===t?void 0:t.message})]})}}),(0,n.jsx)(f.Wi,{control:e.form.control,name:"everyBlah",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(f.xJ,{className:"w-full space-y-1",children:[(0,n.jsx)(f.lX,{children:"Frequency"}),(0,n.jsx)(f.pf,{children:"How often should this automation run?"}),(0,n.jsxs)(l.Ph,{onValueChange:a.onChange,defaultValue:a.value,children:[(0,n.jsx)(f.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:ee.map(e=>(0,n.jsx)(l.Ql,{value:e,children:e},e))})]}),(0,n.jsx)(f.zG,{}),o.subject&&(0,n.jsx)(f.zG,{children:null===(t=o.everyBlah)||void 0===t?void 0:t.message})]})}}),"Week"===e.form.watch("everyBlah")&&(0,n.jsx)(f.Wi,{control:e.form.control,name:"dayOfWeek",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(f.xJ,{className:"w-full space-y-1",children:[(0,n.jsx)(f.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)(f.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:ea.map((e,t)=>(0,n.jsx)(l.Ql,{value:String(t),children:e},e))})]}),(0,n.jsx)(f.zG,{}),o.subject&&(0,n.jsx)(f.zG,{children:null===(t=o.dayOfWeek)||void 0===t?void 0:t.message})]})}}),"Month"===e.form.watch("everyBlah")&&(0,n.jsx)(f.Wi,{control:e.form.control,name:"dayOfMonth",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(f.xJ,{className:"w-full space-y-1",children:[(0,n.jsx)(f.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)(f.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:et.map(e=>(0,n.jsx)(l.Ql,{value:e,children:e},e))})]}),(0,n.jsx)(f.zG,{}),o.subject&&(0,n.jsx)(f.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)(f.Wi,{control:e.form.control,name:"timeRecurrence",render:e=>{var t;let{field:a}=e;return(0,n.jsxs)(f.xJ,{className:"w-full space-y-1",children:[(0,n.jsx)(f.lX,{children:"Time"}),(0,n.jsx)(f.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)(f.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:en.map(e=>(0,n.jsx)(l.Ql,{value:e,children:e},e))})]}),(0,n.jsx)(f.zG,{}),o.subject&&(0,n.jsx)(f.zG,{children:null===(t=o.timeRecurrence)||void 0===t?void 0:t.message})]})}}),(0,n.jsx)(f.Wi,{control:e.form.control,name:"queryToRun",render:t=>{var a;let{field:s}=t;return(0,n.jsxs)(f.xJ,{className:"space-y-1",children:[(0,n.jsx)(f.lX,{children:"Instructions"}),(0,n.jsx)(f.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)(f.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)(f.zG,{}),o.subject&&(0,n.jsx)(f.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 ep(e){return e.isMobileWidth?(0,n.jsxs)(F.dy,{open:e.isCreating,onOpenChange:t=>{e.setIsCreating(t)},children:[(0,n.jsx)(F.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)(F.sc,{className:"p-2",children:[(0,n.jsx)(F.iI,{children:"Automation"}),(0,n.jsx)(ex,{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)(ex,{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 eg(){let{data:e,error:t,isLoading:a}=(0,W.GW)(),{data:o,error:l,isLoading:c}=(0,s.ZP)(e?"automations":null,Q,{revalidateOnFocus:!1}),[d,u]=(0,x.useState)(!1),[m,h]=(0,x.useState)(null),[f,p]=(0,x.useState)([]),[g,j]=(0,x.useState)([]),[y,N]=(0,x.useState)(!1),b=(0,w.IC)(),{locationData:k,locationDataError:D,locationDataLoading:S}=(0,w.k6)();return((0,x.useEffect)(()=>{m&&(p([...f,m]),h(null))},[m,f]),(0,x.useEffect)(()=>{let e=o?o.concat(f):f;e&&j(ec.filter(t=>void 0===e.find(e=>t.subject===e.subject)))},[o,f]),l)?(0,n.jsx)(r.l,{message:"Oops, something went wrong. Please refresh the page."}):(0,n.jsxs)(B.Hn,{children:[(0,n.jsx)(G.S,{conversationId:""}),(0,n.jsxs)(B.kV,{children:[(0,n.jsxs)("header",{className:"flex h-16 shrink-0 items-center gap-2 border-b px-4",children:[(0,n.jsx)(B.vP,{className:"-ml-1"}),(0,n.jsx)(Z.Z,{orientation:"vertical",className:"mr-2 h-4"}),b?(0,n.jsx)(J.VO,{className:"h-auto w-16"}):(0,n.jsx)("h2",{className:"text-lg",children:"Automations"})]}),(0,n.jsx)("main",{className:"w-full mx-auto",children:(0,n.jsx)("div",{className:"grid w-full mx-auto",children:(0,n.jsxs)("div",{className:"".concat(v().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 dark:bg-muted",children:[(0,n.jsx)(z.w,{className:"h-4 w-4 mr-2 inline text-orange-500 shadow-sm"}),e.email]}):null,k&&(0,n.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm dark:bg-muted",children:[(0,n.jsx)(T.x,{className:"h-4 w-4 mr-2 inline text-purple-500"}),k?"".concat(k.city,", ").concat(k.country):"Unknown"]}),k&&(0,n.jsxs)("span",{className:"rounded-lg text-sm border-secondary border p-1 flex items-center shadow-sm dark:bg-muted",children:[(0,n.jsx)(P.S,{className:"h-4 w-4 mr-2 inline text-green-500"}),k?"".concat(k.timezone):"Unknown"]})]})]}),y&&(0,n.jsx)(q.Z,{onOpenChange:N,isMobileWidth:b}),(0,n.jsx)(V.bZ,{className:"bg-secondary border-none my-4",children:(0,n.jsxs)(V.X,{children:[(0,n.jsx)(O.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.jsx)("div",{className:"flex justify-between items-center py-4",children:e?(0,n.jsx)(ep,{isMobileWidth:b,callToAction:"Create Automation",createNew:!0,setIsCreating:u,setShowLoginPrompt:N,setNewAutomationData:h,authenticatedData:e,isCreating:d,ipLocationData:k}):(0,n.jsxs)(i.z,{className:"shadow-sm",onClick:()=>N(!0),variant:"outline",children:[(0,n.jsx)(L.v,{className:"h-4 w-4 mr-2"}),"Create Automation"]})}),(0,n.jsx)(x.Suspense,{children:(0,n.jsx)(em,{isMobileWidth:b,authenticatedData:e||null,locationData:k,isLoggedIn:!!e,setShowLoginPrompt:N,setNewAutomationData:h})}),c&&(0,n.jsx)(r.l,{message:"booting up your automations"}),(0,n.jsxs)("div",{className:"".concat(v().automationsLayout),children:[e&&o&&o.map(t=>(0,n.jsx)(eu,{isMobileWidth:b,authenticatedData:e,automation:t,locationData:k,isLoggedIn:!!e,setShowLoginPrompt:N},t.id)),e&&f.map(t=>(0,n.jsx)(eu,{isMobileWidth:b,authenticatedData:e,automation:t,locationData:k,isLoggedIn:!!e,setShowLoginPrompt:N},t.id))]}),(0,n.jsx)("h3",{className:"text-xl py-4",children:"Explore"}),(0,n.jsx)("div",{className:"".concat(v().automationsLayout),children:g.map(t=>(0,n.jsx)(eu,{isMobileWidth:b,setNewAutomationData:h,authenticatedData:e||null,automation:t,locationData:k,isLoggedIn:!!e,setShowLoginPrompt:N,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 f},pf:function(){return g},xJ:function(){return x},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({}),x=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})})});x.displayName="FormItem";let f=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})});f.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 f},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 x=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"})})});x.displayName=r.$G.displayName;let f=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)(x,{})]})})});f.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 f},VW:function(){return c},_i:function(){return d},gD:function(){return h},lj:function(){return p},sA:function(){return x}});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 x=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"})})});x.displayName=r.x8.displayName;let f=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})});f.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"}}},function(e){e.O(0,[1491,9259,8667,182,9665,1915,5473,4124,2971,2117,1744],function(){return e(e.s=2743)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3317,244,8459,7138],{63521:function(){}},function(n){n.O(0,[2971,2117,1744],function(){return n(n.s=63521)}),_N_E=n.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7138,244,8459,3317],{63521:function(){}},function(n){n.O(0,[2971,2117,1744],function(){return n(n.s=63521)}),_N_E=n.O()}]);
@@ -1 +0,0 @@
1
- !function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},l={};function s(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}},r=!0;try{a[e](n,n.exports,s),r=!1}finally{r&&delete l[e]}return n.exports}s.m=a,e=[],s.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u<e.length;u++){for(var n=e[u][0],r=e[u][1],o=e[u][2],c=!0,f=0;f<n.length;f++)i>=o&&Object.keys(s.O).every(function(e){return s.O[e](n[f])})?n.splice(f--,1):(c=!1,o<i&&(i=o));if(c){e.splice(u--,1);var a=r();void 0!==a&&(t=a)}}return t},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},s.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var o=Object.create(null);s.r(o);var u={};t=t||[null,n({}),n([]),n(n)];for(var i=2&r&&e;"object"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},s.d(o,u),o},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce(function(t,n){return s.f[n](e,t),t},[]))},s.u=function(e){return"static/chunks/"+(({6555:"964ecbae",7293:"94ca1967"})[e]||e)+"."+({3727:"dcea8f2193111552",6555:"51d6faf8801d15e6",7293:"1d9b42d929a1ee8c",9597:"83583248dfbf6e73"})[e]+".js"},s.miniCssF=function(e){},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="_N_E:",s.l=function(e,t,n,u){if(r[e]){r[e].push(t);return}if(void 0!==n)for(var i,c,f=document.getElementsByTagName("script"),a=0;a<f.length;a++){var l=f[a];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==o+n){i=l;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",o+n),i.src=s.tu(e)),r[e]=[t];var d=function(t,n){i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(n)}),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.tt=function(){return void 0===u&&(u={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(u=trustedTypes.createPolicy("nextjs#bundler",u))),u},s.tu=function(e){return s.tt().createScriptURL(e)},s.p="/_next/",i={2272:0,3254:0,3587:0,6250:0,8255:0,1491:0,2026:0,4722:0,6008:0,9346:0},s.f.j=function(e,t){var n=s.o(i,e)?i[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(/^(1491|2026|2272|3254|3587|4722|6008|6250|8255|9346)$/.test(e))i[e]=0;else{var r=new Promise(function(t,r){n=i[e]=[t,r]});t.push(n[2]=r);var o=s.p+s.u(e),u=Error();s.l(o,function(t){if(s.o(i,e)&&(0!==(n=i[e])&&(i[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",u.name="ChunkLoadError",u.type=r,u.request=o,n[1](u)}},"chunk-"+e,e)}}},s.O.j=function(e){return 0===i[e]},c=function(e,t){var n,r,o=t[0],u=t[1],c=t[2],f=0;if(o.some(function(e){return 0!==i[e]})){for(n in u)s.o(u,n)&&(s.m[n]=u[n]);if(c)var a=c(s)}for(e&&e(t);f<o.length;f++)r=o[f],s.o(i,r)&&i[r]&&i[r][0](),i[r]=0;return s.O(a)},(f=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(c.bind(null,0)),f.push=c.bind(null,f.push.bind(f)),s.nc=void 0}();
@@ -1 +0,0 @@
1
- div.agents_titleBar__FzYbY{padding:16px 0;text-align:left}.agents_agentPersonality__o0Ysz p{white-space:inherit;overflow:hidden;height:77px;line-height:1.5}div.agents_agentPersonality__o0Ysz{text-align:left;grid-column:span 3;overflow:hidden}div.agents_pageLayout__gR3S3{max-width:60vw;margin:auto auto 2rem}button.agents_infoButton__NqI7E{border:none;background-color:transparent!important;text-align:left;font-family:inherit;font-size:medium}div.agents_agentList__XVx4A{display:grid;gap:20px;padding-top:30px;margin-right:auto;grid-auto-flow:row;grid-template-columns:1fr 1fr;margin-left:auto}@media only screen and (max-width:768px){div.agents_agentList__XVx4A{width:100%;padding:0;margin-right:auto;margin-left:auto;grid-template-columns:1fr}div.agents_pageLayout__gR3S3{max-width:90vw}}
@@ -1 +0,0 @@
1
- div.automations_automationsLayout__Atoh_{display:grid;grid-template-columns:1fr 1fr;gap:1rem}div.automations_automationCard__BKidA{display:grid;grid-template-rows:auto 1fr auto}div.automations_pageLayout__OaoYA{max-width:60vw;margin:auto auto 2rem}@media screen and (max-width:768px){div.automations_automationsLayout__Atoh_{grid-template-columns:1fr}div.automations_pageLayout__OaoYA{max-width:90vw}}.loginPrompt_gsiMaterialButton__8QVFH{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-webkit-appearance:none;background-image:none;border-radius:20px;box-sizing:border-box;color:#1f1f1f;cursor:pointer;font-family:Roboto,arial,sans-serif;font-size:14px;height:40px;letter-spacing:.25px;outline:none;overflow:hidden;padding:0;position:relative;text-align:center;transition:background-color .218s,border-color .218s,box-shadow .218s;vertical-align:middle;white-space:nowrap;width:40px;max-width:400px;min-width:-moz-min-content;min-width:min-content}.loginPrompt_gsiMaterialButton__8QVFH .loginPrompt_gsiMaterialButtonIcon__6TSC5{height:100%;min-width:20px;width:100%;margin:0;padding:9px}.loginPrompt_gsiMaterialButton__8QVFH .loginPrompt_gsiMaterialButtonContentWrapper__9tahB{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;height:100%;justify-content:space-between;position:relative;width:100%}.loginPrompt_gsiMaterialButton__8QVFH .loginPrompt_gsiMaterialButtonContents__3_YcB{flex-grow:1;font-family:Roboto,arial,sans-serif;font-weight:500;overflow:hidden;text-overflow:ellipsis;vertical-align:top}.loginPrompt_gsiMaterialButton__8QVFH .loginPrompt_gsiMaterialButtonState__CDGQm{transition:opacity .218s;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0}.loginPrompt_gsiMaterialButton__8QVFH:disabled{cursor:default;background-color:#ffffff61;border-color:#1f1f1f1f}.loginPrompt_gsiMaterialButton__8QVFH:disabled .loginPrompt_gsiMaterialButtonContents__3_YcB,.loginPrompt_gsiMaterialButton__8QVFH:disabled .loginPrompt_gsiMaterialButtonIcon__6TSC5{opacity:38%}.loginPrompt_gsiMaterialButton__8QVFH:not(:disabled):active .loginPrompt_gsiMaterialButton-State__mAfCZ,.loginPrompt_gsiMaterialButton__8QVFH:not(:disabled):focus .loginPrompt_gsiMaterialButtonState__CDGQm{background-color:#303030;opacity:12%}.loginPrompt_gsiMaterialButton__8QVFH:not(:disabled):hover{box-shadow:0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15)}.loginPrompt_gsiMaterialButton__8QVFH:not(:disabled):hover .loginPrompt_gsiMaterialButtonState__CDGQm{background-color:#303030;opacity:8%}.agentCard_agentPersonality__MmRlN p{white-space:inherit;overflow:hidden;height:77px;line-height:1.5}div.agentCard_agentPersonality__MmRlN{text-align:left;grid-column:span 3;overflow:hidden}button.agentCard_infoButton__heh_w{border:none;background-color:transparent!important;text-align:left;font-family:inherit;font-size:medium}div.sidePanel_session__EeNjH{padding:.5rem;margin-bottom:.25rem;border-radius:.5rem;cursor:pointer;max-width:14rem;font-size:medium;display:grid;grid-template-columns:minmax(auto,400px) 1fr;gap:0}div.sidePanel_compressed__CUgIn{grid-template-columns:minmax(12rem,100%) 1fr 1fr}div.sidePanel_sessionHover__cf_VO,div.sidePanel_session__EeNjH:hover{background-color:hsla(var(--popover))}div.sidePanel_session__EeNjH:hover{color:hsla(var(--popover-foreground))}div.sidePanel_session__EeNjH a{text-decoration:none}button.sidePanel_button__NzdN_{border:none;outline:none;background-color:transparent;cursor:pointer;color:var(--main-text-color);width:24px}button.sidePanel_showMoreButton__nDt4Z{border-radius:.5rem;padding:8px}div.sidePanel_panel__9offQ{display:flex;flex-direction:column;padding:1rem;overflow-y:auto;max-width:auto;transition:background-color .5s}div.sidePanel_expanded__aHnYV{gap:1rem;background-color:hsla(var(--muted));height:100%}div.sidePanel_collapsed__ewO3e{display:grid;grid-template-columns:1fr;height:-moz-fit-content;height:fit-content;padding:1rem 0 0 1rem}p.sidePanel_session__EeNjH{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-align:left;font-size:small}p.sidePanel_compressed__CUgIn{width:12rem}p.sidePanel_expanded__aHnYV{max-width:20rem}div.sidePanel_header__NCT_v{display:grid;grid-template-columns:1fr auto}div.sidePanel_profile__pfAJU{display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:center;margin-top:auto}div.sidePanel_panelWrapper__cDMvb{display:grid;grid-template-rows:1fr auto auto;height:100%}div.sidePanel_modalSessionsList___u3aa{position:fixed;top:0;left:0;width:100%;height:100%;background-color:hsla(var(--frosted-background-color));z-index:1;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}div.sidePanel_modalSessionsList___u3aa div.sidePanel_content__z60YO{max-width:80%;max-height:80%;background-color:hsla(var(--frosted-background-color));overflow:auto;padding:20px;border-radius:10px}div.sidePanel_modalSessionsList___u3aa div.sidePanel_session__EeNjH{max-width:100%;text-overflow:ellipsis}@media screen and (max-width:768px){div.sidePanel_panel__9offQ{padding:.25rem;width:100%}div.sidePanel_expanded__aHnYV{z-index:1}div.sidePanel_singleReference__vmXZr{padding:4px}div.sidePanel_panelWrapper__cDMvb{width:100%;padding:0 1rem}div.sidePanel_session__EeNjH.sidePanel_compressed__CUgIn{max-width:100%;display:grid;grid-template-columns:70vw auto;justify-content:space-between}div.sidePanel_session__EeNjH{max-width:100%;grid-template-columns:minmax(auto,70vw) 1fr}}