agentgraphed 0.3.2 → 0.3.3

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 (51) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-build-manifest.json +11 -11
  3. package/.next/standalone/.next/app-path-routes-manifest.json +3 -3
  4. package/.next/standalone/.next/build-manifest.json +2 -2
  5. package/.next/standalone/.next/prerender-manifest.json +3 -3
  6. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  7. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  8. package/.next/standalone/.next/server/app/_not-found.rsc +1 -1
  9. package/.next/standalone/.next/server/app/analytics/page_client-reference-manifest.js +1 -1
  10. package/.next/standalone/.next/server/app/api/ingest-local/route_client-reference-manifest.js +1 -1
  11. package/.next/standalone/.next/server/app/api/quota-probe/route_client-reference-manifest.js +1 -1
  12. package/.next/standalone/.next/server/app/api/share/dashboard/route_client-reference-manifest.js +1 -1
  13. package/.next/standalone/.next/server/app/api/share/project/[id]/route_client-reference-manifest.js +1 -1
  14. package/.next/standalone/.next/server/app/api/share/session/[id]/route_client-reference-manifest.js +1 -1
  15. package/.next/standalone/.next/server/app/page.js +3 -3
  16. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  17. package/.next/standalone/.next/server/app/projects/[id]/page_client-reference-manifest.js +1 -1
  18. package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  19. package/.next/standalone/.next/server/app/sessions/[id]/page.js +3 -3
  20. package/.next/standalone/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
  21. package/.next/standalone/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
  22. package/.next/standalone/.next/server/app/settings/page.js +3 -3
  23. package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  24. package/.next/standalone/.next/server/app/timeline/page_client-reference-manifest.js +1 -1
  25. package/.next/standalone/.next/server/app-paths-manifest.json +3 -3
  26. package/.next/standalone/.next/server/functions-config-manifest.json +2 -2
  27. package/.next/standalone/.next/server/pages/404.html +1 -1
  28. package/.next/standalone/.next/server/pages/500.html +1 -1
  29. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  30. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  31. package/.next/standalone/.next/static/chunks/app/page-c48deeb5e00abe37.js +1 -0
  32. package/.next/standalone/.next/static/chunks/app/sessions/[id]/page-67a6219eb293120e.js +1 -0
  33. package/.next/standalone/.next/static/chunks/app/settings/page-14247a62a25a93c7.js +1 -0
  34. package/.next/standalone/package.json +1 -1
  35. package/.next/standalone/src/lib/pricing-data/litellm.meta.json +1 -1
  36. package/.next/static/chunks/app/page-c48deeb5e00abe37.js +1 -0
  37. package/.next/static/chunks/app/sessions/[id]/page-67a6219eb293120e.js +1 -0
  38. package/.next/static/chunks/app/settings/page-14247a62a25a93c7.js +1 -0
  39. package/CHANGELOG.md +5 -0
  40. package/package.json +1 -1
  41. package/src/lib/pricing-data/litellm.meta.json +1 -1
  42. package/.next/standalone/.next/static/chunks/app/page-d5393f25e2553a0c.js +0 -1
  43. package/.next/standalone/.next/static/chunks/app/sessions/[id]/page-49542233907f7f6b.js +0 -1
  44. package/.next/standalone/.next/static/chunks/app/settings/page-b961ca195748ef3b.js +0 -1
  45. package/.next/static/chunks/app/page-d5393f25e2553a0c.js +0 -1
  46. package/.next/static/chunks/app/sessions/[id]/page-49542233907f7f6b.js +0 -1
  47. package/.next/static/chunks/app/settings/page-b961ca195748ef3b.js +0 -1
  48. /package/.next/standalone/.next/static/{hnOq_d-GplXbWU5EnSBzF → M8f0qGBcpu_1RY2qRa9uE}/_buildManifest.js +0 -0
  49. /package/.next/standalone/.next/static/{hnOq_d-GplXbWU5EnSBzF → M8f0qGBcpu_1RY2qRa9uE}/_ssgManifest.js +0 -0
  50. /package/.next/static/{hnOq_d-GplXbWU5EnSBzF → M8f0qGBcpu_1RY2qRa9uE}/_buildManifest.js +0 -0
  51. /package/.next/static/{hnOq_d-GplXbWU5EnSBzF → M8f0qGBcpu_1RY2qRa9uE}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[662],{30926:(e,s,a)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),!function(e,s){for(var a in s)Object.defineProperty(e,a,{enumerable:!0,get:s[a]})}(s,{callServer:function(){return t.callServer},createServerReference:function(){return n.createServerReference},findSourceMapURL:function(){return r.findSourceMapURL}});let t=a(41209),r=a(85153),n=a(77197)},48642:(e,s,a)=>{"use strict";a.d(s,{LlmSection:()=>b});var t=a(95155),r=a(12115),n=a(30926);let i=(0,n.createServerReference)("40d025f6325797c124231a3041a7cdb8e31fbbda34",n.callServer,void 0,n.findSourceMapURL,"saveLlmAction"),o=(0,n.createServerReference)("40556a6d15487b2f88e9deb306be92feff8f744ca5",n.callServer,void 0,n.findSourceMapURL,"setAutoClassifyAction"),l=(0,n.createServerReference)("40eafd3ee6454f54ccab40a274aa7dd142f80dd2c4",n.callServer,void 0,n.findSourceMapURL,"clearKeyAction"),c=(0,n.createServerReference)("400132447f4cc6e314911c7e2bdb0e15a790880ed3",n.callServer,void 0,n.findSourceMapURL,"estimateAction");var d=a(85722);let m=[{id:"claude-haiku-4-5",label:"Claude Haiku 4.5 (cheapest)",provider:"anthropic",input:1,output:5},{id:"claude-sonnet-4-6",label:"Claude Sonnet 4.6 (smarter)",provider:"anthropic",input:3,output:15},{id:"gpt-5-mini",label:"GPT-5 Mini (cheapest)",provider:"openai",input:.5,output:2},{id:"gpt-4o-mini",label:"GPT-4o Mini (very cheap)",provider:"openai",input:.15,output:.6},{id:"gpt-5",label:"GPT-5 (smarter)",provider:"openai",input:2.5,output:10}];function p(e){return m.filter(s=>s.provider===e)}function u(e){return"openai"===e?"gpt-5-mini":"claude-haiku-4-5"}let x=e=>e?e.slice(0,8)+"…"+e.slice(-4):"";function b(e){let{provider:s,anthKey:a,oaiKey:n,classifierModel:m,summarizerModel:b,classified:f,total:h,autoClassify:v}=e,[y,k]=(0,r.useState)(s),[j,N]=(0,r.useState)(m),[g,w]=(0,r.useState)(null),[S,C]=(0,r.useState)(v),[L,R]=(0,r.useState)({kind:"idle"}),[U,A]=(0,r.useTransition)(),M=("openai"===y?n:a).length>0,_=p(y),O=_.some(e=>e.id===j)?j:u(y),P=e=>{R({kind:"idle"}),A(async()=>{let s=await c(e);s.ok?R({kind:"estimate",totalUsd:s.totalUsd,rowCount:s.rowCount,modelLabel:s.modelLabel,scope:e}):R({kind:"error",message:s.error})})};return(0,t.jsxs)("div",{className:"card",children:[(0,t.jsxs)("div",{className:"card-header flex items-center justify-between",children:[(0,t.jsx)("span",{children:"LLM provider"}),(0,t.jsxs)("span",{className:"normal-case tracking-normal text-ink-mute text-[11px] font-mono",children:[f,"/",h," sessions classified"]})]}),(0,t.jsxs)("form",{action:e=>{A(async()=>{await i(e),w(Date.now()),setTimeout(()=>w(null),2e3)})},className:"p-5 space-y-4 text-body-md",children:[(0,t.jsxs)("p",{className:"text-ink-dim text-body-sm",children:["Optional. Used to auto-title and categorize sessions, and to generate context primers when you click ",(0,t.jsx)("em",{children:"Copy context"})," on a session. Skip this and titles stay as the raw first prompt."]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("label",{className:"text-label-caps text-ink-mute block",children:"Provider"}),(0,t.jsxs)("select",{name:"provider",value:y,onChange:e=>{var s;k(s=e.target.value),p(s).some(e=>e.id===j)||N(u(s))},className:"bg-surface-1 border border-surface-3 rounded px-2 h-9 text-body-md w-full",children:[(0,t.jsx)("option",{value:"anthropic",children:"Anthropic"}),(0,t.jsx)("option",{value:"openai",children:"OpenAI"})]})]}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("label",{className:"text-label-caps text-ink-mute block",children:"Model"}),(0,t.jsx)("select",{name:"classifier_model",value:O,onChange:e=>N(e.target.value),className:"bg-surface-1 border border-surface-3 rounded px-2 h-9 text-body-md font-mono w-full",children:_.map(e=>(0,t.jsx)("option",{value:e.id,children:e.label},e.id))})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("label",{className:"text-label-caps text-ink-mute block flex items-center justify-between",children:["Anthropic key",a&&(0,t.jsx)("button",{type:"button",onClick:()=>A(()=>l("anthropic")),className:"normal-case tracking-normal text-[10px] text-ink-mute hover:text-error",children:"clear"})]}),(0,t.jsx)("input",{type:"password",name:"anthropic_key",placeholder:x(a)||"sk-ant-…",className:"bg-surface-1 border border-surface-3 rounded px-3 h-9 text-body-md font-mono w-full focus:outline-none focus:border-primary"})]}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("label",{className:"text-label-caps text-ink-mute block flex items-center justify-between",children:["OpenAI key",n&&(0,t.jsx)("button",{type:"button",onClick:()=>A(()=>l("openai")),className:"normal-case tracking-normal text-[10px] text-ink-mute hover:text-error",children:"clear"})]}),(0,t.jsx)("input",{type:"password",name:"openai_key",placeholder:x(n)||"sk-…",className:"bg-surface-1 border border-surface-3 rounded px-3 h-9 text-body-md font-mono w-full focus:outline-none focus:border-primary"})]})]}),(0,t.jsxs)("p",{className:"text-[11px] text-ink-mute leading-relaxed",children:["Keys are stored in plaintext in your local SQLite file — same threat model as"," ",(0,t.jsx)("span",{className:"font-mono",children:"~/.aws/credentials"})," or a ",(0,t.jsx)("span",{className:"font-mono",children:".env"}),". Never sent over the network. Any process that can read your home folder can read them."]}),(0,t.jsx)("input",{type:"hidden",name:"summarizer_model",value:b}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{className:"btn btn-primary",type:"submit",disabled:U,children:U?"Saving…":"Save"}),g&&(0,t.jsx)("span",{className:"text-body-sm text-secondary",children:"✓ saved"})]})]}),(0,t.jsxs)("div",{className:"px-5 pb-5 border-t border-surface-2 pt-4 space-y-3",children:[(0,t.jsxs)("label",{className:"flex items-start gap-3 text-body-sm ".concat(M?"cursor-pointer":"opacity-60 cursor-not-allowed"),children:[(0,t.jsx)("input",{type:"checkbox",checked:S,onChange:e=>{var s;C(s=e.target.checked),A(async()=>{await o(s)})},disabled:!M||U,className:"mt-1 accent-primary"}),(0,t.jsxs)("span",{className:"text-ink-dim",children:[(0,t.jsx)("span",{className:"text-ink font-medium",children:"Automatically classify new sessions"}),(0,t.jsx)("span",{className:"block text-ink-mute text-[11px] mt-0.5",children:"When a background scan finds unclassified sessions, batch them through the classifier. Costs ~$0.0001 per session."})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,t.jsx)("button",{type:"button",disabled:!M||U,onClick:()=>P("uncategorized"),className:"btn disabled:opacity-50 disabled:cursor-not-allowed",children:"Classify uncategorized"}),(0,t.jsx)("button",{type:"button",disabled:!M||U,onClick:()=>P("all"),className:"btn disabled:opacity-50 disabled:cursor-not-allowed",children:"Re-classify all"}),!M&&(0,t.jsx)("span",{className:"text-body-sm text-ink-mute",children:"Save a key above to enable."})]}),"estimate"===L.kind&&(0,t.jsxs)("div",{className:"border border-primary/40 bg-primary/5 rounded p-3 text-body-sm",children:[(0,t.jsx)("div",{className:"text-ink mb-2",children:0===L.rowCount?"Nothing to classify.":(0,t.jsxs)(t.Fragment,{children:["About to classify ",(0,t.jsx)("span",{className:"font-mono text-primary",children:L.rowCount})," ","sessions with ",L.modelLabel," for an estimated"," ",(0,t.jsxs)("span",{className:"font-mono text-primary",children:["$",L.totalUsd.toFixed(4)]}),"."]})}),L.rowCount>0&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{var e;return e=L.scope,void A(async()=>{let s=await (0,d.v)(e);s.ok?R({kind:"done",classified:s.classified,costUsd:s.costUsd,warning:s.warning}):R({kind:"error",message:s.error})})},className:"btn btn-primary",disabled:U,children:U?"Classifying…":"Confirm"}),(0,t.jsx)("button",{type:"button",onClick:()=>R({kind:"idle"}),className:"btn",disabled:U,children:"Cancel"})]})]}),"done"===L.kind&&(0,t.jsxs)("div",{className:"border border-secondary/40 bg-secondary/5 rounded p-3 text-body-sm text-ink space-y-1",children:[(0,t.jsxs)("div",{children:["✓ Classified ",(0,t.jsx)("span",{className:"font-mono text-secondary",children:L.classified})," ","sessions for ",(0,t.jsxs)("span",{className:"font-mono",children:["$",L.costUsd.toFixed(4)]}),"."]}),L.warning&&(0,t.jsxs)("div",{className:"text-error text-[11px] border-l-2 border-error pl-2 font-mono break-words",children:["Warning: ",L.warning]})]}),"error"===L.kind&&(0,t.jsx)("div",{className:"text-body-sm text-error border-l-2 border-error pl-3",children:L.message})]})]})}},66821:(e,s,a)=>{Promise.resolve().then(a.bind(a,48642))},85722:(e,s,a)=>{"use strict";a.d(s,{v:()=>r});var t=a(30926);let r=(0,t.createServerReference)("404bcb28ddc5fd7d11963dbddc1e3bb5cd34f55700",t.callServer,void 0,t.findSourceMapURL,"classifyAction")}},e=>{e.O(0,[441,255,358],()=>e(e.s=66821)),_N_E=e.O()}]);