pybao-cli 1.4.13 → 1.4.14
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-4WOBYT7I.js +47 -0
- package/dist/{acp-AITGGIN7.js → acp-IA5SQSEN.js} +29 -29
- package/dist/{agentsValidate-K3GLHEUJ.js → agentsValidate-5XBOR23G.js} +7 -7
- package/dist/{ask-XRAJ7ONM.js → ask-64IU5XQT.js} +28 -28
- package/dist/{autoUpdater-2YW234FZ.js → autoUpdater-LMRJCWGC.js} +3 -3
- package/dist/{chunk-6OP2JTUK.js → chunk-2UTQNPK5.js} +1 -1
- package/dist/{chunk-6OP2JTUK.js.map → chunk-2UTQNPK5.js.map} +1 -1
- package/dist/{chunk-5WXWY6LV.js → chunk-346SFBDV.js} +3 -3
- package/dist/{chunk-CPE4NPQV.js → chunk-4E7Y6UG2.js} +2 -2
- package/dist/{chunk-34XEWGUY.js → chunk-5MXVXJLZ.js} +2 -1
- package/dist/{chunk-O5PGBSLH.js → chunk-7AYBKYWT.js} +2 -2
- package/dist/{chunk-XJZQD7RE.js → chunk-7JULAJHD.js} +26 -19
- package/dist/chunk-7JULAJHD.js.map +7 -0
- package/dist/{chunk-VFAFA24S.js → chunk-CWWCJY6A.js} +3 -3
- package/dist/{chunk-QKB32NDM.js → chunk-ENJBFL7H.js} +2 -2
- package/dist/{chunk-TWPWHWJT.js → chunk-EQPERVJD.js} +4 -4
- package/dist/{chunk-OX4Q6Z5R.js → chunk-EWJOCRNV.js} +3 -3
- package/dist/{chunk-M7QSGOTT.js → chunk-G5MEAIEY.js} +1 -1
- package/dist/{chunk-V337ZSSD.js → chunk-HMTBDCO6.js} +92 -59
- package/dist/chunk-HMTBDCO6.js.map +7 -0
- package/dist/{chunk-2PC7UK66.js → chunk-HPLN5FUH.js} +3 -3
- package/dist/{chunk-PHKBTCLT.js → chunk-IN2XQ6AY.js} +2 -2
- package/dist/{chunk-Y3UMGUVE.js → chunk-KVPLJHUD.js} +1 -1
- package/dist/{chunk-CVJLF2VG.js → chunk-L2W6O75K.js} +188 -52
- package/dist/chunk-L2W6O75K.js.map +7 -0
- package/dist/{chunk-FT5UM6YL.js → chunk-LN2AL7L2.js} +1 -1
- package/dist/{chunk-RHY3RRE6.js → chunk-MQVFTMJM.js} +2 -2
- package/dist/{chunk-CXT225X7.js → chunk-NQHZG7FJ.js} +2 -2
- package/dist/{chunk-VGDDQSCO.js → chunk-O6YOHBUT.js} +1 -1
- package/dist/{chunk-UDNZNXXR.js → chunk-PUHROODW.js} +3 -3
- package/dist/{chunk-P7MPKAPW.js → chunk-RNRRWM2A.js} +1 -1
- package/dist/{chunk-NG5RU74R.js → chunk-RYSI7Q7Y.js} +4 -4
- package/dist/{chunk-S45DDLGG.js → chunk-SLPUUK4Q.js} +3 -3
- package/dist/{chunk-OOTTUF6Z.js → chunk-TEOI5N7O.js} +1 -1
- package/dist/{chunk-HCN7LMEB.js → chunk-U3AYAKGI.js} +1 -1
- package/dist/{chunk-ZOM357PV.js → chunk-UNFP4H42.js} +2 -2
- package/dist/{chunk-CFTVDXFH.js → chunk-WTMV7L5U.js} +3 -3
- package/dist/{chunk-BTS2TAAW.js → chunk-XTVLEXFN.js} +4 -4
- package/dist/{chunk-FMH4U7NO.js → chunk-ZUDXNHIB.js} +1 -1
- package/dist/{cli-MXO677IA.js → cli-S5R3QHMU.js} +91 -89
- package/dist/{cli-MXO677IA.js.map → cli-S5R3QHMU.js.map} +2 -2
- package/dist/commands-3VZ7XRRF.js +51 -0
- package/dist/{config-YFZ2WAYP.js → config-BNXGPV5O.js} +4 -4
- package/dist/{context-OOIFZD5B.js → context-HBDNJQKR.js} +6 -6
- package/dist/{customCommands-C5UREHC4.js → customCommands-GLTGTRUH.js} +4 -4
- package/dist/{env-LQJ2XZDO.js → env-ROQ4BDAH.js} +2 -2
- package/dist/{file-ZBIAG7X4.js → file-2HXCS5WE.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-RCNWJH2C.js → llm-KVE2U2V3.js} +29 -29
- package/dist/{llmLazy-KXJFFPMF.js → llmLazy-Q2QJ3VTS.js} +1 -1
- package/dist/{loader-ENRLCLHZ.js → loader-QNQFN4LE.js} +4 -4
- package/dist/{lsp-VWL3PVQJ.js → lsp-MOZ34TIC.js} +6 -6
- package/dist/{lspAnchor-WPJIG2RI.js → lspAnchor-JTT6AJVH.js} +8 -8
- package/dist/lspAnchor-JTT6AJVH.js.map +7 -0
- package/dist/{mcp-P5T4TUW2.js → mcp-A67BC77T.js} +7 -7
- package/dist/{mentionProcessor-4ICD3GVH.js → mentionProcessor-F3MXBMQJ.js} +5 -5
- package/dist/{messages-SEOXF7DS.js → messages-7VFLTKJA.js} +1 -1
- package/dist/{model-YOPR5KUS.js → model-RGNG5GUY.js} +5 -5
- package/dist/{openai-FVFZDXPS.js → openai-R7QDORCI.js} +5 -5
- package/dist/{outputStyles-7ZZ2JBOT.js → outputStyles-P7YDT3J6.js} +4 -4
- package/dist/{pluginRuntime-LASQNLIR.js → pluginRuntime-K6HWIYCH.js} +6 -6
- package/dist/{pluginValidation-4BABNGAC.js → pluginValidation-W3KV47BG.js} +6 -6
- package/dist/prompts-K4N5Y7ZD.js +53 -0
- package/dist/{pybAgentSessionLoad-O7V7I7CV.js → pybAgentSessionLoad-PJZM2CKJ.js} +4 -4
- package/dist/{pybAgentSessionResume-Q7EYAD6H.js → pybAgentSessionResume-VJ46VNTG.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-N374RMH5.js → pybAgentStreamJsonSession-CVRLDN56.js} +1 -1
- package/dist/{pybHooks-MHFEMZC6.js → pybHooks-WIHUGN5B.js} +4 -4
- package/dist/query-ZPNOEH35.js +55 -0
- package/dist/{registry-KVMGHJ4N.js → registry-5DE5QZMI.js} +5 -5
- package/dist/{ripgrep-XSJJZ3W3.js → ripgrep-AFHAOO36.js} +3 -3
- package/dist/{skillMarketplace-FL7XBTHJ.js → skillMarketplace-YJU2NWPK.js} +3 -3
- package/dist/{state-5NJOFKYB.js → state-YENYNRDX.js} +2 -2
- package/dist/{theme-Z26AKEVC.js → theme-Q54BLJ2L.js} +5 -5
- package/dist/{toolPermissionSettings-SPSMAX5P.js → toolPermissionSettings-XEQTLKSE.js} +6 -6
- package/dist/tools-YK4JOXTT.js +52 -0
- package/dist/{userInput-3TEMRAK7.js → userInput-72LMV7AI.js} +30 -30
- package/package.json +1 -1
- package/dist/REPL-634DFL57.js +0 -47
- package/dist/chunk-CVJLF2VG.js.map +0 -7
- package/dist/chunk-V337ZSSD.js.map +0 -7
- package/dist/chunk-XJZQD7RE.js.map +0 -7
- package/dist/commands-Q5LUFGJ5.js +0 -51
- package/dist/lspAnchor-WPJIG2RI.js.map +0 -7
- package/dist/prompts-DJNSFFKV.js +0 -53
- package/dist/query-LAUPI7JK.js +0 -55
- package/dist/tools-Q44D6ZG7.js +0 -52
- /package/dist/{REPL-634DFL57.js.map → REPL-4WOBYT7I.js.map} +0 -0
- /package/dist/{acp-AITGGIN7.js.map → acp-IA5SQSEN.js.map} +0 -0
- /package/dist/{agentsValidate-K3GLHEUJ.js.map → agentsValidate-5XBOR23G.js.map} +0 -0
- /package/dist/{ask-XRAJ7ONM.js.map → ask-64IU5XQT.js.map} +0 -0
- /package/dist/{autoUpdater-2YW234FZ.js.map → autoUpdater-LMRJCWGC.js.map} +0 -0
- /package/dist/{chunk-5WXWY6LV.js.map → chunk-346SFBDV.js.map} +0 -0
- /package/dist/{chunk-CPE4NPQV.js.map → chunk-4E7Y6UG2.js.map} +0 -0
- /package/dist/{chunk-34XEWGUY.js.map → chunk-5MXVXJLZ.js.map} +0 -0
- /package/dist/{chunk-O5PGBSLH.js.map → chunk-7AYBKYWT.js.map} +0 -0
- /package/dist/{chunk-VFAFA24S.js.map → chunk-CWWCJY6A.js.map} +0 -0
- /package/dist/{chunk-QKB32NDM.js.map → chunk-ENJBFL7H.js.map} +0 -0
- /package/dist/{chunk-TWPWHWJT.js.map → chunk-EQPERVJD.js.map} +0 -0
- /package/dist/{chunk-OX4Q6Z5R.js.map → chunk-EWJOCRNV.js.map} +0 -0
- /package/dist/{chunk-M7QSGOTT.js.map → chunk-G5MEAIEY.js.map} +0 -0
- /package/dist/{chunk-2PC7UK66.js.map → chunk-HPLN5FUH.js.map} +0 -0
- /package/dist/{chunk-PHKBTCLT.js.map → chunk-IN2XQ6AY.js.map} +0 -0
- /package/dist/{chunk-Y3UMGUVE.js.map → chunk-KVPLJHUD.js.map} +0 -0
- /package/dist/{chunk-FT5UM6YL.js.map → chunk-LN2AL7L2.js.map} +0 -0
- /package/dist/{chunk-RHY3RRE6.js.map → chunk-MQVFTMJM.js.map} +0 -0
- /package/dist/{chunk-CXT225X7.js.map → chunk-NQHZG7FJ.js.map} +0 -0
- /package/dist/{chunk-VGDDQSCO.js.map → chunk-O6YOHBUT.js.map} +0 -0
- /package/dist/{chunk-UDNZNXXR.js.map → chunk-PUHROODW.js.map} +0 -0
- /package/dist/{chunk-P7MPKAPW.js.map → chunk-RNRRWM2A.js.map} +0 -0
- /package/dist/{chunk-NG5RU74R.js.map → chunk-RYSI7Q7Y.js.map} +0 -0
- /package/dist/{chunk-S45DDLGG.js.map → chunk-SLPUUK4Q.js.map} +0 -0
- /package/dist/{chunk-OOTTUF6Z.js.map → chunk-TEOI5N7O.js.map} +0 -0
- /package/dist/{chunk-HCN7LMEB.js.map → chunk-U3AYAKGI.js.map} +0 -0
- /package/dist/{chunk-ZOM357PV.js.map → chunk-UNFP4H42.js.map} +0 -0
- /package/dist/{chunk-CFTVDXFH.js.map → chunk-WTMV7L5U.js.map} +0 -0
- /package/dist/{chunk-BTS2TAAW.js.map → chunk-XTVLEXFN.js.map} +0 -0
- /package/dist/{chunk-FMH4U7NO.js.map → chunk-ZUDXNHIB.js.map} +0 -0
- /package/dist/{commands-Q5LUFGJ5.js.map → commands-3VZ7XRRF.js.map} +0 -0
- /package/dist/{config-YFZ2WAYP.js.map → config-BNXGPV5O.js.map} +0 -0
- /package/dist/{context-OOIFZD5B.js.map → context-HBDNJQKR.js.map} +0 -0
- /package/dist/{customCommands-C5UREHC4.js.map → customCommands-GLTGTRUH.js.map} +0 -0
- /package/dist/{env-LQJ2XZDO.js.map → env-ROQ4BDAH.js.map} +0 -0
- /package/dist/{file-ZBIAG7X4.js.map → file-2HXCS5WE.js.map} +0 -0
- /package/dist/{llm-RCNWJH2C.js.map → llm-KVE2U2V3.js.map} +0 -0
- /package/dist/{llmLazy-KXJFFPMF.js.map → llmLazy-Q2QJ3VTS.js.map} +0 -0
- /package/dist/{loader-ENRLCLHZ.js.map → loader-QNQFN4LE.js.map} +0 -0
- /package/dist/{lsp-VWL3PVQJ.js.map → lsp-MOZ34TIC.js.map} +0 -0
- /package/dist/{mcp-P5T4TUW2.js.map → mcp-A67BC77T.js.map} +0 -0
- /package/dist/{mentionProcessor-4ICD3GVH.js.map → mentionProcessor-F3MXBMQJ.js.map} +0 -0
- /package/dist/{messages-SEOXF7DS.js.map → messages-7VFLTKJA.js.map} +0 -0
- /package/dist/{model-YOPR5KUS.js.map → model-RGNG5GUY.js.map} +0 -0
- /package/dist/{openai-FVFZDXPS.js.map → openai-R7QDORCI.js.map} +0 -0
- /package/dist/{outputStyles-7ZZ2JBOT.js.map → outputStyles-P7YDT3J6.js.map} +0 -0
- /package/dist/{pluginRuntime-LASQNLIR.js.map → pluginRuntime-K6HWIYCH.js.map} +0 -0
- /package/dist/{pluginValidation-4BABNGAC.js.map → pluginValidation-W3KV47BG.js.map} +0 -0
- /package/dist/{prompts-DJNSFFKV.js.map → prompts-K4N5Y7ZD.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-O7V7I7CV.js.map → pybAgentSessionLoad-PJZM2CKJ.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-Q7EYAD6H.js.map → pybAgentSessionResume-VJ46VNTG.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-N374RMH5.js.map → pybAgentStreamJsonSession-CVRLDN56.js.map} +0 -0
- /package/dist/{pybHooks-MHFEMZC6.js.map → pybHooks-WIHUGN5B.js.map} +0 -0
- /package/dist/{query-LAUPI7JK.js.map → query-ZPNOEH35.js.map} +0 -0
- /package/dist/{registry-KVMGHJ4N.js.map → registry-5DE5QZMI.js.map} +0 -0
- /package/dist/{ripgrep-XSJJZ3W3.js.map → ripgrep-AFHAOO36.js.map} +0 -0
- /package/dist/{skillMarketplace-FL7XBTHJ.js.map → skillMarketplace-YJU2NWPK.js.map} +0 -0
- /package/dist/{state-5NJOFKYB.js.map → state-YENYNRDX.js.map} +0 -0
- /package/dist/{theme-Z26AKEVC.js.map → theme-Q54BLJ2L.js.map} +0 -0
- /package/dist/{toolPermissionSettings-SPSMAX5P.js.map → toolPermissionSettings-XEQTLKSE.js.map} +0 -0
- /package/dist/{tools-Q44D6ZG7.js.map → tools-YK4JOXTT.js.map} +0 -0
- /package/dist/{userInput-3TEMRAK7.js.map → userInput-72LMV7AI.js.map} +0 -0
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
} from "./chunk-MWPFU2KU.js";
|
|
8
8
|
import {
|
|
9
9
|
getAllTools
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7JULAJHD.js";
|
|
11
11
|
import {
|
|
12
12
|
PybAgentStructuredStdio
|
|
13
13
|
} from "./chunk-5AGDLQAW.js";
|
|
14
14
|
import {
|
|
15
15
|
assertMinVersion
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SLPUUK4Q.js";
|
|
17
17
|
import {
|
|
18
18
|
getToolDescription
|
|
19
19
|
} from "./chunk-XI4LTVYT.js";
|
|
@@ -32,18 +32,18 @@ import {
|
|
|
32
32
|
review_default,
|
|
33
33
|
useExitOnCtrlCD,
|
|
34
34
|
useTerminalSize
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-HMTBDCO6.js";
|
|
36
|
+
import "./chunk-EWJOCRNV.js";
|
|
37
|
+
import "./chunk-TEOI5N7O.js";
|
|
38
|
+
import "./chunk-G5MEAIEY.js";
|
|
39
|
+
import "./chunk-4E7Y6UG2.js";
|
|
40
40
|
import "./chunk-5P7HBXTD.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-PUHROODW.js";
|
|
42
42
|
import {
|
|
43
43
|
clearOutputStyleCache
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-7AYBKYWT.js";
|
|
45
|
+
import "./chunk-IN2XQ6AY.js";
|
|
46
|
+
import "./chunk-EQPERVJD.js";
|
|
47
47
|
import {
|
|
48
48
|
addMcpServer,
|
|
49
49
|
ensureConfigScope,
|
|
@@ -58,44 +58,44 @@ import {
|
|
|
58
58
|
parseEnvVars,
|
|
59
59
|
parseMcpHeaders,
|
|
60
60
|
removeMcpServer
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-XTVLEXFN.js";
|
|
62
|
+
import "./chunk-KVPLJHUD.js";
|
|
63
|
+
import "./chunk-WTMV7L5U.js";
|
|
64
64
|
import "./chunk-UNNVICVU.js";
|
|
65
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-NQHZG7FJ.js";
|
|
66
66
|
import "./chunk-ERMQRV55.js";
|
|
67
67
|
import {
|
|
68
68
|
clearAgentCache,
|
|
69
69
|
setFlagAgentsFromCliJson
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-MQVFTMJM.js";
|
|
71
71
|
import {
|
|
72
72
|
setEnabledSettingSourcesFromCli
|
|
73
73
|
} from "./chunk-A3BVXXA3.js";
|
|
74
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-U3AYAKGI.js";
|
|
75
75
|
import "./chunk-3DFBSQIT.js";
|
|
76
76
|
import "./chunk-B6IMQJZM.js";
|
|
77
77
|
import "./chunk-OUXHGDLH.js";
|
|
78
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-ENJBFL7H.js";
|
|
79
79
|
import "./chunk-QWIBSCDN.js";
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
80
|
+
import "./chunk-L2W6O75K.js";
|
|
81
|
+
import "./chunk-346SFBDV.js";
|
|
82
|
+
import "./chunk-5MXVXJLZ.js";
|
|
83
83
|
import "./chunk-UZ34JEUK.js";
|
|
84
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-UNFP4H42.js";
|
|
85
85
|
import "./chunk-BJSWTHRM.js";
|
|
86
86
|
import {
|
|
87
87
|
getModelManager,
|
|
88
88
|
isDefaultSlowAndCapableModel
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-CWWCJY6A.js";
|
|
90
90
|
import {
|
|
91
91
|
getContext,
|
|
92
92
|
removeContext,
|
|
93
93
|
setContext
|
|
94
|
-
} from "./chunk-
|
|
95
|
-
import "./chunk-
|
|
94
|
+
} from "./chunk-RYSI7Q7Y.js";
|
|
95
|
+
import "./chunk-LN2AL7L2.js";
|
|
96
96
|
import {
|
|
97
97
|
getTheme
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-ZUDXNHIB.js";
|
|
99
99
|
import {
|
|
100
100
|
checkHasTrustDialogAccepted,
|
|
101
101
|
deleteConfigForCLI,
|
|
@@ -109,14 +109,14 @@ import {
|
|
|
109
109
|
saveGlobalConfig,
|
|
110
110
|
setConfigForCLI,
|
|
111
111
|
validateAndRepairAllGPT5Profiles
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-HPLN5FUH.js";
|
|
113
113
|
import {
|
|
114
114
|
ConfigParseError
|
|
115
115
|
} from "./chunk-RQVLBMP7.js";
|
|
116
116
|
import {
|
|
117
117
|
debug,
|
|
118
118
|
initDebugLogger
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-O6YOHBUT.js";
|
|
120
120
|
import {
|
|
121
121
|
BunShell,
|
|
122
122
|
CACHE_PATHS,
|
|
@@ -132,10 +132,10 @@ import {
|
|
|
132
132
|
parseLogFilename,
|
|
133
133
|
setCwd,
|
|
134
134
|
setOriginalCwd
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-RNRRWM2A.js";
|
|
136
136
|
import {
|
|
137
137
|
MACRO
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-2UTQNPK5.js";
|
|
139
139
|
import "./chunk-I3J4JYES.js";
|
|
140
140
|
|
|
141
141
|
// src/entrypoints/cli/runCli.tsx
|
|
@@ -295,7 +295,7 @@ function createPrintModeControlRequestHandler(args) {
|
|
|
295
295
|
|
|
296
296
|
// src/entrypoints/cli/stdio/streamJsonSession.ts
|
|
297
297
|
async function runPrintModeStreamJsonSession(args) {
|
|
298
|
-
const { runPybAgentStreamJsonSession } = await import("./pybAgentStreamJsonSession-
|
|
298
|
+
const { runPybAgentStreamJsonSession } = await import("./pybAgentStreamJsonSession-CVRLDN56.js");
|
|
299
299
|
await runPybAgentStreamJsonSession(args);
|
|
300
300
|
}
|
|
301
301
|
|
|
@@ -449,18 +449,18 @@ async function runPrintMode({
|
|
|
449
449
|
`);
|
|
450
450
|
process.exit(0);
|
|
451
451
|
}
|
|
452
|
-
const { createUserMessage } = await import("./messages-
|
|
453
|
-
const { getSystemPrompt } = await import("./prompts-
|
|
454
|
-
const { getContext: getContext2 } = await import("./context-
|
|
452
|
+
const { createUserMessage } = await import("./messages-7VFLTKJA.js");
|
|
453
|
+
const { getSystemPrompt } = await import("./prompts-K4N5Y7ZD.js");
|
|
454
|
+
const { getContext: getContext2 } = await import("./context-HBDNJQKR.js");
|
|
455
455
|
const { getTotalCost } = await import("./costTracker-DJVFVAVZ.js");
|
|
456
|
-
const { query } = await import("./query-
|
|
456
|
+
const { query } = await import("./query-ZPNOEH35.js");
|
|
457
457
|
const { getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
458
458
|
const { pybMessageToSdkMessage, makeSdkInitMessage, makeSdkResultMessage } = await import("./pybAgentStreamJson-EQPO52B6.js");
|
|
459
459
|
const { PybAgentStructuredStdio: PybAgentStructuredStdio2 } = await import("./pybAgentStructuredStdio-ROCSOGNT.js");
|
|
460
460
|
const {
|
|
461
461
|
loadToolPermissionContextFromDisk,
|
|
462
462
|
persistToolPermissionUpdateToDisk
|
|
463
|
-
} = await import("./toolPermissionSettings-
|
|
463
|
+
} = await import("./toolPermissionSettings-XEQTLKSE.js");
|
|
464
464
|
const { applyToolPermissionContextUpdates } = await import("./toolPermissionContext-BSFV23IL.js");
|
|
465
465
|
const sessionIdForSdk = getPybAgentSessionId();
|
|
466
466
|
const startedAt = Date.now();
|
|
@@ -840,9 +840,9 @@ async function setup(cwd2, safeMode) {
|
|
|
840
840
|
grantReadPermissionForOriginalDir();
|
|
841
841
|
let agentLoader;
|
|
842
842
|
try {
|
|
843
|
-
agentLoader = await import("./loader-
|
|
843
|
+
agentLoader = await import("./loader-QNQFN4LE.js");
|
|
844
844
|
} catch {
|
|
845
|
-
agentLoader = await import("./loader-
|
|
845
|
+
agentLoader = await import("./loader-QNQFN4LE.js");
|
|
846
846
|
}
|
|
847
847
|
const { startAgentWatcher } = agentLoader;
|
|
848
848
|
await startAgentWatcher(() => {
|
|
@@ -2020,12 +2020,12 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2020
2020
|
assertMinVersion();
|
|
2021
2021
|
{
|
|
2022
2022
|
const requested = Array.isArray(pluginDir) && pluginDir.length > 0 ? pluginDir : [];
|
|
2023
|
-
const { listEnabledInstalledPluginPackRoots } = await import("./skillMarketplace-
|
|
2023
|
+
const { listEnabledInstalledPluginPackRoots } = await import("./skillMarketplace-YJU2NWPK.js");
|
|
2024
2024
|
const installed = listEnabledInstalledPluginPackRoots();
|
|
2025
2025
|
const all = [...installed, ...requested].filter(Boolean);
|
|
2026
2026
|
const deduped = Array.from(new Set(all));
|
|
2027
2027
|
if (deduped.length > 0) {
|
|
2028
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
2028
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-K6HWIYCH.js");
|
|
2029
2029
|
const { errors } = await configureSessionPlugins({
|
|
2030
2030
|
pluginDirs: deduped
|
|
2031
2031
|
});
|
|
@@ -2035,9 +2035,9 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
2037
|
const [{ ask }, { getTools }, { getCommands }] = await Promise.all([
|
|
2038
|
-
import("./ask-
|
|
2039
|
-
import("./tools-
|
|
2040
|
-
import("./commands-
|
|
2038
|
+
import("./ask-64IU5XQT.js"),
|
|
2039
|
+
import("./tools-YK4JOXTT.js"),
|
|
2040
|
+
import("./commands-3VZ7XRRF.js")
|
|
2041
2041
|
]);
|
|
2042
2042
|
const commands = await getCommands();
|
|
2043
2043
|
const mcpClientsPromise = Array.isArray(mcpConfig) && mcpConfig.length > 0 || strictMcpConfig === true ? getClientsForCliMcpConfig({
|
|
@@ -2056,8 +2056,8 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2056
2056
|
const {
|
|
2057
2057
|
loadPybAgentSessionMessages,
|
|
2058
2058
|
findMostRecentPybAgentSessionId
|
|
2059
|
-
} = await import("./pybAgentSessionLoad-
|
|
2060
|
-
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-
|
|
2059
|
+
} = await import("./pybAgentSessionLoad-PJZM2CKJ.js");
|
|
2060
|
+
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-VJ46VNTG.js");
|
|
2061
2061
|
const { isUuid } = await import("./uuid-CVHEFGW4.js");
|
|
2062
2062
|
const { setPybAgentSessionId, getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
2063
2063
|
const { randomUUID } = await import("crypto");
|
|
@@ -2182,7 +2182,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2182
2182
|
{ getLatestVersion, getUpdateCommandSuggestions },
|
|
2183
2183
|
semverMod
|
|
2184
2184
|
] = await Promise.all([
|
|
2185
|
-
import("./autoUpdater-
|
|
2185
|
+
import("./autoUpdater-LMRJCWGC.js"),
|
|
2186
2186
|
import("semver")
|
|
2187
2187
|
]);
|
|
2188
2188
|
const semver = semverMod?.default ?? semverMod;
|
|
@@ -2243,7 +2243,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2243
2243
|
const isDefaultModel = await isDefaultSlowAndCapableModel();
|
|
2244
2244
|
{
|
|
2245
2245
|
const { render: render3 } = await import("ink");
|
|
2246
|
-
const { REPL } = await import("./REPL-
|
|
2246
|
+
const { REPL } = await import("./REPL-4WOBYT7I.js");
|
|
2247
2247
|
render3(
|
|
2248
2248
|
/* @__PURE__ */ React10.createElement(
|
|
2249
2249
|
REPL,
|
|
@@ -2331,7 +2331,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2331
2331
|
{ replace: !!replace }
|
|
2332
2332
|
);
|
|
2333
2333
|
saveGlobalConfig(nextConfig);
|
|
2334
|
-
await import("./model-
|
|
2334
|
+
await import("./model-RGNG5GUY.js").then(({ reloadModelManager }) => {
|
|
2335
2335
|
reloadModelManager();
|
|
2336
2336
|
});
|
|
2337
2337
|
if (warnings.length > 0) {
|
|
@@ -2350,7 +2350,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2350
2350
|
const workingDir = typeof options?.cwd === "string" ? options.cwd : typeof programCwd === "string" ? programCwd : cwd();
|
|
2351
2351
|
const asJson = options?.json === true;
|
|
2352
2352
|
await setup(workingDir, false);
|
|
2353
|
-
const { reloadModelManager, getModelManager: getModelManager2 } = await import("./model-
|
|
2353
|
+
const { reloadModelManager, getModelManager: getModelManager2 } = await import("./model-RGNG5GUY.js");
|
|
2354
2354
|
reloadModelManager();
|
|
2355
2355
|
const manager = getModelManager2();
|
|
2356
2356
|
const config2 = getGlobalConfig();
|
|
@@ -2424,7 +2424,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2424
2424
|
try {
|
|
2425
2425
|
const workingDir = typeof options?.cwd === "string" ? options.cwd : cwd();
|
|
2426
2426
|
await setup(workingDir, false);
|
|
2427
|
-
const { validateAgentTemplates } = await import("./agentsValidate-
|
|
2427
|
+
const { validateAgentTemplates } = await import("./agentsValidate-5XBOR23G.js");
|
|
2428
2428
|
const report = await validateAgentTemplates({
|
|
2429
2429
|
cwd: workingDir,
|
|
2430
2430
|
paths: Array.isArray(paths) ? paths : [],
|
|
@@ -2468,7 +2468,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2468
2468
|
const registerMarketplaceCommands = (marketplaceCmd2) => {
|
|
2469
2469
|
marketplaceCmd2.command("add <source>").description("Add a marketplace from a URL, path, or GitHub repo").action(async (source) => {
|
|
2470
2470
|
try {
|
|
2471
|
-
const { addMarketplace } = await import("./skillMarketplace-
|
|
2471
|
+
const { addMarketplace } = await import("./skillMarketplace-YJU2NWPK.js");
|
|
2472
2472
|
console.log("Adding marketplace...");
|
|
2473
2473
|
const { name } = await addMarketplace(source);
|
|
2474
2474
|
console.log(`Successfully added marketplace: ${name}`);
|
|
@@ -2480,7 +2480,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2480
2480
|
});
|
|
2481
2481
|
marketplaceCmd2.command("list").description("List all configured marketplaces").option("--json", "Output as JSON").action(async (options) => {
|
|
2482
2482
|
try {
|
|
2483
|
-
const { listMarketplaces } = await import("./skillMarketplace-
|
|
2483
|
+
const { listMarketplaces } = await import("./skillMarketplace-YJU2NWPK.js");
|
|
2484
2484
|
const marketplaces = listMarketplaces();
|
|
2485
2485
|
if (options.json) {
|
|
2486
2486
|
console.log(JSON.stringify(marketplaces, null, 2));
|
|
@@ -2519,7 +2519,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2519
2519
|
});
|
|
2520
2520
|
marketplaceCmd2.command("remove <name>").alias("rm").description("Remove a configured marketplace").action(async (name) => {
|
|
2521
2521
|
try {
|
|
2522
|
-
const { removeMarketplace } = await import("./skillMarketplace-
|
|
2522
|
+
const { removeMarketplace } = await import("./skillMarketplace-YJU2NWPK.js");
|
|
2523
2523
|
removeMarketplace(name);
|
|
2524
2524
|
console.log(`Successfully removed marketplace: ${name}`);
|
|
2525
2525
|
process.exit(0);
|
|
@@ -2536,7 +2536,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2536
2536
|
listMarketplaces,
|
|
2537
2537
|
refreshAllMarketplacesAsync,
|
|
2538
2538
|
refreshMarketplaceAsync
|
|
2539
|
-
} = await import("./skillMarketplace-
|
|
2539
|
+
} = await import("./skillMarketplace-YJU2NWPK.js");
|
|
2540
2540
|
const trimmed = typeof name === "string" ? name.trim() : "";
|
|
2541
2541
|
if (trimmed) {
|
|
2542
2542
|
console.log(`Updating marketplace: ${trimmed}...`);
|
|
@@ -2587,9 +2587,9 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2587
2587
|
);
|
|
2588
2588
|
process.exit(1);
|
|
2589
2589
|
}
|
|
2590
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2590
|
+
const { setCwd: setCwd2 } = await import("./state-YENYNRDX.js");
|
|
2591
2591
|
await setCwd2(options.cwd ?? cwd());
|
|
2592
|
-
const { installSkillPlugin } = await import("./skillMarketplace-
|
|
2592
|
+
const { installSkillPlugin } = await import("./skillMarketplace-YJU2NWPK.js");
|
|
2593
2593
|
const result = installSkillPlugin(plugin, {
|
|
2594
2594
|
scope,
|
|
2595
2595
|
force: options.force === true
|
|
@@ -2616,9 +2616,9 @@ ${skillList}`);
|
|
|
2616
2616
|
);
|
|
2617
2617
|
process.exit(1);
|
|
2618
2618
|
}
|
|
2619
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2619
|
+
const { setCwd: setCwd2 } = await import("./state-YENYNRDX.js");
|
|
2620
2620
|
await setCwd2(options.cwd ?? cwd());
|
|
2621
|
-
const { uninstallSkillPlugin } = await import("./skillMarketplace-
|
|
2621
|
+
const { uninstallSkillPlugin } = await import("./skillMarketplace-YJU2NWPK.js");
|
|
2622
2622
|
const result = uninstallSkillPlugin(plugin, { scope });
|
|
2623
2623
|
const skillList = result.removedSkills.length > 0 ? `Skills: ${result.removedSkills.join(", ")}` : "Skills: (none)";
|
|
2624
2624
|
console.log(`Uninstalled ${result.pluginSpec}
|
|
@@ -2642,9 +2642,9 @@ ${skillList}`);
|
|
|
2642
2642
|
);
|
|
2643
2643
|
process.exit(1);
|
|
2644
2644
|
}
|
|
2645
|
-
const { setCwd: setCwd2, getCwd: getCwd2 } = await import("./state-
|
|
2645
|
+
const { setCwd: setCwd2, getCwd: getCwd2 } = await import("./state-YENYNRDX.js");
|
|
2646
2646
|
await setCwd2(options.cwd ?? cwd());
|
|
2647
|
-
const { listInstalledSkillPlugins } = await import("./skillMarketplace-
|
|
2647
|
+
const { listInstalledSkillPlugins } = await import("./skillMarketplace-YJU2NWPK.js");
|
|
2648
2648
|
const all = listInstalledSkillPlugins();
|
|
2649
2649
|
const filtered = Object.fromEntries(
|
|
2650
2650
|
Object.entries(all).filter(([, record]) => {
|
|
@@ -2688,9 +2688,9 @@ ${skillList}`);
|
|
|
2688
2688
|
);
|
|
2689
2689
|
process.exit(1);
|
|
2690
2690
|
}
|
|
2691
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2691
|
+
const { setCwd: setCwd2 } = await import("./state-YENYNRDX.js");
|
|
2692
2692
|
await setCwd2(options.cwd ?? cwd());
|
|
2693
|
-
const { enableSkillPlugin } = await import("./skillMarketplace-
|
|
2693
|
+
const { enableSkillPlugin } = await import("./skillMarketplace-YJU2NWPK.js");
|
|
2694
2694
|
const result = enableSkillPlugin(plugin, { scope });
|
|
2695
2695
|
console.log(`Enabled ${result.pluginSpec}`);
|
|
2696
2696
|
process.exit(0);
|
|
@@ -2712,9 +2712,9 @@ ${skillList}`);
|
|
|
2712
2712
|
);
|
|
2713
2713
|
process.exit(1);
|
|
2714
2714
|
}
|
|
2715
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2715
|
+
const { setCwd: setCwd2 } = await import("./state-YENYNRDX.js");
|
|
2716
2716
|
await setCwd2(options.cwd ?? cwd());
|
|
2717
|
-
const { disableSkillPlugin } = await import("./skillMarketplace-
|
|
2717
|
+
const { disableSkillPlugin } = await import("./skillMarketplace-YJU2NWPK.js");
|
|
2718
2718
|
const result = disableSkillPlugin(plugin, { scope });
|
|
2719
2719
|
console.log(`Disabled ${result.pluginSpec}`);
|
|
2720
2720
|
process.exit(0);
|
|
@@ -2725,9 +2725,9 @@ ${skillList}`);
|
|
|
2725
2725
|
});
|
|
2726
2726
|
pluginCmd.command("validate <path>").description("Validate a plugin or marketplace manifest").option("--cwd <cwd>", "The current working directory", String, cwd()).action(async (path, options) => {
|
|
2727
2727
|
try {
|
|
2728
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2728
|
+
const { setCwd: setCwd2 } = await import("./state-YENYNRDX.js");
|
|
2729
2729
|
await setCwd2(options.cwd ?? cwd());
|
|
2730
|
-
const { formatValidationResult, validatePluginOrMarketplacePath } = await import("./pluginValidation-
|
|
2730
|
+
const { formatValidationResult, validatePluginOrMarketplacePath } = await import("./pluginValidation-W3KV47BG.js");
|
|
2731
2731
|
const result = validatePluginOrMarketplacePath(path);
|
|
2732
2732
|
console.log(
|
|
2733
2733
|
`Validating ${result.fileType} manifest: ${result.filePath}
|
|
@@ -2749,9 +2749,9 @@ ${skillList}`);
|
|
|
2749
2749
|
registerMarketplaceCommands(marketplaceCmd);
|
|
2750
2750
|
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) => {
|
|
2751
2751
|
try {
|
|
2752
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2752
|
+
const { setCwd: setCwd2 } = await import("./state-YENYNRDX.js");
|
|
2753
2753
|
await setCwd2(options.cwd ?? cwd());
|
|
2754
|
-
const { installSkillPlugin } = await import("./skillMarketplace-
|
|
2754
|
+
const { installSkillPlugin } = await import("./skillMarketplace-YJU2NWPK.js");
|
|
2755
2755
|
const result = installSkillPlugin(plugin, {
|
|
2756
2756
|
project: options.project === true,
|
|
2757
2757
|
force: options.force === true
|
|
@@ -2767,9 +2767,9 @@ ${skillList}`);
|
|
|
2767
2767
|
});
|
|
2768
2768
|
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) => {
|
|
2769
2769
|
try {
|
|
2770
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2770
|
+
const { setCwd: setCwd2 } = await import("./state-YENYNRDX.js");
|
|
2771
2771
|
await setCwd2(options.cwd ?? cwd());
|
|
2772
|
-
const { uninstallSkillPlugin } = await import("./skillMarketplace-
|
|
2772
|
+
const { uninstallSkillPlugin } = await import("./skillMarketplace-YJU2NWPK.js");
|
|
2773
2773
|
const result = uninstallSkillPlugin(plugin, {
|
|
2774
2774
|
project: options.project === true
|
|
2775
2775
|
});
|
|
@@ -2784,7 +2784,7 @@ ${skillList}`);
|
|
|
2784
2784
|
});
|
|
2785
2785
|
skillsCmd.command("list-installed").description("List installed skill plugins").action(async () => {
|
|
2786
2786
|
try {
|
|
2787
|
-
const { listInstalledSkillPlugins } = await import("./skillMarketplace-
|
|
2787
|
+
const { listInstalledSkillPlugins } = await import("./skillMarketplace-YJU2NWPK.js");
|
|
2788
2788
|
console.log(JSON.stringify(listInstalledSkillPlugins(), null, 2));
|
|
2789
2789
|
process.exit(0);
|
|
2790
2790
|
} catch (error) {
|
|
@@ -3430,7 +3430,7 @@ ${skillList}`);
|
|
|
3430
3430
|
const ink = await import("ink");
|
|
3431
3431
|
const reactModule = await import("react");
|
|
3432
3432
|
const inkjsui = await import("@inkjs/ui");
|
|
3433
|
-
const utilsTheme = await import("./theme-
|
|
3433
|
+
const utilsTheme = await import("./theme-Q54BLJ2L.js");
|
|
3434
3434
|
const { render: render3 } = ink;
|
|
3435
3435
|
const React11 = reactModule;
|
|
3436
3436
|
const { MultiSelect: MultiSelect2 } = inkjsui;
|
|
@@ -3574,8 +3574,8 @@ ${skillList}`);
|
|
|
3574
3574
|
const programCwd = program.opts().cwd;
|
|
3575
3575
|
const workingDir = typeof commandOptions?.cwd === "string" ? commandOptions.cwd : typeof programCwd === "string" ? programCwd : cwd();
|
|
3576
3576
|
await setup(workingDir, false);
|
|
3577
|
-
const { getAbsolutePath } = await import("./file-
|
|
3578
|
-
const { LspFacade } = await import("./lsp-
|
|
3577
|
+
const { getAbsolutePath } = await import("./file-2HXCS5WE.js");
|
|
3578
|
+
const { LspFacade } = await import("./lsp-MOZ34TIC.js");
|
|
3579
3579
|
const { existsSync: existsSync2 } = await import("fs");
|
|
3580
3580
|
const absPath = getAbsolutePath(file) ?? file;
|
|
3581
3581
|
if (!existsSync2(absPath)) {
|
|
@@ -3583,8 +3583,10 @@ ${skillList}`);
|
|
|
3583
3583
|
process.exit(1);
|
|
3584
3584
|
}
|
|
3585
3585
|
if (commandOptions?.wait) {
|
|
3586
|
-
await LspFacade.
|
|
3587
|
-
|
|
3586
|
+
await LspFacade.run({
|
|
3587
|
+
operation: "diagnostics",
|
|
3588
|
+
filePath: absPath,
|
|
3589
|
+
waitForDiagnostics: true,
|
|
3588
3590
|
timeoutMs: commandOptions?.timeout,
|
|
3589
3591
|
rootPath: workingDir
|
|
3590
3592
|
});
|
|
@@ -3606,7 +3608,7 @@ ${skillList}`);
|
|
|
3606
3608
|
const programCwd = program.opts().cwd;
|
|
3607
3609
|
const workingDir = typeof commandOptions?.cwd === "string" ? commandOptions.cwd : typeof programCwd === "string" ? programCwd : cwd();
|
|
3608
3610
|
await setup(workingDir, false);
|
|
3609
|
-
const { LspFacade } = await import("./lsp-
|
|
3611
|
+
const { LspFacade } = await import("./lsp-MOZ34TIC.js");
|
|
3610
3612
|
const result = await LspFacade.run({
|
|
3611
3613
|
operation: "workspaceSymbol",
|
|
3612
3614
|
filePath: query,
|
|
@@ -3625,8 +3627,8 @@ ${skillList}`);
|
|
|
3625
3627
|
const programCwd = program.opts().cwd;
|
|
3626
3628
|
const workingDir = typeof commandOptions?.cwd === "string" ? commandOptions.cwd : typeof programCwd === "string" ? programCwd : cwd();
|
|
3627
3629
|
await setup(workingDir, false);
|
|
3628
|
-
const { getAbsolutePath } = await import("./file-
|
|
3629
|
-
const { LspFacade } = await import("./lsp-
|
|
3630
|
+
const { getAbsolutePath } = await import("./file-2HXCS5WE.js");
|
|
3631
|
+
const { LspFacade } = await import("./lsp-MOZ34TIC.js");
|
|
3630
3632
|
const { existsSync: existsSync2 } = await import("fs");
|
|
3631
3633
|
const absPath = getAbsolutePath(file) ?? file;
|
|
3632
3634
|
if (!existsSync2(absPath)) {
|
|
@@ -3651,7 +3653,7 @@ ${skillList}`);
|
|
|
3651
3653
|
const programCwd = program.opts().cwd;
|
|
3652
3654
|
const workingDir = typeof commandOptions?.cwd === "string" ? commandOptions.cwd : typeof programCwd === "string" ? programCwd : cwd();
|
|
3653
3655
|
await setup(workingDir, false);
|
|
3654
|
-
const { LspFacade } = await import("./lsp-
|
|
3656
|
+
const { LspFacade } = await import("./lsp-MOZ34TIC.js");
|
|
3655
3657
|
const status = LspFacade.status();
|
|
3656
3658
|
console.log(JSON.stringify(status, null, 2));
|
|
3657
3659
|
process.exit(0);
|
|
@@ -3666,7 +3668,7 @@ ${skillList}`);
|
|
|
3666
3668
|
const programCwd = program.opts().cwd;
|
|
3667
3669
|
const workingDir = typeof commandOptions?.cwd === "string" ? commandOptions.cwd : typeof programCwd === "string" ? programCwd : cwd();
|
|
3668
3670
|
await setup(workingDir, false);
|
|
3669
|
-
const { LspFacade } = await import("./lsp-
|
|
3671
|
+
const { LspFacade } = await import("./lsp-MOZ34TIC.js");
|
|
3670
3672
|
const host = typeof commandOptions?.host === "string" && commandOptions.host.length > 0 ? commandOptions.host : "127.0.0.1";
|
|
3671
3673
|
const port = typeof commandOptions?.port === "number" && !Number.isNaN(commandOptions.port) ? commandOptions.port : 7337;
|
|
3672
3674
|
const server = LspFacade.serveStatus({ host, port });
|
|
@@ -3692,7 +3694,7 @@ ${skillList}`);
|
|
|
3692
3694
|
program.command("update").description("Show manual upgrade commands (no auto-install)").action(async () => {
|
|
3693
3695
|
console.log(`Current version: ${MACRO.VERSION}`);
|
|
3694
3696
|
console.log("Checking for updates...");
|
|
3695
|
-
const { getLatestVersion, getUpdateCommandSuggestions } = await import("./autoUpdater-
|
|
3697
|
+
const { getLatestVersion, getUpdateCommandSuggestions } = await import("./autoUpdater-LMRJCWGC.js");
|
|
3696
3698
|
const latestVersion = await getLatestVersion();
|
|
3697
3699
|
if (!latestVersion) {
|
|
3698
3700
|
console.error("Failed to check for updates");
|
|
@@ -3747,8 +3749,8 @@ ${skillList}`);
|
|
|
3747
3749
|
await setup(cwd2, safe);
|
|
3748
3750
|
assertMinVersion();
|
|
3749
3751
|
const [{ getTools }, { getCommands }] = await Promise.all([
|
|
3750
|
-
import("./tools-
|
|
3751
|
-
import("./commands-
|
|
3752
|
+
import("./tools-YK4JOXTT.js"),
|
|
3753
|
+
import("./commands-3VZ7XRRF.js")
|
|
3752
3754
|
]);
|
|
3753
3755
|
const [allTools, commands, mcpClients] = await Promise.all([
|
|
3754
3756
|
getTools(
|
|
@@ -3759,8 +3761,8 @@ ${skillList}`);
|
|
|
3759
3761
|
]);
|
|
3760
3762
|
const tools = disableSlashCommands === true ? allTools.filter((t) => t.name !== "SlashCommand") : allTools;
|
|
3761
3763
|
if (identifier !== void 0) {
|
|
3762
|
-
const { loadPybAgentSessionMessages } = await import("./pybAgentSessionLoad-
|
|
3763
|
-
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-
|
|
3764
|
+
const { loadPybAgentSessionMessages } = await import("./pybAgentSessionLoad-PJZM2CKJ.js");
|
|
3765
|
+
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-VJ46VNTG.js");
|
|
3764
3766
|
const { setPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
3765
3767
|
const rawIdentifier = String(identifier).trim();
|
|
3766
3768
|
const isLegacyNumber = /^-?\\d+$/.test(rawIdentifier);
|
|
@@ -3830,7 +3832,7 @@ ${skillList}`);
|
|
|
3830
3832
|
const isDefaultModel = await isDefaultSlowAndCapableModel();
|
|
3831
3833
|
{
|
|
3832
3834
|
const { render: render3 } = await import("ink");
|
|
3833
|
-
const { REPL } = await import("./REPL-
|
|
3835
|
+
const { REPL } = await import("./REPL-4WOBYT7I.js");
|
|
3834
3836
|
render3(
|
|
3835
3837
|
/* @__PURE__ */ React10.createElement(
|
|
3836
3838
|
REPL,
|
|
@@ -3857,7 +3859,7 @@ ${skillList}`);
|
|
|
3857
3859
|
process.exit(1);
|
|
3858
3860
|
}
|
|
3859
3861
|
} else {
|
|
3860
|
-
const { listPybAgentSessions } = await import("./pybAgentSessionResume-
|
|
3862
|
+
const { listPybAgentSessions } = await import("./pybAgentSessionResume-VJ46VNTG.js");
|
|
3861
3863
|
const sessions = listPybAgentSessions({ cwd: cwd2 });
|
|
3862
3864
|
if (sessions.length === 0) {
|
|
3863
3865
|
console.error("No conversation found to resume");
|
|
@@ -3962,7 +3964,7 @@ async function gracefulExit(code = 0) {
|
|
|
3962
3964
|
}
|
|
3963
3965
|
isGracefulExitInProgress = true;
|
|
3964
3966
|
try {
|
|
3965
|
-
const { runSessionEndHooks } = await import("./pybHooks-
|
|
3967
|
+
const { runSessionEndHooks } = await import("./pybHooks-WIHUGN5B.js");
|
|
3966
3968
|
const { getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
3967
3969
|
const { tmpdir } = await import("os");
|
|
3968
3970
|
const { join: join2 } = await import("path");
|