pybao-cli 1.3.40 → 1.3.41
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-MBQCMFZU.js +42 -0
- package/dist/{acp-HK26TVTX.js → acp-QKD5VUCV.js} +26 -26
- package/dist/{agentsValidate-C52NI4ZX.js → agentsValidate-KGXQRAJZ.js} +7 -7
- package/dist/{ask-TIKNC4HH.js → ask-NG2DSJRD.js} +25 -25
- package/dist/{autoUpdater-6U6FBBY4.js → autoUpdater-PBGQE65K.js} +3 -3
- package/dist/{chunk-J4CEGSQ7.js → chunk-2WZBP3E6.js} +3 -3
- package/dist/{chunk-J5HENS3F.js → chunk-323DBFRU.js} +1 -1
- package/dist/{chunk-MET7COVN.js → chunk-3PVOXGE5.js} +3 -3
- package/dist/{chunk-JPJLV62E.js → chunk-6C2CNJRZ.js} +3 -3
- package/dist/{chunk-CZGRVY44.js → chunk-7GCGTI7J.js} +1 -1
- package/dist/{chunk-L6PDI2LK.js → chunk-AMVMTW6J.js} +1 -1
- package/dist/{chunk-MXDNS5HL.js → chunk-CBTG3DDM.js} +4 -4
- package/dist/{chunk-MONIWPPJ.js → chunk-E6MRBVMZ.js} +4 -4
- package/dist/chunk-E6MRBVMZ.js.map +7 -0
- package/dist/{chunk-IUNA74OB.js → chunk-F6SGOSTZ.js} +3 -3
- package/dist/{chunk-QHPT5HAM.js → chunk-FLAFIEJY.js} +2 -2
- package/dist/{chunk-NIDMOHDA.js → chunk-G5EEYVNM.js} +1 -1
- package/dist/{chunk-NIDMOHDA.js.map → chunk-G5EEYVNM.js.map} +1 -1
- package/dist/{chunk-OJ3JWDTV.js → chunk-GDOGPXE6.js} +2 -2
- package/dist/{chunk-MGU7OPPZ.js → chunk-GU7DR4Q6.js} +4 -4
- package/dist/{chunk-PKOB5QYA.js → chunk-GY3JVIGB.js} +1 -1
- package/dist/{chunk-I3X7KJ7P.js → chunk-IVDZ5RFK.js} +11 -11
- package/dist/{chunk-RVDWDEY6.js → chunk-JNQ5X6FY.js} +1 -1
- package/dist/{chunk-4RVXOTCT.js → chunk-KLT3BL7D.js} +2 -2
- package/dist/{chunk-VL3J3OB7.js → chunk-L2STOSKP.js} +3 -3
- package/dist/{chunk-7BI7LYYP.js → chunk-PDFPZAVP.js} +2 -2
- package/dist/{chunk-Y4NSWZ3P.js → chunk-TFNPGJGI.js} +3 -3
- package/dist/{chunk-U5K52MY5.js → chunk-TGOTYPGA.js} +90 -43
- package/dist/chunk-TGOTYPGA.js.map +7 -0
- package/dist/{chunk-OH45AP2K.js → chunk-VIFUYXF3.js} +2 -2
- package/dist/{chunk-YUB4IWOB.js → chunk-VOXTBNUO.js} +1 -1
- package/dist/{chunk-BO7QTTFB.js → chunk-W7JREM72.js} +3 -3
- package/dist/{chunk-GDKAN3RP.js → chunk-WIFBEJAS.js} +1 -1
- package/dist/{chunk-74XTVYUF.js → chunk-YHZXXFBV.js} +66 -2
- package/dist/chunk-YHZXXFBV.js.map +7 -0
- package/dist/{chunk-GXHQJSTV.js → chunk-YPLS7OWH.js} +2 -2
- package/dist/{cli-KNGFKSED.js → cli-KKDAWCY2.js} +85 -79
- package/dist/cli-KKDAWCY2.js.map +7 -0
- package/dist/commands-TJ4JH5Y6.js +46 -0
- package/dist/{config-XXRW4FRM.js → config-WUL7I6UC.js} +4 -4
- package/dist/{context-HHVWYM7B.js → context-HY6Z3A5M.js} +5 -5
- package/dist/{customCommands-O2D54K5O.js → customCommands-AUI43OH4.js} +4 -4
- package/dist/{env-EBRAYCUX.js → env-6DF67ZM4.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{llm-VIIROLPD.js → llm-5SVIGJOW.js} +26 -26
- package/dist/{llmLazy-VJU63SZW.js → llmLazy-23OYBTCV.js} +1 -1
- package/dist/{loader-JNQPPZNG.js → loader-ALO5SB6E.js} +4 -4
- package/dist/{mcp-2TQXBXD5.js → mcp-IUJFQINE.js} +7 -7
- package/dist/{mentionProcessor-5D7M7UMN.js → mentionProcessor-6WZPWT57.js} +5 -5
- package/dist/{messages-7L6RMHJ3.js → messages-DI4VAVMF.js} +1 -1
- package/dist/{model-YJD7P7GS.js → model-M5RQC5M4.js} +5 -5
- package/dist/{openai-PHUFOSMW.js → openai-WE5G54EO.js} +5 -5
- package/dist/{outputStyles-AHIYQTVA.js → outputStyles-SOEAXDKX.js} +4 -4
- package/dist/{pluginRuntime-2UNY7UUH.js → pluginRuntime-IZ3VID66.js} +6 -6
- package/dist/{pluginValidation-N5FWLZFG.js → pluginValidation-K6LGPOD6.js} +6 -6
- package/dist/prompts-45RRJ63H.js +48 -0
- package/dist/{pybAgentSessionLoad-MQXGEE2I.js → pybAgentSessionLoad-C2Q2ENOC.js} +4 -4
- package/dist/{pybAgentSessionResume-PPOQWVA6.js → pybAgentSessionResume-PFDYZVEA.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-JYKKNE3C.js → pybAgentStreamJsonSession-CXNTLW6O.js} +1 -1
- package/dist/{pybHooks-S7OXYH3A.js → pybHooks-256H2DVZ.js} +4 -4
- package/dist/query-GDNDZELU.js +50 -0
- package/dist/{ripgrep-OBTBZJHR.js → ripgrep-UY2H3NIW.js} +7 -5
- package/dist/{skillMarketplace-4PGHIXQA.js → skillMarketplace-FHDM3WVC.js} +3 -3
- package/dist/{state-WPCJDB3S.js → state-CVX5CCDE.js} +2 -2
- package/dist/{theme-UYKK2IIP.js → theme-26CQI4Q2.js} +5 -5
- package/dist/{toolPermissionSettings-KKYS2DME.js → toolPermissionSettings-5OSMDFQI.js} +6 -6
- package/dist/tools-QG2SSBXM.js +47 -0
- package/dist/{userInput-64WKJO4W.js → userInput-H2BNPDZZ.js} +27 -27
- package/package.json +1 -1
- package/dist/REPL-JM4MVCIA.js +0 -42
- package/dist/chunk-74XTVYUF.js.map +0 -7
- package/dist/chunk-MONIWPPJ.js.map +0 -7
- package/dist/chunk-U5K52MY5.js.map +0 -7
- package/dist/cli-KNGFKSED.js.map +0 -7
- package/dist/commands-3KPCNJBT.js +0 -46
- package/dist/prompts-4AX72FJY.js +0 -48
- package/dist/query-52V4X3BC.js +0 -50
- package/dist/tools-5PYR54EV.js +0 -47
- /package/dist/{REPL-JM4MVCIA.js.map → REPL-MBQCMFZU.js.map} +0 -0
- /package/dist/{acp-HK26TVTX.js.map → acp-QKD5VUCV.js.map} +0 -0
- /package/dist/{agentsValidate-C52NI4ZX.js.map → agentsValidate-KGXQRAJZ.js.map} +0 -0
- /package/dist/{ask-TIKNC4HH.js.map → ask-NG2DSJRD.js.map} +0 -0
- /package/dist/{autoUpdater-6U6FBBY4.js.map → autoUpdater-PBGQE65K.js.map} +0 -0
- /package/dist/{chunk-J4CEGSQ7.js.map → chunk-2WZBP3E6.js.map} +0 -0
- /package/dist/{chunk-J5HENS3F.js.map → chunk-323DBFRU.js.map} +0 -0
- /package/dist/{chunk-MET7COVN.js.map → chunk-3PVOXGE5.js.map} +0 -0
- /package/dist/{chunk-JPJLV62E.js.map → chunk-6C2CNJRZ.js.map} +0 -0
- /package/dist/{chunk-CZGRVY44.js.map → chunk-7GCGTI7J.js.map} +0 -0
- /package/dist/{chunk-L6PDI2LK.js.map → chunk-AMVMTW6J.js.map} +0 -0
- /package/dist/{chunk-MXDNS5HL.js.map → chunk-CBTG3DDM.js.map} +0 -0
- /package/dist/{chunk-IUNA74OB.js.map → chunk-F6SGOSTZ.js.map} +0 -0
- /package/dist/{chunk-QHPT5HAM.js.map → chunk-FLAFIEJY.js.map} +0 -0
- /package/dist/{chunk-OJ3JWDTV.js.map → chunk-GDOGPXE6.js.map} +0 -0
- /package/dist/{chunk-MGU7OPPZ.js.map → chunk-GU7DR4Q6.js.map} +0 -0
- /package/dist/{chunk-PKOB5QYA.js.map → chunk-GY3JVIGB.js.map} +0 -0
- /package/dist/{chunk-I3X7KJ7P.js.map → chunk-IVDZ5RFK.js.map} +0 -0
- /package/dist/{chunk-RVDWDEY6.js.map → chunk-JNQ5X6FY.js.map} +0 -0
- /package/dist/{chunk-4RVXOTCT.js.map → chunk-KLT3BL7D.js.map} +0 -0
- /package/dist/{chunk-VL3J3OB7.js.map → chunk-L2STOSKP.js.map} +0 -0
- /package/dist/{chunk-7BI7LYYP.js.map → chunk-PDFPZAVP.js.map} +0 -0
- /package/dist/{chunk-Y4NSWZ3P.js.map → chunk-TFNPGJGI.js.map} +0 -0
- /package/dist/{chunk-OH45AP2K.js.map → chunk-VIFUYXF3.js.map} +0 -0
- /package/dist/{chunk-YUB4IWOB.js.map → chunk-VOXTBNUO.js.map} +0 -0
- /package/dist/{chunk-BO7QTTFB.js.map → chunk-W7JREM72.js.map} +0 -0
- /package/dist/{chunk-GDKAN3RP.js.map → chunk-WIFBEJAS.js.map} +0 -0
- /package/dist/{chunk-GXHQJSTV.js.map → chunk-YPLS7OWH.js.map} +0 -0
- /package/dist/{commands-3KPCNJBT.js.map → commands-TJ4JH5Y6.js.map} +0 -0
- /package/dist/{config-XXRW4FRM.js.map → config-WUL7I6UC.js.map} +0 -0
- /package/dist/{context-HHVWYM7B.js.map → context-HY6Z3A5M.js.map} +0 -0
- /package/dist/{customCommands-O2D54K5O.js.map → customCommands-AUI43OH4.js.map} +0 -0
- /package/dist/{env-EBRAYCUX.js.map → env-6DF67ZM4.js.map} +0 -0
- /package/dist/{llm-VIIROLPD.js.map → llm-5SVIGJOW.js.map} +0 -0
- /package/dist/{llmLazy-VJU63SZW.js.map → llmLazy-23OYBTCV.js.map} +0 -0
- /package/dist/{loader-JNQPPZNG.js.map → loader-ALO5SB6E.js.map} +0 -0
- /package/dist/{mcp-2TQXBXD5.js.map → mcp-IUJFQINE.js.map} +0 -0
- /package/dist/{mentionProcessor-5D7M7UMN.js.map → mentionProcessor-6WZPWT57.js.map} +0 -0
- /package/dist/{messages-7L6RMHJ3.js.map → messages-DI4VAVMF.js.map} +0 -0
- /package/dist/{model-YJD7P7GS.js.map → model-M5RQC5M4.js.map} +0 -0
- /package/dist/{openai-PHUFOSMW.js.map → openai-WE5G54EO.js.map} +0 -0
- /package/dist/{outputStyles-AHIYQTVA.js.map → outputStyles-SOEAXDKX.js.map} +0 -0
- /package/dist/{pluginRuntime-2UNY7UUH.js.map → pluginRuntime-IZ3VID66.js.map} +0 -0
- /package/dist/{pluginValidation-N5FWLZFG.js.map → pluginValidation-K6LGPOD6.js.map} +0 -0
- /package/dist/{prompts-4AX72FJY.js.map → prompts-45RRJ63H.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-MQXGEE2I.js.map → pybAgentSessionLoad-C2Q2ENOC.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-PPOQWVA6.js.map → pybAgentSessionResume-PFDYZVEA.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-JYKKNE3C.js.map → pybAgentStreamJsonSession-CXNTLW6O.js.map} +0 -0
- /package/dist/{pybHooks-S7OXYH3A.js.map → pybHooks-256H2DVZ.js.map} +0 -0
- /package/dist/{query-52V4X3BC.js.map → query-GDNDZELU.js.map} +0 -0
- /package/dist/{ripgrep-OBTBZJHR.js.map → ripgrep-UY2H3NIW.js.map} +0 -0
- /package/dist/{skillMarketplace-4PGHIXQA.js.map → skillMarketplace-FHDM3WVC.js.map} +0 -0
- /package/dist/{state-WPCJDB3S.js.map → state-CVX5CCDE.js.map} +0 -0
- /package/dist/{theme-UYKK2IIP.js.map → theme-26CQI4Q2.js.map} +0 -0
- /package/dist/{toolPermissionSettings-KKYS2DME.js.map → toolPermissionSettings-5OSMDFQI.js.map} +0 -0
- /package/dist/{tools-5PYR54EV.js.map → tools-QG2SSBXM.js.map} +0 -0
- /package/dist/{userInput-64WKJO4W.js.map → userInput-H2BNPDZZ.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-IVDZ5RFK.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-F6SGOSTZ.js";
|
|
17
17
|
import {
|
|
18
18
|
getToolDescription
|
|
19
19
|
} from "./chunk-XI4LTVYT.js";
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
review_default,
|
|
33
33
|
useExitOnCtrlCD,
|
|
34
34
|
useTerminalSize
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-TGOTYPGA.js";
|
|
36
|
+
import "./chunk-323DBFRU.js";
|
|
37
37
|
import {
|
|
38
38
|
addMcpServer,
|
|
39
39
|
ensureConfigScope,
|
|
@@ -48,48 +48,48 @@ import {
|
|
|
48
48
|
parseEnvVars,
|
|
49
49
|
parseMcpHeaders,
|
|
50
50
|
removeMcpServer
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-GU7DR4Q6.js";
|
|
52
|
+
import "./chunk-W7JREM72.js";
|
|
53
|
+
import "./chunk-VOXTBNUO.js";
|
|
54
|
+
import "./chunk-7GCGTI7J.js";
|
|
55
|
+
import "./chunk-VIFUYXF3.js";
|
|
56
56
|
import "./chunk-5P7HBXTD.js";
|
|
57
57
|
import "./chunk-3DFBSQIT.js";
|
|
58
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-2WZBP3E6.js";
|
|
59
59
|
import "./chunk-B6IMQJZM.js";
|
|
60
60
|
import {
|
|
61
61
|
clearOutputStyleCache
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
62
|
+
} from "./chunk-KLT3BL7D.js";
|
|
63
|
+
import "./chunk-GDOGPXE6.js";
|
|
64
|
+
import "./chunk-CBTG3DDM.js";
|
|
65
|
+
import "./chunk-YHZXXFBV.js";
|
|
66
|
+
import "./chunk-PDFPZAVP.js";
|
|
67
|
+
import "./chunk-L2STOSKP.js";
|
|
68
|
+
import "./chunk-AMVMTW6J.js";
|
|
69
69
|
import "./chunk-UNNVICVU.js";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-FLAFIEJY.js";
|
|
71
71
|
import "./chunk-ERMQRV55.js";
|
|
72
72
|
import {
|
|
73
73
|
clearAgentCache,
|
|
74
74
|
setFlagAgentsFromCliJson
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-YPLS7OWH.js";
|
|
76
76
|
import {
|
|
77
77
|
setEnabledSettingSourcesFromCli
|
|
78
78
|
} from "./chunk-A3BVXXA3.js";
|
|
79
79
|
import "./chunk-BJSWTHRM.js";
|
|
80
|
-
import "./chunk-
|
|
80
|
+
import "./chunk-WIFBEJAS.js";
|
|
81
81
|
import {
|
|
82
82
|
getModelManager,
|
|
83
83
|
isDefaultSlowAndCapableModel
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-3PVOXGE5.js";
|
|
85
85
|
import {
|
|
86
86
|
getContext,
|
|
87
87
|
removeContext,
|
|
88
88
|
setContext
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-TFNPGJGI.js";
|
|
90
90
|
import {
|
|
91
91
|
getTheme
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-GY3JVIGB.js";
|
|
93
93
|
import {
|
|
94
94
|
checkHasTrustDialogAccepted,
|
|
95
95
|
deleteConfigForCLI,
|
|
@@ -103,14 +103,14 @@ import {
|
|
|
103
103
|
saveGlobalConfig,
|
|
104
104
|
setConfigForCLI,
|
|
105
105
|
validateAndRepairAllGPT5Profiles
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-6C2CNJRZ.js";
|
|
107
107
|
import {
|
|
108
108
|
ConfigParseError
|
|
109
109
|
} from "./chunk-RQVLBMP7.js";
|
|
110
110
|
import {
|
|
111
111
|
debug,
|
|
112
112
|
initDebugLogger
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-JNQ5X6FY.js";
|
|
114
114
|
import {
|
|
115
115
|
BunShell,
|
|
116
116
|
CACHE_PATHS,
|
|
@@ -126,10 +126,10 @@ import {
|
|
|
126
126
|
parseLogFilename,
|
|
127
127
|
setCwd,
|
|
128
128
|
setOriginalCwd
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-E6MRBVMZ.js";
|
|
130
130
|
import {
|
|
131
131
|
MACRO
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-G5EEYVNM.js";
|
|
133
133
|
import "./chunk-OUXHGDLH.js";
|
|
134
134
|
import "./chunk-I3J4JYES.js";
|
|
135
135
|
|
|
@@ -290,7 +290,7 @@ function createPrintModeControlRequestHandler(args) {
|
|
|
290
290
|
|
|
291
291
|
// src/entrypoints/cli/stdio/streamJsonSession.ts
|
|
292
292
|
async function runPrintModeStreamJsonSession(args) {
|
|
293
|
-
const { runPybAgentStreamJsonSession } = await import("./pybAgentStreamJsonSession-
|
|
293
|
+
const { runPybAgentStreamJsonSession } = await import("./pybAgentStreamJsonSession-CXNTLW6O.js");
|
|
294
294
|
await runPybAgentStreamJsonSession(args);
|
|
295
295
|
}
|
|
296
296
|
|
|
@@ -444,18 +444,18 @@ async function runPrintMode({
|
|
|
444
444
|
`);
|
|
445
445
|
process.exit(0);
|
|
446
446
|
}
|
|
447
|
-
const { createUserMessage } = await import("./messages-
|
|
448
|
-
const { getSystemPrompt } = await import("./prompts-
|
|
449
|
-
const { getContext: getContext2 } = await import("./context-
|
|
447
|
+
const { createUserMessage } = await import("./messages-DI4VAVMF.js");
|
|
448
|
+
const { getSystemPrompt } = await import("./prompts-45RRJ63H.js");
|
|
449
|
+
const { getContext: getContext2 } = await import("./context-HY6Z3A5M.js");
|
|
450
450
|
const { getTotalCost } = await import("./costTracker-DJVFVAVZ.js");
|
|
451
|
-
const { query } = await import("./query-
|
|
451
|
+
const { query } = await import("./query-GDNDZELU.js");
|
|
452
452
|
const { getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
453
453
|
const { pybMessageToSdkMessage, makeSdkInitMessage, makeSdkResultMessage } = await import("./pybAgentStreamJson-EQPO52B6.js");
|
|
454
454
|
const { PybAgentStructuredStdio: PybAgentStructuredStdio2 } = await import("./pybAgentStructuredStdio-ROCSOGNT.js");
|
|
455
455
|
const {
|
|
456
456
|
loadToolPermissionContextFromDisk,
|
|
457
457
|
persistToolPermissionUpdateToDisk
|
|
458
|
-
} = await import("./toolPermissionSettings-
|
|
458
|
+
} = await import("./toolPermissionSettings-5OSMDFQI.js");
|
|
459
459
|
const { applyToolPermissionContextUpdates } = await import("./toolPermissionContext-BSFV23IL.js");
|
|
460
460
|
const sessionIdForSdk = getPybAgentSessionId();
|
|
461
461
|
const startedAt = Date.now();
|
|
@@ -835,9 +835,9 @@ async function setup(cwd2, safeMode) {
|
|
|
835
835
|
grantReadPermissionForOriginalDir();
|
|
836
836
|
let agentLoader;
|
|
837
837
|
try {
|
|
838
|
-
agentLoader = await import("./loader-
|
|
838
|
+
agentLoader = await import("./loader-ALO5SB6E.js");
|
|
839
839
|
} catch {
|
|
840
|
-
agentLoader = await import("./loader-
|
|
840
|
+
agentLoader = await import("./loader-ALO5SB6E.js");
|
|
841
841
|
}
|
|
842
842
|
const { startAgentWatcher } = agentLoader;
|
|
843
843
|
await startAgentWatcher(() => {
|
|
@@ -1955,6 +1955,10 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
1955
1955
|
"--session-id <uuid>",
|
|
1956
1956
|
"Use a specific session ID for the conversation (must be a valid UUID)",
|
|
1957
1957
|
String
|
|
1958
|
+
).option(
|
|
1959
|
+
"--auto-exit",
|
|
1960
|
+
"Automatically exit when the task is completed (requires initial prompt)",
|
|
1961
|
+
() => true
|
|
1958
1962
|
).action(
|
|
1959
1963
|
async (prompt, {
|
|
1960
1964
|
cwd: cwd2,
|
|
@@ -1991,7 +1995,8 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
1991
1995
|
continue: continueConversation,
|
|
1992
1996
|
forkSession,
|
|
1993
1997
|
sessionId,
|
|
1994
|
-
sessionPersistence
|
|
1998
|
+
sessionPersistence,
|
|
1999
|
+
autoExit
|
|
1995
2000
|
}) => {
|
|
1996
2001
|
try {
|
|
1997
2002
|
setEnabledSettingSourcesFromCli(settingSources);
|
|
@@ -2010,12 +2015,12 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2010
2015
|
assertMinVersion();
|
|
2011
2016
|
{
|
|
2012
2017
|
const requested = Array.isArray(pluginDir) && pluginDir.length > 0 ? pluginDir : [];
|
|
2013
|
-
const { listEnabledInstalledPluginPackRoots } = await import("./skillMarketplace-
|
|
2018
|
+
const { listEnabledInstalledPluginPackRoots } = await import("./skillMarketplace-FHDM3WVC.js");
|
|
2014
2019
|
const installed = listEnabledInstalledPluginPackRoots();
|
|
2015
2020
|
const all = [...installed, ...requested].filter(Boolean);
|
|
2016
2021
|
const deduped = Array.from(new Set(all));
|
|
2017
2022
|
if (deduped.length > 0) {
|
|
2018
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
2023
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-IZ3VID66.js");
|
|
2019
2024
|
const { errors } = await configureSessionPlugins({
|
|
2020
2025
|
pluginDirs: deduped
|
|
2021
2026
|
});
|
|
@@ -2025,9 +2030,9 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2025
2030
|
}
|
|
2026
2031
|
}
|
|
2027
2032
|
const [{ ask }, { getTools }, { getCommands }] = await Promise.all([
|
|
2028
|
-
import("./ask-
|
|
2029
|
-
import("./tools-
|
|
2030
|
-
import("./commands-
|
|
2033
|
+
import("./ask-NG2DSJRD.js"),
|
|
2034
|
+
import("./tools-QG2SSBXM.js"),
|
|
2035
|
+
import("./commands-TJ4JH5Y6.js")
|
|
2031
2036
|
]);
|
|
2032
2037
|
const commands = await getCommands();
|
|
2033
2038
|
const mcpClientsPromise = Array.isArray(mcpConfig) && mcpConfig.length > 0 || strictMcpConfig === true ? getClientsForCliMcpConfig({
|
|
@@ -2046,8 +2051,8 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2046
2051
|
const {
|
|
2047
2052
|
loadPybAgentSessionMessages,
|
|
2048
2053
|
findMostRecentPybAgentSessionId
|
|
2049
|
-
} = await import("./pybAgentSessionLoad-
|
|
2050
|
-
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-
|
|
2054
|
+
} = await import("./pybAgentSessionLoad-C2Q2ENOC.js");
|
|
2055
|
+
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-PFDYZVEA.js");
|
|
2051
2056
|
const { isUuid } = await import("./uuid-CVHEFGW4.js");
|
|
2052
2057
|
const { setPybAgentSessionId, getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
2053
2058
|
const { randomUUID } = await import("crypto");
|
|
@@ -2172,7 +2177,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2172
2177
|
{ getLatestVersion, getUpdateCommandSuggestions },
|
|
2173
2178
|
semverMod
|
|
2174
2179
|
] = await Promise.all([
|
|
2175
|
-
import("./autoUpdater-
|
|
2180
|
+
import("./autoUpdater-PBGQE65K.js"),
|
|
2176
2181
|
import("semver")
|
|
2177
2182
|
]);
|
|
2178
2183
|
const semver = semverMod?.default ?? semverMod;
|
|
@@ -2233,7 +2238,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2233
2238
|
const isDefaultModel = await isDefaultSlowAndCapableModel();
|
|
2234
2239
|
{
|
|
2235
2240
|
const { render: render3 } = await import("ink");
|
|
2236
|
-
const { REPL } = await import("./REPL-
|
|
2241
|
+
const { REPL } = await import("./REPL-MBQCMFZU.js");
|
|
2237
2242
|
render3(
|
|
2238
2243
|
/* @__PURE__ */ React10.createElement(
|
|
2239
2244
|
REPL,
|
|
@@ -2251,7 +2256,8 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2251
2256
|
isDefaultModel,
|
|
2252
2257
|
initialUpdateVersion: updateInfo.version,
|
|
2253
2258
|
initialUpdateCommands: updateInfo.commands,
|
|
2254
|
-
initialMessages
|
|
2259
|
+
initialMessages,
|
|
2260
|
+
autoExit: Boolean(autoExit)
|
|
2255
2261
|
}
|
|
2256
2262
|
),
|
|
2257
2263
|
renderContext
|
|
@@ -2320,7 +2326,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2320
2326
|
{ replace: !!replace }
|
|
2321
2327
|
);
|
|
2322
2328
|
saveGlobalConfig(nextConfig);
|
|
2323
|
-
await import("./model-
|
|
2329
|
+
await import("./model-M5RQC5M4.js").then(({ reloadModelManager }) => {
|
|
2324
2330
|
reloadModelManager();
|
|
2325
2331
|
});
|
|
2326
2332
|
if (warnings.length > 0) {
|
|
@@ -2338,7 +2344,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2338
2344
|
const workingDir = typeof options?.cwd === "string" ? options.cwd : cwd();
|
|
2339
2345
|
const asJson = options?.json === true;
|
|
2340
2346
|
await setup(workingDir, false);
|
|
2341
|
-
const { reloadModelManager, getModelManager: getModelManager2 } = await import("./model-
|
|
2347
|
+
const { reloadModelManager, getModelManager: getModelManager2 } = await import("./model-M5RQC5M4.js");
|
|
2342
2348
|
reloadModelManager();
|
|
2343
2349
|
const manager = getModelManager2();
|
|
2344
2350
|
const config2 = getGlobalConfig();
|
|
@@ -2412,7 +2418,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2412
2418
|
try {
|
|
2413
2419
|
const workingDir = typeof options?.cwd === "string" ? options.cwd : cwd();
|
|
2414
2420
|
await setup(workingDir, false);
|
|
2415
|
-
const { validateAgentTemplates } = await import("./agentsValidate-
|
|
2421
|
+
const { validateAgentTemplates } = await import("./agentsValidate-KGXQRAJZ.js");
|
|
2416
2422
|
const report = await validateAgentTemplates({
|
|
2417
2423
|
cwd: workingDir,
|
|
2418
2424
|
paths: Array.isArray(paths) ? paths : [],
|
|
@@ -2456,7 +2462,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2456
2462
|
const registerMarketplaceCommands = (marketplaceCmd2) => {
|
|
2457
2463
|
marketplaceCmd2.command("add <source>").description("Add a marketplace from a URL, path, or GitHub repo").action(async (source) => {
|
|
2458
2464
|
try {
|
|
2459
|
-
const { addMarketplace } = await import("./skillMarketplace-
|
|
2465
|
+
const { addMarketplace } = await import("./skillMarketplace-FHDM3WVC.js");
|
|
2460
2466
|
console.log("Adding marketplace...");
|
|
2461
2467
|
const { name } = await addMarketplace(source);
|
|
2462
2468
|
console.log(`Successfully added marketplace: ${name}`);
|
|
@@ -2468,7 +2474,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2468
2474
|
});
|
|
2469
2475
|
marketplaceCmd2.command("list").description("List all configured marketplaces").option("--json", "Output as JSON").action(async (options) => {
|
|
2470
2476
|
try {
|
|
2471
|
-
const { listMarketplaces } = await import("./skillMarketplace-
|
|
2477
|
+
const { listMarketplaces } = await import("./skillMarketplace-FHDM3WVC.js");
|
|
2472
2478
|
const marketplaces = listMarketplaces();
|
|
2473
2479
|
if (options.json) {
|
|
2474
2480
|
console.log(JSON.stringify(marketplaces, null, 2));
|
|
@@ -2507,7 +2513,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2507
2513
|
});
|
|
2508
2514
|
marketplaceCmd2.command("remove <name>").alias("rm").description("Remove a configured marketplace").action(async (name) => {
|
|
2509
2515
|
try {
|
|
2510
|
-
const { removeMarketplace } = await import("./skillMarketplace-
|
|
2516
|
+
const { removeMarketplace } = await import("./skillMarketplace-FHDM3WVC.js");
|
|
2511
2517
|
removeMarketplace(name);
|
|
2512
2518
|
console.log(`Successfully removed marketplace: ${name}`);
|
|
2513
2519
|
process.exit(0);
|
|
@@ -2524,7 +2530,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2524
2530
|
listMarketplaces,
|
|
2525
2531
|
refreshAllMarketplacesAsync,
|
|
2526
2532
|
refreshMarketplaceAsync
|
|
2527
|
-
} = await import("./skillMarketplace-
|
|
2533
|
+
} = await import("./skillMarketplace-FHDM3WVC.js");
|
|
2528
2534
|
const trimmed = typeof name === "string" ? name.trim() : "";
|
|
2529
2535
|
if (trimmed) {
|
|
2530
2536
|
console.log(`Updating marketplace: ${trimmed}...`);
|
|
@@ -2575,9 +2581,9 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2575
2581
|
);
|
|
2576
2582
|
process.exit(1);
|
|
2577
2583
|
}
|
|
2578
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2584
|
+
const { setCwd: setCwd2 } = await import("./state-CVX5CCDE.js");
|
|
2579
2585
|
await setCwd2(options.cwd ?? cwd());
|
|
2580
|
-
const { installSkillPlugin } = await import("./skillMarketplace-
|
|
2586
|
+
const { installSkillPlugin } = await import("./skillMarketplace-FHDM3WVC.js");
|
|
2581
2587
|
const result = installSkillPlugin(plugin, {
|
|
2582
2588
|
scope,
|
|
2583
2589
|
force: options.force === true
|
|
@@ -2604,9 +2610,9 @@ ${skillList}`);
|
|
|
2604
2610
|
);
|
|
2605
2611
|
process.exit(1);
|
|
2606
2612
|
}
|
|
2607
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2613
|
+
const { setCwd: setCwd2 } = await import("./state-CVX5CCDE.js");
|
|
2608
2614
|
await setCwd2(options.cwd ?? cwd());
|
|
2609
|
-
const { uninstallSkillPlugin } = await import("./skillMarketplace-
|
|
2615
|
+
const { uninstallSkillPlugin } = await import("./skillMarketplace-FHDM3WVC.js");
|
|
2610
2616
|
const result = uninstallSkillPlugin(plugin, { scope });
|
|
2611
2617
|
const skillList = result.removedSkills.length > 0 ? `Skills: ${result.removedSkills.join(", ")}` : "Skills: (none)";
|
|
2612
2618
|
console.log(`Uninstalled ${result.pluginSpec}
|
|
@@ -2630,9 +2636,9 @@ ${skillList}`);
|
|
|
2630
2636
|
);
|
|
2631
2637
|
process.exit(1);
|
|
2632
2638
|
}
|
|
2633
|
-
const { setCwd: setCwd2, getCwd: getCwd2 } = await import("./state-
|
|
2639
|
+
const { setCwd: setCwd2, getCwd: getCwd2 } = await import("./state-CVX5CCDE.js");
|
|
2634
2640
|
await setCwd2(options.cwd ?? cwd());
|
|
2635
|
-
const { listInstalledSkillPlugins } = await import("./skillMarketplace-
|
|
2641
|
+
const { listInstalledSkillPlugins } = await import("./skillMarketplace-FHDM3WVC.js");
|
|
2636
2642
|
const all = listInstalledSkillPlugins();
|
|
2637
2643
|
const filtered = Object.fromEntries(
|
|
2638
2644
|
Object.entries(all).filter(([, record]) => {
|
|
@@ -2676,9 +2682,9 @@ ${skillList}`);
|
|
|
2676
2682
|
);
|
|
2677
2683
|
process.exit(1);
|
|
2678
2684
|
}
|
|
2679
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2685
|
+
const { setCwd: setCwd2 } = await import("./state-CVX5CCDE.js");
|
|
2680
2686
|
await setCwd2(options.cwd ?? cwd());
|
|
2681
|
-
const { enableSkillPlugin } = await import("./skillMarketplace-
|
|
2687
|
+
const { enableSkillPlugin } = await import("./skillMarketplace-FHDM3WVC.js");
|
|
2682
2688
|
const result = enableSkillPlugin(plugin, { scope });
|
|
2683
2689
|
console.log(`Enabled ${result.pluginSpec}`);
|
|
2684
2690
|
process.exit(0);
|
|
@@ -2700,9 +2706,9 @@ ${skillList}`);
|
|
|
2700
2706
|
);
|
|
2701
2707
|
process.exit(1);
|
|
2702
2708
|
}
|
|
2703
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2709
|
+
const { setCwd: setCwd2 } = await import("./state-CVX5CCDE.js");
|
|
2704
2710
|
await setCwd2(options.cwd ?? cwd());
|
|
2705
|
-
const { disableSkillPlugin } = await import("./skillMarketplace-
|
|
2711
|
+
const { disableSkillPlugin } = await import("./skillMarketplace-FHDM3WVC.js");
|
|
2706
2712
|
const result = disableSkillPlugin(plugin, { scope });
|
|
2707
2713
|
console.log(`Disabled ${result.pluginSpec}`);
|
|
2708
2714
|
process.exit(0);
|
|
@@ -2713,9 +2719,9 @@ ${skillList}`);
|
|
|
2713
2719
|
});
|
|
2714
2720
|
pluginCmd.command("validate <path>").description("Validate a plugin or marketplace manifest").option("--cwd <cwd>", "The current working directory", String, cwd()).action(async (path, options) => {
|
|
2715
2721
|
try {
|
|
2716
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2722
|
+
const { setCwd: setCwd2 } = await import("./state-CVX5CCDE.js");
|
|
2717
2723
|
await setCwd2(options.cwd ?? cwd());
|
|
2718
|
-
const { formatValidationResult, validatePluginOrMarketplacePath } = await import("./pluginValidation-
|
|
2724
|
+
const { formatValidationResult, validatePluginOrMarketplacePath } = await import("./pluginValidation-K6LGPOD6.js");
|
|
2719
2725
|
const result = validatePluginOrMarketplacePath(path);
|
|
2720
2726
|
console.log(
|
|
2721
2727
|
`Validating ${result.fileType} manifest: ${result.filePath}
|
|
@@ -2737,9 +2743,9 @@ ${skillList}`);
|
|
|
2737
2743
|
registerMarketplaceCommands(marketplaceCmd);
|
|
2738
2744
|
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) => {
|
|
2739
2745
|
try {
|
|
2740
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2746
|
+
const { setCwd: setCwd2 } = await import("./state-CVX5CCDE.js");
|
|
2741
2747
|
await setCwd2(options.cwd ?? cwd());
|
|
2742
|
-
const { installSkillPlugin } = await import("./skillMarketplace-
|
|
2748
|
+
const { installSkillPlugin } = await import("./skillMarketplace-FHDM3WVC.js");
|
|
2743
2749
|
const result = installSkillPlugin(plugin, {
|
|
2744
2750
|
project: options.project === true,
|
|
2745
2751
|
force: options.force === true
|
|
@@ -2755,9 +2761,9 @@ ${skillList}`);
|
|
|
2755
2761
|
});
|
|
2756
2762
|
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) => {
|
|
2757
2763
|
try {
|
|
2758
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2764
|
+
const { setCwd: setCwd2 } = await import("./state-CVX5CCDE.js");
|
|
2759
2765
|
await setCwd2(options.cwd ?? cwd());
|
|
2760
|
-
const { uninstallSkillPlugin } = await import("./skillMarketplace-
|
|
2766
|
+
const { uninstallSkillPlugin } = await import("./skillMarketplace-FHDM3WVC.js");
|
|
2761
2767
|
const result = uninstallSkillPlugin(plugin, {
|
|
2762
2768
|
project: options.project === true
|
|
2763
2769
|
});
|
|
@@ -2772,7 +2778,7 @@ ${skillList}`);
|
|
|
2772
2778
|
});
|
|
2773
2779
|
skillsCmd.command("list-installed").description("List installed skill plugins").action(async () => {
|
|
2774
2780
|
try {
|
|
2775
|
-
const { listInstalledSkillPlugins } = await import("./skillMarketplace-
|
|
2781
|
+
const { listInstalledSkillPlugins } = await import("./skillMarketplace-FHDM3WVC.js");
|
|
2776
2782
|
console.log(JSON.stringify(listInstalledSkillPlugins(), null, 2));
|
|
2777
2783
|
process.exit(0);
|
|
2778
2784
|
} catch (error) {
|
|
@@ -3418,7 +3424,7 @@ ${skillList}`);
|
|
|
3418
3424
|
const ink = await import("ink");
|
|
3419
3425
|
const reactModule = await import("react");
|
|
3420
3426
|
const inkjsui = await import("@inkjs/ui");
|
|
3421
|
-
const utilsTheme = await import("./theme-
|
|
3427
|
+
const utilsTheme = await import("./theme-26CQI4Q2.js");
|
|
3422
3428
|
const { render: render3 } = ink;
|
|
3423
3429
|
const React11 = reactModule;
|
|
3424
3430
|
const { MultiSelect: MultiSelect2 } = inkjsui;
|
|
@@ -3568,7 +3574,7 @@ ${skillList}`);
|
|
|
3568
3574
|
program.command("update").description("Show manual upgrade commands (no auto-install)").action(async () => {
|
|
3569
3575
|
console.log(`Current version: ${MACRO.VERSION}`);
|
|
3570
3576
|
console.log("Checking for updates...");
|
|
3571
|
-
const { getLatestVersion, getUpdateCommandSuggestions } = await import("./autoUpdater-
|
|
3577
|
+
const { getLatestVersion, getUpdateCommandSuggestions } = await import("./autoUpdater-PBGQE65K.js");
|
|
3572
3578
|
const latestVersion = await getLatestVersion();
|
|
3573
3579
|
if (!latestVersion) {
|
|
3574
3580
|
console.error("Failed to check for updates");
|
|
@@ -3623,8 +3629,8 @@ ${skillList}`);
|
|
|
3623
3629
|
await setup(cwd2, safe);
|
|
3624
3630
|
assertMinVersion();
|
|
3625
3631
|
const [{ getTools }, { getCommands }] = await Promise.all([
|
|
3626
|
-
import("./tools-
|
|
3627
|
-
import("./commands-
|
|
3632
|
+
import("./tools-QG2SSBXM.js"),
|
|
3633
|
+
import("./commands-TJ4JH5Y6.js")
|
|
3628
3634
|
]);
|
|
3629
3635
|
const [allTools, commands, mcpClients] = await Promise.all([
|
|
3630
3636
|
getTools(
|
|
@@ -3635,8 +3641,8 @@ ${skillList}`);
|
|
|
3635
3641
|
]);
|
|
3636
3642
|
const tools = disableSlashCommands === true ? allTools.filter((t) => t.name !== "SlashCommand") : allTools;
|
|
3637
3643
|
if (identifier !== void 0) {
|
|
3638
|
-
const { loadPybAgentSessionMessages } = await import("./pybAgentSessionLoad-
|
|
3639
|
-
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-
|
|
3644
|
+
const { loadPybAgentSessionMessages } = await import("./pybAgentSessionLoad-C2Q2ENOC.js");
|
|
3645
|
+
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-PFDYZVEA.js");
|
|
3640
3646
|
const { setPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
3641
3647
|
const rawIdentifier = String(identifier).trim();
|
|
3642
3648
|
const isLegacyNumber = /^-?\\d+$/.test(rawIdentifier);
|
|
@@ -3706,7 +3712,7 @@ ${skillList}`);
|
|
|
3706
3712
|
const isDefaultModel = await isDefaultSlowAndCapableModel();
|
|
3707
3713
|
{
|
|
3708
3714
|
const { render: render3 } = await import("ink");
|
|
3709
|
-
const { REPL } = await import("./REPL-
|
|
3715
|
+
const { REPL } = await import("./REPL-MBQCMFZU.js");
|
|
3710
3716
|
render3(
|
|
3711
3717
|
/* @__PURE__ */ React10.createElement(
|
|
3712
3718
|
REPL,
|
|
@@ -3733,7 +3739,7 @@ ${skillList}`);
|
|
|
3733
3739
|
process.exit(1);
|
|
3734
3740
|
}
|
|
3735
3741
|
} else {
|
|
3736
|
-
const { listPybAgentSessions } = await import("./pybAgentSessionResume-
|
|
3742
|
+
const { listPybAgentSessions } = await import("./pybAgentSessionResume-PFDYZVEA.js");
|
|
3737
3743
|
const sessions = listPybAgentSessions({ cwd: cwd2 });
|
|
3738
3744
|
if (sessions.length === 0) {
|
|
3739
3745
|
console.error("No conversation found to resume");
|
|
@@ -3838,7 +3844,7 @@ async function gracefulExit(code = 0) {
|
|
|
3838
3844
|
}
|
|
3839
3845
|
isGracefulExitInProgress = true;
|
|
3840
3846
|
try {
|
|
3841
|
-
const { runSessionEndHooks } = await import("./pybHooks-
|
|
3847
|
+
const { runSessionEndHooks } = await import("./pybHooks-256H2DVZ.js");
|
|
3842
3848
|
const { getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
3843
3849
|
const { tmpdir } = await import("os");
|
|
3844
3850
|
const { join: join2 } = await import("path");
|