@inkeep/open-knowledge 0.6.0-beta.5 → 0.6.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 +10 -10
- package/dist/constants-CeJMalO7.mjs +2 -0
- package/dist/index.d.mts +15 -9
- package/dist/index.mjs +1 -1
- package/dist/init-Bo0AfNom.mjs +1 -0
- package/dist/{init-B5ck1K45.mjs → init-CazPxPCi.mjs} +8 -8
- package/dist/{loader-CgwQw13h.mjs → loader-Cq8Xjd2a.mjs} +2 -2
- package/dist/loader-DNFIL45q.mjs +1 -0
- package/dist/{preview-Cua7utqb.mjs → preview-6gUPBF0q.mjs} +2 -2
- package/dist/preview-CUdzf9Ro.mjs +1 -0
- package/dist/public/assets/{ActivityModeContent-DAjI-8uW.js → ActivityModeContent-Dgodq1_3.js} +1 -1
- package/dist/public/assets/{DocumentContext-CeeU2YBu.js → DocumentContext-CqL0pPxh.js} +28 -18
- package/dist/public/assets/{SettingsDialogBody-BFR83K9Y.js → SettingsDialogBody-Dr2p2Reu.js} +2 -2
- package/dist/public/assets/{SourceEditor-DR46Q4hO.js → SourceEditor-BBghYkCg.js} +1 -1
- package/dist/public/assets/{config-validation-events-C9Fg80zK.js → config-validation-events-CXyf_fVy.js} +3 -3
- package/dist/public/assets/index-DMINOczF.js +1918 -0
- package/dist/public/assets/{typing-burst-detector-BSvWZbTe.js → typing-burst-detector-xohyxOCA.js} +1 -1
- package/dist/public/index.html +4 -4
- package/dist/{repair-launch-json-Bad0KYr9.mjs → repair-launch-json-dn-ts3BK.mjs} +2 -2
- package/dist/{repair-mcp-configs-cLDZI-sa.mjs → repair-mcp-configs-DcA8Rqru.mjs} +2 -2
- package/dist/src-x_Xoxk5g.mjs +2 -0
- package/dist/start-Bk23H2YC.mjs +1 -0
- package/dist/{start-UzzA8jWS.mjs → start-CW0qx0LO.mjs} +2 -2
- package/package.json +1 -1
- package/dist/constants-CIIM4JTb.mjs +0 -2
- package/dist/init-C3egiJLq.mjs +0 -1
- package/dist/loader-DXcK6GP-.mjs +0 -1
- package/dist/preview-DPZPD1bd.mjs +0 -1
- package/dist/public/assets/index-uugZYOJu.js +0 -1928
- package/dist/src-DgsRQWG3.mjs +0 -2
- package/dist/start-CbS42FoQ.mjs +0 -1
package/dist/src-DgsRQWG3.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as e,g as t,u as n}from"./init-B5ck1K45.mjs";import"./loader-CgwQw13h.mjs";import"./preview-Cua7utqb.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-DgsRQWG3.mjs.map
|
package/dist/start-CbS42FoQ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as e}from"./start-UzzA8jWS.mjs";export{e as startCommand};
|