decocms 2.281.2 → 2.281.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BeQFaTo3.js → AlertCircle-BIxJ6Rg9.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-C-IANgnQ.js → ArrowNarrowLeft-CE40KV1j.js} +1 -1
- package/dist/client/assets/{CheckCircle-Dh4A5tI_.js → CheckCircle-COmXIEn5.js} +1 -1
- package/dist/client/assets/{ChevronDown-D9aZn2Hi.js → ChevronDown-khwBdZmm.js} +1 -1
- package/dist/client/assets/{ChevronRight-CkL59Zuk.js → ChevronRight-D2N_TrCI.js} +1 -1
- package/dist/client/assets/{ChevronUp-C7hCnblE.js → ChevronUp-FT6mgGv1.js} +1 -1
- package/dist/client/assets/{Container-CSvdcipc.js → Container-YuIVovXE.js} +1 -1
- package/dist/client/assets/{LinkExternal01-sdvrsKlM.js → LinkExternal01-DDaNxuxy.js} +1 -1
- package/dist/client/assets/{Lock01-CneVnDQd.js → Lock01-CkeABLOV.js} +1 -1
- package/dist/client/assets/{Palette-Bo0ad1R6.js → Palette-CPsljGLa.js} +1 -1
- package/dist/client/assets/{Play-BhoAd8Uu.js → Play-BclVnOKX.js} +1 -1
- package/dist/client/assets/{Plus-79r9zazJ.js → Plus-E1YejiXY.js} +1 -1
- package/dist/client/assets/{SearchMd-00qF-7Ba.js → SearchMd-CZudW5Cy.js} +1 -1
- package/dist/client/assets/{Settings02-B6cIpcv6.js → Settings02-KYpYe9Yz.js} +1 -1
- package/dist/client/assets/{Star01-RArWROxo.js → Star01-DYPros2N.js} +1 -1
- package/dist/client/assets/{Sun-CaIYIMZ6.js → Sun-DMUBYzBg.js} +1 -1
- package/dist/client/assets/{Tool01-BK4G_l0X.js → Tool01-BjCpHyDA.js} +1 -1
- package/dist/client/assets/{Trash01-PNv-fbRK.js → Trash01-D8X_Y-CH.js} +1 -1
- package/dist/client/assets/{Upload01-BeVyQxbB.js → Upload01-DORqJLhK.js} +1 -1
- package/dist/client/assets/{User01-BirINwKI.js → User01-BjMDaxtZ.js} +1 -1
- package/dist/client/assets/{Users03-Dpk7x7z4.js → Users03-DvlzurXg.js} +1 -1
- package/dist/client/assets/{X-KSz9xyi5.js → X-DGMDFb7Q.js} +1 -1
- package/dist/client/assets/{XCircle-uU-3aWe3.js → XCircle-BBZJUk3l.js} +1 -1
- package/dist/client/assets/{Zap-DvQy6Azt.js → Zap-CANzvBCB.js} +1 -1
- package/dist/client/assets/{ZapSquare-Dk1UmO2a.js → ZapSquare-CvQHn6nj.js} +1 -1
- package/dist/client/assets/{accordion-w6xYXziw.js → accordion-jGpS5bKT.js} +1 -1
- package/dist/client/assets/{agent-icon-CMOX8nfk.js → agent-icon-CNfJJZjP.js} +1 -1
- package/dist/client/assets/{agents-list-CeEeRXns.js → agents-list-CeP_6hCn.js} +1 -1
- package/dist/client/assets/ai-providers-C3bM9mct.js +1 -0
- package/dist/client/assets/{alert-dialog-DtwmYIx7.js → alert-dialog-Cw0drrbJ.js} +1 -1
- package/dist/client/assets/{auth-catchall-CMH1u4oJ.js → auth-catchall-uBOqh0Nn.js} +1 -1
- package/dist/client/assets/{automation-list-row-Sb9JaQY9.js → automation-list-row-DUeas6D2.js} +1 -1
- package/dist/client/assets/{automations-Dmw1cKQC.js → automations-B24Ufwx2.js} +1 -1
- package/dist/client/assets/{avatar-BSJnhSPL.js → avatar-C3f1_XSr.js} +1 -1
- package/dist/client/assets/{badge-BbahYJz-.js → badge-UZcqLVBi.js} +1 -1
- package/dist/client/assets/{brand-context-9yJi8LtT.js → brand-context-DACRWARm.js} +1 -1
- package/dist/client/assets/{card-BBjkVedQ.js → card-BeBnnJUH.js} +1 -1
- package/dist/client/assets/{chat-context-BVA22TkC.js → chat-context-DJov78wv.js} +1 -1
- package/dist/client/assets/{checkbox-BNYrEZke.js → checkbox-BkumBjmd.js} +1 -1
- package/dist/client/assets/{collection-detail-WDWjdfFo.js → collection-detail-Asuy-_1g.js} +1 -1
- package/dist/client/assets/{collection-display-button-C_SpzkVL.js → collection-display-button-BzGOL-dZ.js} +1 -1
- package/dist/client/assets/{collection-search-3gkmMFfK.js → collection-search-sgztHnmJ.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Nq245ZaG.js → collection-table-wrapper-BuB667AV.js} +1 -1
- package/dist/client/assets/{collection-tabs-DQAAB0E9.js → collection-tabs-BPMwPHXY.js} +1 -1
- package/dist/client/assets/{collections-CvC03WFa.js → collections-BkkHKP6f.js} +1 -1
- package/dist/client/assets/{command-COmac0HY.js → command-DwBmBE0l.js} +1 -1
- package/dist/client/assets/{connection-card-C-lcUJmx.js → connection-card-dMq-VEuP.js} +1 -1
- package/dist/client/assets/{connection-detail-DXUAuxOs.js → connection-detail-pWGU-NlL.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Beczk_I1.js → connection-form-helpers-wgUzsGEw.js} +1 -1
- package/dist/client/assets/{connections-jiDZ88zc.js → connections-DqsTtENU.js} +1 -1
- package/dist/client/assets/{constants-BXYBvBo8.js → constants-C8yptWZl.js} +1 -1
- package/dist/client/assets/{constants-K9p6sFeA.js → constants-SeBtlxYF.js} +1 -1
- package/dist/client/assets/{dialog-Cu_M3bSF.js → dialog-7MxBMRtv.js} +1 -1
- package/dist/client/assets/{drawer-C0zWk4g_.js → drawer-BoWGhEog.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DVLrmulo.js → dropdown-menu-Tf7X_k_G.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-4eAl2fmh.js → dynamic-plugin-layout-CAIBwlTg.js} +1 -1
- package/dist/client/assets/{empty-state-BKZHnGIj.js → empty-state-B0FZL4pN.js} +1 -1
- package/dist/client/assets/{empty-state-CUC0Gkix.js → empty-state-DTGu1Fdm.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CvyRIMCz.js → extract-connection-data-DbLaOTrL.js} +1 -1
- package/dist/client/assets/{features-XCvz9PLL.js → features-83PDyWcU.js} +1 -1
- package/dist/client/assets/{form-Ddm04alF.js → form-BmBsjzN0.js} +1 -1
- package/dist/client/assets/{general-DUSBEOfs.js → general-DP3Rps2a.js} +1 -1
- package/dist/client/assets/{index-BhIzdEY1.js → index-B6Fe448o.js} +2 -2
- package/dist/client/assets/{index-BPDAXzpD.js → index-BGFEANza.js} +1 -1
- package/dist/client/assets/{index-FLw-zxvs.js → index-BSSsgGZx.js} +1 -1
- package/dist/client/assets/{index-CU16qbkD.js → index-BkTKyHO8.js} +4 -4
- package/dist/client/assets/{index-BH8gPP0f.js → index-BpLvdlDN.js} +1 -1
- package/dist/client/assets/{index-BHskyDSR.js → index-CMwJl8aa.js} +1 -1
- package/dist/client/assets/{index-BdfTJahg.js → index-D2RLcUNw.js} +1 -1
- package/dist/client/assets/{index-Cg0hncqj.js → index-DHHYfLmC.js} +1 -1
- package/dist/client/assets/{index-BrtLQXUh.js → index-DWsq2B99.js} +1 -1
- package/dist/client/assets/{index-uAQGGxtu.js → index-aO0TlYPD.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BO26Xlha.js → infiniteQueryObserver-BxX_zFxP.js} +1 -1
- package/dist/client/assets/{input-Bz8fx1AG.js → input-B6wnc6E0.js} +1 -1
- package/dist/client/assets/{integration-icon-Byenx_4j.js → integration-icon-BkwkZhee.js} +1 -1
- package/dist/client/assets/{label-DaHwCWWB.js → label-5rqczNeH.js} +1 -1
- package/dist/client/assets/{layout-C8AFQnZg.js → layout-BEgtojgD.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-mykHJAKm.js → lean-canvas-recruit-modal-DZ-xsVMV.js} +1 -1
- package/dist/client/assets/{login-DwiMJDl5.js → login-BuRLGM9E.js} +1 -1
- package/dist/client/assets/{members-Cd_WsIS9.js → members-D2SzW3dK.js} +1 -1
- package/dist/client/assets/{monaco-editor-D27CWon0.js → monaco-editor-NoBsgNbn.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C-XRpFjl.js → monitoring-stats-row-CNa1Qyhs.js} +1 -1
- package/dist/client/assets/{oauth-callback-GuSY-vSr.js → oauth-callback-aI0Tid7G.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-D3FgevI5.js → oauth-callback-ai-provider-EFLM2H1m.js} +1 -1
- package/dist/client/assets/{onboarding-PM_BE0uA.js → onboarding-Sr2nWjf7.js} +1 -1
- package/dist/client/assets/{org-layout-C251Cbcv.js → org-layout-BOB9EMoQ.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-BwQLOazi.js → org-plugin-layout-DcKtHUs4.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DLXHjQeu.js → plugin-empty-state-BHovc0r0.js} +1 -1
- package/dist/client/assets/{plugin-header-BddmOg85.js → plugin-header-BX67VN7B.js} +1 -1
- package/dist/client/assets/{plugin-layout-RqfANRb_.js → plugin-layout-BuvVa8nF.js} +1 -1
- package/dist/client/assets/{popover-BEF8mI0w.js → popover-BU4_Dn9E.js} +1 -1
- package/dist/client/assets/{profile-DrdPa8Y7.js → profile-Y8Sfq9q9.js} +1 -1
- package/dist/client/assets/{project-app-view-XrA_5t6Q.js → project-app-view-CCANnsKQ.js} +1 -1
- package/dist/client/assets/registry-BbDGhxnL.js +2 -0
- package/dist/client/assets/{registry-layout-CwCyJT-v.js → registry-layout-Z-9iQ5Hy.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Cxviv7yN.js → required-auth-layout-Dn_y9pYd.js} +1 -1
- package/dist/client/assets/{reset-password-DYbWh4Wq.js → reset-password-CyUYFfOn.js} +1 -1
- package/dist/client/assets/{scroll-area-_gjorSmM.js → scroll-area-C_emWPwP.js} +1 -1
- package/dist/client/assets/{search-input-Dflevf_r.js → search-input-oxb8hZUf.js} +1 -1
- package/dist/client/assets/{select-ruUaRI3f.js → select-CLAiPDa-.js} +1 -1
- package/dist/client/assets/{select-model-BgS5BYlp.js → select-model-BXWqo7I7.js} +1 -1
- package/dist/client/assets/{settings-layout-C9QCDWL8.js → settings-layout-DealGEF-.js} +1 -1
- package/dist/client/assets/{shell-layout-Lnkya_bN.js → shell-layout-BLDfm85U.js} +1 -1
- package/dist/client/assets/{skeleton-CvZ1yhmk.js → skeleton-CbLrdMio.js} +1 -1
- package/dist/client/assets/{sso-DVCm0NAv.js → sso-Ccm_fQKb.js} +1 -1
- package/dist/client/assets/{store-BAtOk8g6.js → store-DbLdk8zH.js} +1 -1
- package/dist/client/assets/store-registry-COcXxk0L.js +2 -0
- package/dist/client/assets/{switch-C4VRxkon.js → switch-CBH6sGXt.js} +1 -1
- package/dist/client/assets/{table-C1xMho2l.js → table-fKK1m7_o.js} +1 -1
- package/dist/client/assets/{tabs-MUC8gGmo.js → tabs-D-EbmTZr.js} +1 -1
- package/dist/client/assets/{task-status-DBTk3ApD.js → task-status-Dpnxg-vx.js} +1 -1
- package/dist/client/assets/{textarea-Dh5aI-9Q.js → textarea-D4ABUBrM.js} +1 -1
- package/dist/client/assets/{toggle-group-qqPb8p7Z.js → toggle-group-CrTmZ_AV.js} +1 -1
- package/dist/client/assets/{tools-list-5INqbH2J.js → tools-list-CqkfReof.js} +1 -1
- package/dist/client/assets/{types-Bp-YI7R5.js → types-GM8sGKcZ.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BXn7VXga.js → use-ai-providers-Bzstkld8.js} +1 -1
- package/dist/client/assets/{use-collections-Dg7sh01O.js → use-collections-CqFt8Ao1.js} +1 -1
- package/dist/client/assets/{use-connection-DhM_x-jA.js → use-connection-aoJhyCQY.js} +1 -1
- package/dist/client/assets/{use-copy-BuEIWb6s.js → use-copy-M68f6GGE.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-KKiF-MXD.js → use-create-virtual-mcp-HCly1WGo.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BSRQhWTI.js → use-decopilot-events-Dyu5zP68.js} +1 -1
- package/dist/client/assets/{use-delete-connection-EjeBh_jx.js → use-delete-connection-D1fyoOVF.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BvRRlmDj.js → use-infinite-scroll-DxLzMG99.js} +1 -1
- package/dist/client/assets/{use-list-state-DJ8S20f9.js → use-list-state-0zsLkDoY.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C0kKBiKr.js → use-mcp-tools-B8DbBP0f.js} +1 -1
- package/dist/client/assets/{use-members-D4VPX3yK.js → use-members-BwzOWwXP.js} +1 -1
- package/dist/client/assets/{use-mobile-BXRLCdzR.js → use-mobile-BpFBqyL_.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C1QNfHMd.js → use-navigate-to-agent-CDDwaLRP.js} +1 -1
- package/dist/client/assets/{use-org-sso-C1E2S5f1.js → use-org-sso-tVtj-Uzh.js} +1 -1
- package/dist/client/assets/{use-organization-settings-NQDr_YDe.js → use-organization-settings-CnHZf6OA.js} +1 -1
- package/dist/client/assets/{use-registry-connections-2buwPIEr.js → use-registry-connections-BGlGR_mo.js} +1 -1
- package/dist/client/assets/{use-status-sounds-C5rJSnr7.js → use-status-sounds-DkqPpB9d.js} +1 -1
- package/dist/client/assets/{use-tasks-DoJvFu21.js → use-tasks-5lCHGF_c.js} +1 -1
- package/dist/client/assets/{use-view-mode-eHr1pnSD.js → use-view-mode-DVj5tWV_.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DPQanfrd.js → use-virtual-mcp-By_96asb.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CTYKQqwI.js +1 -0
- package/dist/client/assets/{user-D-0Dg4hb.js → user-DHkNN6iL.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C9JdTAIx.js → view-mode-toggle-Btma8l_9.js} +1 -1
- package/dist/client/assets/workflow-detail-DM7Beg9p.js +1 -0
- package/dist/client/assets/{workflow-Bo7CKW-_.js → workflow-l_Z97b0k.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +3 -1
- package/dist/server/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/dist/server/node_modules/get-east-asian-width/index.js +30 -0
- package/dist/server/node_modules/get-east-asian-width/lookup-data.js +18 -0
- package/dist/server/node_modules/get-east-asian-width/lookup.js +135 -0
- package/dist/server/node_modules/get-east-asian-width/package.json +71 -0
- package/dist/server/node_modules/get-east-asian-width/readme.md +65 -0
- package/dist/server/node_modules/get-east-asian-width/utilities.js +24 -0
- package/dist/server/server.js +2 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-_ruFOoFf.js +0 -1
- package/dist/client/assets/registry-hvW8DAlR.js +0 -2
- package/dist/client/assets/store-registry-DyRkwg3g.js +0 -2
- package/dist/client/assets/useInfiniteQuery-Cozeocmy.js +0 -1
- package/dist/client/assets/workflow-detail-cv-DGPKy.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/package.json +0 -61
- 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/figures/index.d.ts +0 -279
- package/dist/server/node_modules/figures/index.js +0 -292
- package/dist/server/node_modules/figures/license +0 -9
- package/dist/server/node_modules/figures/package.json +0 -49
- package/dist/server/node_modules/figures/readme.md +0 -337
- package/dist/server/node_modules/mimic-fn/index.d.ts +0 -54
- package/dist/server/node_modules/mimic-fn/index.js +0 -13
- package/dist/server/node_modules/mimic-fn/license +0 -9
- package/dist/server/node_modules/mimic-fn/package.json +0 -42
- package/dist/server/node_modules/mimic-fn/readme.md +0 -69
- package/dist/server/node_modules/onetime/index.d.ts +0 -64
- package/dist/server/node_modules/onetime/index.js +0 -44
- package/dist/server/node_modules/onetime/license +0 -9
- 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/pg-int8/LICENSE +0 -13
- package/dist/server/node_modules/pg-int8/README.md +0 -16
- package/dist/server/node_modules/pg-int8/index.js +0 -100
- package/dist/server/node_modules/pg-int8/package.json +0 -24
- package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
- package/dist/server/node_modules/postgres-array/index.js +0 -97
- package/dist/server/node_modules/postgres-array/license +0 -21
- package/dist/server/node_modules/postgres-array/package.json +0 -35
- package/dist/server/node_modules/postgres-array/readme.md +0 -43
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/license +0 -21
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/license +0 -21
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
- package/dist/server/node_modules/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/LICENSE +0 -20
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
- /package/dist/server/node_modules/{ansi-regex → get-east-asian-width}/license +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export type WidthType = 'fullwidth' | 'halfwidth' | 'wide' | 'narrow' | 'neutral' | 'ambiguous';
|
|
2
|
+
|
|
3
|
+
export type Options = {
|
|
4
|
+
/**
|
|
5
|
+
Whether to treat an `'ambiguous'` character as wide.
|
|
6
|
+
|
|
7
|
+
@default true
|
|
8
|
+
|
|
9
|
+
@example
|
|
10
|
+
```
|
|
11
|
+
import {eastAsianWidth} from 'get-east-asian-width';
|
|
12
|
+
|
|
13
|
+
const codePoint = '⛣'.codePointAt(0);
|
|
14
|
+
|
|
15
|
+
console.log(eastAsianWidth(codePoint));
|
|
16
|
+
//=> 1
|
|
17
|
+
|
|
18
|
+
console.log(eastAsianWidth(codePoint, {ambiguousAsWide: true}));
|
|
19
|
+
//=> 2
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
> Ambiguous characters behave like wide or narrow characters depending on the context (language tag, script identification, associated font, source of data, or explicit markup; all can provide the context). __If the context cannot be established reliably, they should be treated as narrow characters by default.__
|
|
23
|
+
> - http://www.unicode.org/reports/tr11/
|
|
24
|
+
*/
|
|
25
|
+
readonly ambiguousAsWide?: boolean;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
Returns the width as a number for the given code point.
|
|
30
|
+
|
|
31
|
+
@param codePoint - A Unicode code point.
|
|
32
|
+
|
|
33
|
+
@example
|
|
34
|
+
```
|
|
35
|
+
import {eastAsianWidth} from 'get-east-asian-width';
|
|
36
|
+
|
|
37
|
+
const codePoint = '字'.codePointAt(0);
|
|
38
|
+
|
|
39
|
+
console.log(eastAsianWidth(codePoint));
|
|
40
|
+
//=> 2
|
|
41
|
+
```
|
|
42
|
+
*/
|
|
43
|
+
export function eastAsianWidth(codePoint: number, options?: Options): 1 | 2;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
Returns the type of “East Asian Width” for the given code point.
|
|
47
|
+
|
|
48
|
+
@param codePoint - A Unicode code point.
|
|
49
|
+
|
|
50
|
+
@example
|
|
51
|
+
```
|
|
52
|
+
import {eastAsianWidthType} from 'get-east-asian-width';
|
|
53
|
+
|
|
54
|
+
const codePoint = '字'.codePointAt(0);
|
|
55
|
+
|
|
56
|
+
console.log(eastAsianWidthType(codePoint));
|
|
57
|
+
//=> 'wide'
|
|
58
|
+
```
|
|
59
|
+
*/
|
|
60
|
+
export function eastAsianWidthType(codePoint: number): WidthType;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {getCategory, isAmbiguous, isFullWidth, isWide} from './lookup.js';
|
|
2
|
+
|
|
3
|
+
function validate(codePoint) {
|
|
4
|
+
if (!Number.isSafeInteger(codePoint)) {
|
|
5
|
+
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function eastAsianWidthType(codePoint) {
|
|
10
|
+
validate(codePoint);
|
|
11
|
+
|
|
12
|
+
return getCategory(codePoint);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function eastAsianWidth(codePoint, {ambiguousAsWide = false} = {}) {
|
|
16
|
+
validate(codePoint);
|
|
17
|
+
|
|
18
|
+
if (
|
|
19
|
+
isFullWidth(codePoint)
|
|
20
|
+
|| isWide(codePoint)
|
|
21
|
+
|| (ambiguousAsWide && isAmbiguous(codePoint))
|
|
22
|
+
) {
|
|
23
|
+
return 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Private exports for https://github.com/sindresorhus/is-fullwidth-code-point
|
|
30
|
+
export {isFullWidth as _isFullWidth, isWide as _isWide} from './lookup.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Generated by scripts/build.js
|
|
2
|
+
|
|
3
|
+
// prettier-ignore
|
|
4
|
+
const ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
|
|
5
|
+
|
|
6
|
+
// prettier-ignore
|
|
7
|
+
const fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
|
|
8
|
+
|
|
9
|
+
// prettier-ignore
|
|
10
|
+
const halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
|
|
11
|
+
|
|
12
|
+
// prettier-ignore
|
|
13
|
+
const narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630];
|
|
14
|
+
|
|
15
|
+
// prettier-ignore
|
|
16
|
+
const wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
|
|
17
|
+
|
|
18
|
+
export {ambiguousRanges, fullwidthRanges, halfwidthRanges, narrowRanges, wideRanges};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ambiguousRanges,
|
|
3
|
+
fullwidthRanges,
|
|
4
|
+
halfwidthRanges,
|
|
5
|
+
narrowRanges,
|
|
6
|
+
wideRanges,
|
|
7
|
+
} from './lookup-data.js';
|
|
8
|
+
import {isInRange} from './utilities.js';
|
|
9
|
+
|
|
10
|
+
const minimumAmbiguousCodePoint = ambiguousRanges[0];
|
|
11
|
+
const maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
|
|
12
|
+
const minimumFullWidthCodePoint = fullwidthRanges[0];
|
|
13
|
+
const maximumFullWidthCodePoint = fullwidthRanges.at(-1);
|
|
14
|
+
const minimumHalfWidthCodePoint = halfwidthRanges[0];
|
|
15
|
+
const maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
|
|
16
|
+
const minimumNarrowCodePoint = narrowRanges[0];
|
|
17
|
+
const maximumNarrowCodePoint = narrowRanges.at(-1);
|
|
18
|
+
const minimumWideCodePoint = wideRanges[0];
|
|
19
|
+
const maximumWideCodePoint = wideRanges.at(-1);
|
|
20
|
+
|
|
21
|
+
const commonCjkCodePoint = 0x4E_00;
|
|
22
|
+
const [wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
|
|
23
|
+
|
|
24
|
+
// Use a hot-path range so common `isWide` calls can skip binary search.
|
|
25
|
+
// The range containing U+4E00 covers common CJK ideographs;
|
|
26
|
+
// fallback to the largest range for resilience to Unicode table changes.
|
|
27
|
+
function findWideFastPathRange(ranges) {
|
|
28
|
+
let fastPathStart = ranges[0];
|
|
29
|
+
let fastPathEnd = ranges[1];
|
|
30
|
+
|
|
31
|
+
for (let index = 0; index < ranges.length; index += 2) {
|
|
32
|
+
const start = ranges[index];
|
|
33
|
+
const end = ranges[index + 1];
|
|
34
|
+
|
|
35
|
+
if (
|
|
36
|
+
commonCjkCodePoint >= start
|
|
37
|
+
&& commonCjkCodePoint <= end
|
|
38
|
+
) {
|
|
39
|
+
return [start, end];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if ((end - start) > (fastPathEnd - fastPathStart)) {
|
|
43
|
+
fastPathStart = start;
|
|
44
|
+
fastPathEnd = end;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return [fastPathStart, fastPathEnd];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const isAmbiguous = codePoint => {
|
|
52
|
+
if (
|
|
53
|
+
codePoint < minimumAmbiguousCodePoint
|
|
54
|
+
|| codePoint > maximumAmbiguousCodePoint
|
|
55
|
+
) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return isInRange(ambiguousRanges, codePoint);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const isFullWidth = codePoint => {
|
|
63
|
+
if (
|
|
64
|
+
codePoint < minimumFullWidthCodePoint
|
|
65
|
+
|| codePoint > maximumFullWidthCodePoint
|
|
66
|
+
) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return isInRange(fullwidthRanges, codePoint);
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const isHalfWidth = codePoint => {
|
|
74
|
+
if (
|
|
75
|
+
codePoint < minimumHalfWidthCodePoint
|
|
76
|
+
|| codePoint > maximumHalfWidthCodePoint
|
|
77
|
+
) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return isInRange(halfwidthRanges, codePoint);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const isNarrow = codePoint => {
|
|
85
|
+
if (
|
|
86
|
+
codePoint < minimumNarrowCodePoint
|
|
87
|
+
|| codePoint > maximumNarrowCodePoint
|
|
88
|
+
) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return isInRange(narrowRanges, codePoint);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export const isWide = codePoint => {
|
|
96
|
+
if (
|
|
97
|
+
codePoint >= wideFastPathStart
|
|
98
|
+
&& codePoint <= wideFastPathEnd
|
|
99
|
+
) {
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (
|
|
104
|
+
codePoint < minimumWideCodePoint
|
|
105
|
+
|| codePoint > maximumWideCodePoint
|
|
106
|
+
) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return isInRange(wideRanges, codePoint);
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export function getCategory(codePoint) {
|
|
114
|
+
if (isAmbiguous(codePoint)) {
|
|
115
|
+
return 'ambiguous';
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (isFullWidth(codePoint)) {
|
|
119
|
+
return 'fullwidth';
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (isHalfWidth(codePoint)) {
|
|
123
|
+
return 'halfwidth';
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (isNarrow(codePoint)) {
|
|
127
|
+
return 'narrow';
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (isWide(codePoint)) {
|
|
131
|
+
return 'wide';
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return 'neutral';
|
|
135
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "get-east-asian-width",
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"description": "Determine the East Asian Width of a Unicode character",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/get-east-asian-width",
|
|
7
|
+
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Sindre Sorhus",
|
|
10
|
+
"email": "sindresorhus@gmail.com",
|
|
11
|
+
"url": "https://sindresorhus.com"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"exports": {
|
|
15
|
+
"types": "./index.d.ts",
|
|
16
|
+
"default": "./index.js"
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"test": "xo && ava && tsc index.d.ts",
|
|
24
|
+
"build": "node scripts/build.js",
|
|
25
|
+
"prepublish": "npm run build"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"index.js",
|
|
29
|
+
"index.d.ts",
|
|
30
|
+
"lookup.js",
|
|
31
|
+
"lookup-data.js",
|
|
32
|
+
"utilities.js"
|
|
33
|
+
],
|
|
34
|
+
"keywords": [
|
|
35
|
+
"unicode",
|
|
36
|
+
"east-asian-width",
|
|
37
|
+
"eastasianwidth",
|
|
38
|
+
"character",
|
|
39
|
+
"string",
|
|
40
|
+
"width",
|
|
41
|
+
"text",
|
|
42
|
+
"layout",
|
|
43
|
+
"alignment",
|
|
44
|
+
"fullwidth",
|
|
45
|
+
"halfwidth",
|
|
46
|
+
"ambiguous",
|
|
47
|
+
"narrow",
|
|
48
|
+
"wide",
|
|
49
|
+
"neutral",
|
|
50
|
+
"typography",
|
|
51
|
+
"japanese",
|
|
52
|
+
"chinese",
|
|
53
|
+
"korean",
|
|
54
|
+
"codepoint",
|
|
55
|
+
"text-processing",
|
|
56
|
+
"i18n",
|
|
57
|
+
"l10n"
|
|
58
|
+
],
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"ava": "^5.3.1",
|
|
61
|
+
"outdent": "^0.8.0",
|
|
62
|
+
"simplify-ranges": "^0.1.0",
|
|
63
|
+
"typescript": "^5.2.2",
|
|
64
|
+
"xo": "^0.56.0"
|
|
65
|
+
},
|
|
66
|
+
"xo": {
|
|
67
|
+
"ignores": [
|
|
68
|
+
"lookup-data.js"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# get-east-asian-width
|
|
2
|
+
|
|
3
|
+
> Determine the [East Asian Width](https://unicode.org/reports/tr11/) of a Unicode character
|
|
4
|
+
|
|
5
|
+
> East Asian Width categorizes Unicode characters based on their occupied space in East Asian typography, which helps in text layout and alignment, particularly in languages like Japanese, Chinese, and Korean.
|
|
6
|
+
|
|
7
|
+
Unlike other similar packages, this package uses the latest Unicode data (which changes each year).
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install get-east-asian-width
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
import {eastAsianWidth, eastAsianWidthType} from 'get-east-asian-width';
|
|
19
|
+
|
|
20
|
+
const codePoint = '字'.codePointAt(0);
|
|
21
|
+
|
|
22
|
+
console.log(eastAsianWidth(codePoint));
|
|
23
|
+
//=> 2
|
|
24
|
+
|
|
25
|
+
console.log(eastAsianWidthType(codePoint));
|
|
26
|
+
//=> 'wide'
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## `eastAsianWidth(codePoint: number, options?: object): 1 | 2`
|
|
30
|
+
|
|
31
|
+
Returns the width as a number for the given code point.
|
|
32
|
+
|
|
33
|
+
### options
|
|
34
|
+
|
|
35
|
+
Type: `object`
|
|
36
|
+
|
|
37
|
+
#### ambiguousAsWide
|
|
38
|
+
|
|
39
|
+
Type: `boolean`\
|
|
40
|
+
Default: `false`
|
|
41
|
+
|
|
42
|
+
Whether to treat an `'ambiguous'` character as wide.
|
|
43
|
+
|
|
44
|
+
```js
|
|
45
|
+
import {eastAsianWidth} from 'get-east-asian-width';
|
|
46
|
+
|
|
47
|
+
const codePoint = '⛣'.codePointAt(0);
|
|
48
|
+
|
|
49
|
+
console.log(eastAsianWidth(codePoint));
|
|
50
|
+
//=> 1
|
|
51
|
+
|
|
52
|
+
console.log(eastAsianWidth(codePoint, {ambiguousAsWide: true}));
|
|
53
|
+
//=> 2
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
> Ambiguous characters behave like wide or narrow characters depending on the context (language tag, script identification, associated font, source of data, or explicit markup; all can provide the context). **If the context cannot be established reliably, they should be treated as narrow characters by default.**
|
|
57
|
+
> - http://www.unicode.org/reports/tr11/
|
|
58
|
+
|
|
59
|
+
## `eastAsianWidthType(codePoint: number): 'fullwidth' | 'halfwidth' | 'wide' | 'narrow' | 'neutral' | 'ambiguous'`
|
|
60
|
+
|
|
61
|
+
Returns the type of “East Asian Width” for the given code point.
|
|
62
|
+
|
|
63
|
+
## Related
|
|
64
|
+
|
|
65
|
+
- [string-width](https://github.com/sindresorhus/string-width) - Get the visual width of a string
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Binary search on a sorted flat array of [start, end] pairs.
|
|
3
|
+
|
|
4
|
+
@param {number[]} ranges - Flat array of inclusive [start, end] range pairs, e.g. [0, 5, 10, 20].
|
|
5
|
+
@param {number} codePoint - The value to search for.
|
|
6
|
+
@returns {boolean} Whether the value falls within any of the ranges.
|
|
7
|
+
*/
|
|
8
|
+
export const isInRange = (ranges, codePoint) => {
|
|
9
|
+
let low = 0;
|
|
10
|
+
let high = Math.floor(ranges.length / 2) - 1;
|
|
11
|
+
while (low <= high) {
|
|
12
|
+
const mid = Math.floor((low + high) / 2);
|
|
13
|
+
const i = mid * 2;
|
|
14
|
+
if (codePoint < ranges[i]) {
|
|
15
|
+
high = mid - 1;
|
|
16
|
+
} else if (codePoint > ranges[i + 1]) {
|
|
17
|
+
low = mid + 1;
|
|
18
|
+
} else {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return false;
|
|
24
|
+
};
|
package/dist/server/server.js
CHANGED
|
@@ -1588,6 +1588,8 @@ ${W}`}return Y}});var _Q1=I((QP)=>{var C79=QP&&QP.__createBinding||(Object.creat
|
|
|
1588
1588
|
You are an AI agent running on Deco CMS \u2014 a control plane for connecting
|
|
1589
1589
|
AI agents to external services via the Model Context Protocol (MCP).
|
|
1590
1590
|
|
|
1591
|
+
Current date: ${new Date().toISOString().split("T")[0]}
|
|
1592
|
+
|
|
1591
1593
|
Building blocks:
|
|
1592
1594
|
- **Connections** \u2014 tool providers that connect to external services
|
|
1593
1595
|
(Gmail, Slack, GitHub, databases, etc). Each exposes tools you can call.
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as t,j as i}from"./index-BhIzdEY1.js";import{O as m}from"./select-model-BgS5BYlp.js";import"./checkbox-BNYrEZke.js";import"./ChevronDown-D9aZn2Hi.js";import"./input-Bz8fx1AG.js";import"./dialog-Cu_M3bSF.js";import"./X-KSz9xyi5.js";import"./drawer-C0zWk4g_.js";import"./use-mobile-BXRLCdzR.js";import"./select-ruUaRI3f.js";import"./ChevronUp-C7hCnblE.js";import"./skeleton-CvZ1yhmk.js";import"./Tool01-BK4G_l0X.js";import"./SearchMd-00qF-7Ba.js";import"./Settings02-B6cIpcv6.js";import"./use-ai-providers-BXn7VXga.js";import"./constants-BXYBvBo8.js";import"./chat-context-BVA22TkC.js";import"./use-virtual-mcp-DPQanfrd.js";import"./use-collections-Dg7sh01O.js";import"./use-decopilot-events-BSRQhWTI.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-DoJvFu21.js";import"./use-organization-settings-NQDr_YDe.js";import"./ai-providers-logos-CS4PCiqI.js";import"./Zap-DvQy6Azt.js";import"./AlertCircle-BeQFaTo3.js";import"./CheckCircle-Dh4A5tI_.js";import"./Trash01-PNv-fbRK.js";import"./index-BH8gPP0f.js";import"./card-BBjkVedQ.js";import"./switch-C4VRxkon.js";import"./toggle-group-qqPb8p7Z.js";import"./avatar-BSJnhSPL.js";import"./User01-BirINwKI.js";import"./alert-dialog-DtwmYIx7.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./unwrap-tool-result-BYXdCQMg.js";function M(){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{M as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CwCyJT-v.js","assets/index-BhIzdEY1.js","assets/index-C_Ncklfg.css","assets/ArrowNarrowLeft-C-IANgnQ.js","assets/CheckCircle-Dh4A5tI_.js","assets/Container-CSvdcipc.js","assets/Settings02-B6cIpcv6.js","assets/XCircle-uU-3aWe3.js","assets/constants-BXYBvBo8.js","assets/useInfiniteQuery-Cozeocmy.js","assets/infiniteQueryObserver-BO26Xlha.js","assets/badge-BbahYJz-.js","assets/input-Bz8fx1AG.js","assets/dropdown-menu-DVLrmulo.js","assets/ChevronDown-D9aZn2Hi.js","assets/ChevronRight-CkL59Zuk.js","assets/table-C1xMho2l.js","assets/toggle-group-qqPb8p7Z.js","assets/use-view-mode-eHr1pnSD.js","assets/use-mobile-BXRLCdzR.js","assets/SearchMd-00qF-7Ba.js","assets/dialog-Cu_M3bSF.js","assets/X-KSz9xyi5.js","assets/AlertCircle-BeQFaTo3.js","assets/Upload01-BeVyQxbB.js","assets/alert-dialog-DtwmYIx7.js","assets/card-BBjkVedQ.js","assets/Trash01-PNv-fbRK.js","assets/label-DaHwCWWB.js","assets/select-ruUaRI3f.js","assets/ChevronUp-C7hCnblE.js","assets/switch-C4VRxkon.js","assets/textarea-Dh5aI-9Q.js","assets/checkbox-BNYrEZke.js","assets/LinkExternal01-sdvrsKlM.js","assets/use-copy-BuEIWb6s.js","assets/Plus-79r9zazJ.js","assets/Play-BhoAd8Uu.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as a,j as t,r,l as i,aF as o}from"./index-BhIzdEY1.js";const n=r.lazy(()=>o(()=>import("./registry-layout-CwCyJT-v.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])));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-CwCyJT-v.js","assets/index-BhIzdEY1.js","assets/index-C_Ncklfg.css","assets/ArrowNarrowLeft-C-IANgnQ.js","assets/CheckCircle-Dh4A5tI_.js","assets/Container-CSvdcipc.js","assets/Settings02-B6cIpcv6.js","assets/XCircle-uU-3aWe3.js","assets/constants-BXYBvBo8.js","assets/useInfiniteQuery-Cozeocmy.js","assets/infiniteQueryObserver-BO26Xlha.js","assets/badge-BbahYJz-.js","assets/input-Bz8fx1AG.js","assets/dropdown-menu-DVLrmulo.js","assets/ChevronDown-D9aZn2Hi.js","assets/ChevronRight-CkL59Zuk.js","assets/table-C1xMho2l.js","assets/toggle-group-qqPb8p7Z.js","assets/use-view-mode-eHr1pnSD.js","assets/use-mobile-BXRLCdzR.js","assets/SearchMd-00qF-7Ba.js","assets/dialog-Cu_M3bSF.js","assets/X-KSz9xyi5.js","assets/AlertCircle-BeQFaTo3.js","assets/Upload01-BeVyQxbB.js","assets/alert-dialog-DtwmYIx7.js","assets/card-BBjkVedQ.js","assets/Trash01-PNv-fbRK.js","assets/label-DaHwCWWB.js","assets/select-ruUaRI3f.js","assets/ChevronUp-C7hCnblE.js","assets/switch-C4VRxkon.js","assets/textarea-Dh5aI-9Q.js","assets/checkbox-BNYrEZke.js","assets/LinkExternal01-sdvrsKlM.js","assets/use-copy-BuEIWb6s.js","assets/Plus-79r9zazJ.js","assets/Play-BhoAd8Uu.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,aF as u}from"./index-BhIzdEY1.js";const g=l.lazy(()=>u(()=>import("./registry-layout-CwCyJT-v.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])));function _(){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(g,{onBack:()=>o({to:"/$org/settings/store",params:{org:i}})})}),e[2]=o,e[3]=i,e[4]=a):a=e[4],a}export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-BO26Xlha.js";import{bY as i}from"./index-BhIzdEY1.js";function t(e,r){return i(e,u,r)}export{t 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-BhIzdEY1.js";import{a as f}from"./index-BPDAXzpD.js";import"./index-Cg0hncqj.js";import"./constants-BXYBvBo8.js";import"./collections-CvC03WFa.js";import"./index-BrtLQXUh.js";import"./use-virtual-mcp-DPQanfrd.js";import"./use-collections-Dg7sh01O.js";import"./monaco-editor-D27CWon0.js";import"./scroll-area-_gjorSmM.js";import"./select-ruUaRI3f.js";import"./use-mobile-BXRLCdzR.js";import"./ChevronDown-D9aZn2Hi.js";import"./ChevronUp-C7hCnblE.js";import"./accordion-w6xYXziw.js";import"./agent-icon-CMOX8nfk.js";import"./AlertCircle-BeQFaTo3.js";import"./Tool01-BK4G_l0X.js";import"./SearchMd-00qF-7Ba.js";import"./ArrowNarrowLeft-C-IANgnQ.js";import"./XCircle-uU-3aWe3.js";import"./ZapSquare-Dk1UmO2a.js";import"./Users03-Dpk7x7z4.js";import"./CheckCircle-Dh4A5tI_.js";import"./ChevronRight-CkL59Zuk.js";import"./Container-CSvdcipc.js";import"./Star01-RArWROxo.js";import"./Palette-Bo0ad1R6.js";import"./index-BH8gPP0f.js";import"./X-KSz9xyi5.js";import"./LinkExternal01-sdvrsKlM.js";import"./Lock01-CneVnDQd.js";import"./Sun-CaIYIMZ6.js";import"./Play-BhoAd8Uu.js";import"./Plus-79r9zazJ.js";import"./Settings02-B6cIpcv6.js";import"./Trash01-PNv-fbRK.js";import"./Upload01-BeVyQxbB.js";import"./User01-BirINwKI.js";import"./Zap-DvQy6Azt.js";import"./badge-BbahYJz-.js";import"./view-mode-toggle-C9JdTAIx.js";import"./layout-C8AFQnZg.js";import"./use-connection-DhM_x-jA.js";import"./use-mcp-tools-C0kKBiKr.js";import"./dialog-Cu_M3bSF.js";import"./dropdown-menu-DVLrmulo.js";import"./integration-icon-Byenx_4j.js";import"./index-uAQGGxtu.js";import"./empty-state-CUC0Gkix.js";import"./create-sse-subscription-CxkOgzKf.js";import"./input-Bz8fx1AG.js";function ct(){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{ct as default};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export type Options = {
|
|
2
|
-
/**
|
|
3
|
-
Match only the first ANSI escape.
|
|
4
|
-
|
|
5
|
-
@default false
|
|
6
|
-
*/
|
|
7
|
-
readonly onlyFirst: boolean;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
Regular expression for matching ANSI escape codes.
|
|
12
|
-
|
|
13
|
-
@example
|
|
14
|
-
```
|
|
15
|
-
import ansiRegex from 'ansi-regex';
|
|
16
|
-
|
|
17
|
-
ansiRegex().test('\u001B[4mcake\u001B[0m');
|
|
18
|
-
//=> true
|
|
19
|
-
|
|
20
|
-
ansiRegex().test('cake');
|
|
21
|
-
//=> false
|
|
22
|
-
|
|
23
|
-
'\u001B[4mcake\u001B[0m'.match(ansiRegex());
|
|
24
|
-
//=> ['\u001B[4m', '\u001B[0m']
|
|
25
|
-
|
|
26
|
-
'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
|
|
27
|
-
//=> ['\u001B[4m']
|
|
28
|
-
|
|
29
|
-
'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
|
|
30
|
-
//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
|
|
31
|
-
```
|
|
32
|
-
*/
|
|
33
|
-
export default function ansiRegex(options?: Options): RegExp;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export default function ansiRegex({onlyFirst = false} = {}) {
|
|
2
|
-
// Valid string terminator sequences are BEL, ESC\, and 0x9c
|
|
3
|
-
const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)';
|
|
4
|
-
|
|
5
|
-
// OSC sequences only: ESC ] ... ST (non-greedy until the first ST)
|
|
6
|
-
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
|
7
|
-
|
|
8
|
-
// CSI and related: ESC/C1, optional intermediates, optional params (supports ; and :) then final byte
|
|
9
|
-
const csi = '[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]';
|
|
10
|
-
|
|
11
|
-
const pattern = `${osc}|${csi}`;
|
|
12
|
-
|
|
13
|
-
return new RegExp(pattern, onlyFirst ? undefined : 'g');
|
|
14
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ansi-regex",
|
|
3
|
-
"version": "6.2.2",
|
|
4
|
-
"description": "Regular expression for matching ANSI escape codes",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "chalk/ansi-regex",
|
|
7
|
-
"funding": "https://github.com/chalk/ansi-regex?sponsor=1",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Sindre Sorhus",
|
|
10
|
-
"email": "sindresorhus@gmail.com",
|
|
11
|
-
"url": "https://sindresorhus.com"
|
|
12
|
-
},
|
|
13
|
-
"type": "module",
|
|
14
|
-
"exports": "./index.js",
|
|
15
|
-
"types": "./index.d.ts",
|
|
16
|
-
"sideEffects": false,
|
|
17
|
-
"engines": {
|
|
18
|
-
"node": ">=12"
|
|
19
|
-
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"test": "xo && ava && tsd",
|
|
22
|
-
"view-supported": "node fixtures/view-codes.js"
|
|
23
|
-
},
|
|
24
|
-
"files": [
|
|
25
|
-
"index.js",
|
|
26
|
-
"index.d.ts"
|
|
27
|
-
],
|
|
28
|
-
"keywords": [
|
|
29
|
-
"ansi",
|
|
30
|
-
"styles",
|
|
31
|
-
"color",
|
|
32
|
-
"colour",
|
|
33
|
-
"colors",
|
|
34
|
-
"terminal",
|
|
35
|
-
"console",
|
|
36
|
-
"cli",
|
|
37
|
-
"string",
|
|
38
|
-
"tty",
|
|
39
|
-
"escape",
|
|
40
|
-
"formatting",
|
|
41
|
-
"rgb",
|
|
42
|
-
"256",
|
|
43
|
-
"shell",
|
|
44
|
-
"xterm",
|
|
45
|
-
"command-line",
|
|
46
|
-
"text",
|
|
47
|
-
"regex",
|
|
48
|
-
"regexp",
|
|
49
|
-
"re",
|
|
50
|
-
"match",
|
|
51
|
-
"test",
|
|
52
|
-
"find",
|
|
53
|
-
"pattern"
|
|
54
|
-
],
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"ansi-escapes": "^5.0.0",
|
|
57
|
-
"ava": "^3.15.0",
|
|
58
|
-
"tsd": "^0.21.0",
|
|
59
|
-
"xo": "^0.54.2"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# ansi-regex
|
|
2
|
-
|
|
3
|
-
> Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
npm install ansi-regex
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
import ansiRegex from 'ansi-regex';
|
|
15
|
-
|
|
16
|
-
ansiRegex().test('\u001B[4mcake\u001B[0m');
|
|
17
|
-
//=> true
|
|
18
|
-
|
|
19
|
-
ansiRegex().test('cake');
|
|
20
|
-
//=> false
|
|
21
|
-
|
|
22
|
-
'\u001B[4mcake\u001B[0m'.match(ansiRegex());
|
|
23
|
-
//=> ['\u001B[4m', '\u001B[0m']
|
|
24
|
-
|
|
25
|
-
'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
|
|
26
|
-
//=> ['\u001B[4m']
|
|
27
|
-
|
|
28
|
-
'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
|
|
29
|
-
//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## API
|
|
33
|
-
|
|
34
|
-
### ansiRegex(options?)
|
|
35
|
-
|
|
36
|
-
Returns a regex for matching ANSI escape codes.
|
|
37
|
-
|
|
38
|
-
#### options
|
|
39
|
-
|
|
40
|
-
Type: `object`
|
|
41
|
-
|
|
42
|
-
##### onlyFirst
|
|
43
|
-
|
|
44
|
-
Type: `boolean`\
|
|
45
|
-
Default: `false` *(Matches any ANSI escape codes in a string)*
|
|
46
|
-
|
|
47
|
-
Match only the first ANSI escape.
|
|
48
|
-
|
|
49
|
-
## Important
|
|
50
|
-
|
|
51
|
-
If you run the regex against untrusted user input in a server context, you should [give it a timeout](https://github.com/sindresorhus/super-regex).
|
|
52
|
-
|
|
53
|
-
**I do not consider [ReDoS](https://blog.yossarian.net/2022/12/28/ReDoS-vulnerabilities-and-misaligned-incentives) a valid vulnerability for this package.**
|
|
54
|
-
|
|
55
|
-
## FAQ
|
|
56
|
-
|
|
57
|
-
### Why do you test for codes not in the ECMA 48 standard?
|
|
58
|
-
|
|
59
|
-
Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them.
|
|
60
|
-
|
|
61
|
-
On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out.
|
|
62
|
-
|
|
63
|
-
## Maintainers
|
|
64
|
-
|
|
65
|
-
- [Sindre Sorhus](https://github.com/sindresorhus)
|
|
66
|
-
- [Josh Junon](https://github.com/qix-)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Copyright Mathias Bynens <https://mathiasbynens.be/>
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
-
a copy of this software and associated documentation files (the
|
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
-
the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be
|
|
12
|
-
included in all copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|