@axiom-lattice/react-sdk 4.6.2 → 4.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/{AgentDetailSideApp-4LEF6MS5.mjs → AgentDetailSideApp-OBDHXBHZ.mjs} +6 -6
  2. package/dist/{AgentGovernanceWorkbench-2DXFFSY4.mjs → AgentGovernanceWorkbench-GGVJP6GJ.mjs} +7 -7
  3. package/dist/{MessageGraph-AOTQBN3S.mjs → MessageGraph-GTPXPTZC.mjs} +2 -2
  4. package/dist/{ReactChart-HPD5TQOE.mjs → ReactChart-JEUW4EU2.mjs} +2 -2
  5. package/dist/{TasksSideApp-TSMN3OAM.mjs → TasksSideApp-74BUDYDZ.mjs} +3 -3
  6. package/dist/{TeamWorkspace-JVO6SBQH.mjs → TeamWorkspace-EDO2D3QP.mjs} +2 -2
  7. package/dist/{TopologyRuntimeView-GHOPKUAU.mjs → TopologyRuntimeView-TJ2O6QAK.mjs} +3 -3
  8. package/dist/{WorkflowAutomationView-OLFR3AZH.mjs → WorkflowAutomationView-BMP5ALOD.mjs} +5 -5
  9. package/dist/{chunk-Z6XUZLP7.mjs → chunk-3SVN3DBY.mjs} +60 -69
  10. package/dist/chunk-3SVN3DBY.mjs.map +1 -0
  11. package/dist/{chunk-JWVMQZ6G.mjs → chunk-H2YPL7NX.mjs} +4 -4
  12. package/dist/{chunk-PS5OPS6W.mjs → chunk-MQJ4GZ45.mjs} +5 -5
  13. package/dist/{chunk-D3657YM2.mjs → chunk-RCMWZB5U.mjs} +2 -2
  14. package/dist/{chunk-ZGGVWYV4.mjs → chunk-WD5XJQ7Y.mjs} +2 -2
  15. package/dist/{chunk-4QPBMVJD.mjs → chunk-XVRNO7O4.mjs} +2 -2
  16. package/dist/{chunk-ERYKIL3X.mjs → chunk-Y4VGUJAK.mjs} +4 -4
  17. package/dist/{embed-page-AgentDetailSideApp-NTLAFO5C.js → embed-page-AgentDetailSideApp-IV5GFM6V.js} +1 -1
  18. package/dist/{embed-page-AgentGovernanceWorkbench-QPVBOMLH.js → embed-page-AgentGovernanceWorkbench-O7EHZD7A.js} +1 -1
  19. package/dist/{embed-page-MessageGraph-JAJGMYKH.js → embed-page-MessageGraph-TPEQXQVI.js} +1 -1
  20. package/dist/{embed-page-ReactChart-WUG6TEAZ.js → embed-page-ReactChart-A54ZOWXH.js} +1 -1
  21. package/dist/{embed-page-TasksSideApp-TJI22YGD.js → embed-page-TasksSideApp-VVT5TJHD.js} +1 -1
  22. package/dist/{embed-page-TeamWorkspace-OJJLN5VI.js → embed-page-TeamWorkspace-UJCO54AJ.js} +1 -1
  23. package/dist/{embed-page-TopologyRuntimeView-ZFU4N6TV.js → embed-page-TopologyRuntimeView-S65ORYJP.js} +1 -1
  24. package/dist/{embed-page-WorkflowAutomationView-ALXV7VQQ.js → embed-page-WorkflowAutomationView-U346EREK.js} +1 -1
  25. package/dist/{embed-page-chunk-O72XBKQH.js → embed-page-chunk-5KAV3UKK.js} +1 -1
  26. package/dist/{embed-page-chunk-UT3WYBZH.js → embed-page-chunk-DLMNBQDM.js} +1 -1
  27. package/dist/{embed-page-chunk-IPIJ2SG6.js → embed-page-chunk-HXKUWQKZ.js} +1 -1
  28. package/dist/{embed-page-chunk-QMVIL4BJ.js → embed-page-chunk-PJ6DIO3E.js} +6 -12
  29. package/dist/{embed-page-chunk-DZQBVJ7Z.js → embed-page-chunk-ZWOJE3I4.js} +1 -1
  30. package/dist/{embed-page-chunk-N22EGQAJ.js → embed-page-chunk-ZXXK35AA.js} +1 -1
  31. package/dist/embed-page.js +1 -1
  32. package/dist/index.js +49 -58
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.mjs +7 -7
  35. package/package.json +1 -1
  36. package/dist/chunk-Z6XUZLP7.mjs.map +0 -1
  37. /package/dist/{AgentDetailSideApp-4LEF6MS5.mjs.map → AgentDetailSideApp-OBDHXBHZ.mjs.map} +0 -0
  38. /package/dist/{AgentGovernanceWorkbench-2DXFFSY4.mjs.map → AgentGovernanceWorkbench-GGVJP6GJ.mjs.map} +0 -0
  39. /package/dist/{MessageGraph-AOTQBN3S.mjs.map → MessageGraph-GTPXPTZC.mjs.map} +0 -0
  40. /package/dist/{ReactChart-HPD5TQOE.mjs.map → ReactChart-JEUW4EU2.mjs.map} +0 -0
  41. /package/dist/{TasksSideApp-TSMN3OAM.mjs.map → TasksSideApp-74BUDYDZ.mjs.map} +0 -0
  42. /package/dist/{TeamWorkspace-JVO6SBQH.mjs.map → TeamWorkspace-EDO2D3QP.mjs.map} +0 -0
  43. /package/dist/{TopologyRuntimeView-GHOPKUAU.mjs.map → TopologyRuntimeView-TJ2O6QAK.mjs.map} +0 -0
  44. /package/dist/{WorkflowAutomationView-OLFR3AZH.mjs.map → WorkflowAutomationView-BMP5ALOD.mjs.map} +0 -0
  45. /package/dist/{chunk-JWVMQZ6G.mjs.map → chunk-H2YPL7NX.mjs.map} +0 -0
  46. /package/dist/{chunk-PS5OPS6W.mjs.map → chunk-MQJ4GZ45.mjs.map} +0 -0
  47. /package/dist/{chunk-D3657YM2.mjs.map → chunk-RCMWZB5U.mjs.map} +0 -0
  48. /package/dist/{chunk-ZGGVWYV4.mjs.map → chunk-WD5XJQ7Y.mjs.map} +0 -0
  49. /package/dist/{chunk-4QPBMVJD.mjs.map → chunk-XVRNO7O4.mjs.map} +0 -0
  50. /package/dist/{chunk-ERYKIL3X.mjs.map → chunk-Y4VGUJAK.mjs.map} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as _i}from"./embed-page-chunk-UT3WYBZH.js";import{a as cr,b as Pn}from"./embed-page-chunk-N22EGQAJ.js";import{b as Gi,c as $i}from"./embed-page-chunk-IPIJ2SG6.js";import{c as bo,d as vo}from"./embed-page-chunk-KEL6XU6R.js";import{b as it,c as Pi,d as yo,e as Rt,f as ho,g as Di,h as Cn,i as An,j as Li,l as Ni,m as Mi}from"./embed-page-chunk-AC6X2XRH.js";import{a as ji,b as qi}from"./embed-page-chunk-O72XBKQH.js";import{A as ci,Aa as Ii,C as ui,D as pi,Da as In,F as uo,Ja as Sn,Ka as fo,L as gi,La as Si,Oa as Ci,Pa as Ai,Qa as Ei,Ra as mo,Y as fi,Z as mi,_ as yi,aa as hi,ba as bi,d as ii,db as Oi,eb as ko,f as ai,fb as wo,g as $n,ga as vi,gb as xo,hb as Fi,ib as To,jb as Wi,ka as ki,kb as zi,lb as Ro,mb as En,oa as po,ob as dr,p as si,pa as wi,pb as Bi,qa as xi,ra as Ti,sa as Pt,x as li,xa as Ri,z as di,za as go}from"./embed-page-chunk-QMVIL4BJ.js";import{i as Zr,p as Vr,q as Qr,t as yt,x as ao,y as Ve}from"./embed-page-chunk-YPNSOZYW.js";import{a as M}from"./embed-page-chunk-MB65DZAX.js";import{Cb as lo,Db as ti,Dc as ni,Fc as oi,Gc as sr,Ha as io,Hc as lr,Ia as qe,Ja as Kr,La as We,Ma as Ur,Sc as ri,Tb as ar,U as Vt,W as ee,Wa as Yr,Y as Rn,Z as Wt,_ as mt,aa as Qt,ca as rr,da as ir,eb as Xr,fa as $r,fc as co,ia as cn,la as qr,mb as Jr,na as Hr,oa as Et,ob as ei,ra as pe,ta as De,tb as so,va as Tt,xa as rt,ya as _e,yc as Yt}from"./embed-page-chunk-O4QK5LWZ.js";import{a as Te}from"./embed-page-chunk-4BKXE5ON.js";import{e as R}from"./embed-page-chunk-6Y3UYJ6Z.js";var Gs={react:{label:"capability",color:"blue"},capability:{label:"capability",color:"blue"},deep_agent:{label:"orchestrator",color:"orange"},orchestrator:{label:"orchestrator",color:"orange"},team:{label:"team",color:"green"},processing:{label:"workflow",color:"purple"},workflow:{label:"workflow",color:"purple"},a2a_remote:{label:"remote",color:"cyan"},remote:{label:"remote",color:"cyan"}};function Dn(e){return Gs[e]??{label:"capability",color:"blue"}}var $s={enabled:"green",draft:"orange",disabled:"default"};function Ki(e){return $s[e]??"default"}var Hi={blue:"#3b82f6",orange:"#f59e0b",green:"#22c55e",purple:"#a855f7",cyan:"#06b6d4"};function qn(e){return Hi[e]??Hi.cyan}function Hd(e){let t={enabled:"#22c55e",draft:"#f59e0b",disabled:"#d9d9d9"};return t[e]??t.disabled}function Ln(e){return typeof e.graphDefinition=="object"&&e.graphDefinition!==null?e.graphDefinition:{}}function pr(e){return((Ln(e).metadata??{}).tags??"").split(",").map(r=>r.trim()).filter(Boolean)}function gr(e){let o=(Ln(e).metadata??{}).version;return o?o.startsWith("v")?o:`v${o}`:"v1"}function fr(e){let o=(Ln(e).metadata??{}).status??"enabled";return o==="draft"||o==="disabled"?o:"enabled"}function ur(e){let n=Ln(e).subAgents??[],o=Array.isArray(n)?n.filter(Boolean):[];return Array.from(new Set(o))}function Kd(e){return e.map(t=>{let n=Ln(t),o=String(n.type??"react");return{id:t.id,name:t.name,description:t.description,type:Dn(o).label,tags:pr(t),version:gr(t),status:fr(t),subAgents:ur(t)}})}function Ud(e){let t=new Set(e.map(r=>r.id)),n=e.map(r=>({id:r.id,label:r.name,type:Dn(String(Ln(r).type??"react")).label,subAgentCount:ur(r).length})),o=[];for(let r of e)for(let i of ur(r))t.has(i)&&o.push({source:r.id,target:i});return{nodes:n,edges:o}}var Ie=R(Te());var ne=R(Te());var h=R(M()),{TextArea:qs}=De,{Text:It}=We,Ui=["data","execution","workflow","assistant"],Hs={data:"Data & Knowledge",execution:"Execution & Interaction",workflow:"Workflow & Orchestration",assistant:"Assistant & Evaluation",other:"Other"},Hn=(e,t)=>{if(Array.isArray(e)){let n=e.map(o=>Hn(o));return(t==="tools"||t==="subAgents")&&n.every(o=>typeof o=="string")?[...n].sort():n}return e!==null&&typeof e=="object"?Object.fromEntries(Object.entries(e).sort(([n],[o])=>n.localeCompare(o)).map(([n,o])=>[n,Hn(o,n)])):e},Zi=e=>{if(typeof e!="string")return Hn(e??null);try{return Hn(JSON.parse(e))}catch{return e}},Vi=e=>JSON.stringify(Hn({...e,tools:[...e.tools].sort(),subAgents:[...e.subAgents].sort()})),Ks=Ti(({token:e,css:t})=>({modalBody:t`
1
+ import{a as _i}from"./embed-page-chunk-DLMNBQDM.js";import{a as cr,b as Pn}from"./embed-page-chunk-ZXXK35AA.js";import{b as Gi,c as $i}from"./embed-page-chunk-HXKUWQKZ.js";import{c as bo,d as vo}from"./embed-page-chunk-KEL6XU6R.js";import{b as it,c as Pi,d as yo,e as Rt,f as ho,g as Di,h as Cn,i as An,j as Li,l as Ni,m as Mi}from"./embed-page-chunk-AC6X2XRH.js";import{a as ji,b as qi}from"./embed-page-chunk-5KAV3UKK.js";import{A as ci,Aa as Ii,C as ui,D as pi,Da as In,F as uo,Ja as Sn,Ka as fo,L as gi,La as Si,Oa as Ci,Pa as Ai,Qa as Ei,Ra as mo,Y as fi,Z as mi,_ as yi,aa as hi,ba as bi,d as ii,db as Oi,eb as ko,f as ai,fb as wo,g as $n,ga as vi,gb as xo,hb as Fi,ib as To,jb as Wi,ka as ki,kb as zi,lb as Ro,mb as En,oa as po,ob as dr,p as si,pa as wi,pb as Bi,qa as xi,ra as Ti,sa as Pt,x as li,xa as Ri,z as di,za as go}from"./embed-page-chunk-PJ6DIO3E.js";import{i as Zr,p as Vr,q as Qr,t as yt,x as ao,y as Ve}from"./embed-page-chunk-YPNSOZYW.js";import{a as M}from"./embed-page-chunk-MB65DZAX.js";import{Cb as lo,Db as ti,Dc as ni,Fc as oi,Gc as sr,Ha as io,Hc as lr,Ia as qe,Ja as Kr,La as We,Ma as Ur,Sc as ri,Tb as ar,U as Vt,W as ee,Wa as Yr,Y as Rn,Z as Wt,_ as mt,aa as Qt,ca as rr,da as ir,eb as Xr,fa as $r,fc as co,ia as cn,la as qr,mb as Jr,na as Hr,oa as Et,ob as ei,ra as pe,ta as De,tb as so,va as Tt,xa as rt,ya as _e,yc as Yt}from"./embed-page-chunk-O4QK5LWZ.js";import{a as Te}from"./embed-page-chunk-4BKXE5ON.js";import{e as R}from"./embed-page-chunk-6Y3UYJ6Z.js";var Gs={react:{label:"capability",color:"blue"},capability:{label:"capability",color:"blue"},deep_agent:{label:"orchestrator",color:"orange"},orchestrator:{label:"orchestrator",color:"orange"},team:{label:"team",color:"green"},processing:{label:"workflow",color:"purple"},workflow:{label:"workflow",color:"purple"},a2a_remote:{label:"remote",color:"cyan"},remote:{label:"remote",color:"cyan"}};function Dn(e){return Gs[e]??{label:"capability",color:"blue"}}var $s={enabled:"green",draft:"orange",disabled:"default"};function Ki(e){return $s[e]??"default"}var Hi={blue:"#3b82f6",orange:"#f59e0b",green:"#22c55e",purple:"#a855f7",cyan:"#06b6d4"};function qn(e){return Hi[e]??Hi.cyan}function Hd(e){let t={enabled:"#22c55e",draft:"#f59e0b",disabled:"#d9d9d9"};return t[e]??t.disabled}function Ln(e){return typeof e.graphDefinition=="object"&&e.graphDefinition!==null?e.graphDefinition:{}}function pr(e){return((Ln(e).metadata??{}).tags??"").split(",").map(r=>r.trim()).filter(Boolean)}function gr(e){let o=(Ln(e).metadata??{}).version;return o?o.startsWith("v")?o:`v${o}`:"v1"}function fr(e){let o=(Ln(e).metadata??{}).status??"enabled";return o==="draft"||o==="disabled"?o:"enabled"}function ur(e){let n=Ln(e).subAgents??[],o=Array.isArray(n)?n.filter(Boolean):[];return Array.from(new Set(o))}function Kd(e){return e.map(t=>{let n=Ln(t),o=String(n.type??"react");return{id:t.id,name:t.name,description:t.description,type:Dn(o).label,tags:pr(t),version:gr(t),status:fr(t),subAgents:ur(t)}})}function Ud(e){let t=new Set(e.map(r=>r.id)),n=e.map(r=>({id:r.id,label:r.name,type:Dn(String(Ln(r).type??"react")).label,subAgentCount:ur(r).length})),o=[];for(let r of e)for(let i of ur(r))t.has(i)&&o.push({source:r.id,target:i});return{nodes:n,edges:o}}var Ie=R(Te());var ne=R(Te());var h=R(M()),{TextArea:qs}=De,{Text:It}=We,Ui=["data","execution","workflow","assistant"],Hs={data:"Data & Knowledge",execution:"Execution & Interaction",workflow:"Workflow & Orchestration",assistant:"Assistant & Evaluation",other:"Other"},Hn=(e,t)=>{if(Array.isArray(e)){let n=e.map(o=>Hn(o));return(t==="tools"||t==="subAgents")&&n.every(o=>typeof o=="string")?[...n].sort():n}return e!==null&&typeof e=="object"?Object.fromEntries(Object.entries(e).sort(([n],[o])=>n.localeCompare(o)).map(([n,o])=>[n,Hn(o,n)])):e},Zi=e=>{if(typeof e!="string")return Hn(e??null);try{return Hn(JSON.parse(e))}catch{return e}},Vi=e=>JSON.stringify(Hn({...e,tools:[...e.tools].sort(),subAgents:[...e.subAgents].sort()})),Ks=Ti(({token:e,css:t})=>({modalBody:t`
2
2
  padding: 0;
3
3
  height: 92vh;
4
4
  width: 100%;
@@ -1,3 +1,3 @@
1
- import{Na as S,Va as x,Wa as P,va as I}from"./embed-page-chunk-QMVIL4BJ.js";import{t as v}from"./embed-page-chunk-YPNSOZYW.js";import{a as s}from"./embed-page-chunk-MB65DZAX.js";import{La as y,U as f,W as h,mb as b}from"./embed-page-chunk-O4QK5LWZ.js";import{a as $}from"./embed-page-chunk-4BKXE5ON.js";import{e as a}from"./embed-page-chunk-6Y3UYJ6Z.js";var m=a($());var t=a(s()),{Text:l}=y,z=({workflowContext:e,onClose:d,onToolCompleted:p,initialMessageRequest:i,onInitialMessageSubmitted:g,attemptedInitialMessageRequestIdsRef:c,rawInitialMessage:r,showHeader:C=!0})=>{let T=v("agent-architect"),u=e?.id?`${T.tenantId}:${e.id}`:null,A=(0,m.useMemo)(()=>{if(e?.id&&e?.name)return e.type==="agent"?`[Context: You're viewing agent "${e.name}" (assistant: ${e.id})]`:`[Context: You're viewing workflow "${e.name}" (agent: ${e.id})]`},[e]),j=(0,m.useMemo)(()=>{if(!i||!e?.id)return null;if(r)return i;let o;return e.type==="workflow"?o=[`Purpose: ${i.content.trim()}`,"",`Workflow "${e.id}" has been created with an empty YAML DSL. Based on the purpose above, load the 'create-workflow' skill, design the workflow using the YAML needs+if DSL, and update it via update_workflow. Make sure to include a descriptive name.`].join(`
1
+ import{Na as S,Va as x,Wa as P,va as I}from"./embed-page-chunk-PJ6DIO3E.js";import{t as v}from"./embed-page-chunk-YPNSOZYW.js";import{a as s}from"./embed-page-chunk-MB65DZAX.js";import{La as y,U as f,W as h,mb as b}from"./embed-page-chunk-O4QK5LWZ.js";import{a as $}from"./embed-page-chunk-4BKXE5ON.js";import{e as a}from"./embed-page-chunk-6Y3UYJ6Z.js";var m=a($());var t=a(s()),{Text:l}=y,z=({workflowContext:e,onClose:d,onToolCompleted:p,initialMessageRequest:i,onInitialMessageSubmitted:g,attemptedInitialMessageRequestIdsRef:c,rawInitialMessage:r,showHeader:C=!0})=>{let T=v("agent-architect"),u=e?.id?`${T.tenantId}:${e.id}`:null,A=(0,m.useMemo)(()=>{if(e?.id&&e?.name)return e.type==="agent"?`[Context: You're viewing agent "${e.name}" (assistant: ${e.id})]`:`[Context: You're viewing workflow "${e.name}" (agent: ${e.id})]`},[e]),j=(0,m.useMemo)(()=>{if(!i||!e?.id)return null;if(r)return i;let o;return e.type==="workflow"?o=[`Purpose: ${i.content.trim()}`,"",`Workflow "${e.id}" has been created with an empty YAML DSL. Based on the purpose above, load the 'create-workflow' skill, design the workflow using the YAML needs+if DSL, and update it via update_workflow. Make sure to include a descriptive name.`].join(`
2
2
  `):o=[`Purpose: ${i.content.trim()}`,"",`Configure the topology for workflow "${e.id}" based on this purpose. Create sub-agents, set up the processing pipeline, and wire them together with topology edges.`,"The current name is a placeholder \u2014 feel free to update it via update_processing_agent if you have a better one."].join(`
3
3
  `),{...i,content:o}},[i?.requestId,i?.content,e?.id,e?.type,r]);return(0,t.jsxs)("div",{style:{height:"100%",display:"flex",flexDirection:"column",borderLeft:"1px solid #f0f0f0",background:"rgba(255, 255, 255, 0.92)"},children:[C&&(0,t.jsxs)("div",{style:{padding:"12px 12px",borderBottom:"1px solid #f0f0f0",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(l,{strong:!0,children:"Agent Builder"}),e&&(0,t.jsx)("div",{children:(0,t.jsxs)(l,{type:"secondary",style:{fontSize:12},children:["Viewing: ",e.name]})})]}),d&&(0,t.jsx)(h,{type:"text",size:"small","aria-label":"Close copilot",icon:(0,t.jsx)(b,{}),onClick:d})]}),u?(0,t.jsxs)(I,{threadId:u,assistantId:"agent-architect",options:{streaming:!0},onToolCompleted:p,children:[(0,t.jsx)(x,{request:j,onSubmitted:g,attemptedRequestIdsRef:c}),(0,t.jsx)(P,{showHeader:!1,showEmptyState:!1,showDatabaseSlot:!1,showSkillSlot:!1,showAgentSlot:!1,showMetricsDataSourceSlot:!1,systemContext:A})]}):(0,t.jsxs)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",textAlign:"center",gap:4,padding:"0 8px"},children:[(0,t.jsx)(l,{strong:!0,children:"Agent Builder"}),(0,t.jsx)(l,{type:"secondary",children:"Select a workflow to start"})]})]})};var n=a(s()),_=({project:e,projects:d,value:p,onChange:i,selectable:g=!0,loading:c})=>e?(0,n.jsxs)("div",{"data-testid":"training-context-card",style:{display:"flex",alignItems:"center",gap:8},children:[(0,n.jsx)("span",{style:{fontSize:12,color:"rgba(0,0,0,0.45)",flexShrink:0},children:"Learning project"}),g?(0,n.jsx)(S,{kind:"training",value:p??e.id,onChange:r=>{r&&i?.(r)},style:{minWidth:0}}):(0,n.jsx)("span",{style:{fontSize:12,fontWeight:500},children:e.name})]}):c?null:(0,n.jsx)(f,{type:"warning",showIcon:!0,message:"No learning project is available",description:"A learning project is required before starting a learning task."});export{_ as a,z as b};
@@ -1,4 +1,4 @@
1
- import{b as f}from"./embed-page-chunk-O72XBKQH.js";import"./embed-page-chunk-QMVIL4BJ.js";import"./embed-page-chunk-YPNSOZYW.js";import{a as b}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 g}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 U,e as s}from"./embed-page-chunk-6Y3UYJ6Z.js";var h=U(d=>{"use strict";var E=g();d.createRoot=E.createRoot,d.hydrateRoot=E.hydrateRoot;var ee});var T=s(h()),k=s(g());var y="axiom-web-app-embed";var x=["axiom:hello","axiom:identity","axiom:send","axiom:config"];function w(e,t){return{source:y,version:1,type:e,payload:t}}var N=6,z=40,B=500;function H(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;let t=e,n=Object.keys(t);return n.length!==2||!n.includes("label")||!n.includes("text")?!1:typeof t.label=="string"&&t.label.length>=1&&t.label.length<=z&&typeof t.text=="string"&&t.text.length>=1&&t.text.length<=B}function Q(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){if(t.length>=N)break;H(n)&&t.push({label:n.label,text:n.text})}return t}function _(e){if(typeof e!="object"||e===null)return null;let t=e,n={};if(typeof t.welcome=="string"&&t.welcome.length>0&&(n.welcome=t.welcome),Array.isArray(t.quicks)){let r=Q(t.quicks);(r.length>0||t.quicks.length===0)&&(n.quicks=r)}return n.welcome===void 0&&n.quicks===void 0?null:n}function R(e,t){if(typeof e!="object"||e===null)return null;let n=e;return n.source!==y||n.version!==1||typeof n.type!="string"||!t.includes(n.type)?null:{type:n.type,payload:n.payload}}var p=s(b()),P=/^[A-Za-z0-9._:@-]{1,128}$/,q="Open this chat from the host page embed to start chatting.",v="axiom-embed-root",C="axiom-embed-style",A=32768,G=`
1
+ import{b as f}from"./embed-page-chunk-5KAV3UKK.js";import"./embed-page-chunk-PJ6DIO3E.js";import"./embed-page-chunk-YPNSOZYW.js";import{a as b}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 g}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 U,e as s}from"./embed-page-chunk-6Y3UYJ6Z.js";var h=U(d=>{"use strict";var E=g();d.createRoot=E.createRoot,d.hydrateRoot=E.hydrateRoot;var ee});var T=s(h()),k=s(g());var y="axiom-web-app-embed";var x=["axiom:hello","axiom:identity","axiom:send","axiom:config"];function w(e,t){return{source:y,version:1,type:e,payload:t}}var N=6,z=40,B=500;function H(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;let t=e,n=Object.keys(t);return n.length!==2||!n.includes("label")||!n.includes("text")?!1:typeof t.label=="string"&&t.label.length>=1&&t.label.length<=z&&typeof t.text=="string"&&t.text.length>=1&&t.text.length<=B}function Q(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){if(t.length>=N)break;H(n)&&t.push({label:n.label,text:n.text})}return t}function _(e){if(typeof e!="object"||e===null)return null;let t=e,n={};if(typeof t.welcome=="string"&&t.welcome.length>0&&(n.welcome=t.welcome),Array.isArray(t.quicks)){let r=Q(t.quicks);(r.length>0||t.quicks.length===0)&&(n.quicks=r)}return n.welcome===void 0&&n.quicks===void 0?null:n}function R(e,t){if(typeof e!="object"||e===null)return null;let n=e;return n.source!==y||n.version!==1||typeof n.type!="string"||!t.includes(n.type)?null:{type:n.type,payload:n.payload}}var p=s(b()),P=/^[A-Za-z0-9._:@-]{1,128}$/,q="Open this chat from the host page embed to start chatting.",v="axiom-embed-root",C="axiom-embed-style",A=32768,G=`
2
2
  html, body, #${v} { 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.js CHANGED
@@ -109334,10 +109334,6 @@ var init_SideAppViewBrowser = __esm({
109334
109334
  display: flex;
109335
109335
  flex-direction: column;
109336
109336
  align-items: center;
109337
- // The wrapper spans the full width only to center the pill. Keep it
109338
- // transparent to pointer events so the empty top band never intercepts
109339
- // clicks on the content beneath; the visible pill/header opt back in.
109340
- pointer-events: none;
109341
109337
  `,
109342
109338
  compactPill: css`
109343
109339
  display: flex;
@@ -109356,7 +109352,6 @@ var init_SideAppViewBrowser = __esm({
109356
109352
  cursor: default;
109357
109353
  transition: all 0.2s ease;
109358
109354
  margin-top: 0;
109359
- pointer-events: auto;
109360
109355
 
109361
109356
  &:hover {
109362
109357
  color: ${token.colorText};
@@ -109382,7 +109377,6 @@ var init_SideAppViewBrowser = __esm({
109382
109377
  padding: 4px 8px;
109383
109378
  gap: 4px;
109384
109379
  width: 100%;
109385
- pointer-events: auto;
109386
109380
  animation: floatIn 0.2s ease;
109387
109381
  transition: background 0.2s ease;
109388
109382
 
@@ -109595,64 +109589,61 @@ var init_SideAppViewBrowser = __esm({
109595
109589
  [openApp]
109596
109590
  );
109597
109591
  return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: styles.container, children: [
109598
- compact && items3.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("div", { className: styles.compactWrapper, children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
109599
- "div",
109600
- {
109601
- className: `${styles.floatingHeader} ${autoPeek ? styles.floatingHeaderPeek : ""} ${isLeaving ? styles.floatingHeaderLeaving : ""}`,
109602
- style: { width: "fit-content", maxWidth: "100%" },
109603
- onMouseEnter: handleMouseEnter,
109604
- onMouseLeave: handleMouseLeave,
109605
- onAnimationEnd: handleFloatingAnimationEnd,
109606
- children: [
109607
- /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("div", { className: styles.floatingTabsStrip, children: items3.map((item) => /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_antd114.Tooltip, { title: item.label, placement: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
109608
- "div",
109609
- {
109610
- "data-tab-key": item.key,
109611
- className: `${styles.tab} ${item.key === activeKey ? "active" : ""}`,
109612
- onClick: () => switchTab(item.key),
109613
- onMouseEnter: () => setHoveredTab(item.key),
109614
- onMouseLeave: () => setHoveredTab(null),
109615
- children: [
109616
- getTabIcon(item.componentKey),
109617
- /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("span", { className: styles.tabLabel, children: item.label }),
109618
- /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
109619
- "span",
109620
- {
109621
- className: `${styles.closeIndicator} ${hoveredTab === item.key || item.key === activeKey ? "always-visible" : ""}`,
109622
- onClick: (e8) => {
109623
- e8.stopPropagation();
109624
- remove2(item.key);
109625
- },
109626
- children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_icons36.CloseOutlined, { style: { fontSize: 10 } })
109627
- }
109628
- )
109629
- ]
109630
- }
109631
- ) }, item.key)) }),
109632
- items3.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
109633
- import_antd114.Dropdown,
109634
- {
109635
- menu: { items: dropdownItems },
109636
- placement: "bottomRight",
109637
- trigger: ["click"],
109638
- children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("button", { className: styles.actionBtn, title: "All tabs", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_icons36.MoreOutlined, {}) })
109639
- }
109640
- ),
109641
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_antd114.Tooltip, { title: "Close", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("button", { className: styles.actionBtn, onClick: closeApp, children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_icons36.CloseOutlined, {}) }) })
109642
- ]
109643
- }
109644
- ) : activeItem && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
109592
+ compact && items3.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
109645
109593
  "div",
109646
109594
  {
109647
- className: styles.compactPill,
109595
+ className: styles.compactWrapper,
109648
109596
  onMouseEnter: handleMouseEnter,
109649
109597
  onMouseLeave: handleMouseLeave,
109650
- children: [
109598
+ children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
109599
+ "div",
109600
+ {
109601
+ className: `${styles.floatingHeader} ${autoPeek ? styles.floatingHeaderPeek : ""} ${isLeaving ? styles.floatingHeaderLeaving : ""}`,
109602
+ onAnimationEnd: handleFloatingAnimationEnd,
109603
+ children: [
109604
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("div", { className: styles.floatingTabsStrip, children: items3.map((item) => /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_antd114.Tooltip, { title: item.label, placement: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
109605
+ "div",
109606
+ {
109607
+ "data-tab-key": item.key,
109608
+ className: `${styles.tab} ${item.key === activeKey ? "active" : ""}`,
109609
+ onClick: () => switchTab(item.key),
109610
+ onMouseEnter: () => setHoveredTab(item.key),
109611
+ onMouseLeave: () => setHoveredTab(null),
109612
+ children: [
109613
+ getTabIcon(item.componentKey),
109614
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("span", { className: styles.tabLabel, children: item.label }),
109615
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
109616
+ "span",
109617
+ {
109618
+ className: `${styles.closeIndicator} ${hoveredTab === item.key || item.key === activeKey ? "always-visible" : ""}`,
109619
+ onClick: (e8) => {
109620
+ e8.stopPropagation();
109621
+ remove2(item.key);
109622
+ },
109623
+ children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_icons36.CloseOutlined, { style: { fontSize: 10 } })
109624
+ }
109625
+ )
109626
+ ]
109627
+ }
109628
+ ) }, item.key)) }),
109629
+ items3.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
109630
+ import_antd114.Dropdown,
109631
+ {
109632
+ menu: { items: dropdownItems },
109633
+ placement: "bottomRight",
109634
+ trigger: ["click"],
109635
+ children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("button", { className: styles.actionBtn, title: "All tabs", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_icons36.MoreOutlined, {}) })
109636
+ }
109637
+ ),
109638
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_antd114.Tooltip, { title: "Close", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("button", { className: styles.actionBtn, onClick: closeApp, children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_icons36.CloseOutlined, {}) }) })
109639
+ ]
109640
+ }
109641
+ ) : activeItem && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: styles.compactPill, children: [
109651
109642
  getTabIcon(activeItem.componentKey),
109652
109643
  /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("span", { className: styles.compactPillLabel, children: activeItem.label })
109653
- ]
109644
+ ] })
109654
109645
  }
109655
- ) }),
109646
+ ),
109656
109647
  !compact && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: styles.header, children: [
109657
109648
  /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("div", { className: styles.tabsStrip, children: items3.map((item) => /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_antd114.Tooltip, { title: item.label, placement: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
109658
109649
  "div",
@@ -142655,7 +142646,7 @@ var init_WorkspaceResourceManager = __esm({
142655
142646
  )
142656
142647
  }
142657
142648
  ),
142658
- main: /* @__PURE__ */ (0, import_jsx_runtime369.jsx)(SideAppViewBrowser, { region: "content", compact: false, showCloseButton: false }),
142649
+ main: /* @__PURE__ */ (0, import_jsx_runtime369.jsx)(SideAppViewBrowser, { region: "content", showCloseButton: false }),
142659
142650
  mainStyle: { padding: 0 }
142660
142651
  }
142661
142652
  ),