@inkeep/open-knowledge 0.8.0-beta.14 → 0.8.0-beta.16

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 (52) 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/{chunk-HWBSOZZR-CFFhOzgy.mjs → chunk-HWBSOZZR-B0-Qfe0T.mjs} +3 -3
  4. package/dist/cli.d.mts +7 -1
  5. package/dist/cli.mjs +44 -41
  6. package/dist/constants-DgoC3zp3.mjs +2 -0
  7. package/dist/dist-3m799Jis.mjs +1 -0
  8. package/dist/{dist-lSCD8oz8.mjs → dist-DikIN25T.mjs} +165 -31
  9. package/dist/{flag-coverage-QT4N2Z44-CQ2g5NLf.mjs → flag-coverage-QT4N2Z44-g6MqLsWy.mjs} +2 -2
  10. package/dist/{gh-detect-CmRIH7je.mjs → gh-detect-DaEGWQM-.mjs} +2 -2
  11. package/dist/index.d.mts +1 -15
  12. package/dist/index.mjs +1 -1
  13. package/dist/init-e8a60Ygg.mjs +1 -0
  14. package/dist/init-lElrU07t.mjs +271 -0
  15. package/dist/{js-exec-M6UR76J5-BssUQ3SC.mjs → js-exec-M6UR76J5-D6BVeQcA.mjs} +4 -4
  16. package/dist/{loader-2O0Sr-YE.mjs → loader-CrtzAcGE.mjs} +3 -3
  17. package/dist/loader-DzThs45x.mjs +1 -0
  18. package/dist/{preview-DyHTxXSv.mjs → preview-DHitic_d.mjs} +2 -2
  19. package/dist/preview-cSY3K7Ut.mjs +1 -0
  20. package/dist/public/assets/{ActivityModeContent-DC0tgfEU.js → ActivityModeContent-BZsIfA_H.js} +1 -1
  21. package/dist/public/assets/{DocumentContext-DssYjOIq.js → DocumentContext-CouqZUUj.js} +1 -1
  22. package/dist/public/assets/{GraphPanel-D1Xe3oYD.js → GraphPanel-DpaVu94t.js} +1 -1
  23. package/dist/public/assets/{SettingsDialogBody-B1Q7kFlF.js → SettingsDialogBody-BhOtnbEs.js} +1 -1
  24. package/dist/public/assets/{SourceEditor-DeK54x6f.js → SourceEditor-CGWLDoI0.js} +1 -1
  25. package/dist/public/assets/{config-validation-events-VhnRuCsy.js → config-validation-events-CgXm41bV.js} +1 -1
  26. package/dist/public/assets/index-Dczv49e-.js +1914 -0
  27. package/dist/public/assets/{prop-types-6aVTZR_X.js → prop-types-DZ9l9AGc.js} +117 -117
  28. package/dist/public/assets/{target-navigation-intent-afh2yjUE.js → target-navigation-intent-ibsX-mJP.js} +1 -1
  29. package/dist/public/assets/{toggle-group-MKl7znyp.js → toggle-group-RQAwwD6f.js} +1 -1
  30. package/dist/public/assets/{typing-burst-detector-BcVx7LIb.js → typing-burst-detector-DoyGrpDH.js} +1 -1
  31. package/dist/public/index.html +7 -7
  32. package/dist/{python3-AUFTPCU6-BSuL_Nsg.mjs → python3-AUFTPCU6-CcfVkAVy.mjs} +3 -3
  33. package/dist/{repair-launch-json-1v32GZcd.mjs → repair-launch-json-C9GnPHpJ.mjs} +2 -2
  34. package/dist/{repair-mcp-configs-CZXWhNQh.mjs → repair-mcp-configs-xEBsRgTL.mjs} +2 -2
  35. package/dist/{repair-skills-B4l2j5St.mjs → repair-skills-B0q960oj.mjs} +2 -2
  36. package/dist/repair-skills-oNUU16Sj.mjs +1 -0
  37. package/dist/{sqlite3-56UMWEY3-B0OUvEvJ.mjs → sqlite3-56UMWEY3-DN8JOqf2.mjs} +1 -1
  38. package/dist/src-DQXkQuIb.mjs +2 -0
  39. package/dist/{start-CRTxDu_v.mjs → start-CSpOBmiC.mjs} +2 -2
  40. package/dist/start-UjcUFLXU.mjs +1 -0
  41. package/dist/{write-project-skill-BH_iLvg3.mjs → write-project-skill-Bh1t5k11.mjs} +2 -2
  42. package/package.json +4 -1
  43. package/dist/constants-C3I7xExN.mjs +0 -2
  44. package/dist/dist-B1bXj22d.mjs +0 -1
  45. package/dist/init-BhCtH30A.mjs +0 -1
  46. package/dist/init-CJL4wRMl.mjs +0 -409
  47. package/dist/loader-CHO2rfjC.mjs +0 -1
  48. package/dist/preview-C6Lu126-.mjs +0 -1
  49. package/dist/public/assets/index-DMrNxv7s.js +0 -1914
  50. package/dist/repair-skills-K6DWb3wZ.mjs +0 -1
  51. package/dist/src-y5EY2iT_.mjs +0 -2
  52. package/dist/start-bIed-lZx.mjs +0 -1
@@ -1 +0,0 @@
1
- import{t as e}from"./repair-skills-B4l2j5St.mjs";export{e as repairSkills};
@@ -1,2 +0,0 @@
1
- import"./gh-detect-CmRIH7je.mjs";import{d as e,g as t,u as n}from"./init-CJL4wRMl.mjs";import"./loader-2O0Sr-YE.mjs";import"./preview-DyHTxXSv.mjs";import{n as r}from"./write-project-skill-BH_iLvg3.mjs";import{dirname as i,isAbsolute as a,join as o,relative as s,resolve as c}from"node:path";import{statSync as l}from"node:fs";import{readFile as u,realpath as d}from"node:fs/promises";function f(e){return e.replace(/:\d+$/,``)}function p(e){let t=e.trim();if(!t)return null;{let e=/^https?:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`https`,hostname:f(e[1]),owner:e[2],name:e[3]}}{let e=/^ssh:\/\/(?:[\w.-]+@)?([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`ssh`,hostname:f(e[1]),owner:e[2],name:e[3]}}{let e=/^git:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:f(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 m(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 h(e,t){let n,r;try{n=await d(c(e)),r=await d(c(i(e)))}catch{return{kind:`not-git`}}if(!g(n,r))return{kind:`symlink-escape`};let s=o(n,`.git`),f;try{f=l(s)}catch{return{kind:`not-git`}}let m;if(f.isDirectory()){let e;try{e=await d(s)}catch{return{kind:`not-git`}}if(!g(e,n))return{kind:`symlink-escape`};m=e}else if(f.isFile()){let e;try{e=await u(s,`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(),i=a(r)?r:c(n,r);try{m=await d(i)}catch{return{kind:`not-git`}}}else return{kind:`not-git`};let h=o(m,`config`),_;try{_=await u(h,`utf-8`)}catch{return{kind:`not-git`}}let y=v(_);if(y===null)return{kind:`no-origin`};let b=p(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 g(e,t){if(e===t)return!0;let n=s(t,e);return n.length>0&&!n.startsWith(`..`)&&!a(n)}function _(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 v(e){let t=!1;for(let n of e.split(/\r?\n/)){let e=_(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 y(r[1])}return null}function y(e){let t=e.trim();return t.startsWith(`"`)&&t.endsWith(`"`)||t.startsWith(`'`)&&t.endsWith(`'`)?t.slice(1,-1):t}const b=[{id:`mcp-config`,write(t,n,r){let i=t.projectConfigPath?.(n);if(!i)return{integration:`mcp-config`,editorId:t.id,action:`skipped-unsupported`};try{let a=e(t,n,r,void 0,i);return a.action===`written`||a.action===`overwritten`?{integration:`mcp-config`,editorId:t.id,action:a.action,path:a.configPath}:a.action===`failed`?{integration:`mcp-config`,editorId:t.id,action:`failed`,path:a.configPath,error:a.error??`unknown failure`}:{integration:`mcp-config`,editorId:t.id,action:`failed`,path:a.configPath,error:`unexpected project-scope action: ${a.action}`}}catch(e){return{integration:`mcp-config`,editorId:t.id,action:`failed`,path:i,error:e instanceof Error?e.message:String(e)}}}},{id:`project-skill`,write(e,t,n){try{let n=r(e,t);return{integration:`project-skill`,editorId:e.id,action:n.action,...n.path?{path:n.path}:{},...n.error?{error:n.error}:{}}}catch(t){return{integration:`project-skill`,editorId:e.id,action:`failed`,error:t instanceof Error?t.message:String(t)}}}}];function x(e,n,r={},i=b){let a=[];for(let o of n){let n=t[o];for(let t of i)a.push(t.write(n,e,r))}return a}function S(e,t,r={}){return{integrations:x(e,t,r),claudeLaunchJson:t.includes(`claude`)?n(e,r):void 0}}export{p as i,h as n,m as r,S as t};
2
- //# sourceMappingURL=src-y5EY2iT_.mjs.map
@@ -1 +0,0 @@
1
- import{u as e}from"./start-CRTxDu_v.mjs";export{e as startCommand};