pybao-cli 1.5.26 → 1.5.27
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-2MVVACJ4.js +51 -0
- package/dist/{acp-2ADDKTRM.js → acp-OVG5TVCA.js} +31 -31
- package/dist/{agentsValidate-OVPBAEZK.js → agentsValidate-4DRWMI4Z.js} +7 -7
- package/dist/{ask-Q26NIN3B.js → ask-5SLEQ2EQ.js} +30 -30
- package/dist/{autoUpdater-TVOBGQY2.js → autoUpdater-MISJO5SK.js} +3 -3
- package/dist/{chunk-CGENEGDI.js → chunk-2OIS3IOT.js} +1 -1
- package/dist/{chunk-YLBWF7D2.js → chunk-2PCYBLRU.js} +1 -1
- package/dist/{chunk-YLBWF7D2.js.map → chunk-2PCYBLRU.js.map} +1 -1
- package/dist/{chunk-EJPGPTY6.js → chunk-3TSHBDOT.js} +4 -4
- package/dist/{chunk-ZIVDHAMU.js → chunk-5NDEEU2M.js} +2 -2
- package/dist/{chunk-66OAFWT3.js → chunk-AQHMBWCP.js} +3 -3
- package/dist/{chunk-TLHF4J72.js → chunk-AYTJPA7R.js} +1 -1
- package/dist/{chunk-5IDQK3OD.js → chunk-BCBCDVTD.js} +4 -4
- package/dist/{chunk-7MOPJWTA.js → chunk-C4SEDCT2.js} +1 -1
- package/dist/{chunk-OKEIG3UC.js → chunk-CF2HMCCA.js} +1 -1
- package/dist/{chunk-GZBJPLTJ.js → chunk-CSFD7IRP.js} +4 -4
- package/dist/{chunk-FBHVDOJT.js → chunk-DH7BCAQE.js} +3 -3
- package/dist/{chunk-6F5PJYF4.js → chunk-FGDHTSZ5.js} +15 -15
- package/dist/{chunk-NYOAEEVC.js → chunk-GLSKZ5DV.js} +4 -4
- package/dist/{chunk-JPPQJANN.js → chunk-HJKEC6NQ.js} +3 -3
- package/dist/{chunk-EKZGVP53.js → chunk-HLOKI243.js} +3 -3
- package/dist/{chunk-FVQTUBDM.js → chunk-LIJYUN67.js} +2 -2
- package/dist/{chunk-CESDUQBF.js → chunk-MMONR7LE.js} +1 -1
- package/dist/{chunk-DG7LOR3Q.js → chunk-MP4XVCRG.js} +3 -3
- package/dist/{chunk-WXZUYR6V.js → chunk-O3MOOXJY.js} +1 -1
- package/dist/{chunk-QFXHC754.js → chunk-PKEID2XD.js} +2 -2
- package/dist/{chunk-PFFVDJ52.js → chunk-RA67ZZKO.js} +3 -3
- package/dist/{chunk-GYSKHPUA.js → chunk-RAEL4VJQ.js} +2 -2
- package/dist/{chunk-LP3EJS77.js → chunk-TAH64UDU.js} +2 -2
- package/dist/{chunk-F3BMDQBD.js → chunk-VAZFU3IP.js} +1 -1
- package/dist/{chunk-GASKENL5.js → chunk-VJGFSH2Y.js} +1 -1
- package/dist/{chunk-US44CZRL.js → chunk-VZQPBLDY.js} +41 -52
- package/dist/{chunk-US44CZRL.js.map → chunk-VZQPBLDY.js.map} +2 -2
- package/dist/{chunk-6SRO6NZW.js → chunk-WPTVSLF3.js} +1 -1
- package/dist/{chunk-HAFYP74Q.js → chunk-XECX77NR.js} +1 -1
- package/dist/{chunk-HI6YJWFI.js → chunk-XOVT3JJQ.js} +2 -2
- package/dist/{chunk-X3BQA3YE.js → chunk-YAGIR75K.js} +3 -3
- package/dist/{chunk-E27P7H7H.js → chunk-YONMG3RX.js} +3 -3
- package/dist/{chunk-SK7JIWXO.js → chunk-ZKUTGGO2.js} +1 -1
- package/dist/{cli-QO4CZMZN.js → cli-SZPSZVPV.js} +91 -91
- package/dist/commands-5PT2EWAQ.js +55 -0
- package/dist/{config-2LQL44YC.js → config-E6F35FCM.js} +4 -4
- package/dist/{context-BRQF7CQG.js → context-WCMKUTGC.js} +6 -6
- package/dist/{conversationPersistence-K5Q3ECQV.js → conversationPersistence-LCFY2HIV.js} +3 -3
- package/dist/{conversationTracker-WUDYHEVC.js → conversationTracker-7S7G7HMN.js} +4 -4
- package/dist/{customCommands-PU3SY76P.js → customCommands-QKMAK4HL.js} +4 -4
- package/dist/{env-ZOU5EXCO.js → env-IXLDDHCY.js} +2 -2
- package/dist/{file-I63YOZ2P.js → file-ABFDCQJM.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-CTECH6IG.js → llm-GKPE3VQ4.js} +31 -31
- package/dist/{llmLazy-RAULGERZ.js → llmLazy-XZ74GSFE.js} +1 -1
- package/dist/{loader-W26YZI25.js → loader-EMZ7WAHK.js} +4 -4
- package/dist/{lsp-QECQTZHX.js → lsp-C2IWGQOU.js} +6 -6
- package/dist/{lspAnchor-A6JOWYTF.js → lspAnchor-IXJCWADI.js} +6 -6
- package/dist/{mcp-JR5GCFVI.js → mcp-3PIE3ZCR.js} +7 -7
- package/dist/{mentionProcessor-43TRFZTC.js → mentionProcessor-UD63IEXB.js} +5 -5
- package/dist/{messages-6B56FWB6.js → messages-XAJKUGU2.js} +1 -1
- package/dist/{model-KVO3Q5GQ.js → model-HKGG6SBC.js} +5 -5
- package/dist/{openai-CMN6BQ26.js → openai-3F3TRG5D.js} +5 -5
- package/dist/{outputStyles-S4EHIOBW.js → outputStyles-6YHVYBUS.js} +4 -4
- package/dist/{pluginRuntime-WP7C7MEW.js → pluginRuntime-D2DXOOLP.js} +6 -6
- package/dist/{pluginValidation-YNVAU2ZN.js → pluginValidation-S3AK6HSX.js} +6 -6
- package/dist/prompts-FBPBDXIU.js +57 -0
- package/dist/{pybAgentSessionLoad-EWFESYAH.js → pybAgentSessionLoad-SL43DZPU.js} +4 -4
- package/dist/{pybAgentSessionResume-BRGB733X.js → pybAgentSessionResume-UXIDDJKS.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-54U673FL.js → pybAgentStreamJsonSession-2ONZSQZ3.js} +1 -1
- package/dist/{pybHooks-IQDSHJJZ.js → pybHooks-3QRK5HZ7.js} +4 -4
- package/dist/query-JLVHWYPO.js +55 -0
- package/dist/{registry-HZRLFYJP.js → registry-KVDFKFEI.js} +5 -5
- package/dist/{ripgrep-USRMP7QC.js → ripgrep-LGHYO57X.js} +3 -3
- package/dist/{skillMarketplace-H6L3SYVR.js → skillMarketplace-BJMMPQQ5.js} +3 -3
- package/dist/{state-6C746QMJ.js → state-LYF2VE4H.js} +2 -2
- package/dist/{theme-AXEVVVRT.js → theme-DK7ATLDH.js} +5 -5
- package/dist/{toolPermissionSettings-XJT57SRI.js → toolPermissionSettings-QLHE27AW.js} +6 -6
- package/dist/tools-6XLBCNVD.js +56 -0
- package/dist/{userInput-FE6BKWOK.js → userInput-QH25PON2.js} +32 -32
- package/package.json +1 -1
- package/dist/REPL-IGB7EIAW.js +0 -51
- package/dist/commands-RMFLUJUJ.js +0 -55
- package/dist/prompts-WRRAU4DE.js +0 -57
- package/dist/query-LG26S5UL.js +0 -55
- package/dist/tools-DRXBA76X.js +0 -56
- /package/dist/{REPL-IGB7EIAW.js.map → REPL-2MVVACJ4.js.map} +0 -0
- /package/dist/{acp-2ADDKTRM.js.map → acp-OVG5TVCA.js.map} +0 -0
- /package/dist/{agentsValidate-OVPBAEZK.js.map → agentsValidate-4DRWMI4Z.js.map} +0 -0
- /package/dist/{ask-Q26NIN3B.js.map → ask-5SLEQ2EQ.js.map} +0 -0
- /package/dist/{autoUpdater-TVOBGQY2.js.map → autoUpdater-MISJO5SK.js.map} +0 -0
- /package/dist/{chunk-CGENEGDI.js.map → chunk-2OIS3IOT.js.map} +0 -0
- /package/dist/{chunk-EJPGPTY6.js.map → chunk-3TSHBDOT.js.map} +0 -0
- /package/dist/{chunk-ZIVDHAMU.js.map → chunk-5NDEEU2M.js.map} +0 -0
- /package/dist/{chunk-66OAFWT3.js.map → chunk-AQHMBWCP.js.map} +0 -0
- /package/dist/{chunk-TLHF4J72.js.map → chunk-AYTJPA7R.js.map} +0 -0
- /package/dist/{chunk-5IDQK3OD.js.map → chunk-BCBCDVTD.js.map} +0 -0
- /package/dist/{chunk-7MOPJWTA.js.map → chunk-C4SEDCT2.js.map} +0 -0
- /package/dist/{chunk-OKEIG3UC.js.map → chunk-CF2HMCCA.js.map} +0 -0
- /package/dist/{chunk-GZBJPLTJ.js.map → chunk-CSFD7IRP.js.map} +0 -0
- /package/dist/{chunk-FBHVDOJT.js.map → chunk-DH7BCAQE.js.map} +0 -0
- /package/dist/{chunk-6F5PJYF4.js.map → chunk-FGDHTSZ5.js.map} +0 -0
- /package/dist/{chunk-NYOAEEVC.js.map → chunk-GLSKZ5DV.js.map} +0 -0
- /package/dist/{chunk-JPPQJANN.js.map → chunk-HJKEC6NQ.js.map} +0 -0
- /package/dist/{chunk-EKZGVP53.js.map → chunk-HLOKI243.js.map} +0 -0
- /package/dist/{chunk-FVQTUBDM.js.map → chunk-LIJYUN67.js.map} +0 -0
- /package/dist/{chunk-CESDUQBF.js.map → chunk-MMONR7LE.js.map} +0 -0
- /package/dist/{chunk-DG7LOR3Q.js.map → chunk-MP4XVCRG.js.map} +0 -0
- /package/dist/{chunk-WXZUYR6V.js.map → chunk-O3MOOXJY.js.map} +0 -0
- /package/dist/{chunk-QFXHC754.js.map → chunk-PKEID2XD.js.map} +0 -0
- /package/dist/{chunk-PFFVDJ52.js.map → chunk-RA67ZZKO.js.map} +0 -0
- /package/dist/{chunk-GYSKHPUA.js.map → chunk-RAEL4VJQ.js.map} +0 -0
- /package/dist/{chunk-LP3EJS77.js.map → chunk-TAH64UDU.js.map} +0 -0
- /package/dist/{chunk-F3BMDQBD.js.map → chunk-VAZFU3IP.js.map} +0 -0
- /package/dist/{chunk-GASKENL5.js.map → chunk-VJGFSH2Y.js.map} +0 -0
- /package/dist/{chunk-6SRO6NZW.js.map → chunk-WPTVSLF3.js.map} +0 -0
- /package/dist/{chunk-HAFYP74Q.js.map → chunk-XECX77NR.js.map} +0 -0
- /package/dist/{chunk-HI6YJWFI.js.map → chunk-XOVT3JJQ.js.map} +0 -0
- /package/dist/{chunk-X3BQA3YE.js.map → chunk-YAGIR75K.js.map} +0 -0
- /package/dist/{chunk-E27P7H7H.js.map → chunk-YONMG3RX.js.map} +0 -0
- /package/dist/{chunk-SK7JIWXO.js.map → chunk-ZKUTGGO2.js.map} +0 -0
- /package/dist/{cli-QO4CZMZN.js.map → cli-SZPSZVPV.js.map} +0 -0
- /package/dist/{commands-RMFLUJUJ.js.map → commands-5PT2EWAQ.js.map} +0 -0
- /package/dist/{config-2LQL44YC.js.map → config-E6F35FCM.js.map} +0 -0
- /package/dist/{context-BRQF7CQG.js.map → context-WCMKUTGC.js.map} +0 -0
- /package/dist/{conversationPersistence-K5Q3ECQV.js.map → conversationPersistence-LCFY2HIV.js.map} +0 -0
- /package/dist/{conversationTracker-WUDYHEVC.js.map → conversationTracker-7S7G7HMN.js.map} +0 -0
- /package/dist/{customCommands-PU3SY76P.js.map → customCommands-QKMAK4HL.js.map} +0 -0
- /package/dist/{env-ZOU5EXCO.js.map → env-IXLDDHCY.js.map} +0 -0
- /package/dist/{file-I63YOZ2P.js.map → file-ABFDCQJM.js.map} +0 -0
- /package/dist/{llm-CTECH6IG.js.map → llm-GKPE3VQ4.js.map} +0 -0
- /package/dist/{llmLazy-RAULGERZ.js.map → llmLazy-XZ74GSFE.js.map} +0 -0
- /package/dist/{loader-W26YZI25.js.map → loader-EMZ7WAHK.js.map} +0 -0
- /package/dist/{lsp-QECQTZHX.js.map → lsp-C2IWGQOU.js.map} +0 -0
- /package/dist/{lspAnchor-A6JOWYTF.js.map → lspAnchor-IXJCWADI.js.map} +0 -0
- /package/dist/{mcp-JR5GCFVI.js.map → mcp-3PIE3ZCR.js.map} +0 -0
- /package/dist/{mentionProcessor-43TRFZTC.js.map → mentionProcessor-UD63IEXB.js.map} +0 -0
- /package/dist/{messages-6B56FWB6.js.map → messages-XAJKUGU2.js.map} +0 -0
- /package/dist/{model-KVO3Q5GQ.js.map → model-HKGG6SBC.js.map} +0 -0
- /package/dist/{openai-CMN6BQ26.js.map → openai-3F3TRG5D.js.map} +0 -0
- /package/dist/{outputStyles-S4EHIOBW.js.map → outputStyles-6YHVYBUS.js.map} +0 -0
- /package/dist/{pluginRuntime-WP7C7MEW.js.map → pluginRuntime-D2DXOOLP.js.map} +0 -0
- /package/dist/{pluginValidation-YNVAU2ZN.js.map → pluginValidation-S3AK6HSX.js.map} +0 -0
- /package/dist/{prompts-WRRAU4DE.js.map → prompts-FBPBDXIU.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-EWFESYAH.js.map → pybAgentSessionLoad-SL43DZPU.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-BRGB733X.js.map → pybAgentSessionResume-UXIDDJKS.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-54U673FL.js.map → pybAgentStreamJsonSession-2ONZSQZ3.js.map} +0 -0
- /package/dist/{pybHooks-IQDSHJJZ.js.map → pybHooks-3QRK5HZ7.js.map} +0 -0
- /package/dist/{query-LG26S5UL.js.map → query-JLVHWYPO.js.map} +0 -0
- /package/dist/{registry-HZRLFYJP.js.map → registry-KVDFKFEI.js.map} +0 -0
- /package/dist/{ripgrep-USRMP7QC.js.map → ripgrep-LGHYO57X.js.map} +0 -0
- /package/dist/{skillMarketplace-H6L3SYVR.js.map → skillMarketplace-BJMMPQQ5.js.map} +0 -0
- /package/dist/{state-6C746QMJ.js.map → state-LYF2VE4H.js.map} +0 -0
- /package/dist/{theme-AXEVVVRT.js.map → theme-DK7ATLDH.js.map} +0 -0
- /package/dist/{toolPermissionSettings-XJT57SRI.js.map → toolPermissionSettings-QLHE27AW.js.map} +0 -0
- /package/dist/{tools-DRXBA76X.js.map → tools-6XLBCNVD.js.map} +0 -0
- /package/dist/{userInput-FE6BKWOK.js.map → userInput-QH25PON2.js.map} +0 -0
|
@@ -41,57 +41,57 @@ import {
|
|
|
41
41
|
runWithTaskListEnv,
|
|
42
42
|
runWithTaskListId,
|
|
43
43
|
updateTask
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-VZQPBLDY.js";
|
|
45
45
|
import {
|
|
46
46
|
getCurrentSessionId
|
|
47
47
|
} from "./chunk-XKYHFZEC.js";
|
|
48
48
|
import {
|
|
49
49
|
queryLLM
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-CSFD7IRP.js";
|
|
51
51
|
import {
|
|
52
52
|
FallbackToolUseRejectedMessage,
|
|
53
53
|
MCPTool,
|
|
54
54
|
getClients,
|
|
55
55
|
getMCPTools
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-GLSKZ5DV.js";
|
|
57
57
|
import {
|
|
58
58
|
emitReminderEvent
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-XOVT3JJQ.js";
|
|
60
60
|
import {
|
|
61
61
|
getActiveAgents,
|
|
62
62
|
getAgentByType,
|
|
63
63
|
getAvailableAgentTypes
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-RAEL4VJQ.js";
|
|
65
65
|
import {
|
|
66
66
|
INTERRUPT_MESSAGE,
|
|
67
67
|
createAssistantMessage,
|
|
68
68
|
createUserMessageFromBlocks,
|
|
69
69
|
createUserMessageFromText,
|
|
70
70
|
getLastAssistantMessageId
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-2OIS3IOT.js";
|
|
72
72
|
import {
|
|
73
73
|
formatDuration,
|
|
74
74
|
formatNumber
|
|
75
75
|
} from "./chunk-OUXHGDLH.js";
|
|
76
76
|
import {
|
|
77
77
|
getAbsolutePath
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-PKEID2XD.js";
|
|
79
79
|
import {
|
|
80
80
|
LspFacade,
|
|
81
81
|
formatDiagnosticsPretty
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-BCBCDVTD.js";
|
|
83
83
|
import {
|
|
84
84
|
getModelManager
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-RA67ZZKO.js";
|
|
86
86
|
import {
|
|
87
87
|
getContext
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-3TSHBDOT.js";
|
|
89
89
|
import {
|
|
90
90
|
getTheme
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-VJGFSH2Y.js";
|
|
92
92
|
import {
|
|
93
93
|
debug
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-AYTJPA7R.js";
|
|
95
95
|
import {
|
|
96
96
|
BunShell,
|
|
97
97
|
MEMORY_DIR,
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
overwriteLog,
|
|
104
104
|
readTaskOutput,
|
|
105
105
|
resolveXdgDataPath
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-XECX77NR.js";
|
|
107
107
|
|
|
108
108
|
// src/tools/index.ts
|
|
109
109
|
import { memoize as memoize2 } from "lodash-es";
|
|
@@ -784,7 +784,7 @@ async function analyzeOutputWithLsp(output, exitCode) {
|
|
|
784
784
|
if (exitCode !== 0 || errorCount > 0 || warningCount > 0) {
|
|
785
785
|
try {
|
|
786
786
|
const { isAbsolute: isAbsolute2, resolve: resolve3 } = await import("path");
|
|
787
|
-
const { getSessionRoot: getSessionRoot2 } = await import("./state-
|
|
787
|
+
const { getSessionRoot: getSessionRoot2 } = await import("./state-LYF2VE4H.js");
|
|
788
788
|
const lines = output.split("\n");
|
|
789
789
|
const uniqueFiles = /* @__PURE__ */ new Set();
|
|
790
790
|
const lspSuggestions = [];
|
|
@@ -1154,7 +1154,7 @@ var DeleteTool = {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
if (!force) {
|
|
1156
1156
|
try {
|
|
1157
|
-
const { LspFacade: LspFacade2 } = await import("./lsp-
|
|
1157
|
+
const { LspFacade: LspFacade2 } = await import("./lsp-C2IWGQOU.js");
|
|
1158
1158
|
const referenceDetail = await LspFacade2.checkFileReferences(fullPath);
|
|
1159
1159
|
if (referenceDetail) {
|
|
1160
1160
|
failedItems.push(
|
|
@@ -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-MMONR7LE.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-VJGFSH2Y.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-YAGIR75K.js";
|
|
23
23
|
import {
|
|
24
24
|
PRODUCT_COMMAND,
|
|
25
25
|
PRODUCT_NAME,
|
|
26
26
|
getCwd,
|
|
27
27
|
logMCPError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XECX77NR.js";
|
|
29
29
|
|
|
30
30
|
// src/services/mcp/client.ts
|
|
31
31
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
getSettingsFileCandidates,
|
|
9
9
|
loadSettingsWithLegacyFallback,
|
|
10
10
|
saveSettingsToPrimaryAndSyncLegacy
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MMONR7LE.js";
|
|
12
12
|
import {
|
|
13
13
|
getCurrentProjectConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YAGIR75K.js";
|
|
15
15
|
import {
|
|
16
16
|
getCwd,
|
|
17
17
|
logError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XECX77NR.js";
|
|
19
19
|
|
|
20
20
|
// src/utils/permissions/toolPermissionSettings.ts
|
|
21
21
|
function uniqueStrings(value) {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getSessionStoreFlags,
|
|
9
9
|
recordSessionSqlDualWriteFailure,
|
|
10
10
|
recordSessionSqlDualWriteSuccess
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CF2HMCCA.js";
|
|
12
12
|
import {
|
|
13
13
|
getPybAgentSessionId
|
|
14
14
|
} from "./chunk-B6IMQJZM.js";
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
PLAN_SLUG_VERBS,
|
|
19
19
|
getCwd,
|
|
20
20
|
resolveXdgDataPath
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XECX77NR.js";
|
|
22
22
|
import {
|
|
23
23
|
MACRO
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2PCYBLRU.js";
|
|
25
25
|
|
|
26
26
|
// src/utils/protocol/pybAgentSessionResume.ts
|
|
27
27
|
import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync2, statSync as statSync2 } from "fs";
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
getSettingsFileCandidates,
|
|
8
8
|
loadSettingsWithLegacyFallback,
|
|
9
9
|
saveSettingsToPrimaryAndSyncLegacy
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MMONR7LE.js";
|
|
11
11
|
import {
|
|
12
12
|
getSessionPlugins
|
|
13
13
|
} from "./chunk-BJSWTHRM.js";
|
|
14
14
|
import {
|
|
15
15
|
getCwd,
|
|
16
16
|
getXdgConfigDir
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XECX77NR.js";
|
|
18
18
|
|
|
19
19
|
// src/services/ui/outputStyles.ts
|
|
20
20
|
import figures from "figures";
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
} from "./chunk-B6IMQJZM.js";
|
|
6
6
|
import {
|
|
7
7
|
loadSettingsWithLegacyFallback
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MMONR7LE.js";
|
|
9
9
|
import {
|
|
10
10
|
getSessionPlugins
|
|
11
11
|
} from "./chunk-BJSWTHRM.js";
|
|
12
12
|
import {
|
|
13
13
|
getCwd,
|
|
14
14
|
logError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XECX77NR.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-XZ74GSFE.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
|
createSessionSqlStore
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CF2HMCCA.js";
|
|
6
6
|
|
|
7
7
|
// src/utils/protocol/pybAgentSessionLoad.ts
|
|
8
8
|
function loadPybAgentSessionLogData(args) {
|
|
@@ -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-C4SEDCT2.js";
|
|
6
6
|
import {
|
|
7
7
|
getCwd,
|
|
8
8
|
logError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XECX77NR.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/fs/file.ts
|
|
12
12
|
import {
|
|
@@ -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-YAGIR75K.js";
|
|
7
7
|
import {
|
|
8
8
|
debug
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AYTJPA7R.js";
|
|
10
10
|
import {
|
|
11
11
|
logError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XECX77NR.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/model/index.ts
|
|
15
15
|
import { memoize } from "lodash-es";
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
} from "./chunk-BJSWTHRM.js";
|
|
9
9
|
import {
|
|
10
10
|
debug
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AYTJPA7R.js";
|
|
12
12
|
import {
|
|
13
13
|
getCwd,
|
|
14
14
|
getXdgConfigDir,
|
|
15
15
|
logError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XECX77NR.js";
|
|
17
17
|
|
|
18
18
|
// src/utils/agent/loader.ts
|
|
19
19
|
import {
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
} from "./chunk-XKYHFZEC.js";
|
|
7
7
|
import {
|
|
8
8
|
getGlobalConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YAGIR75K.js";
|
|
10
10
|
import {
|
|
11
11
|
debug,
|
|
12
12
|
getCurrentRequest,
|
|
13
13
|
logAPIError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AYTJPA7R.js";
|
|
15
15
|
|
|
16
16
|
// src/services/ai/openai.ts
|
|
17
17
|
import { ProxyAgent, fetch } from "undici";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
appendSessionJsonlFromMessage,
|
|
6
6
|
appendSessionTagRecord,
|
|
7
7
|
listPybAgentSessions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HLOKI243.js";
|
|
9
9
|
import {
|
|
10
10
|
formatValidationResult,
|
|
11
11
|
validatePluginOrMarketplacePath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DH7BCAQE.js";
|
|
13
13
|
import {
|
|
14
14
|
ConversationTracker,
|
|
15
15
|
appendFinishState,
|
|
@@ -17,16 +17,16 @@ import {
|
|
|
17
17
|
getConversationTrackerForContext,
|
|
18
18
|
isFinishComplete,
|
|
19
19
|
mapFinishReason
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZKUTGGO2.js";
|
|
21
21
|
import {
|
|
22
22
|
FileSystemConversationPersistence
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WPTVSLF3.js";
|
|
24
24
|
import {
|
|
25
25
|
beginReplSessionScope
|
|
26
26
|
} from "./chunk-F4AXICO7.js";
|
|
27
27
|
import {
|
|
28
28
|
loadPybAgentSessionMessages
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-O3MOOXJY.js";
|
|
30
30
|
import {
|
|
31
31
|
drainHookSystemPromptAdditions,
|
|
32
32
|
getHookTranscriptPath,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
runStopHooks,
|
|
39
39
|
runUserPromptSubmitHooks,
|
|
40
40
|
updateHookTranscriptForMessages
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-MP4XVCRG.js";
|
|
42
42
|
import {
|
|
43
43
|
DEFAULT_OUTPUT_STYLE,
|
|
44
44
|
getAvailableOutputStyles,
|
|
@@ -47,11 +47,11 @@ import {
|
|
|
47
47
|
getOutputStyleSystemPromptAdditions,
|
|
48
48
|
resolveOutputStyleName,
|
|
49
49
|
setCurrentOutputStyle
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-LIJYUN67.js";
|
|
51
51
|
import {
|
|
52
52
|
fetchCustomModels,
|
|
53
53
|
getModelFeatures
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-TAH64UDU.js";
|
|
55
55
|
import {
|
|
56
56
|
getSessionState
|
|
57
57
|
} from "./chunk-XKYHFZEC.js";
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
queryLLM,
|
|
60
60
|
queryQuick,
|
|
61
61
|
verifyApiKey
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-CSFD7IRP.js";
|
|
63
63
|
import {
|
|
64
64
|
DEFAULT_TIMEOUT_MS,
|
|
65
65
|
FallbackToolUseRejectedMessage,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
listMCPServers,
|
|
74
74
|
loadMergedSettings,
|
|
75
75
|
normalizeSandboxRuntimeConfigFromSettings
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-GLSKZ5DV.js";
|
|
77
77
|
import {
|
|
78
78
|
addMarketplace,
|
|
79
79
|
disableSkillPlugin,
|
|
@@ -86,11 +86,11 @@ import {
|
|
|
86
86
|
refreshMarketplaceAsync,
|
|
87
87
|
removeMarketplace,
|
|
88
88
|
uninstallSkillPlugin
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-VAZFU3IP.js";
|
|
90
90
|
import {
|
|
91
91
|
loadToolPermissionContextFromDisk,
|
|
92
92
|
persistToolPermissionUpdateToDisk
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-HJKEC6NQ.js";
|
|
94
94
|
import {
|
|
95
95
|
applyToolPermissionContextUpdate,
|
|
96
96
|
applyToolPermissionContextUpdates,
|
|
@@ -101,13 +101,13 @@ import {
|
|
|
101
101
|
generateSystemReminders,
|
|
102
102
|
resetReminderSession,
|
|
103
103
|
systemReminderService
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-XOVT3JJQ.js";
|
|
105
105
|
import {
|
|
106
106
|
clearAgentCache,
|
|
107
107
|
getActiveAgents,
|
|
108
108
|
getAgentByType,
|
|
109
109
|
getAllAgents
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-RAEL4VJQ.js";
|
|
111
111
|
import {
|
|
112
112
|
API_ERROR_MESSAGE_PREFIX,
|
|
113
113
|
CANCEL_MESSAGE,
|
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
reorderMessages,
|
|
145
145
|
resetAutoCompactTelemetry,
|
|
146
146
|
stripSystemMessages
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-2OIS3IOT.js";
|
|
148
148
|
import {
|
|
149
149
|
getRequestStatus,
|
|
150
150
|
setRequestStatus,
|
|
@@ -174,7 +174,7 @@ import {
|
|
|
174
174
|
normalizeFilePath,
|
|
175
175
|
readTextContent,
|
|
176
176
|
writeTextContent
|
|
177
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-PKEID2XD.js";
|
|
178
178
|
import {
|
|
179
179
|
parseBlockEdits
|
|
180
180
|
} from "./chunk-QWIBSCDN.js";
|
|
@@ -184,18 +184,18 @@ import {
|
|
|
184
184
|
ParserRegistry,
|
|
185
185
|
initParser,
|
|
186
186
|
loadLanguage
|
|
187
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-BCBCDVTD.js";
|
|
188
188
|
import {
|
|
189
189
|
getSettingsFileCandidates,
|
|
190
190
|
loadSettingsWithLegacyFallback,
|
|
191
191
|
readSettingsFile
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-MMONR7LE.js";
|
|
193
193
|
import {
|
|
194
194
|
getCustomCommandDirectories,
|
|
195
195
|
hasCustomCommands,
|
|
196
196
|
loadCustomCommands,
|
|
197
197
|
reloadCustomCommands
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-5NDEEU2M.js";
|
|
199
199
|
import {
|
|
200
200
|
getSessionPlugins
|
|
201
201
|
} from "./chunk-BJSWTHRM.js";
|
|
@@ -204,7 +204,7 @@ import {
|
|
|
204
204
|
buildModelProfileKey,
|
|
205
205
|
getModelManager,
|
|
206
206
|
isDefaultSlowAndCapableModel
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-RA67ZZKO.js";
|
|
208
208
|
import {
|
|
209
209
|
getCodeStyle,
|
|
210
210
|
getContext,
|
|
@@ -212,16 +212,16 @@ import {
|
|
|
212
212
|
getIsGit,
|
|
213
213
|
getProjectDocs,
|
|
214
214
|
getProjectStructureStatisticsBlock
|
|
215
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-3TSHBDOT.js";
|
|
216
216
|
import {
|
|
217
217
|
getRipgrepPath,
|
|
218
218
|
getRipgrepPolicyMode,
|
|
219
219
|
resolveRipgrepPolicy,
|
|
220
220
|
ripGrep
|
|
221
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-C4SEDCT2.js";
|
|
222
222
|
import {
|
|
223
223
|
getTheme
|
|
224
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-VJGFSH2Y.js";
|
|
225
225
|
import {
|
|
226
226
|
DEFAULT_GLOBAL_CONFIG,
|
|
227
227
|
enableConfigs,
|
|
@@ -234,7 +234,7 @@ import {
|
|
|
234
234
|
saveGlobalConfig,
|
|
235
235
|
setAllPointersToModel,
|
|
236
236
|
setModelPointer
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-YAGIR75K.js";
|
|
238
238
|
import {
|
|
239
239
|
AbortError
|
|
240
240
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -243,7 +243,7 @@ import {
|
|
|
243
243
|
getCurrentRequest,
|
|
244
244
|
logUserFriendly,
|
|
245
245
|
markPhase
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-AYTJPA7R.js";
|
|
247
247
|
import {
|
|
248
248
|
ASCII_LOGO,
|
|
249
249
|
BunShell,
|
|
@@ -284,10 +284,10 @@ import {
|
|
|
284
284
|
setCwd,
|
|
285
285
|
shouldApplyToolOutputTruncation,
|
|
286
286
|
truncateToolOutput
|
|
287
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-XECX77NR.js";
|
|
288
288
|
import {
|
|
289
289
|
MACRO
|
|
290
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-2PCYBLRU.js";
|
|
291
291
|
import {
|
|
292
292
|
__export
|
|
293
293
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -468,7 +468,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
468
468
|
var getCommandPrefix = memoize(
|
|
469
469
|
async (command4, abortSignal) => {
|
|
470
470
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
471
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
471
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-GKPE3VQ4.js");
|
|
472
472
|
const response = await queryQuick2({
|
|
473
473
|
systemPrompt,
|
|
474
474
|
userPrompt,
|
|
@@ -4270,7 +4270,7 @@ function formatParseError(error) {
|
|
|
4270
4270
|
return error instanceof Error ? error.message : String(error);
|
|
4271
4271
|
}
|
|
4272
4272
|
async function defaultGateQuery(args) {
|
|
4273
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4273
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-GKPE3VQ4.js");
|
|
4274
4274
|
const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
|
|
4275
4275
|
const messages = [
|
|
4276
4276
|
{
|
|
@@ -6663,7 +6663,7 @@ var FileEditTool = {
|
|
|
6663
6663
|
const originalFileContent = currentFileContent;
|
|
6664
6664
|
let totalPatch = [];
|
|
6665
6665
|
const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
|
|
6666
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6666
|
+
const { findLspAnchor } = await import("./lspAnchor-IXJCWADI.js");
|
|
6667
6667
|
for (const op of editOperations) {
|
|
6668
6668
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6669
6669
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -12148,7 +12148,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
12148
12148
|
}
|
|
12149
12149
|
saveGlobalConfig(config2);
|
|
12150
12150
|
try {
|
|
12151
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
12151
|
+
const { resetAnthropicClient } = await import("./llm-GKPE3VQ4.js");
|
|
12152
12152
|
resetAnthropicClient();
|
|
12153
12153
|
} catch {
|
|
12154
12154
|
}
|
|
@@ -16572,7 +16572,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
16572
16572
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
16573
16573
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
16574
16574
|
if (dirs.length === 0) return [];
|
|
16575
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
16575
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-D2DXOOLP.js");
|
|
16576
16576
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
16577
16577
|
return errors;
|
|
16578
16578
|
}
|
|
@@ -17247,7 +17247,7 @@ async function call(onDone, context) {
|
|
|
17247
17247
|
ModelConfig,
|
|
17248
17248
|
{
|
|
17249
17249
|
onClose: () => {
|
|
17250
|
-
import("./model-
|
|
17250
|
+
import("./model-HKGG6SBC.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
17251
17251
|
reloadModelManager2();
|
|
17252
17252
|
triggerModelConfigChange();
|
|
17253
17253
|
onDone();
|
|
@@ -25848,7 +25848,7 @@ function useStatusLine() {
|
|
|
25848
25848
|
// src/ui/components/PromptInput.tsx
|
|
25849
25849
|
async function interpretHashCommand(input) {
|
|
25850
25850
|
try {
|
|
25851
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
25851
|
+
const { queryQuick: queryQuick2 } = await import("./llm-GKPE3VQ4.js");
|
|
25852
25852
|
const systemPrompt = [
|
|
25853
25853
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
25854
25854
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -26161,7 +26161,7 @@ function PromptInput({
|
|
|
26161
26161
|
if (messages2.length) {
|
|
26162
26162
|
if (mode === "bash") {
|
|
26163
26163
|
onQuery(messages2, newAbortController).then(async () => {
|
|
26164
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
26164
|
+
const { getCwd: getCwd2 } = await import("./state-LYF2VE4H.js");
|
|
26165
26165
|
setCurrentPwd(getCwd2());
|
|
26166
26166
|
});
|
|
26167
26167
|
} else {
|
|
@@ -28825,15 +28825,6 @@ function resolveOverflowJointConfig(toolUseContext) {
|
|
|
28825
28825
|
return { enabled, headroomRatio, minHeadroom, maxHeadroom };
|
|
28826
28826
|
}
|
|
28827
28827
|
async function shouldAutoCompact(messages, toolUseContext) {
|
|
28828
|
-
if (messages.length < 3) {
|
|
28829
|
-
return {
|
|
28830
|
-
shouldCompact: false,
|
|
28831
|
-
diagnostics: {
|
|
28832
|
-
reasonCode: "insufficient_messages",
|
|
28833
|
-
messageCount: messages.length
|
|
28834
|
-
}
|
|
28835
|
-
};
|
|
28836
|
-
}
|
|
28837
28828
|
const tokenCount = countTokens(messages);
|
|
28838
28829
|
const thresholds = await calculateThresholds(tokenCount);
|
|
28839
28830
|
const jointConfig = resolveOverflowJointConfig(toolUseContext);
|
|
@@ -28856,6 +28847,7 @@ async function shouldAutoCompact(messages, toolUseContext) {
|
|
|
28856
28847
|
return {
|
|
28857
28848
|
shouldCompact,
|
|
28858
28849
|
diagnostics: {
|
|
28850
|
+
messageCount: messages.length,
|
|
28859
28851
|
tokenCount,
|
|
28860
28852
|
contextLimit: thresholds.contextLimit,
|
|
28861
28853
|
autoCompactThreshold: thresholds.autoCompactThreshold,
|
|
@@ -34210,7 +34202,7 @@ import { homedir as homedir8 } from "os";
|
|
|
34210
34202
|
// src/commands/agents/generation.ts
|
|
34211
34203
|
import { randomUUID as randomUUID6 } from "crypto";
|
|
34212
34204
|
async function generateAgentWithClaude(prompt) {
|
|
34213
|
-
const { queryModel } = await import("./llm-
|
|
34205
|
+
const { queryModel } = await import("./llm-GKPE3VQ4.js");
|
|
34214
34206
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
34215
34207
|
|
|
34216
34208
|
Return your response as a JSON object with exactly these fields:
|
|
@@ -37810,16 +37802,13 @@ ${disableSlashCommands ? "" : `Here are useful slash commands users can run to i
|
|
|
37810
37802
|
There are additional slash commands and flags available to the user. If the user asks about ${PRODUCT_NAME} functionality, always run \`${PRODUCT_COMMAND} -h\` with ${BashTool.name} to see supported commands and flags. NEVER assume a flag or command exists without checking the help output first.`}
|
|
37811
37803
|
To give feedback, users should ${MACRO.ISSUES_EXPLAINER}.
|
|
37812
37804
|
|
|
37813
|
-
# Task Management
|
|
37814
|
-
|
|
37815
|
-
These tools are powerful for planning tasks and for breaking down larger complex tasks\uFF08When a task requires 2 or more distinct steps or actions\uFF09 into smaller steps. For multi-step work, start by creating tasks with TaskCreate, then use TaskUpdate as you progress. Use TaskList to review readiness and blockers, and TaskGet for details. TaskList only returns id/subject/status/blockedBy.
|
|
37816
|
-
|
|
37817
|
-
Single-task work does not require a dependency chain. When dependencies are ready, set metadata.planFinalized="true" with TaskUpdate to trigger global validation.
|
|
37805
|
+
# Task Management System
|
|
37806
|
+
Use these tools (TaskCreate, TaskUpdate, TaskList, TaskGet) VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.
|
|
37807
|
+
These tools are powerful for planning tasks and for breaking down larger complex tasks\uFF08When a task requires 2 or more distinct steps or actions\uFF09 into smaller steps. For multi-step work, start by creating tasks with TaskCreate, then use TaskUpdate as you progress and dependencies. Use TaskList to review readiness and blockers, and TaskGet for details. TaskList only returns id/subject/status/blockedBy.
|
|
37808
|
+
When dependencies are ready, set metadata.planFinalized="true" with TaskUpdate to trigger global validation.
|
|
37818
37809
|
|
|
37819
37810
|
**Dynamic Planning**: You are encouraged to update your plan dynamically. If you encounter unexpected issues or new requirements, pause the current task, add new items (e.g., "Fix dependency issue"), and adjust your plan accordingly.
|
|
37820
|
-
|
|
37821
37811
|
Task records use subject as the single primary name, with activeForm provided by the caller to describe the in-progress action. Keep description and blockedBy independent in JSON; any joining is only for terminal rendering. blockedBy should always be present as an array (empty when not used). Ordering is by task id; do not use priority fields.
|
|
37822
|
-
|
|
37823
37812
|
It is critical that you mark tasks as completed as soon as you are done with a task. Do not batch up multiple tasks before marking them as completed.
|
|
37824
37813
|
|
|
37825
37814
|
# Cognitive Safety & Sensing
|