pybao-cli 1.5.22 → 1.5.24

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 (165) hide show
  1. package/dist/REPL-K6NYKODR.js +51 -0
  2. package/dist/{acp-6UNV3LLZ.js → acp-5H7EXQK2.js} +33 -32
  3. package/dist/{acp-6UNV3LLZ.js.map → acp-5H7EXQK2.js.map} +1 -1
  4. package/dist/{agentsValidate-Q6TKU7TM.js → agentsValidate-QQUWQEIR.js} +7 -7
  5. package/dist/{ask-VKXARFSE.js → ask-2NXAGZUU.js} +32 -31
  6. package/dist/{ask-VKXARFSE.js.map → ask-2NXAGZUU.js.map} +1 -1
  7. package/dist/{autoUpdater-7EWH6KLS.js → autoUpdater-UZGQSBVX.js} +3 -3
  8. package/dist/{chunk-5SXLQSDA.js → chunk-2LDISGV5.js} +4 -1
  9. package/dist/{chunk-NHGHYVP4.js → chunk-4RFXQVAB.js} +2 -2
  10. package/dist/{chunk-NNLRGQH7.js → chunk-5LOOKSJJ.js} +2 -2
  11. package/dist/{chunk-K75Q3DNN.js → chunk-6FXN7WXV.js} +3 -3
  12. package/dist/{chunk-YTMIS255.js → chunk-7G3CESAX.js} +2 -2
  13. package/dist/{chunk-A7DBXB2F.js → chunk-7PKIDZYX.js} +3 -1
  14. package/dist/chunk-7PKIDZYX.js.map +7 -0
  15. package/dist/{chunk-3OHETUTC.js → chunk-7XKF4NS5.js} +1 -1
  16. package/dist/{chunk-BHQOSSZK.js → chunk-AIYDVZNU.js} +3 -3
  17. package/dist/{chunk-DUQMZDAG.js → chunk-AXW3EAEG.js} +3 -3
  18. package/dist/{chunk-P3H2FCWA.js → chunk-C5W7DK4B.js} +3 -3
  19. package/dist/chunk-DGOZRLG4.js +574 -0
  20. package/dist/chunk-DGOZRLG4.js.map +7 -0
  21. package/dist/{chunk-WPTE44L5.js → chunk-DQPL53A3.js} +4 -4
  22. package/dist/chunk-DSMH3DDQ.js +96 -0
  23. package/dist/chunk-DSMH3DDQ.js.map +7 -0
  24. package/dist/{chunk-C3FMLNZD.js → chunk-FBTRKZNM.js} +35 -167
  25. package/dist/chunk-FBTRKZNM.js.map +7 -0
  26. package/dist/{chunk-YGVF37PC.js → chunk-GTBOGB65.js} +3 -3
  27. package/dist/{chunk-AJ3UX6R7.js → chunk-H25IY2QB.js} +1 -1
  28. package/dist/{chunk-O7R3XZGO.js → chunk-H7HRAFNH.js} +15 -15
  29. package/dist/chunk-HHXEDAUY.js +681 -0
  30. package/dist/chunk-HHXEDAUY.js.map +7 -0
  31. package/dist/{chunk-EC3PLGG3.js → chunk-JU3X54OB.js} +2 -2
  32. package/dist/chunk-KFEHHKZ2.js +145 -0
  33. package/dist/chunk-KFEHHKZ2.js.map +7 -0
  34. package/dist/{chunk-JZJUCJTK.js → chunk-L6HMG5TD.js} +1 -1
  35. package/dist/{chunk-VXBBKE3Z.js → chunk-MVWCFCWA.js} +1 -1
  36. package/dist/{chunk-IZQYUXSZ.js → chunk-NNGD2UJL.js} +2 -2
  37. package/dist/{chunk-JUMRO5I7.js → chunk-PFHTQ2ON.js} +4 -4
  38. package/dist/{chunk-FCSVC7CP.js → chunk-QPX3VRTH.js} +4 -4
  39. package/dist/{chunk-OPAEJ3Y5.js → chunk-S7HIIXVN.js} +1 -1
  40. package/dist/{chunk-GSFBS4B4.js → chunk-T4BBPE5F.js} +3 -3
  41. package/dist/{chunk-5S2CPB42.js → chunk-T5ZQLE6E.js} +3 -3
  42. package/dist/{chunk-GDDO2XA3.js → chunk-UJ2SNURP.js} +1 -1
  43. package/dist/{chunk-7HPHH3FB.js → chunk-UOVFEY6P.js} +69 -48
  44. package/dist/{chunk-7HPHH3FB.js.map → chunk-UOVFEY6P.js.map} +3 -3
  45. package/dist/{chunk-LRKZ3RPS.js → chunk-UUM4Q5S6.js} +1 -1
  46. package/dist/{chunk-XSUCLDWY.js → chunk-W2DOITEM.js} +2 -2
  47. package/dist/{chunk-E4JH2XFM.js → chunk-XVF7DL3L.js} +1 -1
  48. package/dist/{cli-DFM7Z6AH.js → cli-5CKXURNM.js} +130 -102
  49. package/dist/cli-5CKXURNM.js.map +7 -0
  50. package/dist/commands-FVAUVYN5.js +55 -0
  51. package/dist/{config-XUPBT2EE.js → config-P6NPLNYJ.js} +4 -4
  52. package/dist/{context-TE7OR7RQ.js → context-KGCNIOLW.js} +7 -6
  53. package/dist/{conversationPersistence-24HWWB75.js → conversationPersistence-ZR5BNQEH.js} +3 -3
  54. package/dist/{conversationTracker-4JE7TNPU.js → conversationTracker-CWBOYHS6.js} +4 -4
  55. package/dist/{customCommands-OGYMS6BW.js → customCommands-FI35GWO7.js} +4 -4
  56. package/dist/{env-OFPQLCBS.js → env-XIHEMHIE.js} +2 -2
  57. package/dist/{file-X2XAPBRZ.js → file-WT4CNRBH.js} +4 -4
  58. package/dist/index.js +3 -3
  59. package/dist/{llm-6XIL53O7.js → llm-HPPHTPDB.js} +33 -32
  60. package/dist/{llm-6XIL53O7.js.map → llm-HPPHTPDB.js.map} +1 -1
  61. package/dist/{llmLazy-U2GIPU5C.js → llmLazy-76OBERV2.js} +1 -1
  62. package/dist/{loader-EGMA6CWF.js → loader-TS2HH5EN.js} +4 -4
  63. package/dist/{lsp-JMPOPT6A.js → lsp-KV7OBBMM.js} +6 -6
  64. package/dist/{lspAnchor-5PMHI5BV.js → lspAnchor-ZCANLR6C.js} +6 -6
  65. package/dist/{mcp-XSVQR6C6.js → mcp-MFOXCURO.js} +7 -7
  66. package/dist/{mentionProcessor-4MOOQMS7.js → mentionProcessor-4OQOE7GY.js} +5 -5
  67. package/dist/{messages-ZBGD2RVK.js → messages-NCRJ6QRS.js} +1 -1
  68. package/dist/{model-ECTUAZ5Q.js → model-QGIJDQKV.js} +5 -5
  69. package/dist/{openai-CRNKDQJ3.js → openai-PIMPLRHA.js} +5 -5
  70. package/dist/{outputStyles-Z4PB6UX5.js → outputStyles-VIR2WGDW.js} +4 -4
  71. package/dist/{pluginRuntime-DRDVDAUU.js → pluginRuntime-HM55RXJW.js} +6 -6
  72. package/dist/{pluginValidation-RHPC5SAR.js → pluginValidation-7TELFKDN.js} +6 -6
  73. package/dist/prompts-JUMG5DV4.js +57 -0
  74. package/dist/{pybAgentSessionLoad-YAEB2WL4.js → pybAgentSessionLoad-G6BSOKJV.js} +5 -6
  75. package/dist/{pybAgentSessionResume-C7MUM2PL.js → pybAgentSessionResume-GFO2HI4V.js} +5 -4
  76. package/dist/{pybAgentStreamJsonSession-3X3S5CI2.js → pybAgentStreamJsonSession-XJWWG4KQ.js} +1 -1
  77. package/dist/{pybHooks-DWLOM55R.js → pybHooks-MRBA3GKS.js} +4 -4
  78. package/dist/query-O5YZELUK.js +55 -0
  79. package/dist/{registry-MFGZRI5N.js → registry-VLNMWI4D.js} +5 -5
  80. package/dist/{ripgrep-P7LJLNZR.js → ripgrep-I4QCQBMN.js} +3 -3
  81. package/dist/{skillMarketplace-R5ZEB7NX.js → skillMarketplace-F3LNNAWT.js} +3 -3
  82. package/dist/{state-W25DUPH2.js → state-66VUERW2.js} +2 -2
  83. package/dist/{theme-YNA47SVG.js → theme-QGI5L27W.js} +5 -5
  84. package/dist/{toolPermissionSettings-IJR677NS.js → toolPermissionSettings-E4T44WBW.js} +6 -6
  85. package/dist/tools-4WOQWDGA.js +56 -0
  86. package/dist/{userInput-I2PLDULC.js → userInput-KKWPB5G6.js} +34 -33
  87. package/dist/{userInput-I2PLDULC.js.map → userInput-KKWPB5G6.js.map} +1 -1
  88. package/package.json +3 -1
  89. package/scripts/session-project-gate.mjs +95 -0
  90. package/dist/REPL-KRZBKRH2.js +0 -50
  91. package/dist/chunk-A7DBXB2F.js.map +0 -7
  92. package/dist/chunk-C3FMLNZD.js.map +0 -7
  93. package/dist/chunk-CDK4YHKS.js +0 -196
  94. package/dist/chunk-CDK4YHKS.js.map +0 -7
  95. package/dist/chunk-EJJSN2TT.js +0 -81
  96. package/dist/chunk-EJJSN2TT.js.map +0 -7
  97. package/dist/chunk-WHAWWM3Y.js +0 -138
  98. package/dist/chunk-WHAWWM3Y.js.map +0 -7
  99. package/dist/cli-DFM7Z6AH.js.map +0 -7
  100. package/dist/commands-E6P6G6RL.js +0 -54
  101. package/dist/prompts-XBRLSIXQ.js +0 -56
  102. package/dist/query-7M3GL2CM.js +0 -54
  103. package/dist/tools-XDOXLNVD.js +0 -55
  104. /package/dist/{REPL-KRZBKRH2.js.map → REPL-K6NYKODR.js.map} +0 -0
  105. /package/dist/{agentsValidate-Q6TKU7TM.js.map → agentsValidate-QQUWQEIR.js.map} +0 -0
  106. /package/dist/{autoUpdater-7EWH6KLS.js.map → autoUpdater-UZGQSBVX.js.map} +0 -0
  107. /package/dist/{chunk-5SXLQSDA.js.map → chunk-2LDISGV5.js.map} +0 -0
  108. /package/dist/{chunk-NHGHYVP4.js.map → chunk-4RFXQVAB.js.map} +0 -0
  109. /package/dist/{chunk-NNLRGQH7.js.map → chunk-5LOOKSJJ.js.map} +0 -0
  110. /package/dist/{chunk-K75Q3DNN.js.map → chunk-6FXN7WXV.js.map} +0 -0
  111. /package/dist/{chunk-YTMIS255.js.map → chunk-7G3CESAX.js.map} +0 -0
  112. /package/dist/{chunk-3OHETUTC.js.map → chunk-7XKF4NS5.js.map} +0 -0
  113. /package/dist/{chunk-BHQOSSZK.js.map → chunk-AIYDVZNU.js.map} +0 -0
  114. /package/dist/{chunk-DUQMZDAG.js.map → chunk-AXW3EAEG.js.map} +0 -0
  115. /package/dist/{chunk-P3H2FCWA.js.map → chunk-C5W7DK4B.js.map} +0 -0
  116. /package/dist/{chunk-WPTE44L5.js.map → chunk-DQPL53A3.js.map} +0 -0
  117. /package/dist/{chunk-YGVF37PC.js.map → chunk-GTBOGB65.js.map} +0 -0
  118. /package/dist/{chunk-AJ3UX6R7.js.map → chunk-H25IY2QB.js.map} +0 -0
  119. /package/dist/{chunk-O7R3XZGO.js.map → chunk-H7HRAFNH.js.map} +0 -0
  120. /package/dist/{chunk-EC3PLGG3.js.map → chunk-JU3X54OB.js.map} +0 -0
  121. /package/dist/{chunk-JZJUCJTK.js.map → chunk-L6HMG5TD.js.map} +0 -0
  122. /package/dist/{chunk-VXBBKE3Z.js.map → chunk-MVWCFCWA.js.map} +0 -0
  123. /package/dist/{chunk-IZQYUXSZ.js.map → chunk-NNGD2UJL.js.map} +0 -0
  124. /package/dist/{chunk-JUMRO5I7.js.map → chunk-PFHTQ2ON.js.map} +0 -0
  125. /package/dist/{chunk-FCSVC7CP.js.map → chunk-QPX3VRTH.js.map} +0 -0
  126. /package/dist/{chunk-OPAEJ3Y5.js.map → chunk-S7HIIXVN.js.map} +0 -0
  127. /package/dist/{chunk-GSFBS4B4.js.map → chunk-T4BBPE5F.js.map} +0 -0
  128. /package/dist/{chunk-5S2CPB42.js.map → chunk-T5ZQLE6E.js.map} +0 -0
  129. /package/dist/{chunk-GDDO2XA3.js.map → chunk-UJ2SNURP.js.map} +0 -0
  130. /package/dist/{chunk-LRKZ3RPS.js.map → chunk-UUM4Q5S6.js.map} +0 -0
  131. /package/dist/{chunk-XSUCLDWY.js.map → chunk-W2DOITEM.js.map} +0 -0
  132. /package/dist/{chunk-E4JH2XFM.js.map → chunk-XVF7DL3L.js.map} +0 -0
  133. /package/dist/{commands-E6P6G6RL.js.map → commands-FVAUVYN5.js.map} +0 -0
  134. /package/dist/{config-XUPBT2EE.js.map → config-P6NPLNYJ.js.map} +0 -0
  135. /package/dist/{context-TE7OR7RQ.js.map → context-KGCNIOLW.js.map} +0 -0
  136. /package/dist/{conversationPersistence-24HWWB75.js.map → conversationPersistence-ZR5BNQEH.js.map} +0 -0
  137. /package/dist/{conversationTracker-4JE7TNPU.js.map → conversationTracker-CWBOYHS6.js.map} +0 -0
  138. /package/dist/{customCommands-OGYMS6BW.js.map → customCommands-FI35GWO7.js.map} +0 -0
  139. /package/dist/{env-OFPQLCBS.js.map → env-XIHEMHIE.js.map} +0 -0
  140. /package/dist/{file-X2XAPBRZ.js.map → file-WT4CNRBH.js.map} +0 -0
  141. /package/dist/{llmLazy-U2GIPU5C.js.map → llmLazy-76OBERV2.js.map} +0 -0
  142. /package/dist/{loader-EGMA6CWF.js.map → loader-TS2HH5EN.js.map} +0 -0
  143. /package/dist/{lsp-JMPOPT6A.js.map → lsp-KV7OBBMM.js.map} +0 -0
  144. /package/dist/{lspAnchor-5PMHI5BV.js.map → lspAnchor-ZCANLR6C.js.map} +0 -0
  145. /package/dist/{mcp-XSVQR6C6.js.map → mcp-MFOXCURO.js.map} +0 -0
  146. /package/dist/{mentionProcessor-4MOOQMS7.js.map → mentionProcessor-4OQOE7GY.js.map} +0 -0
  147. /package/dist/{messages-ZBGD2RVK.js.map → messages-NCRJ6QRS.js.map} +0 -0
  148. /package/dist/{model-ECTUAZ5Q.js.map → model-QGIJDQKV.js.map} +0 -0
  149. /package/dist/{openai-CRNKDQJ3.js.map → openai-PIMPLRHA.js.map} +0 -0
  150. /package/dist/{outputStyles-Z4PB6UX5.js.map → outputStyles-VIR2WGDW.js.map} +0 -0
  151. /package/dist/{pluginRuntime-DRDVDAUU.js.map → pluginRuntime-HM55RXJW.js.map} +0 -0
  152. /package/dist/{pluginValidation-RHPC5SAR.js.map → pluginValidation-7TELFKDN.js.map} +0 -0
  153. /package/dist/{prompts-XBRLSIXQ.js.map → prompts-JUMG5DV4.js.map} +0 -0
  154. /package/dist/{pybAgentSessionLoad-YAEB2WL4.js.map → pybAgentSessionLoad-G6BSOKJV.js.map} +0 -0
  155. /package/dist/{pybAgentSessionResume-C7MUM2PL.js.map → pybAgentSessionResume-GFO2HI4V.js.map} +0 -0
  156. /package/dist/{pybAgentStreamJsonSession-3X3S5CI2.js.map → pybAgentStreamJsonSession-XJWWG4KQ.js.map} +0 -0
  157. /package/dist/{pybHooks-DWLOM55R.js.map → pybHooks-MRBA3GKS.js.map} +0 -0
  158. /package/dist/{query-7M3GL2CM.js.map → query-O5YZELUK.js.map} +0 -0
  159. /package/dist/{registry-MFGZRI5N.js.map → registry-VLNMWI4D.js.map} +0 -0
  160. /package/dist/{ripgrep-P7LJLNZR.js.map → ripgrep-I4QCQBMN.js.map} +0 -0
  161. /package/dist/{skillMarketplace-R5ZEB7NX.js.map → skillMarketplace-F3LNNAWT.js.map} +0 -0
  162. /package/dist/{state-W25DUPH2.js.map → state-66VUERW2.js.map} +0 -0
  163. /package/dist/{theme-YNA47SVG.js.map → theme-QGI5L27W.js.map} +0 -0
  164. /package/dist/{toolPermissionSettings-IJR677NS.js.map → toolPermissionSettings-E4T44WBW.js.map} +0 -0
  165. /package/dist/{tools-XDOXLNVD.js.map → tools-4WOQWDGA.js.map} +0 -0
@@ -5,7 +5,7 @@ import {
5
5
  getCwd,
6
6
  resolveXdgCachePath,
7
7
  resolveXdgDataPath
8
- } from "./chunk-5SXLQSDA.js";
8
+ } from "./chunk-2LDISGV5.js";
9
9
 
10
10
  // src/services/plugins/skillMarketplace.ts
11
11
  import {
@@ -5,12 +5,12 @@ import {
5
5
  } from "./chunk-BJSWTHRM.js";
6
6
  import {
7
7
  debug
8
- } from "./chunk-AJ3UX6R7.js";
8
+ } from "./chunk-H25IY2QB.js";
9
9
  import {
10
10
  getCwd,
11
11
  logError,
12
12
  resolveXdgDataPath
13
- } from "./chunk-5SXLQSDA.js";
13
+ } from "./chunk-2LDISGV5.js";
14
14
 
15
15
  // src/services/plugins/customCommands.ts
16
16
  import { existsSync, readFileSync, readdirSync, statSync } from "fs";
@@ -4,7 +4,7 @@ import {
4
4
  BunShell,
5
5
  execFileNoThrow,
6
6
  logError
7
- } from "./chunk-5SXLQSDA.js";
7
+ } from "./chunk-2LDISGV5.js";
8
8
 
9
9
  // src/utils/system/ripgrep.ts
10
10
  import { findActualExecutable } from "spawn-rx";
@@ -3,7 +3,7 @@ import { createRequire as __pybCreateRequire } from "node:module";
3
3
  const require = __pybCreateRequire(import.meta.url);
4
4
  import {
5
5
  assertMinVersion
6
- } from "./chunk-YGVF37PC.js";
6
+ } from "./chunk-GTBOGB65.js";
7
7
  import {
8
8
  ensurePackagedRuntimeEnv,
9
9
  ensureYogaWasmPath
@@ -12,7 +12,7 @@ import {
12
12
  getAllTools,
13
13
  toTaskDetail,
14
14
  toTaskListItem
15
- } from "./chunk-O7R3XZGO.js";
15
+ } from "./chunk-H7HRAFNH.js";
16
16
  import {
17
17
  PybAgentStructuredStdio
18
18
  } from "./chunk-5AGDLQAW.js";
@@ -41,24 +41,28 @@ import {
41
41
  review_default,
42
42
  useExitOnCtrlCD,
43
43
  useTerminalSize
44
- } from "./chunk-7HPHH3FB.js";
45
- import "./chunk-WHAWWM3Y.js";
46
- import "./chunk-CDK4YHKS.js";
47
- import "./chunk-EJJSN2TT.js";
48
- import "./chunk-GSFBS4B4.js";
49
- import "./chunk-VXBBKE3Z.js";
50
- import "./chunk-JZJUCJTK.js";
44
+ } from "./chunk-UOVFEY6P.js";
45
+ import "./chunk-DGOZRLG4.js";
46
+ import "./chunk-5P7HBXTD.js";
47
+ import "./chunk-T4BBPE5F.js";
48
+ import "./chunk-MVWCFCWA.js";
49
+ import "./chunk-L6HMG5TD.js";
51
50
  import {
52
51
  beginReplSessionScope
53
52
  } from "./chunk-F4AXICO7.js";
54
- import "./chunk-5P7HBXTD.js";
55
- import "./chunk-K75Q3DNN.js";
53
+ import "./chunk-DSMH3DDQ.js";
54
+ import {
55
+ createSessionSqlStore,
56
+ getSessionStoreDbPath,
57
+ getSessionStoreFlags
58
+ } from "./chunk-HHXEDAUY.js";
59
+ import "./chunk-6FXN7WXV.js";
56
60
  import {
57
61
  clearOutputStyleCache
58
- } from "./chunk-IZQYUXSZ.js";
59
- import "./chunk-NNLRGQH7.js";
62
+ } from "./chunk-NNGD2UJL.js";
63
+ import "./chunk-5LOOKSJJ.js";
60
64
  import "./chunk-XKYHFZEC.js";
61
- import "./chunk-WPTE44L5.js";
65
+ import "./chunk-DQPL53A3.js";
62
66
  import {
63
67
  addMcpServer,
64
68
  ensureConfigScope,
@@ -73,43 +77,44 @@ import {
73
77
  parseEnvVars,
74
78
  parseMcpHeaders,
75
79
  removeMcpServer
76
- } from "./chunk-JUMRO5I7.js";
77
- import "./chunk-LRKZ3RPS.js";
78
- import "./chunk-5S2CPB42.js";
80
+ } from "./chunk-PFHTQ2ON.js";
81
+ import "./chunk-UUM4Q5S6.js";
82
+ import "./chunk-T5ZQLE6E.js";
79
83
  import "./chunk-UNNVICVU.js";
80
- import "./chunk-EC3PLGG3.js";
84
+ import "./chunk-JU3X54OB.js";
81
85
  import {
82
86
  clearAgentCache,
83
87
  setFlagAgentsFromCliJson
84
- } from "./chunk-YTMIS255.js";
88
+ } from "./chunk-7G3CESAX.js";
85
89
  import {
86
90
  setEnabledSettingSourcesFromCli
87
91
  } from "./chunk-A3BVXXA3.js";
88
- import "./chunk-OPAEJ3Y5.js";
92
+ import "./chunk-S7HIIXVN.js";
89
93
  import "./chunk-3DFBSQIT.js";
90
94
  import "./chunk-B6IMQJZM.js";
91
95
  import "./chunk-OUXHGDLH.js";
92
- import "./chunk-NHGHYVP4.js";
96
+ import "./chunk-4RFXQVAB.js";
93
97
  import "./chunk-QWIBSCDN.js";
94
- import "./chunk-FCSVC7CP.js";
95
- import "./chunk-P3H2FCWA.js";
96
- import "./chunk-GDDO2XA3.js";
98
+ import "./chunk-QPX3VRTH.js";
99
+ import "./chunk-C5W7DK4B.js";
100
+ import "./chunk-UJ2SNURP.js";
97
101
  import "./chunk-UZ34JEUK.js";
98
- import "./chunk-XSUCLDWY.js";
102
+ import "./chunk-W2DOITEM.js";
99
103
  import "./chunk-BJSWTHRM.js";
100
104
  import {
101
105
  getModelManager,
102
106
  isDefaultSlowAndCapableModel
103
- } from "./chunk-BHQOSSZK.js";
107
+ } from "./chunk-AIYDVZNU.js";
104
108
  import {
105
109
  getContext,
106
110
  removeContext,
107
111
  setContext
108
- } from "./chunk-C3FMLNZD.js";
109
- import "./chunk-E4JH2XFM.js";
112
+ } from "./chunk-FBTRKZNM.js";
113
+ import "./chunk-KFEHHKZ2.js";
114
+ import "./chunk-XVF7DL3L.js";
110
115
  import {
111
116
  getTheme
112
- } from "./chunk-3OHETUTC.js";
117
+ } from "./chunk-7XKF4NS5.js";
113
118
  import {
114
119
  checkHasTrustDialogAccepted,
115
120
  deleteConfigForCLI,
@@ -123,14 +128,14 @@ import {
123
128
  saveGlobalConfig,
124
129
  setConfigForCLI,
125
130
  validateAndRepairAllGPT5Profiles
126
- } from "./chunk-DUQMZDAG.js";
131
+ } from "./chunk-AXW3EAEG.js";
127
132
  import {
128
133
  ConfigParseError
129
134
  } from "./chunk-RQVLBMP7.js";
130
135
  import {
131
136
  debug,
132
137
  initDebugLogger
133
- } from "./chunk-AJ3UX6R7.js";
138
+ } from "./chunk-H25IY2QB.js";
134
139
  import {
135
140
  BunShell,
136
141
  CACHE_PATHS,
@@ -147,14 +152,14 @@ import {
147
152
  resolveXdgDataPath,
148
153
  setCwd,
149
154
  setOriginalCwd
150
- } from "./chunk-5SXLQSDA.js";
155
+ } from "./chunk-2LDISGV5.js";
151
156
  import {
152
157
  MACRO
153
- } from "./chunk-A7DBXB2F.js";
158
+ } from "./chunk-7PKIDZYX.js";
154
159
  import "./chunk-I3J4JYES.js";
155
160
 
156
161
  // src/entrypoints/cli/runCli.tsx
157
- import { existsSync, readFileSync, writeFileSync as writeFileSync2 } from "node:fs";
162
+ import { existsSync as existsSync2, readFileSync, writeFileSync as writeFileSync2 } from "node:fs";
158
163
 
159
164
  // src/entrypoints/cli/printMode.ts
160
165
  import { join } from "path";
@@ -314,7 +319,7 @@ function createPrintModeControlRequestHandler(args) {
314
319
  // src/entrypoints/cli/stdio/streamJsonSession.ts
315
320
  async function runPrintModeStreamJsonSession(args) {
316
321
  const { beginReplSessionScope: beginReplSessionScope2 } = await import("./replSessionBridge-EBXNFUAD.js");
317
- const { runPybAgentStreamJsonSession } = await import("./pybAgentStreamJsonSession-3X3S5CI2.js");
322
+ const { runPybAgentStreamJsonSession } = await import("./pybAgentStreamJsonSession-XJWWG4KQ.js");
318
323
  const restoreSessionScope = beginReplSessionScope2(args.sessionId);
319
324
  try {
320
325
  await runPybAgentStreamJsonSession(args);
@@ -482,20 +487,20 @@ async function runPrintMode({
482
487
  const {
483
488
  createUserMessageFromText,
484
489
  createUserMessageFromBlocks
485
- } = await import("./messages-ZBGD2RVK.js");
486
- const { ConversationTracker } = await import("./conversationTracker-4JE7TNPU.js");
487
- const { FileSystemConversationPersistence } = await import("./conversationPersistence-24HWWB75.js");
488
- const { getSystemPrompt } = await import("./prompts-XBRLSIXQ.js");
489
- const { getContext: getContext2 } = await import("./context-TE7OR7RQ.js");
490
+ } = await import("./messages-NCRJ6QRS.js");
491
+ const { ConversationTracker } = await import("./conversationTracker-CWBOYHS6.js");
492
+ const { FileSystemConversationPersistence } = await import("./conversationPersistence-ZR5BNQEH.js");
493
+ const { getSystemPrompt } = await import("./prompts-JUMG5DV4.js");
494
+ const { getContext: getContext2 } = await import("./context-KGCNIOLW.js");
490
495
  const { getTotalCost } = await import("./costTracker-DJVFVAVZ.js");
491
- const { query } = await import("./query-7M3GL2CM.js");
496
+ const { query } = await import("./query-O5YZELUK.js");
492
497
  const { getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
493
498
  const { pybMessageToSdkMessage, makeSdkInitMessage, makeSdkResultMessage } = await import("./pybAgentStreamJson-EQPO52B6.js");
494
499
  const { PybAgentStructuredStdio: PybAgentStructuredStdio2 } = await import("./pybAgentStructuredStdio-ROCSOGNT.js");
495
500
  const {
496
501
  loadToolPermissionContextFromDisk,
497
502
  persistToolPermissionUpdateToDisk
498
- } = await import("./toolPermissionSettings-IJR677NS.js");
503
+ } = await import("./toolPermissionSettings-E4T44WBW.js");
499
504
  const { applyToolPermissionContextUpdates } = await import("./toolPermissionContext-BSFV23IL.js");
500
505
  const sessionIdForSdk = getPybAgentSessionId();
501
506
  const trackerPersistenceMode = "required";
@@ -894,9 +899,9 @@ async function setup(cwd2, safeMode) {
894
899
  grantReadPermissionForOriginalDir();
895
900
  let agentLoader;
896
901
  try {
897
- agentLoader = await import("./loader-EGMA6CWF.js");
902
+ agentLoader = await import("./loader-TS2HH5EN.js");
898
903
  } catch {
899
- agentLoader = await import("./loader-EGMA6CWF.js");
904
+ agentLoader = await import("./loader-TS2HH5EN.js");
900
905
  }
901
906
  const { startAgentWatcher } = agentLoader;
902
907
  await startAgentWatcher(() => {
@@ -1810,6 +1815,28 @@ function showInvalidConfigDialog({
1810
1815
  });
1811
1816
  }
1812
1817
 
1818
+ // src/utils/session/sessionStoreBootstrap.ts
1819
+ import { existsSync } from "fs";
1820
+ function ensureSessionStoreBootstrap() {
1821
+ const flags = getSessionStoreFlags();
1822
+ if (!flags.sqlReadEnabled && !flags.sqlWriteEnabled) {
1823
+ return {
1824
+ dbPath: getSessionStoreDbPath(),
1825
+ created: false,
1826
+ skipped: true
1827
+ };
1828
+ }
1829
+ const dbPath = getSessionStoreDbPath();
1830
+ const existed = existsSync(dbPath);
1831
+ const store = createSessionSqlStore({ dbFilePath: dbPath });
1832
+ store.close();
1833
+ return {
1834
+ dbPath,
1835
+ created: !existed,
1836
+ skipped: false
1837
+ };
1838
+ }
1839
+
1813
1840
  // src/entrypoints/cli/runCli.tsx
1814
1841
  function omitKeys(input, ...keys) {
1815
1842
  const result = { ...input };
@@ -1862,6 +1889,7 @@ function filterTasksByStatus(tasks, statuses) {
1862
1889
  }
1863
1890
  async function runCli() {
1864
1891
  initDebugLogger();
1892
+ ensureSessionStoreBootstrap();
1865
1893
  try {
1866
1894
  enableConfigs();
1867
1895
  queueMicrotask(() => {
@@ -2116,12 +2144,12 @@ async function parseArgs(stdinContent, renderContext) {
2116
2144
  assertMinVersion();
2117
2145
  {
2118
2146
  const requested = Array.isArray(pluginDir) && pluginDir.length > 0 ? pluginDir : [];
2119
- const { listEnabledInstalledPluginPackRoots } = await import("./skillMarketplace-R5ZEB7NX.js");
2147
+ const { listEnabledInstalledPluginPackRoots } = await import("./skillMarketplace-F3LNNAWT.js");
2120
2148
  const installed = listEnabledInstalledPluginPackRoots();
2121
2149
  const all = [...installed, ...requested].filter(Boolean);
2122
2150
  const deduped = Array.from(new Set(all));
2123
2151
  if (deduped.length > 0) {
2124
- const { configureSessionPlugins } = await import("./pluginRuntime-DRDVDAUU.js");
2152
+ const { configureSessionPlugins } = await import("./pluginRuntime-HM55RXJW.js");
2125
2153
  const { errors } = await configureSessionPlugins({
2126
2154
  pluginDirs: deduped
2127
2155
  });
@@ -2131,9 +2159,9 @@ async function parseArgs(stdinContent, renderContext) {
2131
2159
  }
2132
2160
  }
2133
2161
  const [{ ask }, { getTools }, { getCommands }] = await Promise.all([
2134
- import("./ask-VKXARFSE.js"),
2135
- import("./tools-XDOXLNVD.js"),
2136
- import("./commands-E6P6G6RL.js")
2162
+ import("./ask-2NXAGZUU.js"),
2163
+ import("./tools-4WOQWDGA.js"),
2164
+ import("./commands-FVAUVYN5.js")
2137
2165
  ]);
2138
2166
  const commands = await getCommands();
2139
2167
  const mcpClientsPromise = Array.isArray(mcpConfig) && mcpConfig.length > 0 || strictMcpConfig === true ? getClientsForCliMcpConfig({
@@ -2152,8 +2180,8 @@ async function parseArgs(stdinContent, renderContext) {
2152
2180
  const {
2153
2181
  loadPybAgentSessionMessages,
2154
2182
  findMostRecentPybAgentSessionId
2155
- } = await import("./pybAgentSessionLoad-YAEB2WL4.js");
2156
- const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-C7MUM2PL.js");
2183
+ } = await import("./pybAgentSessionLoad-G6BSOKJV.js");
2184
+ const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-GFO2HI4V.js");
2157
2185
  const { isUuid } = await import("./uuid-CVHEFGW4.js");
2158
2186
  const { setPybAgentSessionId, getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
2159
2187
  const { randomUUID } = await import("crypto");
@@ -2278,7 +2306,7 @@ async function parseArgs(stdinContent, renderContext) {
2278
2306
  { getLatestVersion, getUpdateCommandSuggestions },
2279
2307
  semverMod
2280
2308
  ] = await Promise.all([
2281
- import("./autoUpdater-7EWH6KLS.js"),
2309
+ import("./autoUpdater-UZGQSBVX.js"),
2282
2310
  import("semver")
2283
2311
  ]);
2284
2312
  const semver = semverMod?.default ?? semverMod;
@@ -2339,7 +2367,7 @@ async function parseArgs(stdinContent, renderContext) {
2339
2367
  const isDefaultModel = await isDefaultSlowAndCapableModel();
2340
2368
  {
2341
2369
  const { render: render3 } = await import("ink");
2342
- const { REPL } = await import("./REPL-KRZBKRH2.js");
2370
+ const { REPL } = await import("./REPL-K6NYKODR.js");
2343
2371
  render3(
2344
2372
  /* @__PURE__ */ React10.createElement(
2345
2373
  REPL,
@@ -2517,7 +2545,7 @@ async function parseArgs(stdinContent, renderContext) {
2517
2545
  { replace: !!replace }
2518
2546
  );
2519
2547
  saveGlobalConfig(nextConfig);
2520
- await import("./model-ECTUAZ5Q.js").then(({ reloadModelManager }) => {
2548
+ await import("./model-QGIJDQKV.js").then(({ reloadModelManager }) => {
2521
2549
  reloadModelManager();
2522
2550
  });
2523
2551
  if (warnings.length > 0) {
@@ -2536,7 +2564,7 @@ async function parseArgs(stdinContent, renderContext) {
2536
2564
  const workingDir = typeof options?.cwd === "string" ? options.cwd : typeof programCwd === "string" ? programCwd : cwd();
2537
2565
  const asJson = options?.json === true;
2538
2566
  await setup(workingDir, false);
2539
- const { reloadModelManager, getModelManager: getModelManager2 } = await import("./model-ECTUAZ5Q.js");
2567
+ const { reloadModelManager, getModelManager: getModelManager2 } = await import("./model-QGIJDQKV.js");
2540
2568
  reloadModelManager();
2541
2569
  const manager = getModelManager2();
2542
2570
  const config2 = getGlobalConfig();
@@ -2610,7 +2638,7 @@ Model profiles (${active.length}/${profiles.length} active):
2610
2638
  try {
2611
2639
  const workingDir = typeof options?.cwd === "string" ? options.cwd : cwd();
2612
2640
  await setup(workingDir, false);
2613
- const { validateAgentTemplates } = await import("./agentsValidate-Q6TKU7TM.js");
2641
+ const { validateAgentTemplates } = await import("./agentsValidate-QQUWQEIR.js");
2614
2642
  const report = await validateAgentTemplates({
2615
2643
  cwd: workingDir,
2616
2644
  paths: Array.isArray(paths) ? paths : [],
@@ -2654,7 +2682,7 @@ Model profiles (${active.length}/${profiles.length} active):
2654
2682
  const registerMarketplaceCommands = (marketplaceCmd2) => {
2655
2683
  marketplaceCmd2.command("add <source>").description("Add a marketplace from a URL, path, or GitHub repo").action(async (source) => {
2656
2684
  try {
2657
- const { addMarketplace } = await import("./skillMarketplace-R5ZEB7NX.js");
2685
+ const { addMarketplace } = await import("./skillMarketplace-F3LNNAWT.js");
2658
2686
  console.log("Adding marketplace...");
2659
2687
  const { name } = await addMarketplace(source);
2660
2688
  console.log(`Successfully added marketplace: ${name}`);
@@ -2666,7 +2694,7 @@ Model profiles (${active.length}/${profiles.length} active):
2666
2694
  });
2667
2695
  marketplaceCmd2.command("list").description("List all configured marketplaces").option("--json", "Output as JSON").action(async (options) => {
2668
2696
  try {
2669
- const { listMarketplaces } = await import("./skillMarketplace-R5ZEB7NX.js");
2697
+ const { listMarketplaces } = await import("./skillMarketplace-F3LNNAWT.js");
2670
2698
  const marketplaces = listMarketplaces();
2671
2699
  if (options.json) {
2672
2700
  console.log(JSON.stringify(marketplaces, null, 2));
@@ -2705,7 +2733,7 @@ Model profiles (${active.length}/${profiles.length} active):
2705
2733
  });
2706
2734
  marketplaceCmd2.command("remove <name>").alias("rm").description("Remove a configured marketplace").action(async (name) => {
2707
2735
  try {
2708
- const { removeMarketplace } = await import("./skillMarketplace-R5ZEB7NX.js");
2736
+ const { removeMarketplace } = await import("./skillMarketplace-F3LNNAWT.js");
2709
2737
  removeMarketplace(name);
2710
2738
  console.log(`Successfully removed marketplace: ${name}`);
2711
2739
  process.exit(0);
@@ -2722,7 +2750,7 @@ Model profiles (${active.length}/${profiles.length} active):
2722
2750
  listMarketplaces,
2723
2751
  refreshAllMarketplacesAsync,
2724
2752
  refreshMarketplaceAsync
2725
- } = await import("./skillMarketplace-R5ZEB7NX.js");
2753
+ } = await import("./skillMarketplace-F3LNNAWT.js");
2726
2754
  const trimmed = typeof name === "string" ? name.trim() : "";
2727
2755
  if (trimmed) {
2728
2756
  console.log(`Updating marketplace: ${trimmed}...`);
@@ -2773,9 +2801,9 @@ Model profiles (${active.length}/${profiles.length} active):
2773
2801
  );
2774
2802
  process.exit(1);
2775
2803
  }
2776
- const { setCwd: setCwd2 } = await import("./state-W25DUPH2.js");
2804
+ const { setCwd: setCwd2 } = await import("./state-66VUERW2.js");
2777
2805
  await setCwd2(options.cwd ?? cwd());
2778
- const { installSkillPlugin } = await import("./skillMarketplace-R5ZEB7NX.js");
2806
+ const { installSkillPlugin } = await import("./skillMarketplace-F3LNNAWT.js");
2779
2807
  const result = installSkillPlugin(plugin, {
2780
2808
  scope,
2781
2809
  force: options.force === true
@@ -2802,9 +2830,9 @@ ${skillList}`);
2802
2830
  );
2803
2831
  process.exit(1);
2804
2832
  }
2805
- const { setCwd: setCwd2 } = await import("./state-W25DUPH2.js");
2833
+ const { setCwd: setCwd2 } = await import("./state-66VUERW2.js");
2806
2834
  await setCwd2(options.cwd ?? cwd());
2807
- const { uninstallSkillPlugin } = await import("./skillMarketplace-R5ZEB7NX.js");
2835
+ const { uninstallSkillPlugin } = await import("./skillMarketplace-F3LNNAWT.js");
2808
2836
  const result = uninstallSkillPlugin(plugin, { scope });
2809
2837
  const skillList = result.removedSkills.length > 0 ? `Skills: ${result.removedSkills.join(", ")}` : "Skills: (none)";
2810
2838
  console.log(`Uninstalled ${result.pluginSpec}
@@ -2828,9 +2856,9 @@ ${skillList}`);
2828
2856
  );
2829
2857
  process.exit(1);
2830
2858
  }
2831
- const { setCwd: setCwd2, getCwd: getCwd2 } = await import("./state-W25DUPH2.js");
2859
+ const { setCwd: setCwd2, getCwd: getCwd2 } = await import("./state-66VUERW2.js");
2832
2860
  await setCwd2(options.cwd ?? cwd());
2833
- const { listInstalledSkillPlugins } = await import("./skillMarketplace-R5ZEB7NX.js");
2861
+ const { listInstalledSkillPlugins } = await import("./skillMarketplace-F3LNNAWT.js");
2834
2862
  const all = listInstalledSkillPlugins();
2835
2863
  const filtered = Object.fromEntries(
2836
2864
  Object.entries(all).filter(([, record]) => {
@@ -2874,9 +2902,9 @@ ${skillList}`);
2874
2902
  );
2875
2903
  process.exit(1);
2876
2904
  }
2877
- const { setCwd: setCwd2 } = await import("./state-W25DUPH2.js");
2905
+ const { setCwd: setCwd2 } = await import("./state-66VUERW2.js");
2878
2906
  await setCwd2(options.cwd ?? cwd());
2879
- const { enableSkillPlugin } = await import("./skillMarketplace-R5ZEB7NX.js");
2907
+ const { enableSkillPlugin } = await import("./skillMarketplace-F3LNNAWT.js");
2880
2908
  const result = enableSkillPlugin(plugin, { scope });
2881
2909
  console.log(`Enabled ${result.pluginSpec}`);
2882
2910
  process.exit(0);
@@ -2898,9 +2926,9 @@ ${skillList}`);
2898
2926
  );
2899
2927
  process.exit(1);
2900
2928
  }
2901
- const { setCwd: setCwd2 } = await import("./state-W25DUPH2.js");
2929
+ const { setCwd: setCwd2 } = await import("./state-66VUERW2.js");
2902
2930
  await setCwd2(options.cwd ?? cwd());
2903
- const { disableSkillPlugin } = await import("./skillMarketplace-R5ZEB7NX.js");
2931
+ const { disableSkillPlugin } = await import("./skillMarketplace-F3LNNAWT.js");
2904
2932
  const result = disableSkillPlugin(plugin, { scope });
2905
2933
  console.log(`Disabled ${result.pluginSpec}`);
2906
2934
  process.exit(0);
@@ -2911,9 +2939,9 @@ ${skillList}`);
2911
2939
  });
2912
2940
  pluginCmd.command("validate <path>").description("Validate a plugin or marketplace manifest").option("--cwd <cwd>", "The current working directory", String, cwd()).action(async (path, options) => {
2913
2941
  try {
2914
- const { setCwd: setCwd2 } = await import("./state-W25DUPH2.js");
2942
+ const { setCwd: setCwd2 } = await import("./state-66VUERW2.js");
2915
2943
  await setCwd2(options.cwd ?? cwd());
2916
- const { formatValidationResult, validatePluginOrMarketplacePath } = await import("./pluginValidation-RHPC5SAR.js");
2944
+ const { formatValidationResult, validatePluginOrMarketplacePath } = await import("./pluginValidation-7TELFKDN.js");
2917
2945
  const result = validatePluginOrMarketplacePath(path);
2918
2946
  console.log(
2919
2947
  `Validating ${result.fileType} manifest: ${result.filePath}
@@ -2935,9 +2963,9 @@ ${skillList}`);
2935
2963
  registerMarketplaceCommands(marketplaceCmd);
2936
2964
  skillsCmd.command("install <plugin>").description("Install a skill plugin pack (<plugin>@<marketplace>)").option("--cwd <cwd>", "The current working directory", String, cwd()).option("--project", "Install into this project (.pyb/...)", () => true).option("--force", "Overwrite existing installed files", () => true).action(async (plugin, options) => {
2937
2965
  try {
2938
- const { setCwd: setCwd2 } = await import("./state-W25DUPH2.js");
2966
+ const { setCwd: setCwd2 } = await import("./state-66VUERW2.js");
2939
2967
  await setCwd2(options.cwd ?? cwd());
2940
- const { installSkillPlugin } = await import("./skillMarketplace-R5ZEB7NX.js");
2968
+ const { installSkillPlugin } = await import("./skillMarketplace-F3LNNAWT.js");
2941
2969
  const result = installSkillPlugin(plugin, {
2942
2970
  project: options.project === true,
2943
2971
  force: options.force === true
@@ -2953,9 +2981,9 @@ ${skillList}`);
2953
2981
  });
2954
2982
  skillsCmd.command("uninstall <plugin>").description("Uninstall a skill plugin pack (<plugin>@<marketplace>)").option("--cwd <cwd>", "The current working directory", String, cwd()).option("--project", "Uninstall from this project (.pyb/...)", () => true).action(async (plugin, options) => {
2955
2983
  try {
2956
- const { setCwd: setCwd2 } = await import("./state-W25DUPH2.js");
2984
+ const { setCwd: setCwd2 } = await import("./state-66VUERW2.js");
2957
2985
  await setCwd2(options.cwd ?? cwd());
2958
- const { uninstallSkillPlugin } = await import("./skillMarketplace-R5ZEB7NX.js");
2986
+ const { uninstallSkillPlugin } = await import("./skillMarketplace-F3LNNAWT.js");
2959
2987
  const result = uninstallSkillPlugin(plugin, {
2960
2988
  project: options.project === true
2961
2989
  });
@@ -2970,7 +2998,7 @@ ${skillList}`);
2970
2998
  });
2971
2999
  skillsCmd.command("list-installed").description("List installed skill plugins").action(async () => {
2972
3000
  try {
2973
- const { listInstalledSkillPlugins } = await import("./skillMarketplace-R5ZEB7NX.js");
3001
+ const { listInstalledSkillPlugins } = await import("./skillMarketplace-F3LNNAWT.js");
2974
3002
  console.log(JSON.stringify(listInstalledSkillPlugins(), null, 2));
2975
3003
  process.exit(0);
2976
3004
  } catch (error) {
@@ -2992,7 +3020,7 @@ ${skillList}`);
2992
3020
  const mcp = program.command("mcp").description("Configure and manage MCP servers");
2993
3021
  mcp.command("serve").description(`Start the ${PRODUCT_NAME} MCP server`).action(async () => {
2994
3022
  const providedCwd = program.opts().cwd ?? cwd();
2995
- if (!existsSync(providedCwd)) {
3023
+ if (!existsSync2(providedCwd)) {
2996
3024
  console.error(`Error: Directory ${providedCwd} does not exist`);
2997
3025
  process.exit(1);
2998
3026
  }
@@ -3535,10 +3563,10 @@ ${skillList}`);
3535
3563
  try {
3536
3564
  const scope = ensureConfigScope(options.scope);
3537
3565
  const platform = process.platform;
3538
- const { existsSync: existsSync2, readFileSync: readFileSync2 } = await import("fs");
3566
+ const { existsSync: existsSync3, readFileSync: readFileSync2 } = await import("fs");
3539
3567
  const { join: join3 } = await import("path");
3540
3568
  const { exec } = await import("child_process");
3541
- const isWSL = platform === "linux" && existsSync2("/proc/version") && readFileSync2("/proc/version", "utf-8").toLowerCase().includes("microsoft");
3569
+ const isWSL = platform === "linux" && existsSync3("/proc/version") && readFileSync2("/proc/version", "utf-8").toLowerCase().includes("microsoft");
3542
3570
  if (platform !== "darwin" && platform !== "win32" && !isWSL) {
3543
3571
  console.error(
3544
3572
  "Error: This command is only supported on macOS, Windows, and WSL"
@@ -3568,7 +3596,7 @@ ${skillList}`);
3568
3596
  });
3569
3597
  configPath = `/mnt/c/Users/${whoamiCommand}/AppData/Roaming/Claude/claude_desktop_config.json`;
3570
3598
  }
3571
- if (!existsSync2(configPath)) {
3599
+ if (!existsSync3(configPath)) {
3572
3600
  console.error(`Error: Config file not found at ${configPath}`);
3573
3601
  process.exit(1);
3574
3602
  }
@@ -3616,7 +3644,7 @@ ${skillList}`);
3616
3644
  const ink = await import("ink");
3617
3645
  const reactModule = await import("react");
3618
3646
  const inkjsui = await import("@inkjs/ui");
3619
- const utilsTheme = await import("./theme-YNA47SVG.js");
3647
+ const utilsTheme = await import("./theme-QGI5L27W.js");
3620
3648
  const { render: render3 } = ink;
3621
3649
  const React11 = reactModule;
3622
3650
  const { MultiSelect: MultiSelect2 } = inkjsui;
@@ -3759,11 +3787,11 @@ ${skillList}`);
3759
3787
  const commandOptions = getCommandOptions(options);
3760
3788
  const workingDir = resolveWorkingDir(commandOptions, program);
3761
3789
  await setup(workingDir, false);
3762
- const { getAbsolutePath } = await import("./file-X2XAPBRZ.js");
3763
- const { LspFacade } = await import("./lsp-JMPOPT6A.js");
3764
- const { existsSync: existsSync2 } = await import("fs");
3790
+ const { getAbsolutePath } = await import("./file-WT4CNRBH.js");
3791
+ const { LspFacade } = await import("./lsp-KV7OBBMM.js");
3792
+ const { existsSync: existsSync3 } = await import("fs");
3765
3793
  const absPath = getAbsolutePath(file) ?? file;
3766
- if (!existsSync2(absPath)) {
3794
+ if (!existsSync3(absPath)) {
3767
3795
  console.error(`File does not exist: ${file}`);
3768
3796
  process.exit(1);
3769
3797
  }
@@ -3791,7 +3819,7 @@ ${skillList}`);
3791
3819
  try {
3792
3820
  const workingDir = resolveWorkingDir(options, program);
3793
3821
  await setup(workingDir, false);
3794
- const { LspFacade } = await import("./lsp-JMPOPT6A.js");
3822
+ const { LspFacade } = await import("./lsp-KV7OBBMM.js");
3795
3823
  const result = await LspFacade.run({
3796
3824
  operation: "workspaceSymbol",
3797
3825
  filePath: query,
@@ -3808,11 +3836,11 @@ ${skillList}`);
3808
3836
  try {
3809
3837
  const workingDir = resolveWorkingDir(options, program);
3810
3838
  await setup(workingDir, false);
3811
- const { getAbsolutePath } = await import("./file-X2XAPBRZ.js");
3812
- const { LspFacade } = await import("./lsp-JMPOPT6A.js");
3813
- const { existsSync: existsSync2 } = await import("fs");
3839
+ const { getAbsolutePath } = await import("./file-WT4CNRBH.js");
3840
+ const { LspFacade } = await import("./lsp-KV7OBBMM.js");
3841
+ const { existsSync: existsSync3 } = await import("fs");
3814
3842
  const absPath = getAbsolutePath(file) ?? file;
3815
- if (!existsSync2(absPath)) {
3843
+ if (!existsSync3(absPath)) {
3816
3844
  console.error(`File does not exist: ${file}`);
3817
3845
  process.exit(1);
3818
3846
  }
@@ -3832,7 +3860,7 @@ ${skillList}`);
3832
3860
  try {
3833
3861
  const workingDir = resolveWorkingDir(options, program);
3834
3862
  await setup(workingDir, false);
3835
- const { LspFacade } = await import("./lsp-JMPOPT6A.js");
3863
+ const { LspFacade } = await import("./lsp-KV7OBBMM.js");
3836
3864
  const status = LspFacade.status();
3837
3865
  console.log(JSON.stringify(status, null, 2));
3838
3866
  process.exit(0);
@@ -3846,7 +3874,7 @@ ${skillList}`);
3846
3874
  const commandOptions = getCommandOptions(options);
3847
3875
  const workingDir = resolveWorkingDir(commandOptions, program);
3848
3876
  await setup(workingDir, false);
3849
- const { LspFacade } = await import("./lsp-JMPOPT6A.js");
3877
+ const { LspFacade } = await import("./lsp-KV7OBBMM.js");
3850
3878
  const host = typeof commandOptions?.host === "string" && commandOptions.host.length > 0 ? commandOptions.host : "127.0.0.1";
3851
3879
  const port = typeof commandOptions?.port === "number" && !Number.isNaN(commandOptions.port) ? commandOptions.port : 7337;
3852
3880
  const server = LspFacade.serveStatus({ host, port });
@@ -3872,7 +3900,7 @@ ${skillList}`);
3872
3900
  program.command("update").description("Show manual upgrade commands (no auto-install)").action(async () => {
3873
3901
  console.log(`Current version: ${MACRO.VERSION}`);
3874
3902
  console.log("Checking for updates...");
3875
- const { getLatestVersion, getUpdateCommandSuggestions } = await import("./autoUpdater-7EWH6KLS.js");
3903
+ const { getLatestVersion, getUpdateCommandSuggestions } = await import("./autoUpdater-UZGQSBVX.js");
3876
3904
  const latestVersion = await getLatestVersion();
3877
3905
  if (!latestVersion) {
3878
3906
  console.error("Failed to check for updates");
@@ -3927,8 +3955,8 @@ ${skillList}`);
3927
3955
  await setup(cwd2, safe);
3928
3956
  assertMinVersion();
3929
3957
  const [{ getTools }, { getCommands }] = await Promise.all([
3930
- import("./tools-XDOXLNVD.js"),
3931
- import("./commands-E6P6G6RL.js")
3958
+ import("./tools-4WOQWDGA.js"),
3959
+ import("./commands-FVAUVYN5.js")
3932
3960
  ]);
3933
3961
  const [allTools, commands, mcpClients] = await Promise.all([
3934
3962
  getTools(
@@ -3939,12 +3967,12 @@ ${skillList}`);
3939
3967
  ]);
3940
3968
  const tools = disableSlashCommands === true ? allTools.filter((t) => t.name !== "SlashCommand") : allTools;
3941
3969
  if (identifier !== void 0) {
3942
- const { loadPybAgentSessionMessages } = await import("./pybAgentSessionLoad-YAEB2WL4.js");
3943
- const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-C7MUM2PL.js");
3970
+ const { loadPybAgentSessionMessages } = await import("./pybAgentSessionLoad-G6BSOKJV.js");
3971
+ const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-GFO2HI4V.js");
3944
3972
  const { setPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
3945
3973
  const rawIdentifier = String(identifier).trim();
3946
3974
  const isLegacyNumber = /^-?\\d+$/.test(rawIdentifier);
3947
- const isLegacyPath = !isLegacyNumber && existsSync(rawIdentifier);
3975
+ const isLegacyPath = !isLegacyNumber && existsSync2(rawIdentifier);
3948
3976
  let messages;
3949
3977
  let messageLogName = dateToFilename(/* @__PURE__ */ new Date());
3950
3978
  let initialForkNumber = void 0;
@@ -4010,7 +4038,7 @@ ${skillList}`);
4010
4038
  const isDefaultModel = await isDefaultSlowAndCapableModel();
4011
4039
  {
4012
4040
  const { render: render3 } = await import("ink");
4013
- const { REPL } = await import("./REPL-KRZBKRH2.js");
4041
+ const { REPL } = await import("./REPL-K6NYKODR.js");
4014
4042
  render3(
4015
4043
  /* @__PURE__ */ React10.createElement(
4016
4044
  REPL,
@@ -4037,7 +4065,7 @@ ${skillList}`);
4037
4065
  process.exit(1);
4038
4066
  }
4039
4067
  } else {
4040
- const { listPybAgentSessions } = await import("./pybAgentSessionResume-C7MUM2PL.js");
4068
+ const { listPybAgentSessions } = await import("./pybAgentSessionResume-GFO2HI4V.js");
4041
4069
  const sessions = listPybAgentSessions({ cwd: cwd2 });
4042
4070
  if (sessions.length === 0) {
4043
4071
  console.error("No conversation found to resume");
@@ -4142,7 +4170,7 @@ async function gracefulExit(code = 0) {
4142
4170
  }
4143
4171
  isGracefulExitInProgress = true;
4144
4172
  try {
4145
- const { runSessionEndHooks } = await import("./pybHooks-DWLOM55R.js");
4173
+ const { runSessionEndHooks } = await import("./pybHooks-MRBA3GKS.js");
4146
4174
  const { getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
4147
4175
  const { tmpdir } = await import("os");
4148
4176
  const { join: join3 } = await import("path");