@inkeep/open-knowledge 0.54.0-beta.4 → 0.54.0-beta.5

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 (202) hide show
  1. package/dist/{acp-harness-probe-goll8rs6.mjs → acp-harness-probe-BCOlBAWH.mjs} +2 -2
  2. package/dist/cli.mjs +61 -61
  3. package/dist/constants-sbERnR0e.mjs +2 -0
  4. package/dist/git-handle-Bhi37DC5.mjs +1 -0
  5. package/dist/{git-handle-VkMM709H.mjs → git-handle-rOWtim7I.mjs} +2 -2
  6. package/dist/index.mjs +206 -206
  7. package/dist/init-DSbeDx7w.mjs +1 -0
  8. package/dist/{init-1LhcFmkO.mjs → init-DXf3dcgC.mjs} +23 -23
  9. package/dist/{launch-json-removal-p3Z7fS0T.mjs → launch-json-removal-C2j5vIYF.mjs} +2 -2
  10. package/dist/loader-CCz4CmE8.mjs +1 -0
  11. package/dist/{loader-B1dOaZUl.mjs → loader-CRCSIiyo.mjs} +2 -2
  12. package/dist/md-manager-CFxg-xpz.mjs +2 -0
  13. package/dist/{open-browser-aO-bvl8i.mjs → open-browser-Z_iLYd6k.mjs} +2 -2
  14. package/dist/parse-worker.mjs +1 -1
  15. package/dist/preview-DXzv4gA0.mjs +1 -0
  16. package/dist/{preview-4y9fFXuz.mjs → preview-MWPJVd2e.mjs} +2 -2
  17. package/dist/public/assets/{ActivityModeContent-DZkplL0F.js → ActivityModeContent-CyPQUkSG.js} +1 -1
  18. package/dist/public/assets/{AgentDiffPane-Bcz43Lfp.js → AgentDiffPane-CaBWiwwZ.js} +1 -1
  19. package/dist/public/assets/{AgentThreadClientBinder-DmTKBcdn.js → AgentThreadClientBinder-CG2b5VCC.js} +1 -1
  20. package/dist/public/assets/{BugReportHistory-B8cA4YSy.js → BugReportHistory-DuFz31j1.js} +1 -1
  21. package/dist/public/assets/{BugReportHistoryDialog-By9HjIWI.js → BugReportHistoryDialog-Cc7Edg4R.js} +1 -1
  22. package/dist/public/assets/{ChangedOutsideBadge-nkvFjEbv.js → ChangedOutsideBadge-DFge_7HG.js} +1 -1
  23. package/dist/public/assets/{CodeMirrorPropInput-BcWeEej4.js → CodeMirrorPropInput-Co1ATmkY.js} +3 -3
  24. package/dist/public/assets/{ConfigSharingInfoTooltip-PyuM3MSL.js → ConfigSharingInfoTooltip-D-WJuzEA.js} +1 -1
  25. package/dist/public/assets/{ConsentDialogBody-CcEUkzY7.js → ConsentDialogBody-DGovwv5w.js} +1 -1
  26. package/dist/public/assets/{DiffView-UblppyKd.js → DiffView-SBlKwzTo.js} +1 -1
  27. package/dist/public/assets/{DocumentContext-DRQjwAk8.js → DocumentContext-DiLKOxrG.js} +1 -1
  28. package/dist/public/assets/{EditorModeToggle-BAilPj4p.js → EditorModeToggle-DwxL589w.js} +1 -1
  29. package/dist/public/assets/{EnableSyncConfirmDialog-pt0Q14Bj.js → EnableSyncConfirmDialog-CTlqDQ-t.js} +1 -1
  30. package/dist/public/assets/FeedbackForm-RrB0tnZB.js +1 -0
  31. package/dist/public/assets/GraphPanel-VR9VuXcj.js +44 -0
  32. package/dist/public/assets/{ImportSkillDialog-BsopcQIb.js → ImportSkillDialog-iEHBNa53.js} +1 -1
  33. package/dist/public/assets/{LintConfigEditor-Cwvw8jiT.js → LintConfigEditor-Bc2Hjcq_.js} +1 -1
  34. package/dist/public/assets/ManagedArtifactProperties-5NeHnKky.js +1 -0
  35. package/dist/public/assets/{ManagedArtifactProperties-J4h9WTET.js → ManagedArtifactProperties-BoFhXjHM.js} +1 -1
  36. package/dist/public/assets/{McpConsentDialogBody-DqNF1H2Y.js → McpConsentDialogBody-DOdCI68o.js} +1 -1
  37. package/dist/public/assets/{Mermaid-k_TkbCC5.js → Mermaid-ukCAxO5k.js} +1 -1
  38. package/dist/public/assets/{MermaidDocEditor-BuDKh5PR.js → MermaidDocEditor-CbNiJqcL.js} +1 -1
  39. package/dist/public/assets/{PropertyDisplayRow-Dsi8oXsX.js → PropertyDisplayRow-CeA9XOKE.js} +1 -1
  40. package/dist/public/assets/{RegisteredAgentIcon-Df-5nwMc.js → RegisteredAgentIcon-CP1iDML-.js} +1 -1
  41. package/dist/public/assets/{ReportBugDialogBody-B-OwIuer.js → ReportBugDialogBody-Djk7n9lR.js} +1 -1
  42. package/dist/public/assets/{SchemaConfigEditor-CSni9krI.js → SchemaConfigEditor-DW62SaoV.js} +1 -1
  43. package/dist/public/assets/{SessionsHost-CN8Gr-lE.js → SessionsHost-DATpsDjT.js} +2 -2
  44. package/dist/public/assets/{SettingsDialogBody-D7DTpysk.js → SettingsDialogBody-Bueode84.js} +1 -1
  45. package/dist/public/assets/{ShareBranchSwitchDialog-BSy9MKqq.js → ShareBranchSwitchDialog-nBazAtNU.js} +1 -1
  46. package/dist/public/assets/{ShareReceiveDialog-DzDBs_cQ.js → ShareReceiveDialog-CYUaconU.js} +1 -1
  47. package/dist/public/assets/{ShareReceiveMissDialog-B3mTbHjN.js → ShareReceiveMissDialog-BdTda1es.js} +1 -1
  48. package/dist/public/assets/{SkillEditBanner-BSUogItW.js → SkillEditBanner-C3z3p9Yk.js} +1 -1
  49. package/dist/public/assets/{SkillOriginInline-BIHw_CwG.js → SkillOriginInline-DiC6nYwA.js} +1 -1
  50. package/dist/public/assets/{SkillToolbarControls-BX3ULUFJ.js → SkillToolbarControls-C6EJTKZP.js} +1 -1
  51. package/dist/public/assets/{SlidesToolbarControls-BvaGl1WK.js → SlidesToolbarControls-DBUg7THF.js} +1 -1
  52. package/dist/public/assets/{SourceEditor-BadmhUO3.js → SourceEditor-BesJplxX.js} +1 -1
  53. package/dist/public/assets/{TerminalPanel-Cq-7OViL.js → TerminalPanel-oZHZafqG.js} +1 -1
  54. package/dist/public/assets/{TerminalWindowApp-B__Z2sX9.js → TerminalWindowApp-BDd3v9Lj.js} +1 -1
  55. package/dist/public/assets/{TextDocEditor-B9uZfeAm.js → TextDocEditor-DSyRNDEF.js} +1 -1
  56. package/dist/public/assets/{ThreadView-BFNqMhMO.js → ThreadView-BHLhKoXn.js} +1 -1
  57. package/dist/public/assets/{TimelineDiffPane-CwNmKTlr.js → TimelineDiffPane-DnieQKUQ.js} +1 -1
  58. package/dist/public/assets/{agent-diff-store-Dd_PygYQ.js → agent-diff-store-kLss-Lir.js} +1 -1
  59. package/dist/public/assets/{auth-state-cache-BScBukJw.js → auth-state-cache-DOfpLZU2.js} +1 -1
  60. package/dist/public/assets/{checkbox-DrzOiX31.js → checkbox-hfBCQ901.js} +1 -1
  61. package/dist/public/assets/{client-version-BghIjrC7.js → client-version-DJbFgVXJ.js} +1 -1
  62. package/dist/public/assets/{cm-theme-DABB1ZYg.js → cm-theme-Dn2dmDeX.js} +1 -1
  63. package/dist/public/assets/{comment-chips-BC9801yt.js → comment-chips-DuKZq4y4.js} +1 -1
  64. package/dist/public/assets/{config-provider-I3CKVNwm.js → config-provider-CqoRLVmz.js} +3 -3
  65. package/dist/public/assets/{dialog-BEzJgVLl.js → dialog-HdfR4WGm.js} +1 -1
  66. package/dist/public/assets/{dist-DZeKfr2D.js → dist--WnO2sB5.js} +1 -1
  67. package/dist/public/assets/{dist-C2q7iJ0S.js → dist-BSvfI8ZZ.js} +1 -1
  68. package/dist/public/assets/{dist-CXh6YF5N.js → dist-BnhQCLzV.js} +1 -1
  69. package/dist/public/assets/{dist-Dw4tYVWb.js → dist-BqaY2U46.js} +1 -1
  70. package/dist/public/assets/{dist-C4aw4jb-.js → dist-BxlS_DPI.js} +1 -1
  71. package/dist/public/assets/{dist-Dbif8qVU.js → dist-C771h__g.js} +47 -47
  72. package/dist/public/assets/{dist-BS7oLtu4.js → dist-C7Jl9EE4.js} +1 -1
  73. package/dist/public/assets/{dist-Bw8GUXfu.js → dist-CFOQHKzD.js} +1 -1
  74. package/dist/public/assets/{dist-Cyqnhs6C.js → dist-CWKs7Oul.js} +1 -1
  75. package/dist/public/assets/{dist-59MFMSex.js → dist-CYIfcXeV.js} +1 -1
  76. package/dist/public/assets/{dist-eF6JWWXy.js → dist-CmY53eJ2.js} +1 -1
  77. package/dist/public/assets/{dist-TAEqsAE2.js → dist-DOzmQFuG.js} +1 -1
  78. package/dist/public/assets/{dist-BpgwQrZq.js → dist-DSNMZ2oD.js} +1 -1
  79. package/dist/public/assets/{doc-paths-FbLt7pOZ.js → doc-paths-D4mBEiVg.js} +1 -1
  80. package/dist/public/assets/{documents-events-BRM_PHTg.js → documents-events-Bb6poN70.js} +1 -1
  81. package/dist/public/assets/{file-tree-adapter-Cy-pKDMw.js → file-tree-adapter-BPyupSyB.js} +1 -1
  82. package/dist/public/assets/{file-tree-utils-B_Z245JQ.js → file-tree-utils-DH9xQnZk.js} +1 -1
  83. package/dist/public/assets/{folder-config-api-smq9rJ6i.js → folder-config-api-CwUBSjSc.js} +1 -1
  84. package/dist/public/assets/{follow-file-Ceau8yTp.js → follow-file-DsvWV_tV.js} +1 -1
  85. package/dist/public/assets/i18n-C7EyVFIh.js +1 -0
  86. package/dist/public/assets/index-CFR5dooW.js +2095 -0
  87. package/dist/public/assets/{input-group-CQuwDjWz.js → input-group-CtGtXCSV.js} +1 -1
  88. package/dist/public/assets/{lint-config-client-Cfk9MVlR.js → lint-config-client-DH1UzRoS.js} +1 -1
  89. package/dist/public/assets/{markdownlint-rule-browser-D8FSAnGB.js → markdownlint-rule-browser-OpruPEWo.js} +1 -1
  90. package/dist/public/assets/{messages-CMG9Lj05.js → messages-BJGa1ZJY.js} +1 -1
  91. package/dist/public/assets/{messages-BMoQDQc_.js → messages-CESQ4-PH.js} +1 -1
  92. package/dist/public/assets/{messages-CVNsZx40.js → messages-Cv1hylEq.js} +1 -1
  93. package/dist/public/assets/{messages-lvE5PH7B.js → messages-DChvcxeU.js} +1 -1
  94. package/dist/public/assets/{messages-uA4Li3MA.js → messages-DQ0CTh4S.js} +1 -1
  95. package/dist/public/assets/{messages-CJ8LdbwC.js → messages-Dbyhdvx8.js} +1 -1
  96. package/dist/public/assets/{messages-DmP-SA82.js → messages-DdNXqJNT.js} +1 -1
  97. package/dist/public/assets/{messages-56Q4EEHo.js → messages-DsOf1FF4.js} +1 -1
  98. package/dist/public/assets/{messages-BdAdI0Xb.js → messages-Dtd8mpVI.js} +1 -1
  99. package/dist/public/assets/{messages-Y1-25067.js → messages-DygG1SLe.js} +1 -1
  100. package/dist/public/assets/{messages-Cqyp-KWD.js → messages-FYlHk604.js} +1 -1
  101. package/dist/public/assets/{navigation-targets-CNLECuIl.js → navigation-targets-2ieFyUYm.js} +1 -1
  102. package/dist/public/assets/{open-managed-artifact-tab-D536006g.js → open-managed-artifact-tab-yTCCkm3Q.js} +1 -1
  103. package/dist/public/assets/{pending-receive-nav-store-BcwD3th3.js → pending-receive-nav-store-CQdmUN-y.js} +1 -1
  104. package/dist/public/assets/{project-paths-Bh4QrZyu.js → project-paths-BfXMrXgO.js} +1 -1
  105. package/dist/public/assets/{prop-types-DueJGg_I.js → prop-types-B-pqwsrL.js} +1 -1
  106. package/dist/public/assets/{receive-store-WrYYFeA_.js → receive-store-ChL8kr-a.js} +1 -1
  107. package/dist/public/assets/{selection-context-D5lGdlc2.js → selection-context-xv0h7ukK.js} +1 -1
  108. package/dist/public/assets/{skill-actions-DDGb7EPU.js → skill-actions-BaxLLVx5.js} +1 -1
  109. package/dist/public/assets/{skill-scope-DzFDJFzg.js → skill-scope-AohZTtzS.js} +1 -1
  110. package/dist/public/assets/{skills-api-CJ5rrxN4.js → skills-api-4MJqui79.js} +1 -1
  111. package/dist/public/assets/{src-RqxOR-b5.js → src-B57VCv_p.js} +1 -1
  112. package/dist/public/assets/{tag-pill-input-D1kRyBfY.js → tag-pill-input-D_yK4ylS.js} +1 -1
  113. package/dist/public/assets/target-navigation-intent-BBuo58_u.js +1 -0
  114. package/dist/public/assets/{telemetry-startup-bOgIvzTl.js → telemetry-startup-Bv621CCj.js} +1 -1
  115. package/dist/public/assets/{terminal-cli-display-LGEYWj1E.js → terminal-cli-display-dcNRer7W.js} +1 -1
  116. package/dist/public/assets/{terminal-launch-events-Blwr-MuG.js → terminal-launch-events-BUwTzoNp.js} +1 -1
  117. package/dist/public/assets/{terminal-telemetry-gJL2W2M1.js → terminal-telemetry-HPyrnMe8.js} +1 -1
  118. package/dist/public/assets/{text-viewer-languages-D5qXizja.js → text-viewer-languages-T1NeWFZw.js} +2 -2
  119. package/dist/public/assets/{typing-burst-detector-BxKZWXyS.js → typing-burst-detector-DunfaZK_.js} +1 -1
  120. package/dist/public/assets/{uninstall-Bzym8ebu.js → uninstall-DuCZC0T6.js} +1 -1
  121. package/dist/public/assets/{use-activity-panel-BXGARyuX.js → use-activity-panel-BIFDhH5M.js} +1 -1
  122. package/dist/public/assets/{use-apply-config-color-theme-D6NhEZ3g.js → use-apply-config-color-theme-loDqT2Gp.js} +1 -1
  123. package/dist/public/assets/{use-collab-url-zzFnAVdf.js → use-collab-url-nd8SD60O.js} +1 -1
  124. package/dist/public/assets/{use-live-xterm-theme-CVnTG8rN.js → use-live-xterm-theme-4zXc2kDX.js} +1 -1
  125. package/dist/public/assets/{use-open-skill-BtOIk7cy.js → use-open-skill-DT-amfex.js} +1 -1
  126. package/dist/public/assets/{use-popular-skills-DL84jEVD.js → use-popular-skills-C34vXefg.js} +1 -1
  127. package/dist/public/assets/{use-settings-route-D_aV7jaY.js → use-settings-route-CjP7WLeR.js} +1 -1
  128. package/dist/public/assets/{use-skill-origin-c_TOcUcA.js → use-skill-origin-CvHKrgSa.js} +1 -1
  129. package/dist/public/assets/{use-skills-D62_cIP8.js → use-skills-DC7kl5ac.js} +1 -1
  130. package/dist/public/assets/{use-terminal-enabled-DtCFVak9.js → use-terminal-enabled-DrQnoA4t.js} +1 -1
  131. package/dist/public/assets/{use-timeline-entry-diff-CNjr3sGx.js → use-timeline-entry-diff-CJrnWWmE.js} +1 -1
  132. package/dist/public/assets/{use-workspace-CSyrLeU-.js → use-workspace-DeC16-uw.js} +1 -1
  133. package/dist/public/index.html +96 -96
  134. package/dist/public/uninstall.html +9 -9
  135. package/dist/{repair-launch-json-DtjpuzGD.mjs → repair-launch-json-DbQ8tRRg.mjs} +2 -2
  136. package/dist/{repair-mcp-configs-CpLZa5wm.mjs → repair-mcp-configs-B2bJ84nG.mjs} +2 -2
  137. package/dist/repair-skills-CfUnMV-w.mjs +4 -0
  138. package/dist/repair-skills-Zd1EgRWD.mjs +1 -0
  139. package/dist/server-lock-B_7-s4Ni.mjs +1 -0
  140. package/dist/{server-lock-BcMI7LPa.mjs → server-lock-Df6KzkHc.mjs} +2 -2
  141. package/dist/skill-teardown-D0apn5ZB.mjs +2 -0
  142. package/dist/src-0V35ESCr.mjs +2040 -0
  143. package/dist/{src-DwrBInPi.mjs → src-43mz6z1W.mjs} +1 -1
  144. package/dist/src-BMvWnBzf.mjs +1 -0
  145. package/dist/{src-D4Hs-xbj.mjs → src-DgQEuS4u.mjs} +124 -124
  146. package/dist/{src-DejcZdwi.mjs → src-M20Juao5.mjs} +4 -4
  147. package/dist/start-C-0SoHZT.mjs +12 -0
  148. package/dist/start-CF6VcJlJ.mjs +1 -0
  149. package/dist/{ui-CUazU4-N.mjs → ui-B6sInofo.mjs} +3 -3
  150. package/dist/{write-project-skill-CfZWfJ9i.mjs → write-project-skill-DoB0BMXQ.mjs} +2 -2
  151. package/package.json +5 -5
  152. package/dist/constants-Ca7s9E30.mjs +0 -2
  153. package/dist/git-handle-CJlm8-vo.mjs +0 -1
  154. package/dist/init-6BAlligb.mjs +0 -1
  155. package/dist/loader-D7TDgOWg.mjs +0 -1
  156. package/dist/md-manager-24J-gXbl.mjs +0 -2
  157. package/dist/preview-Czz8RxXF.mjs +0 -1
  158. package/dist/public/assets/FeedbackForm-DSzRwYUY.js +0 -1
  159. package/dist/public/assets/GraphPanel-DJOSWtaU.js +0 -44
  160. package/dist/public/assets/ManagedArtifactProperties-BxqYq-vz.js +0 -1
  161. package/dist/public/assets/i18n-C6bWJ3KG.js +0 -1
  162. package/dist/public/assets/index-7uIH663t.js +0 -2095
  163. package/dist/public/assets/target-navigation-intent-CEKXRok6.js +0 -1
  164. package/dist/repair-skills-50iK_FZu.mjs +0 -1
  165. package/dist/repair-skills-VOh2bl4b.mjs +0 -4
  166. package/dist/server-lock-DKpfiw3g.mjs +0 -1
  167. package/dist/skill-teardown-BgZauNrL.mjs +0 -2
  168. package/dist/src-Biqy_5j-.mjs +0 -1
  169. package/dist/src-DlyTtkF7.mjs +0 -2040
  170. package/dist/start-CdldmqUl.mjs +0 -12
  171. package/dist/start-CuS_0ULJ.mjs +0 -1
  172. /package/dist/public/assets/{asset-dispatch-D3iE-ozy.js → asset-dispatch-CD6rGcnF.js} +0 -0
  173. /package/dist/public/assets/{auth-prompt-store-CGGURy6q.js → auth-prompt-store-B25Qo1Wd.js} +0 -0
  174. /package/dist/public/assets/{badge-9YSkJvX1.js → badge-I_vhU4ix.js} +0 -0
  175. /package/dist/public/assets/{copilot-CArBqDJb.js → copilot-yXSa3JY-.js} +0 -0
  176. /package/dist/public/assets/{cursor-57XyUT4e.js → cursor-Dp3I7a4x.js} +0 -0
  177. /package/dist/public/assets/{dist-CKTV8VhP.js → dist-DUigN4NY.js} +0 -0
  178. /package/dist/public/assets/{documents-fetch-CmKHzzyC.js → documents-fetch-BUP_UXnp.js} +0 -0
  179. /package/dist/public/assets/{external-link-D2rJDkPo.js → external-link-DGqXfQJy.js} +0 -0
  180. /package/dist/public/assets/{field-qO40YP0i.js → field-DpnmTdW9.js} +0 -0
  181. /package/dist/public/assets/{file-tree-rename-validation-CA8wJBtP.js → file-tree-rename-validation-Dnm9G3PU.js} +0 -0
  182. /package/dist/public/assets/{info-t9FlqODl.js → info-DmvKnBgp.js} +0 -0
  183. /package/dist/public/assets/{input-BOZIAwC9.js → input-lp6-d0mX.js} +0 -0
  184. /package/dist/public/assets/{list-plus-BNMN-4Q1.js → list-plus-CT84Vd_h.js} +0 -0
  185. /package/dist/public/assets/{minus-Bb6js_J8.js → minus-CeGy7JpL.js} +0 -0
  186. /package/dist/public/assets/{miss-dialog-store-DjHIi4SB.js → miss-dialog-store-CveL5d4F.js} +0 -0
  187. /package/dist/public/assets/{panel-BuHp9NtA.js → panel-DzcaKH-k.js} +0 -0
  188. /package/dist/public/assets/{panel-right-open-BOkLqn79.js → panel-right-open-DjTdbkpr.js} +0 -0
  189. /package/dist/public/assets/{paperclip-4cjxtiAW.js → paperclip-qucBdEp9.js} +0 -0
  190. /package/dist/public/assets/{refresh-cw-GfxaObdQ.js → refresh-cw-CcQnr_fh.js} +0 -0
  191. /package/dist/public/assets/{skeleton-BOVIbSHk.js → skeleton-D4wPMdlV.js} +0 -0
  192. /package/dist/public/assets/{spinner-BSwGtQmT.js → spinner-BxJv3FRl.js} +0 -0
  193. /package/dist/public/assets/{square-pen-CWk8tSV9.js → square-pen-NShYDQ74.js} +0 -0
  194. /package/dist/public/assets/{startup-marks-keinYBPT.js → startup-marks-oOFRcumX.js} +0 -0
  195. /package/dist/public/assets/{stex-C-5D68LN.js → stex-CT86a3ly.js} +0 -0
  196. /package/dist/public/assets/{terminal-CGKubt36.js → terminal-DbJygh5J.js} +0 -0
  197. /package/dist/public/assets/{trash-2-Cb2kofzK.js → trash-2-Co21mefL.js} +0 -0
  198. /package/dist/public/assets/{triangle-alert-C2LwEy6p.js → triangle-alert-CRXAJBn4.js} +0 -0
  199. /package/dist/public/assets/{undo-2-DaH8BFfI.js → undo-2-DAbhEXY-.js} +0 -0
  200. /package/dist/public/assets/{use-installed-clis-BiKNpdXV.js → use-installed-clis-DZ3aSVtd.js} +0 -0
  201. /package/dist/public/assets/{wrench-WVdwk1J-.js → wrench-Pum_Z20m.js} +0 -0
  202. /package/dist/public/assets/{x-B63yPb4s.js → x-DddVxTPq.js} +0 -0
@@ -1 +0,0 @@
1
- import{m as e}from"./doc-paths-FbLt7pOZ.js";import{s as t}from"./navigation-targets-CNLECuIl.js";function n(e){switch(e.kind){case`doc`:case`large-file`:return`doc`;case`skill-file`:return`doc`;case`folder`:case`folder-index`:return`folder`;case`missing`:case`asset`:return`missing`}}function r(r,i){let a=t(r,i);return{resolvedTarget:a,hashDocName:a.target,hash:a.kind===`skill-file`?e({scope:a.scope,name:a.name,path:a.path,...a.host?{host:a.host}:{}}):null,displayState:n(a)}}export{r as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./repair-skills-VOh2bl4b.mjs";export{e as repairSkills};
@@ -1,4 +0,0 @@
1
- import{U as e}from"./src-D4Hs-xbj.mjs";import{Cr as t,_r as n,cr as r,fr as i,lr as a,mr as o,pr as s,wr as c,yr as l}from"./src-DlyTtkF7.mjs";import{o as u,s as d,t as f,v as p}from"./write-project-skill-CfZWfJ9i.mjs";import{n as m,s as h,t as g}from"./colors-BsmVIwfM.mjs";import{n as _,r as v,t as y}from"./skill-teardown-BgZauNrL.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:()=>a(),readRecordedVersion:e=>i(e,`cli-hosts`),writeRecordedVersion:(e,t)=>o(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>n(e),readBundleDecision:(e,t)=>r(e,t),writeBundleDecision:(e,t,n)=>s(e,t,n),removeBundleFromDisk:(e,t)=>v(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=!1;if(r.existsSync(s))o.push({kind:`central`,path:s,outcome:`skipped-present`});else try{I(n,s,r),c=!0,o.push({kind:`central`,path:s,outcome:`written`}),i({event:`user-skill-reclaim-central-written`,scope:`user`,path:s,preexisting:!1,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 d){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}if(r.existsSync(u)){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-present`});continue}try{I(n,u,r),o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`written`}),i({event:`user-skill-reclaim-host-written`,scope:`user`,editorId:c.editorId,hostDir:c.hostDir,path:u,preexisting:!1,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:c}}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 d){let o=x(e,t.hostDir,`skills`,`open-knowledge`),s=x(o,`SKILL.md`);if(n.existsSync(s)){a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`present`});continue}let c=u[t.editorId]?.projectConfigPath?.(e);if(!z(c,n)){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{f(o,e),I(i,o,n),a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`created`}),r({event:`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(n,r,i,a){let o=e=>{r.recordEvent(e).catch(()=>{})},s=()=>new Date().toISOString(),l;try{l=await r.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}),o({ts:s(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`version-read-failed:${t}`}),{outcome:`skipped`,reason:`version-read-failed`}}let u;try{u=await r.readRecordedVersion(n)}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 c)try{d.push({id:e,sourceDir:r.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`}),o({ts:s(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,reason:`bundle-missing:${f}`}),{outcome:`skipped`,reason:`bundle-missing`};let p=[];for(let o of d){let s=t[o.id],c=i.existsSync(x(n,`.agents`,`skills`,s)),l=await r.readBundleDecision(n,s).catch(()=>null);if(!e(l,{installedOnDisk:c})){if(c)try{r.removeBundleFromDisk(n,o.id),a({event:`user-skill-reclaim-bundle-declined-removed`,scope:`user`,bundle:o.id})}catch(e){a({event:`user-skill-reclaim-bundle-remove-failed`,scope:`user`,bundle:o.id,error:e instanceof Error?e.message:String(e)})}continue}if(l===null&&c)try{await r.writeBundleDecision(n,s,!0)}catch(e){a({event:`user-skill-reclaim-grandfather-write-failed`,scope:`user`,bundle:o.id,error:e instanceof Error?e.message:String(e)})}p.push(o)}if(p.length===0)return{outcome:`skipped`,reason:`all-bundles-declined`};let m=p.every(e=>i.existsSync(x(n,`.agents`,`skills`,t[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===c.length,_=[];for(let{id:e,sourceDir:r}of p){let o=R(n,t[e],r,i,a,l);h.push(...o.entries),_.push({id:e,centralWritten:o.centralWritten})}let v=h.some(e=>e.kind===`central`&&e.outcome===`failed`);if(g&&!v){let e=null;try{await r.writeRecordedVersion(n,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,centralWritten:n}of _)o({ts:s(),surface:`cli-start`,target:`cli-hosts`,bundle:t,outcome:e===null?n?`installed`:`skip-current`:`failed`,version:l,...e===null?{}:{reason:`state-write-failed:${e}`}})}else{let e=h.some(e=>e.kind===`host`&&e.outcome===`failed`);o({ts:s(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,version:l,reason:g?e?`all-writes-failed`:`central-write-failed`:`bundle-unresolved`})}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=_(r),c=[],l=!1,u=!1;if(s.skillDirs.length>0||s.emptyDirs.length>0)if(e.confirmLegacyCleanup&&await e.confirmLegacyCleanup(s)){try{c=y(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===`present`).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} present, ${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`).length,r=e.user.entries.filter(e=>e.outcome===`skipped-present`).length,i=e.user.entries.filter(e=>e.outcome===`skipped-host-absent`||e.outcome===`skipped-collapsed-with-central`).length,a=e.user.entries.filter(e=>e.outcome===`failed`).length;t.push(` User (${e.user.version}): ${n} written, ${r} present, ${i} skipped, ${a} 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
- `)}function G(){return new p(`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=[``,g(`A previous version of OpenKnowledge installed its skill into agent tools you may never have used.`),m(`(Versions before 0.42 wrote to every host a third-party installer knew about — see issue #820.)`)];if(e.skillDirs.length>0&&a.push(``,`${g(`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(``,`${g(t)} ${e.emptyDirs.length}`,...e.emptyDirs.map(e=>` ${r(e)}`))}if(a.push(``,m(`Nothing outside these paths is touched. A directory that still holds anything is kept.`)),process.stdout.write(`${a.join(`
3
- `)}\n`),t.yes)return!0;if(!i.isTTY)return process.stdout.write(`${h("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${g(`Remove them?`)} ${m(`[y/N] `)}`)).trim().toLowerCase();return e===`y`||e===`yes`}finally{o.close()}}export{G as n,H as t};
4
- //# sourceMappingURL=repair-skills-VOh2bl4b.mjs.map
@@ -1 +0,0 @@
1
- import{a as e,o as t,r as n}from"./server-lock-BcMI7LPa.mjs";export{n as markServerLockDraining,e as releaseServerLock,t as updateServerLockPort};
@@ -1,2 +0,0 @@
1
- import{Cr as e,wr as t}from"./src-DlyTtkF7.mjs";import{s as n}from"./write-project-skill-CfZWfJ9i.mjs";import{dirname as r,isAbsolute as i,join as a,relative as o,resolve as s,sep as c}from"node:path";import{existsSync as l,lstatSync as u,readdirSync as d,rmSync as f,rmdirSync as p}from"node:fs";const m=[{hostDir:`.adal`,pruneRoot:`.adal`},{hostDir:`.aider-desk`,pruneRoot:`.aider-desk`},{hostDir:`.astrbot/data`,pruneRoot:`.astrbot`},{hostDir:`.augment`,pruneRoot:`.augment`},{hostDir:`.autohand`,pruneRoot:`.autohand`},{hostDir:`.bob`,pruneRoot:`.bob`},{hostDir:`.codeartsdoer`,pruneRoot:`.codeartsdoer`},{hostDir:`.codebuddy`,pruneRoot:`.codebuddy`},{hostDir:`.codeium/windsurf`,pruneRoot:`.codeium`},{hostDir:`.codemaker`,pruneRoot:`.codemaker`},{hostDir:`.codestudio`,pruneRoot:`.codestudio`},{hostDir:`.commandcode`,pruneRoot:`.commandcode`},{hostDir:`.config/crush`,pruneRoot:`.config/crush`},{hostDir:`.config/devin`,pruneRoot:`.config/devin`},{hostDir:`.config/goose`,pruneRoot:`.config/goose`},{hostDir:`.config/kimchi/harness`,pruneRoot:`.config/kimchi`},{hostDir:`.continue`,pruneRoot:`.continue`},{hostDir:`.factory`,pruneRoot:`.factory`},{hostDir:`.forge`,pruneRoot:`.forge`},{hostDir:`.grok`,pruneRoot:`.grok`},{hostDir:`.iflow`,pruneRoot:`.iflow`},{hostDir:`.inferencesh`,pruneRoot:`.inferencesh`},{hostDir:`.jazz`,pruneRoot:`.jazz`},{hostDir:`.junie`,pruneRoot:`.junie`},{hostDir:`.kilocode`,pruneRoot:`.kilocode`},{hostDir:`.kiro`,pruneRoot:`.kiro`},{hostDir:`.kode`,pruneRoot:`.kode`},{hostDir:`.lingma`,pruneRoot:`.lingma`},{hostDir:`.mcpjam`,pruneRoot:`.mcpjam`},{hostDir:`.moxby`,pruneRoot:`.moxby`},{hostDir:`.mux`,pruneRoot:`.mux`},{hostDir:`.neovate`,pruneRoot:`.neovate`},{hostDir:`.ona`,pruneRoot:`.ona`},{hostDir:`.openhands`,pruneRoot:`.openhands`},{hostDir:`.pochi`,pruneRoot:`.pochi`},{hostDir:`.qoder`,pruneRoot:`.qoder`},{hostDir:`.qoder-cn`,pruneRoot:`.qoder-cn`},{hostDir:`.qwen`,pruneRoot:`.qwen`},{hostDir:`.reasonix`,pruneRoot:`.reasonix`},{hostDir:`.roo`,pruneRoot:`.roo`},{hostDir:`.rovodev`,pruneRoot:`.rovodev`},{hostDir:`.snowflake/cortex`,pruneRoot:`.snowflake`},{hostDir:`.tabnine/agent`,pruneRoot:`.tabnine`},{hostDir:`.terramind`,pruneRoot:`.terramind`},{hostDir:`.tinycloud`,pruneRoot:`.tinycloud`},{hostDir:`.trae`,pruneRoot:`.trae`},{hostDir:`.trae-cn`,pruneRoot:`.trae-cn`},{hostDir:`.vibe`,pruneRoot:`.vibe`},{hostDir:`.zcode`,pruneRoot:`.zcode`},{hostDir:`.zencoder`,pruneRoot:`.zencoder`}],h=[...t.map(t=>e[t]),`open-knowledge`];function g(e){if(!i(e))throw Error(`skill cleanup requires an absolute home directory; got ${JSON.stringify(e)}`);let t=s(e);if(t===c||r(t)===t)throw Error(`skill cleanup refuses to operate on the filesystem root (${t})`);return t}function _(e,t){let n=o(e,t);if(n.startsWith(`..`)||i(n))return!1;let r=e;for(let e of n.split(c)){r=a(r,e);try{if(!u(r).isDirectory())return!1}catch{return!1}}return!0}function v(e,t){try{return d(e).every(n=>t.has(a(e,n)))}catch{return!1}}function y(e){let t=g(e),n=[],i=[],o=new Set;for(let e of m){let s=a(t,e.hostDir,`skills`);if(!_(t,s))continue;let u=h.map(e=>a(s,e)).filter(e=>l(e));n.push(...u);for(let e of u)o.add(e);let d=a(t,e.pruneRoot),f=s;for(;v(f,o)&&(i.push(f),o.add(f),f!==d);){let e=r(f);if(e===f||e===t||!e.startsWith(t+c))break;f=e}}return{skillDirs:n,emptyDirs:i}}function b(e){try{if(!u(e).isDirectory())return!1;let t=d(e);return t.length===0||t.includes(`SKILL.md`)}catch{return!1}}function x(e){let t=new Set,n=new Set;for(let i of m){let o=a(e,i.hostDir,`skills`);for(let e of h)t.add(a(o,e));let s=a(e,i.pruneRoot),l=o;for(;n.add(l),l!==s;){let t=r(l);if(t===l||t===e||!t.startsWith(e+c))break;l=t}}return{skillDirs:t,emptyDirs:n}}function S(e,t){let n=g(e),r=x(n),i=[...t.skillDirs.filter(e=>!r.skillDirs.has(e)),...t.emptyDirs.filter(e=>!r.emptyDirs.has(e))];if(i.length>0)throw Error(`refusing skill cleanup — ${i.length} path(s) outside the known legacy set: ${i.join(`, `)}`);let a=[];for(let e of t.skillDirs)if(_(n,e)&&b(e))try{f(e,{recursive:!0,force:!0}),a.push(e)}catch{}for(let e of t.emptyDirs)if(_(n,e))try{p(e),a.push(e)}catch{}return a}function C(r){let i=g(r),o=[];for(let r of t){let t=e[r];o.push({path:a(i,`.agents`,`skills`,t),bundleId:r,scope:`central`});for(let e of n)o.push({path:a(i,e.hostDir,`skills`,t),bundleId:r,scope:`host`,hostDir:e.hostDir})}return o}function w(e,t){let n=[];for(let r of C(e))if(r.bundleId===t)try{f(r.path,{recursive:!0,force:!0})}catch(e){n.push(e instanceof Error?e:Error(String(e)))}if(n.length>0)throw AggregateError(n,`Failed to remove ${n.length} path(s) for ${t}`)}export{C as i,y as n,w as r,S as t};
2
- //# sourceMappingURL=skill-teardown-BgZauNrL.mjs.map
@@ -1 +0,0 @@
1
- import"./src-D4Hs-xbj.mjs";import"./write-project-skill-CfZWfJ9i.mjs";import"./src-DejcZdwi.mjs";import"./acp-harness-probe-goll8rs6.mjs";import"./init-1LhcFmkO.mjs";import{n as e}from"./loader-B1dOaZUl.mjs";import"./skill-teardown-BgZauNrL.mjs";import"./preview-4y9fFXuz.mjs";import"./mcp-migrate-event-B1gJf6bG.mjs";export{e as loadConfig};