Skip to content

The VS Code of video editing, built for agents.

TypeScript

Replace and remove SVG icons in the assets directory

konstantin-paulus6bde47b9a1db
diff --git a/apps/web/src/assets/icons/agent-cursor.svg b/apps/web/src/assets/icons/agent-cursor.svg
deleted file mode 100644
index d3e06be2..00000000
--- a/apps/web/src/assets/icons/agent-cursor.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
-<g transform="translate(5 5) scale(0.583333)" fill="currentColor" fill-rule="evenodd">
-<path d="M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"></path>
-</g>
-</svg>
diff --git a/apps/web/src/assets/icons/agent.claude-code.svg b/apps/web/src/assets/icons/agent.claude-code.svg
new file mode 100644
index 00000000..bf6a732b
--- /dev/null
+++ b/apps/web/src/assets/icons/agent.claude-code.svg
@@ -0,0 +1,3 @@
+<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M17.4363 11.1433H19.25V12.8567H17.4375V14.5294H16.5391V16.1429H15.625V14.5294H14.7266V16.1429H13.8125V14.5294H10.1875V16.1429H9.274V14.5294H8.375V16.1429H7.4609V14.5294H6.5625V12.8562H4.75V11.1438H6.5625V7.85714H17.4363V11.1433ZM8.375 11.1433H9.274V9.57063H8.375V11.1433ZM14.7248 11.1433H15.625V9.57063H14.7248V11.1433Z" fill="currentColor" fill-opacity="0.64"/>
+</svg>
diff --git a/apps/web/src/assets/icons/agent.codex.svg b/apps/web/src/assets/icons/agent.codex.svg
new file mode 100644
index 00000000..612fe09d
--- /dev/null
+++ b/apps/web/src/assets/icons/agent.codex.svg
@@ -0,0 +1,3 @@
+<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M9.79816 5.50775C10.34 5.28508 10.9298 5.20472 11.5115 5.27433C12.2613 5.36038 12.9296 5.6793 13.5162 6.23052C13.5241 6.23801 13.5338 6.24341 13.5443 6.24626C13.5548 6.24911 13.5658 6.2493 13.5764 6.24683C14.3684 6.05222 15.13 6.12084 15.8607 6.4527L15.8962 6.46957L15.9828 6.51232C16.7461 6.90773 17.2934 7.50789 17.6241 8.31109C17.7805 8.69301 17.8593 9.0918 17.8609 9.5069C17.872 9.81599 17.8379 10.125 17.7597 10.4243C17.7558 10.4395 17.7559 10.4555 17.7598 10.4707C17.7638 10.486 17.7714 10.5 17.7822 10.5115C18.2244 10.9598 18.5319 11.5232 18.6698 12.1376C18.8864 13.2068 18.6642 14.1709 18.0044 15.0287L17.902 15.1524C17.465 15.6528 16.8914 16.0146 16.2517 16.1935C16.2377 16.1975 16.2249 16.2049 16.2143 16.2148C16.2037 16.2248 16.1957 16.2372 16.1909 16.2509C16.0475 16.6649 15.9035 17.0181 15.6357 17.3713C14.9613 18.2612 13.9696 18.7561 12.8525 18.7499C11.9621 18.7454 11.1729 18.4198 10.4844 17.7735C10.474 17.7639 10.4612 17.7572 10.4474 17.7541C10.4336 17.7509 10.4192 17.7514 10.4057 17.7555C10.1143 17.8494 9.82066 17.8629 9.50342 17.8596C8.99658 17.8555 8.49736 17.7358 8.04375 17.5097C7.56894 17.2742 7.15562 16.9312 6.83663 16.5079C6.72245 16.3566 6.60939 16.2143 6.5267 16.0462C6.41266 15.8143 6.31948 15.5728 6.24827 15.3245C6.09874 14.7602 6.09545 14.1671 6.2387 13.6011C6.24333 13.5878 6.24487 13.5735 6.2432 13.5595C6.24042 13.5455 6.2331 13.5329 6.22239 13.5235C5.87566 13.1728 5.61061 12.7499 5.44615 12.2849C5.33727 11.9987 5.27406 11.6971 5.25884 11.3912C5.23164 10.9884 5.26731 10.5838 5.36459 10.192C5.61771 9.35728 6.10089 8.70257 6.81413 8.22729C6.97276 8.12154 7.12351 8.03942 7.26525 7.98092C7.42613 7.91343 7.58756 7.85718 7.74956 7.80993C7.76115 7.8065 7.77169 7.80022 7.78024 7.79168C7.78879 7.78313 7.79506 7.77259 7.7985 7.761C7.92134 7.31945 8.13261 6.90745 8.41949 6.55C8.80199 6.07416 9.26154 5.72655 9.79816 5.50775ZM9.34592 9.92313C9.28311 9.81326 9.17923 9.73284 9.05713 9.69956C8.93503 9.66628 8.8047 9.68287 8.69483 9.74567C8.58496 9.80847 8.50454 9.91235 8.47125 10.0344C8.43797 10.1565 8.45456 10.2869 8.51736 10.3967L9.47023 12.0644L8.52074 13.6664C8.46253 13.7749 8.44851 13.9017 8.48161 14.0204C8.51471 14.139 8.59238 14.2403 8.69838 14.303C8.80439 14.3657 8.93053 14.3851 9.05047 14.357C9.1704 14.3289 9.27484 14.2556 9.34198 14.1523L10.4332 12.3119C10.4763 12.2394 10.4993 12.1567 10.5 12.0723C10.5007 11.9879 10.479 11.9049 10.4372 11.8316L9.34592 9.92313ZM12.4093 13.4329C12.2877 13.4402 12.1736 13.4935 12.0901 13.5821C12.0066 13.6707 11.9601 13.7879 11.9601 13.9096C11.9601 14.0314 12.0066 14.1485 12.0901 14.2371C12.1736 14.3257 12.2877 14.3791 12.4093 14.3863H15.1362C15.2587 14.3804 15.3742 14.3275 15.4588 14.2387C15.5434 14.1499 15.5906 14.032 15.5906 13.9093C15.5906 13.7867 15.5434 13.6688 15.4588 13.58C15.3742 13.4912 15.2587 13.4383 15.1362 13.4324H12.4093V13.4329Z" fill="currentColor" fill-opacity="0.64"/>
+</svg>
diff --git a/apps/web/src/assets/icons/agent.cursor.svg b/apps/web/src/assets/icons/agent.cursor.svg
new file mode 100644
index 00000000..ddedbd74
--- /dev/null
+++ b/apps/web/src/assets/icons/agent.cursor.svg
@@ -0,0 +1,3 @@
+<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M18.2943 8.19548L12.4894 4.84384C12.3978 4.791 12.2938 4.76318 12.188 4.76318C12.0822 4.76318 11.9783 4.791 11.8866 4.84384L6.08244 8.19548C6.00538 8.23997 5.94136 8.30395 5.89683 8.38098C5.85229 8.45802 5.82879 8.54542 5.82869 8.63441V15.3919C5.82879 15.4808 5.85229 15.5682 5.89683 15.6453C5.94136 15.7223 6.00538 15.7863 6.08244 15.8308L11.8873 19.1824C11.9789 19.2353 12.0829 19.2632 12.1887 19.2632C12.2945 19.2632 12.3985 19.2353 12.4901 19.1824L18.295 15.8315C18.372 15.787 18.436 15.723 18.4806 15.646C18.5251 15.5689 18.5486 15.4815 18.5487 15.3925V8.63372C18.5486 8.54473 18.5251 8.45734 18.4806 8.3803C18.436 8.30326 18.372 8.23929 18.295 8.19479L18.2943 8.19548ZM17.9301 8.90531L12.3262 18.6111C12.2885 18.6763 12.1884 18.6495 12.1884 18.5734V12.2185C12.1883 12.156 12.1718 12.0945 12.1405 12.0404C12.1092 11.9862 12.0642 11.9412 12.01 11.9099L6.50697 8.73385C6.44113 8.69544 6.46788 8.59531 6.544 8.59531H17.7504C17.9102 8.59531 18.0097 8.76746 17.9301 8.90531Z" fill="currentColor" fill-opacity="0.64"/>
+</svg>
diff --git a/apps/web/src/assets/icons/agent.devin-windsurf.svg b/apps/web/src/assets/icons/agent.devin-windsurf.svg
new file mode 100644
index 00000000..95d453b9
--- /dev/null
+++ b/apps/web/src/assets/icons/agent.devin-windsurf.svg
@@ -0,0 +1,3 @@
+<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M7.78693 12.3369C7.84827 12.337 7.90873 12.3539 7.96173 12.3848L9.47345 13.2627C9.47638 13.2639 9.47756 13.2664 9.47931 13.2676C9.50265 13.2816 9.52426 13.2984 9.54376 13.3174L9.55255 13.3262C9.56951 13.3442 9.58462 13.3646 9.59748 13.3857L9.60333 13.3955C9.61605 13.4187 9.62631 13.4433 9.63361 13.4688L9.63751 13.4854C9.64453 13.5124 9.64819 13.5404 9.64826 13.5684V14.4453C9.64826 14.7845 9.83014 15.1012 10.1219 15.2705C10.2656 15.3538 10.4294 15.3975 10.5955 15.3975C10.7615 15.3974 10.9246 15.3537 11.0682 15.2705L11.8231 14.8311C11.8473 14.8176 11.8735 14.8071 11.9002 14.7998C11.9308 14.7901 11.9629 14.7847 11.9949 14.7842H12.0067C12.0314 14.7851 12.0568 14.7882 12.0809 14.7939C12.0844 14.7956 12.0885 14.7957 12.0926 14.7969C12.1186 14.8039 12.1435 14.8147 12.1668 14.8281L12.1736 14.8311L13.6863 15.709H13.6873C13.7405 15.74 13.7845 15.7845 13.8152 15.8379C13.846 15.8915 13.8622 15.9528 13.8621 16.0146V17.7705C13.8621 17.8321 13.8459 17.8929 13.8152 17.9463C13.7845 17.9996 13.7405 18.0442 13.6873 18.0752L12.1756 18.9531C12.1224 18.9843 12.0615 19.0009 11.9998 19.001C11.9381 19.001 11.8773 18.9843 11.824 18.9531L10.3123 18.0752L10.3065 18.0703C10.2828 18.0561 10.2609 18.0394 10.242 18.0205L10.2332 18.0117C10.2161 17.994 10.2013 17.9734 10.1883 17.9521L10.1824 17.9434C10.17 17.9197 10.1599 17.8952 10.1522 17.8691L10.1483 17.8525C10.1412 17.8259 10.1365 17.7991 10.1365 17.7695V16.8926C10.1377 16.7259 10.0951 16.5617 10.0125 16.417C9.92995 16.2724 9.81078 16.1521 9.66681 16.0684C9.52274 15.9847 9.35882 15.9405 9.1922 15.9404C9.02562 15.9404 8.86172 15.9839 8.71759 16.0674L7.96173 16.5068C7.93776 16.5202 7.91202 16.5307 7.88556 16.5381C7.85505 16.5478 7.82286 16.5532 7.79083 16.5537H7.78595L7.77716 16.5527C7.72191 16.5503 7.6676 16.5351 7.61896 16.5088L7.61212 16.5068L6.09943 15.6289C5.9906 15.5662 5.92373 15.4492 5.92365 15.3232V13.5674C5.92368 13.5058 5.93982 13.445 5.97052 13.3916C6.0013 13.3381 6.04609 13.2937 6.09943 13.2627L7.61212 12.3848C7.66518 12.3539 7.72555 12.3369 7.78693 12.3369ZM16.2127 7.44434C16.2741 7.44442 16.3345 7.46029 16.3875 7.49121L17.8983 8.36914C17.9516 8.4001 17.9963 8.44461 18.0272 8.49805C18.058 8.55155 18.074 8.61305 18.074 8.6748V10.4297C18.074 10.4915 18.058 10.5529 18.0272 10.6064C17.9963 10.66 17.9516 10.7043 17.8983 10.7354L16.3865 11.6133C16.3842 11.6151 16.3811 11.615 16.3787 11.6162C16.3551 11.6292 16.3294 11.639 16.3035 11.6465L16.2918 11.6494C16.2683 11.6557 16.2439 11.6592 16.2195 11.6592C16.2172 11.6598 16.2137 11.6611 16.2108 11.6611H16.2078C16.1814 11.6599 16.155 11.6562 16.1297 11.6504L16.1131 11.6455C16.0866 11.6367 16.0602 11.628 16.036 11.6133L15.2801 11.1748C15.1364 11.0917 14.9734 11.0479 14.8074 11.0479C14.6412 11.0479 14.4776 11.0916 14.3338 11.1748L14.3367 11.1758C14.1933 11.2601 14.0737 11.38 13.991 11.5244C13.9083 11.669 13.8651 11.8334 13.8651 12C13.8651 12.1664 13.9084 12.3301 13.991 12.4746C14.0738 12.6192 14.1931 12.7398 14.3367 12.8242C14.4803 12.9073 14.6435 12.9511 14.8094 12.9512C14.9755 12.9512 15.1393 12.9074 15.283 12.8242L16.0379 12.3848C16.0622 12.3713 16.0883 12.3609 16.1151 12.3535C16.1457 12.3438 16.1777 12.3384 16.2098 12.3379H16.2205C16.2455 12.3388 16.2705 12.3428 16.2947 12.3486C16.2987 12.3497 16.3024 12.3498 16.3065 12.3516C16.3323 12.3584 16.3574 12.3678 16.3807 12.3809C16.383 12.3826 16.3885 12.3838 16.3885 12.3838L17.9002 13.2617C17.9536 13.2928 17.9974 13.338 18.0281 13.3916C18.0589 13.4452 18.0751 13.5056 18.075 13.5674V15.3232C18.075 15.3849 18.0588 15.4456 18.0281 15.499C17.9975 15.5524 17.9534 15.5968 17.9002 15.6279L16.3885 16.5059C16.3352 16.5368 16.2743 16.5537 16.2127 16.5537C16.1511 16.5537 16.0902 16.5368 16.0369 16.5059L14.5252 15.6279C14.5223 15.6267 14.5207 15.6242 14.5184 15.623C14.4956 15.609 14.4742 15.5929 14.4549 15.5742L14.4461 15.5645C14.4292 15.5465 14.414 15.527 14.4012 15.5059C14.4 15.5023 14.3977 15.4996 14.3953 15.4961C14.3826 15.4727 14.3724 15.4475 14.3651 15.4219L14.3611 15.4053C14.3541 15.3789 14.3495 15.3519 14.3494 15.3232V14.4453C14.3505 14.2789 14.3079 14.1152 14.2254 13.9707C14.1427 13.826 14.0228 13.7057 13.8787 13.6221C13.7348 13.5385 13.5715 13.4942 13.4051 13.4941C13.2386 13.4941 13.0746 13.5376 12.9305 13.6211L12.1746 14.0605C12.1504 14.0742 12.1243 14.0843 12.0975 14.0918C12.0667 14.1007 12.0347 14.1064 12.0027 14.1064H11.9988L11.991 14.1055C11.9665 14.1048 11.9416 14.1017 11.9178 14.0957L11.9061 14.0938C11.8801 14.0867 11.8555 14.0755 11.8319 14.0625C11.8299 14.0611 11.8263 14.0599 11.825 14.0596L10.3123 13.1816C10.2036 13.1189 10.1376 13.0023 10.1375 12.877V11.1211C10.1374 11.0594 10.1537 10.9989 10.1844 10.9453C10.2151 10.8918 10.259 10.8465 10.3123 10.8154L11.825 9.9375L11.8319 9.93457C11.8806 9.90746 11.9353 9.89222 11.991 9.89062H12.0027C12.0293 9.89132 12.0561 9.89498 12.0819 9.90137L12.0985 9.90625C12.125 9.91354 12.1505 9.92414 12.1746 9.9375L12.9305 10.377C13.0742 10.46 13.2372 10.5038 13.4031 10.5039C13.5693 10.5039 13.7329 10.4601 13.8768 10.377C14.1685 10.2065 14.3502 9.89116 14.3504 9.55273V8.6748C14.3508 8.64691 14.3544 8.61887 14.3611 8.5918L14.3651 8.5752C14.3724 8.54968 14.3832 8.52505 14.3963 8.50195C14.3975 8.49841 14.4004 8.49514 14.4022 8.49219C14.4152 8.47102 14.4302 8.45082 14.4471 8.43262L14.4549 8.42383C14.4743 8.40492 14.4963 8.38814 14.5194 8.37402L14.5262 8.36914L16.0369 7.49121C16.0901 7.4602 16.1512 7.44434 16.2127 7.44434ZM11.9988 5.00098C12.0602 5.00101 12.1206 5.01699 12.1736 5.04785L13.6863 5.9248C13.7399 5.95579 13.7844 6.00009 13.8152 6.05371C13.846 6.10724 13.8622 6.16774 13.8621 6.22949V7.98535C13.8621 8.04709 13.846 8.10762 13.8152 8.16113C13.7844 8.21474 13.7399 8.25901 13.6863 8.29004L12.1746 9.16797L12.1678 9.1709C12.119 9.19799 12.0644 9.21333 12.0086 9.21484L12.0008 9.21582H11.9969C11.9704 9.21522 11.9446 9.21191 11.9188 9.20605L11.9022 9.2002C11.8756 9.19312 11.8499 9.18256 11.826 9.16895L11.0692 8.72949C10.9255 8.64644 10.7624 8.60254 10.5965 8.60254C10.4305 8.60255 10.2675 8.64641 10.1238 8.72949C9.832 8.89939 9.65021 9.21511 9.65021 9.55371V10.4316C9.64968 10.4596 9.64543 10.4876 9.63849 10.5146L9.63458 10.5312C9.62737 10.557 9.61751 10.5822 9.60431 10.6055C9.60308 10.6089 9.59922 10.6114 9.59748 10.6143C9.58449 10.6354 9.56948 10.6556 9.55255 10.6738L9.54572 10.6826C9.526 10.7016 9.50378 10.7184 9.48029 10.7324L9.47443 10.7373L7.96271 11.6152C7.90949 11.6462 7.84848 11.6621 7.78693 11.6621C7.72555 11.6621 7.66522 11.646 7.61212 11.6152L6.10041 10.7373C5.99148 10.6751 5.92462 10.5587 5.92462 10.4326V8.67676C5.92473 8.61509 5.94069 8.5544 5.9715 8.50098C6.00235 8.44755 6.04703 8.40302 6.10041 8.37207L7.61115 7.49316C7.61346 7.49159 7.61628 7.49137 7.61798 7.49023C7.66659 7.46271 7.72131 7.44747 7.77716 7.44629H7.78888C7.81541 7.44715 7.84218 7.45081 7.86798 7.45703L7.88458 7.46191C7.91112 7.46931 7.93662 7.47988 7.96076 7.49316L8.71662 7.93262C8.86028 8.01564 9.02335 8.05949 9.18927 8.05957C9.35536 8.05957 9.5191 8.01572 9.66291 7.93262C9.95475 7.76213 10.1365 7.44603 10.1365 7.10742V6.22949C10.1369 6.20165 10.1406 6.17351 10.1473 6.14648L10.1512 6.12988C10.1585 6.10442 10.1694 6.0797 10.1824 6.05664C10.1837 6.05332 10.1866 6.05065 10.1883 6.04785C10.2013 6.02667 10.2163 6.00647 10.2332 5.98828L10.241 5.97949C10.2605 5.96087 10.2824 5.9445 10.3055 5.93066L10.3123 5.9248L11.824 5.04785C11.877 5.01706 11.9375 5.00098 11.9988 5.00098Z" fill="currentColor" fill-opacity="0.64"/>
+</svg>
diff --git a/apps/web/src/assets/icons/agent.google-antigravity.svg b/apps/web/src/assets/icons/agent.google-antigravity.svg
new file mode 100644
index 00000000..9444bc1f
--- /dev/null
+++ b/apps/web/src/assets/icons/agent.google-antigravity.svg
@@ -0,0 +1,3 @@
+<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M17.4849 17.9678C18.2386 18.5331 19.3693 18.1562 18.3331 17.1195C15.2231 14.1051 15.8834 5.81376 12.0207 5.81376C8.15802 5.81376 8.81727 14.1051 5.70832 17.1201C4.57769 18.2501 5.80226 18.5325 6.55601 17.9672C9.47653 15.9889 9.28809 12.503 12.0207 12.503C14.7528 12.503 14.5644 15.9889 17.4849 17.9678Z" fill="currentColor" fill-opacity="0.64"/>
+</svg>
diff --git a/apps/web/src/assets/icons/agent.google-gemini-cli.svg b/apps/web/src/assets/icons/agent.google-gemini-cli.svg
new file mode 100644
index 00000000..d69b1057
--- /dev/null
+++ b/apps/web/src/assets/icons/agent.google-gemini-cli.svg
@@ -0,0 +1,3 @@
+<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M16.2793 5.25C16.9345 5.25 17.5631 5.51032 18.0264 5.97363C18.4897 6.43694 18.75 7.06549 18.75 7.7207V16.2793C18.75 16.9345 18.4897 17.5631 18.0264 18.0264C17.5631 18.4897 16.9345 18.75 16.2793 18.75H7.7207C7.06549 18.75 6.43694 18.4897 5.97363 18.0264C5.51032 17.5631 5.25 16.9345 5.25 16.2793V7.7207C5.25 7.06549 5.51032 6.43694 5.97363 5.97363C6.43694 5.51032 7.06549 5.25 7.7207 5.25H16.2793ZM7.64648 6.0625C7.22638 6.0625 6.82342 6.22931 6.52637 6.52637C6.22931 6.82342 6.0625 7.22638 6.0625 7.64648V16.3535C6.0625 16.7736 6.22931 17.1766 6.52637 17.4736C6.82342 17.7707 7.22638 17.9375 7.64648 17.9375H16.3535C16.7736 17.9375 17.1766 17.7707 17.4736 17.4736C17.7707 17.1766 17.9375 16.7736 17.9375 16.3535V7.64648C17.9375 7.22638 17.7707 6.82342 17.4736 6.52637C17.1766 6.22931 16.7736 6.0625 16.3535 6.0625H7.64648ZM14.6963 11.0762V13.251L9.32031 15.8359V14.2607L13.6807 12.1641L9.32129 10.0674V8.49121L14.6963 11.0762Z" fill="currentColor" fill-opacity="0.64"/>
+</svg>
diff --git a/apps/web/src/assets/icons/agent.vscode-copilot.svg b/apps/web/src/assets/icons/agent.vscode-copilot.svg
new file mode 100644
index 00000000..2643e1b6
--- /dev/null
+++ b/apps/web/src/assets/icons/agent.vscode-copilot.svg
@@ -0,0 +1,3 @@
+<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M12.126 6.37019C12.744 5.70777 13.7011 5.55541 14.7939 5.67683C15.9085 5.80098 16.738 6.15524 17.2627 6.81941C17.7756 7.46738 17.8906 8.28293 17.8906 9.07136C17.8906 9.58953 17.8422 10.1112 17.6602 10.5714C17.7199 10.7779 17.749 10.9603 17.7744 11.1261C17.7853 11.1949 17.7968 11.2609 17.8086 11.3243C18.6457 11.6734 19.1875 12.6574 19.25 13.2227V14.919C19.2497 15.6134 16.2128 18.3585 11.998 18.3585C7.86451 18.3584 4.86425 15.7182 4.75 14.961V13.1954C4.82703 12.6263 5.36386 11.6678 6.18945 11.3243C6.20123 11.2609 6.2108 11.194 6.22168 11.1261C6.24795 10.9603 6.27615 10.7779 6.33594 10.5714C6.15392 10.1112 6.1055 9.58949 6.10547 9.07136C6.10547 8.28293 6.22137 7.46738 6.7334 6.81941C7.25808 6.1552 8.0876 5.80101 9.20215 5.67683C10.295 5.55541 11.252 5.70788 11.8701 6.37019C11.9154 6.41814 11.9572 6.46804 11.9961 6.51961C12.036 6.46795 12.0816 6.41822 12.126 6.37019ZM12 10.4444C11.8686 10.6912 11.7024 10.9184 11.5068 11.1182C10.9178 11.7199 10.0902 12.0167 9.05078 12.0167C8.46008 12.0167 7.9312 11.9423 7.48633 11.752L7.46484 11.8575V15.7139C7.84455 16.0067 9.93184 17.0127 11.998 17.0128C14.0641 17.0128 16.1521 16.0068 16.5312 15.7139V11.8575L16.5107 11.752C16.0667 11.9423 15.5362 12.0167 14.9453 12.0167C13.9068 12.0167 13.0792 11.72 12.4893 11.1182C12.2948 10.9183 12.1301 10.6911 12 10.4444ZM10.3594 12.9542C10.5458 12.9542 10.7246 13.0284 10.8564 13.1602C10.9883 13.292 11.0624 13.4709 11.0625 13.6573V15.0645C11.0625 15.251 10.9882 15.4297 10.8564 15.5616C10.7246 15.6935 10.5459 15.7677 10.3594 15.7677C10.1729 15.7677 9.99417 15.6935 9.8623 15.5616C9.73051 15.4297 9.65625 15.251 9.65625 15.0645V13.6573C9.65631 13.4709 9.7305 13.292 9.8623 13.1602C9.99415 13.0284 10.173 12.9542 10.3594 12.9542ZM13.6406 12.9542C13.827 12.9542 14.0058 13.0284 14.1377 13.1602C14.2695 13.292 14.3437 13.4709 14.3438 13.6573V15.0645C14.3438 15.251 14.2695 15.4297 14.1377 15.5616C14.0058 15.6935 13.8271 15.7677 13.6406 15.7677C13.4541 15.7677 13.2754 15.6935 13.1436 15.5616C13.0118 15.4297 12.9375 15.251 12.9375 15.0645V13.6573C12.9376 13.4709 13.0117 13.292 13.1436 13.1602C13.2754 13.0284 13.4542 12.9542 13.6406 12.9542ZM10.8779 7.29695C10.7029 7.11036 10.3001 6.92332 9.35352 7.0284C8.43074 7.13076 8.01391 7.39411 7.80176 7.66218C7.57791 7.94493 7.4668 8.37808 7.4668 9.07136C7.46685 9.7897 7.58391 10.1323 7.74609 10.3136C7.89295 10.4775 8.21657 10.6573 9.05273 10.6573C9.82577 10.6573 10.2661 10.4435 10.5371 10.1671C10.8225 9.87525 11.0151 9.4177 11.0967 8.75984C11.2027 7.91266 11.0628 7.4954 10.8779 7.29695ZM14.6436 7.0284C13.6978 6.92331 13.2951 7.11033 13.1201 7.29695C12.9353 7.4954 12.7944 7.91267 12.9004 8.75984C12.9828 9.41765 13.1756 9.87525 13.4609 10.1671C13.7319 10.4435 14.1714 10.6573 14.9453 10.6573C15.7806 10.6573 16.1051 10.4775 16.252 10.3136C16.4141 10.1323 16.5312 9.7897 16.5312 9.07136C16.5312 8.37808 16.4201 7.94493 16.1963 7.66218C15.9851 7.39397 15.5678 7.1308 14.6436 7.0284Z" fill="currentColor" fill-opacity="0.64"/>
+</svg>
diff --git a/apps/web/src/assets/icons/antigravity.svg b/apps/web/src/assets/icons/antigravity.svg
deleted file mode 100644
index ee79e568..00000000
--- a/apps/web/src/assets/icons/antigravity.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
-<g transform="translate(5 5) scale(0.583333)" fill="currentColor" fill-rule="evenodd">
-<path d="M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z"></path>
-</g>
-</svg>
diff --git a/apps/web/src/assets/icons/command-slash.svg b/apps/web/src/assets/icons/command-slash.svg
deleted file mode 100644
index 557f5081..00000000
--- a/apps/web/src/assets/icons/command-slash.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path fill-rule="evenodd" clip-rule="evenodd" d="M8.46582 18.3131L13.2567 6.68701H14.4658L9.67492 18.3131H8.46582Z" fill="currentColor"/>
-</svg>
diff --git a/apps/web/src/assets/icons/dapi-cli.svg b/apps/web/src/assets/icons/dapi-cli.svg
new file mode 100644
index 00000000..72628409
--- /dev/null
+++ b/apps/web/src/assets/icons/dapi-cli.svg
@@ -0,0 +1,3 @@
+<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M17.0999 15.5C17.376 15.5 17.5999 15.7238 17.5999 16C17.5999 16.2761 17.376 16.5 17.0999 16.5H12.0999C11.8239 16.4998 11.5999 16.276 11.5999 16C11.5999 15.7239 11.8239 15.5001 12.0999 15.5H17.0999ZM7.14482 7.97654C7.33918 7.78237 7.65574 7.78117 7.85185 7.97361L11.0667 11.1289C11.1685 11.2289 11.2166 11.3615 11.2132 11.4931C11.2193 11.6279 11.172 11.7647 11.0677 11.8672L7.85282 15.0224C7.65675 15.2149 7.34017 15.2136 7.14579 15.0195C6.95144 14.8251 6.95256 14.5109 7.14872 14.3183L10.0227 11.498L7.14872 8.67673C6.95264 8.48425 6.95064 8.1709 7.14482 7.97654Z" fill="currentColor" fill-opacity="0.64"/>
+</svg>
diff --git a/apps/web/src/assets/icons/gemini-cli.svg b/apps/web/src/assets/icons/gemini-cli.svg
deleted file mode 100644
index 4845602e..00000000
--- a/apps/web/src/assets/icons/gemini-cli.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
-<g transform="translate(5 5) scale(0.583333)" fill="currentColor" fill-rule="evenodd">
-<path d="M16.793 10.358v3.867L7.236 18.82v-2.8l7.751-3.728-7.75-3.728V5.763l9.556 4.595z"></path><path clip-rule="evenodd" d="M19.608 0A4.392 4.392 0 0124 4.392v15.216A4.392 4.392 0 0119.608 24H4.392A4.392 4.392 0 010 19.608V4.392A4.392 4.392 0 014.392 0h15.216zM4.26 1.444A2.816 2.816 0 001.444 4.26v15.48a2.816 2.816 0 002.816 2.816h15.48a2.816 2.816 0 002.816-2.816V4.26a2.816 2.816 0 00-2.816-2.816H4.26z"></path>
-</g>
-</svg>
diff --git a/apps/web/src/assets/icons/github-copilot.svg b/apps/web/src/assets/icons/github-copilot.svg
deleted file mode 100644
index 0c65a9d9..00000000
--- a/apps/web/src/assets/icons/github-copilot.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
-<g transform="translate(5 5) scale(0.583333)" fill="currentColor" fill-rule="evenodd">
-<path d="M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z"></path>
-</g>
-</svg>
diff --git a/apps/web/src/assets/icons/windsurf.svg b/apps/web/src/assets/icons/windsurf.svg
deleted file mode 100644
index dffd0758..00000000
--- a/apps/web/src/assets/icons/windsurf.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
-<g transform="translate(5 5) scale(0.583333)" fill="currentColor" fill-rule="evenodd">
-<path clip-rule="evenodd" d="M23.78 5.004h-.228a2.187 2.187 0 00-2.18 2.196v4.912c0 .98-.804 1.775-1.76 1.775a1.818 1.818 0 01-1.472-.773L13.168 5.95a2.197 2.197 0 00-1.81-.95c-1.134 0-2.154.972-2.154 2.173v4.94c0 .98-.797 1.775-1.76 1.775-.57 0-1.136-.289-1.472-.773L.408 5.098C.282 4.918 0 5.007 0 5.228v4.284c0 .216.066.426.188.604l5.475 7.889c.324.466.8.812 1.351.938 1.377.316 2.645-.754 2.645-2.117V11.89c0-.98.787-1.775 1.76-1.775h.002c.586 0 1.135.288 1.472.773l4.972 7.163a2.15 2.15 0 001.81.95c1.158 0 2.151-.973 2.151-2.173v-4.939c0-.98.787-1.775 1.76-1.775h.194c.122 0 .22-.1.22-.222V5.225a.221.221 0 00-.22-.222z"></path>
-</g>
-</svg>
diff --git a/apps/web/src/components/dashboard/mcp-view.tsx b/apps/web/src/components/dashboard/mcp-view.tsx
index 316afa24..013f9f8e 100644
--- a/apps/web/src/components/dashboard/mcp-view.tsx
+++ b/apps/web/src/components/dashboard/mcp-view.tsx
@@ -2,16 +2,16 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-import { For, Match, Show, Switch, createResource, createSignal } from "solid-js";
+import { For, Match, Show, Switch, createResource, createSignal, onCleanup } from "solid-js";
import { toast } from "somoto";
import { Button } from "@/components/ui/button";
import { Icon } from "@/components/ui/icon";
+import { Switch as Toggle, SwitchControl, SwitchInput, SwitchThumb } from "@/components/ui/switch";
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
import {
AGENT_ICONS,
applyMcp,
- displayPath,
fetchCliStatus,
fetchMcpStatus,
installCli,
@@ -30,157 +30,38 @@ import {
DashboardTitledSection,
} from "./shared";
-function DashboardCliSection() {
- const [status, { refetch }] = createResource(fetchCliStatus);
- const [busy, setBusy] = createSignal(false);
-
- const description = () => {
- const current = status();
- if (!current) return "Checking...";
- if (current.installed) return `Installed at ${current.path}`;
- if (!current.available) return "Not installed. Available in the packaged app; in development, run npm run symlink:create.";
- return "Not installed";
- };
-
- const handleInstall = async () => {
- setBusy(true);
- try {
- const result = await installCli();
- if (result.status === "installed") toast("CLI installed", { description: "Run dapi --help in a terminal to get started." });
- if (result.status === "error") toast.error("Could not install the CLI", { description: result.error });
- } catch (e) {
- toast.error("Could not install the CLI", { description: (e as Error).message });
- } finally {
- setBusy(false);
- void refetch();
- }
- };
-
- const handleUninstall = async () => {
- setBusy(true);
- try {
- const result = await uninstallCli();
- if (result.status === "removed") toast("CLI uninstalled");
- if (result.status === "error") toast.error("Could not uninstall the CLI", { description: result.error });
- } catch (e) {
- toast.error("Could not uninstall the CLI", { description: (e as Error).message });
- } finally {
- setBusy(false);
- void refetch();
- }
- };
-
- return (
- <DashboardSurfaceSection
- title="Command line"
- description="With the CLI installed, agents can launch Diffusion Studio on their own, in the background if they like."
- >
- <DashboardInfoActionRow
- title="dapi"
- leading={<Icon name="command-slash" class="text-foreground" />}
- description={description()}
- action={
- <Switch>
- <Match when={!status()}>
- <Button variant="secondary" disabled>
- Install
- </Button>
- </Match>
- <Match when={status()?.installed && status()?.managed}>
- <Button variant="secondary" disabled={busy()} onClick={handleUninstall}>
- Uninstall
- </Button>
- </Match>
- <Match when={status()?.installed}>
- <Tooltip>
- <TooltipTrigger as={Button} variant="on">
- Installed
- </TooltipTrigger>
- <TooltipContent>Not a link, so it is left alone.</TooltipContent>
- </Tooltip>
- </Match>
- <Match when={status()?.available}>
- <Button disabled={busy()} onClick={handleInstall}>
- Install
- </Button>
- </Match>
- <Match when={true}>
- <Button variant="secondary" disabled>
- Unavailable
- </Button>
- </Match>
- </Switch>
- }
- />
- </DashboardSurfaceSection>
- );
-}
+const MCP_DOCS_URL = "https://modelcontextprotocol.io/docs/2026-07-28/develop/connect-local-servers";
// --- Agents ------------------------------------------------------------------
-type PendingChange = "add" | "remove";
-type Pending = Partial<Record<AgentId, PendingChange>>;
-
type AgentRowProps = {
agent: McpAgentStatus;
- pending: PendingChange | undefined;
- onToggle: () => void;
+ /** The state the switch is moving to while a write is in flight. */
+ pending: boolean | undefined;
+ onChange: (connected: boolean) => void;
};
function AgentRow(props: AgentRowProps) {
- const description = () => {
- const { agent } = props;
- if (props.pending === "add") return <span class="text-primary">Will be added</span>;
- if (props.pending === "remove") return <span class="text-destructive">Will be removed</span>;
- if (agent.connected) return `Connected · ${displayPath(agent.config)}`;
- if (agent.unavailable) return agent.unavailable;
- if (!agent.detected) return "Not found on this Mac";
- return "Not connected";
- };
+ const checked = () => props.pending ?? props.agent.connected;
return (
<DashboardInfoActionRow
layout="inline"
+ leadingSize="sm"
title={props.agent.label}
leading={<Icon name={AGENT_ICONS[props.agent.id]} class="text-foreground" />}
- description={description()}
action={
- <Switch>
- <Match when={props.pending}>
- <Button variant="secondary" onClick={props.onToggle}>
- Undo
- </Button>
- </Match>
- <Match when={props.agent.connected}>
- <Tooltip>
- <TooltipTrigger
- as={Button}
- variant="ghost"
- size="icon"
- aria-label={`Remove from ${props.agent.label}`}
- onClick={props.onToggle}
- >
- <Icon name="minus" />
- </TooltipTrigger>
- <TooltipContent>Remove from {props.agent.label}</TooltipContent>
- </Tooltip>
- </Match>
- <Match when={true}>
- <Tooltip>
- <TooltipTrigger
- as={Button}
- variant="ghost"
- size="icon"
- aria-label={`Add to ${props.agent.label}`}
- disabled={props.agent.unavailable !== null}
- onClick={props.onToggle}
- >
- <Icon name="plus-add" />
- </TooltipTrigger>
- <TooltipContent>Add to {props.agent.label}</TooltipContent>
- </Tooltip>
- </Match>
- </Switch>
+ <Toggle
+ checked={checked()}
+ disabled={props.pending !== undefined}
+ onChange={props.onChange}
+ class="flex shrink-0 items-center"
+ >
+ <SwitchInput aria-label={`Connect ${props.agent.label}`} />
+ <SwitchControl variant="compact">
+ <SwitchThumb variant="compact" />
+ </SwitchControl>
+ </Toggle>
}
/>
);
@@ -188,74 +69,58 @@ function AgentRow(props: AgentRowProps) {
function DashboardAgentsSection() {
const [status, { refetch }] = createResource(fetchMcpStatus);
- const [pending, setPending] = createSignal<Pending>({});
- const [saving, setSaving] = createSignal(false);
-
- const ids = (change: PendingChange): AgentId[] =>
- (Object.entries(pending()) as [AgentId, PendingChange][])
- .filter(([, value]) => value === change)
- .map(([id]) => id);
- const toAdd = () => ids("add");
- const toRemove = () => ids("remove");
- const hasChanges = () => toAdd().length + toRemove().length > 0;
-
- const summary = () => {
- const parts = [
- toAdd().length > 0 ? `${toAdd().length} to add` : null,
- toRemove().length > 0 ? `${toRemove().length} to remove` : null,
- ].filter((part): part is string => part !== null);
- return parts.join(" · ");
- };
-
- const toggle = (agent: McpAgentStatus) => {
- setPending((current) => {
- const next = { ...current };
- if (next[agent.id]) delete next[agent.id];
- else next[agent.id] = agent.connected ? "remove" : "add";
- return next;
- });
- };
-
- const discard = () => setPending({});
+ const [pending, setPending] = createSignal<Partial<Record<AgentId, boolean>>>({});
const labelOf = (id: AgentId) => status()?.agents.find((agent) => agent.id === id)?.label ?? id;
- const save = async () => {
- if (!hasChanges() || saving()) return;
- setSaving(true);
- try {
- const result = await applyMcp({ add: toAdd(), remove: toRemove() });
-
- // Only what failed stays pending, so a retry is one click away.
- setPending((current) => {
- const next: Pending = {};
- for (const failure of result.failures) {
- const change = current[failure.id];
- if (change) next[failure.id] = change;
- }
- return next;
- });
+ /** Every agent not yet connected. */
+ const connectable = () => (status()?.agents ?? []).filter((agent) => !agent.connected);
+ /**
+ * Writes the change straight into the agents' configs — a switch is not a
+ * draft. Whatever fails snaps back, with the reason in a toast.
+ */
+ const apply = async (add: AgentId[], remove: AgentId[]) => {
+ if (add.length + remove.length === 0) return;
+ setPending((current) => ({
+ ...current,
+ ...Object.fromEntries(add.map((id) => [id, true])),
+ ...Object.fromEntries(remove.map((id) => [id, false])),
+ }));
+ try {
+ const result = await applyMcp({ add, remove });
const changed = result.added.length + result.removed.length;
if (result.failures.length > 0) {
toast.error(changed > 0 ? "Some agents could not be updated" : "Agents could not be updated", {
description: result.failures.map((failure) => `${labelOf(failure.id)}: ${failure.error}`).join("\n"),
});
- } else {
- toast("Agents updated", { description: "Restart the agent to pick up the change." });
}
} catch (e) {
toast.error("Could not update the agents", { description: (e as Error).message });
} finally {
- setSaving(false);
- void refetch();
+ await refetch();
+ setPending((current) => {
+ const next = { ...current };
+ for (const id of [...add, ...remove]) delete next[id];
+ return next;
+ });
}
};
+ const setConnected = (agent: McpAgentStatus, connected: boolean) =>
+ apply(connected ? [agent.id] : [], connected ? [] : [agent.id]);
+
+ const enableAll = () => apply(connectable().map((agent) => agent.id), []);
+
return (
<DashboardTitledSection
title="Agents"
- description="Adds Diffusion Studio as an MCP server to each agent's configuration, so the agent can inspect, generate, and edit your projects."
+ description="Connect to Diffusion Studio’s MCP server to create and edit videos with your agents."
+ action={
+ <Button variant="link" class="h-4" disabled={connectable().length === 0} onClick={enableAll}>
+ Enable all
+ </Button>
+ }
>
<DashboardSurfaceCard class="flex flex-col gap-3">
<Show
@@ -266,68 +131,150 @@ function DashboardAgentsSection() {
<DashboardDividedStack>
<For each={current().agents}>
{(agent) => (
- <AgentRow agent={agent} pending={pending()[agent.id]} onToggle={() => toggle(agent)} />
+ <AgentRow
+ agent={agent}
+ pending={pending()[agent.id]}
+ onChange={(connected) => void setConnected(agent, connected)}
+ />
)}
</For>
</DashboardDividedStack>
)}
</Show>
</DashboardSurfaceCard>
- <Show when={hasChanges()}>
- <div class="flex items-center gap-2 px-2 pt-3">
- <p class="min-w-0 flex-1 truncate text-xs text-muted-foreground">{summary()}</p>
- <Button variant="ghost" disabled={saving()} onClick={discard}>
- Discard
- </Button>
- <Button disabled={saving()} onClick={save}>
- Save changes
- </Button>
- </div>
- </Show>
</DashboardTitledSection>
);
}
-// --- Any other agent ---------------------------------------------------------
+// --- MCP server --------------------------------------------------------------
+
+const COPIED_LABEL_MS = 2000;
-function DashboardEndpointSection() {
+function DashboardMcpServerSection() {
const [status] = createResource(fetchMcpStatus);
+ const [copied, setCopied] = createSignal(false);
+ let copiedTimer: ReturnType<typeof setTimeout> | undefined;
+ onCleanup(() => clearTimeout(copiedTimer));
const copy = async () => {
const url = status()?.url;
if (!url) return;
try {
await navigator.clipboard.writeText(url);
- toast("Copied!", { description: "The MCP endpoint has been copied to your clipboard." });
+ // The button itself says so for a moment, then goes back to its label.
+ setCopied(true);
+ clearTimeout(copiedTimer);
+ copiedTimer = setTimeout(() => setCopied(false), COPIED_LABEL_MS);
} catch (e) {
toast.error("Failed to copy", { description: (e as Error).message });
}
};
return (
- <DashboardSurfaceSection title="Other agents">
+ <DashboardTitledSection title="MCP Server">
+ <DashboardSurfaceCard class="flex flex-col gap-3">
+ <DashboardInfoActionRow
+ layout="inline"
+ leadingSize="sm"
+ title="Diffusion Studio MCP"
+ leading={<Icon name="ai-mcp-cli" class="text-foreground" />}
+ description="Connect any other agent that supports MCP over Streamable HTTP."
+ action={
+ <div class="flex shrink-0 items-center gap-2">
+ <div class="flex h-7 w-41 items-center rounded-md bg-input px-2">
+ <span class="min-w-0 flex-1 truncate text-xs text-foreground">{status()?.url ?? "..."}</span>
+ </div>
+ <Button variant="secondary" disabled={!status()} onClick={copy}>
+ {copied() ? "Copied!" : "Copy URL"}
+ </Button>
+ </div>
+ }
+ />
+ </DashboardSurfaceCard>
+ <p class="px-2 pt-3 text-xs text-muted-foreground">
+ <span>Available locally while Diffusion Studio is running. </span>
+ <a href={MCP_DOCS_URL} target="_blank" class="text-primary hover:underline">
+ What is MCP?
+ </a>
+ </p>
+ </DashboardTitledSection>
+ );
+}
+
+// --- CLI ---------------------------------------------------------------------
+
+function DashboardCliSection() {
+ const [status, { refetch }] = createResource(fetchCliStatus);
+ const [busy, setBusy] = createSignal(false);
+
+ const handleInstall = async () => {
+ setBusy(true);
+ try {
+ const result = await installCli();
+ if (result.status === "installed") toast("CLI installed", { description: "Run dapi --help in a terminal to get started." });
+ if (result.status === "error") toast.error("Could not install the CLI", { description: result.error });
+ } catch (e) {
+ toast.error("Could not install the CLI", { description: (e as Error).message });
+ } finally {
+ setBusy(false);
+ void refetch();
+ }
+ };
+
+ const handleUninstall = async () => {
+ setBusy(true);
+ try {
+ const result = await uninstallCli();
+ if (result.status === "removed") toast("CLI uninstalled");
+ if (result.status === "error") toast.error("Could not uninstall the CLI", { description: result.error });
+ } catch (e) {
+ toast.error("Could not uninstall the CLI", { description: (e as Error).message });
+ } finally {
+ setBusy(false);
+ void refetch();
+ }
+ };
+
+ return (
+ <DashboardSurfaceSection
+ title="CLI"
+ description="Give agents access to Diffusion Studio through terminal commands."
+ >
<DashboardInfoActionRow
- title="MCP endpoint"
- description={
- <>
- Any agent that speaks Streamable HTTP can be pointed at{" "}
- <span class="font-mono text-foreground">{status()?.url ?? "..."}</span> while the app is running.
- </>
- }
+ layout="inline"
+ leadingSize="sm"
+ title="dapi CLI"
+ leading={<Icon name="dapi-cli" class="text-foreground" />}
+ description="Diffusion Studio’s command-line tool for accessing its media tools and managing projects."
action={
- <Tooltip>
- <TooltipTrigger
- as={Button}
- variant="ghost"
- size="icon"
- aria-label="Copy the MCP endpoint"
- disabled={!status()}
- onClick={copy}
- >
- <Icon name="clipboard" />
- </TooltipTrigger>
- <TooltipContent>Copy</TooltipContent>
- </Tooltip>
+ <Switch>
+ <Match when={!status()}>
+ <Button variant="secondary" disabled>
+ Install
+ </Button>
+ </Match>
+ <Match when={status()?.installed && status()?.managed}>
+ <Tooltip>
+ <TooltipTrigger as={Button} variant="secondary" disabled={busy()} onClick={handleUninstall}>
+ Uninstall
+ </TooltipTrigger>
+ <TooltipContent>Installed at {status()?.path}</TooltipContent>
+ </Tooltip>
+ </Match>
+ <Match when={status()?.installed}>
+ <Tooltip>
+ <TooltipTrigger as={Button} variant="on">
+ Installed
+ </TooltipTrigger>
+ <TooltipContent>Found at {status()?.path}. Not a link, so it is left alone.</TooltipContent>
+ </Tooltip>
+ </Match>
+ <Match when={true}>
+ <Button variant="secondary" disabled={busy()} onClick={handleInstall}>
+ Install
+ </Button>
+ </Match>
+ </Switch>
}
/>
</DashboardSurfaceSection>
@@ -347,20 +294,10 @@ export function DashboardMcpView() {
</DashboardSurfaceSection>
}
>
- <DashboardCliSection />
<DashboardAgentsSection />
- <DashboardEndpointSection />
+ <DashboardMcpServerSection />
+ <DashboardCliSection />
</Show>
- <div class="px-2 pt-1 text-xs text-muted-foreground">
- <span>Other agents can be connected by hand. </span>
- <a
- href="https://modelcontextprotocol.io/docs/2026-07-28/develop/connect-local-servers"
- target="_blank"
- class="text-primary hover:underline"
- >
- Learn more
- </a>
- </div>
</DashboardScrollView>
);
}
diff --git a/apps/web/src/components/dashboard/shared.tsx b/apps/web/src/components/dashboard/shared.tsx
index 0a4011e3..88d5f0b4 100644
--- a/apps/web/src/components/dashboard/shared.tsx
+++ b/apps/web/src/components/dashboard/shared.tsx
@@ -69,6 +69,7 @@ export function DashboardSurfaceCard(props: DashboardSurfaceCardProps) {
type DashboardTitledSectionProps = {
title: string;
description?: string;
+ action?: JSX.Element;
class?: string;
children: JSX.Element;
};
@@ -82,7 +83,10 @@ export function DashboardTitledSection(props: DashboardTitledSectionProps) {
{props.title}
</span>
<Show when={props.description}>
- <p class="pb-1 text-xs text-muted-foreground">{props.description}</p>
+ <div class="flex items-center gap-2 pb-1">
+ <p class="min-w-0 flex-1 text-xs text-muted-foreground">{props.description}</p>
+ {props.action}
+ </div>
</Show>
</div>
{props.children}
@@ -350,6 +354,8 @@ type DashboardInfoActionRowProps = {
description?: JSX.Element;
action: JSX.Element;
leading?: JSX.Element;
+ /** The box the leading icon is centred in; "sm" lets a 24px icon overhang a 16px slot. */
+ leadingSize?: "sm" | "md";
layout?: "responsive" | "responsive-md" | "inline";
};
@@ -369,7 +375,7 @@ export function DashboardInfoActionRow(props: DashboardInfoActionRowProps) {
const renderTitleText = (value: string) => (
<p
class={cx(
- "text-xs text-foreground",
+ "text-xs leading-4 text-foreground",
props.layout === "inline" ? "min-w-0 flex-1 truncate" : undefined,
)}
>
@@ -392,7 +398,7 @@ export function DashboardInfoActionRow(props: DashboardInfoActionRowProps) {
<div class="flex min-w-0 flex-1 flex-col gap-1">
{titleContent()}
<Show when={props.description}>
- <p class="text-muted-foreground text-xs">
+ <p class="text-muted-foreground text-xs leading-4">
{props.description}
</p>
</Show>
@@ -408,7 +414,14 @@ export function DashboardInfoActionRow(props: DashboardInfoActionRowProps) {
}
>
<div class={cx("flex min-w-0 flex-1 gap-2", leadingAlignClass())}>
- <span class="grid size-6 shrink-0 place-items-center text-muted-foreground">
+ <span
+ class={cx(
+ // Flex centring overhangs an oversized icon evenly on every side; a
+ // grid track would grow to fit it and pin it to the top-left.
+ "flex shrink-0 items-center justify-center text-muted-foreground",
+ props.leadingSize === "sm" ? "size-4" : "size-6",
+ )}
+ >
{props.leading}
</span>
{textContent()}
diff --git a/apps/web/src/pages/dashboard.tsx b/apps/web/src/pages/dashboard.tsx
index 9893661e..3bc6f20b 100644
--- a/apps/web/src/pages/dashboard.tsx
+++ b/apps/web/src/pages/dashboard.tsx
@@ -167,7 +167,9 @@ export function DashboardPage() {
</DashboardSidebarSection>
</Show>
</DashboardSidebarNav>
- <DashboardSidebarUser onClick={openProfile} />
+ <Show when={!settingsNavOpen()}>
+ <DashboardSidebarUser onClick={openProfile} />
+ </Show>
</aside>
<Separator orientation="vertical" class="bg-border-strong" />