@inkeep/open-knowledge 0.6.0-beta.6 → 0.6.0-beta.8

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.
Files changed (30) hide show
  1. package/dist/assets/skills/discovery/SKILL.md +1 -1
  2. package/dist/assets/skills/project/SKILL.md +1 -1
  3. package/dist/cli.mjs +10 -10
  4. package/dist/constants-HL-7SyJ2.mjs +2 -0
  5. package/dist/index.d.mts +15 -9
  6. package/dist/index.mjs +1 -1
  7. package/dist/init-BtOr-X4H.mjs +1 -0
  8. package/dist/{init-DMpZzyPQ.mjs → init-al09RZM6.mjs} +8 -8
  9. package/dist/{loader-2OdJfRxG.mjs → loader-B64XEbbD.mjs} +2 -2
  10. package/dist/loader-BGK5A8F9.mjs +1 -0
  11. package/dist/{preview-CVpbjLGm.mjs → preview-CYIUoqRn.mjs} +2 -2
  12. package/dist/preview-DZKfHXsi.mjs +1 -0
  13. package/dist/public/assets/SettingsDialogBody-E4CxiCsR.js +7 -0
  14. package/dist/public/assets/config-validation-events-BAWD3yoI.js +10 -0
  15. package/dist/public/assets/{index-DMINOczF.js → index-DrLQYAlB.js} +5 -7
  16. package/dist/public/index.html +2 -2
  17. package/dist/{repair-launch-json-BfO8g0C9.mjs → repair-launch-json-CKIaPf4Q.mjs} +2 -2
  18. package/dist/{repair-mcp-configs-DhvDQUcW.mjs → repair-mcp-configs-nHEH7ZXG.mjs} +2 -2
  19. package/dist/src-DJUgVPb0.mjs +2 -0
  20. package/dist/{start-Bscs6Im4.mjs → start-B0qxkaI0.mjs} +2 -2
  21. package/dist/start-BS3czGsk.mjs +1 -0
  22. package/package.json +1 -1
  23. package/dist/constants-COv1QTl7.mjs +0 -2
  24. package/dist/init-DZBi-cEQ.mjs +0 -1
  25. package/dist/loader-xYG3UrFw.mjs +0 -1
  26. package/dist/preview-DeihrKlb.mjs +0 -1
  27. package/dist/public/assets/SettingsDialogBody-Dr2p2Reu.js +0 -11
  28. package/dist/public/assets/config-validation-events-CXyf_fVy.js +0 -10
  29. package/dist/src-B5o3ciyJ.mjs +0 -2
  30. package/dist/start-DGxYOlJ8.mjs +0 -1
@@ -1,2 +0,0 @@
1
- import{d as e,g as t,u as n}from"./init-DMpZzyPQ.mjs";import"./loader-2OdJfRxG.mjs";import"./preview-CVpbjLGm.mjs";import{dirname as r,isAbsolute as i,join as a,relative as o,resolve as s}from"node:path";import{statSync as c}from"node:fs";import{readFile as l,realpath as u}from"node:fs/promises";function d(e){return e.replace(/:\d+$/,``)}function f(e){let t=e.trim();if(!t)return null;{let e=/^https?:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`https`,hostname:d(e[1]),owner:e[2],name:e[3]}}{let e=/^ssh:\/\/(?:[\w.-]+@)?([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`ssh`,hostname:d(e[1]),owner:e[2],name:e[3]}}{let e=/^git:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:d(e[1]),owner:e[2],name:e[3]}}{let e=/^(?:[\w.-]+@)?([\w.-]+):([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e?.[1].includes(`.`)||e&&t.startsWith(`git@`))return{protocol:`ssh`,hostname:e[1],owner:e[2],name:e[3]}}{let e=/^git:([\w.-]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:e[1],owner:e[2],name:e[3]}}if(!t.includes(`://`)&&!t.includes(`@`)&&!t.startsWith(`/`)){let e=/^([\w.-]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e)return{protocol:`https`,hostname:`github.com`,owner:e[1],name:e[2]}}return null}function p(e){let t;try{t=new URL(e)}catch{return null}if(t.hostname!==`github.com`&&t.hostname!==`www.github.com`)return null;let n=t.pathname.split(`/`).filter(e=>e.length>0);if(n.length<5||n[2]!==`blob`)return null;let r,i,a,o;try{r=decodeURIComponent(n[0]),i=decodeURIComponent(n[1]),a=decodeURIComponent(n[3]),o=n.slice(4).map(e=>decodeURIComponent(e))}catch{return null}return!r||!i||!a||o.length===0||o.some(e=>e.length===0)?null:{owner:r,repo:i,branch:a,path:o.join(`/`)}}async function m(e,t){let n,o;try{n=await u(s(e)),o=await u(s(r(e)))}catch{return{kind:`not-git`}}if(!h(n,o))return{kind:`symlink-escape`};let d=a(n,`.git`),p;try{p=c(d)}catch{return{kind:`not-git`}}let m;if(p.isDirectory()){let e;try{e=await u(d)}catch{return{kind:`not-git`}}if(!h(e,n))return{kind:`symlink-escape`};m=e}else if(p.isFile()){let e;try{e=await l(d,`utf-8`)}catch{return{kind:`not-git`}}let t=/^gitdir:\s*(.+)$/m.exec(e.trim());if(!t)return{kind:`not-git`};let r=t[1].trim(),a=i(r)?r:s(n,r);try{m=await u(a)}catch{return{kind:`not-git`}}}else return{kind:`not-git`};let g=a(m,`config`),v;try{v=await l(g,`utf-8`)}catch{return{kind:`not-git`}}let y=_(v);if(y===null)return{kind:`no-origin`};let b=f(y);if(b===null||b.hostname!==`github.com`)return{kind:`non-github`};let x=b.owner.toLowerCase()===t.owner.toLowerCase(),S=b.name.toLowerCase()===t.repo.toLowerCase();return!x||!S?{kind:`wrong-repo`,actualOwner:b.owner,actualRepo:b.name}:{kind:`ok`,gitRemoteUrl:`https://github.com/${b.owner}/${b.name}.git`}}function h(e,t){if(e===t)return!0;let n=o(t,e);return n.length>0&&!n.startsWith(`..`)&&!i(n)}function g(e){let t=e.indexOf(`#`),n=e.indexOf(`;`),r=-1;return t>=0&&n>=0?r=Math.min(t,n):t>=0?r=t:n>=0&&(r=n),(r===-1?e:e.slice(0,r)).trim()}function _(e){let t=!1;for(let n of e.split(/\r?\n/)){let e=g(n);if(e.length===0)continue;if(e.startsWith(`[`)){t=/^\[\s*remote\s+["']origin["']\s*\]$/.test(e);continue}if(!t)continue;let r=/^url\s*=\s*(.+)$/.exec(e);if(r)return v(r[1])}return null}function v(e){let t=e.trim();return t.startsWith(`"`)&&t.endsWith(`"`)||t.startsWith(`'`)&&t.endsWith(`'`)?t.slice(1,-1):t}function y(r,i,a={}){let o=[];for(let n of i){let i=t[n],s=i.projectConfigPath?.(r);if(!s){o.push({editorId:n,outcome:`skipped-no-project-surface`});continue}let c;try{c=e(i,r,a,void 0,s)}catch(e){o.push({editorId:n,outcome:`failed`,error:e instanceof Error?e.message:String(e)});continue}if(c.action===`written`||c.action===`overwritten`){o.push({editorId:n,outcome:c.action});continue}if(c.action===`failed`){o.push({editorId:n,outcome:`failed`,error:c.error});continue}o.push({editorId:n,outcome:`failed`,error:`unexpected project-scope action: ${c.action}`})}return{editorOutcomes:o,claudeLaunchJson:i.includes(`claude`)?n(r,a):void 0}}export{f as i,m as n,p as r,y as t};
2
- //# sourceMappingURL=src-B5o3ciyJ.mjs.map
@@ -1 +0,0 @@
1
- import{l as e}from"./start-Bscs6Im4.mjs";export{e as startCommand};