@inkeep/open-knowledge 0.30.2 → 0.31.0-beta.1
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/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/assets/skills/write-skill/SKILL.md +1 -1
- package/dist/cli.mjs +58 -68
- package/dist/constants-hNkAg6Qk.mjs +2 -0
- package/dist/index.d.mts +92 -1
- package/dist/index.mjs +1 -1
- package/dist/init-5nxeHQJi.mjs +1 -0
- package/dist/{init-C3-tMyGu.mjs → init-M3As2OOI.mjs} +11 -11
- package/dist/{is-object-Cg453afR.mjs → is-object-Cie0xXKD.mjs} +1 -1
- package/dist/{launch-json-removal-BLUsKChe.mjs → launch-json-removal-6h3pmbkP.mjs} +2 -2
- package/dist/loader-DSMGw3qx.mjs +1 -0
- package/dist/{loader-f4c1taQz.mjs → loader-DToPJlMU.mjs} +2 -2
- package/dist/{preview-DocBavwZ.mjs → preview-COkYTuKh.mjs} +2 -2
- package/dist/preview-De2-yIy7.mjs +1 -0
- package/dist/public/assets/ActivityModeContent-C1jtV-hU.js +2 -0
- package/dist/public/assets/CodeMirrorPropInput-DiXxMe7E.js +3 -0
- package/dist/public/assets/ConsentDialogBody-DUEo7dzd.js +2 -0
- package/dist/public/assets/DocumentContext-5toIZ8hA.js +35 -0
- package/dist/public/assets/EnableSyncConfirmDialog-BRUoKGlI.js +1 -0
- package/dist/public/assets/{GraphPanel-CJcaT4ZV.js → GraphPanel-CAT7ozBx.js} +3 -3
- package/dist/public/assets/ManagedArtifactProperties-CGEPiwpI.js +1 -0
- package/dist/public/assets/McpConsentDialogBody-DfJ3dXdV.js +1 -0
- package/dist/public/assets/{MermaidDocEditor-DBwiC1Iv.js → MermaidDocEditor-Dg8dOZ9W.js} +1 -1
- package/dist/public/assets/PropertyPanel-BMHDSIGn.js +2 -0
- package/dist/public/assets/ReportBugDialogBody-C_Q3PS3L.js +2 -0
- package/dist/public/assets/SettingsDialogBody-CfzWeNyS.js +7 -0
- package/dist/public/assets/ShareBranchSwitchDialog-CWwC7UJv.js +1 -0
- package/dist/public/assets/ShareReceiveDialog-4FwHQsF4.js +1 -0
- package/dist/public/assets/ShareReceiveMissDialog-o0LerOQ_.js +1 -0
- package/dist/public/assets/SkillEditorActions-C3Pt-Yag.js +1 -0
- package/dist/public/assets/SourceEditor-Bem9oxYY.js +1 -0
- package/dist/public/assets/{TerminalPanel-CR5UcwIn.js → TerminalPanel-Dnfkoo0l.js} +3 -3
- package/dist/public/assets/{_baseFor-CCfTEsdD.js → _baseFor-VECk3xZB.js} +1 -1
- package/dist/public/assets/agent-presence-Dp6Wg18I.js +1 -0
- package/dist/public/assets/{arc-lAkd3r-L.js → arc-CxehPN-O.js} +1 -1
- package/dist/public/assets/architecture-YZFGNWBL-DsxJN6Kz.js +1 -0
- package/dist/public/assets/{architectureDiagram-Q4EWVU46-BRnvRY5Q.js → architectureDiagram-Q4EWVU46-BP3qpyaD.js} +1 -1
- package/dist/public/assets/arrow-up-right-Vg7lRNno.js +1 -0
- package/dist/public/assets/auth-state-cache-xkP6pnyp.js +11 -0
- package/dist/public/assets/{blockDiagram-DXYQGD6D-DK-9tYVp.js → blockDiagram-DXYQGD6D-B5TD8A38.js} +1 -1
- package/dist/public/assets/{c4Diagram-AHTNJAMY-lOxwQVJ2.js → c4Diagram-AHTNJAMY-DXobwygF.js} +1 -1
- package/dist/public/assets/calendar-DvL8Q5iT.js +1 -0
- package/dist/public/assets/channel-DVu0OxhH.js +1 -0
- package/dist/public/assets/check-CBLIjSIa.js +1 -0
- package/dist/public/assets/checkbox-09LNjybZ.js +1 -0
- package/dist/public/assets/chevron-down-D2qF2W9D.js +1 -0
- package/dist/public/assets/chevron-left-SSPDkqEW.js +1 -0
- package/dist/public/assets/chevron-right-C6588edp.js +1 -0
- package/dist/public/assets/{chunk-2KRD3SAO-D1p7fU3I.js → chunk-2KRD3SAO-DDUdr-iX.js} +1 -1
- package/dist/public/assets/{chunk-336JU56O-K0-WqSB1.js → chunk-336JU56O-B_KFr_Bs.js} +2 -2
- package/dist/public/assets/chunk-426QAEUC-RFGaT71Y.js +1 -0
- package/dist/public/assets/{chunk-4BX2VUAB-Ce60rzXr.js → chunk-4BX2VUAB-DRfG-ueY.js} +1 -1
- package/dist/public/assets/{chunk-4TB4RGXK-Bcpr4K8K.js → chunk-4TB4RGXK-B0Gnlc8Z.js} +1 -1
- package/dist/public/assets/chunk-55IACEB6-DAOIsDKo.js +1 -0
- package/dist/public/assets/{chunk-5FUZZQ4R-WUVPPhbh.js → chunk-5FUZZQ4R-CVl_7PAT.js} +1 -1
- package/dist/public/assets/{chunk-5PVQY5BW-DSuJYE-B.js → chunk-5PVQY5BW-Cfkq4RiL.js} +1 -1
- package/dist/public/assets/{chunk-67CJDMHE-CMHniVm1.js → chunk-67CJDMHE-G9bUyIhz.js} +1 -1
- package/dist/public/assets/{chunk-7N4EOEYR-BnaZcLw1.js → chunk-7N4EOEYR-URuUKEXP.js} +1 -1
- package/dist/public/assets/{chunk-AA7GKIK3-N9zR7tEI.js → chunk-AA7GKIK3-DRCEQeZY.js} +1 -1
- package/dist/public/assets/{chunk-BSJP7CBP-D8qH6A-U.js → chunk-BSJP7CBP-DGKfJILj.js} +1 -1
- package/dist/public/assets/{chunk-CIAEETIT-DG1ExqXf.js → chunk-CIAEETIT-C-4SSDk6.js} +1 -1
- package/dist/public/assets/{chunk-EDXVE4YY-BJMsRQKs.js → chunk-EDXVE4YY-B7GwVaSD.js} +1 -1
- package/dist/public/assets/{chunk-ENJZ2VHE-q2eFK8Oq.js → chunk-ENJZ2VHE-BaPHkOPd.js} +1 -1
- package/dist/public/assets/{chunk-FMBD7UC4-BRFfFZUV.js → chunk-FMBD7UC4-Sg4QfR2X.js} +1 -1
- package/dist/public/assets/{chunk-FOC6F5B3-DbCYqa4I.js → chunk-FOC6F5B3-D76iMJUf.js} +1 -1
- package/dist/public/assets/{chunk-ICPOFSXX-DpFBQyTN.js → chunk-ICPOFSXX-DlM8yc3o.js} +2 -2
- package/dist/public/assets/{chunk-K5T4RW27-C5T8nhQn.js → chunk-K5T4RW27-o4pGUO6-.js} +1 -1
- package/dist/public/assets/{chunk-KGLVRYIC-DK87tkyy.js → chunk-KGLVRYIC-DlaCM317.js} +1 -1
- package/dist/public/assets/{chunk-LIHQZDEY-h3Er4C0s.js → chunk-LIHQZDEY-wt2Qc-rg.js} +1 -1
- package/dist/public/assets/{chunk-ORNJ4GCN-BxcDDNpi.js → chunk-ORNJ4GCN-BHgDQV41.js} +1 -1
- package/dist/public/assets/{chunk-OYMX7WX6-_s09vzcl.js → chunk-OYMX7WX6-BHQCcMht.js} +1 -1
- package/dist/public/assets/chunk-QZHKN3VN-BcpoMdLu.js +1 -0
- package/dist/public/assets/{chunk-U2HBQHQK-A9XuAVDt.js → chunk-U2HBQHQK-D4H3Zear.js} +1 -1
- package/dist/public/assets/{chunk-X2U36JSP-ByDdWxg2.js → chunk-X2U36JSP-ByMMuCmz.js} +1 -1
- package/dist/public/assets/{chunk-XPW4576I-DZebSSCr.js → chunk-XPW4576I-DGAGb6jI.js} +1 -1
- package/dist/public/assets/{chunk-YZCP3GAM-BHEVWDS1.js → chunk-YZCP3GAM-CLKcOka4.js} +1 -1
- package/dist/public/assets/{chunk-ZZ45TVLE-eIBBBHMO.js → chunk-ZZ45TVLE-nqD2epOe.js} +1 -1
- package/dist/public/assets/circle-alert-sOrK-E2e.js +1 -0
- package/dist/public/assets/classDiagram-6PBFFD2Q-MnKF6SyF.js +1 -0
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-zCakvYeI.js +1 -0
- package/dist/public/assets/clipboard-adapter-BscVzpz1.js +1 -0
- package/dist/public/assets/clone-C-i8X3vQ.js +1 -0
- package/dist/public/assets/collapsible-Cc4bgirL.js +1 -0
- package/dist/public/assets/{config-provider-dZze7ypK.js → config-provider-2uXvVEZR.js} +2 -2
- package/dist/public/assets/{cose-bilkent-S5V4N54A-wGFgKvnX.js → cose-bilkent-S5V4N54A-B2yzzZk8.js} +1 -1
- package/dist/public/assets/createLucideIcon-BPhNPfG7.js +1 -0
- package/dist/public/assets/{dagre-B3d6sa-P.js → dagre-BIgQuqiZ.js} +1 -1
- package/dist/public/assets/{dagre-KV5264BT-JDUs3Ywf.js → dagre-KV5264BT-D7ZMiRem.js} +1 -1
- package/dist/public/assets/{diagram-5BDNPKRD-Dg4G7P9n.js → diagram-5BDNPKRD-BYEpe_ZJ.js} +1 -1
- package/dist/public/assets/{diagram-G4DWMVQ6-_btq3fcX.js → diagram-G4DWMVQ6-DxQlpGFr.js} +1 -1
- package/dist/public/assets/{diagram-MMDJMWI5-CcvSXwi1.js → diagram-MMDJMWI5-RJKi5ZMs.js} +1 -1
- package/dist/public/assets/{diagram-TYMM5635-D22ra0aB.js → diagram-TYMM5635-Cbv6Q-Tj.js} +1 -1
- package/dist/public/assets/dialog-CZK_GJbX.js +45 -0
- package/dist/public/assets/{dist-Csh9y0a0.js → dist-5OMiBr1O.js} +1 -1
- package/dist/public/assets/dist-BhVkC6Rc.js +1 -0
- package/dist/public/assets/{dist-C71V3z3d.js → dist-C0zHgAnC.js} +1 -1
- package/dist/public/assets/{dist-sRKGD4vA.js → dist-C1stM53P.js} +1 -1
- package/dist/public/assets/dist-CCW5cnWo.js +1 -0
- package/dist/public/assets/{dist-B_WDz9Fr.js → dist-CD524qWG.js} +1 -1
- package/dist/public/assets/{dist-Gaq2suxg.js → dist-CK-u_yUG.js} +1 -1
- package/dist/public/assets/dist-CaqI7EF5.js +1 -0
- package/dist/public/assets/{dist-COmtpu4e.js → dist-Ctotkt8m.js} +1 -1
- package/dist/public/assets/dist-D-nYc0c5.js +1 -0
- package/dist/public/assets/{dist-DYyQPSDl.js → dist-DIOoTUYz.js} +1 -1
- package/dist/public/assets/{dist-ClYcK7Yq.js → dist-DJkVfTTW.js} +1 -1
- package/dist/public/assets/{dist-BzxczcQx.js → dist-DJzR_Ier.js} +1 -1
- package/dist/public/assets/{dist-BtuJEC9v.js → dist-DLPICmSw.js} +1 -1
- package/dist/public/assets/dist-DlBs2Z86.js +1 -0
- package/dist/public/assets/{dist-BxbpSpXO.js → dist-DwYhX11V.js} +1 -1
- package/dist/public/assets/dist-K3kyyBcW.js +1 -0
- package/dist/public/assets/{dist-Dot7Y1W_.js → dist-V49XHj-a.js} +1 -1
- package/dist/public/assets/{dist-DmkgvB1A.js → dist-yzeYbK6D.js} +1 -1
- package/dist/public/assets/{doc-hash-Ce3LmfP6.js → doc-hash-B37_BwmO.js} +1 -1
- package/dist/public/assets/{documents-events-BzQ1LRmI.js → documents-events-Bf8O52Ha.js} +1 -1
- package/dist/public/assets/{erDiagram-SMLLAGMA-Dj8YMxjW.js → erDiagram-SMLLAGMA-BmMOegIt.js} +1 -1
- package/dist/public/assets/eye-W_Da58Av.js +1 -0
- package/dist/public/assets/file-text-et24uQST.js +1 -0
- package/dist/public/assets/{file-tree-adapter-BoRujkp5.js → file-tree-adapter-3d-SPVop.js} +1 -1
- package/dist/public/assets/{flatten-ujIQdAhg.js → flatten-CCmz8_dj.js} +1 -1
- package/dist/public/assets/{flowDiagram-DWJPFMVM-DDcEWD-q.js → flowDiagram-DWJPFMVM-0LqPtkiA.js} +1 -1
- package/dist/public/assets/folder-open-BO3O3WRb.js +1 -0
- package/dist/public/assets/{ganttDiagram-T4ZO3ILL-CKgBVe7I.js → ganttDiagram-T4ZO3ILL-DRsSWVHe.js} +1 -1
- package/dist/public/assets/git-branch-Bb5seqP3.js +1 -0
- package/dist/public/assets/gitGraph-7Q5UKJZL-D_-MQMqR.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-UUTBAWPF-5Yvrsclr.js → gitGraphDiagram-UUTBAWPF-BdADm4E0.js} +1 -1
- package/dist/public/assets/{graphlib-BKd5zl5M.js → graphlib-Dg3M3E4b.js} +1 -1
- package/dist/public/assets/index-Byr-pQd3.css +1 -0
- package/dist/public/assets/index-C6gsky75.js +2003 -0
- package/dist/public/assets/info-OMHHGYJF-BszLPAsY.js +1 -0
- package/dist/public/assets/info-p7xnknfW.js +1 -0
- package/dist/public/assets/{infoDiagram-42DDH7IO-DWX2gsFq.js → infoDiagram-42DDH7IO-qvYhaJaR.js} +1 -1
- package/dist/public/assets/input-DBQZgTXT.js +1 -0
- package/dist/public/assets/{isEmpty-DO9Crefy.js → isEmpty-C5m2-RSe.js} +1 -1
- package/dist/public/assets/isSymbol-bbBleIZC.js +1 -0
- package/dist/public/assets/{ishikawaDiagram-UXIWVN3A-BRI718L_.js → ishikawaDiagram-UXIWVN3A-CcivmKPd.js} +1 -1
- package/dist/public/assets/{journeyDiagram-VCZTEJTY-7vOUzwhV.js → journeyDiagram-VCZTEJTY-ouWVthki.js} +1 -1
- package/dist/public/assets/{kanban-definition-6JOO6SKY-DPb75KVR.js → kanban-definition-6JOO6SKY-ZhUMH8F2.js} +1 -1
- package/dist/public/assets/{keyboard-shortcuts-B5l045PW.js → keyboard-shortcuts-BxD83XhC.js} +1 -1
- package/dist/public/assets/label-BpH34DoN.js +1 -0
- package/dist/public/assets/{line-CSmMFPEZ.js → line-So0Nf7v2.js} +1 -1
- package/dist/public/assets/{linear-2o-zj9Qh.js → linear-7dqmcJYs.js} +1 -1
- package/dist/public/assets/loader-circle-Cu01Ckhe.js +1 -0
- package/dist/public/assets/{mermaid-parser.core-Dx4yPDvJ.js → mermaid-parser.core-gjoLdFzV.js} +2 -2
- package/dist/public/assets/{mermaid.core-B0jTlahc.js → mermaid.core-DIaQcKcu.js} +3 -3
- package/dist/public/assets/{mindmap-definition-QFDTVHPH-CEt4YJY1.js → mindmap-definition-QFDTVHPH-BpktrSi5.js} +1 -1
- package/dist/public/assets/miss-dialog-store-DxVemLe3.js +1 -0
- package/dist/public/assets/{navigation-targets-XC4PBjfz.js → navigation-targets-DFne-srR.js} +1 -1
- package/dist/public/assets/{now-By2-TWwE.js → now-Dslec7Y8.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-DA0lLz1S.js → open-managed-artifact-tab-B1BoyKiE.js} +1 -1
- package/dist/public/assets/{ordinal-CCfGWVix.js → ordinal-GH4e7Z1z.js} +1 -1
- package/dist/public/assets/packet-4T2RLAQJ-Bv1Aae8C.js +1 -0
- package/dist/public/assets/panel-HcGnbQ9h.js +1 -0
- package/dist/public/assets/pending-receive-nav-store-DCHjTg-k.js +1 -0
- package/dist/public/assets/pie-ZZUOXDRM-CWm6tOdZ.js +1 -0
- package/dist/public/assets/{pieDiagram-DEJITSTG-DaX8KHz8.js → pieDiagram-DEJITSTG-BPZLf8gB.js} +1 -1
- package/dist/public/assets/project-paths-Bg2cu_Xr.js +1 -0
- package/dist/public/assets/prop-types-DXfg1BnH.js +1 -0
- package/dist/public/assets/{propagation-api-BHhJitgG.js → propagation-api-C0PBUfbG.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-34T5L4WZ-DmqJPLei.js → quadrantDiagram-34T5L4WZ-pdw_MogG.js} +1 -1
- package/dist/public/assets/radar-PYXPWWZC-BnuozSTl.js +1 -0
- package/dist/public/assets/radio-group-CkH5F_ZT.js +1 -0
- package/dist/public/assets/{receive-store-BaQla7GO.js → receive-store-vDvyLF_T.js} +2 -2
- package/dist/public/assets/{reduce-C_-1aIfA.js → reduce-CmXLDnl6.js} +1 -1
- package/dist/public/assets/refresh-cw-C9i-ShKk.js +1 -0
- package/dist/public/assets/{requirementDiagram-MS252O5E-D6rjssTu.js → requirementDiagram-MS252O5E-BPFpj55s.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-XADWPNL6-DLPqNSxl.js → sankeyDiagram-XADWPNL6-BlIkXMJT.js} +1 -1
- package/dist/public/assets/{selection-context-Q-Ojx168.js → selection-context-CaK5JqJX.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-FGHM5R23-7YmLLx2D.js → sequenceDiagram-FGHM5R23-DiHLgJYc.js} +1 -1
- package/dist/public/assets/skill-actions-z_sZDeWy.js +1 -0
- package/dist/public/assets/skills-api-CQ8dGACz.js +1 -0
- package/dist/public/assets/{src-DR1IlxwI.js → src-CqaRgyJX.js} +1 -1
- package/dist/public/assets/{src-DHOupE17.js → src-D_zlKpkH.js} +1 -1
- package/dist/public/assets/{stateDiagram-FHFEXIEX-BcQiMDhd.js → stateDiagram-FHFEXIEX-BvvfLH6H.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-Ddr1j6xz.js +1 -0
- package/dist/public/assets/{target-navigation-intent-Bs-B8CMa.js → target-navigation-intent-fp9D_EWj.js} +1 -1
- package/dist/public/assets/{telemetry-impl-DGG3JG6S.js → telemetry-impl-DkfWYdsZ.js} +2 -2
- package/dist/public/assets/telemetry-startup-B2tAiMsF.js +1 -0
- package/dist/public/assets/textarea-BBYgAifm.js +1 -0
- package/dist/public/assets/{timeline-definition-GMOUNBTQ-D2PEfPtg.js → timeline-definition-GMOUNBTQ-Cm-_wwCn.js} +1 -1
- package/dist/public/assets/toggle-group-B_aSxEq-.js +1 -0
- package/dist/public/assets/tooltip-DZYAkZo5.js +1 -0
- package/dist/public/assets/trash-2-410fw8eF.js +1 -0
- package/dist/public/assets/treeView-SZITEDCU-DKwVPz-3.js +1 -0
- package/dist/public/assets/treemap-W4RFUUIX-D4LXGVs_.js +1 -0
- package/dist/public/assets/triangle-alert-Bo8gNh02.js +1 -0
- package/dist/public/assets/typing-burst-detector-D2Bw0GR2.js +6 -0
- package/dist/public/assets/{vennDiagram-DHZGUBPP-C7vJQ4cy.js → vennDiagram-DHZGUBPP-rndTcHCv.js} +1 -1
- package/dist/public/assets/wardley-RL74JXVD-BivuXjN1.js +1 -0
- package/dist/public/assets/{wardleyDiagram-NUSXRM2D-cZLQAvwn.js → wardleyDiagram-NUSXRM2D-D0g460BL.js} +1 -1
- package/dist/public/assets/workspace-paths-DkmFj3_t.js +1 -0
- package/dist/public/assets/worktree-store-CLuGV1SL.js +1 -0
- package/dist/public/assets/x-BIoRq4ww.js +1 -0
- package/dist/public/assets/{xychartDiagram-5P7HB3ND-C7hMSIXA.js → xychartDiagram-5P7HB3ND-DzjJ5eMr.js} +1 -1
- package/dist/public/index.html +88 -82
- package/dist/{repair-launch-json-DFFNAgt4.mjs → repair-launch-json-B3tCb6mc.mjs} +2 -2
- package/dist/{repair-mcp-configs-C_cIyZxQ.mjs → repair-mcp-configs-CEW6gLAh.mjs} +2 -2
- package/dist/{repair-skills-DRQ6zPpF.mjs → repair-skills-8TG-7oqC.mjs} +2 -2
- package/dist/repair-skills-C0-d0sWC.mjs +1 -0
- package/dist/src-DpeAxWxV.mjs +21 -0
- package/dist/start-DNTGzBuC.mjs +1 -0
- package/dist/{start-DX3p80qb.mjs → start-Df6dIbx1.mjs} +2 -2
- package/dist/{write-project-skill-fM8HWeYm.mjs → write-project-skill-CbSfzwa8.mjs} +1 -1
- package/package.json +1 -1
- package/dist/constants-KPTyVFV8.mjs +0 -2
- package/dist/init-DFr8pToX.mjs +0 -1
- package/dist/loader-DwcZjA-t.mjs +0 -1
- package/dist/preview-DbnyxVMM.mjs +0 -1
- package/dist/public/assets/ActivityModeContent-CvscUOlB.js +0 -2
- package/dist/public/assets/CodeMirrorPropInput-GWGwbu-Z.js +0 -3
- package/dist/public/assets/ConsentDialogBody-BuKqWdML.js +0 -2
- package/dist/public/assets/DocumentContext-Dl32cms8.js +0 -35
- package/dist/public/assets/EnableSyncConfirmDialog-84rkuitb.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-BchMXJov.js +0 -1
- package/dist/public/assets/McpConsentDialogBody-CIA51kgu.js +0 -1
- package/dist/public/assets/PropertyPanel-Cm9QPZIM.js +0 -2
- package/dist/public/assets/SettingsDialogBody-CoRSU9Td.js +0 -7
- package/dist/public/assets/ShareBranchSwitchDialog-BenQyIEd.js +0 -1
- package/dist/public/assets/ShareReceiveDialog-DWYhHOXw.js +0 -1
- package/dist/public/assets/ShareReceiveMissDialog-CPsNjXmy.js +0 -1
- package/dist/public/assets/SkillEditorActions-CODXEDz3.js +0 -1
- package/dist/public/assets/SourceEditor-vePDOFlu.js +0 -1
- package/dist/public/assets/agent-presence-DKQJl08k.js +0 -1
- package/dist/public/assets/architecture-YZFGNWBL-xBtaj0ft.js +0 -1
- package/dist/public/assets/arrow-up-right-Crm0Btez.js +0 -1
- package/dist/public/assets/auth-state-cache-BIPktuPk.js +0 -11
- package/dist/public/assets/button-cneJOVxD.js +0 -1
- package/dist/public/assets/calendar-Cpuc24Im.js +0 -1
- package/dist/public/assets/channel-Cr8di4AE.js +0 -1
- package/dist/public/assets/check-DRRCCRSs.js +0 -1
- package/dist/public/assets/checkbox-DurEHAAx.js +0 -1
- package/dist/public/assets/chevron-down-BvNcCN1f.js +0 -1
- package/dist/public/assets/chevron-left-BEP8MhU3.js +0 -1
- package/dist/public/assets/chevron-right-DSNnH-Vb.js +0 -1
- package/dist/public/assets/chunk-426QAEUC-DXNyRebD.js +0 -1
- package/dist/public/assets/chunk-55IACEB6-dVWfrfbT.js +0 -1
- package/dist/public/assets/chunk-QZHKN3VN-BwjAXRaB.js +0 -1
- package/dist/public/assets/classDiagram-6PBFFD2Q-DiVFvVhC.js +0 -1
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-B1FOCtng.js +0 -1
- package/dist/public/assets/clone-C4oDGqJ8.js +0 -1
- package/dist/public/assets/collapsible-mJvufeMs.js +0 -1
- package/dist/public/assets/dialog-DdHaoAGK.js +0 -45
- package/dist/public/assets/dist-BSkHa6UR.js +0 -1
- package/dist/public/assets/dist-CoyydoqN.js +0 -1
- package/dist/public/assets/dist-CyYz03up.js +0 -1
- package/dist/public/assets/dist-Dkr4jGYv.js +0 -1
- package/dist/public/assets/dist-fpPv-rVb.js +0 -1
- package/dist/public/assets/eye-WB1l5kVb.js +0 -1
- package/dist/public/assets/folder-open-BF5DIykr.js +0 -1
- package/dist/public/assets/git-branch-q0qWPEwd.js +0 -1
- package/dist/public/assets/gitGraph-7Q5UKJZL-C_wYiB1L.js +0 -1
- package/dist/public/assets/index-Ba1S3D-p.css +0 -1
- package/dist/public/assets/index-CKB7bl9B.js +0 -2003
- package/dist/public/assets/info-BlYnsVoP.js +0 -1
- package/dist/public/assets/info-OMHHGYJF-Dr8H9qWn.js +0 -1
- package/dist/public/assets/input-tW78aNaR.js +0 -1
- package/dist/public/assets/isSymbol-BhFc7brD.js +0 -1
- package/dist/public/assets/label-DPn_C7ZD.js +0 -1
- package/dist/public/assets/loader-circle-B7Gv_Djz.js +0 -1
- package/dist/public/assets/miss-dialog-store-PJQ_kr0I.js +0 -1
- package/dist/public/assets/packet-4T2RLAQJ-BqCK9xgc.js +0 -1
- package/dist/public/assets/panel-BH2RZRZQ.js +0 -1
- package/dist/public/assets/pending-receive-nav-store-lNMDQCmC.js +0 -1
- package/dist/public/assets/pie-ZZUOXDRM-C4ahAmji.js +0 -1
- package/dist/public/assets/project-paths-Bdm7wr4i.js +0 -1
- package/dist/public/assets/prop-types-CbtJ1iyP.js +0 -1
- package/dist/public/assets/radar-PYXPWWZC-BBRhwenM.js +0 -1
- package/dist/public/assets/radio-group-B0RG5um-.js +0 -1
- package/dist/public/assets/refresh-cw-CluaccKu.js +0 -1
- package/dist/public/assets/skill-actions-D2II4Qq4.js +0 -1
- package/dist/public/assets/skills-api-bbofiqW7.js +0 -1
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-Cv6psfet.js +0 -1
- package/dist/public/assets/telemetry-startup-DxsH0f-U.js +0 -1
- package/dist/public/assets/textarea-DtAQz2_P.js +0 -1
- package/dist/public/assets/toggle-group-CXHn0FKi.js +0 -1
- package/dist/public/assets/tooltip-FFg0kVkD.js +0 -1
- package/dist/public/assets/trash-2-Dcpo0Di-.js +0 -1
- package/dist/public/assets/treeView-SZITEDCU-C9VZH09i.js +0 -1
- package/dist/public/assets/treemap-W4RFUUIX-sLmeiUzQ.js +0 -1
- package/dist/public/assets/triangle-alert-c3yCucJv.js +0 -1
- package/dist/public/assets/typing-burst-detector-CBiF5H7t.js +0 -6
- package/dist/public/assets/wardley-RL74JXVD-DxEEV_jo.js +0 -1
- package/dist/public/assets/workspace-paths-BBX7G5gP.js +0 -1
- package/dist/repair-skills-C4SUGawj.mjs +0 -1
- package/dist/src-DPqsMpTr.mjs +0 -11
- package/dist/start-BA1WmaQA.mjs +0 -1
- /package/dist/public/assets/{ActivityPanelDiffView-B6QdoucA.js → ActivityPanelDiffView-BUS_IClA.js} +0 -0
- /package/dist/public/assets/{__vite-browser-external-BR8_t-ok.js → __vite-browser-external-nMYNicjc.js} +0 -0
- /package/dist/public/assets/{array-CuvIgdMf.js → array-DA62ss4d.js} +0 -0
- /package/dist/public/assets/{clike-BpCX2P2I.js → clike-f5rGWX5o.js} +0 -0
- /package/dist/public/assets/{colors-viOD3yoc.js → colors-BtJnRWTu.js} +0 -0
- /package/dist/public/assets/{config-context-CE3SCVYc.js → config-context-GBTLA0Td.js} +0 -0
- /package/dist/public/assets/{cursor-CjNH7VrK.js → cursor-CouJSC9c.js} +0 -0
- /package/dist/public/assets/{cytoscape.esm-mXzA4jyQ.js → cytoscape.esm-DAexRXdS.js} +0 -0
- /package/dist/public/assets/{defaultLocale-Brze29Nm.js → defaultLocale-DjcXuYt0.js} +0 -0
- /package/dist/public/assets/{desktop-bridge-types-NXCK8Pd7.js → desktop-bridge-types-DUvVV0tT.js} +0 -0
- /package/dist/public/assets/{diff-B-RpHLEu.js → diff-C6rPA7NX.js} +0 -0
- /package/dist/public/assets/{dist-BvBijIC5.js → dist-Bvqpz5aH.js} +0 -0
- /package/dist/public/assets/{dist-BzWUi0nJ.js → dist-DXmpSd5X.js} +0 -0
- /package/dist/public/assets/{dist-CepaWG6n.js → dist-QYTl87xy.js} +0 -0
- /package/dist/public/assets/{documents-fetch-oup83IZh.js → documents-fetch-D9Azkuau.js} +0 -0
- /package/dist/public/assets/{external-link-DvDOavYT.js → external-link-PPmVWR7S.js} +0 -0
- /package/dist/public/assets/{file-tree-rename-validation-DeKIxKnc.js → file-tree-rename-validation-DEJ31Vcw.js} +0 -0
- /package/dist/public/assets/{floating-ui.dom-DVRWCLii.js → floating-ui.dom-B3TJy2Tg.js} +0 -0
- /package/dist/public/assets/{format-EMqSStmm.js → format-ReH7V0UD.js} +0 -0
- /package/dist/public/assets/{go-3CbI6agw.js → go-BDL-nvej.js} +0 -0
- /package/dist/public/assets/{init-AaQV2WsU.js → init-BcRdj30F.js} +0 -0
- /package/dist/public/assets/{isObjectLike-D3Jc2RN1.js → isObjectLike-p4oxO3k2.js} +0 -0
- /package/dist/public/assets/{katex-BunQWEOH.js → katex-lkho_UhZ.js} +0 -0
- /package/dist/public/assets/{lua-CImTx43q.js → lua-DazQKUZ0.js} +0 -0
- /package/dist/public/assets/{mcp-consent-store-BxRtlIhJ.js → mcp-consent-store-3q0L29vA.js} +0 -0
- /package/dist/public/assets/{min-CIIm51Yo.js → min-BBkt5AXx.js} +0 -0
- /package/dist/public/assets/{panzoom.es-B9PeX97a.js → panzoom.es-CuUBMiI5.js} +0 -0
- /package/dist/public/assets/{parse-api-error-CqtA8BcL.js → parse-api-error-D_SUnYAN.js} +0 -0
- /package/dist/public/assets/{path-B33pvNxs.js → path-DO8zQ-Ae.js} +0 -0
- /package/dist/public/assets/{pdf-WLEpkBFf.js → pdf-CbXPrrUD.js} +0 -0
- /package/dist/public/assets/{pdf.worker-BZkygqjt.js → pdf.worker-XGhSae8l.js} +0 -0
- /package/dist/public/assets/{perl-Blo9V_bV.js → perl-BaZItvTQ.js} +0 -0
- /package/dist/public/assets/{properties-BbTKbq9k.js → properties-CuaVqlKt.js} +0 -0
- /package/dist/public/assets/{r-BoaXxHWr.js → r-IUsFwQdS.js} +0 -0
- /package/dist/public/assets/{rough.esm-DfPytGQ-.js → rough.esm-DWDlLNAi.js} +0 -0
- /package/dist/public/assets/{ruby-Dl-I4pxG.js → ruby-BWibniew.js} +0 -0
- /package/dist/public/assets/{share-metadata-rows-BttnPmuW.js → share-metadata-rows-VY-5eTfA.js} +0 -0
- /package/dist/public/assets/{shell-BbGOQhIp.js → shell-DUveK2Hb.js} +0 -0
- /package/dist/public/assets/{sql-Bwur_qe2.js → sql-C6MOB-cH.js} +0 -0
- /package/dist/public/assets/{src-COe6dO0Z.js → src-C1bTuxCq.js} +0 -0
- /package/dist/public/assets/{startup-marks-DDtA9pbt.js → startup-marks-DdXX18dm.js} +0 -0
- /package/dist/public/assets/{stex-4t0JIuX_.js → stex-C0Jw9RbH.js} +0 -0
- /package/dist/public/assets/{swift-T0hDoOb-.js → swift-BD9rjiqY.js} +0 -0
- /package/dist/public/assets/{toml-DDz4twot.js → toml-25JKpH7B.js} +0 -0
- /package/dist/public/assets/{trace-api-D6fqC5Nw.js → trace-api-DN18ByDo.js} +0 -0
- /package/dist/public/assets/{w3c-keyname-CHcJEDvG.js → w3c-keyname-VSld09PZ.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t}from"./src-
|
|
1
|
+
import{n as e,r as t}from"./src-CqaRgyJX.js";import{B as n,C as r,L as i,V as a,W as o,_ as s,a as c,b as l,c as u,v as d}from"./chunk-ICPOFSXX-DlM8yc3o.js";import{t as f}from"./chunk-426QAEUC-RFGaT71Y.js";import{t as p}from"./chunk-4BX2VUAB-DRfG-ueY.js";import{t as m}from"./mermaid-parser.core-gjoLdFzV.js";var h=e((e,t)=>{let n=e<=1?e*100:e;if(n<0||n>100)throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return n},`toPercent`),g=e((e,t,n)=>({x:h(t,`${n} evolution`),y:h(e,`${n} visibility`)}),`toCoordinates`),_=e(e=>{if(e){if(e===`+<>`)return`bidirectional`;if(e===`+<`)return`backward`;if(e===`+>`)return`forward`}},`getFlowFromPort`),v=e(e=>{if(!e?.startsWith(`+`))return{};let t=/^\+'([^']*)'/.exec(e)?.[1];return e.includes(`<>`)?{flow:`bidirectional`,label:t}:e.includes(`<`)?{flow:`backward`,label:t}:e.includes(`>`)?{flow:`forward`,label:t}:{label:t}},`extractFlowFromArrow`),y=e((e,t)=>{if(p(e,t),e.size&&t.setSize(e.size.width,e.size.height),e.evolution){let n=e.evolution.stages.map(e=>e.secondName?`${e.name.trim()} / ${e.secondName.trim()}`:e.name.trim()),r=e.evolution.stages.filter(e=>e.boundary!==void 0).map(e=>e.boundary);t.updateAxes({stages:n,stageBoundaries:r})}if(e.anchors.forEach(e=>{let n=g(e.visibility,e.evolution,`Anchor "${e.name}"`);t.addNode(e.name,e.name,n.x,n.y,`anchor`)}),e.components.forEach(e=>{let n=g(e.visibility,e.evolution,`Component "${e.name}"`),r=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,i=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,a=e.decorator?.strategy;t.addNode(e.name,e.name,n.x,n.y,`component`,r,i,e.inertia,a)}),e.notes.forEach(e=>{let n=g(e.visibility,e.evolution,`Note "${e.text}"`);t.addNote(e.text,n.x,n.y)}),e.pipelines.forEach(e=>{let n=t.getNode(e.parent);if(!n||typeof n.y!=`number`)throw Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);let r=n.y;t.startPipeline(e.parent),e.components.forEach(n=>{let i=`${e.parent}_${n.name}`,a=n.label?(n.label.negX?-1:1)*n.label.offsetX:void 0,o=n.label?(n.label.negY?-1:1)*n.label.offsetY:void 0,s=h(n.evolution,`Pipeline component "${n.name}" evolution`);t.addNode(i,n.name,s,r,`pipeline-component`,a,o),t.addPipelineComponent(e.parent,i)})}),e.links.forEach(e=>{let n=!!e.arrow&&(e.arrow.includes(`-.->`)||e.arrow.includes(`.-.`)),r=_(e.fromPort)??_(e.toPort),{flow:i,label:a}=v(e.arrow);!r&&i&&(r=i);let o=e.linkLabel,s=a??o;t.addLink(e.from,e.to,n,s,r)}),e.evolves.forEach(e=>{let n=t.getNode(e.component);if(n?.y!==void 0){let r=h(e.target,`Evolve target for "${e.component}"`);t.addTrend(e.component,r,n.y)}}),e.annotations.length>0){let n=e.annotations[0],r=g(n.x,n.y,`Annotations box`);t.setAnnotationsBox(r.x,r.y)}e.annotation.forEach(e=>{let n=g(e.x,e.y,`Annotation ${e.number}`);t.addAnnotation(e.number,[{x:n.x,y:n.y}],e.text)}),e.accelerators.forEach(e=>{let n=g(e.x,e.y,`Accelerator "${e.name}"`);t.addAccelerator(e.name,n.x,n.y)}),e.deaccelerators.forEach(e=>{let n=g(e.x,e.y,`Deaccelerator "${e.name}"`);t.addDeaccelerator(e.name,n.x,n.y)})},`populateDb`),b={parser:{yy:void 0},parse:e(async e=>{let n=await m(`wardley`,e);t.debug(n);let r=b.parser?.yy;if(!r||typeof r.addNode!=`function`)throw Error(`parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);y(n,r)},`parse`)},x=new class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{e(this,`WardleyBuilder`)}addNode(e){let t=this.nodes.get(e.id)??{id:e.id,label:e.label},n={...t,...e,className:e.className??t.className,labelOffsetX:e.labelOffsetX??t.labelOffsetX,labelOffsetY:e.labelOffsetY??t.labelOffsetY};this.nodes.set(e.id,n)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});let t=this.nodes.get(e);t&&(t.isPipelineParent=!0)}addPipelineComponent(e,t){let n=this.pipelines.get(e);n&&n.componentIds.push(t);let r=this.nodes.get(t);r&&(r.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,t){this.annotationsBox={x:e,y:t}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,t){this.size={width:e,height:t}}getNode(e){return this.nodes.get(e)}build(){let e=[];for(let t of this.nodes.values()){if(typeof t.x!=`number`||typeof t.y!=`number`)throw Error(`Node "${t.label}" is missing coordinates`);e.push(t)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}};function S(e){let t=l();return i(e.trim(),t)}e(S,`textSanitizer`);function C(){return l()[`wardley-beta`]}e(C,`getConfig`);function w(e,t,n,r,i,a,o,s,c){x.addNode({id:e,label:S(t),x:n,y:r,className:i,labelOffsetX:a,labelOffsetY:o,inertia:s,sourceStrategy:c})}e(w,`addNode`);function T(e,t,n=!1,r,i){x.addLink({source:e,target:t,dashed:n,label:r,flow:i})}e(T,`addLink`);function E(e,t,n){x.addTrend({nodeId:e,targetX:t,targetY:n})}e(E,`addTrend`);function D(e,t,n){x.addAnnotation({number:e,coordinates:t,text:n?S(n):void 0})}e(D,`addAnnotation`);function O(e,t,n){x.addNote({text:S(e),x:t,y:n})}e(O,`addNote`);function k(e,t,n){x.addAccelerator({name:S(e),x:t,y:n})}e(k,`addAccelerator`);function A(e,t,n){x.addDeaccelerator({name:S(e),x:t,y:n})}e(A,`addDeaccelerator`);function j(e,t){x.setAnnotationsBox(e,t)}e(j,`setAnnotationsBox`);function M(e,t){x.setSize(e,t)}e(M,`setSize`);function N(e){x.startPipeline(e)}e(N,`startPipeline`);function P(e,t){x.addPipelineComponent(e,t)}e(P,`addPipelineComponent`);function F(e){let t={};e.xLabel&&(t.xLabel=S(e.xLabel)),e.yLabel&&(t.yLabel=S(e.yLabel)),e.stages&&(t.stages=e.stages.map(e=>S(e))),e.stageBoundaries&&(t.stageBoundaries=e.stageBoundaries),x.setAxes(t)}e(F,`updateAxes`);function I(e){return x.getNode(e)}e(I,`getNode`);function L(){return x.build()}e(L,`getWardleyData`);function R(){x.clear(),c()}e(R,`clear`);var z={getConfig:C,addNode:w,addLink:T,addTrend:E,addAnnotation:D,addNote:O,addAccelerator:k,addDeaccelerator:A,setAnnotationsBox:j,setSize:M,startPipeline:N,addPipelineComponent:P,updateAxes:F,getNode:I,getWardleyData:L,clear:R,setAccTitle:a,getAccTitle:d,setDiagramTitle:o,getDiagramTitle:r,getAccDescription:s,setAccDescription:n},B=[`Genesis`,`Custom Built`,`Product`,`Commodity`],V=e(()=>{let{themeVariables:e}=l();return{backgroundColor:e.wardley?.backgroundColor??e.background??`#fff`,axisColor:e.wardley?.axisColor??`#000`,axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??`#222`,gridColor:e.wardley?.gridColor??`rgba(100, 100, 100, 0.2)`,componentFill:e.wardley?.componentFill??`#fff`,componentStroke:e.wardley?.componentStroke??`#000`,componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??`#222`,linkStroke:e.wardley?.linkStroke??`#000`,evolutionStroke:e.wardley?.evolutionStroke??`#dc3545`,annotationStroke:e.wardley?.annotationStroke??`#000`,annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??`#222`,annotationFill:e.wardley?.annotationFill??e.background??`#fff`}},`getTheme`),H=e(()=>{let e=l()[`wardley-beta`];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},`getConfigValues`),U={parser:b,db:z,renderer:{draw:e((n,r,i,a)=>{t.debug(`Rendering Wardley map
|
|
2
2
|
`+n);let o=H(),s=V(),c=o.nodeRadius*1.6,l=a.db,d=l.getWardleyData(),p=l.getDiagramTitle(),m=d.size?.width??o.width,h=d.size?.height??o.height,g=f(r);g.selectAll(`*`).remove(),u(g,h,m,o.useMaxWidth),g.attr(`viewBox`,`0 0 ${m} ${h}`);let _=g.append(`g`).attr(`class`,`wardley-map`),v=g.append(`defs`);v.append(`marker`).attr(`id`,`arrow-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,s.evolutionStroke).attr(`stroke`,`none`),v.append(`marker`).attr(`id`,`link-arrow-end-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,s.linkStroke).attr(`stroke`,`none`),v.append(`marker`).attr(`id`,`link-arrow-start-${r}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,1).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 z`).attr(`fill`,s.linkStroke).attr(`stroke`,`none`),_.append(`rect`).attr(`class`,`wardley-background`).attr(`width`,m).attr(`height`,h).attr(`fill`,s.backgroundColor);let y=m-o.padding*2,b=h-o.padding*2;p&&_.append(`text`).attr(`class`,`wardley-title`).attr(`x`,m/2).attr(`y`,o.padding/2).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize*1.05).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(p);let x=e(e=>o.padding+e/100*y,`projectX`),S=e(e=>h-o.padding-e/100*b,`projectY`),C=_.append(`g`).attr(`class`,`wardley-axes`);C.append(`line`).attr(`x1`,o.padding).attr(`x2`,m-o.padding).attr(`y1`,h-o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.axisColor).attr(`stroke-width`,1),C.append(`line`).attr(`x1`,o.padding).attr(`x2`,o.padding).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.axisColor).attr(`stroke-width`,1);let w=d.axes.xLabel??`Evolution`,T=d.axes.yLabel??`Visibility`;C.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-x`).attr(`x`,o.padding+y/2).attr(`y`,h-o.padding/4).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).text(w),C.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-y`).attr(`x`,o.padding/3).attr(`y`,o.padding+b/2).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`transform`,`rotate(-90 ${o.padding/3} ${o.padding+b/2})`).text(T);let E=d.axes.stages&&d.axes.stages.length>0?d.axes.stages:B;if(E.length>0){let e=_.append(`g`).attr(`class`,`wardley-stages`),t=d.axes.stageBoundaries,n=[];if(t&&t.length===E.length){let e=0;t.forEach(t=>{n.push({start:e,end:t}),e=t})}else{let e=1/E.length;E.forEach((t,r)=>{n.push({start:r*e,end:(r+1)*e})})}E.forEach((t,r)=>{let i=n[r],a=o.padding+i.start*y,c=(a+(o.padding+i.end*y))/2;r>0&&e.append(`line`).attr(`x1`,a).attr(`x2`,a).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,`#000`).attr(`stroke-width`,1).attr(`stroke-dasharray`,`5 5`).attr(`opacity`,.8),e.append(`text`).attr(`class`,`wardley-stage-label`).attr(`x`,c).attr(`y`,h-o.padding/1.5).attr(`fill`,s.axisTextColor).attr(`font-size`,o.axisFontSize-2).attr(`text-anchor`,`middle`).text(t)})}if(o.showGrid){let e=_.append(`g`).attr(`class`,`wardley-grid`);for(let t=1;t<4;t++){let n=t/4,r=o.padding+y*n;e.append(`line`).attr(`x1`,r).attr(`x2`,r).attr(`y1`,o.padding).attr(`y2`,h-o.padding).attr(`stroke`,s.gridColor).attr(`stroke-dasharray`,`2 6`),e.append(`line`).attr(`x1`,o.padding).attr(`x2`,m-o.padding).attr(`y1`,h-o.padding-b*n).attr(`y2`,h-o.padding-b*n).attr(`stroke`,s.gridColor).attr(`stroke-dasharray`,`2 6`)}}let D=new Map;if(d.nodes.forEach(e=>{D.set(e.id,{x:x(e.x),y:S(e.y),node:e})}),d.pipelines.length>0){let e=_.append(`g`).attr(`class`,`wardley-pipelines`),t=_.append(`g`).attr(`class`,`wardley-pipeline-links`);d.pipelines.forEach(n=>{if(n.componentIds.length===0)return;let r=n.componentIds.map(e=>({id:e,pos:D.get(e),node:d.nodes.find(t=>t.id===e)})).filter(e=>e.pos&&e.node).sort((e,t)=>e.node.x-t.node.x);for(let e=0;e<r.length-1;e++){let n=r[e],i=r[e+1];t.append(`line`).attr(`class`,`wardley-pipeline-evolution-link`).attr(`x1`,n.pos.x).attr(`y1`,n.pos.y).attr(`x2`,i.pos.x).attr(`y2`,i.pos.y).attr(`stroke`,s.linkStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,`4 4`)}let i=1/0,a=-1/0,l=0;if(n.componentIds.forEach(e=>{let t=D.get(e);t&&(i=Math.min(i,t.x),a=Math.max(a,t.x),l=t.y)}),i!==1/0&&a!==-1/0){let t=o.nodeRadius*4,r=l-t/2,u=D.get(n.nodeId);u&&(u.x=(i+a)/2,u.y=r-c/6),e.append(`rect`).attr(`class`,`wardley-pipeline-box`).attr(`x`,i-15).attr(`y`,r).attr(`width`,a-i+30).attr(`height`,t).attr(`fill`,`none`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}})}let O=_.append(`g`).attr(`class`,`wardley-links`),k=new Map;d.pipelines.forEach(e=>{k.set(e.nodeId,new Set(e.componentIds))});let A=d.links.filter(e=>!(!D.has(e.source)||!D.has(e.target)||k.get(e.target)?.has(e.source)));O.selectAll(`line`).data(A).enter().append(`line`).attr(`class`,e=>`wardley-link${e.dashed?` wardley-link--dashed`:``}`).attr(`x1`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.source).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=n.x-t.x,a=n.y-t.y,s=Math.sqrt(i*i+a*a);return t.x+i/s*r}).attr(`y1`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.source).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=n.x-t.x,a=n.y-t.y,s=Math.sqrt(i*i+a*a);return t.y+a/s*r}).attr(`x2`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.target).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=t.x-n.x,a=t.y-n.y,s=Math.sqrt(i*i+a*a);return n.x+i/s*r}).attr(`y2`,e=>{let t=D.get(e.source),n=D.get(e.target),r=d.nodes.find(t=>t.id===e.target).isPipelineParent?c/Math.sqrt(2):o.nodeRadius,i=t.x-n.x,a=t.y-n.y,s=Math.sqrt(i*i+a*a);return n.y+a/s*r}).attr(`stroke`,s.linkStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,e=>e.dashed?`6 6`:null).attr(`marker-end`,e=>e.flow===`forward`||e.flow===`bidirectional`?`url(#link-arrow-end-${r})`:null).attr(`marker-start`,e=>e.flow===`backward`||e.flow===`bidirectional`?`url(#link-arrow-start-${r})`:null),O.selectAll(`text`).data(A.filter(e=>e.label)).enter().append(`text`).attr(`class`,`wardley-link-label`).attr(`x`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.x+n.x)/2,i=n.y-t.y,a=n.x-t.x;return r+i/Math.sqrt(a*a+i*i)*8}).attr(`y`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.y+n.y)/2,i=n.x-t.x,a=n.y-t.y,o=Math.sqrt(i*i+a*a);return r+-i/o*8}).attr(`fill`,s.axisTextColor).attr(`font-size`,o.labelFontSize).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`transform`,e=>{let t=D.get(e.source),n=D.get(e.target),r=(t.x+n.x)/2,i=(t.y+n.y)/2,a=n.x-t.x,o=n.y-t.y,s=Math.sqrt(a*a+o*o),c=o/s,l=-a/s,u=r+c*8,d=i+l*8,f=Math.atan2(o,a)*180/Math.PI;return(f>90||f<-90)&&(f+=180),`rotate(${f} ${u} ${d})`}).text(e=>e.label);let j=_.append(`g`).attr(`class`,`wardley-trends`),M=d.trends.map(e=>{let t=D.get(e.nodeId);if(!t)return null;let n=x(e.targetX),r=S(e.targetY),i=n-t.x,a=r-t.y,s=Math.sqrt(i*i+a*a),c=o.nodeRadius+2;return{origin:t,targetX:n,targetY:r,adjustedX2:s>c?n-i/s*c:n,adjustedY2:s>c?r-a/s*c:r}}).filter(e=>e!==null);j.selectAll(`line`).data(M).enter().append(`line`).attr(`class`,`wardley-trend`).attr(`x1`,e=>e.origin.x).attr(`y1`,e=>e.origin.y).attr(`x2`,e=>e.adjustedX2).attr(`y2`,e=>e.adjustedY2).attr(`stroke`,s.evolutionStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,`4 4`).attr(`marker-end`,`url(#arrow-${r})`);let N=_.append(`g`).attr(`class`,`wardley-nodes`).selectAll(`g`).data(d.nodes).enter().append(`g`).attr(`class`,e=>[`wardley-node`,e.className?`wardley-node--${e.className}`:``].filter(Boolean).join(` `));N.filter(e=>e.sourceStrategy===`outsource`).append(`circle`).attr(`class`,`wardley-outsource-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#666`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.sourceStrategy===`buy`).append(`circle`).attr(`class`,`wardley-buy-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#ccc`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.sourceStrategy===`build`).append(`circle`).attr(`class`,`wardley-build-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`#eee`).attr(`stroke`,`#000`).attr(`stroke-width`,1);let P=N.filter(e=>e.sourceStrategy===`market`);P.append(`circle`).attr(`class`,`wardley-market-overlay`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius*2).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>!e.isPipelineParent&&e.sourceStrategy!==`market`&&e.className!==`anchor`).append(`circle`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y).attr(`r`,o.nodeRadius).attr(`fill`,s.componentFill).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1);let F=o.nodeRadius*.7,I=o.nodeRadius*1.2;if(P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x).attr(`y1`,e=>D.get(e.id).y-I).attr(`x2`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`y2`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`y1`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`x2`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`y2`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`y1`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`x2`,e=>D.get(e.id).x).attr(`y2`,e=>D.get(e.id).y-I).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x).attr(`cy`,e=>D.get(e.id).y-I).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x-I*Math.cos(Math.PI/6)).attr(`cy`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),P.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>D.get(e.id).x+I*Math.cos(Math.PI/6)).attr(`cy`,e=>D.get(e.id).y+I*Math.sin(Math.PI/6)).attr(`r`,F).attr(`fill`,`white`).attr(`stroke`,s.componentStroke).attr(`stroke-width`,2),N.filter(e=>e.isPipelineParent===!0).append(`rect`).attr(`x`,e=>D.get(e.id).x-c/2).attr(`y`,e=>D.get(e.id).y-c/2).attr(`width`,c).attr(`height`,c).attr(`fill`,s.componentFill).attr(`stroke`,s.componentStroke).attr(`stroke-width`,1),N.filter(e=>e.inertia===!0).append(`line`).attr(`class`,`wardley-inertia`).attr(`x1`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c/2+15:o.nodeRadius+15;return e.sourceStrategy&&(n+=o.nodeRadius+10),t.x+n}).attr(`y1`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c:o.nodeRadius*2;return t.y-n/2}).attr(`x2`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c/2+15:o.nodeRadius+15;return e.sourceStrategy&&(n+=o.nodeRadius+10),t.x+n}).attr(`y2`,e=>{let t=D.get(e.id),n=e.isPipelineParent?c:o.nodeRadius*2;return t.y+n/2}).attr(`stroke`,s.componentStroke).attr(`stroke-width`,6),N.append(`text`).attr(`x`,e=>{let t=D.get(e.id);if(e.className===`anchor`)return e.labelOffsetX===void 0?t.x:t.x+e.labelOffsetX;let n=o.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetX===void 0&&(n+=10);let r=e.labelOffsetX??n;return t.x+r}).attr(`y`,e=>{let t=D.get(e.id);if(e.className===`anchor`)return e.labelOffsetY===void 0?t.y-3:t.y+e.labelOffsetY;let n=-o.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetY===void 0&&(n-=10);let r=e.labelOffsetY??n;return t.y+r}).attr(`class`,`wardley-node-label`).attr(`fill`,e=>e.className===`evolved`?s.evolutionStroke:e.className===`anchor`?`#000`:s.componentLabelColor).attr(`font-size`,o.labelFontSize).attr(`font-weight`,e=>e.className===`anchor`?`bold`:`normal`).attr(`text-anchor`,e=>e.className===`anchor`?`middle`:`start`).attr(`dominant-baseline`,e=>e.className===`anchor`?`middle`:`auto`).text(e=>e.label),d.annotations.length>0){let e=_.append(`g`).attr(`class`,`wardley-annotations`);if(d.annotations.forEach(t=>{let n=t.coordinates.map(e=>({x:x(e.x),y:S(e.y)}));if(n.length>1)for(let t=0;t<n.length-1;t++)e.append(`line`).attr(`class`,`wardley-annotation-line`).attr(`x1`,n[t].x).attr(`y1`,n[t].y).attr(`x2`,n[t+1].x).attr(`y2`,n[t+1].y).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5).attr(`stroke-dasharray`,`4 4`);n.forEach(n=>{let r=e.append(`g`).attr(`class`,`wardley-annotation`);r.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,10).attr(`fill`,`white`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5),r.append(`text`).attr(`x`,n.x).attr(`y`,n.y).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).attr(`font-size`,10).attr(`fill`,s.axisTextColor).attr(`font-weight`,`bold`).text(t.number)})}),d.annotationsBox){let t=x(d.annotationsBox.x),n=S(d.annotationsBox.y),r=e.append(`g`).attr(`class`,`wardley-annotations-box`),i=[...d.annotations].filter(e=>e.text).sort((e,t)=>e.number-t.number),a=[];if(i.forEach((e,i)=>{let o=r.append(`text`).attr(`x`,t+10).attr(`y`,n+10+(i+1)*16).attr(`font-size`,11).attr(`fill`,s.axisTextColor).attr(`text-anchor`,`start`).attr(`dominant-baseline`,`middle`).text(`${e.number}. ${e.text}`);a.push(o)}),a.length>0){let e=0,c=0;a.forEach(t=>{let n=t.node(),r=n.getComputedTextLength();e=Math.max(e,r);let i=n.getBBox();c=Math.max(c,i.height)});let l=e+20+105,u=i.length*16+20+c/2,d=o.padding,f=m-o.padding-l,p=o.padding,g=h-o.padding-u;t=Math.max(d,Math.min(t,f)),n=Math.max(p,Math.min(n,g)),a.forEach((e,r)=>{e.attr(`x`,t+10).attr(`y`,n+10+(r+1)*16)}),r.insert(`rect`,`text`).attr(`x`,t).attr(`y`,n).attr(`width`,l).attr(`height`,u).attr(`fill`,`white`).attr(`stroke`,s.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}}}if(d.notes.length>0){let e=_.append(`g`).attr(`class`,`wardley-notes`);d.notes.forEach(t=>{let n=x(t.x),r=S(t.y);e.append(`text`).attr(`x`,n).attr(`y`,r).attr(`text-anchor`,`start`).attr(`font-size`,11).attr(`fill`,s.axisTextColor).attr(`font-weight`,`bold`).text(t.text)})}if(d.accelerators.length>0){let e=_.append(`g`).attr(`class`,`wardley-accelerators`);d.accelerators.forEach(t=>{let n=x(t.x),r=S(t.y),i=`
|
|
3
3
|
M ${n} ${r-30/2}
|
|
4
4
|
L ${n+60-20} ${r-30/2}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./chunk-CFjPhJqf.js";import{n as t}from"./compiler-runtime-CVnuRdak.js";import{r as n}from"./dist-CQw2y-s3.js";import{t as r}from"./createLucideIcon-BPhNPfG7.js";import{fn as i}from"./dist-DLPICmSw.js";var a=r(`copy-plus`,[[`line`,{x1:`15`,x2:`15`,y1:`12`,y2:`18`,key:`1p7wdc`}],[`line`,{x1:`12`,x2:`18`,y1:`15`,y2:`15`,key:`1nscbv`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),o=r(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),s=r(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),c=r(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),l=[`global`,`project`];function u(e){return{project:new Set(e.filter(e=>e.scope===`project`).map(e=>e.name)),global:new Set(e.filter(e=>e.scope===`global`).map(e=>e.name))}}var d=`open-knowledge-pack-`;function f(e){return e.startsWith(d)?e.slice(20):e}function p(){let{_:e}=n();return{project:e({id:`e0NrBM`}),global:e({id:`2GT3Hf`})}}function m(){let{_:e}=n();return{project:e({id:`HyvSqq`}),global:e({id:`C7XjNB`})}}var h=e(t(),1);function g(){let[e]=(0,h.useState)(_);return e}function _(){return i()!=null}function v(e,t,n){let r=n===`\\`?t.replaceAll(`/`,`\\`):t;return`${e.endsWith(n)?e.slice(0,-1):e}${n}${r}`}var y=/\.(md|mdx)$/i;function b(e){return y.test(e)?e:`${e}.md`}export{f as a,m as c,o as d,a as f,l as i,c as l,v as n,u as o,g as r,p as s,b as t,s as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){let t=null,n=!1,r=!1,i=!1,a=null,o=new Set;function s(){for(let e of o)e()}async function c(){if(r){i=!0;return}r=!0;try{let n=await e.fetchModel();n!==null&&n!==t&&(t=n,s())}catch{}finally{r=!1,i&&(i=!1,c())}}return{getSnapshot:()=>t,subscribe(t){return o.add(t),n||(n=!0,c()),e.subscribeRevalidate&&a===null&&(a=e.subscribeRevalidate(()=>{c()})),()=>{o.delete(t),o.size===0&&a!==null&&(a(),a=null)}},refresh(){c()}}}async function t(){let e=typeof window<`u`?window.okDesktop:void 0;if(!e)return null;let t=await e.worktree.list();return t.ok?t.model:null}function n(e){let t=()=>{document.visibilityState===`visible`&&e()};return window.addEventListener(`focus`,t),window.addEventListener(`visibilitychange`,t),()=>{window.removeEventListener(`focus`,t),window.removeEventListener(`visibilitychange`,t)}}var r=typeof window>`u`?{getSnapshot:()=>null,subscribe:()=>()=>{},refresh:()=>{}}:e({fetchModel:t,subscribeRevalidate:n}),i=r.subscribe,a=r.getSnapshot,o=r.refresh;export{o as n,i as r,a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-BPhNPfG7.js";var t=e(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);export{t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t}from"./src-
|
|
1
|
+
import{n as e,r as t}from"./src-CqaRgyJX.js";import{B as n,C as r,E as i,L as a,V as o,W as s,_ as c,a as l,c as u,d,v as f,y as p}from"./chunk-ICPOFSXX-DlM8yc3o.js";import{t as m}from"./linear-7dqmcJYs.js";import{t as h}from"./ordinal-GH4e7Z1z.js";import{t as g}from"./init-BcRdj30F.js";import{r as _}from"./chunk-5PVQY5BW-Cfkq4RiL.js";import{t as v}from"./line-So0Nf7v2.js";import{t as y}from"./chunk-426QAEUC-RFGaT71Y.js";import{t as b}from"./chunk-U2HBQHQK-D4H3Zear.js";function x(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function S(){var e=h().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=x(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return S(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},g.apply(d(),arguments)}var C=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,10,12,14,16,18,19,21,23],r=[2,6],i=[1,3],a=[1,5],o=[1,6],s=[1,7],c=[1,5,10,12,14,16,18,19,21,23,34,35,36],l=[1,25],u=[1,26],d=[1,28],f=[1,29],p=[1,30],m=[1,31],h=[1,32],g=[1,33],_=[1,34],v=[1,35],y=[1,36],b=[1,37],x=[1,43],S=[1,42],C=[1,47],w=[1,50],T=[1,10,12,14,16,18,19,21,23,34,35,36],E=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],D=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],O=[1,64],k={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:`error`,5:`XYCHART`,8:`CHART_ORIENTATION`,10:`title`,12:`X_AXIS`,14:`Y_AXIS`,16:`LINE`,18:`BAR`,19:`acc_title`,20:`acc_title_value`,21:`acc_descr`,22:`acc_descr_value`,23:`acc_descr_multiline_value`,24:`SQUARE_BRACES_START`,26:`SQUARE_BRACES_END`,27:`NUMBER_WITH_DECIMAL`,28:`COMMA`,31:`ARROW_DELIMITER`,34:`NEWLINE`,35:`SEMI`,36:`EOF`,38:`STR`,39:`MD_STR`,41:`AMP`,42:`NUM`,43:`ALPHA`,44:`PLUS`,45:`EQUALS`,46:`MULT`,47:`DOT`,48:`BRKT`,49:`MINUS`,50:`UNDERSCORE`},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.setOrientation(a[s]);break;case 9:r.setDiagramTitle(a[s].text.trim());break;case 12:r.setLineData({text:``,type:`text`},a[s]);break;case 13:r.setLineData(a[s-1],a[s]);break;case 14:r.setBarData({text:``,type:`text`},a[s]);break;case 15:r.setBarData(a[s-1],a[s]);break;case 16:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 19:this.$=a[s-1];break;case 20:this.$=[Number(a[s-2]),...a[s]];break;case 21:this.$=[Number(a[s])];break;case 22:r.setXAxisTitle(a[s]);break;case 23:r.setXAxisTitle(a[s-1]);break;case 24:r.setXAxisTitle({type:`text`,text:``});break;case 25:r.setXAxisBand(a[s]);break;case 26:r.setXAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 27:this.$=a[s-1];break;case 28:this.$=[a[s-2],...a[s]];break;case 29:this.$=[a[s]];break;case 30:r.setYAxisTitle(a[s]);break;case 31:r.setYAxisTitle(a[s-1]);break;case 32:r.setYAxisTitle({type:`text`,text:``});break;case 33:r.setYAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 37:this.$={text:a[s],type:`text`};break;case 38:this.$={text:a[s],type:`text`};break;case 39:this.$={text:a[s],type:`markdown`};break;case 40:this.$=a[s];break;case 41:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[t(n,r,{3:1,4:2,7:4,5:i,34:a,35:o,36:s}),{1:[3]},t(n,r,{4:2,7:4,3:8,5:i,34:a,35:o,36:s}),t(n,r,{4:2,7:4,6:9,3:10,5:i,8:[1,11],34:a,35:o,36:s}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),{1:[2,1]},t(n,r,{4:2,7:4,3:21,5:i,34:a,35:o,36:s}),{1:[2,3]},t(c,[2,5]),t(n,[2,7],{4:22,34:a,35:o,36:s}),{11:23,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:39,13:38,24:x,27:S,29:40,30:41,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:45,15:44,27:C,33:46,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:49,17:48,24:w,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{11:52,17:51,24:w,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},{20:[1,53]},{22:[1,54]},t(T,[2,18]),{1:[2,2]},t(T,[2,8]),t(T,[2,9]),t(E,[2,37],{40:55,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b}),t(E,[2,38]),t(E,[2,39]),t(D,[2,40]),t(D,[2,42]),t(D,[2,43]),t(D,[2,44]),t(D,[2,45]),t(D,[2,46]),t(D,[2,47]),t(D,[2,48]),t(D,[2,49]),t(D,[2,50]),t(D,[2,51]),t(T,[2,10]),t(T,[2,22],{30:41,29:56,24:x,27:S}),t(T,[2,24]),t(T,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},t(T,[2,11]),t(T,[2,30],{33:60,27:C}),t(T,[2,32]),{31:[1,61]},t(T,[2,12]),{17:62,24:w},{25:63,27:O},t(T,[2,14]),{17:65,24:w},t(T,[2,16]),t(T,[2,17]),t(D,[2,41]),t(T,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(T,[2,31]),{27:[1,69]},t(T,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(T,[2,15]),t(T,[2,26]),t(T,[2,27]),{11:59,32:72,37:24,38:l,39:u,40:27,41:d,42:f,43:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b},t(T,[2,33]),t(T,[2,19]),{25:73,27:O},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},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;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.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`)};k.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()+`
|
package/dist/public/index.html
CHANGED
|
@@ -48,95 +48,101 @@
|
|
|
48
48
|
-->
|
|
49
49
|
<script>(() => { let t = 'system'; try { const r = localStorage.getItem('ok-theme-v1'); if (r === 'light' || r === 'dark' || r === 'system') t = r; } catch {} let dark = t === 'dark'; if (t === 'system') { try { dark = window.matchMedia('(prefers-color-scheme: dark)').matches; } catch {} } if (dark) document.documentElement.classList.add('dark'); if (window.okDesktop) document.documentElement.classList.add('electron-mode'); })();</script>
|
|
50
50
|
<style>html { background-color: #fafafa } html.dark { background-color: #171717 }</style>
|
|
51
|
-
<script type="module" crossorigin src="./assets/index-
|
|
51
|
+
<script type="module" crossorigin src="./assets/index-C6gsky75.js"></script>
|
|
52
52
|
<link rel="modulepreload" crossorigin href="./assets/chunk-CFjPhJqf.js">
|
|
53
53
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-2ej06EnG.js">
|
|
54
|
-
<link rel="modulepreload" crossorigin href="./assets/w3c-keyname-
|
|
55
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
56
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
57
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
58
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
59
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
60
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
61
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
62
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
63
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
64
|
-
<link rel="modulepreload" crossorigin href="./assets/stex-
|
|
65
|
-
<link rel="modulepreload" crossorigin href="./assets/floating-ui.dom-
|
|
66
|
-
<link rel="modulepreload" crossorigin href="./assets/trace-api-
|
|
67
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
54
|
+
<link rel="modulepreload" crossorigin href="./assets/w3c-keyname-VSld09PZ.js">
|
|
55
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-V49XHj-a.js">
|
|
56
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-5OMiBr1O.js">
|
|
57
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-C1stM53P.js">
|
|
58
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-DJzR_Ier.js">
|
|
59
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-yzeYbK6D.js">
|
|
60
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-DJkVfTTW.js">
|
|
61
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-Ctotkt8m.js">
|
|
62
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-CK-u_yUG.js">
|
|
63
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-DIOoTUYz.js">
|
|
64
|
+
<link rel="modulepreload" crossorigin href="./assets/stex-C0Jw9RbH.js">
|
|
65
|
+
<link rel="modulepreload" crossorigin href="./assets/floating-ui.dom-B3TJy2Tg.js">
|
|
66
|
+
<link rel="modulepreload" crossorigin href="./assets/trace-api-DN18ByDo.js">
|
|
67
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-DLPICmSw.js">
|
|
68
68
|
<link rel="modulepreload" crossorigin href="./assets/compiler-runtime-CVnuRdak.js">
|
|
69
69
|
<link rel="modulepreload" crossorigin href="./assets/dist-BVOt51sU.js">
|
|
70
|
-
<link rel="modulepreload" crossorigin href="./assets/config-context-
|
|
71
|
-
<link rel="modulepreload" crossorigin href="./assets/config-provider-
|
|
72
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
70
|
+
<link rel="modulepreload" crossorigin href="./assets/config-context-GBTLA0Td.js">
|
|
71
|
+
<link rel="modulepreload" crossorigin href="./assets/config-provider-2uXvVEZR.js">
|
|
72
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-Bvqpz5aH.js">
|
|
73
73
|
<link rel="modulepreload" crossorigin href="./assets/dist-CQw2y-s3.js">
|
|
74
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
75
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
76
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
77
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
74
|
+
<link rel="modulepreload" crossorigin href="./assets/createLucideIcon-BPhNPfG7.js">
|
|
75
|
+
<link rel="modulepreload" crossorigin href="./assets/file-text-et24uQST.js">
|
|
76
|
+
<link rel="modulepreload" crossorigin href="./assets/folder-open-BO3O3WRb.js">
|
|
77
|
+
<link rel="modulepreload" crossorigin href="./assets/trash-2-410fw8eF.js">
|
|
78
|
+
<link rel="modulepreload" crossorigin href="./assets/triangle-alert-Bo8gNh02.js">
|
|
78
79
|
<link rel="modulepreload" crossorigin href="./assets/react-dom-C-oc-P2K.js">
|
|
79
|
-
<link rel="modulepreload" crossorigin href="./assets/doc-hash-
|
|
80
|
-
<link rel="modulepreload" crossorigin href="./assets/navigation-targets-
|
|
81
|
-
<link rel="modulepreload" crossorigin href="./assets/external-link-
|
|
82
|
-
<link rel="modulepreload" crossorigin href="./assets/documents-fetch-
|
|
83
|
-
<link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-
|
|
84
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
85
|
-
<link rel="modulepreload" crossorigin href="./assets/documents-events-
|
|
86
|
-
<link rel="modulepreload" crossorigin href="./assets/parse-api-error-
|
|
87
|
-
<link rel="modulepreload" crossorigin href="./assets/open-managed-artifact-tab-
|
|
88
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
89
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
90
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
91
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
92
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
93
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
94
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
95
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
96
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
97
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
98
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
99
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
100
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
101
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
102
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
103
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
104
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
105
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
106
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
107
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
108
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
109
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
110
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
111
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
112
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
113
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
114
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
115
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
116
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
117
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
118
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
119
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
120
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
121
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
122
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
123
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
124
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
125
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
126
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
127
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
128
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
129
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
130
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
131
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
132
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
133
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
134
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
135
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
136
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
137
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
80
|
+
<link rel="modulepreload" crossorigin href="./assets/doc-hash-B37_BwmO.js">
|
|
81
|
+
<link rel="modulepreload" crossorigin href="./assets/navigation-targets-DFne-srR.js">
|
|
82
|
+
<link rel="modulepreload" crossorigin href="./assets/external-link-PPmVWR7S.js">
|
|
83
|
+
<link rel="modulepreload" crossorigin href="./assets/documents-fetch-D9Azkuau.js">
|
|
84
|
+
<link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-DiXxMe7E.js">
|
|
85
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-C0zHgAnC.js">
|
|
86
|
+
<link rel="modulepreload" crossorigin href="./assets/documents-events-Bf8O52Ha.js">
|
|
87
|
+
<link rel="modulepreload" crossorigin href="./assets/parse-api-error-D_SUnYAN.js">
|
|
88
|
+
<link rel="modulepreload" crossorigin href="./assets/open-managed-artifact-tab-B1BoyKiE.js">
|
|
89
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-BhVkC6Rc.js">
|
|
90
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-D-nYc0c5.js">
|
|
91
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-CCW5cnWo.js">
|
|
92
|
+
<link rel="modulepreload" crossorigin href="./assets/propagation-api-C0PBUfbG.js">
|
|
93
|
+
<link rel="modulepreload" crossorigin href="./assets/collapsible-Cc4bgirL.js">
|
|
94
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-CaqI7EF5.js">
|
|
95
|
+
<link rel="modulepreload" crossorigin href="./assets/x-BIoRq4ww.js">
|
|
96
|
+
<link rel="modulepreload" crossorigin href="./assets/dialog-CZK_GJbX.js">
|
|
97
|
+
<link rel="modulepreload" crossorigin href="./assets/tooltip-DZYAkZo5.js">
|
|
98
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-DXmpSd5X.js">
|
|
99
|
+
<link rel="modulepreload" crossorigin href="./assets/git-branch-Bb5seqP3.js">
|
|
100
|
+
<link rel="modulepreload" crossorigin href="./assets/check-CBLIjSIa.js">
|
|
101
|
+
<link rel="modulepreload" crossorigin href="./assets/chevron-down-D2qF2W9D.js">
|
|
102
|
+
<link rel="modulepreload" crossorigin href="./assets/chevron-right-C6588edp.js">
|
|
103
|
+
<link rel="modulepreload" crossorigin href="./assets/circle-alert-sOrK-E2e.js">
|
|
104
|
+
<link rel="modulepreload" crossorigin href="./assets/startup-marks-DdXX18dm.js">
|
|
105
|
+
<link rel="modulepreload" crossorigin href="./assets/prop-types-DXfg1BnH.js">
|
|
106
|
+
<link rel="modulepreload" crossorigin href="./assets/workspace-paths-DkmFj3_t.js">
|
|
107
|
+
<link rel="modulepreload" crossorigin href="./assets/eye-W_Da58Av.js">
|
|
108
|
+
<link rel="modulepreload" crossorigin href="./assets/info-p7xnknfW.js">
|
|
109
|
+
<link rel="modulepreload" crossorigin href="./assets/loader-circle-Cu01Ckhe.js">
|
|
110
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-K3kyyBcW.js">
|
|
111
|
+
<link rel="modulepreload" crossorigin href="./assets/file-tree-rename-validation-DEJ31Vcw.js">
|
|
112
|
+
<link rel="modulepreload" crossorigin href="./assets/input-DBQZgTXT.js">
|
|
113
|
+
<link rel="modulepreload" crossorigin href="./assets/DocumentContext-5toIZ8hA.js">
|
|
114
|
+
<link rel="modulepreload" crossorigin href="./assets/checkbox-09LNjybZ.js">
|
|
115
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-DlBs2Z86.js">
|
|
116
|
+
<link rel="modulepreload" crossorigin href="./assets/skills-api-CQ8dGACz.js">
|
|
117
|
+
<link rel="modulepreload" crossorigin href="./assets/label-BpH34DoN.js">
|
|
118
|
+
<link rel="modulepreload" crossorigin href="./assets/radio-group-CkH5F_ZT.js">
|
|
119
|
+
<link rel="modulepreload" crossorigin href="./assets/EnableSyncConfirmDialog-BRUoKGlI.js">
|
|
120
|
+
<link rel="modulepreload" crossorigin href="./assets/arrow-up-right-Vg7lRNno.js">
|
|
121
|
+
<link rel="modulepreload" crossorigin href="./assets/refresh-cw-C9i-ShKk.js">
|
|
122
|
+
<link rel="modulepreload" crossorigin href="./assets/cursor-CouJSC9c.js">
|
|
123
|
+
<link rel="modulepreload" crossorigin href="./assets/clipboard-adapter-BscVzpz1.js">
|
|
124
|
+
<link rel="modulepreload" crossorigin href="./assets/skill-actions-z_sZDeWy.js">
|
|
125
|
+
<link rel="modulepreload" crossorigin href="./assets/textarea-BBYgAifm.js">
|
|
126
|
+
<link rel="modulepreload" crossorigin href="./assets/keyboard-shortcuts-BxD83XhC.js">
|
|
127
|
+
<link rel="modulepreload" crossorigin href="./assets/auth-state-cache-xkP6pnyp.js">
|
|
128
|
+
<link rel="modulepreload" crossorigin href="./assets/toggle-group-B_aSxEq-.js">
|
|
129
|
+
<link rel="modulepreload" crossorigin href="./assets/panel-HcGnbQ9h.js">
|
|
130
|
+
<link rel="modulepreload" crossorigin href="./assets/format-ReH7V0UD.js">
|
|
131
|
+
<link rel="modulepreload" crossorigin href="./assets/selection-context-CaK5JqJX.js">
|
|
132
|
+
<link rel="modulepreload" crossorigin href="./assets/PropertyPanel-BMHDSIGn.js">
|
|
133
|
+
<link rel="modulepreload" crossorigin href="./assets/miss-dialog-store-DxVemLe3.js">
|
|
134
|
+
<link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-DCHjTg-k.js">
|
|
135
|
+
<link rel="modulepreload" crossorigin href="./assets/chevron-left-SSPDkqEW.js">
|
|
136
|
+
<link rel="modulepreload" crossorigin href="./assets/agent-presence-Dp6Wg18I.js">
|
|
137
|
+
<link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-D2Bw0GR2.js">
|
|
138
|
+
<link rel="modulepreload" crossorigin href="./assets/project-paths-Bg2cu_Xr.js">
|
|
139
|
+
<link rel="modulepreload" crossorigin href="./assets/file-tree-adapter-3d-SPVop.js">
|
|
140
|
+
<link rel="modulepreload" crossorigin href="./assets/target-navigation-intent-fp9D_EWj.js">
|
|
141
|
+
<link rel="modulepreload" crossorigin href="./assets/mcp-consent-store-3q0L29vA.js">
|
|
142
|
+
<link rel="modulepreload" crossorigin href="./assets/receive-store-vDvyLF_T.js">
|
|
143
|
+
<link rel="modulepreload" crossorigin href="./assets/worktree-store-CLuGV1SL.js">
|
|
138
144
|
<link rel="stylesheet" crossorigin href="./assets/DocumentContext-B0sQn39F.css">
|
|
139
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
145
|
+
<link rel="stylesheet" crossorigin href="./assets/index-Byr-pQd3.css">
|
|
140
146
|
</head>
|
|
141
147
|
|
|
142
148
|
<body class="antialiased">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./launch-json-removal-
|
|
2
|
-
//# sourceMappingURL=repair-launch-json-
|
|
1
|
+
import{t as e}from"./launch-json-removal-6h3pmbkP.mjs";import{join as t}from"node:path";function n(n){let i=n.logger??r,a=t(n.projectDir,`.claude`,`launch.json`);if(n.reclaimDisableEnv===`1`)return i({event:`launch-json-repair-skipped`,reason:`reclaim-disabled`}),{outcome:{configPath:a,outcome:`skipped-reclaim-disabled`},repairedCount:0};let o;try{o=e(n.projectDir)}catch(e){let t=e instanceof Error?e.message:String(e);return i({event:`launch-json-repair-write-failed`,configPath:a}),{outcome:{configPath:a,outcome:`write-failed`,error:t},repairedCount:0}}let s=o.kind===`removed`||o.kind===`removed-file`;return s&&i({event:`launch-json-repair-removed`,configPath:a}),{outcome:{configPath:a,outcome:o.kind},repairedCount:s?1:0}}function r(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{n as repairLaunchJson};
|
|
2
|
+
//# sourceMappingURL=repair-launch-json-B3tCb6mc.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as e,v as t}from"./init-
|
|
2
|
-
//# sourceMappingURL=repair-mcp-configs-
|
|
1
|
+
import{d as e,v as t}from"./init-M3As2OOI.mjs";import{_ as n,d as r,s as i}from"./write-project-skill-CbSfzwa8.mjs";import{t as a}from"./mcp-migrate-event-CyH1VVyy.mjs";import{homedir as o}from"node:os";function s(e){let t=e.logger??u,n=e.home??o(),a=[];if(e.reclaimDisableEnv===`1`)return t({event:`mcp-config-repair-skipped`,reason:`reclaim-disabled`}),{outcomes:a,repairedCount:0};for(let o of i){let i=r[o],s=c(()=>i.configPath(``,n));if(s!==null&&a.push(l({scope:`user`,editorId:o,target:i,home:n,cwd:``,configPath:s,configPathOverride:void 0,logger:t})),i.projectConfigPath){let n=i.projectConfigPath,r=c(()=>n(e.projectDir));r!==null&&a.push(l({scope:`project`,editorId:o,target:i,home:void 0,cwd:e.projectDir,configPath:r,configPathOverride:r,logger:t}))}}return{outcomes:a,repairedCount:a.filter(e=>e.outcome===`repaired`).length}}function c(e){try{return e()}catch{return null}}function l(r){let i={scope:r.scope,editorId:r.editorId,configPath:r.configPath},o=e(r.target,r.cwd,r.home,r.configPathOverride);if(o===null)return{...i,outcome:`no-entry`};if(n(o))return{...i,outcome:`canonical`};r.logger(a({scope:r.scope,surface:`cli-repair`,editorId:r.editorId,configPath:r.configPath,priorEntry:o}));let s=t(r.target,r.cwd,{mode:`published`,skipAvailabilityCheck:!0},r.home,r.configPathOverride);if(s.action===`failed`){let e=s.error??`unknown write failure`;return r.logger({event:`mcp-config-repair-write-failed`,scope:r.scope,editorId:r.editorId,configPath:r.configPath,error:e}),{...i,outcome:`write-failed`,error:e}}return s.action===`declined`?(r.logger({event:`mcp-config-repair-declined`,scope:r.scope,editorId:r.editorId,configPath:r.configPath,reason:s.declineReason}),{...i,outcome:`declined`}):{...i,outcome:`repaired`}}function u(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{s as repairMcpConfigs};
|
|
2
|
+
//# sourceMappingURL=repair-mcp-configs-CEW6gLAh.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{da as e}from"./server-lock-iLcBw_q0-6FEAZKHu.mjs";import{Br as t,Fr as n,Nr as r,Wr as i,Xr as a,d as o,ea as s,ia as c,lt as l}from"./dist-CmLjR_Cj.mjs";import{t as u}from"./esm-CsQUg9js.mjs";import{a as d,d as f,f as p,t as m}from"./write-project-skill-
|
|
1
|
+
import{da as e}from"./server-lock-iLcBw_q0-6FEAZKHu.mjs";import{Br as t,Fr as n,Nr as r,Wr as i,Xr as a,d as o,ea as s,ia as c,lt as l}from"./dist-CmLjR_Cj.mjs";import{t as u}from"./esm-CsQUg9js.mjs";import{a as d,d as f,f as p,t as m}from"./write-project-skill-CbSfzwa8.mjs";import{dirname as h,join as g,resolve as _}from"node:path";import{homedir as v}from"node:os";import{existsSync as y,mkdirSync as b,readFileSync as x,readdirSync as S,rmSync as C,statSync as w,writeFileSync as T}from"node:fs";const E={existsSync:e=>y(e),isDirectory:e=>{try{return w(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>S(e),readFileSync:e=>x(e),writeFileSync:(e,t)=>{T(e,t)},mkdirSync:(e,t)=>{b(e,t)},rmSync:(e,t)=>{C(e,t)}},D={resolveProjectBundledSkillDir:()=>a(`project`,{checkDesktop:!1}),resolveUserBundledSkillDir:e=>a(e,{checkDesktop:!1}),readBundledVersion:()=>n(),readRecordedVersion:e=>t(e,`cli-hosts`),writeRecordedVersion:(e,t)=>c(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>i(e),readBundleDecision:(e,t)=>r(e,t),writeBundleDecision:(e,t,n)=>s(e,t,n),removeBundleFromDisk:(e,t)=>d(e,t)};function O(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function k(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(h(t),{recursive:!0}),A(e,t,n)}function A(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=g(e,r),a=g(t,r);n.isDirectory(i)?A(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function j(e,t,n,r,i,a){let o=[],s=g(e,`.agents`,`skills`,t),c=r.existsSync(s),l=!1;try{k(n,s,r),l=!0,o.push({kind:`central`,path:s,outcome:c?`overwritten`:`written`}),i({event:`user-skill-reclaim-central-written`,scope:`user`,path:s,preexisting:c,version:a})}catch(e){let t=e instanceof Error?e.message:String(e);o.push({kind:`central`,path:s,outcome:`failed`,error:t}),i({event:`user-skill-reclaim-central-failed`,scope:`user`,path:s,error:t})}for(let c of p){let l=g(e,c.hostDir),u=g(l,`skills`,t);if(u===s){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-collapsed-with-central`});continue}if(!r.existsSync(l)){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-host-absent`});continue}let d=r.existsSync(u);try{k(n,u,r),o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:d?`overwritten`:`written`}),i({event:`user-skill-reclaim-host-written`,scope:`user`,editorId:c.editorId,hostDir:c.hostDir,path:u,preexisting:d,version:a})}catch(e){let t=e instanceof Error?e.message:String(e);o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`failed`,error:t}),i({event:`user-skill-reclaim-host-failed`,scope:`user`,editorId:c.editorId,hostDir:c.hostDir,path:u,error:t})}}return{entries:o,centralWritten:l}}function M(e,t){if(!e)return!1;try{if(!t.existsSync(e))return!1;let n=t.readFileSync(e).toString(`utf8`);return n.includes(`# ok-mcp-v1`)||n.includes(`# ok-mcp-win-v1`)}catch{return!1}}function N(e,t,n,r){let i;try{i=t.resolveProjectBundledSkillDir()}catch(e){return r({event:`project-skill-reclaim-bundle-missing`,scope:`project`,error:e instanceof Error?e.message:String(e)}),{outcome:`skipped`,reason:`bundle-missing`}}let a=[];for(let t of p){let o=g(e,t.hostDir,`skills`,`open-knowledge`),s=g(o,`SKILL.md`),c=n.existsSync(s),l=f[t.editorId]?.projectConfigPath?.(e),u=!c&&M(l,n);if(!c&&!u){a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`no-token`}),r({event:`project-skill-reclaim-no-token`,scope:`project`,editorId:t.editorId,path:o});continue}try{m(o,e),k(i,o,n);let s=c?`reclaimed`:`created`;a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:s}),r({event:c?`project-skill-reclaim-reclaimed`:`project-skill-reclaim-created`,scope:`project`,editorId:t.editorId,path:o})}catch(e){let n=e instanceof Error?e.message:String(e);a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`failed`,error:n}),r({event:`project-skill-reclaim-failed`,scope:`project`,editorId:t.editorId,path:o,error:n})}}return{outcome:`done`,entries:a}}async function P(t,n,r,i){let a=e=>{n.recordEvent(e).catch(()=>{})},s=()=>new Date().toISOString(),c;try{c=await n.readBundledVersion()}catch(e){let t=e instanceof Error?e.message:String(e);return i({event:`user-skill-reclaim-version-read-failed`,scope:`user`,error:t}),a({ts:s(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`version-read-failed:${t}`}),{outcome:`skipped`,reason:`version-read-failed`}}let u;try{u=await n.readRecordedVersion(t)}catch(e){i({event:`user-skill-reclaim-version-read-error`,scope:`user`,error:e instanceof Error?e.message:String(e)}),u=null}let d=[],f=null;for(let e of l)try{d.push({id:e,sourceDir:n.resolveUserBundledSkillDir(e)})}catch(e){f=e instanceof Error?e.message:String(e)}if(d.length===0)return i({event:`user-skill-reclaim-bundle-missing`,scope:`user`,error:f??`no user-global bundles`}),a({ts:s(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,reason:`bundle-missing:${f}`}),{outcome:`skipped`,reason:`bundle-missing`};let p=[];for(let a of d){let s=o[a.id],c=r.existsSync(g(t,`.agents`,`skills`,s)),l=await n.readBundleDecision(t,s).catch(()=>null);if(!e(l,{installedOnDisk:c})){if(c)try{n.removeBundleFromDisk(t,a.id),i({event:`user-skill-reclaim-bundle-declined-removed`,scope:`user`,bundle:a.id})}catch(e){i({event:`user-skill-reclaim-bundle-remove-failed`,scope:`user`,bundle:a.id,error:e instanceof Error?e.message:String(e)})}continue}if(l===null&&c)try{await n.writeBundleDecision(t,s,!0)}catch(e){i({event:`user-skill-reclaim-grandfather-write-failed`,scope:`user`,bundle:a.id,error:e instanceof Error?e.message:String(e)})}p.push(a)}if(p.length===0)return{outcome:`skipped`,reason:`all-bundles-declined`};let m=p.every(e=>r.existsSync(g(t,`.agents`,`skills`,o[e.id])));if(u!==null&&u===c&&m)return i({event:`user-skill-reclaim-skipped-version-current`,scope:`user`,version:c}),{outcome:`skipped`,reason:`version-current`};let h=[],_=d.length===l.length,v=!0;for(let{id:e,sourceDir:n}of p){let a=j(t,o[e],n,r,i,c);h.push(...a.entries),a.centralWritten||(v=!1)}let y=h.some(e=>e.kind===`central`&&(e.outcome===`written`||e.outcome===`overwritten`));if(_&&v&&y){let e=null;try{await n.writeRecordedVersion(t,c),i({event:`user-skill-reclaim-version-recorded`,scope:`user`,version:c})}catch(t){e=t instanceof Error?t.message:String(t),i({event:`user-skill-reclaim-version-record-failed`,scope:`user`,version:c,error:e})}for(let{id:t}of p)a({ts:s(),surface:`cli-start`,target:`cli-hosts`,bundle:t,outcome:e===null?`installed`:`failed`,version:c,...e===null?{}:{reason:`state-write-failed:${e}`}})}else{let e=h.some(e=>e.kind===`host`&&e.outcome===`failed`);a({ts:s(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,version:c,reason:e?`all-writes-failed`:`no-hosts-installed`})}return{outcome:`done`,version:c,entries:h}}async function F(e){let t=e.logger??O,n=e.fs??E,r=e.home??v(),i={...D,...e.deps};return e.reclaimDisableEnv===`1`?(t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`}):{status:`done`,project:N(e.projectDir,i,n,t),user:await P(r,i,n,t)}}function I(e){return e.status===`skipped`?e.reason===`reclaim-disabled`?0:1:e.project.outcome===`skipped`||e.user.outcome===`skipped`&&e.user.reason!==`version-current`&&e.user.reason!==`all-bundles-declined`||e.project.entries.some(e=>e.outcome===`failed`)||e.user.outcome===`done`&&e.user.entries.some(e=>e.outcome===`failed`)?1:0}function L(e){if(e.status===`skipped`)return`Skipped: ${e.reason}`;let t=[`Skill reclaim complete.`];if(e.project.outcome===`done`){let n=e.project.entries.filter(e=>e.outcome===`reclaimed`).length,r=e.project.entries.filter(e=>e.outcome===`created`).length,i=e.project.entries.filter(e=>e.outcome===`no-token`).length,a=e.project.entries.filter(e=>e.outcome===`failed`).length;t.push(` Project: ${n} reclaimed, ${r} created, ${i} no-token, ${a} failed.`)}else t.push(` Project: skipped (${e.project.reason}).`);if(e.user.outcome===`done`){let n=e.user.entries.filter(e=>e.outcome===`written`||e.outcome===`overwritten`).length,r=e.user.entries.filter(e=>e.outcome===`skipped-host-absent`||e.outcome===`skipped-collapsed-with-central`).length,i=e.user.entries.filter(e=>e.outcome===`failed`).length;t.push(` User (${e.user.version}): ${n} written, ${r} skipped, ${i} failed.`)}else t.push(` User: skipped (${e.user.reason}).`);return t.join(`
|
|
2
2
|
`)}function R(){return new u(`repair-skills`).description("Refresh bundled SKILL.md files for installed AI editors (project-local + user-global). Runs automatically during `ok start`; this command forces an explicit sweep.").action(async()=>{let e=await F({projectDir:_(process.cwd()),reclaimDisableEnv:process.env.OK_RECLAIM_DISABLE??null});process.stdout.write(`${L(e)}\n`),process.exitCode=I(e)})}export{R as n,F as t};
|
|
3
|
-
//# sourceMappingURL=repair-skills-
|
|
3
|
+
//# sourceMappingURL=repair-skills-8TG-7oqC.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./repair-skills-8TG-7oqC.mjs";export{e as repairSkills};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{s as e}from"./chunk-C94x7I9S.mjs";import{Jo as t,c as n,l as r,s as i,u as a}from"./server-lock-iLcBw_q0-6FEAZKHu.mjs";import{Ar as o,Sn as s,Zi as c,ei as l,fa as u,kr as d,ma as f,un as p,vn as m}from"./dist-CmLjR_Cj.mjs";import{t as h}from"./yazl-DgCFuIuD.mjs";import{t as g}from"./esm-CsQUg9js.mjs";import"./gh-detect-Dvi-l8Fu.mjs";import{E as _,S as v,T as y,_ as ee,b as te,o as b,v as x,w as S}from"./init-M3As2OOI.mjs";import{n as C}from"./constants-hNkAg6Qk.mjs";import{t as w}from"./is-object-Cie0xXKD.mjs";import{_ as ne,d as re,i as ie,v as T}from"./write-project-skill-CbSfzwa8.mjs";import"./loader-DToPJlMU.mjs";import{c as ae}from"./colors-8SzMRIVy.mjs";import"./preview-COkYTuKh.mjs";import{execSync as oe,spawnSync as E}from"node:child_process";import{basename as D,dirname as O,isAbsolute as k,join as A,relative as se,resolve as j,sep as ce}from"node:path";import{arch as le,freemem as ue,homedir as de,hostname as fe,platform as pe,release as me,tmpdir as he,totalmem as ge,type as _e,uptime as ve}from"node:os";import{cpSync as ye,createWriteStream as be,existsSync as M,lstatSync as xe,mkdirSync as N,mkdtempSync as Se,readFileSync as P,readdirSync as F,readlinkSync as Ce,rmSync as I,statSync as we,writeFileSync as L}from"node:fs";import{createHash as R}from"node:crypto";import{readFile as z,realpath as B}from"node:fs/promises";const Te=[{name:`macos-home-path`,regex:/\/Users\/[^/]+\//g,replacement:`~/`},{name:`linux-home-path`,regex:/\/home\/[^/]+\//g,replacement:`~/`},{name:`github-pat`,regex:/\b(ghp_|gho_|ghu_|ghs_|ghr_)[A-Za-z0-9]{36,}\b/g,replacement:`[REDACTED-GH-PAT]`},{name:`aws-access-key`,regex:/\b(AKIA|ASIA|ABIA)[A-Z2-7]{16}\b/g,replacement:`[REDACTED-AWS-KEY]`},{name:`anthropic-key`,regex:/\bsk-ant-api03-[A-Za-z0-9_-]{20,}\b/g,replacement:`[REDACTED-ANTHROPIC]`},{name:`openai-key`,regex:/\bsk-[A-Za-z0-9]{20,}\b/g,replacement:`[REDACTED-OPENAI]`},{name:`bearer-token`,regex:/([Aa]uthorization:\s*[Bb]earer\s+)\S+/g,replacement:`$1[REDACTED]`},{name:`jwt`,regex:/eyJ[A-Za-z0-9_-]{8,}\.eyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}/g,replacement:`[REDACTED-JWT]`},{name:`url-credentials`,regex:/:\/\/[^/\s:@]+:[^/\s:@]+@/g,replacement:`://[REDACTED]@`}],Ee=Te.map(e=>e.name);function V(e){let t=new Set,n=0;return{redacted:e.split(`
|
|
2
|
+
`).map(e=>{let r=e;for(let{name:e,regex:i,replacement:a}of Te)i.lastIndex=0,i.test(r)&&(t.add(e),n++,i.lastIndex=0,r=r.replace(i,a));return r}).join(`
|
|
3
|
+
`),patterns:[...t],lineCount:n}}function De(){return A(de(),`.ok`,`bug-reports`)}function Oe(e=new Date){let t=e.toISOString().replace(/[:.]/g,`-`);return A(De(),`${t}-bugreport.zip`)}function ke(e,t){let n=A(e,`.ok`,`config.yml`);if(M(n))try{let e=P(n,`utf8`).match(/^\s*name:\s*['"]?(.+?)['"]?\s*$/m);if(e?.[1])return e[1]}catch(e){t?.warn({configPath:n,err:e instanceof Error?e.message:String(e)},`bug-report: failed to read .ok/config.yml for project slug; using path-hash fallback`)}return M(A(e,`.ok`))?R(`sha256`).update(j(e)).digest(`hex`).slice(0,12):null}function Ae(){let e={timestamp:new Date().toISOString(),platform:pe(),osType:_e(),osRelease:me(),hostname:`[redacted]`,uptime:ve(),freeMem:ue(),totalMem:ge(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=oe(`sw_vers -productVersion 2>/dev/null`,c({encoding:`utf8`})).trim()}catch{}try{let t=A(__dirname,`..`,`..`,`package.json`);M(t)&&(e.okVersion=JSON.parse(P(t,`utf8`)).version)}catch{}return e}function je(e,t){if(!M(t))return{files:[]};let n=F(t).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>A(t,e));if(e&&n.length>0){let t=n.filter(t=>{try{return P(t,`utf8`).includes(`"project":"${e}"`)}catch{return!0}});t.length>0&&(n=t)}return{files:n}}function Me(e){let t=A(e,`.ok`,`local`);return M(t)?{files:[`server.lock`,`last-spawn-error.log`].map(e=>A(t,e)).filter(e=>M(e))}:{files:[]}}function Ne(e){let t=A(e,`.ok`,`local`,`logs`);return M(t)?{files:[`server-current.jsonl`,`server-prev.jsonl`].map(e=>A(t,e)).filter(e=>M(e))}:{files:[]}}function Pe(e){if(e.redact){let{redacted:t,patterns:n,lineCount:r}=V(e.content);e.zipfile.addBuffer(Buffer.from(t,`utf8`),e.name),e.bundleFiles.push(e.name),n.length>0&&e.redactions.push({file:e.name,lineCount:r,patterns:n})}else e.zipfile.addBuffer(Buffer.from(e.content,`utf8`),e.name),e.bundleFiles.push(e.name)}function H(e){for(let t of e.files)try{Pe({zipfile:e.zipfile,name:`${e.prefix}/${D(t)}`,content:P(t,`utf8`),redact:e.redact,bundleFiles:e.bundleFiles,redactions:e.redactions})}catch(n){e.logger?.warn({file:t,prefix:e.prefix,err:n instanceof Error?n.message:String(n)},`bug-report: skipped unreadable file`)}}async function Fe(t){let{redact:n,outputPath:r,logger:i}=t,a=t.userLogsDir??A(de(),`.ok`,`logs`),o=t.projectDir?ke(t.projectDir,i):null;N(O(r),{recursive:!0}),i?.info({projectSlug:o},`gathering diagnostic data`);let s=Ae();s.desktop=t.desktop??null;let{files:c}=je(o,a),{files:l}=t.projectDir?Me(t.projectDir):{files:[]},{files:u}=t.projectDir?Ne(t.projectDir):{files:[]};i?.info({logFileCount:c.length,lockFileCount:l.length,localSinkFileCount:u.length},`files collected`);let d=[],f=[],{ZipFile:p}=await import(`./yazl-Clfc09F-.mjs`).then(t=>e(t.default,1)),m=new p;H({zipfile:m,files:c,prefix:`logs`,redact:n,bundleFiles:f,redactions:d,logger:i}),H({zipfile:m,files:l,prefix:`lockdir`,redact:n,bundleFiles:f,redactions:d,logger:i}),H({zipfile:m,files:u,prefix:`local-logs`,redact:n,bundleFiles:f,redactions:d,logger:i});for(let e of t.extraFiles??[])try{let t=P(e.sourcePath),n=`extra/${e.zipName??D(e.sourcePath)}`;m.addBuffer(t,n),f.push(n)}catch(t){i?.warn({sourcePath:e.sourcePath,err:t},`extra file unreadable; omitted from bundle`)}t.note&&Pe({zipfile:m,name:`note.txt`,content:t.note,redact:n,bundleFiles:f,redactions:d});let h=JSON.stringify(s,null,2);m.addBuffer(Buffer.from(h,`utf8`),`sysinfo.json`),f.push(`sysinfo.json`);let g={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:o,files:f,redactions:d,sysinfo:s};m.addBuffer(Buffer.from(JSON.stringify(g,null,2),`utf8`),`MANIFEST.json`);let _=d.reduce((e,t)=>e+t.lineCount,0),v=[`# Bug Report Bundle`,``,`Generated: ${g.generatedAt}`,`Project: ${o??`(unscoped)`}`,`Discipline version: ${g.disciplineVersion}`,``,`## Contents`,``,...f.map(e=>`- ${e}`),``,`## Privacy`,``,...n?[`This bundle was auto-redacted before packaging.`,`Patterns checked: ${Ee.join(`, `)}`,_>0?`${_} line(s) were scrubbed across ${d.length} file(s).`:`No redactions were needed.`,`See MANIFEST.json for the full redaction audit report.`,``,`This bundle is safe to attach to a GitHub issue.`]:[`Redaction was disabled for this bundle; file contents are unmodified.`]].join(`
|
|
4
|
+
`);m.addBuffer(Buffer.from(v,`utf8`),`README.md`),m.end();let y=be(r);return m.outputStream.pipe(y),await new Promise((e,t)=>{y.on(`close`,e),y.on(`error`,t)}),i?.info({bundlePath:r,fileCount:f.length,redactionCount:_},`bundle written`),{zipPath:r,summary:{projectSlug:o,files:f,redactions:d,redactedLineCount:_,generatedAt:g.generatedAt}}}const Ie=new Set([`doc.name`]);function Le(e){return`doc:${R(`blake2b512`,{outputLength:32}).update(e).digest(`hex`).slice(0,8)}`}function Re(e,t,n){let r=e.docNameMap[n];if(r===void 0){e.docNameMap[n]=t;return}if(r===t)return;let i=e.docNameCollisions[n];i?i.includes(t)||i.push(t):e.docNameCollisions[n]=[t]}function ze(e,t){let n=t.originalToHashed.get(e);if(n!==void 0)return n;let r=Le(e);return t.originalToHashed.set(e,r),Re(t,e,r),r}function U(e,t){return t.length===0||!e.includes(t)?e:e.split(t).join(`<CONTENT_DIR>`)}function W(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function G(e,t){if(typeof e==`string`)return U(e,t.contentDir);if(Array.isArray(e))return e.map(e=>G(e,t));if(!W(e))return e;let n=typeof e.key==`string`&&Ie.has(e.key)&&W(e.value)&&typeof e.value.stringValue==`string`?e.value.stringValue:null,r={};for(let[i,a]of Object.entries(e))if(n!==null&&i===`value`&&W(a)){let e=ze(n,t);r[i]={...a,stringValue:e}}else Ie.has(i)&&typeof a==`string`?r[i]=ze(a,t):r[i]=G(a,t);return r}function Be(e,t){if(t.originalToHashed.size===0)return e;let n=Array.from(t.originalToHashed.entries()).sort(([e],[t])=>t.length-e.length),r=e;for(let[e,t]of n)e.length!==0&&r.includes(e)&&(r=r.split(e).join(t));return r}function Ve(e,t){let n=P(e,`utf-8`);if(n.length===0)return;let r=n.endsWith(`
|
|
5
|
+
`),i=n.split(`
|
|
6
|
+
`),a=[];for(let e=0;e<i.length;e++){let n=i[e]??``;if(!(e===i.length-1&&n===``)){if(n.length===0){a.push(``);continue}try{let e=G(JSON.parse(n),t);a.push(JSON.stringify(e))}catch{a.push(n)}}}L(e,r?`${a.join(`
|
|
7
|
+
`)}\n`:a.join(`
|
|
8
|
+
`))}function He(e,t){let n=P(e,`utf-8`);if(n.trim().length!==0)try{let r=G(JSON.parse(n),t),i=n.endsWith(`
|
|
9
|
+
`)?`
|
|
10
|
+
`:``;L(e,`${JSON.stringify(r,null,2)}${i}`)}catch{let r=Be(U(n,t.contentDir),t);r!==n&&L(e,r)}}function Ue(e,t){let n=P(e,`utf-8`),r=U(n,t.contentDir);r!==n&&L(e,r)}function We(e){try{return F(e,{withFileTypes:!0}).filter(e=>e.isFile()).map(t=>A(e,t.name))}catch{return[]}}const Ge=new Set([`agent-presence.json`,`runtime.json`]);function Ke(e){let t={contentDir:e.contentDir,docNameMap:{},originalToHashed:new Map,docNameCollisions:{}};for(let n of[`telemetry`,`logs`,`process`])for(let r of We(A(e.stagingDir,n)))r.endsWith(`.jsonl`)?Ve(r,t):r.endsWith(`.json`)?He(r,t):Ue(r,t);for(let n of We(A(e.stagingDir,`state`))){let e=D(n);Ge.has(e)?He(n,t):Ue(n,t)}return{docNameMap:t.docNameMap,docNameCollisions:t.docNameCollisions}}var K=t(),qe=e(h(),1);const Je=[`.ok`,`local`,`telemetry`],Ye=[`.ok`,`local`,`logs`],Xe=`spans-current.jsonl`,Ze=`spans-prev.jsonl`,Qe=`server-current.jsonl`,$e=`server-prev.jsonl`;function et(e){return A(e,...Je,Xe)}function tt(e){return A(e,...Je,Ze)}function nt(e){return A(e,...Ye,Qe)}function rt(e){return A(e,...Ye,$e)}async function it(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/agent-presence`,{signal:AbortSignal.timeout(1e3)});return t.ok?await t.text():null}catch{return null}}function at(e){let t=A(e,`.git`,`ok`);if(!M(t))return null;let n=E(`git`,[`-C`,t,`log`,`--oneline`,`-50`],c({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function ot(){let e=process.env.OK_DESKTOP_VERSION,t=process.env.OK_DESKTOP_PACKAGED,n=process.env.OK_DESKTOP_CHANNEL;return e===void 0||t===void 0||n===void 0?null:{electronVersion:e,packaged:t===`1`||t.toLowerCase()===`true`,channel:n}}function st(){return{nodeVersion:process.version,platform:pe(),arch:le()}}function ct(){return process.env.OTEL_SDK_DISABLED===`false`}function q(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function lt(e){if(!M(e))return{};let t;try{t=(0,K.parse)(P(e,`utf-8`))}catch(t){return console.warn(`[ok diagnose bundle] failed to parse ${e} for manifest config; manifest will report schema defaults. Reason: ${t instanceof Error?t.message:String(t)}`),{}}if(!q(t))return{};let n=t.telemetry;if(!q(n))return{};let r=n.localSink;return q(r)?r:{}}function ut(e){return typeof e==`boolean`?e:void 0}function dt(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:void 0}function J(e){if(q(e))return dt(e.maxBytes)}function ft(e){let t=lt(f(`project`,e)),n=lt(f(`project-local`,e));return{enabled:ut(n.enabled)??ut(t.enabled)??!0,spansMaxBytes:J(n.spans)??J(t.spans)??52428800,logsMaxBytes:J(n.logs)??J(t.logs)??26214400}}function pt(e){return R(`sha256`).update(e).digest(`hex`)}function mt(e){let t=P(e),n=0;for(let e=0;e<t.length;e++)t[e]===10&&n++;return n}function ht(e){let t=P(e,`utf-8`),n=`"doc.name"`,r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+10);return r}function Y(e,t){return M(e)?(N(O(t),{recursive:!0}),ye(e,t),!0):!1}function gt(e){let t=[],n=e=>{let r=F(e,{withFileTypes:!0});for(let i of r){let r=A(e,i.name);i.isDirectory()?n(r):i.isFile()&&t.push(r)}};return n(e),t.sort()}const _t=new Set([`.jsonl`]);function vt(e){let t=e.lastIndexOf(`.`);return t===-1?!1:_t.has(e.slice(t))}const yt=new Set([`.jsonl`,`.json`,`.txt`,`.log`,`.lock`]);function bt(e){let t=e.lastIndexOf(`.`);return t===-1?!1:yt.has(e.slice(t))}function xt(e){let t=[];for(let n of gt(e)){let r=St(e,n);if(!bt(r))continue;let{redacted:i,patterns:a,lineCount:o}=V(P(n,`utf-8`));a.length!==0&&(L(n,i),t.push({file:r,lineCount:o,patterns:a}))}return{redactions:t,redactedLineCount:t.reduce((e,t)=>e+t.lineCount,0)}}function St(e,t){return se(e,t).split(ce).join(`/`)}async function Ct(e){let t=j(e.contentDir),n=j(e.projectDir??e.contentDir),r=e.deps??{},i=r.fetchAgentPresence??it,a=r.readShadowHead??at,o=r.now??(()=>new Date),s=r.okVersion??(()=>C),c=r.readDesktopEnv??ot,l=r.readRuntime??st,u=r.isOtlpPushEnabled??ct,d=Se(A(he(),`ok-bundle-`));try{N(A(d,`telemetry`),{recursive:!0}),N(A(d,`logs`),{recursive:!0}),N(A(d,`state`),{recursive:!0}),Y(et(n),A(d,`telemetry`,Xe)),Y(tt(n),A(d,`telemetry`,Ze)),Y(nt(n),A(d,`logs`,Qe)),Y(rt(n),A(d,`logs`,$e));let f=A(n,`.ok`,`local`),p=A(f,`server.lock`),m=`not-running`,h=`no server.lock`,g=null;if(M(p)){Y(p,A(d,`state`,`server.lock`));try{let e=P(p,`utf-8`),t=JSON.parse(e);typeof t.port==`number`?g=t.port:h=`lock present but no port`}catch{h=`lock present but unparseable`}}if(g!==null){let e=await i(g);e===null?h=`agent-presence endpoint at :${g} unreachable`:(L(A(d,`state`,`agent-presence.json`),e),m=`running`,h=``)}let _=a(t);_!==null&&L(A(d,`state`,`shadow-head.txt`),_),Y(A(f,`last-spawn-error.log`),A(d,`state`,`last-spawn-error.log`));let v=l(),y=c(),ee={ok:{version:s(),nodeVersion:v.nodeVersion,platform:v.platform,arch:v.arch},host:{desktop:y}};L(A(d,`state`,`runtime.json`),`${JSON.stringify(ee,null,2)}\n`);let te=m===`running`?`running
|
|
11
|
+
`:`not-running (${h})\n`;if(L(A(d,`state`,`server-status.txt`),te),e.processDir&&M(e.processDir)){let t=A(d,`process`);N(t,{recursive:!0}),ye(e.processDir,t,{recursive:!0})}let b=null;e.redact===!0&&(b=Ke({stagingDir:d,contentDir:t})),e.note&&L(A(d,`note.txt`),e.note);let x=null;e.scrubSecrets===!0&&(x=xt(d));for(let t of e.extraFiles??[])Y(t.sourcePath,A(d,`extra`,t.zipName??D(t.sourcePath)))||r.logger?.warn({sourcePath:t.sourcePath},`extra file missing; omitted from bundle`);let S=ft(n),C=gt(d),w=[],ne=0,re=0;for(let e of C){let t=St(d,e),n=we(e).size,r=vt(t)?mt(e):0;w.push({path:t,bytes:n,lines:r}),ne+=n,t.startsWith(`telemetry/`)&&vt(t)&&(re+=ht(e))}let ie=b===null?{applied:!1,docNameMapSidecar:null}:Object.keys(b.docNameCollisions).length>0?{applied:!0,docNameMapSidecar:null,docNameCollisions:b.docNameCollisions}:{applied:!0,docNameMapSidecar:null};x!==null&&(ie.secretScrub=x);let T={schemaVersion:1,createdAt:o().toISOString(),ok:{version:s(),nodeVersion:v.nodeVersion,platform:v.platform,arch:v.arch},host:{desktop:y},contentDir:{pathSha256:pt(t),absolutePath:b===null?t:`<CONTENT_DIR>`},telemetry:{localSink:S,otlpPushEnabled:u()},redaction:ie,serverStatus:m,files:w};L(A(d,`manifest.json`),`${JSON.stringify(T,null,2)}\n`);let ae=C.some(e=>{try{return P(e,`utf-8`).includes(t)}catch{return!1}}),oe={totalBytes:ne,fileCount:w.length,docNameCount:re,contentDirVisible:ae,redacted:b!==null},E=!1;return{stagingDir:d,manifest:T,summary:oe,redactionMapPayload:b===null?null:{docNameMap:b.docNameMap,docNameCollisions:b.docNameCollisions},cleanup:()=>{E||(E=!0,I(d,{recursive:!0,force:!0}))}}}catch(e){throw I(d,{recursive:!0,force:!0}),e}}async function wt(e){let{collected:t,outputPath:n}=e,r=O(n);if(!M(r))throw Error(`ok diagnose bundle: parent directory does not exist: ${r}. Create it or pass --out with an existing parent.`);if(t.redactionMapPayload!==null){let e=`${D(n,`.zip`)}.docnames.json`,r={...t.manifest,redaction:{...t.manifest.redaction,applied:!0,docNameMapSidecar:e}};L(A(t.stagingDir,`manifest.json`),`${JSON.stringify(r,null,2)}\n`)}let i=new qe.ZipFile,a=gt(t.stagingDir);for(let e of a){let n=St(t.stagingDir,e);i.addFile(e,n)}i.end(),t.redactionMapPayload!==null&&L(A(r,`${D(n,`.zip`)}.docnames.json`),`${JSON.stringify({docNameMap:t.redactionMapPayload.docNameMap,docNameCollisions:t.redactionMapPayload.docNameCollisions},null,2)}\n`,{mode:384});let o=be(n);return i.outputStream.pipe(o),await new Promise((e,t)=>{o.on(`close`,e),o.on(`error`,t),i.outputStream.on(`error`,t)}),n}function Tt(e,t){let n=A(e,`.ok`,`config.yml`);if(M(n))try{let t=(0,K.parse)(P(n,`utf-8`)),r=w(t)?t.content:void 0,i=w(r)?r.dir:void 0;if(typeof i==`string`&&i.length>0)return j(e,i)}catch(e){t?.warn({configPath:n,err:e instanceof Error?e.message:String(e)},`bug-report: failed to read .ok/config.yml; falling back to project root as content dir`)}return j(e)}async function Et(e,t,n){let r=await Ct({contentDir:Tt(t,e.logger),projectDir:t,redact:e.redact,scrubSecrets:e.redact,note:e.note,extraFiles:e.extraFiles,deps:{readDesktopEnv:n,logger:e.logger}});try{N(O(e.outputPath),{recursive:!0}),await wt({collected:r,outputPath:e.outputPath});let n=r.manifest.redaction.secretScrub;return{zipPath:e.outputPath,summary:{level:`full`,systemWide:!1,projectSlug:ke(t,e.logger),files:r.manifest.files.map(e=>e.path),redactions:n?.redactions??[],redactedLineCount:n?.redactedLineCount??0,generatedAt:r.manifest.createdAt}}}finally{r.cleanup()}}async function Dt(e){let{projectDir:t}=e,n=e.readDesktopEnv??ot;if(e.level===`full`&&t!==void 0)return Et(e,t,n);let{zipPath:r,summary:i}=await Fe({projectDir:t,redact:e.redact,outputPath:e.outputPath,userLogsDir:e.userLogsDir,logger:e.logger,note:e.note,extraFiles:e.extraFiles,desktop:n()});return{zipPath:r,summary:{level:e.level,systemWide:t===void 0,projectSlug:i.projectSlug,files:i.files,redactions:i.redactions,redactedLineCount:i.redactedLineCount,generatedAt:i.generatedAt}}}function X(e,t,o={}){let s=a(e,t);if(!M(s))return{status:`missing`,lockPath:s};let c;try{c=JSON.parse(P(s,`utf-8`))}catch{return{status:`corrupt`,lockPath:s}}if(!c||typeof c!=`object`||!r(c.pid))return{status:`corrupt`,lockPath:s};let l=c;if(!(o.isAlive??n)(l.pid))return{status:`dead-pid`,lockPath:s,lock:l};if(typeof l.machineId==`string`)return l.machineId===(o.machineId??i())?{status:`alive`,lockPath:s,lock:l}:{status:`foreign-host`,lockPath:s,lock:l};let u=o.host??fe();return l.hostname===u?{status:`alive`,lockPath:s,lock:l}:{status:`foreign-host`,lockPath:s,lock:l}}function Ot(e){return e.replace(/:\d+$/,``)}function kt(e){let t=e.trim();if(!t)return null;{let e=/^https?:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`https`,hostname:Ot(e[1]),owner:e[2],name:e[3]}}{let e=/^ssh:\/\/(?:[\w.-]+@)?([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`ssh`,hostname:Ot(e[1]),owner:e[2],name:e[3]}}{let e=/^git:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:Ot(e[1]),owner:e[2],name:e[3]}}{let e=/^(?:[\w.-]+@)?([\w.-]+):([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e?.[1].includes(`.`)||e&&t.startsWith(`git@`))return{protocol:`ssh`,hostname:e[1],owner:e[2],name:e[3]}}{let e=/^git:([\w.-]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:e[1],owner:e[2],name:e[3]}}if(!t.includes(`://`)&&!t.includes(`@`)&&!t.startsWith(`/`)){let e=/^([\w.-]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e)return{protocol:`https`,hostname:`github.com`,owner:e[1],name:e[2]}}return null}function At(e){let t;try{t=new URL(e)}catch{return null}if(t.hostname!==`github.com`&&t.hostname!==`www.github.com`)return null;let n=t.pathname.split(`/`).filter(e=>e.length>0);if(n.length<5||n[2]!==`blob`)return null;let r,i,a,o;try{r=decodeURIComponent(n[0]),i=decodeURIComponent(n[1]),a=decodeURIComponent(n[3]),o=n.slice(4).map(e=>decodeURIComponent(e))}catch{return null}return!r||!i||!a||o.length===0||o.some(e=>e.length===0)?null:{owner:r,repo:i,branch:a,path:o.join(`/`)}}function jt(e){let t;try{t=new URL(e)}catch{return null}if(t.hostname!==`github.com`&&t.hostname!==`www.github.com`)return null;let n=t.pathname.split(`/`);if(n.length<5||n[0]!==``||n[3]!==`tree`)return null;let r=n.slice(5);r.length===1&&r[0]===``&&r.pop();let i,a,o,s;try{i=decodeURIComponent(n[1]),a=decodeURIComponent(n[2]),o=decodeURIComponent(n[4]),s=r.map(e=>decodeURIComponent(e))}catch{return null}return!i||!a||!o||s.some(e=>e.length===0)?null:{owner:i,repo:a,branch:o,path:s.join(`/`)}}function Mt(e){let t=At(e);if(t)return{kind:`doc`,...t};let n=jt(e);return n?{kind:`folder`,...n}:null}const Nt=`# >>> open-knowledge cli >>>`,Pt=`# <<< open-knowledge cli <<<`,Ft=/^# >>> open-knowledge cli >>>\n[\s\S]*?^# <<< open-knowledge cli <<<\n?/m;function It(e){return A(e,`Library`,`Application Support`,`OpenKnowledge`,`path-install.json`)}const Lt={existsSync:e=>M(e),readFileSync:(e,t)=>P(e,t),lstatSync:e=>xe(e),readlinkSync:e=>Ce(e)};function Rt(e,t=Lt){let n=It(e);if(!t.existsSync(n))return null;try{let e=JSON.parse(t.readFileSync(n,`utf8`));return e?.version===1?e:null}catch{return null}}function zt(e){let t=e.replace(Ft,``);return{text:t,changed:t!==e,emptyAfter:t.trim()===``}}function Bt(e,t,n=Lt){try{return n.lstatSync(e).isSymbolicLink()?n.readlinkSync(e)===t:!1}catch{return!1}}function Vt(e){return ne(e)||T(e)||v(e)}const Ht=10*1024*1024;function Ut(e,t,n,r){let i=b(e,t,n,r);if(i.kind===`absent`||i.kind===`no-entry`)return{kind:`not-present`};if(i.kind===`decline`)return{kind:`declined`,reason:i.reason};if(!Vt(i.entry))return{kind:`left-foreign`};let a;try{a=r??e.configPath(t,n)}catch{return{kind:`not-present`}}let o=e.serverName(t);return e.format===`file`?(I(a,{force:!0}),{kind:`removed`}):e.format===`toml`?Kt(a,o):e.format===`yaml`?Gt(a,e.topLevelKey,o):Wt(a,e.topLevelKey,e.serverMapSubKey,o)}function Wt(e,t,n,r){let i;try{i=P(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}if(Buffer.byteLength(i,`utf-8`)>Ht)return{kind:`declined`,reason:`oversize`};let{text:a,changed:o}=_(i,ee(t,n,r));return o?(u(e,a,{mode:S(e)}),{kind:`removed`}):{kind:`not-present`}}function Gt(e,t,n){let r;try{r=P(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}if(Buffer.byteLength(r,`utf-8`)>Ht)return{kind:`declined`,reason:`oversize`};let i=r.charCodeAt(0)===65279,a=i?r.slice(1):r,o=(0,K.parseDocument)(a);if(o.errors.length>0)return{kind:`declined`,reason:`unparseable`};let s=[t,n];if(!o.hasIn(s))return{kind:`not-present`};o.deleteIn(s);let c=o.toString(),l=y(a);a.trim()===``||a.endsWith(`
|
|
12
|
+
`)?c.endsWith(`
|
|
13
|
+
`)||(c=`${c}\n`):c=c.replace(/\n+$/,``),l&&(c=c.replace(/\r\n/g,`
|
|
14
|
+
`).replace(/\n/g,`\r
|
|
15
|
+
`));let d=`${i?``:``}${c}`;return d!==r&&u(e,d,{mode:S(e)}),{kind:`removed`}}function Kt(e,t){let n=te();if(n.backend===`fallback`)return{kind:`declined`,reason:`no-native-writer`};let r;try{r=P(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}let i=r.charCodeAt(0)===65279,a=i?r.slice(1):r,o=y(a),s=a.trim()===``||a.endsWith(`
|
|
16
|
+
`),c;try{c=n.removeEntry(a,t)}catch{return{kind:`declined`,reason:`unparseable`}}if(!c.existed)return{kind:`not-present`};let l=c.text;s?l.endsWith(`
|
|
17
|
+
`)||(l=`${l}\n`):l=l.replace(/\n+$/,``),o&&(l=l.replace(/\r\n/g,`
|
|
18
|
+
`).replace(/\n/g,`\r
|
|
19
|
+
`));let d=`${i?``:``}${l}`;return d!==r&&u(e,d,{mode:S(e)}),{kind:`removed`}}const qt=new Set([`start`,`stop`,`status`,`clean`,`ui`,`mcp`,`preview`,`deinit`]);function Jt(e,t,n=s){if(e!==void 0&&!qt.has(e))return null;let r=n(t);return r===null||r.distance===0?null:r.rootPath}let Yt=null;function Xt(e){Yt=e}function Zt(){return Yt??process.cwd()}var Z=e(ae(),1);function Qt(e){return e==null?!1:e.includes(`--type=utility`)&&e.includes(`--utility-sub-type=node.mojom.NodeService`)}function $t(e,t=Date.now()){let n=new Date(e).getTime();if(Number.isNaN(n))return`—`;let r=t-n,i=Math.floor(r/1e3);if(i<60)return`${i}s`;let a=Math.floor(i/60);if(a<60)return`${a}m ago`;let o=Math.floor(a/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function en(e,t,n,r,i,a){if(t.status===`missing`||t.status===`corrupt`)return null;let o=t.lock,s=null;if(n.status!==`missing`&&n.status!==`corrupt`){let e=n.lock;s={port:e.port,status:n.status,pid:e.pid,startedAt:e.startedAt,usage:a}}return{directory:o.worktreeRoot,server:{port:o.port,status:t.status,pid:o.pid,startedAt:o.startedAt,usage:i},ui:s,hostname:o.hostname,lockPath:t.lockPath,binary:r==null?null:m(r),command:r,isDesktop:Qt(r)}}function tn(e){return e.ui==null?!1:e.ui.status===`alive`||e.ui.status===`foreign-host`}function Q(e){let t=e.server.status;return t===`alive`||t===`foreign-host`?e.isDesktop?`desktop`:t===`alive`?`running`:`foreign`:t===`dead-pid`&&tn(e)?`ui-orphan`:`stale`}const nn=new Set([`running`,`desktop`,`foreign`,`ui-orphan`]);function rn(e){switch(e){case`running`:return Z.default.green(e);case`desktop`:return Z.default.blue(e);case`foreign`:return Z.default.cyan(e);case`ui-orphan`:return Z.default.magenta(e);case`stale`:return Z.default.yellow(e)}}function an(e){return e==null?`—`:`${e.cpuPercent.toFixed(1)}% / ${e.memPercent.toFixed(1)}%`}function on(e){return`${an(e.server.usage)} | ${an(e.ui?.usage??null)}`}function sn(e){return`${e.server.port===0?`(starting)`:String(e.server.port)} / ${e.ui==null||e.ui.status===`dead-pid`?`—`:String(e.ui.port)}`}function cn(e){if(e.length===0)return`No open-knowledge servers found.`;let t=[`DIRECTORY`,`PORTS (API/UI)`,`CPU/MEM (API | UI)`,`STATUS`,`PID`,`STARTED`,`BINARY`],n=e.map(e=>{let t=Q(e),n=t===`ui-orphan`&&e.ui!=null?e.ui.pid:e.server.pid;return[e.directory,sn(e),on(e),t,String(n),$t(e.server.startedAt),e.binary??`—`]}),r=t.length,i=t.map(e=>e.length);for(let e of n)for(let t=0;t<r;t++)i[t]=Math.max(i[t]??0,(e[t]??``).length);let a=t.map((e,t)=>e.padEnd(i[t]??0)).join(` `).trimEnd(),o=e.map((e,t)=>{let a=n[t]??[],o=[];for(let t=0;t<r;t++){let n=(a[t]??``).padEnd(i[t]??0);if(t===3){let r=a[t]??``;n=rn(Q(e))+` `.repeat(Math.max(0,(i[t]??0)-r.length))}o.push(n)}return o.join(` `).trimEnd()}),s=Z.default.dim(`To stop a server: ok stop <port|pid|directory|all>`);return[a,...o,``,s].join(`
|
|
20
|
+
`)}async function ln(e={}){let t=e.discover??p,n=e.inspect??X,r=e.log??(e=>console.log(e)),i=e.resolveCommand??d,a=e.resolveUsage??o,s=await t(),c=[];for(let e of s){let t=n(e,`server`),r=n(e,`ui`),o=en(e,t,r,t.status===`missing`||t.status===`corrupt`?null:i(t.lock.pid),t.status===`missing`||t.status===`corrupt`?null:a(t.lock.pid),r.status===`missing`||r.status===`corrupt`?null:a(r.lock.pid));o!=null&&c.push(o)}if(e.json){let e=c.map(e=>({...e,displayStatus:Q(e)}));r(JSON.stringify(e,null,2));return}r(cn(e.all?c:c.filter(e=>nn.has(Q(e)))))}function un(){return new g(`ps`).description(`List all running open-knowledge servers`).argument(`[modifier]`,`"all" to include stale (dead-pid) entries`).option(`--all`,`Include stale (dead-pid) entries (foreign-host shows by default)`).option(`--json`,`Emit structured JSON (always includes all statuses)`).action(async(e,t)=>{await ln({all:t.all===!0||e===`all`,json:t.json===!0})})}function dn(e,t,r={}){let i=r.isAlive??n,a=[];for(let[n,r]of[[`server`,e],[`ui`,t]])(r.status===`alive`||r.status===`foreign-host`&&i(r.lock.pid))&&a.push({name:n,pid:r.lock.pid,port:r.lock.port});return{targets:a}}function fn(e){let t=e.inspect??(t=>X(e.lockDir,t)),n=e.kill??((e,t)=>process.kill(e,t)),r=e.log??(e=>console.log(e)),i=e.error??(e=>console.error(e)),a=dn(t(`server`),t(`ui`),{isAlive:e.isAlive});if(a.targets.length===0)return r(`No running open-knowledge processes.`),{stopped:[],failed:[],hadTargets:!1};let o=[],s=[];for(let e of a.targets)try{n(e.pid,`SIGTERM`),o.push(e)}catch(t){s.push({target:e,error:t instanceof Error?t.message:String(t)})}return o.length>0&&r(`Stopped: ${o.map(e=>`${e.name} (pid=${e.pid}, port=${e.port})`).join(`, `)}`),s.length>0&&i(`Failed to stop: ${s.map(({target:e,error:t})=>`${e.name} (pid=${e.pid}): ${t}`).join(`; `)}`),{stopped:o,failed:s,hadTargets:!0}}function $(e,t){return e.status===`alive`?!0:e.status===`foreign-host`?t(e.lock.pid):!1}async function pn(e,t=n){let r=await p(),i=null;for(let n of r){let r=X(n,`server`),a=X(n,`ui`);if($(r,t)&&r.lock.port===e||$(a,t)&&a.lock.port===e)return n;i===null&&($(r,t)&&r.lock.pid===e||$(a,t)&&a.lock.pid===e)&&(i=n)}return i}function mn(e){let t=fn({lockDir:e});return t.failed.length>0&&(process.exitCode=1),t}function hn(e){return new g(`stop`).description(`Stop open-knowledge server(s). With no argument: stops the server for the current directory. Pass a port number, a directory path, or "all" to target globally.`).argument(`[target...]`,`port number, directory path (spaces OK), or "all"`).action(async t=>{let r=t.length===0?void 0:t.join(` `);if(r===void 0){e();let t=fn({lockDir:l(process.cwd()),log:()=>{}});if(t.hadTargets){if(t.stopped.length>0){let e=t.stopped.map(e=>`${e.name} (pid=${e.pid}, port=${e.port})`).join(`, `);console.log(`Stopped: ${e}`)}t.failed.length>0&&(process.exitCode=1)}else await ln({});return}if(r===`all`){let e=await p();if(e.length===0){console.log(`No running open-knowledge servers found.`);return}let t=0;for(let r of e){let e=X(r,`server`),i=X(r,`ui`);!$(e,n)&&!$(i,n)||(mn(r),t++)}t===0&&console.log(`No running open-knowledge servers found.`);return}if(/^\d+$/.test(r)){let e=Number.parseInt(r,10),t=await pn(e);if(t===null){console.log(`No running open-knowledge server found with port or PID ${e}.`);return}mn(t);return}mn(l(j(Zt(),r)))})}function gn(e){return{event:`mcp-config-decline`,scope:e.scope,surface:e.surface,editorId:e.editorId,reason:e.reason}}async function _n(e,t){let n,r;try{n=await B(j(e)),r=await B(j(O(e)))}catch{return{kind:`not-git`}}if(!yn(n,r))return{kind:`symlink-escape`};let i=A(n,`.git`),a;try{a=we(i)}catch{return{kind:`not-git`}}let o;if(a.isDirectory()){let e;try{e=await B(i)}catch{return{kind:`not-git`}}if(!yn(e,n))return{kind:`symlink-escape`};o=e}else if(a.isFile()){let e;try{e=await z(i,`utf-8`)}catch{return{kind:`not-git`}}let t=/^gitdir:\s*(.+)$/m.exec(e.trim());if(!t)return{kind:`not-git`};let r=t[1].trim(),a=k(r)?r:j(n,r);try{o=await B(a)}catch{return{kind:`not-git`}}}else return{kind:`not-git`};let s=A(await vn(o),`config`),c;try{c=await z(s,`utf-8`)}catch{return{kind:`not-git`}}let l=xn(c);if(l===null)return{kind:`no-origin`};let u=kt(l);if(u===null||u.hostname!==`github.com`)return{kind:`non-github`};let d=u.owner.toLowerCase()===t.owner.toLowerCase(),f=u.name.toLowerCase()===t.repo.toLowerCase();return!d||!f?{kind:`wrong-repo`,actualOwner:u.owner,actualRepo:u.name}:{kind:`ok`,gitRemoteUrl:`https://github.com/${u.owner}/${u.name}.git`}}async function vn(e){let t;try{t=(await z(A(e,`commondir`),`utf-8`)).trim()}catch{return e}if(t.length===0)return e;let n=k(t)?t:j(e,t);try{return await B(n)}catch{return n}}function yn(e,t){if(e===t)return!0;let n=se(t,e);return n.length>0&&!n.startsWith(`..`)&&!k(n)}function bn(e){let t=e.indexOf(`#`),n=e.indexOf(`;`),r=-1;return t>=0&&n>=0?r=Math.min(t,n):t>=0?r=t:n>=0&&(r=n),(r===-1?e:e.slice(0,r)).trim()}function xn(e){let t=!1;for(let n of e.split(/\r?\n/)){let e=bn(n);if(e.length===0)continue;if(e.startsWith(`[`)){t=/^\[\s*remote\s+["']origin["']\s*\]$/.test(e);continue}if(!t)continue;let r=/^url\s*=\s*(.+)$/.exec(e);if(r)return Sn(r[1])}return null}function Sn(e){let t=e.trim();return t.startsWith(`"`)&&t.endsWith(`"`)||t.startsWith(`'`)&&t.endsWith(`'`)?t.slice(1,-1):t}const Cn=[{id:`mcp-config`,write(e,t,n){let r=e.projectConfigPath?.(t);if(!r)return{integration:`mcp-config`,editorId:e.id,action:`skipped-unsupported`};try{let i=x(e,t,n,void 0,r);return i.action===`written`||i.action===`overwritten`?{integration:`mcp-config`,editorId:e.id,action:i.action,path:i.configPath}:i.action===`failed`?{integration:`mcp-config`,editorId:e.id,action:`failed`,path:i.configPath,error:i.error??`unknown failure`}:i.action===`declined`?{integration:`mcp-config`,editorId:e.id,action:`declined`,path:i.configPath,...i.declineReason===void 0?{}:{reason:i.declineReason}}:{integration:`mcp-config`,editorId:e.id,action:`failed`,path:i.configPath,error:`unexpected project-scope action: ${i.action}`}}catch(t){return{integration:`mcp-config`,editorId:e.id,action:`failed`,path:r,error:t instanceof Error?t.message:String(t)}}}},{id:`project-skill`,write(e,t,n){try{let n=ie(e,t);return{integration:`project-skill`,editorId:e.id,action:n.action,...n.path?{path:n.path}:{},...n.error?{error:n.error}:{}}}catch(t){return{integration:`project-skill`,editorId:e.id,action:`failed`,error:t instanceof Error?t.message:String(t)}}}}];function wn(e,t,n={},r=Cn){let i=[];for(let a of t){let t=re[a];for(let a of r)i.push(a.write(t,e,n))}return i}function Tn(e,t,n={}){return{integrations:wn(e,t,n)}}export{Ct as C,V as E,Dt as S,Oe as T,At as _,hn as a,kt as b,Jt as c,Ft as d,Pt as f,zt as g,Rt as h,fn as i,Ut as l,It as m,_n as n,un as o,Bt as p,gn as r,Xt as s,Tn as t,Nt as u,Mt as v,wt as w,X as x,jt as y};
|
|
21
|
+
//# sourceMappingURL=src-DpeAxWxV.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e,f as t,r as n}from"./start-Df6dIbx1.mjs";export{n as bootStartServer,t as resolveHost,e as startCommand};
|