decocms 2.294.0 → 2.294.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-BefAeM6u.js → AlertCircle-CQWovvD2.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-ctHZC7IK.js → ArrowNarrowLeft-CqWU9oxx.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Dw5rxpDu.js → ArrowUpRight-DvqijCIt.js} +1 -1
- package/dist/client/assets/{CheckCircle-3lbo4DOp.js → CheckCircle-RomNW015.js} +1 -1
- package/dist/client/assets/{ChevronDown-BMsVDJMd.js → ChevronDown-9Jxith6v.js} +1 -1
- package/dist/client/assets/{ChevronRight-DNaFnNR_.js → ChevronRight-Dtz86WKJ.js} +1 -1
- package/dist/client/assets/{ChevronUp-Ba2YtjVA.js → ChevronUp-CaQ8hxxg.js} +1 -1
- package/dist/client/assets/{Container-BbxUmzld.js → Container-C5OROtJe.js} +1 -1
- package/dist/client/assets/{DotsVertical-q5wudUQb.js → DotsVertical-BgPLp_Gk.js} +1 -1
- package/dist/client/assets/{LinkExternal01-B-rWZEWZ.js → LinkExternal01-CYMJiIFP.js} +1 -1
- package/dist/client/assets/{Lock01-Bdpg3Hx_.js → Lock01-DnPqyt7e.js} +1 -1
- package/dist/client/assets/{Palette-CSbP1WU6.js → Palette-CWoH1X_q.js} +1 -1
- package/dist/client/assets/{Play-BwE8tx_2.js → Play-DqvL3G5s.js} +1 -1
- package/dist/client/assets/{Plus-B1zoIOQx.js → Plus-Ddba0lt_.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-DhQjzDQL.js → RefreshCcw01-DMai8dtt.js} +1 -1
- package/dist/client/assets/{SearchMd-tlcXyQa_.js → SearchMd-Wd5u0rRU.js} +1 -1
- package/dist/client/assets/{Settings02-NVTdZYn8.js → Settings02-BIbJ38lS.js} +1 -1
- package/dist/client/assets/{Shield01-Cczh_kLJ.js → Shield01-CiT3cZOy.js} +1 -1
- package/dist/client/assets/{Star01-Cl5wO8v8.js → Star01-B-4f8EI8.js} +1 -1
- package/dist/client/assets/{Sun-MpjnKSLA.js → Sun-_Pck-FJM.js} +1 -1
- package/dist/client/assets/{Tool01-CWU0CUYW.js → Tool01-BfFn2Oyx.js} +1 -1
- package/dist/client/assets/{Trash01-CGGNK3g-.js → Trash01-Dgd5Vw7S.js} +1 -1
- package/dist/client/assets/{User01-BwcffllD.js → User01-oXiwFzHp.js} +1 -1
- package/dist/client/assets/{Users03-BNN6AS-n.js → Users03-BM4OMOrZ.js} +1 -1
- package/dist/client/assets/{X-XvFOaH_0.js → X-CRK0a94F.js} +1 -1
- package/dist/client/assets/{XCircle-CBqb98Hh.js → XCircle-Cb6HyAsm.js} +1 -1
- package/dist/client/assets/{XClose-CeINnhme.js → XClose-gZr4qGf9.js} +1 -1
- package/dist/client/assets/{Zap-CDrmsf2C.js → Zap-DLJMG7tg.js} +1 -1
- package/dist/client/assets/{ZapSquare-Ri9lH1zf.js → ZapSquare-BblOxMfA.js} +1 -1
- package/dist/client/assets/{accordion-Bgtbenzk.js → accordion-DxXcr0LG.js} +1 -1
- package/dist/client/assets/{agent-icon-DdfLWWFz.js → agent-icon-yYRj-0lJ.js} +1 -1
- package/dist/client/assets/{agents-list-D5T_UiBJ.js → agents-list-FSl3TY72.js} +1 -1
- package/dist/client/assets/ai-providers-eMV2jJWz.js +1 -0
- package/dist/client/assets/{alert-dialog-BY7wdwxM.js → alert-dialog-4PMn5MEd.js} +1 -1
- package/dist/client/assets/{auth-catchall-BH50jO75.js → auth-catchall-BAX9ql07.js} +1 -1
- package/dist/client/assets/{automation-list-row-oLTHyBn9.js → automation-list-row-D0jJ-VOB.js} +1 -1
- package/dist/client/assets/{automations-C9eitePX.js → automations-BL3H9zCv.js} +1 -1
- package/dist/client/assets/{avatar-DRNf61dD.js → avatar-BBsS3gKf.js} +1 -1
- package/dist/client/assets/{badge-BJnKVqQg.js → badge-EwYkSrNU.js} +1 -1
- package/dist/client/assets/{brand-context-C2A7oRcl.js → brand-context-BSR4Xu33.js} +1 -1
- package/dist/client/assets/{card-Dp6Lilh-.js → card-Da8kkDcf.js} +1 -1
- package/dist/client/assets/{chat-context-JfnWgmWL.js → chat-context-Day9b1dU.js} +1 -1
- package/dist/client/assets/{checkbox-CouoIES-.js → checkbox-BTjBq0PR.js} +1 -1
- package/dist/client/assets/{collection-detail-C5Yymb--.js → collection-detail-1Ybv52WN.js} +1 -1
- package/dist/client/assets/{collection-display-button-wfEJKL5y.js → collection-display-button-BIbnppbU.js} +1 -1
- package/dist/client/assets/{collection-search-x3WxKP2U.js → collection-search-50UpqUDY.js} +1 -1
- package/dist/client/assets/{collection-search-3JVNad_3.js → collection-search-DiGSdKFX.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DEzISF1y.js → collection-table-wrapper-K7myIred.js} +1 -1
- package/dist/client/assets/{collection-tabs-CavPMc70.js → collection-tabs-Dg60mpZc.js} +1 -1
- package/dist/client/assets/{collections-BcyYFQx1.js → collections-D3uyismv.js} +1 -1
- package/dist/client/assets/{command-_hKyE0nf.js → command-CpdycvMY.js} +1 -1
- package/dist/client/assets/{connection-card-P5qNgs6D.js → connection-card-CjJMOpOi.js} +1 -1
- package/dist/client/assets/connection-detail-DxSavRey.js +1 -0
- package/dist/client/assets/{connection-form-helpers-DjWTdW-u.js → connection-form-helpers-DG70qtHe.js} +1 -1
- package/dist/client/assets/{connections-BzamEAWo.js → connections-DSGczNjm.js} +1 -1
- package/dist/client/assets/{constants-DZTSQSyU.js → constants-CHMUOnBA.js} +1 -1
- package/dist/client/assets/{constants-DWChG_gh.js → constants-DoKzupGF.js} +1 -1
- package/dist/client/assets/{dialog-U3vhhaTY.js → dialog-CLKO8eiC.js} +1 -1
- package/dist/client/assets/{domain-settings-Df_AVfSP.js → domain-settings-nusKZpFJ.js} +1 -1
- package/dist/client/assets/{drawer-CHErHUts.js → drawer-0laKdMkc.js} +1 -1
- package/dist/client/assets/{dropdown-menu-LTGIQdd2.js → dropdown-menu-C6nHRZ2x.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DQr-qgoI.js → dynamic-plugin-layout-CSPf8__W.js} +1 -1
- package/dist/client/assets/{empty-state-BsHUWcel.js → empty-state-BzDFSsXq.js} +1 -1
- package/dist/client/assets/{empty-state-BFgJp7mt.js → empty-state-vECJlBES.js} +1 -1
- package/dist/client/assets/{extract-connection-data-oVTIsFY5.js → extract-connection-data-BQaFyw9j.js} +1 -1
- package/dist/client/assets/{features--2Py51uQ.js → features-CSTJcrQu.js} +1 -1
- package/dist/client/assets/{form-D9KcIdYm.js → form-4fwiytJp.js} +1 -1
- package/dist/client/assets/general-W97mtxcC.js +1 -0
- package/dist/client/assets/{index-DDe7jF1Q.js → index-0IF7sjd1.js} +1 -1
- package/dist/client/assets/index-2lpt-nMb.js +1 -0
- package/dist/client/assets/{index-BVI1Podc.js → index-B5kxSh6_.js} +1 -1
- package/dist/client/assets/{index-BC2QV0vV.js → index-BVABOQyU.js} +3 -3
- package/dist/client/assets/{index-BY4tnJ8n.js → index-BayHbTyS.js} +1 -1
- package/dist/client/assets/{index-BKYuq1nk.js → index-BdDZPhkl.js} +1 -1
- package/dist/client/assets/{index-Ck21eYLb.js → index-BjVS_mPm.js} +1 -1
- package/dist/client/assets/{index-Bn0n2Tn5.js → index-ChG_GYbX.js} +2 -2
- package/dist/client/assets/{index-XYnQWjlr.js → index-DCNPBqJL.js} +2 -2
- package/dist/client/assets/{index-DlTZXAh7.js → index-DNkdomFO.js} +1 -1
- package/dist/client/assets/{index-BjIWAww2.js → index-DnI3Jcb3.js} +1 -1
- package/dist/client/assets/{index-DSeLALm0.js → index-Dw08Q_qj.js} +1 -1
- package/dist/client/assets/index-VzlCgk2d.js +1 -0
- package/dist/client/assets/{index-DAG4cu8y.js → index-_zHnBa5f.js} +1 -1
- package/dist/client/assets/{index-BMWhZkJH.js → index-lXmRmMe3.js} +1 -1
- package/dist/client/assets/{index-CRq27LIF.js → index-rCj8jF9g.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BuP6-BnP.js → infiniteQueryObserver-BkQFPIb1.js} +1 -1
- package/dist/client/assets/{input-C0cHvFsP.js → input-cSChLxlO.js} +1 -1
- package/dist/client/assets/{integration-icon-Db7fTukH.js → integration-icon-BeqPJGem.js} +1 -1
- package/dist/client/assets/{label-C-b-mt3k.js → label-qFek-Hzr.js} +1 -1
- package/dist/client/assets/{layout-DVOt2okr.js → layout-DyNIFXA1.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-Bu0aNy4u.js → lean-canvas-recruit-modal-CmsrBNbt.js} +1 -1
- package/dist/client/assets/{login-gnnJy4hU.js → login-fxkA0YmB.js} +1 -1
- package/dist/client/assets/members-CezvkHQT.js +3 -0
- package/dist/client/assets/{monaco-editor-DxUxs9LV.js → monaco-editor-BY9ngL3n.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CeOh5u1r.js → monitoring-stats-row-C87wH1cE.js} +1 -1
- package/dist/client/assets/{oauth-callback-Cj2vHTqt.js → oauth-callback-CkAo5fto.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C82hMcEJ.js → oauth-callback-ai-provider-CVNg6NIE.js} +1 -1
- package/dist/client/assets/{onboarding-B4IxAukM.js → onboarding-DGklDi6-.js} +1 -1
- package/dist/client/assets/{org-layout-3WdeVqpU.js → org-layout-JfVHDBF4.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-mdTwEf0P.js → org-plugin-layout-nchD6z6X.js} +1 -1
- package/dist/client/assets/{pair-Bcvdi-3H.js → pair-7_poUBO_.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CDuOKPoQ.js → plugin-empty-state-BoHwceCP.js} +1 -1
- package/dist/client/assets/{plugin-header-Bl_jJCpR.js → plugin-header-B7x435yF.js} +1 -1
- package/dist/client/assets/{plugin-layout-BaKtqBSh.js → plugin-layout-lMPEsmyE.js} +1 -1
- package/dist/client/assets/{popover-9zp4cKfF.js → popover-CXTQ1pZp.js} +1 -1
- package/dist/client/assets/{profile-Byy_H5s-.js → profile-B7Sm0x87.js} +1 -1
- package/dist/client/assets/{project-app-view-D8t5BK_c.js → project-app-view-CCFwwwFL.js} +1 -1
- package/dist/client/assets/registry-CGoPlkDA.js +2 -0
- package/dist/client/assets/{registry-layout-BR-KKTEl.js → registry-layout-C90BJ6Rq.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DPKy79PP.js → required-auth-layout-HSIIJt__.js} +1 -1
- package/dist/client/assets/{reset-password-DfZzTSNp.js → reset-password-C4MrTg2U.js} +1 -1
- package/dist/client/assets/roles-Cxh0Bdz-.js +1 -0
- package/dist/client/assets/{scroll-area-CTWKzmcY.js → scroll-area-DBp5wOIC.js} +1 -1
- package/dist/client/assets/{search-input-Bkbw9XvQ.js → search-input-ZAyrquFx.js} +1 -1
- package/dist/client/assets/{select-rt68l1g_.js → select-CeexIfr3.js} +1 -1
- package/dist/client/assets/{select-model-CQYug9E9.js → select-model-DTMG5QxV.js} +1 -1
- package/dist/client/assets/{settings-layout-BTinptVV.js → settings-layout-vPJQ-S1Z.js} +1 -1
- package/dist/client/assets/{settings-section-BIiOcEee.js → settings-section-BnMkp9Ky.js} +1 -1
- package/dist/client/assets/{shell-layout-ti4P0o8w.js → shell-layout-u2G0LiBx.js} +1 -1
- package/dist/client/assets/{skeleton-DQqcYIUR.js → skeleton-C5xkidPH.js} +1 -1
- package/dist/client/assets/{sso-DtEJ6K21.js → sso--dNq6AVx.js} +1 -1
- package/dist/client/assets/{store-BlkOQMDv.js → store-X7XjGNJQ.js} +1 -1
- package/dist/client/assets/store-registry-Chj3l7GJ.js +2 -0
- package/dist/client/assets/{switch-Dd-fbXw9.js → switch-CO8ELkEz.js} +1 -1
- package/dist/client/assets/{table-UGp85pBs.js → table-BFGAzwxV.js} +1 -1
- package/dist/client/assets/{tabs-Bajmp5LL.js → tabs-DKutPh-7.js} +1 -1
- package/dist/client/assets/{task-status-D2ZncahY.js → task-status-B_agjVRL.js} +1 -1
- package/dist/client/assets/{textarea-Ds8u2czk.js → textarea-DsA14nCU.js} +1 -1
- package/dist/client/assets/{toggle-group-CrNuUyQT.js → toggle-group-C1gRrQ9h.js} +1 -1
- package/dist/client/assets/{tools-list-C9sZCS-d.js → tools-list-BFfWcpMA.js} +1 -1
- package/dist/client/assets/{tooltip-CkzGOY_H.js → tooltip-D6U_mOrV.js} +1 -1
- package/dist/client/assets/{types-BQS1EcA_.js → types-CdaeT_-k.js} +1 -1
- package/dist/client/assets/{use-ai-providers-D8PM532H.js → use-ai-providers-CLMcGum-.js} +1 -1
- package/dist/client/assets/{use-collections-s48OQ83y.js → use-collections-B3Xa3dKk.js} +1 -1
- package/dist/client/assets/{use-connection-Q2SEpogi.js → use-connection-UQYyaO6_.js} +1 -1
- package/dist/client/assets/{use-copy-CBB3IfKo.js → use-copy-DnJa5Wna.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-C25QZ7ga.js → use-create-virtual-mcp-JDziG09i.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-2jo7Z1ub.js → use-decopilot-events-BEXgeJT0.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Cerb12qV.js → use-delete-connection-HjSBghMT.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DhiqUieY.js → use-infinite-scroll-pE0yY5YF.js} +1 -1
- package/dist/client/assets/{use-list-state-BLzfpMTR.js → use-list-state-qucbexq7.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CODd7jbk.js → use-mcp-tools-10Xveav6.js} +1 -1
- package/dist/client/assets/use-members-DYi4jSpk.js +1 -0
- package/dist/client/assets/{use-navigate-to-agent-BIpRywxJ.js → use-navigate-to-agent-DjzouovW.js} +1 -1
- package/dist/client/assets/use-org-auth-client-C5VSPyTf.js +1 -0
- package/dist/client/assets/{use-org-sso-B_zJ7IWb.js → use-org-sso-B4kcBKk_.js} +1 -1
- package/dist/client/assets/use-organization-roles-CqY2IBkE.js +1 -0
- package/dist/client/assets/{use-organization-settings-69gOseUx.js → use-organization-settings-DL07J8Vx.js} +1 -1
- package/dist/client/assets/{use-registry-connections-C4iFJ600.js → use-registry-connections-HO8ZDwQn.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BJSeHGsn.js → use-status-sounds-Dzd2wfFW.js} +1 -1
- package/dist/client/assets/{use-tasks-Q8L8ocme.js → use-tasks-DMNq5MhB.js} +1 -1
- package/dist/client/assets/{use-view-mode-lvgEn118.js → use-view-mode-BjcxKjKE.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BYV6DlKB.js → use-virtual-mcp-DZEy75YH.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Co9WNPPX.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-BbwxgHZr.js +1 -0
- package/dist/client/assets/{user-B6WmZaTV.js → user-BlRUTTNb.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DVYpzTeC.js → view-mode-toggle-RGExIMou.js} +1 -1
- package/dist/client/assets/{workflow-CJZscJ90.js → workflow-C1SElIVm.js} +1 -1
- package/dist/client/assets/workflow-detail-BR_Ju77C.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/dist/server/node_modules/get-east-asian-width/index.js +30 -0
- package/dist/server/node_modules/get-east-asian-width/lookup-data.js +18 -0
- package/dist/server/node_modules/get-east-asian-width/lookup.js +135 -0
- package/dist/server/node_modules/get-east-asian-width/package.json +71 -0
- package/dist/server/node_modules/get-east-asian-width/readme.md +65 -0
- package/dist/server/node_modules/get-east-asian-width/utilities.js +24 -0
- package/dist/server/node_modules/{xtend → pg}/LICENSE +7 -6
- package/dist/server/node_modules/pg/README.md +95 -0
- package/dist/server/node_modules/pg/esm/index.mjs +20 -0
- package/dist/server/node_modules/pg/lib/client.js +743 -0
- package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
- package/dist/server/node_modules/pg/lib/connection.js +221 -0
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
- package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/dist/server/node_modules/pg/lib/defaults.js +91 -0
- package/dist/server/node_modules/pg/lib/index.js +73 -0
- package/dist/server/node_modules/pg/lib/native/client.js +323 -0
- package/dist/server/node_modules/pg/lib/native/index.js +2 -0
- package/dist/server/node_modules/pg/lib/native/query.js +165 -0
- package/dist/server/node_modules/pg/lib/query.js +252 -0
- package/dist/server/node_modules/pg/lib/result.js +109 -0
- package/dist/server/node_modules/pg/lib/stream.js +83 -0
- package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/dist/server/node_modules/pg/lib/utils.js +217 -0
- package/dist/server/node_modules/pg/package.json +76 -0
- package/dist/server/node_modules/strip-ansi/index.d.ts +15 -0
- package/dist/server/node_modules/strip-ansi/index.js +19 -0
- package/dist/server/node_modules/{mimic-fn → strip-ansi}/license +1 -1
- package/dist/server/node_modules/{ansi-styles → strip-ansi}/package.json +17 -12
- package/dist/server/node_modules/strip-ansi/readme.md +37 -0
- package/dist/server/server.js +249 -249
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-Cyq2bO_1.js +0 -1
- package/dist/client/assets/connection-detail-C7YX5R9g.js +0 -1
- package/dist/client/assets/general-B3-bdB-A.js +0 -1
- package/dist/client/assets/index-CT5IWILX.js +0 -1
- package/dist/client/assets/index-DLLxA9VA.js +0 -1
- package/dist/client/assets/members-DvR6XPbA.js +0 -3
- package/dist/client/assets/registry-twLci_qW.js +0 -2
- package/dist/client/assets/roles-BX09eeZ2.js +0 -1
- package/dist/client/assets/store-registry-CfXgf26T.js +0 -2
- package/dist/client/assets/use-members-CYdKPSkq.js +0 -1
- package/dist/client/assets/use-organization-roles-9gBEeLeI.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BkNuxXHJ.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CMhS0p47.js +0 -1
- package/dist/client/assets/workflow-detail-DyTvPAnr.js +0 -1
- package/dist/server/node_modules/ansi-styles/index.d.ts +0 -236
- package/dist/server/node_modules/ansi-styles/index.js +0 -223
- package/dist/server/node_modules/ansi-styles/readme.md +0 -173
- package/dist/server/node_modules/mimic-fn/index.d.ts +0 -54
- package/dist/server/node_modules/mimic-fn/index.js +0 -13
- package/dist/server/node_modules/mimic-fn/package.json +0 -42
- package/dist/server/node_modules/mimic-fn/readme.md +0 -69
- package/dist/server/node_modules/pg-int8/LICENSE +0 -13
- package/dist/server/node_modules/pg-int8/README.md +0 -16
- package/dist/server/node_modules/pg-int8/index.js +0 -100
- package/dist/server/node_modules/pg-int8/package.json +0 -24
- package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
- package/dist/server/node_modules/postgres-array/index.js +0 -97
- package/dist/server/node_modules/postgres-array/license +0 -21
- package/dist/server/node_modules/postgres-array/package.json +0 -35
- package/dist/server/node_modules/postgres-array/readme.md +0 -43
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/license +0 -21
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/license +0 -21
- package/dist/server/node_modules/postgres-date/package.json +0 -33
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
- package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/license +0 -21
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
- package/dist/server/node_modules/split2/LICENSE +0 -13
- package/dist/server/node_modules/split2/README.md +0 -85
- package/dist/server/node_modules/split2/bench.js +0 -27
- package/dist/server/node_modules/split2/index.js +0 -141
- package/dist/server/node_modules/split2/package.json +0 -39
- package/dist/server/node_modules/split2/test.js +0 -409
- package/dist/server/node_modules/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
- /package/dist/server/node_modules/{ansi-styles → get-east-asian-width}/license +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as k,s as Re,K as ce,aM as it,j as s,c as $,l as _e,B as ne,e as q,n as Ge,o as De,z as rt,C as ot,a as we,x as pe,t as Ae,b as re,H as ye,aK as he,J as se,aI as Le,a_ as ve,E as lt,f as at,d as ct}from"./index-Bn0n2Tn5.js";import{u as dt}from"./use-organization-roles-9gBEeLeI.js";import{B as fe}from"./badge-BJnKVqQg.js";import{A as Ue,a as ke,b as Ve,c as Be,d as ze,f as Ye,e as He,g as $e}from"./alert-dialog-BY7wdwxM.js";import{D as mt,a as ut,b as gt,c as Et}from"./dropdown-menu-LTGIQdd2.js";import{i as Tt}from"./DotsVertical-q5wudUQb.js";import{i as Ke}from"./Lock01-Bdpg3Hx_.js";import{s as Ce}from"./Plus-B1zoIOQx.js";import{s as pt}from"./Trash01-CGGNK3g-.js";import{C as ft}from"./collection-table-wrapper-DEzISF1y.js";import{P as te}from"./index-BY4tnJ8n.js";import{E as je}from"./empty-state-BFgJp7mt.js";import{S as be}from"./search-input-Bkbw9XvQ.js";import{P as Fe,D as Qe}from"./ai-providers-logos-D6a8kmGH.js";import{I as Se}from"./integration-icon-Db7fTukH.js";import{u as _t}from"./use-infinite-scroll-DhiqUieY.js";import{C as Oe}from"./checkbox-CouoIES-.js";import{i as It}from"./RefreshCcw01-DhQjzDQL.js";import{u as ht}from"./useSuspenseInfiniteQuery-CMhS0p47.js";import{u as Rt,S as xt}from"./constants-DWChG_gh.js";import{C as Nt}from"./collection-search-3JVNad_3.js";import{u as Ze}from"./use-members-CYdKPSkq.js";import{u as Ct}from"./use-connection-Q2SEpogi.js";import{u as At,c as bt}from"./use-ai-providers-D8PM532H.js";import{A as qe}from"./avatar-DRNf61dD.js";import{S as oe}from"./switch-Dd-fbXw9.js";import{c as ue,T as ge,a as Ee,b as Te}from"./tooltip-CkzGOY_H.js";import{t as St}from"./ChevronDown-BMsVDJMd.js";import{i as Ot}from"./ChevronRight-DNaFnNR_.js";import{a as yt}from"./SearchMd-tlcXyQa_.js";import{i as Pe}from"./X-XvFOaH_0.js";import"./table-UGp85pBs.js";import"./XClose-CeINnhme.js";import"./Container-BbxUmzld.js";import"./agent-icon-DdfLWWFz.js";import"./AlertCircle-BefAeM6u.js";import"./Tool01-CWU0CUYW.js";import"./ArrowNarrowLeft-ctHZC7IK.js";import"./XCircle-CBqb98Hh.js";import"./ArrowUpRight-Dw5rxpDu.js";import"./ZapSquare-Ri9lH1zf.js";import"./Users03-BNN6AS-n.js";import"./CheckCircle-3lbo4DOp.js";import"./ChevronUp-Ba2YtjVA.js";import"./Star01-Cl5wO8v8.js";import"./Palette-CSbP1WU6.js";import"./LinkExternal01-B-rWZEWZ.js";import"./Sun-MpjnKSLA.js";import"./Play-BwE8tx_2.js";import"./Settings02-NVTdZYn8.js";import"./Shield01-Cczh_kLJ.js";import"./User01-BwcffllD.js";import"./Zap-CDrmsf2C.js";import"./infiniteQueryObserver-BuP6-BnP.js";import"./use-collections-s48OQ83y.js";const Xe=[{name:"ORGANIZATION_CREATE",description:"Create a new organization",category:"Organizations"},{name:"ORGANIZATION_LIST",description:"List organizations",category:"Organizations"},{name:"ORGANIZATION_GET",description:"View organization details",category:"Organizations"},{name:"ORGANIZATION_UPDATE",description:"Update organization",category:"Organizations"},{name:"ORGANIZATION_DELETE",description:"Delete organization",category:"Organizations",dangerous:!0},{name:"ORGANIZATION_SETTINGS_GET",description:"View organization settings",category:"Organizations"},{name:"ORGANIZATION_SETTINGS_UPDATE",description:"Update organization settings",category:"Organizations"},{name:"BRAND_CONTEXT_LIST",description:"List brand contexts",category:"Organizations"},{name:"BRAND_CONTEXT_GET",description:"View brand context",category:"Organizations"},{name:"BRAND_CONTEXT_CREATE",description:"Create brand context",category:"Organizations"},{name:"BRAND_CONTEXT_UPDATE",description:"Update brand context",category:"Organizations"},{name:"BRAND_CONTEXT_DELETE",description:"Delete brand context",category:"Organizations",dangerous:!0},{name:"BRAND_CONTEXT_EXTRACT",description:"Extract brand context from website",category:"Organizations"},{name:"BRAND_GET",description:"Get brand (binding)",category:"Organizations"},{name:"BRAND_LIST",description:"List brands (binding)",category:"Organizations"},{name:"ORGANIZATION_DOMAIN_GET",description:"Get organization domain claim",category:"Organizations"},{name:"ORGANIZATION_DOMAIN_SET",description:"Set organization domain claim",category:"Organizations"},{name:"ORGANIZATION_DOMAIN_UPDATE",description:"Update organization domain settings",category:"Organizations"},{name:"ORGANIZATION_DOMAIN_CLEAR",description:"Clear organization domain claim",category:"Organizations"},{name:"ORGANIZATION_MEMBER_ADD",description:"Add members",category:"Organizations"},{name:"ORGANIZATION_MEMBER_REMOVE",description:"Remove members",category:"Organizations",dangerous:!0},{name:"ORGANIZATION_MEMBER_LIST",description:"List members",category:"Organizations"},{name:"ORGANIZATION_MEMBER_UPDATE_ROLE",description:"Update member roles",category:"Organizations"},{name:"COLLECTION_CONNECTIONS_CREATE",description:"Create connections",category:"Connections"},{name:"COLLECTION_CONNECTIONS_LIST",description:"List connections",category:"Connections"},{name:"COLLECTION_CONNECTIONS_GET",description:"View connection details",category:"Connections"},{name:"COLLECTION_CONNECTIONS_UPDATE",description:"Update connections",category:"Connections"},{name:"COLLECTION_CONNECTIONS_DELETE",description:"Delete connections",category:"Connections",dangerous:!0},{name:"CONNECTION_TEST",description:"Test connections",category:"Connections"},{name:"DATABASES_RUN_SQL",description:"Run SQL queries",category:"Connections",dangerous:!0},{name:"COLLECTION_VIRTUAL_MCP_CREATE",description:"Create virtual MCPs",category:"Virtual MCPs"},{name:"COLLECTION_VIRTUAL_MCP_LIST",description:"List virtual MCPs",category:"Virtual MCPs"},{name:"COLLECTION_VIRTUAL_MCP_GET",description:"View virtual MCP details",category:"Virtual MCPs"},{name:"COLLECTION_VIRTUAL_MCP_UPDATE",description:"Update virtual MCPs",category:"Virtual MCPs"},{name:"COLLECTION_VIRTUAL_MCP_DELETE",description:"Delete virtual MCPs",category:"Virtual MCPs",dangerous:!0},{name:"MONITORING_LOG_GET",description:"View monitoring log details",category:"Monitoring"},{name:"MONITORING_LOGS_LIST",description:"List monitoring logs",category:"Monitoring"},{name:"MONITORING_STATS",description:"View monitoring statistics",category:"Monitoring"},{name:"API_KEY_CREATE",description:"Create API key",category:"API Keys"},{name:"API_KEY_LIST",description:"List API keys",category:"API Keys"},{name:"API_KEY_UPDATE",description:"Update API key",category:"API Keys"},{name:"API_KEY_DELETE",description:"Delete API key",category:"API Keys",dangerous:!0},{name:"EVENT_PUBLISH",description:"Publish events",category:"Event Bus"},{name:"EVENT_SUBSCRIBE",description:"Subscribe to events",category:"Event Bus"},{name:"EVENT_UNSUBSCRIBE",description:"Unsubscribe from events",category:"Event Bus"},{name:"EVENT_CANCEL",description:"Cancel recurring events",category:"Event Bus"},{name:"EVENT_ACK",description:"Acknowledge event delivery",category:"Event Bus"},{name:"EVENT_SUBSCRIPTION_LIST",description:"List event subscriptions",category:"Event Bus"},{name:"EVENT_SYNC_SUBSCRIPTIONS",description:"Sync subscriptions to desired state",category:"Event Bus"},{name:"USER_GET",description:"Get a user by id",category:"Users"},{name:"COLLECTION_THREADS_CREATE",description:"Create threads",category:"Threads"},{name:"COLLECTION_THREADS_LIST",description:"List threads",category:"Threads"},{name:"COLLECTION_THREADS_GET",description:"View thread details",category:"Threads"},{name:"COLLECTION_THREADS_UPDATE",description:"Update threads",category:"Threads"},{name:"COLLECTION_THREADS_DELETE",description:"Delete threads",category:"Threads",dangerous:!0},{name:"COLLECTION_THREAD_MESSAGES_LIST",description:"List thread messages",category:"Threads"},{name:"TAGS_LIST",description:"List organization tags",category:"Tags"},{name:"TAGS_CREATE",description:"Create organization tag",category:"Tags"},{name:"TAGS_DELETE",description:"Delete organization tag",category:"Tags",dangerous:!0},{name:"MEMBER_TAGS_GET",description:"Get member tags",category:"Tags"},{name:"MEMBER_TAGS_SET",description:"Set member tags",category:"Tags"},{name:"AUTOMATION_CREATE",description:"Create automation",category:"Automations"},{name:"AUTOMATION_GET",description:"View automation details",category:"Automations"},{name:"AUTOMATION_LIST",description:"List automations",category:"Automations"},{name:"AUTOMATION_UPDATE",description:"Update automation",category:"Automations"},{name:"AUTOMATION_DELETE",description:"Delete automation",category:"Automations",dangerous:!0},{name:"AUTOMATION_TRIGGER_ADD",description:"Add trigger to automation",category:"Automations"},{name:"AUTOMATION_TRIGGER_REMOVE",description:"Remove trigger from automation",category:"Automations"},{name:"AUTOMATION_RUN",description:"Manually trigger an automation run",category:"Automations"},{name:"VIRTUAL_MCP_PLUGIN_CONFIG_GET",description:"View virtual MCP plugin configuration",category:"Virtual MCPs"},{name:"VIRTUAL_MCP_PLUGIN_CONFIG_UPDATE",description:"Update virtual MCP plugin configuration",category:"Virtual MCPs"},{name:"VIRTUAL_MCP_PINNED_VIEWS_UPDATE",description:"Update virtual MCP pinned sidebar views",category:"Virtual MCPs"},{name:"AI_PROVIDERS_LIST",description:"List available AI providers",category:"AI Providers"},{name:"AI_PROVIDERS_LIST_MODELS",description:"List AI provider models",category:"AI Providers"},{name:"AI_PROVIDERS_ACTIVE",description:"List active AI providers",category:"AI Providers"},{name:"AI_PROVIDER_KEY_CREATE",description:"Store AI provider API key",category:"AI Providers"},{name:"AI_PROVIDER_KEY_LIST",description:"List AI provider API keys",category:"AI Providers"},{name:"AI_PROVIDER_KEY_DELETE",description:"Delete AI provider API key",category:"AI Providers",dangerous:!0},{name:"AI_PROVIDER_OAUTH_URL",description:"Get OAuth URL for provider",category:"AI Providers"},{name:"AI_PROVIDER_OAUTH_EXCHANGE",description:"Exchange OAuth code for API key",category:"AI Providers"},{name:"AI_PROVIDER_PROVISION_KEY",description:"Auto-provision API key for a provider",category:"AI Providers"},{name:"AI_PROVIDER_TOPUP_URL",description:"Get checkout URL to top up provider credits",category:"AI Providers"},{name:"AI_PROVIDER_CREDITS",description:"Get current credit balance for a provider",category:"AI Providers"},{name:"AI_PROVIDER_CLI_ACTIVATE",description:"Activate Claude Code via local CLI",category:"AI Providers"},{name:"LIST_OBJECTS",description:"List objects in storage",category:"Object Storage"},{name:"GET_OBJECT_METADATA",description:"Get object metadata",category:"Object Storage"},{name:"GET_PRESIGNED_URL",description:"Generate download URL",category:"Object Storage"},{name:"PUT_PRESIGNED_URL",description:"Generate upload URL",category:"Object Storage"},{name:"DELETE_OBJECT",description:"Delete object",category:"Object Storage",dangerous:!0},{name:"DELETE_OBJECTS",description:"Delete multiple objects",category:"Object Storage",dangerous:!0},{name:"COLLECTION_REGISTRY_APP_LIST",description:"List registry apps",category:"Registry"},{name:"COLLECTION_REGISTRY_APP_GET",description:"Get registry app details",category:"Registry"},{name:"COLLECTION_REGISTRY_APP_VERSIONS",description:"List registry app versions",category:"Registry"},{name:"COLLECTION_REGISTRY_APP_FILTERS",description:"Get registry app filters",category:"Registry"},{name:"REGISTRY_ITEM_LIST",description:"List private registry items",category:"Registry"},{name:"REGISTRY_ITEM_SEARCH",description:"Search registry items",category:"Registry"},{name:"REGISTRY_ITEM_GET",description:"Get registry item details",category:"Registry"},{name:"REGISTRY_ITEM_VERSIONS",description:"List registry item versions",category:"Registry"},{name:"REGISTRY_ITEM_CREATE",description:"Create registry item",category:"Registry"},{name:"REGISTRY_ITEM_BULK_CREATE",description:"Bulk create registry items",category:"Registry"},{name:"REGISTRY_ITEM_UPDATE",description:"Update registry item",category:"Registry"},{name:"REGISTRY_ITEM_DELETE",description:"Delete registry item",category:"Registry",dangerous:!0},{name:"REGISTRY_ITEM_FILTERS",description:"Get registry item filters",category:"Registry"},{name:"REGISTRY_DISCOVER_TOOLS",description:"Discover tools from MCP server",category:"Registry"},{name:"REGISTRY_AI_GENERATE",description:"AI-generate registry content",category:"Registry"},{name:"REGISTRY_PUBLISH_REQUEST_LIST",description:"List publish requests",category:"Registry"},{name:"REGISTRY_PUBLISH_REQUEST_REVIEW",description:"Review publish request",category:"Registry"},{name:"REGISTRY_PUBLISH_REQUEST_COUNT",description:"Count pending publish requests",category:"Registry"},{name:"REGISTRY_PUBLISH_REQUEST_DELETE",description:"Delete publish request",category:"Registry",dangerous:!0},{name:"REGISTRY_PUBLISH_API_KEY_GENERATE",description:"Generate publish API key",category:"Registry"},{name:"REGISTRY_PUBLISH_API_KEY_LIST",description:"List publish API keys",category:"Registry"},{name:"REGISTRY_PUBLISH_API_KEY_REVOKE",description:"Revoke publish API key",category:"Registry",dangerous:!0},{name:"REGISTRY_MONITOR_RUN_START",description:"Start monitor run",category:"Registry"},{name:"REGISTRY_MONITOR_RUN_LIST",description:"List monitor runs",category:"Registry"},{name:"REGISTRY_MONITOR_RUN_GET",description:"Get monitor run details",category:"Registry"},{name:"REGISTRY_MONITOR_RUN_CANCEL",description:"Cancel monitor run",category:"Registry"},{name:"REGISTRY_MONITOR_RESULT_LIST",description:"List monitor results",category:"Registry"},{name:"REGISTRY_MONITOR_CONNECTION_LIST",description:"List monitor connections",category:"Registry"},{name:"REGISTRY_MONITOR_CONNECTION_SYNC",description:"Sync monitor connections",category:"Registry"},{name:"REGISTRY_MONITOR_CONNECTION_UPDATE_AUTH",description:"Update monitor connection auth",category:"Registry"},{name:"REGISTRY_MONITOR_SCHEDULE_SET",description:"Set monitor schedule",category:"Registry"},{name:"REGISTRY_MONITOR_SCHEDULE_CANCEL",description:"Cancel monitor schedule",category:"Registry"},{name:"VM_START",description:"Start a Freestyle VM with dev server preview",category:"VM"},{name:"VM_DELETE",description:"Stop and delete a Freestyle VM",category:"VM"},{name:"GITHUB_LIST_USER_ORGS",description:"List GitHub user's personal account and organizations",category:"GitHub"}],Lt={ORGANIZATION_CREATE:"Create organization",ORGANIZATION_LIST:"List organizations",ORGANIZATION_GET:"View organization details",ORGANIZATION_UPDATE:"Update organization",ORGANIZATION_DELETE:"Delete organization",ORGANIZATION_SETTINGS_GET:"View organization settings",ORGANIZATION_SETTINGS_UPDATE:"Update organization settings",BRAND_CONTEXT_LIST:"List brand contexts",BRAND_CONTEXT_GET:"View brand context",BRAND_CONTEXT_CREATE:"Create brand context",BRAND_CONTEXT_UPDATE:"Update brand context",BRAND_CONTEXT_DELETE:"Delete brand context",BRAND_CONTEXT_EXTRACT:"Extract brand from website",BRAND_GET:"Get brand",BRAND_LIST:"List brands",ORGANIZATION_DOMAIN_GET:"Get domain claim",ORGANIZATION_DOMAIN_SET:"Set domain claim",ORGANIZATION_DOMAIN_UPDATE:"Update domain settings",ORGANIZATION_DOMAIN_CLEAR:"Clear domain claim",ORGANIZATION_MEMBER_LIST:"List members",ORGANIZATION_MEMBER_ADD:"Add members",ORGANIZATION_MEMBER_REMOVE:"Remove members",ORGANIZATION_MEMBER_UPDATE_ROLE:"Update member roles",COLLECTION_CONNECTIONS_LIST:"List connections",COLLECTION_CONNECTIONS_GET:"View connection details",COLLECTION_CONNECTIONS_CREATE:"Create connections",COLLECTION_CONNECTIONS_UPDATE:"Update connections",COLLECTION_CONNECTIONS_DELETE:"Delete connections",CONNECTION_TEST:"Test connections",DATABASES_RUN_SQL:"Run SQL queries",COLLECTION_VIRTUAL_MCP_CREATE:"Create virtual MCPs",COLLECTION_VIRTUAL_MCP_LIST:"List virtual MCPs",COLLECTION_VIRTUAL_MCP_GET:"View virtual MCP details",COLLECTION_VIRTUAL_MCP_UPDATE:"Update virtual MCPs",COLLECTION_VIRTUAL_MCP_DELETE:"Delete virtual MCPs",MONITORING_LOG_GET:"View monitoring log details",MONITORING_LOGS_LIST:"List monitoring logs",MONITORING_STATS:"View monitoring statistics",API_KEY_CREATE:"Create API key",API_KEY_LIST:"List API keys",API_KEY_UPDATE:"Update API key",API_KEY_DELETE:"Delete API key",EVENT_PUBLISH:"Publish events",EVENT_SUBSCRIBE:"Subscribe to events",EVENT_UNSUBSCRIBE:"Unsubscribe from events",EVENT_CANCEL:"Cancel recurring events",EVENT_ACK:"Acknowledge event delivery",EVENT_SUBSCRIPTION_LIST:"List event subscriptions",EVENT_SYNC_SUBSCRIPTIONS:"Sync subscriptions to desired state",USER_GET:"Get user by id",COLLECTION_THREADS_CREATE:"Create threads",COLLECTION_THREADS_LIST:"List threads",COLLECTION_THREADS_GET:"View thread details",COLLECTION_THREADS_UPDATE:"Update threads",COLLECTION_THREADS_DELETE:"Delete threads",COLLECTION_THREAD_MESSAGES_LIST:"List thread messages",TAGS_LIST:"List organization tags",TAGS_CREATE:"Create organization tag",TAGS_DELETE:"Delete organization tag",MEMBER_TAGS_GET:"Get member tags",MEMBER_TAGS_SET:"Set member tags",VIRTUAL_MCP_PLUGIN_CONFIG_GET:"View plugin config",VIRTUAL_MCP_PLUGIN_CONFIG_UPDATE:"Update plugin config",VIRTUAL_MCP_PINNED_VIEWS_UPDATE:"Update pinned views",AUTOMATION_CREATE:"Create automation",AUTOMATION_GET:"View automation details",AUTOMATION_LIST:"List automations",AUTOMATION_UPDATE:"Update automation",AUTOMATION_DELETE:"Delete automation",AUTOMATION_TRIGGER_ADD:"Add trigger",AUTOMATION_TRIGGER_REMOVE:"Remove trigger",AUTOMATION_RUN:"Run automation",AI_PROVIDERS_LIST:"List AI providers",AI_PROVIDERS_LIST_MODELS:"List AI models",AI_PROVIDERS_ACTIVE:"List active providers",AI_PROVIDER_KEY_CREATE:"Create provider key",AI_PROVIDER_KEY_LIST:"List provider keys",AI_PROVIDER_KEY_DELETE:"Delete provider key",AI_PROVIDER_OAUTH_URL:"Get OAuth URL",AI_PROVIDER_OAUTH_EXCHANGE:"Connect via OAuth",AI_PROVIDER_PROVISION_KEY:"Auto-provision key",AI_PROVIDER_TOPUP_URL:"Get top-up checkout URL",AI_PROVIDER_CREDITS:"Get credit balance",AI_PROVIDER_CLI_ACTIVATE:"Activate Claude Code CLI",LIST_OBJECTS:"List objects",GET_OBJECT_METADATA:"Get object metadata",GET_PRESIGNED_URL:"Generate download URL",PUT_PRESIGNED_URL:"Generate upload URL",DELETE_OBJECT:"Delete object",DELETE_OBJECTS:"Delete multiple objects",COLLECTION_REGISTRY_APP_LIST:"List registry apps",COLLECTION_REGISTRY_APP_GET:"Get registry app",COLLECTION_REGISTRY_APP_VERSIONS:"List registry app versions",COLLECTION_REGISTRY_APP_FILTERS:"Get registry filters",REGISTRY_ITEM_LIST:"List registry items",REGISTRY_ITEM_SEARCH:"Search registry",REGISTRY_ITEM_GET:"Get registry item",REGISTRY_ITEM_VERSIONS:"List item versions",REGISTRY_ITEM_CREATE:"Create registry item",REGISTRY_ITEM_BULK_CREATE:"Bulk create items",REGISTRY_ITEM_UPDATE:"Update registry item",REGISTRY_ITEM_DELETE:"Delete registry item",REGISTRY_ITEM_FILTERS:"Get item filters",REGISTRY_DISCOVER_TOOLS:"Discover tools",REGISTRY_AI_GENERATE:"AI generate content",REGISTRY_PUBLISH_REQUEST_LIST:"List publish requests",REGISTRY_PUBLISH_REQUEST_REVIEW:"Review publish request",REGISTRY_PUBLISH_REQUEST_COUNT:"Count publish requests",REGISTRY_PUBLISH_REQUEST_DELETE:"Delete publish request",REGISTRY_PUBLISH_API_KEY_GENERATE:"Generate API key",REGISTRY_PUBLISH_API_KEY_LIST:"List API keys",REGISTRY_PUBLISH_API_KEY_REVOKE:"Revoke API key",REGISTRY_MONITOR_RUN_START:"Start monitor run",REGISTRY_MONITOR_RUN_LIST:"List monitor runs",REGISTRY_MONITOR_RUN_GET:"Get monitor run",REGISTRY_MONITOR_RUN_CANCEL:"Cancel monitor run",REGISTRY_MONITOR_RESULT_LIST:"List monitor results",REGISTRY_MONITOR_CONNECTION_LIST:"List monitor connections",REGISTRY_MONITOR_CONNECTION_SYNC:"Sync monitor connections",REGISTRY_MONITOR_CONNECTION_UPDATE_AUTH:"Update connection auth",REGISTRY_MONITOR_SCHEDULE_SET:"Set monitor schedule",REGISTRY_MONITOR_SCHEDULE_CANCEL:"Cancel monitor schedule",VM_START:"Start VM preview",VM_DELETE:"Delete VM preview",GITHUB_LIST_USER_ORGS:"List GitHub user orgs"};function vt(){const t={Organizations:[],Connections:[],"Virtual MCPs":[],Threads:[],Monitoring:[],Users:[],"API Keys":[],"Event Bus":[],Tags:[],"AI Providers":[],Automations:[],"Object Storage":[],Registry:[],GitHub:[],VM:[]};for(const e of Xe)t[e.category]?.push(e);return t}function jt(){return Xe.map(t=>({value:t.name,label:Lt[t.name],dangerous:t.dangerous}))}const Pt=k.memo(function(e){const n=q.c(21),{connection:i,isSelected:o,hasToolsEnabled:c,activeToolsCount:u,totalToolsCount:f,onSelect:d,onToggle:T}=e,g=o?"bg-accent/50":"hover:bg-muted/50";let r;n[0]!==g?(r=$("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",g),n[0]=g,n[1]=r):r=n[1];let E;n[2]!==i.icon||n[3]!==i.title?(E=s.jsx(Se,{icon:i.icon,name:i.title,size:"xs"}),n[2]=i.icon,n[3]=i.title,n[4]=E):E=n[4];let a;n[5]!==i.title?(a=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:i.title})}),n[5]=i.title,n[6]=a):a=n[6];let m;n[7]!==d||n[8]!==E||n[9]!==a?(m=s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:d,children:[E,a]}),n[7]=d,n[8]=E,n[9]=a,n[10]=m):m=n[10];let _;n[11]!==u||n[12]!==i.tools||n[13]!==c||n[14]!==T||n[15]!==f?(_=i.tools&&i.tools.length>0&&s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[u,"/",f]}),s.jsx(Oe,{checked:c,onCheckedChange:T,onClick:Dt})]}),n[11]=u,n[12]=i.tools,n[13]=c,n[14]=T,n[15]=f,n[16]=_):_=n[16];let x;return n[17]!==r||n[18]!==m||n[19]!==_?(x=s.jsxs("div",{className:r,children:[m,_]}),n[17]=r,n[18]=m,n[19]=_,n[20]=x):x=n[20],x}),Mt=k.memo(function(e){const n=q.c(18),{connectionId:i,tool:o,isSelected:c,onToggle:u}=e,f=`tool-${i}-${o.name}`,d=c?"text-foreground":"text-muted-foreground";let T;n[0]!==d?(T=$("text-sm font-medium",d),n[0]=d,n[1]=T):T=n[1];let g;n[2]!==T||n[3]!==o.name?(g=s.jsx("div",{className:"flex items-center gap-2 mb-1",children:s.jsx("span",{className:T,children:o.name})}),n[2]=T,n[3]=o.name,n[4]=g):g=n[4];let r;n[5]!==o.description?(r=o.description&&s.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:o.description}),n[5]=o.description,n[6]=r):r=n[6];let E;n[7]!==g||n[8]!==r?(E=s.jsxs("div",{className:"flex-1 min-w-0",children:[g,r]}),n[7]=g,n[8]=r,n[9]=E):E=n[9];const a=`tool-${i}-${o.name}`;let m;n[10]!==c||n[11]!==u||n[12]!==a?(m=s.jsx("div",{className:"flex items-center shrink-0",children:s.jsx(Oe,{id:a,checked:c,onCheckedChange:u,onClick:wt})}),n[10]=c,n[11]=u,n[12]=a,n[13]=m):m=n[13];let _;return n[14]!==f||n[15]!==E||n[16]!==m?(_=s.jsxs("label",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-muted/50 cursor-pointer group will-change-auto",htmlFor:f,children:[E,m]}),n[14]=f,n[15]=E,n[16]=m,n[17]=_):_=n[17],_});function Gt({toolSet:t,onToolSetChange:e,excludeVirtualMcpId:n,searchQuery:i}){const[o,c]=k.useState(""),u=i!==void 0?i:o,f=k.useDeferredValue(u),[d,T]=k.useState("all"),[g,r]=k.useState(!1),E=k.useRef(new Set(Object.keys(t))),{org:a}=Re(),m=Rt({connectionId:xt,orgId:a.id}),_=100,x=f.trim(),C=x?{operator:"or",conditions:[{field:["title"],operator:"contains",value:x},{field:["description"],operator:"contains",value:x}]}:void 0,v=!!n,A={...C&&{where:C},orderBy:[{field:["updated_at"],direction:"asc"}],limit:_,offset:0,...v&&{include_virtual:!0}},y=JSON.stringify(A),{data:b,fetchNextPage:N,hasNextPage:p,isFetchingNextPage:S}=ht({queryKey:ce.collectionListInfinite(m,a.id,"","CONNECTIONS",y),queryFn:async({pageParam:I=0})=>(await m.callTool({name:"COLLECTION_CONNECTIONS_LIST",arguments:{...C&&{where:C},orderBy:[{field:["updated_at"],direction:"asc"}],limit:_,offset:I,...v&&{include_virtual:!0}}})).structuredContent,initialPageParam:0,getNextPageParam:(I,U)=>{if(I?.hasMore)return U.reduce((K,ee)=>K+(ee?.items?.length??0),0)},staleTime:3e4}),l=b?.pages.flatMap(I=>I?.items??[])??[],h=_t(N,p??!1,S),P=n?l.filter(I=>I.connection_type!=="VIRTUAL"?!0:it(I.connection_url)!==n):l,j=E.current,R=[...j.values()].map(I=>P.find(U=>U.id===I)).filter(I=>I!==void 0),O=P.filter(I=>!j.has(I.id)),M=[...R,...O],Y=I=>{const U=t[I];return U!==void 0&&U.length>0},z=M.filter(I=>{if(d==="all")return!0;const U=Y(I.id);return d==="selected"?U:d==="unselected"?!U:!0}),[D,w]=k.useState(M[0]?.id??null),L=D?M.find(I=>I.id===D)??null:null,V=L?.tools??[],H=(I,U)=>t[I]?.includes(U)??!1,Q=(I,U)=>{const K=t[I]??[],ee=K.includes(U),Z={...t};if(ee){const J=K.filter(F=>F!==U);J.length===0?delete Z[I]:Z[I]=J}else Z[I]=[...K,U];e(Z)},X=I=>{const U=M.find(F=>F.id===I);if(!U?.tools)return;const K=t[I]??[],ee=U.tools.map(F=>F.name),Z=K.length>0&&ee.every(F=>K.includes(F)),J={...t};Z?delete J[I]:(J[I]=ee,w(I)),e(J)},W=I=>{w(I),r(!0)},ie=()=>{r(!1)};return s.jsxs("div",{className:"flex h-full",children:[s.jsxs("div",{className:$("w-full md:w-80 border-r border-border flex flex-col",g&&"hidden md:flex"),children:[i===void 0&&s.jsx(Nt,{value:o,onChange:c,placeholder:"Search MCP Servers..."}),s.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[s.jsx("button",{onClick:()=>T("all"),className:$("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"All"}),s.jsx("button",{onClick:()=>T("selected"),className:$("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Selected"}),s.jsx("button",{onClick:()=>T("unselected"),className:$("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Unselected"})]}),s.jsx("div",{className:"flex-1 overflow-auto",children:z.length===0?s.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:u?"No connections found":d==="selected"?"No servers selected":d==="unselected"?"No unselected servers":"No connections available"}):s.jsxs("div",{className:"p-2 space-y-1",children:[z.map(I=>{const U=I.tools?.length??0,K=t[I.id]?.length??0;return s.jsx(Pt,{connection:I,isSelected:D===I.id,hasToolsEnabled:Y(I.id),activeToolsCount:K,totalToolsCount:U,onSelect:()=>W(I.id),onToggle:()=>X(I.id)},I.id)}),s.jsx("div",{ref:h,className:"h-4"}),S&&s.jsx("div",{className:"flex justify-center py-3",children:s.jsx(_e,{size:18,className:"animate-spin text-muted-foreground"})})]})})]}),s.jsx("div",{className:$("flex-1 flex-col",g?"flex":"hidden md:flex"),children:L?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"md:hidden border-b border-border p-4 flex items-center gap-3",children:[s.jsx(ne,{variant:"ghost",size:"sm",onClick:ie,className:"h-8 w-8 p-0 shrink-0",children:s.jsx(It,{size:20})}),s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[s.jsx(Se,{icon:L.icon,name:L.title,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:L.title}),L.description&&s.jsx("p",{className:"text-sm text-muted-foreground truncate",children:L.description})]})]})]}),s.jsx("div",{className:"flex-1 overflow-auto p-4",children:V.length===0?s.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:"This connection has no tools available"}):s.jsx("div",{className:"space-y-2",children:V.map(I=>s.jsx(Mt,{connectionId:L.id,tool:I,isSelected:H(L.id,I.name),onToggle:()=>Q(L.id,I.name)},I.name))})})]}):s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("div",{className:"text-sm text-muted-foreground text-center",children:"Select a connection to view its tools"})})})]})}function Dt(t){return t.stopPropagation()}function wt(t){return t.stopPropagation()}const xe=["bg-red-500","bg-orange-500","bg-amber-500","bg-yellow-500","bg-lime-500","bg-green-500","bg-emerald-500","bg-teal-500","bg-cyan-500","bg-sky-500","bg-blue-500","bg-indigo-500","bg-violet-500","bg-purple-500","bg-fuchsia-500","bg-pink-500","bg-rose-500"],Ut={owner:"bg-red-500",admin:"bg-blue-500",user:"bg-green-500"};function Je(t){if(!t)return"bg-neutral-400";let e=0;for(let i=0;i<t.length;i++){const o=t.charCodeAt(i);e=(e<<5)-e+o,e=e&e}const n=Math.abs(e)%xe.length;return xe[n]??xe[0]}function Me(t,e){return e?Ut[t]??"bg-neutral-400":Je(t)}const kt=ye({role:ye({id:se().optional(),slug:se().optional(),label:se()}),allowAllStaticPermissions:ve(),staticPermissions:he(se()),toolSet:Le(se(),he(se())),allowAllModels:ve(),modelSet:Le(se(),he(se())),memberIds:he(se())});function We(t){return t?t.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2):"?"}function Vt(t){const e=q.c(34),{allowAllStaticPermissions:n,staticPermissions:i,onAllowAllChange:o,onPermissionsChange:c,readOnly:u,searchQuery:f}=t,d=u===void 0?!1:u,T=k.useDeferredValue(f);let g,r,E,a;if(e[0]!==n||e[1]!==T||e[2]!==o||e[3]!==c||e[4]!==d||e[5]!==i){const x=vt(),C=jt(),v=C.filter(l=>l.label.toLowerCase().includes(T.toLowerCase())),A=l=>{if(i.includes(l))c(i.filter(h=>h!==l));else{const h=[...i,l];h.length===C.length?(o(!0),c([])):c(h)}};E="flex flex-col h-full";const y=!d&&"hover:bg-muted/50 cursor-pointer";let b;e[10]!==y?(b=$("flex items-center justify-between px-4 py-3",y),e[10]=y,e[11]=b):b=e[11];let N;e[12]!==n||e[13]!==o||e[14]!==c||e[15]!==d?(N=()=>{d||(o(!n),c([]))},e[12]=n,e[13]=o,e[14]=c,e[15]=d,e[16]=N):N=e[16];let p;e[17]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx("span",{className:"text-sm font-medium",children:"All organization permissions"}),e[17]=p):p=e[17];let S;e[18]!==n||e[19]!==o||e[20]!==c||e[21]!==d?(S=s.jsx("div",{onClick:Kt,children:d?s.jsx(ue,{children:s.jsxs(ge,{children:[s.jsx(Ee,{asChild:!0,children:s.jsx("div",{children:s.jsx(oe,{checked:n,disabled:!0,onCheckedChange:$t})})}),s.jsx(Te,{children:s.jsx("p",{children:"Built-in role permissions cannot be changed"})})]})}):s.jsx(oe,{checked:n,onCheckedChange:l=>{o(l),c([])}})}),e[18]=n,e[19]=o,e[20]=c,e[21]=d,e[22]=S):S=e[22],e[23]!==S||e[24]!==b||e[25]!==N?(a=s.jsx("div",{className:"border-b border-border",children:s.jsxs("div",{className:b,onClick:N,children:[p,S]})}),e[23]=S,e[24]=b,e[25]=N,e[26]=a):a=e[26],g="flex-1 overflow-auto",r=Object.entries(x).map(l=>{const[h,P]=l,j=v.filter(R=>P.some(O=>O.name===R.value));return j.length===0?null:s.jsxs("div",{className:"mb-6 last:mb-0",children:[s.jsx("h4",{className:"text-sm font-medium p-3 pb-1.5 text-muted-foreground/75",children:h}),s.jsx("div",{className:"space-y-1",children:j.map(R=>s.jsxs("div",{className:$("flex items-center justify-between gap-3 px-4 py-3",!d&&"hover:bg-muted/50 cursor-pointer"),onClick:()=>{d||(n?(o(!1),c(C.map(Ht).filter(O=>O!==R.value))):A(R.value))},children:[s.jsx("span",{className:"text-sm flex-1 min-w-0",children:R.label}),s.jsx("div",{onClick:Yt,children:d?s.jsx(ue,{children:s.jsxs(ge,{children:[s.jsx(Ee,{asChild:!0,children:s.jsx("div",{children:s.jsx(oe,{checked:n||i.includes(R.value),disabled:!0,onCheckedChange:zt})})}),s.jsx(Te,{children:s.jsx("p",{children:"Built-in role permissions cannot be changed"})})]})}):s.jsx(oe,{checked:n||i.includes(R.value),onCheckedChange:()=>{n?(o(!1),c(C.map(Bt).filter(O=>O!==R.value))):A(R.value)}})})]},R.value))})]},h)}),e[0]=n,e[1]=T,e[2]=o,e[3]=c,e[4]=d,e[5]=i,e[6]=g,e[7]=r,e[8]=E,e[9]=a}else g=e[6],r=e[7],E=e[8],a=e[9];let m;e[27]!==g||e[28]!==r?(m=s.jsx("div",{className:g,children:r}),e[27]=g,e[28]=r,e[29]=m):m=e[29];let _;return e[30]!==E||e[31]!==a||e[32]!==m?(_=s.jsxs("div",{className:E,children:[a,m]}),e[30]=E,e[31]=a,e[32]=m,e[33]=_):_=e[33],_}function Bt(t){return t.value}function zt(){}function Yt(t){return t.stopPropagation()}function Ht(t){return t.value}function $t(){}function Kt(t){return t.stopPropagation()}const et={anthropic:"Anthropic",openrouter:"OpenRouter"},Ft={openai:"OpenAI",anthropic:"Anthropic",google:"Google","meta-llama":"Meta",mistralai:"Mistral","x-ai":"xAI",deepseek:"DeepSeek",qwen:"Qwen",moonshotai:"MoonshotAI",nvidia:"NVIDIA",perplexity:"Perplexity",cohere:"Cohere",amazon:"Amazon",microsoft:"Microsoft","z-ai":"Z.ai","ibm-granite":"IBM Granite",alibaba:"Alibaba",baidu:"Baidu",bytedance:"ByteDance",tencent:"Tencent",minimax:"MiniMax",nousresearch:"Nous Research",allenai:"Allen AI",inception:"Inception"};function Qt(t,e){const n=t.indexOf("/"),i=n>0?t.slice(0,n):e;return i.startsWith("~")?i.slice(1):i}function Zt(t){return Ft[t]??et[t]??t}function qt(t){const e=t.indexOf(": ");return e>0&&e<32?t.slice(e+2):t}const tt=30;function Xt(t){const e=q.c(44),{connectionId:n,subProviderId:i,subProviderName:o,groupLogo:c,models:u,allConnectionModelIds:f,selectedModels:d,allowAllModels:T,allConnectionModelsSelected:g,onToggleModel:r,onExitAllowAll:E,readOnly:a,defaultExpanded:m}=t,[_,x]=k.useState(m),C=m||_,v=x,[A,y]=k.useState(tt);let b;e[0]!==g||e[1]!==T||e[2]!==d?(b=h=>T||g||d.includes("*")||d.includes(h),e[0]=g,e[1]=T,e[2]=d,e[3]=b):b=e[3];const N=b;let p;if(e[4]!==N||e[5]!==u){let h;e[7]!==N?(h=P=>N(P.id),e[7]=N,e[8]=h):h=e[8],p=u.filter(h),e[4]=N,e[5]=u,e[6]=p}else p=e[6];const S=p.length;let l;if(e[9]!==f||e[10]!==T||e[11]!==n||e[12]!==S||e[13]!==C||e[14]!==c||e[15]!==N||e[16]!==u||e[17]!==E||e[18]!==r||e[19]!==a||e[20]!==i||e[21]!==o||e[22]!==A){const h=u.slice(0,A),P=u.length>A;let j;e[24]===Symbol.for("react.memo_cache_sentinel")?(j=()=>v(ts),e[24]=j):j=e[24];const R=c??Fe[i]??Qe;let O;e[25]!==o||e[26]!==R?(O=s.jsx(Se,{icon:R,name:o,size:"sm"}),e[25]=o,e[26]=R,e[27]=O):O=e[27];let M;e[28]!==o?(M=s.jsx("span",{className:"text-sm font-medium truncate",children:o}),e[28]=o,e[29]=M):M=e[29];let Y;e[30]!==O||e[31]!==M?(Y=s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[O,M]}),e[30]=O,e[31]=M,e[32]=Y):Y=e[32];let z;e[33]!==S||e[34]!==u.length?(z=s.jsxs(fe,{variant:"secondary",className:"text-xs text-muted-foreground",children:[S,"/",u.length," enabled"]}),e[33]=S,e[34]=u.length,e[35]=z):z=e[35];let D;e[36]!==C?(D=C?s.jsx(St,{size:16,className:"text-muted-foreground shrink-0"}):s.jsx(Ot,{size:16,className:"text-muted-foreground shrink-0"}),e[36]=C,e[37]=D):D=e[37];let w;e[38]!==D||e[39]!==z?(w=s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[z,D]}),e[38]=D,e[39]=z,e[40]=w):w=e[40];let L;e[41]!==w||e[42]!==Y?(L=s.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3 hover:bg-muted/50 cursor-pointer",onClick:j,children:[Y,w]}),e[41]=w,e[42]=Y,e[43]=L):L=e[43],l=s.jsxs("div",{className:"border border-border rounded-lg overflow-hidden bg-card",children:[L,C&&s.jsxs("div",{className:"border-t border-border bg-muted/20",children:[h.map(V=>{const H=N(V.id),Q=()=>{if(!a){if(T){E(n,f,V.id);return}r(n,V.id)}};return s.jsxs("div",{className:$("flex items-center justify-between gap-3 px-4 py-3 border-b border-border last:border-b-0",!a&&"hover:bg-muted/50 cursor-pointer"),onClick:Q,children:[s.jsx("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:s.jsx("span",{className:"text-sm truncate",children:V.title})}),s.jsx("div",{onClick:es,children:a?s.jsx(ue,{children:s.jsxs(ge,{children:[s.jsx(Ee,{asChild:!0,children:s.jsx("div",{children:s.jsx(oe,{checked:H,disabled:!0,onCheckedChange:Wt})})}),s.jsx(Te,{children:s.jsx("p",{children:"Built-in role permissions cannot be changed"})})]})}):s.jsx(oe,{checked:H,onCheckedChange:Q})})]},V.id)}),P&&s.jsxs("button",{type:"button",className:"w-full px-4 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors",onClick:()=>y(Jt),children:["Show more (",u.length-A," remaining)"]})]})]}),e[9]=f,e[10]=T,e[11]=n,e[12]=S,e[13]=C,e[14]=c,e[15]=N,e[16]=u,e[17]=E,e[18]=r,e[19]=a,e[20]=i,e[21]=o,e[22]=A,e[23]=l}else l=e[23];return l}function Jt(t){return t+tt}function Wt(){}function es(t){return t.stopPropagation()}function ts(t){return!t}function ss(t){const e=q.c(33),{connection:n,selectedModels:i,allowAllModels:o,onToggleModel:c,onExitAllowAll:u,allConnectionModelsSelected:f,searchQuery:d,readOnly:T}=t,g=bt(n.id);let r,E,a,m,_;if(e[0]!==f||e[1]!==o||e[2]!==n.id||e[3]!==n.label||e[4]!==n.providerId||e[5]!==u||e[6]!==c||e[7]!==g||e[8]!==T||e[9]!==d||e[10]!==i){_=Symbol.for("react.early_return_sentinel");e:{let v;e[16]!==n.label?(v=R=>({...R,id:R.modelId,provider:n.label}),e[16]=n.label,e[17]=v):v=e[17];const A=g.filter(os).map(v),y=d.trim().toLowerCase(),b=y?A.filter(R=>R.title.toLowerCase().includes(y)||R.id.toLowerCase().includes(y)||R.provider?.toLowerCase().includes(y)):A;if(b.length===0){_=null;break e}const N=new Map;for(const R of b){const O=Qt(R.id,n.providerId),M=N.get(O)??{models:[],logo:null};M.models.push({id:R.id,title:qt(R.title),logo:R.logo}),!M.logo&&R.logo&&(M.logo=R.logo),N.set(O,M)}const p=Array.from(N.entries()).map(rs).sort(is),S=p.length===1||y.length>0;a="flex flex-col gap-3";const l=Fe[n.providerId]??Qe;let h;e[18]!==n.providerId||e[19]!==l?(h=s.jsx("img",{src:l,alt:n.providerId,className:"w-4 h-4 rounded-sm dark:bg-white dark:rounded-sm dark:p-px"}),e[18]=n.providerId,e[19]=l,e[20]=h):h=e[20];const P=et[n.providerId]??n.providerId;let j;e[21]!==P?(j=s.jsx("h4",{className:"text-sm font-medium",children:P}),e[21]=P,e[22]=j):j=e[22],e[23]!==j||e[24]!==h?(m=s.jsxs("div",{className:"flex items-center gap-2",children:[h,j]}),e[23]=j,e[24]=h,e[25]=m):m=e[25],r="flex flex-col gap-3",E=p.map(R=>s.jsx(Xt,{connectionId:n.id,subProviderId:R.id,subProviderName:R.name,groupLogo:R.logo,models:R.models,allConnectionModelIds:A.map(ns),selectedModels:i,allowAllModels:o,allConnectionModelsSelected:f,onToggleModel:c,onExitAllowAll:u,readOnly:T,defaultExpanded:S},R.id))}e[0]=f,e[1]=o,e[2]=n.id,e[3]=n.label,e[4]=n.providerId,e[5]=u,e[6]=c,e[7]=g,e[8]=T,e[9]=d,e[10]=i,e[11]=r,e[12]=E,e[13]=a,e[14]=m,e[15]=_}else r=e[11],E=e[12],a=e[13],m=e[14],_=e[15];if(_!==Symbol.for("react.early_return_sentinel"))return _;let x;e[26]!==r||e[27]!==E?(x=s.jsx("div",{className:r,children:E}),e[26]=r,e[27]=E,e[28]=x):x=e[28];let C;return e[29]!==a||e[30]!==m||e[31]!==x?(C=s.jsxs("div",{className:a,children:[m,x]}),e[29]=a,e[30]=m,e[31]=x,e[32]=C):C=e[32],C}function ns(t){return t.id}function is(t,e){return t.name.localeCompare(e.name)}function rs(t){const[e,n]=t;return{id:e,name:Zt(e),logo:n.logo,models:n.models}}function os(t,e,n){return n.findIndex(i=>i.modelId===t.modelId)===e}function ls(t){const e=q.c(35),{allowAllModels:n,modelSet:i,onAllowAllChange:o,onModelSetChange:c,readOnly:u,searchQuery:f}=t,d=u===void 0?!1:u,T=k.useDeferredValue(f),g=At();let r;e[0]!==i||e[1]!==c?(r=(p,S)=>{const l=i[p]??[],h={...i};if(l.includes(S)){const P=l.filter(j=>j!==S);P.length===0?delete h[p]:h[p]=P}else h[p]=[...l,S];c(h)},e[0]=i,e[1]=c,e[2]=r):r=e[2];const E=r;let a;e[3]!==i||e[4]!==o||e[5]!==c?(a=(p,S,l)=>{o(!1),c({...i,[p]:S.filter(h=>h!==l)})},e[3]=i,e[4]=o,e[5]=c,e[6]=a):a=e[6];const m=a,_=!d&&"hover:bg-muted/50 cursor-pointer";let x;e[7]!==_?(x=$("flex items-center justify-between px-4 py-3 rounded-lg border border-border bg-card",_),e[7]=_,e[8]=x):x=e[8];let C;e[9]!==n||e[10]!==o||e[11]!==c||e[12]!==d?(C=()=>{if(d)return;const p=!n;o(p),p&&c({})},e[9]=n,e[10]=o,e[11]=c,e[12]=d,e[13]=C):C=e[13];let v;e[14]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx("span",{className:"text-sm font-medium",children:"All models"}),e[14]=v):v=e[14];let A;e[15]!==n||e[16]!==o||e[17]!==c||e[18]!==d?(A=s.jsx("div",{onClick:cs,children:d?s.jsx(ue,{children:s.jsxs(ge,{children:[s.jsx(Ee,{asChild:!0,children:s.jsx("div",{children:s.jsx(oe,{checked:n,disabled:!0,onCheckedChange:as})})}),s.jsx(Te,{children:s.jsx("p",{children:"Built-in role permissions cannot be changed"})})]})}):s.jsx(oe,{checked:n,onCheckedChange:p=>{o(p),p&&c({})}})}),e[15]=n,e[16]=o,e[17]=c,e[18]=d,e[19]=A):A=e[19];let y;e[20]!==x||e[21]!==C||e[22]!==A?(y=s.jsxs("div",{className:x,onClick:C,children:[v,A]}),e[20]=x,e[21]=C,e[22]=A,e[23]=y):y=e[23];let b;e[24]!==g||e[25]!==n||e[26]!==T||e[27]!==m||e[28]!==i||e[29]!==d||e[30]!==E?(b=g.length===0?s.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:"No LLM connections configured"}):g.map(p=>s.jsx(k.Suspense,{fallback:s.jsxs("div",{className:"px-4 py-3 flex items-center gap-2 text-sm text-muted-foreground",children:[s.jsx(_e,{className:"size-4 animate-spin"}),"Loading models..."]}),children:s.jsx(ss,{connection:p,selectedModels:i[p.id]??[],allowAllModels:n,onToggleModel:E,onExitAllowAll:m,allConnectionModelsSelected:(i[p.id]??[]).includes("*"),searchQuery:T,readOnly:d})},p.id)),e[24]=g,e[25]=n,e[26]=T,e[27]=m,e[28]=i,e[29]=d,e[30]=E,e[31]=b):b=e[31];let N;return e[32]!==b||e[33]!==y?(N=s.jsxs("div",{className:"flex flex-col h-full overflow-auto gap-6 pb-6",children:[y,b]}),e[32]=b,e[33]=y,e[34]=N):N=e[34],N}function as(){}function cs(t){return t.stopPropagation()}function ds(t){const e=q.c(52),{open:n,onOpenChange:i,selectedMemberIds:o,onAddMembers:c}=t,[u,f]=k.useState(""),d=k.useDeferredValue(u);let T;e[0]===Symbol.for("react.memo_cache_sentinel")?(T=[],e[0]=T):T=e[0];const[g,r]=k.useState(T),{data:E}=Ze();let a,m,_,x,C,v,A,y,b,N,p;if(e[1]!==E?.data?.members||e[2]!==d||e[3]!==c||e[4]!==i||e[5]!==n||e[6]!==g||e[7]!==u||e[8]!==o){const Y=E?.data?.members??[];let z;e[20]!==d?(z=L=>{const V=d.toLowerCase();return L.user?.name?.toLowerCase().includes(V)||L.user?.email?.toLowerCase().includes(V)},e[20]=d,e[21]=z):z=e[21];const D=Y.filter(z);let w;e[22]!==c||e[23]!==i||e[24]!==g?(w=()=>{c(g),r([]),i(!1)},e[22]=c,e[23]=i,e[24]=g,e[25]=w):w=e[25],_=w,m=Ue,N=n,p=i,a=ke,y="sm:max-w-md p-0 overflow-hidden",e[26]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsxs(Ve,{className:"px-6 pt-6",children:[s.jsx(Be,{children:"Add Members to Role"}),s.jsx(ze,{children:"Select members to add to this role."})]}),e[26]=b):b=e[26],v="flex flex-col h-80",e[27]!==u?(A=s.jsx("div",{className:"border-b border-border px-4 py-3",children:s.jsx(be,{value:u,onChange:f,placeholder:"Search members...",className:"w-full"})}),e[27]=u,e[28]=A):A=e[28],x="flex-1 overflow-auto",C=D.length===0?s.jsx("div",{className:"flex items-center justify-center h-full px-6",children:s.jsx("p",{className:"text-sm text-muted-foreground",children:u?"No members found":"No members available"})}):s.jsx("div",{className:"px-6 py-2 space-y-1",children:D.map(L=>{const V=L.role!=="owner",H=o.includes(L.id),Q=g.includes(L.id);return s.jsxs("label",{className:$("flex items-center gap-3 p-2 rounded-lg",!V||H?"opacity-50 cursor-not-allowed":"cursor-pointer hover:bg-muted/50"),children:[s.jsx(Oe,{checked:Q||H,onCheckedChange:()=>{!V||H||r(X=>X.includes(L.id)?X.filter(W=>W!==L.id):[...X,L.id])},disabled:!V||H}),s.jsx(qe,{url:L.user?.image??void 0,fallback:We(L.user?.name),shape:"circle",size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:L.user?.name||"Unknown"}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:L.user?.email})]}),!V&&s.jsx(fe,{variant:"secondary",className:"shrink-0",children:"Owner"}),H&&V&&s.jsx(fe,{variant:"outline",className:"shrink-0",children:"Added"})]},L.id)})}),e[1]=E?.data?.members,e[2]=d,e[3]=c,e[4]=i,e[5]=n,e[6]=g,e[7]=u,e[8]=o,e[9]=a,e[10]=m,e[11]=_,e[12]=x,e[13]=C,e[14]=v,e[15]=A,e[16]=y,e[17]=b,e[18]=N,e[19]=p}else a=e[9],m=e[10],_=e[11],x=e[12],C=e[13],v=e[14],A=e[15],y=e[16],b=e[17],N=e[18],p=e[19];let S;e[29]!==x||e[30]!==C?(S=s.jsx("div",{className:x,children:C}),e[29]=x,e[30]=C,e[31]=S):S=e[31];let l;e[32]!==S||e[33]!==v||e[34]!==A?(l=s.jsxs("div",{className:v,children:[A,S]}),e[32]=S,e[33]=v,e[34]=A,e[35]=l):l=e[35];let h;e[36]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(Ye,{children:"Cancel"}),e[36]=h):h=e[36];const P=g.length===0,j=g.length>0&&`(${g.length})`;let R;e[37]!==_||e[38]!==P||e[39]!==j?(R=s.jsxs(He,{className:"px-6 pb-6",children:[h,s.jsxs($e,{onClick:_,disabled:P,children:["Add ",j]})]}),e[37]=_,e[38]=P,e[39]=j,e[40]=R):R=e[40];let O;e[41]!==a||e[42]!==l||e[43]!==R||e[44]!==y||e[45]!==b?(O=s.jsxs(a,{className:y,children:[b,l,R]}),e[41]=a,e[42]=l,e[43]=R,e[44]=y,e[45]=b,e[46]=O):O=e[46];let M;return e[47]!==m||e[48]!==O||e[49]!==N||e[50]!==p?(M=s.jsx(m,{open:N,onOpenChange:p,children:O}),e[47]=m,e[48]=O,e[49]=N,e[50]=p,e[51]=M):M=e[51],M}function ms(t){const e=q.c(28),{memberIds:n,onMemberIdsChange:i,readOnly:o,searchQuery:c,addMemberDialogOpen:u,onAddMemberDialogOpenChange:f}=t,d=o===void 0?!1:o,T=k.useDeferredValue(c),{data:g}=Ze();let r,E,a;if(e[0]!==g?.data?.members||e[1]!==T||e[2]!==n||e[3]!==i||e[4]!==d||e[5]!==c){const v=g?.data?.members??[];let A;e[9]!==n?(A=p=>n.includes(p.id),e[9]=n,e[10]=A):A=e[10];const y=v.filter(A);let b;e[11]!==T?(b=p=>{const S=T.toLowerCase();return p.user?.name?.toLowerCase().includes(S)||p.user?.email?.toLowerCase().includes(S)},e[11]=T,e[12]=b):b=e[12];const N=y.filter(b);a="flex flex-col h-full",r="flex-1 overflow-auto",E=y.length===0?s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsxs("div",{className:"text-center",children:[s.jsx("h3",{className:"text-base font-medium mb-1",children:"No members"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Add members to grant them the configured permissions."})]})}):N.length===0?s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsxs("p",{className:"text-sm text-muted-foreground",children:['No members match "',c,'"']})}):s.jsx("div",{className:"p-4 space-y-2",children:N.map(p=>s.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg bg-muted/30",children:[s.jsx(qe,{url:p.user?.image??void 0,fallback:We(p.user?.name),shape:"circle",size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:p.user?.name||"Unknown"}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:p.user?.email})]}),d?s.jsx(ue,{children:s.jsxs(ge,{children:[s.jsx(Ee,{asChild:!0,children:s.jsx("div",{children:s.jsx(ne,{variant:"ghost",size:"sm",disabled:!0,children:s.jsx(Pe,{size:16})})})}),s.jsx(Te,{children:s.jsx("p",{children:"Owner membership cannot be changed"})})]})}):s.jsx(ne,{variant:"ghost",size:"sm",onClick:()=>i(n.filter(S=>S!==p.id)),children:s.jsx(Pe,{size:16})})]},p.id))}),e[0]=g?.data?.members,e[1]=T,e[2]=n,e[3]=i,e[4]=d,e[5]=c,e[6]=r,e[7]=E,e[8]=a}else r=e[6],E=e[7],a=e[8];let m;e[13]!==r||e[14]!==E?(m=s.jsx("div",{className:r,children:E}),e[13]=r,e[14]=E,e[15]=m):m=e[15];let _;e[16]!==n||e[17]!==i?(_=v=>i([...n,...v]),e[16]=n,e[17]=i,e[18]=_):_=e[18];let x;e[19]!==u||e[20]!==n||e[21]!==f||e[22]!==_?(x=s.jsx(ds,{open:u,onOpenChange:f,selectedMemberIds:n,onAddMembers:_}),e[19]=u,e[20]=n,e[21]=f,e[22]=_,e[23]=x):x=e[23];let C;return e[24]!==a||e[25]!==m||e[26]!==x?(C=s.jsxs("div",{className:a,children:[m,x]}),e[24]=a,e[25]=m,e[26]=x,e[27]=C):C=e[27],C}function us(t){const e=q.c(3);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(_e,{size:24,className:"animate-spin text-muted-foreground"})}),e[0]=n):n=e[0];let i;return e[1]!==t?(i=s.jsx(k.Suspense,{fallback:n,children:s.jsx(ms,{...t})}),e[1]=t,e[2]=i):i=e[2],i}const gs={owner:[],admin:[],user:[]};function Es(t,e){const n=t==="owner"||t==="admin";return{role:{slug:t,label:t.charAt(0).toUpperCase()+t.slice(1)},allowAllStaticPermissions:n,staticPermissions:gs[t],toolSet:{},allowAllModels:!0,modelSet:{},memberIds:e.filter(i=>i.role===t).map(i=>i.id)}}function Ts(t,e,n){const i=t.permission||{},o=i.self||[],c=o.includes("*"),u=c?[]:o.filter(r=>r!=="*"),f={};for(const[r,E]of Object.entries(i))if(!(r==="self"||r==="models"))if(r==="*")for(const a of n)f[a.id]=E.includes("*")?a.tools?.map(m=>m.name)??[]:E;else{const a=n.find(m=>m.id===r);a&&(f[r]=E.includes("*")?a.tools?.map(m=>m.name)??[]:E)}const d=i.models||[],T=d.length===0||d.includes("*:*"),g={};if(!T)for(const r of d){const E=r.indexOf(":");if(E===-1)continue;const a=r.slice(0,E),m=r.slice(E+1);g[a]||(g[a]=[]),g[a].push(m)}return{role:{id:t.id,slug:t.role,label:t.label},allowAllStaticPermissions:c,staticPermissions:u,toolSet:f,allowAllModels:T,modelSet:g,memberIds:e.filter(r=>r.role===t.role).map(r=>r.id)}}function ps(t,e){const n={};t.allowAllStaticPermissions?n.self=["*"]:t.staticPermissions.length>0&&(n.self=t.staticPermissions);for(const[i,o]of Object.entries(t.toolSet))if(o.length>0){const u=e.find(f=>f.id===i)?.tools?.map(f=>f.name)??[];n[i]=u.length>0&&u.every(f=>o.includes(f))?["*"]:o}if(t.allowAllModels)n.models=["*:*"];else{const i=[];for(const[o,c]of Object.entries(t.modelSet))for(const u of c)i.push(`${o}:${u}`);i.length>0&&(n.models=i)}return n}function fs(t,e,n){return t.kind==="builtin"?Es(t.role,e):t.kind==="custom"?Ts(t.role,e,n):{role:{id:void 0,slug:void 0,label:""},allowAllStaticPermissions:!1,staticPermissions:[],toolSet:{},allowAllModels:!0,modelSet:{},memberIds:[]}}function _s(t){const e=q.c(5),{readOnly:n,onOpen:i}=t;if(n){let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(Ee,{asChild:!0,children:s.jsx("div",{children:s.jsxs(ne,{variant:"outline",size:"sm",disabled:!0,children:[s.jsx(Ce,{size:16}),"Add Member"]})})}),e[0]=u):u=e[0];let f;return e[1]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(ue,{children:s.jsxs(ge,{children:[u,s.jsx(Te,{children:s.jsx("p",{children:"Owner membership cannot be changed"})})]})}),e[1]=f):f=e[1],f}let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ce,{size:16}),e[2]=o):o=e[2];let c;return e[3]!==i?(c=s.jsxs(ne,{variant:"outline",size:"sm",onClick:i,children:[o,"Add Member"]}),e[3]=i,e[4]=c):c=e[4],c}function Is(t){const e=q.c(11),{locator:n}=Re(),i=Ct();let o;e[0]!==n?(o=ce.members(n),e[0]=n,e[1]=o):o=e[1];let c;e[2]!==o?(c={queryKey:o,queryFn:hs},e[2]=o,e[3]=c):c=e[3];const{data:u,isPending:f}=Ge(c);if(f||!i){let r;return e[4]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(te,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(_e,{size:32,className:"animate-spin text-muted-foreground"})})}),e[4]=r):r=e[4],r}let d;e[5]!==u?.data?.members?(d=u?.data?.members??[],e[5]=u?.data?.members,e[6]=d):d=e[6];const T=d;let g;return e[7]!==i||e[8]!==T||e[9]!==t?(g=s.jsx(Rs,{...t,members:T,connections:i}),e[7]=i,e[8]=T,e[9]=t,e[10]=g):g=e[10],g}function hs(){return re.organization.listMembers()}function Rs({target:t,onBack:e,onSaved:n,members:i,connections:o}){const{locator:c}=Re(),u=De(),f=t.kind==="builtin",d=t.kind==="new",[T,g]=k.useState(f?"org":"mcp"),r=rt({resolver:ot(kt),defaultValues:fs(t,i,o)}),E=r.formState.isValid,a=r.formState.isDirty,m=we({mutationFn:async l=>{const h=ps(l,o),P=l.role.slug||l.role.label.toLowerCase().replace(/\s+/g,"-"),j=l.role.slug&&!l.role.id,R=async O=>{const M=i.filter(D=>D.role===O).map(D=>D.id),Y=l.memberIds.filter(D=>!M.includes(D)),z=M.filter(D=>!l.memberIds.includes(D));for(const D of Y){const w=await re.organization.updateMemberRole({memberId:D,role:[O]});if(w?.error)throw new Error(w.error.message??"Something went wrong")}for(const D of z){const w=await re.organization.updateMemberRole({memberId:D,role:["user"]});if(w?.error)throw new Error(w.error.message??"Something went wrong")}};if(j)return await R(l.role.slug),l;if(l.role.id){const O=await re.organization.updateRole({roleId:l.role.id,data:{permission:h}});if(O?.error)throw new Error(O.error.message??"Something went wrong");return await R(l.role.slug),l}else{const O=await re.organization.createRole({role:P,permission:h});if(O?.error)throw new Error(O.error.message??"Something went wrong");for(const M of l.memberIds){const Y=await re.organization.updateMemberRole({memberId:M,role:[P]});if(Y?.error)throw new Error(Y.error.message)}return{...l,role:{...l.role,id:O.data?.roleData?.id,slug:P}}}},onSuccess:(l,h)=>{u.invalidateQueries({queryKey:ce.members(c)}),u.invalidateQueries({queryKey:ce.organizationRoles(c)});const P=!h.role.id&&!h.role.slug,j=h.role.slug&&!h.role.id;Ae(j?"role_members_updated":P?"role_created":"role_updated",{role_slug:h.role.slug??null}),pe.success(j?"Members updated successfully!":P?"Role created successfully!":"Role updated successfully!"),r.reset(l),n(l.role.id)},onError:l=>{pe.error(l instanceof Error?l.message:"Failed to save role")}}),_=r.handleSubmit(l=>{if(!l.role.label.trim()){pe.error("Role name is required"),r.setFocus("role.label");return}m.mutate(l)}),x=!f||t.kind==="builtin"&&t.role!=="owner",C=t.kind==="builtin"?t.role.charAt(0).toUpperCase()+t.role.slice(1):t.kind==="custom"?t.role.label:"",v=[...f?[]:[{id:"mcp",label:"MCP Permissions"}],{id:"org",label:"Organization Permissions"},{id:"models",label:"Models"},{id:"members",label:"Members"}],[A,y]=k.useState(""),[b,N]=k.useState(!1),p=l=>{g(l),y("")},S={mcp:"Search MCP servers...",org:"Search permissions...",models:"Search models...",members:"Search members..."};return s.jsx(te,{children:s.jsxs(te.Content,{className:"flex flex-col overflow-hidden",children:[s.jsx("div",{className:"shrink-0 mx-auto w-full max-w-[1200px] px-4 md:px-10 pt-8 md:pt-12 pb-4",children:s.jsxs("div",{className:"flex flex-col gap-5",children:[s.jsx(te.Title,{actions:x&&s.jsxs(s.Fragment,{children:[s.jsx(ne,{variant:"outline",size:"sm",onClick:e,disabled:m.isPending,children:"Cancel"}),s.jsx(ne,{size:"sm",onClick:_,disabled:m.isPending||!E||!a,children:m.isPending?"Saving...":d?"Create Role":"Save Changes"})]}),children:s.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[s.jsx("div",{className:$("size-2.5 rounded-full shrink-0",t.kind==="builtin"?Me(t.role,!0):t.kind==="custom"?Me(t.role.role,!1):Je(r.watch("role.label")))}),f?s.jsx(Ke,{size:16,className:"text-muted-foreground shrink-0"}):s.jsx(yt,{size:16,className:"text-muted-foreground shrink-0"}),d?s.jsx("input",{...r.register("role.label"),placeholder:"Role name",className:"leading-tight text-foreground bg-transparent border-none outline-none px-1 -mx-1 rounded hover:bg-input/25 focus:bg-input/25 transition-colors w-64 placeholder:text-muted-foreground/50",autoFocus:!0}):s.jsx("span",{className:"truncate",children:C})]})}),s.jsx("div",{className:"flex items-center gap-2",children:v.map(l=>s.jsx("button",{type:"button",onClick:()=>p(l.id),className:$("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex items-center",T===l.id?"bg-accent border-border text-foreground":"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:l.label},l.id))}),s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[s.jsx(be,{value:A,onChange:y,placeholder:S[T]??"Search...",className:"w-full md:w-[375px]"}),T==="members"&&s.jsx(_s,{readOnly:t.kind==="builtin"&&t.role==="owner",onOpen:()=>N(!0)})]})]})}),s.jsx("div",{className:"flex-1 min-h-0 mx-auto w-full max-w-[1200px] px-4 md:px-10 pb-6",children:s.jsxs("div",{className:$("h-full overflow-hidden",T!=="models"&&"border border-border rounded-xl bg-card"),children:[T==="mcp"&&!f&&s.jsx(Gt,{toolSet:r.watch("toolSet"),onToolSetChange:l=>r.setValue("toolSet",l,{shouldDirty:!0}),searchQuery:A}),T==="org"&&s.jsx(Vt,{allowAllStaticPermissions:r.watch("allowAllStaticPermissions"),staticPermissions:r.watch("staticPermissions"),onAllowAllChange:l=>r.setValue("allowAllStaticPermissions",l,{shouldDirty:!0}),onPermissionsChange:l=>r.setValue("staticPermissions",l,{shouldDirty:!0}),readOnly:f,searchQuery:A}),T==="models"&&s.jsx(ls,{allowAllModels:r.watch("allowAllModels"),modelSet:r.watch("modelSet"),onAllowAllChange:l=>r.setValue("allowAllModels",l,{shouldDirty:!0}),onModelSetChange:l=>r.setValue("modelSet",l,{shouldDirty:!0}),readOnly:f,searchQuery:A}),T==="members"&&s.jsx(us,{memberIds:r.watch("memberIds"),onMemberIdsChange:l=>r.setValue("memberIds",l,{shouldDirty:!0}),readOnly:t.kind==="builtin"&&t.role==="owner",searchQuery:A,addMemberDialogOpen:b,onAddMemberDialogOpenChange:N})]})})]})})}function xs(t){return t.kind==="builtin"?`builtin-${t.role}`:t.kind==="custom"?`custom-${t.role.id}`:"new"}const Ns=[{role:"owner",label:"Owner",color:"bg-red-500"},{role:"admin",label:"Admin",color:"bg-blue-500"},{role:"user",label:"User",color:"bg-green-500"}],Ne=["bg-red-500","bg-orange-500","bg-amber-500","bg-yellow-500","bg-lime-500","bg-green-500","bg-emerald-500","bg-teal-500","bg-cyan-500","bg-sky-500","bg-blue-500","bg-indigo-500","bg-violet-500","bg-purple-500","bg-fuchsia-500","bg-pink-500","bg-rose-500"];function Cs(t){if(!t)return"bg-neutral-400";let e=0;for(let i=0;i<t.length;i++){const o=t.charCodeAt(i);e=(e<<5)-e+o,e=e&e}const n=Math.abs(e)%Ne.length;return Ne[n]??Ne[0]}const As={owner:"bg-red-500",admin:"bg-blue-500",user:"bg-green-500"};function bs(t,e){return e?As[t]??"bg-neutral-400":Cs(t)}function Ss(){const t=q.c(72),[e,n]=k.useState(""),[i,o]=k.useState(null),c=at();let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u={strict:!1},t[0]=u):u=t[0];const{role:f}=ct(u),{locator:d}=Re(),T=De(),{customRoles:g,refetch:r}=dt();let E;t[1]!==c?(E=G=>c({to:".",search:B=>({...B,role:G})}),t[1]=c,t[2]=E):E=t[2];const a=E;let m;e:{if(!f){m=null;break e}if(f==="new"){m={kind:"new"};break e}if(f.startsWith("builtin-")){m={kind:"builtin",role:f.slice(8)};break e}let G;t[3]!==f?(G=le=>le.id===f,t[3]=f,t[4]=G):G=t[4];const B=g.find(G);m=B?{kind:"custom",role:B}:null}const _=m;let x;t[5]!==d?(x=ce.members(d),t[5]=d,t[6]=x):x=t[6];let C;t[7]!==x?(C={queryKey:x,queryFn:Ds},t[7]=x,t[8]=C):C=t[8];const{data:v}=Ge(C);let A;t[9]!==v?.data?.members?(A=v?.data?.members??[],t[9]=v?.data?.members,t[10]=A):A=t[10];const y=A;let b;t[11]!==y?(b=G=>y.filter(B=>B.role===G).length,t[11]=y,t[12]=b):b=t[12];const N=b;let p;if(t[13]!==g||t[14]!==N||t[15]!==e){let G;t[17]!==N?(G=ae=>({kind:"builtin",role:{...ae,memberCount:N(ae.role)}}),t[17]=N,t[18]=G):G=t[18];const B=Ns.map(G);let le;t[19]!==N?(le=ae=>({kind:"custom",role:{...ae,memberCount:N(ae.role)}}),t[19]=N,t[20]=le):le=t[20];const st=g.map(le);if(p=[...B,...st],e){const ae=e.toLowerCase();p=p.filter(nt=>nt.role.label.toLowerCase().includes(ae))}t[13]=g,t[14]=N,t[15]=e,t[16]=p}else p=t[16];const S=we({mutationFn:Gs,onSuccess:(G,B)=>{Ae("role_deleted",{role_id:B}),T.invalidateQueries({queryKey:ce.members(d)}),T.invalidateQueries({queryKey:ce.organizationRoles(d)}),pe.success("Role deleted successfully!"),r(),_?.kind==="custom"&&_.role.id===B&&a(void 0)},onError:Ms});let l,h,P,j;t[21]===Symbol.for("react.memo_cache_sentinel")?(h={id:"role",header:"Role",render:Ps,cellClassName:"flex-1 min-w-0",sortable:!0},P={id:"type",header:"Type",render:js,cellClassName:"w-28 shrink-0"},j={id:"permissions",header:"Permissions",render:vs,cellClassName:"flex-1 min-w-0"},l={id:"members",header:"Members",render:Ls,cellClassName:"w-24 shrink-0"},t[21]=l,t[22]=h,t[23]=P,t[24]=j):(l=t[21],h=t[22],P=t[23],j=t[24]);let R;t[25]===Symbol.for("react.memo_cache_sentinel")?(R=[h,P,j,l,{id:"actions",header:"",render:G=>G.kind==="builtin"?null:s.jsxs(mt,{children:[s.jsx(ut,{asChild:!0,children:s.jsx(ne,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:ys,children:s.jsx(Tt,{size:16})})}),s.jsx(gt,{align:"end",onClick:Os,children:s.jsxs(Et,{variant:"destructive",onClick:()=>{const B=G.role;B.id&&o({id:B.id,label:B.label})},children:[s.jsx(pt,{size:16}),"Delete"]})})]}),cellClassName:"w-12 shrink-0"}],t[25]=R):R=t[25];const O=R;let M;t[26]!==a?(M=G=>{if(G.kind==="builtin")a(`builtin-${G.role.role}`);else{const B=G.role;a(B.id)}},t[26]=a,t[27]=M):M=t[27];const Y=M;if(_){let G;t[28]!==a?(G=()=>a(void 0),t[28]=a,t[29]=G):G=t[29];let B;return t[30]!==r||t[31]!==a?(B=()=>{r(),a(void 0)},t[30]=r,t[31]=a,t[32]=B):B=t[32],s.jsx(Is,{target:_,onBack:G,onSaved:B},xs(_))}let z;t[33]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(te.Title,{children:"Roles"}),t[33]=z):z=t[33];let D;t[34]===Symbol.for("react.memo_cache_sentinel")?(D=G=>{G.key==="Escape"&&(n(""),G.target.blur())},t[34]=D):D=t[34];let w;t[35]!==e?(w=s.jsx(be,{value:e,onChange:n,placeholder:"Search roles...",className:"w-full md:w-[375px]",onKeyDown:D}),t[35]=e,t[36]=w):w=t[36];let L;t[37]!==a?(L=()=>a("new"),t[37]=a,t[38]=L):L=t[38];let V;t[39]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx(Ce,{size:16}),t[39]=V):V=t[39];let H;t[40]!==L?(H=s.jsxs(ne,{onClick:L,children:[V,"Create Role"]}),t[40]=L,t[41]=H):H=t[41];let Q;t[42]!==w||t[43]!==H?(Q=s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[w,H]}),t[42]=w,t[43]=H,t[44]=Q):Q=t[44];let X;t[45]!==e?(X=e?s.jsx(je,{title:"No roles found",description:`No roles match "${e}"`}):s.jsx(je,{title:"No roles",description:"Create a role to get started."}),t[45]=e,t[46]=X):X=t[46];let W;t[47]!==p||t[48]!==O||t[49]!==Y||t[50]!==X?(W=s.jsx(ft,{columns:O,data:p,isLoading:!1,onRowClick:Y,emptyState:X}),t[47]=p,t[48]=O,t[49]=Y,t[50]=X,t[51]=W):W=t[51];let ie;t[52]!==Q||t[53]!==W?(ie=s.jsx(te.Content,{children:s.jsx(te.Body,{children:s.jsxs("div",{className:"flex flex-col gap-6",children:[z,Q,W]})})}),t[52]=Q,t[53]=W,t[54]=ie):ie=t[54];const I=i!==null;let U;t[55]===Symbol.for("react.memo_cache_sentinel")?(U=G=>!G&&o(null),t[55]=U):U=t[55];let K;t[56]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(Be,{children:"Delete Role"}),t[56]=K):K=t[56];const ee=i?.label;let Z;t[57]!==ee?(Z=s.jsxs(Ve,{children:[K,s.jsxs(ze,{children:['Are you sure you want to delete the "',ee,'" role? This action cannot be undone.']})]}),t[57]=ee,t[58]=Z):Z=t[58];let J;t[59]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(Ye,{children:"Cancel"}),t[59]=J):J=t[59];let F;t[60]!==S||t[61]!==i?(F=s.jsxs(He,{children:[J,s.jsx($e,{onClick:()=>{i?.id&&S.mutate(i.id),o(null)},className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),t[60]=S,t[61]=i,t[62]=F):F=t[62];let de;t[63]!==Z||t[64]!==F?(de=s.jsxs(ke,{children:[Z,F]}),t[63]=Z,t[64]=F,t[65]=de):de=t[65];let me;t[66]!==I||t[67]!==de?(me=s.jsx(Ue,{open:I,onOpenChange:U,children:de}),t[66]=I,t[67]=de,t[68]=me):me=t[68];let Ie;return t[69]!==ie||t[70]!==me?(Ie=s.jsxs(te,{children:[ie,me]}),t[69]=ie,t[70]=me,t[71]=Ie):Ie=t[71],Ie}function Os(t){return t.stopPropagation()}function ys(t){return t.stopPropagation()}function Ls(t){return s.jsx("span",{className:"text-sm text-foreground",children:t.role.memberCount})}function vs(t){if(t.kind==="builtin")return t.role.role==="owner"||t.role.role==="admin"?s.jsx("span",{className:"text-sm text-muted-foreground",children:"Full access"}):s.jsx("span",{className:"text-sm text-muted-foreground",children:"Basic access"});const e=t.role,n=[];return e.allowsAllStaticPermissions?n.push("Full org access"):e.staticPermissionCount&&e.staticPermissionCount>0&&n.push(`${e.staticPermissionCount} org perm${e.staticPermissionCount!==1?"s":""}`),e.allowsAllConnections?n.push("All connections"):e.connectionCount&&e.connectionCount>0&&n.push(`${e.connectionCount} connection${e.connectionCount!==1?"s":""}`),s.jsx("span",{className:"text-sm text-muted-foreground truncate",children:n.length>0?n.join(", "):"No permissions"})}function js(t){return t.kind==="builtin"?s.jsx(fe,{variant:"secondary",className:"text-xs",children:"Built-in"}):s.jsx(fe,{variant:"outline",className:"text-xs",children:"Custom"})}function Ps(t){return s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:$("size-2.5 rounded-full shrink-0",bs(t.role.role,t.kind==="builtin"))}),s.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:t.role.label}),t.kind==="builtin"&&s.jsx(Ke,{size:12,className:"text-muted-foreground shrink-0"})]})}function Ms(t,e){Ae("role_delete_failed",{role_id:e,error:t instanceof Error?t.message:String(t)}),pe.error(t instanceof Error?t.message:"Failed to delete role")}async function Gs(t){const e=await re.organization.deleteRole({roleId:t});if(e?.error)throw new Error(e.error.message);return e?.data}function Ds(){return re.organization.listMembers()}function kn(){const t=q.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(te,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-sm text-muted-foreground",children:"Failed to load roles"})})}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(lt,{fallback:e,children:s.jsx(k.Suspense,{fallback:s.jsx(te,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(_e,{size:32,className:"animate-spin text-muted-foreground"})})}),children:s.jsx(Ss,{})})}),t[1]=n):n=t[1],n}export{kn as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BR-KKTEl.js","assets/index-Bn0n2Tn5.js","assets/index-CICJCo3v.css","assets/ArrowNarrowLeft-ctHZC7IK.js","assets/CheckCircle-3lbo4DOp.js","assets/Container-BbxUmzld.js","assets/Settings02-NVTdZYn8.js","assets/XCircle-CBqb98Hh.js","assets/constants-DWChG_gh.js","assets/useInfiniteQuery-BkNuxXHJ.js","assets/infiniteQueryObserver-BuP6-BnP.js","assets/badge-BJnKVqQg.js","assets/input-C0cHvFsP.js","assets/dropdown-menu-LTGIQdd2.js","assets/ChevronDown-BMsVDJMd.js","assets/ChevronRight-DNaFnNR_.js","assets/DotsVertical-q5wudUQb.js","assets/table-UGp85pBs.js","assets/toggle-group-CrNuUyQT.js","assets/use-view-mode-lvgEn118.js","assets/tooltip-CkzGOY_H.js","assets/SearchMd-tlcXyQa_.js","assets/dialog-U3vhhaTY.js","assets/X-XvFOaH_0.js","assets/AlertCircle-BefAeM6u.js","assets/alert-dialog-BY7wdwxM.js","assets/card-Dp6Lilh-.js","assets/Trash01-CGGNK3g-.js","assets/label-C-b-mt3k.js","assets/select-rt68l1g_.js","assets/ChevronUp-Ba2YtjVA.js","assets/switch-Dd-fbXw9.js","assets/textarea-Ds8u2czk.js","assets/RefreshCcw01-DhQjzDQL.js","assets/checkbox-CouoIES-.js","assets/LinkExternal01-B-rWZEWZ.js","assets/use-copy-CBB3IfKo.js","assets/Plus-B1zoIOQx.js","assets/Play-BwE8tx_2.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as n,f as c,g as m,j as r,l as f,r as l,_ as u}from"./index-Bn0n2Tn5.js";const _=l.lazy(()=>u(()=>import("./registry-layout-BR-KKTEl.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38])));function x(){const e=n.c(5),o=c();let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:i}=m(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx("div",{className:"h-full flex items-center justify-center",children:r.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=s):s=e[1];let a;return e[2]!==o||e[3]!==i?(a=r.jsx(l.Suspense,{fallback:s,children:r.jsx(_,{onBack:()=>o({to:"/$org/settings/store",params:{org:i}})})}),e[2]=o,e[3]=i,e[4]=a):a=e[4],a}export{x as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as n,s as o,w as u,K as i,b as a}from"./index-Bn0n2Tn5.js";function l(){const e=n.c(4),{locator:r}=o();let t;e[0]!==r?(t=i.members(r),e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s={queryKey:t,queryFn:m},e[2]=t,e[3]=s):s=e[3],u(s)}function m(){return a.organization.listMembers()}export{l as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as h,n as b,b as p,K as P}from"./index-Bn0n2Tn5.js";const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function y(t){return t.replace(/-/g," ")}function B(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let u=!1;const c=[];let f=!1;const l=new Set;let r=!1,e=0,s=!1;for(const[i,o]of Object.entries(t)){if(i==="self"){o.includes("*")?u=!0:n.push(...o);continue}if(i==="models"){o.includes("*:*")?s=!0:e=o.length;continue}if(i==="*"){if(f=!0,o.includes("*"))r=!0;else for(const a of o)l.add(a);continue}if(c.push(i),o.includes("*"))r=!0;else for(const a of o)l.add(a)}return{staticPermissions:n,allowsAllStaticPermissions:u,connectionIds:c,allowsAllConnections:f,toolNames:Array.from(l),allowsAllTools:r,modelCount:e,allowsAllModels:s}}function v(){const{locator:t}=h(),{data:n,isLoading:u,error:c,refetch:f}=b({queryKey:P.organizationRoles(t),queryFn:async()=>{try{const e=await p.organization.listRoles();return e?.error?(console.error("[useOrganizationRoles] API error:",e.error),[]):e?.data??[]}catch(e){return console.error("[useOrganizationRoles] Fetch error:",e),[]}},staleTime:3e4}),l=w.map(e=>({role:e.value,label:e.label,isBuiltin:e.isBuiltin}));if(n&&Array.isArray(n))for(const e of n){const s=e.role;if(!s||w.some(g=>g.value===s))continue;const{staticPermissions:i,allowsAllStaticPermissions:o,connectionIds:a,allowsAllConnections:m,toolNames:C,allowsAllTools:d,modelCount:R,allowsAllModels:A}=B(e.permission);l.push({id:e.id,role:s,label:y(s),isBuiltin:!1,permission:e.permission??void 0,staticPermissionCount:o?-1:i.length,allowsAllStaticPermissions:o,connectionCount:m?-1:a.length,allowsAllConnections:m,toolCount:d?-1:C.length,allowsAllTools:d,modelCount:A?-1:R,allowsAllModels:A})}const r=l.filter(e=>!e.isBuiltin);return{roles:l,customRoles:r,builtinRoles:l.filter(e=>e.isBuiltin),isLoading:u,error:c,refetch:f}}export{v as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-BuP6-BnP.js";import{c2 as i}from"./index-Bn0n2Tn5.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-BuP6-BnP.js";import{c2 as u,c3 as n}from"./index-Bn0n2Tn5.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as s,g as l,j as o,l as a,E as n,r as c}from"./index-Bn0n2Tn5.js";import{a as f}from"./index-DlTZXAh7.js";import"./index-CRq27LIF.js";import"./constants-DWChG_gh.js";import"./collections-BcyYFQx1.js";import"./index-DDe7jF1Q.js";import"./use-virtual-mcp-BYV6DlKB.js";import"./use-collections-s48OQ83y.js";import"./monaco-editor-DxUxs9LV.js";import"./index-Ck21eYLb.js";import"./accordion-Bgtbenzk.js";import"./agent-icon-DdfLWWFz.js";import"./AlertCircle-BefAeM6u.js";import"./Tool01-CWU0CUYW.js";import"./XClose-CeINnhme.js";import"./RefreshCcw01-DhQjzDQL.js";import"./ArrowNarrowLeft-ctHZC7IK.js";import"./XCircle-CBqb98Hh.js";import"./ArrowUpRight-Dw5rxpDu.js";import"./ZapSquare-Ri9lH1zf.js";import"./Users03-BNN6AS-n.js";import"./CheckCircle-3lbo4DOp.js";import"./ChevronDown-BMsVDJMd.js";import"./ChevronRight-DNaFnNR_.js";import"./ChevronUp-Ba2YtjVA.js";import"./DotsVertical-q5wudUQb.js";import"./Container-BbxUmzld.js";import"./Star01-Cl5wO8v8.js";import"./Palette-CSbP1WU6.js";import"./SearchMd-tlcXyQa_.js";import"./index-BY4tnJ8n.js";import"./tooltip-CkzGOY_H.js";import"./X-XvFOaH_0.js";import"./LinkExternal01-B-rWZEWZ.js";import"./Lock01-Bdpg3Hx_.js";import"./Sun-MpjnKSLA.js";import"./Play-BwE8tx_2.js";import"./Plus-B1zoIOQx.js";import"./Settings02-NVTdZYn8.js";import"./Shield01-Cczh_kLJ.js";import"./Trash01-CGGNK3g-.js";import"./User01-BwcffllD.js";import"./Zap-CDrmsf2C.js";import"./badge-BJnKVqQg.js";import"./select-rt68l1g_.js";import"./view-mode-toggle-DVYpzTeC.js";import"./layout-DVOt2okr.js";import"./use-connection-Q2SEpogi.js";import"./use-mcp-tools-CODd7jbk.js";import"./dialog-U3vhhaTY.js";import"./index-BKYuq1nk.js";import"./dropdown-menu-LTGIQdd2.js";import"./integration-icon-Db7fTukH.js";import"./scroll-area-CTWKzmcY.js";import"./index-BjIWAww2.js";import"./empty-state-BsHUWcel.js";import"./create-sse-subscription-CxkOgzKf.js";import"./input-C0cHvFsP.js";function ht(){const t=s.c(4);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/workflows/$itemId"},t[0]=r):r=t[0];const{itemId:e}=l(r);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(a,{size:32,className:"animate-spin text-muted-foreground"})}),t[1]=i):i=t[1];const p=decodeURIComponent(e);let m;return t[2]!==p?(m=o.jsx(n,{children:o.jsx(c.Suspense,{fallback:i,children:o.jsx(f,{itemId:p})})}),t[2]=p,t[3]=m):m=t[3],m}export{ht as default};
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
export type CSPair = { // eslint-disable-line @typescript-eslint/naming-convention
|
|
2
|
-
/**
|
|
3
|
-
The ANSI terminal control sequence for starting this style.
|
|
4
|
-
*/
|
|
5
|
-
readonly open: string;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
The ANSI terminal control sequence for ending this style.
|
|
9
|
-
*/
|
|
10
|
-
readonly close: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export type ColorBase = {
|
|
14
|
-
/**
|
|
15
|
-
The ANSI terminal control sequence for ending this color.
|
|
16
|
-
*/
|
|
17
|
-
readonly close: string;
|
|
18
|
-
|
|
19
|
-
ansi(code: number): string;
|
|
20
|
-
|
|
21
|
-
ansi256(code: number): string;
|
|
22
|
-
|
|
23
|
-
ansi16m(red: number, green: number, blue: number): string;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export type Modifier = {
|
|
27
|
-
/**
|
|
28
|
-
Resets the current color chain.
|
|
29
|
-
*/
|
|
30
|
-
readonly reset: CSPair;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
Make text bold.
|
|
34
|
-
*/
|
|
35
|
-
readonly bold: CSPair;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
Emitting only a small amount of light.
|
|
39
|
-
*/
|
|
40
|
-
readonly dim: CSPair;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
Make text italic. (Not widely supported)
|
|
44
|
-
*/
|
|
45
|
-
readonly italic: CSPair;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
Make text underline. (Not widely supported)
|
|
49
|
-
*/
|
|
50
|
-
readonly underline: CSPair;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
Make text overline.
|
|
54
|
-
|
|
55
|
-
Supported on VTE-based terminals, the GNOME terminal, mintty, and Git Bash.
|
|
56
|
-
*/
|
|
57
|
-
readonly overline: CSPair;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
Inverse background and foreground colors.
|
|
61
|
-
*/
|
|
62
|
-
readonly inverse: CSPair;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
Prints the text, but makes it invisible.
|
|
66
|
-
*/
|
|
67
|
-
readonly hidden: CSPair;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
Puts a horizontal line through the center of the text. (Not widely supported)
|
|
71
|
-
*/
|
|
72
|
-
readonly strikethrough: CSPair;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export type ForegroundColor = {
|
|
76
|
-
readonly black: CSPair;
|
|
77
|
-
readonly red: CSPair;
|
|
78
|
-
readonly green: CSPair;
|
|
79
|
-
readonly yellow: CSPair;
|
|
80
|
-
readonly blue: CSPair;
|
|
81
|
-
readonly cyan: CSPair;
|
|
82
|
-
readonly magenta: CSPair;
|
|
83
|
-
readonly white: CSPair;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
Alias for `blackBright`.
|
|
87
|
-
*/
|
|
88
|
-
readonly gray: CSPair;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
Alias for `blackBright`.
|
|
92
|
-
*/
|
|
93
|
-
readonly grey: CSPair;
|
|
94
|
-
|
|
95
|
-
readonly blackBright: CSPair;
|
|
96
|
-
readonly redBright: CSPair;
|
|
97
|
-
readonly greenBright: CSPair;
|
|
98
|
-
readonly yellowBright: CSPair;
|
|
99
|
-
readonly blueBright: CSPair;
|
|
100
|
-
readonly cyanBright: CSPair;
|
|
101
|
-
readonly magentaBright: CSPair;
|
|
102
|
-
readonly whiteBright: CSPair;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export type BackgroundColor = {
|
|
106
|
-
readonly bgBlack: CSPair;
|
|
107
|
-
readonly bgRed: CSPair;
|
|
108
|
-
readonly bgGreen: CSPair;
|
|
109
|
-
readonly bgYellow: CSPair;
|
|
110
|
-
readonly bgBlue: CSPair;
|
|
111
|
-
readonly bgCyan: CSPair;
|
|
112
|
-
readonly bgMagenta: CSPair;
|
|
113
|
-
readonly bgWhite: CSPair;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
Alias for `bgBlackBright`.
|
|
117
|
-
*/
|
|
118
|
-
readonly bgGray: CSPair;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
Alias for `bgBlackBright`.
|
|
122
|
-
*/
|
|
123
|
-
readonly bgGrey: CSPair;
|
|
124
|
-
|
|
125
|
-
readonly bgBlackBright: CSPair;
|
|
126
|
-
readonly bgRedBright: CSPair;
|
|
127
|
-
readonly bgGreenBright: CSPair;
|
|
128
|
-
readonly bgYellowBright: CSPair;
|
|
129
|
-
readonly bgBlueBright: CSPair;
|
|
130
|
-
readonly bgCyanBright: CSPair;
|
|
131
|
-
readonly bgMagentaBright: CSPair;
|
|
132
|
-
readonly bgWhiteBright: CSPair;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
export type ConvertColor = {
|
|
136
|
-
/**
|
|
137
|
-
Convert from the RGB color space to the ANSI 256 color space.
|
|
138
|
-
|
|
139
|
-
@param red - (`0...255`)
|
|
140
|
-
@param green - (`0...255`)
|
|
141
|
-
@param blue - (`0...255`)
|
|
142
|
-
*/
|
|
143
|
-
rgbToAnsi256(red: number, green: number, blue: number): number;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
Convert from the RGB HEX color space to the RGB color space.
|
|
147
|
-
|
|
148
|
-
@param hex - A hexadecimal string containing RGB data.
|
|
149
|
-
*/
|
|
150
|
-
hexToRgb(hex: string): [red: number, green: number, blue: number];
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
Convert from the RGB HEX color space to the ANSI 256 color space.
|
|
154
|
-
|
|
155
|
-
@param hex - A hexadecimal string containing RGB data.
|
|
156
|
-
*/
|
|
157
|
-
hexToAnsi256(hex: string): number;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
Convert from the ANSI 256 color space to the ANSI 16 color space.
|
|
161
|
-
|
|
162
|
-
@param code - A number representing the ANSI 256 color.
|
|
163
|
-
*/
|
|
164
|
-
ansi256ToAnsi(code: number): number;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
Convert from the RGB color space to the ANSI 16 color space.
|
|
168
|
-
|
|
169
|
-
@param red - (`0...255`)
|
|
170
|
-
@param green - (`0...255`)
|
|
171
|
-
@param blue - (`0...255`)
|
|
172
|
-
*/
|
|
173
|
-
rgbToAnsi(red: number, green: number, blue: number): number;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
Convert from the RGB HEX color space to the ANSI 16 color space.
|
|
177
|
-
|
|
178
|
-
@param hex - A hexadecimal string containing RGB data.
|
|
179
|
-
*/
|
|
180
|
-
hexToAnsi(hex: string): number;
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
Basic modifier names.
|
|
185
|
-
*/
|
|
186
|
-
export type ModifierName = keyof Modifier;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
Basic foreground color names.
|
|
190
|
-
|
|
191
|
-
[More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
|
|
192
|
-
*/
|
|
193
|
-
export type ForegroundColorName = keyof ForegroundColor;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
Basic background color names.
|
|
197
|
-
|
|
198
|
-
[More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
|
|
199
|
-
*/
|
|
200
|
-
export type BackgroundColorName = keyof BackgroundColor;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
Basic color names. The combination of foreground and background color names.
|
|
204
|
-
|
|
205
|
-
[More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
|
|
206
|
-
*/
|
|
207
|
-
export type ColorName = ForegroundColorName | BackgroundColorName;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
Basic modifier names.
|
|
211
|
-
*/
|
|
212
|
-
export const modifierNames: readonly ModifierName[];
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
Basic foreground color names.
|
|
216
|
-
*/
|
|
217
|
-
export const foregroundColorNames: readonly ForegroundColorName[];
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
Basic background color names.
|
|
221
|
-
*/
|
|
222
|
-
export const backgroundColorNames: readonly BackgroundColorName[];
|
|
223
|
-
|
|
224
|
-
/*
|
|
225
|
-
Basic color names. The combination of foreground and background color names.
|
|
226
|
-
*/
|
|
227
|
-
export const colorNames: readonly ColorName[];
|
|
228
|
-
|
|
229
|
-
declare const ansiStyles: {
|
|
230
|
-
readonly modifier: Modifier;
|
|
231
|
-
readonly color: ColorBase & ForegroundColor;
|
|
232
|
-
readonly bgColor: ColorBase & BackgroundColor;
|
|
233
|
-
readonly codes: ReadonlyMap<number, number>;
|
|
234
|
-
} & ForegroundColor & BackgroundColor & Modifier & ConvertColor;
|
|
235
|
-
|
|
236
|
-
export default ansiStyles;
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
const ANSI_BACKGROUND_OFFSET = 10;
|
|
2
|
-
|
|
3
|
-
const wrapAnsi16 = (offset = 0) => code => `\u001B[${code + offset}m`;
|
|
4
|
-
|
|
5
|
-
const wrapAnsi256 = (offset = 0) => code => `\u001B[${38 + offset};5;${code}m`;
|
|
6
|
-
|
|
7
|
-
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
|
|
8
|
-
|
|
9
|
-
const styles = {
|
|
10
|
-
modifier: {
|
|
11
|
-
reset: [0, 0],
|
|
12
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
13
|
-
bold: [1, 22],
|
|
14
|
-
dim: [2, 22],
|
|
15
|
-
italic: [3, 23],
|
|
16
|
-
underline: [4, 24],
|
|
17
|
-
overline: [53, 55],
|
|
18
|
-
inverse: [7, 27],
|
|
19
|
-
hidden: [8, 28],
|
|
20
|
-
strikethrough: [9, 29],
|
|
21
|
-
},
|
|
22
|
-
color: {
|
|
23
|
-
black: [30, 39],
|
|
24
|
-
red: [31, 39],
|
|
25
|
-
green: [32, 39],
|
|
26
|
-
yellow: [33, 39],
|
|
27
|
-
blue: [34, 39],
|
|
28
|
-
magenta: [35, 39],
|
|
29
|
-
cyan: [36, 39],
|
|
30
|
-
white: [37, 39],
|
|
31
|
-
|
|
32
|
-
// Bright color
|
|
33
|
-
blackBright: [90, 39],
|
|
34
|
-
gray: [90, 39], // Alias of `blackBright`
|
|
35
|
-
grey: [90, 39], // Alias of `blackBright`
|
|
36
|
-
redBright: [91, 39],
|
|
37
|
-
greenBright: [92, 39],
|
|
38
|
-
yellowBright: [93, 39],
|
|
39
|
-
blueBright: [94, 39],
|
|
40
|
-
magentaBright: [95, 39],
|
|
41
|
-
cyanBright: [96, 39],
|
|
42
|
-
whiteBright: [97, 39],
|
|
43
|
-
},
|
|
44
|
-
bgColor: {
|
|
45
|
-
bgBlack: [40, 49],
|
|
46
|
-
bgRed: [41, 49],
|
|
47
|
-
bgGreen: [42, 49],
|
|
48
|
-
bgYellow: [43, 49],
|
|
49
|
-
bgBlue: [44, 49],
|
|
50
|
-
bgMagenta: [45, 49],
|
|
51
|
-
bgCyan: [46, 49],
|
|
52
|
-
bgWhite: [47, 49],
|
|
53
|
-
|
|
54
|
-
// Bright color
|
|
55
|
-
bgBlackBright: [100, 49],
|
|
56
|
-
bgGray: [100, 49], // Alias of `bgBlackBright`
|
|
57
|
-
bgGrey: [100, 49], // Alias of `bgBlackBright`
|
|
58
|
-
bgRedBright: [101, 49],
|
|
59
|
-
bgGreenBright: [102, 49],
|
|
60
|
-
bgYellowBright: [103, 49],
|
|
61
|
-
bgBlueBright: [104, 49],
|
|
62
|
-
bgMagentaBright: [105, 49],
|
|
63
|
-
bgCyanBright: [106, 49],
|
|
64
|
-
bgWhiteBright: [107, 49],
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export const modifierNames = Object.keys(styles.modifier);
|
|
69
|
-
export const foregroundColorNames = Object.keys(styles.color);
|
|
70
|
-
export const backgroundColorNames = Object.keys(styles.bgColor);
|
|
71
|
-
export const colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
72
|
-
|
|
73
|
-
function assembleStyles() {
|
|
74
|
-
const codes = new Map();
|
|
75
|
-
|
|
76
|
-
for (const [groupName, group] of Object.entries(styles)) {
|
|
77
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
78
|
-
styles[styleName] = {
|
|
79
|
-
open: `\u001B[${style[0]}m`,
|
|
80
|
-
close: `\u001B[${style[1]}m`,
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
group[styleName] = styles[styleName];
|
|
84
|
-
|
|
85
|
-
codes.set(style[0], style[1]);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
Object.defineProperty(styles, groupName, {
|
|
89
|
-
value: group,
|
|
90
|
-
enumerable: false,
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
Object.defineProperty(styles, 'codes', {
|
|
95
|
-
value: codes,
|
|
96
|
-
enumerable: false,
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
styles.color.close = '\u001B[39m';
|
|
100
|
-
styles.bgColor.close = '\u001B[49m';
|
|
101
|
-
|
|
102
|
-
styles.color.ansi = wrapAnsi16();
|
|
103
|
-
styles.color.ansi256 = wrapAnsi256();
|
|
104
|
-
styles.color.ansi16m = wrapAnsi16m();
|
|
105
|
-
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
106
|
-
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
107
|
-
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
108
|
-
|
|
109
|
-
// From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js
|
|
110
|
-
Object.defineProperties(styles, {
|
|
111
|
-
rgbToAnsi256: {
|
|
112
|
-
value(red, green, blue) {
|
|
113
|
-
// We use the extended greyscale palette here, with the exception of
|
|
114
|
-
// black and white. normal palette only has 4 greyscale shades.
|
|
115
|
-
if (red === green && green === blue) {
|
|
116
|
-
if (red < 8) {
|
|
117
|
-
return 16;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
if (red > 248) {
|
|
121
|
-
return 231;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
return Math.round(((red - 8) / 247) * 24) + 232;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return 16
|
|
128
|
-
+ (36 * Math.round(red / 255 * 5))
|
|
129
|
-
+ (6 * Math.round(green / 255 * 5))
|
|
130
|
-
+ Math.round(blue / 255 * 5);
|
|
131
|
-
},
|
|
132
|
-
enumerable: false,
|
|
133
|
-
},
|
|
134
|
-
hexToRgb: {
|
|
135
|
-
value(hex) {
|
|
136
|
-
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
137
|
-
if (!matches) {
|
|
138
|
-
return [0, 0, 0];
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
let [colorString] = matches;
|
|
142
|
-
|
|
143
|
-
if (colorString.length === 3) {
|
|
144
|
-
colorString = [...colorString].map(character => character + character).join('');
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
const integer = Number.parseInt(colorString, 16);
|
|
148
|
-
|
|
149
|
-
return [
|
|
150
|
-
/* eslint-disable no-bitwise */
|
|
151
|
-
(integer >> 16) & 0xFF,
|
|
152
|
-
(integer >> 8) & 0xFF,
|
|
153
|
-
integer & 0xFF,
|
|
154
|
-
/* eslint-enable no-bitwise */
|
|
155
|
-
];
|
|
156
|
-
},
|
|
157
|
-
enumerable: false,
|
|
158
|
-
},
|
|
159
|
-
hexToAnsi256: {
|
|
160
|
-
value: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
161
|
-
enumerable: false,
|
|
162
|
-
},
|
|
163
|
-
ansi256ToAnsi: {
|
|
164
|
-
value(code) {
|
|
165
|
-
if (code < 8) {
|
|
166
|
-
return 30 + code;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
if (code < 16) {
|
|
170
|
-
return 90 + (code - 8);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
let red;
|
|
174
|
-
let green;
|
|
175
|
-
let blue;
|
|
176
|
-
|
|
177
|
-
if (code >= 232) {
|
|
178
|
-
red = (((code - 232) * 10) + 8) / 255;
|
|
179
|
-
green = red;
|
|
180
|
-
blue = red;
|
|
181
|
-
} else {
|
|
182
|
-
code -= 16;
|
|
183
|
-
|
|
184
|
-
const remainder = code % 36;
|
|
185
|
-
|
|
186
|
-
red = Math.floor(code / 36) / 5;
|
|
187
|
-
green = Math.floor(remainder / 6) / 5;
|
|
188
|
-
blue = (remainder % 6) / 5;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
const value = Math.max(red, green, blue) * 2;
|
|
192
|
-
|
|
193
|
-
if (value === 0) {
|
|
194
|
-
return 30;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
// eslint-disable-next-line no-bitwise
|
|
198
|
-
let result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));
|
|
199
|
-
|
|
200
|
-
if (value === 2) {
|
|
201
|
-
result += 60;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
return result;
|
|
205
|
-
},
|
|
206
|
-
enumerable: false,
|
|
207
|
-
},
|
|
208
|
-
rgbToAnsi: {
|
|
209
|
-
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
210
|
-
enumerable: false,
|
|
211
|
-
},
|
|
212
|
-
hexToAnsi: {
|
|
213
|
-
value: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
214
|
-
enumerable: false,
|
|
215
|
-
},
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
return styles;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
const ansiStyles = assembleStyles();
|
|
222
|
-
|
|
223
|
-
export default ansiStyles;
|