@p4code/cli 0.8.11 → 0.8.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.mjs +1 -1
- package/dist/{binCli-DY9l0jFs.mjs → binCli-DUdPoqDO.mjs} +2 -2
- package/dist/client/.vite/manifest.json +1286 -1286
- package/dist/client/assets/{AuthSurfaceShell-B_P0_qZ6.js → AuthSurfaceShell-TTILQgs8.js} +2 -2
- package/dist/client/assets/{ChatGptUsageButton-fMcoYEDa.js → ChatGptUsageButton-BG4sHSE5.js} +2 -2
- package/dist/client/assets/{ChatMarkdown-B7b91JUl.js → ChatMarkdown-6z7RF4Ki.js} +4 -4
- package/dist/client/assets/{CodexSetupSection.logic-CeUTTu-x.js → CodexSetupSection.logic-CesZU0jj.js} +2 -2
- package/dist/client/assets/{CommandBlock-BI3ZCXsB.js → CommandBlock-CgdYijxc.js} +2 -2
- package/dist/client/assets/{ComposerPromptEditor-BkRvKIiZ.js → ComposerPromptEditor-5vyHXxd7.js} +4 -4
- package/dist/client/assets/{DevicePanel-B_jOvmeL.js → DevicePanel-DQ8cLDHy.js} +2 -2
- package/dist/client/assets/{DeviceSetup-BXjqCO_9.js → DeviceSetup-BP4bZJQS.js} +2 -2
- package/dist/client/assets/{DiffCommentAnnotation-D_1Iw0oL.js → DiffCommentAnnotation-x4D5cVr3.js} +2 -2
- package/dist/client/assets/{DiffFileTree-D6386u9x.js → DiffFileTree-oPb1WMLR.js} +2 -2
- package/dist/client/assets/{DiffPanel-D6VVj6BF.js → DiffPanel-FegTwEoZ.js} +2 -2
- package/dist/client/assets/{DiffWorkerPoolProvider-Cw5WeG1t.js → DiffWorkerPoolProvider-D2__qhqn.js} +2 -2
- package/dist/client/assets/{EmbeddedDesign-Drkomo9K.js → EmbeddedDesign-ClvOPYvI.js} +2 -2
- package/dist/client/assets/{FileDiff-FK4mtyx3.js → FileDiff-CrB6gsM6.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-ncsuf7iX.js → FilePreviewPanel-BrfGUkiA.js} +2 -2
- package/dist/client/assets/{FoldedSettingsSection-CRlh3-BO.js → FoldedSettingsSection-DGBHqNlE.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-8d3l2unf.js → NoProjectsHero-CCYi-y6n.js} +2 -2
- package/dist/client/assets/{PanelLayoutControls-3fTyX_SN.js → PanelLayoutControls-CNS9IpqP.js} +4 -4
- package/dist/client/assets/{PierreEntryIcon-DtlkLdir.js → PierreEntryIcon-CKjQpgLO.js} +2 -2
- package/dist/client/assets/{PreviewPanel-Ca3_DPh_.js → PreviewPanel-CJ81wdo6.js} +2 -2
- package/dist/client/assets/{ProjectDefaultsSettings-B--7QlKN.js → ProjectDefaultsSettings-CXY57B72.js} +2 -2
- package/dist/client/assets/{ProjectFavicon-YdOZ4g5-.js → ProjectFavicon-fx1QfVoh.js} +3 -3
- package/dist/client/assets/{ProjectIconPickerDialog-C23nnU1a.js → ProjectIconPickerDialog-CFdK4dy-.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-YztsMr2F.js → ProviderAuthTerminal-B43zNZyt.js} +2 -2
- package/dist/client/assets/{ProviderModelPicker-S_tiGeLH.js → ProviderModelPicker-7TESki3o.js} +2 -2
- package/dist/client/assets/{ProviderSettingsForm-C3nbCFfS.js → ProviderSettingsForm-DTbceLMt.js} +2 -2
- package/dist/client/assets/{PullRequestCodeTab-BdP3_tNe.js → PullRequestCodeTab-ClHfRIZg.js} +2 -2
- package/dist/client/assets/{ReadOnlySourcePreview-BNe8pyVf.js → ReadOnlySourcePreview-b2w3OoiX.js} +2 -2
- package/dist/client/assets/{RenderErrorBoundary-DEgVmtJL.js → RenderErrorBoundary-Dkgc28VE.js} +2 -2
- package/dist/client/assets/{ScheduledTasksSettings-CISo4C7r.js → ScheduledTasksSettings-CEsxWqiH.js} +2 -2
- package/dist/client/assets/{ScopedSwitch-eWB5GlaA.js → ScopedSwitch-Bku3NuH1.js} +2 -2
- package/dist/client/assets/{SettingsPanels-DA7lXl0N.js → SettingsPanels-BoxSRF3Y.js} +2 -2
- package/dist/client/assets/{SettingsPanels.logic-lCZaJhKM.js → SettingsPanels.logic-DIWicQHy.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice-BAtVWG0d.js → SettingsScopeNotice-4PZ3qjUl.js} +2 -2
- package/dist/client/assets/{T3ConnectAccountPages-nabxuL18.js → T3ConnectAccountPages-DA0BptAt.js} +2 -2
- package/dist/client/assets/{T3ConnectSidebarSignIn-CSVR5Zot.js → T3ConnectSidebarSignIn-B05eHBr6.js} +2 -2
- package/dist/client/assets/{ThemeEditorPanel-BMtL4rIt.js → ThemeEditorPanel-DWb0qJem.js} +2 -2
- package/dist/client/assets/{ThreadTerminalDrawer-CLfVfvoq.js → ThreadTerminalDrawer-g8xlxRvR.js} +2 -2
- package/dist/client/assets/{Virtualizer-Bi8p4Z6E.js → Virtualizer-Cyq5hRoq.js} +2 -2
- package/dist/client/assets/{_chat-D-Gcj0-9.js → _chat-BCpoMsA8.js} +5 -5
- package/dist/client/assets/{_chat.index-k4jctzPr.js → _chat.index-obkH3dRC.js} +2 -2
- package/dist/client/assets/{_chat.new-BlFtqZqt.js → _chat.new-DVE644MB.js} +2 -2
- package/dist/client/assets/{_chat.pull-requests-DrLHGpqx.js → _chat.pull-requests-Dl8vaGsi.js} +2 -2
- package/dist/client/assets/{abnfDiagram-VCTEODGH-BVKlsgtX.js → abnfDiagram-VCTEODGH-CPHKGdm2.js} +2 -2
- package/dist/client/assets/architecture-7GRP2DOG-Dr1CsNUa.js +1 -0
- package/dist/client/assets/{architectureDiagram-5GKGNRK7-zBJWGViu.js → architectureDiagram-5GKGNRK7-DZFW2-cw.js} +2 -2
- package/dist/client/assets/{assets-BhchpDuq.js → assets-Bv4X710m.js} +2 -2
- package/dist/client/assets/{blockDiagram-I7D4REHJ-BdiAAtHi.js → blockDiagram-I7D4REHJ-DmEMRtTm.js} +2 -2
- package/dist/client/assets/{browserHistoryStore-CqGVWa5a.js → browserHistoryStore-VpfOHXQM.js} +2 -2
- package/dist/client/assets/{browserLinkTarget-CINrbcxi.js → browserLinkTarget-BPuATALO.js} +2 -2
- package/dist/client/assets/{c4Diagram-7LVT6UL2-CqnmSo8f.js → c4Diagram-7LVT6UL2-eYwJlimj.js} +2 -2
- package/dist/client/assets/channel-DSsQ3W5t.js +2 -0
- package/dist/client/assets/{chunk-4HAMMTFA-BpyojyCk.js → chunk-4HAMMTFA-cctCxKWZ.js} +2 -2
- package/dist/client/assets/{chunk-75Z2AOVW-LBmwoUvq.js → chunk-75Z2AOVW-yaFLBspz.js} +2 -2
- package/dist/client/assets/{chunk-DU6HZSFF-zhv2Vnfx.js → chunk-DU6HZSFF-COvkbqst.js} +2 -2
- package/dist/client/assets/{chunk-F27PBJKO-K5uPeDhv.js → chunk-F27PBJKO-BoZkG8KP.js} +2 -2
- package/dist/client/assets/{chunk-GMAD6QVW-CAAu3Cn5.js → chunk-GMAD6QVW-D54p8a4L.js} +2 -2
- package/dist/client/assets/{chunk-GVQU2GXP-Br_UAx49.js → chunk-GVQU2GXP-CDiM6HNZ.js} +2 -2
- package/dist/client/assets/{chunk-IMKFNOWR-Kqfxrrdn.js → chunk-IMKFNOWR-BCKRWLFe.js} +2 -2
- package/dist/client/assets/{chunk-L3NEJ4N5-D1cWO7rm.js → chunk-L3NEJ4N5-DFKc7N9P.js} +2 -2
- package/dist/client/assets/{chunk-OSK3NFVY-BiMJbcHf.js → chunk-OSK3NFVY-DGczxohY.js} +2 -2
- package/dist/client/assets/{chunk-P2QGCYS3-BuGzzo3g.js → chunk-P2QGCYS3-C-hXHVpV.js} +2 -2
- package/dist/client/assets/{chunk-POPQ4Y6H-C_w0mNLk.js → chunk-POPQ4Y6H-BMxZmq3k.js} +2 -2
- package/dist/client/assets/{chunk-PWAF6VOD-CJFd7LKC.js → chunk-PWAF6VOD-CtRucGgL.js} +2 -2
- package/dist/client/assets/{chunk-SHT3W25Y-Beev3ZeU.js → chunk-SHT3W25Y-B5VCRMvd.js} +2 -2
- package/dist/client/assets/{chunk-SVP7TREG-BqpBEmtK.js → chunk-SVP7TREG-BpH-ABz6.js} +2 -2
- package/dist/client/assets/{chunk-TICWLB2K-B0vIU1Au.js → chunk-TICWLB2K-CTkLpoi-.js} +2 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-BBQf0-yA.js +2 -0
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-BBQf0-yA.js +2 -0
- package/dist/client/assets/{connect-agent-DFwOzcLG.js → connect-agent-CMmb-Zab.js} +2 -2
- package/dist/client/assets/{connect-DGwXUKTk.js → connect-liVdG7hL.js} +2 -2
- package/dist/client/assets/{cynefin-OW5HDTMX-BjcFswd0.js → cynefin-OW5HDTMX-B4foSkMN.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-BDWLg5Tt.js → cynefinDiagram-5FMLGOSQ-Cq1u5nRd.js} +2 -2
- package/dist/client/assets/{dagre-GXQ25YYZ-DZpVjkDw.js → dagre-GXQ25YYZ-BnWkCI00.js} +2 -2
- package/dist/client/assets/{device-BEgZIK7u.js → device-DLB3WAXi.js} +2 -2
- package/dist/client/assets/{diagram-S7CK7UJ4-BpVs-kYJ.js → diagram-S7CK7UJ4-Bk90dFWN.js} +2 -2
- package/dist/client/assets/{diagram-UQ7AKVKN-EN7yKI08.js → diagram-UQ7AKVKN-Dh52RrnP.js} +2 -2
- package/dist/client/assets/{diagram-VSXAHHWV-B2oljv94.js → diagram-VSXAHHWV-uV_w7lVo.js} +2 -2
- package/dist/client/assets/{diagram-VX7I27RA-BIl0lJ6d.js → diagram-VX7I27RA-DL1AuClH.js} +2 -2
- package/dist/client/assets/{diagram-Z3DM3KII-B8uoK-O5.js → diagram-Z3DM3KII-B5dyOgFp.js} +2 -2
- package/dist/client/assets/{diffRendering-DeZLcalP.js → diffRendering-DHxotmCj.js} +2 -2
- package/dist/client/assets/{dist-Bd1WIVAz.js → dist-DtZBcVS4.js} +2 -2
- package/dist/client/assets/{duoViewer-BZ7rNqkx.js → duoViewer-zxcLfYBx.js} +2 -2
- package/dist/client/assets/{dynamic-BMz3CcWG.js → dynamic-6kg5nPKs.js} +2 -2
- package/dist/client/assets/{ebnfDiagram-PWID7BFC-BQcQotuk.js → ebnfDiagram-PWID7BFC-1CxZtGTD.js} +2 -2
- package/dist/client/assets/{embeddedScripts-Cek5ppgQ.js → embeddedScripts-DYX91Iqp.js} +2 -2
- package/dist/client/assets/{entities-DPIZFvN7.js → entities-ed9IspYf.js} +2 -2
- package/dist/client/assets/{environments-Dm2_6Uan.js → environments-C3ohMa2W.js} +2 -2
- package/dist/client/assets/{erDiagram-RLTQ6QDP-Y5XhNz9b.js → erDiagram-RLTQ6QDP-CsGV-1_T.js} +2 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-Ji6bAwP8.js +1 -0
- package/dist/client/assets/{fileLinks-1xYacDKI.js → fileLinks-Dm5o4ow4.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-B24BhRqA.js → fileTreeExpansion-C8bS7Zih.js} +2 -2
- package/dist/client/assets/flowDiagram-HODETNUW-AAO2RT67.js +1 -0
- package/dist/client/assets/{ganttDiagram-EL5Y4UJY-DqWb0OUJ.js → ganttDiagram-EL5Y4UJY-DPJOvh4Y.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-CCYVAWRm.js → getDiffFileInput-Dl5o7z9L.js} +2 -2
- package/dist/client/assets/{gitGraph-4MIJSDKK-5lcY1dZk.js → gitGraph-4MIJSDKK-BZfRHVrB.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-BJKz_rGI.js → gitGraphDiagram-WWUBYQGX-DAAU0j3h.js} +2 -2
- package/dist/client/assets/{guideRunStore-BhlldU3q.js → guideRunStore-CEASlKCi.js} +2 -2
- package/dist/client/assets/{index-Dc7GC03y.js → index-B_GLtP0M.js} +3 -3
- package/dist/client/assets/{info-A6RAGUB7-BWnMlmF7.js → info-A6RAGUB7-ycVybacD.js} +1 -1
- package/dist/client/assets/{infoDiagram-27XIBGKW-DKW68xDy.js → infoDiagram-27XIBGKW-oqlTnqq9.js} +2 -2
- package/dist/client/assets/{ishikawaDiagram-5VMMS53U-dRMCvDN0.js → ishikawaDiagram-5VMMS53U-BUi7N4un.js} +2 -2
- package/dist/client/assets/{journeyDiagram-3NMN7TZE-CAxCpgF5.js → journeyDiagram-3NMN7TZE-B2J9IlBm.js} +2 -2
- package/dist/client/assets/{kanban-definition-UXKFOSKX-BaSkJW47.js → kanban-definition-UXKFOSKX-49qHmkgE.js} +2 -2
- package/dist/client/assets/{line-B59oA22i.js → line-C5HQ6j78.js} +2 -2
- package/dist/client/assets/{linkedPrompt-Cqfqh2Aq.js → linkedPrompt-FeVRd-O-.js} +2 -2
- package/dist/client/assets/{main-Ch-SjebX.css → main-CuoFsMGE.css} +1 -1
- package/dist/client/assets/{main-CxOeqlhD.js → main-DUXMPAgZ.js} +19 -19
- package/dist/client/assets/{mediaReference-DRC-8GdL.js → mediaReference-ltmoE8jM.js} +2 -2
- package/dist/client/assets/{mediaSource-DWSwwPfV.js → mediaSource-CMMCxBE2.js} +2 -2
- package/dist/client/assets/{mermaid-parser.core-DcamukpZ.js → mermaid-parser.core-CrL8urD6.js} +4 -4
- package/dist/client/assets/{mermaid.core-C6GXL70P.js → mermaid.core-P-NUuG-D.js} +5 -5
- package/dist/client/assets/{mindmap-definition-YA3MSWOX-CEVz3xGI.js → mindmap-definition-YA3MSWOX-CIwOTWEt.js} +2 -2
- package/dist/client/assets/{onboarding-CLIRA2Sa.js → onboarding-BU1V8wHr.js} +2 -2
- package/dist/client/assets/{openFileInPreview-uS9Qgrru.js → openFileInPreview-DHDgTtRZ.js} +2 -2
- package/dist/client/assets/{p4ProjectFile-CIYnqKbl.js → p4ProjectFile-D9Mx0dmO.js} +2 -2
- package/dist/client/assets/{packet-AYTQ26CC-B9XAEihD.js → packet-AYTQ26CC-Dx1MWiCF.js} +1 -1
- package/dist/client/assets/{pair-DTfs9_4K.js → pair-Cu7mXLMq.js} +2 -2
- package/dist/client/assets/{pegDiagram-XKGWAZYB-tcLsMhrs.js → pegDiagram-XKGWAZYB-6LaNggoU.js} +2 -2
- package/dist/client/assets/{phoneViewer-wYjPQP4U.js → phoneViewer-DxbJZZ1_.js} +2 -2
- package/dist/client/assets/{pie-WAS4IAKB-B3ig0TFp.js → pie-WAS4IAKB-BHElrMQ0.js} +1 -1
- package/dist/client/assets/{pieDiagram-E7YTZNPT-uaJgfQOp.js → pieDiagram-E7YTZNPT-BZ-KGbt4.js} +2 -2
- package/dist/client/assets/{pierre-icons-Dav7jMBk.js → pierre-icons-BoPbdUrw.js} +2 -2
- package/dist/client/assets/{preview-C4lGbDhm.js → preview-Bdfy10VL.js} +2 -2
- package/dist/client/assets/{primary-CRkgnOCY.js → primary-Ce2kT30K.js} +2 -2
- package/dist/client/assets/{primaryCloudLinkState-B_VNTJYL.js → primaryCloudLinkState-Do0JJRXu.js} +2 -2
- package/dist/client/assets/{projectFilesQueryState-U08pztRu.js → projectFilesQueryState-CRMf46rk.js} +2 -2
- package/dist/client/assets/{projectScriptEditor-D8mxKLOb.js → projectScriptEditor-BCJfjG7L.js} +2 -2
- package/dist/client/assets/{providerSkills-C7CtJefh.js → providerSkills-CKg8n_Pc.js} +2 -2
- package/dist/client/assets/{pullRequestDetail.logic-DGX-Sd8d.js → pullRequestDetail.logic-rvhEbiFP.js} +2 -2
- package/dist/client/assets/{pullRequests-BbD7hNlR.js → pullRequests-DJrYzynz.js} +2 -2
- package/dist/client/assets/{quadrantDiagram-AXDQQJYC-BOFUpnyi.js → quadrantDiagram-AXDQQJYC-CvnGxXew.js} +2 -2
- package/dist/client/assets/{queries-BVPZtaQA.js → queries-p9BAZLb-.js} +2 -2
- package/dist/client/assets/{radar-RG4KPBEZ--djmIj49.js → radar-RG4KPBEZ-BrffrDRx.js} +1 -1
- package/dist/client/assets/{railroad-74A4TZTK-DMMw049f.js → railroad-74A4TZTK-B3VSFrGQ.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-BS7JDegU.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-PJ7TdaXJ.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-BnDwBnfu.js +1 -0
- package/dist/client/assets/{railroadDiagram-O6MQD6OU-Df9rhhFk.js → railroadDiagram-O6MQD6OU-BbIi-aIS.js} +2 -2
- package/dist/client/assets/{renderScheduler-b0pOdWwc.js → renderScheduler-B_XMfDdk.js} +2 -2
- package/dist/client/assets/{requirementDiagram-BXWQKSXE-BtGYMd7U.js → requirementDiagram-BXWQKSXE-BcjJ0oP9.js} +2 -2
- package/dist/client/assets/{runtime-DZfpb67Q.js → runtime-AivVP3k8.js} +3 -3
- package/dist/client/assets/{runtime-Bc4kgQim.js → runtime-BfjHqyQH.js} +2 -2
- package/dist/client/assets/{sankeyDiagram-P5KCCOFB-D7_y-s_u.js → sankeyDiagram-P5KCCOFB-DmFJ2EWh.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-CvvQA-b7.js → scheduledTasksSettings.logic-BYBxTiFF.js} +2 -2
- package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-AuXrX-b5.js → sequenceDiagram-WJ2MYXX4-D8YdQDYA.js} +2 -2
- package/dist/client/assets/{server-LJ0-FVGH.js → server-BC4-DXjw.js} +2 -2
- package/dist/client/assets/{session-Bc1P10r_.js → session-CLz6NCKX.js} +2 -2
- package/dist/client/assets/{session-logic-BNtU33qU.js → session-logic-CD6ctino.js} +2 -2
- package/dist/client/assets/{settings-CZSrxmjf.js → settings-Swwhfgp0.js} +2 -2
- package/dist/client/assets/{settings.appearance-B_LipS5_.js → settings.appearance-BSzr_T9U.js} +2 -2
- package/dist/client/assets/settings.archived-BoCdDvJy.js +2 -0
- package/dist/client/assets/{settings.computer-use-BAzpb53_.js → settings.computer-use-nLbSQfdv.js} +2 -2
- package/dist/client/assets/{settings.connections-Bv37N8Tm.js → settings.connections-C4NVZA2N.js} +2 -2
- package/dist/client/assets/{settings.data-controls-DIkcwUy1.js → settings.data-controls-BZsALFNW.js} +2 -2
- package/dist/client/assets/{settings.decisions-BN9ozN_A.js → settings.decisions-ewNyURd9.js} +2 -2
- package/dist/client/assets/{settings.diagnostics-DuoGRNGf.js → settings.diagnostics-DD8ubhwU.js} +2 -2
- package/dist/client/assets/{settings.general-B-Bt2-nG.js → settings.general-CtzJh4Rx.js} +2 -2
- package/dist/client/assets/{settings.integrations-CT3opViE.js → settings.integrations-Cra2dW7z.js} +2 -2
- package/dist/client/assets/{settings.keybindings-BBTkicWk.js → settings.keybindings-TlPhoEQg.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-C_hoYTwe.js → settings.open-source-licenses-B-yrCrWG.js} +2 -2
- package/dist/client/assets/{settings.plugins-DafKnC5Q.js → settings.plugins-imKgCVn_.js} +2 -2
- package/dist/client/assets/{settings.projects-r2ZcxKud.js → settings.projects-tzSgXlw4.js} +3 -3
- package/dist/client/assets/{settings.providers-jbZijXPV.js → settings.providers-CJMKBwGi.js} +3 -3
- package/dist/client/assets/{settings.scheduled-tasks-C0d4wkYE.js → settings.scheduled-tasks-CsxzXKIe.js} +2 -2
- package/dist/client/assets/{settings.snap-shot-D-zJVnjT.js → settings.snap-shot-DjahqLFc.js} +2 -2
- package/dist/client/assets/{settings.source-control-DIU1xRUy.js → settings.source-control-2ejyJuaq.js} +2 -2
- package/dist/client/assets/{settings.storage-DRxTKEjG.js → settings.storage-CWhyfrpB.js} +2 -2
- package/dist/client/assets/{settingsLayout-Cbpy7Mfz.js → settingsLayout-D-5E1K-3.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-DXnDcqLY.js → sidebarProjectGrouping-D1iMa8Uh.js} +2 -2
- package/dist/client/assets/{sortable.esm-Boen_E7K.js → sortable.esm-By3lSBxO.js} +2 -2
- package/dist/client/assets/{sourceControl-DE9QO1yg.js → sourceControl-mPa5Da0-.js} +2 -2
- package/dist/client/assets/{stateDiagram-D77RDMKH-EwB2WAAm.js → stateDiagram-D77RDMKH-DoURp1ek.js} +2 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-D7St643I.js +2 -0
- package/dist/client/assets/{swimlanes-42K2YHIH-RngRFsjR.js → swimlanes-42K2YHIH-CnIKMVp7.js} +2 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-D5SXc1iu.js +9 -0
- package/dist/client/assets/{terminalSessions-Cj-MqjH8.js → terminalSessions-5_U2zswb.js} +2 -2
- package/dist/client/assets/{threadSort-DD61dseb.js → threadSort-CGw2yc3P.js} +2 -2
- package/dist/client/assets/{timeline-definition-24CTP7MA-BfIggpP3.js → timeline-definition-24CTP7MA-Bb4-XE1H.js} +2 -2
- package/dist/client/assets/{toast-DYfY2t_z.js → toast-BYGWNQVa.js} +2 -2
- package/dist/client/assets/{treeView-Q6P3EWNA-BjKaOr9u.js → treeView-Q6P3EWNA-m0IX4uRr.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-ffFPsmk1.js → treemap-WGGIJYW6-DjF5oRc6.js} +1 -1
- package/dist/client/assets/{usage-CRK5JZJm.js → usage-DozNd-7N.js} +2 -2
- package/dist/client/assets/{use-atom-command-Dz_yqN35.js → use-atom-command-BEC7Dpf5.js} +2 -2
- package/dist/client/assets/{useHandleNewThread-DjevdE0U.js → useHandleNewThread-B6GE4-lt.js} +2 -2
- package/dist/client/assets/{usePullRequestActions-BKpChcp1.js → usePullRequestActions-C9Nx99x7.js} +2 -2
- package/dist/client/assets/{useScopedModelAvailability-mUid6EfJ.js → useScopedModelAvailability-Bx5MEwNY.js} +2 -2
- package/dist/client/assets/{useSettings-DCI8Hv09.js → useSettings-CbuRZg7F.js} +2 -2
- package/dist/client/assets/{useT3ConnectAuthPrompt-C7Dm8xCm.js → useT3ConnectAuthPrompt-B9-kgi3N.js} +2 -2
- package/dist/client/assets/{vcsRefInvalidation-3pHpDJC2.js → vcsRefInvalidation-Dkz0bLCm.js} +2 -2
- package/dist/client/assets/{vennDiagram-4TSXK5OY-Bw5_1h9Y.js → vennDiagram-4TSXK5OY-CCjFehou.js} +2 -2
- package/dist/client/assets/{wardley-WFR3VGLG-BzzHb86M.js → wardley-WFR3VGLG-C8OgmKG3.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-VM6X3IG4-RCSx0hV5.js → wardleyDiagram-VM6X3IG4-aAotQeyV.js} +2 -2
- package/dist/client/assets/{welcome-RXSMyzlx.js → welcome-DgOu9i5m.js} +2 -2
- package/dist/client/assets/{xychartDiagram-S5SC5T6Z-CcISZM46.js → xychartDiagram-S5SC5T6Z-B6Gl2NIG.js} +2 -2
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/architecture-7GRP2DOG-BNBr3Sao.js +0 -1
- package/dist/client/assets/channel-CfHDq-fp.js +0 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-Cm99q1tS.js +0 -2
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-Cm99q1tS.js +0 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-B7plRWX7.js +0 -1
- package/dist/client/assets/flowDiagram-HODETNUW-BEpQPBfI.js +0 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-BJdCwb3O.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-a9vhoAEG.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-Cyo-vXW_.js +0 -1
- package/dist/client/assets/settings.archived-B_h3CK_T.js +0 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-CcnJHQ4a.js +0 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-CrkPrysy.js +0 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t,p as n}from"./src-oBChb5qS.js";import{D as r,H as i,K as a,U as o,a as s,c,f as l,v as u,w as d,x as f,y as p,z as m}from"./chunk-DU6HZSFF-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t,p as n}from"./src-oBChb5qS.js";import{D as r,H as i,K as a,U as o,a as s,c,f as l,v as u,w as d,x as f,y as p,z as m}from"./chunk-DU6HZSFF-COvkbqst.js";import{t as h}from"./linear-BUnzfXgk.js";var g=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[1,7],s=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],R=[1,63],z=[1,62],B=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],de=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,91],U=[1,92],W=[1,93],G=[1,100],K=[1,94],q=[1,97],J=[1,95],Y=[1,96],X=[1,98],Z=[1,99],fe=[1,103],pe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],me={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[{18:n,26:1,27:2,28:r,55:i,56:a,57:o},{1:[3]},{18:n,26:8,27:2,28:r,55:i,56:a,57:o},{18:n,26:9,27:2,28:r,55:i,56:a,57:o},t(s,[2,33],{29:10}),t(c,[2,61]),t(c,[2,62]),t(c,[2,63]),{1:[2,30]},{1:[2,31]},t(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(s,[2,34]),{27:46,55:i,56:a,57:o},t(l,[2,37]),t(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(l,[2,39]),t(l,[2,40]),t(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(l,[2,45]),t(l,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},t(B,[2,64]),t(B,[2,66]),t(B,[2,67]),t(B,[2,70]),t(B,[2,71]),t(B,[2,72]),t(B,[2,73]),t(B,[2,74]),t(B,[2,75]),t(B,[2,76]),t(B,[2,77]),t(B,[2,78]),t(B,[2,79]),t(B,[2,80]),t(B,[2,81]),t(s,[2,35]),t(l,[2,38]),t(l,[2,42]),t(l,[2,43]),t(l,[2,44]),{3:65,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,21:64},t(l,[2,53],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,78],63:N,64:P,65:F,66:I,67:L}),t(l,[2,56],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,79],63:N,64:P,65:F,66:I,67:L}),t(l,[2,57],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,58],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,59],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,60],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},t(B,[2,65]),t(B,[2,82]),t(B,[2,83]),t(B,[2,84]),{3:83,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,18:[1,82]},t(V,[2,23]),t(V,[2,1]),t(V,[2,2]),t(V,[2,3]),t(V,[2,4]),t(V,[2,5]),t(V,[2,6]),t(V,[2,7]),t(V,[2,8]),t(V,[2,9]),t(V,[2,10]),t(V,[2,11]),t(V,[2,12]),t(l,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(l,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:89,23:88},t(V,[2,24]),t(l,[2,51],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,54],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,47],{22:89,16:90,23:101,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,102]},t(l,[2,29],{10:fe}),t(pe,[2,27],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),t(Q,[2,25]),t(Q,[2,13]),t(Q,[2,14]),t(Q,[2,15]),t(Q,[2,16]),t(Q,[2,17]),t(Q,[2,18]),t(Q,[2,19]),t(Q,[2,20]),t(Q,[2,21]),t(Q,[2,22]),t(l,[2,49],{10:fe}),t(l,[2,48],{22:89,16:90,23:105,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:106},t(Q,[2,26]),t(l,[2,50],{10:fe}),t(pe,[2,28],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};me.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
5
|
`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
6
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin(`title`),35;case 5:return this.popState(),`title_value`;case 6:return this.begin(`acc_title`),37;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),39;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin(`md_string`);break;case 22:return`MD_STR`;case 23:this.popState();break;case 24:this.begin(`string`);break;case 25:this.popState();break;case 26:return`STR`;case 27:this.begin(`class_name`);break;case 28:return this.popState(),47;case 29:return this.begin(`point_start`),44;case 30:return this.begin(`point_x`),45;case 31:this.popState();break;case 32:this.popState(),this.begin(`point_y`);break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function $(){this.yy={}}return e($,`Parser`),$.prototype=me,me.Parser=$,new $})();g.parser=g;var _=g,v=r(),y=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{e(this,`QuadrantBuilder`)}getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:l.quadrantChart?.chartWidth||500,chartWidth:l.quadrantChart?.chartHeight||500,titlePadding:l.quadrantChart?.titlePadding||10,titleFontSize:l.quadrantChart?.titleFontSize||20,quadrantPadding:l.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:l.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:l.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:l.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:l.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:l.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:l.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:l.quadrantChart?.pointTextPadding||5,pointLabelFontSize:l.quadrantChart?.pointLabelFontSize||12,pointRadius:l.quadrantChart?.pointRadius||5,xAxisPosition:l.quadrantChart?.xAxisPosition||`top`,yAxisPosition:l.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:l.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:l.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:v.quadrant1Fill,quadrant2Fill:v.quadrant2Fill,quadrant3Fill:v.quadrant3Fill,quadrant4Fill:v.quadrant4Fill,quadrant1TextFill:v.quadrant1TextFill,quadrant2TextFill:v.quadrant2TextFill,quadrant3TextFill:v.quadrant3TextFill,quadrant4TextFill:v.quadrant4TextFill,quadrantPointFill:v.quadrantPointFill,quadrantPointTextFill:v.quadrantPointTextFill,quadrantXAxisTextFill:v.quadrantXAxisTextFill,quadrantYAxisTextFill:v.quadrantYAxisTextFill,quadrantTitleFill:v.quadrantTitleFill,quadrantInternalBorderStrokeFill:v.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:v.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,t.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){t.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){t.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},c=this.config.titleFontSize+this.config.titlePadding*2,l={top:r?c:0},u=this.config.quadrantPadding+s.left,d=this.config.quadrantPadding+a.top+l.top,f=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,p=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-l.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:l,quadrantSpace:{quadrantLeft:u,quadrantTop:d,quadrantWidth:f,quadrantHalfWidth:f/2,quadrantHeight:p,quadrantHalfHeight:p/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:c,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:d}=i,f=!!this.data.xAxisRightText,p=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&t&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+l+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+s-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+o-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),m}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a,width:i,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a,width:i,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(e){let{quadrantSpace:t}=e,{quadrantHeight:n,quadrantLeft:r,quadrantTop:i,quadrantWidth:a}=t,o=h().domain([0,1]).range([r,a+r]),s=h().domain([0,1]).range([n+i,i]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:o(e.x),y:s(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:o(e.x),y:s(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:c}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+c+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+c,y1:s+t,x2:a+c,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+c+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+c-t,y2:s+r}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:`top`,verticalPos:`center`,rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},b=class extends Error{static{e(this,`InvalidStyleError`)}constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}};function x(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}e(x,`validateHexCode`);function S(e){return!/^\d+$/.test(e)}e(S,`validateNumber`);function C(e){return!/^\d+px$/.test(e)}e(C,`validateSizeInPixels`);function w(e){return m(e.trim(),f())}e(w,`textSanitizer`);var T=new y;function E(e){T.setData({quadrant1Text:w(e.text)})}e(E,`setQuadrant1Text`);function D(e){T.setData({quadrant2Text:w(e.text)})}e(D,`setQuadrant2Text`);function O(e){T.setData({quadrant3Text:w(e.text)})}e(O,`setQuadrant3Text`);function k(e){T.setData({quadrant4Text:w(e.text)})}e(k,`setQuadrant4Text`);function A(e){T.setData({xAxisLeftText:w(e.text)})}e(A,`setXAxisLeftText`);function j(e){T.setData({xAxisRightText:w(e.text)})}e(j,`setXAxisRightText`);function M(e){T.setData({yAxisTopText:w(e.text)})}e(M,`setYAxisTopText`);function N(e){T.setData({yAxisBottomText:w(e.text)})}e(N,`setYAxisBottomText`);function P(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(S(r))throw new b(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(x(r))throw new b(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(x(r))throw new b(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(C(r))throw new b(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}e(P,`parseStyles`);function F(e,t,n,r,i){let a=P(i);T.addPoints([{x:n,y:r,text:w(e.text),className:t,...a}])}e(F,`addPoint`);function I(e,t){T.addClass(e,P(t))}e(I,`addClass`);function L(e){T.setConfig({chartWidth:e})}e(L,`setWidth`);function R(e){T.setConfig({chartHeight:e})}e(R,`setHeight`);function z(){let{themeVariables:e,quadrantChart:t}=f();return t&&T.setConfig(t),T.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),T.setData({titleText:d()}),T.build()}e(z,`getQuadrantData`);var B={parser:_,db:{setWidth:L,setHeight:R,setQuadrant1Text:E,setQuadrant2Text:D,setQuadrant3Text:O,setQuadrant4Text:k,setXAxisLeftText:A,setXAxisRightText:j,setYAxisTopText:M,setYAxisBottomText:N,parseStyles:P,addPoint:F,addClass:I,getQuadrantData:z,clear:e(function(){T.clear(),s()},`clear`),setAccTitle:o,getAccTitle:p,setDiagramTitle:a,getDiagramTitle:d,getAccDescription:u,setAccDescription:i},renderer:{draw:e((r,i,a,o)=>{function s(e){return e===`top`?`hanging`:`middle`}e(s,`getDominantBaseLine`);function l(e){return e===`left`?`start`:`middle`}e(l,`getTextAnchor`);function u(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}e(u,`getTransformation`);let d=f();t.debug(`Rendering quadrant chart
|
|
7
7
|
`+r);let p=d.securityLevel,m;p===`sandbox`&&(m=n(`#i`+i));let h=n(p===`sandbox`?m.nodes()[0].contentDocument.body:`body`).select(`[id="${i}"]`),g=h.append(`g`).attr(`class`,`main`),_=d.quadrantChart?.chartWidth??500,v=d.quadrantChart?.chartHeight??500;c(h,v,_,d.quadrantChart?.useMaxWidth??!0),h.attr(`viewBox`,`0 0 `+_+` `+v),o.db.setHeight(v),o.db.setWidth(_);let y=o.db.getQuadrantData(),b=g.append(`g`).attr(`class`,`quadrants`),x=g.append(`g`).attr(`class`,`border`),S=g.append(`g`).attr(`class`,`data-points`),C=g.append(`g`).attr(`class`,`labels`),w=g.append(`g`).attr(`class`,`title`);y.title&&w.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,y.title.fill).attr(`font-size`,y.title.fontSize).attr(`dominant-baseline`,s(y.title.horizontalPos)).attr(`text-anchor`,l(y.title.verticalPos)).attr(`transform`,u(y.title)).text(y.title.text),y.borderLines&&x.selectAll(`line`).data(y.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let T=b.selectAll(`g.quadrant`).data(y.quadrants).enter().append(`g`).attr(`class`,`quadrant`);T.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),T.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>s(e.text.horizontalPos)).attr(`text-anchor`,e=>l(e.text.verticalPos)).attr(`transform`,e=>u(e.text)).text(e=>e.text.text),C.selectAll(`g.label`).data(y.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>s(e.horizontalPos)).attr(`text-anchor`,e=>l(e.verticalPos)).attr(`transform`,e=>u(e));let E=S.selectAll(`g.data-point`).data(y.points).enter().append(`g`).attr(`class`,`data-point`);E.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),E.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>s(e.text.horizontalPos)).attr(`text-anchor`,e=>l(e.text.verticalPos)).attr(`transform`,e=>u(e.text))},`draw`)},styles:e(()=>``,`styles`)};export{B as diagram};
|
|
8
|
-
//# sourceMappingURL=quadrantDiagram-AXDQQJYC-
|
|
8
|
+
//# sourceMappingURL=quadrantDiagram-AXDQQJYC-CvnGxXew.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$o as n,$y as r,Ax as i,BS as a,BT as o,Bx as s,By as c,Cv as l,Dx as u,Dy as d,FT as f,Fy as p,Go as m,HS as h,Jb as g,K_ as _,Kb as v,Lc as y,ME as b,MT as x,My as ee,N_ as te,Ov as ne,P_ as re,Qo as ie,Qy as ae,RS as S,RT as oe,Ss as C,Sx as se,Sy as ce,Uy as le,VS as ue,WS as de,W_ as fe,Xw as pe,Xx as w,Yo as me,Z_ as he,Zo as T,bx as ge,cv as _e,dl as ve,dw as ye,eC as be,fl as xe,fx as E,gC as Se,gv as Ce,hv as we,il as Te,iu as D,jy as O,kw as Ee,ly as k,mS as De,ms as Oe,nb as ke,nv as Ae,nx as A,pC as je,qw as Me,rs as Ne,rv as j,sS as Pe,ss as M,sv as Fe,tx as N,us as Ie,vw as Le,wT as Re,yT as ze,ys as Be,yy as Ve,zT as P,zy as F}from"./utils-CRwA5SKO.js";import{F as He,I as Ue,J as We,M as I,N as L,P as R,Z as Ge,_t as z,et as Ke,it as qe,ot as Je,pt as Ye,qt as Xe,st as Ze,tt as Qe}from"./runtime-DZfpb67Q.js";import{a as B,i as V,n as $e,r as et,s as tt,t as nt}from"./vcsRefInvalidation-3pHpDJC2.js";import{U as rt,W as it}from"./entities-DPIZFvN7.js";import{t as H}from"./runtime-Bc4kgQim.js";import{n as U}from"./query-CpOQgkic.js";var W=b(),at=ke(c([Ve(k),Te.fields.query])),ot=ae(at);function st(e,t){return JSON.stringify([[...e].sort((e,t)=>e.localeCompare(t)),t])}function ct(e){return ot(e)}function lt(e){return JSON.stringify([e.environmentId,e.threadId])}function ut(e){return T(t=>n(n=>{let r=ct(t);if(f(r))return{matches:[],isLoading:!1};let[i,a]=r.value,o=[],s=!1;for(let t of i){let r=n(e.getSearchAtom(t,a));s||=r.waiting;let i=x(C(r));i!==null&&o.push(...i.matches.map(e=>({...e,environmentId:t})))}return{matches:o,isLoading:s}}).pipe(M(`${e.labelPrefix}:${t}`)))}var G=e(t(),1);function dt(e){return{v2:{dispatchCommand:I(e,{label:`environment-data:orchestration-v2:dispatch-command`,tag:D.dispatchCommand}),threadProjection:L(e,{label:`environment-data:orchestration-v2:thread-projection`,tag:D.getThreadProjection,staleTimeMs:0,idleTtlMs:0}),shell:R(e,{label:`environment-data:orchestration-v2:shell`,tag:D.subscribeShell}),thread:R(e,{label:`environment-data:orchestration-v2:thread`,tag:D.subscribeThread,idleTtlMs:0})},turnDiff:L(e,{label:`environment-data:orchestration:turn-diff`,tag:D.getTurnDiff}),workflowScript:L(e,{label:`environment-data:orchestration:workflow-script`,tag:D.getWorkflowScript,staleTimeMs:3e5,idleTtlMs:3e5}),stopWorkflow:I(e,{label:`environment-data:orchestration:stop-workflow`,tag:D.stopWorkflow}),rankUserInput:I(e,{label:`environment-data:orchestration:rank-user-input`,tag:y.userInputRank,concurrency:{mode:`singleFlight`,key:({environmentId:e,input:t})=>JSON.stringify([e,t])}}),turnItem:L(e,{label:`environment-data:orchestration:turn-item`,tag:D.getTurnItem,staleTimeMs:6e4,idleTtlMs:6e4}),fullThreadDiff:L(e,{label:`environment-data:orchestration:full-thread-diff`,tag:D.getFullThreadDiff}),threadFind:L(e,{label:`environment-data:orchestration:thread-find`,tag:D.searchThread,staleTimeMs:0,idleTtlMs:0}),threadFindProgressive:R(e,{label:`environment-data:orchestration:thread-find-progressive`,tag:D.searchThreadStream,completeWhen:e=>e.complete!==!1,idleTtlMs:0}),threadSearch:L(e,{label:`environment-data:orchestration:thread-search`,tag:D.searchThreads,staleTimeMs:3e4,idleTtlMs:6e4}),archivedShellSnapshot:L(e,{label:`environment-data:orchestration:archived-shell-snapshot`,tag:D.getArchivedShellSnapshot})}}var K=dt(H),ft=96;function pt(e){let t=e.at(-1);return e.length>1&&t?.waiting===!0&&f(C(t))}function mt({previousScrollTop:e,scrollTop:t,scrollHeight:n,clientHeight:r,distanceThreshold:i=ft}){return e===null||t<=e?!1:n-t-r<=i}var ht=`[0-9a-f]{8}`,gt=RegExp(`^(?:p4c[-/]${ht}|t3code(?:[-/]${ht}|\\/[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))$`);function _t(e){let t=e.indexOf(`/`);return t<=0||t===e.length-1?e:e.slice(t+1)}function vt(e){return gt.test(e.trim().toLowerCase())}function yt(e){return e.trim().replace(/[ \t\n\r\f\v]+/g,`-`)}var bt={hasUpstream:!1,aheadCount:0,behindCount:0,aheadOfDefaultCount:0,pr:null};function q(e,t){return{...e,...t??bt}}function xt(e){return{hasUpstream:e.hasUpstream,aheadCount:e.aheadCount,behindCount:e.behindCount,...e.aheadOfDefaultCount===void 0?{}:{aheadOfDefaultCount:e.aheadOfDefaultCount},pr:e.pr}}function St(e){return{isRepo:e.isRepo,...e.sourceControlProvider?{sourceControlProvider:e.sourceControlProvider}:{},hasPrimaryRemote:e.hasPrimaryRemote,isDefaultRef:e.isDefaultRef,refName:e.refName,hasWorkingTreeChanges:e.hasWorkingTreeChanges,workingTree:e.workingTree,...e.branchChanges?{branchChanges:e.branchChanges}:{}}}function Ct(e,t){switch(t._tag){case`snapshot`:return q(t.local,t.remote);case`localUpdated`:return q(t.local,e?xt(e):null);case`remoteUpdated`:return q(e===null?{isRepo:!0,hasPrimaryRemote:!1,isDefaultRef:!1,refName:null,hasWorkingTreeChanges:!1,workingTree:{files:[],insertions:0,deletions:0}}:St(e),t.remote)}}var wt=d([`refresh_status`,`run_change_request`,`pull`,`switch_ref`,`create_ref`,`create_worktree`,`init`,`publish_repository`,`prepare_pull_request_thread`]),J=class extends F()(`VcsActionUnavailableError`,{operation:wt,environmentId:O(k),cwd:O(p)}){get message(){return`Source control operation '${this.operation.replaceAll(`_`,` `)}' is unavailable.`}},Tt=class extends F()(`VcsActionRemoteFailureError`,{actionId:p,transportActionId:p,action:xe,environmentId:k,cwd:p,phase:O(ve),remoteMessageLength:ee}){get message(){let e=this.phase===null?`execution`:this.phase;return`Source control action '${this.action}' failed during ${e}.`}},Et=class extends F()(`VcsActionMissingTerminalEventError`,{actionId:p,transportActionId:p,action:xe,environmentId:k,cwd:p}){get message(){return`Source control action '${this.action}' ended without a terminal result.`}},Dt=class extends F()(`VcsActionTargetKeyParseError`,{keyLength:ee,cause:ce()}){get message(){return`Invalid source control action target key (${this.keyLength} characters).`}};le([Tt,Et]);var Y=Object.freeze({isRunning:!1,operation:null,actionId:null,action:null,currentLabel:null,currentPhaseLabel:null,hookName:null,lastOutputLine:null,phaseStartedAtMs:null,hookStartedAtMs:null,error:null}),Ot=()=>g(v()),kt=0,At=r(c([k,p])),X=T(e=>n(Y).pipe(ie,M(`vcs-action:${e}`))),jt=n(Y).pipe(ie,M(`vcs-action:null`));function Z(e){return e.environmentId===null||e.cwd===null?null:JSON.stringify([e.environmentId,e.cwd])}function Mt(e){try{let[t,n]=At(JSON.parse(e));return{environmentId:t,cwd:n}}catch(t){throw new Dt({keyLength:e.length,cause:t})}}function Nt(e){let t=Z(e);return t===null?jt:X(t)}function Pt(){return kt+=1,`local-vcs-action:${kt}`}function Ft(e){let t=e.actionId??Pt(),n=Ot();return{...Y,isRunning:!0,operation:e.operation,actionId:t,currentLabel:e.label,currentPhaseLabel:e.label,phaseStartedAtMs:n}}function It(e,t,n){return{...Y,operation:e,actionId:t,error:n instanceof Error?n.message:`Source control action failed.`}}function Lt(e,t){let n=JSON.stringify([e.environmentId,e.cwd]);return`${n.length}:${n}${t}`}function Rt(e,t,n,r){return r.actionId!==t||r.cwd!==e.cwd?null:{...r,actionId:n}}function zt(e,t){return a(()=>{let n=null;return e.pipe(Ce(e=>{let r=Rt(t.target,t.transportActionId,t.actionId,e);return r===null?be:((r.kind===`action_finished`||r.kind===`action_failed`)&&(n=r),t.onProgress(r))}),u(()=>n?.kind===`action_finished`?S(n.result):n?.kind===`action_failed`?se(new Tt({actionId:t.actionId,transportActionId:t.transportActionId,action:n.action,environmentId:t.target.environmentId,cwd:t.target.cwd,phase:n.phase,remoteMessageLength:n.message.length})):se(new Et({actionId:t.actionId,transportActionId:t.transportActionId,action:t.action,environmentId:t.target.environmentId,cwd:t.target.cwd}))))})}function Bt(e,t){if(e.actionId!==t.actionId)return e;let n=Ot();switch(t.kind){case`action_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,phaseStartedAtMs:n,hookStartedAtMs:null,hookName:null,lastOutputLine:null,error:null};case`phase_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:t.label,currentPhaseLabel:t.label,phaseStartedAtMs:n,hookStartedAtMs:null,hookName:null,lastOutputLine:null,error:null};case`hook_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:`Running ${t.hookName}...`,hookName:t.hookName,hookStartedAtMs:n,lastOutputLine:null,error:null};case`hook_output`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,lastOutputLine:t.text,error:null};case`hook_finished`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:e.currentPhaseLabel,hookName:null,hookStartedAtMs:null,lastOutputLine:null,error:null};case`action_finished`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,error:null};case`action_failed`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,error:t.message}}}function Vt(e){let t=new Map,n=n=>{let r=Z(n),i=r??JSON.stringify([`vcs-action-target:unavailable`,n.environmentId,n.cwd]),a=t.get(i);if(a!==void 0)return a;let o=r===null?null:Mt(r),s=r===null?jt:X(r),c=Ue(e,{label:`vcs-action:run-stacked:${i}`,scheduler:B,concurrency:{mode:`serial`,key:()=>i},execute:(t,r)=>{if(o===null)return se(new J({operation:`run_change_request`,environmentId:n.environmentId,cwd:n.cwd}));let i=Lt(o,t.actionId);r.set(s,Ft({operation:`run_change_request`,label:`Running source control action`,actionId:t.actionId}));let a={actionId:i,cwd:o.cwd,action:t.action,...t.commitMessage?{commitMessage:t.commitMessage}:{},...t.featureBranch?{featureBranch:!0}:{},...t.filePaths?.length?{filePaths:[...t.filePaths]}:{},...t.threadId===void 0?{}:{threadId:t.threadId},...t.projectId===void 0?{}:{projectId:t.projectId}},c=ue(()=>{r.get(s).actionId===t.actionId&&r.set(s,Y)});return zt(Ze(o.environmentId,Ke(y.gitRunStackedAction,a)),{target:o,transportActionId:i,actionId:t.actionId,action:t.action,onProgress:e=>ue(()=>{let n=r.get(s);if(n.actionId===t.actionId&&(r.set(s,Bt(n,e)),t.onProgress!==void 0))try{t.onProgress(e)}catch{}})}).pipe(De(We,{authorize:(t,n,i)=>qe(e,n).authorize(r,t,i)}),ge(nt(r,o)),h(()=>c),de(e=>ue(()=>{let n=r.get(s);n.actionId===t.actionId&&n.isRunning&&r.set(s,It(`run_change_request`,t.actionId,e))})),Pe(()=>c))}});return t.set(i,c),c},r=(e,t,n)=>{let r=Z(t);if(r===null)return;let i=X(r);e.set(i,n(e.get(i)))};return{stateAtom:Nt,runStackedAction:e=>n(e),track:async(e,t,n,r)=>{let i=Z(t);if(i===null)return Oe(ye(new J({operation:n.operation,environmentId:t.environmentId,cwd:t.cwd})));let a=X(i),o=Ft(n);e.set(a,o);let s=await r();return e.get(a).actionId===o.actionId&&(Be(s)||Le(s.cause)?e.set(a,Y):e.get(a).actionId===o.actionId&&e.set(a,It(n.operation,o.actionId,Ee(s.cause)))),s},resetError:(e,t,n)=>{r(e,t,e=>!e.isRunning&&e.operation===n?Y:e)}}}var Ht=100,Ut=3e4,Wt=1e4,Gt=je(`1 second`).pipe(Se(({duration:e})=>S(Me(e,pe(30)))));function Kt(e){return e.query===void 0&&e.cursor===void 0&&e.includeMatchingRemoteRefs===void 0&&e.refKind===void 0&&e.limit===Ht}var qt=i(`CachedVcsRefsState.commitRefresh`)(function*(e,t,n){return yield*et(n.environmentId,s(function*(){let r=$e({environmentId:n.environmentId}),i=e.get(r);if(i.revision!==n.expectedRevision)return!1;let a=i.persistedCacheReadable;return n.persist&&(a||=yield*t.clearVcsRefs(n.environmentId).pipe(A(!0),E(e=>w(`Could not recover invalidated cached Git refs.`).pipe(N({environmentId:n.environmentId,cwd:n.cwd,...z(e)}),A(!1)))),yield*t.saveVcsRefs(n.environmentId,n.cwd,n.refs).pipe(E(e=>w(`Could not persist cached Git refs.`).pipe(N({environmentId:n.environmentId,cwd:n.cwd,...z(e)})))),a!==i.persistedCacheReadable&&e.update(r,e=>e.revision===n.expectedRevision?{...e,persistedCacheReadable:a}:e)),!0}))}),Jt=i(`CachedVcsRefsState.makeChanges`)(function*(e,t,n,r=!0){let a=yield*Ye,s=yield*Xe,c=a.target.environmentId,u=Kt(e),d=u&&r?yield*s.loadVcsRefs(c,e.cwd).pipe(E(t=>w(`Could not load cached Git refs.`).pipe(N({environmentId:c,cwd:e.cwd,...z(t)}),A(P())))):P(),f=i(`CachedVcsRefsState.refresh`)(function*(){let r=yield*Ge(y.vcsListRefs,e).pipe(De(Ye,a)),i=s.saveVcsRefs(c,e.cwd,r).pipe(E(t=>w(`Could not persist cached Git refs.`).pipe(N({environmentId:c,cwd:e.cwd,...z(t)}))));return t===void 0||n===void 0?(u&&(yield*i),o(r)):(yield*qt(n,s,{environmentId:c,cwd:e.cwd,refs:r,expectedRevision:t,persist:u}))?o(r):P()}),p=j(S(d)).pipe(Ae(e=>oe(e,{onNone:()=>ze,onSome:Re}))),m=_(j(re(a.state)),te(a.state)).pipe(Fe(e=>e.phase===`connected`?e.generation:null),fe,l(t=>t===null?he:j(f().pipe(de(t=>w(`Could not refresh Git refs.`).pipe(N({environmentId:c,cwd:e.cwd,...z(t)}))))).pipe(we(Gt),Ae(e=>oe(e,{onNone:()=>ze,onSome:Re})))));return _(p,m)});function Yt(e,t,n,r){return Je(e,ne(s(function*(){return yield*Jt(t,n,yield*Ie,r)})))}function Xt(e){let t=T(t=>{let[n,r]=JSON.parse(t);return e.atom(e=>{let t=e($e({environmentId:n}));return Yt(n,r,t.revision,t.persistedCacheReadable)}).pipe(Ne(Ut),M(`environment-data:vcs:list-refs:${t}`))}),n=e=>t(JSON.stringify([e.environmentId,e.input])),r=(e,t)=>nt(t,{environmentId:e.environmentId,cwd:e.input.cwd});return{listRefs:n,status:He(e,{label:`environment-data:vcs:status`,idleTtlMs:Wt,subscribe:e=>Qe(y.subscribeVcsStatus,e).pipe(_e(()=>null,(e,t)=>{let n=Ct(e,t);return[n,[n]]}))}),pull:I(e,{label:`environment-data:vcs:pull`,tag:y.vcsPull,scheduler:B,concurrency:V,onSettled:r}),refreshStatus:I(e,{label:`environment-data:vcs:refresh-status`,tag:y.vcsRefreshStatus,scheduler:B,concurrency:V,onSettled:r}),createWorktree:I(e,{label:`environment-data:vcs:create-worktree`,tag:y.vcsCreateWorktree,scheduler:B,concurrency:V,onSettled:r}),worktreeSetup:R(e,{label:`environment-data:vcs:worktree-setup`,tag:y.subscribeWorktreeSetup,idleTtlMs:Wt}),cancelWorktreeSetup:I(e,{label:`environment-data:vcs:cancel-worktree-setup`,tag:y.worktreeSetupCancel}),removeWorktree:I(e,{label:`environment-data:vcs:remove-worktree`,tag:y.vcsRemoveWorktree,scheduler:B,concurrency:V,onSettled:r}),createRef:I(e,{label:`environment-data:vcs:create-ref`,tag:y.vcsCreateRef,scheduler:B,concurrency:V,onSettled:r}),switchRef:I(e,{label:`environment-data:vcs:switch-ref`,tag:y.vcsSwitchRef,scheduler:B,concurrency:V,onSettled:r}),init:I(e,{label:`environment-data:vcs:init`,tag:y.vcsInit,scheduler:B,concurrency:V,onSettled:r})}}var Zt=Xt(H),Qt=Vt(H),$t=120,en=80,tn=120,nn=500,rn=200,an=100,on=[],sn=[],cn=[],Q=[void 0],ln=Object.freeze([]),un=n({matches:ln,isLoading:!1}).pipe(M(`web:thread-search:empty`)),dn=ut({getSearchAtom:(e,t)=>K.threadSearch({environmentId:e,input:{query:t}}),labelPrefix:`web:thread-search`});function $(e,t){let n=(0,W.c)(4),[r,i]=(0,G.useState)(e),a,o;return n[0]!==t||n[1]!==e?(a=()=>{let n=window.setTimeout(()=>{i(e)},t);return()=>{window.clearTimeout(n)}},o=[t,e],n[0]=t,n[1]=e,n[2]=a,n[3]=o):(a=n[2],o=n[3]),(0,G.useEffect)(a,o),r}function fn(e,t){let n=(0,W.c)(11),r;n[0]===t?r=n[1]:(r=t.trim(),n[0]=t,n[1]=r);let i=r,a=$(i,rn),o=e.length>0&&i.length>=2,s=o&&i===a?a:null,c;n[2]!==e||n[3]!==s?(c=s===null?null:st(e,s),n[2]=e,n[3]=s,n[4]=c):c=n[4];let l=c,u;n[5]===l?u=n[6]:(u=l===null?un:dn(l),n[5]=l,n[6]=u);let d=me(u),f=o&&i!==a,p=f?ln:d.matches,m=s??``,h=o&&(f||d.isLoading),g;return n[7]!==p||n[8]!==m||n[9]!==h?(g={matches:p,query:m,isPending:h},n[7]=p,n[8]=m,n[9]=h,n[10]=g):g=n[10],g}function pn(e){let t=e.query?.trim()??``,r=e.environmentId!==null&&e.cwd!==null?JSON.stringify([e.environmentId,e.cwd,t]):null,[i,a]=(0,G.useState)({targetKey:r,cursors:Q}),o=i.targetKey===r?i.cursors:Q,s=(0,G.useMemo)(()=>e.environmentId!==null&&e.cwd!==null?o.map(n=>Zt.listRefs({environmentId:e.environmentId,input:{cwd:e.cwd,...t.length>0?{query:t}:{},...n===void 0?{}:{cursor:n},limit:an}})):[],[o,t,e.cwd,e.environmentId]),c=(0,G.useMemo)(()=>n(e=>s.map(t=>e(t))).pipe(M(`web:vcs-ref-pages:${r??`empty`}`)),[s,r]),l=me(c),u=l.flatMap(e=>{let t=x(C(e));return t===null?[]:[t]}),d=new Map;for(let e of u)for(let t of e.refs)d.set(t.name,t);let f=u[0]??null,p=u.at(-1)??null,h=f===null||p===null?null:{refs:[...d.values()],isRepo:f.isRepo,hasPrimaryRemote:f.hasPrimaryRemote,nextCursor:p.nextCursor,totalCount:Math.max(...u.map(e=>e.totalCount))},g=l.find(e=>e._tag===`Failure`),_=pt(l),v=g?._tag===`Failure`?(()=>{let e=Ee(g.cause);return e instanceof Error&&e.message.trim().length>0?e.message:`Failed to load refs.`})():null,y=(0,G.useCallback)(()=>{let e=s[0];a({targetKey:r,cursors:Q}),e!==void 0&&m.refresh(e)},[s,r]),b=(0,G.useCallback)(()=>{r!==null&&h?.nextCursor!==null&&h?.nextCursor!==void 0&&a(e=>{let t=e.targetKey===r?e.cursors:Q;return t.includes(h.nextCursor)?{targetKey:r,cursors:t}:{targetKey:r,cursors:[...t,h.nextCursor]}})},[h?.nextCursor,r]);return{data:h,refs:h?.refs??on,error:v,isPending:l.some(e=>e.waiting),isFetchingNextPage:_,refresh:y,loadNext:b}}function mn(e,t){return e.environmentId===t.environmentId&&e.cwd===t.cwd&&e.query===t.query&&e.kind===t.kind&&e.imageOnly===t.imageOnly}function hn(e,t,n){let r=(0,W.c)(32),i=n?.allowEmptyQuery===!0,a;r[0]===e.query?a=r[1]:(a=e.query==null?null:e.query.trim(),r[0]=e.query,r[1]=a);let o;r[2]!==a||r[3]!==e.cwd||r[4]!==e.environmentId||r[5]!==e.imageOnly||r[6]!==e.kind?(o={environmentId:e.environmentId,cwd:e.cwd,query:a,kind:e.kind,imageOnly:e.imageOnly},r[2]=a,r[3]=e.cwd,r[4]=e.environmentId,r[5]=e.imageOnly,r[6]=e.kind,r[7]=o):o=r[7];let s=o,c=$(s,$t),l=tt(c.environmentId),{canReadFiles:u}=l,d,f,p;r[8]!==i||r[9]!==u||r[10]!==c.cwd||r[11]!==c.environmentId||r[12]!==c.imageOnly||r[13]!==c.kind||r[14]!==c.query||r[15]!==t?(d=c.environmentId!==null&&c.cwd!==null&&c.query!==null&&(i||c.query.length>0)?{environmentId:c.environmentId,input:{cwd:c.cwd,query:c.query,limit:t,...c.kind?{kind:c.kind}:{},...c.imageOnly?{imageOnly:!0}:{}}}:null,f=U,p=u&&d!==null?it.searchEntries(d):null,r[8]=i,r[9]=u,r[10]=c.cwd,r[11]=c.environmentId,r[12]=c.imageOnly,r[13]=c.kind,r[14]=c.query,r[15]=t,r[16]=d,r[17]=f,r[18]=p):(d=r[16],f=r[17],p=r[18]);let m=f(p),h=d!==null,g=m.data?.entries??sn,_=!h||l.isPending?null:u?m.error:l.error??`This connection cannot search host files.`,v;r[19]!==c||r[20]!==l.isPending||r[21]!==h||r[22]!==s||r[23]!==m.isPending?(v=!mn(s,c)||h&&(l.isPending||m.isPending),r[19]=c,r[20]=l.isPending,r[21]=h,r[22]=s,r[23]=m.isPending,r[24]=v):v=r[24];let y=c.query??``,b=m.data?.truncated??!1,x;return r[25]!==m.refresh||r[26]!==g||r[27]!==_||r[28]!==v||r[29]!==y||r[30]!==b?(x={entries:g,error:_,isPending:v,searchedQuery:y,truncated:b,refresh:m.refresh},r[25]=m.refresh,r[26]=g,r[27]=_,r[28]=v,r[29]=y,r[30]=b,r[31]=x):x=r[31],x}function gn(e){return hn(e,en)}function _n(e){let t=(0,W.c)(20),n=e.environmentId!==null&&e.cwd!==null,r=tt(e.environmentId),i=n&&r.canReadFiles,a=n&&r.isPending,o=e.query,s;t[0]===o?s=t[1]:(s=o.trim(),t[0]=o,t[1]=s);let c=s.length>0,l=$(o,tn),u;t[2]!==i||t[3]!==l||t[4]!==c||t[5]!==e.caseSensitive||t[6]!==e.cwd||t[7]!==e.environmentId||t[8]!==e.useRegex||t[9]!==e.wholeWord?(u=i&&e.environmentId!==null&&e.cwd!==null&&c&&l.trim().length>0?rt({environmentId:e.environmentId,input:{cwd:e.cwd,query:l,limit:nn,caseSensitive:e.caseSensitive,wholeWord:e.wholeWord,useRegex:e.useRegex}}):null,t[2]=i,t[3]=l,t[4]=c,t[5]=e.caseSensitive,t[6]=e.cwd,t[7]=e.environmentId,t[8]=e.useRegex,t[9]=e.wholeWord,t[10]=u):u=t[10];let d=U(u),f=d.data?.matches??cn,p=!n||a?null:i?d.error:r.error??`This connection cannot search host files.`,m=a||i&&c&&(o!==l||d.isPending),h=d.data?.truncated??!1,g=e.useRegex&&d.data?.regexFallbackError!==void 0,_;return t[11]!==i||t[12]!==c||t[13]!==a||t[14]!==f||t[15]!==p||t[16]!==m||t[17]!==h||t[18]!==g?(_={canReadFiles:i,isCheckingAccess:a,matches:f,error:p,isPending:m,hasQuery:c,truncated:h,invalidRegex:g},t[11]=i,t[12]=c,t[13]=a,t[14]=f,t[15]=p,t[16]=m,t[17]=h,t[18]=g,t[19]=_):_=t[19],_}function vn(e,t){let n=t?.enabled!==!1&&e.environmentId!==null&&e.threadId!==null&&e.fromTurnCount!==null&&e.toTurnCount!==null,r=n&&e.fromTurnCount===0?{environmentId:e.environmentId,input:{threadId:e.threadId,toTurnCount:e.toTurnCount,ignoreWhitespace:e.ignoreWhitespace}}:null,i=n&&e.fromTurnCount!==0?{environmentId:e.environmentId,input:{threadId:e.threadId,fromTurnCount:e.fromTurnCount,toTurnCount:e.toTurnCount,ignoreWhitespace:e.ignoreWhitespace}}:null,a=U(r===null?null:K.fullThreadDiff(r)),o=U(i===null?null:K.turnDiff(i));return r===null?o:a}function yn(e){let t=(0,W.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?null:K.turnItem({environmentId:e.environmentId,input:{threadId:e.threadId,itemId:e.itemId,revision:e.revision}}),t[0]=e,t[1]=n),U(n)}export{lt as _,_n as a,yn as c,J as d,_t as f,K as g,mt as h,pn as i,Qt as l,yt as m,gn as n,hn as o,vt as p,$ as r,fn as s,vn as t,Zt as u};
|
|
2
|
-
//# sourceMappingURL=queries-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$o as n,$y as r,Ax as i,BS as a,BT as o,Bx as s,By as c,Cv as l,Dx as u,Dy as d,FT as f,Fy as p,Go as m,HS as h,Jb as g,K_ as _,Kb as v,Lc as y,ME as b,MT as x,My as ee,N_ as te,Ov as ne,P_ as re,Qo as ie,Qy as ae,RS as S,RT as oe,Ss as C,Sx as se,Sy as ce,Uy as le,VS as ue,WS as de,W_ as fe,Xw as pe,Xx as w,Yo as me,Z_ as he,Zo as T,bx as ge,cv as _e,dl as ve,dw as ye,eC as be,fl as xe,fx as E,gC as Se,gv as Ce,hv as we,il as Te,iu as D,jy as O,kw as Ee,ly as k,mS as De,ms as Oe,nb as ke,nv as Ae,nx as A,pC as je,qw as Me,rs as Ne,rv as j,sS as Pe,ss as M,sv as Fe,tx as N,us as Ie,vw as Le,wT as Re,yT as ze,ys as Be,yy as Ve,zT as P,zy as F}from"./utils-CRwA5SKO.js";import{F as He,I as Ue,J as We,M as I,N as L,P as R,Z as Ge,_t as z,et as Ke,it as qe,ot as Je,pt as Ye,qt as Xe,st as Ze,tt as Qe}from"./runtime-AivVP3k8.js";import{a as B,i as V,n as $e,r as et,s as tt,t as nt}from"./vcsRefInvalidation-Dkz0bLCm.js";import{U as rt,W as it}from"./entities-ed9IspYf.js";import{t as H}from"./runtime-BfjHqyQH.js";import{n as U}from"./query-CpOQgkic.js";var W=b(),at=ke(c([Ve(k),Te.fields.query])),ot=ae(at);function st(e,t){return JSON.stringify([[...e].sort((e,t)=>e.localeCompare(t)),t])}function ct(e){return ot(e)}function lt(e){return JSON.stringify([e.environmentId,e.threadId])}function ut(e){return T(t=>n(n=>{let r=ct(t);if(f(r))return{matches:[],isLoading:!1};let[i,a]=r.value,o=[],s=!1;for(let t of i){let r=n(e.getSearchAtom(t,a));s||=r.waiting;let i=x(C(r));i!==null&&o.push(...i.matches.map(e=>({...e,environmentId:t})))}return{matches:o,isLoading:s}}).pipe(M(`${e.labelPrefix}:${t}`)))}var G=e(t(),1);function dt(e){return{v2:{dispatchCommand:I(e,{label:`environment-data:orchestration-v2:dispatch-command`,tag:D.dispatchCommand}),threadProjection:L(e,{label:`environment-data:orchestration-v2:thread-projection`,tag:D.getThreadProjection,staleTimeMs:0,idleTtlMs:0}),shell:R(e,{label:`environment-data:orchestration-v2:shell`,tag:D.subscribeShell}),thread:R(e,{label:`environment-data:orchestration-v2:thread`,tag:D.subscribeThread,idleTtlMs:0})},turnDiff:L(e,{label:`environment-data:orchestration:turn-diff`,tag:D.getTurnDiff}),workflowScript:L(e,{label:`environment-data:orchestration:workflow-script`,tag:D.getWorkflowScript,staleTimeMs:3e5,idleTtlMs:3e5}),stopWorkflow:I(e,{label:`environment-data:orchestration:stop-workflow`,tag:D.stopWorkflow}),rankUserInput:I(e,{label:`environment-data:orchestration:rank-user-input`,tag:y.userInputRank,concurrency:{mode:`singleFlight`,key:({environmentId:e,input:t})=>JSON.stringify([e,t])}}),turnItem:L(e,{label:`environment-data:orchestration:turn-item`,tag:D.getTurnItem,staleTimeMs:6e4,idleTtlMs:6e4}),fullThreadDiff:L(e,{label:`environment-data:orchestration:full-thread-diff`,tag:D.getFullThreadDiff}),threadFind:L(e,{label:`environment-data:orchestration:thread-find`,tag:D.searchThread,staleTimeMs:0,idleTtlMs:0}),threadFindProgressive:R(e,{label:`environment-data:orchestration:thread-find-progressive`,tag:D.searchThreadStream,completeWhen:e=>e.complete!==!1,idleTtlMs:0}),threadSearch:L(e,{label:`environment-data:orchestration:thread-search`,tag:D.searchThreads,staleTimeMs:3e4,idleTtlMs:6e4}),archivedShellSnapshot:L(e,{label:`environment-data:orchestration:archived-shell-snapshot`,tag:D.getArchivedShellSnapshot})}}var K=dt(H),ft=96;function pt(e){let t=e.at(-1);return e.length>1&&t?.waiting===!0&&f(C(t))}function mt({previousScrollTop:e,scrollTop:t,scrollHeight:n,clientHeight:r,distanceThreshold:i=ft}){return e===null||t<=e?!1:n-t-r<=i}var ht=`[0-9a-f]{8}`,gt=RegExp(`^(?:p4c[-/]${ht}|t3code(?:[-/]${ht}|\\/[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))$`);function _t(e){let t=e.indexOf(`/`);return t<=0||t===e.length-1?e:e.slice(t+1)}function vt(e){return gt.test(e.trim().toLowerCase())}function yt(e){return e.trim().replace(/[ \t\n\r\f\v]+/g,`-`)}var bt={hasUpstream:!1,aheadCount:0,behindCount:0,aheadOfDefaultCount:0,pr:null};function q(e,t){return{...e,...t??bt}}function xt(e){return{hasUpstream:e.hasUpstream,aheadCount:e.aheadCount,behindCount:e.behindCount,...e.aheadOfDefaultCount===void 0?{}:{aheadOfDefaultCount:e.aheadOfDefaultCount},pr:e.pr}}function St(e){return{isRepo:e.isRepo,...e.sourceControlProvider?{sourceControlProvider:e.sourceControlProvider}:{},hasPrimaryRemote:e.hasPrimaryRemote,isDefaultRef:e.isDefaultRef,refName:e.refName,hasWorkingTreeChanges:e.hasWorkingTreeChanges,workingTree:e.workingTree,...e.branchChanges?{branchChanges:e.branchChanges}:{}}}function Ct(e,t){switch(t._tag){case`snapshot`:return q(t.local,t.remote);case`localUpdated`:return q(t.local,e?xt(e):null);case`remoteUpdated`:return q(e===null?{isRepo:!0,hasPrimaryRemote:!1,isDefaultRef:!1,refName:null,hasWorkingTreeChanges:!1,workingTree:{files:[],insertions:0,deletions:0}}:St(e),t.remote)}}var wt=d([`refresh_status`,`run_change_request`,`pull`,`switch_ref`,`create_ref`,`create_worktree`,`init`,`publish_repository`,`prepare_pull_request_thread`]),J=class extends F()(`VcsActionUnavailableError`,{operation:wt,environmentId:O(k),cwd:O(p)}){get message(){return`Source control operation '${this.operation.replaceAll(`_`,` `)}' is unavailable.`}},Tt=class extends F()(`VcsActionRemoteFailureError`,{actionId:p,transportActionId:p,action:xe,environmentId:k,cwd:p,phase:O(ve),remoteMessageLength:ee}){get message(){let e=this.phase===null?`execution`:this.phase;return`Source control action '${this.action}' failed during ${e}.`}},Et=class extends F()(`VcsActionMissingTerminalEventError`,{actionId:p,transportActionId:p,action:xe,environmentId:k,cwd:p}){get message(){return`Source control action '${this.action}' ended without a terminal result.`}},Dt=class extends F()(`VcsActionTargetKeyParseError`,{keyLength:ee,cause:ce()}){get message(){return`Invalid source control action target key (${this.keyLength} characters).`}};le([Tt,Et]);var Y=Object.freeze({isRunning:!1,operation:null,actionId:null,action:null,currentLabel:null,currentPhaseLabel:null,hookName:null,lastOutputLine:null,phaseStartedAtMs:null,hookStartedAtMs:null,error:null}),Ot=()=>g(v()),kt=0,At=r(c([k,p])),X=T(e=>n(Y).pipe(ie,M(`vcs-action:${e}`))),jt=n(Y).pipe(ie,M(`vcs-action:null`));function Z(e){return e.environmentId===null||e.cwd===null?null:JSON.stringify([e.environmentId,e.cwd])}function Mt(e){try{let[t,n]=At(JSON.parse(e));return{environmentId:t,cwd:n}}catch(t){throw new Dt({keyLength:e.length,cause:t})}}function Nt(e){let t=Z(e);return t===null?jt:X(t)}function Pt(){return kt+=1,`local-vcs-action:${kt}`}function Ft(e){let t=e.actionId??Pt(),n=Ot();return{...Y,isRunning:!0,operation:e.operation,actionId:t,currentLabel:e.label,currentPhaseLabel:e.label,phaseStartedAtMs:n}}function It(e,t,n){return{...Y,operation:e,actionId:t,error:n instanceof Error?n.message:`Source control action failed.`}}function Lt(e,t){let n=JSON.stringify([e.environmentId,e.cwd]);return`${n.length}:${n}${t}`}function Rt(e,t,n,r){return r.actionId!==t||r.cwd!==e.cwd?null:{...r,actionId:n}}function zt(e,t){return a(()=>{let n=null;return e.pipe(Ce(e=>{let r=Rt(t.target,t.transportActionId,t.actionId,e);return r===null?be:((r.kind===`action_finished`||r.kind===`action_failed`)&&(n=r),t.onProgress(r))}),u(()=>n?.kind===`action_finished`?S(n.result):n?.kind===`action_failed`?se(new Tt({actionId:t.actionId,transportActionId:t.transportActionId,action:n.action,environmentId:t.target.environmentId,cwd:t.target.cwd,phase:n.phase,remoteMessageLength:n.message.length})):se(new Et({actionId:t.actionId,transportActionId:t.transportActionId,action:t.action,environmentId:t.target.environmentId,cwd:t.target.cwd}))))})}function Bt(e,t){if(e.actionId!==t.actionId)return e;let n=Ot();switch(t.kind){case`action_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,phaseStartedAtMs:n,hookStartedAtMs:null,hookName:null,lastOutputLine:null,error:null};case`phase_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:t.label,currentPhaseLabel:t.label,phaseStartedAtMs:n,hookStartedAtMs:null,hookName:null,lastOutputLine:null,error:null};case`hook_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:`Running ${t.hookName}...`,hookName:t.hookName,hookStartedAtMs:n,lastOutputLine:null,error:null};case`hook_output`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,lastOutputLine:t.text,error:null};case`hook_finished`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:e.currentPhaseLabel,hookName:null,hookStartedAtMs:null,lastOutputLine:null,error:null};case`action_finished`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,error:null};case`action_failed`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,error:t.message}}}function Vt(e){let t=new Map,n=n=>{let r=Z(n),i=r??JSON.stringify([`vcs-action-target:unavailable`,n.environmentId,n.cwd]),a=t.get(i);if(a!==void 0)return a;let o=r===null?null:Mt(r),s=r===null?jt:X(r),c=Ue(e,{label:`vcs-action:run-stacked:${i}`,scheduler:B,concurrency:{mode:`serial`,key:()=>i},execute:(t,r)=>{if(o===null)return se(new J({operation:`run_change_request`,environmentId:n.environmentId,cwd:n.cwd}));let i=Lt(o,t.actionId);r.set(s,Ft({operation:`run_change_request`,label:`Running source control action`,actionId:t.actionId}));let a={actionId:i,cwd:o.cwd,action:t.action,...t.commitMessage?{commitMessage:t.commitMessage}:{},...t.featureBranch?{featureBranch:!0}:{},...t.filePaths?.length?{filePaths:[...t.filePaths]}:{},...t.threadId===void 0?{}:{threadId:t.threadId},...t.projectId===void 0?{}:{projectId:t.projectId}},c=ue(()=>{r.get(s).actionId===t.actionId&&r.set(s,Y)});return zt(Ze(o.environmentId,Ke(y.gitRunStackedAction,a)),{target:o,transportActionId:i,actionId:t.actionId,action:t.action,onProgress:e=>ue(()=>{let n=r.get(s);if(n.actionId===t.actionId&&(r.set(s,Bt(n,e)),t.onProgress!==void 0))try{t.onProgress(e)}catch{}})}).pipe(De(We,{authorize:(t,n,i)=>qe(e,n).authorize(r,t,i)}),ge(nt(r,o)),h(()=>c),de(e=>ue(()=>{let n=r.get(s);n.actionId===t.actionId&&n.isRunning&&r.set(s,It(`run_change_request`,t.actionId,e))})),Pe(()=>c))}});return t.set(i,c),c},r=(e,t,n)=>{let r=Z(t);if(r===null)return;let i=X(r);e.set(i,n(e.get(i)))};return{stateAtom:Nt,runStackedAction:e=>n(e),track:async(e,t,n,r)=>{let i=Z(t);if(i===null)return Oe(ye(new J({operation:n.operation,environmentId:t.environmentId,cwd:t.cwd})));let a=X(i),o=Ft(n);e.set(a,o);let s=await r();return e.get(a).actionId===o.actionId&&(Be(s)||Le(s.cause)?e.set(a,Y):e.get(a).actionId===o.actionId&&e.set(a,It(n.operation,o.actionId,Ee(s.cause)))),s},resetError:(e,t,n)=>{r(e,t,e=>!e.isRunning&&e.operation===n?Y:e)}}}var Ht=100,Ut=3e4,Wt=1e4,Gt=je(`1 second`).pipe(Se(({duration:e})=>S(Me(e,pe(30)))));function Kt(e){return e.query===void 0&&e.cursor===void 0&&e.includeMatchingRemoteRefs===void 0&&e.refKind===void 0&&e.limit===Ht}var qt=i(`CachedVcsRefsState.commitRefresh`)(function*(e,t,n){return yield*et(n.environmentId,s(function*(){let r=$e({environmentId:n.environmentId}),i=e.get(r);if(i.revision!==n.expectedRevision)return!1;let a=i.persistedCacheReadable;return n.persist&&(a||=yield*t.clearVcsRefs(n.environmentId).pipe(A(!0),E(e=>w(`Could not recover invalidated cached Git refs.`).pipe(N({environmentId:n.environmentId,cwd:n.cwd,...z(e)}),A(!1)))),yield*t.saveVcsRefs(n.environmentId,n.cwd,n.refs).pipe(E(e=>w(`Could not persist cached Git refs.`).pipe(N({environmentId:n.environmentId,cwd:n.cwd,...z(e)})))),a!==i.persistedCacheReadable&&e.update(r,e=>e.revision===n.expectedRevision?{...e,persistedCacheReadable:a}:e)),!0}))}),Jt=i(`CachedVcsRefsState.makeChanges`)(function*(e,t,n,r=!0){let a=yield*Ye,s=yield*Xe,c=a.target.environmentId,u=Kt(e),d=u&&r?yield*s.loadVcsRefs(c,e.cwd).pipe(E(t=>w(`Could not load cached Git refs.`).pipe(N({environmentId:c,cwd:e.cwd,...z(t)}),A(P())))):P(),f=i(`CachedVcsRefsState.refresh`)(function*(){let r=yield*Ge(y.vcsListRefs,e).pipe(De(Ye,a)),i=s.saveVcsRefs(c,e.cwd,r).pipe(E(t=>w(`Could not persist cached Git refs.`).pipe(N({environmentId:c,cwd:e.cwd,...z(t)}))));return t===void 0||n===void 0?(u&&(yield*i),o(r)):(yield*qt(n,s,{environmentId:c,cwd:e.cwd,refs:r,expectedRevision:t,persist:u}))?o(r):P()}),p=j(S(d)).pipe(Ae(e=>oe(e,{onNone:()=>ze,onSome:Re}))),m=_(j(re(a.state)),te(a.state)).pipe(Fe(e=>e.phase===`connected`?e.generation:null),fe,l(t=>t===null?he:j(f().pipe(de(t=>w(`Could not refresh Git refs.`).pipe(N({environmentId:c,cwd:e.cwd,...z(t)}))))).pipe(we(Gt),Ae(e=>oe(e,{onNone:()=>ze,onSome:Re})))));return _(p,m)});function Yt(e,t,n,r){return Je(e,ne(s(function*(){return yield*Jt(t,n,yield*Ie,r)})))}function Xt(e){let t=T(t=>{let[n,r]=JSON.parse(t);return e.atom(e=>{let t=e($e({environmentId:n}));return Yt(n,r,t.revision,t.persistedCacheReadable)}).pipe(Ne(Ut),M(`environment-data:vcs:list-refs:${t}`))}),n=e=>t(JSON.stringify([e.environmentId,e.input])),r=(e,t)=>nt(t,{environmentId:e.environmentId,cwd:e.input.cwd});return{listRefs:n,status:He(e,{label:`environment-data:vcs:status`,idleTtlMs:Wt,subscribe:e=>Qe(y.subscribeVcsStatus,e).pipe(_e(()=>null,(e,t)=>{let n=Ct(e,t);return[n,[n]]}))}),pull:I(e,{label:`environment-data:vcs:pull`,tag:y.vcsPull,scheduler:B,concurrency:V,onSettled:r}),refreshStatus:I(e,{label:`environment-data:vcs:refresh-status`,tag:y.vcsRefreshStatus,scheduler:B,concurrency:V,onSettled:r}),createWorktree:I(e,{label:`environment-data:vcs:create-worktree`,tag:y.vcsCreateWorktree,scheduler:B,concurrency:V,onSettled:r}),worktreeSetup:R(e,{label:`environment-data:vcs:worktree-setup`,tag:y.subscribeWorktreeSetup,idleTtlMs:Wt}),cancelWorktreeSetup:I(e,{label:`environment-data:vcs:cancel-worktree-setup`,tag:y.worktreeSetupCancel}),removeWorktree:I(e,{label:`environment-data:vcs:remove-worktree`,tag:y.vcsRemoveWorktree,scheduler:B,concurrency:V,onSettled:r}),createRef:I(e,{label:`environment-data:vcs:create-ref`,tag:y.vcsCreateRef,scheduler:B,concurrency:V,onSettled:r}),switchRef:I(e,{label:`environment-data:vcs:switch-ref`,tag:y.vcsSwitchRef,scheduler:B,concurrency:V,onSettled:r}),init:I(e,{label:`environment-data:vcs:init`,tag:y.vcsInit,scheduler:B,concurrency:V,onSettled:r})}}var Zt=Xt(H),Qt=Vt(H),$t=120,en=80,tn=120,nn=500,rn=200,an=100,on=[],sn=[],cn=[],Q=[void 0],ln=Object.freeze([]),un=n({matches:ln,isLoading:!1}).pipe(M(`web:thread-search:empty`)),dn=ut({getSearchAtom:(e,t)=>K.threadSearch({environmentId:e,input:{query:t}}),labelPrefix:`web:thread-search`});function $(e,t){let n=(0,W.c)(4),[r,i]=(0,G.useState)(e),a,o;return n[0]!==t||n[1]!==e?(a=()=>{let n=window.setTimeout(()=>{i(e)},t);return()=>{window.clearTimeout(n)}},o=[t,e],n[0]=t,n[1]=e,n[2]=a,n[3]=o):(a=n[2],o=n[3]),(0,G.useEffect)(a,o),r}function fn(e,t){let n=(0,W.c)(11),r;n[0]===t?r=n[1]:(r=t.trim(),n[0]=t,n[1]=r);let i=r,a=$(i,rn),o=e.length>0&&i.length>=2,s=o&&i===a?a:null,c;n[2]!==e||n[3]!==s?(c=s===null?null:st(e,s),n[2]=e,n[3]=s,n[4]=c):c=n[4];let l=c,u;n[5]===l?u=n[6]:(u=l===null?un:dn(l),n[5]=l,n[6]=u);let d=me(u),f=o&&i!==a,p=f?ln:d.matches,m=s??``,h=o&&(f||d.isLoading),g;return n[7]!==p||n[8]!==m||n[9]!==h?(g={matches:p,query:m,isPending:h},n[7]=p,n[8]=m,n[9]=h,n[10]=g):g=n[10],g}function pn(e){let t=e.query?.trim()??``,r=e.environmentId!==null&&e.cwd!==null?JSON.stringify([e.environmentId,e.cwd,t]):null,[i,a]=(0,G.useState)({targetKey:r,cursors:Q}),o=i.targetKey===r?i.cursors:Q,s=(0,G.useMemo)(()=>e.environmentId!==null&&e.cwd!==null?o.map(n=>Zt.listRefs({environmentId:e.environmentId,input:{cwd:e.cwd,...t.length>0?{query:t}:{},...n===void 0?{}:{cursor:n},limit:an}})):[],[o,t,e.cwd,e.environmentId]),c=(0,G.useMemo)(()=>n(e=>s.map(t=>e(t))).pipe(M(`web:vcs-ref-pages:${r??`empty`}`)),[s,r]),l=me(c),u=l.flatMap(e=>{let t=x(C(e));return t===null?[]:[t]}),d=new Map;for(let e of u)for(let t of e.refs)d.set(t.name,t);let f=u[0]??null,p=u.at(-1)??null,h=f===null||p===null?null:{refs:[...d.values()],isRepo:f.isRepo,hasPrimaryRemote:f.hasPrimaryRemote,nextCursor:p.nextCursor,totalCount:Math.max(...u.map(e=>e.totalCount))},g=l.find(e=>e._tag===`Failure`),_=pt(l),v=g?._tag===`Failure`?(()=>{let e=Ee(g.cause);return e instanceof Error&&e.message.trim().length>0?e.message:`Failed to load refs.`})():null,y=(0,G.useCallback)(()=>{let e=s[0];a({targetKey:r,cursors:Q}),e!==void 0&&m.refresh(e)},[s,r]),b=(0,G.useCallback)(()=>{r!==null&&h?.nextCursor!==null&&h?.nextCursor!==void 0&&a(e=>{let t=e.targetKey===r?e.cursors:Q;return t.includes(h.nextCursor)?{targetKey:r,cursors:t}:{targetKey:r,cursors:[...t,h.nextCursor]}})},[h?.nextCursor,r]);return{data:h,refs:h?.refs??on,error:v,isPending:l.some(e=>e.waiting),isFetchingNextPage:_,refresh:y,loadNext:b}}function mn(e,t){return e.environmentId===t.environmentId&&e.cwd===t.cwd&&e.query===t.query&&e.kind===t.kind&&e.imageOnly===t.imageOnly}function hn(e,t,n){let r=(0,W.c)(32),i=n?.allowEmptyQuery===!0,a;r[0]===e.query?a=r[1]:(a=e.query==null?null:e.query.trim(),r[0]=e.query,r[1]=a);let o;r[2]!==a||r[3]!==e.cwd||r[4]!==e.environmentId||r[5]!==e.imageOnly||r[6]!==e.kind?(o={environmentId:e.environmentId,cwd:e.cwd,query:a,kind:e.kind,imageOnly:e.imageOnly},r[2]=a,r[3]=e.cwd,r[4]=e.environmentId,r[5]=e.imageOnly,r[6]=e.kind,r[7]=o):o=r[7];let s=o,c=$(s,$t),l=tt(c.environmentId),{canReadFiles:u}=l,d,f,p;r[8]!==i||r[9]!==u||r[10]!==c.cwd||r[11]!==c.environmentId||r[12]!==c.imageOnly||r[13]!==c.kind||r[14]!==c.query||r[15]!==t?(d=c.environmentId!==null&&c.cwd!==null&&c.query!==null&&(i||c.query.length>0)?{environmentId:c.environmentId,input:{cwd:c.cwd,query:c.query,limit:t,...c.kind?{kind:c.kind}:{},...c.imageOnly?{imageOnly:!0}:{}}}:null,f=U,p=u&&d!==null?it.searchEntries(d):null,r[8]=i,r[9]=u,r[10]=c.cwd,r[11]=c.environmentId,r[12]=c.imageOnly,r[13]=c.kind,r[14]=c.query,r[15]=t,r[16]=d,r[17]=f,r[18]=p):(d=r[16],f=r[17],p=r[18]);let m=f(p),h=d!==null,g=m.data?.entries??sn,_=!h||l.isPending?null:u?m.error:l.error??`This connection cannot search host files.`,v;r[19]!==c||r[20]!==l.isPending||r[21]!==h||r[22]!==s||r[23]!==m.isPending?(v=!mn(s,c)||h&&(l.isPending||m.isPending),r[19]=c,r[20]=l.isPending,r[21]=h,r[22]=s,r[23]=m.isPending,r[24]=v):v=r[24];let y=c.query??``,b=m.data?.truncated??!1,x;return r[25]!==m.refresh||r[26]!==g||r[27]!==_||r[28]!==v||r[29]!==y||r[30]!==b?(x={entries:g,error:_,isPending:v,searchedQuery:y,truncated:b,refresh:m.refresh},r[25]=m.refresh,r[26]=g,r[27]=_,r[28]=v,r[29]=y,r[30]=b,r[31]=x):x=r[31],x}function gn(e){return hn(e,en)}function _n(e){let t=(0,W.c)(20),n=e.environmentId!==null&&e.cwd!==null,r=tt(e.environmentId),i=n&&r.canReadFiles,a=n&&r.isPending,o=e.query,s;t[0]===o?s=t[1]:(s=o.trim(),t[0]=o,t[1]=s);let c=s.length>0,l=$(o,tn),u;t[2]!==i||t[3]!==l||t[4]!==c||t[5]!==e.caseSensitive||t[6]!==e.cwd||t[7]!==e.environmentId||t[8]!==e.useRegex||t[9]!==e.wholeWord?(u=i&&e.environmentId!==null&&e.cwd!==null&&c&&l.trim().length>0?rt({environmentId:e.environmentId,input:{cwd:e.cwd,query:l,limit:nn,caseSensitive:e.caseSensitive,wholeWord:e.wholeWord,useRegex:e.useRegex}}):null,t[2]=i,t[3]=l,t[4]=c,t[5]=e.caseSensitive,t[6]=e.cwd,t[7]=e.environmentId,t[8]=e.useRegex,t[9]=e.wholeWord,t[10]=u):u=t[10];let d=U(u),f=d.data?.matches??cn,p=!n||a?null:i?d.error:r.error??`This connection cannot search host files.`,m=a||i&&c&&(o!==l||d.isPending),h=d.data?.truncated??!1,g=e.useRegex&&d.data?.regexFallbackError!==void 0,_;return t[11]!==i||t[12]!==c||t[13]!==a||t[14]!==f||t[15]!==p||t[16]!==m||t[17]!==h||t[18]!==g?(_={canReadFiles:i,isCheckingAccess:a,matches:f,error:p,isPending:m,hasQuery:c,truncated:h,invalidRegex:g},t[11]=i,t[12]=c,t[13]=a,t[14]=f,t[15]=p,t[16]=m,t[17]=h,t[18]=g,t[19]=_):_=t[19],_}function vn(e,t){let n=t?.enabled!==!1&&e.environmentId!==null&&e.threadId!==null&&e.fromTurnCount!==null&&e.toTurnCount!==null,r=n&&e.fromTurnCount===0?{environmentId:e.environmentId,input:{threadId:e.threadId,toTurnCount:e.toTurnCount,ignoreWhitespace:e.ignoreWhitespace}}:null,i=n&&e.fromTurnCount!==0?{environmentId:e.environmentId,input:{threadId:e.threadId,fromTurnCount:e.fromTurnCount,toTurnCount:e.toTurnCount,ignoreWhitespace:e.ignoreWhitespace}}:null,a=U(r===null?null:K.fullThreadDiff(r)),o=U(i===null?null:K.turnDiff(i));return r===null?o:a}function yn(e){let t=(0,W.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?null:K.turnItem({environmentId:e.environmentId,input:{threadId:e.threadId,itemId:e.itemId,revision:e.revision}}),t[0]=e,t[1]=n),U(n)}export{lt as _,_n as a,yn as c,J as d,_t as f,K as g,mt as h,pn as i,Qt as l,yt as m,gn as n,hn as o,vt as p,$ as r,fn as s,vn as t,Zt as u};
|
|
2
|
+
//# sourceMappingURL=queries-p9BAZLb-.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{v as e}from"./mermaid-parser.core-
|
|
1
|
+
import"./chunk-FOHPRMQF-DzxwRta7.js";import{v as e}from"./mermaid-parser.core-CrL8urD6.js";export{e as createRadarServices};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{g as e}from"./mermaid-parser.core-
|
|
1
|
+
import"./chunk-FOHPRMQF-DzxwRta7.js";import{g as e}from"./mermaid-parser.core-CrL8urD6.js";export{e as createRailroadServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-FOHPRMQF-DzxwRta7.js";import{m as e}from"./mermaid-parser.core-CrL8urD6.js";export{e as createRailroadAbnfServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-FOHPRMQF-DzxwRta7.js";import{f as e}from"./mermaid-parser.core-CrL8urD6.js";export{e as createRailroadEbnfServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-FOHPRMQF-DzxwRta7.js";import{u as e}from"./mermaid-parser.core-CrL8urD6.js";export{e as createRailroadPegServices};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as e,t}from"./mermaid-parser.core-
|
|
2
|
-
//# sourceMappingURL=railroadDiagram-O6MQD6OU-
|
|
1
|
+
import{g as e,t}from"./mermaid-parser.core-CrL8urD6.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-COvkbqst.js";import{n as i,r as a,t as o}from"./chunk-SVP7TREG-BpH-ABz6.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-P-NUuG-D.js";var c=e().Railroad.parser.LangiumParser,l=n(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(l);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(l);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:l(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:l(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),u=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),d=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(u(e)))},`populateDb`),f={parser:{parse:n(e=>{o.clear(),r.debug(`[Railroad Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[Railroad Parser] Parsed rules:`,i.rules.length),d(i),r.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{f as diagram};
|
|
2
|
+
//# sourceMappingURL=railroadDiagram-O6MQD6OU-BbIi-aIS.js.map
|