toolroll 0.9.140 → 0.9.142
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.
- package/CHANGELOG.md +26 -0
- package/dist/attest.js +1 -1
- package/dist/browser/{chunk-agents-live-view.9f4367c89c6366769a567e729ac9181ccaa898bf3a168d3dc618f3cface887c7.js → chunk-agents-live-view.1b1c797cec2734229d36186796ae378527a7b5f7aa936897671a6c1f3a8cb19a.js} +5 -5
- package/dist/browser/chunk-agents-live-view.1b1c797cec2734229d36186796ae378527a7b5f7aa936897671a6c1f3a8cb19a.js.br +0 -0
- package/dist/browser/chunk-agents-live-view.1b1c797cec2734229d36186796ae378527a7b5f7aa936897671a6c1f3a8cb19a.js.gz +0 -0
- package/dist/browser/chunk-bundle.089b2471028b3dcf578cb4363ea4757738b28eda5459e6194f92707364033cd7.js +2 -0
- package/dist/browser/chunk-bundle.089b2471028b3dcf578cb4363ea4757738b28eda5459e6194f92707364033cd7.js.br +0 -0
- package/dist/browser/chunk-bundle.089b2471028b3dcf578cb4363ea4757738b28eda5459e6194f92707364033cd7.js.gz +0 -0
- package/dist/browser/chunk-chat-parts.51c73684050c98bc25724e417e4180981c14590934bb37fd9a1617942a7d32d3.js +4 -0
- package/dist/browser/chunk-chat-parts.51c73684050c98bc25724e417e4180981c14590934bb37fd9a1617942a7d32d3.js.br +0 -0
- package/dist/browser/chunk-chat-parts.51c73684050c98bc25724e417e4180981c14590934bb37fd9a1617942a7d32d3.js.gz +0 -0
- package/dist/browser/{chunk-core.5490609e81c3a5f78da3e06b9795d71c287016ebc7fd02794b1122b474ebb07f.js → chunk-core.6128decfe528d89de1445dc1ec36e9f13dabd76eba61d13310fc1302db2252eb.js} +11 -11
- package/dist/browser/chunk-core.6128decfe528d89de1445dc1ec36e9f13dabd76eba61d13310fc1302db2252eb.js.br +0 -0
- package/dist/browser/chunk-core.6128decfe528d89de1445dc1ec36e9f13dabd76eba61d13310fc1302db2252eb.js.gz +0 -0
- package/dist/browser/{chunk-flow-view.f5d74c7f072b739a7a0ed86ff35cafa7b8a041233372d1eeaab9eb941ddfc11e.js → chunk-flow-view.f9a4db9db350a9311ce5b11e9358c6e7de4ad9b3cd7a1f058e6c78eedee6dec6.js} +1 -1
- package/dist/browser/chunk-flow-view.f9a4db9db350a9311ce5b11e9358c6e7de4ad9b3cd7a1f058e6c78eedee6dec6.js.br +0 -0
- package/dist/browser/chunk-flow-view.f9a4db9db350a9311ce5b11e9358c6e7de4ad9b3cd7a1f058e6c78eedee6dec6.js.gz +0 -0
- package/dist/browser/{chunk-flows-extra-view.01ebf93780b729363eda11ba21c764fe593bcd3e684aa833c9b86147f780fd41.js → chunk-flows-extra-view.3151cd05656fd35f80588863c323b4799b6b1f0060243ec8bc9b5da94d8d6052.js} +1 -1
- package/dist/browser/chunk-flows-extra-view.3151cd05656fd35f80588863c323b4799b6b1f0060243ec8bc9b5da94d8d6052.js.br +0 -0
- package/dist/browser/chunk-flows-extra-view.3151cd05656fd35f80588863c323b4799b6b1f0060243ec8bc9b5da94d8d6052.js.gz +0 -0
- package/dist/browser/chunk-more-views.70ab484b8f1f1ebc31c3c27061a88c86607d86bb9bc34d277b57f3f4fa0ce291.js +2 -0
- package/dist/browser/chunk-more-views.70ab484b8f1f1ebc31c3c27061a88c86607d86bb9bc34d277b57f3f4fa0ce291.js.br +0 -0
- package/dist/browser/chunk-more-views.70ab484b8f1f1ebc31c3c27061a88c86607d86bb9bc34d277b57f3f4fa0ce291.js.gz +0 -0
- package/dist/browser/{chunk-pages-bundle.e18059f0cb4fbb63e3698971d4c1830ad0945c3645235babc93010cd0b725c1d.js → chunk-pages-bundle.3b596e7529dfb499a536353c9095d0b9a8255e5b7f782211c22aced869905bb0.js} +1 -1
- package/dist/browser/chunk-pages-bundle.3b596e7529dfb499a536353c9095d0b9a8255e5b7f782211c22aced869905bb0.js.br +0 -0
- package/dist/browser/chunk-pages-bundle.3b596e7529dfb499a536353c9095d0b9a8255e5b7f782211c22aced869905bb0.js.gz +0 -0
- package/dist/browser/chunk-result-view.f319cf5973ad4c9e7e495e00e77070ec242da669f87f848d52878e223ba87343.js +2 -0
- package/dist/browser/chunk-result-view.f319cf5973ad4c9e7e495e00e77070ec242da669f87f848d52878e223ba87343.js.br +0 -0
- package/dist/browser/chunk-result-view.f319cf5973ad4c9e7e495e00e77070ec242da669f87f848d52878e223ba87343.js.gz +0 -0
- package/dist/browser/chunk-settings-view.653e09ec0c7cce54c68ae7e968cc015c774fb6fa6e1493fd9f5423281d1e24fe.js +20 -0
- package/dist/browser/chunk-settings-view.653e09ec0c7cce54c68ae7e968cc015c774fb6fa6e1493fd9f5423281d1e24fe.js.br +0 -0
- package/dist/browser/chunk-settings-view.653e09ec0c7cce54c68ae7e968cc015c774fb6fa6e1493fd9f5423281d1e24fe.js.gz +0 -0
- package/dist/browser/chunk-shared.0c0231ce259937612ec120a251373e6b63f68c37fa031567570a9cfd6d6b2eef.js +2 -0
- package/dist/browser/chunk-shared.0c0231ce259937612ec120a251373e6b63f68c37fa031567570a9cfd6d6b2eef.js.br +0 -0
- package/dist/browser/chunk-shared.0c0231ce259937612ec120a251373e6b63f68c37fa031567570a9cfd6d6b2eef.js.gz +0 -0
- package/dist/browser/{chunk-shared.02c0b692de21a9bb80d1761aa887d8532431171945c02e663884c9f45b796753.js → chunk-shared.1bdbb9b057d17e95221becb4ed515b546d671390e4a817a6e72a799480fe14ad.js} +1 -1
- package/dist/browser/chunk-shared.1bdbb9b057d17e95221becb4ed515b546d671390e4a817a6e72a799480fe14ad.js.br +0 -0
- package/dist/browser/chunk-shared.1bdbb9b057d17e95221becb4ed515b546d671390e4a817a6e72a799480fe14ad.js.gz +0 -0
- package/dist/browser/{chunk-shared.c3e5be1c5f441e94905a4bc2005d816d2a0b0e4108bae43e37ec274a911c6847.js → chunk-shared.2d678087d03dcf2430b5bf48656220dbff5fb622188004aae7a76e0e5e5d18f8.js} +1 -1
- package/dist/browser/chunk-shared.2d678087d03dcf2430b5bf48656220dbff5fb622188004aae7a76e0e5e5d18f8.js.br +0 -0
- package/dist/browser/chunk-shared.2d678087d03dcf2430b5bf48656220dbff5fb622188004aae7a76e0e5e5d18f8.js.gz +0 -0
- package/dist/browser/{chunk-shared.6d0b8728b3e309886cfb6eaf596d3f20592939e521bb60bb090824f34da6b086.js → chunk-shared.66f18526381931b1ff69c090bad48c408a035a0d256bcff19b19b51ea988612a.js} +1 -1
- package/dist/browser/chunk-shared.66f18526381931b1ff69c090bad48c408a035a0d256bcff19b19b51ea988612a.js.br +0 -0
- package/dist/browser/chunk-shared.66f18526381931b1ff69c090bad48c408a035a0d256bcff19b19b51ea988612a.js.gz +0 -0
- package/dist/browser/{chunk-shared.0874336833f8101a63b169d8c2e55ca0f281e43e65d4bd6604555c791ea9dd87.js → chunk-shared.782659379fb982a9c2606c051bb711fd0fe38a547b8b4f4620cf2d14a832df25.js} +1 -1
- package/dist/browser/chunk-shared.782659379fb982a9c2606c051bb711fd0fe38a547b8b4f4620cf2d14a832df25.js.br +0 -0
- package/dist/browser/chunk-shared.782659379fb982a9c2606c051bb711fd0fe38a547b8b4f4620cf2d14a832df25.js.gz +0 -0
- package/dist/browser/{chunk-shared.d1f25785c8c168cc75aa99c4be8ca56abfc5eafa3490f8817ff15e61cb901915.js → chunk-shared.8940b7334ec79bcd25cb8e2d41958eecfe71d31340cf8de3c3d99f813cd126af.js} +1 -1
- package/dist/browser/chunk-shared.8940b7334ec79bcd25cb8e2d41958eecfe71d31340cf8de3c3d99f813cd126af.js.br +0 -0
- package/dist/browser/chunk-shared.8940b7334ec79bcd25cb8e2d41958eecfe71d31340cf8de3c3d99f813cd126af.js.gz +0 -0
- package/dist/browser/{chunk-shared.26bb0114998968cccb7bae5f6ffa8979ddecfafd8bc18bb6985760f6bcc030e6.js → chunk-shared.a7e4c6f386cee4623300b0d1b471260a09e05f6e236d56c7814dffc06088fb5c.js} +1 -1
- package/dist/browser/chunk-shared.a7e4c6f386cee4623300b0d1b471260a09e05f6e236d56c7814dffc06088fb5c.js.br +0 -0
- package/dist/browser/chunk-shared.a7e4c6f386cee4623300b0d1b471260a09e05f6e236d56c7814dffc06088fb5c.js.gz +0 -0
- package/dist/browser/{chunk-shared.fd5f2699d3b0017797e5b5e1e1d92eb98818740ebf20a95364bbb7deea0c8242.js → chunk-shared.c9025f6af91453ae8672099cb32126c5967384f769d10c662908e35c31b62478.js} +3 -3
- package/dist/browser/chunk-shared.c9025f6af91453ae8672099cb32126c5967384f769d10c662908e35c31b62478.js.br +0 -0
- package/dist/browser/chunk-shared.c9025f6af91453ae8672099cb32126c5967384f769d10c662908e35c31b62478.js.gz +0 -0
- package/dist/browser/{chunk-sonner.2472e1da55de10b11dc002c80a840966061e817c47793f5e216f1af6c6dbedff.js → chunk-sonner.76904479204cc1375093ccf9b2d60309bf4fb25e41bd0f0523b254404d9a4a11.js} +1 -1
- package/dist/browser/chunk-sonner.76904479204cc1375093ccf9b2d60309bf4fb25e41bd0f0523b254404d9a4a11.js.br +0 -0
- package/dist/browser/chunk-sonner.76904479204cc1375093ccf9b2d60309bf4fb25e41bd0f0523b254404d9a4a11.js.gz +0 -0
- package/dist/browser/chunk-task-view.6fcf84b20eddbbedc54103ca36c5c245ce6e7ccbb161ae0bef4b27027064b771.js +2 -0
- package/dist/browser/chunk-task-view.6fcf84b20eddbbedc54103ca36c5c245ce6e7ccbb161ae0bef4b27027064b771.js.br +0 -0
- package/dist/browser/chunk-task-view.6fcf84b20eddbbedc54103ca36c5c245ce6e7ccbb161ae0bef4b27027064b771.js.gz +0 -0
- package/dist/browser/chunk-team-chat.4cea27fe351f9ce5344da7c4b87240da49394496c12dc95f9e0de0590bb0d720.js +2 -0
- package/dist/browser/chunk-team-chat.4cea27fe351f9ce5344da7c4b87240da49394496c12dc95f9e0de0590bb0d720.js.br +0 -0
- package/dist/browser/chunk-team-chat.4cea27fe351f9ce5344da7c4b87240da49394496c12dc95f9e0de0590bb0d720.js.gz +0 -0
- package/dist/browser/manifest.json +204 -189
- package/dist/browser/{workspace.aebb60d4e5ef4509a80cfaccf0af5f7246867ec7531a1734dd8e28c59594950e.js → workspace.1bd4819cccc49c2c8208df3c1d31e13d3df426ecea80e734ac284cea47b49459.js} +2 -2
- package/dist/browser/workspace.1bd4819cccc49c2c8208df3c1d31e13d3df426ecea80e734ac284cea47b49459.js.br +0 -0
- package/dist/browser/workspace.1bd4819cccc49c2c8208df3c1d31e13d3df426ecea80e734ac284cea47b49459.js.gz +0 -0
- package/dist/browser-lazy-parts.js +1 -1
- package/dist/build-review.js +3 -2
- package/dist/builder.js +4 -3
- package/dist/chat-actions.js +2 -2
- package/dist/code-map-acts.js +1 -1
- package/dist/code-map-admission.js +2 -2
- package/dist/code-map-cli.js +2 -2
- package/dist/companion/push.js +3 -3
- package/dist/contracts/chat-actions.js +1 -1
- package/dist/contracts/console-api.js +1 -1
- package/dist/dispose.js +1 -1
- package/dist/lead-contract.js +1 -1
- package/dist/lead-doors.js +2 -2
- package/dist/local-owner.js +1 -1
- package/dist/operate.js +22 -13
- package/dist/owner-mode.js +2 -2
- package/dist/planner.js +1 -1
- package/dist/project-knowledge.js +1 -1
- package/dist/push-line.js +1 -0
- package/dist/push.js +1 -1
- package/dist/review-switch.js +1 -1
- package/dist/runner.js +2 -2
- package/dist/server/pages-assets.js +2 -2
- package/dist/server/route-table.js +1 -1
- package/dist/server/settings.js +2 -2
- package/dist/server/task-view-data.js +2 -2
- package/dist/server/task-views.js +1 -1
- package/dist/sqlite-telemetry.js +1 -1
- package/dist/ssr-workspace.js +86 -86
- package/dist/store.js +2 -2
- package/dist/surface.js +1 -1
- package/dist/toolroll-update.js +2 -2
- package/dist/work-reads.js +1 -1
- package/package.json +1 -1
- package/dist/browser/chunk-agents-live-view.9f4367c89c6366769a567e729ac9181ccaa898bf3a168d3dc618f3cface887c7.js.br +0 -0
- package/dist/browser/chunk-agents-live-view.9f4367c89c6366769a567e729ac9181ccaa898bf3a168d3dc618f3cface887c7.js.gz +0 -0
- package/dist/browser/chunk-bundle.ac5952c82c76e2efcdcf5a097c4fa235d6f1045dcc36d02ee921ff4be976a46a.js +0 -2
- package/dist/browser/chunk-bundle.ac5952c82c76e2efcdcf5a097c4fa235d6f1045dcc36d02ee921ff4be976a46a.js.br +0 -0
- package/dist/browser/chunk-bundle.ac5952c82c76e2efcdcf5a097c4fa235d6f1045dcc36d02ee921ff4be976a46a.js.gz +0 -0
- package/dist/browser/chunk-chat-parts.2a0b0b723508c5c48379f6a3d441f07a18c8b91ed64fd018962931c5ae43331e.js +0 -4
- package/dist/browser/chunk-chat-parts.2a0b0b723508c5c48379f6a3d441f07a18c8b91ed64fd018962931c5ae43331e.js.br +0 -0
- package/dist/browser/chunk-chat-parts.2a0b0b723508c5c48379f6a3d441f07a18c8b91ed64fd018962931c5ae43331e.js.gz +0 -0
- package/dist/browser/chunk-core.5490609e81c3a5f78da3e06b9795d71c287016ebc7fd02794b1122b474ebb07f.js.br +0 -0
- package/dist/browser/chunk-core.5490609e81c3a5f78da3e06b9795d71c287016ebc7fd02794b1122b474ebb07f.js.gz +0 -0
- package/dist/browser/chunk-flow-view.f5d74c7f072b739a7a0ed86ff35cafa7b8a041233372d1eeaab9eb941ddfc11e.js.br +0 -0
- package/dist/browser/chunk-flow-view.f5d74c7f072b739a7a0ed86ff35cafa7b8a041233372d1eeaab9eb941ddfc11e.js.gz +0 -0
- package/dist/browser/chunk-flows-extra-view.01ebf93780b729363eda11ba21c764fe593bcd3e684aa833c9b86147f780fd41.js.br +0 -0
- package/dist/browser/chunk-flows-extra-view.01ebf93780b729363eda11ba21c764fe593bcd3e684aa833c9b86147f780fd41.js.gz +0 -0
- package/dist/browser/chunk-pages-bundle.e18059f0cb4fbb63e3698971d4c1830ad0945c3645235babc93010cd0b725c1d.js.br +0 -0
- package/dist/browser/chunk-pages-bundle.e18059f0cb4fbb63e3698971d4c1830ad0945c3645235babc93010cd0b725c1d.js.gz +0 -0
- package/dist/browser/chunk-result-view.fc6a6494b316aa786807b7d17035c59defae1bfb0c03bf9c3795679b3a35dd77.js +0 -2
- package/dist/browser/chunk-result-view.fc6a6494b316aa786807b7d17035c59defae1bfb0c03bf9c3795679b3a35dd77.js.br +0 -0
- package/dist/browser/chunk-result-view.fc6a6494b316aa786807b7d17035c59defae1bfb0c03bf9c3795679b3a35dd77.js.gz +0 -0
- package/dist/browser/chunk-settings-view.6dd3a64ded7bd8c047650270918dfb455c9a514a5a40b84c7eb5f443f76fe66f.js +0 -20
- package/dist/browser/chunk-settings-view.6dd3a64ded7bd8c047650270918dfb455c9a514a5a40b84c7eb5f443f76fe66f.js.br +0 -0
- package/dist/browser/chunk-settings-view.6dd3a64ded7bd8c047650270918dfb455c9a514a5a40b84c7eb5f443f76fe66f.js.gz +0 -0
- package/dist/browser/chunk-shared.02c0b692de21a9bb80d1761aa887d8532431171945c02e663884c9f45b796753.js.br +0 -0
- package/dist/browser/chunk-shared.02c0b692de21a9bb80d1761aa887d8532431171945c02e663884c9f45b796753.js.gz +0 -0
- package/dist/browser/chunk-shared.0874336833f8101a63b169d8c2e55ca0f281e43e65d4bd6604555c791ea9dd87.js.br +0 -0
- package/dist/browser/chunk-shared.0874336833f8101a63b169d8c2e55ca0f281e43e65d4bd6604555c791ea9dd87.js.gz +0 -0
- package/dist/browser/chunk-shared.2413dd78f32995fbca67f51ac8c21baf4727cd64f185ea739aa2a058e569b0ed.js +0 -2
- package/dist/browser/chunk-shared.2413dd78f32995fbca67f51ac8c21baf4727cd64f185ea739aa2a058e569b0ed.js.br +0 -0
- package/dist/browser/chunk-shared.2413dd78f32995fbca67f51ac8c21baf4727cd64f185ea739aa2a058e569b0ed.js.gz +0 -0
- package/dist/browser/chunk-shared.26bb0114998968cccb7bae5f6ffa8979ddecfafd8bc18bb6985760f6bcc030e6.js.br +0 -0
- package/dist/browser/chunk-shared.26bb0114998968cccb7bae5f6ffa8979ddecfafd8bc18bb6985760f6bcc030e6.js.gz +0 -0
- package/dist/browser/chunk-shared.6d0b8728b3e309886cfb6eaf596d3f20592939e521bb60bb090824f34da6b086.js.br +0 -0
- package/dist/browser/chunk-shared.6d0b8728b3e309886cfb6eaf596d3f20592939e521bb60bb090824f34da6b086.js.gz +0 -0
- package/dist/browser/chunk-shared.c3e5be1c5f441e94905a4bc2005d816d2a0b0e4108bae43e37ec274a911c6847.js.br +0 -0
- package/dist/browser/chunk-shared.c3e5be1c5f441e94905a4bc2005d816d2a0b0e4108bae43e37ec274a911c6847.js.gz +0 -0
- package/dist/browser/chunk-shared.d1f25785c8c168cc75aa99c4be8ca56abfc5eafa3490f8817ff15e61cb901915.js.br +0 -0
- package/dist/browser/chunk-shared.d1f25785c8c168cc75aa99c4be8ca56abfc5eafa3490f8817ff15e61cb901915.js.gz +0 -0
- package/dist/browser/chunk-shared.fd5f2699d3b0017797e5b5e1e1d92eb98818740ebf20a95364bbb7deea0c8242.js.br +0 -0
- package/dist/browser/chunk-shared.fd5f2699d3b0017797e5b5e1e1d92eb98818740ebf20a95364bbb7deea0c8242.js.gz +0 -0
- package/dist/browser/chunk-sonner.2472e1da55de10b11dc002c80a840966061e817c47793f5e216f1af6c6dbedff.js.br +0 -0
- package/dist/browser/chunk-sonner.2472e1da55de10b11dc002c80a840966061e817c47793f5e216f1af6c6dbedff.js.gz +0 -0
- package/dist/browser/chunk-task-view.bbeddc793a5e8a6d1f66b6cc5f0ce1da18414137e85c49ccd07be0e20f61ac12.js +0 -2
- package/dist/browser/chunk-task-view.bbeddc793a5e8a6d1f66b6cc5f0ce1da18414137e85c49ccd07be0e20f61ac12.js.br +0 -0
- package/dist/browser/chunk-task-view.bbeddc793a5e8a6d1f66b6cc5f0ce1da18414137e85c49ccd07be0e20f61ac12.js.gz +0 -0
- package/dist/browser/chunk-team-chat.c3255a5a1d94e39d559c07438c4690543602b1552b2c2bf57b8791d7f989141d.js +0 -2
- package/dist/browser/chunk-team-chat.c3255a5a1d94e39d559c07438c4690543602b1552b2c2bf57b8791d7f989141d.js.br +0 -0
- package/dist/browser/chunk-team-chat.c3255a5a1d94e39d559c07438c4690543602b1552b2c2bf57b8791d7f989141d.js.gz +0 -0
- package/dist/browser/workspace.aebb60d4e5ef4509a80cfaccf0af5f7246867ec7531a1734dd8e28c59594950e.js.br +0 -0
- package/dist/browser/workspace.aebb60d4e5ef4509a80cfaccf0af5f7246867ec7531a1734dd8e28c59594950e.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Third-party notices: /assets/THIRD_PARTY_NOTICES.txt */
|
|
2
|
-
import{p11$a as S,p11$b as D}from"./chunk-core.5490609e81c3a5f78da3e06b9795d71c287016ebc7fd02794b1122b474ebb07f.js";import{p1$$ as ge,p1$$a as fe,p1$$b as we,p1$A as ye,p1$Aa as ke,p1$Ab as P,p1$B as $e,p1$Ba as Ne,p1$Bb as W,p1$C as Me,p1$Ca as Se,p1$Cb as ze,p1$D as Ce,p1$Da as Te,p1$Db as Fe,p1$E as Ie,p1$Ea as Ae,p1$Eb as Re,p1$F as K,p1$Fa as Ve,p1$Fb as Pe,p1$G as I,p1$Ga as We,p1$Gb as qe,p1$H as Le,p1$Ha as Ue,p1$Hb as G,p1$I as h,p1$Ia as Oe,p1$Ib as De,p1$J as Be,p1$Ja as Ee,p1$Jb as Ye,p1$K as He,p1$Ka as Ge,p1$Kb as Qe,p1$L as Je,p1$La as _e,p1$Lb as Ze,p1$M as Ke,p1$Ma as Xe,p1$Mb as es,p1$N as ss,p1$Na as as,p1$Nb as ls,p1$O as ts,p1$Oa as ns,p1$Ob as is,p1$P as cs,p1$Pa as rs,p1$Pb as os,p1$Q as ds,p1$Qa as ps,p1$Qb as hs,p1$R as ms,p1$Ra as us,p1$Rb as xs,p1$S as js,p1$Sa as bs,p1$Sb as vs,p1$T as gs,p1$Ta as fs,p1$Tb as ws,p1$U as ys,p1$Ua as ks,p1$Ub as $s,p1$V as Ns,p1$Va as Ms,p1$Vb as R,p1$W as Ss,p1$Wa as zs,p1$Wb as Cs,p1$X as Ts,p1$Xa as Fs,p1$Xb as Is,p1$Y as As,p1$Ya as Rs,p1$Yb as Vs,p1$Z as Ps,p1$Za as Ws,p1$Zb as qs,p1$_ as Ls,p1$_a as Us,p1$_b as Os,p1$a as Ds,p1$aa as Bs,p1$ab as Es,p1$ac as Ys,p1$b as Hs,p1$ba as Gs,p1$bb as X,p1$bc as Qs,p1$c as Js,p1$ca as _s,p1$cb as o,p1$cc as Zs,p1$d as Ks,p1$da as Xs,p1$db as f,p1$dc as ea,p1$e as sa,p1$ea as aa,p1$eb as C,p1$ec as la,p1$f as ta,p1$fa as na,p1$fb as ia,p1$fc as ee,p1$g as ca,p1$ga as ra,p1$gb as oa,p1$gc as da,p1$h as pa,p1$ha as ha,p1$hb as q,p1$hc as ma,p1$i as ua,p1$ia as xa,p1$ib as ja,p1$ic as ba,p1$j as w,p1$ja as va,p1$jb as ga,p1$jc as fa,p1$k as $,p1$ka as wa,p1$kb as Q,p1$kc as ya,p1$l as L,p1$la as ka,p1$lb as T,p1$lc as $a,p1$m as Na,p1$ma as Ma,p1$mb as Sa,p1$mc as za,p1$n as Ca,p1$na as Ta,p1$nb as Fa,p1$nc as Ia,p1$o as Aa,p1$oa as Ra,p1$ob as Va,p1$p as Pa,p1$pa as Wa,p1$pb as z,p1$q as qa,p1$qa as La,p1$qb as se,p1$r as Ua,p1$ra as Oa,p1$rb as M,p1$s as Da,p1$sa as Ba,p1$sb as A,p1$t as Ea,p1$ta as Ya,p1$tb as y,p1$u as Ha,p1$ua as Ga,p1$ub as J,p1$v as Qa,p1$va as Ja,p1$vb as U,p1$w as _a,p1$wa as Za,p1$wb as V,p1$x as Ka,p1$xa as Xa,p1$xb as ae,p1$y as el,p1$ya as sl,p1$yb as O,p1$z as al,p1$za as ll,p1$zb as B}from"./chunk-core.5490609e81c3a5f78da3e06b9795d71c287016ebc7fd02794b1122b474ebb07f.js";import{p2$a as il,p2$b as E,p2$c as le,p2$d as cl,p2$e as _}from"./chunk-core.5490609e81c3a5f78da3e06b9795d71c287016ebc7fd02794b1122b474ebb07f.js";var g=E(le(),1),ne={betterstack:{title:"Better Stack",source:"Simple Icons",path:"M1.5,10.828l-.716,6.212c-.074,.638 .17,1.271 .651,1.696l1.775,1.565c.608,.536 1.551,.014 1.421-.786l-1.423-8.726c-.161-.988-1.593-.954-1.707,.04zM13.078,18.982l-4.232-12.194c-.47-1.354-2.441-1.296-2.826,.084l-1.288,4.607c-.146,.523-.202,.826 0,1.33h.489l1.777,5.679c.275,.685 .844,1.217 1.554,1.454l2.65,.883c1.162,.387 2.271-.703 1.875-1.843zM23.025,18.016l-7.478-14.022c-.652-1.223-2.412-1.191-3.02,.055l-1.839,3.701c-.222,.456-.119,.618 .066,.883c.148,.212 .492,.229 .632,.011c.138-.214 .457-.194 .567,.035l4.808,10c.362,.814 1.121,1.382 2.004,1.499l2.544,.325c1.369,.18 2.367-1.267 1.716-2.487z"},canva:{title:"Canva",source:"svgl",path:"M12,22c5.523,0 10-4.477 10-10c0-5.523-4.477-10-10-10c-5.523,0-10,4.477-10,10c0,5.523 4.477,10 10,10zM16.551,14.378c0,1.011-1.809,4.124-4.939,4.124c-2.948,0-4.859-2.211-4.859-5.557c0-4.323 2.995-7.447 6.365-7.447c2.039,0 3.255,1.026 3.255,2.423c0,1.44-1.041,2.46-1.929,2.46c-.221,0-.332-.108-.332-.287c0-.399 .643-.998 .643-2.129c0-.953-.582-1.552-1.535-1.552c-2.039,0-4.361,2.409-4.361,6.576c0,2.46 1.221,4.24 3.194,4.24c1.706,0 3.18-1.225 4.033-2.955c.076-.152 .148-.222 .231-.222c.119,0 .234,.103 .234,.326z"},chrome:{title:"Google Chrome",source:"Simple Icons",path:"M12,2c-3.158,0-5.974,1.464-7.807,3.751l3.294,5.707c.274-2.284 2.212-4.003 4.513-4.003h8.909c-1.709-3.348-5.15-5.455-8.909-5.454zM3.609,6.558c-1.053,1.619-1.612,3.51-1.609,5.442c0,5.01 3.683,9.159 8.491,9.887l3.294-5.706c-2.115,.904-4.572,.085-5.721-1.908zM14.728,8.363c1.842,1.378 2.361,3.917 1.208,5.908l.002,.001h-.002l-4.453,7.714c.172,.008 .344,.013 .518,.013c5.523,0 10-4.477 10-10c0-1.283-.242-2.509-.682-3.637zM12,15.637c-2.008,0-3.637-1.628-3.637-3.637c0-2.008 1.628-3.637 3.637-3.637c2.008,0 3.637,1.628 3.637,3.637c0,2.008-1.628,3.637-3.637,3.637z"},claude:{title:"Claude",source:"Simple Icons",path:"M5.926,15.298l3.933-2.207l.066-.192l-.066-.106h-.192l-.658-.041l-2.247-.061l-1.949-.081l-1.888-.101l-.476-.101l-.445-.587l.046-.294l.4-.268l.572,.051l1.265,.086l1.898,.132l1.377,.081l2.04,.213h.324l.046-.132l-.111-.081l-.086-.081l-1.964-1.331l-2.126-1.407l-1.113-.81l-.602-.41l-.304-.385l-.132-.84l.547-.602l.734,.051l.187,.051l.744,.572l1.589,1.23l2.075,1.529l.304,.253l.121-.086l.015-.061l-.137-.228l-1.129-2.04l-1.205-2.075l-.536-.86l-.142-.516c-.051-.213-.086-.39-.086-.607l.623-.845l.344-.111l.83,.111l.349,.304l.516,1.179l.835,1.858l1.296,2.526l.38,.749l.202,.693l.076,.213h.132v-.121l.106-1.422l.197-1.746l.192-2.247l.066-.633l.314-.759l.623-.41l.486,.233l.4,.572l-.056,.37l-.238,1.544l-.466,2.419l-.304,1.62h.177l.202-.202l.82-1.088l1.377-1.721l.607-.683l.709-.754l.456-.359h.86l.633,.941l-.283,.972l-.886,1.124l-.734,.952l-1.053,1.417l-.658,1.134l.061,.091l.157-.015l2.379-.506l1.286-.233l1.534-.263l.693,.324l.076,.329l-.273,.673l-1.64,.405l-1.923,.385l-2.865,.678l-.035,.025l.041,.051l1.291,.121l.552,.03h1.351l2.516,.187l.658,.435l.395,.532l-.066,.405l-1.012,.516l-1.367-.324l-3.189-.759l-1.093-.273h-.152v.091l.911,.891l1.67,1.508l2.09,1.944l.106,.481l-.268,.38l-.283-.041l-1.837-1.382l-.709-.623l-1.604-1.351h-.106v.142l.369,.542l1.954,2.936l.101,.901l-.142,.294l-.506,.177l-.557-.101l-1.144-1.604l-1.179-1.807l-.952-1.62l-.116,.066l-.562,6.048l-.263,.309l-.607,.233l-.506-.385l-.268-.623l.268-1.23l.324-1.604l.263-1.275l.238-1.584l.142-.526l-.01-.035l-.116,.015l-1.194,1.64l-1.817,2.455l-1.437,1.539l-.344,.137l-.597-.309l.056-.552l.334-.491l1.989-2.531l1.2-1.569l.774-.906l-.005-.132h-.046l-5.284,3.432l-.941,.121l-.405-.38l.051-.622l.192-.202l1.589-1.093z"},cloudflare:{title:"Cloudflare",source:"Simple Icons",path:"M16.509,16.845c.148-.507 .091-.971-.155-1.315c-.225-.316-.604-.499-1.061-.52l-8.659-.112c-.054,.001-.104-.026-.133-.071c-.028-.042-.035-.099-.021-.155c.028-.084 .112-.148 .204-.156l8.736-.112c1.035-.049 2.16-.887 2.554-1.914l.499-1.301c.022-.056 .029-.113 .015-.168c-.562-2.546-2.835-4.445-5.55-4.445c-2.504,0-4.628,1.618-5.388,3.861c-.493-.366-1.119-.562-1.794-.499c-1.203,.119-2.166,1.083-2.286,2.286c-.028,.31-.007,.613 .064,.894c-1.963,.056-3.531,1.66-3.531,3.637c0,.175 .014,.352 .035,.527c.014,.083 .084,.148 .169,.148h15.981c.091,0 .176-.064 .203-.155l.12-.427zM19.266,11.281c-.077,0-.161,0-.238,.011c-.057,0-.105,.042-.127,.098l-.338,1.174c-.147,.507-.092,.971 .154,1.316c.226,.316 .606,.498 1.063,.52l1.844,.113c.056,0 .106,.026 .133,.07c.028,.043 .035,.107 .021,.156c-.028,.084-.113,.149-.204,.155l-1.921,.112c-1.041,.049-2.158,.887-2.553,1.914l-.141,.359c-.028,.071 .022,.142 .099,.142h6.598c.077,0 .147-.049 .169-.126c.112-.408 .176-.837 .176-1.28c0-2.602-2.125-4.727-4.734-4.727"},confluence:{title:"Confluence",source:"Simple Icons",path:"M2.611,17.278c-.209,.322-.447,.738-.644,1.05c-.18,.302-.084,.692 .215,.877l4.188,2.576c.147,.091 .324,.119 .492,.077c.168-.041 .312-.148 .4-.297c.168-.28 .383-.644 .618-1.03c1.659-2.739 3.328-2.407 6.334-.967l4.182,1.972c.157,.075 .338,.083 .502,.022c.163-.061 .295-.185 .365-.345l1.994-4.51c.14-.322-.003-.697-.322-.844c-1.399-.658-2.795-1.321-4.188-1.992c-5.666-2.739-10.464-2.558-14.137,3.408zM21.39,6.722c.21-.342 .448-.738 .645-1.054c.176-.301 .08-.688-.216-.872l-4.188-2.577c-.147-.091-.324-.119-.492-.077c-.168,.041-.312,.148-.4,.297c-.164,.283-.38,.644-.619,1.033c-1.659,2.738-3.328,2.404-6.334,.967l-4.166-1.975c-.157-.075-.338-.083-.501-.022c-.163,.061-.295,.185-.365,.344l-1.994,4.51c-.14,.322 .003,.697 .322,.844c.877,.413 2.619,1.238 4.188,1.992c5.65,2.738 10.454,2.555 14.12-3.408z"},discord:{title:"Discord",source:"Simple Icons",path:"M19.939,4.717c-1.485-.682-3.053-1.168-4.663-1.446c-.03-.006-.06,.009-.075,.035c-.201,.358-.424,.825-.581,1.193c-1.761-.264-3.513-.264-5.237,0c-.156-.375-.387-.834-.59-1.193c-.015-.026-.045-.04-.075-.035c-1.61,.278-3.178,.764-4.663,1.446c-.013,.005-.023,.015-.031,.026c-2.97,4.437-3.783,8.765-3.384,13.039c.002,.021 .013,.04 .03,.054c1.959,1.439 3.857,2.313 5.72,2.892c.03,.009 .062-.002 .08-.026c.441-.602 .833-1.236 1.17-1.903c.009-.018 .01-.04 .003-.059c-.008-.019-.023-.034-.042-.042c-.623-.236-1.216-.524-1.787-.852c-.021-.012-.035-.035-.036-.059c-.001-.024 .009-.048 .029-.063c.12-.09 .24-.184 .355-.278c.021-.017 .049-.021 .074-.01c3.749,1.712 7.808,1.712 11.513,0c.025-.012 .054-.008 .075,.009c.115,.095 .235,.189 .356,.279c.02,.015 .031,.038 .029,.063c-.001,.024-.015,.047-.036,.059c-.571,.333-1.169,.618-1.788,.851c-.019,.007-.035,.023-.042,.042c-.007,.019-.006,.041 .003,.06c.344,.666 .737,1.301 1.169,1.903c.018,.025 .051,.036 .08,.027c1.872-.579 3.77-1.453 5.729-2.892c.017-.012 .028-.032 .03-.053c.478-4.941-.8-9.234-3.387-13.039c-.006-.012-.017-.022-.03-.027zM8.201,15.18c-1.129,0-2.059-1.036-2.059-2.309c0-1.273 .912-2.309 2.059-2.309c1.156,0 2.077,1.045 2.059,2.309c0,1.273-.912,2.309-2.059,2.309zM15.813,15.18c-1.129,0-2.059-1.036-2.059-2.309c0-1.273 .912-2.309 2.059-2.309c1.156,0 2.077,1.045 2.059,2.309c0,1.273-.903,2.309-2.059,2.309z"},figma:{title:"Figma",source:"Simple Icons",path:"M15.85,8.983h-4.585v-8.976h4.585c2.475,0 4.488,2.013 4.488,4.488c0,2.475-2.013,4.489-4.488,4.489zM12.735,7.512h3.115c1.664,0 3.017-1.354 3.017-3.017c0-1.663-1.354-3.017-3.017-3.017h-3.115zM12.735,8.983h-4.584c-2.475,0-4.488-2.013-4.488-4.488c0-2.475 2.013-4.489 4.488-4.489h4.585v8.976zM8.151,1.477c-1.664,0-3.017,1.354-3.017,3.017c0,1.663 1.353,3.018 3.017,3.018h3.115v-6.036zM12.735,16.488h-4.584c-2.475,0-4.488-2.013-4.488-4.488c0-2.475 2.013-4.488 4.488-4.488h4.585v8.975zM8.151,8.983c-1.664,0-3.017,1.354-3.017,3.017c0,1.663 1.354,3.017 3.017,3.017h3.115v-6.035zM8.175,23.993c-2.488,0-4.513-2.013-4.513-4.488c0-2.475 2.013-4.488 4.488-4.488h4.585v4.439c0,2.502-2.046,4.537-4.56,4.537zM8.151,16.488c-1.666,.002-3.015,1.352-3.017,3.017c0,1.664 1.364,3.017 3.042,3.017c1.704,0 3.091-1.375 3.091-3.066v-2.968zM15.85,16.488h-.098c-2.475,0-4.488-2.013-4.488-4.488c0-2.475 2.013-4.488 4.488-4.488h.098c2.475,0 4.488,2.013 4.488,4.488c0,2.475-2.013,4.488-4.488,4.488zM15.753,8.983c-1.664,0-3.017,1.354-3.017,3.017c0,1.663 1.354,3.017 3.017,3.017h.098c1.664,0 3.017-1.354 3.017-3.017c0-1.663-1.354-3.017-3.017-3.017z"},github:{title:"GitHub",source:"Simple Icons",path:"M12,2.125c-5.595,0-10.126,4.534-10.126,10.126c0,4.475 2.901,8.27 6.924,9.607c.506,.095 .692-.218 .692-.487c0-.24-.008-.878-.013-1.721c-2.817,.611-3.411-1.359-3.411-1.359c-.461-1.169-1.127-1.481-1.127-1.481c-.917-.628 .071-.615 .071-.615c1.017,.071 1.551,1.043 1.551,1.043c.903,1.548 2.37,1.101 2.949,.842c.091-.655 .352-1.101 .641-1.354c-2.249-.253-4.612-1.124-4.612-5.004c0-1.105 .392-2.008 1.042-2.717c-.114-.256-.456-1.285 .089-2.68c0,0 .848-.272 2.785,1.038c.81-.225 1.671-.337 2.532-.342c.861,.005 1.721,.116 2.532,.342c1.924-1.31 2.772-1.038 2.772-1.038c.544,1.395 .203,2.424 .101,2.68c.646,.709 1.038,1.612 1.038,2.717c0,3.89-2.367,4.747-4.62,4.996c.354,.304 .684,.925 .684,1.873c0,1.355-.013,2.444-.013,2.773c0,.266 .177,.582 .696,.481c4.051-1.328 6.95-5.126 6.95-9.594c0-5.592-4.534-10.126-10.126-10.126"},gmail:{title:"Gmail",source:"Simple Icons",path:"M23.545,5.705v13.382c0,.87-.704,1.574-1.574,1.574h-3.674v-8.921l-6.297,4.724l-6.297-4.724v8.922h-3.674c-.418,0-.818-.166-1.113-.461c-.295-.295-.461-.696-.461-1.114v-13.382c0-1.946 2.221-3.058 3.778-1.89l1.47,1.104l6.297,4.722l6.297-4.724l1.47-1.102c1.556-1.167 3.778-.057 3.778,1.89z"},intercom:{title:"Intercom",source:"Simple Icons",path:"M19.5,2h-15c-1.381,0-2.5,1.119-2.5,2.5v15c0,1.382 1.119,2.5 2.5,2.5h15c1.382,0 2.5-1.118 2.5-2.5v-15c0-1.381-1.118-2.5-2.5-2.5zM14.666,5.666c0-.367 .3-.667 .668-.667c.367,0 .667,.3 .667,.667v8.907c0,.368-.3,.668-.667,.668c-.369,0-.668-.299-.668-.667zM11.333,5.328c0-.367 .298-.666 .667-.666c.369,0 .667,.299 .667,.666v9.668c0,.367-.297,.667-.667,.667c-.369,0-.667-.3-.667-.667zM8,5.666c0-.367 .299-.667 .666-.667c.369,0 .668,.3 .668,.667v8.907c0,.368-.3,.668-.668,.668c-.367,0-.666-.299-.666-.667zM4.666,7c0-.368 .3-.667 .668-.667c.367,0 .666,.298 .666,.667v5.996c0,.368-.299,.667-.666,.667c-.369,0-.668-.3-.668-.667zM19.1,17.168c-.102,.088-2.572,2.161-7.1,2.161c-4.527,0-6.997-2.072-7.101-2.161c-.279-.24-.312-.66-.072-.94c.238-.278 .658-.312 .938-.075c.039,.034 2.244,1.843 6.234,1.843c4.04,0 6.213-1.822 6.233-1.839c.278-.241 .699-.208 .94,.072c.241,.28 .208,.7-.072,.94zM19.334,12.996c0,.368-.3,.667-.667,.667c-.367,0-.667-.3-.667-.667v-5.996c0-.368 .301-.667 .668-.667c.368,0 .668,.298 .668,.667z"},jira:{title:"Jira",source:"Simple Icons",path:"M11.643,11.594h-9.642c.001,1.155 .461,2.262 1.279,3.077c.818,.815 1.927,1.272 3.081,1.269h1.775v1.714c0,2.399 1.945,4.345 4.344,4.346v-9.568c0-.463-.375-.837-.837-.837zM16.412,6.798h-9.632c0,2.4 1.946,4.345 4.346,4.345h1.774v1.715c.002,2.399 1.947,4.344 4.346,4.345v-9.571c0-.461-.373-.834-.834-.834zM21.177,2h-9.632c0,2.4 1.946,4.346 4.346,4.346h1.774v1.714c.002,2.394 1.94,4.336 4.334,4.343v-9.565c.002-.457-.365-.831-.822-.837z"},linear:{title:"Linear",source:"Simple Icons",path:"M4.405,5.483c1.899-2.213 4.67-3.486 7.587-3.483c5.528,0 10.008,4.48 10.008,10.008c0,3.033-1.35,5.753-3.483,7.588l-14.111-14.112zM3.514,6.688l13.797,13.797c-.437,.275-.896,.517-1.375,.722l-13.143-13.142c.206-.479 .448-.938 .722-1.375zM2.268,9.636l12.096,12.096c-.592,.143-1.202,.235-1.829,.268l-10.535-10.535c.033-.617 .123-1.229 .268-1.829zM2.127,13.688l8.186,8.187c-4.189-.716-7.471-3.997-8.187-8.187z"},notion:{title:"Notion",source:"Simple Icons",path:"M5.584,5.37c.635,.516 .873,.476 2.066,.397l11.244-.675c.238,0 .04-.238-.039-.277l-1.868-1.35c-.357-.277-.835-.596-1.748-.516l-10.887,.795c-.396,.039-.476,.238-.318,.397zM6.258,7.991v11.83c0,.636 .317,.874 1.033,.834l12.357-.715c.716-.039 .796-.476 .796-.993v-11.751c0-.516-.198-.794-.636-.755l-12.913,.755c-.476,.04-.636,.278-.636,.794zM18.457,8.624c.079,.357 0,.715-.357,.756l-.596,.119v8.733c-.517,.278-.994,.437-1.391,.437c-.636,0-.796-.199-1.272-.794l-3.894-6.114v5.915l1.232,.279c0,0 0,.715-.994,.715l-2.741,.158c-.079-.158 0-.556 .278-.635l.715-.198v-7.822l-.991-.08c-.08-.357 .119-.873 .675-.913l2.941-.198l4.053,6.193v-5.479l-1.034-.118c-.079-.437 .238-.755 .636-.794zM3.437,2.67l11.325-.834c1.39-.119 1.748-.04 2.622,.596l3.615,2.541c.596,.436 .795,.556 .795,1.032v13.935c0,.873-.317,1.39-1.429,1.469l-13.152,.795c-.834,.04-1.232-.079-1.669-.636l-2.662-3.454c-.476-.636-.675-1.111-.675-1.668v-12.387c0-.714 .318-1.31 1.231-1.389z"},openai:{title:"OpenAI",source:"svgl",evenodd:!0,path:"M9.367,2.175c1.818-.487 3.67,.075 4.913,1.315c1.697-.453 3.582-.014 4.912,1.317c1.331,1.331 1.77,3.216 1.317,4.913v0c1.241,1.243 1.803,3.095 1.316,4.913c-.487,1.818-1.9,3.141-3.596,3.597c-.456,1.696-1.779,3.109-3.597,3.596c-1.818,.487-3.67-.075-4.913-1.315c-1.697,.453-3.582,.014-4.913-1.317c-1.331-1.331-1.77-3.216-1.317-4.913c-1.24-1.243-1.803-3.095-1.315-4.913c.487-1.818 1.9-3.141 3.596-3.597c.456-1.696 1.779-3.109 3.597-3.596zM15.436,17.077c0,.206-.11,.397-.288,.5l-4.236,2.445c.937,.723 2.189,1.017 3.421,.687c1.737-.466 2.89-2.025 2.914-3.739v-4.36c0-.132-.071-.255-.185-.32l-1.626-.939zM9.321,17.515c-.178,.103-.398,.103-.577,0l-4.235-2.445c-.158,1.174 .214,2.405 1.116,3.307h0c1.272,1.272 3.199,1.49 4.695,.654l3.776-2.18c.114-.066 .185-.189 .185-.321v-1.877zM15.152,7.76c-.114-.066-.256-.065-.37,0l-1.626,.939l4.959,2.863c.179,.103 .289,.294 .289,.5v4.891c1.095-.45 1.975-1.388 2.305-2.62c.465-1.737-.309-3.515-1.781-4.393zM5.596,7.047c-1.095,.45-1.975,1.388-2.306,2.62c-.465,1.737 .309,3.515 1.781,4.393l3.776,2.18c.114,.066 .256,.065 .37,0l1.626-.939l-4.959-2.863c-.179-.103-.288-.294-.288-.5zM9.72,10.684v2.633l2.28,1.316l2.28-1.316v-2.633l-2.28-1.317zM13.088,3.978c-.937-.723-2.189-1.017-3.421-.687c-1.737,.466-2.89,2.025-2.914,3.739v4.36c0,.132 .071,.255 .185,.32l1.626,.939v-5.726c0-.206 .11-.397 .289-.5zM18.376,5.625c-1.272-1.272-3.199-1.49-4.695-.654l-3.776,2.18c-.114,.066-.185,.189-.185,.321v1.877l4.959-2.863c.178-.103 .398-.103 .577,0l4.235,2.445c.158-1.174-.214-2.405-1.116-3.306z"},paypal:{title:"PayPal",source:"Simple Icons",path:"M15.265,5.352h-6.031l-2.077,13.208h-4.366l2.752-17.418h7.234c3.397,0 5.768,2.076 5.857,4.988c-.586-.432-1.905-.778-3.368-.778M21.21,10.37c0,3.085-2.723,6.201-6.296,6.201h-2.256l-1.024,6.287h-4.393l1.669-10.44h3.25c3.807,0 6.647-3.288 6.472-6.288c1.589,.815 2.585,2.454 2.577,4.24M9.877,6.16h5.798c.821,0 1.757,.201 2.138,.49c-.176,2.48-2.402,4.961-5.828,4.961h-2.958z"},playwright:{title:"Playwright",source:"svgl",path:"M8.063,13.122c-.862,.245-1.428,.674-1.801,1.103c.357-.312 .835-.599 1.48-.782c.66-.187 1.223-.186 1.688-.096v-.364c-.397-.036-.852-.007-1.367,.139zM6.223,10.065l-3.203,.844c0,0 .058,.082 .166,.192l2.716-.716c0,0-.038,.496-.373,.94c.632-.478 .693-1.26 .693-1.26zM8.904,17.593c-4.508,1.214-6.892-4.01-7.614-6.721c-.334-1.252-.479-2.199-.518-2.811c-.004-.064-.002-.117 .002-.166c-.234,.014-.346,.136-.323,.487c.039,.611 .184,1.559 .518,2.811c.722,2.711 3.107,7.935 7.614,6.721c.981-.264 1.718-.746 2.272-1.36c-.51,.461-1.148,.823-1.951,1.04zM9.751,6.868v.321h1.768c-.036-.114-.073-.216-.109-.321zM11.914,9.51c.795,.226 1.216,.783 1.438,1.277l.887,.252c0,0-.121-1.727-1.683-2.17c-1.461-.415-2.36,.812-2.469,.971c.425-.303 1.046-.551 1.828-.329zM18.972,10.795c-1.462-.417-2.361,.812-2.469,.969c.425-.302 1.046-.55 1.827-.327c.794,.226 1.214,.783 1.437,1.277l.888,.253c0,0-.123-1.727-1.683-2.171zM18.091,15.347l-7.375-2.062c0,0 .08,.405 .386,.929l6.21,1.736c.511-.296 .779-.603 .779-.603zM12.978,19.785c-5.84-1.566-5.134-9.006-4.189-12.532c.389-1.453 .789-2.533 1.121-3.257c-.198-.041-.362,.064-.524,.393c-.352,.714-.803,1.877-1.238,3.506c-.945,3.526-1.651,10.966 4.189,12.532c2.752,.737 4.897-.383 6.495-2.143c-1.517,1.374-3.454,2.145-5.854,1.502zM9.751,15.849v-1.501l-4.172,1.183c0,0 .308-1.791 2.484-2.408c.66-.187 1.223-.186 1.688-.096v-6.159h2.089c-.227-.703-.447-1.244-.632-1.62c-.306-.622-.619-.21-1.33,.385c-.501,.419-1.767,1.312-3.673,1.825c-1.906,.514-3.446,.378-4.089,.266c-.911-.157-1.388-.357-1.343,.336c.039,.611 .184,1.559 .518,2.811c.722,2.711 3.107,7.935 7.614,6.721c1.177-.317 2.009-.944 2.585-1.744h-1.738zM3.019,10.909l3.203-.844c0,0-.093,1.232-1.294,1.549c-1.201,.316-1.909-.705-1.909-.705zM21.807,6.939c-.833,.146-2.83,.328-5.299-.334c-2.469-.661-4.108-1.818-4.757-2.362c-.92-.771-1.325-1.306-1.723-.496c-.352,.715-.803,1.878-1.238,3.506c-.945,3.526-1.651,10.966 4.189,12.532c5.838,1.564 8.946-5.233 9.891-8.759c.436-1.628 .627-2.86 .68-3.655c.06-.9-.558-.639-1.741-.432zM10.075,9.856c0,0 .92-1.431 2.481-.988c1.562,.444 1.683,2.17 1.683,2.17zM13.885,16.279c-2.745-.804-3.169-2.993-3.169-2.993l7.375,2.062c0,0-1.489,1.726-4.206,.931zM16.492,11.78c0,0 .919-1.43 2.479-.985c1.56,.444 1.683,2.171 1.683,2.171zM8.293,14.761l-2.714,.769c0,0 .295-1.679 2.294-2.345l-1.537-5.767l-.133,.04c-1.906,.514-3.446,.378-4.089,.266c-.911-.157-1.388-.357-1.343,.336c.039,.611 .184,1.559 .518,2.811c.722,2.711 3.107,7.935 7.614,6.721l.133-.042zM3.019,10.909l3.203-.844c0,0-.093,1.232-1.294,1.549c-1.201,.316-1.909-.705-1.909-.705zM14.009,16.309l-.124-.03c-2.745-.804-3.169-2.993-3.169-2.993l3.803,1.063l2.013-7.737l-.024-.006c-2.469-.661-4.108-1.818-4.757-2.362c-.92-.771-1.325-1.306-1.723-.496c-.352,.715-.802,1.878-1.238,3.506c-.945,3.526-1.651,10.966 4.189,12.532l.12,.027zM10.075,9.856c0,0 .92-1.431 2.481-.988c1.562,.444 1.683,2.17 1.683,2.17zM8.432,14.722l-.728,.207c.172,.969 .475,1.9 .951,2.721c.083-.018 .165-.034 .249-.057c.221-.06 .426-.133 .623-.214c-.531-.789-.883-1.697-1.095-2.657zM8.147,7.895c-.374,1.396-.709,3.405-.616,5.42c.165-.072 .339-.138 .532-.193l.135-.03c-.164-2.153 .191-4.346 .591-5.839c.101-.378 .203-.729 .304-1.056c-.163,.104-.339,.21-.539,.32c-.135,.417-.271,.872-.407,1.378z"},posthog:{title:"PostHog",source:"Simple Icons",path:"M9.854,14.5l-4.854-4.853l-4.146-4.147c-.143-.143-.358-.186-.545-.109c-.187,.078-.309,.26-.309,.463v2.586c0,.132 .053,.259 .146,.353l4.854,4.854l.147,.146l4.707,4.707l.146,.147v-.049c.065,.03 .134,.049 .207,.049h2.586c.202,0 .385-.122 .462-.309c.077-.187 .034-.402-.109-.545zM9.854,9.5l-4-4c-.106-.109-.258-.163-.409-.144c-.143,.017-.272,.093-.356,.21c-.059,.084-.09,.185-.089,.288v2.586c0,.133 .053,.259 .147,.353l9,9c.143,.143 .358,.185 .545,.108c.187-.077 .308-.26 .308-.462v-2.585c0-.133-.052-.26-.146-.354zM10.854,5.5c-.143-.143-.358-.186-.545-.109c-.187,.078-.309,.26-.309,.463v2.586c0,.133 .053,.259 .147,.353l4,4c.143,.143 .358,.185 .545,.108c.187-.077 .308-.26 .308-.462v-2.585c0-.133-.052-.26-.146-.354zM23.501,17.015c-.845-.11-1.63-.497-2.232-1.1l-4.708-4.707c-.143-.143-.358-.186-.545-.109c-.187,.078-.309,.26-.309,.463v6.585c0,.276 .224,.5 .5,.5h7.293c.276,0 .5-.224 .5-.5v-.6c0-.276-.225-.497-.499-.532zM18.107,17.047c-.442,0-.8-.358-.8-.8c0-.442 .358-.8 .8-.8c.442,0 .8,.358 .8,.8c0,.442-.358,.8-.8,.8zM.854,15.5c-.143-.143-.358-.186-.545-.109c-.187,.078-.309,.26-.309,.463v2.293c0,.276 .224,.5 .5,.5h2.293c.222,0 .39-.135 .462-.309c.079-.187 .036-.403-.109-.545l-2.292-2.292zM5,14.647l-4.146-4.147c-.143-.143-.358-.186-.545-.109c-.187,.077-.309,.26-.309,.462v2.586c0,.132 .053,.259 .146,.353l4.708,4.708l.146,.147h2.793c.202,0 .385-.122 .462-.309c.077-.187 .034-.402-.109-.545z"},sentry:{title:"Sentry",source:"Simple Icons",path:"M13.696,3.574c-.775-1.285-2.637-1.285-3.411,0l-2.806,4.806c4.362,2.178 7.243,6.505 7.57,11.369h-1.971c-.326-4.169-2.834-7.855-6.593-9.688l-2.597,4.491c2.11,.947 3.594,2.902 3.936,5.19h-4.525c-.109-.008-.207-.07-.261-.165c-.053-.096-.055-.212-.004-.309l1.254-2.132c-.425-.354-.91-.629-1.432-.81l-1.242,2.132c-.261,.448-.332,.981-.196,1.481c.135,.5 .466,.925 .917,1.18c.294,.166 .626,.254 .964,.256h6.197c.234-2.888-1.06-5.689-3.412-7.382l.985-1.706c2.969,2.039 4.639,5.495 4.393,9.088h5.249c.249-5.444-2.417-10.609-6.998-13.56l1.991-3.412c.092-.155 .292-.206 .447-.115c.226,.124 8.653,14.828 8.811,14.998c.057,.101 .055,.226-.005,.325c-.06,.1-.169,.159-.285,.157h-2.03c.026,.543 .026,1.085 0,1.625h2.038c.702,.004 1.352-.368 1.704-.975c.352-.607 .353-1.355 .002-1.963z"},shadcn:{title:"shadcn/ui",source:"Simple Icons",path:"M20.516,11.82l-8.696,8.696c-.339,.339-.339,.89 0,1.23c.339,.339 .89,.339 1.23,0l8.696-8.696c.339-.34 .339-.891 0-1.23c-.34-.339-.891-.339-1.23,0zM18.777,2.254l-16.522,16.522c-.339,.339-.339,.89 0,1.23c.34,.339 .891,.339 1.23,0l16.522-16.522c.339-.339 .339-.89 0-1.23c-.34-.339-.891-.339-1.23,0z"},slack:{title:"Slack",source:"svgl",path:"M9.336,1.99c-1.104,.001-1.998,.897-1.998,2.002c-.001,1.104 .894,2.001 1.998,2.002h1.998v-2.001c.001-1.104-.894-2.001-1.999-2.002c.001,0 .001,0 0,0M9.336,7.329h-5.327c-1.104,.001-1.999,.897-1.998,2.002c-.002,1.104 .893,2.001 1.998,2.002h5.328c1.104-.001 1.999-.897 1.998-2.002c.001-1.105-.894-2.002-1.998-2.002zM21.99,9.33c.001-1.104-.894-2.001-1.998-2.002c-1.104,.001-1.999,.897-1.998,2.002v2.002h1.998c1.104-.001 1.999-.897 1.998-2.002zM16.662,9.33v-5.339c.001-1.104-.893-2-1.998-2.002c-1.104,.001-1.999,.897-1.998,2.002v5.339c-.002,1.104 .893,2.001 1.998,2.002c1.104-.001 1.999-.897 1.998-2.002zM14.664,22.01c1.104-.001 1.999-.897 1.998-2.002c.001-1.104-.894-2.001-1.998-2.002h-1.998v2.002c-.001,1.104 .894,2 1.998,2.002zM14.664,16.671h5.328c1.104-.001 1.999-.897 1.998-2.002c.002-1.104-.893-2.001-1.998-2.002h-5.328c-1.104,.001-1.999,.897-1.998,2.002c-.001,1.105 .893,2.002 1.998,2.002zM2.01,14.669c-.001,1.104 .894,2.001 1.998,2.002c1.104-.001 1.999-.897 1.998-2.002v-2.002h-1.998c-1.104,.001-1.999,.897-1.998,2.002zM7.338,14.669v5.339c-.002,1.104 .893,2.001 1.998,2.002c1.104-.001 1.999-.897 1.998-2.002v-5.338c.002-1.104-.893-2.001-1.998-2.002c-1.105,0-1.999,.896-1.998,2.001c0,0 0,.001 0,0"},square:{title:"Square",source:"Simple Icons",path:"M5.342,2c-1.846,0-3.342,1.496-3.342,3.342v13.317c0,1.842 1.5,3.333 3.342,3.342h13.317c1.842,0 3.342-1.5 3.342-3.342v-13.325c-.005-1.842-1.499-3.333-3.342-3.333h-13.325zM6.692,5.633h10.617c.583,0 1.05,.475 1.05,1.058v10.617c0,.583-.467,1.058-1.05,1.058h-10.617c-.583,0-1.05-.475-1.05-1.058v-10.617c0-.581 .469-1.054 1.05-1.058zM9.883,9.258c-.336,0-.608,.272-.608,.608v4.242c0,.333 .267,.6 .6,.6h4.25c.333,0 .604-.267 .608-.6v-4.242c0-.336-.272-.608-.608-.608h-4.25z"},stripe:{title:"Stripe",source:"Simple Icons",path:"M13.948,9.189c-2.142-.795-3.31-1.406-3.31-2.376c0-.82 .674-1.287 1.875-1.287c2.196,0 4.453,.846 6.007,1.609l.878-5.419c-1.232-.59-3.752-1.551-7.235-1.551c-2.464,0-4.513,.645-5.978,1.846c-1.523,1.258-2.315,3.077-2.315,5.273c0,3.984 2.433,5.681 6.387,7.12c2.55,.907 3.398,1.552 3.398,2.548c0,.967-.828,1.524-2.322,1.524c-1.849,0-4.897-.908-6.894-2.08l-.888,5.479c1.717,.966 4.883,1.962 8.167,1.962c2.605,0 4.777-.615 6.241-1.788c1.641-1.287 2.49-3.192 2.49-5.653c0-4.071-2.489-5.771-6.504-7.205z"},supabase:{title:"Supabase",source:"Simple Icons",path:"M11.916,2.745c-.013-.832-1.064-1.19-1.582-.538l-7.818,9.835c-.923,1.162-.096,2.874 1.389,2.874h8.086l.095,6.339c.012,.831 1.063,1.189 1.581,.537l7.818-9.836c.923-1.161 .095-2.872-1.389-2.872h-8.139z"},teams:{title:"Microsoft Teams",source:"svgl",path:"M12,10.378h6.489c1.792,0 3.244,1.453 3.244,3.244v5.407c0,1.792-1.453,3.244-3.244,3.244c-1.792,0-3.244-1.453-3.244-3.244v-5.407c0-1.792-1.453-3.244-3.244-3.244zM4.43,12.541c0-1.792 1.453-3.244 3.244-3.244h4.326c1.792,0 3.244,1.453 3.244,3.244v6.489c0,1.792 1.453,3.244 3.244,3.244h-8.652c-2.986,0-5.407-2.421-5.407-5.407zM17.948,9.296c1.493,0 2.704-1.21 2.704-2.704c0-1.493-1.21-2.704-2.704-2.704c-1.493,0-2.704,1.21-2.704,2.704c0,1.493 1.21,2.704 2.704,2.704zM9.837,8.215c1.792,0 3.244-1.453 3.244-3.244c0-1.792-1.453-3.244-3.244-3.244c-1.792,0-3.244,1.453-3.244,3.244c0,1.792 1.453,3.244 3.244,3.244zM4.024,20.652c-.971,0-1.757-.787-1.757-1.757v-5.137c0-.971 .787-1.757 1.757-1.757h5.137c.971,0 1.757,.787 1.757,1.757v5.137c0,.971-.787,1.757-1.757,1.757zM8.474,14.761v-.906h-3.764v.906h1.323v4.037h1.117v-4.037h1.324zM8.474,14.761v-.906h-3.764v.906h1.323v4.037h1.117v-4.037h1.324z"},telegram:{title:"Telegram",source:"Simple Icons",path:"M11.953,2c-5.505,.026-9.953,4.495-9.953,10c0,5.523 4.477,10 10,10c5.523,0 10-4.477 10-10c0-5.523-4.477-10-10-10c-.016,0-.031,0-.047,0zM16.088,8.02c.083-.002 .268,.019 .388,.117c.08,.069 .131,.166 .143,.271c.013,.078 .03,.255 .017,.393c-.15,1.582-.802,5.418-1.133,7.189c-.14,.75-.416,1.001-.683,1.025c-.58,.054-1.021-.383-1.583-.752c-.88-.577-1.377-.937-2.232-1.5c-.987-.65-.347-1.008 .215-1.592c.148-.153 2.706-2.481 2.756-2.692c.006-.027 .012-.125-.047-.177c-.058-.052-.145-.034-.207-.02c-.088,.02-1.494,.95-4.217,2.788c-.4,.275-.761,.408-1.085,.4c-.357-.007-1.043-.201-1.554-.367c-.627-.204-1.124-.312-1.081-.657c.023-.18 .271-.364 .744-.552c2.915-1.27 4.858-2.107 5.832-2.512c2.777-1.155 3.354-1.356 3.73-1.362z"},vercel:{title:"Vercel",source:"Simple Icons",path:"M12,2.694l10.746,18.612h-21.492z"},webflow:{title:"Webflow",source:"Simple Icons",path:"M24,4.515l-7.658,14.97h-7.193l3.205-6.204h-.144c-2.644,3.432-6.589,5.692-12.21,6.204v-6.118c0,0 3.596-.213 5.71-2.435h-5.71v-6.417h6.417v5.278l.144-.001l2.622-5.277h4.854v5.244h.144l2.72-5.244z"},wix:{title:"Wix",source:"Simple Icons",path:"M0,7.355l2.113,9.292h.801c.726,0 1.354-.508 1.506-1.218l1.351-6.34c.016-.079 .086-.137 .167-.137c.08,0 .15,.058 .167,.137l1.352,6.34c.152,.71 .78,1.218 1.506,1.218h.805l2.113-9.292h-.565c-.62,0-1.159,.43-1.296,1.035l-1.26,5.545l-1.106-5.176c-.102-.473-.395-.883-.81-1.134c-.414-.251-.914-.319-1.38-.19c-.639,.176-1.113,.716-1.251,1.365l-1.094,5.127l-1.26-5.537c-.138-.605-.675-1.035-1.296-1.035zM13.992,7.355c-.525,0-.95,.425-.951,.95v8.342h.635c.525-.001 .95-.425 .951-.95v-8.343h-.635zM15.77,7.355l3.158,4.66l-3.14,4.632h1.325c.368,0 .712-.181 .918-.486l1.756-2.59c.022-.032 .059-.051 .099-.051c.039,0 .076,.019 .099,.051l1.754,2.59c.206,.305 .55,.486 .918,.486h1.326l-3.14-4.632l3.158-4.66h-1.326c-.368,0-.712,.181-.918,.486l-1.772,2.617c-.022,.032-.059,.051-.098,.051c-.039,0-.076-.019-.098-.051l-1.773-2.617c-.206-.304-.55-.486-.918-.486z"},zapier:{title:"Zapier",source:"Simple Icons",path:"M14.5,12.003c0,.744-.137,1.455-.384,2.113c-.656,.248-1.369,.384-2.112,.384h-.007c-.744,0-1.454-.137-2.112-.384c-.247-.657-.384-1.369-.384-2.112v-.007c0-.744 .137-1.454 .384-2.112c.658-.247 1.368-.384 2.112-.384h.008c.744,0 1.457,.137 2.113,.385c.248,.657 .384,1.368 .384,2.113zM21.863,10.333h-5.837l4.123-4.127c-.325-.457-.683-.883-1.079-1.277c-.394-.395-.821-.756-1.275-1.08l-4.128,4.124v-5.836c-.541-.087-1.094-.137-1.662-.137h-.008c-.567,0-1.122,.051-1.662,.138v5.838l-4.125-4.124c-.457,.322-.883,.684-1.278,1.078c-.395,.395-.757,.823-1.08,1.278l4.124,4.127h-5.836c0,0-.137,1.097-.137,1.663v.008c0,.567 .051,1.123 .138,1.663h5.838l-4.124,4.127c.648,.913 1.444,1.709 2.356,2.358l4.127-4.125v5.837c.54,.088 1.094,.138 1.659,.138h.014c.566,0 1.12-.05 1.659-.137v-5.837l4.127,4.125c.457-.312 .883-.677 1.274-1.075h.004c.394-.387 .755-.813 1.08-1.276l-4.125-4.124h5.837c.088-.537 .138-1.087 .138-1.65v-.026c0-.565-.05-1.119-.137-1.658"}},te=E(_(),1);function de({id:s}){let a=ne[s];return(0,te.jsx)("svg",{viewBox:"0 0 24 24",focusable:"false","aria-hidden":"true",children:(0,te.jsx)("path",{fill:"currentColor",fillRule:a.evenodd?"evenodd":void 0,d:a.path})})}var e=E(_(),1),pe={atlassian:"jira","chrome-devtools":"chrome",codex:"openai","microsoft-teams":"teams","better-stack":"betterstack"};function ie({name:s,label:a,connected:c}){let r=s.toLowerCase().replace(/^agent:/,"").replace(/^mcp:.*:/,""),n=Object.hasOwn(ne,r)?r:pe[r]??null,m=(a.trim().match(/[\p{L}\p{N}]/u)?.[0]??"?").toUpperCase();return(0,e.jsx)("span",{className:"brand-mark","data-connected":String(c),...n===null?{"data-letter":""}:{},"aria-hidden":"true",children:n===null?m:(0,e.jsx)(de,{id:n})})}var Z=[["all","All"],["track","Watch & triage"],["fix","Keep things working"],["report","Research & reports"],["kits","With an agent"],["recipes","One-time work"],["starters","Starter flows"]],ce=[["check","Passing tests or commands"],["changed-path","Changed files"],["screenshot","Screenshot"],["manual-review","Reviewer assessment"]],he=[["free","Do it"],["limit","Do it, up to a limit"],["ask","Ask first"],["never","Never"]],me=[["npm outdated","npm (Node)"],["pip list --outdated","pip (Python)"],["cargo outdated","Cargo (Rust)"],["bundle outdated","Bundler (Ruby)"],["go list -u -m all","Go modules"]];function re({projects:s,current:a,id:c}){return s.length<=1?(0,e.jsx)("input",{type:"hidden",name:"repo",value:s[0]?.path??a??""}):(0,e.jsx)(w,{label:"Project",children:({id:r})=>(0,e.jsx)(T,{id:c||r,name:"repo",defaultValue:a??s[0].path,wide:!0,items:s.map(n=>[n.path,n.name])})})}function pl({view:s}){let[a,c]=(0,g.useState)(null),[r,n]=(0,g.useState)(null),[m,j]=(0,g.useState)("No file chosen"),[l,t]=(0,g.useState)(""),[d,b]=(0,g.useState)(""),[v,N]=(0,g.useState)(""),Y=(0,g.useRef)(null),p=s.canCreate&&s.projects.length>0,x=i=>i===null?"/flows":`/flows?project=${encodeURIComponent(i)}`,k=i=>i.tone==="running"?(0,e.jsx)(C,{word:i.label,tone:"live"}):i.tone==="failed"?(0,e.jsx)(C,{word:i.label,tone:"failed"}):i.tone==="finished"?(0,e.jsx)(C,{word:i.label,tone:"done"}):i.tone==="ask"?(0,e.jsx)(C,{word:i.label,tone:"ask"}):(0,e.jsx)(C,{word:i.label,dot:i.dot});return(0,e.jsxs)("div",{className:"fl-page","data-kit-page":"",children:[(0,e.jsx)(B,{title:"Flows",right:(0,e.jsxs)(e.Fragment,{children:[s.projects.length>1&&(0,e.jsx)(Q,{label:"Project",current:s.scope??"all",items:[{key:"all",label:"All",href:"/flows"},...s.projects.map(i=>({key:i.path,label:i.name,href:x(i.path)}))]}),(0,e.jsx)(o,{variant:"ghost",sm:!0,iconOnly:"more",label:"More",onClick:i=>c(i.currentTarget)}),p&&(0,e.jsx)(f,{variant:"primary",sm:!0,lead:"plus",label:"New flow",href:"/flows/new"})]})}),(0,e.jsxs)("div",{className:"fl-pbar k-phone-only",children:[s.projects.length>1?(0,e.jsx)("form",{method:"get",action:"/flows",children:(0,e.jsx)(T,{name:"project","aria-label":"Project",value:s.scope??"",wide:!0,items:[["","All projects"],...s.projects.map(i=>[i.path,i.name])],onChange:i=>i.currentTarget.form?.requestSubmit()})}):(0,e.jsx)("span",{className:"k-grow"}),(0,e.jsx)(o,{variant:"outline",iconOnly:"more",label:"More",onClick:i=>c(i.currentTarget)})]}),s.problem!==null&&(0,e.jsx)("div",{className:"fl-say",children:(0,e.jsx)(M,{children:s.problem})}),s.totalFlows===0?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(J,{title:"No flows yet.",text:"A flow repeats work for you: run your tests every night, turn labelled issues into pull requests, draft replies to support mail.",action:p?(0,e.jsxs)(z,{children:[(0,e.jsx)(f,{sm:!0,href:"/flows/new",label:"Browse templates"}),(0,e.jsx)(o,{variant:"ghost",sm:!0,label:"Import a flow file",onClick:i=>n(i.currentTarget)})]}):void 0}),p&&(0,e.jsx)("div",{className:"fl-try",children:(0,e.jsxs)(h,{action:"/flows/example",children:[(0,e.jsx)("span",{className:"k-note",children:"Or see one work: Claude drafts a reply to a sample customer question for you to approve."}),s.projects.length===1?(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.projects[0].path}):(0,e.jsx)(T,{name:"repo","aria-label":"Project",sm:!0,items:s.projects.map(i=>[i.path,i.name])}),(0,e.jsx)(o,{sm:!0,type:"submit",label:"Try an example"})]})})]}):s.groups.every(i=>i.rows.length===0)?(0,e.jsx)(J,{title:`No flows in ${s.projects.find(i=>i.path===s.scope)?.name??"this project"}.`,action:(0,e.jsx)(f,{variant:"ghost",sm:!0,href:"/flows",label:"Show all projects"})}):(0,e.jsxs)("div",{className:"fl-rows","aria-label":"Flows",children:[s.groups.filter(i=>i.rows.length>0).map(i=>(0,e.jsxs)("div",{children:[(0,e.jsx)(V,{label:i.label,count:(0,e.jsx)(q,{n:i.rows.length})}),i.rows.map(u=>(0,e.jsx)("div",{"data-flow":u.id,children:(0,e.jsx)(ae,{href:u.href,chip:k(u.chip),title:u.name,desc:u.desc,wait:u.wait,meta:(0,e.jsxs)(e.Fragment,{children:[u.projectName!==null&&(0,e.jsx)("span",{children:u.projectName}),u.nextWords!==null&&(0,e.jsxs)("span",{className:"k-num",children:["Next ",u.nextWords]})]}),action:u.action!==null?(0,e.jsx)(f,{sm:!0,href:u.action.href,label:u.action.label}):void 0})},u.id))]},i.key)),p&&(0,e.jsx)("p",{className:"k-foot",children:(0,e.jsx)(o,{variant:"ghost",sm:!0,label:"Import a flow file",onClick:i=>n(i.currentTarget)})})]}),a&&(0,e.jsxs)(G,{kind:"menu",title:"More",trigger:a,onClose:()=>c(null),children:[p&&(0,e.jsx)("button",{type:"button",onClick:()=>{let i=a;c(null),n(i)},children:"Import a flow file…"}),(0,e.jsx)("a",{href:"/flows/new?group=kits",children:"Starter kits"}),(0,e.jsx)("a",{href:"/settings/lead/subagents",children:"Subagents"})]}),p&&r&&(0,e.jsx)(G,{kind:"drawer",title:"Import a flow file",trigger:r,onClose:()=>n(null),children:(0,e.jsxs)(h,{ref:Y,action:"/flows/import",className:"fl-imp","data-flow-import":"",onSubmit:i=>{l.trim()===""&&d.trim()===""&&(i.preventDefault(),N("Choose a flow file or give its address."))},children:[(0,e.jsx)(y,{children:"A flow file from another Toolroll, a teammate or a gist. Nothing runs until you import it, and any script it brings waits for your approval."}),(0,e.jsx)(re,{projects:s.projects,current:s.scope,id:"fl-imp-project"}),(0,e.jsxs)("div",{className:"k-field",children:[(0,e.jsx)("span",{className:"k-label",children:"File"}),(0,e.jsxs)("div",{className:"fl-file",children:[(0,e.jsxs)("label",{className:"k-btn k-btn-outline k-btn-sm",children:[(0,e.jsx)("input",{type:"file",accept:".json,application/json","data-flow-file":"",onChange:i=>{let u=i.currentTarget.files?.[0];if(t(""),N(""),!u){j("No file chosen");return}if(u.size>s.maxFileBytes){N(`That file is too big: a flow file is at most ${s.maxFileBytes/1024} KB.`),i.currentTarget.value="",j("No file chosen");return}j(u.name),u.text().then(F=>t(F))}}),(0,e.jsx)("span",{className:"k-face",children:"Choose a file"})]}),(0,e.jsx)("span",{className:"k-note","data-flow-file-name":"",children:m})]})]}),(0,e.jsx)("textarea",{name:"document",hidden:!0,readOnly:!0,value:l,"data-flow-document":""}),(0,e.jsx)(w,{label:"Or its address",children:({id:i})=>(0,e.jsx)($,{id:i,name:"url",type:"url",inputMode:"url",placeholder:"https://gist.github.com/…",value:d,onChange:u=>b(u.target.value)})}),v!==""&&(0,e.jsx)(M,{children:v}),(0,e.jsx)(z,{children:(0,e.jsx)(o,{type:"submit",label:"Preview import"})})]})}),p&&(0,e.jsx)(R,{children:(0,e.jsx)(f,{variant:"primary",lead:"plus",label:"New flow",href:"/flows/new"})})]})}function hl({view:s}){return(0,e.jsxs)("div",{className:"fl-page","data-kit-page":"",children:[(0,e.jsx)(O,{title:`Import ${s.fileName}`,back:"/flows"}),(0,e.jsxs)(W,{children:[(0,e.jsx)(P,{title:`Import ${s.fileName}`,back:["/flows","Flows"],meta:`Into ${s.projectName}. Nothing is made until you import it.`,same:!0}),s.problem!==null&&(0,e.jsx)(M,{children:s.problem}),s.plan!==null&&(0,e.jsxs)(e.Fragment,{children:[s.plan.about!==null&&(0,e.jsx)(y,{children:s.plan.about}),(0,e.jsxs)("section",{className:"k-sec",children:[(0,e.jsx)("h3",{children:"Steps"}),(0,e.jsx)(A,{children:"Its instructions come from the file, not from you: read what each step is asked before you import."}),s.plan.steps.length>0&&(0,e.jsx)("ul",{className:"fl-terms",children:s.plan.steps.map((a,c)=>(0,e.jsx)("li",{children:a},c))})]}),s.plan.triggers.length>0&&(0,e.jsxs)("section",{className:"k-sec",children:[(0,e.jsx)("h3",{children:"Triggers"}),(0,e.jsx)("ul",{className:"fl-terms",children:s.plan.triggers.map((a,c)=>(0,e.jsx)("li",{children:a},c))})]}),(s.plan.scripts.length>0||s.plan.kept.length>0)&&(0,e.jsxs)("section",{className:"k-sec",children:[(0,e.jsx)("h3",{children:"Scripts"}),(0,e.jsxs)("ul",{className:"fl-terms",children:[s.plan.scripts.map((a,c)=>(0,e.jsxs)("li",{children:[a.text,a.body!==null&&(0,e.jsx)(U,{summary:"Show the script",children:(0,e.jsx)("pre",{className:"k-mono",children:a.body})})]},c)),s.plan.kept.map((a,c)=>(0,e.jsx)("li",{children:a},`k-${c}`))]})]}),(0,e.jsxs)("section",{className:"k-sec",children:[(0,e.jsx)("h3",{children:"Good to know"}),(0,e.jsx)("ul",{className:"fl-terms",children:s.plan.notes.map((a,c)=>(0,e.jsx)("li",{children:a},c))})]})]}),(0,e.jsxs)(h,{action:"/flows/import",className:"fl-pv-form",id:"fl-pv-form",children:[(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),(0,e.jsx)("input",{type:"hidden",name:"previewed",value:s.previewed}),(0,e.jsx)("textarea",{name:"document",hidden:!0,readOnly:!0,value:s.document}),s.parameters.length>0&&(0,e.jsxs)("fieldset",{children:[(0,e.jsx)("legend",{children:"Fill in"}),s.parameters.map(a=>(0,e.jsx)(w,{label:a.optional?`${a.about} (optional)`:a.about,children:({id:c})=>(0,e.jsx)($,{id:c,name:`param.${a.id}`,defaultValue:a.value,maxLength:200,autoComplete:"off"})},a.id))]}),(0,e.jsxs)(z,{children:[s.plan!==null&&(0,e.jsx)(o,{variant:"primary",type:"submit",docked:!0,name:"confirm",value:"yes",label:"Import flow"}),s.parameters.length>0&&(0,e.jsx)(o,{variant:s.plan===null?"primary":"outline",type:"submit",name:"confirm",value:"",label:s.plan===null?"Preview":"Update preview"}),(0,e.jsx)(f,{variant:"ghost",href:"/flows",label:"Cancel"})]})]})]}),s.plan!==null&&(0,e.jsx)(R,{children:(0,e.jsx)(o,{variant:"primary",type:"submit",form:"fl-pv-form",name:"confirm",value:"yes",label:"Import flow"})})]})}function oe({steps:s}){return(0,e.jsx)("ol",{className:"gallery-steps","aria-label":"Steps",children:s.map((a,c)=>(0,e.jsxs)("li",{children:[c>0&&(0,e.jsx)("span",{"aria-hidden":"true",children:"→"}),a.highlight?(0,e.jsx)("b",{children:a.name}):a.name]},c))})}function ml({view:s}){let[a,c]=(0,g.useState)(s.ask.value),[r,n]=(0,g.useState)(s.projects.find(t=>t.path===s.repo)?.name??s.projects[0]?.name??""),m=Z.some(([t])=>t===s.group)?s.group:"all",j=t=>m==="all"||m===t,l=t=>{let d=new URLSearchParams({...t==="all"?{}:{group:t},...s.repo===null?{}:{repo:s.repo}}).toString();return`/flows/new${d?`?${d}`:""}`};return(0,e.jsxs)("div",{className:"fl-new","data-kit-page":"",children:[(0,e.jsx)(O,{title:"New flow",back:"/flows"}),(0,e.jsxs)(W,{children:[(0,e.jsx)(P,{title:"New flow",back:["/flows","Flows"],meta:s.canUse?"Describe it in a sentence, or start from a template.":"An approver creates flows.",same:!0}),s.problem!==null?(0,e.jsx)(M,{children:s.problem}):s.said!==null?(0,e.jsx)(A,{children:s.said}):null,s.canUse&&(0,e.jsxs)("section",{className:"k-sec","aria-labelledby":"fl-dh",children:[(0,e.jsx)("h3",{id:"fl-dh",children:"Describe what you want"}),(0,e.jsxs)("form",{method:"get",action:"/flows/new",id:"fl-ask-form",children:[(0,e.jsx)("input",{type:"hidden",name:"project",value:r}),(0,e.jsx)(ee,{id:"fl-ask",name:"describe",label:"What should happen",rows:3,value:a,onChange:c,onSend:()=>{},submit:!0,gate:!1,sendLabel:"Draft the flow",placeholder:"Every night, run npm run e2e. When it fails, find the cause, fix it and open a pull request.",...s.projects.length>0?{project:{current:r,items:s.projects.map(t=>t.name)}}:{},onProject:n,error:s.ask.error,note:"Opens in chat: your lead drafts it for you to check. Nothing runs until you create it."})]})]}),(0,e.jsxs)("section",{className:"k-sec","aria-labelledby":"fl-th",children:[(0,e.jsxs)("div",{className:"fl-th",children:[(0,e.jsx)("h3",{id:"fl-th",children:"Start from a template"}),(0,e.jsx)("span",{className:"k-desk-only",children:(0,e.jsx)(Q,{label:"Templates",current:m,items:Z.map(([t,d])=>({key:t,label:d,href:l(t)}))})}),(0,e.jsx)("span",{className:"k-phone-only fl-tsel",children:(0,e.jsxs)("form",{method:"get",action:"/flows/new",children:[s.repo!==null&&(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),(0,e.jsx)(T,{name:"group","aria-label":"Templates",value:m,wide:!0,items:Z,onChange:t=>t.currentTarget.form?.requestSubmit()})]})})]}),(0,e.jsxs)("div",{className:"fl-tlist",children:[s.templateGroups.filter(t=>j(t.id)).map(t=>(0,e.jsxs)("div",{"data-group":t.id,children:[(0,e.jsx)(V,{label:t.label,count:(0,e.jsx)(q,{n:t.rows.length})}),t.rows.map(d=>(0,e.jsxs)("div",{className:"fl-trow","data-template":d.id,children:[(0,e.jsxs)("div",{className:"fl-tmain",children:[(0,e.jsx)("b",{children:d.name}),(0,e.jsx)("span",{className:"fl-tp",children:d.promise}),(0,e.jsxs)("span",{className:"fl-tline",children:[(0,e.jsx)(oe,{steps:d.steps}),d.tools.length>0&&(0,e.jsx)("ul",{className:"gallery-tools","aria-label":"Tools",children:d.tools.map(b=>(0,e.jsxs)("li",{"data-tool":b.id,"data-state":b.state??"unknown",children:[(0,e.jsx)(ie,{name:b.id.replace(/-desktop$/,""),label:b.label,connected:b.state==="connected"}),(0,e.jsxs)("span",{children:[b.label,b.state==="open"?" (not connected)":""]})]},b.id))}),d.needsWords!==""&&(0,e.jsxs)("span",{children:["· ",d.needsWords]})]})]}),(0,e.jsx)("div",{className:"fl-ta",children:d.href!==null&&(0,e.jsx)(f,{sm:!0,href:d.href,"aria-label":`Use ${d.name}`,label:"Use this"})})]},d.id))]},t.id)),j("kits")&&(0,e.jsxs)("div",{"data-group":"kits",children:[(0,e.jsx)(V,{label:"With an agent",count:(0,e.jsx)(q,{n:s.kits.length})}),s.kits.map(t=>(0,e.jsxs)("div",{className:"fl-trow","data-kit":t.id,children:[(0,e.jsxs)("div",{className:"fl-tmain",children:[(0,e.jsx)("b",{children:t.name}),(0,e.jsx)("span",{className:"fl-tp",children:t.promise}),(0,e.jsx)("span",{className:"fl-tline",children:t.line})]}),(0,e.jsx)("div",{className:"fl-ta",children:t.href!==null&&(0,e.jsx)(f,{sm:!0,href:t.href,label:t.actionLabel})})]},t.id))]}),j("recipes")&&(0,e.jsxs)("div",{children:[(0,e.jsx)(V,{label:s.recipes.projectName===null?"One-time work":`One-time work in ${s.recipes.projectName}`,count:(0,e.jsx)(q,{n:s.recipes.rows.length})}),s.recipes.error!==null?(0,e.jsx)(M,{children:s.recipes.error}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{"data-group":"recipes",children:s.recipes.rows.map(t=>(0,e.jsxs)("div",{className:"fl-trow","data-recipe-card":"","data-recipe":t.id,children:[(0,e.jsxs)("div",{className:"fl-tmain",children:[(0,e.jsx)("b",{children:t.name}),(0,e.jsx)("span",{className:"fl-tp",children:t.description}),(0,e.jsx)("span",{className:"fl-tline",children:t.line})]}),(0,e.jsx)("div",{className:"fl-ta",children:t.href!==null&&(0,e.jsx)(f,{sm:!0,href:t.href,"aria-label":`Use ${t.name}`,label:"Use this"})})]},`${t.id}-${t.revision}`))}),(0,e.jsxs)("div",{className:"fl-recipe-more",children:[s.recipes.project===null?(0,e.jsx)(y,{children:"Open a project to use, save or import a recipe."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("p",{className:"k-acts fl-recipe-acts",children:(0,e.jsx)(f,{sm:!0,href:"/recipes/new",label:"Create a recipe"})}),(0,e.jsx)(U,{summary:"Import a shared recipe",children:(0,e.jsxs)(h,{action:"/recipes/import",className:"fl-recipe-import",children:[(0,e.jsx)("input",{type:"hidden",name:"projectRevision",value:String(s.recipes.revision)}),(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.recipes.project}),(0,e.jsx)(w,{label:"Recipe JSON",hint:"Paste exported recipe JSON. You review it in this project before any work is made.",children:({id:t})=>(0,e.jsx)(L,{id:t,name:"document",rows:6,required:!0,maxLength:32768,spellCheck:!1})}),(0,e.jsx)(z,{children:(0,e.jsx)(o,{type:"submit",label:"Review imported recipe"})})]})})]}),s.recipes.recent.length>0&&(0,e.jsx)(U,{summary:`Made from recipes lately (${s.recipes.recent.length})`,children:(0,e.jsx)("div",{className:"fl-recipe-recent",children:s.recipes.recent.map((t,d)=>(0,e.jsxs)("a",{href:t.href,children:[(0,e.jsx)("span",{children:t.name}),(0,e.jsx)("span",{className:"k-note",children:t.state})]},d))})})]})]})]}),j("starters")&&s.starters!==null&&(0,e.jsxs)("div",{children:[(0,e.jsx)(V,{label:`Starter flows for ${s.starters.projectName}`}),(0,e.jsx)("div",{"data-group":"starters",children:s.starters.rows.map(t=>(0,e.jsxs)("div",{id:`starter-${t.id}`,className:"fl-trow","data-starter":t.id,"data-suggested":String(t.id===s.starters.suggested&&t.onFlowId===null),children:[(0,e.jsxs)("div",{className:"fl-tmain",children:[(0,e.jsx)("b",{children:t.name}),(0,e.jsx)("span",{className:"fl-tp",children:t.summary}),(0,e.jsx)("span",{className:"fl-tline",children:t.onFlowId!==null?(0,e.jsx)(C,{word:"On",tone:"done"}):t.blocked!==null?(0,e.jsx)("span",{children:t.blocked}):(0,e.jsxs)("span",{children:[(0,e.jsx)("ul",{className:"fl-starter-does",children:t.does.map((d,b)=>(0,e.jsx)("li",{children:d},b))}),(0,e.jsx)("span",{className:"fl-starter-never",children:t.never})]})})]}),(0,e.jsx)("div",{className:"fl-ta",children:t.onFlowId!==null?(0,e.jsx)(f,{sm:!0,href:`/flows/${t.onFlowId}`,label:"Open flow"}):t.blocked===null&&s.starters.canSwitch&&(0,e.jsxs)(h,{action:"/settings/flows/on",children:[(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.starters.repo}),(0,e.jsx)("input",{type:"hidden",name:"starter",value:t.id}),(0,e.jsx)(o,{sm:!0,type:"submit","aria-label":`Switch on ${t.name}`,label:"Switch on"})]})})]},t.id))}),!s.starters.canSwitch&&s.starters.rows.some(t=>t.onFlowId===null)&&(0,e.jsx)(y,{children:"An approver switches these on."})]}),s.blankHref!==null&&(0,e.jsx)("p",{className:"k-note fl-blank",children:(0,e.jsx)("a",{href:s.blankHref,children:"Start from a blank flow"})})]})]})]}),s.canUse&&(0,e.jsx)(R,{children:(0,e.jsx)(o,{variant:"primary",type:"submit",form:"fl-ask-form",label:"Draft the flow"})})]})}function ue(){let[s,a]=(0,g.useState)("");return(0,e.jsx)(K,{proof:"tools-connect",value:s,onChange:a})}function ul({view:s}){let a=s.tools.filter(n=>n.state!=="connected"&&n.state!=="taken"),c={connected:"Connected",open:"Not connected",taken:"Added another way"},r=s.preview!==null;return(0,e.jsxs)("div",{className:"fl-use","data-kit-page":"","data-gallery-template":s.template.id,children:[(0,e.jsx)(O,{title:s.template.name,back:"/flows/new"}),(0,e.jsxs)(W,{children:[(0,e.jsx)(P,{title:s.template.name,back:["/flows/new","New flow"],meta:s.template.promise,same:!0}),s.problem!==null&&(0,e.jsx)(M,{children:s.problem}),s.said!==null&&(0,e.jsx)(A,{children:s.said}),(s.steps.length>0||s.needsWords!=="")&&(0,e.jsxs)("section",{className:"k-sec","aria-label":"Steps",children:[s.steps.length>0&&(0,e.jsx)(oe,{steps:s.steps}),s.needsWords!==""&&(0,e.jsx)(y,{children:s.needsWords})]}),s.tools.length>0&&(0,e.jsxs)("section",{className:"k-sec","aria-label":"Tools",children:[(0,e.jsx)("h3",{children:"Tools"}),(0,e.jsx)("div",{children:s.tools.map(n=>(0,e.jsxs)("div",{className:"fl-tool","data-tool":n.id,"data-state":String(n.state),children:[(0,e.jsxs)("p",{className:"fl-tool-h",children:[(0,e.jsx)(ie,{name:n.id.replace(/-desktop$/,""),label:n.label,connected:n.state==="connected"})," ",n.label," ",n.state!==null&&(0,e.jsx)(C,{word:c[n.state],tone:n.state==="connected"?"done":"",dot:n.state==="connected"})]}),n.state!=="connected"&&n.state!=="taken"&&s.canAct&&(0,e.jsxs)(h,{action:"/settings/tools/connect",children:[(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),(0,e.jsx)("input",{type:"hidden",name:"shown",value:s.repo}),(0,e.jsx)("input",{type:"hidden",name:"template",value:s.template.id}),(0,e.jsx)(y,{children:n.id==="figma-desktop"?"Open the Figma desktop app and turn on its Dev Mode MCP server in Preferences.":`You sign in on ${n.label}, then come back here.`}),(0,e.jsx)(ue,{}),(0,e.jsx)(z,{children:(0,e.jsx)(o,{type:"submit",name:"service",value:n.id,label:`Connect ${n.label}`})})]})]},n.id))})]}),(0,e.jsxs)(h,{action:`/flows/new/${s.template.id}`,"data-gallery-use":"",id:"fl-use-form",children:[(0,e.jsx)("input",{type:"hidden",name:"previewed",value:s.preview?.digest??""}),s.projects.length>1?(0,e.jsx)(w,{label:"Project",children:({id:n})=>(0,e.jsx)(T,{id:n,name:"repo",defaultValue:s.repo,wide:!0,items:s.projects.map(m=>[m.path,m.name])})}):(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),s.template.asks.map(n=>(0,e.jsx)(w,{label:n.label,...n.hint!==void 0?{hint:n.hint}:{},children:({id:m})=>n.key==="outdated"?(0,e.jsx)(T,{id:m,name:"outdated",defaultValue:n.value,wide:!0,items:me}):(0,e.jsx)($,{id:m,name:n.key,defaultValue:n.value,required:!0,maxLength:n.key==="command"?500:n.key==="team"?12:100,spellCheck:n.key==="command"||n.key==="team"?!1:void 0,autoCapitalize:n.key==="command"?"off":n.key==="team"?"characters":void 0})},n.key)),(0,e.jsx)(w,{label:"Name",children:({id:n})=>(0,e.jsx)($,{id:n,name:"name",defaultValue:s.name,maxLength:80})}),s.sendResult.show&&(0,e.jsxs)("label",{className:"fl-check",children:[(0,e.jsx)("input",{type:"checkbox",name:s.sendResult.key,value:"yes",defaultChecked:s.sendResult.checked,"data-send-result":""}),(0,e.jsxs)("span",{children:[s.sendResult.title,(0,e.jsx)("span",{className:"k-note",children:"When a card finishes, what was done comes to you in your chat apps."})]})]}),s.preview!==null&&(0,e.jsxs)("section",{className:"k-sec fl-will","aria-labelledby":"fl-will",children:[(0,e.jsx)("h3",{id:"fl-will",children:"What it will do"}),(0,e.jsx)("ul",{children:s.preview.does.map((n,m)=>(0,e.jsx)("li",{children:n},m))}),(0,e.jsx)("p",{className:"fl-never",children:s.preview.never}),a.filter(n=>n.zones.length>0).map(n=>(0,e.jsxs)("p",{className:"k-note","data-needs-tool":n.id,children:[n.zones.map(m=>`“${m}”`).join(" and ")," need",n.zones.length===1?"s":""," ",n.label,", which isn't connected."]},n.id)),s.tools.filter(n=>n.state==="taken"&&n.zones.length>0).map(n=>(0,e.jsxs)("p",{className:"k-note","data-tool-taken":n.id,children:[n.zones.map(m=>`“${m}”`).join(" and ")," use",n.zones.length===1?"s":""," ",n.label,", added another way."]},n.id)),s.preview.startsFrom.length===0?(0,e.jsx)(y,{children:"Cards start when you add them."}):s.preview.startsFrom.map((n,m)=>(0,e.jsxs)(y,{children:["Starts from: ",n]},m)),(0,e.jsx)(U,{summary:"Every step",children:(0,e.jsx)("ol",{children:s.preview.steps.map((n,m)=>(0,e.jsx)("li",{children:n.replace(/^\d+\.\s/,"")},m))})})]}),s.preview!==null&&s.preview.anyone&&(0,e.jsx)(I,{kind:"step-up",field:"password",children:(0,e.jsx)(w,{label:"Your password",hint:"It brings in items from anyone.",children:({id:n})=>(0,e.jsx)($,{id:n,name:"password",type:"password",autoComplete:"current-password"})})}),(0,e.jsxs)(z,{children:[r&&(0,e.jsx)(o,{variant:a.length>0?"outline":"primary",type:"submit",docked:!0,name:"intent",value:"create",label:"Create flow",...a.length>0?{"data-without-tools":""}:{}}),(0,e.jsx)(o,{variant:r?"outline":"primary",type:"submit",name:"intent",value:"preview",label:r?"Update preview":"Preview"})]}),r&&(0,e.jsx)(y,{children:s.preview.anyone?"Creating it asks for your password: it brings in items from anyone.":"Creating it needs no password."})]})]}),(0,e.jsx)(R,{children:(0,e.jsx)(o,{variant:"primary",type:"submit",form:"fl-use-form",name:"intent",value:r?"create":"preview",label:r?"Create flow":"Preview"})})]})}function xl({view:s}){return(0,e.jsxs)("div",{className:"fl-kit","data-kit-page":"","data-kit":s.kit.id,children:[(0,e.jsx)(O,{title:s.kit.name,back:s.backHref}),(0,e.jsxs)(W,{children:[(0,e.jsx)(P,{title:s.kit.name,back:[s.backHref,"New flow"],meta:s.kit.promise,same:!0}),s.problem!==null&&(0,e.jsx)(M,{children:s.problem}),s.said!==null&&(0,e.jsx)(A,{children:s.said}),(0,e.jsx)(se,{rows:[["Project",s.projectName],["Agent",s.kit.agentDesc],["Flow",s.kit.flowName],...s.kit.toolsWords===null?[]:[["Works with",s.kit.toolsWords]]]}),!s.installed&&(0,e.jsx)(y,{children:"Nothing goes out without you approving it."}),!s.installed&&s.canSetUp&&(0,e.jsxs)(h,{action:`/kits/${s.kit.id}/setup`,id:"fl-kit-setup",children:[(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),(0,e.jsx)(z,{children:(0,e.jsx)(o,{variant:"primary",type:"submit",docked:!0,label:`Set up ${s.kit.name}`})})]}),s.steps.length>0&&(0,e.jsxs)("section",{className:"k-sec","aria-labelledby":"fl-kit-next",children:[(0,e.jsx)("h3",{id:"fl-kit-next",children:"Next steps"}),(0,e.jsx)("ol",{className:"fl-kit-steps",children:s.steps.map(a=>(0,e.jsxs)("li",{"data-step":a.id,"data-done":String(a.done),children:[a.done?(0,e.jsx)(X,{name:"check",small:!0}):(0,e.jsx)("span",{className:"fl-kit-ring","aria-hidden":"true"}),(0,e.jsx)("span",{className:"fl-kit-said",children:a.said}),a.done?a.href!==null&&(0,e.jsx)(f,{sm:!0,href:a.href,label:"Open"}):a.action==="sample"||a.action==="github"?s.canSetUp&&(0,e.jsxs)(h,{action:`/kits/${s.kit.id}/${a.action}`,children:[(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),a.action==="github"&&(0,e.jsx)(I,{kind:"step-up",field:"password",children:(0,e.jsx)($,{name:"password",type:"password",autoComplete:"current-password","aria-label":"Your password",placeholder:"Your password"})}),(0,e.jsx)(o,{sm:!0,type:"submit",label:a.action==="sample"?"Try it":"Bring them in"})]}):a.href!==null&&(0,e.jsx)(f,{sm:!0,href:a.href,label:a.action==="connect"?"Connect":"Set up"})]},a.id))})]})]}),!s.installed&&s.canSetUp&&(0,e.jsx)(R,{children:(0,e.jsx)(o,{variant:"primary",type:"submit",form:"fl-kit-setup",label:`Set up ${s.kit.name}`})})]})}function jl({view:s}){return(0,e.jsxs)("div",{className:"subagents","data-kit-page":"",children:[(0,e.jsx)(B,{title:"Subagents",back:"/settings/lead",right:(0,e.jsx)(f,{sm:!0,variant:"ghost",href:"/settings/lead",label:"Lead"})}),s.problem!==null&&(0,e.jsx)(M,{children:s.problem}),s.said!==null&&(0,e.jsx)(A,{children:s.said}),(0,e.jsxs)(y,{children:["Your lead's helpers. Each works within rules you write and asks you when they say to. The quickest start is a ",(0,e.jsx)("a",{className:"k-link",href:"/kits",children:"starter kit"}),"."]}),s.mates.length===0?(0,e.jsx)(y,{children:"No subagents yet."}):s.mates.map(a=>(0,e.jsx)("article",{className:"card","data-subagent":a.handle,children:(0,e.jsxs)("div",{className:"flow-row",children:[(0,e.jsx)("h2",{children:(0,e.jsx)("a",{href:`/settings/lead/subagents/${a.id}`,children:a.label})}),(0,e.jsxs)("span",{className:"flow-counts",children:[a.projectName," · ",a.state==="active"?"Working":"Paused"," · ",a.today," today",a.openQuestions>0?` · ${a.openQuestions} question${a.openQuestions===1?"":"s"} for you`:""]})]})},a.id)),s.canCreate&&s.projects.length>0&&(0,e.jsxs)("details",{className:"card",id:"add",open:s.mates.length===0||s.adding||void 0,children:[(0,e.jsx)("summary",{children:"Add subagent"}),(0,e.jsxs)(h,{action:"/settings/lead/subagents/new","data-new-subagent":"",children:[(0,e.jsx)(w,{label:"Start from",children:({id:a})=>(0,e.jsx)(T,{id:a,name:"template",wide:!0,items:[...s.templates.map(c=>[c.id,`${c.label}: ${c.about}`]),["blank","Blank: write its soul file yourself"]]})}),(0,e.jsx)(w,{label:"Name",children:({id:a})=>(0,e.jsx)($,{id:a,name:"name",maxLength:40,placeholder:"keep the template's name"})}),(0,e.jsx)(re,{projects:s.projects,current:s.projects[0]?.path??null,id:"subagent-repo"}),(0,e.jsx)(z,{children:(0,e.jsx)(o,{type:"submit",label:"Add subagent"})})]})]})]})}function bl({view:s}){let{mate:a}=s,c=s.problem?.includes("Codex backup")===!0,r=c&&s.problem?.startsWith("Enter your Toolroll password")===!0,[n,m]=(0,g.useState)(()=>{let l={};for(let t of s.tools.grants)for(let d of t.actions)l[`${t.tool}:${d.name}`]=d.use;return l}),j=l=>l.split(`
|
|
2
|
+
import{p13$a as S,p13$b as D}from"./chunk-core.6128decfe528d89de1445dc1ec36e9f13dabd76eba61d13310fc1302db2252eb.js";import{p3$$ as ge,p3$$a as fe,p3$$b as we,p3$A as ye,p3$Aa as ke,p3$Ab as P,p3$B as $e,p3$Ba as Ne,p3$Bb as W,p3$C as Me,p3$Ca as Se,p3$Cb as ze,p3$D as Ce,p3$Da as Te,p3$Db as Fe,p3$E as Ie,p3$Ea as Ae,p3$Eb as Re,p3$F as K,p3$Fa as Ve,p3$Fb as Pe,p3$G as I,p3$Ga as We,p3$Gb as qe,p3$H as Le,p3$Ha as Ue,p3$Hb as G,p3$I as h,p3$Ia as Oe,p3$Ib as De,p3$J as Be,p3$Ja as Ee,p3$Jb as Ye,p3$K as He,p3$Ka as Ge,p3$Kb as Qe,p3$L as Je,p3$La as _e,p3$Lb as Ze,p3$M as Ke,p3$Ma as Xe,p3$Mb as es,p3$N as ss,p3$Na as as,p3$Nb as ls,p3$O as ts,p3$Oa as ns,p3$Ob as is,p3$P as cs,p3$Pa as rs,p3$Pb as os,p3$Q as ds,p3$Qa as ps,p3$Qb as hs,p3$R as ms,p3$Ra as us,p3$Rb as xs,p3$S as js,p3$Sa as bs,p3$Sb as vs,p3$T as gs,p3$Ta as fs,p3$Tb as ws,p3$U as ys,p3$Ua as ks,p3$Ub as $s,p3$V as Ns,p3$Va as Ms,p3$Vb as R,p3$W as Ss,p3$Wa as zs,p3$Wb as Cs,p3$X as Ts,p3$Xa as Fs,p3$Xb as Is,p3$Y as As,p3$Ya as Rs,p3$Yb as Vs,p3$Z as Ps,p3$Za as Ws,p3$Zb as qs,p3$_ as Ls,p3$_a as Us,p3$_b as Os,p3$a as Ds,p3$aa as Bs,p3$ab as Es,p3$ac as Ys,p3$b as Hs,p3$ba as Gs,p3$bb as X,p3$bc as Qs,p3$c as Js,p3$ca as _s,p3$cb as o,p3$cc as Zs,p3$d as Ks,p3$da as Xs,p3$db as f,p3$dc as ea,p3$e as sa,p3$ea as aa,p3$eb as C,p3$ec as la,p3$f as ta,p3$fa as na,p3$fb as ia,p3$fc as ee,p3$g as ca,p3$ga as ra,p3$gb as oa,p3$gc as da,p3$h as pa,p3$ha as ha,p3$hb as q,p3$hc as ma,p3$i as ua,p3$ia as xa,p3$ib as ja,p3$ic as ba,p3$j as w,p3$ja as va,p3$jb as ga,p3$jc as fa,p3$k as $,p3$ka as wa,p3$kb as Q,p3$kc as ya,p3$l as L,p3$la as ka,p3$lb as T,p3$lc as $a,p3$m as Na,p3$ma as Ma,p3$mb as Sa,p3$mc as za,p3$n as Ca,p3$na as Ta,p3$nb as Fa,p3$nc as Ia,p3$o as Aa,p3$oa as Ra,p3$ob as Va,p3$p as Pa,p3$pa as Wa,p3$pb as z,p3$q as qa,p3$qa as La,p3$qb as se,p3$r as Ua,p3$ra as Oa,p3$rb as M,p3$s as Da,p3$sa as Ba,p3$sb as A,p3$t as Ea,p3$ta as Ya,p3$tb as y,p3$u as Ha,p3$ua as Ga,p3$ub as J,p3$v as Qa,p3$va as Ja,p3$vb as U,p3$w as _a,p3$wa as Za,p3$wb as V,p3$x as Ka,p3$xa as Xa,p3$xb as ae,p3$y as el,p3$ya as sl,p3$yb as O,p3$z as al,p3$za as ll,p3$zb as B}from"./chunk-core.6128decfe528d89de1445dc1ec36e9f13dabd76eba61d13310fc1302db2252eb.js";import{p4$a as il,p4$b as E,p4$c as le,p4$d as cl,p4$e as _}from"./chunk-core.6128decfe528d89de1445dc1ec36e9f13dabd76eba61d13310fc1302db2252eb.js";var g=E(le(),1),ne={betterstack:{title:"Better Stack",source:"Simple Icons",path:"M1.5,10.828l-.716,6.212c-.074,.638 .17,1.271 .651,1.696l1.775,1.565c.608,.536 1.551,.014 1.421-.786l-1.423-8.726c-.161-.988-1.593-.954-1.707,.04zM13.078,18.982l-4.232-12.194c-.47-1.354-2.441-1.296-2.826,.084l-1.288,4.607c-.146,.523-.202,.826 0,1.33h.489l1.777,5.679c.275,.685 .844,1.217 1.554,1.454l2.65,.883c1.162,.387 2.271-.703 1.875-1.843zM23.025,18.016l-7.478-14.022c-.652-1.223-2.412-1.191-3.02,.055l-1.839,3.701c-.222,.456-.119,.618 .066,.883c.148,.212 .492,.229 .632,.011c.138-.214 .457-.194 .567,.035l4.808,10c.362,.814 1.121,1.382 2.004,1.499l2.544,.325c1.369,.18 2.367-1.267 1.716-2.487z"},canva:{title:"Canva",source:"svgl",path:"M12,22c5.523,0 10-4.477 10-10c0-5.523-4.477-10-10-10c-5.523,0-10,4.477-10,10c0,5.523 4.477,10 10,10zM16.551,14.378c0,1.011-1.809,4.124-4.939,4.124c-2.948,0-4.859-2.211-4.859-5.557c0-4.323 2.995-7.447 6.365-7.447c2.039,0 3.255,1.026 3.255,2.423c0,1.44-1.041,2.46-1.929,2.46c-.221,0-.332-.108-.332-.287c0-.399 .643-.998 .643-2.129c0-.953-.582-1.552-1.535-1.552c-2.039,0-4.361,2.409-4.361,6.576c0,2.46 1.221,4.24 3.194,4.24c1.706,0 3.18-1.225 4.033-2.955c.076-.152 .148-.222 .231-.222c.119,0 .234,.103 .234,.326z"},chrome:{title:"Google Chrome",source:"Simple Icons",path:"M12,2c-3.158,0-5.974,1.464-7.807,3.751l3.294,5.707c.274-2.284 2.212-4.003 4.513-4.003h8.909c-1.709-3.348-5.15-5.455-8.909-5.454zM3.609,6.558c-1.053,1.619-1.612,3.51-1.609,5.442c0,5.01 3.683,9.159 8.491,9.887l3.294-5.706c-2.115,.904-4.572,.085-5.721-1.908zM14.728,8.363c1.842,1.378 2.361,3.917 1.208,5.908l.002,.001h-.002l-4.453,7.714c.172,.008 .344,.013 .518,.013c5.523,0 10-4.477 10-10c0-1.283-.242-2.509-.682-3.637zM12,15.637c-2.008,0-3.637-1.628-3.637-3.637c0-2.008 1.628-3.637 3.637-3.637c2.008,0 3.637,1.628 3.637,3.637c0,2.008-1.628,3.637-3.637,3.637z"},claude:{title:"Claude",source:"Simple Icons",path:"M5.926,15.298l3.933-2.207l.066-.192l-.066-.106h-.192l-.658-.041l-2.247-.061l-1.949-.081l-1.888-.101l-.476-.101l-.445-.587l.046-.294l.4-.268l.572,.051l1.265,.086l1.898,.132l1.377,.081l2.04,.213h.324l.046-.132l-.111-.081l-.086-.081l-1.964-1.331l-2.126-1.407l-1.113-.81l-.602-.41l-.304-.385l-.132-.84l.547-.602l.734,.051l.187,.051l.744,.572l1.589,1.23l2.075,1.529l.304,.253l.121-.086l.015-.061l-.137-.228l-1.129-2.04l-1.205-2.075l-.536-.86l-.142-.516c-.051-.213-.086-.39-.086-.607l.623-.845l.344-.111l.83,.111l.349,.304l.516,1.179l.835,1.858l1.296,2.526l.38,.749l.202,.693l.076,.213h.132v-.121l.106-1.422l.197-1.746l.192-2.247l.066-.633l.314-.759l.623-.41l.486,.233l.4,.572l-.056,.37l-.238,1.544l-.466,2.419l-.304,1.62h.177l.202-.202l.82-1.088l1.377-1.721l.607-.683l.709-.754l.456-.359h.86l.633,.941l-.283,.972l-.886,1.124l-.734,.952l-1.053,1.417l-.658,1.134l.061,.091l.157-.015l2.379-.506l1.286-.233l1.534-.263l.693,.324l.076,.329l-.273,.673l-1.64,.405l-1.923,.385l-2.865,.678l-.035,.025l.041,.051l1.291,.121l.552,.03h1.351l2.516,.187l.658,.435l.395,.532l-.066,.405l-1.012,.516l-1.367-.324l-3.189-.759l-1.093-.273h-.152v.091l.911,.891l1.67,1.508l2.09,1.944l.106,.481l-.268,.38l-.283-.041l-1.837-1.382l-.709-.623l-1.604-1.351h-.106v.142l.369,.542l1.954,2.936l.101,.901l-.142,.294l-.506,.177l-.557-.101l-1.144-1.604l-1.179-1.807l-.952-1.62l-.116,.066l-.562,6.048l-.263,.309l-.607,.233l-.506-.385l-.268-.623l.268-1.23l.324-1.604l.263-1.275l.238-1.584l.142-.526l-.01-.035l-.116,.015l-1.194,1.64l-1.817,2.455l-1.437,1.539l-.344,.137l-.597-.309l.056-.552l.334-.491l1.989-2.531l1.2-1.569l.774-.906l-.005-.132h-.046l-5.284,3.432l-.941,.121l-.405-.38l.051-.622l.192-.202l1.589-1.093z"},cloudflare:{title:"Cloudflare",source:"Simple Icons",path:"M16.509,16.845c.148-.507 .091-.971-.155-1.315c-.225-.316-.604-.499-1.061-.52l-8.659-.112c-.054,.001-.104-.026-.133-.071c-.028-.042-.035-.099-.021-.155c.028-.084 .112-.148 .204-.156l8.736-.112c1.035-.049 2.16-.887 2.554-1.914l.499-1.301c.022-.056 .029-.113 .015-.168c-.562-2.546-2.835-4.445-5.55-4.445c-2.504,0-4.628,1.618-5.388,3.861c-.493-.366-1.119-.562-1.794-.499c-1.203,.119-2.166,1.083-2.286,2.286c-.028,.31-.007,.613 .064,.894c-1.963,.056-3.531,1.66-3.531,3.637c0,.175 .014,.352 .035,.527c.014,.083 .084,.148 .169,.148h15.981c.091,0 .176-.064 .203-.155l.12-.427zM19.266,11.281c-.077,0-.161,0-.238,.011c-.057,0-.105,.042-.127,.098l-.338,1.174c-.147,.507-.092,.971 .154,1.316c.226,.316 .606,.498 1.063,.52l1.844,.113c.056,0 .106,.026 .133,.07c.028,.043 .035,.107 .021,.156c-.028,.084-.113,.149-.204,.155l-1.921,.112c-1.041,.049-2.158,.887-2.553,1.914l-.141,.359c-.028,.071 .022,.142 .099,.142h6.598c.077,0 .147-.049 .169-.126c.112-.408 .176-.837 .176-1.28c0-2.602-2.125-4.727-4.734-4.727"},confluence:{title:"Confluence",source:"Simple Icons",path:"M2.611,17.278c-.209,.322-.447,.738-.644,1.05c-.18,.302-.084,.692 .215,.877l4.188,2.576c.147,.091 .324,.119 .492,.077c.168-.041 .312-.148 .4-.297c.168-.28 .383-.644 .618-1.03c1.659-2.739 3.328-2.407 6.334-.967l4.182,1.972c.157,.075 .338,.083 .502,.022c.163-.061 .295-.185 .365-.345l1.994-4.51c.14-.322-.003-.697-.322-.844c-1.399-.658-2.795-1.321-4.188-1.992c-5.666-2.739-10.464-2.558-14.137,3.408zM21.39,6.722c.21-.342 .448-.738 .645-1.054c.176-.301 .08-.688-.216-.872l-4.188-2.577c-.147-.091-.324-.119-.492-.077c-.168,.041-.312,.148-.4,.297c-.164,.283-.38,.644-.619,1.033c-1.659,2.738-3.328,2.404-6.334,.967l-4.166-1.975c-.157-.075-.338-.083-.501-.022c-.163,.061-.295,.185-.365,.344l-1.994,4.51c-.14,.322 .003,.697 .322,.844c.877,.413 2.619,1.238 4.188,1.992c5.65,2.738 10.454,2.555 14.12-3.408z"},discord:{title:"Discord",source:"Simple Icons",path:"M19.939,4.717c-1.485-.682-3.053-1.168-4.663-1.446c-.03-.006-.06,.009-.075,.035c-.201,.358-.424,.825-.581,1.193c-1.761-.264-3.513-.264-5.237,0c-.156-.375-.387-.834-.59-1.193c-.015-.026-.045-.04-.075-.035c-1.61,.278-3.178,.764-4.663,1.446c-.013,.005-.023,.015-.031,.026c-2.97,4.437-3.783,8.765-3.384,13.039c.002,.021 .013,.04 .03,.054c1.959,1.439 3.857,2.313 5.72,2.892c.03,.009 .062-.002 .08-.026c.441-.602 .833-1.236 1.17-1.903c.009-.018 .01-.04 .003-.059c-.008-.019-.023-.034-.042-.042c-.623-.236-1.216-.524-1.787-.852c-.021-.012-.035-.035-.036-.059c-.001-.024 .009-.048 .029-.063c.12-.09 .24-.184 .355-.278c.021-.017 .049-.021 .074-.01c3.749,1.712 7.808,1.712 11.513,0c.025-.012 .054-.008 .075,.009c.115,.095 .235,.189 .356,.279c.02,.015 .031,.038 .029,.063c-.001,.024-.015,.047-.036,.059c-.571,.333-1.169,.618-1.788,.851c-.019,.007-.035,.023-.042,.042c-.007,.019-.006,.041 .003,.06c.344,.666 .737,1.301 1.169,1.903c.018,.025 .051,.036 .08,.027c1.872-.579 3.77-1.453 5.729-2.892c.017-.012 .028-.032 .03-.053c.478-4.941-.8-9.234-3.387-13.039c-.006-.012-.017-.022-.03-.027zM8.201,15.18c-1.129,0-2.059-1.036-2.059-2.309c0-1.273 .912-2.309 2.059-2.309c1.156,0 2.077,1.045 2.059,2.309c0,1.273-.912,2.309-2.059,2.309zM15.813,15.18c-1.129,0-2.059-1.036-2.059-2.309c0-1.273 .912-2.309 2.059-2.309c1.156,0 2.077,1.045 2.059,2.309c0,1.273-.903,2.309-2.059,2.309z"},figma:{title:"Figma",source:"Simple Icons",path:"M15.85,8.983h-4.585v-8.976h4.585c2.475,0 4.488,2.013 4.488,4.488c0,2.475-2.013,4.489-4.488,4.489zM12.735,7.512h3.115c1.664,0 3.017-1.354 3.017-3.017c0-1.663-1.354-3.017-3.017-3.017h-3.115zM12.735,8.983h-4.584c-2.475,0-4.488-2.013-4.488-4.488c0-2.475 2.013-4.489 4.488-4.489h4.585v8.976zM8.151,1.477c-1.664,0-3.017,1.354-3.017,3.017c0,1.663 1.353,3.018 3.017,3.018h3.115v-6.036zM12.735,16.488h-4.584c-2.475,0-4.488-2.013-4.488-4.488c0-2.475 2.013-4.488 4.488-4.488h4.585v8.975zM8.151,8.983c-1.664,0-3.017,1.354-3.017,3.017c0,1.663 1.354,3.017 3.017,3.017h3.115v-6.035zM8.175,23.993c-2.488,0-4.513-2.013-4.513-4.488c0-2.475 2.013-4.488 4.488-4.488h4.585v4.439c0,2.502-2.046,4.537-4.56,4.537zM8.151,16.488c-1.666,.002-3.015,1.352-3.017,3.017c0,1.664 1.364,3.017 3.042,3.017c1.704,0 3.091-1.375 3.091-3.066v-2.968zM15.85,16.488h-.098c-2.475,0-4.488-2.013-4.488-4.488c0-2.475 2.013-4.488 4.488-4.488h.098c2.475,0 4.488,2.013 4.488,4.488c0,2.475-2.013,4.488-4.488,4.488zM15.753,8.983c-1.664,0-3.017,1.354-3.017,3.017c0,1.663 1.354,3.017 3.017,3.017h.098c1.664,0 3.017-1.354 3.017-3.017c0-1.663-1.354-3.017-3.017-3.017z"},github:{title:"GitHub",source:"Simple Icons",path:"M12,2.125c-5.595,0-10.126,4.534-10.126,10.126c0,4.475 2.901,8.27 6.924,9.607c.506,.095 .692-.218 .692-.487c0-.24-.008-.878-.013-1.721c-2.817,.611-3.411-1.359-3.411-1.359c-.461-1.169-1.127-1.481-1.127-1.481c-.917-.628 .071-.615 .071-.615c1.017,.071 1.551,1.043 1.551,1.043c.903,1.548 2.37,1.101 2.949,.842c.091-.655 .352-1.101 .641-1.354c-2.249-.253-4.612-1.124-4.612-5.004c0-1.105 .392-2.008 1.042-2.717c-.114-.256-.456-1.285 .089-2.68c0,0 .848-.272 2.785,1.038c.81-.225 1.671-.337 2.532-.342c.861,.005 1.721,.116 2.532,.342c1.924-1.31 2.772-1.038 2.772-1.038c.544,1.395 .203,2.424 .101,2.68c.646,.709 1.038,1.612 1.038,2.717c0,3.89-2.367,4.747-4.62,4.996c.354,.304 .684,.925 .684,1.873c0,1.355-.013,2.444-.013,2.773c0,.266 .177,.582 .696,.481c4.051-1.328 6.95-5.126 6.95-9.594c0-5.592-4.534-10.126-10.126-10.126"},gmail:{title:"Gmail",source:"Simple Icons",path:"M23.545,5.705v13.382c0,.87-.704,1.574-1.574,1.574h-3.674v-8.921l-6.297,4.724l-6.297-4.724v8.922h-3.674c-.418,0-.818-.166-1.113-.461c-.295-.295-.461-.696-.461-1.114v-13.382c0-1.946 2.221-3.058 3.778-1.89l1.47,1.104l6.297,4.722l6.297-4.724l1.47-1.102c1.556-1.167 3.778-.057 3.778,1.89z"},intercom:{title:"Intercom",source:"Simple Icons",path:"M19.5,2h-15c-1.381,0-2.5,1.119-2.5,2.5v15c0,1.382 1.119,2.5 2.5,2.5h15c1.382,0 2.5-1.118 2.5-2.5v-15c0-1.381-1.118-2.5-2.5-2.5zM14.666,5.666c0-.367 .3-.667 .668-.667c.367,0 .667,.3 .667,.667v8.907c0,.368-.3,.668-.667,.668c-.369,0-.668-.299-.668-.667zM11.333,5.328c0-.367 .298-.666 .667-.666c.369,0 .667,.299 .667,.666v9.668c0,.367-.297,.667-.667,.667c-.369,0-.667-.3-.667-.667zM8,5.666c0-.367 .299-.667 .666-.667c.369,0 .668,.3 .668,.667v8.907c0,.368-.3,.668-.668,.668c-.367,0-.666-.299-.666-.667zM4.666,7c0-.368 .3-.667 .668-.667c.367,0 .666,.298 .666,.667v5.996c0,.368-.299,.667-.666,.667c-.369,0-.668-.3-.668-.667zM19.1,17.168c-.102,.088-2.572,2.161-7.1,2.161c-4.527,0-6.997-2.072-7.101-2.161c-.279-.24-.312-.66-.072-.94c.238-.278 .658-.312 .938-.075c.039,.034 2.244,1.843 6.234,1.843c4.04,0 6.213-1.822 6.233-1.839c.278-.241 .699-.208 .94,.072c.241,.28 .208,.7-.072,.94zM19.334,12.996c0,.368-.3,.667-.667,.667c-.367,0-.667-.3-.667-.667v-5.996c0-.368 .301-.667 .668-.667c.368,0 .668,.298 .668,.667z"},jira:{title:"Jira",source:"Simple Icons",path:"M11.643,11.594h-9.642c.001,1.155 .461,2.262 1.279,3.077c.818,.815 1.927,1.272 3.081,1.269h1.775v1.714c0,2.399 1.945,4.345 4.344,4.346v-9.568c0-.463-.375-.837-.837-.837zM16.412,6.798h-9.632c0,2.4 1.946,4.345 4.346,4.345h1.774v1.715c.002,2.399 1.947,4.344 4.346,4.345v-9.571c0-.461-.373-.834-.834-.834zM21.177,2h-9.632c0,2.4 1.946,4.346 4.346,4.346h1.774v1.714c.002,2.394 1.94,4.336 4.334,4.343v-9.565c.002-.457-.365-.831-.822-.837z"},linear:{title:"Linear",source:"Simple Icons",path:"M4.405,5.483c1.899-2.213 4.67-3.486 7.587-3.483c5.528,0 10.008,4.48 10.008,10.008c0,3.033-1.35,5.753-3.483,7.588l-14.111-14.112zM3.514,6.688l13.797,13.797c-.437,.275-.896,.517-1.375,.722l-13.143-13.142c.206-.479 .448-.938 .722-1.375zM2.268,9.636l12.096,12.096c-.592,.143-1.202,.235-1.829,.268l-10.535-10.535c.033-.617 .123-1.229 .268-1.829zM2.127,13.688l8.186,8.187c-4.189-.716-7.471-3.997-8.187-8.187z"},notion:{title:"Notion",source:"Simple Icons",path:"M5.584,5.37c.635,.516 .873,.476 2.066,.397l11.244-.675c.238,0 .04-.238-.039-.277l-1.868-1.35c-.357-.277-.835-.596-1.748-.516l-10.887,.795c-.396,.039-.476,.238-.318,.397zM6.258,7.991v11.83c0,.636 .317,.874 1.033,.834l12.357-.715c.716-.039 .796-.476 .796-.993v-11.751c0-.516-.198-.794-.636-.755l-12.913,.755c-.476,.04-.636,.278-.636,.794zM18.457,8.624c.079,.357 0,.715-.357,.756l-.596,.119v8.733c-.517,.278-.994,.437-1.391,.437c-.636,0-.796-.199-1.272-.794l-3.894-6.114v5.915l1.232,.279c0,0 0,.715-.994,.715l-2.741,.158c-.079-.158 0-.556 .278-.635l.715-.198v-7.822l-.991-.08c-.08-.357 .119-.873 .675-.913l2.941-.198l4.053,6.193v-5.479l-1.034-.118c-.079-.437 .238-.755 .636-.794zM3.437,2.67l11.325-.834c1.39-.119 1.748-.04 2.622,.596l3.615,2.541c.596,.436 .795,.556 .795,1.032v13.935c0,.873-.317,1.39-1.429,1.469l-13.152,.795c-.834,.04-1.232-.079-1.669-.636l-2.662-3.454c-.476-.636-.675-1.111-.675-1.668v-12.387c0-.714 .318-1.31 1.231-1.389z"},openai:{title:"OpenAI",source:"svgl",evenodd:!0,path:"M9.367,2.175c1.818-.487 3.67,.075 4.913,1.315c1.697-.453 3.582-.014 4.912,1.317c1.331,1.331 1.77,3.216 1.317,4.913v0c1.241,1.243 1.803,3.095 1.316,4.913c-.487,1.818-1.9,3.141-3.596,3.597c-.456,1.696-1.779,3.109-3.597,3.596c-1.818,.487-3.67-.075-4.913-1.315c-1.697,.453-3.582,.014-4.913-1.317c-1.331-1.331-1.77-3.216-1.317-4.913c-1.24-1.243-1.803-3.095-1.315-4.913c.487-1.818 1.9-3.141 3.596-3.597c.456-1.696 1.779-3.109 3.597-3.596zM15.436,17.077c0,.206-.11,.397-.288,.5l-4.236,2.445c.937,.723 2.189,1.017 3.421,.687c1.737-.466 2.89-2.025 2.914-3.739v-4.36c0-.132-.071-.255-.185-.32l-1.626-.939zM9.321,17.515c-.178,.103-.398,.103-.577,0l-4.235-2.445c-.158,1.174 .214,2.405 1.116,3.307h0c1.272,1.272 3.199,1.49 4.695,.654l3.776-2.18c.114-.066 .185-.189 .185-.321v-1.877zM15.152,7.76c-.114-.066-.256-.065-.37,0l-1.626,.939l4.959,2.863c.179,.103 .289,.294 .289,.5v4.891c1.095-.45 1.975-1.388 2.305-2.62c.465-1.737-.309-3.515-1.781-4.393zM5.596,7.047c-1.095,.45-1.975,1.388-2.306,2.62c-.465,1.737 .309,3.515 1.781,4.393l3.776,2.18c.114,.066 .256,.065 .37,0l1.626-.939l-4.959-2.863c-.179-.103-.288-.294-.288-.5zM9.72,10.684v2.633l2.28,1.316l2.28-1.316v-2.633l-2.28-1.317zM13.088,3.978c-.937-.723-2.189-1.017-3.421-.687c-1.737,.466-2.89,2.025-2.914,3.739v4.36c0,.132 .071,.255 .185,.32l1.626,.939v-5.726c0-.206 .11-.397 .289-.5zM18.376,5.625c-1.272-1.272-3.199-1.49-4.695-.654l-3.776,2.18c-.114,.066-.185,.189-.185,.321v1.877l4.959-2.863c.178-.103 .398-.103 .577,0l4.235,2.445c.158-1.174-.214-2.405-1.116-3.306z"},paypal:{title:"PayPal",source:"Simple Icons",path:"M15.265,5.352h-6.031l-2.077,13.208h-4.366l2.752-17.418h7.234c3.397,0 5.768,2.076 5.857,4.988c-.586-.432-1.905-.778-3.368-.778M21.21,10.37c0,3.085-2.723,6.201-6.296,6.201h-2.256l-1.024,6.287h-4.393l1.669-10.44h3.25c3.807,0 6.647-3.288 6.472-6.288c1.589,.815 2.585,2.454 2.577,4.24M9.877,6.16h5.798c.821,0 1.757,.201 2.138,.49c-.176,2.48-2.402,4.961-5.828,4.961h-2.958z"},playwright:{title:"Playwright",source:"svgl",path:"M8.063,13.122c-.862,.245-1.428,.674-1.801,1.103c.357-.312 .835-.599 1.48-.782c.66-.187 1.223-.186 1.688-.096v-.364c-.397-.036-.852-.007-1.367,.139zM6.223,10.065l-3.203,.844c0,0 .058,.082 .166,.192l2.716-.716c0,0-.038,.496-.373,.94c.632-.478 .693-1.26 .693-1.26zM8.904,17.593c-4.508,1.214-6.892-4.01-7.614-6.721c-.334-1.252-.479-2.199-.518-2.811c-.004-.064-.002-.117 .002-.166c-.234,.014-.346,.136-.323,.487c.039,.611 .184,1.559 .518,2.811c.722,2.711 3.107,7.935 7.614,6.721c.981-.264 1.718-.746 2.272-1.36c-.51,.461-1.148,.823-1.951,1.04zM9.751,6.868v.321h1.768c-.036-.114-.073-.216-.109-.321zM11.914,9.51c.795,.226 1.216,.783 1.438,1.277l.887,.252c0,0-.121-1.727-1.683-2.17c-1.461-.415-2.36,.812-2.469,.971c.425-.303 1.046-.551 1.828-.329zM18.972,10.795c-1.462-.417-2.361,.812-2.469,.969c.425-.302 1.046-.55 1.827-.327c.794,.226 1.214,.783 1.437,1.277l.888,.253c0,0-.123-1.727-1.683-2.171zM18.091,15.347l-7.375-2.062c0,0 .08,.405 .386,.929l6.21,1.736c.511-.296 .779-.603 .779-.603zM12.978,19.785c-5.84-1.566-5.134-9.006-4.189-12.532c.389-1.453 .789-2.533 1.121-3.257c-.198-.041-.362,.064-.524,.393c-.352,.714-.803,1.877-1.238,3.506c-.945,3.526-1.651,10.966 4.189,12.532c2.752,.737 4.897-.383 6.495-2.143c-1.517,1.374-3.454,2.145-5.854,1.502zM9.751,15.849v-1.501l-4.172,1.183c0,0 .308-1.791 2.484-2.408c.66-.187 1.223-.186 1.688-.096v-6.159h2.089c-.227-.703-.447-1.244-.632-1.62c-.306-.622-.619-.21-1.33,.385c-.501,.419-1.767,1.312-3.673,1.825c-1.906,.514-3.446,.378-4.089,.266c-.911-.157-1.388-.357-1.343,.336c.039,.611 .184,1.559 .518,2.811c.722,2.711 3.107,7.935 7.614,6.721c1.177-.317 2.009-.944 2.585-1.744h-1.738zM3.019,10.909l3.203-.844c0,0-.093,1.232-1.294,1.549c-1.201,.316-1.909-.705-1.909-.705zM21.807,6.939c-.833,.146-2.83,.328-5.299-.334c-2.469-.661-4.108-1.818-4.757-2.362c-.92-.771-1.325-1.306-1.723-.496c-.352,.715-.803,1.878-1.238,3.506c-.945,3.526-1.651,10.966 4.189,12.532c5.838,1.564 8.946-5.233 9.891-8.759c.436-1.628 .627-2.86 .68-3.655c.06-.9-.558-.639-1.741-.432zM10.075,9.856c0,0 .92-1.431 2.481-.988c1.562,.444 1.683,2.17 1.683,2.17zM13.885,16.279c-2.745-.804-3.169-2.993-3.169-2.993l7.375,2.062c0,0-1.489,1.726-4.206,.931zM16.492,11.78c0,0 .919-1.43 2.479-.985c1.56,.444 1.683,2.171 1.683,2.171zM8.293,14.761l-2.714,.769c0,0 .295-1.679 2.294-2.345l-1.537-5.767l-.133,.04c-1.906,.514-3.446,.378-4.089,.266c-.911-.157-1.388-.357-1.343,.336c.039,.611 .184,1.559 .518,2.811c.722,2.711 3.107,7.935 7.614,6.721l.133-.042zM3.019,10.909l3.203-.844c0,0-.093,1.232-1.294,1.549c-1.201,.316-1.909-.705-1.909-.705zM14.009,16.309l-.124-.03c-2.745-.804-3.169-2.993-3.169-2.993l3.803,1.063l2.013-7.737l-.024-.006c-2.469-.661-4.108-1.818-4.757-2.362c-.92-.771-1.325-1.306-1.723-.496c-.352,.715-.802,1.878-1.238,3.506c-.945,3.526-1.651,10.966 4.189,12.532l.12,.027zM10.075,9.856c0,0 .92-1.431 2.481-.988c1.562,.444 1.683,2.17 1.683,2.17zM8.432,14.722l-.728,.207c.172,.969 .475,1.9 .951,2.721c.083-.018 .165-.034 .249-.057c.221-.06 .426-.133 .623-.214c-.531-.789-.883-1.697-1.095-2.657zM8.147,7.895c-.374,1.396-.709,3.405-.616,5.42c.165-.072 .339-.138 .532-.193l.135-.03c-.164-2.153 .191-4.346 .591-5.839c.101-.378 .203-.729 .304-1.056c-.163,.104-.339,.21-.539,.32c-.135,.417-.271,.872-.407,1.378z"},posthog:{title:"PostHog",source:"Simple Icons",path:"M9.854,14.5l-4.854-4.853l-4.146-4.147c-.143-.143-.358-.186-.545-.109c-.187,.078-.309,.26-.309,.463v2.586c0,.132 .053,.259 .146,.353l4.854,4.854l.147,.146l4.707,4.707l.146,.147v-.049c.065,.03 .134,.049 .207,.049h2.586c.202,0 .385-.122 .462-.309c.077-.187 .034-.402-.109-.545zM9.854,9.5l-4-4c-.106-.109-.258-.163-.409-.144c-.143,.017-.272,.093-.356,.21c-.059,.084-.09,.185-.089,.288v2.586c0,.133 .053,.259 .147,.353l9,9c.143,.143 .358,.185 .545,.108c.187-.077 .308-.26 .308-.462v-2.585c0-.133-.052-.26-.146-.354zM10.854,5.5c-.143-.143-.358-.186-.545-.109c-.187,.078-.309,.26-.309,.463v2.586c0,.133 .053,.259 .147,.353l4,4c.143,.143 .358,.185 .545,.108c.187-.077 .308-.26 .308-.462v-2.585c0-.133-.052-.26-.146-.354zM23.501,17.015c-.845-.11-1.63-.497-2.232-1.1l-4.708-4.707c-.143-.143-.358-.186-.545-.109c-.187,.078-.309,.26-.309,.463v6.585c0,.276 .224,.5 .5,.5h7.293c.276,0 .5-.224 .5-.5v-.6c0-.276-.225-.497-.499-.532zM18.107,17.047c-.442,0-.8-.358-.8-.8c0-.442 .358-.8 .8-.8c.442,0 .8,.358 .8,.8c0,.442-.358,.8-.8,.8zM.854,15.5c-.143-.143-.358-.186-.545-.109c-.187,.078-.309,.26-.309,.463v2.293c0,.276 .224,.5 .5,.5h2.293c.222,0 .39-.135 .462-.309c.079-.187 .036-.403-.109-.545l-2.292-2.292zM5,14.647l-4.146-4.147c-.143-.143-.358-.186-.545-.109c-.187,.077-.309,.26-.309,.462v2.586c0,.132 .053,.259 .146,.353l4.708,4.708l.146,.147h2.793c.202,0 .385-.122 .462-.309c.077-.187 .034-.402-.109-.545z"},sentry:{title:"Sentry",source:"Simple Icons",path:"M13.696,3.574c-.775-1.285-2.637-1.285-3.411,0l-2.806,4.806c4.362,2.178 7.243,6.505 7.57,11.369h-1.971c-.326-4.169-2.834-7.855-6.593-9.688l-2.597,4.491c2.11,.947 3.594,2.902 3.936,5.19h-4.525c-.109-.008-.207-.07-.261-.165c-.053-.096-.055-.212-.004-.309l1.254-2.132c-.425-.354-.91-.629-1.432-.81l-1.242,2.132c-.261,.448-.332,.981-.196,1.481c.135,.5 .466,.925 .917,1.18c.294,.166 .626,.254 .964,.256h6.197c.234-2.888-1.06-5.689-3.412-7.382l.985-1.706c2.969,2.039 4.639,5.495 4.393,9.088h5.249c.249-5.444-2.417-10.609-6.998-13.56l1.991-3.412c.092-.155 .292-.206 .447-.115c.226,.124 8.653,14.828 8.811,14.998c.057,.101 .055,.226-.005,.325c-.06,.1-.169,.159-.285,.157h-2.03c.026,.543 .026,1.085 0,1.625h2.038c.702,.004 1.352-.368 1.704-.975c.352-.607 .353-1.355 .002-1.963z"},shadcn:{title:"shadcn/ui",source:"Simple Icons",path:"M20.516,11.82l-8.696,8.696c-.339,.339-.339,.89 0,1.23c.339,.339 .89,.339 1.23,0l8.696-8.696c.339-.34 .339-.891 0-1.23c-.34-.339-.891-.339-1.23,0zM18.777,2.254l-16.522,16.522c-.339,.339-.339,.89 0,1.23c.34,.339 .891,.339 1.23,0l16.522-16.522c.339-.339 .339-.89 0-1.23c-.34-.339-.891-.339-1.23,0z"},slack:{title:"Slack",source:"svgl",path:"M9.336,1.99c-1.104,.001-1.998,.897-1.998,2.002c-.001,1.104 .894,2.001 1.998,2.002h1.998v-2.001c.001-1.104-.894-2.001-1.999-2.002c.001,0 .001,0 0,0M9.336,7.329h-5.327c-1.104,.001-1.999,.897-1.998,2.002c-.002,1.104 .893,2.001 1.998,2.002h5.328c1.104-.001 1.999-.897 1.998-2.002c.001-1.105-.894-2.002-1.998-2.002zM21.99,9.33c.001-1.104-.894-2.001-1.998-2.002c-1.104,.001-1.999,.897-1.998,2.002v2.002h1.998c1.104-.001 1.999-.897 1.998-2.002zM16.662,9.33v-5.339c.001-1.104-.893-2-1.998-2.002c-1.104,.001-1.999,.897-1.998,2.002v5.339c-.002,1.104 .893,2.001 1.998,2.002c1.104-.001 1.999-.897 1.998-2.002zM14.664,22.01c1.104-.001 1.999-.897 1.998-2.002c.001-1.104-.894-2.001-1.998-2.002h-1.998v2.002c-.001,1.104 .894,2 1.998,2.002zM14.664,16.671h5.328c1.104-.001 1.999-.897 1.998-2.002c.002-1.104-.893-2.001-1.998-2.002h-5.328c-1.104,.001-1.999,.897-1.998,2.002c-.001,1.105 .893,2.002 1.998,2.002zM2.01,14.669c-.001,1.104 .894,2.001 1.998,2.002c1.104-.001 1.999-.897 1.998-2.002v-2.002h-1.998c-1.104,.001-1.999,.897-1.998,2.002zM7.338,14.669v5.339c-.002,1.104 .893,2.001 1.998,2.002c1.104-.001 1.999-.897 1.998-2.002v-5.338c.002-1.104-.893-2.001-1.998-2.002c-1.105,0-1.999,.896-1.998,2.001c0,0 0,.001 0,0"},square:{title:"Square",source:"Simple Icons",path:"M5.342,2c-1.846,0-3.342,1.496-3.342,3.342v13.317c0,1.842 1.5,3.333 3.342,3.342h13.317c1.842,0 3.342-1.5 3.342-3.342v-13.325c-.005-1.842-1.499-3.333-3.342-3.333h-13.325zM6.692,5.633h10.617c.583,0 1.05,.475 1.05,1.058v10.617c0,.583-.467,1.058-1.05,1.058h-10.617c-.583,0-1.05-.475-1.05-1.058v-10.617c0-.581 .469-1.054 1.05-1.058zM9.883,9.258c-.336,0-.608,.272-.608,.608v4.242c0,.333 .267,.6 .6,.6h4.25c.333,0 .604-.267 .608-.6v-4.242c0-.336-.272-.608-.608-.608h-4.25z"},stripe:{title:"Stripe",source:"Simple Icons",path:"M13.948,9.189c-2.142-.795-3.31-1.406-3.31-2.376c0-.82 .674-1.287 1.875-1.287c2.196,0 4.453,.846 6.007,1.609l.878-5.419c-1.232-.59-3.752-1.551-7.235-1.551c-2.464,0-4.513,.645-5.978,1.846c-1.523,1.258-2.315,3.077-2.315,5.273c0,3.984 2.433,5.681 6.387,7.12c2.55,.907 3.398,1.552 3.398,2.548c0,.967-.828,1.524-2.322,1.524c-1.849,0-4.897-.908-6.894-2.08l-.888,5.479c1.717,.966 4.883,1.962 8.167,1.962c2.605,0 4.777-.615 6.241-1.788c1.641-1.287 2.49-3.192 2.49-5.653c0-4.071-2.489-5.771-6.504-7.205z"},supabase:{title:"Supabase",source:"Simple Icons",path:"M11.916,2.745c-.013-.832-1.064-1.19-1.582-.538l-7.818,9.835c-.923,1.162-.096,2.874 1.389,2.874h8.086l.095,6.339c.012,.831 1.063,1.189 1.581,.537l7.818-9.836c.923-1.161 .095-2.872-1.389-2.872h-8.139z"},teams:{title:"Microsoft Teams",source:"svgl",path:"M12,10.378h6.489c1.792,0 3.244,1.453 3.244,3.244v5.407c0,1.792-1.453,3.244-3.244,3.244c-1.792,0-3.244-1.453-3.244-3.244v-5.407c0-1.792-1.453-3.244-3.244-3.244zM4.43,12.541c0-1.792 1.453-3.244 3.244-3.244h4.326c1.792,0 3.244,1.453 3.244,3.244v6.489c0,1.792 1.453,3.244 3.244,3.244h-8.652c-2.986,0-5.407-2.421-5.407-5.407zM17.948,9.296c1.493,0 2.704-1.21 2.704-2.704c0-1.493-1.21-2.704-2.704-2.704c-1.493,0-2.704,1.21-2.704,2.704c0,1.493 1.21,2.704 2.704,2.704zM9.837,8.215c1.792,0 3.244-1.453 3.244-3.244c0-1.792-1.453-3.244-3.244-3.244c-1.792,0-3.244,1.453-3.244,3.244c0,1.792 1.453,3.244 3.244,3.244zM4.024,20.652c-.971,0-1.757-.787-1.757-1.757v-5.137c0-.971 .787-1.757 1.757-1.757h5.137c.971,0 1.757,.787 1.757,1.757v5.137c0,.971-.787,1.757-1.757,1.757zM8.474,14.761v-.906h-3.764v.906h1.323v4.037h1.117v-4.037h1.324zM8.474,14.761v-.906h-3.764v.906h1.323v4.037h1.117v-4.037h1.324z"},telegram:{title:"Telegram",source:"Simple Icons",path:"M11.953,2c-5.505,.026-9.953,4.495-9.953,10c0,5.523 4.477,10 10,10c5.523,0 10-4.477 10-10c0-5.523-4.477-10-10-10c-.016,0-.031,0-.047,0zM16.088,8.02c.083-.002 .268,.019 .388,.117c.08,.069 .131,.166 .143,.271c.013,.078 .03,.255 .017,.393c-.15,1.582-.802,5.418-1.133,7.189c-.14,.75-.416,1.001-.683,1.025c-.58,.054-1.021-.383-1.583-.752c-.88-.577-1.377-.937-2.232-1.5c-.987-.65-.347-1.008 .215-1.592c.148-.153 2.706-2.481 2.756-2.692c.006-.027 .012-.125-.047-.177c-.058-.052-.145-.034-.207-.02c-.088,.02-1.494,.95-4.217,2.788c-.4,.275-.761,.408-1.085,.4c-.357-.007-1.043-.201-1.554-.367c-.627-.204-1.124-.312-1.081-.657c.023-.18 .271-.364 .744-.552c2.915-1.27 4.858-2.107 5.832-2.512c2.777-1.155 3.354-1.356 3.73-1.362z"},vercel:{title:"Vercel",source:"Simple Icons",path:"M12,2.694l10.746,18.612h-21.492z"},webflow:{title:"Webflow",source:"Simple Icons",path:"M24,4.515l-7.658,14.97h-7.193l3.205-6.204h-.144c-2.644,3.432-6.589,5.692-12.21,6.204v-6.118c0,0 3.596-.213 5.71-2.435h-5.71v-6.417h6.417v5.278l.144-.001l2.622-5.277h4.854v5.244h.144l2.72-5.244z"},wix:{title:"Wix",source:"Simple Icons",path:"M0,7.355l2.113,9.292h.801c.726,0 1.354-.508 1.506-1.218l1.351-6.34c.016-.079 .086-.137 .167-.137c.08,0 .15,.058 .167,.137l1.352,6.34c.152,.71 .78,1.218 1.506,1.218h.805l2.113-9.292h-.565c-.62,0-1.159,.43-1.296,1.035l-1.26,5.545l-1.106-5.176c-.102-.473-.395-.883-.81-1.134c-.414-.251-.914-.319-1.38-.19c-.639,.176-1.113,.716-1.251,1.365l-1.094,5.127l-1.26-5.537c-.138-.605-.675-1.035-1.296-1.035zM13.992,7.355c-.525,0-.95,.425-.951,.95v8.342h.635c.525-.001 .95-.425 .951-.95v-8.343h-.635zM15.77,7.355l3.158,4.66l-3.14,4.632h1.325c.368,0 .712-.181 .918-.486l1.756-2.59c.022-.032 .059-.051 .099-.051c.039,0 .076,.019 .099,.051l1.754,2.59c.206,.305 .55,.486 .918,.486h1.326l-3.14-4.632l3.158-4.66h-1.326c-.368,0-.712,.181-.918,.486l-1.772,2.617c-.022,.032-.059,.051-.098,.051c-.039,0-.076-.019-.098-.051l-1.773-2.617c-.206-.304-.55-.486-.918-.486z"},zapier:{title:"Zapier",source:"Simple Icons",path:"M14.5,12.003c0,.744-.137,1.455-.384,2.113c-.656,.248-1.369,.384-2.112,.384h-.007c-.744,0-1.454-.137-2.112-.384c-.247-.657-.384-1.369-.384-2.112v-.007c0-.744 .137-1.454 .384-2.112c.658-.247 1.368-.384 2.112-.384h.008c.744,0 1.457,.137 2.113,.385c.248,.657 .384,1.368 .384,2.113zM21.863,10.333h-5.837l4.123-4.127c-.325-.457-.683-.883-1.079-1.277c-.394-.395-.821-.756-1.275-1.08l-4.128,4.124v-5.836c-.541-.087-1.094-.137-1.662-.137h-.008c-.567,0-1.122,.051-1.662,.138v5.838l-4.125-4.124c-.457,.322-.883,.684-1.278,1.078c-.395,.395-.757,.823-1.08,1.278l4.124,4.127h-5.836c0,0-.137,1.097-.137,1.663v.008c0,.567 .051,1.123 .138,1.663h5.838l-4.124,4.127c.648,.913 1.444,1.709 2.356,2.358l4.127-4.125v5.837c.54,.088 1.094,.138 1.659,.138h.014c.566,0 1.12-.05 1.659-.137v-5.837l4.127,4.125c.457-.312 .883-.677 1.274-1.075h.004c.394-.387 .755-.813 1.08-1.276l-4.125-4.124h5.837c.088-.537 .138-1.087 .138-1.65v-.026c0-.565-.05-1.119-.137-1.658"}},te=E(_(),1);function de({id:s}){let a=ne[s];return(0,te.jsx)("svg",{viewBox:"0 0 24 24",focusable:"false","aria-hidden":"true",children:(0,te.jsx)("path",{fill:"currentColor",fillRule:a.evenodd?"evenodd":void 0,d:a.path})})}var e=E(_(),1),pe={atlassian:"jira","chrome-devtools":"chrome",codex:"openai","microsoft-teams":"teams","better-stack":"betterstack"};function ie({name:s,label:a,connected:c}){let r=s.toLowerCase().replace(/^agent:/,"").replace(/^mcp:.*:/,""),n=Object.hasOwn(ne,r)?r:pe[r]??null,m=(a.trim().match(/[\p{L}\p{N}]/u)?.[0]??"?").toUpperCase();return(0,e.jsx)("span",{className:"brand-mark","data-connected":String(c),...n===null?{"data-letter":""}:{},"aria-hidden":"true",children:n===null?m:(0,e.jsx)(de,{id:n})})}var Z=[["all","All"],["track","Watch & triage"],["fix","Keep things working"],["report","Research & reports"],["kits","With an agent"],["recipes","One-time work"],["starters","Starter flows"]],ce=[["check","Passing tests or commands"],["changed-path","Changed files"],["screenshot","Screenshot"],["manual-review","Reviewer assessment"]],he=[["free","Do it"],["limit","Do it, up to a limit"],["ask","Ask first"],["never","Never"]],me=[["npm outdated","npm (Node)"],["pip list --outdated","pip (Python)"],["cargo outdated","Cargo (Rust)"],["bundle outdated","Bundler (Ruby)"],["go list -u -m all","Go modules"]];function re({projects:s,current:a,id:c}){return s.length<=1?(0,e.jsx)("input",{type:"hidden",name:"repo",value:s[0]?.path??a??""}):(0,e.jsx)(w,{label:"Project",children:({id:r})=>(0,e.jsx)(T,{id:c||r,name:"repo",defaultValue:a??s[0].path,wide:!0,items:s.map(n=>[n.path,n.name])})})}function pl({view:s}){let[a,c]=(0,g.useState)(null),[r,n]=(0,g.useState)(null),[m,j]=(0,g.useState)("No file chosen"),[l,t]=(0,g.useState)(""),[d,b]=(0,g.useState)(""),[v,N]=(0,g.useState)(""),Y=(0,g.useRef)(null),p=s.canCreate&&s.projects.length>0,x=i=>i===null?"/flows":`/flows?project=${encodeURIComponent(i)}`,k=i=>i.tone==="running"?(0,e.jsx)(C,{word:i.label,tone:"live"}):i.tone==="failed"?(0,e.jsx)(C,{word:i.label,tone:"failed"}):i.tone==="finished"?(0,e.jsx)(C,{word:i.label,tone:"done"}):i.tone==="ask"?(0,e.jsx)(C,{word:i.label,tone:"ask"}):(0,e.jsx)(C,{word:i.label,dot:i.dot});return(0,e.jsxs)("div",{className:"fl-page","data-kit-page":"",children:[(0,e.jsx)(B,{title:"Flows",right:(0,e.jsxs)(e.Fragment,{children:[s.projects.length>1&&(0,e.jsx)(Q,{label:"Project",current:s.scope??"all",items:[{key:"all",label:"All",href:"/flows"},...s.projects.map(i=>({key:i.path,label:i.name,href:x(i.path)}))]}),(0,e.jsx)(o,{variant:"ghost",sm:!0,iconOnly:"more",label:"More",onClick:i=>c(i.currentTarget)}),p&&(0,e.jsx)(f,{variant:"primary",sm:!0,lead:"plus",label:"New flow",href:"/flows/new"})]})}),(0,e.jsxs)("div",{className:"fl-pbar k-phone-only",children:[s.projects.length>1?(0,e.jsx)("form",{method:"get",action:"/flows",children:(0,e.jsx)(T,{name:"project","aria-label":"Project",value:s.scope??"",wide:!0,items:[["","All projects"],...s.projects.map(i=>[i.path,i.name])],onChange:i=>i.currentTarget.form?.requestSubmit()})}):(0,e.jsx)("span",{className:"k-grow"}),(0,e.jsx)(o,{variant:"outline",iconOnly:"more",label:"More",onClick:i=>c(i.currentTarget)})]}),s.problem!==null&&(0,e.jsx)("div",{className:"fl-say",children:(0,e.jsx)(M,{children:s.problem})}),s.totalFlows===0?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(J,{title:"No flows yet.",text:"A flow repeats work for you: run your tests every night, turn labelled issues into pull requests, draft replies to support mail.",action:p?(0,e.jsxs)(z,{children:[(0,e.jsx)(f,{sm:!0,href:"/flows/new",label:"Browse templates"}),(0,e.jsx)(o,{variant:"ghost",sm:!0,label:"Import a flow file",onClick:i=>n(i.currentTarget)})]}):void 0}),p&&(0,e.jsx)("div",{className:"fl-try",children:(0,e.jsxs)(h,{action:"/flows/example",children:[(0,e.jsx)("span",{className:"k-note",children:"Or see one work: Claude drafts a reply to a sample customer question for you to approve."}),s.projects.length===1?(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.projects[0].path}):(0,e.jsx)(T,{name:"repo","aria-label":"Project",sm:!0,items:s.projects.map(i=>[i.path,i.name])}),(0,e.jsx)(o,{sm:!0,type:"submit",label:"Try an example"})]})})]}):s.groups.every(i=>i.rows.length===0)?(0,e.jsx)(J,{title:`No flows in ${s.projects.find(i=>i.path===s.scope)?.name??"this project"}.`,action:(0,e.jsx)(f,{variant:"ghost",sm:!0,href:"/flows",label:"Show all projects"})}):(0,e.jsxs)("div",{className:"fl-rows","aria-label":"Flows",children:[s.groups.filter(i=>i.rows.length>0).map(i=>(0,e.jsxs)("div",{children:[(0,e.jsx)(V,{label:i.label,count:(0,e.jsx)(q,{n:i.rows.length})}),i.rows.map(u=>(0,e.jsx)("div",{"data-flow":u.id,children:(0,e.jsx)(ae,{href:u.href,chip:k(u.chip),title:u.name,desc:u.desc,wait:u.wait,meta:(0,e.jsxs)(e.Fragment,{children:[u.projectName!==null&&(0,e.jsx)("span",{children:u.projectName}),u.nextWords!==null&&(0,e.jsxs)("span",{className:"k-num",children:["Next ",u.nextWords]})]}),action:u.action!==null?(0,e.jsx)(f,{sm:!0,href:u.action.href,label:u.action.label}):void 0})},u.id))]},i.key)),p&&(0,e.jsx)("p",{className:"k-foot",children:(0,e.jsx)(o,{variant:"ghost",sm:!0,label:"Import a flow file",onClick:i=>n(i.currentTarget)})})]}),a&&(0,e.jsxs)(G,{kind:"menu",title:"More",trigger:a,onClose:()=>c(null),children:[p&&(0,e.jsx)("button",{type:"button",onClick:()=>{let i=a;c(null),n(i)},children:"Import a flow file…"}),(0,e.jsx)("a",{href:"/flows/new?group=kits",children:"Starter kits"}),(0,e.jsx)("a",{href:"/settings/lead/subagents",children:"Subagents"})]}),p&&r&&(0,e.jsx)(G,{kind:"drawer",title:"Import a flow file",trigger:r,onClose:()=>n(null),children:(0,e.jsxs)(h,{ref:Y,action:"/flows/import",className:"fl-imp","data-flow-import":"",onSubmit:i=>{l.trim()===""&&d.trim()===""&&(i.preventDefault(),N("Choose a flow file or give its address."))},children:[(0,e.jsx)(y,{children:"A flow file from another Toolroll, a teammate or a gist. Nothing runs until you import it, and any script it brings waits for your approval."}),(0,e.jsx)(re,{projects:s.projects,current:s.scope,id:"fl-imp-project"}),(0,e.jsxs)("div",{className:"k-field",children:[(0,e.jsx)("span",{className:"k-label",children:"File"}),(0,e.jsxs)("div",{className:"fl-file",children:[(0,e.jsxs)("label",{className:"k-btn k-btn-outline k-btn-sm",children:[(0,e.jsx)("input",{type:"file",accept:".json,application/json","data-flow-file":"",onChange:i=>{let u=i.currentTarget.files?.[0];if(t(""),N(""),!u){j("No file chosen");return}if(u.size>s.maxFileBytes){N(`That file is too big: a flow file is at most ${s.maxFileBytes/1024} KB.`),i.currentTarget.value="",j("No file chosen");return}j(u.name),u.text().then(F=>t(F))}}),(0,e.jsx)("span",{className:"k-face",children:"Choose a file"})]}),(0,e.jsx)("span",{className:"k-note","data-flow-file-name":"",children:m})]})]}),(0,e.jsx)("textarea",{name:"document",hidden:!0,readOnly:!0,value:l,"data-flow-document":""}),(0,e.jsx)(w,{label:"Or its address",children:({id:i})=>(0,e.jsx)($,{id:i,name:"url",type:"url",inputMode:"url",placeholder:"https://gist.github.com/…",value:d,onChange:u=>b(u.target.value)})}),v!==""&&(0,e.jsx)(M,{children:v}),(0,e.jsx)(z,{children:(0,e.jsx)(o,{type:"submit",label:"Preview import"})})]})}),p&&(0,e.jsx)(R,{children:(0,e.jsx)(f,{variant:"primary",lead:"plus",label:"New flow",href:"/flows/new"})})]})}function hl({view:s}){return(0,e.jsxs)("div",{className:"fl-page","data-kit-page":"",children:[(0,e.jsx)(O,{title:`Import ${s.fileName}`,back:"/flows"}),(0,e.jsxs)(W,{children:[(0,e.jsx)(P,{title:`Import ${s.fileName}`,back:["/flows","Flows"],meta:`Into ${s.projectName}. Nothing is made until you import it.`,same:!0}),s.problem!==null&&(0,e.jsx)(M,{children:s.problem}),s.plan!==null&&(0,e.jsxs)(e.Fragment,{children:[s.plan.about!==null&&(0,e.jsx)(y,{children:s.plan.about}),(0,e.jsxs)("section",{className:"k-sec",children:[(0,e.jsx)("h3",{children:"Steps"}),(0,e.jsx)(A,{children:"Its instructions come from the file, not from you: read what each step is asked before you import."}),s.plan.steps.length>0&&(0,e.jsx)("ul",{className:"fl-terms",children:s.plan.steps.map((a,c)=>(0,e.jsx)("li",{children:a},c))})]}),s.plan.triggers.length>0&&(0,e.jsxs)("section",{className:"k-sec",children:[(0,e.jsx)("h3",{children:"Triggers"}),(0,e.jsx)("ul",{className:"fl-terms",children:s.plan.triggers.map((a,c)=>(0,e.jsx)("li",{children:a},c))})]}),(s.plan.scripts.length>0||s.plan.kept.length>0)&&(0,e.jsxs)("section",{className:"k-sec",children:[(0,e.jsx)("h3",{children:"Scripts"}),(0,e.jsxs)("ul",{className:"fl-terms",children:[s.plan.scripts.map((a,c)=>(0,e.jsxs)("li",{children:[a.text,a.body!==null&&(0,e.jsx)(U,{summary:"Show the script",children:(0,e.jsx)("pre",{className:"k-mono",children:a.body})})]},c)),s.plan.kept.map((a,c)=>(0,e.jsx)("li",{children:a},`k-${c}`))]})]}),(0,e.jsxs)("section",{className:"k-sec",children:[(0,e.jsx)("h3",{children:"Good to know"}),(0,e.jsx)("ul",{className:"fl-terms",children:s.plan.notes.map((a,c)=>(0,e.jsx)("li",{children:a},c))})]})]}),(0,e.jsxs)(h,{action:"/flows/import",className:"fl-pv-form",id:"fl-pv-form",children:[(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),(0,e.jsx)("input",{type:"hidden",name:"previewed",value:s.previewed}),(0,e.jsx)("textarea",{name:"document",hidden:!0,readOnly:!0,value:s.document}),s.parameters.length>0&&(0,e.jsxs)("fieldset",{children:[(0,e.jsx)("legend",{children:"Fill in"}),s.parameters.map(a=>(0,e.jsx)(w,{label:a.optional?`${a.about} (optional)`:a.about,children:({id:c})=>(0,e.jsx)($,{id:c,name:`param.${a.id}`,defaultValue:a.value,maxLength:200,autoComplete:"off"})},a.id))]}),(0,e.jsxs)(z,{children:[s.plan!==null&&(0,e.jsx)(o,{variant:"primary",type:"submit",docked:!0,name:"confirm",value:"yes",label:"Import flow"}),s.parameters.length>0&&(0,e.jsx)(o,{variant:s.plan===null?"primary":"outline",type:"submit",name:"confirm",value:"",label:s.plan===null?"Preview":"Update preview"}),(0,e.jsx)(f,{variant:"ghost",href:"/flows",label:"Cancel"})]})]})]}),s.plan!==null&&(0,e.jsx)(R,{children:(0,e.jsx)(o,{variant:"primary",type:"submit",form:"fl-pv-form",name:"confirm",value:"yes",label:"Import flow"})})]})}function oe({steps:s}){return(0,e.jsx)("ol",{className:"gallery-steps","aria-label":"Steps",children:s.map((a,c)=>(0,e.jsxs)("li",{children:[c>0&&(0,e.jsx)("span",{"aria-hidden":"true",children:"→"}),a.highlight?(0,e.jsx)("b",{children:a.name}):a.name]},c))})}function ml({view:s}){let[a,c]=(0,g.useState)(s.ask.value),[r,n]=(0,g.useState)(s.projects.find(t=>t.path===s.repo)?.name??s.projects[0]?.name??""),m=Z.some(([t])=>t===s.group)?s.group:"all",j=t=>m==="all"||m===t,l=t=>{let d=new URLSearchParams({...t==="all"?{}:{group:t},...s.repo===null?{}:{repo:s.repo}}).toString();return`/flows/new${d?`?${d}`:""}`};return(0,e.jsxs)("div",{className:"fl-new","data-kit-page":"",children:[(0,e.jsx)(O,{title:"New flow",back:"/flows"}),(0,e.jsxs)(W,{children:[(0,e.jsx)(P,{title:"New flow",back:["/flows","Flows"],meta:s.canUse?"Describe it in a sentence, or start from a template.":"An approver creates flows.",same:!0}),s.problem!==null?(0,e.jsx)(M,{children:s.problem}):s.said!==null?(0,e.jsx)(A,{children:s.said}):null,s.canUse&&(0,e.jsxs)("section",{className:"k-sec","aria-labelledby":"fl-dh",children:[(0,e.jsx)("h3",{id:"fl-dh",children:"Describe what you want"}),(0,e.jsxs)("form",{method:"get",action:"/flows/new",id:"fl-ask-form",children:[(0,e.jsx)("input",{type:"hidden",name:"project",value:r}),(0,e.jsx)(ee,{id:"fl-ask",name:"describe",label:"What should happen",rows:3,value:a,onChange:c,onSend:()=>{},submit:!0,gate:!1,sendLabel:"Draft the flow",placeholder:"Every night, run npm run e2e. When it fails, find the cause, fix it and open a pull request.",...s.projects.length>0?{project:{current:r,items:s.projects.map(t=>t.name)}}:{},onProject:n,error:s.ask.error,note:"Opens in chat: your lead drafts it for you to check. Nothing runs until you create it."})]})]}),(0,e.jsxs)("section",{className:"k-sec","aria-labelledby":"fl-th",children:[(0,e.jsxs)("div",{className:"fl-th",children:[(0,e.jsx)("h3",{id:"fl-th",children:"Start from a template"}),(0,e.jsx)("span",{className:"k-desk-only",children:(0,e.jsx)(Q,{label:"Templates",current:m,items:Z.map(([t,d])=>({key:t,label:d,href:l(t)}))})}),(0,e.jsx)("span",{className:"k-phone-only fl-tsel",children:(0,e.jsxs)("form",{method:"get",action:"/flows/new",children:[s.repo!==null&&(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),(0,e.jsx)(T,{name:"group","aria-label":"Templates",value:m,wide:!0,items:Z,onChange:t=>t.currentTarget.form?.requestSubmit()})]})})]}),(0,e.jsxs)("div",{className:"fl-tlist",children:[s.templateGroups.filter(t=>j(t.id)).map(t=>(0,e.jsxs)("div",{"data-group":t.id,children:[(0,e.jsx)(V,{label:t.label,count:(0,e.jsx)(q,{n:t.rows.length})}),t.rows.map(d=>(0,e.jsxs)("div",{className:"fl-trow","data-template":d.id,children:[(0,e.jsxs)("div",{className:"fl-tmain",children:[(0,e.jsx)("b",{children:d.name}),(0,e.jsx)("span",{className:"fl-tp",children:d.promise}),(0,e.jsxs)("span",{className:"fl-tline",children:[(0,e.jsx)(oe,{steps:d.steps}),d.tools.length>0&&(0,e.jsx)("ul",{className:"gallery-tools","aria-label":"Tools",children:d.tools.map(b=>(0,e.jsxs)("li",{"data-tool":b.id,"data-state":b.state??"unknown",children:[(0,e.jsx)(ie,{name:b.id.replace(/-desktop$/,""),label:b.label,connected:b.state==="connected"}),(0,e.jsxs)("span",{children:[b.label,b.state==="open"?" (not connected)":""]})]},b.id))}),d.needsWords!==""&&(0,e.jsxs)("span",{children:["· ",d.needsWords]})]})]}),(0,e.jsx)("div",{className:"fl-ta",children:d.href!==null&&(0,e.jsx)(f,{sm:!0,href:d.href,"aria-label":`Use ${d.name}`,label:"Use this"})})]},d.id))]},t.id)),j("kits")&&(0,e.jsxs)("div",{"data-group":"kits",children:[(0,e.jsx)(V,{label:"With an agent",count:(0,e.jsx)(q,{n:s.kits.length})}),s.kits.map(t=>(0,e.jsxs)("div",{className:"fl-trow","data-kit":t.id,children:[(0,e.jsxs)("div",{className:"fl-tmain",children:[(0,e.jsx)("b",{children:t.name}),(0,e.jsx)("span",{className:"fl-tp",children:t.promise}),(0,e.jsx)("span",{className:"fl-tline",children:t.line})]}),(0,e.jsx)("div",{className:"fl-ta",children:t.href!==null&&(0,e.jsx)(f,{sm:!0,href:t.href,label:t.actionLabel})})]},t.id))]}),j("recipes")&&(0,e.jsxs)("div",{children:[(0,e.jsx)(V,{label:s.recipes.projectName===null?"One-time work":`One-time work in ${s.recipes.projectName}`,count:(0,e.jsx)(q,{n:s.recipes.rows.length})}),s.recipes.error!==null?(0,e.jsx)(M,{children:s.recipes.error}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{"data-group":"recipes",children:s.recipes.rows.map(t=>(0,e.jsxs)("div",{className:"fl-trow","data-recipe-card":"","data-recipe":t.id,children:[(0,e.jsxs)("div",{className:"fl-tmain",children:[(0,e.jsx)("b",{children:t.name}),(0,e.jsx)("span",{className:"fl-tp",children:t.description}),(0,e.jsx)("span",{className:"fl-tline",children:t.line})]}),(0,e.jsx)("div",{className:"fl-ta",children:t.href!==null&&(0,e.jsx)(f,{sm:!0,href:t.href,"aria-label":`Use ${t.name}`,label:"Use this"})})]},`${t.id}-${t.revision}`))}),(0,e.jsxs)("div",{className:"fl-recipe-more",children:[s.recipes.project===null?(0,e.jsx)(y,{children:"Open a project to use, save or import a recipe."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("p",{className:"k-acts fl-recipe-acts",children:(0,e.jsx)(f,{sm:!0,href:"/recipes/new",label:"Create a recipe"})}),(0,e.jsx)(U,{summary:"Import a shared recipe",children:(0,e.jsxs)(h,{action:"/recipes/import",className:"fl-recipe-import",children:[(0,e.jsx)("input",{type:"hidden",name:"projectRevision",value:String(s.recipes.revision)}),(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.recipes.project}),(0,e.jsx)(w,{label:"Recipe JSON",hint:"Paste exported recipe JSON. You review it in this project before any work is made.",children:({id:t})=>(0,e.jsx)(L,{id:t,name:"document",rows:6,required:!0,maxLength:32768,spellCheck:!1})}),(0,e.jsx)(z,{children:(0,e.jsx)(o,{type:"submit",label:"Review imported recipe"})})]})})]}),s.recipes.recent.length>0&&(0,e.jsx)(U,{summary:`Made from recipes lately (${s.recipes.recent.length})`,children:(0,e.jsx)("div",{className:"fl-recipe-recent",children:s.recipes.recent.map((t,d)=>(0,e.jsxs)("a",{href:t.href,children:[(0,e.jsx)("span",{children:t.name}),(0,e.jsx)("span",{className:"k-note",children:t.state})]},d))})})]})]})]}),j("starters")&&s.starters!==null&&(0,e.jsxs)("div",{children:[(0,e.jsx)(V,{label:`Starter flows for ${s.starters.projectName}`}),(0,e.jsx)("div",{"data-group":"starters",children:s.starters.rows.map(t=>(0,e.jsxs)("div",{id:`starter-${t.id}`,className:"fl-trow","data-starter":t.id,"data-suggested":String(t.id===s.starters.suggested&&t.onFlowId===null),children:[(0,e.jsxs)("div",{className:"fl-tmain",children:[(0,e.jsx)("b",{children:t.name}),(0,e.jsx)("span",{className:"fl-tp",children:t.summary}),(0,e.jsx)("span",{className:"fl-tline",children:t.onFlowId!==null?(0,e.jsx)(C,{word:"On",tone:"done"}):t.blocked!==null?(0,e.jsx)("span",{children:t.blocked}):(0,e.jsxs)("span",{children:[(0,e.jsx)("ul",{className:"fl-starter-does",children:t.does.map((d,b)=>(0,e.jsx)("li",{children:d},b))}),(0,e.jsx)("span",{className:"fl-starter-never",children:t.never})]})})]}),(0,e.jsx)("div",{className:"fl-ta",children:t.onFlowId!==null?(0,e.jsx)(f,{sm:!0,href:`/flows/${t.onFlowId}`,label:"Open flow"}):t.blocked===null&&s.starters.canSwitch&&(0,e.jsxs)(h,{action:"/settings/flows/on",children:[(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.starters.repo}),(0,e.jsx)("input",{type:"hidden",name:"starter",value:t.id}),(0,e.jsx)(o,{sm:!0,type:"submit","aria-label":`Switch on ${t.name}`,label:"Switch on"})]})})]},t.id))}),!s.starters.canSwitch&&s.starters.rows.some(t=>t.onFlowId===null)&&(0,e.jsx)(y,{children:"An approver switches these on."})]}),s.blankHref!==null&&(0,e.jsx)("p",{className:"k-note fl-blank",children:(0,e.jsx)("a",{href:s.blankHref,children:"Start from a blank flow"})})]})]})]}),s.canUse&&(0,e.jsx)(R,{children:(0,e.jsx)(o,{variant:"primary",type:"submit",form:"fl-ask-form",label:"Draft the flow"})})]})}function ue(){let[s,a]=(0,g.useState)("");return(0,e.jsx)(K,{proof:"tools-connect",value:s,onChange:a})}function ul({view:s}){let a=s.tools.filter(n=>n.state!=="connected"&&n.state!=="taken"),c={connected:"Connected",open:"Not connected",taken:"Added another way"},r=s.preview!==null;return(0,e.jsxs)("div",{className:"fl-use","data-kit-page":"","data-gallery-template":s.template.id,children:[(0,e.jsx)(O,{title:s.template.name,back:"/flows/new"}),(0,e.jsxs)(W,{children:[(0,e.jsx)(P,{title:s.template.name,back:["/flows/new","New flow"],meta:s.template.promise,same:!0}),s.problem!==null&&(0,e.jsx)(M,{children:s.problem}),s.said!==null&&(0,e.jsx)(A,{children:s.said}),(s.steps.length>0||s.needsWords!=="")&&(0,e.jsxs)("section",{className:"k-sec","aria-label":"Steps",children:[s.steps.length>0&&(0,e.jsx)(oe,{steps:s.steps}),s.needsWords!==""&&(0,e.jsx)(y,{children:s.needsWords})]}),s.tools.length>0&&(0,e.jsxs)("section",{className:"k-sec","aria-label":"Tools",children:[(0,e.jsx)("h3",{children:"Tools"}),(0,e.jsx)("div",{children:s.tools.map(n=>(0,e.jsxs)("div",{className:"fl-tool","data-tool":n.id,"data-state":String(n.state),children:[(0,e.jsxs)("p",{className:"fl-tool-h",children:[(0,e.jsx)(ie,{name:n.id.replace(/-desktop$/,""),label:n.label,connected:n.state==="connected"})," ",n.label," ",n.state!==null&&(0,e.jsx)(C,{word:c[n.state],tone:n.state==="connected"?"done":"",dot:n.state==="connected"})]}),n.state!=="connected"&&n.state!=="taken"&&s.canAct&&(0,e.jsxs)(h,{action:"/settings/tools/connect",children:[(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),(0,e.jsx)("input",{type:"hidden",name:"shown",value:s.repo}),(0,e.jsx)("input",{type:"hidden",name:"template",value:s.template.id}),(0,e.jsx)(y,{children:n.id==="figma-desktop"?"Open the Figma desktop app and turn on its Dev Mode MCP server in Preferences.":`You sign in on ${n.label}, then come back here.`}),(0,e.jsx)(ue,{}),(0,e.jsx)(z,{children:(0,e.jsx)(o,{type:"submit",name:"service",value:n.id,label:`Connect ${n.label}`})})]})]},n.id))})]}),(0,e.jsxs)(h,{action:`/flows/new/${s.template.id}`,"data-gallery-use":"",id:"fl-use-form",children:[(0,e.jsx)("input",{type:"hidden",name:"previewed",value:s.preview?.digest??""}),s.projects.length>1?(0,e.jsx)(w,{label:"Project",children:({id:n})=>(0,e.jsx)(T,{id:n,name:"repo",defaultValue:s.repo,wide:!0,items:s.projects.map(m=>[m.path,m.name])})}):(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),s.template.asks.map(n=>(0,e.jsx)(w,{label:n.label,...n.hint!==void 0?{hint:n.hint}:{},children:({id:m})=>n.key==="outdated"?(0,e.jsx)(T,{id:m,name:"outdated",defaultValue:n.value,wide:!0,items:me}):(0,e.jsx)($,{id:m,name:n.key,defaultValue:n.value,required:!0,maxLength:n.key==="command"?500:n.key==="team"?12:100,spellCheck:n.key==="command"||n.key==="team"?!1:void 0,autoCapitalize:n.key==="command"?"off":n.key==="team"?"characters":void 0})},n.key)),(0,e.jsx)(w,{label:"Name",children:({id:n})=>(0,e.jsx)($,{id:n,name:"name",defaultValue:s.name,maxLength:80})}),s.sendResult.show&&(0,e.jsxs)("label",{className:"fl-check",children:[(0,e.jsx)("input",{type:"checkbox",name:s.sendResult.key,value:"yes",defaultChecked:s.sendResult.checked,"data-send-result":""}),(0,e.jsxs)("span",{children:[s.sendResult.title,(0,e.jsx)("span",{className:"k-note",children:"When a card finishes, what was done comes to you in your chat apps."})]})]}),s.preview!==null&&(0,e.jsxs)("section",{className:"k-sec fl-will","aria-labelledby":"fl-will",children:[(0,e.jsx)("h3",{id:"fl-will",children:"What it will do"}),(0,e.jsx)("ul",{children:s.preview.does.map((n,m)=>(0,e.jsx)("li",{children:n},m))}),(0,e.jsx)("p",{className:"fl-never",children:s.preview.never}),a.filter(n=>n.zones.length>0).map(n=>(0,e.jsxs)("p",{className:"k-note","data-needs-tool":n.id,children:[n.zones.map(m=>`“${m}”`).join(" and ")," need",n.zones.length===1?"s":""," ",n.label,", which isn't connected."]},n.id)),s.tools.filter(n=>n.state==="taken"&&n.zones.length>0).map(n=>(0,e.jsxs)("p",{className:"k-note","data-tool-taken":n.id,children:[n.zones.map(m=>`“${m}”`).join(" and ")," use",n.zones.length===1?"s":""," ",n.label,", added another way."]},n.id)),s.preview.startsFrom.length===0?(0,e.jsx)(y,{children:"Cards start when you add them."}):s.preview.startsFrom.map((n,m)=>(0,e.jsxs)(y,{children:["Starts from: ",n]},m)),(0,e.jsx)(U,{summary:"Every step",children:(0,e.jsx)("ol",{children:s.preview.steps.map((n,m)=>(0,e.jsx)("li",{children:n.replace(/^\d+\.\s/,"")},m))})})]}),s.preview!==null&&s.preview.anyone&&(0,e.jsx)(I,{kind:"step-up",field:"password",children:(0,e.jsx)(w,{label:"Your password",hint:"It brings in items from anyone.",children:({id:n})=>(0,e.jsx)($,{id:n,name:"password",type:"password",autoComplete:"current-password"})})}),(0,e.jsxs)(z,{children:[r&&(0,e.jsx)(o,{variant:a.length>0?"outline":"primary",type:"submit",docked:!0,name:"intent",value:"create",label:"Create flow",...a.length>0?{"data-without-tools":""}:{}}),(0,e.jsx)(o,{variant:r?"outline":"primary",type:"submit",name:"intent",value:"preview",label:r?"Update preview":"Preview"})]}),r&&(0,e.jsx)(y,{children:s.preview.anyone?"Creating it asks for your password: it brings in items from anyone.":"Creating it needs no password."})]})]}),(0,e.jsx)(R,{children:(0,e.jsx)(o,{variant:"primary",type:"submit",form:"fl-use-form",name:"intent",value:r?"create":"preview",label:r?"Create flow":"Preview"})})]})}function xl({view:s}){return(0,e.jsxs)("div",{className:"fl-kit","data-kit-page":"","data-kit":s.kit.id,children:[(0,e.jsx)(O,{title:s.kit.name,back:s.backHref}),(0,e.jsxs)(W,{children:[(0,e.jsx)(P,{title:s.kit.name,back:[s.backHref,"New flow"],meta:s.kit.promise,same:!0}),s.problem!==null&&(0,e.jsx)(M,{children:s.problem}),s.said!==null&&(0,e.jsx)(A,{children:s.said}),(0,e.jsx)(se,{rows:[["Project",s.projectName],["Agent",s.kit.agentDesc],["Flow",s.kit.flowName],...s.kit.toolsWords===null?[]:[["Works with",s.kit.toolsWords]]]}),!s.installed&&(0,e.jsx)(y,{children:"Nothing goes out without you approving it."}),!s.installed&&s.canSetUp&&(0,e.jsxs)(h,{action:`/kits/${s.kit.id}/setup`,id:"fl-kit-setup",children:[(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),(0,e.jsx)(z,{children:(0,e.jsx)(o,{variant:"primary",type:"submit",docked:!0,label:`Set up ${s.kit.name}`})})]}),s.steps.length>0&&(0,e.jsxs)("section",{className:"k-sec","aria-labelledby":"fl-kit-next",children:[(0,e.jsx)("h3",{id:"fl-kit-next",children:"Next steps"}),(0,e.jsx)("ol",{className:"fl-kit-steps",children:s.steps.map(a=>(0,e.jsxs)("li",{"data-step":a.id,"data-done":String(a.done),children:[a.done?(0,e.jsx)(X,{name:"check",small:!0}):(0,e.jsx)("span",{className:"fl-kit-ring","aria-hidden":"true"}),(0,e.jsx)("span",{className:"fl-kit-said",children:a.said}),a.done?a.href!==null&&(0,e.jsx)(f,{sm:!0,href:a.href,label:"Open"}):a.action==="sample"||a.action==="github"?s.canSetUp&&(0,e.jsxs)(h,{action:`/kits/${s.kit.id}/${a.action}`,children:[(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),a.action==="github"&&(0,e.jsx)(I,{kind:"step-up",field:"password",children:(0,e.jsx)($,{name:"password",type:"password",autoComplete:"current-password","aria-label":"Your password",placeholder:"Your password"})}),(0,e.jsx)(o,{sm:!0,type:"submit",label:a.action==="sample"?"Try it":"Bring them in"})]}):a.href!==null&&(0,e.jsx)(f,{sm:!0,href:a.href,label:a.action==="connect"?"Connect":"Set up"})]},a.id))})]})]}),!s.installed&&s.canSetUp&&(0,e.jsx)(R,{children:(0,e.jsx)(o,{variant:"primary",type:"submit",form:"fl-kit-setup",label:`Set up ${s.kit.name}`})})]})}function jl({view:s}){return(0,e.jsxs)("div",{className:"subagents","data-kit-page":"",children:[(0,e.jsx)(B,{title:"Subagents",back:"/settings/lead",right:(0,e.jsx)(f,{sm:!0,variant:"ghost",href:"/settings/lead",label:"Lead"})}),s.problem!==null&&(0,e.jsx)(M,{children:s.problem}),s.said!==null&&(0,e.jsx)(A,{children:s.said}),(0,e.jsxs)(y,{children:["Your lead's helpers. Each works within rules you write and asks you when they say to. The quickest start is a ",(0,e.jsx)("a",{className:"k-link",href:"/kits",children:"starter kit"}),"."]}),s.mates.length===0?(0,e.jsx)(y,{children:"No subagents yet."}):s.mates.map(a=>(0,e.jsx)("article",{className:"card","data-subagent":a.handle,children:(0,e.jsxs)("div",{className:"flow-row",children:[(0,e.jsx)("h2",{children:(0,e.jsx)("a",{href:`/settings/lead/subagents/${a.id}`,children:a.label})}),(0,e.jsxs)("span",{className:"flow-counts",children:[a.projectName," · ",a.state==="active"?"Working":"Paused"," · ",a.today," today",a.openQuestions>0?` · ${a.openQuestions} question${a.openQuestions===1?"":"s"} for you`:""]})]})},a.id)),s.canCreate&&s.projects.length>0&&(0,e.jsxs)("details",{className:"card",id:"add",open:s.mates.length===0||s.adding||void 0,children:[(0,e.jsx)("summary",{children:"Add subagent"}),(0,e.jsxs)(h,{action:"/settings/lead/subagents/new","data-new-subagent":"",children:[(0,e.jsx)(w,{label:"Start from",children:({id:a})=>(0,e.jsx)(T,{id:a,name:"template",wide:!0,items:[...s.templates.map(c=>[c.id,`${c.label}: ${c.about}`]),["blank","Blank: write its soul file yourself"]]})}),(0,e.jsx)(w,{label:"Name",children:({id:a})=>(0,e.jsx)($,{id:a,name:"name",maxLength:40,placeholder:"keep the template's name"})}),(0,e.jsx)(re,{projects:s.projects,current:s.projects[0]?.path??null,id:"subagent-repo"}),(0,e.jsx)(z,{children:(0,e.jsx)(o,{type:"submit",label:"Add subagent"})})]})]})]})}function bl({view:s}){let{mate:a}=s,c=s.problem?.includes("Codex backup")===!0,r=c&&s.problem?.startsWith("Enter your Toolroll password")===!0,[n,m]=(0,g.useState)(()=>{let l={};for(let t of s.tools.grants)for(let d of t.actions)l[`${t.tool}:${d.name}`]=d.use;return l}),j=l=>l.split(`
|
|
3
3
|
`).map((t,d)=>(0,e.jsxs)("span",{children:[d>0&&(0,e.jsx)("br",{}),t]},d));return(0,e.jsxs)("div",{className:"subagent-detail","data-kit-page":"",children:[(0,e.jsx)(B,{title:a.label,back:"/settings/lead/subagents",right:(0,e.jsx)(f,{sm:!0,variant:"ghost",href:"/settings/lead",label:"Lead"})}),s.problem!==null&&!c&&(0,e.jsx)(M,{children:s.problem}),s.said!==null&&(0,e.jsx)(A,{children:s.said}),(0,e.jsxs)(y,{children:[a.projectName," · ",a.state==="active"?"Working":"Paused: its decisions go to people"," · reports to ",a.manager]}),s.canManage&&(0,e.jsxs)("div",{className:"subagent-actions",children:[(0,e.jsxs)(h,{action:`/settings/lead/subagents/${a.id}/state`,children:[(0,e.jsx)("input",{type:"hidden",name:"state",value:a.state==="active"?"paused":"active"}),(0,e.jsx)(o,{variant:a.state==="active"?"outline":"primary",type:"submit",label:a.state==="active"?`Pause ${a.name}`:`Resume ${a.name}`})]}),(0,e.jsx)(h,{action:`/settings/lead/subagents/${a.id}/summary`,children:(0,e.jsx)(o,{type:"submit",label:"Send today's summary"})})]}),s.questions.length>0&&(0,e.jsxs)("section",{children:[(0,e.jsx)("h2",{children:"Questions"}),s.questions.map(l=>(0,e.jsxs)("article",{className:"card subagent-question","data-question":l.id,...l.isSuggestion?{"data-suggestion":""}:{},children:[(0,e.jsxs)("p",{className:"meta",children:[l.isSuggestion?"Suggests a rule change":l.card===null?"About a card":(0,e.jsxs)(e.Fragment,{children:["About ",(0,e.jsx)("a",{href:`/flows/${l.card.flowId}?card=${l.card.cardId}`,children:l.card.title})]})," · ",(0,e.jsx)("time",{dateTime:l.createdAt,title:D(l.createdAt),children:S(l.createdAt)}),!l.mine&&` · for ${l.askedOf}`]}),(0,e.jsx)("p",{children:(0,e.jsx)("strong",{children:l.question})}),l.mine&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"question-options",children:l.options.map(t=>(0,e.jsxs)(h,{action:`/settings/lead/subagents/questions/${l.id}/answer`,children:[(0,e.jsx)("input",{type:"hidden",name:"choice",value:t.id}),l.isSuggestion&&t.id==="accept"&&(0,e.jsx)(I,{kind:"step-up",field:"password",children:(0,e.jsx)("input",{type:"password",name:"password",autoComplete:"current-password","aria-label":"Your password",placeholder:"Your password"})}),(0,e.jsx)(o,{type:"submit",label:t.label})]},t.id))}),(0,e.jsxs)(h,{action:`/settings/lead/subagents/questions/${l.id}/answer`,className:"question-reply",children:[(0,e.jsx)(w,{label:"Or answer in your words",children:({id:t})=>(0,e.jsx)(L,{id:t,name:"text",rows:2,maxLength:2e3})}),(0,e.jsx)(o,{type:"submit",label:"Answer"})]})]})]},l.id))]}),(0,e.jsxs)("section",{className:"card",children:[(0,e.jsx)("h2",{children:"Today"}),(0,e.jsx)("p",{className:"subagent-summary",children:j(s.todaySummary)})]}),(0,e.jsxs)("details",{className:"card subagent-week",id:"week",open:!0,children:[(0,e.jsx)("summary",{children:"This week"}),(0,e.jsx)("p",{className:"subagent-week-said",children:j(s.week.summary)}),s.week.overrides.length>0&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("h3",{children:"What you overrode"}),(0,e.jsx)("ul",{className:"subagent-overrides",children:s.week.overrides.map((l,t)=>(0,e.jsxs)("li",{children:[l.said,l.href!==null&&(0,e.jsxs)(e.Fragment,{children:[" · ",(0,e.jsx)("a",{href:l.href,children:"open"})]})," ",(0,e.jsx)("span",{className:"meta",children:(0,e.jsx)("time",{dateTime:l.at,title:D(l.at),children:S(l.at)})})]},t))})]}),s.week.undoable.length>0&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("h3",{children:"Undo"}),(0,e.jsx)("ul",{className:"subagent-undo",children:s.week.undoable.map(l=>(0,e.jsxs)("li",{"data-undo":l.call,children:[(0,e.jsx)("span",{children:l.words})," ",(0,e.jsxs)("span",{className:"meta",children:[(0,e.jsx)("time",{dateTime:l.at,title:D(l.at),children:S(l.at)}),l.href!==null&&(0,e.jsxs)(e.Fragment,{children:[" · ",(0,e.jsx)("a",{href:l.href,children:"open"})]})]}),s.canManage&&(0,e.jsxs)(h,{action:`/settings/lead/subagents/${a.id}/week`,children:[(0,e.jsx)("input",{type:"hidden",name:"id",value:String(l.call)}),(0,e.jsx)(o,{sm:!0,type:"submit",name:"op",value:"undo",label:`Undo with ${l.undo}`})]})]},l.call))})]}),s.canManage&&(0,e.jsx)(h,{action:`/settings/lead/subagents/${a.id}/week`,children:(0,e.jsx)(o,{sm:!0,type:"submit",name:"op",value:"send",label:"Send the week's report"})})]}),(0,e.jsxs)("section",{className:"card",children:[(0,e.jsx)("h2",{children:"Works on"}),s.zones.length===0?(0,e.jsxs)("p",{className:"meta",children:["Not on any zone yet. In a flow, choose ",a.name," under “Who decides” on a “Person decides” zone, or add a “Subagent handles it” zone."]}):(0,e.jsx)("ul",{children:s.zones.map((l,t)=>(0,e.jsxs)("li",{children:[(0,e.jsx)("a",{href:`/flows/${l.flowId}`,children:l.flowName})," · ",l.kind==="decides"?"decides":"handles"," ",l.title]},t))})]}),(s.tools.grants.length>0||s.canManage&&(s.tools.ungranted.length>0||s.tools.grants.length===0))&&(0,e.jsxs)("section",{className:"card subagent-tools",id:"tools",children:[(0,e.jsx)("h2",{children:"Tools"}),s.tools.grants.length===0&&(0,e.jsxs)("p",{className:"meta",children:[a.name," doesn't use any tools yet. Reading starts as “Do it”; everything else asks you first."]}),s.tools.grants.map(l=>(0,e.jsxs)("div",{className:"tool-grant","data-tool-grant":l.tool,children:[(0,e.jsx)("h3",{children:l.tool}),l.gone&&(0,e.jsxs)("p",{className:"problem",children:["This project doesn't have ",l.tool," any more, so ",a.name," can't use it."]}),s.canManage?(0,e.jsxs)(h,{action:`/settings/lead/subagents/${a.id}/tools`,children:[(0,e.jsx)("input",{type:"hidden",name:"tool",value:l.tool}),l.actions.map(t=>{let d=n[`${l.tool}:${t.name}`]??t.use,b=`use-${l.tool}-${t.name}`.replace(/[^A-Za-z0-9_-]/g,"-");return(0,e.jsxs)("div",{className:"tool-rule","data-tool-action":t.name,children:[(0,e.jsxs)("label",{htmlFor:b,children:[(0,e.jsx)("strong",{children:t.name}),t.about!==""&&(0,e.jsx)("span",{className:"meta",children:t.about})]}),(0,e.jsx)("select",{id:b,name:`use.${t.name}`,value:d,onChange:v=>m(N=>({...N,[`${l.tool}:${t.name}`]:v.target.value})),children:he.filter(([v])=>v!=="limit"||t.numbers.length>0).map(([v,N])=>(0,e.jsx)("option",{value:v,children:N},v))}),t.numbers.length>0&&d==="limit"&&(0,e.jsxs)("span",{className:"tool-limit",style:{display:"flex"},children:["Ask first when"," ",(0,e.jsx)("select",{name:`field.${t.name}`,"aria-label":"The number the limit is on",defaultValue:t.limitField??t.numbers[0],children:t.numbers.map(v=>(0,e.jsx)("option",{value:v,children:v},v))})," ","is over"," ",(0,e.jsx)("input",{type:"number",name:`over.${t.name}`,min:"0",step:"any",defaultValue:t.limitOver,"aria-label":"The limit"})]})]},t.name)}),l.hasUndo&&(0,e.jsxs)("details",{className:"tool-undo",open:l.actions.some(t=>t.undo!=="")||void 0,children:[(0,e.jsx)("summary",{children:"Undo"}),(0,e.jsx)("p",{className:"meta",children:"When an action has an opposite, a person can press Undo on its receipts: the opposite is called with the same input."}),l.actions.filter(t=>!t.readOnly).map(t=>(0,e.jsxs)("label",{className:"tool-undo-row",children:[t.name," is undone by",(0,e.jsxs)("select",{name:`undo.${t.name}`,defaultValue:t.undo,children:[(0,e.jsx)("option",{value:"",children:"nothing"}),l.actions.filter(d=>d.name!==t.name).map(d=>(0,e.jsx)("option",{value:d.name,children:d.name},d.name))]})]},t.name))]}),(0,e.jsx)(I,{kind:"step-up",field:"password",children:(0,e.jsxs)("label",{children:["Your password ",(0,e.jsx)("span",{className:"meta",children:"only to let it do more on its own"}),(0,e.jsx)("input",{type:"password",name:"password",autoComplete:"current-password"})]})}),(0,e.jsxs)("div",{className:"tool-buttons",children:[(0,e.jsx)(o,{type:"submit",name:"op",value:"rules",label:"Save rules"}),(0,e.jsx)(o,{type:"submit",name:"op",value:"revoke",variant:"outline",label:`Stop using ${l.tool}`})]})]}):(0,e.jsx)("ul",{children:l.actions.map(t=>(0,e.jsxs)("li",{className:"tool-rule",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)("strong",{children:t.name})," · ",t.words]}),t.about!==""&&(0,e.jsx)("span",{className:"meta",children:t.about})]},t.name))})]},l.tool)),s.canManage&&(s.tools.grants.length===0&&s.tools.ungranted.length===0?(0,e.jsxs)("p",{className:"meta",children:["This project has no tools yet. ",(0,e.jsx)("a",{href:s.tools.toolsPageHref,children:"Add one"}),", then let ",a.name," use it here."]}):s.tools.ungranted.length>0&&(0,e.jsxs)(h,{action:`/settings/lead/subagents/${a.id}/tools`,className:"tool-add",children:[(0,e.jsx)("input",{type:"hidden",name:"op",value:"grant"}),(0,e.jsxs)("label",{children:["Let ",a.name," use",(0,e.jsx)("select",{name:"tool",children:s.tools.ungranted.map(l=>(0,e.jsxs)("option",{value:l.name,children:[l.name,l.about===""?"":` — ${l.about}`]},l.name))})]}),(0,e.jsx)(I,{kind:"step-up",field:"password",children:(0,e.jsxs)("label",{children:["Your password",(0,e.jsx)("input",{type:"password",name:"password",autoComplete:"current-password"})]})}),(0,e.jsx)(o,{type:"submit",label:"Add tool"})]}))]}),(0,e.jsxs)("section",{className:"card subagent-desk",id:"desk",children:[(0,e.jsx)("h2",{children:"Desk and routines"}),(0,e.jsxs)("p",{className:"meta",children:["Message ",a.name," by name in your chat app, like “@",a.handle," where's order 1042?”. It lands on"," ",s.desk.deskFlowId===null?"its desk":(0,e.jsxs)("a",{href:`/flows/${s.desk.deskFlowId}`,children:[a.name,"'s desk"]}),", and the answer comes back to you."]}),s.desk.routines.length>0&&(0,e.jsx)("ul",{className:"subagent-routines",children:s.desk.routines.map(l=>(0,e.jsxs)("li",{"data-routine":l.id,children:[(0,e.jsxs)("span",{children:[(0,e.jsx)("strong",{children:l.scheduleWords})," · ",l.text]}),(0,e.jsxs)("span",{className:"meta",children:[l.state==="paused"?"Paused":l.nextAt===null?"":(0,e.jsxs)(e.Fragment,{children:["Next ",(0,e.jsx)("time",{dateTime:l.nextAt,children:S(l.nextAt)})]}),l.lastAt!==null&&(0,e.jsxs)(e.Fragment,{children:[" · last ",(0,e.jsx)("time",{dateTime:l.lastAt,children:S(l.lastAt)}),l.lastOutcome===null?"":`: ${l.lastOutcome}`]})]}),s.canManage&&(0,e.jsxs)(h,{action:`/settings/lead/subagents/${a.id}/routines`,className:"routine-buttons",children:[(0,e.jsx)("input",{type:"hidden",name:"id",value:String(l.id)}),(0,e.jsx)(o,{sm:!0,type:"submit",name:"op",value:"run",label:"Run now"}),(0,e.jsx)(o,{sm:!0,type:"submit",name:"op",value:"remove",label:"Remove"})]})]},l.id))}),s.canManage&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(h,{action:`/settings/lead/subagents/${a.id}/routines`,className:"routine-add",children:[(0,e.jsx)("input",{type:"hidden",name:"op",value:"add"}),(0,e.jsxs)("label",{children:["When",(0,e.jsx)("input",{type:"text",name:"schedule",maxLength:80,placeholder:"weekdays 09:00",required:!0})]}),(0,e.jsxs)("label",{children:["What to do",(0,e.jsx)("input",{type:"text",name:"text",maxLength:200,placeholder:"Look up yesterday's refunds and tell me the total.",required:!0})]}),(0,e.jsx)(o,{type:"submit",label:"Add routine"})]}),(0,e.jsxs)("p",{className:"meta",children:["A routine puts a card on its desk on that schedule (“weekdays 09:00”, “daily 17:00”, “monday 09:00”, “every 2 hours”; times are this computer's, ",s.localZone,", unless you name one); the answer goes to ",a.manager,"."]})]})]}),(0,e.jsxs)("section",{className:"card subagent-memory",id:"memory",children:[(0,e.jsx)("h2",{children:"Memory"}),s.canManage&&(0,e.jsxs)(h,{action:`/settings/lead/subagents/${a.id}/note`,className:"memory-tell",children:[(0,e.jsxs)("label",{className:"k-sr",htmlFor:"subagent-note",children:["Tell ",a.name," something"]}),(0,e.jsx)(L,{id:"subagent-note",name:"note",rows:2,maxLength:s.memory.maxChars,placeholder:"For example: this week, offer free shipping instead of a refund when you can."}),(0,e.jsx)(o,{type:"submit",label:`Tell ${a.name}`})]}),(s.memory.items.length>8||(s.memory.query??"")!=="")&&(0,e.jsxs)("form",{method:"get",action:`/settings/lead/subagents/${a.id}#memory`,className:"memory-search",role:"search",children:[(0,e.jsxs)("label",{className:"k-sr",htmlFor:"memory-q",children:["Search what ",a.name," remembers"]}),(0,e.jsx)($,{id:"memory-q",type:"search",name:"q",defaultValue:s.memory.query??"",placeholder:`Search what ${a.name} remembers`}),(0,e.jsx)(o,{type:"submit",label:"Search"})]}),s.memory.items.length===0?(0,e.jsx)("p",{className:"meta",children:(s.memory.query??"")!==""?`Nothing ${a.name} remembers matches that.`:`Nothing yet. What you tell ${a.name} is kept here, and it keeps short facts from the cards it works.`}):(0,e.jsx)("ul",{className:"subagent-memories",children:s.memory.items.map(l=>(0,e.jsxs)("li",{"data-memory":l.id,"data-source":l.source,children:[(0,e.jsx)("span",{children:l.text})," ",(0,e.jsxs)("span",{className:"meta",children:[l.source==="person"?`${l.createdBy} told it`:l.card===null?"it kept this":(0,e.jsxs)(e.Fragment,{children:["it kept this from ",(0,e.jsx)("a",{href:`/flows/${l.card.flowId}?card=${l.card.id}`,children:l.card.title.slice(0,60)})]})," · ",(0,e.jsx)("time",{dateTime:l.updatedAt,children:S(l.updatedAt)})]}),s.canManage&&(0,e.jsxs)("details",{className:"memory-edit",children:[(0,e.jsx)("summary",{children:"Edit"}),(0,e.jsxs)(h,{action:`/settings/lead/subagents/${a.id}/memory`,children:[(0,e.jsx)("input",{type:"hidden",name:"id",value:String(l.id)}),(0,e.jsx)("label",{className:"k-sr",htmlFor:`memory-${l.id}`,children:"Memory"}),(0,e.jsx)(L,{id:`memory-${l.id}`,name:"text",rows:2,maxLength:s.memory.maxChars,defaultValue:l.text}),(0,e.jsxs)("div",{className:"memory-buttons",children:[(0,e.jsx)(o,{sm:!0,type:"submit",name:"op",value:"edit",label:"Save"}),(0,e.jsx)(o,{sm:!0,type:"submit",name:"op",value:"forget",label:"Forget"})]})]})]})]},l.id))}),s.memory.query===null&&s.memory.olderCount>0&&(0,e.jsxs)("p",{className:"meta",children:[s.memory.olderCount," older ",s.memory.olderCount===1?"memory":"memories",": search to find them."]})]}),(0,e.jsxs)("details",{className:"card",open:s.canManage||void 0,children:[(0,e.jsx)("summary",{children:"Soul file"}),(0,e.jsxs)("p",{className:"meta",children:["Who ",a.name," is and its rules, read every turn. Version ",a.version,s.latestVersion!==null&&(0,e.jsxs)(e.Fragment,{children:[" · saved by ",s.latestVersion.savedBy,", ",(0,e.jsx)("time",{dateTime:s.latestVersion.savedAt,children:S(s.latestVersion.savedAt)})]})," · ",(0,e.jsx)("a",{href:`/settings/lead/subagents/${a.id}/soul.md`,download:!0,children:"Download"})]}),s.canManage?(0,e.jsxs)(h,{action:`/settings/lead/subagents/${a.id}/soul`,"data-soul-form":"",children:[(0,e.jsx)("label",{className:"k-sr",htmlFor:"subagent-soul",children:"Soul file"}),(0,e.jsx)("textarea",{id:"subagent-soul",name:"soul",rows:24,className:"k-mono",maxLength:12e3,spellCheck:!1,defaultValue:s.soulDraft??a.soul}),(0,e.jsx)(o,{type:"submit",label:"Save"})]}):(0,e.jsx)("pre",{className:"k-mono",children:a.soul})]}),(0,e.jsxs)("details",{className:"card",children:[(0,e.jsxs)("summary",{children:["What ",a.name," did"]}),s.events.length===0?(0,e.jsx)("p",{className:"meta",children:"Nothing yet."}):(0,e.jsx)("ul",{className:"subagent-activity",children:s.events.map((l,t)=>(0,e.jsxs)("li",{"data-event":l.kind,children:[l.said,l.cardHref!==null&&(0,e.jsxs)(e.Fragment,{children:[" · ",(0,e.jsx)("a",{href:l.cardHref,children:"open"})]})," ",(0,e.jsx)("span",{className:"meta",children:(0,e.jsx)("time",{dateTime:l.at,children:S(l.at)})})]},t))})]}),s.canManage&&(0,e.jsxs)("details",{className:"card",open:c||void 0,children:[(0,e.jsx)("summary",{children:"Settings"}),(0,e.jsxs)(h,{action:`/settings/lead/subagents/${a.id}/settings`,children:[(0,e.jsxs)("label",{children:["Model",(0,e.jsx)("select",{name:"model",defaultValue:a.model,children:s.models.map(l=>(0,e.jsx)("option",{value:l,children:l==="default"?"The lead chat's model":l[0].toUpperCase()+l.slice(1)},l))})]}),(0,e.jsxs)("label",{children:["Turns a day, at most",(0,e.jsx)("input",{type:"number",name:"dailyTurns",min:1,max:2e3,defaultValue:a.dailyTurns})]}),(0,e.jsxs)("label",{children:["Reports to",(0,e.jsx)("select",{name:"manager",defaultValue:a.manager,children:s.approvers.map(l=>(0,e.jsx)("option",{value:l,children:l},l))})]}),(0,e.jsx)("input",{type:"hidden",name:"backupPresent",value:"1"}),(0,e.jsxs)("details",{className:"k-disclose",id:"backup",open:c||a.codexBackupModel!==null||void 0,children:[(0,e.jsxs)("summary",{children:["Codex backup · ",a.codexBackupModel===null?"Off":"On"]}),(0,e.jsx)("p",{className:"meta",children:"When Claude hits its limit or isn't installed, send this teammate's card, memory and tool results to Codex through your ChatGPT sign-in. Tool approvals stay the same."}),(0,e.jsx)(w,{label:"Codex model",hint:"Leave blank to turn off. Each Claude or Codex attempt counts toward the daily limit.",error:c&&!r?s.problem:null,children:({id:l})=>(0,e.jsx)($,{id:l,name:"codexBackupModel",defaultValue:s.backupDraft??a.codexBackupModel??"",autoComplete:"off",spellCheck:!1})}),(0,e.jsx)(I,{kind:"step-up",field:"password",children:(0,e.jsx)(w,{label:"Password to enable or change backup",error:r?s.problem:null,children:({id:l})=>(0,e.jsx)($,{id:l,name:"password",type:"password",autoComplete:"current-password"})})})]}),(0,e.jsx)(o,{type:"submit",label:"Save settings"})]}),(0,e.jsxs)(h,{action:`/settings/lead/subagents/${a.id}/state`,className:"danger-zone mt-3",children:[(0,e.jsx)("input",{type:"hidden",name:"state",value:"removed"}),(0,e.jsx)(o,{variant:"danger",type:"submit",label:`Remove ${a.name} from the team`})]})]})]})}function vl({view:s}){let{recipe:a}=s;return(0,e.jsxs)("div",{"data-kit-page":"",children:[(0,e.jsx)("a",{className:"meta",href:"/recipes",children:"← Your recipes"}),(0,e.jsxs)("div",{className:"recipe-heading",children:[(0,e.jsx)("p",{className:"recipe-kicker",children:s.saved?"Recipe saved · ready when you are":"Use a recipe"}),(0,e.jsx)("h1",{children:a.name}),(0,e.jsx)("p",{className:"hint",children:a.description||"Your saved instructions, ready to use again."})]}),s.problem!==null&&(0,e.jsx)("p",{role:"alert",className:"card recipe-error",children:s.problem}),(0,e.jsxs)(h,{action:"/recipes/prepare",className:"recipe-run card",children:[(0,e.jsx)("input",{type:"hidden",name:"projectRevision",value:String(s.projectRevision)}),(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),(0,e.jsx)("input",{type:"hidden",name:"recipe",value:a.id}),(0,e.jsx)("input",{type:"hidden",name:"recipeRevision",value:String(a.revision)}),(0,e.jsx)("h2",{children:s.inputs.length>0?"What changes this time?":"Ready to go"}),s.inputs.map(c=>(0,e.jsxs)("label",{children:[c.label,(0,e.jsx)("textarea",{name:`answer-${c.key}`,rows:2,maxLength:500,required:!0,defaultValue:c.value})]},c.key)),s.inputs.length===0&&(0,e.jsx)("p",{children:"No setup to repeat. Preview the saved scope and create the work."}),(0,e.jsx)("p",{className:"meta",children:a.schedule===null?"Creates one task each time you use this recipe.":"Creates a new schedule with these answers fixed for every firing. Manage an existing schedule from Routines."}),(0,e.jsx)(o,{type:"submit",variant:"primary",label:"Preview this run →"}),(0,e.jsx)("p",{className:"meta",children:"Previewing starts no agents. Existing project approvals apply when you create work."})]}),(0,e.jsxs)("details",{className:"card",children:[(0,e.jsx)("summary",{children:"Saved instructions and boundaries"}),(0,e.jsx)("p",{className:"recap",children:a.goal}),(0,e.jsxs)("p",{className:"recap",children:["Leave alone: ",a.outOfScope??"No additional exclusions."]}),(0,e.jsxs)("p",{children:["Allowed paths: ",a.touches.length>0?a.touches.join(", "):"This project"]}),(0,e.jsx)("ul",{children:a.acceptanceStatements.map((c,r)=>(0,e.jsx)("li",{children:c},r))}),(0,e.jsx)("a",{href:`/recipes/start?recipe=${a.id}&revision=${a.revision}`,children:"Edit a copy of this recipe →"})]})]})}function gl({view:s}){let{initial:a}=s,[c,r]=(0,g.useState)(a.goal),[n,m]=(0,g.useState)(a.cadence),[j,l]=(0,g.useState)(a.repeat),[t,d]=(0,g.useState)(a.criteria),[b,v]=(0,g.useState)(a.questions),N=(0,g.useRef)(null),Y=p=>{if(!/^[a-z][a-z0-9_]{0,31}$/.test(p))return;let x=N.current,k=x?.selectionStart??c.length,i=x?.selectionEnd??c.length;r(`${c.slice(0,k)} {{${p}}} ${c.slice(i)}`),x?.focus()};return(0,e.jsxs)("div",{"data-kit-page":"",children:[(0,e.jsx)("a",{href:"/recipes",className:"meta",children:"← All recipes"}),(0,e.jsxs)("div",{className:"recipe-heading",children:[(0,e.jsx)("p",{className:"recipe-kicker",children:s.creator?"1 · Describe → 2 · Preview → 3 · Save":"1 · Choose → 2 · Customize → 3 · Preview"}),(0,e.jsx)("h1",{children:s.creator?"Create a reusable recipe":"Make this workflow yours"}),(0,e.jsxs)("p",{className:"hint",children:[s.projectName," · Choose the outcome, boundaries, and proof you want back."]})]}),s.problem!==null&&(0,e.jsx)("p",{role:"alert",className:"card recipe-error",children:s.problem}),(0,e.jsxs)(h,{action:"/recipes/preview",className:"recipe-editor",children:[(0,e.jsx)("input",{type:"hidden",name:"projectRevision",value:String(s.projectRevision)}),(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),(0,e.jsx)("input",{type:"hidden",name:"source",value:s.source}),(0,e.jsx)("input",{type:"hidden",name:"sourceRevision",value:String(s.sourceRevision)}),(0,e.jsx)("input",{type:"hidden",name:"sourceFormat",value:s.sourceFormat}),(0,e.jsxs)("section",{className:"card",children:[(0,e.jsx)("h2",{children:"The outcome"}),(0,e.jsxs)("label",{children:[s.creator?"Recipe name":"Workflow name",(0,e.jsx)("input",{type:"text",name:"name",defaultValue:a.name,maxLength:200,required:!0})]}),(0,e.jsxs)("label",{children:["Short description",(0,e.jsx)("input",{type:"text",name:"description",defaultValue:a.description,maxLength:400})]}),(0,e.jsxs)("label",{children:["What should the agent do?",(0,e.jsx)("textarea",{ref:N,name:"goal",rows:5,maxLength:s.maxTextChars,required:!0,value:c,onChange:p=>r(p.target.value)})]}),(0,e.jsxs)("label",{children:["What should it leave alone?",(0,e.jsx)("textarea",{name:"not",rows:3,maxLength:s.maxTextChars,defaultValue:a.not})]}),(0,e.jsxs)("label",{children:["Allowed files or folders ",(0,e.jsx)("span",{className:"meta",children:"optional; one per line"}),(0,e.jsx)("textarea",{name:"touches",rows:2,placeholder:`src/
|
|
4
4
|
tests/`,defaultValue:a.touches})]}),(0,e.jsx)("p",{className:"meta",children:"Blank allows work across this project. Add paths to keep the workflow focused."})]}),(0,e.jsxs)("details",{className:"card",open:b.some(p=>p.key!==""||p.label!=="")||void 0,children:[(0,e.jsxs)("summary",{children:["Ask something each time ",(0,e.jsx)("span",{className:"meta",children:"optional"})]}),(0,e.jsxs)("p",{className:"hint",children:["For example: “Test ","{{module}}"," and cover ","{{scenario}}",".” Add a question for each placeholder. People answer these when they use the recipe; the saved instructions stay the same."]}),(0,e.jsx)("p",{className:"meta",children:"Use answers in the name, instructions, exclusions, or success checks. Keep allowed paths and check commands fixed. Don’t ask for passwords or keys."}),(0,e.jsx)("div",{"data-recipe-questions":"",children:b.map((p,x)=>(0,e.jsxs)("fieldset",{className:"recipe-question",children:[(0,e.jsxs)("legend",{children:["Question ",x+1]}),(0,e.jsxs)("div",{className:"recipe-options",children:[(0,e.jsxs)("label",{children:["Short key",(0,e.jsx)("input",{type:"text",name:`input-${x}-key`,value:p.key,maxLength:32,placeholder:"module",pattern:"[a-z][a-z0-9_]{0,31}",onChange:k=>{let i=k.target.value;v(u=>u.map((F,H)=>H===x?{...F,key:i}:F))}})]}),(0,e.jsxs)("label",{children:["What should we ask?",(0,e.jsx)("input",{type:"text",name:`input-${x}-label`,value:p.label,maxLength:80,placeholder:"Which module should we work on?",onChange:k=>{let i=k.target.value;v(u=>u.map((F,H)=>H===x?{...F,label:i}:F))}})]})]}),(0,e.jsxs)("label",{children:["Default answer ",(0,e.jsx)("span",{className:"meta",children:"optional"}),(0,e.jsx)("input",{type:"text",name:`input-${x}-default`,defaultValue:p.defaultValue,maxLength:500})]}),(0,e.jsxs)("p",{className:"meta",children:["Use ",(0,e.jsx)("code",{"data-question-token":"",children:`{{${p.key||"module"}}}`})," in your instructions or a success check. Clear this row and its placeholders to remove the question."]}),(0,e.jsx)(o,{sm:!0,label:"Insert into instructions",onClick:()=>Y(p.key)})]},x))}),b.length<s.maxQuestions&&(0,e.jsx)(o,{sm:!0,label:"Add a question",onClick:()=>v(p=>[...p,{key:"",label:"",defaultValue:""}])})]}),(0,e.jsxs)("section",{className:"card",children:[(0,e.jsx)("h2",{children:"What does success look like?"}),(0,e.jsx)("p",{className:"hint",children:"Give each outcome the evidence you want to see. The workflow checks these before calling the work done."}),(0,e.jsx)("div",{"data-recipe-criteria":"",children:t.map((p,x)=>(0,e.jsxs)("fieldset",{className:"recipe-criterion",children:[(0,e.jsx)("legend",{children:x===0?"Success check 1":`Success check ${x+1} (optional)`}),(0,e.jsx)("input",{type:"hidden",name:`criterion-${x}-id`,value:p.id}),(0,e.jsxs)("label",{children:["What should be true?",(0,e.jsx)("textarea",{name:`criterion-${x}-statement`,rows:2,maxLength:300,defaultValue:p.statement})]}),(0,e.jsx)("div",{className:"recipe-evidence",children:ce.map(([k,i])=>(0,e.jsxs)("label",{children:[(0,e.jsx)("input",{type:"checkbox",name:`criterion-${x}-evidence`,value:k,defaultChecked:p.evidence.includes(k)}),i]},k))}),(0,e.jsxs)("label",{children:["How to check it ",(0,e.jsx)("span",{className:"meta",children:"optional; command or review instructions"}),(0,e.jsx)("input",{type:"text",name:`criterion-${x}-how`,defaultValue:p.how,maxLength:500})]})]},p.id))}),t.length<s.maxCriteria&&(0,e.jsx)(o,{sm:!0,label:"Add another success check",onClick:()=>d(p=>[...p,{id:`c${p.length+1}`,statement:"",evidence:["check"],how:""}])})]}),(0,e.jsxs)("section",{className:"card",children:[(0,e.jsx)("h2",{children:"How it should run"}),(0,e.jsxs)("div",{className:"recipe-options",children:[(0,e.jsxs)("label",{children:["Result",(0,e.jsxs)("select",{name:"deliverable",defaultValue:a.deliverable,children:[(0,e.jsx)("option",{value:"branch",children:"Code change with evidence"}),(0,e.jsx)("option",{value:"report",children:"Report without code changes"})]})]}),(0,e.jsxs)("label",{children:["Planning",(0,e.jsxs)("select",{name:"planning",defaultValue:a.planning,children:[(0,e.jsx)("option",{value:"auto",children:"Plan when helpful"}),(0,e.jsx)("option",{value:"required",children:"Always plan first"}),(0,e.jsx)("option",{value:"skip",children:"Use this scope directly"})]})]})]}),(0,e.jsx)("p",{className:"meta",children:"Report work investigates directly. Repeating work files the same scope each time; plan-first workflows run once."}),(0,e.jsxs)("label",{children:["Frequency",(0,e.jsxs)("select",{name:"cadence","data-recipe-cadence":"",value:n,onChange:p=>m(p.target.value==="repeat"?"repeat":"once"),children:[(0,e.jsx)("option",{value:"once",children:"Run once"}),(0,e.jsx)("option",{value:"repeat",children:"Repeat on a schedule"})]})]}),(0,e.jsxs)("div",{"data-recipe-recurring":"",hidden:n!=="repeat",children:[(0,e.jsxs)("fieldset",{"data-schedule-editor":"",children:[(0,e.jsx)("legend",{children:"When to run"}),(0,e.jsxs)("label",{children:["Repeat",(0,e.jsxs)("select",{name:"repeat",value:j,onChange:p=>l(p.target.value),children:[(0,e.jsx)("option",{value:"daily",children:"Daily"}),(0,e.jsx)("option",{value:"weekly",children:"Weekly"}),(0,e.jsx)("option",{value:"custom",children:"Custom interval"})]})]}),(0,e.jsx)("div",{"data-schedule-kind":"weekly",hidden:j!=="weekly",children:(0,e.jsxs)("label",{children:["Day",(0,e.jsx)("select",{name:"weekday",disabled:n!=="repeat"||j!=="weekly",defaultValue:a.weekday,children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((p,x)=>(0,e.jsx)("option",{value:String(x),children:p},x))})]})}),(0,e.jsxs)("div",{"data-schedule-kind":"calendar",hidden:j==="custom",children:[(0,e.jsxs)("label",{children:["Time",(0,e.jsx)("input",{type:"time",name:"time",disabled:n!=="repeat"||j==="custom",defaultValue:a.time})]}),(0,e.jsxs)("label",{children:["Timezone",(0,e.jsx)("input",{type:"text",name:"timezone",disabled:n!=="repeat"||j==="custom",defaultValue:a.timezone,autoComplete:"off",placeholder:"America/Los_Angeles"})]}),(0,e.jsx)("p",{className:"meta",children:"Daily and weekly times follow this timezone. A skipped clock time skips that occurrence; a repeated time runs once."})]}),(0,e.jsxs)("div",{"data-schedule-kind":"custom",hidden:j!=="custom",children:[(0,e.jsxs)("label",{children:["Every",(0,e.jsx)("input",{type:"number",name:"interval",min:1,disabled:n!=="repeat"||j!=="custom",defaultValue:a.interval})]}),(0,e.jsxs)("label",{children:["Unit",(0,e.jsxs)("select",{name:"interval-unit",disabled:n!=="repeat"||j!=="custom",defaultValue:a.intervalUnit,children:[(0,e.jsx)("option",{value:"minutes",children:"minutes"}),(0,e.jsx)("option",{value:"hours",children:"hours"}),(0,e.jsx)("option",{value:"days",children:"days"})]})]}),(0,e.jsx)("p",{className:"meta",children:"Intervals range from 5 minutes to 7 days."})]})]}),(0,e.jsxs)("label",{children:["Weekly spending limit ",(0,e.jsx)("span",{className:"meta",children:"optional, USD"}),(0,e.jsx)("input",{type:"number",name:"ceiling",min:"0.01",step:"0.01",disabled:n!=="repeat",defaultValue:a.ceiling})]}),(0,e.jsx)("p",{className:"meta",children:"One instance at a time. A spending limit requires an agent that reports dollar costs; approval checks this."})]})]}),(0,e.jsxs)("div",{className:"sticky-actions",children:[(0,e.jsx)(o,{variant:"primary",type:"submit",name:"purpose",value:s.creator?"recipe":"workflow",label:s.creator?"Preview recipe →":"Preview workflow →"}),!s.creator&&(0,e.jsx)(o,{type:"submit",name:"purpose",value:"recipe",label:"Preview recipe to save"}),(0,e.jsx)("p",{className:"meta",children:s.creator?"Save the instructions once. You can use the recipe whenever this work comes up.":"Previewing runs no agents. You’ll see the approval and scheduling steps next."})]})]})]})}function fl({view:s}){let{document:a}=s,c=r=>r.map(n=>ce.find(([m])=>m===n)?.[1]??n).join(" · ");return s.mode==="recipe"?(0,e.jsxs)("div",{"data-kit-page":"",children:[(0,e.jsx)("a",{className:"meta",href:`/recipes/edit?preview=${s.token}&purpose=recipe`,children:"← Edit recipe"}),(0,e.jsxs)("div",{className:"recipe-heading",children:[(0,e.jsx)("p",{className:"recipe-kicker",children:"2 · Preview your recipe"}),(0,e.jsx)("h1",{children:a.name}),(0,e.jsx)("p",{className:"hint",children:a.description||"A reusable starting point for work you do often."})]}),(0,e.jsxs)("section",{className:"card",children:[(0,e.jsx)("h2",{children:"When someone uses this recipe"}),s.inputs.length>0?(0,e.jsx)("ol",{children:s.inputs.map(r=>(0,e.jsxs)("li",{children:[(0,e.jsx)("strong",{children:r.label}),(0,e.jsxs)("p",{className:"meta",children:[`{{${r.key}}}`,r.defaultValue?` · Default: ${r.defaultValue}`:" · Answer required each time"]})]},r.key))}):(0,e.jsx)("p",{children:"No questions to answer. The saved scope is ready to preview and use."}),(0,e.jsx)("p",{children:"Each use previews the exact work before creating it. The project’s approval and recovery settings still apply."})]}),(0,e.jsxs)("section",{className:"card",children:[(0,e.jsx)("h2",{children:"Saved instructions"}),(0,e.jsx)("p",{className:"recap",children:a.goal}),(0,e.jsx)("h3",{children:"Leave alone"}),(0,e.jsx)("p",{className:"recap",children:a.outOfScope??"No additional exclusions."}),(0,e.jsx)("h3",{children:"Allowed paths"}),(0,e.jsx)("p",{children:a.touches.length>0?a.touches.join(", "):"This project"}),(0,e.jsx)("h3",{children:"Success checks"}),(0,e.jsx)("ul",{children:a.acceptance.map((r,n)=>(0,e.jsxs)("li",{children:[r.statement,(0,e.jsxs)("p",{className:"meta",children:[c(r.evidence),r.how?` · ${r.how}`:""]})]},n))}),(0,e.jsxs)("p",{className:"meta",children:[a.deliverable==="report"?"Report":"Code change"," · ",a.schedule===null?"Run once":a.schedule," · ",a.planning==="required"?"Plan first":a.planning==="auto"?"Plan when helpful":"Use the approved scope directly",a.costCeilingUsd===null?"":` · $${a.costCeilingUsd} weekly limit`]})]}),(0,e.jsxs)("section",{className:"card recipe-launch",children:[(0,e.jsxs)("div",{children:[s.saved!==null?(0,e.jsx)("a",{className:"new-task",href:`/recipes/run?recipe=${s.saved.id}&revision=${s.saved.revision}`,children:"Use recipe →"}):(0,e.jsxs)(h,{action:"/recipes/save",children:[(0,e.jsx)("input",{type:"hidden",name:"projectRevision",value:String(s.projectRevision)}),(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),(0,e.jsx)("input",{type:"hidden",name:"preview",value:s.token}),(0,e.jsx)("input",{type:"hidden",name:"next",value:"use"}),(0,e.jsx)(o,{variant:"primary",type:"submit",label:"Save recipe"})]}),(0,e.jsx)("p",{className:"meta",children:"Saving creates no work. Everyone with project access can reuse this copy."})]}),(0,e.jsx)("a",{href:`/recipes/export?preview=${s.token}`,children:"Export recipe JSON"})]})]}):(0,e.jsxs)("div",{"data-kit-page":"",children:[(0,e.jsx)("a",{href:`/recipes/edit?preview=${s.token}`,className:"meta",children:"← Edit this workflow"}),(0,e.jsxs)("div",{className:"recipe-heading",children:[(0,e.jsx)("p",{className:"recipe-kicker",children:"3 · Preview"}),(0,e.jsx)("h1",{children:a.name}),(0,e.jsx)("p",{className:"hint",children:a.description})]}),(0,e.jsxs)("div",{className:"recipe-preview-grid",children:[(0,e.jsxs)("div",{children:[(0,e.jsxs)("section",{className:"card",children:[(0,e.jsx)("h2",{children:"What will happen"}),(0,e.jsx)("ol",{className:"recipe-steps",children:s.steps.map((r,n)=>(0,e.jsxs)("li",{children:[(0,e.jsx)("strong",{children:r.title}),(0,e.jsx)("p",{children:r.detail})]},n))})]}),(0,e.jsxs)("section",{className:"card",children:[(0,e.jsx)("h2",{children:"The agreed work"}),(0,e.jsx)("p",{className:"recap",children:a.goal}),(0,e.jsx)("h3",{children:"Leave alone"}),(0,e.jsx)("p",{className:"recap",children:a.outOfScope??"No additional exclusions."}),(0,e.jsx)("h3",{children:"Allowed paths"}),(0,e.jsx)("p",{children:a.touches.length>0?a.touches.join(", "):"This project"}),(0,e.jsx)("h3",{children:"Success checks"}),(0,e.jsx)("ul",{children:a.acceptance.map((r,n)=>(0,e.jsxs)("li",{children:[(0,e.jsx)("strong",{children:r.statement}),(0,e.jsxs)("p",{className:"meta",children:[c(r.evidence),r.how?` · ${r.how}`:""]})]},n))})]})]}),(0,e.jsxs)("aside",{children:[(0,e.jsxs)("section",{className:"card",children:[(0,e.jsx)("h2",{children:"Before it starts"}),s.readiness.map((r,n)=>(0,e.jsxs)("p",{children:[(0,e.jsx)("strong",{children:r.title}),(0,e.jsx)("br",{}),(0,e.jsxs)("span",{className:"meta",children:[r.detail,r.href!==void 0&&(0,e.jsxs)(e.Fragment,{children:[" ",(0,e.jsx)("a",{href:r.href,children:"Open settings →"})]})]})]},n)),(0,e.jsx)("p",{className:"meta",children:"These checks describe current setup. Agent availability and approval are checked again when work starts."})]}),(0,e.jsxs)("section",{className:"card",children:[(0,e.jsx)("h2",{children:"Schedule & control"}),(0,e.jsx)("p",{children:s.scheduleWords}),(0,e.jsx)("p",{children:a.costCeilingUsd===null?"Uses existing project and agent budget controls.":`Up to $${a.costCeilingUsd.toFixed(2)} per rolling seven days.`}),(0,e.jsx)("p",{children:a.schedule!==null?"Approve the routine once on the next screen. Pause it any time from scheduled work.":s.auto?"Your signed project policy will be evaluated when you create this workflow.":"Review and approve on the task page. You can stop or resume there."})]})]})]}),(0,e.jsxs)("div",{className:"card recipe-launch",children:[(0,e.jsxs)("div",{children:[s.targetHref!==null?(0,e.jsx)("a",{className:"new-task",href:s.targetHref,children:"Open created workflow →"}):(0,e.jsxs)(h,{action:"/recipes/launch",children:[(0,e.jsx)("input",{type:"hidden",name:"projectRevision",value:String(s.projectRevision)}),(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),(0,e.jsx)("input",{type:"hidden",name:"preview",value:s.token}),(0,e.jsx)(o,{variant:"primary",type:"submit",label:a.schedule!==null?"Create scheduled workflow":s.auto?"Create workflow":"Create task for approval"})]}),(0,e.jsxs)("p",{className:"meta",children:[a.schedule!==null?"Nothing repeats until you turn the schedule on.":"A matching signed policy may start work automatically."," Creating this workflow twice returns the same work."]})]}),(0,e.jsxs)("div",{children:[s.saved!==null?(0,e.jsx)("a",{href:`/recipes/start?recipe=${s.saved.id}&revision=${s.saved.revision}`,children:"Recipe saved · reuse it →"}):(0,e.jsxs)(h,{action:"/recipes/save",children:[(0,e.jsx)("input",{type:"hidden",name:"projectRevision",value:String(s.projectRevision)}),(0,e.jsx)("input",{type:"hidden",name:"repo",value:s.repo}),(0,e.jsx)("input",{type:"hidden",name:"preview",value:s.token}),(0,e.jsx)(o,{type:"submit",label:"Save as a project recipe"})]}),(0,e.jsx)("a",{href:`/recipes/export?preview=${s.token}`,children:"Export recipe JSON"}),(0,e.jsx)("p",{className:"meta",children:"Save or export without running anything. Sharing includes the work definition, never project access or approvals."})]})]})]})}export{hl as FlowImportView,pl as FlowsListView,ul as GalleryUseView,xl as KitView,ml as NewFlowView,gl as RecipeEditorView,fl as RecipePreviewView,vl as RecipeRunView,bl as SubagentDetailView,jl as SubagentsListView};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! Third-party notices: /assets/THIRD_PARTY_NOTICES.txt */
|
|
2
|
+
import{a as V}from"./chunk-shared.b664b4e2524d0f293cecbb854f7479a13c2494fbabcef45232900bf7235f4ae0.js";import{p6$a as _,p6$b as ee,p6$c as la}from"./chunk-core.6128decfe528d89de1445dc1ec36e9f13dabd76eba61d13310fc1302db2252eb.js";import{p7$a as da,p7$b as ca,p7$c as pa,p7$d as ha,p7$e as ua,p7$f as ma,p7$g as xa,p7$h as ja,p7$i as ga,p7$j as ba,p7$k as $a,p7$l as fa,p7$m as va}from"./chunk-core.6128decfe528d89de1445dc1ec36e9f13dabd76eba61d13310fc1302db2252eb.js";import{p1$a as ya,p1$b as Na,p1$c as Ca,p1$d as ae,p1$e as Sa,p1$f as Aa}from"./chunk-core.6128decfe528d89de1445dc1ec36e9f13dabd76eba61d13310fc1302db2252eb.js";import{p2$a as Ia,p2$b as qa,p2$c as La,p2$d as Oa,p2$e as Ra,p2$f as Pa,p2$g as Wa,p2$h as Ba,p2$i as Da,p2$j as Ha,p2$k as Ma,p2$l as Ea,p2$m as Ga,p2$n as Ua,p2$o as Ya,p2$p as za,p2$q as Va,p2$r as Ka,p2$s as Qa,p2$t as Ja}from"./chunk-core.6128decfe528d89de1445dc1ec36e9f13dabd76eba61d13310fc1302db2252eb.js";import{a as D,b as Fe,c as K}from"./chunk-shared.8940b7334ec79bcd25cb8e2d41958eecfe71d31340cf8de3c3d99f813cd126af.js";import{p13$a as se,p13$b as _a}from"./chunk-core.6128decfe528d89de1445dc1ec36e9f13dabd76eba61d13310fc1302db2252eb.js";import{p3$$ as ss,p3$$a as ts,p3$$b as ns,p3$A as rs,p3$Aa as E,p3$Ab as te,p3$B as ls,p3$Ba as is,p3$Bb as ne,p3$C as os,p3$Ca as ds,p3$Cb as cs,p3$D as ps,p3$Da as hs,p3$Db as us,p3$E as ms,p3$Ea as xs,p3$Eb as js,p3$F as gs,p3$Fa as bs,p3$Fb as $s,p3$G as re,p3$Ga as fs,p3$Gb as vs,p3$H as le,p3$Ha as ks,p3$Hb as G,p3$I as b,p3$Ia as ws,p3$Ib as ys,p3$J as Ns,p3$Ja as Cs,p3$Jb as w,p3$K as Ss,p3$Ka as As,p3$Kb as Ts,p3$L as Fs,p3$La as Is,p3$Lb as qs,p3$M as Ls,p3$Ma as Os,p3$Mb as Rs,p3$N as Ps,p3$Na as Ws,p3$Nb as Bs,p3$O as Ds,p3$Oa as Hs,p3$Ob as Ms,p3$P as Es,p3$Pa as ie,p3$Pb as Gs,p3$Q as Us,p3$Qa as Ys,p3$Qb as zs,p3$R as Vs,p3$Ra as Ks,p3$Rb as Qs,p3$S as Js,p3$Sa as oe,p3$Sb as Xs,p3$T as Zs,p3$Ta as S,p3$Tb as _s,p3$U as et,p3$Ua as at,p3$Ub as st,p3$V as tt,p3$Va as nt,p3$Vb as de,p3$W as rt,p3$Wa as lt,p3$Wb as it,p3$X as ot,p3$Xa as U,p3$Xb as dt,p3$Y as ct,p3$Ya as pt,p3$Yb as ce,p3$Z as ht,p3$Za as ut,p3$Zb as pe,p3$_ as mt,p3$_a as xt,p3$_b as jt,p3$a as gt,p3$aa as bt,p3$ab as $t,p3$ac as ft,p3$b as vt,p3$ba as kt,p3$bb as he,p3$bc as wt,p3$c as yt,p3$ca as Nt,p3$cb as m,p3$cc as Ct,p3$d as St,p3$da as At,p3$db as j,p3$dc as Tt,p3$e as Ft,p3$ea as It,p3$eb as f,p3$ec as qt,p3$f as Lt,p3$fa as Ot,p3$fb as ue,p3$fc as me,p3$g as Rt,p3$ga as Pt,p3$gb as Wt,p3$gc as Bt,p3$h as Dt,p3$ha as Ht,p3$hb as y,p3$hc as Mt,p3$i as Et,p3$ia as Gt,p3$ib as xe,p3$ic as Ut,p3$j as A,p3$ja as Yt,p3$jb as je,p3$jc as ge,p3$k as T,p3$ka as be,p3$kb as zt,p3$kc as Vt,p3$l as Kt,p3$la as Qt,p3$lb as Y,p3$lc as $e,p3$m as Jt,p3$ma as Xt,p3$mb as Zt,p3$mc as _t,p3$n as en,p3$na as an,p3$nb as sn,p3$nc as tn,p3$o as nn,p3$oa as rn,p3$ob as ln,p3$p as on,p3$pa as fe,p3$pb as k,p3$q as dn,p3$qa as ve,p3$qb as ke,p3$r as cn,p3$ra as we,p3$rb as F,p3$s as pn,p3$sa as hn,p3$sb as P,p3$t as un,p3$ta as mn,p3$tb as g,p3$u as xn,p3$ua as jn,p3$ub as I,p3$v as gn,p3$va as bn,p3$vb as z,p3$w as $n,p3$wa as fn,p3$wb as q,p3$x as vn,p3$xa as kn,p3$xb as L,p3$y as wn,p3$ya as yn,p3$yb as ye,p3$z as Nn,p3$za as Cn,p3$zb as O}from"./chunk-core.6128decfe528d89de1445dc1ec36e9f13dabd76eba61d13310fc1302db2252eb.js";import{p4$a as Tn,p4$b as N,p4$c as W,p4$d as Fn,p4$e as B}from"./chunk-core.6128decfe528d89de1445dc1ec36e9f13dabd76eba61d13310fc1302db2252eb.js";var R=N(W(),1),n=N(B(),1);function Ie(e){let t=se(e);return t===""?"":/^\d/.test(t)?"Opened today":t.startsWith("Yesterday")?"Opened yesterday":`Opened ${t}`}function qe(e,t=44){let s=Array.from(e);if(t<8)return{head:e,tail:""};if(s.length<=t){let r=Math.min(s.length,Math.ceil(t*.6));return{head:s.slice(0,s.length-r).join(""),tail:s.slice(s.length-r).join("")}}let l=Math.ceil((t-1)*.6);return{head:`${s.slice(0,t-1-l).join("")}…`,tail:s.slice(s.length-l).join("")}}function Le({path:e,destination:t,label:s}){return(0,n.jsxs)(b,{action:"/projects/open",children:[(0,n.jsx)("input",{type:"hidden",name:"path",value:e}),(0,n.jsx)("input",{type:"hidden",name:"return",value:t}),(0,n.jsx)(m,{type:"submit",sm:!0,label:s})]})}function Ne({row:e,returnTo:t,choosing:s}){let l=qe(e.shortPath,36),r=e.open?"Open now":e.openedAt===null?"":Ie(e.openedAt),o=e.status===null?null:e.status==="needs"?(0,n.jsx)(f,{word:`${e.waiting} waiting on you`,tone:"ask"}):(0,n.jsx)(ue,{status:e.status});return(0,n.jsx)(L,{href:e.href,chip:o,title:e.name,wait:e.status==="needs",desc:(0,n.jsxs)("span",{className:"k-mono",title:e.path,children:[l.head,l.tail]}),meta:(0,n.jsxs)(n.Fragment,{children:[e.summary!==""&&(0,n.jsx)("span",{children:e.summary??"Not scanned"}),r!==""&&(0,n.jsx)("span",{children:r})]}),action:s||!e.open?(0,n.jsx)(Le,{path:e.path,destination:t,label:s?"Choose":"Open"}):(0,n.jsx)(j,{sm:!0,href:"/tasks/new",label:"New task"})})}function Oe({review:e}){let[t,s]=(0,R.useState)("");return(0,n.jsxs)("div",{className:"k-doc",children:[(0,n.jsx)(w,{status:(0,n.jsxs)("h2",{children:["Clone ",e.nameWithOwner]}),text:(0,n.jsxs)(n.Fragment,{children:["Review before anything is downloaded. Clones into ",(0,n.jsx)("span",{className:"k-mono",children:e.shortTarget})," and adds it as a project. Large-file (LFS) objects aren’t downloaded."]}),acts:(0,n.jsxs)(b,{action:"/projects/onboard-confirm",className:"k-approve","data-approval-kind":"step-up",children:[(0,n.jsx)("input",{type:"hidden",name:"nonce",value:e.nonce}),e.large&&(0,n.jsx)("div",{className:"k-checks",children:(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"checkbox",name:"big-ok",value:"1",required:!0}),e.nameWithOwner," is ",e.diskUsageKib===null?"of unknown size":e.sizeLabel,". Clone it anyway"]})}),!e.localOwner&&(0,n.jsx)(re,{kind:"step-up",field:"token",children:(0,n.jsx)(A,{label:"Your password",children:({id:l})=>(0,n.jsx)(T,{id:l,name:"token",type:"password",autoComplete:"current-password",value:t,onChange:r=>s(r.target.value)})})}),(0,n.jsx)("div",{className:"k-acts",children:(0,n.jsx)(m,{type:"submit",variant:"primary",label:"Clone and add"})})]}),terms:e.terms,err:e.problem}),(0,n.jsx)(ke,{rows:[["Repository",(0,n.jsxs)("span",{className:"k-mono",children:["github.com/",e.nameWithOwner]})],["Size",e.sizeLabel],["Into",(0,n.jsx)("span",{className:"k-mono",children:e.shortTarget})]]})]})}function Re({add:e,returnTo:t}){let{github:s,local:l}=e;return(0,n.jsxs)("div",{className:"k-sec",children:[s!==null&&(0,n.jsxs)("section",{className:"k-sec","aria-labelledby":"add-gh",children:[(0,n.jsx)("h3",{id:"add-gh",children:"From GitHub"}),s.enabled?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(k,{children:(0,n.jsx)(j,{sm:!0,href:"/projects/github",label:"Choose a GitHub repository"})}),(0,n.jsxs)(b,{action:"/projects/onboard-preview",className:"k-sec",children:[(0,n.jsx)(A,{label:"Or paste a GitHub link",hint:"You review it before anything is downloaded.",error:s.linkProblem,children:({id:r,describedBy:o,invalid:x})=>(0,n.jsx)(T,{id:r,name:"repo",placeholder:"owner/name or https://github.com/owner/name",autoComplete:"off",spellCheck:!1,"aria-describedby":o,"aria-invalid":x||void 0})}),s.roots.length>1?(0,n.jsx)(A,{label:"Clone into",children:({id:r})=>(0,n.jsx)(Y,{wide:!0,id:r,name:"root",items:s.roots.map(o=>[o.value,o.label])})}):(0,n.jsx)("input",{type:"hidden",name:"root",value:"0"}),(0,n.jsx)(k,{children:(0,n.jsx)(m,{sm:!0,type:"submit",label:"Review"})}),s.roots.length===1&&(0,n.jsxs)(g,{children:["Clones into ",(0,n.jsx)("span",{className:"k-mono",children:s.roots[0].label}),"."]})]})]}):(0,n.jsx)(g,{children:s.why})]}),(0,n.jsxs)("section",{className:"k-sec","aria-labelledby":"add-local",children:[(0,n.jsx)("h3",{id:"add-local",children:"From this computer"}),l.pathProblem!==null&&(0,n.jsx)(F,{children:l.pathProblem}),l.pick?(0,n.jsx)(k,{children:(0,n.jsx)(j,{sm:!0,href:"/projects/pick",label:"Browse…"})}):l.browsable?(0,n.jsx)(k,{children:(0,n.jsx)(j,{sm:!0,href:"/projects/browse",label:"Choose a folder"})}):null,(0,n.jsxs)(b,{action:"/projects/open",className:"k-sec",children:[(0,n.jsx)("input",{type:"hidden",name:"return",value:t}),(0,n.jsx)("input",{type:"hidden",name:"via",value:"path"}),(0,n.jsx)(A,{label:"Or enter an exact path",hint:l.outside?"Add any git repository on this computer — outside your projects folder, Toolroll asks for your password.":"It must be a git repository.",children:({id:r,describedBy:o})=>(0,n.jsx)(T,{id:r,name:"path",defaultValue:l.pathValue,placeholder:"~/code/your-repo",autoComplete:"off",spellCheck:!1,autoCapitalize:"none","aria-describedby":o,"aria-invalid":l.pathProblem!==null||void 0})}),(0,n.jsx)(k,{children:(0,n.jsx)(m,{sm:!0,type:"submit",variant:"primary",label:"Add and open"})})]})]})]})}function Hn({view:e}){let[t,s]=(0,R.useState)(null),[l,r]=(0,R.useState)(!1),o=(0,R.useRef)(null),x=e.recent.length===0&&e.available.length===0,c=e.add.review===null,i=u=>{s(u.currentTarget),r(!0)};return(0,R.useEffect)(()=>{e.add.openOnLoad&&(s(o.current?.querySelector("button")??null),r(!0))},[e.add.openOnLoad]),(0,n.jsxs)("div",{className:"w-full","data-kit-page":!0,children:[(0,n.jsx)(O,{title:e.choosing?"New task":"Projects",...e.choosing?{ctx:"Choose the project it belongs to"}:{},right:(0,n.jsx)("span",{ref:o,children:(0,n.jsx)(m,{variant:c?"primary":"outline",sm:!0,lead:"plus",label:"Add project",docked:c,"aria-haspopup":"dialog",onClick:i})}),...c?{}:{trailing:(0,n.jsx)(m,{variant:"ghost",iconOnly:"plus",label:"Add project","aria-haspopup":"dialog",onClick:i})}}),(e.problem!==null||e.said!==null)&&(0,n.jsxs)("div",{className:"px-6 pt-4 phone:px-4",children:[e.problem!==null&&(0,n.jsx)(F,{children:e.problem}),e.said!==null&&(0,n.jsx)(P,{children:e.said})]}),e.add.review!==null&&(0,n.jsx)(Oe,{review:e.add.review}),e.recent.length>0&&(0,n.jsxs)("section",{"aria-label":"Projects","data-project-list":"",children:[(0,n.jsx)(q,{label:"Projects",count:(0,n.jsx)(y,{n:e.recent.length})}),e.recent.map(u=>(0,n.jsx)(Ne,{row:u,returnTo:e.returnTo,choosing:e.choosing},u.path))]}),e.available.length>0&&(0,n.jsxs)("section",{"aria-label":"Available","data-project-list":"",children:[(0,n.jsx)(q,{label:"Available",count:(0,n.jsx)(y,{n:e.available.length})}),e.available.map(u=>(0,n.jsx)(Ne,{row:u,returnTo:e.returnTo,choosing:e.choosing},u.path))]}),x&&(0,n.jsx)(I,{title:"No projects yet.",text:"A project is a git repository your agents work in. Add one from GitHub or from a folder on this computer.",action:(0,n.jsx)(m,{sm:!0,label:"Add project",lead:"plus","aria-haspopup":"dialog",onClick:i})}),l&&(0,n.jsx)(G,{kind:"drawer",title:"Add project",trigger:t,onClose:()=>r(!1),children:(0,n.jsx)(Re,{add:e.add,returnTo:e.returnTo})}),c&&(0,n.jsx)(de,{children:(0,n.jsx)(m,{variant:"primary",lead:"plus",label:"Add project","aria-haspopup":"dialog",onClick:i})})]})}var $=N(W(),1),a=N(B(),1);function J(e,t){if(e.endedAt===null)return`Running ${V(e.startedAt,t)}`;let s=t-Date.parse(e.endedAt);return`Ran ${V(e.startedAt,Date.parse(e.endedAt))} · finished ${s<6e4?"just now":`${V(e.endedAt,t)} ago`}`}var X=e=>{let t=Date.parse(e);return Number.isNaN(t)?"":fe(t)},Pe=(e,t)=>{let s=Date.parse(e);return Number.isNaN(s)?"":we(s,t)?X(e):ve(s)},H=(e,t,s)=>`${e} ${e===1?t:s}`;function Z(e){return e.group==="needs-you"?{word:e.label,tone:"ask"}:e.group==="stuck"?{word:"Stuck",tone:""}:e.group==="working"?{word:"Building",tone:"live"}:e.label==="Done"?{word:"Finished",tone:"done"}:e.label==="No changes"?{word:"No changes",tone:"done"}:e.label==="Failed"?{word:"Failed",tone:"failed"}:{word:e.label,tone:""}}function We({row:e}){let{word:t,tone:s}=Z(e);return(0,a.jsxs)("span",{className:"agents-chip","data-agent-state":e.label,children:[(0,a.jsx)(f,{word:t,tone:s}),e.group==="done"&&(0,a.jsx)("span",{className:"agents-unread",role:"img","aria-label":"Unread",title:"Unread"})]})}function Be({row:e}){let t=S();return(0,a.jsx)("time",{dateTime:e.endedAt??e.startedAt,className:"k-num","data-agent-time":!0,children:J(e,t)})}function Te({text:e}){let[t,s]=(0,$.useState)("no");return(0,a.jsxs)("span",{className:"agents-copy",children:[(0,a.jsx)("code",{className:"k-code",children:e}),(0,a.jsx)(m,{sm:!0,label:t==="yes"?"Copied":"Copy",onClick:()=>{if(navigator.clipboard?.writeText===void 0){s("failed");return}navigator.clipboard.writeText(e).then(()=>s("yes"),()=>s("failed"))}}),t==="failed"&&(0,a.jsx)("span",{className:"k-note",role:"status",children:"Couldn't copy. Select it and copy it yourself."})]})}var De={"30m":30*6e4,"2h":120*6e4,"24h":1440*6e4},Ce={"30m":"the last 30 minutes","2h":"the last 2 hours","24h":"the last 24 hours"};function He({row:e}){let t=e.endedAt!==null&&e.group!=="needs-you",s=e.group==="needs-you"?e.label==="Question"?(0,a.jsx)(j,{sm:!0,href:e.href,label:"Answer"}):(0,a.jsx)(j,{sm:!0,href:`/t/${encodeURIComponent(e.taskId)}`,label:"Open task"}):t?(0,a.jsx)(j,{sm:!0,href:`/r/${e.runId}`,label:"Open record"}):(0,a.jsx)(j,{sm:!0,href:e.href,label:"Watch"}),l=[e.line??(t?e.diff:null),e.agent].filter(Boolean).join(" · ");return(0,a.jsx)("div",{"data-agent-row":e.runId,"data-agent-group":e.group,children:(0,a.jsx)(L,{href:e.href,wait:e.group==="needs-you",chip:(0,a.jsx)(We,{row:e}),title:e.title,desc:(0,a.jsx)("span",{"data-agent-line":!0,title:e.line??void 0,children:l}),meta:(0,a.jsxs)(a.Fragment,{children:[e.project&&(0,a.jsx)("span",{children:e.project}),(0,a.jsx)(Be,{row:e}),e.diff!==null&&!t&&(0,a.jsx)("span",{className:"k-num","data-agent-diff":!0,children:e.diff})]}),action:s})})}function Q({id:e,label:t,rows:s,ink:l,right:r}){return(0,a.jsxs)("section",{"data-agent-group-section":e,"aria-labelledby":`agents-${e}`,children:[(0,a.jsx)(q,{id:`agents-${e}`,label:t,count:(0,a.jsx)(y,{n:s.length,ink:l===!0}),right:r}),s.map(o=>(0,a.jsx)(He,{row:o},o.runId))]})}var Me=e=>e.retired?(0,a.jsx)(f,{word:"Retired"}):(0,a.jsx)(f,{word:U[e.state].word,tone:U[e.state].tone});function Ee({one:e,others:t}){let s=S(3e4);return(0,a.jsx)("div",{"data-computer-offline":e.name,children:(0,a.jsx)(w,{status:(0,a.jsxs)(a.Fragment,{children:[Me(e),(0,a.jsxs)("h2",{children:[e.name," is offline"]})]}),text:`It stopped answering at ${Pe(e.heardAt,s)}. Nothing is lost: work it would take waits in the queue${t?", and the other computers keep building":""}. To bring it back, open a terminal on ${e.host}, go to the project's folder and run:`,acts:(0,a.jsx)(Te,{text:"toolroll up"}),terms:(0,a.jsxs)(a.Fragment,{children:["Keep it running; it picks up queued work on its own. If ",e.name," is gone for good, retire it in ",(0,a.jsx)("a",{className:"k-link",href:`/settings/computers?section=builders&open=1&computer=${encodeURIComponent(e.name)}#builders`,children:"Settings → Computers"}),"."]})})})}function Ge(){return(0,a.jsx)("div",{"data-computer-none":!0,children:(0,a.jsx)(w,{status:(0,a.jsx)("h2",{children:"No computer is building yet"}),text:"Approved tasks wait until one is connected. On the computer where the project lives, open the project's folder in a terminal and run:",acts:(0,a.jsx)(Te,{text:"toolroll up"}),terms:"Keep it running. The console alone (toolroll serve) doesn't build."})})}function Ue({computers:e}){let t=e.list.filter(s=>!s.retired&&s.state!=="offline").length;return(0,a.jsxs)("section",{id:"computers",className:"agents-sec","aria-labelledby":"agents-computers","data-computers":!0,children:[(0,a.jsx)(q,{id:"agents-computers",label:"Computers that build",count:(0,a.jsx)(y,{n:e.list.length}),right:(0,a.jsx)(j,{sm:!0,variant:"ghost",href:"/settings/computers?section=builders",label:"Manage"})}),e.list.length===0?(0,a.jsx)("div",{className:"agents-pad",children:(0,a.jsx)(Ge,{})}):(0,a.jsx)("p",{className:"agents-line",children:t===0?"None is taking work now.":`${H(t,"computer","computers")} taking work.`})]})}var Se={plan:["Plan","Writes the plan you approve"],build:["Build","Does the work inside the approved plan"],repair:["Repair","Fixes a malformed handoff in the same session"],review:["Review","Reads the result against the requirements"]};function Ye({view:e}){let[t]=E(()=>!1,()=>location.hash==="#models"),s=e.system??null,l=s!==null&&(s.workspaces.length>0||s.service!==null||s.outbox>0||s.external.length>0);return(0,a.jsxs)("section",{id:"models",className:"agents-sec agents-models","data-agent-phases":!0,children:[(0,a.jsx)(z,{summary:"Model per phase",open:t,children:(0,a.jsxs)("div",{className:"agents-phases",children:[(e.phases??[]).map(r=>(0,a.jsxs)("div",{className:"agents-phase","data-phase":r.phase,children:[(0,a.jsx)("b",{children:Se[r.phase]?.[0]??r.phase}),(0,a.jsx)("span",{className:"k-muted",children:Se[r.phase]?.[1]??""}),r.model===null?(0,a.jsx)("span",{children:r.problem}):(0,a.jsxs)("span",{children:[r.model,r.noDollars&&(0,a.jsx)("span",{className:"k-muted",children:" · reports tokens, not dollars"})]}),(0,a.jsx)("span",{className:"k-muted",children:r.source})]},r.phase)),(0,a.jsxs)(g,{children:["Repair always stays on the provider that built; only its model can differ. ",(0,a.jsx)("a",{className:"k-link",href:"/settings/agents",children:"Change in Settings → Agents and models"})]})]})}),l&&s!==null&&(0,a.jsx)(z,{summary:"Workspaces and sync",children:(0,a.jsxs)("div",{className:"agents-phases",children:[s.service!==null&&(0,a.jsx)("p",{children:s.service.running?`The background service is running, since ${X(s.service.at)}.`:`The background service last ran: ${s.service.built} built, ${s.service.broke} broke · ended ${X(s.service.at)}.`}),s.workspaces.length>0&&(0,a.jsx)("ul",{className:"agents-list",children:s.workspaces.map(r=>(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:"k-mono",children:r.name}),(0,a.jsxs)("span",{className:"k-muted",children:[r.branch," · ",r.state]})]},r.name))}),s.outbox>0&&(0,a.jsxs)("p",{children:[H(s.outbox,"notification waits","notifications wait")," to be delivered."]}),s.external.map(r=>(0,a.jsxs)("p",{children:[(0,a.jsx)("span",{className:"k-mono",children:r.repo})," · ",r.state]},r.repo))]})})]})}function ze({view:e}){let t=S(3e4),[s,l]=(0,$.useState)(e.window??"24h"),r=d=>{let C=d==="30m"||d==="2h"?d:"24h";l(C);try{let M=new URL(location.href);C==="24h"?M.searchParams.delete("window"):M.searchParams.set("window",C),history.replaceState(history.state,"",M)}catch{}},o=e.groups.flatMap(d=>d.rows),x=o.filter(d=>d.group==="needs-you"),c=o.filter(d=>d.endedAt===null&&d.group!=="needs-you"),i=o.filter(d=>d.endedAt!==null&&d.group!=="needs-you"&&t-Date.parse(d.endedAt)<=De[s]).sort((d,C)=>+(C.group==="done")-+(d.group==="done")),u=(e.computers?.list??[]).filter(d=>d.state==="offline"&&!d.retired),h=(e.computers?.list??[]).some(d=>d.state!=="offline"),v=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(je,{label:"Finished in",current:s,onChange:r,items:[{key:"30m",label:"30 min"},{key:"2h",label:"2 h"},{key:"24h",label:"24 h"}]}),(0,a.jsx)(j,{sm:!0,variant:"ghost",href:"/agents?view=live",label:"Live view"}),e.terminals===!0&&(0,a.jsx)(j,{sm:!0,href:"/agents/terminals",label:"Terminals"})]});return(0,a.jsxs)("div",{className:"agents-page",id:"agents-view","data-agents-board":!0,children:[(0,a.jsx)(O,{title:"Agents",ctx:`All projects · ${H(c.length,"agent","agents")} building`,right:v}),e.computerSaid&&(0,a.jsx)("div",{className:"agents-pad","data-computer-said":!0,children:e.computerSaid.tone==="error"?(0,a.jsx)(F,{children:e.computerSaid.text}):(0,a.jsx)(P,{children:e.computerSaid.text})}),u.map(d=>(0,a.jsx)("div",{className:"agents-pad",children:(0,a.jsx)(Ee,{one:d,others:h})},d.name)),x.length===0&&c.length===0&&(0,a.jsx)("div",{"data-agents-empty":!0,children:(0,a.jsx)(I,{title:"No agents are working.",text:"An agent starts when you approve a plan. What finished in the window you pick shows below.",action:(0,a.jsx)(j,{sm:!0,href:"/",label:"Open Work"})})}),x.length>0&&(0,a.jsx)(Q,{id:"needs-you",label:"Needs you",rows:x,ink:!0}),c.length>0&&(0,a.jsx)(Q,{id:"working",label:"Working",rows:c}),(0,a.jsx)(Q,{id:"finished",label:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"k-desk-only",children:["Finished in ",Ce[s]]}),(0,a.jsx)("span",{className:"k-phone-only",children:"Finished"})]}),rows:i,right:(0,a.jsx)("span",{className:"k-phone-only",children:(0,a.jsx)(Y,{sm:!0,"aria-label":"Finished in",value:s,onChange:d=>r(d.target.value),items:[["30m","Last 30 min"],["2h","Last 2 h"],["24h","Last 24 h"]]})})}),i.length===0&&(0,a.jsxs)("p",{className:"agents-none",children:["Nothing finished in ",Ce[s],"."]}),e.computers!=null&&(0,a.jsx)(Ue,{computers:e.computers}),e.phases!=null&&(0,a.jsx)(Ye,{view:e}),e.terminals===!0&&(0,a.jsx)("p",{className:"agents-line k-phone-only",children:(0,a.jsx)("a",{className:"k-link",href:"/agents/terminals",children:"Terminals"})})]})}function Ve(e,t){let[s,l]=(0,$.useState)(null);return(0,$.useEffect)(()=>{if(l(null),e===null||!t)return;let r=`${e}${e.includes("?")?"&":"?"}format=json`,o=!1,x=0,c=async()=>{let i=!0;try{let u=await fetch(r,{cache:"no-store",credentials:"same-origin",redirect:"manual"});if(u.ok&&!o){let h=await u.json();l(h),h.kind==="note"&&h.final&&(i=!1)}}catch{}!o&&i&&(x=window.setTimeout(()=>{c()},1e4))};return c(),()=>{o=!0,window.clearTimeout(x)}},[e,t]),s}function Ke({peek:e}){return e.kind==="note"?(0,a.jsx)("p",{className:"meta",...e.final?{"data-region-stop":""}:{},children:e.message}):e.oversized?(0,a.jsxs)("div",{className:"so-native-region",children:[(0,a.jsxs)("p",{className:"meta",children:["Best-effort look at ",e.stamp," UTC"]}),(0,a.jsxs)("p",{className:"row",children:[e.counts.changed," changed · ",e.counts.deleted," deleted · ",e.counts.added," new · ",e.counts.unchecked," unverified — too much to render live; the final diff will hold the detail"]})]}):(0,a.jsxs)("div",{className:"so-native-region",children:[(0,a.jsxs)("p",{className:"meta",children:["Best-effort look at ",e.stamp," UTC — files can change mid-read"]}),e.empty&&(0,a.jsx)("p",{className:"row",children:"nothing has changed against the starting point yet"}),e.changed.map((t,s)=>(0,a.jsxs)("p",{className:"row mono",children:["~ ",t.href?(0,a.jsx)("a",{href:t.href,children:t.path}):t.path," ",(0,a.jsx)("span",{className:"meta",children:t.detail})]},`c-${s}`)),e.deleted.map((t,s)=>(0,a.jsxs)("p",{className:"row mono",children:["− ",t.href?(0,a.jsx)("a",{href:t.href,children:t.path}):t.path," ",(0,a.jsx)("span",{className:"meta",children:t.detail})]},`d-${s}`)),e.added.total>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:"meta",children:["New files · ",e.added.total]}),e.added.rows.map((t,s)=>t.collapsed?(0,a.jsxs)("p",{className:"row mono",children:["+ ",t.label," ",(0,a.jsxs)("span",{className:"meta",children:["collapsed names — ",H(t.count,"file","files")]})]},`a-${s}`):(0,a.jsxs)("p",{className:"row mono",children:["+ ",t.label]},`a-${s}`)),e.added.omitted>0&&(0,a.jsxs)("p",{className:"meta",children:["…and ",e.added.omitted," more (",e.added.total," new files total)"]})]}),e.unchecked.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"meta",children:"Not verified this look — absence above does not mean unchanged:"}),e.unchecked.map((t,s)=>(0,a.jsxs)("p",{className:"row mono",children:["? ",t.href?(0,a.jsx)("a",{href:t.href,children:t.path}):t.path," ",(0,a.jsx)("span",{className:"meta",children:t.detail})]},`u-${s}`))]}),e.partial!==null&&(0,a.jsx)("p",{className:"meta",children:e.partial})]})}function Qe({detail:e,open:t}){let s=Ve(e.peek,t);return(0,a.jsx)("div",{"data-agent-changes":!0,className:"agents-changes",children:e.live?e.peek===null?(0,a.jsx)(g,{children:"Output from other computers isn't shown yet."}):s===null?(0,a.jsx)(g,{children:"Looking at the checkout…"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ke,{peek:s}),(0,a.jsx)(g,{children:"A live look at its working copy, refreshed every 10 seconds. Not yet a result: the record is sealed when the build ends."})]}):e.files.length===0?(0,a.jsx)(g,{children:"No saved changes."}):(0,a.jsxs)("ul",{className:"agents-files",children:[e.files.map(l=>(0,a.jsxs)("li",{children:[(0,a.jsx)("span",{className:"k-mono",title:l.path,children:l.path}),(0,a.jsx)("span",{className:"k-num agents-add",children:l.added===null?"":`+${l.added}`}),(0,a.jsx)("span",{className:"k-num agents-del",children:l.removed===null?"":`−${l.removed}`})]},l.path)),e.filesMore>0&&(0,a.jsxs)("li",{className:"k-muted",children:[e.filesMore," more in the result"]})]})})}function Je({checkout:e}){let[t,s]=(0,$.useState)("no"),l=()=>{if(navigator.clipboard?.writeText===void 0){s("failed");return}navigator.clipboard.writeText(e.cd).then(()=>s("yes"),()=>s("failed"))};return(0,a.jsxs)("section",{"aria-label":"Its files",className:"k-sec agents-checkout","data-agent-checkout":!0,children:[(0,a.jsx)("h3",{children:"Its files"}),(0,a.jsx)(g,{children:"These files were written by an agent. Your shell's startup scripts and prompt tools (git status in the prompt, direnv, .envrc) can run code from them when you open a terminal there."}),(0,a.jsx)("code",{className:"k-code","data-agent-checkout-path":!0,children:e.path}),(0,a.jsxs)("div",{className:"k-acts k-desk-only",children:[(0,a.jsx)(m,{sm:!0,onClick:l,"data-agent-copy-cd":!0,label:t==="yes"?"Copied":"Copy the command"}),e.reveal!==null&&(0,a.jsxs)(b,{action:e.reveal,"data-agent-reveal":!0,children:[(0,a.jsx)("input",{type:"hidden",name:"return",value:"agents"}),(0,a.jsx)(m,{sm:!0,type:"submit",label:"Show in Finder"})]})]}),t==="failed"&&(0,a.jsxs)("div",{role:"status",className:"agents-checkout","data-agent-copy-failed":!0,children:[(0,a.jsx)(g,{children:"Couldn't copy. Select the command and copy it yourself:"}),(0,a.jsx)("code",{className:"k-code",children:e.cd})]})]})}function Xe({controls:e}){let t=e.pause,s=e.stop,[l,r]=(0,$.useState)(null);return(0,a.jsxs)(a.Fragment,{children:[t!==null&&(t.state==="paused"?(0,a.jsxs)(b,{action:t.action,"data-agent-resume":!0,children:[(0,a.jsx)("input",{type:"hidden",name:"run",value:String(t.run)}),(0,a.jsx)("input",{type:"hidden",name:"request",value:t.requests[2]}),(0,a.jsx)("input",{type:"hidden",name:"mode",value:"resume"}),(0,a.jsx)("input",{type:"hidden",name:"return",value:"agents"}),(0,a.jsx)(m,{type:"submit",label:"Resume"})]}):(0,a.jsxs)(b,{action:t.action,"data-agent-pause":!0,children:[(0,a.jsx)("input",{type:"hidden",name:"run",value:String(t.run)}),(0,a.jsx)("input",{type:"hidden",name:"request",value:t.requests[0]}),(0,a.jsx)("input",{type:"hidden",name:"return",value:"agents"}),(0,a.jsx)(m,{type:"submit",label:"Pause",busy:t.state==="pausing"?"Pausing…":!1,disabled:t.state==="pausing"})]})),s!==null&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m,{variant:"ghost",label:s.label,"aria-haspopup":"dialog","data-agent-stop-open":s.run,onClick:o=>r(o.currentTarget)}),l!==null&&(0,a.jsxs)(G,{kind:"popover",title:`${s.label}?`,trigger:l,onClose:()=>r(null),children:[(0,a.jsx)("p",{className:"k-pop-terms",children:"It ends now and keeps the work so far. The task waits for you: retry it, or change the plan."}),(0,a.jsxs)(b,{action:s.action,"data-agent-stop":s.run,children:[(0,a.jsx)("input",{type:"hidden",name:"run",value:String(s.run)}),(0,a.jsx)("input",{type:"hidden",name:"return",value:"agents"}),(0,a.jsxs)(k,{children:[(0,a.jsx)(m,{type:"submit",variant:"danger",label:s.label}),(0,a.jsx)(m,{variant:"ghost",label:"Cancel","data-k-close":""})]})]})]})]})]})}function Ze({detail:e}){let t=S(),s=e.canAct&&e.controls!=null?e.controls:null,l=s!==null?(0,a.jsx)("div",{className:"k-acts","data-agent-controls":s.send??"none",children:(0,a.jsx)(Xe,{controls:s})}):null;if(e.question!==null)return(0,a.jsx)(w,{wait:!0,status:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f,{word:"Question",tone:"ask"}),(0,a.jsxs)("h2",{children:[e.agent," asks"]})]}),text:(0,a.jsx)("span",{"data-agent-question":e.question.key,children:e.question.text}),acts:l,terms:e.canAct?"Answer below. It reads your reply at its next check.":"An approver answers it."});if(e.live){let x=s?.pause?.state==="paused",{word:c,tone:i}=x?{word:"Paused",tone:""}:Z(e);return(0,a.jsx)(w,{status:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f,{word:c,tone:i}),(0,a.jsx)("h2",{children:J(e,t)})]}),text:(0,a.jsx)("span",{"data-agent-line":!0,children:e.line??"Working."}),acts:l,terms:s===null?"":(0,a.jsx)("span",{"data-agent-capability":!0,children:s.words})})}let{word:r,tone:o}=Z(e);return(0,a.jsx)(w,{status:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f,{word:r,tone:o}),(0,a.jsx)("h2",{children:J(e,t)})]}),text:(0,a.jsx)("span",{"data-agent-line":!0,children:e.line??e.diff??"It has finished."}),acts:(0,a.jsx)(j,{href:e.open?.href??e.taskHref,label:e.open?`Open ${e.open.label.toLowerCase()}`:"Open task"}),terms:e.diff??""})}var _e=e=>e.canAct&&(e.question!==null||e.steer!==null&&!(e.live&&e.controls!=null&&e.controls.send===null));function ea({detail:e}){let t=e.question,s=(0,$.useRef)(null),[l,r]=E(()=>({text:"",key:"",submitted:!1}),()=>t!==null?D():Fe(e.runId)),o=l.text,x=h=>r(v=>{let d=v.submitted?{...D(),text:h}:{...v,text:h};return K(e.runId,d),d});if(!e.canAct)return e.live?(0,a.jsxs)("section",{className:"k-sec agents-steer","aria-label":"Send a note",children:[(0,a.jsx)("h3",{children:"Send a note"}),(0,a.jsx)(g,{children:"Your sign-in can watch this agent. Sending it a note takes an approver; ask an operator to change your role in Settings → People and sign-in."})]}):null;if(t===null&&e.live&&e.controls!=null&&e.controls.send===null)return null;if(t===null&&e.steer===null){if(o.trim()==="")return null;let h=()=>{K(e.runId,{...D(),text:""}),r(D())};return(0,a.jsxs)(b,{action:`${e.taskHref}/steer`,"data-agent-unsent":!0,className:"k-sec agents-steer",children:[(0,a.jsx)("h3",{children:"Your note wasn't sent: this attempt ended first"}),(0,a.jsx)("p",{className:"agents-unsent","data-agent-unsent-text":!0,children:o}),(0,a.jsx)("input",{type:"hidden",name:"note",value:o}),(0,a.jsx)("input",{type:"hidden",name:"after",value:String(e.runId)}),(0,a.jsx)("input",{type:"hidden",name:"key",value:l.key}),(0,a.jsxs)(k,{children:[(0,a.jsx)(m,{type:"submit",variant:"primary",label:"Send to the next attempt"}),(0,a.jsx)(m,{variant:"ghost",label:"Discard",onClick:h})]}),(0,a.jsx)(g,{children:"The task's next attempt reads it before starting. No password needed."})]})}let c=t!==null,i=e.controls?.pause!=null&&e.controls.pause.state===null?e.controls.pause:null,u=c?"It reads your reply at its next check.":"Notes reach the agent; it answers in the conversation above.";return(0,a.jsxs)(b,{ref:s,action:c?t.action:e.steer.action,"data-agent-composer":c?"reply":"steer",className:"k-sec agents-steer",onSubmit:h=>{if(o.trim()===""){h.preventDefault();return}c||r(v=>{let d={...v,submitted:!0};return K(e.runId,d),d})},children:[(0,a.jsx)("h3",{children:c?`Reply to ${e.agent}`:`Send a note to ${e.agent}`}),c?(0,a.jsx)("input",{type:"hidden",name:"question",value:String(t.id)}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"hidden",name:"return",value:"agents"}),(0,a.jsx)("input",{type:"hidden",name:"run",value:String(e.steer.run)}),(0,a.jsx)("input",{type:"hidden",name:"key",value:l.key}),i!==null&&(0,a.jsx)("input",{type:"hidden",name:"request",value:`steer-${l.key}`})]}),(0,a.jsx)(me,{id:`agent-composer-${e.runId}`,label:c?`Reply to: ${t.text}`:`Send a note to ${e.agent}`,name:c?"answer":"note",maxLength:c?1500:4e3,rows:3,value:o,onChange:h=>{c?r(v=>({...v,text:h})):x(h)},placeholder:c?"Your answer":"For example: keep the flag off in staging until Wednesday.",sendLabel:c?"Reply":"Send note",onSend:()=>s.current?.requestSubmit(),error:e.said?.tone==="error"?e.said.text:null,before:!c&&i!==null?(0,a.jsx)(m,{sm:!0,type:"submit",formAction:i.action,label:"Pause and send",disabled:o.trim()==="","data-agent-pause-send":!0}):void 0,note:`${u} No password needed.`})]})}function aa({detail:e}){let[t,s]=(0,$.useState)("conversation"),l=ge();return(0,a.jsxs)("div",{className:"agents-tabs","data-agent-tabs":!0,children:[(0,a.jsx)(xe,{label:"Agent",current:t,onChange:r=>s(r==="changes"?"changes":"conversation"),items:[{key:"conversation",label:"Conversation"},{key:"changes",label:e.diff===null?"Changes":`Changes · ${e.diff}`}]}),(0,a.jsx)("div",{role:"tabpanel","aria-label":"Conversation",hidden:t!=="conversation",children:(0,a.jsx)($e,{url:e.transcript,live:e.live,paused:l,runId:e.runId})}),(0,a.jsx)("div",{role:"tabpanel","aria-label":"Changes",hidden:t!=="changes",children:(0,a.jsxs)("div",{className:"agents-changes-wrap",children:[(0,a.jsx)(Qe,{detail:e,open:t==="changes"}),e.checkout!=null&&e.canAct&&(0,a.jsx)(Je,{checkout:e.checkout})]})})]})}function sa({detail:e}){ie(e.room,r=>{(r==="change"||r==="reload")&&window.dispatchEvent(new Event(oe))});let t=(0,$.useContext)(le);(0,$.useEffect)(()=>ae()?void 0:e.live?pe(e.runId,t):(ce(e.runId,t),void 0),[e.runId,e.live,t]);let s=[e.project,`run ${e.runId}`,e.agent].filter(Boolean).join(" · "),l=e.task??null;return(0,a.jsxs)("div",{className:"agents-agent",id:"agents-view","data-agent-detail":e.runId,children:[(0,a.jsx)(ye,{title:e.project??"Agent",back:"/agents"}),(0,a.jsxs)(ne,{children:[(0,a.jsx)(te,{back:["/agents","Agents"],title:e.title,meta:s,right:(0,a.jsx)(j,{variant:"ghost",sm:!0,href:e.taskHref,label:"Open task","data-agent-open":"Task"})}),e.said&&e.said.tone==="info"&&(0,a.jsx)("div",{"data-agent-said":!0,children:(0,a.jsx)(P,{children:e.said.text})}),e.said&&e.said.tone==="error"&&!_e(e)&&(0,a.jsx)("div",{"data-agent-said":!0,children:(0,a.jsx)(F,{children:e.said.text})}),(0,a.jsx)("div",{id:"agents-box",children:(0,a.jsx)(Ze,{detail:e})}),l!==null&&(0,a.jsxs)("p",{className:"agents-task","data-agent-task":l.headline,children:["The task: ",(0,a.jsx)("b",{children:l.headline}),". ",l.sentence," ",(0,a.jsx)("a",{className:"k-link",href:l.action.href,"data-agent-task-action":!0,children:l.action.label})]}),(0,a.jsx)(aa,{detail:e}),(0,a.jsx)(ea,{detail:e},`${e.runId}:${e.question?.id??"steer"}`)]})]})}function ta({LiveGrid:e}){return(0,a.jsxs)("div",{className:"agents-page",id:"agents-view","data-agents-board":!0,children:[(0,a.jsx)(O,{title:"Live",back:"/agents",ctx:"Every running agent — inspect, steer, and view live diffs",right:(0,a.jsx)(j,{sm:!0,variant:"ghost",href:"/agents",label:"Back to Agents"})}),(0,a.jsx)("div",{className:"agents-live",children:(0,a.jsxs)($.Suspense,{fallback:null,children:[(0,a.jsx)(be,{}),(0,a.jsx)(e,{})]})})]})}function Mn({view:e,LiveGrid:t}){return e.live===!0?(0,a.jsx)(ta,{LiveGrid:t}):e.selected!==null?(0,a.jsx)(sa,{detail:e.selected},e.selected.runId):(0,a.jsx)(ze,{view:e})}var Ae=N(W(),1),p=N(B(),1);function En({view:e,workspace:t}){let[s,l]=(0,Ae.useState)(e.q),r=s.trim().toLowerCase().split(/\s+/).filter(Boolean),o=(0,Ae.useMemo)(()=>t===null||r.length===0?[]:_(t).filter(i=>i.kind!=="task"&&r.every(u=>`${i.title} ${i.sub} ${i.also??""}`.toLowerCase().includes(u))),[t,s]),x=e.q.trim().toLowerCase()===s.trim().toLowerCase()?e.tasks:e.tasks.filter(i=>r.every(u=>`${i.title} ${i.id}`.toLowerCase().includes(u))),c=["project","chat","setting","page"];return(0,p.jsxs)("div",{className:"so-search","data-kit-page":!0,"data-search":!0,children:[(0,p.jsx)(O,{title:"Search",right:null}),(0,p.jsx)("div",{className:"so-search-bar",children:(0,p.jsxs)("form",{action:"/search",method:"get",role:"search",className:"so-search-box",onSubmit:i=>{s.trim()===""&&i.preventDefault()},children:[(0,p.jsx)(he,{name:"search",small:!0}),(0,p.jsx)("label",{className:"k-sr",htmlFor:"search-page-q",children:"Search"}),(0,p.jsx)(T,{id:"search-page-q",className:"so-search-in",type:"search",name:"q",value:s,onChange:i=>l(i.target.value),placeholder:"Search tasks, projects, chats and settings",autoComplete:"off",spellCheck:!1,autoFocus:!0})]})}),r.length===0?(0,p.jsx)(I,{title:"Search everything in this Toolroll.",text:"Tasks, including finished and archived ones, projects, chats, every page and setting, and the old names of things."}):x.length===0&&o.length===0?(0,p.jsx)(I,{title:`Nothing matches “${s.trim()}” here.`,text:e.truncated?"Search reads your 100 most recent tasks and 40 most recent archived ones, so an older task may not show. Every task is in Work.":"Search looks in task titles and ids, projects, chats, pages and settings.",...e.truncated?{action:(0,p.jsx)(j,{sm:!0,label:"Open every task in Work",href:"/"})}:{}}):(0,p.jsxs)("div",{className:"so-search-results","aria-live":"polite",children:[x.length>0&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("h2",{className:"k-grp",children:["Tasks",(0,p.jsx)(y,{n:x.length})]}),x.map(i=>(0,p.jsx)(L,{href:i.href,chip:(0,p.jsx)(f,{word:i.chip.word,tone:i.chip.tone}),title:i.title,desc:i.archived?"Archived":"",meta:(0,p.jsxs)(p.Fragment,{children:[i.project&&(0,p.jsx)("span",{children:i.project}),(0,p.jsx)("span",{className:"k-num",children:i.age})]})},i.id))]}),e.truncated&&(0,p.jsxs)("p",{className:"so-search-note",children:["Search reads your 100 most recent tasks and 40 most recent archived ones. ",(0,p.jsx)("a",{className:"k-link",href:"/",children:"Every task is in Work"}),"."]}),c.map(i=>{let u=o.filter(h=>h.kind===i);return u.length===0?null:(0,p.jsxs)("div",{children:[(0,p.jsxs)("h2",{className:"k-grp",children:[ee[i],(0,p.jsx)(y,{n:u.length})]}),u.map(h=>(0,p.jsx)(L,{href:h.href,chip:null,title:h.title,desc:h.sub},`${h.href}:${h.title}`))]},i)})]})]})}export{Mn as AgentsView,Hn as ProjectsView,En as SearchView};
|
|
Binary file
|