decocms 4.573.0 → 4.574.1
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-Cn7aLqGD.js → AlertCircle-JDirc_BX.js} +1 -1
- package/dist/client/assets/{AreaChart-CMeTgrZu.js → AreaChart-DpzgqwWZ.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Clex4DU3.js → ArrowLeft-BENlvNHb.js} +1 -1
- package/dist/client/assets/{ArrowUp-DPT2wlR7.js → ArrowUp-hVHjHInb.js} +1 -1
- package/dist/client/assets/{CartesianChart-B2gOTKNo.js → CartesianChart-ClHLbDW5.js} +1 -1
- package/dist/client/assets/{CategoricalChart-Djc5Q1Zp.js → CategoricalChart-oDBSn1QJ.js} +1 -1
- package/dist/client/assets/{CheckCircle-l0BgBdex.js → CheckCircle-BMxSQJ5-.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BbXlLdNT.js → ChevronSelectorVertical-DDGUPocS.js} +1 -1
- package/dist/client/assets/{ChevronUp-D0xD4CWi.js → ChevronUp-DYc8wyky.js} +1 -1
- package/dist/client/assets/{CreditCard01-CAgfpVLC.js → CreditCard01-EEU_sSyq.js} +1 -1
- package/dist/client/assets/{Globe04-DFwi3CoQ.js → Globe04-CdHKMOso.js} +1 -1
- package/dist/client/assets/{Key01-q3498IuC.js → Key01-EDnnJ_Gd.js} +1 -1
- package/dist/client/assets/{LinkBroken01-BkclpWPr.js → LinkBroken01-DhH3TW3t.js} +1 -1
- package/dist/client/assets/{Minus-D2H1757g.js → Minus-XOOEmvqX.js} +1 -1
- package/dist/client/assets/{Monitor01-pdAw5Hpb.js → Monitor01-D3lVwo0x.js} +1 -1
- package/dist/client/assets/{Play-mj0Zbxy1.js → Play-DQ3lppN9.js} +1 -1
- package/dist/client/assets/{Plus-DD-WVS1P.js → Plus-BHZhJmPA.js} +1 -1
- package/dist/client/assets/{ReferenceLine-obrmbgU1.js → ReferenceLine-ClCgVjRG.js} +1 -1
- package/dist/client/assets/{SearchMd-D2GFNI7a.js → SearchMd-MlMwcObI.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BQMf6OTu.js → ShoppingBag01-sa0ohOEa.js} +1 -1
- package/dist/client/assets/{Sun-BWeGTNdA.js → Sun-pw3SuSDm.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-amrllZXH.js → SwitchHorizontal01-DovJE4RJ.js} +1 -1
- package/dist/client/assets/{Tool01-CMaWHp8E.js → Tool01-D5n93WAy.js} +1 -1
- package/dist/client/assets/{Tooltip-DFEqzaZu.js → Tooltip-CO7rmQDW.js} +1 -1
- package/dist/client/assets/{Trash01-CrG-kC_D.js → Trash01-C0pW3Nzn.js} +1 -1
- package/dist/client/assets/{Upload01-CyQARd6T.js → Upload01-CEfXDErB.js} +1 -1
- package/dist/client/assets/{UserSquare-CPjVW48L.js → UserSquare-CUiDUhHX.js} +1 -1
- package/dist/client/assets/{Users01-BPY3vewQ.js → Users01-pCKb7aTW.js} +1 -1
- package/dist/client/assets/{XClose-BBI2UlVL.js → XClose-__KXghgf.js} +1 -1
- package/dist/client/assets/{Zap-B1DyovfK.js → Zap-CyJKtBha.js} +1 -1
- package/dist/client/assets/{access-gate-ZWgi9qYj.js → access-gate-5u0FcWOM.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BQNXbA5n.js → add-connection-dialog-10mnkwZu.js} +1 -1
- package/dist/client/assets/agent-app-DdBuGJK2.js +1 -0
- package/dist/client/assets/agent-assets-C3IeAW1B.js +1 -0
- package/dist/client/assets/{agent-automation-CU9zTpQA.js → agent-automation-acvouPfy.js} +2 -2
- package/dist/client/assets/agent-automations-D0NXC_6r.js +1 -0
- package/dist/client/assets/agent-calendar-BOtDL5wE.js +1 -0
- package/dist/client/assets/{agent-capabilities-C8QrjnQn.js → agent-capabilities-DuBCD3m1.js} +1 -1
- package/dist/client/assets/agent-connect-sources-a50GCyKV.js +1 -0
- package/dist/client/assets/agent-deck-OGgkBkIO.js +1 -0
- package/dist/client/assets/agent-e2e-BIYV3C1W.js +1 -0
- package/dist/client/assets/agent-experiments-DcDMdMaW.js +1 -0
- package/dist/client/assets/agent-file-BkEsRI8m.js +1 -0
- package/dist/client/assets/agent-hosting-CaYpr3GJ.js +1 -0
- package/dist/client/assets/{agent-icon-2MzErGc_.js → agent-icon-Y_Y2D-pt.js} +1 -1
- package/dist/client/assets/agent-library--BMPxGd9.js +1 -0
- package/dist/client/assets/agent-library-file-_vX06T41.js +1 -0
- package/dist/client/assets/agent-overview-D74SB75d.js +1 -0
- package/dist/client/assets/agent-releases-B3ihZIQn.js +2 -0
- package/dist/client/assets/agent-settings-nSX8psll.js +1 -0
- package/dist/client/assets/{agent-site-editor-BpKx1qkb.js → agent-site-editor-CJvHfyNv.js} +2 -2
- package/dist/client/assets/agent-site-editor-code-hU9FQE4u.js +2 -0
- package/dist/client/assets/agent-site-editor-content-DTRDfZ6d.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-zxTAZW7-.js +1 -0
- package/dist/client/assets/agent-view-BHr6uCB4.js +1 -0
- package/dist/client/assets/{agent-view-guard-4G3ZLLJ6.js → agent-view-guard-BbWQWaBo.js} +1 -1
- package/dist/client/assets/{ai-providers-uRKTNSKv.js → ai-providers-BWLZYJlr.js} +1 -1
- package/dist/client/assets/{alert-DEZDXwhI.js → alert-DmFTgsze.js} +1 -1
- package/dist/client/assets/{analytics-sections-CyCVHqsU.js → analytics-sections-aDtwBOme.js} +1 -1
- package/dist/client/assets/{api-keys-DpXs9tft.js → api-keys-CVVAX4Yr.js} +1 -1
- package/dist/client/assets/api-keys-DQZBigkX.js +1 -0
- package/dist/client/assets/app-editor-miZ_XprR.js +1 -0
- package/dist/client/assets/{asset-utils-CksrawxC.js → asset-utils-C4NdP_pE.js} +1 -1
- package/dist/client/assets/{auth-Zsy5lyIS.js → auth-Bh4_Y1Kc.js} +1 -1
- package/dist/client/assets/{auth-catchall-BA7Y2mUQ.js → auth-catchall-Be7BZYR0.js} +1 -1
- package/dist/client/assets/{auth-entry-DTgpDRCa.js → auth-entry-BVPXWLe3.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DnneloZ-.js → auth-split-layout-CtNY2lz5.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DNTXHLOn.js → authenticate-and-persist-oauth-DppRl8su.js} +1 -1
- package/dist/client/assets/{automation-list-row-DBYEb7yh.js → automation-list-row-C4OZs3iQ.js} +1 -1
- package/dist/client/assets/{automation-runs-WkjLeJLn.js → automation-runs-CnJ5cVfz.js} +1 -1
- package/dist/client/assets/{automations-DQbfRFSm.js → automations-CTrZyCJH.js} +1 -1
- package/dist/client/assets/{autosend-C5Y0g7p2.js → autosend-Dts_wRXC.js} +1 -1
- package/dist/client/assets/{badge-CR0zmQ24.js → badge-CyMXYtjo.js} +1 -1
- package/dist/client/assets/{block-document-C3eGsk46.js → block-document-CoEX88Lb.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BSZxdExq.js → blocks-preview-workspace-context-DHMHrydZ.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-WlRP2osS.js → blocks-tab-states-Dedoi43j.js} +1 -1
- package/dist/client/assets/{blog-schema-KDZONLbr.js → blog-schema-DL7YysBi.js} +1 -1
- package/dist/client/assets/{buckets-BleX9NUY.js → buckets-8Ipt1QPH.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BoBB4xB3.js → build-improve-prompt-doc-CMFnJqyQ.js} +1 -1
- package/dist/client/assets/{calendar-BK-qPKHr.js → calendar-DJXEBE1i.js} +1 -1
- package/dist/client/assets/{capability-load-error-C9JRNP4k.js → capability-load-error-CiSG_MLz.js} +1 -1
- package/dist/client/assets/category-editor-D2AAL1sO.js +1 -0
- package/dist/client/assets/{chart-C9hiF3-H.js → chart-Bbcth4C6.js} +1 -1
- package/dist/client/assets/{chat-context-DyGpAf46.js → chat-context-DrYmTpG0.js} +6 -6
- package/dist/client/assets/{chat-draft-CD_ST5_c.js → chat-draft-B1q585AK.js} +1 -1
- package/dist/client/assets/{checkbox-HvlgUNAP.js → checkbox-U6ASBfOz.js} +1 -1
- package/dist/client/assets/{choose-editor-CnjAnqj_.js → choose-editor-CStvYPQI.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Bwy0nso2.js → cli-auth-success-CIlf0DYb.js} +1 -1
- package/dist/client/assets/{client-icons-Be9kjZ93.js → client-icons-BlkrzoAd.js} +1 -1
- package/dist/client/assets/cms-settings-editor-CvyPaB8P.js +1 -0
- package/dist/client/assets/{cms-store-drafts-BISchbEr.js → cms-store-drafts-BxSsz4kW.js} +1 -1
- package/dist/client/assets/collapsible-Cm_LlHdT.js +1 -0
- package/dist/client/assets/collection-detail-XmdxNV-2.js +1 -0
- package/dist/client/assets/{collection-display-button-ES-6OdCv.js → collection-display-button-DSXrghYE.js} +1 -1
- package/dist/client/assets/{collection-search-EpeR-DRK.js → collection-search-CrfF1go0.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-KbLz2yHx.js → collection-table-wrapper-BDabkJu0.js} +1 -1
- package/dist/client/assets/{collection-tabs-B_be-L9Y.js → collection-tabs-CXJFRxjE.js} +1 -1
- package/dist/client/assets/{combobox-B18VgXI1.js → combobox-BnA_xOFh.js} +1 -1
- package/dist/client/assets/{command-BNUAVYAm.js → command-COt4WQ5b.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CxXAX0y8.js → companion-mcps-section-BX6NWvx_.js} +1 -1
- package/dist/client/assets/{config-TryZ4RX0.js → config-CZ7Pg3zP.js} +1 -1
- package/dist/client/assets/{connect-CoilE_s4.js → connect-Bubb97Ox.js} +2 -2
- package/dist/client/assets/{connect-layout-BhfEVfq1.js → connect-layout-Co9op_vf.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-DPKdRpQi.js → connect-source-dialog-Cc0Mr5Dc.js} +1 -1
- package/dist/client/assets/{connection-8A6_dw75.js → connection-CwG18GXt.js} +1 -1
- package/dist/client/assets/{connection-card-CNcOtDo-.js → connection-card-71syl7a3.js} +1 -1
- package/dist/client/assets/{connection-detail-DxRuUlKe.js → connection-detail-CDwQfSDO.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-UVT13B_U.js → connection-form-helpers-Ds89P2qw.js} +1 -1
- package/dist/client/assets/{connection-slug-C2s7RBeT.js → connection-slug-rYoZb8Oi.js} +1 -1
- package/dist/client/assets/{connections-tE6aWKQG.js → connections-DRfQlA6E.js} +1 -1
- package/dist/client/assets/{content-tab-qUSnNt0b.js → content-tab-CsKhgP-1.js} +3 -3
- package/dist/client/assets/context-DC5XiDXT.js +1 -0
- package/dist/client/assets/{context-menu-DtOAkxnl.js → context-menu-jXHTZA3P.js} +1 -1
- package/dist/client/assets/{context-shell-ClsbZC3c.js → context-shell-8kNAse1h.js} +3 -3
- package/dist/client/assets/{core.esm-rLLWAwJX.js → core.esm-cCmn5UHs.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BX56eATK.js → create-organization-dialog-Du7hzcY_.js} +1 -1
- package/dist/client/assets/{device-hint-CUm6BAQf.js → device-hint-4OpoSDFU.js} +1 -1
- package/dist/client/assets/discover-C_ji7DIb.js +1 -0
- package/dist/client/assets/{domain-settings-CKu_dJSz.js → domain-settings--b7nhlCg.js} +1 -1
- package/dist/client/assets/{drawer-Cn25WPda.js → drawer-CtPWRLqi.js} +1 -1
- package/dist/client/assets/{editor-D2cdCxzq.js → editor-TKi-Jvto.js} +1 -1
- package/dist/client/assets/{editor-classes-fUC3onT7.js → editor-classes-Bv3PWDJP.js} +1 -1
- package/dist/client/assets/{empty-state-Ced795Fu.js → empty-state-Cgh7_fO1.js} +1 -1
- package/dist/client/assets/{empty-state-BBHWcru0.js → empty-state-DQ9zfSjj.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-BTxa6G1X.js → experiments-tab-choice-DuEE4yY0.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DPARA3fa.js → extract-connection-data-Cx40NvMQ.js} +1 -1
- package/dist/client/assets/{feature-gate-DmEXSzsv.js → feature-gate-C9ZxgBZe.js} +1 -1
- package/dist/client/assets/{feature-paywall-CnmlocfU.js → feature-paywall-DK0yyspA.js} +1 -1
- package/dist/client/assets/file-explorer-DdXpHyf2.js +2 -0
- package/dist/client/assets/{file-preview-DDtKFulA.js → file-preview-DrfMTr-z.js} +1 -1
- package/dist/client/assets/{file-share-button-z-0u2RSG.js → file-share-button-Sja5jda2.js} +1 -1
- package/dist/client/assets/{file-type-icon-DKzfESDS.js → file-type-icon-CuR7GKVO.js} +1 -1
- package/dist/client/assets/{folder-icon-D5X4rDtM.js → folder-icon-clC9OBor.js} +1 -1
- package/dist/client/assets/{form-DlOI0nvB.js → form-DVHd2PmG.js} +1 -1
- package/dist/client/assets/{general-BaTc6G8G.js → general-5mCEumRT.js} +1 -1
- package/dist/client/assets/{github-icon-Fl1CK57w.js → github-icon-Tj2vKr0A.js} +1 -1
- package/dist/client/assets/{home-overview-BFMTQOYy.js → home-overview-3QBovB5F.js} +1 -1
- package/dist/client/assets/home-qRxdFYCq.js +1 -0
- package/dist/client/assets/{hosted-reconcile-DlXpLWPa.js → hosted-reconcile-DVhqOXEf.js} +1 -1
- package/dist/client/assets/{icon-button-igm3gACH.js → icon-button-DVB6vEll.js} +1 -1
- package/dist/client/assets/{index-BqYmVY5c.js → index-BQvrkQ8K.js} +1 -1
- package/dist/client/assets/{index-BjDHxKQ1.js → index-BdxdoIZK.js} +1 -1
- package/dist/client/assets/index-BkJtJQz4.css +1 -0
- package/dist/client/assets/{index-B0M6fld0.js → index-Bm1K3DQC.js} +41 -41
- package/dist/client/assets/{index-bp35vkxQ.js → index-BomXABHH.js} +1 -1
- package/dist/client/assets/{index-woHs2Bei.js → index-BswXowEw.js} +1 -1
- package/dist/client/assets/{index-BiDkG-fY.js → index-C9UzjfpE.js} +1 -1
- package/dist/client/assets/{index-DWwfYL9X.js → index-CK23_6lH.js} +2 -2
- package/dist/client/assets/{index-BvIbbFRO.js → index-CT6x-ixs.js} +1 -1
- package/dist/client/assets/{index-BvVW5l1B.js → index-CWJov9JR.js} +1 -1
- package/dist/client/assets/{index-CZHAvvQX.js → index-CX5-w0f2.js} +1 -1
- package/dist/client/assets/{index-qF2eIicz.js → index-CuXG6U4v.js} +1 -1
- package/dist/client/assets/index-CvZuGBnK.js +1 -0
- package/dist/client/assets/{index-BK7RpYPl.js → index-DU4OpQEQ.js} +1 -1
- package/dist/client/assets/{index-RvC7A_Zr.js → index-DeidDxsb.js} +1 -1
- package/dist/client/assets/{index-B9BVHbVj.js → index-aAdwJpKX.js} +1 -1
- package/dist/client/assets/{index-D13d0Rz8.js → index-mlqqyBRE.js} +1 -1
- package/dist/client/assets/{index-redirect-Y2-2LqtJ.js → index-redirect-BUbGzHU7.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CQdhIsL1.js → infiniteQueryObserver-BNCHN17F.js} +1 -1
- package/dist/client/assets/{infra-billing-D0aBn-2W.js → infra-billing-BfA1aIoB.js} +1 -1
- package/dist/client/assets/{input-WEG44w8N.js → input-CYGCgpQ0.js} +1 -1
- package/dist/client/assets/{input-DPyEB9OP.js → input-FxN5JtJx.js} +4 -4
- package/dist/client/assets/{integration-icon-CbGo7Hoi.js → integration-icon-DTmGScIa.js} +1 -1
- package/dist/client/assets/{jira-icon-C8Fhxneh.js → jira-icon-LR0u-FDE.js} +1 -1
- package/dist/client/assets/{label-C2-_lSSQ.js → label-BQN74rUh.js} +1 -1
- package/dist/client/assets/{layout-B7jJw3TW.js → layout-CCsQB7LG.js} +1 -1
- package/dist/client/assets/legacy-admin-welcome-dialog-DWIUyVc4.js +1 -0
- package/dist/client/assets/{legacy-agents-deep-ZncRE9wV.js → legacy-agents-deep-DD97hkrm.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BU-BNhBf.js → legacy-main-redirect-CxB3kSgS.js} +1 -1
- package/dist/client/assets/library-1cj6yrAd.js +1 -0
- package/dist/client/assets/{library-tab-KFeYjSPq.js → library-tab-D_ZcLCG5.js} +1 -1
- package/dist/client/assets/login-BMHrPCue.js +1 -0
- package/dist/client/assets/{markdown-CBPGMAeL.js → markdown-BiwQrQ3v.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Ct_65kSq.js → mcp-app-renderer-BoUlGL1W.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BzDrrJmr.js → mcp-oauth-969YqM-_.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BRzA5Pv_.js → mcp-oauth-CeW0VHOL.js} +1 -1
- package/dist/client/assets/{members-DmQ1d6J9.js → members-DtkDG4lT.js} +1 -1
- package/dist/client/assets/{memory-veer-4dg.js → memory-WISgV3Bs.js} +2 -2
- package/dist/client/assets/{mock-board-CKa4hpGl.js → mock-board-EGy4fTE1.js} +3 -3
- package/dist/client/assets/{monaco-editor-CpFV1RfN.js → monaco-editor-P5VfXFj7.js} +1 -1
- package/dist/client/assets/{monitoring-CBecEU71.js → monitoring-BX8fYoyN.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-Dn8Q55tj.js → monitoring-stats-row-BKtm_vGS.js} +1 -1
- package/dist/client/assets/{multi-select-CrGD5Ooc.js → multi-select-C-ivHGUC.js} +1 -1
- package/dist/client/assets/{mustache-CfZeeK0-.js → mustache-Dky3CPha.js} +1 -1
- package/dist/client/assets/{named-rule-view-DCoLjOb_.js → named-rule-view-DL0ULoIx.js} +1 -1
- package/dist/client/assets/{new-project-dialog-xaa497EH.js → new-project-dialog-Bqd8DZyr.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-ht2kAjnJ.js → oauth-callback-ai-provider-BSjdlkmN.js} +1 -1
- package/dist/client/assets/{oauth-callback-BZYuOZDS.js → oauth-callback-ldJD55b_.js} +1 -1
- package/dist/client/assets/{oauth-consent-Cycay5jx.js → oauth-consent-DIuym-vW.js} +1 -1
- package/dist/client/assets/{onboarding-CW6ecLdB.js → onboarding-UUqABCLm.js} +1 -1
- package/dist/client/assets/{openai-conversation-BIBsPprq.js → openai-conversation-BqSCxp3u.js} +2 -2
- package/dist/client/assets/{optimistic-project-sidebar-views-ClxmmxQQ.js → optimistic-project-sidebar-views-DuRn9Y08.js} +1 -1
- package/dist/client/assets/{order-monitor-day-ujguBEEi.js → order-monitor-day-CUJyEmQo.js} +1 -1
- package/dist/client/assets/{organization-choice-Dmg8UAst.js → organization-choice-DX6NhuKr.js} +1 -1
- package/dist/client/assets/{orgs-DwXxjD5w.js → orgs-DNB5pAN5.js} +1 -1
- package/dist/client/assets/{own-accounts-section-B1_zf8oO.js → own-accounts-section-DA3rnsqj.js} +1 -1
- package/dist/client/assets/{pair-CYQ33Koe.js → pair-CKUN8Ieo.js} +7 -7
- package/dist/client/assets/{parse-sections-D19DrjFN.js → parse-sections-B7udX6Q3.js} +3 -3
- package/dist/client/assets/plan-D2GzfM6v.js +1 -0
- package/dist/client/assets/{plan-ladder-DMGBEO8S.js → plan-ladder-I5kD48rz.js} +1 -1
- package/dist/client/assets/{plan-usage-card-Dh5aZ9Wu.js → plan-usage-card-C_GukaUZ.js} +2 -2
- package/dist/client/assets/{popover-CQC-Pea_.js → popover-Dh3TtwDo.js} +1 -1
- package/dist/client/assets/post-calendar-Ci2Ls6m8.js +1 -0
- package/dist/client/assets/{post-editor-Bi0Lvuv1.js → post-editor-DmPdxQfI.js} +2 -2
- package/dist/client/assets/{preview-content-DmNC5FDZ.js → preview-content-D5dxxmRk.js} +1 -1
- package/dist/client/assets/{preview-dialog-BXuQsxvP.js → preview-dialog-ChQFEC_i.js} +1 -1
- package/dist/client/assets/{preview-panel-BvPhN_GC.js → preview-panel-6f4Q5Yyo.js} +1 -1
- package/dist/client/assets/{preview-tab-kdq5fsPz.js → preview-tab-DNewpfvP.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-BMl-NFfE.js → product-picker-dialog-Bn32xknc.js} +1 -1
- package/dist/client/assets/{profile-CHLa-N2x.js → profile-DQfBMC1r.js} +1 -1
- package/dist/client/assets/project-app-view-UUbUguKi.js +1 -0
- package/dist/client/assets/{project-apps-DLoX3eK_.js → project-apps-CUvGGhyU.js} +1 -1
- package/dist/client/assets/{project-icon-BFEgPANo.js → project-icon-Cx2a7lKG.js} +1 -1
- package/dist/client/assets/{project-index-Bt04pJyj.js → project-index-FRlpuXZ4.js} +1 -1
- package/dist/client/assets/project-reports-Bx0n9tHU.js +1 -0
- package/dist/client/assets/project-tasks-CMCbN_AC.js +1 -0
- package/dist/client/assets/{projects-DBgcy_ko.js → projects-DAB5tzLY.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DSl1yjrE.js → projects-empty-state-RwaHaNAD.js} +1 -1
- package/dist/client/assets/{prompts-DLHllT_u.js → prompts-0DQ3tgPf.js} +1 -1
- package/dist/client/assets/record-editor-43ke-tWv.js +1 -0
- package/dist/client/assets/redirect-editor-D_h26Q_F.js +1 -0
- package/dist/client/assets/{reports-BLJvZSDk.js → reports-BEOlITGh.js} +1 -1
- package/dist/client/assets/reports-CP9Hb1Gh.js +1 -0
- package/dist/client/assets/{reports-onboarding-B_ps3py4.js → reports-onboarding-DHSkaogY.js} +1 -1
- package/dist/client/assets/reports-tab-CftmyHYx.js +2 -0
- package/dist/client/assets/repositories-BzfxqBWi.js +1 -0
- package/dist/client/assets/{repositories-Bvm6e85d.js → repositories-D7rvENWr.js} +1 -1
- package/dist/client/assets/{repository-binding-D5Bfxppj.js → repository-binding-BUEX4lc5.js} +1 -1
- package/dist/client/assets/{repository-picker-BG4RNPTd.js → repository-picker-mdt05v0y.js} +1 -1
- package/dist/client/assets/{require-capability-DRWZ_9vY.js → require-capability-QLRMJQu8.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BDLyo6_T.js → required-auth-layout-L5uobjCB.js} +1 -1
- package/dist/client/assets/{reset-password-DaveZxAM.js → reset-password-Dkd3Ncw9.js} +1 -1
- package/dist/client/assets/{resizable-ZTEIsDw7.js → resizable-DTll1yV_.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-bd7hcPCn.js → resolve-tab-icon-B2Zyymzr.js} +1 -1
- package/dist/client/assets/review-settings-7WUisQRH.js +1 -0
- package/dist/client/assets/{role-color-BoSKmMc3.js → role-color-B6vHBlZ3.js} +1 -1
- package/dist/client/assets/{roles-ll9CMZdV.js → roles-l4Fwhlxm.js} +1 -1
- package/dist/client/assets/route-CrtRl_aj.js +1 -0
- package/dist/client/assets/route-DStyEO0f.js +1 -0
- package/dist/client/assets/route-ItnObgTw.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context--ksv8XqS.js → sandbox-lifecycle-context-6658FNhj.js} +1 -1
- package/dist/client/assets/{schema-BObR_fJ_.js → schema-BUMYDfBQ.js} +1 -1
- package/dist/client/assets/{schema-DDAhL9Cr.js → schema-CyJEITX6.js} +1 -1
- package/dist/client/assets/{scroll-area-CYr4aRZr.js → scroll-area-CXm8-cku.js} +1 -1
- package/dist/client/assets/search-input-CZ0rurdO.js +1 -0
- package/dist/client/assets/{search-toggle-OJssd2AY.js → search-toggle-BsrckUfs.js} +1 -1
- package/dist/client/assets/{secret-picker-wjLxUG7e.js → secret-picker-Befw6gF8.js} +1 -1
- package/dist/client/assets/{secrets-BYPmdyMN.js → secrets-DZjzVDff.js} +1 -1
- package/dist/client/assets/{section-array-field-DZEuNEZT.js → section-array-field-WCaR_SKZ.js} +1 -1
- package/dist/client/assets/{sections-BDGuApqp.js → sections-CN3XzQEo.js} +1 -1
- package/dist/client/assets/sections-editor-BnPN3p47.js +1 -0
- package/dist/client/assets/{select-taudESnf.js → select-Ce9OTxeg.js} +1 -1
- package/dist/client/assets/{select-model-JxuGnGfN.js → select-model-rpugs4qN.js} +1 -1
- package/dist/client/assets/{seo-editor-D7qUpqtC.js → seo-editor-334ImWU2.js} +1 -1
- package/dist/client/assets/{separator-rYurNu9w.js → separator-25fGJM6A.js} +1 -1
- package/dist/client/assets/settings-tab-DCh5Ul7G.js +1 -0
- package/dist/client/assets/{sheet-C5Vpqn4B.js → sheet-CX7jm_if.js} +1 -1
- package/dist/client/assets/shell-layout-DS0Ie03r.js +1 -0
- package/dist/client/assets/{site-draft-actions-I-a6sWGq.js → site-draft-actions-DZryCQJo.js} +1 -1
- package/dist/client/assets/{site-draft-view-B9eorarP.js → site-draft-view-DQTaKqUY.js} +1 -1
- package/dist/client/assets/site-editor-4zkxaogV.js +1 -0
- package/dist/client/assets/{site-editor-toast-BkfBkyel.js → site-editor-toast-CRsx3bHf.js} +1 -1
- package/dist/client/assets/skills-I-Yj8qR2.js +1 -0
- package/dist/client/assets/{slider-Va2dwWaV.js → slider-DAP3M4g0.js} +1 -1
- package/dist/client/assets/{sortable.esm-BmFrP3rv.js → sortable.esm-BWLtdg41.js} +1 -1
- package/dist/client/assets/{sso-BZP02FnS.js → sso-CBSK2hBa.js} +1 -1
- package/dist/client/assets/{suggestion-CJnvcEOz.js → suggestion-D3mu_Xk3.js} +2 -2
- package/dist/client/assets/{super-agent-icon-BpFks7bc.js → super-agent-icon-B-NqGats.js} +1 -1
- package/dist/client/assets/{switch-NBzUnGw4.js → switch-5zR0_RyT.js} +1 -1
- package/dist/client/assets/{synced-repos-x20dApIj.js → synced-repos-CKVdc7QA.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-De_GoXbo.js → tab-icon-glyph-tV1b5yjJ.js} +1 -1
- package/dist/client/assets/{table-B6HdX-5W.js → table-CZbeUf_X.js} +1 -1
- package/dist/client/assets/{tabs-B9Fkm8UP.js → tabs-D8DBFsJ6.js} +1 -1
- package/dist/client/assets/{task-board-r7mBQBfA.js → task-board-CmZ-3pYa.js} +1 -1
- package/dist/client/assets/{task-route-DzXY9dAT.js → task-route-ohp4Cwjz.js} +1 -1
- package/dist/client/assets/{task-status-nf4sWabv.js → task-status-CwNwAqHk.js} +1 -1
- package/dist/client/assets/taskboard-analytics-DGRgeO3t.js +1 -0
- package/dist/client/assets/tasks-DqNpLYyB.js +1 -0
- package/dist/client/assets/{tasks-DiiwePJH.js → tasks-DxAmGFRX.js} +3 -3
- package/dist/client/assets/{textarea-8xMov02r.js → textarea-BNrj1CIV.js} +1 -1
- package/dist/client/assets/thread-analytics-DsWQnd7G.js +1 -0
- package/dist/client/assets/{thread-intent-B-lUepd6.js → thread-intent-C_sXnvWO.js} +1 -1
- package/dist/client/assets/{thread-route-CidpLna8.js → thread-route-C4AshLS2.js} +1 -1
- package/dist/client/assets/{thread-route-BHZi-1Lx.js → thread-route-oy9R75fs.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-CJ90Ecr4.js → thread-sheet-body-tV8G2x4y.js} +1 -1
- package/dist/client/assets/{time-range-picker-Bf3LTcPm.js → time-range-picker--yg_KuCO.js} +1 -1
- package/dist/client/assets/{toggle-group-GmYScomU.js → toggle-group-D4APjUwC.js} +1 -1
- package/dist/client/assets/{tool-namespace-BMJphfly.js → tool-namespace-sf3dpjw4.js} +1 -1
- package/dist/client/assets/{tool-set-selector-ORY0JK_a.js → tool-set-selector-CBkMfKhT.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DLb2L87M.js → toolbar-icon-button-kyI973z_.js} +1 -1
- package/dist/client/assets/{tooltip-DUgZeaAs.js → tooltip-D0Aro8zv.js} +1 -1
- package/dist/client/assets/{tooltipContext-DhhamGUz.js → tooltipContext-CI284Wq3.js} +1 -1
- package/dist/client/assets/{track-CDDSJk6a.js → track-DFZVIiLp.js} +1 -1
- package/dist/client/assets/{types-D5f5_4KC.js → types-1fP0kZ0m.js} +6 -6
- package/dist/client/assets/{url-slug-BgFXpKTa.js → url-slug-DTpv_sm0.js} +1 -1
- package/dist/client/assets/{usage-stats-Db2409wH.js → usage-stats-CXQ9FoWO.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CegsSqNf.js → use-ai-providers-BCXggb0b.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-CoAQZSng.js → use-apply-named-rule-BLra67_a.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-BGPRlKfS.js +1 -0
- package/dist/client/assets/{use-automations-IINULJEn.js → use-automations-DxfaOtys.js} +1 -1
- package/dist/client/assets/{use-autosave-B28tAi82.js → use-autosave-DiZxq1F5.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-Al0tYlYk.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-SKM2dTYC.js → use-chat-layout-state-DCbtnqWd.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-D7FBZjX-.js → use-cms-publish-actions-DBCI1z7k.js} +5 -5
- package/dist/client/assets/{use-connect-companion-aYlKXW1g.js → use-connect-companion--SDSQ7TK.js} +1 -1
- package/dist/client/assets/use-connection-D3dXxxHo.js +1 -0
- package/dist/client/assets/{use-content-sync-Wt7A-cqi.js → use-content-sync-Bqyh9W67.js} +1 -1
- package/dist/client/assets/{use-copy-jRaPRTwC.js → use-copy-fJBOhwQv.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-C5zF4lje.js → use-date-fns-locale-UVVfd2fe.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DI_mWee1.js → use-debounced-autosave-CcJrNQv9.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Df5Y0bKp.js → use-debounced-value-BsCdYGvU.js} +1 -1
- package/dist/client/assets/{use-deco-credits-IyUHS95H.js → use-deco-credits-Dw1Zq3DU.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CVaB2Rhy.js → use-decopilot-events-DSC6YnSZ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DrZnUntQ.js → use-delete-connection-BtzLw5Mh.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CoSxtFqU.js → use-deployment-admin-hI6GNxTJ.js} +1 -1
- package/dist/client/assets/{use-entitlements-n2MsZM9p.js → use-entitlements-q4zqHldY.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-otug38hg.js → use-fast-preview-draft-url-s7AmJx8I.js} +1 -1
- package/dist/client/assets/{use-file-configs-BvpMQAvp.js → use-file-configs-DGBf9XU8.js} +1 -1
- package/dist/client/assets/{use-id-selection-DlXip3K9.js → use-id-selection-CJeGPaiA.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-CVBam4xO.js → use-inbox-feed-cS-t8Kt0.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-qE2UPD2B.js → use-infinite-scroll-DbrSLbYQ.js} +1 -1
- package/dist/client/assets/{use-join-requests-Dmu4TFw2.js → use-join-requests-l6ugTnm0.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-CO4jdgC_.js +1 -0
- package/dist/client/assets/{use-mcp-auth-status-CdzqA_1C.js → use-mcp-auth-status-DNGtFPYZ.js} +1 -1
- package/dist/client/assets/{use-mcp-client-C8sFqQYs.js → use-mcp-client-WgWOA1hL.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-KGxEzqRw.js → use-mcp-prompts-bAmVEPg_.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DMaf2rKI.js → use-mcp-tools-BIB4FISj.js} +1 -1
- package/dist/client/assets/{use-mobile-JxzmRS3O.js → use-mobile-BDHJ5g4G.js} +1 -1
- package/dist/client/assets/{use-move-blocks-B66Z69SN.js → use-move-blocks-DfWxYCvW.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BPUG-DwT.js → use-navigate-to-agent-BJdqgQKH.js} +1 -1
- package/dist/client/assets/{use-org-fs-BTZCBdxy.js → use-org-fs-Du2G3PF4.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CBRIaGB1.js → use-org-repo-syncs-CUbaI7hL.js} +1 -1
- package/dist/client/assets/{use-org-sso-CxdxMmbI.js → use-org-sso-BqLBrHG0.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DgPYo7py.js → use-organization-settings-CiRL-ND2.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-DltS_Jdi.js → use-project-native-view-presence-CpBcMOzg.js} +1 -1
- package/dist/client/assets/use-project-scope-BkidtyNv.js +1 -0
- package/dist/client/assets/{use-recent-apps-DCrhrE1r.js → use-recent-apps-BHprhf_5.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BMotCZC_.js → use-reports-diagnostic-CLVn3MVk.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-CPma0JnN.js → use-sandbox-events-C1Ie1sWJ.js} +1 -1
- package/dist/client/assets/{use-secrets-U7VdTPCn.js → use-secrets-blVuAHm2.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CVV-8YE0.js → use-section-preview-base-Fd7YfHr6.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-D8frxAVL.js → use-sidebar-collapsed-SkR6IFg9.js} +1 -1
- package/dist/client/assets/{use-tags-zNsAvyT2.js → use-tags-y0sDD-Gd.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CE11Vums.js → use-task-board-analytics--M1ga7ad.js} +1 -1
- package/dist/client/assets/{use-task-board-events-WJfNx3Vw.js → use-task-board-events-DFXBTSz0.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BkBj5QMy.js → use-task-board-item-prs-CNVxgnEG.js} +1 -1
- package/dist/client/assets/{use-task-board-items-CmUbMz1G.js → use-task-board-items-CNR2hq29.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-Dsyp8Uoc.js → use-task-board-prompts-CY0qH8TO.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DRP-RY0l.js → use-task-metadata-BAgQZZyc.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BOXdgR_A.js → use-thread-outputs-C4WTlJbf.js} +1 -1
- package/dist/client/assets/{use-voice-input-CQSYzFMw.js → use-voice-input-CelDzfp5.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B7UWNEWx.js +1 -0
- package/dist/client/assets/{useQueries-BpjN820-.js → useQueries-BH3au6Bf.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-TfssA_Zz.js +1 -0
- package/dist/client/assets/{users-DgPmfgcj.js → users-Bnea6Y3M.js} +1 -1
- package/dist/client/assets/{utils-DwY9C3Mj.js → utils-8mUwv_Ld.js} +1 -1
- package/dist/client/assets/{variant-calendar-ByGN-Vpc.js → variant-calendar-BvpRFRX6.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CzeUMJ70.js → variant-matcher-override-Bna1heSd.js} +1 -1
- package/dist/client/assets/{view-header-JSqDfdkj.js → view-header-CYkLhMn3.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CVLIL1Oq.js → virtual-mcp-CfQIOHDY.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CwQVaju9.js → watch-sse-pool-ECs_hZYZ.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/client/legacy-admin-welcome.webp +0 -0
- package/dist/server/server.js +561 -561
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Bj3EYwlx.js +0 -1
- package/dist/client/assets/agent-assets-DI6qPyKd.js +0 -1
- package/dist/client/assets/agent-automations---UAtRbI.js +0 -1
- package/dist/client/assets/agent-calendar-cf-gDNxH.js +0 -1
- package/dist/client/assets/agent-connect-sources-DWV9WSKP.js +0 -1
- package/dist/client/assets/agent-deck-D0lCoowF.js +0 -1
- package/dist/client/assets/agent-e2e-BOiuADaK.js +0 -1
- package/dist/client/assets/agent-experiments-BMv9LCIg.js +0 -1
- package/dist/client/assets/agent-file-CNp-H5vm.js +0 -1
- package/dist/client/assets/agent-hosting-C-EBAKmR.js +0 -1
- package/dist/client/assets/agent-library-file-Agr0p3aP.js +0 -1
- package/dist/client/assets/agent-library-slTipnE2.js +0 -1
- package/dist/client/assets/agent-overview-BS9_YnvP.js +0 -1
- package/dist/client/assets/agent-releases-KTwDvjK6.js +0 -2
- package/dist/client/assets/agent-settings-DrVJjCl1.js +0 -1
- package/dist/client/assets/agent-site-editor-code-1vmtmGbS.js +0 -2
- package/dist/client/assets/agent-site-editor-content-DLlGzEUS.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-Qe8DbwSs.js +0 -1
- package/dist/client/assets/agent-view-B8yeRN99.js +0 -1
- package/dist/client/assets/api-keys-CqXC8hcJ.js +0 -1
- package/dist/client/assets/app-editor-BaI-amod.js +0 -1
- package/dist/client/assets/category-editor-CcG8-9VQ.js +0 -1
- package/dist/client/assets/cms-settings-editor-BrJarYyE.js +0 -1
- package/dist/client/assets/collapsible-f_iRDMCl.js +0 -1
- package/dist/client/assets/collection-detail-C3I3Gpfg.js +0 -1
- package/dist/client/assets/context-5V6pbdZV.js +0 -1
- package/dist/client/assets/discover-C3KntGhQ.js +0 -1
- package/dist/client/assets/file-explorer-BQ3nHrzo.js +0 -2
- package/dist/client/assets/home-_5AX_rte.js +0 -1
- package/dist/client/assets/index-K-NS4tm_.css +0 -1
- package/dist/client/assets/index-cB2W9GP1.js +0 -1
- package/dist/client/assets/library-2jjA6huk.js +0 -1
- package/dist/client/assets/login-CYw53vfL.js +0 -1
- package/dist/client/assets/plan-C3-HdCti.js +0 -1
- package/dist/client/assets/post-calendar-DyAhp07d.js +0 -1
- package/dist/client/assets/project-app-view--F2yE3h6.js +0 -1
- package/dist/client/assets/project-reports-CQX2n1pZ.js +0 -1
- package/dist/client/assets/project-tasks-BxS2RWnj.js +0 -1
- package/dist/client/assets/record-editor-DSuyBQvO.js +0 -1
- package/dist/client/assets/redirect-editor-Dg4EE9RJ.js +0 -1
- package/dist/client/assets/reports-DfhDFmgz.js +0 -1
- package/dist/client/assets/reports-tab-NBJtBy1O.js +0 -2
- package/dist/client/assets/repositories-Cdm1E3kt.js +0 -1
- package/dist/client/assets/review-settings-DWBDMXEy.js +0 -1
- package/dist/client/assets/route-CARtHArs.js +0 -1
- package/dist/client/assets/route-CE2T-4lr.js +0 -1
- package/dist/client/assets/route-apqFkN8H.js +0 -1
- package/dist/client/assets/search-input-CEHMJvIu.js +0 -1
- package/dist/client/assets/sections-editor-w8bIFtKt.js +0 -1
- package/dist/client/assets/settings-tab-BjoW2SLa.js +0 -1
- package/dist/client/assets/shell-layout-B_Je98M9.js +0 -1
- package/dist/client/assets/site-editor-A0UTz4FO.js +0 -1
- package/dist/client/assets/skills-DFP73eqq.js +0 -1
- package/dist/client/assets/taskboard-analytics-sh1MutiR.js +0 -1
- package/dist/client/assets/tasks-CDaME30v.js +0 -1
- package/dist/client/assets/thread-analytics-CI4Ww-tz.js +0 -1
- package/dist/client/assets/use-ask-in-chat-D8s6kqgy.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-390kM-ss.js +0 -1
- package/dist/client/assets/use-connection-BLq1Zghk.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-CmG1gXaL.js +0 -1
- package/dist/client/assets/use-project-scope-BLJIcw6l.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CrPhADUx.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B5oEM_Vd.js +0 -1
package/dist/client/assets/{use-org-repo-syncs-CBRIaGB1.js → use-org-repo-syncs-CUbaI7hL.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,a5 as f,ak as y,K as S,i as _,q as d,e as R}from"./index-
|
|
1
|
+
import{c as r,a5 as f,ak as y,K as S,i as _,q as d,e as R}from"./index-Bm1K3DQC.js";const p=5e3;function m(e){return(e??[]).some(n=>!n.lastSyncedAt&&!n.lastSyncError)}function g(){const e=r.c(7),{org:n}=f(),t=y();let i;e[0]!==n.id?(i=S.orgRepoSyncs(n.id),e[0]=n.id,e[1]=i):i=e[1];let s;e[2]!==t?(s=async()=>(await t.call("ORG_REPO_SYNC_LIST",{})).configs,e[2]=t,e[3]=s):s=e[3];let o;return e[4]!==i||e[5]!==s?(o={queryKey:i,staleTime:6e4,refetchInterval:E,queryFn:s},e[4]=i,e[5]=s,e[6]=o):o=e[6],_(o)}function E(e){return m(e.state.data)?p:!1}function P(){const e=r.c(2),n=g();let t;return e[0]!==n.data?(t=new Set((n.data??[]).map(O)),e[0]=n.data,e[1]=t):t=e[1],t}function O(e){return e.volume}function q(){const e=r.c(12),{org:n}=f(),t=y(),i=d();let s;e[0]!==n||e[1]!==i?(s=()=>i.invalidateQueries({queryKey:S.orgRepoSyncs(n.id)}),e[0]=n,e[1]=i,e[2]=s):s=e[2];const o=s;let c;e[3]!==t?(c=async u=>(await t.call("ORG_REPO_SYNC_CREATE",u)).config,e[3]=t,e[4]=c):c=e[4];let a;e[5]!==o||e[6]!==t?(a=u=>{t.call("ORG_REPO_SYNC_RUN",{id:u.id}).catch(C).then(o)},e[5]=o,e[6]=t,e[7]=a):a=e[7];let l;return e[8]!==o||e[9]!==c||e[10]!==a?(l={mutationFn:c,onSuccess:a,onSettled:o},e[8]=o,e[9]=c,e[10]=a,e[11]=l):l=e[11],R(l)}function C(){return null}function T(){const e=r.c(8),{org:n}=f(),t=y(),i=d();let s;e[0]!==t?(s=a=>t.call("ORG_REPO_SYNC_DELETE",{id:a}),e[0]=t,e[1]=s):s=e[1];let o;e[2]!==n||e[3]!==i?(o=()=>i.invalidateQueries({queryKey:S.orgRepoSyncs(n.id)}),e[2]=n,e[3]=i,e[4]=o):o=e[4];let c;return e[5]!==s||e[6]!==o?(c={mutationFn:s,onSettled:o},e[5]=s,e[6]=o,e[7]=c):c=e[7],R(c)}export{P as a,q as b,T as c,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,i as S,q as r,e as y,K as c}from"./index-
|
|
1
|
+
import{c as u,i as S,q as r,e as y,K as c}from"./index-Bm1K3DQC.js";async function f(i,a,e){const s=await fetch(i,a);if(!s.ok){const t=await s.json().catch(()=>null);throw new Error(t?.error||e)}return s.json()}function q(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoStatus(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/status`,void 0,"Failed to check SSO status"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function C(i,a){const e=u.c(8);let s;e[0]!==i?(s=c.orgSsoConfig(i??""),e[0]=i,e[1]=s):s=e[1];let t;e[2]!==a?(t=()=>f(`/api/${a}/sso/config`,void 0,"Failed to fetch SSO config"),e[2]=a,e[3]=t):t=e[3];const n=!!i&&!!a;let o;return e[4]!==s||e[5]!==t||e[6]!==n?(o={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=o):o=e[7],S(o)}function O(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)},"Failed to save SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function m(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=()=>f(`/api/${a}/sso/config`,{method:"DELETE"},"Failed to delete SSO config"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}function h(i,a){const e=u.c(8),s=r();let t;e[0]!==a?(t=l=>f(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:l})},"Failed to toggle SSO enforcement"),e[0]=a,e[1]=t):t=e[1];let n;e[2]!==i||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(i)}),s.invalidateQueries({queryKey:c.orgSsoStatus(i)})},e[2]=i,e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=o):o=e[7],y(o)}export{C as a,O as b,m as c,h as d,q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a as w,bU as y,a5 as E,i as F,al as M,K as b,ak as T,q as A,e as O}from"./index-
|
|
1
|
+
import{c as u,a as w,bU as y,a5 as E,i as F,al as M,K as b,ak as T,q as A,e as O}from"./index-Bm1K3DQC.js";import{D as C,o as G,a as $}from"./schema-CyJEITX6.js";import{r as z}from"./task-board-CmZ-3pYa.js";const I={organizationId:"",sidebar_items:null,coding_agent_mcp_excluded:null,simple_mode:null,default_home_agents:null,flags:null,submodule_credentials:null},x={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function P(t,e){return{queryKey:b.organizationSettings(e),queryFn:async()=>{try{return await M(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...I,organizationId:e}}},staleTime:6e4}}function c(t){const e=u.c(7),{org:n}=E();let s;e[0]!==n.id||e[1]!==n.slug?(s=P(n.slug,n.id),e[0]=n.id,e[1]=n.slug,e[2]=s):s=e[2];const o=t,a=!!n.id;let i;return e[3]!==s||e[4]!==o||e[5]!==a?(i={...s,select:o,enabled:a},e[3]=s,e[4]=o,e[5]=a,e[6]=i):i=e[6],F(i)}function _(){const t=u.c(9),{org:e}=E(),n=T(),s=A();let o;t[0]!==e||t[1]!==n?(o=async l=>{const r=await n.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...l});if(!r)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return r},t[0]=e,t[1]=n,t[2]=o):o=t[2];let a;t[3]!==e||t[4]!==s?(a=l=>{s.setQueryData(b.organizationSettings(e.id),r=>({...r??I,...l}))},t[3]=e,t[4]=s,t[5]=a):a=t[5];let i;return t[6]!==o||t[7]!==a?(i={mutationFn:o,onSuccess:a},t[6]=o,t[7]=a,t[8]=i):i=t[8],O(i)}function R(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_search:t.tiers.web_search??null,deep_research:t.tiers.deep_research??null}}:x}function Y(){const{data:t}=c(D);return t??x}function D(t){return R(t.simple_mode)}function j(){const t=u.c(7),e=_();let n,s;t[0]!==e?(n=(a,i)=>e.mutate({simple_mode:a},i),s=(a,i)=>e.mutateAsync({simple_mode:a},i),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function B(){return d("reports_only")}function d(t){const e=u.c(5);let n;e[0]!==t?(n=a=>G(a.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s}=c(n);let o;return e[2]!==s||e[3]!==t?(o=s??C.has(t),e[2]=s,e[3]=t,e[4]=o):o=e[4],o}function V(t){const e=u.c(6);let n;e[0]!==t?(n=i=>G(i.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s,isError:o}=c(n);let a;return e[2]!==s||e[3]!==t||e[4]!==o?(a=s??(o?C.has(t):void 0),e[2]=s,e[3]=t,e[4]=o,e[5]=a):a=e[5],a}function W(){const t=d("chat_harness_sandbox_only");return y().runtime.agentSandbox&&t}function H(){const t=u.c(8),{org:e}=E(),n=T(),s=A();let o;t[0]!==n?(o=l=>n.call("ORGANIZATION_BLOCKS_EDITOR_SET",{enabled:l}),t[0]=n,t[1]=o):o=t[1];let a;t[2]!==e||t[3]!==s?(a=l=>{const{enabled:r}=l;s.setQueryData(b.organizationSettings(e.id),m=>m&&{...m,flags:{...m.flags,new_blocks_editor:r}})},t[2]=e,t[3]=s,t[4]=a):a=t[4];let i;return t[5]!==o||t[6]!==a?(i={mutationFn:o,onSuccess:a},t[5]=o,t[6]=a,t[7]=i):i=t[7],O(i)}function k(t){return!!t&&t.trim().toLowerCase().endsWith("@deco.cx")}function J(){const t=u.c(8),{data:e}=w.useSession(),n=y();let s;t[0]!==n.auth.localMode||t[1]!==e?.user?.email?(s=n.auth.localMode===!0||k(e?.user?.email),t[0]=n.auth.localMode,t[1]=e?.user?.email,t[2]=s):s=t[2];const o=s,a=n.hostingControlPlaneGa===!0,i=n.monitorGa===!0,l=d("hosting_enabled"),r=d("e2e_enabled"),m=d("monitor_enabled"),N=d("experiments_enabled"),g=o||a||l,S=o||a||r,p=o||i||m,h=o||a||N;let f;return t[3]!==g||t[4]!==S||t[5]!==p||t[6]!==h?(f={hosting:g,e2e:S,monitor:p,experiments:h},t[3]=g,t[4]=S,t[5]=p,t[6]=h,t[7]=f):f=t[7],f}function X(){const{data:t}=c(L);return t??!1}function L(t){return $(t.flags)}function tt(){const{data:t}=c(U);return t??!0}function U(t){return z(t.flags)}function et(){const t=u.c(7),e=_();let n,s;t[0]!==e?(n=(a,i,l)=>e.mutate({flags:{[a]:i}},l),s=(a,i,l)=>e.mutateAsync({flags:{[a]:i}},l),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function nt(){const t=u.c(2),{data:e}=c(q);let n;return t[0]!==e?(n=e??[],t[0]=e,t[1]=n):n=t[1],n}function q(t){return t.coding_agent_mcp_excluded}function st(){const t=u.c(5),e=_();let n;t[0]!==e?(n=(o,a)=>e.mutate({coding_agent_mcp_excluded:o},a),t[0]=e,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s={...e,mutate:n},t[2]=e,t[3]=n,t[4]=s):s=t[4],s}function ot(){const t=u.c(2),{data:e}=c(Q);let n;return t[0]!==e?(n=e??[],t[0]=e,t[1]=n):n=t[1],n}function Q(t){return t.submodule_credentials}function at(){const t=u.c(5),e=_();let n;t[0]!==e?(n=(o,a)=>e.mutateAsync({submodule_credentials:o},a),t[0]=e,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s={...e,mutateAsync:n},t[2]=e,t[3]=n,t[4]=s):s=t[4],s}export{d as a,W as b,V as c,Y as d,J as e,tt as f,H as g,X as h,et as i,nt as j,st as k,j as l,ot as m,at as n,B as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,a5 as D,bU as y,
|
|
1
|
+
import{c as v,a5 as D,bU as y,gP as C,i as O,K as T}from"./index-Bm1K3DQC.js";import{m as W}from"./match-site-slug-config-D3fUJ6vX.js";import{u as N}from"./use-file-configs-DGBf9XU8.js";import{e as B}from"./use-organization-settings-CiRL-ND2.js";import{b as J}from"./use-blocks-v8-project-Al0tYlYk.js";const l=["overview","context","monitor","plan","reports","board","site-editor","calendar","experiments","assets","releases","hosting","e2e","automations"],U=["overview","reports","board","site-editor"],R=1,w=["overview","context","monitor","plan","board"],K=["calendar","experiments"];function h(t){return t?[...w,...K]:w}function $(t,e){const n=new Set(t??[]);return h(e).filter(s=>!n.has(s))}function ee(t,e){const n=new Set([...t??[],...h(e)]);return l.filter(s=>n.has(s))}function te(t,e){if(!t&&e===void 0)return new Set(w);const n=new Set(e!==void 0?S(e,R):S(F(t),t?.sidebarViewsVersion,$(t?.sidebarViewsSeen,!1)));return new Set(w.filter(s=>n.has(s)))}const k=["calendar","experiments","assets","releases","hosting","e2e"];function se(t,e,n){if(!t)return{project:n??null,resolvedScopeId:null};const s=e?.id===t?e:n?.id===t?n:null;return{project:s,resolvedScopeId:s?t:null}}function F(t){return t?.sidebarViews!==void 0?t.sidebarViews:t?.ui?.layout?.sidebarViews}function S(t,e,n=[]){const s=new Set(t??[]);if(e!==R)for(const r of U)s.add(r);for(const r of n)s.add(r);return l.filter(r=>s.has(r))}function q(t){return l.some(e=>e===t)}function L(t){return k.some(e=>e===t)}function Q(t,e){return{overview:t,context:!0,monitor:!0,plan:!0,reports:t,board:t,"site-editor":t,assets:e.assets,releases:t&&e.releases,hosting:e.hosting,e2e:e.e2e,calendar:t&&e.calendar,experiments:t&&e.experiments,automations:!0}}function ne(t,e,n){const s=Q(e,n);return t?s:{...s,overview:!0,reports:!0,board:!0}}function re(t,e,n,s=[]){const r=new Set(S(t,n,s));return l.filter(o=>e[o]&&r.has(o))}function oe(t,e,n){return n||!t?t:(t.type==="preview"||t.type==="content"||t.type==="code"?"site-editor":t.type)===e?{type:"settings"}:t}function ie(t){return l.filter(e=>t[e])}function Y(t,e,n){return!q(t)||e[t]?!1:!L(t)||t==="releases"||t==="calendar"||t==="experiments"?!0:!(t==="assets"?n.assets:n.siteAccess)}function ce(t,e,n,s,r){return Y(t==="preview"||t==="content"||t==="code"?"site-editor":t,e,n)||t==="content"&&!s.includes("content")||t==="code"&&r&&!s.includes("code")}function ae(t,e,n,s){const r=new Set(S(t,s));return n?r.add(e):r.delete(e),l.filter(o=>r.has(o))}function fe(t){const e=v.c(19),{org:n}=D(),s=y(),r=B(),o=N();let i;e[0]!==t?(i=J(t),e[0]=t,e[1]=i):i=e[1];const c=i;let d;e[2]!==t?(d=C(t),e[2]=t,e[3]=d):d=e[3];const a=d,p=s.hostingEnabled===!0,A=p&&!!a,x=z(n.slug,a,A),I=x.data?.owned===!0;let f;e[4]!==o.data?.configs?(f=o.data?.configs??[],e[4]=o.data?.configs,e[5]=f):f=e[5];let V;e[6]!==a||e[7]!==f?(V=W(f,a),e[6]=a,e[7]=f,e[8]=V):V=e[8];const b=!!V,m=c&&!!t?.metadata?.siteSlug,E=p&&I&&r.hosting,g=p&&I&&r.e2e;let u;e[9]!==b||e[10]!==m||e[11]!==E||e[12]!==g||e[13]!==c?(u={assets:b,releases:m,hosting:E,e2e:g,calendar:c,experiments:c},e[9]=b,e[10]=m,e[11]=E,e[12]=g,e[13]=c,e[14]=u):u=e[14];const _=!!a&&o.isPending,j=A&&x.isPending;let P;return e[15]!==j||e[16]!==u||e[17]!==_?(P={presence:u,assetsPending:_,siteAccessPending:j},e[15]=j,e[16]=u,e[17]=_,e[18]=P):P=e[18],P}function z(t,e,n){const s=v.c(10);let r;s[0]!==t||s[1]!==e?(r=T.hostingAccess(t,e??""),s[0]=t,s[1]=e,s[2]=r):r=s[2];let o;s[3]!==t||s[4]!==e?(o=async()=>{const c=await fetch(`/api/${t}/hosting/${encodeURIComponent(e??"")}/access`);return c.ok?await c.json():{owned:!1,canWrite:!1}},s[3]=t,s[4]=e,s[5]=o):o=s[5];let i;return s[6]!==n||s[7]!==r||s[8]!==o?(i={queryKey:r,queryFn:o,enabled:n,staleTime:6e4},s[6]=n,s[7]=r,s[8]=o,s[9]=i):i=s[9],O(i)}export{k as P,re as a,R as b,se as c,ne as d,ce as e,Y as f,S as g,ie as h,w as i,ee as j,oe as k,$ as o,Q as p,F as r,te as s,ae as t,fe as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as I,f as P,u as T,d as N,ee as R,ef as E,dg as k,af as l}from"./index-Bm1K3DQC.js";import{d as C,b as O,p as w}from"./repository-binding-BUEX4lc5.js";const x=1;function _(e){return(e??[]).filter(E)}function M(){const e=I.c(4);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const r=P(o);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[1]=n):n=e[1];const t=T(n);if(r.agentId)return r.agentId;let a;return e[2]!==t?(a="virtualmcpid"in t&&typeof t.virtualmcpid=="string"?t.virtualmcpid.trim():void 0,e[2]=t,e[3]=a):a=e[3],a||null}function D(){const e=I.c(16),o=N();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const n=P(r),t=R(),a=C(),c=_(a),s=M(),y=c.find(i=>i.id===s)??null;let p;e[1]!==a||e[2]!==s?(p=s&&a.length>0&&!a.some(i=>i.id===s)?s:null,e[1]=a,e[2]=s,e[3]=p):p=e[3];const b=O(p),u=y??_(b?[b]:[])[0]??null;let m;e[4]!==t||e[5]!==o||e[6]!==n||e[7]!==s?(m=i=>{if(i===s&&t!==void 0)return;const h=n.org??"",S=V;if(i){k(o,{org:h,agentId:i,tabId:t==="board"||t==="reports"?t:"overview",search:S,replace:!1});return}if(t==="board"){o({to:l.tasks,params:{org:h,taskKey:void 0},search:S});return}const j=t==="files"?l.library:t==="monitoring"?l.monitoring:t==="plan"?l.plan:l.home;o({to:j,params:{org:h},search:S})},e[4]=t,e[5]=o,e[6]=n,e[7]=s,e[8]=m):m=e[8];const d=m,v=w(u),g=c.length>=x;let f;return e[9]!==u||e[10]!==c||e[11]!==s||e[12]!==d||e[13]!==v||e[14]!==g?(f={scopeId:s,project:u,repo:v,projects:c,hasProjects:g,setScope:d},e[9]=u,e[10]=c,e[11]=s,e[12]=d,e[13]=v,e[14]=g,e[15]=f):f=e[15],f}function V(e){return{...e,virtualmcpid:void 0,thread:void 0,mainpanel:void 0,path:void 0,preview:void 0,expanded:void 0}}export{D as a,_ as s,M as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as m,c as f,l as I,ar as A,at as j,ah as y}from"./index-
|
|
1
|
+
import{r as m,c as f,l as I,ar as A,at as j,ah as y}from"./index-Bm1K3DQC.js";import{P as N}from"./project-apps-CUvGGhyU.js";import{b}from"./repository-binding-BUEX4lc5.js";function g(n,t){const e=new Set(t);return e.size===0?n:n.filter(c=>e.has(c.connectionId))}function E(n){const t=n.metadata?.ui;return Array.isArray(t?.pinnedViews)?t.pinnedViews.filter(e=>!!e&&typeof e=="object"&&typeof e.connectionId=="string"&&typeof e.toolName=="string"&&["undefined","string"].includes(typeof e.label)&&(e.icon==null||typeof e.icon=="string")):[]}const P=4;function d(n,t){return n.app===t.app&&n.projectId===t.projectId}function R(n,t,e=P){return[t,...n.filter(c=>!d(c,t))].slice(0,e)}function h(n,t){return n.filter(e=>!d(e,t))}function w(n,t,e){const c=n.findLast(l=>l.staticData.mainView);if(!c)return null;const{mainView:i,siteEditorView:s,local:r}=c.staticData;if(!i)return null;const o=c.params,a=o?.agentId;if(a&&i==="app"&&o.connectionId&&o.toolName)return{app:e(o.connectionId,o.toolName),projectId:a,connection:{id:o.connectionId,toolName:o.toolName}};const p=s?"site-editor":i;return t(p)?a?{app:p,projectId:a}:r?{app:p,projectId:null}:null:null}const u=[];function V(n){const t=f.c(9);let e;t[0]!==n?(e=j.recentApps(n),t[0]=n,t[1]=e):e=t[1];const[c,i]=A(e,u),s=Array.isArray(c)?c:u;let r,o;t[2]!==i?(r=p=>i(l=>R(Array.isArray(l)?l:[],p)),o=p=>i(l=>h(Array.isArray(l)?l:[],p)),t[2]=i,t[3]=r,t[4]=o):(r=t[3],o=t[4]);let a;return t[5]!==s||t[6]!==r||t[7]!==o?(a={recent:s,remember:r,forget:o},t[5]=s,t[6]=r,t[7]=o,t[8]=a):a=t[8],a}function O(){const n=f.c(1);let t;return n[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:S,structuralSharing:!0},n[0]=t):t=n[0],I(t)}function S(n){return w(n.matches,T,y)}function T(n){return n in N}function k(n){const{remember:t}=V(n),e=O(),c=b(e?.projectId),i=e?.projectId&&c?.id===e.projectId?c.title:null,s=e?.connection&&c?E(c).find(o=>o.connectionId===e.connection?.id&&o.toolName===e.connection.toolName):void 0,r=e?.connection&&{id:e.connection.id,toolName:e.connection.toolName,label:s?.label||e.connection.toolName,icon:s?.icon};m.useEffect(()=>{!e?.projectId||!i||t({app:e.app,projectId:e.projectId,projectTitle:i,...r&&{connection:r}})},[n,e?.app,e?.projectId,i,r?.label,r?.icon])}export{O as a,V as b,g as k,E as p,k as u};
|
package/dist/client/assets/{use-reports-diagnostic-BMotCZC_.js → use-reports-diagnostic-CLVn3MVk.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as N,a5 as Q,W as F,T as A,i as f,K as R,
|
|
1
|
+
import{c as N,a5 as Q,W as F,T as A,i as f,K as R,gX as L,$ as K,U}from"./index-Bm1K3DQC.js";import{m as O}from"./use-mcp-client-WgWOA1hL.js";import{u as h}from"./companions-core-DhUD88pR.js";function D(n){return n?n.scanned_at?"ready":n.run_in_progress?"generating":"none":"none"}function M(n){return n.connectionQueryPending?!0:!n.hasConnection||n.cdClientFailed?!1:n.diagnosticQueryPending}const b=2e4;function q(n){if(typeof n!="string"||!n)return null;try{return new URL(n).hostname||null}catch{return null}}function j(){const n=N.c(24),{org:e}=Q(),t=F.REPORTS(e.id);let l;n[0]!==e.id||n[1]!==e.slug?(l=O({connectionId:A,orgId:e.id,orgSlug:e.slug}),n[0]=e.id,n[1]=e.slug,n[2]=l):l=n[2];const{data:p}=f(l),u=f({queryKey:R.reportsConnection(e.id,t),enabled:!!p,retry:!1,staleTime:6e4,queryFn:async()=>{if(!p)throw new Error("selfClient not ready");const _=await p.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:t}});return h(_)}}),m=u.data?.item??null,{data:s,isError:y}=f({...O({connectionId:t,orgId:e.id,orgSlug:e.slug}),enabled:!!m}),C=R.reportsDiagnostic(e.id,t),E=!!s;let i;n[3]!==s?(i=async()=>{if(!s)throw new Error("cdClient not ready");const _=await s.callTool({name:L,arguments:{}});return h(_).diagnostic??null},n[3]=s,n[4]=i):i=n[4];let d;n[5]!==C||n[6]!==E||n[7]!==i?(d={queryKey:C,enabled:E,retry:1,refetchInterval:v,queryFn:i},n[5]=C,n[6]=E,n[7]=i,n[8]=d):d=n[8];const r=f(d),o=m?.metadata?.siteUrl,P=r.data??null,w=r.isSuccess,I=!!m;let a;n[9]!==y||n[10]!==u.isPending||n[11]!==r.isPending||n[12]!==I?(a=M({connectionQueryPending:u.isPending,hasConnection:I,cdClientFailed:y,diagnosticQueryPending:r.isPending}),n[9]=y,n[10]=u.isPending,n[11]=r.isPending,n[12]=I,n[13]=a):a=n[13];const S=typeof o=="string"&&o?o:null;let c;n[14]!==o?(c=q(o),n[14]=o,n[15]=c):c=n[15];const T=s??null;let g;return n[16]!==t||n[17]!==r.isSuccess||n[18]!==c||n[19]!==T||n[20]!==P||n[21]!==a||n[22]!==S?(g={diagnostic:P,isSuccess:w,isLoading:a,siteUrl:S,host:c,connectionId:t,cdClient:T},n[16]=t,n[17]=r.isSuccess,n[18]=c,n[19]=T,n[20]=P,n[21]=a,n[22]=S,n[23]=g):g=n[23],g}function v(n){return n.state.status!=="error"&&D(n.state.data)==="generating"?b:!1}function B(n,e){return{to:K.app,params:{org:n.slug,agentId:U(n.id),connectionId:e,toolName:L},search:{}}}export{D as d,B as r,j as u};
|
package/dist/client/assets/{use-sandbox-events-CPma0JnN.js → use-sandbox-events-C1Ie1sWJ.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as fe,j as Y,r as a,a5 as he,q as Ee,K as C,
|
|
1
|
+
import{c as fe,j as Y,r as a,a5 as he,q as Ee,K as C,dd as G,a3 as pe}from"./index-Bm1K3DQC.js";import{i as ve,u as Se}from"./chat-context-DrYmTpG0.js";import{b as ge}from"./sandbox-url-D3mC8qhT.js";import{u as ye}from"./repository-binding-BUEX4lc5.js";function J(t){return t==="installing"||t==="install-failed"||t==="starting"||t==="start-failed"||t==="running"||t==="crashed"}const me={phase:null,lifecycle:{phase:"idle"},status:{state:"running"},branch:{kind:"unknown"},notFound:!1,scripts:[],activeProcesses:[],getBuffer:()=>"",hasData:()=>!1,subscribeChunks:()=>()=>{},subscribeReload:()=>()=>{}},I=a.createContext(me),W=16384;class be{data="";append(e){this.data+=e,this.data.length>W&&(this.data=this.data.slice(this.data.length-W))}get(){return this.data}clear(){this.data=""}}const De=1e3,Re=3e4,Te=3e3,z=["lifecycle","status","tasks","scripts","branch","reload","file-changed"],X="log";function ke(t){if(!t)return null;try{return new URL("/_sandbox/events",t).href}catch{return null}}function xe(t){return t===404}async function Ce(t){try{const e=await fetch(t,{headers:{Accept:"text/event-stream"},cache:"no-store",signal:AbortSignal.timeout(Te)});return await e.body?.cancel().catch(()=>{}),xe(e.status)}catch{return!1}}const Z=ve(I);function Ke(t){const e=fe.c(10);let i,f,c;e[0]!==t?({resetKey:c,children:i,...f}=t,e[0]=t,e[1]=i,e[2]=f,e[3]=c):(i=e[1],f=e[2],c=e[3]);let o;e[4]!==f||e[5]!==c?(o=Y.jsx(Le,{...f},c),e[4]=f,e[5]=c,e[6]=o):o=e[6];let h;return e[7]!==i||e[8]!==o?(h=Y.jsx(Z.Host,{source:o,children:i}),e[7]=i,e[8]=o,e[9]=h):h=e[9],h}function Le(t){return Z.usePublish(_e(t)),null}function _e({virtualMcpId:t,branch:e,previewUrl:i=null,enabled:f=!0}){const{org:c}=he(),o=Ee(),h=Se()?.taskId??null,[te,L]=a.useState(null),[ne,_]=a.useState({phase:"idle"}),[se,w]=a.useState({state:"running"}),[re,P]=a.useState({kind:"unknown"}),[ae,N]=a.useState(!1),[ce,O]=a.useState([]),[oe,B]=a.useState([]),[,ue]=a.useState(0),v=a.useRef(new Map),K=a.useRef(new Set),R=a.useRef(new Set),A=a.useRef(null),T=ke(i),Q=ye(t)?.metadata?.runtime?.selected==="deno",ie=l=>{let d=v.current.get(l);return d||(d=new be,v.current.set(l,d)),d};return a.useEffect(()=>{if(L(null),_({phase:"idle"}),w({state:"running"}),P({kind:"unknown"}),A.current=null,N(!1),O([]),B([]),v.current.clear(),!t||!e||!f)return;const l=ge({orgSlug:c.slug,virtualMcpId:t,branch:e,threadId:h??null},"events");let d=!1,S=0,k=null,g=null,y=null,p=null,E=null,x=null;const F=()=>{g&&clearTimeout(g),g=setTimeout(()=>{g=null,o.invalidateQueries({queryKey:C.liveMeta(c.slug,t,e)})},1e3)},le=n=>{try{const s=JSON.parse(n.data);L(s),s.kind!=="failed"&&(N(!1),S=0),s.kind==="ready"&&q()}catch(s){console.warn("[vm-events] bad phase payload",s)}},V=()=>{N(!0),L(null),_({phase:"idle"}),w({state:"running"}),P({kind:"unknown"}),O([]),B([]),v.current.clear()},$=n=>{try{const s=JSON.parse(n.data);if(typeof s.data!="string")return;S=0;const u=s.data.replace(/\r?\n/g,`\r
|
|
2
2
|
`);ie(s.source).append(u);for(const r of K.current)try{r(s.source,u)}catch{}ue(r=>r+1)}catch{}},j=n=>{const s=n.type;try{const u=JSON.parse(n.data);switch(S=0,s){case"lifecycle":{const r=u;_(r.state);const m=`${c.slug}/${t}/${e}`;if(J(r.state.phase)&&!(x&&J(x))){G(o,c.id);const D=C.decofile(m);o.getQueryData(D)===void 0&&o.invalidateQueries({queryKey:D})}r.state.phase==="running"&&x!=="running"&&(G(o,c.id),o.invalidateQueries({queryKey:C.decofile(m)}),F()),x=r.state.phase;const b=r.state.phase==="running"?r.state.port:null,U=A.current;if(A.current=b,U!==null&&b!==null&&U!==b)for(const D of R.current)try{D()}catch{}return}case"status":w(u);return;case"tasks":{const m=u.active.map(b=>b.logName??"").filter(Boolean);B(m);return}case"scripts":O(u.scripts);return;case"branch":{const r=u.meta;P(r);return}case"reload":for(const r of R.current)try{r()}catch{}return;case"file-changed":{const{path:r}=u,m=`${c.slug}/${t}/${e}`;if(r.startsWith(".deco/")||r.includes("/.deco/")){if(!(x==="running"))return;r.endsWith(".deco/meta.gen.json")&&F(),y&&clearTimeout(y),y=setTimeout(()=>{if(y=null,o.invalidateQueries({queryKey:C.decofile(m)}),Q)for(const D of R.current)try{D()}catch{}},500)}else F();return}}}catch{}};function M(){if(d)return;const n=new EventSource(l);p=n,n.onopen=()=>{},n.onerror=()=>{p===n&&n.readyState===EventSource.CLOSED&&H("studio")},n.addEventListener("phase",le),n.addEventListener("gone",V),n.addEventListener(X,$);for(const s of z)n.addEventListener(s,j)}function q(){if(d||!T||E)return;const n=new EventSource(T);E=n;let s=!1;n.onopen=()=>{if(d||E!==n)return;s=!0,S=0;const u=p;p=null,u?.close()},n.onerror=()=>{E===n&&n.readyState===EventSource.CLOSED&&de(n,s)},n.addEventListener(X,$);for(const u of z)n.addEventListener(u,j)}async function de(n,s){const u=T?await Ce(T):!1;if(!(d||E!==n)){if(n.close(),E=null,u){V(),p||M();return}s&&H("direct")}}function H(n){if(d||k)return;const s=pe(Re,De,S,2,0);S++,k=setTimeout(()=>{if(k=null,!d){if(n==="direct"){E?.close(),E=null,q();return}p?.close(),p=null,M()}},s)}return M(),()=>{d=!0,p?.close(),E?.close(),k&&clearTimeout(k),g&&clearTimeout(g),y&&clearTimeout(y)}},[t,e,c.slug,c.id,f,h,T,o,Q]),{phase:te,lifecycle:ne,status:se,branch:re,notFound:ae,scripts:ce,activeProcesses:oe,getBuffer:l=>v.current.get(l)?.get()??"",hasData:l=>(v.current.get(l)?.get().length??0)>0,subscribeChunks:l=>(K.current.add(l),()=>{K.current.delete(l)}),subscribeReload:l=>(R.current.add(l),()=>{R.current.delete(l)})}}function ee(){return a.use(I)}function Ae(t){const{subscribeChunks:e}=ee(),i=a.useRef(t);i.current=t,a.useEffect(()=>e((o,h)=>{i.current?.(o,h)}),[e])}function Fe(t){const{subscribeReload:e}=ee(),i=a.useRef(t);i.current=t,a.useEffect(()=>e(()=>{i.current?.()}),[e])}export{Ke as S,Ae as a,Fe as b,J as i,ee as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a5 as c,ak as r,K as l,V as d,q as f,e as S}from"./index-
|
|
1
|
+
import{c as u,a5 as c,ak as r,K as l,V as d,q as f,e as S}from"./index-Bm1K3DQC.js";function C(){const e=u.c(7),{org:i}=c(),n=r();let a;e[0]!==i.id?(a=l.secrets(i.id),e[0]=i.id,e[1]=a):a=e[1];let t;e[2]!==n?(t=async()=>await n.call("SECRET_LIST",{}),e[2]=n,e[3]=t):t=e[3];let s;e[4]!==a||e[5]!==t?(s={queryKey:a,staleTime:6e4,queryFn:t},e[4]=a,e[5]=t,e[6]=s):s=e[6];const{data:o}=d(s);return o.secrets}function m(){const e=u.c(8),{org:i}=c(),n=r(),a=f();let t;e[0]!==n?(t=async y=>await n.call("SECRET_CREATE",{...y}),e[0]=n,e[1]=t):t=e[1];let s;e[2]!==i||e[3]!==a?(s=()=>{a.invalidateQueries({queryKey:l.secrets(i.id)})},e[2]=i,e[3]=a,e[4]=s):s=e[4];let o;return e[5]!==t||e[6]!==s?(o={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=o):o=e[7],S(o)}export{m as a,C as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{i5 as ee,bf as te,c as M,b as re,r as b,j as i,m as se,be as oe,D as ie,v as le,x as ne,I as ce,w as ae}from"./index-Bm1K3DQC.js";import{a as F,e as G}from"./UserSquare-CUiDUhHX.js";import{b as fe}from"./agent-icon-Y_Y2D-pt.js";import{i as ue}from"./SearchMd-MlMwcObI.js";import{J as Y,K as de,O as _}from"./parse-sections-B7udX6Q3.js";import{a2 as me,k as ve,an as pe}from"./blocks-tab-states-Dedoi43j.js";import{aV as X,c as xe,u as he,m as ge,A as we}from"./site-editor-toast-CRsx3bHf.js";import{u as Se}from"./use-voice-input-CelDzfp5.js";function be(r){return r.schema?.definitions??r.schema?.$defs??{}}function Z(r,e){const t=be(e),s=t[btoa(r)];if(!s)return[];const o=[s];if(Array.isArray(s.allOf)){const n=s.allOf.find(l=>typeof l.$ref=="string")?.$ref;if(typeof n=="string"){const l=t[n.replace("#/definitions/","")];l&&o.push(l)}}return o}function je(r,e){for(const t of Z(r,e)){const s=typeof t.image=="string"?t.image:void 0;if(s?.includes("{{{"))return s}}function ze(r,e){if(!e)return;const t=ee(r,te(e));if(!t)return;const s=je(t.resolveType,e);if(!s)return;const o=de(s,t.data);if(o)return Y(o)}function ye(r,e){for(const t of Z(r,e)){const s=typeof t.image=="string"?t.image:void 0;if(s&&!s.includes("{{"))return Y(s)}}const Ne=12,z=new Set,q=new Set;function Re(){for(const r of q)r()}function Pe(r){return z.has(r)?!0:z.size>=Ne?!1:(z.add(r),!0)}function Q(r){z.delete(r)&&Re()}function Ie(r){return q.add(r),()=>{q.delete(r)}}function Te(r,e){const t=b.useRef(!1),[s,o]=b.useState(!1),n=b.useRef(null),l=b.useRef(null),f=b.useRef(null),c=b.useRef(r);c.current=r;const[p]=b.useState(()=>{const u=()=>{f.current?.(),f.current=null},d=()=>t.current?!0:Pe(e)?(t.current=!0,o(!0),u(),!0):!1;return a=>{if(l.current=a,n.current&&(n.current.disconnect(),n.current=null),u(),!a){t.current&&(Q(e),t.current=!1,o(!1));return}queueMicrotask(()=>{if(l.current!==a)return;const w=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!d()&&!f.current&&(f.current=Ie(()=>{l.current===a&&d()}));return}u(),t.current&&(Q(e),t.current=!1,o(!1))},{root:c.current.current,rootMargin:"160px 0px"});w.observe(a),n.current=w})}});return{ref:p,iframeActive:s}}function Ce(r){const e=M.c(9),{previewUrl:t,title:s,scrollRootRef:o,slotId:n}=r,{ref:l,iframeActive:f}=Te(o,n),[c,p]=b.useState(!1),u=_()?G:F;let d;e[0]!==u||e[1]!==f||e[2]!==c||e[3]!==t||e[4]!==s?(d=f?i.jsxs(i.Fragment,{children:[!c&&i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:i.jsx(u,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),i.jsx("iframe",{src:t,title:`Preview ${s}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>p(!0)})]}):i.jsx("div",{className:"flex h-full items-center justify-center",children:i.jsx(u,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=u,e[1]=f,e[2]=c,e[3]=t,e[4]=s,e[5]=d):d=e[5];let a;return e[6]!==l||e[7]!==d?(a=i.jsx("div",{ref:l,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:d}),e[6]=l,e[7]=d,e[8]=a):a=e[8],a}function Ue(r){const e=M.c(3),{image:t}=r,s=_()?G:F;let o;return e[0]!==s||e[1]!==t?(o=i.jsx("div",{className:"relative flex aspect-[16/10] w-full items-center justify-center overflow-hidden bg-muted/40",children:t?i.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:"h-full w-full object-cover"}):i.jsx(s,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=s,e[1]=t,e[2]=o):o=e[2],o}function ke(r){const e=M.c(28),{entry:t,previewUrl:s,image:o,scrollRootRef:n,onSelect:l}=r,c=_()?t.isSavedBlock?fe:G:F,p=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let u;e[0]!==p?(u=se("group flex flex-col overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-lg))] border bg-card text-left transition-colors shadow-edge","hover:border-primary/40 hover:bg-accent",p),e[0]=p,e[1]=u):u=e[1];let d;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==o||e[5]!==s||e[6]!==n?(d=s?i.jsx(Ce,{previewUrl:s,title:t.title,scrollRootRef:n,slotId:t.resolveType}):i.jsx(Ue,{image:o}),e[2]=t.resolveType,e[3]=t.title,e[4]=o,e[5]=s,e[6]=n,e[7]=d):d=e[7];let a;e[8]!==t.isSavedBlock?(a=t.isSavedBlock?{color:oe}:void 0,e[8]=t.isSavedBlock,e[9]=a):a=e[9];let w;e[10]!==c||e[11]!==a?(w=i.jsx(c,{className:"h-4 w-4 shrink-0",style:a}),e[10]=c,e[11]=a,e[12]=w):w=e[12];let m;e[13]!==t.title?(m=i.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[13]=t.title,e[14]=m):m=e[14];let x;e[15]!==t.description?(x=t.description&&i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[15]=t.description,e[16]=x):x=e[16];let h;e[17]!==m||e[18]!==x?(h=i.jsxs("div",{className:"min-w-0 flex-1",children:[m,x]}),e[17]=m,e[18]=x,e[19]=h):h=e[19];let g;e[20]!==w||e[21]!==h?(g=i.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[w,h]}),e[20]=w,e[21]=h,e[22]=g):g=e[22];let S;return e[23]!==l||e[24]!==u||e[25]!==d||e[26]!==g?(S=i.jsxs("button",{type:"button",onClick:l,className:u,children:[d,g]}),e[23]=l,e[24]=u,e[25]=d,e[26]=g,e[27]=S):S=e[27],S}function Ve(r){const e=M.c(51),{open:t,onOpenChange:s,meta:o,decofile:n,previewBaseUrl:l,onSelect:f}=r,c=re(),[p,u]=b.useState(""),[d,a]=b.useState(t),w=b.useRef(null);t!==d&&(a(t),t&&u(""));let m,x,h,g,S,y,N,R,j,P,I;if(e[0]!==n||e[1]!==o||e[2]!==s||e[3]!==f||e[4]!==t||e[5]!==l||e[6]!==p||e[7]!==c){const V=t&&o&&n?me(o,n):[],W=o?ve(o):"",H=n?pe(n):void 0,J=new Map;if(t&&W&&l)for(const v of V)J.set(v.resolveType,X(l,W,v.previewBlock,H));const E=p.trim().toLowerCase(),K=E?V.filter(v=>v.title.toLowerCase().includes(E)||v.resolveType.toLowerCase().includes(E)||v.description?.toLowerCase().includes(E)):V;x=ie,P=t,I=s,m=le,N="top-3 right-3",R="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let k;e[19]!==c?(k=c("sectionsEditor.addSectionModal.title"),e[19]=c,e[20]=k):k=e[20];let A;e[21]!==k?(A=i.jsx(ne,{children:k}),e[21]=k,e[22]=A):A=e[22];let $;e[23]===Symbol.for("react.memo_cache_sentinel")?($=i.jsx(ue,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=$):$=e[23];let D;e[24]===Symbol.for("react.memo_cache_sentinel")?(D=v=>u(v.target.value),e[24]=D):D=e[24];let B;e[25]!==c?(B=c("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=c,e[26]=B):B=e[26];let L;e[27]!==p||e[28]!==B?(L=i.jsxs("div",{className:"relative pt-2",children:[$,i.jsx(ce,{value:p,onChange:D,placeholder:B,className:"h-9 pl-8"})]}),e[27]=p,e[28]=B,e[29]=L):L=e[29],e[30]!==A||e[31]!==L?(j=i.jsxs(ae,{className:"shrink-0 border-b px-4 py-3 text-left",children:[A,L]}),e[30]=A,e[31]=L,e[32]=j):j=e[32],S=w,y="min-h-0 flex-1 overflow-y-auto",h="p-4",g=K.length===0?i.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:c("sectionsEditor.addSectionModal.noSectionsFound")}):i.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:K.map(v=>i.jsx(ke,{entry:v,scrollRootRef:w,previewUrl:l?J.get(v.resolveType)??X(l,W,v.previewBlock,H):null,image:l||!o?void 0:ye(v.resolveType,o),onSelect:()=>f(v)},v.resolveType))}),e[0]=n,e[1]=o,e[2]=s,e[3]=f,e[4]=t,e[5]=l,e[6]=p,e[7]=c,e[8]=m,e[9]=x,e[10]=h,e[11]=g,e[12]=S,e[13]=y,e[14]=N,e[15]=R,e[16]=j,e[17]=P,e[18]=I}else m=e[8],x=e[9],h=e[10],g=e[11],S=e[12],y=e[13],N=e[14],R=e[15],j=e[16],P=e[17],I=e[18];let T;e[33]!==h||e[34]!==g?(T=i.jsx("div",{className:h,children:g}),e[33]=h,e[34]=g,e[35]=T):T=e[35];let C;e[36]!==T||e[37]!==S||e[38]!==y?(C=i.jsx("div",{ref:S,className:y,children:T}),e[36]=T,e[37]=S,e[38]=y,e[39]=C):C=e[39];let U;e[40]!==m||e[41]!==C||e[42]!==N||e[43]!==R||e[44]!==j?(U=i.jsxs(m,{closeButtonClassName:N,className:R,children:[j,C]}),e[40]=m,e[41]=C,e[42]=N,e[43]=R,e[44]=j,e[45]=U):U=e[45];let O;return e[46]!==x||e[47]!==U||e[48]!==P||e[49]!==I?(O=i.jsx(x,{open:P,onOpenChange:I,children:U}),e[46]=x,e[47]=U,e[48]=P,e[49]=I,e[50]=O):O=e[50],O}function We(r){const e=M.c(4),{previewServerUrl:t,runtime:s}=Se(r.virtualMcpId),{url:o}=xe(r.virtualMcpId),n=he(r.virtualMcpId,r.branch),l=s==="cms";if(ge(n))return null;if(o)return o;let f;return e[0]!==l||e[1]!==r.sandboxUrl||e[2]!==t?(f=we({sandboxUrl:r.sandboxUrl,previewServerUrl:t,fastPreviewActive:l}),e[0]=l,e[1]=r.sandboxUrl,e[2]=t,e[3]=f):f=e[3],f}export{Ve as A,ze as g,Z as s,We as u};
|
package/dist/client/assets/{use-sidebar-collapsed-D8frxAVL.js → use-sidebar-collapsed-SkR6IFg9.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as y,c as j,j as o,m as C,cs as A,ct as R,a7 as H,bQ as L,b as V,d as W,a5 as F}from"./index-B0M6fld0.js";import{m as q}from"./use-chat-layout-state-SKM2dTYC.js";import{M as Q}from"./agent-icon-2MzErGc_.js";import{b as G,a as E,T as P,c as z}from"./tooltip-DUgZeaAs.js";import{T as J}from"./toolbar-icon-button-DLb2L87M.js";import{g as K}from"./shell-layout-B_Je98M9.js";import{u as U}from"./use-mobile-JxzmRS3O.js";import{b as X,c as Y,S as Z,d as ee,a as te}from"./sheet-C5Vpqn4B.js";const se="15rem",ae="18rem",ie="4.5rem",D=y.createContext(null);function I(){const s=y.useContext(D);if(!s)throw new Error("useSidebar must be used within a SidebarProvider.");return s}function ge(s){const e=j.c(19),{children:t,defaultOpen:a,open:i,onOpenChange:n}=s,d=a===void 0?!1:a,r=U(),[l,c]=y.useState(d),[b,v]=y.useState(!1),u=i!==void 0,f=u?i:l;let h;e[0]!==u||e[1]!==n?(h=M=>{u||c(M),n?.(M)},e[0]=u,e[1]=n,e[2]=h):h=e[2];const p=h;let w;e[3]!==r||e[4]!==f||e[5]!==p?(w=()=>{r?v(ne):p(!f)},e[3]=r,e[4]=f,e[5]=p,e[6]=w):w=e[6];const N=w,x=f?"expanded":"collapsed";let m;e[7]!==r||e[8]!==f||e[9]!==b||e[10]!==p||e[11]!==x||e[12]!==N?(m={state:x,open:f,setOpen:p,isMobile:r,openMobile:b,setOpenMobile:v,toggleSidebar:N},e[7]=r,e[8]=f,e[9]=b,e[10]=p,e[11]=x,e[12]=N,e[13]=m):m=e[13];const S=m;let g;e[14]!==t?(g=o.jsx(G,{delayDuration:0,children:t}),e[14]=t,e[15]=g):g=e[15];let T;return e[16]!==S||e[17]!==g?(T=o.jsx(D.Provider,{value:S,children:g}),e[16]=S,e[17]=g,e[18]=T):T=e[18],T}function ne(s){return!s}function ve(s){const e=j.c(14);let t,a,i,n;e[0]!==s?({className:a,style:n,children:t,...i}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n):(t=e[1],a=e[2],i=e[3],n=e[4]);let d;e[5]!==n?(d={"--sidebar-width":se,"--sidebar-width-icon":ie,...n},e[5]=n,e[6]=d):d=e[6];const r=d;let l;e[7]!==a?(l=C("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=l):l=e[8];let c;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==l?(c=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:l,...i,children:t}),e[9]=t,e[10]=i,e[11]=r,e[12]=l,e[13]=c):c=e[13],c}function Se(s){const e=j.c(36);let t,a,i,n,d;e[0]!==s?({side:n,variant:d,className:a,children:t,...i}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n,e[5]=d):(t=e[1],a=e[2],i=e[3],n=e[4],d=e[5]);const r=n===void 0?"left":n,l=d===void 0?"sidebar":d,{isMobile:c,state:b,openMobile:v,setOpenMobile:u}=I();if(c){let T;e[6]===Symbol.for("react.memo_cache_sentinel")?(T={"--sidebar-width":ae},e[6]=T):T=e[6];let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsxs(Y,{className:"sr-only",children:[o.jsx(Z,{children:"Sidebar"}),o.jsx(ee,{children:"Displays the mobile sidebar."})]}),e[7]=M):M=e[7];let $;e[8]!==t?($=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let _;e[10]!==r||e[11]!==$?(_=o.jsxs(te,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:T,side:r,children:[M,$]}),e[10]=r,e[11]=$,e[12]=_):_=e[12];let B;return e[13]!==v||e[14]!==i||e[15]!==u||e[16]!==_?(B=o.jsx(X,{open:v,onOpenChange:u,...i,children:_}),e[13]=v,e[14]=i,e[15]=u,e[16]=_,e[17]=B):B=e[17],B}const f=b==="expanded",h=f?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let p;e[18]!==h?(p=C("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",h),e[18]=h,e[19]=p):p=e[19];const w=f?void 0:"icon",N=f?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let x;e[20]!==a||e[21]!==N?(x=C("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",N,a),e[20]=a,e[21]=N,e[22]=x):x=e[22];let m;e[23]!==t?(m=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=m):m=e[24];let S;e[25]!==i||e[26]!==x||e[27]!==m?(S=o.jsx("div",{"data-slot":"sidebar-container",className:x,...i,children:m}),e[25]=i,e[26]=x,e[27]=m,e[28]=S):S=e[28];let g;return e[29]!==r||e[30]!==b||e[31]!==p||e[32]!==w||e[33]!==S||e[34]!==l?(g=o.jsx("div",{className:p,"data-state":b,"data-collapsible":w,"data-variant":l,"data-side":r,"data-slot":"sidebar",children:S}),e[29]=r,e[30]=b,e[31]=p,e[32]=w,e[33]=S,e[34]=l,e[35]=g):g=e[35],g}function je(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("main",{"data-slot":"sidebar-inset",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function we(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ne(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Te(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ce(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}const le=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm focus-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm group-data-[state=collapsed]/sidebar:size-8! group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function ye(s){const e=j.c(28);let t,a,i,n,d,r,l;e[0]!==s?({asChild:i,isActive:n,variant:d,size:r,tooltip:l,className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n,e[5]=d,e[6]=r,e[7]=l):(t=e[1],a=e[2],i=e[3],n=e[4],d=e[5],r=e[6],l=e[7]);const c=i===void 0?!1:i,b=n===void 0?!1:n,v=d===void 0?"default":d,u=r===void 0?"default":r,f=c?A:"button",{isMobile:h}=I();let p;e[8]!==t||e[9]!==u||e[10]!==v?(p=C(le({variant:v,size:u}),t),e[8]=t,e[9]=u,e[10]=v,e[11]=p):p=e[11];let w;e[12]!==f||e[13]!==b||e[14]!==a||e[15]!==u||e[16]!==p?(w=o.jsx(f,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":b,className:p,...a}),e[12]=f,e[13]=b,e[14]=a,e[15]=u,e[16]=p,e[17]=w):w=e[17];const N=w;if(!l)return N;if(typeof l=="string"){let g;e[18]!==l?(g={children:l},e[18]=l,e[19]=g):g=e[19],l=g}let x;e[20]!==N?(x=o.jsx(P,{asChild:!0,children:N}),e[20]=N,e[21]=x):x=e[21];let m;e[22]!==h||e[23]!==l?(m=o.jsx(E,{side:"right",align:"center",hidden:h,...l}),e[22]=h,e[23]=l,e[24]=m):m=e[24];let S;return e[25]!==x||e[26]!==m?(S=o.jsxs(z,{children:[x,m]}),e[25]=x,e[26]=m,e[27]=S):S=e[27],S}function re(){const s=j.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},s[0]=e):e=s[0],!!H(e)}const O=y.createContext(null);function Me(s){const e=j.c(5),{children:t}=s,[a,i]=y.useState(null);let n;e[0]!==a?(n={target:a,setTarget:i},e[0]=a,e[1]=n):n=e[1];let d;return e[2]!==t||e[3]!==n?(d=o.jsx(O,{value:n,children:t}),e[2]=t,e[3]=n,e[4]=d):d=e[4],d}function oe(){const s=y.use(O);if(!s)throw new Error("Sidebar thread controls require a Layout");return s}function k(s){const e=j.c(17),{open:t,onToggle:a}=s,i=V(),{isMobile:n,setOpenMobile:d}=I(),r=t?"page.closeThread":"page.openThread";let l;e[0]!==i||e[1]!==r?(l=i(r),e[0]=i,e[1]=r,e[2]=l):l=e[2];const c=l;let b;e[3]!==n||e[4]!==a||e[5]!==d?(b=()=>{a(),n&&d(!1)},e[3]=n,e[4]=a,e[5]=d,e[6]=b):b=e[6];let v;e[7]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx(Q,{size:16}),e[7]=v):v=e[7];let u;e[8]!==c||e[9]!==t||e[10]!==b?(u=o.jsx(P,{asChild:!0,children:o.jsx(J,{"aria-label":c,"aria-pressed":t,active:t,className:"size-7 shrink-0 group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:size-8",onClick:b,children:v})}),e[8]=c,e[9]=t,e[10]=b,e[11]=u):u=e[11];let f;e[12]!==c?(f=o.jsx(E,{side:"right",children:c}),e[12]=c,e[13]=f):f=e[13];let h;return e[14]!==u||e[15]!==f?(h=o.jsxs(z,{children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16],h}function $e(s){const e=j.c(3),t=y.use(O);let a;return e[0]!==s||e[1]!==t?(a=t?.target?L.createPortal(o.jsx(k,{...s}),t.target):null,e[0]=s,e[1]=t,e[2]=a):a=e[2],a}function _e(){const s=j.c(11),{setTarget:e}=oe(),t=re(),{isMobile:a}=I(),i=W(),{org:n}=F(),{openSidePanel:d}=K();let r;s[0]!==e?(r=o.jsx("div",{ref:e,className:"peer/thread-button contents empty:hidden"}),s[0]=e,s[1]=r):r=s[1];let l;s[2]!==t||s[3]!==a||s[4]!==i||s[5]!==d||s[6]!==n?(l=o.jsx("div",{className:"hidden peer-empty/thread-button:contents",children:o.jsx(k,{open:!1,onToggle:()=>{t?i({to:"/$org/home",params:{org:n.slug},search:{sidepanel:!0,mainpanel:!a}}):a?i({to:".",search:de,replace:!0}):d()}})}),s[2]=t,s[3]=a,s[4]=i,s[5]=d,s[6]=n,s[7]=l):l=s[7];let c;return s[8]!==r||s[9]!==l?(c=o.jsxs(o.Fragment,{children:[r,l]}),s[8]=r,s[9]=l,s[10]=c):c=s[10],c}function de(s){return{...s,...q("chat")}}function Ie(){const{state:s,isMobile:e}=I();return s==="collapsed"&&!e}export{ye as S,Te as a,Ce as b,I as c,we as d,_e as e,Ne as f,Se as g,re as h,ge as i,ve as j,Me as k,je as l,$e as m,Ie as u};
|
|
1
|
+
import{r as y,c as j,j as o,m as C,cv as A,cw as R,a7 as H,bQ as L,b as V,d as W,a5 as F}from"./index-Bm1K3DQC.js";import{m as q}from"./use-chat-layout-state-DCbtnqWd.js";import{M as Q}from"./agent-icon-Y_Y2D-pt.js";import{b as G,a as E,T as P,c as z}from"./tooltip-D0Aro8zv.js";import{T as J}from"./toolbar-icon-button-kyI973z_.js";import{g as K}from"./shell-layout-DS0Ie03r.js";import{u as U}from"./use-mobile-BDHJ5g4G.js";import{b as X,c as Y,S as Z,d as ee,a as te}from"./sheet-CX7jm_if.js";const se="15rem",ae="18rem",ie="4.5rem",D=y.createContext(null);function I(){const s=y.useContext(D);if(!s)throw new Error("useSidebar must be used within a SidebarProvider.");return s}function ge(s){const e=j.c(19),{children:t,defaultOpen:a,open:i,onOpenChange:n}=s,d=a===void 0?!1:a,r=U(),[l,c]=y.useState(d),[b,v]=y.useState(!1),u=i!==void 0,f=u?i:l;let h;e[0]!==u||e[1]!==n?(h=M=>{u||c(M),n?.(M)},e[0]=u,e[1]=n,e[2]=h):h=e[2];const p=h;let w;e[3]!==r||e[4]!==f||e[5]!==p?(w=()=>{r?v(ne):p(!f)},e[3]=r,e[4]=f,e[5]=p,e[6]=w):w=e[6];const N=w,x=f?"expanded":"collapsed";let m;e[7]!==r||e[8]!==f||e[9]!==b||e[10]!==p||e[11]!==x||e[12]!==N?(m={state:x,open:f,setOpen:p,isMobile:r,openMobile:b,setOpenMobile:v,toggleSidebar:N},e[7]=r,e[8]=f,e[9]=b,e[10]=p,e[11]=x,e[12]=N,e[13]=m):m=e[13];const S=m;let g;e[14]!==t?(g=o.jsx(G,{delayDuration:0,children:t}),e[14]=t,e[15]=g):g=e[15];let T;return e[16]!==S||e[17]!==g?(T=o.jsx(D.Provider,{value:S,children:g}),e[16]=S,e[17]=g,e[18]=T):T=e[18],T}function ne(s){return!s}function ve(s){const e=j.c(14);let t,a,i,n;e[0]!==s?({className:a,style:n,children:t,...i}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n):(t=e[1],a=e[2],i=e[3],n=e[4]);let d;e[5]!==n?(d={"--sidebar-width":se,"--sidebar-width-icon":ie,...n},e[5]=n,e[6]=d):d=e[6];const r=d;let l;e[7]!==a?(l=C("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=l):l=e[8];let c;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==l?(c=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:l,...i,children:t}),e[9]=t,e[10]=i,e[11]=r,e[12]=l,e[13]=c):c=e[13],c}function Se(s){const e=j.c(36);let t,a,i,n,d;e[0]!==s?({side:n,variant:d,className:a,children:t,...i}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n,e[5]=d):(t=e[1],a=e[2],i=e[3],n=e[4],d=e[5]);const r=n===void 0?"left":n,l=d===void 0?"sidebar":d,{isMobile:c,state:b,openMobile:v,setOpenMobile:u}=I();if(c){let T;e[6]===Symbol.for("react.memo_cache_sentinel")?(T={"--sidebar-width":ae},e[6]=T):T=e[6];let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsxs(Y,{className:"sr-only",children:[o.jsx(Z,{children:"Sidebar"}),o.jsx(ee,{children:"Displays the mobile sidebar."})]}),e[7]=M):M=e[7];let $;e[8]!==t?($=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let _;e[10]!==r||e[11]!==$?(_=o.jsxs(te,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:T,side:r,children:[M,$]}),e[10]=r,e[11]=$,e[12]=_):_=e[12];let B;return e[13]!==v||e[14]!==i||e[15]!==u||e[16]!==_?(B=o.jsx(X,{open:v,onOpenChange:u,...i,children:_}),e[13]=v,e[14]=i,e[15]=u,e[16]=_,e[17]=B):B=e[17],B}const f=b==="expanded",h=f?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let p;e[18]!==h?(p=C("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",h),e[18]=h,e[19]=p):p=e[19];const w=f?void 0:"icon",N=f?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let x;e[20]!==a||e[21]!==N?(x=C("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",N,a),e[20]=a,e[21]=N,e[22]=x):x=e[22];let m;e[23]!==t?(m=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=m):m=e[24];let S;e[25]!==i||e[26]!==x||e[27]!==m?(S=o.jsx("div",{"data-slot":"sidebar-container",className:x,...i,children:m}),e[25]=i,e[26]=x,e[27]=m,e[28]=S):S=e[28];let g;return e[29]!==r||e[30]!==b||e[31]!==p||e[32]!==w||e[33]!==S||e[34]!==l?(g=o.jsx("div",{className:p,"data-state":b,"data-collapsible":w,"data-variant":l,"data-side":r,"data-slot":"sidebar",children:S}),e[29]=r,e[30]=b,e[31]=p,e[32]=w,e[33]=S,e[34]=l,e[35]=g):g=e[35],g}function je(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("main",{"data-slot":"sidebar-inset",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function we(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ne(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Te(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ce(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}const le=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm focus-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm group-data-[state=collapsed]/sidebar:size-8! group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function ye(s){const e=j.c(28);let t,a,i,n,d,r,l;e[0]!==s?({asChild:i,isActive:n,variant:d,size:r,tooltip:l,className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n,e[5]=d,e[6]=r,e[7]=l):(t=e[1],a=e[2],i=e[3],n=e[4],d=e[5],r=e[6],l=e[7]);const c=i===void 0?!1:i,b=n===void 0?!1:n,v=d===void 0?"default":d,u=r===void 0?"default":r,f=c?A:"button",{isMobile:h}=I();let p;e[8]!==t||e[9]!==u||e[10]!==v?(p=C(le({variant:v,size:u}),t),e[8]=t,e[9]=u,e[10]=v,e[11]=p):p=e[11];let w;e[12]!==f||e[13]!==b||e[14]!==a||e[15]!==u||e[16]!==p?(w=o.jsx(f,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":b,className:p,...a}),e[12]=f,e[13]=b,e[14]=a,e[15]=u,e[16]=p,e[17]=w):w=e[17];const N=w;if(!l)return N;if(typeof l=="string"){let g;e[18]!==l?(g={children:l},e[18]=l,e[19]=g):g=e[19],l=g}let x;e[20]!==N?(x=o.jsx(P,{asChild:!0,children:N}),e[20]=N,e[21]=x):x=e[21];let m;e[22]!==h||e[23]!==l?(m=o.jsx(E,{side:"right",align:"center",hidden:h,...l}),e[22]=h,e[23]=l,e[24]=m):m=e[24];let S;return e[25]!==x||e[26]!==m?(S=o.jsxs(z,{children:[x,m]}),e[25]=x,e[26]=m,e[27]=S):S=e[27],S}function re(){const s=j.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},s[0]=e):e=s[0],!!H(e)}const O=y.createContext(null);function Me(s){const e=j.c(5),{children:t}=s,[a,i]=y.useState(null);let n;e[0]!==a?(n={target:a,setTarget:i},e[0]=a,e[1]=n):n=e[1];let d;return e[2]!==t||e[3]!==n?(d=o.jsx(O,{value:n,children:t}),e[2]=t,e[3]=n,e[4]=d):d=e[4],d}function oe(){const s=y.use(O);if(!s)throw new Error("Sidebar thread controls require a Layout");return s}function k(s){const e=j.c(17),{open:t,onToggle:a}=s,i=V(),{isMobile:n,setOpenMobile:d}=I(),r=t?"page.closeThread":"page.openThread";let l;e[0]!==i||e[1]!==r?(l=i(r),e[0]=i,e[1]=r,e[2]=l):l=e[2];const c=l;let b;e[3]!==n||e[4]!==a||e[5]!==d?(b=()=>{a(),n&&d(!1)},e[3]=n,e[4]=a,e[5]=d,e[6]=b):b=e[6];let v;e[7]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx(Q,{size:16}),e[7]=v):v=e[7];let u;e[8]!==c||e[9]!==t||e[10]!==b?(u=o.jsx(P,{asChild:!0,children:o.jsx(J,{"aria-label":c,"aria-pressed":t,active:t,className:"size-7 shrink-0 group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:size-8",onClick:b,children:v})}),e[8]=c,e[9]=t,e[10]=b,e[11]=u):u=e[11];let f;e[12]!==c?(f=o.jsx(E,{side:"right",children:c}),e[12]=c,e[13]=f):f=e[13];let h;return e[14]!==u||e[15]!==f?(h=o.jsxs(z,{children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16],h}function $e(s){const e=j.c(3),t=y.use(O);let a;return e[0]!==s||e[1]!==t?(a=t?.target?L.createPortal(o.jsx(k,{...s}),t.target):null,e[0]=s,e[1]=t,e[2]=a):a=e[2],a}function _e(){const s=j.c(11),{setTarget:e}=oe(),t=re(),{isMobile:a}=I(),i=W(),{org:n}=F(),{openSidePanel:d}=K();let r;s[0]!==e?(r=o.jsx("div",{ref:e,className:"peer/thread-button contents empty:hidden"}),s[0]=e,s[1]=r):r=s[1];let l;s[2]!==t||s[3]!==a||s[4]!==i||s[5]!==d||s[6]!==n?(l=o.jsx("div",{className:"hidden peer-empty/thread-button:contents",children:o.jsx(k,{open:!1,onToggle:()=>{t?i({to:"/$org/home",params:{org:n.slug},search:{sidepanel:!0,mainpanel:!a}}):a?i({to:".",search:de,replace:!0}):d()}})}),s[2]=t,s[3]=a,s[4]=i,s[5]=d,s[6]=n,s[7]=l):l=s[7];let c;return s[8]!==r||s[9]!==l?(c=o.jsxs(o.Fragment,{children:[r,l]}),s[8]=r,s[9]=l,s[10]=c):c=s[10],c}function de(s){return{...s,...q("chat")}}function Ie(){const{state:s,isMobile:e}=I();return s==="collapsed"&&!e}export{ye as S,Te as a,Ce as b,I as c,we as d,_e as e,Ne as f,Se as g,re as h,ge as i,ve as j,Me as k,je as l,$e as m,Ie as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a5 as f,ak as y,i as m,q as g,e as T,K as l,t as E}from"./index-
|
|
1
|
+
import{c as u,a5 as f,ak as y,i as m,q as g,e as T,K as l,t as E}from"./index-Bm1K3DQC.js";function K(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function p(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function C(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function M(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function A(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{p as a,C as b,M as c,A as d,K as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as O,f,i as S,K as _,al as R,a5 as i,ak as l}from"./index-
|
|
1
|
+
import{c as O,f,i as S,K as _,al as R,a5 as i,ak as l}from"./index-Bm1K3DQC.js";const K=["TASK_BOARD_OPERATION","TASK_BOARD_REWORK","TASK_BOARD_DELIVERY","TASK_BOARD_SPRINTS","TASK_BOARD_STUCK","TASK_BOARD_COST","TASK_BOARD_ERRORS","TASK_BOARD_TENANTS"];function B(){const t=O.c(8),o=f({strict:!1}).org??"";let e;t[0]!==o?(e=_.taskBoardAdminOrgs(o),t[0]=o,t[1]=e):e=t[1];const s=!!o;let n;t[2]!==o?(n=()=>R(o,"TASK_BOARD_ADMIN_ORG_LIST",{}),t[2]=o,t[3]=n):n=t[3];let c;return t[4]!==e||t[5]!==s||t[6]!==n?(c={queryKey:e,enabled:s,queryFn:n,staleTime:3e5},t[4]=e,t[5]=s,t[6]=n,t[7]=c):c=t[7],S(c)}function y(t,o){const e=O.c(14),{locator:s}=i(),n=l();let c;e[0]!==s||e[1]!==o.from||e[2]!==o.org||e[3]!==o.project||e[4]!==o.to||e[5]!==t?(c=_.taskBoardAnalytics(s,t,o.org??"",o.project??"",o.from,o.to),e[0]=s,e[1]=o.from,e[2]=o.org,e[3]=o.project,e[4]=o.to,e[5]=t,e[6]=c):c=e[6];let T;e[7]!==o||e[8]!==n||e[9]!==t?(T=()=>n.call(t,o),e[7]=o,e[8]=n,e[9]=t,e[10]=T):T=e[10];let A;return e[11]!==c||e[12]!==T?(A={queryKey:c,queryFn:T},e[11]=c,e[12]=T,e[13]=A):A=e[13],S(A)}function D(t,o){const e=O.c(15),{locator:s}=i(),n=l();let c;e[0]!==o||e[1]!==s||e[2]!==t.from||e[3]!==t.org||e[4]!==t.project||e[5]!==t.to?(c=_.taskBoardOperationTasks(s,t.org??"",t.project??"",t.from,t.to,o??""),e[0]=o,e[1]=s,e[2]=t.from,e[3]=t.org,e[4]=t.project,e[5]=t.to,e[6]=c):c=e[6];const T=o!==null;let A;e[7]!==o||e[8]!==t||e[9]!==n?(A=()=>n.call("TASK_BOARD_OPERATION_TASKS",{...t,drill:o??""}),e[7]=o,e[8]=t,e[9]=n,e[10]=A):A=e[10];let u;return e[11]!==c||e[12]!==T||e[13]!==A?(u={queryKey:c,enabled:T,queryFn:A},e[11]=c,e[12]=T,e[13]=A,e[14]=u):u=e[14],S(u)}export{K as A,y as a,D as b,B as u};
|
package/dist/client/assets/{use-task-board-events-WJfNx3Vw.js → use-task-board-events-DFXBTSz0.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"./task-board-
|
|
1
|
+
import{a as m}from"./task-board-CmZ-3pYa.js";import{r as e}from"./index-Bm1K3DQC.js";import{t as g}from"./watch-sse-pool-ECs_hZYZ.js";const p=()=>0;function v(E){const{orgSlug:r,enabled:t=!0,onUpdate:u,onDelete:c,onResync:o}=E,a=e.useRef(u);a.current=u;const f=e.useRef(c);f.current=c;const d=e.useRef(o);d.current=o;const s=e.useRef(null),R=e.useRef(t),i=e.useRef(r);(!s.current||R.current!==t||i.current!==r)&&(R.current=t,i.current=r,s.current=b=>{if(!t||!r)return()=>{};const S=l=>{let n;try{n=JSON.parse(l.data)}catch{return}n.data&&(l.type===m?f.current?.(n.data.id):a.current(n.data)),b()};return g.subscribe(r,S,()=>d.current?.())}),e.useSyncExternalStore(s.current,p,p)}export{v as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as y,at as w,c as h,a5 as R,ak as k,q as T,i as O,K as A}from"./index-
|
|
1
|
+
import{r as y,at as w,c as h,a5 as R,ak as k,q as T,i as O,K as A}from"./index-Bm1K3DQC.js";import{c as B}from"./watch-sse-pool-ECs_hZYZ.js";const P=()=>0;function C(e){const{orgSlug:t,itemId:s,onPrs:r}=e,o=y.useRef(r);o.current=r;const l=y.useRef(null),a=y.useRef(""),i=`${t}:${s??""}`;(!l.current||a.current!==i)&&(a.current=i,l.current=u=>{if(!t||!s)return()=>{};const d=c=>{let n;try{n=JSON.parse(c.data)}catch{return}n.data?.id!==s||!Array.isArray(n.data.prs)||(o.current(n.data.prs),u())};return B.subscribe(t,d)}),y.useSyncExternalStore(l.current,P,P)}const E=1440*60*1e3,D=40;function g(e){try{const t=window.localStorage.getItem(w.taskBoardPrs(e));return t?JSON.parse(t):{}}catch{return{}}}function L(e){const t=Date.now(),s=Object.entries(e).filter(([,r])=>t-r.updatedAt<=E);for(s.sort(([,r],[,o])=>r.updatedAt-o.updatedAt);s.length>D;)s.shift();return Object.fromEntries(s)}function _(e,t){if(typeof window>"u")return null;const s=g(e)[t];return!s||Date.now()-s.updatedAt>E?null:s}function b(e,t,s){if(!(typeof window>"u"))try{const r=g(e);r[t]={data:s,updatedAt:Date.now()},window.localStorage.setItem(w.taskBoardPrs(e),JSON.stringify(L(r)))}catch{}}const v=6e4,K=2e3,N=e=>e.state===null;function j(e){const t=h.c(25),{org:s,locator:r}=R(),o=k(),l=T();let a;t[0]!==e||t[1]!==r||t[2]!==l?(a=S=>{l.setQueryData(A.taskBoardItemPrs(r,e??""),S)},t[0]=e,t[1]=r,t[2]=l,t[3]=a):a=t[3];let i;t[4]!==e||t[5]!==s.slug||t[6]!==a?(i={orgSlug:s.slug,itemId:e,onPrs:a},t[4]=e,t[5]=s.slug,t[6]=a,t[7]=i):i=t[7],C(i);let u;t[8]!==e||t[9]!==r?(u=A.taskBoardItemPrs(r,e??""),t[8]=e,t[9]=r,t[10]=u):u=t[10];const d=!!e;let c,n;t[11]!==e||t[12]!==r?(c=()=>e?_(r,e)?.data??void 0:void 0,n=()=>e?_(r,e)?.updatedAt:void 0,t[11]=e,t[12]=r,t[13]=c,t[14]=n):(c=t[13],n=t[14]);let f;t[15]!==e||t[16]!==r||t[17]!==o?(f=async()=>{const{prs:S}=await o.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:e});return b(r,e,S),S},t[15]=e,t[16]=r,t[17]=o,t[18]=f):f=t[18];let p;return t[19]!==u||t[20]!==d||t[21]!==c||t[22]!==n||t[23]!==f?(p={queryKey:u,enabled:d,refetchInterval:M,initialData:c,initialDataUpdatedAt:n,queryFn:f},t[19]=u,t[20]=d,t[21]=c,t[22]=n,t[23]=f,t[24]=p):p=t[24],O(p)}function M(e){return e.state.data?.some(N)?K:v}export{j as u};
|
package/dist/client/assets/{use-task-board-items-CmUbMz1G.js → use-task-board-items-CNR2hq29.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as j,b as Y}from"./config-
|
|
1
|
+
import{i as j,b as Y}from"./config-CZ7Pg3zP.js";import{c as P,a5 as U,q as W,K as E,ak as G,i as V,b as X,e as R,E as Z,t as H}from"./index-Bm1K3DQC.js";import{u as tt}from"./use-task-board-events-DFXBTSz0.js";import{u as et}from"./use-decopilot-events-DSC6YnSZ.js";const st=new Set(["post_deploy_validation","done"]),at=new Set(["done","archived"]);function J(t){if(!st.has(t.status)||!t.updatedAt)return null;const r=Date.parse(t.updatedAt);return Number.isNaN(r)?null:r}function ft(t,r){return t.filter(s=>(J(s)??-1/0)>=r).length}function mt(t,r){return t.filter(s=>at.has(s.status)?!1:r&&s.assigneeId===r?!0:j(s)||Y(s)).sort((s,e)=>(s.updatedAt??"").localeCompare(e.updatedAt??""))}function yt(t){return j(t)?"answer":Y(t)?"review":"assigned"}function ht(t){const r=[];for(const s of t)for(const e of s.threads)e.status==="in_progress"&&r.push({threadId:e.threadId,taskId:s.id,taskTitle:s.title,runTitle:e.title,startedAt:e.createdAt});return r.sort((s,e)=>e.startedAt.localeCompare(s.startedAt))}const gt=14;function At(t,r,s=Date.now()){const e=new Array(r).fill(0);for(const a of t){const n=J(a);if(n===null)continue;const i=r-1-Math.floor(Math.max(0,s-n)/864e5);i>=0&&i<r&&(e[i]+=1)}return e}function It(t,r,s=Date.now()){const e=new Array(r).fill(0);for(const a of t)for(const n of a.threads){const i=Date.parse(n.lastActiveAt);if(Number.isNaN(i))continue;const o=r-1-Math.floor(Math.max(0,s-i)/864e5);o>=0&&o<r&&(e[o]+=1)}return e}function rt(t){const r=new Date(t);r.setDate(1),r.setHours(0,0,0,0);const s=r.getTime();return{since:s,days:Math.floor((t-s)/864e5)+1}}function St(t,r=Date.now()){const{since:s,days:e}=rt(r),a=new Array(e).fill(0);for(const n of t)for(const i of n.threads){const o=Date.parse(i.lastActiveAt);if(Number.isNaN(o)||o<s||o>r)continue;const m=Math.floor((o-s)/864e5);m>=0&&m<e&&(a[m]+=i.costUsd??0)}return a}function Tt(t){return t<=0?"$0":t>=1e3?`$${(t/1e3).toFixed(1)}k`:t>=10?`$${Math.round(t)}`:`$${t.toFixed(2)}`}function nt(t,r){return{queryKey:E.taskBoardItems(t),refetchInterval:6e4,queryFn:async()=>{const{items:s,demoFrozenItemIds:e}=await r.call("TASK_BOARD_ITEM_LIST",{});return{items:s,demoFrozenItemIds:e}}}}function ot(){const t=P.c(21),{org:r,locator:s}=U(),e=W();let a;t[0]!==s?(a=E.taskBoardItems(s),t[0]=s,t[1]=a):a=t[1];const n=a;let i;t[2]!==s||t[3]!==e||t[4]!==n?(i=y=>{e.cancelQueries({queryKey:n}),e.setQueryData(n,d=>d&&{...d,items:d.items.some(c=>c.id===y.id)?d.items.map(c=>c.id===y.id?y:c):[y,...d.items]}),e.invalidateQueries({queryKey:E.taskBoardActivity(s,y.id)}),e.invalidateQueries({queryKey:E.taskBoardComments(s,y.id)})},t[2]=s,t[3]=e,t[4]=n,t[5]=i):i=t[5];let o,m;t[6]!==e||t[7]!==n?(o=()=>{e.invalidateQueries({queryKey:n})},m=y=>{e.cancelQueries({queryKey:n}),e.setQueryData(n,d=>d&&{...d,items:d.items.filter(c=>c.id!==y)})},t[6]=e,t[7]=n,t[8]=o,t[9]=m):(o=t[8],m=t[9]);let u;t[10]!==r.slug||t[11]!==i||t[12]!==o||t[13]!==m?(u={orgSlug:r.slug,onUpdate:i,onResync:o,onDelete:m},t[10]=r.slug,t[11]=i,t[12]=o,t[13]=m,t[14]=u):u=t[14],tt(u);let h;t[15]!==e||t[16]!==n?(h=y=>{const d=y.subject,c=y.data.status;e.cancelQueries({queryKey:n}),e.setQueryData(n,g=>g&&{...g,items:g.items.map(A=>A.threads.some(S=>S.threadId===d)?{...A,threads:A.threads.map(S=>S.threadId===d?{...S,status:c}:S)}:A)});const D=e.getQueryData(n)?.items.some(g=>g.threads.some(A=>A.threadId===d));c==="failed"&&D&&e.invalidateQueries({queryKey:n})},t[15]=e,t[16]=n,t[17]=h):h=t[17];let T;t[18]!==r.slug||t[19]!==h?(T={orgSlug:r.slug,onTaskStatus:h},t[18]=r.slug,t[19]=h,t[20]=T):T=t[20],et(T)}function Dt(){const t=P.c(13),{locator:r}=U(),s=G();let e;t[0]!==r||t[1]!==s?(e=nt(r,s),t[0]=r,t[1]=s,t[2]=e):e=t[2];const a=V(e);ot();let n;t[3]!==a.data?.items?(n=a.data?.items??[],t[3]=a.data?.items,t[4]=n):n=t[4];let i;t[5]!==a.data?.demoFrozenItemIds?(i=a.data?.demoFrozenItemIds??[],t[5]=a.data?.demoFrozenItemIds,t[6]=i):i=t[6];let o;return t[7]!==a.error||t[8]!==a.isFetching||t[9]!==a.isLoading||t[10]!==n||t[11]!==i?(o={items:n,demoFrozenItemIds:i,isLoading:a.isLoading,isFetching:a.isFetching,error:a.error},t[7]=a.error,t[8]=a.isFetching,t[9]=a.isLoading,t[10]=n,t[11]=i,t[12]=o):o=t[12],o}function Et(){const t=P.c(70),{org:r,locator:s}=U(),e=G(),a=W(),n=X();let i;t[0]!==s?(i=E.taskBoardItems(s),t[0]=s,t[1]=i):i=t[1];const o=i;let m;t[2]!==a||t[3]!==o?(m=()=>a.invalidateQueries({queryKey:o}),t[2]=a,t[3]=o,t[4]=m):m=t[4];const u=m;let h;t[5]!==e?(h=l=>e.call("TASK_BOARD_ITEM_CREATE",l),t[5]=e,t[6]=h):h=t[6];let T;t[7]!==u||t[8]!==h?(T={mutationFn:h,onSuccess:u},t[7]=u,t[8]=h,t[9]=T):T=t[9];const y=R(T);let d;t[10]!==e?(d=l=>e.call("TASK_BOARD_ITEM_UPDATE",l),t[10]=e,t[11]=d):d=t[11];let c;t[12]!==a||t[13]!==o?(c=async l=>{await a.cancelQueries({queryKey:o});const I=a.getQueryData(o);return a.setQueryData(o,f=>f&&{...f,items:f.items.map(O=>O.id===l.id?{...O,...l,...l.status!==void 0&&l.status!==O.status&&{statusSince:new Date().toISOString()}}:O)}),{previous:I}},t[12]=a,t[13]=o,t[14]=c):c=t[14];let D;t[15]!==r?(D=(l,I)=>{I.status==="done"&&Z("task_marked_done",{organization_id:r.id,task_board_item_id:I.id})},t[15]=r,t[16]=D):D=t[16];let g;t[17]!==a||t[18]!==o?(g=(l,I,f)=>{f?.previous&&a.setQueryData(o,f.previous)},t[17]=a,t[18]=o,t[19]=g):g=t[19];let A;t[20]!==u||t[21]!==s||t[22]!==a?(A=(l,I,f)=>{u(),a.invalidateQueries({queryKey:E.taskBoardActivity(s,f.id)})},t[20]=u,t[21]=s,t[22]=a,t[23]=A):A=t[23];let S;t[24]!==d||t[25]!==c||t[26]!==D||t[27]!==g||t[28]!==A?(S={mutationFn:d,onMutate:c,onSuccess:D,onError:g,onSettled:A},t[24]=d,t[25]=c,t[26]=D,t[27]=g,t[28]=A,t[29]=S):S=t[29];const $=R(S);let k;t[30]!==e?(k=l=>e.call("TASK_BOARD_ITEM_DELETE",{id:l}),t[30]=e,t[31]=k):k=t[31];let _;t[32]!==u||t[33]!==n?(_=l=>{H.error(l instanceof Error&&l.message?l.message:n("taskBoard.taskBoard.deleteError")),u()},t[32]=u,t[33]=n,t[34]=_):_=t[34];let w;t[35]!==u||t[36]!==k||t[37]!==_?(w={mutationFn:k,onSuccess:u,onError:_},t[35]=u,t[36]=k,t[37]=_,t[38]=w):w=t[38];const x=R(w);let B;t[39]!==e?(B=async l=>{const I=await Promise.allSettled(l.map(f=>e.call("TASK_BOARD_ITEM_DELETE",{id:f})));return{total:l.length,failed:I.filter(it).length}},t[39]=e,t[40]=B):B=t[40];let p,Q;t[41]!==n?(p=l=>{const{total:I,failed:f}=l;f!==0&&H.error(n("taskBoard.taskBoard.deleteBulkError",{failed:String(f),total:String(I)}))},Q=()=>H.error(n("taskBoard.taskBoard.deleteError")),t[41]=n,t[42]=p,t[43]=Q):(p=t[42],Q=t[43]);let q;t[44]!==u||t[45]!==B||t[46]!==p||t[47]!==Q?(q={mutationFn:B,onSuccess:p,onError:Q,onSettled:u},t[44]=u,t[45]=B,t[46]=p,t[47]=Q,t[48]=q):q=t[48];const L=R(q);let M;t[49]!==e?(M=l=>e.call("TASK_BOARD_ITEM_UPDATE",l),t[49]=e,t[50]=M):M=t[50];let v;t[51]!==u||t[52]!==M?(v={mutationFn:M,onSuccess:u},t[51]=u,t[52]=M,t[53]=v):v=t[53];const b=R(v);let F;t[54]!==e?(F=l=>e.call("TASK_BOARD_ITEM_RERUN",l),t[54]=e,t[55]=F):F=t[55];let K;t[56]!==u||t[57]!==s||t[58]!==a?(K=(l,I,f)=>{u(),a.invalidateQueries({queryKey:E.taskBoardActivity(s,f.id)})},t[56]=u,t[57]=s,t[58]=a,t[59]=K):K=t[59];let N;t[60]!==F||t[61]!==K?(N={mutationFn:F,onSettled:K},t[60]=F,t[61]=K,t[62]=N):N=t[62];const z=R(N);let C;return t[63]!==y||t[64]!==b||t[65]!==x||t[66]!==L||t[67]!==z||t[68]!==$?(C={create:y,update:$,remove:x,removeMany:L,link:b,rerun:z},t[63]=y,t[64]=b,t[65]=x,t[66]=L,t[67]=z,t[68]=$,t[69]=C):C=t[69],C}function it(t){return t.status==="rejected"}export{gt as R,nt as a,yt as b,At as c,It as d,St as e,Tt as f,Dt as g,Et as h,ht as r,ft as s,mt as t,ot as u};
|
package/dist/client/assets/{use-task-board-prompts-Dsyp8Uoc.js → use-task-board-prompts-CY0qH8TO.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as $,b as D,m as z,j as o,a5 as q,L as Z,as as ee,d as te,r as U,hc as se,B as ae,t as oe,ak as V,K as F,i as ne,q as Y,e as le}from"./index-B0M6fld0.js";import{s as W}from"./Plus-DD-WVS1P.js";import{s as re}from"./XClose-BBI2UlVL.js";import{i as ie}from"./Zap-B1DyovfK.js";import{B as K}from"./badge-CR0zmQ24.js";import{f as ce,a as ue,c as de,C as me,e as fe,b as pe}from"./command-BNUAVYAm.js";import{I as xe}from"./icon-button-igm3gACH.js";import{c as ge,a as he,b as je,S as ke}from"./sheet-C5Vpqn4B.js";import{j as ve}from"./use-org-fs-BTZCBdxy.js";import{a as Ne}from"./use-project-scope-BLJIcw6l.js";import{u as J,a as _e}from"./use-automations-IINULJEn.js";import{C as ye}from"./task-board-r7mBQBfA.js";import{b as be}from"./watch-sse-pool-CwQVaju9.js";const Be={triage:"taskBoard.columnGuide.triage",todo:"taskBoard.columnGuide.todo",in_progress:"taskBoard.columnGuide.inProgress",in_review:"taskBoard.columnGuide.inReview",qa:"taskBoard.columnGuide.qa",customer_approval:"taskBoard.columnGuide.customerApproval",ready_for_deployment:"taskBoard.columnGuide.readyForDeployment",post_deploy_validation:"taskBoard.columnGuide.postDeployValidation",done:null,archived:null};function Se(t){const e=ye.find(a=>a===t);return e?Be[e]:null}function He(t){const e=$.c(7),{data:a}=J();let s;e[0]!==a?(s=a??[],e[0]=a,e[1]=s):s=e[1];let n;if(e[2]!==t||e[3]!==s){let l;e[5]!==t?(l=r=>r.board_triggers.some(c=>c.type==="board_column_transition"&&c.column_key===t),e[5]=t,e[6]=l):l=e[6],n=s.filter(l),e[2]=t,e[3]=s,e[4]=n}else n=e[4];return n}function Q(t){switch(t){case"board_column_transition":return 0;case"board_pr_ready":return 1;case"board_pr_merged":return 2;default:return t}}function Ce(t){switch(t){case"board_column_transition":return"taskBoard.columnRules.starter.board_column_transition";case"board_pr_ready":return"taskBoard.columnRules.starter.board_pr_ready";case"board_pr_merged":return"taskBoard.columnRules.starter.board_pr_merged";default:return t}}function Re(t){const e=$.c(5),{data:a}=J();let s;if(e[0]!==t||e[1]!==a){let n;e[3]!==t?(n=l=>{const r=l.board_triggers.find(c=>c.column_key===t);return r?[{automation:l,starter:r.type}]:[]},e[3]=t,e[4]=n):n=e[4],s=(a??[]).flatMap(n).sort(Ae),e[0]=t,e[1]=a,e[2]=s}else s=e[2];return s}function Ae(t,e){return Number(e.automation.active)-Number(t.automation.active)||Q(t.starter)-Q(e.starter)}function Ue(t){const e=$.c(37),{columnKey:a,label:s,icon:n,iconClassName:l,open:r,onOpenChange:c}=t,i=D(),{org:u}=q(),g=Se(a),d=Re(a);let h;e[0]!==c?(h=()=>c(!1),e[0]=c,e[1]=h):h=e[1];const x=h,R=je,_=he,O="w-full gap-0 sm:max-w-md",y=void 0,b=Te,B=ge,A="gap-1 pb-0";let m;e[2]!==n||e[3]!==l?(m=n&&o.jsx(n,{size:16,className:l}),e[2]=n,e[3]=l,e[4]=m):m=e[4];let j;e[5]!==s||e[6]!==m?(j=o.jsxs(ke,{className:"flex items-center gap-2",children:[m,s]}),e[5]=s,e[6]=m,e[7]=j):j=e[7];const T=g&&o.jsx("p",{className:"surface-inset mt-2 rounded-xl px-3.5 py-3 text-sm leading-relaxed text-foreground",children:i(g)});let k;e[8]!==B||e[9]!==j||e[10]!==T?(k=o.jsxs(B,{className:A,children:[j,T]}),e[8]=B,e[9]=j,e[10]=T,e[11]=k):k=e[11];let v;e[12]!==i?(v=i("taskBoard.columnRules.runsHere"),e[12]=i,e[13]=v):v=e[13];let S;e[14]!==v?(S=o.jsx("h3",{className:"text-meta",children:v}),e[14]=v,e[15]=S):S=e[15];let f;e[16]!==d||e[17]!==a||e[18]!==s||e[19]!==x||e[20]!==u||e[21]!==i?(f=d.length===0?o.jsx(we,{columnKey:a,label:s,onLeave:x}):o.jsx("div",{className:"surface divide-y divide-border",children:d.map(L=>{const{automation:N,starter:E}=L;return o.jsxs(Z,{to:"/$org/projects/$agentId/automations/$automationId",params:{org:u.slug,agentId:N.virtual_mcp_id,automationId:N.id},onClick:x,className:"group flex items-center gap-3 px-3 py-2.5 transition-colors hover:bg-accent/50",children:[o.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[o.jsx("span",{className:z("truncate text-sm",N.active?"text-foreground":"text-muted-foreground"),children:N.name}),o.jsx("span",{className:"text-meta",children:N.active?i(Ce(E)):i("taskBoard.columnRules.off")})]}),o.jsx(ee,{size:14,className:"shrink-0 text-muted-foreground transition-colors group-hover:text-foreground"})]},N.id)})}),e[16]=d,e[17]=a,e[18]=s,e[19]=x,e[20]=u,e[21]=i,e[22]=f):f=e[22];let w;e[23]!==S||e[24]!==f?(w=o.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto px-4 pt-6 pb-6",children:[S,f]}),e[23]=S,e[24]=f,e[25]=w):w=e[25];let I;e[26]!==_||e[27]!==w||e[28]!==y||e[29]!==b||e[30]!==k?(I=o.jsxs(_,{className:O,"aria-describedby":y,onOpenAutoFocus:b,children:[k,w]}),e[26]=_,e[27]=w,e[28]=y,e[29]=b,e[30]=k,e[31]=I):I=e[31];let C;return e[32]!==R||e[33]!==r||e[34]!==c||e[35]!==I?(C=o.jsx(R,{open:r,onOpenChange:c,children:I}),e[32]=R,e[33]=r,e[34]=c,e[35]=I,e[36]=C):C=e[36],C}function Te(t){return t.preventDefault()}function we({columnKey:t,label:e,onLeave:a}){const s=D(),{org:n}=q(),{project:l}=Ne(),r=te(),{create:c,triggerAdd:i}=_e(),[u,g]=U.useState(!1),d=l?.id??se(n.id),h=async()=>{g(!0);try{const x=await c.mutateAsync({name:s("taskBoard.columnRules.newAutomationName",{column:e}),messages:[],models:{tier:"smart"},active:!1,virtual_mcp_id:d});await i.mutateAsync({automation_id:x.id,type:"board_column_transition",column_key:t}),a(),r({to:"/$org/projects/$agentId/automations/$automationId",params:{org:n.slug,agentId:d,automationId:x.id}})}catch{oe.error(s("taskBoard.columnRules.newAutomationFailed"))}finally{g(!1)}};return o.jsxs("div",{className:"surface flex flex-col items-center gap-3 px-6 py-8 text-center",children:[o.jsx("span",{className:"flex size-9 items-center justify-center rounded-full bg-muted text-muted-foreground",children:o.jsx(ie,{size:16})}),o.jsx("p",{className:"text-sm font-medium text-foreground",children:s("taskBoard.columnRules.noAutomations")}),o.jsxs(ae,{variant:"outline",size:"sm",className:"gap-1.5",disabled:u,onClick:h,children:[o.jsx(W,{size:14}),s("taskBoard.columnRules.newAutomation")]})]})}const Ie=[];function Ve(t){const e=$.c(71),{value:a,onChange:s,inherited:n,fill:l}=t,r=n===void 0?Ie:n,c=l===void 0?!1:l,i=D(),u=ve();let g;e[0]!==u.data?(g=f=>u.data?.find(w=>w.id===f)?.name??f,e[0]=u.data,e[1]=g):g=e[1];const d=g;let h,x,R,_,O,y,b,B,A,m;if(e[2]!==u.data||e[3]!==c||e[4]!==r||e[5]!==d||e[6]!==s||e[7]!==i||e[8]!==a){let f;e[19]!==r||e[20]!==a?(f=p=>!p.disableModelInvocation&&!a.includes(p.id)&&!r.includes(p.id),e[19]=r,e[20]=a,e[21]=f):f=e[21];const w=(u.data??[]).filter(f);if(e[22]!==c||e[23]!==r||e[24]!==d||e[25]!==s||e[26]!==i||e[27]!==a){let p;e[30]!==r?(p=P=>!r.includes(P),e[30]=r,e[31]=p):p=e[31];const M=a.filter(p),G=c&&"min-h-0 flex-1";e[32]!==G?(m=z("flex flex-col gap-2",G),e[32]=G,e[33]=m):m=e[33],_=M.length>0&&o.jsx("div",{className:"flex flex-wrap gap-1.5",children:M.map(P=>o.jsxs(K,{variant:"outline",className:"py-0 pr-0 pl-2",children:[d(P),o.jsx(xe,{label:i("taskBoard.columnRules.removeSkill",{skill:d(P)}),onClick:()=>s(a.filter(X=>X!==P)),className:"size-5 text-muted-foreground",children:o.jsx(re,{size:12})})]},P))}),e[22]=c,e[23]=r,e[24]=d,e[25]=s,e[26]=i,e[27]=a,e[28]=_,e[29]=m}else _=e[28],m=e[29];R=ce;const I=c&&"min-h-0 flex-1";e[34]!==I?(B=z("h-auto border",I),e[34]=I,e[35]=B):B=e[35];let C;e[36]!==i?(C=i("taskBoard.columnRules.searchSkills"),e[36]=i,e[37]=C):C=e[37],e[38]!==C?(A=o.jsx(ue,{placeholder:C,className:"h-9"}),e[38]=C,e[39]=A):A=e[39],x=de;const L=c?"max-h-none flex-1":"max-h-56";e[40]!==L?(y=z(L),e[40]=L,e[41]=y):y=e[41];let N;e[42]!==i?(N=i("taskBoard.columnRules.noSkills"),e[42]=i,e[43]=N):N=e[43],e[44]!==N?(b=o.jsx(me,{children:N}),e[44]=N,e[45]=b):b=e[45],h=fe;let E;e[46]!==s||e[47]!==a?(E=p=>o.jsxs(pe,{value:`${p.name} ${p.id}`,onSelect:()=>s([...a,p.id]),children:[o.jsx(W,{size:14,className:"shrink-0 text-muted-foreground"}),o.jsxs("span",{className:"flex min-w-0 flex-col",children:[o.jsx("span",{className:"truncate text-sm",children:p.name}),p.description&&o.jsx("span",{className:"text-meta line-clamp-1",children:p.description})]})]},p.id),e[46]=s,e[47]=a,e[48]=E):E=e[48],O=w.map(E),e[2]=u.data,e[3]=c,e[4]=r,e[5]=d,e[6]=s,e[7]=i,e[8]=a,e[9]=h,e[10]=x,e[11]=R,e[12]=_,e[13]=O,e[14]=y,e[15]=b,e[16]=B,e[17]=A,e[18]=m}else h=e[9],x=e[10],R=e[11],_=e[12],O=e[13],y=e[14],b=e[15],B=e[16],A=e[17],m=e[18];let j;e[49]!==h||e[50]!==O?(j=o.jsx(h,{children:O}),e[49]=h,e[50]=O,e[51]=j):j=e[51];let T;e[52]!==x||e[53]!==j||e[54]!==y||e[55]!==b?(T=o.jsxs(x,{className:y,children:[b,j]}),e[52]=x,e[53]=j,e[54]=y,e[55]=b,e[56]=T):T=e[56];let k;e[57]!==R||e[58]!==T||e[59]!==B||e[60]!==A?(k=o.jsxs(R,{className:B,children:[A,T]}),e[57]=R,e[58]=T,e[59]=B,e[60]=A,e[61]=k):k=e[61];let v;e[62]!==r||e[63]!==d||e[64]!==i?(v=r.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-meta",children:i("taskBoard.columnRules.inheritedHint")}),o.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.map(f=>o.jsx(K,{variant:"muted",children:d(f)},f))})]}),e[62]=r,e[63]=d,e[64]=i,e[65]=v):v=e[65];let S;return e[66]!==_||e[67]!==k||e[68]!==v||e[69]!==m?(S=o.jsxs("div",{className:m,children:[_,k,v]}),e[66]=_,e[67]=k,e[68]=v,e[69]=m,e[70]=S):S=e[70],S}function Ye(){const t=$.c(7),{org:e}=q(),a=V();let s;t[0]!==e.id?(s=F.taskBoardPrompts(e.id),t[0]=e.id,t[1]=s):s=t[1];let n;t[2]!==a?(n=async()=>(await a.call("TASK_BOARD_PROMPT_LIST",{})).prompts,t[2]=a,t[3]=n):n=t[3];let l;return t[4]!==s||t[5]!==n?(l={queryKey:s,staleTime:6e4,queryFn:n},t[4]=s,t[5]=n,t[6]=l):l=t[6],ne(l)}function We(){const t=$.c(8),{org:e}=q(),a=V(),s=Y();let n;t[0]!==a?(n=async c=>{const{columnKey:i,rules:u}=c;if(u){const g=u.prompt.trim();await(g||u.skills.length?a.call("TASK_BOARD_PROMPT_UPSERT",{columnKey:i,prompt:g,skills:u.skills}):a.call("TASK_BOARD_PROMPT_DELETE",{columnKey:i}))}},t[0]=a,t[1]=n):n=t[1];let l;t[2]!==e||t[3]!==s?(l=()=>s.invalidateQueries({queryKey:F.taskBoardPrompts(e.id)}),t[2]=e,t[3]=s,t[4]=l):l=t[4];let r;return t[5]!==n||t[6]!==l?(r={mutationFn:n,onSettled:l},t[5]=n,t[6]=l,t[7]=r):r=t[7],le(r)}const H=()=>0;function Je(){const t=$.c(6),{org:e}=q(),a=Y();let s;t[0]!==e.id||t[1]!==a?(s=()=>a.invalidateQueries({queryKey:F.taskBoardPrompts(e.id)}),t[0]=e.id,t[1]=a,t[2]=s):s=t[2];const n=s;let l;t[3]!==e.slug||t[4]!==n?(l=()=>be.subscribe(e.slug,n,n),t[3]=e.slug,t[4]=n,t[5]=l):l=t[5];const r=l;U.useSyncExternalStore(r,H,H)}export{Ue as C,Ve as S,He as a,Ye as b,Se as c,We as d,Je as u};
|
|
1
|
+
import{c as $,b as D,m as z,j as o,a5 as q,L as Z,as as ee,d as te,r as U,he as se,B as ae,t as oe,ak as V,K as F,i as ne,q as Y,e as le}from"./index-Bm1K3DQC.js";import{s as W}from"./Plus-BHZhJmPA.js";import{s as re}from"./XClose-__KXghgf.js";import{i as ie}from"./Zap-CyJKtBha.js";import{B as K}from"./badge-CyMXYtjo.js";import{f as ce,a as ue,c as de,C as me,e as fe,b as pe}from"./command-COt4WQ5b.js";import{I as xe}from"./icon-button-DVB6vEll.js";import{c as ge,a as he,b as je,S as ke}from"./sheet-CX7jm_if.js";import{j as ve}from"./use-org-fs-Du2G3PF4.js";import{a as Ne}from"./use-project-scope-BkidtyNv.js";import{u as J,a as _e}from"./use-automations-DxfaOtys.js";import{C as ye}from"./task-board-CmZ-3pYa.js";import{b as be}from"./watch-sse-pool-ECs_hZYZ.js";const Be={triage:"taskBoard.columnGuide.triage",todo:"taskBoard.columnGuide.todo",in_progress:"taskBoard.columnGuide.inProgress",in_review:"taskBoard.columnGuide.inReview",qa:"taskBoard.columnGuide.qa",customer_approval:"taskBoard.columnGuide.customerApproval",ready_for_deployment:"taskBoard.columnGuide.readyForDeployment",post_deploy_validation:"taskBoard.columnGuide.postDeployValidation",done:null,archived:null};function Se(t){const e=ye.find(a=>a===t);return e?Be[e]:null}function He(t){const e=$.c(7),{data:a}=J();let s;e[0]!==a?(s=a??[],e[0]=a,e[1]=s):s=e[1];let n;if(e[2]!==t||e[3]!==s){let l;e[5]!==t?(l=r=>r.board_triggers.some(c=>c.type==="board_column_transition"&&c.column_key===t),e[5]=t,e[6]=l):l=e[6],n=s.filter(l),e[2]=t,e[3]=s,e[4]=n}else n=e[4];return n}function Q(t){switch(t){case"board_column_transition":return 0;case"board_pr_ready":return 1;case"board_pr_merged":return 2;default:return t}}function Ce(t){switch(t){case"board_column_transition":return"taskBoard.columnRules.starter.board_column_transition";case"board_pr_ready":return"taskBoard.columnRules.starter.board_pr_ready";case"board_pr_merged":return"taskBoard.columnRules.starter.board_pr_merged";default:return t}}function Re(t){const e=$.c(5),{data:a}=J();let s;if(e[0]!==t||e[1]!==a){let n;e[3]!==t?(n=l=>{const r=l.board_triggers.find(c=>c.column_key===t);return r?[{automation:l,starter:r.type}]:[]},e[3]=t,e[4]=n):n=e[4],s=(a??[]).flatMap(n).sort(Ae),e[0]=t,e[1]=a,e[2]=s}else s=e[2];return s}function Ae(t,e){return Number(e.automation.active)-Number(t.automation.active)||Q(t.starter)-Q(e.starter)}function Ue(t){const e=$.c(37),{columnKey:a,label:s,icon:n,iconClassName:l,open:r,onOpenChange:c}=t,i=D(),{org:u}=q(),g=Se(a),d=Re(a);let h;e[0]!==c?(h=()=>c(!1),e[0]=c,e[1]=h):h=e[1];const x=h,R=je,_=he,O="w-full gap-0 sm:max-w-md",y=void 0,b=Te,B=ge,A="gap-1 pb-0";let m;e[2]!==n||e[3]!==l?(m=n&&o.jsx(n,{size:16,className:l}),e[2]=n,e[3]=l,e[4]=m):m=e[4];let j;e[5]!==s||e[6]!==m?(j=o.jsxs(ke,{className:"flex items-center gap-2",children:[m,s]}),e[5]=s,e[6]=m,e[7]=j):j=e[7];const T=g&&o.jsx("p",{className:"surface-inset mt-2 rounded-xl px-3.5 py-3 text-sm leading-relaxed text-foreground",children:i(g)});let k;e[8]!==B||e[9]!==j||e[10]!==T?(k=o.jsxs(B,{className:A,children:[j,T]}),e[8]=B,e[9]=j,e[10]=T,e[11]=k):k=e[11];let v;e[12]!==i?(v=i("taskBoard.columnRules.runsHere"),e[12]=i,e[13]=v):v=e[13];let S;e[14]!==v?(S=o.jsx("h3",{className:"text-meta",children:v}),e[14]=v,e[15]=S):S=e[15];let f;e[16]!==d||e[17]!==a||e[18]!==s||e[19]!==x||e[20]!==u||e[21]!==i?(f=d.length===0?o.jsx(we,{columnKey:a,label:s,onLeave:x}):o.jsx("div",{className:"surface divide-y divide-border",children:d.map(L=>{const{automation:N,starter:E}=L;return o.jsxs(Z,{to:"/$org/projects/$agentId/automations/$automationId",params:{org:u.slug,agentId:N.virtual_mcp_id,automationId:N.id},onClick:x,className:"group flex items-center gap-3 px-3 py-2.5 transition-colors hover:bg-accent/50",children:[o.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[o.jsx("span",{className:z("truncate text-sm",N.active?"text-foreground":"text-muted-foreground"),children:N.name}),o.jsx("span",{className:"text-meta",children:N.active?i(Ce(E)):i("taskBoard.columnRules.off")})]}),o.jsx(ee,{size:14,className:"shrink-0 text-muted-foreground transition-colors group-hover:text-foreground"})]},N.id)})}),e[16]=d,e[17]=a,e[18]=s,e[19]=x,e[20]=u,e[21]=i,e[22]=f):f=e[22];let w;e[23]!==S||e[24]!==f?(w=o.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto px-4 pt-6 pb-6",children:[S,f]}),e[23]=S,e[24]=f,e[25]=w):w=e[25];let I;e[26]!==_||e[27]!==w||e[28]!==y||e[29]!==b||e[30]!==k?(I=o.jsxs(_,{className:O,"aria-describedby":y,onOpenAutoFocus:b,children:[k,w]}),e[26]=_,e[27]=w,e[28]=y,e[29]=b,e[30]=k,e[31]=I):I=e[31];let C;return e[32]!==R||e[33]!==r||e[34]!==c||e[35]!==I?(C=o.jsx(R,{open:r,onOpenChange:c,children:I}),e[32]=R,e[33]=r,e[34]=c,e[35]=I,e[36]=C):C=e[36],C}function Te(t){return t.preventDefault()}function we({columnKey:t,label:e,onLeave:a}){const s=D(),{org:n}=q(),{project:l}=Ne(),r=te(),{create:c,triggerAdd:i}=_e(),[u,g]=U.useState(!1),d=l?.id??se(n.id),h=async()=>{g(!0);try{const x=await c.mutateAsync({name:s("taskBoard.columnRules.newAutomationName",{column:e}),messages:[],models:{tier:"smart"},active:!1,virtual_mcp_id:d});await i.mutateAsync({automation_id:x.id,type:"board_column_transition",column_key:t}),a(),r({to:"/$org/projects/$agentId/automations/$automationId",params:{org:n.slug,agentId:d,automationId:x.id}})}catch{oe.error(s("taskBoard.columnRules.newAutomationFailed"))}finally{g(!1)}};return o.jsxs("div",{className:"surface flex flex-col items-center gap-3 px-6 py-8 text-center",children:[o.jsx("span",{className:"flex size-9 items-center justify-center rounded-full bg-muted text-muted-foreground",children:o.jsx(ie,{size:16})}),o.jsx("p",{className:"text-sm font-medium text-foreground",children:s("taskBoard.columnRules.noAutomations")}),o.jsxs(ae,{variant:"outline",size:"sm",className:"gap-1.5",disabled:u,onClick:h,children:[o.jsx(W,{size:14}),s("taskBoard.columnRules.newAutomation")]})]})}const Ie=[];function Ve(t){const e=$.c(71),{value:a,onChange:s,inherited:n,fill:l}=t,r=n===void 0?Ie:n,c=l===void 0?!1:l,i=D(),u=ve();let g;e[0]!==u.data?(g=f=>u.data?.find(w=>w.id===f)?.name??f,e[0]=u.data,e[1]=g):g=e[1];const d=g;let h,x,R,_,O,y,b,B,A,m;if(e[2]!==u.data||e[3]!==c||e[4]!==r||e[5]!==d||e[6]!==s||e[7]!==i||e[8]!==a){let f;e[19]!==r||e[20]!==a?(f=p=>!p.disableModelInvocation&&!a.includes(p.id)&&!r.includes(p.id),e[19]=r,e[20]=a,e[21]=f):f=e[21];const w=(u.data??[]).filter(f);if(e[22]!==c||e[23]!==r||e[24]!==d||e[25]!==s||e[26]!==i||e[27]!==a){let p;e[30]!==r?(p=P=>!r.includes(P),e[30]=r,e[31]=p):p=e[31];const M=a.filter(p),G=c&&"min-h-0 flex-1";e[32]!==G?(m=z("flex flex-col gap-2",G),e[32]=G,e[33]=m):m=e[33],_=M.length>0&&o.jsx("div",{className:"flex flex-wrap gap-1.5",children:M.map(P=>o.jsxs(K,{variant:"outline",className:"py-0 pr-0 pl-2",children:[d(P),o.jsx(xe,{label:i("taskBoard.columnRules.removeSkill",{skill:d(P)}),onClick:()=>s(a.filter(X=>X!==P)),className:"size-5 text-muted-foreground",children:o.jsx(re,{size:12})})]},P))}),e[22]=c,e[23]=r,e[24]=d,e[25]=s,e[26]=i,e[27]=a,e[28]=_,e[29]=m}else _=e[28],m=e[29];R=ce;const I=c&&"min-h-0 flex-1";e[34]!==I?(B=z("h-auto border",I),e[34]=I,e[35]=B):B=e[35];let C;e[36]!==i?(C=i("taskBoard.columnRules.searchSkills"),e[36]=i,e[37]=C):C=e[37],e[38]!==C?(A=o.jsx(ue,{placeholder:C,className:"h-9"}),e[38]=C,e[39]=A):A=e[39],x=de;const L=c?"max-h-none flex-1":"max-h-56";e[40]!==L?(y=z(L),e[40]=L,e[41]=y):y=e[41];let N;e[42]!==i?(N=i("taskBoard.columnRules.noSkills"),e[42]=i,e[43]=N):N=e[43],e[44]!==N?(b=o.jsx(me,{children:N}),e[44]=N,e[45]=b):b=e[45],h=fe;let E;e[46]!==s||e[47]!==a?(E=p=>o.jsxs(pe,{value:`${p.name} ${p.id}`,onSelect:()=>s([...a,p.id]),children:[o.jsx(W,{size:14,className:"shrink-0 text-muted-foreground"}),o.jsxs("span",{className:"flex min-w-0 flex-col",children:[o.jsx("span",{className:"truncate text-sm",children:p.name}),p.description&&o.jsx("span",{className:"text-meta line-clamp-1",children:p.description})]})]},p.id),e[46]=s,e[47]=a,e[48]=E):E=e[48],O=w.map(E),e[2]=u.data,e[3]=c,e[4]=r,e[5]=d,e[6]=s,e[7]=i,e[8]=a,e[9]=h,e[10]=x,e[11]=R,e[12]=_,e[13]=O,e[14]=y,e[15]=b,e[16]=B,e[17]=A,e[18]=m}else h=e[9],x=e[10],R=e[11],_=e[12],O=e[13],y=e[14],b=e[15],B=e[16],A=e[17],m=e[18];let j;e[49]!==h||e[50]!==O?(j=o.jsx(h,{children:O}),e[49]=h,e[50]=O,e[51]=j):j=e[51];let T;e[52]!==x||e[53]!==j||e[54]!==y||e[55]!==b?(T=o.jsxs(x,{className:y,children:[b,j]}),e[52]=x,e[53]=j,e[54]=y,e[55]=b,e[56]=T):T=e[56];let k;e[57]!==R||e[58]!==T||e[59]!==B||e[60]!==A?(k=o.jsxs(R,{className:B,children:[A,T]}),e[57]=R,e[58]=T,e[59]=B,e[60]=A,e[61]=k):k=e[61];let v;e[62]!==r||e[63]!==d||e[64]!==i?(v=r.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-meta",children:i("taskBoard.columnRules.inheritedHint")}),o.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.map(f=>o.jsx(K,{variant:"muted",children:d(f)},f))})]}),e[62]=r,e[63]=d,e[64]=i,e[65]=v):v=e[65];let S;return e[66]!==_||e[67]!==k||e[68]!==v||e[69]!==m?(S=o.jsxs("div",{className:m,children:[_,k,v]}),e[66]=_,e[67]=k,e[68]=v,e[69]=m,e[70]=S):S=e[70],S}function Ye(){const t=$.c(7),{org:e}=q(),a=V();let s;t[0]!==e.id?(s=F.taskBoardPrompts(e.id),t[0]=e.id,t[1]=s):s=t[1];let n;t[2]!==a?(n=async()=>(await a.call("TASK_BOARD_PROMPT_LIST",{})).prompts,t[2]=a,t[3]=n):n=t[3];let l;return t[4]!==s||t[5]!==n?(l={queryKey:s,staleTime:6e4,queryFn:n},t[4]=s,t[5]=n,t[6]=l):l=t[6],ne(l)}function We(){const t=$.c(8),{org:e}=q(),a=V(),s=Y();let n;t[0]!==a?(n=async c=>{const{columnKey:i,rules:u}=c;if(u){const g=u.prompt.trim();await(g||u.skills.length?a.call("TASK_BOARD_PROMPT_UPSERT",{columnKey:i,prompt:g,skills:u.skills}):a.call("TASK_BOARD_PROMPT_DELETE",{columnKey:i}))}},t[0]=a,t[1]=n):n=t[1];let l;t[2]!==e||t[3]!==s?(l=()=>s.invalidateQueries({queryKey:F.taskBoardPrompts(e.id)}),t[2]=e,t[3]=s,t[4]=l):l=t[4];let r;return t[5]!==n||t[6]!==l?(r={mutationFn:n,onSettled:l},t[5]=n,t[6]=l,t[7]=r):r=t[7],le(r)}const H=()=>0;function Je(){const t=$.c(6),{org:e}=q(),a=Y();let s;t[0]!==e.id||t[1]!==a?(s=()=>a.invalidateQueries({queryKey:F.taskBoardPrompts(e.id)}),t[0]=e.id,t[1]=a,t[2]=s):s=t[2];const n=s;let l;t[3]!==e.slug||t[4]!==n?(l=()=>be.subscribe(e.slug,n,n),t[3]=e.slug,t[4]=n,t[5]=l):l=t[5];const r=l;U.useSyncExternalStore(r,H,H)}export{Ue as C,Ve as S,He as a,Ye as b,Se as c,We as d,Je as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a5 as l,ak as c,r as i,V as d,K as T}from"./index-
|
|
1
|
+
import{a5 as l,ak as c,r as i,V as d,K as T}from"./index-Bm1K3DQC.js";import{u as m}from"./thread-intent-C_sXnvWO.js";const p=[],S=()=>()=>{},h=()=>p;function f(t){const{org:s}=l(),r=c(),n=m(),o=i.useSyncExternalStore(n?.threads.subscribe??S,n?.threads.get??h),e=t===null?null:o.find(a=>a.id===t)??null,{data:u}=d({queryKey:T.ensureTask(s.id,t),queryFn:async()=>{if(t===null)return null;try{const{item:a}=await r.call("COLLECTION_THREADS_GET",{id:t});return a??null}catch{return null}},initialData:e&&!e.partial?e:void 0,select:a=>a?.metadata??null,staleTime:3e4});return e?.metadata??u??null}export{f as u};
|
package/dist/client/assets/{use-thread-outputs-BOXdgR_A.js → use-thread-outputs-C4WTlJbf.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,a5 as i,i as l,K as p}from"./index-
|
|
1
|
+
import{c,a5 as i,i as l,K as p}from"./index-Bm1K3DQC.js";import{f}from"./chat-context-DrYmTpG0.js";async function m(e,s){const t=await fetch(`/api/${s}/threads/${encodeURIComponent(e)}/outputs`,{credentials:"include"});if(!t.ok)throw new Error(`Failed to fetch thread outputs: ${t.status}`);return(await t.json()).objects??[]}function $(){const e=c.c(2),s=f()?.messages??[];let t;return e[0]!==s?(t=s.some(y),e[0]=s,e[1]=t):t=e[1],t}function y(e){return e.parts?.some(b)}function b(e){const s=e;return(s.type==="tool-bash"||s.type==="tool-write")&&s.state==="output-available"}function g(e,s){const t=c.c(9),{org:u}=i();let o;t[0]!==e?(o=p.threadOutputs(e??""),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==u||t[3]!==e?(n=()=>m(e??"",u.slug),t[2]=u,t[3]=e,t[4]=n):n=t[4];const r=!!e&&(s?.enabled??!0);let a;return t[5]!==o||t[6]!==n||t[7]!==r?(a={queryKey:o,queryFn:n,enabled:r,staleTime:0},t[5]=o,t[6]=n,t[7]=r,t[8]=a):a=t[8],l(a)}export{g as a,$ as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as L,b as V,r as N,j as r,m as q,B as Z,bx as ee}from"./index-B0M6fld0.js";import{j as te,d as re,r as se,p as ne}from"./thread-intent-B-lUepd6.js";import{u as H,j as oe,d as le,k as ie,m as ce,n as ae}from"./chat-context-DyGpAf46.js";import{u as ue}from"./repository-binding-D5Bfxppj.js";import{a as Q,b as Y,P as G}from"./popover-CQC-Pea_.js";import{c as de,b as fe,a as me,D as he}from"./drawer-Cn25WPda.js";import{T as pe,a as xe,c as ge}from"./tooltip-DUgZeaAs.js";import{u as ve}from"./use-mobile-JxzmRS3O.js";import{g as ye,au as Se,l as be}from"./agent-icon-2MzErGc_.js";import{t as je}from"./ChevronUp-D0xD4CWi.js";import{t as Te}from"./Tool01-CMaWHp8E.js";import{d as Re}from"./use-organization-settings-DgPYo7py.js";import{u as J,c as Me,d as ke}from"./use-ai-providers-CegsSqNf.js";import{M as Ce,a as Ie}from"./index-CZHAvvQX.js";import{d as we,e as Ne,b as _e}from"./use-entitlements-n2MsZM9p.js";function ft(t){const e=L.c(14),o=ue(t),S=H(),s=o?.metadata,a=S?.activeTask,n=a?.metadata?.runtime;let u;e[0]!==n?(u=ne(n),e[0]=n,e[1]=u):u=e[1];const x=u,b=!!a&&!a.partial,l=a?.metadata;let j;e[2]!==s||e[3]!==l?(j=te(l,s),e[2]=s,e[3]=l,e[4]=j):j=e[4];const g=!!x||b&&!!o;let f;e[5]!==s?(f=re(s),e[5]=s,e[6]=f):f=e[6];let i;e[7]!==s?(i=se(s),e[7]=s,e[8]=i):i=e[8];let v;return e[9]!==j||e[10]!==g||e[11]!==f||e[12]!==i?(v={runtime:j,resolved:g,projectDefault:f,previewServerUrl:i},e[9]=j,e[10]=g,e[11]=f,e[12]=i,e[13]=v):v=e[13],v}function Pe(t){return["openai-compatible","openrouter","deco"].includes(t)}function De(t,e){return Pe(t)&&$e(e)!==null}function $e(t){const e=t.replace(/^openai\//,"");return/^(gpt-\d|o[134](?:-|$))/.test(e)?e:null}const Ee={anthropic:/^claude-/,openrouter:/^anthropic\/claude-/,deco:/^anthropic\/claude-/};function Fe(t,e){return Ee[t]?.test(e)??!1}function Ae(t){return Me(t)&&Fe(t.providerId,t.modelId)}function ze(t,e){return t?{modelId:t.modelId,title:t.title??t.modelId,keyId:t.keyId,providerId:e,description:null,logo:null,capabilities:[],limits:null,costs:null}:null}const Le={fast:"chat.tierTrigger.tierFast",smart:"chat.tierTrigger.tierSmart",thinking:"chat.tierTrigger.tierThinking"};function Ue(t){const e=L.c(32),{tier:o,orgSlot:S,userSlot:s,autoSlot:a,filterModels:n,onPick:u,onReset:x,onClose:b}=t,l=V(),j=J(),g=new Set(j.map(Be)),f=oe([s,S,a],g),i=f?.keyId??null,[v,m]=N.useState(i??j[0]?.id??null),c=j.some(P=>P.id===v)?v:i??j[0]?.id??null,k=c?j.find(P=>P.id===c):null,M="flex h-[70vh] max-h-[460px] w-full flex-col",T=Le[o];let h;e[0]!==l||e[1]!==T?(h=l(T),e[0]=l,e[1]=T,e[2]=h):h=e[2];let p;e[3]!==h?(p=r.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:h}),e[3]=h,e[4]=p):p=e[4];let y;e[5]!==x||e[6]!==l||e[7]!==s?(y=s&&r.jsx("button",{type:"button",onClick:x,className:"text-xs text-muted-foreground hover:text-foreground px-2 py-1 rounded-lg hover:bg-accent cursor-pointer",children:l("chat.modelPreferences.reset")}),e[5]=x,e[6]=l,e[7]=s,e[8]=y):y=e[8];let R;e[9]!==p||e[10]!==y?(R=r.jsxs("div",{className:"flex items-center justify-between px-3 h-8 shrink-0",children:[p,y]}),e[9]=p,e[10]=y,e[11]=R):R=e[11];const d="flex-1 min-h-0",C=N.Suspense;let _;e[12]===Symbol.for("react.memo_cache_sentinel")?(_=r.jsx(Ie,{}),e[12]=_):_=e[12];const z=Ce,A=!0,E=ze(i?f:null,k?.providerId??"deco");let D;e[13]!==c||e[14]!==u||e[15]!==m?(D=P=>{const F=P.keyId??c??"";m(F),u({keyId:F,modelId:P.modelId,title:P.title})},e[13]=c,e[14]=u,e[15]=m,e[16]=D):D=e[16];let I;e[17]!==z||e[18]!==c||e[19]!==n||e[20]!==b||e[21]!==m||e[22]!==E||e[23]!==D?(I=r.jsx(z,{compact:A,filterModels:n,onClose:b,credentialId:c,onCredentialChange:m,selectedModel:E,onModelChange:D}),e[17]=z,e[18]=c,e[19]=n,e[20]=b,e[21]=m,e[22]=E,e[23]=D,e[24]=I):I=e[24];let w;e[25]!==C||e[26]!==I||e[27]!==_?(w=r.jsx("div",{className:d,children:r.jsx(C,{fallback:_,children:I})}),e[25]=C,e[26]=I,e[27]=_,e[28]=w):w=e[28];let $;return e[29]!==w||e[30]!==R?($=r.jsxs("div",{className:M,children:[R,w]}),e[29]=w,e[30]=R,e[31]=$):$=e[31],$}function Be(t){return t.id}const Ke=["fast","smart","thinking"];function X(t){return{fast:t("chat.tierTrigger.tierFast"),smart:t("chat.tierTrigger.tierSmart"),thinking:t("chat.tierTrigger.tierThinking")}}const O={fast:"chat.agentModels.quickerResponses",smart:"chat.agentModels.balancedQuality",thinking:"chat.agentModels.deeperReasoning"};function qe(t){const e=L.c(28),{tier:o,pillIcon:S,groups:s}=t,a=V();let n;e[0]!==a?(n=X(a),e[0]=a,e[1]=n):n=e[1];const u=n,[x,b]=N.useState(!1);let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=R=>{R.onSelect(),b(!1)},e[2]=l):l=e[2];const j=l,g=u[o];let f;e[3]===Symbol.for("react.memo_cache_sentinel")?(f=q("text-muted-foreground hover:text-foreground transition-[gap] duration-200 shrink min-w-0","gap-0 @[320px]/chat-bottom:gap-1.5"),e[3]=f):f=e[3];let i;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=q("min-w-0 truncate transition-[max-width,opacity] duration-200 ease-out max-w-0 opacity-0","@[320px]/chat-bottom:max-w-24 @[320px]/chat-bottom:opacity-100"),e[4]=i):i=e[4];const v=u[o];let m;e[5]!==v?(m=r.jsx("span",{className:i,children:v}),e[5]=v,e[6]=m):m=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx(je,{size:12,className:"opacity-60 hidden @[320px]/chat-bottom:inline-block"}),e[7]=c):c=e[7];let k;e[8]!==S||e[9]!==g||e[10]!==m?(k=r.jsx(pe,{asChild:!0,children:r.jsx("span",{className:"inline-flex min-w-0 shrink",children:r.jsx(Q,{asChild:!0,children:r.jsxs(Z,{type:"button",variant:"ghost",size:"default","aria-label":g,className:f,children:[S,m,c]})})})}),e[8]=S,e[9]=g,e[10]=m,e[11]=k):k=e[11];let M;e[12]!==g?(M=r.jsx(xe,{children:g}),e[12]=g,e[13]=M):M=e[13];let T;e[14]!==k||e[15]!==M?(T=r.jsxs(ge,{children:[k,M]}),e[14]=k,e[15]=M,e[16]=T):T=e[16];let h;if(e[17]!==s||e[18]!==a){let R;e[20]!==a?(R=d=>r.jsx("div",{className:"flex flex-col",children:d.rows.map(C=>r.jsxs("div",{className:"group/tier-row relative flex items-stretch rounded-lg hover:bg-accent",children:[r.jsxs("button",{type:"button",role:"menuitem","aria-label":C.title,onClick:()=>j(C),className:q("flex flex-1 min-w-0 items-start gap-2 px-2 py-1.5 text-left",C.modelOverride&&"pr-7 [@media(hover:hover)]:pr-2"),children:[C.icon&&r.jsx("span",{className:"shrink-0 text-muted-foreground mt-0.5",children:C.icon}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"text-sm",children:C.title}),C.subtitle&&r.jsx("div",{className:"text-xs text-muted-foreground",children:C.subtitle})]}),C.active&&r.jsx("span",{title:a("chat.tierTrigger.selected"),children:r.jsx(ee,{size:14,className:"text-foreground mt-0.5"})})]}),C.modelOverride&&r.jsx(Oe,{label:C.title,render:C.modelOverride})]},C.key))},d.key),e[20]=a,e[21]=R):R=e[21],h=s.map(R),e[17]=s,e[18]=a,e[19]=h}else h=e[19];let p;e[22]!==h?(p=r.jsx(Y,{align:"end",className:"p-1 w-64",onOpenAutoFocus:Ve,children:r.jsx("div",{role:"menu",className:"flex flex-col",children:h})}),e[22]=h,e[23]=p):p=e[23];let y;return e[24]!==x||e[25]!==T||e[26]!==p?(y=r.jsxs(G,{open:x,onOpenChange:b,children:[T,p]}),e[24]=x,e[25]=T,e[26]=p,e[27]=y):y=e[27],y}function Ve(t){return t.preventDefault()}function Oe(t){const e=L.c(38),{label:o,render:S}=t,s=V(),a=ve(),[n,u]=N.useState(!1);let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=()=>u(!1),e[0]=x):x=e[0];const b=x;let l;e[1]!==o||e[2]!==s?(l=s("chat.modelPreferences.customizeModel",{tier:o}),e[1]=o,e[2]=s,e[3]=l):l=e[3];const j=n&&"opacity-100";let g;e[4]!==j?(g=q("absolute right-1 top-1/2 -translate-y-1/2 flex items-center justify-center","size-6 rounded-lg bg-background shadow-edge","text-muted-foreground hover:text-foreground","opacity-100 [@media(hover:hover)]:opacity-0","[@media(hover:hover)]:group-hover/tier-row:opacity-100","[@media(hover:hover)]:group-focus-within/tier-row:opacity-100",j),e[4]=j,e[5]=g):g=e[5];let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=r.jsx(be,{size:14}),e[6]=f):f=e[6];let i;e[7]!==l||e[8]!==g?(i=r.jsx("button",{type:"button","aria-label":l,className:g,children:f}),e[7]=l,e[8]=g,e[9]=i):i=e[9];const v=i;if(a){let T;e[10]!==v?(T=r.jsx(de,{asChild:!0,children:v}),e[10]=v,e[11]=T):T=e[11];let h;e[12]!==o||e[13]!==s?(h=s("chat.modelPreferences.customizeModel",{tier:o}),e[12]=o,e[13]=s,e[14]=h):h=e[14];let p;e[15]!==h?(p=r.jsx(fe,{className:"sr-only",children:h}),e[15]=h,e[16]=p):p=e[16];let y;e[17]!==n||e[18]!==S?(y=n&&S(b),e[17]=n,e[18]=S,e[19]=y):y=e[19];let R;e[20]!==y||e[21]!==p?(R=r.jsxs(me,{className:"p-0 flex flex-col max-h-[95vh]",children:[p,y]}),e[20]=y,e[21]=p,e[22]=R):R=e[22];let d;return e[23]!==n||e[24]!==R||e[25]!==T?(d=r.jsxs(he,{open:n,onOpenChange:u,children:[T,R]}),e[23]=n,e[24]=R,e[25]=T,e[26]=d):d=e[26],d}let m;e[27]!==v?(m=r.jsx(Q,{asChild:!0,children:v}),e[27]=v,e[28]=m):m=e[28];let c;e[29]!==n||e[30]!==S?(c=n&&S(b),e[29]=n,e[30]=S,e[31]=c):c=e[31];let k;e[32]!==c?(k=r.jsx(Y,{side:"right",align:"start",collisionPadding:12,className:"w-[min(22rem,calc(100vw-2rem))] p-0 overflow-hidden",children:c}),e[32]=c,e[33]=k):k=e[33];let M;return e[34]!==n||e[35]!==m||e[36]!==k?(M=r.jsxs(G,{open:n,onOpenChange:u,children:[m,k]}),e[34]=n,e[35]=m,e[36]=k,e[37]=M):M=e[37],M}function W(t){return t==="fast"?r.jsx(ye,{size:16}):t==="thinking"?r.jsx(Se,{size:16}):r.jsx(Te,{size:16})}function We(t){const e=L.c(13),o=ae();let S;e[0]!==t||e[1]!==o.tiers?(S=b=>{const l=o.tiers[b];return l?l.title??l.modelId:t.chat[b]?.title},e[0]=t,e[1]=o.tiers,e[2]=S):S=e[2];const s=S;let a;e[3]!==s?(a=s("fast"),e[3]=s,e[4]=a):a=e[4];let n;e[5]!==s?(n=s("smart"),e[5]=s,e[6]=n):n=e[6];let u;e[7]!==s?(u=s("thinking"),e[7]=s,e[8]=u):u=e[8];let x;return e[9]!==a||e[10]!==n||e[11]!==u?(x={fast:a,smart:n,thinking:u},e[9]=a,e[10]=n,e[11]=u,e[12]=x):x=e[12],x}function mt(){const t=L.c(25),e=V(),{simpleModeTier:o,setSimpleModeTier:S}=le(),s=Re(),a=J(),n=ke(a),u=We(n),{data:x,error:b}=ie();let l;t[0]!==x?(l=x===void 0?{tiers:{}}:x,t[0]=x,t[1]=l):l=t[1];const j=l,g=ce(),f=H()?.lockedHarness,i=f==="claude-code",v=we("model_choice"),m=Ne(),c=_e();if(!m||!v)return null;let k,M;if(t[2]!==n||t[3]!==c||t[4]!==i||t[5]!==f||t[6]!==s||t[7]!==S||t[8]!==e||t[9]!==o||t[10]!==u||t[11]!==g||t[12]!==j||t[13]!==b){const R=X(e);k="decopilot",M=Ke.map(d=>{const C=u[d],_=j.tiers[d];return{key:`decopilot-${d}`,icon:W(d),title:R[d],subtitle:c?C??e(O[d]):e(O[d]),active:o===d,onSelect:()=>S(d),modelOverride:c?z=>r.jsxs(r.Fragment,{children:[b&&r.jsx("div",{className:"text-xs text-destructive p-3 pb-0",children:e("chat.modelPreferences.loadFailed")}),r.jsx(Ue,{tier:d,orgSlot:s.tiers[d],userSlot:_,autoSlot:n.chat[d],filterModels:f==="codex"?He:i?Ae:void 0,onClose:z,onPick:A=>g.mutate({tier:d,slot:A}),onReset:()=>g.mutate({tier:d,slot:null})},`${d}:${_?.keyId??"org"}:${_?.modelId??""}`)]}):void 0}}),t[2]=n,t[3]=c,t[4]=i,t[5]=f,t[6]=s,t[7]=S,t[8]=e,t[9]=o,t[10]=u,t[11]=g,t[12]=j,t[13]=b,t[14]=k,t[15]=M}else k=t[14],M=t[15];let T;t[16]!==k||t[17]!==M?(T=[{key:k,rows:M}],t[16]=k,t[17]=M,t[18]=T):T=t[18];const h=T;let p;t[19]!==o?(p=W(o),t[19]=o,t[20]=p):p=t[20];let y;return t[21]!==h||t[22]!==p||t[23]!==o?(y=r.jsx(qe,{tier:o,pillIcon:p,groups:h}),t[21]=h,t[22]=p,t[23]=o,t[24]=y):y=t[24],y}function He(t){return De(t.providerId,t.modelId)}const B=48;function ht(){const t=L.c(12),[e,o]=N.useState("idle"),[S,s]=N.useState(""),[a,n]=N.useState(""),[u,x]=N.useState(Ge),b=N.useRef(null),l=N.useRef(null),j=N.useRef(null),g=N.useRef(null),f=N.useRef(0),i=N.useRef(!1),v=N.useRef(""),m=N.useRef(""),c=N.useRef(!1),k=typeof window<"u"&&!!(window.SpeechRecognition||window.webkitSpeechRecognition);let M;t[0]===Symbol.for("react.memo_cache_sentinel")?(M=()=>{f.current&&(cancelAnimationFrame(f.current),f.current=0),l.current?.close().catch(Ye),g.current?.getTracks().forEach(Qe),j.current=null,l.current=null,g.current=null},t[0]=M):M=t[0];const T=M;let h;t[1]===Symbol.for("react.memo_cache_sentinel")?(h=E=>{g.current=E;const D=new AudioContext;l.current=D;const I=D.createMediaStreamSource(E),w=D.createAnalyser();w.fftSize=128,w.smoothingTimeConstant=.8,I.connect(w),j.current=w;const $=new Uint8Array(w.frequencyBinCount),P=()=>{if(!j.current)return;j.current.getByteFrequencyData($);const F=[];for(let U=0;U<B;U++){const K=Math.floor(U/B*$.length);F.push(Math.max(.04,($[K]??0)/255))}x(F),f.current=requestAnimationFrame(P)};P()},t[1]=h):h=t[1];const p=h;let y;t[2]!==e?(y=async()=>{if(c.current||i.current)return e;c.current=!0;const E=window.SpeechRecognition||window.webkitSpeechRecognition;if(!E)return c.current=!1,o("unsupported"),"unsupported";let D;try{D=await navigator.mediaDevices.getUserMedia({audio:!0})}catch{return c.current=!1,o("permission-denied"),"permission-denied"}c.current=!1,s(""),n(""),m.current="",v.current="",i.current=!0,o("recording"),p(D);const I=new E;b.current=I,I.interimResults=!0,I.continuous=!0,I.lang=navigator.language||"en-US",I.onresult=w=>{if(b.current!==I)return;let $="",P="";for(let F=w.resultIndex;F<w.results.length;F++){const U=w.results[F],K=U?.[0]?.transcript??"";U?.isFinal?P=P+K:$=$+K}P&&(v.current=v.current+P,s(v.current)),m.current=$,n($)},I.onerror=w=>{b.current===I&&w.error!=="no-speech"&&(i.current=!1,b.current=null,T(),o(w.error==="not-allowed"?"permission-denied":"idle"))},I.onend=()=>{if(b.current===I&&i.current)try{I.start()}catch{}};try{I.start()}catch{return i.current=!1,b.current=null,T(),o("idle"),"idle"}return"recording"},t[2]=e,t[3]=y):y=t[3];const R=y;let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{i.current=!1,b.current?.stop(),T(),o("idle"),x(Array(B).fill(.05)),n("");const E=(v.current+(m.current?" "+m.current:"")).trim();return s(""),v.current="",m.current="",E},t[4]=d):d=t[4];const C=d;let _;t[5]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{i.current=!1,b.current?.abort(),T(),o("idle"),s(""),n(""),x(Array(B).fill(.05)),v.current="",m.current=""},t[5]=_):_=t[5];const z=_;let A;return t[6]!==a||t[7]!==R||t[8]!==e||t[9]!==S||t[10]!==u?(A={status:e,transcript:S,interimTranscript:a,waveformData:u,isSupported:k,startRecording:R,stopRecording:C,cancelRecording:z},t[6]=a,t[7]=R,t[8]=e,t[9]=S,t[10]=u,t[11]=A):A=t[11],A}function Qe(t){return t.stop()}function Ye(){}function Ge(){return Array(B).fill(.05)}export{mt as T,ht as a,Pe as s,ft as u};
|
|
1
|
+
import{c as L,b as V,r as N,j as r,m as q,B as Z,bx as ee}from"./index-Bm1K3DQC.js";import{j as te,d as re,r as se,p as ne}from"./thread-intent-C_sXnvWO.js";import{u as H,j as oe,d as le,k as ie,m as ce,n as ae}from"./chat-context-DrYmTpG0.js";import{u as ue}from"./repository-binding-BUEX4lc5.js";import{a as Q,b as Y,P as G}from"./popover-Dh3TtwDo.js";import{d as de,b as fe,a as me,D as he}from"./drawer-CtPWRLqi.js";import{T as pe,a as xe,c as ge}from"./tooltip-D0Aro8zv.js";import{u as ve}from"./use-mobile-BDHJ5g4G.js";import{g as ye,au as Se,l as be}from"./agent-icon-Y_Y2D-pt.js";import{t as je}from"./ChevronUp-DYc8wyky.js";import{t as Te}from"./Tool01-D5n93WAy.js";import{d as Re}from"./use-organization-settings-CiRL-ND2.js";import{u as J,c as Me,d as ke}from"./use-ai-providers-BCXggb0b.js";import{M as Ce,a as Ie}from"./index-CX5-w0f2.js";import{d as we,e as Ne,b as _e}from"./use-entitlements-q4zqHldY.js";function ft(t){const e=L.c(14),o=ue(t),S=H(),s=o?.metadata,a=S?.activeTask,n=a?.metadata?.runtime;let u;e[0]!==n?(u=ne(n),e[0]=n,e[1]=u):u=e[1];const x=u,b=!!a&&!a.partial,l=a?.metadata;let j;e[2]!==s||e[3]!==l?(j=te(l,s),e[2]=s,e[3]=l,e[4]=j):j=e[4];const g=!!x||b&&!!o;let f;e[5]!==s?(f=re(s),e[5]=s,e[6]=f):f=e[6];let i;e[7]!==s?(i=se(s),e[7]=s,e[8]=i):i=e[8];let v;return e[9]!==j||e[10]!==g||e[11]!==f||e[12]!==i?(v={runtime:j,resolved:g,projectDefault:f,previewServerUrl:i},e[9]=j,e[10]=g,e[11]=f,e[12]=i,e[13]=v):v=e[13],v}function Pe(t){return["openai-compatible","openrouter","deco"].includes(t)}function De(t,e){return Pe(t)&&$e(e)!==null}function $e(t){const e=t.replace(/^openai\//,"");return/^(gpt-\d|o[134](?:-|$))/.test(e)?e:null}const Ee={anthropic:/^claude-/,openrouter:/^anthropic\/claude-/,deco:/^anthropic\/claude-/};function Fe(t,e){return Ee[t]?.test(e)??!1}function Ae(t){return Me(t)&&Fe(t.providerId,t.modelId)}function ze(t,e){return t?{modelId:t.modelId,title:t.title??t.modelId,keyId:t.keyId,providerId:e,description:null,logo:null,capabilities:[],limits:null,costs:null}:null}const Le={fast:"chat.tierTrigger.tierFast",smart:"chat.tierTrigger.tierSmart",thinking:"chat.tierTrigger.tierThinking"};function Ue(t){const e=L.c(32),{tier:o,orgSlot:S,userSlot:s,autoSlot:a,filterModels:n,onPick:u,onReset:x,onClose:b}=t,l=V(),j=J(),g=new Set(j.map(Be)),f=oe([s,S,a],g),i=f?.keyId??null,[v,m]=N.useState(i??j[0]?.id??null),c=j.some(P=>P.id===v)?v:i??j[0]?.id??null,k=c?j.find(P=>P.id===c):null,M="flex h-[70vh] max-h-[460px] w-full flex-col",T=Le[o];let h;e[0]!==l||e[1]!==T?(h=l(T),e[0]=l,e[1]=T,e[2]=h):h=e[2];let p;e[3]!==h?(p=r.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:h}),e[3]=h,e[4]=p):p=e[4];let y;e[5]!==x||e[6]!==l||e[7]!==s?(y=s&&r.jsx("button",{type:"button",onClick:x,className:"text-xs text-muted-foreground hover:text-foreground px-2 py-1 rounded-lg hover:bg-accent cursor-pointer",children:l("chat.modelPreferences.reset")}),e[5]=x,e[6]=l,e[7]=s,e[8]=y):y=e[8];let R;e[9]!==p||e[10]!==y?(R=r.jsxs("div",{className:"flex items-center justify-between px-3 h-8 shrink-0",children:[p,y]}),e[9]=p,e[10]=y,e[11]=R):R=e[11];const d="flex-1 min-h-0",C=N.Suspense;let _;e[12]===Symbol.for("react.memo_cache_sentinel")?(_=r.jsx(Ie,{}),e[12]=_):_=e[12];const z=Ce,A=!0,E=ze(i?f:null,k?.providerId??"deco");let D;e[13]!==c||e[14]!==u||e[15]!==m?(D=P=>{const F=P.keyId??c??"";m(F),u({keyId:F,modelId:P.modelId,title:P.title})},e[13]=c,e[14]=u,e[15]=m,e[16]=D):D=e[16];let I;e[17]!==z||e[18]!==c||e[19]!==n||e[20]!==b||e[21]!==m||e[22]!==E||e[23]!==D?(I=r.jsx(z,{compact:A,filterModels:n,onClose:b,credentialId:c,onCredentialChange:m,selectedModel:E,onModelChange:D}),e[17]=z,e[18]=c,e[19]=n,e[20]=b,e[21]=m,e[22]=E,e[23]=D,e[24]=I):I=e[24];let w;e[25]!==C||e[26]!==I||e[27]!==_?(w=r.jsx("div",{className:d,children:r.jsx(C,{fallback:_,children:I})}),e[25]=C,e[26]=I,e[27]=_,e[28]=w):w=e[28];let $;return e[29]!==w||e[30]!==R?($=r.jsxs("div",{className:M,children:[R,w]}),e[29]=w,e[30]=R,e[31]=$):$=e[31],$}function Be(t){return t.id}const Ke=["fast","smart","thinking"];function X(t){return{fast:t("chat.tierTrigger.tierFast"),smart:t("chat.tierTrigger.tierSmart"),thinking:t("chat.tierTrigger.tierThinking")}}const O={fast:"chat.agentModels.quickerResponses",smart:"chat.agentModels.balancedQuality",thinking:"chat.agentModels.deeperReasoning"};function qe(t){const e=L.c(28),{tier:o,pillIcon:S,groups:s}=t,a=V();let n;e[0]!==a?(n=X(a),e[0]=a,e[1]=n):n=e[1];const u=n,[x,b]=N.useState(!1);let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=R=>{R.onSelect(),b(!1)},e[2]=l):l=e[2];const j=l,g=u[o];let f;e[3]===Symbol.for("react.memo_cache_sentinel")?(f=q("text-muted-foreground hover:text-foreground transition-[gap] duration-200 shrink min-w-0","gap-0 @[320px]/chat-bottom:gap-1.5"),e[3]=f):f=e[3];let i;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=q("min-w-0 truncate transition-[max-width,opacity] duration-200 ease-out max-w-0 opacity-0","@[320px]/chat-bottom:max-w-24 @[320px]/chat-bottom:opacity-100"),e[4]=i):i=e[4];const v=u[o];let m;e[5]!==v?(m=r.jsx("span",{className:i,children:v}),e[5]=v,e[6]=m):m=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx(je,{size:12,className:"opacity-60 hidden @[320px]/chat-bottom:inline-block"}),e[7]=c):c=e[7];let k;e[8]!==S||e[9]!==g||e[10]!==m?(k=r.jsx(pe,{asChild:!0,children:r.jsx("span",{className:"inline-flex min-w-0 shrink",children:r.jsx(Q,{asChild:!0,children:r.jsxs(Z,{type:"button",variant:"ghost",size:"default","aria-label":g,className:f,children:[S,m,c]})})})}),e[8]=S,e[9]=g,e[10]=m,e[11]=k):k=e[11];let M;e[12]!==g?(M=r.jsx(xe,{children:g}),e[12]=g,e[13]=M):M=e[13];let T;e[14]!==k||e[15]!==M?(T=r.jsxs(ge,{children:[k,M]}),e[14]=k,e[15]=M,e[16]=T):T=e[16];let h;if(e[17]!==s||e[18]!==a){let R;e[20]!==a?(R=d=>r.jsx("div",{className:"flex flex-col",children:d.rows.map(C=>r.jsxs("div",{className:"group/tier-row relative flex items-stretch rounded-lg hover:bg-accent",children:[r.jsxs("button",{type:"button",role:"menuitem","aria-label":C.title,onClick:()=>j(C),className:q("flex flex-1 min-w-0 items-start gap-2 px-2 py-1.5 text-left",C.modelOverride&&"pr-7 [@media(hover:hover)]:pr-2"),children:[C.icon&&r.jsx("span",{className:"shrink-0 text-muted-foreground mt-0.5",children:C.icon}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"text-sm",children:C.title}),C.subtitle&&r.jsx("div",{className:"text-xs text-muted-foreground",children:C.subtitle})]}),C.active&&r.jsx("span",{title:a("chat.tierTrigger.selected"),children:r.jsx(ee,{size:14,className:"text-foreground mt-0.5"})})]}),C.modelOverride&&r.jsx(Oe,{label:C.title,render:C.modelOverride})]},C.key))},d.key),e[20]=a,e[21]=R):R=e[21],h=s.map(R),e[17]=s,e[18]=a,e[19]=h}else h=e[19];let p;e[22]!==h?(p=r.jsx(Y,{align:"end",className:"p-1 w-64",onOpenAutoFocus:Ve,children:r.jsx("div",{role:"menu",className:"flex flex-col",children:h})}),e[22]=h,e[23]=p):p=e[23];let y;return e[24]!==x||e[25]!==T||e[26]!==p?(y=r.jsxs(G,{open:x,onOpenChange:b,children:[T,p]}),e[24]=x,e[25]=T,e[26]=p,e[27]=y):y=e[27],y}function Ve(t){return t.preventDefault()}function Oe(t){const e=L.c(38),{label:o,render:S}=t,s=V(),a=ve(),[n,u]=N.useState(!1);let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=()=>u(!1),e[0]=x):x=e[0];const b=x;let l;e[1]!==o||e[2]!==s?(l=s("chat.modelPreferences.customizeModel",{tier:o}),e[1]=o,e[2]=s,e[3]=l):l=e[3];const j=n&&"opacity-100";let g;e[4]!==j?(g=q("absolute right-1 top-1/2 -translate-y-1/2 flex items-center justify-center","size-6 rounded-lg bg-background shadow-edge","text-muted-foreground hover:text-foreground","opacity-100 [@media(hover:hover)]:opacity-0","[@media(hover:hover)]:group-hover/tier-row:opacity-100","[@media(hover:hover)]:group-focus-within/tier-row:opacity-100",j),e[4]=j,e[5]=g):g=e[5];let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=r.jsx(be,{size:14}),e[6]=f):f=e[6];let i;e[7]!==l||e[8]!==g?(i=r.jsx("button",{type:"button","aria-label":l,className:g,children:f}),e[7]=l,e[8]=g,e[9]=i):i=e[9];const v=i;if(a){let T;e[10]!==v?(T=r.jsx(de,{asChild:!0,children:v}),e[10]=v,e[11]=T):T=e[11];let h;e[12]!==o||e[13]!==s?(h=s("chat.modelPreferences.customizeModel",{tier:o}),e[12]=o,e[13]=s,e[14]=h):h=e[14];let p;e[15]!==h?(p=r.jsx(fe,{className:"sr-only",children:h}),e[15]=h,e[16]=p):p=e[16];let y;e[17]!==n||e[18]!==S?(y=n&&S(b),e[17]=n,e[18]=S,e[19]=y):y=e[19];let R;e[20]!==y||e[21]!==p?(R=r.jsxs(me,{className:"p-0 flex flex-col max-h-[95vh]",children:[p,y]}),e[20]=y,e[21]=p,e[22]=R):R=e[22];let d;return e[23]!==n||e[24]!==R||e[25]!==T?(d=r.jsxs(he,{open:n,onOpenChange:u,children:[T,R]}),e[23]=n,e[24]=R,e[25]=T,e[26]=d):d=e[26],d}let m;e[27]!==v?(m=r.jsx(Q,{asChild:!0,children:v}),e[27]=v,e[28]=m):m=e[28];let c;e[29]!==n||e[30]!==S?(c=n&&S(b),e[29]=n,e[30]=S,e[31]=c):c=e[31];let k;e[32]!==c?(k=r.jsx(Y,{side:"right",align:"start",collisionPadding:12,className:"w-[min(22rem,calc(100vw-2rem))] p-0 overflow-hidden",children:c}),e[32]=c,e[33]=k):k=e[33];let M;return e[34]!==n||e[35]!==m||e[36]!==k?(M=r.jsxs(G,{open:n,onOpenChange:u,children:[m,k]}),e[34]=n,e[35]=m,e[36]=k,e[37]=M):M=e[37],M}function W(t){return t==="fast"?r.jsx(ye,{size:16}):t==="thinking"?r.jsx(Se,{size:16}):r.jsx(Te,{size:16})}function We(t){const e=L.c(13),o=ae();let S;e[0]!==t||e[1]!==o.tiers?(S=b=>{const l=o.tiers[b];return l?l.title??l.modelId:t.chat[b]?.title},e[0]=t,e[1]=o.tiers,e[2]=S):S=e[2];const s=S;let a;e[3]!==s?(a=s("fast"),e[3]=s,e[4]=a):a=e[4];let n;e[5]!==s?(n=s("smart"),e[5]=s,e[6]=n):n=e[6];let u;e[7]!==s?(u=s("thinking"),e[7]=s,e[8]=u):u=e[8];let x;return e[9]!==a||e[10]!==n||e[11]!==u?(x={fast:a,smart:n,thinking:u},e[9]=a,e[10]=n,e[11]=u,e[12]=x):x=e[12],x}function mt(){const t=L.c(25),e=V(),{simpleModeTier:o,setSimpleModeTier:S}=le(),s=Re(),a=J(),n=ke(a),u=We(n),{data:x,error:b}=ie();let l;t[0]!==x?(l=x===void 0?{tiers:{}}:x,t[0]=x,t[1]=l):l=t[1];const j=l,g=ce(),f=H()?.lockedHarness,i=f==="claude-code",v=we("model_choice"),m=Ne(),c=_e();if(!m||!v)return null;let k,M;if(t[2]!==n||t[3]!==c||t[4]!==i||t[5]!==f||t[6]!==s||t[7]!==S||t[8]!==e||t[9]!==o||t[10]!==u||t[11]!==g||t[12]!==j||t[13]!==b){const R=X(e);k="decopilot",M=Ke.map(d=>{const C=u[d],_=j.tiers[d];return{key:`decopilot-${d}`,icon:W(d),title:R[d],subtitle:c?C??e(O[d]):e(O[d]),active:o===d,onSelect:()=>S(d),modelOverride:c?z=>r.jsxs(r.Fragment,{children:[b&&r.jsx("div",{className:"text-xs text-destructive p-3 pb-0",children:e("chat.modelPreferences.loadFailed")}),r.jsx(Ue,{tier:d,orgSlot:s.tiers[d],userSlot:_,autoSlot:n.chat[d],filterModels:f==="codex"?He:i?Ae:void 0,onClose:z,onPick:A=>g.mutate({tier:d,slot:A}),onReset:()=>g.mutate({tier:d,slot:null})},`${d}:${_?.keyId??"org"}:${_?.modelId??""}`)]}):void 0}}),t[2]=n,t[3]=c,t[4]=i,t[5]=f,t[6]=s,t[7]=S,t[8]=e,t[9]=o,t[10]=u,t[11]=g,t[12]=j,t[13]=b,t[14]=k,t[15]=M}else k=t[14],M=t[15];let T;t[16]!==k||t[17]!==M?(T=[{key:k,rows:M}],t[16]=k,t[17]=M,t[18]=T):T=t[18];const h=T;let p;t[19]!==o?(p=W(o),t[19]=o,t[20]=p):p=t[20];let y;return t[21]!==h||t[22]!==p||t[23]!==o?(y=r.jsx(qe,{tier:o,pillIcon:p,groups:h}),t[21]=h,t[22]=p,t[23]=o,t[24]=y):y=t[24],y}function He(t){return De(t.providerId,t.modelId)}const B=48;function ht(){const t=L.c(12),[e,o]=N.useState("idle"),[S,s]=N.useState(""),[a,n]=N.useState(""),[u,x]=N.useState(Ge),b=N.useRef(null),l=N.useRef(null),j=N.useRef(null),g=N.useRef(null),f=N.useRef(0),i=N.useRef(!1),v=N.useRef(""),m=N.useRef(""),c=N.useRef(!1),k=typeof window<"u"&&!!(window.SpeechRecognition||window.webkitSpeechRecognition);let M;t[0]===Symbol.for("react.memo_cache_sentinel")?(M=()=>{f.current&&(cancelAnimationFrame(f.current),f.current=0),l.current?.close().catch(Ye),g.current?.getTracks().forEach(Qe),j.current=null,l.current=null,g.current=null},t[0]=M):M=t[0];const T=M;let h;t[1]===Symbol.for("react.memo_cache_sentinel")?(h=E=>{g.current=E;const D=new AudioContext;l.current=D;const I=D.createMediaStreamSource(E),w=D.createAnalyser();w.fftSize=128,w.smoothingTimeConstant=.8,I.connect(w),j.current=w;const $=new Uint8Array(w.frequencyBinCount),P=()=>{if(!j.current)return;j.current.getByteFrequencyData($);const F=[];for(let U=0;U<B;U++){const K=Math.floor(U/B*$.length);F.push(Math.max(.04,($[K]??0)/255))}x(F),f.current=requestAnimationFrame(P)};P()},t[1]=h):h=t[1];const p=h;let y;t[2]!==e?(y=async()=>{if(c.current||i.current)return e;c.current=!0;const E=window.SpeechRecognition||window.webkitSpeechRecognition;if(!E)return c.current=!1,o("unsupported"),"unsupported";let D;try{D=await navigator.mediaDevices.getUserMedia({audio:!0})}catch{return c.current=!1,o("permission-denied"),"permission-denied"}c.current=!1,s(""),n(""),m.current="",v.current="",i.current=!0,o("recording"),p(D);const I=new E;b.current=I,I.interimResults=!0,I.continuous=!0,I.lang=navigator.language||"en-US",I.onresult=w=>{if(b.current!==I)return;let $="",P="";for(let F=w.resultIndex;F<w.results.length;F++){const U=w.results[F],K=U?.[0]?.transcript??"";U?.isFinal?P=P+K:$=$+K}P&&(v.current=v.current+P,s(v.current)),m.current=$,n($)},I.onerror=w=>{b.current===I&&w.error!=="no-speech"&&(i.current=!1,b.current=null,T(),o(w.error==="not-allowed"?"permission-denied":"idle"))},I.onend=()=>{if(b.current===I&&i.current)try{I.start()}catch{}};try{I.start()}catch{return i.current=!1,b.current=null,T(),o("idle"),"idle"}return"recording"},t[2]=e,t[3]=y):y=t[3];const R=y;let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{i.current=!1,b.current?.stop(),T(),o("idle"),x(Array(B).fill(.05)),n("");const E=(v.current+(m.current?" "+m.current:"")).trim();return s(""),v.current="",m.current="",E},t[4]=d):d=t[4];const C=d;let _;t[5]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{i.current=!1,b.current?.abort(),T(),o("idle"),s(""),n(""),x(Array(B).fill(.05)),v.current="",m.current=""},t[5]=_):_=t[5];const z=_;let A;return t[6]!==a||t[7]!==R||t[8]!==e||t[9]!==S||t[10]!==u?(A={status:e,transcript:S,interimTranscript:a,waveformData:u,isSupported:k,startRecording:R,stopRecording:C,cancelRecording:z},t[6]=a,t[7]=R,t[8]=e,t[9]=S,t[10]=u,t[11]=A):A=t[11],A}function Qe(t){return t.stop()}function Ye(){}function Ge(){return Array(B).fill(.05)}export{mt as T,ht as a,Pe as s,ft as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-BNCHN17F.js";import{eu as i}from"./index-Bm1K3DQC.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{eC as Q,bo as y,eD as S,eE as w,ev as C,q as k,eF as M,eG as q,r as p,eH as x,eI as H,eJ as L,eK as P,eL as O,eM as B,eN as A}from"./index-Bm1K3DQC.js";function R(r,e){const s=new Set(e);return r.filter(t=>!s.has(t))}function I(r,e,s){const t=r.slice(0);return t[e]=s,t}var T=class extends Q{#i;#e;#n;#r;#s;#t;#o;#u;#h;#a=[];constructor(r,e,s){super(),this.#i=r,this.#r=s,this.#n=[],this.#s=[],this.#e=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(e=>{this.#d(r,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,e){this.#n=r,this.#r=e,y.batch(()=>{const s=this.#s,t=this.#f(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=s.length!==i.length,c=i.some((o,d)=>o!==s[d]),f=u||c,b=f?!0:n.some((o,d)=>{const g=this.#e[d];return!g||!S(o,g)});!f&&!b||(f&&(this.#a=t,this.#s=i),this.#e=n,this.hasListeners()&&(f&&(R(s,i).forEach(o=>{o.destroy()}),R(i,s).forEach(o=>{o.subscribe(d=>{this.#d(o,d)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,e){const s=this.#f(r),t=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,e,i),()=>this.#c(t,s)]}#c(r,e){return e.map((s,t)=>{const i=r[t];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{e.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,e,s){if(e){const t=this.#h,i=s!==void 0&&t!==void 0&&(t.length!==s.length||s.some((n,u)=>n!==t[u]));return(!this.#t||this.#e!==this.#u||i||e!==this.#o)&&(this.#o=e,this.#u=this.#e,s!==void 0&&(this.#h=s),this.#t=w(this.#t,e(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#s.some((r,e)=>r.options.suspense&&this.#e[e]?.data===void 0)}#f(r){const e=new Map;this.#s.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=e.get(i);n?n.push(t):e.set(i,[t])});const s=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=e.get(i.queryHash)?.shift()??new C(this.#i,i);s.push({defaultedQueryOptions:i,observer:u})}),s}#d(r,e){const s=this.#s.indexOf(r);s!==-1&&(this.#e=I(this.#e,s,e),this.#p())}#p(){if(this.hasListeners()){const r=this.#c(this.#e,this.#a),e=this.#b(),s=this.#t,t=e?s:this.#l(r,this.#r?.combine);(e||s!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#e)})})}}};function D({queries:r,...e},s){const t=k(s),i=M(),n=q(),u=p.useMemo(()=>r.map(h=>{const a=t.defaultQueryOptions(h);return a._optimisticResults=i?"isRestoring":"optimistic",a}),[r,t,i]);u.forEach(h=>{x(h);const a=t.getQueryCache().get(h.queryHash);H(h,n,a)}),L(n);const[c]=p.useState(()=>new T(t,u,e)),[f,b,o]=c.getOptimisticResult(u,e.combine),d=!i&&e.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>d?c.subscribe(y.batchCalls(h)):P,[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(u,e)},[u,e,c]);const m=f.some((h,a)=>O(u[a],h))?f.flatMap((h,a)=>{const l=u[a];if(l&&O(l,h)){const E=new C(t,l);return B(l,E,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const v=f.find((h,a)=>{const l=u[a];return l&&A({result:h,errorResetBoundary:n,throwOnError:l.throwOnError,query:t.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(v?.error)throw v.error;return b(o())}export{D as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-BNCHN17F.js";import{eu as s,eB as n}from"./index-Bm1K3DQC.js";function a(e,r){return s({...e,enabled:!0,suspense:!0,throwOnError:n},u,r)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,b as q,r as z,a as O,i as Y,e as $,j as t,n as L,K as J,t as Q,o as W,B as G,p as H}from"./index-
|
|
1
|
+
import{c as V,b as q,r as z,a as O,i as Y,e as $,j as t,n as L,K as J,t as Q,o as W,B as G,p as H}from"./index-Bm1K3DQC.js";import{C as X}from"./collection-table-wrapper-BDabkJu0.js";import{E as D}from"./empty-state-DQ9zfSjj.js";import{S as Z}from"./search-input-CZ0rurdO.js";import{B as I}from"./badge-CyMXYtjo.js";import{u as ee}from"./use-debounced-value-BsCdYGvU.js";import{a as K}from"./admin-fetch-BhTJlAsX.js";import"./table-CZbeUf_X.js";import"./ArrowUp-hVHjHInb.js";import"./SearchMd-MlMwcObI.js";function pe(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const i=ee(N,300),{data:R}=O.useSession(),k=R?.user?.id;let n;e[2]!==i?(n=J.deploymentAdminUsers(i),e[2]=i,e[3]=n):n=e[3];let l;e[4]!==i?(l=()=>{const a=new URLSearchParams({limit:"100"});return i&&a.set("searchValue",i),K(`/api/_admin/users?${a}`)},e[4]=i,e[5]=l):l=e[5];let C;e[6]!==n||e[7]!==l?(C={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=C):C=e[8];const{data:P,isLoading:_,isError:A}=Y(C);let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=te,e[9]=w):w=e[9];let y;e[10]!==s?(y={mutationFn:ae,onSuccess:w,onError:a=>{Q.error(a instanceof Error?a.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=y):y=e[11];const E=$(y);let b;e[12]!==P?.users?(b=P?.users??[],e[12]=P?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=a=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(W,{url:a.image??void 0,fallback:a.name??"?",shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:a.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:a.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=a=>a.emailVerified?t.jsx(I,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(I,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:se,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==k||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:a=>t.jsx(G,{variant:"outline",size:"sm",disabled:a.id===k||E.isPending,onClick:()=>E.mutate(a.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=k,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(Z,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==i||e[47]!==A||e[48]!==s?(S=A?t.jsx(D,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(D,{title:s("admin.users.noUsersFoundTitle"),description:i?s("admin.users.noUsersMatchSearch",{search:i}):s("admin.users.noUsersYet")}),e[46]=i,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(X,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function se(e){return t.jsx("span",{className:"text-sm text-foreground",children:H(e.createdAt)})}function te(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{pe as default};
|