@inkeep/open-knowledge 0.58.0-beta.12 → 0.58.0-beta.14
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-hyA-WdDc.mjs → acp-harness-probe-DDZTh5_s.mjs} +2 -2
- package/dist/cli.mjs +6 -6
- package/dist/constants-Dnljz18I.mjs +2 -0
- package/dist/index.mjs +11 -11
- package/dist/{init-CMx4ni69.mjs → init-CKnF84QV.mjs} +3 -3
- package/dist/init-CrImy7bq.mjs +1 -0
- package/dist/{launch-json-removal-n5dV6YIC.mjs → launch-json-removal-Cxdw1SJA.mjs} +2 -2
- package/dist/{loader-MBXnfExd.mjs → loader-BgREGV98.mjs} +2 -2
- package/dist/loader-C_m2rJyW.mjs +1 -0
- package/dist/{open-browser-y7HA6bX8.mjs → open-browser-XCXpL8oR.mjs} +2 -2
- package/dist/preview-CQGxW6YH.mjs +1 -0
- package/dist/{preview-7Ivf5j1j.mjs → preview-DIcZNxR_.mjs} +2 -2
- package/dist/public/assets/{ActivityModeContent-BcSQrIRx.js → ActivityModeContent-Cd1OAYzL.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-C7i-pGcH.js → AgentDiffPane-DZVN97i1.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-B6-Wwy1S.js → CodeMirrorPropInput-DNcdooLt.js} +1 -1
- package/dist/public/assets/DocumentContext-DEIQsbJW.js +38 -0
- package/dist/public/assets/{EditorModeToggle-Btjtir7j.js → EditorModeToggle-BY9m0wjZ.js} +1 -1
- package/dist/public/assets/{EnableSyncConfirmDialog-QquGt8Qq.js → EnableSyncConfirmDialog-CWnWseMW.js} +1 -1
- package/dist/public/assets/{ExcalidrawDocEditor-BoNxwTvf.js → ExcalidrawDocEditor-CKiXFy_x.js} +1 -1
- package/dist/public/assets/FeedbackForm-BSl61r2U.js +1 -0
- package/dist/public/assets/{ImportSkillDialog-R2mZaZRc.js → ImportSkillDialog-09UPINAA.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-65JOA4tw.js → LintConfigEditor-Duz9fAR3.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-BcNn8cQq.js +1 -0
- package/dist/public/assets/ManagedArtifactProperties-X6LSQOTj.js +1 -0
- package/dist/public/assets/{MermaidDocEditor-CG4Yr9ns.js → MermaidDocEditor-CtpHpbxE.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-BkeGJ_H0.js → PropertyDisplayRow-BHfWjWFh.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-_RJzlCZU.js → SchemaConfigEditor-D9PYCPqf.js} +1 -1
- package/dist/public/assets/{SessionsHost-DCfphgsY.js → SessionsHost-Cgxgg5Xm.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-Cj7QlmVS.js → SettingsDialogBody-DQWb0J5d.js} +3 -3
- package/dist/public/assets/{ShareReceiveMissDialog-D48HLd-O.js → ShareReceiveMissDialog-CdtJGmHs.js} +1 -1
- package/dist/public/assets/SkillInstallMenu-DDpaGouF.js +8 -0
- package/dist/public/assets/{SkillToolbarControls-99zk9P53.js → SkillToolbarControls-Uh_M-Nv9.js} +1 -1
- package/dist/public/assets/{SourceEditor-CYTqEHSV.js → SourceEditor-CNDJTbpc.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-ClewuzqF.js → TerminalWindowApp-CnLQLW3I.js} +1 -1
- package/dist/public/assets/{TextDocEditor-kOosO-MQ.js → TextDocEditor-5mUdtOMw.js} +1 -1
- package/dist/public/assets/{ThreadView-C_5HD6AY.js → ThreadView-P-PiPS1h.js} +5 -5
- package/dist/public/assets/{TimelineDiffPane-CqDOQyWP.js → TimelineDiffPane-BQaKTpx8.js} +1 -1
- package/dist/public/assets/{agent-diff-store-BP7r8NUA.js → agent-diff-store-DIc_2bm6.js} +1 -1
- package/dist/public/assets/{auth-state-cache-DzCw7BMs.js → auth-state-cache-Dsjv88YE.js} +3 -3
- package/dist/public/assets/{client-version-C6rd6p9V.js → client-version-DDQ9xEIT.js} +1 -1
- package/dist/public/assets/{comment-chips-DboiOMLt.js → comment-chips-UOlMv5tO.js} +1 -1
- package/dist/public/assets/{config-provider-D8Z9jYMa.js → config-provider-Bbv6VafV.js} +3 -3
- package/dist/public/assets/{follow-file-DarUf1uW.js → follow-file-Cjy5mh1A.js} +1 -1
- package/dist/public/assets/globals-ungA9FjT.css +1 -0
- package/dist/public/assets/i18n-CmVxos8c.js +1 -0
- package/dist/public/assets/index-Bs1jwA4d.js +2096 -0
- package/dist/public/assets/messages-Blg7g8Ju.js +1 -0
- package/dist/public/assets/messages-CIPlCf8s.js +1 -0
- package/dist/public/assets/messages-C_-VdsDg.js +1 -0
- package/dist/public/assets/messages-ClA8sILa.js +1 -0
- package/dist/public/assets/messages-CmInz6Aj.js +1 -0
- package/dist/public/assets/messages-CqcZjYtT.js +1 -0
- package/dist/public/assets/messages-Cx5WvPRN.js +1 -0
- package/dist/public/assets/messages-D7I7ELHW.js +1 -0
- package/dist/public/assets/messages-DeViATgA.js +1 -0
- package/dist/public/assets/messages-JmG6V61v.js +1 -0
- package/dist/public/assets/messages-jIDdZeWu.js +1 -0
- package/dist/public/assets/messages-y4F5w3ou.js +1 -0
- package/dist/public/assets/{pending-receive-nav-store-B7kUo6NP.js → pending-receive-nav-store-ChrCVFhp.js} +1 -1
- package/dist/public/assets/{selection-context-D3ef5aPg.js → selection-context-CwVqjIBq.js} +1 -1
- package/dist/public/assets/{skill-actions-Cb4uXizu.js → skill-actions-B0Lfx1Jp.js} +1 -1
- package/dist/public/assets/{src-BcfPrIZc.js → src-BC9Ot14T.js} +1 -1
- package/dist/public/assets/{telemetry-impl-DDjYKppL.js → telemetry-impl-Dz1N6oIK.js} +1 -1
- package/dist/public/assets/{telemetry-startup-ujb1QPqT.js → telemetry-startup-hWX5HNgA.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-CX1Pyw4u.js → typing-burst-detector-CAgWYZ8p.js} +2 -2
- package/dist/public/assets/{uninstall-BNiVUCli.js → uninstall-BHLZOGk6.js} +1 -1
- package/dist/public/assets/{use-activity-panel-Dflx5VX5.js → use-activity-panel-BOsrrNzx.js} +1 -1
- package/dist/public/assets/{use-open-skill-iwES-CIS.js → use-open-skill-D4gF_c3G.js} +1 -1
- package/dist/public/assets/{use-popular-skills-CvJtJg9K.js → use-popular-skills-CBFoMPQn.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-CkwzVqfb.js → use-terminal-enabled-mEDq_d4f.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-BAj0XCDU.js → use-timeline-entry-diff-CmXkzb1O.js} +1 -1
- package/dist/public/index.html +24 -24
- package/dist/public/uninstall.html +5 -5
- package/dist/{repair-launch-json-DDeB2Dvm.mjs → repair-launch-json-Dk7mB908.mjs} +2 -2
- package/dist/{repair-mcp-configs-Jzs05bTw.mjs → repair-mcp-configs-C__k-elB.mjs} +2 -2
- package/dist/repair-skills-CS14x_hO.mjs +1 -0
- package/dist/{repair-skills-IyM2RV1-.mjs → repair-skills-DltCY6z2.mjs} +2 -2
- package/dist/server-lock-CnbGjeVA.mjs +2 -0
- package/dist/server-lock-DCiTFRYj.mjs +1 -0
- package/dist/{skill-teardown-Cn7cfIYa.mjs → skill-teardown-DhZjMVeU.mjs} +2 -2
- package/dist/{src-vHdNPukY.mjs → src-5XnFzMUO.mjs} +1 -1
- package/dist/src-CJB5BraF.mjs +1 -0
- package/dist/{src-D356u9An.mjs → src-DVlcBUL2.mjs} +24 -24
- package/dist/{src-DaaAHNog.mjs → src-DryBqCCq.mjs} +3 -3
- package/dist/start-Cs4-Dt03.mjs +1 -0
- package/dist/{start-Qm3M4_UK.mjs → start-hUBMuQB3.mjs} +4 -4
- package/dist/{ui-Bl8Rbh53.mjs → ui-CNdWjnA7.mjs} +3 -3
- package/dist/{write-project-skill-BPDDCXLT.mjs → write-project-skill-GQSmUhGW.mjs} +2 -2
- package/package.json +4 -4
- package/dist/constants-BoA4f760.mjs +0 -2
- package/dist/init-CdThYYD7.mjs +0 -1
- package/dist/loader-CMWj2D79.mjs +0 -1
- package/dist/preview-DOTerPl4.mjs +0 -1
- package/dist/public/assets/DocumentContext-CssJm8jL.js +0 -38
- package/dist/public/assets/FeedbackForm-DN1CXyhj.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-Dl5RNnNo.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-bjx-NmQr.js +0 -1
- package/dist/public/assets/SkillInstallMenu-Bz8zrPp8.js +0 -8
- package/dist/public/assets/globals-BIkjmIKR.css +0 -1
- package/dist/public/assets/i18n-C2uEep4d.js +0 -1
- package/dist/public/assets/index-kVdLCyYW.js +0 -2096
- package/dist/public/assets/messages-BHDcBKgv.js +0 -1
- package/dist/public/assets/messages-BJnM3Dga.js +0 -1
- package/dist/public/assets/messages-BUGfzfF2.js +0 -1
- package/dist/public/assets/messages-BaKdNrlr.js +0 -1
- package/dist/public/assets/messages-BzpyYTFC.js +0 -1
- package/dist/public/assets/messages-C972mg8q.js +0 -1
- package/dist/public/assets/messages-CuqqiR9b.js +0 -1
- package/dist/public/assets/messages-D81XOcCT.js +0 -1
- package/dist/public/assets/messages-DAEEmDbT.js +0 -1
- package/dist/public/assets/messages-DX5v9pJd.js +0 -1
- package/dist/public/assets/messages-DagLatIQ.js +0 -1
- package/dist/public/assets/messages-z-ne5Pbu.js +0 -1
- package/dist/repair-skills-Deon-PUG.mjs +0 -1
- package/dist/server-lock-BmpC4xda.mjs +0 -2
- package/dist/server-lock-CSpIbtA5.mjs +0 -1
- package/dist/src-uPFA8U4t.mjs +0 -1
- package/dist/start-C-P_yMJZ.mjs +0 -1
- /package/dist/public/assets/{globals-CZErGZFp.js → globals-D0MkEylX.js} +0 -0
package/dist/public/index.html
CHANGED
|
@@ -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-
|
|
97
|
+
<script type="module" crossorigin src="./assets/index-Bs1jwA4d.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-
|
|
101
|
+
<link rel="modulepreload" crossorigin href="./assets/globals-D0MkEylX.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-D9pOpWzq.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-B2PYdf6L.js">
|
|
132
132
|
<link rel="modulepreload" crossorigin href="./assets/dist-D81TFAXh.js">
|
|
133
|
-
<link rel="modulepreload" crossorigin href="./assets/client-version-
|
|
133
|
+
<link rel="modulepreload" crossorigin href="./assets/client-version-DDQ9xEIT.js">
|
|
134
134
|
<link rel="modulepreload" crossorigin href="./assets/use-apply-config-color-theme-BFjYwtG_.js">
|
|
135
|
-
<link rel="modulepreload" crossorigin href="./assets/messages-
|
|
136
|
-
<link rel="modulepreload" crossorigin href="./assets/i18n-
|
|
137
|
-
<link rel="modulepreload" crossorigin href="./assets/config-provider-
|
|
135
|
+
<link rel="modulepreload" crossorigin href="./assets/messages-CqcZjYtT.js">
|
|
136
|
+
<link rel="modulepreload" crossorigin href="./assets/i18n-CmVxos8c.js">
|
|
137
|
+
<link rel="modulepreload" crossorigin href="./assets/config-provider-Bbv6VafV.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">
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
<link rel="modulepreload" crossorigin href="./assets/asset-dispatch-KsnhYIM1.js">
|
|
174
174
|
<link rel="modulepreload" crossorigin href="./assets/external-link-B0bVg1hn.js">
|
|
175
175
|
<link rel="modulepreload" crossorigin href="./assets/documents-fetch-B1PtbYbS.js">
|
|
176
|
-
<link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-
|
|
176
|
+
<link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-DNcdooLt.js">
|
|
177
177
|
<link rel="modulepreload" crossorigin href="./assets/git-branch-CCnsAeFH.js">
|
|
178
178
|
<link rel="modulepreload" crossorigin href="./assets/triangle-alert-CRXAJBn4.js">
|
|
179
179
|
<link rel="modulepreload" crossorigin href="./assets/Mermaid-B3SF6uX9.js">
|
|
@@ -194,11 +194,11 @@
|
|
|
194
194
|
<link rel="modulepreload" crossorigin href="./assets/input-lp6-d0mX.js">
|
|
195
195
|
<link rel="modulepreload" crossorigin href="./assets/use-collab-url-VdWHbtIf.js">
|
|
196
196
|
<link rel="modulepreload" crossorigin href="./assets/skills-api-qBhseQS2.js">
|
|
197
|
-
<link rel="modulepreload" crossorigin href="./assets/DocumentContext-
|
|
197
|
+
<link rel="modulepreload" crossorigin href="./assets/DocumentContext-DEIQsbJW.js">
|
|
198
198
|
<link rel="modulepreload" crossorigin href="./assets/use-skills-BOcl-P7c.js">
|
|
199
|
-
<link rel="modulepreload" crossorigin href="./assets/use-open-skill-
|
|
199
|
+
<link rel="modulepreload" crossorigin href="./assets/use-open-skill-D4gF_c3G.js">
|
|
200
200
|
<link rel="modulepreload" crossorigin href="./assets/mascot-outline-CtS592mc.js">
|
|
201
|
-
<link rel="modulepreload" crossorigin href="./assets/SkillInstallMenu-
|
|
201
|
+
<link rel="modulepreload" crossorigin href="./assets/SkillInstallMenu-DDpaGouF.js">
|
|
202
202
|
<link rel="modulepreload" crossorigin href="./assets/checkbox-hfBCQ901.js">
|
|
203
203
|
<link rel="modulepreload" crossorigin href="./assets/label-B5yNUINo.js">
|
|
204
204
|
<link rel="modulepreload" crossorigin href="./assets/radio-group--UnhPoMH.js">
|
|
@@ -206,18 +206,18 @@
|
|
|
206
206
|
<link rel="modulepreload" crossorigin href="./assets/toggle-group-BhPXEnmq.js">
|
|
207
207
|
<link rel="modulepreload" crossorigin href="./assets/useQuery-ZeEDLtxh.js">
|
|
208
208
|
<link rel="modulepreload" crossorigin href="./assets/workspace-paths-CKUFX0v6.js">
|
|
209
|
-
<link rel="modulepreload" crossorigin href="./assets/follow-file-
|
|
209
|
+
<link rel="modulepreload" crossorigin href="./assets/follow-file-Cjy5mh1A.js">
|
|
210
210
|
<link rel="modulepreload" crossorigin href="./assets/format-I3YtNHrv.js">
|
|
211
211
|
<link rel="modulepreload" crossorigin href="./assets/braces-CJEjDc1f.js">
|
|
212
|
-
<link rel="modulepreload" crossorigin href="./assets/PropertyDisplayRow-
|
|
212
|
+
<link rel="modulepreload" crossorigin href="./assets/PropertyDisplayRow-BHfWjWFh.js">
|
|
213
213
|
<link rel="modulepreload" crossorigin href="./assets/folder-config-api-DWUKYOic.js">
|
|
214
|
-
<link rel="modulepreload" crossorigin href="./assets/comment-chips-
|
|
214
|
+
<link rel="modulepreload" crossorigin href="./assets/comment-chips-UOlMv5tO.js">
|
|
215
215
|
<link rel="modulepreload" crossorigin href="./assets/SkillCostValue-DP0KhVX6.js">
|
|
216
216
|
<link rel="modulepreload" crossorigin href="./assets/textarea-dRxJ8TN6.js">
|
|
217
|
-
<link rel="modulepreload" crossorigin href="./assets/selection-context-
|
|
217
|
+
<link rel="modulepreload" crossorigin href="./assets/selection-context-CwVqjIBq.js">
|
|
218
218
|
<link rel="modulepreload" crossorigin href="./assets/lint-config-client-uz0JfQyM.js">
|
|
219
|
-
<link rel="modulepreload" crossorigin href="./assets/ManagedArtifactProperties-
|
|
220
|
-
<link rel="modulepreload" crossorigin href="./assets/EnableSyncConfirmDialog-
|
|
219
|
+
<link rel="modulepreload" crossorigin href="./assets/ManagedArtifactProperties-BcNn8cQq.js">
|
|
220
|
+
<link rel="modulepreload" crossorigin href="./assets/EnableSyncConfirmDialog-CWnWseMW.js">
|
|
221
221
|
<link rel="modulepreload" crossorigin href="./assets/arrow-up-right-CGe6dTck.js">
|
|
222
222
|
<link rel="modulepreload" crossorigin href="./assets/RegisteredAgentIcon-CP1iDML-.js">
|
|
223
223
|
<link rel="modulepreload" crossorigin href="./assets/list-plus-CT84Vd_h.js">
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
<link rel="modulepreload" crossorigin href="./assets/platform-labels-B2q9roOE.js">
|
|
226
226
|
<link rel="modulepreload" crossorigin href="./assets/clipboard-adapter-DqemxSWT.js">
|
|
227
227
|
<link rel="modulepreload" crossorigin href="./assets/use-workspace-DtniUxsw.js">
|
|
228
|
-
<link rel="modulepreload" crossorigin href="./assets/skill-actions-
|
|
228
|
+
<link rel="modulepreload" crossorigin href="./assets/skill-actions-B0Lfx1Jp.js">
|
|
229
229
|
<link rel="modulepreload" crossorigin href="./assets/case-sensitive-CE1B0vR4.js">
|
|
230
230
|
<link rel="modulepreload" crossorigin href="./assets/chevron-left-UUhIKmW4.js">
|
|
231
231
|
<link rel="modulepreload" crossorigin href="./assets/lint-plugin-meta-24C-xIZB.js">
|
|
@@ -233,30 +233,30 @@
|
|
|
233
233
|
<link rel="modulepreload" crossorigin href="./assets/wrench-Pum_Z20m.js">
|
|
234
234
|
<link rel="modulepreload" crossorigin href="./assets/panel-DzcaKH-k.js">
|
|
235
235
|
<link rel="modulepreload" crossorigin href="./assets/skeleton-D4wPMdlV.js">
|
|
236
|
-
<link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-
|
|
236
|
+
<link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-CAgWYZ8p.js">
|
|
237
237
|
<link rel="modulepreload" crossorigin href="./assets/download-Dn5ulvxm.js">
|
|
238
238
|
<link rel="modulepreload" crossorigin href="./assets/field-BZySvRxx.js">
|
|
239
|
-
<link rel="modulepreload" crossorigin href="./assets/auth-state-cache-
|
|
239
|
+
<link rel="modulepreload" crossorigin href="./assets/auth-state-cache-Dsjv88YE.js">
|
|
240
240
|
<link rel="modulepreload" crossorigin href="./assets/miss-dialog-store-CveL5d4F.js">
|
|
241
|
-
<link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-
|
|
241
|
+
<link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-ChrCVFhp.js">
|
|
242
242
|
<link rel="modulepreload" crossorigin href="./assets/target-navigation-intent-Z3qsc-3y.js">
|
|
243
243
|
<link rel="modulepreload" crossorigin href="./assets/history-DnsnwPsA.js">
|
|
244
244
|
<link rel="modulepreload" crossorigin href="./assets/open-managed-artifact-tab-wTk-jvFI.js">
|
|
245
|
-
<link rel="modulepreload" crossorigin href="./assets/use-popular-skills-
|
|
245
|
+
<link rel="modulepreload" crossorigin href="./assets/use-popular-skills-CBFoMPQn.js">
|
|
246
246
|
<link rel="modulepreload" crossorigin href="./assets/panel-right-open-DjTdbkpr.js">
|
|
247
247
|
<link rel="modulepreload" crossorigin href="./assets/terminal-launch-events-DQrbXVOu.js">
|
|
248
248
|
<link rel="modulepreload" crossorigin href="./assets/square-pen-NShYDQ74.js">
|
|
249
249
|
<link rel="modulepreload" crossorigin href="./assets/undo-2-DAbhEXY-.js">
|
|
250
250
|
<link rel="modulepreload" crossorigin href="./assets/form-C2vo2-_o.js">
|
|
251
251
|
<link rel="modulepreload" crossorigin href="./assets/text-viewer-languages-B0r5kVWT.js">
|
|
252
|
-
<link rel="modulepreload" crossorigin href="./assets/EditorModeToggle-
|
|
252
|
+
<link rel="modulepreload" crossorigin href="./assets/EditorModeToggle-BY9m0wjZ.js">
|
|
253
253
|
<link rel="modulepreload" crossorigin href="./assets/ConfigSharingInfoTooltip-DjzTrJv7.js">
|
|
254
254
|
<link rel="modulepreload" crossorigin href="./assets/project-paths-DWofrp-d.js">
|
|
255
255
|
<link rel="modulepreload" crossorigin href="./assets/SkillModeBanner-CFrx5Bz6.js">
|
|
256
256
|
<link rel="modulepreload" crossorigin href="./assets/app-menubar-gate-CVNDuMMQ.js">
|
|
257
257
|
<link rel="modulepreload" crossorigin href="./assets/file-tree-adapter-C-_sBtIk.js">
|
|
258
258
|
<link rel="modulepreload" crossorigin href="./assets/terminal-command-events-CwHEMoPz.js">
|
|
259
|
-
<link rel="modulepreload" crossorigin href="./assets/agent-diff-store-
|
|
259
|
+
<link rel="modulepreload" crossorigin href="./assets/agent-diff-store-DIc_2bm6.js">
|
|
260
260
|
<link rel="modulepreload" crossorigin href="./assets/use-live-xterm-theme-DqXV-fD-.js">
|
|
261
261
|
<link rel="modulepreload" crossorigin href="./assets/input-group-4bFGj8B8.js">
|
|
262
262
|
<link rel="modulepreload" crossorigin href="./assets/use-installed-clis-DZ3aSVtd.js">
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
<link rel="modulepreload" crossorigin href="./assets/overlay-layers-Bj-TVfKw.js">
|
|
269
269
|
<link rel="modulepreload" crossorigin href="./assets/receive-store-BNb1QM5F.js">
|
|
270
270
|
<link rel="modulepreload" crossorigin href="./assets/timeline-diff-store-DnRthkM7.js">
|
|
271
|
-
<link rel="stylesheet" crossorigin href="./assets/globals-
|
|
271
|
+
<link rel="stylesheet" crossorigin href="./assets/globals-ungA9FjT.css">
|
|
272
272
|
<link rel="stylesheet" crossorigin href="./assets/DocumentContext-B0sQn39F.css">
|
|
273
273
|
<link rel="stylesheet" crossorigin href="./assets/index-CDpJ2gXn.css">
|
|
274
274
|
</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-
|
|
35
|
+
<script type="module" crossorigin src="./assets/uninstall-BHLZOGk6.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-
|
|
39
|
+
<link rel="modulepreload" crossorigin href="./assets/globals-D0MkEylX.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-BHNK6NBf.js">
|
|
69
69
|
<link rel="modulepreload" crossorigin href="./assets/input-lp6-d0mX.js">
|
|
70
70
|
<link rel="modulepreload" crossorigin href="./assets/textarea-dRxJ8TN6.js">
|
|
71
|
-
<link rel="modulepreload" crossorigin href="./assets/messages-
|
|
72
|
-
<link rel="modulepreload" crossorigin href="./assets/i18n-
|
|
73
|
-
<link rel="stylesheet" crossorigin href="./assets/globals-
|
|
71
|
+
<link rel="modulepreload" crossorigin href="./assets/messages-CqcZjYtT.js">
|
|
72
|
+
<link rel="modulepreload" crossorigin href="./assets/i18n-CmVxos8c.js">
|
|
73
|
+
<link rel="stylesheet" crossorigin href="./assets/globals-ungA9FjT.css">
|
|
74
74
|
</head>
|
|
75
75
|
|
|
76
76
|
<body class="antialiased">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./launch-json-removal-
|
|
2
|
-
//# sourceMappingURL=repair-launch-json-
|
|
1
|
+
import{t as e}from"./launch-json-removal-Cxdw1SJA.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-Dk7mB908.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e,o as t,p as n}from"./write-project-skill-
|
|
2
|
-
//# sourceMappingURL=repair-mcp-configs-
|
|
1
|
+
import{i as e,o as t,p as n}from"./write-project-skill-GQSmUhGW.mjs";import{d as r,v as i}from"./init-CKnF84QV.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-C__k-elB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./repair-skills-DltCY6z2.mjs";export{e as repairSkills};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{W as e,js as t}from"./src-C1ipB-PD.mjs";import{Er as n,br as r,hr as i,lr as a,mr as o,pr as s,ur as c,vr as l,wr as u}from"./src-D356u9An.mjs";import{o as d,s as f,t as p,v as m}from"./write-project-skill-BPDDCXLT.mjs";import{n as h,s as g,t as _}from"./colors-BsmVIwfM.mjs";import{n as v,r as y,t as b}from"./skill-teardown-Cn7cfIYa.mjs";import{dirname as x,join as S,relative as C,resolve as w}from"node:path";import{existsSync as T,mkdirSync as E,readFileSync as D,readdirSync as O,rmSync as k,statSync as A,writeFileSync as j}from"node:fs";import{homedir as M}from"node:os";import{createInterface as N}from"node:readline/promises";const P={existsSync:e=>T(e),isDirectory:e=>{try{return A(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>O(e),readFileSync:e=>D(e),writeFileSync:(e,t)=>{j(e,t)},mkdirSync:(e,t)=>{E(e,t)},rmSync:(e,t)=>{k(e,t)}},F={resolveProjectBundledSkillDir:()=>r(`project`,{checkDesktop:!1}),resolveUserBundledSkillDir:e=>r(e,{checkDesktop:!1}),readBundledVersion:()=>c(),readRecordedVersion:e=>s(e,`cli-hosts`),writeRecordedVersion:(e,t)=>i(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>l(e),readBundleDecision:(e,t)=>a(e,t),writeBundleDecision:(e,t,n)=>o(e,t,n),removeBundleFromDisk:(e,t)=>y(e,t)};function I(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function L(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(x(t),{recursive:!0}),R(e,t,n)}function R(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=S(e,r),a=S(t,r);n.isDirectory(i)?R(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function z(e,n,r){return r.existsSync(S(e,`.agents`,`skills`,n))||t.some(t=>r.existsSync(S(e,t.skillsRoot,n)))}function B(e,n,r,i,a,o){let s=[],c=S(e,`.agents`,`skills`,n);if(z(e,n,i)){i.existsSync(c)&&s.push({kind:`central`,path:c,outcome:`skipped-present`});for(let r of t){let t=S(e,r.skillsRoot,n);if(t!==c){if(!i.existsSync(S(e,r.hostDir))){s.push({kind:`host`,editorId:r.editorId,hostDir:r.hostDir,path:t,outcome:`skipped-host-absent`});continue}i.existsSync(t)&&s.push({kind:`host`,editorId:r.editorId,hostDir:r.hostDir,path:t,outcome:`skipped-present`})}}return{entries:s,anyWritten:!1,anyDestinationSucceeded:!0}}let l=i.existsSync(S(e,`.agents`));if(l&&i.existsSync(c))s.push({kind:`central`,path:c,outcome:`skipped-present`});else if(l)try{L(r,c,i),s.push({kind:`central`,path:c,outcome:`written`}),a({event:`user-skill-reclaim-central-written`,scope:`user`,path:c,preexisting:!1,version:o})}catch(e){let t=e instanceof Error?e.message:String(e);s.push({kind:`central`,path:c,outcome:`failed`,error:t}),a({event:`user-skill-reclaim-central-failed`,scope:`user`,path:c,error:t})}for(let l of t){let t=S(e,l.hostDir),u=S(e,l.skillsRoot,n);if(u===c){s.push({kind:`host`,editorId:l.editorId,hostDir:l.hostDir,path:u,outcome:`skipped-collapsed-with-central`});continue}if(!i.existsSync(t)){s.push({kind:`host`,editorId:l.editorId,hostDir:l.hostDir,path:u,outcome:`skipped-host-absent`});continue}if(i.existsSync(u)){s.push({kind:`host`,editorId:l.editorId,hostDir:l.hostDir,path:u,outcome:`skipped-present`});continue}try{L(r,u,i),s.push({kind:`host`,editorId:l.editorId,hostDir:l.hostDir,path:u,outcome:`written`}),a({event:`user-skill-reclaim-host-written`,scope:`user`,editorId:l.editorId,hostDir:l.hostDir,path:u,preexisting:!1,version:o})}catch(e){let t=e instanceof Error?e.message:String(e);s.push({kind:`host`,editorId:l.editorId,hostDir:l.hostDir,path:u,outcome:`failed`,error:t}),a({event:`user-skill-reclaim-host-failed`,scope:`user`,editorId:l.editorId,hostDir:l.hostDir,path:u,error:t})}}return{entries:s,anyWritten:s.some(e=>e.outcome===`written`),anyDestinationSucceeded:s.some(e=>e.outcome===`written`||e.outcome===`skipped-present`)}}function V(e,t){if(!e)return!1;try{return t.existsSync(e)?t.readFileSync(e).toString(`utf8`).includes(`# ok-mcp-`):!1}catch{return!1}}function H(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 f){let o=S(e,t.hostDir,`skills`,`open-knowledge`),s=S(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(!V(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{p(o,e),L(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 U(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 l;try{l=await r.readRecordedVersion(t)}catch(e){a({event:`user-skill-reclaim-version-read-error`,scope:`user`,error:e instanceof Error?e.message:String(e)}),l=null}let d=[],f=null;for(let e of n)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 n of d){let o=u[n.id],s=z(t,o,i),c=await r.readBundleDecision(t,o).catch(()=>null);if(!e(c,{installedOnDisk:s})){if(s)try{r.removeBundleFromDisk(t,n.id),a({event:`user-skill-reclaim-bundle-declined-removed`,scope:`user`,bundle:n.id})}catch(e){a({event:`user-skill-reclaim-bundle-remove-failed`,scope:`user`,bundle:n.id,error:e instanceof Error?e.message:String(e)})}continue}if(c===null&&s)try{await r.writeBundleDecision(t,o,!0)}catch(e){a({event:`user-skill-reclaim-grandfather-write-failed`,scope:`user`,bundle:n.id,error:e instanceof Error?e.message:String(e)})}p.push(n)}if(p.length===0)return{outcome:`skipped`,reason:`all-bundles-declined`};let m=p.every(e=>z(t,u[e.id],i));if(l!==null&&l===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===n.length,_=[];for(let{id:e,sourceDir:n}of p){let r=B(t,u[e],n,i,a,c);h.push(...r.entries),_.push({id:e,anyWritten:r.anyWritten,landed:r.anyDestinationSucceeded,centralFailed:r.entries.some(e=>e.kind===`central`&&e.outcome===`failed`),hostFailed:r.entries.some(e=>e.kind===`host`&&e.outcome===`failed`)})}let v=_.some(e=>e.centralFailed),y=_.every(e=>e.landed);if(g&&y&&!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,anyWritten: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{g||o({ts:s(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,version:c,reason:`bundle-unresolved`});for(let{id:e,centralFailed:t,hostFailed:n}of _)!t&&!n||o({ts:s(),surface:`cli-start`,target:`cli-hosts`,bundle:e,outcome:`failed`,version:c,reason:n?`all-writes-failed`:`central-write-failed`})}return{outcome:`done`,version:c,entries:h}}async function W(e){let t=e.logger??I,n=e.fs??P,r=e.home??M(),i={...F,...e.deps};if(e.reclaimDisableEnv===`1`)return t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`};let a=H(e.projectDir,i,n,t),o=await U(r,i,n,t),s=v(r),c=[],l=!1,u=!1;if(s.skillDirs.length>0||s.emptyDirs.length>0)if(e.confirmLegacyCleanup&&await e.confirmLegacyCleanup(s)){try{c=b(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 G(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 K(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{W as e,js as t}from"./src-C1ipB-PD.mjs";import{Er as n,br as r,hr as i,lr as a,mr as o,pr as s,ur as c,vr as l,wr as u}from"./src-DVlcBUL2.mjs";import{o as d,s as f,t as p,v as m}from"./write-project-skill-GQSmUhGW.mjs";import{n as h,s as g,t as _}from"./colors-BsmVIwfM.mjs";import{n as v,r as y,t as b}from"./skill-teardown-DhZjMVeU.mjs";import{dirname as x,join as S,relative as C,resolve as w}from"node:path";import{existsSync as T,mkdirSync as E,readFileSync as D,readdirSync as O,rmSync as k,statSync as A,writeFileSync as j}from"node:fs";import{homedir as M}from"node:os";import{createInterface as N}from"node:readline/promises";const P={existsSync:e=>T(e),isDirectory:e=>{try{return A(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>O(e),readFileSync:e=>D(e),writeFileSync:(e,t)=>{j(e,t)},mkdirSync:(e,t)=>{E(e,t)},rmSync:(e,t)=>{k(e,t)}},F={resolveProjectBundledSkillDir:()=>r(`project`,{checkDesktop:!1}),resolveUserBundledSkillDir:e=>r(e,{checkDesktop:!1}),readBundledVersion:()=>c(),readRecordedVersion:e=>s(e,`cli-hosts`),writeRecordedVersion:(e,t)=>i(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>l(e),readBundleDecision:(e,t)=>a(e,t),writeBundleDecision:(e,t,n)=>o(e,t,n),removeBundleFromDisk:(e,t)=>y(e,t)};function I(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function L(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(x(t),{recursive:!0}),R(e,t,n)}function R(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=S(e,r),a=S(t,r);n.isDirectory(i)?R(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function z(e,n,r){return r.existsSync(S(e,`.agents`,`skills`,n))||t.some(t=>r.existsSync(S(e,t.skillsRoot,n)))}function B(e,n,r,i,a,o){let s=[],c=S(e,`.agents`,`skills`,n);if(z(e,n,i)){i.existsSync(c)&&s.push({kind:`central`,path:c,outcome:`skipped-present`});for(let r of t){let t=S(e,r.skillsRoot,n);if(t!==c){if(!i.existsSync(S(e,r.hostDir))){s.push({kind:`host`,editorId:r.editorId,hostDir:r.hostDir,path:t,outcome:`skipped-host-absent`});continue}i.existsSync(t)&&s.push({kind:`host`,editorId:r.editorId,hostDir:r.hostDir,path:t,outcome:`skipped-present`})}}return{entries:s,anyWritten:!1,anyDestinationSucceeded:!0}}let l=i.existsSync(S(e,`.agents`));if(l&&i.existsSync(c))s.push({kind:`central`,path:c,outcome:`skipped-present`});else if(l)try{L(r,c,i),s.push({kind:`central`,path:c,outcome:`written`}),a({event:`user-skill-reclaim-central-written`,scope:`user`,path:c,preexisting:!1,version:o})}catch(e){let t=e instanceof Error?e.message:String(e);s.push({kind:`central`,path:c,outcome:`failed`,error:t}),a({event:`user-skill-reclaim-central-failed`,scope:`user`,path:c,error:t})}for(let l of t){let t=S(e,l.hostDir),u=S(e,l.skillsRoot,n);if(u===c){s.push({kind:`host`,editorId:l.editorId,hostDir:l.hostDir,path:u,outcome:`skipped-collapsed-with-central`});continue}if(!i.existsSync(t)){s.push({kind:`host`,editorId:l.editorId,hostDir:l.hostDir,path:u,outcome:`skipped-host-absent`});continue}if(i.existsSync(u)){s.push({kind:`host`,editorId:l.editorId,hostDir:l.hostDir,path:u,outcome:`skipped-present`});continue}try{L(r,u,i),s.push({kind:`host`,editorId:l.editorId,hostDir:l.hostDir,path:u,outcome:`written`}),a({event:`user-skill-reclaim-host-written`,scope:`user`,editorId:l.editorId,hostDir:l.hostDir,path:u,preexisting:!1,version:o})}catch(e){let t=e instanceof Error?e.message:String(e);s.push({kind:`host`,editorId:l.editorId,hostDir:l.hostDir,path:u,outcome:`failed`,error:t}),a({event:`user-skill-reclaim-host-failed`,scope:`user`,editorId:l.editorId,hostDir:l.hostDir,path:u,error:t})}}return{entries:s,anyWritten:s.some(e=>e.outcome===`written`),anyDestinationSucceeded:s.some(e=>e.outcome===`written`||e.outcome===`skipped-present`)}}function V(e,t){if(!e)return!1;try{return t.existsSync(e)?t.readFileSync(e).toString(`utf8`).includes(`# ok-mcp-`):!1}catch{return!1}}function H(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 f){let o=S(e,t.hostDir,`skills`,`open-knowledge`),s=S(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(!V(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{p(o,e),L(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 U(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 l;try{l=await r.readRecordedVersion(t)}catch(e){a({event:`user-skill-reclaim-version-read-error`,scope:`user`,error:e instanceof Error?e.message:String(e)}),l=null}let d=[],f=null;for(let e of n)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 n of d){let o=u[n.id],s=z(t,o,i),c=await r.readBundleDecision(t,o).catch(()=>null);if(!e(c,{installedOnDisk:s})){if(s)try{r.removeBundleFromDisk(t,n.id),a({event:`user-skill-reclaim-bundle-declined-removed`,scope:`user`,bundle:n.id})}catch(e){a({event:`user-skill-reclaim-bundle-remove-failed`,scope:`user`,bundle:n.id,error:e instanceof Error?e.message:String(e)})}continue}if(c===null&&s)try{await r.writeBundleDecision(t,o,!0)}catch(e){a({event:`user-skill-reclaim-grandfather-write-failed`,scope:`user`,bundle:n.id,error:e instanceof Error?e.message:String(e)})}p.push(n)}if(p.length===0)return{outcome:`skipped`,reason:`all-bundles-declined`};let m=p.every(e=>z(t,u[e.id],i));if(l!==null&&l===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===n.length,_=[];for(let{id:e,sourceDir:n}of p){let r=B(t,u[e],n,i,a,c);h.push(...r.entries),_.push({id:e,anyWritten:r.anyWritten,landed:r.anyDestinationSucceeded,centralFailed:r.entries.some(e=>e.kind===`central`&&e.outcome===`failed`),hostFailed:r.entries.some(e=>e.kind===`host`&&e.outcome===`failed`)})}let v=_.some(e=>e.centralFailed),y=_.every(e=>e.landed);if(g&&y&&!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,anyWritten: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{g||o({ts:s(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,version:c,reason:`bundle-unresolved`});for(let{id:e,centralFailed:t,hostFailed:n}of _)!t&&!n||o({ts:s(),surface:`cli-start`,target:`cli-hosts`,bundle:e,outcome:`failed`,version:c,reason:n?`all-writes-failed`:`central-write-failed`})}return{outcome:`done`,version:c,entries:h}}async function W(e){let t=e.logger??I,n=e.fs??P,r=e.home??M(),i={...F,...e.deps};if(e.reclaimDisableEnv===`1`)return t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`};let a=H(e.projectDir,i,n,t),o=await U(r,i,n,t),s=v(r),c=[],l=!1,u=!1;if(s.skillDirs.length>0||s.emptyDirs.length>0)if(e.confirmLegacyCleanup&&await e.confirmLegacyCleanup(s)){try{c=b(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 G(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 K(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 q(){return new m(`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 W({projectDir:w(process.cwd()),reclaimDisableEnv:process.env.OK_RECLAIM_DISABLE??null,confirmLegacyCleanup:t=>J(t,{yes:e.yes===!0})});process.stdout.write(`${K(t)}\n`),process.exitCode=G(t)})}async function J(e,t){let n=M(),r=e=>`~/${C(n,e)}`,i=t.input??process.stdin,a=[``,_(`A previous version of OpenKnowledge installed its skill into agent tools you may never have used.`),h(`(Versions before 0.42 wrote to every host a third-party installer knew about — see issue #820.)`)];if(e.skillDirs.length>0&&a.push(``,`${_(`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(``,`${_(t)} ${e.emptyDirs.length}`,...e.emptyDirs.map(e=>` ${r(e)}`))}if(a.push(``,h(`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(`${g("Not a terminal — skipping cleanup. Re-run with `ok repair-skills --yes` to remove these.")}\n`),!1;let o=N({input:i,output:process.stdout});try{let e=(await o.question(`\n${_(`Remove them?`)} ${h(`[y/N] `)}`)).trim().toLowerCase();return e===`y`||e===`yes`}finally{o.close()}}export{q as n,W as t};
|
|
4
|
-
//# sourceMappingURL=repair-skills-
|
|
4
|
+
//# sourceMappingURL=repair-skills-DltCY6z2.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./src-C1ipB-PD.mjs";import{r as e}from"./logger-DFxEUjvj.mjs";import{dirname as t,join as n,resolve as r}from"node:path";import{fileURLToPath as i}from"node:url";import{closeSync as a,existsSync as o,mkdirSync as s,openSync as c,readFileSync as l,unlinkSync as u,writeFileSync as d,writeSync as f}from"node:fs";import{homedir as p,hostname as m}from"node:os";import{randomUUID as h}from"node:crypto";function g(e){try{return process.kill(e,0),!0}catch(e){return!!(e&&typeof e==`object`&&`code`in e&&e.code===`EPERM`)}}function _(e){return!(typeof e!=`number`||!Number.isInteger(e)||e<2||e>2147483647)}function v(){try{let e=r(t(i(import.meta.url)),`..`,`package.json`),n=JSON.parse(l(e,`utf-8`));if(typeof n.version==`string`&&n.version.length>0)return n.version}catch{}return`0.0.0-unknown`}const y=v(),b=1;function x(e){return new URL(e.url??``,`http://localhost`).searchParams}function S(e){let t=e?.code;return typeof t==`string`?t:void 0}const C=/^[A-Za-z0-9-]{8,64}$/;let w=null;function T(e){return n(e??p(),`.ok`,`machine-id`)}function E(n){if(n===void 0&&w!==null)return w;let r=T(n),i=null;try{let e=l(r,`utf-8`).trim();C.test(e)&&(i=e)}catch{}if(i===null){i=h();try{s(t(r),{recursive:!0}),d(r,`${i}\n`,{encoding:`utf-8`,mode:384})}catch(t){e(`machine-id`).warn({path:r,err:t},`Failed to persist ${r} — using an ephemeral per-process id; lock ownership checks will fail closed (collision) instead of recognizing this machine: ${t instanceof Error?t.message:String(t)}`)}}return n===void 0&&(w=i),i}const D=e(`process-lock`);var O=class extends Error{existing;lockPath;lockName;constructor(e,t,n){super(`OpenKnowledge ${n} already running at ${e.url??`port ${e.port}`} (pid ${e.pid}, started ${e.startedAt}). Stop it first or use a different directory. Lock: ${t}`),this.name=`ProcessLockCollisionError`,this.existing=e,this.lockPath=t,this.lockName=n}};function k(e,t){return r(e,`${t}.lock`)}const A=new Map;function j(e){A.set(e,(A.get(e)??0)+1)}function M(e){let t=A.get(e);return t===void 0||t<=1?(A.delete(e),!0):(A.set(e,t-1),!1)}function N(e){return typeof e.machineId==`string`?e.machineId===E():e.hostname===m()}const P=new Set;let F=!1;function I(e){P.add(e),!F&&(F=!0,process.on(`exit`,()=>{for(let e of P)try{let t=JSON.parse(l(e,`utf-8`));if(t?.pid!==process.pid||typeof t.machineId==`string`&&t.machineId!==E()||t.machineId===void 0&&typeof t.hostname==`string`&&t.hostname!==m())continue;u(e)}catch{}}))}function L(e,t){try{let n=JSON.parse(l(e,`utf-8`));return n&&typeof n==`object`&&_(n.pid)?n:(D.warn({lockPath:e},`${t} Corrupt lock file at ${e} — replacing`),null)}catch{return D.warn({lockPath:e},`${t} Corrupt lock file at ${e} — replacing`),null}}function R(e){let{lockName:t,lockDir:n,metadata:r}=e,i=`[${t}-lock]`;s(n,{recursive:!0});let l=k(n,t),p={pid:process.pid,hostname:m(),port:r.port,...r.url!==void 0&&{url:r.url},startedAt:new Date().toISOString(),worktreeRoot:r.worktreeRoot,machineId:E(),...r.kind!==void 0&&{kind:r.kind},...r.parentPid!==void 0&&{parentPid:r.parentPid},...r.capabilities!==void 0&&{capabilities:r.capabilities},protocolVersion:r.protocolVersion??1,runtimeVersion:r.runtimeVersion??y},h=JSON.stringify(p,null,2);for(let e=0;e<3;e++){if(!o(l))try{let e=c(l,`wx`,384);try{f(e,h)}finally{a(e)}return j(l),I(l),z({lockName:t,lockDir:n,lockPath:l})}catch(e){if(S(e)!==`EEXIST`)throw e}let e=L(l,i);if(e){if(N(e)&&e.pid===process.pid)return d(l,h,{encoding:`utf-8`,mode:384}),j(l),I(l),z({lockName:t,lockDir:n,lockPath:l});if(g(e.pid))throw new O(e,l,t);D.warn({pid:e.pid,host:e.hostname},`${i} Stale lock detected (pid=${e.pid}, host=${e.hostname}) — replacing`)}try{u(l)}catch{}}throw Error(`${i} Failed to acquire ${l} after 3 attempts (concurrent acquire contention).`)}function z(e){let{lockName:t,lockDir:n,lockPath:r}=e;return{lockPath:r,release:()=>q({lockName:t,lockDir:n}),updatePort:(e,r)=>H({lockName:t,lockDir:n,port:e,url:r})}}function B(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!==`http:`&&t.protocol!==`https:`)return null;let n=t.hostname;return n===`localhost`||n===`[::1]`||/^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n)?t.origin:null}function V(e,t){if(typeof e.url==`string`&&e.url.length>0){let t=B(e.url);if(t!==null)return t}if(e.port>0){let n=t?.fallbackHost??`localhost`;return`http://${n===`0.0.0.0`||n===`::`?`localhost`:n.includes(`:`)&&!n.startsWith(`[`)?`[${n}]`:n}:${e.port}`}return null}function H(e){let{lockName:t,lockDir:n,port:r,url:i}=e,a=`[${t}-lock]`,s=k(n,t);if(!o(s)){D.warn({lockPath:s},`${a} Lock file missing at ${s} during port update — skipping`);return}let c;try{let e=JSON.parse(l(s,`utf-8`));if(!e||typeof e!=`object`||!_(e.pid)){D.warn({lockPath:s},`${a} Corrupt lock at ${s} during port update — skipping`);return}c=e}catch{D.warn({lockPath:s},`${a} Unreadable lock at ${s} during port update — skipping`);return}if(c.pid===process.pid&&N(c)){c.port=r,i===void 0?delete c.url:c.url=i;try{d(s,JSON.stringify(c,null,2),{encoding:`utf-8`,mode:384})}catch(e){D.warn({lockPath:s,err:e},`${a} Failed to update port in ${s}: ${e instanceof Error?e.message:String(e)}`)}}}function U(e){let{lockName:t,lockDir:n}=e,r=`[${t}-lock]`,i=k(n,t);if((A.get(i)??0)>1)return;let a;try{let e=JSON.parse(l(i,`utf-8`));if(!e||typeof e!=`object`||!_(e.pid)){D.warn({lockPath:i},`${r} Corrupt lock at ${i} during draining mark — skipping`);return}a=e}catch(e){S(e)!==`ENOENT`&&D.warn({lockPath:i,err:e},`${r} Unreadable lock at ${i} during draining mark — skipping: ${e instanceof Error?e.message:String(e)}`);return}if(a.pid===process.pid&&N(a)&&a.draining!==!0){a.draining=!0;try{d(i,JSON.stringify(a,null,2),{encoding:`utf-8`,mode:384})}catch(e){D.warn({lockPath:i,err:e},`${r} Failed to mark ${i} draining: ${e instanceof Error?e.message:String(e)}`)}}}function W(e){let{lockName:t,lockDir:n}=e,r=k(n,t);if(!o(r))return null;let i;try{let e=JSON.parse(l(r,`utf-8`));if(!e||typeof e!=`object`||!_(e.pid))return null;i=e}catch{return null}if(!N(i))return null;if(!g(i.pid)){try{u(r)}catch{}return null}return i}function G(e){let{lockName:t,lockDir:n}=e,r=k(n,t);if(!o(r))return{status:`absent`};let i;try{i=JSON.parse(l(r,`utf-8`))}catch{return{status:`incompatible`,reason:`corrupt`,raw:void 0}}if(!i||typeof i!=`object`)return{status:`incompatible`,reason:`corrupt`,raw:i};let a=i;if(!_(a.pid)||typeof a.hostname!=`string`||typeof a.port!=`number`||typeof a.startedAt!=`string`||typeof a.worktreeRoot!=`string`)return{status:`incompatible`,reason:`corrupt`,raw:i};let s={pid:a.pid,hostname:a.hostname,port:a.port,url:typeof a.url==`string`?a.url:void 0,startedAt:a.startedAt,worktreeRoot:a.worktreeRoot,machineId:typeof a.machineId==`string`?a.machineId:void 0,draining:a.draining===!0?!0:void 0,capabilities:Array.isArray(a.capabilities)&&a.capabilities.every(e=>typeof e==`string`)?a.capabilities:void 0,protocolVersion:typeof a.protocolVersion==`number`?a.protocolVersion:void 0,runtimeVersion:typeof a.runtimeVersion==`string`?a.runtimeVersion:void 0};if(!N(s))return{status:`stale`,lock:s};if(!g(s.pid)){try{u(r)}catch{}return{status:`stale`,lock:s}}return s.protocolVersion===void 0||s.runtimeVersion===void 0?{status:`incompatible`,reason:`missing-fields`,raw:i}:{status:`live`,lock:s}}async function K(e){let{lockName:t,lockDir:n}=e,r=e.timeoutMs??1e4,i=e.pollIntervalMs??100,a=e.readLock??(()=>W({lockName:t,lockDir:n})),o=e.sleep??(e=>new Promise(t=>setTimeout(t,e))),s=a();if(s===null||s.draining!==!0)return`no-drain`;let c=Date.now()+r;for(;Date.now()<c;){await o(i);let e=a();if(e===null)return`released`;if(e.draining!==!0)return`no-drain`}return`timeout`}function q(e){let{lockName:t,lockDir:n,deferUnlinkToExit:r=!1}=e,i=`[${t}-lock]`,a=k(n,t);if(M(a)){if(r){U({lockName:t,lockDir:n});return}if(o(a))try{let e=JSON.parse(l(a,`utf-8`));if(!e||typeof e!=`object`||typeof e.pid!=`number`||e.pid!==process.pid||!N(e))return;u(a),P.delete(a)}catch(e){D.warn({lockPath:a,err:e},`${i} Failed to release ${a}: ${e instanceof Error?e.message:String(e)}`)}}}var J=class extends O{constructor(e,t){super(e,t,`server`),this.name=`ServerLockCollisionError`}};function Y(e,t){try{return R({lockName:`server`,lockDir:e,metadata:t}).lockPath}catch(e){throw e instanceof O&&e.lockName===`server`?new J(e.existing,e.lockPath):e}}function X(e,t,n){H({lockName:`server`,lockDir:e,port:t,url:n})}function Z(e){return W({lockName:`server`,lockDir:e})}function Q(e,t){q({lockName:`server`,lockDir:e,...t})}function $(e){U({lockName:`server`,lockDir:e})}function ee(e,t){return K({lockName:`server`,lockDir:e,...t})}export{_ as C,g as S,E as _,Q as a,y as b,O as c,k as d,U as f,H as g,q as h,Z as i,R as l,G as m,Y as n,X as o,W as p,$ as r,ee as s,J as t,V as u,S as v,b as x,x as y};
|
|
2
|
+
//# sourceMappingURL=server-lock-CnbGjeVA.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,o as t,r as n}from"./server-lock-CnbGjeVA.mjs";export{n as markServerLockDraining,e as releaseServerLock,t as updateServerLockPort};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{js as e}from"./src-C1ipB-PD.mjs";import{Er as t,wr as n}from"./src-
|
|
2
|
-
//# sourceMappingURL=skill-teardown-
|
|
1
|
+
import{js as e}from"./src-C1ipB-PD.mjs";import{Er as t,wr as n}from"./src-DVlcBUL2.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(e=>n[e]),`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=n[r];o.push({path:a(i,`.agents`,`skills`,t),bundleId:r,scope:`central`});for(let n of e)o.push({path:a(i,n.skillsRoot,t),bundleId:r,scope:`host`,hostDir:n.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-DhZjMVeU.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,Is as t,Ks as n,Ps as r,Sc as i,W as a,_s as o,g as s,gs as c,ps as l,v as u}from"./src-C1ipB-PD.mjs";import{$ as d,$i as f,$n as p,$r as m,$t as h,A as g,Ai as _,An as v,Ar as y,At as b,B as x,Bi as S,Bn as C,Bt as w,C as T,Ca as E,Cn as D,Cr as O,Ct as k,D as A,Di as j,Dn as M,Dr as N,Dt as P,E as F,Ei as I,En as L,Er as R,Et as z,F as B,Fi as V,Fn as H,Fr as U,Ft as W,G,Gi as K,Gn as q,Gr as J,Gt as Y,H as X,Hi as Z,Hn as Q,Ht as $,I as ee,Ii as te,In as ne,Ir as re,It as ie,J as ae,Ji as oe,Jn as se,Jr as ce,Jt as le,K as ue,Ki as de,Kn as fe,Kr as pe,Kt as me,L as he,Li as ge,Ln as _e,Lr as ve,Lt as ye,M as be,Mi as xe,Mn as Se,Mr as Ce,Mt as we,N as Te,Ni as Ee,Nn as De,Nr as Oe,Nt as ke,O as Ae,Oi as je,On as Me,Or as Ne,Ot as Pe,P as Fe,Pi as Ie,Pn as Le,Pr as Re,Pt as ze,Q as Be,Qi as Ve,Qn as He,Qr as Ue,Qt as We,R as Ge,Ri as Ke,Rn as qe,Rt as Je,S as Ye,Sa as Xe,Si as Ze,Sn as Qe,Sr as $e,St as et,T as tt,Ta as nt,Ti as rt,Tn as it,Tr as at,Tt as ot,U as st,Ui as ct,Un as lt,Ur as ut,Ut as dt,V as ft,Vi as pt,Vn as mt,Vt as ht,W as gt,Wi as _t,Wn as vt,Wr as yt,Wt as bt,X as xt,Xi as St,Xn as Ct,Xr as wt,Xt as Tt,Y as Et,Yi as Dt,Yn as Ot,Yr as kt,Yt as At,Z as jt,Zi as Mt,Zn as Nt,Zr as Pt,Zt as Ft,_ as It,_a as Lt,_i as Rt,_n as zt,_r as Bt,_t as Vt,a as Ht,aa as Ut,ai as Wt,an as Gt,ar as Kt,at as qt,b as Jt,ba as Yt,bi as Xt,bn as Zt,br as Qt,bt as $t,c as en,ca as tn,ci as nn,cn as rn,cr as an,d as on,da as sn,di as cn,dn as ln,dr as un,ea as dn,ei as fn,en as pn,er as mn,et as hn,f as gn,fa as _n,fi as vn,fn as yn,fr as bn,g as xn,ga as Sn,gi as Cn,gn as wn,gr as Tn,gt as En,h as Dn,ha as On,hi as kn,hn as An,hr as jn,ht as Mn,i as Nn,ia as Pn,ii as Fn,in as In,ir as Ln,it as Rn,j as zn,ji as Bn,jn as Vn,jr as Hn,jt as Un,k as Wn,ki as Gn,kn as Kn,kr as qn,kt as Jn,l as Yn,la as Xn,li as Zn,ln as Qn,lr as $n,m as er,ma as tr,mi as nr,mn as rr,mr as ir,mt as ar,n as or,na as sr,ni as cr,nn as lr,nr as ur,nt as dr,o as fr,oa as pr,oi as mr,on as hr,or as gr,ot as _r,p as vr,pa as yr,pi as br,pn as xr,pr as Sr,q as Cr,qi as wr,qn as Tr,qr as Er,qt as Dr,r as Or,ra as kr,ri as Ar,rn as jr,rr as Mr,rt as Nr,s as Pr,sa as Fr,si as Ir,sn as Lr,sr as Rr,st as zr,t as Br,ta as Vr,ti as Hr,tn as Ur,tr as Wr,tt as Gr,u as Kr,ua as qr,ui as Jr,un as Yr,ur as Xr,v as Zr,va as Qr,vi as $r,vn as ei,vr as ti,vt as ni,w as ri,wa as ii,wi as ai,wn as oi,wr as si,wt as ci,x as li,xa as ui,xi as di,xn as fi,xr as pi,xt as mi,y as hi,ya as gi,yi as _i,yn as vi,yr as yi,yt as bi,z as xi,zi as Si,zn as Ci,zt as wi}from"./src-D356u9An.mjs";import{C as Ti,E as Ei,T as Di,_ as Oi,b as ki,c as Ai,d as ji,g as Mi,i as Ni,l as Pi,m as Fi,n as Ii,p as Li,s as Ri,t as zi,u as Bi,v as Vi,w as Hi,x as Ui,y as Wi}from"./fs-traced-CJ0NSnI0.mjs";import{a as Gi,d as Ki,f as qi,i as Ji,l as Yi,n as Xi,r as Zi,t as Qi,u as $i}from"./logger-DFxEUjvj.mjs";import{C as ea,S as ta,_ as na,a as ra,c as ia,d as aa,g as oa,h as sa,i as ca,l as la,m as ua,n as da,o as fa,p as pa,r as ma,s as ha,t as ga,u as _a,v as va,y as ya}from"./server-lock-BmpC4xda.mjs";export{Sn as AGENT_ID_MAX_LEN,Lt as AGENT_ID_RE,xe as AGENT_WRITE_ORIGIN,E as AcpPermissionStore,Yt as AcpRegistry,j as AcpThreadManager,rt as AgentFocusBroadcaster,ai as AgentPresenceBroadcaster,Ee as AgentSessionCapacityError,Ie as AgentSessionManager,Mn as AutoStartDisabledError,$e as BUNDLE_IDS,O as BUNDLE_SCOPE,si as BUNDLE_SKILL_NAME,Wr as BacklinkIndex,_t as CC1Broadcaster,t as CC1_CONTRACT_VERSION,An as CONFIG_FILENAME,Ot as CONFLICT_MARKER_RE,J as CURSOR_BUNDLE_PATHS_BY_PLATFORM,It as ConfigSchema,St as DEFAULT_CHECKPOINT_RETENTION,Jr as DEFAULT_EMBEDDINGS_DIMENSIONS,w as DEFAULT_PACK_ID,ft as DocumentDurabilityState,cn as EMBEDDINGS_API_KEY_ENV,D as ExposureConsentError,ui as FEATURED_AGENT_IDS,Mt as FILE_SYSTEM_WRITER,p as FILE_WATCHER_ORIGIN,Fn as FileEmbeddingsBackend,lr as GIT_PREFLIGHT_FAIL_SPAN_NAME,Ve as GIT_UPSTREAM_WRITER,ii as GitDirAccessError,In as GitNotAvailableError,Gt as GitTooOldError,En as HOCUSPOCUS_AUTH_REJECTION_REASONS,Vt as HocuspocusAuthRejection,ni as HocuspocusAuthTokenSchema,Pt as INSTALLED_AGENTS_SCHEMES,r as LINEAGE_EPOCH_KEY,Ge as LIVE_DERIVED_INDEX_DEBOUNCE_MS,ht as LOG_MD_TEMPLATE,ot as MANAGED_RENAME_ORIGIN,je as MAX_ACP_THREADS,V as MAX_AGENT_SESSIONS,_ as MCP_CONNECTION_ID_HEADER,l as MCP_SERVER_NAME,te as MIN_EVICTABLE_IDLE_MS,hr as MIN_GIT_VERSION,X as MISSING_OK_CONFIG_MESSAGE,nt as MalformedGitPointerError,hn as McpLogger,st as MissingOkConfigError,Ke as OBSERVER_SYNC_ORIGIN,wn as OK_OKIGNORE_TEMPLATE,at as ONBOARDING_BUNDLE_IDS,c as ORPHAN_MODES,i as PROTOCOL_VERSION,Qi as PinoLogger,ia as ProcessLockCollisionError,Yn as ProjectGitInitError,z as ROLLBACK_ORIGIN,zt as ROOT_GITIGNORE_TEMPLATE,na as RUNTIME_VERSION,f as SERVICE_WRITER,Bt as SKILL_INSTALL_EVENTS_FILE_REL,e as SKILL_STATE_TARGETS,$ as STARTER_FOLDERS,dt as STARTER_FOLDER_FRONTMATTER_FILENAME,bt as STARTER_PACKS,Y as STARTER_PACK_IDS,me as STARTER_TEMPLATES,tt as STATE_MANIFEST_FILENAME,va as STATE_SCHEMA_VERSION,n as SYSTEM_DOC_NAME,We as SeedPrerequisiteError,h as SeedRootDirError,ga as ServerLockCollisionError,Br as SingleFileNotAFileError,or as SingleFileNotFoundError,Or as SingleFileNotMarkdownError,F as StateManifestError,mn as TagIndex,R as USER_GLOBAL_BUNDLE_IDS,we as UiLockCollisionError,P as __getShowAllWalkStatsForTesting,Pe as __resetShowAllWalkStatsForTesting,la as acquireProcessLock,da as acquireServerLock,ke as acquireUiLock,ge as applyAgentMarkdownWrite,Tr as applyExternalChange,wi as applySeed,A as assertCompatibleStateManifest,Lr as assertGitAvailable,H as assertNeverDiskEvent,I as attachAcpThreadSocket,ar as attachIdleShutdown,Zr as bootServer,Mr as buildAndOpenSkill,ei as buildConfigYmlContent,Et as buildExecResult,oi as buildIngressPolicy,Gn as buildOkMcpStdioCommand,yi as buildSkillZip,Dr as buildStarterFolderFrontmatterYaml,dn as buildWipTree,N as bundleSkillMdPath,Wt as canonicalProjectKey,ne as classifyEvents,zi as classifyFsPath,mr as clearAllEmbeddingsKeys,br as clearContributors,le as coercePackId,s as colorFromSeed,Vr as commitUpstreamImport,sr as commitWip,kr as commitWipFromTree,rn as compareSemver,y as composeEffectiveLinterConfig,Hn as composeFrontmatterSchemasConfig,Ct as containsConflictMarkers,_e as contentHash,nr as contributorCount,Fe as countShadowObjects,B as countStaleAgentWipRefs,ee as countWipRefs,Jn as createApiExtension,ci as createAssetServeMiddleware,G as createCollaborationHost,ut as createContentFilter,yt as createContentFilterAsync,Ir as createEmbeddingsSecretStore,Nn as createEphemeralProjectDir,se as createExternalChangeHandler,gn as createFileLogger,xi as createLiveDerivedIndexExtension,Cr as createMcpHttpHandler,Ue as createOsProbe,Te as createPersistenceExtension,T as createServer,zn as createServerObserverExtension,pt as createStreamingErrorWriter,Xi as createTestLogger,nn as describeStoredEmbeddingsKey,xn as detectClaudeDesktopPresence,Qn as detectGit,Ae as detectProjectShape,Ln as detectUserSkillHosts,Nr as discoverLockDirs,Re as discoverMarkdownlintConfig,jr as emitPreflightFailureSpan,xt as encodeDocName,jt as encodeFolderRoute,Be as encodeSkillRoute,Kr as ensureProjectGit,vi as ensureProjectSkillGitignore,Z as errorResponse,qe as evictStaleTrackerEntries,b as extractHeadings,Rn as extractOkBinaryPath,ur as extractWikiLinksFromMarkdown,Yr as fallbackPaths,on as findEnclosingGitRoot,De as findEnclosingProjectRoot,U as findNativeMarkdownlintFile,vr as flushFileLogger,bi as formatAuthRejectionWire,kn as formatContributors,Cn as formatContributorsFrom,ye as formatPackRationale,Pn as gcCheckpointRefs,Gr as getCurrentMcpLogger,it as getIngressContext,Xt as getLocalDir,er as getLogFilePath,Zi as getLogger,Dn as getLogsDir,ya as getMachineId,Wi as getMeter,sn as getMetrics,ki as getTracer,_n as handleCollabSocketError,pe as handleSpawnCursor,L as hasForwardingHeaders,he as hasGcLogLatch,u as iconFromClientName,yr as incrementCollabSocketFilteredError,tr as incrementServerObserverFire,Zt as initContent,Ut as initShadowRepo,Ui as initTelemetry,Jt as initToleranceTelemetryWriter,zr as installPrettyZodErrors,Ji as installTestLoggers,Kt as installUserSkill,Se as isAllowedApiOrigin,v as isAllowedWorkspaceHostHeader,K as isConfigDoc,$t as isHocuspocusAuthRejectionReason,M as isHostAdmitted,At as isKnownPackId,de as isLinkIndexExcludedDoc,Vn as isLoopbackAddress,wr as isManagedArtifactDoc,Me as isOriginAdmitted,o as isOrphanMode,Si as isPairedWriteOrigin,Er as isPathWithinDir,Kn as isPeerAdmitted,ta as isProcessAlive,Le as isProjectRoot,oe as isReservedForUserTree,Ci as isSelfWrite,Dt as isSystemDoc,li as isToleranceTelemetryEnabled,ea as isValidLockPid,C as lastKnownHash,pr as listRescueCheckpoints,Tt as listStarterPacks,Xe as loadCustomAgents,be as loadPrincipal,_a as lockBaseUrl,aa as lockFilePath,Gi as loggerFactory,Yi as logsCurrentPath,$i as logsPreviousPath,Zn as makeLazyEmbeddingsKeyStore,ma as markServerLockDraining,gt as mountMcpAndApi,Ii as normalizeFsPath,Ne as originGitHubHost,fi as packageVersionMajorMinor,mi as parseAuthRejectionWire,ln as parseGitVersion,et as parseHocuspocusAuthToken,ue as parseKeepaliveConnectionId,mt as pathToDocName,Je as planSeed,Ht as prepareSingleFileOpen,qt as processCommand,_r as processUsage,an as readAllTargets,$n as readBundleDecision,re as readOwnNativeRules,pa as readProcessLock,ua as readProcessLockDetailed,x as readProjectHeadState,Ar as readProjectLocalSemanticConfig,ca as readServerLock,Xr as readServerPackageVersion,un as readSkillInstallStateSnapshot,Wn as readStateManifest,bn as readTargetRecordedAt,Sr as readTargetVersion,ze as readUiLock,Nt as reconcile,Rt as recordContributor,ti as recordSkillInstallEvent,ae as registerAllTools,Q as registerWrite,sa as releaseProcessLock,ra as releaseServerLock,W as releaseUiLock,lt as removeLastKnownHash,Rr as reportSkillInstall,On as resetMetrics,gr as resolveBuiltinSkillHosts,a as resolveBundleEnabled,Qt as resolveBundledSkillDir,di as resolveContentDir,ce as resolveCursorBinaryDefault,kt as resolveCursorSpawnInvocation,Ce as resolveEffectiveLinterConfig,vn as resolveEmbeddingsCredential,Ze as resolveLockDir,Oe as resolveNativeConfigForDoc,ve as resolveNativeMarkdownlintConfig,Ft as resolvePack,Pr as resolvePackageVersion,Tn as resolveSkillInstallReportSettings,d as resolveUiInfo,$r as restoreContributors,hi as restoreLifecycleFromConflictsJson,Hr as rewriteMarkdownLinksForDocumentRename,cr as rewriteWikiLinksForDocumentRename,yn as runAuthReposSubprocess,xr as runAuthStatusSubprocess,pn as runCloneSubprocess,rr as runDeviceFlowSubprocess,dr as runWithMcpLogger,fn as safeContentPath,Un as safeSubdir,Fr as safetyCheckpoint,Bn as sanitizeClientName,tn as saveInMemoryCheckpoint,Xn as saveVersion,k as seedBasenameIndex,fr as serializeError,Ti as setActiveSpanAttributes,S as setupServerObservers,qr as shadowGit,Hi as shutdownTelemetry,Ki as spansCurrentPath,qi as spansPreviousPath,wt as spawnDetached,He as splitMarkdownBlocks,vt as startWatcher,ct as streamingProblemEvent,_i as swapContributors,Ye as teardownToleranceTelemetryWriter,Qr as toBroadcasterKey,Ni as tracedAppendFileSync,Ri as tracedLinkSync,Ai as tracedMkdir,Pi as tracedMkdirSync,Bi as tracedRename,ji as tracedRenameSync,Li as tracedRmSync,Fi as tracedRmdirSync,Mi as tracedUnlinkSync,Oi as tracedWriteFile,Vi as tracedWriteFileSync,ri as trustSystemCertificates,en as untrackTrackedProjectSkillProjection,q as updateLastKnownHash,oa as updateProcessLockPort,fa as updateServerLockPort,ie as updateUiLockPort,gi as validateAgentId,Ur as validateCloneInputs,pi as validateSkillZip,ha as waitForServerLockDrain,m as withHiddenWindowsConsole,Di as withSpan,Ei as withSpanSync,ir as writeBundleDecision,qn as writeMarkdownlintRule,Qe as writeRootGitignoreForNewRepo,g as writeStateManifest,jn as writeTargetVersion,fe as writeTracker};
|
|
1
|
+
import{B as e,Is as t,Ks as n,Ps as r,Sc as i,W as a,_s as o,g as s,gs as c,ps as l,v as u}from"./src-C1ipB-PD.mjs";import{$ as d,$i as f,$n as p,$r as m,$t as h,A as g,Ai as _,An as v,Ar as y,At as b,B as x,Bi as S,Bn as C,Bt as w,C as T,Ca as E,Cn as D,Cr as O,Ct as k,D as A,Di as j,Dn as M,Dr as N,Dt as P,E as F,Ei as I,En as L,Er as R,Et as z,F as B,Fi as V,Fn as H,Fr as U,Ft as W,G,Gi as K,Gn as q,Gr as J,Gt as Y,H as X,Hi as Z,Hn as Q,Ht as $,I as ee,Ii as te,In as ne,Ir as re,It as ie,J as ae,Ji as oe,Jn as se,Jr as ce,Jt as le,K as ue,Ki as de,Kn as fe,Kr as pe,Kt as me,L as he,Li as ge,Ln as _e,Lr as ve,Lt as ye,M as be,Mi as xe,Mn as Se,Mr as Ce,Mt as we,N as Te,Ni as Ee,Nn as De,Nr as Oe,Nt as ke,O as Ae,Oi as je,On as Me,Or as Ne,Ot as Pe,P as Fe,Pi as Ie,Pn as Le,Pr as Re,Pt as ze,Q as Be,Qi as Ve,Qn as He,Qr as Ue,Qt as We,R as Ge,Ri as Ke,Rn as qe,Rt as Je,S as Ye,Sa as Xe,Si as Ze,Sn as Qe,Sr as $e,St as et,T as tt,Ta as nt,Ti as rt,Tn as it,Tr as at,Tt as ot,U as st,Ui as ct,Un as lt,Ur as ut,Ut as dt,V as ft,Vi as pt,Vn as mt,Vt as ht,W as gt,Wi as _t,Wn as vt,Wr as yt,Wt as bt,X as xt,Xi as St,Xn as Ct,Xr as wt,Xt as Tt,Y as Et,Yi as Dt,Yn as Ot,Yr as kt,Yt as At,Z as jt,Zi as Mt,Zn as Nt,Zr as Pt,Zt as Ft,_ as It,_a as Lt,_i as Rt,_n as zt,_r as Bt,_t as Vt,a as Ht,aa as Ut,ai as Wt,an as Gt,ar as Kt,at as qt,b as Jt,ba as Yt,bi as Xt,bn as Zt,br as Qt,bt as $t,c as en,ca as tn,ci as nn,cn as rn,cr as an,d as on,da as sn,di as cn,dn as ln,dr as un,ea as dn,ei as fn,en as pn,er as mn,et as hn,f as gn,fa as _n,fi as vn,fn as yn,fr as bn,g as xn,ga as Sn,gi as Cn,gn as wn,gr as Tn,gt as En,h as Dn,ha as On,hi as kn,hn as An,hr as jn,ht as Mn,i as Nn,ia as Pn,ii as Fn,in as In,ir as Ln,it as Rn,j as zn,ji as Bn,jn as Vn,jr as Hn,jt as Un,k as Wn,ki as Gn,kn as Kn,kr as qn,kt as Jn,l as Yn,la as Xn,li as Zn,ln as Qn,lr as $n,m as er,ma as tr,mi as nr,mn as rr,mr as ir,mt as ar,n as or,na as sr,ni as cr,nn as lr,nr as ur,nt as dr,o as fr,oa as pr,oi as mr,on as hr,or as gr,ot as _r,p as vr,pa as yr,pi as br,pn as xr,pr as Sr,q as Cr,qi as wr,qn as Tr,qr as Er,qt as Dr,r as Or,ra as kr,ri as Ar,rn as jr,rr as Mr,rt as Nr,s as Pr,sa as Fr,si as Ir,sn as Lr,sr as Rr,st as zr,t as Br,ta as Vr,ti as Hr,tn as Ur,tr as Wr,tt as Gr,u as Kr,ua as qr,ui as Jr,un as Yr,ur as Xr,v as Zr,va as Qr,vi as $r,vn as ei,vr as ti,vt as ni,w as ri,wa as ii,wi as ai,wn as oi,wr as si,wt as ci,x as li,xa as ui,xi as di,xn as fi,xr as pi,xt as mi,y as hi,ya as gi,yi as _i,yn as vi,yr as yi,yt as bi,z as xi,zi as Si,zn as Ci,zt as wi}from"./src-DVlcBUL2.mjs";import{C as Ti,E as Ei,T as Di,_ as Oi,b as ki,c as Ai,d as ji,g as Mi,i as Ni,l as Pi,m as Fi,n as Ii,p as Li,s as Ri,t as zi,u as Bi,v as Vi,w as Hi,x as Ui,y as Wi}from"./fs-traced-CJ0NSnI0.mjs";import{a as Gi,d as Ki,f as qi,i as Ji,l as Yi,n as Xi,r as Zi,t as Qi,u as $i}from"./logger-DFxEUjvj.mjs";import{C as ea,S as ta,_ as na,a as ra,b as ia,c as aa,d as oa,g as sa,h as ca,i as la,l as ua,m as da,n as fa,o as pa,p as ma,r as ha,s as ga,t as _a,u as va,x as ya}from"./server-lock-CnbGjeVA.mjs";export{Sn as AGENT_ID_MAX_LEN,Lt as AGENT_ID_RE,xe as AGENT_WRITE_ORIGIN,E as AcpPermissionStore,Yt as AcpRegistry,j as AcpThreadManager,rt as AgentFocusBroadcaster,ai as AgentPresenceBroadcaster,Ee as AgentSessionCapacityError,Ie as AgentSessionManager,Mn as AutoStartDisabledError,$e as BUNDLE_IDS,O as BUNDLE_SCOPE,si as BUNDLE_SKILL_NAME,Wr as BacklinkIndex,_t as CC1Broadcaster,t as CC1_CONTRACT_VERSION,An as CONFIG_FILENAME,Ot as CONFLICT_MARKER_RE,J as CURSOR_BUNDLE_PATHS_BY_PLATFORM,It as ConfigSchema,St as DEFAULT_CHECKPOINT_RETENTION,Jr as DEFAULT_EMBEDDINGS_DIMENSIONS,w as DEFAULT_PACK_ID,ft as DocumentDurabilityState,cn as EMBEDDINGS_API_KEY_ENV,D as ExposureConsentError,ui as FEATURED_AGENT_IDS,Mt as FILE_SYSTEM_WRITER,p as FILE_WATCHER_ORIGIN,Fn as FileEmbeddingsBackend,lr as GIT_PREFLIGHT_FAIL_SPAN_NAME,Ve as GIT_UPSTREAM_WRITER,ii as GitDirAccessError,In as GitNotAvailableError,Gt as GitTooOldError,En as HOCUSPOCUS_AUTH_REJECTION_REASONS,Vt as HocuspocusAuthRejection,ni as HocuspocusAuthTokenSchema,Pt as INSTALLED_AGENTS_SCHEMES,r as LINEAGE_EPOCH_KEY,Ge as LIVE_DERIVED_INDEX_DEBOUNCE_MS,ht as LOG_MD_TEMPLATE,ot as MANAGED_RENAME_ORIGIN,je as MAX_ACP_THREADS,V as MAX_AGENT_SESSIONS,_ as MCP_CONNECTION_ID_HEADER,l as MCP_SERVER_NAME,te as MIN_EVICTABLE_IDLE_MS,hr as MIN_GIT_VERSION,X as MISSING_OK_CONFIG_MESSAGE,nt as MalformedGitPointerError,hn as McpLogger,st as MissingOkConfigError,Ke as OBSERVER_SYNC_ORIGIN,wn as OK_OKIGNORE_TEMPLATE,at as ONBOARDING_BUNDLE_IDS,c as ORPHAN_MODES,i as PROTOCOL_VERSION,Qi as PinoLogger,aa as ProcessLockCollisionError,Yn as ProjectGitInitError,z as ROLLBACK_ORIGIN,zt as ROOT_GITIGNORE_TEMPLATE,ia as RUNTIME_VERSION,f as SERVICE_WRITER,Bt as SKILL_INSTALL_EVENTS_FILE_REL,e as SKILL_STATE_TARGETS,$ as STARTER_FOLDERS,dt as STARTER_FOLDER_FRONTMATTER_FILENAME,bt as STARTER_PACKS,Y as STARTER_PACK_IDS,me as STARTER_TEMPLATES,tt as STATE_MANIFEST_FILENAME,ya as STATE_SCHEMA_VERSION,n as SYSTEM_DOC_NAME,We as SeedPrerequisiteError,h as SeedRootDirError,_a as ServerLockCollisionError,Br as SingleFileNotAFileError,or as SingleFileNotFoundError,Or as SingleFileNotMarkdownError,F as StateManifestError,mn as TagIndex,R as USER_GLOBAL_BUNDLE_IDS,we as UiLockCollisionError,P as __getShowAllWalkStatsForTesting,Pe as __resetShowAllWalkStatsForTesting,ua as acquireProcessLock,fa as acquireServerLock,ke as acquireUiLock,ge as applyAgentMarkdownWrite,Tr as applyExternalChange,wi as applySeed,A as assertCompatibleStateManifest,Lr as assertGitAvailable,H as assertNeverDiskEvent,I as attachAcpThreadSocket,ar as attachIdleShutdown,Zr as bootServer,Mr as buildAndOpenSkill,ei as buildConfigYmlContent,Et as buildExecResult,oi as buildIngressPolicy,Gn as buildOkMcpStdioCommand,yi as buildSkillZip,Dr as buildStarterFolderFrontmatterYaml,dn as buildWipTree,N as bundleSkillMdPath,Wt as canonicalProjectKey,ne as classifyEvents,zi as classifyFsPath,mr as clearAllEmbeddingsKeys,br as clearContributors,le as coercePackId,s as colorFromSeed,Vr as commitUpstreamImport,sr as commitWip,kr as commitWipFromTree,rn as compareSemver,y as composeEffectiveLinterConfig,Hn as composeFrontmatterSchemasConfig,Ct as containsConflictMarkers,_e as contentHash,nr as contributorCount,Fe as countShadowObjects,B as countStaleAgentWipRefs,ee as countWipRefs,Jn as createApiExtension,ci as createAssetServeMiddleware,G as createCollaborationHost,ut as createContentFilter,yt as createContentFilterAsync,Ir as createEmbeddingsSecretStore,Nn as createEphemeralProjectDir,se as createExternalChangeHandler,gn as createFileLogger,xi as createLiveDerivedIndexExtension,Cr as createMcpHttpHandler,Ue as createOsProbe,Te as createPersistenceExtension,T as createServer,zn as createServerObserverExtension,pt as createStreamingErrorWriter,Xi as createTestLogger,nn as describeStoredEmbeddingsKey,xn as detectClaudeDesktopPresence,Qn as detectGit,Ae as detectProjectShape,Ln as detectUserSkillHosts,Nr as discoverLockDirs,Re as discoverMarkdownlintConfig,jr as emitPreflightFailureSpan,xt as encodeDocName,jt as encodeFolderRoute,Be as encodeSkillRoute,Kr as ensureProjectGit,vi as ensureProjectSkillGitignore,Z as errorResponse,qe as evictStaleTrackerEntries,b as extractHeadings,Rn as extractOkBinaryPath,ur as extractWikiLinksFromMarkdown,Yr as fallbackPaths,on as findEnclosingGitRoot,De as findEnclosingProjectRoot,U as findNativeMarkdownlintFile,vr as flushFileLogger,bi as formatAuthRejectionWire,kn as formatContributors,Cn as formatContributorsFrom,ye as formatPackRationale,Pn as gcCheckpointRefs,Gr as getCurrentMcpLogger,it as getIngressContext,Xt as getLocalDir,er as getLogFilePath,Zi as getLogger,Dn as getLogsDir,na as getMachineId,Wi as getMeter,sn as getMetrics,ki as getTracer,_n as handleCollabSocketError,pe as handleSpawnCursor,L as hasForwardingHeaders,he as hasGcLogLatch,u as iconFromClientName,yr as incrementCollabSocketFilteredError,tr as incrementServerObserverFire,Zt as initContent,Ut as initShadowRepo,Ui as initTelemetry,Jt as initToleranceTelemetryWriter,zr as installPrettyZodErrors,Ji as installTestLoggers,Kt as installUserSkill,Se as isAllowedApiOrigin,v as isAllowedWorkspaceHostHeader,K as isConfigDoc,$t as isHocuspocusAuthRejectionReason,M as isHostAdmitted,At as isKnownPackId,de as isLinkIndexExcludedDoc,Vn as isLoopbackAddress,wr as isManagedArtifactDoc,Me as isOriginAdmitted,o as isOrphanMode,Si as isPairedWriteOrigin,Er as isPathWithinDir,Kn as isPeerAdmitted,ta as isProcessAlive,Le as isProjectRoot,oe as isReservedForUserTree,Ci as isSelfWrite,Dt as isSystemDoc,li as isToleranceTelemetryEnabled,ea as isValidLockPid,C as lastKnownHash,pr as listRescueCheckpoints,Tt as listStarterPacks,Xe as loadCustomAgents,be as loadPrincipal,va as lockBaseUrl,oa as lockFilePath,Gi as loggerFactory,Yi as logsCurrentPath,$i as logsPreviousPath,Zn as makeLazyEmbeddingsKeyStore,ha as markServerLockDraining,gt as mountMcpAndApi,Ii as normalizeFsPath,Ne as originGitHubHost,fi as packageVersionMajorMinor,mi as parseAuthRejectionWire,ln as parseGitVersion,et as parseHocuspocusAuthToken,ue as parseKeepaliveConnectionId,mt as pathToDocName,Je as planSeed,Ht as prepareSingleFileOpen,qt as processCommand,_r as processUsage,an as readAllTargets,$n as readBundleDecision,re as readOwnNativeRules,ma as readProcessLock,da as readProcessLockDetailed,x as readProjectHeadState,Ar as readProjectLocalSemanticConfig,la as readServerLock,Xr as readServerPackageVersion,un as readSkillInstallStateSnapshot,Wn as readStateManifest,bn as readTargetRecordedAt,Sr as readTargetVersion,ze as readUiLock,Nt as reconcile,Rt as recordContributor,ti as recordSkillInstallEvent,ae as registerAllTools,Q as registerWrite,ca as releaseProcessLock,ra as releaseServerLock,W as releaseUiLock,lt as removeLastKnownHash,Rr as reportSkillInstall,On as resetMetrics,gr as resolveBuiltinSkillHosts,a as resolveBundleEnabled,Qt as resolveBundledSkillDir,di as resolveContentDir,ce as resolveCursorBinaryDefault,kt as resolveCursorSpawnInvocation,Ce as resolveEffectiveLinterConfig,vn as resolveEmbeddingsCredential,Ze as resolveLockDir,Oe as resolveNativeConfigForDoc,ve as resolveNativeMarkdownlintConfig,Ft as resolvePack,Pr as resolvePackageVersion,Tn as resolveSkillInstallReportSettings,d as resolveUiInfo,$r as restoreContributors,hi as restoreLifecycleFromConflictsJson,Hr as rewriteMarkdownLinksForDocumentRename,cr as rewriteWikiLinksForDocumentRename,yn as runAuthReposSubprocess,xr as runAuthStatusSubprocess,pn as runCloneSubprocess,rr as runDeviceFlowSubprocess,dr as runWithMcpLogger,fn as safeContentPath,Un as safeSubdir,Fr as safetyCheckpoint,Bn as sanitizeClientName,tn as saveInMemoryCheckpoint,Xn as saveVersion,k as seedBasenameIndex,fr as serializeError,Ti as setActiveSpanAttributes,S as setupServerObservers,qr as shadowGit,Hi as shutdownTelemetry,Ki as spansCurrentPath,qi as spansPreviousPath,wt as spawnDetached,He as splitMarkdownBlocks,vt as startWatcher,ct as streamingProblemEvent,_i as swapContributors,Ye as teardownToleranceTelemetryWriter,Qr as toBroadcasterKey,Ni as tracedAppendFileSync,Ri as tracedLinkSync,Ai as tracedMkdir,Pi as tracedMkdirSync,Bi as tracedRename,ji as tracedRenameSync,Li as tracedRmSync,Fi as tracedRmdirSync,Mi as tracedUnlinkSync,Oi as tracedWriteFile,Vi as tracedWriteFileSync,ri as trustSystemCertificates,en as untrackTrackedProjectSkillProjection,q as updateLastKnownHash,sa as updateProcessLockPort,pa as updateServerLockPort,ie as updateUiLockPort,gi as validateAgentId,Ur as validateCloneInputs,pi as validateSkillZip,ga as waitForServerLockDrain,m as withHiddenWindowsConsole,Di as withSpan,Ei as withSpanSync,ir as writeBundleDecision,qn as writeMarkdownlintRule,Qe as writeRootGitignoreForNewRepo,g as writeStateManifest,jn as writeTargetVersion,fe as writeTracker};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./src-C1ipB-PD.mjs";import"./write-project-skill-GQSmUhGW.mjs";import"./src-DryBqCCq.mjs";import"./acp-harness-probe-DDZTh5_s.mjs";import"./init-CKnF84QV.mjs";import{n as e}from"./loader-BgREGV98.mjs";import"./skill-teardown-DhZjMVeU.mjs";import"./preview-DIcZNxR_.mjs";import"./mcp-migrate-event-B1gJf6bG.mjs";export{e as loadConfig};
|