@inkeep/open-knowledge 0.71.9 → 0.71.11
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/cli.mjs +54 -54
- package/dist/constants-BeCaU9pv.mjs +1 -0
- package/dist/dist-9e6NmrQK.mjs +2097 -0
- package/dist/{dist-LYaYuyF6.mjs → dist-DaZTzrgH.mjs} +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +146 -146
- package/dist/init-BHG3clDs.mjs +1 -0
- package/dist/{init-DKzRAP2P.mjs → init-DCPJITTo.mjs} +63 -63
- package/dist/{launch-json-removal-CNbEIGbQ.mjs → launch-json-removal-B4Gz7gD_.mjs} +1 -1
- package/dist/{loader-BiZJHdwK.mjs → loader-DMNv7O1p.mjs} +1 -1
- package/dist/loader-JzLjp7UP.mjs +1 -0
- package/dist/{md-manager-BGnqyqi1-BKu_gT6Z.mjs → md-manager-BGnqyqi1-C0-0a_4T.mjs} +119 -119
- package/dist/{open-browser-CfY26r-T.mjs → open-browser-DOj8e8TD.mjs} +1 -1
- package/dist/parse-worker.mjs +1 -1
- package/dist/{preview-C_r01WSD.mjs → preview-C9cdF2Jx.mjs} +1 -1
- package/dist/preview-DYY2nF6V.mjs +1 -0
- package/dist/{registry-probes-BANUPh4J.mjs → registry-probes-QAkF54VZ.mjs} +2 -2
- package/dist/{removal-file-path-DsFzjsr2.mjs → removal-file-path-B1p-r1dC.mjs} +1 -1
- package/dist/{repair-launch-json-UV8aYTeF.mjs → repair-launch-json-Do7fbO7m.mjs} +1 -1
- package/dist/{repair-mcp-configs-I08GSE9q.mjs → repair-mcp-configs-DBhUJHLj.mjs} +1 -1
- package/dist/src-Bxuwti8e.mjs +1 -0
- package/dist/{src-uqJOug1O.mjs → src-CfxppgS7.mjs} +4 -4
- package/dist/start-Bs3LHISW.mjs +1 -0
- package/dist/{start-BeubOhRd.mjs → start-CVuX6n5P.mjs} +3 -3
- package/package.json +4 -4
- package/dist/constants-CtgW5q2S.mjs +0 -1
- package/dist/dist-B6i6qfgS.mjs +0 -2096
- package/dist/init-BZq_t-cO.mjs +0 -1
- package/dist/loader-ToxkBMQb.mjs +0 -1
- package/dist/preview-DR1A8Mjo.mjs +0 -1
- package/dist/src-BIsbVAMW.mjs +0 -1
- package/dist/start-BlH0bGhn.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ho as e,vo as t,xo as n}from"./dist-
|
|
1
|
+
import{ho as e,vo as t,xo as n}from"./dist-9e6NmrQK.mjs";import{A as r,M as i,O as a}from"./init-DCPJITTo.mjs";import{t as o}from"./is-object-BGze3w87.mjs";import{t as s}from"./removal-file-path-B1p-r1dC.mjs";import{join as c}from"node:path";import{readFileSync 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(o){let f=s(c(o,`.claude`,`launch.json`));if(f.kind!==`ready`)return f;let m=f.path,h;try{h=l(m,`utf-8`)}catch(e){return{kind:`declined`,reason:i(e)}}let g=[],_=t(h,g,u)??void 0;if(g.some(e=>!d(e,h))||_?.type!==`object`)return{kind:`declined`,reason:`unparseable`};let v=e(_).configurations;if(!Array.isArray(v))return{kind:`not-present`};let y=v.findIndex(p);if(y===-1)return{kind:`not-present`};let{text:b,changed:x}=r(h,[`configurations`,y]);return x?(n(m,b,{mode:a(m)}),{kind:`removed`}):{kind:`not-present`}}function p(e){if(!o(e))return!1;let t=e;if(t.name!==`open-knowledge-ui`||!Array.isArray(t.runtimeArgs))return!1;let n=t.runtimeArgs;return t.runtimeExecutable===`/bin/sh`?n.length===3&&n[0]===`-l`&&n[1]===`-c`&&typeof n[2]==`string`&&/^# ok-ui-v[1-9]\d*$/.test(n[2].split(/\r?\n/,1)[0]??``):t.runtimeExecutable===`npx`?m.some(e=>h(n,e)):t.runtimeExecutable===`powershell`&&n.length===4&&n[0]===`-NoProfile`&&n[1]===`-NonInteractive`&&n[2]===`-Command`&&typeof n[3]==`string`&&/^# ok-ui-win-v[1-9]\d*$/.test(n[3].split(/\r?\n/,1)[0]??``)}const m=[[`@inkeep/open-knowledge`,`ui`],[`-y`,`@inkeep/open-knowledge`,`ui`],[`-y`,`@inkeep/open-knowledge@latest`,`ui`]];function h(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}export{f as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Dc as e,
|
|
1
|
+
import{Dc as e,Gc as t,Ha as n,Pc as r,Tc as i,Uo as a,tu as o}from"./md-manager-BGnqyqi1-C0-0a_4T.mjs";import{Co as s,To as c,b as l}from"./dist-9e6NmrQK.mjs";import{t as u}from"./is-object-BGze3w87.mjs";import{t as d}from"./constants-BeCaU9pv.mjs";import{resolve as f}from"node:path";import{existsSync as p,readFileSync as m}from"node:fs";import{realpath as h}from"node:fs/promises";var g=o();async function _(e){let t=f(e);try{return await h(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 v(e){if(!p(e))return{value:null,path:e,source:null,doc:null};let t;try{t=m(e,`utf-8`)}catch(t){let n=t instanceof Error?t.message:String(t);return console.warn(`[config] Failed to read ${e}: ${n}`),{value:null,path:e,source:null,doc:null,diagnostic:{code:`UNREADABLE`,detail:`${e}: ${n}`}}}let n=(0,g.parseDocument)(t);if(n.errors.length>0){let r=n.errors.map(e=>e.message).join(`; `);return console.warn(`[config] Failed to parse ${e}: ${r}`),{value:null,path:e,source:t,doc:null,diagnostic:{code:`YAML_PARSE`,detail:`${e}: ${r}`}}}let r=n.toJSON();return u(r)?{value:r,path:e,source:t,doc:n}:{value:null,path:e,source:t,doc:n}}function y(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 b(r){let o=r??process.cwd(),u=[],p=[],m=[],h=[],g=c(`user`,o),_=s({absPath:g});p.push(..._.diagnostics),!_.valid&&_.sidelinedTo!==void 0&&m.push({from:g,to:_.sidelinedTo}),_.valid&&_.source!==void 0&&u.push(g);let b=(e,r=!1)=>{let a=v(e);if(a.diagnostic!==void 0&&p.push(a.diagnostic),a.value===null)return{};let o=i({value:a.value,file:a.path,source:a.source,doc:a.doc});p.push(...o),u.push(e);let s=o.length>0?t(a.value):a.value;return r&&h.push(...n({value:s,file:a.path,source:a.source,doc:a.doc})),s},x=f(o,`.ok`,d),S=b(x,!0),C=b(c(`project-local`,o)),w=a(_.value,S,C),T=l.safeParse(w);if(!T.success){let t=v(x),n={code:`SCHEMA_INVALID`,issues:y(T.error.issues,t)};throw Error(e(n))}return{config:T.data,sources:u,diagnostics:p,sidelined:m,ignoredCommittedKeys:h}}function x(e){let t=e.cacheMs??1e3,n=e.loadConfigFn??b,r=new Map,i=new Map,a=_(e.startupCwd);return async o=>{let s=await _(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{b as n,x as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./loader-DMNv7O1p.mjs";export{e as loadConfig};
|