decocms 2.311.1 → 2.311.2
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-GVxuU95v.js → AlertCircle-DZ5eg3QE.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-CZSxj8rY.js → ArrowNarrowLeft-1yI5FVCq.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-C9_9n6RS.js → ArrowUpRight-BHidxwxm.js} +1 -1
- package/dist/client/assets/{Check-B7RZVj2P.js → Check-Dw0791ut.js} +1 -1
- package/dist/client/assets/{CheckCircle-CpSCTcKF.js → CheckCircle-BpVjAVGG.js} +1 -1
- package/dist/client/assets/{ChevronDown-PN1FfGGP.js → ChevronDown-C4G6jLVm.js} +1 -1
- package/dist/client/assets/{ChevronRight-B87-4gCD.js → ChevronRight-L-rlViOq.js} +1 -1
- package/dist/client/assets/{ChevronUp-DXZ6bMcP.js → ChevronUp-4oGwYYrV.js} +1 -1
- package/dist/client/assets/{Container-Bn1bP0Yi.js → Container-1OJhud4n.js} +1 -1
- package/dist/client/assets/{DotsVertical-0NEZeBK_.js → DotsVertical-CRhKzL3Z.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Cl6M9_6y.js → LinkExternal01-CT0C3v5M.js} +1 -1
- package/dist/client/assets/{Lock01-BNDVtNp3.js → Lock01-NALqVAd4.js} +1 -1
- package/dist/client/assets/{Palette-BgYWS9GS.js → Palette-B49S2k5j.js} +1 -1
- package/dist/client/assets/{Play-jAQMD8Zy.js → Play-D2-YC-0X.js} +1 -1
- package/dist/client/assets/{Plus-Decn041v.js → Plus-BwRT24yO.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-2tEGwXNO.js → RefreshCcw01-BJA8p2-V.js} +1 -1
- package/dist/client/assets/{SearchMd-xzJx66s8.js → SearchMd-8EQr6MDa.js} +1 -1
- package/dist/client/assets/{Settings02-I39qsUEU.js → Settings02-BR7-LgkT.js} +1 -1
- package/dist/client/assets/{Shield01-DJsSZNak.js → Shield01-CmUy76z8.js} +1 -1
- package/dist/client/assets/{Star01-VbAdZ1nM.js → Star01-CrZZMK_h.js} +1 -1
- package/dist/client/assets/{Sun-qACU13Q-.js → Sun-BrBo82rN.js} +1 -1
- package/dist/client/assets/{Tool01-BqlBf1k7.js → Tool01-CnVLW8Ff.js} +1 -1
- package/dist/client/assets/{Trash01-BqSCZqrj.js → Trash01-CqcArs7X.js} +1 -1
- package/dist/client/assets/{User01-w8zyOHhj.js → User01-CBWDKiqM.js} +1 -1
- package/dist/client/assets/{Users03-n9zzJAad.js → Users03-lMWEL75e.js} +1 -1
- package/dist/client/assets/{X-Cwv9W6IH.js → X-Bgn4m6iE.js} +1 -1
- package/dist/client/assets/{XCircle-VMAL-xhy.js → XCircle-C7dtAhFo.js} +1 -1
- package/dist/client/assets/{XClose-GzEq-HU9.js → XClose-DAS6g7IB.js} +1 -1
- package/dist/client/assets/{Zap-D93qKeqm.js → Zap-D4YLhHLH.js} +1 -1
- package/dist/client/assets/{ZapSquare-CGJC1mww.js → ZapSquare-DW8WgORO.js} +1 -1
- package/dist/client/assets/{accordion-ZNyW-Q9t.js → accordion-w2pr29VL.js} +1 -1
- package/dist/client/assets/{agent-icon-zc2fqM1k.js → agent-icon-CoSygmB4.js} +1 -1
- package/dist/client/assets/{agents-list-UtLvJq-k.js → agents-list-BmcHuxVe.js} +1 -1
- package/dist/client/assets/ai-providers-wvV25hLp.js +1 -0
- package/dist/client/assets/{alert-dialog-7vNv5N4P.js → alert-dialog-j_H6Duj2.js} +1 -1
- package/dist/client/assets/{auth-catchall-DnPh1GEo.js → auth-catchall-g0qxiTpM.js} +1 -1
- package/dist/client/assets/{automation-list-row-Cu-q04m4.js → automation-list-row-BwSlxsKi.js} +1 -1
- package/dist/client/assets/{automations-CU2EtM_4.js → automations-CZKFrDcG.js} +1 -1
- package/dist/client/assets/{avatar-Dda8SxzC.js → avatar-DH5nI_or.js} +1 -1
- package/dist/client/assets/{badge-C_Ey5yTa.js → badge-BITu5EVC.js} +1 -1
- package/dist/client/assets/{brand-context-pyqxXmJT.js → brand-context-6Yt9jzFn.js} +1 -1
- package/dist/client/assets/{card-BqDVz8rB.js → card-En6r2E_A.js} +1 -1
- package/dist/client/assets/{chat-context-B6Fg09sU.js → chat-context-CdP_0Ara.js} +1 -1
- package/dist/client/assets/{checkbox-CwdZbdGd.js → checkbox-DfdgwpYz.js} +1 -1
- package/dist/client/assets/{collection-detail-WOE1iHbK.js → collection-detail-Cq2qud8Y.js} +1 -1
- package/dist/client/assets/{collection-display-button-QyBcFXO8.js → collection-display-button-C9fQJGtX.js} +1 -1
- package/dist/client/assets/{collection-search-FuJrX0DL.js → collection-search-DFFtMlUb.js} +1 -1
- package/dist/client/assets/{collection-search-BPpIzKqG.js → collection-search-LW_e8pOY.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-k2i9yb0q.js → collection-table-wrapper-B2VGx1DA.js} +1 -1
- package/dist/client/assets/{collection-tabs-Bbxi3Lhu.js → collection-tabs-ie4BgKCV.js} +1 -1
- package/dist/client/assets/{collections-BXMI7Hvf.js → collections-D8nUEds8.js} +1 -1
- package/dist/client/assets/{command-CcKs3phr.js → command-BXrAL_Fp.js} +1 -1
- package/dist/client/assets/{connection-card-C9ObrVFa.js → connection-card-B3usJZNT.js} +1 -1
- package/dist/client/assets/{connection-detail-DXmyznni.js → connection-detail-BLvhyH8Y.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CLWU-iGL.js → connection-form-helpers-DJ9jYCyJ.js} +1 -1
- package/dist/client/assets/{connections-EFejJy4T.js → connections-JJSt3920.js} +1 -1
- package/dist/client/assets/{constants-DNYERMOq.js → constants-C_0Pvn36.js} +1 -1
- package/dist/client/assets/{constants-Bad0DdgK.js → constants-xCxa-gM5.js} +1 -1
- package/dist/client/assets/{dialog-BcmogFZk.js → dialog-CQJ1jbHU.js} +1 -1
- package/dist/client/assets/{domain-settings-QGlFO294.js → domain-settings-KzIawZDz.js} +1 -1
- package/dist/client/assets/{drawer-CFDUaOVL.js → drawer-CRXUsV25.js} +1 -1
- package/dist/client/assets/{dropdown-menu-NvUf9a-j.js → dropdown-menu-B0p6J489.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-CNm9aSBE.js → dynamic-plugin-layout-hX-cElnB.js} +1 -1
- package/dist/client/assets/{empty-state-Dg7DOfxH.js → empty-state-CTTNNvC-.js} +1 -1
- package/dist/client/assets/{empty-state-CYPi3AWF.js → empty-state-DiIlkZVx.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Crk93y-a.js → extract-connection-data-D5DCgJwZ.js} +1 -1
- package/dist/client/assets/{features-c-yBM4_h.js → features-CcS8M1BD.js} +1 -1
- package/dist/client/assets/{form-BbDiaTsN.js → form-D0XM9Oz-.js} +1 -1
- package/dist/client/assets/{general-BxBx3E8g.js → general-Ci0gKW7e.js} +1 -1
- package/dist/client/assets/{index-D-aGIpWM.js → index-08_qSeNu.js} +1 -1
- package/dist/client/assets/{index-DDUZQ_xH.js → index-8ASwCWdl.js} +1 -1
- package/dist/client/assets/{index-C3btaY0r.js → index-B2YlGv2D.js} +1 -1
- package/dist/client/assets/{index-D5c2Coqp.js → index-BbCoi7Kc.js} +3 -3
- package/dist/client/assets/{index-D3w8D7D3.js → index-BkAVJvYj.js} +1 -1
- package/dist/client/assets/{index-bUNQ5NEg.js → index-BuupSAqF.js} +1 -1
- package/dist/client/assets/{index-CvwiLDhg.js → index-Bzm-pgKW.js} +1 -1
- package/dist/client/assets/{index-Dl4CZy6K.js → index-Ce3hTrjw.js} +1 -1
- package/dist/client/assets/{index-BEwswwod.js → index-CtORjixM.js} +1 -1
- package/dist/client/assets/{index-Bom1zwxj.js → index-DN5Efs9x.js} +1 -1
- package/dist/client/assets/{index-rnnpRGp3.js → index-DvT00rVT.js} +1 -1
- package/dist/client/assets/{index-DmMHdsYF.js → index-Kg1PzPFs.js} +1 -1
- package/dist/client/assets/{index--qrsfEvC.js → index-N3u8642D.js} +1 -1
- package/dist/client/assets/{index-BVe-IL8_.js → index-TmBzv9_n.js} +1 -1
- package/dist/client/assets/{index-B3GjV7OW.js → index-XtKSdEVT.js} +2 -2
- package/dist/client/assets/{index-CLSBe_a4.js → index-gf-c6sSg.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-RMKX6Nq0.js → infiniteQueryObserver-CGPZBNLK.js} +1 -1
- package/dist/client/assets/{input-bkK8ZE7l.js → input-CA3wFziO.js} +1 -1
- package/dist/client/assets/{integration-icon-dKiJ5-c6.js → integration-icon-DB1BI0re.js} +1 -1
- package/dist/client/assets/{label-DTMz5O44.js → label-CsQ7X2nY.js} +1 -1
- package/dist/client/assets/{layout-LMk5O_ZK.js → layout-_eILQ4qX.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-BAnvgszw.js → lean-canvas-recruit-modal-DS3BEBlK.js} +1 -1
- package/dist/client/assets/{login-DL4UCCOO.js → login-BlD2FW6R.js} +1 -1
- package/dist/client/assets/{members-xgiddo21.js → members-CWZmvp91.js} +1 -1
- package/dist/client/assets/{monaco-editor-C2N0lO8-.js → monaco-editor-CoS3uflL.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B1WEuAdI.js → monitoring-stats-row-CViWaRD_.js} +1 -1
- package/dist/client/assets/{oauth-callback-CEDkVwJ-.js → oauth-callback-CU5hLq_2.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Dg9MI2Au.js → oauth-callback-ai-provider-BeHCFfTz.js} +1 -1
- package/dist/client/assets/{onboarding-DkXotH-C.js → onboarding-1sE9lrXr.js} +1 -1
- package/dist/client/assets/{org-layout-BZIyzExD.js → org-layout-DjQQV-Zl.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-DMO9tynz.js → org-plugin-layout-DAhuto61.js} +1 -1
- package/dist/client/assets/{pair-Cbmyley2.js → pair-2_9kst7n.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-9QQH63Km.js → plugin-empty-state-HCn3LT7f.js} +1 -1
- package/dist/client/assets/{plugin-header-Ca6fhiCD.js → plugin-header-BURSuFWr.js} +1 -1
- package/dist/client/assets/{plugin-layout-CL9tTgtN.js → plugin-layout-D26XJiuJ.js} +1 -1
- package/dist/client/assets/{popover-a3tMurU4.js → popover-DVrNLUGd.js} +1 -1
- package/dist/client/assets/{profile-D7pjioBj.js → profile-u4Q_ge8P.js} +1 -1
- package/dist/client/assets/{project-app-view-BhV2wKdY.js → project-app-view-TR-LCEsF.js} +1 -1
- package/dist/client/assets/registry-9FuEyggS.js +2 -0
- package/dist/client/assets/{registry-layout-BaWcD2qA.js → registry-layout-CBmViIei.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CnaH9rpW.js → required-auth-layout-zpm5EQiY.js} +1 -1
- package/dist/client/assets/{reset-password-vwj49aZP.js → reset-password-BBgklwFT.js} +1 -1
- package/dist/client/assets/{roles-DphWxHYt.js → roles-BFmJtd_3.js} +1 -1
- package/dist/client/assets/{scroll-area-DqbokeCV.js → scroll-area-CTB7VMjJ.js} +1 -1
- package/dist/client/assets/{search-input-DAsaTE5l.js → search-input-CDZEhQeH.js} +1 -1
- package/dist/client/assets/{select-Dli7sWvO.js → select-Ck5CQAzm.js} +1 -1
- package/dist/client/assets/{select-model-BaOTlcuq.js → select-model-WqEqjF0n.js} +1 -1
- package/dist/client/assets/{settings-layout-CjXYIm0R.js → settings-layout-OR4Oj5Bz.js} +1 -1
- package/dist/client/assets/{settings-section-DBJaYBiY.js → settings-section-hGFEsbcg.js} +1 -1
- package/dist/client/assets/{shell-layout-BMRtkmni.js → shell-layout-DgbQScgJ.js} +1 -1
- package/dist/client/assets/{skeleton-H0I9mnBy.js → skeleton-15S9YHo5.js} +1 -1
- package/dist/client/assets/{sso-DYCaqBsm.js → sso-Clf1UBGT.js} +1 -1
- package/dist/client/assets/store-registry-D1p6Sky6.js +2 -0
- package/dist/client/assets/{store-uDsU3GrB.js → store-s535k-0R.js} +1 -1
- package/dist/client/assets/{switch-BdqZBTdM.js → switch-DZpAuoR4.js} +1 -1
- package/dist/client/assets/{table-DK414n0F.js → table-Di3ejdIM.js} +1 -1
- package/dist/client/assets/{tabs-CeGpUpHP.js → tabs-CZODVyGB.js} +1 -1
- package/dist/client/assets/{task-status-CqDAnW9H.js → task-status-B-brbBsk.js} +1 -1
- package/dist/client/assets/{textarea-DYbvm35p.js → textarea-BZSNnTf-.js} +1 -1
- package/dist/client/assets/{toggle-group-DXYK5Kmg.js → toggle-group-C6O7_FmI.js} +1 -1
- package/dist/client/assets/{tools-list-DQqEXfVG.js → tools-list-E1FCeDba.js} +1 -1
- package/dist/client/assets/{tooltip-M7OSSLPB.js → tooltip-DzR2OkiC.js} +1 -1
- package/dist/client/assets/{types-aUaKAv-0.js → types-DsXhCCX5.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CmHinIUs.js → use-ai-providers-CASknL33.js} +1 -1
- package/dist/client/assets/{use-collections-Cy_Omosv.js → use-collections-Clg_Ncfr.js} +1 -1
- package/dist/client/assets/{use-connection-BTNmhjS_.js → use-connection-CN-YbXIm.js} +1 -1
- package/dist/client/assets/{use-copy-CkkAJAvS.js → use-copy-B4Vw-FGS.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BuaKZJs7.js → use-create-virtual-mcp-DDS948Ec.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CO57B6nX.js → use-debounced-autosave-DY33egle.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CQ1IkvCh.js → use-decopilot-events-CDc7_gFj.js} +1 -1
- package/dist/client/assets/{use-delete-connection-6dZbEpz0.js → use-delete-connection-B_kG1S-Z.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-ZPBLdFp5.js → use-infinite-scroll-C65PuA8D.js} +1 -1
- package/dist/client/assets/{use-list-state-C6g9hGA4.js → use-list-state-D0QSC4li.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BxVuuTSL.js → use-mcp-tools-P1EYh7Ne.js} +1 -1
- package/dist/client/assets/{use-members-Bi_cxyIQ.js → use-members-B8Y7w6A6.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CSPyzm0t.js → use-navigate-to-agent-CdjjjAzp.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-C0e9yR_n.js → use-org-auth-client-DgZS2gPK.js} +1 -1
- package/dist/client/assets/{use-org-sso-BBRAkASE.js → use-org-sso-DUuDwVMq.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C1ELHN87.js → use-organization-roles-COI0teJ2.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DTcFJGZh.js → use-organization-settings-DFYG1X4S.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BTwHNugi.js → use-registry-connections-DtGSBXyx.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DtamCVeq.js → use-status-sounds-Bzo-hQFh.js} +1 -1
- package/dist/client/assets/{use-tasks-B6YSkeM5.js → use-tasks-BkEjm0jr.js} +1 -1
- package/dist/client/assets/{use-view-mode-BT7njn-W.js → use-view-mode-QyxMfzTw.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CSMhsIFC.js → use-virtual-mcp-CywGzNw_.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BnoAFbMi.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DALOqmfR.js +1 -0
- package/dist/client/assets/{user-D3wZendk.js → user-B1nA5pjb.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DrXoiKTK.js → view-mode-toggle-Cj3KDqTE.js} +1 -1
- package/dist/client/assets/{workflow-BfcwUbw-.js → workflow-DHFQknOK.js} +1 -1
- package/dist/client/assets/workflow-detail-Dq-mKRWi.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +6 -2
- 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-regex → ansi-styles}/package.json +13 -20
- package/dist/server/node_modules/ansi-styles/readme.md +173 -0
- package/dist/server/node_modules/convert-to-spaces/dist/index.d.ts +2 -0
- package/dist/server/node_modules/convert-to-spaces/dist/index.js +4 -0
- package/dist/server/node_modules/convert-to-spaces/license +21 -0
- package/dist/server/node_modules/convert-to-spaces/package.json +40 -0
- package/dist/server/node_modules/convert-to-spaces/readme.md +39 -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/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/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/{ink → get-east-asian-width}/license +0 -1
- 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/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/pg-cloudflare/LICENSE +21 -0
- package/dist/server/node_modules/pg-cloudflare/README.md +112 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +2 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js +6 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +31 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js +152 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +3 -0
- package/dist/server/node_modules/pg-cloudflare/package.json +39 -0
- package/dist/server/node_modules/pg-cloudflare/src/empty.ts +3 -0
- package/dist/server/node_modules/pg-cloudflare/src/index.ts +166 -0
- package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +25 -0
- package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
- package/dist/server/node_modules/pg-connection-string/README.md +105 -0
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
- package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
- package/dist/server/node_modules/pg-connection-string/index.js +231 -0
- package/dist/server/node_modules/pg-connection-string/package.json +52 -0
- package/dist/server/node_modules/pg-pool/LICENSE +21 -0
- package/dist/server/node_modules/pg-pool/README.md +357 -0
- package/dist/server/node_modules/pg-pool/esm/index.mjs +5 -0
- package/dist/server/node_modules/pg-pool/index.js +517 -0
- package/dist/server/node_modules/pg-pool/package.json +51 -0
- package/dist/server/node_modules/pg-protocol/LICENSE +21 -0
- package/dist/server/node_modules/pg-protocol/README.md +3 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js +23 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +15 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +55 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +16 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +81 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +530 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/index.d.ts +6 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js +15 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +162 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js +160 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +252 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +24 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js +324 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +42 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js +189 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/esm/index.js +11 -0
- package/dist/server/node_modules/pg-protocol/package.json +45 -0
- package/dist/server/node_modules/pg-protocol/src/b.ts +25 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +58 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +85 -0
- package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +575 -0
- package/dist/server/node_modules/pg-protocol/src/index.ts +11 -0
- package/dist/server/node_modules/pg-protocol/src/messages.ts +262 -0
- package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +276 -0
- package/dist/server/node_modules/pg-protocol/src/parser.ts +413 -0
- package/dist/server/node_modules/pg-protocol/src/serializer.ts +274 -0
- package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +67 -0
- package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +166 -0
- package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +1 -0
- package/dist/server/node_modules/pg-types/.travis.yml +7 -0
- package/dist/server/node_modules/pg-types/Makefile +14 -0
- package/dist/server/node_modules/pg-types/README.md +75 -0
- package/dist/server/node_modules/pg-types/index.d.ts +137 -0
- package/dist/server/node_modules/pg-types/index.js +47 -0
- package/dist/server/node_modules/pg-types/index.test-d.ts +21 -0
- package/dist/server/node_modules/pg-types/lib/arrayParser.js +11 -0
- package/dist/server/node_modules/pg-types/lib/binaryParsers.js +257 -0
- package/dist/server/node_modules/pg-types/lib/builtins.js +73 -0
- package/dist/server/node_modules/pg-types/lib/textParsers.js +215 -0
- package/dist/server/node_modules/pg-types/package.json +42 -0
- package/dist/server/node_modules/pg-types/test/index.js +24 -0
- package/dist/server/node_modules/pg-types/test/types.js +597 -0
- package/dist/server/node_modules/pgpass/README.md +74 -0
- package/dist/server/node_modules/pgpass/lib/helper.js +233 -0
- package/dist/server/node_modules/pgpass/lib/index.js +23 -0
- package/dist/server/node_modules/pgpass/package.json +41 -0
- package/dist/server/node_modules/restore-cursor/index.d.ts +11 -0
- package/dist/server/node_modules/restore-cursor/index.js +11 -0
- package/dist/server/node_modules/restore-cursor/license +9 -0
- package/dist/server/node_modules/restore-cursor/package.json +55 -0
- package/dist/server/node_modules/restore-cursor/readme.md +31 -0
- package/dist/server/node_modules/string-width/index.d.ts +39 -0
- package/dist/server/node_modules/string-width/index.js +82 -0
- package/dist/server/node_modules/string-width/license +9 -0
- package/dist/server/node_modules/string-width/package.json +64 -0
- package/dist/server/node_modules/string-width/readme.md +66 -0
- package/dist/server/server.js +5 -1
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-CfDd4KX1.js +0 -1
- package/dist/client/assets/registry-CWfZJmtj.js +0 -2
- package/dist/client/assets/store-registry-CBTBvJpl.js +0 -2
- package/dist/client/assets/useInfiniteQuery-96c4mtDU.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-HyWQwfY6.js +0 -1
- package/dist/client/assets/workflow-detail-C0BgSrtB.js +0 -1
- package/dist/server/node_modules/ansi-regex/index.d.ts +0 -33
- package/dist/server/node_modules/ansi-regex/index.js +0 -14
- package/dist/server/node_modules/ansi-regex/readme.md +0 -66
- package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/dist/server/node_modules/emoji-regex/README.md +0 -107
- package/dist/server/node_modules/emoji-regex/index.d.ts +0 -3
- package/dist/server/node_modules/emoji-regex/index.js +0 -4
- package/dist/server/node_modules/emoji-regex/index.mjs +0 -4
- package/dist/server/node_modules/emoji-regex/package.json +0 -45
- package/dist/server/node_modules/ink/build/ansi-tokenizer.d.ts +0 -38
- package/dist/server/node_modules/ink/build/ansi-tokenizer.js +0 -316
- package/dist/server/node_modules/ink/build/ansi-tokenizer.js.map +0 -1
- package/dist/server/node_modules/ink/build/apply-styles.js +0 -175
- package/dist/server/node_modules/ink/build/build-layout.js +0 -77
- package/dist/server/node_modules/ink/build/calculate-wrapped-text.js +0 -53
- package/dist/server/node_modules/ink/build/colorize.d.ts +0 -3
- package/dist/server/node_modules/ink/build/colorize.js +0 -48
- package/dist/server/node_modules/ink/build/colorize.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/AccessibilityContext.d.ts +0 -3
- package/dist/server/node_modules/ink/build/components/AccessibilityContext.js +0 -5
- package/dist/server/node_modules/ink/build/components/AccessibilityContext.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/App.d.ts +0 -18
- package/dist/server/node_modules/ink/build/components/App.js +0 -351
- package/dist/server/node_modules/ink/build/components/App.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/AppContext.d.ts +0 -15
- package/dist/server/node_modules/ink/build/components/AppContext.js +0 -11
- package/dist/server/node_modules/ink/build/components/AppContext.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/BackgroundContext.d.ts +0 -4
- package/dist/server/node_modules/ink/build/components/BackgroundContext.js +0 -3
- package/dist/server/node_modules/ink/build/components/BackgroundContext.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/Box.d.ts +0 -117
- package/dist/server/node_modules/ink/build/components/Box.js +0 -34
- package/dist/server/node_modules/ink/build/components/Box.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/Color.js +0 -62
- package/dist/server/node_modules/ink/build/components/Cursor.d.ts +0 -83
- package/dist/server/node_modules/ink/build/components/Cursor.js +0 -53
- package/dist/server/node_modules/ink/build/components/Cursor.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/CursorContext.d.ts +0 -11
- package/dist/server/node_modules/ink/build/components/CursorContext.js +0 -8
- package/dist/server/node_modules/ink/build/components/CursorContext.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/ErrorBoundary.d.ts +0 -18
- package/dist/server/node_modules/ink/build/components/ErrorBoundary.js +0 -23
- package/dist/server/node_modules/ink/build/components/ErrorBoundary.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/ErrorOverview.d.ts +0 -6
- package/dist/server/node_modules/ink/build/components/ErrorOverview.js +0 -84
- package/dist/server/node_modules/ink/build/components/ErrorOverview.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/FocusContext.d.ts +0 -16
- package/dist/server/node_modules/ink/build/components/FocusContext.js +0 -17
- package/dist/server/node_modules/ink/build/components/FocusContext.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/Newline.d.ts +0 -13
- package/dist/server/node_modules/ink/build/components/Newline.js +0 -8
- package/dist/server/node_modules/ink/build/components/Newline.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/Spacer.d.ts +0 -7
- package/dist/server/node_modules/ink/build/components/Spacer.js +0 -11
- package/dist/server/node_modules/ink/build/components/Spacer.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/Static.d.ts +0 -24
- package/dist/server/node_modules/ink/build/components/Static.js +0 -28
- package/dist/server/node_modules/ink/build/components/Static.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/StderrContext.d.ts +0 -15
- package/dist/server/node_modules/ink/build/components/StderrContext.js +0 -13
- package/dist/server/node_modules/ink/build/components/StderrContext.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/StdinContext.d.ts +0 -22
- package/dist/server/node_modules/ink/build/components/StdinContext.js +0 -19
- package/dist/server/node_modules/ink/build/components/StdinContext.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/StdoutContext.d.ts +0 -15
- package/dist/server/node_modules/ink/build/components/StdoutContext.js +0 -13
- package/dist/server/node_modules/ink/build/components/StdoutContext.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/Text.d.ts +0 -55
- package/dist/server/node_modules/ink/build/components/Text.js +0 -50
- package/dist/server/node_modules/ink/build/components/Text.js.map +0 -1
- package/dist/server/node_modules/ink/build/components/Transform.d.ts +0 -16
- package/dist/server/node_modules/ink/build/components/Transform.js +0 -15
- package/dist/server/node_modules/ink/build/components/Transform.js.map +0 -1
- package/dist/server/node_modules/ink/build/cursor-helpers.d.ts +0 -38
- package/dist/server/node_modules/ink/build/cursor-helpers.js +0 -56
- package/dist/server/node_modules/ink/build/cursor-helpers.js.map +0 -1
- package/dist/server/node_modules/ink/build/devtools-window-polyfill.js +0 -65
- package/dist/server/node_modules/ink/build/devtools-window-polyfill.js.map +0 -1
- package/dist/server/node_modules/ink/build/devtools.d.ts +0 -1
- package/dist/server/node_modules/ink/build/devtools.js +0 -11
- package/dist/server/node_modules/ink/build/devtools.js.map +0 -1
- package/dist/server/node_modules/ink/build/dom.d.ts +0 -56
- package/dist/server/node_modules/ink/build/dom.js +0 -124
- package/dist/server/node_modules/ink/build/dom.js.map +0 -1
- package/dist/server/node_modules/ink/build/experimental/apply-style.js +0 -140
- package/dist/server/node_modules/ink/build/experimental/dom.js +0 -123
- package/dist/server/node_modules/ink/build/experimental/output.js +0 -91
- package/dist/server/node_modules/ink/build/experimental/reconciler.js +0 -141
- package/dist/server/node_modules/ink/build/experimental/renderer.js +0 -81
- package/dist/server/node_modules/ink/build/get-max-width.d.ts +0 -3
- package/dist/server/node_modules/ink/build/get-max-width.js +0 -10
- package/dist/server/node_modules/ink/build/get-max-width.js.map +0 -1
- package/dist/server/node_modules/ink/build/hooks/use-app.d.ts +0 -5
- package/dist/server/node_modules/ink/build/hooks/use-app.js +0 -8
- package/dist/server/node_modules/ink/build/hooks/use-app.js.map +0 -1
- package/dist/server/node_modules/ink/build/hooks/use-cursor.d.ts +0 -12
- package/dist/server/node_modules/ink/build/hooks/use-cursor.js +0 -29
- package/dist/server/node_modules/ink/build/hooks/use-cursor.js.map +0 -1
- package/dist/server/node_modules/ink/build/hooks/use-focus-manager.d.ts +0 -28
- package/dist/server/node_modules/ink/build/hooks/use-focus-manager.js +0 -17
- package/dist/server/node_modules/ink/build/hooks/use-focus-manager.js.map +0 -1
- package/dist/server/node_modules/ink/build/hooks/use-focus.d.ts +0 -29
- package/dist/server/node_modules/ink/build/hooks/use-focus.js +0 -42
- package/dist/server/node_modules/ink/build/hooks/use-focus.js.map +0 -1
- package/dist/server/node_modules/ink/build/hooks/use-input.d.ts +0 -131
- package/dist/server/node_modules/ink/build/hooks/use-input.js +0 -124
- package/dist/server/node_modules/ink/build/hooks/use-input.js.map +0 -1
- package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.d.ts +0 -5
- package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js +0 -11
- package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js.map +0 -1
- package/dist/server/node_modules/ink/build/hooks/use-stderr.d.ts +0 -5
- package/dist/server/node_modules/ink/build/hooks/use-stderr.js +0 -8
- package/dist/server/node_modules/ink/build/hooks/use-stderr.js.map +0 -1
- package/dist/server/node_modules/ink/build/hooks/use-stdin.d.ts +0 -5
- package/dist/server/node_modules/ink/build/hooks/use-stdin.js +0 -8
- package/dist/server/node_modules/ink/build/hooks/use-stdin.js.map +0 -1
- package/dist/server/node_modules/ink/build/hooks/use-stdout.d.ts +0 -5
- package/dist/server/node_modules/ink/build/hooks/use-stdout.js +0 -8
- package/dist/server/node_modules/ink/build/hooks/use-stdout.js.map +0 -1
- package/dist/server/node_modules/ink/build/hooks/useInput.js +0 -38
- package/dist/server/node_modules/ink/build/index.d.ts +0 -34
- package/dist/server/node_modules/ink/build/index.js +0 -20
- package/dist/server/node_modules/ink/build/index.js.map +0 -1
- package/dist/server/node_modules/ink/build/ink.d.ts +0 -90
- package/dist/server/node_modules/ink/build/ink.js +0 -637
- package/dist/server/node_modules/ink/build/ink.js.map +0 -1
- package/dist/server/node_modules/ink/build/input-parser.d.ts +0 -7
- package/dist/server/node_modules/ink/build/input-parser.js +0 -154
- package/dist/server/node_modules/ink/build/input-parser.js.map +0 -1
- package/dist/server/node_modules/ink/build/instance.js +0 -205
- package/dist/server/node_modules/ink/build/instances.d.ts +0 -3
- package/dist/server/node_modules/ink/build/instances.js +0 -8
- package/dist/server/node_modules/ink/build/instances.js.map +0 -1
- package/dist/server/node_modules/ink/build/kitty-keyboard.d.ts +0 -23
- package/dist/server/node_modules/ink/build/kitty-keyboard.js +0 -32
- package/dist/server/node_modules/ink/build/kitty-keyboard.js.map +0 -1
- package/dist/server/node_modules/ink/build/layout.d.ts +0 -7
- package/dist/server/node_modules/ink/build/layout.js +0 -33
- package/dist/server/node_modules/ink/build/layout.js.map +0 -1
- package/dist/server/node_modules/ink/build/log-update.d.ts +0 -19
- package/dist/server/node_modules/ink/build/log-update.js +0 -242
- package/dist/server/node_modules/ink/build/log-update.js.map +0 -1
- package/dist/server/node_modules/ink/build/measure-element.d.ts +0 -16
- package/dist/server/node_modules/ink/build/measure-element.js +0 -9
- package/dist/server/node_modules/ink/build/measure-element.js.map +0 -1
- package/dist/server/node_modules/ink/build/measure-text.d.ts +0 -6
- package/dist/server/node_modules/ink/build/measure-text.js +0 -21
- package/dist/server/node_modules/ink/build/measure-text.js.map +0 -1
- package/dist/server/node_modules/ink/build/options.d.ts +0 -52
- package/dist/server/node_modules/ink/build/options.js +0 -2
- package/dist/server/node_modules/ink/build/options.js.map +0 -1
- package/dist/server/node_modules/ink/build/output.d.ts +0 -35
- package/dist/server/node_modules/ink/build/output.js +0 -183
- package/dist/server/node_modules/ink/build/output.js.map +0 -1
- package/dist/server/node_modules/ink/build/parse-keypress.d.ts +0 -22
- package/dist/server/node_modules/ink/build/parse-keypress.js +0 -493
- package/dist/server/node_modules/ink/build/parse-keypress.js.map +0 -1
- package/dist/server/node_modules/ink/build/reconciler.d.ts +0 -4
- package/dist/server/node_modules/ink/build/reconciler.js +0 -274
- package/dist/server/node_modules/ink/build/reconciler.js.map +0 -1
- package/dist/server/node_modules/ink/build/render-background.d.ts +0 -4
- package/dist/server/node_modules/ink/build/render-background.js +0 -25
- package/dist/server/node_modules/ink/build/render-background.js.map +0 -1
- package/dist/server/node_modules/ink/build/render-border.d.ts +0 -4
- package/dist/server/node_modules/ink/build/render-border.js +0 -73
- package/dist/server/node_modules/ink/build/render-border.js.map +0 -1
- package/dist/server/node_modules/ink/build/render-node-to-output.d.ts +0 -14
- package/dist/server/node_modules/ink/build/render-node-to-output.js +0 -147
- package/dist/server/node_modules/ink/build/render-node-to-output.js.map +0 -1
- package/dist/server/node_modules/ink/build/render-to-string.d.ts +0 -38
- package/dist/server/node_modules/ink/build/render-to-string.js +0 -115
- package/dist/server/node_modules/ink/build/render-to-string.js.map +0 -1
- package/dist/server/node_modules/ink/build/render.d.ts +0 -121
- package/dist/server/node_modules/ink/build/render.js +0 -55
- package/dist/server/node_modules/ink/build/render.js.map +0 -1
- package/dist/server/node_modules/ink/build/renderer.d.ts +0 -8
- package/dist/server/node_modules/ink/build/renderer.js +0 -55
- package/dist/server/node_modules/ink/build/renderer.js.map +0 -1
- package/dist/server/node_modules/ink/build/sanitize-ansi.d.ts +0 -2
- package/dist/server/node_modules/ink/build/sanitize-ansi.js +0 -27
- package/dist/server/node_modules/ink/build/sanitize-ansi.js.map +0 -1
- package/dist/server/node_modules/ink/build/screen-reader-update.d.ts +0 -13
- package/dist/server/node_modules/ink/build/screen-reader-update.js +0 -38
- package/dist/server/node_modules/ink/build/screen-reader-update.js.map +0 -1
- package/dist/server/node_modules/ink/build/squash-text-nodes.d.ts +0 -3
- package/dist/server/node_modules/ink/build/squash-text-nodes.js +0 -36
- package/dist/server/node_modules/ink/build/squash-text-nodes.js.map +0 -1
- package/dist/server/node_modules/ink/build/styles.d.ts +0 -240
- package/dist/server/node_modules/ink/build/styles.js +0 -232
- package/dist/server/node_modules/ink/build/styles.js.map +0 -1
- package/dist/server/node_modules/ink/build/utils.d.ts +0 -2
- package/dist/server/node_modules/ink/build/utils.js +0 -4
- package/dist/server/node_modules/ink/build/utils.js.map +0 -1
- package/dist/server/node_modules/ink/build/wrap-text.d.ts +0 -3
- package/dist/server/node_modules/ink/build/wrap-text.js +0 -31
- package/dist/server/node_modules/ink/build/wrap-text.js.map +0 -1
- package/dist/server/node_modules/ink/build/write-synchronized.d.ts +0 -4
- package/dist/server/node_modules/ink/build/write-synchronized.js +0 -7
- package/dist/server/node_modules/ink/build/write-synchronized.js.map +0 -1
- package/dist/server/node_modules/ink/package.json +0 -201
- package/dist/server/node_modules/ink/readme.md +0 -2636
- 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/package.json +0 -43
- package/dist/server/node_modules/onetime/readme.md +0 -94
- /package/dist/server/node_modules/{ansi-regex → ansi-styles}/license +0 -0
- /package/dist/server/node_modules/{onetime → environment}/license +0 -0
- /package/dist/server/node_modules/{ink/build/devtools-window-polyfill.d.ts → pg-protocol/dist/b.d.ts} +0 -0
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
const escape = '\u001B';
|
|
2
|
-
const isCsiParameterByte = (byte) => {
|
|
3
|
-
return byte >= 0x30 && byte <= 0x3f;
|
|
4
|
-
};
|
|
5
|
-
const isCsiIntermediateByte = (byte) => {
|
|
6
|
-
return byte >= 0x20 && byte <= 0x2f;
|
|
7
|
-
};
|
|
8
|
-
const isCsiFinalByte = (byte) => {
|
|
9
|
-
return byte >= 0x40 && byte <= 0x7e;
|
|
10
|
-
};
|
|
11
|
-
const parseCsiSequence = (input, startIndex, prefixLength) => {
|
|
12
|
-
const csiPayloadStart = startIndex + prefixLength + 1;
|
|
13
|
-
let index = csiPayloadStart;
|
|
14
|
-
for (; index < input.length; index++) {
|
|
15
|
-
const byte = input.codePointAt(index);
|
|
16
|
-
if (byte === undefined) {
|
|
17
|
-
return 'pending';
|
|
18
|
-
}
|
|
19
|
-
if (isCsiParameterByte(byte) || isCsiIntermediateByte(byte)) {
|
|
20
|
-
continue;
|
|
21
|
-
}
|
|
22
|
-
// Preserve legacy terminal function-key sequences like ESC[[A and ESC[[5~.
|
|
23
|
-
if (byte === 0x5b && index === csiPayloadStart) {
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
if (isCsiFinalByte(byte)) {
|
|
27
|
-
return {
|
|
28
|
-
sequence: input.slice(startIndex, index + 1),
|
|
29
|
-
nextIndex: index + 1,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
return undefined;
|
|
33
|
-
}
|
|
34
|
-
return 'pending';
|
|
35
|
-
};
|
|
36
|
-
const parseSs3Sequence = (input, startIndex, prefixLength) => {
|
|
37
|
-
const nextIndex = startIndex + prefixLength + 2;
|
|
38
|
-
if (nextIndex > input.length) {
|
|
39
|
-
return 'pending';
|
|
40
|
-
}
|
|
41
|
-
const finalByte = input.codePointAt(nextIndex - 1);
|
|
42
|
-
if (finalByte === undefined || !isCsiFinalByte(finalByte)) {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
sequence: input.slice(startIndex, nextIndex),
|
|
47
|
-
nextIndex,
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
const parseControlSequence = (input, startIndex, prefixLength) => {
|
|
51
|
-
const sequenceType = input[startIndex + prefixLength];
|
|
52
|
-
if (sequenceType === undefined) {
|
|
53
|
-
return 'pending';
|
|
54
|
-
}
|
|
55
|
-
if (sequenceType === '[') {
|
|
56
|
-
return parseCsiSequence(input, startIndex, prefixLength);
|
|
57
|
-
}
|
|
58
|
-
if (sequenceType === 'O') {
|
|
59
|
-
return parseSs3Sequence(input, startIndex, prefixLength);
|
|
60
|
-
}
|
|
61
|
-
return undefined;
|
|
62
|
-
};
|
|
63
|
-
const parseEscapedCodePoint = (input, escapeIndex) => {
|
|
64
|
-
const nextCodePoint = input.codePointAt(escapeIndex + 1);
|
|
65
|
-
const nextCodePointLength = nextCodePoint !== undefined && nextCodePoint > 0xff_ff ? 2 : 1;
|
|
66
|
-
const nextIndex = escapeIndex + 1 + nextCodePointLength;
|
|
67
|
-
return {
|
|
68
|
-
sequence: input.slice(escapeIndex, nextIndex),
|
|
69
|
-
nextIndex,
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
const parseKeypresses = (input) => {
|
|
73
|
-
const events = [];
|
|
74
|
-
let index = 0;
|
|
75
|
-
const pendingFrom = (pendingStartIndex) => ({
|
|
76
|
-
events,
|
|
77
|
-
pending: input.slice(pendingStartIndex),
|
|
78
|
-
});
|
|
79
|
-
while (index < input.length) {
|
|
80
|
-
const escapeIndex = input.indexOf(escape, index);
|
|
81
|
-
if (escapeIndex === -1) {
|
|
82
|
-
events.push(input.slice(index));
|
|
83
|
-
return {
|
|
84
|
-
events,
|
|
85
|
-
pending: '',
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
if (escapeIndex > index) {
|
|
89
|
-
events.push(input.slice(index, escapeIndex));
|
|
90
|
-
}
|
|
91
|
-
if (escapeIndex === input.length - 1) {
|
|
92
|
-
return pendingFrom(escapeIndex);
|
|
93
|
-
}
|
|
94
|
-
const parsedSequence = parseControlSequence(input, escapeIndex, 1);
|
|
95
|
-
if (parsedSequence === 'pending') {
|
|
96
|
-
return pendingFrom(escapeIndex);
|
|
97
|
-
}
|
|
98
|
-
if (parsedSequence) {
|
|
99
|
-
events.push(parsedSequence.sequence);
|
|
100
|
-
index = parsedSequence.nextIndex;
|
|
101
|
-
continue;
|
|
102
|
-
}
|
|
103
|
-
const next = input[escapeIndex + 1];
|
|
104
|
-
if (next === escape) {
|
|
105
|
-
if (escapeIndex + 2 >= input.length) {
|
|
106
|
-
return pendingFrom(escapeIndex);
|
|
107
|
-
}
|
|
108
|
-
const doubleEscapeSequence = parseControlSequence(input, escapeIndex, 2);
|
|
109
|
-
if (doubleEscapeSequence === 'pending') {
|
|
110
|
-
return pendingFrom(escapeIndex);
|
|
111
|
-
}
|
|
112
|
-
if (doubleEscapeSequence) {
|
|
113
|
-
events.push(doubleEscapeSequence.sequence);
|
|
114
|
-
index = doubleEscapeSequence.nextIndex;
|
|
115
|
-
continue;
|
|
116
|
-
}
|
|
117
|
-
events.push(input.slice(escapeIndex, escapeIndex + 2));
|
|
118
|
-
index = escapeIndex + 2;
|
|
119
|
-
continue;
|
|
120
|
-
}
|
|
121
|
-
const escapedCodePoint = parseEscapedCodePoint(input, escapeIndex);
|
|
122
|
-
events.push(escapedCodePoint.sequence);
|
|
123
|
-
index = escapedCodePoint.nextIndex;
|
|
124
|
-
}
|
|
125
|
-
return {
|
|
126
|
-
events,
|
|
127
|
-
pending: '',
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
export const createInputParser = () => {
|
|
131
|
-
let pending = '';
|
|
132
|
-
return {
|
|
133
|
-
push(chunk) {
|
|
134
|
-
const parsedInput = parseKeypresses(pending + chunk);
|
|
135
|
-
pending = parsedInput.pending;
|
|
136
|
-
return parsedInput.events;
|
|
137
|
-
},
|
|
138
|
-
hasPendingEscape() {
|
|
139
|
-
return pending.startsWith(escape);
|
|
140
|
-
},
|
|
141
|
-
flushPendingEscape() {
|
|
142
|
-
if (!pending.startsWith(escape)) {
|
|
143
|
-
return undefined;
|
|
144
|
-
}
|
|
145
|
-
const pendingEscape = pending;
|
|
146
|
-
pending = '';
|
|
147
|
-
return pendingEscape;
|
|
148
|
-
},
|
|
149
|
-
reset() {
|
|
150
|
-
pending = '';
|
|
151
|
-
},
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
//# sourceMappingURL=input-parser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-parser.js","sourceRoot":"","sources":["../src/input-parser.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,QAAQ,CAAC;AAexB,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAW,EAAE;IACpD,OAAO,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,IAAY,EAAW,EAAE;IACvD,OAAO,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAW,EAAE;IAChD,OAAO,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CACxB,KAAa,EACb,UAAkB,EAClB,YAAoB,EACH,EAAE;IACnB,MAAM,eAAe,GAAG,UAAU,GAAG,YAAY,GAAG,CAAC,CAAC;IACtD,IAAI,KAAK,GAAG,eAAe,CAAC;IAC5B,OAAO,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACtC,MAAM,IAAI,GAAG,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACtC,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,SAAS,CAAC;QAClB,CAAC;QAED,IAAI,kBAAkB,CAAC,I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
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _lodash = _interopRequireDefault(require("lodash.throttle"));
|
|
11
|
-
|
|
12
|
-
var _autoBind = _interopRequireDefault(require("auto-bind"));
|
|
13
|
-
|
|
14
|
-
var _logUpdate = _interopRequireDefault(require("log-update"));
|
|
15
|
-
|
|
16
|
-
var _isCi = _interopRequireDefault(require("is-ci"));
|
|
17
|
-
|
|
18
|
-
var _signalExit = _interopRequireDefault(require("signal-exit"));
|
|
19
|
-
|
|
20
|
-
var _ansiEscapes = _interopRequireDefault(require("ansi-escapes"));
|
|
21
|
-
|
|
22
|
-
var _reconciler = _interopRequireDefault(require("./reconciler"));
|
|
23
|
-
|
|
24
|
-
var _reconciler2 = _interopRequireDefault(require("./experimental/reconciler"));
|
|
25
|
-
|
|
26
|
-
var _renderer = _interopRequireDefault(require("./renderer"));
|
|
27
|
-
|
|
28
|
-
var _renderer2 = _interopRequireDefault(require("./experimental/renderer"));
|
|
29
|
-
|
|
30
|
-
var dom = _interopRequireWildcard(require("./dom"));
|
|
31
|
-
|
|
32
|
-
var experimentalDom = _interopRequireWildcard(require("./experimental/dom"));
|
|
33
|
-
|
|
34
|
-
var _instances = _interopRequireDefault(require("./instances"));
|
|
35
|
-
|
|
36
|
-
var _App = _interopRequireDefault(require("./components/App"));
|
|
37
|
-
|
|
38
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
39
|
-
|
|
40
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
41
|
-
|
|
42
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
43
|
-
|
|
44
|
-
class Instance {
|
|
45
|
-
constructor(options) {
|
|
46
|
-
(0, _autoBind.default)(this);
|
|
47
|
-
this.options = options;
|
|
48
|
-
|
|
49
|
-
if (options.experimental) {
|
|
50
|
-
this.rootNode = experimentalDom.createNode('root');
|
|
51
|
-
this.rootNode.onRender = options.debug ? this.onRender : (0, _lodash.default)(this.onRender, 16, {
|
|
52
|
-
leading: true,
|
|
53
|
-
trailing: true
|
|
54
|
-
});
|
|
55
|
-
this.rootNode.onImmediateRender = this.onRender;
|
|
56
|
-
this.renderer = (0, _renderer2.default)({
|
|
57
|
-
terminalWidth: options.stdout.columns
|
|
58
|
-
});
|
|
59
|
-
} else {
|
|
60
|
-
this.rootNode = dom.createNode('root');
|
|
61
|
-
this.rootNode.onRender = this.onRender;
|
|
62
|
-
this.renderer = (0, _renderer.default)({
|
|
63
|
-
terminalWidth: options.stdout.columns
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
this.log = _logUpdate.default.create(options.stdout);
|
|
68
|
-
this.throttledLog = options.debug ? this.log : (0, _lodash.default)(this.log, {
|
|
69
|
-
leading: true,
|
|
70
|
-
trailing: true
|
|
71
|
-
}); // Ignore last render after unmounting a tree to prevent empty output before exit
|
|
72
|
-
|
|
73
|
-
this.isUnmounted = false; // Store last output to only rerender when needed
|
|
74
|
-
|
|
75
|
-
this.lastOutput = ''; // This variable is used only in debug mode to store full static output
|
|
76
|
-
// so that it's rerendered every time, not just new static parts, like in non-debug mode
|
|
77
|
-
|
|
78
|
-
this.fullStaticOutput = '';
|
|
79
|
-
|
|
80
|
-
if (options.experimental) {
|
|
81
|
-
this.container = _reconciler2.default.createContainer(this.rootNode, false, false);
|
|
82
|
-
} else {
|
|
83
|
-
this.container = _reconciler.default.createContainer(this.rootNode, false, false);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
this.exitPromise = new Promise((resolve, reject) => {
|
|
87
|
-
this.resolveExitPromise = resolve;
|
|
88
|
-
this.rejectExitPromise = reject;
|
|
89
|
-
}); // Unmount when process exits
|
|
90
|
-
|
|
91
|
-
this.unsubscribeExit = (0, _signalExit.default)(this.unmount, {
|
|
92
|
-
alwaysLast: false
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
onRender() {
|
|
97
|
-
if (this.isUnmounted) {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
const {
|
|
102
|
-
output,
|
|
103
|
-
outputHeight,
|
|
104
|
-
staticOutput
|
|
105
|
-
} = this.renderer(this.rootNode); // If <Static> output isn't empty, it means new children have been added to it
|
|
106
|
-
|
|
107
|
-
const hasStaticOutput = staticOutput && staticOutput !== '\n';
|
|
108
|
-
|
|
109
|
-
if (this.options.debug) {
|
|
110
|
-
if (hasStaticOutput) {
|
|
111
|
-
this.fullStaticOutput += staticOutput;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
this.options.stdout.write(this.fullStaticOutput + output);
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (_isCi.default) {
|
|
119
|
-
if (hasStaticOutput) {
|
|
120
|
-
this.options.stdout.write(staticOutput);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
this.lastOutput = output;
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
if (hasStaticOutput) {
|
|
128
|
-
this.fullStaticOutput += staticOutput;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
if (this.options.experimental && outputHeight >= this.options.stdout.rows) {
|
|
132
|
-
this.options.stdout.write(_ansiEscapes.default.clearTerminal + this.fullStaticOutput + output);
|
|
133
|
-
this.lastOutput = output;
|
|
134
|
-
return;
|
|
135
|
-
} // To ensure static output is cleanly rendered before main output, clear main output first
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
if (hasStaticOutput) {
|
|
139
|
-
this.log.clear();
|
|
140
|
-
this.options.stdout.write(staticOutput);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
if (output !== this.lastOutput) {
|
|
144
|
-
if (this.options.experimental) {
|
|
145
|
-
this.throttledLog(output);
|
|
146
|
-
} else {
|
|
147
|
-
this.log(output);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
render(node) {
|
|
153
|
-
const tree = _react.default.createElement(_App.default, {
|
|
154
|
-
stdin: this.options.stdin,
|
|
155
|
-
stdout: this.options.stdout,
|
|
156
|
-
exitOnCtrlC: this.options.exitOnCtrlC,
|
|
157
|
-
onExit: this.unmount
|
|
158
|
-
}, node);
|
|
159
|
-
|
|
160
|
-
if (this.options.experimental) {
|
|
161
|
-
_reconciler2.default.updateContainer(tree, this.container);
|
|
162
|
-
} else {
|
|
163
|
-
_reconciler.default.updateContainer(tree, this.container);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
unmount(error) {
|
|
168
|
-
if (this.isUnmounted) {
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
this.onRender();
|
|
173
|
-
this.unsubscribeExit(); // CIs don't handle erasing ansi escapes well, so it's better to
|
|
174
|
-
// only render last frame of non-static output
|
|
175
|
-
|
|
176
|
-
if (_isCi.default) {
|
|
177
|
-
this.options.stdout.write(this.lastOutput + '\n');
|
|
178
|
-
} else if (!this.options.debug) {
|
|
179
|
-
this.log.done();
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
this.isUnmounted = true;
|
|
183
|
-
|
|
184
|
-
if (this.options.experimental) {
|
|
185
|
-
_reconciler2.default.updateContainer(null, this.container);
|
|
186
|
-
} else {
|
|
187
|
-
_reconciler.default.updateContainer(null, this.container);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
_instances.default.delete(this.options.stdout);
|
|
191
|
-
|
|
192
|
-
if (error instanceof Error) {
|
|
193
|
-
this.rejectExitPromise(error);
|
|
194
|
-
} else {
|
|
195
|
-
this.resolveExitPromise();
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
waitUntilExit() {
|
|
200
|
-
return this.exitPromise;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
exports.default = Instance;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// Store all instances of Ink (instance.js) to ensure that consecutive render() calls
|
|
2
|
-
// use the same instance of Ink and don't create a new one
|
|
3
|
-
//
|
|
4
|
-
// This map has to be stored in a separate file, because render.js creates instances,
|
|
5
|
-
// but instance.js should delete itself from the map on unmount
|
|
6
|
-
const instances = new WeakMap();
|
|
7
|
-
export default instances;
|
|
8
|
-
//# sourceMappingURL=instances.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"instances.js","sourceRoot":"","sources":["../src/instances.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,0DAA0D;AAC1D,EAAE;AACF,qFAAqF;AACrF,+DAA+D;AAI/D,MAAM,SAAS,GAAG,IAAI,OAAO,EAA2B,CAAC;AACzD,eAAe,SAAS,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const kittyFlags: {
|
|
2
|
-
readonly disambiguateEscapeCodes: 1;
|
|
3
|
-
readonly reportEventTypes: 2;
|
|
4
|
-
readonly reportAlternateKeys: 4;
|
|
5
|
-
readonly reportAllKeysAsEscapeCodes: 8;
|
|
6
|
-
readonly reportAssociatedText: 16;
|
|
7
|
-
};
|
|
8
|
-
export type KittyFlagName = keyof typeof kittyFlags;
|
|
9
|
-
export declare function resolveFlags(flags: KittyFlagName[]): number;
|
|
10
|
-
export declare const kittyModifiers: {
|
|
11
|
-
readonly shift: 1;
|
|
12
|
-
readonly alt: 2;
|
|
13
|
-
readonly ctrl: 4;
|
|
14
|
-
readonly super: 8;
|
|
15
|
-
readonly hyper: 16;
|
|
16
|
-
readonly meta: 32;
|
|
17
|
-
readonly capsLock: 64;
|
|
18
|
-
readonly numLock: 128;
|
|
19
|
-
};
|
|
20
|
-
export type KittyKeyboardOptions = {
|
|
21
|
-
mode?: 'auto' | 'enabled' | 'disabled';
|
|
22
|
-
flags?: KittyFlagName[];
|
|
23
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// Kitty keyboard protocol flags.
|
|
2
|
-
// @see https://sw.kovidgoyal.net/kitty/keyboard-protocol/
|
|
3
|
-
export const kittyFlags = {
|
|
4
|
-
disambiguateEscapeCodes: 1,
|
|
5
|
-
reportEventTypes: 2,
|
|
6
|
-
reportAlternateKeys: 4,
|
|
7
|
-
reportAllKeysAsEscapeCodes: 8,
|
|
8
|
-
reportAssociatedText: 16,
|
|
9
|
-
};
|
|
10
|
-
// Converts an array of flag names to the corresponding bitmask value.
|
|
11
|
-
export function resolveFlags(flags) {
|
|
12
|
-
let result = 0;
|
|
13
|
-
for (const flag of flags) {
|
|
14
|
-
// eslint-disable-next-line no-bitwise
|
|
15
|
-
result |= kittyFlags[flag];
|
|
16
|
-
}
|
|
17
|
-
return result;
|
|
18
|
-
}
|
|
19
|
-
// Kitty keyboard modifier bits.
|
|
20
|
-
// These are used in the modifier parameter of CSI u sequences.
|
|
21
|
-
// Note: The actual modifier value is (modifiers - 1) as per the protocol.
|
|
22
|
-
export const kittyModifiers = {
|
|
23
|
-
shift: 1,
|
|
24
|
-
alt: 2,
|
|
25
|
-
ctrl: 4,
|
|
26
|
-
super: 8,
|
|
27
|
-
hyper: 16,
|
|
28
|
-
meta: 32,
|
|
29
|
-
capsLock: 64,
|
|
30
|
-
numLock: 128,
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=kitty-keyboard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kitty-keyboard.js","sourceRoot":"","sources":["../src/kitty-keyboard.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,uBAAuB,EAAE,CAAC;IAC1B,gBAAgB,EAAE,CAAC;IACnB,mBAAmB,EAAE,CAAC;IACtB,0BAA0B,EAAE,CAAC;IAC7B,oBAAoB,EAAE,EAAE;CACf,CAAC;AAKX,sEAAsE;AACtE,MAAM,UAAU,YAAY,CAAC,KAAsB;IAClD,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QAC1B,sCAAsC;QACtC,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED,OAAO,MAAM,CAAC;AACf,CAAC;AAED,gCAAgC;AAChC,+DAA+D;AAC/D,0EAA0E;AAC1E,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,KAAK,EAAE,CAAC;IACR,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,GAAG;CACH,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type DOMElement } from './dom.js';
|
|
2
|
-
export type Position = {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
};
|
|
6
|
-
export declare const getAbsolutePosition: (node: DOMElement) => Position | undefined;
|
|
7
|
-
export declare const getAbsoluteContentPosition: (node: DOMElement) => Position | undefined;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import Yoga from 'yoga-layout';
|
|
2
|
-
const getAbsoluteBorderPosition = (node) => {
|
|
3
|
-
let currentNode = node;
|
|
4
|
-
let x = 0;
|
|
5
|
-
let y = 0;
|
|
6
|
-
while (currentNode?.parentNode) {
|
|
7
|
-
if (!currentNode.yogaNode) {
|
|
8
|
-
return undefined;
|
|
9
|
-
}
|
|
10
|
-
x += currentNode.yogaNode.getComputedLeft();
|
|
11
|
-
y += currentNode.yogaNode.getComputedTop();
|
|
12
|
-
currentNode = currentNode.parentNode;
|
|
13
|
-
}
|
|
14
|
-
return { x, y };
|
|
15
|
-
};
|
|
16
|
-
export const getAbsolutePosition = (node) => {
|
|
17
|
-
return getAbsoluteBorderPosition(node);
|
|
18
|
-
};
|
|
19
|
-
export const getAbsoluteContentPosition = (node) => {
|
|
20
|
-
const borderPosition = getAbsoluteBorderPosition(node);
|
|
21
|
-
if (!borderPosition || !node.yogaNode) {
|
|
22
|
-
return undefined;
|
|
23
|
-
}
|
|
24
|
-
return {
|
|
25
|
-
x: borderPosition.x +
|
|
26
|
-
node.yogaNode.getComputedBorder(Yoga.EDGE_LEFT) +
|
|
27
|
-
node.yogaNode.getComputedPadding(Yoga.EDGE_LEFT),
|
|
28
|
-
y: borderPosition.y +
|
|
29
|
-
node.yogaNode.getComputedBorder(Yoga.EDGE_TOP) +
|
|
30
|
-
node.yogaNode.getComputedPadding(Yoga.EDGE_TOP),
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=layout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../src/layout.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,aAAa,CAAC;AAQ/B,MAAM,yBAAyB,GAAG,CAAC,IAAgB,EAAwB,EAAE;IAC5E,IAAI,WAAW,GAA2B,IAAI,CAAC;IAC/C,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,IAAI,CAAC,GAAG,CAAC,CAAC;IAEV,OAAO,WAAW,EAAE,UAAU,EAAE,CAAC;QAChC,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;YAC3B,OAAO,SAAS,CAAC;QAClB,CAAC;QAED,CAAC,IAAI,WAAW,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC;QAC5C,CAAC,IAAI,WAAW,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC;QAC3C,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC;IACtC,CAAC;IAED,OAAO,EAAC,CAAC,EAAE,CAAC,EAAC,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAgB,EAAwB,EAAE;IAC7E,OAAO,yBAAyB,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACzC,IAAgB,EACO,EAAE;IACzB,MAAM,cAAc,GAAG,yBAAyB,CAAC,IAAI,CAAC,CAAC;IACvD,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACvC,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,OAAO;QACN,CAAC,EACA,cAAc,CAAC,CAAC;YAChB,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC;YAC/C,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC;QACjD,CAAC,EACA,cAAc,CAAC,CAAC;YAChB,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC;YAC9C,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChD,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type Writable } from 'node:stream';
|
|
2
|
-
import { type CursorPosition } from './cursor-helpers.js';
|
|
3
|
-
export type { CursorPosition } from './cursor-helpers.js';
|
|
4
|
-
export type LogUpdate = {
|
|
5
|
-
clear: () => void;
|
|
6
|
-
done: () => void;
|
|
7
|
-
sync: (str: string) => void;
|
|
8
|
-
setCursorPosition: (position: CursorPosition | undefined) => void;
|
|
9
|
-
isCursorDirty: () => boolean;
|
|
10
|
-
willRender: (str: string) => boolean;
|
|
11
|
-
(str: string): boolean;
|
|
12
|
-
};
|
|
13
|
-
declare const logUpdate: {
|
|
14
|
-
create: (stream: Writable, { showCursor, incremental }?: {
|
|
15
|
-
showCursor?: boolean | undefined;
|
|
16
|
-
incremental?: boolean | undefined;
|
|
17
|
-
}) => LogUpdate;
|
|
18
|
-
};
|
|
19
|
-
export default logUpdate;
|