pybao-cli 1.4.4 → 1.4.6

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 (149) hide show
  1. package/dist/REPL-CEZDOYM4.js +47 -0
  2. package/dist/{acp-ZUTERA5S.js → acp-GBBJ4Q2L.js} +29 -29
  3. package/dist/{agentsValidate-AWTRTN5W.js → agentsValidate-CHJ53WK5.js} +7 -7
  4. package/dist/{ask-XGZ4FQKH.js → ask-LUB6FARM.js} +28 -28
  5. package/dist/{autoUpdater-4SOMNDQJ.js → autoUpdater-LOTPDUNR.js} +3 -3
  6. package/dist/{chunk-LTRRVBFJ.js → chunk-2SLRM6SW.js} +2 -2
  7. package/dist/{chunk-XUVX64YX.js → chunk-3CFMPM3Q.js} +1 -1
  8. package/dist/{chunk-RTK7D2UF.js → chunk-3ERO7LXW.js} +74 -32
  9. package/dist/chunk-3ERO7LXW.js.map +7 -0
  10. package/dist/{chunk-4PG3WN3C.js → chunk-3LXMVPOB.js} +3 -3
  11. package/dist/{chunk-7YRN3G6O.js → chunk-3SJOME2K.js} +78 -48
  12. package/dist/chunk-3SJOME2K.js.map +7 -0
  13. package/dist/{chunk-IA43WY3S.js → chunk-3TM4YSOT.js} +3 -3
  14. package/dist/{chunk-TZQSDGRB.js → chunk-4EHOCBGD.js} +4 -4
  15. package/dist/{chunk-GUC73TG3.js → chunk-4KZQIFYS.js} +4 -4
  16. package/dist/{chunk-LZ7DRYYR.js → chunk-BX5HCVXO.js} +3 -3
  17. package/dist/{chunk-APJD6SW2.js → chunk-BZQ44CLS.js} +2 -2
  18. package/dist/{chunk-MI2KXXDU.js → chunk-DCUDXX3J.js} +1 -1
  19. package/dist/{chunk-53FUR6RV.js → chunk-DT55XLT2.js} +4 -4
  20. package/dist/{chunk-YS54GTHH.js → chunk-ELX7YL6H.js} +1 -1
  21. package/dist/{chunk-OSA6YZ7D.js → chunk-KGLVRNDR.js} +1 -1
  22. package/dist/{chunk-YFJI5OAO.js → chunk-KWWBMB2C.js} +3 -3
  23. package/dist/{chunk-DUALMA47.js → chunk-LOXUDTGK.js} +1 -1
  24. package/dist/{chunk-R6JK7J47.js → chunk-MM3N4LYU.js} +2 -2
  25. package/dist/{chunk-X4NOBQSI.js → chunk-ONJLFU6E.js} +1 -1
  26. package/dist/{chunk-KFTWAAEB.js → chunk-PYSQ7H2W.js} +2 -2
  27. package/dist/{chunk-A2LLO2G7.js → chunk-QVH2T453.js} +2 -2
  28. package/dist/{chunk-NC6HM2YL.js → chunk-R2S27MPB.js} +3 -3
  29. package/dist/{chunk-CDDRJZLN.js → chunk-R6BQN6BI.js} +67 -17
  30. package/dist/chunk-R6BQN6BI.js.map +7 -0
  31. package/dist/{chunk-VT6YOSNT.js → chunk-RXZRJGAW.js} +1 -1
  32. package/dist/{chunk-BXKFEPY4.js → chunk-SPTVOC4U.js} +1 -1
  33. package/dist/{chunk-KB57LVO6.js → chunk-THDVQQCB.js} +2 -2
  34. package/dist/{chunk-AYKNJIWC.js → chunk-UEFMFW7S.js} +1 -1
  35. package/dist/{chunk-AYKNJIWC.js.map → chunk-UEFMFW7S.js.map} +1 -1
  36. package/dist/{chunk-SDD6QEJR.js → chunk-VSZ2ERXU.js} +3 -3
  37. package/dist/{chunk-NOQFISUS.js → chunk-YCVH3KLB.js} +1 -1
  38. package/dist/{chunk-NJQFT5WP.js → chunk-YDHOG7RX.js} +2 -2
  39. package/dist/{chunk-JQN76VWU.js → chunk-ZHXQ5CHI.js} +165 -17
  40. package/dist/chunk-ZHXQ5CHI.js.map +7 -0
  41. package/dist/{cli-4GSFMWG4.js → cli-4L2D2W3Z.js} +87 -87
  42. package/dist/commands-F3TBOCAC.js +51 -0
  43. package/dist/{config-XRCPFUMP.js → config-J7BBEQ54.js} +4 -4
  44. package/dist/{context-V2KZYETD.js → context-MFQYX3BD.js} +6 -6
  45. package/dist/{customCommands-GYE22N7X.js → customCommands-VE2IFWOE.js} +4 -4
  46. package/dist/{env-6PFEG3IJ.js → env-H673UPME.js} +2 -2
  47. package/dist/{file-HUOUUXQN.js → file-6J7OPL7D.js} +4 -4
  48. package/dist/index.js +3 -3
  49. package/dist/{llm-5XTVXNNO.js → llm-2J4VIMSQ.js} +29 -29
  50. package/dist/{llmLazy-LYL7PZIP.js → llmLazy-FJ6UVXBE.js} +1 -1
  51. package/dist/{loader-LGNBF346.js → loader-JG4RX4NZ.js} +4 -4
  52. package/dist/{lsp-RXODR7IT.js → lsp-QHAT3UA3.js} +8 -6
  53. package/dist/{lspAnchor-KD3YDKIU.js → lspAnchor-GEIDNUAL.js} +6 -6
  54. package/dist/{mcp-DZVZURWQ.js → mcp-W55PQSXA.js} +7 -7
  55. package/dist/{mentionProcessor-TV5WX5QI.js → mentionProcessor-AIKIWBRT.js} +5 -5
  56. package/dist/{messages-63V7PLB3.js → messages-6PJ26XMB.js} +1 -1
  57. package/dist/{model-PIPNIFG6.js → model-JDCFFSS5.js} +5 -5
  58. package/dist/{openai-7PBUBCVL.js → openai-BYAVZ7GD.js} +5 -5
  59. package/dist/{outputStyles-JUAFSQ3X.js → outputStyles-SWELWRFU.js} +4 -4
  60. package/dist/{pluginRuntime-SCSQDNRJ.js → pluginRuntime-I2W43RXL.js} +6 -6
  61. package/dist/{pluginValidation-M4VRW75Z.js → pluginValidation-6NHIZZEK.js} +6 -6
  62. package/dist/prompts-B7CPNTOM.js +53 -0
  63. package/dist/{pybAgentSessionLoad-3BP6OY3R.js → pybAgentSessionLoad-GHEX7PMU.js} +4 -4
  64. package/dist/{pybAgentSessionResume-4NGQ6Z3B.js → pybAgentSessionResume-JYAJKSVG.js} +4 -4
  65. package/dist/{pybAgentStreamJsonSession-SHF3IH4F.js → pybAgentStreamJsonSession-HIKR32BT.js} +1 -1
  66. package/dist/{pybHooks-PIFZLTVA.js → pybHooks-L6N62ZR6.js} +4 -4
  67. package/dist/query-GHIDLJPY.js +55 -0
  68. package/dist/{registry-QCEPF42I.js → registry-HPBUGGHF.js} +5 -5
  69. package/dist/{ripgrep-CHQJM74I.js → ripgrep-UBQWIOMK.js} +3 -3
  70. package/dist/{skillMarketplace-LIFDHUHS.js → skillMarketplace-NO2IDGSM.js} +3 -3
  71. package/dist/{state-LGVYKZYR.js → state-HXLVMI7X.js} +2 -2
  72. package/dist/{theme-5QKLFDGW.js → theme-TNT2BZ25.js} +5 -5
  73. package/dist/{toolPermissionSettings-VNBKLZIT.js → toolPermissionSettings-TJZHAYYO.js} +6 -6
  74. package/dist/tools-SDR7BZZU.js +52 -0
  75. package/dist/{userInput-64ZNU7F3.js → userInput-DGZ2SE4C.js} +30 -30
  76. package/package.json +1 -1
  77. package/dist/REPL-LLXP3KZE.js +0 -47
  78. package/dist/chunk-7YRN3G6O.js.map +0 -7
  79. package/dist/chunk-CDDRJZLN.js.map +0 -7
  80. package/dist/chunk-JQN76VWU.js.map +0 -7
  81. package/dist/chunk-RTK7D2UF.js.map +0 -7
  82. package/dist/commands-HA4FPBAY.js +0 -51
  83. package/dist/prompts-Z6JR5ECU.js +0 -53
  84. package/dist/query-YVTHXUBT.js +0 -55
  85. package/dist/tools-FKZPEWYT.js +0 -52
  86. /package/dist/{REPL-LLXP3KZE.js.map → REPL-CEZDOYM4.js.map} +0 -0
  87. /package/dist/{acp-ZUTERA5S.js.map → acp-GBBJ4Q2L.js.map} +0 -0
  88. /package/dist/{agentsValidate-AWTRTN5W.js.map → agentsValidate-CHJ53WK5.js.map} +0 -0
  89. /package/dist/{ask-XGZ4FQKH.js.map → ask-LUB6FARM.js.map} +0 -0
  90. /package/dist/{autoUpdater-4SOMNDQJ.js.map → autoUpdater-LOTPDUNR.js.map} +0 -0
  91. /package/dist/{chunk-LTRRVBFJ.js.map → chunk-2SLRM6SW.js.map} +0 -0
  92. /package/dist/{chunk-XUVX64YX.js.map → chunk-3CFMPM3Q.js.map} +0 -0
  93. /package/dist/{chunk-4PG3WN3C.js.map → chunk-3LXMVPOB.js.map} +0 -0
  94. /package/dist/{chunk-IA43WY3S.js.map → chunk-3TM4YSOT.js.map} +0 -0
  95. /package/dist/{chunk-TZQSDGRB.js.map → chunk-4EHOCBGD.js.map} +0 -0
  96. /package/dist/{chunk-GUC73TG3.js.map → chunk-4KZQIFYS.js.map} +0 -0
  97. /package/dist/{chunk-LZ7DRYYR.js.map → chunk-BX5HCVXO.js.map} +0 -0
  98. /package/dist/{chunk-APJD6SW2.js.map → chunk-BZQ44CLS.js.map} +0 -0
  99. /package/dist/{chunk-MI2KXXDU.js.map → chunk-DCUDXX3J.js.map} +0 -0
  100. /package/dist/{chunk-53FUR6RV.js.map → chunk-DT55XLT2.js.map} +0 -0
  101. /package/dist/{chunk-YS54GTHH.js.map → chunk-ELX7YL6H.js.map} +0 -0
  102. /package/dist/{chunk-OSA6YZ7D.js.map → chunk-KGLVRNDR.js.map} +0 -0
  103. /package/dist/{chunk-YFJI5OAO.js.map → chunk-KWWBMB2C.js.map} +0 -0
  104. /package/dist/{chunk-DUALMA47.js.map → chunk-LOXUDTGK.js.map} +0 -0
  105. /package/dist/{chunk-R6JK7J47.js.map → chunk-MM3N4LYU.js.map} +0 -0
  106. /package/dist/{chunk-X4NOBQSI.js.map → chunk-ONJLFU6E.js.map} +0 -0
  107. /package/dist/{chunk-KFTWAAEB.js.map → chunk-PYSQ7H2W.js.map} +0 -0
  108. /package/dist/{chunk-A2LLO2G7.js.map → chunk-QVH2T453.js.map} +0 -0
  109. /package/dist/{chunk-NC6HM2YL.js.map → chunk-R2S27MPB.js.map} +0 -0
  110. /package/dist/{chunk-VT6YOSNT.js.map → chunk-RXZRJGAW.js.map} +0 -0
  111. /package/dist/{chunk-BXKFEPY4.js.map → chunk-SPTVOC4U.js.map} +0 -0
  112. /package/dist/{chunk-KB57LVO6.js.map → chunk-THDVQQCB.js.map} +0 -0
  113. /package/dist/{chunk-SDD6QEJR.js.map → chunk-VSZ2ERXU.js.map} +0 -0
  114. /package/dist/{chunk-NOQFISUS.js.map → chunk-YCVH3KLB.js.map} +0 -0
  115. /package/dist/{chunk-NJQFT5WP.js.map → chunk-YDHOG7RX.js.map} +0 -0
  116. /package/dist/{cli-4GSFMWG4.js.map → cli-4L2D2W3Z.js.map} +0 -0
  117. /package/dist/{commands-HA4FPBAY.js.map → commands-F3TBOCAC.js.map} +0 -0
  118. /package/dist/{config-XRCPFUMP.js.map → config-J7BBEQ54.js.map} +0 -0
  119. /package/dist/{context-V2KZYETD.js.map → context-MFQYX3BD.js.map} +0 -0
  120. /package/dist/{customCommands-GYE22N7X.js.map → customCommands-VE2IFWOE.js.map} +0 -0
  121. /package/dist/{env-6PFEG3IJ.js.map → env-H673UPME.js.map} +0 -0
  122. /package/dist/{file-HUOUUXQN.js.map → file-6J7OPL7D.js.map} +0 -0
  123. /package/dist/{llm-5XTVXNNO.js.map → llm-2J4VIMSQ.js.map} +0 -0
  124. /package/dist/{llmLazy-LYL7PZIP.js.map → llmLazy-FJ6UVXBE.js.map} +0 -0
  125. /package/dist/{loader-LGNBF346.js.map → loader-JG4RX4NZ.js.map} +0 -0
  126. /package/dist/{lsp-RXODR7IT.js.map → lsp-QHAT3UA3.js.map} +0 -0
  127. /package/dist/{lspAnchor-KD3YDKIU.js.map → lspAnchor-GEIDNUAL.js.map} +0 -0
  128. /package/dist/{mcp-DZVZURWQ.js.map → mcp-W55PQSXA.js.map} +0 -0
  129. /package/dist/{mentionProcessor-TV5WX5QI.js.map → mentionProcessor-AIKIWBRT.js.map} +0 -0
  130. /package/dist/{messages-63V7PLB3.js.map → messages-6PJ26XMB.js.map} +0 -0
  131. /package/dist/{model-PIPNIFG6.js.map → model-JDCFFSS5.js.map} +0 -0
  132. /package/dist/{openai-7PBUBCVL.js.map → openai-BYAVZ7GD.js.map} +0 -0
  133. /package/dist/{outputStyles-JUAFSQ3X.js.map → outputStyles-SWELWRFU.js.map} +0 -0
  134. /package/dist/{pluginRuntime-SCSQDNRJ.js.map → pluginRuntime-I2W43RXL.js.map} +0 -0
  135. /package/dist/{pluginValidation-M4VRW75Z.js.map → pluginValidation-6NHIZZEK.js.map} +0 -0
  136. /package/dist/{prompts-Z6JR5ECU.js.map → prompts-B7CPNTOM.js.map} +0 -0
  137. /package/dist/{pybAgentSessionLoad-3BP6OY3R.js.map → pybAgentSessionLoad-GHEX7PMU.js.map} +0 -0
  138. /package/dist/{pybAgentSessionResume-4NGQ6Z3B.js.map → pybAgentSessionResume-JYAJKSVG.js.map} +0 -0
  139. /package/dist/{pybAgentStreamJsonSession-SHF3IH4F.js.map → pybAgentStreamJsonSession-HIKR32BT.js.map} +0 -0
  140. /package/dist/{pybHooks-PIFZLTVA.js.map → pybHooks-L6N62ZR6.js.map} +0 -0
  141. /package/dist/{query-YVTHXUBT.js.map → query-GHIDLJPY.js.map} +0 -0
  142. /package/dist/{registry-QCEPF42I.js.map → registry-HPBUGGHF.js.map} +0 -0
  143. /package/dist/{ripgrep-CHQJM74I.js.map → ripgrep-UBQWIOMK.js.map} +0 -0
  144. /package/dist/{skillMarketplace-LIFDHUHS.js.map → skillMarketplace-NO2IDGSM.js.map} +0 -0
  145. /package/dist/{state-LGVYKZYR.js.map → state-HXLVMI7X.js.map} +0 -0
  146. /package/dist/{theme-5QKLFDGW.js.map → theme-TNT2BZ25.js.map} +0 -0
  147. /package/dist/{toolPermissionSettings-VNBKLZIT.js.map → toolPermissionSettings-TJZHAYYO.js.map} +0 -0
  148. /package/dist/{tools-FKZPEWYT.js.map → tools-SDR7BZZU.js.map} +0 -0
  149. /package/dist/{userInput-64ZNU7F3.js.map → userInput-DGZ2SE4C.js.map} +0 -0
@@ -4,10 +4,10 @@ import {
4
4
  PRODUCT_NAME,
5
5
  execFileNoThrow,
6
6
  logError
7
- } from "./chunk-DUALMA47.js";
7
+ } from "./chunk-LOXUDTGK.js";
8
8
  import {
9
9
  MACRO
10
- } from "./chunk-AYKNJIWC.js";
10
+ } from "./chunk-UEFMFW7S.js";
11
11
 
12
12
  // src/utils/session/autoUpdater.ts
13
13
  async function getSemver() {
@@ -82,7 +82,7 @@ async function checkAndNotifyUpdate() {
82
82
  const [
83
83
  { isAutoUpdaterDisabled, getGlobalConfig, saveGlobalConfig },
84
84
  { env }
85
- ] = await Promise.all([import("./config-XRCPFUMP.js"), import("./env-6PFEG3IJ.js")]);
85
+ ] = await Promise.all([import("./config-J7BBEQ54.js"), import("./env-H673UPME.js")]);
86
86
  if (await isAutoUpdaterDisabled()) return;
87
87
  if (await env.getIsDocker()) return;
88
88
  if (!await env.hasInternetAccess()) return;
@@ -2,23 +2,23 @@ import { createRequire as __pybCreateRequire } from "node:module";
2
2
  const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  ripGrepWithStatus
5
- } from "./chunk-VT6YOSNT.js";
5
+ } from "./chunk-RXZRJGAW.js";
6
6
  import {
7
7
  getCurrentProjectConfig,
8
8
  getGlobalConfig,
9
9
  getOrCreateUserID,
10
10
  saveCurrentProjectConfig
11
- } from "./chunk-LZ7DRYYR.js";
11
+ } from "./chunk-BX5HCVXO.js";
12
12
  import {
13
13
  SESSION_ID,
14
14
  env,
15
15
  execFileNoThrow,
16
16
  getCwd,
17
17
  logError
18
- } from "./chunk-DUALMA47.js";
18
+ } from "./chunk-LOXUDTGK.js";
19
19
  import {
20
20
  MACRO
21
- } from "./chunk-AYKNJIWC.js";
21
+ } from "./chunk-UEFMFW7S.js";
22
22
  import {
23
23
  __require
24
24
  } from "./chunk-I3J4JYES.js";
@@ -3,7 +3,7 @@ const require = __pybCreateRequire(import.meta.url);
3
3
 
4
4
  // src/services/ai/llmLazy.ts
5
5
  async function queryLLM(messages, systemPrompt, maxThinkingTokens, tools, signal, options) {
6
- const { queryLLM: inner } = await import("./llm-5XTVXNNO.js");
6
+ const { queryLLM: inner } = await import("./llm-2J4VIMSQ.js");
7
7
  return inner(
8
8
  messages,
9
9
  systemPrompt,
@@ -14,15 +14,15 @@ async function queryLLM(messages, systemPrompt, maxThinkingTokens, tools, signal
14
14
  );
15
15
  }
16
16
  async function queryQuick(args) {
17
- const { queryQuick: inner } = await import("./llm-5XTVXNNO.js");
17
+ const { queryQuick: inner } = await import("./llm-2J4VIMSQ.js");
18
18
  return inner(args);
19
19
  }
20
20
  async function verifyApiKey(apiKey, baseURL, provider) {
21
- const { verifyApiKey: inner } = await import("./llm-5XTVXNNO.js");
21
+ const { verifyApiKey: inner } = await import("./llm-2J4VIMSQ.js");
22
22
  return inner(apiKey, baseURL, provider);
23
23
  }
24
24
  async function fetchAnthropicModels(apiKey, baseURL) {
25
- const { fetchAnthropicModels: inner } = await import("./llm-5XTVXNNO.js");
25
+ const { fetchAnthropicModels: inner } = await import("./llm-2J4VIMSQ.js");
26
26
  return inner(apiKey, baseURL);
27
27
  }
28
28
 
@@ -5,13 +5,13 @@ import {
5
5
  } from "./chunk-RQVLBMP7.js";
6
6
  import {
7
7
  debug
8
- } from "./chunk-OSA6YZ7D.js";
8
+ } from "./chunk-KGLVRNDR.js";
9
9
  import {
10
10
  getCwd,
11
11
  getGlobalConfigFilePath,
12
12
  getLegacyGlobalConfigFilePath,
13
13
  logError
14
- } from "./chunk-DUALMA47.js";
14
+ } from "./chunk-LOXUDTGK.js";
15
15
 
16
16
  // src/core/config/schema.ts
17
17
  function isAutoUpdaterStatus(value) {
@@ -688,7 +688,7 @@ function setModelPointer(pointer, modelName) {
688
688
  }
689
689
  };
690
690
  saveGlobalConfig(updatedConfig);
691
- import("./model-PIPNIFG6.js").then(({ reloadModelManager }) => {
691
+ import("./model-JDCFFSS5.js").then(({ reloadModelManager }) => {
692
692
  reloadModelManager();
693
693
  });
694
694
  }
@@ -5,12 +5,12 @@ import {
5
5
  } from "./chunk-BJSWTHRM.js";
6
6
  import {
7
7
  debug
8
- } from "./chunk-OSA6YZ7D.js";
8
+ } from "./chunk-KGLVRNDR.js";
9
9
  import {
10
10
  getCwd,
11
11
  logError,
12
12
  resolveXdgDataPath
13
- } from "./chunk-DUALMA47.js";
13
+ } from "./chunk-LOXUDTGK.js";
14
14
 
15
15
  // src/services/plugins/customCommands.ts
16
16
  import { existsSync, readFileSync, readdirSync, statSync } from "fs";
@@ -448,7 +448,7 @@ function getLastAssistantMessageId(messages) {
448
448
 
449
449
  // src/utils/messages/index.ts
450
450
  async function processUserInput(input, mode, setToolJSX, context, pastedImages) {
451
- const impl = await import("./userInput-64ZNU7F3.js");
451
+ const impl = await import("./userInput-DGZ2SE4C.js");
452
452
  return impl.processUserInput(input, mode, setToolJSX, context, pastedImages);
453
453
  }
454
454
 
@@ -3,13 +3,13 @@ const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  getSettingsFileCandidates,
5
5
  loadSettingsWithLegacyFallback
6
- } from "./chunk-NOQFISUS.js";
6
+ } from "./chunk-YCVH3KLB.js";
7
7
  import {
8
8
  getSessionPlugins
9
9
  } from "./chunk-BJSWTHRM.js";
10
10
  import {
11
11
  getTheme
12
- } from "./chunk-YS54GTHH.js";
12
+ } from "./chunk-ELX7YL6H.js";
13
13
  import {
14
14
  addMcprcServerForTesting,
15
15
  getCurrentProjectConfig,
@@ -19,13 +19,13 @@ import {
19
19
  safeParseJSON,
20
20
  saveCurrentProjectConfig,
21
21
  saveGlobalConfig
22
- } from "./chunk-LZ7DRYYR.js";
22
+ } from "./chunk-BX5HCVXO.js";
23
23
  import {
24
24
  PRODUCT_COMMAND,
25
25
  PRODUCT_NAME,
26
26
  getCwd,
27
27
  logMCPError
28
- } from "./chunk-DUALMA47.js";
28
+ } from "./chunk-LOXUDTGK.js";
29
29
 
30
30
  // src/services/mcp/client.ts
31
31
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
@@ -2,7 +2,7 @@ import { createRequire as __pybCreateRequire } from "node:module";
2
2
  const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  getGlobalConfig
5
- } from "./chunk-LZ7DRYYR.js";
5
+ } from "./chunk-BX5HCVXO.js";
6
6
 
7
7
  // src/utils/theme/index.ts
8
8
  var lightTheme = {
@@ -3,7 +3,7 @@ const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  SESSION_ID,
5
5
  resolveXdgCachePath
6
- } from "./chunk-DUALMA47.js";
6
+ } from "./chunk-LOXUDTGK.js";
7
7
 
8
8
  // src/utils/log/debugLogger.ts
9
9
  import { existsSync, mkdirSync, appendFileSync } from "fs";
@@ -8,14 +8,14 @@ import {
8
8
  getSettingsFileCandidates,
9
9
  loadSettingsWithLegacyFallback,
10
10
  saveSettingsToPrimaryAndSyncLegacy
11
- } from "./chunk-NOQFISUS.js";
11
+ } from "./chunk-YCVH3KLB.js";
12
12
  import {
13
13
  getCurrentProjectConfig
14
- } from "./chunk-LZ7DRYYR.js";
14
+ } from "./chunk-BX5HCVXO.js";
15
15
  import {
16
16
  getCwd,
17
17
  logError
18
- } from "./chunk-DUALMA47.js";
18
+ } from "./chunk-LOXUDTGK.js";
19
19
 
20
20
  // src/utils/permissions/toolPermissionSettings.ts
21
21
  function uniqueStrings(value) {
@@ -2,7 +2,7 @@ import { createRequire as __pybCreateRequire } from "node:module";
2
2
  const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  MACRO
5
- } from "./chunk-AYKNJIWC.js";
5
+ } from "./chunk-UEFMFW7S.js";
6
6
 
7
7
  // src/utils/state/index.ts
8
8
  import { cwd } from "process";
@@ -7,14 +7,14 @@ import {
7
7
  getSettingsFileCandidates,
8
8
  loadSettingsWithLegacyFallback,
9
9
  saveSettingsToPrimaryAndSyncLegacy
10
- } from "./chunk-NOQFISUS.js";
10
+ } from "./chunk-YCVH3KLB.js";
11
11
  import {
12
12
  getSessionPlugins
13
13
  } from "./chunk-BJSWTHRM.js";
14
14
  import {
15
15
  getCwd,
16
16
  getXdgConfigDir
17
- } from "./chunk-DUALMA47.js";
17
+ } from "./chunk-LOXUDTGK.js";
18
18
 
19
19
  // src/services/ui/outputStyles.ts
20
20
  import figures from "figures";
@@ -2,7 +2,7 @@ import { createRequire as __pybCreateRequire } from "node:module";
2
2
  const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  getSessionProjectDir
5
- } from "./chunk-LTRRVBFJ.js";
5
+ } from "./chunk-2SLRM6SW.js";
6
6
  import {
7
7
  isUuid
8
8
  } from "./chunk-5P7HBXTD.js";
@@ -6,12 +6,12 @@ import {
6
6
  } from "./chunk-ERMQRV55.js";
7
7
  import {
8
8
  getGlobalConfig
9
- } from "./chunk-LZ7DRYYR.js";
9
+ } from "./chunk-BX5HCVXO.js";
10
10
  import {
11
11
  debug,
12
12
  getCurrentRequest,
13
13
  logAPIError
14
- } from "./chunk-OSA6YZ7D.js";
14
+ } from "./chunk-KGLVRNDR.js";
15
15
 
16
16
  // src/services/ai/openai.ts
17
17
  import { ProxyAgent, fetch } from "undici";
@@ -8,12 +8,12 @@ import {
8
8
  } from "./chunk-BJSWTHRM.js";
9
9
  import {
10
10
  debug
11
- } from "./chunk-OSA6YZ7D.js";
11
+ } from "./chunk-KGLVRNDR.js";
12
12
  import {
13
13
  getCwd,
14
14
  getXdgConfigDir,
15
15
  logError
16
- } from "./chunk-DUALMA47.js";
16
+ } from "./chunk-LOXUDTGK.js";
17
17
 
18
18
  // src/utils/agent/loader.ts
19
19
  import {
@@ -2,13 +2,13 @@ import { createRequire as __pybCreateRequire } from "node:module";
2
2
  const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  MarketplaceManifestSchema
5
- } from "./chunk-XUVX64YX.js";
5
+ } from "./chunk-3CFMPM3Q.js";
6
6
  import {
7
7
  parseFrontmatter
8
- } from "./chunk-APJD6SW2.js";
8
+ } from "./chunk-BZQ44CLS.js";
9
9
  import {
10
10
  getCwd
11
- } from "./chunk-DUALMA47.js";
11
+ } from "./chunk-LOXUDTGK.js";
12
12
 
13
13
  // src/services/plugins/pluginValidation.ts
14
14
  import { existsSync, lstatSync, readFileSync } from "node:fs";
@@ -2,15 +2,15 @@ import { createRequire as __pybCreateRequire } from "node:module";
2
2
  const require = __pybCreateRequire(import.meta.url);
3
3
  import {
4
4
  loadSettingsWithLegacyFallback
5
- } from "./chunk-NOQFISUS.js";
5
+ } from "./chunk-YCVH3KLB.js";
6
6
  import {
7
7
  debug
8
- } from "./chunk-OSA6YZ7D.js";
8
+ } from "./chunk-KGLVRNDR.js";
9
9
  import {
10
10
  env,
11
11
  getCwd,
12
12
  resolveXdgDataPath
13
- } from "./chunk-DUALMA47.js";
13
+ } from "./chunk-LOXUDTGK.js";
14
14
  import {
15
15
  __require
16
16
  } from "./chunk-I3J4JYES.js";
@@ -111,6 +111,49 @@ function parseBoolean(value) {
111
111
  if (["0", "false", "no", "off"].includes(normalized)) return false;
112
112
  return void 0;
113
113
  }
114
+ function resolveEnvRuntimePath(key) {
115
+ const raw = process.env[key]?.trim();
116
+ if (!raw) return "";
117
+ return existsSync2(raw) ? raw : "";
118
+ }
119
+ function isNodeExecutablePath(value) {
120
+ const name = basename(value).toLowerCase();
121
+ return name === "node" || name === "node.exe" || name === "nodejs" || name === "nodejs.exe";
122
+ }
123
+ function isBunExecutablePath(value) {
124
+ const name = basename(value).toLowerCase();
125
+ return name === "bun" || name === "bun.exe";
126
+ }
127
+ function resolveRuntimeCommand() {
128
+ const envNode = resolveEnvRuntimePath("PYB_NODE_PATH");
129
+ if (envNode) return envNode;
130
+ const envBun = resolveEnvRuntimePath("PYB_BUN_PATH");
131
+ if (envBun) return envBun;
132
+ if (process.execPath && existsSync2(process.execPath)) {
133
+ if (isNodeExecutablePath(process.execPath) || isBunExecutablePath(process.execPath)) {
134
+ return process.execPath;
135
+ }
136
+ }
137
+ const nodeBin = Bun.which("node");
138
+ if (nodeBin && existsSync2(nodeBin)) {
139
+ return nodeBin;
140
+ }
141
+ const bunBin = Bun.which("bun");
142
+ if (bunBin && existsSync2(bunBin)) {
143
+ return bunBin;
144
+ }
145
+ return "node";
146
+ }
147
+ function resolveBunRuntimePath() {
148
+ const envBun = resolveEnvRuntimePath("PYB_BUN_PATH");
149
+ if (envBun) return envBun;
150
+ if (process.execPath && existsSync2(process.execPath) && isBunExecutablePath(process.execPath)) {
151
+ return process.execPath;
152
+ }
153
+ const bunBin = Bun.which("bun");
154
+ if (bunBin && existsSync2(bunBin)) return bunBin;
155
+ return "";
156
+ }
114
157
  async function isAutoInstallEnabled() {
115
158
  const disabled = parseBoolean(
116
159
  process.env.PYB_DISABLE_LSP_DOWNLOAD ?? process.env.PYB_DISABLE_LSP_INSTALL ?? process.env.OPENCODE_DISABLE_LSP_DOWNLOAD
@@ -213,7 +256,11 @@ function resolveBinInDir(dir, binName) {
213
256
  return "";
214
257
  }
215
258
  async function bunInstall(packages, cwd = lspInstallDir) {
216
- const bunBin = Bun.which("bun") ?? process.execPath;
259
+ const bunBin = resolveBunRuntimePath();
260
+ if (!bunBin) {
261
+ debug.error("LSP_MISSING_DEP", { server: "npm", error: "bun not found" });
262
+ return false;
263
+ }
217
264
  if (!existsSync2(cwd)) {
218
265
  mkdirSync(cwd, { recursive: true });
219
266
  }
@@ -1021,18 +1068,7 @@ var BaseLspServer = class {
1021
1068
  return "";
1022
1069
  }
1023
1070
  getRuntimeCommand() {
1024
- if (process.execPath && existsSync2(process.execPath)) {
1025
- return process.execPath;
1026
- }
1027
- const nodeBin = Bun.which("node");
1028
- if (nodeBin && existsSync2(nodeBin)) {
1029
- return nodeBin;
1030
- }
1031
- const bunBin = Bun.which("bun");
1032
- if (bunBin && existsSync2(bunBin)) {
1033
- return bunBin;
1034
- }
1035
- return "node";
1071
+ return resolveRuntimeCommand();
1036
1072
  }
1037
1073
  };
1038
1074
  var ServerDefinition = class extends BaseLspServer {
@@ -1041,6 +1077,7 @@ var ServerDefinition = class extends BaseLspServer {
1041
1077
  rootMarkers;
1042
1078
  installStrategy;
1043
1079
  spawnStrategy;
1080
+ enabledStrategy;
1044
1081
  resolveRoot;
1045
1082
  priority;
1046
1083
  group;
@@ -1051,6 +1088,7 @@ var ServerDefinition = class extends BaseLspServer {
1051
1088
  this.rootMarkers = options.rootMarkers;
1052
1089
  this.installStrategy = options.install;
1053
1090
  this.spawnStrategy = options.spawn;
1091
+ this.enabledStrategy = options.isEnabled;
1054
1092
  this.resolveRoot = options.resolveRoot;
1055
1093
  this.priority = options.priority;
1056
1094
  this.group = options.group;
@@ -1067,6 +1105,11 @@ var ServerDefinition = class extends BaseLspServer {
1067
1105
  }
1068
1106
  return null;
1069
1107
  }
1108
+ async isEnabled(rootPath) {
1109
+ if (!this.enabledStrategy) return true;
1110
+ const result = await this.enabledStrategy(rootPath);
1111
+ return Boolean(result);
1112
+ }
1070
1113
  };
1071
1114
  var OverriddenServer = class {
1072
1115
  constructor(base, override, globalEnv, globalInitializationOptions) {
@@ -1089,6 +1132,7 @@ var OverriddenServer = class {
1089
1132
  this.disabled = override?.disabled ?? base.disabled;
1090
1133
  this.overrideCommand = override?.command;
1091
1134
  this.overrideArgs = override?.args;
1135
+ this.enabledStrategy = typeof base.isEnabled === "function" ? base.isEnabled.bind(base) : void 0;
1092
1136
  }
1093
1137
  id;
1094
1138
  extensions;
@@ -1105,6 +1149,7 @@ var OverriddenServer = class {
1105
1149
  disabled;
1106
1150
  overrideCommand;
1107
1151
  overrideArgs;
1152
+ enabledStrategy;
1108
1153
  async prepare() {
1109
1154
  return this.base.prepare();
1110
1155
  }
@@ -1117,6 +1162,11 @@ var OverriddenServer = class {
1117
1162
  }
1118
1163
  return null;
1119
1164
  }
1165
+ async isEnabled(rootPath) {
1166
+ if (!this.enabledStrategy) return true;
1167
+ const result = await this.enabledStrategy(rootPath);
1168
+ return Boolean(result);
1169
+ }
1120
1170
  };
1121
1171
  var GenericNpmServer = class extends BaseLspServer {
1122
1172
  id;
@@ -1370,8 +1420,8 @@ var LspServerRegistry = class _LspServerRegistry {
1370
1420
  id: "deno",
1371
1421
  extensions: [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".mts", ".cts"],
1372
1422
  rootMarkers: ["deno.json", "deno.jsonc"],
1423
+ isEnabled: async (rootPath) => hasDenoConfig(rootPath),
1373
1424
  spawn: async (rootPath) => {
1374
- if (!hasDenoConfig(rootPath)) return null;
1375
1425
  const deno = Bun.which("deno");
1376
1426
  if (!deno) return null;
1377
1427
  return { command: deno, args: ["lsp"] };