pybao-cli 1.4.49 → 1.4.51
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-6YEOSMEP.js +47 -0
- package/dist/{acp-FGRNDOS5.js → acp-2C774HUW.js} +31 -31
- package/dist/{agentsValidate-7CRDPNQ6.js → agentsValidate-RCXZBOU3.js} +7 -7
- package/dist/{ask-IR5W5M66.js → ask-EIO3Q6ED.js} +30 -30
- package/dist/{autoUpdater-MAEQZPST.js → autoUpdater-IIJMDPJE.js} +3 -3
- package/dist/{chunk-SHIPHOMT.js → chunk-5RX62PWR.js} +1 -1
- package/dist/{chunk-XHGUMYRL.js → chunk-6MFZG46W.js} +1 -1
- package/dist/{chunk-IQ3KORSP.js → chunk-DCSAQNHW.js} +4 -4
- package/dist/{chunk-YFBIVUDT.js → chunk-ESKTQXW6.js} +27 -3
- package/dist/chunk-ESKTQXW6.js.map +7 -0
- package/dist/{chunk-QW4VX3FW.js → chunk-G2FI43IB.js} +2 -2
- package/dist/{chunk-4Z6CCSED.js → chunk-GLS3ZXCS.js} +3 -3
- package/dist/{chunk-DEQQW4H6.js → chunk-GTP62T63.js} +3 -3
- package/dist/{chunk-UUGWQSET.js → chunk-HJDETBB6.js} +1 -1
- package/dist/{chunk-55QJI7OQ.js → chunk-HY24VLOS.js} +1 -1
- package/dist/{chunk-LZT5LZKG.js → chunk-KDKXQODT.js} +2 -2
- package/dist/{chunk-HFL2SOFQ.js → chunk-KNOCJVE6.js} +1 -1
- package/dist/{chunk-MCP52ZSD.js → chunk-L2FQX7IL.js} +419 -244
- package/dist/chunk-L2FQX7IL.js.map +7 -0
- package/dist/{chunk-6Y4OSP3J.js → chunk-LAFEZLTD.js} +307 -218
- package/dist/chunk-LAFEZLTD.js.map +7 -0
- package/dist/{chunk-EXEPX5H2.js → chunk-LAQQRRQR.js} +4 -4
- package/dist/{chunk-2U747SA5.js → chunk-LEQNJ73H.js} +3 -3
- package/dist/{chunk-NZTVG7YS.js → chunk-MZ6UJROW.js} +4 -4
- package/dist/{chunk-MLCISJKM.js → chunk-N6DXTYLR.js} +3 -3
- package/dist/{chunk-JF4AMPKU.js → chunk-OBFMPMGW.js} +2 -2
- package/dist/{chunk-A7VN6YXZ.js → chunk-OYCMMRZV.js} +1 -1
- package/dist/{chunk-XZNXY65J.js → chunk-PKAVBIO7.js} +1 -1
- package/dist/{chunk-S2AJAM6R.js → chunk-SNKLRBWT.js} +2 -2
- package/dist/{chunk-6GOKZQDV.js → chunk-SQJJRPIY.js} +5 -5
- package/dist/{chunk-72SGZIMD.js → chunk-TMFNSMVV.js} +6 -6
- package/dist/{chunk-D3Q32IUW.js → chunk-U7MPXQO4.js} +3 -3
- package/dist/{chunk-3P2EGWMK.js → chunk-VUILI5ED.js} +2 -2
- package/dist/{chunk-7FNDFUQH.js → chunk-WCKPMAYX.js} +1 -1
- package/dist/{chunk-PSI4PJ2H.js → chunk-WSN5UCPE.js} +1 -1
- package/dist/{chunk-AWML3QPK.js → chunk-YNVGW5VZ.js} +7 -7
- package/dist/{chunk-I5H5PGD5.js → chunk-YTUV273Y.js} +50 -122
- package/dist/{chunk-I5H5PGD5.js.map → chunk-YTUV273Y.js.map} +2 -2
- package/dist/{chunk-GFDV6FUG.js → chunk-ZQAKMVXR.js} +3 -3
- package/dist/{cli-PCLH664O.js → cli-JPS6PPHH.js} +91 -89
- package/dist/{cli-PCLH664O.js.map → cli-JPS6PPHH.js.map} +2 -2
- package/dist/commands-3IJYY2KF.js +51 -0
- package/dist/{config-EBW7GI65.js → config-7RFJBYCF.js} +4 -4
- package/dist/{context-4BILE3LL.js → context-L6IDU4ZF.js} +6 -6
- package/dist/{customCommands-GDDHYRJR.js → customCommands-2ZLDKEPS.js} +4 -4
- package/dist/{env-7V57CD26.js → env-KKHHZ47D.js} +2 -2
- package/dist/{file-3W4M7RXM.js → file-QGJRLWJ7.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-PIRKDSMO.js → llm-HHSKS5JE.js} +31 -31
- package/dist/{llmLazy-HWKMKZ5M.js → llmLazy-YV33JO4W.js} +1 -1
- package/dist/{loader-GYFX3MOO.js → loader-YCEP5CYE.js} +4 -4
- package/dist/{lsp-BDQVEVFK.js → lsp-TG3EZZOU.js} +6 -6
- package/dist/{lspAnchor-S45W3FAI.js → lspAnchor-T3544E7J.js} +6 -6
- package/dist/{mcp-ZHLSRCM5.js → mcp-SWYFI5FF.js} +7 -7
- package/dist/{mentionProcessor-GOS6BB64.js → mentionProcessor-IP6FAEXL.js} +7 -6
- package/dist/{mentionProcessor-GOS6BB64.js.map → mentionProcessor-IP6FAEXL.js.map} +1 -1
- package/dist/{messages-AX4MWPK5.js → messages-3B2ZJJKW.js} +1 -1
- package/dist/{model-QDQAUOQ6.js → model-HDJXCBKD.js} +5 -5
- package/dist/{openai-IBJPYBTX.js → openai-DF2BQT7X.js} +5 -5
- package/dist/{outputStyles-UNAE3KVB.js → outputStyles-GWUBSKDY.js} +4 -4
- package/dist/{pluginRuntime-QP6HTJ6Y.js → pluginRuntime-LKAAMJH2.js} +6 -6
- package/dist/{pluginValidation-C66MGV4E.js → pluginValidation-7GJA32YV.js} +6 -6
- package/dist/prompts-DB772NLS.js +53 -0
- package/dist/{pybAgentSessionLoad-GJQQFHVS.js → pybAgentSessionLoad-BGIX7L4O.js} +4 -4
- package/dist/{pybAgentSessionResume-2ZNOOEVX.js → pybAgentSessionResume-VKK6VZSA.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-PE2K75QJ.js → pybAgentStreamJsonSession-HDXJ4F5W.js} +1 -1
- package/dist/{pybHooks-22R4DOTT.js → pybHooks-LEIAZ7D6.js} +5 -5
- package/dist/query-LVPGQYDL.js +55 -0
- package/dist/{registry-ES4KTNF7.js → registry-C4V5AZ6N.js} +5 -5
- package/dist/{ripgrep-7BPG53S4.js → ripgrep-PWIRRS2Q.js} +3 -3
- package/dist/{skillMarketplace-O5TAM4G6.js → skillMarketplace-GZN6RWUY.js} +3 -3
- package/dist/{state-3OM3WWZ2.js → state-T7WQKFBG.js} +2 -2
- package/dist/{theme-7MFSQQ5Z.js → theme-CLYLDSCI.js} +5 -5
- package/dist/{toolPermissionSettings-KKMWAVTJ.js → toolPermissionSettings-UYHSUTC5.js} +6 -6
- package/dist/tools-SEWCFM5P.js +52 -0
- package/dist/{userInput-3BYMTC52.js → userInput-KZXH5O7V.js} +32 -32
- package/package.json +27 -3
- package/dist/REPL-PRQAXE32.js +0 -47
- package/dist/chunk-6Y4OSP3J.js.map +0 -7
- package/dist/chunk-MCP52ZSD.js.map +0 -7
- package/dist/chunk-YFBIVUDT.js.map +0 -7
- package/dist/commands-Y7GVRV66.js +0 -51
- package/dist/prompts-LNJ2SJQ7.js +0 -53
- package/dist/query-2ZFLZTV6.js +0 -55
- package/dist/tools-ME4EX5CM.js +0 -52
- /package/dist/{REPL-PRQAXE32.js.map → REPL-6YEOSMEP.js.map} +0 -0
- /package/dist/{acp-FGRNDOS5.js.map → acp-2C774HUW.js.map} +0 -0
- /package/dist/{agentsValidate-7CRDPNQ6.js.map → agentsValidate-RCXZBOU3.js.map} +0 -0
- /package/dist/{ask-IR5W5M66.js.map → ask-EIO3Q6ED.js.map} +0 -0
- /package/dist/{autoUpdater-MAEQZPST.js.map → autoUpdater-IIJMDPJE.js.map} +0 -0
- /package/dist/{chunk-SHIPHOMT.js.map → chunk-5RX62PWR.js.map} +0 -0
- /package/dist/{chunk-XHGUMYRL.js.map → chunk-6MFZG46W.js.map} +0 -0
- /package/dist/{chunk-IQ3KORSP.js.map → chunk-DCSAQNHW.js.map} +0 -0
- /package/dist/{chunk-QW4VX3FW.js.map → chunk-G2FI43IB.js.map} +0 -0
- /package/dist/{chunk-4Z6CCSED.js.map → chunk-GLS3ZXCS.js.map} +0 -0
- /package/dist/{chunk-DEQQW4H6.js.map → chunk-GTP62T63.js.map} +0 -0
- /package/dist/{chunk-UUGWQSET.js.map → chunk-HJDETBB6.js.map} +0 -0
- /package/dist/{chunk-55QJI7OQ.js.map → chunk-HY24VLOS.js.map} +0 -0
- /package/dist/{chunk-LZT5LZKG.js.map → chunk-KDKXQODT.js.map} +0 -0
- /package/dist/{chunk-HFL2SOFQ.js.map → chunk-KNOCJVE6.js.map} +0 -0
- /package/dist/{chunk-EXEPX5H2.js.map → chunk-LAQQRRQR.js.map} +0 -0
- /package/dist/{chunk-2U747SA5.js.map → chunk-LEQNJ73H.js.map} +0 -0
- /package/dist/{chunk-NZTVG7YS.js.map → chunk-MZ6UJROW.js.map} +0 -0
- /package/dist/{chunk-MLCISJKM.js.map → chunk-N6DXTYLR.js.map} +0 -0
- /package/dist/{chunk-JF4AMPKU.js.map → chunk-OBFMPMGW.js.map} +0 -0
- /package/dist/{chunk-A7VN6YXZ.js.map → chunk-OYCMMRZV.js.map} +0 -0
- /package/dist/{chunk-XZNXY65J.js.map → chunk-PKAVBIO7.js.map} +0 -0
- /package/dist/{chunk-S2AJAM6R.js.map → chunk-SNKLRBWT.js.map} +0 -0
- /package/dist/{chunk-6GOKZQDV.js.map → chunk-SQJJRPIY.js.map} +0 -0
- /package/dist/{chunk-72SGZIMD.js.map → chunk-TMFNSMVV.js.map} +0 -0
- /package/dist/{chunk-D3Q32IUW.js.map → chunk-U7MPXQO4.js.map} +0 -0
- /package/dist/{chunk-3P2EGWMK.js.map → chunk-VUILI5ED.js.map} +0 -0
- /package/dist/{chunk-7FNDFUQH.js.map → chunk-WCKPMAYX.js.map} +0 -0
- /package/dist/{chunk-PSI4PJ2H.js.map → chunk-WSN5UCPE.js.map} +0 -0
- /package/dist/{chunk-AWML3QPK.js.map → chunk-YNVGW5VZ.js.map} +0 -0
- /package/dist/{chunk-GFDV6FUG.js.map → chunk-ZQAKMVXR.js.map} +0 -0
- /package/dist/{commands-Y7GVRV66.js.map → commands-3IJYY2KF.js.map} +0 -0
- /package/dist/{config-EBW7GI65.js.map → config-7RFJBYCF.js.map} +0 -0
- /package/dist/{context-4BILE3LL.js.map → context-L6IDU4ZF.js.map} +0 -0
- /package/dist/{customCommands-GDDHYRJR.js.map → customCommands-2ZLDKEPS.js.map} +0 -0
- /package/dist/{env-7V57CD26.js.map → env-KKHHZ47D.js.map} +0 -0
- /package/dist/{file-3W4M7RXM.js.map → file-QGJRLWJ7.js.map} +0 -0
- /package/dist/{llm-PIRKDSMO.js.map → llm-HHSKS5JE.js.map} +0 -0
- /package/dist/{llmLazy-HWKMKZ5M.js.map → llmLazy-YV33JO4W.js.map} +0 -0
- /package/dist/{loader-GYFX3MOO.js.map → loader-YCEP5CYE.js.map} +0 -0
- /package/dist/{lsp-BDQVEVFK.js.map → lsp-TG3EZZOU.js.map} +0 -0
- /package/dist/{lspAnchor-S45W3FAI.js.map → lspAnchor-T3544E7J.js.map} +0 -0
- /package/dist/{mcp-ZHLSRCM5.js.map → mcp-SWYFI5FF.js.map} +0 -0
- /package/dist/{messages-AX4MWPK5.js.map → messages-3B2ZJJKW.js.map} +0 -0
- /package/dist/{model-QDQAUOQ6.js.map → model-HDJXCBKD.js.map} +0 -0
- /package/dist/{openai-IBJPYBTX.js.map → openai-DF2BQT7X.js.map} +0 -0
- /package/dist/{outputStyles-UNAE3KVB.js.map → outputStyles-GWUBSKDY.js.map} +0 -0
- /package/dist/{pluginRuntime-QP6HTJ6Y.js.map → pluginRuntime-LKAAMJH2.js.map} +0 -0
- /package/dist/{pluginValidation-C66MGV4E.js.map → pluginValidation-7GJA32YV.js.map} +0 -0
- /package/dist/{prompts-LNJ2SJQ7.js.map → prompts-DB772NLS.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-GJQQFHVS.js.map → pybAgentSessionLoad-BGIX7L4O.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-2ZNOOEVX.js.map → pybAgentSessionResume-VKK6VZSA.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-PE2K75QJ.js.map → pybAgentStreamJsonSession-HDXJ4F5W.js.map} +0 -0
- /package/dist/{pybHooks-22R4DOTT.js.map → pybHooks-LEIAZ7D6.js.map} +0 -0
- /package/dist/{query-2ZFLZTV6.js.map → query-LVPGQYDL.js.map} +0 -0
- /package/dist/{registry-ES4KTNF7.js.map → registry-C4V5AZ6N.js.map} +0 -0
- /package/dist/{ripgrep-7BPG53S4.js.map → ripgrep-PWIRRS2Q.js.map} +0 -0
- /package/dist/{skillMarketplace-O5TAM4G6.js.map → skillMarketplace-GZN6RWUY.js.map} +0 -0
- /package/dist/{state-3OM3WWZ2.js.map → state-T7WQKFBG.js.map} +0 -0
- /package/dist/{theme-7MFSQQ5Z.js.map → theme-CLYLDSCI.js.map} +0 -0
- /package/dist/{toolPermissionSettings-KKMWAVTJ.js.map → toolPermissionSettings-UYHSUTC5.js.map} +0 -0
- /package/dist/{tools-ME4EX5CM.js.map → tools-SEWCFM5P.js.map} +0 -0
- /package/dist/{userInput-3BYMTC52.js.map → userInput-KZXH5O7V.js.map} +0 -0
|
@@ -3,18 +3,18 @@ const require = __pybCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
formatValidationResult,
|
|
5
5
|
validatePluginOrMarketplacePath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-N6DXTYLR.js";
|
|
7
7
|
import {
|
|
8
8
|
loadPybAgentSessionMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KNOCJVE6.js";
|
|
10
10
|
import {
|
|
11
11
|
listPybAgentSessions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OYCMMRZV.js";
|
|
13
13
|
import {
|
|
14
14
|
appendSessionCustomTitleRecord,
|
|
15
15
|
appendSessionJsonlFromMessage,
|
|
16
16
|
appendSessionTagRecord
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SNKLRBWT.js";
|
|
18
18
|
import {
|
|
19
19
|
drainHookSystemPromptAdditions,
|
|
20
20
|
getHookTranscriptPath,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
runStopHooks,
|
|
27
27
|
runUserPromptSubmitHooks,
|
|
28
28
|
updateHookTranscriptForMessages
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-TMFNSMVV.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_OUTPUT_STYLE,
|
|
32
32
|
getAvailableOutputStyles,
|
|
@@ -35,16 +35,16 @@ import {
|
|
|
35
35
|
getOutputStyleSystemPromptAdditions,
|
|
36
36
|
resolveOutputStyleName,
|
|
37
37
|
setCurrentOutputStyle
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SQJJRPIY.js";
|
|
39
39
|
import {
|
|
40
40
|
fetchCustomModels,
|
|
41
41
|
getModelFeatures
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-VUILI5ED.js";
|
|
43
43
|
import {
|
|
44
44
|
queryLLM,
|
|
45
45
|
queryQuick,
|
|
46
46
|
verifyApiKey
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-LAQQRRQR.js";
|
|
48
48
|
import {
|
|
49
49
|
DEFAULT_TIMEOUT_MS,
|
|
50
50
|
FallbackToolUseRejectedMessage,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
listMCPServers,
|
|
59
59
|
loadMergedSettings,
|
|
60
60
|
normalizeSandboxRuntimeConfigFromSettings
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-YNVGW5VZ.js";
|
|
62
62
|
import {
|
|
63
63
|
addMarketplace,
|
|
64
64
|
disableSkillPlugin,
|
|
@@ -71,11 +71,17 @@ import {
|
|
|
71
71
|
refreshMarketplaceAsync,
|
|
72
72
|
removeMarketplace,
|
|
73
73
|
uninstallSkillPlugin
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-WCKPMAYX.js";
|
|
75
|
+
import {
|
|
76
|
+
getCustomCommandDirectories,
|
|
77
|
+
hasCustomCommands,
|
|
78
|
+
loadCustomCommands,
|
|
79
|
+
reloadCustomCommands
|
|
80
|
+
} from "./chunk-OBFMPMGW.js";
|
|
75
81
|
import {
|
|
76
82
|
loadToolPermissionContextFromDisk,
|
|
77
83
|
persistToolPermissionUpdateToDisk
|
|
78
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-GLS3ZXCS.js";
|
|
79
85
|
import {
|
|
80
86
|
applyToolPermissionContextUpdate,
|
|
81
87
|
applyToolPermissionContextUpdates,
|
|
@@ -90,12 +96,11 @@ import {
|
|
|
90
96
|
isTodoCompatEnabled,
|
|
91
97
|
listTasks,
|
|
92
98
|
migrateTodosToTasks,
|
|
93
|
-
readTaskEventLog,
|
|
94
99
|
resetReminderSession,
|
|
95
100
|
setTodos,
|
|
96
101
|
syncTodosToTasks,
|
|
97
102
|
systemReminderService
|
|
98
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-L2FQX7IL.js";
|
|
99
104
|
import {
|
|
100
105
|
getSessionState
|
|
101
106
|
} from "./chunk-ERMQRV55.js";
|
|
@@ -104,7 +109,10 @@ import {
|
|
|
104
109
|
getActiveAgents,
|
|
105
110
|
getAgentByType,
|
|
106
111
|
getAllAgents
|
|
107
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-KDKXQODT.js";
|
|
113
|
+
import {
|
|
114
|
+
getSessionPlugins
|
|
115
|
+
} from "./chunk-BJSWTHRM.js";
|
|
108
116
|
import {
|
|
109
117
|
API_ERROR_MESSAGE_PREFIX,
|
|
110
118
|
CANCEL_MESSAGE,
|
|
@@ -134,16 +142,12 @@ import {
|
|
|
134
142
|
processUserInput,
|
|
135
143
|
reorderMessages,
|
|
136
144
|
stripSystemMessages
|
|
137
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-5RX62PWR.js";
|
|
138
146
|
import {
|
|
139
147
|
getRequestStatus,
|
|
140
148
|
setRequestStatus,
|
|
141
149
|
subscribeRequestStatus
|
|
142
150
|
} from "./chunk-3DFBSQIT.js";
|
|
143
|
-
import {
|
|
144
|
-
getPybAgentSessionId,
|
|
145
|
-
setPybAgentSessionId
|
|
146
|
-
} from "./chunk-B6IMQJZM.js";
|
|
147
151
|
import {
|
|
148
152
|
formatTotalCost,
|
|
149
153
|
getTotalAPIDuration,
|
|
@@ -164,7 +168,11 @@ import {
|
|
|
164
168
|
normalizeFilePath,
|
|
165
169
|
readTextContent,
|
|
166
170
|
writeTextContent
|
|
167
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-G2FI43IB.js";
|
|
172
|
+
import {
|
|
173
|
+
getPybAgentSessionId,
|
|
174
|
+
setPybAgentSessionId
|
|
175
|
+
} from "./chunk-B6IMQJZM.js";
|
|
168
176
|
import {
|
|
169
177
|
parseBlockEdits
|
|
170
178
|
} from "./chunk-QWIBSCDN.js";
|
|
@@ -174,26 +182,17 @@ import {
|
|
|
174
182
|
ParserRegistry,
|
|
175
183
|
initParser,
|
|
176
184
|
loadLanguage
|
|
177
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-DCSAQNHW.js";
|
|
178
186
|
import {
|
|
179
187
|
getSettingsFileCandidates,
|
|
180
188
|
loadSettingsWithLegacyFallback,
|
|
181
189
|
readSettingsFile
|
|
182
|
-
} from "./chunk-
|
|
183
|
-
import {
|
|
184
|
-
getCustomCommandDirectories,
|
|
185
|
-
hasCustomCommands,
|
|
186
|
-
loadCustomCommands,
|
|
187
|
-
reloadCustomCommands
|
|
188
|
-
} from "./chunk-JF4AMPKU.js";
|
|
189
|
-
import {
|
|
190
|
-
getSessionPlugins
|
|
191
|
-
} from "./chunk-BJSWTHRM.js";
|
|
190
|
+
} from "./chunk-WSN5UCPE.js";
|
|
192
191
|
import {
|
|
193
192
|
ModelManager,
|
|
194
193
|
getModelManager,
|
|
195
194
|
isDefaultSlowAndCapableModel
|
|
196
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-ZQAKMVXR.js";
|
|
197
196
|
import {
|
|
198
197
|
getCodeStyle,
|
|
199
198
|
getContext,
|
|
@@ -201,13 +200,13 @@ import {
|
|
|
201
200
|
getIsGit,
|
|
202
201
|
getProjectDocs,
|
|
203
202
|
getProjectStructureStatisticsBlock
|
|
204
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-MZ6UJROW.js";
|
|
205
204
|
import {
|
|
206
205
|
ripGrep
|
|
207
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-PKAVBIO7.js";
|
|
208
207
|
import {
|
|
209
208
|
getTheme
|
|
210
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-HY24VLOS.js";
|
|
211
210
|
import {
|
|
212
211
|
DEFAULT_GLOBAL_CONFIG,
|
|
213
212
|
enableConfigs,
|
|
@@ -220,7 +219,7 @@ import {
|
|
|
220
219
|
saveGlobalConfig,
|
|
221
220
|
setAllPointersToModel,
|
|
222
221
|
setModelPointer
|
|
223
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-LEQNJ73H.js";
|
|
224
223
|
import {
|
|
225
224
|
AbortError
|
|
226
225
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -229,7 +228,7 @@ import {
|
|
|
229
228
|
getCurrentRequest,
|
|
230
229
|
logUserFriendly,
|
|
231
230
|
markPhase
|
|
232
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-6MFZG46W.js";
|
|
233
232
|
import {
|
|
234
233
|
ASCII_LOGO,
|
|
235
234
|
BunShell,
|
|
@@ -270,10 +269,10 @@ import {
|
|
|
270
269
|
setCwd,
|
|
271
270
|
shouldApplyToolOutputTruncation,
|
|
272
271
|
truncateToolOutput
|
|
273
|
-
} from "./chunk-
|
|
272
|
+
} from "./chunk-HJDETBB6.js";
|
|
274
273
|
import {
|
|
275
274
|
MACRO
|
|
276
|
-
} from "./chunk-
|
|
275
|
+
} from "./chunk-ESKTQXW6.js";
|
|
277
276
|
import {
|
|
278
277
|
__export
|
|
279
278
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -454,7 +453,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
454
453
|
var getCommandPrefix = memoize(
|
|
455
454
|
async (command4, abortSignal) => {
|
|
456
455
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
457
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
456
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-HHSKS5JE.js");
|
|
458
457
|
const response = await queryQuick2({
|
|
459
458
|
systemPrompt,
|
|
460
459
|
userPrompt,
|
|
@@ -4256,7 +4255,7 @@ function formatParseError(error) {
|
|
|
4256
4255
|
return error instanceof Error ? error.message : String(error);
|
|
4257
4256
|
}
|
|
4258
4257
|
async function defaultGateQuery(args) {
|
|
4259
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4258
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-HHSKS5JE.js");
|
|
4260
4259
|
const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
|
|
4261
4260
|
const messages = [
|
|
4262
4261
|
{
|
|
@@ -6571,7 +6570,7 @@ var FileEditTool = {
|
|
|
6571
6570
|
const originalFileContent = currentFileContent;
|
|
6572
6571
|
let totalPatch = [];
|
|
6573
6572
|
const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
|
|
6574
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6573
|
+
const { findLspAnchor } = await import("./lspAnchor-T3544E7J.js");
|
|
6575
6574
|
for (const op of editOperations) {
|
|
6576
6575
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6577
6576
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -11206,7 +11205,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11206
11205
|
}
|
|
11207
11206
|
saveGlobalConfig(config2);
|
|
11208
11207
|
try {
|
|
11209
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11208
|
+
const { resetAnthropicClient } = await import("./llm-HHSKS5JE.js");
|
|
11210
11209
|
resetAnthropicClient();
|
|
11211
11210
|
} catch {
|
|
11212
11211
|
}
|
|
@@ -15488,7 +15487,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15488
15487
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15489
15488
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15490
15489
|
if (dirs.length === 0) return [];
|
|
15491
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15490
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-LKAAMJH2.js");
|
|
15492
15491
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15493
15492
|
return errors;
|
|
15494
15493
|
}
|
|
@@ -16157,7 +16156,7 @@ async function call(onDone, context) {
|
|
|
16157
16156
|
ModelConfig,
|
|
16158
16157
|
{
|
|
16159
16158
|
onClose: () => {
|
|
16160
|
-
import("./model-
|
|
16159
|
+
import("./model-HDJXCBKD.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16161
16160
|
reloadModelManager2();
|
|
16162
16161
|
triggerModelConfigChange();
|
|
16163
16162
|
onDone();
|
|
@@ -24458,7 +24457,7 @@ function useStatusLine() {
|
|
|
24458
24457
|
// src/ui/components/PromptInput.tsx
|
|
24459
24458
|
async function interpretHashCommand(input) {
|
|
24460
24459
|
try {
|
|
24461
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
24460
|
+
const { queryQuick: queryQuick2 } = await import("./llm-HHSKS5JE.js");
|
|
24462
24461
|
const systemPrompt = [
|
|
24463
24462
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
24464
24463
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -24771,7 +24770,7 @@ function PromptInput({
|
|
|
24771
24770
|
if (messages2.length) {
|
|
24772
24771
|
if (mode === "bash") {
|
|
24773
24772
|
onQuery(messages2, newAbortController).then(async () => {
|
|
24774
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
24773
|
+
const { getCwd: getCwd2 } = await import("./state-T7WQKFBG.js");
|
|
24775
24774
|
setCurrentPwd(getCwd2());
|
|
24776
24775
|
});
|
|
24777
24776
|
} else {
|
|
@@ -25483,14 +25482,9 @@ function getLatestMtime(dir) {
|
|
|
25483
25482
|
}
|
|
25484
25483
|
}
|
|
25485
25484
|
function getFingerprint(paths) {
|
|
25486
|
-
const indexMtime = existsSync13(paths.indexPath) ? statSync12(paths.indexPath).mtimeMs : 0;
|
|
25487
25485
|
const listMtime = getLatestMtime(paths.listDir);
|
|
25488
25486
|
const tasksMtime = getLatestMtime(paths.tasksDir);
|
|
25489
|
-
return `${
|
|
25490
|
-
}
|
|
25491
|
-
function getEventOffset(paths) {
|
|
25492
|
-
if (!existsSync13(paths.eventsPath)) return 0;
|
|
25493
|
-
return statSync12(paths.eventsPath).size;
|
|
25487
|
+
return `${listMtime}-${tasksMtime}`;
|
|
25494
25488
|
}
|
|
25495
25489
|
function buildReadySet(listId) {
|
|
25496
25490
|
const tasks = listTasks({ listId });
|
|
@@ -25552,16 +25546,6 @@ function handleChange(entry) {
|
|
|
25552
25546
|
function startPolling(entry, intervalMs) {
|
|
25553
25547
|
entry.pollingTimer = setInterval(() => handleChange(entry), intervalMs);
|
|
25554
25548
|
}
|
|
25555
|
-
function stopFallbackWatcher(entry) {
|
|
25556
|
-
if (entry.watcher) {
|
|
25557
|
-
entry.watcher.close();
|
|
25558
|
-
entry.watcher = void 0;
|
|
25559
|
-
}
|
|
25560
|
-
if (entry.pollingTimer) {
|
|
25561
|
-
clearInterval(entry.pollingTimer);
|
|
25562
|
-
entry.pollingTimer = void 0;
|
|
25563
|
-
}
|
|
25564
|
-
}
|
|
25565
25549
|
function startFallbackWatcher(entry) {
|
|
25566
25550
|
if (entry.watcher || entry.pollingTimer) return;
|
|
25567
25551
|
const forcePolling = process.env.PYB_TASK_WATCHER_POLLING === "1";
|
|
@@ -25583,54 +25567,6 @@ function startFallbackWatcher(entry) {
|
|
|
25583
25567
|
startPolling(entry, getPollIntervalMs());
|
|
25584
25568
|
}
|
|
25585
25569
|
}
|
|
25586
|
-
function handleEventStream(entry) {
|
|
25587
|
-
try {
|
|
25588
|
-
const { events, nextOffset } = readTaskEventLog(
|
|
25589
|
-
entry.listId,
|
|
25590
|
-
entry.lastEventOffset
|
|
25591
|
-
);
|
|
25592
|
-
if (nextOffset !== entry.lastEventOffset) {
|
|
25593
|
-
entry.lastEventOffset = nextOffset;
|
|
25594
|
-
}
|
|
25595
|
-
if (events.length === 0) return;
|
|
25596
|
-
refreshSignals(entry);
|
|
25597
|
-
} catch (error) {
|
|
25598
|
-
logError(error);
|
|
25599
|
-
debug.warn("TASK_WATCHER_EVENT_STREAM_FAILED", {
|
|
25600
|
-
listId: entry.listId,
|
|
25601
|
-
error: error instanceof Error ? error.message : String(error)
|
|
25602
|
-
});
|
|
25603
|
-
if (entry.eventPollingTimer) {
|
|
25604
|
-
clearInterval(entry.eventPollingTimer);
|
|
25605
|
-
entry.eventPollingTimer = void 0;
|
|
25606
|
-
}
|
|
25607
|
-
startFallbackWatcher(entry);
|
|
25608
|
-
startEventSwitchPolling(entry);
|
|
25609
|
-
}
|
|
25610
|
-
}
|
|
25611
|
-
function startEventStreamPolling(entry, intervalMs) {
|
|
25612
|
-
entry.eventPollingTimer = setInterval(
|
|
25613
|
-
() => handleEventStream(entry),
|
|
25614
|
-
intervalMs
|
|
25615
|
-
);
|
|
25616
|
-
}
|
|
25617
|
-
function switchToEventStream(entry) {
|
|
25618
|
-
if (entry.eventPollingTimer) return;
|
|
25619
|
-
stopFallbackWatcher(entry);
|
|
25620
|
-
entry.lastEventOffset = 0;
|
|
25621
|
-
startEventStreamPolling(entry, getPollIntervalMs());
|
|
25622
|
-
if (entry.eventSwitchTimer) {
|
|
25623
|
-
clearInterval(entry.eventSwitchTimer);
|
|
25624
|
-
entry.eventSwitchTimer = void 0;
|
|
25625
|
-
}
|
|
25626
|
-
}
|
|
25627
|
-
function startEventSwitchPolling(entry) {
|
|
25628
|
-
if (entry.eventSwitchTimer) return;
|
|
25629
|
-
entry.eventSwitchTimer = setInterval(() => {
|
|
25630
|
-
if (!existsSync13(entry.eventsPath)) return;
|
|
25631
|
-
switchToEventStream(entry);
|
|
25632
|
-
}, getPollIntervalMs());
|
|
25633
|
-
}
|
|
25634
25570
|
function startWatchingTaskList(listId) {
|
|
25635
25571
|
const paths = getTaskListPaths(listId);
|
|
25636
25572
|
if (taskWatchers.has(paths.listId)) return;
|
|
@@ -25639,19 +25575,11 @@ function startWatchingTaskList(listId) {
|
|
|
25639
25575
|
listId: paths.listId,
|
|
25640
25576
|
listDir: paths.listDir,
|
|
25641
25577
|
tasksDir: paths.tasksDir,
|
|
25642
|
-
indexPath: paths.indexPath,
|
|
25643
|
-
eventsPath: paths.eventsPath,
|
|
25644
25578
|
lastFingerprint: getFingerprint(paths),
|
|
25645
|
-
lastReadyIds: buildReadySet(paths.listId)
|
|
25646
|
-
lastEventOffset: getEventOffset(paths)
|
|
25579
|
+
lastReadyIds: buildReadySet(paths.listId)
|
|
25647
25580
|
};
|
|
25648
25581
|
taskWatchers.set(paths.listId, entry);
|
|
25649
|
-
if (existsSync13(paths.eventsPath)) {
|
|
25650
|
-
startEventStreamPolling(entry, getPollIntervalMs());
|
|
25651
|
-
return;
|
|
25652
|
-
}
|
|
25653
25582
|
startFallbackWatcher(entry);
|
|
25654
|
-
startEventSwitchPolling(entry);
|
|
25655
25583
|
}
|
|
25656
25584
|
|
|
25657
25585
|
// src/utils/session/fileRecoveryCore.ts
|
|
@@ -27904,7 +27832,7 @@ import { homedir as homedir7 } from "os";
|
|
|
27904
27832
|
// src/commands/agents/generation.ts
|
|
27905
27833
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
27906
27834
|
async function generateAgentWithClaude(prompt) {
|
|
27907
|
-
const { queryModel } = await import("./llm-
|
|
27835
|
+
const { queryModel } = await import("./llm-HHSKS5JE.js");
|
|
27908
27836
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
27909
27837
|
|
|
27910
27838
|
Return your response as a JSON object with exactly these fields:
|
|
@@ -31907,7 +31835,7 @@ There are additional slash commands and flags available to the user. If the user
|
|
|
31907
31835
|
To give feedback, users should ${MACRO.ISSUES_EXPLAINER}.
|
|
31908
31836
|
|
|
31909
31837
|
# Task Management
|
|
31910
|
-
You have access to the Task tools (TaskCreate, TaskUpdate, TaskList, TaskGet) to help you manage and plan tasks.
|
|
31838
|
+
You have access to the Task tools (TaskCreate, TaskUpdate, TaskList, TaskGet) to help you manage and plan tasks. Use these tools VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.
|
|
31911
31839
|
These tools are powerful for planning tasks and for breaking down larger complex tasks 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/owner/blockedBy.
|
|
31912
31840
|
For multi-step plans, you may create the list first and add blockedBy later via TaskUpdate. You can create a structured task list first and set up the task dependencies blockedBy later via TaskUpdate to ensure the previous structured task list completed in the right order.
|
|
31913
31841
|
Single-task work does not require a dependency chain. When dependencies are ready, set metadata.planFinalized="true" with TaskUpdate to trigger global validation.
|