@inkeep/open-knowledge 0.36.0-beta.5 → 0.36.0-beta.7
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/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/cli.mjs +13 -13
- package/dist/constants-CyKsuF7V.mjs +2 -0
- package/dist/index.d.mts +2 -5
- package/dist/index.mjs +1 -1
- package/dist/init-DmRmDD99.mjs +643 -0
- package/dist/init-x4r9YK6O.mjs +1 -0
- package/dist/{launch-json-removal-DZxESjmT.mjs → launch-json-removal-pgEbA527.mjs} +2 -2
- package/dist/loader-C8x8r0sF.mjs +1 -0
- package/dist/{loader-By-CDx1k.mjs → loader-DMAqxZxV.mjs} +2 -2
- package/dist/{open-browser-B6D9fYyH.mjs → open-browser-Cvdp_y1h.mjs} +2 -2
- package/dist/{preview-BrBt8LSP.mjs → preview-BBUNs8ln.mjs} +2 -2
- package/dist/preview-BQubuyqh.mjs +1 -0
- package/dist/{repair-launch-json-CKwlXNT1.mjs → repair-launch-json-BE1ekKj7.mjs} +2 -2
- package/dist/{repair-mcp-configs-2LSm2qfK.mjs → repair-mcp-configs-D9OnjybK.mjs} +2 -2
- package/dist/{repair-skills-B1G1QeKl.mjs → repair-skills-CK9KuPiU.mjs} +2 -2
- package/dist/repair-skills-Db8Ny3s4.mjs +1 -0
- package/dist/{src-DjjyaKSr.mjs → src-B02Rt8wv.mjs} +1 -1
- package/dist/src-D_chJWr7.mjs +3266 -0
- package/dist/src-DlLCrfpB.mjs +21 -0
- package/dist/start-Cb6d-SlK.mjs +1 -0
- package/dist/{start-Cyi_lms5.mjs → start-CuxC0lOc.mjs} +2 -2
- package/dist/{write-project-skill-yzj7GOCS.mjs → write-project-skill-C3-zBR7a.mjs} +2 -2
- package/package.json +4 -4
- package/dist/constants-Bdeer1af.mjs +0 -2
- package/dist/init-Bhrz0jN-.mjs +0 -643
- package/dist/init-Criuw29c.mjs +0 -1
- package/dist/loader-KbIm0NCU.mjs +0 -1
- package/dist/preview-F-KstQlT.mjs +0 -1
- package/dist/repair-skills-C5TRYdRl.mjs +0 -1
- package/dist/src-C-7wAp3_.mjs +0 -3267
- package/dist/src-TIYY1fSb.mjs +0 -21
- package/dist/start-HxMQXJT1.mjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e}from"./init-DmRmDD99.mjs";export{e as runInit};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$n as e,fa as t,nr as n}from"./src-
|
|
2
|
-
//# sourceMappingURL=launch-json-removal-
|
|
1
|
+
import{$n as e,fa as t,nr as n}from"./src-D_chJWr7.mjs";import{E as r,w as i}from"./init-DmRmDD99.mjs";import{t as a}from"./is-object-DYBErO9v.mjs";import{join as o}from"node:path";import{existsSync as s,readFileSync as c,rmSync as l}from"node:fs";const u={allowTrailingComma:!0,disallowComments:!1};function d(e,t){return e.error===1&&e.offset===0&&t.charCodeAt(0)===65279}function f(f){let p=o(f,`.claude`,`launch.json`);if(!s(p))return{kind:`not-present`};let m;try{m=c(p,`utf-8`)}catch{return{kind:`declined`}}let h=[],g=n(m,h,u)??void 0;if(h.some(e=>!d(e,m))||!g||g.type!==`object`)return{kind:`declined`};let _=e(g).configurations;if(!Array.isArray(_))return{kind:`not-present`};let v=_.findIndex(e=>a(e)&&e.name===`open-knowledge-ui`);if(v===-1)return{kind:`not-present`};if(_.length===1)return l(p,{force:!0}),{kind:`removed-file`};let{text:y,changed:b}=r(m,[`configurations`,v]);return b?(t(p,y,{mode:i(p)}),{kind:`removed`}):{kind:`not-present`}}export{f as t};
|
|
2
|
+
//# sourceMappingURL=launch-json-removal-pgEbA527.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./loader-DMAqxZxV.mjs";export{e as loadConfig};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Ba as e,Jo as t,Ra as n,za as r}from"./src-S2yxN8_s.mjs";import{_ as i,ca as a,la as o}from"./src-
|
|
1
|
+
import{Ba as e,Jo as t,Ra as n,za as r}from"./src-S2yxN8_s.mjs";import{_ as i,ca as a,la as o}from"./src-D_chJWr7.mjs";import{t as s}from"./constants-CyKsuF7V.mjs";import{t as c}from"./is-object-DYBErO9v.mjs";import{resolve as l}from"node:path";import{existsSync as u,readFileSync as d}from"node:fs";import{realpath as f}from"node:fs/promises";var p=t();async function m(e){let t=l(e);try{return await f(t)}catch(e){if(e.code!==`ENOENT`){let n=e instanceof Error?e.message:String(e);console.warn(`[normalize-cwd] realpath failed for ${t}: ${n}`)}return t}}function h(e,t){let n={...e};for(let r of Object.keys(t)){let i=e[r],a=t[r];c(a)&&c(i)?n[r]=h(i,a):a!==void 0&&(n[r]=a)}return n}function g(e){if(!u(e))return{value:null,path:e,source:null,doc:null};let t;try{t=d(e,`utf-8`)}catch(t){return console.warn(`[config] Failed to read ${e}: ${t instanceof Error?t.message:t}`),{value:null,path:e,source:null,doc:null}}let n=(0,p.parseDocument)(t);if(n.errors.length>0)return console.warn(`[config] Failed to parse ${e}: ${n.errors.map(e=>e.message).join(`; `)}`),{value:null,path:e,source:t,doc:null};let r=n.toJSON();return c(r)?{value:r,path:e,source:t,doc:n}:{value:null,path:e,source:t,doc:n}}function _(e,t){return e.map(e=>{let n=e.path.map(e=>typeof e==`symbol`?String(e):e),i={path:n,message:e.message,issueCode:e.code};if(t.doc!==null&&t.source!==null){let e=r({file:t.path,source:t.source,doc:t.doc,path:n});if(e!==void 0)return{...i,source:e}}return i})}function v(t){let r=t??process.cwd(),c=[],u=o(`user`,r),d=a({absPath:u}),f={};d.valid&&d.source!==void 0?(f=h(f,d.value),c.push(u)):d.valid;let p=l(r,`.ok`,s),m=g(p);if(m.value!==null){let t=n({value:m.value,file:m.path,source:m.source,doc:m.doc});if(t.length>0)throw Error(t.map(e).join(`
|
|
2
2
|
|
|
3
3
|
`));f=h(f,m.value),c.push(p)}let v=i.safeParse(f);if(!v.success){let t={code:`SCHEMA_INVALID`,issues:_(v.error.issues,m)};throw Error(e(t))}return{config:v.data,sources:c}}function y(e){let t=e.cacheMs??1e3,n=e.loadConfigFn??v,r=new Map,i=new Map,a=m(e.startupCwd);return async o=>{let s=await m(o??e.startupCwd),c=Date.now(),l=r.get(s);if(l&&l.expiresAt>c)return l.config;let u=i.get(s);if(u)return await u;let d=(async()=>{if(s===await a)return r.set(s,{config:e.startupConfig,expiresAt:Date.now()+t}),e.startupConfig;let i=n(s).config;return r.set(s,{config:i,expiresAt:Date.now()+t}),i})();i.set(s,d);try{return await d}finally{i.delete(s)}}}export{v as n,y as t};
|
|
4
|
-
//# sourceMappingURL=loader-
|
|
4
|
+
//# sourceMappingURL=loader-DMAqxZxV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Mr as e}from"./src-
|
|
2
|
-
//# sourceMappingURL=open-browser-
|
|
1
|
+
import{Mr as e}from"./src-D_chJWr7.mjs";import{execFile as t}from"node:child_process";const n=new Set([`http:`,`https:`]),r=/[\u0000-\u0020\u007F-\u009F"'`\\&|<>^()$;{}[\]*?!~]/;function i(e,t){console.warn(`Could not auto-open browser (${t}); visit ${e} manually`)}function a(a){let o;try{o=new URL(a)}catch{i(a,`invalid URL`);return}if(!n.has(o.protocol)){i(a,`unsupported scheme '${o.protocol}'`);return}if(r.test(a)){i(a,`URL contains unsafe characters`);return}t(process.platform===`darwin`?`open`:process.platform===`win32`?`cmd`:`xdg-open`,process.platform===`win32`?[`/c`,`start`,``,a]:[a],e({}),e=>{e&&console.warn(`Could not auto-open browser (${e.message}); visit ${a} manually`)})}export{a as openBrowser};
|
|
2
|
+
//# sourceMappingURL=open-browser-Cvdp_y1h.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{rr as e}from"./src-
|
|
1
|
+
import{rr as e}from"./src-D_chJWr7.mjs";import"./constants-CyKsuF7V.mjs";import{join as t,relative as n}from"node:path";import{existsSync as r,lstatSync as i,readdirSync as a,realpathSync as o,statSync as s}from"node:fs";function c(r){let{projectDir:c,contentDir:l,sampleCap:u=5}=r,d=[],f=[];try{i(l)}catch(e){return{totalCount:0,sample:[],contentDir:l,warnings:[`cannot access content directory ${l}: ${e instanceof Error?e.message:String(e)}`]}}let p;try{p=e({projectDir:c,contentDir:l})}catch(e){return{totalCount:0,sample:[],contentDir:l,warnings:[e instanceof Error?e.message:String(e)]}}function m(e){let r;try{r=a(e,{withFileTypes:!0})}catch(t){let r=t instanceof Error?t.message:String(t);d.push(`could not read directory ${n(l,e)||`.`}: ${r}`);return}for(let i of r){let r=t(e,i.name);if(i.isSymbolicLink()){let e;try{e=o(r)}catch(e){let t=e.code;t===`ENOENT`||t===`ELOOP`?d.push(`broken or cyclic symlink: ${n(l,r)}`):d.push(`cannot resolve symlink ${n(l,r)}: ${t??`unknown error`}`);continue}let t;try{t=s(e)}catch{continue}if(t.isDirectory()){let e=n(l,r);if(p.isDirExcluded(e))continue;m(r)}else if(t.isFile()){let e=n(l,r);if(p.isExcluded(e))continue;f.push(e)}}else if(i.isDirectory()){let e=n(l,r);if(p.isDirExcluded(e))continue;m(r)}else if(i.isFile()){let e=n(l,r);if(p.isExcluded(e))continue;f.push(e)}}}return m(l),{totalCount:f.length,sample:f.slice(0,u),contentDir:l,warnings:d}}function l(e,i){let a=[],o=n(i,e.contentDir),s=o===``?`./`:`./${o}`;if(a.push(`Content:`),a.push(` Found ${e.totalCount} markdown files in ${s}`),e.sample.length>0){let t=e.sample.join(`, `),n=e.totalCount>e.sample.length?`, …`:``;a.push(` Sample: ${t}${n}`)}if(e.warnings.length>0)for(let t of e.warnings)a.push(` Warning: ${t}`);return a.push(``),r(t(i,`.ok`,`config.yml`))?(a.push(` To adjust scope, add patterns to .okignore at the project root.`),a.push(` To change the content root, edit .ok/config.yml → content.dir.`)):a.push(" Run `open-knowledge init` to scaffold config + .okignore."),a.push(``),a.push(` Re-check anytime: open-knowledge preview`),a.join(`
|
|
2
2
|
`)}export{c as n,l as t};
|
|
3
|
-
//# sourceMappingURL=preview-
|
|
3
|
+
//# sourceMappingURL=preview-BBUNs8ln.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./preview-BBUNs8ln.mjs";export{t as formatPreviewBlock,e as previewContent};
|
|
@@ -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-pgEbA527.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-BE1ekKj7.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as e,v as t}from"./init-
|
|
2
|
-
//# sourceMappingURL=repair-mcp-configs-
|
|
1
|
+
import{d as e,v as t}from"./init-DmRmDD99.mjs";import{_ as n,d as r,s as i}from"./write-project-skill-C3-zBR7a.mjs";import{t as a}from"./mcp-migrate-event-C35ikoh2.mjs";import{homedir as o}from"node:os";function s(e){let t=e.logger??u,n=e.home??o(),a=[];if(e.reclaimDisableEnv===`1`)return t({event:`mcp-config-repair-skipped`,reason:`reclaim-disabled`}),{outcomes:a,repairedCount:0};for(let o of i){let i=r[o],s=c(()=>i.configPath(``,n));if(s!==null&&a.push(l({scope:`user`,editorId:o,target:i,home:n,cwd:``,configPath:s,configPathOverride:void 0,logger:t})),i.projectConfigPath){let n=i.projectConfigPath,r=c(()=>n(e.projectDir));r!==null&&a.push(l({scope:`project`,editorId:o,target:i,home:void 0,cwd:e.projectDir,configPath:r,configPathOverride:r,logger:t}))}}return{outcomes:a,repairedCount:a.filter(e=>e.outcome===`repaired`).length}}function c(e){try{return e()}catch{return null}}function l(r){let i={scope:r.scope,editorId:r.editorId,configPath:r.configPath},o=e(r.target,r.cwd,r.home,r.configPathOverride);if(o===null)return{...i,outcome:`no-entry`};if(n(o))return{...i,outcome:`canonical`};r.logger(a({scope:r.scope,surface:`cli-repair`,editorId:r.editorId,configPath:r.configPath,priorEntry:o}));let s=t(r.target,r.cwd,{mode:`published`,skipAvailabilityCheck:!0},r.home,r.configPathOverride);if(s.action===`failed`){let e=s.error??`unknown write failure`;return r.logger({event:`mcp-config-repair-write-failed`,scope:r.scope,editorId:r.editorId,configPath:r.configPath,error:e}),{...i,outcome:`write-failed`,error:e}}return s.action===`declined`?(r.logger({event:`mcp-config-repair-declined`,scope:r.scope,editorId:r.editorId,configPath:r.configPath,reason:s.declineReason}),{...i,outcome:`declined`}):{...i,outcome:`repaired`}}function u(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{s as repairMcpConfigs};
|
|
2
|
+
//# sourceMappingURL=repair-mcp-configs-D9OnjybK.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{C as e}from"./src-S2yxN8_s.mjs";import{An as t,Bn as n,Dn as r,En as i,In as a,Mn as o,Pn as s,Vn as c,jn as l}from"./src-
|
|
1
|
+
import{C as e}from"./src-S2yxN8_s.mjs";import{An as t,Bn as n,Dn as r,En as i,In as a,Mn as o,Pn as s,Vn as c,jn as l}from"./src-D_chJWr7.mjs";import{t as u}from"./esm-EvSEzE_V.mjs";import{a as d,d as f,f as p,t as m}from"./write-project-skill-C3-zBR7a.mjs";import{dirname as h,join as g,resolve as _}from"node:path";import{existsSync as v,mkdirSync as y,readFileSync as b,readdirSync as x,rmSync as S,statSync as C,writeFileSync as w}from"node:fs";import{homedir as T}from"node:os";const E={existsSync:e=>v(e),isDirectory:e=>{try{return C(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>x(e),readFileSync:e=>b(e),writeFileSync:(e,t)=>{w(e,t)},mkdirSync:(e,t)=>{y(e,t)},rmSync:(e,t)=>{S(e,t)}},D={resolveProjectBundledSkillDir:()=>a(`project`,{checkDesktop:!1}),resolveUserBundledSkillDir:e=>a(e,{checkDesktop:!1}),readBundledVersion:()=>r(),readRecordedVersion:e=>t(e,`cli-hosts`),writeRecordedVersion:(e,t)=>o(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>s(e),readBundleDecision:(e,t)=>i(e,t),writeBundleDecision:(e,t,n)=>l(e,t,n),removeBundleFromDisk:(e,t)=>d(e,t)};function O(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function k(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(h(t),{recursive:!0}),A(e,t,n)}function A(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=g(e,r),a=g(t,r);n.isDirectory(i)?A(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function j(e,t,n,r,i,a){let o=[],s=g(e,`.agents`,`skills`,t),c=r.existsSync(s),l=!1;try{k(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=g(e,c.hostDir),u=g(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{k(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 M(e,t){if(!e)return!1;try{if(!t.existsSync(e))return!1;let n=t.readFileSync(e).toString(`utf8`);return n.includes(`# ok-mcp-v1`)||n.includes(`# ok-mcp-win-v1`)}catch{return!1}}function N(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=g(e,t.hostDir,`skills`,`open-knowledge`),s=g(o,`SKILL.md`),c=n.existsSync(s),l=f[t.editorId]?.projectConfigPath?.(e),u=!c&&M(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{m(o,e),k(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 P(t,r,i,a){let o=e=>{r.recordEvent(e).catch(()=>{})},s=()=>new Date().toISOString(),l;try{l=await r.readBundledVersion()}catch(e){let t=e instanceof Error?e.message:String(e);return a({event:`user-skill-reclaim-version-read-failed`,scope:`user`,error:t}),o({ts:s(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`version-read-failed:${t}`}),{outcome:`skipped`,reason:`version-read-failed`}}let u;try{u=await r.readRecordedVersion(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 c)try{d.push({id:e,sourceDir:r.resolveUserBundledSkillDir(e)})}catch(e){f=e instanceof Error?e.message:String(e)}if(d.length===0)return a({event:`user-skill-reclaim-bundle-missing`,scope:`user`,error:f??`no user-global bundles`}),o({ts:s(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,reason:`bundle-missing:${f}`}),{outcome:`skipped`,reason:`bundle-missing`};let p=[];for(let o of d){let s=n[o.id],c=i.existsSync(g(t,`.agents`,`skills`,s)),l=await r.readBundleDecision(t,s).catch(()=>null);if(!e(l,{installedOnDisk:c})){if(c)try{r.removeBundleFromDisk(t,o.id),a({event:`user-skill-reclaim-bundle-declined-removed`,scope:`user`,bundle:o.id})}catch(e){a({event:`user-skill-reclaim-bundle-remove-failed`,scope:`user`,bundle:o.id,error:e instanceof Error?e.message:String(e)})}continue}if(l===null&&c)try{await r.writeBundleDecision(t,s,!0)}catch(e){a({event:`user-skill-reclaim-grandfather-write-failed`,scope:`user`,bundle:o.id,error:e instanceof Error?e.message:String(e)})}p.push(o)}if(p.length===0)return{outcome:`skipped`,reason:`all-bundles-declined`};let m=p.every(e=>i.existsSync(g(t,`.agents`,`skills`,n[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=[],_=d.length===c.length,v=!0;for(let{id:e,sourceDir:r}of p){let o=j(t,n[e],r,i,a,l);h.push(...o.entries),o.centralWritten||(v=!1)}let y=h.some(e=>e.kind===`central`&&(e.outcome===`written`||e.outcome===`overwritten`));if(_&&v&&y){let e=null;try{await r.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)o({ts:s(),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`);o({ts:s(),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 F(e){let t=e.logger??O,n=e.fs??E,r=e.home??T(),i={...D,...e.deps};return e.reclaimDisableEnv===`1`?(t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`}):{status:`done`,project:N(e.projectDir,i,n,t),user:await P(r,i,n,t)}}function I(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 L(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 t.join(`
|
|
2
2
|
`)}function R(){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.").action(async()=>{let e=await F({projectDir:_(process.cwd()),reclaimDisableEnv:process.env.OK_RECLAIM_DISABLE??null});process.stdout.write(`${L(e)}\n`),process.exitCode=I(e)})}export{R as n,F as t};
|
|
3
|
-
//# sourceMappingURL=repair-skills-
|
|
3
|
+
//# sourceMappingURL=repair-skills-CK9KuPiU.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./repair-skills-CK9KuPiU.mjs";export{e as repairSkills};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,Da as t,Zo as n,_a as r,ea as i,f as a,ha as o,na as s,ta as c,u as l,y as u}from"./src-S2yxN8_s.mjs";import{$ as d,$i as f,$r as p,$t as m,A as h,Ai as g,An as _,Ar as v,At as y,B as b,Bi as x,Bn as S,Br as C,Bt as w,C as T,Ca as E,Ci as D,Cn as O,Cr as k,Ct as A,D as j,Di as M,Dn as N,Dr as P,Dt as F,E as I,Ei as L,En as R,Er as z,Et as B,F as V,Fi as H,Fn as U,Fr as W,Ft as G,G as K,Gi as q,Gn as J,Gr as Y,Gt as X,H as Z,Hi as Q,Hn as $,Hr as ee,Ht as te,I as ne,Ii as re,In as ie,Ir as ae,It as oe,J as se,Ji as ce,Jn as le,Jr as ue,Jt as de,K as fe,Ki as pe,Kn as me,Kr as he,Kt as ge,L as _e,Li as ve,Ln as ye,Lr as be,Lt as xe,M as Se,Mi as Ce,Mn as we,Mr as Te,Mt as Ee,N as De,Ni as Oe,Nn as ke,Nr as Ae,Nt as je,O as Me,Oi as Ne,On as Pe,Or as Fe,Ot as Ie,P as Le,Pi as Re,Pn as ze,Pr as Be,Pt as Ve,Q as He,Qi as Ue,Qr as We,Qt as Ge,R as Ke,Ri as qe,Rn as Je,Rr as Ye,Rt as Xe,S as Ze,Sa as Qe,Si as $e,Sn as et,Sr as tt,St as nt,T as rt,Ta as it,Ti as at,Tn as ot,Tr as st,Tt as ct,U as lt,Ui as ut,Un as dt,Ur as ft,Ut as pt,V as mt,Vi as ht,Vn as gt,Vr as _t,Vt as vt,W as yt,Wi as bt,Wn as xt,Wr as St,Wt as Ct,X as wt,Xi as Tt,Xn as Et,Xr as Dt,Xt as Ot,Y as kt,Yi as At,Yn as jt,Yr as Mt,Yt as Nt,Z as Pt,Zi as Ft,Zn as It,Zr as Lt,Zt as Rt,_ as zt,_a as Bt,_i as Vt,_n as Ht,_r as Ut,_t as Wt,a as Gt,aa as Kt,ai as qt,an as Jt,ar as Yt,at as Xt,b as Zt,ba as Qt,bi as $t,bn as en,br as tn,bt as nn,c as rn,ci as an,cn as on,cr as sn,d as cn,di as ln,dn as un,dr as dn,ea as fn,ei as pn,en as mn,et as hn,f 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,ht as jn,i as Mn,ia as Nn,ii as Pn,in as Fn,ir as In,it as Ln,j as Rn,ji as zn,jn as Bn,jr as Vn,jt as Hn,k as Un,ki as Wn,kn as Gn,kr as Kn,kt as qn,l as Jn,li as Yn,ln as Xn,lr as Zn,m as Qn,ma as $n,mi as er,mn as tr,mr as nr,mt as rr,n as ir,na as ar,ni as or,nn as sr,nt as cr,o as lr,oa as ur,oi as dr,on as fr,or as pr,ot as mr,p as hr,pa as gr,pi as _r,pn as vr,pr as yr,pt as br,q as xr,qi as Sr,qn as Cr,qr as wr,qt as Tr,r as Er,ra as Dr,ri as Or,rn as kr,rr as Ar,rt as jr,s as Mr,sa as Nr,si as Pr,sn as Fr,sr as Ir,t as Lr,ta as Rr,ti as zr,tn as Br,tt as Vr,u as Hr,ui as Ur,un as Wr,ur as Gr,v as Kr,va as qr,vi as Jr,vn as Yr,vr as Xr,vt as Zr,w as Qr,wa as $r,wi as ei,wn as ti,wr as ni,wt as ri,x as ii,xa as ai,xi as oi,xn as si,xr as ci,xt as li,y as ui,ya as di,yi as fi,yn as pi,yr as mi,yt as hi,z as gi,zi as _i,zn as vi,zr as yi,zt as bi}from"./src-C-7wAp3_.mjs";import{A as xi,C as Si,M as Ci,S as wi,T as Ti,_ as Ei,a as Di,b as Oi,c as ki,f as Ai,g as ji,h as Mi,i as Ni,j as Pi,k as Fi,l as Ii,m as Li,n as Ri,o as zi,p as Bi,r as Vi,s as Hi,t as Ui,u as Wi,v as Gi,w as Ki,x as qi,y as Ji}from"./server-lock-D46oe4zF.mjs";export{Qt as AGENT_ID_MAX_LEN,ai as AGENT_ID_RE,ht as AGENT_WRITE_ORIGIN,di as AgentFocusBroadcaster,gr as AgentPresenceBroadcaster,Q as AgentSessionCapacityError,ut as AgentSessionManager,rr as AutoStartDisabledError,Je as BUNDLE_IDS,vi as BUNDLE_SCOPE,S as BUNDLE_SKILL_NAME,Fn as BacklinkIndex,At as CC1Broadcaster,r as CC1_CONTRACT_VERSION,de as CONFIG_FILENAME,Yn as CONFLICT_MARKER_RE,Ir as CURSOR_BUNDLE_PATHS_BY_PLATFORM,zt as ConfigSchema,ue as DEFAULT_CHECKPOINT_RETENTION,ci as DEFAULT_EMBEDDINGS_DIMENSIONS,ct as DEFAULT_PACK_ID,tt as EMBEDDINGS_API_KEY_ENV,Mt as FILE_SYSTEM_WRITER,Y as FILE_WATCHER_ORIGIN,wn as FileEmbeddingsBackend,pt as GIT_PREFLIGHT_FAIL_SPAN_NAME,Dt as GIT_UPSTREAM_WRITER,$r as GitDirAccessError,un as GitNotAvailableError,vn as GitTooOldError,Oe as HOCUSPOCUS_AUTH_REJECTION_REASONS,Re as HocuspocusAuthRejection,H as HocuspocusAuthTokenSchema,yr as INSTALLED_AGENTS_SCHEMES,o as LINEAGE_EPOCH_KEY,_e as LIVE_DERIVED_INDEX_DEBOUNCE_MS,B as LOG_MD_TEMPLATE,Tn as MANAGED_RENAME_ORIGIN,bt as MAX_AGENT_SESSIONS,Xt as MCP_CONNECTION_ID_HEADER,i as MCP_SERVER_NAME,vr as MIN_GIT_VERSION,b as MISSING_OK_CONFIG_MESSAGE,it as MalformedGitPointerError,Pt as McpLogger,mt as MissingOkConfigError,Kn as OBSERVER_SYNC_ORIGIN,Nt as OK_OKIGNORE_TEMPLATE,c as ORPHAN_MODES,n as PROTOCOL_VERSION,qi as PinoLogger,ki as ProcessLockCollisionError,Jn as ProjectGitInitError,Wt as ROLLBACK_ORIGIN,Ot as ROOT_GITIGNORE_TEMPLATE,ji as RUNTIME_VERSION,Lt as SERVICE_WRITER,ke as SKILL_INSTALL_EVENTS_FILE_REL,u as SKILL_STATE_TARGETS,F as STARTER_FOLDERS,Ie as STARTER_FOLDER_FRONTMATTER_FILENAME,qn as STARTER_PACKS,y as STARTER_PACK_IDS,Hn as STARTER_TEMPLATES,rt as STATE_MANIFEST_FILENAME,Ei as STATE_SCHEMA_VERSION,t as SYSTEM_DOC_NAME,xe as SeedPrerequisiteError,Xe as SeedRootDirError,Ui as ServerLockCollisionError,Lr as SingleFileNotAFileError,ir as SingleFileNotFoundError,Er as SingleFileNotMarkdownError,I as StateManifestError,Qr as TagIndex,gt as USER_GLOBAL_BUNDLE_IDS,fr as UiLockCollisionError,Zr as __getShowAllWalkStatsForTesting,hi as __resetShowAllWalkStatsForTesting,Ii as acquireProcessLock,Ri as acquireServerLock,Fr as acquireUiLock,q as applyAgentMarkdownWrite,he as applyExternalChange,ri as applySeed,j as assertCompatibleStateManifest,tr as assertGitAvailable,Ae as assertNeverDiskEvent,br as attachIdleShutdown,Kr as bootServer,O as buildAndOpenSkill,Rt as buildConfigYmlContent,fe as buildExecResult,U as buildSkillZip,Ee as buildStarterFolderFrontmatterYaml,We as buildWipTree,$ as bundleSkillMdPath,Be as classifyEvents,$t as classifyFsPath,_r as clearContributors,Ut as clearEmbeddingsKeyFromAllBackends,je as coercePackId,l as colorFromSeed,p as commitUpstreamImport,pn as commitWip,zr as commitWipFromTree,kn as compareSemver,J as composeEffectiveLinterConfig,Ur as containsConflictMarkers,W as contentHash,er as contributorCount,De as countShadowObjects,Le as countStaleAgentWipRefs,V as countWipRefs,nn as createApiExtension,z as createAssetServeMiddleware,Ar as createContentFilter,In as createContentFilterAsync,Xr as createEmbeddingsSecretStore,Mn as createEphemeralProjectDir,wr as createExternalChangeHandler,gn as createFileLogger,Ke as createLiveDerivedIndexExtension,yt as createMcpHttpHandler,nr as createOsProbe,P as createPersistenceExtension,T as createServer,Rn as createServerObserverExtension,pe as createStreamingErrorWriter,wi as createTestLogger,mi as describeStoredEmbeddingsKey,bn as detectClaudeDesktopPresence,Cn as detectGit,Me as detectProjectShape,hn as discoverLockDirs,le as discoverMarkdownlintConfig,Ct as emitPreflightFailureSpan,xr as encodeDocName,se as encodeFolderRoute,kt as encodeSkillRoute,Hr as ensureProjectGit,Ge as ensureProjectSkillGitignore,Sr as errorResponse,ae as evictStaleTrackerEntries,Vr as extractOkBinaryPath,Jt as extractWikiLinksFromMarkdown,Ht as fallbackPaths,cn as findEnclosingGitRoot,sr as findEnclosingProjectRoot,jt as findNativeMarkdownlintFile,hr as flushFileLogger,re as formatAuthRejectionWire,On as formatContributors,Sn as formatContributorsFrom,nt as formatPackRationale,or as gcCheckpointRefs,He as getCurrentMcpLogger,k as getLocalDir,Qn as getLogFilePath,Si as getLogger,En as getLogsDir,Gi as getMachineId,Rr as getMeter,$n as getMetrics,ar as getTracer,Dn as handleCollabSocketError,sn as handleSpawnCursor,ne as hasGcLogLatch,a as iconFromClientName,xn as incrementCollabSocketFilteredError,Bt as incrementServerObserverFire,m as initContent,Or as initShadowRepo,Dr as initTelemetry,Zt as initToleranceTelemetryWriter,Ln as installPrettyZodErrors,Ki as installTestLoggers,ti as installUserSkill,x as isAllowedApiOrigin,bi as isAllowedWorkspaceHostHeader,Tt as isConfigDoc,ve as isHocuspocusAuthRejectionReason,Ve as isKnownPackId,Ft as isLinkIndexExcludedDoc,w as isLoopbackAddress,Ue as isManagedArtifactDoc,s as isOrphanMode,v as isPairedWriteOrigin,Zn as isPathWithinDir,Ji as isProcessAlive,kr as isProjectRoot,pi as isProjectSkillManaged,f as isReservedForUserTree,be as isSelfWrite,fn as isSystemDoc,ii as isToleranceTelemetryEnabled,Oi as isValidLockPid,Ye as lastKnownHash,Pn as listRescueCheckpoints,G as listStarterPacks,Se as loadPrincipal,Wi as lockFilePath,Ti as loggerFactory,Fi as logsCurrentPath,xi as logsPreviousPath,tn as makeLazyEmbeddingsKeyStore,Vi as markServerLockDraining,Z as mountMcpAndApi,oi as normalizeFsPath,dt as originGitHubHost,mn as packageVersionMajorMinor,qe as parseAuthRejectionWire,Yr as parseGitVersion,_i as parseHocuspocusAuthToken,lt as parseKeepaliveConnectionId,yi as pathToDocName,A as planSeed,Gt as prepareSingleFileOpen,cr as processCommand,jr as processUsage,ot as readAllTargets,gi as readBranchFromHead,R as readBundleDecision,Et as readOwnNativeRules,Ai as readProcessLock,Bi as readProcessLockDetailed,An as readProjectLocalSemanticConfig,Ni as readServerLock,N as readServerPackageVersion,Pe as readSkillInstallStateSnapshot,en as readSkillManagement,Un as readStateManifest,Gn as readTargetRecordedAt,_ as readTargetVersion,on as readUiLock,ln as reconcile,Vt as recordContributor,ze as recordSkillInstallEvent,K as registerAllTools,C as registerWrite,Li as releaseProcessLock,Di as releaseServerLock,Xn as releaseUiLock,_t as removeLastKnownHash,qr as resetMetrics,e as resolveBundleEnabled,ie as resolveBundledSkillDir,ni as resolveContentDir,Gr as resolveCursorBinaryDefault,dn as resolveCursorSpawnInvocation,me as resolveEffectiveLinterConfig,st as resolveLockDir,Cr as resolveNativeConfigForDoc,It as resolveNativeMarkdownlintConfig,oe as resolvePack,Mr as resolvePackageVersion,wt as resolveUiInfo,Jr as restoreContributors,ui as restoreLifecycleFromConflictsJson,Yt as rewriteMarkdownLinksForDocumentRename,pr as rewriteWikiLinksForDocumentRename,X as runAuthReposSubprocess,ge as runAuthStatusSubprocess,vt as runCloneSubprocess,Tr as runDeviceFlowSubprocess,d as runWithMcpLogger,Fe as safeContentPath,li as safeSubdir,qt as safetyCheckpoint,mr as sanitizeClientName,dr as saveInMemoryCheckpoint,Pr as saveVersion,jn as seedBasenameIndex,lr as serializeError,Nn as setActiveSpanAttributes,Vn as setupServerObservers,an as shadowGit,Kt as shutdownTelemetry,si as skillManagementPath,Pi as spansCurrentPath,Ci as spansPreviousPath,yn as spawnDetached,_n as splitMarkdownBlocks,ee as startWatcher,ce as streamingProblemEvent,fi as swapContributors,Ze as teardownToleranceTelemetryWriter,Qe as toBroadcasterKey,$e as tracedAppendFileSync,D as tracedLinkSync,ei as tracedMkdir,at as tracedMkdirSync,L as tracedRename,M as tracedRenameSync,Ne as tracedRmSync,Wn as tracedRmdirSync,g as tracedUnlinkSync,zn as tracedWriteFile,Ce as tracedWriteFileSync,rn as untrackTrackedProjectSkillProjection,ft as updateLastKnownHash,Mi as updateProcessLockPort,zi as updateServerLockPort,Wr as updateUiLockPort,E as validateAgentId,te as validateCloneInputs,ye as validateSkillZip,Hi as waitForServerLockDrain,Te as withHiddenWindowsConsole,ur as withSpan,Nr as withSpanSync,Bn as writeBundleDecision,xt as writeMarkdownlintRule,Br as writeRootGitignoreForNewRepo,et as writeSkillManagement,h as writeStateManifest,we as writeTargetVersion,St as writeTracker};
|
|
1
|
+
import{C as e,Da as t,Zo as n,_a as r,ea as i,f as a,ha as o,na as s,ta as c,u as l,y as u}from"./src-S2yxN8_s.mjs";import{$ as d,$i as f,$r as p,$t as m,A as h,Ai as g,An as _,Ar as v,At as y,B as b,Bi as x,Bn as S,Br as C,Bt as w,C as T,Ca as E,Ci as D,Cn as O,Cr as k,Ct as A,D as j,Di as M,Dn as N,Dr as P,Dt as F,E as I,Ei as L,En as R,Er as z,Et as B,F as V,Fi as H,Fn as U,Fr as W,Ft as G,G as K,Gi as q,Gn as J,Gr as Y,Gt as X,H as Z,Hi as Q,Hn as $,Hr as ee,Ht as te,I as ne,Ii as re,In as ie,Ir as ae,It as oe,J as se,Ji as ce,Jn as le,Jr as ue,Jt as de,K as fe,Ki as pe,Kn as me,Kr as he,Kt as ge,L as _e,Li as ve,Ln as ye,Lr as be,Lt as xe,M as Se,Mi as Ce,Mn as we,Mr as Te,Mt as Ee,N as De,Ni as Oe,Nn as ke,Nr as Ae,Nt as je,O as Me,Oi as Ne,On as Pe,Or as Fe,Ot as Ie,P as Le,Pi as Re,Pn as ze,Pr as Be,Pt as Ve,Q as He,Qi as Ue,Qr as We,Qt as Ge,R as Ke,Ri as qe,Rn as Je,Rr as Ye,Rt as Xe,S as Ze,Sa as Qe,Si as $e,Sn as et,Sr as tt,St as nt,T as rt,Ta as it,Ti as at,Tn as ot,Tr as st,Tt as ct,U as lt,Ui as ut,Un as dt,Ur as ft,Ut as pt,V as mt,Vi as ht,Vn as gt,Vr as _t,Vt as vt,W as yt,Wi as bt,Wn as xt,Wr as St,Wt as Ct,X as wt,Xi as Tt,Xn as Et,Xr as Dt,Xt as Ot,Y as kt,Yi as At,Yn as jt,Yr as Mt,Yt as Nt,Z as Pt,Zi as Ft,Zn as It,Zr as Lt,Zt as Rt,_ as zt,_a as Bt,_i as Vt,_n as Ht,_r as Ut,_t as Wt,a as Gt,aa as Kt,ai as qt,an as Jt,ar as Yt,at as Xt,b as Zt,ba as Qt,bi as $t,bn as en,br as tn,bt as nn,c as rn,ci as an,cn as on,cr as sn,d as cn,di as ln,dn as un,dr as dn,ea as fn,ei as pn,en as mn,et as hn,f 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,ht as jn,i as Mn,ia as Nn,ii as Pn,in as Fn,ir as In,it as Ln,j as Rn,ji as zn,jn as Bn,jr as Vn,jt as Hn,k as Un,ki as Wn,kn as Gn,kr as Kn,kt as qn,l as Jn,li as Yn,ln as Xn,lr as Zn,m as Qn,ma as $n,mi as er,mn as tr,mr as nr,mt as rr,n as ir,na as ar,ni as or,nn as sr,nt as cr,o as lr,oa as ur,oi as dr,on as fr,or as pr,ot as mr,p as hr,pa as gr,pi as _r,pn as vr,pr as yr,pt as br,q as xr,qi as Sr,qn as Cr,qr as wr,qt as Tr,r as Er,ra as Dr,ri as Or,rn as kr,rr as Ar,rt as jr,s as Mr,sa as Nr,si as Pr,sn as Fr,sr as Ir,t as Lr,ta as Rr,ti as zr,tn as Br,tt as Vr,u as Hr,ui as Ur,un as Wr,ur as Gr,v as Kr,va as qr,vi as Jr,vn as Yr,vr as Xr,vt as Zr,w as Qr,wa as $r,wi as ei,wn as ti,wr as ni,wt as ri,x as ii,xa as ai,xi as oi,xn as si,xr as ci,xt as li,y as ui,ya as di,yi as fi,yn as pi,yr as mi,yt as hi,z as gi,zi as _i,zn as vi,zr as yi,zt as bi}from"./src-D_chJWr7.mjs";import{A as xi,C as Si,M as Ci,S as wi,T as Ti,_ as Ei,a as Di,b as Oi,c as ki,f as Ai,g as ji,h as Mi,i as Ni,j as Pi,k as Fi,l as Ii,m as Li,n as Ri,o as zi,p as Bi,r as Vi,s as Hi,t as Ui,u as Wi,v as Gi,w as Ki,x as qi,y as Ji}from"./server-lock-D46oe4zF.mjs";export{Qt as AGENT_ID_MAX_LEN,ai as AGENT_ID_RE,ht as AGENT_WRITE_ORIGIN,di as AgentFocusBroadcaster,gr as AgentPresenceBroadcaster,Q as AgentSessionCapacityError,ut as AgentSessionManager,rr as AutoStartDisabledError,Je as BUNDLE_IDS,vi as BUNDLE_SCOPE,S as BUNDLE_SKILL_NAME,Fn as BacklinkIndex,At as CC1Broadcaster,r as CC1_CONTRACT_VERSION,de as CONFIG_FILENAME,Yn as CONFLICT_MARKER_RE,Ir as CURSOR_BUNDLE_PATHS_BY_PLATFORM,zt as ConfigSchema,ue as DEFAULT_CHECKPOINT_RETENTION,ci as DEFAULT_EMBEDDINGS_DIMENSIONS,ct as DEFAULT_PACK_ID,tt as EMBEDDINGS_API_KEY_ENV,Mt as FILE_SYSTEM_WRITER,Y as FILE_WATCHER_ORIGIN,wn as FileEmbeddingsBackend,pt as GIT_PREFLIGHT_FAIL_SPAN_NAME,Dt as GIT_UPSTREAM_WRITER,$r as GitDirAccessError,un as GitNotAvailableError,vn as GitTooOldError,Oe as HOCUSPOCUS_AUTH_REJECTION_REASONS,Re as HocuspocusAuthRejection,H as HocuspocusAuthTokenSchema,yr as INSTALLED_AGENTS_SCHEMES,o as LINEAGE_EPOCH_KEY,_e as LIVE_DERIVED_INDEX_DEBOUNCE_MS,B as LOG_MD_TEMPLATE,Tn as MANAGED_RENAME_ORIGIN,bt as MAX_AGENT_SESSIONS,Xt as MCP_CONNECTION_ID_HEADER,i as MCP_SERVER_NAME,vr as MIN_GIT_VERSION,b as MISSING_OK_CONFIG_MESSAGE,it as MalformedGitPointerError,Pt as McpLogger,mt as MissingOkConfigError,Kn as OBSERVER_SYNC_ORIGIN,Nt as OK_OKIGNORE_TEMPLATE,c as ORPHAN_MODES,n as PROTOCOL_VERSION,qi as PinoLogger,ki as ProcessLockCollisionError,Jn as ProjectGitInitError,Wt as ROLLBACK_ORIGIN,Ot as ROOT_GITIGNORE_TEMPLATE,ji as RUNTIME_VERSION,Lt as SERVICE_WRITER,ke as SKILL_INSTALL_EVENTS_FILE_REL,u as SKILL_STATE_TARGETS,F as STARTER_FOLDERS,Ie as STARTER_FOLDER_FRONTMATTER_FILENAME,qn as STARTER_PACKS,y as STARTER_PACK_IDS,Hn as STARTER_TEMPLATES,rt as STATE_MANIFEST_FILENAME,Ei as STATE_SCHEMA_VERSION,t as SYSTEM_DOC_NAME,xe as SeedPrerequisiteError,Xe as SeedRootDirError,Ui as ServerLockCollisionError,Lr as SingleFileNotAFileError,ir as SingleFileNotFoundError,Er as SingleFileNotMarkdownError,I as StateManifestError,Qr as TagIndex,gt as USER_GLOBAL_BUNDLE_IDS,fr as UiLockCollisionError,Zr as __getShowAllWalkStatsForTesting,hi as __resetShowAllWalkStatsForTesting,Ii as acquireProcessLock,Ri as acquireServerLock,Fr as acquireUiLock,q as applyAgentMarkdownWrite,he as applyExternalChange,ri as applySeed,j as assertCompatibleStateManifest,tr as assertGitAvailable,Ae as assertNeverDiskEvent,br as attachIdleShutdown,Kr as bootServer,O as buildAndOpenSkill,Rt as buildConfigYmlContent,fe as buildExecResult,U as buildSkillZip,Ee as buildStarterFolderFrontmatterYaml,We as buildWipTree,$ as bundleSkillMdPath,Be as classifyEvents,$t as classifyFsPath,_r as clearContributors,Ut as clearEmbeddingsKeyFromAllBackends,je as coercePackId,l as colorFromSeed,p as commitUpstreamImport,pn as commitWip,zr as commitWipFromTree,kn as compareSemver,J as composeEffectiveLinterConfig,Ur as containsConflictMarkers,W as contentHash,er as contributorCount,De as countShadowObjects,Le as countStaleAgentWipRefs,V as countWipRefs,nn as createApiExtension,z as createAssetServeMiddleware,Ar as createContentFilter,In as createContentFilterAsync,Xr as createEmbeddingsSecretStore,Mn as createEphemeralProjectDir,wr as createExternalChangeHandler,gn as createFileLogger,Ke as createLiveDerivedIndexExtension,yt as createMcpHttpHandler,nr as createOsProbe,P as createPersistenceExtension,T as createServer,Rn as createServerObserverExtension,pe as createStreamingErrorWriter,wi as createTestLogger,mi as describeStoredEmbeddingsKey,bn as detectClaudeDesktopPresence,Cn as detectGit,Me as detectProjectShape,hn as discoverLockDirs,le as discoverMarkdownlintConfig,Ct as emitPreflightFailureSpan,xr as encodeDocName,se as encodeFolderRoute,kt as encodeSkillRoute,Hr as ensureProjectGit,Ge as ensureProjectSkillGitignore,Sr as errorResponse,ae as evictStaleTrackerEntries,Vr as extractOkBinaryPath,Jt as extractWikiLinksFromMarkdown,Ht as fallbackPaths,cn as findEnclosingGitRoot,sr as findEnclosingProjectRoot,jt as findNativeMarkdownlintFile,hr as flushFileLogger,re as formatAuthRejectionWire,On as formatContributors,Sn as formatContributorsFrom,nt as formatPackRationale,or as gcCheckpointRefs,He as getCurrentMcpLogger,k as getLocalDir,Qn as getLogFilePath,Si as getLogger,En as getLogsDir,Gi as getMachineId,Rr as getMeter,$n as getMetrics,ar as getTracer,Dn as handleCollabSocketError,sn as handleSpawnCursor,ne as hasGcLogLatch,a as iconFromClientName,xn as incrementCollabSocketFilteredError,Bt as incrementServerObserverFire,m as initContent,Or as initShadowRepo,Dr as initTelemetry,Zt as initToleranceTelemetryWriter,Ln as installPrettyZodErrors,Ki as installTestLoggers,ti as installUserSkill,x as isAllowedApiOrigin,bi as isAllowedWorkspaceHostHeader,Tt as isConfigDoc,ve as isHocuspocusAuthRejectionReason,Ve as isKnownPackId,Ft as isLinkIndexExcludedDoc,w as isLoopbackAddress,Ue as isManagedArtifactDoc,s as isOrphanMode,v as isPairedWriteOrigin,Zn as isPathWithinDir,Ji as isProcessAlive,kr as isProjectRoot,pi as isProjectSkillManaged,f as isReservedForUserTree,be as isSelfWrite,fn as isSystemDoc,ii as isToleranceTelemetryEnabled,Oi as isValidLockPid,Ye as lastKnownHash,Pn as listRescueCheckpoints,G as listStarterPacks,Se as loadPrincipal,Wi as lockFilePath,Ti as loggerFactory,Fi as logsCurrentPath,xi as logsPreviousPath,tn as makeLazyEmbeddingsKeyStore,Vi as markServerLockDraining,Z as mountMcpAndApi,oi as normalizeFsPath,dt as originGitHubHost,mn as packageVersionMajorMinor,qe as parseAuthRejectionWire,Yr as parseGitVersion,_i as parseHocuspocusAuthToken,lt as parseKeepaliveConnectionId,yi as pathToDocName,A as planSeed,Gt as prepareSingleFileOpen,cr as processCommand,jr as processUsage,ot as readAllTargets,R as readBundleDecision,Et as readOwnNativeRules,Ai as readProcessLock,Bi as readProcessLockDetailed,gi as readProjectHeadState,An as readProjectLocalSemanticConfig,Ni as readServerLock,N as readServerPackageVersion,Pe as readSkillInstallStateSnapshot,en as readSkillManagement,Un as readStateManifest,Gn as readTargetRecordedAt,_ as readTargetVersion,on as readUiLock,ln as reconcile,Vt as recordContributor,ze as recordSkillInstallEvent,K as registerAllTools,C as registerWrite,Li as releaseProcessLock,Di as releaseServerLock,Xn as releaseUiLock,_t as removeLastKnownHash,qr as resetMetrics,e as resolveBundleEnabled,ie as resolveBundledSkillDir,ni as resolveContentDir,Gr as resolveCursorBinaryDefault,dn as resolveCursorSpawnInvocation,me as resolveEffectiveLinterConfig,st as resolveLockDir,Cr as resolveNativeConfigForDoc,It as resolveNativeMarkdownlintConfig,oe as resolvePack,Mr as resolvePackageVersion,wt as resolveUiInfo,Jr as restoreContributors,ui as restoreLifecycleFromConflictsJson,Yt as rewriteMarkdownLinksForDocumentRename,pr as rewriteWikiLinksForDocumentRename,X as runAuthReposSubprocess,ge as runAuthStatusSubprocess,vt as runCloneSubprocess,Tr as runDeviceFlowSubprocess,d as runWithMcpLogger,Fe as safeContentPath,li as safeSubdir,qt as safetyCheckpoint,mr as sanitizeClientName,dr as saveInMemoryCheckpoint,Pr as saveVersion,jn as seedBasenameIndex,lr as serializeError,Nn as setActiveSpanAttributes,Vn as setupServerObservers,an as shadowGit,Kt as shutdownTelemetry,si as skillManagementPath,Pi as spansCurrentPath,Ci as spansPreviousPath,yn as spawnDetached,_n as splitMarkdownBlocks,ee as startWatcher,ce as streamingProblemEvent,fi as swapContributors,Ze as teardownToleranceTelemetryWriter,Qe as toBroadcasterKey,$e as tracedAppendFileSync,D as tracedLinkSync,ei as tracedMkdir,at as tracedMkdirSync,L as tracedRename,M as tracedRenameSync,Ne as tracedRmSync,Wn as tracedRmdirSync,g as tracedUnlinkSync,zn as tracedWriteFile,Ce as tracedWriteFileSync,rn as untrackTrackedProjectSkillProjection,ft as updateLastKnownHash,Mi as updateProcessLockPort,zi as updateServerLockPort,Wr as updateUiLockPort,E as validateAgentId,te as validateCloneInputs,ye as validateSkillZip,Hi as waitForServerLockDrain,Te as withHiddenWindowsConsole,ur as withSpan,Nr as withSpanSync,Bn as writeBundleDecision,xt as writeMarkdownlintRule,Br as writeRootGitignoreForNewRepo,et as writeSkillManagement,h as writeStateManifest,we as writeTargetVersion,St as writeTracker};
|