pybao-cli 1.4.79 → 1.4.80
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-4JXH3XRO.js +46 -0
- package/dist/{acp-LFAZWNAU.js → acp-PA6S5MGT.js} +29 -29
- package/dist/{agentsValidate-VAKP37AV.js → agentsValidate-YM6XVDQL.js} +7 -7
- package/dist/{ask-DVWLMETD.js → ask-TKEZYYAI.js} +28 -28
- package/dist/{autoUpdater-ZONSGWDV.js → autoUpdater-AKRMM25L.js} +3 -3
- package/dist/{chunk-OAE4H4IJ.js → chunk-2QU7ZSUS.js} +4 -4
- package/dist/{chunk-YAB2P7Z6.js → chunk-3CW5FEOJ.js} +2 -2
- package/dist/{chunk-3W3REVMM.js → chunk-3PA2KVRH.js} +3 -3
- package/dist/{chunk-MQRP4UNR.js → chunk-3SFRVXA2.js} +4 -4
- package/dist/{chunk-CFH53NUP.js → chunk-3WG3WTUV.js} +1 -1
- package/dist/{chunk-X3JZNSZK.js → chunk-42HW6S7R.js} +3 -3
- package/dist/{chunk-MWRFRW2T.js → chunk-455FF5IG.js} +1 -1
- package/dist/{chunk-O22YUF2L.js → chunk-744K4I7E.js} +2 -2
- package/dist/{chunk-XCLIPMK2.js → chunk-7ZNKXJQ6.js} +2 -2
- package/dist/{chunk-IPP5A2AQ.js → chunk-AERD7AWQ.js} +1 -1
- package/dist/{chunk-2MX4EYNA.js → chunk-BWTCQG4X.js} +1 -1
- package/dist/{chunk-3VR4CRJ4.js → chunk-CP3HV6YN.js} +1 -1
- package/dist/{chunk-T37A6AUP.js → chunk-CWZPDQJA.js} +2 -2
- package/dist/{chunk-APJZFS3A.js → chunk-EZ5OXAWM.js} +4 -4
- package/dist/{chunk-UVWCNMNT.js → chunk-F5LYIQAC.js} +2 -2
- package/dist/{chunk-QCQKQYHB.js → chunk-FTXFHBBF.js} +1 -1
- package/dist/{chunk-PKYY4R5O.js → chunk-I37OY5QI.js} +3 -3
- package/dist/{chunk-HMBKKXU6.js → chunk-JD2LVXSN.js} +3 -3
- package/dist/{chunk-VBMEUTXH.js → chunk-JM762ZDE.js} +4 -4
- package/dist/{chunk-H4KSNG7W.js → chunk-KTATOOLL.js} +2 -2
- package/dist/{chunk-OI65UMMM.js → chunk-LLSY2GBI.js} +3 -3
- package/dist/{chunk-3LSW3TMW.js → chunk-LMS74RIF.js} +1 -1
- package/dist/{chunk-RP7S6VRQ.js → chunk-MIUJHRUY.js} +3 -3
- package/dist/{chunk-WTVPYBKC.js → chunk-OQA7RUJA.js} +16 -16
- package/dist/{chunk-PGJGFV3X.js → chunk-PXEQDOU3.js} +1 -1
- package/dist/{chunk-6MCCU5HD.js → chunk-QOJN4AXT.js} +1 -1
- package/dist/{chunk-6MCCU5HD.js.map → chunk-QOJN4AXT.js.map} +1 -1
- package/dist/{chunk-YBEEF7QI.js → chunk-TG7JXSXM.js} +1 -1
- package/dist/{chunk-O5YYU7UE.js → chunk-VHWL7AZC.js} +2 -2
- package/dist/{chunk-IOBCYL3L.js → chunk-WTRPPL2M.js} +3 -3
- package/dist/{chunk-S54ET2XN.js → chunk-XNEBNYWQ.js} +47 -37
- package/dist/{chunk-S54ET2XN.js.map → chunk-XNEBNYWQ.js.map} +2 -2
- package/dist/{cli-7KBVIN3R.js → cli-6XU5K75R.js} +87 -87
- package/dist/commands-LBQTQ6YP.js +50 -0
- package/dist/{config-UMAGXL7E.js → config-REKPGWPW.js} +4 -4
- package/dist/{context-UFPZGQRP.js → context-7V2M3ID6.js} +6 -6
- package/dist/{customCommands-3ZSM7UHN.js → customCommands-WLOMXCCK.js} +4 -4
- package/dist/{env-FUWEP475.js → env-35CB7KWZ.js} +2 -2
- package/dist/{file-DOL32HV4.js → file-TCC75FSO.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-47NQPJBY.js → llm-C6QFJQ42.js} +29 -29
- package/dist/{llmLazy-KN2P4WFX.js → llmLazy-7GZ6NMOQ.js} +1 -1
- package/dist/{loader-3Q4S43I6.js → loader-X6LBDHGF.js} +4 -4
- package/dist/{lsp-NFGTJCU5.js → lsp-SWPSA5Q7.js} +6 -6
- package/dist/{lspAnchor-F47HITWT.js → lspAnchor-7DFVRBS2.js} +6 -6
- package/dist/{mcp-5NCHVDZ6.js → mcp-PHB7FETI.js} +7 -7
- package/dist/{mentionProcessor-ANECUK7D.js → mentionProcessor-V26NXWYI.js} +5 -5
- package/dist/{messages-5L3AW7OV.js → messages-WHTP6PI3.js} +1 -1
- package/dist/{model-GFRJS7ZB.js → model-5DT4TF4B.js} +5 -5
- package/dist/{openai-2TQXBY5Z.js → openai-737OOCXA.js} +5 -5
- package/dist/{outputStyles-GNA2ZNUQ.js → outputStyles-EPSYXOCH.js} +4 -4
- package/dist/{pluginRuntime-GX2IALNV.js → pluginRuntime-NUMYY7SH.js} +6 -6
- package/dist/{pluginValidation-MIJ2CBAD.js → pluginValidation-27NUUYNZ.js} +6 -6
- package/dist/prompts-HHTQ43AP.js +52 -0
- package/dist/{pybAgentSessionLoad-REO2PT44.js → pybAgentSessionLoad-QMQTSGQ7.js} +4 -4
- package/dist/{pybAgentSessionResume-PDCQVVYN.js → pybAgentSessionResume-RX3URXYK.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-TIT6LIJI.js → pybAgentStreamJsonSession-V2QVHE7Y.js} +1 -1
- package/dist/{pybHooks-IMBRLFTP.js → pybHooks-WR66ZII4.js} +4 -4
- package/dist/query-LQZ7XTT3.js +54 -0
- package/dist/{registry-GTSSEC4J.js → registry-3Z3F4SUL.js} +5 -5
- package/dist/{ripgrep-4EY5IP33.js → ripgrep-5FHFS5OM.js} +3 -3
- package/dist/{skillMarketplace-PM7FTQJ2.js → skillMarketplace-HC5HJ4MG.js} +3 -3
- package/dist/{state-3QNGKL6Z.js → state-LXTRD5P4.js} +2 -2
- package/dist/{theme-LTCVN7SH.js → theme-XFUQOISY.js} +5 -5
- package/dist/{toolPermissionSettings-WMLU2QLS.js → toolPermissionSettings-Z2IVN6T2.js} +6 -6
- package/dist/tools-A3ZAFFOB.js +51 -0
- package/dist/{userInput-VTW67UPI.js → userInput-CVQ4TYJZ.js} +30 -30
- package/package.json +1 -1
- package/dist/REPL-FITDCCKL.js +0 -46
- package/dist/commands-7H5ABX36.js +0 -50
- package/dist/prompts-S7DXNYXT.js +0 -52
- package/dist/query-2F5RTZ3R.js +0 -54
- package/dist/tools-D5VDYMRE.js +0 -51
- /package/dist/{REPL-FITDCCKL.js.map → REPL-4JXH3XRO.js.map} +0 -0
- /package/dist/{acp-LFAZWNAU.js.map → acp-PA6S5MGT.js.map} +0 -0
- /package/dist/{agentsValidate-VAKP37AV.js.map → agentsValidate-YM6XVDQL.js.map} +0 -0
- /package/dist/{ask-DVWLMETD.js.map → ask-TKEZYYAI.js.map} +0 -0
- /package/dist/{autoUpdater-ZONSGWDV.js.map → autoUpdater-AKRMM25L.js.map} +0 -0
- /package/dist/{chunk-OAE4H4IJ.js.map → chunk-2QU7ZSUS.js.map} +0 -0
- /package/dist/{chunk-YAB2P7Z6.js.map → chunk-3CW5FEOJ.js.map} +0 -0
- /package/dist/{chunk-3W3REVMM.js.map → chunk-3PA2KVRH.js.map} +0 -0
- /package/dist/{chunk-MQRP4UNR.js.map → chunk-3SFRVXA2.js.map} +0 -0
- /package/dist/{chunk-CFH53NUP.js.map → chunk-3WG3WTUV.js.map} +0 -0
- /package/dist/{chunk-X3JZNSZK.js.map → chunk-42HW6S7R.js.map} +0 -0
- /package/dist/{chunk-MWRFRW2T.js.map → chunk-455FF5IG.js.map} +0 -0
- /package/dist/{chunk-O22YUF2L.js.map → chunk-744K4I7E.js.map} +0 -0
- /package/dist/{chunk-XCLIPMK2.js.map → chunk-7ZNKXJQ6.js.map} +0 -0
- /package/dist/{chunk-IPP5A2AQ.js.map → chunk-AERD7AWQ.js.map} +0 -0
- /package/dist/{chunk-2MX4EYNA.js.map → chunk-BWTCQG4X.js.map} +0 -0
- /package/dist/{chunk-3VR4CRJ4.js.map → chunk-CP3HV6YN.js.map} +0 -0
- /package/dist/{chunk-T37A6AUP.js.map → chunk-CWZPDQJA.js.map} +0 -0
- /package/dist/{chunk-APJZFS3A.js.map → chunk-EZ5OXAWM.js.map} +0 -0
- /package/dist/{chunk-UVWCNMNT.js.map → chunk-F5LYIQAC.js.map} +0 -0
- /package/dist/{chunk-QCQKQYHB.js.map → chunk-FTXFHBBF.js.map} +0 -0
- /package/dist/{chunk-PKYY4R5O.js.map → chunk-I37OY5QI.js.map} +0 -0
- /package/dist/{chunk-HMBKKXU6.js.map → chunk-JD2LVXSN.js.map} +0 -0
- /package/dist/{chunk-VBMEUTXH.js.map → chunk-JM762ZDE.js.map} +0 -0
- /package/dist/{chunk-H4KSNG7W.js.map → chunk-KTATOOLL.js.map} +0 -0
- /package/dist/{chunk-OI65UMMM.js.map → chunk-LLSY2GBI.js.map} +0 -0
- /package/dist/{chunk-3LSW3TMW.js.map → chunk-LMS74RIF.js.map} +0 -0
- /package/dist/{chunk-RP7S6VRQ.js.map → chunk-MIUJHRUY.js.map} +0 -0
- /package/dist/{chunk-WTVPYBKC.js.map → chunk-OQA7RUJA.js.map} +0 -0
- /package/dist/{chunk-PGJGFV3X.js.map → chunk-PXEQDOU3.js.map} +0 -0
- /package/dist/{chunk-YBEEF7QI.js.map → chunk-TG7JXSXM.js.map} +0 -0
- /package/dist/{chunk-O5YYU7UE.js.map → chunk-VHWL7AZC.js.map} +0 -0
- /package/dist/{chunk-IOBCYL3L.js.map → chunk-WTRPPL2M.js.map} +0 -0
- /package/dist/{cli-7KBVIN3R.js.map → cli-6XU5K75R.js.map} +0 -0
- /package/dist/{commands-7H5ABX36.js.map → commands-LBQTQ6YP.js.map} +0 -0
- /package/dist/{config-UMAGXL7E.js.map → config-REKPGWPW.js.map} +0 -0
- /package/dist/{context-UFPZGQRP.js.map → context-7V2M3ID6.js.map} +0 -0
- /package/dist/{customCommands-3ZSM7UHN.js.map → customCommands-WLOMXCCK.js.map} +0 -0
- /package/dist/{env-FUWEP475.js.map → env-35CB7KWZ.js.map} +0 -0
- /package/dist/{file-DOL32HV4.js.map → file-TCC75FSO.js.map} +0 -0
- /package/dist/{llm-47NQPJBY.js.map → llm-C6QFJQ42.js.map} +0 -0
- /package/dist/{llmLazy-KN2P4WFX.js.map → llmLazy-7GZ6NMOQ.js.map} +0 -0
- /package/dist/{loader-3Q4S43I6.js.map → loader-X6LBDHGF.js.map} +0 -0
- /package/dist/{lsp-NFGTJCU5.js.map → lsp-SWPSA5Q7.js.map} +0 -0
- /package/dist/{lspAnchor-F47HITWT.js.map → lspAnchor-7DFVRBS2.js.map} +0 -0
- /package/dist/{mcp-5NCHVDZ6.js.map → mcp-PHB7FETI.js.map} +0 -0
- /package/dist/{mentionProcessor-ANECUK7D.js.map → mentionProcessor-V26NXWYI.js.map} +0 -0
- /package/dist/{messages-5L3AW7OV.js.map → messages-WHTP6PI3.js.map} +0 -0
- /package/dist/{model-GFRJS7ZB.js.map → model-5DT4TF4B.js.map} +0 -0
- /package/dist/{openai-2TQXBY5Z.js.map → openai-737OOCXA.js.map} +0 -0
- /package/dist/{outputStyles-GNA2ZNUQ.js.map → outputStyles-EPSYXOCH.js.map} +0 -0
- /package/dist/{pluginRuntime-GX2IALNV.js.map → pluginRuntime-NUMYY7SH.js.map} +0 -0
- /package/dist/{pluginValidation-MIJ2CBAD.js.map → pluginValidation-27NUUYNZ.js.map} +0 -0
- /package/dist/{prompts-S7DXNYXT.js.map → prompts-HHTQ43AP.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-REO2PT44.js.map → pybAgentSessionLoad-QMQTSGQ7.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-PDCQVVYN.js.map → pybAgentSessionResume-RX3URXYK.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-TIT6LIJI.js.map → pybAgentStreamJsonSession-V2QVHE7Y.js.map} +0 -0
- /package/dist/{pybHooks-IMBRLFTP.js.map → pybHooks-WR66ZII4.js.map} +0 -0
- /package/dist/{query-2F5RTZ3R.js.map → query-LQZ7XTT3.js.map} +0 -0
- /package/dist/{registry-GTSSEC4J.js.map → registry-3Z3F4SUL.js.map} +0 -0
- /package/dist/{ripgrep-4EY5IP33.js.map → ripgrep-5FHFS5OM.js.map} +0 -0
- /package/dist/{skillMarketplace-PM7FTQJ2.js.map → skillMarketplace-HC5HJ4MG.js.map} +0 -0
- /package/dist/{state-3QNGKL6Z.js.map → state-LXTRD5P4.js.map} +0 -0
- /package/dist/{theme-LTCVN7SH.js.map → theme-XFUQOISY.js.map} +0 -0
- /package/dist/{toolPermissionSettings-WMLU2QLS.js.map → toolPermissionSettings-Z2IVN6T2.js.map} +0 -0
- /package/dist/{tools-D5VDYMRE.js.map → tools-A3ZAFFOB.js.map} +0 -0
- /package/dist/{userInput-VTW67UPI.js.map → userInput-CVQ4TYJZ.js.map} +0 -0
|
@@ -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-QOJN4AXT.js";
|
|
6
6
|
|
|
7
7
|
// src/utils/state/index.ts
|
|
8
8
|
import { cwd } from "process";
|
|
@@ -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-CP3HV6YN.js";
|
|
6
6
|
import {
|
|
7
7
|
debug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PXEQDOU3.js";
|
|
9
9
|
import {
|
|
10
10
|
env,
|
|
11
11
|
getSessionRoot,
|
|
12
12
|
resolveXdgDataPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LMS74RIF.js";
|
|
14
14
|
import {
|
|
15
15
|
__require
|
|
16
16
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -35,57 +35,57 @@ import {
|
|
|
35
35
|
runWithTaskListEnv,
|
|
36
36
|
runWithTaskListId,
|
|
37
37
|
updateTask
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-XNEBNYWQ.js";
|
|
39
39
|
import {
|
|
40
40
|
queryLLM
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-3SFRVXA2.js";
|
|
42
42
|
import {
|
|
43
43
|
FallbackToolUseRejectedMessage,
|
|
44
44
|
MCPTool,
|
|
45
45
|
getClients,
|
|
46
46
|
getMCPTools
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-2QU7ZSUS.js";
|
|
48
48
|
import {
|
|
49
49
|
emitReminderEvent
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-7ZNKXJQ6.js";
|
|
51
51
|
import {
|
|
52
52
|
getActiveAgents,
|
|
53
53
|
getAgentByType,
|
|
54
54
|
getAvailableAgentTypes
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-CWZPDQJA.js";
|
|
56
56
|
import {
|
|
57
57
|
INTERRUPT_MESSAGE,
|
|
58
58
|
createAssistantMessage,
|
|
59
59
|
createUserMessage,
|
|
60
60
|
getLastAssistantMessageId
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-AERD7AWQ.js";
|
|
62
62
|
import {
|
|
63
63
|
formatDuration,
|
|
64
64
|
formatNumber
|
|
65
65
|
} from "./chunk-OUXHGDLH.js";
|
|
66
66
|
import {
|
|
67
67
|
getAbsolutePath
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-744K4I7E.js";
|
|
69
69
|
import {
|
|
70
70
|
LspFacade,
|
|
71
71
|
formatDiagnosticsPretty
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-JM762ZDE.js";
|
|
73
73
|
import {
|
|
74
74
|
getModelManager
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-42HW6S7R.js";
|
|
76
76
|
import {
|
|
77
77
|
getContext
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-EZ5OXAWM.js";
|
|
79
79
|
import {
|
|
80
80
|
filesToTree,
|
|
81
81
|
ripGrepWithStatus
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-FTXFHBBF.js";
|
|
83
83
|
import {
|
|
84
84
|
getTheme
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-455FF5IG.js";
|
|
86
86
|
import {
|
|
87
87
|
debug
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-PXEQDOU3.js";
|
|
89
89
|
import {
|
|
90
90
|
BunShell,
|
|
91
91
|
getCwd,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
overwriteLog,
|
|
97
97
|
readTaskOutput,
|
|
98
98
|
resolveXdgDataPath
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-LMS74RIF.js";
|
|
100
100
|
|
|
101
101
|
// src/tools/index.ts
|
|
102
102
|
import { memoize as memoize2 } from "lodash-es";
|
|
@@ -775,7 +775,7 @@ async function analyzeOutputWithLsp(output, exitCode) {
|
|
|
775
775
|
if (exitCode !== 0 || errorCount > 0 || warningCount > 0) {
|
|
776
776
|
try {
|
|
777
777
|
const { isAbsolute: isAbsolute3, resolve: resolve4 } = await import("path");
|
|
778
|
-
const { getSessionRoot: getSessionRoot2 } = await import("./state-
|
|
778
|
+
const { getSessionRoot: getSessionRoot2 } = await import("./state-LXTRD5P4.js");
|
|
779
779
|
const lines = output.split("\n");
|
|
780
780
|
const uniqueFiles = /* @__PURE__ */ new Set();
|
|
781
781
|
const lspSuggestions = [];
|
|
@@ -1148,7 +1148,7 @@ var DeleteTool = {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
if (!force) {
|
|
1150
1150
|
try {
|
|
1151
|
-
const { LspFacade: LspFacade2 } = await import("./lsp-
|
|
1151
|
+
const { LspFacade: LspFacade2 } = await import("./lsp-SWPSA5Q7.js");
|
|
1152
1152
|
const referenceDetail = await LspFacade2.checkFileReferences(fullPath);
|
|
1153
1153
|
if (referenceDetail) {
|
|
1154
1154
|
failedItems.push(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../package.json", "../src/constants/macros.ts"],
|
|
4
|
-
"sourcesContent": ["{\n \"name\": \"pybao-cli\",\n \"version\": \"1.4.
|
|
4
|
+
"sourcesContent": ["{\n \"name\": \"pybao-cli\",\n \"version\": \"1.4.80\",\n \"bin\": {\n \"pyb\": \"cli.js\",\n \"pyb-acp\": \"cli-acp.js\"\n },\n \"engines\": {\n \"node\": \">=20.18.1\"\n },\n \"main\": \"cli.js\",\n \"author\": \"PYB-XC\",\n \"license\": \"MIT\",\n \"description\": \"PYB-CLI - Minimal AI Agent with multi-model support and CLI interface\",\n \"keywords\": [\n \"ai\",\n \"agent\",\n \"minimal\",\n \"claude\"\n ],\n \"homepage\": \"https://github.com/pyb-xc/pyb-ts\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/pyb-xc/pyb-ts.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/pyb-xc/pyb-ts/issues\"\n },\n \"files\": [\n \"cli.js\",\n \"cli-acp.js\",\n \"yoga.wasm\",\n \"dist/**/*\",\n \"scripts/binary-utils.cjs\",\n \"scripts/cli-wrapper.cjs\",\n \"scripts/cli-acp-wrapper.cjs\",\n \"scripts/postinstall.js\",\n \".npmrc\",\n \"resources/**/*\"\n ],\n \"scripts\": {\n \"dev\": \"bun run ./src/entrypoints/cli.tsx --verbose\",\n \"build:npm\": \"bun scripts/build.mjs\",\n \"build\": \"npm run build:npm\",\n \"build:binary\": \"node scripts/build-binary.mjs\",\n \"build:native-lock\": \"node scripts/build-native-lock.mjs\",\n \"clean\": \"node scripts/clean.mjs\",\n \"prepublishOnly\": \"npm run build:npm && node scripts/prepublish-check.js\",\n \"postinstall\": \"node scripts/postinstall.js || true\",\n \"format\": \"prettier --write \\\"src/**/*.{ts,tsx,js,jsx,json}\\\" \\\"tests/**/*.{ts,tsx,js,jsx,json}\\\"\",\n \"format:check\": \"prettier --check \\\"src/**/*.{ts,tsx,js,jsx,json}\\\" \\\"tests/**/*.{ts,tsx,js,jsx,json}\\\"\",\n \"lint\": \"eslint . --ext .ts,.tsx,.js --max-warnings 0\",\n \"lint:fix\": \"eslint . --ext .ts,.tsx,.js --fix\",\n \"test\": \"bun test\",\n \"test:unit\": \"bun test --preload ./tests/setup/native-lock-test-setup.ts tests/unit\",\n \"test:integration\": \"bun test tests/integration\",\n \"test:e2e\": \"bun test tests/e2e\",\n \"typecheck\": \"tsc --noEmit\",\n \"prepare\": \"bun run scripts/install-hooks.mjs\",\n \"sync:native-lock\": \"node scripts/sync-native-lock-versions.mjs\",\n \"publish:native-lock\": \"node scripts/publish-native-lock.mjs\",\n \"verify:native-lock\": \"node scripts/verify-native-lock.mjs\",\n \"publish:dev\": \"bun run scripts/publish-dev.js\",\n \"publish:release\": \"bun run scripts/publish-release.js\",\n \"bench:startup\": \"bun run scripts/bench-startup.mjs\",\n \"parity:reference\": \"bun run scripts/reference-parity-check.mjs\"\n },\n \"dependencies\": {\n \"@anthropic-ai/bedrock-sdk\": \"^0.12.6\",\n \"@anthropic-ai/sdk\": \"^0.39.0\",\n \"@anthropic-ai/vertex-sdk\": \"^0.7.0\",\n \"@astrojs/language-server\": \"2.16.2\",\n \"@aws-sdk/client-bedrock-runtime\": \"3.797.0\",\n \"@commander-js/extra-typings\": \"^13.1.0\",\n \"@inkjs/ui\": \"^2.0.0\",\n \"@modelcontextprotocol/sdk\": \"^1.15.1\",\n \"@prisma/language-server\": \"31.3.4\",\n \"@types/lodash-es\": \"^4.17.12\",\n \"@types/react\": \"^19.1.8\",\n \"@vscode/ripgrep\": \"^1.17.0\",\n \"@vue/language-server\": \"3.2.2\",\n \"ajv\": \"^8.17.1\",\n \"ansi-escapes\": \"^7.0.0\",\n \"bash-language-server\": \"5.6.0\",\n \"chalk\": \"^5.4.1\",\n \"cli-highlight\": \"^2.1.11\",\n \"cli-table3\": \"^0.6.5\",\n \"commander\": \"^13.1.0\",\n \"debug\": \"^4.4.1\",\n \"diff\": \"^7.0.0\",\n \"dockerfile-language-server-nodejs\": \"0.15.0\",\n \"dotenv\": \"^16.6.1\",\n \"env-paths\": \"^3.0.0\",\n \"fflate\": \"^0.8.2\",\n \"figures\": \"^6.1.0\",\n \"glob\": \"^11.0.3\",\n \"graphql-language-service-cli\": \"3.5.0\",\n \"gray-matter\": \"^4.0.3\",\n \"highlight.js\": \"^11.11.1\",\n \"ignore\": \"^7.0.5\",\n \"ink\": \"5.2.1\",\n \"ink-link\": \"^4.1.0\",\n \"ink-select-input\": \"^6.2.0\",\n \"ink-text-input\": \"^6.0.0\",\n \"intelephense\": \"1.16.3\",\n \"js-yaml\": \"^4.1.1\",\n \"lodash-es\": \"^4.17.21\",\n \"lru-cache\": \"^11.1.0\",\n \"marked\": \"^15.0.12\",\n \"minimatch\": \"^10.1.1\",\n \"nanoid\": \"^5.1.5\",\n \"node-html-parser\": \"^7.0.1\",\n \"openai\": \"4.104.0\",\n \"pyright\": \"1.1.408\",\n \"react\": \"18.3.1\",\n \"semver\": \"^7.7.2\",\n \"shell-quote\": \"1.8.3\",\n \"spawn-rx\": \"^5.1.2\",\n \"string-width\": \"^7.2.0\",\n \"strip-ansi\": \"^7.1.0\",\n \"svelte-language-server\": \"0.17.23\",\n \"tsx\": \"^4.20.3\",\n \"typescript-language-server\": \"5.1.3\",\n \"undici\": \"^7.11.0\",\n \"vscode-jsonrpc\": \"8.2.1\",\n \"vscode-langservers-extracted\": \"4.10.0\",\n \"web-tree-sitter\": \"0.25.10\",\n \"which\": \"^6.0.0\",\n \"wrap-ansi\": \"^9.0.0\",\n \"yaml-language-server\": \"1.19.2\",\n \"zod\": \"^3.25.76\",\n \"zod-to-json-schema\": \"^3.24.6\"\n },\n \"devDependencies\": {\n \"@types/bun\": \"latest\",\n \"@types/jest\": \"^30.0.0\",\n \"@types/node\": \"^24.1.0\",\n \"@types/which\": \"^3.0.4\",\n \"@typescript-eslint/eslint-plugin\": \"^8.50.1\",\n \"@typescript-eslint/parser\": \"^8.50.1\",\n \"abort-controller\": \"3.0.0\",\n \"bun-types\": \"latest\",\n \"cheerio\": \"1.1.2\",\n \"esbuild\": \"^0.25.9\",\n \"eslint\": \"8.57.0\",\n \"eslint-plugin-react-hooks\": \"^7.0.1\",\n \"ink-testing-library\": \"4.0.0\",\n \"node-fetch\": \"3.3.2\",\n \"prettier\": \"^3.6.2\",\n \"react-devtools-core\": \"^7.0.1\",\n \"tree-sitter-bash\": \"0.25.1\",\n \"tree-sitter-c-sharp\": \"0.23.1\",\n \"tree-sitter-clojure\": \"0.4.0\",\n \"tree-sitter-cpp\": \"0.23.4\",\n \"tree-sitter-go\": \"0.25.0\",\n \"tree-sitter-haskell\": \"0.23.1\",\n \"tree-sitter-java\": \"0.23.5\",\n \"tree-sitter-julia\": \"0.23.1\",\n \"tree-sitter-nix\": \"0.0.2\",\n \"tree-sitter-ocaml\": \"0.24.2\",\n \"tree-sitter-python\": \"0.25.0\",\n \"tree-sitter-rust\": \"0.24.0\",\n \"tree-sitter-scala\": \"0.24.0\",\n \"tree-sitter-swift\": \"0.7.1\",\n \"tree-sitter-typescript\": \"0.23.2\",\n \"turndown\": \"7.2.2\",\n \"typescript\": \"^5.9.2\"\n },\n \"overrides\": {\n \"@aws-sdk/client-bedrock-runtime\": \"3.797.0\",\n \"@smithy/smithy-client\": \"2.5.1\",\n \"parse5-htmlparser2-tree-adapter\": \"6.0.1\"\n },\n \"optionalDependencies\": {\n \"@puyib-cli/lock-win32-x64-msvc\": \"1.4.55\",\n \"@puyib-cli/lock-win32-arm64-msvc\": \"1.4.56\",\n \"@puyib-cli/lock-linux-x64-gnu\": \"1.4.56\",\n \"@puyib-cli/lock-linux-x64-musl\": \"1.4.56\",\n \"@puyib-cli/lock-linux-arm64-gnu\": \"1.4.56\",\n \"@puyib-cli/lock-linux-armv7-gnueabihf\": \"1.4.56\",\n \"@puyib-cli/lock-darwin-x64\": \"1.4.56\",\n \"@puyib-cli/lock-darwin-arm64\": \"1.4.56\"\n },\n \"pybNativeLockPlatforms\": [\n \"win32-x64-msvc\",\n \"win32-arm64-msvc\",\n \"linux-x64-gnu\",\n \"linux-x64-musl\",\n \"linux-arm64-gnu\",\n \"linux-armv7-gnueabihf\",\n \"darwin-x64\",\n \"darwin-arm64\"\n ]\n}\n", "import pkg from '../../package.json'\n\nexport const MACRO = {\n VERSION: pkg.version,\n README_URL: 'https://github.com/pyb-xc/pyb-ts#readme',\n PACKAGE_URL: 'pybao-cli',\n ISSUES_EXPLAINER:\n 'report the issue at https://github.com/pyb-xc/pyb-ts/issues',\n}\n"],
|
|
5
5
|
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -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-F5LYIQAC.js";
|
|
6
6
|
import {
|
|
7
7
|
isUuid
|
|
8
8
|
} from "./chunk-5P7HBXTD.js";
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
getSettingsFileCandidates,
|
|
8
8
|
loadSettingsWithLegacyFallback,
|
|
9
9
|
saveSettingsToPrimaryAndSyncLegacy
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CP3HV6YN.js";
|
|
11
11
|
import {
|
|
12
12
|
getSessionPlugins
|
|
13
13
|
} from "./chunk-BJSWTHRM.js";
|
|
14
14
|
import {
|
|
15
15
|
getCwd,
|
|
16
16
|
getXdgConfigDir
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LMS74RIF.js";
|
|
18
18
|
|
|
19
19
|
// src/services/ui/outputStyles.ts
|
|
20
20
|
import figures from "figures";
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
} from "./chunk-B6IMQJZM.js";
|
|
6
6
|
import {
|
|
7
7
|
loadSettingsWithLegacyFallback
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CP3HV6YN.js";
|
|
9
9
|
import {
|
|
10
10
|
getSessionPlugins
|
|
11
11
|
} from "./chunk-BJSWTHRM.js";
|
|
12
12
|
import {
|
|
13
13
|
getCwd,
|
|
14
14
|
logError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LMS74RIF.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-7GZ6NMOQ.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).",
|
|
@@ -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-JD2LVXSN.js";
|
|
7
7
|
import {
|
|
8
8
|
loadPybAgentSessionMessages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TG7JXSXM.js";
|
|
10
10
|
import {
|
|
11
11
|
listPybAgentSessions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3WG3WTUV.js";
|
|
13
13
|
import {
|
|
14
14
|
appendSessionCustomTitleRecord,
|
|
15
15
|
appendSessionJsonlFromMessage,
|
|
16
16
|
appendSessionTagRecord
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-F5LYIQAC.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-WTRPPL2M.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-VHWL7AZC.js";
|
|
39
39
|
import {
|
|
40
40
|
fetchCustomModels,
|
|
41
41
|
getModelFeatures,
|
|
42
42
|
getSessionState
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-KTATOOLL.js";
|
|
44
44
|
import {
|
|
45
45
|
queryLLM,
|
|
46
46
|
queryQuick,
|
|
47
47
|
verifyApiKey
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-3SFRVXA2.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-2QU7ZSUS.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-BWTCQG4X.js";
|
|
76
76
|
import {
|
|
77
77
|
loadToolPermissionContextFromDisk,
|
|
78
78
|
persistToolPermissionUpdateToDisk
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-I37OY5QI.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-7ZNKXJQ6.js";
|
|
91
91
|
import {
|
|
92
92
|
clearAgentCache,
|
|
93
93
|
getActiveAgents,
|
|
94
94
|
getAgentByType,
|
|
95
95
|
getAllAgents
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-CWZPDQJA.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-AERD7AWQ.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-744K4I7E.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-JM762ZDE.js";
|
|
168
168
|
import {
|
|
169
169
|
getSettingsFileCandidates,
|
|
170
170
|
loadSettingsWithLegacyFallback,
|
|
171
171
|
readSettingsFile
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-CP3HV6YN.js";
|
|
173
173
|
import {
|
|
174
174
|
getCustomCommandDirectories,
|
|
175
175
|
hasCustomCommands,
|
|
176
176
|
loadCustomCommands,
|
|
177
177
|
reloadCustomCommands
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-3CW5FEOJ.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-42HW6S7R.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-EZ5OXAWM.js";
|
|
195
195
|
import {
|
|
196
196
|
ripGrep
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-FTXFHBBF.js";
|
|
198
198
|
import {
|
|
199
199
|
getTheme
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-455FF5IG.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-LLSY2GBI.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-PXEQDOU3.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-LMS74RIF.js";
|
|
264
264
|
import {
|
|
265
265
|
MACRO
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-QOJN4AXT.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-C6QFJQ42.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-C6QFJQ42.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-7DFVRBS2.js");
|
|
6647
6647
|
for (const op of editOperations) {
|
|
6648
6648
|
const normalizedSearch = normalizeLineEndings(op.search);
|
|
6649
6649
|
const normalizedReplace = normalizeLineEndings(op.replace);
|
|
@@ -11347,7 +11347,7 @@ async function createAndStoreApiKey(accessToken) {
|
|
|
11347
11347
|
}
|
|
11348
11348
|
saveGlobalConfig(config2);
|
|
11349
11349
|
try {
|
|
11350
|
-
const { resetAnthropicClient } = await import("./llm-
|
|
11350
|
+
const { resetAnthropicClient } = await import("./llm-C6QFJQ42.js");
|
|
11351
11351
|
resetAnthropicClient();
|
|
11352
11352
|
} catch {
|
|
11353
11353
|
}
|
|
@@ -15714,7 +15714,7 @@ async function refreshPluginRuntimeFromInstalls() {
|
|
|
15714
15714
|
const existingRoots = getSessionPlugins().map((p) => p.rootDir);
|
|
15715
15715
|
const dirs = Array.from(/* @__PURE__ */ new Set([...existingRoots, ...installedRoots]));
|
|
15716
15716
|
if (dirs.length === 0) return [];
|
|
15717
|
-
const { configureSessionPlugins } = await import("./pluginRuntime-
|
|
15717
|
+
const { configureSessionPlugins } = await import("./pluginRuntime-NUMYY7SH.js");
|
|
15718
15718
|
const { errors } = await configureSessionPlugins({ pluginDirs: dirs });
|
|
15719
15719
|
return errors;
|
|
15720
15720
|
}
|
|
@@ -16383,7 +16383,7 @@ async function call(onDone, context) {
|
|
|
16383
16383
|
ModelConfig,
|
|
16384
16384
|
{
|
|
16385
16385
|
onClose: () => {
|
|
16386
|
-
import("./model-
|
|
16386
|
+
import("./model-5DT4TF4B.js").then(({ reloadModelManager: reloadModelManager2 }) => {
|
|
16387
16387
|
reloadModelManager2();
|
|
16388
16388
|
triggerModelConfigChange();
|
|
16389
16389
|
onDone();
|
|
@@ -21845,13 +21845,23 @@ Your plan has been saved to: ${output.filePath}
|
|
|
21845
21845
|
## Approved Plan:
|
|
21846
21846
|
${output.plan}`;
|
|
21847
21847
|
}
|
|
21848
|
-
return `User has approved your plan. You
|
|
21848
|
+
return `User has approved your plan. You MUST now IMMEDIATELY start implementing the plan.
|
|
21849
|
+
|
|
21850
|
+
**IMPORTANT: Do NOT just respond with text. You MUST take action by calling tools to implement the plan.**
|
|
21851
|
+
|
|
21852
|
+
**Your next required actions:**
|
|
21853
|
+
1. If your plan has multiple steps, create tasks using TaskCreate tool to track progress
|
|
21854
|
+
2. Read the first file mentioned in your plan to understand the current state
|
|
21855
|
+
3. Use Edit or Write tools to make the necessary code changes
|
|
21856
|
+
4. Continue implementing each step until the plan is complete
|
|
21849
21857
|
|
|
21850
21858
|
Your plan has been saved to: ${output.filePath}
|
|
21851
21859
|
You can refer back to it if needed during implementation.
|
|
21852
21860
|
|
|
21853
21861
|
## Approved Plan:
|
|
21854
|
-
${output.plan}
|
|
21862
|
+
${output.plan}
|
|
21863
|
+
|
|
21864
|
+
**Start implementing NOW by calling your first tool.**`;
|
|
21855
21865
|
},
|
|
21856
21866
|
async *call(input, context) {
|
|
21857
21867
|
const conversationKey = getPlanConversationKey(context);
|
|
@@ -25250,7 +25260,7 @@ function useStatusLine() {
|
|
|
25250
25260
|
// src/ui/components/PromptInput.tsx
|
|
25251
25261
|
async function interpretHashCommand(input) {
|
|
25252
25262
|
try {
|
|
25253
|
-
const { queryQuick: queryQuick2 } = await import("./llm-
|
|
25263
|
+
const { queryQuick: queryQuick2 } = await import("./llm-C6QFJQ42.js");
|
|
25254
25264
|
const systemPrompt = [
|
|
25255
25265
|
"You're helping the user structure notes that will be added to their PYB.md file.",
|
|
25256
25266
|
"Format the user's input into a well-structured note that will be useful for later reference.",
|
|
@@ -25563,7 +25573,7 @@ function PromptInput({
|
|
|
25563
25573
|
if (messages2.length) {
|
|
25564
25574
|
if (mode === "bash") {
|
|
25565
25575
|
onQuery(messages2, newAbortController).then(async () => {
|
|
25566
|
-
const { getCwd: getCwd2 } = await import("./state-
|
|
25576
|
+
const { getCwd: getCwd2 } = await import("./state-LXTRD5P4.js");
|
|
25567
25577
|
setCurrentPwd(getCwd2());
|
|
25568
25578
|
});
|
|
25569
25579
|
} else {
|
|
@@ -28742,7 +28752,7 @@ import { homedir as homedir8 } from "os";
|
|
|
28742
28752
|
// src/commands/agents/generation.ts
|
|
28743
28753
|
import { randomUUID as randomUUID6 } from "crypto";
|
|
28744
28754
|
async function generateAgentWithClaude(prompt) {
|
|
28745
|
-
const { queryModel } = await import("./llm-
|
|
28755
|
+
const { queryModel } = await import("./llm-C6QFJQ42.js");
|
|
28746
28756
|
const systemPrompt = `You are an expert at creating AI agent configurations. Based on the user's description, generate a specialized agent configuration.
|
|
28747
28757
|
|
|
28748
28758
|
Return your response as a JSON object with exactly these fields:
|