pybao-cli 1.3.79 → 1.3.80
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-FCFUNTRV.js +42 -0
- package/dist/{acp-32X2ORWD.js → acp-ZGZTJXRX.js} +27 -28
- package/dist/{acp-32X2ORWD.js.map → acp-ZGZTJXRX.js.map} +1 -1
- package/dist/{agentsValidate-M2NLS6KJ.js → agentsValidate-UU3CTQQG.js} +7 -7
- package/dist/{ask-APOBPV6G.js → ask-ZY5BJZSV.js} +25 -25
- package/dist/{autoUpdater-MEG3J4ZP.js → autoUpdater-QKSPMROL.js} +3 -3
- package/dist/{chunk-MHYEZGJE.js → chunk-42XRBA3T.js} +2 -2
- package/dist/{chunk-4ESLYQDR.js → chunk-4NCEUAAH.js} +3 -3
- package/dist/{chunk-RVNK6V3Z.js → chunk-6FIBU73C.js} +1 -1
- package/dist/{chunk-PDSCF233.js → chunk-6Y7R2HQJ.js} +1 -1
- package/dist/{chunk-MEKNF2BX.js → chunk-A5OH2UIT.js} +2 -2
- package/dist/{chunk-Y24AKIQ4.js → chunk-AAIDMQFM.js} +3 -3
- package/dist/{chunk-UIB4DXAE.js → chunk-C64GQQIX.js} +1 -1
- package/dist/{chunk-PK4LECKI.js → chunk-C6KEBADH.js} +2 -2
- package/dist/{chunk-FFNEPND5.js → chunk-FF4MK6K3.js} +3 -3
- package/dist/{chunk-Q5GLVET5.js → chunk-GBVT3BHF.js} +38 -41
- package/dist/{chunk-Q5GLVET5.js.map → chunk-GBVT3BHF.js.map} +2 -2
- package/dist/{chunk-B3TQNKEC.js → chunk-IQIZZT3A.js} +1 -1
- package/dist/{chunk-KUOHKADR.js → chunk-IROS56AN.js} +4 -4
- package/dist/{chunk-22FCTCIV.js → chunk-ISZYPQJ4.js} +1 -1
- package/dist/{chunk-JIWMGSZC.js → chunk-J6LHG4P2.js} +1 -1
- package/dist/{chunk-YDVLI6LP.js → chunk-JY2ZIUT6.js} +1 -1
- package/dist/{chunk-YDVLI6LP.js.map → chunk-JY2ZIUT6.js.map} +1 -1
- package/dist/{chunk-TZHR6HNQ.js → chunk-K5SSMVKH.js} +2 -2
- package/dist/{chunk-ZBZ3REJN.js → chunk-LPRHLVIT.js} +3 -3
- package/dist/{chunk-MBT675J6.js → chunk-N5WZ6CIB.js} +1 -1
- package/dist/{chunk-RL522VQA.js → chunk-OW2MWOEW.js} +51 -415
- package/dist/chunk-OW2MWOEW.js.map +7 -0
- package/dist/{chunk-T3YJGBT6.js → chunk-ROSGQFTS.js} +1 -1
- package/dist/{chunk-2P7BUT6Q.js → chunk-RVWBNMCL.js} +3 -3
- package/dist/{chunk-SS6ICJFN.js → chunk-SCFTG75V.js} +3 -3
- package/dist/{chunk-3PUCUH4D.js → chunk-SH2UZRTG.js} +2 -2
- package/dist/{chunk-3TLFBSQO.js → chunk-SRWXBDPV.js} +3 -3
- package/dist/{chunk-Y3NWIKWN.js → chunk-TP3G2PLU.js} +2 -2
- package/dist/{chunk-FE2DB2XA.js → chunk-TWXMVB4T.js} +1 -1
- package/dist/{chunk-IEKZ4CWY.js → chunk-XRUOSW3Q.js} +55 -50
- package/dist/chunk-XRUOSW3Q.js.map +7 -0
- package/dist/{chunk-GPR72UXL.js → chunk-Z6FKI2XB.js} +4 -4
- package/dist/{cli-2KE3PWBY.js → cli-HYV3MO3Z.js} +78 -79
- package/dist/{cli-2KE3PWBY.js.map → cli-HYV3MO3Z.js.map} +1 -1
- package/dist/commands-UF72PYOD.js +46 -0
- package/dist/{config-5S7M57PH.js → config-NHL3XV6A.js} +4 -4
- package/dist/{context-X33OOXZW.js → context-KCM2CKCI.js} +5 -5
- package/dist/{customCommands-PDRM6IC2.js → customCommands-H4OTDEES.js} +4 -4
- package/dist/{env-UFICMT75.js → env-45HRLZXA.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{llm-TOJ4LFPH.js → llm-RHWOZZGJ.js} +26 -28
- package/dist/llm-RHWOZZGJ.js.map +7 -0
- package/dist/{llmLazy-DIIIURE4.js → llmLazy-C4WAHBE6.js} +1 -1
- package/dist/{loader-ZIYIIHU4.js → loader-ECT2XQ5R.js} +4 -4
- package/dist/{lspAnchor-QDIBSYKN.js → lspAnchor-IEMAQJKB.js} +4 -4
- package/dist/{manager-VKVZBKNY.js → manager-QVC7V5FF.js} +4 -4
- package/dist/{mcp-L4M5UE4A.js → mcp-HCRADJBF.js} +7 -7
- package/dist/{mentionProcessor-UMLTSEAK.js → mentionProcessor-6QPEGYTQ.js} +5 -5
- package/dist/{messages-MYZABIFA.js → messages-E6SPHRIN.js} +1 -1
- package/dist/{model-ZLM7F2D5.js → model-SMB3E5LC.js} +5 -5
- package/dist/{openai-XNZOUIOB.js → openai-FMO244D7.js} +5 -5
- package/dist/{outputStyles-RMGJWCUZ.js → outputStyles-YB2ODUS7.js} +4 -4
- package/dist/{pluginRuntime-OOG6EE3L.js → pluginRuntime-7IMWBORD.js} +6 -6
- package/dist/{pluginValidation-YN7HPE4Y.js → pluginValidation-QVVBJD66.js} +6 -6
- package/dist/prompts-4MPNSSTI.js +48 -0
- package/dist/{pybAgentSessionLoad-LLFNXD4G.js → pybAgentSessionLoad-3S6RFTJU.js} +4 -4
- package/dist/{pybAgentSessionResume-Z5LKVRC5.js → pybAgentSessionResume-EUKW3FMB.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-KUTJM63D.js → pybAgentStreamJsonSession-RTPFM6OV.js} +1 -1
- package/dist/{pybHooks-HJWMWWWF.js → pybHooks-3IQJYVB4.js} +4 -4
- package/dist/query-QZ2RBRLD.js +50 -0
- package/dist/{ripgrep-LU5NTUF2.js → ripgrep-I7SPG656.js} +3 -3
- package/dist/{skillMarketplace-ATR76CC3.js → skillMarketplace-Y46OXJ6X.js} +3 -3
- package/dist/{chunk-IZ3M5OX4.js → smart-edit-AWHJDSU6.js} +37 -9
- package/dist/{chunk-IZ3M5OX4.js.map → smart-edit-AWHJDSU6.js.map} +3 -3
- package/dist/{state-C7DZ3IXR.js → state-IWD2KGEM.js} +2 -2
- package/dist/{theme-XKQRSGQE.js → theme-RFDPFU5Y.js} +5 -5
- package/dist/{toolPermissionSettings-KFWCSV6G.js → toolPermissionSettings-J7PFZFUY.js} +6 -6
- package/dist/tools-V6LVGZ4F.js +49 -0
- package/dist/{userInput-I53JLE7C.js → userInput-ADSR2X52.js} +27 -27
- package/package.json +1 -1
- package/dist/REPL-RYMDCVU6.js +0 -42
- package/dist/chunk-IEKZ4CWY.js.map +0 -7
- package/dist/chunk-RL522VQA.js.map +0 -7
- package/dist/commands-WJSK5CQI.js +0 -46
- package/dist/llm-TOJ4LFPH.js.map +0 -7
- package/dist/prompts-TVJAY7YX.js +0 -48
- package/dist/query-IMKUC25L.js +0 -50
- package/dist/smart-edit-677MCQMW.js +0 -56
- package/dist/smart-edit-677MCQMW.js.map +0 -7
- package/dist/tools-223LNUWS.js +0 -50
- /package/dist/{REPL-RYMDCVU6.js.map → REPL-FCFUNTRV.js.map} +0 -0
- /package/dist/{agentsValidate-M2NLS6KJ.js.map → agentsValidate-UU3CTQQG.js.map} +0 -0
- /package/dist/{ask-APOBPV6G.js.map → ask-ZY5BJZSV.js.map} +0 -0
- /package/dist/{autoUpdater-MEG3J4ZP.js.map → autoUpdater-QKSPMROL.js.map} +0 -0
- /package/dist/{chunk-MHYEZGJE.js.map → chunk-42XRBA3T.js.map} +0 -0
- /package/dist/{chunk-4ESLYQDR.js.map → chunk-4NCEUAAH.js.map} +0 -0
- /package/dist/{chunk-RVNK6V3Z.js.map → chunk-6FIBU73C.js.map} +0 -0
- /package/dist/{chunk-PDSCF233.js.map → chunk-6Y7R2HQJ.js.map} +0 -0
- /package/dist/{chunk-MEKNF2BX.js.map → chunk-A5OH2UIT.js.map} +0 -0
- /package/dist/{chunk-Y24AKIQ4.js.map → chunk-AAIDMQFM.js.map} +0 -0
- /package/dist/{chunk-UIB4DXAE.js.map → chunk-C64GQQIX.js.map} +0 -0
- /package/dist/{chunk-PK4LECKI.js.map → chunk-C6KEBADH.js.map} +0 -0
- /package/dist/{chunk-FFNEPND5.js.map → chunk-FF4MK6K3.js.map} +0 -0
- /package/dist/{chunk-B3TQNKEC.js.map → chunk-IQIZZT3A.js.map} +0 -0
- /package/dist/{chunk-KUOHKADR.js.map → chunk-IROS56AN.js.map} +0 -0
- /package/dist/{chunk-22FCTCIV.js.map → chunk-ISZYPQJ4.js.map} +0 -0
- /package/dist/{chunk-JIWMGSZC.js.map → chunk-J6LHG4P2.js.map} +0 -0
- /package/dist/{chunk-TZHR6HNQ.js.map → chunk-K5SSMVKH.js.map} +0 -0
- /package/dist/{chunk-ZBZ3REJN.js.map → chunk-LPRHLVIT.js.map} +0 -0
- /package/dist/{chunk-MBT675J6.js.map → chunk-N5WZ6CIB.js.map} +0 -0
- /package/dist/{chunk-T3YJGBT6.js.map → chunk-ROSGQFTS.js.map} +0 -0
- /package/dist/{chunk-2P7BUT6Q.js.map → chunk-RVWBNMCL.js.map} +0 -0
- /package/dist/{chunk-SS6ICJFN.js.map → chunk-SCFTG75V.js.map} +0 -0
- /package/dist/{chunk-3PUCUH4D.js.map → chunk-SH2UZRTG.js.map} +0 -0
- /package/dist/{chunk-3TLFBSQO.js.map → chunk-SRWXBDPV.js.map} +0 -0
- /package/dist/{chunk-Y3NWIKWN.js.map → chunk-TP3G2PLU.js.map} +0 -0
- /package/dist/{chunk-FE2DB2XA.js.map → chunk-TWXMVB4T.js.map} +0 -0
- /package/dist/{chunk-GPR72UXL.js.map → chunk-Z6FKI2XB.js.map} +0 -0
- /package/dist/{commands-WJSK5CQI.js.map → commands-UF72PYOD.js.map} +0 -0
- /package/dist/{config-5S7M57PH.js.map → config-NHL3XV6A.js.map} +0 -0
- /package/dist/{context-X33OOXZW.js.map → context-KCM2CKCI.js.map} +0 -0
- /package/dist/{customCommands-PDRM6IC2.js.map → customCommands-H4OTDEES.js.map} +0 -0
- /package/dist/{env-UFICMT75.js.map → env-45HRLZXA.js.map} +0 -0
- /package/dist/{llmLazy-DIIIURE4.js.map → llmLazy-C4WAHBE6.js.map} +0 -0
- /package/dist/{loader-ZIYIIHU4.js.map → loader-ECT2XQ5R.js.map} +0 -0
- /package/dist/{lspAnchor-QDIBSYKN.js.map → lspAnchor-IEMAQJKB.js.map} +0 -0
- /package/dist/{manager-VKVZBKNY.js.map → manager-QVC7V5FF.js.map} +0 -0
- /package/dist/{mcp-L4M5UE4A.js.map → mcp-HCRADJBF.js.map} +0 -0
- /package/dist/{mentionProcessor-UMLTSEAK.js.map → mentionProcessor-6QPEGYTQ.js.map} +0 -0
- /package/dist/{messages-MYZABIFA.js.map → messages-E6SPHRIN.js.map} +0 -0
- /package/dist/{model-ZLM7F2D5.js.map → model-SMB3E5LC.js.map} +0 -0
- /package/dist/{openai-XNZOUIOB.js.map → openai-FMO244D7.js.map} +0 -0
- /package/dist/{outputStyles-RMGJWCUZ.js.map → outputStyles-YB2ODUS7.js.map} +0 -0
- /package/dist/{pluginRuntime-OOG6EE3L.js.map → pluginRuntime-7IMWBORD.js.map} +0 -0
- /package/dist/{pluginValidation-YN7HPE4Y.js.map → pluginValidation-QVVBJD66.js.map} +0 -0
- /package/dist/{prompts-TVJAY7YX.js.map → prompts-4MPNSSTI.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-LLFNXD4G.js.map → pybAgentSessionLoad-3S6RFTJU.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-Z5LKVRC5.js.map → pybAgentSessionResume-EUKW3FMB.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-KUTJM63D.js.map → pybAgentStreamJsonSession-RTPFM6OV.js.map} +0 -0
- /package/dist/{pybHooks-HJWMWWWF.js.map → pybHooks-3IQJYVB4.js.map} +0 -0
- /package/dist/{query-IMKUC25L.js.map → query-QZ2RBRLD.js.map} +0 -0
- /package/dist/{ripgrep-LU5NTUF2.js.map → ripgrep-I7SPG656.js.map} +0 -0
- /package/dist/{skillMarketplace-ATR76CC3.js.map → skillMarketplace-Y46OXJ6X.js.map} +0 -0
- /package/dist/{state-C7DZ3IXR.js.map → state-IWD2KGEM.js.map} +0 -0
- /package/dist/{theme-XKQRSGQE.js.map → theme-RFDPFU5Y.js.map} +0 -0
- /package/dist/{toolPermissionSettings-KFWCSV6G.js.map → toolPermissionSettings-J7PFZFUY.js.map} +0 -0
- /package/dist/{tools-223LNUWS.js.map → tools-V6LVGZ4F.js.map} +0 -0
- /package/dist/{userInput-I53JLE7C.js.map → userInput-ADSR2X52.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
MACRO
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JY2ZIUT6.js";
|
|
6
6
|
|
|
7
7
|
// src/utils/state/index.ts
|
|
8
8
|
import { cwd } from "process";
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
} from "./chunk-ERMQRV55.js";
|
|
7
7
|
import {
|
|
8
8
|
getGlobalConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4NCEUAAH.js";
|
|
10
10
|
import {
|
|
11
11
|
debug,
|
|
12
12
|
getCurrentRequest,
|
|
13
13
|
logAPIError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TWXMVB4T.js";
|
|
15
15
|
|
|
16
16
|
// src/services/ai/openai.ts
|
|
17
17
|
import { ProxyAgent, fetch } from "undici";
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "./chunk-BJSWTHRM.js";
|
|
9
9
|
import {
|
|
10
10
|
loadSettingsWithLegacyFallback
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-J6LHG4P2.js";
|
|
12
12
|
import {
|
|
13
13
|
getCwd,
|
|
14
14
|
logError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6FIBU73C.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-C4WAHBE6.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).",
|
|
@@ -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-C6KEBADH.js";
|
|
6
6
|
import {
|
|
7
7
|
isUuid
|
|
8
8
|
} from "./chunk-5P7HBXTD.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
PLAN_SLUG_VERBS,
|
|
10
10
|
getCwd,
|
|
11
11
|
getPybBaseDir
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6FIBU73C.js";
|
|
13
13
|
import {
|
|
14
14
|
MACRO
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JY2ZIUT6.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/protocol/pybAgentSessionLog.ts
|
|
18
18
|
import { execFileSync } from "child_process";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
PRODUCT_NAME,
|
|
5
5
|
execFileNoThrow,
|
|
6
6
|
logError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6FIBU73C.js";
|
|
8
8
|
import {
|
|
9
9
|
MACRO
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JY2ZIUT6.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-NHL3XV6A.js"), import("./env-45HRLZXA.js")]);
|
|
86
86
|
if (await isAutoUpdaterDisabled()) return;
|
|
87
87
|
if (await env.getIsDocker()) return;
|
|
88
88
|
if (!await env.hasInternetAccess()) return;
|
|
@@ -2,24 +2,24 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
loadPybAgentSessionMessages
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C64GQQIX.js";
|
|
6
6
|
import {
|
|
7
7
|
listPybAgentSessions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ISZYPQJ4.js";
|
|
9
9
|
import {
|
|
10
10
|
appendSessionCustomTitleRecord,
|
|
11
11
|
appendSessionJsonlFromMessage,
|
|
12
12
|
appendSessionTagRecord
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-C6KEBADH.js";
|
|
14
14
|
import {
|
|
15
15
|
fetchCustomModels,
|
|
16
16
|
getModelFeatures
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-A5OH2UIT.js";
|
|
18
18
|
import {
|
|
19
19
|
queryLLM,
|
|
20
20
|
queryQuick,
|
|
21
21
|
verifyApiKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IROS56AN.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_TIMEOUT_MS,
|
|
25
25
|
FallbackToolUseRejectedMessage,
|
|
@@ -33,11 +33,11 @@ import {
|
|
|
33
33
|
listMCPServers,
|
|
34
34
|
loadMergedSettings,
|
|
35
35
|
normalizeSandboxRuntimeConfigFromSettings
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-Z6FKI2XB.js";
|
|
37
37
|
import {
|
|
38
38
|
formatValidationResult,
|
|
39
39
|
validatePluginOrMarketplacePath
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-SCFTG75V.js";
|
|
41
41
|
import {
|
|
42
42
|
addMarketplace,
|
|
43
43
|
disableSkillPlugin,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
refreshMarketplaceAsync,
|
|
51
51
|
removeMarketplace,
|
|
52
52
|
uninstallSkillPlugin
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-6Y7R2HQJ.js";
|
|
54
54
|
import {
|
|
55
55
|
emitReminderEvent,
|
|
56
56
|
generateSystemReminders,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
resetReminderSession,
|
|
60
60
|
setTodos,
|
|
61
61
|
systemReminderService
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-TP3G2PLU.js";
|
|
63
63
|
import {
|
|
64
64
|
getSessionState
|
|
65
65
|
} from "./chunk-ERMQRV55.js";
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
getActiveAgents,
|
|
69
69
|
getAgentByType,
|
|
70
70
|
getAllAgents
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-SH2UZRTG.js";
|
|
72
72
|
import {
|
|
73
73
|
API_ERROR_MESSAGE_PREFIX,
|
|
74
74
|
CANCEL_MESSAGE,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
processUserInput,
|
|
99
99
|
reorderMessages,
|
|
100
100
|
stripSystemMessages
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-ROSGQFTS.js";
|
|
102
102
|
import {
|
|
103
103
|
getRequestStatus,
|
|
104
104
|
setRequestStatus,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
runStopHooks,
|
|
116
116
|
runUserPromptSubmitHooks,
|
|
117
117
|
updateHookTranscriptForMessages
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-AAIDMQFM.js";
|
|
119
119
|
import {
|
|
120
120
|
getPybAgentSessionId,
|
|
121
121
|
setPybAgentSessionId
|
|
@@ -128,29 +128,29 @@ import {
|
|
|
128
128
|
getOutputStyleSystemPromptAdditions,
|
|
129
129
|
resolveOutputStyleName,
|
|
130
130
|
setCurrentOutputStyle
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-K5SSMVKH.js";
|
|
132
132
|
import {
|
|
133
133
|
listAllContentFiles,
|
|
134
134
|
ripGrep,
|
|
135
135
|
tree
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-N5WZ6CIB.js";
|
|
137
137
|
import {
|
|
138
138
|
getCustomCommandDirectories,
|
|
139
139
|
hasCustomCommands,
|
|
140
140
|
loadCustomCommands,
|
|
141
141
|
reloadCustomCommands
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-42XRBA3T.js";
|
|
143
143
|
import {
|
|
144
144
|
getSessionPlugins
|
|
145
145
|
} from "./chunk-BJSWTHRM.js";
|
|
146
146
|
import {
|
|
147
147
|
loadToolPermissionContextFromDisk,
|
|
148
148
|
persistToolPermissionUpdateToDisk
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-SRWXBDPV.js";
|
|
150
150
|
import {
|
|
151
151
|
getSettingsFileCandidates,
|
|
152
152
|
loadSettingsWithLegacyFallback
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-J6LHG4P2.js";
|
|
154
154
|
import {
|
|
155
155
|
applyToolPermissionContextUpdate,
|
|
156
156
|
createDefaultToolPermissionContext
|
|
@@ -159,17 +159,17 @@ import {
|
|
|
159
159
|
ModelManager,
|
|
160
160
|
getModelManager,
|
|
161
161
|
isDefaultSlowAndCapableModel
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-LPRHLVIT.js";
|
|
163
163
|
import {
|
|
164
164
|
getCodeStyle,
|
|
165
165
|
getContext,
|
|
166
166
|
getGitState,
|
|
167
167
|
getIsGit,
|
|
168
168
|
getProjectDocs
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-RVWBNMCL.js";
|
|
170
170
|
import {
|
|
171
171
|
getTheme
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-IQIZZT3A.js";
|
|
173
173
|
import {
|
|
174
174
|
DEFAULT_GLOBAL_CONFIG,
|
|
175
175
|
enableConfigs,
|
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
saveGlobalConfig,
|
|
183
183
|
setAllPointersToModel,
|
|
184
184
|
setModelPointer
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-4NCEUAAH.js";
|
|
186
186
|
import {
|
|
187
187
|
AbortError
|
|
188
188
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -191,7 +191,7 @@ import {
|
|
|
191
191
|
getCurrentRequest,
|
|
192
192
|
logUserFriendly,
|
|
193
193
|
markPhase
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-TWXMVB4T.js";
|
|
195
195
|
import {
|
|
196
196
|
ASCII_LOGO,
|
|
197
197
|
BunShell,
|
|
@@ -227,10 +227,10 @@ import {
|
|
|
227
227
|
renderBashNotification,
|
|
228
228
|
setActivePlanConversationKey,
|
|
229
229
|
setCwd
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-6FIBU73C.js";
|
|
231
231
|
import {
|
|
232
232
|
MACRO
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-JY2ZIUT6.js";
|
|
234
234
|
import {
|
|
235
235
|
formatTotalCost,
|
|
236
236
|
getTotalAPIDuration,
|
|
@@ -418,7 +418,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
418
418
|
var getCommandPrefix = memoize(
|
|
419
419
|
async (command4, abortSignal) => {
|
|
420
420
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
421
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
421
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-RHWOZZGJ.js");
|
|
422
422
|
const response = await queryQuick2({
|
|
423
423
|
systemPrompt,
|
|
424
424
|
userPrompt,
|
|
@@ -4458,7 +4458,7 @@ function formatParseError(error) {
|
|
|
4458
4458
|
return error instanceof Error ? error.message : String(error);
|
|
4459
4459
|
}
|
|
4460
4460
|
async function defaultGateQuery(args) {
|
|
4461
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4461
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-RHWOZZGJ.js");
|
|
4462
4462
|
const messages = [
|
|
4463
4463
|
{
|
|
4464
4464
|
type: "user",
|
|
@@ -6703,8 +6703,8 @@ var FileEditTool = {
|
|
|
6703
6703
|
let currentFileContent = fileExistsBun(fullFilePath) ? normalizeLineEndings(await readFileBun(fullFilePath) ?? "") : "";
|
|
6704
6704
|
const originalFileContent = currentFileContent;
|
|
6705
6705
|
let totalPatch = [];
|
|
6706
|
-
const { SmartEdit } = await import("./smart-edit-
|
|
6707
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6706
|
+
const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
|
|
6707
|
+
const { findLspAnchor } = await import("./lspAnchor-IEMAQJKB.js");
|
|
6708
6708
|
for (const op of editOperations) {
|
|
6709
6709
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6710
6710
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -6747,7 +6747,7 @@ ${op.search}`);
|
|
|
6747
6747
|
const endings = fileExistsBun(fullFilePath) ? detectLineEndings(fullFilePath) : "LF";
|
|
6748
6748
|
writeTextContent(fullFilePath, updatedFile, enc, endings);
|
|
6749
6749
|
if (verify) {
|
|
6750
|
-
const { LspClientManager } = await import("./manager-
|
|
6750
|
+
const { LspClientManager } = await import("./manager-QVC7V5FF.js");
|
|
6751
6751
|
const client = await LspClientManager.getInstance().getClientForFile(fullFilePath);
|
|
6752
6752
|
if (client) {
|
|
6753
6753
|
const ext = extname3(fullFilePath);
|
|
@@ -7659,7 +7659,7 @@ var FileReadTool = {
|
|
|
7659
7659
|
let finalLimit = limit;
|
|
7660
7660
|
if (symbol_name) {
|
|
7661
7661
|
try {
|
|
7662
|
-
const { LspClientManager } = await import("./manager-
|
|
7662
|
+
const { LspClientManager } = await import("./manager-QVC7V5FF.js");
|
|
7663
7663
|
const manager = LspClientManager.getInstance();
|
|
7664
7664
|
const symbols = await manager.documentSymbol(fullFilePath, getCwd());
|
|
7665
7665
|
if (!symbols || symbols.length === 0) {
|
|
@@ -8228,7 +8228,7 @@ var GlobTool = {
|
|
|
8228
8228
|
let files = raw.map((p) => isAbsolute7(p) ? p : join5(searchPath, p));
|
|
8229
8229
|
if (semantic) {
|
|
8230
8230
|
try {
|
|
8231
|
-
const { LspClientManager } = await import("./manager-
|
|
8231
|
+
const { LspClientManager } = await import("./manager-QVC7V5FF.js");
|
|
8232
8232
|
const symbols = await LspClientManager.getInstance().workspaceSymbol(pattern, searchPath);
|
|
8233
8233
|
const semanticFiles = symbols.map((s) => {
|
|
8234
8234
|
let filePath = s.location?.uri || "";
|
|
@@ -8543,7 +8543,7 @@ ${result.filenames.join("\n")}`;
|
|
|
8543
8543
|
if (symbol_type) {
|
|
8544
8544
|
lines.length = 0;
|
|
8545
8545
|
}
|
|
8546
|
-
const { LspClientManager } = await import("./manager-
|
|
8546
|
+
const { LspClientManager } = await import("./manager-QVC7V5FF.js");
|
|
8547
8547
|
const symbols = await LspClientManager.getInstance().workspaceSymbol(String(pattern), absolutePath);
|
|
8548
8548
|
let filtered = symbols;
|
|
8549
8549
|
const symbolType = symbol_type;
|
|
@@ -11366,7 +11366,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11366
11366
|
}
|
|
11367
11367
|
saveGlobalConfig(config2);
|
|
11368
11368
|
try {
|
|
11369
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11369
|
+
const { resetAnthropicClient } = await import("./llm-RHWOZZGJ.js");
|
|
11370
11370
|
resetAnthropicClient();
|
|
11371
11371
|
} catch {
|
|
11372
11372
|
}
|
|
@@ -15648,7 +15648,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15648
15648
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15649
15649
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15650
15650
|
if (dirs.length === 0) return [];
|
|
15651
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15651
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-7IMWBORD.js");
|
|
15652
15652
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15653
15653
|
return errors;
|
|
15654
15654
|
}
|
|
@@ -16317,7 +16317,7 @@ async function call(onDone, context) {
|
|
|
16317
16317
|
ModelConfig,
|
|
16318
16318
|
{
|
|
16319
16319
|
onClose: () => {
|
|
16320
|
-
import("./model-
|
|
16320
|
+
import("./model-SMB3E5LC.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16321
16321
|
reloadModelManager2();
|
|
16322
16322
|
triggerModelConfigChange();
|
|
16323
16323
|
onDone();
|
|
@@ -23576,7 +23576,7 @@ function useStatusLine() {
|
|
|
23576
23576
|
// src/ui/components/PromptInput.tsx
|
|
23577
23577
|
async function interpretHashCommand(input) {
|
|
23578
23578
|
try {
|
|
23579
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
23579
|
+
const { queryQuick: queryQuick2 } = await import("./llm-RHWOZZGJ.js");
|
|
23580
23580
|
const systemPrompt = [
|
|
23581
23581
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
23582
23582
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -23889,7 +23889,7 @@ function PromptInput({
|
|
|
23889
23889
|
if (messages2.length) {
|
|
23890
23890
|
if (mode === "bash") {
|
|
23891
23891
|
onQuery(messages2, newAbortController).then(async () => {
|
|
23892
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
23892
|
+
const { getCwd: getCwd2 } = await import("./state-IWD2KGEM.js");
|
|
23893
23893
|
setCurrentPwd(getCwd2());
|
|
23894
23894
|
});
|
|
23895
23895
|
} else {
|
|
@@ -26632,7 +26632,6 @@ function getCoreTools() {
|
|
|
26632
26632
|
{ name: "Read", description: "Read files from filesystem" },
|
|
26633
26633
|
{ name: "Write", description: "Write files to filesystem" },
|
|
26634
26634
|
{ name: "Edit", description: "Edit existing files" },
|
|
26635
|
-
{ name: "MultiEdit", description: "Make multiple edits to files" },
|
|
26636
26635
|
{ name: "NotebookEdit", description: "Edit Jupyter notebooks" },
|
|
26637
26636
|
{ name: "Bash", description: "Execute bash commands" },
|
|
26638
26637
|
{ name: "Glob", description: "Find files matching patterns" },
|
|
@@ -26675,7 +26674,7 @@ import { homedir as homedir7 } from "os";
|
|
|
26675
26674
|
// src/commands/agents/generation.ts
|
|
26676
26675
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
26677
26676
|
async function generateAgentWithClaude(prompt) {
|
|
26678
|
-
const { queryModel } = await import("./llm-
|
|
26677
|
+
const { queryModel } = await import("./llm-RHWOZZGJ.js");
|
|
26679
26678
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
26680
26679
|
|
|
26681
26680
|
Return your response as a JSON object with exactly these fields:
|
|
@@ -30851,7 +30850,6 @@ export {
|
|
|
30851
30850
|
Cost,
|
|
30852
30851
|
WebFetchTool,
|
|
30853
30852
|
Select,
|
|
30854
|
-
fileExistsBun,
|
|
30855
30853
|
hasReadPermission,
|
|
30856
30854
|
hasWritePermission,
|
|
30857
30855
|
grantReadPermissionForOriginalDir,
|
|
@@ -30863,7 +30861,6 @@ export {
|
|
|
30863
30861
|
FileWriteTool,
|
|
30864
30862
|
GlobTool,
|
|
30865
30863
|
GrepTool,
|
|
30866
|
-
WebSearchTool,
|
|
30867
30864
|
SlashCommandTool,
|
|
30868
30865
|
SkillTool,
|
|
30869
30866
|
ExitPlanModeTool,
|