pybao-cli 1.5.21 → 1.5.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/REPL-CI5ET6VF.js +50 -0
- package/dist/{acp-VH2FWCMR.js → acp-5G7LPADD.js} +32 -32
- package/dist/{agentsValidate-4E7AHAMS.js → agentsValidate-BIRAVXBL.js} +7 -7
- package/dist/{ask-R3YZ5B44.js → ask-XQZT6WIO.js} +31 -31
- package/dist/{autoUpdater-DCNAXD4F.js → autoUpdater-DDJAJPKA.js} +3 -3
- package/dist/{chunk-GIXE5FJ2.js → chunk-2GHNW642.js} +1 -1
- package/dist/{chunk-NRQHLVJJ.js → chunk-2SVUNNJB.js} +2 -2
- package/dist/{chunk-6UNYL6XK.js → chunk-3CC7QXCN.js} +222 -75
- package/dist/chunk-3CC7QXCN.js.map +7 -0
- package/dist/{chunk-H2ZE5QDY.js → chunk-4ZZYPG6P.js} +4 -4
- package/dist/{chunk-TBEA6BY3.js → chunk-5B7UCAYL.js} +1 -1
- package/dist/{chunk-ZQR3MM2D.js → chunk-652OMXEE.js} +2 -2
- package/dist/{chunk-EP62LHB7.js → chunk-6QGIRDZS.js} +1 -1
- package/dist/{chunk-BED7SG2Q.js → chunk-76BOJQUE.js} +1 -1
- package/dist/{chunk-TXZ5UTGP.js → chunk-7SYDIES4.js} +1 -1
- package/dist/{chunk-TXZ5UTGP.js.map → chunk-7SYDIES4.js.map} +1 -1
- package/dist/{chunk-CSONCQLF.js → chunk-A6QEPK5J.js} +2 -2
- package/dist/{chunk-X5LLT4P2.js → chunk-ABJT5MG2.js} +1 -1
- package/dist/{chunk-56IL2VXC.js → chunk-C2GNLGBM.js} +1 -1
- package/dist/{chunk-2OOER4FR.js → chunk-CNMNKSWQ.js} +3 -3
- package/dist/{chunk-QE7PZPHW.js → chunk-CT7LWVB7.js} +1 -1
- package/dist/{chunk-P5NTGZ5H.js → chunk-CZZKRPE2.js} +1 -1
- package/dist/{chunk-P5NTGZ5H.js.map → chunk-CZZKRPE2.js.map} +1 -1
- package/dist/chunk-G5MP72ZL.js +515 -0
- package/dist/chunk-G5MP72ZL.js.map +7 -0
- package/dist/{chunk-25GZITCX.js → chunk-GU4XA76N.js} +3 -3
- package/dist/chunk-KQZAS4DO.js +582 -0
- package/dist/chunk-KQZAS4DO.js.map +7 -0
- package/dist/{chunk-VP5A6FKG.js → chunk-LBDLSBXN.js} +4 -1
- package/dist/{chunk-SE7UGQCE.js → chunk-M7FEUIHO.js} +2 -2
- package/dist/{chunk-HA7FKBZI.js → chunk-MMW6MLFR.js} +2 -2
- package/dist/{chunk-XRLMQN3Q.js → chunk-MN77HNBB.js} +4 -4
- package/dist/{chunk-VY5KEHU5.js → chunk-N7GEPTZB.js} +3 -3
- package/dist/{chunk-MMMMRMOG.js → chunk-O7LWCCRJ.js} +3 -3
- package/dist/{chunk-5VO2CFAL.js → chunk-PUPDIRI6.js} +2 -2
- package/dist/{chunk-YQ2RQUQF.js → chunk-QCI5HPTA.js} +1 -1
- package/dist/{chunk-KMCUZUZG.js → chunk-QSMZLK7K.js} +3 -3
- package/dist/{chunk-4ZGZTWMR.js → chunk-S65MIABQ.js} +4 -4
- package/dist/{chunk-3UWTN6DM.js → chunk-V22PQM4W.js} +3 -3
- package/dist/{chunk-RQ5X6LFM.js → chunk-VVXC3SNP.js} +4 -4
- package/dist/{chunk-LRL3MYKR.js → chunk-W7VIESST.js} +3 -3
- package/dist/{chunk-CPYDPN2J.js → chunk-XEVB4WON.js} +15 -15
- package/dist/chunk-ZB3ZWD2K.js +96 -0
- package/dist/chunk-ZB3ZWD2K.js.map +7 -0
- package/dist/{cli-RBMZQ5KF.js → cli-YIANCHDD.js} +130 -103
- package/dist/cli-YIANCHDD.js.map +7 -0
- package/dist/commands-4YMZW52K.js +54 -0
- package/dist/{config-7TO5SQU5.js → config-QVH3VNUQ.js} +4 -4
- package/dist/{context-LRA2DKJT.js → context-5VXEWH3G.js} +6 -6
- package/dist/{conversationPersistence-Z4QSI5NB.js → conversationPersistence-INUNJHOV.js} +3 -3
- package/dist/{conversationTracker-B3DMEHMA.js → conversationTracker-H25IOHBE.js} +4 -4
- package/dist/{customCommands-6JZ2VUO2.js → customCommands-7RZHKH2K.js} +4 -4
- package/dist/{env-37ALKFXU.js → env-DPJTGHMP.js} +2 -2
- package/dist/{file-7EOMBX72.js → file-D7W2FBZP.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-3KQG5NEP.js → llm-TOU5REY5.js} +32 -32
- package/dist/{llmLazy-ENEH3KAB.js → llmLazy-HSKKIGLC.js} +1 -1
- package/dist/{loader-D6V3WFL6.js → loader-YUP6OJTJ.js} +4 -4
- package/dist/{lsp-CTPOMI7O.js → lsp-7QKC4DVK.js} +6 -6
- package/dist/{lspAnchor-PPPTHRQH.js → lspAnchor-LCRZ23GA.js} +6 -6
- package/dist/{mcp-6M34WBA5.js → mcp-KK6BOD6I.js} +7 -7
- package/dist/{mentionProcessor-TS4SITI3.js → mentionProcessor-V6JH6HUD.js} +5 -5
- package/dist/{messages-BINU6SYX.js → messages-7NVTXWIJ.js} +1 -1
- package/dist/{model-6IW224UU.js → model-QSDSUJDB.js} +5 -5
- package/dist/{openai-O6CGVMYK.js → openai-JC3KJN3H.js} +5 -5
- package/dist/{outputStyles-7PPMLSV6.js → outputStyles-TPH3CCB4.js} +4 -4
- package/dist/{pluginRuntime-RU5STQ6F.js → pluginRuntime-7EK4LQDD.js} +6 -6
- package/dist/{pluginValidation-JTJTB3TB.js → pluginValidation-BJWCS55I.js} +6 -6
- package/dist/prompts-KQNPPEOG.js +56 -0
- package/dist/{pybAgentSessionLoad-ZXQAHTQS.js → pybAgentSessionLoad-V3IAJJPS.js} +4 -6
- package/dist/{pybAgentSessionResume-R73KFN3V.js → pybAgentSessionResume-WE7ET356.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-N4SMTC64.js → pybAgentStreamJsonSession-VWDYV4XL.js} +1 -1
- package/dist/{pybHooks-NGJ5OFAI.js → pybHooks-UV7BTIVT.js} +4 -4
- package/dist/query-KAZY5LOW.js +54 -0
- package/dist/{registry-FKY6JQ3L.js → registry-FK6UGJPV.js} +5 -5
- package/dist/{ripgrep-O7MOW25M.js → ripgrep-CXJ4DFPU.js} +3 -3
- package/dist/{skillMarketplace-VK3AYR6Q.js → skillMarketplace-QUJXDKZK.js} +3 -3
- package/dist/{state-T57IG35V.js → state-GC3XELIE.js} +2 -2
- package/dist/{theme-ZEFQIPVH.js → theme-24PLJSPD.js} +5 -5
- package/dist/{toolPermissionSettings-ERNXVP7A.js → toolPermissionSettings-S6NJPBKT.js} +6 -6
- package/dist/tools-NC5R4I6F.js +55 -0
- package/dist/{userInput-JBAUBHGI.js → userInput-4VZSNII7.js} +34 -34
- package/package.json +1 -1
- package/dist/REPL-64WF5V7K.js +0 -50
- package/dist/chunk-6UNYL6XK.js.map +0 -7
- package/dist/chunk-BRSPPFSY.js +0 -196
- package/dist/chunk-BRSPPFSY.js.map +0 -7
- package/dist/chunk-N3T2WAYN.js +0 -138
- package/dist/chunk-N3T2WAYN.js.map +0 -7
- package/dist/chunk-TSAURYF2.js +0 -81
- package/dist/chunk-TSAURYF2.js.map +0 -7
- package/dist/cli-RBMZQ5KF.js.map +0 -7
- package/dist/commands-WPHK776A.js +0 -54
- package/dist/prompts-CAPCICF3.js +0 -56
- package/dist/query-CYTIVMQ6.js +0 -54
- package/dist/tools-2XLLIKZM.js +0 -55
- /package/dist/{REPL-64WF5V7K.js.map → REPL-CI5ET6VF.js.map} +0 -0
- /package/dist/{acp-VH2FWCMR.js.map → acp-5G7LPADD.js.map} +0 -0
- /package/dist/{agentsValidate-4E7AHAMS.js.map → agentsValidate-BIRAVXBL.js.map} +0 -0
- /package/dist/{ask-R3YZ5B44.js.map → ask-XQZT6WIO.js.map} +0 -0
- /package/dist/{autoUpdater-DCNAXD4F.js.map → autoUpdater-DDJAJPKA.js.map} +0 -0
- /package/dist/{chunk-GIXE5FJ2.js.map → chunk-2GHNW642.js.map} +0 -0
- /package/dist/{chunk-NRQHLVJJ.js.map → chunk-2SVUNNJB.js.map} +0 -0
- /package/dist/{chunk-H2ZE5QDY.js.map → chunk-4ZZYPG6P.js.map} +0 -0
- /package/dist/{chunk-TBEA6BY3.js.map → chunk-5B7UCAYL.js.map} +0 -0
- /package/dist/{chunk-ZQR3MM2D.js.map → chunk-652OMXEE.js.map} +0 -0
- /package/dist/{chunk-EP62LHB7.js.map → chunk-6QGIRDZS.js.map} +0 -0
- /package/dist/{chunk-BED7SG2Q.js.map → chunk-76BOJQUE.js.map} +0 -0
- /package/dist/{chunk-CSONCQLF.js.map → chunk-A6QEPK5J.js.map} +0 -0
- /package/dist/{chunk-X5LLT4P2.js.map → chunk-ABJT5MG2.js.map} +0 -0
- /package/dist/{chunk-56IL2VXC.js.map → chunk-C2GNLGBM.js.map} +0 -0
- /package/dist/{chunk-2OOER4FR.js.map → chunk-CNMNKSWQ.js.map} +0 -0
- /package/dist/{chunk-QE7PZPHW.js.map → chunk-CT7LWVB7.js.map} +0 -0
- /package/dist/{chunk-25GZITCX.js.map → chunk-GU4XA76N.js.map} +0 -0
- /package/dist/{chunk-VP5A6FKG.js.map → chunk-LBDLSBXN.js.map} +0 -0
- /package/dist/{chunk-SE7UGQCE.js.map → chunk-M7FEUIHO.js.map} +0 -0
- /package/dist/{chunk-HA7FKBZI.js.map → chunk-MMW6MLFR.js.map} +0 -0
- /package/dist/{chunk-XRLMQN3Q.js.map → chunk-MN77HNBB.js.map} +0 -0
- /package/dist/{chunk-VY5KEHU5.js.map → chunk-N7GEPTZB.js.map} +0 -0
- /package/dist/{chunk-MMMMRMOG.js.map → chunk-O7LWCCRJ.js.map} +0 -0
- /package/dist/{chunk-5VO2CFAL.js.map → chunk-PUPDIRI6.js.map} +0 -0
- /package/dist/{chunk-YQ2RQUQF.js.map → chunk-QCI5HPTA.js.map} +0 -0
- /package/dist/{chunk-KMCUZUZG.js.map → chunk-QSMZLK7K.js.map} +0 -0
- /package/dist/{chunk-4ZGZTWMR.js.map → chunk-S65MIABQ.js.map} +0 -0
- /package/dist/{chunk-3UWTN6DM.js.map → chunk-V22PQM4W.js.map} +0 -0
- /package/dist/{chunk-RQ5X6LFM.js.map → chunk-VVXC3SNP.js.map} +0 -0
- /package/dist/{chunk-LRL3MYKR.js.map → chunk-W7VIESST.js.map} +0 -0
- /package/dist/{chunk-CPYDPN2J.js.map → chunk-XEVB4WON.js.map} +0 -0
- /package/dist/{commands-WPHK776A.js.map → commands-4YMZW52K.js.map} +0 -0
- /package/dist/{config-7TO5SQU5.js.map → config-QVH3VNUQ.js.map} +0 -0
- /package/dist/{context-LRA2DKJT.js.map → context-5VXEWH3G.js.map} +0 -0
- /package/dist/{conversationPersistence-Z4QSI5NB.js.map → conversationPersistence-INUNJHOV.js.map} +0 -0
- /package/dist/{conversationTracker-B3DMEHMA.js.map → conversationTracker-H25IOHBE.js.map} +0 -0
- /package/dist/{customCommands-6JZ2VUO2.js.map → customCommands-7RZHKH2K.js.map} +0 -0
- /package/dist/{env-37ALKFXU.js.map → env-DPJTGHMP.js.map} +0 -0
- /package/dist/{file-7EOMBX72.js.map → file-D7W2FBZP.js.map} +0 -0
- /package/dist/{llm-3KQG5NEP.js.map → llm-TOU5REY5.js.map} +0 -0
- /package/dist/{llmLazy-ENEH3KAB.js.map → llmLazy-HSKKIGLC.js.map} +0 -0
- /package/dist/{loader-D6V3WFL6.js.map → loader-YUP6OJTJ.js.map} +0 -0
- /package/dist/{lsp-CTPOMI7O.js.map → lsp-7QKC4DVK.js.map} +0 -0
- /package/dist/{lspAnchor-PPPTHRQH.js.map → lspAnchor-LCRZ23GA.js.map} +0 -0
- /package/dist/{mcp-6M34WBA5.js.map → mcp-KK6BOD6I.js.map} +0 -0
- /package/dist/{mentionProcessor-TS4SITI3.js.map → mentionProcessor-V6JH6HUD.js.map} +0 -0
- /package/dist/{messages-BINU6SYX.js.map → messages-7NVTXWIJ.js.map} +0 -0
- /package/dist/{model-6IW224UU.js.map → model-QSDSUJDB.js.map} +0 -0
- /package/dist/{openai-O6CGVMYK.js.map → openai-JC3KJN3H.js.map} +0 -0
- /package/dist/{outputStyles-7PPMLSV6.js.map → outputStyles-TPH3CCB4.js.map} +0 -0
- /package/dist/{pluginRuntime-RU5STQ6F.js.map → pluginRuntime-7EK4LQDD.js.map} +0 -0
- /package/dist/{pluginValidation-JTJTB3TB.js.map → pluginValidation-BJWCS55I.js.map} +0 -0
- /package/dist/{prompts-CAPCICF3.js.map → prompts-KQNPPEOG.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-ZXQAHTQS.js.map → pybAgentSessionLoad-V3IAJJPS.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-R73KFN3V.js.map → pybAgentSessionResume-WE7ET356.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-N4SMTC64.js.map → pybAgentStreamJsonSession-VWDYV4XL.js.map} +0 -0
- /package/dist/{pybHooks-NGJ5OFAI.js.map → pybHooks-UV7BTIVT.js.map} +0 -0
- /package/dist/{query-CYTIVMQ6.js.map → query-KAZY5LOW.js.map} +0 -0
- /package/dist/{registry-FKY6JQ3L.js.map → registry-FK6UGJPV.js.map} +0 -0
- /package/dist/{ripgrep-O7MOW25M.js.map → ripgrep-CXJ4DFPU.js.map} +0 -0
- /package/dist/{skillMarketplace-VK3AYR6Q.js.map → skillMarketplace-QUJXDKZK.js.map} +0 -0
- /package/dist/{state-T57IG35V.js.map → state-GC3XELIE.js.map} +0 -0
- /package/dist/{theme-ZEFQIPVH.js.map → theme-24PLJSPD.js.map} +0 -0
- /package/dist/{toolPermissionSettings-ERNXVP7A.js.map → toolPermissionSettings-S6NJPBKT.js.map} +0 -0
- /package/dist/{tools-2XLLIKZM.js.map → tools-NC5R4I6F.js.map} +0 -0
- /package/dist/{userInput-JBAUBHGI.js.map → userInput-4VZSNII7.js.map} +0 -0
|
@@ -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-
|
|
6
|
+
} from "./chunk-N7GEPTZB.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-
|
|
15
|
+
} from "./chunk-XEVB4WON.js";
|
|
16
16
|
import {
|
|
17
17
|
PybAgentStructuredStdio
|
|
18
18
|
} from "./chunk-5AGDLQAW.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-BKCAVW2G.js";
|
|
22
22
|
import {
|
|
23
23
|
lastX
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CZZKRPE2.js";
|
|
25
25
|
import {
|
|
26
26
|
Doctor,
|
|
27
27
|
Onboarding,
|
|
@@ -41,24 +41,28 @@ import {
|
|
|
41
41
|
review_default,
|
|
42
42
|
useExitOnCtrlCD,
|
|
43
43
|
useTerminalSize
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-EP62LHB7.js";
|
|
44
|
+
} from "./chunk-3CC7QXCN.js";
|
|
45
|
+
import "./chunk-KQZAS4DO.js";
|
|
46
|
+
import "./chunk-5P7HBXTD.js";
|
|
47
|
+
import "./chunk-W7VIESST.js";
|
|
48
|
+
import "./chunk-2GHNW642.js";
|
|
49
|
+
import "./chunk-6QGIRDZS.js";
|
|
51
50
|
import {
|
|
52
51
|
beginReplSessionScope
|
|
53
52
|
} from "./chunk-F4AXICO7.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import
|
|
53
|
+
import "./chunk-ZB3ZWD2K.js";
|
|
54
|
+
import {
|
|
55
|
+
createSessionSqlStore,
|
|
56
|
+
getSessionStoreDbPath,
|
|
57
|
+
getSessionStoreFlags
|
|
58
|
+
} from "./chunk-G5MP72ZL.js";
|
|
59
|
+
import "./chunk-CNMNKSWQ.js";
|
|
56
60
|
import {
|
|
57
61
|
clearOutputStyleCache
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
62
|
+
} from "./chunk-M7FEUIHO.js";
|
|
63
|
+
import "./chunk-A6QEPK5J.js";
|
|
60
64
|
import "./chunk-XKYHFZEC.js";
|
|
61
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-S65MIABQ.js";
|
|
62
66
|
import {
|
|
63
67
|
addMcpServer,
|
|
64
68
|
ensureConfigScope,
|
|
@@ -73,43 +77,43 @@ import {
|
|
|
73
77
|
parseEnvVars,
|
|
74
78
|
parseMcpHeaders,
|
|
75
79
|
removeMcpServer
|
|
76
|
-
} from "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
80
|
+
} from "./chunk-4ZZYPG6P.js";
|
|
81
|
+
import "./chunk-CT7LWVB7.js";
|
|
82
|
+
import "./chunk-QSMZLK7K.js";
|
|
79
83
|
import "./chunk-UNNVICVU.js";
|
|
80
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-652OMXEE.js";
|
|
81
85
|
import {
|
|
82
86
|
clearAgentCache,
|
|
83
87
|
setFlagAgentsFromCliJson
|
|
84
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-2SVUNNJB.js";
|
|
85
89
|
import {
|
|
86
90
|
setEnabledSettingSourcesFromCli
|
|
87
91
|
} from "./chunk-A3BVXXA3.js";
|
|
88
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-QCI5HPTA.js";
|
|
89
93
|
import "./chunk-3DFBSQIT.js";
|
|
90
94
|
import "./chunk-B6IMQJZM.js";
|
|
91
95
|
import "./chunk-OUXHGDLH.js";
|
|
92
|
-
import "./chunk-
|
|
96
|
+
import "./chunk-MMW6MLFR.js";
|
|
93
97
|
import "./chunk-QWIBSCDN.js";
|
|
94
|
-
import "./chunk-
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
98
|
+
import "./chunk-MN77HNBB.js";
|
|
99
|
+
import "./chunk-O7LWCCRJ.js";
|
|
100
|
+
import "./chunk-ABJT5MG2.js";
|
|
97
101
|
import "./chunk-UZ34JEUK.js";
|
|
98
|
-
import "./chunk-
|
|
102
|
+
import "./chunk-PUPDIRI6.js";
|
|
99
103
|
import "./chunk-BJSWTHRM.js";
|
|
100
104
|
import {
|
|
101
105
|
getModelManager,
|
|
102
106
|
isDefaultSlowAndCapableModel
|
|
103
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-GU4XA76N.js";
|
|
104
108
|
import {
|
|
105
109
|
getContext,
|
|
106
110
|
removeContext,
|
|
107
111
|
setContext
|
|
108
|
-
} from "./chunk-
|
|
109
|
-
import "./chunk-
|
|
112
|
+
} from "./chunk-VVXC3SNP.js";
|
|
113
|
+
import "./chunk-76BOJQUE.js";
|
|
110
114
|
import {
|
|
111
115
|
getTheme
|
|
112
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-C2GNLGBM.js";
|
|
113
117
|
import {
|
|
114
118
|
checkHasTrustDialogAccepted,
|
|
115
119
|
deleteConfigForCLI,
|
|
@@ -123,14 +127,14 @@ import {
|
|
|
123
127
|
saveGlobalConfig,
|
|
124
128
|
setConfigForCLI,
|
|
125
129
|
validateAndRepairAllGPT5Profiles
|
|
126
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-V22PQM4W.js";
|
|
127
131
|
import {
|
|
128
132
|
ConfigParseError
|
|
129
133
|
} from "./chunk-RQVLBMP7.js";
|
|
130
134
|
import {
|
|
131
135
|
debug,
|
|
132
136
|
initDebugLogger
|
|
133
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-5B7UCAYL.js";
|
|
134
138
|
import {
|
|
135
139
|
BunShell,
|
|
136
140
|
CACHE_PATHS,
|
|
@@ -147,14 +151,14 @@ import {
|
|
|
147
151
|
resolveXdgDataPath,
|
|
148
152
|
setCwd,
|
|
149
153
|
setOriginalCwd
|
|
150
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-LBDLSBXN.js";
|
|
151
155
|
import {
|
|
152
156
|
MACRO
|
|
153
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-7SYDIES4.js";
|
|
154
158
|
import "./chunk-I3J4JYES.js";
|
|
155
159
|
|
|
156
160
|
// src/entrypoints/cli/runCli.tsx
|
|
157
|
-
import { existsSync, readFileSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
161
|
+
import { existsSync as existsSync2, readFileSync, writeFileSync as writeFileSync2 } from "node:fs";
|
|
158
162
|
|
|
159
163
|
// src/entrypoints/cli/printMode.ts
|
|
160
164
|
import { join } from "path";
|
|
@@ -314,7 +318,7 @@ function createPrintModeControlRequestHandler(args) {
|
|
|
314
318
|
// src/entrypoints/cli/stdio/streamJsonSession.ts
|
|
315
319
|
async function runPrintModeStreamJsonSession(args) {
|
|
316
320
|
const { beginReplSessionScope: beginReplSessionScope2 } = await import("./replSessionBridge-EBXNFUAD.js");
|
|
317
|
-
const { runPybAgentStreamJsonSession } = await import("./pybAgentStreamJsonSession-
|
|
321
|
+
const { runPybAgentStreamJsonSession } = await import("./pybAgentStreamJsonSession-VWDYV4XL.js");
|
|
318
322
|
const restoreSessionScope = beginReplSessionScope2(args.sessionId);
|
|
319
323
|
try {
|
|
320
324
|
await runPybAgentStreamJsonSession(args);
|
|
@@ -482,20 +486,20 @@ async function runPrintMode({
|
|
|
482
486
|
const {
|
|
483
487
|
createUserMessageFromText,
|
|
484
488
|
createUserMessageFromBlocks
|
|
485
|
-
} = await import("./messages-
|
|
486
|
-
const { ConversationTracker } = await import("./conversationTracker-
|
|
487
|
-
const { FileSystemConversationPersistence } = await import("./conversationPersistence-
|
|
488
|
-
const { getSystemPrompt } = await import("./prompts-
|
|
489
|
-
const { getContext: getContext2 } = await import("./context-
|
|
489
|
+
} = await import("./messages-7NVTXWIJ.js");
|
|
490
|
+
const { ConversationTracker } = await import("./conversationTracker-H25IOHBE.js");
|
|
491
|
+
const { FileSystemConversationPersistence } = await import("./conversationPersistence-INUNJHOV.js");
|
|
492
|
+
const { getSystemPrompt } = await import("./prompts-KQNPPEOG.js");
|
|
493
|
+
const { getContext: getContext2 } = await import("./context-5VXEWH3G.js");
|
|
490
494
|
const { getTotalCost } = await import("./costTracker-DJVFVAVZ.js");
|
|
491
|
-
const { query } = await import("./query-
|
|
495
|
+
const { query } = await import("./query-KAZY5LOW.js");
|
|
492
496
|
const { getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
493
497
|
const { pybMessageToSdkMessage, makeSdkInitMessage, makeSdkResultMessage } = await import("./pybAgentStreamJson-EQPO52B6.js");
|
|
494
498
|
const { PybAgentStructuredStdio: PybAgentStructuredStdio2 } = await import("./pybAgentStructuredStdio-ROCSOGNT.js");
|
|
495
499
|
const {
|
|
496
500
|
loadToolPermissionContextFromDisk,
|
|
497
501
|
persistToolPermissionUpdateToDisk
|
|
498
|
-
} = await import("./toolPermissionSettings-
|
|
502
|
+
} = await import("./toolPermissionSettings-S6NJPBKT.js");
|
|
499
503
|
const { applyToolPermissionContextUpdates } = await import("./toolPermissionContext-BSFV23IL.js");
|
|
500
504
|
const sessionIdForSdk = getPybAgentSessionId();
|
|
501
505
|
const trackerPersistenceMode = "required";
|
|
@@ -894,9 +898,9 @@ async function setup(cwd2, safeMode) {
|
|
|
894
898
|
grantReadPermissionForOriginalDir();
|
|
895
899
|
let agentLoader;
|
|
896
900
|
try {
|
|
897
|
-
agentLoader = await import("./loader-
|
|
901
|
+
agentLoader = await import("./loader-YUP6OJTJ.js");
|
|
898
902
|
} catch {
|
|
899
|
-
agentLoader = await import("./loader-
|
|
903
|
+
agentLoader = await import("./loader-YUP6OJTJ.js");
|
|
900
904
|
}
|
|
901
905
|
const { startAgentWatcher } = agentLoader;
|
|
902
906
|
await startAgentWatcher(() => {
|
|
@@ -1810,6 +1814,28 @@ function showInvalidConfigDialog({
|
|
|
1810
1814
|
});
|
|
1811
1815
|
}
|
|
1812
1816
|
|
|
1817
|
+
// src/utils/session/sessionStoreBootstrap.ts
|
|
1818
|
+
import { existsSync } from "fs";
|
|
1819
|
+
function ensureSessionStoreBootstrap() {
|
|
1820
|
+
const flags = getSessionStoreFlags();
|
|
1821
|
+
if (!flags.sqlReadEnabled && !flags.sqlWriteEnabled) {
|
|
1822
|
+
return {
|
|
1823
|
+
dbPath: getSessionStoreDbPath(),
|
|
1824
|
+
created: false,
|
|
1825
|
+
skipped: true
|
|
1826
|
+
};
|
|
1827
|
+
}
|
|
1828
|
+
const dbPath = getSessionStoreDbPath();
|
|
1829
|
+
const existed = existsSync(dbPath);
|
|
1830
|
+
const store = createSessionSqlStore({ dbFilePath: dbPath });
|
|
1831
|
+
store.close();
|
|
1832
|
+
return {
|
|
1833
|
+
dbPath,
|
|
1834
|
+
created: !existed,
|
|
1835
|
+
skipped: false
|
|
1836
|
+
};
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1813
1839
|
// src/entrypoints/cli/runCli.tsx
|
|
1814
1840
|
function omitKeys(input, ...keys) {
|
|
1815
1841
|
const result = { ...input };
|
|
@@ -1862,6 +1888,7 @@ function filterTasksByStatus(tasks, statuses) {
|
|
|
1862
1888
|
}
|
|
1863
1889
|
async function runCli() {
|
|
1864
1890
|
initDebugLogger();
|
|
1891
|
+
ensureSessionStoreBootstrap();
|
|
1865
1892
|
try {
|
|
1866
1893
|
enableConfigs();
|
|
1867
1894
|
queueMicrotask(() => {
|
|
@@ -2116,12 +2143,12 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2116
2143
|
assertMinVersion();
|
|
2117
2144
|
{
|
|
2118
2145
|
const requested = Array.isArray(pluginDir) && pluginDir.length > 0 ? pluginDir : [];
|
|
2119
|
-
const { listEnabledInstalledPluginPackRoots } = await import("./skillMarketplace-
|
|
2146
|
+
const { listEnabledInstalledPluginPackRoots } = await import("./skillMarketplace-QUJXDKZK.js");
|
|
2120
2147
|
const installed = listEnabledInstalledPluginPackRoots();
|
|
2121
2148
|
const all = [...installed, ...requested].filter(Boolean);
|
|
2122
2149
|
const deduped = Array.from(new Set(all));
|
|
2123
2150
|
if (deduped.length > 0) {
|
|
2124
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
2151
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-7EK4LQDD.js");
|
|
2125
2152
|
const { errors } = await configureSessionPlugins({
|
|
2126
2153
|
pluginDirs: deduped
|
|
2127
2154
|
});
|
|
@@ -2131,9 +2158,9 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2131
2158
|
}
|
|
2132
2159
|
}
|
|
2133
2160
|
const [{ ask }, { getTools }, { getCommands }] = await Promise.all([
|
|
2134
|
-
import("./ask-
|
|
2135
|
-
import("./tools-
|
|
2136
|
-
import("./commands-
|
|
2161
|
+
import("./ask-XQZT6WIO.js"),
|
|
2162
|
+
import("./tools-NC5R4I6F.js"),
|
|
2163
|
+
import("./commands-4YMZW52K.js")
|
|
2137
2164
|
]);
|
|
2138
2165
|
const commands = await getCommands();
|
|
2139
2166
|
const mcpClientsPromise = Array.isArray(mcpConfig) && mcpConfig.length > 0 || strictMcpConfig === true ? getClientsForCliMcpConfig({
|
|
@@ -2152,8 +2179,8 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2152
2179
|
const {
|
|
2153
2180
|
loadPybAgentSessionMessages,
|
|
2154
2181
|
findMostRecentPybAgentSessionId
|
|
2155
|
-
} = await import("./pybAgentSessionLoad-
|
|
2156
|
-
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-
|
|
2182
|
+
} = await import("./pybAgentSessionLoad-V3IAJJPS.js");
|
|
2183
|
+
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-WE7ET356.js");
|
|
2157
2184
|
const { isUuid } = await import("./uuid-CVHEFGW4.js");
|
|
2158
2185
|
const { setPybAgentSessionId, getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
2159
2186
|
const { randomUUID } = await import("crypto");
|
|
@@ -2278,7 +2305,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2278
2305
|
{ getLatestVersion, getUpdateCommandSuggestions },
|
|
2279
2306
|
semverMod
|
|
2280
2307
|
] = await Promise.all([
|
|
2281
|
-
import("./autoUpdater-
|
|
2308
|
+
import("./autoUpdater-DDJAJPKA.js"),
|
|
2282
2309
|
import("semver")
|
|
2283
2310
|
]);
|
|
2284
2311
|
const semver = semverMod?.default ?? semverMod;
|
|
@@ -2339,7 +2366,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2339
2366
|
const isDefaultModel = await isDefaultSlowAndCapableModel();
|
|
2340
2367
|
{
|
|
2341
2368
|
const { render: render3 } = await import("ink");
|
|
2342
|
-
const { REPL } = await import("./REPL-
|
|
2369
|
+
const { REPL } = await import("./REPL-CI5ET6VF.js");
|
|
2343
2370
|
render3(
|
|
2344
2371
|
/* @__PURE__ */ React10.createElement(
|
|
2345
2372
|
REPL,
|
|
@@ -2517,7 +2544,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2517
2544
|
{ replace: !!replace }
|
|
2518
2545
|
);
|
|
2519
2546
|
saveGlobalConfig(nextConfig);
|
|
2520
|
-
await import("./model-
|
|
2547
|
+
await import("./model-QSDSUJDB.js").then(({ reloadModelManager }) => {
|
|
2521
2548
|
reloadModelManager();
|
|
2522
2549
|
});
|
|
2523
2550
|
if (warnings.length > 0) {
|
|
@@ -2536,7 +2563,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2536
2563
|
const workingDir = typeof options?.cwd === "string" ? options.cwd : typeof programCwd === "string" ? programCwd : cwd();
|
|
2537
2564
|
const asJson = options?.json === true;
|
|
2538
2565
|
await setup(workingDir, false);
|
|
2539
|
-
const { reloadModelManager, getModelManager: getModelManager2 } = await import("./model-
|
|
2566
|
+
const { reloadModelManager, getModelManager: getModelManager2 } = await import("./model-QSDSUJDB.js");
|
|
2540
2567
|
reloadModelManager();
|
|
2541
2568
|
const manager = getModelManager2();
|
|
2542
2569
|
const config2 = getGlobalConfig();
|
|
@@ -2610,7 +2637,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2610
2637
|
try {
|
|
2611
2638
|
const workingDir = typeof options?.cwd === "string" ? options.cwd : cwd();
|
|
2612
2639
|
await setup(workingDir, false);
|
|
2613
|
-
const { validateAgentTemplates } = await import("./agentsValidate-
|
|
2640
|
+
const { validateAgentTemplates } = await import("./agentsValidate-BIRAVXBL.js");
|
|
2614
2641
|
const report = await validateAgentTemplates({
|
|
2615
2642
|
cwd: workingDir,
|
|
2616
2643
|
paths: Array.isArray(paths) ? paths : [],
|
|
@@ -2654,7 +2681,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2654
2681
|
const registerMarketplaceCommands = (marketplaceCmd2) => {
|
|
2655
2682
|
marketplaceCmd2.command("add <source>").description("Add a marketplace from a URL, path, or GitHub repo").action(async (source) => {
|
|
2656
2683
|
try {
|
|
2657
|
-
const { addMarketplace } = await import("./skillMarketplace-
|
|
2684
|
+
const { addMarketplace } = await import("./skillMarketplace-QUJXDKZK.js");
|
|
2658
2685
|
console.log("Adding marketplace...");
|
|
2659
2686
|
const { name } = await addMarketplace(source);
|
|
2660
2687
|
console.log(`Successfully added marketplace: ${name}`);
|
|
@@ -2666,7 +2693,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2666
2693
|
});
|
|
2667
2694
|
marketplaceCmd2.command("list").description("List all configured marketplaces").option("--json", "Output as JSON").action(async (options) => {
|
|
2668
2695
|
try {
|
|
2669
|
-
const { listMarketplaces } = await import("./skillMarketplace-
|
|
2696
|
+
const { listMarketplaces } = await import("./skillMarketplace-QUJXDKZK.js");
|
|
2670
2697
|
const marketplaces = listMarketplaces();
|
|
2671
2698
|
if (options.json) {
|
|
2672
2699
|
console.log(JSON.stringify(marketplaces, null, 2));
|
|
@@ -2705,7 +2732,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2705
2732
|
});
|
|
2706
2733
|
marketplaceCmd2.command("remove <name>").alias("rm").description("Remove a configured marketplace").action(async (name) => {
|
|
2707
2734
|
try {
|
|
2708
|
-
const { removeMarketplace } = await import("./skillMarketplace-
|
|
2735
|
+
const { removeMarketplace } = await import("./skillMarketplace-QUJXDKZK.js");
|
|
2709
2736
|
removeMarketplace(name);
|
|
2710
2737
|
console.log(`Successfully removed marketplace: ${name}`);
|
|
2711
2738
|
process.exit(0);
|
|
@@ -2722,7 +2749,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2722
2749
|
listMarketplaces,
|
|
2723
2750
|
refreshAllMarketplacesAsync,
|
|
2724
2751
|
refreshMarketplaceAsync
|
|
2725
|
-
} = await import("./skillMarketplace-
|
|
2752
|
+
} = await import("./skillMarketplace-QUJXDKZK.js");
|
|
2726
2753
|
const trimmed = typeof name === "string" ? name.trim() : "";
|
|
2727
2754
|
if (trimmed) {
|
|
2728
2755
|
console.log(`Updating marketplace: ${trimmed}...`);
|
|
@@ -2773,9 +2800,9 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2773
2800
|
);
|
|
2774
2801
|
process.exit(1);
|
|
2775
2802
|
}
|
|
2776
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2803
|
+
const { setCwd: setCwd2 } = await import("./state-GC3XELIE.js");
|
|
2777
2804
|
await setCwd2(options.cwd ?? cwd());
|
|
2778
|
-
const { installSkillPlugin } = await import("./skillMarketplace-
|
|
2805
|
+
const { installSkillPlugin } = await import("./skillMarketplace-QUJXDKZK.js");
|
|
2779
2806
|
const result = installSkillPlugin(plugin, {
|
|
2780
2807
|
scope,
|
|
2781
2808
|
force: options.force === true
|
|
@@ -2802,9 +2829,9 @@ ${skillList}`);
|
|
|
2802
2829
|
);
|
|
2803
2830
|
process.exit(1);
|
|
2804
2831
|
}
|
|
2805
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2832
|
+
const { setCwd: setCwd2 } = await import("./state-GC3XELIE.js");
|
|
2806
2833
|
await setCwd2(options.cwd ?? cwd());
|
|
2807
|
-
const { uninstallSkillPlugin } = await import("./skillMarketplace-
|
|
2834
|
+
const { uninstallSkillPlugin } = await import("./skillMarketplace-QUJXDKZK.js");
|
|
2808
2835
|
const result = uninstallSkillPlugin(plugin, { scope });
|
|
2809
2836
|
const skillList = result.removedSkills.length > 0 ? `Skills: ${result.removedSkills.join(", ")}` : "Skills: (none)";
|
|
2810
2837
|
console.log(`Uninstalled ${result.pluginSpec}
|
|
@@ -2828,9 +2855,9 @@ ${skillList}`);
|
|
|
2828
2855
|
);
|
|
2829
2856
|
process.exit(1);
|
|
2830
2857
|
}
|
|
2831
|
-
const { setCwd: setCwd2, getCwd: getCwd2 } = await import("./state-
|
|
2858
|
+
const { setCwd: setCwd2, getCwd: getCwd2 } = await import("./state-GC3XELIE.js");
|
|
2832
2859
|
await setCwd2(options.cwd ?? cwd());
|
|
2833
|
-
const { listInstalledSkillPlugins } = await import("./skillMarketplace-
|
|
2860
|
+
const { listInstalledSkillPlugins } = await import("./skillMarketplace-QUJXDKZK.js");
|
|
2834
2861
|
const all = listInstalledSkillPlugins();
|
|
2835
2862
|
const filtered = Object.fromEntries(
|
|
2836
2863
|
Object.entries(all).filter(([, record]) => {
|
|
@@ -2874,9 +2901,9 @@ ${skillList}`);
|
|
|
2874
2901
|
);
|
|
2875
2902
|
process.exit(1);
|
|
2876
2903
|
}
|
|
2877
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2904
|
+
const { setCwd: setCwd2 } = await import("./state-GC3XELIE.js");
|
|
2878
2905
|
await setCwd2(options.cwd ?? cwd());
|
|
2879
|
-
const { enableSkillPlugin } = await import("./skillMarketplace-
|
|
2906
|
+
const { enableSkillPlugin } = await import("./skillMarketplace-QUJXDKZK.js");
|
|
2880
2907
|
const result = enableSkillPlugin(plugin, { scope });
|
|
2881
2908
|
console.log(`Enabled ${result.pluginSpec}`);
|
|
2882
2909
|
process.exit(0);
|
|
@@ -2898,9 +2925,9 @@ ${skillList}`);
|
|
|
2898
2925
|
);
|
|
2899
2926
|
process.exit(1);
|
|
2900
2927
|
}
|
|
2901
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2928
|
+
const { setCwd: setCwd2 } = await import("./state-GC3XELIE.js");
|
|
2902
2929
|
await setCwd2(options.cwd ?? cwd());
|
|
2903
|
-
const { disableSkillPlugin } = await import("./skillMarketplace-
|
|
2930
|
+
const { disableSkillPlugin } = await import("./skillMarketplace-QUJXDKZK.js");
|
|
2904
2931
|
const result = disableSkillPlugin(plugin, { scope });
|
|
2905
2932
|
console.log(`Disabled ${result.pluginSpec}`);
|
|
2906
2933
|
process.exit(0);
|
|
@@ -2911,9 +2938,9 @@ ${skillList}`);
|
|
|
2911
2938
|
});
|
|
2912
2939
|
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
2940
|
try {
|
|
2914
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2941
|
+
const { setCwd: setCwd2 } = await import("./state-GC3XELIE.js");
|
|
2915
2942
|
await setCwd2(options.cwd ?? cwd());
|
|
2916
|
-
const { formatValidationResult, validatePluginOrMarketplacePath } = await import("./pluginValidation-
|
|
2943
|
+
const { formatValidationResult, validatePluginOrMarketplacePath } = await import("./pluginValidation-BJWCS55I.js");
|
|
2917
2944
|
const result = validatePluginOrMarketplacePath(path);
|
|
2918
2945
|
console.log(
|
|
2919
2946
|
`Validating ${result.fileType} manifest: ${result.filePath}
|
|
@@ -2935,9 +2962,9 @@ ${skillList}`);
|
|
|
2935
2962
|
registerMarketplaceCommands(marketplaceCmd);
|
|
2936
2963
|
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
2964
|
try {
|
|
2938
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2965
|
+
const { setCwd: setCwd2 } = await import("./state-GC3XELIE.js");
|
|
2939
2966
|
await setCwd2(options.cwd ?? cwd());
|
|
2940
|
-
const { installSkillPlugin } = await import("./skillMarketplace-
|
|
2967
|
+
const { installSkillPlugin } = await import("./skillMarketplace-QUJXDKZK.js");
|
|
2941
2968
|
const result = installSkillPlugin(plugin, {
|
|
2942
2969
|
project: options.project === true,
|
|
2943
2970
|
force: options.force === true
|
|
@@ -2953,9 +2980,9 @@ ${skillList}`);
|
|
|
2953
2980
|
});
|
|
2954
2981
|
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
2982
|
try {
|
|
2956
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2983
|
+
const { setCwd: setCwd2 } = await import("./state-GC3XELIE.js");
|
|
2957
2984
|
await setCwd2(options.cwd ?? cwd());
|
|
2958
|
-
const { uninstallSkillPlugin } = await import("./skillMarketplace-
|
|
2985
|
+
const { uninstallSkillPlugin } = await import("./skillMarketplace-QUJXDKZK.js");
|
|
2959
2986
|
const result = uninstallSkillPlugin(plugin, {
|
|
2960
2987
|
project: options.project === true
|
|
2961
2988
|
});
|
|
@@ -2970,7 +2997,7 @@ ${skillList}`);
|
|
|
2970
2997
|
});
|
|
2971
2998
|
skillsCmd.command("list-installed").description("List installed skill plugins").action(async () => {
|
|
2972
2999
|
try {
|
|
2973
|
-
const { listInstalledSkillPlugins } = await import("./skillMarketplace-
|
|
3000
|
+
const { listInstalledSkillPlugins } = await import("./skillMarketplace-QUJXDKZK.js");
|
|
2974
3001
|
console.log(JSON.stringify(listInstalledSkillPlugins(), null, 2));
|
|
2975
3002
|
process.exit(0);
|
|
2976
3003
|
} catch (error) {
|
|
@@ -2992,7 +3019,7 @@ ${skillList}`);
|
|
|
2992
3019
|
const mcp = program.command("mcp").description("Configure and manage MCP servers");
|
|
2993
3020
|
mcp.command("serve").description(`Start the ${PRODUCT_NAME} MCP server`).action(async () => {
|
|
2994
3021
|
const providedCwd = program.opts().cwd ?? cwd();
|
|
2995
|
-
if (!
|
|
3022
|
+
if (!existsSync2(providedCwd)) {
|
|
2996
3023
|
console.error(`Error: Directory ${providedCwd} does not exist`);
|
|
2997
3024
|
process.exit(1);
|
|
2998
3025
|
}
|
|
@@ -3535,10 +3562,10 @@ ${skillList}`);
|
|
|
3535
3562
|
try {
|
|
3536
3563
|
const scope = ensureConfigScope(options.scope);
|
|
3537
3564
|
const platform = process.platform;
|
|
3538
|
-
const { existsSync:
|
|
3565
|
+
const { existsSync: existsSync3, readFileSync: readFileSync2 } = await import("fs");
|
|
3539
3566
|
const { join: join3 } = await import("path");
|
|
3540
3567
|
const { exec } = await import("child_process");
|
|
3541
|
-
const isWSL = platform === "linux" &&
|
|
3568
|
+
const isWSL = platform === "linux" && existsSync3("/proc/version") && readFileSync2("/proc/version", "utf-8").toLowerCase().includes("microsoft");
|
|
3542
3569
|
if (platform !== "darwin" && platform !== "win32" && !isWSL) {
|
|
3543
3570
|
console.error(
|
|
3544
3571
|
"Error: This command is only supported on macOS, Windows, and WSL"
|
|
@@ -3568,7 +3595,7 @@ ${skillList}`);
|
|
|
3568
3595
|
});
|
|
3569
3596
|
configPath = `/mnt/c/Users/${whoamiCommand}/AppData/Roaming/Claude/claude_desktop_config.json`;
|
|
3570
3597
|
}
|
|
3571
|
-
if (!
|
|
3598
|
+
if (!existsSync3(configPath)) {
|
|
3572
3599
|
console.error(`Error: Config file not found at ${configPath}`);
|
|
3573
3600
|
process.exit(1);
|
|
3574
3601
|
}
|
|
@@ -3616,7 +3643,7 @@ ${skillList}`);
|
|
|
3616
3643
|
const ink = await import("ink");
|
|
3617
3644
|
const reactModule = await import("react");
|
|
3618
3645
|
const inkjsui = await import("@inkjs/ui");
|
|
3619
|
-
const utilsTheme = await import("./theme-
|
|
3646
|
+
const utilsTheme = await import("./theme-24PLJSPD.js");
|
|
3620
3647
|
const { render: render3 } = ink;
|
|
3621
3648
|
const React11 = reactModule;
|
|
3622
3649
|
const { MultiSelect: MultiSelect2 } = inkjsui;
|
|
@@ -3759,11 +3786,11 @@ ${skillList}`);
|
|
|
3759
3786
|
const commandOptions = getCommandOptions(options);
|
|
3760
3787
|
const workingDir = resolveWorkingDir(commandOptions, program);
|
|
3761
3788
|
await setup(workingDir, false);
|
|
3762
|
-
const { getAbsolutePath } = await import("./file-
|
|
3763
|
-
const { LspFacade } = await import("./lsp-
|
|
3764
|
-
const { existsSync:
|
|
3789
|
+
const { getAbsolutePath } = await import("./file-D7W2FBZP.js");
|
|
3790
|
+
const { LspFacade } = await import("./lsp-7QKC4DVK.js");
|
|
3791
|
+
const { existsSync: existsSync3 } = await import("fs");
|
|
3765
3792
|
const absPath = getAbsolutePath(file) ?? file;
|
|
3766
|
-
if (!
|
|
3793
|
+
if (!existsSync3(absPath)) {
|
|
3767
3794
|
console.error(`File does not exist: ${file}`);
|
|
3768
3795
|
process.exit(1);
|
|
3769
3796
|
}
|
|
@@ -3791,7 +3818,7 @@ ${skillList}`);
|
|
|
3791
3818
|
try {
|
|
3792
3819
|
const workingDir = resolveWorkingDir(options, program);
|
|
3793
3820
|
await setup(workingDir, false);
|
|
3794
|
-
const { LspFacade } = await import("./lsp-
|
|
3821
|
+
const { LspFacade } = await import("./lsp-7QKC4DVK.js");
|
|
3795
3822
|
const result = await LspFacade.run({
|
|
3796
3823
|
operation: "workspaceSymbol",
|
|
3797
3824
|
filePath: query,
|
|
@@ -3808,11 +3835,11 @@ ${skillList}`);
|
|
|
3808
3835
|
try {
|
|
3809
3836
|
const workingDir = resolveWorkingDir(options, program);
|
|
3810
3837
|
await setup(workingDir, false);
|
|
3811
|
-
const { getAbsolutePath } = await import("./file-
|
|
3812
|
-
const { LspFacade } = await import("./lsp-
|
|
3813
|
-
const { existsSync:
|
|
3838
|
+
const { getAbsolutePath } = await import("./file-D7W2FBZP.js");
|
|
3839
|
+
const { LspFacade } = await import("./lsp-7QKC4DVK.js");
|
|
3840
|
+
const { existsSync: existsSync3 } = await import("fs");
|
|
3814
3841
|
const absPath = getAbsolutePath(file) ?? file;
|
|
3815
|
-
if (!
|
|
3842
|
+
if (!existsSync3(absPath)) {
|
|
3816
3843
|
console.error(`File does not exist: ${file}`);
|
|
3817
3844
|
process.exit(1);
|
|
3818
3845
|
}
|
|
@@ -3832,7 +3859,7 @@ ${skillList}`);
|
|
|
3832
3859
|
try {
|
|
3833
3860
|
const workingDir = resolveWorkingDir(options, program);
|
|
3834
3861
|
await setup(workingDir, false);
|
|
3835
|
-
const { LspFacade } = await import("./lsp-
|
|
3862
|
+
const { LspFacade } = await import("./lsp-7QKC4DVK.js");
|
|
3836
3863
|
const status = LspFacade.status();
|
|
3837
3864
|
console.log(JSON.stringify(status, null, 2));
|
|
3838
3865
|
process.exit(0);
|
|
@@ -3846,7 +3873,7 @@ ${skillList}`);
|
|
|
3846
3873
|
const commandOptions = getCommandOptions(options);
|
|
3847
3874
|
const workingDir = resolveWorkingDir(commandOptions, program);
|
|
3848
3875
|
await setup(workingDir, false);
|
|
3849
|
-
const { LspFacade } = await import("./lsp-
|
|
3876
|
+
const { LspFacade } = await import("./lsp-7QKC4DVK.js");
|
|
3850
3877
|
const host = typeof commandOptions?.host === "string" && commandOptions.host.length > 0 ? commandOptions.host : "127.0.0.1";
|
|
3851
3878
|
const port = typeof commandOptions?.port === "number" && !Number.isNaN(commandOptions.port) ? commandOptions.port : 7337;
|
|
3852
3879
|
const server = LspFacade.serveStatus({ host, port });
|
|
@@ -3872,7 +3899,7 @@ ${skillList}`);
|
|
|
3872
3899
|
program.command("update").description("Show manual upgrade commands (no auto-install)").action(async () => {
|
|
3873
3900
|
console.log(`Current version: ${MACRO.VERSION}`);
|
|
3874
3901
|
console.log("Checking for updates...");
|
|
3875
|
-
const { getLatestVersion, getUpdateCommandSuggestions } = await import("./autoUpdater-
|
|
3902
|
+
const { getLatestVersion, getUpdateCommandSuggestions } = await import("./autoUpdater-DDJAJPKA.js");
|
|
3876
3903
|
const latestVersion = await getLatestVersion();
|
|
3877
3904
|
if (!latestVersion) {
|
|
3878
3905
|
console.error("Failed to check for updates");
|
|
@@ -3927,8 +3954,8 @@ ${skillList}`);
|
|
|
3927
3954
|
await setup(cwd2, safe);
|
|
3928
3955
|
assertMinVersion();
|
|
3929
3956
|
const [{ getTools }, { getCommands }] = await Promise.all([
|
|
3930
|
-
import("./tools-
|
|
3931
|
-
import("./commands-
|
|
3957
|
+
import("./tools-NC5R4I6F.js"),
|
|
3958
|
+
import("./commands-4YMZW52K.js")
|
|
3932
3959
|
]);
|
|
3933
3960
|
const [allTools, commands, mcpClients] = await Promise.all([
|
|
3934
3961
|
getTools(
|
|
@@ -3939,12 +3966,12 @@ ${skillList}`);
|
|
|
3939
3966
|
]);
|
|
3940
3967
|
const tools = disableSlashCommands === true ? allTools.filter((t) => t.name !== "SlashCommand") : allTools;
|
|
3941
3968
|
if (identifier !== void 0) {
|
|
3942
|
-
const { loadPybAgentSessionMessages } = await import("./pybAgentSessionLoad-
|
|
3943
|
-
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-
|
|
3969
|
+
const { loadPybAgentSessionMessages } = await import("./pybAgentSessionLoad-V3IAJJPS.js");
|
|
3970
|
+
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-WE7ET356.js");
|
|
3944
3971
|
const { setPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
3945
3972
|
const rawIdentifier = String(identifier).trim();
|
|
3946
3973
|
const isLegacyNumber = /^-?\\d+$/.test(rawIdentifier);
|
|
3947
|
-
const isLegacyPath = !isLegacyNumber &&
|
|
3974
|
+
const isLegacyPath = !isLegacyNumber && existsSync2(rawIdentifier);
|
|
3948
3975
|
let messages;
|
|
3949
3976
|
let messageLogName = dateToFilename(/* @__PURE__ */ new Date());
|
|
3950
3977
|
let initialForkNumber = void 0;
|
|
@@ -4010,7 +4037,7 @@ ${skillList}`);
|
|
|
4010
4037
|
const isDefaultModel = await isDefaultSlowAndCapableModel();
|
|
4011
4038
|
{
|
|
4012
4039
|
const { render: render3 } = await import("ink");
|
|
4013
|
-
const { REPL } = await import("./REPL-
|
|
4040
|
+
const { REPL } = await import("./REPL-CI5ET6VF.js");
|
|
4014
4041
|
render3(
|
|
4015
4042
|
/* @__PURE__ */ React10.createElement(
|
|
4016
4043
|
REPL,
|
|
@@ -4037,7 +4064,7 @@ ${skillList}`);
|
|
|
4037
4064
|
process.exit(1);
|
|
4038
4065
|
}
|
|
4039
4066
|
} else {
|
|
4040
|
-
const { listPybAgentSessions } = await import("./pybAgentSessionResume-
|
|
4067
|
+
const { listPybAgentSessions } = await import("./pybAgentSessionResume-WE7ET356.js");
|
|
4041
4068
|
const sessions = listPybAgentSessions({ cwd: cwd2 });
|
|
4042
4069
|
if (sessions.length === 0) {
|
|
4043
4070
|
console.error("No conversation found to resume");
|
|
@@ -4142,7 +4169,7 @@ async function gracefulExit(code = 0) {
|
|
|
4142
4169
|
}
|
|
4143
4170
|
isGracefulExitInProgress = true;
|
|
4144
4171
|
try {
|
|
4145
|
-
const { runSessionEndHooks } = await import("./pybHooks-
|
|
4172
|
+
const { runSessionEndHooks } = await import("./pybHooks-UV7BTIVT.js");
|
|
4146
4173
|
const { getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
4147
4174
|
const { tmpdir } = await import("os");
|
|
4148
4175
|
const { join: join3 } = await import("path");
|