@axiom-lattice/gateway 4.4.2 → 4.5.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 (31) 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-I4ZT3MQQ.js} +1 -1
  4. package/dist/embed/{embed-page-AgentGovernanceWorkbench-WG7E3G5T.js → embed-page-AgentGovernanceWorkbench-HVFB6EPY.js} +1 -1
  5. package/dist/embed/{embed-page-MessageGraph-5SWPEQ4V.js → embed-page-MessageGraph-CZQROEO7.js} +1 -1
  6. package/dist/embed/{embed-page-ReactChart-ZYWRXIMC.js → embed-page-ReactChart-WMWBSL54.js} +1 -1
  7. package/dist/embed/{embed-page-SkillFlow-TKBMB5VV.js → embed-page-SkillFlow-5JLJ5R57.js} +1 -1
  8. package/dist/embed/embed-page-TasksSideApp-5BYTO4KT.js +254 -0
  9. package/dist/embed/{embed-page-TeamWorkspace-XNZM7AV7.js → embed-page-TeamWorkspace-5KN7ZZWQ.js} +1 -1
  10. package/dist/embed/{embed-page-TopologyRuntimeView-DGSHSTIU.js → embed-page-TopologyRuntimeView-S6XAQHDF.js} +1 -1
  11. package/dist/embed/{embed-page-WorkflowAutomationView-BHIRIWV3.js → embed-page-WorkflowAutomationView-E6G446HW.js} +1 -1
  12. package/dist/embed/embed-page-chunk-2JOGNXZT.js +245 -0
  13. package/dist/embed/embed-page-chunk-7GAD6Q52.js +6986 -0
  14. package/dist/embed/{embed-page-chunk-JMZ7OODN.js → embed-page-chunk-DSQ4DIQY.js} +1 -1
  15. package/dist/embed/{embed-page-chunk-YCX5YZRP.js → embed-page-chunk-KDWA6VOG.js} +1 -1
  16. package/dist/embed/embed-page-chunk-MUE3GWJV.js +153 -0
  17. package/dist/embed/{embed-page-chunk-HMTKPZ5B.js → embed-page-chunk-QU52HUXW.js} +1 -1
  18. package/dist/embed/{embed-page-chunk-XUXEGF3S.js → embed-page-chunk-YQ3BA27D.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 +5757 -5237
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.mjs +5765 -5247
  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-SPC4BYNU.js +0 -6974
@@ -1,153 +0,0 @@
1
- import{ab as T,o as O,q as P,va as L}from"./embed-page-chunk-SPC4BYNU.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
- display: flex;
3
- flex-direction: column;
4
- height: 100%;
5
- `,toolbar:e`
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:e`
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:e`
25
- margin: 0;
26
- padding: 0;
27
- min-width: 0;
28
- list-style: none;
29
- `,childList:e`
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:e`
38
- flex: 1;
39
- display: flex;
40
- align-items: center;
41
- justify-content: center;
42
- `,empty:e`
43
- flex: 1;
44
- display: flex;
45
- align-items: center;
46
- justify-content: center;
47
- `,row:e`
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:e`
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:e`
91
- width: 32px;
92
- height: 32px;
93
- flex-shrink: 0;
94
- `,open:e`
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:e`
125
- width: 8px;
126
- height: 8px;
127
- border-radius: 50%;
128
- flex-shrink: 0;
129
- `,title:e`
130
- flex: 1;
131
- min-width: 8ch;
132
- overflow: hidden;
133
- text-overflow: ellipsis;
134
- white-space: nowrap;
135
- font-size: 14px;
136
- `,priorityBadge:e`
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:e`
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(e,o){let g=(e.dependencies??[]).filter(m=>o.has(m));if(g.length===0)return null;let c=g.filter(m=>{let a=o.get(m);return a?!T(a.status):!1});return c.length>0?{type:"warning",count:c.length}:{type:"ok",count:g.length}}function D({node:e,depth:o,groupIdPrefix:g,collapsedIds:c,onToggle:m,onTaskClick:a,allById:h,styles:r}){let{task:d,children:t}=e,f=t.length>0,l=c.has(d.id),x=k[d.status]??k.pending,i=w[d.priority]??w.medium,s=K(d,h),p=`${g}-${encodeURIComponent(d.id)}`,y=d.status.replace(/_/g," "),E=s?`${s.count} ${s.type==="warning"?"incomplete":"completed"} ${s.count===1?"dependency":"dependencies"}`:"no dependencies",M=`Open task ${d.title}, status ${y}, priority ${i.label}, ${E}`,_=Math.min(o,j),A=o<2,H=s&&(s.type==="warning"||o<3);return(0,n.jsxs)("li",{className:r.listItem,children:[(0,n.jsxs)("div",{"data-testid":"outline-row",className:r.row,style:{paddingLeft:10+_*U},children:[f?(0,n.jsx)("button",{type:"button","data-testid":"outline-toggle","aria-label":`${l?"Expand":"Collapse"} subtasks for ${d.title}`,"aria-expanded":!l,"aria-controls":p,className:r.toggle,onClick:()=>m(d.id),children:l?(0,n.jsx)(P,{size:14}):(0,n.jsx)(O,{size:14})}):(0,n.jsx)("span",{className:r.togglePlaceholder}),(0,n.jsxs)("button",{type:"button","data-testid":"outline-open","aria-label":M,className:r.open,onClick:()=>a(d),children:[(0,n.jsx)("span",{"data-testid":"outline-status-dot","aria-hidden":"true",className:r.statusDot,style:{background:x}}),(0,n.jsx)(B,{className:r.title,ellipsis:{tooltip:d.title},children:d.title}),A&&(0,n.jsx)("span",{className:r.priorityBadge,style:{background:`${i.color}18`,color:i.color},children:i.label}),H&&(0,n.jsxs)("span",{className:r.depBadge,style:s.type==="warning"?{background:"#f59e0b18",color:"#f59e0b"}:{background:"#22c55e18",color:"#22c55e"},children:[s.type==="warning"?"\u26A0 \u7B49\u5F85 ":"\u2713 ",s.count]})]})]}),f&&(0,n.jsx)("ul",{id:p,className:r.childList,hidden:l,children:!l&&t.map(I=>(0,n.jsx)(D,{node:I,depth:o+1,groupIdPrefix:g,collapsedIds:c,onToggle:m,onTaskClick:a,allById:h,styles:r},I.task.id))})]})}var oe=({tasks:e,loading:o,onTaskClick:g,hideCompleted:c=!1,onHideCompletedChange:m})=>{let{styles:a}=G(),h=`outline-subtasks-${(0,u.useId)()}`,r=(0,u.useMemo)(()=>R(e,{hideCompleted:c}),[e,c]),d=(0,u.useMemo)(()=>new Map(e.map(i=>[i.id,i])),[e]),t=(0,u.useMemo)(()=>{let i=new Map,s=p=>{i.set(p.task.id,p.task),p.children.forEach(s)};return r.forEach(s),i},[r]),[f,l]=(0,u.useState)(new Set);(0,u.useEffect)(()=>{l(i=>{let s=!1,p=new Set;for(let y of i)t.has(y)?p.add(y):s=!0;return s?p:i})},[t]);let x=(0,u.useCallback)(i=>{l(s=>{let p=new Set(s);return p.has(i)?p.delete(i):p.add(i),p})},[]);return o?(0,n.jsx)("div",{className:a.spinner,children:(0,n.jsx)(S,{size:"large"})}):(0,n.jsxs)("div",{className:a.root,children:[(0,n.jsxs)("div",{className:a.toolbar,children:[(0,n.jsx)(N,{size:"small",checked:c,onChange:i=>m?.(i),"aria-label":"Hide completed"}),(0,n.jsx)(B,{type:"secondary",style:{fontSize:13},children:"Hide completed"})]}),r.length===0?(0,n.jsx)("div",{className:a.empty,children:(0,n.jsx)(v,{description:"No tasks"})}):(0,n.jsx)("ul",{className:a.list,children:r.map(i=>(0,n.jsx)(D,{node:i,depth:0,groupIdPrefix:h,collapsedIds:f,onToggle:x,onTaskClick:g,allById:d,styles:a},i.task.id))})]})};export{k as a,w as b,Y as c,V as d,oe as e};