@cardstack/boxel-cli 0.3.2-unstable.59 → 0.3.2-unstable.60
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/api.ts +3 -3
- package/bundled-realms/base/command.gts +73 -0
- package/bundled-test-harness/assets/adapter-TgpmkD23.js +2 -0
- package/bundled-test-harness/assets/add-field-to-card-definition-command-test-BVVD6_Wq.js +111 -0
- package/bundled-test-harness/assets/add-workspace-test-BvvYJ2Fk.js +71 -0
- package/bundled-test-harness/assets/ai-assistant-Ba_RBqf6.js +129 -0
- package/bundled-test-harness/assets/ai-assistant-panel-service-test-DK87n1hh.js +95 -0
- package/bundled-test-harness/assets/ai-assistant-test-CZATBlJS.js +2137 -0
- package/bundled-test-harness/assets/ai-function-generation-test-e58MHziu.js +996 -0
- package/bundled-test-harness/assets/ai-module-creation-test-CEieL3Fa.js +150 -0
- package/bundled-test-harness/assets/aibot-message-DhTbAqNk.js +1185 -0
- package/bundled-test-harness/assets/amd-transpile-test-CSk5COu7.js +425 -0
- package/bundled-test-harness/assets/app-Btfy4HWI.js +21464 -0
- package/bundled-test-harness/assets/apply-boxel-formatting-test-BHTP9NBp.js +134 -0
- package/bundled-test-harness/assets/apply-markdown-edit-test-BETCndeK.js +230 -0
- package/bundled-test-harness/assets/apply-search-replace-block-test-KNolar0-.js +630 -0
- package/bundled-test-harness/assets/arc-CA8yZ0zo.js +199 -0
- package/bundled-test-harness/assets/architecture-7EHR7CIX-C5JFMGdb.js +3 -0
- package/bundled-test-harness/assets/architectureDiagram-3BPJPVTR-CmVPjKgm.js +7400 -0
- package/bundled-test-harness/assets/auth-error-guard-test-D0rKESg_.js +30 -0
- package/bundled-test-harness/assets/auth-service-worker-test-DGg_vbKo.js +538 -0
- package/bundled-test-harness/assets/authed-fetch-test-CHF3eh_H.js +75 -0
- package/bundled-test-harness/assets/avif-image-def-test-p9tiyh4_.js +186 -0
- package/bundled-test-harness/assets/base-realm-Chjzrp6m.js +2 -0
- package/bundled-test-harness/assets/base-realm-DpSTsZxD.js +140 -0
- package/bundled-test-harness/assets/basic-test-D7qEz4hw.js +128 -0
- package/bundled-test-harness/assets/bfm-card-references-test-D-m1YnL8.js +577 -0
- package/bundled-test-harness/assets/binary-upload-dedupe-test-8RKK73EG.js +308 -0
- package/bundled-test-harness/assets/blockDiagram-GPEHLZMM-BdVFTa2C.js +4355 -0
- package/bundled-test-harness/assets/bot-registration-test-9zYny2wR.js +99 -0
- package/bundled-test-harness/assets/box-test-0T92xi3A.js +51 -0
- package/bundled-test-harness/assets/brand-guide-attachments-test-5ZtPn4cC.js +87 -0
- package/bundled-test-harness/assets/brand-guide-custom-css-test-CKKSgKyp.js +135 -0
- package/bundled-test-harness/assets/brand-logo-mark-field-test-nlNNQ3rw.js +87 -0
- package/bundled-test-harness/assets/broken-link-template-test-BGIExVof.js +345 -0
- package/bundled-test-harness/assets/browser-index-BaR-gTqG.js +3 -0
- package/bundled-test-harness/assets/browser-index-G4NKYBAj.js +8802 -0
- package/bundled-test-harness/assets/c4Diagram-AAUBKEIU-DyugX7zz.js +3764 -0
- package/bundled-test-harness/assets/cached-fetch-test-MtqvDphJ.js +93 -0
- package/bundled-test-harness/assets/can-read-realm-test-BZmwIOqS.js +58 -0
- package/bundled-test-harness/assets/cancel-indexing-job-test-BsQtQbDu.js +71 -0
- package/bundled-test-harness/assets/card-api-test-BxQ8f0-c.js +196 -0
- package/bundled-test-harness/assets/card-basics-test-B-uBZ8o4.js +4895 -0
- package/bundled-test-harness/assets/card-catalog-test-YmwmyIKf.js +377 -0
- package/bundled-test-harness/assets/card-copy-test-LoqdH1CQ.js +777 -0
- package/bundled-test-harness/assets/card-def-field-def-relationships-test-DvtBA1jv.js +560 -0
- package/bundled-test-harness/assets/card-def-menu-items-test-DHnd0LuM.js +182 -0
- package/bundled-test-harness/assets/card-delete-test-vKF0Jf1X.js +412 -0
- package/bundled-test-harness/assets/card-directory-name-test-CbCuPwSz.js +71 -0
- package/bundled-test-harness/assets/card-playground-test-CRIP3b5-.js +1497 -0
- package/bundled-test-harness/assets/card-prerender-ClYlSOBU.js +12661 -0
- package/bundled-test-harness/assets/card-search-adorn-test-Mggk5ZgY.js +128 -0
- package/bundled-test-harness/assets/card-search-query-builder-test-Cdl12s50.js +88 -0
- package/bundled-test-harness/assets/card-search-selection-menu-test-CtuCCLoB.js +108 -0
- package/bundled-test-harness/assets/channel-BKUMepxs.js +8 -0
- package/bundled-test-harness/assets/check-correctness-test-DBh8DT_f.js +252 -0
- package/bundled-test-harness/assets/chunk-2J33WTMH-ClrRoNQU.js +31 -0
- package/bundled-test-harness/assets/chunk-3OPIFGDE-g_0Oh8jN.js +5548 -0
- package/bundled-test-harness/assets/chunk-4BX2VUAB-D2LCc7Y9.js +11 -0
- package/bundled-test-harness/assets/chunk-4EGX6M5U-D8vRS5IG.js +44 -0
- package/bundled-test-harness/assets/chunk-55IACEB6-C5j4VAmb.js +10 -0
- package/bundled-test-harness/assets/chunk-5DO6E6H7-CPb3jsP0.js +27 -0
- package/bundled-test-harness/assets/chunk-5ZQYHXKU-BlVb7vgG.js +1767 -0
- package/bundled-test-harness/assets/chunk-727SXJPM-C_NVCDMC.js +3877 -0
- package/bundled-test-harness/assets/chunk-AQP2D5EJ-CpwrMix_.js +2622 -0
- package/bundled-test-harness/assets/chunk-BR22UD5L-AF0NWdjT.js +85 -0
- package/bundled-test-harness/assets/chunk-BSJP7CBP-Dgun5vYb.js +114 -0
- package/bundled-test-harness/assets/chunk-CSCIHK7Q-D7nFiAZ-.js +6144 -0
- package/bundled-test-harness/assets/chunk-FHYWG6QK-2nuXS9PL.js +27 -0
- package/bundled-test-harness/assets/chunk-FMBD7UC4-O-Y8VK1S.js +20 -0
- package/bundled-test-harness/assets/chunk-KSCS5N6A-Du5-DprU.js +871 -0
- package/bundled-test-harness/assets/chunk-L5ZTLDWV-C2lDtkix.js +43 -0
- package/bundled-test-harness/assets/chunk-LZXEDZCA-qAMsMZkF.js +65 -0
- package/bundled-test-harness/assets/chunk-MPE355IW-DcT_60Oq.js +27 -0
- package/bundled-test-harness/assets/chunk-MZUSXYTE-BsH_YmnC.js +36 -0
- package/bundled-test-harness/assets/chunk-N66VUXT2-DMyMHgoS.js +70 -0
- package/bundled-test-harness/assets/chunk-ND2GUHAM-DO1Znn8O.js +93 -0
- package/bundled-test-harness/assets/chunk-NZK2D7GU-B1YWBxHm.js +89 -0
- package/bundled-test-harness/assets/chunk-O5CBEL6O-CZVSBsRq.js +2395 -0
- package/bundled-test-harness/assets/chunk-PUPMXCY4-DzOK-Vbt.js +27 -0
- package/bundled-test-harness/assets/chunk-QZHKN3VN-DJFnRn99.js +20 -0
- package/bundled-test-harness/assets/chunk-UIBZB4QT-5KIxBxjk.js +27 -0
- package/bundled-test-harness/assets/chunk-WCWK7LTN-BsQwhliq.js +36 -0
- package/bundled-test-harness/assets/chunk-WU5MYG2G-DUVb5MAo.js +12 -0
- package/bundled-test-harness/assets/chunk-XPW4576I-DLaJYAOU.js +2341 -0
- package/bundled-test-harness/assets/classDiagram-4FO5ZUOK-DjP2uozG.js +31 -0
- package/bundled-test-harness/assets/classDiagram-v2-Q7XG4LA2-Dt6ps5uz.js +31 -0
- package/bundled-test-harness/assets/code-equality-assertion-BBezFT13.js +474 -0
- package/bundled-test-harness/assets/code-patches-test-DzoQGARM.js +1128 -0
- package/bundled-test-harness/assets/code-patching-test-D8r-pJ5w.js +114 -0
- package/bundled-test-harness/assets/code-ref-test-DU3HChNz.js +138 -0
- package/bundled-test-harness/assets/code-semantics-service-test-DArUotKy.js +65 -0
- package/bundled-test-harness/assets/code-submode-test-h5wWKsz2.js +1762 -0
- package/bundled-test-harness/assets/codeblocks-test-FbuwTy5v.js +492 -0
- package/bundled-test-harness/assets/codemirror-context-DVlC9C78.js +2 -0
- package/bundled-test-harness/assets/codemirror-editor-test-JDT9uwqM.js +1176 -0
- package/bundled-test-harness/assets/color-field-test-BssRlQAX.js +213 -0
- package/bundled-test-harness/assets/command-definitions-test-J21kOxBs.js +72 -0
- package/bundled-test-harness/assets/commands-DAo0DgCX.js +1379 -0
- package/bundled-test-harness/assets/commands-calling-test-C3deVvv_.js +200 -0
- package/bundled-test-harness/assets/commands-test--0zViqs2.js +1041 -0
- package/bundled-test-harness/assets/commands-test-BwNn2npL.js +1145 -0
- package/bundled-test-harness/assets/computed-test-BD_KrZmc.js +882 -0
- package/bundled-test-harness/assets/container-C8gu0I0Q.js +14605 -0
- package/bundled-test-harness/assets/convert-to-class-name-test-CX21VRzM.js +17 -0
- package/bundled-test-harness/assets/copy-and-edit-test-BUy_o8XJ.js +291 -0
- package/bundled-test-harness/assets/copy-card-test-LWbugEPe.js +156 -0
- package/bundled-test-harness/assets/copy-file-to-realm-test-BS25EUGV.js +99 -0
- package/bundled-test-harness/assets/copy-source-test-Dh33cqM8.js +56 -0
- package/bundled-test-harness/assets/cose-bilkent-S5V4N54A-CjAFDdpS.js +4275 -0
- package/bundled-test-harness/assets/create-file-test-DOc3YYij.js +963 -0
- package/bundled-test-harness/assets/create-file-test-DgUya7-i.js +397 -0
- package/bundled-test-harness/assets/create-listing-modal-test-DZxZBYS7.js +194 -0
- package/bundled-test-harness/assets/create-listing-pr-request-Aw0ms76l.js +64 -0
- package/bundled-test-harness/assets/create-listing-pr-request-test-CFvqkgky.js +117 -0
- package/bundled-test-harness/assets/create-spec-test-BTRt8oe8.js +239 -0
- package/bundled-test-harness/assets/csv-file-def-test-BVffg8wL.js +101 -0
- package/bundled-test-harness/assets/dagre-BM42HDAG-GoRrN65x.js +606 -0
- package/bundled-test-harness/assets/dagre-ByxOOmYM.js +4195 -0
- package/bundled-test-harness/assets/date-time-fields-test-BEcfCqgB.js +322 -0
- package/bundled-test-harness/assets/debug-message-test-CAxbe6x2.js +119 -0
- package/bundled-test-harness/assets/diagram-2AECGRRQ-B6-pvp9H.js +279 -0
- package/bundled-test-harness/assets/diagram-5GNKFQAL-C9M7hXIc.js +142 -0
- package/bundled-test-harness/assets/diagram-KO2AKTUF-BNJvCLGK.js +551 -0
- package/bundled-test-harness/assets/diagram-LMA3HP47-hlJyTtqP.js +184 -0
- package/bundled-test-harness/assets/diagram-OG6HWLK6-BvPoB3IH.js +857 -0
- package/bundled-test-harness/assets/diffing-test-De9Ev_Fr.js +210 -0
- package/bundled-test-harness/assets/dist-BsEojs3T.js +232 -0
- package/bundled-test-harness/assets/dist-CY3T64Hs.js +105 -0
- package/bundled-test-harness/assets/dist-q2xz8RMj.js +2 -0
- package/bundled-test-harness/assets/editor-test-DOI_TvWQ.js +551 -0
- package/bundled-test-harness/assets/editor.main-CpuM6HrX.js +43566 -0
- package/bundled-test-harness/assets/editor.main-DkMgS1qm.js +3 -0
- package/bundled-test-harness/assets/email-field-test-t-80Z94b.js +74 -0
- package/bundled-test-harness/assets/enum-field-test-DVp-2pip.js +909 -0
- package/bundled-test-harness/assets/erDiagram-TEJ5UH35-CYniRkua.js +2041 -0
- package/bundled-test-harness/assets/error-display-test-IuRxKyLz.js +343 -0
- package/bundled-test-harness/assets/evaluate-module-test-DdnfbFp-.js +66 -0
- package/bundled-test-harness/assets/eventmodeling-FCH6USID-BO089-Cs.js +3 -0
- package/bundled-test-harness/assets/execute-atomic-operations-test-CgbvrBlu.js +75 -0
- package/bundled-test-harness/assets/externals-5atxeNU4.js +5533 -0
- package/bundled-test-harness/assets/extract-css-variables-test-Cii-CYfc.js +169 -0
- package/bundled-test-harness/assets/fallback-banner-test-CUUd-Wuu.js +227 -0
- package/bundled-test-harness/assets/fallback-banner-test-D4NWyahM.js +53 -0
- package/bundled-test-harness/assets/fallback-models-test-2MJ1jAs8.js +163 -0
- package/bundled-test-harness/assets/fetch-card-json-test-Cruqsq6S.js +63 -0
- package/bundled-test-harness/assets/fetcher-test-CkHlbTzz.js +85 -0
- package/bundled-test-harness/assets/field-configuration-test-CqwsGNib.js +535 -0
- package/bundled-test-harness/assets/field-markdown-domain-test-DPjz8i4Y.js +615 -0
- package/bundled-test-harness/assets/field-markdown-primitives-test-Dw07UtT7.js +362 -0
- package/bundled-test-harness/assets/field-markdown-specialized-test-C-t34PAw.js +527 -0
- package/bundled-test-harness/assets/field-path-parser-test-BeNjacPu.js +387 -0
- package/bundled-test-harness/assets/field-playground-test-BILTGxqr.js +902 -0
- package/bundled-test-harness/assets/field-support-predicates-test-Df24w0Wa.js +170 -0
- package/bundled-test-harness/assets/field-test-helpers-P22hxBNz.js +45 -0
- package/bundled-test-harness/assets/file-attachment-test-Cjg4NBeM.js +635 -0
- package/bundled-test-harness/assets/file-chooser-test-Cl0XujPT.js +439 -0
- package/bundled-test-harness/assets/file-def-live-reload-test-D4Obzi12.js +50 -0
- package/bundled-test-harness/assets/file-def-manager-DUgR-gjs.js +470 -0
- package/bundled-test-harness/assets/file-def-manager-canonicalize-test-D_LWVsvz.js +451 -0
- package/bundled-test-harness/assets/file-def-menu-items-test-xvsUTOK4.js +114 -0
- package/bundled-test-harness/assets/file-def-navigation-test-DxPceB7E.js +109 -0
- package/bundled-test-harness/assets/file-def-serialization-test-CpwbDb8p.js +87 -0
- package/bundled-test-harness/assets/file-def-test-CEnKcvW9.js +219 -0
- package/bundled-test-harness/assets/file-tree-test-DE2aH6iq.js +773 -0
- package/bundled-test-harness/assets/flac-audio-def-test-BCg7LnR6.js +138 -0
- package/bundled-test-harness/assets/flowDiagram-I6XJVG4X-Xv8-LIxQ.js +4883 -0
- package/bundled-test-harness/assets/formatted-aibot-message-test-CsxFn62P.js +366 -0
- package/bundled-test-harness/assets/formatted-user-message-test-DjZc8qnA.js +43 -0
- package/bundled-test-harness/assets/freestyle-test-QEZaZCNJ.js +17 -0
- package/bundled-test-harness/assets/full-reindex-realm-test-C_c2OTTD.js +103 -0
- package/bundled-test-harness/assets/ganttDiagram-6RSMTGT7-DmvkzS5w.js +4060 -0
- package/bundled-test-harness/assets/garbage-collection-test-BVuvfidI.js +373 -0
- package/bundled-test-harness/assets/general-test-Ydis4jEq.js +926 -0
- package/bundled-test-harness/assets/generate-css-variables-test-CZCmgTAO.js +88 -0
- package/bundled-test-harness/assets/generate-example-cards-one-shot-test-x_szhkSN.js +67 -0
- package/bundled-test-harness/assets/get-available-realm-identifiers-test-DvRnwCHR.js +49 -0
- package/bundled-test-harness/assets/get-catalog-realm-identifiers-test-46TE-XA0.js +49 -0
- package/bundled-test-harness/assets/get-default-writable-realm-test-DaAkxTNh.js +56 -0
- package/bundled-test-harness/assets/get-realm-of-resource-identifier-test-9XEGHVOV.js +55 -0
- package/bundled-test-harness/assets/get-relationship-membership-state-test-BY4gk5JZ.js +1306 -0
- package/bundled-test-harness/assets/get-type-refs-from-filter-test-BynlX0JE.js +136 -0
- package/bundled-test-harness/assets/get-user-system-card-test-D98Xxn1k.js +52 -0
- package/bundled-test-harness/assets/gif-image-def-test-FwKGFGWw.js +161 -0
- package/bundled-test-harness/assets/gitGraph-WXDBUCRP-Bmn0Z_Xi.js +3 -0
- package/bundled-test-harness/assets/gitGraphDiagram-PVQCEYII-BAo0G82W.js +1150 -0
- package/bundled-test-harness/assets/gts-file-def-test-ivEk8Muv.js +99 -0
- package/bundled-test-harness/assets/head-format-preview-test-CNhvk724.js +156 -0
- package/bundled-test-harness/assets/helpers-BH4Yfo_2.js +5 -0
- package/bundled-test-harness/assets/host-mode-test-BRNndb2h.js +391 -0
- package/bundled-test-harness/assets/host-submode-test-DHd0x-6x.js +904 -0
- package/bundled-test-harness/assets/index-query-engine-test-7Fzc09fG.js +2548 -0
- package/bundled-test-harness/assets/index-writer-test-D3cL2q2N.js +1842 -0
- package/bundled-test-harness/assets/indexeddb-crypto-store-C09Shau-.js +49434 -0
- package/bundled-test-harness/assets/info-J43DQDTF-Dz5b1Xgc.js +3 -0
- package/bundled-test-harness/assets/infoDiagram-5YYISTIA-Dl8XvIfi.js +23 -0
- package/bundled-test-harness/assets/inspector-test-CVZVQdIJ.js +1776 -0
- package/bundled-test-harness/assets/instance-filter-matcher-test-C-4z6qUt.js +564 -0
- package/bundled-test-harness/assets/instantiate-card-test-eQ22Vt_m.js +104 -0
- package/bundled-test-harness/assets/interact-submode-creation-and-permissions-test-hXPsRPMU.js +497 -0
- package/bundled-test-harness/assets/interact-submode-setup-D55IIVc5.js +558 -0
- package/bundled-test-harness/assets/interact-submode-test-BwrtFe2m.js +725 -0
- package/bundled-test-harness/assets/invalidate-realm-identifiers-test-BMk7yd-D.js +101 -0
- package/bundled-test-harness/assets/invite-user-to-room-test-B5B0umJQ.js +67 -0
- package/bundled-test-harness/assets/ishikawaDiagram-YF4QCWOH-BrO7NAng.js +1009 -0
- package/bundled-test-harness/assets/isolated-render-test-DX1wdHoS.js +51 -0
- package/bundled-test-harness/assets/item-button-QkVr-FW0.js +203 -0
- package/bundled-test-harness/assets/javascript-BWNQhcCY.js +75 -0
- package/bundled-test-harness/assets/job-priority-header-test-CuBZloLK.js +81 -0
- package/bundled-test-harness/assets/journeyDiagram-JHISSGLW-B7BT66v0.js +1256 -0
- package/bundled-test-harness/assets/jpg-image-def-test-DEx462nY.js +430 -0
- package/bundled-test-harness/assets/json-file-def-test-Cray6ly6.js +92 -0
- package/bundled-test-harness/assets/kanban-definition-UN3LZRKU-C0E5Vmr_.js +1284 -0
- package/bundled-test-harness/assets/last-modified-date-test-BzE25NOB.js +18 -0
- package/bundled-test-harness/assets/limited-set-test-NwGNoXKc.js +123 -0
- package/bundled-test-harness/assets/line-BbGOk93s.js +55 -0
- package/bundled-test-harness/assets/linear-CHTo-YQl.js +417 -0
- package/bundled-test-harness/assets/linksto-broken-link-placeholder-test-CZdgRM1b.js +315 -0
- package/bundled-test-harness/assets/linksto-error-sentinel-test-DhsHO7Xs.js +236 -0
- package/bundled-test-harness/assets/linksto-many-broken-link-placeholder-test-mt-RrRta.js +303 -0
- package/bundled-test-harness/assets/linksto-many-per-slot-access-test-CdGUXZsi.js +301 -0
- package/bundled-test-harness/assets/linksto-sentinel-roundtrip-test-DOJ_6Gwf.js +258 -0
- package/bundled-test-harness/assets/linksto-singular-js-access-contract-test-BZC-gslF.js +194 -0
- package/bundled-test-harness/assets/live-prerendered-search-BSkwf5AH.js +639 -0
- package/bundled-test-harness/assets/live-test-DTfxZnsy.js +100 -0
- package/bundled-test-harness/assets/live-test-WOMYpc1I.js +2 -0
- package/bundled-test-harness/assets/loader-icon-error-test-F_ukQytn.js +62 -0
- package/bundled-test-harness/assets/loader-parallel-prefetch-test-DpNaFnhc.js +257 -0
- package/bundled-test-harness/assets/loader-retry-test-EQ2X0bFS.js +173 -0
- package/bundled-test-harness/assets/loader-test-BYkWAwc4.js +245 -0
- package/bundled-test-harness/assets/loading-test-jfWH_OpH.js +63 -0
- package/bundled-test-harness/assets/login-error-text-test-Cldr1X6h.js +51 -0
- package/bundled-test-harness/assets/m4a-audio-def-test-BQ1WKApD.js +185 -0
- package/bundled-test-harness/assets/main-ByAsLO_g.js +5 -0
- package/bundled-test-harness/assets/markdown-fallback-test-dtTaGP1s.js +316 -0
- package/bundled-test-harness/assets/markdown-file-def-test-shW9Xxd1.js +286 -0
- package/bundled-test-harness/assets/markdown-helpers-test-B6H7p4ay.js +183 -0
- package/bundled-test-harness/assets/markdown-highlighting-test-ZIrFNHRe.js +244 -0
- package/bundled-test-harness/assets/markdown-preview-KII3nJ2M.js +69 -0
- package/bundled-test-harness/assets/markdown-preview-test-De-IaUbK.js +237 -0
- package/bundled-test-harness/assets/marked-sync-CGSehq4u.js +2 -0
- package/bundled-test-harness/assets/marked-sync-DenC7QgC.js +2561 -0
- package/bundled-test-harness/assets/marked-sync-test-jZBr20Hq.js +146 -0
- package/bundled-test-harness/assets/matrix-service-sliding-sync-test-Ax4kyAMt.js +33 -0
- package/bundled-test-harness/assets/mermaid-parser.core-B_3tzKUl.js +114 -0
- package/bundled-test-harness/assets/mermaid.core-D2hqA7Hq.js +1700 -0
- package/bundled-test-harness/assets/message-service-subscription-test-B42KnJ91.js +113 -0
- package/bundled-test-harness/assets/mindmap-definition-RKZ34NQL-IZz7Qpd0.js +1347 -0
- package/bundled-test-harness/assets/mock-matrix-BhFWlMMr.js +14292 -0
- package/bundled-test-harness/assets/mock-matrix-CrtMntcN.js +2 -0
- package/bundled-test-harness/assets/module-transpile-cache-test-BtWN4OiM.js +66 -0
- package/bundled-test-harness/assets/monaco.contribution-B1hOUP3w.js +2 -0
- package/bundled-test-harness/assets/monaco.contribution-DhNsYtZe.js +2 -0
- package/bundled-test-harness/assets/monaco.contribution-DvJDImx2.js +103 -0
- package/bundled-test-harness/assets/monaco.contribution-yXcOyzue.js +243 -0
- package/bundled-test-harness/assets/mp3-audio-def-test-D365TuA7.js +129 -0
- package/bundled-test-harness/assets/mutex-test-DY09HLvv.js +71 -0
- package/bundled-test-harness/assets/number-field-test-wYaQjnzA.js +153 -0
- package/bundled-test-harness/assets/ogg-audio-def-test-Dl01PP31.js +191 -0
- package/bundled-test-harness/assets/open-create-listing-modal-test-D8C2PUFv.js +117 -0
- package/bundled-test-harness/assets/open-workspace-test-DN2n8IkC.js +48 -0
- package/bundled-test-harness/assets/operator-mode-acceptance-test-B_hzJZo4.js +1044 -0
- package/bundled-test-harness/assets/operator-mode-card-catalog-test-Hrrnkdt9.js +989 -0
- package/bundled-test-harness/assets/operator-mode-links-test-DC6sc9TZ.js +797 -0
- package/bundled-test-harness/assets/operator-mode-state-service-test-Aqz9_v0U.js +122 -0
- package/bundled-test-harness/assets/operator-mode-test-CLgpZGEM.js +617 -0
- package/bundled-test-harness/assets/operator-mode-ui-test-CDRrORfC.js +985 -0
- package/bundled-test-harness/assets/ordinal-BIRuJQBH.js +85 -0
- package/bundled-test-harness/assets/overlay-menu-items-test-of24KuXp.js +316 -0
- package/bundled-test-harness/assets/packet-YPE3B663-hs92geQG.js +3 -0
- package/bundled-test-harness/assets/panel-rIdTMDfK.js +3371 -0
- package/bundled-test-harness/assets/past-sessions-test-ZKr4ACF0.js +321 -0
- package/bundled-test-harness/assets/patch-code-test-BZa-Itrt.js +203 -0
- package/bundled-test-harness/assets/patch-fields-test-BkaHs-zo.js +992 -0
- package/bundled-test-harness/assets/patch-instance-test-CRMgg52p.js +287 -0
- package/bundled-test-harness/assets/persist-module-inspector-view-test-CqNy2RXR.js +62 -0
- package/bundled-test-harness/assets/phone-number-field-test-CV6gntON.js +72 -0
- package/bundled-test-harness/assets/pie-LRSECV5Y-DcM5pWE3.js +3 -0
- package/bundled-test-harness/assets/pieDiagram-4H26LBE5-CtO8RHpU.js +253 -0
- package/bundled-test-harness/assets/plan-install-test-lfBTuWXU.js +417 -0
- package/bundled-test-harness/assets/playground-VscW9KdT.js +57 -0
- package/bundled-test-harness/assets/png-image-def-test-CRspcIHP.js +222 -0
- package/bundled-test-harness/assets/prerender-file-extract-test-D3SpxfMI.js +176 -0
- package/bundled-test-harness/assets/prerender-html-test-WWptGXJ0.js +615 -0
- package/bundled-test-harness/assets/prerender-meta-test-DwQEGN6j.js +388 -0
- package/bundled-test-harness/assets/prerender-module-test-BM1AOwRF.js +195 -0
- package/bundled-test-harness/assets/prerendered-card-search-test-BVJ8IHLe.js +708 -0
- package/bundled-test-harness/assets/preview-format-test-DDpiXDN_.js +103 -0
- package/bundled-test-harness/assets/preview-test-D2UV1C5D.js +455 -0
- package/bundled-test-harness/assets/published-realm-url-DUIZzAJ5.js +52 -0
- package/bundled-test-harness/assets/published-realm-url-test-CIgSf4Ub.js +137 -0
- package/bundled-test-harness/assets/qs-test-Bi679H5w.js +36 -0
- package/bundled-test-harness/assets/quadrantDiagram-W4KKPZXB-GOTAKsCo.js +2324 -0
- package/bundled-test-harness/assets/query-field-barrier-test-BlOuVxdS.js +118 -0
- package/bundled-test-harness/assets/query-field-error-sentinel-test-BsB76iUQ.js +202 -0
- package/bundled-test-harness/assets/query-field-normalization-test-B2YodJCr.js +271 -0
- package/bundled-test-harness/assets/query-field-schema-test-CQhJASFx.js +231 -0
- package/bundled-test-harness/assets/query-fields-test-CaZ19leM.js +535 -0
- package/bundled-test-harness/assets/queue-test-DrSip6mJ.js +216 -0
- package/bundled-test-harness/assets/radar-GUYGQ44K-BkAe1nkp.js +3 -0
- package/bundled-test-harness/assets/read-card-for-ai-assistant-test-D8yB-OL9.js +91 -0
- package/bundled-test-harness/assets/read-file-for-ai-assistant-test-K3M0-lBD.js +45 -0
- package/bundled-test-harness/assets/read-source-test-CKlb0ORb.js +67 -0
- package/bundled-test-harness/assets/read-text-file-test-CJdasDDU.js +124 -0
- package/bundled-test-harness/assets/realm-DhUCLR5r.js +884 -0
- package/bundled-test-harness/assets/realm-field-test-kFgxphDI.js +101 -0
- package/bundled-test-harness/assets/realm-index-card-id-test-DAnMAqw4.js +18 -0
- package/bundled-test-harness/assets/realm-indexing-test-BQkX-Dat.js +4018 -0
- package/bundled-test-harness/assets/realm-paths-test-CmEi9rzu.js +33 -0
- package/bundled-test-harness/assets/realm-querying-test-eq3qSXLu.js +1062 -0
- package/bundled-test-harness/assets/realm-test-DLQAtdMt.js +2409 -0
- package/bundled-test-harness/assets/reasoning-test-CwTfyDlj.js +234 -0
- package/bundled-test-harness/assets/recent-files-test-MVIGLp8S.js +449 -0
- package/bundled-test-harness/assets/reindex-realm-test-BwLgJeB3.js +119 -0
- package/bundled-test-harness/assets/relationship-loading-state-test-B4Ca43yD.js +289 -0
- package/bundled-test-harness/assets/render-component-BKEihV4U.js +2 -0
- package/bundled-test-harness/assets/render-error-test-DWD6tfNe.js +22 -0
- package/bundled-test-harness/assets/render-service-test-BjuoVrUK.js +87 -0
- package/bundled-test-harness/assets/render-timer-stub-test-BgUY5u3X.js +84 -0
- package/bundled-test-harness/assets/rendered-markdown-DOP-s6fW.js +211 -0
- package/bundled-test-harness/assets/rendered-markdown-test-CD02UYwA.js +360 -0
- package/bundled-test-harness/assets/requirementDiagram-4Y6WPE33-DJIy7eR9.js +2550 -0
- package/bundled-test-harness/assets/rich-markdown-field-test-BJeQx1tL.js +806 -0
- package/bundled-test-harness/assets/room-message-test-CjD7FlPD.js +171 -0
- package/bundled-test-harness/assets/rust-crypto-GS0FFZ7H.js +16141 -0
- package/bundled-test-harness/assets/sanitize-module-list-test-gi0pcqSy.js +68 -0
- package/bundled-test-harness/assets/sankeyDiagram-5OEKKPKP-wBsbt1Mr.js +1357 -0
- package/bundled-test-harness/assets/schema-editor-test-BSqu8W3e.js +784 -0
- package/bundled-test-harness/assets/schema-generation-test-DVFuSsLl.js +28 -0
- package/bundled-test-harness/assets/scrolling-test-CpzkRiBS.js +292 -0
- package/bundled-test-harness/assets/search-and-choose-test-DVWX4XRb.js +156 -0
- package/bundled-test-harness/assets/search-cache-key-test-BMnYM4a5.js +79 -0
- package/bundled-test-harness/assets/search-command-test-kEfT0AO7.js +135 -0
- package/bundled-test-harness/assets/search-correlation-id-test-D08FtVUZ.js +101 -0
- package/bundled-test-harness/assets/search-data-test-CTrBEc1m.js +243 -0
- package/bundled-test-harness/assets/search-google-images-test-UnKG8qCp.js +168 -0
- package/bundled-test-harness/assets/search-in-flight-key-test-9Va-JXFz.js +79 -0
- package/bundled-test-harness/assets/search-test-COlO2lZi.js +847 -0
- package/bundled-test-harness/assets/send-ai-assistant-message-test-BPjOjt2R.js +52 -0
- package/bundled-test-harness/assets/send-bot-trigger-event-test-BB4lHbB_.js +56 -0
- package/bundled-test-harness/assets/send-request-via-proxy-test-U8frmHZA.js +333 -0
- package/bundled-test-harness/assets/sending-test-DjEzksEX.js +317 -0
- package/bundled-test-harness/assets/sequenceDiagram-3UESZ5HK-QAEjhoay.js +5551 -0
- package/bundled-test-harness/assets/serialization-test-DHdLriC8.js +8283 -0
- package/bundled-test-harness/assets/set-user-system-card-test-C8I1lDBh.js +59 -0
- package/bundled-test-harness/assets/setup-BkuybBki.js +769 -0
- package/bundled-test-harness/assets/setup-gxkWJKID.js +2 -0
- package/bundled-test-harness/assets/show-card-test-DHKQ6AI4.js +362 -0
- package/bundled-test-harness/assets/skills-test-DlMgZrPV.js +568 -0
- package/bundled-test-harness/assets/spec-test-s9Zj7x2E.js +1012 -0
- package/bundled-test-harness/assets/stateDiagram-AJRCARHV-nEhf3efZ.js +363 -0
- package/bundled-test-harness/assets/stateDiagram-v2-BHNVJYJU-tZz_3w-7.js +29 -0
- package/bundled-test-harness/assets/store-add-test-D44FWRl3.js +52 -0
- package/bundled-test-harness/assets/store-test-TTmNBs5v.js +1562 -0
- package/bundled-test-harness/assets/summarize-session-test-DHAuNb5K.js +169 -0
- package/bundled-test-harness/assets/svg-image-def-test-C2_GGzR6.js +164 -0
- package/bundled-test-harness/assets/switch-submode-test-CfGaoxVe.js +168 -0
- package/bundled-test-harness/assets/test-realm-service-worker-C21o7yvW.js +73 -0
- package/bundled-test-harness/assets/tests-BSt6h9iC.js +2771 -0
- package/bundled-test-harness/assets/text-file-def-test-CR4QO7e_.js +93 -0
- package/bundled-test-harness/assets/text-input-validator-test-DYS3mFj9.js +155 -0
- package/bundled-test-harness/assets/text-suggestion-test-GUxJ7WtF.js +339 -0
- package/bundled-test-harness/assets/theme-card-test-Ba2KqFB8.js +573 -0
- package/bundled-test-harness/assets/timeline-definition-PNZ67QCA-BQYyTIei.js +1545 -0
- package/bundled-test-harness/assets/transform-cards-test-DyA8eCom.js +341 -0
- package/bundled-test-harness/assets/treeView-BLDUP644-Z4ezSvef.js +3 -0
- package/bundled-test-harness/assets/treemap-LRROVOQU-Bf5rk_He.js +3 -0
- package/bundled-test-harness/assets/ts-file-def-test-Cxnc6H74.js +90 -0
- package/bundled-test-harness/assets/tsMode-oJEHe-CR.js +968 -0
- package/bundled-test-harness/assets/typescript-DLbb7q56.js +2 -0
- package/bundled-test-harness/assets/update-room-skills-test-B7VLHU3-.js +197 -0
- package/bundled-test-harness/assets/url-test-w-69Zycf.js +103 -0
- package/bundled-test-harness/assets/use-ai-assistant-test-DJkFz7_b.js +330 -0
- package/bundled-test-harness/assets/validate-realm-test-BioLutB8.js +53 -0
- package/bundled-test-harness/assets/vennDiagram-CIIHVFJN-9eLwsQET.js +2833 -0
- package/bundled-test-harness/assets/wardley-L42UT6IY-qNP5_917.js +3 -0
- package/bundled-test-harness/assets/wardleyDiagram-YWT4CUSO-DZhEm4N4.js +872 -0
- package/bundled-test-harness/assets/wav-audio-def-test-DqsTEBw8.js +155 -0
- package/bundled-test-harness/assets/webp-image-def-test-23wOLPMu.js +225 -0
- package/bundled-test-harness/assets/workspace-chooser-delete-test-Q6S_nGDT.js +189 -0
- package/bundled-test-harness/assets/workspace-chooser-test-CzsvY1v_.js +235 -0
- package/bundled-test-harness/assets/workspace-delete-multiple-test-BNFHkJpQ.js +213 -0
- package/bundled-test-harness/assets/workspace-delete-summary-test-DLzNdjvC.js +63 -0
- package/bundled-test-harness/assets/write-binary-file-test-PHHt9fVI.js +100 -0
- package/bundled-test-harness/assets/write-text-file-test-DuHe6tR5.js +172 -0
- package/bundled-test-harness/assets/xychartDiagram-2RQKCTM6-bflHQbEv.js +2551 -0
- package/bundled-test-harness/index.html +24 -23
- package/bundled-test-harness/tests/index.html +31 -30
- package/bundled-types/base/command.d.ts +48 -0
- package/bundled-types/host-app/components/operator-mode/publish-realm-modal.gts +17 -26
- package/bundled-types/host-app/lib/published-realm-url.ts +135 -0
- package/package.json +2 -2
- package/src/build-program.ts +12 -12
- package/src/commands/consolidate-workspaces.ts +1 -1
- package/src/commands/file/delete.ts +4 -4
- package/src/commands/file/index.ts +6 -6
- package/src/commands/file/lint.ts +4 -4
- package/src/commands/file/list.ts +3 -3
- package/src/commands/file/read.ts +3 -3
- package/src/commands/file/touch.ts +6 -6
- package/src/commands/file/write.ts +3 -3
- package/src/commands/lint.ts +6 -6
- package/src/commands/parse.ts +6 -6
- package/src/commands/profile.ts +4 -4
- package/src/commands/read-transpiled.ts +6 -3
- package/src/commands/realm/cancel-indexing.ts +3 -3
- package/src/commands/realm/create.ts +2 -2
- package/src/commands/realm/history.ts +4 -4
- package/src/commands/realm/index.ts +15 -15
- package/src/commands/realm/indexing-errors.ts +3 -3
- package/src/commands/realm/list.ts +2 -2
- package/src/commands/realm/milestone.ts +4 -4
- package/src/commands/realm/publish.ts +4 -4
- package/src/commands/realm/pull.ts +6 -6
- package/src/commands/realm/push.ts +7 -7
- package/src/commands/realm/remove.ts +3 -3
- package/src/commands/realm/status.ts +8 -8
- package/src/commands/realm/sync.ts +9 -9
- package/src/commands/realm/unpublish.ts +3 -3
- package/src/commands/realm/wait-for-ready.ts +2 -2
- package/src/commands/realm/watch/index.ts +2 -2
- package/src/commands/realm/watch/start.ts +13 -10
- package/src/commands/realm/watch/stop.ts +2 -2
- package/src/commands/run-command.ts +6 -3
- package/src/commands/search.ts +3 -3
- package/src/commands/test.ts +5 -5
- package/src/index.ts +2 -2
- package/src/lib/auth-resolver.ts +3 -3
- package/src/lib/boxel-cli-client.ts +18 -15
- package/src/lib/checkpoint-manager.ts +1 -1
- package/src/lib/find-checkpoint.ts +1 -1
- package/src/lib/profile-manager.ts +4 -4
- package/src/lib/realm-local-paths.ts +1 -1
- package/src/lib/realm-sync-base.ts +1 -1
- package/src/lib/seed-auth.ts +1 -1
- package/src/lib/sync-logic.ts +1 -1
- package/src/lib/watch-process-registry.ts +1 -1
- package/bundled-test-harness/assets/adapter-C8oDflNN.js +0 -2
- package/bundled-test-harness/assets/add-field-to-card-definition-command-test-Cs670972.js +0 -111
- package/bundled-test-harness/assets/add-workspace-test-BviDAUBK.js +0 -71
- package/bundled-test-harness/assets/ai-assistant-B5fp2iOz.js +0 -129
- package/bundled-test-harness/assets/ai-assistant-panel-service-test-NpHZzZAz.js +0 -95
- package/bundled-test-harness/assets/ai-assistant-test-jPV29jEw.js +0 -2137
- package/bundled-test-harness/assets/ai-function-generation-test-QRPcE9tQ.js +0 -996
- package/bundled-test-harness/assets/ai-module-creation-test-DyuyfnkY.js +0 -150
- package/bundled-test-harness/assets/aibot-message-Dwxp5hTW.js +0 -1185
- package/bundled-test-harness/assets/amd-transpile-test-CF7Lkbif.js +0 -425
- package/bundled-test-harness/assets/app-CgP2IpNG.js +0 -21464
- package/bundled-test-harness/assets/apply-boxel-formatting-test-BXyZ3z0I.js +0 -134
- package/bundled-test-harness/assets/apply-markdown-edit-test-C6bcaj3a.js +0 -230
- package/bundled-test-harness/assets/apply-search-replace-block-test-BSwC4J9g.js +0 -630
- package/bundled-test-harness/assets/arc-DNRb_8LA.js +0 -199
- package/bundled-test-harness/assets/architecture-7EHR7CIX-BtVh_LBJ.js +0 -3
- package/bundled-test-harness/assets/architectureDiagram-3BPJPVTR-D9UYbaKj.js +0 -7400
- package/bundled-test-harness/assets/auth-error-guard-test-Bvu8E7Wy.js +0 -30
- package/bundled-test-harness/assets/auth-service-worker-test-CC6DzdfK.js +0 -538
- package/bundled-test-harness/assets/authed-fetch-test-CfF-IBHI.js +0 -75
- package/bundled-test-harness/assets/avif-image-def-test-B9L2z0nR.js +0 -186
- package/bundled-test-harness/assets/base-realm-43wjttN2.js +0 -140
- package/bundled-test-harness/assets/base-realm-CJ5x9iyX.js +0 -2
- package/bundled-test-harness/assets/basic-test-B64a5zCK.js +0 -128
- package/bundled-test-harness/assets/bfm-card-references-test-cLQVLpth.js +0 -577
- package/bundled-test-harness/assets/binary-upload-dedupe-test-By7Y1iQ3.js +0 -308
- package/bundled-test-harness/assets/blockDiagram-GPEHLZMM-LgOorG2O.js +0 -4355
- package/bundled-test-harness/assets/bot-registration-test-DOjf0P1R.js +0 -99
- package/bundled-test-harness/assets/box-test-Cd1-RcXg.js +0 -51
- package/bundled-test-harness/assets/brand-guide-attachments-test-DxRqP8fo.js +0 -87
- package/bundled-test-harness/assets/brand-guide-custom-css-test-DBpZiHzJ.js +0 -135
- package/bundled-test-harness/assets/brand-logo-mark-field-test-61k4e5Om.js +0 -87
- package/bundled-test-harness/assets/broken-link-template-test-A1P4flQ5.js +0 -345
- package/bundled-test-harness/assets/browser-index-Bzhpucwe.js +0 -3
- package/bundled-test-harness/assets/browser-index-D0mzSWYV.js +0 -8802
- package/bundled-test-harness/assets/c4Diagram-AAUBKEIU-1iq94vGa.js +0 -3764
- package/bundled-test-harness/assets/cached-fetch-test-ByQ-5OQI.js +0 -93
- package/bundled-test-harness/assets/can-read-realm-test-VFLHJdEv.js +0 -58
- package/bundled-test-harness/assets/cancel-indexing-job-test-n3Os4ZaX.js +0 -71
- package/bundled-test-harness/assets/card-api-test-DvNfLv3V.js +0 -196
- package/bundled-test-harness/assets/card-basics-test-CKzZuFdw.js +0 -4895
- package/bundled-test-harness/assets/card-catalog-test-JFvkVHED.js +0 -377
- package/bundled-test-harness/assets/card-copy-test-iwrFA72s.js +0 -777
- package/bundled-test-harness/assets/card-def-field-def-relationships-test-D5s2RH5t.js +0 -560
- package/bundled-test-harness/assets/card-def-menu-items-test-XcmkT4NF.js +0 -182
- package/bundled-test-harness/assets/card-delete-test-jtAOHk1Y.js +0 -412
- package/bundled-test-harness/assets/card-directory-name-test-veQEp5FJ.js +0 -71
- package/bundled-test-harness/assets/card-playground-test-P7Ed0tO4.js +0 -1497
- package/bundled-test-harness/assets/card-prerender-DXG8cQEv.js +0 -12661
- package/bundled-test-harness/assets/card-search-adorn-test-BX0-IJHB.js +0 -128
- package/bundled-test-harness/assets/card-search-query-builder-test-D01uixke.js +0 -88
- package/bundled-test-harness/assets/card-search-selection-menu-test-DMTeZFmW.js +0 -108
- package/bundled-test-harness/assets/channel-BvoW_rbI.js +0 -8
- package/bundled-test-harness/assets/check-correctness-test-D7QB1GTo.js +0 -252
- package/bundled-test-harness/assets/chunk-2J33WTMH-BbxCvOlt.js +0 -31
- package/bundled-test-harness/assets/chunk-3OPIFGDE-DHY3s0oT.js +0 -5548
- package/bundled-test-harness/assets/chunk-4BX2VUAB-CRivrLQ6.js +0 -11
- package/bundled-test-harness/assets/chunk-4EGX6M5U-qWzlMeqd.js +0 -44
- package/bundled-test-harness/assets/chunk-55IACEB6-DOl6NECJ.js +0 -10
- package/bundled-test-harness/assets/chunk-5DO6E6H7-scwNnzDb.js +0 -27
- package/bundled-test-harness/assets/chunk-5ZQYHXKU-BeETnugr.js +0 -1767
- package/bundled-test-harness/assets/chunk-727SXJPM-BlycTxFE.js +0 -3877
- package/bundled-test-harness/assets/chunk-AQP2D5EJ-BE3Clw-g.js +0 -2622
- package/bundled-test-harness/assets/chunk-BR22UD5L-BTPKlhWA.js +0 -85
- package/bundled-test-harness/assets/chunk-BSJP7CBP-BIhtUfvc.js +0 -114
- package/bundled-test-harness/assets/chunk-CSCIHK7Q-DnRAp6Bv.js +0 -6144
- package/bundled-test-harness/assets/chunk-FHYWG6QK-DpIXIGDC.js +0 -27
- package/bundled-test-harness/assets/chunk-FMBD7UC4-B36w3LIg.js +0 -20
- package/bundled-test-harness/assets/chunk-KSCS5N6A-gbz9p9BU.js +0 -871
- package/bundled-test-harness/assets/chunk-L5ZTLDWV-HNfH9U8K.js +0 -43
- package/bundled-test-harness/assets/chunk-LZXEDZCA-CbKHJfzx.js +0 -65
- package/bundled-test-harness/assets/chunk-MPE355IW-BGVbCTZH.js +0 -27
- package/bundled-test-harness/assets/chunk-MZUSXYTE-DoCjuxcJ.js +0 -36
- package/bundled-test-harness/assets/chunk-N66VUXT2-BX17MI-i.js +0 -70
- package/bundled-test-harness/assets/chunk-ND2GUHAM-IpeiJZYz.js +0 -93
- package/bundled-test-harness/assets/chunk-NZK2D7GU-CH-Gg7qc.js +0 -89
- package/bundled-test-harness/assets/chunk-O5CBEL6O-D2JbLgI8.js +0 -2395
- package/bundled-test-harness/assets/chunk-PUPMXCY4-DS4ZxM2V.js +0 -27
- package/bundled-test-harness/assets/chunk-QZHKN3VN-WLHeRUJ3.js +0 -20
- package/bundled-test-harness/assets/chunk-UIBZB4QT-DNIJBpkq.js +0 -27
- package/bundled-test-harness/assets/chunk-WCWK7LTN-CqRJ3WOy.js +0 -36
- package/bundled-test-harness/assets/chunk-WU5MYG2G-CtItCLbE.js +0 -12
- package/bundled-test-harness/assets/chunk-XPW4576I-D2Q7Qo8n.js +0 -2341
- package/bundled-test-harness/assets/classDiagram-4FO5ZUOK-CnNFReKQ.js +0 -31
- package/bundled-test-harness/assets/classDiagram-v2-Q7XG4LA2-BlhpbohY.js +0 -31
- package/bundled-test-harness/assets/code-equality-assertion-C-2g5YGf.js +0 -474
- package/bundled-test-harness/assets/code-patches-test-DaV4Mon_.js +0 -1128
- package/bundled-test-harness/assets/code-patching-test-CcbWlImN.js +0 -114
- package/bundled-test-harness/assets/code-ref-test-8Yj8gbww.js +0 -138
- package/bundled-test-harness/assets/code-semantics-service-test-C3srTfDz.js +0 -65
- package/bundled-test-harness/assets/code-submode-test-BUhjvWtB.js +0 -1762
- package/bundled-test-harness/assets/codeblocks-test-3zAp0_GA.js +0 -492
- package/bundled-test-harness/assets/codemirror-context-C7KmSAyy.js +0 -2
- package/bundled-test-harness/assets/codemirror-editor-test-WojU4k2h.js +0 -1176
- package/bundled-test-harness/assets/color-field-test-yESUakoE.js +0 -213
- package/bundled-test-harness/assets/command-definitions-test-UsXsAhn7.js +0 -72
- package/bundled-test-harness/assets/commands-CBDBujm_.js +0 -1379
- package/bundled-test-harness/assets/commands-calling-test-DJTl0EbL.js +0 -200
- package/bundled-test-harness/assets/commands-test-DW2gupNS.js +0 -1041
- package/bundled-test-harness/assets/commands-test-DjLnuojW.js +0 -1145
- package/bundled-test-harness/assets/computed-test-0n5g8Ez5.js +0 -882
- package/bundled-test-harness/assets/container-D8y7fmir.js +0 -14602
- package/bundled-test-harness/assets/convert-to-class-name-test-DSIflIV2.js +0 -17
- package/bundled-test-harness/assets/copy-and-edit-test-BuK1ZHr-.js +0 -291
- package/bundled-test-harness/assets/copy-card-test-DnDC4_7J.js +0 -156
- package/bundled-test-harness/assets/copy-file-to-realm-test-CFd_3Iff.js +0 -99
- package/bundled-test-harness/assets/copy-source-test-38yUGJor.js +0 -56
- package/bundled-test-harness/assets/cose-bilkent-S5V4N54A-DXA1S87S.js +0 -4275
- package/bundled-test-harness/assets/create-file-test-B2oem0-V.js +0 -963
- package/bundled-test-harness/assets/create-file-test-BHk00RtD.js +0 -397
- package/bundled-test-harness/assets/create-listing-modal-test-L-71-Uo2.js +0 -194
- package/bundled-test-harness/assets/create-listing-pr-request-CZaLsHhE.js +0 -64
- package/bundled-test-harness/assets/create-listing-pr-request-test-OGzk4Q2E.js +0 -117
- package/bundled-test-harness/assets/create-spec-test-BsM7VKuH.js +0 -239
- package/bundled-test-harness/assets/csv-file-def-test-BhJalhE-.js +0 -101
- package/bundled-test-harness/assets/dagre-BIk_r1iU.js +0 -4195
- package/bundled-test-harness/assets/dagre-BM42HDAG-FaUWeGOj.js +0 -606
- package/bundled-test-harness/assets/date-time-fields-test-Cs5T6Xk1.js +0 -322
- package/bundled-test-harness/assets/debug-message-test-WlHe7pJF.js +0 -119
- package/bundled-test-harness/assets/diagram-2AECGRRQ-DLve-IVM.js +0 -279
- package/bundled-test-harness/assets/diagram-5GNKFQAL-CJG1RTLk.js +0 -142
- package/bundled-test-harness/assets/diagram-KO2AKTUF-DYGDq3dD.js +0 -551
- package/bundled-test-harness/assets/diagram-LMA3HP47-BNRYdpMl.js +0 -184
- package/bundled-test-harness/assets/diagram-OG6HWLK6-BlJH5g83.js +0 -857
- package/bundled-test-harness/assets/diffing-test-DO54USSm.js +0 -210
- package/bundled-test-harness/assets/dist-BDRmXkWl.js +0 -232
- package/bundled-test-harness/assets/dist-BfNSLd0O.js +0 -105
- package/bundled-test-harness/assets/dist-BoireClP.js +0 -2
- package/bundled-test-harness/assets/editor-test-DChC9LuR.js +0 -551
- package/bundled-test-harness/assets/editor.main-BiohyrHK.js +0 -3
- package/bundled-test-harness/assets/editor.main-CMU_0pR1.js +0 -43566
- package/bundled-test-harness/assets/email-field-test-DWIFSfZ-.js +0 -74
- package/bundled-test-harness/assets/enum-field-test-BUc6l4us.js +0 -909
- package/bundled-test-harness/assets/erDiagram-TEJ5UH35-pOJ2novh.js +0 -2041
- package/bundled-test-harness/assets/error-display-test-CHSE6h6Z.js +0 -343
- package/bundled-test-harness/assets/evaluate-module-test-Caa5n0B9.js +0 -66
- package/bundled-test-harness/assets/eventmodeling-FCH6USID-B6XXU7R3.js +0 -3
- package/bundled-test-harness/assets/execute-atomic-operations-test-CT060oDk.js +0 -75
- package/bundled-test-harness/assets/externals-Do1fVZ4j.js +0 -5533
- package/bundled-test-harness/assets/extract-css-variables-test-DzjAsMgg.js +0 -169
- package/bundled-test-harness/assets/fallback-banner-test-CmxysrDn.js +0 -227
- package/bundled-test-harness/assets/fallback-banner-test-DJ4cO8PB.js +0 -53
- package/bundled-test-harness/assets/fallback-models-test-r5upJFeA.js +0 -163
- package/bundled-test-harness/assets/fetch-card-json-test-Di1wmvy5.js +0 -63
- package/bundled-test-harness/assets/fetcher-test-DjzNl_7F.js +0 -85
- package/bundled-test-harness/assets/field-configuration-test-C3vr-HhG.js +0 -535
- package/bundled-test-harness/assets/field-markdown-domain-test-DG2U4qIm.js +0 -615
- package/bundled-test-harness/assets/field-markdown-primitives-test-Bay2v8nT.js +0 -362
- package/bundled-test-harness/assets/field-markdown-specialized-test-Bl0Sl4sc.js +0 -527
- package/bundled-test-harness/assets/field-path-parser-test-bxxwUjcm.js +0 -387
- package/bundled-test-harness/assets/field-playground-test-Bcjfws4m.js +0 -902
- package/bundled-test-harness/assets/field-support-predicates-test-DYTqOGvv.js +0 -170
- package/bundled-test-harness/assets/field-test-helpers-DYSfSGdh.js +0 -45
- package/bundled-test-harness/assets/file-attachment-test-6ypDRDS7.js +0 -635
- package/bundled-test-harness/assets/file-chooser-test-mtmcHTFP.js +0 -439
- package/bundled-test-harness/assets/file-def-live-reload-test-CX1-lOv6.js +0 -50
- package/bundled-test-harness/assets/file-def-manager-DNHII2oj.js +0 -470
- package/bundled-test-harness/assets/file-def-manager-canonicalize-test-i_7UVakF.js +0 -451
- package/bundled-test-harness/assets/file-def-menu-items-test-Dw458iku.js +0 -114
- package/bundled-test-harness/assets/file-def-navigation-test-B3Ztr1Rd.js +0 -109
- package/bundled-test-harness/assets/file-def-serialization-test-C_gV8AkU.js +0 -87
- package/bundled-test-harness/assets/file-def-test-vXXJmtxX.js +0 -219
- package/bundled-test-harness/assets/file-tree-test-BJCiw9jm.js +0 -773
- package/bundled-test-harness/assets/flac-audio-def-test-BX3SE1vW.js +0 -138
- package/bundled-test-harness/assets/flowDiagram-I6XJVG4X-7Q5ROn4X.js +0 -4883
- package/bundled-test-harness/assets/formatted-aibot-message-test-DyqUz2nt.js +0 -366
- package/bundled-test-harness/assets/formatted-user-message-test-aqAzqvBP.js +0 -43
- package/bundled-test-harness/assets/freestyle-test-CLRrZkAE.js +0 -17
- package/bundled-test-harness/assets/full-reindex-realm-test-ClqPVQ0c.js +0 -103
- package/bundled-test-harness/assets/ganttDiagram-6RSMTGT7-BkDoIAAE.js +0 -4060
- package/bundled-test-harness/assets/garbage-collection-test-Ba2dD3qS.js +0 -373
- package/bundled-test-harness/assets/general-test-D0zhs14K.js +0 -926
- package/bundled-test-harness/assets/generate-css-variables-test-CKrXSlHs.js +0 -88
- package/bundled-test-harness/assets/generate-example-cards-one-shot-test-fSAdGJeT.js +0 -67
- package/bundled-test-harness/assets/get-available-realm-identifiers-test-BXMUW65I.js +0 -49
- package/bundled-test-harness/assets/get-catalog-realm-identifiers-test-DKEq6Zcq.js +0 -49
- package/bundled-test-harness/assets/get-default-writable-realm-test-Dp4nBIRP.js +0 -56
- package/bundled-test-harness/assets/get-realm-of-resource-identifier-test-DYNnMgD-.js +0 -55
- package/bundled-test-harness/assets/get-relationship-membership-state-test-k9EUNWeq.js +0 -1306
- package/bundled-test-harness/assets/get-type-refs-from-filter-test-BPuivF-v.js +0 -136
- package/bundled-test-harness/assets/get-user-system-card-test-DSHv00O7.js +0 -52
- package/bundled-test-harness/assets/gif-image-def-test-LuDSr5Kz.js +0 -161
- package/bundled-test-harness/assets/gitGraph-WXDBUCRP-BrG_LYEh.js +0 -3
- package/bundled-test-harness/assets/gitGraphDiagram-PVQCEYII-QJjQcX4J.js +0 -1150
- package/bundled-test-harness/assets/gts-file-def-test-bS3ML062.js +0 -99
- package/bundled-test-harness/assets/head-format-preview-test-B8IPh71E.js +0 -156
- package/bundled-test-harness/assets/helpers-wSIq-bau.js +0 -5
- package/bundled-test-harness/assets/host-mode-test-D44nXoQZ.js +0 -391
- package/bundled-test-harness/assets/host-submode-test-CefkXg9F.js +0 -904
- package/bundled-test-harness/assets/index-query-engine-test-DJnDqmfK.js +0 -2548
- package/bundled-test-harness/assets/index-writer-test-BcrCMj37.js +0 -1842
- package/bundled-test-harness/assets/indexeddb-crypto-store-RTTNdynf.js +0 -49434
- package/bundled-test-harness/assets/info-J43DQDTF-DhDzvz9k.js +0 -3
- package/bundled-test-harness/assets/infoDiagram-5YYISTIA-8TmRFIRz.js +0 -23
- package/bundled-test-harness/assets/inspector-test-D4iMBlbL.js +0 -1776
- package/bundled-test-harness/assets/instance-filter-matcher-test-CYT6N3hN.js +0 -564
- package/bundled-test-harness/assets/instantiate-card-test-j1JS5lDe.js +0 -104
- package/bundled-test-harness/assets/interact-submode-creation-and-permissions-test-B-aXzOh6.js +0 -497
- package/bundled-test-harness/assets/interact-submode-setup-VMwOUl3u.js +0 -558
- package/bundled-test-harness/assets/interact-submode-test-D5lNNXdq.js +0 -725
- package/bundled-test-harness/assets/invalidate-realm-identifiers-test-71Ze8eGV.js +0 -101
- package/bundled-test-harness/assets/invite-user-to-room-test-UfjsvwVp.js +0 -67
- package/bundled-test-harness/assets/ishikawaDiagram-YF4QCWOH-7UALIGwM.js +0 -1009
- package/bundled-test-harness/assets/isolated-render-test-C2IL-Fz3.js +0 -51
- package/bundled-test-harness/assets/item-button-6g7XYj56.js +0 -203
- package/bundled-test-harness/assets/javascript-BwLQ7_Nc.js +0 -75
- package/bundled-test-harness/assets/job-priority-header-test-C3FfKLPP.js +0 -81
- package/bundled-test-harness/assets/journeyDiagram-JHISSGLW-t4gEZYup.js +0 -1256
- package/bundled-test-harness/assets/jpg-image-def-test-BTBk9lk5.js +0 -430
- package/bundled-test-harness/assets/json-file-def-test-BpU_Eidn.js +0 -92
- package/bundled-test-harness/assets/kanban-definition-UN3LZRKU-C_KHB3_r.js +0 -1284
- package/bundled-test-harness/assets/last-modified-date-test-fE7IP0q0.js +0 -18
- package/bundled-test-harness/assets/limited-set-test-uu2vX1Sv.js +0 -123
- package/bundled-test-harness/assets/line-BiZHXOjs.js +0 -55
- package/bundled-test-harness/assets/linear-DUaMMmmA.js +0 -417
- package/bundled-test-harness/assets/linksto-broken-link-placeholder-test-qZeqQ1gt.js +0 -315
- package/bundled-test-harness/assets/linksto-error-sentinel-test-BaV3I8Xx.js +0 -236
- package/bundled-test-harness/assets/linksto-many-broken-link-placeholder-test-BvJi1vCb.js +0 -303
- package/bundled-test-harness/assets/linksto-many-per-slot-access-test-CK60Cugk.js +0 -301
- package/bundled-test-harness/assets/linksto-sentinel-roundtrip-test-BWxdEO9D.js +0 -258
- package/bundled-test-harness/assets/linksto-singular-js-access-contract-test-CIsLhqR2.js +0 -194
- package/bundled-test-harness/assets/live-prerendered-search-jZe3I16p.js +0 -639
- package/bundled-test-harness/assets/live-test-CF_R5WGr.js +0 -2
- package/bundled-test-harness/assets/live-test-jO7lXuyB.js +0 -100
- package/bundled-test-harness/assets/loader-icon-error-test-N4JYZuTx.js +0 -62
- package/bundled-test-harness/assets/loader-parallel-prefetch-test-DteeG7mU.js +0 -257
- package/bundled-test-harness/assets/loader-retry-test-DYVgpS_I.js +0 -173
- package/bundled-test-harness/assets/loader-test-DLI8JIx-.js +0 -245
- package/bundled-test-harness/assets/loading-test-D4ZBtRYf.js +0 -63
- package/bundled-test-harness/assets/login-error-text-test-Dcq7q3EY.js +0 -51
- package/bundled-test-harness/assets/m4a-audio-def-test-BKqGO-CW.js +0 -185
- package/bundled-test-harness/assets/main-BjBdsiQT.js +0 -5
- package/bundled-test-harness/assets/markdown-fallback-test-BBj80dZZ.js +0 -316
- package/bundled-test-harness/assets/markdown-file-def-test-BnMF5rQF.js +0 -286
- package/bundled-test-harness/assets/markdown-helpers-test-DnuuSLfS.js +0 -183
- package/bundled-test-harness/assets/markdown-highlighting-test-CWRp2Rce.js +0 -244
- package/bundled-test-harness/assets/markdown-preview-test-Bf5OqKGf.js +0 -237
- package/bundled-test-harness/assets/markdown-preview-yYHtwNeI.js +0 -69
- package/bundled-test-harness/assets/marked-sync-2EfimW4i.js +0 -2
- package/bundled-test-harness/assets/marked-sync-DZOVFLjK.js +0 -2561
- package/bundled-test-harness/assets/marked-sync-test-BaaYbZNF.js +0 -146
- package/bundled-test-harness/assets/matrix-service-sliding-sync-test-CdEy3ASW.js +0 -33
- package/bundled-test-harness/assets/mermaid-parser.core-CKNAdXJW.js +0 -114
- package/bundled-test-harness/assets/mermaid.core-C0mfwy8A.js +0 -1700
- package/bundled-test-harness/assets/message-service-subscription-test-pGz_7rz3.js +0 -113
- package/bundled-test-harness/assets/mindmap-definition-RKZ34NQL-ClcHxkdY.js +0 -1347
- package/bundled-test-harness/assets/mock-matrix-D7JHfFtT.js +0 -2
- package/bundled-test-harness/assets/mock-matrix-DqDbNhEj.js +0 -14292
- package/bundled-test-harness/assets/module-transpile-cache-test-D0M-fPxs.js +0 -66
- package/bundled-test-harness/assets/monaco.contribution-BEs3qwfd.js +0 -103
- package/bundled-test-harness/assets/monaco.contribution-Dpx8UiPl.js +0 -2
- package/bundled-test-harness/assets/monaco.contribution-RF_qxJYG.js +0 -2
- package/bundled-test-harness/assets/monaco.contribution-jPVrF29f.js +0 -243
- package/bundled-test-harness/assets/mp3-audio-def-test-CxeRk1bl.js +0 -129
- package/bundled-test-harness/assets/mutex-test-D1xyxTj2.js +0 -71
- package/bundled-test-harness/assets/number-field-test-gjAGDy6P.js +0 -153
- package/bundled-test-harness/assets/ogg-audio-def-test-B6Ww3Ixr.js +0 -191
- package/bundled-test-harness/assets/open-create-listing-modal-test-uN58T3rI.js +0 -117
- package/bundled-test-harness/assets/open-workspace-test-DXVsvBFJ.js +0 -48
- package/bundled-test-harness/assets/operator-mode-acceptance-test-BxIq2xSS.js +0 -1044
- package/bundled-test-harness/assets/operator-mode-card-catalog-test-xFYx9_ng.js +0 -989
- package/bundled-test-harness/assets/operator-mode-links-test-qhXWmz-S.js +0 -797
- package/bundled-test-harness/assets/operator-mode-state-service-test-BdA_uvaY.js +0 -122
- package/bundled-test-harness/assets/operator-mode-test-D3EyTwq3.js +0 -617
- package/bundled-test-harness/assets/operator-mode-ui-test-CSrk6Q0A.js +0 -985
- package/bundled-test-harness/assets/ordinal-DO1mUmjg.js +0 -85
- package/bundled-test-harness/assets/overlay-menu-items-test-CuqqLsQT.js +0 -316
- package/bundled-test-harness/assets/packet-YPE3B663--JkMNy78.js +0 -3
- package/bundled-test-harness/assets/panel-C2rtbx32.js +0 -3371
- package/bundled-test-harness/assets/past-sessions-test-B9SCbbXz.js +0 -316
- package/bundled-test-harness/assets/patch-code-test-CcFr9pDb.js +0 -203
- package/bundled-test-harness/assets/patch-fields-test-BW1gzcJM.js +0 -992
- package/bundled-test-harness/assets/patch-instance-test-DKqA9gQ6.js +0 -287
- package/bundled-test-harness/assets/persist-module-inspector-view-test-D1eKBUkt.js +0 -62
- package/bundled-test-harness/assets/phone-number-field-test-D1is5RWv.js +0 -72
- package/bundled-test-harness/assets/pie-LRSECV5Y-BDVv8Wdy.js +0 -3
- package/bundled-test-harness/assets/pieDiagram-4H26LBE5-CSYI-nMz.js +0 -253
- package/bundled-test-harness/assets/plan-install-test-DB-PrjPR.js +0 -417
- package/bundled-test-harness/assets/playground-B0iQV7dU.js +0 -57
- package/bundled-test-harness/assets/png-image-def-test-DnOsJGs6.js +0 -222
- package/bundled-test-harness/assets/prerender-file-extract-test-DhOLozj2.js +0 -176
- package/bundled-test-harness/assets/prerender-html-test-DKVhQZA9.js +0 -615
- package/bundled-test-harness/assets/prerender-meta-test-CnRNyqSz.js +0 -388
- package/bundled-test-harness/assets/prerender-module-test-D163QcrZ.js +0 -195
- package/bundled-test-harness/assets/prerendered-card-search-test-DX-8yabJ.js +0 -708
- package/bundled-test-harness/assets/preview-format-test-H7bnpdlC.js +0 -103
- package/bundled-test-harness/assets/preview-test-B7u6uWJR.js +0 -455
- package/bundled-test-harness/assets/qs-test-COb0mre6.js +0 -36
- package/bundled-test-harness/assets/quadrantDiagram-W4KKPZXB-2Y2ben29.js +0 -2324
- package/bundled-test-harness/assets/query-field-barrier-test-Cypj-MhK.js +0 -118
- package/bundled-test-harness/assets/query-field-error-sentinel-test-Dnqn8TdN.js +0 -202
- package/bundled-test-harness/assets/query-field-normalization-test-B7D8SHBP.js +0 -271
- package/bundled-test-harness/assets/query-field-schema-test-DIYY3-c8.js +0 -231
- package/bundled-test-harness/assets/query-fields-test-k-VBF9PE.js +0 -535
- package/bundled-test-harness/assets/queue-test-B_74vXZE.js +0 -216
- package/bundled-test-harness/assets/radar-GUYGQ44K-Cn2A0VBR.js +0 -3
- package/bundled-test-harness/assets/read-card-for-ai-assistant-test-SyL9F_La.js +0 -91
- package/bundled-test-harness/assets/read-file-for-ai-assistant-test-nLPp49U2.js +0 -45
- package/bundled-test-harness/assets/read-source-test-DBELJkhN.js +0 -67
- package/bundled-test-harness/assets/read-text-file-test-CP1JuWlX.js +0 -124
- package/bundled-test-harness/assets/realm-Dr4iygv_.js +0 -884
- package/bundled-test-harness/assets/realm-field-test-Cice2mYk.js +0 -101
- package/bundled-test-harness/assets/realm-index-card-id-test-BzpozdWc.js +0 -18
- package/bundled-test-harness/assets/realm-indexing-test-C0YSXziR.js +0 -4018
- package/bundled-test-harness/assets/realm-paths-test-DV_g07rF.js +0 -33
- package/bundled-test-harness/assets/realm-querying-test-B526abM0.js +0 -1062
- package/bundled-test-harness/assets/realm-test-D8UN5X-w.js +0 -2409
- package/bundled-test-harness/assets/reasoning-test-ClIOvdkX.js +0 -234
- package/bundled-test-harness/assets/recent-files-test-C2J_dJUD.js +0 -449
- package/bundled-test-harness/assets/reindex-realm-test-DMphy1g6.js +0 -119
- package/bundled-test-harness/assets/relationship-loading-state-test-BWrZdLlZ.js +0 -289
- package/bundled-test-harness/assets/render-component-BII_KnyK.js +0 -2
- package/bundled-test-harness/assets/render-error-test-BUAJJlUi.js +0 -22
- package/bundled-test-harness/assets/render-service-test-BKkCjErY.js +0 -87
- package/bundled-test-harness/assets/render-timer-stub-test-TUDMWJ8v.js +0 -84
- package/bundled-test-harness/assets/rendered-markdown-ColekGTF.js +0 -211
- package/bundled-test-harness/assets/rendered-markdown-test-B4CWIo02.js +0 -360
- package/bundled-test-harness/assets/requirementDiagram-4Y6WPE33-CTICatxk.js +0 -2550
- package/bundled-test-harness/assets/rich-markdown-field-test-B5u6D3Nk.js +0 -806
- package/bundled-test-harness/assets/room-message-test-0eJSqQfu.js +0 -171
- package/bundled-test-harness/assets/rust-crypto-B0m3j_yZ.js +0 -16141
- package/bundled-test-harness/assets/sanitize-module-list-test-rH6OqjKh.js +0 -68
- package/bundled-test-harness/assets/sankeyDiagram-5OEKKPKP-hBIg6-LP.js +0 -1357
- package/bundled-test-harness/assets/schema-editor-test-DH4MLFCD.js +0 -784
- package/bundled-test-harness/assets/schema-generation-test-BZMkX7VA.js +0 -28
- package/bundled-test-harness/assets/scrolling-test-CFTyLG8X.js +0 -292
- package/bundled-test-harness/assets/search-and-choose-test-CcbVyp4c.js +0 -156
- package/bundled-test-harness/assets/search-cache-key-test-BYt46iNT.js +0 -79
- package/bundled-test-harness/assets/search-command-test-BRIJPr54.js +0 -135
- package/bundled-test-harness/assets/search-correlation-id-test-B298Tfux.js +0 -101
- package/bundled-test-harness/assets/search-data-test-DHV2Fd4S.js +0 -243
- package/bundled-test-harness/assets/search-google-images-test-CNrazllP.js +0 -168
- package/bundled-test-harness/assets/search-in-flight-key-test-Dy3bU2c1.js +0 -79
- package/bundled-test-harness/assets/search-test-DL1-gD-G.js +0 -847
- package/bundled-test-harness/assets/send-ai-assistant-message-test-CyEkQ5pD.js +0 -52
- package/bundled-test-harness/assets/send-bot-trigger-event-test-CAsK28m-.js +0 -56
- package/bundled-test-harness/assets/send-request-via-proxy-test-DpMlRvPv.js +0 -333
- package/bundled-test-harness/assets/sending-test-BOeGYcTU.js +0 -317
- package/bundled-test-harness/assets/sequenceDiagram-3UESZ5HK-DQMiI040.js +0 -5551
- package/bundled-test-harness/assets/serialization-test-gY2QQVxS.js +0 -8283
- package/bundled-test-harness/assets/set-user-system-card-test-BE3y5GNK.js +0 -59
- package/bundled-test-harness/assets/setup-B8O9JQKq.js +0 -769
- package/bundled-test-harness/assets/setup-BMqGUBDK.js +0 -2
- package/bundled-test-harness/assets/show-card-test-BfJNnWMy.js +0 -362
- package/bundled-test-harness/assets/skills-test-CqhnZxBi.js +0 -568
- package/bundled-test-harness/assets/spec-test-BUKNn_1q.js +0 -1012
- package/bundled-test-harness/assets/stateDiagram-AJRCARHV-BoOij2yt.js +0 -363
- package/bundled-test-harness/assets/stateDiagram-v2-BHNVJYJU-Dosil5p2.js +0 -29
- package/bundled-test-harness/assets/store-add-test-BR1M-IDR.js +0 -52
- package/bundled-test-harness/assets/store-test-DaqI-HRh.js +0 -1562
- package/bundled-test-harness/assets/summarize-session-test-BMg54JGF.js +0 -169
- package/bundled-test-harness/assets/svg-image-def-test-xNyIKRPV.js +0 -164
- package/bundled-test-harness/assets/switch-submode-test-BKvpODUD.js +0 -168
- package/bundled-test-harness/assets/test-realm-service-worker-DK4SmTM5.js +0 -73
- package/bundled-test-harness/assets/tests-x4_eRjiT.js +0 -2770
- package/bundled-test-harness/assets/text-file-def-test-CsXiyVfI.js +0 -93
- package/bundled-test-harness/assets/text-input-validator-test-D4s_laO7.js +0 -155
- package/bundled-test-harness/assets/text-suggestion-test-CkLf1xuS.js +0 -339
- package/bundled-test-harness/assets/theme-card-test-D-6L6OfD.js +0 -573
- package/bundled-test-harness/assets/timeline-definition-PNZ67QCA-DD2d81uJ.js +0 -1545
- package/bundled-test-harness/assets/transform-cards-test-CRZF2gqZ.js +0 -341
- package/bundled-test-harness/assets/treeView-BLDUP644-CUm8wuM-.js +0 -3
- package/bundled-test-harness/assets/treemap-LRROVOQU-lbLrY2PE.js +0 -3
- package/bundled-test-harness/assets/ts-file-def-test-CDo6ojCf.js +0 -90
- package/bundled-test-harness/assets/tsMode-BPQoRibc.js +0 -968
- package/bundled-test-harness/assets/typescript-BaU6yDhK.js +0 -2
- package/bundled-test-harness/assets/update-room-skills-test-BnSgVFwT.js +0 -197
- package/bundled-test-harness/assets/url-test-CK-HB0qu.js +0 -103
- package/bundled-test-harness/assets/use-ai-assistant-test-BuJXEP8H.js +0 -330
- package/bundled-test-harness/assets/validate-realm-test-Cx7MOtS8.js +0 -53
- package/bundled-test-harness/assets/vennDiagram-CIIHVFJN-DtXtzGwZ.js +0 -2833
- package/bundled-test-harness/assets/wardley-L42UT6IY-D8aCp_Ox.js +0 -3
- package/bundled-test-harness/assets/wardleyDiagram-YWT4CUSO-D-73g3bB.js +0 -872
- package/bundled-test-harness/assets/wav-audio-def-test-DIo2GzQL.js +0 -155
- package/bundled-test-harness/assets/webp-image-def-test-BQsV0_De.js +0 -225
- package/bundled-test-harness/assets/workspace-chooser-delete-test-peDXmnQf.js +0 -189
- package/bundled-test-harness/assets/workspace-chooser-test-DS2RtTEF.js +0 -235
- package/bundled-test-harness/assets/workspace-delete-multiple-test-DTbjRSzN.js +0 -213
- package/bundled-test-harness/assets/workspace-delete-summary-test-B--ink4m.js +0 -63
- package/bundled-test-harness/assets/write-binary-file-test-A3TQ5lFn.js +0 -100
- package/bundled-test-harness/assets/write-text-file-test-D_rjNDsT.js +0 -172
- package/bundled-test-harness/assets/xychartDiagram-2RQKCTM6-D1aoqDp-.js +0 -2551
- /package/bundled-test-harness/assets/{abap-CLdVBGqB.js → abap-FZAuBTMl.js} +0 -0
- /package/bundled-test-harness/assets/{apex-DV8eHjgQ.js → apex-CAO3qFTc.js} +0 -0
- /package/bundled-test-harness/assets/{array-DsDWWqmW.js → array-CRfHnEm4.js} +0 -0
- /package/bundled-test-harness/assets/{azcli-C4pZYsiJ.js → azcli-Bnu7jG0Y.js} +0 -0
- /package/bundled-test-harness/assets/{bat-DBoaeFpB.js → bat-DdE54Pqq.js} +0 -0
- /package/bundled-test-harness/assets/{bicep-VlrJhbeK.js → bicep-Dp4vFp3K.js} +0 -0
- /package/bundled-test-harness/assets/{cameligo-jyzrvLUm.js → cameligo-Cym4x98m.js} +0 -0
- /package/bundled-test-harness/assets/{chunk-NNHCCRGN-Be15HUz2.js → chunk-NNHCCRGN-PWOfDYpb.js} +0 -0
- /package/bundled-test-harness/assets/{clojure-bzahmEtz.js → clojure-B47IJ25u.js} +0 -0
- /package/bundled-test-harness/assets/{codemirror-context-BauLYUNt.js → codemirror-context-oJy03XqC.js} +0 -0
- /package/bundled-test-harness/assets/{coffee-CMADdzOH.js → coffee-CZlkBXT8.js} +0 -0
- /package/bundled-test-harness/assets/{cpp-CEJwzcLE.js → cpp-mX4KaA7p.js} +0 -0
- /package/bundled-test-harness/assets/{csharp-XYqm0UE0.js → csharp-C-OeDGwk.js} +0 -0
- /package/bundled-test-harness/assets/{csp-82fNWQc2.js → csp-AS2OEE8R.js} +0 -0
- /package/bundled-test-harness/assets/{css-B5b0ooFS.js → css-C-TQxhWe.js} +0 -0
- /package/bundled-test-harness/assets/{cssMode-DTKuqAkO.js → cssMode-C87GnEsk.js} +0 -0
- /package/bundled-test-harness/assets/{cypher-Df9GkdDY.js → cypher-T6F_0eIM.js} +0 -0
- /package/bundled-test-harness/assets/{cytoscape.esm-D0iwZ9Jj.js → cytoscape.esm-Bc2V-MhP.js} +0 -0
- /package/bundled-test-harness/assets/{dart-C4JY9dMc.js → dart-DzVesk0n.js} +0 -0
- /package/bundled-test-harness/assets/{defaultLocale-BtLxQtxy.js → defaultLocale-CAoL4lzt.js} +0 -0
- /package/bundled-test-harness/assets/{dist-D-PuK2H3.js → dist-BZ5MfZEJ.js} +0 -0
- /package/bundled-test-harness/assets/{dockerfile-Ck0tNttO.js → dockerfile-BH0_bQxC.js} +0 -0
- /package/bundled-test-harness/assets/{ecl-BpeXqJR_.js → ecl-KIxjxrJo.js} +0 -0
- /package/bundled-test-harness/assets/{elixir-HmBzrXaX.js → elixir-CPPdtCW1.js} +0 -0
- /package/bundled-test-harness/assets/{flow9-DhsfsDhH.js → flow9-Dxho7Ldf.js} +0 -0
- /package/bundled-test-harness/assets/{freemarker2-D3Yd6nGl.js → freemarker2-DP1aOr3_.js} +0 -0
- /package/bundled-test-harness/assets/{fsharp-D56OprHc.js → fsharp-ozN53Joe.js} +0 -0
- /package/bundled-test-harness/assets/{go-BITsFLfX.js → go-DPj6Rbqe.js} +0 -0
- /package/bundled-test-harness/assets/{graphlib-qkaQhadO.js → graphlib-DOITgaas.js} +0 -0
- /package/bundled-test-harness/assets/{graphql-CJJVsEX1.js → graphql-C8_-AnBG.js} +0 -0
- /package/bundled-test-harness/assets/{handlebars-Dvw6QbL7.js → handlebars-B2gYBZpU.js} +0 -0
- /package/bundled-test-harness/assets/{hcl-DSTZcJuq.js → hcl-r3d7BhXB.js} +0 -0
- /package/bundled-test-harness/assets/{helpers-D_JZYUOQ.js → helpers-CItTycq2.js} +0 -0
- /package/bundled-test-harness/assets/{html-Bik3qLmc.js → html-DhN1Nxr0.js} +0 -0
- /package/bundled-test-harness/assets/{htmlMode-DPCaR3Ab.js → htmlMode-BnBg5hCh.js} +0 -0
- /package/bundled-test-harness/assets/{ini-li-kC8ZU.js → ini-CzzRigmS.js} +0 -0
- /package/bundled-test-harness/assets/{init-Bq7IGMcH.js → init-Bd2YUhsG.js} +0 -0
- /package/bundled-test-harness/assets/{java-CETpuNN7.js → java-BgeDsIoV.js} +0 -0
- /package/bundled-test-harness/assets/{jsonMode-CZ3hOG-W.js → jsonMode-sRb0gsB8.js} +0 -0
- /package/bundled-test-harness/assets/{julia-hgihs1aN.js → julia-u3K1H5Ts.js} +0 -0
- /package/bundled-test-harness/assets/{katex-DqhsSYO4.js → katex-CHY7BUZt.js} +0 -0
- /package/bundled-test-harness/assets/{kotlin-CKfyb82K.js → kotlin-DfqmlJ10.js} +0 -0
- /package/bundled-test-harness/assets/{less-xB5yXbw8.js → less-CSzH7DPY.js} +0 -0
- /package/bundled-test-harness/assets/{lexon-BLwrXVrI.js → lexon-DwPTpxXt.js} +0 -0
- /package/bundled-test-harness/assets/{liquid-Bf2lpknJ.js → liquid-95J9g5Vk.js} +0 -0
- /package/bundled-test-harness/assets/{lua-Ch5i3IrF.js → lua-CGw6zbeh.js} +0 -0
- /package/bundled-test-harness/assets/{m3-D5tNlhaF.js → m3-BfgwloGF.js} +0 -0
- /package/bundled-test-harness/assets/{markdown-Dzc9uMky.js → markdown-RZRK7Mc9.js} +0 -0
- /package/bundled-test-harness/assets/{mdx-xsI4TJrf.js → mdx-BYD-W2sn.js} +0 -0
- /package/bundled-test-harness/assets/{mips-CmdzHkQm.js → mips-DAySN5Lp.js} +0 -0
- /package/bundled-test-harness/assets/{msdax-CAZvxB9E.js → msdax-Cy0COjTJ.js} +0 -0
- /package/bundled-test-harness/assets/{mysql-CyVS-z5H.js → mysql-CfGw9jyw.js} +0 -0
- /package/bundled-test-harness/assets/{objective-c-CCG8cTc_.js → objective-c-B4uU-8T-.js} +0 -0
- /package/bundled-test-harness/assets/{pascal-c8B45FOC.js → pascal-CGDuZzXi.js} +0 -0
- /package/bundled-test-harness/assets/{pascaligo-CCqwSqBv.js → pascaligo-eg02k4VJ.js} +0 -0
- /package/bundled-test-harness/assets/{path-CsS38UoK.js → path-Dxiz9G2t.js} +0 -0
- /package/bundled-test-harness/assets/{perl-JUICYbO2.js → perl-BiT-JJJw.js} +0 -0
- /package/bundled-test-harness/assets/{pgsql-aNRiL0Cg.js → pgsql-DAMjrVBF.js} +0 -0
- /package/bundled-test-harness/assets/{php-B0YZj_Vw.js → php-kOSUYQyc.js} +0 -0
- /package/bundled-test-harness/assets/{pla-D3Zb3KCn.js → pla-BShYV-HC.js} +0 -0
- /package/bundled-test-harness/assets/{postiats-ks1KABlA.js → postiats-9Xamd4W2.js} +0 -0
- /package/bundled-test-harness/assets/{powerquery-D35K_osc.js → powerquery-l2Nw525Q.js} +0 -0
- /package/bundled-test-harness/assets/{powershell-DXQo6KTk.js → powershell-B5rdEn86.js} +0 -0
- /package/bundled-test-harness/assets/{protobuf-CFDvn49_.js → protobuf-DjFcruCV.js} +0 -0
- /package/bundled-test-harness/assets/{pug-CGdWzJm1.js → pug-d79Nz4-Z.js} +0 -0
- /package/bundled-test-harness/assets/{python-BHLYjYlP.js → python-d8oxFZIM.js} +0 -0
- /package/bundled-test-harness/assets/{qsharp-BIq3i63T.js → qsharp-CeTlfxZW.js} +0 -0
- /package/bundled-test-harness/assets/{qunit-2hoQyeAZ.js → qunit-Cqwmt9Vl.js} +0 -0
- /package/bundled-test-harness/assets/{r-CBvzvDSA.js → r-BOu7JTro.js} +0 -0
- /package/bundled-test-harness/assets/{razor-JQ0RiIvo.js → razor-ZatoG_Is.js} +0 -0
- /package/bundled-test-harness/assets/{recent-files-cards-BQMviQb1.js → recent-files-cards-C3vIjaKb.js} +0 -0
- /package/bundled-test-harness/assets/{redis-BmSHTqTU.js → redis-DdXYPyQE.js} +0 -0
- /package/bundled-test-harness/assets/{redshift-B1NmQEH7.js → redshift-DswnW-YX.js} +0 -0
- /package/bundled-test-harness/assets/{render-component-g_fhz2dX.js → render-component-Bs21y6iv.js} +0 -0
- /package/bundled-test-harness/assets/{restructuredtext-Br9BtTbk.js → restructuredtext-C75vUmvX.js} +0 -0
- /package/bundled-test-harness/assets/{rough.esm-D8VnzNsL.js → rough.esm-B83ARgx6.js} +0 -0
- /package/bundled-test-harness/assets/{ruby-D9_-y1I3.js → ruby-D77950a-.js} +0 -0
- /package/bundled-test-harness/assets/{rust-1Jjr1EOs.js → rust-C_G4PKsG.js} +0 -0
- /package/bundled-test-harness/assets/{sb-X2JE4zEr.js → sb-Cz3P8_Gp.js} +0 -0
- /package/bundled-test-harness/assets/{scala-qFJERKkR.js → scala-DYqUg04P.js} +0 -0
- /package/bundled-test-harness/assets/{scheme-D-WJPStO.js → scheme-B31XEGu5.js} +0 -0
- /package/bundled-test-harness/assets/{scss-DysfZiXA.js → scss-CtvB8On5.js} +0 -0
- /package/bundled-test-harness/assets/{shell-C0Iu3NNJ.js → shell-C2QqpcPN.js} +0 -0
- /package/bundled-test-harness/assets/{solidity-Bato3Qrk.js → solidity-FHrhZFd-.js} +0 -0
- /package/bundled-test-harness/assets/{sophia-DI0cKdK8.js → sophia-Cxv5FOXb.js} +0 -0
- /package/bundled-test-harness/assets/{sparql-BTJMtwoD.js → sparql-CgGkGeQB.js} +0 -0
- /package/bundled-test-harness/assets/{sql-R6uHqFYU.js → sql-S6Dos2P0.js} +0 -0
- /package/bundled-test-harness/assets/{src-CdPyB7gY.js → src-CvuaVSsl.js} +0 -0
- /package/bundled-test-harness/assets/{st-CoyBvq37.js → st-Bfa7LAWp.js} +0 -0
- /package/bundled-test-harness/assets/{swift-Bj-haAlF.js → swift-BQD5Ef-A.js} +0 -0
- /package/bundled-test-harness/assets/{systemverilog-B-x1NEFI.js → systemverilog-DaNkPux4.js} +0 -0
- /package/bundled-test-harness/assets/{tcl-DAUdSQgz.js → tcl-gOPgCDyb.js} +0 -0
- /package/bundled-test-harness/assets/{test-support-BHjxBpDK.js → test-support-BEQX5x9U.js} +0 -0
- /package/bundled-test-harness/assets/{test-support-yKvYEh-u.js → test-support-BL4XKobD.js} +0 -0
- /package/bundled-test-harness/assets/{twig-B0sJ-GzS.js → twig-Bk4gPn5b.js} +0 -0
- /package/bundled-test-harness/assets/{typescript-DTMIM5Gl.js → typescript-pPYlxWzr.js} +0 -0
- /package/bundled-test-harness/assets/{typespec-6yo9VQxY.js → typespec-D9Zz743B.js} +0 -0
- /package/bundled-test-harness/assets/{vb-Bh2IfdtJ.js → vb-ziqHIsJV.js} +0 -0
- /package/bundled-test-harness/assets/{view-card-demo-U_AOj-RK.js → view-card-demo-CSIVYD3T.js} +0 -0
- /package/bundled-test-harness/assets/{wgsl-DsvJnCCt.js → wgsl-BXiwkiJL.js} +0 -0
- /package/bundled-test-harness/assets/{xml-CisPXcjD.js → xml-a_tUOik-.js} +0 -0
- /package/bundled-test-harness/assets/{yaml-DkHUoYI5.js → yaml-B3H8LDzK.js} +0 -0
|
@@ -0,0 +1,1150 @@
|
|
|
1
|
+
import "./chunk-CGdGNDIi.js";
|
|
2
|
+
import { g as log, h as __name$1, p as select_default } from "./src-CvuaVSsl.js";
|
|
3
|
+
import { H as setAccDescription, K as setDiagramTitle, U as setAccTitle, Y as setupGraphViewbox2, a as clear, b as getConfig, f as defaultConfig_default, s as common_default, v as getAccDescription, w as getDiagramTitle, x as getConfig2, y as getAccTitle } from "./chunk-CSCIHK7Q-D7nFiAZ-.js";
|
|
4
|
+
import { g as utils_default, i as cleanAndMerge, m as random } from "./chunk-5ZQYHXKU-BlVb7vgG.js";
|
|
5
|
+
import { t as populateCommonDb } from "./chunk-4BX2VUAB-D2LCc7Y9.js";
|
|
6
|
+
import { t as parse } from "./mermaid-parser.core-B_3tzKUl.js";
|
|
7
|
+
import { t as ImperativeState } from "./chunk-QZHKN3VN-DJFnRn99.js";
|
|
8
|
+
//#region ../../node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-PVQCEYII.mjs
|
|
9
|
+
var commitType = {
|
|
10
|
+
NORMAL: 0,
|
|
11
|
+
REVERSE: 1,
|
|
12
|
+
HIGHLIGHT: 2,
|
|
13
|
+
MERGE: 3,
|
|
14
|
+
CHERRY_PICK: 4
|
|
15
|
+
};
|
|
16
|
+
var DEFAULT_GITGRAPH_CONFIG = defaultConfig_default.gitGraph;
|
|
17
|
+
var getConfig3 = /* @__PURE__ */ __name$1(() => {
|
|
18
|
+
return cleanAndMerge({
|
|
19
|
+
...DEFAULT_GITGRAPH_CONFIG,
|
|
20
|
+
...getConfig().gitGraph
|
|
21
|
+
});
|
|
22
|
+
}, "getConfig");
|
|
23
|
+
var state = new ImperativeState(() => {
|
|
24
|
+
const config = getConfig3();
|
|
25
|
+
const mainBranchName = config.mainBranchName;
|
|
26
|
+
const mainBranchOrder = config.mainBranchOrder;
|
|
27
|
+
return {
|
|
28
|
+
mainBranchName,
|
|
29
|
+
commits: /* @__PURE__ */ new Map(),
|
|
30
|
+
head: null,
|
|
31
|
+
branchConfig: /* @__PURE__ */ new Map([[mainBranchName, {
|
|
32
|
+
name: mainBranchName,
|
|
33
|
+
order: mainBranchOrder
|
|
34
|
+
}]]),
|
|
35
|
+
branches: /* @__PURE__ */ new Map([[mainBranchName, null]]),
|
|
36
|
+
currBranch: mainBranchName,
|
|
37
|
+
direction: "LR",
|
|
38
|
+
seq: 0,
|
|
39
|
+
options: {}
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
function getID() {
|
|
43
|
+
return random({ length: 7 });
|
|
44
|
+
}
|
|
45
|
+
__name$1(getID, "getID");
|
|
46
|
+
function uniqBy(list, fn) {
|
|
47
|
+
const recordMap = /* @__PURE__ */ Object.create(null);
|
|
48
|
+
return list.reduce((out, item) => {
|
|
49
|
+
const key = fn(item);
|
|
50
|
+
if (!recordMap[key]) {
|
|
51
|
+
recordMap[key] = true;
|
|
52
|
+
out.push(item);
|
|
53
|
+
}
|
|
54
|
+
return out;
|
|
55
|
+
}, []);
|
|
56
|
+
}
|
|
57
|
+
__name$1(uniqBy, "uniqBy");
|
|
58
|
+
var setDirection = /* @__PURE__ */ __name$1(function(dir2) {
|
|
59
|
+
state.records.direction = dir2;
|
|
60
|
+
}, "setDirection");
|
|
61
|
+
var setOptions = /* @__PURE__ */ __name$1(function(rawOptString) {
|
|
62
|
+
log.debug("options str", rawOptString);
|
|
63
|
+
rawOptString = rawOptString?.trim();
|
|
64
|
+
rawOptString = rawOptString || "{}";
|
|
65
|
+
try {
|
|
66
|
+
state.records.options = JSON.parse(rawOptString);
|
|
67
|
+
} catch (e) {
|
|
68
|
+
log.error("error while parsing gitGraph options", e.message);
|
|
69
|
+
}
|
|
70
|
+
}, "setOptions");
|
|
71
|
+
var getOptions = /* @__PURE__ */ __name$1(function() {
|
|
72
|
+
return state.records.options;
|
|
73
|
+
}, "getOptions");
|
|
74
|
+
var commit = /* @__PURE__ */ __name$1(function(commitDB) {
|
|
75
|
+
let msg = commitDB.msg;
|
|
76
|
+
let id = commitDB.id;
|
|
77
|
+
const type = commitDB.type;
|
|
78
|
+
let tags = commitDB.tags;
|
|
79
|
+
log.info("commit", msg, id, type, tags);
|
|
80
|
+
log.debug("Entering commit:", msg, id, type, tags);
|
|
81
|
+
const config = getConfig3();
|
|
82
|
+
id = common_default.sanitizeText(id, config);
|
|
83
|
+
msg = common_default.sanitizeText(msg, config);
|
|
84
|
+
tags = tags?.map((tag) => common_default.sanitizeText(tag, config));
|
|
85
|
+
const newCommit = {
|
|
86
|
+
id: id ? id : state.records.seq + "-" + getID(),
|
|
87
|
+
message: msg,
|
|
88
|
+
seq: state.records.seq++,
|
|
89
|
+
type: type ?? commitType.NORMAL,
|
|
90
|
+
tags: tags ?? [],
|
|
91
|
+
parents: state.records.head == null ? [] : [state.records.head.id],
|
|
92
|
+
branch: state.records.currBranch
|
|
93
|
+
};
|
|
94
|
+
state.records.head = newCommit;
|
|
95
|
+
log.info("main branch", config.mainBranchName);
|
|
96
|
+
if (state.records.commits.has(newCommit.id)) log.warn(`Commit ID ${newCommit.id} already exists`);
|
|
97
|
+
state.records.commits.set(newCommit.id, newCommit);
|
|
98
|
+
state.records.branches.set(state.records.currBranch, newCommit.id);
|
|
99
|
+
log.debug("in pushCommit " + newCommit.id);
|
|
100
|
+
}, "commit");
|
|
101
|
+
var branch = /* @__PURE__ */ __name$1(function(branchDB) {
|
|
102
|
+
let name = branchDB.name;
|
|
103
|
+
const order = branchDB.order;
|
|
104
|
+
name = common_default.sanitizeText(name, getConfig3());
|
|
105
|
+
if (state.records.branches.has(name)) throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${name}")`);
|
|
106
|
+
state.records.branches.set(name, state.records.head != null ? state.records.head.id : null);
|
|
107
|
+
state.records.branchConfig.set(name, {
|
|
108
|
+
name,
|
|
109
|
+
order
|
|
110
|
+
});
|
|
111
|
+
checkout(name);
|
|
112
|
+
log.debug("in createBranch");
|
|
113
|
+
}, "branch");
|
|
114
|
+
var merge = /* @__PURE__ */ __name$1((mergeDB) => {
|
|
115
|
+
let otherBranch = mergeDB.branch;
|
|
116
|
+
let customId = mergeDB.id;
|
|
117
|
+
const overrideType = mergeDB.type;
|
|
118
|
+
const customTags = mergeDB.tags;
|
|
119
|
+
const config = getConfig3();
|
|
120
|
+
otherBranch = common_default.sanitizeText(otherBranch, config);
|
|
121
|
+
if (customId) customId = common_default.sanitizeText(customId, config);
|
|
122
|
+
const currentBranchCheck = state.records.branches.get(state.records.currBranch);
|
|
123
|
+
const otherBranchCheck = state.records.branches.get(otherBranch);
|
|
124
|
+
const currentCommit = currentBranchCheck ? state.records.commits.get(currentBranchCheck) : void 0;
|
|
125
|
+
const otherCommit = otherBranchCheck ? state.records.commits.get(otherBranchCheck) : void 0;
|
|
126
|
+
if (currentCommit && otherCommit && currentCommit.branch === otherBranch) throw new Error(`Cannot merge branch '${otherBranch}' into itself.`);
|
|
127
|
+
if (state.records.currBranch === otherBranch) {
|
|
128
|
+
const error = /* @__PURE__ */ new Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
|
|
129
|
+
error.hash = {
|
|
130
|
+
text: `merge ${otherBranch}`,
|
|
131
|
+
token: `merge ${otherBranch}`,
|
|
132
|
+
expected: ["branch abc"]
|
|
133
|
+
};
|
|
134
|
+
throw error;
|
|
135
|
+
}
|
|
136
|
+
if (currentCommit === void 0 || !currentCommit) {
|
|
137
|
+
const error = /* @__PURE__ */ new Error(`Incorrect usage of "merge". Current branch (${state.records.currBranch})has no commits`);
|
|
138
|
+
error.hash = {
|
|
139
|
+
text: `merge ${otherBranch}`,
|
|
140
|
+
token: `merge ${otherBranch}`,
|
|
141
|
+
expected: ["commit"]
|
|
142
|
+
};
|
|
143
|
+
throw error;
|
|
144
|
+
}
|
|
145
|
+
if (!state.records.branches.has(otherBranch)) {
|
|
146
|
+
const error = /* @__PURE__ */ new Error("Incorrect usage of \"merge\". Branch to be merged (" + otherBranch + ") does not exist");
|
|
147
|
+
error.hash = {
|
|
148
|
+
text: `merge ${otherBranch}`,
|
|
149
|
+
token: `merge ${otherBranch}`,
|
|
150
|
+
expected: [`branch ${otherBranch}`]
|
|
151
|
+
};
|
|
152
|
+
throw error;
|
|
153
|
+
}
|
|
154
|
+
if (otherCommit === void 0 || !otherCommit) {
|
|
155
|
+
const error = /* @__PURE__ */ new Error("Incorrect usage of \"merge\". Branch to be merged (" + otherBranch + ") has no commits");
|
|
156
|
+
error.hash = {
|
|
157
|
+
text: `merge ${otherBranch}`,
|
|
158
|
+
token: `merge ${otherBranch}`,
|
|
159
|
+
expected: ["\"commit\""]
|
|
160
|
+
};
|
|
161
|
+
throw error;
|
|
162
|
+
}
|
|
163
|
+
if (currentCommit === otherCommit) {
|
|
164
|
+
const error = /* @__PURE__ */ new Error("Incorrect usage of \"merge\". Both branches have same head");
|
|
165
|
+
error.hash = {
|
|
166
|
+
text: `merge ${otherBranch}`,
|
|
167
|
+
token: `merge ${otherBranch}`,
|
|
168
|
+
expected: ["branch abc"]
|
|
169
|
+
};
|
|
170
|
+
throw error;
|
|
171
|
+
}
|
|
172
|
+
if (customId && state.records.commits.has(customId)) {
|
|
173
|
+
const error = /* @__PURE__ */ new Error("Incorrect usage of \"merge\". Commit with id:" + customId + " already exists, use different custom id");
|
|
174
|
+
error.hash = {
|
|
175
|
+
text: `merge ${otherBranch} ${customId} ${overrideType} ${customTags?.join(" ")}`,
|
|
176
|
+
token: `merge ${otherBranch} ${customId} ${overrideType} ${customTags?.join(" ")}`,
|
|
177
|
+
expected: [`merge ${otherBranch} ${customId}_UNIQUE ${overrideType} ${customTags?.join(" ")}`]
|
|
178
|
+
};
|
|
179
|
+
throw error;
|
|
180
|
+
}
|
|
181
|
+
const verifiedBranch = otherBranchCheck ? otherBranchCheck : "";
|
|
182
|
+
const commit2 = {
|
|
183
|
+
id: customId || `${state.records.seq}-${getID()}`,
|
|
184
|
+
message: `merged branch ${otherBranch} into ${state.records.currBranch}`,
|
|
185
|
+
seq: state.records.seq++,
|
|
186
|
+
parents: state.records.head == null ? [] : [state.records.head.id, verifiedBranch],
|
|
187
|
+
branch: state.records.currBranch,
|
|
188
|
+
type: commitType.MERGE,
|
|
189
|
+
customType: overrideType,
|
|
190
|
+
customId: customId ? true : false,
|
|
191
|
+
tags: customTags ?? []
|
|
192
|
+
};
|
|
193
|
+
state.records.head = commit2;
|
|
194
|
+
state.records.commits.set(commit2.id, commit2);
|
|
195
|
+
state.records.branches.set(state.records.currBranch, commit2.id);
|
|
196
|
+
log.debug(state.records.branches);
|
|
197
|
+
log.debug("in mergeBranch");
|
|
198
|
+
}, "merge");
|
|
199
|
+
var cherryPick = /* @__PURE__ */ __name$1(function(cherryPickDB) {
|
|
200
|
+
let sourceId = cherryPickDB.id;
|
|
201
|
+
let targetId = cherryPickDB.targetId;
|
|
202
|
+
let tags = cherryPickDB.tags;
|
|
203
|
+
let parentCommitId = cherryPickDB.parent;
|
|
204
|
+
log.debug("Entering cherryPick:", sourceId, targetId, tags);
|
|
205
|
+
const config = getConfig3();
|
|
206
|
+
sourceId = common_default.sanitizeText(sourceId, config);
|
|
207
|
+
targetId = common_default.sanitizeText(targetId, config);
|
|
208
|
+
tags = tags?.map((tag) => common_default.sanitizeText(tag, config));
|
|
209
|
+
parentCommitId = common_default.sanitizeText(parentCommitId, config);
|
|
210
|
+
if (!sourceId || !state.records.commits.has(sourceId)) {
|
|
211
|
+
const error = /* @__PURE__ */ new Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
212
|
+
error.hash = {
|
|
213
|
+
text: `cherryPick ${sourceId} ${targetId}`,
|
|
214
|
+
token: `cherryPick ${sourceId} ${targetId}`,
|
|
215
|
+
expected: ["cherry-pick abc"]
|
|
216
|
+
};
|
|
217
|
+
throw error;
|
|
218
|
+
}
|
|
219
|
+
const sourceCommit = state.records.commits.get(sourceId);
|
|
220
|
+
if (sourceCommit === void 0 || !sourceCommit) throw new Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
|
|
221
|
+
if (parentCommitId && !(Array.isArray(sourceCommit.parents) && sourceCommit.parents.includes(parentCommitId))) throw /* @__PURE__ */ new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
|
|
222
|
+
const sourceCommitBranch = sourceCommit.branch;
|
|
223
|
+
if (sourceCommit.type === commitType.MERGE && !parentCommitId) throw /* @__PURE__ */ new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");
|
|
224
|
+
if (!targetId || !state.records.commits.has(targetId)) {
|
|
225
|
+
if (sourceCommitBranch === state.records.currBranch) {
|
|
226
|
+
const error = /* @__PURE__ */ new Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
|
|
227
|
+
error.hash = {
|
|
228
|
+
text: `cherryPick ${sourceId} ${targetId}`,
|
|
229
|
+
token: `cherryPick ${sourceId} ${targetId}`,
|
|
230
|
+
expected: ["cherry-pick abc"]
|
|
231
|
+
};
|
|
232
|
+
throw error;
|
|
233
|
+
}
|
|
234
|
+
const currentCommitId = state.records.branches.get(state.records.currBranch);
|
|
235
|
+
if (currentCommitId === void 0 || !currentCommitId) {
|
|
236
|
+
const error = /* @__PURE__ */ new Error(`Incorrect usage of "cherry-pick". Current branch (${state.records.currBranch})has no commits`);
|
|
237
|
+
error.hash = {
|
|
238
|
+
text: `cherryPick ${sourceId} ${targetId}`,
|
|
239
|
+
token: `cherryPick ${sourceId} ${targetId}`,
|
|
240
|
+
expected: ["cherry-pick abc"]
|
|
241
|
+
};
|
|
242
|
+
throw error;
|
|
243
|
+
}
|
|
244
|
+
const currentCommit = state.records.commits.get(currentCommitId);
|
|
245
|
+
if (currentCommit === void 0 || !currentCommit) {
|
|
246
|
+
const error = /* @__PURE__ */ new Error(`Incorrect usage of "cherry-pick". Current branch (${state.records.currBranch})has no commits`);
|
|
247
|
+
error.hash = {
|
|
248
|
+
text: `cherryPick ${sourceId} ${targetId}`,
|
|
249
|
+
token: `cherryPick ${sourceId} ${targetId}`,
|
|
250
|
+
expected: ["cherry-pick abc"]
|
|
251
|
+
};
|
|
252
|
+
throw error;
|
|
253
|
+
}
|
|
254
|
+
const commit2 = {
|
|
255
|
+
id: state.records.seq + "-" + getID(),
|
|
256
|
+
message: `cherry-picked ${sourceCommit?.message} into ${state.records.currBranch}`,
|
|
257
|
+
seq: state.records.seq++,
|
|
258
|
+
parents: state.records.head == null ? [] : [state.records.head.id, sourceCommit.id],
|
|
259
|
+
branch: state.records.currBranch,
|
|
260
|
+
type: commitType.CHERRY_PICK,
|
|
261
|
+
tags: tags ? tags.filter(Boolean) : [`cherry-pick:${sourceCommit.id}${sourceCommit.type === commitType.MERGE ? `|parent:${parentCommitId}` : ""}`]
|
|
262
|
+
};
|
|
263
|
+
state.records.head = commit2;
|
|
264
|
+
state.records.commits.set(commit2.id, commit2);
|
|
265
|
+
state.records.branches.set(state.records.currBranch, commit2.id);
|
|
266
|
+
log.debug(state.records.branches);
|
|
267
|
+
log.debug("in cherryPick");
|
|
268
|
+
}
|
|
269
|
+
}, "cherryPick");
|
|
270
|
+
var checkout = /* @__PURE__ */ __name$1(function(branch2) {
|
|
271
|
+
branch2 = common_default.sanitizeText(branch2, getConfig3());
|
|
272
|
+
if (!state.records.branches.has(branch2)) {
|
|
273
|
+
const error = /* @__PURE__ */ new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${branch2}")`);
|
|
274
|
+
error.hash = {
|
|
275
|
+
text: `checkout ${branch2}`,
|
|
276
|
+
token: `checkout ${branch2}`,
|
|
277
|
+
expected: [`branch ${branch2}`]
|
|
278
|
+
};
|
|
279
|
+
throw error;
|
|
280
|
+
} else {
|
|
281
|
+
state.records.currBranch = branch2;
|
|
282
|
+
const id = state.records.branches.get(state.records.currBranch);
|
|
283
|
+
if (id === void 0 || !id) state.records.head = null;
|
|
284
|
+
else state.records.head = state.records.commits.get(id) ?? null;
|
|
285
|
+
}
|
|
286
|
+
}, "checkout");
|
|
287
|
+
function upsert(arr, key, newVal) {
|
|
288
|
+
const index = arr.indexOf(key);
|
|
289
|
+
if (index === -1) arr.push(newVal);
|
|
290
|
+
else arr.splice(index, 1, newVal);
|
|
291
|
+
}
|
|
292
|
+
__name$1(upsert, "upsert");
|
|
293
|
+
function prettyPrintCommitHistory(commitArr) {
|
|
294
|
+
const commit2 = commitArr.reduce((out, commit3) => {
|
|
295
|
+
if (out.seq > commit3.seq) return out;
|
|
296
|
+
return commit3;
|
|
297
|
+
}, commitArr[0]);
|
|
298
|
+
let line = "";
|
|
299
|
+
commitArr.forEach(function(c) {
|
|
300
|
+
if (c === commit2) line += " *";
|
|
301
|
+
else line += " |";
|
|
302
|
+
});
|
|
303
|
+
const label = [
|
|
304
|
+
line,
|
|
305
|
+
commit2.id,
|
|
306
|
+
commit2.seq
|
|
307
|
+
];
|
|
308
|
+
for (const branch2 in state.records.branches) if (state.records.branches.get(branch2) === commit2.id) label.push(branch2);
|
|
309
|
+
log.debug(label.join(" "));
|
|
310
|
+
if (commit2.parents && commit2.parents.length == 2 && commit2.parents[0] && commit2.parents[1]) {
|
|
311
|
+
const newCommit = state.records.commits.get(commit2.parents[0]);
|
|
312
|
+
upsert(commitArr, commit2, newCommit);
|
|
313
|
+
if (commit2.parents[1]) commitArr.push(state.records.commits.get(commit2.parents[1]));
|
|
314
|
+
} else if (commit2.parents.length == 0) return;
|
|
315
|
+
else if (commit2.parents[0]) {
|
|
316
|
+
const newCommit = state.records.commits.get(commit2.parents[0]);
|
|
317
|
+
upsert(commitArr, commit2, newCommit);
|
|
318
|
+
}
|
|
319
|
+
commitArr = uniqBy(commitArr, (c) => c.id);
|
|
320
|
+
prettyPrintCommitHistory(commitArr);
|
|
321
|
+
}
|
|
322
|
+
__name$1(prettyPrintCommitHistory, "prettyPrintCommitHistory");
|
|
323
|
+
var prettyPrint = /* @__PURE__ */ __name$1(function() {
|
|
324
|
+
log.debug(state.records.commits);
|
|
325
|
+
const node = getCommitsArray()[0];
|
|
326
|
+
prettyPrintCommitHistory([node]);
|
|
327
|
+
}, "prettyPrint");
|
|
328
|
+
var clear2 = /* @__PURE__ */ __name$1(function() {
|
|
329
|
+
state.reset();
|
|
330
|
+
clear();
|
|
331
|
+
}, "clear");
|
|
332
|
+
var getBranchesAsObjArray = /* @__PURE__ */ __name$1(function() {
|
|
333
|
+
return [...state.records.branchConfig.values()].map((branchConfig, i) => {
|
|
334
|
+
if (branchConfig.order !== null && branchConfig.order !== void 0) return branchConfig;
|
|
335
|
+
return {
|
|
336
|
+
...branchConfig,
|
|
337
|
+
order: parseFloat(`0.${i}`)
|
|
338
|
+
};
|
|
339
|
+
}).sort((a, b) => (a.order ?? 0) - (b.order ?? 0)).map(({ name }) => ({ name }));
|
|
340
|
+
}, "getBranchesAsObjArray");
|
|
341
|
+
var getBranches = /* @__PURE__ */ __name$1(function() {
|
|
342
|
+
return state.records.branches;
|
|
343
|
+
}, "getBranches");
|
|
344
|
+
var getCommits = /* @__PURE__ */ __name$1(function() {
|
|
345
|
+
return state.records.commits;
|
|
346
|
+
}, "getCommits");
|
|
347
|
+
var getCommitsArray = /* @__PURE__ */ __name$1(function() {
|
|
348
|
+
const commitArr = [...state.records.commits.values()];
|
|
349
|
+
commitArr.forEach(function(o) {
|
|
350
|
+
log.debug(o.id);
|
|
351
|
+
});
|
|
352
|
+
commitArr.sort((a, b) => a.seq - b.seq);
|
|
353
|
+
return commitArr;
|
|
354
|
+
}, "getCommitsArray");
|
|
355
|
+
var db = {
|
|
356
|
+
commitType,
|
|
357
|
+
getConfig: getConfig3,
|
|
358
|
+
setDirection,
|
|
359
|
+
setOptions,
|
|
360
|
+
getOptions,
|
|
361
|
+
commit,
|
|
362
|
+
branch,
|
|
363
|
+
merge,
|
|
364
|
+
cherryPick,
|
|
365
|
+
checkout,
|
|
366
|
+
prettyPrint,
|
|
367
|
+
clear: clear2,
|
|
368
|
+
getBranchesAsObjArray,
|
|
369
|
+
getBranches,
|
|
370
|
+
getCommits,
|
|
371
|
+
getCommitsArray,
|
|
372
|
+
getCurrentBranch: /* @__PURE__ */ __name$1(function() {
|
|
373
|
+
return state.records.currBranch;
|
|
374
|
+
}, "getCurrentBranch"),
|
|
375
|
+
getDirection: /* @__PURE__ */ __name$1(function() {
|
|
376
|
+
return state.records.direction;
|
|
377
|
+
}, "getDirection"),
|
|
378
|
+
getHead: /* @__PURE__ */ __name$1(function() {
|
|
379
|
+
return state.records.head;
|
|
380
|
+
}, "getHead"),
|
|
381
|
+
setAccTitle,
|
|
382
|
+
getAccTitle,
|
|
383
|
+
getAccDescription,
|
|
384
|
+
setAccDescription,
|
|
385
|
+
setDiagramTitle,
|
|
386
|
+
getDiagramTitle
|
|
387
|
+
};
|
|
388
|
+
var populate = /* @__PURE__ */ __name$1((ast, db2) => {
|
|
389
|
+
populateCommonDb(ast, db2);
|
|
390
|
+
if (ast.dir) db2.setDirection(ast.dir);
|
|
391
|
+
for (const statement of ast.statements) parseStatement(statement, db2);
|
|
392
|
+
}, "populate");
|
|
393
|
+
var parseStatement = /* @__PURE__ */ __name$1((statement, db2) => {
|
|
394
|
+
const parser2 = {
|
|
395
|
+
Commit: /* @__PURE__ */ __name$1((stmt) => db2.commit(parseCommit(stmt)), "Commit"),
|
|
396
|
+
Branch: /* @__PURE__ */ __name$1((stmt) => db2.branch(parseBranch(stmt)), "Branch"),
|
|
397
|
+
Merge: /* @__PURE__ */ __name$1((stmt) => db2.merge(parseMerge(stmt)), "Merge"),
|
|
398
|
+
Checkout: /* @__PURE__ */ __name$1((stmt) => db2.checkout(parseCheckout(stmt)), "Checkout"),
|
|
399
|
+
CherryPicking: /* @__PURE__ */ __name$1((stmt) => db2.cherryPick(parseCherryPicking(stmt)), "CherryPicking")
|
|
400
|
+
}[statement.$type];
|
|
401
|
+
if (parser2) parser2(statement);
|
|
402
|
+
else log.error(`Unknown statement type: ${statement.$type}`);
|
|
403
|
+
}, "parseStatement");
|
|
404
|
+
var parseCommit = /* @__PURE__ */ __name$1((commit2) => {
|
|
405
|
+
return {
|
|
406
|
+
id: commit2.id,
|
|
407
|
+
msg: commit2.message ?? "",
|
|
408
|
+
type: commit2.type !== void 0 ? commitType[commit2.type] : commitType.NORMAL,
|
|
409
|
+
tags: commit2.tags ?? void 0
|
|
410
|
+
};
|
|
411
|
+
}, "parseCommit");
|
|
412
|
+
var parseBranch = /* @__PURE__ */ __name$1((branch2) => {
|
|
413
|
+
return {
|
|
414
|
+
name: branch2.name,
|
|
415
|
+
order: branch2.order ?? 0
|
|
416
|
+
};
|
|
417
|
+
}, "parseBranch");
|
|
418
|
+
var parseMerge = /* @__PURE__ */ __name$1((merge2) => {
|
|
419
|
+
return {
|
|
420
|
+
branch: merge2.branch,
|
|
421
|
+
id: merge2.id ?? "",
|
|
422
|
+
type: merge2.type !== void 0 ? commitType[merge2.type] : void 0,
|
|
423
|
+
tags: merge2.tags ?? void 0
|
|
424
|
+
};
|
|
425
|
+
}, "parseMerge");
|
|
426
|
+
var parseCheckout = /* @__PURE__ */ __name$1((checkout2) => {
|
|
427
|
+
return checkout2.branch;
|
|
428
|
+
}, "parseCheckout");
|
|
429
|
+
var parseCherryPicking = /* @__PURE__ */ __name$1((cherryPicking) => {
|
|
430
|
+
return {
|
|
431
|
+
id: cherryPicking.id,
|
|
432
|
+
targetId: "",
|
|
433
|
+
tags: cherryPicking.tags?.length === 0 ? void 0 : cherryPicking.tags,
|
|
434
|
+
parent: cherryPicking.parent
|
|
435
|
+
};
|
|
436
|
+
}, "parseCherryPicking");
|
|
437
|
+
var parser = { parse: /* @__PURE__ */ __name$1(async (input) => {
|
|
438
|
+
const ast = await parse("gitGraph", input);
|
|
439
|
+
log.debug(ast);
|
|
440
|
+
populate(ast, db);
|
|
441
|
+
}, "parse") };
|
|
442
|
+
var LAYOUT_OFFSET = 10;
|
|
443
|
+
var COMMIT_STEP = 40;
|
|
444
|
+
var PX = 4;
|
|
445
|
+
var PY = 2;
|
|
446
|
+
var THEME_COLOR_LIMIT = 8;
|
|
447
|
+
var REDUX_GEOMETRY_THEMES = /* @__PURE__ */ new Set([
|
|
448
|
+
"redux",
|
|
449
|
+
"redux-dark",
|
|
450
|
+
"redux-color",
|
|
451
|
+
"redux-dark-color"
|
|
452
|
+
]);
|
|
453
|
+
var REDUX_BRANCH_LABEL_PADDING_Y = 12;
|
|
454
|
+
var COLOR_THEMES = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]);
|
|
455
|
+
var DARK_THEMES = /* @__PURE__ */ new Set([
|
|
456
|
+
"dark",
|
|
457
|
+
"redux-dark",
|
|
458
|
+
"redux-dark-color",
|
|
459
|
+
"neo-dark"
|
|
460
|
+
]);
|
|
461
|
+
var calcColorIndex = /* @__PURE__ */ __name$1((rawIndex, limit, avoidDefaultColor = false) => {
|
|
462
|
+
if (avoidDefaultColor && rawIndex > 0) return (rawIndex - 1) % (limit - 1) + 1;
|
|
463
|
+
return rawIndex % limit;
|
|
464
|
+
}, "calcColorIndex");
|
|
465
|
+
var branchPos = /* @__PURE__ */ new Map();
|
|
466
|
+
var commitPos = /* @__PURE__ */ new Map();
|
|
467
|
+
var defaultPos = 30;
|
|
468
|
+
var allCommitsDict = /* @__PURE__ */ new Map();
|
|
469
|
+
var lanes = [];
|
|
470
|
+
var maxPos = 0;
|
|
471
|
+
var dir = "LR";
|
|
472
|
+
var clear3 = /* @__PURE__ */ __name$1(() => {
|
|
473
|
+
branchPos.clear();
|
|
474
|
+
commitPos.clear();
|
|
475
|
+
allCommitsDict.clear();
|
|
476
|
+
maxPos = 0;
|
|
477
|
+
lanes = [];
|
|
478
|
+
dir = "LR";
|
|
479
|
+
}, "clear");
|
|
480
|
+
var drawText = /* @__PURE__ */ __name$1((txt) => {
|
|
481
|
+
const svgLabel = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
482
|
+
(typeof txt === "string" ? txt.split(/\\n|\n|<br\s*\/?>/gi) : txt).forEach((row) => {
|
|
483
|
+
const tspan = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
484
|
+
tspan.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve");
|
|
485
|
+
tspan.setAttribute("dy", "1em");
|
|
486
|
+
tspan.setAttribute("x", "0");
|
|
487
|
+
tspan.setAttribute("class", "row");
|
|
488
|
+
tspan.textContent = row.trim();
|
|
489
|
+
svgLabel.appendChild(tspan);
|
|
490
|
+
});
|
|
491
|
+
return svgLabel;
|
|
492
|
+
}, "drawText");
|
|
493
|
+
var findClosestParent = /* @__PURE__ */ __name$1((parents) => {
|
|
494
|
+
let closestParent;
|
|
495
|
+
let comparisonFunc;
|
|
496
|
+
let targetPosition;
|
|
497
|
+
if (dir === "BT") {
|
|
498
|
+
comparisonFunc = /* @__PURE__ */ __name$1((a, b) => a <= b, "comparisonFunc");
|
|
499
|
+
targetPosition = Infinity;
|
|
500
|
+
} else {
|
|
501
|
+
comparisonFunc = /* @__PURE__ */ __name$1((a, b) => a >= b, "comparisonFunc");
|
|
502
|
+
targetPosition = 0;
|
|
503
|
+
}
|
|
504
|
+
parents.forEach((parent) => {
|
|
505
|
+
const parentPosition = dir === "TB" || dir == "BT" ? commitPos.get(parent)?.y : commitPos.get(parent)?.x;
|
|
506
|
+
if (parentPosition !== void 0 && comparisonFunc(parentPosition, targetPosition)) {
|
|
507
|
+
closestParent = parent;
|
|
508
|
+
targetPosition = parentPosition;
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
return closestParent;
|
|
512
|
+
}, "findClosestParent");
|
|
513
|
+
var findClosestParentBT = /* @__PURE__ */ __name$1((parents) => {
|
|
514
|
+
let closestParent = "";
|
|
515
|
+
let maxPosition = Infinity;
|
|
516
|
+
parents.forEach((parent) => {
|
|
517
|
+
const parentPosition = commitPos.get(parent).y;
|
|
518
|
+
if (parentPosition <= maxPosition) {
|
|
519
|
+
closestParent = parent;
|
|
520
|
+
maxPosition = parentPosition;
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
return closestParent || void 0;
|
|
524
|
+
}, "findClosestParentBT");
|
|
525
|
+
var setParallelBTPos = /* @__PURE__ */ __name$1((sortedKeys, commits, defaultPos2) => {
|
|
526
|
+
let curPos = defaultPos2;
|
|
527
|
+
let maxPosition = defaultPos2;
|
|
528
|
+
const roots = [];
|
|
529
|
+
sortedKeys.forEach((key) => {
|
|
530
|
+
const commit2 = commits.get(key);
|
|
531
|
+
if (!commit2) throw new Error(`Commit not found for key ${key}`);
|
|
532
|
+
if (commit2.parents.length) {
|
|
533
|
+
curPos = calculateCommitPosition(commit2);
|
|
534
|
+
maxPosition = Math.max(curPos, maxPosition);
|
|
535
|
+
} else roots.push(commit2);
|
|
536
|
+
setCommitPosition(commit2, curPos);
|
|
537
|
+
});
|
|
538
|
+
curPos = maxPosition;
|
|
539
|
+
roots.forEach((commit2) => {
|
|
540
|
+
setRootPosition(commit2, curPos, defaultPos2);
|
|
541
|
+
});
|
|
542
|
+
sortedKeys.forEach((key) => {
|
|
543
|
+
const commit2 = commits.get(key);
|
|
544
|
+
if (commit2?.parents.length) {
|
|
545
|
+
const closestParent = findClosestParentBT(commit2.parents);
|
|
546
|
+
curPos = commitPos.get(closestParent).y - COMMIT_STEP;
|
|
547
|
+
if (curPos <= maxPosition) maxPosition = curPos;
|
|
548
|
+
const x = branchPos.get(commit2.branch).pos;
|
|
549
|
+
const y = curPos - LAYOUT_OFFSET;
|
|
550
|
+
commitPos.set(commit2.id, {
|
|
551
|
+
x,
|
|
552
|
+
y
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
}, "setParallelBTPos");
|
|
557
|
+
var findClosestParentPos = /* @__PURE__ */ __name$1((commit2) => {
|
|
558
|
+
const closestParent = findClosestParent(commit2.parents.filter((p) => p !== null));
|
|
559
|
+
if (!closestParent) throw new Error(`Closest parent not found for commit ${commit2.id}`);
|
|
560
|
+
const closestParentPos = commitPos.get(closestParent)?.y;
|
|
561
|
+
if (closestParentPos === void 0) throw new Error(`Closest parent position not found for commit ${commit2.id}`);
|
|
562
|
+
return closestParentPos;
|
|
563
|
+
}, "findClosestParentPos");
|
|
564
|
+
var calculateCommitPosition = /* @__PURE__ */ __name$1((commit2) => {
|
|
565
|
+
return findClosestParentPos(commit2) + COMMIT_STEP;
|
|
566
|
+
}, "calculateCommitPosition");
|
|
567
|
+
var setCommitPosition = /* @__PURE__ */ __name$1((commit2, curPos) => {
|
|
568
|
+
const branch2 = branchPos.get(commit2.branch);
|
|
569
|
+
if (!branch2) throw new Error(`Branch not found for commit ${commit2.id}`);
|
|
570
|
+
const x = branch2.pos;
|
|
571
|
+
const y = curPos + LAYOUT_OFFSET;
|
|
572
|
+
commitPos.set(commit2.id, {
|
|
573
|
+
x,
|
|
574
|
+
y
|
|
575
|
+
});
|
|
576
|
+
return {
|
|
577
|
+
x,
|
|
578
|
+
y
|
|
579
|
+
};
|
|
580
|
+
}, "setCommitPosition");
|
|
581
|
+
var setRootPosition = /* @__PURE__ */ __name$1((commit2, curPos, defaultPos2) => {
|
|
582
|
+
const branch2 = branchPos.get(commit2.branch);
|
|
583
|
+
if (!branch2) throw new Error(`Branch not found for commit ${commit2.id}`);
|
|
584
|
+
const y = curPos + defaultPos2;
|
|
585
|
+
const x = branch2.pos;
|
|
586
|
+
commitPos.set(commit2.id, {
|
|
587
|
+
x,
|
|
588
|
+
y
|
|
589
|
+
});
|
|
590
|
+
}, "setRootPosition");
|
|
591
|
+
var drawCommitBullet = /* @__PURE__ */ __name$1((gBullets, commit2, commitPosition, typeClass, branchIndex, commitSymbolType) => {
|
|
592
|
+
const { theme } = getConfig2();
|
|
593
|
+
const useReduxGeometry = REDUX_GEOMETRY_THEMES.has(theme ?? "");
|
|
594
|
+
const useColorTheme = COLOR_THEMES.has(theme ?? "");
|
|
595
|
+
const isDark = DARK_THEMES.has(theme ?? "");
|
|
596
|
+
if (commitSymbolType === commitType.HIGHLIGHT) {
|
|
597
|
+
gBullets.append("rect").attr("x", commitPosition.x - 10 + (useReduxGeometry ? 3 : 0)).attr("y", commitPosition.y - 10 + (useReduxGeometry ? 3 : 0)).attr("width", useReduxGeometry ? 14 : 20).attr("height", useReduxGeometry ? 14 : 20).attr("class", `commit ${commit2.id} commit-highlight${calcColorIndex(branchIndex, THEME_COLOR_LIMIT, useColorTheme)} ${typeClass}-outer`);
|
|
598
|
+
gBullets.append("rect").attr("x", commitPosition.x - 6 + (useReduxGeometry ? 2 : 0)).attr("y", commitPosition.y - 6 + (useReduxGeometry ? 2 : 0)).attr("width", useReduxGeometry ? 8 : 12).attr("height", useReduxGeometry ? 8 : 12).attr("class", `commit ${commit2.id} commit${calcColorIndex(branchIndex, THEME_COLOR_LIMIT, useColorTheme)} ${typeClass}-inner`);
|
|
599
|
+
} else if (commitSymbolType === commitType.CHERRY_PICK) {
|
|
600
|
+
gBullets.append("circle").attr("cx", commitPosition.x).attr("cy", commitPosition.y).attr("r", useReduxGeometry ? 7 : 10).attr("class", `commit ${commit2.id} ${typeClass}`);
|
|
601
|
+
gBullets.append("circle").attr("cx", commitPosition.x - 3).attr("cy", commitPosition.y + 2).attr("r", useReduxGeometry ? 2.5 : 2.75).attr("fill", isDark ? "#000000" : "#fff").attr("class", `commit ${commit2.id} ${typeClass}`);
|
|
602
|
+
gBullets.append("circle").attr("cx", commitPosition.x + 3).attr("cy", commitPosition.y + 2).attr("r", useReduxGeometry ? 2.5 : 2.75).attr("fill", isDark ? "#000000" : "#fff").attr("class", `commit ${commit2.id} ${typeClass}`);
|
|
603
|
+
gBullets.append("line").attr("x1", commitPosition.x + 3).attr("y1", commitPosition.y + 1).attr("x2", commitPosition.x).attr("y2", commitPosition.y - 5).attr("stroke", isDark ? "#000000" : "#fff").attr("class", `commit ${commit2.id} ${typeClass}`);
|
|
604
|
+
gBullets.append("line").attr("x1", commitPosition.x - 3).attr("y1", commitPosition.y + 1).attr("x2", commitPosition.x).attr("y2", commitPosition.y - 5).attr("stroke", isDark ? "#000000" : "#fff").attr("class", `commit ${commit2.id} ${typeClass}`);
|
|
605
|
+
} else {
|
|
606
|
+
const circle = gBullets.append("circle");
|
|
607
|
+
circle.attr("cx", commitPosition.x);
|
|
608
|
+
circle.attr("cy", commitPosition.y);
|
|
609
|
+
circle.attr("r", useReduxGeometry ? 7 : 10);
|
|
610
|
+
circle.attr("class", `commit ${commit2.id} commit${calcColorIndex(branchIndex, THEME_COLOR_LIMIT, useColorTheme)}`);
|
|
611
|
+
if (commitSymbolType === commitType.MERGE) {
|
|
612
|
+
const circle2 = gBullets.append("circle");
|
|
613
|
+
circle2.attr("cx", commitPosition.x);
|
|
614
|
+
circle2.attr("cy", commitPosition.y);
|
|
615
|
+
circle2.attr("r", useReduxGeometry ? 5 : 6);
|
|
616
|
+
circle2.attr("class", `commit ${typeClass} ${commit2.id} commit${calcColorIndex(branchIndex, THEME_COLOR_LIMIT, useColorTheme)}`);
|
|
617
|
+
}
|
|
618
|
+
if (commitSymbolType === commitType.REVERSE) {
|
|
619
|
+
const cross = gBullets.append("path");
|
|
620
|
+
const constValue = useReduxGeometry ? 4 : 5;
|
|
621
|
+
cross.attr("d", `M ${commitPosition.x - constValue},${commitPosition.y - constValue}L${commitPosition.x + constValue},${commitPosition.y + constValue}M${commitPosition.x - constValue},${commitPosition.y + constValue}L${commitPosition.x + constValue},${commitPosition.y - constValue}`).attr("class", `commit ${typeClass} ${commit2.id} commit${calcColorIndex(branchIndex, THEME_COLOR_LIMIT, useColorTheme)}`);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}, "drawCommitBullet");
|
|
625
|
+
var drawCommitLabel = /* @__PURE__ */ __name$1((gLabels, commit2, commitPosition, pos, gitGraphConfig) => {
|
|
626
|
+
if (commit2.type !== commitType.CHERRY_PICK && (commit2.customId && commit2.type === commitType.MERGE || commit2.type !== commitType.MERGE) && gitGraphConfig.showCommitLabel) {
|
|
627
|
+
const wrapper = gLabels.append("g");
|
|
628
|
+
const labelBkg = wrapper.insert("rect").attr("class", "commit-label-bkg");
|
|
629
|
+
const text = wrapper.append("text").attr("x", pos).attr("y", commitPosition.y + 25).attr("class", "commit-label").text(commit2.id);
|
|
630
|
+
const bbox = text.node()?.getBBox();
|
|
631
|
+
if (bbox) {
|
|
632
|
+
labelBkg.attr("x", commitPosition.posWithOffset - bbox.width / 2 - PY).attr("y", commitPosition.y + 13.5).attr("width", bbox.width + 2 * PY).attr("height", bbox.height + 2 * PY);
|
|
633
|
+
if (dir === "TB" || dir === "BT") {
|
|
634
|
+
labelBkg.attr("x", commitPosition.x - (bbox.width + 4 * PX + 5)).attr("y", commitPosition.y - 12);
|
|
635
|
+
text.attr("x", commitPosition.x - (bbox.width + 4 * PX)).attr("y", commitPosition.y + bbox.height - 12);
|
|
636
|
+
} else text.attr("x", commitPosition.posWithOffset - bbox.width / 2);
|
|
637
|
+
if (gitGraphConfig.rotateCommitLabel) if (dir === "TB" || dir === "BT") {
|
|
638
|
+
text.attr("transform", "rotate(-45, " + commitPosition.x + ", " + commitPosition.y + ")");
|
|
639
|
+
labelBkg.attr("transform", "rotate(-45, " + commitPosition.x + ", " + commitPosition.y + ")");
|
|
640
|
+
} else {
|
|
641
|
+
const r_x = -7.5 - (bbox.width + 10) / 25 * 9.5;
|
|
642
|
+
const r_y = 10 + bbox.width / 25 * 8.5;
|
|
643
|
+
wrapper.attr("transform", "translate(" + r_x + ", " + r_y + ") rotate(-45, " + pos + ", " + commitPosition.y + ")");
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}, "drawCommitLabel");
|
|
648
|
+
var drawCommitTags = /* @__PURE__ */ __name$1((gLabels, commit2, commitPosition, pos) => {
|
|
649
|
+
if (commit2.tags.length > 0) {
|
|
650
|
+
let yOffset = 0;
|
|
651
|
+
let maxTagBboxWidth = 0;
|
|
652
|
+
let maxTagBboxHeight = 0;
|
|
653
|
+
const tagElements = [];
|
|
654
|
+
for (const tagValue of commit2.tags.reverse()) {
|
|
655
|
+
const rect = gLabels.insert("polygon");
|
|
656
|
+
const hole = gLabels.append("circle");
|
|
657
|
+
const tag = gLabels.append("text").attr("y", commitPosition.y - 16 - yOffset).attr("class", "tag-label").text(tagValue);
|
|
658
|
+
const tagBbox = tag.node()?.getBBox();
|
|
659
|
+
if (!tagBbox) throw new Error("Tag bbox not found");
|
|
660
|
+
maxTagBboxWidth = Math.max(maxTagBboxWidth, tagBbox.width);
|
|
661
|
+
maxTagBboxHeight = Math.max(maxTagBboxHeight, tagBbox.height);
|
|
662
|
+
tag.attr("x", commitPosition.posWithOffset - tagBbox.width / 2);
|
|
663
|
+
tagElements.push({
|
|
664
|
+
tag,
|
|
665
|
+
hole,
|
|
666
|
+
rect,
|
|
667
|
+
yOffset
|
|
668
|
+
});
|
|
669
|
+
yOffset += 20;
|
|
670
|
+
}
|
|
671
|
+
for (const { tag, hole, rect, yOffset: yOffset2 } of tagElements) {
|
|
672
|
+
const h2 = maxTagBboxHeight / 2;
|
|
673
|
+
const ly = commitPosition.y - 19.2 - yOffset2;
|
|
674
|
+
rect.attr("class", "tag-label-bkg").attr("points", `
|
|
675
|
+
${pos - maxTagBboxWidth / 2 - PX / 2},${ly + PY}
|
|
676
|
+
${pos - maxTagBboxWidth / 2 - PX / 2},${ly - PY}
|
|
677
|
+
${commitPosition.posWithOffset - maxTagBboxWidth / 2 - PX},${ly - h2 - PY}
|
|
678
|
+
${commitPosition.posWithOffset + maxTagBboxWidth / 2 + PX},${ly - h2 - PY}
|
|
679
|
+
${commitPosition.posWithOffset + maxTagBboxWidth / 2 + PX},${ly + h2 + PY}
|
|
680
|
+
${commitPosition.posWithOffset - maxTagBboxWidth / 2 - PX},${ly + h2 + PY}`);
|
|
681
|
+
hole.attr("cy", ly).attr("cx", pos - maxTagBboxWidth / 2 + PX / 2).attr("r", 1.5).attr("class", "tag-hole");
|
|
682
|
+
if (dir === "TB" || dir === "BT") {
|
|
683
|
+
const yOrigin = pos + yOffset2;
|
|
684
|
+
rect.attr("class", "tag-label-bkg").attr("points", `
|
|
685
|
+
${commitPosition.x},${yOrigin + 2}
|
|
686
|
+
${commitPosition.x},${yOrigin - 2}
|
|
687
|
+
${commitPosition.x + LAYOUT_OFFSET},${yOrigin - h2 - 2}
|
|
688
|
+
${commitPosition.x + LAYOUT_OFFSET + maxTagBboxWidth + 4},${yOrigin - h2 - 2}
|
|
689
|
+
${commitPosition.x + LAYOUT_OFFSET + maxTagBboxWidth + 4},${yOrigin + h2 + 2}
|
|
690
|
+
${commitPosition.x + LAYOUT_OFFSET},${yOrigin + h2 + 2}`).attr("transform", "translate(12,12) rotate(45, " + commitPosition.x + "," + pos + ")");
|
|
691
|
+
hole.attr("cx", commitPosition.x + PX / 2).attr("cy", yOrigin).attr("transform", "translate(12,12) rotate(45, " + commitPosition.x + "," + pos + ")");
|
|
692
|
+
tag.attr("x", commitPosition.x + 5).attr("y", yOrigin + 3).attr("transform", "translate(14,14) rotate(45, " + commitPosition.x + "," + pos + ")");
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}, "drawCommitTags");
|
|
697
|
+
var getCommitClassType = /* @__PURE__ */ __name$1((commit2) => {
|
|
698
|
+
switch (commit2.customType ?? commit2.type) {
|
|
699
|
+
case commitType.NORMAL: return "commit-normal";
|
|
700
|
+
case commitType.REVERSE: return "commit-reverse";
|
|
701
|
+
case commitType.HIGHLIGHT: return "commit-highlight";
|
|
702
|
+
case commitType.MERGE: return "commit-merge";
|
|
703
|
+
case commitType.CHERRY_PICK: return "commit-cherry-pick";
|
|
704
|
+
default: return "commit-normal";
|
|
705
|
+
}
|
|
706
|
+
}, "getCommitClassType");
|
|
707
|
+
var calculatePosition = /* @__PURE__ */ __name$1((commit2, dir2, pos, commitPos2) => {
|
|
708
|
+
const defaultCommitPosition = {
|
|
709
|
+
x: 0,
|
|
710
|
+
y: 0
|
|
711
|
+
};
|
|
712
|
+
if (commit2.parents.length > 0) {
|
|
713
|
+
const closestParent = findClosestParent(commit2.parents);
|
|
714
|
+
if (closestParent) {
|
|
715
|
+
const parentPosition = commitPos2.get(closestParent) ?? defaultCommitPosition;
|
|
716
|
+
if (dir2 === "TB") return parentPosition.y + COMMIT_STEP;
|
|
717
|
+
else if (dir2 === "BT") return (commitPos2.get(commit2.id) ?? defaultCommitPosition).y - COMMIT_STEP;
|
|
718
|
+
else return parentPosition.x + COMMIT_STEP;
|
|
719
|
+
}
|
|
720
|
+
} else if (dir2 === "TB") return defaultPos;
|
|
721
|
+
else if (dir2 === "BT") return (commitPos2.get(commit2.id) ?? defaultCommitPosition).y - COMMIT_STEP;
|
|
722
|
+
else return 0;
|
|
723
|
+
return 0;
|
|
724
|
+
}, "calculatePosition");
|
|
725
|
+
var getCommitPosition = /* @__PURE__ */ __name$1((commit2, pos, isParallelCommits) => {
|
|
726
|
+
const posWithOffset = dir === "BT" && isParallelCommits ? pos : pos + LAYOUT_OFFSET;
|
|
727
|
+
const branchY = branchPos.get(commit2.branch)?.pos;
|
|
728
|
+
const x = dir === "TB" || dir === "BT" ? branchPos.get(commit2.branch)?.pos : posWithOffset;
|
|
729
|
+
if (x === void 0 || branchY === void 0) throw new Error(`Position were undefined for commit ${commit2.id}`);
|
|
730
|
+
const useReduxGeometry = REDUX_GEOMETRY_THEMES.has(getConfig2().theme ?? "");
|
|
731
|
+
return {
|
|
732
|
+
x,
|
|
733
|
+
y: dir === "TB" || dir === "BT" ? posWithOffset : branchY + (useReduxGeometry ? REDUX_BRANCH_LABEL_PADDING_Y / 2 + 1 : -2),
|
|
734
|
+
posWithOffset
|
|
735
|
+
};
|
|
736
|
+
}, "getCommitPosition");
|
|
737
|
+
var drawCommits = /* @__PURE__ */ __name$1((svg, commits, modifyGraph, gitGraphConfig) => {
|
|
738
|
+
const gBullets = svg.append("g").attr("class", "commit-bullets");
|
|
739
|
+
const gLabels = svg.append("g").attr("class", "commit-labels");
|
|
740
|
+
let pos = dir === "TB" || dir === "BT" ? defaultPos : 0;
|
|
741
|
+
const keys = [...commits.keys()];
|
|
742
|
+
const isParallelCommits = gitGraphConfig.parallelCommits ?? false;
|
|
743
|
+
const sortKeys = /* @__PURE__ */ __name$1((a, b) => {
|
|
744
|
+
const seqA = commits.get(a)?.seq;
|
|
745
|
+
const seqB = commits.get(b)?.seq;
|
|
746
|
+
return seqA !== void 0 && seqB !== void 0 ? seqA - seqB : 0;
|
|
747
|
+
}, "sortKeys");
|
|
748
|
+
let sortedKeys = keys.sort(sortKeys);
|
|
749
|
+
if (dir === "BT") {
|
|
750
|
+
if (isParallelCommits) setParallelBTPos(sortedKeys, commits, pos);
|
|
751
|
+
sortedKeys = sortedKeys.reverse();
|
|
752
|
+
}
|
|
753
|
+
sortedKeys.forEach((key) => {
|
|
754
|
+
const commit2 = commits.get(key);
|
|
755
|
+
if (!commit2) throw new Error(`Commit not found for key ${key}`);
|
|
756
|
+
if (isParallelCommits) pos = calculatePosition(commit2, dir, pos, commitPos);
|
|
757
|
+
const commitPosition = getCommitPosition(commit2, pos, isParallelCommits);
|
|
758
|
+
if (modifyGraph) {
|
|
759
|
+
const typeClass = getCommitClassType(commit2);
|
|
760
|
+
const commitSymbolType = commit2.customType ?? commit2.type;
|
|
761
|
+
drawCommitBullet(gBullets, commit2, commitPosition, typeClass, branchPos.get(commit2.branch)?.index ?? 0, commitSymbolType);
|
|
762
|
+
drawCommitLabel(gLabels, commit2, commitPosition, pos, gitGraphConfig);
|
|
763
|
+
drawCommitTags(gLabels, commit2, commitPosition, pos);
|
|
764
|
+
}
|
|
765
|
+
if (dir === "TB" || dir === "BT") commitPos.set(commit2.id, {
|
|
766
|
+
x: commitPosition.x,
|
|
767
|
+
y: commitPosition.posWithOffset
|
|
768
|
+
});
|
|
769
|
+
else commitPos.set(commit2.id, {
|
|
770
|
+
x: commitPosition.posWithOffset,
|
|
771
|
+
y: commitPosition.y
|
|
772
|
+
});
|
|
773
|
+
pos = dir === "BT" && isParallelCommits ? pos + COMMIT_STEP : pos + COMMIT_STEP + LAYOUT_OFFSET;
|
|
774
|
+
if (pos > maxPos) maxPos = pos;
|
|
775
|
+
});
|
|
776
|
+
}, "drawCommits");
|
|
777
|
+
var shouldRerouteArrow = /* @__PURE__ */ __name$1((commitA, commitB, p1, p2, allCommits) => {
|
|
778
|
+
const branchToGetCurve = (dir === "TB" || dir === "BT" ? p1.x < p2.x : p1.y < p2.y) ? commitB.branch : commitA.branch;
|
|
779
|
+
const isOnBranchToGetCurve = /* @__PURE__ */ __name$1((x) => x.branch === branchToGetCurve, "isOnBranchToGetCurve");
|
|
780
|
+
const isBetweenCommits = /* @__PURE__ */ __name$1((x) => x.seq > commitA.seq && x.seq < commitB.seq, "isBetweenCommits");
|
|
781
|
+
return [...allCommits.values()].some((commitX) => {
|
|
782
|
+
return isBetweenCommits(commitX) && isOnBranchToGetCurve(commitX);
|
|
783
|
+
});
|
|
784
|
+
}, "shouldRerouteArrow");
|
|
785
|
+
var findLane = /* @__PURE__ */ __name$1((y1, y2, depth = 0) => {
|
|
786
|
+
const candidate = y1 + Math.abs(y1 - y2) / 2;
|
|
787
|
+
if (depth > 5) return candidate;
|
|
788
|
+
if (lanes.every((lane) => Math.abs(lane - candidate) >= 10)) {
|
|
789
|
+
lanes.push(candidate);
|
|
790
|
+
return candidate;
|
|
791
|
+
}
|
|
792
|
+
return findLane(y1, y2 - Math.abs(y1 - y2) / 5, depth + 1);
|
|
793
|
+
}, "findLane");
|
|
794
|
+
var drawArrow = /* @__PURE__ */ __name$1((svg, commitA, commitB, allCommits) => {
|
|
795
|
+
const { theme: arrowTheme } = getConfig2();
|
|
796
|
+
const useColorTheme = COLOR_THEMES.has(arrowTheme ?? "");
|
|
797
|
+
const p1 = commitPos.get(commitA.id);
|
|
798
|
+
const p2 = commitPos.get(commitB.id);
|
|
799
|
+
if (p1 === void 0 || p2 === void 0) throw new Error(`Commit positions not found for commits ${commitA.id} and ${commitB.id}`);
|
|
800
|
+
const arrowNeedsRerouting = shouldRerouteArrow(commitA, commitB, p1, p2, allCommits);
|
|
801
|
+
let arc = "";
|
|
802
|
+
let arc2 = "";
|
|
803
|
+
let radius = 0;
|
|
804
|
+
let offset = 0;
|
|
805
|
+
let colorClassNum = branchPos.get(commitB.branch)?.index;
|
|
806
|
+
if (commitB.type === commitType.MERGE && commitA.id !== commitB.parents[0]) colorClassNum = branchPos.get(commitA.branch)?.index;
|
|
807
|
+
let lineDef;
|
|
808
|
+
if (arrowNeedsRerouting) {
|
|
809
|
+
arc = "A 10 10, 0, 0, 0,";
|
|
810
|
+
arc2 = "A 10 10, 0, 0, 1,";
|
|
811
|
+
radius = 10;
|
|
812
|
+
offset = 10;
|
|
813
|
+
const lineY = p1.y < p2.y ? findLane(p1.y, p2.y) : findLane(p2.y, p1.y);
|
|
814
|
+
const lineX = p1.x < p2.x ? findLane(p1.x, p2.x) : findLane(p2.x, p1.x);
|
|
815
|
+
if (dir === "TB") if (p1.x < p2.x) lineDef = `M ${p1.x} ${p1.y} L ${lineX - radius} ${p1.y} ${arc2} ${lineX} ${p1.y + offset} L ${lineX} ${p2.y - radius} ${arc} ${lineX + offset} ${p2.y} L ${p2.x} ${p2.y}`;
|
|
816
|
+
else {
|
|
817
|
+
colorClassNum = branchPos.get(commitA.branch)?.index;
|
|
818
|
+
lineDef = `M ${p1.x} ${p1.y} L ${lineX + radius} ${p1.y} ${arc} ${lineX} ${p1.y + offset} L ${lineX} ${p2.y - radius} ${arc2} ${lineX - offset} ${p2.y} L ${p2.x} ${p2.y}`;
|
|
819
|
+
}
|
|
820
|
+
else if (dir === "BT") if (p1.x < p2.x) lineDef = `M ${p1.x} ${p1.y} L ${lineX - radius} ${p1.y} ${arc} ${lineX} ${p1.y - offset} L ${lineX} ${p2.y + radius} ${arc2} ${lineX + offset} ${p2.y} L ${p2.x} ${p2.y}`;
|
|
821
|
+
else {
|
|
822
|
+
colorClassNum = branchPos.get(commitA.branch)?.index;
|
|
823
|
+
lineDef = `M ${p1.x} ${p1.y} L ${lineX + radius} ${p1.y} ${arc2} ${lineX} ${p1.y - offset} L ${lineX} ${p2.y + radius} ${arc} ${lineX - offset} ${p2.y} L ${p2.x} ${p2.y}`;
|
|
824
|
+
}
|
|
825
|
+
else if (p1.y < p2.y) lineDef = `M ${p1.x} ${p1.y} L ${p1.x} ${lineY - radius} ${arc} ${p1.x + offset} ${lineY} L ${p2.x - radius} ${lineY} ${arc2} ${p2.x} ${lineY + offset} L ${p2.x} ${p2.y}`;
|
|
826
|
+
else {
|
|
827
|
+
colorClassNum = branchPos.get(commitA.branch)?.index;
|
|
828
|
+
lineDef = `M ${p1.x} ${p1.y} L ${p1.x} ${lineY + radius} ${arc2} ${p1.x + offset} ${lineY} L ${p2.x - radius} ${lineY} ${arc} ${p2.x} ${lineY - offset} L ${p2.x} ${p2.y}`;
|
|
829
|
+
}
|
|
830
|
+
} else {
|
|
831
|
+
arc = "A 20 20, 0, 0, 0,";
|
|
832
|
+
arc2 = "A 20 20, 0, 0, 1,";
|
|
833
|
+
radius = 20;
|
|
834
|
+
offset = 20;
|
|
835
|
+
if (dir === "TB") {
|
|
836
|
+
if (p1.x < p2.x) if (commitB.type === commitType.MERGE && commitA.id !== commitB.parents[0]) lineDef = `M ${p1.x} ${p1.y} L ${p1.x} ${p2.y - radius} ${arc} ${p1.x + offset} ${p2.y} L ${p2.x} ${p2.y}`;
|
|
837
|
+
else lineDef = `M ${p1.x} ${p1.y} L ${p2.x - radius} ${p1.y} ${arc2} ${p2.x} ${p1.y + offset} L ${p2.x} ${p2.y}`;
|
|
838
|
+
if (p1.x > p2.x) {
|
|
839
|
+
arc = "A 20 20, 0, 0, 0,";
|
|
840
|
+
arc2 = "A 20 20, 0, 0, 1,";
|
|
841
|
+
radius = 20;
|
|
842
|
+
offset = 20;
|
|
843
|
+
if (commitB.type === commitType.MERGE && commitA.id !== commitB.parents[0]) lineDef = `M ${p1.x} ${p1.y} L ${p1.x} ${p2.y - radius} ${arc2} ${p1.x - offset} ${p2.y} L ${p2.x} ${p2.y}`;
|
|
844
|
+
else lineDef = `M ${p1.x} ${p1.y} L ${p2.x + radius} ${p1.y} ${arc} ${p2.x} ${p1.y + offset} L ${p2.x} ${p2.y}`;
|
|
845
|
+
}
|
|
846
|
+
if (p1.x === p2.x) lineDef = `M ${p1.x} ${p1.y} L ${p2.x} ${p2.y}`;
|
|
847
|
+
} else if (dir === "BT") {
|
|
848
|
+
if (p1.x < p2.x) if (commitB.type === commitType.MERGE && commitA.id !== commitB.parents[0]) lineDef = `M ${p1.x} ${p1.y} L ${p1.x} ${p2.y + radius} ${arc2} ${p1.x + offset} ${p2.y} L ${p2.x} ${p2.y}`;
|
|
849
|
+
else lineDef = `M ${p1.x} ${p1.y} L ${p2.x - radius} ${p1.y} ${arc} ${p2.x} ${p1.y - offset} L ${p2.x} ${p2.y}`;
|
|
850
|
+
if (p1.x > p2.x) {
|
|
851
|
+
arc = "A 20 20, 0, 0, 0,";
|
|
852
|
+
arc2 = "A 20 20, 0, 0, 1,";
|
|
853
|
+
radius = 20;
|
|
854
|
+
offset = 20;
|
|
855
|
+
if (commitB.type === commitType.MERGE && commitA.id !== commitB.parents[0]) lineDef = `M ${p1.x} ${p1.y} L ${p1.x} ${p2.y + radius} ${arc} ${p1.x - offset} ${p2.y} L ${p2.x} ${p2.y}`;
|
|
856
|
+
else lineDef = `M ${p1.x} ${p1.y} L ${p2.x + radius} ${p1.y} ${arc2} ${p2.x} ${p1.y - offset} L ${p2.x} ${p2.y}`;
|
|
857
|
+
}
|
|
858
|
+
if (p1.x === p2.x) lineDef = `M ${p1.x} ${p1.y} L ${p2.x} ${p2.y}`;
|
|
859
|
+
} else {
|
|
860
|
+
if (p1.y < p2.y) if (commitB.type === commitType.MERGE && commitA.id !== commitB.parents[0]) lineDef = `M ${p1.x} ${p1.y} L ${p2.x - radius} ${p1.y} ${arc2} ${p2.x} ${p1.y + offset} L ${p2.x} ${p2.y}`;
|
|
861
|
+
else lineDef = `M ${p1.x} ${p1.y} L ${p1.x} ${p2.y - radius} ${arc} ${p1.x + offset} ${p2.y} L ${p2.x} ${p2.y}`;
|
|
862
|
+
if (p1.y > p2.y) if (commitB.type === commitType.MERGE && commitA.id !== commitB.parents[0]) lineDef = `M ${p1.x} ${p1.y} L ${p2.x - radius} ${p1.y} ${arc} ${p2.x} ${p1.y - offset} L ${p2.x} ${p2.y}`;
|
|
863
|
+
else lineDef = `M ${p1.x} ${p1.y} L ${p1.x} ${p2.y + radius} ${arc2} ${p1.x + offset} ${p2.y} L ${p2.x} ${p2.y}`;
|
|
864
|
+
if (p1.y === p2.y) lineDef = `M ${p1.x} ${p1.y} L ${p2.x} ${p2.y}`;
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
if (lineDef === void 0) throw new Error("Line definition not found");
|
|
868
|
+
svg.append("path").attr("d", lineDef).attr("class", "arrow arrow" + calcColorIndex(colorClassNum, THEME_COLOR_LIMIT, useColorTheme));
|
|
869
|
+
}, "drawArrow");
|
|
870
|
+
var drawArrows = /* @__PURE__ */ __name$1((svg, commits) => {
|
|
871
|
+
const gArrows = svg.append("g").attr("class", "commit-arrows");
|
|
872
|
+
[...commits.keys()].forEach((key) => {
|
|
873
|
+
const commit2 = commits.get(key);
|
|
874
|
+
if (commit2.parents && commit2.parents.length > 0) commit2.parents.forEach((parent) => {
|
|
875
|
+
drawArrow(gArrows, commits.get(parent), commit2, commits);
|
|
876
|
+
});
|
|
877
|
+
});
|
|
878
|
+
}, "drawArrows");
|
|
879
|
+
var drawBranches = /* @__PURE__ */ __name$1((svg, branches, gitGraphConfig, id) => {
|
|
880
|
+
const { look, theme, themeVariables } = getConfig2();
|
|
881
|
+
const { dropShadow, THEME_COLOR_LIMIT: themeColorLimit } = themeVariables;
|
|
882
|
+
const useReduxGeometry = REDUX_GEOMETRY_THEMES.has(theme ?? "");
|
|
883
|
+
const useColorTheme = COLOR_THEMES.has(theme ?? "");
|
|
884
|
+
const g = svg.append("g");
|
|
885
|
+
branches.forEach((branch2, index) => {
|
|
886
|
+
const adjustIndexForTheme = calcColorIndex(index, useReduxGeometry ? themeColorLimit : THEME_COLOR_LIMIT, useColorTheme);
|
|
887
|
+
const pos = branchPos.get(branch2.name)?.pos;
|
|
888
|
+
if (pos === void 0) throw new Error(`Position not found for branch ${branch2.name}`);
|
|
889
|
+
const spineY = dir === "TB" || dir === "BT" ? pos : useReduxGeometry ? pos + REDUX_BRANCH_LABEL_PADDING_Y / 2 + 1 : pos - 2;
|
|
890
|
+
const line = g.append("line");
|
|
891
|
+
line.attr("x1", 0);
|
|
892
|
+
line.attr("y1", spineY);
|
|
893
|
+
line.attr("x2", maxPos);
|
|
894
|
+
line.attr("y2", spineY);
|
|
895
|
+
line.attr("class", "branch branch" + adjustIndexForTheme);
|
|
896
|
+
if (dir === "TB") {
|
|
897
|
+
line.attr("y1", defaultPos);
|
|
898
|
+
line.attr("x1", pos);
|
|
899
|
+
line.attr("y2", maxPos);
|
|
900
|
+
line.attr("x2", pos);
|
|
901
|
+
} else if (dir === "BT") {
|
|
902
|
+
line.attr("y1", maxPos);
|
|
903
|
+
line.attr("x1", pos);
|
|
904
|
+
line.attr("y2", defaultPos);
|
|
905
|
+
line.attr("x2", pos);
|
|
906
|
+
}
|
|
907
|
+
lanes.push(spineY);
|
|
908
|
+
const name = branch2.name;
|
|
909
|
+
const labelElement = drawText(name);
|
|
910
|
+
const bkg = g.insert("rect");
|
|
911
|
+
const label = g.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + adjustIndexForTheme);
|
|
912
|
+
label.node().appendChild(labelElement);
|
|
913
|
+
const bbox = labelElement.getBBox();
|
|
914
|
+
const borderRadius = useReduxGeometry ? 0 : 4;
|
|
915
|
+
const labelPaddingX = useReduxGeometry ? 16 : 0;
|
|
916
|
+
const labelPaddingY = useReduxGeometry ? REDUX_BRANCH_LABEL_PADDING_Y : 0;
|
|
917
|
+
if (look === "neo") bkg.attr("data-look", `neo`);
|
|
918
|
+
bkg.attr("class", "branchLabelBkg label" + adjustIndexForTheme).attr("style", look === "neo" ? `filter:${useReduxGeometry ? `url(#${id}-drop-shadow)` : dropShadow}` : "").attr("rx", borderRadius).attr("ry", borderRadius).attr("x", -bbox.width - 4 - (gitGraphConfig.rotateCommitLabel === true ? 30 : 0)).attr("y", -bbox.height / 2 + 10).attr("width", bbox.width + 18 + labelPaddingX).attr("height", bbox.height + 4 + labelPaddingY);
|
|
919
|
+
label.attr("transform", "translate(" + (-bbox.width - 14 - (gitGraphConfig.rotateCommitLabel === true ? 30 : 0) + labelPaddingX / 2) + ", " + (spineY - bbox.height / 2 - 2) + ")");
|
|
920
|
+
if (dir === "TB") {
|
|
921
|
+
bkg.attr("x", pos - bbox.width / 2 - 10).attr("y", 0);
|
|
922
|
+
label.attr("transform", "translate(" + (pos - bbox.width / 2 - 5) + ", 0)");
|
|
923
|
+
if (useReduxGeometry) {
|
|
924
|
+
bkg.attr("transform", `translate(${-labelPaddingX / 2 - 3}, ${-labelPaddingY - 10})`);
|
|
925
|
+
label.attr("transform", "translate(" + (pos - bbox.width / 2 - 5) + ", " + (-labelPaddingY * 2 + 7) + ")");
|
|
926
|
+
}
|
|
927
|
+
} else if (dir === "BT") {
|
|
928
|
+
bkg.attr("x", pos - bbox.width / 2 - 10).attr("y", maxPos);
|
|
929
|
+
label.attr("transform", "translate(" + (pos - bbox.width / 2 - 5) + ", " + maxPos + ")");
|
|
930
|
+
if (useReduxGeometry) {
|
|
931
|
+
bkg.attr("transform", `translate(${-labelPaddingX / 2 - 3}, ${labelPaddingY + 10})`);
|
|
932
|
+
label.attr("transform", "translate(" + (pos - bbox.width / 2 - 5) + ", " + (maxPos + labelPaddingY * 2 + 4) + ")");
|
|
933
|
+
}
|
|
934
|
+
} else bkg.attr("transform", "translate(-19, " + (spineY - 12 - labelPaddingY / 2) + ")");
|
|
935
|
+
});
|
|
936
|
+
}, "drawBranches");
|
|
937
|
+
var setBranchPosition = /* @__PURE__ */ __name$1(function(name, pos, index, bbox, rotateCommitLabel) {
|
|
938
|
+
branchPos.set(name, {
|
|
939
|
+
pos,
|
|
940
|
+
index
|
|
941
|
+
});
|
|
942
|
+
pos += 50 + (rotateCommitLabel ? 40 : 0) + (dir === "TB" || dir === "BT" ? bbox.width / 2 : 0);
|
|
943
|
+
return pos;
|
|
944
|
+
}, "setBranchPosition");
|
|
945
|
+
var gitGraphRenderer_default = { draw: /* @__PURE__ */ __name$1(function(txt, id, ver, diagObj) {
|
|
946
|
+
clear3();
|
|
947
|
+
log.debug("in gitgraph renderer", txt + "\n", "id:", id, ver);
|
|
948
|
+
const db2 = diagObj.db;
|
|
949
|
+
if (!db2.getConfig) {
|
|
950
|
+
log.error("getConfig method is not available on db");
|
|
951
|
+
return;
|
|
952
|
+
}
|
|
953
|
+
const gitGraphConfig = db2.getConfig();
|
|
954
|
+
const rotateCommitLabel = gitGraphConfig.rotateCommitLabel ?? false;
|
|
955
|
+
allCommitsDict = db2.getCommits();
|
|
956
|
+
const branches = db2.getBranchesAsObjArray();
|
|
957
|
+
dir = db2.getDirection();
|
|
958
|
+
const diagram2 = select_default(`[id="${id}"]`);
|
|
959
|
+
const { look, theme, themeVariables } = getConfig2();
|
|
960
|
+
const { useGradient, gradientStart, gradientStop, filterColor } = themeVariables;
|
|
961
|
+
if (useGradient) {
|
|
962
|
+
const gradient = diagram2.append("defs").append("linearGradient").attr("id", id + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
963
|
+
gradient.append("stop").attr("offset", "0%").attr("stop-color", gradientStart).attr("stop-opacity", 1);
|
|
964
|
+
gradient.append("stop").attr("offset", "100%").attr("stop-color", gradientStop).attr("stop-opacity", 1);
|
|
965
|
+
}
|
|
966
|
+
if (look === "neo" && REDUX_GEOMETRY_THEMES.has(theme ?? "")) diagram2.append("defs").append("filter").attr("id", id + "-drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", filterColor);
|
|
967
|
+
let pos = 0;
|
|
968
|
+
branches.forEach((branch2, index) => {
|
|
969
|
+
const labelElement = drawText(branch2.name);
|
|
970
|
+
const g = diagram2.append("g");
|
|
971
|
+
const branchLabel = g.insert("g").attr("class", "branchLabel");
|
|
972
|
+
const label = branchLabel.insert("g").attr("class", "label branch-label");
|
|
973
|
+
label.node()?.appendChild(labelElement);
|
|
974
|
+
const bbox = labelElement.getBBox();
|
|
975
|
+
pos = setBranchPosition(branch2.name, pos, index, bbox, rotateCommitLabel);
|
|
976
|
+
label.remove();
|
|
977
|
+
branchLabel.remove();
|
|
978
|
+
g.remove();
|
|
979
|
+
});
|
|
980
|
+
drawCommits(diagram2, allCommitsDict, false, gitGraphConfig);
|
|
981
|
+
if (gitGraphConfig.showBranches) drawBranches(diagram2, branches, gitGraphConfig, id);
|
|
982
|
+
drawArrows(diagram2, allCommitsDict);
|
|
983
|
+
drawCommits(diagram2, allCommitsDict, true, gitGraphConfig);
|
|
984
|
+
utils_default.insertTitle(diagram2, "gitTitleText", gitGraphConfig.titleTopMargin ?? 0, db2.getDiagramTitle());
|
|
985
|
+
setupGraphViewbox2(void 0, diagram2, gitGraphConfig.diagramPadding, gitGraphConfig.useMaxWidth);
|
|
986
|
+
}, "draw") };
|
|
987
|
+
var GIT_NAMED_COLOR_COUNT = 8;
|
|
988
|
+
var REDUX_GEOMETRY_THEMES2 = /* @__PURE__ */ new Set([
|
|
989
|
+
"redux",
|
|
990
|
+
"redux-dark",
|
|
991
|
+
"redux-color",
|
|
992
|
+
"redux-dark-color"
|
|
993
|
+
]);
|
|
994
|
+
var COLOR_THEMES2 = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]);
|
|
995
|
+
var NEO_THEMES = /* @__PURE__ */ new Set(["neo", "neo-dark"]);
|
|
996
|
+
var DARK_THEMES2 = /* @__PURE__ */ new Set([
|
|
997
|
+
"dark",
|
|
998
|
+
"redux-dark",
|
|
999
|
+
"redux-dark-color",
|
|
1000
|
+
"neo-dark"
|
|
1001
|
+
]);
|
|
1002
|
+
var NEO_COLOR_GEN_THEMES = /* @__PURE__ */ new Set([
|
|
1003
|
+
"redux",
|
|
1004
|
+
"redux-dark",
|
|
1005
|
+
"redux-color",
|
|
1006
|
+
"redux-dark-color",
|
|
1007
|
+
"neo",
|
|
1008
|
+
"neo-dark"
|
|
1009
|
+
]);
|
|
1010
|
+
var genGitGraphGradient = /* @__PURE__ */ __name$1((options) => {
|
|
1011
|
+
const { svgId } = options;
|
|
1012
|
+
let sections = "";
|
|
1013
|
+
if (options.useGradient && svgId) for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) sections += `
|
|
1014
|
+
.label${i} { fill: ${options.mainBkg}; stroke: url(${svgId}-gradient); stroke-width: ${options.strokeWidth};}
|
|
1015
|
+
`;
|
|
1016
|
+
return sections;
|
|
1017
|
+
}, "genGitGraphGradient");
|
|
1018
|
+
var genColor = /* @__PURE__ */ __name$1((options) => {
|
|
1019
|
+
const { theme, themeVariables } = getConfig();
|
|
1020
|
+
const { borderColorArray } = themeVariables;
|
|
1021
|
+
const useReduxGeometry = REDUX_GEOMETRY_THEMES2.has(theme);
|
|
1022
|
+
if (NEO_THEMES.has(theme)) {
|
|
1023
|
+
let sections = "";
|
|
1024
|
+
for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) if (i === 0) sections += `
|
|
1025
|
+
.branch-label${i} { fill: ${options.nodeBorder};}
|
|
1026
|
+
.commit${i} { stroke: ${options.nodeBorder}; }
|
|
1027
|
+
.commit-highlight${i} { stroke: ${options.nodeBorder}; fill: ${options.nodeBorder}; }
|
|
1028
|
+
.arrow${i} { stroke: ${options.nodeBorder}; }
|
|
1029
|
+
.commit-bullets { fill: ${options.nodeBorder}; }
|
|
1030
|
+
.commit-cherry-pick${i} { stroke: ${options.nodeBorder}; }
|
|
1031
|
+
${genGitGraphGradient(options)}`;
|
|
1032
|
+
else {
|
|
1033
|
+
const ci = i % GIT_NAMED_COLOR_COUNT;
|
|
1034
|
+
sections += `
|
|
1035
|
+
.branch-label${i} { fill: ${options["gitBranchLabel" + ci]}; }
|
|
1036
|
+
.commit${i} { stroke: ${options["git" + ci]}; fill: ${options["git" + ci]}; }
|
|
1037
|
+
.commit-highlight${i} { stroke: ${options["gitInv" + ci]}; fill: ${options["gitInv" + ci]}; }
|
|
1038
|
+
.arrow${i} { stroke: ${options["git" + ci]}; }
|
|
1039
|
+
`;
|
|
1040
|
+
}
|
|
1041
|
+
return sections;
|
|
1042
|
+
} else if (!COLOR_THEMES2.has(theme)) {
|
|
1043
|
+
let sections = "";
|
|
1044
|
+
for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) sections += `
|
|
1045
|
+
.branch-label${i} { fill: ${options.nodeBorder}; ${useReduxGeometry ? `font-weight:${options.noteFontWeight}` : ""} }
|
|
1046
|
+
.commit${i} { stroke: ${options.nodeBorder}; }
|
|
1047
|
+
.commit-highlight${i} { stroke: ${options.nodeBorder}; fill: ${options.nodeBorder}; }
|
|
1048
|
+
.label${i} { fill: ${options.mainBkg}; stroke: ${options.nodeBorder}; stroke-width: ${options.strokeWidth}; ${useReduxGeometry ? `font-weight:${options.noteFontWeight}` : ""}}
|
|
1049
|
+
.arrow${i} { stroke: ${options.nodeBorder}; }
|
|
1050
|
+
.commit-bullets { fill: ${options.nodeBorder}; }
|
|
1051
|
+
.commit-cherry-pick${i} { stroke: ${options.nodeBorder}; }
|
|
1052
|
+
`;
|
|
1053
|
+
return sections;
|
|
1054
|
+
} else {
|
|
1055
|
+
let sections = "";
|
|
1056
|
+
for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) if (i === 0) sections += `
|
|
1057
|
+
.branch-label${i} { fill: ${options.nodeBorder}; ${useReduxGeometry ? `font-weight:${options.noteFontWeight}` : ""} }
|
|
1058
|
+
.commit${i} { stroke: ${options.nodeBorder}; }
|
|
1059
|
+
.commit-highlight${i} { stroke: ${options.nodeBorder}; fill: ${options.mainBkg}; }
|
|
1060
|
+
.label${i} { fill: ${options.mainBkg}; stroke: ${options.nodeBorder}; stroke-width: ${options.strokeWidth}; ${useReduxGeometry ? `font-weight:${options.noteFontWeight}` : ""} }
|
|
1061
|
+
.arrow${i} { stroke: ${options.nodeBorder}; }
|
|
1062
|
+
.commit-bullets { fill: ${options.nodeBorder}; }
|
|
1063
|
+
`;
|
|
1064
|
+
else {
|
|
1065
|
+
const colorIndex = i % borderColorArray.length;
|
|
1066
|
+
sections += `
|
|
1067
|
+
.branch-label${i} { fill: ${options.nodeBorder}; ${useReduxGeometry ? `font-weight:${options.noteFontWeight}` : ""} }
|
|
1068
|
+
.commit${i} { stroke: ${borderColorArray[colorIndex]}; fill: ${borderColorArray[colorIndex]}; }
|
|
1069
|
+
.commit-highlight${i} { stroke: ${borderColorArray[colorIndex]}; fill: ${borderColorArray[colorIndex]}; }
|
|
1070
|
+
.label${i} { fill: ${DARK_THEMES2.has(theme) ? options.mainBkg : borderColorArray[colorIndex]}; stroke: ${borderColorArray[colorIndex]}; stroke-width: ${options.strokeWidth}; }
|
|
1071
|
+
.arrow${i} { stroke: ${borderColorArray[colorIndex]}; }
|
|
1072
|
+
`;
|
|
1073
|
+
}
|
|
1074
|
+
return sections;
|
|
1075
|
+
}
|
|
1076
|
+
}, "genColor");
|
|
1077
|
+
var normalTheme = /* @__PURE__ */ __name$1((options) => {
|
|
1078
|
+
return `${Array.from({ length: options.THEME_COLOR_LIMIT }, (_, i) => i).map((i) => {
|
|
1079
|
+
const ci = i % GIT_NAMED_COLOR_COUNT;
|
|
1080
|
+
return `
|
|
1081
|
+
.branch-label${i} { fill: ${options["gitBranchLabel" + ci]}; }
|
|
1082
|
+
.commit${i} { stroke: ${options["git" + ci]}; fill: ${options["git" + ci]}; }
|
|
1083
|
+
.commit-highlight${i} { stroke: ${options["gitInv" + ci]}; fill: ${options["gitInv" + ci]}; }
|
|
1084
|
+
.label${i} { fill: ${options["git" + ci]}; }
|
|
1085
|
+
.arrow${i} { stroke: ${options["git" + ci]}; }
|
|
1086
|
+
`;
|
|
1087
|
+
}).join("\n")}`;
|
|
1088
|
+
}, "normalTheme");
|
|
1089
|
+
var diagram = {
|
|
1090
|
+
parser,
|
|
1091
|
+
db,
|
|
1092
|
+
renderer: gitGraphRenderer_default,
|
|
1093
|
+
styles: /* @__PURE__ */ __name$1((options) => {
|
|
1094
|
+
const { theme } = getConfig();
|
|
1095
|
+
const useNeoColorGen = NEO_COLOR_GEN_THEMES.has(theme);
|
|
1096
|
+
return `
|
|
1097
|
+
.commit-id,
|
|
1098
|
+
.commit-msg,
|
|
1099
|
+
.branch-label {
|
|
1100
|
+
fill: lightgrey;
|
|
1101
|
+
color: lightgrey;
|
|
1102
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
1103
|
+
font-family: var(--mermaid-font-family);
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
${useNeoColorGen ? genColor(options) : normalTheme(options)}
|
|
1107
|
+
|
|
1108
|
+
.branch {
|
|
1109
|
+
stroke-width: ${options.strokeWidth};
|
|
1110
|
+
stroke: ${options.commitLineColor ?? options.lineColor};
|
|
1111
|
+
stroke-dasharray: ${useNeoColorGen ? "4 2" : "2"};
|
|
1112
|
+
}
|
|
1113
|
+
.commit-label { font-size: ${options.commitLabelFontSize}; fill: ${useNeoColorGen ? options.nodeBorder : options.commitLabelColor}; ${useNeoColorGen ? `font-weight:${options.noteFontWeight};` : ""}}
|
|
1114
|
+
.commit-label-bkg { font-size: ${options.commitLabelFontSize}; fill: ${useNeoColorGen ? "transparent" : options.commitLabelBackground}; opacity: ${useNeoColorGen ? "" : .5}; }
|
|
1115
|
+
.tag-label { font-size: ${options.tagLabelFontSize}; fill: ${options.tagLabelColor};}
|
|
1116
|
+
.tag-label-bkg { fill: ${useNeoColorGen ? options.mainBkg : options.tagLabelBackground}; stroke: ${useNeoColorGen ? options.nodeBorder : options.tagLabelBorder}; ${useNeoColorGen ? `filter:${options.dropShadow}` : ""} }
|
|
1117
|
+
.tag-hole { fill: ${options.textColor}; }
|
|
1118
|
+
|
|
1119
|
+
.commit-merge {
|
|
1120
|
+
stroke: ${useNeoColorGen ? options.mainBkg : options.primaryColor};
|
|
1121
|
+
fill: ${useNeoColorGen ? options.mainBkg : options.primaryColor};
|
|
1122
|
+
}
|
|
1123
|
+
.commit-reverse {
|
|
1124
|
+
stroke: ${useNeoColorGen ? options.mainBkg : options.primaryColor};
|
|
1125
|
+
fill: ${useNeoColorGen ? options.mainBkg : options.primaryColor};
|
|
1126
|
+
stroke-width: ${useNeoColorGen ? options.strokeWidth : 3};
|
|
1127
|
+
}
|
|
1128
|
+
.commit-highlight-outer {
|
|
1129
|
+
}
|
|
1130
|
+
.commit-highlight-inner {
|
|
1131
|
+
stroke: ${useNeoColorGen ? options.mainBkg : options.primaryColor};
|
|
1132
|
+
fill: ${useNeoColorGen ? options.mainBkg : options.primaryColor};
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
.arrow {
|
|
1136
|
+
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
1137
|
+
stroke-width: ${REDUX_GEOMETRY_THEMES2.has(theme) ? options.strokeWidth : 8};
|
|
1138
|
+
stroke-linecap: round;
|
|
1139
|
+
fill: none
|
|
1140
|
+
}
|
|
1141
|
+
.gitTitleText {
|
|
1142
|
+
text-anchor: middle;
|
|
1143
|
+
font-size: 18px;
|
|
1144
|
+
fill: ${options.textColor};
|
|
1145
|
+
}
|
|
1146
|
+
`;
|
|
1147
|
+
}, "getStyles")
|
|
1148
|
+
};
|
|
1149
|
+
//#endregion
|
|
1150
|
+
export { diagram };
|