@inkeep/open-knowledge 0.42.1 → 0.43.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.
Files changed (355) hide show
  1. package/dist/{acp-harness-probe-BC8-tjIs.mjs → acp-harness-probe-DGTFmQbn.mjs} +2 -2
  2. package/dist/assets/skills/discovery/SKILL.md +1 -1
  3. package/dist/assets/skills/project/SKILL.md +1 -1
  4. package/dist/assets/skills/write-skill/SKILL.md +1 -1
  5. package/dist/{build-fAc55Z_L.mjs → build-DYQrG4v7.mjs} +1 -1
  6. package/dist/build-DcqN8tua.mjs +1 -0
  7. package/dist/{chunk-TLSUDHID-BOrmK-jg.mjs → chunk-TLSUDHID-B0bd8ZfM.mjs} +2 -2
  8. package/dist/cli.mjs +60 -60
  9. package/dist/config-schema.json +180 -0
  10. package/dist/config.project.schema.json +180 -0
  11. package/dist/constants-O0xpb7mH.mjs +2 -0
  12. package/dist/{diff-HJF2MPDN-BvwqXcA5.mjs → diff-HJF2MPDN-DhZaF2MX.mjs} +1 -1
  13. package/dist/{flag-coverage-6JEX67RU-D3X0I2ha.mjs → flag-coverage-6JEX67RU-D1byxsyF.mjs} +2 -2
  14. package/dist/fs-traced-CeWo_16n.mjs +1 -0
  15. package/dist/{fs-traced-Cc6WsRtP.mjs → fs-traced-DDm-belY.mjs} +2 -2
  16. package/dist/git-handle-DsVW51IO.mjs +1 -0
  17. package/dist/{git-handle-BFhoHYr0.mjs → git-handle-vqpcA9VH.mjs} +2 -2
  18. package/dist/index.d.mts +41 -13
  19. package/dist/index.mjs +1 -1
  20. package/dist/{init-D7cD6zok.mjs → init-CCnKaiOs.mjs} +37 -37
  21. package/dist/init-CF2-_1EB.mjs +1 -0
  22. package/dist/{launch-json-removal-CTJjliTF.mjs → launch-json-removal-DpMakhDe.mjs} +2 -2
  23. package/dist/{lib-CE7ieLC-.mjs → lib-BS_oZ9bm.mjs} +4 -4
  24. package/dist/{libesm-CG75CrN9.mjs → libesm-DzwC_yFw.mjs} +1 -1
  25. package/dist/{loader-CiE2EBJO.mjs → loader-96AKdkqe.mjs} +2 -2
  26. package/dist/loader-Bm4GaiwL.mjs +1 -0
  27. package/dist/md-manager-DqqkZBfY.mjs +2 -0
  28. package/dist/{open-browser-Be1y1t9d.mjs → open-browser-D62jJdtT.mjs} +2 -2
  29. package/dist/parse-worker.mjs +1 -1
  30. package/dist/preview-Df7P6EY2.mjs +1 -0
  31. package/dist/{preview-DXg4YbDp.mjs → preview-DyAg02Zz.mjs} +2 -2
  32. package/dist/public/assets/ActivityModeContent-g89D5S8f.js +1 -0
  33. package/dist/public/assets/AgentDiffPane-DEEEC5SC.js +2 -0
  34. package/dist/public/assets/{AgentThreadClientBinder-MaSL3zla.js → AgentThreadClientBinder-DEl9X_lO.js} +1 -1
  35. package/dist/public/assets/CodeMirrorPropInput-Bu3Fs6zS.js +3 -0
  36. package/dist/public/assets/{ConsentDialogBody-BjbzWR8D.js → ConsentDialogBody-CiXNBNFL.js} +1 -1
  37. package/dist/public/assets/DocumentContext-rC30TeU1.js +38 -0
  38. package/dist/public/assets/{EditorModeToggle-D0Db8Ydu.js → EditorModeToggle-sLw-NDKx.js} +2 -2
  39. package/dist/public/assets/{EnableSyncConfirmDialog-B2sHRtLY.js → EnableSyncConfirmDialog-CyQvFQvF.js} +1 -1
  40. package/dist/public/assets/FeedbackForm-Xv5Ofoot.js +1 -0
  41. package/dist/public/assets/GraphPanel-D__pyQFw.js +44 -0
  42. package/dist/public/assets/{LintConfigEditor-DKgxJcvl.js → LintConfigEditor-8qwaKsqI.js} +1 -1
  43. package/dist/public/assets/ManagedArtifactProperties-C6PhweIc.js +1 -0
  44. package/dist/public/assets/{McpConsentDialogBody-CYOKF_sf.js → McpConsentDialogBody-v3xzJlUc.js} +1 -1
  45. package/dist/public/assets/MermaidDocEditor-Cb1XUuYg.js +1 -0
  46. package/dist/public/assets/PropertyPanel-CNbo8u41.js +2 -0
  47. package/dist/public/assets/{RegisteredAgentIcon-8Tcfr3WP.js → RegisteredAgentIcon-C2dU04N7.js} +1 -1
  48. package/dist/public/assets/ReportBugDialogBody-B9Fanm3L.js +3 -0
  49. package/dist/public/assets/{SchemaConfigEditor-D7xbhgl6.js → SchemaConfigEditor-BsQuL-UF.js} +1 -1
  50. package/dist/public/assets/SettingsDialogBody-D60WwzYw.js +7 -0
  51. package/dist/public/assets/{ShareBranchSwitchDialog-C6G5A_aK.js → ShareBranchSwitchDialog-CBAwJPzC.js} +1 -1
  52. package/dist/public/assets/{ShareReceiveDialog-DLEkjmkI.js → ShareReceiveDialog-By_ADxES.js} +1 -1
  53. package/dist/public/assets/{ShareReceiveMissDialog-Ls1ECEge.js → ShareReceiveMissDialog-DRPeFjq_.js} +1 -1
  54. package/dist/public/assets/{SkillEditorActions-AGeWFFyT.js → SkillEditorActions-DUmsYRmo.js} +1 -1
  55. package/dist/public/assets/SourceEditor-C-UqlkGB.js +1 -0
  56. package/dist/public/assets/{TerminalPanel-Bf_h8SIB.js → TerminalPanel-CTqU6o3s.js} +3 -3
  57. package/dist/public/assets/TerminalSessionsHost-BPvs6cwd.js +2 -0
  58. package/dist/public/assets/{TerminalWindowApp-2yCXBcQc.js → TerminalWindowApp-OPcXReB3.js} +1 -1
  59. package/dist/public/assets/ThreadView-3ad12XVo.js +6 -0
  60. package/dist/public/assets/TimelineDiffPane-DgNva1gq.js +2 -0
  61. package/dist/public/assets/{abnfDiagram-VRR7QNED-BN6xOaJK.js → abnfDiagram-VRR7QNED-BA0sca5y.js} +1 -1
  62. package/dist/public/assets/{agent-diff-store-Bi0IQPgd.js → agent-diff-store-C047fGBn.js} +1 -1
  63. package/dist/public/assets/{agent-visibility-HpfSUFqP.js → agent-visibility-BF9jUA-S.js} +1 -1
  64. package/dist/public/assets/{arc-DXLgvp45.js → arc-DIcYIkPb.js} +1 -1
  65. package/dist/public/assets/architecture-TIHT7OUA-DhKVyAdC.js +1 -0
  66. package/dist/public/assets/{architectureDiagram-ZJ3FMSHR-sAL9H8K0.js → architectureDiagram-ZJ3FMSHR-CyZsfJqr.js} +1 -1
  67. package/dist/public/assets/auth-state-cache-BlO5xkpU.js +11 -0
  68. package/dist/public/assets/awareness-heartbeat.worker-BYkbsKQ2.js +1 -0
  69. package/dist/public/assets/{blockDiagram-677ZJIJ3-CecPiwgF.js → blockDiagram-677ZJIJ3-BL4J4ddi.js} +1 -1
  70. package/dist/public/assets/{c4Diagram-LMCZKHZV-D8mdqYYS.js → c4Diagram-LMCZKHZV-DtpyWL_l.js} +1 -1
  71. package/dist/public/assets/{calendar-DEDeJBdZ.js → calendar-2iQWonjM.js} +1 -1
  72. package/dist/public/assets/channel-D7XYjy4a.js +1 -0
  73. package/dist/public/assets/chunk-2Q5K7J3B-BpVQiBsM.js +1 -0
  74. package/dist/public/assets/{chunk-32BRIVSS-JpxGJ5ji.js → chunk-32BRIVSS-J_rdnOiy.js} +1 -1
  75. package/dist/public/assets/{chunk-52WLFC77-C_iSxcYL.js → chunk-52WLFC77-BOMCKXNP.js} +1 -1
  76. package/dist/public/assets/{chunk-5FCAYU7R-Bq8uZn8B.js → chunk-5FCAYU7R-8Y9BJKC-.js} +1 -1
  77. package/dist/public/assets/{chunk-5HE753X5-Canmf8DQ.js → chunk-5HE753X5-CQEApaqU.js} +1 -1
  78. package/dist/public/assets/{chunk-5JV3BV7I-Dtexaqo4.js → chunk-5JV3BV7I-Wp4ieThX.js} +1 -1
  79. package/dist/public/assets/{chunk-5TONJI2A-QaNyDyr1.js → chunk-5TONJI2A-Dht2oB5p.js} +1 -1
  80. package/dist/public/assets/{chunk-5VM5RSS4-DnRDZx9C.js → chunk-5VM5RSS4-BtUIXst7.js} +1 -1
  81. package/dist/public/assets/{chunk-7BUUIJ7U-CjwBXrEk.js → chunk-7BUUIJ7U-B7ItXXvn.js} +1 -1
  82. package/dist/public/assets/{chunk-BIQX33UG-CwPTWPTQ.js → chunk-BIQX33UG-B4CjyNhu.js} +1 -1
  83. package/dist/public/assets/{chunk-BO2N2NFS-BTXsfKML.js → chunk-BO2N2NFS-DMgXoikU.js} +3 -3
  84. package/dist/public/assets/{chunk-C7G6YPKG-yRQSkwCz.js → chunk-C7G6YPKG-Bhzd4FsL.js} +1 -1
  85. package/dist/public/assets/{chunk-CQNSW5MT-BzGo9Za_.js → chunk-CQNSW5MT-CVrDoms_.js} +1 -1
  86. package/dist/public/assets/{chunk-CYSBUYHQ-CKmnpHug.js → chunk-CYSBUYHQ-N9puYKAt.js} +1 -1
  87. package/dist/public/assets/{chunk-EMLP6XTP-_x7IkQoS.js → chunk-EMLP6XTP-ACA6yW7o.js} +1 -1
  88. package/dist/public/assets/{chunk-EX3LRPZG-Dp9dLoos.js → chunk-EX3LRPZG-BIvLDOrf.js} +1 -1
  89. package/dist/public/assets/{chunk-FWX5IMBZ-DS2bi_oI.js → chunk-FWX5IMBZ-1CESfm5O.js} +2 -2
  90. package/dist/public/assets/{chunk-HOUHSVGY-CiAzcmEO.js → chunk-HOUHSVGY-DTcG17JD.js} +1 -1
  91. package/dist/public/assets/{chunk-ICXQ74PX-COjRz7aI.js → chunk-ICXQ74PX-CDyWyZCQ.js} +1 -1
  92. package/dist/public/assets/{chunk-JG7HCLWE-BIqqOtX1.js → chunk-JG7HCLWE-gt52jYPR.js} +1 -1
  93. package/dist/public/assets/{chunk-JWPE2WC7-DKmcMFEN.js → chunk-JWPE2WC7-BIGkO1cG.js} +1 -1
  94. package/dist/public/assets/{chunk-MOJQB5TN-BJQv3CxF.js → chunk-MOJQB5TN-dX_Ns_6-.js} +1 -1
  95. package/dist/public/assets/{chunk-MOZMSUNE-Cy6wrRA7.js → chunk-MOZMSUNE-DtIvb1II.js} +1 -1
  96. package/dist/public/assets/{chunk-OGEWGWER-C7C3Oiaz.js → chunk-OGEWGWER-BgCGYbch.js} +1 -1
  97. package/dist/public/assets/{chunk-OSBZ3O6U-DmX-gaPq.js → chunk-OSBZ3O6U-BjU8eaT1.js} +1 -1
  98. package/dist/public/assets/{chunk-PUDLZKDR-ZoTPQ917.js → chunk-PUDLZKDR-BtLyPGmD.js} +1 -1
  99. package/dist/public/assets/{chunk-Q4XR5HBZ-sjes-Yon.js → chunk-Q4XR5HBZ-B32WTAPs.js} +1 -1
  100. package/dist/public/assets/{chunk-QBLGF6JB-BiU9LEk8.js → chunk-QBLGF6JB-CprENtRb.js} +1 -1
  101. package/dist/public/assets/{chunk-R7FJI6CG-BAfUnNIm.js → chunk-R7FJI6CG-DCV9Dvbs.js} +1 -1
  102. package/dist/public/assets/{chunk-RYQCIY6F-IRvgwbUs.js → chunk-RYQCIY6F-DAyLri1b.js} +1 -1
  103. package/dist/public/assets/{chunk-U6XO7XAA-2Ds3FX_A.js → chunk-U6XO7XAA-DSdpZQB7.js} +1 -1
  104. package/dist/public/assets/{chunk-V7JOEXUC-Xkrljz-l.js → chunk-V7JOEXUC-9lX7N0EN.js} +1 -1
  105. package/dist/public/assets/chunk-VAUOI2AC-buA1NS7h.js +1 -0
  106. package/dist/public/assets/{chunk-VR4S4FIN-Db6y0lij.js → chunk-VR4S4FIN-CcTJJ1HA.js} +1 -1
  107. package/dist/public/assets/{chunk-WYO6CB5R-WjatCbeP.js → chunk-WYO6CB5R-9yPqK9ib.js} +1 -1
  108. package/dist/public/assets/chunk-XXDRQBXY-Dpdm1nrz.js +1 -0
  109. package/dist/public/assets/{chunk-YOTPTUD7-BDIMzFfd.js → chunk-YOTPTUD7-DBti7bK5.js} +1 -1
  110. package/dist/public/assets/{chunk-ZGVPDNZ5-DKtGLh__.js → chunk-ZGVPDNZ5-5ruaVNfo.js} +1 -1
  111. package/dist/public/assets/{chunk-ZIRB5QZD-JvsKOaWe.js → chunk-ZIRB5QZD-DmY1977n.js} +1 -1
  112. package/dist/public/assets/classDiagram-OUVF2IWQ-BdRcUr99.js +1 -0
  113. package/dist/public/assets/classDiagram-v2-EOCWNBFH-4fffeoHu.js +1 -0
  114. package/dist/public/assets/client-version-BXkMIB54.js +1 -0
  115. package/dist/public/assets/{config-provider-DIuwNlqX.js → config-provider-Csi6hMEt.js} +2 -2
  116. package/dist/public/assets/{cose-bilkent-JH36ORCC-B5xjEHuC.js → cose-bilkent-JH36ORCC-D8nyC_t4.js} +1 -1
  117. package/dist/public/assets/cynefin-VYW2F7L2-BlrdxSfe.js +1 -0
  118. package/dist/public/assets/{cynefinDiagram-TSTJHNR4-BeGFvfoc.js → cynefinDiagram-TSTJHNR4-B4B58YEO.js} +1 -1
  119. package/dist/public/assets/{dagre-CLVncoxl.js → dagre-DjTdhlGF.js} +1 -1
  120. package/dist/public/assets/{dagre-VKFMJZFB-D98i06T_.js → dagre-VKFMJZFB-DQHmtQOE.js} +1 -1
  121. package/dist/public/assets/{diagram-FQU43EPY--u6SeKWp.js → diagram-FQU43EPY-B28ABQG6.js} +1 -1
  122. package/dist/public/assets/{diagram-G47NLZAW-BqkpNwsF.js → diagram-G47NLZAW-1MthGQcj.js} +1 -1
  123. package/dist/public/assets/{diagram-NH7WQ7WH-eeVqGH2O.js → diagram-NH7WQ7WH-B_Fhjw29.js} +1 -1
  124. package/dist/public/assets/{diagram-OA4YK3LP-D_SnUALW.js → diagram-OA4YK3LP-1B7_yz5p.js} +1 -1
  125. package/dist/public/assets/{diagram-WEI45ONY-DKlVw8je.js → diagram-WEI45ONY-DzfuKRxf.js} +1 -1
  126. package/dist/public/assets/dist-ChSSPf9y.js +2 -0
  127. package/dist/public/assets/dist-CslAqn54.js +1 -0
  128. package/dist/public/assets/{dist-Cal4LUep.js → dist-D5TEqH45.js} +170 -168
  129. package/dist/public/assets/{dist-DQ4RxLMf.js → dist-DL8cni8v.js} +1 -1
  130. package/dist/public/assets/{doc-hash-BSK-KaTu.js → doc-hash--5hQmcT5.js} +1 -1
  131. package/dist/public/assets/{documents-events-1HWCdfoh.js → documents-events-B0k6hZi4.js} +1 -1
  132. package/dist/public/assets/{ebnfDiagram-CCIWWBDH-d0cDPEQB.js → ebnfDiagram-CCIWWBDH-BjazoYYO.js} +1 -1
  133. package/dist/public/assets/{erDiagram-Q63AITRT-BsZ0tL6Z.js → erDiagram-Q63AITRT-DvgiLWl5.js} +1 -1
  134. package/dist/public/assets/eventmodeling-45OFAUF4-D8s6Yevv.js +1 -0
  135. package/dist/public/assets/{file-tree-adapter-Dw7Dgyj1.js → file-tree-adapter-CZ6DDAA4.js} +1 -1
  136. package/dist/public/assets/{file-tree-utils-DiUPuK3N.js → file-tree-utils-BaZOVY6J.js} +1 -1
  137. package/dist/public/assets/flowDiagram-23GEKE2U-hlKdkNzZ.js +1 -0
  138. package/dist/public/assets/{ganttDiagram-NO4QXBWP-DPxkIh3b.js → ganttDiagram-NO4QXBWP-CJgOU-j1.js} +1 -1
  139. package/dist/public/assets/gitGraph-TEB2WS4Q-B-5iqxxO.js +1 -0
  140. package/dist/public/assets/{gitGraphDiagram-IHSO6WYX-vSvxugX5.js → gitGraphDiagram-IHSO6WYX-DYP87cJL.js} +1 -1
  141. package/dist/public/assets/globals-88oPHAs4.css +1 -0
  142. package/dist/public/assets/{globals-CXEWtNVL.js → globals-BzYms-F0.js} +1 -1
  143. package/dist/public/assets/{graphlib-C4UD57Nn.js → graphlib-DYCc0Y9o.js} +1 -1
  144. package/dist/public/assets/{highlighted-body-OFNGDK62-DCKUiY8r.js → highlighted-body-OFNGDK62-C9GzQB8c.js} +1 -1
  145. package/dist/public/assets/index-CMPrUhWJ.js +2014 -0
  146. package/dist/public/assets/info-DKCQHKI2-CkzkGEPY.js +1 -0
  147. package/dist/public/assets/{infoDiagram-FWYZ7A6U-Crh0f5aw.js → infoDiagram-FWYZ7A6U-CbZOQ254.js} +1 -1
  148. package/dist/public/assets/{ishikawaDiagram-FXEZZL3T-DBJ4jEKk.js → ishikawaDiagram-FXEZZL3T-CUWPHUOP.js} +1 -1
  149. package/dist/public/assets/{journeyDiagram-5HDEW3XC-CUDo0rzP.js → journeyDiagram-5HDEW3XC-RLUp44OU.js} +1 -1
  150. package/dist/public/assets/{kanban-definition-HUTT4EX6-CJD8Oexf.js → kanban-definition-HUTT4EX6-D4TPhDQW.js} +1 -1
  151. package/dist/public/assets/{line-ClsiHw5g.js → line-KTG0S8eM.js} +1 -1
  152. package/dist/public/assets/{linear-BklRBRnp.js → linear-D6fTctUn.js} +1 -1
  153. package/dist/public/assets/lint-config-client-DbmBCBFs.js +1 -0
  154. package/dist/public/assets/{map-CMaVsxPf.js → map-Rw6uJqFR.js} +1 -1
  155. package/dist/public/assets/{markdownlint-rule-browser-rS3aDGOb.js → markdownlint-rule-browser-CKqigNbJ.js} +1 -1
  156. package/dist/public/assets/mermaid-GHXKKRXX-WtDC9WMV.js +1 -0
  157. package/dist/public/assets/{mermaid-parser.core-D-rj2UdW.js → mermaid-parser.core-CusxBOjy.js} +2 -2
  158. package/dist/public/assets/{mermaid.core-DZGNq3YZ.js → mermaid.core-okCkIUps.js} +3 -3
  159. package/dist/public/assets/{mindmap-definition-LN4V7U3C-Drk1V3-q.js → mindmap-definition-LN4V7U3C-D-eGlMvq.js} +1 -1
  160. package/dist/public/assets/{navigation-targets-Ci2h-vaL.js → navigation-targets-CYyBnqZZ.js} +1 -1
  161. package/dist/public/assets/{now-Ck_JVNC2.js → now-DRL8tqfF.js} +1 -1
  162. package/dist/public/assets/{open-managed-artifact-tab-DfGutPkc.js → open-managed-artifact-tab-BEVP0SdK.js} +1 -1
  163. package/dist/public/assets/{ordinal-DrDHGs3t.js → ordinal-DnmHW-WD.js} +1 -1
  164. package/dist/public/assets/overlay-layers-y-dNUWSd.js +1 -0
  165. package/dist/public/assets/packet-7NZHBO7P-DDIvLOTX.js +1 -0
  166. package/dist/public/assets/{pegDiagram-2B236MQR-CM3AjMbx.js → pegDiagram-2B236MQR-Bjnm3xCN.js} +1 -1
  167. package/dist/public/assets/{pending-receive-nav-store-BuGLGemz.js → pending-receive-nav-store-D6BuHzW7.js} +1 -1
  168. package/dist/public/assets/pie-RZYD4A2V-DnssmCEa.js +1 -0
  169. package/dist/public/assets/{pieDiagram-ENE6RG2P-D8wIwdwS.js → pieDiagram-ENE6RG2P-BkLpbnFN.js} +1 -1
  170. package/dist/public/assets/{prop-types-B-N3_i3c.js → prop-types-BBKV1S78.js} +1 -1
  171. package/dist/public/assets/{quadrantDiagram-ABIIQ3AL-h2Dtd1uI.js → quadrantDiagram-ABIIQ3AL-eMGNkhp-.js} +1 -1
  172. package/dist/public/assets/radar-I7S5WNFK-0J5y2_MO.js +1 -0
  173. package/dist/public/assets/railroad-3IZDKUUU-BgsONsxl.js +1 -0
  174. package/dist/public/assets/railroad-abnf-AHOZXSZD-BhBo_9j9.js +1 -0
  175. package/dist/public/assets/railroad-ebnf-EBAXGLYW-B5mHA2IL.js +1 -0
  176. package/dist/public/assets/railroad-peg-LSFZ7HO6-BV4uZ4WL.js +1 -0
  177. package/dist/public/assets/{railroadDiagram-RFXS5EU6-CLc68_Sv.js → railroadDiagram-RFXS5EU6-Cs70gdc4.js} +1 -1
  178. package/dist/public/assets/{receive-store-CL0RH8Oa.js → receive-store-CLSRRsUo.js} +1 -1
  179. package/dist/public/assets/{requirementDiagram-TGXJPOKE-DtJA-6Zq.js → requirementDiagram-TGXJPOKE-yQhnovOU.js} +1 -1
  180. package/dist/public/assets/{sankeyDiagram-HTMAVEWB-Dw4-_oAZ.js → sankeyDiagram-HTMAVEWB-C7R3anws.js} +1 -1
  181. package/dist/public/assets/{selection-context-zsjvL-8N.js → selection-context-CoAzJLgJ.js} +1 -1
  182. package/dist/public/assets/{sequenceDiagram-DBY2YBRQ-B4Af8Tp3.js → sequenceDiagram-DBY2YBRQ-CEdbVotz.js} +1 -1
  183. package/dist/public/assets/{sizeCapture-X5ZJPWSS-B7J9pg7l.js → sizeCapture-X5ZJPWSS-DAh96RVo.js} +1 -1
  184. package/dist/public/assets/skill-actions-G-6FdAWg.js +1 -0
  185. package/dist/public/assets/{skills-api-ChYiP1Zv.js → skills-api-nci6FoVp.js} +1 -1
  186. package/dist/public/assets/{src-D9eynQ26.js → src--OxBHrEw.js} +1 -1
  187. package/dist/public/assets/{src-D8jPu2QV.js → src-Dqj4tsR9.js} +2 -2
  188. package/dist/public/assets/{stateDiagram-2N3HPSRC-L3VR_LMr.js → stateDiagram-2N3HPSRC-q96Dmt4i.js} +1 -1
  189. package/dist/public/assets/stateDiagram-v2-6OUMAXLB-BCNHhMpC.js +1 -0
  190. package/dist/public/assets/{swimlanes-5IMT3BWC-CRfWYpqt.js → swimlanes-5IMT3BWC--g7Ac5Wk.js} +2 -2
  191. package/dist/public/assets/swimlanesDiagram-G3AALYLV-hRuoLGg3.js +8 -0
  192. package/dist/public/assets/{tag-pill-input-B27HgfRy.js → tag-pill-input-BGvE8IPF.js} +1 -1
  193. package/dist/public/assets/{target-navigation-intent-ClG4AlV8.js → target-navigation-intent-BtjSk9Ck.js} +1 -1
  194. package/dist/public/assets/{telemetry-impl-DXiL3sBk.js → telemetry-impl-Z8PmW_aL.js} +2 -2
  195. package/dist/public/assets/{telemetry-startup-Db44p95P.js → telemetry-startup-Cy7C8oSF.js} +1 -1
  196. package/dist/public/assets/{terminal-launch-events-N4CMVbPT.js → terminal-launch-events-BAOu6SND.js} +1 -1
  197. package/dist/public/assets/{terminal-telemetry-DxTZB2oZ.js → terminal-telemetry-CSLY2tMg.js} +1 -1
  198. package/dist/public/assets/thread-client-C0O75Kza.js +1 -0
  199. package/dist/public/assets/{timeline-definition-FHXFAJF6-C1Qc7Dba.js → timeline-definition-FHXFAJF6-DqrkK_6w.js} +1 -1
  200. package/dist/public/assets/treeView-QDETBFTQ-N2YNex2I.js +1 -0
  201. package/dist/public/assets/treemap-6X3UGDF4-DkzYKeau.js +1 -0
  202. package/dist/public/assets/{typing-burst-detector-BP7d86JP.js → typing-burst-detector-YikvFcgi.js} +2 -2
  203. package/dist/public/assets/{uninstall-DHjtqCbn.js → uninstall-CVwJS9oE.js} +1 -1
  204. package/dist/public/assets/use-activity-panel-DRiVx8dd.js +1 -0
  205. package/dist/public/assets/use-apply-config-color-theme-8mWh6sFH.js +2 -0
  206. package/dist/public/assets/{use-collab-url-D0INpn_f.js → use-collab-url-Byylx1V6.js} +1 -1
  207. package/dist/public/assets/{use-live-xterm-theme-C-fHLeXw.js → use-live-xterm-theme-B8pvprD8.js} +1 -1
  208. package/dist/public/assets/{use-settings-route-CXFzIfYo.js → use-settings-route-CCeZ7dN_.js} +1 -1
  209. package/dist/public/assets/{use-terminal-enabled-fhwpyN81.js → use-terminal-enabled-LoKyqz9U.js} +1 -1
  210. package/dist/public/assets/use-timeline-entry-diff-CdO4y6y7.js +6 -0
  211. package/dist/public/assets/{use-workspace-3T40FR83.js → use-workspace-BVbiw6ue.js} +1 -1
  212. package/dist/public/assets/{vennDiagram-L72KCM5P-C4cNDPVl.js → vennDiagram-L72KCM5P-DFSXk11G.js} +1 -1
  213. package/dist/public/assets/wardley-OPB4EBWU-OOiOMSoP.js +1 -0
  214. package/dist/public/assets/{wardleyDiagram-EHGQE667-B2UY3KQf.js → wardleyDiagram-EHGQE667-Bw65HviB.js} +1 -1
  215. package/dist/public/assets/{workspace-paths-B-NChZS2.js → workspace-paths-xqj_kQWP.js} +1 -1
  216. package/dist/public/assets/{xychartDiagram-FW5EYKEG-CMsrwnL2.js → xychartDiagram-FW5EYKEG-CEVfZ0d5.js} +1 -1
  217. package/dist/public/index.html +55 -53
  218. package/dist/public/uninstall.html +5 -5
  219. package/dist/{repair-launch-json-CyiLC6sz.mjs → repair-launch-json-yRaU75sa.mjs} +2 -2
  220. package/dist/{repair-mcp-configs-MZhuDeWK.mjs → repair-mcp-configs-Dhz6Ht8f.mjs} +2 -2
  221. package/dist/repair-skills-BH1pQ2tJ.mjs +1 -0
  222. package/dist/{repair-skills-CBmnNSO7.mjs → repair-skills-hJ4Ol2SE.mjs} +2 -2
  223. package/dist/schemas/v0/config.project.schema.json +180 -0
  224. package/dist/server-lock-BT7lExvG.mjs +1 -0
  225. package/dist/{server-lock-vdpThyb4.mjs → server-lock-BaAxTOkZ.mjs} +2 -2
  226. package/dist/{sleep-B2L0pvp4.mjs → sleep-DDnWCWup.mjs} +5 -5
  227. package/dist/{src-DtcKZLt0.mjs → src-B5_KtSx0.mjs} +120 -116
  228. package/dist/src-BctJxQjz.mjs +20 -0
  229. package/dist/src-Bpg-FG-z.mjs +1 -0
  230. package/dist/src-DZ0ZiS77.mjs +3269 -0
  231. package/dist/start-D0gmTzCW.mjs +4 -0
  232. package/dist/start-D5jQn9rZ.mjs +1 -0
  233. package/dist/{write-project-skill-B_HecSEZ.mjs → write-project-skill-2xPw07AZ.mjs} +4 -4
  234. package/package.json +4 -4
  235. package/dist/build-L3kflBeC.mjs +0 -1
  236. package/dist/constants-DafFdWJR.mjs +0 -2
  237. package/dist/fs-traced-BpCA6YXG.mjs +0 -1
  238. package/dist/git-handle-CRnnMEIm.mjs +0 -1
  239. package/dist/init-CY3jgzP0.mjs +0 -1
  240. package/dist/loader-BjQNNJAX.mjs +0 -1
  241. package/dist/md-manager-CAqfesEA.mjs +0 -2
  242. package/dist/preview-BMVXzzrS.mjs +0 -1
  243. package/dist/public/assets/ActivityModeContent-CnhDNi-c.js +0 -1
  244. package/dist/public/assets/AgentDiffPane-BKvov9S5.js +0 -2
  245. package/dist/public/assets/CodeMirrorPropInput-ZGACWLSy.js +0 -3
  246. package/dist/public/assets/DocumentContext-DDkluS7D.js +0 -38
  247. package/dist/public/assets/FeedbackForm-DuEQbMOb.js +0 -1
  248. package/dist/public/assets/GraphPanel-1CKwHElx.js +0 -44
  249. package/dist/public/assets/ManagedArtifactProperties-9e_jj3hZ.js +0 -1
  250. package/dist/public/assets/MermaidDocEditor-BNURUYJE.js +0 -1
  251. package/dist/public/assets/PropertyPanel-BMIcO_AS.js +0 -2
  252. package/dist/public/assets/ReportBugDialogBody-ByMe7BRT.js +0 -2
  253. package/dist/public/assets/SettingsDialogBody-Bkz3Bpgp.js +0 -7
  254. package/dist/public/assets/SourceEditor-DI6JkRTr.js +0 -1
  255. package/dist/public/assets/TerminalSessionsHost-B2cWbpj-.js +0 -2
  256. package/dist/public/assets/ThreadView-D2BFrI_O.js +0 -6
  257. package/dist/public/assets/TimelineDiffPane-B9KqEt7q.js +0 -2
  258. package/dist/public/assets/architecture-TIHT7OUA-D0qm7G-3.js +0 -1
  259. package/dist/public/assets/auth-state-cache-BUVYaS5m.js +0 -11
  260. package/dist/public/assets/channel-DA_5WVVG.js +0 -1
  261. package/dist/public/assets/chunk-2Q5K7J3B-CZvundFv.js +0 -1
  262. package/dist/public/assets/chunk-VAUOI2AC-CzpwkaIj.js +0 -1
  263. package/dist/public/assets/chunk-XXDRQBXY-aujsIsPx.js +0 -1
  264. package/dist/public/assets/classDiagram-OUVF2IWQ-DaJYvXbz.js +0 -1
  265. package/dist/public/assets/classDiagram-v2-EOCWNBFH-naGS_xxO.js +0 -1
  266. package/dist/public/assets/client-version-FVbajnsJ.js +0 -1
  267. package/dist/public/assets/cynefin-VYW2F7L2-BIoIBt-C.js +0 -1
  268. package/dist/public/assets/dist-B1qkpf98.js +0 -2
  269. package/dist/public/assets/eventmodeling-45OFAUF4-DJJWSxES.js +0 -1
  270. package/dist/public/assets/flowDiagram-23GEKE2U-BDvIWhMq.js +0 -1
  271. package/dist/public/assets/gitGraph-TEB2WS4Q-DbaUaLPe.js +0 -1
  272. package/dist/public/assets/globals-GYHxaktb.css +0 -1
  273. package/dist/public/assets/index-Bh6-_Nba.js +0 -2014
  274. package/dist/public/assets/info-DKCQHKI2-t_ReTPP2.js +0 -1
  275. package/dist/public/assets/lint-config-client-G_mrikOJ.js +0 -1
  276. package/dist/public/assets/mermaid-GHXKKRXX-Cj1_l2m9.js +0 -1
  277. package/dist/public/assets/packet-7NZHBO7P-DvVA7lgt.js +0 -1
  278. package/dist/public/assets/pie-RZYD4A2V-THg35hJ6.js +0 -1
  279. package/dist/public/assets/radar-I7S5WNFK-Cnae5YqF.js +0 -1
  280. package/dist/public/assets/railroad-3IZDKUUU-z19uKrUP.js +0 -1
  281. package/dist/public/assets/railroad-abnf-AHOZXSZD-BUg9AO49.js +0 -1
  282. package/dist/public/assets/railroad-ebnf-EBAXGLYW-DuBtfJ_K.js +0 -1
  283. package/dist/public/assets/railroad-peg-LSFZ7HO6-BSfcErEJ.js +0 -1
  284. package/dist/public/assets/skill-actions-C_5-d4BC.js +0 -1
  285. package/dist/public/assets/stateDiagram-v2-6OUMAXLB-DM5o7mT7.js +0 -1
  286. package/dist/public/assets/swimlanesDiagram-G3AALYLV-BTrTvdTh.js +0 -8
  287. package/dist/public/assets/thread-client-CurKSSA8.js +0 -1
  288. package/dist/public/assets/treeView-QDETBFTQ-nC4bzLZB.js +0 -1
  289. package/dist/public/assets/treemap-6X3UGDF4-D1MGcMAJ.js +0 -1
  290. package/dist/public/assets/use-activity-panel-35_3901z.js +0 -1
  291. package/dist/public/assets/use-apply-config-color-theme-CK97Jvup.js +0 -2
  292. package/dist/public/assets/use-timeline-entry-diff-CHWJnnz2.js +0 -6
  293. package/dist/public/assets/wardley-OPB4EBWU-Dt2lEMaH.js +0 -1
  294. package/dist/repair-skills-B1Zc-g_X.mjs +0 -1
  295. package/dist/server-lock-DKRUWCqU.mjs +0 -1
  296. package/dist/src--Oy-0xgD.mjs +0 -22
  297. package/dist/src-mOlBaMpr.mjs +0 -3267
  298. package/dist/src-o9XsfdYT.mjs +0 -1
  299. package/dist/start-BRjY-38U.mjs +0 -3
  300. package/dist/start-BnM87E8e.mjs +0 -1
  301. /package/dist/public/assets/{ActivityPanelDiffView-CSOgz1F9.js → ActivityPanelDiffView-B03Wzvap.js} +0 -0
  302. /package/dist/public/assets/{AppMenubar-CXadCCMc.js → AppMenubar-Bisp0k8X.js} +0 -0
  303. /package/dist/public/assets/{BugReportHistoryDialog-B5Yf5rAM.js → BugReportHistoryDialog-Bp4PHyEI.js} +0 -0
  304. /package/dist/public/assets/{__vite-browser-external-T_MG5_bv.js → __vite-browser-external-BckCY-VI.js} +0 -0
  305. /package/dist/public/assets/{agent-presence-CTJkQnoU.js → agent-presence-CEfNcJUY.js} +0 -0
  306. /package/dist/public/assets/{array-BAI_NyvG.js → array-D9gZmznT.js} +0 -0
  307. /package/dist/public/assets/{chunk-KEIR6QF5-BSqm2tNO.js → chunk-KEIR6QF5-zkgbDrf9.js} +0 -0
  308. /package/dist/public/assets/{chunk-Y2CYZVJY-BCLrJxO_.js → chunk-Y2CYZVJY-BAUBUeAF.js} +0 -0
  309. /package/dist/public/assets/{clike-CkWR_Slw.js → clike-ccBqxK3t.js} +0 -0
  310. /package/dist/public/assets/{clipboard-adapter--Ja4oXEM.js → clipboard-adapter-Cxzkvc1d.js} +0 -0
  311. /package/dist/public/assets/{colors-C1oQkVlI.js → colors-BZ7r12jC.js} +0 -0
  312. /package/dist/public/assets/{copilot-BAzfPGty.js → copilot-CjOGWDvv.js} +0 -0
  313. /package/dist/public/assets/{cursor-C1n4GZG0.js → cursor-B8rehP9c.js} +0 -0
  314. /package/dist/public/assets/{cytoscape.esm-ewu4kfMU.js → cytoscape.esm-GtliGICm.js} +0 -0
  315. /package/dist/public/assets/{defaultLocale-C0VJf-tm.js → defaultLocale-CqKPYlUZ.js} +0 -0
  316. /package/dist/public/assets/{diff-BsdYbIgD.js → diff-oW0nWZgn.js} +0 -0
  317. /package/dist/public/assets/{dist-DDqBNQiG.js → dist-B1Jbz0yl.js} +0 -0
  318. /package/dist/public/assets/{dist-d-7NE8aL.js → dist-Cqbn6bM9.js} +0 -0
  319. /package/dist/public/assets/{dist-BF6U-ayK.js → dist-D1zECWv_.js} +0 -0
  320. /package/dist/public/assets/{dist-BocybIB-.js → dist-zCmaEyrL.js} +0 -0
  321. /package/dist/public/assets/{follow-file-DBnmqlyk.js → follow-file-BghdVu5J.js} +0 -0
  322. /package/dist/public/assets/{form-D-z6QdLf.js → form-coxG-8Qw.js} +0 -0
  323. /package/dist/public/assets/{format-BVhfvqw3.js → format-CejNFduS.js} +0 -0
  324. /package/dist/public/assets/{go-D-ZJPtwk.js → go-CCS4kWKN.js} +0 -0
  325. /package/dist/public/assets/{init-BX0_4ZBD.js → init-CMTNTj66.js} +0 -0
  326. /package/dist/public/assets/{isObject-BkQ5hIlp.js → isObject-Ho9jn-6g.js} +0 -0
  327. /package/dist/public/assets/{libesm-CHqp8owk.js → libesm-Db-3Gx3Z.js} +0 -0
  328. /package/dist/public/assets/{lint-plugin-meta-B3N1DKgL.js → lint-plugin-meta-J-wb-uxW.js} +0 -0
  329. /package/dist/public/assets/{lru-string-cache-hwDoWobi.js → lru-string-cache-BZxOuxTi.js} +0 -0
  330. /package/dist/public/assets/{lua-Cx3bDzQk.js → lua-DgAwqJ0D.js} +0 -0
  331. /package/dist/public/assets/{mcp-consent-store-Xk9UA_MB.js → mcp-consent-store-wvrClpLC.js} +0 -0
  332. /package/dist/public/assets/{min-Bd9Lorof.js → min-BQPeeNfF.js} +0 -0
  333. /package/dist/public/assets/{panel-Cyobla0Z.js → panel-C8ZhM4q-.js} +0 -0
  334. /package/dist/public/assets/{panzoom.es-B9Lp3OVt.js → panzoom.es-CxTS7ZPP.js} +0 -0
  335. /package/dist/public/assets/{path-C1_RvjGX.js → path-DoEWlp6O.js} +0 -0
  336. /package/dist/public/assets/{pdf-B7Y_z-D1.js → pdf-Da_O_GF5.js} +0 -0
  337. /package/dist/public/assets/{pdf.worker-B6TdDPWM.js → pdf.worker-Pbs_-93C.js} +0 -0
  338. /package/dist/public/assets/{perl-CV3dlsd7.js → perl-DMwerdcj.js} +0 -0
  339. /package/dist/public/assets/{properties-D1GaCcfv.js → properties-Du1Kuwqc.js} +0 -0
  340. /package/dist/public/assets/{r-CHRF940O.js → r-wSvpRg5h.js} +0 -0
  341. /package/dist/public/assets/{rough.esm-B1nzhEZO.js → rough.esm-esi5HKC4.js} +0 -0
  342. /package/dist/public/assets/{ruby-YzQuyklS.js → ruby-DuM6hMQW.js} +0 -0
  343. /package/dist/public/assets/{schema-fields-view-intent-Dz1ZzVCe.js → schema-fields-view-intent-BeD8vY0v.js} +0 -0
  344. /package/dist/public/assets/{share-metadata-rows-BlaR96La.js → share-metadata-rows-CbXHISQ4.js} +0 -0
  345. /package/dist/public/assets/{shell-BvVJAeXE.js → shell-BZ7mgeL0.js} +0 -0
  346. /package/dist/public/assets/{skeleton-HLkcMp95.js → skeleton-BG12Hmzn.js} +0 -0
  347. /package/dist/public/assets/{sortable.esm-B6whf_t-.js → sortable.esm-C565D25d.js} +0 -0
  348. /package/dist/public/assets/{sql-CECtKdDi.js → sql-BXdRuz6d.js} +0 -0
  349. /package/dist/public/assets/{src-BaTc8y5c.js → src-DNE52RZP.js} +0 -0
  350. /package/dist/public/assets/{swift-DLct3DJs.js → swift-DZwxTp-L.js} +0 -0
  351. /package/dist/public/assets/{textarea-RSYJwPz9.js → textarea-tdCJViKf.js} +0 -0
  352. /package/dist/public/assets/{thread-draft-staging-B4_1TigQ.js → thread-draft-staging-BuvCYJwg.js} +0 -0
  353. /package/dist/public/assets/{toml-Bl-Vp4wG.js → toml-C5KR4pi6.js} +0 -0
  354. /package/dist/public/assets/{use-installed-clis-B_nDAq7A.js → use-installed-clis-UlK7P1aH.js} +0 -0
  355. /package/dist/public/assets/{useLintConfigViewMode-BYm6FwC5.js → useLintConfigViewMode-DKPENttR.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-BCLrJxO_.js";import{t}from"./src-D9eynQ26.js";import{D as n,H as r,K as i,U as a,a as o,b as s,c,v as l,w as u,x as d,y as f}from"./chunk-WYO6CB5R-WjatCbeP.js";import{i as p}from"./chunk-ICXQ74PX-COjRz7aI.js";import{t as m}from"./chunk-VAUOI2AC-CzpwkaIj.js";import{t as h}from"./chunk-JWPE2WC7-DKmcMFEN.js";import{n as g}from"./mermaid-parser.core-D-rj2UdW.js";var _=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`),v=e((e,t,n)=>({x:_(t,`${n} evolution`),y:_(e,`${n} visibility`)}),`toCoordinates`),y=e(e=>{if(e){if(e===`+<>`)return`bidirectional`;if(e===`+<`)return`backward`;if(e===`+>`)return`forward`}},`getFlowFromPort`),b=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`),x=e((e,t)=>{if(h(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=v(e.visibility,e.evolution,`Anchor "${e.name}"`);t.addNode(e.name,e.name,n.x,n.y,`anchor`)}),e.components.forEach(e=>{let n=v(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=v(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=_(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=y(e.fromPort)??y(e.toPort),{flow:i,label:a}=b(e.arrow);!r&&i&&(r=i);let o=e.linkLabel,s=a??o;t.addLink(t.resolveNodeId(e.from),t.resolveNodeId(e.to),n,s,r)}),e.evolves.forEach(e=>{let n=t.getNode(e.component);if(n?.y!==void 0){let r=_(e.target,`Evolve target for "${e.component}"`);t.addTrend(e.component,r,n.y)}}),e.annotations.length>0){let n=e.annotations[0],r=v(n.x,n.y,`Annotations box`);t.setAnnotationsBox(r.x,r.y)}e.annotation.forEach(e=>{let n=v(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=v(e.x,e.y,`Accelerator "${e.name}"`);t.addAccelerator(e.name,n.x,n.y)}),e.deaccelerators.forEach(e=>{let n=v(e.x,e.y,`Deaccelerator "${e.name}"`);t.addDeaccelerator(e.name,n.x,n.y)})},`populateDb`),S={parser:{yy:void 0},parse:e(async e=>{let n=await g(`wardley`,e);t.debug(n);let r=S.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.`);x(n,r)},`parse`)},C=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)}resolveNodeId(e){if(this.nodes.has(e))return e;for(let[t,n]of this.nodes)if(n.label===e)return t;return 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 w(){return d()[`wardley-beta`]}e(w,`getConfig`);function T(e,t,n,r,i,a,o,s,c){C.addNode({id:e,label:t,x:n,y:r,className:i,labelOffsetX:a,labelOffsetY:o,inertia:s,sourceStrategy:c})}e(T,`addNode`);function E(e,t,n=!1,r,i){C.addLink({source:e,target:t,dashed:n,label:r,flow:i})}e(E,`addLink`);function D(e,t,n){C.addTrend({nodeId:e,targetX:t,targetY:n})}e(D,`addTrend`);function O(e,t,n){C.addAnnotation({number:e,coordinates:t,text:n})}e(O,`addAnnotation`);function k(e,t,n){C.addNote({text:e,x:t,y:n})}e(k,`addNote`);function A(e,t,n){C.addAccelerator({name:e,x:t,y:n})}e(A,`addAccelerator`);function j(e,t,n){C.addDeaccelerator({name:e,x:t,y:n})}e(j,`addDeaccelerator`);function M(e,t){C.setAnnotationsBox(e,t)}e(M,`setAnnotationsBox`);function N(e,t){C.setSize(e,t)}e(N,`setSize`);function P(e){C.startPipeline(e)}e(P,`startPipeline`);function F(e,t){C.addPipelineComponent(e,t)}e(F,`addPipelineComponent`);function I(e){C.setAxes(e)}e(I,`updateAxes`);function L(e){return C.getNode(e)}e(L,`getNode`);function R(e){return C.resolveNodeId(e)}e(R,`resolveNodeId`);function z(){return C.build()}e(z,`getWardleyData`);function B(){C.clear(),o()}e(B,`clear`);var V={getConfig:w,addNode:T,addLink:E,addTrend:D,addAnnotation:O,addNote:k,addAccelerator:A,addDeaccelerator:j,setAnnotationsBox:M,setSize:N,startPipeline:P,addPipelineComponent:F,updateAxes:I,getNode:L,resolveNodeId:R,getWardleyData:z,clear:B,setAccTitle:a,getAccTitle:f,setDiagramTitle:i,getDiagramTitle:u,getAccDescription:l,setAccDescription:r},H=[`Genesis`,`Custom Built`,`Product`,`Commodity`],U=e(()=>{let{themeVariables:e}=d();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`),W=e(()=>{let e=d()[`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`),G={parser:S,db:V,renderer:{draw:e((n,r,i,a)=>{t.debug(`Rendering Wardley map
1
+ import{n as e}from"./chunk-Y2CYZVJY-BAUBUeAF.js";import{t}from"./src--OxBHrEw.js";import{D as n,H as r,K as i,U as a,a as o,b as s,c,v as l,w as u,x as d,y as f}from"./chunk-WYO6CB5R-9yPqK9ib.js";import{i as p}from"./chunk-ICXQ74PX-CDyWyZCQ.js";import{t as m}from"./chunk-VAUOI2AC-buA1NS7h.js";import{t as h}from"./chunk-JWPE2WC7-BIGkO1cG.js";import{n as g}from"./mermaid-parser.core-CusxBOjy.js";var _=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`),v=e((e,t,n)=>({x:_(t,`${n} evolution`),y:_(e,`${n} visibility`)}),`toCoordinates`),y=e(e=>{if(e){if(e===`+<>`)return`bidirectional`;if(e===`+<`)return`backward`;if(e===`+>`)return`forward`}},`getFlowFromPort`),b=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`),x=e((e,t)=>{if(h(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=v(e.visibility,e.evolution,`Anchor "${e.name}"`);t.addNode(e.name,e.name,n.x,n.y,`anchor`)}),e.components.forEach(e=>{let n=v(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=v(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=_(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=y(e.fromPort)??y(e.toPort),{flow:i,label:a}=b(e.arrow);!r&&i&&(r=i);let o=e.linkLabel,s=a??o;t.addLink(t.resolveNodeId(e.from),t.resolveNodeId(e.to),n,s,r)}),e.evolves.forEach(e=>{let n=t.getNode(e.component);if(n?.y!==void 0){let r=_(e.target,`Evolve target for "${e.component}"`);t.addTrend(e.component,r,n.y)}}),e.annotations.length>0){let n=e.annotations[0],r=v(n.x,n.y,`Annotations box`);t.setAnnotationsBox(r.x,r.y)}e.annotation.forEach(e=>{let n=v(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=v(e.x,e.y,`Accelerator "${e.name}"`);t.addAccelerator(e.name,n.x,n.y)}),e.deaccelerators.forEach(e=>{let n=v(e.x,e.y,`Deaccelerator "${e.name}"`);t.addDeaccelerator(e.name,n.x,n.y)})},`populateDb`),S={parser:{yy:void 0},parse:e(async e=>{let n=await g(`wardley`,e);t.debug(n);let r=S.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.`);x(n,r)},`parse`)},C=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)}resolveNodeId(e){if(this.nodes.has(e))return e;for(let[t,n]of this.nodes)if(n.label===e)return t;return 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 w(){return d()[`wardley-beta`]}e(w,`getConfig`);function T(e,t,n,r,i,a,o,s,c){C.addNode({id:e,label:t,x:n,y:r,className:i,labelOffsetX:a,labelOffsetY:o,inertia:s,sourceStrategy:c})}e(T,`addNode`);function E(e,t,n=!1,r,i){C.addLink({source:e,target:t,dashed:n,label:r,flow:i})}e(E,`addLink`);function D(e,t,n){C.addTrend({nodeId:e,targetX:t,targetY:n})}e(D,`addTrend`);function O(e,t,n){C.addAnnotation({number:e,coordinates:t,text:n})}e(O,`addAnnotation`);function k(e,t,n){C.addNote({text:e,x:t,y:n})}e(k,`addNote`);function A(e,t,n){C.addAccelerator({name:e,x:t,y:n})}e(A,`addAccelerator`);function j(e,t,n){C.addDeaccelerator({name:e,x:t,y:n})}e(j,`addDeaccelerator`);function M(e,t){C.setAnnotationsBox(e,t)}e(M,`setAnnotationsBox`);function N(e,t){C.setSize(e,t)}e(N,`setSize`);function P(e){C.startPipeline(e)}e(P,`startPipeline`);function F(e,t){C.addPipelineComponent(e,t)}e(F,`addPipelineComponent`);function I(e){C.setAxes(e)}e(I,`updateAxes`);function L(e){return C.getNode(e)}e(L,`getNode`);function R(e){return C.resolveNodeId(e)}e(R,`resolveNodeId`);function z(){return C.build()}e(z,`getWardleyData`);function B(){C.clear(),o()}e(B,`clear`);var V={getConfig:w,addNode:T,addLink:E,addTrend:D,addAnnotation:O,addNote:k,addAccelerator:A,addDeaccelerator:j,setAnnotationsBox:M,setSize:N,startPipeline:P,addPipelineComponent:F,updateAxes:I,getNode:L,resolveNodeId:R,getWardleyData:z,clear:B,setAccTitle:a,getAccTitle:f,setDiagramTitle:i,getDiagramTitle:u,getAccDescription:l,setAccDescription:r},H=[`Genesis`,`Custom Built`,`Product`,`Commodity`],U=e(()=>{let{themeVariables:e}=d();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`),W=e(()=>{let e=d()[`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`),G={parser:S,db:V,renderer:{draw:e((n,r,i,a)=>{t.debug(`Rendering Wardley map
2
2
  `+n);let o=W(),s=U(),l=o.nodeRadius*1.6,u=a.db,d=u.getWardleyData(),f=u.getDiagramTitle(),p=d.size?.width??o.width,h=d.size?.height??o.height,g=m(r);g.selectAll(`*`).remove(),c(g,h,p,o.useMaxWidth),g.attr(`viewBox`,`0 0 ${p} ${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`,p).attr(`height`,h).attr(`fill`,s.backgroundColor);let y=p-o.padding*2,b=h-o.padding*2;f&&_.append(`text`).attr(`class`,`wardley-title`).attr(`x`,p/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(f);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`,p-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:H;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`,p-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,c=0;if(n.componentIds.forEach(e=>{let t=D.get(e);t&&(i=Math.min(i,t.x),a=Math.max(a,t.x),c=t.y)}),i!==1/0&&a!==-1/0){let t=o.nodeRadius*4,r=c-t/2,u=D.get(n.nodeId);u&&(u.x=(i+a)/2,u.y=r-l/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?l/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?l/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?l/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?l/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-l/2).attr(`y`,e=>D.get(e.id).y-l/2).attr(`width`,l).attr(`height`,l).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?l/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?l:o.nodeRadius*2;return t.y-n/2}).attr(`x2`,e=>{let t=D.get(e.id),n=e.isPipelineParent?l/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?l: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=p-o.padding-l,m=o.padding,g=h-o.padding-u;t=Math.max(d,Math.min(t,f)),n=Math.max(m,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}
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./createLucideIcon-DAkhoPjT.js";import{Mn as i}from"./dist-Cal4LUep.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(`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`}]]),s=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`}]]),c=[`global`,`project`];function l(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 u=`open-knowledge-pack-`;function d(e){return e.startsWith(u)?e.slice(20):e}function f(){let{_:e}=n();return{project:e({id:`e0NrBM`}),global:e({id:`2GT3Hf`})}}function p(){let{_:e}=n();return{project:e({id:`HyvSqq`}),global:e({id:`C7XjNB`})}}var m=e(t(),1);function h(){let[e]=(0,m.useState)(g);return e}function g(){return i()!=null}function _(e,t,n){let r=n===`\\`?t.replaceAll(`/`,`\\`):t;return`${e.endsWith(n)?e.slice(0,-1):e}${n}${r}`}var v=/\.(md|mdx)$/i;function y(e){return v.test(e)?e:`${e}.md`}export{d as a,p as c,a as d,c as i,s as l,_ as n,l as o,h as r,f as s,y as t,o as u};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./createLucideIcon-DAkhoPjT.js";import{Pn as i}from"./dist-D5TEqH45.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(`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`}]]),s=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`}]]),c=[`global`,`project`];function l(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 u=`open-knowledge-pack-`;function d(e){return e.startsWith(u)?e.slice(20):e}function f(){let{_:e}=n();return{project:e({id:`e0NrBM`}),global:e({id:`2GT3Hf`})}}function p(){let{_:e}=n();return{project:e({id:`HyvSqq`}),global:e({id:`C7XjNB`})}}var m=e(t(),1);function h(){let[e]=(0,m.useState)(g);return e}function g(){return i()!=null}function _(e,t,n){let r=n===`\\`?t.replaceAll(`/`,`\\`):t;return`${e.endsWith(n)?e.slice(0,-1):e}${n}${r}`}var v=/\.(md|mdx)$/i;function y(e){return v.test(e)?e:`${e}.md`}export{d as a,p as c,a as d,c as i,s as l,_ as n,l as o,h as r,f as s,y as t,o as u};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-BCLrJxO_.js";import{t}from"./src-D9eynQ26.js";import{D as n,H as r,K as i,U as a,a as o,b as s,c,f as l,v as u,w as d,y as f,z as p}from"./chunk-WYO6CB5R-WjatCbeP.js";import{t as m}from"./linear-BklRBRnp.js";import{t as h}from"./ordinal-DrDHGs3t.js";import{t as g}from"./init-BX0_4ZBD.js";import{i as _}from"./chunk-ICXQ74PX-COjRz7aI.js";import{t as v}from"./line-ClsiHw5g.js";import{t as y}from"./chunk-VAUOI2AC-CzpwkaIj.js";import"./chunk-HOUHSVGY-CiAzcmEO.js";import{t as b}from"./chunk-Q4XR5HBZ-sjes-Yon.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,36,37,38],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,36,37,38],E=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],D=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],O=[1,65],k=[26,28],A={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,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$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`,28:`COMMA`,29:`NUMBER_WITH_DECIMAL`,30:`STR`,33:`ARROW_DELIMITER`,36:`NEWLINE`,37:`SEMI`,38:`EOF`,40:`MD_STR`,42:`AMP`,43:`NUM`,44:`ALPHA`,45:`PLUS`,46:`EQUALS`,47:`MULT`,48:`DOT`,49:`BRKT`,50:`MINUS`,51:`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],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,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:case 30:this.$=[a[s-2],...a[s]];break;case 21:case 31:this.$=[a[s]];break;case 22:this.$={value:Number(a[s-1]),label:a[s]};break;case 23:this.$={value:Number(a[s]),label:``};break;case 24:r.setXAxisTitle(a[s]);break;case 25:r.setXAxisTitle(a[s-1]);break;case 26:r.setXAxisTitle({type:`text`,text:``});break;case 27:r.setXAxisBand(a[s]);break;case 28:r.setXAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 29:this.$=a[s-1];break;case 32:r.setYAxisTitle(a[s]);break;case 33:r.setYAxisTitle(a[s-1]);break;case 34:r.setYAxisTitle({type:`text`,text:``});break;case 35:r.setYAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 39:this.$={text:a[s],type:`text`};break;case 40:this.$={text:a[s],type:`text`};break;case 41:this.$={text:a[s],type:`markdown`};break;case 42:this.$=a[s];break;case 43:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[t(n,r,{3:1,4:2,7:4,5:i,36:a,37:o,38:s}),{1:[3]},t(n,r,{4:2,7:4,3:8,5:i,36:a,37:o,38:s}),t(n,r,{4:2,7:4,6:9,3:10,5:i,8:[1,11],36:a,37:o,38: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,36]),t(c,[2,37]),t(c,[2,38]),{1:[2,1]},t(n,r,{4:2,7:4,3:21,5:i,36:a,37:o,38:s}),{1:[2,3]},t(c,[2,5]),t(n,[2,7],{4:22,36:a,37:o,38:s}),{11:23,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:39,13:38,24:x,29:S,30:l,31:40,32:41,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:45,15:44,29:C,30:l,35:46,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:49,17:48,24:w,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:52,17:51,24:w,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51: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,39],{41:55,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b}),t(E,[2,40]),t(E,[2,41]),t(D,[2,42]),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(D,[2,52]),t(D,[2,53]),t(T,[2,10]),t(T,[2,24],{32:41,31:56,24:x,29:S}),t(T,[2,26]),t(T,[2,27]),{33:[1,57]},{11:59,30:l,34:58,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},t(T,[2,11]),t(T,[2,32],{35:60,29:C}),t(T,[2,34]),{33:[1,61]},t(T,[2,12]),{17:62,24:w},{25:63,27:64,29:O},t(T,[2,14]),{17:66,24:w},t(T,[2,16]),t(T,[2,17]),t(D,[2,43]),t(T,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},t(T,[2,33]),{29:[1,70]},t(T,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},t(k,[2,23],{30:[1,73]}),t(T,[2,15]),t(T,[2,28]),t(T,[2,29]),{11:59,30:l,34:74,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},t(T,[2,35]),t(T,[2,19]),{25:75,27:64,29:O},t(k,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[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)+`:
1
+ import{n as e}from"./chunk-Y2CYZVJY-BAUBUeAF.js";import{t}from"./src--OxBHrEw.js";import{D as n,H as r,K as i,U as a,a as o,b as s,c,f as l,v as u,w as d,y as f,z as p}from"./chunk-WYO6CB5R-9yPqK9ib.js";import{t as m}from"./linear-D6fTctUn.js";import{t as h}from"./ordinal-DnmHW-WD.js";import{t as g}from"./init-CMTNTj66.js";import{i as _}from"./chunk-ICXQ74PX-CDyWyZCQ.js";import{t as v}from"./line-KTG0S8eM.js";import{t as y}from"./chunk-VAUOI2AC-buA1NS7h.js";import"./chunk-HOUHSVGY-DTcG17JD.js";import{t as b}from"./chunk-Q4XR5HBZ-B32WTAPs.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,36,37,38],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,36,37,38],E=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],D=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],O=[1,65],k=[26,28],A={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,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$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`,28:`COMMA`,29:`NUMBER_WITH_DECIMAL`,30:`STR`,33:`ARROW_DELIMITER`,36:`NEWLINE`,37:`SEMI`,38:`EOF`,40:`MD_STR`,42:`AMP`,43:`NUM`,44:`ALPHA`,45:`PLUS`,46:`EQUALS`,47:`MULT`,48:`DOT`,49:`BRKT`,50:`MINUS`,51:`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],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,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:case 30:this.$=[a[s-2],...a[s]];break;case 21:case 31:this.$=[a[s]];break;case 22:this.$={value:Number(a[s-1]),label:a[s]};break;case 23:this.$={value:Number(a[s]),label:``};break;case 24:r.setXAxisTitle(a[s]);break;case 25:r.setXAxisTitle(a[s-1]);break;case 26:r.setXAxisTitle({type:`text`,text:``});break;case 27:r.setXAxisBand(a[s]);break;case 28:r.setXAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 29:this.$=a[s-1];break;case 32:r.setYAxisTitle(a[s]);break;case 33:r.setYAxisTitle(a[s-1]);break;case 34:r.setYAxisTitle({type:`text`,text:``});break;case 35:r.setYAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 39:this.$={text:a[s],type:`text`};break;case 40:this.$={text:a[s],type:`text`};break;case 41:this.$={text:a[s],type:`markdown`};break;case 42:this.$=a[s];break;case 43:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[t(n,r,{3:1,4:2,7:4,5:i,36:a,37:o,38:s}),{1:[3]},t(n,r,{4:2,7:4,3:8,5:i,36:a,37:o,38:s}),t(n,r,{4:2,7:4,6:9,3:10,5:i,8:[1,11],36:a,37:o,38: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,36]),t(c,[2,37]),t(c,[2,38]),{1:[2,1]},t(n,r,{4:2,7:4,3:21,5:i,36:a,37:o,38:s}),{1:[2,3]},t(c,[2,5]),t(n,[2,7],{4:22,36:a,37:o,38:s}),{11:23,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:39,13:38,24:x,29:S,30:l,31:40,32:41,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:45,15:44,29:C,30:l,35:46,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:49,17:48,24:w,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:52,17:51,24:w,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51: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,39],{41:55,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b}),t(E,[2,40]),t(E,[2,41]),t(D,[2,42]),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(D,[2,52]),t(D,[2,53]),t(T,[2,10]),t(T,[2,24],{32:41,31:56,24:x,29:S}),t(T,[2,26]),t(T,[2,27]),{33:[1,57]},{11:59,30:l,34:58,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},t(T,[2,11]),t(T,[2,32],{35:60,29:C}),t(T,[2,34]),{33:[1,61]},t(T,[2,12]),{17:62,24:w},{25:63,27:64,29:O},t(T,[2,14]),{17:66,24:w},t(T,[2,16]),t(T,[2,17]),t(D,[2,43]),t(T,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},t(T,[2,33]),{29:[1,70]},t(T,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},t(k,[2,23],{30:[1,73]}),t(T,[2,15]),t(T,[2,28]),t(T,[2,29]),{11:59,30:l,34:74,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},t(T,[2,35]),t(T,[2,19]),{25:75,27:64,29:O},t(k,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[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`)};A.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()+`
@@ -58,12 +58,12 @@
58
58
  -->
59
59
  <script>(() => { let t = 'system'; try { const r = localStorage.getItem('ok-theme-v1'); if (r === 'light' || r === 'dark' || r === 'system') t = r; } catch {} let ct = null; try { const c = localStorage.getItem('ok-color-theme-v1'); if (c && ['dracula', 'catppuccin-frappe', 'catppuccin-latte', 'monokai', 'gruvbox', 'solarized', 'custom'].includes(c)) ct = c; } catch {} let dark = t === 'dark'; if (t === 'system') { try { dark = window.matchMedia('(prefers-color-scheme: dark)').matches; } catch {} } let customCss = null; if (ct === 'custom') { try { const raw = localStorage.getItem('ok-custom-theme-v1'); if (raw) { const o = JSON.parse(raw); if (o?.css) { customCss = o.css; dark = !!o.dark; } } } catch {} if (!customCss) ct = null; } else if (ct) { dark = !['catppuccin-latte'].includes(ct); } if (dark) document.documentElement.classList.add('dark'); if (ct) document.documentElement.setAttribute('data-color-theme', ct); if (customCss) { const s = document.createElement('style'); s.id = 'ok-custom-theme'; s.textContent = customCss; document.head.appendChild(s); } if (window.okDesktop) { document.documentElement.classList.add('electron-mode'); document.documentElement.classList.add(`electron-platform-${window.okDesktop.platform}`); } })();</script>
60
60
  <style>html { background-color: #fafafa } html.dark { background-color: #171717 }</style>
61
- <script type="module" crossorigin src="./assets/index-Bh6-_Nba.js"></script>
61
+ <script type="module" crossorigin src="./assets/index-CMPrUhWJ.js"></script>
62
62
  <link rel="modulepreload" crossorigin href="./assets/chunk-CYidjpOJ.js">
63
63
  <link rel="modulepreload" crossorigin href="./assets/dist-q14fBS3T.js">
64
64
  <link rel="modulepreload" crossorigin href="./assets/react-f2sANaYj.js">
65
65
  <link rel="modulepreload" crossorigin href="./assets/react-dom-DPxgxlDT.js">
66
- <link rel="modulepreload" crossorigin href="./assets/globals-CXEWtNVL.js">
66
+ <link rel="modulepreload" crossorigin href="./assets/globals-BzYms-F0.js">
67
67
  <link rel="modulepreload" crossorigin href="./assets/preload-helper-Chd9yIcd.js">
68
68
  <link rel="modulepreload" crossorigin href="./assets/w3c-keyname-DtWCia6R.js">
69
69
  <link rel="modulepreload" crossorigin href="./assets/dist-DNwOaDhC.js">
@@ -74,20 +74,19 @@
74
74
  <link rel="modulepreload" crossorigin href="./assets/dist-BObw0jPE.js">
75
75
  <link rel="modulepreload" crossorigin href="./assets/dist-DifRwKW-.js">
76
76
  <link rel="modulepreload" crossorigin href="./assets/dist-DGzvBIzr.js">
77
- <link rel="modulepreload" crossorigin href="./assets/dist-B1qkpf98.js">
78
- <link rel="modulepreload" crossorigin href="./assets/sortable.esm-B6whf_t-.js">
77
+ <link rel="modulepreload" crossorigin href="./assets/sortable.esm-C565D25d.js">
79
78
  <link rel="modulepreload" crossorigin href="./assets/floating-ui.dom-DxCSXcm6.js">
80
79
  <link rel="modulepreload" crossorigin href="./assets/trace-api-DHyWZzIa.js">
81
80
  <link rel="modulepreload" crossorigin href="./assets/lib-Iu39CNZE.js">
82
81
  <link rel="modulepreload" crossorigin href="./assets/markdownit-YwcN3EvW.js">
83
- <link rel="modulepreload" crossorigin href="./assets/dist-Cal4LUep.js">
82
+ <link rel="modulepreload" crossorigin href="./assets/dist-D5TEqH45.js">
84
83
  <link rel="modulepreload" crossorigin href="./assets/dist-PQ5KMVDh.js">
85
84
  <link rel="modulepreload" crossorigin href="./assets/compiler-runtime-BfE3aGVn.js">
86
85
  <link rel="modulepreload" crossorigin href="./assets/jsx-runtime-BUgB2tll.js">
87
- <link rel="modulepreload" crossorigin href="./assets/client-version-FVbajnsJ.js">
88
- <link rel="modulepreload" crossorigin href="./assets/use-apply-config-color-theme-CK97Jvup.js">
86
+ <link rel="modulepreload" crossorigin href="./assets/client-version-BXkMIB54.js">
87
+ <link rel="modulepreload" crossorigin href="./assets/use-apply-config-color-theme-8mWh6sFH.js">
89
88
  <link rel="modulepreload" crossorigin href="./assets/config-context-gd3BC-iY.js">
90
- <link rel="modulepreload" crossorigin href="./assets/config-provider-DIuwNlqX.js">
89
+ <link rel="modulepreload" crossorigin href="./assets/config-provider-Csi6hMEt.js">
91
90
  <link rel="modulepreload" crossorigin href="./assets/dist-Nvb76hAm.js">
92
91
  <link rel="modulepreload" crossorigin href="./assets/bundle-mjs-SHeFpKGC.js">
93
92
  <link rel="modulepreload" crossorigin href="./assets/createLucideIcon-DAkhoPjT.js">
@@ -125,20 +124,20 @@
125
124
  <link rel="modulepreload" crossorigin href="./assets/folder-open-wLd69QUc.js">
126
125
  <link rel="modulepreload" crossorigin href="./assets/trash-2-BUuL4OCw.js">
127
126
  <link rel="modulepreload" crossorigin href="./assets/triangle-alert-Clgvyc7B.js">
128
- <link rel="modulepreload" crossorigin href="./assets/file-tree-utils-DiUPuK3N.js">
129
- <link rel="modulepreload" crossorigin href="./assets/doc-hash-BSK-KaTu.js">
130
- <link rel="modulepreload" crossorigin href="./assets/navigation-targets-Ci2h-vaL.js">
127
+ <link rel="modulepreload" crossorigin href="./assets/file-tree-utils-BaZOVY6J.js">
128
+ <link rel="modulepreload" crossorigin href="./assets/doc-hash--5hQmcT5.js">
129
+ <link rel="modulepreload" crossorigin href="./assets/navigation-targets-CYyBnqZZ.js">
131
130
  <link rel="modulepreload" crossorigin href="./assets/external-link-T4Nj1gcG.js">
132
131
  <link rel="modulepreload" crossorigin href="./assets/documents-fetch-CLL0O1of.js">
133
- <link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-ZGACWLSy.js">
132
+ <link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-Bu3Fs6zS.js">
134
133
  <link rel="modulepreload" crossorigin href="./assets/git-branch-CMJAiYLz.js">
135
134
  <link rel="modulepreload" crossorigin href="./assets/copy-9EDFYcyR.js">
136
135
  <link rel="modulepreload" crossorigin href="./assets/CopyButton-1Q6Wnnjb.js">
137
- <link rel="modulepreload" crossorigin href="./assets/documents-events-1HWCdfoh.js">
136
+ <link rel="modulepreload" crossorigin href="./assets/documents-events-B0k6hZi4.js">
138
137
  <link rel="modulepreload" crossorigin href="./assets/parse-api-error-C_gwkKmG.js">
139
138
  <link rel="modulepreload" crossorigin href="./assets/startup-marks-CqVzdU1y.js">
140
- <link rel="modulepreload" crossorigin href="./assets/prop-types-B-N3_i3c.js">
141
- <link rel="modulepreload" crossorigin href="./assets/workspace-paths-B-NChZS2.js">
139
+ <link rel="modulepreload" crossorigin href="./assets/prop-types-BBKV1S78.js">
140
+ <link rel="modulepreload" crossorigin href="./assets/workspace-paths-xqj_kQWP.js">
142
141
  <link rel="modulepreload" crossorigin href="./assets/eye-CASw1HTi.js">
143
142
  <link rel="modulepreload" crossorigin href="./assets/hash-DNKDqZ18.js">
144
143
  <link rel="modulepreload" crossorigin href="./assets/info-yKMseklR.js">
@@ -149,58 +148,61 @@
149
148
  <link rel="modulepreload" crossorigin href="./assets/file-tree-rename-validation-wADtjYEi.js">
150
149
  <link rel="modulepreload" crossorigin href="./assets/badge-Dba4cvJR.js">
151
150
  <link rel="modulepreload" crossorigin href="./assets/input-D0ZW0Opq.js">
152
- <link rel="modulepreload" crossorigin href="./assets/use-collab-url-D0INpn_f.js">
153
- <link rel="modulepreload" crossorigin href="./assets/DocumentContext-DDkluS7D.js">
154
- <link rel="modulepreload" crossorigin href="./assets/format-BVhfvqw3.js">
151
+ <link rel="modulepreload" crossorigin href="./assets/use-collab-url-Byylx1V6.js">
152
+ <link rel="modulepreload" crossorigin href="./assets/DocumentContext-rC30TeU1.js">
153
+ <link rel="modulepreload" crossorigin href="./assets/dist-ChSSPf9y.js">
154
+ <link rel="modulepreload" crossorigin href="./assets/dist-CslAqn54.js">
155
+ <link rel="modulepreload" crossorigin href="./assets/format-CejNFduS.js">
155
156
  <link rel="modulepreload" crossorigin href="./assets/braces-DwnwFx_V.js">
156
- <link rel="modulepreload" crossorigin href="./assets/open-managed-artifact-tab-DfGutPkc.js">
157
- <link rel="modulepreload" crossorigin href="./assets/lint-config-client-G_mrikOJ.js">
158
- <link rel="modulepreload" crossorigin href="./assets/selection-context-zsjvL-8N.js">
159
- <link rel="modulepreload" crossorigin href="./assets/PropertyPanel-BMIcO_AS.js">
160
- <link rel="modulepreload" crossorigin href="./assets/EnableSyncConfirmDialog-B2sHRtLY.js">
157
+ <link rel="modulepreload" crossorigin href="./assets/open-managed-artifact-tab-BEVP0SdK.js">
158
+ <link rel="modulepreload" crossorigin href="./assets/lint-config-client-DbmBCBFs.js">
159
+ <link rel="modulepreload" crossorigin href="./assets/selection-context-CoAzJLgJ.js">
160
+ <link rel="modulepreload" crossorigin href="./assets/PropertyPanel-CNbo8u41.js">
161
+ <link rel="modulepreload" crossorigin href="./assets/EnableSyncConfirmDialog-CyQvFQvF.js">
161
162
  <link rel="modulepreload" crossorigin href="./assets/arrow-up-right-obRIg3Sv.js">
162
- <link rel="modulepreload" crossorigin href="./assets/cursor-C1n4GZG0.js">
163
- <link rel="modulepreload" crossorigin href="./assets/RegisteredAgentIcon-8Tcfr3WP.js">
163
+ <link rel="modulepreload" crossorigin href="./assets/cursor-B8rehP9c.js">
164
+ <link rel="modulepreload" crossorigin href="./assets/RegisteredAgentIcon-C2dU04N7.js">
164
165
  <link rel="modulepreload" crossorigin href="./assets/case-sensitive-nl0tWMnZ.js">
165
166
  <link rel="modulepreload" crossorigin href="./assets/chevron-left-BQ6OM94c.js">
166
167
  <link rel="modulepreload" crossorigin href="./assets/refresh-cw-BfeWGCsv.js">
167
- <link rel="modulepreload" crossorigin href="./assets/copilot-BAzfPGty.js">
168
- <link rel="modulepreload" crossorigin href="./assets/agent-visibility-HpfSUFqP.js">
169
- <link rel="modulepreload" crossorigin href="./assets/use-settings-route-CXFzIfYo.js">
170
- <link rel="modulepreload" crossorigin href="./assets/clipboard-adapter--Ja4oXEM.js">
171
- <link rel="modulepreload" crossorigin href="./assets/skills-api-ChYiP1Zv.js">
172
- <link rel="modulepreload" crossorigin href="./assets/use-workspace-3T40FR83.js">
173
- <link rel="modulepreload" crossorigin href="./assets/skill-actions-C_5-d4BC.js">
168
+ <link rel="modulepreload" crossorigin href="./assets/copilot-CjOGWDvv.js">
169
+ <link rel="modulepreload" crossorigin href="./assets/agent-visibility-BF9jUA-S.js">
170
+ <link rel="modulepreload" crossorigin href="./assets/use-settings-route-CCeZ7dN_.js">
171
+ <link rel="modulepreload" crossorigin href="./assets/clipboard-adapter-Cxzkvc1d.js">
172
+ <link rel="modulepreload" crossorigin href="./assets/skills-api-nci6FoVp.js">
173
+ <link rel="modulepreload" crossorigin href="./assets/use-workspace-BVbiw6ue.js">
174
+ <link rel="modulepreload" crossorigin href="./assets/skill-actions-G-6FdAWg.js">
174
175
  <link rel="modulepreload" crossorigin href="./assets/square-pen-C1vIlMAW.js">
175
176
  <link rel="modulepreload" crossorigin href="./assets/field-DVIFAnvR.js">
176
- <link rel="modulepreload" crossorigin href="./assets/textarea-RSYJwPz9.js">
177
- <link rel="modulepreload" crossorigin href="./assets/auth-state-cache-BUVYaS5m.js">
177
+ <link rel="modulepreload" crossorigin href="./assets/textarea-tdCJViKf.js">
178
+ <link rel="modulepreload" crossorigin href="./assets/auth-state-cache-BlO5xkpU.js">
178
179
  <link rel="modulepreload" crossorigin href="./assets/miss-dialog-store-Bx4JLuKB.js">
179
- <link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-BuGLGemz.js">
180
- <link rel="modulepreload" crossorigin href="./assets/terminal-launch-events-N4CMVbPT.js">
180
+ <link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-D6BuHzW7.js">
181
+ <link rel="modulepreload" crossorigin href="./assets/terminal-launch-events-BAOu6SND.js">
181
182
  <link rel="modulepreload" crossorigin href="./assets/panel-right-open-B7ziq39V.js">
182
183
  <link rel="modulepreload" crossorigin href="./assets/timeline-diff-store-CYckprSS.js">
183
- <link rel="modulepreload" crossorigin href="./assets/form-D-z6QdLf.js">
184
- <link rel="modulepreload" crossorigin href="./assets/EditorModeToggle-D0Db8Ydu.js">
184
+ <link rel="modulepreload" crossorigin href="./assets/form-coxG-8Qw.js">
185
+ <link rel="modulepreload" crossorigin href="./assets/EditorModeToggle-sLw-NDKx.js">
185
186
  <link rel="modulepreload" crossorigin href="./assets/wrench-BfoTvqT9.js">
186
- <link rel="modulepreload" crossorigin href="./assets/lint-plugin-meta-B3N1DKgL.js">
187
- <link rel="modulepreload" crossorigin href="./assets/panel-Cyobla0Z.js">
188
- <link rel="modulepreload" crossorigin href="./assets/skeleton-HLkcMp95.js">
189
- <link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-BP7d86JP.js">
187
+ <link rel="modulepreload" crossorigin href="./assets/lint-plugin-meta-J-wb-uxW.js">
188
+ <link rel="modulepreload" crossorigin href="./assets/panel-C8ZhM4q-.js">
189
+ <link rel="modulepreload" crossorigin href="./assets/skeleton-BG12Hmzn.js">
190
+ <link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-YikvFcgi.js">
190
191
  <link rel="modulepreload" crossorigin href="./assets/ConfigSharingInfoTooltip-DMbsfWD9.js">
191
192
  <link rel="modulepreload" crossorigin href="./assets/project-paths-Dwo4Of8C.js">
192
- <link rel="modulepreload" crossorigin href="./assets/follow-file-DBnmqlyk.js">
193
- <link rel="modulepreload" crossorigin href="./assets/file-tree-adapter-Dw7Dgyj1.js">
194
- <link rel="modulepreload" crossorigin href="./assets/agent-diff-store-Bi0IQPgd.js">
195
- <link rel="modulepreload" crossorigin href="./assets/target-navigation-intent-ClG4AlV8.js">
196
- <link rel="modulepreload" crossorigin href="./assets/use-live-xterm-theme-C-fHLeXw.js">
197
- <link rel="modulepreload" crossorigin href="./assets/use-installed-clis-B_nDAq7A.js">
198
- <link rel="modulepreload" crossorigin href="./assets/terminal-telemetry-DxTZB2oZ.js">
199
- <link rel="modulepreload" crossorigin href="./assets/agent-presence-CTJkQnoU.js">
200
- <link rel="modulepreload" crossorigin href="./assets/mcp-consent-store-Xk9UA_MB.js">
201
- <link rel="modulepreload" crossorigin href="./assets/receive-store-CL0RH8Oa.js">
193
+ <link rel="modulepreload" crossorigin href="./assets/follow-file-BghdVu5J.js">
194
+ <link rel="modulepreload" crossorigin href="./assets/file-tree-adapter-CZ6DDAA4.js">
195
+ <link rel="modulepreload" crossorigin href="./assets/agent-diff-store-C047fGBn.js">
196
+ <link rel="modulepreload" crossorigin href="./assets/target-navigation-intent-BtjSk9Ck.js">
197
+ <link rel="modulepreload" crossorigin href="./assets/use-live-xterm-theme-B8pvprD8.js">
198
+ <link rel="modulepreload" crossorigin href="./assets/use-installed-clis-UlK7P1aH.js">
199
+ <link rel="modulepreload" crossorigin href="./assets/terminal-telemetry-CSLY2tMg.js">
200
+ <link rel="modulepreload" crossorigin href="./assets/agent-presence-CEfNcJUY.js">
201
+ <link rel="modulepreload" crossorigin href="./assets/mcp-consent-store-wvrClpLC.js">
202
+ <link rel="modulepreload" crossorigin href="./assets/overlay-layers-y-dNUWSd.js">
203
+ <link rel="modulepreload" crossorigin href="./assets/receive-store-CLSRRsUo.js">
202
204
  <link rel="modulepreload" crossorigin href="./assets/worktree-store-LSx9q9Ga.js">
203
- <link rel="stylesheet" crossorigin href="./assets/globals-GYHxaktb.css">
205
+ <link rel="stylesheet" crossorigin href="./assets/globals-88oPHAs4.css">
204
206
  <link rel="stylesheet" crossorigin href="./assets/DocumentContext-B0sQn39F.css">
205
207
  <link rel="stylesheet" crossorigin href="./assets/index-CDpJ2gXn.css">
206
208
  </head>
@@ -32,18 +32,18 @@
32
32
  script above.
33
33
  -->
34
34
  <style>html { background-color: #fafafa } html.dark { background-color: #171717 }</style>
35
- <script type="module" crossorigin src="./assets/uninstall-DHjtqCbn.js"></script>
35
+ <script type="module" crossorigin src="./assets/uninstall-CVwJS9oE.js"></script>
36
36
  <link rel="modulepreload" crossorigin href="./assets/chunk-CYidjpOJ.js">
37
37
  <link rel="modulepreload" crossorigin href="./assets/dist-q14fBS3T.js">
38
38
  <link rel="modulepreload" crossorigin href="./assets/react-f2sANaYj.js">
39
39
  <link rel="modulepreload" crossorigin href="./assets/react-dom-DPxgxlDT.js">
40
- <link rel="modulepreload" crossorigin href="./assets/globals-CXEWtNVL.js">
40
+ <link rel="modulepreload" crossorigin href="./assets/globals-BzYms-F0.js">
41
41
  <link rel="modulepreload" crossorigin href="./assets/preload-helper-Chd9yIcd.js">
42
42
  <link rel="modulepreload" crossorigin href="./assets/trace-api-DHyWZzIa.js">
43
43
  <link rel="modulepreload" crossorigin href="./assets/lib-Iu39CNZE.js">
44
44
  <link rel="modulepreload" crossorigin href="./assets/markdownit-YwcN3EvW.js">
45
45
  <link rel="modulepreload" crossorigin href="./assets/w3c-keyname-DtWCia6R.js">
46
- <link rel="modulepreload" crossorigin href="./assets/dist-Cal4LUep.js">
46
+ <link rel="modulepreload" crossorigin href="./assets/dist-D5TEqH45.js">
47
47
  <link rel="modulepreload" crossorigin href="./assets/jsx-runtime-BUgB2tll.js">
48
48
  <link rel="modulepreload" crossorigin href="./assets/dist-Nvb76hAm.js">
49
49
  <link rel="modulepreload" crossorigin href="./assets/bundle-mjs-SHeFpKGC.js">
@@ -63,8 +63,8 @@
63
63
  <link rel="modulepreload" crossorigin href="./assets/loader-circle-Cg5SU7AZ.js">
64
64
  <link rel="modulepreload" crossorigin href="./assets/badge-Dba4cvJR.js">
65
65
  <link rel="modulepreload" crossorigin href="./assets/input-D0ZW0Opq.js">
66
- <link rel="modulepreload" crossorigin href="./assets/textarea-RSYJwPz9.js">
67
- <link rel="stylesheet" crossorigin href="./assets/globals-GYHxaktb.css">
66
+ <link rel="modulepreload" crossorigin href="./assets/textarea-tdCJViKf.js">
67
+ <link rel="stylesheet" crossorigin href="./assets/globals-88oPHAs4.css">
68
68
  </head>
69
69
 
70
70
  <body class="antialiased">
@@ -1,2 +1,2 @@
1
- import{t as e}from"./launch-json-removal-CTJjliTF.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}}function r(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{n as repairLaunchJson};
2
- //# sourceMappingURL=repair-launch-json-CyiLC6sz.mjs.map
1
+ import{t as e}from"./launch-json-removal-DpMakhDe.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}}function r(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{n as repairLaunchJson};
2
+ //# sourceMappingURL=repair-launch-json-yRaU75sa.mjs.map
@@ -1,2 +1,2 @@
1
- import{d as e,l as t,v as n}from"./write-project-skill-B_HecSEZ.mjs";import{d as r,v as i}from"./init-D7cD6zok.mjs";import{t as a}from"./mcp-migrate-event-CWx0WLdE.mjs";import{homedir as o}from"node:os";function s(n){let r=n.logger??u,i=n.home??o(),a=[];if(n.reclaimDisableEnv===`1`)return r({event:`mcp-config-repair-skipped`,reason:`reclaim-disabled`}),{outcomes:a,repairedCount:0};for(let o of t){let t=e[o],s=c(()=>t.configPath(``,i));if(s!==null&&a.push(l({scope:`user`,editorId:o,target:t,home:i,cwd:``,configPath:s,configPathOverride:void 0,logger:r})),t.projectConfigPath){let e=t.projectConfigPath,i=c(()=>e(n.projectDir));i!==null&&a.push(l({scope:`project`,editorId:o,target:t,home:void 0,cwd:n.projectDir,configPath:i,configPathOverride:i,logger:r}))}}return{outcomes:a,repairedCount:a.filter(e=>e.outcome===`repaired`).length}}function c(e){try{return e()}catch{return null}}function l(e){let t={scope:e.scope,editorId:e.editorId,configPath:e.configPath},o=r(e.target,e.cwd,e.home,e.configPathOverride);if(o===null)return{...t,outcome:`no-entry`};if(n(o))return{...t,outcome:`canonical`};e.logger(a({scope:e.scope,surface:`cli-repair`,editorId:e.editorId,configPath:e.configPath,priorEntry:o}));let s=i(e.target,e.cwd,{mode:`published`,skipAvailabilityCheck:!0},e.home,e.configPathOverride);if(s.action===`failed`){let n=s.error??`unknown write failure`;return e.logger({event:`mcp-config-repair-write-failed`,scope:e.scope,editorId:e.editorId,configPath:e.configPath,error:n}),{...t,outcome:`write-failed`,error:n}}return s.action===`declined`?(e.logger({event:`mcp-config-repair-declined`,scope:e.scope,editorId:e.editorId,configPath:e.configPath,reason:s.declineReason}),{...t,outcome:`declined`}):{...t,outcome:`repaired`}}function u(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{s as repairMcpConfigs};
2
- //# sourceMappingURL=repair-mcp-configs-MZhuDeWK.mjs.map
1
+ import{d as e,l as t,v as n}from"./write-project-skill-2xPw07AZ.mjs";import{d as r,v as i}from"./init-CCnKaiOs.mjs";import{t as a}from"./mcp-migrate-event-CWx0WLdE.mjs";import{homedir as o}from"node:os";function s(n){let r=n.logger??u,i=n.home??o(),a=[];if(n.reclaimDisableEnv===`1`)return r({event:`mcp-config-repair-skipped`,reason:`reclaim-disabled`}),{outcomes:a,repairedCount:0};for(let o of t){let t=e[o],s=c(()=>t.configPath(``,i));if(s!==null&&a.push(l({scope:`user`,editorId:o,target:t,home:i,cwd:``,configPath:s,configPathOverride:void 0,logger:r})),t.projectConfigPath){let e=t.projectConfigPath,i=c(()=>e(n.projectDir));i!==null&&a.push(l({scope:`project`,editorId:o,target:t,home:void 0,cwd:n.projectDir,configPath:i,configPathOverride:i,logger:r}))}}return{outcomes:a,repairedCount:a.filter(e=>e.outcome===`repaired`).length}}function c(e){try{return e()}catch{return null}}function l(e){let t={scope:e.scope,editorId:e.editorId,configPath:e.configPath},o=r(e.target,e.cwd,e.home,e.configPathOverride);if(o===null)return{...t,outcome:`no-entry`};if(n(o))return{...t,outcome:`canonical`};e.logger(a({scope:e.scope,surface:`cli-repair`,editorId:e.editorId,configPath:e.configPath,priorEntry:o}));let s=i(e.target,e.cwd,{mode:`published`,skipAvailabilityCheck:!0},e.home,e.configPathOverride);if(s.action===`failed`){let n=s.error??`unknown write failure`;return e.logger({event:`mcp-config-repair-write-failed`,scope:e.scope,editorId:e.editorId,configPath:e.configPath,error:n}),{...t,outcome:`write-failed`,error:n}}return s.action===`declined`?(e.logger({event:`mcp-config-repair-declined`,scope:e.scope,editorId:e.editorId,configPath:e.configPath,reason:s.declineReason}),{...t,outcome:`declined`}):{...t,outcome:`repaired`}}function u(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{s as repairMcpConfigs};
2
+ //# sourceMappingURL=repair-mcp-configs-Dhz6Ht8f.mjs.map
@@ -0,0 +1 @@
1
+ import{t as e}from"./repair-skills-hJ4Ol2SE.mjs";export{e as repairSkills};
@@ -1,4 +1,4 @@
1
- import{C as e}from"./src-DtcKZLt0.mjs";import{Ar as t,Er as n,Fr as r,Or as i,Pr as a,Tr as o,br as s,wr as c,xr as l}from"./src-mOlBaMpr.mjs";import{C as u,a as d,d as f,f as p,o as m,s as h,t as g}from"./write-project-skill-B_HecSEZ.mjs";import{n as _,s as v,t as y}from"./colors-BsmVIwfM.mjs";import{dirname as b,join as x,relative as S,resolve as C}from"node:path";import{existsSync as w,mkdirSync as T,readFileSync as E,readdirSync as D,rmSync as O,statSync as k,writeFileSync as A}from"node:fs";import{homedir as j}from"node:os";import{createInterface as M}from"node:readline/promises";const N={existsSync:e=>w(e),isDirectory:e=>{try{return k(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>D(e),readFileSync:e=>E(e),writeFileSync:(e,t)=>{A(e,t)},mkdirSync:(e,t)=>{T(e,t)},rmSync:(e,t)=>{O(e,t)}},P={resolveProjectBundledSkillDir:()=>t(`project`,{checkDesktop:!1}),resolveUserBundledSkillDir:e=>t(e,{checkDesktop:!1}),readBundledVersion:()=>l(),readRecordedVersion:e=>c(e,`cli-hosts`),writeRecordedVersion:(e,t)=>n(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>i(e),readBundleDecision:(e,t)=>s(e,t),writeBundleDecision:(e,t,n)=>o(e,t,n),removeBundleFromDisk:(e,t)=>h(e,t)};function F(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function I(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(b(t),{recursive:!0}),L(e,t,n)}function L(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=x(e,r),a=x(t,r);n.isDirectory(i)?L(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function R(e,t,n,r,i,a){let o=[],s=x(e,`.agents`,`skills`,t),c=r.existsSync(s),l=!1;try{I(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=x(e,c.hostDir),u=x(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{I(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 z(e,t){if(!e)return!1;try{return t.existsSync(e)?t.readFileSync(e).toString(`utf8`).includes(`# ok-mcp-`):!1}catch{return!1}}function B(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=x(e,t.hostDir,`skills`,`open-knowledge`),s=x(o,`SKILL.md`),c=n.existsSync(s),l=f[t.editorId]?.projectConfigPath?.(e),u=!c&&z(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{g(o,e),I(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 V(t,n,i,o){let s=e=>{n.recordEvent(e).catch(()=>{})},c=()=>new Date().toISOString(),l;try{l=await n.readBundledVersion()}catch(e){let t=e instanceof Error?e.message:String(e);return o({event:`user-skill-reclaim-version-read-failed`,scope:`user`,error:t}),s({ts:c(),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){o({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 r)try{d.push({id:e,sourceDir:n.resolveUserBundledSkillDir(e)})}catch(e){f=e instanceof Error?e.message:String(e)}if(d.length===0)return o({event:`user-skill-reclaim-bundle-missing`,scope:`user`,error:f??`no user-global bundles`}),s({ts:c(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,reason:`bundle-missing:${f}`}),{outcome:`skipped`,reason:`bundle-missing`};let p=[];for(let r of d){let s=a[r.id],c=i.existsSync(x(t,`.agents`,`skills`,s)),l=await n.readBundleDecision(t,s).catch(()=>null);if(!e(l,{installedOnDisk:c})){if(c)try{n.removeBundleFromDisk(t,r.id),o({event:`user-skill-reclaim-bundle-declined-removed`,scope:`user`,bundle:r.id})}catch(e){o({event:`user-skill-reclaim-bundle-remove-failed`,scope:`user`,bundle:r.id,error:e instanceof Error?e.message:String(e)})}continue}if(l===null&&c)try{await n.writeBundleDecision(t,s,!0)}catch(e){o({event:`user-skill-reclaim-grandfather-write-failed`,scope:`user`,bundle:r.id,error:e instanceof Error?e.message:String(e)})}p.push(r)}if(p.length===0)return{outcome:`skipped`,reason:`all-bundles-declined`};let m=p.every(e=>i.existsSync(x(t,`.agents`,`skills`,a[e.id])));if(u!==null&&u===l&&m)return o({event:`user-skill-reclaim-skipped-version-current`,scope:`user`,version:l}),{outcome:`skipped`,reason:`version-current`};let h=[],g=d.length===r.length,_=!0;for(let{id:e,sourceDir:n}of p){let r=R(t,a[e],n,i,o,l);h.push(...r.entries),r.centralWritten||(_=!1)}let v=h.some(e=>e.kind===`central`&&(e.outcome===`written`||e.outcome===`overwritten`));if(g&&_&&v){let e=null;try{await n.writeRecordedVersion(t,l),o({event:`user-skill-reclaim-version-recorded`,scope:`user`,version:l})}catch(t){e=t instanceof Error?t.message:String(t),o({event:`user-skill-reclaim-version-record-failed`,scope:`user`,version:l,error:e})}for(let{id:t}of p)s({ts:c(),surface:`cli-start`,target:`cli-hosts`,bundle:t,outcome:e===null?`installed`:`failed`,version:l,...e===null?{}:{reason:`state-write-failed:${e}`}})}else{let e=h.some(e=>e.kind===`host`&&e.outcome===`failed`);s({ts:c(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,version:l,reason:e?`all-writes-failed`:`no-hosts-installed`})}return{outcome:`done`,version:l,entries:h}}async function H(e){let t=e.logger??F,n=e.fs??N,r=e.home??j(),i={...P,...e.deps};if(e.reclaimDisableEnv===`1`)return t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`};let a=B(e.projectDir,i,n,t),o=await V(r,i,n,t),s=m(r),c=[],l=!1,u=!1;if(s.skillDirs.length>0||s.emptyDirs.length>0)if(e.confirmLegacyCleanup&&await e.confirmLegacyCleanup(s)){try{c=d(r,s)}catch(e){u=!0,t({event:`legacy-fanout-cleanup-refused`,scope:`user`,error:e instanceof Error?e.message:String(e)})}for(let e of c)t({event:`legacy-fanout-path-removed`,scope:`user`,path:e})}else l=!0,t({event:`legacy-fanout-cleanup-declined`,scope:`user`});return{status:`done`,project:a,user:o,legacySwept:c,legacyCleanupDeclined:l,legacyCleanupFailed:u}}function U(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 W(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 e.legacySwept.length>0?t.push(` Cleanup: removed ${e.legacySwept.length} path(s) from a pre-0.42 install.`):e.legacyCleanupFailed?t.push(` Cleanup: failed — see logs; pre-0.42 directories left in place.`):e.legacyCleanupDeclined&&t.push(` Cleanup: declined — pre-0.42 directories left in place.`),t.join(`
1
+ import{C as e}from"./src-B5_KtSx0.mjs";import{ar as t,cr as n,er as r,hr as i,ir as a,mr as o,or as s,tr as c,ur as l}from"./src-DZ0ZiS77.mjs";import{C as u,a as d,d as f,f as p,o as m,s as h,t as g}from"./write-project-skill-2xPw07AZ.mjs";import{n as _,s as v,t as y}from"./colors-BsmVIwfM.mjs";import{dirname as b,join as x,relative as S,resolve as C}from"node:path";import{existsSync as w,mkdirSync as T,readFileSync as E,readdirSync as D,rmSync as O,statSync as k,writeFileSync as A}from"node:fs";import{homedir as j}from"node:os";import{createInterface as M}from"node:readline/promises";const N={existsSync:e=>w(e),isDirectory:e=>{try{return k(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>D(e),readFileSync:e=>E(e),writeFileSync:(e,t)=>{A(e,t)},mkdirSync:(e,t)=>{T(e,t)},rmSync:(e,t)=>{O(e,t)}},P={resolveProjectBundledSkillDir:()=>l(`project`,{checkDesktop:!1}),resolveUserBundledSkillDir:e=>l(e,{checkDesktop:!1}),readBundledVersion:()=>c(),readRecordedVersion:e=>a(e,`cli-hosts`),writeRecordedVersion:(e,t)=>s(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>n(e),readBundleDecision:(e,t)=>r(e,t),writeBundleDecision:(e,n,r)=>t(e,n,r),removeBundleFromDisk:(e,t)=>h(e,t)};function F(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function I(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(b(t),{recursive:!0}),L(e,t,n)}function L(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=x(e,r),a=x(t,r);n.isDirectory(i)?L(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function R(e,t,n,r,i,a){let o=[],s=x(e,`.agents`,`skills`,t),c=r.existsSync(s),l=!1;try{I(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=x(e,c.hostDir),u=x(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{I(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 z(e,t){if(!e)return!1;try{return t.existsSync(e)?t.readFileSync(e).toString(`utf8`).includes(`# ok-mcp-`):!1}catch{return!1}}function B(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=x(e,t.hostDir,`skills`,`open-knowledge`),s=x(o,`SKILL.md`),c=n.existsSync(s),l=f[t.editorId]?.projectConfigPath?.(e),u=!c&&z(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{g(o,e),I(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 V(t,n,r,a){let s=e=>{n.recordEvent(e).catch(()=>{})},c=()=>new Date().toISOString(),l;try{l=await n.readBundledVersion()}catch(e){let t=e instanceof Error?e.message:String(e);return a({event:`user-skill-reclaim-version-read-failed`,scope:`user`,error:t}),s({ts:c(),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){a({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 i)try{d.push({id:e,sourceDir:n.resolveUserBundledSkillDir(e)})}catch(e){f=e instanceof Error?e.message:String(e)}if(d.length===0)return a({event:`user-skill-reclaim-bundle-missing`,scope:`user`,error:f??`no user-global bundles`}),s({ts:c(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,reason:`bundle-missing:${f}`}),{outcome:`skipped`,reason:`bundle-missing`};let p=[];for(let i of d){let s=o[i.id],c=r.existsSync(x(t,`.agents`,`skills`,s)),l=await n.readBundleDecision(t,s).catch(()=>null);if(!e(l,{installedOnDisk:c})){if(c)try{n.removeBundleFromDisk(t,i.id),a({event:`user-skill-reclaim-bundle-declined-removed`,scope:`user`,bundle:i.id})}catch(e){a({event:`user-skill-reclaim-bundle-remove-failed`,scope:`user`,bundle:i.id,error:e instanceof Error?e.message:String(e)})}continue}if(l===null&&c)try{await n.writeBundleDecision(t,s,!0)}catch(e){a({event:`user-skill-reclaim-grandfather-write-failed`,scope:`user`,bundle:i.id,error:e instanceof Error?e.message:String(e)})}p.push(i)}if(p.length===0)return{outcome:`skipped`,reason:`all-bundles-declined`};let m=p.every(e=>r.existsSync(x(t,`.agents`,`skills`,o[e.id])));if(u!==null&&u===l&&m)return a({event:`user-skill-reclaim-skipped-version-current`,scope:`user`,version:l}),{outcome:`skipped`,reason:`version-current`};let h=[],g=d.length===i.length,_=!0;for(let{id:e,sourceDir:n}of p){let i=R(t,o[e],n,r,a,l);h.push(...i.entries),i.centralWritten||(_=!1)}let v=h.some(e=>e.kind===`central`&&(e.outcome===`written`||e.outcome===`overwritten`));if(g&&_&&v){let e=null;try{await n.writeRecordedVersion(t,l),a({event:`user-skill-reclaim-version-recorded`,scope:`user`,version:l})}catch(t){e=t instanceof Error?t.message:String(t),a({event:`user-skill-reclaim-version-record-failed`,scope:`user`,version:l,error:e})}for(let{id:t}of p)s({ts:c(),surface:`cli-start`,target:`cli-hosts`,bundle:t,outcome:e===null?`installed`:`failed`,version:l,...e===null?{}:{reason:`state-write-failed:${e}`}})}else{let e=h.some(e=>e.kind===`host`&&e.outcome===`failed`);s({ts:c(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,version:l,reason:e?`all-writes-failed`:`no-hosts-installed`})}return{outcome:`done`,version:l,entries:h}}async function H(e){let t=e.logger??F,n=e.fs??N,r=e.home??j(),i={...P,...e.deps};if(e.reclaimDisableEnv===`1`)return t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`};let a=B(e.projectDir,i,n,t),o=await V(r,i,n,t),s=m(r),c=[],l=!1,u=!1;if(s.skillDirs.length>0||s.emptyDirs.length>0)if(e.confirmLegacyCleanup&&await e.confirmLegacyCleanup(s)){try{c=d(r,s)}catch(e){u=!0,t({event:`legacy-fanout-cleanup-refused`,scope:`user`,error:e instanceof Error?e.message:String(e)})}for(let e of c)t({event:`legacy-fanout-path-removed`,scope:`user`,path:e})}else l=!0,t({event:`legacy-fanout-cleanup-declined`,scope:`user`});return{status:`done`,project:a,user:o,legacySwept:c,legacyCleanupDeclined:l,legacyCleanupFailed:u}}function U(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 W(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 e.legacySwept.length>0?t.push(` Cleanup: removed ${e.legacySwept.length} path(s) from a pre-0.42 install.`):e.legacyCleanupFailed?t.push(` Cleanup: failed — see logs; pre-0.42 directories left in place.`):e.legacyCleanupDeclined&&t.push(` Cleanup: declined — pre-0.42 directories left in place.`),t.join(`
2
2
  `)}function G(){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.").option(`-y, --yes`,`Skip the confirmation prompt for removing directories left by a pre-0.42 install.`).action(async e=>{let t=await H({projectDir:C(process.cwd()),reclaimDisableEnv:process.env.OK_RECLAIM_DISABLE??null,confirmLegacyCleanup:t=>K(t,{yes:e.yes===!0})});process.stdout.write(`${W(t)}\n`),process.exitCode=U(t)})}async function K(e,t){let n=j(),r=e=>`~/${S(n,e)}`,i=t.input??process.stdin,a=[``,y(`A previous version of OpenKnowledge installed its skill into agent tools you may never have used.`),_(`(Versions before 0.42 wrote to every host a third-party installer knew about — see issue #820.)`)];if(e.skillDirs.length>0&&a.push(``,`${y(`Remove OpenKnowledge skills:`)} ${e.skillDirs.length}`,...e.skillDirs.map(e=>` ${r(e)}`)),e.emptyDirs.length>0){let t=e.skillDirs.length>0?`Then remove these, which hold nothing else once the above are gone:`:`Remove these empty directories, left behind by that install:`;a.push(``,`${y(t)} ${e.emptyDirs.length}`,...e.emptyDirs.map(e=>` ${r(e)}`))}if(a.push(``,_(`Nothing outside these paths is touched. A directory that still holds anything is kept.`)),process.stdout.write(`${a.join(`
3
3
  `)}\n`),t.yes)return!0;if(!i.isTTY)return process.stdout.write(`${v("Not a terminal — skipping cleanup. Re-run with `ok repair-skills --yes` to remove these.")}\n`),!1;let o=M({input:i,output:process.stdout});try{let e=(await o.question(`\n${y(`Remove them?`)} ${_(`[y/N] `)}`)).trim().toLowerCase();return e===`y`||e===`yes`}finally{o.close()}}export{G as n,H as t};
4
- //# sourceMappingURL=repair-skills-CBmnNSO7.mjs.map
4
+ //# sourceMappingURL=repair-skills-hJ4Ol2SE.mjs.map