@axiom-lattice/react-sdk 4.6.1 → 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 (53) hide show
  1. package/dist/{AgentDetailSideApp-3IKTT5EP.mjs → AgentDetailSideApp-OBDHXBHZ.mjs} +6 -6
  2. package/dist/{AgentGovernanceWorkbench-SJYGZUBS.mjs → AgentGovernanceWorkbench-GGVJP6GJ.mjs} +7 -7
  3. package/dist/{MessageGraph-2DLQE4CF.mjs → MessageGraph-GTPXPTZC.mjs} +2 -2
  4. package/dist/{ReactChart-UZRL2DT6.mjs → ReactChart-JEUW4EU2.mjs} +2 -2
  5. package/dist/{TasksSideApp-LJGEJHCJ.mjs → TasksSideApp-74BUDYDZ.mjs} +3 -3
  6. package/dist/{TeamWorkspace-MPS5CTI7.mjs → TeamWorkspace-EDO2D3QP.mjs} +2 -2
  7. package/dist/{TopologyRuntimeView-FCQZPEAF.mjs → TopologyRuntimeView-TJ2O6QAK.mjs} +3 -3
  8. package/dist/{WorkflowAutomationView-COZISURR.mjs → WorkflowAutomationView-BMP5ALOD.mjs} +5 -5
  9. package/dist/{chunk-VUZRG7KX.mjs → chunk-3SVN3DBY.mjs} +16 -12
  10. package/dist/chunk-3SVN3DBY.mjs.map +1 -0
  11. package/dist/{chunk-WWLRMGB4.mjs → chunk-H2YPL7NX.mjs} +4 -4
  12. package/dist/{chunk-PXBOJXSD.mjs → chunk-MQJ4GZ45.mjs} +5 -5
  13. package/dist/{chunk-GIMKS3S3.mjs → chunk-RCMWZB5U.mjs} +2 -2
  14. package/dist/{chunk-4L6LWUPC.mjs → chunk-WD5XJQ7Y.mjs} +2 -2
  15. package/dist/{chunk-T6G7S34S.mjs → chunk-XVRNO7O4.mjs} +2 -2
  16. package/dist/{chunk-WETKGEA6.mjs → chunk-Y4VGUJAK.mjs} +4 -4
  17. package/dist/{embed-page-AgentDetailSideApp-2C2ZR62Q.js → embed-page-AgentDetailSideApp-IV5GFM6V.js} +1 -1
  18. package/dist/{embed-page-AgentGovernanceWorkbench-GG4ONSTS.js → embed-page-AgentGovernanceWorkbench-O7EHZD7A.js} +1 -1
  19. package/dist/{embed-page-MessageGraph-WMYTVUUC.js → embed-page-MessageGraph-TPEQXQVI.js} +1 -1
  20. package/dist/{embed-page-ReactChart-7XCMDMH6.js → embed-page-ReactChart-A54ZOWXH.js} +1 -1
  21. package/dist/{embed-page-SkillFlow-XMMHEHQL.js → embed-page-SkillFlow-TSBZ4V2P.js} +1 -1
  22. package/dist/{embed-page-TasksSideApp-4ZJ4Q4CL.js → embed-page-TasksSideApp-VVT5TJHD.js} +1 -1
  23. package/dist/{embed-page-TeamWorkspace-H5OOEN3K.js → embed-page-TeamWorkspace-UJCO54AJ.js} +1 -1
  24. package/dist/{embed-page-TopologyRuntimeView-QMXWERVC.js → embed-page-TopologyRuntimeView-S65ORYJP.js} +1 -1
  25. package/dist/{embed-page-WorkflowAutomationView-L2OEGCA5.js → embed-page-WorkflowAutomationView-U346EREK.js} +1 -1
  26. package/dist/{embed-page-chunk-OHDEKFTU.js → embed-page-chunk-5KAV3UKK.js} +2 -2
  27. package/dist/{embed-page-chunk-2G54EIW2.js → embed-page-chunk-DLMNBQDM.js} +1 -1
  28. package/dist/{embed-page-chunk-N2ISCAS7.js → embed-page-chunk-HXKUWQKZ.js} +1 -1
  29. package/dist/{embed-page-chunk-XIXSRYJY.js → embed-page-chunk-PJ6DIO3E.js} +184 -185
  30. package/dist/embed-page-chunk-YPNSOZYW.js +8 -0
  31. package/dist/{embed-page-chunk-CZE4IEB3.js → embed-page-chunk-ZWOJE3I4.js} +1 -1
  32. package/dist/{embed-page-chunk-SUMYB6ZA.js → embed-page-chunk-ZXXK35AA.js} +1 -1
  33. package/dist/embed-page.js +1 -1
  34. package/dist/index.js +5 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +7 -7
  37. package/package.json +3 -3
  38. package/dist/chunk-VUZRG7KX.mjs.map +0 -1
  39. package/dist/embed-page-chunk-HEMNMC4X.js +0 -7
  40. /package/dist/{AgentDetailSideApp-3IKTT5EP.mjs.map → AgentDetailSideApp-OBDHXBHZ.mjs.map} +0 -0
  41. /package/dist/{AgentGovernanceWorkbench-SJYGZUBS.mjs.map → AgentGovernanceWorkbench-GGVJP6GJ.mjs.map} +0 -0
  42. /package/dist/{MessageGraph-2DLQE4CF.mjs.map → MessageGraph-GTPXPTZC.mjs.map} +0 -0
  43. /package/dist/{ReactChart-UZRL2DT6.mjs.map → ReactChart-JEUW4EU2.mjs.map} +0 -0
  44. /package/dist/{TasksSideApp-LJGEJHCJ.mjs.map → TasksSideApp-74BUDYDZ.mjs.map} +0 -0
  45. /package/dist/{TeamWorkspace-MPS5CTI7.mjs.map → TeamWorkspace-EDO2D3QP.mjs.map} +0 -0
  46. /package/dist/{TopologyRuntimeView-FCQZPEAF.mjs.map → TopologyRuntimeView-TJ2O6QAK.mjs.map} +0 -0
  47. /package/dist/{WorkflowAutomationView-COZISURR.mjs.map → WorkflowAutomationView-BMP5ALOD.mjs.map} +0 -0
  48. /package/dist/{chunk-WWLRMGB4.mjs.map → chunk-H2YPL7NX.mjs.map} +0 -0
  49. /package/dist/{chunk-PXBOJXSD.mjs.map → chunk-MQJ4GZ45.mjs.map} +0 -0
  50. /package/dist/{chunk-GIMKS3S3.mjs.map → chunk-RCMWZB5U.mjs.map} +0 -0
  51. /package/dist/{chunk-4L6LWUPC.mjs.map → chunk-WD5XJQ7Y.mjs.map} +0 -0
  52. /package/dist/{chunk-T6G7S34S.mjs.map → chunk-XVRNO7O4.mjs.map} +0 -0
  53. /package/dist/{chunk-WETKGEA6.mjs.map → chunk-Y4VGUJAK.mjs.map} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as _i}from"./embed-page-chunk-2G54EIW2.js";import{a as cr,b as Pn}from"./embed-page-chunk-SUMYB6ZA.js";import{b as Gi,c as $i}from"./embed-page-chunk-N2ISCAS7.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-OHDEKFTU.js";import{B as li,Ba as Ri,D as di,Da as go,E as ci,Ea as Ii,G as ui,H as pi,Ha as In,J as uo,Na as Sn,Oa as fo,P as gi,Pa as Si,Sa as Ci,Ta as Ai,Ua as Ei,Va as mo,aa as fi,ba as mi,ca as yi,ea as hi,fa as bi,h as ii,hb as Oi,ib as ko,j as ai,jb as wo,k as $n,ka as vi,kb as xo,lb as Fi,mb as To,nb as Wi,oa as ki,ob as zi,pb as Ro,qb as En,sa as po,sb as dr,t as si,ta as wi,tb as Bi,ua as xi,va as Ti,wa as Pt}from"./embed-page-chunk-XIXSRYJY.js";import{b as Zr,i as Vr,j as Qr,m as yt,q as ao,r as Ve}from"./embed-page-chunk-HEMNMC4X.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{Ra as S,Za as x,_a as P,za as I}from"./embed-page-chunk-XIXSRYJY.js";import{m as v}from"./embed-page-chunk-HEMNMC4X.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-OHDEKFTU.js";import"./embed-page-chunk-XIXSRYJY.js";import"./embed-page-chunk-HEMNMC4X.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
@@ -88484,7 +88484,10 @@ ${JSON.stringify(
88484
88484
  }, []);
88485
88485
  const items3 = (0, import_react87.useMemo)(
88486
88486
  () => deferredMessages.map((message49, index3) => ({
88487
- key: message49.id,
88487
+ // Some locally-constructed threads (e.g. the Architect copilot) can
88488
+ // carry messages without a server id; fall back to the index so
88489
+ // Bubble.List always receives a key and does not warn.
88490
+ key: message49.id || `message-${index3}`,
88488
88491
  role: message49.role,
88489
88492
  typing: false,
88490
88493
  content: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
@@ -104574,6 +104577,7 @@ var init_TaskCommentComposer = __esm({
104574
104577
  value: content,
104575
104578
  header: senderHeader,
104576
104579
  prefix: attachButton,
104580
+ suffix: (_actionNode, { components }) => /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(components.SendButton, { "aria-label": "Send comment" }),
104577
104581
  onChange: setContent,
104578
104582
  onSubmit: (next) => void submit(next),
104579
104583
  placeholder: "Add a comment\u2026",