@inkeep/open-knowledge 0.49.0-beta.22 → 0.49.0-beta.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acp-harness-probe-CVHz7ntP.mjs → acp-harness-probe-BUSbhOih.mjs} +2 -2
- package/dist/cli.mjs +7 -7
- package/dist/constants-D3YZBBb9.mjs +2 -0
- package/dist/index.mjs +1 -1
- package/dist/{init-Dhn4eU-0.mjs → init-MCgaljSF.mjs} +3 -3
- package/dist/init-UTjBgomo.mjs +1 -0
- package/dist/{launch-json-removal-BJgk4Bl7.mjs → launch-json-removal-BmDsNwPt.mjs} +2 -2
- package/dist/loader-B98DqiVc.mjs +1 -0
- package/dist/{loader-Dui-gyPg.mjs → loader-ekJmDLtT.mjs} +2 -2
- package/dist/{open-browser-Dyp0opyo.mjs → open-browser-CxnOIVsL.mjs} +2 -2
- package/dist/preview-CUoBkJzj.mjs +1 -0
- package/dist/{preview-DfZnOlrS.mjs → preview-DO6-cA5G.mjs} +2 -2
- package/dist/public/assets/{ActivityModeContent-BN178e3z.js → ActivityModeContent-C08FYohG.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-BFbpqR5W.js → AgentDiffPane-T499-ugv.js} +1 -1
- package/dist/public/assets/{AgentThreadClientBinder-DiLDOfV5.js → AgentThreadClientBinder-BlMGv16y.js} +1 -1
- package/dist/public/assets/{ChangedOutsideBadge-CuV-5VxB.js → ChangedOutsideBadge-GeQfL_b-.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-xlnPtM2G.js → CodeMirrorPropInput-3TWUbzXY.js} +2 -2
- package/dist/public/assets/{ConsentDialogBody-DofRRmeD.js → ConsentDialogBody-Clb82Qbo.js} +1 -1
- package/dist/public/assets/DocumentContext-C-Lo65-_.js +38 -0
- package/dist/public/assets/{EditorModeToggle-CjAmj5Sm.js → EditorModeToggle-BjgmECAn.js} +1 -1
- package/dist/public/assets/{EnableSyncConfirmDialog-COhibJcK.js → EnableSyncConfirmDialog-B1Eo_sVE.js} +1 -1
- package/dist/public/assets/FeedbackForm-CmdTz11F.js +1 -0
- package/dist/public/assets/{GraphPanel-B98jiIHY.js → GraphPanel-CxJeFUDp.js} +1 -1
- package/dist/public/assets/{ImportSkillDialog-31kM_v5z.js → ImportSkillDialog-ChsGV6eb.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-5hoCabqU.js → LintConfigEditor-3f4-NF1O.js} +1 -1
- package/dist/public/assets/{ManagedArtifactProperties-CZupVVuq.js → ManagedArtifactProperties-B1ZA0ofn.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-B_ecuboX.js +1 -0
- package/dist/public/assets/{McpConsentDialogBody-BQ3lQ0jd.js → McpConsentDialogBody-CG5af4os.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-D8pqm8hC.js → MermaidDocEditor-C30-UfMg.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-BcF0CJDV.js → SchemaConfigEditor-DPK5XbMd.js} +1 -1
- package/dist/public/assets/{SessionsHost-CcG6k8nM.js → SessionsHost-BobZkNwc.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-Danj0L0h.js → SettingsDialogBody-COTbFRqi.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-Cqd6dkr6.js → ShareReceiveMissDialog-B03ClkaE.js} +1 -1
- package/dist/public/assets/{SkillOriginInline-7PTmIC-s.js → SkillOriginInline-DgWSnmXH.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-CsugvXdW.js → SkillToolbarControls-PvRY_LHn.js} +1 -1
- package/dist/public/assets/{SourceEditor-BkFnadh2.js → SourceEditor-Duqpede9.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-CiscvWSR.js → TerminalWindowApp-CgWp2eC-.js} +1 -1
- package/dist/public/assets/{TextDocEditor-Jvm4jeDz.js → TextDocEditor-CHDC5byq.js} +1 -1
- package/dist/public/assets/{ThreadView-DmTVc-NH.js → ThreadView-VqdgemBS.js} +1 -1
- package/dist/public/assets/{TimelineDiffPane-CpsNsXfE.js → TimelineDiffPane-DnaRcvCk.js} +1 -1
- package/dist/public/assets/{agent-diff-store-B7dJ9UFe.js → agent-diff-store-B7oQn7l7.js} +1 -1
- package/dist/public/assets/{auth-state-cache-Bb2dS39G.js → auth-state-cache-BUYyIMUZ.js} +3 -3
- package/dist/public/assets/{comment-chips-BniSNLJj.js → comment-chips-BhvfCPCk.js} +1 -1
- package/dist/public/assets/{config-provider-C76feACI.js → config-provider-B7dMDFNr.js} +3 -3
- package/dist/public/assets/{follow-file-ofLXOlzq.js → follow-file-CWSsUd-S.js} +1 -1
- package/dist/public/assets/i18n-CIRn0AvV.js +1 -0
- package/dist/public/assets/{index-r1KP7wKe.js → index-Dmlpu4P1.js} +9 -9
- package/dist/public/assets/mcp-consent-store-B_Tog3LX.js +1 -0
- package/dist/public/assets/messages-6Fd7I7zn.js +1 -0
- package/dist/public/assets/messages-BJIB1I1L.js +1 -0
- package/dist/public/assets/messages-BOXmrfhw.js +1 -0
- package/dist/public/assets/messages-BeOM8jWl.js +1 -0
- package/dist/public/assets/messages-CCWKIebo.js +1 -0
- package/dist/public/assets/messages-CQFityfC.js +1 -0
- package/dist/public/assets/messages-CzRXVtjz.js +1 -0
- package/dist/public/assets/messages-DYiuNk7y.js +1 -0
- package/dist/public/assets/messages-Db5U-G1d.js +1 -0
- package/dist/public/assets/messages-DohtKbKM.js +1 -0
- package/dist/public/assets/messages-WWFblTuV.js +1 -0
- package/dist/public/assets/{pending-receive-nav-store-BE5OGxHl.js → pending-receive-nav-store-SZ8w-xKW.js} +1 -1
- package/dist/public/assets/project-paths-fLhDAPyF.js +1 -0
- package/dist/public/assets/prop-types-DoONHMUn.js +1 -0
- package/dist/public/assets/{selection-context-AI9gRHxJ.js → selection-context-CSP8zK1H.js} +1 -1
- package/dist/public/assets/{skill-actions-8IVnFdCN.js → skill-actions-98H3SnCL.js} +1 -1
- package/dist/public/assets/skills-api-qDbnaMmu.js +1 -0
- package/dist/public/assets/{src-BenA4xKx.js → src-VcUCSe0b.js} +1 -1
- package/dist/public/assets/thread-client-DSDduEdo.js +1 -0
- package/dist/public/assets/{typing-burst-detector-Dnvgcuuc.js → typing-burst-detector-BOmjXV-P.js} +1 -1
- package/dist/public/assets/{uninstall-HVmYw6nq.js → uninstall-36twrq5C.js} +1 -1
- package/dist/public/assets/{use-activity-panel-aqwiVcyw.js → use-activity-panel-BwANCYjg.js} +1 -1
- package/dist/public/assets/{use-open-skill-BP0v92gE.js → use-open-skill-DCSEJ3jJ.js} +1 -1
- package/dist/public/assets/use-settings-route-CKMxexs3.js +1 -0
- package/dist/public/assets/{use-skill-directory-CmeMTgc0.js → use-skill-directory-D9S5f8By.js} +1 -1
- package/dist/public/assets/{use-skill-origin-BajPwtmd.js → use-skill-origin-8_nwflm6.js} +1 -1
- package/dist/public/assets/use-skills-D5kEHDif.js +1 -0
- package/dist/public/assets/{use-terminal-enabled-C3iWt0_f.js → use-terminal-enabled-Ctosnrg_.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-CA8575Yk.js → use-timeline-entry-diff-CB_cI1yy.js} +1 -1
- package/dist/public/index.html +27 -27
- package/dist/public/uninstall.html +3 -3
- package/dist/{repair-launch-json-3WDQqfLv.mjs → repair-launch-json-BWUKaV3g.mjs} +2 -2
- package/dist/{repair-mcp-configs-BH4jkgiT.mjs → repair-mcp-configs-Bmgf-Fxv.mjs} +2 -2
- package/dist/{repair-skills-BKmAMyDn.mjs → repair-skills-CkZZbtNk.mjs} +2 -2
- package/dist/repair-skills-l9Id0gzv.mjs +1 -0
- package/dist/{skill-teardown-OyFyNPGz.mjs → skill-teardown-CZnemDLF.mjs} +2 -2
- package/dist/{src-BdylDHZb.mjs → src-9I3GiOoK.mjs} +3 -3
- package/dist/{src-CE8hYY7c.mjs → src-D9aX2_QH.mjs} +2 -2
- package/dist/{src-BVdLRbuK.mjs → src-h5dDPK2z.mjs} +1 -1
- package/dist/start-C6P7_3_m.mjs +1 -0
- package/dist/{start-DpaXSIzO.mjs → start-QAIJ6Ttm.mjs} +3 -3
- package/dist/{write-project-skill-jv0sIzZJ.mjs → write-project-skill-WXZSbQlg.mjs} +2 -2
- package/package.json +5 -5
- package/dist/constants-C5D2MIUN.mjs +0 -2
- package/dist/init-CN3Te2ut.mjs +0 -1
- package/dist/loader-CRfB6Pru.mjs +0 -1
- package/dist/preview-BVuutc3N.mjs +0 -1
- package/dist/public/assets/DocumentContext-BxixpOPs.js +0 -38
- package/dist/public/assets/FeedbackForm-RvRe_2Cr.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-fUz2EZpu.js +0 -1
- package/dist/public/assets/i18n-Bv_HwKyH.js +0 -1
- package/dist/public/assets/mcp-consent-store-P1HmveM3.js +0 -1
- package/dist/public/assets/messages-BxvFd8O3.js +0 -1
- package/dist/public/assets/messages-CJkoA2TA.js +0 -1
- package/dist/public/assets/messages-CPDHoN91.js +0 -1
- package/dist/public/assets/messages-DqzWQbXv.js +0 -1
- package/dist/public/assets/messages-DrM-mMtq.js +0 -1
- package/dist/public/assets/messages-DsHxrtty.js +0 -1
- package/dist/public/assets/messages-DssYhsKs.js +0 -1
- package/dist/public/assets/messages-DtjYihla.js +0 -1
- package/dist/public/assets/messages-Dvd-5pA_.js +0 -1
- package/dist/public/assets/messages-HxF3cWeO.js +0 -1
- package/dist/public/assets/messages-nxGefeB9.js +0 -1
- package/dist/public/assets/project-paths-7j0tRbs2.js +0 -1
- package/dist/public/assets/prop-types-DYXlp-YA.js +0 -1
- package/dist/public/assets/skills-api-W54BUD3E.js +0 -1
- package/dist/public/assets/thread-client-B4sb5UwV.js +0 -1
- package/dist/public/assets/use-settings-route-DnETJDgF.js +0 -1
- package/dist/public/assets/use-skills-BfTd76UH.js +0 -1
- package/dist/repair-skills-B8raYZKq.mjs +0 -1
- package/dist/start-BibIqSjj.mjs +0 -1
package/dist/public/index.html
CHANGED
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
-->
|
|
92
92
|
<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>
|
|
93
93
|
<style>html { background-color: #fafafa } html.dark { background-color: #171717 }</style>
|
|
94
|
-
<script type="module" crossorigin src="./assets/index-
|
|
94
|
+
<script type="module" crossorigin src="./assets/index-Dmlpu4P1.js"></script>
|
|
95
95
|
<link rel="modulepreload" crossorigin href="./assets/chunk-CYidjpOJ.js">
|
|
96
96
|
<link rel="modulepreload" crossorigin href="./assets/react-f2sANaYj.js">
|
|
97
97
|
<link rel="modulepreload" crossorigin href="./assets/react-dom-DPxgxlDT.js">
|
|
@@ -129,9 +129,9 @@
|
|
|
129
129
|
<link rel="modulepreload" crossorigin href="./assets/dist-CEwo98ia.js">
|
|
130
130
|
<link rel="modulepreload" crossorigin href="./assets/client-version-DfXcf1Qf.js">
|
|
131
131
|
<link rel="modulepreload" crossorigin href="./assets/config-context-DNY4at5d.js">
|
|
132
|
-
<link rel="modulepreload" crossorigin href="./assets/messages-
|
|
133
|
-
<link rel="modulepreload" crossorigin href="./assets/i18n-
|
|
134
|
-
<link rel="modulepreload" crossorigin href="./assets/config-provider-
|
|
132
|
+
<link rel="modulepreload" crossorigin href="./assets/messages-CzRXVtjz.js">
|
|
133
|
+
<link rel="modulepreload" crossorigin href="./assets/i18n-CIRn0AvV.js">
|
|
134
|
+
<link rel="modulepreload" crossorigin href="./assets/config-provider-B7dMDFNr.js">
|
|
135
135
|
<link rel="modulepreload" crossorigin href="./assets/dist-Bi80hc1t.js">
|
|
136
136
|
<link rel="modulepreload" crossorigin href="./assets/dist-CR6aO28t.js">
|
|
137
137
|
<link rel="modulepreload" crossorigin href="./assets/dist-DpaqLIPT.js">
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
<link rel="modulepreload" crossorigin href="./assets/asset-dispatch-Dst62kKY.js">
|
|
171
171
|
<link rel="modulepreload" crossorigin href="./assets/external-link-BkNoUOYg.js">
|
|
172
172
|
<link rel="modulepreload" crossorigin href="./assets/documents-fetch-BTUkzxjd.js">
|
|
173
|
-
<link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-
|
|
173
|
+
<link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-3TWUbzXY.js">
|
|
174
174
|
<link rel="modulepreload" crossorigin href="./assets/git-branch-BWBPTGqT.js">
|
|
175
175
|
<link rel="modulepreload" crossorigin href="./assets/triangle-alert-DNTyNeem.js">
|
|
176
176
|
<link rel="modulepreload" crossorigin href="./assets/Mermaid-Cr48L9fH.js">
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
<link rel="modulepreload" crossorigin href="./assets/documents-events-COSAPFkC.js">
|
|
179
179
|
<link rel="modulepreload" crossorigin href="./assets/parse-api-error-Cyn4P6OR.js">
|
|
180
180
|
<link rel="modulepreload" crossorigin href="./assets/startup-marks-BzFN1cqP.js">
|
|
181
|
-
<link rel="modulepreload" crossorigin href="./assets/prop-types-
|
|
181
|
+
<link rel="modulepreload" crossorigin href="./assets/prop-types-DoONHMUn.js">
|
|
182
182
|
<link rel="modulepreload" crossorigin href="./assets/eye-DYUvwA0Z.js">
|
|
183
183
|
<link rel="modulepreload" crossorigin href="./assets/hash-BZXl_HqD.js">
|
|
184
184
|
<link rel="modulepreload" crossorigin href="./assets/info-Jj1j2YxC.js">
|
|
@@ -188,36 +188,36 @@
|
|
|
188
188
|
<link rel="modulepreload" crossorigin href="./assets/badge-B89o8Vy9.js">
|
|
189
189
|
<link rel="modulepreload" crossorigin href="./assets/input-BKUcczSW.js">
|
|
190
190
|
<link rel="modulepreload" crossorigin href="./assets/use-collab-url-TKpnPAW8.js">
|
|
191
|
-
<link rel="modulepreload" crossorigin href="./assets/skills-api-
|
|
192
|
-
<link rel="modulepreload" crossorigin href="./assets/DocumentContext-
|
|
191
|
+
<link rel="modulepreload" crossorigin href="./assets/skills-api-qDbnaMmu.js">
|
|
192
|
+
<link rel="modulepreload" crossorigin href="./assets/DocumentContext-C-Lo65-_.js">
|
|
193
193
|
<link rel="modulepreload" crossorigin href="./assets/format-C7y0e043.js">
|
|
194
194
|
<link rel="modulepreload" crossorigin href="./assets/braces-Ytg60O62.js">
|
|
195
195
|
<link rel="modulepreload" crossorigin href="./assets/folder-config-api-IGZhtkRo.js">
|
|
196
|
-
<link rel="modulepreload" crossorigin href="./assets/comment-chips-
|
|
196
|
+
<link rel="modulepreload" crossorigin href="./assets/comment-chips-BhvfCPCk.js">
|
|
197
197
|
<link rel="modulepreload" crossorigin href="./assets/textarea-C5-cm3M6.js">
|
|
198
|
-
<link rel="modulepreload" crossorigin href="./assets/selection-context-
|
|
198
|
+
<link rel="modulepreload" crossorigin href="./assets/selection-context-CSP8zK1H.js">
|
|
199
199
|
<link rel="modulepreload" crossorigin href="./assets/lint-config-client-DkwFMG_T.js">
|
|
200
|
-
<link rel="modulepreload" crossorigin href="./assets/use-skills-
|
|
201
|
-
<link rel="modulepreload" crossorigin href="./assets/ManagedArtifactProperties-
|
|
200
|
+
<link rel="modulepreload" crossorigin href="./assets/use-skills-D5kEHDif.js">
|
|
201
|
+
<link rel="modulepreload" crossorigin href="./assets/ManagedArtifactProperties-B1ZA0ofn.js">
|
|
202
202
|
<link rel="modulepreload" crossorigin href="./assets/cursor-Df-vt--2.js">
|
|
203
203
|
<link rel="modulepreload" crossorigin href="./assets/RegisteredAgentIcon-Cdt1gfjt.js">
|
|
204
204
|
<link rel="modulepreload" crossorigin href="./assets/folder-Cnftw7jd.js">
|
|
205
205
|
<link rel="modulepreload" crossorigin href="./assets/copilot-qpaFt06v.js">
|
|
206
206
|
<link rel="modulepreload" crossorigin href="./assets/agent-visibility-CHYjRInm.js">
|
|
207
207
|
<link rel="modulepreload" crossorigin href="./assets/mascot-outline-CtS592mc.js">
|
|
208
|
-
<link rel="modulepreload" crossorigin href="./assets/ChangedOutsideBadge-
|
|
208
|
+
<link rel="modulepreload" crossorigin href="./assets/ChangedOutsideBadge-GeQfL_b-.js">
|
|
209
209
|
<link rel="modulepreload" crossorigin href="./assets/list-plus-IYEFhKGU.js">
|
|
210
|
-
<link rel="modulepreload" crossorigin href="./assets/use-open-skill-
|
|
211
|
-
<link rel="modulepreload" crossorigin href="./assets/use-settings-route-
|
|
210
|
+
<link rel="modulepreload" crossorigin href="./assets/use-open-skill-DCSEJ3jJ.js">
|
|
211
|
+
<link rel="modulepreload" crossorigin href="./assets/use-settings-route-CKMxexs3.js">
|
|
212
212
|
<link rel="modulepreload" crossorigin href="./assets/clipboard-adapter-C4L1qX1X.js">
|
|
213
213
|
<link rel="modulepreload" crossorigin href="./assets/use-workspace--QTATo27.js">
|
|
214
214
|
<link rel="modulepreload" crossorigin href="./assets/workspace-paths-EgbOaHls.js">
|
|
215
|
-
<link rel="modulepreload" crossorigin href="./assets/skill-actions-
|
|
215
|
+
<link rel="modulepreload" crossorigin href="./assets/skill-actions-98H3SnCL.js">
|
|
216
216
|
<link rel="modulepreload" crossorigin href="./assets/radio-group-CmCnommQ.js">
|
|
217
217
|
<link rel="modulepreload" crossorigin href="./assets/separator-k0mwGcaM.js">
|
|
218
218
|
<link rel="modulepreload" crossorigin href="./assets/toggle-group-DAYvcc1F.js">
|
|
219
219
|
<link rel="modulepreload" crossorigin href="./assets/useQuery-ZeEDLtxh.js">
|
|
220
|
-
<link rel="modulepreload" crossorigin href="./assets/EnableSyncConfirmDialog-
|
|
220
|
+
<link rel="modulepreload" crossorigin href="./assets/EnableSyncConfirmDialog-B1Eo_sVE.js">
|
|
221
221
|
<link rel="modulepreload" crossorigin href="./assets/arrow-up-right-0IN5lFEX.js">
|
|
222
222
|
<link rel="modulepreload" crossorigin href="./assets/case-sensitive-DvBZDISP.js">
|
|
223
223
|
<link rel="modulepreload" crossorigin href="./assets/chevron-left-BUr-yKA4.js">
|
|
@@ -226,38 +226,38 @@
|
|
|
226
226
|
<link rel="modulepreload" crossorigin href="./assets/lint-plugin-meta-D6yg1VIa.js">
|
|
227
227
|
<link rel="modulepreload" crossorigin href="./assets/panel-CbGx_cRv.js">
|
|
228
228
|
<link rel="modulepreload" crossorigin href="./assets/skeleton-ColtBPsg.js">
|
|
229
|
-
<link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-
|
|
229
|
+
<link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-BOmjXV-P.js">
|
|
230
230
|
<link rel="modulepreload" crossorigin href="./assets/download-Bq4sKAdj.js">
|
|
231
231
|
<link rel="modulepreload" crossorigin href="./assets/field-DN11CYjs.js">
|
|
232
|
-
<link rel="modulepreload" crossorigin href="./assets/auth-state-cache-
|
|
232
|
+
<link rel="modulepreload" crossorigin href="./assets/auth-state-cache-BUYyIMUZ.js">
|
|
233
233
|
<link rel="modulepreload" crossorigin href="./assets/miss-dialog-store--ihxgGwV.js">
|
|
234
|
-
<link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-
|
|
234
|
+
<link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-SZ8w-xKW.js">
|
|
235
235
|
<link rel="modulepreload" crossorigin href="./assets/history-BNEST2Cx.js">
|
|
236
236
|
<link rel="modulepreload" crossorigin href="./assets/open-managed-artifact-tab-DGO7syz6.js">
|
|
237
|
-
<link rel="modulepreload" crossorigin href="./assets/use-skill-directory-
|
|
237
|
+
<link rel="modulepreload" crossorigin href="./assets/use-skill-directory-D9S5f8By.js">
|
|
238
238
|
<link rel="modulepreload" crossorigin href="./assets/panel-right-open-BhUOm1Eq.js">
|
|
239
|
-
<link rel="modulepreload" crossorigin href="./assets/follow-file-
|
|
239
|
+
<link rel="modulepreload" crossorigin href="./assets/follow-file-CWSsUd-S.js">
|
|
240
240
|
<link rel="modulepreload" crossorigin href="./assets/square-pen-D3oI-YUs.js">
|
|
241
241
|
<link rel="modulepreload" crossorigin href="./assets/terminal-launch-events-CIULxHeu.js">
|
|
242
242
|
<link rel="modulepreload" crossorigin href="./assets/undo-2-u9f9OoCF.js">
|
|
243
243
|
<link rel="modulepreload" crossorigin href="./assets/form-WTEKK5Th.js">
|
|
244
244
|
<link rel="modulepreload" crossorigin href="./assets/text-viewer-languages-BTzKrM_y.js">
|
|
245
|
-
<link rel="modulepreload" crossorigin href="./assets/EditorModeToggle-
|
|
245
|
+
<link rel="modulepreload" crossorigin href="./assets/EditorModeToggle-BjgmECAn.js">
|
|
246
246
|
<link rel="modulepreload" crossorigin href="./assets/ConfigSharingInfoTooltip-Bwt_R43K.js">
|
|
247
|
-
<link rel="modulepreload" crossorigin href="./assets/project-paths-
|
|
247
|
+
<link rel="modulepreload" crossorigin href="./assets/project-paths-fLhDAPyF.js">
|
|
248
248
|
<link rel="modulepreload" crossorigin href="./assets/SkillModeBanner-Y5LYtJrC.js">
|
|
249
249
|
<link rel="modulepreload" crossorigin href="./assets/file-tree-adapter-B9dmiTPy.js">
|
|
250
250
|
<link rel="modulepreload" crossorigin href="./assets/terminal-command-events-BBYZtptJ.js">
|
|
251
|
-
<link rel="modulepreload" crossorigin href="./assets/agent-diff-store-
|
|
251
|
+
<link rel="modulepreload" crossorigin href="./assets/agent-diff-store-B7oQn7l7.js">
|
|
252
252
|
<link rel="modulepreload" crossorigin href="./assets/target-navigation-intent-DAyeqt__.js">
|
|
253
253
|
<link rel="modulepreload" crossorigin href="./assets/use-live-xterm-theme-B8OPZLR3.js">
|
|
254
254
|
<link rel="modulepreload" crossorigin href="./assets/input-group-H-ZoGiXT.js">
|
|
255
255
|
<link rel="modulepreload" crossorigin href="./assets/use-installed-clis-CsPJ2Mod.js">
|
|
256
|
-
<link rel="modulepreload" crossorigin href="./assets/use-skill-origin-
|
|
256
|
+
<link rel="modulepreload" crossorigin href="./assets/use-skill-origin-8_nwflm6.js">
|
|
257
257
|
<link rel="modulepreload" crossorigin href="./assets/terminal-telemetry-CqkILJJU.js">
|
|
258
258
|
<link rel="modulepreload" crossorigin href="./assets/agent-presence-DntZZFlY.js">
|
|
259
259
|
<link rel="modulepreload" crossorigin href="./assets/auth-prompt-store-B92v76dM.js">
|
|
260
|
-
<link rel="modulepreload" crossorigin href="./assets/mcp-consent-store-
|
|
260
|
+
<link rel="modulepreload" crossorigin href="./assets/mcp-consent-store-B_Tog3LX.js">
|
|
261
261
|
<link rel="modulepreload" crossorigin href="./assets/overlay-layers-BqWhClsR.js">
|
|
262
262
|
<link rel="modulepreload" crossorigin href="./assets/receive-store-BvkW9HUo.js">
|
|
263
263
|
<link rel="modulepreload" crossorigin href="./assets/timeline-diff-store-BpUHW_Yp.js">
|
|
@@ -32,7 +32,7 @@
|
|
|
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-
|
|
35
|
+
<script type="module" crossorigin src="./assets/uninstall-36twrq5C.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">
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
<link rel="modulepreload" crossorigin href="./assets/badge-B89o8Vy9.js">
|
|
69
69
|
<link rel="modulepreload" crossorigin href="./assets/input-BKUcczSW.js">
|
|
70
70
|
<link rel="modulepreload" crossorigin href="./assets/textarea-C5-cm3M6.js">
|
|
71
|
-
<link rel="modulepreload" crossorigin href="./assets/messages-
|
|
72
|
-
<link rel="modulepreload" crossorigin href="./assets/i18n-
|
|
71
|
+
<link rel="modulepreload" crossorigin href="./assets/messages-CzRXVtjz.js">
|
|
72
|
+
<link rel="modulepreload" crossorigin href="./assets/i18n-CIRn0AvV.js">
|
|
73
73
|
<link rel="stylesheet" crossorigin href="./assets/globals-D9Q1kf3c.css">
|
|
74
74
|
</head>
|
|
75
75
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./launch-json-removal-
|
|
2
|
-
//# sourceMappingURL=repair-launch-json-
|
|
1
|
+
import{t as e}from"./launch-json-removal-BmDsNwPt.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-BWUKaV3g.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e,g as t,s as n}from"./write-project-skill-
|
|
2
|
-
//# sourceMappingURL=repair-mcp-configs-
|
|
1
|
+
import{a as e,g as t,s as n}from"./write-project-skill-WXZSbQlg.mjs";import{d as r,v as i}from"./init-MCgaljSF.mjs";import{t as a}from"./mcp-migrate-event-B1gJf6bG.mjs";import{homedir as o}from"node:os";function s(t){let r=t.logger??u,i=t.home??o(),a=[];if(t.reclaimDisableEnv===`1`)return r({event:`mcp-config-repair-skipped`,reason:`reclaim-disabled`}),{outcomes:a,repairedCount:0};for(let o of e){let e=n[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 n=e.projectConfigPath,i=c(()=>n(t.projectDir));i!==null&&a.push(l({scope:`project`,editorId:o,target:e,home:void 0,cwd:t.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 n={scope:e.scope,editorId:e.editorId,configPath:e.configPath},o=r(e.target,e.cwd,e.home,e.configPathOverride);if(o===null)return{...n,outcome:`no-entry`};if(t(o))return{...n,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 t=s.error??`unknown write failure`;return e.logger({event:`mcp-config-repair-write-failed`,scope:e.scope,editorId:e.editorId,configPath:e.configPath,error:t}),{...n,outcome:`write-failed`,error:t}}return s.action===`declined`?(e.logger({event:`mcp-config-repair-declined`,scope:e.scope,editorId:e.editorId,configPath:e.configPath,reason:s.declineReason}),{...n,outcome:`declined`}):{...n,outcome:`repaired`}}function u(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{s as repairMcpConfigs};
|
|
2
|
+
//# sourceMappingURL=repair-mcp-configs-Bmgf-Fxv.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as e}from"./src-9BFQh559.mjs";import{ar as t,br as n,dr as r,gr as i,lr as a,mr as o,or as s,ur as c,xr as l}from"./src-
|
|
1
|
+
import{R as e}from"./src-9BFQh559.mjs";import{ar as t,br as n,dr as r,gr as i,lr as a,mr as o,or as s,ur as c,xr as l}from"./src-9I3GiOoK.mjs";import{c as u,s as d,t as f,x as p}from"./write-project-skill-WXZSbQlg.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-CZnemDLF.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:()=>i(`project`,{checkDesktop:!1}),resolveUserBundledSkillDir:e=>i(e,{checkDesktop:!1}),readBundledVersion:()=>s(),readRecordedVersion:e=>a(e,`cli-hosts`),writeRecordedVersion:(e,t)=>r(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>o(e),readBundleDecision:(e,n)=>t(e,n),writeBundleDecision:(e,t,n)=>c(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 u){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 u){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=d[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(t,r,i,a){let o=e=>{r.recordEvent(e).catch(()=>{})},s=()=>new Date().toISOString(),c;try{c=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(t)}catch(e){a({event:`user-skill-reclaim-version-read-error`,scope:`user`,error:e instanceof Error?e.message:String(e)}),u=null}let d=[],f=null;for(let e of l)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=n[o.id],c=i.existsSync(x(t,`.agents`,`skills`,s)),l=await r.readBundleDecision(t,s).catch(()=>null);if(!e(l,{installedOnDisk:c})){if(c)try{r.removeBundleFromDisk(t,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(t,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(t,`.agents`,`skills`,n[e.id])));if(u!==null&&u===c&&m)return a({event:`user-skill-reclaim-skipped-version-current`,scope:`user`,version:c}),{outcome:`skipped`,reason:`version-current`};let h=[],g=d.length===l.length,_=[];for(let{id:e,sourceDir:r}of p){let o=R(t,n[e],r,i,a,c);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(t,c),a({event:`user-skill-reclaim-version-recorded`,scope:`user`,version:c})}catch(t){e=t instanceof Error?t.message:String(t),a({event:`user-skill-reclaim-version-record-failed`,scope:`user`,version:c,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:c,...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:c,reason:g?e?`all-writes-failed`:`central-write-failed`:`bundle-unresolved`})}return{outcome:`done`,version:c,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-
|
|
4
|
+
//# sourceMappingURL=repair-skills-CkZZbtNk.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./repair-skills-CkZZbtNk.mjs";export{e as repairSkills};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{br as e,xr as t}from"./src-
|
|
2
|
-
//# sourceMappingURL=skill-teardown-
|
|
1
|
+
import{br as e,xr as t}from"./src-9I3GiOoK.mjs";import{c as n}from"./write-project-skill-WXZSbQlg.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-CZnemDLF.mjs.map
|