@inkeep/open-knowledge 0.43.0-beta.3 → 0.43.0-beta.4
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-BtTqdDc1.mjs → acp-harness-probe-C29TtpFg.mjs} +2 -2
- package/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/cli.mjs +16 -16
- package/dist/constants-CKomzGE-.mjs +2 -0
- package/dist/{git-handle-Brc1fNLy.mjs → git-handle-0K5bXuUv.mjs} +2 -2
- package/dist/git-handle-CHTTRKG_.mjs +1 -0
- package/dist/index.d.mts +0 -4
- package/dist/index.mjs +1 -1
- package/dist/init-Bku_ZC-n.mjs +1 -0
- package/dist/{init-C8p7yCX2.mjs → init-DtjPtze9.mjs} +4 -4
- package/dist/{launch-json-removal-Do3ZM3UC.mjs → launch-json-removal-CV_EUvf8.mjs} +2 -2
- package/dist/loader-C-uoLcwu.mjs +1 -0
- package/dist/{loader-DVjQPZbo.mjs → loader-Ctk_4chy.mjs} +2 -2
- package/dist/md-manager-CoB3aHic.mjs +2 -0
- package/dist/{open-browser-CZVSVsTE.mjs → open-browser-Cc2LbDpE.mjs} +2 -2
- package/dist/parse-worker.mjs +1 -1
- package/dist/{preview-D0GN6S4V.mjs → preview-CXgePDni.mjs} +2 -2
- package/dist/preview-bI5ACHfH.mjs +1 -0
- package/dist/public/assets/{ActivityModeContent-DcY2DMsH.js → ActivityModeContent-BO0ca8eq.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-DCaKB1m-.js → AgentDiffPane-V2iLRBtO.js} +1 -1
- package/dist/public/assets/{AgentThreadClientBinder-DmS2wmOY.js → AgentThreadClientBinder-CZAUfo3B.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-BuDk69fH.js → CodeMirrorPropInput-BLK9R867.js} +2 -2
- package/dist/public/assets/{DocumentContext-BlhsCPmc.js → DocumentContext-Bftf-RO1.js} +20 -20
- package/dist/public/assets/{EditorModeToggle-DyeYvRF2.js → EditorModeToggle-DddZKvDr.js} +1 -1
- package/dist/public/assets/{EnableSyncConfirmDialog-D3BVydfv.js → EnableSyncConfirmDialog-B90yUF0U.js} +1 -1
- package/dist/public/assets/FeedbackForm-qjgK9hU-.js +1 -0
- package/dist/public/assets/{GraphPanel-1c013bf_.js → GraphPanel-DR7F40NO.js} +2 -2
- package/dist/public/assets/{LintConfigEditor-IzCFcaas.js → LintConfigEditor-CZZG_L9N.js} +1 -1
- package/dist/public/assets/{ManagedArtifactProperties-ColUfFbc.js → ManagedArtifactProperties-BR9c9CMw.js} +1 -1
- package/dist/public/assets/{McpConsentDialogBody-B6Gwaht3.js → McpConsentDialogBody-Cp2diEY-.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-P11-MZ38.js → MermaidDocEditor-CmqbkkkT.js} +1 -1
- package/dist/public/assets/PropertyPanel-DngwQ5B6.js +2 -0
- package/dist/public/assets/{ReportBugDialogBody-D-51Fi6S.js → ReportBugDialogBody-SE8y_5JJ.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-BNRxJxXG.js → SchemaConfigEditor-Wf9EcJyx.js} +1 -1
- package/dist/public/assets/{SettingsDialogBody-Cxcf7oPC.js → SettingsDialogBody-ld6RZ6z0.js} +3 -3
- package/dist/public/assets/{ShareBranchSwitchDialog-CPxlFKib.js → ShareBranchSwitchDialog-BhpdFPhB.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-BVziJqwR.js → ShareReceiveDialog-BjLjRQLF.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-DgtFYgCB.js → ShareReceiveMissDialog-DrKVsCbl.js} +1 -1
- package/dist/public/assets/{SkillEditorActions-Cs6ruYBc.js → SkillEditorActions-BvixdvJz.js} +1 -1
- package/dist/public/assets/{SourceEditor-BXTJz5Ix.js → SourceEditor-Ds_8a-DF.js} +1 -1
- package/dist/public/assets/{TerminalPanel-ocG4IGRI.js → TerminalPanel-BPpr1BLq.js} +2 -2
- package/dist/public/assets/{TerminalSessionsHost-p10nQyGj.js → TerminalSessionsHost-CTgtneAy.js} +2 -2
- package/dist/public/assets/{TerminalWindowApp-Ci4-2fyd.js → TerminalWindowApp-BZmQ1Iuk.js} +1 -1
- package/dist/public/assets/{ThreadView-D3uOn3E4.js → ThreadView-B4be_-pW.js} +1 -1
- package/dist/public/assets/{TimelineDiffPane-CqUFJz9a.js → TimelineDiffPane-axMRctYB.js} +1 -1
- package/dist/public/assets/{agent-diff-store-CDu00oUs.js → agent-diff-store-DcigMIWV.js} +1 -1
- package/dist/public/assets/{agent-visibility-Doi5rQGj.js → agent-visibility-hcnW3ePC.js} +1 -1
- package/dist/public/assets/auth-state-cache-9XP-_-7q.js +11 -0
- package/dist/public/assets/{client-version-BxRjWpxD.js → client-version-yC4_z6w2.js} +1 -1
- package/dist/public/assets/{config-provider-C6yc5YBH.js → config-provider-D_pm5JRC.js} +2 -2
- package/dist/public/assets/{dist-DmmOGEYy.js → dist-DQ935rCy.js} +170 -170
- package/dist/public/assets/{doc-hash-npYJLwiA.js → doc-hash-B6EHixE8.js} +1 -1
- package/dist/public/assets/{documents-events-DR-3KwvB.js → documents-events-ClVYn3ZQ.js} +1 -1
- package/dist/public/assets/{file-tree-adapter-_Iw9bOfm.js → file-tree-adapter-WO2eqOUz.js} +1 -1
- package/dist/public/assets/{file-tree-utils-D0sM1hl6.js → file-tree-utils-U3Z7J-KU.js} +1 -1
- package/dist/public/assets/{index-CB_F7yyz.js → index-Ci23rOfo.js} +13 -13
- package/dist/public/assets/{lint-config-client-P4Vl5_Ll.js → lint-config-client-DWV4JDNv.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-CgMCf9t4.js → markdownlint-rule-browser-ChtLptSn.js} +1 -1
- package/dist/public/assets/{navigation-targets-DeBO_CiV.js → navigation-targets-7F-Mry5A.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-C3XHRPjz.js → open-managed-artifact-tab-6locbLa6.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-CqjfAzzm.js → pending-receive-nav-store-Cr7aLSIB.js} +1 -1
- package/dist/public/assets/{prop-types-Bhd8xMdJ.js → prop-types-BgTwd2fB.js} +1 -1
- package/dist/public/assets/{receive-store-B0la12DE.js → receive-store-B4EnORIw.js} +1 -1
- package/dist/public/assets/{selection-context-2bZ6fnVY.js → selection-context-A5zmusm7.js} +1 -1
- package/dist/public/assets/{skill-actions-QNwfiy_e.js → skill-actions-CAOP92og.js} +1 -1
- package/dist/public/assets/{skills-api-BM7Qxf1S.js → skills-api-BdOAo6gy.js} +1 -1
- package/dist/public/assets/{src-D-PwH09g.js → src-BnHStkus.js} +1 -1
- package/dist/public/assets/{tag-pill-input-_HZuox-k.js → tag-pill-input-Bj6ZOu8R.js} +1 -1
- package/dist/public/assets/{target-navigation-intent-voqLi0RG.js → target-navigation-intent-Clc1xeK7.js} +1 -1
- package/dist/public/assets/{terminal-launch-events-CgQk_kaz.js → terminal-launch-events-DbAuazOA.js} +1 -1
- package/dist/public/assets/{terminal-telemetry-CBfCAmXL.js → terminal-telemetry-DAKSL1YG.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-B0_asf0o.js → typing-burst-detector-CgO-p170.js} +2 -2
- package/dist/public/assets/{uninstall-C-l5Ivsg.js → uninstall-BJWUalRu.js} +1 -1
- package/dist/public/assets/{use-activity-panel-CC2ch2Ri.js → use-activity-panel-C7sGg6Yo.js} +1 -1
- package/dist/public/assets/{use-apply-config-color-theme-DRPFp4xs.js → use-apply-config-color-theme-D6i9A1kb.js} +2 -2
- package/dist/public/assets/{use-collab-url-BwoofE89.js → use-collab-url-DkF-dRYD.js} +1 -1
- package/dist/public/assets/{use-live-xterm-theme-CEP9y4ZI.js → use-live-xterm-theme-hXLlj822.js} +1 -1
- package/dist/public/assets/{use-settings-route-DPMg_rMU.js → use-settings-route-BAyd5rTq.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-H8JidfQP.js → use-terminal-enabled-kukfhICN.js} +1 -1
- package/dist/public/assets/use-timeline-entry-diff-lQP59BiR.js +6 -0
- package/dist/public/assets/{use-workspace-BIKWmfQe.js → use-workspace-vn1ZfUTi.js} +1 -1
- package/dist/public/assets/{workspace-paths-BJBhipCI.js → workspace-paths-BbK6w2GI.js} +1 -1
- package/dist/public/index.html +35 -35
- package/dist/public/uninstall.html +2 -2
- package/dist/{repair-launch-json-DX0YwjHi.mjs → repair-launch-json-D2cDfheC.mjs} +2 -2
- package/dist/{repair-mcp-configs-DDYZC6Po.mjs → repair-mcp-configs-DZnzv4nx.mjs} +2 -2
- package/dist/{repair-skills-dZDoxvRM.mjs → repair-skills-BdKXPoDn.mjs} +2 -2
- package/dist/repair-skills-BqsCjDWo.mjs +1 -0
- package/dist/server-lock-DrpjR6w5.mjs +1 -0
- package/dist/{server-lock-CH_iezNY.mjs → server-lock-gEf34yIk.mjs} +2 -2
- package/dist/{src-BRIunPu2.mjs → src-BgGi12hW.mjs} +1 -1
- package/dist/{src-Duzu_tVF.mjs → src-BhYwnO0x.mjs} +48 -48
- package/dist/{src-CpxEUq6v.mjs → src-D7dScWZV.mjs} +4 -4
- package/dist/src-Gc6Vd31B.mjs +3271 -0
- package/dist/start-BHIlj-HZ.mjs +1 -0
- package/dist/{start-DMRZAT-1.mjs → start-B_yeELeJ.mjs} +3 -3
- package/dist/{write-project-skill-CJb6JZQ_.mjs → write-project-skill-DOa5Y3Pj.mjs} +3 -3
- package/package.json +4 -4
- package/dist/constants-VzdgUlYN.mjs +0 -2
- package/dist/git-handle-DHnKEzLR.mjs +0 -1
- package/dist/init-D7L1owe_.mjs +0 -1
- package/dist/loader-CZtD2zE4.mjs +0 -1
- package/dist/md-manager-Cz4fhjnd.mjs +0 -2
- package/dist/preview-C9-DF3ta.mjs +0 -1
- package/dist/public/assets/FeedbackForm-DhdtE4G5.js +0 -1
- package/dist/public/assets/PropertyPanel-DVXQWN0C.js +0 -2
- package/dist/public/assets/auth-state-cache-D6s_c1y9.js +0 -11
- package/dist/public/assets/use-timeline-entry-diff-gYsui2K8.js +0 -6
- package/dist/repair-skills-B05O8c60.mjs +0 -1
- package/dist/server-lock-B7mZG_Hv.mjs +0 -1
- package/dist/src-CbnujJE-.mjs +0 -3271
- package/dist/start-DBG7-_mG.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./createLucideIcon-DAkhoPjT.js";import{
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./createLucideIcon-DAkhoPjT.js";import{Fn as i}from"./dist-DQ935rCy.js";var a=r(`copy-plus`,[[`line`,{x1:`15`,x2:`15`,y1:`12`,y2:`18`,key:`1p7wdc`}],[`line`,{x1:`12`,x2:`18`,y1:`15`,y2:`15`,key:`1nscbv`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),o=r(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),s=r(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),c=[`global`,`project`];function l(e){return{project:new Set(e.filter(e=>e.scope===`project`).map(e=>e.name)),global:new Set(e.filter(e=>e.scope===`global`).map(e=>e.name))}}var u=`open-knowledge-pack-`;function d(e){return e.startsWith(u)?e.slice(20):e}function f(){let{_:e}=n();return{project:e({id:`e0NrBM`}),global:e({id:`2GT3Hf`})}}function p(){let{_:e}=n();return{project:e({id:`HyvSqq`}),global:e({id:`C7XjNB`})}}var m=e(t(),1);function h(){let[e]=(0,m.useState)(g);return e}function g(){return i()!=null}function _(e,t,n){let r=n===`\\`?t.replaceAll(`/`,`\\`):t;return`${e.endsWith(n)?e.slice(0,-1):e}${n}${r}`}var v=/\.(md|mdx)$/i;function y(e){return v.test(e)?e:`${e}.md`}export{d as a,p as c,a as d,c as i,s as l,_ as n,l as o,h as r,f as s,y as t,o as u};
|
package/dist/public/index.html
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
-->
|
|
59
59
|
<script>(() => { let t = 'system'; try { const r = localStorage.getItem('ok-theme-v1'); if (r === 'light' || r === 'dark' || r === 'system') t = r; } catch {} let ct = null; try { const c = localStorage.getItem('ok-color-theme-v1'); if (c && ['dracula', 'catppuccin-frappe', 'catppuccin-latte', 'monokai', 'gruvbox', 'solarized', 'custom'].includes(c)) ct = c; } catch {} let dark = t === 'dark'; if (t === 'system') { try { dark = window.matchMedia('(prefers-color-scheme: dark)').matches; } catch {} } let customCss = null; if (ct === 'custom') { try { const raw = localStorage.getItem('ok-custom-theme-v1'); if (raw) { const o = JSON.parse(raw); if (o?.css) { customCss = o.css; dark = !!o.dark; } } } catch {} if (!customCss) ct = null; } else if (ct) { dark = !['catppuccin-latte'].includes(ct); } if (dark) document.documentElement.classList.add('dark'); if (ct) document.documentElement.setAttribute('data-color-theme', ct); if (customCss) { const s = document.createElement('style'); s.id = 'ok-custom-theme'; s.textContent = customCss; document.head.appendChild(s); } if (window.okDesktop) { document.documentElement.classList.add('electron-mode'); document.documentElement.classList.add(`electron-platform-${window.okDesktop.platform}`); } })();</script>
|
|
60
60
|
<style>html { background-color: #fafafa } html.dark { background-color: #171717 }</style>
|
|
61
|
-
<script type="module" crossorigin src="./assets/index-
|
|
61
|
+
<script type="module" crossorigin src="./assets/index-Ci23rOfo.js"></script>
|
|
62
62
|
<link rel="modulepreload" crossorigin href="./assets/chunk-CYidjpOJ.js">
|
|
63
63
|
<link rel="modulepreload" crossorigin href="./assets/dist-q14fBS3T.js">
|
|
64
64
|
<link rel="modulepreload" crossorigin href="./assets/react-f2sANaYj.js">
|
|
@@ -79,14 +79,14 @@
|
|
|
79
79
|
<link rel="modulepreload" crossorigin href="./assets/trace-api-DHyWZzIa.js">
|
|
80
80
|
<link rel="modulepreload" crossorigin href="./assets/lib-Iu39CNZE.js">
|
|
81
81
|
<link rel="modulepreload" crossorigin href="./assets/markdownit-YwcN3EvW.js">
|
|
82
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
82
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-DQ935rCy.js">
|
|
83
83
|
<link rel="modulepreload" crossorigin href="./assets/dist-PQ5KMVDh.js">
|
|
84
84
|
<link rel="modulepreload" crossorigin href="./assets/compiler-runtime-BfE3aGVn.js">
|
|
85
85
|
<link rel="modulepreload" crossorigin href="./assets/jsx-runtime-BUgB2tll.js">
|
|
86
|
-
<link rel="modulepreload" crossorigin href="./assets/client-version-
|
|
87
|
-
<link rel="modulepreload" crossorigin href="./assets/use-apply-config-color-theme-
|
|
86
|
+
<link rel="modulepreload" crossorigin href="./assets/client-version-yC4_z6w2.js">
|
|
87
|
+
<link rel="modulepreload" crossorigin href="./assets/use-apply-config-color-theme-D6i9A1kb.js">
|
|
88
88
|
<link rel="modulepreload" crossorigin href="./assets/config-context-gd3BC-iY.js">
|
|
89
|
-
<link rel="modulepreload" crossorigin href="./assets/config-provider-
|
|
89
|
+
<link rel="modulepreload" crossorigin href="./assets/config-provider-D_pm5JRC.js">
|
|
90
90
|
<link rel="modulepreload" crossorigin href="./assets/dist-Nvb76hAm.js">
|
|
91
91
|
<link rel="modulepreload" crossorigin href="./assets/bundle-mjs-SHeFpKGC.js">
|
|
92
92
|
<link rel="modulepreload" crossorigin href="./assets/createLucideIcon-DAkhoPjT.js">
|
|
@@ -124,20 +124,20 @@
|
|
|
124
124
|
<link rel="modulepreload" crossorigin href="./assets/folder-open-wLd69QUc.js">
|
|
125
125
|
<link rel="modulepreload" crossorigin href="./assets/trash-2-BUuL4OCw.js">
|
|
126
126
|
<link rel="modulepreload" crossorigin href="./assets/triangle-alert-Clgvyc7B.js">
|
|
127
|
-
<link rel="modulepreload" crossorigin href="./assets/file-tree-utils-
|
|
128
|
-
<link rel="modulepreload" crossorigin href="./assets/doc-hash-
|
|
129
|
-
<link rel="modulepreload" crossorigin href="./assets/navigation-targets-
|
|
127
|
+
<link rel="modulepreload" crossorigin href="./assets/file-tree-utils-U3Z7J-KU.js">
|
|
128
|
+
<link rel="modulepreload" crossorigin href="./assets/doc-hash-B6EHixE8.js">
|
|
129
|
+
<link rel="modulepreload" crossorigin href="./assets/navigation-targets-7F-Mry5A.js">
|
|
130
130
|
<link rel="modulepreload" crossorigin href="./assets/external-link-T4Nj1gcG.js">
|
|
131
131
|
<link rel="modulepreload" crossorigin href="./assets/documents-fetch-CLL0O1of.js">
|
|
132
|
-
<link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-
|
|
132
|
+
<link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-BLK9R867.js">
|
|
133
133
|
<link rel="modulepreload" crossorigin href="./assets/git-branch-CMJAiYLz.js">
|
|
134
134
|
<link rel="modulepreload" crossorigin href="./assets/copy-9EDFYcyR.js">
|
|
135
135
|
<link rel="modulepreload" crossorigin href="./assets/CopyButton-1Q6Wnnjb.js">
|
|
136
|
-
<link rel="modulepreload" crossorigin href="./assets/documents-events-
|
|
136
|
+
<link rel="modulepreload" crossorigin href="./assets/documents-events-ClVYn3ZQ.js">
|
|
137
137
|
<link rel="modulepreload" crossorigin href="./assets/parse-api-error-C_gwkKmG.js">
|
|
138
138
|
<link rel="modulepreload" crossorigin href="./assets/startup-marks-CqVzdU1y.js">
|
|
139
|
-
<link rel="modulepreload" crossorigin href="./assets/prop-types-
|
|
140
|
-
<link rel="modulepreload" crossorigin href="./assets/workspace-paths-
|
|
139
|
+
<link rel="modulepreload" crossorigin href="./assets/prop-types-BgTwd2fB.js">
|
|
140
|
+
<link rel="modulepreload" crossorigin href="./assets/workspace-paths-BbK6w2GI.js">
|
|
141
141
|
<link rel="modulepreload" crossorigin href="./assets/eye-CASw1HTi.js">
|
|
142
142
|
<link rel="modulepreload" crossorigin href="./assets/hash-DNKDqZ18.js">
|
|
143
143
|
<link rel="modulepreload" crossorigin href="./assets/info-yKMseklR.js">
|
|
@@ -148,17 +148,17 @@
|
|
|
148
148
|
<link rel="modulepreload" crossorigin href="./assets/file-tree-rename-validation-wADtjYEi.js">
|
|
149
149
|
<link rel="modulepreload" crossorigin href="./assets/badge-Dba4cvJR.js">
|
|
150
150
|
<link rel="modulepreload" crossorigin href="./assets/input-D0ZW0Opq.js">
|
|
151
|
-
<link rel="modulepreload" crossorigin href="./assets/use-collab-url-
|
|
152
|
-
<link rel="modulepreload" crossorigin href="./assets/DocumentContext-
|
|
151
|
+
<link rel="modulepreload" crossorigin href="./assets/use-collab-url-DkF-dRYD.js">
|
|
152
|
+
<link rel="modulepreload" crossorigin href="./assets/DocumentContext-Bftf-RO1.js">
|
|
153
153
|
<link rel="modulepreload" crossorigin href="./assets/dist-ChSSPf9y.js">
|
|
154
154
|
<link rel="modulepreload" crossorigin href="./assets/dist-CslAqn54.js">
|
|
155
155
|
<link rel="modulepreload" crossorigin href="./assets/format-CejNFduS.js">
|
|
156
156
|
<link rel="modulepreload" crossorigin href="./assets/braces-DwnwFx_V.js">
|
|
157
|
-
<link rel="modulepreload" crossorigin href="./assets/open-managed-artifact-tab-
|
|
158
|
-
<link rel="modulepreload" crossorigin href="./assets/lint-config-client-
|
|
159
|
-
<link rel="modulepreload" crossorigin href="./assets/selection-context-
|
|
160
|
-
<link rel="modulepreload" crossorigin href="./assets/PropertyPanel-
|
|
161
|
-
<link rel="modulepreload" crossorigin href="./assets/EnableSyncConfirmDialog-
|
|
157
|
+
<link rel="modulepreload" crossorigin href="./assets/open-managed-artifact-tab-6locbLa6.js">
|
|
158
|
+
<link rel="modulepreload" crossorigin href="./assets/lint-config-client-DWV4JDNv.js">
|
|
159
|
+
<link rel="modulepreload" crossorigin href="./assets/selection-context-A5zmusm7.js">
|
|
160
|
+
<link rel="modulepreload" crossorigin href="./assets/PropertyPanel-DngwQ5B6.js">
|
|
161
|
+
<link rel="modulepreload" crossorigin href="./assets/EnableSyncConfirmDialog-B90yUF0U.js">
|
|
162
162
|
<link rel="modulepreload" crossorigin href="./assets/arrow-up-right-obRIg3Sv.js">
|
|
163
163
|
<link rel="modulepreload" crossorigin href="./assets/cursor-B8rehP9c.js">
|
|
164
164
|
<link rel="modulepreload" crossorigin href="./assets/RegisteredAgentIcon-C2dU04N7.js">
|
|
@@ -166,41 +166,41 @@
|
|
|
166
166
|
<link rel="modulepreload" crossorigin href="./assets/chevron-left-BQ6OM94c.js">
|
|
167
167
|
<link rel="modulepreload" crossorigin href="./assets/refresh-cw-BfeWGCsv.js">
|
|
168
168
|
<link rel="modulepreload" crossorigin href="./assets/copilot-CjOGWDvv.js">
|
|
169
|
-
<link rel="modulepreload" crossorigin href="./assets/agent-visibility-
|
|
170
|
-
<link rel="modulepreload" crossorigin href="./assets/use-settings-route-
|
|
169
|
+
<link rel="modulepreload" crossorigin href="./assets/agent-visibility-hcnW3ePC.js">
|
|
170
|
+
<link rel="modulepreload" crossorigin href="./assets/use-settings-route-BAyd5rTq.js">
|
|
171
171
|
<link rel="modulepreload" crossorigin href="./assets/clipboard-adapter-Cxzkvc1d.js">
|
|
172
|
-
<link rel="modulepreload" crossorigin href="./assets/skills-api-
|
|
173
|
-
<link rel="modulepreload" crossorigin href="./assets/use-workspace-
|
|
174
|
-
<link rel="modulepreload" crossorigin href="./assets/skill-actions-
|
|
172
|
+
<link rel="modulepreload" crossorigin href="./assets/skills-api-BdOAo6gy.js">
|
|
173
|
+
<link rel="modulepreload" crossorigin href="./assets/use-workspace-vn1ZfUTi.js">
|
|
174
|
+
<link rel="modulepreload" crossorigin href="./assets/skill-actions-CAOP92og.js">
|
|
175
175
|
<link rel="modulepreload" crossorigin href="./assets/square-pen-C1vIlMAW.js">
|
|
176
176
|
<link rel="modulepreload" crossorigin href="./assets/field-DVIFAnvR.js">
|
|
177
177
|
<link rel="modulepreload" crossorigin href="./assets/textarea-tdCJViKf.js">
|
|
178
|
-
<link rel="modulepreload" crossorigin href="./assets/auth-state-cache-
|
|
178
|
+
<link rel="modulepreload" crossorigin href="./assets/auth-state-cache-9XP-_-7q.js">
|
|
179
179
|
<link rel="modulepreload" crossorigin href="./assets/miss-dialog-store-Bx4JLuKB.js">
|
|
180
|
-
<link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-
|
|
181
|
-
<link rel="modulepreload" crossorigin href="./assets/terminal-launch-events-
|
|
180
|
+
<link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-Cr7aLSIB.js">
|
|
181
|
+
<link rel="modulepreload" crossorigin href="./assets/terminal-launch-events-DbAuazOA.js">
|
|
182
182
|
<link rel="modulepreload" crossorigin href="./assets/panel-right-open-B7ziq39V.js">
|
|
183
183
|
<link rel="modulepreload" crossorigin href="./assets/timeline-diff-store-CYckprSS.js">
|
|
184
184
|
<link rel="modulepreload" crossorigin href="./assets/form-coxG-8Qw.js">
|
|
185
|
-
<link rel="modulepreload" crossorigin href="./assets/EditorModeToggle-
|
|
185
|
+
<link rel="modulepreload" crossorigin href="./assets/EditorModeToggle-DddZKvDr.js">
|
|
186
186
|
<link rel="modulepreload" crossorigin href="./assets/wrench-BfoTvqT9.js">
|
|
187
187
|
<link rel="modulepreload" crossorigin href="./assets/lint-plugin-meta-J-wb-uxW.js">
|
|
188
188
|
<link rel="modulepreload" crossorigin href="./assets/panel-C8ZhM4q-.js">
|
|
189
189
|
<link rel="modulepreload" crossorigin href="./assets/skeleton-BG12Hmzn.js">
|
|
190
|
-
<link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-
|
|
190
|
+
<link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-CgO-p170.js">
|
|
191
191
|
<link rel="modulepreload" crossorigin href="./assets/ConfigSharingInfoTooltip-DMbsfWD9.js">
|
|
192
192
|
<link rel="modulepreload" crossorigin href="./assets/project-paths-Dwo4Of8C.js">
|
|
193
193
|
<link rel="modulepreload" crossorigin href="./assets/follow-file-BghdVu5J.js">
|
|
194
|
-
<link rel="modulepreload" crossorigin href="./assets/file-tree-adapter-
|
|
195
|
-
<link rel="modulepreload" crossorigin href="./assets/agent-diff-store-
|
|
196
|
-
<link rel="modulepreload" crossorigin href="./assets/target-navigation-intent-
|
|
197
|
-
<link rel="modulepreload" crossorigin href="./assets/use-live-xterm-theme-
|
|
194
|
+
<link rel="modulepreload" crossorigin href="./assets/file-tree-adapter-WO2eqOUz.js">
|
|
195
|
+
<link rel="modulepreload" crossorigin href="./assets/agent-diff-store-DcigMIWV.js">
|
|
196
|
+
<link rel="modulepreload" crossorigin href="./assets/target-navigation-intent-Clc1xeK7.js">
|
|
197
|
+
<link rel="modulepreload" crossorigin href="./assets/use-live-xterm-theme-hXLlj822.js">
|
|
198
198
|
<link rel="modulepreload" crossorigin href="./assets/use-installed-clis-UlK7P1aH.js">
|
|
199
|
-
<link rel="modulepreload" crossorigin href="./assets/terminal-telemetry-
|
|
199
|
+
<link rel="modulepreload" crossorigin href="./assets/terminal-telemetry-DAKSL1YG.js">
|
|
200
200
|
<link rel="modulepreload" crossorigin href="./assets/agent-presence-CEfNcJUY.js">
|
|
201
201
|
<link rel="modulepreload" crossorigin href="./assets/mcp-consent-store-wvrClpLC.js">
|
|
202
202
|
<link rel="modulepreload" crossorigin href="./assets/overlay-layers-y-dNUWSd.js">
|
|
203
|
-
<link rel="modulepreload" crossorigin href="./assets/receive-store-
|
|
203
|
+
<link rel="modulepreload" crossorigin href="./assets/receive-store-B4EnORIw.js">
|
|
204
204
|
<link rel="modulepreload" crossorigin href="./assets/worktree-store-LSx9q9Ga.js">
|
|
205
205
|
<link rel="stylesheet" crossorigin href="./assets/globals-88oPHAs4.css">
|
|
206
206
|
<link rel="stylesheet" crossorigin href="./assets/DocumentContext-B0sQn39F.css">
|
|
@@ -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-BJWUalRu.js"></script>
|
|
36
36
|
<link rel="modulepreload" crossorigin href="./assets/chunk-CYidjpOJ.js">
|
|
37
37
|
<link rel="modulepreload" crossorigin href="./assets/dist-q14fBS3T.js">
|
|
38
38
|
<link rel="modulepreload" crossorigin href="./assets/react-f2sANaYj.js">
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<link rel="modulepreload" crossorigin href="./assets/lib-Iu39CNZE.js">
|
|
44
44
|
<link rel="modulepreload" crossorigin href="./assets/markdownit-YwcN3EvW.js">
|
|
45
45
|
<link rel="modulepreload" crossorigin href="./assets/w3c-keyname-DtWCia6R.js">
|
|
46
|
-
<link rel="modulepreload" crossorigin href="./assets/dist-
|
|
46
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-DQ935rCy.js">
|
|
47
47
|
<link rel="modulepreload" crossorigin href="./assets/jsx-runtime-BUgB2tll.js">
|
|
48
48
|
<link rel="modulepreload" crossorigin href="./assets/dist-Nvb76hAm.js">
|
|
49
49
|
<link rel="modulepreload" crossorigin href="./assets/bundle-mjs-SHeFpKGC.js">
|
|
@@ -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-CV_EUvf8.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-D2cDfheC.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as e,l as t,v as n}from"./write-project-skill-
|
|
2
|
-
//# sourceMappingURL=repair-mcp-configs-
|
|
1
|
+
import{d as e,l as t,v as n}from"./write-project-skill-DOa5Y3Pj.mjs";import{d as r,v as i}from"./init-DtjPtze9.mjs";import{t as a}from"./mcp-migrate-event-CWx0WLdE.mjs";import{homedir as o}from"node:os";function s(n){let r=n.logger??u,i=n.home??o(),a=[];if(n.reclaimDisableEnv===`1`)return r({event:`mcp-config-repair-skipped`,reason:`reclaim-disabled`}),{outcomes:a,repairedCount:0};for(let o of t){let t=e[o],s=c(()=>t.configPath(``,i));if(s!==null&&a.push(l({scope:`user`,editorId:o,target:t,home:i,cwd:``,configPath:s,configPathOverride:void 0,logger:r})),t.projectConfigPath){let e=t.projectConfigPath,i=c(()=>e(n.projectDir));i!==null&&a.push(l({scope:`project`,editorId:o,target:t,home:void 0,cwd:n.projectDir,configPath:i,configPathOverride:i,logger:r}))}}return{outcomes:a,repairedCount:a.filter(e=>e.outcome===`repaired`).length}}function c(e){try{return e()}catch{return null}}function l(e){let t={scope:e.scope,editorId:e.editorId,configPath:e.configPath},o=r(e.target,e.cwd,e.home,e.configPathOverride);if(o===null)return{...t,outcome:`no-entry`};if(n(o))return{...t,outcome:`canonical`};e.logger(a({scope:e.scope,surface:`cli-repair`,editorId:e.editorId,configPath:e.configPath,priorEntry:o}));let s=i(e.target,e.cwd,{mode:`published`,skipAvailabilityCheck:!0},e.home,e.configPathOverride);if(s.action===`failed`){let n=s.error??`unknown write failure`;return e.logger({event:`mcp-config-repair-write-failed`,scope:e.scope,editorId:e.editorId,configPath:e.configPath,error:n}),{...t,outcome:`write-failed`,error:n}}return s.action===`declined`?(e.logger({event:`mcp-config-repair-declined`,scope:e.scope,editorId:e.editorId,configPath:e.configPath,reason:s.declineReason}),{...t,outcome:`declined`}):{...t,outcome:`repaired`}}function u(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{s as repairMcpConfigs};
|
|
2
|
+
//# sourceMappingURL=repair-mcp-configs-DZnzv4nx.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as e}from"./src-
|
|
1
|
+
import{C as e}from"./src-BhYwnO0x.mjs";import{ar as t,cr as n,er as r,hr as i,ir as a,mr as o,or as s,tr as c,ur as l}from"./src-Gc6Vd31B.mjs";import{C as u,a as d,d as f,f as p,o as m,s as h,t as g}from"./write-project-skill-DOa5Y3Pj.mjs";import{n as _,s as v,t as y}from"./colors-BsmVIwfM.mjs";import{dirname as b,join as x,relative as S,resolve as C}from"node:path";import{existsSync as w,mkdirSync as T,readFileSync as E,readdirSync as D,rmSync as O,statSync as k,writeFileSync as A}from"node:fs";import{homedir as j}from"node:os";import{createInterface as M}from"node:readline/promises";const N={existsSync:e=>w(e),isDirectory:e=>{try{return k(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>D(e),readFileSync:e=>E(e),writeFileSync:(e,t)=>{A(e,t)},mkdirSync:(e,t)=>{T(e,t)},rmSync:(e,t)=>{O(e,t)}},P={resolveProjectBundledSkillDir:()=>l(`project`,{checkDesktop:!1}),resolveUserBundledSkillDir:e=>l(e,{checkDesktop:!1}),readBundledVersion:()=>c(),readRecordedVersion:e=>a(e,`cli-hosts`),writeRecordedVersion:(e,t)=>s(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>n(e),readBundleDecision:(e,t)=>r(e,t),writeBundleDecision:(e,n,r)=>t(e,n,r),removeBundleFromDisk:(e,t)=>h(e,t)};function F(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function I(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(b(t),{recursive:!0}),L(e,t,n)}function L(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=x(e,r),a=x(t,r);n.isDirectory(i)?L(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function R(e,t,n,r,i,a){let o=[],s=x(e,`.agents`,`skills`,t),c=r.existsSync(s),l=!1;try{I(n,s,r),l=!0,o.push({kind:`central`,path:s,outcome:c?`overwritten`:`written`}),i({event:`user-skill-reclaim-central-written`,scope:`user`,path:s,preexisting:c,version:a})}catch(e){let t=e instanceof Error?e.message:String(e);o.push({kind:`central`,path:s,outcome:`failed`,error:t}),i({event:`user-skill-reclaim-central-failed`,scope:`user`,path:s,error:t})}for(let c of p){let l=x(e,c.hostDir),u=x(l,`skills`,t);if(u===s){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-collapsed-with-central`});continue}if(!r.existsSync(l)){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-host-absent`});continue}let d=r.existsSync(u);try{I(n,u,r),o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:d?`overwritten`:`written`}),i({event:`user-skill-reclaim-host-written`,scope:`user`,editorId:c.editorId,hostDir:c.hostDir,path:u,preexisting:d,version:a})}catch(e){let t=e instanceof Error?e.message:String(e);o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`failed`,error:t}),i({event:`user-skill-reclaim-host-failed`,scope:`user`,editorId:c.editorId,hostDir:c.hostDir,path:u,error:t})}}return{entries:o,centralWritten:l}}function z(e,t){if(!e)return!1;try{return t.existsSync(e)?t.readFileSync(e).toString(`utf8`).includes(`# ok-mcp-`):!1}catch{return!1}}function B(e,t,n,r){let i;try{i=t.resolveProjectBundledSkillDir()}catch(e){return r({event:`project-skill-reclaim-bundle-missing`,scope:`project`,error:e instanceof Error?e.message:String(e)}),{outcome:`skipped`,reason:`bundle-missing`}}let a=[];for(let t of p){let o=x(e,t.hostDir,`skills`,`open-knowledge`),s=x(o,`SKILL.md`),c=n.existsSync(s),l=f[t.editorId]?.projectConfigPath?.(e),u=!c&&z(l,n);if(!c&&!u){a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`no-token`}),r({event:`project-skill-reclaim-no-token`,scope:`project`,editorId:t.editorId,path:o});continue}try{g(o,e),I(i,o,n);let s=c?`reclaimed`:`created`;a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:s}),r({event:c?`project-skill-reclaim-reclaimed`:`project-skill-reclaim-created`,scope:`project`,editorId:t.editorId,path:o})}catch(e){let n=e instanceof Error?e.message:String(e);a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`failed`,error:n}),r({event:`project-skill-reclaim-failed`,scope:`project`,editorId:t.editorId,path:o,error:n})}}return{outcome:`done`,entries:a}}async function V(t,n,r,a){let s=e=>{n.recordEvent(e).catch(()=>{})},c=()=>new Date().toISOString(),l;try{l=await n.readBundledVersion()}catch(e){let t=e instanceof Error?e.message:String(e);return a({event:`user-skill-reclaim-version-read-failed`,scope:`user`,error:t}),s({ts:c(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`version-read-failed:${t}`}),{outcome:`skipped`,reason:`version-read-failed`}}let u;try{u=await n.readRecordedVersion(t)}catch(e){a({event:`user-skill-reclaim-version-read-error`,scope:`user`,error:e instanceof Error?e.message:String(e)}),u=null}let d=[],f=null;for(let e of i)try{d.push({id:e,sourceDir:n.resolveUserBundledSkillDir(e)})}catch(e){f=e instanceof Error?e.message:String(e)}if(d.length===0)return a({event:`user-skill-reclaim-bundle-missing`,scope:`user`,error:f??`no user-global bundles`}),s({ts:c(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,reason:`bundle-missing:${f}`}),{outcome:`skipped`,reason:`bundle-missing`};let p=[];for(let i of d){let s=o[i.id],c=r.existsSync(x(t,`.agents`,`skills`,s)),l=await n.readBundleDecision(t,s).catch(()=>null);if(!e(l,{installedOnDisk:c})){if(c)try{n.removeBundleFromDisk(t,i.id),a({event:`user-skill-reclaim-bundle-declined-removed`,scope:`user`,bundle:i.id})}catch(e){a({event:`user-skill-reclaim-bundle-remove-failed`,scope:`user`,bundle:i.id,error:e instanceof Error?e.message:String(e)})}continue}if(l===null&&c)try{await n.writeBundleDecision(t,s,!0)}catch(e){a({event:`user-skill-reclaim-grandfather-write-failed`,scope:`user`,bundle:i.id,error:e instanceof Error?e.message:String(e)})}p.push(i)}if(p.length===0)return{outcome:`skipped`,reason:`all-bundles-declined`};let m=p.every(e=>r.existsSync(x(t,`.agents`,`skills`,o[e.id])));if(u!==null&&u===l&&m)return a({event:`user-skill-reclaim-skipped-version-current`,scope:`user`,version:l}),{outcome:`skipped`,reason:`version-current`};let h=[],g=d.length===i.length,_=!0;for(let{id:e,sourceDir:n}of p){let i=R(t,o[e],n,r,a,l);h.push(...i.entries),i.centralWritten||(_=!1)}let v=h.some(e=>e.kind===`central`&&(e.outcome===`written`||e.outcome===`overwritten`));if(g&&_&&v){let e=null;try{await n.writeRecordedVersion(t,l),a({event:`user-skill-reclaim-version-recorded`,scope:`user`,version:l})}catch(t){e=t instanceof Error?t.message:String(t),a({event:`user-skill-reclaim-version-record-failed`,scope:`user`,version:l,error:e})}for(let{id:t}of p)s({ts:c(),surface:`cli-start`,target:`cli-hosts`,bundle:t,outcome:e===null?`installed`:`failed`,version:l,...e===null?{}:{reason:`state-write-failed:${e}`}})}else{let e=h.some(e=>e.kind===`host`&&e.outcome===`failed`);s({ts:c(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,version:l,reason:e?`all-writes-failed`:`no-hosts-installed`})}return{outcome:`done`,version:l,entries:h}}async function H(e){let t=e.logger??F,n=e.fs??N,r=e.home??j(),i={...P,...e.deps};if(e.reclaimDisableEnv===`1`)return t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`};let a=B(e.projectDir,i,n,t),o=await V(r,i,n,t),s=m(r),c=[],l=!1,u=!1;if(s.skillDirs.length>0||s.emptyDirs.length>0)if(e.confirmLegacyCleanup&&await e.confirmLegacyCleanup(s)){try{c=d(r,s)}catch(e){u=!0,t({event:`legacy-fanout-cleanup-refused`,scope:`user`,error:e instanceof Error?e.message:String(e)})}for(let e of c)t({event:`legacy-fanout-path-removed`,scope:`user`,path:e})}else l=!0,t({event:`legacy-fanout-cleanup-declined`,scope:`user`});return{status:`done`,project:a,user:o,legacySwept:c,legacyCleanupDeclined:l,legacyCleanupFailed:u}}function U(e){return e.status===`skipped`?e.reason===`reclaim-disabled`?0:1:e.project.outcome===`skipped`||e.user.outcome===`skipped`&&e.user.reason!==`version-current`&&e.user.reason!==`all-bundles-declined`||e.project.entries.some(e=>e.outcome===`failed`)||e.user.outcome===`done`&&e.user.entries.some(e=>e.outcome===`failed`)?1:0}function W(e){if(e.status===`skipped`)return`Skipped: ${e.reason}`;let t=[`Skill reclaim complete.`];if(e.project.outcome===`done`){let n=e.project.entries.filter(e=>e.outcome===`reclaimed`).length,r=e.project.entries.filter(e=>e.outcome===`created`).length,i=e.project.entries.filter(e=>e.outcome===`no-token`).length,a=e.project.entries.filter(e=>e.outcome===`failed`).length;t.push(` Project: ${n} reclaimed, ${r} created, ${i} no-token, ${a} failed.`)}else t.push(` Project: skipped (${e.project.reason}).`);if(e.user.outcome===`done`){let n=e.user.entries.filter(e=>e.outcome===`written`||e.outcome===`overwritten`).length,r=e.user.entries.filter(e=>e.outcome===`skipped-host-absent`||e.outcome===`skipped-collapsed-with-central`).length,i=e.user.entries.filter(e=>e.outcome===`failed`).length;t.push(` User (${e.user.version}): ${n} written, ${r} skipped, ${i} failed.`)}else t.push(` User: skipped (${e.user.reason}).`);return e.legacySwept.length>0?t.push(` Cleanup: removed ${e.legacySwept.length} path(s) from a pre-0.42 install.`):e.legacyCleanupFailed?t.push(` Cleanup: failed — see logs; pre-0.42 directories left in place.`):e.legacyCleanupDeclined&&t.push(` Cleanup: declined — pre-0.42 directories left in place.`),t.join(`
|
|
2
2
|
`)}function G(){return new u(`repair-skills`).description("Refresh bundled SKILL.md files for installed AI editors (project-local + user-global). Runs automatically during `ok start`; this command forces an explicit sweep.").option(`-y, --yes`,`Skip the confirmation prompt for removing directories left by a pre-0.42 install.`).action(async e=>{let t=await H({projectDir:C(process.cwd()),reclaimDisableEnv:process.env.OK_RECLAIM_DISABLE??null,confirmLegacyCleanup:t=>K(t,{yes:e.yes===!0})});process.stdout.write(`${W(t)}\n`),process.exitCode=U(t)})}async function K(e,t){let n=j(),r=e=>`~/${S(n,e)}`,i=t.input??process.stdin,a=[``,y(`A previous version of OpenKnowledge installed its skill into agent tools you may never have used.`),_(`(Versions before 0.42 wrote to every host a third-party installer knew about — see issue #820.)`)];if(e.skillDirs.length>0&&a.push(``,`${y(`Remove OpenKnowledge skills:`)} ${e.skillDirs.length}`,...e.skillDirs.map(e=>` ${r(e)}`)),e.emptyDirs.length>0){let t=e.skillDirs.length>0?`Then remove these, which hold nothing else once the above are gone:`:`Remove these empty directories, left behind by that install:`;a.push(``,`${y(t)} ${e.emptyDirs.length}`,...e.emptyDirs.map(e=>` ${r(e)}`))}if(a.push(``,_(`Nothing outside these paths is touched. A directory that still holds anything is kept.`)),process.stdout.write(`${a.join(`
|
|
3
3
|
`)}\n`),t.yes)return!0;if(!i.isTTY)return process.stdout.write(`${v("Not a terminal — skipping cleanup. Re-run with `ok repair-skills --yes` to remove these.")}\n`),!1;let o=M({input:i,output:process.stdout});try{let e=(await o.question(`\n${y(`Remove them?`)} ${_(`[y/N] `)}`)).trim().toLowerCase();return e===`y`||e===`yes`}finally{o.close()}}export{G as n,H as t};
|
|
4
|
-
//# sourceMappingURL=repair-skills-
|
|
4
|
+
//# sourceMappingURL=repair-skills-BdKXPoDn.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./repair-skills-BdKXPoDn.mjs";export{e as repairSkills};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,o as t,r as n}from"./server-lock-gEf34yIk.mjs";export{n as markServerLockDraining,e as releaseServerLock,t as updateServerLockPort};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./src-
|
|
2
|
-
//# sourceMappingURL=server-lock-
|
|
1
|
+
import"./src-BhYwnO0x.mjs";import{r as e}from"./logger-B7Z8XO-z.mjs";import{dirname as t,join as n,resolve as r}from"node:path";import{closeSync as i,existsSync as a,mkdirSync as o,openSync as s,readFileSync as c,unlinkSync as l,writeFileSync as u,writeSync as d}from"node:fs";import{homedir as f,hostname as p}from"node:os";import{fileURLToPath as m}from"node:url";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(e){return new URL(e.url??``,`http://localhost`).searchParams}function y(e){let t=e?.code;return typeof t==`string`?t:void 0}const b=/^[A-Za-z0-9-]{8,64}$/;let x=null;function S(e){return n(e??f(),`.ok`,`machine-id`)}function C(n){if(n===void 0&&x!==null)return x;let r=S(n),i=null;try{let e=c(r,`utf-8`).trim();b.test(e)&&(i=e)}catch{}if(i===null){i=h();try{o(t(r),{recursive:!0}),u(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&&(x=i),i}function w(){try{let e=r(t(m(import.meta.url)),`..`,`package.json`),n=JSON.parse(c(e,`utf-8`));if(typeof n.version==`string`&&n.version.length>0)return n.version}catch{}return`0.0.0-unknown`}const T=w(),E=1,D=e(`process-lock`);var O=class extends Error{existing;lockPath;lockName;constructor(e,t,n){super(`OpenKnowledge ${n} already running on 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===C():e.hostname===p()}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(c(e,`utf-8`));if(t?.pid!==process.pid||typeof t.machineId==`string`&&t.machineId!==C()||t.machineId===void 0&&typeof t.hostname==`string`&&t.hostname!==p())continue;l(e)}catch{}}))}function L(e,t){try{let n=JSON.parse(c(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,c=`[${t}-lock]`;o(n,{recursive:!0});let f=k(n,t),m={pid:process.pid,hostname:p(),port:r.port,startedAt:new Date().toISOString(),worktreeRoot:r.worktreeRoot,machineId:C(),...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??T},h=JSON.stringify(m,null,2);for(let e=0;e<3;e++){if(!a(f))try{let e=s(f,`wx`,384);try{d(e,h)}finally{i(e)}return j(f),I(f),z({lockName:t,lockDir:n,lockPath:f})}catch(e){if(y(e)!==`EEXIST`)throw e}let e=L(f,c);if(e){if(N(e)&&e.pid===process.pid)return u(f,h,{encoding:`utf-8`,mode:384}),j(f),I(f),z({lockName:t,lockDir:n,lockPath:f});if(g(e.pid))throw new O(e,f,t);D.warn({pid:e.pid,host:e.hostname},`${c} Stale lock detected (pid=${e.pid}, host=${e.hostname}) — replacing`)}try{l(f)}catch{}}throw Error(`${c} Failed to acquire ${f} after 3 attempts (concurrent acquire contention).`)}function z(e){let{lockName:t,lockDir:n,lockPath:r}=e;return{lockPath:r,release:()=>G({lockName:t,lockDir:n}),updatePort:e=>B({lockName:t,lockDir:n,port:e})}}function B(e){let{lockName:t,lockDir:n,port:r}=e,i=`[${t}-lock]`,o=k(n,t);if(!a(o)){D.warn({lockPath:o},`${i} Lock file missing at ${o} during port update — skipping`);return}let s;try{let e=JSON.parse(c(o,`utf-8`));if(!e||typeof e!=`object`||!_(e.pid)){D.warn({lockPath:o},`${i} Corrupt lock at ${o} during port update — skipping`);return}s=e}catch{D.warn({lockPath:o},`${i} Unreadable lock at ${o} during port update — skipping`);return}if(s.pid===process.pid&&N(s)){s.port=r;try{u(o,JSON.stringify(s,null,2),{encoding:`utf-8`,mode:384})}catch(e){D.warn({lockPath:o,err:e},`${i} Failed to update port in ${o}: ${e instanceof Error?e.message:String(e)}`)}}}function V(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(c(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){y(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{u(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 H(e){let{lockName:t,lockDir:n}=e,r=k(n,t);if(!a(r))return null;let i;try{let e=JSON.parse(c(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{l(r)}catch{}return null}return i}function U(e){let{lockName:t,lockDir:n}=e,r=k(n,t);if(!a(r))return{status:`absent`};let i;try{i=JSON.parse(c(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 o=i;if(!_(o.pid)||typeof o.hostname!=`string`||typeof o.port!=`number`||typeof o.startedAt!=`string`||typeof o.worktreeRoot!=`string`)return{status:`incompatible`,reason:`corrupt`,raw:i};let s={pid:o.pid,hostname:o.hostname,port:o.port,startedAt:o.startedAt,worktreeRoot:o.worktreeRoot,machineId:typeof o.machineId==`string`?o.machineId:void 0,draining:o.draining===!0?!0:void 0,protocolVersion:typeof o.protocolVersion==`number`?o.protocolVersion:void 0,runtimeVersion:typeof o.runtimeVersion==`string`?o.runtimeVersion:void 0};if(!N(s))return{status:`stale`,lock:s};if(!g(s.pid)){try{l(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 W(e){let{lockName:t,lockDir:n}=e,r=e.timeoutMs??1e4,i=e.pollIntervalMs??100,a=e.readLock??(()=>H({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 G(e){let{lockName:t,lockDir:n,deferUnlinkToExit:r=!1}=e,i=`[${t}-lock]`,o=k(n,t);if(M(o)){if(r){V({lockName:t,lockDir:n});return}if(a(o))try{let e=JSON.parse(c(o,`utf-8`));if(!e||typeof e!=`object`||typeof e.pid!=`number`||e.pid!==process.pid||!N(e))return;l(o),P.delete(o)}catch(e){D.warn({lockPath:o,err:e},`${i} Failed to release ${o}: ${e instanceof Error?e.message:String(e)}`)}}}var K=class extends O{constructor(e,t){super(e,t,`server`),this.name=`ServerLockCollisionError`}};function q(e,t){try{return R({lockName:`server`,lockDir:e,metadata:t}).lockPath}catch(e){throw e instanceof O&&e.lockName===`server`?new K(e.existing,e.lockPath):e}}function J(e,t){B({lockName:`server`,lockDir:e,port:t})}function Y(e){return H({lockName:`server`,lockDir:e})}function X(e,t){G({lockName:`server`,lockDir:e,...t})}function Z(e){V({lockName:`server`,lockDir:e})}function Q(e,t){return W({lockName:`server`,lockDir:e,...t})}export{_ as S,E as _,X as a,v as b,O as c,V as d,H as f,T as g,B as h,Y as i,R as l,G as m,q as n,J as o,U as p,Z as r,Q as s,K as t,k as u,C as v,g as x,y};
|
|
2
|
+
//# sourceMappingURL=server-lock-gEf34yIk.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,Ja as t,Ma as n,Na as r,Pa as i,Xa as a,bo as o,d as s,l as c,oo as l,y as u}from"./src-Duzu_tVF.mjs";import{$ as d,$i as f,$n as p,$r as m,$t as h,A as g,Ai as _,An as v,At as y,B as b,Bi as x,Bn as S,Br as C,Bt as w,C as T,Ci as E,Cn as D,Cr as O,Ct as k,D as A,Di as j,Dn as M,Dt as N,E as P,Ei as F,En as I,Er as L,Et as R,F as z,Fi as B,Fn as V,Fr as H,Ft as U,G as W,Gi as G,Gn as K,Gr as q,Gt as J,H as Y,Hi as X,Hn as Z,Hr 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,Ot as Ne,P as Pe,Pi as Fe,Pn as Ie,Pr as Le,Pt as Re,Q as ze,Qi as Be,Qn as Ve,Qr as He,Qt as Ue,R as We,Ri as Ge,Rn as Ke,Rr as qe,Rt as Je,S as Ye,Si as Xe,Sn as Ze,Sr as Qe,St as $e,T as et,Ti as tt,Tn as nt,Tr as rt,Tt as it,U as at,Ui as ot,Un as st,Ur as ct,Ut as lt,V as ut,Vi as dt,Vn as ft,Vr as pt,Vt as mt,W as ht,Wi as gt,Wn as _t,Wr as vt,Wt as yt,X as bt,Xi as xt,Xn as St,Xr as Ct,Xt as wt,Y as Tt,Yi as Et,Yn as Dt,Yr as Ot,Yt as kt,Z as At,Zi as jt,Zn as Mt,Zr as Nt,Zt as Pt,_ as Ft,_a as It,_i as Lt,_n as Rt,_r as zt,_t as Bt,a as Vt,aa as Ht,ai as Ut,an as Wt,ar as Gt,at as Kt,b as qt,bi as Jt,bn as Yt,br as Xt,bt as Zt,c as Qt,ca as $t,ci as en,cn as tn,cr as nn,ct as rn,d as an,da as on,di as sn,dn as cn,dr as ln,ea as un,ei as dn,en as fn,er as pn,et as mn,f as hn,fa as gn,fi as _n,fn as vn,fr as yn,g as bn,ga as xn,gi as Sn,gn as Cn,gr as wn,gt as Tn,h as En,ha as Dn,hi as On,hn as kn,hr as An,i as jn,ia as Mn,ii as Nn,in as Pn,ir as Fn,it as In,j as Ln,ji as Rn,jn as zn,jt as Bn,k as Vn,ki as Hn,kn as Un,kt as Wn,l as Gn,la as Kn,li as qn,ln as Jn,lr as Yn,lt as Xn,m as Zn,ma as Qn,mi as $n,mn as er,mr as tr,n as nr,na as rr,ni as ir,nn as ar,nr as or,nt as sr,o as cr,oa as lr,oi as ur,on as dr,or as fr,ot as pr,p as mr,pa as hr,pi as gr,pn as _r,pr as vr,q as yr,qi as br,qn as xr,qr as Sr,qt as Cr,r as wr,ra as Tr,ri as Er,rn as Dr,rr as Or,rt as kr,s as Ar,sa as jr,si as Mr,sn as Nr,sr as Pr,st as Fr,t as Ir,ta as Lr,ti as Rr,tn as zr,tr as Br,tt as Vr,u as Hr,ua as Ur,ui as Wr,un as Gr,ur as Kr,v as qr,va as Jr,vi as Yr,vn as Xr,vr as Zr,vt as Qr,w as $r,wi as ei,wn as ti,wr as ni,wt as ri,x as ii,xi as ai,xn as oi,xr as si,xt as ci,y as li,ya as ui,yi as di,yn as fi,yr as pi,yt as mi,z as hi,zi as gi,zn as _i,zr as vi,zt as yi}from"./src-CbnujJE-.mjs";import{C as bi,E as xi,T as Si,_ as Ci,b as wi,c as Ti,d as Ei,g as Di,i as Oi,l as ki,m as Ai,n as ji,p as Mi,s as Ni,t as Pi,u as Fi,v as Ii,w as Li,x as Ri,y as zi}from"./fs-traced-DDm-belY.mjs";import{a as Bi,d as Vi,f as Hi,i as Ui,l as Wi,n as Gi,r as Ki,t as qi,u as Ji}from"./logger-B7Z8XO-z.mjs";import{S as Yi,_ as Xi,a as Zi,c as Qi,f as $i,g as ea,h as ta,i as na,l as ra,m as ia,n as aa,o as oa,p as sa,r as ca,s as la,t as ua,u as da,v as fa,x as pa}from"./server-lock-CH_iezNY.mjs";export{Ur as AGENT_ID_MAX_LEN,on as AGENT_ID_RE,F as AGENT_WRITE_ORIGIN,It as AcpPermissionStore,Qn as AcpRegistry,E as AcpThreadManager,ai as AgentFocusBroadcaster,Jt as AgentPresenceBroadcaster,j as AgentSessionCapacityError,je as AgentSessionManager,Bt as AutoStartDisabledError,yn as BUNDLE_IDS,vr as BUNDLE_SCOPE,tr as BUNDLE_SKILL_NAME,zn as BacklinkIndex,Ge as CC1Broadcaster,a as CC1_CONTRACT_VERSION,ar as CONFIG_FILENAME,I as CONFLICT_MARKER_RE,re as CURSOR_BUNDLE_PATHS_BY_PLATFORM,Ft as ConfigSchema,gt as DEFAULT_CHECKPOINT_RETENTION,He as DEFAULT_EMBEDDINGS_DIMENSIONS,U as DEFAULT_PACK_ID,Y as DocumentDurabilityState,m as EMBEDDINGS_API_KEY_ENV,Dn as FEATURED_AGENT_IDS,G as FILE_SYSTEM_WRITER,v as FILE_WATCHER_ORIGIN,pe as FileEmbeddingsBackend,Pt as GIT_PREFLIGHT_FAIL_SPAN_NAME,de as GIT_UPSTREAM_WRITER,Jr as GitDirAccessError,Ke as GitNotAvailableError,_i as GitTooOldError,Qr as HOCUSPOCUS_AUTH_REJECTION_REASONS,mi as HocuspocusAuthRejection,Zt as HocuspocusAuthTokenSchema,Q as INSTALLED_AGENTS_SCHEMES,t as LINEAGE_EPOCH_KEY,hi as LIVE_DERIVED_INDEX_DEBOUNCE_MS,ie as LOG_MD_TEMPLATE,R as MANAGED_RENAME_ORIGIN,ei as MAX_ACP_THREADS,Hn as MAX_AGENT_SESSIONS,rn as MCP_CONNECTION_ID_HEADER,n as MCP_SERVER_NAME,_ as MIN_EVICTABLE_IDLE_MS,S as MIN_GIT_VERSION,at as MISSING_OK_CONFIG_MESSAGE,ui as MalformedGitPointerError,mn as McpLogger,ht as MissingOkConfigError,xe as OBSERVER_SYNC_ORIGIN,Dr as OK_OKIGNORE_TEMPLATE,r as ORPHAN_MODES,o as PROTOCOL_VERSION,qi as PinoLogger,Qi as ProcessLockCollisionError,Gn as ProjectGitInitError,N as ROLLBACK_ORIGIN,Pn as ROOT_GITIGNORE_TEMPLATE,ea as RUNTIME_VERSION,$n as RemoteConfigError,br as SERVICE_WRITER,Pr as SKILL_INSTALL_EVENTS_FILE_REL,u as SKILL_STATE_TARGETS,ye as STARTER_FOLDERS,Je as STARTER_FOLDER_FRONTMATTER_FILENAME,yi as STARTER_PACKS,w as STARTER_PACK_IDS,mt as STARTER_TEMPLATES,P as STATE_MANIFEST_FILENAME,Xi as STATE_SCHEMA_VERSION,l as SYSTEM_DOC_NAME,Cr as SeedPrerequisiteError,le as SeedRootDirError,ua as ServerLockCollisionError,Ir as SingleFileNotAFileError,nr as SingleFileNotFoundError,wr as SingleFileNotMarkdownError,A as StateManifestError,et as TagIndex,An as USER_GLOBAL_BUNDLE_IDS,De as UiLockCollisionError,Ne as __getShowAllWalkStatsForTesting,Wn as __resetShowAllWalkStatsForTesting,ra as acquireProcessLock,aa as acquireServerLock,Ie as acquireUiLock,Rn as applyAgentMarkdownWrite,ti as applyExternalChange,Re as applySeed,Ae as assertCompatibleStateManifest,ft as assertGitAvailable,vn as assertNeverDiskEvent,Xe as attachAcpThreadSocket,Tn as attachIdleShutdown,qr as bootServer,St as buildAndOpenSkill,Wt as buildConfigYmlContent,Tt as buildExecResult,tt as buildOkMcpStdioCommand,Yn as buildSkillZip,$ as buildStarterFolderFrontmatterYaml,oe as buildWipTree,wn as bundleSkillMdPath,Sr as canonicalProjectKey,_r as classifyEvents,Pi as classifyFsPath,ce as clearAllEmbeddingsKeys,Rr as clearContributors,lt as coercePackId,c as colorFromSeed,Et as commitUpstreamImport,xt as commitWip,jt as commitWipFromTree,Z as compareSemver,pi as composeEffectiveLinterConfig,Xt as composeFrontmatterSchemasConfig,M as containsConflictMarkers,er as contentHash,ir as contributorCount,z as countShadowObjects,ee as countStaleAgentWipRefs,he as countWipRefs,y as createApiExtension,sn as createAssetServeMiddleware,Ce as createContentFilter,Oe as createContentFilterAsync,Ot as createEmbeddingsSecretStore,jn as createEphemeralProjectDir,nt as createExternalChangeHandler,hn as createFileLogger,b as createLiveDerivedIndexExtension,yr as createMcpHttpHandler,ct as createOsProbe,Pe as createPersistenceExtension,T as createServer,be as createServerObserverExtension,B as createStreamingErrorWriter,Gi as createTestLogger,Ct as describeStoredEmbeddingsKey,bn as detectClaudeDesktopPresence,st as detectGit,Vn as detectProjectShape,Mt as detectUserSkillHosts,kr as discoverLockDirs,O as discoverMarkdownlintConfig,Ue as emitPreflightFailureSpan,bt as encodeDocName,At as encodeFolderRoute,ze as encodeSkillRoute,Hr as ensureProjectGit,dr as ensureProjectSkillGitignore,te as errorResponse,kn as evictStaleTrackerEntries,In as extractOkBinaryPath,Se as extractWikiLinksFromMarkdown,_t as fallbackPaths,an as findEnclosingGitRoot,Gr as findEnclosingProjectRoot,ni as findNativeMarkdownlintFile,mr as flushFileLogger,ci as formatAuthRejectionWire,Er as formatContributors,Nn as formatContributorsFrom,we as formatPackRationale,Be as gcCheckpointRefs,Vr as getCurrentMcpLogger,en as getLocalDir,Zn as getLogFilePath,Ki as getLogger,En as getLogsDir,fa as getMachineId,zi as getMeter,Ht as getMetrics,wi as getTracer,lr as handleCollabSocketError,ve as handleSpawnCursor,On as hasForwardingHeaders,We as hasGcLogLatch,s as iconFromClientName,jr as incrementCollabSocketFilteredError,$t as incrementServerObserverFire,Nr as initContent,f as initShadowRepo,Ri as initTelemetry,qt as initToleranceTelemetryWriter,Fr as installPrettyZodErrors,Ui as installTestLoggers,Ve as installUserSkill,gr as isAllowedApiOrigin,Yr as isAllowedWorkspaceHostHeader,gi as isConfigDoc,$e as isHocuspocusAuthRejectionReason,yt as isKnownPackId,x as isLinkIndexExcludedDoc,di as isLoopbackAddress,dt as isManagedArtifactDoc,i as isOrphanMode,Ee as isPairedWriteOrigin,qe as isPathWithinDir,pa as isProcessAlive,cn as isProjectRoot,fe as isProjectSkillManaged,Sn as isRemoteAdmitted,X as isReservedForUserTree,Cn as isSelfWrite,ot as isSystemDoc,ii as isToleranceTelemetryEnabled,Yi as isValidLockPid,Rt as lastKnownHash,un as listRescueCheckpoints,J as listStarterPacks,xn as loadCustomAgents,Te as loadPrincipal,da as lockFilePath,Bi as loggerFactory,Wi as logsCurrentPath,Ji as logsPreviousPath,Nt as makeLazyEmbeddingsKeyStore,ca as markServerLockDraining,W as mountMcpAndApi,ji as normalizeFsPath,zt as originGitHubHost,tn as packageVersionMajorMinor,k as parseAuthRejectionWire,K as parseGitVersion,ri as parseHocuspocusAuthToken,ue as parseKeepaliveConnectionId,Xr as pathToDocName,ke as planSeed,Vt as prepareSingleFileOpen,Kt as processCommand,pr as processUsage,p as readAllTargets,pn as readBundleDecision,rt as readOwnNativeRules,$i as readProcessLock,sa as readProcessLockDetailed,ut as readProjectHeadState,q as readProjectLocalSemanticConfig,na as readServerLock,Br as readServerPackageVersion,or as readSkillInstallStateSnapshot,xr as readSkillManagement,g as readStateManifest,Or as readTargetRecordedAt,Fn as readTargetVersion,V as readUiLock,Me as reconcile,Ut as recordContributor,nn as recordSkillInstallEvent,ae as registerAllTools,fi as registerWrite,ia as releaseProcessLock,Zi as releaseServerLock,ne as releaseUiLock,Yt as removeLastKnownHash,Kn as resetMetrics,e as resolveBundleEnabled,Kr as resolveBundledSkillDir,qn as resolveContentDir,vi as resolveCursorBinaryDefault,C as resolveCursorSpawnInvocation,si as resolveEffectiveLinterConfig,dn as resolveEmbeddingsCredential,Wr as resolveLockDir,Qe as resolveNativeConfigForDoc,L as resolveNativeMarkdownlintConfig,me as resolvePack,Ar as resolvePackageVersion,Lt as resolveRemoteAccess,d as resolveUiInfo,ur as restoreContributors,li as restoreLifecycleFromConflictsJson,Le as rewriteMarkdownLinksForDocumentRename,H as rewriteWikiLinksForDocumentRename,h as runAuthReposSubprocess,fn as runAuthStatusSubprocess,kt as runCloneSubprocess,zr as runDeviceFlowSubprocess,sr as runWithMcpLogger,_n as safeContentPath,Bn as safeSubdir,Lr as safetyCheckpoint,Xn as sanitizeClientName,rr as saveInMemoryCheckpoint,Tr as saveVersion,it as seedBasenameIndex,cr as serializeError,bi as setActiveSpanAttributes,Fe as setupServerObservers,Mn as shadowGit,Li as shutdownTelemetry,se as skillManagementPath,Vi as spansCurrentPath,Hi as spansPreviousPath,pt as spawnDetached,Un as splitMarkdownBlocks,oi as startWatcher,ge as streamingProblemEvent,Mr as swapContributors,Ye as teardownToleranceTelemetryWriter,gn as toBroadcasterKey,Oi as tracedAppendFileSync,Ni as tracedLinkSync,Ti as tracedMkdir,ki as tracedMkdirSync,Fi as tracedRename,Ei as tracedRenameSync,Mi as tracedRmSync,Ai as tracedRmdirSync,Di as tracedUnlinkSync,Ci as tracedWriteFile,Ii as tracedWriteFileSync,$r as trustSystemCertificates,Qt as untrackTrackedProjectSkillProjection,Ze as updateLastKnownHash,ta as updateProcessLockPort,oa as updateServerLockPort,_e as updateUiLockPort,hr as validateAgentId,wt as validateCloneInputs,ln as validateSkillZip,la as waitForServerLockDrain,vt as withHiddenWindowsConsole,Si as withSpan,xi as withSpanSync,Gt as writeBundleDecision,Zr as writeMarkdownlintRule,Jn as writeRootGitignoreForNewRepo,Dt as writeSkillManagement,Ln as writeStateManifest,fr as writeTargetVersion,D as writeTracker};
|
|
1
|
+
import{C as e,Fa as t,Na as n,Pa as r,Ya as i,Za as a,d as o,l as s,so as c,xo as l,y as u}from"./src-BhYwnO0x.mjs";import{$ as d,$i as f,$n as p,$r as m,$t as h,A as g,Ai as _,An as v,At as y,B as b,Bi as x,Bn as S,Br as C,Bt as w,C as T,Ci as E,Cn as D,Cr as O,Ct as k,D as A,Di as j,Dn as M,Dt as N,E as P,Ei as F,En as I,Er as L,Et as R,F as z,Fi as B,Fn as V,Fr as H,Ft as U,G as W,Gi as G,Gn as K,Gr as q,Gt as J,H as Y,Hi as X,Hn as Z,Hr 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,Ot as Ne,P as Pe,Pi as Fe,Pn as Ie,Pr as Le,Pt as Re,Q as ze,Qi as Be,Qn as Ve,Qr as He,Qt as Ue,R as We,Ri as Ge,Rn as Ke,Rr as qe,Rt as Je,S as Ye,Si as Xe,Sn as Ze,Sr as Qe,St as $e,T as et,Ti as tt,Tn as nt,Tr as rt,Tt as it,U as at,Ui as ot,Un as st,Ur as ct,Ut as lt,V as ut,Vi as dt,Vn as ft,Vr as pt,Vt as mt,W as ht,Wi as gt,Wn as _t,Wr as vt,Wt as yt,X as bt,Xi as xt,Xn as St,Xr as Ct,Xt as wt,Y as Tt,Yi as Et,Yn as Dt,Yr as Ot,Yt as kt,Z as At,Zi as jt,Zn as Mt,Zr as Nt,Zt as Pt,_ as Ft,_a as It,_i as Lt,_n as Rt,_r as zt,_t as Bt,a as Vt,aa as Ht,ai as Ut,an as Wt,ar as Gt,at as Kt,b as qt,bi as Jt,bn as Yt,br as Xt,bt as Zt,c as Qt,ca as $t,ci as en,cn as tn,cr as nn,ct as rn,d as an,da as on,di as sn,dn as cn,dr as ln,ea as un,ei as dn,en as fn,er as pn,et as mn,f as hn,fa as gn,fi as _n,fn as vn,fr as yn,g as bn,ga as xn,gi as Sn,gn as Cn,gr as wn,gt as Tn,h as En,ha as Dn,hi as On,hn as kn,hr as An,i as jn,ia as Mn,ii as Nn,in as Pn,ir as Fn,it as In,j as Ln,ji as Rn,jn as zn,jt as Bn,k as Vn,ki as Hn,kn as Un,kt as Wn,l as Gn,la as Kn,li as qn,ln as Jn,lr as Yn,lt as Xn,m as Zn,ma as Qn,mi as $n,mn as er,mr as tr,n as nr,na as rr,ni as ir,nn as ar,nr as or,nt as sr,o as cr,oa as lr,oi as ur,on as dr,or as fr,ot as pr,p as mr,pa as hr,pi as gr,pn as _r,pr as vr,q as yr,qi as br,qn as xr,qr as Sr,qt as Cr,r as wr,ra as Tr,ri as Er,rn as Dr,rr as Or,rt as kr,s as Ar,sa as jr,si as Mr,sn as Nr,sr as Pr,st as Fr,t as Ir,ta as Lr,ti as Rr,tn as zr,tr as Br,tt as Vr,u as Hr,ua as Ur,ui as Wr,un as Gr,ur as Kr,v as qr,va as Jr,vi as Yr,vn as Xr,vr as Zr,vt as Qr,w as $r,wi as ei,wn as ti,wr as ni,wt as ri,x as ii,xi as ai,xn as oi,xr as si,xt as ci,y as li,ya as ui,yi as di,yn as fi,yr as pi,yt as mi,z as hi,zi as gi,zn as _i,zr as vi,zt as yi}from"./src-Gc6Vd31B.mjs";import{C as bi,E as xi,T as Si,_ as Ci,b as wi,c as Ti,d as Ei,g as Di,i as Oi,l as ki,m as Ai,n as ji,p as Mi,s as Ni,t as Pi,u as Fi,v as Ii,w as Li,x as Ri,y as zi}from"./fs-traced-DDm-belY.mjs";import{a as Bi,d as Vi,f as Hi,i as Ui,l as Wi,n as Gi,r as Ki,t as qi,u as Ji}from"./logger-B7Z8XO-z.mjs";import{S as Yi,_ as Xi,a as Zi,c as Qi,f as $i,g as ea,h as ta,i as na,l as ra,m as ia,n as aa,o as oa,p as sa,r as ca,s as la,t as ua,u as da,v as fa,x as pa}from"./server-lock-gEf34yIk.mjs";export{Ur as AGENT_ID_MAX_LEN,on as AGENT_ID_RE,F as AGENT_WRITE_ORIGIN,It as AcpPermissionStore,Qn as AcpRegistry,E as AcpThreadManager,ai as AgentFocusBroadcaster,Jt as AgentPresenceBroadcaster,j as AgentSessionCapacityError,je as AgentSessionManager,Bt as AutoStartDisabledError,yn as BUNDLE_IDS,vr as BUNDLE_SCOPE,tr as BUNDLE_SKILL_NAME,zn as BacklinkIndex,Ge as CC1Broadcaster,a as CC1_CONTRACT_VERSION,ar as CONFIG_FILENAME,I as CONFLICT_MARKER_RE,re as CURSOR_BUNDLE_PATHS_BY_PLATFORM,Ft as ConfigSchema,gt as DEFAULT_CHECKPOINT_RETENTION,He as DEFAULT_EMBEDDINGS_DIMENSIONS,U as DEFAULT_PACK_ID,Y as DocumentDurabilityState,m as EMBEDDINGS_API_KEY_ENV,Dn as FEATURED_AGENT_IDS,G as FILE_SYSTEM_WRITER,v as FILE_WATCHER_ORIGIN,pe as FileEmbeddingsBackend,Pt as GIT_PREFLIGHT_FAIL_SPAN_NAME,de as GIT_UPSTREAM_WRITER,Jr as GitDirAccessError,Ke as GitNotAvailableError,_i as GitTooOldError,Qr as HOCUSPOCUS_AUTH_REJECTION_REASONS,mi as HocuspocusAuthRejection,Zt as HocuspocusAuthTokenSchema,Q as INSTALLED_AGENTS_SCHEMES,i as LINEAGE_EPOCH_KEY,hi as LIVE_DERIVED_INDEX_DEBOUNCE_MS,ie as LOG_MD_TEMPLATE,R as MANAGED_RENAME_ORIGIN,ei as MAX_ACP_THREADS,Hn as MAX_AGENT_SESSIONS,rn as MCP_CONNECTION_ID_HEADER,n as MCP_SERVER_NAME,_ as MIN_EVICTABLE_IDLE_MS,S as MIN_GIT_VERSION,at as MISSING_OK_CONFIG_MESSAGE,ui as MalformedGitPointerError,mn as McpLogger,ht as MissingOkConfigError,xe as OBSERVER_SYNC_ORIGIN,Dr as OK_OKIGNORE_TEMPLATE,r as ORPHAN_MODES,l as PROTOCOL_VERSION,qi as PinoLogger,Qi as ProcessLockCollisionError,Gn as ProjectGitInitError,N as ROLLBACK_ORIGIN,Pn as ROOT_GITIGNORE_TEMPLATE,ea as RUNTIME_VERSION,$n as RemoteConfigError,br as SERVICE_WRITER,Pr as SKILL_INSTALL_EVENTS_FILE_REL,u as SKILL_STATE_TARGETS,ye as STARTER_FOLDERS,Je as STARTER_FOLDER_FRONTMATTER_FILENAME,yi as STARTER_PACKS,w as STARTER_PACK_IDS,mt as STARTER_TEMPLATES,P as STATE_MANIFEST_FILENAME,Xi as STATE_SCHEMA_VERSION,c as SYSTEM_DOC_NAME,Cr as SeedPrerequisiteError,le as SeedRootDirError,ua as ServerLockCollisionError,Ir as SingleFileNotAFileError,nr as SingleFileNotFoundError,wr as SingleFileNotMarkdownError,A as StateManifestError,et as TagIndex,An as USER_GLOBAL_BUNDLE_IDS,De as UiLockCollisionError,Ne as __getShowAllWalkStatsForTesting,Wn as __resetShowAllWalkStatsForTesting,ra as acquireProcessLock,aa as acquireServerLock,Ie as acquireUiLock,Rn as applyAgentMarkdownWrite,ti as applyExternalChange,Re as applySeed,Ae as assertCompatibleStateManifest,ft as assertGitAvailable,vn as assertNeverDiskEvent,Xe as attachAcpThreadSocket,Tn as attachIdleShutdown,qr as bootServer,St as buildAndOpenSkill,Wt as buildConfigYmlContent,Tt as buildExecResult,tt as buildOkMcpStdioCommand,Yn as buildSkillZip,$ as buildStarterFolderFrontmatterYaml,oe as buildWipTree,wn as bundleSkillMdPath,Sr as canonicalProjectKey,_r as classifyEvents,Pi as classifyFsPath,ce as clearAllEmbeddingsKeys,Rr as clearContributors,lt as coercePackId,s as colorFromSeed,Et as commitUpstreamImport,xt as commitWip,jt as commitWipFromTree,Z as compareSemver,pi as composeEffectiveLinterConfig,Xt as composeFrontmatterSchemasConfig,M as containsConflictMarkers,er as contentHash,ir as contributorCount,z as countShadowObjects,ee as countStaleAgentWipRefs,he as countWipRefs,y as createApiExtension,sn as createAssetServeMiddleware,Ce as createContentFilter,Oe as createContentFilterAsync,Ot as createEmbeddingsSecretStore,jn as createEphemeralProjectDir,nt as createExternalChangeHandler,hn as createFileLogger,b as createLiveDerivedIndexExtension,yr as createMcpHttpHandler,ct as createOsProbe,Pe as createPersistenceExtension,T as createServer,be as createServerObserverExtension,B as createStreamingErrorWriter,Gi as createTestLogger,Ct as describeStoredEmbeddingsKey,bn as detectClaudeDesktopPresence,st as detectGit,Vn as detectProjectShape,Mt as detectUserSkillHosts,kr as discoverLockDirs,O as discoverMarkdownlintConfig,Ue as emitPreflightFailureSpan,bt as encodeDocName,At as encodeFolderRoute,ze as encodeSkillRoute,Hr as ensureProjectGit,dr as ensureProjectSkillGitignore,te as errorResponse,kn as evictStaleTrackerEntries,In as extractOkBinaryPath,Se as extractWikiLinksFromMarkdown,_t as fallbackPaths,an as findEnclosingGitRoot,Gr as findEnclosingProjectRoot,ni as findNativeMarkdownlintFile,mr as flushFileLogger,ci as formatAuthRejectionWire,Er as formatContributors,Nn as formatContributorsFrom,we as formatPackRationale,Be as gcCheckpointRefs,Vr as getCurrentMcpLogger,en as getLocalDir,Zn as getLogFilePath,Ki as getLogger,En as getLogsDir,fa as getMachineId,zi as getMeter,Ht as getMetrics,wi as getTracer,lr as handleCollabSocketError,ve as handleSpawnCursor,On as hasForwardingHeaders,We as hasGcLogLatch,o as iconFromClientName,jr as incrementCollabSocketFilteredError,$t as incrementServerObserverFire,Nr as initContent,f as initShadowRepo,Ri as initTelemetry,qt as initToleranceTelemetryWriter,Fr as installPrettyZodErrors,Ui as installTestLoggers,Ve as installUserSkill,gr as isAllowedApiOrigin,Yr as isAllowedWorkspaceHostHeader,gi as isConfigDoc,$e as isHocuspocusAuthRejectionReason,yt as isKnownPackId,x as isLinkIndexExcludedDoc,di as isLoopbackAddress,dt as isManagedArtifactDoc,t as isOrphanMode,Ee as isPairedWriteOrigin,qe as isPathWithinDir,pa as isProcessAlive,cn as isProjectRoot,fe as isProjectSkillManaged,Sn as isRemoteAdmitted,X as isReservedForUserTree,Cn as isSelfWrite,ot as isSystemDoc,ii as isToleranceTelemetryEnabled,Yi as isValidLockPid,Rt as lastKnownHash,un as listRescueCheckpoints,J as listStarterPacks,xn as loadCustomAgents,Te as loadPrincipal,da as lockFilePath,Bi as loggerFactory,Wi as logsCurrentPath,Ji as logsPreviousPath,Nt as makeLazyEmbeddingsKeyStore,ca as markServerLockDraining,W as mountMcpAndApi,ji as normalizeFsPath,zt as originGitHubHost,tn as packageVersionMajorMinor,k as parseAuthRejectionWire,K as parseGitVersion,ri as parseHocuspocusAuthToken,ue as parseKeepaliveConnectionId,Xr as pathToDocName,ke as planSeed,Vt as prepareSingleFileOpen,Kt as processCommand,pr as processUsage,p as readAllTargets,pn as readBundleDecision,rt as readOwnNativeRules,$i as readProcessLock,sa as readProcessLockDetailed,ut as readProjectHeadState,q as readProjectLocalSemanticConfig,na as readServerLock,Br as readServerPackageVersion,or as readSkillInstallStateSnapshot,xr as readSkillManagement,g as readStateManifest,Or as readTargetRecordedAt,Fn as readTargetVersion,V as readUiLock,Me as reconcile,Ut as recordContributor,nn as recordSkillInstallEvent,ae as registerAllTools,fi as registerWrite,ia as releaseProcessLock,Zi as releaseServerLock,ne as releaseUiLock,Yt as removeLastKnownHash,Kn as resetMetrics,e as resolveBundleEnabled,Kr as resolveBundledSkillDir,qn as resolveContentDir,vi as resolveCursorBinaryDefault,C as resolveCursorSpawnInvocation,si as resolveEffectiveLinterConfig,dn as resolveEmbeddingsCredential,Wr as resolveLockDir,Qe as resolveNativeConfigForDoc,L as resolveNativeMarkdownlintConfig,me as resolvePack,Ar as resolvePackageVersion,Lt as resolveRemoteAccess,d as resolveUiInfo,ur as restoreContributors,li as restoreLifecycleFromConflictsJson,Le as rewriteMarkdownLinksForDocumentRename,H as rewriteWikiLinksForDocumentRename,h as runAuthReposSubprocess,fn as runAuthStatusSubprocess,kt as runCloneSubprocess,zr as runDeviceFlowSubprocess,sr as runWithMcpLogger,_n as safeContentPath,Bn as safeSubdir,Lr as safetyCheckpoint,Xn as sanitizeClientName,rr as saveInMemoryCheckpoint,Tr as saveVersion,it as seedBasenameIndex,cr as serializeError,bi as setActiveSpanAttributes,Fe as setupServerObservers,Mn as shadowGit,Li as shutdownTelemetry,se as skillManagementPath,Vi as spansCurrentPath,Hi as spansPreviousPath,pt as spawnDetached,Un as splitMarkdownBlocks,oi as startWatcher,ge as streamingProblemEvent,Mr as swapContributors,Ye as teardownToleranceTelemetryWriter,gn as toBroadcasterKey,Oi as tracedAppendFileSync,Ni as tracedLinkSync,Ti as tracedMkdir,ki as tracedMkdirSync,Fi as tracedRename,Ei as tracedRenameSync,Mi as tracedRmSync,Ai as tracedRmdirSync,Di as tracedUnlinkSync,Ci as tracedWriteFile,Ii as tracedWriteFileSync,$r as trustSystemCertificates,Qt as untrackTrackedProjectSkillProjection,Ze as updateLastKnownHash,ta as updateProcessLockPort,oa as updateServerLockPort,_e as updateUiLockPort,hr as validateAgentId,wt as validateCloneInputs,ln as validateSkillZip,la as waitForServerLockDrain,vt as withHiddenWindowsConsole,Si as withSpan,xi as withSpanSync,Gt as writeBundleDecision,Zr as writeMarkdownlintRule,Jn as writeRootGitignoreForNewRepo,Dt as writeSkillManagement,Ln as writeStateManifest,fr as writeTargetVersion,D as writeTracker};
|