@inkeep/open-knowledge 0.68.23 → 0.68.25
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/{acp-harness-probe-VsY2MJm_.mjs → acp-harness-probe-cDPpq4cK.mjs} +2 -2
- package/dist/cli.mjs +24 -24
- package/dist/constants-veaDdIy0.mjs +2 -0
- package/dist/{git-handle-C0onz3KH.mjs → git-handle-BI08KePL.mjs} +2 -2
- package/dist/git-handle-tx24n4m3.mjs +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +218 -219
- package/dist/init-BFc6ZlDx.mjs +1 -0
- package/dist/{init-CLtTEqbD.mjs → init-HwwBx7jE.mjs} +6 -6
- package/dist/{launch-json-removal-nKaQdXia.mjs → launch-json-removal-Bmp4pEbr.mjs} +2 -2
- package/dist/{loader-BIIfAEjP.mjs → loader-BgZTHjwC.mjs} +2 -2
- package/dist/loader-CPxCqyid.mjs +1 -0
- package/dist/md-manager-C0JXW59s.mjs +2 -0
- package/dist/{open-browser-7DkBQF9D.mjs → open-browser-DtPQklA3.mjs} +2 -2
- package/dist/parse-worker.mjs +1 -1
- package/dist/preview-B8bqmjqa.mjs +1 -0
- package/dist/{preview-CZKWPYO9.mjs → preview-C_JkVRHU.mjs} +2 -2
- package/dist/public/assets/{ActivityModeContent-Dmsx6-rU.js → ActivityModeContent-BsN1q6on.js} +1 -1
- package/dist/public/assets/{AddPropertiesButton-BXxmaoXG.js → AddPropertiesButton-DKeaL1oS.js} +2 -2
- package/dist/public/assets/{AgentDiffPane-CDzGDQpm.js → AgentDiffPane-BM1ahAik.js} +1 -1
- package/dist/public/assets/{AgentThreadClientBinder-Bf50AUBi.js → AgentThreadClientBinder-oLrPSNPH.js} +1 -1
- package/dist/public/assets/{BugReportHistory-wK4InFbA.js → BugReportHistory-CjOQKfkD.js} +1 -1
- package/dist/public/assets/{BugReportHistoryDialog-Ba01rTam.js → BugReportHistoryDialog-Diu9xO83.js} +1 -1
- package/dist/public/assets/CodeMirrorPropInput-C-O6O9wI.js +3 -0
- package/dist/public/assets/{ConsentDialogBody-D6hJwNXp.js → ConsentDialogBody-DRoNvqho.js} +1 -1
- package/dist/public/assets/{DiffViewBoundary-B13gBLtK.js → DiffViewBoundary-CBAGr4M4.js} +1 -1
- package/dist/public/assets/DocumentContext-BL03B6Lo.js +38 -0
- package/dist/public/assets/{EditorModeToggle-HTkemSk1.js → EditorModeToggle-BsK6ZKYQ.js} +1 -1
- package/dist/public/assets/{EnableSyncConfirmDialog-BIlYRb73.js → EnableSyncConfirmDialog-DjaFG6MU.js} +1 -1
- package/dist/public/assets/{ExcalidrawDocEditor-BuFmAaIa.js → ExcalidrawDocEditor-DphKGPeJ.js} +1 -1
- package/dist/public/assets/FeedbackForm-CqA8hjj8.js +1 -0
- package/dist/public/assets/{GraphPanel-u52WU2oL.js → GraphPanel-B2aFesGW.js} +2 -2
- package/dist/public/assets/{ImageAttachments-DyK8QuNY.js → ImageAttachments-Zj80uHKI.js} +1 -1
- package/dist/public/assets/{ImportSkillDialog-DbL6sCM2.js → ImportSkillDialog-BEWZQmnc.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-D9ptwlFr.js → LintConfigEditor-DuIbFKSd.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-Dl3pabto.js +1 -0
- package/dist/public/assets/ManagedArtifactProperties-PLZuubo-.js +1 -0
- package/dist/public/assets/{MermaidDocEditor-Dq084Ykr.js → MermaidDocEditor-CdignfBs.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-BPYA3Dpm.js → PropertyDisplayRow-CyD4-Wb_.js} +1 -1
- package/dist/public/assets/ReportBugDialogBody-BUuxy0j2.js +3 -0
- package/dist/public/assets/{ReportBugMenuTrigger-Bgd4nbhS.js → ReportBugMenuTrigger-sk-thNZX.js} +2 -2
- package/dist/public/assets/{SchemaConfigEditor-Bs5Qb3a_.js → SchemaConfigEditor-CDpCKyKB.js} +1 -1
- package/dist/public/assets/{SessionsHost-xU9HmkZD.js → SessionsHost-B-TEBDCp.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-B8PZEIgj.js → SettingsDialogBody-DK0PsIIc.js} +4 -4
- package/dist/public/assets/{ShareBranchSwitchDialog-Cd1IH1tv.js → ShareBranchSwitchDialog-DCgiR2i-.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-CDOEKYVB.js → ShareReceiveDialog-DUqJV0UV.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-DmWXKwKo.js → ShareReceiveMissDialog-JxBpkBFR.js} +1 -1
- package/dist/public/assets/{SkillCostValue-Da0rHHTz.js → SkillCostValue-Dz6a2Lnk.js} +1 -1
- package/dist/public/assets/{SkillEditBanner-Cs-3UGuA.js → SkillEditBanner-BNP9V25d.js} +1 -1
- package/dist/public/assets/{SkillForkDialog-DNBDX1CX.js → SkillForkDialog-DoQVCana.js} +1 -1
- package/dist/public/assets/{SkillInstallMenu-Ds9mhQmJ.js → SkillInstallMenu-Bu9LANwb.js} +2 -2
- package/dist/public/assets/{SkillOriginInline-B0dcs7tW.js → SkillOriginInline-CuE2lMFY.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-Do_aqh2A.js → SkillToolbarControls-HtxNAB1G.js} +1 -1
- package/dist/public/assets/{SlidesToolbarControls-DHvw4uBT.js → SlidesToolbarControls-BZNlyduc.js} +1 -1
- package/dist/public/assets/SourceEditor-CDklgrky.js +1 -0
- package/dist/public/assets/{TerminalPanel-12Llnh6U.js → TerminalPanel-BuPs5mVj.js} +3 -3
- package/dist/public/assets/{TerminalWindowApp-D3xj6sKj.js → TerminalWindowApp-BTj6QFKN.js} +1 -1
- package/dist/public/assets/{TextDocEditor-1-vgiay8.js → TextDocEditor-Dby0nL6U.js} +1 -1
- package/dist/public/assets/{ThreadView-DYRIYJVr.js → ThreadView-CUE8ki-r.js} +1 -1
- package/dist/public/assets/{TimelineDiffPane-Bo4TRb2U.js → TimelineDiffPane-DkPuC0ku.js} +1 -1
- package/dist/public/assets/{agent-diff-store-BpEmZR_U.js → agent-diff-store-IPzzfrOx.js} +1 -1
- package/dist/public/assets/auth-state-cache-DTs2CUC0.js +11 -0
- package/dist/public/assets/{bug-report-send-manager-D7ZKWC13.js → bug-report-send-manager-Bss057qg.js} +1 -1
- package/dist/public/assets/{client-version-CyfblLiq.js → client-version-f3Ic3dkW.js} +1 -1
- package/dist/public/assets/{comment-chips-DSavxKRA.js → comment-chips-C9DBUwjq.js} +1 -1
- package/dist/public/assets/config-provider-Bvsjfg7O.js +5 -0
- package/dist/public/assets/{dist-Cwdy6rNm.js → dist-o3yaQSBE.js} +1 -1
- package/dist/public/assets/{doc-hash-2ijBcFw2.js → doc-hash-gt3yar-W.js} +1 -1
- package/dist/public/assets/{doc-undo-manager-Cu_ax5kl.js → doc-undo-manager-CpfBEWAw.js} +1 -1
- package/dist/public/assets/{documents-events-D-zWDKxn.js → documents-events-Du6II0Ei.js} +1 -1
- package/dist/public/assets/{file-tree-adapter-D-PRw9QY.js → file-tree-adapter-Ws51oJtV.js} +1 -1
- package/dist/public/assets/{file-tree-utils-CRgAMcDx.js → file-tree-utils-CjXPIk9u.js} +1 -1
- package/dist/public/assets/{folder-config-api-CSxHXv7z.js → folder-config-api-DRfPX6G9.js} +1 -1
- package/dist/public/assets/i18n-gYJ8jvKw.js +1 -0
- package/dist/public/assets/{index-BnyZLeou.js → index-3LY7lc1S.js} +14 -14
- package/dist/public/assets/{launcher-selection-BtWIyLvk.js → launcher-selection-CDIa5FVF.js} +1 -1
- package/dist/public/assets/{lint-config-client-mcvTJc2v.js → lint-config-client-Mu5rBBK-.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-BMGCypxy.js → markdownlint-rule-browser-CpUZseqZ.js} +1 -1
- package/dist/public/assets/messages-B6Ac_knU.js +1 -0
- package/dist/public/assets/messages-BvfFbtmp.js +1 -0
- package/dist/public/assets/messages-ByqVbDZe.js +1 -0
- package/dist/public/assets/messages-CF4EMa7T.js +1 -0
- package/dist/public/assets/messages-CgBcbaHh.js +1 -0
- package/dist/public/assets/messages-CnVn5BDO.js +1 -0
- package/dist/public/assets/messages-CqyX3cbt.js +1 -0
- package/dist/public/assets/messages-CxKqlUtN.js +1 -0
- package/dist/public/assets/messages-D9dpfRAa.js +1 -0
- package/dist/public/assets/messages-DzfDu_9j.js +1 -0
- package/dist/public/assets/messages-K88Wi74D.js +1 -0
- package/dist/public/assets/messages-oiz3Xu6U.js +1 -0
- package/dist/public/assets/page-list-cache-Cu9DOD34.js +1 -0
- package/dist/public/assets/{pending-receive-nav-store-DLi8WvuU.js → pending-receive-nav-store-vjeswZ1S.js} +1 -1
- package/dist/public/assets/{progress-CBMozKMY.js → progress-Bjq-7B_h.js} +3 -3
- package/dist/public/assets/{project-paths-CkPw54qq.js → project-paths-D-0JbskM.js} +1 -1
- package/dist/public/assets/{prop-types-BWOU-3iS.js → prop-types-BMmnqO1F.js} +1 -1
- package/dist/public/assets/{receive-store-DbCZayFQ.js → receive-store-Ch7q4td5.js} +1 -1
- package/dist/public/assets/{selection-context-CHPHJ_3P.js → selection-context-DxsBdCm9.js} +1 -1
- package/dist/public/assets/{skill-scope-Cc_tGDGk.js → skill-scope-Byq13eLB.js} +1 -1
- package/dist/public/assets/{skills-api-DOBXco7b.js → skills-api-B8VoCUW6.js} +1 -1
- package/dist/public/assets/{src-DbplITLy.js → src-2dTcoAYc.js} +1 -1
- package/dist/public/assets/{startup-marks-XRsgWWbt.js → startup-marks-CTXUS1Ul.js} +1 -1
- package/dist/public/assets/{tag-pill-input-B5neay0J.js → tag-pill-input-D-HYAX8D.js} +1 -1
- package/dist/public/assets/{target-navigation-intent-OdVNpD6p.js → target-navigation-intent-D3ncb9fZ.js} +1 -1
- package/dist/public/assets/{telemetry-startup-BLz9UO1p.js → telemetry-startup-CH9llubG.js} +1 -1
- package/dist/public/assets/{terminal-cli-display-C4WdyJL_.js → terminal-cli-display-C0s5xXdy.js} +1 -1
- package/dist/public/assets/{terminal-command-events-WuiqDErm.js → terminal-command-events-DaFJ29gM.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-CP0dyZot.js → typing-burst-detector-oKnQh0ov.js} +3 -3
- package/dist/public/assets/{uninstall-Q6KZCGd1.js → uninstall-Cdgarx0X.js} +1 -1
- package/dist/public/assets/{use-activity-panel-C4GUe7aL.js → use-activity-panel-BM_l4tMu.js} +1 -1
- package/dist/public/assets/{use-apply-config-color-theme-ZQo6F7Ch.js → use-apply-config-color-theme-BzF4dCGo.js} +1 -1
- package/dist/public/assets/{use-collab-url-VKEV6_yX.js → use-collab-url-DhrFhtyH.js} +1 -1
- package/dist/public/assets/{use-conflicts-BdD4tOPl.js → use-conflicts-BsmHy6Ah.js} +1 -1
- package/dist/public/assets/{use-live-xterm-theme-B9XRMlxA.js → use-live-xterm-theme-Drc41C1Y.js} +1 -1
- package/dist/public/assets/{use-open-skill-BH_mEYpe.js → use-open-skill-Bc_MMBNx.js} +1 -1
- package/dist/public/assets/{use-settings-route-DdY4FJ0e.js → use-settings-route-D_hrIks1.js} +1 -1
- package/dist/public/assets/{use-skill-origin-AvtTl_ol.js → use-skill-origin-CteAWX6H.js} +1 -1
- package/dist/public/assets/{use-skills-0lg-f7-C.js → use-skills-B_7BHHiH.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-Bzjy0qRo.js → use-terminal-enabled-BS4HcL8d.js} +1 -1
- package/dist/public/assets/use-timeline-entry-diff-CjVpx90u.js +5 -0
- package/dist/public/assets/{use-workspace-B6rNZ9sM.js → use-workspace-BBjLPqCO.js} +1 -1
- package/dist/public/index.html +51 -51
- package/dist/public/uninstall.html +4 -4
- package/dist/{repair-launch-json-BauldshL.mjs → repair-launch-json-DfVqqhks.mjs} +2 -2
- package/dist/{repair-mcp-configs-DwXnnCf1.mjs → repair-mcp-configs-CY74SE23.mjs} +2 -2
- package/dist/repair-skills-BJog_ZkO.mjs +1 -0
- package/dist/{repair-skills-DV5Ex1fA.mjs → repair-skills-lRCFwvhr.mjs} +2 -2
- package/dist/{resolve-project-root-Cc2d51uk.mjs → resolve-project-root-BQmlxjbX.mjs} +3 -3
- package/dist/{server-lock-DKS1ePB3.mjs → server-lock-DMUPUL90.mjs} +2 -2
- package/dist/server-lock-qVil2gut.mjs +1 -0
- package/dist/{skill-teardown-CnsEXQ4M.mjs → skill-teardown-BWwkRO-B.mjs} +2 -2
- package/dist/{src-B2bAQ64a.mjs → src-BSHNcVXn.mjs} +107 -107
- package/dist/src-BxqApSys.mjs +2045 -0
- package/dist/src-DhnY2n-M.mjs +1 -0
- package/dist/src-Dx0OEah9.mjs +20 -0
- package/dist/{src-BRvdXeYI.mjs → src-SbH90xWg.mjs} +1 -1
- package/dist/start-BLvelUky.mjs +1 -0
- package/dist/{start-BDxtXn92.mjs → start-sZmCG1Do.mjs} +3 -3
- package/package.json +4 -4
- package/dist/constants-Dzh7neNo.mjs +0 -2
- package/dist/git-handle-GcGVb-Kt.mjs +0 -1
- package/dist/init-C1yB1g0w.mjs +0 -1
- package/dist/loader-DTb37YSe.mjs +0 -1
- package/dist/md-manager--OJ_B4tb.mjs +0 -2
- package/dist/preview-BpkEobrV.mjs +0 -1
- package/dist/public/assets/CodeMirrorPropInput-8nVGsNl8.js +0 -3
- package/dist/public/assets/DocumentContext-DXm1rbIR.js +0 -38
- package/dist/public/assets/FeedbackForm-BSoEerEL.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-D9RpfNxI.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-mMbrZxNk.js +0 -1
- package/dist/public/assets/ReportBugDialogBody-CT2Z753g.js +0 -3
- package/dist/public/assets/SourceEditor-DAMTcgxc.js +0 -1
- package/dist/public/assets/auth-state-cache-CyNl-PT7.js +0 -11
- package/dist/public/assets/config-provider-Ba3bBCYB.js +0 -5
- package/dist/public/assets/i18n-CkFIIxkx.js +0 -1
- package/dist/public/assets/messages-1No0CauP.js +0 -1
- package/dist/public/assets/messages-BIqXzC4l.js +0 -1
- package/dist/public/assets/messages-B_4omNLT.js +0 -1
- package/dist/public/assets/messages-Be-FYfQ4.js +0 -1
- package/dist/public/assets/messages-CNHhZ4a3.js +0 -1
- package/dist/public/assets/messages-CQAvxRgS.js +0 -1
- package/dist/public/assets/messages-CVeyKz0B.js +0 -1
- package/dist/public/assets/messages-CtF6T86x.js +0 -1
- package/dist/public/assets/messages-M0QpAdXx.js +0 -1
- package/dist/public/assets/messages-hpjSQYVz.js +0 -1
- package/dist/public/assets/messages-prOy2Yu2.js +0 -1
- package/dist/public/assets/messages-wwh_OEGG.js +0 -1
- package/dist/public/assets/page-list-cache-B-YfJ4Pd.js +0 -1
- package/dist/public/assets/use-timeline-entry-diff-ChkhgMPB.js +0 -5
- package/dist/repair-skills-Cd0ulalA.mjs +0 -1
- package/dist/server-lock-D-DD35fh.mjs +0 -1
- package/dist/src-H40sxqt7.mjs +0 -1
- package/dist/src-IiV9Xv8E.mjs +0 -2045
- package/dist/src-SiHgr89I.mjs +0 -21
- package/dist/start-ClILLevG.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{$o as e,Ko as t,Zo as n,qo as r}from"./dist-o3yaQSBE.js";import{c as i,l as a,u as o}from"./doc-hash-gt3yar-W.js";import{c as s}from"./page-list-cache-Cu9DOD34.js";import{c,l,s as u}from"./file-tree-utils-CjXPIk9u.js";import{t as d}from"./file-tree-rename-validation-BWlguLbB.js";var f=`application/x-open-knowledge-sidebar-item+json`,p={image:!0,video:!0,audio:!0,pdf:!0,text:!0,mermaid:!0,excalidraw:!0};function m(e){return JSON.stringify(e)}function h(e){return e?Array.from(e.types).includes(f):!1}function ee(e){return e.kind===`folder`?{target:{kind:`folder`,target:e.folderPath,folderPath:e.folderPath},hash:o(e.folderPath)}:e.kind===`asset`?{target:{kind:`asset`,target:e.assetPath,assetPath:e.assetPath,mediaKind:e.mediaKind},hash:i(e.assetPath)}:{target:s(e.docName,e.size)??{kind:`doc`,target:e.docName,docName:e.docName},hash:a(e.docName)}}function g(e){if(!e||!h(e))return null;let t=e.getData(f);if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(!_(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&&!v(e)?null:{v:1,kind:`asset`,assetPath:n.assetPath,mediaKind:e}}return null}function _(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function v(e){return typeof e==`string`&&Object.hasOwn(p,e)}var y=`.md`,b=/\.(md|mdx)$/i;function x(e,i=y){return b.test(e)||n(e)||r(e)||t(e)?e:`${e}${i}`}function S(e){return $(e).replace(b,``)}function C(e,t){let n=$(e),r=k(t),i=t.find(e=>c(e)&&A(e,r)===n)??t.find(e=>c(e)&&T(e)===n);if(i)return i.docName;let a=S(n);return t.find(e=>{let t=T(e);return t!==n&&b.test(t)&&S(t)===a})&&b.test(n)?n:a}function w(e,t){let n=k(t);return t.find(t=>A(t,n)===e)??t.find(t=>T(t)===e)}function T(e){return l(e)?O(e.path):u(e)?e.path:x(e.docName,e.docExt)}function E(e){let t=$(e).match(b);return t?`.${t[1].toLowerCase()}`:void 0}function D(e){return $(e)}function O(e){let t=$(e.trim());return t?`${t}/`:``}function te(e){return e.endsWith(`/`)?D(e):S(e)}function k(e){let t=new Map;for(let n of e){if(!c(n))continue;let e=n.docName.match(b);if(!e)continue;let r=n.docName.slice(0,-e[0].length),i=t.get(r);i?i.add(e[0]):t.set(r,new Set([e[0]]))}return t}function A(e,t){let n=T(e);if(!c(e))return n;let r=e.docName.match(b);if(!r)return n;let i=e.docName.slice(0,-r[0].length);return(t.get(i)?.size??0)>1?n:`${e.docName}${e.docExt??y}`}function j(e){let t=k(e),n=new Set,r=[];for(let i of e){let e=A(i,t);n.has(e)||(n.add(e),r.push(e))}return r}function M(e){return[...e].sort().join(`\0`)}function N(e){return M(j(e))}function P(e,t={}){let n=new Set;for(let r of e){let e=(l(r)||u(r)?r.path:r.docName).split(`/`).filter(Boolean);if(!t.includeOkFolders&&e.includes(`.ok`))continue;if(l(r)){let e=O(r.path);e&&n.add(e)}let i=l(r)?e.length:e.length-1;for(let t=1;t<=i;t++)n.add(`${e.slice(0,t).join(`/`)}/`)}return[...n].sort()}function F(e){if(!e)return[];let t=$(e.replace(b,``)).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 I(e,t,n){let r=E(e);if(r)return r;let i=n.find(e=>c(e)&&e.docName===t);return i?i.docExt??y:Q(e).includes(`.`)?void 0:y}function L(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(!u(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 R(e,t,n){if(E(e))return null;let r=n.find(e=>u(e)&&e.path===t);return r?r.path:Q(e).includes(`.`)?t:L(t,n)}function z(e,t){let n=e.kind===`directory`,r=n?D(e.path):C(e.path,t);if(n)return{kind:`folder`,name:$(Q(e.path)).replace(b,``),path:r,treePath:V(e.path,!0)};let i=R(e.path,r,t);if(i)return{kind:`asset`,name:$(Q(i)),path:i,treePath:i};let a=I(e.path,r,t);return{kind:`file`,name:$(Q(e.path)).replace(b,``),path:r,treePath:V(e.path,!1),docExt:a}}function B(e){return e.kind===`directory`?D(e.path):e.path}function V(e,t){return t?O(e):b.test(e)?e:`${e}${y}`}function H(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}${y}`;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 U(e,t){return e===`file`?V(t,!1):`${D(t)}/index${y}`}function W(e,t){return t.kind===`root`||t.directoryPath==null?Q(e):`${t.directoryPath}${Q(e)}`}function G(e,t){if(t)return D(O(e));let n=S(e),r=n.lastIndexOf(`/`);return r===-1?``:n.slice(0,r)}function K(e,t){let n=D(O(e));return n?`${n}/${t}`:t}function q(e,t,n){e.append(`parentDocName`,K(t,n)),e.append(`placement`,`parent-dir`)}function J(e,t){return(t.path??K(e,t.src)).replace(/^\/+/,``)}function Y(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 X(e){return Array.from(e.dataTransfer?.files??[]).filter(e=>e.name.length>0||e.size>0)}function Z(t,n){let r=d(t).toLowerCase();if(r===``)return null;let i=new Date().toISOString();if(r===`.md`||r===`.mdx`)return{kind:`document`,docName:S(t),docExt:r,modified:i,size:n.size};let a=r.startsWith(`.`)?r.slice(1):r;return{kind:`asset`,path:t,assetExt:a,mediaKind:e(a),modified:i,size:n.size}}function Q(e){let t=$(e),n=t.lastIndexOf(`/`),r=n===-1?t:t.slice(n+1);return e.endsWith(`/`)?`${r}/`:r}function $(e){return e.endsWith(`/`)?e.slice(0,-1):e}export{g as A,z as C,f as D,J as E,h as O,C as S,te as T,G as _,U as a,D as b,j as c,T as d,X as f,V as g,Y as h,W as i,m as j,ee as k,N as l,O as m,P as n,H as o,w as p,F as r,x as s,q as t,Z as u,B as v,M as w,S as x,L as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Vs as e,ei as t,oi as n}from"./dist-o3yaQSBE.js";function r(e){return e.kind===`asset`}function i(e){return e.kind===`document`}function a(e){return e.kind===`folder`}function o(e){let t=[],n=0;for(let r of e)switch(r.kind){case`document`:if(r.docName===void 0){n+=1;break}t.push({kind:`document`,docName:r.docName,docExt:r.docExt,size:r.size,modified:r.modified,isSymlink:r.isSymlink,canonicalDocName:r.canonicalDocName,targetPath:r.targetPath});break;case`asset`:if(r.path===void 0||r.assetExt===void 0){n+=1;break}t.push({kind:`asset`,path:r.path,assetExt:r.assetExt,mediaKind:r.mediaKind??null,size:r.size,modified:r.modified,referencedBy:r.referencedBy});break;case`file`:if(r.path===void 0){n+=1;break}t.push({kind:`asset`,path:r.path,assetExt:r.assetExt??s(r.path),mediaKind:null,size:r.size,modified:r.modified,referencedBy:[]});break;case`folder`:if(r.path===void 0){n+=1;break}t.push({kind:`folder`,path:r.path,size:r.size,modified:r.modified,hasChildren:r.hasChildren,isSymlink:r.isSymlink,targetPath:r.targetPath});break;default:r.kind;break}return n>0&&console.warn(`[file-tree-utils] dropped ${n} listing entries missing variant identity fields`),t}function s(e){let t=e.includes(`/`)?e.split(`/`).pop()??e:e,n=t.lastIndexOf(`.`);return n>0&&n<t.length-1?t.slice(n+1).toLowerCase():t.startsWith(`.`)&&t.length>1?t.slice(1).toLowerCase():`file`}function c(e){if(!e)return[];let t=e.split(`/`).filter(Boolean),n=[];for(let e=1;e<t.length;e++)n.push(t.slice(0,e).join(`/`));return n}function l(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t>0?e.slice(0,t):``}function u(e){return e.split(`/`).some(e=>e.toLowerCase()===`.ok`)}function d(e,t){return t&&e!==`document`&&e!==`folder`}function f(e,n){return!n&&t(e)}function p(e,r={}){let{showHiddenFiles:i=!1,showOnlyMarkdownFiles:a=!1,showOkFolders:o=!1}=r;return e.filter(e=>{let r=e.docName??e.path??``;if(r===``||d(e.kind,a))return!1;let s=r.split(`/`),c=s.indexOf(`.ok`);if(c!==-1){if(!o)return!1;let e=s.slice(0,c).join(`/`);return i||e===``||!t(e)}return n(r)?!1:!f(r,i)})}function m(t,r={}){let{showHiddenFiles:i=!1,showOnlyMarkdownFiles:a=!1}=r,o=t.docName??t.path??``;return o===``||e(o)||n(o)||u(o)?{hiddenFiles:!1,onlyMarkdownFiles:!1}:{hiddenFiles:f(o,i),onlyMarkdownFiles:d(t.kind,a)}}function h(e){let{visibility:t={},unfilteredRootEntryCount:n,knownPageCount:r}=e;return(n>0||r>0)&&(t.showOnlyMarkdownFiles??!1)?`filtered-to-zero`:`true-empty`}export{p as a,i as c,o as d,l as i,a as l,h as n,u as o,c as r,r as s,m as t,s as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./documents-events-
|
|
1
|
+
import{l as e}from"./documents-events-Du6II0Ei.js";import{t}from"./parse-api-error-BtEdpaFC.js";import{t as n}from"./createLucideIcon-B6ULg5PN.js";var r=n(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]);async function i(e){return t(await e.json().catch(()=>null))??`HTTP ${e.status}`}async function a(e,t){try{let n=await fetch(`/api/folder-config`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({path:e,frontmatter:t})});return n.ok?{ok:!0}:{ok:!1,error:await i(n)}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function o(t){try{let n=await fetch(`/api/template`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok)return{ok:!1,error:await i(n)};let r=await n.json().catch(()=>null);return e(),{ok:!0,created:r?.created??!1,warnings:r?.warnings??[]}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function s(t,n){try{let r=`?folder=${encodeURIComponent(t)}&name=${encodeURIComponent(n)}`,a=await fetch(`/api/template${r}`,{method:`DELETE`});if(!a.ok)return{ok:!1,error:await i(a)};let o=await a.json().catch(()=>null);return e(),{ok:!0,existed:o?.existed??!1}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function c(t){try{let n=await fetch(`/api/template`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok)return{ok:!1,error:await i(n)};let r=await n.json().catch(()=>null);return e(),{ok:!0,committed:r?.committed??!1}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function l(t){try{let n=await fetch(`/api/template/import`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok)return{ok:!1,error:await i(n)};let r=await n.json().catch(()=>null);return e(),{ok:!0,path:r?.path??``,created:r?.created??!1,warnings:r?.warnings??[]}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}export{o as a,a as i,l as n,r as o,c as r,s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./dist-o3yaQSBE.js";import{t as e}from"./dist-Cr4-nBVI.js";import{t}from"./messages-CqyX3cbt.js";e.load(`en`,t.messages),e.activate(`en`);
|