@inkeep/open-knowledge 0.30.0 → 0.30.1-beta.1
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/assets/skills/write-skill/SKILL.md +1 -1
- package/dist/cli.mjs +66 -66
- package/dist/constants-Dna0AK_L.mjs +2 -0
- package/dist/{dist-Dv1J08lw.mjs → dist-BXlA66Rv.mjs} +15 -13
- package/dist/dist-MZRC45Vk.mjs +1 -0
- package/dist/{gh-detect-BMbpd_Yj.mjs → gh-detect-BAop1ZEi.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/init-DeoV6_ch.mjs +1 -0
- package/dist/{init-CiE61hR0.mjs → init-DwesVWyB.mjs} +3 -3
- package/dist/{launch-json-removal-Dq7MQJaK.mjs → launch-json-removal-wOi7iCjC.mjs} +2 -2
- package/dist/{loader-CU9plu3Y.mjs → loader-DPFCFSlV.mjs} +3 -3
- package/dist/loader-rXR2Ghgh.mjs +1 -0
- package/dist/{open-browser-B0EHWyOL.mjs → open-browser-c8D-FzSc.mjs} +2 -2
- package/dist/{preview-hK8GmB4J.mjs → preview-B5glRlyK.mjs} +2 -2
- package/dist/preview-Ol2--0Od.mjs +1 -0
- package/dist/public/assets/{ActivityModeContent-C0_GSBuC.js → ActivityModeContent-BmNXHtkV.js} +1 -1
- package/dist/public/assets/CodeMirrorPropInput-Cqy5AMG8.js +3 -0
- package/dist/public/assets/DocumentContext-TfAt4kJ2.js +35 -0
- package/dist/public/assets/{EnableSyncConfirmDialog-BhwhYBFL.js → EnableSyncConfirmDialog-CWfJC2tV.js} +1 -1
- package/dist/public/assets/{GraphPanel-ByzLo6-b.js → GraphPanel-64dKrEeN.js} +1 -1
- package/dist/public/assets/{ManagedArtifactProperties-DAzdDsOt.js → ManagedArtifactProperties-CdDmcobU.js} +1 -1
- package/dist/public/assets/{McpConsentDialogBody-BwDo5LSJ.js → McpConsentDialogBody-CBhFj_dO.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-BpnOw4CA.js → MermaidDocEditor-DHYDIKqN.js} +1 -1
- package/dist/public/assets/{PropertyPanel-B3wmhQBT.js → PropertyPanel-zzS00_gE.js} +1 -1
- package/dist/public/assets/SettingsDialogBody-BmmrykCe.js +7 -0
- package/dist/public/assets/{ShareBranchSwitchDialog-i35Gg8js.js → ShareBranchSwitchDialog-BlhZ6hTx.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-LrK6Us6O.js → ShareReceiveDialog-L3wJj8ez.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-CEV0ExUm.js → ShareReceiveMissDialog-D6rKf26E.js} +1 -1
- package/dist/public/assets/{SkillEditorActions-BoEoI6NN.js → SkillEditorActions-DAfDDMK2.js} +1 -1
- package/dist/public/assets/SourceEditor-CEgPDQLe.js +1 -0
- package/dist/public/assets/{TerminalPanel-Di7sR9_K.js → TerminalPanel-CFfN7G5Q.js} +1 -1
- package/dist/public/assets/{agent-presence-DOgDiPgh.js → agent-presence-DiQ_l3Q4.js} +1 -1
- package/dist/public/assets/{auth-state-cache-CZRVpVW6.js → auth-state-cache-BqN1GQly.js} +1 -1
- package/dist/public/assets/{config-provider-BnOnKhga.js → config-provider-DON2sTkv.js} +2 -2
- package/dist/public/assets/{dist-xdRBzARh.js → dist-CUDp0fN-.js} +2 -2
- package/dist/public/assets/{dist-D7PDymSy.js → dist-cAytzZ0r.js} +101 -95
- package/dist/public/assets/{doc-hash-i5oNLfum.js → doc-hash-KGQoVCvb.js} +1 -1
- package/dist/public/assets/{documents-events-D26lhbOZ.js → documents-events-BnMDLvDB.js} +1 -1
- package/dist/public/assets/{file-tree-adapter-N1FVhfKw.js → file-tree-adapter-uHXxUJ8g.js} +1 -1
- package/dist/public/assets/{index-KSKNKDpJ.js → index-CeH_SKGP.js} +15 -15
- package/dist/public/assets/{keyboard-shortcuts-Bgozgsx2.js → keyboard-shortcuts-bJc2PBGE.js} +1 -1
- package/dist/public/assets/{navigation-targets-D_wZddL9.js → navigation-targets-DdhO6GKu.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-kOn8WHrp.js → open-managed-artifact-tab-qxJ9p8Vi.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-CDyGvnwD.js → pending-receive-nav-store-v67LB7tS.js} +1 -1
- package/dist/public/assets/{prop-types-BK5m4zFC.js → prop-types-Dkcm5cUg.js} +1 -1
- package/dist/public/assets/{receive-store-Jc3PEGIh.js → receive-store-CtqQYghY.js} +1 -1
- package/dist/public/assets/selection-context-CowvMKTL.js +4 -0
- package/dist/public/assets/{skill-actions-CeU8Dbpm.js → skill-actions-HpoN1bS5.js} +1 -1
- package/dist/public/assets/{skills-api-k47WvkqQ.js → skills-api-Dg6gQ9CV.js} +1 -1
- package/dist/public/assets/{src-B6vksAtW.js → src-BYPkKUxg.js} +1 -1
- package/dist/public/assets/{target-navigation-intent-DEwTup1R.js → target-navigation-intent-DhT4boi_.js} +1 -1
- package/dist/public/assets/{telemetry-impl-CSONG7_p.js → telemetry-impl-DGG3JG6S.js} +1 -1
- package/dist/public/assets/{telemetry-startup-BK7tF5N1.js → telemetry-startup-DxsH0f-U.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-BC1YUpwK.js → typing-burst-detector-PdfZQie3.js} +2 -2
- package/dist/public/assets/{workspace-paths-D4weWrbA.js → workspace-paths-DYS2c17l.js} +1 -1
- package/dist/public/index.html +25 -25
- package/dist/{repair-launch-json-szAhAk7h.mjs → repair-launch-json-D9Enw9jp.mjs} +2 -2
- package/dist/{repair-mcp-configs-DOFA0U7b.mjs → repair-mcp-configs-BkLxipkW.mjs} +2 -2
- package/dist/repair-skills-BAEDb9Ho.mjs +1 -0
- package/dist/{repair-skills-B0R_QUCx.mjs → repair-skills-BwUGllKc.mjs} +2 -2
- package/dist/server-lock-GuuouVft-uqSUkxXo.mjs +1 -0
- package/dist/{server-lock-iLcBw_q0-DB1Ahu2b.mjs → server-lock-iLcBw_q0-WEyo7ukm.mjs} +111 -104
- package/dist/{src-5A7WMaZM.mjs → src-CQgIysi4.mjs} +2 -2
- package/dist/{start-BYisI2iR.mjs → start-BB5Q_CLQ.mjs} +2 -2
- package/dist/start-Bll_YyDb.mjs +1 -0
- package/dist/{write-project-skill-B5fSGkbt.mjs → write-project-skill-dxucK8PX.mjs} +2 -2
- package/package.json +1 -1
- package/dist/constants-CpHqANcZ.mjs +0 -2
- package/dist/dist-DV45zaO6.mjs +0 -1
- package/dist/init-H9qpwnHQ.mjs +0 -1
- package/dist/loader-fm_JJ54p.mjs +0 -1
- package/dist/preview-B8DOkQQi.mjs +0 -1
- package/dist/public/assets/CodeMirrorPropInput-C2VECyjO.js +0 -3
- package/dist/public/assets/DocumentContext-f6XQqg_y.js +0 -35
- package/dist/public/assets/SettingsDialogBody-DVvKGL9J.js +0 -7
- package/dist/public/assets/SourceEditor-DuPpY_T6.js +0 -1
- package/dist/public/assets/selection-context-72mLve4s.js +0 -4
- package/dist/repair-skills-CS0_a3yn.mjs +0 -1
- package/dist/server-lock-GuuouVft-CXM0Fdz7.mjs +0 -1
- package/dist/start-DZBjiXoP.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as e}from"./dist-
|
|
1
|
+
import{K as e}from"./dist-cAytzZ0r.js";var t=/\.(md|mdx)$/i;function n(e){return e.trim().replace(/^\.\/+/,``).replace(/^\/+/,``)}function r(e){return n(e).replace(t,``)}function i(e){let r=n(e);return r?t.test(r)?r:`${r}.md`:`untitled.md`}function a(e){let t=r(e),n=t.lastIndexOf(`/`);return{initialDir:n>0?t.slice(0,n):``,suggestedName:`${n>=0?t.slice(n+1):t||`untitled`}.md`}}function o(t){return e.includes(t)}function s(e){if(e.startsWith(h)||e.startsWith(y)||!e.startsWith(`#/`))return null;let t=e.slice(2),n=g(t),r=n>=0?t.slice(0,n):t;if(!r)return null;try{return r.split(`/`).map(decodeURIComponent).join(`/`)}catch{return r}}function c(e){if(e.startsWith(h)||!e.startsWith(`#/`))return null;let t=e.slice(2),n=t.indexOf(`#`);if(n<0)return null;let r=t.slice(n+1);if(!r)return null;try{return decodeURIComponent(r)}catch{return r}}function l(e,t){let n=`#/${e}`;return t?`${n}#${encodeURIComponent(t)}`:n}function u(e){if(window.location.hash===e)return;let{pathname:t,search:n}=window.location;window.history.replaceState(null,``,`${t}${n}${e}`)}function d(e){return e.endsWith(`.mdx`)?e.slice(0,-4):e.endsWith(`.md`)?e.slice(0,-3):e}function f(e,t){let n=e.replace(/^\/+|\/+$/g,``),r=n?`#/${n}/`:`#/`;return t?`${r}#${encodeURIComponent(t)}`:r}function p(e,t,n){if(e===`folder`)return f(t);let r=`#/${encodeURIComponent(t)}`;return n==null||n===``?r:`${r}?branch=${encodeURIComponent(n)}`}function m(e){if(e===`#/`)return!0;if(!e.startsWith(`#/`))return!1;let t=e.slice(2);return t.length>0&&t[0]===`?`}var h=`#/__asset__/`;function g(e){let t=e.indexOf(`?`),n=e.indexOf(`#`);return t<0?n:n<0?t:Math.min(t,n)}function _(e){if(!e.startsWith(h))return null;let t=e.slice(12);if(!t)return null;try{return t.split(`/`).map(decodeURIComponent).join(`/`)}catch{return t}}function v(e){return`${h}${e.split(`/`).map(encodeURIComponent).join(`/`)}`}var y=`#/__skill-file__/`;function b(e){return`${y}${[e.scope,e.name].map(encodeURIComponent).join(`/`)}/${e.path.split(`/`).map(encodeURIComponent).join(`/`)}`}function x(e){if(!e.startsWith(y))return null;let t=e.slice(17);if(!t)return null;let n;try{n=t.split(`/`).map(decodeURIComponent)}catch{return null}if(n.length<3)return null;let[r,i,...a]=n,s=a.join(`/`);return!r||!i||!s||!o(r)?null:{scope:r,name:i,path:s}}export{d as a,f as c,u as d,x as f,r as h,p as i,b as l,i as m,_ as n,v as o,a as p,s as r,l as s,c as t,m as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as e}from"./dist-
|
|
1
|
+
import{T as e}from"./dist-cAytzZ0r.js";var t=`open-knowledge:documents-changed`,n=new Set(e.options);function r(e){return e===void 0||!Array.isArray(e)?[`files`]:[...new Set(e.filter(e=>n.has(e)))]}function i(e=[`files`]){window.dispatchEvent(new CustomEvent(t,{detail:{channels:r(e)}}))}function a(e){let n=t=>{e(r(t instanceof CustomEvent?t.detail?.channels:void 0))};return window.addEventListener(t,n),()=>window.removeEventListener(t,n)}var o=`open-knowledge:branch-changed`;function s(e){window.dispatchEvent(new CustomEvent(o,{detail:{branch:e}}))}function c(e){let t=t=>{if(!(t instanceof CustomEvent))return;let n=t.detail;e(n?.branch??null)};return window.addEventListener(o,t),()=>window.removeEventListener(o,t)}var l=`open-knowledge:templates-changed`;function u(){window.dispatchEvent(new CustomEvent(l))}function d(e){let t=()=>e();return window.addEventListener(l,t),()=>window.removeEventListener(l,t)}var f=`open-knowledge:skills-changed`;function p(){window.dispatchEvent(new CustomEvent(f))}function m(e){let t=()=>e();return window.addEventListener(f,t),()=>window.removeEventListener(f,t)}export{c as a,d as c,u as i,i as n,a as o,p as r,m as s,s as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ki as e,qi as t}from"./dist-cAytzZ0r.js";import{t as n}from"./file-tree-rename-validation-DeKIxKnc.js";import{b as r,i,x as a,y as o}from"./navigation-targets-DdhO6GKu.js";import{c as s,o as c,s as l}from"./doc-hash-KGQoVCvb.js";var u=`application/x-open-knowledge-sidebar-item+json`,d={image:!0,video:!0,audio:!0,pdf:!0,text:!0,mermaid:!0};function f(e){return JSON.stringify(e)}function p(e){return e.kind===`folder`?{target:{kind:`folder`,target:e.folderPath,folderPath:e.folderPath},hash:s(e.folderPath)}:e.kind===`asset`?{target:{kind:`asset`,target:e.assetPath,assetPath:e.assetPath,mediaKind:e.mediaKind},hash:c(e.assetPath)}:{target:i(e.docName,e.size)??{kind:`doc`,target:e.docName,docName:e.docName},hash:l(e.docName)}}function m(e){if(!e||!Array.from(e.types).includes(`application/x-open-knowledge-sidebar-item+json`))return null;let t=e.getData(u);if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(!h(n)||n.v!==1||typeof n.kind!=`string`)return null;if(n.kind===`doc`){if(typeof n.docName!=`string`||n.docName.length===0)return null;let e=n.size;return e!==null&&typeof e!=`number`?null:{v:1,kind:`doc`,docName:n.docName,size:e}}if(n.kind===`folder`)return typeof n.folderPath==`string`?{v:1,kind:`folder`,folderPath:n.folderPath}:null;if(n.kind===`asset`){if(typeof n.assetPath!=`string`||n.assetPath.length===0)return null;let e=n.mediaKind;return e!==null&&!g(e)?null:{v:1,kind:`asset`,assetPath:n.assetPath,mediaKind:e}}return null}function h(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function g(e){return typeof e==`string`&&Object.hasOwn(d,e)}var _={background:`#171717`,foreground:`#e5e5e5`,cursor:`#e5e5e5`,cursorAccent:`#171717`,selectionBackground:`#3a3d41`,black:`#000000`,red:`#cd3131`,green:`#0dbc79`,yellow:`#e5e510`,blue:`#2472c8`,magenta:`#bc3fbc`,cyan:`#11a8cd`,white:`#e5e5e5`,brightBlack:`#666666`,brightRed:`#f14c4c`,brightGreen:`#23d18b`,brightYellow:`#f5f543`,brightBlue:`#3b8eea`,brightMagenta:`#d670d6`,brightCyan:`#29b8db`,brightWhite:`#ffffff`},v={background:`#ffffff`,foreground:`#262626`,cursor:`#262626`,cursorAccent:`#ffffff`,selectionBackground:`#add6ff`,black:`#000000`,red:`#cd3131`,green:`#00bc00`,yellow:`#949800`,blue:`#0451a5`,magenta:`#bc05bc`,cyan:`#0598bc`,white:`#555555`,brightBlack:`#666666`,brightRed:`#cd3131`,brightGreen:`#14ce14`,brightYellow:`#b5ba00`,brightBlue:`#0451a5`,brightMagenta:`#bc05bc`,brightCyan:`#0598bc`,brightWhite:`#a5a5a5`};function y(e){return e===`dark`?_:v}var b=`.md`,x=/\.(md|mdx)$/i;function S(t,n=b){return x.test(t)||e(t)?t:`${t}${n}`}function C(e){return Q(e).replace(x,``)}function w(e,t){let n=Q(e),i=t.find(e=>r(e)&&T(e)===n);if(i)return i.docName;let a=C(n);return t.find(e=>{let t=T(e);return t!==n&&x.test(t)&&C(t)===a})&&x.test(n)?n:a}function T(e){return a(e)?O(e.path):o(e)?e.path:S(e.docName,e.docExt)}function E(e){let t=Q(e).match(x);return t?`.${t[1].toLowerCase()}`:void 0}function D(e){return Q(e)}function O(e){let t=Q(e.trim());return t?`${t}/`:``}function k(e){return e.endsWith(`/`)?D(e):C(e)}function A(e){return e.map(T)}function j(e){return[...e].sort().join(`\0`)}function M(e){return j(A(e))}function N(e,t={}){let n=new Set;for(let r of e){let e=(a(r)||o(r)?r.path:r.docName).split(`/`).filter(Boolean);if(!t.includeOkFolders&&e.includes(`.ok`))continue;if(a(r)){let e=O(r.path);e&&n.add(e)}let i=a(r)?e.length:e.length-1;for(let t=1;t<=i;t++)n.add(`${e.slice(0,t).join(`/`)}/`)}return[...n].sort()}function P(e){if(!e)return[];let t=Q(e.replace(x,``)).split(`/`).filter(Boolean),n=[],r=e.endsWith(`/`)?t.length:t.length-1;for(let e=1;e<=r;e++)n.push(`${t.slice(0,e).join(`/`)}/`);return n}function F(e,t,n){let i=E(e);if(i)return i;let a=n.find(e=>r(e)&&e.docName===t);return a?a.docExt??b:Z(e).includes(`.`)?void 0:b}function I(e,t){let n=e.lastIndexOf(`/`),r=n===-1?``:e.slice(0,n+1),i=n===-1?e:e.slice(n+1),a=t.filter(e=>{if(!o(e)||!e.path.startsWith(r))return!1;let t=e.path.slice(r.length);return!t.includes(`/`)&&t.startsWith(`${i}.`)});return a.length===1?a[0].path:null}function L(e,t,n){if(E(e))return null;let r=n.find(e=>o(e)&&e.path===t);return r?r.path:Z(e).includes(`.`)?t:I(t,n)}function R(e,t){let n=e.kind===`directory`,r=n?D(e.path):w(e.path,t);if(n)return{kind:`folder`,name:Q(Z(e.path)).replace(x,``),path:r,treePath:B(e.path,!0)};let i=L(e.path,r,t);if(i)return{kind:`asset`,name:Q(Z(i)),path:i,treePath:i};let a=F(e.path,r,t);return{kind:`file`,name:Q(Z(e.path)).replace(x,``),path:r,treePath:B(e.path,!1),docExt:a}}function z(e){return e.kind===`directory`?D(e.path):e.path}function B(e,t){return t?O(e):x.test(e)?e:`${e}${b}`}function V(e,t,n){let r=O(t),i=new Set(n);for(let t=0;t<100;t++){let n=t===0?``:` ${t+1}`;if(e===`file`){let e=`${r}Untitled${n}${b}`;if(!i.has(e))return{addPath:e,renamePath:e};continue}let a=`${r}New Folder${n}/`;if(!i.has(a))return{addPath:a,renamePath:a}}throw Error(`Could not allocate a unique tree placeholder`)}function H(e,t){return e===`file`?B(t,!1):`${D(t)}/index${b}`}function U(e,t){return t.kind===`root`||t.directoryPath==null?Z(e):`${t.directoryPath}${Z(e)}`}function W(e,t){if(t)return D(O(e));let n=C(e),r=n.lastIndexOf(`/`);return r===-1?``:n.slice(0,r)}function G(e,t){let n=D(O(e));return n?`${n}/${t}`:t}function K(e,t,n){e.append(`parentDocName`,G(t,n)),e.append(`placement`,`parent-dir`)}function q(e,t){return(t.path??G(e,t.src)).replace(/^\/+/,``)}function J(e){let t=e.dataTransfer?.types;if(!t)return!1;let n=Array.from(t);return n.includes(`Files`)&&!n.includes(`application/x-open-knowledge-sidebar-item+json`)}function Y(e){return Array.from(e.dataTransfer?.files??[]).filter(e=>e.name.length>0||e.size>0)}function X(e,r){let i=n(e).toLowerCase();if(i===``)return null;let a=new Date().toISOString();if(i===`.md`||i===`.mdx`)return{kind:`document`,docName:C(e),docExt:i,modified:a,size:r.size};let o=i.startsWith(`.`)?i.slice(1):i;return{kind:`asset`,path:e,assetExt:o,mediaKind:t(o),modified:a,size:r.size}}function Z(e){let t=Q(e),n=t.lastIndexOf(`/`),r=n===-1?t:t.slice(n+1);return e.endsWith(`/`)?`${r}/`:r}function Q(e){return e.endsWith(`/`)?e.slice(0,-1):e}export{f as A,j as C,u as D,y as E,p as O,R as S,q as T,z as _,H as a,C as b,A as c,T as d,Y as f,W as g,B as h,U as i,m as k,M as l,J as m,N as n,V as o,O as p,P as r,S as s,K as t,X as u,I as v,k as w,w as x,D as y};
|