pybao-cli 1.5.6 → 1.5.7
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-YW6AH5YU.js +49 -0
- package/dist/{acp-3KRM4YMC.js → acp-2LMTSBAU.js} +30 -30
- package/dist/{agentsValidate-T6E3S4SD.js → agentsValidate-YQSHYCYC.js} +7 -7
- package/dist/{ask-OT3N6WUV.js → ask-4Z4LH5IS.js} +29 -29
- package/dist/{autoUpdater-MBTYMKZZ.js → autoUpdater-UTX7ZX2N.js} +3 -3
- package/dist/{chunk-TN4TZY7G.js → chunk-3JH34RBY.js} +2 -2
- package/dist/{chunk-CXLPIXKP.js → chunk-4BFEUSKN.js} +2 -2
- package/dist/{chunk-FZEVFEDH.js → chunk-4R7NUADF.js} +1 -1
- package/dist/{chunk-PCSIH35L.js → chunk-5F6IQJHF.js} +1 -1
- package/dist/{chunk-KO6ENKTQ.js → chunk-5JKCAVMI.js} +3 -3
- package/dist/{chunk-L3QFTUHN.js → chunk-7FFBXWS3.js} +3 -3
- package/dist/{chunk-HV4AL2VG.js → chunk-CJ2YYIJN.js} +1 -1
- package/dist/{chunk-WTF7JOIQ.js → chunk-EGJRWKZ6.js} +4 -4
- package/dist/{chunk-ZUWPUBWZ.js → chunk-EN7L7JWN.js} +1 -1
- package/dist/{chunk-2DY7NKZY.js → chunk-F7HYDAWW.js} +3 -3
- package/dist/{chunk-AKLGEOKM.js → chunk-HFVRQO2J.js} +16 -16
- package/dist/{chunk-DM2LV6T7.js → chunk-IFC2PLAM.js} +4 -4
- package/dist/{chunk-X7PDG4FB.js → chunk-IKMMFSNJ.js} +1 -1
- package/dist/{chunk-LMTF4FXH.js → chunk-IOP3VA4X.js} +2 -2
- package/dist/{chunk-MLZYATJX.js → chunk-JEAXJP2E.js} +1 -1
- package/dist/{chunk-RPIILAZ5.js → chunk-KLD4WAB6.js} +4 -4
- package/dist/{chunk-QD4OU22C.js → chunk-LYMH46VN.js} +3 -3
- package/dist/{chunk-ZXUQALBB.js → chunk-OY6SB5B3.js} +4 -4
- package/dist/{chunk-6MZDAIOV.js → chunk-PI5RBPFA.js} +2 -2
- package/dist/{chunk-YSZEGC2L.js → chunk-PMYMUSB4.js} +3 -3
- package/dist/{chunk-BRDQQ6DH.js → chunk-SDKYJZWD.js} +2 -2
- package/dist/{chunk-SIE7VHSI.js → chunk-SWNNPHFY.js} +44 -55
- package/dist/{chunk-SIE7VHSI.js.map → chunk-SWNNPHFY.js.map} +2 -2
- package/dist/{chunk-VDIUCVWJ.js → chunk-T7UTA73F.js} +3 -3
- package/dist/{chunk-GKFPN3PD.js → chunk-TIMEEE5U.js} +1 -1
- package/dist/{chunk-5TPUQEB7.js → chunk-TKEWBSVM.js} +3 -3
- package/dist/{chunk-GPSHYLDR.js → chunk-VBV5RHIK.js} +1 -1
- package/dist/{chunk-33HCNVDW.js → chunk-VZDDKAL2.js} +2 -2
- package/dist/{chunk-63RVOHFS.js → chunk-W4PXRGP3.js} +1 -1
- package/dist/{chunk-63RVOHFS.js.map → chunk-W4PXRGP3.js.map} +1 -1
- package/dist/{chunk-NM5GLMVH.js → chunk-Y2RSIF7P.js} +1 -1
- package/dist/{chunk-BKG4N5U7.js → chunk-YNGGZILT.js} +1 -1
- package/dist/{chunk-DTWSIMGF.js → chunk-ZD6NMP33.js} +2 -2
- package/dist/{cli-F65QNC6S.js → cli-N3Q4D4BW.js} +89 -89
- package/dist/commands-OOINF26E.js +53 -0
- package/dist/{config-TEBSBFSO.js → config-GZXNPIIG.js} +4 -4
- package/dist/{context-T5NFLTK4.js → context-TUO5CUR3.js} +6 -6
- package/dist/{conversationTracker-ZUJHBMDH.js → conversationTracker-APB6PR5Z.js} +3 -3
- package/dist/{customCommands-TBZ5RMJ5.js → customCommands-J4DV6OI5.js} +4 -4
- package/dist/{env-3LH2POC2.js → env-YBYEMHYQ.js} +2 -2
- package/dist/{file-O7PWWVFS.js → file-KIBY6XZX.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-OW7QDXPZ.js → llm-T7C6QJWB.js} +30 -30
- package/dist/{llmLazy-CCD2PHFB.js → llmLazy-FDVUCPDQ.js} +1 -1
- package/dist/{loader-RBCHNZJW.js → loader-QCHS455W.js} +4 -4
- package/dist/{lsp-WAD7S2GA.js → lsp-TE2SQ6CO.js} +6 -6
- package/dist/{lspAnchor-B5AR4FPG.js → lspAnchor-IZ7YQJ64.js} +6 -6
- package/dist/{mcp-5H5KKR2C.js → mcp-PLAWUZOQ.js} +7 -7
- package/dist/{mentionProcessor-NK7NPMF2.js → mentionProcessor-2O3AMZHB.js} +5 -5
- package/dist/{messages-DHHFMED7.js → messages-ZHFZ2OOG.js} +1 -1
- package/dist/{model-XWJ23WCS.js → model-GBC2PBVJ.js} +5 -5
- package/dist/{openai-WAGWEANY.js → openai-2V2J23AE.js} +5 -5
- package/dist/{outputStyles-F6PPD3VU.js → outputStyles-WD4VD4GZ.js} +4 -4
- package/dist/{pluginRuntime-BFIRISID.js → pluginRuntime-WNZS26EV.js} +6 -6
- package/dist/{pluginValidation-FDI5C7J7.js → pluginValidation-YP7MW35I.js} +6 -6
- package/dist/prompts-QPYUI6SX.js +55 -0
- package/dist/{pybAgentSessionLoad-Z57EVSBX.js → pybAgentSessionLoad-YABCHELS.js} +4 -4
- package/dist/{pybAgentSessionResume-74AWGCWV.js → pybAgentSessionResume-C3LNSFQL.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-HVWGJB4Q.js → pybAgentStreamJsonSession-DFOGLEOB.js} +1 -1
- package/dist/{pybHooks-FZYE52XG.js → pybHooks-LGGIB5PJ.js} +4 -4
- package/dist/query-EC6HGBDS.js +57 -0
- package/dist/{registry-FCKOLGU5.js → registry-EYMCKHRG.js} +5 -5
- package/dist/{ripgrep-MYG754KL.js → ripgrep-JZN2MVSK.js} +3 -3
- package/dist/{skillMarketplace-B5UZC4ES.js → skillMarketplace-ETYXMAXF.js} +3 -3
- package/dist/{state-SP4W7M4L.js → state-MAVHRDNE.js} +2 -2
- package/dist/{theme-OZAWAG6W.js → theme-AUEZ6SNA.js} +5 -5
- package/dist/{toolPermissionSettings-S2WBKN66.js → toolPermissionSettings-7JZYBUZC.js} +6 -6
- package/dist/tools-3JFVDDSZ.js +54 -0
- package/dist/{userInput-YJPISBP7.js → userInput-V6RU4BEQ.js} +31 -31
- package/package.json +1 -1
- package/dist/REPL-S2UEVXWF.js +0 -49
- package/dist/commands-A6WCP2T2.js +0 -53
- package/dist/prompts-XIY3JRPC.js +0 -55
- package/dist/query-JWT6DB4G.js +0 -57
- package/dist/tools-UE2MORVX.js +0 -54
- /package/dist/{REPL-S2UEVXWF.js.map → REPL-YW6AH5YU.js.map} +0 -0
- /package/dist/{acp-3KRM4YMC.js.map → acp-2LMTSBAU.js.map} +0 -0
- /package/dist/{agentsValidate-T6E3S4SD.js.map → agentsValidate-YQSHYCYC.js.map} +0 -0
- /package/dist/{ask-OT3N6WUV.js.map → ask-4Z4LH5IS.js.map} +0 -0
- /package/dist/{autoUpdater-MBTYMKZZ.js.map → autoUpdater-UTX7ZX2N.js.map} +0 -0
- /package/dist/{chunk-TN4TZY7G.js.map → chunk-3JH34RBY.js.map} +0 -0
- /package/dist/{chunk-CXLPIXKP.js.map → chunk-4BFEUSKN.js.map} +0 -0
- /package/dist/{chunk-FZEVFEDH.js.map → chunk-4R7NUADF.js.map} +0 -0
- /package/dist/{chunk-PCSIH35L.js.map → chunk-5F6IQJHF.js.map} +0 -0
- /package/dist/{chunk-KO6ENKTQ.js.map → chunk-5JKCAVMI.js.map} +0 -0
- /package/dist/{chunk-L3QFTUHN.js.map → chunk-7FFBXWS3.js.map} +0 -0
- /package/dist/{chunk-HV4AL2VG.js.map → chunk-CJ2YYIJN.js.map} +0 -0
- /package/dist/{chunk-WTF7JOIQ.js.map → chunk-EGJRWKZ6.js.map} +0 -0
- /package/dist/{chunk-ZUWPUBWZ.js.map → chunk-EN7L7JWN.js.map} +0 -0
- /package/dist/{chunk-2DY7NKZY.js.map → chunk-F7HYDAWW.js.map} +0 -0
- /package/dist/{chunk-AKLGEOKM.js.map → chunk-HFVRQO2J.js.map} +0 -0
- /package/dist/{chunk-DM2LV6T7.js.map → chunk-IFC2PLAM.js.map} +0 -0
- /package/dist/{chunk-X7PDG4FB.js.map → chunk-IKMMFSNJ.js.map} +0 -0
- /package/dist/{chunk-LMTF4FXH.js.map → chunk-IOP3VA4X.js.map} +0 -0
- /package/dist/{chunk-MLZYATJX.js.map → chunk-JEAXJP2E.js.map} +0 -0
- /package/dist/{chunk-RPIILAZ5.js.map → chunk-KLD4WAB6.js.map} +0 -0
- /package/dist/{chunk-QD4OU22C.js.map → chunk-LYMH46VN.js.map} +0 -0
- /package/dist/{chunk-ZXUQALBB.js.map → chunk-OY6SB5B3.js.map} +0 -0
- /package/dist/{chunk-6MZDAIOV.js.map → chunk-PI5RBPFA.js.map} +0 -0
- /package/dist/{chunk-YSZEGC2L.js.map → chunk-PMYMUSB4.js.map} +0 -0
- /package/dist/{chunk-BRDQQ6DH.js.map → chunk-SDKYJZWD.js.map} +0 -0
- /package/dist/{chunk-VDIUCVWJ.js.map → chunk-T7UTA73F.js.map} +0 -0
- /package/dist/{chunk-GKFPN3PD.js.map → chunk-TIMEEE5U.js.map} +0 -0
- /package/dist/{chunk-5TPUQEB7.js.map → chunk-TKEWBSVM.js.map} +0 -0
- /package/dist/{chunk-GPSHYLDR.js.map → chunk-VBV5RHIK.js.map} +0 -0
- /package/dist/{chunk-33HCNVDW.js.map → chunk-VZDDKAL2.js.map} +0 -0
- /package/dist/{chunk-NM5GLMVH.js.map → chunk-Y2RSIF7P.js.map} +0 -0
- /package/dist/{chunk-BKG4N5U7.js.map → chunk-YNGGZILT.js.map} +0 -0
- /package/dist/{chunk-DTWSIMGF.js.map → chunk-ZD6NMP33.js.map} +0 -0
- /package/dist/{cli-F65QNC6S.js.map → cli-N3Q4D4BW.js.map} +0 -0
- /package/dist/{commands-A6WCP2T2.js.map → commands-OOINF26E.js.map} +0 -0
- /package/dist/{config-TEBSBFSO.js.map → config-GZXNPIIG.js.map} +0 -0
- /package/dist/{context-T5NFLTK4.js.map → context-TUO5CUR3.js.map} +0 -0
- /package/dist/{conversationTracker-ZUJHBMDH.js.map → conversationTracker-APB6PR5Z.js.map} +0 -0
- /package/dist/{customCommands-TBZ5RMJ5.js.map → customCommands-J4DV6OI5.js.map} +0 -0
- /package/dist/{env-3LH2POC2.js.map → env-YBYEMHYQ.js.map} +0 -0
- /package/dist/{file-O7PWWVFS.js.map → file-KIBY6XZX.js.map} +0 -0
- /package/dist/{llm-OW7QDXPZ.js.map → llm-T7C6QJWB.js.map} +0 -0
- /package/dist/{llmLazy-CCD2PHFB.js.map → llmLazy-FDVUCPDQ.js.map} +0 -0
- /package/dist/{loader-RBCHNZJW.js.map → loader-QCHS455W.js.map} +0 -0
- /package/dist/{lsp-WAD7S2GA.js.map → lsp-TE2SQ6CO.js.map} +0 -0
- /package/dist/{lspAnchor-B5AR4FPG.js.map → lspAnchor-IZ7YQJ64.js.map} +0 -0
- /package/dist/{mcp-5H5KKR2C.js.map → mcp-PLAWUZOQ.js.map} +0 -0
- /package/dist/{mentionProcessor-NK7NPMF2.js.map → mentionProcessor-2O3AMZHB.js.map} +0 -0
- /package/dist/{messages-DHHFMED7.js.map → messages-ZHFZ2OOG.js.map} +0 -0
- /package/dist/{model-XWJ23WCS.js.map → model-GBC2PBVJ.js.map} +0 -0
- /package/dist/{openai-WAGWEANY.js.map → openai-2V2J23AE.js.map} +0 -0
- /package/dist/{outputStyles-F6PPD3VU.js.map → outputStyles-WD4VD4GZ.js.map} +0 -0
- /package/dist/{pluginRuntime-BFIRISID.js.map → pluginRuntime-WNZS26EV.js.map} +0 -0
- /package/dist/{pluginValidation-FDI5C7J7.js.map → pluginValidation-YP7MW35I.js.map} +0 -0
- /package/dist/{prompts-XIY3JRPC.js.map → prompts-QPYUI6SX.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-Z57EVSBX.js.map → pybAgentSessionLoad-YABCHELS.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-74AWGCWV.js.map → pybAgentSessionResume-C3LNSFQL.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-HVWGJB4Q.js.map → pybAgentStreamJsonSession-DFOGLEOB.js.map} +0 -0
- /package/dist/{pybHooks-FZYE52XG.js.map → pybHooks-LGGIB5PJ.js.map} +0 -0
- /package/dist/{query-JWT6DB4G.js.map → query-EC6HGBDS.js.map} +0 -0
- /package/dist/{registry-FCKOLGU5.js.map → registry-EYMCKHRG.js.map} +0 -0
- /package/dist/{ripgrep-MYG754KL.js.map → ripgrep-JZN2MVSK.js.map} +0 -0
- /package/dist/{skillMarketplace-B5UZC4ES.js.map → skillMarketplace-ETYXMAXF.js.map} +0 -0
- /package/dist/{state-SP4W7M4L.js.map → state-MAVHRDNE.js.map} +0 -0
- /package/dist/{theme-OZAWAG6W.js.map → theme-AUEZ6SNA.js.map} +0 -0
- /package/dist/{toolPermissionSettings-S2WBKN66.js.map → toolPermissionSettings-7JZYBUZC.js.map} +0 -0
- /package/dist/{tools-UE2MORVX.js.map → tools-3JFVDDSZ.js.map} +0 -0
- /package/dist/{userInput-YJPISBP7.js.map → userInput-V6RU4BEQ.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-PMYMUSB4.js";
|
|
7
7
|
import {
|
|
8
8
|
debug
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IKMMFSNJ.js";
|
|
10
10
|
import {
|
|
11
11
|
logError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TIMEEE5U.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/model/index.ts
|
|
15
15
|
import { memoize } from "lodash-es";
|
|
@@ -3,13 +3,13 @@ const require = __pybCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getSettingsFileCandidates,
|
|
5
5
|
loadSettingsWithLegacyFallback
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5F6IQJHF.js";
|
|
7
7
|
import {
|
|
8
8
|
getSessionPlugins
|
|
9
9
|
} from "./chunk-BJSWTHRM.js";
|
|
10
10
|
import {
|
|
11
11
|
getTheme
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Y2RSIF7P.js";
|
|
13
13
|
import {
|
|
14
14
|
addMcprcServerForTesting,
|
|
15
15
|
getCurrentProjectConfig,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
safeParseJSON,
|
|
20
20
|
saveCurrentProjectConfig,
|
|
21
21
|
saveGlobalConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PMYMUSB4.js";
|
|
23
23
|
import {
|
|
24
24
|
PRODUCT_COMMAND,
|
|
25
25
|
PRODUCT_NAME,
|
|
26
26
|
getCwd,
|
|
27
27
|
logMCPError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-TIMEEE5U.js";
|
|
29
29
|
|
|
30
30
|
// src/services/mcp/client.ts
|
|
31
31
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
} from "./chunk-BJSWTHRM.js";
|
|
9
9
|
import {
|
|
10
10
|
debug
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IKMMFSNJ.js";
|
|
12
12
|
import {
|
|
13
13
|
getCwd,
|
|
14
14
|
getXdgConfigDir,
|
|
15
15
|
logError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TIMEEE5U.js";
|
|
17
17
|
|
|
18
18
|
// src/utils/agent/loader.ts
|
|
19
19
|
import {
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-RQVLBMP7.js";
|
|
6
6
|
import {
|
|
7
7
|
debug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IKMMFSNJ.js";
|
|
9
9
|
import {
|
|
10
10
|
getCwd,
|
|
11
11
|
getGlobalConfigFilePath,
|
|
12
12
|
getLegacyGlobalConfigFilePath,
|
|
13
13
|
logError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TIMEEE5U.js";
|
|
15
15
|
|
|
16
16
|
// src/core/config/schema.ts
|
|
17
17
|
function isAutoUpdaterStatus(value) {
|
|
@@ -688,7 +688,7 @@ function setModelPointer(pointer, modelName) {
|
|
|
688
688
|
}
|
|
689
689
|
};
|
|
690
690
|
saveGlobalConfig(updatedConfig);
|
|
691
|
-
import("./model-
|
|
691
|
+
import("./model-GBC2PBVJ.js").then(({ reloadModelManager }) => {
|
|
692
692
|
reloadModelManager();
|
|
693
693
|
});
|
|
694
694
|
}
|
|
@@ -2,11 +2,11 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listAllContentFiles
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EN7L7JWN.js";
|
|
6
6
|
import {
|
|
7
7
|
getCwd,
|
|
8
8
|
logError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TIMEEE5U.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/fs/file.ts
|
|
12
12
|
import {
|
|
@@ -2,11 +2,11 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listPybAgentSessions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JEAXJP2E.js";
|
|
6
6
|
import {
|
|
7
7
|
formatValidationResult,
|
|
8
8
|
validatePluginOrMarketplacePath
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5JKCAVMI.js";
|
|
10
10
|
import {
|
|
11
11
|
ConversationTracker,
|
|
12
12
|
appendFinishState,
|
|
@@ -14,18 +14,18 @@ import {
|
|
|
14
14
|
getConversationTrackerForContext,
|
|
15
15
|
isFinishComplete,
|
|
16
16
|
mapFinishReason
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CJ2YYIJN.js";
|
|
18
18
|
import {
|
|
19
19
|
beginReplSessionScope
|
|
20
20
|
} from "./chunk-F4AXICO7.js";
|
|
21
21
|
import {
|
|
22
22
|
loadPybAgentSessionMessages
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4R7NUADF.js";
|
|
24
24
|
import {
|
|
25
25
|
appendSessionCustomTitleRecord,
|
|
26
26
|
appendSessionJsonlFromMessage,
|
|
27
27
|
appendSessionTagRecord
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ZD6NMP33.js";
|
|
29
29
|
import {
|
|
30
30
|
drainHookSystemPromptAdditions,
|
|
31
31
|
getHookTranscriptPath,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
runStopHooks,
|
|
38
38
|
runUserPromptSubmitHooks,
|
|
39
39
|
updateHookTranscriptForMessages
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-T7UTA73F.js";
|
|
41
41
|
import {
|
|
42
42
|
DEFAULT_OUTPUT_STYLE,
|
|
43
43
|
getAvailableOutputStyles,
|
|
@@ -46,11 +46,11 @@ import {
|
|
|
46
46
|
getOutputStyleSystemPromptAdditions,
|
|
47
47
|
resolveOutputStyleName,
|
|
48
48
|
setCurrentOutputStyle
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-3JH34RBY.js";
|
|
50
50
|
import {
|
|
51
51
|
fetchCustomModels,
|
|
52
52
|
getModelFeatures
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-4BFEUSKN.js";
|
|
54
54
|
import {
|
|
55
55
|
getSessionState
|
|
56
56
|
} from "./chunk-XKYHFZEC.js";
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
queryLLM,
|
|
59
59
|
queryQuick,
|
|
60
60
|
verifyApiKey
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-KLD4WAB6.js";
|
|
62
62
|
import {
|
|
63
63
|
DEFAULT_TIMEOUT_MS,
|
|
64
64
|
FallbackToolUseRejectedMessage,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
listMCPServers,
|
|
73
73
|
loadMergedSettings,
|
|
74
74
|
normalizeSandboxRuntimeConfigFromSettings
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-OY6SB5B3.js";
|
|
76
76
|
import {
|
|
77
77
|
addMarketplace,
|
|
78
78
|
disableSkillPlugin,
|
|
@@ -85,11 +85,11 @@ import {
|
|
|
85
85
|
refreshMarketplaceAsync,
|
|
86
86
|
removeMarketplace,
|
|
87
87
|
uninstallSkillPlugin
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-VBV5RHIK.js";
|
|
89
89
|
import {
|
|
90
90
|
loadToolPermissionContextFromDisk,
|
|
91
91
|
persistToolPermissionUpdateToDisk
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-7FFBXWS3.js";
|
|
93
93
|
import {
|
|
94
94
|
applyToolPermissionContextUpdate,
|
|
95
95
|
applyToolPermissionContextUpdates,
|
|
@@ -100,13 +100,13 @@ import {
|
|
|
100
100
|
generateSystemReminders,
|
|
101
101
|
resetReminderSession,
|
|
102
102
|
systemReminderService
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-IOP3VA4X.js";
|
|
104
104
|
import {
|
|
105
105
|
clearAgentCache,
|
|
106
106
|
getActiveAgents,
|
|
107
107
|
getAgentByType,
|
|
108
108
|
getAllAgents
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-PI5RBPFA.js";
|
|
110
110
|
import {
|
|
111
111
|
API_ERROR_MESSAGE_PREFIX,
|
|
112
112
|
CANCEL_MESSAGE,
|
|
@@ -137,7 +137,7 @@ import {
|
|
|
137
137
|
processUserInput,
|
|
138
138
|
reorderMessages,
|
|
139
139
|
stripSystemMessages
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-YNGGZILT.js";
|
|
141
141
|
import {
|
|
142
142
|
getRequestStatus,
|
|
143
143
|
setRequestStatus,
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
normalizeFilePath,
|
|
168
168
|
readTextContent,
|
|
169
169
|
writeTextContent
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-SDKYJZWD.js";
|
|
171
171
|
import {
|
|
172
172
|
parseBlockEdits
|
|
173
173
|
} from "./chunk-QWIBSCDN.js";
|
|
@@ -177,18 +177,18 @@ import {
|
|
|
177
177
|
ParserRegistry,
|
|
178
178
|
initParser,
|
|
179
179
|
loadLanguage
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-EGJRWKZ6.js";
|
|
181
181
|
import {
|
|
182
182
|
getSettingsFileCandidates,
|
|
183
183
|
loadSettingsWithLegacyFallback,
|
|
184
184
|
readSettingsFile
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-5F6IQJHF.js";
|
|
186
186
|
import {
|
|
187
187
|
getCustomCommandDirectories,
|
|
188
188
|
hasCustomCommands,
|
|
189
189
|
loadCustomCommands,
|
|
190
190
|
reloadCustomCommands
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-VZDDKAL2.js";
|
|
192
192
|
import {
|
|
193
193
|
getSessionPlugins
|
|
194
194
|
} from "./chunk-BJSWTHRM.js";
|
|
@@ -197,7 +197,7 @@ import {
|
|
|
197
197
|
buildModelProfileKey,
|
|
198
198
|
getModelManager,
|
|
199
199
|
isDefaultSlowAndCapableModel
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-LYMH46VN.js";
|
|
201
201
|
import {
|
|
202
202
|
getCodeStyle,
|
|
203
203
|
getContext,
|
|
@@ -205,16 +205,16 @@ import {
|
|
|
205
205
|
getIsGit,
|
|
206
206
|
getProjectDocs,
|
|
207
207
|
getProjectStructureStatisticsBlock
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-IFC2PLAM.js";
|
|
209
209
|
import {
|
|
210
210
|
getRipgrepPath,
|
|
211
211
|
getRipgrepPolicyMode,
|
|
212
212
|
resolveRipgrepPolicy,
|
|
213
213
|
ripGrep
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-EN7L7JWN.js";
|
|
215
215
|
import {
|
|
216
216
|
getTheme
|
|
217
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-Y2RSIF7P.js";
|
|
218
218
|
import {
|
|
219
219
|
DEFAULT_GLOBAL_CONFIG,
|
|
220
220
|
enableConfigs,
|
|
@@ -227,7 +227,7 @@ import {
|
|
|
227
227
|
saveGlobalConfig,
|
|
228
228
|
setAllPointersToModel,
|
|
229
229
|
setModelPointer
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-PMYMUSB4.js";
|
|
231
231
|
import {
|
|
232
232
|
AbortError
|
|
233
233
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -236,7 +236,7 @@ import {
|
|
|
236
236
|
getCurrentRequest,
|
|
237
237
|
logUserFriendly,
|
|
238
238
|
markPhase
|
|
239
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-IKMMFSNJ.js";
|
|
240
240
|
import {
|
|
241
241
|
ASCII_LOGO,
|
|
242
242
|
BunShell,
|
|
@@ -277,10 +277,10 @@ import {
|
|
|
277
277
|
setCwd,
|
|
278
278
|
shouldApplyToolOutputTruncation,
|
|
279
279
|
truncateToolOutput
|
|
280
|
-
} from "./chunk-
|
|
280
|
+
} from "./chunk-TIMEEE5U.js";
|
|
281
281
|
import {
|
|
282
282
|
MACRO
|
|
283
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-W4PXRGP3.js";
|
|
284
284
|
import {
|
|
285
285
|
__export
|
|
286
286
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -461,7 +461,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
461
461
|
var getCommandPrefix = memoize(
|
|
462
462
|
async (command4, abortSignal) => {
|
|
463
463
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
464
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
464
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-T7C6QJWB.js");
|
|
465
465
|
const response = await queryQuick2({
|
|
466
466
|
systemPrompt,
|
|
467
467
|
userPrompt,
|
|
@@ -4263,7 +4263,7 @@ function formatParseError(error) {
|
|
|
4263
4263
|
return error instanceof Error ? error.message : String(error);
|
|
4264
4264
|
}
|
|
4265
4265
|
async function defaultGateQuery(args) {
|
|
4266
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4266
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-T7C6QJWB.js");
|
|
4267
4267
|
const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
|
|
4268
4268
|
const messages = [
|
|
4269
4269
|
{
|
|
@@ -6624,7 +6624,7 @@ var FileEditTool = {
|
|
|
6624
6624
|
const originalFileContent = currentFileContent;
|
|
6625
6625
|
let totalPatch = [];
|
|
6626
6626
|
const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
|
|
6627
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6627
|
+
const { findLspAnchor } = await import("./lspAnchor-IZ7YQJ64.js");
|
|
6628
6628
|
for (const op of editOperations) {
|
|
6629
6629
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6630
6630
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -12058,7 +12058,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
12058
12058
|
}
|
|
12059
12059
|
saveGlobalConfig(config2);
|
|
12060
12060
|
try {
|
|
12061
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
12061
|
+
const { resetAnthropicClient } = await import("./llm-T7C6QJWB.js");
|
|
12062
12062
|
resetAnthropicClient();
|
|
12063
12063
|
} catch {
|
|
12064
12064
|
}
|
|
@@ -16482,7 +16482,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
16482
16482
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
16483
16483
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
16484
16484
|
if (dirs.length === 0) return [];
|
|
16485
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
16485
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-WNZS26EV.js");
|
|
16486
16486
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
16487
16487
|
return errors;
|
|
16488
16488
|
}
|
|
@@ -17157,7 +17157,7 @@ async function call(onDone, context) {
|
|
|
17157
17157
|
ModelConfig,
|
|
17158
17158
|
{
|
|
17159
17159
|
onClose: () => {
|
|
17160
|
-
import("./model-
|
|
17160
|
+
import("./model-GBC2PBVJ.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
17161
17161
|
reloadModelManager2();
|
|
17162
17162
|
triggerModelConfigChange();
|
|
17163
17163
|
onDone();
|
|
@@ -25361,7 +25361,7 @@ function useStatusLine() {
|
|
|
25361
25361
|
// src/ui/components/PromptInput.tsx
|
|
25362
25362
|
async function interpretHashCommand(input) {
|
|
25363
25363
|
try {
|
|
25364
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
25364
|
+
const { queryQuick: queryQuick2 } = await import("./llm-T7C6QJWB.js");
|
|
25365
25365
|
const systemPrompt = [
|
|
25366
25366
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
25367
25367
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -25674,7 +25674,7 @@ function PromptInput({
|
|
|
25674
25674
|
if (messages2.length) {
|
|
25675
25675
|
if (mode === "bash") {
|
|
25676
25676
|
onQuery(messages2, newAbortController).then(async () => {
|
|
25677
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
25677
|
+
const { getCwd: getCwd2 } = await import("./state-MAVHRDNE.js");
|
|
25678
25678
|
setCurrentPwd(getCwd2());
|
|
25679
25679
|
});
|
|
25680
25680
|
} else {
|
|
@@ -32060,7 +32060,7 @@ import { homedir as homedir8 } from "os";
|
|
|
32060
32060
|
// src/commands/agents/generation.ts
|
|
32061
32061
|
import { randomUUID as randomUUID6 } from "crypto";
|
|
32062
32062
|
async function generateAgentWithClaude(prompt) {
|
|
32063
|
-
const { queryModel } = await import("./llm-
|
|
32063
|
+
const { queryModel } = await import("./llm-T7C6QJWB.js");
|
|
32064
32064
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
32065
32065
|
|
|
32066
32066
|
Return your response as a JSON object with exactly these fields:
|
|
@@ -35671,7 +35671,7 @@ It is critical that you mark tasks as completed as soon as you are done with a t
|
|
|
35671
35671
|
# Cognitive Safety & Sensing
|
|
35672
35672
|
1. **Modification Check**: Before editing, you MUST verify if the change is already present (e.g. use \`grep\` or \`read\`). Do not rely on memory from previous turns.
|
|
35673
35673
|
2. **Precise Targeting**: For code injection, prefer using LSP to find exact function boundaries, or Read the file to get unique context.
|
|
35674
|
-
3. **Artifact Verification**: After completing a complex task, verify the artifacts (e.g. check if files exist using \`ls\`).
|
|
35674
|
+
3. **Artifact Verification**: After completing a complex task, verify the artifacts (e.g. check if files exist using \`ls\` or \`glob\`).
|
|
35675
35675
|
4. **LSP Instinct**: Before modifying any code, you MUST first build structure context (structure tree \u2192 hotspot \u2192 Read). Use \`LSP documentSymbol\` or \`LSP goToDefinition\` only when you have a precise position and need to confirm exact range. Do NOT rely on line numbers from \`read_file\` alone as they may be outdated.
|
|
35676
35676
|
5. **Atomic Verification**: When editing code, especially in critical or complex files, you should strongly consider setting \`verify: true\` in the \`FileEditTool\`. This enables the tool to automatically detect syntax errors and ROLLBACK changes if they are invalid, preventing you from breaking the build.
|
|
35677
35677
|
6. **Semantic Search**: When searching for code concepts (e.g. "AuthLogic", "UserHandler") rather than exact filenames, prefer using \`GlobTool\` with \`semantic: true\`. This leverages LSP to find files by their content definitions.
|
|
@@ -35708,14 +35708,6 @@ user: is 11 a prime number?
|
|
|
35708
35708
|
assistant: Yes
|
|
35709
35709
|
</example>
|
|
35710
35710
|
|
|
35711
|
-
<example>
|
|
35712
|
-
user: locate where auth token refresh is implemented in a large repo
|
|
35713
|
-
assistant: [uses the LS tool to scan top-level structure]
|
|
35714
|
-
[uses the Glob tool to find candidate auth-related files]
|
|
35715
|
-
[uses the Grep tool to search for token refresh patterns]
|
|
35716
|
-
[uses the Read tool to inspect the most likely file]
|
|
35717
|
-
</example>
|
|
35718
|
-
|
|
35719
35711
|
<example>
|
|
35720
35712
|
user: find all .ts and .tsx files under src/
|
|
35721
35713
|
assistant: [uses the Glob tool to match files under src/]
|
|
@@ -35726,11 +35718,6 @@ user: How many golf balls fit inside a jetta?
|
|
|
35726
35718
|
assistant: 150000
|
|
35727
35719
|
</example>
|
|
35728
35720
|
|
|
35729
|
-
<example>
|
|
35730
|
-
user: delete the temp directory and all logs
|
|
35731
|
-
assistant: [uses Delete tool to remove 'temp' directory and all '*.log' files in one call]
|
|
35732
|
-
</example>
|
|
35733
|
-
|
|
35734
35721
|
<example>
|
|
35735
35722
|
user: list files in the directory src/
|
|
35736
35723
|
assistant: [uses the LS tool to list files and sees foo.c, bar.c, baz.c]
|
|
@@ -35768,8 +35755,8 @@ When making changes to files, first understand the file's code conventions. Mimi
|
|
|
35768
35755
|
|
|
35769
35756
|
${includeCodingInstructions ? `# Doing tasks
|
|
35770
35757
|
The user will primarily request you perform software engineering tasks. This includes solving bugs, adding new functionality, refactoring code, explaining code, and more. For these tasks the following steps are recommended:
|
|
35771
|
-
- Use TaskCreate to plan multi-step work and TaskUpdate to track progress; use TaskList/TaskGet to review
|
|
35772
|
-
- Use the available search tools to understand the codebase and the user's query. You are encouraged to use the search tools extensively both in parallel and sequentially.
|
|
35758
|
+
- Use TaskCreate VERY frequently to plan multi-step work required 2 or more distinct steps and TaskUpdate to track progress; use TaskList/TaskGet to review
|
|
35759
|
+
- Use the available search tools\uFF08e.g., Glob\u3001Grep\u3001LSP\u3001LS\uFF09 to understand the codebase and the user's query. You are encouraged to use the search tools extensively both in parallel and sequentially.
|
|
35773
35760
|
- Implement the solution using all tools available to you
|
|
35774
35761
|
- Verify the solution if possible with tests. NEVER assume specific test framework or test script. Check the README or search codebase to determine the testing approach.
|
|
35775
35762
|
- VERY IMPORTANT: When you have completed a task, you MUST run the lint and typecheck commands (eg. npm run lint, npm run typecheck, ruff, etc.) if they were provided to you to ensure your code is correct. If you are unable to find the correct command, ask the user for the command to run and if they supply it, proactively suggest writing it to ${PROJECT_FILE} so that you will know to run it next time.
|
|
@@ -35779,20 +35766,22 @@ NEVER commit changes unless the user explicitly asks you to. It is VERY IMPORTAN
|
|
|
35779
35766
|
` : ""}
|
|
35780
35767
|
|
|
35781
35768
|
# Tool usage policy
|
|
35782
|
-
- **Code Analysis & Exploration Priority**:For **complex** codebase exploration tasks (e.g., searching across 3+ directories, requiring multiple search iterations, or investigating cross-module patterns), prefer using the Task tool with Explore subagent. This isolates exploration context in a separate transcript.For simple tasks (reading known files, single-pattern searches), use Ls/Read/Glob/Grep directly for faster results.
|
|
35783
|
-
- **File Search Priority**:When doing file search, prefer to use the Task tool for open-ended, multi-step exploration to reduce context usage. For known paths or small scopes, prefer Ls/Lsp/Read/Glob/Grep directly.
|
|
35784
|
-
- **File System Exploration Priority**:For file system exploration, decide based on intent: if you need global structure/entry points, prefer LS first; if you have keywords or fuzzy paths, prefer Glob first. If results are too broad, use LS to narrow structure or combine with Grep/LSP. Only use Bash for executing scripts or binaries.
|
|
35785
35769
|
- You can call multiple tools in a single response. If you intend to call multiple tools and there are no dependencies between them, make all independent tool calls in parallel. Maximize use of parallel tool calls where possible to increase efficiency. However, if some tool calls depend on previous calls to inform dependent values, do NOT call these tools in parallel and instead call them sequentially. For instance, if one operation must complete before another starts, run these operations sequentially instead. Never use placeholders or guess missing parameters in tool calls.
|
|
35770
|
+
- **LS vs Glob "dir/*"**: LS provides complexity stats (directory/file ratio, max depth) to guide strategy; Glob "dir/*" is faster but no stats. Use LS when you need structural insights; use Glob for quick one-level checks.
|
|
35786
35771
|
- If the user specifies that they want you to run tools "in parallel", you MUST send a single message with multiple tool use content blocks.
|
|
35787
35772
|
- It is always better to speculatively read multiple files as a batch that are potentially useful.
|
|
35788
35773
|
- It is always better to speculatively perform multiple searches as a batch that are potentially useful.
|
|
35789
35774
|
|
|
35775
|
+
|
|
35790
35776
|
# Cognitive Search Strategy
|
|
35791
35777
|
1. **Concept Search**: WHEN searching for high-level concepts (e.g., "Auth Logic", "Payment Flow") OR when you are uncertain about exact naming, you MUST use \`semantic: true\` in Grep/Glob tools. This activates the LSP Workspace Symbol search which is resilient to typos and fuzzy matches.
|
|
35792
35778
|
- Example: \`GrepTool(pattern: "AuthFeatr", semantic: true)\` will find "AuthFeature".
|
|
35793
35779
|
- Example: \`GlobTool(pattern: "tests", semantic: true)\` will find test files based on project structure.
|
|
35794
35780
|
2. **Exact Identifier**: WHEN you know the precise class/function name (e.g., "UserProfile", "initDatabase"), use standard Grep/Glob without \`semantic\` flag.
|
|
35795
35781
|
3. **Exploration**: If standard search returns 0 results, AUTOMATICALLY retry with \`semantic: true\`.
|
|
35782
|
+
4. **File System Exploration Priority**:For file system exploration, decide based on intent: if you need global structure/entry points, prefer LS or Glob "dir/*" first; if you have keywords or fuzzy paths, prefer Glob first. If results are too broad, use LS or Glob "dir/*" to narrow structure or combine with Grep/LSP. Only use Bash for executing scripts or binaries.
|
|
35783
|
+
5. **Code Analysis & Exploration Priority**:For codebase exploration tasks (e.g., searching across 2 or more directories, requiring multiple search iterations, or investigating cross-module patterns), prefer using the Task tool with Explore subagent. This isolates exploration context in a separate transcript.For simple tasks (reading known files, single-pattern searches), use Glob/Grep/Ls/Read/Lsp directly for faster results.
|
|
35784
|
+
6. **File Search Priority**:When doing file search, prefer to use the Task tool for open-ended, multi-step exploration to reduce context usage. For known paths or small scopes, prefer Ls/Lsp/Read/Glob/Grep directly.
|
|
35796
35785
|
|
|
35797
35786
|
# Path Fragmentation Strategy
|
|
35798
35787
|
- Root -> Core Directory -> Secondary Modules
|