@inkeep/open-knowledge 0.53.2 → 0.53.3

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 (111) hide show
  1. package/dist/{acp-harness-probe-BnGJfP5G.mjs → acp-harness-probe-3JkYEtle.mjs} +2 -2
  2. package/dist/cli.mjs +6 -6
  3. package/dist/constants-DqlH1WMe.mjs +2 -0
  4. package/dist/index.mjs +1 -1
  5. package/dist/{init-BbAtilzZ.mjs → init-BphshJ0S.mjs} +3 -3
  6. package/dist/init-DRrJo2ZC.mjs +1 -0
  7. package/dist/{launch-json-removal-DfpCmQT9.mjs → launch-json-removal-DFARSS9F.mjs} +2 -2
  8. package/dist/loader-CMrPyRH1.mjs +1 -0
  9. package/dist/{loader-BOUyv05v.mjs → loader-D2I7_Rs6.mjs} +2 -2
  10. package/dist/{open-browser-BA50pLLQ.mjs → open-browser-BfbWvPXH.mjs} +2 -2
  11. package/dist/{preview-DoBitDZ-.mjs → preview-Bnzh6BEb.mjs} +2 -2
  12. package/dist/preview-CInjvD39.mjs +1 -0
  13. package/dist/public/assets/{ActivityModeContent-BmQRzJZw.js → ActivityModeContent-BMqdsZEQ.js} +1 -1
  14. package/dist/public/assets/{AgentDiffPane-DCXp5E1P.js → AgentDiffPane-D_ubtipg.js} +1 -1
  15. package/dist/public/assets/{ChangedOutsideBadge-J6l1plFR.js → ChangedOutsideBadge-4TgQdQOf.js} +1 -1
  16. package/dist/public/assets/CodeMirrorPropInput-CjgqNZXo.js +3 -0
  17. package/dist/public/assets/DocumentContext-tOm4SkOp.js +38 -0
  18. package/dist/public/assets/{EditorModeToggle-BsFjeEn4.js → EditorModeToggle-CFFhQhHA.js} +1 -1
  19. package/dist/public/assets/{EnableSyncConfirmDialog-DNDI39lu.js → EnableSyncConfirmDialog-BiThAkoH.js} +1 -1
  20. package/dist/public/assets/FeedbackForm-tTwFtkKO.js +1 -0
  21. package/dist/public/assets/{ImportSkillDialog-DNZi7-O6.js → ImportSkillDialog-DcZoBHf-.js} +1 -1
  22. package/dist/public/assets/{LintConfigEditor-nq2Ekm-O.js → LintConfigEditor--yFdaWpg.js} +1 -1
  23. package/dist/public/assets/ManagedArtifactProperties-Bb9ghWb1.js +1 -0
  24. package/dist/public/assets/{ManagedArtifactProperties-CeSsPfJA.js → ManagedArtifactProperties-CIVfnd15.js} +1 -1
  25. package/dist/public/assets/{MermaidDocEditor-DceTAjtX.js → MermaidDocEditor-civq6mkL.js} +1 -1
  26. package/dist/public/assets/{SchemaConfigEditor-D23bGRYq.js → SchemaConfigEditor-NxaI-Jdd.js} +1 -1
  27. package/dist/public/assets/{SessionsHost-BD8Io20F.js → SessionsHost-PjSsebux.js} +2 -2
  28. package/dist/public/assets/{SettingsDialogBody-D_2SfOcL.js → SettingsDialogBody-BNYz-D4X.js} +1 -1
  29. package/dist/public/assets/{ShareReceiveMissDialog-BDYU64bD.js → ShareReceiveMissDialog-R20sy2ia.js} +1 -1
  30. package/dist/public/assets/{SkillToolbarControls-BP8iught.js → SkillToolbarControls-B_RJpm5V.js} +1 -1
  31. package/dist/public/assets/{SourceEditor-8vj7fGo1.js → SourceEditor-BW7yuIvG.js} +1 -1
  32. package/dist/public/assets/{TerminalWindowApp-Bzu1XJoP.js → TerminalWindowApp-DRbYHuvS.js} +1 -1
  33. package/dist/public/assets/{TextDocEditor-Kaj3NBL9.js → TextDocEditor-Bwwrrcn5.js} +1 -1
  34. package/dist/public/assets/{ThreadView-C0oxDyxf.js → ThreadView-BA7gxPI6.js} +2 -2
  35. package/dist/public/assets/{TimelineDiffPane-CG6Z1uma.js → TimelineDiffPane-CTJnk9me.js} +1 -1
  36. package/dist/public/assets/{agent-diff-store-DxMs0J9Y.js → agent-diff-store-BvxTke2d.js} +1 -1
  37. package/dist/public/assets/{auth-state-cache-CGY7eNch.js → auth-state-cache-DrAhOPTB.js} +1 -1
  38. package/dist/public/assets/{client-version-BenFW72U.js → client-version-DFQNNQh_.js} +1 -1
  39. package/dist/public/assets/comment-chips-W2ozPSpm.js +5 -0
  40. package/dist/public/assets/{config-provider-B6fsarOv.js → config-provider-DamFbxl8.js} +3 -3
  41. package/dist/public/assets/follow-file-D0HdtSlc.js +4 -0
  42. package/dist/public/assets/globals-CZFxK0Rt.css +1 -0
  43. package/dist/public/assets/i18n-CUKvPzxt.js +1 -0
  44. package/dist/public/assets/{index-Du6HTehY.js → index-qtxLhYJO.js} +9 -9
  45. package/dist/public/assets/messages-BD6xU0hl.js +1 -0
  46. package/dist/public/assets/messages-BrOihCC2.js +1 -0
  47. package/dist/public/assets/messages-CeGZ3qGI.js +1 -0
  48. package/dist/public/assets/messages-DLAxD4Ea.js +1 -0
  49. package/dist/public/assets/messages-DiRAd1Pa.js +1 -0
  50. package/dist/public/assets/messages-DoSs73jK.js +1 -0
  51. package/dist/public/assets/messages-FGGtYX0Z.js +1 -0
  52. package/dist/public/assets/messages-QNJusJtV.js +1 -0
  53. package/dist/public/assets/messages-T7J7xjCi.js +1 -0
  54. package/dist/public/assets/messages-rE7VifgH.js +1 -0
  55. package/dist/public/assets/messages-zscDryNK.js +1 -0
  56. package/dist/public/assets/{pending-receive-nav-store-BZigj_ik.js → pending-receive-nav-store-CpVItLnx.js} +1 -1
  57. package/dist/public/assets/{selection-context-PgPm0oHr.js → selection-context-nm7zlSXJ.js} +1 -1
  58. package/dist/public/assets/{skill-actions-Btw-8DsB.js → skill-actions-e3PRoOA3.js} +1 -1
  59. package/dist/public/assets/{src-DoCu_Oe2.js → src-BKQkpwCc.js} +1 -1
  60. package/dist/public/assets/{telemetry-impl-Bvv5kEhb.js → telemetry-impl-Byic_ID0.js} +1 -1
  61. package/dist/public/assets/{telemetry-startup-htUA83Zn.js → telemetry-startup-D_ttbNLC.js} +1 -1
  62. package/dist/public/assets/{typing-burst-detector-XmZhxL72.js → typing-burst-detector-B6UhFT8T.js} +3 -3
  63. package/dist/public/assets/{uninstall-CDJGY7Qx.js → uninstall-BE8yLKij.js} +1 -1
  64. package/dist/public/assets/{use-activity-panel-DeQ1S88x.js → use-activity-panel-CF6Guvjl.js} +1 -1
  65. package/dist/public/assets/{use-open-skill-CgnR7yXa.js → use-open-skill-CtzMj-sg.js} +1 -1
  66. package/dist/public/assets/{use-popular-skills-BefXxEcp.js → use-popular-skills-BY0ulPzk.js} +1 -1
  67. package/dist/public/assets/{use-terminal-enabled-DPQRp9bB.js → use-terminal-enabled-CIQB6jgW.js} +1 -1
  68. package/dist/public/assets/{use-timeline-entry-diff-Bw_6uLLl.js → use-timeline-entry-diff-CDFU16yg.js} +2 -2
  69. package/dist/public/index.html +23 -23
  70. package/dist/public/uninstall.html +5 -5
  71. package/dist/{repair-launch-json-r4ZvDSZL.mjs → repair-launch-json-BEYvmnMN.mjs} +2 -2
  72. package/dist/{repair-mcp-configs-8YO27I4W.mjs → repair-mcp-configs-BNg_uIZk.mjs} +2 -2
  73. package/dist/{repair-skills-Dk0Hee-r.mjs → repair-skills-BVCJQr-D.mjs} +2 -2
  74. package/dist/repair-skills-BmAntgZP.mjs +1 -0
  75. package/dist/{skill-teardown-DtXC2fAI.mjs → skill-teardown-CybJJo-5.mjs} +2 -2
  76. package/dist/{src-DvuwJKkU.mjs → src--OhnhRml.mjs} +4 -4
  77. package/dist/{src--XQg-7vm.mjs → src-3gxGmFyn.mjs} +1 -1
  78. package/dist/src-CnKeKhYe.mjs +1 -0
  79. package/dist/{src-BwjoUUIl.mjs → src-D-aeKj3b.mjs} +2 -2
  80. package/dist/{start-D_Gfcl0_.mjs → start-BG9Kwkdp.mjs} +4 -4
  81. package/dist/start-BQLnfOio.mjs +1 -0
  82. package/dist/{ui-7z12LoCq.mjs → ui-DXs7IMUP.mjs} +3 -3
  83. package/dist/{write-project-skill-DUj7e5tZ.mjs → write-project-skill-B4M4CzQe.mjs} +2 -2
  84. package/package.json +4 -4
  85. package/dist/constants-CibuukV7.mjs +0 -2
  86. package/dist/init-OoQjBgC9.mjs +0 -1
  87. package/dist/loader-P0nrGvJv.mjs +0 -1
  88. package/dist/preview-D2AT6aBO.mjs +0 -1
  89. package/dist/public/assets/CodeMirrorPropInput-DiDkBTg6.js +0 -3
  90. package/dist/public/assets/DocumentContext-J495RUh0.js +0 -38
  91. package/dist/public/assets/FeedbackForm-BwQovorQ.js +0 -1
  92. package/dist/public/assets/ManagedArtifactProperties-D5Q8gGkr.js +0 -1
  93. package/dist/public/assets/comment-chips-Q0_SZK9C.js +0 -5
  94. package/dist/public/assets/follow-file-D4LD9UAw.js +0 -4
  95. package/dist/public/assets/globals-tIUZlcbW.css +0 -1
  96. package/dist/public/assets/i18n-C3d0M4ue.js +0 -1
  97. package/dist/public/assets/messages-B6wDP6_L.js +0 -1
  98. package/dist/public/assets/messages-BS6hWxWK.js +0 -1
  99. package/dist/public/assets/messages-Bg44_w_B.js +0 -1
  100. package/dist/public/assets/messages-D9hQcSkC.js +0 -1
  101. package/dist/public/assets/messages-DAPhT0w6.js +0 -1
  102. package/dist/public/assets/messages-DaVac3jo.js +0 -1
  103. package/dist/public/assets/messages-Dbqu7ts9.js +0 -1
  104. package/dist/public/assets/messages-DdoJCt_r.js +0 -1
  105. package/dist/public/assets/messages-Djc_MIS0.js +0 -1
  106. package/dist/public/assets/messages-DmHqd1yQ.js +0 -1
  107. package/dist/public/assets/messages-xKq8BSm6.js +0 -1
  108. package/dist/repair-skills-BWNXcIRv.mjs +0 -1
  109. package/dist/src-DK8qZiyv.mjs +0 -1
  110. package/dist/start-ZpOYP9oW.mjs +0 -1
  111. /package/dist/public/assets/{globals-CLY_4Hw9.js → globals-CfOSCw3_.js} +0 -0
@@ -94,11 +94,11 @@
94
94
  -->
95
95
  <script>(() => { try { const raw = localStorage.getItem('ok-language-v1'); if (!raw) return; const o = JSON.parse(raw); if (typeof o?.locale !== 'string' || !/^[a-zA-Z]{2,8}(-[a-zA-Z0-9]{2,8})*$/.test(o.locale)) return; document.documentElement.lang = o.locale; document.documentElement.dir = o.dir === 'rtl' ? 'rtl' : 'ltr'; } catch {} })();</script>
96
96
  <style>html { background-color: #fafafa } html.dark { background-color: #171717 }</style>
97
- <script type="module" crossorigin src="./assets/index-Du6HTehY.js"></script>
97
+ <script type="module" crossorigin src="./assets/index-qtxLhYJO.js"></script>
98
98
  <link rel="modulepreload" crossorigin href="./assets/chunk-CYidjpOJ.js">
99
99
  <link rel="modulepreload" crossorigin href="./assets/react-f2sANaYj.js">
100
100
  <link rel="modulepreload" crossorigin href="./assets/react-dom-DPxgxlDT.js">
101
- <link rel="modulepreload" crossorigin href="./assets/globals-CLY_4Hw9.js">
101
+ <link rel="modulepreload" crossorigin href="./assets/globals-CfOSCw3_.js">
102
102
  <link rel="modulepreload" crossorigin href="./assets/preload-helper-Chd9yIcd.js">
103
103
  <link rel="modulepreload" crossorigin href="./assets/w3c-keyname-Bw5giFqP.js">
104
104
  <link rel="modulepreload" crossorigin href="./assets/dist-sSZdzHur.js">
@@ -130,11 +130,11 @@
130
130
  <link rel="modulepreload" crossorigin href="./assets/markdownit-C1Squg6O.js">
131
131
  <link rel="modulepreload" crossorigin href="./assets/dist-ILlrHFKs.js">
132
132
  <link rel="modulepreload" crossorigin href="./assets/dist-B6jB2qbD2.js">
133
- <link rel="modulepreload" crossorigin href="./assets/client-version-BenFW72U.js">
133
+ <link rel="modulepreload" crossorigin href="./assets/client-version-DFQNNQh_.js">
134
134
  <link rel="modulepreload" crossorigin href="./assets/use-apply-config-color-theme-BatIDUX7.js">
135
- <link rel="modulepreload" crossorigin href="./assets/messages-DdoJCt_r.js">
136
- <link rel="modulepreload" crossorigin href="./assets/i18n-C3d0M4ue.js">
137
- <link rel="modulepreload" crossorigin href="./assets/config-provider-B6fsarOv.js">
135
+ <link rel="modulepreload" crossorigin href="./assets/messages-FGGtYX0Z.js">
136
+ <link rel="modulepreload" crossorigin href="./assets/i18n-CUKvPzxt.js">
137
+ <link rel="modulepreload" crossorigin href="./assets/config-provider-DamFbxl8.js">
138
138
  <link rel="modulepreload" crossorigin href="./assets/dist-DsLZcVyZ.js">
139
139
  <link rel="modulepreload" crossorigin href="./assets/dist-DX6BuR0m.js">
140
140
  <link rel="modulepreload" crossorigin href="./assets/dist-DmTWt7nC.js">
@@ -166,7 +166,7 @@
166
166
  <link rel="modulepreload" crossorigin href="./assets/asset-dispatch-Ccnji1rt.js">
167
167
  <link rel="modulepreload" crossorigin href="./assets/external-link-3El87eIe.js">
168
168
  <link rel="modulepreload" crossorigin href="./assets/documents-fetch-DnpUYK4R.js">
169
- <link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-DiDkBTg6.js">
169
+ <link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-CjgqNZXo.js">
170
170
  <link rel="modulepreload" crossorigin href="./assets/git-branch-CCnsAeFH.js">
171
171
  <link rel="modulepreload" crossorigin href="./assets/triangle-alert-DV20-jn9.js">
172
172
  <link rel="modulepreload" crossorigin href="./assets/Mermaid-mUyEEsA0.js">
@@ -187,7 +187,7 @@
187
187
  <link rel="modulepreload" crossorigin href="./assets/input-BFt4qZaV.js">
188
188
  <link rel="modulepreload" crossorigin href="./assets/use-collab-url-7XE2_0_k.js">
189
189
  <link rel="modulepreload" crossorigin href="./assets/skills-api-DQ0PK-8O.js">
190
- <link rel="modulepreload" crossorigin href="./assets/DocumentContext-J495RUh0.js">
190
+ <link rel="modulepreload" crossorigin href="./assets/DocumentContext-tOm4SkOp.js">
191
191
  <link rel="modulepreload" crossorigin href="./assets/folder-CWlDik9N.js">
192
192
  <link rel="modulepreload" crossorigin href="./assets/dist-Bme5LuHX.js">
193
193
  <link rel="modulepreload" crossorigin href="./assets/dist-6Kl8HTi9.js">
@@ -196,7 +196,7 @@
196
196
  <link rel="modulepreload" crossorigin href="./assets/copilot-CmkvU8CH.js">
197
197
  <link rel="modulepreload" crossorigin href="./assets/terminal-cli-display-CgJpdKCI.js">
198
198
  <link rel="modulepreload" crossorigin href="./assets/mascot-outline-CtS592mc.js">
199
- <link rel="modulepreload" crossorigin href="./assets/ChangedOutsideBadge-J6l1plFR.js">
199
+ <link rel="modulepreload" crossorigin href="./assets/ChangedOutsideBadge-4TgQdQOf.js">
200
200
  <link rel="modulepreload" crossorigin href="./assets/checkbox-Bxl4H4lV.js">
201
201
  <link rel="modulepreload" crossorigin href="./assets/context-menu-D1MgERPo.js">
202
202
  <link rel="modulepreload" crossorigin href="./assets/label-B5yNUINo.js">
@@ -205,25 +205,25 @@
205
205
  <link rel="modulepreload" crossorigin href="./assets/toggle-group-CZcn-1gX.js">
206
206
  <link rel="modulepreload" crossorigin href="./assets/useQuery-ZeEDLtxh.js">
207
207
  <link rel="modulepreload" crossorigin href="./assets/workspace-paths-CKUFX0v6.js">
208
- <link rel="modulepreload" crossorigin href="./assets/follow-file-D4LD9UAw.js">
208
+ <link rel="modulepreload" crossorigin href="./assets/follow-file-D0HdtSlc.js">
209
209
  <link rel="modulepreload" crossorigin href="./assets/format-I3YtNHrv.js">
210
210
  <link rel="modulepreload" crossorigin href="./assets/braces-CJEjDc1f.js">
211
211
  <link rel="modulepreload" crossorigin href="./assets/folder-config-api-CKV5STj1.js">
212
- <link rel="modulepreload" crossorigin href="./assets/comment-chips-Q0_SZK9C.js">
212
+ <link rel="modulepreload" crossorigin href="./assets/comment-chips-W2ozPSpm.js">
213
213
  <link rel="modulepreload" crossorigin href="./assets/textarea-CzW0aR0j.js">
214
- <link rel="modulepreload" crossorigin href="./assets/selection-context-PgPm0oHr.js">
214
+ <link rel="modulepreload" crossorigin href="./assets/selection-context-nm7zlSXJ.js">
215
215
  <link rel="modulepreload" crossorigin href="./assets/lint-config-client-xawAT1mQ.js">
216
216
  <link rel="modulepreload" crossorigin href="./assets/use-skills-C_HuRxth.js">
217
- <link rel="modulepreload" crossorigin href="./assets/ManagedArtifactProperties-CeSsPfJA.js">
218
- <link rel="modulepreload" crossorigin href="./assets/EnableSyncConfirmDialog-DNDI39lu.js">
217
+ <link rel="modulepreload" crossorigin href="./assets/ManagedArtifactProperties-CIVfnd15.js">
218
+ <link rel="modulepreload" crossorigin href="./assets/EnableSyncConfirmDialog-BiThAkoH.js">
219
219
  <link rel="modulepreload" crossorigin href="./assets/RegisteredAgentIcon-BxpJAHOj.js">
220
220
  <link rel="modulepreload" crossorigin href="./assets/list-plus-2r7_ATZj.js">
221
- <link rel="modulepreload" crossorigin href="./assets/use-open-skill-CgnR7yXa.js">
221
+ <link rel="modulepreload" crossorigin href="./assets/use-open-skill-CtzMj-sg.js">
222
222
  <link rel="modulepreload" crossorigin href="./assets/use-settings-route-DN0TWdfX.js">
223
223
  <link rel="modulepreload" crossorigin href="./assets/platform-labels-glrfxkSh.js">
224
224
  <link rel="modulepreload" crossorigin href="./assets/clipboard-adapter-DqemxSWT.js">
225
225
  <link rel="modulepreload" crossorigin href="./assets/use-workspace-CNCW4CS8.js">
226
- <link rel="modulepreload" crossorigin href="./assets/skill-actions-Btw-8DsB.js">
226
+ <link rel="modulepreload" crossorigin href="./assets/skill-actions-e3PRoOA3.js">
227
227
  <link rel="modulepreload" crossorigin href="./assets/arrow-up-right-CGe6dTck.js">
228
228
  <link rel="modulepreload" crossorigin href="./assets/case-sensitive-CE1B0vR4.js">
229
229
  <link rel="modulepreload" crossorigin href="./assets/chevron-left-UUhIKmW4.js">
@@ -232,28 +232,28 @@
232
232
  <link rel="modulepreload" crossorigin href="./assets/wrench-C3BL-uHg.js">
233
233
  <link rel="modulepreload" crossorigin href="./assets/panel-D2VXQC58.js">
234
234
  <link rel="modulepreload" crossorigin href="./assets/skeleton-BOVIbSHk.js">
235
- <link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-XmZhxL72.js">
235
+ <link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-B6UhFT8T.js">
236
236
  <link rel="modulepreload" crossorigin href="./assets/download-Dn5ulvxm.js">
237
237
  <link rel="modulepreload" crossorigin href="./assets/field-CvwbVfuf.js">
238
- <link rel="modulepreload" crossorigin href="./assets/auth-state-cache-CGY7eNch.js">
238
+ <link rel="modulepreload" crossorigin href="./assets/auth-state-cache-DrAhOPTB.js">
239
239
  <link rel="modulepreload" crossorigin href="./assets/miss-dialog-store-DzXIxgCB.js">
240
- <link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-BZigj_ik.js">
240
+ <link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-CpVItLnx.js">
241
241
  <link rel="modulepreload" crossorigin href="./assets/history-B1SZDFzE.js">
242
242
  <link rel="modulepreload" crossorigin href="./assets/open-managed-artifact-tab-G7xdjHph.js">
243
- <link rel="modulepreload" crossorigin href="./assets/use-popular-skills-BefXxEcp.js">
243
+ <link rel="modulepreload" crossorigin href="./assets/use-popular-skills-BY0ulPzk.js">
244
244
  <link rel="modulepreload" crossorigin href="./assets/panel-right-open-DAyUhiQN.js">
245
245
  <link rel="modulepreload" crossorigin href="./assets/terminal-launch-events-DQ0KtteM.js">
246
246
  <link rel="modulepreload" crossorigin href="./assets/square-pen-DdAKbKU7.js">
247
247
  <link rel="modulepreload" crossorigin href="./assets/undo-2-CMyZc9mZ.js">
248
248
  <link rel="modulepreload" crossorigin href="./assets/form-dlFqxdSN.js">
249
249
  <link rel="modulepreload" crossorigin href="./assets/text-viewer-languages-epnUVwhY.js">
250
- <link rel="modulepreload" crossorigin href="./assets/EditorModeToggle-BsFjeEn4.js">
250
+ <link rel="modulepreload" crossorigin href="./assets/EditorModeToggle-CFFhQhHA.js">
251
251
  <link rel="modulepreload" crossorigin href="./assets/ConfigSharingInfoTooltip-CuqrTakc.js">
252
252
  <link rel="modulepreload" crossorigin href="./assets/project-paths-DOOtPmjl.js">
253
253
  <link rel="modulepreload" crossorigin href="./assets/SkillModeBanner-cMF-HPLA.js">
254
254
  <link rel="modulepreload" crossorigin href="./assets/file-tree-adapter-Bf1ZqkPA.js">
255
255
  <link rel="modulepreload" crossorigin href="./assets/terminal-command-events-DXmeHtnk.js">
256
- <link rel="modulepreload" crossorigin href="./assets/agent-diff-store-DxMs0J9Y.js">
256
+ <link rel="modulepreload" crossorigin href="./assets/agent-diff-store-BvxTke2d.js">
257
257
  <link rel="modulepreload" crossorigin href="./assets/target-navigation-intent-DpIU3fe6.js">
258
258
  <link rel="modulepreload" crossorigin href="./assets/use-live-xterm-theme-DS89T4Os.js">
259
259
  <link rel="modulepreload" crossorigin href="./assets/input-group-ClrIuhWi.js">
@@ -266,7 +266,7 @@
266
266
  <link rel="modulepreload" crossorigin href="./assets/overlay-layers-Bj-TVfKw.js">
267
267
  <link rel="modulepreload" crossorigin href="./assets/receive-store-BrOspwat.js">
268
268
  <link rel="modulepreload" crossorigin href="./assets/timeline-diff-store-DnRthkM7.js">
269
- <link rel="stylesheet" crossorigin href="./assets/globals-tIUZlcbW.css">
269
+ <link rel="stylesheet" crossorigin href="./assets/globals-CZFxK0Rt.css">
270
270
  <link rel="stylesheet" crossorigin href="./assets/DocumentContext-B0sQn39F.css">
271
271
  <link rel="stylesheet" crossorigin href="./assets/index-CDpJ2gXn.css">
272
272
  </head>
@@ -32,11 +32,11 @@
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-CDJGY7Qx.js"></script>
35
+ <script type="module" crossorigin src="./assets/uninstall-BE8yLKij.js"></script>
36
36
  <link rel="modulepreload" crossorigin href="./assets/chunk-CYidjpOJ.js">
37
37
  <link rel="modulepreload" crossorigin href="./assets/react-f2sANaYj.js">
38
38
  <link rel="modulepreload" crossorigin href="./assets/react-dom-DPxgxlDT.js">
39
- <link rel="modulepreload" crossorigin href="./assets/globals-CLY_4Hw9.js">
39
+ <link rel="modulepreload" crossorigin href="./assets/globals-CfOSCw3_.js">
40
40
  <link rel="modulepreload" crossorigin href="./assets/preload-helper-Chd9yIcd.js">
41
41
  <link rel="modulepreload" crossorigin href="./assets/trace-api-18gcBe0u.js">
42
42
  <link rel="modulepreload" crossorigin href="./assets/html-void-elements-C35FEqss.js">
@@ -68,9 +68,9 @@
68
68
  <link rel="modulepreload" crossorigin href="./assets/badge-BYteLKha.js">
69
69
  <link rel="modulepreload" crossorigin href="./assets/input-BFt4qZaV.js">
70
70
  <link rel="modulepreload" crossorigin href="./assets/textarea-CzW0aR0j.js">
71
- <link rel="modulepreload" crossorigin href="./assets/messages-DdoJCt_r.js">
72
- <link rel="modulepreload" crossorigin href="./assets/i18n-C3d0M4ue.js">
73
- <link rel="stylesheet" crossorigin href="./assets/globals-tIUZlcbW.css">
71
+ <link rel="modulepreload" crossorigin href="./assets/messages-FGGtYX0Z.js">
72
+ <link rel="modulepreload" crossorigin href="./assets/i18n-CUKvPzxt.js">
73
+ <link rel="stylesheet" crossorigin href="./assets/globals-CZFxK0Rt.css">
74
74
  </head>
75
75
 
76
76
  <body class="antialiased">
@@ -1,2 +1,2 @@
1
- import{t as e}from"./launch-json-removal-DfpCmQT9.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-r4ZvDSZL.mjs.map
1
+ import{t as e}from"./launch-json-removal-DFARSS9F.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-BEYvmnMN.mjs.map
@@ -1,2 +1,2 @@
1
- import{i as e,o as t,p as n}from"./write-project-skill-DUj7e5tZ.mjs";import{d as r,v as i}from"./init-BbAtilzZ.mjs";import{t as a}from"./mcp-migrate-event-B1gJf6bG.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 e){let e=t[o],s=c(()=>e.configPath(``,i));if(s!==null&&a.push(l({scope:`user`,editorId:o,target:e,home:i,cwd:``,configPath:s,configPathOverride:void 0,logger:r})),e.projectConfigPath){let t=e.projectConfigPath,i=c(()=>t(n.projectDir));i!==null&&a.push(l({scope:`project`,editorId:o,target:e,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-8YO27I4W.mjs.map
1
+ import{i as e,o as t,p as n}from"./write-project-skill-B4M4CzQe.mjs";import{d as r,v as i}from"./init-BphshJ0S.mjs";import{t as a}from"./mcp-migrate-event-B1gJf6bG.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 e){let e=t[o],s=c(()=>e.configPath(``,i));if(s!==null&&a.push(l({scope:`user`,editorId:o,target:e,home:i,cwd:``,configPath:s,configPathOverride:void 0,logger:r})),e.projectConfigPath){let t=e.projectConfigPath,i=c(()=>t(n.projectDir));i!==null&&a.push(l({scope:`project`,editorId:o,target:e,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-BNg_uIZk.mjs.map
@@ -1,4 +1,4 @@
1
- import{U as e}from"./src-Dj6UxpKM.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-DvuwJKkU.mjs";import{o as u,s as d,t as f,v as p}from"./write-project-skill-DUj7e5tZ.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-DtXC2fAI.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(`
1
+ import{U as e}from"./src-Dj6UxpKM.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--OhnhRml.mjs";import{o as u,s as d,t as f,v as p}from"./write-project-skill-B4M4CzQe.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-CybJJo-5.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
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
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-Dk0Hee-r.mjs.map
4
+ //# sourceMappingURL=repair-skills-BVCJQr-D.mjs.map
@@ -0,0 +1 @@
1
+ import{t as e}from"./repair-skills-BVCJQr-D.mjs";export{e as repairSkills};
@@ -1,2 +1,2 @@
1
- import{Cr as e,wr as t}from"./src-DvuwJKkU.mjs";import{s as n}from"./write-project-skill-DUj7e5tZ.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-DtXC2fAI.mjs.map
1
+ import{Cr as e,wr as t}from"./src--OhnhRml.mjs";import{s as n}from"./write-project-skill-B4M4CzQe.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-CybJJo-5.mjs.map