@hostclubeos/miraos 0.0.4-beta → 0.0.6-beta

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 (113) hide show
  1. package/bundled/bug-hunter/SKILL.md +7 -0
  2. package/chunks/{acpAgent-F4OT4AQQ.js → acpAgent-OGBFWA5R.js} +2 -2
  3. package/chunks/{chunk-BX3KM7OK.js → chunk-2PB6TEZU.js} +1 -1
  4. package/chunks/{chunk-7LXU4NUI.js → chunk-34YXJ3CX.js} +1 -1
  5. package/chunks/{chunk-WDLXS4A3.js → chunk-3GA3NTAV.js} +3 -3
  6. package/chunks/{chunk-4TJKJ2LG.js → chunk-5JKJSIIP.js} +1 -1
  7. package/chunks/{chunk-FUIRLSNA.js → chunk-7JT2V4AW.js} +1 -1
  8. package/chunks/{chunk-C24YTZET.js → chunk-BB2C4HKQ.js} +1 -1
  9. package/chunks/{chunk-AXBNQS6C.js → chunk-F2XELUO3.js} +1 -1
  10. package/chunks/{chunk-BZMSTSKY.js → chunk-GPI53DWB.js} +1 -1
  11. package/chunks/{chunk-AYU4PDSQ.js → chunk-HHSHBOT7.js} +2 -2
  12. package/chunks/{chunk-TIWH3MUJ.js → chunk-HMID4D72.js} +1 -1
  13. package/chunks/{chunk-JM46SKXF.js → chunk-IC2WDA6V.js} +1 -1
  14. package/chunks/{chunk-HPGUQCRQ.js → chunk-JRPR5IME.js} +1 -1
  15. package/chunks/{chunk-ECNTMKHI.js → chunk-ORVQPZMQ.js} +1 -1
  16. package/chunks/{chunk-5SJFYZQJ.js → chunk-RGVXNWZA.js} +1 -1
  17. package/chunks/{chunk-LISKSG7B.js → chunk-SHLTP6ZB.js} +1 -1
  18. package/chunks/{chunk-D3QZNIFB.js → chunk-SOCXRMZM.js} +4 -4
  19. package/chunks/{chunk-PUPIORBU.js → chunk-TI7J4HX2.js} +1 -1
  20. package/chunks/{chunk-CKBEAZAV.js → chunk-VGPV5AVJ.js} +1 -1
  21. package/chunks/{chunk-33G7MOU6.js → chunk-Y3BCVTFB.js} +1 -1
  22. package/chunks/{chunk-4XV2522J.js → chunk-YVORE4W4.js} +1 -1
  23. package/chunks/{daemon-status-provider-NBPLE4JN.js → daemon-status-provider-FCQ4YYAY.js} +1 -1
  24. package/chunks/{fast-path-66F2TWKE.js → fast-path-ZBD7IYQM.js} +1 -1
  25. package/chunks/{llm-LZ3HARC2.js → llm-DQNQEAFW.js} +3 -3
  26. package/chunks/{local-6KBSW7N2.js → local-ZRC4XZCJ.js} +1 -1
  27. package/chunks/{managed-local-serve-2N3IAB3D.js → managed-local-serve-B2KOLPB5.js} +1 -1
  28. package/chunks/{managed-runtime-bootstrap-M4P43K7W.js → managed-runtime-bootstrap-MREL5UC2.js} +1 -1
  29. package/chunks/{managed-runtime-ssh-worker-WWZ7SJ7U.js → managed-runtime-ssh-worker-GUKAZFAJ.js} +1 -1
  30. package/chunks/{memory-D62BXIJW.js → memory-ZYPCFYPF.js} +1 -1
  31. package/chunks/{nonInteractiveCli-Z4A7THMG.js → nonInteractiveCli-JG6PKBAD.js} +1 -1
  32. package/chunks/{review-LM7KW6Y5.js → review-N3VFZQMI.js} +1 -1
  33. package/chunks/{run-qwen-serve-77UZS4JA.js → run-qwen-serve-4MZRQFXK.js} +1 -1
  34. package/chunks/{serve-RHO7RZ45.js → serve-EQN6QAXF.js} +1 -1
  35. package/chunks/{server-5HEOZG3T.js → server-CCEHAI25.js} +1 -1
  36. package/chunks/{session-RT7VH6GE.js → session-HNUJSV5A.js} +1 -1
  37. package/chunks/{start-opentui-ui-I2XXWTJS.js → start-opentui-ui-6MCAEWAW.js} +1 -1
  38. package/chunks/{startInteractiveUI-774LJIJD.js → startInteractiveUI-657JWOTK.js} +1 -1
  39. package/chunks/{validateNonInterActiveAuth-633WYCVH.js → validateNonInterActiveAuth-CP5WFNAE.js} +1 -1
  40. package/chunks/{version-77KBVA2F.js → version-SIM74L5K.js} +1 -1
  41. package/cli.js +1 -1
  42. package/export-transcript-document.js +1 -1
  43. package/package.json +3 -3
  44. package/web-shell/assets/{PierreFilePreview-DEhWK46v.js → PierreFilePreview-Dkt6iPte.js} +1 -1
  45. package/web-shell/assets/SpreadsheetPreview-I4yiL7q3.js +1 -0
  46. package/web-shell/assets/{WorkspaceFileBrowser-64vDYikf.js → WorkspaceFileBrowser-Du9bMpNo.js} +1 -1
  47. package/web-shell/assets/{abnfDiagram-VCTEODGH-C2WWURam.js → abnfDiagram-VCTEODGH-CGY1lCxS.js} +1 -1
  48. package/web-shell/assets/{agents-route-j5ba59xn.js → agents-route-kcQ3YUNc.js} +1 -1
  49. package/web-shell/assets/{arc-Bkr_-GVn.js → arc-BUMNyJDV.js} +1 -1
  50. package/web-shell/assets/{architectureDiagram-5GKGNRK7-D_v_wDDW.js → architectureDiagram-5GKGNRK7-CEfXhEKD.js} +1 -1
  51. package/web-shell/assets/{blockDiagram-NRAW4CY4-Csxc3YNo.js → blockDiagram-NRAW4CY4-BH8hjvlX.js} +1 -1
  52. package/web-shell/assets/{c4Diagram-UCG6FXSJ-PXryoJCB.js → c4Diagram-UCG6FXSJ-Dfl946ex.js} +1 -1
  53. package/web-shell/assets/channel-CoZByzPk.js +1 -0
  54. package/web-shell/assets/{chunk-2Q5K7J3B-DwK5UBHI.js → chunk-2Q5K7J3B-CBvGm-pD.js} +1 -1
  55. package/web-shell/assets/{chunk-5VM5RSS4-BC1hvD6_.js → chunk-5VM5RSS4-k06tGOfl.js} +1 -1
  56. package/web-shell/assets/{chunk-F27PBJKO-iFe0IxfJ.js → chunk-F27PBJKO-Dv4S4vSq.js} +1 -1
  57. package/web-shell/assets/{chunk-G27WJ6UU-ROSuKRxI.js → chunk-G27WJ6UU-7LY0yu3f.js} +1 -1
  58. package/web-shell/assets/{chunk-JWPE2WC7-CYHS6PxA.js → chunk-JWPE2WC7-B-CgVEuJ.js} +1 -1
  59. package/web-shell/assets/{chunk-LCL6LL3I-D5bFMqCy.js → chunk-LCL6LL3I-D0TrWx1f.js} +1 -1
  60. package/web-shell/assets/{chunk-POPQ4Y6H-BJh77MGv.js → chunk-POPQ4Y6H-B97ZANlR.js} +1 -1
  61. package/web-shell/assets/{chunk-SVP7TREG-Cs81aYft.js → chunk-SVP7TREG-2CO_3G76.js} +1 -1
  62. package/web-shell/assets/{chunk-XXDRQBXY-DqDbN44E.js → chunk-XXDRQBXY-CFbSHjzz.js} +1 -1
  63. package/web-shell/assets/classDiagram-DTDB5LWJ-BgKRvG5r.js +1 -0
  64. package/web-shell/assets/classDiagram-v2-JRS7N3AN-BgKRvG5r.js +1 -0
  65. package/web-shell/assets/{cose-bilkent-JH36ORCC-DhjrwADJ.js → cose-bilkent-JH36ORCC-K-uc8eFw.js} +1 -1
  66. package/web-shell/assets/{cynefin-OW5HDTMX-Dh7t-_3M.js → cynefin-OW5HDTMX-Cb0lt2G3.js} +1 -1
  67. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-5J4kto0C.js → cynefinDiagram-5FMLGOSQ-DWkqpFuH.js} +1 -1
  68. package/web-shell/assets/{dagre-3AP2YEHR-28AdbIcl.js → dagre-3AP2YEHR-Cs8gu3Q4.js} +1 -1
  69. package/web-shell/assets/{diagram-S7CK7UJ4-DmksuoIf.js → diagram-S7CK7UJ4-DlMLXUgK.js} +1 -1
  70. package/web-shell/assets/{diagram-UQ7AKVKN-DUjgQ8Fg.js → diagram-UQ7AKVKN-68PPYL92.js} +1 -1
  71. package/web-shell/assets/{diagram-VSXAHHWV-DUe_FpG-.js → diagram-VSXAHHWV-CxIdRSbx.js} +1 -1
  72. package/web-shell/assets/{diagram-VX7I27RA-CJJ70teK.js → diagram-VX7I27RA-G3C0kWVW.js} +1 -1
  73. package/web-shell/assets/{diagram-Z3DM3KII-BgABlJO4.js → diagram-Z3DM3KII-CwEuAgyS.js} +1 -1
  74. package/web-shell/assets/{docx-preview-BMBWboRx.js → docx-preview-3XzkP9iR.js} +1 -1
  75. package/web-shell/assets/{ebnfDiagram-PWID7BFC-B3nK_Lh7.js → ebnfDiagram-PWID7BFC-DLeMX1Ka.js} +1 -1
  76. package/web-shell/assets/{erDiagram-SSCWMZ5O-DCTdCWlu.js → erDiagram-SSCWMZ5O-CoQLSOGk.js} +1 -1
  77. package/web-shell/assets/{flowDiagram-A5DVABFB-CPxk2UUl.js → flowDiagram-A5DVABFB-BXUV-Qml.js} +1 -1
  78. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-WZzMAKht.js → ganttDiagram-EL5Y4UJY-sWi6Lowi.js} +1 -1
  79. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-DKcO5ugU.js → gitGraphDiagram-WWUBYQGX-Dsh4-kB4.js} +1 -1
  80. package/web-shell/assets/{index-CkRLMu1y.js → index-CrSq-SfJ.js} +6 -6
  81. package/web-shell/assets/{index-Dbm3-Fps.js → index-DjwWlZt0.js} +1 -1
  82. package/web-shell/assets/{infoDiagram-RXCK75RN-CJX5DzdL.js → infoDiagram-RXCK75RN-JZ6nFIgB.js} +1 -1
  83. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-fF0Id5B6.js → ishikawaDiagram-5VMMS53U-qJj-sQFs.js} +1 -1
  84. package/web-shell/assets/{journeyDiagram-EYS64GPL-BOAezBVe.js → journeyDiagram-EYS64GPL-Ck0jv8SO.js} +1 -1
  85. package/web-shell/assets/{kanban-definition-3QL26DDD-DdNBof9J.js → kanban-definition-3QL26DDD-Ck6_Ydmt.js} +1 -1
  86. package/web-shell/assets/{layout-CXX3l5w0.js → layout-yLaSulE8.js} +1 -1
  87. package/web-shell/assets/{linear-Dnaccp-S.js → linear-CXw5rE6U.js} +1 -1
  88. package/web-shell/assets/{mermaid.core-BzdC3B6T.js → mermaid.core-6WQsyLcq.js} +6 -6
  89. package/web-shell/assets/{mindmap-definition-FBJOCRG2-D-gMUzLw.js → mindmap-definition-FBJOCRG2-BDAmAz8h.js} +1 -1
  90. package/web-shell/assets/{pegDiagram-XKGWAZYB-B9n1WVZq.js → pegDiagram-XKGWAZYB-Rvn5mpol.js} +1 -1
  91. package/web-shell/assets/{pieDiagram-E7YTZNPT-ok49U0zT.js → pieDiagram-E7YTZNPT-DHw4avFL.js} +1 -1
  92. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-DJKha-v3.js → quadrantDiagram-AXDQQJYC-vch6jDK-.js} +1 -1
  93. package/web-shell/assets/{railroadDiagram-O6MQD6OU-DjL4pl7y.js → railroadDiagram-O6MQD6OU-DfVCzYpO.js} +1 -1
  94. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BpmmRw3A.js → requirementDiagram-EFPCY7ZU-BQAnwpSv.js} +1 -1
  95. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-KpteHB8X.js → sankeyDiagram-P5KCCOFB-fJuxdbbi.js} +1 -1
  96. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-COMghCpA.js → sequenceDiagram-WJ2MYXX4-B3TtvHJp.js} +1 -1
  97. package/web-shell/assets/{sizeCapture-X5ZJPWSS-5fEwJD-n.js → sizeCapture-X5ZJPWSS-DlJmbcZd.js} +1 -1
  98. package/web-shell/assets/{stateDiagram-HBIQ2CUA-CnC7oXvs.js → stateDiagram-HBIQ2CUA--0kiPvGS.js} +1 -1
  99. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Dw-ppcvp.js +1 -0
  100. package/web-shell/assets/{swimlanes-XN3QIQJK-bVlhZdve.js → swimlanes-XN3QIQJK-CAytfKbo.js} +1 -1
  101. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-B36XZQuh.js +8 -0
  102. package/web-shell/assets/{timeline-definition-24CTP7MA-CBvYgMu5.js → timeline-definition-24CTP7MA-C-BUmwu6.js} +1 -1
  103. package/web-shell/assets/{vennDiagram-4TSXK5OY-CUTYvV1j.js → vennDiagram-4TSXK5OY-W_dgEGv2.js} +1 -1
  104. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-Djl4gxCB.js → wardleyDiagram-VM6X3IG4-ikAv1QJ9.js} +1 -1
  105. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-BcJZtI2X.js → xychartDiagram-S5SC5T6Z-BmY9Ily6.js} +1 -1
  106. package/web-shell/index.html +1 -1
  107. package/web-shell/sw.js +1 -1
  108. package/web-shell/assets/SpreadsheetPreview-C-GgIuPX.js +0 -1
  109. package/web-shell/assets/channel-6Pj4KPAs.js +0 -1
  110. package/web-shell/assets/classDiagram-DTDB5LWJ-BaTUuuB8.js +0 -1
  111. package/web-shell/assets/classDiagram-v2-JRS7N3AN-BaTUuuB8.js +0 -1
  112. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-V_cfZFBL.js +0 -1
  113. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-25wVg0WL.js +0 -8
@@ -1,6 +1,6 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
- import{GIT_COMMIT_INFO}from"./chunk-JM46SKXF.js";import{formatAuxModelSelectorForDisplay}from"./chunk-L42NTHIT.js";import{getCliVersion}from"./chunk-4XV2522J.js";import{IdeClient}from"./chunk-PFKTTUGS.js";import{formatMemoryUsage}from"./chunk-NTRFETZB.js";import{createDebugLogger}from"./chunk-46KPDLFH.js";import{init_esbuild_shims}from"./chunk-VKDAXTCZ.js";import{__name}from"./chunk-KBWJGX7I.js";init_esbuild_shims();init_esbuild_shims();function formatExecutionSandbox(config){const policy=config?.getShellExecutionSandbox?.();if(!policy)return void 0;const effective=policy.effectiveBackend??"unresolved";const enforcement=policy.enforcement?` (${policy.enforcement}${policy.landlockAbi?`, ABI ${policy.landlockAbi}`:""})`:"";return`tools / ${policy.requestedBackend??"auto"} \u2192 ${effective}${enforcement} / ${policy.filesystem} / command network: ${policy.network}`}__name(formatExecutionSandbox,"formatExecutionSandbox");import process from"node:process";import os from"node:os";import{execFile}from"node:child_process";var debugLogger=createDebugLogger("STATUS");var VERSION_PROBE_TIMEOUT_MS=5e3;function probeVersion(binary){return new Promise(resolve=>{execFile(binary,["--version"],{timeout:VERSION_PROBE_TIMEOUT_MS,encoding:"utf-8"},(err,stdout)=>{if(err){resolve("unknown");return}resolve(typeof stdout==="string"?stdout.trim():"unknown")})})}__name(probeVersion,"probeVersion");async function getNpmVersion(){return probeVersion("npm")}__name(getNpmVersion,"getNpmVersion");async function getGitVersion(){return probeVersion("git")}__name(getGitVersion,"getGitVersion");async function getIdeClientName(context){if(!context.services.config?.getIdeMode()){return""}try{const ideClient=await IdeClient.getInstance();return ideClient?.getDetectedIdeDisplayName()??""}catch{return""}}__name(getIdeClientName,"getIdeClientName");function getSandboxEnv(stripPrefix=false){const sandbox=process.env["SANDBOX"];if(!sandbox||sandbox==="sandbox-exec"){if(sandbox==="sandbox-exec"){const profile=process.env["SEATBELT_PROFILE"]||"unknown";return`sandbox-exec (${profile})`}return"no sandbox"}if(stripPrefix){return sandbox.replace(/^qwen-(?:code-)?/,"")}return sandbox}__name(getSandboxEnv,"getSandboxEnv");async function getSystemInfo(context){const osPlatform=process.platform;const osArch=process.arch;const osRelease=os.release();const nodeVersion=process.version;const executionSandbox=formatExecutionSandbox(context.services.config);const npmVersion=executionSandbox?"not probed (tool execution sandbox active)":await getNpmVersion();const sandboxEnv=executionSandbox??getSandboxEnv();const modelVersion=context.services.config?.getModel()||"Unknown";const cliVersion=await getCliVersion();const selectedAuthType=context.services.config?.getAuthType()||"";const ideClient=await getIdeClientName(context);const sessionId=context.services.config?.getSessionId()||"unknown";const proxy=context.services.config?.getProxy();return{cliVersion,osPlatform,osArch,osRelease,nodeVersion,npmVersion,sandboxEnv,modelVersion,selectedAuthType,ideClient,sessionId,proxy}}__name(getSystemInfo,"getSystemInfo");async function getExtendedSystemInfo(context){const baseInfo=await getSystemInfo(context);const memoryUsage=formatMemoryUsage(process.memoryUsage().rss);const sandboxEnv=formatExecutionSandbox(context.services.config)??getSandboxEnv(true);const contentGeneratorConfig=baseInfo.selectedAuthType==="openai"||baseInfo.selectedAuthType==="openai-responses"||baseInfo.selectedAuthType==="anthropic"?context.services.config?.getContentGeneratorConfig():void 0;const baseUrl=contentGeneratorConfig?.baseUrl;const apiKeyEnvKey=contentGeneratorConfig?.apiKeyEnvKey;const gitCommit=GIT_COMMIT_INFO&&!["N/A"].includes(GIT_COMMIT_INFO)?GIT_COMMIT_INFO:void 0;const fastModelSetting=context.services.settings?.merged?.fastModel||void 0;const fastModel=fastModelSetting?formatAuxModelSelectorForDisplay(fastModelSetting):void 0;const lspStatus=getLspStatus(context);return{...baseInfo,sandboxEnv,memoryUsage,baseUrl,apiKeyEnvKey,gitCommit,fastModel,lspStatus}}__name(getExtendedSystemInfo,"getExtendedSystemInfo");function getLspStatus(context){try{const snapshot=context.services.config?.getLspStatusSnapshot?.();if(!snapshot){return void 0}if(context.services.config?.getDebugMode?.()){debugLogger.debug("LSP status snapshot for /status:",snapshot)}return formatLspStatusSnapshot(snapshot)}catch(error){if(context.services.config?.getDebugMode?.()){debugLogger.debug("Unable to read LSP status snapshot for /status:",error)}return void 0}}__name(getLspStatus,"getLspStatus");function formatLspStatusSnapshot(snapshot){if(!snapshot.enabled){return"disabled"}if(snapshot.initializationError){return`enabled, initialization failed: ${snapshot.initializationError}`}if(snapshot.statusUnavailable){return"enabled, status unavailable"}if(snapshot.configuredServers===0){return"enabled, no servers configured"}const details=[snapshot.failedServers>0?`${snapshot.failedServers} failed`:"",snapshot.inProgressServers>0?`${snapshot.inProgressServers} starting`:"",snapshot.notStartedServers>0?`${snapshot.notStartedServers} not started`:""].filter(Boolean);const detailText=details.length>0?` (${details.join(", ")})`:"";return`enabled, ${snapshot.readyServers}/${snapshot.configuredServers} ready${detailText}`}__name(formatLspStatusSnapshot,"formatLspStatusSnapshot");export{formatExecutionSandbox,getNpmVersion,getGitVersion,getExtendedSystemInfo};
3
+ import{GIT_COMMIT_INFO}from"./chunk-IC2WDA6V.js";import{formatAuxModelSelectorForDisplay}from"./chunk-L42NTHIT.js";import{getCliVersion}from"./chunk-YVORE4W4.js";import{IdeClient}from"./chunk-PFKTTUGS.js";import{formatMemoryUsage}from"./chunk-NTRFETZB.js";import{createDebugLogger}from"./chunk-46KPDLFH.js";import{init_esbuild_shims}from"./chunk-VKDAXTCZ.js";import{__name}from"./chunk-KBWJGX7I.js";init_esbuild_shims();init_esbuild_shims();function formatExecutionSandbox(config){const policy=config?.getShellExecutionSandbox?.();if(!policy)return void 0;const effective=policy.effectiveBackend??"unresolved";const enforcement=policy.enforcement?` (${policy.enforcement}${policy.landlockAbi?`, ABI ${policy.landlockAbi}`:""})`:"";return`tools / ${policy.requestedBackend??"auto"} \u2192 ${effective}${enforcement} / ${policy.filesystem} / command network: ${policy.network}`}__name(formatExecutionSandbox,"formatExecutionSandbox");import process from"node:process";import os from"node:os";import{execFile}from"node:child_process";var debugLogger=createDebugLogger("STATUS");var VERSION_PROBE_TIMEOUT_MS=5e3;function probeVersion(binary){return new Promise(resolve=>{execFile(binary,["--version"],{timeout:VERSION_PROBE_TIMEOUT_MS,encoding:"utf-8"},(err,stdout)=>{if(err){resolve("unknown");return}resolve(typeof stdout==="string"?stdout.trim():"unknown")})})}__name(probeVersion,"probeVersion");async function getNpmVersion(){return probeVersion("npm")}__name(getNpmVersion,"getNpmVersion");async function getGitVersion(){return probeVersion("git")}__name(getGitVersion,"getGitVersion");async function getIdeClientName(context){if(!context.services.config?.getIdeMode()){return""}try{const ideClient=await IdeClient.getInstance();return ideClient?.getDetectedIdeDisplayName()??""}catch{return""}}__name(getIdeClientName,"getIdeClientName");function getSandboxEnv(stripPrefix=false){const sandbox=process.env["SANDBOX"];if(!sandbox||sandbox==="sandbox-exec"){if(sandbox==="sandbox-exec"){const profile=process.env["SEATBELT_PROFILE"]||"unknown";return`sandbox-exec (${profile})`}return"no sandbox"}if(stripPrefix){return sandbox.replace(/^qwen-(?:code-)?/,"")}return sandbox}__name(getSandboxEnv,"getSandboxEnv");async function getSystemInfo(context){const osPlatform=process.platform;const osArch=process.arch;const osRelease=os.release();const nodeVersion=process.version;const executionSandbox=formatExecutionSandbox(context.services.config);const npmVersion=executionSandbox?"not probed (tool execution sandbox active)":await getNpmVersion();const sandboxEnv=executionSandbox??getSandboxEnv();const modelVersion=context.services.config?.getModel()||"Unknown";const cliVersion=await getCliVersion();const selectedAuthType=context.services.config?.getAuthType()||"";const ideClient=await getIdeClientName(context);const sessionId=context.services.config?.getSessionId()||"unknown";const proxy=context.services.config?.getProxy();return{cliVersion,osPlatform,osArch,osRelease,nodeVersion,npmVersion,sandboxEnv,modelVersion,selectedAuthType,ideClient,sessionId,proxy}}__name(getSystemInfo,"getSystemInfo");async function getExtendedSystemInfo(context){const baseInfo=await getSystemInfo(context);const memoryUsage=formatMemoryUsage(process.memoryUsage().rss);const sandboxEnv=formatExecutionSandbox(context.services.config)??getSandboxEnv(true);const contentGeneratorConfig=baseInfo.selectedAuthType==="openai"||baseInfo.selectedAuthType==="openai-responses"||baseInfo.selectedAuthType==="anthropic"?context.services.config?.getContentGeneratorConfig():void 0;const baseUrl=contentGeneratorConfig?.baseUrl;const apiKeyEnvKey=contentGeneratorConfig?.apiKeyEnvKey;const gitCommit=GIT_COMMIT_INFO&&!["N/A"].includes(GIT_COMMIT_INFO)?GIT_COMMIT_INFO:void 0;const fastModelSetting=context.services.settings?.merged?.fastModel||void 0;const fastModel=fastModelSetting?formatAuxModelSelectorForDisplay(fastModelSetting):void 0;const lspStatus=getLspStatus(context);return{...baseInfo,sandboxEnv,memoryUsage,baseUrl,apiKeyEnvKey,gitCommit,fastModel,lspStatus}}__name(getExtendedSystemInfo,"getExtendedSystemInfo");function getLspStatus(context){try{const snapshot=context.services.config?.getLspStatusSnapshot?.();if(!snapshot){return void 0}if(context.services.config?.getDebugMode?.()){debugLogger.debug("LSP status snapshot for /status:",snapshot)}return formatLspStatusSnapshot(snapshot)}catch(error){if(context.services.config?.getDebugMode?.()){debugLogger.debug("Unable to read LSP status snapshot for /status:",error)}return void 0}}__name(getLspStatus,"getLspStatus");function formatLspStatusSnapshot(snapshot){if(!snapshot.enabled){return"disabled"}if(snapshot.initializationError){return`enabled, initialization failed: ${snapshot.initializationError}`}if(snapshot.statusUnavailable){return"enabled, status unavailable"}if(snapshot.configuredServers===0){return"enabled, no servers configured"}const details=[snapshot.failedServers>0?`${snapshot.failedServers} failed`:"",snapshot.inProgressServers>0?`${snapshot.inProgressServers} starting`:"",snapshot.notStartedServers>0?`${snapshot.notStartedServers} not started`:""].filter(Boolean);const detailText=details.length>0?` (${details.join(", ")})`:"";return`enabled, ${snapshot.readyServers}/${snapshot.configuredServers} ready${detailText}`}__name(formatLspStatusSnapshot,"formatLspStatusSnapshot");export{formatExecutionSandbox,getNpmVersion,getGitVersion,getExtendedSystemInfo};
4
4
  /**
5
5
  * @license
6
6
  * Copyright 2026 Qwen Team