pybao-cli 1.3.21 → 1.3.22
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-U233WVGQ.js +42 -0
- package/dist/{acp-5COUMMLN.js → acp-MGSGKN7I.js} +26 -26
- package/dist/{agentsValidate-DKGJ5OX4.js → agentsValidate-E24UODFJ.js} +7 -7
- package/dist/{ask-QW644CAZ.js → ask-WVNNLMSZ.js} +25 -25
- package/dist/{autoUpdater-WUTZGWEM.js → autoUpdater-R5VI5NS5.js} +3 -3
- package/dist/{chunk-KANFF7SM.js → chunk-3BDBJ76H.js} +1 -1
- package/dist/{chunk-LCN6UMC2.js → chunk-3GSGGTNG.js} +1 -1
- package/dist/{chunk-YEDGG2CM.js → chunk-3NJ6JQ2M.js} +6 -12
- package/dist/chunk-3NJ6JQ2M.js.map +7 -0
- package/dist/{chunk-VXPAJIEJ.js → chunk-7OOX64M4.js} +3 -3
- package/dist/{chunk-4FSJIGYW.js → chunk-B4Z3JBM6.js} +2 -2
- package/dist/{chunk-Q27MKRQ5.js → chunk-BDRQU7KP.js} +4 -4
- package/dist/{chunk-YVLQDPDN.js → chunk-BHRZG737.js} +2 -2
- package/dist/{chunk-KAAPCK6R.js → chunk-BLZG4P4W.js} +4 -4
- package/dist/{chunk-Z7P6CYVJ.js → chunk-C27RUGNT.js} +2 -2
- package/dist/{chunk-PF3A6LJD.js → chunk-D5XZE6VD.js} +1 -1
- package/dist/{chunk-RSCGHYX4.js → chunk-HIN7NLKB.js} +3 -3
- package/dist/{chunk-3NZTTP2W.js → chunk-JPR5LF4I.js} +33 -33
- package/dist/{chunk-3NZTTP2W.js.map → chunk-JPR5LF4I.js.map} +2 -2
- package/dist/{chunk-PJ2UYD4Q.js → chunk-JZTNGHID.js} +2 -2
- package/dist/{chunk-6IQ6RNSC.js → chunk-O6LTYDEM.js} +2 -2
- package/dist/{chunk-WU4SXVFN.js → chunk-OFNZCXTL.js} +1130 -345
- package/dist/chunk-OFNZCXTL.js.map +7 -0
- package/dist/{chunk-HJPCQROC.js → chunk-OK6YLALO.js} +1 -1
- package/dist/{chunk-DTOUFBLG.js → chunk-Q6NZXTU7.js} +3 -3
- package/dist/{chunk-ZQLAZEQ6.js → chunk-QKK7OEVT.js} +1 -1
- package/dist/{chunk-X2LHX4TN.js → chunk-QPYMEJ7J.js} +1 -1
- package/dist/{chunk-IA565ACR.js → chunk-RGMQE5W7.js} +3 -3
- package/dist/{chunk-UDXJD3B5.js → chunk-RQHQ3V5R.js} +1 -1
- package/dist/{chunk-UDXJD3B5.js.map → chunk-RQHQ3V5R.js.map} +1 -1
- package/dist/{chunk-Q74XWGWS.js → chunk-SPSZIFD3.js} +1 -1
- package/dist/{chunk-TBU6CIW7.js → chunk-TB6NRY5H.js} +1 -1
- package/dist/{chunk-LTUBDTY7.js → chunk-UDHQY254.js} +1 -1
- package/dist/{chunk-ILKTL4HO.js → chunk-VHPGBFI2.js} +2 -2
- package/dist/{chunk-LFT6GMDJ.js → chunk-VNX4XL5W.js} +3 -3
- package/dist/{chunk-PWZPQLA5.js → chunk-Z3QCGGDI.js} +3 -3
- package/dist/{cli-5AQQAMDZ.js → cli-VHCSI3MC.js} +77 -77
- package/dist/commands-OAY7CB4V.js +46 -0
- package/dist/{config-XUTCS32D.js → config-L3IXWETT.js} +4 -4
- package/dist/{context-BJBOG5ML.js → context-F2IIOXEP.js} +5 -5
- package/dist/{customCommands-FCGJVPMM.js → customCommands-POVQCNWI.js} +4 -4
- package/dist/{env-PCEHNXQ7.js → env-5OAJSWRZ.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{llm-YXYHYLLL.js → llm-TQRNSHD2.js} +26 -26
- package/dist/{llmLazy-BWNMELGK.js → llmLazy-LP3VLWST.js} +1 -1
- package/dist/{loader-UXDARCPS.js → loader-LERT53VD.js} +4 -4
- package/dist/{mcp-OD4RSPAA.js → mcp-7WABABD5.js} +7 -7
- package/dist/{mentionProcessor-MRLHJCG7.js → mentionProcessor-3EES7EOM.js} +5 -5
- package/dist/{messages-WDA7YIIR.js → messages-KDYSBWPF.js} +1 -1
- package/dist/{model-E7A4ZTH3.js → model-H5SZYB3G.js} +5 -5
- package/dist/{openai-6VE4E33T.js → openai-OJDXHXW7.js} +5 -5
- package/dist/{outputStyles-ALNI7DMM.js → outputStyles-KPZL4IL6.js} +4 -4
- package/dist/{pluginRuntime-ZJM5CYBI.js → pluginRuntime-FMYJ2OLJ.js} +6 -6
- package/dist/{pluginValidation-P7F37TRM.js → pluginValidation-3XL3376C.js} +6 -6
- package/dist/prompts-5ZSQVFA4.js +48 -0
- package/dist/{pybAgentSessionLoad-DXA2GXAD.js → pybAgentSessionLoad-CWFVVJJP.js} +4 -4
- package/dist/{pybAgentSessionResume-GSTPB6PZ.js → pybAgentSessionResume-NOZGRPWX.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-NJYZ5ZC5.js → pybAgentStreamJsonSession-XJBNIDCX.js} +1 -1
- package/dist/{pybHooks-G4QW3QWC.js → pybHooks-X4Z6SUM3.js} +4 -4
- package/dist/query-I6RAXHNW.js +50 -0
- package/dist/{ripgrep-RLDVZ7XG.js → ripgrep-2FLGSL5E.js} +3 -3
- package/dist/{skillMarketplace-N45WWBB3.js → skillMarketplace-EZFJG2VQ.js} +3 -3
- package/dist/{state-PVTHPFRK.js → state-TJYRRWRD.js} +2 -2
- package/dist/{theme-7YQL4AQ4.js → theme-XFYRVMO2.js} +5 -5
- package/dist/{toolPermissionSettings-EGYQOIYG.js → toolPermissionSettings-DFXSQ5HV.js} +6 -6
- package/dist/tools-CNY53VUO.js +47 -0
- package/dist/{userInput-6Z5PYOLR.js → userInput-EU5BLE3W.js} +27 -27
- package/package.json +1 -1
- package/dist/REPL-4QRH44HC.js +0 -42
- package/dist/chunk-WU4SXVFN.js.map +0 -7
- package/dist/chunk-YEDGG2CM.js.map +0 -7
- package/dist/commands-UAI6QEAI.js +0 -46
- package/dist/prompts-VPJ5WN33.js +0 -48
- package/dist/query-LGA6DMR3.js +0 -50
- package/dist/tools-CMR3PLSX.js +0 -47
- /package/dist/{REPL-4QRH44HC.js.map → REPL-U233WVGQ.js.map} +0 -0
- /package/dist/{acp-5COUMMLN.js.map → acp-MGSGKN7I.js.map} +0 -0
- /package/dist/{agentsValidate-DKGJ5OX4.js.map → agentsValidate-E24UODFJ.js.map} +0 -0
- /package/dist/{ask-QW644CAZ.js.map → ask-WVNNLMSZ.js.map} +0 -0
- /package/dist/{autoUpdater-WUTZGWEM.js.map → autoUpdater-R5VI5NS5.js.map} +0 -0
- /package/dist/{chunk-KANFF7SM.js.map → chunk-3BDBJ76H.js.map} +0 -0
- /package/dist/{chunk-LCN6UMC2.js.map → chunk-3GSGGTNG.js.map} +0 -0
- /package/dist/{chunk-VXPAJIEJ.js.map → chunk-7OOX64M4.js.map} +0 -0
- /package/dist/{chunk-4FSJIGYW.js.map → chunk-B4Z3JBM6.js.map} +0 -0
- /package/dist/{chunk-Q27MKRQ5.js.map → chunk-BDRQU7KP.js.map} +0 -0
- /package/dist/{chunk-YVLQDPDN.js.map → chunk-BHRZG737.js.map} +0 -0
- /package/dist/{chunk-KAAPCK6R.js.map → chunk-BLZG4P4W.js.map} +0 -0
- /package/dist/{chunk-Z7P6CYVJ.js.map → chunk-C27RUGNT.js.map} +0 -0
- /package/dist/{chunk-PF3A6LJD.js.map → chunk-D5XZE6VD.js.map} +0 -0
- /package/dist/{chunk-RSCGHYX4.js.map → chunk-HIN7NLKB.js.map} +0 -0
- /package/dist/{chunk-PJ2UYD4Q.js.map → chunk-JZTNGHID.js.map} +0 -0
- /package/dist/{chunk-6IQ6RNSC.js.map → chunk-O6LTYDEM.js.map} +0 -0
- /package/dist/{chunk-HJPCQROC.js.map → chunk-OK6YLALO.js.map} +0 -0
- /package/dist/{chunk-DTOUFBLG.js.map → chunk-Q6NZXTU7.js.map} +0 -0
- /package/dist/{chunk-ZQLAZEQ6.js.map → chunk-QKK7OEVT.js.map} +0 -0
- /package/dist/{chunk-X2LHX4TN.js.map → chunk-QPYMEJ7J.js.map} +0 -0
- /package/dist/{chunk-IA565ACR.js.map → chunk-RGMQE5W7.js.map} +0 -0
- /package/dist/{chunk-Q74XWGWS.js.map → chunk-SPSZIFD3.js.map} +0 -0
- /package/dist/{chunk-TBU6CIW7.js.map → chunk-TB6NRY5H.js.map} +0 -0
- /package/dist/{chunk-LTUBDTY7.js.map → chunk-UDHQY254.js.map} +0 -0
- /package/dist/{chunk-ILKTL4HO.js.map → chunk-VHPGBFI2.js.map} +0 -0
- /package/dist/{chunk-LFT6GMDJ.js.map → chunk-VNX4XL5W.js.map} +0 -0
- /package/dist/{chunk-PWZPQLA5.js.map → chunk-Z3QCGGDI.js.map} +0 -0
- /package/dist/{cli-5AQQAMDZ.js.map → cli-VHCSI3MC.js.map} +0 -0
- /package/dist/{commands-UAI6QEAI.js.map → commands-OAY7CB4V.js.map} +0 -0
- /package/dist/{config-XUTCS32D.js.map → config-L3IXWETT.js.map} +0 -0
- /package/dist/{context-BJBOG5ML.js.map → context-F2IIOXEP.js.map} +0 -0
- /package/dist/{customCommands-FCGJVPMM.js.map → customCommands-POVQCNWI.js.map} +0 -0
- /package/dist/{env-PCEHNXQ7.js.map → env-5OAJSWRZ.js.map} +0 -0
- /package/dist/{llm-YXYHYLLL.js.map → llm-TQRNSHD2.js.map} +0 -0
- /package/dist/{llmLazy-BWNMELGK.js.map → llmLazy-LP3VLWST.js.map} +0 -0
- /package/dist/{loader-UXDARCPS.js.map → loader-LERT53VD.js.map} +0 -0
- /package/dist/{mcp-OD4RSPAA.js.map → mcp-7WABABD5.js.map} +0 -0
- /package/dist/{mentionProcessor-MRLHJCG7.js.map → mentionProcessor-3EES7EOM.js.map} +0 -0
- /package/dist/{messages-WDA7YIIR.js.map → messages-KDYSBWPF.js.map} +0 -0
- /package/dist/{model-E7A4ZTH3.js.map → model-H5SZYB3G.js.map} +0 -0
- /package/dist/{openai-6VE4E33T.js.map → openai-OJDXHXW7.js.map} +0 -0
- /package/dist/{outputStyles-ALNI7DMM.js.map → outputStyles-KPZL4IL6.js.map} +0 -0
- /package/dist/{pluginRuntime-ZJM5CYBI.js.map → pluginRuntime-FMYJ2OLJ.js.map} +0 -0
- /package/dist/{pluginValidation-P7F37TRM.js.map → pluginValidation-3XL3376C.js.map} +0 -0
- /package/dist/{prompts-VPJ5WN33.js.map → prompts-5ZSQVFA4.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-DXA2GXAD.js.map → pybAgentSessionLoad-CWFVVJJP.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-GSTPB6PZ.js.map → pybAgentSessionResume-NOZGRPWX.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-NJYZ5ZC5.js.map → pybAgentStreamJsonSession-XJBNIDCX.js.map} +0 -0
- /package/dist/{pybHooks-G4QW3QWC.js.map → pybHooks-X4Z6SUM3.js.map} +0 -0
- /package/dist/{query-LGA6DMR3.js.map → query-I6RAXHNW.js.map} +0 -0
- /package/dist/{ripgrep-RLDVZ7XG.js.map → ripgrep-2FLGSL5E.js.map} +0 -0
- /package/dist/{skillMarketplace-N45WWBB3.js.map → skillMarketplace-EZFJG2VQ.js.map} +0 -0
- /package/dist/{state-PVTHPFRK.js.map → state-TJYRRWRD.js.map} +0 -0
- /package/dist/{theme-7YQL4AQ4.js.map → theme-XFYRVMO2.js.map} +0 -0
- /package/dist/{toolPermissionSettings-EGYQOIYG.js.map → toolPermissionSettings-DFXSQ5HV.js.map} +0 -0
- /package/dist/{tools-CMR3PLSX.js.map → tools-CNY53VUO.js.map} +0 -0
- /package/dist/{userInput-6Z5PYOLR.js.map → userInput-EU5BLE3W.js.map} +0 -0
|
@@ -3,7 +3,7 @@ const require = __pybCreateRequire(import.meta.url);
|
|
|
3
3
|
|
|
4
4
|
// src/services/ai/llmLazy.ts
|
|
5
5
|
async function queryLLM(messages, systemPrompt, maxThinkingTokens, tools, signal, options) {
|
|
6
|
-
const { queryLLM: inner } = await import("./llm-
|
|
6
|
+
const { queryLLM: inner } = await import("./llm-TQRNSHD2.js");
|
|
7
7
|
return inner(
|
|
8
8
|
messages,
|
|
9
9
|
systemPrompt,
|
|
@@ -14,15 +14,15 @@ async function queryLLM(messages, systemPrompt, maxThinkingTokens, tools, signal
|
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
async function queryQuick(args) {
|
|
17
|
-
const { queryQuick: inner } = await import("./llm-
|
|
17
|
+
const { queryQuick: inner } = await import("./llm-TQRNSHD2.js");
|
|
18
18
|
return inner(args);
|
|
19
19
|
}
|
|
20
20
|
async function verifyApiKey(apiKey, baseURL, provider) {
|
|
21
|
-
const { verifyApiKey: inner } = await import("./llm-
|
|
21
|
+
const { verifyApiKey: inner } = await import("./llm-TQRNSHD2.js");
|
|
22
22
|
return inner(apiKey, baseURL, provider);
|
|
23
23
|
}
|
|
24
24
|
async function fetchAnthropicModels(apiKey, baseURL) {
|
|
25
|
-
const { fetchAnthropicModels: inner } = await import("./llm-
|
|
25
|
+
const { fetchAnthropicModels: inner } = await import("./llm-TQRNSHD2.js");
|
|
26
26
|
return inner(apiKey, baseURL);
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
PLAN_SLUG_VERBS,
|
|
10
10
|
getCwd,
|
|
11
11
|
getPybBaseDir
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TB6NRY5H.js";
|
|
13
13
|
import {
|
|
14
14
|
MACRO
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RQHQ3V5R.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/protocol/pybAgentSessionLog.ts
|
|
18
18
|
import { execFileSync } from "child_process";
|
|
@@ -2,13 +2,13 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
MarketplaceManifestSchema
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3BDBJ76H.js";
|
|
6
6
|
import {
|
|
7
7
|
parseFrontmatter
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BHRZG737.js";
|
|
9
9
|
import {
|
|
10
10
|
getCwd
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TB6NRY5H.js";
|
|
12
12
|
|
|
13
13
|
// src/services/plugins/pluginValidation.ts
|
|
14
14
|
import { existsSync, lstatSync, readFileSync } from "node:fs";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listPybAgentSessions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-D5XZE6VD.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_TIMEOUT_MS,
|
|
8
8
|
FallbackToolUseRejectedMessage,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
listMCPServers,
|
|
17
17
|
loadMergedSettings,
|
|
18
18
|
normalizeSandboxRuntimeConfigFromSettings
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BDRQU7KP.js";
|
|
20
20
|
import {
|
|
21
21
|
formatValidationResult,
|
|
22
22
|
validatePluginOrMarketplacePath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HIN7NLKB.js";
|
|
24
24
|
import {
|
|
25
25
|
addMarketplace,
|
|
26
26
|
disableSkillPlugin,
|
|
@@ -33,15 +33,15 @@ import {
|
|
|
33
33
|
refreshMarketplaceAsync,
|
|
34
34
|
removeMarketplace,
|
|
35
35
|
uninstallSkillPlugin
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3BDBJ76H.js";
|
|
37
37
|
import {
|
|
38
38
|
loadPybAgentSessionMessages
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-OK6YLALO.js";
|
|
40
40
|
import {
|
|
41
41
|
appendSessionCustomTitleRecord,
|
|
42
42
|
appendSessionJsonlFromMessage,
|
|
43
43
|
appendSessionTagRecord
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-C27RUGNT.js";
|
|
45
45
|
import {
|
|
46
46
|
getRequestStatus,
|
|
47
47
|
setRequestStatus,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
runStopHooks,
|
|
59
59
|
runUserPromptSubmitHooks,
|
|
60
60
|
updateHookTranscriptForMessages
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-3NJ6JQ2M.js";
|
|
62
62
|
import {
|
|
63
63
|
getPybAgentSessionId,
|
|
64
64
|
setPybAgentSessionId
|
|
@@ -71,34 +71,34 @@ import {
|
|
|
71
71
|
getOutputStyleSystemPromptAdditions,
|
|
72
72
|
resolveOutputStyleName,
|
|
73
73
|
setCurrentOutputStyle
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-B4Z3JBM6.js";
|
|
75
75
|
import {
|
|
76
76
|
fetchCustomModels,
|
|
77
77
|
getModelFeatures
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-VHPGBFI2.js";
|
|
79
79
|
import {
|
|
80
80
|
queryLLM,
|
|
81
81
|
queryQuick,
|
|
82
82
|
verifyApiKey
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-BLZG4P4W.js";
|
|
84
84
|
import {
|
|
85
85
|
listAllContentFiles,
|
|
86
86
|
ripGrep
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-SPSZIFD3.js";
|
|
88
88
|
import {
|
|
89
89
|
getCustomCommandDirectories,
|
|
90
90
|
hasCustomCommands,
|
|
91
91
|
loadCustomCommands,
|
|
92
92
|
reloadCustomCommands
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-BHRZG737.js";
|
|
94
94
|
import {
|
|
95
95
|
loadToolPermissionContextFromDisk,
|
|
96
96
|
persistToolPermissionUpdateToDisk
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-7OOX64M4.js";
|
|
98
98
|
import {
|
|
99
99
|
getSettingsFileCandidates,
|
|
100
100
|
loadSettingsWithLegacyFallback
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-QKK7OEVT.js";
|
|
102
102
|
import {
|
|
103
103
|
applyToolPermissionContextUpdate,
|
|
104
104
|
createDefaultToolPermissionContext
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
resetReminderSession,
|
|
112
112
|
setTodos,
|
|
113
113
|
systemReminderService
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-JZTNGHID.js";
|
|
115
115
|
import {
|
|
116
116
|
getSessionState
|
|
117
117
|
} from "./chunk-ERMQRV55.js";
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
getActiveAgents,
|
|
121
121
|
getAgentByType,
|
|
122
122
|
getAllAgents
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-O6LTYDEM.js";
|
|
124
124
|
import {
|
|
125
125
|
getSessionPlugins
|
|
126
126
|
} from "./chunk-BJSWTHRM.js";
|
|
@@ -153,22 +153,22 @@ import {
|
|
|
153
153
|
processUserInput,
|
|
154
154
|
reorderMessages,
|
|
155
155
|
stripSystemMessages
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-3GSGGTNG.js";
|
|
157
157
|
import {
|
|
158
158
|
ModelManager,
|
|
159
159
|
getModelManager,
|
|
160
160
|
isDefaultSlowAndCapableModel
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-RGMQE5W7.js";
|
|
162
162
|
import {
|
|
163
163
|
getCodeStyle,
|
|
164
164
|
getContext,
|
|
165
165
|
getGitState,
|
|
166
166
|
getIsGit,
|
|
167
167
|
getProjectDocs
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-Z3QCGGDI.js";
|
|
169
169
|
import {
|
|
170
170
|
getTheme
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-QPYMEJ7J.js";
|
|
172
172
|
import {
|
|
173
173
|
DEFAULT_GLOBAL_CONFIG,
|
|
174
174
|
enableConfigs,
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
saveGlobalConfig,
|
|
182
182
|
setAllPointersToModel,
|
|
183
183
|
setModelPointer
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-VNX4XL5W.js";
|
|
185
185
|
import {
|
|
186
186
|
AbortError
|
|
187
187
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -190,7 +190,7 @@ import {
|
|
|
190
190
|
getCurrentRequest,
|
|
191
191
|
logUserFriendly,
|
|
192
192
|
markPhase
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-UDHQY254.js";
|
|
194
194
|
import {
|
|
195
195
|
ASCII_LOGO,
|
|
196
196
|
BunShell,
|
|
@@ -226,10 +226,10 @@ import {
|
|
|
226
226
|
renderBashNotification,
|
|
227
227
|
setActivePlanConversationKey,
|
|
228
228
|
setCwd
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-TB6NRY5H.js";
|
|
230
230
|
import {
|
|
231
231
|
MACRO
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-RQHQ3V5R.js";
|
|
233
233
|
import {
|
|
234
234
|
formatTotalCost,
|
|
235
235
|
getTotalAPIDuration,
|
|
@@ -417,7 +417,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
417
417
|
var getCommandPrefix = memoize(
|
|
418
418
|
async (command4, abortSignal) => {
|
|
419
419
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
420
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
420
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-TQRNSHD2.js");
|
|
421
421
|
const response = await queryQuick2({
|
|
422
422
|
systemPrompt,
|
|
423
423
|
userPrompt,
|
|
@@ -4457,7 +4457,7 @@ function formatParseError(error) {
|
|
|
4457
4457
|
return error instanceof Error ? error.message : String(error);
|
|
4458
4458
|
}
|
|
4459
4459
|
async function defaultGateQuery(args) {
|
|
4460
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4460
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-TQRNSHD2.js");
|
|
4461
4461
|
const messages = [
|
|
4462
4462
|
{
|
|
4463
4463
|
type: "user",
|
|
@@ -11001,7 +11001,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11001
11001
|
}
|
|
11002
11002
|
saveGlobalConfig(config2);
|
|
11003
11003
|
try {
|
|
11004
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11004
|
+
const { resetAnthropicClient } = await import("./llm-TQRNSHD2.js");
|
|
11005
11005
|
resetAnthropicClient();
|
|
11006
11006
|
} catch {
|
|
11007
11007
|
}
|
|
@@ -15283,7 +15283,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15283
15283
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15284
15284
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15285
15285
|
if (dirs.length === 0) return [];
|
|
15286
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15286
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-FMYJ2OLJ.js");
|
|
15287
15287
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15288
15288
|
return errors;
|
|
15289
15289
|
}
|
|
@@ -15952,7 +15952,7 @@ async function call(onDone, context) {
|
|
|
15952
15952
|
ModelConfig,
|
|
15953
15953
|
{
|
|
15954
15954
|
onClose: () => {
|
|
15955
|
-
import("./model-
|
|
15955
|
+
import("./model-H5SZYB3G.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
15956
15956
|
reloadModelManager2();
|
|
15957
15957
|
triggerModelConfigChange();
|
|
15958
15958
|
onDone();
|
|
@@ -23152,7 +23152,7 @@ function useStatusLine() {
|
|
|
23152
23152
|
const lastCommandRef = useRef10(null);
|
|
23153
23153
|
const abortRef = useRef10(null);
|
|
23154
23154
|
useEffect21(() => {
|
|
23155
|
-
const enabled = process.env.
|
|
23155
|
+
const enabled = process.env.PYB_STATUSLINE_ENABLED === "1" || process.env.NODE_ENV !== "test";
|
|
23156
23156
|
if (!enabled) return;
|
|
23157
23157
|
const shell = BunShell.getInstance();
|
|
23158
23158
|
let alive = true;
|
|
@@ -23194,7 +23194,7 @@ function useStatusLine() {
|
|
|
23194
23194
|
// src/ui/components/PromptInput.tsx
|
|
23195
23195
|
async function interpretHashCommand(input) {
|
|
23196
23196
|
try {
|
|
23197
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
23197
|
+
const { queryQuick: queryQuick2 } = await import("./llm-TQRNSHD2.js");
|
|
23198
23198
|
const systemPrompt = [
|
|
23199
23199
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
23200
23200
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -23507,7 +23507,7 @@ function PromptInput({
|
|
|
23507
23507
|
if (messages2.length) {
|
|
23508
23508
|
if (mode === "bash") {
|
|
23509
23509
|
onQuery(messages2, newAbortController).then(async () => {
|
|
23510
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
23510
|
+
const { getCwd: getCwd2 } = await import("./state-TJYRRWRD.js");
|
|
23511
23511
|
setCurrentPwd(getCwd2());
|
|
23512
23512
|
});
|
|
23513
23513
|
} else {
|
|
@@ -26266,7 +26266,7 @@ import { homedir as homedir7 } from "os";
|
|
|
26266
26266
|
// src/commands/agents/generation.ts
|
|
26267
26267
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
26268
26268
|
async function generateAgentWithClaude(prompt) {
|
|
26269
|
-
const { queryModel } = await import("./llm-
|
|
26269
|
+
const { queryModel } = await import("./llm-TQRNSHD2.js");
|
|
26270
26270
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
26271
26271
|
|
|
26272
26272
|
Return your response as a JSON object with exactly these fields:
|