pybao-cli 1.4.69 → 1.4.70
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-7K6U4TJI.js +46 -0
- package/dist/{acp-6LRBVMXY.js → acp-WKXIUQE5.js} +29 -29
- package/dist/{agentsValidate-4LAOGQEK.js → agentsValidate-VASQDYWX.js} +7 -7
- package/dist/{ask-VO34LVHJ.js → ask-FVNLC2ER.js} +28 -28
- package/dist/{autoUpdater-WCDZ3LKI.js → autoUpdater-RGXJL4JP.js} +3 -3
- package/dist/{chunk-ULUZRDEZ.js → chunk-2IKQLU7Z.js} +1 -1
- package/dist/{chunk-ULUZRDEZ.js.map → chunk-2IKQLU7Z.js.map} +1 -1
- package/dist/{chunk-HHQKHMVN.js → chunk-2KLTF2RL.js} +2 -2
- package/dist/{chunk-XWTPHVQ2.js → chunk-4BMX3A66.js} +3 -3
- package/dist/{chunk-64FPFNEO.js → chunk-6JEMB3QO.js} +1 -1
- package/dist/{chunk-GAOK4KW3.js → chunk-A4FOTJXO.js} +3 -3
- package/dist/{chunk-TCCVAS7Q.js → chunk-CS53ICZD.js} +2 -2
- package/dist/{chunk-CH7AQMFI.js → chunk-DPQAF6WJ.js} +1 -1
- package/dist/{chunk-IYTU4OJV.js → chunk-F2SIWWFK.js} +1 -1
- package/dist/{chunk-FQLUVB5C.js → chunk-F47IOKHV.js} +1 -1
- package/dist/{chunk-MQOUWZJB.js → chunk-FZKER2A6.js} +1 -1
- package/dist/{chunk-BQOYEEGF.js → chunk-G5P4TOPL.js} +3 -3
- package/dist/{chunk-H5KMZAUF.js → chunk-GCCDWJ5I.js} +3 -3
- package/dist/{chunk-BBN46KXV.js → chunk-GDMZZQXA.js} +1 -1
- package/dist/{chunk-I5KCNNUI.js → chunk-GID4HETQ.js} +4 -4
- package/dist/{chunk-4EUFV7IZ.js → chunk-GL6HVQ7Y.js} +3 -3
- package/dist/{chunk-Q7QN2OT2.js → chunk-HDKWC43V.js} +4 -4
- package/dist/{chunk-ZOGQ47JZ.js → chunk-IGINSXE5.js} +2 -2
- package/dist/{chunk-VGI3MJCN.js → chunk-IXT4AZD4.js} +3 -3
- package/dist/{chunk-DVWYKOS2.js → chunk-KFDO6W7P.js} +4 -4
- package/dist/{chunk-Q4VBSC45.js → chunk-KMK42JY2.js} +1 -1
- package/dist/{chunk-JQEGLFMO.js → chunk-L2HD6XQ6.js} +78 -43
- package/dist/chunk-L2HD6XQ6.js.map +7 -0
- package/dist/{chunk-JCUPO5SD.js → chunk-QEU6CHZ7.js} +2 -2
- package/dist/{chunk-ATTYOEZT.js → chunk-QVCL2JNZ.js} +1 -1
- package/dist/{chunk-L5BXFKV7.js → chunk-REZSGPLV.js} +2 -2
- package/dist/{chunk-UP22WCEV.js → chunk-TCH73D5U.js} +1 -1
- package/dist/{chunk-I2RN6BKG.js → chunk-TXGIUPK5.js} +16 -16
- package/dist/{chunk-5SEYGIMS.js → chunk-UP22SYNJ.js} +2 -2
- package/dist/{chunk-T7U272IW.js → chunk-VCIMKWMR.js} +4 -4
- package/dist/{chunk-T36V23CZ.js → chunk-VR3QP6DF.js} +2 -2
- package/dist/{chunk-7EX3H2LR.js → chunk-WDEUNZOU.js} +3 -3
- package/dist/{cli-K22UG63I.js → cli-Y3AV3DXY.js} +87 -87
- package/dist/commands-AFYQVQTH.js +50 -0
- package/dist/{config-4TLLBLHZ.js → config-P3JYR23Z.js} +4 -4
- package/dist/{context-UCX6EHV2.js → context-EXLJCXFC.js} +6 -6
- package/dist/{customCommands-XBYBBLIT.js → customCommands-WA52KZER.js} +4 -4
- package/dist/{env-NIRNUQBK.js → env-642FHXLO.js} +2 -2
- package/dist/{file-KZUCZWBZ.js → file-HJQVIIEB.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-IBAT6C77.js → llm-5MR7DEOU.js} +29 -29
- package/dist/{llmLazy-W2AONXJN.js → llmLazy-Y3RCXTOD.js} +1 -1
- package/dist/{loader-GQ2AYDKZ.js → loader-U4QPWYM2.js} +4 -4
- package/dist/{lsp-TDZOFAGX.js → lsp-TZA3TUSQ.js} +6 -6
- package/dist/{lspAnchor-Y5ODO3C4.js → lspAnchor-YFDQNUX2.js} +6 -6
- package/dist/{mcp-S4YW6CXE.js → mcp-KTNHNCQ3.js} +7 -7
- package/dist/{mentionProcessor-KH6NLD6M.js → mentionProcessor-HP3HLVY6.js} +5 -5
- package/dist/{messages-GRLBINLQ.js → messages-3QB23BB2.js} +1 -1
- package/dist/{model-XO4IA6K3.js → model-GYOM5HF3.js} +5 -5
- package/dist/{openai-O4WR7IE3.js → openai-5AEIYPBM.js} +5 -5
- package/dist/{outputStyles-SFBNSHR5.js → outputStyles-FJH7EG5F.js} +4 -4
- package/dist/{pluginRuntime-YHLTGW2O.js → pluginRuntime-J57C7K7K.js} +6 -6
- package/dist/{pluginValidation-ITG2YAD3.js → pluginValidation-VGMXFCYT.js} +6 -6
- package/dist/prompts-PNMMLVZ4.js +52 -0
- package/dist/{pybAgentSessionLoad-VD6RSWTX.js → pybAgentSessionLoad-YYNAYFGS.js} +4 -4
- package/dist/{pybAgentSessionResume-RSYK7EJ4.js → pybAgentSessionResume-AMZMZECU.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-K3DQZO55.js → pybAgentStreamJsonSession-AOF6PBFB.js} +1 -1
- package/dist/{pybHooks-PS4QDUIJ.js → pybHooks-2YPKAMM5.js} +4 -4
- package/dist/query-LWDITFGK.js +54 -0
- package/dist/{registry-C5YC57SE.js → registry-QPHBAKLN.js} +5 -5
- package/dist/{ripgrep-J52ZKVWV.js → ripgrep-GVOQVBCX.js} +3 -3
- package/dist/{skillMarketplace-7F2RUTO4.js → skillMarketplace-YILTM6CL.js} +3 -3
- package/dist/{state-YUFV22R5.js → state-NA4BTHFE.js} +2 -2
- package/dist/{theme-HYXO3DVU.js → theme-XC4RRVYE.js} +5 -5
- package/dist/{toolPermissionSettings-TRPVISAS.js → toolPermissionSettings-XECHP5QX.js} +6 -6
- package/dist/tools-KCOOUEUC.js +51 -0
- package/dist/{userInput-TMER67YX.js → userInput-4TYMTVMI.js} +30 -30
- package/package.json +1 -1
- package/dist/REPL-ZAJ6IKK3.js +0 -46
- package/dist/chunk-JQEGLFMO.js.map +0 -7
- package/dist/commands-XREIQOVF.js +0 -50
- package/dist/prompts-NCYQ3YKX.js +0 -52
- package/dist/query-DVJYTX6S.js +0 -54
- package/dist/tools-72E2HB4H.js +0 -51
- /package/dist/{REPL-ZAJ6IKK3.js.map → REPL-7K6U4TJI.js.map} +0 -0
- /package/dist/{acp-6LRBVMXY.js.map → acp-WKXIUQE5.js.map} +0 -0
- /package/dist/{agentsValidate-4LAOGQEK.js.map → agentsValidate-VASQDYWX.js.map} +0 -0
- /package/dist/{ask-VO34LVHJ.js.map → ask-FVNLC2ER.js.map} +0 -0
- /package/dist/{autoUpdater-WCDZ3LKI.js.map → autoUpdater-RGXJL4JP.js.map} +0 -0
- /package/dist/{chunk-HHQKHMVN.js.map → chunk-2KLTF2RL.js.map} +0 -0
- /package/dist/{chunk-XWTPHVQ2.js.map → chunk-4BMX3A66.js.map} +0 -0
- /package/dist/{chunk-64FPFNEO.js.map → chunk-6JEMB3QO.js.map} +0 -0
- /package/dist/{chunk-GAOK4KW3.js.map → chunk-A4FOTJXO.js.map} +0 -0
- /package/dist/{chunk-TCCVAS7Q.js.map → chunk-CS53ICZD.js.map} +0 -0
- /package/dist/{chunk-CH7AQMFI.js.map → chunk-DPQAF6WJ.js.map} +0 -0
- /package/dist/{chunk-IYTU4OJV.js.map → chunk-F2SIWWFK.js.map} +0 -0
- /package/dist/{chunk-FQLUVB5C.js.map → chunk-F47IOKHV.js.map} +0 -0
- /package/dist/{chunk-MQOUWZJB.js.map → chunk-FZKER2A6.js.map} +0 -0
- /package/dist/{chunk-BQOYEEGF.js.map → chunk-G5P4TOPL.js.map} +0 -0
- /package/dist/{chunk-H5KMZAUF.js.map → chunk-GCCDWJ5I.js.map} +0 -0
- /package/dist/{chunk-BBN46KXV.js.map → chunk-GDMZZQXA.js.map} +0 -0
- /package/dist/{chunk-I5KCNNUI.js.map → chunk-GID4HETQ.js.map} +0 -0
- /package/dist/{chunk-4EUFV7IZ.js.map → chunk-GL6HVQ7Y.js.map} +0 -0
- /package/dist/{chunk-Q7QN2OT2.js.map → chunk-HDKWC43V.js.map} +0 -0
- /package/dist/{chunk-ZOGQ47JZ.js.map → chunk-IGINSXE5.js.map} +0 -0
- /package/dist/{chunk-VGI3MJCN.js.map → chunk-IXT4AZD4.js.map} +0 -0
- /package/dist/{chunk-DVWYKOS2.js.map → chunk-KFDO6W7P.js.map} +0 -0
- /package/dist/{chunk-Q4VBSC45.js.map → chunk-KMK42JY2.js.map} +0 -0
- /package/dist/{chunk-JCUPO5SD.js.map → chunk-QEU6CHZ7.js.map} +0 -0
- /package/dist/{chunk-ATTYOEZT.js.map → chunk-QVCL2JNZ.js.map} +0 -0
- /package/dist/{chunk-L5BXFKV7.js.map → chunk-REZSGPLV.js.map} +0 -0
- /package/dist/{chunk-UP22WCEV.js.map → chunk-TCH73D5U.js.map} +0 -0
- /package/dist/{chunk-I2RN6BKG.js.map → chunk-TXGIUPK5.js.map} +0 -0
- /package/dist/{chunk-5SEYGIMS.js.map → chunk-UP22SYNJ.js.map} +0 -0
- /package/dist/{chunk-T7U272IW.js.map → chunk-VCIMKWMR.js.map} +0 -0
- /package/dist/{chunk-T36V23CZ.js.map → chunk-VR3QP6DF.js.map} +0 -0
- /package/dist/{chunk-7EX3H2LR.js.map → chunk-WDEUNZOU.js.map} +0 -0
- /package/dist/{cli-K22UG63I.js.map → cli-Y3AV3DXY.js.map} +0 -0
- /package/dist/{commands-XREIQOVF.js.map → commands-AFYQVQTH.js.map} +0 -0
- /package/dist/{config-4TLLBLHZ.js.map → config-P3JYR23Z.js.map} +0 -0
- /package/dist/{context-UCX6EHV2.js.map → context-EXLJCXFC.js.map} +0 -0
- /package/dist/{customCommands-XBYBBLIT.js.map → customCommands-WA52KZER.js.map} +0 -0
- /package/dist/{env-NIRNUQBK.js.map → env-642FHXLO.js.map} +0 -0
- /package/dist/{file-KZUCZWBZ.js.map → file-HJQVIIEB.js.map} +0 -0
- /package/dist/{llm-IBAT6C77.js.map → llm-5MR7DEOU.js.map} +0 -0
- /package/dist/{llmLazy-W2AONXJN.js.map → llmLazy-Y3RCXTOD.js.map} +0 -0
- /package/dist/{loader-GQ2AYDKZ.js.map → loader-U4QPWYM2.js.map} +0 -0
- /package/dist/{lsp-TDZOFAGX.js.map → lsp-TZA3TUSQ.js.map} +0 -0
- /package/dist/{lspAnchor-Y5ODO3C4.js.map → lspAnchor-YFDQNUX2.js.map} +0 -0
- /package/dist/{mcp-S4YW6CXE.js.map → mcp-KTNHNCQ3.js.map} +0 -0
- /package/dist/{mentionProcessor-KH6NLD6M.js.map → mentionProcessor-HP3HLVY6.js.map} +0 -0
- /package/dist/{messages-GRLBINLQ.js.map → messages-3QB23BB2.js.map} +0 -0
- /package/dist/{model-XO4IA6K3.js.map → model-GYOM5HF3.js.map} +0 -0
- /package/dist/{openai-O4WR7IE3.js.map → openai-5AEIYPBM.js.map} +0 -0
- /package/dist/{outputStyles-SFBNSHR5.js.map → outputStyles-FJH7EG5F.js.map} +0 -0
- /package/dist/{pluginRuntime-YHLTGW2O.js.map → pluginRuntime-J57C7K7K.js.map} +0 -0
- /package/dist/{pluginValidation-ITG2YAD3.js.map → pluginValidation-VGMXFCYT.js.map} +0 -0
- /package/dist/{prompts-NCYQ3YKX.js.map → prompts-PNMMLVZ4.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-VD6RSWTX.js.map → pybAgentSessionLoad-YYNAYFGS.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-RSYK7EJ4.js.map → pybAgentSessionResume-AMZMZECU.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-K3DQZO55.js.map → pybAgentStreamJsonSession-AOF6PBFB.js.map} +0 -0
- /package/dist/{pybHooks-PS4QDUIJ.js.map → pybHooks-2YPKAMM5.js.map} +0 -0
- /package/dist/{query-DVJYTX6S.js.map → query-LWDITFGK.js.map} +0 -0
- /package/dist/{registry-C5YC57SE.js.map → registry-QPHBAKLN.js.map} +0 -0
- /package/dist/{ripgrep-J52ZKVWV.js.map → ripgrep-GVOQVBCX.js.map} +0 -0
- /package/dist/{skillMarketplace-7F2RUTO4.js.map → skillMarketplace-YILTM6CL.js.map} +0 -0
- /package/dist/{state-YUFV22R5.js.map → state-NA4BTHFE.js.map} +0 -0
- /package/dist/{theme-HYXO3DVU.js.map → theme-XC4RRVYE.js.map} +0 -0
- /package/dist/{toolPermissionSettings-TRPVISAS.js.map → toolPermissionSettings-XECHP5QX.js.map} +0 -0
- /package/dist/{tools-72E2HB4H.js.map → tools-KCOOUEUC.js.map} +0 -0
- /package/dist/{userInput-TMER67YX.js.map → userInput-4TYMTVMI.js.map} +0 -0
|
@@ -2,15 +2,15 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
loadSettingsWithLegacyFallback
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DPQAF6WJ.js";
|
|
6
6
|
import {
|
|
7
7
|
debug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QVCL2JNZ.js";
|
|
9
9
|
import {
|
|
10
10
|
env,
|
|
11
11
|
getSessionRoot,
|
|
12
12
|
resolveXdgDataPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GDMZZQXA.js";
|
|
14
14
|
import {
|
|
15
15
|
__require
|
|
16
16
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -2,13 +2,13 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ripGrepWithStatus
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F2SIWWFK.js";
|
|
6
6
|
import {
|
|
7
7
|
getCurrentProjectConfig,
|
|
8
8
|
getGlobalConfig,
|
|
9
9
|
getOrCreateUserID,
|
|
10
10
|
saveCurrentProjectConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4BMX3A66.js";
|
|
12
12
|
import {
|
|
13
13
|
SESSION_ID,
|
|
14
14
|
env,
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
getCwd,
|
|
17
17
|
isContextScanDisabled,
|
|
18
18
|
logError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GDMZZQXA.js";
|
|
20
20
|
import {
|
|
21
21
|
MACRO
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2IKQLU7Z.js";
|
|
23
23
|
import {
|
|
24
24
|
__require
|
|
25
25
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -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-A4FOTJXO.js";
|
|
7
7
|
import {
|
|
8
8
|
loadPybAgentSessionMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6JEMB3QO.js";
|
|
10
10
|
import {
|
|
11
11
|
listPybAgentSessions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-F47IOKHV.js";
|
|
13
13
|
import {
|
|
14
14
|
appendSessionCustomTitleRecord,
|
|
15
15
|
appendSessionJsonlFromMessage,
|
|
16
16
|
appendSessionTagRecord
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QEU6CHZ7.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-GCCDWJ5I.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_OUTPUT_STYLE,
|
|
32
32
|
getAvailableOutputStyles,
|
|
@@ -35,17 +35,17 @@ import {
|
|
|
35
35
|
getOutputStyleSystemPromptAdditions,
|
|
36
36
|
resolveOutputStyleName,
|
|
37
37
|
setCurrentOutputStyle
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CS53ICZD.js";
|
|
39
39
|
import {
|
|
40
40
|
fetchCustomModels,
|
|
41
41
|
getModelFeatures,
|
|
42
42
|
getSessionState
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-UP22SYNJ.js";
|
|
44
44
|
import {
|
|
45
45
|
queryLLM,
|
|
46
46
|
queryQuick,
|
|
47
47
|
verifyApiKey
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-HDKWC43V.js";
|
|
49
49
|
import {
|
|
50
50
|
DEFAULT_TIMEOUT_MS,
|
|
51
51
|
FallbackToolUseRejectedMessage,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
listMCPServers,
|
|
60
60
|
loadMergedSettings,
|
|
61
61
|
normalizeSandboxRuntimeConfigFromSettings
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-VCIMKWMR.js";
|
|
63
63
|
import {
|
|
64
64
|
addMarketplace,
|
|
65
65
|
disableSkillPlugin,
|
|
@@ -72,11 +72,11 @@ import {
|
|
|
72
72
|
refreshMarketplaceAsync,
|
|
73
73
|
removeMarketplace,
|
|
74
74
|
uninstallSkillPlugin
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-KMK42JY2.js";
|
|
76
76
|
import {
|
|
77
77
|
loadToolPermissionContextFromDisk,
|
|
78
78
|
persistToolPermissionUpdateToDisk
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-WDEUNZOU.js";
|
|
80
80
|
import {
|
|
81
81
|
applyToolPermissionContextUpdate,
|
|
82
82
|
applyToolPermissionContextUpdates,
|
|
@@ -87,13 +87,13 @@ import {
|
|
|
87
87
|
generateSystemReminders,
|
|
88
88
|
resetReminderSession,
|
|
89
89
|
systemReminderService
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-VR3QP6DF.js";
|
|
91
91
|
import {
|
|
92
92
|
clearAgentCache,
|
|
93
93
|
getActiveAgents,
|
|
94
94
|
getAgentByType,
|
|
95
95
|
getAllAgents
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-2KLTF2RL.js";
|
|
97
97
|
import {
|
|
98
98
|
API_ERROR_MESSAGE_PREFIX,
|
|
99
99
|
CANCEL_MESSAGE,
|
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
processUserInput,
|
|
125
125
|
reorderMessages,
|
|
126
126
|
stripSystemMessages
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-TCH73D5U.js";
|
|
128
128
|
import {
|
|
129
129
|
getRequestStatus,
|
|
130
130
|
setRequestStatus,
|
|
@@ -154,7 +154,7 @@ import {
|
|
|
154
154
|
normalizeFilePath,
|
|
155
155
|
readTextContent,
|
|
156
156
|
writeTextContent
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-IGINSXE5.js";
|
|
158
158
|
import {
|
|
159
159
|
parseBlockEdits
|
|
160
160
|
} from "./chunk-QWIBSCDN.js";
|
|
@@ -164,18 +164,18 @@ import {
|
|
|
164
164
|
ParserRegistry,
|
|
165
165
|
initParser,
|
|
166
166
|
loadLanguage
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-GID4HETQ.js";
|
|
168
168
|
import {
|
|
169
169
|
getSettingsFileCandidates,
|
|
170
170
|
loadSettingsWithLegacyFallback,
|
|
171
171
|
readSettingsFile
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-DPQAF6WJ.js";
|
|
173
173
|
import {
|
|
174
174
|
getCustomCommandDirectories,
|
|
175
175
|
hasCustomCommands,
|
|
176
176
|
loadCustomCommands,
|
|
177
177
|
reloadCustomCommands
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-REZSGPLV.js";
|
|
179
179
|
import {
|
|
180
180
|
getSessionPlugins
|
|
181
181
|
} from "./chunk-BJSWTHRM.js";
|
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
ModelManager,
|
|
184
184
|
getModelManager,
|
|
185
185
|
isDefaultSlowAndCapableModel
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-GL6HVQ7Y.js";
|
|
187
187
|
import {
|
|
188
188
|
getCodeStyle,
|
|
189
189
|
getContext,
|
|
@@ -191,13 +191,13 @@ import {
|
|
|
191
191
|
getIsGit,
|
|
192
192
|
getProjectDocs,
|
|
193
193
|
getProjectStructureStatisticsBlock
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-KFDO6W7P.js";
|
|
195
195
|
import {
|
|
196
196
|
ripGrep
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-F2SIWWFK.js";
|
|
198
198
|
import {
|
|
199
199
|
getTheme
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-FZKER2A6.js";
|
|
201
201
|
import {
|
|
202
202
|
DEFAULT_GLOBAL_CONFIG,
|
|
203
203
|
enableConfigs,
|
|
@@ -210,7 +210,7 @@ import {
|
|
|
210
210
|
saveGlobalConfig,
|
|
211
211
|
setAllPointersToModel,
|
|
212
212
|
setModelPointer
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-4BMX3A66.js";
|
|
214
214
|
import {
|
|
215
215
|
AbortError
|
|
216
216
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -219,7 +219,7 @@ import {
|
|
|
219
219
|
getCurrentRequest,
|
|
220
220
|
logUserFriendly,
|
|
221
221
|
markPhase
|
|
222
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-QVCL2JNZ.js";
|
|
223
223
|
import {
|
|
224
224
|
ASCII_LOGO,
|
|
225
225
|
BunShell,
|
|
@@ -260,10 +260,10 @@ import {
|
|
|
260
260
|
setCwd,
|
|
261
261
|
shouldApplyToolOutputTruncation,
|
|
262
262
|
truncateToolOutput
|
|
263
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-GDMZZQXA.js";
|
|
264
264
|
import {
|
|
265
265
|
MACRO
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-2IKQLU7Z.js";
|
|
267
267
|
import {
|
|
268
268
|
__export
|
|
269
269
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -444,7 +444,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
444
444
|
var getCommandPrefix = memoize(
|
|
445
445
|
async (command4, abortSignal) => {
|
|
446
446
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
447
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
447
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-5MR7DEOU.js");
|
|
448
448
|
const response = await queryQuick2({
|
|
449
449
|
systemPrompt,
|
|
450
450
|
userPrompt,
|
|
@@ -4246,7 +4246,7 @@ function formatParseError(error) {
|
|
|
4246
4246
|
return error instanceof Error ? error.message : String(error);
|
|
4247
4247
|
}
|
|
4248
4248
|
async function defaultGateQuery(args) {
|
|
4249
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4249
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-5MR7DEOU.js");
|
|
4250
4250
|
const queryLLMFn = args.queryLLMOverride ?? queryLLM2;
|
|
4251
4251
|
const messages = [
|
|
4252
4252
|
{
|
|
@@ -6643,7 +6643,7 @@ var FileEditTool = {
|
|
|
6643
6643
|
const originalFileContent = currentFileContent;
|
|
6644
6644
|
let totalPatch = [];
|
|
6645
6645
|
const { SmartEdit } = await import("./smart-edit-AWHJDSU6.js");
|
|
6646
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6646
|
+
const { findLspAnchor } = await import("./lspAnchor-YFDQNUX2.js");
|
|
6647
6647
|
for (const op of editOperations) {
|
|
6648
6648
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6649
6649
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -7405,17 +7405,32 @@ var FileReadTool = {
|
|
|
7405
7405
|
return /* @__PURE__ */ React13.createElement(FallbackToolUseRejectedMessage, null);
|
|
7406
7406
|
},
|
|
7407
7407
|
async validateInput({ file_path, offset, limit, symbol_name }) {
|
|
7408
|
+
if (!file_path || file_path.trim() === "") {
|
|
7409
|
+
return {
|
|
7410
|
+
result: false,
|
|
7411
|
+
message: "File path cannot be empty."
|
|
7412
|
+
};
|
|
7413
|
+
}
|
|
7408
7414
|
const fullFilePath = normalizeFilePath(file_path);
|
|
7409
7415
|
const fileCheck = secureFileService.safeGetFileInfo(fullFilePath);
|
|
7410
7416
|
if (!fileCheck.success) {
|
|
7411
|
-
const
|
|
7412
|
-
let message
|
|
7413
|
-
if (
|
|
7414
|
-
message
|
|
7415
|
-
}
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7417
|
+
const error = fileCheck.error || "";
|
|
7418
|
+
let message;
|
|
7419
|
+
if (isSecurityError(error)) {
|
|
7420
|
+
message = formatSecurityError(error);
|
|
7421
|
+
} else if (error.includes("does not exist")) {
|
|
7422
|
+
const similarFilename = findSimilarFile(fullFilePath);
|
|
7423
|
+
message = "File does not exist.";
|
|
7424
|
+
if (similarFilename) {
|
|
7425
|
+
message += ` Did you mean ${similarFilename}?`;
|
|
7426
|
+
}
|
|
7427
|
+
message += "\nSuggestion: If the path came from search results, rerun Glob/Grep to confirm the latest path.Use LS/Glob on parent directories to confirm the real structure and filename before Read.";
|
|
7428
|
+
message += "\nSuggestion: in multi-repo or multi-branch environments, confirm the current working directory and branch before locating.";
|
|
7429
|
+
} else if (error.includes("too long")) {
|
|
7430
|
+
message = "Path too long (max 4096 characters). Please provide a shorter path.";
|
|
7431
|
+
} else {
|
|
7432
|
+
message = error ? `Failed to access file: ${error}` : "Failed to access file. Please verify the path and try again.";
|
|
7433
|
+
}
|
|
7419
7434
|
return {
|
|
7420
7435
|
result: false,
|
|
7421
7436
|
message
|
|
@@ -7630,6 +7645,26 @@ var FileReadTool = {
|
|
|
7630
7645
|
}
|
|
7631
7646
|
};
|
|
7632
7647
|
var formatFileSizeError = (sizeInBytes) => `File content (${Math.round(sizeInBytes / 1024)}KB) exceeds maximum allowed size (${Math.round(MAX_OUTPUT_SIZE / 1024)}KB). Please use offset and limit parameters to read specific portions of the file, or use the Grep tool to search for specific content.`;
|
|
7648
|
+
var isSecurityError = (error) => {
|
|
7649
|
+
const patterns = [
|
|
7650
|
+
"outside allowed directories",
|
|
7651
|
+
"traversal characters",
|
|
7652
|
+
"suspicious pattern"
|
|
7653
|
+
];
|
|
7654
|
+
return patterns.some((pattern) => error.includes(pattern));
|
|
7655
|
+
};
|
|
7656
|
+
var formatSecurityError = (error) => {
|
|
7657
|
+
if (error.includes("outside allowed directories")) {
|
|
7658
|
+
return "Access denied: path is not allowed. Please use a path within the working directory.";
|
|
7659
|
+
}
|
|
7660
|
+
if (error.includes("traversal characters")) {
|
|
7661
|
+
return "Access denied: path contains invalid traversal characters. Please provide an absolute path.";
|
|
7662
|
+
}
|
|
7663
|
+
if (error.includes("suspicious pattern")) {
|
|
7664
|
+
return "Access denied: path contains suspicious characters. Please provide a valid file path.";
|
|
7665
|
+
}
|
|
7666
|
+
return "Access denied: path is not allowed.";
|
|
7667
|
+
};
|
|
7633
7668
|
function createImageResponse(buffer, ext, originalSize) {
|
|
7634
7669
|
const normalized = ext === ".jpg" || ext === ".jpeg" ? "image/jpeg" : ext === ".png" ? "image/png" : ext === ".gif" ? "image/gif" : "image/webp";
|
|
7635
7670
|
return {
|
|
@@ -11278,7 +11313,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11278
11313
|
}
|
|
11279
11314
|
saveGlobalConfig(config2);
|
|
11280
11315
|
try {
|
|
11281
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11316
|
+
const { resetAnthropicClient } = await import("./llm-5MR7DEOU.js");
|
|
11282
11317
|
resetAnthropicClient();
|
|
11283
11318
|
} catch {
|
|
11284
11319
|
}
|
|
@@ -15645,7 +15680,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15645
15680
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15646
15681
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15647
15682
|
if (dirs.length === 0) return [];
|
|
15648
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15683
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-J57C7K7K.js");
|
|
15649
15684
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15650
15685
|
return errors;
|
|
15651
15686
|
}
|
|
@@ -16314,7 +16349,7 @@ async function call(onDone, context) {
|
|
|
16314
16349
|
ModelConfig,
|
|
16315
16350
|
{
|
|
16316
16351
|
onClose: () => {
|
|
16317
|
-
import("./model-
|
|
16352
|
+
import("./model-GYOM5HF3.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16318
16353
|
reloadModelManager2();
|
|
16319
16354
|
triggerModelConfigChange();
|
|
16320
16355
|
onDone();
|
|
@@ -25180,7 +25215,7 @@ function useStatusLine() {
|
|
|
25180
25215
|
// src/ui/components/PromptInput.tsx
|
|
25181
25216
|
async function interpretHashCommand(input) {
|
|
25182
25217
|
try {
|
|
25183
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
25218
|
+
const { queryQuick: queryQuick2 } = await import("./llm-5MR7DEOU.js");
|
|
25184
25219
|
const systemPrompt = [
|
|
25185
25220
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
25186
25221
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -25493,7 +25528,7 @@ function PromptInput({
|
|
|
25493
25528
|
if (messages2.length) {
|
|
25494
25529
|
if (mode === "bash") {
|
|
25495
25530
|
onQuery(messages2, newAbortController).then(async () => {
|
|
25496
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
25531
|
+
const { getCwd: getCwd2 } = await import("./state-NA4BTHFE.js");
|
|
25497
25532
|
setCurrentPwd(getCwd2());
|
|
25498
25533
|
});
|
|
25499
25534
|
} else {
|
|
@@ -28672,7 +28707,7 @@ import { homedir as homedir8 } from "os";
|
|
|
28672
28707
|
// src/commands/agents/generation.ts
|
|
28673
28708
|
import { randomUUID as randomUUID6 } from "crypto";
|
|
28674
28709
|
async function generateAgentWithClaude(prompt) {
|
|
28675
|
-
const { queryModel } = await import("./llm-
|
|
28710
|
+
const { queryModel } = await import("./llm-5MR7DEOU.js");
|
|
28676
28711
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
28677
28712
|
|
|
28678
28713
|
Return your response as a JSON object with exactly these fields:
|