@inkeep/open-knowledge 0.20.1 → 0.21.0-beta.0
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/THIRD_PARTY_NOTICES.md +80 -40
- package/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +2 -2
- package/dist/assets/skills/project/references/anti-patterns.md +1 -1
- package/dist/assets/skills/project/references/preview.md +21 -3
- package/dist/assets/skills/write-skill/SKILL.md +1 -1
- package/dist/{build-DCHzh6iE.mjs → build-CN003PPg.mjs} +2 -2
- package/dist/build-Ca40rJCO.mjs +1 -0
- package/dist/{chokidar-Bu9Rdqzq.mjs → chokidar-oNPiNLWX.mjs} +3 -3
- package/dist/{chunk-BRGMQKJV-CHbk2NqS.mjs → chunk-BRGMQKJV-CZUkYGAZ.mjs} +2 -2
- package/dist/{chunk-HWBSOZZR-5PJ_z6D6.mjs → chunk-HWBSOZZR-DQTTl_pa.mjs} +3 -3
- package/dist/{chunk-XHM67O4N-C_wCK9HT.mjs → chunk-XHM67O4N-D3pxE_Og.mjs} +2 -2
- package/dist/cli.mjs +49 -57
- package/dist/constants-x0acspSh.mjs +2 -0
- package/dist/{dist-Cr0_LDkC.mjs → dist-B3Nl3Djt.mjs} +10 -10
- package/dist/dist-BOoSXzXj.mjs +1 -0
- package/dist/{flag-coverage-QT4N2Z44-DJYVWsW6.mjs → flag-coverage-QT4N2Z44-hqAAghSo.mjs} +2 -2
- package/dist/{gh-detect-BDIdc7oG.mjs → gh-detect-BDCCLwpS.mjs} +3 -3
- package/dist/index.d.mts +27 -5
- package/dist/index.mjs +1 -1
- package/dist/init-DOCf2MYY.mjs +1 -0
- package/dist/init-eaHzzLcd.mjs +317 -0
- package/dist/loader-Bx2WWZdB.mjs +1 -0
- package/dist/{loader-BtXYBnjM.mjs → loader-DcKU2Suk.mjs} +2 -2
- package/dist/{lzma-D4yjI8KW.mjs → lzma-DBkyKSY9.mjs} +2 -2
- package/dist/native/index.d.ts +52 -0
- package/dist/native/index.js +593 -0
- package/dist/native/native-config.linux-x64-gnu.node +0 -0
- package/dist/native/package.json +35 -0
- package/dist/preview-Bob5z4VP.mjs +1 -0
- package/dist/preview-Df40RFQg.mjs +3 -0
- package/dist/public/assets/{ActivityModeContent-BeKprPnC.js → ActivityModeContent-BOmORHei.js} +1 -1
- package/dist/public/assets/{DocumentContext-Dsy-V9Ut.js → DocumentContext-CfRvyFlb.js} +1 -1
- package/dist/public/assets/{ManagedArtifactProperties-BjUj1ege.js → ManagedArtifactProperties-Dgbp1Fs2.js} +1 -1
- package/dist/public/assets/{PropertyPanel-WP7faSjK.js → PropertyPanel-B0hwZHMh.js} +1 -1
- package/dist/public/assets/SettingsDialogBody-Dv1-9_7P.js +7 -0
- package/dist/public/assets/{SourceEditor-BCTvGEN3.js → SourceEditor-BMN-4stf.js} +1 -1
- package/dist/public/assets/{config-validation-events-DeNSFunr.js → config-validation-events-mxFyV1Om.js} +1 -1
- package/dist/public/assets/{index-D9ORkIyY.js → index-CHWT2CB5.js} +5 -5
- package/dist/public/assets/{selection-context-DrXM_FlV.js → selection-context-DzBK_3te.js} +1 -1
- package/dist/public/assets/{telemetry-impl-DXv9s3r6.js → telemetry-impl-DZfG0f1d.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-C9kWtkXV.js → typing-burst-detector-Cc2KgY3K.js} +1 -1
- package/dist/public/index.html +6 -6
- package/dist/{repair-launch-json-NnaC7E-w.mjs → repair-launch-json-C6ZO5Cqt.mjs} +2 -2
- package/dist/{repair-mcp-configs-BMfAMqQS.mjs → repair-mcp-configs-D6D3yZP6.mjs} +2 -2
- package/dist/repair-skills-ClESzPry.mjs +1 -0
- package/dist/{repair-skills-Bv465NK-.mjs → repair-skills-DrDTStak.mjs} +3 -3
- package/dist/server-lock-8Lv6A-Xa-C35kJqNB.mjs +1 -0
- package/dist/{server-lock-CN2YHwpP-COM23IWb.mjs → server-lock-CN2YHwpP-aP9IA5H6.mjs} +4 -4
- package/dist/{sqlite3-56UMWEY3-B4_LAdBq.mjs → sqlite3-56UMWEY3-DA8bw7DG.mjs} +1 -1
- package/dist/src-DYiP4t4O.mjs +3 -0
- package/dist/start-B4FrQZ1j.mjs +1 -0
- package/dist/{start-BWbQNwyA.mjs → start-n0uv2kHZ.mjs} +2 -2
- package/dist/{tar-ANUBEFJY-GYQ0YvKO.mjs → tar-ANUBEFJY-DCUS8bvA.mjs} +1 -1
- package/dist/{write-project-skill-TvNCLXKO.mjs → write-project-skill-DzjgQ8XK.mjs} +3 -3
- package/package.json +5 -2
- package/dist/build-CCDQyip-.mjs +0 -1
- package/dist/constants-Dq9LTiaY.mjs +0 -2
- package/dist/dist-Ca3Ag5Ao.mjs +0 -1
- package/dist/init-9Ig7fBo7.mjs +0 -1
- package/dist/init-DVOjTbN9.mjs +0 -305
- package/dist/loader-Das6LZnS.mjs +0 -1
- package/dist/preview-3v1Isz0o.mjs +0 -3
- package/dist/preview-BXCFehx6.mjs +0 -1
- package/dist/public/assets/SettingsDialogBody-v_uU85KY.js +0 -7
- package/dist/repair-skills-D1vWIYJn.mjs +0 -1
- package/dist/server-lock-8Lv6A-Xa-iDqi_bbE.mjs +0 -1
- package/dist/src-B_8kBsEY.mjs +0 -3
- package/dist/start-DJNM84PI.mjs +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{t as e}from"./esm-BLMtE3s6.mjs";import{
|
|
2
|
-
`)}function F(){return new e(`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 M({projectDir:
|
|
3
|
-
//# sourceMappingURL=repair-skills-
|
|
1
|
+
import{t as e}from"./esm-BLMtE3s6.mjs";import{$r as t,Rr as n,Ur as r,d as i,ia as a,qr as o,ut as s}from"./dist-B3Nl3Djt.mjs";import{i as c,o as l,s as u,t as d}from"./write-project-skill-DzjgQ8XK.mjs";import{dirname as f,join as p,resolve as m}from"node:path";import{existsSync as h,mkdirSync as g,readFileSync as _,readdirSync as v,rmSync as y,statSync as b,writeFileSync as x}from"node:fs";import{homedir as S}from"node:os";const C={existsSync:e=>h(e),isDirectory:e=>{try{return b(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>v(e),readFileSync:e=>_(e),writeFileSync:(e,t)=>{x(e,t)},mkdirSync:(e,t)=>{g(e,t)},rmSync:(e,t)=>{y(e,t)}},w={resolveProjectBundledSkillDir:()=>t(`project`,{checkDesktop:!1}),resolveUserBundledSkillDir:e=>t(e,{checkDesktop:!1}),readBundledVersion:()=>n(),readRecordedVersion:e=>r(e,`cli-hosts`),writeRecordedVersion:(e,t)=>a(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>o(e)};function T(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function E(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(f(t),{recursive:!0}),D(e,t,n)}function D(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=p(e,r),a=p(t,r);n.isDirectory(i)?D(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function O(e,t,n,r,i,a){let o=[],s=p(e,`.agents`,`skills`,t),c=r.existsSync(s),l=!1;try{E(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 u){let l=p(e,c.hostDir),u=p(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{E(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 k(e,t){if(!e)return!1;try{return t.existsSync(e)?t.readFileSync(e).toString(`utf8`).includes(c):!1}catch{return!1}}function A(e,t,n,r){let i;try{i=t.resolveProjectBundledSkillDir()}catch(e){return r({event:`project-skill-reclaim-bundle-missing`,scope:`project`,error:e instanceof Error?e.message:String(e)}),{outcome:`skipped`,reason:`bundle-missing`}}let a=[];for(let t of u){let o=p(e,t.hostDir,`skills`,`open-knowledge`),s=p(o,`SKILL.md`),c=n.existsSync(s),u=l[t.editorId]?.projectConfigPath?.(e),f=!c&&k(u,n);if(!c&&!f){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{d(o,e),E(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 j(e,t,n,r){let a=e=>{t.recordEvent(e).catch(()=>{})},o=()=>new Date().toISOString(),c;try{c=await t.readBundledVersion()}catch(e){let t=e instanceof Error?e.message:String(e);return r({event:`user-skill-reclaim-version-read-failed`,scope:`user`,error:t}),a({ts:o(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`version-read-failed:${t}`}),{outcome:`skipped`,reason:`version-read-failed`}}let l;try{l=await t.readRecordedVersion(e)}catch(e){r({event:`user-skill-reclaim-version-read-error`,scope:`user`,error:e instanceof Error?e.message:String(e)}),l=null}if(l!==null&&l===c)return r({event:`user-skill-reclaim-skipped-version-current`,scope:`user`,version:c}),{outcome:`skipped`,reason:`version-current`};let u=[],d=null;for(let e of s)try{u.push({id:e,sourceDir:t.resolveUserBundledSkillDir(e)})}catch(e){d=e instanceof Error?e.message:String(e)}if(u.length===0)return r({event:`user-skill-reclaim-bundle-missing`,scope:`user`,error:d??`no user-global bundles`}),a({ts:o(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,reason:`bundle-missing:${d}`}),{outcome:`skipped`,reason:`bundle-missing`};let f=[],p=u.length===s.length;for(let{id:t,sourceDir:a}of u){let o=O(e,i[t],a,n,r,c);f.push(...o.entries),o.centralWritten||(p=!1)}let m=f.some(e=>e.kind===`central`&&(e.outcome===`written`||e.outcome===`overwritten`));if(p&&m){let n=null;try{await t.writeRecordedVersion(e,c),r({event:`user-skill-reclaim-version-recorded`,scope:`user`,version:c})}catch(e){n=e instanceof Error?e.message:String(e),r({event:`user-skill-reclaim-version-record-failed`,scope:`user`,version:c,error:n})}for(let{id:e}of u)a({ts:o(),surface:`cli-start`,target:`cli-hosts`,bundle:e,outcome:n===null?`installed`:`failed`,version:c,...n===null?{}:{reason:`state-write-failed:${n}`}})}else{let e=f.some(e=>e.kind===`host`&&e.outcome===`failed`);a({ts:o(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,version:c,reason:e?`all-writes-failed`:`no-hosts-installed`})}return{outcome:`done`,version:c,entries:f}}async function M(e){let t=e.logger??T,n=e.fs??C,r=e.home??S(),i={...w,...e.deps};return e.reclaimDisableEnv===`1`?(t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`}):{status:`done`,project:A(e.projectDir,i,n,t),user:await j(r,i,n,t)}}function N(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.project.entries.some(e=>e.outcome===`failed`)||e.user.outcome===`done`&&e.user.entries.some(e=>e.outcome===`failed`)?1:0}function P(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
|
+
`)}function F(){return new e(`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 M({projectDir:m(process.cwd()),reclaimDisableEnv:process.env.OK_RECLAIM_DISABLE??null});process.stdout.write(`${P(e)}\n`),process.exitCode=N(e)})}export{F as n,M as t};
|
|
3
|
+
//# sourceMappingURL=repair-skills-DrDTStak.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e}from"./server-lock-CN2YHwpP-aP9IA5H6.mjs";export{e as updateServerLockPort};
|