@axiom-lattice/react-sdk 4.1.4 → 4.1.5

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 (70) hide show
  1. package/dist/{AgentDetailSideApp-KVL27KAF.mjs → AgentDetailSideApp-EBS7FGQS.mjs} +8 -8
  2. package/dist/AgentGovernanceWorkbench-IHYEFXEU.mjs +20 -0
  3. package/dist/{MessageGraph-LOSAZQ2V.mjs → MessageGraph-CU7TPJJI.mjs} +3 -3
  4. package/dist/{ReactChart-NDLIHCJJ.mjs → ReactChart-INAST7XW.mjs} +3 -3
  5. package/dist/{SkillFlow-OVKEKBOL.mjs → SkillFlow-TBKF765E.mjs} +4 -4
  6. package/dist/{TasksSideApp-37YKH7HV.mjs → TasksSideApp-IN46CQ4D.mjs} +4 -4
  7. package/dist/{TeamWorkspace-EAFZU3KS.mjs → TeamWorkspace-IH6F5QYO.mjs} +3 -3
  8. package/dist/{TopologyRuntimeView-53OCKDYA.mjs → TopologyRuntimeView-LR3YQQIU.mjs} +4 -4
  9. package/dist/{WorkflowAutomationView-R4EHXT7I.mjs → WorkflowAutomationView-GWBROX7L.mjs} +6 -6
  10. package/dist/{chunk-SLXJAOF2.mjs → chunk-4PV75HKR.mjs} +2 -2
  11. package/dist/{chunk-YYP5ASCR.mjs → chunk-EOBSSJ2W.mjs} +5 -5
  12. package/dist/{chunk-LEEQPRDB.mjs → chunk-HMBSH53V.mjs} +102 -33
  13. package/dist/chunk-HMBSH53V.mjs.map +1 -0
  14. package/dist/{chunk-NHD2XFH4.mjs → chunk-K7WBURGK.mjs} +3 -3
  15. package/dist/{chunk-AMIVRDYB.mjs → chunk-MFAPAXZ2.mjs} +2 -2
  16. package/dist/{chunk-WQBBDRPU.mjs → chunk-MSQON5ZR.mjs} +32 -28
  17. package/dist/chunk-MSQON5ZR.mjs.map +1 -0
  18. package/dist/{chunk-OT7IZRSM.mjs → chunk-O7PTPMW2.mjs} +2 -2
  19. package/dist/{chunk-EWLXRAWY.mjs → chunk-PBKPYK27.mjs} +237 -298
  20. package/dist/chunk-PBKPYK27.mjs.map +1 -0
  21. package/dist/{chunk-N4C7TX7T.mjs → chunk-R4XGQTDJ.mjs} +3 -3
  22. package/dist/{chunk-FKK4AXDU.mjs → chunk-YRPBTDOU.mjs} +5 -5
  23. package/dist/{embed-page-AgentDetailSideApp-3LBCEKFU.js → embed-page-AgentDetailSideApp-YPN3NDEA.js} +1 -1
  24. package/dist/{embed-page-AgentGovernanceWorkbench-K3JUQNBW.js → embed-page-AgentGovernanceWorkbench-FAZQNPAM.js} +1 -1
  25. package/dist/{embed-page-MessageGraph-3X4ROEN6.js → embed-page-MessageGraph-CEOPX4GM.js} +1 -1
  26. package/dist/{embed-page-ReactChart-F6VYCIYY.js → embed-page-ReactChart-NZAYQOQH.js} +1 -1
  27. package/dist/{embed-page-SkillFlow-3CF7R3CW.js → embed-page-SkillFlow-TPESM4DI.js} +1 -1
  28. package/dist/{embed-page-TasksSideApp-3WRDBZU3.js → embed-page-TasksSideApp-3EAPMISU.js} +1 -1
  29. package/dist/{embed-page-TeamWorkspace-6JSMZYUF.js → embed-page-TeamWorkspace-HB7ER45L.js} +1 -1
  30. package/dist/{embed-page-TopologyRuntimeView-YDFENLHH.js → embed-page-TopologyRuntimeView-O7JPR22B.js} +1 -1
  31. package/dist/{embed-page-WorkflowAutomationView-MP5B7Q2Q.js → embed-page-WorkflowAutomationView-OUXOBHXC.js} +1 -1
  32. package/dist/{embed-page-chunk-YMJGPA3F.js → embed-page-chunk-4SKSUBXL.js} +93 -102
  33. package/dist/{embed-page-chunk-B2E2XOH2.js → embed-page-chunk-5XKUKLZQ.js} +1 -1
  34. package/dist/{embed-page-chunk-UOL6CUAL.js → embed-page-chunk-6C2UZV63.js} +1 -1
  35. package/dist/{embed-page-chunk-IRP6JSSX.js → embed-page-chunk-GCDGRO6A.js} +1 -1
  36. package/dist/{embed-page-chunk-GDTBDOUE.js → embed-page-chunk-ILNGM4RN.js} +38 -38
  37. package/dist/embed-page-chunk-KFUAWYJ7.js +5 -0
  38. package/dist/{embed-page-chunk-FFO7CAYL.js → embed-page-chunk-RTVQJYET.js} +1 -1
  39. package/dist/{embed-page-chunk-QEYWJHEK.js → embed-page-chunk-TQPMRDLI.js} +1 -1
  40. package/dist/{embed-page-chunk-PAJ5NG2Z.js → embed-page-chunk-U6JBLAYD.js} +1 -1
  41. package/dist/{embed-page-chunk-RVXX5HKF.js → embed-page-chunk-ZTRCHYWV.js} +1 -1
  42. package/dist/embed-page.js +1 -1
  43. package/dist/index.d.mts +31 -6
  44. package/dist/index.d.ts +31 -6
  45. package/dist/index.js +224 -194
  46. package/dist/index.js.map +1 -1
  47. package/dist/index.mjs +26 -14
  48. package/dist/index.mjs.map +1 -1
  49. package/package.json +1 -1
  50. package/dist/AgentGovernanceWorkbench-I6S4XU3T.mjs +0 -20
  51. package/dist/chunk-EWLXRAWY.mjs.map +0 -1
  52. package/dist/chunk-LEEQPRDB.mjs.map +0 -1
  53. package/dist/chunk-WQBBDRPU.mjs.map +0 -1
  54. package/dist/embed-page-chunk-URNZX66S.js +0 -5
  55. /package/dist/{AgentDetailSideApp-KVL27KAF.mjs.map → AgentDetailSideApp-EBS7FGQS.mjs.map} +0 -0
  56. /package/dist/{AgentGovernanceWorkbench-I6S4XU3T.mjs.map → AgentGovernanceWorkbench-IHYEFXEU.mjs.map} +0 -0
  57. /package/dist/{MessageGraph-LOSAZQ2V.mjs.map → MessageGraph-CU7TPJJI.mjs.map} +0 -0
  58. /package/dist/{ReactChart-NDLIHCJJ.mjs.map → ReactChart-INAST7XW.mjs.map} +0 -0
  59. /package/dist/{SkillFlow-OVKEKBOL.mjs.map → SkillFlow-TBKF765E.mjs.map} +0 -0
  60. /package/dist/{TasksSideApp-37YKH7HV.mjs.map → TasksSideApp-IN46CQ4D.mjs.map} +0 -0
  61. /package/dist/{TeamWorkspace-EAFZU3KS.mjs.map → TeamWorkspace-IH6F5QYO.mjs.map} +0 -0
  62. /package/dist/{TopologyRuntimeView-53OCKDYA.mjs.map → TopologyRuntimeView-LR3YQQIU.mjs.map} +0 -0
  63. /package/dist/{WorkflowAutomationView-R4EHXT7I.mjs.map → WorkflowAutomationView-GWBROX7L.mjs.map} +0 -0
  64. /package/dist/{chunk-SLXJAOF2.mjs.map → chunk-4PV75HKR.mjs.map} +0 -0
  65. /package/dist/{chunk-YYP5ASCR.mjs.map → chunk-EOBSSJ2W.mjs.map} +0 -0
  66. /package/dist/{chunk-NHD2XFH4.mjs.map → chunk-K7WBURGK.mjs.map} +0 -0
  67. /package/dist/{chunk-AMIVRDYB.mjs.map → chunk-MFAPAXZ2.mjs.map} +0 -0
  68. /package/dist/{chunk-OT7IZRSM.mjs.map → chunk-O7PTPMW2.mjs.map} +0 -0
  69. /package/dist/{chunk-N4C7TX7T.mjs.map → chunk-R4XGQTDJ.mjs.map} +0 -0
  70. /package/dist/{chunk-FKK4AXDU.mjs.map → chunk-YRPBTDOU.mjs.map} +0 -0
@@ -1 +1 @@
1
- import{Ka as n}from"./embed-page-chunk-YMJGPA3F.js";import{k as i,l as p,p as s}from"./embed-page-chunk-URNZX66S.js";import{a as d}from"./embed-page-chunk-MB65DZAX.js";import{e as a}from"./embed-page-chunk-6Y3UYJ6Z.js";var e=a(d()),P=({defaultWorkspaceId:t,defaultProjectId:o,children:r})=>{let c=p("__GLOBAL__");return(0,e.jsx)(n,{workspaceId:t,projectId:o,client:c,children:r})},f=({children:t,defaultProjectId:o,defaultWorkspaceId:r})=>{let{config:{baseURL:c}}=s();return(0,e.jsx)(i,{config:{baseURL:c,apiKey:"",assistantId:"__GLOBAL__",transport:"sse"},children:(0,e.jsx)(P,{defaultWorkspaceId:r,defaultProjectId:o,children:t})})},I=f;export{f as a,I as b};
1
+ import{Ka as n}from"./embed-page-chunk-4SKSUBXL.js";import{k as i,l as p,p as s}from"./embed-page-chunk-KFUAWYJ7.js";import{a as d}from"./embed-page-chunk-MB65DZAX.js";import{e as a}from"./embed-page-chunk-6Y3UYJ6Z.js";var e=a(d()),P=({defaultWorkspaceId:t,defaultProjectId:o,children:r})=>{let c=p("__GLOBAL__");return(0,e.jsx)(n,{workspaceId:t,projectId:o,client:c,children:r})},f=({children:t,defaultProjectId:o,defaultWorkspaceId:r})=>{let{config:{baseURL:c}}=s();return(0,e.jsx)(i,{config:{baseURL:c,apiKey:"",assistantId:"__GLOBAL__",transport:"sse"},children:(0,e.jsx)(P,{defaultWorkspaceId:r,defaultProjectId:o,children:t})})},I=f;export{f as a,I as b};
@@ -1,4 +1,4 @@
1
- import{b as cn,c as sn,d as _n}from"./embed-page-chunk-KEL6XU6R.js";import{a as ln,b as be,e as Ae,f as vn,h as Cn,i as kn}from"./embed-page-chunk-AC6X2XRH.js";import{A as Me,Aa as wn,Da as Tn,O as xn,Va as on,Z as Sn,ba as bn,ra as An,t as Re,v as mn,y as yn,z as Oe}from"./embed-page-chunk-YMJGPA3F.js";import{a as Xe}from"./embed-page-chunk-MB65DZAX.js";import{Ia as se,La as Ke,Z as fn,aa as ve,ba as dn,fa as gn,va as hn}from"./embed-page-chunk-O4QK5LWZ.js";import{a as or}from"./embed-page-chunk-4BKXE5ON.js";import{e as Le}from"./embed-page-chunk-6Y3UYJ6Z.js";var te=Le(or());var _=Le(Xe());if(typeof document<"u"){let p="workflow-node-spin-keyframes";if(!document.getElementById(p)){let o=document.createElement("style");o.id=p,o.textContent="@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }",document.head.appendChild(o)}}var{Text:ue}=Ke,Ve={opacity:0},Fe={running:{color:"#1677ff",icon:(0,_.jsx)(bn,{size:14,style:{animation:"spin 1s linear infinite"}})},completed:{color:"#52c41a",icon:(0,_.jsx)(Re,{size:14})},failed:{color:"#ff4d4f",icon:(0,_.jsx)(Oe,{size:14})},interrupted:{color:"#faad14",icon:(0,_.jsx)(mn,{size:14})},skipped:{color:"#8c8c8c",icon:(0,_.jsx)(Me,{size:14})}},En={running:"This step is currently executing",completed:"This step completed successfully",failed:"This step encountered an error",interrupted:"This step is waiting for human input",skipped:"This step was skipped (condition not met)"},In={color:"#d9d9d9",icon:(0,_.jsx)(Me,{size:14})},Nn={agent:{color:"#6366f1",bg:"#EEF2FF",border:"#6366f1"},map:{color:"#10b981",bg:"#ECFDF5",border:"#10b981"},terminal:{color:"#64748b",bg:"#F8FAFC",border:"#94a3b8"}},Ln={success:{color:"#22c55e",bg:"#F0FDF4",label:"Success"},failed:{color:"#ef4444",bg:"#FEF2F2",label:"Failed"},__default:{color:"#94a3b8",bg:"#F8FAFC",label:"Stop"}};function lr(p){return(p||"?").split(/[\s_-]+/).filter(Boolean).map(o=>o[0]).join("").toUpperCase().slice(0,2)}function un({schema:p}){let o=p;if(!o||typeof o!="object")return(0,_.jsx)(ue,{type:"secondary",style:{fontSize:11},children:"No schema defined"});let d=o.properties,S=o.required||[],b=o.items,O=l=>l==="string"?"green":l==="number"||l==="integer"?"orange":l==="boolean"?"purple":l==="array"?"cyan":l==="object"?"blue":"default",a=l=>{let u=l.type;if(u==="array"&&l.items){let c=l.items.type;return c?`Array<${c}>`:"Array"}return u||"any"};return(0,_.jsxs)("div",{style:{maxWidth:340,maxHeight:360,overflow:"auto",fontSize:12},children:[d&&(0,_.jsxs)("div",{children:[(0,_.jsx)(ue,{type:"secondary",style:{fontSize:10,textTransform:"uppercase",letterSpacing:.5,display:"block",marginBottom:6},children:"Properties"}),Object.entries(d).map(([l,u])=>{let c=S.includes(l),h=u.description,r=a(u),s=u.properties,w=u.items,I=!!(s||w);return(0,_.jsx)(ve,{title:I?(0,_.jsx)(un,{schema:I?s?u:w:void 0}):h||void 0,placement:"left",overlayStyle:{maxWidth:360},children:(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"3px 6px",borderRadius:4,marginBottom:2,background:c?"rgba(99,102,241,0.04)":"transparent",cursor:I?"pointer":"default"},children:[(0,_.jsx)(ue,{style:{fontSize:11,fontWeight:c?600:400,fontFamily:"monospace"},children:l}),c&&(0,_.jsx)("span",{style:{color:"#ef4444",fontSize:9},children:"*"}),h&&!I&&(0,_.jsx)(ue,{type:"secondary",style:{fontSize:10,flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h}),(0,_.jsx)(se,{color:O(r),style:{margin:0,fontSize:9,padding:"0 4px",lineHeight:"16px",marginLeft:"auto"},children:r})]})},l)})]}),!d&&b&&(0,_.jsxs)("div",{children:[(0,_.jsx)(ue,{type:"secondary",style:{fontSize:10,textTransform:"uppercase",letterSpacing:.5,display:"block",marginBottom:4},children:"Items"}),(0,_.jsx)(un,{schema:b})]})]})}var Rn=72,cr=3,sr=({data:p})=>{if(!p)return null;let{nodeType:o,name:d,description:S,ref:b,refAgentName:O,refAgentType:a,refDeleted:l,outputKey:u,nodeSchema:c,config:h,status:r,source:s,innerRef:w,inputTemplate:I,ask:B,condition:X,runState:P,pending:L}=p,z=Nn[o]||Nn.agent,k=Ln[r||""]||Ln.__default,j=P?Fe[P.status]||Fe.running:null,M=j?.color,Y=j?.icon,q=r==="success"?(0,_.jsx)(Re,{size:14,color:"#22c55e"}):r==="failed"?(0,_.jsx)(Oe,{size:14,color:"#ef4444"}):(0,_.jsx)(Me,{size:14,color:"#94a3b8"}),ne=r==="success"?(0,_.jsx)(Re,{size:32,color:k.color}):r==="failed"?(0,_.jsx)(Oe,{size:32,color:k.color}):(0,_.jsx)(yn,{size:32,color:k.color}),de=h?.title,ie=h?.maxRetries,oe=h?.timeout,J=h?.batchSize,le=h?.maxConcurrency,V=h?.innerConcurrency,G=P?.selected,U=!!P||L;function E($){return $==null?"-":$<1e3?`${$}ms`:`${($/1e3).toFixed(1)}s`}if(o==="terminal"){let $=k.color,Te=k.bg,ee=k.label,ae=ne;U&&(P?($=M||$,ee=P.status,ae=(0,_.jsx)("span",{style:{fontSize:18},children:Y})):L&&($=In.color,Te="#fafafa",ee="pending",ae=(0,_.jsx)(Me,{size:18,style:{color:In.color}})));let pe=G&&M?`0 4px 16px ${M}30`:"0 2px 8px rgba(0,0,0,0.06)";return(0,_.jsxs)("div",{style:{padding:4,display:"flex",flexDirection:"column",alignItems:"center",opacity:L?.5:1},children:[(0,_.jsx)(Ae,{type:"target",position:be.Top,style:Ve}),(0,_.jsx)(ve,{title:U&&P?En[P.status]:d,children:(0,_.jsx)("div",{style:{width:Rn,height:Rn,borderRadius:"50%",background:Te,border:`${cr}px solid ${L?`${$}80`:$}`,borderStyle:L?"dashed":"solid",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:pe,transition:"all 0.2s ease",cursor:"default"},onMouseEnter:L?void 0:fe=>{fe.currentTarget.style.transform="scale(1.08)",fe.currentTarget.style.boxShadow=`0 4px 16px ${$}30`},onMouseLeave:L?void 0:fe=>{fe.currentTarget.style.transform="scale(1)",fe.currentTarget.style.boxShadow=pe},children:ae})}),(0,_.jsx)(ue,{style:{fontSize:11,color:$,marginTop:6,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.5px"},children:ee}),(0,_.jsx)(Ae,{type:"source",position:be.Bottom,style:Ve})]})}let ge=U&&M?M:z.border,ce=U&&M?M:z.color,_e=o==="agent"?(0,_.jsx)(Tn,{size:14}):o==="map"?(0,_.jsx)(An,{size:14}):lr(d),he=P?E(P.durationMs):null,Ce=G&&M?`0 4px 14px ${M}20`:"0 1px 6px rgba(0,0,0,0.08)",we=U&&M?M:z.color;return(0,_.jsxs)("div",{style:{padding:4},children:[(0,_.jsx)(Ae,{type:"target",position:be.Top,style:Ve}),(0,_.jsxs)("div",{style:{width:260,minHeight:90,boxSizing:"border-box",background:"#fff",borderRadius:12,boxShadow:Ce,border:"1px solid #e5e7eb",borderLeft:`3px solid ${ge}`,borderStyle:b?"dashed":"solid",overflow:"hidden",transition:"all 0.2s ease",...L?{opacity:.5,borderStyle:"dashed"}:{}},onMouseEnter:L?void 0:$=>{$.currentTarget.style.transform="translateY(-2px)",$.currentTarget.style.boxShadow=`0 4px 12px ${we}20`},onMouseLeave:L?void 0:$=>{$.currentTarget.style.transform="translateY(0)",$.currentTarget.style.boxShadow=Ce},children:[(0,_.jsxs)("div",{style:{background:z.bg,padding:"6px 12px",display:"flex",alignItems:"center",gap:6,borderBottom:"1px solid #f1f5f9"},children:[(0,_.jsx)("div",{style:{width:24,height:24,borderRadius:"50%",backgroundColor:ce,color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,fontWeight:600,flexShrink:0},children:_e}),(0,_.jsx)("div",{style:{flex:1,minWidth:0},children:(0,_.jsx)(ue,{strong:!0,style:{fontSize:12,color:z.color},ellipsis:{tooltip:d},children:d})}),U&&Y&&(0,_.jsx)(ve,{title:P?En[P.status]:void 0,children:(0,_.jsx)("span",{style:{color:M,fontSize:12,display:"flex",flexShrink:0},children:Y})})]}),(0,_.jsxs)("div",{style:{padding:"10px 12px"},children:[S&&(0,_.jsx)(ue,{type:"secondary",style:{fontSize:11,display:"block",marginTop:2,lineHeight:1.4},ellipsis:{tooltip:S},children:S}),o==="map"&&s&&(0,_.jsxs)(ue,{type:"secondary",style:{fontSize:11,display:"block",marginTop:4,lineHeight:1.4,color:z.color,background:z.bg,padding:"2px 6px",borderRadius:4,maxHeight:32,overflow:"hidden"},ellipsis:{tooltip:s},children:["\u2190 ",s]}),o!=="map"&&I&&(0,_.jsx)(ue,{type:"secondary",style:{fontSize:11,display:"block",marginTop:4,lineHeight:1.4,color:z.color,background:z.bg,padding:"2px 6px",borderRadius:4,maxHeight:32,overflow:"hidden"},ellipsis:{tooltip:I},children:I}),(0,_.jsxs)("div",{style:{display:"flex",gap:4,marginTop:6,flexWrap:"wrap"},children:[!U&&o==="agent"&&b&&(0,_.jsx)(ve,{title:l?`Agent "${b}" no longer exists`:`Delegated to agent: ${O??b}`,children:(0,_.jsx)(se,{color:l?"red":"purple",style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px"},icon:(0,_.jsx)(Sn,{size:10}),children:l?`[\u5DF2\u5220\u9664] ${b}`:`\u2192 ${O??b}`})}),!U&&o==="agent"&&!b&&(0,_.jsx)(se,{color:"default",style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px"},children:"inline"}),B&&(0,_.jsx)(ve,{title:"This step requires human approval before continuing",children:(0,_.jsx)("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:20,height:20,borderRadius:"50%",background:"#fff7e6",border:"1px solid #ffd591",cursor:"default"},children:(0,_.jsx)(wn,{size:12,style:{color:"#fa8c16"}})})}),X&&(0,_.jsx)(ve,{title:`When: ${X}`,children:(0,_.jsx)("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:20,height:20,borderRadius:"50%",background:"#f0f5ff",border:"1px solid #adc6ff",cursor:"default"},children:(0,_.jsx)(xn,{size:12,style:{color:"#2f54eb"}})})}),!U&&o==="map"&&w&&(0,_.jsx)(se,{color:"purple",style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px"},children:w}),!U&&o==="map"&&I&&(0,_.jsx)(se,{color:"default",style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px",maxWidth:120},title:I,children:I.length>20?I.slice(0,18)+"\u2026":I}),!U&&o==="map"&&(J||le||V)&&(0,_.jsxs)(se,{color:"cyan",style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px"},children:[J??50,"\xD7",le??10,"\xD7",V??5]}),!U&&ie?(0,_.jsxs)(se,{style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px"},children:["\u21BB ",ie]}):null,!U&&oe?(0,_.jsxs)(se,{style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px"},children:["\u23F1 ",oe,"s"]}):null,he&&(0,_.jsx)(se,{color:P?"blue":"default",style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px"},children:he}),u&&(0,_.jsx)("span",{style:{marginLeft:"auto"}}),u&&(0,_.jsx)(dn,{trigger:"hover",placement:"right",mouseEnterDelay:.2,title:(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,_.jsx)(ue,{strong:!0,style:{fontSize:12},children:"Output"}),(0,_.jsx)(ue,{style:{fontSize:11,fontFamily:"monospace",color:"#6366f1"},children:u})]}),content:c?(0,_.jsx)(un,{schema:c}):(0,_.jsx)(ue,{type:"secondary",style:{fontSize:11},children:"No schema defined"}),children:(0,_.jsxs)(se,{style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px",flexShrink:0,cursor:"default"},children:["\u2192 ",u]})})]})]})]}),(0,_.jsx)(Ae,{type:"source",position:be.Bottom,style:Ve})]})},On=sr;var H=Le(Xe()),{Text:me}=Ke;function Mn(p){return new Date(p).toLocaleString()}function ur(p){return p.input?typeof p.input.rendered=="string"?p.input.rendered:typeof p.input.description=="string"?p.input.description:JSON.stringify(p.input,null,2):null}function ar(p){return p.output?typeof p.output.result=="string"?p.output.result:typeof p.output=="object"?JSON.stringify(p.output,null,2):String(p.output):null}function pr({step:p}){let o=ur(p),d=ar(p),S=Fe[p.status]||Fe.running,b=[{key:"io",label:"Input / Output",children:(0,H.jsxs)(H.Fragment,{children:[o&&(0,H.jsxs)("div",{style:{marginBottom:d?12:0},children:[(0,H.jsx)(me,{type:"secondary",style:{fontSize:10,textTransform:"uppercase",letterSpacing:.5},children:"Input"}),(0,H.jsx)("div",{style:{background:"rgba(0,0,0,0.02)",borderRadius:8,padding:"8px 10px",marginTop:4,maxHeight:200,overflow:"auto"},children:p.input?.description?(0,H.jsx)(on,{content:o}):(0,H.jsx)("pre",{style:{margin:0,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"monospace"},children:o})})]}),d&&(0,H.jsxs)("div",{children:[(0,H.jsx)(me,{type:"secondary",style:{fontSize:10,textTransform:"uppercase",letterSpacing:.5},children:"Output"}),(0,H.jsx)("div",{style:{background:"linear-gradient(135deg, rgba(99,102,241,0.04) 0%, rgba(99,102,241,0.01) 100%)",borderRadius:8,padding:"8px 10px",marginTop:4,maxHeight:200,overflow:"auto"},children:p.output?.result?(0,H.jsx)(on,{content:d}):(0,H.jsx)("pre",{style:{margin:0,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"monospace"},children:d})})]}),!o&&!d&&(0,H.jsx)(me,{type:"secondary",style:{fontSize:11},children:"No input/output data"})]})}];return(0,H.jsxs)("div",{style:{maxWidth:480},children:[(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,H.jsx)("span",{style:{color:S.color,fontSize:14},children:S.icon}),(0,H.jsx)(me,{strong:!0,style:{fontSize:14},children:p.stepName}),(0,H.jsx)(se,{color:"purple",style:{fontSize:11},children:p.stepType})]}),p.edgePurpose&&(0,H.jsx)("div",{style:{marginBottom:10},children:(0,H.jsxs)(me,{type:"secondary",style:{fontSize:11},children:["Purpose: ",p.edgePurpose]})}),p.errorMessage&&(0,H.jsx)("div",{style:{background:"#FEF2F2",border:"1px solid #FECACA",borderRadius:8,padding:"8px 12px",marginBottom:12,overflow:"hidden"},children:(0,H.jsx)(me,{type:"danger",style:{fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:p.errorMessage})}),(0,H.jsx)(gn,{activeKey:"io",items:b,size:"small",style:{marginBottom:-8}}),(0,H.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:12,paddingTop:8,borderTop:"1px solid #f0f0f0"},children:[(0,H.jsxs)(me,{type:"secondary",style:{fontSize:10},children:["Started: ",Mn(p.startedAt)]}),p.completedAt&&(0,H.jsxs)(me,{type:"secondary",style:{fontSize:10},children:["Ended: ",Mn(p.completedAt)]})]})]})}function De(p,o){return p.find(d=>d.stepName===o.name)??null}function Qe(p,o,d,S){let b=p.ref&&S?S.get(p.ref):void 0;return{nodeType:p.type,name:p.name,description:p.description,ref:p.ref,refAgentName:b?.name,refAgentType:b?.type,refDeleted:p.ref&&S?!b:void 0,outputKey:p.output?.key,nodeSchema:p.output?.schema,config:p.config,status:p.status,source:p.source,innerRef:p.node?.ref,inputTemplate:p.input?.template,ask:p.ask,condition:p.condition,runState:o,pending:d}}function Fn(p){let o=new Map;for(let d of p)if(d.parentGroup&&d.type!=="terminal"){let S=o.get(d.parentGroup)||[];S.push(d.id),o.set(d.parentGroup,S)}return Array.from(o.entries()).map(([d,S])=>({sourceId:d,childIds:S}))}function fr(){return(0,H.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative",pointerEvents:"none"},children:[(0,H.jsx)(Ae,{type:"target",position:be.Top,style:{opacity:0}}),(0,H.jsx)(Ae,{type:"source",position:be.Bottom,style:{opacity:0}}),(0,H.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,border:"2px dashed #a78bfa",borderRadius:12,background:"rgba(167, 139, 250, 0.04)"}}),(0,H.jsx)("div",{style:{position:"absolute",top:8,left:12,fontSize:12,fontWeight:600,color:"#7c3aed",padding:"2px 8px",background:"rgba(167, 139, 250, 0.08)",borderRadius:6,whiteSpace:"nowrap",zIndex:2},children:"Parallel"})]})}function dr(p,o){let d=p.nodes,S=p.edges,b=Fn(d),O=new Set(b.map(L=>L.sourceId)),a=new Set(b.flatMap(L=>L.childIds)),l=268,u=100,c=40;for(let L of b){let z=d.find(k=>k.id===L.sourceId);if(z){let k=L.childIds.length;z.width=k*l+(k-1)*c+40,z.height=u+100}}let h=d.filter(L=>!a.has(L.id)),r=sn(h,S,{nodeWidth:l,nodeHeight:u,ranksep:120}),s=h.find(L=>!O.has(L.id)&&L.type!=="terminal"),w=s?r.get(s.id):void 0,I=s?s.width??l:l,B=w?w.x+I/2:0;for(let L of h){if(O.has(L.id))continue;let z=r.get(L.id);if(!z)continue;let k=L.width??l;z.x=B-k/2}let X=h.filter(L=>r.has(L.id)&&!O.has(L.id)&&L.type!=="terminal").map(L=>{let z=r.get(L.id);return{id:L.id,type:"workflow",position:z,data:{...Qe(L,void 0,void 0,o)}}});for(let L of b){let z=d.find(J=>J.id===L.sourceId),k=r.get(L.sourceId);if(!z||!k)continue;let j=z.width,M=z.height,Y=L.childIds.length,q=B-j/2,ne=Y*l+(Y-1)*c,de=B-ne/2,ie=k.y+(M-u)/2;for(let J=0;J<Y;J++){let le=L.childIds[J],V=d.find(G=>G.id===le);V&&X.push({id:V.id,type:"workflow",position:{x:de+J*(l+c),y:ie},data:{...Qe(V,void 0,void 0,o),parallelGroup:!0},style:{zIndex:2}})}let oe=`group_${L.sourceId}`;X.push({id:oe,type:"groupLabel",position:{x:q,y:k.y},data:{},selectable:!1,draggable:!1,style:{zIndex:0,width:j,height:M}})}let P=[];for(let L of S){let z=cn(L);for(let k of z){let j=d.find(q=>q.id===k);if(j?.type==="terminal"&&j.name==="__end"||O.has(L.from)&&d.find(ne=>ne.id===k)?.parentGroup===L.from)continue;let M=O.has(L.from)?`group_${L.from}`:L.from,Y=O.has(k)?`group_${k}`:k;P.push({id:`${M}-${Y}`,source:M,target:Y,type:"straight",markerEnd:{type:ln.ArrowClosed}})}}return{nodes:X,edges:P}}function gr(p,o,d,S){let b=p.nodes,O=p.edges,a=Fn(b),l=new Set(a.map(k=>k.sourceId)),u=new Set(a.flatMap(k=>k.childIds)),c=268,h=100,r=40;for(let k of a){let j=b.find(M=>M.id===k.sourceId);if(j){let M=k.childIds.length;j.width=M*c+(M-1)*r+40,j.height=h+100}}let s=b.filter(k=>!u.has(k.id)),w=sn(s,O,{nodeWidth:c,nodeHeight:h,ranksep:120}),I=s.find(k=>!l.has(k.id)&&k.type!=="terminal"),B=I?w.get(I.id):void 0,X=I?I.width??c:c,P=B?B.x+X/2:0;for(let k of s){if(l.has(k.id))continue;let j=w.get(k.id);if(!j)continue;let M=k.width??c;j.x=P-M/2}let L=s.filter(k=>w.has(k.id)&&!l.has(k.id)).map(k=>{let j=w.get(k.id),M=De(o,k),Y=k.type==="terminal",q=M&&(!Y||M.status!=="running")?{status:M.status,stepType:M.stepType,durationMs:M.durationMs,selected:!1}:void 0;return{id:k.id,type:"workflow",position:j,style:Y?{width:c,height:h}:void 0,data:Qe(k,q,!M&&!Y,S)}});for(let k of a){let j=b.find(V=>V.id===k.sourceId),M=w.get(k.sourceId);if(!j||!M)continue;let Y=j.width,q=j.height,ne=k.childIds.length,de=ne*c+(ne-1)*r,ie=P-de/2,oe=M.y+(q-h)/2;for(let V=0;V<ne;V++){let G=k.childIds[V],U=b.find(ce=>ce.id===G);if(!U)continue;let E=De(o,U),ge=E?{status:E.status,stepType:E.stepType,durationMs:E.durationMs,selected:!1}:void 0;L.push({id:U.id,type:"workflow",position:{x:ie+V*(c+r),y:oe},data:{...Qe(U,ge,!E,S),parallelGroup:!0},style:{zIndex:2}})}let J=P-Y/2,le=`group_${k.sourceId}`;L.push({id:le,type:"groupLabel",position:{x:J,y:M.y},data:{},selectable:!1,draggable:!1,style:{zIndex:0,width:Y,height:q}})}let z=[];for(let k of O){let j=cn(k);for(let M of j){if(l.has(k.from)&&b.find(E=>E.id===M)?.parentGroup===k.from)continue;let Y=l.has(k.from)?`group_${k.from}`:k.from,q=l.has(M)?`group_${M}`:M,ne=b.find(U=>U.id===k.from),ie=(ne?De(o,ne):void 0)!==void 0,oe=b.find(U=>U.id===M),le=(oe?De(o,oe):void 0)!==void 0,V=ie&&le,G=V?"#6366f1":"#d9d9d9";z.push({id:`${Y}-${q}`,source:Y,target:q,type:"straight",animated:V,style:V?{stroke:G,strokeWidth:2}:{stroke:G,strokeWidth:2,strokeDasharray:"6 4",opacity:.25},markerEnd:{type:ln.ArrowClosed,color:G,width:20,height:20}})}}return{nodes:L,edges:z}}var hr=({dsl:p,steps:o,assistantId:d,agentNameMap:S,onNodeClick:b,height:O="100%"})=>{let a=!!o,l=(0,te.useMemo)(()=>({workflow:On,groupLabel:fr}),[]),{nodes:u,edges:c}=(0,te.useMemo)(()=>a?gr(p,o,void 0,S):dr(p,S),[p,o,a,S]),[h,r,s]=Cn(u),[w,I,B]=kn(c),[X,P]=(0,te.useState)(null),L=(0,te.useMemo)(()=>{if(!a||!X)return null;let Y=p.nodes.find(q=>q.id===X);return Y?De(o,Y):null},[p.nodes,o,X,a]);(0,te.useEffect)(()=>{r(u),I(c)},[u,c,r,I]);let z=(0,te.useCallback)(()=>{r(Y=>Y.map(q=>({...q,data:{...q.data,runState:q.data.runState?{...q.data.runState,selected:!1}:void 0}})))},[r]);(0,te.useEffect)(()=>{a&&r(Y=>Y.map(q=>({...q,data:{...q.data,runState:q.data.runState?{...q.data.runState,selected:q.id===X}:void 0}})))},[X,r,a]);let k=(0,te.useCallback)((Y,q)=>{a?P(q.id):b?.(q.id)},[a,b]),j=(0,te.useCallback)(()=>{a&&(z(),P(null))},[a,z]),M=(0,te.useCallback)(()=>{z(),P(null)},[z]);return!p.nodes||p.nodes.length===0?a?(0,H.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:300},children:(0,H.jsx)(hn,{size:"large"})}):(0,H.jsx)(fn,{description:"No nodes in workflow"}):(0,H.jsx)(vn,{children:(0,H.jsx)(_n,{nodes:h,edges:w,nodeTypes:l,onNodesChange:s,onEdgesChange:B,onNodeClick:k,onPaneClick:a?j:void 0,height:O,fitView:!0,fitViewOptions:a?{padding:.3}:void 0,minZoom:a?.3:void 0,maxZoom:a?1.5:void 0,nodesDraggable:!1,nodesConnectable:a?!1:void 0,defaultEdgeOptions:a?void 0:{style:{strokeWidth:2}},backgroundGap:a?20:void 0,miniMap:a?{nodeStrokeWidth:3,pannable:!0,zoomable:!0,style:{backgroundColor:"#f5f5f5"}}:void 0,children:a&&L&&X&&(0,H.jsxs)("div",{style:{position:"absolute",right:24,top:24,width:460,maxHeight:"calc(100% - 48px)",background:"#fff",borderRadius:16,boxShadow:"0 8px 30px rgba(0,0,0,0.12)",border:"1px solid #e5e7eb",zIndex:10,overflow:"auto",padding:20},children:[(0,H.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[(0,H.jsx)(me,{type:"secondary",style:{fontSize:11,textTransform:"uppercase",letterSpacing:.5},children:"Step Detail"}),(0,H.jsx)(me,{type:"secondary",style:{fontSize:11,cursor:"pointer"},onClick:M,children:"Close"})]}),(0,H.jsx)(pr,{step:L})]})})})},Yr=hr;var mr=Object.create,Dn=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,xr=Object.getOwnPropertyNames,Sr=Object.getPrototypeOf,br=Object.prototype.hasOwnProperty,K=(p,o)=>()=>(o||(p((o={exports:{}}).exports,o),p=null),o.exports),Ar=(p,o,d,S)=>{if(o&&typeof o=="object"||typeof o=="function")for(var b=xr(o),O=0,a=b.length,l;O<a;O++)l=b[O],!br.call(p,l)&&l!==d&&Dn(p,l,{get:(u=>o[u]).bind(null,l),enumerable:!(S=yr(o,l))||S.enumerable});return p},wr=(p,o,d)=>(d=p!=null?mr(Sr(p)):{},Ar(o||!p||!p.__esModule?Dn(d,"default",{value:p,enumerable:!0}):d,p)),Pe=K(((p,o)=>{function d(u){return typeof u>"u"||u===null}function S(u){return typeof u=="object"&&u!==null}function b(u){return Array.isArray(u)?u:d(u)?[]:[u]}function O(u,c){if(c){let h=Object.keys(c);for(let r=0,s=h.length;r<s;r+=1){let w=h[r];u[w]=c[w]}}return u}function a(u,c){let h="";for(let r=0;r<c;r+=1)h+=u;return h}function l(u){return u===0&&Number.NEGATIVE_INFINITY===1/u}o.exports.isNothing=d,o.exports.isObject=S,o.exports.toArray=b,o.exports.repeat=a,o.exports.isNegativeZero=l,o.exports.extend=O})),He=K(((p,o)=>{function d(b,O){let a="",l=b.reason||"(unknown reason)";return b.mark?(b.mark.name&&(a+='in "'+b.mark.name+'" '),a+="("+(b.mark.line+1)+":"+(b.mark.column+1)+")",!O&&b.mark.snippet&&(a+=`
1
+ import{b as cn,c as sn,d as _n}from"./embed-page-chunk-KEL6XU6R.js";import{a as ln,b as be,e as Ae,f as vn,h as Cn,i as kn}from"./embed-page-chunk-AC6X2XRH.js";import{A as Me,Aa as wn,Da as Tn,O as xn,Va as on,Z as Sn,ba as bn,ra as An,t as Re,v as mn,y as yn,z as Oe}from"./embed-page-chunk-4SKSUBXL.js";import{a as Xe}from"./embed-page-chunk-MB65DZAX.js";import{Ia as se,La as Ke,Z as fn,aa as ve,ba as dn,fa as gn,va as hn}from"./embed-page-chunk-O4QK5LWZ.js";import{a as or}from"./embed-page-chunk-4BKXE5ON.js";import{e as Le}from"./embed-page-chunk-6Y3UYJ6Z.js";var te=Le(or());var _=Le(Xe());if(typeof document<"u"){let p="workflow-node-spin-keyframes";if(!document.getElementById(p)){let o=document.createElement("style");o.id=p,o.textContent="@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }",document.head.appendChild(o)}}var{Text:ue}=Ke,Ve={opacity:0},Fe={running:{color:"#1677ff",icon:(0,_.jsx)(bn,{size:14,style:{animation:"spin 1s linear infinite"}})},completed:{color:"#52c41a",icon:(0,_.jsx)(Re,{size:14})},failed:{color:"#ff4d4f",icon:(0,_.jsx)(Oe,{size:14})},interrupted:{color:"#faad14",icon:(0,_.jsx)(mn,{size:14})},skipped:{color:"#8c8c8c",icon:(0,_.jsx)(Me,{size:14})}},En={running:"This step is currently executing",completed:"This step completed successfully",failed:"This step encountered an error",interrupted:"This step is waiting for human input",skipped:"This step was skipped (condition not met)"},In={color:"#d9d9d9",icon:(0,_.jsx)(Me,{size:14})},Nn={agent:{color:"#6366f1",bg:"#EEF2FF",border:"#6366f1"},map:{color:"#10b981",bg:"#ECFDF5",border:"#10b981"},terminal:{color:"#64748b",bg:"#F8FAFC",border:"#94a3b8"}},Ln={success:{color:"#22c55e",bg:"#F0FDF4",label:"Success"},failed:{color:"#ef4444",bg:"#FEF2F2",label:"Failed"},__default:{color:"#94a3b8",bg:"#F8FAFC",label:"Stop"}};function lr(p){return(p||"?").split(/[\s_-]+/).filter(Boolean).map(o=>o[0]).join("").toUpperCase().slice(0,2)}function un({schema:p}){let o=p;if(!o||typeof o!="object")return(0,_.jsx)(ue,{type:"secondary",style:{fontSize:11},children:"No schema defined"});let d=o.properties,S=o.required||[],b=o.items,O=l=>l==="string"?"green":l==="number"||l==="integer"?"orange":l==="boolean"?"purple":l==="array"?"cyan":l==="object"?"blue":"default",a=l=>{let u=l.type;if(u==="array"&&l.items){let c=l.items.type;return c?`Array<${c}>`:"Array"}return u||"any"};return(0,_.jsxs)("div",{style:{maxWidth:340,maxHeight:360,overflow:"auto",fontSize:12},children:[d&&(0,_.jsxs)("div",{children:[(0,_.jsx)(ue,{type:"secondary",style:{fontSize:10,textTransform:"uppercase",letterSpacing:.5,display:"block",marginBottom:6},children:"Properties"}),Object.entries(d).map(([l,u])=>{let c=S.includes(l),h=u.description,r=a(u),s=u.properties,w=u.items,I=!!(s||w);return(0,_.jsx)(ve,{title:I?(0,_.jsx)(un,{schema:I?s?u:w:void 0}):h||void 0,placement:"left",overlayStyle:{maxWidth:360},children:(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"3px 6px",borderRadius:4,marginBottom:2,background:c?"rgba(99,102,241,0.04)":"transparent",cursor:I?"pointer":"default"},children:[(0,_.jsx)(ue,{style:{fontSize:11,fontWeight:c?600:400,fontFamily:"monospace"},children:l}),c&&(0,_.jsx)("span",{style:{color:"#ef4444",fontSize:9},children:"*"}),h&&!I&&(0,_.jsx)(ue,{type:"secondary",style:{fontSize:10,flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h}),(0,_.jsx)(se,{color:O(r),style:{margin:0,fontSize:9,padding:"0 4px",lineHeight:"16px",marginLeft:"auto"},children:r})]})},l)})]}),!d&&b&&(0,_.jsxs)("div",{children:[(0,_.jsx)(ue,{type:"secondary",style:{fontSize:10,textTransform:"uppercase",letterSpacing:.5,display:"block",marginBottom:4},children:"Items"}),(0,_.jsx)(un,{schema:b})]})]})}var Rn=72,cr=3,sr=({data:p})=>{if(!p)return null;let{nodeType:o,name:d,description:S,ref:b,refAgentName:O,refAgentType:a,refDeleted:l,outputKey:u,nodeSchema:c,config:h,status:r,source:s,innerRef:w,inputTemplate:I,ask:B,condition:X,runState:P,pending:L}=p,z=Nn[o]||Nn.agent,k=Ln[r||""]||Ln.__default,j=P?Fe[P.status]||Fe.running:null,M=j?.color,Y=j?.icon,q=r==="success"?(0,_.jsx)(Re,{size:14,color:"#22c55e"}):r==="failed"?(0,_.jsx)(Oe,{size:14,color:"#ef4444"}):(0,_.jsx)(Me,{size:14,color:"#94a3b8"}),ne=r==="success"?(0,_.jsx)(Re,{size:32,color:k.color}):r==="failed"?(0,_.jsx)(Oe,{size:32,color:k.color}):(0,_.jsx)(yn,{size:32,color:k.color}),de=h?.title,ie=h?.maxRetries,oe=h?.timeout,J=h?.batchSize,le=h?.maxConcurrency,V=h?.innerConcurrency,G=P?.selected,U=!!P||L;function E($){return $==null?"-":$<1e3?`${$}ms`:`${($/1e3).toFixed(1)}s`}if(o==="terminal"){let $=k.color,Te=k.bg,ee=k.label,ae=ne;U&&(P?($=M||$,ee=P.status,ae=(0,_.jsx)("span",{style:{fontSize:18},children:Y})):L&&($=In.color,Te="#fafafa",ee="pending",ae=(0,_.jsx)(Me,{size:18,style:{color:In.color}})));let pe=G&&M?`0 4px 16px ${M}30`:"0 2px 8px rgba(0,0,0,0.06)";return(0,_.jsxs)("div",{style:{padding:4,display:"flex",flexDirection:"column",alignItems:"center",opacity:L?.5:1},children:[(0,_.jsx)(Ae,{type:"target",position:be.Top,style:Ve}),(0,_.jsx)(ve,{title:U&&P?En[P.status]:d,children:(0,_.jsx)("div",{style:{width:Rn,height:Rn,borderRadius:"50%",background:Te,border:`${cr}px solid ${L?`${$}80`:$}`,borderStyle:L?"dashed":"solid",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:pe,transition:"all 0.2s ease",cursor:"default"},onMouseEnter:L?void 0:fe=>{fe.currentTarget.style.transform="scale(1.08)",fe.currentTarget.style.boxShadow=`0 4px 16px ${$}30`},onMouseLeave:L?void 0:fe=>{fe.currentTarget.style.transform="scale(1)",fe.currentTarget.style.boxShadow=pe},children:ae})}),(0,_.jsx)(ue,{style:{fontSize:11,color:$,marginTop:6,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.5px"},children:ee}),(0,_.jsx)(Ae,{type:"source",position:be.Bottom,style:Ve})]})}let ge=U&&M?M:z.border,ce=U&&M?M:z.color,_e=o==="agent"?(0,_.jsx)(Tn,{size:14}):o==="map"?(0,_.jsx)(An,{size:14}):lr(d),he=P?E(P.durationMs):null,Ce=G&&M?`0 4px 14px ${M}20`:"0 1px 6px rgba(0,0,0,0.08)",we=U&&M?M:z.color;return(0,_.jsxs)("div",{style:{padding:4},children:[(0,_.jsx)(Ae,{type:"target",position:be.Top,style:Ve}),(0,_.jsxs)("div",{style:{width:260,minHeight:90,boxSizing:"border-box",background:"#fff",borderRadius:12,boxShadow:Ce,border:"1px solid #e5e7eb",borderLeft:`3px solid ${ge}`,borderStyle:b?"dashed":"solid",overflow:"hidden",transition:"all 0.2s ease",...L?{opacity:.5,borderStyle:"dashed"}:{}},onMouseEnter:L?void 0:$=>{$.currentTarget.style.transform="translateY(-2px)",$.currentTarget.style.boxShadow=`0 4px 12px ${we}20`},onMouseLeave:L?void 0:$=>{$.currentTarget.style.transform="translateY(0)",$.currentTarget.style.boxShadow=Ce},children:[(0,_.jsxs)("div",{style:{background:z.bg,padding:"6px 12px",display:"flex",alignItems:"center",gap:6,borderBottom:"1px solid #f1f5f9"},children:[(0,_.jsx)("div",{style:{width:24,height:24,borderRadius:"50%",backgroundColor:ce,color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,fontWeight:600,flexShrink:0},children:_e}),(0,_.jsx)("div",{style:{flex:1,minWidth:0},children:(0,_.jsx)(ue,{strong:!0,style:{fontSize:12,color:z.color},ellipsis:{tooltip:d},children:d})}),U&&Y&&(0,_.jsx)(ve,{title:P?En[P.status]:void 0,children:(0,_.jsx)("span",{style:{color:M,fontSize:12,display:"flex",flexShrink:0},children:Y})})]}),(0,_.jsxs)("div",{style:{padding:"10px 12px"},children:[S&&(0,_.jsx)(ue,{type:"secondary",style:{fontSize:11,display:"block",marginTop:2,lineHeight:1.4},ellipsis:{tooltip:S},children:S}),o==="map"&&s&&(0,_.jsxs)(ue,{type:"secondary",style:{fontSize:11,display:"block",marginTop:4,lineHeight:1.4,color:z.color,background:z.bg,padding:"2px 6px",borderRadius:4,maxHeight:32,overflow:"hidden"},ellipsis:{tooltip:s},children:["\u2190 ",s]}),o!=="map"&&I&&(0,_.jsx)(ue,{type:"secondary",style:{fontSize:11,display:"block",marginTop:4,lineHeight:1.4,color:z.color,background:z.bg,padding:"2px 6px",borderRadius:4,maxHeight:32,overflow:"hidden"},ellipsis:{tooltip:I},children:I}),(0,_.jsxs)("div",{style:{display:"flex",gap:4,marginTop:6,flexWrap:"wrap"},children:[!U&&o==="agent"&&b&&(0,_.jsx)(ve,{title:l?`Agent "${b}" no longer exists`:`Delegated to agent: ${O??b}`,children:(0,_.jsx)(se,{color:l?"red":"purple",style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px"},icon:(0,_.jsx)(Sn,{size:10}),children:l?`[\u5DF2\u5220\u9664] ${b}`:`\u2192 ${O??b}`})}),!U&&o==="agent"&&!b&&(0,_.jsx)(se,{color:"default",style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px"},children:"inline"}),B&&(0,_.jsx)(ve,{title:"This step requires human approval before continuing",children:(0,_.jsx)("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:20,height:20,borderRadius:"50%",background:"#fff7e6",border:"1px solid #ffd591",cursor:"default"},children:(0,_.jsx)(wn,{size:12,style:{color:"#fa8c16"}})})}),X&&(0,_.jsx)(ve,{title:`When: ${X}`,children:(0,_.jsx)("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:20,height:20,borderRadius:"50%",background:"#f0f5ff",border:"1px solid #adc6ff",cursor:"default"},children:(0,_.jsx)(xn,{size:12,style:{color:"#2f54eb"}})})}),!U&&o==="map"&&w&&(0,_.jsx)(se,{color:"purple",style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px"},children:w}),!U&&o==="map"&&I&&(0,_.jsx)(se,{color:"default",style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px",maxWidth:120},title:I,children:I.length>20?I.slice(0,18)+"\u2026":I}),!U&&o==="map"&&(J||le||V)&&(0,_.jsxs)(se,{color:"cyan",style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px"},children:[J??50,"\xD7",le??10,"\xD7",V??5]}),!U&&ie?(0,_.jsxs)(se,{style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px"},children:["\u21BB ",ie]}):null,!U&&oe?(0,_.jsxs)(se,{style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px"},children:["\u23F1 ",oe,"s"]}):null,he&&(0,_.jsx)(se,{color:P?"blue":"default",style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px"},children:he}),u&&(0,_.jsx)("span",{style:{marginLeft:"auto"}}),u&&(0,_.jsx)(dn,{trigger:"hover",placement:"right",mouseEnterDelay:.2,title:(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,_.jsx)(ue,{strong:!0,style:{fontSize:12},children:"Output"}),(0,_.jsx)(ue,{style:{fontSize:11,fontFamily:"monospace",color:"#6366f1"},children:u})]}),content:c?(0,_.jsx)(un,{schema:c}):(0,_.jsx)(ue,{type:"secondary",style:{fontSize:11},children:"No schema defined"}),children:(0,_.jsxs)(se,{style:{margin:0,fontSize:10,padding:"0 5px",lineHeight:"16px",flexShrink:0,cursor:"default"},children:["\u2192 ",u]})})]})]})]}),(0,_.jsx)(Ae,{type:"source",position:be.Bottom,style:Ve})]})},On=sr;var H=Le(Xe()),{Text:me}=Ke;function Mn(p){return new Date(p).toLocaleString()}function ur(p){return p.input?typeof p.input.rendered=="string"?p.input.rendered:typeof p.input.description=="string"?p.input.description:JSON.stringify(p.input,null,2):null}function ar(p){return p.output?typeof p.output.result=="string"?p.output.result:typeof p.output=="object"?JSON.stringify(p.output,null,2):String(p.output):null}function pr({step:p}){let o=ur(p),d=ar(p),S=Fe[p.status]||Fe.running,b=[{key:"io",label:"Input / Output",children:(0,H.jsxs)(H.Fragment,{children:[o&&(0,H.jsxs)("div",{style:{marginBottom:d?12:0},children:[(0,H.jsx)(me,{type:"secondary",style:{fontSize:10,textTransform:"uppercase",letterSpacing:.5},children:"Input"}),(0,H.jsx)("div",{style:{background:"rgba(0,0,0,0.02)",borderRadius:8,padding:"8px 10px",marginTop:4,maxHeight:200,overflow:"auto"},children:p.input?.description?(0,H.jsx)(on,{content:o}):(0,H.jsx)("pre",{style:{margin:0,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"monospace"},children:o})})]}),d&&(0,H.jsxs)("div",{children:[(0,H.jsx)(me,{type:"secondary",style:{fontSize:10,textTransform:"uppercase",letterSpacing:.5},children:"Output"}),(0,H.jsx)("div",{style:{background:"linear-gradient(135deg, rgba(99,102,241,0.04) 0%, rgba(99,102,241,0.01) 100%)",borderRadius:8,padding:"8px 10px",marginTop:4,maxHeight:200,overflow:"auto"},children:p.output?.result?(0,H.jsx)(on,{content:d}):(0,H.jsx)("pre",{style:{margin:0,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:"monospace"},children:d})})]}),!o&&!d&&(0,H.jsx)(me,{type:"secondary",style:{fontSize:11},children:"No input/output data"})]})}];return(0,H.jsxs)("div",{style:{maxWidth:480},children:[(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,H.jsx)("span",{style:{color:S.color,fontSize:14},children:S.icon}),(0,H.jsx)(me,{strong:!0,style:{fontSize:14},children:p.stepName}),(0,H.jsx)(se,{color:"purple",style:{fontSize:11},children:p.stepType})]}),p.edgePurpose&&(0,H.jsx)("div",{style:{marginBottom:10},children:(0,H.jsxs)(me,{type:"secondary",style:{fontSize:11},children:["Purpose: ",p.edgePurpose]})}),p.errorMessage&&(0,H.jsx)("div",{style:{background:"#FEF2F2",border:"1px solid #FECACA",borderRadius:8,padding:"8px 12px",marginBottom:12,overflow:"hidden"},children:(0,H.jsx)(me,{type:"danger",style:{fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:p.errorMessage})}),(0,H.jsx)(gn,{activeKey:"io",items:b,size:"small",style:{marginBottom:-8}}),(0,H.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:12,paddingTop:8,borderTop:"1px solid #f0f0f0"},children:[(0,H.jsxs)(me,{type:"secondary",style:{fontSize:10},children:["Started: ",Mn(p.startedAt)]}),p.completedAt&&(0,H.jsxs)(me,{type:"secondary",style:{fontSize:10},children:["Ended: ",Mn(p.completedAt)]})]})]})}function De(p,o){return p.find(d=>d.stepName===o.name)??null}function Qe(p,o,d,S){let b=p.ref&&S?S.get(p.ref):void 0;return{nodeType:p.type,name:p.name,description:p.description,ref:p.ref,refAgentName:b?.name,refAgentType:b?.type,refDeleted:p.ref&&S?!b:void 0,outputKey:p.output?.key,nodeSchema:p.output?.schema,config:p.config,status:p.status,source:p.source,innerRef:p.node?.ref,inputTemplate:p.input?.template,ask:p.ask,condition:p.condition,runState:o,pending:d}}function Fn(p){let o=new Map;for(let d of p)if(d.parentGroup&&d.type!=="terminal"){let S=o.get(d.parentGroup)||[];S.push(d.id),o.set(d.parentGroup,S)}return Array.from(o.entries()).map(([d,S])=>({sourceId:d,childIds:S}))}function fr(){return(0,H.jsxs)("div",{style:{width:"100%",height:"100%",position:"relative",pointerEvents:"none"},children:[(0,H.jsx)(Ae,{type:"target",position:be.Top,style:{opacity:0}}),(0,H.jsx)(Ae,{type:"source",position:be.Bottom,style:{opacity:0}}),(0,H.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,border:"2px dashed #a78bfa",borderRadius:12,background:"rgba(167, 139, 250, 0.04)"}}),(0,H.jsx)("div",{style:{position:"absolute",top:8,left:12,fontSize:12,fontWeight:600,color:"#7c3aed",padding:"2px 8px",background:"rgba(167, 139, 250, 0.08)",borderRadius:6,whiteSpace:"nowrap",zIndex:2},children:"Parallel"})]})}function dr(p,o){let d=p.nodes,S=p.edges,b=Fn(d),O=new Set(b.map(L=>L.sourceId)),a=new Set(b.flatMap(L=>L.childIds)),l=268,u=100,c=40;for(let L of b){let z=d.find(k=>k.id===L.sourceId);if(z){let k=L.childIds.length;z.width=k*l+(k-1)*c+40,z.height=u+100}}let h=d.filter(L=>!a.has(L.id)),r=sn(h,S,{nodeWidth:l,nodeHeight:u,ranksep:120}),s=h.find(L=>!O.has(L.id)&&L.type!=="terminal"),w=s?r.get(s.id):void 0,I=s?s.width??l:l,B=w?w.x+I/2:0;for(let L of h){if(O.has(L.id))continue;let z=r.get(L.id);if(!z)continue;let k=L.width??l;z.x=B-k/2}let X=h.filter(L=>r.has(L.id)&&!O.has(L.id)&&L.type!=="terminal").map(L=>{let z=r.get(L.id);return{id:L.id,type:"workflow",position:z,data:{...Qe(L,void 0,void 0,o)}}});for(let L of b){let z=d.find(J=>J.id===L.sourceId),k=r.get(L.sourceId);if(!z||!k)continue;let j=z.width,M=z.height,Y=L.childIds.length,q=B-j/2,ne=Y*l+(Y-1)*c,de=B-ne/2,ie=k.y+(M-u)/2;for(let J=0;J<Y;J++){let le=L.childIds[J],V=d.find(G=>G.id===le);V&&X.push({id:V.id,type:"workflow",position:{x:de+J*(l+c),y:ie},data:{...Qe(V,void 0,void 0,o),parallelGroup:!0},style:{zIndex:2}})}let oe=`group_${L.sourceId}`;X.push({id:oe,type:"groupLabel",position:{x:q,y:k.y},data:{},selectable:!1,draggable:!1,style:{zIndex:0,width:j,height:M}})}let P=[];for(let L of S){let z=cn(L);for(let k of z){let j=d.find(q=>q.id===k);if(j?.type==="terminal"&&j.name==="__end"||O.has(L.from)&&d.find(ne=>ne.id===k)?.parentGroup===L.from)continue;let M=O.has(L.from)?`group_${L.from}`:L.from,Y=O.has(k)?`group_${k}`:k;P.push({id:`${M}-${Y}`,source:M,target:Y,type:"straight",markerEnd:{type:ln.ArrowClosed}})}}return{nodes:X,edges:P}}function gr(p,o,d,S){let b=p.nodes,O=p.edges,a=Fn(b),l=new Set(a.map(k=>k.sourceId)),u=new Set(a.flatMap(k=>k.childIds)),c=268,h=100,r=40;for(let k of a){let j=b.find(M=>M.id===k.sourceId);if(j){let M=k.childIds.length;j.width=M*c+(M-1)*r+40,j.height=h+100}}let s=b.filter(k=>!u.has(k.id)),w=sn(s,O,{nodeWidth:c,nodeHeight:h,ranksep:120}),I=s.find(k=>!l.has(k.id)&&k.type!=="terminal"),B=I?w.get(I.id):void 0,X=I?I.width??c:c,P=B?B.x+X/2:0;for(let k of s){if(l.has(k.id))continue;let j=w.get(k.id);if(!j)continue;let M=k.width??c;j.x=P-M/2}let L=s.filter(k=>w.has(k.id)&&!l.has(k.id)).map(k=>{let j=w.get(k.id),M=De(o,k),Y=k.type==="terminal",q=M&&(!Y||M.status!=="running")?{status:M.status,stepType:M.stepType,durationMs:M.durationMs,selected:!1}:void 0;return{id:k.id,type:"workflow",position:j,style:Y?{width:c,height:h}:void 0,data:Qe(k,q,!M&&!Y,S)}});for(let k of a){let j=b.find(V=>V.id===k.sourceId),M=w.get(k.sourceId);if(!j||!M)continue;let Y=j.width,q=j.height,ne=k.childIds.length,de=ne*c+(ne-1)*r,ie=P-de/2,oe=M.y+(q-h)/2;for(let V=0;V<ne;V++){let G=k.childIds[V],U=b.find(ce=>ce.id===G);if(!U)continue;let E=De(o,U),ge=E?{status:E.status,stepType:E.stepType,durationMs:E.durationMs,selected:!1}:void 0;L.push({id:U.id,type:"workflow",position:{x:ie+V*(c+r),y:oe},data:{...Qe(U,ge,!E,S),parallelGroup:!0},style:{zIndex:2}})}let J=P-Y/2,le=`group_${k.sourceId}`;L.push({id:le,type:"groupLabel",position:{x:J,y:M.y},data:{},selectable:!1,draggable:!1,style:{zIndex:0,width:Y,height:q}})}let z=[];for(let k of O){let j=cn(k);for(let M of j){if(l.has(k.from)&&b.find(E=>E.id===M)?.parentGroup===k.from)continue;let Y=l.has(k.from)?`group_${k.from}`:k.from,q=l.has(M)?`group_${M}`:M,ne=b.find(U=>U.id===k.from),ie=(ne?De(o,ne):void 0)!==void 0,oe=b.find(U=>U.id===M),le=(oe?De(o,oe):void 0)!==void 0,V=ie&&le,G=V?"#6366f1":"#d9d9d9";z.push({id:`${Y}-${q}`,source:Y,target:q,type:"straight",animated:V,style:V?{stroke:G,strokeWidth:2}:{stroke:G,strokeWidth:2,strokeDasharray:"6 4",opacity:.25},markerEnd:{type:ln.ArrowClosed,color:G,width:20,height:20}})}}return{nodes:L,edges:z}}var hr=({dsl:p,steps:o,assistantId:d,agentNameMap:S,onNodeClick:b,height:O="100%"})=>{let a=!!o,l=(0,te.useMemo)(()=>({workflow:On,groupLabel:fr}),[]),{nodes:u,edges:c}=(0,te.useMemo)(()=>a?gr(p,o,void 0,S):dr(p,S),[p,o,a,S]),[h,r,s]=Cn(u),[w,I,B]=kn(c),[X,P]=(0,te.useState)(null),L=(0,te.useMemo)(()=>{if(!a||!X)return null;let Y=p.nodes.find(q=>q.id===X);return Y?De(o,Y):null},[p.nodes,o,X,a]);(0,te.useEffect)(()=>{r(u),I(c)},[u,c,r,I]);let z=(0,te.useCallback)(()=>{r(Y=>Y.map(q=>({...q,data:{...q.data,runState:q.data.runState?{...q.data.runState,selected:!1}:void 0}})))},[r]);(0,te.useEffect)(()=>{a&&r(Y=>Y.map(q=>({...q,data:{...q.data,runState:q.data.runState?{...q.data.runState,selected:q.id===X}:void 0}})))},[X,r,a]);let k=(0,te.useCallback)((Y,q)=>{a?P(q.id):b?.(q.id)},[a,b]),j=(0,te.useCallback)(()=>{a&&(z(),P(null))},[a,z]),M=(0,te.useCallback)(()=>{z(),P(null)},[z]);return!p.nodes||p.nodes.length===0?a?(0,H.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:300},children:(0,H.jsx)(hn,{size:"large"})}):(0,H.jsx)(fn,{description:"No nodes in workflow"}):(0,H.jsx)(vn,{children:(0,H.jsx)(_n,{nodes:h,edges:w,nodeTypes:l,onNodesChange:s,onEdgesChange:B,onNodeClick:k,onPaneClick:a?j:void 0,height:O,fitView:!0,fitViewOptions:a?{padding:.3}:void 0,minZoom:a?.3:void 0,maxZoom:a?1.5:void 0,nodesDraggable:!1,nodesConnectable:a?!1:void 0,defaultEdgeOptions:a?void 0:{style:{strokeWidth:2}},backgroundGap:a?20:void 0,miniMap:a?{nodeStrokeWidth:3,pannable:!0,zoomable:!0,style:{backgroundColor:"#f5f5f5"}}:void 0,children:a&&L&&X&&(0,H.jsxs)("div",{style:{position:"absolute",right:24,top:24,width:460,maxHeight:"calc(100% - 48px)",background:"#fff",borderRadius:16,boxShadow:"0 8px 30px rgba(0,0,0,0.12)",border:"1px solid #e5e7eb",zIndex:10,overflow:"auto",padding:20},children:[(0,H.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[(0,H.jsx)(me,{type:"secondary",style:{fontSize:11,textTransform:"uppercase",letterSpacing:.5},children:"Step Detail"}),(0,H.jsx)(me,{type:"secondary",style:{fontSize:11,cursor:"pointer"},onClick:M,children:"Close"})]}),(0,H.jsx)(pr,{step:L})]})})})},Yr=hr;var mr=Object.create,Dn=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,xr=Object.getOwnPropertyNames,Sr=Object.getPrototypeOf,br=Object.prototype.hasOwnProperty,K=(p,o)=>()=>(o||(p((o={exports:{}}).exports,o),p=null),o.exports),Ar=(p,o,d,S)=>{if(o&&typeof o=="object"||typeof o=="function")for(var b=xr(o),O=0,a=b.length,l;O<a;O++)l=b[O],!br.call(p,l)&&l!==d&&Dn(p,l,{get:(u=>o[u]).bind(null,l),enumerable:!(S=yr(o,l))||S.enumerable});return p},wr=(p,o,d)=>(d=p!=null?mr(Sr(p)):{},Ar(o||!p||!p.__esModule?Dn(d,"default",{value:p,enumerable:!0}):d,p)),Pe=K(((p,o)=>{function d(u){return typeof u>"u"||u===null}function S(u){return typeof u=="object"&&u!==null}function b(u){return Array.isArray(u)?u:d(u)?[]:[u]}function O(u,c){if(c){let h=Object.keys(c);for(let r=0,s=h.length;r<s;r+=1){let w=h[r];u[w]=c[w]}}return u}function a(u,c){let h="";for(let r=0;r<c;r+=1)h+=u;return h}function l(u){return u===0&&Number.NEGATIVE_INFINITY===1/u}o.exports.isNothing=d,o.exports.isObject=S,o.exports.toArray=b,o.exports.repeat=a,o.exports.isNegativeZero=l,o.exports.extend=O})),He=K(((p,o)=>{function d(b,O){let a="",l=b.reason||"(unknown reason)";return b.mark?(b.mark.name&&(a+='in "'+b.mark.name+'" '),a+="("+(b.mark.line+1)+":"+(b.mark.column+1)+")",!O&&b.mark.snippet&&(a+=`
2
2
 
3
3
  `+b.mark.snippet),l+" "+a):l}function S(b,O){Error.call(this),this.name="YAMLException",this.reason=b,this.mark=O,this.message=d(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}S.prototype=Object.create(Error.prototype),S.prototype.constructor=S,S.prototype.toString=function(O){return this.name+": "+d(this,O)},o.exports=S})),Tr=K(((p,o)=>{var d=Pe();function S(a,l,u,c,h){let r="",s="",w=Math.floor(h/2)-1;return c-l>w&&(r=" ... ",l=c-w+r.length),u-c>w&&(s=" ...",u=c+w-s.length),{str:r+a.slice(l,u).replace(/\t/g,"\u2192")+s,pos:c-l+r.length}}function b(a,l){return d.repeat(" ",l-a.length)+a}function O(a,l){if(l=Object.create(l||null),!a.buffer)return null;l.maxLength||(l.maxLength=79),typeof l.indent!="number"&&(l.indent=1),typeof l.linesBefore!="number"&&(l.linesBefore=3),typeof l.linesAfter!="number"&&(l.linesAfter=2);let u=/\r?\n|\r|\0/g,c=[0],h=[],r,s=-1;for(;r=u.exec(a.buffer);)h.push(r.index),c.push(r.index+r[0].length),a.position<=r.index&&s<0&&(s=c.length-2);s<0&&(s=c.length-1);let w="",I=Math.min(a.line+l.linesAfter,h.length).toString().length,B=l.maxLength-(l.indent+I+3);for(let P=1;P<=l.linesBefore&&!(s-P<0);P++){let L=S(a.buffer,c[s-P],h[s-P],a.position-(c[s]-c[s-P]),B);w=d.repeat(" ",l.indent)+b((a.line-P+1).toString(),I)+" | "+L.str+`
4
4
  `+w}let X=S(a.buffer,c[s],h[s],a.position,B);w+=d.repeat(" ",l.indent)+b((a.line+1).toString(),I)+" | "+X.str+`
@@ -1,4 +1,4 @@
1
- import{e as T}from"./embed-page-chunk-B2E2XOH2.js";import{Ha as L,p as O,r as P}from"./embed-page-chunk-YMJGPA3F.js";import{a as $}from"./embed-page-chunk-MB65DZAX.js";import{Fa as N,La as C,Z as v,va as S}from"./embed-page-chunk-O4QK5LWZ.js";import{a as z}from"./embed-page-chunk-4BKXE5ON.js";import{e as b}from"./embed-page-chunk-6Y3UYJ6Z.js";var u=b(z());var k={pending:"#7A7A7A",in_progress:"#3b82f6",review:"#f59e0b",failed:"#ef4444",interrupted:"#8b5cf6",completed:"#22c55e",cancelled:"#9ca3af"},w={high:{label:"High",color:"#ef4444"},medium:{label:"Medium",color:"#f59e0b"},low:{label:"Low",color:"#22c55e"}},Y=240,V=72;function F(e,o){if(e.parentId&&e.parentId!==e.id&&o.has(e.parentId))return e.parentId;for(let g of e.dependencies??[])if(g!==e.id&&o.has(g))return g}function R(e,o){let c=o?.hideCompleted??!1?e.filter(t=>!T(t.status)):e,m=new Map(c.map(t=>[t.id,t])),a=new Map;for(let t of c)a.set(t.id,F(t,m));let h=new Set;for(let t of a.keys()){if(h.has(t))continue;let f=new Map,l=t,x=0;for(;l!==void 0&&!h.has(l)&&!f.has(l);)f.set(l,x),x+=1,l=a.get(l);if(l!==void 0&&f.has(l)){let i=f.get(l);for(let[s,p]of f)p>=i&&h.add(s)}}for(let t of h)a.set(t,void 0);let r=new Map;for(let t of c)r.set(t.id,[]);for(let t of c){let f=a.get(t.id);f!==void 0&&r.get(f).push(t.id)}let d=t=>({task:m.get(t),children:(r.get(t)??[]).map(d)});return c.filter(t=>a.get(t.id)===void 0).map(t=>d(t.id))}var n=b($()),{Text:B}=C,U=16,j=3,G=L(({css:e,token:o})=>({root:e`
1
+ import{e as T}from"./embed-page-chunk-5XKUKLZQ.js";import{Ha as L,p as O,r as P}from"./embed-page-chunk-4SKSUBXL.js";import{a as $}from"./embed-page-chunk-MB65DZAX.js";import{Fa as N,La as C,Z as v,va as S}from"./embed-page-chunk-O4QK5LWZ.js";import{a as z}from"./embed-page-chunk-4BKXE5ON.js";import{e as b}from"./embed-page-chunk-6Y3UYJ6Z.js";var u=b(z());var k={pending:"#7A7A7A",in_progress:"#3b82f6",review:"#f59e0b",failed:"#ef4444",interrupted:"#8b5cf6",completed:"#22c55e",cancelled:"#9ca3af"},w={high:{label:"High",color:"#ef4444"},medium:{label:"Medium",color:"#f59e0b"},low:{label:"Low",color:"#22c55e"}},Y=240,V=72;function F(e,o){if(e.parentId&&e.parentId!==e.id&&o.has(e.parentId))return e.parentId;for(let g of e.dependencies??[])if(g!==e.id&&o.has(g))return g}function R(e,o){let c=o?.hideCompleted??!1?e.filter(t=>!T(t.status)):e,m=new Map(c.map(t=>[t.id,t])),a=new Map;for(let t of c)a.set(t.id,F(t,m));let h=new Set;for(let t of a.keys()){if(h.has(t))continue;let f=new Map,l=t,x=0;for(;l!==void 0&&!h.has(l)&&!f.has(l);)f.set(l,x),x+=1,l=a.get(l);if(l!==void 0&&f.has(l)){let i=f.get(l);for(let[s,p]of f)p>=i&&h.add(s)}}for(let t of h)a.set(t,void 0);let r=new Map;for(let t of c)r.set(t.id,[]);for(let t of c){let f=a.get(t.id);f!==void 0&&r.get(f).push(t.id)}let d=t=>({task:m.get(t),children:(r.get(t)??[]).map(d)});return c.filter(t=>a.get(t.id)===void 0).map(t=>d(t.id))}var n=b($()),{Text:B}=C,U=16,j=3,G=L(({css:e,token:o})=>({root:e`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{q as D}from"./embed-page-chunk-URNZX66S.js";import{a as M}from"./embed-page-chunk-MB65DZAX.js";import{Ja as I,La as R,W as x,oa as k,ra as n,ta as m,xa as h,ya as z,yc as B}from"./embed-page-chunk-O4QK5LWZ.js";import{a as L}from"./embed-page-chunk-4BKXE5ON.js";import{e as S}from"./embed-page-chunk-6Y3UYJ6Z.js";var f=S(L());var e=S(M()),{TextArea:A}=m,{Text:r}=R,V=({open:g,onCancel:C,onSuccess:q,skill:a})=>{let[y]=n.useForm(),[N,T]=(0,f.useState)(!1),{post:P,put:O}=D(),{token:o}=I.useToken(),c=!!a,p=[{key:"category",value:"global"}],[u,d]=(0,f.useState)(p);(0,f.useEffect)(()=>{g&&a?(y.setFieldsValue({name:a.name,description:a.description,license:a.license||"",compatibility:a.compatibility||"",content:a.content||""}),a.metadata?d(Object.entries(a.metadata).map(([t,l])=>({key:t,value:l}))):d(p)):g&&!a&&(y.resetFields(),d(p))},[g,a]);let j=async()=>{try{let t=await y.validateFields();T(!0);let l=u.length>0?u.reduce((F,v)=>(v.key&&(F[v.key]=v.value),F),{}):void 0,i={id:t.name,name:t.name,description:t.description,license:t.license||void 0,compatibility:t.compatibility||void 0,metadata:l,content:t.content||void 0,subSkills:void 0},s;c?s=await O(`/api/skills/${a.id}`,i):s=await P("/api/skills",i),s.success?(h.success(c?"Skill updated successfully":"Skill created successfully"),y.resetFields(),d(p),q?.(),C()):h.error(s.message||(c?"Failed to update skill":"Failed to create skill"))}catch(t){if(t.errorFields)return;h.error(t.message||(c?"An error occurred while updating the skill":"An error occurred while creating the skill"))}finally{T(!1)}},b=()=>{y.resetFields(),d(p),C()},w=(t,l,i)=>{let s=[...u];s[t]={...s[t],[l]:i},d(s)},E=()=>{d([...u,{key:"",value:""}])};return(0,e.jsx)(z,{title:c?"Edit Skill":"Create New Skill",open:g,onCancel:b,footer:null,width:520,destroyOnClose:!0,styles:{body:{padding:16}},children:(0,e.jsx)(n,{form:y,layout:"vertical",onFinish:j,autoComplete:"off",children:(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(r,{style:{fontSize:12,color:o.colorTextSecondary},children:"Name"}),(0,e.jsx)(n.Item,{name:"name",rules:[{required:!0,message:"Please enter skill name"},{pattern:/^[a-z0-9]+(-[a-z0-9]+)*$/,message:"Name must be lowercase alphanumeric with single hyphens (e.g., 'my-skill')"},{min:1,max:64,message:"Name must be 1-64 characters"}],style:{marginBottom:0},children:(0,e.jsx)(m,{placeholder:"e.g., data-analysis",disabled:c})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(r,{style:{fontSize:12,color:o.colorTextSecondary},children:"Description"}),(0,e.jsx)(n.Item,{name:"description",rules:[{required:!0,message:"Please enter skill description"}],style:{marginBottom:0},children:(0,e.jsx)(A,{placeholder:"Description",autoSize:{minRows:2,maxRows:4}})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(r,{style:{fontSize:12,color:o.colorTextSecondary},children:"License"}),(0,e.jsx)(n.Item,{name:"license",style:{marginBottom:0},children:(0,e.jsx)(m,{placeholder:"License"})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(r,{style:{fontSize:12,color:o.colorTextSecondary},children:"Compatibility"}),(0,e.jsx)(n.Item,{name:"compatibility",style:{marginBottom:0},children:(0,e.jsx)(m,{placeholder:"Compatibility"})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[(0,e.jsx)(r,{style:{fontSize:12,color:o.colorTextSecondary,fontWeight:500},children:"Metadata"}),(0,e.jsx)(x,{size:"small",icon:(0,e.jsx)(B,{}),onClick:E,children:"Add"})]}),(0,e.jsxs)(k,{direction:"vertical",size:8,style:{width:"100%"},children:[u.length===0&&(0,e.jsx)(r,{style:{fontSize:11,color:o.colorTextTertiary},children:"No metadata yet. Use Add to create one."}),u.map((t,l)=>(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,width:"100%"},children:[(0,e.jsxs)(r,{style:{fontSize:11,color:o.colorTextSecondary},children:["Meta ",l+1]}),(0,e.jsxs)(k,{style:{width:"100%"},size:8,wrap:!0,children:[(0,e.jsx)(m,{value:t.key,placeholder:"Key",style:{width:140},onChange:i=>w(l,"key",i.target.value)}),(0,e.jsx)(m,{value:t.value,placeholder:"Value",style:{flex:1,minWidth:200},onChange:i=>w(l,"value",i.target.value)})]})]},l))]})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(r,{style:{fontSize:12,color:o.colorTextSecondary},children:"Content"}),(0,e.jsx)(n.Item,{name:"content",style:{marginBottom:0},children:(0,e.jsx)(A,{placeholder:"Content",autoSize:{minRows:4,maxRows:8}})})]}),(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:8,marginTop:8},children:[(0,e.jsx)(x,{onClick:b,children:"Cancel"}),(0,e.jsx)(x,{type:"primary",htmlType:"submit",loading:N,children:c?"Save Changes":"Create Skill"})]})]})})})},H=V;export{H as a};
1
+ import{q as D}from"./embed-page-chunk-KFUAWYJ7.js";import{a as M}from"./embed-page-chunk-MB65DZAX.js";import{Ja as I,La as R,W as x,oa as k,ra as n,ta as m,xa as h,ya as z,yc as B}from"./embed-page-chunk-O4QK5LWZ.js";import{a as L}from"./embed-page-chunk-4BKXE5ON.js";import{e as S}from"./embed-page-chunk-6Y3UYJ6Z.js";var f=S(L());var e=S(M()),{TextArea:A}=m,{Text:r}=R,V=({open:g,onCancel:C,onSuccess:q,skill:a})=>{let[y]=n.useForm(),[N,T]=(0,f.useState)(!1),{post:P,put:O}=D(),{token:o}=I.useToken(),c=!!a,p=[{key:"category",value:"global"}],[u,d]=(0,f.useState)(p);(0,f.useEffect)(()=>{g&&a?(y.setFieldsValue({name:a.name,description:a.description,license:a.license||"",compatibility:a.compatibility||"",content:a.content||""}),a.metadata?d(Object.entries(a.metadata).map(([t,l])=>({key:t,value:l}))):d(p)):g&&!a&&(y.resetFields(),d(p))},[g,a]);let j=async()=>{try{let t=await y.validateFields();T(!0);let l=u.length>0?u.reduce((F,v)=>(v.key&&(F[v.key]=v.value),F),{}):void 0,i={id:t.name,name:t.name,description:t.description,license:t.license||void 0,compatibility:t.compatibility||void 0,metadata:l,content:t.content||void 0,subSkills:void 0},s;c?s=await O(`/api/skills/${a.id}`,i):s=await P("/api/skills",i),s.success?(h.success(c?"Skill updated successfully":"Skill created successfully"),y.resetFields(),d(p),q?.(),C()):h.error(s.message||(c?"Failed to update skill":"Failed to create skill"))}catch(t){if(t.errorFields)return;h.error(t.message||(c?"An error occurred while updating the skill":"An error occurred while creating the skill"))}finally{T(!1)}},b=()=>{y.resetFields(),d(p),C()},w=(t,l,i)=>{let s=[...u];s[t]={...s[t],[l]:i},d(s)},E=()=>{d([...u,{key:"",value:""}])};return(0,e.jsx)(z,{title:c?"Edit Skill":"Create New Skill",open:g,onCancel:b,footer:null,width:520,destroyOnClose:!0,styles:{body:{padding:16}},children:(0,e.jsx)(n,{form:y,layout:"vertical",onFinish:j,autoComplete:"off",children:(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(r,{style:{fontSize:12,color:o.colorTextSecondary},children:"Name"}),(0,e.jsx)(n.Item,{name:"name",rules:[{required:!0,message:"Please enter skill name"},{pattern:/^[a-z0-9]+(-[a-z0-9]+)*$/,message:"Name must be lowercase alphanumeric with single hyphens (e.g., 'my-skill')"},{min:1,max:64,message:"Name must be 1-64 characters"}],style:{marginBottom:0},children:(0,e.jsx)(m,{placeholder:"e.g., data-analysis",disabled:c})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(r,{style:{fontSize:12,color:o.colorTextSecondary},children:"Description"}),(0,e.jsx)(n.Item,{name:"description",rules:[{required:!0,message:"Please enter skill description"}],style:{marginBottom:0},children:(0,e.jsx)(A,{placeholder:"Description",autoSize:{minRows:2,maxRows:4}})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(r,{style:{fontSize:12,color:o.colorTextSecondary},children:"License"}),(0,e.jsx)(n.Item,{name:"license",style:{marginBottom:0},children:(0,e.jsx)(m,{placeholder:"License"})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(r,{style:{fontSize:12,color:o.colorTextSecondary},children:"Compatibility"}),(0,e.jsx)(n.Item,{name:"compatibility",style:{marginBottom:0},children:(0,e.jsx)(m,{placeholder:"Compatibility"})})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[(0,e.jsx)(r,{style:{fontSize:12,color:o.colorTextSecondary,fontWeight:500},children:"Metadata"}),(0,e.jsx)(x,{size:"small",icon:(0,e.jsx)(B,{}),onClick:E,children:"Add"})]}),(0,e.jsxs)(k,{direction:"vertical",size:8,style:{width:"100%"},children:[u.length===0&&(0,e.jsx)(r,{style:{fontSize:11,color:o.colorTextTertiary},children:"No metadata yet. Use Add to create one."}),u.map((t,l)=>(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,width:"100%"},children:[(0,e.jsxs)(r,{style:{fontSize:11,color:o.colorTextSecondary},children:["Meta ",l+1]}),(0,e.jsxs)(k,{style:{width:"100%"},size:8,wrap:!0,children:[(0,e.jsx)(m,{value:t.key,placeholder:"Key",style:{width:140},onChange:i=>w(l,"key",i.target.value)}),(0,e.jsx)(m,{value:t.value,placeholder:"Value",style:{flex:1,minWidth:200},onChange:i=>w(l,"value",i.target.value)})]})]},l))]})]}),(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,e.jsx)(r,{style:{fontSize:12,color:o.colorTextSecondary},children:"Content"}),(0,e.jsx)(n.Item,{name:"content",style:{marginBottom:0},children:(0,e.jsx)(A,{placeholder:"Content",autoSize:{minRows:4,maxRows:8}})})]}),(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:8,marginTop:8},children:[(0,e.jsx)(x,{onClick:b,children:"Cancel"}),(0,e.jsx)(x,{type:"primary",htmlType:"submit",loading:N,children:c?"Save Changes":"Create Skill"})]})]})})})},H=V;export{H as a};
@@ -1,4 +1,4 @@
1
- import{h as b}from"./embed-page-chunk-GDTBDOUE.js";import"./embed-page-chunk-B2E2XOH2.js";import"./embed-page-chunk-RVXX5HKF.js";import"./embed-page-chunk-FFO7CAYL.js";import"./embed-page-chunk-YMJGPA3F.js";import"./embed-page-chunk-URNZX66S.js";import{a as c}from"./embed-page-chunk-MB65DZAX.js";import"./embed-page-chunk-VW3NF5NT.js";import"./embed-page-chunk-5JDQ456X.js";import"./embed-page-chunk-Z7USDLHI.js";import{a as u}from"./embed-page-chunk-O4QK5LWZ.js";import"./embed-page-chunk-4BKXE5ON.js";import"./embed-page-chunk-IX4WLWCY.js";import"./embed-page-chunk-EUOOO2LS.js";import{b as k,e as s}from"./embed-page-chunk-6Y3UYJ6Z.js";var f=k(l=>{"use strict";var g=u();l.createRoot=g.createRoot,l.hydrateRoot=g.hydrateRoot;var F});var R=s(f()),v=s(u());var E="axiom-web-app-embed";var y=["axiom:hello","axiom:identity","axiom:send"];function h(e,t){return{source:E,version:1,type:e,payload:t}}function x(e,t){if(typeof e!="object"||e===null)return null;let n=e;return n.source!==E||n.version!==1||typeof n.type!="string"||!t.includes(n.type)?null:{type:n.type,payload:n.payload}}var p=s(c()),S=/^[A-Za-z0-9._:@-]{1,128}$/,D="Open this chat from the host page embed to start chatting.",T="axiom-embed-root",w="axiom-embed-style",_=32768,L=`
1
+ import{h as b}from"./embed-page-chunk-ILNGM4RN.js";import"./embed-page-chunk-5XKUKLZQ.js";import"./embed-page-chunk-ZTRCHYWV.js";import"./embed-page-chunk-RTVQJYET.js";import"./embed-page-chunk-4SKSUBXL.js";import"./embed-page-chunk-KFUAWYJ7.js";import{a as c}from"./embed-page-chunk-MB65DZAX.js";import"./embed-page-chunk-VW3NF5NT.js";import"./embed-page-chunk-5JDQ456X.js";import"./embed-page-chunk-Z7USDLHI.js";import{a as u}from"./embed-page-chunk-O4QK5LWZ.js";import"./embed-page-chunk-4BKXE5ON.js";import"./embed-page-chunk-IX4WLWCY.js";import"./embed-page-chunk-EUOOO2LS.js";import{b as k,e as s}from"./embed-page-chunk-6Y3UYJ6Z.js";var f=k(l=>{"use strict";var g=u();l.createRoot=g.createRoot,l.hydrateRoot=g.hydrateRoot;var F});var R=s(f()),v=s(u());var E="axiom-web-app-embed";var y=["axiom:hello","axiom:identity","axiom:send"];function h(e,t){return{source:E,version:1,type:e,payload:t}}function x(e,t){if(typeof e!="object"||e===null)return null;let n=e;return n.source!==E||n.version!==1||typeof n.type!="string"||!t.includes(n.type)?null:{type:n.type,payload:n.payload}}var p=s(c()),S=/^[A-Za-z0-9._:@-]{1,128}$/,D="Open this chat from the host page embed to start chatting.",T="axiom-embed-root",w="axiom-embed-style",_=32768,L=`
2
2
  html, body, #${T} { height: 100%; margin: 0; }
3
3
  .axiom-embed-fill { height: 100% !important; min-height: 0 !important; }
4
4
  .axiom-embed-card { display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; color: #64748b; padding: 24px; box-sizing: border-box; text-align: center; }
package/dist/index.d.mts CHANGED
@@ -1578,10 +1578,10 @@ interface AuthProviderProps {
1578
1578
  *
1579
1579
  * @description
1580
1580
  * Manages the full authentication lifecycle including:
1581
- * - **Login / Register**: Sends credentials to the gateway API and stores the returned user, tenants, and token in `sessionStorage`.
1582
- * - **Session restoration**: On mount, reads previously stored user data from `sessionStorage` and also refreshes the tenant list to catch any admin-side role assignments.
1581
+ * - **Login / Register**: Sends credentials to the gateway API and stores the returned user, tenants, and token in the auth storage (persistent `localStorage` in an installed standalone PWA, `sessionStorage` otherwise).
1582
+ * - **Session restoration**: On mount, reads previously stored user data from the auth storage and also refreshes the tenant list to catch any admin-side role assignments.
1583
1583
  * - **Tenant selection**: Calls the gateway API to select a tenant and stores the tenant data.
1584
- * - **Logout**: Clears all auth state and `sessionStorage`.
1584
+ * - **Logout**: Clears all auth state and both auth storages.
1585
1585
  * - **Change password**: Proxies to the gateway password change endpoint.
1586
1586
  * - **Token expiration**: Automatically logs out when the gateway returns a 401 with an expired token message.
1587
1587
  *
@@ -1668,8 +1668,12 @@ declare const ProtectedRoute: React__default.FC<ProtectedRouteProps>;
1668
1668
  * Tenant Selector
1669
1669
  *
1670
1670
  * Picker for choosing a tenant. Designed for the "many tenants" case:
1671
- * search + status filter, a two-column card grid in its own scroll region,
1672
- * and a footer that stays pinned so Confirm is always reachable.
1671
+ * search + a card grid in its own scroll region, and a footer that stays
1672
+ * pinned so Confirm is always reachable.
1673
+ *
1674
+ * The grid is one column for a handful of tenants and two columns once the
1675
+ * list grows (6+). The API is permission-managed and only returns tenants the
1676
+ * user may see, so there is no status filter.
1673
1677
  *
1674
1678
  * Renders correctly both inside a modal (the two Chat hosts) and standalone
1675
1679
  * centered on a page (apps/web), so the panel is width:100% + maxWidth rather
@@ -4527,6 +4531,27 @@ interface RoomEventsProviderProps {
4527
4531
  }
4528
4532
  declare function RoomEventsProvider({ children, workspaceId: explicitWorkspaceId }: RoomEventsProviderProps): React__default.ReactElement;
4529
4533
 
4534
+ /**
4535
+ * Auth storage selection: installed standalone PWAs keep the console session in
4536
+ * `localStorage` so closing the app does not force a re-login; every other
4537
+ * surface keeps the original `sessionStorage` lifetime (closing the tab logs out).
4538
+ */
4539
+ /** True when the page runs as an installed standalone PWA (Chromium or iOS Safari). */
4540
+ declare function isStandalonePwa(): boolean;
4541
+ /** Primary storage for auth entries: persistent in a standalone PWA, session elsewhere. */
4542
+ declare function authStorage(): Storage;
4543
+ /**
4544
+ * Reads an auth entry from the primary storage. A standalone PWA also migrates a
4545
+ * same-launch `sessionStorage` value (pre-update session) into `localStorage`.
4546
+ */
4547
+ declare function readAuthItem(key: string): string | null;
4548
+ /** Writes an auth entry to the primary storage. */
4549
+ declare function writeAuthItem(key: string, value: string): void;
4550
+ /** Removes one auth entry from both storages so logout never leaves a stale copy. */
4551
+ declare function removeAuthItem(key: string): void;
4552
+ /** Removes every known auth entry (and tenant-scoped personal-assistant keys) from both storages. */
4553
+ declare function clearAuthItems(): void;
4554
+
4530
4555
  /**
4531
4556
  * Web Push subscription for a PWA.
4532
4557
  *
@@ -5271,4 +5296,4 @@ declare const OrgsList: React__default.FC<OrgsListProps>;
5271
5296
 
5272
5297
  declare const OrgDetailPanel: React__default.FC<OrgDetailPanelProps>;
5273
5298
 
5274
- export { A2AKeyList, AgentCardStats, type AgentCardStatsData, AgentChatApp, type AgentChatAppProps, type AgentChatProps, AgentConfigGraph, AgentConversations, type AgentConversationsProps, AgentDetailView, AgentEvalPanel, AgentGovernanceWorkbench, AgentGraphView, AgentList, AgentOverview, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, type AppContextValue, type AppDefinition, AppProvider, type AppProviderProps, type AppRegistry, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, type AuthContextValue, AuthProvider, AxiomLatticeProvider, type AxiomLatticeProviderProps, type BalanceResult, CapabilityBundleForm, type CapabilityBundleFormProps, CapabilityBundleList, CapabilityOverrideDetails, type CapabilityOverrideDetailsProps, CapabilityPreviewPanel, type CapabilityPreviewPanelProps, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, ChatErrorBoundary, type ChatErrorBoundaryProps, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, CoSpaceContainer, type CoSpaceContainerProps, type CoSpaceTab, ColumnLayout, type ColumnLayoutProps, type CompletedEvalCaseSummary, type ConfigGraphNode, type ConfigNodeType, ConflictResolver, ConnectionConfigDrawerContent, ConnectionListField, ConnectionsHub, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, type CreateAssistantModalProps, type CreationMode, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, type EntityAction, EntityCard, EntityCreateTrigger, EntityListShell, EntityListView, EntityRow, EvalPanel, EvalRunResults, type EvalStreamStatus, type EvalStreamTerminal, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, ExportStep, FileExplorer, type FileExplorerProps, FilePanelToggle, FilterSelect, type FilterSelectProps, type IframeMessage, ImportStep, KeyEditorDrawer, type KeyEditorDrawerProps, KeyExposureDetail, type KeyExposureDetailProps, LatticeAgentWorkspace, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, MigrationPage, MigrationPageWrapper, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, OpenAuditLogList, type OpenAuditLogListProps, OpenGrantsPicker, type OpenGrantsPickerProps, type OpenGrantsValue, OrgDetailPanel, type OrgDetailPanelProps, type OrgItem, OrgsList, type OrgsListProps, OrgsPage, type OrgsPageProps, type PanelCard, type PendingMessage, PersonalAssistantChannelModal, PersonalAssistantPage, ProjectCapabilityPanel, type ProjectCapabilityPanelProps, type ProjectRoomBootstrap, type ProjectRoomBotActions, type ProjectRoomBotAvailability, type ProjectRoomCapabilities, ProjectRoomComposer, type ProjectRoomComposerProps, type ProjectRoomComposerReplyTarget, type ProjectRoomComposerSendInput, type ProjectRoomComposerSubmission, type ProjectRoomConnectionStatus, type ProjectRoomContextValue, type ProjectRoomEventResult, ProjectRoomFilesPanel, ProjectRoomHeader, type ProjectRoomHeaderProps, type ProjectRoomHumanCandidate, type ProjectRoomMemberActions, ProjectRoomPage, ProjectRoomProvider, type ProjectRoomProviderProps, type ProjectRoomRefreshKey, type ProjectRoomResourceValue, ProjectRoomRoster, ProjectRoomShell, type ProjectRoomShellProps, type ProjectRoomState, ProjectRoomTasksPanel, ProjectRoomTimeline, type ProjectRoomTimelineProps, type ProjectRoomUiError, ProjectScopeProvider, type ProjectScopeProviderProps, ProjectScopedChating, type ProjectScopedChatingProps, ProjectSelector, type ProjectSelectorProps, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, type RecorderError, type RecorderMode, type RecorderStatus, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, RoomChat, type RoomChatProps, type RoomEventsConnectionStatus, RoomEventsContext, type RoomEventsContextValue, RoomEventsProvider, type RoomEventsProviderProps, type RoomEventsState, type RoomItem, RoomList, type RoomListProps, type RoomNotificationPermission, type RoomNotificationsState, RoomsPage, type RoomsPageProps, RunEnvModal, type RunEnvModalProps, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, type SegmentOption, SegmentedToggle, type SegmentedToggleProps, SideAppBrowserContext, type SideAppBrowserContextValue, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, TenantBranding, type TenantBrandingData, TenantLogo, TenantSelector, type TenantSelectorProps, TenantSettingsModal, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseCapabilityBundlesResult, type UseChatOptions, type UseProjectCapabilitiesResult, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, type UseVoiceRecorderOptions, type UseWebPushOptions, UserProfile, type UserProfileProps, type UserTenantInfo, type ViewMode, type ViewModeExtension, ViewToggle, VoiceInputButton, type VoiceInputButtonProps, type VoiceRecorderState, type WebPushPermission, type WebPushState, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, WorkspaceContext, WorkspaceContextProvider, type WorkspaceContextProviderProps, type WorkspaceContextValue, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, type WorkspaceResourceUIContextProps, animation, appRegistry, applyBootstrap, applyDispatch, applyOlderMessages, applyResource, applySendResult, applyStreamFrame, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, buildAgentConfigGraphData, buildAgentGraphData, buildAgentListItems, colors, createProjectRoomState, deriveBotAvailability, deriveProjectRoomCapabilities, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, getRoundRepresentativeScore, isTrainingRound, radius, regsiterElement, shadows, spacing, summarizeCapability, toAttachmentItems, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useApp, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useCapabilityBundles, useChat, useChatUIContext, useClient, useConversationContext, useCurrentApp, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useMiddlewareTypes, useOptionalAgentThreadContext, useOptionalConversationContext, useProjectCapabilities, useProjectRoom, useRoomEvents, useRoomNotifications, useSideAppBrowser, useSideAppOpener, useTenantBranding, useTenants, useUsers, useVoiceRecorder, useWebPush, useWorkspaceContext, useWorkspaceContextOptional };
5299
+ export { A2AKeyList, AgentCardStats, type AgentCardStatsData, AgentChatApp, type AgentChatAppProps, type AgentChatProps, AgentConfigGraph, AgentConversations, type AgentConversationsProps, AgentDetailView, AgentEvalPanel, AgentGovernanceWorkbench, AgentGraphView, AgentList, AgentOverview, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, type AppContextValue, type AppDefinition, AppProvider, type AppProviderProps, type AppRegistry, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, type AuthContextValue, AuthProvider, AxiomLatticeProvider, type AxiomLatticeProviderProps, type BalanceResult, CapabilityBundleForm, type CapabilityBundleFormProps, CapabilityBundleList, CapabilityOverrideDetails, type CapabilityOverrideDetailsProps, CapabilityPreviewPanel, type CapabilityPreviewPanelProps, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, ChatErrorBoundary, type ChatErrorBoundaryProps, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, CoSpaceContainer, type CoSpaceContainerProps, type CoSpaceTab, ColumnLayout, type ColumnLayoutProps, type CompletedEvalCaseSummary, type ConfigGraphNode, type ConfigNodeType, ConflictResolver, ConnectionConfigDrawerContent, ConnectionListField, ConnectionsHub, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, type CreateAssistantModalProps, type CreationMode, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, type EntityAction, EntityCard, EntityCreateTrigger, EntityListShell, EntityListView, EntityRow, EvalPanel, EvalRunResults, type EvalStreamStatus, type EvalStreamTerminal, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, ExportStep, FileExplorer, type FileExplorerProps, FilePanelToggle, FilterSelect, type FilterSelectProps, type IframeMessage, ImportStep, KeyEditorDrawer, type KeyEditorDrawerProps, KeyExposureDetail, type KeyExposureDetailProps, LatticeAgentWorkspace, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, MigrationPage, MigrationPageWrapper, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, OpenAuditLogList, type OpenAuditLogListProps, OpenGrantsPicker, type OpenGrantsPickerProps, type OpenGrantsValue, OrgDetailPanel, type OrgDetailPanelProps, type OrgItem, OrgsList, type OrgsListProps, OrgsPage, type OrgsPageProps, type PanelCard, type PendingMessage, PersonalAssistantChannelModal, PersonalAssistantPage, ProjectCapabilityPanel, type ProjectCapabilityPanelProps, type ProjectRoomBootstrap, type ProjectRoomBotActions, type ProjectRoomBotAvailability, type ProjectRoomCapabilities, ProjectRoomComposer, type ProjectRoomComposerProps, type ProjectRoomComposerReplyTarget, type ProjectRoomComposerSendInput, type ProjectRoomComposerSubmission, type ProjectRoomConnectionStatus, type ProjectRoomContextValue, type ProjectRoomEventResult, ProjectRoomFilesPanel, ProjectRoomHeader, type ProjectRoomHeaderProps, type ProjectRoomHumanCandidate, type ProjectRoomMemberActions, ProjectRoomPage, ProjectRoomProvider, type ProjectRoomProviderProps, type ProjectRoomRefreshKey, type ProjectRoomResourceValue, ProjectRoomRoster, ProjectRoomShell, type ProjectRoomShellProps, type ProjectRoomState, ProjectRoomTasksPanel, ProjectRoomTimeline, type ProjectRoomTimelineProps, type ProjectRoomUiError, ProjectScopeProvider, type ProjectScopeProviderProps, ProjectScopedChating, type ProjectScopedChatingProps, ProjectSelector, type ProjectSelectorProps, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, type RecorderError, type RecorderMode, type RecorderStatus, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, RoomChat, type RoomChatProps, type RoomEventsConnectionStatus, RoomEventsContext, type RoomEventsContextValue, RoomEventsProvider, type RoomEventsProviderProps, type RoomEventsState, type RoomItem, RoomList, type RoomListProps, type RoomNotificationPermission, type RoomNotificationsState, RoomsPage, type RoomsPageProps, RunEnvModal, type RunEnvModalProps, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, type SegmentOption, SegmentedToggle, type SegmentedToggleProps, SideAppBrowserContext, type SideAppBrowserContextValue, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, TenantBranding, type TenantBrandingData, TenantLogo, TenantSelector, type TenantSelectorProps, TenantSettingsModal, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseCapabilityBundlesResult, type UseChatOptions, type UseProjectCapabilitiesResult, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, type UseVoiceRecorderOptions, type UseWebPushOptions, UserProfile, type UserProfileProps, type UserTenantInfo, type ViewMode, type ViewModeExtension, ViewToggle, VoiceInputButton, type VoiceInputButtonProps, type VoiceRecorderState, type WebPushPermission, type WebPushState, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, WorkspaceContext, WorkspaceContextProvider, type WorkspaceContextProviderProps, type WorkspaceContextValue, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, type WorkspaceResourceUIContextProps, animation, appRegistry, applyBootstrap, applyDispatch, applyOlderMessages, applyResource, applySendResult, applyStreamFrame, authStorage, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, buildAgentConfigGraphData, buildAgentGraphData, buildAgentListItems, clearAuthItems, colors, createProjectRoomState, deriveBotAvailability, deriveProjectRoomCapabilities, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, getRoundRepresentativeScore, isStandalonePwa, isTrainingRound, radius, readAuthItem, regsiterElement, removeAuthItem, shadows, spacing, summarizeCapability, toAttachmentItems, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useApp, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useCapabilityBundles, useChat, useChatUIContext, useClient, useConversationContext, useCurrentApp, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useMiddlewareTypes, useOptionalAgentThreadContext, useOptionalConversationContext, useProjectCapabilities, useProjectRoom, useRoomEvents, useRoomNotifications, useSideAppBrowser, useSideAppOpener, useTenantBranding, useTenants, useUsers, useVoiceRecorder, useWebPush, useWorkspaceContext, useWorkspaceContextOptional, writeAuthItem };
package/dist/index.d.ts CHANGED
@@ -1578,10 +1578,10 @@ interface AuthProviderProps {
1578
1578
  *
1579
1579
  * @description
1580
1580
  * Manages the full authentication lifecycle including:
1581
- * - **Login / Register**: Sends credentials to the gateway API and stores the returned user, tenants, and token in `sessionStorage`.
1582
- * - **Session restoration**: On mount, reads previously stored user data from `sessionStorage` and also refreshes the tenant list to catch any admin-side role assignments.
1581
+ * - **Login / Register**: Sends credentials to the gateway API and stores the returned user, tenants, and token in the auth storage (persistent `localStorage` in an installed standalone PWA, `sessionStorage` otherwise).
1582
+ * - **Session restoration**: On mount, reads previously stored user data from the auth storage and also refreshes the tenant list to catch any admin-side role assignments.
1583
1583
  * - **Tenant selection**: Calls the gateway API to select a tenant and stores the tenant data.
1584
- * - **Logout**: Clears all auth state and `sessionStorage`.
1584
+ * - **Logout**: Clears all auth state and both auth storages.
1585
1585
  * - **Change password**: Proxies to the gateway password change endpoint.
1586
1586
  * - **Token expiration**: Automatically logs out when the gateway returns a 401 with an expired token message.
1587
1587
  *
@@ -1668,8 +1668,12 @@ declare const ProtectedRoute: React__default.FC<ProtectedRouteProps>;
1668
1668
  * Tenant Selector
1669
1669
  *
1670
1670
  * Picker for choosing a tenant. Designed for the "many tenants" case:
1671
- * search + status filter, a two-column card grid in its own scroll region,
1672
- * and a footer that stays pinned so Confirm is always reachable.
1671
+ * search + a card grid in its own scroll region, and a footer that stays
1672
+ * pinned so Confirm is always reachable.
1673
+ *
1674
+ * The grid is one column for a handful of tenants and two columns once the
1675
+ * list grows (6+). The API is permission-managed and only returns tenants the
1676
+ * user may see, so there is no status filter.
1673
1677
  *
1674
1678
  * Renders correctly both inside a modal (the two Chat hosts) and standalone
1675
1679
  * centered on a page (apps/web), so the panel is width:100% + maxWidth rather
@@ -4527,6 +4531,27 @@ interface RoomEventsProviderProps {
4527
4531
  }
4528
4532
  declare function RoomEventsProvider({ children, workspaceId: explicitWorkspaceId }: RoomEventsProviderProps): React__default.ReactElement;
4529
4533
 
4534
+ /**
4535
+ * Auth storage selection: installed standalone PWAs keep the console session in
4536
+ * `localStorage` so closing the app does not force a re-login; every other
4537
+ * surface keeps the original `sessionStorage` lifetime (closing the tab logs out).
4538
+ */
4539
+ /** True when the page runs as an installed standalone PWA (Chromium or iOS Safari). */
4540
+ declare function isStandalonePwa(): boolean;
4541
+ /** Primary storage for auth entries: persistent in a standalone PWA, session elsewhere. */
4542
+ declare function authStorage(): Storage;
4543
+ /**
4544
+ * Reads an auth entry from the primary storage. A standalone PWA also migrates a
4545
+ * same-launch `sessionStorage` value (pre-update session) into `localStorage`.
4546
+ */
4547
+ declare function readAuthItem(key: string): string | null;
4548
+ /** Writes an auth entry to the primary storage. */
4549
+ declare function writeAuthItem(key: string, value: string): void;
4550
+ /** Removes one auth entry from both storages so logout never leaves a stale copy. */
4551
+ declare function removeAuthItem(key: string): void;
4552
+ /** Removes every known auth entry (and tenant-scoped personal-assistant keys) from both storages. */
4553
+ declare function clearAuthItems(): void;
4554
+
4530
4555
  /**
4531
4556
  * Web Push subscription for a PWA.
4532
4557
  *
@@ -5271,4 +5296,4 @@ declare const OrgsList: React__default.FC<OrgsListProps>;
5271
5296
 
5272
5297
  declare const OrgDetailPanel: React__default.FC<OrgDetailPanelProps>;
5273
5298
 
5274
- export { A2AKeyList, AgentCardStats, type AgentCardStatsData, AgentChatApp, type AgentChatAppProps, type AgentChatProps, AgentConfigGraph, AgentConversations, type AgentConversationsProps, AgentDetailView, AgentEvalPanel, AgentGovernanceWorkbench, AgentGraphView, AgentList, AgentOverview, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, type AppContextValue, type AppDefinition, AppProvider, type AppProviderProps, type AppRegistry, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, type AuthContextValue, AuthProvider, AxiomLatticeProvider, type AxiomLatticeProviderProps, type BalanceResult, CapabilityBundleForm, type CapabilityBundleFormProps, CapabilityBundleList, CapabilityOverrideDetails, type CapabilityOverrideDetailsProps, CapabilityPreviewPanel, type CapabilityPreviewPanelProps, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, ChatErrorBoundary, type ChatErrorBoundaryProps, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, CoSpaceContainer, type CoSpaceContainerProps, type CoSpaceTab, ColumnLayout, type ColumnLayoutProps, type CompletedEvalCaseSummary, type ConfigGraphNode, type ConfigNodeType, ConflictResolver, ConnectionConfigDrawerContent, ConnectionListField, ConnectionsHub, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, type CreateAssistantModalProps, type CreationMode, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, type EntityAction, EntityCard, EntityCreateTrigger, EntityListShell, EntityListView, EntityRow, EvalPanel, EvalRunResults, type EvalStreamStatus, type EvalStreamTerminal, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, ExportStep, FileExplorer, type FileExplorerProps, FilePanelToggle, FilterSelect, type FilterSelectProps, type IframeMessage, ImportStep, KeyEditorDrawer, type KeyEditorDrawerProps, KeyExposureDetail, type KeyExposureDetailProps, LatticeAgentWorkspace, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, MigrationPage, MigrationPageWrapper, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, OpenAuditLogList, type OpenAuditLogListProps, OpenGrantsPicker, type OpenGrantsPickerProps, type OpenGrantsValue, OrgDetailPanel, type OrgDetailPanelProps, type OrgItem, OrgsList, type OrgsListProps, OrgsPage, type OrgsPageProps, type PanelCard, type PendingMessage, PersonalAssistantChannelModal, PersonalAssistantPage, ProjectCapabilityPanel, type ProjectCapabilityPanelProps, type ProjectRoomBootstrap, type ProjectRoomBotActions, type ProjectRoomBotAvailability, type ProjectRoomCapabilities, ProjectRoomComposer, type ProjectRoomComposerProps, type ProjectRoomComposerReplyTarget, type ProjectRoomComposerSendInput, type ProjectRoomComposerSubmission, type ProjectRoomConnectionStatus, type ProjectRoomContextValue, type ProjectRoomEventResult, ProjectRoomFilesPanel, ProjectRoomHeader, type ProjectRoomHeaderProps, type ProjectRoomHumanCandidate, type ProjectRoomMemberActions, ProjectRoomPage, ProjectRoomProvider, type ProjectRoomProviderProps, type ProjectRoomRefreshKey, type ProjectRoomResourceValue, ProjectRoomRoster, ProjectRoomShell, type ProjectRoomShellProps, type ProjectRoomState, ProjectRoomTasksPanel, ProjectRoomTimeline, type ProjectRoomTimelineProps, type ProjectRoomUiError, ProjectScopeProvider, type ProjectScopeProviderProps, ProjectScopedChating, type ProjectScopedChatingProps, ProjectSelector, type ProjectSelectorProps, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, type RecorderError, type RecorderMode, type RecorderStatus, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, RoomChat, type RoomChatProps, type RoomEventsConnectionStatus, RoomEventsContext, type RoomEventsContextValue, RoomEventsProvider, type RoomEventsProviderProps, type RoomEventsState, type RoomItem, RoomList, type RoomListProps, type RoomNotificationPermission, type RoomNotificationsState, RoomsPage, type RoomsPageProps, RunEnvModal, type RunEnvModalProps, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, type SegmentOption, SegmentedToggle, type SegmentedToggleProps, SideAppBrowserContext, type SideAppBrowserContextValue, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, TenantBranding, type TenantBrandingData, TenantLogo, TenantSelector, type TenantSelectorProps, TenantSettingsModal, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseCapabilityBundlesResult, type UseChatOptions, type UseProjectCapabilitiesResult, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, type UseVoiceRecorderOptions, type UseWebPushOptions, UserProfile, type UserProfileProps, type UserTenantInfo, type ViewMode, type ViewModeExtension, ViewToggle, VoiceInputButton, type VoiceInputButtonProps, type VoiceRecorderState, type WebPushPermission, type WebPushState, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, WorkspaceContext, WorkspaceContextProvider, type WorkspaceContextProviderProps, type WorkspaceContextValue, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, type WorkspaceResourceUIContextProps, animation, appRegistry, applyBootstrap, applyDispatch, applyOlderMessages, applyResource, applySendResult, applyStreamFrame, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, buildAgentConfigGraphData, buildAgentGraphData, buildAgentListItems, colors, createProjectRoomState, deriveBotAvailability, deriveProjectRoomCapabilities, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, getRoundRepresentativeScore, isTrainingRound, radius, regsiterElement, shadows, spacing, summarizeCapability, toAttachmentItems, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useApp, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useCapabilityBundles, useChat, useChatUIContext, useClient, useConversationContext, useCurrentApp, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useMiddlewareTypes, useOptionalAgentThreadContext, useOptionalConversationContext, useProjectCapabilities, useProjectRoom, useRoomEvents, useRoomNotifications, useSideAppBrowser, useSideAppOpener, useTenantBranding, useTenants, useUsers, useVoiceRecorder, useWebPush, useWorkspaceContext, useWorkspaceContextOptional };
5299
+ export { A2AKeyList, AgentCardStats, type AgentCardStatsData, AgentChatApp, type AgentChatAppProps, type AgentChatProps, AgentConfigGraph, AgentConversations, type AgentConversationsProps, AgentDetailView, AgentEvalPanel, AgentGovernanceWorkbench, AgentGraphView, AgentList, AgentOverview, type AgentState, AgentThreadProvider, type AgentThreadProviderProps, type AppContextValue, type AppDefinition, AppProvider, type AppProviderProps, type AppRegistry, AssistantContext, AssistantContextProvider, type AssistantContextProviderProps, type AssistantContextValue, AssistantFlow, type AssistantFlowProps, AssistantNode, type AssistantNodeData, type AssistantState, type AttachFile, type AuthContextValue, AuthProvider, AxiomLatticeProvider, type AxiomLatticeProviderProps, type BalanceResult, CapabilityBundleForm, type CapabilityBundleFormProps, CapabilityBundleList, CapabilityOverrideDetails, type CapabilityOverrideDetailsProps, CapabilityPreviewPanel, type CapabilityPreviewPanelProps, ChangePasswordModal, type ChangePasswordModalProps, ChannelInstallationsDrawerContent, ChatErrorBoundary, type ChatErrorBoundaryProps, type ChatResponse, ChatSidebar, type ChatSidebarProps, type ChatState, type ChatStateWithAgent, ChatUIContext, ChatUIContextProvider, Chating, type ChatingProps, type ClientConfig, CoSpaceContainer, type CoSpaceContainerProps, type CoSpaceTab, ColumnLayout, type ColumnLayoutProps, type CompletedEvalCaseSummary, type ConfigGraphNode, type ConfigNodeType, ConflictResolver, ConnectionConfigDrawerContent, ConnectionListField, ConnectionsHub, ConversationContext, ConversationContextProvider, type ConversationContextProviderProps, type ConversationContextValue, type ConversationThread, CreateAssistantModal, type CreateAssistantModalProps, type CreationMode, DEFAULT_MENU_ITEMS, DEFAULT_MIDDLEWARE_TYPES, DEFAULT_WORKSPACE_MENU_ITEMS, type ElementMeta, type ElementProps, type EntityAction, EntityCard, EntityCreateTrigger, EntityListShell, EntityListView, EntityRow, EvalPanel, EvalRunResults, type EvalStreamStatus, type EvalStreamTerminal, EvalSuiteCardList, EvalSuiteDetail, type ExplorerFile, ExportStep, FileExplorer, type FileExplorerProps, FilePanelToggle, FilterSelect, type FilterSelectProps, type IframeMessage, ImportStep, KeyEditorDrawer, type KeyEditorDrawerProps, KeyExposureDetail, type KeyExposureDetailProps, LatticeAgentWorkspace, LatticeChat, LatticeChatShell, type LatticeChatShellConfig, LatticeChatShellContext, LatticeChatShellContextProvider, type LatticeChatShellContextProviderProps, type LatticeChatShellContextValue, type LatticeChatShellProps, LoginForm, type LoginFormProps, LoginPage, MDResponse, MDViewFormItem, MetricsConfigDrawerContent, type MiddlewareConfigDefinition, type MiddlewareConfigSchema, type MiddlewareConfigSchemaProperty, type MiddlewareToolDefinition, type MiddlewareTypeDefinition, MigrationPage, MigrationPageWrapper, type ModelConfig, type ModelInfo, ModelSelector, type ModelSelectorProps, OpenAuditLogList, type OpenAuditLogListProps, OpenGrantsPicker, type OpenGrantsPickerProps, type OpenGrantsValue, OrgDetailPanel, type OrgDetailPanelProps, type OrgItem, OrgsList, type OrgsListProps, OrgsPage, type OrgsPageProps, type PanelCard, type PendingMessage, PersonalAssistantChannelModal, PersonalAssistantPage, ProjectCapabilityPanel, type ProjectCapabilityPanelProps, type ProjectRoomBootstrap, type ProjectRoomBotActions, type ProjectRoomBotAvailability, type ProjectRoomCapabilities, ProjectRoomComposer, type ProjectRoomComposerProps, type ProjectRoomComposerReplyTarget, type ProjectRoomComposerSendInput, type ProjectRoomComposerSubmission, type ProjectRoomConnectionStatus, type ProjectRoomContextValue, type ProjectRoomEventResult, ProjectRoomFilesPanel, ProjectRoomHeader, type ProjectRoomHeaderProps, type ProjectRoomHumanCandidate, type ProjectRoomMemberActions, ProjectRoomPage, ProjectRoomProvider, type ProjectRoomProviderProps, type ProjectRoomRefreshKey, type ProjectRoomResourceValue, ProjectRoomRoster, ProjectRoomShell, type ProjectRoomShellProps, type ProjectRoomState, ProjectRoomTasksPanel, ProjectRoomTimeline, type ProjectRoomTimelineProps, type ProjectRoomUiError, ProjectScopeProvider, type ProjectScopeProviderProps, ProjectScopedChating, type ProjectScopedChatingProps, ProjectSelector, type ProjectSelectorProps, ProtectedRoute, type ProtectedRouteProps, type QuickPromptCategory, type QuickPromptItem, type RecorderError, type RecorderMode, type RecorderStatus, RegisterForm, type RegisterFormProps, type ResourceFolderConfig, RoomChat, type RoomChatProps, type RoomEventsConnectionStatus, RoomEventsContext, type RoomEventsContextValue, RoomEventsProvider, type RoomEventsProviderProps, type RoomEventsState, type RoomItem, RoomList, type RoomListProps, type RoomNotificationPermission, type RoomNotificationsState, RoomsPage, type RoomsPageProps, RunEnvModal, type RunEnvModalProps, type SanitizerConfig, ScheduleButton, type ScheduleButtonProps, type SegmentOption, SegmentedToggle, type SegmentedToggleProps, SideAppBrowserContext, type SideAppBrowserContextValue, SideAppViewBrowser, type SideMenuItemConfig, type SideMenuItemType, SkillCategoryPrompts, type SkillCategoryPromptsProps, SkillFlow, type SkillFlowProps, SkillNode, type SkillNodeData, type StreamEventHandlerOptions, type StreamingError, StreamingHTMLRenderer, type StreamingHTMLRendererProps, TenantBranding, type TenantBrandingData, TenantLogo, TenantSelector, type TenantSelectorProps, TenantSettingsModal, type ThreadState, type ToolCallData, type UIMessage, type UseAgentStateOptions, type UseAgentStateReturn, type UseApiOptions, type UseApiReturn, type UseAxiomLatticeOptions, type UseCapabilityBundlesResult, type UseChatOptions, type UseProjectCapabilitiesResult, type UseTenantsOptions, type UseTenantsReturn, type UseUsersOptions, type UseUsersReturn, type UseVoiceRecorderOptions, type UseWebPushOptions, UserProfile, type UserProfileProps, type UserTenantInfo, type ViewMode, type ViewModeExtension, ViewToggle, VoiceInputButton, type VoiceInputButtonProps, type VoiceRecorderState, type WebPushPermission, type WebPushState, WorkflowAutomationView, WorkflowCanvas, type WorkflowCanvasProps, WorkflowNode, type WorkflowNodeData, WorkspaceContext, WorkspaceContextProvider, type WorkspaceContextProviderProps, type WorkspaceContextValue, WorkspaceResourceManager, type WorkspaceResourceManagerProps, WorkspaceResourceUIContext, type WorkspaceResourceUIContextProps, animation, appRegistry, applyBootstrap, applyDispatch, applyOlderMessages, applyResource, applySendResult, applyStreamFrame, authStorage, axiomAntdTheme, axiomAntdThemeDark, axiomTokens, buildAgentConfigGraphData, buildAgentGraphData, buildAgentListItems, clearAuthItems, colors, createProjectRoomState, deriveBotAvailability, deriveProjectRoomCapabilities, generateIframeSrcdoc, generateLabelFromMessage, getAxiomAntdTheme, getElement, getRoundRepresentativeScore, isStandalonePwa, isTrainingRound, radius, readAuthItem, regsiterElement, removeAuthItem, shadows, spacing, summarizeCapability, toAttachmentItems, typography, useAgentChat, useAgentGraph, useAgentState, useAgentThreadContext, useApi, useApp, useAssistantContext, useAuth, useAuthOptional, useAxiomLattice, useAxiomTheme, useCapabilityBundles, useChat, useChatUIContext, useClient, useConversationContext, useCurrentApp, useEvalCases, useEvalProjects, useEvalRunStream, useEvalRuns, useEvalSuites, useLatticeChatShellContext, useMiddlewareTypes, useOptionalAgentThreadContext, useOptionalConversationContext, useProjectCapabilities, useProjectRoom, useRoomEvents, useRoomNotifications, useSideAppBrowser, useSideAppOpener, useTenantBranding, useTenants, useUsers, useVoiceRecorder, useWebPush, useWorkspaceContext, useWorkspaceContextOptional, writeAuthItem };