@av-pi-studio/web-client 0.0.99 → 0.0.100

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 (24) hide show
  1. package/dist/web/assets/{BinaryFallbackViewer-CIUbhU6S.js → BinaryFallbackViewer-DsgSasPb.js} +1 -1
  2. package/dist/web/assets/ChatPanel-5StSD3qU.js +8 -0
  3. package/dist/web/assets/{CodeView-tTFZ6O7m.js → CodeView-B6qfEGak.js} +1 -1
  4. package/dist/web/assets/{FilePanel-DgBPNN7t.js → FilePanel-BxaguwwC.js} +1 -1
  5. package/dist/web/assets/{HtmlViewer-BfvqFeyQ.js → HtmlViewer-C7YMSrJq.js} +1 -1
  6. package/dist/web/assets/{ImageViewer-Bbdt4eUi.js → ImageViewer-CfaHY3CC.js} +1 -1
  7. package/dist/web/assets/{MarkdownFileViewer-CuAfTySH.js → MarkdownFileViewer-DbLEkHGc.js} +1 -1
  8. package/dist/web/assets/{ModelProvidersPanel-D4NS6sTN.js → ModelProvidersPanel-bUBf6AX3.js} +1 -1
  9. package/dist/web/assets/{MoleculeViewerPanel-e7duaFN5.js → MoleculeViewerPanel-C00LtvUk.js} +1 -1
  10. package/dist/web/assets/{SettingsDialog-BeL9gX3w.js → SettingsDialog-BgKorpjK.js} +3 -3
  11. package/dist/web/assets/{TerminalPanel-BmhICTS5.js → TerminalPanel-D9ohBkwX.js} +1 -1
  12. package/dist/web/assets/{TextViewer-DKp_791T.js → TextViewer-D9ipyA5F.js} +1 -1
  13. package/dist/web/assets/{VideoViewer-BGBgjXy0.js → VideoViewer-h2_s2ofo.js} +1 -1
  14. package/dist/web/assets/{href-resolution-D-RbYZ4x.js → href-resolution-CIziox_W.js} +1 -1
  15. package/dist/web/assets/index-CisETjfy.js +19 -0
  16. package/dist/web/assets/{markdown-CLZqSd0W.js → markdown-DIRIvR-0.js} +1 -1
  17. package/dist/web/assets/{use-file-download-CE_lFGib.js → use-file-download-DMsI7yqE.js} +1 -1
  18. package/dist/web/assets/{use-file-watch-djGUJx2o.js → use-file-watch-B_k8jx0c.js} +1 -1
  19. package/dist/web/assets/{use-provider-auth-list-BI-o73oF.js → use-provider-auth-list-BE34ej1x.js} +1 -1
  20. package/dist/web/assets/{vendor-icons-oIrAStms.js → vendor-icons-C3PrZPxy.js} +60 -55
  21. package/dist/web/index.html +2 -2
  22. package/package.json +3 -3
  23. package/dist/web/assets/ChatPanel-DpFd7LBW.js +0 -8
  24. package/dist/web/assets/index-DZlnqOHt.js +0 -19
@@ -1,4 +1,4 @@
1
- import{r as s}from"./vendor-react-DQUAl2K8.js";/**
1
+ import{r as h}from"./vendor-react-DQUAl2K8.js";/**
2
2
  * @license lucide-react v0.475.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -13,32 +13,32 @@ import{r as s}from"./vendor-react-DQUAl2K8.js";/**
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
- */const M=s.forwardRef(({color:a="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:c,className:h="",children:n,iconNode:i,...d},r)=>s.createElement("svg",{ref:r,..._,width:t,height:t,stroke:a,strokeWidth:c?Number(o)*24/Number(t):o,className:y("lucide",h),...d},[...i.map(([l,k])=>s.createElement(l,k)),...Array.isArray(n)?n:[n]]));/**
16
+ */const M=h.forwardRef(({color:a="currentColor",size:t=24,strokeWidth:o=2,absoluteStrokeWidth:c,className:s="",children:n,iconNode:d,...i},r)=>h.createElement("svg",{ref:r,..._,width:t,height:t,stroke:a,strokeWidth:c?Number(o)*24/Number(t):o,className:y("lucide",s),...i},[...d.map(([l,k])=>h.createElement(l,k)),...Array.isArray(n)?n:[n]]));/**
17
17
  * @license lucide-react v0.475.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const e=(a,t)=>{const o=s.forwardRef(({className:c,...h},n)=>s.createElement(M,{ref:n,iconNode:t,className:y(`lucide-${p(a)}`,c),...h}));return o.displayName=`${a}`,o};/**
21
+ */const e=(a,t)=>{const o=h.forwardRef(({className:c,...s},n)=>h.createElement(M,{ref:n,iconNode:t,className:y(`lucide-${p(a)}`,c),...s}));return o.displayName=`${a}`,o};/**
22
22
  * @license lucide-react v0.475.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */const x=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],m1=e("Archive",x);/**
26
+ */const x=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],g1=e("Archive",x);/**
27
27
  * @license lucide-react v0.475.0 - ISC
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
- */const v=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],g1=e("ArrowDown",v);/**
31
+ */const v=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],N1=e("ArrowDown",v);/**
32
32
  * @license lucide-react v0.475.0 - ISC
33
33
  *
34
34
  * This source code is licensed under the ISC license.
35
35
  * See the LICENSE file in the root directory of this source tree.
36
- */const m=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],N1=e("ArrowUpRight",m);/**
36
+ */const m=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],$1=e("ArrowUpRight",m);/**
37
37
  * @license lucide-react v0.475.0 - ISC
38
38
  *
39
39
  * This source code is licensed under the ISC license.
40
40
  * See the LICENSE file in the root directory of this source tree.
41
- */const g=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],$1=e("ArrowUp",g);/**
41
+ */const g=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],u1=e("ArrowUp",g);/**
42
42
  * @license lucide-react v0.475.0 - ISC
43
43
  *
44
44
  * This source code is licensed under the ISC license.
@@ -48,22 +48,22 @@ import{r as s}from"./vendor-react-DQUAl2K8.js";/**
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
- */const $=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],u1=e("Bot",$);/**
51
+ */const $=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],q1=e("Bot",$);/**
52
52
  * @license lucide-react v0.475.0 - ISC
53
53
  *
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
- */const w=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],q1=e("Brain",w);/**
56
+ */const u=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],f1=e("Brain",u);/**
57
57
  * @license lucide-react v0.475.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
60
60
  * See the LICENSE file in the root directory of this source tree.
61
- */const u=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],f1=e("Check",u);/**
61
+ */const w=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],C1=e("Check",w);/**
62
62
  * @license lucide-react v0.475.0 - ISC
63
63
  *
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
- */const q=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],C1=e("ChevronDown",q);/**
66
+ */const q=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],b1=e("ChevronDown",q);/**
67
67
  * @license lucide-react v0.475.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
@@ -78,219 +78,224 @@ import{r as s}from"./vendor-react-DQUAl2K8.js";/**
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
- */const A=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],b1=e("CircleHelp",A);/**
81
+ */const b=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],z1=e("CircleHelp",b);/**
82
82
  * @license lucide-react v0.475.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const H=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],z1=e("Clock",H);/**
86
+ */const A=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],V1=e("Clock",A);/**
87
87
  * @license lucide-react v0.475.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
- */const b=[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]],V1=e("Coins",b);/**
91
+ */const H=[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]],L1=e("Coins",H);/**
92
92
  * @license lucide-react v0.475.0 - ISC
93
93
  *
94
94
  * This source code is licensed under the ISC license.
95
95
  * See the LICENSE file in the root directory of this source tree.
96
- */const z=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],L1=e("Columns2",z);/**
96
+ */const z=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],P1=e("Columns2",z);/**
97
97
  * @license lucide-react v0.475.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
- */const V=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],P1=e("Copy",V);/**
101
+ */const V=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],R1=e("Copy",V);/**
102
102
  * @license lucide-react v0.475.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
- */const L=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],R1=e("DollarSign",L);/**
106
+ */const L=[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]],F1=e("Cpu",L);/**
107
107
  * @license lucide-react v0.475.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const P=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],F1=e("Download",P);/**
111
+ */const P=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],S1=e("DollarSign",P);/**
112
112
  * @license lucide-react v0.475.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const R=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],S1=e("EllipsisVertical",R);/**
116
+ */const R=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],j1=e("Download",R);/**
117
117
  * @license lucide-react v0.475.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const F=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],j1=e("ExternalLink",F);/**
121
+ */const F=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],E1=e("EllipsisVertical",F);/**
122
122
  * @license lucide-react v0.475.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const S=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],E1=e("Eye",S);/**
126
+ */const S=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],T1=e("ExternalLink",S);/**
127
127
  * @license lucide-react v0.475.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const j=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],T1=e("FilePlus",j);/**
131
+ */const j=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Z1=e("Eye",j);/**
132
132
  * @license lucide-react v0.475.0 - ISC
133
133
  *
134
134
  * This source code is licensed under the ISC license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
- */const E=[["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]],Z1=e("FileQuestion",E);/**
136
+ */const E=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],B1=e("FilePlus",E);/**
137
137
  * @license lucide-react v0.475.0 - ISC
138
138
  *
139
139
  * This source code is licensed under the ISC license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
- */const T=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],B1=e("FileText",T);/**
141
+ */const T=[["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]],D1=e("FileQuestion",T);/**
142
142
  * @license lucide-react v0.475.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
145
145
  * See the LICENSE file in the root directory of this source tree.
146
- */const Z=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],D1=e("File",Z);/**
146
+ */const Z=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],G1=e("FileText",Z);/**
147
147
  * @license lucide-react v0.475.0 - ISC
148
148
  *
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
- */const B=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],G1=e("FolderOpen",B);/**
151
+ */const B=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],O1=e("File",B);/**
152
152
  * @license lucide-react v0.475.0 - ISC
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
- */const D=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],O1=e("FolderPlus",D);/**
156
+ */const D=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],U1=e("FolderOpen",D);/**
157
157
  * @license lucide-react v0.475.0 - ISC
158
158
  *
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
- */const G=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],U1=e("Folder",G);/**
161
+ */const G=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],K1=e("FolderPlus",G);/**
162
162
  * @license lucide-react v0.475.0 - ISC
163
163
  *
164
164
  * This source code is licensed under the ISC license.
165
165
  * See the LICENSE file in the root directory of this source tree.
166
- */const O=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],K1=e("Gauge",O);/**
166
+ */const O=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],I1=e("Folder",O);/**
167
167
  * @license lucide-react v0.475.0 - ISC
168
168
  *
169
169
  * This source code is licensed under the ISC license.
170
170
  * See the LICENSE file in the root directory of this source tree.
171
- */const U=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],I1=e("GitBranch",U);/**
171
+ */const U=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Q1=e("Gauge",U);/**
172
172
  * @license lucide-react v0.475.0 - ISC
173
173
  *
174
174
  * This source code is licensed under the ISC license.
175
175
  * See the LICENSE file in the root directory of this source tree.
176
- */const K=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]],Q1=e("GitCompare",K);/**
176
+ */const K=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],J1=e("GitBranch",K);/**
177
177
  * @license lucide-react v0.475.0 - ISC
178
178
  *
179
179
  * This source code is licensed under the ISC license.
180
180
  * See the LICENSE file in the root directory of this source tree.
181
- */const I=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],J1=e("Globe",I);/**
181
+ */const I=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]],W1=e("GitCompare",I);/**
182
182
  * @license lucide-react v0.475.0 - ISC
183
183
  *
184
184
  * This source code is licensed under the ISC license.
185
185
  * See the LICENSE file in the root directory of this source tree.
186
- */const Q=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],W1=e("KeyRound",Q);/**
186
+ */const Q=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],X1=e("Globe",Q);/**
187
187
  * @license lucide-react v0.475.0 - ISC
188
188
  *
189
189
  * This source code is licensed under the ISC license.
190
190
  * See the LICENSE file in the root directory of this source tree.
191
- */const J=[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]],X1=e("ListTree",J);/**
191
+ */const J=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Y1=e("KeyRound",J);/**
192
192
  * @license lucide-react v0.475.0 - ISC
193
193
  *
194
194
  * This source code is licensed under the ISC license.
195
195
  * See the LICENSE file in the root directory of this source tree.
196
- */const W=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Y1=e("LoaderCircle",W);/**
196
+ */const W=[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]],e2=e("ListTree",W);/**
197
197
  * @license lucide-react v0.475.0 - ISC
198
198
  *
199
199
  * This source code is licensed under the ISC license.
200
200
  * See the LICENSE file in the root directory of this source tree.
201
- */const X=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],e2=e("MessageSquare",X);/**
201
+ */const X=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],t2=e("LoaderCircle",X);/**
202
202
  * @license lucide-react v0.475.0 - ISC
203
203
  *
204
204
  * This source code is licensed under the ISC license.
205
205
  * See the LICENSE file in the root directory of this source tree.
206
- */const Y=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],t2=e("Navigation",Y);/**
206
+ */const Y=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],a2=e("MessageSquare",Y);/**
207
207
  * @license lucide-react v0.475.0 - ISC
208
208
  *
209
209
  * This source code is licensed under the ISC license.
210
210
  * See the LICENSE file in the root directory of this source tree.
211
- */const e1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],a2=e("PanelLeftClose",e1);/**
211
+ */const e1=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],o2=e("Navigation",e1);/**
212
212
  * @license lucide-react v0.475.0 - ISC
213
213
  *
214
214
  * This source code is licensed under the ISC license.
215
215
  * See the LICENSE file in the root directory of this source tree.
216
- */const t1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],o2=e("PanelLeftOpen",t1);/**
216
+ */const t1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],c2=e("PanelLeftClose",t1);/**
217
217
  * @license lucide-react v0.475.0 - ISC
218
218
  *
219
219
  * This source code is licensed under the ISC license.
220
220
  * See the LICENSE file in the root directory of this source tree.
221
- */const a1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],c2=e("PanelRightClose",a1);/**
221
+ */const a1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],n2=e("PanelLeftOpen",a1);/**
222
222
  * @license lucide-react v0.475.0 - ISC
223
223
  *
224
224
  * This source code is licensed under the ISC license.
225
225
  * See the LICENSE file in the root directory of this source tree.
226
- */const o1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],n2=e("PanelRightOpen",o1);/**
226
+ */const o1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],h2=e("PanelRightClose",o1);/**
227
227
  * @license lucide-react v0.475.0 - ISC
228
228
  *
229
229
  * This source code is licensed under the ISC license.
230
230
  * See the LICENSE file in the root directory of this source tree.
231
- */const c1=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],s2=e("Pencil",c1);/**
231
+ */const c1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],s2=e("PanelRightOpen",c1);/**
232
232
  * @license lucide-react v0.475.0 - ISC
233
233
  *
234
234
  * This source code is licensed under the ISC license.
235
235
  * See the LICENSE file in the root directory of this source tree.
236
- */const n1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],h2=e("Plus",n1);/**
236
+ */const n1=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],y2=e("Pencil",n1);/**
237
237
  * @license lucide-react v0.475.0 - ISC
238
238
  *
239
239
  * This source code is licensed under the ISC license.
240
240
  * See the LICENSE file in the root directory of this source tree.
241
- */const s1=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],y2=e("RotateCw",s1);/**
241
+ */const h1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],d2=e("Plus",h1);/**
242
242
  * @license lucide-react v0.475.0 - ISC
243
243
  *
244
244
  * This source code is licensed under the ISC license.
245
245
  * See the LICENSE file in the root directory of this source tree.
246
- */const h1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]],i2=e("Rows2",h1);/**
246
+ */const s1=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],i2=e("RotateCw",s1);/**
247
247
  * @license lucide-react v0.475.0 - ISC
248
248
  *
249
249
  * This source code is licensed under the ISC license.
250
250
  * See the LICENSE file in the root directory of this source tree.
251
- */const y1=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],d2=e("Search",y1);/**
251
+ */const y1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]],r2=e("Rows2",y1);/**
252
252
  * @license lucide-react v0.475.0 - ISC
253
253
  *
254
254
  * This source code is licensed under the ISC license.
255
255
  * See the LICENSE file in the root directory of this source tree.
256
- */const i1=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],r2=e("Settings",i1);/**
256
+ */const d1=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],l2=e("Search",d1);/**
257
257
  * @license lucide-react v0.475.0 - ISC
258
258
  *
259
259
  * This source code is licensed under the ISC license.
260
260
  * See the LICENSE file in the root directory of this source tree.
261
- */const d1=[["path",{d:"M22 2 2 22",key:"y4kqgn"}]],l2=e("Slash",d1);/**
261
+ */const i1=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],k2=e("Settings",i1);/**
262
262
  * @license lucide-react v0.475.0 - ISC
263
263
  *
264
264
  * This source code is licensed under the ISC license.
265
265
  * See the LICENSE file in the root directory of this source tree.
266
- */const r1=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],k2=e("SquareTerminal",r1);/**
266
+ */const r1=[["path",{d:"M22 2 2 22",key:"y4kqgn"}]],p2=e("Slash",r1);/**
267
267
  * @license lucide-react v0.475.0 - ISC
268
268
  *
269
269
  * This source code is licensed under the ISC license.
270
270
  * See the LICENSE file in the root directory of this source tree.
271
- */const l1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],p2=e("Square",l1);/**
271
+ */const l1=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],_2=e("SquareTerminal",l1);/**
272
272
  * @license lucide-react v0.475.0 - ISC
273
273
  *
274
274
  * This source code is licensed under the ISC license.
275
275
  * See the LICENSE file in the root directory of this source tree.
276
- */const k1=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],_2=e("Terminal",k1);/**
276
+ */const k1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],M2=e("Square",k1);/**
277
277
  * @license lucide-react v0.475.0 - ISC
278
278
  *
279
279
  * This source code is licensed under the ISC license.
280
280
  * See the LICENSE file in the root directory of this source tree.
281
- */const p1=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],M2=e("Trash2",p1);/**
281
+ */const p1=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],x2=e("Terminal",p1);/**
282
282
  * @license lucide-react v0.475.0 - ISC
283
283
  *
284
284
  * This source code is licensed under the ISC license.
285
285
  * See the LICENSE file in the root directory of this source tree.
286
- */const _1=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],x2=e("Upload",_1);/**
286
+ */const _1=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],v2=e("Trash2",_1);/**
287
287
  * @license lucide-react v0.475.0 - ISC
288
288
  *
289
289
  * This source code is licensed under the ISC license.
290
290
  * See the LICENSE file in the root directory of this source tree.
291
- */const M1=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],v2=e("User",M1);/**
291
+ */const M1=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],m2=e("Upload",M1);/**
292
292
  * @license lucide-react v0.475.0 - ISC
293
293
  *
294
294
  * This source code is licensed under the ISC license.
295
295
  * See the LICENSE file in the root directory of this source tree.
296
- */const x1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],m2=e("X",x1);export{V1 as $,N1 as A,u1 as B,b1 as C,D1 as D,E1 as E,Z1 as F,J1 as G,L1 as H,G1 as I,U1 as J,W1 as K,X1 as L,e2 as M,t2 as N,O1 as O,s2 as P,B1 as Q,i2 as R,d2 as S,_2 as T,v2 as U,F1 as V,x2 as W,m2 as X,y2 as Y,I1 as Z,K1 as _,T1 as a,R1 as a0,f1 as b,q1 as c,A1 as d,z1 as e,H1 as f,g1 as g,h2 as h,l2 as i,C1 as j,p2 as k,$1 as l,j1 as m,P1 as n,Y1 as o,o2 as p,a2 as q,n2 as r,c2 as s,r2 as t,S1 as u,m1 as v,M2 as w,w1 as x,k2 as y,Q1 as z};
296
+ */const x1=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],g2=e("User",x1);/**
297
+ * @license lucide-react v0.475.0 - ISC
298
+ *
299
+ * This source code is licensed under the ISC license.
300
+ * See the LICENSE file in the root directory of this source tree.
301
+ */const v1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],N2=e("X",v1);export{Q1 as $,$1 as A,q1 as B,z1 as C,W1 as D,Z1 as E,D1 as F,X1 as G,O1 as H,P1 as I,U1 as J,Y1 as K,e2 as L,a2 as M,o2 as N,I1 as O,y2 as P,K1 as Q,r2 as R,l2 as S,x2 as T,g2 as U,G1 as V,j1 as W,N2 as X,m2 as Y,i2 as Z,J1 as _,B1 as a,L1 as a0,S1 as a1,C1 as b,f1 as c,A1 as d,V1 as e,H1 as f,N1 as g,d2 as h,p2 as i,F1 as j,b1 as k,M2 as l,u1 as m,T1 as n,R1 as o,t2 as p,n2 as q,c2 as r,s2 as s,h2 as t,k2 as u,E1 as v,g1 as w,v2 as x,w1 as y,_2 as z};
@@ -5,11 +5,11 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
7
7
  <title>Pi-Studio</title>
8
- <script type="module" crossorigin src="/assets/index-DZlnqOHt.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-CisETjfy.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/assets/vendor-react-DQUAl2K8.js">
10
10
  <link rel="modulepreload" crossorigin href="/assets/vendor-query-i7fr__Xm.js">
11
11
  <link rel="modulepreload" crossorigin href="/assets/vendor-CIkm_8TG.js">
12
- <link rel="modulepreload" crossorigin href="/assets/vendor-icons-oIrAStms.js">
12
+ <link rel="modulepreload" crossorigin href="/assets/vendor-icons-C3PrZPxy.js">
13
13
  <link rel="modulepreload" crossorigin href="/assets/vendor-overlays-CO23GfSO.js">
14
14
  <link rel="modulepreload" crossorigin href="/assets/vendor-dnd-CayJj8TC.js">
15
15
  <link rel="stylesheet" crossorigin href="/assets/vendor-CEK31ho9.css">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@av-pi-studio/web-client",
3
- "version": "0.0.99",
3
+ "version": "0.0.100",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.map",
@@ -16,8 +16,8 @@
16
16
  "clean": "rm -rf dist *.tsbuildinfo"
17
17
  },
18
18
  "devDependencies": {
19
- "@av-pi-studio/client": "^0.0.99",
20
- "@av-pi-studio/protocol": "^0.0.99",
19
+ "@av-pi-studio/client": "^0.0.100",
20
+ "@av-pi-studio/protocol": "^0.0.100",
21
21
  "@codemirror/language": "^6.12.4",
22
22
  "@codemirror/language-data": "^6.5.2",
23
23
  "@codemirror/state": "^6.7.1",
@@ -1,8 +0,0 @@
1
- import{r as h,j as t}from"./vendor-react-DQUAl2K8.js";import{a as ot,b as rt,m as at,u as Ae}from"./vendor-query-i7fr__Xm.js";import{A as fe,D as O,u as X,F as it,I as L,G as ct,H as lt,B as T,J as dt,K as Ie,S as _e,y as ut,M as mt,m as ft,n as pt,N as ht,O as _t,l as gt,Q as xt,E as vt,R as pe,a as Re,U as Pe,W as kt,X as oe,g as jt,Y as bt,z as yt,P as Ce}from"./index-DZlnqOHt.js";import{L as Nt,G as St,S as Ct,a as wt,P as Dt,E as Bt,T as Me,C as ie,b as Oe,B as Et,c as Tt,d as At,A as It,e as Rt,U as Pt,f as Mt,g as Ot,h as Lt,i as qt,j as Ft,k as Kt,N as Ht,l as zt}from"./vendor-icons-oIrAStms.js";import{u as $t}from"./use-provider-auth-list-BI-o73oF.js";import{M as C}from"./vendor-CIkm_8TG.js";import{S as Le,M as qe,r as Ut}from"./markdown-CLZqSd0W.js";import{D as Wt,p as Gt}from"./DiffView-DYwtgWeX.js";import{R as Fe,T as Ke,I as Yt}from"./vendor-overlays-CO23GfSO.js";import"./vendor-dnd-CayJj8TC.js";import"./vendor-highlight-A9hNQ6ne.js";import"./vendor-markdown-Bu3Y4y-M.js";import"./href-resolution-D-RbYZ4x.js";function He(e,n){if(n.trim()==="")return e;const s=n.toLowerCase();return e.filter(o=>o.label.toLowerCase().includes(s)||o.description!==void 0&&o.description.toLowerCase().includes(s))}const Jt={shell:Me,read:Bt,edit:Dt,write:wt,search:Ct,fetch:St,task:Nt};function Qt(e){return Jt[e.kind]??Me}function ze(e){switch(e.kind){case"read":case"write":case"edit":return e.path??null;default:return null}}function Vt(e){return e.kind==="write"||e.kind==="edit"||e.kind==="shell"}function Xt(e){const n=[];if(e.kind==="edit"&&e.diff)n.push({kind:"diff",patch:e.diff});else{const s=fe(e);s&&n.push({kind:"code",text:s})}return e.output&&n.push({kind:"code",text:e.output}),n}const we={shell:{label:"SHELL",token:"statusInfo"},read:{label:"READ",token:"statusInfo"},write:{label:"WRITE",token:"statusSuccess"},edit:{label:"EDIT",token:"statusWarning"},search:{label:"SEARCH",token:"statusInfo"},fetch:{label:"FETCH",token:"statusInfo"},task:{label:"TASK",token:"foregroundMuted"}};function Zt(e){return we[e.kind]??we.task}function en(e){if(!e)return{added:0,removed:0};let n=0,s=0;for(const o of e.split(`
2
- `))o.startsWith("+++")||o.startsWith("---")||(o.startsWith("+")?n++:o.startsWith("-")&&s++);return{added:n,removed:s}}function tn(e){return e?(e.endsWith(`
3
- `)?e.slice(0,-1):e).split(`
4
- `).length:0}const nn=500;let le;function sn(e,n,s,o){clearTimeout(le),le=setTimeout(()=>{le=void 0,e.invalidateQueries({queryKey:["file"]}),e.invalidateQueries({queryKey:["explorer"]}),n&&s&&n.connection.request("checkout_refresh_request",{cwd:s}).catch(()=>{})},nn)}function on({sessionId:e,event:n,timestamp:s,client:o,queryClient:r}){const a=O.getState();switch(a.applyStreamEvent(e,n,s),n.kind){case"turn_started":a.setStatus(e,"running");break;case"turn_completed":a.setStatus(e,"idle");break;case"turn_failed":a.setStatus(e,"error");break;case"turn_canceled":a.setStatus(e,"idle");break;case"tool_call":{if(n.status==="completed"&&Vt(n.tool)){const l=a.sessions[e],i=(l==null?void 0:l.cwd)||null;sn(r,o,i,ze(n.tool))}break}}}function rn(e){const n=X(r=>r.client),s=O(r=>{var a;return((a=r.sessions[e])==null?void 0:a.agentId)??null}),o=ot();h.useEffect(()=>!n||!s?void 0:n.agent(s).timeline.subscribe((a,l)=>{const i=typeof l.timestamp=="number"?new Date(l.timestamp).toISOString():l.timestamp;on({sessionId:e,event:a,timestamp:i,client:n,queryClient:o})}),[n,s,e,o])}const $e=64;function de(e){return e.clientHeight>0}function an(e,n,s,o=$e){switch(n.kind){case"scroll":return de(s)?s.scrollHeight-s.scrollTop-s.clientHeight<=o?{pinned:!0,stick:!1}:{pinned:n.gesture?!1:e,stick:!1}:{pinned:e,stick:!1};case"tail":return{pinned:e,stick:e&&de(s)};case"shown":return{pinned:e,stick:e};case"pin":return{pinned:!0,stick:de(s)}}}function cn(e){const n=e[e.length-1];return(n==null?void 0:n.kind)==="user"?n.id:null}const ln="_shellRow_5a5cb_2",dn="_rail_5a5cb_10",un="_disc_5a5cb_18",mn="_connector_5a5cb_28",fn="_content_5a5cb_2",pn="_metaLine_5a5cb_40",hn="_metaTime_5a5cb_52",M={shellRow:ln,rail:dn,disc:un,connector:mn,content:fn,metaLine:pn,metaTime:hn};function q({disc:e,discClassName:n,connector:s,meta:o,metaTrailing:r,className:a,children:l}){return t.jsxs("div",{className:M.shellRow,children:[t.jsxs("div",{className:M.rail,children:[t.jsx("span",{className:C(M.disc,n),children:e}),s&&t.jsx("span",{className:M.connector})]}),t.jsxs("div",{className:C(M.content,a),children:[o&&t.jsxs("div",{className:M.metaLine,children:[o,r]}),l]})]})}function De(e){return typeof e=="number"?e:Date.parse(e)}function _n(e,n){const s=De(e.entry.createdAt),o=De(n.entry.createdAt);return s!==o?s-o:e.entry.requestId<n.entry.requestId?-1:e.entry.requestId>n.entry.requestId?1:0}function gn(e,n){return[...e.map(o=>({kind:"pending",entry:o})),...n.map(o=>({kind:"resolved",entry:o}))].toSorted(_n)}function xn(e){return e.entry.requestId}function Ue(e){return e.receivedAt===void 0}const vn=4;function kn(e,n){let s=0;const o=e.map(i=>i.kind!=="pending"?{item:i,collapsed:!1}:(s++,{item:i,collapsed:!n&&s>vn})),r=o.filter(i=>i.collapsed).length,a=o.findIndex(i=>i.collapsed),l=[];return o.forEach((i,f)=>{f===a&&l.push({kind:"more",count:r}),l.push({kind:"card",item:i.item,collapsed:i.collapsed})}),l}function jn(e,n){if(e.timeoutMs===void 0)return{show:!1,fraction:0,approximate:!1};const s=it(e,n)??0;return{show:!0,fraction:Math.max(0,Math.min(1,s/e.timeoutMs)),approximate:e.receivedAt===void 0}}function We(e){return e==="editor"}const bn="Esc again to dismiss — the extension gets an empty answer";function yn(e,n){return n?{kind:"warning",text:bn}:{kind:"keys",segments:[{key:We(e)?"⇧↵":"↵",label:"submit"},{key:"Esc",label:"dismiss"}]}}function Nn(e){return e?{armed:!1,resolve:!0}:{armed:!0,resolve:!1}}const Sn=5,Cn=40,wn=6;function Dn(e){return{mode:e.length>=Sn||e.some(s=>s.length>Cn)?"stack":"row",scrolls:e.length>wn}}function he(e){const n=e.split(`
5
- `),s=[];let o=!1;for(const r of n)if(r===""){if(o)continue;o=!0,s.push("")}else o=!1,s.push(r);return s}function Bn(e,n){return{title:he(e),...n!==void 0?{message:he(n)}:{}}}const En="_askDisc_ffqf1_5",Tn="_card_ffqf1_9",An="_cardInert_ffqf1_41",In="_askDiscInert_ffqf1_47",Rn="_reconnectingNote_ffqf1_52",Pn="_reconnectingDot_ffqf1_61",Mn="_deadlineBar_ffqf1_71",On="_deadlineApproximate_ffqf1_80",Ln="_header_ffqf1_85",qn="_askBadge_ffqf1_16",Fn="_methodName_ffqf1_101",Kn="_title_ffqf1_107",Hn="_titleEmphasised_ffqf1_115",zn="_message_ffqf1_119",$n="_emptyOptionsNote_ffqf1_127",Un="_controls_ffqf1_133",Wn="_controlsStack_ffqf1_141",Gn="_controlsScroll_ffqf1_148",Yn="_optionButton_ffqf1_153",Jn="_field_ffqf1_161",Qn="_editorField_ffqf1_168",Vn="_rawPayload_ffqf1_176",Xn="_resolvedCard_ffqf1_190",Zn="_askBadgeNeutral_ffqf1_204",es="_resolvedMethodName_ffqf1_209",ts="_outcome_ffqf1_218",ns="_outcomeSuccess_ffqf1_229",ss="_outcomeText_ffqf1_233",os="_hint_ffqf1_255",rs="_hintKey_ffqf1_270",as="_hintSep_ffqf1_278",is="_recoveredChip_ffqf1_285",cs="_collapsedPendingCard_ffqf1_297",ls="_moreRow_ffqf1_303",p={askDisc:En,card:Tn,cardInert:An,askDiscInert:In,reconnectingNote:Rn,reconnectingDot:Pn,deadlineBar:Mn,deadlineApproximate:On,header:Ln,askBadge:qn,methodName:Fn,title:Kn,titleEmphasised:Hn,message:zn,emptyOptionsNote:$n,controls:Un,controlsStack:Wn,controlsScroll:Gn,optionButton:Yn,field:Jn,editorField:Qn,rawPayload:Vn,resolvedCard:Xn,askBadgeNeutral:Zn,resolvedMethodName:es,outcome:ts,outcomeSuccess:ns,outcomeText:ss,hint:os,hintKey:rs,hintSep:as,recoveredChip:is,collapsedPendingCard:cs,moreRow:ls},ds=250,us=320;function G(e,n){const s=e[n];return typeof s=="string"?s:void 0}function ms(e,n){const s=e[n];return Array.isArray(s)?s.filter(o=>typeof o=="string"):[]}function fs({item:e,connector:n,collapsed:s=!1,autoFocus:o=!1,sessionTitle:r}){return e.kind==="resolved"?t.jsx(_s,{entry:e.entry,connector:n}):s?t.jsx(ps,{entry:e.entry,connector:n}):t.jsx(xs,{entry:e.entry,connector:n,autoFocus:o,sessionTitle:r})}function Ge(){return t.jsx("span",{className:p.recoveredChip,children:"still waiting"})}function ps({entry:e,connector:n}){return t.jsx(q,{disc:t.jsx(L,{icon:ie,size:"xs",color:"var(--pi-color-statusWarning)"}),discClassName:p.askDisc,connector:n,children:t.jsxs("div",{className:C(p.resolvedCard,p.collapsedPendingCard),children:[t.jsx("span",{className:p.askBadge,children:"ASK"}),t.jsx("span",{className:p.resolvedMethodName,children:e.method}),Ue(e)&&t.jsx(Ge,{})]})})}function hs({count:e,connector:n,onExpand:s}){return t.jsx(q,{disc:t.jsx(L,{icon:ie,size:"xs",color:"var(--pi-color-foregroundMuted)"}),discClassName:p.askDiscInert,connector:n,children:t.jsxs("button",{type:"button",className:p.moreRow,onClick:s,children:[e," more waiting"]})})}function _s({entry:e,connector:n}){const s=ct(e);return t.jsx(q,{disc:t.jsx(L,{icon:ie,size:"xs",color:"var(--pi-color-foregroundMuted)"}),discClassName:p.askDiscInert,connector:n,children:t.jsxs("div",{className:p.resolvedCard,children:[t.jsx("span",{className:C(p.askBadge,p.askBadgeNeutral),children:"ASK"}),t.jsx("span",{className:p.resolvedMethodName,children:e.method}),t.jsxs("span",{className:C(p.outcome,s.tone==="success"&&p.outcomeSuccess),children:[s.glyph==="check"&&t.jsx(Oe,{size:11,"aria-hidden":!0}),t.jsx("span",{className:C(s.truncate&&p.outcomeText),children:s.text})]})]})})}function H(e,n){return e.answerable?e.submitting?n?{loading:!0,style:{opacity:1}}:{disabled:!0}:{}:{disabled:!0,style:{opacity:1}}}function gs({hint:e}){return e.kind==="warning"?t.jsx("p",{className:p.hint,children:e.text}):t.jsx("p",{className:p.hint,children:e.segments.map((n,s)=>t.jsxs(h.Fragment,{children:[s>0&&t.jsx("span",{className:p.hintSep,children:"·"}),t.jsx("span",{className:p.hintKey,children:n.key}),n.label]},n.label))})}function xs({entry:e,connector:n,autoFocus:s=!1,sessionTitle:o}){const[r,a]=h.useState(()=>Date.now()),l=jn(e,r),[i,f]=h.useState(!1),d=h.useRef(null),m=h.useRef(null),u=h.useRef(null);h.useEffect(()=>{if(!l.show)return;const b=setInterval(()=>a(Date.now()),ds);return()=>clearInterval(b)},[e.requestId,e.timeoutMs,l.show]),h.useEffect(()=>{var y,P;if(!s||!e.answerable)return;const b=document.activeElement;(b instanceof HTMLTextAreaElement||b instanceof HTMLInputElement)&&b.value.length>0&&!((y=d.current)!=null&&y.contains(b))||(P=m.current)==null||P.focus()},[s,e.answerable]);function x(b){var g,y;e.answerable&&(b.target.closest("button, input, textarea, a, select")||(g=d.current)!=null&&g.contains(document.activeElement)||(y=d.current)==null||y.focus())}function E(b){lt(e.requestId,b)}function R(b){var y;if(b.key!=="Escape"||!e.answerable)return;b.preventDefault(),b.stopPropagation();const g=Nn(i);if(f(g.armed),!g.resolve){(y=u.current)==null||y.focus();return}u.current?u.current.click():E({cancelled:!0})}function w(b){b.currentTarget.contains(b.relatedTarget)||f(!1)}return t.jsxs(q,{disc:t.jsx(L,{icon:ie,size:"xs",color:e.answerable?"var(--pi-color-statusWarning)":"var(--pi-color-foregroundMuted)"}),discClassName:e.answerable?p.askDisc:p.askDiscInert,connector:n,children:[t.jsxs("div",{ref:d,className:C(p.card,!e.answerable&&p.cardInert),role:"group","aria-label":`Question in ${o}`,tabIndex:-1,onKeyDown:R,onMouseDown:x,onBlur:w,children:[l.show&&t.jsx("div",{className:C(p.deadlineBar,l.approximate&&p.deadlineApproximate),style:{width:`${l.fraction*100}%`}}),t.jsxs("div",{className:p.header,children:[t.jsx("span",{className:C(p.askBadge,!e.answerable&&p.askBadgeNeutral),"aria-hidden":"true",children:"ASK"}),t.jsx("span",{className:p.methodName,children:e.method}),Ue(e)&&t.jsx(Ge,{})]}),t.jsx(vs,{entry:e,onSubmit:E,primaryRef:m,dismissRef:u})]}),t.jsx(gs,{hint:yn(e.method,i)}),!e.answerable&&t.jsxs("p",{className:p.reconnectingNote,children:[t.jsx("span",{className:p.reconnectingDot}),"Reconnecting — you can answer again in a moment"]})]})}function vs({entry:e,onSubmit:n,primaryRef:s,dismissRef:o}){const{method:r,payload:a}=e;return r==="select"?t.jsx(ks,{entry:e,payload:a,onSubmit:n,primaryRef:s,dismissRef:o}):r==="confirm"?t.jsx(js,{entry:e,payload:a,onSubmit:n,primaryRef:s,dismissRef:o}):r==="input"?t.jsx(bs,{entry:e,payload:a,onSubmit:n,primaryRef:s}):r==="editor"?t.jsx(ys,{entry:e,payload:a,onSubmit:n,primaryRef:s,dismissRef:o}):t.jsx(Ns,{entry:e,method:r,payload:a,onSubmit:n,primaryRef:s,dismissRef:o})}function ae({text:e}){return t.jsx("div",{className:p.title,children:he(e).join(`
6
- `)})}function ks({entry:e,payload:n,onSubmit:s,primaryRef:o,dismissRef:r}){const a=G(n,"title")??"",l=ms(n,"options"),[i,f]=h.useState(null);if(l.length===0){const m=H(e,i===0);return t.jsxs(t.Fragment,{children:[t.jsx(ae,{text:a}),t.jsx("p",{className:p.emptyOptionsNote,children:"The extension offered no options."}),t.jsx("div",{className:p.controls,children:t.jsx(T,{ref:u=>{o.current=u,r.current=u},size:"xs",variant:"secondary",onClick:()=>{f(0),s({cancelled:!0})},...m,children:"Cancel"})})]})}const d=Dn(l);return t.jsxs(t.Fragment,{children:[t.jsx(ae,{text:a}),t.jsx("div",{className:C(p.controls,d.mode==="stack"&&p.controlsStack,d.scrolls&&p.controlsScroll),children:l.map((m,u)=>t.jsx(T,{ref:u===0?x=>{o.current=x}:void 0,size:"xs",variant:"secondary",className:p.optionButton,onClick:()=>{f(u),s({value:m})},...H(e,i===u),children:m},u))})]})}function js({entry:e,payload:n,onSubmit:s,primaryRef:o,dismissRef:r}){const a=G(n,"title")??"",l=G(n,"message"),i=Bn(a,l),[f,d]=h.useState(null);return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:C(p.title,i.message&&p.titleEmphasised),children:i.title.join(`
7
- `)}),i.message&&t.jsx("div",{className:p.message,children:i.message.join(`
8
- `)}),t.jsxs("div",{className:p.controls,children:[t.jsx(T,{ref:m=>{o.current=m},size:"xs",variant:"default",onClick:()=>{d("yes"),s({confirmed:!0})},...H(e,f==="yes"),children:"Yes"}),t.jsx(T,{ref:m=>{r.current=m},size:"xs",variant:"secondary",onClick:()=>{d("no"),s({confirmed:!1})},...H(e,f==="no"),children:"No"})]})]})}function bs({entry:e,payload:n,onSubmit:s,primaryRef:o}){const r=G(n,"title")??"",a=G(n,"placeholder"),[l,i]=h.useState(""),f=H(e,e.submitting===!0),d=f.disabled===!0||f.loading===!0;return t.jsxs(t.Fragment,{children:[t.jsx(ae,{text:r}),t.jsxs("div",{className:p.controls,children:[t.jsx(dt,{ref:m=>{o.current=m},className:p.field,value:l,placeholder:a,disabled:d,onChange:m=>i(m.target.value),onKeyDown:m=>{m.key!=="Enter"||d||(m.preventDefault(),m.stopPropagation(),s({value:l}))}}),t.jsx(T,{size:"xs",variant:"default",onClick:()=>s({value:l}),...f,children:"Submit"})]})]})}function ys({entry:e,payload:n,onSubmit:s,primaryRef:o,dismissRef:r}){const a=G(n,"title")??"",l=G(n,"prefill")??"",[i,f]=h.useState(l),[d,m]=h.useState(null);return t.jsxs(t.Fragment,{children:[t.jsx(ae,{text:a}),t.jsx(Ie,{ref:u=>{o.current=u},className:p.editorField,rows:3,value:i,disabled:!e.answerable||e.submitting,onChange:u=>{f(u.target.value);const x=u.target;x.style.height="auto",x.style.height=`${Math.min(x.scrollHeight,us)}px`},onKeyDown:u=>{u.key!=="Enter"||u.shiftKey!==We(e.method)||(u.preventDefault(),u.stopPropagation(),m("submit"),s({value:i}))}}),t.jsxs("div",{className:p.controls,children:[t.jsx(T,{size:"xs",variant:"default",onClick:()=>{m("submit"),s({value:i})},...H(e,d==="submit"),children:"Submit"}),t.jsx(T,{ref:u=>{r.current=u},size:"xs",variant:"secondary",onClick:()=>{m("cancel"),s({cancelled:!0})},...H(e,d==="cancel"),children:"Cancel"})]})]})}function Ns({entry:e,method:n,payload:s,onSubmit:o,primaryRef:r,dismissRef:a}){const l={method:n,...s},i=H(e,e.submitting===!0);return t.jsxs(t.Fragment,{children:[t.jsx("p",{className:p.title,children:"This extension asked something this version of Pi-Studio can't display."}),t.jsx("pre",{className:p.rawPayload,children:JSON.stringify(l,null,2)}),t.jsx("div",{className:p.controls,children:t.jsx(T,{ref:f=>{r.current=f,a.current=f},size:"xs",variant:"secondary",onClick:()=>o({cancelled:!0}),...i,children:"Cancel"})})]})}function Be(e){if(e===void 0)return null;const n=typeof e=="number"?e:Date.parse(e);return Number.isNaN(n)?null:n}function Ss(e,n,s,o){if(n.length===0)return e.map(s);const r=[];let a=0;const l=i=>{for(;a<e.length;){const f=e[a];if(f===void 0)break;if(i!==null){const d=Be(f.timestamp);if(d!==null&&d>i)break}r.push(s(f)),a++}};for(const i of n){if(i.kind==="more"){r.push(o(i));continue}l(Be(i.item.entry.createdAt)),r.push(o(i))}for(;a<e.length;a++){const i=e[a];i!==void 0&&r.push(s(i))}return r}function Cs(e,n){return!e||n===void 0?!1:n.every(s=>s.configured===!1)}const ws=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ee(e){return String(e).padStart(2,"0")}function ge(e){if(!e)return;const n=new Date(e);if(!Number.isNaN(n.getTime()))return`${ws[n.getMonth()]} ${n.getDate()}, ${Ee(n.getHours())}:${Ee(n.getMinutes())}`}const Ds="_queuedBadge_mdmbp_8",Bs="_finalChip_mdmbp_20",Es="_userDisc_mdmbp_30",Ts="_userAligned_mdmbp_34",As="_userPendingRow_mdmbp_40",Is="_userBubble_mdmbp_44",Rs="_userBubbleFailed_mdmbp_58",Ps="_userImages_mdmbp_63",Ms="_userImage_mdmbp_63",Os="_imageDialog_mdmbp_79",Ls="_imageDialogPreview_mdmbp_83",qs="_assistantDisc_mdmbp_93",Fs="_assistantBody_mdmbp_97",Ks="_reasoningDisc_mdmbp_108",Hs="_reasoningBody_mdmbp_112",zs="_toolDisc_mdmbp_123",$s="_toolCardBody_mdmbp_127",Us="_toolCardBodyRunning_mdmbp_134",Ws="_toolCardBodyCompleted_mdmbp_138",Gs="_toolCardBodyError_mdmbp_142",Ys="_toolHeader_mdmbp_146",Js="_toolHeaderRunning_mdmbp_172",Qs="_toolChevron_mdmbp_182",Vs="_toolChevronOpen_mdmbp_188",Xs="_kindBadge_mdmbp_192",Zs="_toolPath_mdmbp_204",eo="_toolTrailing_mdmbp_213",to="_toolStatusRunning_mdmbp_221",no="_toolStatusSuccess_mdmbp_228",so="_toolStatusError_mdmbp_232",oo="_toolStatusUnknown_mdmbp_236",ro="_toolDiffAdded_mdmbp_240",ao="_toolDiffRemoved_mdmbp_244",io="_toolOpenButton_mdmbp_248",co="_toolBody_mdmbp_266",lo="_toolCode_mdmbp_272",uo="_toolOutputStrip_mdmbp_283",mo="_toolDiffPreview_mdmbp_293",fo="_toolDiffPreviewLine_mdmbp_301",po="_toolDiffPreviewAdd_mdmbp_305",ho="_toolDiffPreviewDel_mdmbp_310",_o="_toolDiffPreviewMore_mdmbp_315",go="_errorDisc_mdmbp_322",xo="_errorCard_mdmbp_326",vo="_errorLead_mdmbp_335",ko="_systemRow_mdmbp_342",_={queuedBadge:Ds,finalChip:Bs,userDisc:Es,userAligned:Ts,userPendingRow:As,userBubble:Is,userBubbleFailed:Rs,userImages:Ps,userImage:Ms,imageDialog:Os,imageDialogPreview:Ls,assistantDisc:qs,assistantBody:Fs,reasoningDisc:Ks,reasoningBody:Hs,toolDisc:zs,toolCardBody:$s,toolCardBodyRunning:Us,toolCardBodyCompleted:Ws,toolCardBodyError:Gs,toolHeader:Ys,toolHeaderRunning:Js,toolChevron:Qs,toolChevronOpen:Vs,kindBadge:Xs,toolPath:Zs,toolTrailing:eo,toolStatusRunning:to,toolStatusSuccess:no,toolStatusError:so,toolStatusUnknown:oo,toolDiffAdded:ro,toolDiffRemoved:ao,toolOpenButton:io,toolBody:co,toolCode:lo,toolOutputStrip:uo,toolDiffPreview:mo,toolDiffPreviewLine:fo,toolDiffPreviewAdd:po,toolDiffPreviewDel:ho,toolDiffPreviewMore:_o,errorDisc:go,errorCard:xo,errorLead:vo,systemRow:ko};function jo({row:e,assetBase:n=null,owningPaneId:s=null,workspaceCwd:o=null,connector:r}){const a=ge(e.timestamp);return t.jsx(q,{disc:t.jsx(L,{icon:Et,size:"xs",color:"var(--pi-color-accentForeground)"}),discClassName:_.assistantDisc,connector:r,meta:t.jsxs(t.Fragment,{children:["Assistant",a&&t.jsxs("span",{className:M.metaTime,children:[" · ",a]})]}),children:t.jsx("div",{className:_.assistantBody,children:e.streaming?t.jsx(Le,{text:e.text,assetBase:n,owningPaneId:s,workspaceCwd:o}):t.jsx(qe,{text:e.text,assetBase:n,owningPaneId:s,workspaceCwd:o})})})}function bo({row:e,owningPaneId:n=null,workspaceCwd:s=null,connector:o}){const r=ge(e.timestamp);return t.jsx(q,{disc:t.jsx(L,{icon:Tt,size:"xs",color:"var(--pi-color-foregroundMuted)"}),discClassName:_.reasoningDisc,connector:o,meta:t.jsxs(t.Fragment,{children:["Reasoning",r&&t.jsxs("span",{className:M.metaTime,children:[" · ",r]})]}),metaTrailing:!e.streaming&&t.jsx("span",{className:_.finalChip,children:"final"}),children:t.jsx("div",{className:_.reasoningBody,children:e.streaming?t.jsx(Le,{text:e.text,owningPaneId:n,workspaceCwd:s}):t.jsx(qe,{text:e.text,owningPaneId:n,workspaceCwd:s})})})}function yo(e){const n=Gt(e).filter(o=>o.kind==="add"||o.kind==="del"),s=n[0];return s?{text:s.text,kind:s.kind,moreCount:n.length-1}:null}function No(e){return e.status==="completed"?t.jsx("span",{className:_.toolStatusSuccess,children:"✓ completed"}):e.status==="error"?t.jsx("span",{className:_.toolStatusError,children:e.statusText||"error"}):e.statusText&&e.statusText!=="running"?t.jsx("span",{className:_.toolStatusUnknown,children:e.statusText}):t.jsxs("span",{className:_.toolStatusRunning,children:[t.jsx(_e,{size:"xs",color:"var(--pi-color-accentBright)"}),"running"]})}function So({row:e,assetBase:n=null,owningPaneId:s=null,workspaceCwd:o=null,connector:r}){const[a,l]=h.useState(!1),i=Zt(e.tool),f=Xt(e.tool),d=f.length>0,m=tn(e.tool.output),u=e.tool.kind==="edit"||e.tool.kind==="write"?ze(e.tool):null,x=e.tool.kind==="edit"?en(e.tool.diff):null,E=e.tool.kind==="edit"&&e.tool.diff&&!a?yo(e.tool.diff):null;function R(){d&&l(g=>!g)}function w(g){g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),R())}function b(g){if(g.stopPropagation(),!u)return;const y=Ut(n,s,o);ut(u,y.workspaceCwd,y.targetPaneId)}return t.jsx(q,{disc:t.jsx(L,{icon:Qt(e.tool),size:"xs",color:"var(--pi-color-foregroundMuted)"}),discClassName:_.toolDisc,connector:r,children:t.jsxs("div",{className:C(_.toolCardBody,e.status==="running"&&_.toolCardBodyRunning,e.status==="completed"&&_.toolCardBodyCompleted,e.status==="error"&&_.toolCardBodyError),children:[t.jsxs("div",{role:"button",tabIndex:d?0:-1,"aria-expanded":d?a:void 0,"aria-disabled":!d,className:C(_.toolHeader,e.status==="running"&&_.toolHeaderRunning),onClick:R,onKeyDown:w,children:[d&&t.jsx(At,{size:12,className:C(_.toolChevron,a&&_.toolChevronOpen)}),t.jsx("span",{className:_.kindBadge,style:{"--kindToken":`var(--pi-color-${i.token})`},children:i.label}),t.jsx("span",{className:_.toolPath,title:fe(e.tool),children:fe(e.tool)}),t.jsxs("span",{className:_.toolTrailing,children:[x&&(x.added>0||x.removed>0)&&t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:_.toolDiffAdded,children:["+",x.added]}),t.jsxs("span",{className:_.toolDiffRemoved,children:["−",x.removed]})]}),No(e),u&&t.jsxs("button",{type:"button",className:_.toolOpenButton,onClick:b,onKeyDown:g=>g.stopPropagation(),children:["Open",t.jsx(It,{size:10})]})]})]}),m>0&&t.jsxs("div",{className:_.toolOutputStrip,children:["output · ",m," lines"]}),E&&t.jsxs("div",{className:_.toolDiffPreview,children:[t.jsx("div",{className:C(_.toolDiffPreviewLine,E.kind==="add"?_.toolDiffPreviewAdd:_.toolDiffPreviewDel),children:E.text}),E.moreCount>0&&t.jsxs("div",{className:_.toolDiffPreviewMore,children:["… ",E.moreCount," more lines"]})]}),a&&d&&t.jsx("div",{className:_.toolBody,children:f.map((g,y)=>g.kind==="diff"?t.jsx(Wt,{patch:g.patch},y):t.jsx("pre",{className:_.toolCode,children:g.text},y))})]})})}function Co({row:e,connector:n}){const[s,o]=h.useState(null),r=ge(e.timestamp);return t.jsxs(q,{disc:t.jsx(L,{icon:Pt,size:"xs",color:"var(--pi-color-successForeground)"}),discClassName:_.userDisc,connector:n,className:C(_.userAligned,e.pending&&_.userPendingRow),meta:t.jsxs(t.Fragment,{children:["You",r&&t.jsxs("span",{className:M.metaTime,children:[" · ",r]}),e.failed&&" · failed to send"]}),metaTrailing:e.queued&&!e.failed&&t.jsxs("span",{className:_.queuedBadge,children:[t.jsx(Rt,{size:9}),"queued"]}),children:[t.jsx("span",{className:C(_.userBubble,e.failed&&_.userBubbleFailed),children:e.text}),e.images&&e.images.length>0&&t.jsx("div",{className:_.userImages,children:e.images.map((a,l)=>{const i=`data:${a.mimeType??"image/png"};base64,${a.data??""}`;return t.jsx("img",{className:_.userImage,src:i,alt:"",role:"button",tabIndex:0,onClick:()=>o(i),onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&o(i)}},l)})}),t.jsx(mt,{open:s!==null,onOpenChange:a=>{a||o(null)},title:"Image",width:"auto",bare:!0,className:_.imageDialog,children:s&&t.jsx("img",{className:_.imageDialogPreview,src:s,alt:""})})]})}function wo({row:e,connector:n}){return t.jsx(q,{disc:t.jsx(L,{icon:Mt,size:"xs",color:"var(--pi-color-destructive)"}),discClassName:_.errorDisc,connector:n,children:t.jsxs("div",{className:_.errorCard,children:[t.jsx("span",{className:_.errorLead,children:"Error"})," · ",e.text]})})}function Do({row:e}){return t.jsx("div",{className:_.systemRow,children:e.text})}const Bo=500;function Eo(e,n){const s=h.useRef(!0),[o,r]=h.useState(!0),a=h.useRef(0),l=h.useCallback(d=>{const m=n.current,u=m?{scrollTop:m.scrollTop,scrollHeight:m.scrollHeight,clientHeight:m.clientHeight}:{scrollTop:0,scrollHeight:0,clientHeight:0},x=an(s.current,d,u);x.pinned!==s.current&&(s.current=x.pinned,r(x.pinned)),x.stick&&e.options.count>0&&e.scrollToEnd({behavior:"auto"})},[n,e]);h.useEffect(()=>{const d=n.current;if(!d)return;const m=()=>{a.current=performance.now()},u=()=>{l({kind:"scroll",gesture:performance.now()-a.current<Bo})};d.addEventListener("scroll",u,{passive:!0}),d.addEventListener("wheel",m,{passive:!0}),d.addEventListener("touchmove",m,{passive:!0}),d.addEventListener("pointerdown",m,{passive:!0}),d.addEventListener("keydown",m,{passive:!0});const x=new ResizeObserver(()=>{d.clientHeight>0&&l({kind:"shown"})});return x.observe(d),()=>{x.disconnect(),d.removeEventListener("scroll",u),d.removeEventListener("wheel",m),d.removeEventListener("touchmove",m),d.removeEventListener("pointerdown",m),d.removeEventListener("keydown",m)}},[l,n]);const i=h.useCallback(()=>l({kind:"tail"}),[l]),f=h.useCallback(()=>l({kind:"pin"}),[l]);return{pinned:o,followTail:i,pinToBottom:f}}const To="_root_1xg4h_6",Ao="_viewport_1xg4h_13",Io="_inner_1xg4h_20",Ro="_rowWrap_1xg4h_25",Po="_empty_1xg4h_35",Mo="_nudge_1xg4h_47",Oo="_jumpToLatest_1xg4h_56",W={root:To,viewport:Ao,inner:Io,rowWrap:Ro,empty:Po,nudge:Mo,jumpToLatest:Oo},Lo=160;function qo(e){return e.kind==="ask"?`ask:${xn(e.item)}`:e.kind==="ask-more"?"ask-more":e.row.id}function Fo(e,n,s,o,r){switch(e.kind){case"user":return t.jsx(Co,{row:e,connector:!n});case"assistant":return t.jsx(jo,{row:e,assetBase:s,owningPaneId:o,workspaceCwd:r,connector:!n});case"reasoning":return t.jsx(bo,{row:e,owningPaneId:o,workspaceCwd:r,connector:!n});case"tool":return t.jsx(So,{row:e,assetBase:s,owningPaneId:o,workspaceCwd:r,connector:!n});case"error":return t.jsx(wo,{row:e,connector:!n});case"system":return t.jsx(Do,{row:e})}}function Ko(e,n,s,o,r,a,l,i){return e.kind==="ask"?t.jsx(fs,{item:e.item,collapsed:e.collapsed,connector:!n,autoFocus:e.item.kind==="pending"&&e.item.entry.requestId===l,sessionTitle:i}):e.kind==="ask-more"?t.jsx(hs,{count:e.count,connector:!n,onExpand:a}):Fo(e.row,n,s,o,r)}function Ho({session:e,owningPaneId:n,workspaceCwd:s}){var F,K;const o=e.timeline.rows,r=e.status==="running",a=ft(),l=pt(e.cwd,a),i=h.useRef(null),f=ht(e.agentId??""),d=_t(e.agentId??""),[m,u]=h.useState(!1),x=O(k=>k.activeSessionId===e.id),E=gt(k=>{var D;return((D=k.layouts[s])==null?void 0:D.focusedPaneId)===n}),R=x&&E?((F=f[0])==null?void 0:F.requestId)??null:null,w=h.useMemo(()=>{const k=kn(gn(f,d),m);return Ss(o,k,D=>({kind:"row",row:D}),D=>D.kind==="more"?{kind:"ask-more",count:D.count}:{kind:"ask",item:D.item,collapsed:D.collapsed})},[o,f,d,m]),b=X(k=>k.status==="open"),g=X(k=>k.serverInfo),y=!!((K=g==null?void 0:g.features)!=null&&K.providerAuth),P=xt(k=>k.openSettings),{data:z}=$t(o.length===0&&b&&y),Y=Cs(y,z),S=rt({count:w.length,getScrollElement:()=>i.current,estimateSize:()=>Lo,overscan:8,getItemKey:k=>{const D=w[k];return D?qo(D):k},measureElement:(k,D,$)=>{if(k.offsetParent!==null)return at(k,D,$);const ne=$.indexFromElement(k),ce=$.options.getItemKey(ne);return $.itemSizeCache.get(ce)??$.options.estimateSize(ne)},anchorTo:"end",scrollEndThreshold:$e}),{pinned:A,followTail:Z,pinToBottom:ee}=Eo(S,i),te=cn(o);return h.useEffect(()=>{Z()},[w.length,Z]),h.useEffect(()=>{te!==null&&ee()},[te,ee]),t.jsxs("div",{className:W.root,children:[t.jsx("div",{className:W.viewport,ref:i,children:w.length===0?!r&&(Y?t.jsxs(vt,{className:W.nudge,children:[t.jsx("span",{children:"No messages yet — connect a model provider to get started."}),t.jsx(T,{size:"xs",variant:"secondary",onClick:()=>P(),children:"Connect a model provider"})]}):t.jsx("div",{className:W.empty,children:"No messages yet — say something to start."})):t.jsx("div",{className:W.inner,style:{height:S.getTotalSize()},children:S.getVirtualItems().map(k=>{const D=w[k.index];return D?t.jsx("div",{ref:S.measureElement,"data-index":k.index,className:W.rowWrap,style:{transform:`translateY(${k.start}px)`},children:Ko(D,k.index===w.length-1,l,n,s,()=>u(!0),R,e.title)},k.key):null})})}),!A&&w.length>0&&t.jsx("button",{type:"button",className:W.jumpToLatest,onClick:ee,title:"Jump to latest","aria-label":"Jump to latest",children:t.jsx(Ot,{size:16,"aria-hidden":"true"})})]})}function zo(e,n=!0){const s=X(o=>o.client);return Ae({queryKey:Re.agentCommands(e),queryFn:async()=>{if(!s)throw new Error("not connected");const o=await pe(s,e),{commands:r}=await s.agent(o).listCommands();return r},enabled:!!s&&!!e&&n})}const $o="_strip_nzfk5_4",Uo="_thumb_nzfk5_11",Wo="_remove_nzfk5_28",ue={strip:$o,thumb:Uo,remove:Wo};function Go({images:e,onRemove:n}){return e.length===0?null:t.jsx("div",{className:ue.strip,children:e.map((s,o)=>t.jsxs("div",{className:ue.thumb,children:[t.jsx("img",{src:s.thumbUrl,alt:""}),t.jsx("button",{type:"button",className:ue.remove,title:"Remove",onClick:()=>n(o),children:"×"})]},o))})}function Yo(e){const{promise:n,resolve:s,reject:o}=Promise.withResolvers(),r=new FileReader;return r.onload=()=>{const a=r.result;if(typeof a!="string"){o(new Error("Unexpected FileReader result"));return}const l=a.indexOf(","),i=l>=0?a.slice(l+1):a;s({mimeType:e.type,data:i,thumbUrl:a})},r.onerror=()=>o(r.error??new Error("Failed to read file")),r.readAsDataURL(e),n}function Jo(e,n,s){return e?s:n}const Qo="_picker_11c3i_4",Vo="_search_11c3i_10",Xo="_list_11c3i_28",Zo="_item_11c3i_33",er="_itemActive_11c3i_50",tr="_checkSlot_11c3i_54",nr="_label_11c3i_63",sr="_modelId_11c3i_69",or="_state_11c3i_76",rr="_stateError_11c3i_85",ar="_commandContent_11c3i_95",ir="_commandList_11c3i_98",cr="_commandItem_11c3i_103",lr="_commandItemHeader_11c3i_135",dr="_commandKindBadge_11c3i_149",ur="_commandKindExtension_11c3i_168",mr="_commandKindPrompt_11c3i_173",fr="_commandKindSkill_11c3i_178",pr="_commandDescription_11c3i_183",N={picker:Qo,search:Vo,list:Xo,item:Zo,itemActive:er,checkSlot:tr,label:nr,modelId:sr,state:or,stateError:rr,commandContent:ar,commandList:ir,commandItem:cr,commandItemHeader:lr,commandKindBadge:dr,commandKindExtension:ur,commandKindPrompt:mr,commandKindSkill:fr,commandDescription:pr},hr={onOpenAutoFocus:e=>e.preventDefault()};function _r(e){switch(e){case"extension":return N.commandKindExtension;case"prompt":return N.commandKindPrompt;case"skill":return N.commandKindSkill;default:return}}function gr({open:e,onOpenChange:n,options:s,highlightedIndex:o,onSelect:r,isLoading:a,isError:l,errorMessage:i,hiddenExtensionCount:f,renderTrigger:d}){const m=h.useRef(null);return h.useEffect(()=>{var u,x;e&&((x=(u=m.current)==null?void 0:u.querySelector('[aria-selected="true"]'))==null||x.scrollIntoView({block:"nearest"}))},[e,o]),t.jsxs(Fe,{open:e,onOpenChange:n,modal:!1,children:[t.jsx(Ke,{asChild:!0,children:d()}),t.jsxs(Pe,{className:C(N.picker,N.commandContent),side:"top",sideOffset:4,...hr,onCloseAutoFocus:u=>u.preventDefault(),children:[a&&t.jsx("div",{className:N.state,children:t.jsx(_e,{size:"sm"})}),!a&&l&&t.jsx("div",{className:N.stateError,children:i??"Failed to load commands"}),!a&&!l&&s.length===0&&t.jsx("div",{className:N.state,children:"No commands found"}),!a&&!l&&s.length>0&&t.jsx("div",{ref:m,className:C(N.list,N.commandList),children:s.map((u,x)=>t.jsxs("div",{role:"option","aria-selected":x===o,className:C(N.item,N.commandItem,x===o&&N.itemActive),title:u.description,onMouseDown:E=>{E.preventDefault(),r(u.value)},children:[t.jsxs("div",{className:N.commandItemHeader,children:[t.jsx("span",{className:N.label,children:u.label}),u.kind&&t.jsx("span",{className:C(N.commandKindBadge,_r(u.kind)),children:u.kind})]}),u.description&&t.jsx("div",{className:N.commandDescription,children:u.description})]},u.value))}),!a&&!l&&f>0&&t.jsxs("div",{className:N.state,children:[f," extension command(s) unavailable while the agent is running"]})]})]})}function xr(e,n=!0){const s=X(o=>o.client);return Ae({queryKey:Re.providerModels(e),queryFn:async()=>{if(!s)throw new Error("not connected");return(await s.providers.listModels(e)).models},enabled:!!s&&!!e&&n})}function vr(e,n={}){const s=new Map;for(const f of e){const d=f.group??"",m=s.get(d);m?m.push(f):s.set(d,[f])}const o=s.get("");s.delete("");const r=[...s.keys()],{priorityGroup:a,ungroupedLabel:l}=n;a!==void 0&&s.has(a)&&(r.splice(r.indexOf(a),1),r.unshift(a));const i=r.map(f=>({key:f,label:f,options:s.get(f)??[]}));return o&&i.push({key:"",label:l,options:o}),i}function kr(e,n,s){if(!n)return e;const o=e.filter(a=>a.id===n),r=(s===void 0?void 0:o.find(a=>a.provider===s))??o[0];return r?[r,...e.filter(a=>a!==r)]:e}function jr(e){const n=new Set;return e.filter(s=>{const o=`${s.provider??""}/${s.id}`;return n.has(o)?!1:(n.add(o),!0)})}function br({currentModel:e,currentModelProvider:n,provider:s,onSelect:o,renderTrigger:r}){const[a,l]=h.useState(!1),[i,f]=h.useState(""),d=h.useRef(null),{data:m=[],isLoading:u,isError:x,error:E}=xr(s,a||e!==void 0);h.useEffect(()=>{var S;a&&(f(""),(S=d.current)==null||S.focus())},[a]);const w=jr(kr(m,e,n)).map(S=>({value:S.id,label:S.label??S.id,description:S.id,group:S.provider})),b=w[0],g=(b==null?void 0:b.value)===e?b:void 0,y=vr(He(w,i),{priorityGroup:n,ungroupedLabel:"Other"}),P=y.length>1,z=E instanceof Error?E.message:"Failed to load models";function Y(S){S.stopPropagation(),S.key==="Escape"&&l(!1)}return t.jsxs(Fe,{open:a,onOpenChange:l,modal:!1,children:[t.jsx(Ke,{asChild:!0,children:r(e,g==null?void 0:g.label)}),t.jsxs(Pe,{minWidth:240,align:"end",sideOffset:6,className:N.picker,children:[t.jsx("input",{ref:d,className:N.search,placeholder:"Search models…",value:i,onChange:S=>f(S.target.value),onKeyDown:Y}),u&&t.jsx("div",{className:N.state,children:t.jsx(_e,{size:"sm"})}),!u&&x&&t.jsx("div",{className:N.stateError,children:z}),!u&&!x&&y.length===0&&t.jsx("div",{className:N.state,children:"No models found"}),!u&&!x&&y.length>0&&t.jsx("div",{className:N.list,children:y.map(S=>t.jsx(kt,{label:P?S.label:void 0,children:S.options.map(A=>t.jsxs(Yt,{className:N.item,onSelect:()=>o(A.value,A.group),children:[t.jsx("span",{className:N.checkSlot,"aria-hidden":!0,children:A===g&&t.jsx(Oe,{size:14})}),t.jsx("span",{className:N.label,children:A.label}),t.jsxs("span",{className:N.modelId,children:["(",A.value,")"]})]},`${A.group??""}/${A.value}`))},S.key))})]})]})}function xe(e){if(!e.startsWith("/"))return null;const n=/^\/(\S*)/.exec(e),s=(n==null?void 0:n[1])??"",o=1+s.length,r=/\S/.test(e.slice(o));return{name:s,end:o,hasArgs:r}}function yr(e){return/^\/\S*$/.test(e)}function Nr(e,n){let s=0;const o=[];for(const r of e){if(n.running&&r.source==="extension"){s+=1;continue}o.push({value:r.name,label:`/${r.name}`,description:r.description,kind:r.source})}return{options:o,hiddenExtensionCount:s}}function Sr(e,n,s){return s<=0?0:(e+n+s)%s}function Cr(e,n){const s=xe(e);return s?s.hasArgs?`/${n}${e.slice(s.end)}`:`/${n} `:`/${n} ${e}`}function wr(e,n){const s=xe(e);return!s||!n.includes(s.name)?null:{end:s.end}}const Dr="_composer_afpks_4",Br="_card_afpks_13",Er="_flash_afpks_27",Tr="_note_afpks_41",Ar="_textarea_afpks_49",Ir="_textareaWrap_afpks_73",Rr="_highlightLayer_afpks_61",Pr="_commandMark_afpks_96",Mr="_hiddenFileInput_afpks_121",Or="_toolbar_afpks_127",Lr="_toolbarRight_afpks_134",qr="_toolBtn_afpks_142",Fr="_roundBtn_afpks_148",Kr="_modelBtn_afpks_153",Hr="_modelLabel_afpks_183",zr="_modelId_afpks_181",$r="_modelChevron_afpks_201",B={composer:Dr,card:Br,flash:Er,note:Tr,textarea:Ar,textareaWrap:Ir,highlightLayer:Rr,commandMark:Pr,hiddenFileInput:Mr,toolbar:Or,toolbarRight:Lr,toolBtn:qr,roundBtn:Fr,modelBtn:Kr,modelLabel:Hr,modelId:zr,modelChevron:$r},Ur=160;function re(e){e.style.height="auto",e.style.height=`${Math.min(e.scrollHeight,Ur)}px`}function Wr(e){return typeof e=="object"&&e!==null&&"ok"in e&&e.ok===!1}function Gr(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Yr({sessionId:e}){const n=X(c=>c.client),s=O(c=>c.sessions[e]),o=O(c=>c.addOptimisticUserMessage),r=O(c=>c.markUserMessageFailed),a=O(c=>c.setCwd),l=O(c=>c.setModel),i=oe(c=>c.drafts[e]??""),f=oe(c=>c.setDraft),[d,m]=h.useState([]),[u,x]=h.useState(!1),[E,R]=h.useState(!1),w=h.useRef(null),b=h.useRef(null),[g,y]=h.useState(!1),[P,z]=h.useState(0),Y=jt(bt.chat(e)),S=oe(c=>c.pendingFeedback[e]),[A,Z]=h.useState(null),[ee,te]=h.useState(!1),F=h.useRef(null),K=h.useRef(null);h.useEffect(()=>{if(!Y||S===void 0)return;const c=oe.getState().consumeFeedback(e);if(!c)return;Z(c.copy==="filled"?"Your message was filled in":"Your draft was replaced"),F.current!==null&&window.clearTimeout(F.current),F.current=window.setTimeout(()=>Z(null),4e3);const v=w.current;v&&v.setSelectionRange(v.value.length,v.value.length),c.flash&&(te(!0),K.current!==null&&window.clearTimeout(K.current),K.current=window.setTimeout(()=>te(!1),Gr()?1e3:400))},[Y,S,e]),h.useEffect(()=>()=>{F.current!==null&&window.clearTimeout(F.current),K.current!==null&&window.clearTimeout(K.current)},[]);const k=(s==null?void 0:s.status)==="running",D=Jo(k,u,E),$=!!n&&!D&&(i.trim().length>0||d.length>0),{data:ne=[],isLoading:ce,isError:Ye,error:ve}=zo(e,g),{options:ke,hiddenExtensionCount:Je}=Nr(ne,{running:k}),je=xe(i),se=je?He(ke,je.name):ke,Qe=ne.map(c=>c.name),J=wr(i,Qe);async function be(c){if(c.type.startsWith("image/"))try{const v=await Yo(c);m(j=>[...j,v])}catch{}}function Ve(c){for(const v of c.target.files??[])be(v);c.target.value=""}function Xe(c){for(const v of c.clipboardData.items)if(v.type.startsWith("image/")){c.preventDefault();const j=v.getAsFile();j&&be(j)}}function Ze(c){m(v=>v.filter((j,I)=>I!==c))}function et(c){const v=c.target.value;f(e,v),re(c.target);const j=yr(v);j!==g&&y(j),j&&z(0)}function tt(c){var v;if(!g&&J&&c.key==="Backspace"){const j=c.currentTarget,I=j.selectionStart;if(I!==null&&I===j.selectionEnd){const Q=J.end+(i[J.end]===" "?1:0);if(I>0&&I<=Q){c.preventDefault();const U=i.slice(Q);f(e,U),j.setSelectionRange(0,0),re(j);return}}}if(g&&se.length>0){if(c.key==="ArrowDown"||c.key==="ArrowUp"){c.preventDefault(),z(j=>Sr(j,c.key==="ArrowDown"?1:-1,se.length));return}if(c.key==="Enter"&&!c.shiftKey||c.key==="Tab"){c.preventDefault();const j=(v=se[P])==null?void 0:v.value;j&&ye(j);return}}if(g&&c.key==="Escape"){c.preventDefault(),y(!1);return}c.key==="Enter"&&!c.shiftKey&&(c.preventDefault(),Ne(k?"steer":"send"))}function ye(c){const v=Cr(i,c);f(e,v),y(!1),z(0);const j=w.current;j&&(j.focus(),j.setSelectionRange(v.length,v.length),re(j))}async function Ne(c){if(!n||!s||(c==="steer"?E:u)||c==="steer"&&!s.agentId)return;const v=i.trim();if(!v&&d.length===0)return;f(e,""),y(!1),w.current&&re(w.current);const j=d;m([]);const I=v||"Describe this image",Q=j.length>0?j.map(V=>({mimeType:V.mimeType,data:V.data})):void 0,U=yt();o(e,U,I,Q,c==="steer");const Se=c==="steer"?R:x;Se(!0);try{if(c==="steer"){const V=await n.agent(s.agentId).steer(I,{clientMessageId:U,images:Q});Wr(V)&&r(e,U)}else{s.agentId||a(e,s.cwd||"~");const V=await pe(n,e);await n.agent(V).send(I,{clientMessageId:U,images:Q})}}catch{r(e,U)}finally{Se(!1)}}function nt(){s!=null&&s.agentId&&(n==null||n.agent(s.agentId).interrupt())}function st(c,v){l(e,c,v),!(!n||!v)&&(async()=>{const j=await pe(n,e);await n.agent(j).setModel(v,c)})().catch(()=>{})}return t.jsxs("div",{className:B.composer,children:[t.jsxs("div",{className:C(B.card,ee&&B.flash),children:[t.jsxs("div",{className:B.textareaWrap,children:[t.jsx("div",{className:B.highlightLayer,"aria-hidden":!0,children:J?t.jsxs(t.Fragment,{children:[t.jsx("mark",{className:B.commandMark,children:i.slice(0,J.end)}),i.slice(J.end)]}):i}),t.jsx(Ie,{ref:w,className:B.textarea,rows:1,value:i,placeholder:k?"Steer the running turn… ⏎ steer · ⇧⏎ newline":"Ask anything… ⏎ send · ⇧⏎ newline · / commands",onChange:et,onKeyDown:tt,onPaste:Xe})]}),t.jsx(Go,{images:d,onRemove:Ze}),t.jsxs("div",{className:B.toolbar,children:[t.jsx(T,{className:B.toolBtn,variant:"ghost",size:"sm",iconOnly:!0,title:"Attach image","aria-label":"Attach image",onClick:()=>{var c;return(c=b.current)==null?void 0:c.click()},children:t.jsx(Lt,{size:16})}),t.jsx(gr,{open:g,onOpenChange:y,options:se,highlightedIndex:P,onSelect:ye,isLoading:ce,isError:Ye,errorMessage:ve instanceof Error?ve.message:void 0,hiddenExtensionCount:Je,renderTrigger:()=>t.jsx(T,{className:B.toolBtn,variant:"ghost",size:"sm",iconOnly:!0,title:"Slash commands","aria-label":"Slash commands",children:t.jsx(qt,{size:16})})}),t.jsxs("div",{className:B.toolbarRight,children:[t.jsx(br,{currentModel:s==null?void 0:s.model,currentModelProvider:s==null?void 0:s.modelProvider,provider:"pi",onSelect:st,renderTrigger:(c,v)=>{const j=v!==void 0&&v!==c;return t.jsxs("button",{type:"button",className:B.modelBtn,disabled:!n,title:c?`Model: ${v??c}${j?` (${c})`:""}`:"Select model",children:[t.jsx("span",{className:B.modelLabel,children:v??c??"Model"}),j&&t.jsxs("span",{className:B.modelId,children:["(",c,")"]}),t.jsx(Ft,{size:13,className:B.modelChevron,"aria-hidden":"true"})]})}}),k&&t.jsx(T,{className:B.roundBtn,variant:"destructive",size:"sm",iconOnly:!0,title:"Stop the running turn","aria-label":"Stop",onClick:nt,children:t.jsx(Kt,{size:14})}),t.jsx(T,{className:B.roundBtn,size:"sm",iconOnly:!0,disabled:!$,title:k?"Steer the running turn":"Send","aria-label":k?"Steer":"Send",onClick:()=>void Ne(k?"steer":"send"),children:k?t.jsx(Ht,{size:16}):t.jsx(zt,{size:18})})]})]})]}),A!==null&&t.jsx("div",{className:B.note,children:A}),t.jsx("input",{ref:b,className:B.hiddenFileInput,type:"file",accept:"image/*",multiple:!0,onChange:Ve})]})}const Jr="_track_oxvl6_2",Qr="_sweep_oxvl6_24",Vr="_visuallyHidden_oxvl6_64",me={track:Jr,sweep:Qr,visuallyHidden:Vr};function Xr({running:e}){return e?t.jsxs("div",{className:me.track,role:"progressbar","aria-label":"Turn in progress",children:[t.jsx("div",{className:me.sweep,"aria-hidden":"true"}),t.jsx("span",{className:me.visuallyHidden,role:"status","aria-live":"polite",children:"Agent is working…"})]}):null}const Zr="_panel_1tq06_1",ea="_empty_1tq06_5",Te={panel:Zr,empty:ea};function pa({tab:e,owningPaneId:n}){const{sessionId:s}=e.data,o=O(r=>r.sessions[s]);return rn(s),o?t.jsxs(Ce,{className:Te.panel,children:[t.jsx(Xr,{running:o.status==="running"}),t.jsx(Ho,{session:o,owningPaneId:n,workspaceCwd:e.workspaceCwd}),t.jsx(Yr,{sessionId:o.id})]}):t.jsx(Ce,{children:t.jsx("div",{className:Te.empty,children:"Session not found."})})}export{pa as ChatPanel};