pybao-cli 1.3.64 → 1.3.65
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-TCFWA7VA.js +42 -0
- package/dist/{acp-5GSH6EXS.js → acp-EVPEWDQB.js} +27 -27
- package/dist/{agentsValidate-VG3EFPJY.js → agentsValidate-KTGKQGH3.js} +7 -7
- package/dist/{ask-NXWU4WXV.js → ask-YUNSOAXW.js} +25 -25
- package/dist/{autoUpdater-CS37G7JH.js → autoUpdater-D4JZK6YO.js} +3 -3
- package/dist/{chunk-XO2GLVQX.js → chunk-434ZATUX.js} +4 -4
- package/dist/{chunk-L6E3GWAN.js → chunk-6RHUZJME.js} +2 -2
- package/dist/{chunk-HFVO3U7D.js → chunk-C6TR752A.js} +1 -1
- package/dist/{chunk-QCC7OITN.js → chunk-H5TODPNA.js} +2 -2
- package/dist/{chunk-WN2XXHNB.js → chunk-HAZECG4F.js} +2 -2
- package/dist/{chunk-JKZNJH4H.js → chunk-HBAIG6IJ.js} +37 -37
- package/dist/{chunk-K4F43CEG.js → chunk-HYHVMKPS.js} +1 -1
- package/dist/{chunk-ZZWMWREU.js → chunk-I4O5HH7E.js} +3 -3
- package/dist/{chunk-OOOIM522.js → chunk-JEXCNKX3.js} +3 -3
- package/dist/{chunk-62BPTM22.js → chunk-KBDG5XA4.js} +1 -1
- package/dist/{chunk-PA7H4OQC.js → chunk-KGVNIYBR.js} +2 -2
- package/dist/{chunk-ZD45HTW4.js → chunk-KNXONIE6.js} +2 -2
- package/dist/{chunk-L7XD2SDM.js → chunk-KTZEKTQR.js} +1 -1
- package/dist/{chunk-KGPZOVSK.js → chunk-L4WYF5QM.js} +1 -1
- package/dist/{chunk-KGPZOVSK.js.map → chunk-L4WYF5QM.js.map} +1 -1
- package/dist/{chunk-564FCO3O.js → chunk-O3BENNQK.js} +4 -4
- package/dist/{chunk-AWF22TQA.js → chunk-OC523AVG.js} +1 -1
- package/dist/{chunk-MFIUM74N.js → chunk-QCW47OQM.js} +1 -1
- package/dist/{chunk-RQAITTSX.js → chunk-TAPAKYYX.js} +16 -15
- package/dist/chunk-TAPAKYYX.js.map +7 -0
- package/dist/{chunk-F7YUCKEG.js → chunk-TJZEAWD3.js} +3 -3
- package/dist/{chunk-L7SSQIS4.js → chunk-UKLYLQFD.js} +1 -1
- package/dist/{chunk-44LIZIG4.js → chunk-VNW7MT3I.js} +1 -1
- package/dist/{chunk-DE45OGV2.js → chunk-WIAYHZ54.js} +3 -3
- package/dist/{chunk-E7DJCNPH.js → chunk-WLOUYBCM.js} +3 -3
- package/dist/{chunk-LATRINJL.js → chunk-X4QXMIVA.js} +1 -1
- package/dist/{chunk-BEYXNT3B.js → chunk-XPZWZF4K.js} +1 -1
- package/dist/{chunk-TQL2DUII.js → chunk-XZGFPBOR.js} +3 -3
- package/dist/{chunk-T262SVHZ.js → chunk-YLVRHKUS.js} +3 -3
- package/dist/{chunk-VUS6CHKJ.js → chunk-ZD2QDN7S.js} +2 -2
- package/dist/{cli-LTMUDVSO.js → cli-AJTYEKJH.js} +78 -78
- package/dist/commands-2PHDCX6T.js +46 -0
- package/dist/{config-LPIWUZDG.js → config-7ELX7NZF.js} +4 -4
- package/dist/{context-FDY7KASK.js → context-F6ZHQVBM.js} +5 -5
- package/dist/{customCommands-HL4L5XKU.js → customCommands-TTBY6NBG.js} +4 -4
- package/dist/{env-KT3C4PNM.js → env-CEHP75BI.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{llm-GFTKKVTZ.js → llm-HRR3PQBD.js} +26 -26
- package/dist/{llmLazy-V5UDMJXT.js → llmLazy-3RAPUNCP.js} +1 -1
- package/dist/{loader-7ZC2BNNC.js → loader-LCU6AAY7.js} +4 -4
- package/dist/{lspAnchor-XFCCXSQI.js → lspAnchor-YMUOPRY5.js} +4 -4
- package/dist/{manager-4UOP4R3A.js → manager-7GSX2YWP.js} +4 -4
- package/dist/{mcp-L2JIKEWZ.js → mcp-XAAN47CH.js} +7 -7
- package/dist/{mentionProcessor-OQ2CKQEI.js → mentionProcessor-YKSQAQCX.js} +5 -5
- package/dist/{messages-XGI3SVGF.js → messages-HHG47ANQ.js} +1 -1
- package/dist/{model-X64ICC6T.js → model-NW6AMAH5.js} +5 -5
- package/dist/{openai-CRIRHSVF.js → openai-6DSLFZWV.js} +5 -5
- package/dist/{outputStyles-6S5IPYOE.js → outputStyles-ZR2DWPAI.js} +4 -4
- package/dist/{pluginRuntime-E25X4DF2.js → pluginRuntime-H63ZSPRD.js} +6 -6
- package/dist/{pluginValidation-SSVRKP4T.js → pluginValidation-EWBWU7P6.js} +6 -6
- package/dist/prompts-7JXEYCNA.js +48 -0
- package/dist/{pybAgentSessionLoad-USXXUZ4J.js → pybAgentSessionLoad-HFJHLGAD.js} +4 -4
- package/dist/{pybAgentSessionResume-S7WYGRX4.js → pybAgentSessionResume-VO7LJRX2.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-4LVBFH43.js → pybAgentStreamJsonSession-GW7VVQN7.js} +1 -1
- package/dist/{pybHooks-UNH6GUNG.js → pybHooks-AE3QYGDK.js} +4 -4
- package/dist/query-Q6JJ3NSQ.js +50 -0
- package/dist/{ripgrep-3RK2NAQE.js → ripgrep-QS7M6TPP.js} +3 -3
- package/dist/{skillMarketplace-YZZMAWE3.js → skillMarketplace-GRGEW3IS.js} +3 -3
- package/dist/{state-5VXARPH2.js → state-EQXOUJZQ.js} +2 -2
- package/dist/{theme-N7F6FII5.js → theme-CZJHM5IU.js} +5 -5
- package/dist/{toolPermissionSettings-H5276GYI.js → toolPermissionSettings-6P7BPJS7.js} +6 -6
- package/dist/tools-D5CZXPC4.js +49 -0
- package/dist/{userInput-VQX2KYRL.js → userInput-6SBCD7MN.js} +27 -27
- package/package.json +1 -1
- package/dist/REPL-G5ROIO54.js +0 -42
- package/dist/chunk-RQAITTSX.js.map +0 -7
- package/dist/commands-OXAWOLWC.js +0 -46
- package/dist/prompts-SWS7INIG.js +0 -48
- package/dist/query-BM2KFEDF.js +0 -50
- package/dist/tools-Q5R2XLVA.js +0 -49
- /package/dist/{REPL-G5ROIO54.js.map → REPL-TCFWA7VA.js.map} +0 -0
- /package/dist/{acp-5GSH6EXS.js.map → acp-EVPEWDQB.js.map} +0 -0
- /package/dist/{agentsValidate-VG3EFPJY.js.map → agentsValidate-KTGKQGH3.js.map} +0 -0
- /package/dist/{ask-NXWU4WXV.js.map → ask-YUNSOAXW.js.map} +0 -0
- /package/dist/{autoUpdater-CS37G7JH.js.map → autoUpdater-D4JZK6YO.js.map} +0 -0
- /package/dist/{chunk-XO2GLVQX.js.map → chunk-434ZATUX.js.map} +0 -0
- /package/dist/{chunk-L6E3GWAN.js.map → chunk-6RHUZJME.js.map} +0 -0
- /package/dist/{chunk-HFVO3U7D.js.map → chunk-C6TR752A.js.map} +0 -0
- /package/dist/{chunk-QCC7OITN.js.map → chunk-H5TODPNA.js.map} +0 -0
- /package/dist/{chunk-WN2XXHNB.js.map → chunk-HAZECG4F.js.map} +0 -0
- /package/dist/{chunk-JKZNJH4H.js.map → chunk-HBAIG6IJ.js.map} +0 -0
- /package/dist/{chunk-K4F43CEG.js.map → chunk-HYHVMKPS.js.map} +0 -0
- /package/dist/{chunk-ZZWMWREU.js.map → chunk-I4O5HH7E.js.map} +0 -0
- /package/dist/{chunk-OOOIM522.js.map → chunk-JEXCNKX3.js.map} +0 -0
- /package/dist/{chunk-62BPTM22.js.map → chunk-KBDG5XA4.js.map} +0 -0
- /package/dist/{chunk-PA7H4OQC.js.map → chunk-KGVNIYBR.js.map} +0 -0
- /package/dist/{chunk-ZD45HTW4.js.map → chunk-KNXONIE6.js.map} +0 -0
- /package/dist/{chunk-L7XD2SDM.js.map → chunk-KTZEKTQR.js.map} +0 -0
- /package/dist/{chunk-564FCO3O.js.map → chunk-O3BENNQK.js.map} +0 -0
- /package/dist/{chunk-AWF22TQA.js.map → chunk-OC523AVG.js.map} +0 -0
- /package/dist/{chunk-MFIUM74N.js.map → chunk-QCW47OQM.js.map} +0 -0
- /package/dist/{chunk-F7YUCKEG.js.map → chunk-TJZEAWD3.js.map} +0 -0
- /package/dist/{chunk-L7SSQIS4.js.map → chunk-UKLYLQFD.js.map} +0 -0
- /package/dist/{chunk-44LIZIG4.js.map → chunk-VNW7MT3I.js.map} +0 -0
- /package/dist/{chunk-DE45OGV2.js.map → chunk-WIAYHZ54.js.map} +0 -0
- /package/dist/{chunk-E7DJCNPH.js.map → chunk-WLOUYBCM.js.map} +0 -0
- /package/dist/{chunk-LATRINJL.js.map → chunk-X4QXMIVA.js.map} +0 -0
- /package/dist/{chunk-BEYXNT3B.js.map → chunk-XPZWZF4K.js.map} +0 -0
- /package/dist/{chunk-TQL2DUII.js.map → chunk-XZGFPBOR.js.map} +0 -0
- /package/dist/{chunk-T262SVHZ.js.map → chunk-YLVRHKUS.js.map} +0 -0
- /package/dist/{chunk-VUS6CHKJ.js.map → chunk-ZD2QDN7S.js.map} +0 -0
- /package/dist/{cli-LTMUDVSO.js.map → cli-AJTYEKJH.js.map} +0 -0
- /package/dist/{commands-OXAWOLWC.js.map → commands-2PHDCX6T.js.map} +0 -0
- /package/dist/{config-LPIWUZDG.js.map → config-7ELX7NZF.js.map} +0 -0
- /package/dist/{context-FDY7KASK.js.map → context-F6ZHQVBM.js.map} +0 -0
- /package/dist/{customCommands-HL4L5XKU.js.map → customCommands-TTBY6NBG.js.map} +0 -0
- /package/dist/{env-KT3C4PNM.js.map → env-CEHP75BI.js.map} +0 -0
- /package/dist/{llm-GFTKKVTZ.js.map → llm-HRR3PQBD.js.map} +0 -0
- /package/dist/{llmLazy-V5UDMJXT.js.map → llmLazy-3RAPUNCP.js.map} +0 -0
- /package/dist/{loader-7ZC2BNNC.js.map → loader-LCU6AAY7.js.map} +0 -0
- /package/dist/{lspAnchor-XFCCXSQI.js.map → lspAnchor-YMUOPRY5.js.map} +0 -0
- /package/dist/{manager-4UOP4R3A.js.map → manager-7GSX2YWP.js.map} +0 -0
- /package/dist/{mcp-L2JIKEWZ.js.map → mcp-XAAN47CH.js.map} +0 -0
- /package/dist/{mentionProcessor-OQ2CKQEI.js.map → mentionProcessor-YKSQAQCX.js.map} +0 -0
- /package/dist/{messages-XGI3SVGF.js.map → messages-HHG47ANQ.js.map} +0 -0
- /package/dist/{model-X64ICC6T.js.map → model-NW6AMAH5.js.map} +0 -0
- /package/dist/{openai-CRIRHSVF.js.map → openai-6DSLFZWV.js.map} +0 -0
- /package/dist/{outputStyles-6S5IPYOE.js.map → outputStyles-ZR2DWPAI.js.map} +0 -0
- /package/dist/{pluginRuntime-E25X4DF2.js.map → pluginRuntime-H63ZSPRD.js.map} +0 -0
- /package/dist/{pluginValidation-SSVRKP4T.js.map → pluginValidation-EWBWU7P6.js.map} +0 -0
- /package/dist/{prompts-SWS7INIG.js.map → prompts-7JXEYCNA.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-USXXUZ4J.js.map → pybAgentSessionLoad-HFJHLGAD.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-S7WYGRX4.js.map → pybAgentSessionResume-VO7LJRX2.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-4LVBFH43.js.map → pybAgentStreamJsonSession-GW7VVQN7.js.map} +0 -0
- /package/dist/{pybHooks-UNH6GUNG.js.map → pybHooks-AE3QYGDK.js.map} +0 -0
- /package/dist/{query-BM2KFEDF.js.map → query-Q6JJ3NSQ.js.map} +0 -0
- /package/dist/{ripgrep-3RK2NAQE.js.map → ripgrep-QS7M6TPP.js.map} +0 -0
- /package/dist/{skillMarketplace-YZZMAWE3.js.map → skillMarketplace-GRGEW3IS.js.map} +0 -0
- /package/dist/{state-5VXARPH2.js.map → state-EQXOUJZQ.js.map} +0 -0
- /package/dist/{theme-N7F6FII5.js.map → theme-CZJHM5IU.js.map} +0 -0
- /package/dist/{toolPermissionSettings-H5276GYI.js.map → toolPermissionSettings-6P7BPJS7.js.map} +0 -0
- /package/dist/{tools-Q5R2XLVA.js.map → tools-D5CZXPC4.js.map} +0 -0
- /package/dist/{userInput-VQX2KYRL.js.map → userInput-6SBCD7MN.js.map} +0 -0
|
@@ -3,13 +3,13 @@ const require = __pybCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getGlobalConfig,
|
|
5
5
|
saveGlobalConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I4O5HH7E.js";
|
|
7
7
|
import {
|
|
8
8
|
debug
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XPZWZF4K.js";
|
|
10
10
|
import {
|
|
11
11
|
logError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QCW47OQM.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/model/index.ts
|
|
15
15
|
import { memoize } from "lodash-es";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
getSessionProjectDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-H5TODPNA.js";
|
|
6
6
|
import {
|
|
7
7
|
isUuid
|
|
8
8
|
} from "./chunk-5P7HBXTD.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
PRODUCT_NAME,
|
|
5
5
|
execFileNoThrow,
|
|
6
6
|
logError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QCW47OQM.js";
|
|
8
8
|
import {
|
|
9
9
|
MACRO
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-L4WYF5QM.js";
|
|
11
11
|
|
|
12
12
|
// src/utils/session/autoUpdater.ts
|
|
13
13
|
async function getSemver() {
|
|
@@ -82,7 +82,7 @@ async function checkAndNotifyUpdate() {
|
|
|
82
82
|
const [
|
|
83
83
|
{ isAutoUpdaterDisabled, getGlobalConfig, saveGlobalConfig },
|
|
84
84
|
{ env }
|
|
85
|
-
] = await Promise.all([import("./config-
|
|
85
|
+
] = await Promise.all([import("./config-7ELX7NZF.js"), import("./env-CEHP75BI.js")]);
|
|
86
86
|
if (await isAutoUpdaterDisabled()) return;
|
|
87
87
|
if (await env.getIsDocker()) return;
|
|
88
88
|
if (!await env.hasInternetAccess()) return;
|
|
@@ -2,13 +2,13 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
MarketplaceManifestSchema
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OC523AVG.js";
|
|
6
6
|
import {
|
|
7
7
|
parseFrontmatter
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6RHUZJME.js";
|
|
9
9
|
import {
|
|
10
10
|
getCwd
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QCW47OQM.js";
|
|
12
12
|
|
|
13
13
|
// src/services/plugins/pluginValidation.ts
|
|
14
14
|
import { existsSync, lstatSync, readFileSync } from "node:fs";
|
|
@@ -448,7 +448,7 @@ function getLastAssistantMessageId(messages) {
|
|
|
448
448
|
|
|
449
449
|
// src/utils/messages/index.ts
|
|
450
450
|
async function processUserInput(input, mode, setToolJSX, context, pastedImages) {
|
|
451
|
-
const impl = await import("./userInput-
|
|
451
|
+
const impl = await import("./userInput-6SBCD7MN.js");
|
|
452
452
|
return impl.processUserInput(input, mode, setToolJSX, context, pastedImages);
|
|
453
453
|
}
|
|
454
454
|
|
|
@@ -2,7 +2,7 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
SESSION_ID
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QCW47OQM.js";
|
|
6
6
|
|
|
7
7
|
// src/utils/log/debugLogger.ts
|
|
8
8
|
import { existsSync, mkdirSync, appendFileSync } from "fs";
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
getGlobalConfig,
|
|
6
6
|
getOrCreateUserID,
|
|
7
7
|
saveCurrentProjectConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-I4O5HH7E.js";
|
|
9
9
|
import {
|
|
10
10
|
SESSION_ID,
|
|
11
11
|
env,
|
|
12
12
|
execFileNoThrow,
|
|
13
13
|
getCwd,
|
|
14
14
|
logError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QCW47OQM.js";
|
|
16
16
|
import {
|
|
17
17
|
MACRO
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-L4WYF5QM.js";
|
|
19
19
|
import {
|
|
20
20
|
__require
|
|
21
21
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "./chunk-BJSWTHRM.js";
|
|
9
9
|
import {
|
|
10
10
|
loadSettingsWithLegacyFallback
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KTZEKTQR.js";
|
|
12
12
|
import {
|
|
13
13
|
getCwd,
|
|
14
14
|
logError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QCW47OQM.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/session/pybHooks.ts
|
|
18
18
|
import { spawn } from "child_process";
|
|
@@ -496,7 +496,7 @@ async function runPromptHook(args) {
|
|
|
496
496
|
fallbackTimeoutMs: args.fallbackTimeoutMs
|
|
497
497
|
});
|
|
498
498
|
try {
|
|
499
|
-
const { queryQuick } = await import("./llmLazy-
|
|
499
|
+
const { queryQuick } = await import("./llmLazy-3RAPUNCP.js");
|
|
500
500
|
const systemPrompt = [
|
|
501
501
|
"You are executing a Pyb prompt hook.",
|
|
502
502
|
"Return a single JSON object only (no markdown, no prose).",
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "./chunk-BJSWTHRM.js";
|
|
9
9
|
import {
|
|
10
10
|
debug
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XPZWZF4K.js";
|
|
12
12
|
import {
|
|
13
13
|
getCwd,
|
|
14
14
|
logError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QCW47OQM.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/agent/loader.ts
|
|
18
18
|
import {
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk-5AGDLQAW.js";
|
|
7
7
|
import {
|
|
8
8
|
assertMinVersion
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WIAYHZ54.js";
|
|
10
10
|
import {
|
|
11
11
|
ensurePackagedRuntimeEnv,
|
|
12
12
|
ensureYogaWasmPath
|
|
13
13
|
} from "./chunk-MWPFU2KU.js";
|
|
14
14
|
import {
|
|
15
15
|
getAllTools
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TAPAKYYX.js";
|
|
17
17
|
import {
|
|
18
18
|
getToolDescription
|
|
19
19
|
} from "./chunk-XI4LTVYT.js";
|
|
@@ -32,13 +32,13 @@ import {
|
|
|
32
32
|
review_default,
|
|
33
33
|
useExitOnCtrlCD,
|
|
34
34
|
useTerminalSize
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-HBAIG6IJ.js";
|
|
36
|
+
import "./chunk-UKLYLQFD.js";
|
|
37
|
+
import "./chunk-KBDG5XA4.js";
|
|
38
|
+
import "./chunk-H5TODPNA.js";
|
|
39
39
|
import "./chunk-5P7HBXTD.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-KGVNIYBR.js";
|
|
41
|
+
import "./chunk-434ZATUX.js";
|
|
42
42
|
import {
|
|
43
43
|
addMcpServer,
|
|
44
44
|
ensureConfigScope,
|
|
@@ -53,45 +53,45 @@ import {
|
|
|
53
53
|
parseEnvVars,
|
|
54
54
|
parseMcpHeaders,
|
|
55
55
|
removeMcpServer
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-O3BENNQK.js";
|
|
57
|
+
import "./chunk-WLOUYBCM.js";
|
|
58
|
+
import "./chunk-OC523AVG.js";
|
|
59
|
+
import "./chunk-HAZECG4F.js";
|
|
60
60
|
import "./chunk-ERMQRV55.js";
|
|
61
61
|
import {
|
|
62
62
|
clearAgentCache,
|
|
63
63
|
setFlagAgentsFromCliJson
|
|
64
|
-
} from "./chunk-
|
|
65
|
-
import "./chunk-
|
|
64
|
+
} from "./chunk-ZD2QDN7S.js";
|
|
65
|
+
import "./chunk-X4QXMIVA.js";
|
|
66
66
|
import "./chunk-3DFBSQIT.js";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-YLVRHKUS.js";
|
|
68
68
|
import "./chunk-B6IMQJZM.js";
|
|
69
69
|
import {
|
|
70
70
|
clearOutputStyleCache
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-KNXONIE6.js";
|
|
72
72
|
import {
|
|
73
73
|
setEnabledSettingSourcesFromCli
|
|
74
74
|
} from "./chunk-A3BVXXA3.js";
|
|
75
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-C6TR752A.js";
|
|
76
76
|
import "./chunk-QONPUH55.js";
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-HYHVMKPS.js";
|
|
78
|
+
import "./chunk-6RHUZJME.js";
|
|
79
79
|
import "./chunk-BJSWTHRM.js";
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
80
|
+
import "./chunk-JEXCNKX3.js";
|
|
81
|
+
import "./chunk-KTZEKTQR.js";
|
|
82
82
|
import "./chunk-UNNVICVU.js";
|
|
83
83
|
import {
|
|
84
84
|
getModelManager,
|
|
85
85
|
isDefaultSlowAndCapableModel
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-TJZEAWD3.js";
|
|
87
87
|
import {
|
|
88
88
|
getContext,
|
|
89
89
|
removeContext,
|
|
90
90
|
setContext
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-XZGFPBOR.js";
|
|
92
92
|
import {
|
|
93
93
|
getTheme
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-VNW7MT3I.js";
|
|
95
95
|
import {
|
|
96
96
|
checkHasTrustDialogAccepted,
|
|
97
97
|
deleteConfigForCLI,
|
|
@@ -105,14 +105,14 @@ import {
|
|
|
105
105
|
saveGlobalConfig,
|
|
106
106
|
setConfigForCLI,
|
|
107
107
|
validateAndRepairAllGPT5Profiles
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-I4O5HH7E.js";
|
|
109
109
|
import {
|
|
110
110
|
ConfigParseError
|
|
111
111
|
} from "./chunk-RQVLBMP7.js";
|
|
112
112
|
import {
|
|
113
113
|
debug,
|
|
114
114
|
initDebugLogger
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-XPZWZF4K.js";
|
|
116
116
|
import {
|
|
117
117
|
BunShell,
|
|
118
118
|
CACHE_PATHS,
|
|
@@ -128,10 +128,10 @@ import {
|
|
|
128
128
|
parseLogFilename,
|
|
129
129
|
setCwd,
|
|
130
130
|
setOriginalCwd
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-QCW47OQM.js";
|
|
132
132
|
import {
|
|
133
133
|
MACRO
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-L4WYF5QM.js";
|
|
135
135
|
import "./chunk-OUXHGDLH.js";
|
|
136
136
|
import "./chunk-I3J4JYES.js";
|
|
137
137
|
|
|
@@ -292,7 +292,7 @@ function createPrintModeControlRequestHandler(args) {
|
|
|
292
292
|
|
|
293
293
|
// src/entrypoints/cli/stdio/streamJsonSession.ts
|
|
294
294
|
async function runPrintModeStreamJsonSession(args) {
|
|
295
|
-
const { runPybAgentStreamJsonSession } = await import("./pybAgentStreamJsonSession-
|
|
295
|
+
const { runPybAgentStreamJsonSession } = await import("./pybAgentStreamJsonSession-GW7VVQN7.js");
|
|
296
296
|
await runPybAgentStreamJsonSession(args);
|
|
297
297
|
}
|
|
298
298
|
|
|
@@ -446,18 +446,18 @@ async function runPrintMode({
|
|
|
446
446
|
`);
|
|
447
447
|
process.exit(0);
|
|
448
448
|
}
|
|
449
|
-
const { createUserMessage } = await import("./messages-
|
|
450
|
-
const { getSystemPrompt } = await import("./prompts-
|
|
451
|
-
const { getContext: getContext2 } = await import("./context-
|
|
449
|
+
const { createUserMessage } = await import("./messages-HHG47ANQ.js");
|
|
450
|
+
const { getSystemPrompt } = await import("./prompts-7JXEYCNA.js");
|
|
451
|
+
const { getContext: getContext2 } = await import("./context-F6ZHQVBM.js");
|
|
452
452
|
const { getTotalCost } = await import("./costTracker-DJVFVAVZ.js");
|
|
453
|
-
const { query } = await import("./query-
|
|
453
|
+
const { query } = await import("./query-Q6JJ3NSQ.js");
|
|
454
454
|
const { getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
455
455
|
const { pybMessageToSdkMessage, makeSdkInitMessage, makeSdkResultMessage } = await import("./pybAgentStreamJson-EQPO52B6.js");
|
|
456
456
|
const { PybAgentStructuredStdio: PybAgentStructuredStdio2 } = await import("./pybAgentStructuredStdio-ROCSOGNT.js");
|
|
457
457
|
const {
|
|
458
458
|
loadToolPermissionContextFromDisk,
|
|
459
459
|
persistToolPermissionUpdateToDisk
|
|
460
|
-
} = await import("./toolPermissionSettings-
|
|
460
|
+
} = await import("./toolPermissionSettings-6P7BPJS7.js");
|
|
461
461
|
const { applyToolPermissionContextUpdates } = await import("./toolPermissionContext-BSFV23IL.js");
|
|
462
462
|
const sessionIdForSdk = getPybAgentSessionId();
|
|
463
463
|
const startedAt = Date.now();
|
|
@@ -837,9 +837,9 @@ async function setup(cwd2, safeMode) {
|
|
|
837
837
|
grantReadPermissionForOriginalDir();
|
|
838
838
|
let agentLoader;
|
|
839
839
|
try {
|
|
840
|
-
agentLoader = await import("./loader-
|
|
840
|
+
agentLoader = await import("./loader-LCU6AAY7.js");
|
|
841
841
|
} catch {
|
|
842
|
-
agentLoader = await import("./loader-
|
|
842
|
+
agentLoader = await import("./loader-LCU6AAY7.js");
|
|
843
843
|
}
|
|
844
844
|
const { startAgentWatcher } = agentLoader;
|
|
845
845
|
await startAgentWatcher(() => {
|
|
@@ -2017,12 +2017,12 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2017
2017
|
assertMinVersion();
|
|
2018
2018
|
{
|
|
2019
2019
|
const requested = Array.isArray(pluginDir) && pluginDir.length > 0 ? pluginDir : [];
|
|
2020
|
-
const { listEnabledInstalledPluginPackRoots } = await import("./skillMarketplace-
|
|
2020
|
+
const { listEnabledInstalledPluginPackRoots } = await import("./skillMarketplace-GRGEW3IS.js");
|
|
2021
2021
|
const installed = listEnabledInstalledPluginPackRoots();
|
|
2022
2022
|
const all = [...installed, ...requested].filter(Boolean);
|
|
2023
2023
|
const deduped = Array.from(new Set(all));
|
|
2024
2024
|
if (deduped.length > 0) {
|
|
2025
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
2025
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-H63ZSPRD.js");
|
|
2026
2026
|
const { errors } = await configureSessionPlugins({
|
|
2027
2027
|
pluginDirs: deduped
|
|
2028
2028
|
});
|
|
@@ -2032,9 +2032,9 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
2034
|
const [{ ask }, { getTools }, { getCommands }] = await Promise.all([
|
|
2035
|
-
import("./ask-
|
|
2036
|
-
import("./tools-
|
|
2037
|
-
import("./commands-
|
|
2035
|
+
import("./ask-YUNSOAXW.js"),
|
|
2036
|
+
import("./tools-D5CZXPC4.js"),
|
|
2037
|
+
import("./commands-2PHDCX6T.js")
|
|
2038
2038
|
]);
|
|
2039
2039
|
const commands = await getCommands();
|
|
2040
2040
|
const mcpClientsPromise = Array.isArray(mcpConfig) && mcpConfig.length > 0 || strictMcpConfig === true ? getClientsForCliMcpConfig({
|
|
@@ -2053,8 +2053,8 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2053
2053
|
const {
|
|
2054
2054
|
loadPybAgentSessionMessages,
|
|
2055
2055
|
findMostRecentPybAgentSessionId
|
|
2056
|
-
} = await import("./pybAgentSessionLoad-
|
|
2057
|
-
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-
|
|
2056
|
+
} = await import("./pybAgentSessionLoad-HFJHLGAD.js");
|
|
2057
|
+
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-VO7LJRX2.js");
|
|
2058
2058
|
const { isUuid } = await import("./uuid-CVHEFGW4.js");
|
|
2059
2059
|
const { setPybAgentSessionId, getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
2060
2060
|
const { randomUUID } = await import("crypto");
|
|
@@ -2179,7 +2179,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2179
2179
|
{ getLatestVersion, getUpdateCommandSuggestions },
|
|
2180
2180
|
semverMod
|
|
2181
2181
|
] = await Promise.all([
|
|
2182
|
-
import("./autoUpdater-
|
|
2182
|
+
import("./autoUpdater-D4JZK6YO.js"),
|
|
2183
2183
|
import("semver")
|
|
2184
2184
|
]);
|
|
2185
2185
|
const semver = semverMod?.default ?? semverMod;
|
|
@@ -2240,7 +2240,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2240
2240
|
const isDefaultModel = await isDefaultSlowAndCapableModel();
|
|
2241
2241
|
{
|
|
2242
2242
|
const { render: render3 } = await import("ink");
|
|
2243
|
-
const { REPL } = await import("./REPL-
|
|
2243
|
+
const { REPL } = await import("./REPL-TCFWA7VA.js");
|
|
2244
2244
|
render3(
|
|
2245
2245
|
/* @__PURE__ */ React10.createElement(
|
|
2246
2246
|
REPL,
|
|
@@ -2328,7 +2328,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2328
2328
|
{ replace: !!replace }
|
|
2329
2329
|
);
|
|
2330
2330
|
saveGlobalConfig(nextConfig);
|
|
2331
|
-
await import("./model-
|
|
2331
|
+
await import("./model-NW6AMAH5.js").then(({ reloadModelManager }) => {
|
|
2332
2332
|
reloadModelManager();
|
|
2333
2333
|
});
|
|
2334
2334
|
if (warnings.length > 0) {
|
|
@@ -2346,7 +2346,7 @@ async function parseArgs(stdinContent, renderContext) {
|
|
|
2346
2346
|
const workingDir = typeof options?.cwd === "string" ? options.cwd : cwd();
|
|
2347
2347
|
const asJson = options?.json === true;
|
|
2348
2348
|
await setup(workingDir, false);
|
|
2349
|
-
const { reloadModelManager, getModelManager: getModelManager2 } = await import("./model-
|
|
2349
|
+
const { reloadModelManager, getModelManager: getModelManager2 } = await import("./model-NW6AMAH5.js");
|
|
2350
2350
|
reloadModelManager();
|
|
2351
2351
|
const manager = getModelManager2();
|
|
2352
2352
|
const config2 = getGlobalConfig();
|
|
@@ -2420,7 +2420,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2420
2420
|
try {
|
|
2421
2421
|
const workingDir = typeof options?.cwd === "string" ? options.cwd : cwd();
|
|
2422
2422
|
await setup(workingDir, false);
|
|
2423
|
-
const { validateAgentTemplates } = await import("./agentsValidate-
|
|
2423
|
+
const { validateAgentTemplates } = await import("./agentsValidate-KTGKQGH3.js");
|
|
2424
2424
|
const report = await validateAgentTemplates({
|
|
2425
2425
|
cwd: workingDir,
|
|
2426
2426
|
paths: Array.isArray(paths) ? paths : [],
|
|
@@ -2464,7 +2464,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2464
2464
|
const registerMarketplaceCommands = (marketplaceCmd2) => {
|
|
2465
2465
|
marketplaceCmd2.command("add <source>").description("Add a marketplace from a URL, path, or GitHub repo").action(async (source) => {
|
|
2466
2466
|
try {
|
|
2467
|
-
const { addMarketplace } = await import("./skillMarketplace-
|
|
2467
|
+
const { addMarketplace } = await import("./skillMarketplace-GRGEW3IS.js");
|
|
2468
2468
|
console.log("Adding marketplace...");
|
|
2469
2469
|
const { name } = await addMarketplace(source);
|
|
2470
2470
|
console.log(`Successfully added marketplace: ${name}`);
|
|
@@ -2476,7 +2476,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2476
2476
|
});
|
|
2477
2477
|
marketplaceCmd2.command("list").description("List all configured marketplaces").option("--json", "Output as JSON").action(async (options) => {
|
|
2478
2478
|
try {
|
|
2479
|
-
const { listMarketplaces } = await import("./skillMarketplace-
|
|
2479
|
+
const { listMarketplaces } = await import("./skillMarketplace-GRGEW3IS.js");
|
|
2480
2480
|
const marketplaces = listMarketplaces();
|
|
2481
2481
|
if (options.json) {
|
|
2482
2482
|
console.log(JSON.stringify(marketplaces, null, 2));
|
|
@@ -2515,7 +2515,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2515
2515
|
});
|
|
2516
2516
|
marketplaceCmd2.command("remove <name>").alias("rm").description("Remove a configured marketplace").action(async (name) => {
|
|
2517
2517
|
try {
|
|
2518
|
-
const { removeMarketplace } = await import("./skillMarketplace-
|
|
2518
|
+
const { removeMarketplace } = await import("./skillMarketplace-GRGEW3IS.js");
|
|
2519
2519
|
removeMarketplace(name);
|
|
2520
2520
|
console.log(`Successfully removed marketplace: ${name}`);
|
|
2521
2521
|
process.exit(0);
|
|
@@ -2532,7 +2532,7 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2532
2532
|
listMarketplaces,
|
|
2533
2533
|
refreshAllMarketplacesAsync,
|
|
2534
2534
|
refreshMarketplaceAsync
|
|
2535
|
-
} = await import("./skillMarketplace-
|
|
2535
|
+
} = await import("./skillMarketplace-GRGEW3IS.js");
|
|
2536
2536
|
const trimmed = typeof name === "string" ? name.trim() : "";
|
|
2537
2537
|
if (trimmed) {
|
|
2538
2538
|
console.log(`Updating marketplace: ${trimmed}...`);
|
|
@@ -2583,9 +2583,9 @@ Model profiles (${active.length}/${profiles.length} active):
|
|
|
2583
2583
|
);
|
|
2584
2584
|
process.exit(1);
|
|
2585
2585
|
}
|
|
2586
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2586
|
+
const { setCwd: setCwd2 } = await import("./state-EQXOUJZQ.js");
|
|
2587
2587
|
await setCwd2(options.cwd ?? cwd());
|
|
2588
|
-
const { installSkillPlugin } = await import("./skillMarketplace-
|
|
2588
|
+
const { installSkillPlugin } = await import("./skillMarketplace-GRGEW3IS.js");
|
|
2589
2589
|
const result = installSkillPlugin(plugin, {
|
|
2590
2590
|
scope,
|
|
2591
2591
|
force: options.force === true
|
|
@@ -2612,9 +2612,9 @@ ${skillList}`);
|
|
|
2612
2612
|
);
|
|
2613
2613
|
process.exit(1);
|
|
2614
2614
|
}
|
|
2615
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2615
|
+
const { setCwd: setCwd2 } = await import("./state-EQXOUJZQ.js");
|
|
2616
2616
|
await setCwd2(options.cwd ?? cwd());
|
|
2617
|
-
const { uninstallSkillPlugin } = await import("./skillMarketplace-
|
|
2617
|
+
const { uninstallSkillPlugin } = await import("./skillMarketplace-GRGEW3IS.js");
|
|
2618
2618
|
const result = uninstallSkillPlugin(plugin, { scope });
|
|
2619
2619
|
const skillList = result.removedSkills.length > 0 ? `Skills: ${result.removedSkills.join(", ")}` : "Skills: (none)";
|
|
2620
2620
|
console.log(`Uninstalled ${result.pluginSpec}
|
|
@@ -2638,9 +2638,9 @@ ${skillList}`);
|
|
|
2638
2638
|
);
|
|
2639
2639
|
process.exit(1);
|
|
2640
2640
|
}
|
|
2641
|
-
const { setCwd: setCwd2, getCwd: getCwd2 } = await import("./state-
|
|
2641
|
+
const { setCwd: setCwd2, getCwd: getCwd2 } = await import("./state-EQXOUJZQ.js");
|
|
2642
2642
|
await setCwd2(options.cwd ?? cwd());
|
|
2643
|
-
const { listInstalledSkillPlugins } = await import("./skillMarketplace-
|
|
2643
|
+
const { listInstalledSkillPlugins } = await import("./skillMarketplace-GRGEW3IS.js");
|
|
2644
2644
|
const all = listInstalledSkillPlugins();
|
|
2645
2645
|
const filtered = Object.fromEntries(
|
|
2646
2646
|
Object.entries(all).filter(([, record]) => {
|
|
@@ -2684,9 +2684,9 @@ ${skillList}`);
|
|
|
2684
2684
|
);
|
|
2685
2685
|
process.exit(1);
|
|
2686
2686
|
}
|
|
2687
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2687
|
+
const { setCwd: setCwd2 } = await import("./state-EQXOUJZQ.js");
|
|
2688
2688
|
await setCwd2(options.cwd ?? cwd());
|
|
2689
|
-
const { enableSkillPlugin } = await import("./skillMarketplace-
|
|
2689
|
+
const { enableSkillPlugin } = await import("./skillMarketplace-GRGEW3IS.js");
|
|
2690
2690
|
const result = enableSkillPlugin(plugin, { scope });
|
|
2691
2691
|
console.log(`Enabled ${result.pluginSpec}`);
|
|
2692
2692
|
process.exit(0);
|
|
@@ -2708,9 +2708,9 @@ ${skillList}`);
|
|
|
2708
2708
|
);
|
|
2709
2709
|
process.exit(1);
|
|
2710
2710
|
}
|
|
2711
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2711
|
+
const { setCwd: setCwd2 } = await import("./state-EQXOUJZQ.js");
|
|
2712
2712
|
await setCwd2(options.cwd ?? cwd());
|
|
2713
|
-
const { disableSkillPlugin } = await import("./skillMarketplace-
|
|
2713
|
+
const { disableSkillPlugin } = await import("./skillMarketplace-GRGEW3IS.js");
|
|
2714
2714
|
const result = disableSkillPlugin(plugin, { scope });
|
|
2715
2715
|
console.log(`Disabled ${result.pluginSpec}`);
|
|
2716
2716
|
process.exit(0);
|
|
@@ -2721,9 +2721,9 @@ ${skillList}`);
|
|
|
2721
2721
|
});
|
|
2722
2722
|
pluginCmd.command("validate <path>").description("Validate a plugin or marketplace manifest").option("--cwd <cwd>", "The current working directory", String, cwd()).action(async (path, options) => {
|
|
2723
2723
|
try {
|
|
2724
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2724
|
+
const { setCwd: setCwd2 } = await import("./state-EQXOUJZQ.js");
|
|
2725
2725
|
await setCwd2(options.cwd ?? cwd());
|
|
2726
|
-
const { formatValidationResult, validatePluginOrMarketplacePath } = await import("./pluginValidation-
|
|
2726
|
+
const { formatValidationResult, validatePluginOrMarketplacePath } = await import("./pluginValidation-EWBWU7P6.js");
|
|
2727
2727
|
const result = validatePluginOrMarketplacePath(path);
|
|
2728
2728
|
console.log(
|
|
2729
2729
|
`Validating ${result.fileType} manifest: ${result.filePath}
|
|
@@ -2745,9 +2745,9 @@ ${skillList}`);
|
|
|
2745
2745
|
registerMarketplaceCommands(marketplaceCmd);
|
|
2746
2746
|
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) => {
|
|
2747
2747
|
try {
|
|
2748
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2748
|
+
const { setCwd: setCwd2 } = await import("./state-EQXOUJZQ.js");
|
|
2749
2749
|
await setCwd2(options.cwd ?? cwd());
|
|
2750
|
-
const { installSkillPlugin } = await import("./skillMarketplace-
|
|
2750
|
+
const { installSkillPlugin } = await import("./skillMarketplace-GRGEW3IS.js");
|
|
2751
2751
|
const result = installSkillPlugin(plugin, {
|
|
2752
2752
|
project: options.project === true,
|
|
2753
2753
|
force: options.force === true
|
|
@@ -2763,9 +2763,9 @@ ${skillList}`);
|
|
|
2763
2763
|
});
|
|
2764
2764
|
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) => {
|
|
2765
2765
|
try {
|
|
2766
|
-
const { setCwd: setCwd2 } = await import("./state-
|
|
2766
|
+
const { setCwd: setCwd2 } = await import("./state-EQXOUJZQ.js");
|
|
2767
2767
|
await setCwd2(options.cwd ?? cwd());
|
|
2768
|
-
const { uninstallSkillPlugin } = await import("./skillMarketplace-
|
|
2768
|
+
const { uninstallSkillPlugin } = await import("./skillMarketplace-GRGEW3IS.js");
|
|
2769
2769
|
const result = uninstallSkillPlugin(plugin, {
|
|
2770
2770
|
project: options.project === true
|
|
2771
2771
|
});
|
|
@@ -2780,7 +2780,7 @@ ${skillList}`);
|
|
|
2780
2780
|
});
|
|
2781
2781
|
skillsCmd.command("list-installed").description("List installed skill plugins").action(async () => {
|
|
2782
2782
|
try {
|
|
2783
|
-
const { listInstalledSkillPlugins } = await import("./skillMarketplace-
|
|
2783
|
+
const { listInstalledSkillPlugins } = await import("./skillMarketplace-GRGEW3IS.js");
|
|
2784
2784
|
console.log(JSON.stringify(listInstalledSkillPlugins(), null, 2));
|
|
2785
2785
|
process.exit(0);
|
|
2786
2786
|
} catch (error) {
|
|
@@ -3426,7 +3426,7 @@ ${skillList}`);
|
|
|
3426
3426
|
const ink = await import("ink");
|
|
3427
3427
|
const reactModule = await import("react");
|
|
3428
3428
|
const inkjsui = await import("@inkjs/ui");
|
|
3429
|
-
const utilsTheme = await import("./theme-
|
|
3429
|
+
const utilsTheme = await import("./theme-CZJHM5IU.js");
|
|
3430
3430
|
const { render: render3 } = ink;
|
|
3431
3431
|
const React11 = reactModule;
|
|
3432
3432
|
const { MultiSelect: MultiSelect2 } = inkjsui;
|
|
@@ -3576,7 +3576,7 @@ ${skillList}`);
|
|
|
3576
3576
|
program.command("update").description("Show manual upgrade commands (no auto-install)").action(async () => {
|
|
3577
3577
|
console.log(`Current version: ${MACRO.VERSION}`);
|
|
3578
3578
|
console.log("Checking for updates...");
|
|
3579
|
-
const { getLatestVersion, getUpdateCommandSuggestions } = await import("./autoUpdater-
|
|
3579
|
+
const { getLatestVersion, getUpdateCommandSuggestions } = await import("./autoUpdater-D4JZK6YO.js");
|
|
3580
3580
|
const latestVersion = await getLatestVersion();
|
|
3581
3581
|
if (!latestVersion) {
|
|
3582
3582
|
console.error("Failed to check for updates");
|
|
@@ -3631,8 +3631,8 @@ ${skillList}`);
|
|
|
3631
3631
|
await setup(cwd2, safe);
|
|
3632
3632
|
assertMinVersion();
|
|
3633
3633
|
const [{ getTools }, { getCommands }] = await Promise.all([
|
|
3634
|
-
import("./tools-
|
|
3635
|
-
import("./commands-
|
|
3634
|
+
import("./tools-D5CZXPC4.js"),
|
|
3635
|
+
import("./commands-2PHDCX6T.js")
|
|
3636
3636
|
]);
|
|
3637
3637
|
const [allTools, commands, mcpClients] = await Promise.all([
|
|
3638
3638
|
getTools(
|
|
@@ -3643,8 +3643,8 @@ ${skillList}`);
|
|
|
3643
3643
|
]);
|
|
3644
3644
|
const tools = disableSlashCommands === true ? allTools.filter((t) => t.name !== "SlashCommand") : allTools;
|
|
3645
3645
|
if (identifier !== void 0) {
|
|
3646
|
-
const { loadPybAgentSessionMessages } = await import("./pybAgentSessionLoad-
|
|
3647
|
-
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-
|
|
3646
|
+
const { loadPybAgentSessionMessages } = await import("./pybAgentSessionLoad-HFJHLGAD.js");
|
|
3647
|
+
const { listPybAgentSessions, resolvePybResumeSessionIdentifier } = await import("./pybAgentSessionResume-VO7LJRX2.js");
|
|
3648
3648
|
const { setPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
3649
3649
|
const rawIdentifier = String(identifier).trim();
|
|
3650
3650
|
const isLegacyNumber = /^-?\\d+$/.test(rawIdentifier);
|
|
@@ -3714,7 +3714,7 @@ ${skillList}`);
|
|
|
3714
3714
|
const isDefaultModel = await isDefaultSlowAndCapableModel();
|
|
3715
3715
|
{
|
|
3716
3716
|
const { render: render3 } = await import("ink");
|
|
3717
|
-
const { REPL } = await import("./REPL-
|
|
3717
|
+
const { REPL } = await import("./REPL-TCFWA7VA.js");
|
|
3718
3718
|
render3(
|
|
3719
3719
|
/* @__PURE__ */ React10.createElement(
|
|
3720
3720
|
REPL,
|
|
@@ -3741,7 +3741,7 @@ ${skillList}`);
|
|
|
3741
3741
|
process.exit(1);
|
|
3742
3742
|
}
|
|
3743
3743
|
} else {
|
|
3744
|
-
const { listPybAgentSessions } = await import("./pybAgentSessionResume-
|
|
3744
|
+
const { listPybAgentSessions } = await import("./pybAgentSessionResume-VO7LJRX2.js");
|
|
3745
3745
|
const sessions = listPybAgentSessions({ cwd: cwd2 });
|
|
3746
3746
|
if (sessions.length === 0) {
|
|
3747
3747
|
console.error("No conversation found to resume");
|
|
@@ -3846,7 +3846,7 @@ async function gracefulExit(code = 0) {
|
|
|
3846
3846
|
}
|
|
3847
3847
|
isGracefulExitInProgress = true;
|
|
3848
3848
|
try {
|
|
3849
|
-
const { runSessionEndHooks } = await import("./pybHooks-
|
|
3849
|
+
const { runSessionEndHooks } = await import("./pybHooks-AE3QYGDK.js");
|
|
3850
3850
|
const { getPybAgentSessionId } = await import("./pybAgentSessionId-EPCAMQ25.js");
|
|
3851
3851
|
const { tmpdir } = await import("os");
|
|
3852
3852
|
const { join: join2 } = await import("path");
|