pybao-cli 1.3.77 → 1.3.78
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-E73G5CWW.js +42 -0
- package/dist/{acp-J6ROVKFR.js → acp-KYH5HR3C.js} +27 -27
- package/dist/{agentsValidate-IO35ZB7R.js → agentsValidate-5X6PA7UT.js} +7 -7
- package/dist/{ask-Y27O7WZB.js → ask-RUCMKC7X.js} +25 -25
- package/dist/{autoUpdater-FFQBQVU3.js → autoUpdater-OKFWY47U.js} +3 -3
- package/dist/{chunk-3EF6RG5V.js → chunk-2M2ECQ6E.js} +1 -1
- package/dist/{chunk-XKL2C2O2.js → chunk-3IOLSZZF.js} +2 -2
- package/dist/{chunk-OWQIRUNZ.js → chunk-3ST2U5IQ.js} +1 -1
- package/dist/{chunk-S3T4MUKD.js → chunk-5JIGBIR2.js} +2 -2
- package/dist/{chunk-A2QHW7CB.js → chunk-5QJKELHH.js} +1 -1
- package/dist/{chunk-NUDBQT6U.js → chunk-6ZCT2WED.js} +1 -1
- package/dist/{chunk-NUDBQT6U.js.map → chunk-6ZCT2WED.js.map} +1 -1
- package/dist/{chunk-UNVPSHQ2.js → chunk-7BK273D7.js} +1 -1
- package/dist/{chunk-3YLLXPIH.js → chunk-7E4V7VX3.js} +18 -48
- package/dist/chunk-7E4V7VX3.js.map +7 -0
- package/dist/{chunk-H6T7H7LT.js → chunk-B3H6ZCFG.js} +20 -21
- package/dist/chunk-B3H6ZCFG.js.map +7 -0
- package/dist/{chunk-5XGQOH5R.js → chunk-BOYZAS4R.js} +3 -3
- package/dist/{chunk-WL6WMB2V.js → chunk-BUAT64GH.js} +2 -2
- package/dist/{chunk-L5O2UCS2.js → chunk-CTZOQUUI.js} +4 -4
- package/dist/{chunk-PJGMJENZ.js → chunk-DPM5KKKR.js} +1 -1
- package/dist/{chunk-HKFHNDP3.js → chunk-E43DMKOM.js} +1 -1
- package/dist/{chunk-5RPMKOLY.js → chunk-EPRQHLFC.js} +4 -4
- package/dist/{chunk-VQR2EOPQ.js → chunk-HX32BMWC.js} +2 -2
- package/dist/{chunk-TSDRVI5M.js → chunk-I2GWO4KE.js} +3 -3
- package/dist/{chunk-NNJNDVJD.js → chunk-IAWIWSOQ.js} +3 -3
- package/dist/{chunk-OMYHUPC2.js → chunk-LAND3SRL.js} +37 -37
- package/dist/{chunk-MKVAZLQO.js → chunk-LGZCGL3K.js} +3 -3
- package/dist/{chunk-B74SMVB6.js → chunk-NQCJOKDL.js} +3 -3
- package/dist/{chunk-454RCERZ.js → chunk-OWW53WVT.js} +2 -2
- package/dist/{chunk-RBE7GJCB.js → chunk-QEI6DBOY.js} +1 -1
- package/dist/{chunk-OQ6HRRWQ.js → chunk-T3XFIIOD.js} +1 -1
- package/dist/{chunk-WWX73YRV.js → chunk-TZ3IB6EB.js} +2 -2
- package/dist/{chunk-QQ3H6VUF.js → chunk-YYD6PI6O.js} +3 -3
- package/dist/{chunk-GO7XD3ER.js → chunk-ZLIC4UKS.js} +3 -3
- package/dist/{chunk-M32V45DG.js → chunk-ZP3JLALW.js} +1 -1
- package/dist/{cli-KEYTXCC5.js → cli-FJCUWQAW.js} +78 -78
- package/dist/commands-OLQCABB5.js +46 -0
- package/dist/{config-TRRHGKGN.js → config-LBZUXBBN.js} +4 -4
- package/dist/{context-6PXQ7UA5.js → context-Q53NFDOZ.js} +5 -5
- package/dist/{customCommands-IOE7XYUO.js → customCommands-DGEGYNT7.js} +4 -4
- package/dist/{env-MQBD55MF.js → env-NZEN4KIR.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{llm-FH4YCHMV.js → llm-MCQKDVRQ.js} +26 -26
- package/dist/{llmLazy-NRQZG66E.js → llmLazy-RF4NYWDO.js} +1 -1
- package/dist/{loader-56GNLAJH.js → loader-KT4BHQOM.js} +4 -4
- package/dist/{lspAnchor-X5T4A64O.js → lspAnchor-5HHJKFHU.js} +4 -4
- package/dist/{manager-MFZPWCIE.js → manager-6VIGOKN2.js} +4 -4
- package/dist/{mcp-X7HGIUPU.js → mcp-HLH6YLKP.js} +7 -7
- package/dist/{mentionProcessor-C5OFPI3P.js → mentionProcessor-WXGBQYT6.js} +5 -5
- package/dist/{messages-PIOVYYOG.js → messages-RNBFKM2N.js} +1 -1
- package/dist/{model-H6QVZWHJ.js → model-NTZF3KAO.js} +5 -5
- package/dist/{openai-IAVIF6FF.js → openai-WUBHKKFB.js} +5 -5
- package/dist/{outputStyles-GLWI6TYW.js → outputStyles-667NVW7Y.js} +4 -4
- package/dist/{pluginRuntime-2Z5RZFIO.js → pluginRuntime-XKTVVWCX.js} +6 -6
- package/dist/{pluginValidation-SA2CAWR7.js → pluginValidation-ZYND3HAU.js} +6 -6
- package/dist/prompts-3TAHBJL3.js +48 -0
- package/dist/{pybAgentSessionLoad-AGTRRMW6.js → pybAgentSessionLoad-2S6YVNQI.js} +4 -4
- package/dist/{pybAgentSessionResume-3CC7RG77.js → pybAgentSessionResume-JVCZVFDE.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-O6HGKNB2.js → pybAgentStreamJsonSession-5JVNB2US.js} +1 -1
- package/dist/{pybHooks-WUWB6R4D.js → pybHooks-LFTPBZG5.js} +4 -4
- package/dist/query-IPJCWNRQ.js +50 -0
- package/dist/{ripgrep-KXA677M7.js → ripgrep-HBPV2FBR.js} +3 -3
- package/dist/{skillMarketplace-V6AQF5EX.js → skillMarketplace-26YHSW2E.js} +3 -3
- package/dist/{state-PV4LIK6E.js → state-EMMT246A.js} +2 -2
- package/dist/{theme-B3IU7LOI.js → theme-KJCMEQPH.js} +5 -5
- package/dist/{toolPermissionSettings-A57ZK2Z3.js → toolPermissionSettings-G3ODXGTP.js} +6 -6
- package/dist/tools-TCX3OSR5.js +50 -0
- package/dist/{userInput-AEZTSBRV.js → userInput-TIOAK2UB.js} +27 -27
- package/package.json +1 -1
- package/dist/REPL-IIW6YW5T.js +0 -42
- package/dist/chunk-3YLLXPIH.js.map +0 -7
- package/dist/chunk-H6T7H7LT.js.map +0 -7
- package/dist/commands-6VWJUJOW.js +0 -46
- package/dist/prompts-3YHVYOTG.js +0 -48
- package/dist/query-5FZSUUMJ.js +0 -50
- package/dist/tools-2ARQSCBL.js +0 -50
- /package/dist/{REPL-IIW6YW5T.js.map → REPL-E73G5CWW.js.map} +0 -0
- /package/dist/{acp-J6ROVKFR.js.map → acp-KYH5HR3C.js.map} +0 -0
- /package/dist/{agentsValidate-IO35ZB7R.js.map → agentsValidate-5X6PA7UT.js.map} +0 -0
- /package/dist/{ask-Y27O7WZB.js.map → ask-RUCMKC7X.js.map} +0 -0
- /package/dist/{autoUpdater-FFQBQVU3.js.map → autoUpdater-OKFWY47U.js.map} +0 -0
- /package/dist/{chunk-3EF6RG5V.js.map → chunk-2M2ECQ6E.js.map} +0 -0
- /package/dist/{chunk-XKL2C2O2.js.map → chunk-3IOLSZZF.js.map} +0 -0
- /package/dist/{chunk-OWQIRUNZ.js.map → chunk-3ST2U5IQ.js.map} +0 -0
- /package/dist/{chunk-S3T4MUKD.js.map → chunk-5JIGBIR2.js.map} +0 -0
- /package/dist/{chunk-A2QHW7CB.js.map → chunk-5QJKELHH.js.map} +0 -0
- /package/dist/{chunk-UNVPSHQ2.js.map → chunk-7BK273D7.js.map} +0 -0
- /package/dist/{chunk-5XGQOH5R.js.map → chunk-BOYZAS4R.js.map} +0 -0
- /package/dist/{chunk-WL6WMB2V.js.map → chunk-BUAT64GH.js.map} +0 -0
- /package/dist/{chunk-L5O2UCS2.js.map → chunk-CTZOQUUI.js.map} +0 -0
- /package/dist/{chunk-PJGMJENZ.js.map → chunk-DPM5KKKR.js.map} +0 -0
- /package/dist/{chunk-HKFHNDP3.js.map → chunk-E43DMKOM.js.map} +0 -0
- /package/dist/{chunk-5RPMKOLY.js.map → chunk-EPRQHLFC.js.map} +0 -0
- /package/dist/{chunk-VQR2EOPQ.js.map → chunk-HX32BMWC.js.map} +0 -0
- /package/dist/{chunk-TSDRVI5M.js.map → chunk-I2GWO4KE.js.map} +0 -0
- /package/dist/{chunk-NNJNDVJD.js.map → chunk-IAWIWSOQ.js.map} +0 -0
- /package/dist/{chunk-OMYHUPC2.js.map → chunk-LAND3SRL.js.map} +0 -0
- /package/dist/{chunk-MKVAZLQO.js.map → chunk-LGZCGL3K.js.map} +0 -0
- /package/dist/{chunk-B74SMVB6.js.map → chunk-NQCJOKDL.js.map} +0 -0
- /package/dist/{chunk-454RCERZ.js.map → chunk-OWW53WVT.js.map} +0 -0
- /package/dist/{chunk-RBE7GJCB.js.map → chunk-QEI6DBOY.js.map} +0 -0
- /package/dist/{chunk-OQ6HRRWQ.js.map → chunk-T3XFIIOD.js.map} +0 -0
- /package/dist/{chunk-WWX73YRV.js.map → chunk-TZ3IB6EB.js.map} +0 -0
- /package/dist/{chunk-QQ3H6VUF.js.map → chunk-YYD6PI6O.js.map} +0 -0
- /package/dist/{chunk-GO7XD3ER.js.map → chunk-ZLIC4UKS.js.map} +0 -0
- /package/dist/{chunk-M32V45DG.js.map → chunk-ZP3JLALW.js.map} +0 -0
- /package/dist/{cli-KEYTXCC5.js.map → cli-FJCUWQAW.js.map} +0 -0
- /package/dist/{commands-6VWJUJOW.js.map → commands-OLQCABB5.js.map} +0 -0
- /package/dist/{config-TRRHGKGN.js.map → config-LBZUXBBN.js.map} +0 -0
- /package/dist/{context-6PXQ7UA5.js.map → context-Q53NFDOZ.js.map} +0 -0
- /package/dist/{customCommands-IOE7XYUO.js.map → customCommands-DGEGYNT7.js.map} +0 -0
- /package/dist/{env-MQBD55MF.js.map → env-NZEN4KIR.js.map} +0 -0
- /package/dist/{llm-FH4YCHMV.js.map → llm-MCQKDVRQ.js.map} +0 -0
- /package/dist/{llmLazy-NRQZG66E.js.map → llmLazy-RF4NYWDO.js.map} +0 -0
- /package/dist/{loader-56GNLAJH.js.map → loader-KT4BHQOM.js.map} +0 -0
- /package/dist/{lspAnchor-X5T4A64O.js.map → lspAnchor-5HHJKFHU.js.map} +0 -0
- /package/dist/{manager-MFZPWCIE.js.map → manager-6VIGOKN2.js.map} +0 -0
- /package/dist/{mcp-X7HGIUPU.js.map → mcp-HLH6YLKP.js.map} +0 -0
- /package/dist/{mentionProcessor-C5OFPI3P.js.map → mentionProcessor-WXGBQYT6.js.map} +0 -0
- /package/dist/{messages-PIOVYYOG.js.map → messages-RNBFKM2N.js.map} +0 -0
- /package/dist/{model-H6QVZWHJ.js.map → model-NTZF3KAO.js.map} +0 -0
- /package/dist/{openai-IAVIF6FF.js.map → openai-WUBHKKFB.js.map} +0 -0
- /package/dist/{outputStyles-GLWI6TYW.js.map → outputStyles-667NVW7Y.js.map} +0 -0
- /package/dist/{pluginRuntime-2Z5RZFIO.js.map → pluginRuntime-XKTVVWCX.js.map} +0 -0
- /package/dist/{pluginValidation-SA2CAWR7.js.map → pluginValidation-ZYND3HAU.js.map} +0 -0
- /package/dist/{prompts-3YHVYOTG.js.map → prompts-3TAHBJL3.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-AGTRRMW6.js.map → pybAgentSessionLoad-2S6YVNQI.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-3CC7RG77.js.map → pybAgentSessionResume-JVCZVFDE.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-O6HGKNB2.js.map → pybAgentStreamJsonSession-5JVNB2US.js.map} +0 -0
- /package/dist/{pybHooks-WUWB6R4D.js.map → pybHooks-LFTPBZG5.js.map} +0 -0
- /package/dist/{query-5FZSUUMJ.js.map → query-IPJCWNRQ.js.map} +0 -0
- /package/dist/{ripgrep-KXA677M7.js.map → ripgrep-HBPV2FBR.js.map} +0 -0
- /package/dist/{skillMarketplace-V6AQF5EX.js.map → skillMarketplace-26YHSW2E.js.map} +0 -0
- /package/dist/{state-PV4LIK6E.js.map → state-EMMT246A.js.map} +0 -0
- /package/dist/{theme-B3IU7LOI.js.map → theme-KJCMEQPH.js.map} +0 -0
- /package/dist/{toolPermissionSettings-A57ZK2Z3.js.map → toolPermissionSettings-G3ODXGTP.js.map} +0 -0
- /package/dist/{tools-2ARQSCBL.js.map → tools-TCX3OSR5.js.map} +0 -0
- /package/dist/{userInput-AEZTSBRV.js.map → userInput-TIOAK2UB.js.map} +0 -0
|
@@ -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-2M2ECQ6E.js";
|
|
6
6
|
import {
|
|
7
7
|
parseFrontmatter
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5JIGBIR2.js";
|
|
9
9
|
import {
|
|
10
10
|
getCwd
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-E43DMKOM.js";
|
|
12
12
|
|
|
13
13
|
// src/services/plugins/pluginValidation.ts
|
|
14
14
|
import { existsSync, lstatSync, readFileSync } from "node:fs";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-ERMQRV55.js";
|
|
7
7
|
import {
|
|
8
8
|
debug
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5QJKELHH.js";
|
|
10
10
|
import {
|
|
11
11
|
logError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-E43DMKOM.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/agent/storage.ts
|
|
15
15
|
import { existsSync, readFileSync, writeFileSync, mkdirSync } from "fs";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
getSettingsFileCandidates,
|
|
8
8
|
loadSettingsWithLegacyFallback
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-T3XFIIOD.js";
|
|
10
10
|
import {
|
|
11
11
|
getTheme
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DPM5KKKR.js";
|
|
13
13
|
import {
|
|
14
14
|
addMcprcServerForTesting,
|
|
15
15
|
getCurrentProjectConfig,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
safeParseJSON,
|
|
20
20
|
saveCurrentProjectConfig,
|
|
21
21
|
saveGlobalConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NQCJOKDL.js";
|
|
23
23
|
import {
|
|
24
24
|
PRODUCT_COMMAND,
|
|
25
25
|
PRODUCT_NAME,
|
|
26
26
|
getCwd,
|
|
27
27
|
logMCPError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-E43DMKOM.js";
|
|
29
29
|
|
|
30
30
|
// src/services/mcp/client.ts
|
|
31
31
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "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
|
MACRO
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6ZCT2WED.js";
|
|
6
6
|
|
|
7
7
|
// src/utils/state/index.ts
|
|
8
8
|
import { cwd } from "process";
|
|
@@ -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-MCQKDVRQ.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-MCQKDVRQ.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-MCQKDVRQ.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-MCQKDVRQ.js");
|
|
26
26
|
return inner(apiKey, baseURL);
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
} from "./chunk-ERMQRV55.js";
|
|
7
7
|
import {
|
|
8
8
|
getGlobalConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NQCJOKDL.js";
|
|
10
10
|
import {
|
|
11
11
|
debug,
|
|
12
12
|
getCurrentRequest,
|
|
13
13
|
logAPIError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5QJKELHH.js";
|
|
15
15
|
|
|
16
16
|
// src/services/ai/openai.ts
|
|
17
17
|
import { ProxyAgent, fetch } from "undici";
|
|
@@ -3,13 +3,13 @@ const require = __pybCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getGlobalConfig,
|
|
5
5
|
saveGlobalConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NQCJOKDL.js";
|
|
7
7
|
import {
|
|
8
8
|
debug
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5QJKELHH.js";
|
|
10
10
|
import {
|
|
11
11
|
logError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-E43DMKOM.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/model/index.ts
|
|
15
15
|
import { memoize } from "lodash-es";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
PRODUCT_NAME,
|
|
5
5
|
execFileNoThrow,
|
|
6
6
|
logError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-E43DMKOM.js";
|
|
8
8
|
import {
|
|
9
9
|
MACRO
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6ZCT2WED.js";
|
|
11
11
|
|
|
12
12
|
// src/utils/session/autoUpdater.ts
|
|
13
13
|
async function getSemver() {
|
|
@@ -82,7 +82,7 @@ async function checkAndNotifyUpdate() {
|
|
|
82
82
|
const [
|
|
83
83
|
{ isAutoUpdaterDisabled, getGlobalConfig, saveGlobalConfig },
|
|
84
84
|
{ env }
|
|
85
|
-
] = await Promise.all([import("./config-
|
|
85
|
+
] = await Promise.all([import("./config-LBZUXBBN.js"), import("./env-NZEN4KIR.js")]);
|
|
86
86
|
if (await isAutoUpdaterDisabled()) return;
|
|
87
87
|
if (await env.getIsDocker()) return;
|
|
88
88
|
if (!await env.hasInternetAccess()) return;
|
|
@@ -2,24 +2,24 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
loadPybAgentSessionMessages
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QEI6DBOY.js";
|
|
6
6
|
import {
|
|
7
7
|
listPybAgentSessions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZP3JLALW.js";
|
|
9
9
|
import {
|
|
10
10
|
appendSessionCustomTitleRecord,
|
|
11
11
|
appendSessionJsonlFromMessage,
|
|
12
12
|
appendSessionTagRecord
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TZ3IB6EB.js";
|
|
14
14
|
import {
|
|
15
15
|
fetchCustomModels,
|
|
16
16
|
getModelFeatures
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HX32BMWC.js";
|
|
18
18
|
import {
|
|
19
19
|
queryLLM,
|
|
20
20
|
queryQuick,
|
|
21
21
|
verifyApiKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EPRQHLFC.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_TIMEOUT_MS,
|
|
25
25
|
FallbackToolUseRejectedMessage,
|
|
@@ -33,11 +33,11 @@ import {
|
|
|
33
33
|
listMCPServers,
|
|
34
34
|
loadMergedSettings,
|
|
35
35
|
normalizeSandboxRuntimeConfigFromSettings
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-CTZOQUUI.js";
|
|
37
37
|
import {
|
|
38
38
|
formatValidationResult,
|
|
39
39
|
validatePluginOrMarketplacePath
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-BOYZAS4R.js";
|
|
41
41
|
import {
|
|
42
42
|
addMarketplace,
|
|
43
43
|
disableSkillPlugin,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
refreshMarketplaceAsync,
|
|
51
51
|
removeMarketplace,
|
|
52
52
|
uninstallSkillPlugin
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-2M2ECQ6E.js";
|
|
54
54
|
import {
|
|
55
55
|
emitReminderEvent,
|
|
56
56
|
generateSystemReminders,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
resetReminderSession,
|
|
60
60
|
setTodos,
|
|
61
61
|
systemReminderService
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-BUAT64GH.js";
|
|
63
63
|
import {
|
|
64
64
|
getSessionState
|
|
65
65
|
} from "./chunk-ERMQRV55.js";
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
getActiveAgents,
|
|
69
69
|
getAgentByType,
|
|
70
70
|
getAllAgents
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-3IOLSZZF.js";
|
|
72
72
|
import {
|
|
73
73
|
API_ERROR_MESSAGE_PREFIX,
|
|
74
74
|
CANCEL_MESSAGE,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
processUserInput,
|
|
99
99
|
reorderMessages,
|
|
100
100
|
stripSystemMessages
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-7BK273D7.js";
|
|
102
102
|
import {
|
|
103
103
|
getRequestStatus,
|
|
104
104
|
setRequestStatus,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
runStopHooks,
|
|
116
116
|
runUserPromptSubmitHooks,
|
|
117
117
|
updateHookTranscriptForMessages
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-ZLIC4UKS.js";
|
|
119
119
|
import {
|
|
120
120
|
getPybAgentSessionId,
|
|
121
121
|
setPybAgentSessionId
|
|
@@ -128,29 +128,29 @@ import {
|
|
|
128
128
|
getOutputStyleSystemPromptAdditions,
|
|
129
129
|
resolveOutputStyleName,
|
|
130
130
|
setCurrentOutputStyle
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-OWW53WVT.js";
|
|
132
132
|
import {
|
|
133
133
|
listAllContentFiles,
|
|
134
134
|
ripGrep,
|
|
135
135
|
tree
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-3ST2U5IQ.js";
|
|
137
137
|
import {
|
|
138
138
|
getCustomCommandDirectories,
|
|
139
139
|
hasCustomCommands,
|
|
140
140
|
loadCustomCommands,
|
|
141
141
|
reloadCustomCommands
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-5JIGBIR2.js";
|
|
143
143
|
import {
|
|
144
144
|
getSessionPlugins
|
|
145
145
|
} from "./chunk-BJSWTHRM.js";
|
|
146
146
|
import {
|
|
147
147
|
loadToolPermissionContextFromDisk,
|
|
148
148
|
persistToolPermissionUpdateToDisk
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-YYD6PI6O.js";
|
|
150
150
|
import {
|
|
151
151
|
getSettingsFileCandidates,
|
|
152
152
|
loadSettingsWithLegacyFallback
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-T3XFIIOD.js";
|
|
154
154
|
import {
|
|
155
155
|
applyToolPermissionContextUpdate,
|
|
156
156
|
createDefaultToolPermissionContext
|
|
@@ -159,17 +159,17 @@ import {
|
|
|
159
159
|
ModelManager,
|
|
160
160
|
getModelManager,
|
|
161
161
|
isDefaultSlowAndCapableModel
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-I2GWO4KE.js";
|
|
163
163
|
import {
|
|
164
164
|
getCodeStyle,
|
|
165
165
|
getContext,
|
|
166
166
|
getGitState,
|
|
167
167
|
getIsGit,
|
|
168
168
|
getProjectDocs
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-LGZCGL3K.js";
|
|
170
170
|
import {
|
|
171
171
|
getTheme
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-DPM5KKKR.js";
|
|
173
173
|
import {
|
|
174
174
|
DEFAULT_GLOBAL_CONFIG,
|
|
175
175
|
enableConfigs,
|
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
saveGlobalConfig,
|
|
183
183
|
setAllPointersToModel,
|
|
184
184
|
setModelPointer
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-NQCJOKDL.js";
|
|
186
186
|
import {
|
|
187
187
|
AbortError
|
|
188
188
|
} from "./chunk-RQVLBMP7.js";
|
|
@@ -191,7 +191,7 @@ import {
|
|
|
191
191
|
getCurrentRequest,
|
|
192
192
|
logUserFriendly,
|
|
193
193
|
markPhase
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-5QJKELHH.js";
|
|
195
195
|
import {
|
|
196
196
|
ASCII_LOGO,
|
|
197
197
|
BunShell,
|
|
@@ -227,10 +227,10 @@ import {
|
|
|
227
227
|
renderBashNotification,
|
|
228
228
|
setActivePlanConversationKey,
|
|
229
229
|
setCwd
|
|
230
|
-
} from "./chunk-
|
|
230
|
+
} from "./chunk-E43DMKOM.js";
|
|
231
231
|
import {
|
|
232
232
|
MACRO
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-6ZCT2WED.js";
|
|
234
234
|
import {
|
|
235
235
|
formatTotalCost,
|
|
236
236
|
getTotalAPIDuration,
|
|
@@ -418,7 +418,7 @@ var getCommandSubcommandPrefix = memoize(
|
|
|
418
418
|
var getCommandPrefix = memoize(
|
|
419
419
|
async (command4, abortSignal) => {
|
|
420
420
|
const { systemPrompt, userPrompt } = buildBashCommandPrefixDetectionPrompt(command4);
|
|
421
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-
|
|
421
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryQuick: queryQuick2 } = await import("./llm-MCQKDVRQ.js");
|
|
422
422
|
const response = await queryQuick2({
|
|
423
423
|
systemPrompt,
|
|
424
424
|
userPrompt,
|
|
@@ -4458,7 +4458,7 @@ function formatParseError(error) {
|
|
|
4458
4458
|
return error instanceof Error ? error.message : String(error);
|
|
4459
4459
|
}
|
|
4460
4460
|
async function defaultGateQuery(args) {
|
|
4461
|
-
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-
|
|
4461
|
+
const { API_ERROR_MESSAGE_PREFIX: API_ERROR_MESSAGE_PREFIX2, queryLLM: queryLLM2 } = await import("./llm-MCQKDVRQ.js");
|
|
4462
4462
|
const messages = [
|
|
4463
4463
|
{
|
|
4464
4464
|
type: "user",
|
|
@@ -6704,7 +6704,7 @@ var FileEditTool = {
|
|
|
6704
6704
|
const originalFileContent = currentFileContent;
|
|
6705
6705
|
let totalPatch = [];
|
|
6706
6706
|
const { SmartEdit } = await import("./smart-edit-677MCQMW.js");
|
|
6707
|
-
const { findLspAnchor } = await import("./lspAnchor-
|
|
6707
|
+
const { findLspAnchor } = await import("./lspAnchor-5HHJKFHU.js");
|
|
6708
6708
|
for (const op of editOperations) {
|
|
6709
6709
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6710
6710
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -6747,7 +6747,7 @@ ${op.search}`);
|
|
|
6747
6747
|
const endings = fileExistsBun(fullFilePath) ? detectLineEndings(fullFilePath) : "LF";
|
|
6748
6748
|
writeTextContent(fullFilePath, updatedFile, enc, endings);
|
|
6749
6749
|
if (verify) {
|
|
6750
|
-
const { LspClientManager } = await import("./manager-
|
|
6750
|
+
const { LspClientManager } = await import("./manager-6VIGOKN2.js");
|
|
6751
6751
|
const client = await LspClientManager.getInstance().getClientForFile(fullFilePath);
|
|
6752
6752
|
if (client) {
|
|
6753
6753
|
const ext = extname3(fullFilePath);
|
|
@@ -7659,7 +7659,7 @@ var FileReadTool = {
|
|
|
7659
7659
|
let finalLimit = limit;
|
|
7660
7660
|
if (symbol_name) {
|
|
7661
7661
|
try {
|
|
7662
|
-
const { LspClientManager } = await import("./manager-
|
|
7662
|
+
const { LspClientManager } = await import("./manager-6VIGOKN2.js");
|
|
7663
7663
|
const manager = LspClientManager.getInstance();
|
|
7664
7664
|
const symbols = await manager.documentSymbol(fullFilePath, getCwd());
|
|
7665
7665
|
if (!symbols || symbols.length === 0) {
|
|
@@ -8228,7 +8228,7 @@ var GlobTool = {
|
|
|
8228
8228
|
let files = raw.map((p) => isAbsolute7(p) ? p : join5(searchPath, p));
|
|
8229
8229
|
if (semantic) {
|
|
8230
8230
|
try {
|
|
8231
|
-
const { LspClientManager } = await import("./manager-
|
|
8231
|
+
const { LspClientManager } = await import("./manager-6VIGOKN2.js");
|
|
8232
8232
|
const symbols = await LspClientManager.getInstance().workspaceSymbol(pattern, searchPath);
|
|
8233
8233
|
const semanticFiles = symbols.map((s) => {
|
|
8234
8234
|
let filePath = s.location?.uri || "";
|
|
@@ -8543,7 +8543,7 @@ ${result.filenames.join("\n")}`;
|
|
|
8543
8543
|
if (symbol_type) {
|
|
8544
8544
|
lines.length = 0;
|
|
8545
8545
|
}
|
|
8546
|
-
const { LspClientManager } = await import("./manager-
|
|
8546
|
+
const { LspClientManager } = await import("./manager-6VIGOKN2.js");
|
|
8547
8547
|
const symbols = await LspClientManager.getInstance().workspaceSymbol(String(pattern), absolutePath);
|
|
8548
8548
|
let filtered = symbols;
|
|
8549
8549
|
const symbolType = symbol_type;
|
|
@@ -11366,7 +11366,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11366
11366
|
}
|
|
11367
11367
|
saveGlobalConfig(config2);
|
|
11368
11368
|
try {
|
|
11369
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11369
|
+
const { resetAnthropicClient } = await import("./llm-MCQKDVRQ.js");
|
|
11370
11370
|
resetAnthropicClient();
|
|
11371
11371
|
} catch {
|
|
11372
11372
|
}
|
|
@@ -15648,7 +15648,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15648
15648
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15649
15649
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15650
15650
|
if (dirs.length === 0) return [];
|
|
15651
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15651
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-XKTVVWCX.js");
|
|
15652
15652
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15653
15653
|
return errors;
|
|
15654
15654
|
}
|
|
@@ -16317,7 +16317,7 @@ async function call(onDone, context) {
|
|
|
16317
16317
|
ModelConfig,
|
|
16318
16318
|
{
|
|
16319
16319
|
onClose: () => {
|
|
16320
|
-
import("./model-
|
|
16320
|
+
import("./model-NTZF3KAO.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16321
16321
|
reloadModelManager2();
|
|
16322
16322
|
triggerModelConfigChange();
|
|
16323
16323
|
onDone();
|
|
@@ -23576,7 +23576,7 @@ function useStatusLine() {
|
|
|
23576
23576
|
// src/ui/components/PromptInput.tsx
|
|
23577
23577
|
async function interpretHashCommand(input) {
|
|
23578
23578
|
try {
|
|
23579
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
23579
|
+
const { queryQuick: queryQuick2 } = await import("./llm-MCQKDVRQ.js");
|
|
23580
23580
|
const systemPrompt = [
|
|
23581
23581
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
23582
23582
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -23889,7 +23889,7 @@ function PromptInput({
|
|
|
23889
23889
|
if (messages2.length) {
|
|
23890
23890
|
if (mode === "bash") {
|
|
23891
23891
|
onQuery(messages2, newAbortController).then(async () => {
|
|
23892
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
23892
|
+
const { getCwd: getCwd2 } = await import("./state-EMMT246A.js");
|
|
23893
23893
|
setCurrentPwd(getCwd2());
|
|
23894
23894
|
});
|
|
23895
23895
|
} else {
|
|
@@ -26675,7 +26675,7 @@ import { homedir as homedir7 } from "os";
|
|
|
26675
26675
|
// src/commands/agents/generation.ts
|
|
26676
26676
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
26677
26677
|
async function generateAgentWithClaude(prompt) {
|
|
26678
|
-
const { queryModel } = await import("./llm-
|
|
26678
|
+
const { queryModel } = await import("./llm-MCQKDVRQ.js");
|
|
26679
26679
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
26680
26680
|
|
|
26681
26681
|
Return your response as a JSON object with exactly these fields:
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
getGlobalConfig,
|
|
6
6
|
getOrCreateUserID,
|
|
7
7
|
saveCurrentProjectConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NQCJOKDL.js";
|
|
9
9
|
import {
|
|
10
10
|
SESSION_ID,
|
|
11
11
|
env,
|
|
12
12
|
execFileNoThrow,
|
|
13
13
|
getCwd,
|
|
14
14
|
logError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-E43DMKOM.js";
|
|
16
16
|
import {
|
|
17
17
|
MACRO
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6ZCT2WED.js";
|
|
19
19
|
import {
|
|
20
20
|
__require
|
|
21
21
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-RQVLBMP7.js";
|
|
6
6
|
import {
|
|
7
7
|
debug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5QJKELHH.js";
|
|
9
9
|
import {
|
|
10
10
|
getCwd,
|
|
11
11
|
getGlobalConfigFilePath,
|
|
12
12
|
logError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-E43DMKOM.js";
|
|
14
14
|
|
|
15
15
|
// src/core/config/schema.ts
|
|
16
16
|
function isAutoUpdaterStatus(value) {
|
|
@@ -660,7 +660,7 @@ function setModelPointer(pointer, modelName) {
|
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
662
|
saveGlobalConfig(updatedConfig);
|
|
663
|
-
import("./model-
|
|
663
|
+
import("./model-NTZF3KAO.js").then(({ reloadModelManager }) => {
|
|
664
664
|
reloadModelManager();
|
|
665
665
|
});
|
|
666
666
|
}
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
getSettingsFileCandidates,
|
|
11
11
|
loadSettingsWithLegacyFallback,
|
|
12
12
|
saveSettingsToPrimaryAndSyncLegacy
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-T3XFIIOD.js";
|
|
14
14
|
import {
|
|
15
15
|
getCwd
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-E43DMKOM.js";
|
|
17
17
|
|
|
18
18
|
// src/services/ui/outputStyles.ts
|
|
19
19
|
import figures from "figures";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
getSessionProjectDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TZ3IB6EB.js";
|
|
6
6
|
import {
|
|
7
7
|
isUuid
|
|
8
8
|
} from "./chunk-5P7HBXTD.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
PLAN_SLUG_VERBS,
|
|
10
10
|
getCwd,
|
|
11
11
|
getPybBaseDir
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-E43DMKOM.js";
|
|
13
13
|
import {
|
|
14
14
|
MACRO
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6ZCT2WED.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/protocol/pybAgentSessionLog.ts
|
|
18
18
|
import { execFileSync } from "child_process";
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
getSettingsFileCandidates,
|
|
5
5
|
loadSettingsWithLegacyFallback,
|
|
6
6
|
saveSettingsToPrimaryAndSyncLegacy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-T3XFIIOD.js";
|
|
8
8
|
import {
|
|
9
9
|
createDefaultToolPermissionContext,
|
|
10
10
|
isPersistableToolPermissionDestination
|
|
11
11
|
} from "./chunk-UNNVICVU.js";
|
|
12
12
|
import {
|
|
13
13
|
getCurrentProjectConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NQCJOKDL.js";
|
|
15
15
|
import {
|
|
16
16
|
getCwd,
|
|
17
17
|
logError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-E43DMKOM.js";
|
|
19
19
|
|
|
20
20
|
// src/utils/permissions/toolPermissionSettings.ts
|
|
21
21
|
function uniqueStrings(value) {
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "./chunk-BJSWTHRM.js";
|
|
9
9
|
import {
|
|
10
10
|
loadSettingsWithLegacyFallback
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-T3XFIIOD.js";
|
|
12
12
|
import {
|
|
13
13
|
getCwd,
|
|
14
14
|
logError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-E43DMKOM.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/session/pybHooks.ts
|
|
18
18
|
import { spawn } from "child_process";
|
|
@@ -496,7 +496,7 @@ async function runPromptHook(args) {
|
|
|
496
496
|
fallbackTimeoutMs: args.fallbackTimeoutMs
|
|
497
497
|
});
|
|
498
498
|
try {
|
|
499
|
-
const { queryQuick } = await import("./llmLazy-
|
|
499
|
+
const { queryQuick } = await import("./llmLazy-RF4NYWDO.js");
|
|
500
500
|
const systemPrompt = [
|
|
501
501
|
"You are executing a Pyb prompt hook.",
|
|
502
502
|
"Return a single JSON object only (no markdown, no prose).",
|