@inkeep/open-knowledge 0.50.0 → 0.51.0-beta.0

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 (148) hide show
  1. package/dist/{acp-harness-probe-CAyb1VG_.mjs → acp-harness-probe-BzTMCs3I.mjs} +2 -2
  2. package/dist/cli.mjs +51 -51
  3. package/dist/constants-CFMkNBqi.mjs +2 -0
  4. package/dist/fs-traced-D4-U3iIC.mjs +1 -0
  5. package/dist/{fs-traced-BUirY9_X.mjs → fs-traced-RPXwxrA5.mjs} +6 -6
  6. package/dist/git-handle-Bw80Zwhs.mjs +1 -0
  7. package/dist/{git-handle-BWXziar2.mjs → git-handle-KAEFG2Xp.mjs} +2 -2
  8. package/dist/index.mjs +184 -184
  9. package/dist/init-BV5qgdEO.mjs +1 -0
  10. package/dist/{init-xm3S7ePq.mjs → init-BY2_9jaf.mjs} +34 -34
  11. package/dist/{launch-json-removal-DRG4rr-O.mjs → launch-json-removal-DJZIawj4.mjs} +2 -2
  12. package/dist/loader-BcOjgjSS.mjs +1 -0
  13. package/dist/loader-DEyEB0pl.mjs +2 -0
  14. package/dist/md-manager-DiVPjAYl.mjs +2 -0
  15. package/dist/{open-browser-Bb773NFh.mjs → open-browser-De70N-tU.mjs} +2 -2
  16. package/dist/parse-worker.mjs +1 -1
  17. package/dist/{preview-BJuJ4KQh.mjs → preview-COKlGckl.mjs} +2 -2
  18. package/dist/preview-CpGDxOmo.mjs +1 -0
  19. package/dist/public/assets/{ActivityModeContent-C3XczVNM.js → ActivityModeContent-Cjkui6nd.js} +1 -1
  20. package/dist/public/assets/{AgentDiffPane-CCvn5wQ3.js → AgentDiffPane-u-5ilTRE.js} +1 -1
  21. package/dist/public/assets/{AgentThreadClientBinder-D85mW3F8.js → AgentThreadClientBinder-BrrOZdn1.js} +1 -1
  22. package/dist/public/assets/{ChangedOutsideBadge-BTzPOikC.js → ChangedOutsideBadge-BcoH6-nw.js} +1 -1
  23. package/dist/public/assets/CodeMirrorPropInput-D50z9yLP.js +3 -0
  24. package/dist/public/assets/DocumentContext-CasGadtG.js +38 -0
  25. package/dist/public/assets/{EditorModeToggle-CYQ3YFwJ.js → EditorModeToggle-6-QjT8Ga.js} +1 -1
  26. package/dist/public/assets/{EnableSyncConfirmDialog-D3pGpgBV.js → EnableSyncConfirmDialog-CYGOKMM4.js} +1 -1
  27. package/dist/public/assets/FeedbackForm-CHJMhyv8.js +1 -0
  28. package/dist/public/assets/{GraphPanel-BgjTBQzf.js → GraphPanel-H0Dz8I1Y.js} +1 -1
  29. package/dist/public/assets/{ImportSkillDialog-CXQr-FGP.js → ImportSkillDialog-mMdMQEcu.js} +1 -1
  30. package/dist/public/assets/{LintConfigEditor-DbAjr4jH.js → LintConfigEditor-DGxetApx.js} +1 -1
  31. package/dist/public/assets/{ManagedArtifactProperties-B4gUE4uy.js → ManagedArtifactProperties-5u803JAP.js} +1 -1
  32. package/dist/public/assets/ManagedArtifactProperties-CutBH5nQ.js +1 -0
  33. package/dist/public/assets/{McpConsentDialogBody-CDj5MfEH.js → McpConsentDialogBody-BB44PQE6.js} +1 -1
  34. package/dist/public/assets/{MermaidDocEditor-BKY1PMJY.js → MermaidDocEditor-BDExs-LW.js} +1 -1
  35. package/dist/public/assets/ReportBugDialogBody-Cedm28lz.js +3 -0
  36. package/dist/public/assets/{SchemaConfigEditor-SePva8he.js → SchemaConfigEditor-Dbn9RObT.js} +1 -1
  37. package/dist/public/assets/{SessionsHost-gsjDemop.js → SessionsHost-CPuk32sz.js} +2 -2
  38. package/dist/public/assets/{SettingsDialogBody-B0aiIMgi.js → SettingsDialogBody-Cy0NXh6T.js} +4 -4
  39. package/dist/public/assets/{ShareBranchSwitchDialog-BvB0M0F8.js → ShareBranchSwitchDialog-Co8TuLoa.js} +1 -1
  40. package/dist/public/assets/{ShareReceiveDialog-DdTZvKPD.js → ShareReceiveDialog-DHLrIRs0.js} +1 -1
  41. package/dist/public/assets/{ShareReceiveMissDialog-5admpSFE.js → ShareReceiveMissDialog-BHMkU4HH.js} +1 -1
  42. package/dist/public/assets/{SkillEditBanner-xwl6MInS.js → SkillEditBanner-UvWXpguP.js} +1 -1
  43. package/dist/public/assets/{SkillOriginInline-1lmATcpN.js → SkillOriginInline-D8kmShJA.js} +1 -1
  44. package/dist/public/assets/{SkillToolbarControls-26O0onQs.js → SkillToolbarControls-B9upYwy8.js} +1 -1
  45. package/dist/public/assets/{SlidesToolbarControls-guFXAVIS.js → SlidesToolbarControls-B_zJy_NS.js} +1 -1
  46. package/dist/public/assets/SourceEditor-BYbqK1qo.js +1 -0
  47. package/dist/public/assets/{TerminalPanel-CP9vexOS.js → TerminalPanel-D5dGBcUr.js} +3 -3
  48. package/dist/public/assets/{TerminalWindowApp-CFcodtB9.js → TerminalWindowApp-DxDcT0Nb.js} +1 -1
  49. package/dist/public/assets/{TextDocEditor-Ba292y2S.js → TextDocEditor-GLvDavbc.js} +1 -1
  50. package/dist/public/assets/{ThreadView-Bxz-QRgZ.js → ThreadView-B7F0lkW2.js} +1 -1
  51. package/dist/public/assets/{TimelineDiffPane-FY54Yfye.js → TimelineDiffPane-CjnN3faR.js} +1 -1
  52. package/dist/public/assets/{agent-diff-store-DTrbnQbK.js → agent-diff-store-ghKYlKOr.js} +1 -1
  53. package/dist/public/assets/auth-state-cache-Z9zb3Xiw.js +11 -0
  54. package/dist/public/assets/client-version-C6LF52yy.js +1 -0
  55. package/dist/public/assets/{comment-chips-El0Mtul3.js → comment-chips-S0s83wIP.js} +1 -1
  56. package/dist/public/assets/config-provider-BIse3_Yo.js +5 -0
  57. package/dist/public/assets/{dist-B6uhnkqb2.js → dist-CHVHOG7X2.js} +183 -183
  58. package/dist/public/assets/{doc-paths-DCnBNou3.js → doc-paths-DEUIlKvV.js} +1 -1
  59. package/dist/public/assets/{documents-events-BE14yj3s.js → documents-events-CNRzblNO.js} +1 -1
  60. package/dist/public/assets/{file-tree-adapter-BOumv5bR.js → file-tree-adapter-DYdb8QDM.js} +1 -1
  61. package/dist/public/assets/{file-tree-utils-zx8XyJDX.js → file-tree-utils-CaXhxBar.js} +1 -1
  62. package/dist/public/assets/{folder-config-api-DzcYYQUB.js → folder-config-api-Cm-dSVuA.js} +1 -1
  63. package/dist/public/assets/{follow-file-D8sBwhbX.js → follow-file-DIXrodzs.js} +1 -1
  64. package/dist/public/assets/i18n-lVHP3BYW.js +1 -0
  65. package/dist/public/assets/index-CEkDqwbq.js +2097 -0
  66. package/dist/public/assets/{lint-config-client-CXdpjOMj.js → lint-config-client-Di_wU0g4.js} +1 -1
  67. package/dist/public/assets/{markdownlint-rule-browser-MV3bVGCC.js → markdownlint-rule-browser-CepJct7F.js} +1 -1
  68. package/dist/public/assets/navigation-targets-Dh0TaCXK.js +1 -0
  69. package/dist/public/assets/{open-managed-artifact-tab-DzG5xo47.js → open-managed-artifact-tab-DflI2eed.js} +1 -1
  70. package/dist/public/assets/{pending-receive-nav-store-CitdQa34.js → pending-receive-nav-store-yXsV1Iit.js} +1 -1
  71. package/dist/public/assets/{prop-types-DOjW8INh.js → prop-types-CLe_EOJt.js} +1 -1
  72. package/dist/public/assets/{receive-store-8XeTNhUV.js → receive-store-DrPPaP0S.js} +1 -1
  73. package/dist/public/assets/{selection-context-tW7mNL04.js → selection-context-BxRPPU5Z.js} +1 -1
  74. package/dist/public/assets/{skill-actions-B-rAAmok.js → skill-actions-Dj2NwLGa.js} +2 -2
  75. package/dist/public/assets/{skill-scope-qH5lhviP.js → skill-scope-BzUNaBG8.js} +1 -1
  76. package/dist/public/assets/{skills-api-Dl_Mtb7L.js → skills-api-VZRmji1_.js} +1 -1
  77. package/dist/public/assets/{src-DJwM4wxS.js → src-CbX6YXDU.js} +1 -1
  78. package/dist/public/assets/{tag-pill-input-Cg2Wozsu.js → tag-pill-input-GrIUFiT7.js} +1 -1
  79. package/dist/public/assets/{target-navigation-intent-uYgRrqg5.js → target-navigation-intent-CqhpK9cj.js} +1 -1
  80. package/dist/public/assets/{telemetry-impl-LPWb9DJh.js → telemetry-impl-DlE3Lv5F.js} +1 -1
  81. package/dist/public/assets/{telemetry-startup-B-jACYNe.js → telemetry-startup-hv8lBqwj.js} +1 -1
  82. package/dist/public/assets/{terminal-cli-display-BqUx5532.js → terminal-cli-display-DLfTA9tz.js} +1 -1
  83. package/dist/public/assets/{terminal-launch-events-C9cyVGWq.js → terminal-launch-events-DaPNTH_g.js} +1 -1
  84. package/dist/public/assets/{terminal-telemetry-BoS_NSJ3.js → terminal-telemetry-BdrnMW3b.js} +1 -1
  85. package/dist/public/assets/{typing-burst-detector-i5YC5a51.js → typing-burst-detector-COX8FDXD.js} +2 -2
  86. package/dist/public/assets/{uninstall-DTD665q0.js → uninstall-Bh5dzTYb.js} +1 -1
  87. package/dist/public/assets/{use-activity-panel-B_OxshWx.js → use-activity-panel-CtHXJ4mx.js} +1 -1
  88. package/dist/public/assets/{use-apply-config-color-theme-6RHjH1SX.js → use-apply-config-color-theme-Be4mSe54.js} +1 -1
  89. package/dist/public/assets/{use-collab-url-4QmUjyTo.js → use-collab-url-ChXwOaQi.js} +1 -1
  90. package/dist/public/assets/{use-live-xterm-theme-BaPGSFwn.js → use-live-xterm-theme-CaipyTAZ.js} +1 -1
  91. package/dist/public/assets/{use-open-skill-BZcJfbB3.js → use-open-skill-DASBRT-Y.js} +1 -1
  92. package/dist/public/assets/{use-popular-skills-BI639F_L.js → use-popular-skills-BEpYkbxf.js} +1 -1
  93. package/dist/public/assets/{use-settings-route-Ln_W_o3I.js → use-settings-route-MF7LcF5y.js} +1 -1
  94. package/dist/public/assets/{use-skill-origin-BjoZBPjm.js → use-skill-origin-qCGon4Nv.js} +1 -1
  95. package/dist/public/assets/{use-skills-DyoXP6p3.js → use-skills-C13KTW_J.js} +1 -1
  96. package/dist/public/assets/{use-terminal-enabled-C1FCQb8g.js → use-terminal-enabled-r2pfLhCY.js} +1 -1
  97. package/dist/public/assets/{use-timeline-entry-diff-C5UrKke2.js → use-timeline-entry-diff-C9owRy-n.js} +4 -4
  98. package/dist/public/assets/{use-workspace-C5uwuxa8.js → use-workspace-CEaEfKKU.js} +1 -1
  99. package/dist/public/index.html +44 -44
  100. package/dist/public/uninstall.html +3 -3
  101. package/dist/{repair-launch-json-DQqY1ddo.mjs → repair-launch-json-fD5l_Dkv.mjs} +2 -2
  102. package/dist/{repair-mcp-configs-BlVWRe_X.mjs → repair-mcp-configs-DqrMkSEg.mjs} +2 -2
  103. package/dist/{repair-skills-C_mOgSqu.mjs → repair-skills-BFfQjF9F.mjs} +2 -2
  104. package/dist/repair-skills-Dz417BMs.mjs +1 -0
  105. package/dist/server-lock-B4Z9_lXn.mjs +1 -0
  106. package/dist/{server-lock-DbS4Uxaj.mjs → server-lock-BV0Ktccm.mjs} +2 -2
  107. package/dist/{skill-teardown-DT0sY6o-.mjs → skill-teardown-BppNXkpR.mjs} +2 -2
  108. package/dist/{sleep-DdJljU3h.mjs → sleep-ChZE9826.mjs} +2 -2
  109. package/dist/src-BhdDn5db.mjs +1 -0
  110. package/dist/src-CwuSSZyu.mjs +2032 -0
  111. package/dist/{src-DsnCRAh5.mjs → src-CyXVAtz1.mjs} +6 -6
  112. package/dist/src-DMpGVIiQ.mjs +348 -0
  113. package/dist/src-DR51i3QD.mjs +1 -0
  114. package/dist/start-BiJWiuVi.mjs +1 -0
  115. package/dist/start-CcF7z41U.mjs +10 -0
  116. package/dist/ui-BBGFVQDX.mjs +1 -0
  117. package/dist/{ui-BBDdhHyy.mjs → ui-CNA2d6cp.mjs} +3 -3
  118. package/dist/{write-project-skill-__SzqfoP.mjs → write-project-skill-DHsuRyv9.mjs} +2 -2
  119. package/package.json +4 -4
  120. package/dist/constants-B9zWb_fv.mjs +0 -2
  121. package/dist/fs-traced-CDdByB1Z.mjs +0 -1
  122. package/dist/git-handle-BHbVb-kE.mjs +0 -1
  123. package/dist/init-UAHtpsrM.mjs +0 -1
  124. package/dist/loader-DDNYDIz4.mjs +0 -2
  125. package/dist/loader-DGm-wuvO.mjs +0 -1
  126. package/dist/md-manager-BP88oH5c.mjs +0 -2
  127. package/dist/preview-_fm88K-5.mjs +0 -1
  128. package/dist/public/assets/CodeMirrorPropInput-CJOa9rBB.js +0 -3
  129. package/dist/public/assets/DocumentContext-q72mQT_t.js +0 -38
  130. package/dist/public/assets/FeedbackForm-CPJzntj4.js +0 -1
  131. package/dist/public/assets/ManagedArtifactProperties-ga621KKB.js +0 -1
  132. package/dist/public/assets/ReportBugDialogBody-C3RLSmI4.js +0 -3
  133. package/dist/public/assets/SourceEditor-DCC6j8cH.js +0 -1
  134. package/dist/public/assets/auth-state-cache-CAQ4A-He.js +0 -11
  135. package/dist/public/assets/client-version-DZzYmEAI.js +0 -1
  136. package/dist/public/assets/config-provider-Cp4CY5__.js +0 -5
  137. package/dist/public/assets/i18n-Bm86sjGW.js +0 -1
  138. package/dist/public/assets/index-DYmWXWr6.js +0 -2097
  139. package/dist/public/assets/navigation-targets-GITJ7Tz8.js +0 -1
  140. package/dist/repair-skills-qAm1agyb.mjs +0 -1
  141. package/dist/server-lock-C_lebUd3.mjs +0 -1
  142. package/dist/src-DJhexTh5.mjs +0 -2032
  143. package/dist/src-DKD0dtSw.mjs +0 -1
  144. package/dist/src-YVZCV4Ux.mjs +0 -1
  145. package/dist/src-c73kUNxd.mjs +0 -348
  146. package/dist/start-DrycEKLh.mjs +0 -10
  147. package/dist/start-Y_cm7QYJ.mjs +0 -1
  148. package/dist/ui-BEwSKtfp.mjs +0 -1
@@ -185,5 +185,5 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
185
185
  `))n.push(` ${t}`);return n.join(`
186
186
  `)}case`WRITE_ERROR`:return`Failed to write config file: ${e.detail}`;case`OKIGNORE_INVALID`:return e.lineNumber===void 0?`.okignore: ${e.detail}`:`.okignore line ${e.lineNumber}: ${e.detail}`;case`UNKNOWN`:return e.message??`Unknown error.`}}function Mu(e,t){if(t.length===0)return e.contents??null;let n=e.getIn(t,!0);if((0,tl.isNode)(n))return n;for(let n=t.length-1;n>=0;n--){let r=e.getIn(t.slice(0,n),!0);if((0,tl.isNode)(r))return r}return e.contents??null}function Nu(e,t){let n=1,r=1,i=Math.min(t,e.length);for(let t=0;t<i;t++)e.charCodeAt(t)===10?(n++,r=1):r++;return{line:n,column:r}}function Pu(e,t,n,r,i){let a=e.split(`
187
187
  `),o=r-1;if(o<0||o>=a.length)return``;let s=a[o]??``,c=t-(i-1)+s.length,l=Math.max(1,Math.min(n,c)-t),u=[],d=String(o+2).length;for(let e=Math.max(0,o-1);e<=Math.min(a.length-1,o+1);e++){let t=e===o,n=t?`>`:` `,r=String(e+1).padStart(d,` `);if(u.push(`${n} ${r} | ${a[e]??``}`),t){let e=` `.repeat(2+d+3+i-1);u.push(`${e}${`^`.repeat(l)}`)}}return u.join(`
188
- `)}function Fu(e){let t=Mu(e.doc,e.path);if(!t)return;let n=t.range;if(!n)return;let[r,,i=r]=n,{line:a,column:o}=Nu(e.source,r),s=(0,tl.isCollection)(t)?Pu(e.source,r,r+1,a,o):Pu(e.source,r,i,a,o);return{file:e.file,line:a,column:o,snippet:s.length>0?s:void 0}}const $="Run `ok config migrate` to strip the obsolete key automatically, or remove it by hand.",Iu=[{path:[`content`,`include`],redirect:[`content.include has been removed.`,`For subdirectory scoping, set content.dir in .ok/config.yml instead.`,`For pattern-based filtering, use .okignore (gitignore syntax — exclude-only; do not copy include patterns directly).`,$].join(` `)},{path:[`content`,`exclude`],redirect:[`Move these patterns to .okignore at the project root (gitignore syntax, 1:1 migration).`,$].join(` `)},{path:[`folders`],redirect:[`folders is no longer a top-level config field.`,"A folder's own frontmatter (open-shape, like a doc's) lives in nested `<folder>/.ok/frontmatter.yml`; new-doc starting properties come from templates in `<folder>/.ok/templates/`.","Edit via the folder overview in the editor sidebar, or `edit({ folder: { path, frontmatter } })` via the MCP.",$].join(` `)},{path:[`appearance`,`editorModeDefault`],redirect:[`appearance.editorModeDefault was removed and is never read — new docs always open in WYSIWYG; toggle mode via the editor mode button.`,$].join(` `)},{path:[`upload`,`maxBytes`],redirect:[`streaming uploads have no user-facing cap; the value is hardcoded in @inkeep/open-knowledge-core.`,$].join(` `)},{path:[`github`,`oauthAppClientId`],redirect:[`Use the OPEN_KNOWLEDGE_GITHUB_CLIENT_ID environment variable instead.`,$].join(` `)},{path:[`server`,`host`],redirect:[`Use server.bind in .ok/config.yml instead — a list of bind addresses, e.g. [127.0.0.1]; a non-loopback bind additionally requires server.allowExternal.`,`The --host CLI flag and HOST environment variable also remain available.`,$].join(` `)},{path:[`server`,`openOnAgentEdit`],redirect:[`This behavior was removed; the value is hardcoded.`,$].join(` `)},{path:[`mcp`,`autoStart`],redirect:[`To disable MCP auto-start, set OK_MCP_AUTOSTART=0.`,$].join(` `)},{path:[`mcp`,`tools`,`read_document`,`historyDepth`],redirect:[`This value is hardcoded in @inkeep/open-knowledge-core.`,$].join(` `)},{path:[`mcp`,`tools`,`grep`,`maxResults`],redirect:[`This value is hardcoded in @inkeep/open-knowledge-core.`,$].join(` `)},{path:[`mcp`,`tools`,`search`,`maxResults`],redirect:[`The search result cap is hardcoded in @inkeep/open-knowledge-core; this config key was removed.`,$].join(` `)},{path:[`preview`,`baseUrl`],redirect:["preview URLs now resolve only to the running UI process — start one with `ok ui`.",$].join(` `)},{path:[`preview`,`scriptSrc`],redirect:[`preview.scriptSrc has been removed.`,`The code-block preview iframe now runs a fixed open network policy (it is no longer configurable).`,$].join(` `)},{path:[`appearance`,`sidebar`,`showAllFiles`],redirect:[`appearance.sidebar.showAllFiles has been removed.`,`The sidebar lists every file on disk by default; dot-prefixed entries are gated by appearance.sidebar.showHiddenFiles, and appearance.sidebar.showOnlyMarkdownFiles scopes the tree down to markdown documents as a per-machine view preference.`,$].join(` `)}];function Lu(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Ru(e,t){let n=e;for(let e=0;e<t.length-1;e++){if(!Lu(n))return!1;n=n[t[e]]}return Lu(n)?t[t.length-1]in n:!1}function zu(e){let{value:t,file:n,source:r,doc:i}=e;if(!Lu(t))return[];let a=[];for(let e of Iu){if(!Ru(t,e.path))continue;let o;i!=null&&r!=null&&n!=null&&(o=Fu({file:n,source:r,doc:i,path:e.path})),a.push({code:`REMOVED_KEY`,path:e.path,redirect:e.redirect,...o===void 0?{}:{source:o}})}return a}function Bu(e,t){let[n,...r]=t;if(n===void 0)return e;let i={...e};if(r.length===0)return delete i[n],i;let a=i[n];return Lu(a)&&(i[n]=Bu(a,r)),i}function Vu(e){if(!Lu(e))return e;let t=e;for(let e of Iu)Ru(t,e.path)&&(t=Bu(t,e.path));return t}const Hu=`v0`,Uu=`.ok/config.yml`,Wu=`local`,Gu=`themes`;function Ku(e){try{let t=Intl.getCanonicalLocales(e)[0];return t===void 0?null:t}catch{return null}}function qu(e){try{let t=Intl.getCanonicalLocales(e)[0];if(t===void 0)return null;let n=new Intl.Locale(t).maximize();return!n.language||!n.script?null:`${n.language}-${n.script}`}catch{return null}}function Ju(e){return new Promise(t=>{setTimeout(t,e)})}export{xc as $,$l as A,mo as At,$c as B,Cn as Bt,ql as C,zo as Ct,Wl as D,H as Dt,Ql as E,z as Et,Il as F,ka as Ft,_c as G,Ne as Gt,Zc as H,De as Ht,nl as I,ra as It,Dc as J,y as Jt,bc as K,Te as Kt,ml as L,ta as Lt,tu as M,W as Mt,Fl as N,no as Nt,Ul as O,bo as Ot,Pl as P,ja as Pt,Tc as Q,ol as R,jr as Rt,ru as S,fo as St,Gl as T,U as Tt,Yc as U,ke as Ut,el as V,j as Vt,yc as W,je as Wt,jc as X,s as Xt,wc as Y,O as Yt,Ec as Z,o as Zt,hu as _,V as _t,Uu as a,Kc as at,au as b,lo as bt,Iu as c,fc as ct,Fu as d,$o as dt,Ac as et,Tu as f,qa as ft,mu as g,eo as gt,Ou as h,Qa as ht,Wu as i,Sc as it,nu as j,L as jt,eu as k,Wo as kt,zu as l,Go as lt,ju as m,G as mt,Ku as n,kc as nt,Gu as o,Jc as ot,Du as p,yo as pt,vc as q,D as qt,qu as r,Oc as rt,Hu as s,gc as st,Ju as t,qc as tt,Vu as u,Qo as ut,fu as v,B as vt,Jl as w,K as wt,ou as x,Ya as xt,su as y,Vo as yt,hl as z,tr as zt};
189
- //# sourceMappingURL=sleep-DdJljU3h.mjs.map
188
+ `)}function Fu(e){let t=Mu(e.doc,e.path);if(!t)return;let n=t.range;if(!n)return;let[r,,i=r]=n,{line:a,column:o}=Nu(e.source,r),s=(0,tl.isCollection)(t)?Pu(e.source,r,r+1,a,o):Pu(e.source,r,i,a,o);return{file:e.file,line:a,column:o,snippet:s.length>0?s:void 0}}const $="Run `ok config migrate` to strip the obsolete key automatically, or remove it by hand.",Iu=[{path:[`content`,`include`],redirect:[`content.include has been removed.`,`For subdirectory scoping, set content.dir in .ok/config.yml instead.`,`For pattern-based filtering, use .okignore (gitignore syntax — exclude-only; do not copy include patterns directly).`,$].join(` `)},{path:[`content`,`exclude`],redirect:[`Move these patterns to .okignore at the project root (gitignore syntax, 1:1 migration).`,$].join(` `)},{path:[`folders`],redirect:[`folders is no longer a top-level config field.`,"A folder's own frontmatter (open-shape, like a doc's) lives in nested `<folder>/.ok/frontmatter.yml`; new-doc starting properties come from templates in `<folder>/.ok/templates/`.","Edit via the folder overview in the editor sidebar, or `edit({ folder: { path, frontmatter } })` via the MCP.",$].join(` `)},{path:[`appearance`,`editorModeDefault`],redirect:[`appearance.editorModeDefault was removed and is never read — new docs always open in WYSIWYG; toggle mode via the editor mode button.`,$].join(` `)},{path:[`upload`,`maxBytes`],redirect:[`streaming uploads have no user-facing cap; the value is hardcoded in @inkeep/open-knowledge-core.`,$].join(` `)},{path:[`github`,`oauthAppClientId`],redirect:[`Use the OPEN_KNOWLEDGE_GITHUB_CLIENT_ID environment variable instead.`,$].join(` `)},{path:[`server`,`host`],redirect:[`Use server.bind in .ok/config.yml instead — a list of bind addresses, e.g. [127.0.0.1]; a non-loopback bind additionally requires server.allowExternal.`,`The --host CLI flag and HOST environment variable also remain available.`,$].join(` `)},{path:[`server`,`openOnAgentEdit`],redirect:[`This behavior was removed; the value is hardcoded.`,$].join(` `)},{path:[`mcp`,`autoStart`],redirect:[`To disable MCP auto-start, set OK_MCP_AUTOSTART=0.`,$].join(` `)},{path:[`mcp`,`tools`,`read_document`,`historyDepth`],redirect:[`This value is hardcoded in @inkeep/open-knowledge-core.`,$].join(` `)},{path:[`mcp`,`tools`,`grep`,`maxResults`],redirect:[`This value is hardcoded in @inkeep/open-knowledge-core.`,$].join(` `)},{path:[`mcp`,`tools`,`search`,`maxResults`],redirect:[`The search result cap is hardcoded in @inkeep/open-knowledge-core; this config key was removed.`,$].join(` `)},{path:[`preview`,`baseUrl`],redirect:["preview URLs now resolve only to the running UI process — start one with `ok ui`.",$].join(` `)},{path:[`preview`,`scriptSrc`],redirect:[`preview.scriptSrc has been removed.`,`The code-block preview iframe now runs a fixed open network policy (it is no longer configurable).`,$].join(` `)},{path:[`appearance`,`sidebar`,`showAllFiles`],redirect:[`appearance.sidebar.showAllFiles has been removed.`,`The sidebar lists every file on disk by default; dot-prefixed entries are gated by appearance.sidebar.showHiddenFiles, and appearance.sidebar.showOnlyMarkdownFiles scopes the tree down to markdown documents as a per-machine view preference.`,$].join(` `)}];function Lu(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Ru(e,t){let n=e;for(let e=0;e<t.length-1;e++){if(!Lu(n))return!1;n=n[t[e]]}return Lu(n)?t[t.length-1]in n:!1}function zu(e){let{value:t,file:n,source:r,doc:i}=e;if(!Lu(t))return[];let a=[];for(let e of Iu){if(!Ru(t,e.path))continue;let o;i!=null&&r!=null&&n!=null&&(o=Fu({file:n,source:r,doc:i,path:e.path})),a.push({code:`REMOVED_KEY`,path:e.path,redirect:e.redirect,...o===void 0?{}:{source:o}})}return a}function Bu(e,t){let[n,...r]=t;if(n===void 0)return e;let i={...e};if(r.length===0)return delete i[n],i;let a=i[n];return Lu(a)&&(i[n]=Bu(a,r)),i}function Vu(e){if(!Lu(e))return e;let t=e;for(let e of Iu)Ru(t,e.path)&&(t=Bu(t,e.path));return t}const Hu=`v0`,Uu=`.ok/config.yml`,Wu=`local`,Gu=`themes`;function Ku(e){try{let t=Intl.getCanonicalLocales(e)[0];return t===void 0?null:t}catch{return null}}function qu(e){try{let t=Intl.getCanonicalLocales(e)[0];if(t===void 0)return null;let n=new Intl.Locale(t).maximize();return!n.language||!n.script?null:`${n.language}-${n.script}`}catch{return null}}function Ju(e){return new Promise(t=>{setTimeout(t,e)})}export{wc as $,O as $t,Wl as A,z as At,nl as B,ra as Bt,ou as C,Vo as Ct,Gl as D,zo as Dt,Jl as E,fo as Et,nu as F,L as Ft,el as G,j as Gt,ol as H,jr as Ht,tu as I,W as It,yc as J,je as Jt,Zc as K,De as Kt,Fl as L,no as Lt,Xl as M,bo as Mt,eu as N,Wo as Nt,Ql as O,K as Ot,$l as P,mo as Pt,Dc as Q,y as Qt,Pl as R,ja as Rt,au as S,B as St,ql as T,Ya as Tt,hl as U,tr as Ut,ml as V,ta as Vt,$c as W,Cn as Wt,bc as X,Te as Xt,_c as Y,Ne as Yt,vc as Z,D as Zt,hu as _,yo as _t,Uu as a,qc as at,lu as b,eo as bt,Iu as c,Sc as ct,Fu as d,gc as dt,s as en,jc as et,Tu as f,fc as ft,mu as g,qa as gt,Ou as h,$o as ht,Wu as i,Ac as it,Ul as j,H as jt,Yl as k,U as kt,zu as l,Kc as lt,ju as m,Qo as mt,Ku as n,Tc as nt,Gu as o,kc as ot,Du as p,Go as pt,Yc as q,ke as qt,qu as r,xc as rt,Hu as s,Oc as st,Ju as t,o as tn,Ec as tt,Vu as u,Jc as ut,fu as v,G as vt,ru as w,lo as wt,su as x,V as xt,uu as y,Qa as yt,Il as z,ka as zt};
189
+ //# sourceMappingURL=sleep-ChZE9826.mjs.map
@@ -0,0 +1 @@
1
+ import"./src-DMpGVIiQ.mjs";import"./src-CyXVAtz1.mjs";import"./acp-harness-probe-BzTMCs3I.mjs";import"./init-BY2_9jaf.mjs";import"./write-project-skill-DHsuRyv9.mjs";import{n as e}from"./loader-DEyEB0pl.mjs";import"./skill-teardown-BppNXkpR.mjs";import"./preview-COKlGckl.mjs";import"./mcp-migrate-event-BsswfOLm.mjs";export{e as loadConfig};