khoj 1.20.4.dev2__py3-none-any.whl → 1.20.4.dev6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- khoj/interface/compiled/404/index.html +1 -1
- khoj/interface/compiled/_next/static/chunks/9178-ef3257c08d8973c8.js +1 -0
- khoj/interface/compiled/_next/static/chunks/{webpack-edd945a0298a9aac.js → webpack-52ba6115c8896764.js} +1 -1
- khoj/interface/compiled/_next/static/css/{9369a9dea99c97e8.css → 2bfe35fbe2c97a56.css} +1 -1
- khoj/interface/compiled/_next/static/css/{1de368beed21dfba.css → a271b936f2650562.css} +1 -1
- khoj/interface/compiled/agents/index.html +1 -1
- khoj/interface/compiled/agents/index.txt +2 -2
- khoj/interface/compiled/assets/icons/khoj_lantern_logomarktype_1200x630.png +0 -0
- 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 +3 -3
- khoj/interface/compiled/factchecker/index.html +1 -1
- khoj/interface/compiled/factchecker/index.txt +3 -3
- khoj/interface/compiled/index.html +1 -1
- khoj/interface/compiled/index.txt +2 -2
- khoj/interface/compiled/khoj.webmanifest +51 -0
- 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 +2 -2
- khoj/interface/compiled/share/chat/index.html +1 -1
- khoj/interface/compiled/share/chat/index.txt +3 -3
- khoj/interface/web/base_config.html +1 -1
- khoj/interface/web/login.html +2 -2
- {khoj-1.20.4.dev2.dist-info → khoj-1.20.4.dev6.dist-info}/METADATA +1 -1
- {khoj-1.20.4.dev2.dist-info → khoj-1.20.4.dev6.dist-info}/RECORD +41 -40
- khoj/interface/compiled/_next/static/chunks/9178-0f472d4d17b2ef53.js +0 -1
- khoj/interface/web/khoj.webmanifest +0 -51
- /khoj/interface/compiled/_next/static/{dOaZyI_wF8lNwR4y-XWZ- → aGGgLustppWBiBi-YjYK4}/_buildManifest.js +0 -0
- /khoj/interface/compiled/_next/static/{dOaZyI_wF8lNwR4y-XWZ- → aGGgLustppWBiBi-YjYK4}/_ssgManifest.js +0 -0
- /khoj/interface/compiled/{favicon.ico → assets/icons/khoj_lantern.ico} +0 -0
- /khoj/interface/{web/assets/icons/favicon-128x128.png → compiled/assets/icons/khoj_lantern_128x128.png} +0 -0
- /khoj/interface/{web/assets/icons/favicon-256x256.png → compiled/assets/icons/khoj_lantern_256x256.png} +0 -0
- /khoj/interface/{web → compiled}/assets/samples/desktop-browse-draw-sample.png +0 -0
- /khoj/interface/{web → compiled}/assets/samples/desktop-plain-chat-sample.png +0 -0
- /khoj/interface/{web → compiled}/assets/samples/desktop-remember-plan-sample.png +0 -0
- /khoj/interface/{web → compiled}/assets/samples/phone-browse-draw-sample.png +0 -0
- /khoj/interface/{web → compiled}/assets/samples/phone-plain-chat-sample.png +0 -0
- /khoj/interface/{web → compiled}/assets/samples/phone-remember-plan-sample.png +0 -0
- {khoj-1.20.4.dev2.dist-info → khoj-1.20.4.dev6.dist-info}/WHEEL +0 -0
- {khoj-1.20.4.dev2.dist-info → khoj-1.20.4.dev6.dist-info}/entry_points.txt +0 -0
- {khoj-1.20.4.dev2.dist-info → khoj-1.20.4.dev6.dist-info}/licenses/LICENSE +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9178],{89178:function(e,t,a){"use strict";a.d(t,{H:function(){return Q},Z:function(){return X}});var n=a(57437),s=a(34531),o=a.n(s),l=a(14944),r=a(39952),c=a.n(r),i=a(2265);a(7395);var d=a(26100),h=a(36013),u=a(13304),m=a(12218),g=a(74697),p=a(37440);let f=u.fC,x=u.xz;u.x8;let w=u.h_,j=i.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(u.aV,{className:(0,p.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...s,ref:t})});j.displayName=u.aV.displayName;let y=(0,m.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),b=i.forwardRef((e,t)=>{let{side:a="right",className:s,children:o,...l}=e;return(0,n.jsxs)(w,{children:[(0,n.jsx)(j,{}),(0,n.jsxs)(u.VY,{ref:t,className:(0,p.cn)(y({side:a}),s),...l,children:[o,(0,n.jsxs)(u.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,n.jsx)(g.Z,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});b.displayName=u.VY.displayName;let k=e=>{let{className:t,...a}=e;return(0,n.jsx)("div",{className:(0,p.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...a})};k.displayName="SheetHeader";let C=i.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(u.Dx,{ref:t,className:(0,p.cn)("text-lg font-semibold text-foreground",a),...s})});C.displayName=u.Dx.displayName;let N=i.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(u.dk,{ref:t,className:(0,p.cn)("text-sm text-muted-foreground",a),...s})});N.displayName=u.dk.displayName;var M=a(19573),v=a(11838),_=a.n(v),R=a(89417);let E=new l.Z({html:!0,linkify:!0,typographer:!0});function T(e){let t=(0,R.L)(e.title||".txt","w-6 h-6 text-muted-foreground inline-flex mr-2"),a=function(e){let t=["org","md","markdown"].includes(e.title.split(".").pop()||"")?e.content.split("\n").slice(1).join("\n"):e.content;return e.showFullContent?_().sanitize(E.render(t)):_().sanitize(t)}(e),[s,o]=(0,i.useState)(!1);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(M.J2,{open:s&&!e.showFullContent,onOpenChange:o,children:[(0,n.jsx)(M.xo,{asChild:!0,children:(0,n.jsxs)(h.Zb,{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),className:"".concat(e.showFullContent?"w-auto":"w-[200px]"," overflow-hidden break-words text-balance rounded-lg p-2 bg-muted border-none"),children:[(0,n.jsxs)("h3",{className:"".concat(e.showFullContent?"block":"line-clamp-1"," text-muted-foreground}"),children:[t,e.title]}),(0,n.jsx)("p",{className:"".concat(e.showFullContent?"block":"overflow-hidden line-clamp-2"),dangerouslySetInnerHTML:{__html:a}})]})}),(0,n.jsx)(M.yk,{className:"w-[400px] mx-2",children:(0,n.jsxs)(h.Zb,{className:"w-auto overflow-hidden break-words text-balance rounded-lg p-2 border-none",children:[(0,n.jsxs)("h3",{className:"line-clamp-2 text-muted-foreground}",children:[t,e.title]}),(0,n.jsx)("p",{className:"overflow-hidden line-clamp-3",dangerouslySetInnerHTML:{__html:a}})]})})]})})}function D(e){let[t,a]=(0,i.useState)(!1);if(!e.link||e.link.split(" ").length>1)return null;let s="https://www.google.com/s2/favicons?domain=globe",o="unknown";try{o=new URL(e.link).hostname,s="https://www.google.com/s2/favicons?domain=".concat(o)}catch(t){return console.warn("Error parsing domain from link: ".concat(e.link)),null}return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(M.J2,{open:t&&!e.showFullContent,onOpenChange:a,children:[(0,n.jsx)(M.xo,{asChild:!0,children:(0,n.jsx)(h.Zb,{onMouseEnter:()=>{a(!0)},onMouseLeave:()=>{a(!1)},className:"".concat(e.showFullContent?"w-auto":"w-[200px]"," overflow-hidden break-words rounded-lg text-balance p-2 bg-muted border-none"),children:(0,n.jsx)("div",{className:"flex flex-col",children:(0,n.jsxs)("a",{href:e.link,target:"_blank",rel:"noreferrer",className:"!no-underline p-2",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("img",{src:s,alt:"",className:"!w-4 h-4 mr-2"}),(0,n.jsx)("h3",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-1"," text-muted-foreground"),children:o})]}),(0,n.jsx)("h3",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-1"," font-bold"),children:e.title}),(0,n.jsx)("p",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-2"),children:e.description})]})})})}),(0,n.jsx)(M.yk,{className:"w-[400px] mx-2",children:(0,n.jsx)(h.Zb,{className:"w-auto overflow-hidden break-words text-balance rounded-lg border-none",children:(0,n.jsx)("div",{className:"flex flex-col",children:(0,n.jsxs)("a",{href:e.link,target:"_blank",rel:"noreferrer",className:"!no-underline p-2",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("img",{src:s,alt:"",className:"!w-4 h-4 mr-2"}),(0,n.jsx)("h3",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-2"," text-muted-foreground"),children:o})]}),(0,n.jsx)("h3",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-2"," font-bold"),children:e.title}),(0,n.jsx)("p",{className:"overflow-hidden ".concat(e.showFullContent?"block":"line-clamp-3"),children:e.description})]})})})})]})})}function L(e){let[t,a]=(0,i.useState)(3);(0,i.useEffect)(()=>{a(e.isMobileWidth?1:3)},[e.isMobileWidth]);let s=e.notesReferenceCardData.slice(0,t),o=s.length<t?e.onlineReferenceCardData.slice(0,t-s.length):[],l=e.notesReferenceCardData.length>0||e.onlineReferenceCardData.length>0,r=e.notesReferenceCardData.length+e.onlineReferenceCardData.length;return 0===r?null:(0,n.jsxs)("div",{className:"pt-0 px-4 pb-4 md:px-6",children:[(0,n.jsxs)("h3",{className:"inline-flex items-center",children:["References",(0,n.jsxs)("p",{className:"text-gray-400 m-2",children:[r," sources"]})]}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-2 w-auto mt-2",children:[s.map((e,t)=>(0,i.createElement)(T,{showFullContent:!1,...e,key:"".concat(e.title,"-").concat(t)})),o.map((e,t)=>(0,i.createElement)(D,{showFullContent:!1,...e,key:"".concat(e.title,"-").concat(t)})),l&&(0,n.jsx)(F,{notesReferenceCardData:e.notesReferenceCardData,onlineReferenceCardData:e.onlineReferenceCardData})]})]})}function F(e){return e.notesReferenceCardData||e.onlineReferenceCardData?(0,n.jsxs)(f,{children:[(0,n.jsxs)(x,{className:"text-balance w-auto md:w-[200px] justify-start overflow-hidden break-words p-0 bg-transparent border-none text-gray-400 align-middle items-center !m-2 inline-flex",children:["View references",(0,n.jsx)(d.o,{className:"m-1"})]}),(0,n.jsxs)(b,{className:"overflow-y-scroll",children:[(0,n.jsxs)(k,{children:[(0,n.jsx)(C,{children:"References"}),(0,n.jsx)(N,{children:"View all references for this response"})]}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-2 w-auto mt-2",children:[e.notesReferenceCardData.map((e,t)=>(0,i.createElement)(T,{showFullContent:!0,...e,key:"".concat(e.title,"-").concat(t)})),e.onlineReferenceCardData.map((e,t)=>(0,i.createElement)(D,{showFullContent:!0,...e,key:"".concat(e.title,"-").concat(t)}))]})]})]}):null}var B=a(34149),S=a(29386),H=a(31784),O=a(60665),A=a(96006),Z=a(18444),q=a(35304),$=a(8589),P=a(63205),W=a(92880),z=a(48408),G=a(67722),I=a(58485),U=a(58575),V=a(25800);let Y=new l.Z({html:!0,linkify:!0,typographer:!0});function J(e,t,a){fetch("/api/chat/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uquery:e,kquery:t,sentiment:a})})}function K(e){let{uquery:t,kquery:a}=e;return(0,n.jsxs)("div",{className:"".concat(o().feedbackButtons," flex align-middle justify-center items-center"),children:[(0,n.jsx)("button",{title:"Like",className:o().thumbsUpButton,onClick:()=>J(t,a,"positive"),children:(0,n.jsx)(B.V,{alt:"Like Message",color:"hsl(var(--muted-foreground))"})}),(0,n.jsx)("button",{title:"Dislike",className:o().thumbsDownButton,onClick:()=>J(t,a,"negative"),children:(0,n.jsx)(S.L,{alt:"Dislike Message",color:"hsl(var(--muted-foreground))"})})]})}function Q(e){let t=e.message.match(/\*\*(.*)\*\*/),a=function(e,t){let a=e.toLowerCase(),s="inline mt-1 mr-2 ".concat(t," h-4 w-4");return a.includes("understanding")?(0,n.jsx)(H.a,{className:"".concat(s)}):a.includes("generating")?(0,n.jsx)(O.Z,{className:"".concat(s)}):a.includes("data sources")||a.includes("notes")?(0,n.jsx)(A.g,{className:"".concat(s)}):a.includes("read")?(0,n.jsx)(Z.f,{className:"".concat(s)}):a.includes("search")?(0,n.jsx)(q.Y,{className:"".concat(s)}):a.includes("summary")||a.includes("summarize")||a.includes("enhanc")?(0,n.jsx)($.u,{className:"".concat(s)}):a.includes("paint")?(0,n.jsx)(P.Y,{className:"".concat(s)}):(0,n.jsx)(H.a,{className:"".concat(s)})}(t?t[1]:"",e.primary?(0,U.oz)(e.agentColor):"text-gray-500"),s=_().sanitize(Y.render(e.message));return(0,n.jsxs)("div",{className:"".concat(o().trainOfThoughtElement," items-center ").concat(e.primary?"text-gray-400":"text-gray-300"," ").concat(o().trainOfThought," ").concat(e.primary?o().primary:""),children:[a,(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:s}})]})}function X(e){var t,a;let s,l,r,c,d;let[h,u]=(0,i.useState)(!1),[m,g]=(0,i.useState)(!1),[p,f]=(0,i.useState)(""),[x,w]=(0,i.useState)(!1),[j,y]=(0,i.useState)(!1),b=(0,i.useRef)(!1),k=(0,i.useRef)(null);if((0,i.useEffect)(()=>{b.current=j},[j]),(0,i.useEffect)(()=>{let e=new MutationObserver((e,t)=>{if(k.current)for(let t of e)"childList"===t.type&&t.addedNodes.length>0&&(0,V.Z)(k.current,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1}]})});return k.current&&e.observe(k.current,{childList:!0}),()=>e.disconnect()},[k.current]),(0,i.useEffect)(()=>{var t;let a=e.chatMessage.message;a=a.replace(/\\\(/g,"LEFTPAREN").replace(/\\\)/g,"RIGHTPAREN").replace(/\\\[/g,"LEFTBRACKET").replace(/\\\]/g,"RIGHTBRACKET"),e.chatMessage.intent&&"text-to-image"==e.chatMessage.intent.type?a=""):e.chatMessage.intent&&"text-to-image2"==e.chatMessage.intent.type?a=""):e.chatMessage.intent&&"text-to-image-v3"==e.chatMessage.intent.type&&(a="")),e.chatMessage.intent&&e.chatMessage.intent.type.includes("text-to-image")&&(null===(t=e.chatMessage.intent["inferred-queries"])||void 0===t?void 0:t.length)>0&&(a+="\n\n**Inferred Query**\n\n".concat(e.chatMessage.intent["inferred-queries"][0]));let n=Y.render(a);n=n.replace(/LEFTPAREN/g,"\\(").replace(/RIGHTPAREN/g,"\\)").replace(/LEFTBRACKET/g,"\\[").replace(/RIGHTBRACKET/g,"\\]"),f(_().sanitize(n))},[e.chatMessage.message,e.chatMessage.intent]),(0,i.useEffect)(()=>{h&&setTimeout(()=>{u(!1)},2e3)},[h]),(0,i.useEffect)(()=>{k.current&&(k.current.querySelectorAll("pre > .hljs").forEach(e=>{let t=document.createElement("button"),a=document.createElement("img");a.src="/static/copy-button.svg",a.alt="Copy",a.width=24,a.height=24,t.appendChild(a),t.className="hljs ".concat(o().codeCopyButton),t.addEventListener("click",()=>{let t=e.textContent||"";t=(t=(t=t.replace(/^\$+/,"")).replace(/^Copy/,"")).trim(),navigator.clipboard.writeText(t),a.src="/static/copy-button-success.svg"}),e.prepend(t)}),console.log("render katex within the chat message"),(0,V.Z)(k.current,{delimiters:[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1}]}))},[p,m,k]),!e.chatMessage.message)return null;async function C(){let t=e.chatMessage.message.match(/[^.!?]+[.!?]*/g)||[];if(!t||0===t.length||!t[0])return;w(!0);let a=N(t[0]);for(let e=0;e<t.length&&!b.current;e++){let n=a;e<t.length-1&&(a=N(t[e+1]));try{let e=await n,t=URL.createObjectURL(e);await function(e){return new Promise((t,a)=>{let n=new Audio(e);n.onended=t,n.onerror=a,n.play()})}(t)}catch(e){console.error("Error:",e);break}}w(!1),y(!1)}async function N(e){let t=await fetch("/api/chat/speech?text=".concat(encodeURIComponent(e)),{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok)throw Error("Network response was not ok");return await t.blob()}let M=function(e,t){let a=[],n=[];if(t){let e=[];for(let[a,n]of Object.entries(t)){if(n.answerBox&&e.push({title:n.answerBox.title,description:n.answerBox.answer,link:n.answerBox.source}),n.knowledgeGraph&&e.push({title:n.knowledgeGraph.title,description:n.knowledgeGraph.description,link:n.knowledgeGraph.descriptionLink}),n.webpages){if(n.webpages instanceof Array){let t=n.webpages.map(e=>({title:e.query,description:e.snippet,link:e.link}));e.push(...t)}else{let t=n.webpages;e.push({title:t.query,description:t.snippet,link:t.link})}}if(n.organic){let t=n.organic.map(e=>({title:e.title,description:e.snippet,link:e.link}));e.push(...t)}}a.push(...e)}if(e){let t=e.map(e=>e.compiled?{title:e.file,content:e.compiled}:{title:e.split("\n")[0],content:e.split("\n").slice(1).join("\n")});n.push(...t)}return{notesReferenceCardData:n,onlineReferenceCardData:a}}(e.chatMessage.context,e.chatMessage.onlineContext);return(0,n.jsxs)("div",{className:(t=e.chatMessage,(s=[o().chatMessageContainer,"shadow-md"]).push(o()[t.by]),e.customClassName&&s.push(o()["".concat(t.by).concat(e.customClassName)]),s.join(" ")),onMouseLeave:e=>g(!1),onMouseEnter:e=>g(!0),onClick:"khoj"===e.chatMessage.by?e=>void 0:void 0,children:[(0,n.jsx)("div",{className:(a=e.chatMessage,(l=[o().chatMessageWrapper]).push(o()[a.by]),"khoj"===a.by&&l.push("border-l-4 border-opacity-50 ".concat("border-l-"+e.borderLeftColor)),l.join(" ")),children:(0,n.jsx)("div",{ref:k,className:o().chatMessage,dangerouslySetInnerHTML:{__html:p}})}),(0,n.jsx)("div",{className:o().teaserReferencesContainer,children:(0,n.jsx)(L,{isMobileWidth:e.isMobileWidth,notesReferenceCardData:M.notesReferenceCardData,onlineReferenceCardData:M.onlineReferenceCardData})}),(0,n.jsx)("div",{className:o().chatFooter,children:(m||e.isMobileWidth||e.isLastMessage||x)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{title:(c=(r=new Date(e.chatMessage.created+"Z")).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}).toUpperCase(),d=r.toLocaleString("en-US",{year:"numeric",month:"short",day:"2-digit"}).replaceAll("-"," "),"".concat(c," on ").concat(d)),className:"text-gray-400 relative top-0 left-4",children:function(e){e.endsWith("Z")||(e+="Z");let t=new Date(e),a=new Date().getTime()-t.getTime();return a<6e4?"Just now":a<36e5?"".concat(Math.round(a/6e4),"m ago"):a<864e5?"".concat(Math.round(a/36e5),"h ago"):"".concat(Math.round(a/864e5),"d ago")}(e.chatMessage.created)}),(0,n.jsxs)("div",{className:"".concat(o().chatButtons," shadow-sm"),children:["khoj"===e.chatMessage.by&&(x?j?(0,n.jsx)(I.l,{iconClassName:"p-0",className:"m-0"}):(0,n.jsx)("button",{title:"Pause Speech",onClick:e=>y(!0),children:(0,n.jsx)(W.d,{alt:"Pause Message",color:"hsl(var(--muted-foreground))"})}):(0,n.jsx)("button",{title:"Speak",onClick:e=>C(),children:(0,n.jsx)(z.j,{alt:"Speak Message",color:"hsl(var(--muted-foreground))"})})),(0,n.jsx)("button",{title:"Copy",className:"".concat(o().copyButton),onClick:()=>{navigator.clipboard.writeText(e.chatMessage.message),u(!0)},children:h?(0,n.jsx)(G.C,{alt:"Copied Message",weight:"fill",color:"green"}):(0,n.jsx)(G.C,{alt:"Copy Message",color:"hsl(var(--muted-foreground))"})}),"khoj"===e.chatMessage.by&&(e.chatMessage.intent?(0,n.jsx)(K,{uquery:e.chatMessage.intent.query,kquery:e.chatMessage.message}):(0,n.jsx)(K,{uquery:e.chatMessage.rawQuery||e.chatMessage.message,kquery:e.chatMessage.message}))]})]})})]})}Y.use(c(),{inline:!0,code:!0})},34531:function(e){e.exports={chatMessageContainer:"chatMessage_chatMessageContainer__sAivf",chatMessageWrapper:"chatMessage_chatMessageWrapper__u5m8A",khojfullHistory:"chatMessage_khojfullHistory__NPu2l",youfullHistory:"chatMessage_youfullHistory__ioyfH",you:"chatMessage_you__6GUC4",khoj:"chatMessage_khoj__cjWON",khojChatMessage:"chatMessage_khojChatMessage__BabQz",author:"chatMessage_author__muRtC",chatFooter:"chatMessage_chatFooter__0vR8s",chatButtons:"chatMessage_chatButtons__Lbk8T",codeCopyButton:"chatMessage_codeCopyButton__Y_Ujv",feedbackButtons:"chatMessage_feedbackButtons___Brdy",copyButton:"chatMessage_copyButton__jd7q7",trainOfThought:"chatMessage_trainOfThought__mR2Gg",primary:"chatMessage_primary__WYPEb",trainOfThoughtElement:"chatMessage_trainOfThoughtElement__le_bC"}}}]);
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Khoj",
|
|
3
|
-
"short_name": "Khoj",
|
|
4
|
-
"display": "standalone",
|
|
5
|
-
"start_url": "/",
|
|
6
|
-
"description": "The open, personal AI for your digital brain. You can ask Khoj to draft a message, paint your imagination, find information on the internet and even answer questions from your documents.",
|
|
7
|
-
"theme_color": "#ffffff",
|
|
8
|
-
"background_color": "#ffffff",
|
|
9
|
-
"icons": [
|
|
10
|
-
{
|
|
11
|
-
"src": "/static/assets/icons/favicon-128x128.png",
|
|
12
|
-
"sizes": "128x128",
|
|
13
|
-
"type": "image/png"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"src": "/static/assets/icons/favicon-256x256.png",
|
|
17
|
-
"sizes": "256x256",
|
|
18
|
-
"type": "image/png"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"screenshots": [
|
|
22
|
-
{
|
|
23
|
-
"src": "/static/assets/samples/phone-remember-plan-sample.png",
|
|
24
|
-
"sizes": "419x900",
|
|
25
|
-
"type": "image/png",
|
|
26
|
-
"form_factor": "narrow",
|
|
27
|
-
"label": "Remember and Plan"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"src": "/static/assets/samples/phone-browse-draw-sample.png",
|
|
31
|
-
"sizes": "419x900",
|
|
32
|
-
"type": "image/png",
|
|
33
|
-
"form_factor": "narrow",
|
|
34
|
-
"label": "Browse and Draw"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"src": "/static/assets/samples/desktop-remember-plan-sample.png",
|
|
38
|
-
"sizes": "1260x742",
|
|
39
|
-
"type": "image/png",
|
|
40
|
-
"form_factor": "wide",
|
|
41
|
-
"label": "Remember and Plan"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"src": "/static/assets/samples/desktop-browse-draw-sample.png",
|
|
45
|
-
"sizes": "1260x742",
|
|
46
|
-
"type": "image/png",
|
|
47
|
-
"form_factor": "wide",
|
|
48
|
-
"label": "Browse and Draw"
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|