@axiom-lattice/gateway 4.4.2 → 4.6.0

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 (32) hide show
  1. package/dist/{a2a-standard-RWR5JTMH.mjs → a2a-standard-PIOKEHPS.mjs} +1 -1
  2. package/dist/a2a-standard-PIOKEHPS.mjs.map +1 -0
  3. package/dist/embed/{embed-page-AgentDetailSideApp-2BDEWFQ6.js → embed-page-AgentDetailSideApp-7NYLPLAX.js} +1 -1
  4. package/dist/embed/{embed-page-AgentGovernanceWorkbench-WG7E3G5T.js → embed-page-AgentGovernanceWorkbench-LNGNSI7X.js} +2 -2
  5. package/dist/embed/{embed-page-MessageGraph-5SWPEQ4V.js → embed-page-MessageGraph-E6DZDT65.js} +1 -1
  6. package/dist/embed/{embed-page-ReactChart-ZYWRXIMC.js → embed-page-ReactChart-3VE7F5VJ.js} +1 -1
  7. package/dist/embed/{embed-page-SkillFlow-TKBMB5VV.js → embed-page-SkillFlow-XMMHEHQL.js} +1 -1
  8. package/dist/embed/embed-page-TasksSideApp-QM5TZ7EG.js +254 -0
  9. package/dist/embed/{embed-page-TeamWorkspace-XNZM7AV7.js → embed-page-TeamWorkspace-E7RFY3ZY.js} +1 -1
  10. package/dist/embed/{embed-page-TopologyRuntimeView-DGSHSTIU.js → embed-page-TopologyRuntimeView-DLPDUB7Z.js} +1 -1
  11. package/dist/embed/{embed-page-WorkflowAutomationView-BHIRIWV3.js → embed-page-WorkflowAutomationView-FKSVOHHB.js} +1 -1
  12. package/dist/embed/embed-page-chunk-EXCJ42IB.js +2 -0
  13. package/dist/embed/embed-page-chunk-H6TK3FAR.js +153 -0
  14. package/dist/embed/{embed-page-chunk-HMTKPZ5B.js → embed-page-chunk-HEMNMC4X.js} +4 -4
  15. package/dist/embed/embed-page-chunk-I7PWCKAG.js +245 -0
  16. package/dist/embed/{embed-page-chunk-YCX5YZRP.js → embed-page-chunk-KN7D66KL.js} +1 -1
  17. package/dist/embed/embed-page-chunk-U276WBDI.js +6986 -0
  18. package/dist/embed/{embed-page-chunk-XUXEGF3S.js → embed-page-chunk-WWTU55RX.js} +1 -1
  19. package/dist/embed/embed-page.js +1 -1
  20. package/dist/index.d.mts +210 -2
  21. package/dist/index.d.ts +210 -2
  22. package/dist/index.js +7276 -5570
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.mjs +7001 -5295
  25. package/dist/index.mjs.map +1 -1
  26. package/package.json +7 -7
  27. package/dist/a2a-standard-RWR5JTMH.mjs.map +0 -1
  28. package/dist/embed/embed-page-TasksSideApp-X6255GEF.js +0 -241
  29. package/dist/embed/embed-page-chunk-DEDTYRZE.js +0 -245
  30. package/dist/embed/embed-page-chunk-HEO7X7LH.js +0 -153
  31. package/dist/embed/embed-page-chunk-JMZ7OODN.js +0 -2
  32. package/dist/embed/embed-page-chunk-SPC4BYNU.js +0 -6974
@@ -0,0 +1,153 @@
1
+ import{ab as L,cb as I,db as v,gb as M,hb as b,o as R,q as B,va as O}from"./embed-page-chunk-U276WBDI.js";import{a as P}from"./embed-page-chunk-MB65DZAX.js";import{Fa as C,La as $,Z as N,va as S}from"./embed-page-chunk-O4QK5LWZ.js";import{a as V}from"./embed-page-chunk-4BKXE5ON.js";import{e as w}from"./embed-page-chunk-6Y3UYJ6Z.js";var m=w(V());function X(t,o){if(t.parentId&&t.parentId!==t.id&&o.has(t.parentId))return t.parentId;for(let c of t.dependencies??[])if(c!==t.id&&o.has(c))return c}function D(t,o){let u=o?.hideCompleted??!1?t.filter(e=>!b(e.status)):t,g=new Map(u.map(e=>[e.id,e])),d=new Map;for(let e of u)d.set(e.id,X(e,g));let r=new Set;for(let e of d.keys()){if(r.has(e))continue;let l=new Map,p=e,h=0;for(;p!==void 0&&!r.has(p)&&!l.has(p);)l.set(p,h),h+=1,p=d.get(p);if(p!==void 0&&l.has(p)){let y=l.get(p);for(let[i,f]of l)f>=y&&r.add(i)}}for(let e of r)d.set(e,void 0);let x=new Map;for(let e of u)x.set(e.id,[]);for(let e of u){let l=d.get(e.id);l!==void 0&&x.get(l).push(e.id)}let s=e=>({task:g.get(e),children:(x.get(e)??[]).map(s)});return u.filter(e=>d.get(e.id)===void 0).map(e=>s(e.id))}var n=w(P()),{Text:z}=$,Y=16,q=3,J=O(({css:t,token:o})=>({root:t`
2
+ display: flex;
3
+ flex-direction: column;
4
+ height: 100%;
5
+ `,toolbar:t`
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: flex-end;
9
+ gap: 8px;
10
+ padding: 0 0 12px;
11
+ flex-shrink: 0;
12
+ `,list:t`
13
+ margin: 0;
14
+ padding: 0;
15
+ list-style: none;
16
+ flex: 1;
17
+ min-height: 0;
18
+ min-width: 0;
19
+ overflow-x: hidden;
20
+ overflow-y: auto;
21
+ display: flex;
22
+ flex-direction: column;
23
+ gap: 2px;
24
+ `,listItem:t`
25
+ margin: 0;
26
+ padding: 0;
27
+ min-width: 0;
28
+ list-style: none;
29
+ `,childList:t`
30
+ margin: 0;
31
+ padding: 0;
32
+ min-width: 0;
33
+ list-style: none;
34
+ display: flex;
35
+ flex-direction: column;
36
+ gap: 2px;
37
+ `,spinner:t`
38
+ flex: 1;
39
+ display: flex;
40
+ align-items: center;
41
+ justify-content: center;
42
+ `,empty:t`
43
+ flex: 1;
44
+ display: flex;
45
+ align-items: center;
46
+ justify-content: center;
47
+ `,row:t`
48
+ display: flex;
49
+ align-items: center;
50
+ gap: 8px;
51
+ width: 100%;
52
+ min-width: 0;
53
+ box-sizing: border-box;
54
+ padding: 4px 10px;
55
+ border-radius: 8px;
56
+ transition: background 0.15s ease;
57
+
58
+ &:hover {
59
+ background: ${o.colorFillTertiary};
60
+ }
61
+ `,toggle:t`
62
+ appearance: none;
63
+ padding: 0;
64
+ border: 0;
65
+ background: transparent;
66
+ font: inherit;
67
+ display: inline-flex;
68
+ align-items: center;
69
+ justify-content: center;
70
+ width: 32px;
71
+ height: 32px;
72
+ flex-shrink: 0;
73
+ cursor: pointer;
74
+ color: ${o.colorTextTertiary};
75
+ border-radius: 4px;
76
+
77
+ &:hover {
78
+ color: ${o.colorText};
79
+ background: ${o.colorFillSecondary};
80
+ }
81
+
82
+ &:active {
83
+ background: ${o.colorFill};
84
+ }
85
+
86
+ &:focus-visible {
87
+ outline: 2px solid ${o.colorPrimary};
88
+ outline-offset: 2px;
89
+ }
90
+ `,togglePlaceholder:t`
91
+ width: 32px;
92
+ height: 32px;
93
+ flex-shrink: 0;
94
+ `,open:t`
95
+ appearance: none;
96
+ padding: 0;
97
+ border: 0;
98
+ background: transparent;
99
+ font: inherit;
100
+ color: inherit;
101
+ text-align: left;
102
+ display: flex;
103
+ align-items: center;
104
+ gap: 8px;
105
+ flex: 1;
106
+ min-width: 0;
107
+ min-height: 32px;
108
+ overflow: hidden;
109
+ cursor: pointer;
110
+ border-radius: 4px;
111
+
112
+ &:hover {
113
+ color: ${o.colorText};
114
+ }
115
+
116
+ &:active {
117
+ opacity: 0.75;
118
+ }
119
+
120
+ &:focus-visible {
121
+ outline: 2px solid ${o.colorPrimary};
122
+ outline-offset: 2px;
123
+ }
124
+ `,statusDot:t`
125
+ width: 8px;
126
+ height: 8px;
127
+ border-radius: 50%;
128
+ flex-shrink: 0;
129
+ `,title:t`
130
+ flex: 1;
131
+ min-width: 8ch;
132
+ overflow: hidden;
133
+ text-overflow: ellipsis;
134
+ white-space: nowrap;
135
+ font-size: 14px;
136
+ `,priorityBadge:t`
137
+ display: inline-flex;
138
+ align-items: center;
139
+ padding: 1px 6px;
140
+ border-radius: 4px;
141
+ font-size: 11px;
142
+ font-weight: 500;
143
+ flex-shrink: 0;
144
+ `,depBadge:t`
145
+ display: inline-flex;
146
+ align-items: center;
147
+ gap: 3px;
148
+ padding: 1px 6px;
149
+ border-radius: 4px;
150
+ font-size: 11px;
151
+ font-weight: 500;
152
+ flex-shrink: 0;
153
+ `}));function K(t,o){let c=(t.dependencies??[]).filter(g=>o.has(g));if(c.length===0)return null;let u=c.filter(g=>{let d=o.get(g);return d?!b(d.status):!1});return u.length>0?{type:"warning",count:u.length}:{type:"ok",count:c.length}}function E({node:t,depth:o,groupIdPrefix:c,collapsedIds:u,onToggle:g,onTaskClick:d,onRun:r,allById:x,styles:s}){let{task:e,children:l}=t,p=l.length>0,h=u.has(e.id),y=I[e.status]??I.pending,i=v[e.priority]??v.medium,f=M(e),a=K(e,x),k=`${c}-${encodeURIComponent(e.id)}`,A=e.status.replace(/_/g," "),H=a?`${a.count} ${a.type==="warning"?"incomplete":"completed"} ${a.count===1?"dependency":"dependencies"}`:"no dependencies",_=`Open task ${e.title}, status ${A}, priority ${i.label}, ${H}`,F=Math.min(o,q),j=o<2,U=a&&(a.type==="warning"||o<3);return(0,n.jsxs)("li",{className:s.listItem,children:[(0,n.jsxs)("div",{"data-testid":"outline-row",className:s.row,style:{paddingLeft:10+F*Y},children:[p?(0,n.jsx)("button",{type:"button","data-testid":"outline-toggle","aria-label":`${h?"Expand":"Collapse"} subtasks for ${e.title}`,"aria-expanded":!h,"aria-controls":k,className:s.toggle,onClick:()=>g(e.id),children:h?(0,n.jsx)(B,{size:14}):(0,n.jsx)(R,{size:14})}):(0,n.jsx)("span",{className:s.togglePlaceholder}),(0,n.jsxs)("button",{type:"button","data-testid":"outline-open","aria-label":_,className:s.open,onClick:()=>d(e),children:[(0,n.jsx)("span",{"data-testid":"outline-status-dot","aria-hidden":"true",className:s.statusDot,style:{background:y}}),(0,n.jsx)(z,{className:s.title,ellipsis:{tooltip:e.title},children:e.title}),(0,n.jsx)("span",{"data-testid":"outline-origin-dot",className:s.statusDot,style:{background:f.color},title:f.label}),j&&(0,n.jsx)("span",{className:s.priorityBadge,style:{background:`${i.color}18`,color:i.color},children:i.label}),U&&(0,n.jsxs)("span",{className:s.depBadge,style:a.type==="warning"?{background:"#f59e0b18",color:"#f59e0b"}:{background:"#22c55e18",color:"#22c55e"},children:[a.type==="warning"?"\u26A0 \u7B49\u5F85 ":"\u2713 ",a.count]})]}),r&&(0,n.jsx)(L,{task:e,onRun:(T,G)=>r(e,T,G)})]}),p&&(0,n.jsx)("ul",{id:k,className:s.childList,hidden:h,children:!h&&l.map(T=>(0,n.jsx)(E,{node:T,depth:o+1,groupIdPrefix:c,collapsedIds:u,onToggle:g,onTaskClick:d,onRun:r,allById:x,styles:s},T.task.id))})]})}var re=({tasks:t,loading:o,onTaskClick:c,onRun:u,hideCompleted:g=!1,onHideCompletedChange:d})=>{let{styles:r}=J(),x=`outline-subtasks-${(0,m.useId)()}`,s=(0,m.useMemo)(()=>D(t,{hideCompleted:g}),[t,g]),e=(0,m.useMemo)(()=>new Map(t.map(i=>[i.id,i])),[t]),l=(0,m.useMemo)(()=>{let i=new Map,f=a=>{i.set(a.task.id,a.task),a.children.forEach(f)};return s.forEach(f),i},[s]),[p,h]=(0,m.useState)(new Set);(0,m.useEffect)(()=>{h(i=>{let f=!1,a=new Set;for(let k of i)l.has(k)?a.add(k):f=!0;return f?a:i})},[l]);let y=(0,m.useCallback)(i=>{h(f=>{let a=new Set(f);return a.has(i)?a.delete(i):a.add(i),a})},[]);return o?(0,n.jsx)("div",{className:r.spinner,children:(0,n.jsx)(S,{size:"large"})}):(0,n.jsxs)("div",{className:r.root,children:[(0,n.jsxs)("div",{className:r.toolbar,children:[(0,n.jsx)(C,{size:"small",checked:g,onChange:i=>d?.(i),"aria-label":"Hide completed"}),(0,n.jsx)(z,{type:"secondary",style:{fontSize:13},children:"Hide completed"})]}),s.length===0?(0,n.jsx)("div",{className:r.empty,children:(0,n.jsx)(N,{description:"No tasks"})}):(0,n.jsx)("ul",{className:r.list,children:s.map(i=>(0,n.jsx)(E,{node:i,depth:0,groupIdPrefix:x,collapsedIds:p,onToggle:y,onTaskClick:c,onRun:u,allById:e,styles:r},i.task.id))})]})};export{re as a};