decocms 2.293.7 → 2.293.8
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-DXfdk9MK.js → AlertCircle-DveGq_Ka.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-m25Ex3xE.js → ArrowNarrowLeft-DHWYg1cd.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DOO4R0VI.js → ArrowUpRight-CCBySLzZ.js} +1 -1
- package/dist/client/assets/{CheckCircle-BC9E8CH0.js → CheckCircle-6bGazfo7.js} +1 -1
- package/dist/client/assets/{ChevronDown-0xFW1Tjk.js → ChevronDown-Bg0fGsAy.js} +1 -1
- package/dist/client/assets/{ChevronRight-Da2pMeyD.js → ChevronRight-DMa-ECep.js} +1 -1
- package/dist/client/assets/{ChevronUp-C8WLqMFJ.js → ChevronUp-hL_C00tb.js} +1 -1
- package/dist/client/assets/{Container-BuB3esl0.js → Container-L4zxxTEg.js} +1 -1
- package/dist/client/assets/{DotsVertical-C2eXnxdz.js → DotsVertical-DCxBI0BW.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BoMA8nX9.js → LinkExternal01-BQ6T0Nws.js} +1 -1
- package/dist/client/assets/{Lock01-D-9xfOJy.js → Lock01-0zry6wgC.js} +1 -1
- package/dist/client/assets/{Palette-B95ZD3_M.js → Palette-Cd-fSUE0.js} +1 -1
- package/dist/client/assets/{Play-DINvkeGT.js → Play-PF2rNc4W.js} +1 -1
- package/dist/client/assets/{Plus-Cz_QF-nO.js → Plus-DYo953wk.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-C9pW6sTt.js → RefreshCcw01-D1Vi0tae.js} +1 -1
- package/dist/client/assets/{SearchMd-BRBTca_N.js → SearchMd-BxcVY0hk.js} +1 -1
- package/dist/client/assets/{Settings02-rRANi0Px.js → Settings02-DfEUH8Vu.js} +1 -1
- package/dist/client/assets/{Shield01-Ca51KHJr.js → Shield01-DkQy31Nt.js} +1 -1
- package/dist/client/assets/{Star01-DeIf7B7B.js → Star01-B6ksoZr0.js} +1 -1
- package/dist/client/assets/{Sun-DhTV9qec.js → Sun-vFyK4_Ll.js} +1 -1
- package/dist/client/assets/{Tool01-Ba9DB62y.js → Tool01-Cb8li5k6.js} +1 -1
- package/dist/client/assets/{Trash01--9QdImzp.js → Trash01-CqSlmOZQ.js} +1 -1
- package/dist/client/assets/{User01-Blfyt5S4.js → User01-BHjwWDd7.js} +1 -1
- package/dist/client/assets/{Users03-BFWP6Eo7.js → Users03-CsGzKQhD.js} +1 -1
- package/dist/client/assets/{X-Bq9xP96R.js → X-BSw526sh.js} +1 -1
- package/dist/client/assets/{XCircle-Cc09MSdO.js → XCircle-DGL-4U6P.js} +1 -1
- package/dist/client/assets/{XClose-CVgNkrOC.js → XClose-DfM5GjZF.js} +1 -1
- package/dist/client/assets/{Zap-jDm5-swv.js → Zap-D55ucbXC.js} +1 -1
- package/dist/client/assets/{ZapSquare-CLMBz7MJ.js → ZapSquare-T3gHYvlz.js} +1 -1
- package/dist/client/assets/{accordion-DAgtJ1RN.js → accordion-BEf7bBJ7.js} +1 -1
- package/dist/client/assets/{agent-icon-Bei3Y6Nv.js → agent-icon-ChIrIWeW.js} +1 -1
- package/dist/client/assets/{agents-list-BEcGQnnc.js → agents-list-DdL2YfiV.js} +1 -1
- package/dist/client/assets/ai-providers-ObNEA0nx.js +1 -0
- package/dist/client/assets/{alert-dialog-BVSxM9YJ.js → alert-dialog-D6jDWQW-.js} +1 -1
- package/dist/client/assets/{auth-catchall-DsAh3g7W.js → auth-catchall-M0Jr5kFb.js} +1 -1
- package/dist/client/assets/{automation-list-row-OM3ZLG5b.js → automation-list-row-Csh5lumM.js} +1 -1
- package/dist/client/assets/{automations-Bfdp-lBm.js → automations-obZ5ZVAW.js} +1 -1
- package/dist/client/assets/{avatar-LDMZpKRg.js → avatar-CKkXwPlY.js} +1 -1
- package/dist/client/assets/{badge-D4FFGy4o.js → badge-yfBx4pKw.js} +1 -1
- package/dist/client/assets/{brand-context-DoIQ0i3H.js → brand-context-DVAt0TKP.js} +1 -1
- package/dist/client/assets/{card-Du9Iuv0G.js → card-e-NpS5kl.js} +1 -1
- package/dist/client/assets/{chat-context-Cu3HdQoP.js → chat-context-GRw0JUF-.js} +1 -1
- package/dist/client/assets/{checkbox-D3HYUnZN.js → checkbox-BWpfDwfi.js} +1 -1
- package/dist/client/assets/{collection-detail-C_Qc4MbL.js → collection-detail-DOCM2IPO.js} +1 -1
- package/dist/client/assets/{collection-display-button-SRtbYzi1.js → collection-display-button-BANI3stw.js} +1 -1
- package/dist/client/assets/{collection-search-BvT81eua.js → collection-search-DyFOds5R.js} +1 -1
- package/dist/client/assets/{collection-search-jeIjsobA.js → collection-search-w3FCfjcj.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D1vIquPS.js → collection-table-wrapper-Ro_jHI87.js} +1 -1
- package/dist/client/assets/{collection-tabs-DPgWxe2m.js → collection-tabs-BI0p7qpI.js} +1 -1
- package/dist/client/assets/{collections-Di3Xclr5.js → collections-FijcH0pF.js} +1 -1
- package/dist/client/assets/{command-CqgC97xW.js → command-nLSAlSuK.js} +1 -1
- package/dist/client/assets/{connection-card-DqAomVSf.js → connection-card-wj_vHsSr.js} +1 -1
- package/dist/client/assets/{connection-detail-CGFhkom4.js → connection-detail-BvUUuCYo.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Bf4nHE9_.js → connection-form-helpers-WMrQb6eb.js} +1 -1
- package/dist/client/assets/{connections-nP3l3Xn5.js → connections-D0bzAtOI.js} +1 -1
- package/dist/client/assets/{constants-Bymra3Z3.js → constants-ChdU9xvz.js} +1 -1
- package/dist/client/assets/{constants-CRmflr8M.js → constants-D7vrREO4.js} +1 -1
- package/dist/client/assets/{dialog-Bnn50qLi.js → dialog-B0QYUD88.js} +1 -1
- package/dist/client/assets/{domain-settings-DyvTdw8S.js → domain-settings-9Q2boaGd.js} +1 -1
- package/dist/client/assets/{drawer-t00j5Ew9.js → drawer-B9QExE6j.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CqTx-nNo.js → dropdown-menu-Dqqv-DxC.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-aon9v2dL.js → dynamic-plugin-layout-BVAHZf_l.js} +1 -1
- package/dist/client/assets/{empty-state-DQOABzrz.js → empty-state-Brbj3WdC.js} +1 -1
- package/dist/client/assets/{empty-state-BCisGTAH.js → empty-state-CtpU7jLB.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Db8ZLaq1.js → extract-connection-data-BdGRQa2R.js} +1 -1
- package/dist/client/assets/{features-B0-ag3C3.js → features-CW2iqt4o.js} +1 -1
- package/dist/client/assets/{form-B5N66yji.js → form-CEqJ4N_7.js} +1 -1
- package/dist/client/assets/{general-C2wzdkNU.js → general-DfPdaroT.js} +1 -1
- package/dist/client/assets/{index-CDTT3e7s.js → index-B6VjlsLE.js} +1 -1
- package/dist/client/assets/index-B6jYwthz.js +1 -0
- package/dist/client/assets/{index-BOmVBt-L.js → index-B9-yB4gn.js} +1 -1
- package/dist/client/assets/{index-C31S4jpX.js → index-Bf3SCl0m.js} +3 -3
- package/dist/client/assets/{index-CzZ-Z-oS.js → index-BsAZNtTY.js} +1 -1
- package/dist/client/assets/{index-skEMlwzP.js → index-C-hC1pHz.js} +1 -1
- package/dist/client/assets/{index-YLWObp9P.js → index-C2C_Qiwh.js} +1 -1
- package/dist/client/assets/{index-SH970SJ0.js → index-CZs7_uJZ.js} +1 -1
- package/dist/client/assets/{index-D_S2FIdU.js → index-CwWV7ZbX.js} +1 -1
- package/dist/client/assets/{index-_ffZL8NJ.js → index-DCHF8zOG.js} +1 -1
- package/dist/client/assets/{index-DzRCCgl0.js → index-DRficqI-.js} +1 -1
- package/dist/client/assets/{index-CRBLJNJY.js → index-DcVnAzZR.js} +1 -1
- package/dist/client/assets/{index-CCSxUcSR.js → index-O-xThSQt.js} +2 -2
- package/dist/client/assets/{index-D0dh_hfJ.js → index-VDFVZp7i.js} +1 -1
- package/dist/client/assets/{index-DZ4C7ecc.js → index-dnp-3LXJ.js} +1 -1
- package/dist/client/assets/{index-BwHYJNqQ.js → index-wTKQdlAH.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-COI6ybpz.js → infiniteQueryObserver-BVq9Pm2a.js} +1 -1
- package/dist/client/assets/{input-CGOXGU1T.js → input-oRQz03qA.js} +1 -1
- package/dist/client/assets/{integration-icon-CsIISZIk.js → integration-icon-Dl850mlU.js} +1 -1
- package/dist/client/assets/{label-D4SEK3ff.js → label-C1-enMbO.js} +1 -1
- package/dist/client/assets/{layout-4V4C6eb5.js → layout-DNdIWyZp.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-Bh9iIV1t.js → lean-canvas-recruit-modal-CRZY0Eb-.js} +1 -1
- package/dist/client/assets/{login-DzbRx3GK.js → login-BfUv2H8w.js} +1 -1
- package/dist/client/assets/{members-S87fVUKE.js → members-CCgRCx0J.js} +1 -1
- package/dist/client/assets/{monaco-editor-lCTWnCWQ.js → monaco-editor-u9gnS6t8.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Bdkg2lXe.js → monitoring-stats-row--8mo81f4.js} +1 -1
- package/dist/client/assets/{oauth-callback-gRWCWpy9.js → oauth-callback-CXfLfK0p.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-pudhCVgi.js → oauth-callback-ai-provider-CBc0oyoe.js} +1 -1
- package/dist/client/assets/{onboarding-D_RZPnOJ.js → onboarding-CvXVvrci.js} +1 -1
- package/dist/client/assets/{org-layout-CyPgK3Oz.js → org-layout-uft5TcR0.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-CuqX6Tv7.js → org-plugin-layout-BCAbckW3.js} +1 -1
- package/dist/client/assets/{pair-B_xTWu6o.js → pair-D89tt-Oa.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-31-4FfVV.js → plugin-empty-state-CdC4a2f5.js} +1 -1
- package/dist/client/assets/{plugin-header-SM3MfaW8.js → plugin-header-C436xgxX.js} +1 -1
- package/dist/client/assets/{plugin-layout-oCouCQJ1.js → plugin-layout-Ck_aFT7l.js} +1 -1
- package/dist/client/assets/{popover-CA7wjTzr.js → popover-Co2M62hE.js} +1 -1
- package/dist/client/assets/{profile-D1kET1t3.js → profile-D8aA_SfN.js} +1 -1
- package/dist/client/assets/{project-app-view-BnnlNd0S.js → project-app-view-BQN6gYM4.js} +1 -1
- package/dist/client/assets/registry-F9ZprpXD.js +2 -0
- package/dist/client/assets/{registry-layout-C7uUKQwM.js → registry-layout-CDOchZNA.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BARTxmgG.js → required-auth-layout-WPul4l6C.js} +1 -1
- package/dist/client/assets/{reset-password-DldtE7pq.js → reset-password-CCvsOolV.js} +1 -1
- package/dist/client/assets/{roles-jDo56Odb.js → roles-CfoKq5oL.js} +1 -1
- package/dist/client/assets/{scroll-area-CO1r6tWJ.js → scroll-area-ePY6ucBL.js} +1 -1
- package/dist/client/assets/{search-input-ChGtPve4.js → search-input-BA02UXZa.js} +1 -1
- package/dist/client/assets/{select-CuiyoiL_.js → select-Cq_PvnKV.js} +1 -1
- package/dist/client/assets/{select-model-DnX3-EsU.js → select-model-BpJHvnyq.js} +1 -1
- package/dist/client/assets/{settings-layout-CTMYFxx3.js → settings-layout-Dl8RrXAU.js} +1 -1
- package/dist/client/assets/{settings-section-BmjPsExf.js → settings-section-BzS4xloW.js} +1 -1
- package/dist/client/assets/{shell-layout-CWH_Y15a.js → shell-layout-DOMzE0SQ.js} +1 -1
- package/dist/client/assets/{skeleton-BodtHV9I.js → skeleton-YcXGprZE.js} +1 -1
- package/dist/client/assets/{sso-C2OaFdPj.js → sso-pG-n5D-C.js} +1 -1
- package/dist/client/assets/{store-DQliQdSk.js → store-DsWe3E_F.js} +1 -1
- package/dist/client/assets/store-registry-C1Sfy2sE.js +2 -0
- package/dist/client/assets/{switch-CdHRMTW9.js → switch-BjSXi4cA.js} +1 -1
- package/dist/client/assets/{table-DVtFTUHZ.js → table-q-k_hgAt.js} +1 -1
- package/dist/client/assets/{tabs-BgJeSqk4.js → tabs-C3iMtl0f.js} +1 -1
- package/dist/client/assets/{task-status-CfDV-ew7.js → task-status-jHWa41cV.js} +1 -1
- package/dist/client/assets/{textarea-DzkVG7JD.js → textarea-BSpBSpMd.js} +1 -1
- package/dist/client/assets/{toggle-group-qQMNUT-A.js → toggle-group-Z4_K_UMR.js} +1 -1
- package/dist/client/assets/{tools-list-m5KatPL5.js → tools-list-DVlfSdCs.js} +1 -1
- package/dist/client/assets/{tooltip-BqNUzMrI.js → tooltip-CZKTj_88.js} +1 -1
- package/dist/client/assets/{types-AfFc_tMd.js → types-CTCqQWQm.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BK_veNO4.js → use-ai-providers-Bi5zwgNs.js} +1 -1
- package/dist/client/assets/{use-collections-DwZut8wL.js → use-collections-DpHr_hEj.js} +1 -1
- package/dist/client/assets/{use-connection-BJpbsOIS.js → use-connection-Dkzl6ATr.js} +1 -1
- package/dist/client/assets/{use-copy-Bo8GL7eE.js → use-copy-CpuPfSHn.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-D6JQCBq2.js → use-create-virtual-mcp-BDDTbSDu.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-C5NKtuSG.js → use-decopilot-events-DfNhZiit.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DxaPbg-L.js → use-delete-connection-DzmSSfSC.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-x7s39dsa.js → use-infinite-scroll-ZB6EnEL9.js} +1 -1
- package/dist/client/assets/{use-list-state-BnhDBtx8.js → use-list-state-BxmWtMlf.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CpGxrE2n.js → use-mcp-tools-dN493Per.js} +1 -1
- package/dist/client/assets/{use-members-CguSIAh8.js → use-members-BLQ9W5Dc.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DL1SSMeI.js → use-navigate-to-agent-CBd-r96N.js} +1 -1
- package/dist/client/assets/{use-org-sso-BRsOtHzg.js → use-org-sso-Fy8p-ia7.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CIvbWsgj.js → use-organization-roles-BY5zQhyp.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DXVGYoSK.js → use-organization-settings-BiTIuKde.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BKsU7-eH.js → use-registry-connections-B1h0NOZd.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BCtmxJQJ.js → use-status-sounds-ChN-g_Kb.js} +1 -1
- package/dist/client/assets/{use-tasks-BImSKPbl.js → use-tasks-CMJbyrNa.js} +1 -1
- package/dist/client/assets/{use-view-mode-R5lOl_7l.js → use-view-mode-BglVjHEt.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-mfRFtB08.js → use-virtual-mcp-Cn-xT_JW.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BTmoYoSz.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-D3qWdmTu.js +1 -0
- package/dist/client/assets/{user-DdWZGaQJ.js → user-BnKZSLel.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DhxRxMVU.js → view-mode-toggle-BueYVsWt.js} +1 -1
- package/dist/client/assets/{workflow-BIU8orVo.js → workflow-DbzdHDRp.js} +1 -1
- package/dist/client/assets/workflow-detail-D1gDF37Z.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +3 -3
- package/dist/server/migrate.js +88 -88
- package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
- package/dist/server/node_modules/ansi-styles/index.js +223 -0
- package/dist/server/node_modules/ansi-styles/package.json +54 -0
- package/dist/server/node_modules/ansi-styles/readme.md +173 -0
- package/dist/server/node_modules/environment/index.d.ts +74 -0
- package/dist/server/node_modules/environment/index.js +47 -0
- package/dist/server/node_modules/{slice-ansi → environment}/license +0 -1
- package/dist/server/node_modules/environment/package.json +74 -0
- package/dist/server/node_modules/environment/readme.md +94 -0
- package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
- package/dist/server/node_modules/escape-string-regexp/license +9 -0
- package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
- package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
- package/dist/server/node_modules/is-fullwidth-code-point/license +9 -0
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +53 -0
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
- package/dist/server/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/dist/server/node_modules/is-unicode-supported/index.js +21 -0
- package/dist/server/node_modules/is-unicode-supported/license +9 -0
- package/dist/server/node_modules/is-unicode-supported/package.json +47 -0
- package/dist/server/node_modules/is-unicode-supported/readme.md +35 -0
- package/dist/server/node_modules/mimic-fn/index.d.ts +54 -0
- package/dist/server/node_modules/mimic-fn/index.js +13 -0
- package/dist/server/node_modules/mimic-fn/license +9 -0
- package/dist/server/node_modules/{onetime → mimic-fn}/package.json +15 -16
- package/dist/server/node_modules/mimic-fn/readme.md +69 -0
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/postgres-date/license +21 -0
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/postgres-interval/license +21 -0
- package/dist/server/node_modules/postgres-interval/package.json +36 -0
- package/dist/server/node_modules/postgres-interval/readme.md +48 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-Dp405boW.js +0 -1
- package/dist/client/assets/index-ShFS2Xm9.js +0 -1
- package/dist/client/assets/registry-D3F48l8n.js +0 -2
- package/dist/client/assets/store-registry-BFBR78Ii.js +0 -2
- package/dist/client/assets/useInfiniteQuery-W0R8FLKd.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Vv5DMGlP.js +0 -1
- package/dist/client/assets/workflow-detail-cJknrHKx.js +0 -1
- package/dist/server/node_modules/onetime/index.d.ts +0 -64
- package/dist/server/node_modules/onetime/index.js +0 -44
- package/dist/server/node_modules/onetime/readme.md +0 -94
- package/dist/server/node_modules/slice-ansi/index.d.ts +0 -19
- package/dist/server/node_modules/slice-ansi/index.js +0 -260
- package/dist/server/node_modules/slice-ansi/package.json +0 -59
- package/dist/server/node_modules/slice-ansi/readme.md +0 -54
- package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +0 -752
- /package/dist/server/node_modules/{onetime → ansi-styles}/license +0 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
var extend = require('xtend/mutable')
|
|
4
|
+
|
|
5
|
+
module.exports = PostgresInterval
|
|
6
|
+
|
|
7
|
+
function PostgresInterval (raw) {
|
|
8
|
+
if (!(this instanceof PostgresInterval)) {
|
|
9
|
+
return new PostgresInterval(raw)
|
|
10
|
+
}
|
|
11
|
+
extend(this, parse(raw))
|
|
12
|
+
}
|
|
13
|
+
var properties = ['seconds', 'minutes', 'hours', 'days', 'months', 'years']
|
|
14
|
+
PostgresInterval.prototype.toPostgres = function () {
|
|
15
|
+
var filtered = properties.filter(this.hasOwnProperty, this)
|
|
16
|
+
|
|
17
|
+
// In addition to `properties`, we need to account for fractions of seconds.
|
|
18
|
+
if (this.milliseconds && filtered.indexOf('seconds') < 0) {
|
|
19
|
+
filtered.push('seconds')
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (filtered.length === 0) return '0'
|
|
23
|
+
return filtered
|
|
24
|
+
.map(function (property) {
|
|
25
|
+
var value = this[property] || 0
|
|
26
|
+
|
|
27
|
+
// Account for fractional part of seconds,
|
|
28
|
+
// remove trailing zeroes.
|
|
29
|
+
if (property === 'seconds' && this.milliseconds) {
|
|
30
|
+
value = (value + this.milliseconds / 1000).toFixed(6).replace(/\.?0+$/, '')
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return value + ' ' + property
|
|
34
|
+
}, this)
|
|
35
|
+
.join(' ')
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
var propertiesISOEquivalent = {
|
|
39
|
+
years: 'Y',
|
|
40
|
+
months: 'M',
|
|
41
|
+
days: 'D',
|
|
42
|
+
hours: 'H',
|
|
43
|
+
minutes: 'M',
|
|
44
|
+
seconds: 'S'
|
|
45
|
+
}
|
|
46
|
+
var dateProperties = ['years', 'months', 'days']
|
|
47
|
+
var timeProperties = ['hours', 'minutes', 'seconds']
|
|
48
|
+
// according to ISO 8601
|
|
49
|
+
PostgresInterval.prototype.toISOString = PostgresInterval.prototype.toISO = function () {
|
|
50
|
+
var datePart = dateProperties
|
|
51
|
+
.map(buildProperty, this)
|
|
52
|
+
.join('')
|
|
53
|
+
|
|
54
|
+
var timePart = timeProperties
|
|
55
|
+
.map(buildProperty, this)
|
|
56
|
+
.join('')
|
|
57
|
+
|
|
58
|
+
return 'P' + datePart + 'T' + timePart
|
|
59
|
+
|
|
60
|
+
function buildProperty (property) {
|
|
61
|
+
var value = this[property] || 0
|
|
62
|
+
|
|
63
|
+
// Account for fractional part of seconds,
|
|
64
|
+
// remove trailing zeroes.
|
|
65
|
+
if (property === 'seconds' && this.milliseconds) {
|
|
66
|
+
value = (value + this.milliseconds / 1000).toFixed(6).replace(/0+$/, '')
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return value + propertiesISOEquivalent[property]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
var NUMBER = '([+-]?\\d+)'
|
|
74
|
+
var YEAR = NUMBER + '\\s+years?'
|
|
75
|
+
var MONTH = NUMBER + '\\s+mons?'
|
|
76
|
+
var DAY = NUMBER + '\\s+days?'
|
|
77
|
+
var TIME = '([+-])?([\\d]*):(\\d\\d):(\\d\\d)\\.?(\\d{1,6})?'
|
|
78
|
+
var INTERVAL = new RegExp([YEAR, MONTH, DAY, TIME].map(function (regexString) {
|
|
79
|
+
return '(' + regexString + ')?'
|
|
80
|
+
})
|
|
81
|
+
.join('\\s*'))
|
|
82
|
+
|
|
83
|
+
// Positions of values in regex match
|
|
84
|
+
var positions = {
|
|
85
|
+
years: 2,
|
|
86
|
+
months: 4,
|
|
87
|
+
days: 6,
|
|
88
|
+
hours: 9,
|
|
89
|
+
minutes: 10,
|
|
90
|
+
seconds: 11,
|
|
91
|
+
milliseconds: 12
|
|
92
|
+
}
|
|
93
|
+
// We can use negative time
|
|
94
|
+
var negatives = ['hours', 'minutes', 'seconds', 'milliseconds']
|
|
95
|
+
|
|
96
|
+
function parseMilliseconds (fraction) {
|
|
97
|
+
// add omitted zeroes
|
|
98
|
+
var microseconds = fraction + '000000'.slice(fraction.length)
|
|
99
|
+
return parseInt(microseconds, 10) / 1000
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function parse (interval) {
|
|
103
|
+
if (!interval) return {}
|
|
104
|
+
var matches = INTERVAL.exec(interval)
|
|
105
|
+
var isNegative = matches[8] === '-'
|
|
106
|
+
return Object.keys(positions)
|
|
107
|
+
.reduce(function (parsed, property) {
|
|
108
|
+
var position = positions[property]
|
|
109
|
+
var value = matches[position]
|
|
110
|
+
// no empty string
|
|
111
|
+
if (!value) return parsed
|
|
112
|
+
// milliseconds are actually microseconds (up to 6 digits)
|
|
113
|
+
// with omitted trailing zeroes.
|
|
114
|
+
value = property === 'milliseconds'
|
|
115
|
+
? parseMilliseconds(value)
|
|
116
|
+
: parseInt(value, 10)
|
|
117
|
+
// no zeros
|
|
118
|
+
if (!value) return parsed
|
|
119
|
+
if (isNegative && ~negatives.indexOf(property)) {
|
|
120
|
+
value *= -1
|
|
121
|
+
}
|
|
122
|
+
parsed[property] = value
|
|
123
|
+
return parsed
|
|
124
|
+
}, {})
|
|
125
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "postgres-interval",
|
|
3
|
+
"main": "index.js",
|
|
4
|
+
"version": "1.2.0",
|
|
5
|
+
"description": "Parse Postgres interval columns",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "bendrucker/postgres-interval",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Ben Drucker",
|
|
10
|
+
"email": "bvdrucker@gmail.com",
|
|
11
|
+
"url": "bendrucker.me"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=0.10.0"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "standard && tape test.js"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"postgres",
|
|
21
|
+
"interval",
|
|
22
|
+
"parser"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"xtend": "^4.0.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"tape": "^4.0.0",
|
|
29
|
+
"standard": "^12.0.1"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"index.js",
|
|
33
|
+
"index.d.ts",
|
|
34
|
+
"readme.md"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# postgres-interval [](https://travis-ci.org/bendrucker/postgres-interval) [](https://greenkeeper.io/)
|
|
2
|
+
|
|
3
|
+
> Parse Postgres interval columns
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install --save postgres-interval
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
var parse = require('postgres-interval')
|
|
17
|
+
var interval = parse('01:02:03')
|
|
18
|
+
//=> {hours: 1, minutes: 2, seconds: 3}
|
|
19
|
+
interval.toPostgres()
|
|
20
|
+
// 3 seconds 2 minutes 1 hours
|
|
21
|
+
interval.toISO()
|
|
22
|
+
// P0Y0M0DT1H2M3S
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## API
|
|
26
|
+
|
|
27
|
+
#### `parse(pgInterval)` -> `interval`
|
|
28
|
+
|
|
29
|
+
##### pgInterval
|
|
30
|
+
|
|
31
|
+
*Required*
|
|
32
|
+
Type: `string`
|
|
33
|
+
|
|
34
|
+
A Postgres interval string.
|
|
35
|
+
|
|
36
|
+
#### `interval.toPostgres()` -> `string`
|
|
37
|
+
|
|
38
|
+
Returns an interval string. This allows the interval object to be passed into prepared statements.
|
|
39
|
+
|
|
40
|
+
#### `interval.toISOString()` -> `string`
|
|
41
|
+
|
|
42
|
+
Returns an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) compliant string.
|
|
43
|
+
|
|
44
|
+
Also available as `interval.toISO()` for backwards compatibility.
|
|
45
|
+
|
|
46
|
+
## License
|
|
47
|
+
|
|
48
|
+
MIT © [Ben Drucker](http://bendrucker.me)
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as t,j as i}from"./index-CCSxUcSR.js";import{O as m}from"./select-model-DnX3-EsU.js";import"./checkbox-D3HYUnZN.js";import"./ChevronDown-0xFW1Tjk.js";import"./input-CGOXGU1T.js";import"./dialog-Bnn50qLi.js";import"./X-Bq9xP96R.js";import"./drawer-t00j5Ew9.js";import"./tooltip-BqNUzMrI.js";import"./select-CuiyoiL_.js";import"./ChevronUp-C8WLqMFJ.js";import"./skeleton-BodtHV9I.js";import"./Tool01-Ba9DB62y.js";import"./RefreshCcw01-C9pW6sTt.js";import"./SearchMd-BRBTca_N.js";import"./Settings02-rRANi0Px.js";import"./use-ai-providers-BK_veNO4.js";import"./constants-Bymra3Z3.js";import"./chat-context-Cu3HdQoP.js";import"./use-virtual-mcp-mfRFtB08.js";import"./use-collections-DwZut8wL.js";import"./use-decopilot-events-C5NKtuSG.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-BImSKPbl.js";import"./use-organization-settings-DXVGYoSK.js";import"./ai-providers-logos-D6a8kmGH.js";import"./Zap-jDm5-swv.js";import"./AlertCircle-DXfdk9MK.js";import"./CheckCircle-BC9E8CH0.js";import"./Trash01--9QdImzp.js";import"./index-_ffZL8NJ.js";import"./settings-section-BmjPsExf.js";import"./card-Du9Iuv0G.js";import"./ArrowUpRight-DOO4R0VI.js";import"./switch-CdHRMTW9.js";import"./toggle-group-qQMNUT-A.js";import"./avatar-LDMZpKRg.js";import"./User01-Blfyt5S4.js";import"./alert-dialog-BVSxM9YJ.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./unwrap-tool-result-BYXdCQMg.js";function T(){const o=t.c(1);let r;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(m,{}),o[0]=r):r=o[0],r}export{T as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as n,j as r,r as d,g as h,O as f,l as u}from"./index-CCSxUcSR.js";import{S as j,a as b,b as S}from"./index-_ffZL8NJ.js";import{u as _}from"./tooltip-BqNUzMrI.js";import{u as k,T as y,a as T,b as i,S as g}from"./index-BOmVBt-L.js";import{C as v}from"./chat-context-Cu3HdQoP.js";import"./X-Bq9xP96R.js";import"./agent-icon-Bei3Y6Nv.js";import"./AlertCircle-DXfdk9MK.js";import"./Tool01-Ba9DB62y.js";import"./XClose-CVgNkrOC.js";import"./RefreshCcw01-C9pW6sTt.js";import"./ArrowNarrowLeft-m25Ex3xE.js";import"./XCircle-Cc09MSdO.js";import"./ArrowUpRight-DOO4R0VI.js";import"./ZapSquare-CLMBz7MJ.js";import"./Users03-BFWP6Eo7.js";import"./CheckCircle-BC9E8CH0.js";import"./ChevronDown-0xFW1Tjk.js";import"./ChevronRight-Da2pMeyD.js";import"./ChevronUp-C8WLqMFJ.js";import"./DotsVertical-C2eXnxdz.js";import"./Container-BuB3esl0.js";import"./Star01-DeIf7B7B.js";import"./Palette-B95ZD3_M.js";import"./SearchMd-BRBTca_N.js";import"./LinkExternal01-BoMA8nX9.js";import"./Lock01-D-9xfOJy.js";import"./Sun-DhTV9qec.js";import"./Play-DINvkeGT.js";import"./Plus-Cz_QF-nO.js";import"./Settings02-rRANi0Px.js";import"./Shield01-Ca51KHJr.js";import"./Trash01--9QdImzp.js";import"./User01-Blfyt5S4.js";import"./Zap-jDm5-swv.js";import"./shell-layout-CWH_Y15a.js";import"./dialog-Bnn50qLi.js";import"./required-auth-layout-BARTxmgG.js";import"./use-tasks-BImSKPbl.js";import"./use-collections-DwZut8wL.js";import"./constants-Bymra3Z3.js";import"./use-organization-settings-DXVGYoSK.js";import"./use-org-sso-BRsOtHzg.js";import"./pair-B_xTWu6o.js";import"./index-CDTT3e7s.js";import"./use-copy-Bo8GL7eE.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./content-blocks-o63cs2vh.js";import"./types-AfFc_tMd.js";import"./integration-icon-CsIISZIk.js";import"./use-virtual-mcp-mfRFtB08.js";import"./skeleton-BodtHV9I.js";import"./popover-CA7wjTzr.js";import"./drawer-t00j5Ew9.js";import"./avatar-LDMZpKRg.js";import"./alert-dialog-BVSxM9YJ.js";import"./form-B5N66yji.js";import"./label-D4SEK3ff.js";import"./input-CGOXGU1T.js";import"./index-YLWObp9P.js";import"./use-mcp-tools-CpGxrE2n.js";import"./use-ai-providers-BK_veNO4.js";import"./index-D_S2FIdU.js";import"./switch-CdHRMTW9.js";import"./use-connection-BJpbsOIS.js";import"./lean-canvas-recruit-modal-Bh9iIV1t.js";import"./use-navigate-to-agent-DL1SSMeI.js";import"./collection-search-BvT81eua.js";import"./checkbox-D3HYUnZN.js";import"./extract-connection-data-Db8ZLaq1.js";import"./constants-CRmflr8M.js";import"./collections-Di3Xclr5.js";import"./tabs-BgJeSqk4.js";import"./dropdown-menu-CqTx-nNo.js";import"./select-CuiyoiL_.js";import"./toggle-group-qQMNUT-A.js";import"./select-model-DnX3-EsU.js";import"./ai-providers-logos-D6a8kmGH.js";import"./settings-section-BmjPsExf.js";import"./card-Du9Iuv0G.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./index-DZ4C7ecc.js";import"./question-004-sINsf4GQ.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-DqAomVSf.js";import"./use-registry-connections-BKsU7-eH.js";import"./useInfiniteQuery-W0R8FLKd.js";import"./infiniteQueryObserver-COI6ybpz.js";import"./collection-tabs-DPgWxe2m.js";import"./badge-D4FFGy4o.js";import"./textarea-DzkVG7JD.js";import"./connection-form-helpers-Bf4nHE9_.js";import"./use-infinite-scroll-x7s39dsa.js";import"./useSuspenseInfiniteQuery-Vv5DMGlP.js";import"./collection-search-jeIjsobA.js";import"./use-create-virtual-mcp-D6JQCBq2.js";import"./empty-state-BCisGTAH.js";import"./use-decopilot-events-C5NKtuSG.js";import"./create-sse-subscription-CxkOgzKf.js";import"./task-status-CfDV-ew7.js";const N=280;function P(){const t=n.c(2),{tasksOpen:e}=k();if(!e)return null;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={width:`${N}px`},t[0]=o):o=t[0];let m;return t[1]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx("aside",{className:"shrink-0 h-full bg-sidebar pb-1",style:o,children:r.jsx("div",{className:"h-full p-0.5 pt-0.25",children:r.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden card-shadow",children:r.jsx(y,{})})})}),t[1]=m):m=t[1],m}function C(){const t=n.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(d.Suspense,{fallback:null,children:r.jsx(P,{})}),t[0]=e):e=t[0],e}function x(){const t=n.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsx(u,{size:20,className:"animate-spin text-muted-foreground"})}),t[0]=e):e=t[0],e}function yr(){const t=n.c(7),e=_();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},t[0]=o):o=t[0];const c=!!h(o).taskId;let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s={"--sidebar-width-icon":"3.5rem"},t[1]=s):s=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx(g,{}),t[2]=l):l=t[2];let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p={background:"transparent",containerType:"inline-size"},t[3]=p):p=t[3];let a;return t[4]!==c||t[5]!==e?(a=r.jsx(j,{defaultOpen:!1,children:r.jsx("div",{className:"flex flex-col h-dvh overflow-hidden",children:r.jsxs(b,{className:"flex-1 bg-sidebar",style:s,children:[l,r.jsx(S,{className:"flex flex-col",style:p,children:r.jsx(v,{children:r.jsx(T,{children:e?r.jsx(d.Suspense,{fallback:r.jsx(x,{}),children:r.jsx(f,{})}):r.jsxs(i,{children:[r.jsxs(i.Header,{children:[r.jsxs(i.LeftColumn,{children:[r.jsx(i.Nav,{}),r.jsx(i.TogglesSlot,{})]}),r.jsx(i.CenterSlot,{}),r.jsxs(i.RightColumn,{children:[r.jsx(i.TabsSlot,{}),r.jsx(i.RightSlot,{})]})]}),r.jsxs("div",{className:"flex-1 min-h-0 flex flex-row",children:[c&&r.jsx(C,{}),r.jsx(d.Suspense,{fallback:r.jsx(x,{}),children:r.jsx(f,{})})]})]})})})})]})})}),t[4]=c,t[5]=e,t[6]=a):a=t[6],a}export{yr as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-C7uUKQwM.js","assets/index-CCSxUcSR.js","assets/index-CICJCo3v.css","assets/ArrowNarrowLeft-m25Ex3xE.js","assets/CheckCircle-BC9E8CH0.js","assets/Container-BuB3esl0.js","assets/Settings02-rRANi0Px.js","assets/XCircle-Cc09MSdO.js","assets/constants-Bymra3Z3.js","assets/useInfiniteQuery-W0R8FLKd.js","assets/infiniteQueryObserver-COI6ybpz.js","assets/badge-D4FFGy4o.js","assets/input-CGOXGU1T.js","assets/dropdown-menu-CqTx-nNo.js","assets/ChevronDown-0xFW1Tjk.js","assets/ChevronRight-Da2pMeyD.js","assets/DotsVertical-C2eXnxdz.js","assets/table-DVtFTUHZ.js","assets/toggle-group-qQMNUT-A.js","assets/use-view-mode-R5lOl_7l.js","assets/tooltip-BqNUzMrI.js","assets/SearchMd-BRBTca_N.js","assets/dialog-Bnn50qLi.js","assets/X-Bq9xP96R.js","assets/AlertCircle-DXfdk9MK.js","assets/alert-dialog-BVSxM9YJ.js","assets/card-Du9Iuv0G.js","assets/Trash01--9QdImzp.js","assets/label-D4SEK3ff.js","assets/select-CuiyoiL_.js","assets/ChevronUp-C8WLqMFJ.js","assets/switch-CdHRMTW9.js","assets/textarea-DzkVG7JD.js","assets/RefreshCcw01-C9pW6sTt.js","assets/checkbox-D3HYUnZN.js","assets/LinkExternal01-BoMA8nX9.js","assets/use-copy-Bo8GL7eE.js","assets/Plus-Cz_QF-nO.js","assets/Play-DINvkeGT.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as a,j as t,r,l as i,_ as o}from"./index-CCSxUcSR.js";const n=r.lazy(()=>o(()=>import("./registry-layout-C7uUKQwM.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 c(){const s=a.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(r.Suspense,{fallback:t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(i,{size:20,className:"animate-spin text-muted-foreground"})}),children:t.jsx(n,{})}),s[0]=e):e=s[0],e}export{c as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-C7uUKQwM.js","assets/index-CCSxUcSR.js","assets/index-CICJCo3v.css","assets/ArrowNarrowLeft-m25Ex3xE.js","assets/CheckCircle-BC9E8CH0.js","assets/Container-BuB3esl0.js","assets/Settings02-rRANi0Px.js","assets/XCircle-Cc09MSdO.js","assets/constants-Bymra3Z3.js","assets/useInfiniteQuery-W0R8FLKd.js","assets/infiniteQueryObserver-COI6ybpz.js","assets/badge-D4FFGy4o.js","assets/input-CGOXGU1T.js","assets/dropdown-menu-CqTx-nNo.js","assets/ChevronDown-0xFW1Tjk.js","assets/ChevronRight-Da2pMeyD.js","assets/DotsVertical-C2eXnxdz.js","assets/table-DVtFTUHZ.js","assets/toggle-group-qQMNUT-A.js","assets/use-view-mode-R5lOl_7l.js","assets/tooltip-BqNUzMrI.js","assets/SearchMd-BRBTca_N.js","assets/dialog-Bnn50qLi.js","assets/X-Bq9xP96R.js","assets/AlertCircle-DXfdk9MK.js","assets/alert-dialog-BVSxM9YJ.js","assets/card-Du9Iuv0G.js","assets/Trash01--9QdImzp.js","assets/label-D4SEK3ff.js","assets/select-CuiyoiL_.js","assets/ChevronUp-C8WLqMFJ.js","assets/switch-CdHRMTW9.js","assets/textarea-DzkVG7JD.js","assets/RefreshCcw01-C9pW6sTt.js","assets/checkbox-D3HYUnZN.js","assets/LinkExternal01-BoMA8nX9.js","assets/use-copy-Bo8GL7eE.js","assets/Plus-Cz_QF-nO.js","assets/Play-DINvkeGT.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-CCSxUcSR.js";const _=l.lazy(()=>u(()=>import("./registry-layout-C7uUKQwM.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{I as u}from"./infiniteQueryObserver-COI6ybpz.js";import{c2 as i}from"./index-CCSxUcSR.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-COI6ybpz.js";import{c2 as u,c3 as n}from"./index-CCSxUcSR.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-CCSxUcSR.js";import{a as f}from"./index-CzZ-Z-oS.js";import"./index-DzRCCgl0.js";import"./constants-Bymra3Z3.js";import"./collections-Di3Xclr5.js";import"./index-BwHYJNqQ.js";import"./use-virtual-mcp-mfRFtB08.js";import"./use-collections-DwZut8wL.js";import"./monaco-editor-lCTWnCWQ.js";import"./index-CDTT3e7s.js";import"./accordion-DAgtJ1RN.js";import"./agent-icon-Bei3Y6Nv.js";import"./AlertCircle-DXfdk9MK.js";import"./Tool01-Ba9DB62y.js";import"./XClose-CVgNkrOC.js";import"./RefreshCcw01-C9pW6sTt.js";import"./ArrowNarrowLeft-m25Ex3xE.js";import"./XCircle-Cc09MSdO.js";import"./ArrowUpRight-DOO4R0VI.js";import"./ZapSquare-CLMBz7MJ.js";import"./Users03-BFWP6Eo7.js";import"./CheckCircle-BC9E8CH0.js";import"./ChevronDown-0xFW1Tjk.js";import"./ChevronRight-Da2pMeyD.js";import"./ChevronUp-C8WLqMFJ.js";import"./DotsVertical-C2eXnxdz.js";import"./Container-BuB3esl0.js";import"./Star01-DeIf7B7B.js";import"./Palette-B95ZD3_M.js";import"./SearchMd-BRBTca_N.js";import"./index-_ffZL8NJ.js";import"./tooltip-BqNUzMrI.js";import"./X-Bq9xP96R.js";import"./LinkExternal01-BoMA8nX9.js";import"./Lock01-D-9xfOJy.js";import"./Sun-DhTV9qec.js";import"./Play-DINvkeGT.js";import"./Plus-Cz_QF-nO.js";import"./Settings02-rRANi0Px.js";import"./Shield01-Ca51KHJr.js";import"./Trash01--9QdImzp.js";import"./User01-Blfyt5S4.js";import"./Zap-jDm5-swv.js";import"./badge-D4FFGy4o.js";import"./select-CuiyoiL_.js";import"./view-mode-toggle-DhxRxMVU.js";import"./layout-4V4C6eb5.js";import"./use-connection-BJpbsOIS.js";import"./use-mcp-tools-CpGxrE2n.js";import"./dialog-Bnn50qLi.js";import"./index-DZ4C7ecc.js";import"./dropdown-menu-CqTx-nNo.js";import"./integration-icon-CsIISZIk.js";import"./scroll-area-CO1r6tWJ.js";import"./index-YLWObp9P.js";import"./empty-state-DQOABzrz.js";import"./create-sse-subscription-CxkOgzKf.js";import"./input-CGOXGU1T.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,64 +0,0 @@
|
|
|
1
|
-
declare namespace onetime {
|
|
2
|
-
interface Options {
|
|
3
|
-
/**
|
|
4
|
-
Throw an error when called more than once.
|
|
5
|
-
|
|
6
|
-
@default false
|
|
7
|
-
*/
|
|
8
|
-
throw?: boolean;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare const onetime: {
|
|
13
|
-
/**
|
|
14
|
-
Ensure a function is only called once. When called multiple times it will return the return value from the first call.
|
|
15
|
-
|
|
16
|
-
@param fn - Function that should only be called once.
|
|
17
|
-
@returns A function that only calls `fn` once.
|
|
18
|
-
|
|
19
|
-
@example
|
|
20
|
-
```
|
|
21
|
-
import onetime = require('onetime');
|
|
22
|
-
|
|
23
|
-
let i = 0;
|
|
24
|
-
|
|
25
|
-
const foo = onetime(() => ++i);
|
|
26
|
-
|
|
27
|
-
foo(); //=> 1
|
|
28
|
-
foo(); //=> 1
|
|
29
|
-
foo(); //=> 1
|
|
30
|
-
|
|
31
|
-
onetime.callCount(foo); //=> 3
|
|
32
|
-
```
|
|
33
|
-
*/
|
|
34
|
-
<ArgumentsType extends unknown[], ReturnType>(
|
|
35
|
-
fn: (...arguments: ArgumentsType) => ReturnType,
|
|
36
|
-
options?: onetime.Options
|
|
37
|
-
): (...arguments: ArgumentsType) => ReturnType;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
Get the number of times `fn` has been called.
|
|
41
|
-
|
|
42
|
-
@param fn - Function to get call count from.
|
|
43
|
-
@returns A number representing how many times `fn` has been called.
|
|
44
|
-
|
|
45
|
-
@example
|
|
46
|
-
```
|
|
47
|
-
import onetime = require('onetime');
|
|
48
|
-
|
|
49
|
-
const foo = onetime(() => {});
|
|
50
|
-
foo();
|
|
51
|
-
foo();
|
|
52
|
-
foo();
|
|
53
|
-
|
|
54
|
-
console.log(onetime.callCount(foo));
|
|
55
|
-
//=> 3
|
|
56
|
-
```
|
|
57
|
-
*/
|
|
58
|
-
callCount(fn: (...arguments: any[]) => unknown): number;
|
|
59
|
-
|
|
60
|
-
// TODO: Remove this for the next major release
|
|
61
|
-
default: typeof onetime;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export = onetime;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
const mimicFn = require('mimic-fn');
|
|
3
|
-
|
|
4
|
-
const calledFunctions = new WeakMap();
|
|
5
|
-
|
|
6
|
-
const onetime = (function_, options = {}) => {
|
|
7
|
-
if (typeof function_ !== 'function') {
|
|
8
|
-
throw new TypeError('Expected a function');
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
let returnValue;
|
|
12
|
-
let callCount = 0;
|
|
13
|
-
const functionName = function_.displayName || function_.name || '<anonymous>';
|
|
14
|
-
|
|
15
|
-
const onetime = function (...arguments_) {
|
|
16
|
-
calledFunctions.set(onetime, ++callCount);
|
|
17
|
-
|
|
18
|
-
if (callCount === 1) {
|
|
19
|
-
returnValue = function_.apply(this, arguments_);
|
|
20
|
-
function_ = null;
|
|
21
|
-
} else if (options.throw === true) {
|
|
22
|
-
throw new Error(`Function \`${functionName}\` can only be called once`);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return returnValue;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
mimicFn(onetime, function_);
|
|
29
|
-
calledFunctions.set(onetime, callCount);
|
|
30
|
-
|
|
31
|
-
return onetime;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
module.exports = onetime;
|
|
35
|
-
// TODO: Remove this for the next major release
|
|
36
|
-
module.exports.default = onetime;
|
|
37
|
-
|
|
38
|
-
module.exports.callCount = function_ => {
|
|
39
|
-
if (!calledFunctions.has(function_)) {
|
|
40
|
-
throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return calledFunctions.get(function_);
|
|
44
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
# onetime [](https://travis-ci.com/github/sindresorhus/onetime)
|
|
2
|
-
|
|
3
|
-
> Ensure a function is only called once
|
|
4
|
-
|
|
5
|
-
When called multiple times it will return the return value from the first call.
|
|
6
|
-
|
|
7
|
-
*Unlike the module [once](https://github.com/isaacs/once), this one isn't naughty and extending `Function.prototype`.*
|
|
8
|
-
|
|
9
|
-
## Install
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
$ npm install onetime
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
const onetime = require('onetime');
|
|
19
|
-
|
|
20
|
-
let i = 0;
|
|
21
|
-
|
|
22
|
-
const foo = onetime(() => ++i);
|
|
23
|
-
|
|
24
|
-
foo(); //=> 1
|
|
25
|
-
foo(); //=> 1
|
|
26
|
-
foo(); //=> 1
|
|
27
|
-
|
|
28
|
-
onetime.callCount(foo); //=> 3
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
```js
|
|
32
|
-
const onetime = require('onetime');
|
|
33
|
-
|
|
34
|
-
const foo = onetime(() => {}, {throw: true});
|
|
35
|
-
|
|
36
|
-
foo();
|
|
37
|
-
|
|
38
|
-
foo();
|
|
39
|
-
//=> Error: Function `foo` can only be called once
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## API
|
|
43
|
-
|
|
44
|
-
### onetime(fn, options?)
|
|
45
|
-
|
|
46
|
-
Returns a function that only calls `fn` once.
|
|
47
|
-
|
|
48
|
-
#### fn
|
|
49
|
-
|
|
50
|
-
Type: `Function`
|
|
51
|
-
|
|
52
|
-
Function that should only be called once.
|
|
53
|
-
|
|
54
|
-
#### options
|
|
55
|
-
|
|
56
|
-
Type: `object`
|
|
57
|
-
|
|
58
|
-
##### throw
|
|
59
|
-
|
|
60
|
-
Type: `boolean`\
|
|
61
|
-
Default: `false`
|
|
62
|
-
|
|
63
|
-
Throw an error when called more than once.
|
|
64
|
-
|
|
65
|
-
### onetime.callCount(fn)
|
|
66
|
-
|
|
67
|
-
Returns a number representing how many times `fn` has been called.
|
|
68
|
-
|
|
69
|
-
Note: It throws an error if you pass in a function that is not wrapped by `onetime`.
|
|
70
|
-
|
|
71
|
-
```js
|
|
72
|
-
const onetime = require('onetime');
|
|
73
|
-
|
|
74
|
-
const foo = onetime(() => {});
|
|
75
|
-
|
|
76
|
-
foo();
|
|
77
|
-
foo();
|
|
78
|
-
foo();
|
|
79
|
-
|
|
80
|
-
console.log(onetime.callCount(foo));
|
|
81
|
-
//=> 3
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
#### fn
|
|
85
|
-
|
|
86
|
-
Type: `Function`
|
|
87
|
-
|
|
88
|
-
Function to get call count from.
|
|
89
|
-
|
|
90
|
-
## onetime for enterprise
|
|
91
|
-
|
|
92
|
-
Available as part of the Tidelift Subscription.
|
|
93
|
-
|
|
94
|
-
The maintainers of onetime and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-onetime?utm_source=npm-onetime&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Slice a string with [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
|
|
3
|
-
|
|
4
|
-
@param string - A string with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk).
|
|
5
|
-
@param startSlice - Zero-based visible-column index at which to start the slice. Grapheme clusters are kept intact.
|
|
6
|
-
@param endSlice - Zero-based visible-column index at which to end the slice.
|
|
7
|
-
|
|
8
|
-
@example
|
|
9
|
-
```
|
|
10
|
-
import chalk from 'chalk';
|
|
11
|
-
import sliceAnsi from 'slice-ansi';
|
|
12
|
-
|
|
13
|
-
const string = 'The quick brown ' + chalk.red('fox jumped over ') +
|
|
14
|
-
'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
|
|
15
|
-
|
|
16
|
-
console.log(sliceAnsi(string, 20, 30));
|
|
17
|
-
```
|
|
18
|
-
*/
|
|
19
|
-
export default function sliceAnsi(string: string, startSlice: number, endSlice?: number): string;
|