@inkeep/open-knowledge 0.61.0 → 0.61.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/{acp-harness-probe-BsWxmudQ.mjs → acp-harness-probe-DLN-ydKh.mjs} +2 -2
- package/dist/cli.mjs +61 -61
- package/dist/constants-BBUXK9MW.mjs +2 -0
- package/dist/{git-handle-v3HRk0k0.mjs → git-handle-BnzI58ud.mjs} +2 -2
- package/dist/git-handle-M-kQfBzM.mjs +1 -0
- package/dist/index.mjs +76 -76
- package/dist/{init-C3e2TKA7.mjs → init-C5pd7hUk.mjs} +4 -4
- package/dist/init-oCd8hAAp.mjs +1 -0
- package/dist/{launch-json-removal-C-UnIk4W.mjs → launch-json-removal-CrLD42cL.mjs} +2 -2
- package/dist/loader-CxnK-gJ7.mjs +1 -0
- package/dist/{loader-BkMj5ln_.mjs → loader-stWuu4Mn.mjs} +2 -2
- package/dist/md-manager-C7XAJMWr.mjs +2 -0
- package/dist/{open-browser-DD5VHxHl.mjs → open-browser-CB0sbYH4.mjs} +2 -2
- package/dist/parse-worker.mjs +1 -1
- package/dist/preview-7gt5pyCx.mjs +1 -0
- package/dist/{preview-CkyCU7z4.mjs → preview-CL9b4gT5.mjs} +2 -2
- package/dist/public/assets/{ActivityModeContent-DJkcYUFG.js → ActivityModeContent-rkVFPeGI.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-QpnE2RxP.js → AgentDiffPane-UM3yi_Jj.js} +1 -1
- package/dist/public/assets/{AgentThreadClientBinder-BNxw9YWy.js → AgentThreadClientBinder-DbKx5B2j.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-DlJxY2cd.js → CodeMirrorPropInput-SvCCpq_g.js} +1 -1
- package/dist/public/assets/{DocumentContext-BI0smsxZ.js → DocumentContext-BrlDlUx7.js} +1 -1
- package/dist/public/assets/{EditorModeToggle-DVfUE-Hx.js → EditorModeToggle-Coj-pKbp.js} +1 -1
- package/dist/public/assets/{EnableSyncConfirmDialog-CH3AktRr.js → EnableSyncConfirmDialog-CMQPWKxH.js} +1 -1
- package/dist/public/assets/{ExcalidrawDocEditor-HqU6SXrF.js → ExcalidrawDocEditor-Ct_C78n1.js} +1 -1
- package/dist/public/assets/FeedbackForm-cUkhA17t.js +1 -0
- package/dist/public/assets/{GraphPanel-MtHSCEEc.js → GraphPanel-C4IPsveQ.js} +1 -1
- package/dist/public/assets/{ImportSkillDialog-DqbRbXfG.js → ImportSkillDialog-BUIlH24A.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-DQQlzcbN.js → LintConfigEditor-Q1gGaOab.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-B4xOs3fA.js +1 -0
- package/dist/public/assets/{ManagedArtifactProperties-CPsIQVz8.js → ManagedArtifactProperties-DUIo-gDU.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-UIF1Y7PM.js → MermaidDocEditor-DBbbNWFO.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-BPCVo30u.js → PropertyDisplayRow-DfLhrMek.js} +1 -1
- package/dist/public/assets/{ReportBugDialogBody-BoQrLPkN.js → ReportBugDialogBody-D5SrIAvZ.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-D5aVltyV.js → SchemaConfigEditor-CkKt8e-E.js} +1 -1
- package/dist/public/assets/{SessionsHost-B0WtFo-7.js → SessionsHost-DxbKcTfw.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-Cbsyvnqh.js → SettingsDialogBody-BaPG44Cx.js} +1 -1
- package/dist/public/assets/{ShareBranchSwitchDialog-DxracRWc.js → ShareBranchSwitchDialog-BvkvEHCc.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-Cfp4wdzT.js → ShareReceiveDialog-C9KNKynH.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-DxcAaxnj.js → ShareReceiveMissDialog-CwqxBbfk.js} +1 -1
- package/dist/public/assets/{SkillCostValue-CDg_lpMT.js → SkillCostValue-BvB_BW1x.js} +1 -1
- package/dist/public/assets/{SkillEditBanner-BEG94SMV.js → SkillEditBanner-D0gTinuX.js} +1 -1
- package/dist/public/assets/{SkillInstallMenu-xkIcUjyz.js → SkillInstallMenu-Cb7qSrC0.js} +1 -1
- package/dist/public/assets/{SkillOriginInline-WxvVrIDh.js → SkillOriginInline-IRuhZu-j.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-BvIlOBgX.js → SkillToolbarControls-6i3dV6vs.js} +1 -1
- package/dist/public/assets/{SlidesToolbarControls-DMGLRgXN.js → SlidesToolbarControls-D5EykdNJ.js} +1 -1
- package/dist/public/assets/{SourceEditor-BoCr54OC.js → SourceEditor-p9dgTOkJ.js} +1 -1
- package/dist/public/assets/{TerminalPanel-B136_x01.js → TerminalPanel-cl3V5Lv6.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-C7xQ_h9C.js → TerminalWindowApp-BoxazHdg.js} +1 -1
- package/dist/public/assets/{TextDocEditor-DZYfekpd.js → TextDocEditor-DOoM8Kxy.js} +1 -1
- package/dist/public/assets/{ThreadView-DenCwvfW.js → ThreadView-BxvEDVSr.js} +1 -1
- package/dist/public/assets/{TimelineDiffPane-XlGr0GTw.js → TimelineDiffPane-BPuM41-O.js} +1 -1
- package/dist/public/assets/{agent-diff-store-BVPptGby.js → agent-diff-store-D7oOrlOa.js} +1 -1
- package/dist/public/assets/{auth-state-cache-DWZvELXg.js → auth-state-cache-1gTw3GkH.js} +1 -1
- package/dist/public/assets/{client-version-D2k9ZCWX.js → client-version-DPop7QlO.js} +1 -1
- package/dist/public/assets/{comment-chips-D_lOHAKs.js → comment-chips-BSXPyCs1.js} +1 -1
- package/dist/public/assets/{config-provider-CDwrJPp7.js → config-provider-CYqYSyJg.js} +1 -1
- package/dist/public/assets/{dist-Cjt7VASv2.js → dist-YRM6aCj22.js} +190 -190
- package/dist/public/assets/{doc-paths-B8neiW-a.js → doc-paths-DHGjMfMc.js} +1 -1
- package/dist/public/assets/{documents-events-XYcpMExe.js → documents-events-Dh2E-mNH.js} +1 -1
- package/dist/public/assets/{file-tree-adapter-D09K46if.js → file-tree-adapter-8KZtqBfU.js} +1 -1
- package/dist/public/assets/{file-tree-utils-D46TNM8I.js → file-tree-utils-mm4DWltG.js} +1 -1
- package/dist/public/assets/{folder-config-api-BF1s5fn5.js → folder-config-api-ReDuYJ0J.js} +1 -1
- package/dist/public/assets/i18n-BQpXlvfY.js +1 -0
- package/dist/public/assets/{index-DVAzmNmM.js → index-hC142Nnf.js} +7 -7
- package/dist/public/assets/{lint-config-client-CexP4XjM.js → lint-config-client-DDlKZf1J.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-RW_wnt3c.js → markdownlint-rule-browser-Cn61TsP6.js} +1 -1
- package/dist/public/assets/{navigation-targets-B81SRxAl.js → navigation-targets-CFQds_7M.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-ONxSWsRO.js → open-managed-artifact-tab-DI0a5-3C.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-EbqHz-1O.js → pending-receive-nav-store-BQWmsZRi.js} +1 -1
- package/dist/public/assets/{progress-BNa6s6eY.js → progress-DKgTQ0Qz.js} +1 -1
- package/dist/public/assets/{prop-types-Bi69iPbr.js → prop-types-aV6oiD-U.js} +1 -1
- package/dist/public/assets/{receive-store-DvP10j_m.js → receive-store-D1fi7HMJ.js} +1 -1
- package/dist/public/assets/{selection-context-BT0IXs_k.js → selection-context-4KGHvsgP.js} +1 -1
- package/dist/public/assets/{skill-actions-C6XMzsRk.js → skill-actions-BndTKw4P.js} +1 -1
- package/dist/public/assets/{skill-scope-D_Zsy3lJ.js → skill-scope-TpOVvXXj.js} +1 -1
- package/dist/public/assets/{skills-api-BM2BLHCX.js → skills-api-Ci4vZCl_.js} +1 -1
- package/dist/public/assets/{src-DMrqP3nT.js → src-Dyjlw1SL.js} +1 -1
- package/dist/public/assets/{tag-pill-input-BFaMBmJa.js → tag-pill-input-ltY20AtL.js} +1 -1
- package/dist/public/assets/{target-navigation-intent-CWvy9cE2.js → target-navigation-intent-Bq0cHa0H.js} +1 -1
- package/dist/public/assets/{terminal-cli-display-BbYqTPWX.js → terminal-cli-display-MwCkMfQx.js} +1 -1
- package/dist/public/assets/{terminal-launch-events-BPjoquS2.js → terminal-launch-events-cj2KCTDl.js} +1 -1
- package/dist/public/assets/{terminal-telemetry-DxMhdnxk.js → terminal-telemetry-ElOB2Hsl.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-B7DPFEEZ.js → typing-burst-detector-kXx1cN6a.js} +1 -1
- package/dist/public/assets/{uninstall-DDXNRWQJ.js → uninstall-CJfdIccl.js} +1 -1
- package/dist/public/assets/{use-activity-panel-CsxwP-4j.js → use-activity-panel-AklD6yAB.js} +1 -1
- package/dist/public/assets/{use-apply-config-color-theme-cAcJ-HL5.js → use-apply-config-color-theme-zpd8fyW1.js} +1 -1
- package/dist/public/assets/{use-collab-url-C79vcmVC.js → use-collab-url-BIoe0OLV.js} +1 -1
- package/dist/public/assets/{use-live-xterm-theme-D63CLflu.js → use-live-xterm-theme-BgtSx-n3.js} +1 -1
- package/dist/public/assets/{use-open-skill-BXh-h1Gy.js → use-open-skill-CLhiKLe2.js} +1 -1
- package/dist/public/assets/{use-popular-skills-Dzx69gvR.js → use-popular-skills-CSwbHrqM.js} +1 -1
- package/dist/public/assets/{use-settings-route-DT_sDrP6.js → use-settings-route-BuFQqdtV.js} +1 -1
- package/dist/public/assets/{use-skill-origin-djszP4BX.js → use-skill-origin-CbbiS8DZ.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-D8pfw24f.js → use-terminal-enabled-GezhypT9.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-CJndzyXq.js → use-timeline-entry-diff-DyOMjIES.js} +1 -1
- package/dist/public/assets/{use-workspace-DanpYgc9.js → use-workspace-C3C8xAY5.js} +1 -1
- package/dist/public/index.html +45 -45
- package/dist/public/uninstall.html +3 -3
- package/dist/{repair-launch-json-B5DX21CZ.mjs → repair-launch-json-DjnqUBMP.mjs} +2 -2
- package/dist/{repair-mcp-configs-CVIWl6jW.mjs → repair-mcp-configs-CpTDkONv.mjs} +2 -2
- package/dist/repair-skills-Bn47U59J.mjs +1 -0
- package/dist/{repair-skills-DTu-V4yJ.mjs → repair-skills-Cs-CbtpF.mjs} +2 -2
- package/dist/{resolve-project-root-CjlK19bg.mjs → resolve-project-root-BD_5TDzP.mjs} +3 -3
- package/dist/server-lock-CV9U-jz6.mjs +1 -0
- package/dist/{server-lock-D3OwE6nq.mjs → server-lock-DCzdk2Up.mjs} +2 -2
- package/dist/{skill-teardown-dynTQKdJ.mjs → skill-teardown-TMX-h8on.mjs} +2 -2
- package/dist/{src-DHb-7Uyw.mjs → src-BAp5xlph.mjs} +4 -4
- package/dist/{src-DRQtLkln.mjs → src-D28v5dI-.mjs} +1 -1
- package/dist/{src-UoW_X1C6.mjs → src-Dm-FGyIz.mjs} +130 -130
- package/dist/src-LTSxNEa8.mjs +1 -0
- package/dist/{src-DC0dXNgq.mjs → src-vJKK8Bgd.mjs} +407 -407
- package/dist/start-BPFyHeud.mjs +1 -0
- package/dist/{start-oVzTGPE4.mjs → start-HrTBO3iw.mjs} +3 -3
- package/package.json +5 -5
- package/dist/constants-sbVvNJ2y.mjs +0 -2
- package/dist/git-handle-DmslHvlR.mjs +0 -1
- package/dist/init-BtuME1S-.mjs +0 -1
- package/dist/loader-2ep7Tosd.mjs +0 -1
- package/dist/md-manager-7voOTrzM.mjs +0 -2
- package/dist/preview-Di00j3Ap.mjs +0 -1
- package/dist/public/assets/FeedbackForm-DfjQFt_o.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-DkmtIVIZ.js +0 -1
- package/dist/public/assets/i18n-DyGGRo1x.js +0 -1
- package/dist/repair-skills-DpzyUqvM.mjs +0 -1
- package/dist/server-lock-BZd8WJ5h.mjs +0 -1
- package/dist/src-BCkexI6W.mjs +0 -1
- package/dist/start-D-CmaUQE.mjs +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{ft as e}from"./sleep-DXvB05wr.mjs";import{ei as t}from"./src-
|
|
1
|
+
import{ft as e}from"./sleep-DXvB05wr.mjs";import{ei as t}from"./src-vJKK8Bgd.mjs";import{g as n,p as r,s as i}from"./resolve-project-root-BD_5TDzP.mjs";import{d as a}from"./init-C5pd7hUk.mjs";import{execFileSync as o,spawn as s}from"node:child_process";import{dirname as c,join as l,win32 as u}from"node:path";import{existsSync as d,mkdirSync as f,readFileSync as p,statSync as m,writeFileSync as h}from"node:fs";import{homedir as g}from"node:os";var _=e();const v=`open-knowledge`;function y(e){try{e()}catch{}}var b=class{backend=`keyring`;constructor(e){this.onKeychainRead=e}async get(e){let{Entry:t}=await import(`@napi-rs/keyring`),n;try{n=new t(v,e).getPassword()}catch(t){return y(()=>this.onKeychainRead?.({kind:`read-error`,host:e,error:t instanceof Error?t.name:`unknown`})),null}if(n==null)return y(()=>this.onKeychainRead?.({kind:`absent`,host:e})),null;try{return JSON.parse(n)}catch{return y(()=>this.onKeychainRead?.({kind:`corrupt-entry`,host:e,error:`corrupt-entry`})),null}}async set(e,t,n,r){let{Entry:i}=await import(`@napi-rs/keyring`),a=new i(v,e),o={login:t,token:n,...r};a.setPassword(JSON.stringify(o))}async clear(e){let{Entry:t}=await import(`@napi-rs/keyring`);try{new t(v,e).deletePassword()}catch{}}},x=class{backend=`file`;authFile;constructor(e){this.authFile=e??l(g(),`.ok`,`auth.yml`)}read(){if(!d(this.authFile))return{};try{return(0,_.parse)(p(this.authFile,`utf-8`))??{}}catch(e){let t=e instanceof Error?e.message:`unknown error`;return process.stderr.write(`[auth] Failed to parse ${this.authFile}: ${t}. Starting with empty credentials.\n`),{}}}write(e){let t=c(this.authFile);d(t)||f(t,{recursive:!0,mode:448}),h(this.authFile,(0,_.stringify)(e),{mode:384})}async get(e){return this.read()[e]??null}async set(e,t,n,r){let i=this.read();i[e]={login:t,token:n,...r},this.write(i)}async clear(e){let t=this.read();delete t[e],this.write(t)}},S=class{backend=`keyring`;constructor(e,t){this.keychain=e,this.file=t}async get(e){let t=await this.keychain.get(e);if(t!=null)return t;let n=await this.file.get(e);if(n==null)return null;try{await this.keychain.set(e,n.login,n.token,{gitProtocol:n.gitProtocol,name:n.name,email:n.email}),await this.file.clear(e),process.stderr.write(`[auth] migrated ${e} credential from ~/.ok/auth.yml to the OS keychain\n`)}catch{}return n}set(e,t,n,r){return this.keychain.set(e,t,n,r)}async clear(e){await this.keychain.clear(e),await this.file.get(e)!=null&&await this.file.clear(e)}};async function C(e,t){try{let{Entry:n}=await import(`@napi-rs/keyring`);return new n(v,`__probe__`),process.stderr.write(`[auth] token storage: OS keychain
|
|
2
2
|
`),y(()=>t?.onBackendSelected?.({backend:`keyring`})),new S(new b(t?.onKeychainRead),new x(e))}catch(n){let r=n instanceof Error?`${n.name}: ${n.message}`:String(n);return process.stderr.write(`[auth] token storage: file (~/.ok/auth.yml) — OS keychain unavailable: ${r}\n`),y(()=>t?.onBackendSelected?.({backend:`file`,reason:r})),new x(e)}}function w(e){let t=null;return function(){if(t)return t;let n=2e3;return t=(async()=>{let t=null,r=new Promise(r=>{t=setTimeout(()=>{process.stderr.write(`[auth] token storage: keyring init exceeded ${n}ms; falling back to file (~/.ok/auth.yml)\n`),r(new x(e))},n)});try{return await Promise.race([C(e),r])}catch{return new x(e)}finally{t!==null&&clearTimeout(t)}})(),t}}function T(e){let t=w(e);return{async get(e){let n=await(await t()).get(e);return n===null?null:{token:n.token}}}}function E(e){let t=w(e);return{backend:`file`,async get(e){return(await t()).get(e)},async set(e,n,r,i){return(await t()).set(e,n,r,i)},async clear(e){return(await t()).clear(e)}}}async function D(e,t){let n=[],r=new x(t);await r.get(e)!=null&&(await r.clear(e),n.push(`file`));let i;try{let{Entry:t}=await import(`@napi-rs/keyring`);new t(v,`__probe__`);let r,a=await new b(e=>{e.kind===`read-error`&&(r=e.error??`read-error`)}).get(e);if(r!==void 0)i=r;else if(a!=null)try{new t(v,e).deletePassword(),n.push(`keychain`)}catch(e){i=e instanceof Error?e.name:`delete-error`}}catch{}return{touched:n,keychainError:i}}const O=[`/opt/homebrew/bin/gh`,`/usr/local/bin/gh`,`/opt/local/bin/gh`,`/snap/bin/gh`,`/usr/bin/gh`],k={encoding:`utf-8`,stdio:[`ignore`,`pipe`,`pipe`],timeout:5e3,windowsHide:!0};function A(e,t={}){let n=t._exec??o,r=t._fileExists??d,i=[`auth`,`token`,...e?[`--hostname`,e]:[]],a=[`gh`,...O.filter(r)];for(let e of a)try{let t=n(e,i,k).toString().trim();if(t.length>0)return{available:!0,token:t}}catch{}return{available:!1}}function j(e){let t={...e};return delete t.ELECTRON_RUN_AS_NODE,t}function M(e){let t=e?.code;return t===`ENOENT`||t===`EACCES`||t===`EPERM`?{ok:!1,reason:`not-installed`}:{ok:!1,reason:`spawn-error`}}function N(e){return t({detached:!0,stdio:`ignore`,shell:!1,env:j(e)})}function P(e,t,n={}){let r=(n.spawn??s)(e,[...t],N(n.env??process.env));return r.unref(),r}function F(e,t,n={}){let r=n.spawn??s,i=n.timeoutMs??2e3;return new Promise(a=>{let o=!1,s=e=>{o||(o=!0,a(e))},c=setTimeout(()=>s({ok:!1,reason:`timeout`}),i);try{let i=r(e,[...t],N(n.env??process.env));i.once(`error`,e=>{clearTimeout(c),s(M(e))}),i.once(`spawn`,()=>{clearTimeout(c),s({ok:!0})});try{i.unref()}catch{}}catch(e){clearTimeout(c),s(M(e))}})}const I=`com.inkeep.open-knowledge`,L=`OpenKnowledge.app`,R=`/Applications/${L}`;function z(){return{platform:process.platform,env:process.env,execPath:process.execPath,isTTY:process.stdout.isTTY,statSync:e=>{try{return m(e,{throwIfNoEntry:!1})??null}catch{return null}}}}function B(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`){let t=/(.+?\.app)\/Contents\/MacOS\//.exec(e.execPath);if(t?.[1])return t[1]}if(V(e,R))return R;let t=l(e.homeDir??g(),`Applications`,L);return V(e,t)?t:null}function V(e,t){return H(e,l(t,`Contents`,`MacOS`,`OpenKnowledge`))}function H(e,t){try{let n=e.statSync(t);return n&&typeof n.isFile==`function`?n.isFile():!1}catch{return!1}}const U=[`@inkeepopen-knowledge-desktop`,`OpenKnowledge`];function W(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`&&/\\OpenKnowledge\.exe$/i.test(e.execPath))return e.execPath;let t=e.env.LOCALAPPDATA;if(t)for(let n of U){let r=u.join(t,`Programs`,n,`OpenKnowledge.exe`);if(H(e,r))return r}return null}function G(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`&&e.execPath.endsWith(`/openknowledge`))return e.execPath;let t=`/opt/OpenKnowledge/openknowledge`;return H(e,t)?t:null}function K(e){if(e.env.OK_FORCE_BROWSER===`1`)return{available:!1,reason:`force-browser`};if(e.platform!==`darwin`&&e.platform!==`win32`&&e.platform!==`linux`)return{available:!1,reason:`unsupported-platform`};let t;try{t=e.platform===`darwin`?B(e):e.platform===`win32`?W(e):G(e)}catch{return{available:!1,reason:`stat-error`}}return t?e.env.OK_FORCE_DESKTOP===`1`?{available:!0,reason:`available`,bundlePath:t}:!(e.isTTY===!0||e.platform===`win32`&&e.isTTY===void 0&&!e.env.CI)||e.env.SSH_CONNECTION||e.env.SSH_TTY||e.platform===`linux`&&!e.env.DISPLAY&&!e.env.WAYLAND_DISPLAY?{available:!1,reason:`headless`,bundlePath:t}:{available:!0,reason:`available`,bundlePath:t}:{available:!1,reason:`no-bundle`}}function q(e,t){let n=e.log??(e=>console.error(e)),r=e.platform??process.platform;if(n("Launching OpenKnowledge desktop (use `ok start` for the browser server, or `OK_FORCE_BROWSER=1` to always skip)"),r===`darwin`){P(`open`,[`-b`,I],{spawn:e.spawn});return}let i=t?.bundlePath;if(!i){n(`Desktop launch skipped: no resolved desktop executable (caller bug).`);return}P(i,[],{spawn:e.spawn})}function J(e=`no-bundle`){switch(e){case`no-bundle`:return`Desktop app not found (checked the standard install locations for this OS). Install it from https://openknowledge.ai/download, or omit --mode for browser mode.`;case`darwin-only`:case`unsupported-platform`:return`Desktop app is not available on this platform. Use --mode=browser, or omit --mode for the server fallback.`;case`headless`:return`Desktop launch is gated in headless contexts (CI, SSH, non-TTY stdout). Set OK_FORCE_DESKTOP=1 to override, or use --mode=browser.`;case`force-browser`:return`OK_FORCE_BROWSER=1 is set — desktop dispatch is disabled. Unset it to use --mode=app.`;case`stat-error`:return`Failed to inspect the desktop install (filesystem error). Check permissions or use --mode=browser.`;case`available`:return`Desktop app appears available but launch dispatch did not fire (caller bug).`}}function Y(e,t,o){let s=i[e],c=e===`opencode`?n:r,l=[],u=s.projectConfigPath?.(t);u!==void 0&&l.push({scope:`project`,configPath:u});try{l.push({scope:`user`,configPath:s.configPath(t,o)})}catch{}for(let n of l){let r=a(s,t,o,n.configPath);if(r!==null&&c(r))return{editorId:e,scope:n.scope,configPath:n.configPath}}return null}export{q as a,F as c,C as d,T as f,K as i,A as l,I as n,J as o,E as p,z as r,P as s,Y as t,D as u};
|
|
3
|
-
//# sourceMappingURL=acp-harness-probe-
|
|
3
|
+
//# sourceMappingURL=acp-harness-probe-DLN-ydKh.mjs.map
|