pybao-cli 1.5.22 → 1.5.23
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-CI5ET6VF.js +50 -0
- package/dist/{acp-6UNV3LLZ.js → acp-5G7LPADD.js} +32 -32
- package/dist/{agentsValidate-Q6TKU7TM.js → agentsValidate-BIRAVXBL.js} +7 -7
- package/dist/{ask-VKXARFSE.js → ask-XQZT6WIO.js} +31 -31
- package/dist/{autoUpdater-7EWH6KLS.js → autoUpdater-DDJAJPKA.js} +3 -3
- package/dist/{chunk-VXBBKE3Z.js → chunk-2GHNW642.js} +1 -1
- package/dist/{chunk-YTMIS255.js → chunk-2SVUNNJB.js} +2 -2
- package/dist/{chunk-7HPHH3FB.js → chunk-3CC7QXCN.js} +69 -48
- package/dist/{chunk-7HPHH3FB.js.map → chunk-3CC7QXCN.js.map} +3 -3
- package/dist/{chunk-JUMRO5I7.js → chunk-4ZZYPG6P.js} +4 -4
- package/dist/{chunk-AJ3UX6R7.js → chunk-5B7UCAYL.js} +1 -1
- package/dist/{chunk-EC3PLGG3.js → chunk-652OMXEE.js} +2 -2
- package/dist/{chunk-JZJUCJTK.js → chunk-6QGIRDZS.js} +1 -1
- package/dist/{chunk-E4JH2XFM.js → chunk-76BOJQUE.js} +1 -1
- package/dist/{chunk-A7DBXB2F.js → chunk-7SYDIES4.js} +1 -1
- package/dist/{chunk-A7DBXB2F.js.map → chunk-7SYDIES4.js.map} +1 -1
- package/dist/{chunk-NNLRGQH7.js → chunk-A6QEPK5J.js} +2 -2
- package/dist/{chunk-GDDO2XA3.js → chunk-ABJT5MG2.js} +1 -1
- package/dist/{chunk-3OHETUTC.js → chunk-C2GNLGBM.js} +1 -1
- package/dist/{chunk-K75Q3DNN.js → chunk-CNMNKSWQ.js} +3 -3
- package/dist/{chunk-LRKZ3RPS.js → chunk-CT7LWVB7.js} +1 -1
- package/dist/chunk-G5MP72ZL.js +515 -0
- package/dist/chunk-G5MP72ZL.js.map +7 -0
- package/dist/{chunk-BHQOSSZK.js → chunk-GU4XA76N.js} +3 -3
- package/dist/chunk-KQZAS4DO.js +582 -0
- package/dist/chunk-KQZAS4DO.js.map +7 -0
- package/dist/{chunk-5SXLQSDA.js → chunk-LBDLSBXN.js} +4 -1
- package/dist/{chunk-IZQYUXSZ.js → chunk-M7FEUIHO.js} +2 -2
- package/dist/{chunk-NHGHYVP4.js → chunk-MMW6MLFR.js} +2 -2
- package/dist/{chunk-FCSVC7CP.js → chunk-MN77HNBB.js} +4 -4
- package/dist/{chunk-YGVF37PC.js → chunk-N7GEPTZB.js} +3 -3
- package/dist/{chunk-P3H2FCWA.js → chunk-O7LWCCRJ.js} +3 -3
- package/dist/{chunk-XSUCLDWY.js → chunk-PUPDIRI6.js} +2 -2
- package/dist/{chunk-OPAEJ3Y5.js → chunk-QCI5HPTA.js} +1 -1
- package/dist/{chunk-5S2CPB42.js → chunk-QSMZLK7K.js} +3 -3
- package/dist/{chunk-WPTE44L5.js → chunk-S65MIABQ.js} +4 -4
- package/dist/{chunk-DUQMZDAG.js → chunk-V22PQM4W.js} +3 -3
- package/dist/{chunk-C3FMLNZD.js → chunk-VVXC3SNP.js} +4 -4
- package/dist/{chunk-GSFBS4B4.js → chunk-W7VIESST.js} +3 -3
- package/dist/{chunk-O7R3XZGO.js → chunk-XEVB4WON.js} +15 -15
- package/dist/chunk-ZB3ZWD2K.js +96 -0
- package/dist/chunk-ZB3ZWD2K.js.map +7 -0
- package/dist/{cli-DFM7Z6AH.js → cli-YIANCHDD.js} +129 -102
- package/dist/cli-YIANCHDD.js.map +7 -0
- package/dist/commands-4YMZW52K.js +54 -0
- package/dist/{config-XUPBT2EE.js → config-QVH3VNUQ.js} +4 -4
- package/dist/{context-TE7OR7RQ.js → context-5VXEWH3G.js} +6 -6
- package/dist/{conversationPersistence-24HWWB75.js → conversationPersistence-INUNJHOV.js} +3 -3
- package/dist/{conversationTracker-4JE7TNPU.js → conversationTracker-H25IOHBE.js} +4 -4
- package/dist/{customCommands-OGYMS6BW.js → customCommands-7RZHKH2K.js} +4 -4
- package/dist/{env-OFPQLCBS.js → env-DPJTGHMP.js} +2 -2
- package/dist/{file-X2XAPBRZ.js → file-D7W2FBZP.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-6XIL53O7.js → llm-TOU5REY5.js} +32 -32
- package/dist/{llmLazy-U2GIPU5C.js → llmLazy-HSKKIGLC.js} +1 -1
- package/dist/{loader-EGMA6CWF.js → loader-YUP6OJTJ.js} +4 -4
- package/dist/{lsp-JMPOPT6A.js → lsp-7QKC4DVK.js} +6 -6
- package/dist/{lspAnchor-5PMHI5BV.js → lspAnchor-LCRZ23GA.js} +6 -6
- package/dist/{mcp-XSVQR6C6.js → mcp-KK6BOD6I.js} +7 -7
- package/dist/{mentionProcessor-4MOOQMS7.js → mentionProcessor-V6JH6HUD.js} +5 -5
- package/dist/{messages-ZBGD2RVK.js → messages-7NVTXWIJ.js} +1 -1
- package/dist/{model-ECTUAZ5Q.js → model-QSDSUJDB.js} +5 -5
- package/dist/{openai-CRNKDQJ3.js → openai-JC3KJN3H.js} +5 -5
- package/dist/{outputStyles-Z4PB6UX5.js → outputStyles-TPH3CCB4.js} +4 -4
- package/dist/{pluginRuntime-DRDVDAUU.js → pluginRuntime-7EK4LQDD.js} +6 -6
- package/dist/{pluginValidation-RHPC5SAR.js → pluginValidation-BJWCS55I.js} +6 -6
- package/dist/prompts-KQNPPEOG.js +56 -0
- package/dist/{pybAgentSessionLoad-YAEB2WL4.js → pybAgentSessionLoad-V3IAJJPS.js} +4 -6
- package/dist/{pybAgentSessionResume-C7MUM2PL.js → pybAgentSessionResume-WE7ET356.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-3X3S5CI2.js → pybAgentStreamJsonSession-VWDYV4XL.js} +1 -1
- package/dist/{pybHooks-DWLOM55R.js → pybHooks-UV7BTIVT.js} +4 -4
- package/dist/query-KAZY5LOW.js +54 -0
- package/dist/{registry-MFGZRI5N.js → registry-FK6UGJPV.js} +5 -5
- package/dist/{ripgrep-P7LJLNZR.js → ripgrep-CXJ4DFPU.js} +3 -3
- package/dist/{skillMarketplace-R5ZEB7NX.js → skillMarketplace-QUJXDKZK.js} +3 -3
- package/dist/{state-W25DUPH2.js → state-GC3XELIE.js} +2 -2
- package/dist/{theme-YNA47SVG.js → theme-24PLJSPD.js} +5 -5
- package/dist/{toolPermissionSettings-IJR677NS.js → toolPermissionSettings-S6NJPBKT.js} +6 -6
- package/dist/tools-NC5R4I6F.js +55 -0
- package/dist/{userInput-I2PLDULC.js → userInput-4VZSNII7.js} +33 -33
- package/package.json +1 -1
- package/dist/REPL-KRZBKRH2.js +0 -50
- package/dist/chunk-CDK4YHKS.js +0 -196
- package/dist/chunk-CDK4YHKS.js.map +0 -7
- package/dist/chunk-EJJSN2TT.js +0 -81
- package/dist/chunk-EJJSN2TT.js.map +0 -7
- package/dist/chunk-WHAWWM3Y.js +0 -138
- package/dist/chunk-WHAWWM3Y.js.map +0 -7
- package/dist/cli-DFM7Z6AH.js.map +0 -7
- package/dist/commands-E6P6G6RL.js +0 -54
- package/dist/prompts-XBRLSIXQ.js +0 -56
- package/dist/query-7M3GL2CM.js +0 -54
- package/dist/tools-XDOXLNVD.js +0 -55
- /package/dist/{REPL-KRZBKRH2.js.map → REPL-CI5ET6VF.js.map} +0 -0
- /package/dist/{acp-6UNV3LLZ.js.map → acp-5G7LPADD.js.map} +0 -0
- /package/dist/{agentsValidate-Q6TKU7TM.js.map → agentsValidate-BIRAVXBL.js.map} +0 -0
- /package/dist/{ask-VKXARFSE.js.map → ask-XQZT6WIO.js.map} +0 -0
- /package/dist/{autoUpdater-7EWH6KLS.js.map → autoUpdater-DDJAJPKA.js.map} +0 -0
- /package/dist/{chunk-VXBBKE3Z.js.map → chunk-2GHNW642.js.map} +0 -0
- /package/dist/{chunk-YTMIS255.js.map → chunk-2SVUNNJB.js.map} +0 -0
- /package/dist/{chunk-JUMRO5I7.js.map → chunk-4ZZYPG6P.js.map} +0 -0
- /package/dist/{chunk-AJ3UX6R7.js.map → chunk-5B7UCAYL.js.map} +0 -0
- /package/dist/{chunk-EC3PLGG3.js.map → chunk-652OMXEE.js.map} +0 -0
- /package/dist/{chunk-JZJUCJTK.js.map → chunk-6QGIRDZS.js.map} +0 -0
- /package/dist/{chunk-E4JH2XFM.js.map → chunk-76BOJQUE.js.map} +0 -0
- /package/dist/{chunk-NNLRGQH7.js.map → chunk-A6QEPK5J.js.map} +0 -0
- /package/dist/{chunk-GDDO2XA3.js.map → chunk-ABJT5MG2.js.map} +0 -0
- /package/dist/{chunk-3OHETUTC.js.map → chunk-C2GNLGBM.js.map} +0 -0
- /package/dist/{chunk-K75Q3DNN.js.map → chunk-CNMNKSWQ.js.map} +0 -0
- /package/dist/{chunk-LRKZ3RPS.js.map → chunk-CT7LWVB7.js.map} +0 -0
- /package/dist/{chunk-BHQOSSZK.js.map → chunk-GU4XA76N.js.map} +0 -0
- /package/dist/{chunk-5SXLQSDA.js.map → chunk-LBDLSBXN.js.map} +0 -0
- /package/dist/{chunk-IZQYUXSZ.js.map → chunk-M7FEUIHO.js.map} +0 -0
- /package/dist/{chunk-NHGHYVP4.js.map → chunk-MMW6MLFR.js.map} +0 -0
- /package/dist/{chunk-FCSVC7CP.js.map → chunk-MN77HNBB.js.map} +0 -0
- /package/dist/{chunk-YGVF37PC.js.map → chunk-N7GEPTZB.js.map} +0 -0
- /package/dist/{chunk-P3H2FCWA.js.map → chunk-O7LWCCRJ.js.map} +0 -0
- /package/dist/{chunk-XSUCLDWY.js.map → chunk-PUPDIRI6.js.map} +0 -0
- /package/dist/{chunk-OPAEJ3Y5.js.map → chunk-QCI5HPTA.js.map} +0 -0
- /package/dist/{chunk-5S2CPB42.js.map → chunk-QSMZLK7K.js.map} +0 -0
- /package/dist/{chunk-WPTE44L5.js.map → chunk-S65MIABQ.js.map} +0 -0
- /package/dist/{chunk-DUQMZDAG.js.map → chunk-V22PQM4W.js.map} +0 -0
- /package/dist/{chunk-C3FMLNZD.js.map → chunk-VVXC3SNP.js.map} +0 -0
- /package/dist/{chunk-GSFBS4B4.js.map → chunk-W7VIESST.js.map} +0 -0
- /package/dist/{chunk-O7R3XZGO.js.map → chunk-XEVB4WON.js.map} +0 -0
- /package/dist/{commands-E6P6G6RL.js.map → commands-4YMZW52K.js.map} +0 -0
- /package/dist/{config-XUPBT2EE.js.map → config-QVH3VNUQ.js.map} +0 -0
- /package/dist/{context-TE7OR7RQ.js.map → context-5VXEWH3G.js.map} +0 -0
- /package/dist/{conversationPersistence-24HWWB75.js.map → conversationPersistence-INUNJHOV.js.map} +0 -0
- /package/dist/{conversationTracker-4JE7TNPU.js.map → conversationTracker-H25IOHBE.js.map} +0 -0
- /package/dist/{customCommands-OGYMS6BW.js.map → customCommands-7RZHKH2K.js.map} +0 -0
- /package/dist/{env-OFPQLCBS.js.map → env-DPJTGHMP.js.map} +0 -0
- /package/dist/{file-X2XAPBRZ.js.map → file-D7W2FBZP.js.map} +0 -0
- /package/dist/{llm-6XIL53O7.js.map → llm-TOU5REY5.js.map} +0 -0
- /package/dist/{llmLazy-U2GIPU5C.js.map → llmLazy-HSKKIGLC.js.map} +0 -0
- /package/dist/{loader-EGMA6CWF.js.map → loader-YUP6OJTJ.js.map} +0 -0
- /package/dist/{lsp-JMPOPT6A.js.map → lsp-7QKC4DVK.js.map} +0 -0
- /package/dist/{lspAnchor-5PMHI5BV.js.map → lspAnchor-LCRZ23GA.js.map} +0 -0
- /package/dist/{mcp-XSVQR6C6.js.map → mcp-KK6BOD6I.js.map} +0 -0
- /package/dist/{mentionProcessor-4MOOQMS7.js.map → mentionProcessor-V6JH6HUD.js.map} +0 -0
- /package/dist/{messages-ZBGD2RVK.js.map → messages-7NVTXWIJ.js.map} +0 -0
- /package/dist/{model-ECTUAZ5Q.js.map → model-QSDSUJDB.js.map} +0 -0
- /package/dist/{openai-CRNKDQJ3.js.map → openai-JC3KJN3H.js.map} +0 -0
- /package/dist/{outputStyles-Z4PB6UX5.js.map → outputStyles-TPH3CCB4.js.map} +0 -0
- /package/dist/{pluginRuntime-DRDVDAUU.js.map → pluginRuntime-7EK4LQDD.js.map} +0 -0
- /package/dist/{pluginValidation-RHPC5SAR.js.map → pluginValidation-BJWCS55I.js.map} +0 -0
- /package/dist/{prompts-XBRLSIXQ.js.map → prompts-KQNPPEOG.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-YAEB2WL4.js.map → pybAgentSessionLoad-V3IAJJPS.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-C7MUM2PL.js.map → pybAgentSessionResume-WE7ET356.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-3X3S5CI2.js.map → pybAgentStreamJsonSession-VWDYV4XL.js.map} +0 -0
- /package/dist/{pybHooks-DWLOM55R.js.map → pybHooks-UV7BTIVT.js.map} +0 -0
- /package/dist/{query-7M3GL2CM.js.map → query-KAZY5LOW.js.map} +0 -0
- /package/dist/{registry-MFGZRI5N.js.map → registry-FK6UGJPV.js.map} +0 -0
- /package/dist/{ripgrep-P7LJLNZR.js.map → ripgrep-CXJ4DFPU.js.map} +0 -0
- /package/dist/{skillMarketplace-R5ZEB7NX.js.map → skillMarketplace-QUJXDKZK.js.map} +0 -0
- /package/dist/{state-W25DUPH2.js.map → state-GC3XELIE.js.map} +0 -0
- /package/dist/{theme-YNA47SVG.js.map → theme-24PLJSPD.js.map} +0 -0
- /package/dist/{toolPermissionSettings-IJR677NS.js.map → toolPermissionSettings-S6NJPBKT.js.map} +0 -0
- /package/dist/{tools-XDOXLNVD.js.map → tools-NC5R4I6F.js.map} +0 -0
- /package/dist/{userInput-I2PLDULC.js.map → userInput-4VZSNII7.js.map} +0 -0
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import { createRequire as __pybCreateRequire } from "node:module";
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
loadPybAgentSessionMessages
|
|
5
|
-
} from "./chunk-WHAWWM3Y.js";
|
|
6
|
-
import {
|
|
7
|
-
listPybAgentSessions
|
|
8
|
-
} from "./chunk-CDK4YHKS.js";
|
|
9
3
|
import {
|
|
10
4
|
appendSessionCustomTitleRecord,
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
appendSessionJsonlFromMessage,
|
|
6
|
+
appendSessionTagRecord,
|
|
7
|
+
listPybAgentSessions
|
|
8
|
+
} from "./chunk-KQZAS4DO.js";
|
|
13
9
|
import {
|
|
14
10
|
formatValidationResult,
|
|
15
11
|
validatePluginOrMarketplacePath
|
|
16
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-W7VIESST.js";
|
|
17
13
|
import {
|
|
18
14
|
ConversationTracker,
|
|
19
15
|
appendFinishState,
|
|
@@ -21,13 +17,16 @@ import {
|
|
|
21
17
|
getConversationTrackerForContext,
|
|
22
18
|
isFinishComplete,
|
|
23
19
|
mapFinishReason
|
|
24
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2GHNW642.js";
|
|
25
21
|
import {
|
|
26
22
|
FileSystemConversationPersistence
|
|
27
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6QGIRDZS.js";
|
|
28
24
|
import {
|
|
29
25
|
beginReplSessionScope
|
|
30
26
|
} from "./chunk-F4AXICO7.js";
|
|
27
|
+
import {
|
|
28
|
+
loadPybAgentSessionMessages
|
|
29
|
+
} from "./chunk-ZB3ZWD2K.js";
|
|
31
30
|
import {
|
|
32
31
|
drainHookSystemPromptAdditions,
|
|
33
32
|
getHookTranscriptPath,
|
|
@@ -39,7 +38,7 @@ import {
|
|
|
39
38
|
runStopHooks,
|
|
40
39
|
runUserPromptSubmitHooks,
|
|
41
40
|
updateHookTranscriptForMessages
|
|
42
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-CNMNKSWQ.js";
|
|
43
42
|
import {
|
|
44
43
|
DEFAULT_OUTPUT_STYLE,
|
|
45
44
|
getAvailableOutputStyles,
|
|
@@ -48,11 +47,11 @@ import {
|
|
|
48
47
|
getOutputStyleSystemPromptAdditions,
|
|
49
48
|
resolveOutputStyleName,
|
|
50
49
|
setCurrentOutputStyle
|
|
51
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-M7FEUIHO.js";
|
|
52
51
|
import {
|
|
53
52
|
fetchCustomModels,
|
|
54
53
|
getModelFeatures
|
|
55
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-A6QEPK5J.js";
|
|
56
55
|
import {
|
|
57
56
|
getSessionState
|
|
58
57
|
} from "./chunk-XKYHFZEC.js";
|
|
@@ -60,7 +59,7 @@ import {
|
|
|
60
59
|
queryLLM,
|
|
61
60
|
queryQuick,
|
|
62
61
|
verifyApiKey
|
|
63
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-S65MIABQ.js";
|
|
64
63
|
import {
|
|
65
64
|
DEFAULT_TIMEOUT_MS,
|
|
66
65
|
FallbackToolUseRejectedMessage,
|
|
@@ -74,7 +73,7 @@ import {
|
|
|
74
73
|
listMCPServers,
|
|
75
74
|
loadMergedSettings,
|
|
76
75
|
normalizeSandboxRuntimeConfigFromSettings
|
|
77
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-4ZZYPG6P.js";
|
|
78
77
|
import {
|
|
79
78
|
addMarketplace,
|
|
80
79
|
disableSkillPlugin,
|
|
@@ -87,11 +86,11 @@ import {
|
|
|
87
86
|
refreshMarketplaceAsync,
|
|
88
87
|
removeMarketplace,
|
|
89
88
|
uninstallSkillPlugin
|
|
90
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-CT7LWVB7.js";
|
|
91
90
|
import {
|
|
92
91
|
loadToolPermissionContextFromDisk,
|
|
93
92
|
persistToolPermissionUpdateToDisk
|
|
94
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-QSMZLK7K.js";
|
|
95
94
|
import {
|
|
96
95
|
applyToolPermissionContextUpdate,
|
|
97
96
|
applyToolPermissionContextUpdates,
|
|
@@ -102,13 +101,13 @@ import {
|
|
|
102
101
|
generateSystemReminders,
|
|
103
102
|
resetReminderSession,
|
|
104
103
|
systemReminderService
|
|
105
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-652OMXEE.js";
|
|
106
105
|
import {
|
|
107
106
|
clearAgentCache,
|
|
108
107
|
getActiveAgents,
|
|
109
108
|
getAgentByType,
|
|
110
109
|
getAllAgents
|
|
111
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-2SVUNNJB.js";
|
|
112
111
|
import {
|
|
113
112
|
API_ERROR_MESSAGE_PREFIX,
|
|
114
113
|
CANCEL_MESSAGE,
|
|
@@ -145,7 +144,7 @@ import {
|
|
|
145
144
|
reorderMessages,
|
|
146
145
|
resetAutoCompactTelemetry,
|
|
147
146
|
stripSystemMessages
|
|
148
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-QCI5HPTA.js";
|
|
149
148
|
import {
|
|
150
149
|
getRequestStatus,
|
|
151
150
|
setRequestStatus,
|
|
@@ -175,7 +174,7 @@ import {
|
|
|
175
174
|
normalizeFilePath,
|
|
176
175
|
readTextContent,
|
|
177
176
|
writeTextContent
|
|
178
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-MMW6MLFR.js";
|
|
179
178
|
import {
|
|
180
179
|
parseBlockEdits
|
|
181
180
|
} from "./chunk-QWIBSCDN.js";
|
|
@@ -185,18 +184,18 @@ import {
|
|
|
185
184
|
ParserRegistry,
|
|
186
185
|
initParser,
|
|
187
186
|
loadLanguage
|
|
188
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-MN77HNBB.js";
|
|
189
188
|
import {
|
|
190
189
|
getSettingsFileCandidates,
|
|
191
190
|
loadSettingsWithLegacyFallback,
|
|
192
191
|
readSettingsFile
|
|
193
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-ABJT5MG2.js";
|
|
194
193
|
import {
|
|
195
194
|
getCustomCommandDirectories,
|
|
196
195
|
hasCustomCommands,
|
|
197
196
|
loadCustomCommands,
|
|
198
197
|
reloadCustomCommands
|
|
199
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-PUPDIRI6.js";
|
|
200
199
|
import {
|
|
201
200
|
getSessionPlugins
|
|
202
201
|
} from "./chunk-BJSWTHRM.js";
|
|
@@ -205,7 +204,7 @@ import {
|
|
|
205
204
|
buildModelProfileKey,
|
|
206
205
|
getModelManager,
|
|
207
206
|
isDefaultSlowAndCapableModel
|
|
208
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-GU4XA76N.js";
|
|
209
208
|
import {
|
|
210
209
|
getCodeStyle,
|
|
211
210
|
getContext,
|
|
@@ -213,16 +212,16 @@ import {
|
|
|
213
212
|
getIsGit,
|
|
214
213
|
getProjectDocs,
|
|
215
214
|
getProjectStructureStatisticsBlock
|
|
216
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-VVXC3SNP.js";
|
|
217
216
|
import {
|
|
218
217
|
getRipgrepPath,
|
|
219
218
|
getRipgrepPolicyMode,
|
|
220
219
|
resolveRipgrepPolicy,
|
|
221
220
|
ripGrep
|
|
222
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-76BOJQUE.js";
|
|
223
222
|
import {
|
|
224
223
|
getTheme
|
|
225
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-C2GNLGBM.js";
|
|
226
225
|
import {
|
|
227
226
|
DEFAULT_GLOBAL_CONFIG,
|
|
228
227
|
enableConfigs,
|
|
@@ -235,7 +234,7 @@ import {
|
|
|
235
234
|
saveGlobalConfig,
|
|
236
235
|
setAllPointersToModel,
|
|
237
236
|
setModelPointer
|
|
238
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-V22PQM4W.js";
|
|
239
238
|
import {
|
|
240
239
|
AbortError
|
|
241
240
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -244,7 +243,7 @@ import {
|
|
|
244
243
|
getCurrentRequest,
|
|
245
244
|
logUserFriendly,
|
|
246
245
|
markPhase
|
|
247
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-5B7UCAYL.js";
|
|
248
247
|
import {
|
|
249
248
|
ASCII_LOGO,
|
|
250
249
|
BunShell,
|
|
@@ -285,10 +284,10 @@ import {
|
|
|
285
284
|
setCwd,
|
|
286
285
|
shouldApplyToolOutputTruncation,
|
|
287
286
|
truncateToolOutput
|
|
288
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-LBDLSBXN.js";
|
|
289
288
|
import {
|
|
290
289
|
MACRO
|
|
291
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-7SYDIES4.js";
|
|
292
291
|
import {
|
|
293
292
|
__export
|
|
294
293
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -469,7 +468,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
469
468
|
var getCommandPrefix = memoize(
|
|
470
469
|
async (command4, abortSignal) => {
|
|
471
470
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
472
|
-
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-TOU5REY5.js");
|
|
473
472
|
const response = await queryQuick2({
|
|
474
473
|
systemPrompt,
|
|
475
474
|
userPrompt,
|
|
@@ -4271,7 +4270,7 @@ function formatParseError(error) {
|
|
|
4271
4270
|
return error instanceof Error ? error.message : String(error);
|
|
4272
4271
|
}
|
|
4273
4272
|
async function defaultGateQuery(args) {
|
|
4274
|
-
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-TOU5REY5.js");
|
|
4275
4274
|
const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
|
|
4276
4275
|
const messages = [
|
|
4277
4276
|
{
|
|
@@ -6664,7 +6663,7 @@ var FileEditTool = {
|
|
|
6664
6663
|
const originalFileContent = currentFileContent;
|
|
6665
6664
|
let totalPatch = [];
|
|
6666
6665
|
const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
|
|
6667
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6666
|
+
const { findLspAnchor } = await import("./lspAnchor-LCRZ23GA.js");
|
|
6668
6667
|
for (const op of editOperations) {
|
|
6669
6668
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6670
6669
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -12149,7 +12148,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
12149
12148
|
}
|
|
12150
12149
|
saveGlobalConfig(config2);
|
|
12151
12150
|
try {
|
|
12152
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
12151
|
+
const { resetAnthropicClient } = await import("./llm-TOU5REY5.js");
|
|
12153
12152
|
resetAnthropicClient();
|
|
12154
12153
|
} catch {
|
|
12155
12154
|
}
|
|
@@ -16573,7 +16572,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
16573
16572
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
16574
16573
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
16575
16574
|
if (dirs.length === 0) return [];
|
|
16576
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
16575
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-7EK4LQDD.js");
|
|
16577
16576
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
16578
16577
|
return errors;
|
|
16579
16578
|
}
|
|
@@ -17248,7 +17247,7 @@ async function call(onDone, context) {
|
|
|
17248
17247
|
ModelConfig,
|
|
17249
17248
|
{
|
|
17250
17249
|
onClose: () => {
|
|
17251
|
-
import("./model-
|
|
17250
|
+
import("./model-QSDSUJDB.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
17252
17251
|
reloadModelManager2();
|
|
17253
17252
|
triggerModelConfigChange();
|
|
17254
17253
|
onDone();
|
|
@@ -18443,7 +18442,7 @@ function CostThresholdDialog({ onDone }) {
|
|
|
18443
18442
|
|
|
18444
18443
|
// src/ui/screens/REPL.tsx
|
|
18445
18444
|
import * as React97 from "react";
|
|
18446
|
-
import { useEffect as useEffect25, useMemo as useMemo27, useRef as
|
|
18445
|
+
import { useEffect as useEffect25, useMemo as useMemo27, useRef as useRef14, useState as useState28, useCallback as useCallback16 } from "react";
|
|
18447
18446
|
|
|
18448
18447
|
// src/ui/components/Message.tsx
|
|
18449
18448
|
import { Box as Box51 } from "ink";
|
|
@@ -25819,7 +25818,7 @@ function useStatusLine() {
|
|
|
25819
25818
|
// src/ui/components/PromptInput.tsx
|
|
25820
25819
|
async function interpretHashCommand(input) {
|
|
25821
25820
|
try {
|
|
25822
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
25821
|
+
const { queryQuick: queryQuick2 } = await import("./llm-TOU5REY5.js");
|
|
25823
25822
|
const systemPrompt = [
|
|
25824
25823
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
25825
25824
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -26132,7 +26131,7 @@ function PromptInput({
|
|
|
26132
26131
|
if (messages2.length) {
|
|
26133
26132
|
if (mode === "bash") {
|
|
26134
26133
|
onQuery(messages2, newAbortController).then(async () => {
|
|
26135
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
26134
|
+
const { getCwd: getCwd2 } = await import("./state-GC3XELIE.js");
|
|
26136
26135
|
setCurrentPwd(getCwd2());
|
|
26137
26136
|
});
|
|
26138
26137
|
} else {
|
|
@@ -26573,9 +26572,31 @@ function useCanUseTool(setToolUseConfirm) {
|
|
|
26573
26572
|
var useCanUseTool_default = useCanUseTool;
|
|
26574
26573
|
|
|
26575
26574
|
// src/ui/hooks/useLogMessages.ts
|
|
26576
|
-
import { useEffect as useEffect24 } from "react";
|
|
26575
|
+
import { useEffect as useEffect24, useRef as useRef13 } from "react";
|
|
26576
|
+
function collectSessionPersistCandidates(messages, persistedUuids) {
|
|
26577
|
+
const candidates = [];
|
|
26578
|
+
for (const message of messages) {
|
|
26579
|
+
if (message.type !== "user" && message.type !== "assistant") continue;
|
|
26580
|
+
const uuid = String(message.uuid ?? "").trim();
|
|
26581
|
+
if (!uuid || persistedUuids.has(uuid)) continue;
|
|
26582
|
+
persistedUuids.add(uuid);
|
|
26583
|
+
candidates.push(message);
|
|
26584
|
+
}
|
|
26585
|
+
return candidates;
|
|
26586
|
+
}
|
|
26577
26587
|
function useLogMessages(messages, messageLogName, forkNumber) {
|
|
26588
|
+
const persistedUuidsRef = useRef13(/* @__PURE__ */ new Set());
|
|
26578
26589
|
useEffect24(() => {
|
|
26590
|
+
const candidates = collectSessionPersistCandidates(
|
|
26591
|
+
messages,
|
|
26592
|
+
persistedUuidsRef.current
|
|
26593
|
+
);
|
|
26594
|
+
for (const message of candidates) {
|
|
26595
|
+
appendSessionJsonlFromMessage({
|
|
26596
|
+
message,
|
|
26597
|
+
toolUseContext: {}
|
|
26598
|
+
});
|
|
26599
|
+
}
|
|
26579
26600
|
overwriteLog(
|
|
26580
26601
|
getMessagesPath(messageLogName, forkNumber, 0),
|
|
26581
26602
|
messages.filter((_) => _.type !== "progress"),
|
|
@@ -33256,8 +33277,8 @@ function REPL({
|
|
|
33256
33277
|
},
|
|
33257
33278
|
[]
|
|
33258
33279
|
);
|
|
33259
|
-
const readFileTimestamps =
|
|
33260
|
-
const conversationTrackersRef =
|
|
33280
|
+
const readFileTimestamps = useRef14({});
|
|
33281
|
+
const conversationTrackersRef = useRef14(
|
|
33261
33282
|
/* @__PURE__ */ new Map()
|
|
33262
33283
|
);
|
|
33263
33284
|
const getConversationTrackerForKey = useCallback16(
|
|
@@ -33952,7 +33973,7 @@ var resume_default = {
|
|
|
33952
33973
|
import React102 from "react";
|
|
33953
33974
|
|
|
33954
33975
|
// src/commands/agents/ui.tsx
|
|
33955
|
-
import React101, { useCallback as useCallback17, useEffect as useEffect26, useMemo as useMemo28, useRef as
|
|
33976
|
+
import React101, { useCallback as useCallback17, useEffect as useEffect26, useMemo as useMemo28, useRef as useRef15, useState as useState29 } from "react";
|
|
33956
33977
|
import { Box as Box74, Text as Text78, useInput as useInput28 } from "ink";
|
|
33957
33978
|
import figures9 from "figures";
|
|
33958
33979
|
import chalk15 from "chalk";
|
|
@@ -34022,7 +34043,7 @@ import { homedir as homedir8 } from "os";
|
|
|
34022
34043
|
// src/commands/agents/generation.ts
|
|
34023
34044
|
import { randomUUID as randomUUID6 } from "crypto";
|
|
34024
34045
|
async function generateAgentWithClaude(prompt) {
|
|
34025
|
-
const { queryModel } = await import("./llm-
|
|
34046
|
+
const { queryModel } = await import("./llm-TOU5REY5.js");
|
|
34026
34047
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
34027
34048
|
|
|
34028
34049
|
Return your response as a JSON object with exactly these fields:
|
|
@@ -34685,7 +34706,7 @@ function StepGenerationPrompt(props) {
|
|
|
34685
34706
|
const [cursorOffset, setCursorOffset] = useState29(value.length);
|
|
34686
34707
|
const [isGenerating, setIsGenerating] = useState29(false);
|
|
34687
34708
|
const [error, setError] = useState29(null);
|
|
34688
|
-
const abortRef =
|
|
34709
|
+
const abortRef = useRef15(null);
|
|
34689
34710
|
const columns = Math.min(80, process.stdout.columns ?? 80);
|
|
34690
34711
|
useInput28((_input, key) => {
|
|
34691
34712
|
if (!key.escape) return;
|