@inkeep/open-knowledge 0.86.0-beta.14 → 0.86.0-beta.16

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 (151) hide show
  1. package/dist/cli.mjs +6 -6
  2. package/dist/constants-tSID-kT5.mjs +1 -0
  3. package/dist/{dist-DikfvdOD.mjs → dist-5zDm1fr3.mjs} +1 -1
  4. package/dist/dist-DUtSOpBB.mjs +2212 -0
  5. package/dist/index.mjs +5 -5
  6. package/dist/{init-hoQjAW3K.mjs → init-B3soXeyK.mjs} +2 -2
  7. package/dist/init-BW-4zw1V.mjs +1 -0
  8. package/dist/{launch-json-removal-haR6VXnE.mjs → launch-json-removal-2nQyZjaq.mjs} +1 -1
  9. package/dist/{loader-BZ5A2C7h.mjs → loader-BWtNORi7.mjs} +1 -1
  10. package/dist/loader-niePATP1.mjs +1 -0
  11. package/dist/{md-manager-BGnqyqi1-CMF2qMhD.mjs → md-manager-BGnqyqi1-C80pMLi7.mjs} +1 -1
  12. package/dist/{open-browser-CsFrf5v1.mjs → open-browser-Buji7DpA.mjs} +1 -1
  13. package/dist/parse-worker.mjs +1 -1
  14. package/dist/preview-2dl7HtCm.mjs +1 -0
  15. package/dist/{preview-B9q-nNM2.mjs → preview-DoJ3QZhu.mjs} +1 -1
  16. package/dist/public/assets/{AccountSection-l9JqJTHL.js → AccountSection-C8VrxwD0.js} +1 -1
  17. package/dist/public/assets/{ActivityModeContent-B7EhH3tm.js → ActivityModeContent-CG-sT-V6.js} +1 -1
  18. package/dist/public/assets/AddPropertiesButton-DtKuaSoE.js +2 -0
  19. package/dist/public/assets/{AgentConnectionsSection-C99QFz6Q.js → AgentConnectionsSection-DZe1baEO.js} +1 -1
  20. package/dist/public/assets/{AgentDiffPane-dzz3u3OS.js → AgentDiffPane-DGDfHO0m.js} +1 -1
  21. package/dist/public/assets/{AttachmentsSection-D9S_QlqH.js → AttachmentsSection-DZ39jLXo.js} +1 -1
  22. package/dist/public/assets/{AuthModal-CaYJDCrL.js → AuthModal-CHid1zIl.js} +1 -1
  23. package/dist/public/assets/{CodeMirrorPropInput-BARtwTM1.js → CodeMirrorPropInput-CWwqakNd.js} +1 -1
  24. package/dist/public/assets/{ContentRulesSection-D__xhlyl.js → ContentRulesSection-CQVYRse1.js} +1 -1
  25. package/dist/public/assets/{DiffViewBoundary-DTwemWjU.js → DiffViewBoundary-L0r4YmEw.js} +1 -1
  26. package/dist/public/assets/DocumentContext-BYGgYZ2Z.js +108 -0
  27. package/dist/public/assets/{EditorModeToggle-CuBaEUf0.js → EditorModeToggle-C2u2HBDQ.js} +1 -1
  28. package/dist/public/assets/{ExcalidrawDocEditor-DAbuGvj6.js → ExcalidrawDocEditor-3cWFGLDA.js} +1 -1
  29. package/dist/public/assets/FeedbackForm-DVva0ToF.js +1 -0
  30. package/dist/public/assets/{GraphPanel-D8IPaKtn.js → GraphPanel-75Gq3M8g.js} +1 -1
  31. package/dist/public/assets/{ImportSkillDialog-BarhTn9-.js → ImportSkillDialog-Bmm_A48M.js} +1 -1
  32. package/dist/public/assets/{LinkPreviewsSection-yecPMr3J.js → LinkPreviewsSection-D1vvIPmT.js} +1 -1
  33. package/dist/public/assets/{LintConfigEditor-DZIosmdo.js → LintConfigEditor-BQisgkvH.js} +1 -1
  34. package/dist/public/assets/{LintingSection-BFLOww9y.js → LintingSection-DzEZScQO.js} +1 -1
  35. package/dist/public/assets/ManagedArtifactProperties-D66m8JEi.js +1 -0
  36. package/dist/public/assets/{ManagedArtifactProperties-D-YfW4j-.js → ManagedArtifactProperties-hfYg5-6i.js} +1 -1
  37. package/dist/public/assets/{MermaidDocEditor-1mwqQsnD.js → MermaidDocEditor-MIv7KZv3.js} +1 -1
  38. package/dist/public/assets/{NetworkAccessSection-BuxRMBmA.js → NetworkAccessSection-BCuxmoVW.js} +1 -1
  39. package/dist/public/assets/{ProjectTemplatesSection-CVxoKTpG.js → ProjectTemplatesSection-BPIa6vCf.js} +1 -1
  40. package/dist/public/assets/{PropertyDisplayRow-yGVlch8b.js → PropertyDisplayRow-985cBoeD.js} +1 -1
  41. package/dist/public/assets/PublishToGitHubDialog-5rf5f26y.js +1 -0
  42. package/dist/public/assets/{RegisteredAgentIcon-CNf09bvo.js → RegisteredAgentIcon-B86I4fPj.js} +1 -1
  43. package/dist/public/assets/{SchemaConfigEditor-BzGslOFy.js → SchemaConfigEditor-BUucWy8_.js} +1 -1
  44. package/dist/public/assets/{SearchSection-BOp5QJ1X.js → SearchSection-BzFkDyqq.js} +1 -1
  45. package/dist/public/assets/{SessionsHost-Ddekeq5j.js → SessionsHost-B6hl-W6e.js} +2 -2
  46. package/dist/public/assets/{SettingsDialogBody-CIKEwwYZ.js → SettingsDialogBody-B3ybsuOx.js} +2 -2
  47. package/dist/public/assets/{ShareReceiveMissDialog-DIWKJE-z.js → ShareReceiveMissDialog-B-YOLLM0.js} +1 -1
  48. package/dist/public/assets/{SkillCostValue-Br3p-1t8.js → SkillCostValue-D7i9jTwb.js} +1 -1
  49. package/dist/public/assets/{SkillForkDialog-HHZBdD9G.js → SkillForkDialog-BePu5Ab7.js} +1 -1
  50. package/dist/public/assets/{SkillInstallMenu-CYZkBfwA.js → SkillInstallMenu-ChTMNTo3.js} +1 -1
  51. package/dist/public/assets/{SkillOriginInline-DaVrUMXJ.js → SkillOriginInline-BIqEXUYx.js} +1 -1
  52. package/dist/public/assets/{SkillToolbarControls-CH9d-GJ6.js → SkillToolbarControls-E4QCWXxQ.js} +1 -1
  53. package/dist/public/assets/{SkillsManagerSection-D4vdwn-z.js → SkillsManagerSection-CcVBU5-5.js} +1 -1
  54. package/dist/public/assets/{SlidesPluginSection-CIIOqcY1.js → SlidesPluginSection-DuYQPOmz.js} +1 -1
  55. package/dist/public/assets/{SlidesToolbarControls-groMA2mx.js → SlidesToolbarControls-PbLGA15n.js} +1 -1
  56. package/dist/public/assets/SourceEditor-DNYR7CKG.js +1 -0
  57. package/dist/public/assets/{SpellingSettings-D5xCXWwh.js → SpellingSettings-Bk20lUSX.js} +1 -1
  58. package/dist/public/assets/{SyncSection-BqPvkYrh.js → SyncSection-DAj-Y4pM.js} +1 -1
  59. package/dist/public/assets/{SyncStatusBadge-CQGbhBoh.js → SyncStatusBadge-WyZgmb6D.js} +1 -1
  60. package/dist/public/assets/{TemplateRow-Z1Yy07aA.js → TemplateRow-BOTg2YrV.js} +1 -1
  61. package/dist/public/assets/{TerminalLaunchContext-DncO203O.js → TerminalLaunchContext-yYGkG_wD.js} +1 -1
  62. package/dist/public/assets/{TerminalPanel-D4_fMtJN.js → TerminalPanel-BSqB23c-.js} +1 -1
  63. package/dist/public/assets/{TerminalSection-D9j3AzZ8.js → TerminalSection-P_OJ8LrU.js} +1 -1
  64. package/dist/public/assets/{TerminalWindowApp-Nlkk0uhy.js → TerminalWindowApp-Dq_KzvrR.js} +1 -1
  65. package/dist/public/assets/{TextDocEditor-Dn6Zmt9g.js → TextDocEditor-BjIk7zxI.js} +1 -1
  66. package/dist/public/assets/{ThemePluginSection-CDwd2bcE.js → ThemePluginSection-m8Juee1X.js} +1 -1
  67. package/dist/public/assets/{ThreadView-BVhhnJ-D.js → ThreadView-E0-pZsPE.js} +5 -5
  68. package/dist/public/assets/{TimelineDiffPane-CaYSK_G9.js → TimelineDiffPane-BCirg-Ku.js} +1 -1
  69. package/dist/public/assets/{_envelope-DwyyiIO_-B2czcEJX.js → _envelope-q8XHEv4O-C-Qnl5Tu.js} +1 -1
  70. package/dist/public/assets/{agent-connections-Dj9-89rY.js → agent-connections-Ceoyy8dY.js} +1 -1
  71. package/dist/public/assets/{agent-registry-CUdBP9oP.js → agent-registry-BMw1B8Te.js} +1 -1
  72. package/dist/public/assets/{bridge-D0M08jrS.js → bridge-D7uDalkC.js} +1 -1
  73. package/dist/public/assets/{card-V6OFaQxm.js → card-BluRJrIS.js} +1 -1
  74. package/dist/public/assets/{catalog-eC0BYrwO.js → catalog-Cmn9-Gjm.js} +1 -1
  75. package/dist/public/assets/{client-version-YIaGkHg3.js → client-version-B-y3fQk6.js} +1 -1
  76. package/dist/public/assets/{comment-chips-jhpvkqG3.js → comment-chips-DKKh1Wi2.js} +2 -2
  77. package/dist/public/assets/{config-provider-wt-eT788.js → config-provider-D8_UrWWz.js} +1 -1
  78. package/dist/public/assets/config-schema-yQrjUXxd.js +1 -0
  79. package/dist/public/assets/{css-color-to-hex-9GaMLm_g.js → css-color-to-hex-Bzp4vTWU.js} +1 -1
  80. package/dist/public/assets/{doc-undo-manager-CKn0GNmD.js → doc-undo-manager-DTOg0O1B.js} +1 -1
  81. package/dist/public/assets/field-controls-Cwx83Wji.js +1 -0
  82. package/dist/public/assets/{field-controls-DrKhqiB3.js → field-controls-owKYZxR_.js} +1 -1
  83. package/dist/public/assets/{frontmatter-tags-BEkbJ1mW.js → frontmatter-tags-DRQIboHc.js} +1 -1
  84. package/dist/public/assets/{globals-GhMVb9g-.css → globals-vYef5b1j.css} +1 -1
  85. package/dist/public/assets/{handoff-Ccrokk1b.js → handoff-Dqe1NvVI.js} +1 -1
  86. package/dist/public/assets/index-DLKZwfmM.js +2205 -0
  87. package/dist/public/assets/{lint-config-client-D-AsWIBw.js → lint-config-client-BjslZut3.js} +1 -1
  88. package/dist/public/assets/{lint-plugins-PS-pvpHg.js → lint-plugins-IJ9ueIoq.js} +1 -1
  89. package/dist/public/assets/{markdown-lint-DQqFORQu.js → markdown-lint-DHBRQg5Y.js} +1 -1
  90. package/dist/public/assets/{markdownlint-rule-browser-DX9d-HpW.js → markdownlint-rule-browser-Cg9L-VTb.js} +1 -1
  91. package/dist/public/assets/{pending-receive-nav-store-DS1MFpUS.js → pending-receive-nav-store-Bk339Ry2.js} +1 -1
  92. package/dist/public/assets/{preferred-session-events-BohImAoE.js → preferred-session-events-_-dJd5Q5.js} +1 -1
  93. package/dist/public/assets/{progress-Yg6wjJXZ.js → progress-B1YifhRi.js} +2 -2
  94. package/dist/public/assets/{saved-themes-client-Cu2_CM_R.js → saved-themes-client-DrFMFctS.js} +1 -1
  95. package/dist/public/assets/{schema-section-BYiWkCRw.js → schema-section-ZwfGVrsG.js} +1 -1
  96. package/dist/public/assets/{schemas-api-DbKS2FSh.js → schemas-api-CzN0ZSyO.js} +1 -1
  97. package/dist/public/assets/{selection-context-DCjTbKcc.js → selection-context-CXnTKou6.js} +1 -1
  98. package/dist/public/assets/{skills-api-B9YEcMtk.js → skills-api-DZKblPpK.js} +1 -1
  99. package/dist/public/assets/{src-BlKShe2f.js → src-CRjeSyxi.js} +1 -1
  100. package/dist/public/assets/storage-scope-RkgOxsbY.js +1 -0
  101. package/dist/public/assets/{tag-pill-input-CMMRt7b4.js → tag-pill-input-C2esRppI.js} +1 -1
  102. package/dist/public/assets/{telemetry-impl-DyUfoRI5.js → telemetry-impl-BGHJxX__.js} +1 -1
  103. package/dist/public/assets/{telemetry-startup-CBFWjTxx.js → telemetry-startup-CqIGLqf1.js} +1 -1
  104. package/dist/public/assets/terminal-cli-display-CsSKkkvh.js +1 -0
  105. package/dist/public/assets/{terminal-command-events-Bi72Lcf-.js → terminal-command-events-gsyNmK4P.js} +1 -1
  106. package/dist/public/assets/{terminal-launch-events-C_GWUJjY.js → terminal-launch-events-0aq4jWnV.js} +1 -1
  107. package/dist/public/assets/{typing-burst-detector-AoKe0MDL.js → typing-burst-detector-BXH_c9PZ.js} +3 -3
  108. package/dist/public/assets/{uninstall-DmYSRh0o.js → uninstall-B-uEWMBM.js} +1 -1
  109. package/dist/public/assets/{use-activity-panel-BMEdR1X3.js → use-activity-panel-BfzIZAB_.js} +1 -1
  110. package/dist/public/assets/{use-apply-config-color-theme-D0H8BLH0.js → use-apply-config-color-theme-Ddh-kKyn.js} +1 -1
  111. package/dist/public/assets/{use-conflicts-WBuTv_RW.js → use-conflicts-BMDLXGd4.js} +1 -1
  112. package/dist/public/assets/{use-live-xterm-theme-B-M8VGC3.js → use-live-xterm-theme-M-20jT-Q.js} +1 -1
  113. package/dist/public/assets/{use-open-skill-BGcfScS3.js → use-open-skill-DvN-m1ye.js} +1 -1
  114. package/dist/public/assets/{use-semantic-search-status-T5fnhjCX.js → use-semantic-search-status-BkAAt8Ua.js} +1 -1
  115. package/dist/public/assets/{use-skill-origin-CGXvvIZH.js → use-skill-origin-CKhQalbz.js} +1 -1
  116. package/dist/public/assets/{use-skill-targets-ED9Nr02L.js → use-skill-targets-6h1qor3V.js} +1 -1
  117. package/dist/public/assets/{use-skills-NvVxu3-j.js → use-skills-CdEaAQQ2.js} +1 -1
  118. package/dist/public/assets/{use-terminal-enabled-Clk9RB7I.js → use-terminal-enabled-xuYKn-zp.js} +1 -1
  119. package/dist/public/assets/use-timeline-entry-diff-DhWXFbDg.js +7 -0
  120. package/dist/public/assets/{use-workspace-eebQ7TvN.js → use-workspace-DLSxs3j7.js} +1 -1
  121. package/dist/public/index.html +52 -52
  122. package/dist/public/uninstall.html +3 -3
  123. package/dist/{registry-probes-DIYwxxrc.mjs → registry-probes-DJmzCjem.mjs} +1 -1
  124. package/dist/{removal-file-path-B9iWj7sF.mjs → removal-file-path-D5mxCa9S.mjs} +1 -1
  125. package/dist/{repair-launch-json-DJw5KABu.mjs → repair-launch-json-VFb4aQfh.mjs} +1 -1
  126. package/dist/{repair-mcp-configs-Lhz6diCo.mjs → repair-mcp-configs-XpRJH2-z.mjs} +1 -1
  127. package/dist/{src-Q-CUD199.mjs → src-MRx7oPfu.mjs} +1 -1
  128. package/dist/src-txFqzl0c.mjs +1 -0
  129. package/dist/start-B2lITndM.mjs +1 -0
  130. package/dist/{start-dBavAaK1.mjs → start-Com2PFXp.mjs} +3 -3
  131. package/package.json +4 -4
  132. package/dist/constants-DTEw49n_.mjs +0 -1
  133. package/dist/dist-DO09Y6M7.mjs +0 -2212
  134. package/dist/init-BCPJ44g_.mjs +0 -1
  135. package/dist/loader-GhP_0TXH.mjs +0 -1
  136. package/dist/preview-DecaMgJQ.mjs +0 -1
  137. package/dist/public/assets/AddPropertiesButton-BNdd5YpU.js +0 -2
  138. package/dist/public/assets/DocumentContext-Vq5exN6M.js +0 -108
  139. package/dist/public/assets/FeedbackForm-DGMFJYzp.js +0 -1
  140. package/dist/public/assets/ManagedArtifactProperties-DJwhHmtz.js +0 -1
  141. package/dist/public/assets/PublishToGitHubDialog-NWv7w9ye.js +0 -1
  142. package/dist/public/assets/SourceEditor-B7tX_3Gf.js +0 -1
  143. package/dist/public/assets/config-schema-BRXEDN1T.js +0 -1
  144. package/dist/public/assets/field-controls-BXxM4mAl.js +0 -1
  145. package/dist/public/assets/index-D86yRVZ3.js +0 -2205
  146. package/dist/public/assets/storage-scope-DTSZLReS.js +0 -1
  147. package/dist/public/assets/terminal-cli-display-D_usGdw9.js +0 -1
  148. package/dist/public/assets/use-timeline-entry-diff-Dme0EKM6.js +0 -5
  149. package/dist/src-CgGYm6yQ.mjs +0 -1
  150. package/dist/start-ClF-6Z0E.mjs +0 -1
  151. /package/dist/public/assets/{globals-CK5VM2T4.js → globals-CXjhlGNL.js} +0 -0
@@ -1,4 +1,4 @@
1
- import"./_envelope-DwyyiIO_-B2czcEJX.js";function e(e){return`'${e.replace(/'/g,`'\\''`)}'`}function t(e){return[`--settings`,e]}var n=/['\u2018\u2019\u201A\u201B]/g;function r(e){return`'${e.replace(n,`$&$&`)}'`}function i(t,n){return n.length===0||/\p{Cc}/u.test(n)?null:t===`powershell`?r(n):t===`bash`?e(n):/["%!]/u.test(n)?null:`"${n}"`}var a=[`delete`,`move`,`share_link`,`install`,`import`];function o(e){return e.mcpServerName?e.mcpServerName:null}function s(e,t){return`mcp_servers.${e}.default_tools_approval_mode=${t}approve${t}`}function c(e){let t=o(e);if(t===null)return null;let n={};return e.mcpPreApprove===!0&&(n.enabledMcpjsonServers=[t]),e.autoApproveOkTools===!0&&(n.permissions={allow:[`mcp__${t}`,`Bash(ok open:*)`],ask:a.map(e=>`mcp__${t}__${e}`)}),n.enabledMcpjsonServers===void 0&&n.permissions===void 0?null:JSON.stringify(n)}function l(t){let n=c(t);return n===null?``:`--settings ${e(n)}`}var u=`\x1B`,d=`${u}[200~`,f=`${u}[201~`,p=`\x1B[?2004h`,m=300,h=4e3,ee={submit:`\r`,readyMarker:p,settleMs:800,capMs:4e3},g={claude:{bin:`claude`,displayName:`Claude`,docsUrl:`https://docs.claude.com/en/docs/claude-code`,handoffTarget:`claude-code`},codex:{bin:`codex`,displayName:`Codex`,docsUrl:`https://developers.openai.com/codex/cli`,handoffTarget:`codex`},copilot:{bin:`copilot`,displayName:`GitHub Copilot`,docsUrl:`https://docs.github.com/en/copilot/how-tos/copilot-cli/cli-getting-started`,handoffTarget:`copilot`,promptFlag:`--interactive`},cursor:{bin:`cursor-agent`,displayName:`Cursor`,docsUrl:`https://cursor.com/docs/cli/overview`,handoffTarget:`cursor`},opencode:{bin:`opencode`,displayName:`OpenCode`,docsUrl:`https://opencode.ai/docs`,handoffTarget:`opencode`,promptFlag:`--prompt`},pi:{bin:`pi`,displayName:`Pi`,docsUrl:`https://pi.dev`,handoffTarget:`pi`},antigravity:{bin:`agy`,displayName:`Antigravity`,docsUrl:`https://antigravity.google/docs/cli-getting-started`,handoffTarget:`antigravity`,promptFlag:`--prompt-interactive`},openclaw:{bin:`openclaw`,subcommand:`chat`,displayName:`OpenClaw`,docsUrl:`https://docs.openclaw.ai/cli/tui`,handoffTarget:`openclaw`,promptFlag:`--message`},hermes:{bin:`hermes`,subcommand:`chat`,displayName:`Hermes`,docsUrl:`https://hermes-agent.nousresearch.com/docs/user-guide/cli`,handoffTarget:`hermes`,startupInjection:{submit:`\r`,readyMarker:p,settleMs:m,capMs:h}}},_=[`claude`,`codex`,`opencode`,`cursor`,`copilot`,`pi`,`antigravity`,`openclaw`,`hermes`];function v(e,n,r={}){let i=g[e];if(e===`claude`){let e=c(r);if(e!==null){let n=`.ok/local/terminal/claude-settings-${[r.mcpPreApprove===!0?`mcp`:null,r.autoApproveOkTools===!0?`tools`:null].filter(e=>e!==null).join(`-`)}.json`;return{executable:i.bin,args:[...t(n)],supportFile:{kind:`claude-settings`,relativePath:n,contents:e}}}}let a=o(r);return e===`codex`&&r.autoApproveOkTools===!0&&a!==null?{executable:i.bin,args:[`-c`,s(a,``)]}:{executable:i.bin,args:i.subcommand?[i.subcommand]:[]}}function te(t,n,r={}){let i=g[t],a=o(r),c=t===`claude`?l(r):t===`codex`&&r.autoApproveOkTools===!0&&a!==null?`-c ${e(s(a,`"`))}`:``,u=c?`${c} `:``,d=i.subcommand?`${i.subcommand} `:``;if(i.startupInjection!=null||n==null||n.length===0)return`${i.bin} ${d}${u}`.trimEnd();let f=i.promptFlag?`${i.promptFlag} `:``;return`${i.bin} ${d}${u}${f}${e(n)}`}function y(e,t){return g[e].startupInjection??(t===`win32`?ee:void 0)}function ne(e,t,n){let r=y(e,n);return r==null||t==null||t.length===0?null:`${d}${t.replaceAll(u,``)}${f}${r.submit}`}function re(e,t){let n=encodeURIComponent(t.projectDir);if(t.prompt===``)return`claude://${e.mode}/new?folder=${n}`;let r=encodeURIComponent(t.prompt);return`claude://${e.mode}/new?q=${r}&folder=${n}`}function ie(e){let t=encodeURIComponent(e.projectDir);return e.prompt===``?`codex://new?path=${t}`:`codex://new?prompt=${encodeURIComponent(e.prompt)}&path=${t}`}function ae(e){let t=Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`));return t<0?e:e.substring(t+1)}function b(e){let t=encodeURIComponent(ae(e.projectDir));return e.prompt===``?`cursor://anysphere.cursor-deeplink/prompt?workspace=${t}&mode=agent`:`cursor://anysphere.cursor-deeplink/prompt?text=${encodeURIComponent(encodeURIComponent(e.prompt))}&workspace=${t}&mode=agent`}var oe=RegExp("[\\u0000-\\u001f\\u007f-\\u009f\\u200b-\\u200f\\u2028-\\u202e\\u2060-\\u2069\\ufeff`]+",`g`),x=RegExp("[ \\u00a0\\u0000-\\u001f\\u007f-\\u009f\\u200b-\\u200f\\u2028-\\u202e\\u2060-\\u2069\\ufeff`]+",`g`);function S(e){return e.replace(oe,`_`)}function C(e){return e.replace(x,`_`)}var w="This is an OpenKnowledge project: load the `open-knowledge` skill and use the OpenKnowledge MCP tools for all markdown — don't probe for `.ok/` or use native file tools on `.md` / `.mdx`.";function T(e){return`${w} ${e}`}var E=`You're running in the terminal of the OpenKnowledge desktop app.`,D=`You're an agent working inside OpenKnowledge, with its MCP tools available to you.`;function se(e){return`${D} ${w} ${e===null?`Then stop.`:`Read \`${S(e)}\` via the OpenKnowledge MCP server, then stop.`}`}function O(e){return`${E} ${w} ${e===null?`Then stop.`:`Read \`${S(e)}\` via the OpenKnowledge MCP server, then stop.`}`}function ce(e,t,n,r=`url`){let i=`Let's work on \`${S(e)}\` using OpenKnowledge.`;return K(t?`${i} Open the OK editor in web view.`:i,n,r)}function le(e,t,n){let r=`Use your open-knowledge-write-skill skill to author the ${t} Open Knowledge skill \`${S(e)}\`. Edit it with the Open Knowledge tools.`;return n?`${r} Open the OK editor in web view.`:r}function ue(e,t,n,r=`url`){let i=`Let's work on the \`${S(e)}\` folder using OpenKnowledge.`;return K(t?`${i} Open the OK editor in web view.`:i,n,r)}function de(e,t,n=`url`){let r=`Let's work on this project using OpenKnowledge.`;return K(e?`${r} Open the OK editor in web view.`:r,t,n)}function fe(e,t,n,r,i=`url`){let a=t?`Open the OK editor in web view.`:``,o=e=>a===``?e:e.includes(`
1
+ import"./_envelope-q8XHEv4O-C-Qnl5Tu.js";function e(e){return`'${e.replace(/'/g,`'\\''`)}'`}function t(e){return[`--settings`,e]}var n=/['\u2018\u2019\u201A\u201B]/g;function r(e){return`'${e.replace(n,`$&$&`)}'`}function i(t,n){return n.length===0||/\p{Cc}/u.test(n)?null:t===`powershell`?r(n):t===`bash`?e(n):/["%!]/u.test(n)?null:`"${n}"`}var a=[`delete`,`move`,`share_link`,`install`,`import`];function o(e){return e.mcpServerName?e.mcpServerName:null}function s(e,t){return`mcp_servers.${e}.default_tools_approval_mode=${t}approve${t}`}function c(e){let t=o(e);if(t===null)return null;let n={};return e.mcpPreApprove===!0&&(n.enabledMcpjsonServers=[t]),e.autoApproveOkTools===!0&&(n.permissions={allow:[`mcp__${t}`,`Bash(ok open:*)`],ask:a.map(e=>`mcp__${t}__${e}`)}),n.enabledMcpjsonServers===void 0&&n.permissions===void 0?null:JSON.stringify(n)}function l(t){let n=c(t);return n===null?``:`--settings ${e(n)}`}var u=`\x1B`,d=`${u}[200~`,f=`${u}[201~`,p=`\x1B[?2004h`,m=300,h=4e3,ee={submit:`\r`,readyMarker:p,settleMs:800,capMs:4e3},g={claude:{bin:`claude`,displayName:`Claude`,docsUrl:`https://docs.claude.com/en/docs/claude-code`,handoffTarget:`claude-code`},codex:{bin:`codex`,displayName:`Codex`,docsUrl:`https://developers.openai.com/codex/cli`,handoffTarget:`codex`},copilot:{bin:`copilot`,displayName:`GitHub Copilot`,docsUrl:`https://docs.github.com/en/copilot/how-tos/copilot-cli/cli-getting-started`,handoffTarget:`copilot`,promptFlag:`--interactive`},cursor:{bin:`cursor-agent`,displayName:`Cursor`,docsUrl:`https://cursor.com/docs/cli/overview`,handoffTarget:`cursor`},opencode:{bin:`opencode`,displayName:`OpenCode`,docsUrl:`https://opencode.ai/docs`,handoffTarget:`opencode`,promptFlag:`--prompt`},pi:{bin:`pi`,displayName:`Pi`,docsUrl:`https://pi.dev`,handoffTarget:`pi`},antigravity:{bin:`agy`,displayName:`Antigravity`,docsUrl:`https://antigravity.google/docs/cli-getting-started`,handoffTarget:`antigravity`,promptFlag:`--prompt-interactive`},openclaw:{bin:`openclaw`,subcommand:`chat`,displayName:`OpenClaw`,docsUrl:`https://docs.openclaw.ai/cli/tui`,handoffTarget:`openclaw`,promptFlag:`--message`},hermes:{bin:`hermes`,subcommand:`chat`,displayName:`Hermes`,docsUrl:`https://hermes-agent.nousresearch.com/docs/user-guide/cli`,handoffTarget:`hermes`,startupInjection:{submit:`\r`,readyMarker:p,settleMs:m,capMs:h}}},_=[`claude`,`codex`,`opencode`,`cursor`,`copilot`,`pi`,`antigravity`,`openclaw`,`hermes`];function v(e,n,r={}){let i=g[e];if(e===`claude`){let e=c(r);if(e!==null){let n=`.ok/local/terminal/claude-settings-${[r.mcpPreApprove===!0?`mcp`:null,r.autoApproveOkTools===!0?`tools`:null].filter(e=>e!==null).join(`-`)}.json`;return{executable:i.bin,args:[...t(n)],supportFile:{kind:`claude-settings`,relativePath:n,contents:e}}}}let a=o(r);return e===`codex`&&r.autoApproveOkTools===!0&&a!==null?{executable:i.bin,args:[`-c`,s(a,``)]}:{executable:i.bin,args:i.subcommand?[i.subcommand]:[]}}function te(t,n,r={}){let i=g[t],a=o(r),c=t===`claude`?l(r):t===`codex`&&r.autoApproveOkTools===!0&&a!==null?`-c ${e(s(a,`"`))}`:``,u=c?`${c} `:``,d=i.subcommand?`${i.subcommand} `:``;if(i.startupInjection!=null||n==null||n.length===0)return`${i.bin} ${d}${u}`.trimEnd();let f=i.promptFlag?`${i.promptFlag} `:``;return`${i.bin} ${d}${u}${f}${e(n)}`}function y(e,t){return g[e].startupInjection??(t===`win32`?ee:void 0)}function ne(e,t,n){let r=y(e,n);return r==null||t==null||t.length===0?null:`${d}${t.replaceAll(u,``)}${f}${r.submit}`}function re(e,t){let n=encodeURIComponent(t.projectDir);if(t.prompt===``)return`claude://${e.mode}/new?folder=${n}`;let r=encodeURIComponent(t.prompt);return`claude://${e.mode}/new?q=${r}&folder=${n}`}function ie(e){let t=encodeURIComponent(e.projectDir);return e.prompt===``?`codex://new?path=${t}`:`codex://new?prompt=${encodeURIComponent(e.prompt)}&path=${t}`}function ae(e){let t=Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`));return t<0?e:e.substring(t+1)}function b(e){let t=encodeURIComponent(ae(e.projectDir));return e.prompt===``?`cursor://anysphere.cursor-deeplink/prompt?workspace=${t}&mode=agent`:`cursor://anysphere.cursor-deeplink/prompt?text=${encodeURIComponent(encodeURIComponent(e.prompt))}&workspace=${t}&mode=agent`}var oe=RegExp("[\\u0000-\\u001f\\u007f-\\u009f\\u200b-\\u200f\\u2028-\\u202e\\u2060-\\u2069\\ufeff`]+",`g`),x=RegExp("[ \\u00a0\\u0000-\\u001f\\u007f-\\u009f\\u200b-\\u200f\\u2028-\\u202e\\u2060-\\u2069\\ufeff`]+",`g`);function S(e){return e.replace(oe,`_`)}function C(e){return e.replace(x,`_`)}var w="This is an OpenKnowledge project: load the `open-knowledge` skill and use the OpenKnowledge MCP tools for all markdown — don't probe for `.ok/` or use native file tools on `.md` / `.mdx`.";function T(e){return`${w} ${e}`}var E=`You're running in the terminal of the OpenKnowledge desktop app.`,D=`You're an agent working inside OpenKnowledge, with its MCP tools available to you.`;function se(e){return`${D} ${w} ${e===null?`Then stop.`:`Read \`${S(e)}\` via the OpenKnowledge MCP server, then stop.`}`}function O(e){return`${E} ${w} ${e===null?`Then stop.`:`Read \`${S(e)}\` via the OpenKnowledge MCP server, then stop.`}`}function ce(e,t,n,r=`url`){let i=`Let's work on \`${S(e)}\` using OpenKnowledge.`;return K(t?`${i} Open the OK editor in web view.`:i,n,r)}function le(e,t,n){let r=`Use your open-knowledge-write-skill skill to author the ${t} Open Knowledge skill \`${S(e)}\`. Edit it with the Open Knowledge tools.`;return n?`${r} Open the OK editor in web view.`:r}function ue(e,t,n,r=`url`){let i=`Let's work on the \`${S(e)}\` folder using OpenKnowledge.`;return K(t?`${i} Open the OK editor in web view.`:i,n,r)}function de(e,t,n=`url`){let r=`Let's work on this project using OpenKnowledge.`;return K(e?`${r} Open the OK editor in web view.`:r,t,n)}function fe(e,t,n,r,i=`url`){let a=t?`Open the OK editor in web view.`:``,o=e=>a===``?e:e.includes(`
2
2
  `)?[e,``,a].join(`
3
3
  `):`${e} ${a}`,s=e=>e.split(`
4
4
  `).map(e=>`> ${e}`).join(`