decocms 2.181.2 → 2.181.3
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/dist/client/assets/{AlertCircle-Hpsw9_tf.js → AlertCircle-D2rRA9CS.js} +1 -1
- package/dist/client/assets/{ArrowLeft-U7OUoBhv.js → ArrowLeft-D4bkD9qi.js} +1 -1
- package/dist/client/assets/{ArrowUp-BrSLqvQo.js → ArrowUp-CpDF-NAu.js} +1 -1
- package/dist/client/assets/{Check-CVKUMJv3.js → Check-CecxQkQE.js} +1 -1
- package/dist/client/assets/{ChevronDown-Ds3IOx8p.js → ChevronDown-Cm9SuGtV.js} +1 -1
- package/dist/client/assets/{ChevronRight-CTHCKnjF.js → ChevronRight-2xVQHhsF.js} +1 -1
- package/dist/client/assets/{ChevronUp-DJbt-mXd.js → ChevronUp-B6bu9ZD3.js} +1 -1
- package/dist/client/assets/{Container-D4n2e11R.js → Container-sfWYtc36.js} +1 -1
- package/dist/client/assets/{Dataflow03-q5kzWw4s.js → Dataflow03-BcXlVxgR.js} +1 -1
- package/dist/client/assets/{Download01-BBRbjA11.js → Download01-DGSbxmSo.js} +1 -1
- package/dist/client/assets/{FolderClosed-CgbAGtho.js → FolderClosed-DlY-lqwP.js} +1 -1
- package/dist/client/assets/{Grid01-CbgVFQNg.js → Grid01-CLnEHof5.js} +1 -1
- package/dist/client/assets/{List-D35z7ORx.js → List-CnkQuVUq.js} +1 -1
- package/dist/client/assets/{Loading01-DDv5lfhX.js → Loading01-ZUH_hVSq.js} +1 -1
- package/dist/client/assets/{Play-Q9uDVIa5.js → Play-CCpyKlpN.js} +1 -1
- package/dist/client/assets/{Plus-DcUxQQXw.js → Plus-D9CNWrFQ.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-nS96T2bf.js → RefreshCcw01-Cu6svfY5.js} +1 -1
- package/dist/client/assets/{SearchMd-CTpXH6F3.js → SearchMd-BH_J7-7p.js} +1 -1
- package/dist/client/assets/{Settings01-BVY96Vsg.js → Settings01-DTaoTYj1.js} +1 -1
- package/dist/client/assets/{Trash01-CzfVJZjl.js → Trash01-Cv31wiMP.js} +1 -1
- package/dist/client/assets/{Type01-BwsSTKh1.js → Type01-BRLQyycA.js} +1 -1
- package/dist/client/assets/{Upload01-Bn_9d04P.js → Upload01-BY6Noksk.js} +1 -1
- package/dist/client/assets/{User01-Dl4j8Eui.js → User01-BloSEKZw.js} +1 -1
- package/dist/client/assets/{VideoRecorder-0-qQusnp.js → VideoRecorder-CqjZf9cg.js} +1 -1
- package/dist/client/assets/{X-DvXlEl9E.js → X-1dO_8PIJ.js} +1 -1
- package/dist/client/assets/{XCircle-DI9HiD4A.js → XCircle-BEC1SvTX.js} +1 -1
- package/dist/client/assets/{XClose-Bw5018RM.js → XClose-BzyTilGE.js} +1 -1
- package/dist/client/assets/{Zap-DGbTVlYq.js → Zap-D6SUOiFY.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-Cfflc0J5.js → agent-connections-preview-COmBlzCd.js} +1 -1
- package/dist/client/assets/{agent-detail-CehIC3W1.js → agent-detail-DAo3-7Gz.js} +1 -1
- package/dist/client/assets/{agents-DmtfY0M7.js → agents-Cy0iaygc.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-BtOy-_hY.js → ai-providers-logos-Cr4iRu-0.js} +1 -1
- package/dist/client/assets/{alert-dialog-CIdU20ao.js → alert-dialog-DnwDlp7T.js} +1 -1
- package/dist/client/assets/{auth-catchall-DklKmwQO.js → auth-catchall-CJb2iecY.js} +1 -1
- package/dist/client/assets/{automation-detail-CIe1WG8E.js → automation-detail-DIl5XDBS.js} +1 -1
- package/dist/client/assets/{automations-KsqaYtsv.js → automations-4lM2x30V.js} +1 -1
- package/dist/client/assets/{avatar-Dz9Au16I.js → avatar-CahK8DWE.js} +1 -1
- package/dist/client/assets/{badge-BIY4HSu4.js → badge-a1yIqkX1.js} +1 -1
- package/dist/client/assets/{binder-DaeU7_Yt.js → binder-B_Xezby6.js} +1 -1
- package/dist/client/assets/{breadcrumb-DNInqlES.js → breadcrumb-DBLmG8ET.js} +1 -1
- package/dist/client/assets/{card-CoTaf7Bb.js → card-BkMKAjKJ.js} +1 -1
- package/dist/client/assets/{checkbox-UWf_Spym.js → checkbox-DFbWpPSa.js} +1 -1
- package/dist/client/assets/{collapsible-DGsDf05s.js → collapsible-CzCLTaIa.js} +1 -1
- package/dist/client/assets/{collection-detail-jT6_1Zus.js → collection-detail-CP2ikFfr.js} +1 -1
- package/dist/client/assets/{collection-display-button-CIwF6qiP.js → collection-display-button-BTy8OMGo.js} +1 -1
- package/dist/client/assets/{collection-search-DmeA1lkM.js → collection-search-BaA_5hnO.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DZ9kkHHz.js → collection-table-wrapper-CeDvXZ6e.js} +1 -1
- package/dist/client/assets/{collection-tabs-VEtVQj8e.js → collection-tabs-B_Ive8CL.js} +1 -1
- package/dist/client/assets/{command-DS9L8dE9.js → command-DeF62mUG.js} +1 -1
- package/dist/client/assets/{connection-card-DY8BmloD.js → connection-card-ClL9bm7k.js} +1 -1
- package/dist/client/assets/{connection-detail-D6zDmZps.js → connection-detail-D6Ad6Uup.js} +1 -1
- package/dist/client/assets/{connections-BvDULZyp.js → connections-Dkdo-MxF.js} +1 -1
- package/dist/client/assets/{constants-C5g6K3-0.js → constants-kAo23sAc.js} +1 -1
- package/dist/client/assets/{context-0-m5aPvK.js → context-C2WVT2wI.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Bw7JkHCW.js → create-organization-dialog--yeW4Rp3.js} +1 -1
- package/dist/client/assets/{create-project-dialog-CofGaj8t.js → create-project-dialog-DX0tom06.js} +1 -1
- package/dist/client/assets/{danger-BxwsLFA0.js → danger-BEWSLgEr.js} +1 -1
- package/dist/client/assets/{danger-zone-DNgGGkaE.js → danger-zone-COttqiLk.js} +1 -1
- package/dist/client/assets/{dependencies-CscQrQx3.js → dependencies-DQpwdViP.js} +1 -1
- package/dist/client/assets/{dialog-Beaz2erB.js → dialog-B-I43lOk.js} +1 -1
- package/dist/client/assets/{drawer-DuM10S-O.js → drawer-Cc_fH-oc.js} +1 -1
- package/dist/client/assets/{dropdown-menu-IA1w2fjK.js → dropdown-menu-KiFp7XSX.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-CtDEEZnp.js → dynamic-plugin-layout-DqyTuAzp.js} +1 -1
- package/dist/client/assets/{editable-task-title-DuDIwQf_.js → editable-task-title-DABFKKXz.js} +1 -1
- package/dist/client/assets/{empty-state-DnJSxmJA.js → empty-state-BclY67WC.js} +1 -1
- package/dist/client/assets/{empty-state-hwIP0sm6.js → empty-state-UToLDOJO.js} +1 -1
- package/dist/client/assets/{env-vars-editor-Ceyzo9UT.js → env-vars-editor-D3JHoO0m.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D13QyL30.js → extract-connection-data-GhIKo0Xr.js} +1 -1
- package/dist/client/assets/{file-browser-B-JXooL8.js → file-browser-CZHih4nP.js} +2 -2
- package/dist/client/assets/{form-CccEC3cm.js → form-edx7u0Be.js} +1 -1
- package/dist/client/assets/{general-axIGxWAv.js → general-rmW6kn_q.js} +1 -1
- package/dist/client/assets/{generate-id-0beDKMoR.js → generate-id-B0hqIne-.js} +1 -1
- package/dist/client/assets/{grid-view-VGzy6bo9.js → grid-view-SzsDCBqX.js} +1 -1
- package/dist/client/assets/{home-ED4EKgWV.js → home-BW8Jzf61.js} +1 -1
- package/dist/client/assets/{index-DxFKywdp.js → index--68a591R.js} +1 -1
- package/dist/client/assets/{index-Be3yjubl.js → index-B3DLUye8.js} +1 -1
- package/dist/client/assets/{index-CDessA1I.js → index-Bf3XZpZk.js} +1 -1
- package/dist/client/assets/{index-JasJqXzm.js → index-BsYB-j4p.js} +1 -1
- package/dist/client/assets/{index-VZp2CIbR.js → index-C45O1mgu.js} +1 -1
- package/dist/client/assets/{index-DQTOgFOw.js → index-CJ0BaJHY.js} +1 -1
- package/dist/client/assets/{index-BfJLXP0j.js → index-CNQ1T_R3.js} +1 -1
- package/dist/client/assets/{index-DqQdLYr7.js → index-Ca6dFB6s.js} +1 -1
- package/dist/client/assets/{index-C2aMuEoP.js → index-CyaqcTbn.js} +1 -1
- package/dist/client/assets/{index-BjxqoU_w.js → index-Di6oLb1g.js} +3 -3
- package/dist/client/assets/{index-DsV3YD3P.js → index-SfPPYQt8.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-C0OPB4rx.js → infiniteQueryObserver-Cg7Qn-Py.js} +1 -1
- package/dist/client/assets/{input-Be0bLLQW.js → input-DQ4QcwHR.js} +1 -1
- package/dist/client/assets/{integration-icon-C9ac9VOj.js → integration-icon-DlCg0T4C.js} +1 -1
- package/dist/client/assets/{label-C6smVCIk.js → label-BGeQL0ka.js} +1 -1
- package/dist/client/assets/{layout-D0N63fj1.js → layout-D6ZxqJKi.js} +1 -1
- package/dist/client/assets/{layout-CYi_63K3.js → layout-DtwUtGx0.js} +1 -1
- package/dist/client/assets/{login-B4SjGwXr.js → login-DlB4I5sp.js} +1 -1
- package/dist/client/assets/{logo-upload-DwLQLlu7.js → logo-upload-BtAPf8sp.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BWF6RI84.js → mcp-app-renderer-Cg9Eew2n.js} +1 -1
- package/dist/client/assets/{mcp-server-card-ksfI1Eyh.js → mcp-server-card-4V1eOOTX.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-Cb-T_-Mb.js → mcp-server-detail-CX9gEsnH.js} +2 -2
- package/dist/client/assets/{members-DJ6DA7d5.js → members-D1cMWKgG.js} +1 -1
- package/dist/client/assets/{monaco-editor-D0GS_D3E.js → monaco-editor-DnqhgBvh.js} +1 -1
- package/dist/client/assets/{monitoring-osT0IqjS.js → monitoring-BQpDfDrf.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-Bxyyp3mT.js → monitoring-dashboard-edit-Cbicjk63.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-D1jhpkzD.js → monitoring-dashboard-view-Ci-RFMRb.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BzJ0yham.js → monitoring-stats-row-vvMdV41p.js} +1 -1
- package/dist/client/assets/{oauth-callback-B9dLIXA2.js → oauth-callback-DIjSwsej.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-mFsE32vf.js → oauth-callback-ai-provider-Dh3KWtZ6.js} +1 -1
- package/dist/client/assets/{org-ai-providers-UG6FIdxB.js → org-ai-providers-DGjdQR3W.js} +1 -1
- package/dist/client/assets/{page-C4W1F739.js → page-DCh64rPG.js} +1 -1
- package/dist/client/assets/{page-Drtt1B9w.js → page-DqLtxYci.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-C-XfLac2.js → plugin-empty-state-DXF12w3Y.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-C7t75jMS.js → plugin-empty-state-KrWE8h_c.js} +1 -1
- package/dist/client/assets/{plugin-header-BJKUaApF.js → plugin-header-BRNld0B2.js} +1 -1
- package/dist/client/assets/{plugin-header-5ST0P5Q7.js → plugin-header-CxhFSwvz.js} +1 -1
- package/dist/client/assets/plugins-BVx4W74m.js +1 -0
- package/dist/client/assets/{popover-Dn0X9Fr1.js → popover-DnP50c_4.js} +1 -1
- package/dist/client/assets/{project-app-view-CcUsagsx.js → project-app-view-BjmqGgdc.js} +1 -1
- package/dist/client/assets/{project-layout-D9UABDEG.js → project-layout-B0N0-1u8.js} +1 -1
- package/dist/client/assets/{project-plugins-B2zBuBKC.js → project-plugins-W6YBdGTQ.js} +1 -1
- package/dist/client/assets/{projects-list-BWN1T4nW.js → projects-list-x0gTe3hu.js} +1 -1
- package/dist/client/assets/{registry-layout-tQMWJSmp.js → registry-layout-CCApya06.js} +1 -1
- package/dist/client/assets/{registry-utils-CVkiAvdy.js → registry-utils-B2MGgFdM.js} +1 -1
- package/dist/client/assets/{reset-password-DJ4VaB6B.js → reset-password-BGRs1AsG.js} +1 -1
- package/dist/client/assets/{resizable-BD6CMEjd.js → resizable-BUdS0TeH.js} +1 -1
- package/dist/client/assets/{save-actions-BFbH4lFH.js → save-actions-CZB_80fx.js} +1 -1
- package/dist/client/assets/{scroll-area-VqeDMOPN.js → scroll-area-BDvsWD3_.js} +1 -1
- package/dist/client/assets/{select-VEJvYQo7.js → select-DE6nOtq4.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-BVFbfMoH.js → select-virtual-mcp-BcDL714M.js} +1 -1
- package/dist/client/assets/{shell-layout-lPP98AcT.js → shell-layout-dlpBTl1V.js} +2 -2
- package/dist/client/assets/{sidebar-settings-Cvi9DQQC.js → sidebar-settings-DvmipHRI.js} +1 -1
- package/dist/client/assets/{skeleton-HKYMRn58.js → skeleton-jHSQmvNz.js} +1 -1
- package/dist/client/assets/{spinner-BFdTwge6.js → spinner-uIlWy8Tn.js} +1 -1
- package/dist/client/assets/{store-invite-BqHShMlA.js → store-invite-hyBdEV4m.js} +1 -1
- package/dist/client/assets/{switch-CG6Wlm7Y.js → switch-DqoVcDTw.js} +1 -1
- package/dist/client/assets/{table-C915-j5j.js → table-BtUXt-LB.js} +1 -1
- package/dist/client/assets/{tabs-EJf8mrdN.js → tabs-Co0v-Gtu.js} +1 -1
- package/dist/client/assets/{task-status-DwSGaLCq.js → task-status-mBvgK6CE.js} +5 -3
- package/dist/client/assets/tasks-D2ul5DI6.js +1 -0
- package/dist/client/assets/{tasks-panel-j-1pM09U.js → tasks-panel-CKxWhrpo.js} +1 -1
- package/dist/client/assets/{textarea-BpJcJgEu.js → textarea-DK_nHNH9.js} +1 -1
- package/dist/client/assets/{time-range-picker-CBrng89O.js → time-range-picker-Dq2GzTz_.js} +1 -1
- package/dist/client/assets/{toggle-group-D3jOZx6Z.js → toggle-group-C2i_WN24.js} +1 -1
- package/dist/client/assets/{tools-list-BJKvrBYn.js → tools-list-SO4mO2yz.js} +1 -1
- package/dist/client/assets/{tooltip-SqkLa6wk.js → tooltip-Bt2vWRpT.js} +1 -1
- package/dist/client/assets/{topbar-portal-Ul2d-lg1.js → topbar-portal-C9UZ6_6p.js} +1 -1
- package/dist/client/assets/{types-CdHbWvSx.js → types-C4sVrknd.js} +1 -1
- package/dist/client/assets/{use-automations-xjYa92g6.js → use-automations-DgVOPvmM.js} +1 -1
- package/dist/client/assets/{use-collections-Zp8eOwPm.js → use-collections-CojcRvND.js} +1 -1
- package/dist/client/assets/{use-connection-B-vgK3kN.js → use-connection-CJIltDo3.js} +1 -1
- package/dist/client/assets/{use-copy-Bor2cPit.js → use-copy-_cPtrtTH.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DLLVUJBK.js → use-create-virtual-mcp-D7i1HcQg.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-QweqoXs4.js → use-infinite-scroll-xFnZb5m2.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-BWF2XusE.js → use-install-from-registry-BUPQMjUV.js} +1 -1
- package/dist/client/assets/{use-list-state-BpX2jytt.js → use-list-state-Bp_aU4BI.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-qi4FHPHh.js → use-mcp-prompts-zeDoy0Xo.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-B8ERGBbF.js → use-mcp-resources-BIFxFRhN.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DNLvgz5O.js → use-mcp-tools-BD0zsUGc.js} +1 -1
- package/dist/client/assets/{use-members-CcTYAvXH.js → use-members-CbUEMp3B.js} +1 -1
- package/dist/client/assets/{use-project-D_8V3WFM.js → use-project-BVkW8l1T.js} +1 -1
- package/dist/client/assets/{use-store-discovery-iIFblh2E.js → use-store-discovery-Dr1RNWE5.js} +1 -1
- package/dist/client/assets/{use-view-mode-BBlaOBUn.js → use-view-mode-DNywUlq7.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BnUWdVw5.js → use-virtual-mcp-BdGbK3Wg.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BKFOAK_4.js +1 -0
- package/dist/client/assets/{useMutation-oWI4nFQG.js → useMutation-BOcaN318.js} +1 -1
- package/dist/client/assets/useQuery-BrfnS-T_.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-XlSq2d-l.js +1 -0
- package/dist/client/assets/{user-BtGr8jKI.js → user-BdXDOTfV.js} +1 -1
- package/dist/client/assets/{workflow-CKtu7TZc.js → workflow-C2zJzxLb.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/node_modules/xtend/.jshintrc +30 -0
- package/dist/server/node_modules/{postgres-bytea/license → xtend/LICENSE} +1 -2
- package/dist/server/node_modules/xtend/README.md +32 -0
- package/dist/server/node_modules/xtend/immutable.js +19 -0
- package/dist/server/node_modules/xtend/mutable.js +17 -0
- package/dist/server/node_modules/xtend/package.json +55 -0
- package/dist/server/node_modules/xtend/test.js +103 -0
- package/package.json +1 -1
- package/dist/client/assets/plugins-EgDqBTdv.js +0 -1
- package/dist/client/assets/tasks-B-KbBDgd.js +0 -1
- package/dist/client/assets/useInfiniteQuery-KvMZbxSR.js +0 -1
- package/dist/client/assets/useQuery-CmP1G4DA.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-4eRk30PP.js +0 -1
- package/dist/server/node_modules/async-exit-hook/CHANGELOG.md +0 -62
- package/dist/server/node_modules/async-exit-hook/index.js +0 -171
- package/dist/server/node_modules/async-exit-hook/license +0 -21
- package/dist/server/node_modules/async-exit-hook/package.json +0 -66
- package/dist/server/node_modules/async-exit-hook/readme.md +0 -118
- package/dist/server/node_modules/pg-int8/LICENSE +0 -13
- package/dist/server/node_modules/pg-int8/README.md +0 -16
- package/dist/server/node_modules/pg-int8/index.js +0 -100
- package/dist/server/node_modules/pg-int8/package.json +0 -24
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/license +0 -21
- package/dist/server/node_modules/postgres-date/package.json +0 -33
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
- package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/license +0 -21
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
- package/dist/server/node_modules/split2/LICENSE +0 -13
- package/dist/server/node_modules/split2/README.md +0 -85
- package/dist/server/node_modules/split2/bench.js +0 -27
- package/dist/server/node_modules/split2/index.js +0 -141
- package/dist/server/node_modules/split2/package.json +0 -39
- package/dist/server/node_modules/split2/test.js +0 -409
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,D as d,W as m,j as a}from"./index-
|
|
1
|
+
import{c as C,D as d,W as m,j as a}from"./index-Di6oLb1g.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",special:"fill-special text-backround"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,g as S,j as o,A as x,S as g,k as j,m as b,d,f as y,O as N,N as p}from"./index-
|
|
1
|
+
import{c as h,g as S,j as o,A as x,S as g,k as j,m as b,d,f as y,O as N,N as p}from"./index-Di6oLb1g.js";function R(e){const t=h.c(5),{appName:l}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=d(s);let a;if(t[1]!==n){const r=new URLSearchParams;for(const[_,u]of Object.entries(n))u!=null&&r.set(_,String(u));a=r.toString(),t[1]=n,t[2]=a}else a=t[2];const f=a,c=`/store/${encodeURIComponent(l)}${f?`?${f}`:""}`;let i;return t[3]!==c?(i=o.jsx(p,{to:"/login",search:{next:c},replace:!0}),t[3]=c,t[4]=i):i=t[4],i}function $(){const e=h.c(10);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const n=d(s),{data:a,isPending:f}=y.useListOrganizations();if(f){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(g,{}),e[2]=r):r=e[2],r}const m=a?.[0];if(!m){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(p,{to:"/",replace:!0}),e[3]=r):r=e[3],r}let c;e[4]!==l||e[5]!==m.slug?(c={org:m.slug,project:N,appName:l},e[4]=l,e[5]=m.slug,e[6]=c):c=e[6];let i;return e[7]!==n||e[8]!==c?(i=o.jsx(p,{to:"/$org/$project/store/$appName",params:c,search:n,replace:!0}),e[7]=n,e[8]=c,e[9]=i):i=e[9],i}function v(){const e=h.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(x,{children:o.jsx(g,{})}),e[1]=s):s=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(j,{children:o.jsx($,{})}),e[2]=n):n=e[2];let a;return e[3]!==l?(a=o.jsxs(o.Fragment,{children:[s,n,o.jsx(b,{children:o.jsx(R,{appName:l})})]}),e[3]=l,e[4]=a):a=e[4],a}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as i,_ as C,$ as y,Y as T,a1 as I,a5 as M,a6 as H,a4 as z,c as A,D as g}from"./index-
|
|
1
|
+
import{r as c,j as i,_ as C,$ as y,Y as T,a1 as I,a5 as M,a6 as H,a4 as z,c as A,D as g}from"./index-Di6oLb1g.js";var m="Switch",[U]=z(m),[$,q]=U(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs($,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(R,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",_=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=q(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});_.displayName=P;var D="SwitchBubbleInput",R=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});R.displayName=D;function j(r){return r?"checked":"unchecked"}var L=E,O=_;function W(r){const e=A.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(O,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==a?(o=i.jsx(L,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{W as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,D as i,j as c}from"./index-
|
|
1
|
+
import{c as r,D as i,j as c}from"./index-Di6oLb1g.js";function d(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{d as T,b as a,p as b,m as c,f as d,u as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p,j as d,a0 as k,_ as f,a1 as T,a2 as y,a4 as M,X as P,Y as S,a9 as F,Z as V,a3 as D,c as x,D as g}from"./index-
|
|
1
|
+
import{r as p,j as d,a0 as k,_ as f,a1 as T,a2 as y,a4 as M,X as P,Y as S,a9 as F,Z as V,a3 as D,c as x,D as g}from"./index-Di6oLb1g.js";var m="Tabs",[G]=M(m,[y]),w=y(),[L,h]=G(m),C=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(f.div,{dir:u,"data-orientation":o,...v,ref:e})})});C.displayName=m;var N="TabsList",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(f.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});_.displayName=N;var j="TabsTrigger",I=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(j,a),i=w(a),l=E(o.baseId,t),v=$(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(f.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":v,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});I.displayName=j;var R="TabsContent",A=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),v=$(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(f.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:v,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=_,B=I,q=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function X(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Y(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Z(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{Y as T,X as a,Z as b,O as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as V,g as y0,bU as Lr,r as B,w as un,u as ot,K as ht,v as gt,f as Kc,z as ca,j as f,E as Dr,o as cn,q as _0,t as A0,B as Ie,n as Sr,D as ie,bP as wt,cG as yr,aQ as ZS,a7 as x0,aJ as v0,cJ as QS,aR as N0,cK as JS,cL as ft,cM as da,cN as ey,cO as pa,cP as ty,cQ as ny,cR as ry,cS as ay,x as iy,cT as sy,cU as oy,cV as ly,cW as uy,e as cy,O as dy,F as py}from"./index-
|
|
1
|
+
import{c as V,g as y0,bU as Lr,r as B,w as un,u as ot,K as ht,v as gt,f as Kc,z as ca,j as f,E as Dr,o as cn,q as _0,t as A0,B as Ie,n as Sr,D as ie,bP as wt,cG as yr,aQ as ZS,a7 as x0,aJ as v0,cJ as QS,aR as N0,cK as JS,cL as ft,cM as da,cN as ey,cO as pa,cP as ty,cQ as ny,cR as ry,cS as ay,x as iy,cT as sy,cU as oy,cV as ly,cW as uy,e as cy,O as dy,F as py}from"./index-Di6oLb1g.js";import{A as fy,d as Xc,e as my,f as _e,l as gy,g as hy,b as I0,h as Ut,i as by,u as Wn,a as Yn}from"./context-C2WVT2wI.js";import{P as Mr,a as Pr,b as Fr}from"./popover-DnP50c_4.js";import{S as ve}from"./skeleton-jHSQmvNz.js";import{S as Br}from"./spinner-uIlWy8Tn.js";import{T as rt,a as at,b as it,c as R0,u as Zc}from"./tooltip-Bt2vWRpT.js";import{u as $t,a as Qc,i as _r,d as Ey}from"./constants-kAo23sAc.js";import{u as Ty,g as C0,l as zd}from"./use-mcp-prompts-zeDoy0Xo.js";import{c as k0,b as Sy,e as yy,a as w0,D as O0,f as _y}from"./dialog-B-I43lOk.js";import{a as yc,F as Ur,b as Hr,c as Ay,d as jr,f as qr}from"./form-edx7u0Be.js";import{I as L0}from"./input-DQ4QcwHR.js";import{N as D0,R as M0,d as P0,e as F0,P as _c,f as xy,g as vy,S as Ny,u as B0,h as Iy,i as U0,E as H0}from"./index-SfPPYQt8.js";import{s as Ry,c as Cy,a as ky,e as wy}from"./usage-BW6ztpN6.js";import{a8 as Oy,a9 as j0,L as Ly,U as Dy,aa as Jc,D as My,d as Py,ab as Fy,ac as By,ad as q0,k as Uy,a4 as Hy,t as $0,e as z0,Q as G0,f as V0,ae as jy,s as qy,I as $y,af as zy,ag as Gy,ah as Vy,ai as Wy}from"./integration-icon-DlCg0T4C.js";import{i as Yy}from"./ArrowUp-CpDF-NAu.js";import{t as Ac}from"./ChevronDown-Cm9SuGtV.js";import{k as Ky,t as W0,g as Xy,d as Y0,c as Zy}from"./XCircle-BEC1SvTX.js";import{u as Kn,P as Qy,a as Jy}from"./org-ai-providers-DGjdQR3W.js";import{i as ed}from"./AlertCircle-D2rRA9CS.js";import{i as e_}from"./X-1dO_8PIJ.js";import{c as K0,S as X0,d as Z0,a as Q0,b as J0}from"./select-DE6nOtq4.js";import{i as eT}from"./ArrowLeft-D4bkD9qi.js";import{i as zt}from"./Check-CecxQkQE.js";import{u as tT}from"./use-copy-_cPtrtTH.js";import{m as t_}from"./marked.esm-BaswSlok.js";import{c as $r,b as n_}from"./Play-CCpyKlpN.js";import{c as r_,b as a_}from"./tabs-Co0v-Gtu.js";import{C as i_}from"./checkbox-DFbWpPSa.js";import{g as s_,c as o_,a as l_,D as u_}from"./drawer-Cc_fH-oc.js";import{a as c_}from"./VideoRecorder-CqjZf9cg.js";import{a as d_,s as p_}from"./RefreshCcw01-Cu6svfY5.js";import{i as td}from"./SearchMd-BH_J7-7p.js";import{t as f_}from"./Settings01-DTaoTYj1.js";import{b as nd,u as nT,a as rT,g as rd}from"./ai-providers-logos-Cr4iRu-0.js";import{a as m_,V as aT}from"./select-virtual-mcp-BcDL714M.js";import{l as Gd,r as g_}from"./use-mcp-resources-BIFxFRhN.js";import{i as h_}from"./ChevronRight-2xVQHhsF.js";import{a as b_,b as E_,C as T_}from"./collapsible-CzCLTaIa.js";import{c as S_}from"./content-blocks-o63cs2vh.js";import{M as y_}from"./mcp-app-renderer-Cg9Eew2n.js";import{g as iT}from"./types-C4sVrknd.js";import{s as __}from"./XClose-BzyTilGE.js";import{u as A_,a as x_}from"./index-B3DLUye8.js";import{s as Vd}from"./Type01-BRLQyycA.js";import{s as v_}from"./Trash01-Cv31wiMP.js";import{b as N_}from"./use-virtual-mcp-BdGbK3Wg.js";import{b as ad,e as I_}from"./use-collections-CojcRvND.js";import{u as R_}from"./useSuspenseInfiniteQuery-XlSq2d-l.js";import{i as C_}from"./Loading01-ZUH_hVSq.js";function k_(t){const e=V.c(10);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const r=y0(n);let a;if(e[1]!==r.collectionName||e[2]!==r.connectionId||e[3]!==r.itemId||e[4]!==t){a=[],t&&a.push(`### Selected Agent
|
|
2
2
|
- ID: ${t}`);let i;e[6]!==r.collectionName||e[7]!==r.connectionId||e[8]!==r.itemId?(i=[],r.connectionId&&i.push(`- Connection ID: ${r.connectionId}`),r.collectionName&&i.push(`- Collection: ${r.collectionName}`),r.itemId&&i.push(`- Item ID: ${r.itemId}`),e[6]=r.collectionName,e[7]=r.connectionId,e[8]=r.itemId,e[9]=i):i=e[9],i.length>0&&a.push(`### Current Resource
|
|
3
3
|
The user is viewing the following resource:
|
|
4
4
|
${i.join(`
|
|
@@ -81,6 +81,8 @@ Output: Tool execution was denied`)}}}return n.length>0?n.join(`
|
|
|
81
81
|
${n.input?.prompt??"No prompt provided"}
|
|
82
82
|
|
|
83
83
|
# ${u?"Error":"Result"}
|
|
84
|
-
${_}`,O=S?.icon,w=S?.title??"Subtask";let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=f.jsx($0,{}),e[9]=v):v=e[9];let D;e[10]!==O||e[11]!==w?(D=f.jsx($y,{icon:O,name:w,size:"2xs",className:"rounded-xs",fallbackIcon:v}),e[10]=O,e[11]=w,e[12]=D):D=e[12];const M=D;let P;return e[13]!==I||e[14]!==m||e[15]!==M||e[16]!==a||e[17]!==A||e[18]!==E||e[19]!==T?(P=f.jsx(Ud,{icon:M,title:E,summary:A,usage:T,latency:a,detail:I,state:m}),e[13]=I,e[14]=m,e[15]=M,e[16]=a,e[17]=A,e[18]=E,e[19]=T,e[20]=P):P=e[20],P}function a5(t){const e=V.c(16),{part:n}=t;if(!n.state.startsWith("output-"))return null;const r=n.input?.plan??"",i=n.output?.approved===!0;let s,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx(G0,{className:"size-4 text-purple-500 shrink-0"}),o=f.jsx("span",{className:"text-[14px] font-medium text-foreground/80",children:"Implementation Plan"}),e[0]=s,e[1]=o):(s=e[0],o=e[1]);let l;e[2]!==i?(l=i&&f.jsxs("span",{className:"flex items-center gap-1 text-xs text-green-600 bg-green-500/10 px-1.5 py-0.5 rounded-md",children:[f.jsx(zt,{size:12}),"Approved"]}),e[2]=i,e[3]=l):l=e[3];let u;e[4]!==i||e[5]!==n.state?(u=!i&&n.state==="output-available"&&f.jsx("span",{className:"text-xs text-muted-foreground/70 italic",children:"Rejected"}),e[4]=i,e[5]=n.state,e[6]=u):u=e[6];let c;e[7]!==l||e[8]!==u?(c=f.jsxs("div",{className:"flex items-center gap-2",children:[s,o,l,u]}),e[7]=l,e[8]=u,e[9]=c):c=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=f.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground transition-colors",children:"View plan"}),e[10]=d):d=e[10];let p;e[11]!==r?(p=f.jsxs("details",{className:"ml-6",children:[d,f.jsx("div",{className:"mt-1 pl-2 border-l-2 border-purple-500/30 prose prose-sm max-w-none text-sm",children:f.jsx(oa,{id:"plan-content",part:{type:"text",text:r}})})]}),e[11]=r,e[12]=p):p=e[12];let m;return e[13]!==c||e[14]!==p?(m=f.jsxs("div",{className:"my-1.5 flex flex-col gap-1",children:[c,p]}),e[13]=c,e[14]=p,e[15]=m):m=e[15],m}function i5(t){const e=V.c(5),{parts:n}=t,r=n?.length,a=n?.[n.length-1];let i;e[0]!==a||e[1]!==r?(i={enabled:!0,contentDeps:[r,a]},e[0]=a,e[1]=r,e[2]=i):i=e[2];const{sentinelRef:s}=KS(i);let o;return e[3]!==s?(o=f.jsx("div",{ref:s,className:"h-0"}),e[3]=s,e[4]=o):o=e[4],o}function s5(t){return t.type==="reasoning"}function o5(t){const e=[],n=new Map,r=new Map;if(t)for(const a of t.parts){if(s5(a)){e.push(a);continue}if(a.type==="data-tool-metadata"&&"id"in a&&"data"in a){const i=a.data,s={};i.annotations&&(s.annotations=i.annotations),typeof i.latencyMs=="number"&&Number.isFinite(i.latencyMs)&&(s.latencySeconds=i.latencyMs/1e3),i._meta&&typeof i._meta=="object"&&(s._meta=i._meta),n.set(a.id,s);continue}a.type==="data-tool-subtask-metadata"&&"id"in a&&r.set(a.id,a.data)}return{reasoningParts:e,dataParts:{toolMetadata:n,toolSubtaskMetadata:r}}}const l5={planning:{icon:f.jsx(zy,{className:"text-muted-foreground shrink-0 animate-pulse",size:14}),label:"Planning next moves"},thinking:{icon:f.jsx(Jc,{className:"text-muted-foreground shrink-0 animate-pulse",size:14}),label:"Thinking"}},u5=1200;function c5(){const t=V.c(7),[e,n]=B.useState("planning");let r,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{const l=setTimeout(()=>{n("thinking")},u5);return()=>{clearTimeout(l)}},a=[],t[0]=r,t[1]=a):(r=t[0],a=t[1]),B.useEffect(r,a);const i=l5[e];let s;t[2]!==i.label?(s=f.jsxs("span",{className:"text-[14px] text-muted-foreground shimmer",children:[i.label,"..."]}),t[2]=i.label,t[3]=s):s=t[3];let o;return t[4]!==i.icon||t[5]!==s?(o=f.jsx("div",{className:"flex items-center gap-1.5 py-2 opacity-60",children:f.jsxs("span",{className:"flex items-center gap-1.5",children:[i.icon,s]})}),t[4]=i.icon,t[5]=s,t[6]=o):o=t[6],o}function d5(t){const e=V.c(9),{since:n}=t;let r;e[0]!==n?(r=()=>Date.now()-n,e[0]=n,e[1]=r):r=e[1];const[a,i]=B.useState(r);let s,o;e[2]!==n?(s=()=>{const d=setInterval(()=>i(Date.now()-n),100);return()=>clearInterval(d)},o=[n],e[2]=n,e[3]=s,e[4]=o):(s=e[3],o=e[4]),B.useEffect(s,o);const l=a/1e3;let u;e[5]!==l?(u=l.toFixed(1),e[5]=l,e[6]=u):u=e[6];let c;return e[7]!==u?(c=f.jsxs("span",{className:"tabular-nums text-sm font-mono text-muted-foreground/50",children:[u,"s"]}),e[7]=u,e[8]=c):c=e[8],c}function p5(t){const e=V.c(3),{startedAt:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("span",{className:"text-sm",children:"·"}),e[0]=r):r=e[0];let a;return e[1]!==n?(a=f.jsxs("div",{className:"flex items-center gap-1 mt-1 pb-1 text-muted-foreground/40 select-none",children:[r,f.jsx(d5,{since:n})]}),e[1]=n,e[2]=a):a=e[2],a}function f5(t){const e=V.c(20),{duration:n,parts:r,isStreaming:a}=t;let i;e[0]!==r?(i=r.every(h5),e[0]=r,e[1]=i):i=e[1];const s=i;let o;e[2]!==n?(o=n&&n/1e3>1?`Thought for ${(n/1e3).toFixed(1)}s`:"Thought",e[2]=n,e[3]=o):o=e[3];const l=o;let u;if(e[4]!==s||e[5]!==
|
|
84
|
+
${_}`,O=S?.icon,w=S?.title??"Subtask";let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=f.jsx($0,{}),e[9]=v):v=e[9];let D;e[10]!==O||e[11]!==w?(D=f.jsx($y,{icon:O,name:w,size:"2xs",className:"rounded-xs",fallbackIcon:v}),e[10]=O,e[11]=w,e[12]=D):D=e[12];const M=D;let P;return e[13]!==I||e[14]!==m||e[15]!==M||e[16]!==a||e[17]!==A||e[18]!==E||e[19]!==T?(P=f.jsx(Ud,{icon:M,title:E,summary:A,usage:T,latency:a,detail:I,state:m}),e[13]=I,e[14]=m,e[15]=M,e[16]=a,e[17]=A,e[18]=E,e[19]=T,e[20]=P):P=e[20],P}function a5(t){const e=V.c(16),{part:n}=t;if(!n.state.startsWith("output-"))return null;const r=n.input?.plan??"",i=n.output?.approved===!0;let s,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx(G0,{className:"size-4 text-purple-500 shrink-0"}),o=f.jsx("span",{className:"text-[14px] font-medium text-foreground/80",children:"Implementation Plan"}),e[0]=s,e[1]=o):(s=e[0],o=e[1]);let l;e[2]!==i?(l=i&&f.jsxs("span",{className:"flex items-center gap-1 text-xs text-green-600 bg-green-500/10 px-1.5 py-0.5 rounded-md",children:[f.jsx(zt,{size:12}),"Approved"]}),e[2]=i,e[3]=l):l=e[3];let u;e[4]!==i||e[5]!==n.state?(u=!i&&n.state==="output-available"&&f.jsx("span",{className:"text-xs text-muted-foreground/70 italic",children:"Rejected"}),e[4]=i,e[5]=n.state,e[6]=u):u=e[6];let c;e[7]!==l||e[8]!==u?(c=f.jsxs("div",{className:"flex items-center gap-2",children:[s,o,l,u]}),e[7]=l,e[8]=u,e[9]=c):c=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=f.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground transition-colors",children:"View plan"}),e[10]=d):d=e[10];let p;e[11]!==r?(p=f.jsxs("details",{className:"ml-6",children:[d,f.jsx("div",{className:"mt-1 pl-2 border-l-2 border-purple-500/30 prose prose-sm max-w-none text-sm",children:f.jsx(oa,{id:"plan-content",part:{type:"text",text:r}})})]}),e[11]=r,e[12]=p):p=e[12];let m;return e[13]!==c||e[14]!==p?(m=f.jsxs("div",{className:"my-1.5 flex flex-col gap-1",children:[c,p]}),e[13]=c,e[14]=p,e[15]=m):m=e[15],m}function i5(t){const e=V.c(5),{parts:n}=t,r=n?.length,a=n?.[n.length-1];let i;e[0]!==a||e[1]!==r?(i={enabled:!0,contentDeps:[r,a]},e[0]=a,e[1]=r,e[2]=i):i=e[2];const{sentinelRef:s}=KS(i);let o;return e[3]!==s?(o=f.jsx("div",{ref:s,className:"h-0"}),e[3]=s,e[4]=o):o=e[4],o}function s5(t){return t.type==="reasoning"}function o5(t){const e=[],n=new Map,r=new Map;if(t)for(const a of t.parts){if(s5(a)){e.push(a);continue}if(a.type==="data-tool-metadata"&&"id"in a&&"data"in a){const i=a.data,s={};i.annotations&&(s.annotations=i.annotations),typeof i.latencyMs=="number"&&Number.isFinite(i.latencyMs)&&(s.latencySeconds=i.latencyMs/1e3),i._meta&&typeof i._meta=="object"&&(s._meta=i._meta),n.set(a.id,s);continue}a.type==="data-tool-subtask-metadata"&&"id"in a&&r.set(a.id,a.data)}return{reasoningParts:e,dataParts:{toolMetadata:n,toolSubtaskMetadata:r}}}const l5={planning:{icon:f.jsx(zy,{className:"text-muted-foreground shrink-0 animate-pulse",size:14}),label:"Planning next moves"},thinking:{icon:f.jsx(Jc,{className:"text-muted-foreground shrink-0 animate-pulse",size:14}),label:"Thinking"}},u5=1200;function c5(){const t=V.c(7),[e,n]=B.useState("planning");let r,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{const l=setTimeout(()=>{n("thinking")},u5);return()=>{clearTimeout(l)}},a=[],t[0]=r,t[1]=a):(r=t[0],a=t[1]),B.useEffect(r,a);const i=l5[e];let s;t[2]!==i.label?(s=f.jsxs("span",{className:"text-[14px] text-muted-foreground shimmer",children:[i.label,"..."]}),t[2]=i.label,t[3]=s):s=t[3];let o;return t[4]!==i.icon||t[5]!==s?(o=f.jsx("div",{className:"flex items-center gap-1.5 py-2 opacity-60",children:f.jsxs("span",{className:"flex items-center gap-1.5",children:[i.icon,s]})}),t[4]=i.icon,t[5]=s,t[6]=o):o=t[6],o}function d5(t){const e=V.c(9),{since:n}=t;let r;e[0]!==n?(r=()=>Date.now()-n,e[0]=n,e[1]=r):r=e[1];const[a,i]=B.useState(r);let s,o;e[2]!==n?(s=()=>{const d=setInterval(()=>i(Date.now()-n),100);return()=>clearInterval(d)},o=[n],e[2]=n,e[3]=s,e[4]=o):(s=e[3],o=e[4]),B.useEffect(s,o);const l=a/1e3;let u;e[5]!==l?(u=l.toFixed(1),e[5]=l,e[6]=u):u=e[6];let c;return e[7]!==u?(c=f.jsxs("span",{className:"tabular-nums text-sm font-mono text-muted-foreground/50",children:[u,"s"]}),e[7]=u,e[8]=c):c=e[8],c}function p5(t){const e=V.c(3),{startedAt:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("span",{className:"text-sm",children:"·"}),e[0]=r):r=e[0];let a;return e[1]!==n?(a=f.jsxs("div",{className:"flex items-center gap-1 mt-1 pb-1 text-muted-foreground/40 select-none",children:[r,f.jsx(d5,{since:n})]}),e[1]=n,e[2]=a):a=e[2],a}function f5(t){const e=V.c(20),{duration:n,parts:r,isStreaming:a}=t;let i;e[0]!==r?(i=r.every(h5),e[0]=r,e[1]=i):i=e[1];const s=i;let o;e[2]!==n?(o=n&&n/1e3>1?`Thought for ${(n/1e3).toFixed(1)}s`:"Thought",e[2]=n,e[3]=o):o=e[3];const l=o;let u;if(e[4]!==s||e[5]!==a||e[6]!==r){const y=r.map(g5).join(`
|
|
85
|
+
`).trim().split(`
|
|
86
|
+
`).filter(Boolean),A=a?y[y.length-1]??"":y[0]??"";u=!s&&A?A.length>100?A.slice(0,100)+"…":A:void 0,e[4]=s,e[5]=a,e[6]=r,e[7]=u}else u=e[7];const c=u;let d;if(e[8]!==s||e[9]!==r){const E=r.map(m5).join(`
|
|
85
87
|
|
|
86
|
-
`);d=!s&&E.trim()?E:null,e[7]=s,e[8]=r,e[9]=d}else d=e[9];const p=d,m=!a&&n!=null?n/1e3:void 0;let h;e[10]!==a?(h=a?f.jsx(Jc,{className:"size-4"}):f.jsx(Gy,{className:"size-4"}),e[10]=a,e[11]=h):h=e[11];const b=a?"Thinking...":l,S=a?"loading":"idle";let T;return e[12]!==p||e[13]!==a||e[14]!==m||e[15]!==c||e[16]!==h||e[17]!==b||e[18]!==S?(T=f.jsx(Ud,{icon:h,title:b,summary:c,detail:p,state:S,detailVariant:"prose",latency:m,forceOpen:a}),e[12]=p,e[13]=a,e[14]=m,e[15]=c,e[16]=h,e[17]=b,e[18]=S,e[19]=T):T=e[19],T}function m5(t){return t.text??""}function g5(t){return t.text??""}function h5(t){return t.text?.includes("REDACTED")}function b5(t){const e=V.c(55),{part:n,id:r,usageStats:a,dataParts:i,isLoading:s,isLastMessage:o}=t;let l;e[0]!==i.toolMetadata?(l=p=>i.toolMetadata.get(p),e[0]=i.toolMetadata,e[1]=l):l=e[1];const u=l;let c;e[2]!==i.toolSubtaskMetadata?(c=p=>i.toolSubtaskMetadata.get(p),e[2]=i.toolSubtaskMetadata,e[3]=c):c=e[3];const d=c;switch(n.type){case"dynamic-tool":{let p;e[4]!==u||e[5]!==n.toolCallId?(p=u(n.toolCallId)?.annotations,e[4]=u,e[5]=n.toolCallId,e[6]=p):p=e[6];let m;e[7]!==u||e[8]!==n.toolCallId?(m=u(n.toolCallId)?.latencySeconds,e[7]=u,e[8]=n.toolCallId,e[9]=m):m=e[9];let h;e[10]!==u||e[11]!==n.toolCallId?(h=u(n.toolCallId)?._meta,e[10]=u,e[11]=n.toolCallId,e[12]=h):h=e[12];let b;return e[13]!==o||e[14]!==n||e[15]!==p||e[16]!==m||e[17]!==h?(b=f.jsx(T0,{part:n,annotations:p,latency:m,isLastMessage:o,toolMeta:h}),e[13]=o,e[14]=n,e[15]=p,e[16]=m,e[17]=h,e[18]=b):b=e[18],b}case"tool-user_ask":{let p;e[19]!==u||e[20]!==n.toolCallId?(p=u(n.toolCallId)?.latencySeconds,e[19]=u,e[20]=n.toolCallId,e[21]=p):p=e[21];let m;return e[22]!==n||e[23]!==p?(m=f.jsx(n5,{part:n,latency:p}),e[22]=n,e[23]=p,e[24]=m):m=e[24],m}case"tool-propose_plan":{let p;return e[25]!==n?(p=f.jsx(a5,{part:n}),e[25]=n,e[26]=p):p=e[26],p}case"tool-subtask":{let p;e[27]!==d||e[28]!==n.toolCallId?(p=d(n.toolCallId),e[27]=d,e[28]=n.toolCallId,e[29]=p):p=e[29];let m;e[30]!==u||e[31]!==n.toolCallId?(m=u(n.toolCallId)?.annotations,e[30]=u,e[31]=n.toolCallId,e[32]=m):m=e[32];let h;e[33]!==u||e[34]!==n.toolCallId?(h=u(n.toolCallId)?.latencySeconds,e[33]=u,e[34]=n.toolCallId,e[35]=h):h=e[35];let b;return e[36]!==n||e[37]!==p||e[38]!==m||e[39]!==h?(b=f.jsx(r5,{part:n,subtaskMeta:p,annotations:m,latency:h}),e[36]=n,e[37]=p,e[38]=m,e[39]=h,e[40]=b):b=e[40],b}case"text":{const p=!!a&&!s;let m;return e[41]!==r||e[42]!==n||e[43]!==p||e[44]!==a?(m=f.jsx(oa,{id:r,part:n,extraActions:a,copyable:!0,alwaysShowActions:p}),e[41]=r,e[42]=n,e[43]=p,e[44]=a,e[45]=m):m=e[45],m}case"reasoning":return null;case"step-start":case"file":case"source-url":case"source-document":return null;case"data-tool-metadata":case"data-tool-subtask-metadata":return null;default:{const p=n;if(p.type.startsWith("tool-")){const m=p.toolCallId;let h;e[46]!==i.toolMetadata||e[47]!==m?(h=i.toolMetadata.get(m),e[46]=i.toolMetadata,e[47]=m,e[48]=h):h=e[48];const b=h,S=b?.annotations,T=b?.latencySeconds,E=b?._meta;let y;return e[49]!==p||e[50]!==o||e[51]!==S||e[52]!==T||e[53]!==E?(y=f.jsx(T0,{part:p,annotations:S,latency:T,isLastMessage:o,toolMeta:E}),e[49]=p,e[50]=o,e[51]=S,e[52]=T,e[53]=E,e[54]=y):y=e[54],y}if(p.type.startsWith("data-"))return null;throw new Error(`Unknown part type: ${p.type}`)}}}function E5(){const t=V.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=f.jsx("div",{className:"text-[14px] text-muted-foreground/60 py-2",children:"No response was generated"}),t[0]=e):e=t[0],e}function T5(t){const e=V.c(7),{className:n,children:r}=t;let a;e[0]!==n?(a=ie("w-full min-w-0 group relative flex items-start gap-4 px-4 z-20 text-foreground flex-row",n),e[0]=n,e[1]=a):a=e[1];let i;e[2]!==r?(i=f.jsx("div",{className:"flex flex-col min-w-0 w-full items-start",children:f.jsx("div",{className:"w-full min-w-0 not-only:rounded-2xl text-[14px] wrap-break-word overflow-wrap-anywhere bg-transparent",children:r})}),e[2]=r,e[3]=i):i=e[3];let s;return e[4]!==a||e[5]!==i?(s=f.jsx("div",{className:a,children:i}),e[4]=a,e[5]=i,e[6]=s):s=e[6],s}function S5(t){const e=V.c(23),{message:n,status:r,className:a,isLast:i}=t,s=i===void 0?!1:i,o=r==="streaming",u=o||r==="submitted";let c;e[0]!==u?(c=()=>u?Date.now():null,e[0]=u,e[1]=c):c=e[1];const[d,p]=B.useState(c),[m,h]=B.useState(u);m!==u&&(h(u),p(u?Date.now():null));const b=n!==null&&n.parts.length>0,{reasoningParts:S,dataParts:T}=o5(n),E=S.length>0;let y;if(e[2]!==n){const O=n?.metadata?.reasoning_start_at?new Date(n.metadata.reasoning_start_at):null,w=n?.metadata?.reasoning_end_at?new Date(n.metadata.reasoning_end_at):new Date;y=O!==null?w.getTime()-O.getTime():null,e[2]=n,e[3]=y}else y=e[3];const A=y;let x;e[4]!==T||e[5]!==A||e[6]!==b||e[7]!==E||e[8]!==s||e[9]!==u||e[10]!==o||e[11]!==n||e[12]!==S||e[13]!==d?(x=b?f.jsxs("div",{className:"flex flex-col gap-3 sm:gap-2",children:[E&&f.jsx(f5,{duration:A,parts:S,isStreaming:o}),n.parts.map((O,w)=>{const v=w===n.parts.length-1,D=v?ky(wy(),n.metadata?.usage):null;return f.jsx(b5,{part:O,id:n.id,usageStats:v&&f.jsx($U,{usage:D,duration:A}),dataParts:T,isLoading:u,isLastMessage:s},`${n.id}-${w}`)}),s&&u&&d!==null&&f.jsx(p5,{startedAt:d})]}):u?f.jsx(c5,{}):f.jsx(E5,{}),e[4]=T,e[5]=A,e[6]=b,e[7]=E,e[8]=s,e[9]=u,e[10]=o,e[11]=n,e[12]=S,e[13]=d,e[14]=x):x=e[14];let _;e[15]!==s||e[16]!==o||e[17]!==n?.parts?(_=s&&o&&f.jsx(i5,{parts:n?.parts}),e[15]=s,e[16]=o,e[17]=n?.parts,e[18]=_):_=e[18];let I;return e[19]!==a||e[20]!==x||e[21]!==_?(I=f.jsxs(T5,{className:a,children:[x,_]}),e[19]=a,e[20]=x,e[21]=_,e[22]=I):I=e[22],I}const y5=[U0.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1}),cT,LS];function _5(t){const e=V.c(5),{tiptapDoc:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={attributes:{class:"prose prose-sm max-w-none focus:outline-none"}},e[0]=r):r=e[0];let a;e[1]!==n?(a={extensions:y5,content:n,editable:!1,editorProps:r},e[1]=n,e[2]=a):a=e[2];const i=B0(a);if(!i)return null;let s;return e[3]!==i?(s=f.jsx(H0,{editor:i,className:"[&_.ProseMirror]:outline-none [&_.ProseMirror]:cursor-text"}),e[3]=i,e[4]=s):s=e[4],s}function A5(t){const e=V.c(27),{message:n,className:r,onScrollToPair:a}=t,{id:i,parts:s,metadata:o}=n,[l,u]=B.useState(!1),[c,d]=B.useState(!1),p=B.useRef(!1);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=M=>{M&&!p.current&&(p.current=!0,d(M.scrollHeight>M.clientHeight))},e[0]=m):m=e[0];const h=m;if(!s||s.length===0)return null;let b;e[1]!==a?(b=()=>{u(!0),a?.()},e[1]=a,e[2]=b):b=e[2];const S=b,T=o?.tiptapDoc;let E;e[3]!==r?(E=ie("message-block w-full min-w-0 relative flex items-start gap-4 px-2.5 text-foreground flex-row-reverse",r),e[3]=r,e[4]=E):E=e[4];let y,A;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=()=>u(!0),A=()=>u(!1),e[5]=y,e[6]=A):(y=e[5],A=e[6]);let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=f.jsx("div",{className:"absolute inset-0 bg-muted/75 rounded-lg pointer-events-none"}),e[7]=x):x=e[7];let _;e[8]!==l||e[9]!==c?(_=ie("z-10 px-4 py-2 transition-opacity max-h-[84px] flex-1",l?"overflow-auto opacity-100":ie("overflow-hidden opacity-99",c&&"mask-b-from-1%")),e[8]=l,e[9]=c,e[10]=_):_=e[10];let I;e[11]!==T||e[12]!==i||e[13]!==o||e[14]!==s?(I=T?f.jsx(_5,{tiptapDoc:o.tiptapDoc}):s.map((M,P)=>M.type==="text"?f.jsx(oa,{id:i,part:M},`${i}-${P}`):null),e[11]=T,e[12]=i,e[13]=o,e[14]=s,e[15]=I):I=e[15];let O;e[16]!==I?(O=f.jsx("div",{children:I}),e[16]=I,e[17]=O):O=e[17];let w;e[18]!==_||e[19]!==O?(w=f.jsx("div",{ref:h,className:_,children:O}),e[18]=_,e[19]=O,e[20]=w):w=e[20];let v;e[21]!==S||e[22]!==w?(v=f.jsxs("div",{tabIndex:0,onClick:S,onFocus:y,onBlur:A,className:"w-full border border-border/60 min-w-0 shadow-xs rounded-lg text-[14px] wrap-break-word overflow-wrap-anywhere bg-background cursor-pointer transition-colors relative flex outline-none",children:[x,w]}),e[21]=S,e[22]=w,e[23]=v):v=e[23];let D;return e[24]!==v||e[25]!==E?(D=f.jsx(f.Fragment,{children:f.jsx("div",{className:E,children:v})}),e[24]=v,e[25]=E,e[26]=D):D=e[26],D}function x5(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];if(r&&r.role==="user"){const a=t[n+1];a&&a.role==="assistant"?(e.push({user:r,assistant:a}),n++):e.push({user:r,assistant:null})}}return e}function S0(t){const e=V.c(15),{pair:n,isLastPair:r,status:a}=t,i=B.useRef(null);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{i.current&&i.current.scrollIntoView({behavior:"smooth",block:"start"})},e[0]=s):s=e[0];const o=s;let l;e[1]!==r?(l=b=>{i.current=b,r&&b?.scrollIntoView({behavior:"smooth",block:"start"})},e[1]=r,e[2]=l):l=e[2];const u=l;let c,d;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=ie("flex flex-col pb-2 sm:pb-2"),d=f.jsx("div",{className:"sticky top-0 z-50 w-full h-4 bg-background"}),e[3]=c,e[4]=d):(c=e[3],d=e[4]);let p;e[5]!==n.user?(p=f.jsx("div",{className:"sticky mb-8 sm:mb-6 top-4 z-50",children:f.jsx(A5,{message:n.user,onScrollToPair:o})}),e[5]=n.user,e[6]=p):p=e[6];let m;e[7]!==r||e[8]!==n.assistant||e[9]!==a?(m=f.jsx(S5,{message:n.assistant,status:a,isLast:r}),e[7]=r,e[8]=n.assistant,e[9]=a,e[10]=m):m=e[10];let h;return e[11]!==u||e[12]!==p||e[13]!==m?(h=f.jsxs("div",{ref:u,className:c,children:[d,p,m]}),e[11]=u,e[12]=p,e[13]=m,e[14]=h):h=e[14],h}function v5(t){const e=new Date(t),r=new Date().getTime()-e.getTime(),a=Math.floor(r/6e4),i=Math.floor(r/36e5);return a<1?"now":a<60?`${a}m`:`${i}h`}function N5(t){const e=new Date,n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(n.getTime()-864e5),a=new Date(n.getTime()-7*864e5),i=new Date(n.getTime()-30*864e5),s=[],o=[],l=[],u=[],c=[];for(const p of t){const m=new Date(p.updated_at);m>=n?s.push(p):m>=r?o.push(p):m>=a?l.push(p):m>=i?u.push(p):c.push(p)}const d=[];return s.length>0&&d.push({label:"Today",tasks:s,showRelativeTime:!0}),o.length>0&&d.push({label:"Yesterday",tasks:o,showRelativeTime:!1}),l.length>0&&d.push({label:"7 days ago",tasks:l,showRelativeTime:!1}),u.length>0&&d.push({label:"30 days ago",tasks:u,showRelativeTime:!1}),c.length>0&&d.push({label:"Older",tasks:c,showRelativeTime:!1}),d}function I5(t){const e=V.c(60),{variant:n}=t,r=n===void 0?"icon":n,[a,i]=B.useState(""),[s,o]=B.useState(null),[l,u]=B.useState(""),{activeTaskId:c,switchToTask:d,tasks:p,hasNextPage:m,isFetchingNextPage:h,fetchNextPage:b,hideTask:S,renameTask:T}=Wn(),E=B.useRef(null),y=B.useRef(null);let A;e[0]!==b||e[1]!==m||e[2]!==h?(A=te=>{y.current&&y.current.disconnect(),te&&m&&!h&&b&&(y.current=new IntersectionObserver(C=>{C[0]?.isIntersecting&&m&&!h&&b&&b()},{rootMargin:"100px"}),y.current.observe(te)),E.current=te},e[0]=b,e[1]=m,e[2]=h,e[3]=A):A=e[3];const x=A;let _,I,O,w,v,D,M,P,F,U,z;if(e[4]!==c||e[5]!==s||e[6]!==l||e[7]!==m||e[8]!==S||e[9]!==h||e[10]!==T||e[11]!==a||e[12]!==x||e[13]!==d||e[14]!==p||e[15]!==r){const te=a.trim()?p.filter(fe=>fe.title.toLowerCase().includes(a.toLowerCase())):p,C=N5(te);let ee;e[27]===Symbol.for("react.memo_cache_sentinel")?(ee=(fe,Ee)=>{Ee.stopPropagation(),o(fe.id),u(fe.title||"")},e[27]=ee):ee=e[27];const re=ee;let ne;e[28]!==l||e[29]!==T?(ne=async fe=>{const Ee=l.trim();Ee&&await T(fe,Ee),o(null)},e[28]=l,e[29]=T,e[30]=ne):ne=e[30];const J=ne;let se;e[31]!==J?(se=(fe,Ee)=>{fe.key==="Enter"?(fe.preventDefault(),J(Ee)):fe.key==="Escape"&&o(null)},e[31]=J,e[32]=se):se=e[32];const ge=se;w=R0,O=rt,I=Mr,e[33]!==r?(U=f.jsx(at,{asChild:!0,children:f.jsx(Pr,{asChild:!0,children:r==="outline"?f.jsx(Ie,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input","aria-label":"Chat history",children:f.jsx(Vd,{size:16})}):f.jsx(Ie,{type:"button",variant:"ghost",size:"icon",className:"size-6 p-1 hover:bg-transparent","aria-label":"Chat history",children:f.jsx(Vd,{size:16,className:"text-muted-foreground hover:text-foreground transition-colors"})})})}),e[33]=r,e[34]=U):U=e[34],e[35]===Symbol.for("react.memo_cache_sentinel")?(z=f.jsx(it,{children:"Chat history"}),e[35]=z):z=e[35],_=Fr,M="end",P="w-80 p-0";let he;e[36]===Symbol.for("react.memo_cache_sentinel")?(he=f.jsx(td,{size:16,className:"text-muted-foreground shrink-0"}),e[36]=he):he=e[36];let be;e[37]===Symbol.for("react.memo_cache_sentinel")?(be=fe=>i(fe.target.value),e[37]=be):be=e[37],e[38]!==a?(F=f.jsx("div",{className:"border-b",children:f.jsxs("label",{className:"flex items-center gap-2.5 h-12 px-4 cursor-text",children:[he,f.jsx("input",{type:"text",placeholder:"Search chats...",value:a,onChange:be,className:"flex-1 border-0 shadow-none focus:outline-none px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"})]})}),e[38]=a,e[39]=F):F=e[39],v="max-h-[300px] overflow-y-auto",D=te.length===0?f.jsx("div",{className:"p-4 text-center text-sm text-muted-foreground",children:a.trim()?"No chats found":"No chats yet"}):f.jsxs(f.Fragment,{children:[C.map((fe,Ee)=>f.jsxs("div",{children:[Ee>0&&f.jsx("div",{className:"border-t mx-3"}),f.jsx("div",{className:"px-3 py-1",children:f.jsx("span",{className:"text-xs font-medium text-muted-foreground tracking-wide",children:fe.label})}),fe.tasks.map(Ae=>{const ze=Ae.id===c,Re=s===Ae.id;return f.jsxs("div",{className:ie("flex items-center gap-2 px-3 py-2 hover:bg-accent cursor-pointer group",ze&&"bg-accent/50"),onClick:()=>!Re&&d(Ae.id),children:[f.jsx("div",{className:"flex-1 min-w-0",children:Re?f.jsxs("div",{className:"flex items-center gap-1",onClick:C5,children:[f.jsx("input",{autoFocus:!0,value:l,onChange:ke=>u(ke.target.value),onBlur:()=>J(Ae.id),onKeyDown:ke=>ge(ke,Ae.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),f.jsx("button",{type:"button",onMouseDown:R5,onClick:()=>J(Ae.id),className:"p-0.5 hover:bg-accent rounded shrink-0",children:f.jsx(zt,{size:12,className:"text-muted-foreground hover:text-foreground"})})]}):f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-sm truncate",children:Ae.title||"New chat"}),f.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:ze?"current":fe.showRelativeTime?v5(Ae.updated_at):null})]})}),!Re&&f.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[f.jsx("button",{type:"button",onClick:ke=>re(Ae,ke),className:"opacity-0 cursor-pointer group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename chat",children:f.jsx(z0,{size:13,className:"text-muted-foreground hover:text-foreground"})}),f.jsx("button",{type:"button",onClick:ke=>{ke.stopPropagation(),S(Ae.id)},className:"opacity-0 cursor-pointer group/trash group-hover:opacity-100 p-1 hover:bg-destructive/10 rounded transition-opacity",title:"Remove chat",children:f.jsx(v_,{size:14,className:"text-muted-foreground group-hover/trash:text-destructive"})})]})]},Ae.id)})]},fe.label)),!a.trim()&&m&&f.jsx("div",{ref:x,className:"h-4"}),h&&f.jsx("div",{className:"p-3 text-center text-xs text-muted-foreground",children:"Loading more chats..."})]}),e[4]=c,e[5]=s,e[6]=l,e[7]=m,e[8]=S,e[9]=h,e[10]=T,e[11]=a,e[12]=x,e[13]=d,e[14]=p,e[15]=r,e[16]=_,e[17]=I,e[18]=O,e[19]=w,e[20]=v,e[21]=D,e[22]=M,e[23]=P,e[24]=F,e[25]=U,e[26]=z}else _=e[16],I=e[17],O=e[18],w=e[19],v=e[20],D=e[21],M=e[22],P=e[23],F=e[24],U=e[25],z=e[26];let G;e[40]!==v||e[41]!==D?(G=f.jsx("div",{className:v,children:D}),e[40]=v,e[41]=D,e[42]=G):G=e[42];let j;e[43]!==_||e[44]!==G||e[45]!==M||e[46]!==P||e[47]!==F?(j=f.jsxs(_,{align:M,className:P,children:[F,G]}),e[43]=_,e[44]=G,e[45]=M,e[46]=P,e[47]=F,e[48]=j):j=e[48];let Z;e[49]!==I||e[50]!==j||e[51]!==U||e[52]!==z?(Z=f.jsxs(I,{children:[U,z,j]}),e[49]=I,e[50]=j,e[51]=U,e[52]=z,e[53]=Z):Z=e[53];let R;e[54]!==O||e[55]!==Z?(R=f.jsx(O,{children:Z}),e[54]=O,e[55]=Z,e[56]=R):R=e[56];let Y;return e[57]!==w||e[58]!==R?(Y=f.jsx(w,{children:R}),e[57]=w,e[58]=R,e[59]=Y):Y=e[59],Y}function R5(t){return t.preventDefault()}function C5(t){return t.stopPropagation()}function k5(t){const e=V.c(11),{className:n}=t;let r;e[0]!==n?(r=ie("flex h-full w-full flex-col bg-background",n),e[0]=n,e[1]=r):r=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=f.jsx("div",{className:"size-6 rounded-lg bg-muted animate-pulse"}),e[2]=a):a=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=f.jsxs("div",{className:"flex items-center gap-3",children:[a,f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("div",{className:"h-3.5 w-28 rounded bg-muted animate-pulse"}),f.jsx("div",{className:"h-3 w-40 rounded bg-muted/60 animate-pulse"})]})]}),e[3]=i):i=e[3];let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("div",{className:"flex items-center h-12 flex-none border-b border-border/80 px-4",children:f.jsxs("div",{className:"flex items-center justify-between gap-3 w-full",children:[i,f.jsxs("div",{className:"flex items-end gap-2",children:[f.jsx("div",{className:"h-6 w-6 rounded-full bg-muted animate-pulse"}),f.jsx("div",{className:"h-6 w-6 rounded-lg bg-muted animate-pulse"})]})]})}),e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=f.jsx("div",{className:"flex-1 overflow-hidden px-4 py-4",children:f.jsxs("div",{className:"mx-auto flex w-full max-w-2xl flex-col gap-4",children:[f.jsx(pr,{align:"right",width:"w-3/4"}),f.jsx(pr,{align:"left",width:"w-full",lines:3}),f.jsx(pr,{align:"right",width:"w-2/3"}),f.jsx(pr,{align:"left",width:"w-5/6",lines:2})]})}),e[5]=o):o=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=f.jsx("div",{className:"relative flex flex-1 flex-col gap-2 p-2.5",children:f.jsx("div",{className:"relative flex-1",children:f.jsxs("div",{className:"space-y-2 p-2",children:[f.jsx("div",{className:"h-3 w-full rounded bg-muted/40 animate-pulse"}),f.jsx("div",{className:"h-3 w-4/5 rounded bg-muted/40 animate-pulse"})]})})}),e[6]=l):l=e[6];let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=f.jsx("div",{className:"flex items-center gap-1",children:f.jsx("div",{className:"size-8 rounded-full bg-muted/60 animate-pulse"})}),e[7]=u):u=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=f.jsx("div",{className:"px-4 py-4",children:f.jsx("div",{className:"mx-auto w-full max-w-2xl",children:f.jsxs("div",{className:"relative flex min-h-[130px] flex-col rounded-xl border border-border bg-background shadow-sm",children:[l,f.jsxs("div",{className:"flex items-center justify-between px-2.5 pb-2.5",children:[u,f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("div",{className:"h-8 w-32 rounded-lg bg-muted/60 animate-pulse"}),f.jsx("div",{className:"size-8 rounded-full bg-muted animate-pulse"})]})]})]})})}),e[8]=c):c=e[8];let d;return e[9]!==r?(d=f.jsxs("div",{className:r,children:[s,o,c]}),e[9]=r,e[10]=d):d=e[10],d}function pr(t){const e=V.c(22),{align:n,width:r,lines:a}=t,i=r===void 0?"w-full":r,s=a===void 0?1:a,o=n==="right"?"flex-row-reverse":"flex-row";let l;e[0]!==o?(l=ie("flex w-full gap-4 px-4 py-2",o),e[0]=o,e[1]=l):l=e[1];const u=n==="right"?"ml-auto max-w-3/4 items-end":"w-full items-start";let c;e[2]!==u?(c=ie("flex min-w-0 flex-col gap-2",u),e[2]=u,e[3]=c):c=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=f.jsx("div",{className:"h-3 w-16 rounded bg-muted/40 animate-pulse"}),e[4]=d):d=e[4];const p=n==="right"?"bg-muted":"bg-transparent border border-border/40";let m;e[5]!==p||e[6]!==i?(m=ie("min-w-0 rounded-2xl p-4",p,i),e[5]=p,e[6]=i,e[7]=m):m=e[7];let h;e[8]!==s?(h=Array.from({length:s}),e[8]=s,e[9]=h):h=e[9];let b;e[10]!==s||e[11]!==h?(b=f.jsx("div",{className:"space-y-2",children:h.map((y,A)=>f.jsx("div",{className:ie("h-3 rounded bg-muted-foreground/20 animate-pulse",A===s-1?"w-3/4":"w-full"),style:{animationDelay:`${A*.1}s`}},A))}),e[10]=s,e[11]=h,e[12]=b):b=e[12];let S;e[13]!==b||e[14]!==m?(S=f.jsx("div",{className:m,children:b}),e[13]=b,e[14]=m,e[15]=S):S=e[15];let T;e[16]!==S||e[17]!==c?(T=f.jsxs("div",{className:c,children:[d,S]}),e[16]=S,e[17]=c,e[18]=T):T=e[18];let E;return e[19]!==T||e[20]!==l?(E=f.jsx("div",{className:l,children:T}),e[19]=T,e[20]=l,e[21]=E):E=e[21],E}function w5(t){const e=V.c(5),{className:n,children:r}=t;let a;e[0]!==n?(a=ie("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),e[0]=n,e[1]=a):a=e[1];let i;return e[2]!==r||e[3]!==a?(i=f.jsx("div",{className:a,children:r}),e[2]=r,e[3]=a,e[4]=i):i=e[4],i}function O5(t){const e=V.c(5),{children:n,className:r}=t;let a;e[0]!==r?(a=ie("flex-1 min-h-0 overflow-y-auto isolate",r),e[0]=r,e[1]=a):a=e[1];let i;return e[2]!==n||e[3]!==a?(i=f.jsx("div",{className:a,children:n}),e[2]=n,e[3]=a,e[4]=i):i=e[4],i}function L5(t){const e=V.c(2),{children:n}=t;let r;return e[0]!==n?(r=f.jsx("div",{className:"h-full w-full flex items-center justify-center max-w-2xl mx-auto",children:n}),e[0]=n,e[1]=r):r=e[1],r}function D5(){const t=V.c(16),{messages:e,status:n}=Yn(),r=x5(e);let a;t[0]!==r?(a=r.at(-1),t[0]=r,t[1]=a):a=t[1];const i=a,s=n==="submitted"||n==="streaming";let o;if(t[2]!==s||t[3]!==i||t[4]!==r||t[5]!==e||t[6]!==n){const l=e.at(-1),u=!s&&l?.role==="assistant"&&l.parts.filter(F5).some(P5),c=!s&&l?.role==="assistant"&&l.parts.some(M5);let d;if(t[8]!==r||t[9]!==n){let m;t[11]!==r.length||t[12]!==n?(m=(h,b)=>f.jsx(S0,{pair:h,isLastPair:!1,status:b===r.length-1?n:void 0},`pair-${h.user.id}`),t[11]=r.length,t[12]=n,t[13]=m):m=t[13],d=r.slice(0,-1).map(m),t[8]=r,t[9]=n,t[10]=d}else d=t[10];let p;t[14]!==d?(p=f.jsx("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:d}),t[14]=d,t[15]=p):p=t[15],o=f.jsxs("div",{className:"w-full min-w-0 max-w-full overflow-y-auto h-full overflow-x-hidden",children:[p,i&&f.jsx("div",{className:ie("min-h-full min-w-0 max-w-2xl mx-auto w-full",(u||c)&&"pb-60"),children:f.jsx(S0,{pair:i,isLastPair:!0,status:n},`pair-${i?.user.id}`)})]}),t[2]=s,t[3]=i,t[4]=r,t[5]=e,t[6]=n,t[7]=o}else o=t[7];return o}function M5(t){return"state"in t&&t.state==="approval-requested"}function P5(t){return t.state==="input-available"}function F5(t){return t.type==="tool-user_ask"}function B5(t){const e=V.c(5),{children:n,className:r}=t;let a;e[0]!==r?(a=ie("flex-none w-full mx-auto p-2","max-w-2xl min-w-0",r),e[0]=r,e[1]=a):a=e[1];let i;return e[2]!==n||e[3]!==a?(i=f.jsx("div",{className:a,children:n}),e[2]=n,e[3]=a,e[4]=i):i=e[4],i}const P8=Object.assign(w5,{Main:O5,Messages:D5,EmptyState:L5,Footer:B5,Input:XU,Provider:dA,Skeleton:k5,IceBreakers:xA,NoLlmBindingEmptyState:NS,TaskHistoryPopover:I5}),F8=["in_progress","requires_action","failed","expired","completed"],B8={in_progress:{label:"In Progress",icon:C_,iconClassName:"text-muted-foreground animate-spin"},requires_action:{label:"Need Action",icon:Wy,iconClassName:"text-orange-500"},failed:{label:"Failed",icon:Y0,iconClassName:"text-destructive"},expired:{label:"Timed Out",icon:Vy,iconClassName:"text-warning"},completed:{label:"Complete",icon:Zy,iconClassName:"text-success"}};function U8(t){const e={};for(const n of t){const r=n.status??"completed";e[r]||(e[r]=[]),e[r].push(n)}for(const n of Object.values(e))n.sort((r,a)=>new Date(a.updated_at).getTime()-new Date(r.updated_at).getTime());return e}export{P8 as C,hB as M,B8 as S,HU as T,jU as a,F8 as b,M8 as c,U8 as g,vA as i};
|
|
88
|
+
`);d=!s&&E.trim()?E:null,e[8]=s,e[9]=r,e[10]=d}else d=e[10];const p=d,m=!a&&n!=null?n/1e3:void 0;let h;e[11]!==a?(h=a?f.jsx(Jc,{className:"size-4"}):f.jsx(Gy,{className:"size-4"}),e[11]=a,e[12]=h):h=e[12];const b=a?"Thinking...":l,S=a?"loading":"idle";let T;return e[13]!==p||e[14]!==m||e[15]!==c||e[16]!==h||e[17]!==b||e[18]!==S?(T=f.jsx(Ud,{icon:h,title:b,summary:c,detail:p,state:S,detailVariant:"prose",latency:m}),e[13]=p,e[14]=m,e[15]=c,e[16]=h,e[17]=b,e[18]=S,e[19]=T):T=e[19],T}function m5(t){return t.text??""}function g5(t){return t.text??""}function h5(t){return t.text?.includes("REDACTED")}function b5(t){const e=V.c(55),{part:n,id:r,usageStats:a,dataParts:i,isLoading:s,isLastMessage:o}=t;let l;e[0]!==i.toolMetadata?(l=p=>i.toolMetadata.get(p),e[0]=i.toolMetadata,e[1]=l):l=e[1];const u=l;let c;e[2]!==i.toolSubtaskMetadata?(c=p=>i.toolSubtaskMetadata.get(p),e[2]=i.toolSubtaskMetadata,e[3]=c):c=e[3];const d=c;switch(n.type){case"dynamic-tool":{let p;e[4]!==u||e[5]!==n.toolCallId?(p=u(n.toolCallId)?.annotations,e[4]=u,e[5]=n.toolCallId,e[6]=p):p=e[6];let m;e[7]!==u||e[8]!==n.toolCallId?(m=u(n.toolCallId)?.latencySeconds,e[7]=u,e[8]=n.toolCallId,e[9]=m):m=e[9];let h;e[10]!==u||e[11]!==n.toolCallId?(h=u(n.toolCallId)?._meta,e[10]=u,e[11]=n.toolCallId,e[12]=h):h=e[12];let b;return e[13]!==o||e[14]!==n||e[15]!==p||e[16]!==m||e[17]!==h?(b=f.jsx(T0,{part:n,annotations:p,latency:m,isLastMessage:o,toolMeta:h}),e[13]=o,e[14]=n,e[15]=p,e[16]=m,e[17]=h,e[18]=b):b=e[18],b}case"tool-user_ask":{let p;e[19]!==u||e[20]!==n.toolCallId?(p=u(n.toolCallId)?.latencySeconds,e[19]=u,e[20]=n.toolCallId,e[21]=p):p=e[21];let m;return e[22]!==n||e[23]!==p?(m=f.jsx(n5,{part:n,latency:p}),e[22]=n,e[23]=p,e[24]=m):m=e[24],m}case"tool-propose_plan":{let p;return e[25]!==n?(p=f.jsx(a5,{part:n}),e[25]=n,e[26]=p):p=e[26],p}case"tool-subtask":{let p;e[27]!==d||e[28]!==n.toolCallId?(p=d(n.toolCallId),e[27]=d,e[28]=n.toolCallId,e[29]=p):p=e[29];let m;e[30]!==u||e[31]!==n.toolCallId?(m=u(n.toolCallId)?.annotations,e[30]=u,e[31]=n.toolCallId,e[32]=m):m=e[32];let h;e[33]!==u||e[34]!==n.toolCallId?(h=u(n.toolCallId)?.latencySeconds,e[33]=u,e[34]=n.toolCallId,e[35]=h):h=e[35];let b;return e[36]!==n||e[37]!==p||e[38]!==m||e[39]!==h?(b=f.jsx(r5,{part:n,subtaskMeta:p,annotations:m,latency:h}),e[36]=n,e[37]=p,e[38]=m,e[39]=h,e[40]=b):b=e[40],b}case"text":{const p=!!a&&!s;let m;return e[41]!==r||e[42]!==n||e[43]!==p||e[44]!==a?(m=f.jsx(oa,{id:r,part:n,extraActions:a,copyable:!0,alwaysShowActions:p}),e[41]=r,e[42]=n,e[43]=p,e[44]=a,e[45]=m):m=e[45],m}case"reasoning":return null;case"step-start":case"file":case"source-url":case"source-document":return null;case"data-tool-metadata":case"data-tool-subtask-metadata":return null;default:{const p=n;if(p.type.startsWith("tool-")){const m=p.toolCallId;let h;e[46]!==i.toolMetadata||e[47]!==m?(h=i.toolMetadata.get(m),e[46]=i.toolMetadata,e[47]=m,e[48]=h):h=e[48];const b=h,S=b?.annotations,T=b?.latencySeconds,E=b?._meta;let y;return e[49]!==p||e[50]!==o||e[51]!==S||e[52]!==T||e[53]!==E?(y=f.jsx(T0,{part:p,annotations:S,latency:T,isLastMessage:o,toolMeta:E}),e[49]=p,e[50]=o,e[51]=S,e[52]=T,e[53]=E,e[54]=y):y=e[54],y}if(p.type.startsWith("data-"))return null;throw new Error(`Unknown part type: ${p.type}`)}}}function E5(){const t=V.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=f.jsx("div",{className:"text-[14px] text-muted-foreground/60 py-2",children:"No response was generated"}),t[0]=e):e=t[0],e}function T5(t){const e=V.c(7),{className:n,children:r}=t;let a;e[0]!==n?(a=ie("w-full min-w-0 group relative flex items-start gap-4 px-4 z-20 text-foreground flex-row",n),e[0]=n,e[1]=a):a=e[1];let i;e[2]!==r?(i=f.jsx("div",{className:"flex flex-col min-w-0 w-full items-start",children:f.jsx("div",{className:"w-full min-w-0 not-only:rounded-2xl text-[14px] wrap-break-word overflow-wrap-anywhere bg-transparent",children:r})}),e[2]=r,e[3]=i):i=e[3];let s;return e[4]!==a||e[5]!==i?(s=f.jsx("div",{className:a,children:i}),e[4]=a,e[5]=i,e[6]=s):s=e[6],s}function S5(t){const e=V.c(23),{message:n,status:r,className:a,isLast:i}=t,s=i===void 0?!1:i,o=r==="streaming",u=o||r==="submitted";let c;e[0]!==u?(c=()=>u?Date.now():null,e[0]=u,e[1]=c):c=e[1];const[d,p]=B.useState(c),[m,h]=B.useState(u);m!==u&&(h(u),p(u?Date.now():null));const b=n!==null&&n.parts.length>0,{reasoningParts:S,dataParts:T}=o5(n),E=S.length>0;let y;if(e[2]!==n){const O=n?.metadata?.reasoning_start_at?new Date(n.metadata.reasoning_start_at):null,w=n?.metadata?.reasoning_end_at?new Date(n.metadata.reasoning_end_at):new Date;y=O!==null?w.getTime()-O.getTime():null,e[2]=n,e[3]=y}else y=e[3];const A=y;let x;e[4]!==T||e[5]!==A||e[6]!==b||e[7]!==E||e[8]!==s||e[9]!==u||e[10]!==o||e[11]!==n||e[12]!==S||e[13]!==d?(x=b?f.jsxs("div",{className:"flex flex-col gap-3 sm:gap-2",children:[E&&f.jsx(f5,{duration:A,parts:S,isStreaming:o}),n.parts.map((O,w)=>{const v=w===n.parts.length-1,D=v?ky(wy(),n.metadata?.usage):null;return f.jsx(b5,{part:O,id:n.id,usageStats:v&&f.jsx($U,{usage:D,duration:A}),dataParts:T,isLoading:u,isLastMessage:s},`${n.id}-${w}`)}),s&&u&&d!==null&&f.jsx(p5,{startedAt:d})]}):u?f.jsx(c5,{}):f.jsx(E5,{}),e[4]=T,e[5]=A,e[6]=b,e[7]=E,e[8]=s,e[9]=u,e[10]=o,e[11]=n,e[12]=S,e[13]=d,e[14]=x):x=e[14];let _;e[15]!==s||e[16]!==o||e[17]!==n?.parts?(_=s&&o&&f.jsx(i5,{parts:n?.parts}),e[15]=s,e[16]=o,e[17]=n?.parts,e[18]=_):_=e[18];let I;return e[19]!==a||e[20]!==x||e[21]!==_?(I=f.jsxs(T5,{className:a,children:[x,_]}),e[19]=a,e[20]=x,e[21]=_,e[22]=I):I=e[22],I}const y5=[U0.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1}),cT,LS];function _5(t){const e=V.c(5),{tiptapDoc:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={attributes:{class:"prose prose-sm max-w-none focus:outline-none"}},e[0]=r):r=e[0];let a;e[1]!==n?(a={extensions:y5,content:n,editable:!1,editorProps:r},e[1]=n,e[2]=a):a=e[2];const i=B0(a);if(!i)return null;let s;return e[3]!==i?(s=f.jsx(H0,{editor:i,className:"[&_.ProseMirror]:outline-none [&_.ProseMirror]:cursor-text"}),e[3]=i,e[4]=s):s=e[4],s}function A5(t){const e=V.c(27),{message:n,className:r,onScrollToPair:a}=t,{id:i,parts:s,metadata:o}=n,[l,u]=B.useState(!1),[c,d]=B.useState(!1),p=B.useRef(!1);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=M=>{M&&!p.current&&(p.current=!0,d(M.scrollHeight>M.clientHeight))},e[0]=m):m=e[0];const h=m;if(!s||s.length===0)return null;let b;e[1]!==a?(b=()=>{u(!0),a?.()},e[1]=a,e[2]=b):b=e[2];const S=b,T=o?.tiptapDoc;let E;e[3]!==r?(E=ie("message-block w-full min-w-0 relative flex items-start gap-4 px-2.5 text-foreground flex-row-reverse",r),e[3]=r,e[4]=E):E=e[4];let y,A;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=()=>u(!0),A=()=>u(!1),e[5]=y,e[6]=A):(y=e[5],A=e[6]);let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=f.jsx("div",{className:"absolute inset-0 bg-muted/75 rounded-lg pointer-events-none"}),e[7]=x):x=e[7];let _;e[8]!==l||e[9]!==c?(_=ie("z-10 px-4 py-2 transition-opacity max-h-[84px] flex-1",l?"overflow-auto opacity-100":ie("overflow-hidden opacity-99",c&&"mask-b-from-1%")),e[8]=l,e[9]=c,e[10]=_):_=e[10];let I;e[11]!==T||e[12]!==i||e[13]!==o||e[14]!==s?(I=T?f.jsx(_5,{tiptapDoc:o.tiptapDoc}):s.map((M,P)=>M.type==="text"?f.jsx(oa,{id:i,part:M},`${i}-${P}`):null),e[11]=T,e[12]=i,e[13]=o,e[14]=s,e[15]=I):I=e[15];let O;e[16]!==I?(O=f.jsx("div",{children:I}),e[16]=I,e[17]=O):O=e[17];let w;e[18]!==_||e[19]!==O?(w=f.jsx("div",{ref:h,className:_,children:O}),e[18]=_,e[19]=O,e[20]=w):w=e[20];let v;e[21]!==S||e[22]!==w?(v=f.jsxs("div",{tabIndex:0,onClick:S,onFocus:y,onBlur:A,className:"w-full border border-border/60 min-w-0 shadow-xs rounded-lg text-[14px] wrap-break-word overflow-wrap-anywhere bg-background cursor-pointer transition-colors relative flex outline-none",children:[x,w]}),e[21]=S,e[22]=w,e[23]=v):v=e[23];let D;return e[24]!==v||e[25]!==E?(D=f.jsx(f.Fragment,{children:f.jsx("div",{className:E,children:v})}),e[24]=v,e[25]=E,e[26]=D):D=e[26],D}function x5(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];if(r&&r.role==="user"){const a=t[n+1];a&&a.role==="assistant"?(e.push({user:r,assistant:a}),n++):e.push({user:r,assistant:null})}}return e}function S0(t){const e=V.c(15),{pair:n,isLastPair:r,status:a}=t,i=B.useRef(null);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{i.current&&i.current.scrollIntoView({behavior:"smooth",block:"start"})},e[0]=s):s=e[0];const o=s;let l;e[1]!==r?(l=b=>{i.current=b,r&&b?.scrollIntoView({behavior:"smooth",block:"start"})},e[1]=r,e[2]=l):l=e[2];const u=l;let c,d;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=ie("flex flex-col pb-2 sm:pb-2"),d=f.jsx("div",{className:"sticky top-0 z-50 w-full h-4 bg-background"}),e[3]=c,e[4]=d):(c=e[3],d=e[4]);let p;e[5]!==n.user?(p=f.jsx("div",{className:"sticky mb-8 sm:mb-6 top-4 z-50",children:f.jsx(A5,{message:n.user,onScrollToPair:o})}),e[5]=n.user,e[6]=p):p=e[6];let m;e[7]!==r||e[8]!==n.assistant||e[9]!==a?(m=f.jsx(S5,{message:n.assistant,status:a,isLast:r}),e[7]=r,e[8]=n.assistant,e[9]=a,e[10]=m):m=e[10];let h;return e[11]!==u||e[12]!==p||e[13]!==m?(h=f.jsxs("div",{ref:u,className:c,children:[d,p,m]}),e[11]=u,e[12]=p,e[13]=m,e[14]=h):h=e[14],h}function v5(t){const e=new Date(t),r=new Date().getTime()-e.getTime(),a=Math.floor(r/6e4),i=Math.floor(r/36e5);return a<1?"now":a<60?`${a}m`:`${i}h`}function N5(t){const e=new Date,n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(n.getTime()-864e5),a=new Date(n.getTime()-7*864e5),i=new Date(n.getTime()-30*864e5),s=[],o=[],l=[],u=[],c=[];for(const p of t){const m=new Date(p.updated_at);m>=n?s.push(p):m>=r?o.push(p):m>=a?l.push(p):m>=i?u.push(p):c.push(p)}const d=[];return s.length>0&&d.push({label:"Today",tasks:s,showRelativeTime:!0}),o.length>0&&d.push({label:"Yesterday",tasks:o,showRelativeTime:!1}),l.length>0&&d.push({label:"7 days ago",tasks:l,showRelativeTime:!1}),u.length>0&&d.push({label:"30 days ago",tasks:u,showRelativeTime:!1}),c.length>0&&d.push({label:"Older",tasks:c,showRelativeTime:!1}),d}function I5(t){const e=V.c(60),{variant:n}=t,r=n===void 0?"icon":n,[a,i]=B.useState(""),[s,o]=B.useState(null),[l,u]=B.useState(""),{activeTaskId:c,switchToTask:d,tasks:p,hasNextPage:m,isFetchingNextPage:h,fetchNextPage:b,hideTask:S,renameTask:T}=Wn(),E=B.useRef(null),y=B.useRef(null);let A;e[0]!==b||e[1]!==m||e[2]!==h?(A=te=>{y.current&&y.current.disconnect(),te&&m&&!h&&b&&(y.current=new IntersectionObserver(C=>{C[0]?.isIntersecting&&m&&!h&&b&&b()},{rootMargin:"100px"}),y.current.observe(te)),E.current=te},e[0]=b,e[1]=m,e[2]=h,e[3]=A):A=e[3];const x=A;let _,I,O,w,v,D,M,P,F,U,z;if(e[4]!==c||e[5]!==s||e[6]!==l||e[7]!==m||e[8]!==S||e[9]!==h||e[10]!==T||e[11]!==a||e[12]!==x||e[13]!==d||e[14]!==p||e[15]!==r){const te=a.trim()?p.filter(fe=>fe.title.toLowerCase().includes(a.toLowerCase())):p,C=N5(te);let ee;e[27]===Symbol.for("react.memo_cache_sentinel")?(ee=(fe,Ee)=>{Ee.stopPropagation(),o(fe.id),u(fe.title||"")},e[27]=ee):ee=e[27];const re=ee;let ne;e[28]!==l||e[29]!==T?(ne=async fe=>{const Ee=l.trim();Ee&&await T(fe,Ee),o(null)},e[28]=l,e[29]=T,e[30]=ne):ne=e[30];const J=ne;let se;e[31]!==J?(se=(fe,Ee)=>{fe.key==="Enter"?(fe.preventDefault(),J(Ee)):fe.key==="Escape"&&o(null)},e[31]=J,e[32]=se):se=e[32];const ge=se;w=R0,O=rt,I=Mr,e[33]!==r?(U=f.jsx(at,{asChild:!0,children:f.jsx(Pr,{asChild:!0,children:r==="outline"?f.jsx(Ie,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input","aria-label":"Chat history",children:f.jsx(Vd,{size:16})}):f.jsx(Ie,{type:"button",variant:"ghost",size:"icon",className:"size-6 p-1 hover:bg-transparent","aria-label":"Chat history",children:f.jsx(Vd,{size:16,className:"text-muted-foreground hover:text-foreground transition-colors"})})})}),e[33]=r,e[34]=U):U=e[34],e[35]===Symbol.for("react.memo_cache_sentinel")?(z=f.jsx(it,{children:"Chat history"}),e[35]=z):z=e[35],_=Fr,M="end",P="w-80 p-0";let he;e[36]===Symbol.for("react.memo_cache_sentinel")?(he=f.jsx(td,{size:16,className:"text-muted-foreground shrink-0"}),e[36]=he):he=e[36];let be;e[37]===Symbol.for("react.memo_cache_sentinel")?(be=fe=>i(fe.target.value),e[37]=be):be=e[37],e[38]!==a?(F=f.jsx("div",{className:"border-b",children:f.jsxs("label",{className:"flex items-center gap-2.5 h-12 px-4 cursor-text",children:[he,f.jsx("input",{type:"text",placeholder:"Search chats...",value:a,onChange:be,className:"flex-1 border-0 shadow-none focus:outline-none px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"})]})}),e[38]=a,e[39]=F):F=e[39],v="max-h-[300px] overflow-y-auto",D=te.length===0?f.jsx("div",{className:"p-4 text-center text-sm text-muted-foreground",children:a.trim()?"No chats found":"No chats yet"}):f.jsxs(f.Fragment,{children:[C.map((fe,Ee)=>f.jsxs("div",{children:[Ee>0&&f.jsx("div",{className:"border-t mx-3"}),f.jsx("div",{className:"px-3 py-1",children:f.jsx("span",{className:"text-xs font-medium text-muted-foreground tracking-wide",children:fe.label})}),fe.tasks.map(Ae=>{const ze=Ae.id===c,Re=s===Ae.id;return f.jsxs("div",{className:ie("flex items-center gap-2 px-3 py-2 hover:bg-accent cursor-pointer group",ze&&"bg-accent/50"),onClick:()=>!Re&&d(Ae.id),children:[f.jsx("div",{className:"flex-1 min-w-0",children:Re?f.jsxs("div",{className:"flex items-center gap-1",onClick:C5,children:[f.jsx("input",{autoFocus:!0,value:l,onChange:ke=>u(ke.target.value),onBlur:()=>J(Ae.id),onKeyDown:ke=>ge(ke,Ae.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),f.jsx("button",{type:"button",onMouseDown:R5,onClick:()=>J(Ae.id),className:"p-0.5 hover:bg-accent rounded shrink-0",children:f.jsx(zt,{size:12,className:"text-muted-foreground hover:text-foreground"})})]}):f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-sm truncate",children:Ae.title||"New chat"}),f.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:ze?"current":fe.showRelativeTime?v5(Ae.updated_at):null})]})}),!Re&&f.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[f.jsx("button",{type:"button",onClick:ke=>re(Ae,ke),className:"opacity-0 cursor-pointer group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename chat",children:f.jsx(z0,{size:13,className:"text-muted-foreground hover:text-foreground"})}),f.jsx("button",{type:"button",onClick:ke=>{ke.stopPropagation(),S(Ae.id)},className:"opacity-0 cursor-pointer group/trash group-hover:opacity-100 p-1 hover:bg-destructive/10 rounded transition-opacity",title:"Remove chat",children:f.jsx(v_,{size:14,className:"text-muted-foreground group-hover/trash:text-destructive"})})]})]},Ae.id)})]},fe.label)),!a.trim()&&m&&f.jsx("div",{ref:x,className:"h-4"}),h&&f.jsx("div",{className:"p-3 text-center text-xs text-muted-foreground",children:"Loading more chats..."})]}),e[4]=c,e[5]=s,e[6]=l,e[7]=m,e[8]=S,e[9]=h,e[10]=T,e[11]=a,e[12]=x,e[13]=d,e[14]=p,e[15]=r,e[16]=_,e[17]=I,e[18]=O,e[19]=w,e[20]=v,e[21]=D,e[22]=M,e[23]=P,e[24]=F,e[25]=U,e[26]=z}else _=e[16],I=e[17],O=e[18],w=e[19],v=e[20],D=e[21],M=e[22],P=e[23],F=e[24],U=e[25],z=e[26];let G;e[40]!==v||e[41]!==D?(G=f.jsx("div",{className:v,children:D}),e[40]=v,e[41]=D,e[42]=G):G=e[42];let j;e[43]!==_||e[44]!==G||e[45]!==M||e[46]!==P||e[47]!==F?(j=f.jsxs(_,{align:M,className:P,children:[F,G]}),e[43]=_,e[44]=G,e[45]=M,e[46]=P,e[47]=F,e[48]=j):j=e[48];let Z;e[49]!==I||e[50]!==j||e[51]!==U||e[52]!==z?(Z=f.jsxs(I,{children:[U,z,j]}),e[49]=I,e[50]=j,e[51]=U,e[52]=z,e[53]=Z):Z=e[53];let R;e[54]!==O||e[55]!==Z?(R=f.jsx(O,{children:Z}),e[54]=O,e[55]=Z,e[56]=R):R=e[56];let Y;return e[57]!==w||e[58]!==R?(Y=f.jsx(w,{children:R}),e[57]=w,e[58]=R,e[59]=Y):Y=e[59],Y}function R5(t){return t.preventDefault()}function C5(t){return t.stopPropagation()}function k5(t){const e=V.c(11),{className:n}=t;let r;e[0]!==n?(r=ie("flex h-full w-full flex-col bg-background",n),e[0]=n,e[1]=r):r=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=f.jsx("div",{className:"size-6 rounded-lg bg-muted animate-pulse"}),e[2]=a):a=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=f.jsxs("div",{className:"flex items-center gap-3",children:[a,f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("div",{className:"h-3.5 w-28 rounded bg-muted animate-pulse"}),f.jsx("div",{className:"h-3 w-40 rounded bg-muted/60 animate-pulse"})]})]}),e[3]=i):i=e[3];let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx("div",{className:"flex items-center h-12 flex-none border-b border-border/80 px-4",children:f.jsxs("div",{className:"flex items-center justify-between gap-3 w-full",children:[i,f.jsxs("div",{className:"flex items-end gap-2",children:[f.jsx("div",{className:"h-6 w-6 rounded-full bg-muted animate-pulse"}),f.jsx("div",{className:"h-6 w-6 rounded-lg bg-muted animate-pulse"})]})]})}),e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=f.jsx("div",{className:"flex-1 overflow-hidden px-4 py-4",children:f.jsxs("div",{className:"mx-auto flex w-full max-w-2xl flex-col gap-4",children:[f.jsx(pr,{align:"right",width:"w-3/4"}),f.jsx(pr,{align:"left",width:"w-full",lines:3}),f.jsx(pr,{align:"right",width:"w-2/3"}),f.jsx(pr,{align:"left",width:"w-5/6",lines:2})]})}),e[5]=o):o=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=f.jsx("div",{className:"relative flex flex-1 flex-col gap-2 p-2.5",children:f.jsx("div",{className:"relative flex-1",children:f.jsxs("div",{className:"space-y-2 p-2",children:[f.jsx("div",{className:"h-3 w-full rounded bg-muted/40 animate-pulse"}),f.jsx("div",{className:"h-3 w-4/5 rounded bg-muted/40 animate-pulse"})]})})}),e[6]=l):l=e[6];let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=f.jsx("div",{className:"flex items-center gap-1",children:f.jsx("div",{className:"size-8 rounded-full bg-muted/60 animate-pulse"})}),e[7]=u):u=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=f.jsx("div",{className:"px-4 py-4",children:f.jsx("div",{className:"mx-auto w-full max-w-2xl",children:f.jsxs("div",{className:"relative flex min-h-[130px] flex-col rounded-xl border border-border bg-background shadow-sm",children:[l,f.jsxs("div",{className:"flex items-center justify-between px-2.5 pb-2.5",children:[u,f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("div",{className:"h-8 w-32 rounded-lg bg-muted/60 animate-pulse"}),f.jsx("div",{className:"size-8 rounded-full bg-muted animate-pulse"})]})]})]})})}),e[8]=c):c=e[8];let d;return e[9]!==r?(d=f.jsxs("div",{className:r,children:[s,o,c]}),e[9]=r,e[10]=d):d=e[10],d}function pr(t){const e=V.c(22),{align:n,width:r,lines:a}=t,i=r===void 0?"w-full":r,s=a===void 0?1:a,o=n==="right"?"flex-row-reverse":"flex-row";let l;e[0]!==o?(l=ie("flex w-full gap-4 px-4 py-2",o),e[0]=o,e[1]=l):l=e[1];const u=n==="right"?"ml-auto max-w-3/4 items-end":"w-full items-start";let c;e[2]!==u?(c=ie("flex min-w-0 flex-col gap-2",u),e[2]=u,e[3]=c):c=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=f.jsx("div",{className:"h-3 w-16 rounded bg-muted/40 animate-pulse"}),e[4]=d):d=e[4];const p=n==="right"?"bg-muted":"bg-transparent border border-border/40";let m;e[5]!==p||e[6]!==i?(m=ie("min-w-0 rounded-2xl p-4",p,i),e[5]=p,e[6]=i,e[7]=m):m=e[7];let h;e[8]!==s?(h=Array.from({length:s}),e[8]=s,e[9]=h):h=e[9];let b;e[10]!==s||e[11]!==h?(b=f.jsx("div",{className:"space-y-2",children:h.map((y,A)=>f.jsx("div",{className:ie("h-3 rounded bg-muted-foreground/20 animate-pulse",A===s-1?"w-3/4":"w-full"),style:{animationDelay:`${A*.1}s`}},A))}),e[10]=s,e[11]=h,e[12]=b):b=e[12];let S;e[13]!==b||e[14]!==m?(S=f.jsx("div",{className:m,children:b}),e[13]=b,e[14]=m,e[15]=S):S=e[15];let T;e[16]!==S||e[17]!==c?(T=f.jsxs("div",{className:c,children:[d,S]}),e[16]=S,e[17]=c,e[18]=T):T=e[18];let E;return e[19]!==T||e[20]!==l?(E=f.jsx("div",{className:l,children:T}),e[19]=T,e[20]=l,e[21]=E):E=e[21],E}function w5(t){const e=V.c(5),{className:n,children:r}=t;let a;e[0]!==n?(a=ie("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),e[0]=n,e[1]=a):a=e[1];let i;return e[2]!==r||e[3]!==a?(i=f.jsx("div",{className:a,children:r}),e[2]=r,e[3]=a,e[4]=i):i=e[4],i}function O5(t){const e=V.c(5),{children:n,className:r}=t;let a;e[0]!==r?(a=ie("flex-1 min-h-0 overflow-y-auto isolate",r),e[0]=r,e[1]=a):a=e[1];let i;return e[2]!==n||e[3]!==a?(i=f.jsx("div",{className:a,children:n}),e[2]=n,e[3]=a,e[4]=i):i=e[4],i}function L5(t){const e=V.c(2),{children:n}=t;let r;return e[0]!==n?(r=f.jsx("div",{className:"h-full w-full flex items-center justify-center max-w-2xl mx-auto",children:n}),e[0]=n,e[1]=r):r=e[1],r}function D5(){const t=V.c(16),{messages:e,status:n}=Yn(),r=x5(e);let a;t[0]!==r?(a=r.at(-1),t[0]=r,t[1]=a):a=t[1];const i=a,s=n==="submitted"||n==="streaming";let o;if(t[2]!==s||t[3]!==i||t[4]!==r||t[5]!==e||t[6]!==n){const l=e.at(-1),u=!s&&l?.role==="assistant"&&l.parts.filter(F5).some(P5),c=!s&&l?.role==="assistant"&&l.parts.some(M5);let d;if(t[8]!==r||t[9]!==n){let m;t[11]!==r.length||t[12]!==n?(m=(h,b)=>f.jsx(S0,{pair:h,isLastPair:!1,status:b===r.length-1?n:void 0},`pair-${h.user.id}`),t[11]=r.length,t[12]=n,t[13]=m):m=t[13],d=r.slice(0,-1).map(m),t[8]=r,t[9]=n,t[10]=d}else d=t[10];let p;t[14]!==d?(p=f.jsx("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:d}),t[14]=d,t[15]=p):p=t[15],o=f.jsxs("div",{className:"w-full min-w-0 max-w-full overflow-y-auto h-full overflow-x-hidden",children:[p,i&&f.jsx("div",{className:ie("min-h-full min-w-0 max-w-2xl mx-auto w-full",(u||c)&&"pb-60"),children:f.jsx(S0,{pair:i,isLastPair:!0,status:n},`pair-${i?.user.id}`)})]}),t[2]=s,t[3]=i,t[4]=r,t[5]=e,t[6]=n,t[7]=o}else o=t[7];return o}function M5(t){return"state"in t&&t.state==="approval-requested"}function P5(t){return t.state==="input-available"}function F5(t){return t.type==="tool-user_ask"}function B5(t){const e=V.c(5),{children:n,className:r}=t;let a;e[0]!==r?(a=ie("flex-none w-full mx-auto p-2","max-w-2xl min-w-0",r),e[0]=r,e[1]=a):a=e[1];let i;return e[2]!==n||e[3]!==a?(i=f.jsx("div",{className:a,children:n}),e[2]=n,e[3]=a,e[4]=i):i=e[4],i}const P8=Object.assign(w5,{Main:O5,Messages:D5,EmptyState:L5,Footer:B5,Input:XU,Provider:dA,Skeleton:k5,IceBreakers:xA,NoLlmBindingEmptyState:NS,TaskHistoryPopover:I5}),F8=["in_progress","requires_action","failed","expired","completed"],B8={in_progress:{label:"In Progress",icon:C_,iconClassName:"text-muted-foreground animate-spin"},requires_action:{label:"Need Action",icon:Wy,iconClassName:"text-orange-500"},failed:{label:"Failed",icon:Y0,iconClassName:"text-destructive"},expired:{label:"Timed Out",icon:Vy,iconClassName:"text-warning"},completed:{label:"Complete",icon:Zy,iconClassName:"text-success"}};function U8(t){const e={};for(const n of t){const r=n.status??"completed";e[r]||(e[r]=[]),e[r].push(n)}for(const n of Object.values(e))n.sort((r,a)=>new Date(a.updated_at).getTime()-new Date(r.updated_at).getTime());return e}export{P8 as C,hB as M,B8 as S,HU as T,jU as a,F8 as b,M8 as c,U8 as g,vA as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as n,j as r,E as d,r as f,u as x,e as j}from"./index-Di6oLb1g.js";import{T as h}from"./tasks-panel-CKxWhrpo.js";import{P as p}from"./index-B3DLUye8.js";import{B as g,a as b,b as T,c as k}from"./breadcrumb-DBLmG8ET.js";import{i as B}from"./Loading01-ZUH_hVSq.js";import{u as S}from"./context-C2WVT2wI.js";import"./task-status-mBvgK6CE.js";import"./popover-DnP50c_4.js";import"./skeleton-jHSQmvNz.js";import"./spinner-uIlWy8Tn.js";import"./tooltip-Bt2vWRpT.js";import"./index-C45O1mgu.js";import"./constants-kAo23sAc.js";import"./use-mcp-prompts-zeDoy0Xo.js";import"./useQuery-BrfnS-T_.js";import"./dialog-B-I43lOk.js";import"./X-1dO_8PIJ.js";import"./form-edx7u0Be.js";import"./label-BGeQL0ka.js";import"./input-DQ4QcwHR.js";import"./index-SfPPYQt8.js";import"./usage-BW6ztpN6.js";import"./integration-icon-DlCg0T4C.js";import"./Container-sfWYtc36.js";import"./AlertCircle-D2rRA9CS.js";import"./ArrowUp-CpDF-NAu.js";import"./ArrowLeft-D4bkD9qi.js";import"./XCircle-BEC1SvTX.js";import"./Type01-BRLQyycA.js";import"./Check-CecxQkQE.js";import"./ChevronDown-Cm9SuGtV.js";import"./ChevronRight-2xVQHhsF.js";import"./ChevronUp-B6bu9ZD3.js";import"./RefreshCcw01-Cu6svfY5.js";import"./Play-CCpyKlpN.js";import"./Dataflow03-BcXlVxgR.js";import"./Download01-DGSbxmSo.js";import"./List-CnkQuVUq.js";import"./VideoRecorder-CqjZf9cg.js";import"./FolderClosed-DlY-lqwP.js";import"./Grid01-CLnEHof5.js";import"./Plus-D9CNWrFQ.js";import"./SearchMd-BH_J7-7p.js";import"./Settings01-DTaoTYj1.js";import"./Trash01-Cv31wiMP.js";import"./Upload01-BY6Noksk.js";import"./User01-BloSEKZw.js";import"./XClose-BzyTilGE.js";import"./Zap-D6SUOiFY.js";import"./org-ai-providers-DGjdQR3W.js";import"./useMutation-BOcaN318.js";import"./card-BkMKAjKJ.js";import"./toggle-group-C2i_WN24.js";import"./avatar-CahK8DWE.js";import"./ai-providers-logos-Cr4iRu-0.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./select-DE6nOtq4.js";import"./index-BdQq_4o_.js";import"./use-copy-_cPtrtTH.js";import"./marked.esm-BaswSlok.js";import"./tabs-Co0v-Gtu.js";import"./checkbox-DFbWpPSa.js";import"./drawer-Cc_fH-oc.js";import"./select-virtual-mcp-BcDL714M.js";import"./use-virtual-mcp-BdGbK3Wg.js";import"./use-collections-CojcRvND.js";import"./use-create-virtual-mcp-D7i1HcQg.js";import"./use-mcp-resources-BIFxFRhN.js";import"./collapsible-CzCLTaIa.js";import"./index-CNQ1T_R3.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Cg9Eew2n.js";import"./types-C4sVrknd.js";import"./useSuspenseInfiniteQuery-XlSq2d-l.js";import"./infiniteQueryObserver-Cg7Qn-Py.js";import"./collection-search-BaA_5hnO.js";import"./user-BdXDOTfV.js";import"./format-time-CMKyl-GC.js";import"./empty-state-UToLDOJO.js";import"./dropdown-menu-KiFp7XSX.js";import"./decopilot-events-Brt4gAR6.js";import"./index-CJ0BaJHY.js";function v(){const t=n.c(8),{org:o,project:s}=x(),a=j(),{switchToTask:c}=S();let i;t[0]!==a||t[1]!==o.slug||t[2]!==s.slug||t[3]!==c?(i=async u=>{await c(u),a({to:"/$org/$project",params:{org:o.slug,project:s.slug}})},t[0]=a,t[1]=o.slug,t[2]=s.slug,t[3]=c,t[4]=i):i=t[4];const l=i;let m;t[5]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(p.Header,{children:r.jsx(p.Header.Left,{children:r.jsx(g,{children:r.jsx(b,{children:r.jsx(T,{children:r.jsx(k,{children:"Tasks"})})})})})}),t[5]=m):m=t[5];let e;return t[6]!==l?(e=r.jsxs(p,{children:[m,r.jsx(p.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(h,{onTaskSelect:l})})})]}),t[6]=l,t[7]=e):e=t[7],e}function tr(){const t=n.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(d,{children:r.jsx(f.Suspense,{fallback:r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(B,{size:32,className:"animate-spin text-muted-foreground"})}),children:r.jsx(v,{})})}),t[0]=o):o=t[0],o}export{tr as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bi as W,c as C,r as v,j as t,D as w,B as re,E as ne}from"./index-BjxqoU_w.js";import{g as le,b as oe,S as ae}from"./task-status-DwSGaLCq.js";import{a as q,u as V}from"./context-0-m5aPvK.js";import{C as ie}from"./collection-search-DmeA1lkM.js";import{U as ce}from"./user-BtGr8jKI.js";import{f as de}from"./format-time-CMKyl-GC.js";import{a as me,b as fe,T as ue}from"./tooltip-SqkLa6wk.js";import{o as xe,e as he}from"./integration-icon-C9ac9VOj.js";import{i as pe}from"./Check-CVKUMJv3.js";import{i as be}from"./ChevronRight-CTHCKnjF.js";import{i as J}from"./Loading01-DDv5lfhX.js";import{s as ge}from"./Plus-DcUxQQXw.js";import{E as je}from"./empty-state-hwIP0sm6.js";import{a as ye,g as Q,b as ke,h as Ne,D as ve}from"./dropdown-menu-IA1w2fjK.js";const we=W("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const Te=W("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);function Se(s){const e=C.c(12),{text:r,className:m}=s,o=v.useRef(null),[i,a]=v.useState(!1);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=h=>{h&&o.current?a(o.current.scrollWidth>o.current.clientWidth):a(!1)},e[0]=n):n=e[0];let f;e[1]!==m?(f=w("truncate block",m),e[1]=m,e[2]=f):f=e[2];let c;e[3]!==f||e[4]!==r?(c=t.jsx(me,{asChild:!0,children:t.jsx("span",{ref:o,className:f,children:r})}),e[3]=f,e[4]=r,e[5]=c):c=e[5];let d;e[6]!==r?(d=t.jsx(fe,{side:"top",align:"start",children:r}),e[6]=r,e[7]=d):d=e[7];let u;return e[8]!==i||e[9]!==c||e[10]!==d?(u=t.jsxs(ue,{open:i,onOpenChange:n,children:[c,d]}),e[8]=i,e[9]=c,e[10]=d,e[11]=u):u=e[11],u}function Ce(){const s=C.c(19),{ownerFilter:e,setOwnerFilter:r,isFilterChangePending:m}=V();let o;s[0]!==r?(o=k=>{r(k)},s[0]=r,s[1]=o):o=s[1];const i=o,a=e==="me",n=m?J:a?we:Te,f=a?"My tasks":"All tasks",c=m?"animate-spin text-muted-foreground":a?"text-foreground":"text-muted-foreground";let d;s[2]!==c?(d=w(c),s[2]=c,s[3]=d):d=s[3];let u;s[4]!==n||s[5]!==d?(u=t.jsx(n,{size:14,className:d}),s[4]=n,s[5]=d,s[6]=u):u=s[6];let h;s[7]!==m||s[8]!==f||s[9]!==u?(h=t.jsx(ye,{asChild:!0,children:t.jsx(re,{variant:"ghost",className:"size-8",title:f,disabled:m,children:u})}),s[7]=m,s[8]=f,s[9]=u,s[10]=h):h=s[10];let y,p;s[11]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(Q,{value:"me",children:"My tasks"}),p=t.jsx(Q,{value:"everyone",children:"All tasks"}),s[11]=y,s[12]=p):(y=s[11],p=s[12]);let j;s[13]!==i||s[14]!==e?(j=t.jsx(ke,{align:"end",children:t.jsxs(Ne,{value:e,onValueChange:i,children:[y,p]})}),s[13]=i,s[14]=e,s[15]=j):j=s[15];let b;return s[16]!==h||s[17]!==j?(b=t.jsxs(ve,{children:[h,j]}),s[16]=h,s[17]=j,s[18]=b):b=s[18],b}function Ee(s){const e=C.c(35),{onTaskSelect:r}=s,{activeTaskId:m,switchToTask:o}=q(),{renameTask:i,tasks:a}=V(),[n,f]=v.useState("");let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={},e[0]=c):c=e[0];const[d,u]=v.useState(c),[h,y]=v.useState(null),[p,j]=v.useState("");let b,k,N;if(e[1]!==m||e[2]!==d||e[3]!==h||e[4]!==p||e[5]!==r||e[6]!==i||e[7]!==n||e[8]!==o||e[9]!==a){const B=a.filter(ze),G=n.trim()?B.filter(l=>l.title.toLowerCase().includes(n.toLowerCase())):B,A=le(G),X=oe.filter(l=>A[l]&&A[l].length>0);let M;e[13]===Symbol.for("react.memo_cache_sentinel")?(M=l=>{u(g=>({...g,[l]:!g[l]}))},e[13]=M):M=e[13];const Y=M;let $;e[14]!==r||e[15]!==o?($=async l=>{r?r(l.id):await o(l.id)},e[14]=r,e[15]=o,e[16]=$):$=e[16];const Z=$;let U;e[17]===Symbol.for("react.memo_cache_sentinel")?(U=(l,g)=>{g.stopPropagation(),y(l.id),j(l.title||"")},e[17]=U):U=e[17];const ee=U;let F;e[18]!==p||e[19]!==i?(F=async l=>{const g=p.trim();g&&await i(l,g),y(null)},e[18]=p,e[19]=i,e[20]=F):F=e[20];const E=F;let I;e[21]!==E?(I=(l,g)=>{l.key==="Enter"?(l.preventDefault(),E(g)):l.key==="Escape"&&y(null)},e[21]=E,e[22]=I):I=e[22];const te=I;let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=l=>{l.key==="Escape"&&(f(""),l.target.blur())},e[23]=O):O=e[23];let S;e[24]!==n?(S=t.jsx(ie,{value:n,onChange:f,placeholder:"Search tasks...",onKeyDown:O}),e[24]=n,e[25]=S):S=e[25];let R;e[26]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2",children:t.jsx(Ce,{})}),e[26]=R):R=e[26],e[27]!==S?(N=t.jsxs("div",{className:"relative",children:[S,R]}),e[27]=S,e[28]=N):N=e[28],b="flex-1 overflow-y-auto flex flex-col",k=G.length===0?t.jsx(je,{image:t.jsx(xe,{size:48,className:"text-muted-foreground"}),title:n?"No tasks found":"No tasks yet",description:n?`No tasks match "${n}"`:"Tasks will appear here as you start working."}):X.map((l,g)=>{const D=ae[l];if(!D)return null;const L=D.icon,K=A[l]??[],H=!d[l];return t.jsxs("div",{className:"flex flex-col",children:[t.jsxs("button",{type:"button",onClick:()=>Y(l),className:w("flex items-center w-full bg-[rgba(245,245,245,0.3)] border-b border-border/50 dark:bg-[rgba(30,30,30,0.3)]",g!==0&&"border-t border-border/50"),children:[t.jsx("div",{className:"flex items-center justify-center w-9 shrink-0 px-3",children:t.jsx(be,{size:16,className:w("text-muted-foreground transition-transform duration-200",H&&"rotate-90")})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 py-3",children:[t.jsx(L,{size:16,className:D.iconClassName}),t.jsx("span",{className:"font-mono text-xs text-muted-foreground uppercase tracking-wider",children:D.label}),t.jsx("span",{className:"text-xs text-muted-foreground/60",children:K.length})]})]}),H&&K.map(x=>{const se=x.id===m,P=h===x.id;return t.jsxs("div",{className:w("group flex items-center w-full hover:bg-accent/50 transition-colors cursor-pointer",se&&"bg-accent/50"),onClick:()=>!P&&Z(x),children:[t.jsxs("div",{className:"flex items-center gap-3 min-w-0 py-3 pl-4 flex-1",children:[t.jsx(L,{size:16,className:w("shrink-0",D.iconClassName)}),P?t.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0 pr-3",onClick:_e,children:[t.jsx("input",{autoFocus:!0,value:p,onChange:_=>j(_.target.value),onBlur:()=>E(x.id),onKeyDown:_=>te(_,x.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),t.jsx("button",{type:"button",onMouseDown:De,onClick:()=>E(x.id),className:"p-1 hover:bg-accent rounded shrink-0",children:t.jsx(pe,{size:12,className:"text-muted-foreground"})})]}):t.jsx(Se,{text:x.title||"Untitled",className:"text-sm font-medium text-foreground flex-1 min-w-0"})]}),!P&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex items-center gap-1 px-2 shrink-0",children:[t.jsx("button",{type:"button",onClick:_=>ee(x,_),className:"sm:opacity-0 sm:group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename task",children:t.jsx(he,{size:13,className:"text-muted-foreground"})}),x.created_by&&t.jsx(ce,{id:x.created_by,size:"3xs",avatarOnly:!0})]}),t.jsx("div",{className:"w-20 p-3 shrink-0 text-right",children:t.jsx("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:x.updated_at?de(new Date(x.updated_at)):"—"})})]})]},x.id)})]},l)}),e[1]=m,e[2]=d,e[3]=h,e[4]=p,e[5]=r,e[6]=i,e[7]=n,e[8]=o,e[9]=a,e[10]=b,e[11]=k,e[12]=N}else b=e[10],k=e[11],N=e[12];let T;e[29]!==b||e[30]!==k?(T=t.jsx("div",{className:b,children:k}),e[29]=b,e[30]=k,e[31]=T):T=e[31];let z;return e[32]!==N||e[33]!==T?(z=t.jsxs(t.Fragment,{children:[N,T]}),e[32]=N,e[33]=T,e[34]=z):z=e[34],z}function De(s){return s.preventDefault()}function _e(s){return s.stopPropagation()}function ze(s){return!s.hidden}function Me(s){const e=C.c(12),{onTaskSelect:r}=s,{createTask:m,isChatEmpty:o}=q();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"}),e[0]=i):i=e[0];let a;e[1]!==m?(a=()=>m(),e[1]=m,e[2]=a):a=e[2];let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(ge,{size:16,className:"text-muted-foreground"}),e[3]=n):n=e[3];let f;e[4]!==o||e[5]!==a?(f=t.jsxs("div",{className:"h-11 px-4 flex items-center justify-between shrink-0 border-b border-border/50",children:[i,t.jsx("button",{type:"button",onClick:a,disabled:o,className:"flex size-7 items-center justify-center rounded-md hover:bg-accent transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",title:"New chat",children:n})]}),e[4]=o,e[5]=a,e[6]=f):f=e[6];let c;e[7]!==r?(c=t.jsx(Ee,{onTaskSelect:r}),e[7]=r,e[8]=c):c=e[8];let d;return e[9]!==f||e[10]!==c?(d=t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[f,c]}),e[9]=f,e[10]=c,e[11]=d):d=e[11],d}function $e(){const s=C.c(2);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),s[0]=e):e=s[0];let r;return s[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[e,t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(J,{size:20,className:"animate-spin text-muted-foreground"})})]}),s[1]=r):r=s[1],r}function Ve(s){const e=C.c(8),{className:r,onTaskSelect:m}=s;let o;e[0]!==r?(o=w("h-full",r),e[0]=r,e[1]=o):o=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx($e,{}),e[2]=i):i=e[2];let a;e[3]!==m?(a=t.jsx(ne,{fallback:Ue,children:t.jsx(v.Suspense,{fallback:i,children:t.jsx(Me,{onTaskSelect:m})})}),e[3]=m,e[4]=a):a=e[4];let n;return e[5]!==o||e[6]!==a?(n=t.jsx("div",{className:o,children:a}),e[5]=o,e[6]=a,e[7]=n):n=e[7],n}function Ue(){return t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[t.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),t.jsx("div",{className:"flex-1 flex items-center justify-center px-4 text-center",children:t.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})]})}export{Ee as T,Ve as a};
|
|
1
|
+
import{bi as W,c as C,r as v,j as t,D as w,B as re,E as ne}from"./index-Di6oLb1g.js";import{g as le,b as oe,S as ae}from"./task-status-mBvgK6CE.js";import{a as q,u as V}from"./context-C2WVT2wI.js";import{C as ie}from"./collection-search-BaA_5hnO.js";import{U as ce}from"./user-BdXDOTfV.js";import{f as de}from"./format-time-CMKyl-GC.js";import{a as me,b as fe,T as ue}from"./tooltip-Bt2vWRpT.js";import{o as xe,e as he}from"./integration-icon-DlCg0T4C.js";import{i as pe}from"./Check-CecxQkQE.js";import{i as be}from"./ChevronRight-2xVQHhsF.js";import{i as J}from"./Loading01-ZUH_hVSq.js";import{s as ge}from"./Plus-D9CNWrFQ.js";import{E as je}from"./empty-state-UToLDOJO.js";import{a as ye,g as Q,b as ke,h as Ne,D as ve}from"./dropdown-menu-KiFp7XSX.js";const we=W("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const Te=W("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);function Se(s){const e=C.c(12),{text:r,className:m}=s,o=v.useRef(null),[i,a]=v.useState(!1);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=h=>{h&&o.current?a(o.current.scrollWidth>o.current.clientWidth):a(!1)},e[0]=n):n=e[0];let f;e[1]!==m?(f=w("truncate block",m),e[1]=m,e[2]=f):f=e[2];let c;e[3]!==f||e[4]!==r?(c=t.jsx(me,{asChild:!0,children:t.jsx("span",{ref:o,className:f,children:r})}),e[3]=f,e[4]=r,e[5]=c):c=e[5];let d;e[6]!==r?(d=t.jsx(fe,{side:"top",align:"start",children:r}),e[6]=r,e[7]=d):d=e[7];let u;return e[8]!==i||e[9]!==c||e[10]!==d?(u=t.jsxs(ue,{open:i,onOpenChange:n,children:[c,d]}),e[8]=i,e[9]=c,e[10]=d,e[11]=u):u=e[11],u}function Ce(){const s=C.c(19),{ownerFilter:e,setOwnerFilter:r,isFilterChangePending:m}=V();let o;s[0]!==r?(o=k=>{r(k)},s[0]=r,s[1]=o):o=s[1];const i=o,a=e==="me",n=m?J:a?we:Te,f=a?"My tasks":"All tasks",c=m?"animate-spin text-muted-foreground":a?"text-foreground":"text-muted-foreground";let d;s[2]!==c?(d=w(c),s[2]=c,s[3]=d):d=s[3];let u;s[4]!==n||s[5]!==d?(u=t.jsx(n,{size:14,className:d}),s[4]=n,s[5]=d,s[6]=u):u=s[6];let h;s[7]!==m||s[8]!==f||s[9]!==u?(h=t.jsx(ye,{asChild:!0,children:t.jsx(re,{variant:"ghost",className:"size-8",title:f,disabled:m,children:u})}),s[7]=m,s[8]=f,s[9]=u,s[10]=h):h=s[10];let y,p;s[11]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(Q,{value:"me",children:"My tasks"}),p=t.jsx(Q,{value:"everyone",children:"All tasks"}),s[11]=y,s[12]=p):(y=s[11],p=s[12]);let j;s[13]!==i||s[14]!==e?(j=t.jsx(ke,{align:"end",children:t.jsxs(Ne,{value:e,onValueChange:i,children:[y,p]})}),s[13]=i,s[14]=e,s[15]=j):j=s[15];let b;return s[16]!==h||s[17]!==j?(b=t.jsxs(ve,{children:[h,j]}),s[16]=h,s[17]=j,s[18]=b):b=s[18],b}function Ee(s){const e=C.c(35),{onTaskSelect:r}=s,{activeTaskId:m,switchToTask:o}=q(),{renameTask:i,tasks:a}=V(),[n,f]=v.useState("");let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={},e[0]=c):c=e[0];const[d,u]=v.useState(c),[h,y]=v.useState(null),[p,j]=v.useState("");let b,k,N;if(e[1]!==m||e[2]!==d||e[3]!==h||e[4]!==p||e[5]!==r||e[6]!==i||e[7]!==n||e[8]!==o||e[9]!==a){const B=a.filter(ze),G=n.trim()?B.filter(l=>l.title.toLowerCase().includes(n.toLowerCase())):B,A=le(G),X=oe.filter(l=>A[l]&&A[l].length>0);let M;e[13]===Symbol.for("react.memo_cache_sentinel")?(M=l=>{u(g=>({...g,[l]:!g[l]}))},e[13]=M):M=e[13];const Y=M;let $;e[14]!==r||e[15]!==o?($=async l=>{r?r(l.id):await o(l.id)},e[14]=r,e[15]=o,e[16]=$):$=e[16];const Z=$;let U;e[17]===Symbol.for("react.memo_cache_sentinel")?(U=(l,g)=>{g.stopPropagation(),y(l.id),j(l.title||"")},e[17]=U):U=e[17];const ee=U;let F;e[18]!==p||e[19]!==i?(F=async l=>{const g=p.trim();g&&await i(l,g),y(null)},e[18]=p,e[19]=i,e[20]=F):F=e[20];const E=F;let I;e[21]!==E?(I=(l,g)=>{l.key==="Enter"?(l.preventDefault(),E(g)):l.key==="Escape"&&y(null)},e[21]=E,e[22]=I):I=e[22];const te=I;let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=l=>{l.key==="Escape"&&(f(""),l.target.blur())},e[23]=O):O=e[23];let S;e[24]!==n?(S=t.jsx(ie,{value:n,onChange:f,placeholder:"Search tasks...",onKeyDown:O}),e[24]=n,e[25]=S):S=e[25];let R;e[26]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2",children:t.jsx(Ce,{})}),e[26]=R):R=e[26],e[27]!==S?(N=t.jsxs("div",{className:"relative",children:[S,R]}),e[27]=S,e[28]=N):N=e[28],b="flex-1 overflow-y-auto flex flex-col",k=G.length===0?t.jsx(je,{image:t.jsx(xe,{size:48,className:"text-muted-foreground"}),title:n?"No tasks found":"No tasks yet",description:n?`No tasks match "${n}"`:"Tasks will appear here as you start working."}):X.map((l,g)=>{const D=ae[l];if(!D)return null;const L=D.icon,K=A[l]??[],H=!d[l];return t.jsxs("div",{className:"flex flex-col",children:[t.jsxs("button",{type:"button",onClick:()=>Y(l),className:w("flex items-center w-full bg-[rgba(245,245,245,0.3)] border-b border-border/50 dark:bg-[rgba(30,30,30,0.3)]",g!==0&&"border-t border-border/50"),children:[t.jsx("div",{className:"flex items-center justify-center w-9 shrink-0 px-3",children:t.jsx(be,{size:16,className:w("text-muted-foreground transition-transform duration-200",H&&"rotate-90")})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 py-3",children:[t.jsx(L,{size:16,className:D.iconClassName}),t.jsx("span",{className:"font-mono text-xs text-muted-foreground uppercase tracking-wider",children:D.label}),t.jsx("span",{className:"text-xs text-muted-foreground/60",children:K.length})]})]}),H&&K.map(x=>{const se=x.id===m,P=h===x.id;return t.jsxs("div",{className:w("group flex items-center w-full hover:bg-accent/50 transition-colors cursor-pointer",se&&"bg-accent/50"),onClick:()=>!P&&Z(x),children:[t.jsxs("div",{className:"flex items-center gap-3 min-w-0 py-3 pl-4 flex-1",children:[t.jsx(L,{size:16,className:w("shrink-0",D.iconClassName)}),P?t.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0 pr-3",onClick:_e,children:[t.jsx("input",{autoFocus:!0,value:p,onChange:_=>j(_.target.value),onBlur:()=>E(x.id),onKeyDown:_=>te(_,x.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),t.jsx("button",{type:"button",onMouseDown:De,onClick:()=>E(x.id),className:"p-1 hover:bg-accent rounded shrink-0",children:t.jsx(pe,{size:12,className:"text-muted-foreground"})})]}):t.jsx(Se,{text:x.title||"Untitled",className:"text-sm font-medium text-foreground flex-1 min-w-0"})]}),!P&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex items-center gap-1 px-2 shrink-0",children:[t.jsx("button",{type:"button",onClick:_=>ee(x,_),className:"sm:opacity-0 sm:group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename task",children:t.jsx(he,{size:13,className:"text-muted-foreground"})}),x.created_by&&t.jsx(ce,{id:x.created_by,size:"3xs",avatarOnly:!0})]}),t.jsx("div",{className:"w-20 p-3 shrink-0 text-right",children:t.jsx("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:x.updated_at?de(new Date(x.updated_at)):"—"})})]})]},x.id)})]},l)}),e[1]=m,e[2]=d,e[3]=h,e[4]=p,e[5]=r,e[6]=i,e[7]=n,e[8]=o,e[9]=a,e[10]=b,e[11]=k,e[12]=N}else b=e[10],k=e[11],N=e[12];let T;e[29]!==b||e[30]!==k?(T=t.jsx("div",{className:b,children:k}),e[29]=b,e[30]=k,e[31]=T):T=e[31];let z;return e[32]!==N||e[33]!==T?(z=t.jsxs(t.Fragment,{children:[N,T]}),e[32]=N,e[33]=T,e[34]=z):z=e[34],z}function De(s){return s.preventDefault()}function _e(s){return s.stopPropagation()}function ze(s){return!s.hidden}function Me(s){const e=C.c(12),{onTaskSelect:r}=s,{createTask:m,isChatEmpty:o}=q();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"}),e[0]=i):i=e[0];let a;e[1]!==m?(a=()=>m(),e[1]=m,e[2]=a):a=e[2];let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(ge,{size:16,className:"text-muted-foreground"}),e[3]=n):n=e[3];let f;e[4]!==o||e[5]!==a?(f=t.jsxs("div",{className:"h-11 px-4 flex items-center justify-between shrink-0 border-b border-border/50",children:[i,t.jsx("button",{type:"button",onClick:a,disabled:o,className:"flex size-7 items-center justify-center rounded-md hover:bg-accent transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",title:"New chat",children:n})]}),e[4]=o,e[5]=a,e[6]=f):f=e[6];let c;e[7]!==r?(c=t.jsx(Ee,{onTaskSelect:r}),e[7]=r,e[8]=c):c=e[8];let d;return e[9]!==f||e[10]!==c?(d=t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[f,c]}),e[9]=f,e[10]=c,e[11]=d):d=e[11],d}function $e(){const s=C.c(2);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),s[0]=e):e=s[0];let r;return s[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[e,t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(J,{size:20,className:"animate-spin text-muted-foreground"})})]}),s[1]=r):r=s[1],r}function Ve(s){const e=C.c(8),{className:r,onTaskSelect:m}=s;let o;e[0]!==r?(o=w("h-full",r),e[0]=r,e[1]=o):o=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx($e,{}),e[2]=i):i=e[2];let a;e[3]!==m?(a=t.jsx(ne,{fallback:Ue,children:t.jsx(v.Suspense,{fallback:i,children:t.jsx(Me,{onTaskSelect:m})})}),e[3]=m,e[4]=a):a=e[4];let n;return e[5]!==o||e[6]!==a?(n=t.jsx("div",{className:o,children:a}),e[5]=o,e[6]=a,e[7]=n):n=e[7],n}function Ue(){return t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[t.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),t.jsx("div",{className:"flex-1 flex items-center justify-center px-4 text-center",children:t.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})]})}export{Ee as T,Ve as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,D as n,j as l}from"./index-
|
|
1
|
+
import{c as o,D as n,j as l}from"./index-Di6oLb1g.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=n("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=l.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as At,r as N,e as pn,u as gn,j as s,B as I,O as Dt,v as ne,D as U,bg as kt}from"./index-
|
|
1
|
+
import{c as At,r as N,e as pn,u as gn,j as s,B as I,O as Dt,v as ne,D as U,bg as kt}from"./index-Di6oLb1g.js";import{B as yn}from"./badge-a1yIqkX1.js";import{P as lt,a as ct,b as ut}from"./popover-DnP50c_4.js";import{T as Ge,a as Qe,b as Xe}from"./tooltip-Bt2vWRpT.js";import{i as Je}from"./Check-CecxQkQE.js";import{a as bn,c as $e,b as xn,i as wn}from"./Play-CCpyKlpN.js";import{n as Mt}from"./Download01-DGSbxmSo.js";import{c as Nn,n as Dn,b as kn,s as Mn}from"./Type01-BRLQyycA.js";import{M as _t}from"./monaco-editor-DnqhgBvh.js";import{S as _n}from"./scroll-area-BDvsWD3_.js";import{t as jn}from"./ChevronDown-Cm9SuGtV.js";import{i as Cn}from"./ChevronRight-2xVQHhsF.js";import{I as jt}from"./input-DQ4QcwHR.js";const Ct={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Sn(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),r=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${r}`}).join(",")}function Yo(t){return t?t.split(",").map(e=>{const[n,r,...a]=e.split(":");return{key:decodeURIComponent(n||""),operator:r||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function Ro(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function Bo(t){return t.trim()?t.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[n,...r]=e.split("=");return{key:n||"",operator:"eq",value:r.join("=")}}if(e.includes("~")){const[n,...r]=e.split("~");return{key:n||"",operator:"contains",value:r.join("~")}}if(e.includes("@")){const[n,...r]=e.split("@");return{key:n||"",operator:"in",value:r.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function $o(t){const e={},n={},r=[],a={};for(const o of t)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(n[o.key]=`%${o.value}%`);break;case"exists":r.push(o.key);break;case"in":o.value&&(a[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(n).length>0?n:void 0,propertyKeys:r.length>0?r:void 0,propertyInValues:Object.keys(a).length>0?a:void 0}}function St(t){if(!t)return{content:"null",isTruncated:!1,originalSize:4};const e=JSON.stringify(t,null,2),n=e.length;return n<=Ct.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:n}:{content:e.slice(0,Ct.maxJsonRenderSize)+`
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,Y as h,j as c,_ as m,a1 as k,bP as p,a0 as M,a2 as T,X as S,Z as A,a4 as D,W as F,c as P,D as C}from"./index-
|
|
1
|
+
import{r as x,Y as h,j as c,_ as m,a1 as k,bP as p,a0 as M,a2 as T,X as S,Z as A,a4 as D,W as F,c as P,D as C}from"./index-Di6oLb1g.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=h({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=D(v,[T]),I=T(),b=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx($,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});b.displayName=v;var[z,y]=w(v),$=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...r,ref:e})})});b.displayName=v;var[O,H]=w(v),R=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=I(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=y(f,a.__scopeToggleGroup),s=H(f,a.__scopeToggleGroup),n=I(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=y(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),L=b,U=N;const W=F("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function Y(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(L,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Z(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(W({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(U,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{Y as T,Z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as K,e as Q,r as E,j as t,O as X,a7 as Y,F as Z}from"./index-
|
|
1
|
+
import{c as K,e as Q,r as E,j as t,O as X,a7 as Y,F as Z}from"./index-Di6oLb1g.js";import{C as ee}from"./collection-display-button-BTy8OMGo.js";import{C as te}from"./collection-search-BaA_5hnO.js";import{C as se}from"./collection-table-wrapper-CeDvXZ6e.js";import{E as z}from"./empty-state-UToLDOJO.js";import{I as oe,s as ne,f as ae}from"./integration-icon-DlCg0T4C.js";import{B as V}from"./badge-a1yIqkX1.js";import{C as re}from"./card-BkMKAjKJ.js";import{T as F,a as G,b as P,c as ie}from"./tooltip-Bt2vWRpT.js";import{g as le}from"./types-C4sVrknd.js";import{s as ce}from"./RefreshCcw01-Cu6svfY5.js";import{a as me}from"./layout-DtwUtGx0.js";const de=[{key:"readOnlyHint",label:"Read-only",Icon:ce,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:Y,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:Z,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:ne,variant:"outline"}];function fe(s){const e=K.c(18),{annotations:r,_meta:d}=s;let u;e[0]!==d?(u=le(d),e[0]=d,e[1]=u):u=e[1];const l=!!u;let h,x,c,f,m;if(e[2]!==r||e[3]!==l){m=Symbol.for("react.early_return_sentinel");e:{const n=r?de.filter(S=>r[S.key]===!0):[];if(n.length===0&&!l){m=null;break e}h=ie,x="flex gap-1 flex-nowrap",e[9]!==l?(c=l&&t.jsxs(F,{children:[t.jsx(G,{asChild:!0,children:t.jsx(V,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:t.jsx(ae,{})})}),t.jsx(P,{children:"Interactive"})]}),e[9]=l,e[10]=c):c=e[10],f=n.map(pe)}e[2]=r,e[3]=l,e[4]=h,e[5]=x,e[6]=c,e[7]=f,e[8]=m}else h=e[4],x=e[5],c=e[6],f=e[7],m=e[8];if(m!==Symbol.for("react.early_return_sentinel"))return m;let p;e[11]!==x||e[12]!==c||e[13]!==f?(p=t.jsxs("div",{className:x,children:[c,f]}),e[11]=x,e[12]=c,e[13]=f,e[14]=p):p=e[14];let g;return e[15]!==h||e[16]!==p?(g=t.jsx(h,{children:p}),e[15]=h,e[16]=p,e[17]=g):g=e[17],g}function pe(s){const{label:e,Icon:r,variant:d}=s;return t.jsxs(F,{children:[t.jsx(G,{asChild:!0,children:t.jsx(V,{asChild:!0,variant:d,className:"size-6 p-1",children:t.jsx(r,{})})}),t.jsx(P,{children:e})]},e)}function Oe(s){const e=K.c(39),{tools:r,connectionId:d,org:u,onToolClick:l,showToolbar:h,emptyMessage:x,isLoading:c}=s,f=h===void 0?!0:h,m=x===void 0?"This connection doesn't have any tools yet.":x,p=c===void 0?!1:c,g=Q(),[n,S]=E.useState(""),[H]=E.useState("table"),[a,A]=E.useState("name"),[i,U]=E.useState("asc");let I;e[0]!==i||e[1]!==a?(I=o=>{a===o?(U(ye),i==="desc"&&A(void 0)):(A(o),U("asc"))},e[0]=i,e[1]=a,e[2]=I):I=e[2];const j=I;let w;e[3]!==d||e[4]!==g||e[5]!==l||e[6]!==u?(w=o=>{l?l(o):d&&u&&g({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:u,project:X,connectionId:d,collectionName:"tools",itemId:encodeURIComponent(o.name)}})},e[3]=d,e[4]=g,e[5]=l,e[6]=u,e[7]=w):w=e[7];const _=w;let k;if(e[8]!==n||e[9]!==i||e[10]!==a||e[11]!==r){const o=!r||r.length===0?[]:n.trim()?(()=>{const D=n.toLowerCase();return r.filter(T=>T.name.toLowerCase().includes(D)||T.description&&T.description.toLowerCase().includes(D))})():r;k=!a||!i?o:[...o].sort((D,T)=>{const J=D[a]||"",q=T[a]||"",M=String(J).localeCompare(String(q));return i==="asc"?M:-M}),e[8]=n,e[9]=i,e[10]=a,e[11]=r,e[12]=k}else k=e[12];const C=k;let $;e[13]===Symbol.for("react.memo_cache_sentinel")?($=[{id:"name",header:"Name",render:je,sortable:!0},{id:"annotations",header:"Hints",render:ge,cellClassName:"w-32 shrink-0"},{id:"description",header:"Description",render:xe,cellClassName:"flex-1",sortable:!0}],e[13]=$):$=e[13];const B=$;let L;e[14]===Symbol.for("react.memo_cache_sentinel")?(L=B.filter(he).map(ue),e[14]=L):L=e[14];const W=L;let y;e[15]!==j||e[16]!==f||e[17]!==i||e[18]!==a?(y=f&&t.jsx(me,{children:t.jsx(ee,{sortKey:a,sortDirection:i,onSort:j,sortOptions:W})}),e[15]=j,e[16]=f,e[17]=i,e[18]=a,e[19]=y):y=e[19];let O;e[20]===Symbol.for("react.memo_cache_sentinel")?(O=o=>{o.key==="Escape"&&(S(""),o.target.blur())},e[20]=O):O=e[20];let N;e[21]!==n?(N=t.jsx(te,{value:n,onChange:S,placeholder:"Search tools...",onKeyDown:O}),e[21]=n,e[22]=N):N=e[22];let v;e[23]!==m||e[24]!==j||e[25]!==_||e[26]!==p||e[27]!==n||e[28]!==i||e[29]!==a||e[30]!==C||e[31]!==H?(v=H==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:C.length===0?t.jsx(z,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":m}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:C.map(o=>t.jsx(re,{className:"cursor-pointer transition-colors",onClick:()=>_(o),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(oe,{icon:null,name:o.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:o.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:o.description||"No description"})]})]})},o.name))})}):t.jsx(se,{columns:B,data:C,isLoading:p,sortKey:a,sortDirection:i,onSort:j,onRowClick:o=>_(o),emptyState:t.jsx(z,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":m})}),e[23]=m,e[24]=j,e[25]=_,e[26]=p,e[27]=n,e[28]=i,e[29]=a,e[30]=C,e[31]=H,e[32]=v):v=e[32];let b;e[33]!==N||e[34]!==v?(b=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[N,v]}),e[33]=N,e[34]=v,e[35]=b):b=e[35];let R;return e[36]!==b||e[37]!==y?(R=t.jsxs(t.Fragment,{children:[y,b]}),e[36]=b,e[37]=y,e[38]=R):R=e[38],R}function ue(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function he(s){return s.sortable}function xe(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function ge(s){return t.jsx(fe,{annotations:s.annotations,_meta:s._meta})}function je(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function ye(s){return s==="asc"?"desc":s==="desc"?null:"asc"}export{fe as T,Oe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,$ as H,j as c,b1 as J,_ as Q,a1 as y,a3 as $,b2 as Z,a9 as ee,Y as te,b0 as oe,b3 as G,b9 as re,ba as ne,a4 as se,bf as ae,bb as ie,c as _,D as le}from"./index-
|
|
1
|
+
import{r as a,$ as H,j as c,b1 as J,_ as Q,a1 as y,a3 as $,b2 as Z,a9 as ee,Y as te,b0 as oe,b3 as G,b9 as re,ba as ne,a4 as se,bf as ae,bb as ie,c as _,D as le}from"./index-Di6oLb1g.js";import{R as ce}from"./index-C45O1mgu.js";var[O]=se("Tooltip",[G]),D=G(),B="TooltipProvider",ue=700,A="tooltip.open",[de,k]=O(B),F=o=>{const{__scopeTooltip:e,delayDuration:t=ue,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,i=a.useRef(!0),d=a.useRef(!1),l=a.useRef(0);return a.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),c.jsx(de,{scope:e,isOpenDelayedRef:i,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=B;var R="Tooltip",[pe,j]=O(R),z=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:i,delayDuration:d}=o,l=k(R,o.__scopeTooltip),p=D(e),[u,v]=a.useState(null),x=ee(),f=a.useRef(0),h=i??l.disableHoverableContent,m=d??l.delayDuration,g=a.useRef(!1),[b,T]=te({prop:r,defaultProp:n??!1,onChange:S=>{S?(l.onOpen(),document.dispatchEvent(new CustomEvent(A))):l.onClose(),s?.(S)},caller:R}),w=a.useMemo(()=>b?g.current?"delayed-open":"instant-open":"closed",[b]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,T(!0)},[T]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,T(!1)},[T]),N=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,T(!0),f.current=0},m)},[m,T]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(oe,{...p,children:c.jsx(pe,{scope:e,contentId:x,open:b,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{l.isOpenDelayedRef.current?N():E()},[l.isOpenDelayedRef,N,E]),onTriggerLeave:a.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};z.displayName=R;var M="TooltipTrigger",Y=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=j(M,t),s=k(M,t),i=D(t),d=a.useRef(null),l=H(e,d,n.onTriggerChange),p=a.useRef(!1),u=a.useRef(!1),v=a.useCallback(()=>p.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(J,{asChild:!0,...i,children:c.jsx(Q.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:l,onPointerMove:y(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:y(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:y(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:y(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:y(o.onBlur,n.onClose),onClick:y(o.onClick,n.onClose)})})});Y.displayName=M;var I="TooltipPortal",[fe,ve]=O(I,{forceMount:void 0}),q=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=j(I,e);return c.jsx(fe,{scope:e,forceMount:t,children:c.jsx($,{present:t||s.open,children:c.jsx(Z,{asChild:!0,container:n,children:r})})})};q.displayName=I;var C="TooltipContent",U=a.forwardRef((o,e)=>{const t=ve(C,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,i=j(C,o.__scopeTooltip);return c.jsx($,{present:r||i.open,children:i.disableHoverableContent?c.jsx(V,{side:n,...s,ref:e}):c.jsx(xe,{side:n,...s,ref:e})})}),xe=a.forwardRef((o,e)=>{const t=j(C,o.__scopeTooltip),r=k(C,o.__scopeTooltip),n=a.useRef(null),s=H(e,n),[i,d]=a.useState(null),{trigger:l,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=a.useCallback(()=>{d(null),v(!1)},[v]),f=a.useCallback((h,m)=>{const g=h.currentTarget,b={x:h.clientX,y:h.clientY},T=Te(b,g.getBoundingClientRect()),w=be(b,T),E=ye(m.getBoundingClientRect()),P=we([...w,...E]);d(P),v(!0)},[v]);return a.useEffect(()=>()=>x(),[x]),a.useEffect(()=>{if(l&&u){const h=g=>f(g,u),m=g=>f(g,l);return l.addEventListener("pointerleave",h),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",m)}}},[l,u,f,x]),a.useEffect(()=>{if(i){const h=m=>{const g=m.target,b={x:m.clientX,y:m.clientY},T=l?.contains(g)||u?.contains(g),w=!Ce(b,i);T?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[l,u,i,p,x]),c.jsx(V,{...o,ref:s})}),[he,ge]=O(R,{isInside:!1}),me=ae("TooltipContent"),V=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:i,...d}=o,l=j(C,t),p=D(t),{onClose:u}=l;return a.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),a.useEffect(()=>{if(l.trigger){const v=x=>{x.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[l.trigger,u]),c.jsx(re,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(ne,{"data-state":l.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(me,{children:r}),c.jsx(he,{scope:t,isInside:!0,children:c.jsx(ce,{id:l.contentId,role:"tooltip",children:n||r})})]})})});U.displayName=C;var K="TooltipArrow",W=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return ge(K,t).isInside?null:c.jsx(ie,{...n,...r,ref:e})});W.displayName=K;function Te(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function be(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function ye(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function Ce(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const d=e[s],l=e[i],p=d.x,u=d.y,v=l.x,x=l.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function we(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Ee(e)}function Ee(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],i=e[e.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var Pe=F,Re=z,_e=Y,je=q,Oe=U,De=W;const X=768,L=()=>globalThis.innerWidth<X;function ke(){const o=_.c(2),[e,t]=a.useState(L);let r,n;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{const s=()=>t(L),i=globalThis.matchMedia(`(max-width: ${X-1}px)`);return i.addEventListener("change",s),t(L),()=>i.removeEventListener("change",s)},n=[],o[0]=r,o[1]=n):(r=o[0],n=o[1]),a.useEffect(r,n),e}function Le(o){const e=_.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(Pe,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Ie(o){const e=_.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Le,{children:c.jsx(Re,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function Ne(o){const e=_.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(_e,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Se(o){const e=_.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const i=s===void 0?0:s;let d;e[5]!==r?(d=le("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=c.jsx(De,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=l):l=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==i||e[11]!==d?(p=c.jsx(je,{children:c.jsxs(Oe,{"data-slot":"tooltip-content",sideOffset:i,className:d,...n,children:[t,l]})}),e[8]=t,e[9]=n,e[10]=i,e[11]=d,e[12]=p):p=e[12],p}export{Ie as T,Ne as a,Se as b,Le as c,ke as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c,j as l}from"./index-
|
|
1
|
+
import{r,c,j as l}from"./index-Di6oLb1g.js";const s=r.createContext(null);function x(i){const t=c.c(3),{value:u,children:n}=i,o=u;let e;return t[0]!==n||t[1]!==o?(e=l.jsx(s.Provider,{value:o,children:n}),t[0]=n,t[1]=o,t[2]=e):e=t[2],e}function p(i){const t=r.useContext(s);if(!t)throw new Error("usePluginContext must be used within a PluginContextProvider");if(!t.connectionId||!t.connection||!t.toolCaller)throw new Error("usePluginContext requires a valid connection. Use { partial: true } in empty state components.");return t}r.createContext(null);export{x as P,p as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bk as n,bl as e,aN as h,n as r,bm as b,o,bn as d,aP as c,bo as l,aO as u,bp as q,bq as T,br as x,bs as C,bt as I,bu as _,bv as v,bw as A,bx as N,by as D,bz as E,bA as O,bB as B,bC as V,bD as W,bE as K,bF as F,bG as J,bH as j,bI as Q,bJ as $,bK as Y,bL as Z}from"./index-
|
|
1
|
+
import{bk as n,bl as e,aN as h,n as r,bm as b,o,bn as d,aP as c,bo as l,aO as u,bp as q,bq as T,br as x,bs as C,bt as I,bu as _,bv as v,bw as A,bx as N,by as D,bz as E,bA as O,bB as B,bC as V,bD as W,bE as K,bF as F,bG as J,bH as j,bI as Q,bJ as $,bK as Y,bL as Z}from"./index-Di6oLb1g.js";var z="2026-01-26",G="ui/notifications/tool-input-partial",X=n([e("light"),e("dark")]).describe("Color theme preference for the host environment."),g=n([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ee=n([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),oe=h(ee.describe(`Style variables for theming MCP apps.
|
|
2
2
|
|
|
3
3
|
Individual style keys are optional - hosts may provide any subset of these values.
|
|
4
4
|
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,u as m,K as c,w as T}from"./index-
|
|
1
|
+
import{c as d,u as m,K as c,w as T}from"./index-Di6oLb1g.js";import{u as A}from"./useQuery-BrfnS-T_.js";import{u as g}from"./useMutation-BOcaN318.js";import{a as f,u as y}from"./constants-kAo23sAc.js";function p(){const t=d.c(9),{org:e}=m();let o;t[0]!==e.id?(o={connectionId:f,orgId:e.id},t[0]=e.id,t[1]=o):o=t[1];const u=y(o);let s;t[2]!==e.id?(s=c.automations(e.id),t[2]=e.id,t[3]=s):s=t[3];let n;t[4]!==u?(n=async()=>{const a=await u.callTool({name:"AUTOMATION_LIST",arguments:{}});return(a.structuredContent??a).automations},t[4]=u,t[5]=n):n=t[5];let i;return t[6]!==s||t[7]!==n?(i={queryKey:s,queryFn:n,staleTime:1e4},t[6]=s,t[7]=n,t[8]=i):i=t[8],A(i)}function E(t){const e=d.c(12),{org:o}=m();let u;e[0]!==o.id?(u={connectionId:f,orgId:o.id},e[0]=o.id,e[1]=u):u=e[1];const s=y(u);let n;e[2]!==t||e[3]!==o.id?(n=c.automation(o.id,t),e[2]=t,e[3]=o.id,e[4]=n):n=e[4];let i;e[5]!==s||e[6]!==t?(i=async()=>{const r=await s.callTool({name:"AUTOMATION_GET",arguments:{id:t}});return(r.structuredContent??r).automation},e[5]=s,e[6]=t,e[7]=i):i=e[7];const a=!!t;let l;return e[8]!==n||e[9]!==i||e[10]!==a?(l={queryKey:n,queryFn:i,enabled:a,staleTime:1e4},e[8]=n,e[9]=i,e[10]=a,e[11]=l):l=e[11],A(l)}function K(){const t=d.c(10),{org:e}=m();let o;t[0]!==e.id?(o={connectionId:f,orgId:e.id},t[0]=e.id,t[1]=o):o=t[1];const u=y(o),s=T();let n;t[2]!==u?(n=async l=>{const r=await u.callTool({name:"AUTOMATION_CREATE",arguments:l});return r.structuredContent??r},t[2]=u,t[3]=n):n=t[3];let i;t[4]!==e.id||t[5]!==s?(i=()=>{s.invalidateQueries({queryKey:c.automations(e.id)})},t[4]=e.id,t[5]=s,t[6]=i):i=t[6];let a;return t[7]!==n||t[8]!==i?(a={mutationFn:n,onSuccess:i},t[7]=n,t[8]=i,t[9]=a):a=t[9],g(a)}function M(){const t=d.c(10),{org:e}=m();let o;t[0]!==e.id?(o={connectionId:f,orgId:e.id},t[0]=e.id,t[1]=o):o=t[1];const u=y(o),s=T();let n;t[2]!==u?(n=async l=>{const r=await u.callTool({name:"AUTOMATION_UPDATE",arguments:l});return r.structuredContent??r},t[2]=u,t[3]=n):n=t[3];let i;t[4]!==e.id||t[5]!==s?(i=(l,r)=>{s.invalidateQueries({queryKey:c.automations(e.id)}),typeof r.id=="string"&&s.invalidateQueries({queryKey:c.automation(e.id,r.id)})},t[4]=e.id,t[5]=s,t[6]=i):i=t[6];let a;return t[7]!==n||t[8]!==i?(a={mutationFn:n,onSuccess:i},t[7]=n,t[8]=i,t[9]=a):a=t[9],g(a)}function Q(){const t=d.c(10),{org:e}=m();let o;t[0]!==e.id?(o={connectionId:f,orgId:e.id},t[0]=e.id,t[1]=o):o=t[1];const u=y(o),s=T();let n;t[2]!==u?(n=async l=>{const r=await u.callTool({name:"AUTOMATION_DELETE",arguments:{id:l}});return r.structuredContent??r},t[2]=u,t[3]=n):n=t[3];let i;t[4]!==e.id||t[5]!==s?(i=()=>{s.invalidateQueries({queryKey:c.automations(e.id)})},t[4]=e.id,t[5]=s,t[6]=i):i=t[6];let a;return t[7]!==n||t[8]!==i?(a={mutationFn:n,onSuccess:i},t[7]=n,t[8]=i,t[9]=a):a=t[9],g(a)}function S(){const t=d.c(10),{org:e}=m();let o;t[0]!==e.id?(o={connectionId:f,orgId:e.id},t[0]=e.id,t[1]=o):o=t[1];const u=y(o),s=T();let n;t[2]!==u?(n=async l=>{const r=await u.callTool({name:"AUTOMATION_TRIGGER_ADD",arguments:l});return r.structuredContent??r},t[2]=u,t[3]=n):n=t[3];let i;t[4]!==e.id||t[5]!==s?(i=(l,r)=>{s.invalidateQueries({queryKey:c.automations(e.id)}),typeof r.automation_id=="string"&&s.invalidateQueries({queryKey:c.automation(e.id,r.automation_id)})},t[4]=e.id,t[5]=s,t[6]=i):i=t[6];let a;return t[7]!==n||t[8]!==i?(a={mutationFn:n,onSuccess:i},t[7]=n,t[8]=i,t[9]=a):a=t[9],g(a)}function U(){const t=d.c(10),{org:e}=m();let o;t[0]!==e.id?(o={connectionId:f,orgId:e.id},t[0]=e.id,t[1]=o):o=t[1];const u=y(o),s=T();let n;t[2]!==u?(n=async l=>{const r=await u.callTool({name:"AUTOMATION_TRIGGER_REMOVE",arguments:{trigger_id:l.trigger_id}});return r.structuredContent??r},t[2]=u,t[3]=n):n=t[3];let i;t[4]!==e.id||t[5]!==s?(i=(l,r)=>{s.invalidateQueries({queryKey:c.automations(e.id)}),s.invalidateQueries({queryKey:c.automation(e.id,r.automation_id)})},t[4]=e.id,t[5]=s,t[6]=i):i=t[6];let a;return t[7]!==n||t[8]!==i?(a={mutationFn:n,onSuccess:i},t[7]=n,t[8]=i,t[9]=a):a=t[9],g(a)}export{K as a,Q as b,E as c,M as d,S as e,U as f,p as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as I,c as K,w as D,v as w}from"./index-
|
|
1
|
+
import{x as I,c as K,w as D,v as w}from"./index-Di6oLb1g.js";import{u as x}from"./useMutation-BOcaN318.js";import{K as A}from"./constants-kAo23sAc.js";function q(o,n,s){const t=[];if(o?.trim()){const e=o.trim(),r=s.map(a=>({field:[String(a)],operator:"contains",value:e}));r.length===1&&r[0]?t.push(r[0]):r.length>1&&t.push({operator:"or",conditions:r})}if(n&&n.length>0)for(const e of n)t.push({field:[e.column],operator:"eq",value:e.value});if(t.length!==0)return t.length===1?t[0]:{operator:"and",conditions:t}}function U(o,n,s){const t=o??s,e=n??"asc";return[{field:[String(t)],direction:e}]}function O(o){if(!o||typeof o!="object")throw new Error("Invalid result");if("isError"in o&&o.isError)throw new Error("content"in o&&Array.isArray(o.content)&&o.content[0]?.type==="text"?o.content[0].text:"Unknown error");if("structuredContent"in o)return o.structuredContent;throw new Error("No structured content found")}function Y(o,n,s,t){const e=K.c(14);let r,a,u;if(e[0]!==t||e[1]!==n||e[2]!==s||e[3]!==o){const i=n.toUpperCase();r=`COLLECTION_${i}_GET`,u=I,a=A.collectionItem(t,o,"",i,s??""),e[0]=t,e[1]=n,e[2]=s,e[3]=o,e[4]=r,e[5]=a,e[6]=u}else r=e[4],a=e[5],u=e[6];let c;e[7]!==t||e[8]!==r||e[9]!==s?(c=async()=>{if(!s)return{item:null};const i=await t.callTool({name:r,arguments:{id:s}});return O(i)},e[7]=t,e[8]=r,e[9]=s,e[10]=c):c=e[10];let f;e[11]!==a||e[12]!==c?(f={queryKey:a,queryFn:c,staleTime:6e4},e[11]=a,e[12]=c,e[13]=f):f=e[13];const{data:p}=u(f);return p?.item??null}const Q={structuredContent:{items:[]},isError:!1};function j(o,n,s,t={}){const{searchTerm:e,filters:r,sortKey:a,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:f="updated_at",pageSize:p=100}=t,i=n.toUpperCase(),m=`COLLECTION_${i}_LIST`,d=q(e,r,c),y=U(a,u,f),E={...d&&{where:d},...y&&{orderBy:y},limit:p,offset:0},g=JSON.stringify(E),C=A.collectionList(s,o,"",i,g),{data:S}=I({queryKey:C,queryFn:async()=>s?await s.callTool({name:m,arguments:E}):Q,staleTime:3e4,retry:!1,select:h=>O(h??{})?.items??[]});return S}function G(o,n,s,t={}){const{searchTerm:e,filters:r,sortKey:a,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:f="updated_at",pageSize:p=100}=t,i=n.toUpperCase(),m=q(e,r,c),d=U(a,u,f),y={...m&&{where:m},...d&&{orderBy:d},limit:p,offset:0},E=JSON.stringify(y);return A.collectionList(o,s,"",i,E)}function W(o,n,s){const t=K.c(34),e=D();let r;t[0]!==n?(r=n.toUpperCase(),t[0]=n,t[1]=r):r=t[1];const a=r,u=`COLLECTION_${a}_CREATE`,c=`COLLECTION_${a}_UPDATE`,f=`COLLECTION_${a}_DELETE`;let p;t[2]!==e||t[3]!==o||t[4]!==a?(p=()=>{e.invalidateQueries({predicate:_=>{const l=_.queryKey;return l[1]===o&&l[3]==="collection"&&l[4]===a}})},t[2]=e,t[3]=o,t[4]=a,t[5]=p):p=t[5];const i=p;let m;t[6]!==s||t[7]!==u?(m=async _=>{const l=await s.callTool({name:u,arguments:{data:_}});if(l.isError)throw new Error(Array.isArray(l.content)?l.content[0]?.text:String(l.content));return O(l).item},t[6]=s,t[7]=u,t[8]=m):m=t[8];let d;t[9]!==i?(d=()=>{i(),w.success("Item created successfully")},t[9]=i,t[10]=d):d=t[10];let y;t[11]!==m||t[12]!==d?(y={mutationFn:m,onSuccess:d,onError:P},t[11]=m,t[12]=d,t[13]=y):y=t[13];const E=x(y);let g;t[14]!==s||t[15]!==c?(g=async _=>{const{id:l,data:v}=_,b=await s.callTool({name:c,arguments:{id:l,data:v}});return O(b).item},t[14]=s,t[15]=c,t[16]=g):g=t[16];let C;t[17]!==i?(C=()=>{i(),w.success("Item updated successfully")},t[17]=i,t[18]=C):C=t[18];let S;t[19]!==g||t[20]!==C?(S={mutationFn:g,onSuccess:C,onError:B},t[19]=g,t[20]=C,t[21]=S):S=t[21];const h=x(S);let T;t[22]!==s||t[23]!==f?(T=async _=>{const l=await s.callTool({name:f,arguments:{id:_}});return O(l).item.id},t[22]=s,t[23]=f,t[24]=T):T=t[24];let L;t[25]!==i?(L=()=>{i(),w.success("Item deleted successfully")},t[25]=i,t[26]=L):L=t[26];let N;t[27]!==T||t[28]!==L?(N={mutationFn:T,onSuccess:L,onError:k},t[27]=T,t[28]=L,t[29]=N):N=t[29];const $=x(N);let F;return t[30]!==E||t[31]!==$||t[32]!==h?(F={create:E,update:h,delete:$},t[30]=E,t[31]=$,t[32]=h,t[33]=F):F=t[33],F}function k(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to delete item: ${n}`)}function B(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to update item: ${n}`)}function P(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to create item: ${n}`)}export{Q as E,U as a,G as b,q as c,Y as d,j as e,W as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,u as r}from"./index-
|
|
1
|
+
import{c,u as r}from"./index-Di6oLb1g.js";import{e as C,u as a,d as I}from"./use-collections-CojcRvND.js";import{a as d,u as l}from"./constants-kAo23sAc.js";function p(t){const o=c.c(4);let n;o[0]!==t?(n=t===void 0?{}:t,o[0]=t,o[1]=n):n=o[1];const e=n,{org:i}=r();let s;o[2]!==i.id?(s={connectionId:d,orgId:i.id},o[2]=i.id,o[3]=s):s=o[3];const u=l(s);return C(i.id,"CONNECTIONS",u,e)}function g(t){const o=c.c(2),{org:n}=r();let e;o[0]!==n.id?(e={connectionId:d,orgId:n.id},o[0]=n.id,o[1]=e):e=o[1];const i=l(e);return I(n.id,"CONNECTIONS",t,i)}function O(){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:d,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=l(n);return a(o.id,"CONNECTIONS",e)}export{O as a,p as b,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as i,r as n}from"./index-
|
|
1
|
+
import{c as i,r as n}from"./index-Di6oLb1g.js";function p(){const e=i.c(3),[s,a]=n.useState(!1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=async c=>{await navigator.clipboard.writeText(c),a(!0),setTimeout(()=>a(!1),2e3)},e[0]=t):t=e[0];const r=t;let o;return e[1]!==s?(o={handleCopy:r,copied:s},e[1]=s,e[2]=o):o=e[2],o}export{p as u};
|