pybao-cli 1.4.39 → 1.4.41
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-X37QFHMY.js +47 -0
- package/dist/{acp-6LBQJVMX.js → acp-YPG3ODYW.js} +29 -29
- package/dist/{agentsValidate-SLBW2ESZ.js → agentsValidate-3UWY6SGZ.js} +7 -7
- package/dist/{ask-DB4F3WJG.js → ask-KPWV37T5.js} +28 -28
- package/dist/{autoUpdater-CYDJVIEC.js → autoUpdater-J45KPDGS.js} +3 -3
- package/dist/{chunk-HD4IO3I5.js → chunk-2L67XJY6.js} +60 -66
- package/dist/{chunk-HD4IO3I5.js.map → chunk-2L67XJY6.js.map} +2 -2
- package/dist/{chunk-3LNPU7WH.js → chunk-3KC257RS.js} +3 -3
- package/dist/{chunk-KWPH7MSB.js → chunk-4663HA7W.js} +1 -1
- package/dist/{chunk-DLBWS3IW.js → chunk-5AQPEKHM.js} +1 -1
- package/dist/{chunk-AI7FJQR4.js → chunk-6K3ESUEV.js} +111 -25
- package/dist/chunk-6K3ESUEV.js.map +7 -0
- package/dist/{chunk-GD43B2GV.js → chunk-6SRKKJNO.js} +1 -1
- package/dist/{chunk-UK4IHZU3.js → chunk-ABCEGXO7.js} +2 -2
- package/dist/{chunk-VHTIDAOJ.js → chunk-AOK6U7U7.js} +2 -2
- package/dist/{chunk-O5OT26P6.js → chunk-BDM7IINE.js} +1 -1
- package/dist/{chunk-TNAAGT3Q.js → chunk-BEP5VFCR.js} +3 -3
- package/dist/{chunk-RS2N2KBH.js → chunk-EADYBO22.js} +37 -45
- package/dist/{chunk-RS2N2KBH.js.map → chunk-EADYBO22.js.map} +2 -2
- package/dist/{chunk-ZGVGFR4C.js → chunk-FJBRBBAE.js} +1 -1
- package/dist/{chunk-E5EB22W4.js → chunk-GS2HTCOK.js} +4 -4
- package/dist/{chunk-7WCSSH3C.js → chunk-GW3QUBEN.js} +3 -3
- package/dist/{chunk-YJ2WXW2J.js → chunk-HC2UA3UA.js} +3 -3
- package/dist/{chunk-SBPVAFBQ.js → chunk-HSV2W6ZE.js} +2 -2
- package/dist/{chunk-VXQMCAPS.js → chunk-IGU3SZC3.js} +1 -1
- package/dist/{chunk-GXHSGPIF.js → chunk-IGYIVSD4.js} +4 -4
- package/dist/{chunk-4LXZDGCO.js → chunk-IZJC66JK.js} +3 -3
- package/dist/{chunk-6KSM5M7T.js → chunk-JF3APTJS.js} +1 -1
- package/dist/{chunk-7TGWBYFN.js → chunk-LQC2XIQ5.js} +4 -4
- package/dist/{chunk-GL3ZM7F3.js → chunk-MAQDSC4C.js} +3 -3
- package/dist/{chunk-DEYAAT6H.js → chunk-MKPXX4RV.js} +3 -3
- package/dist/{chunk-NMJYV37P.js → chunk-MMRONBNC.js} +2 -2
- package/dist/{chunk-VFQU3JSH.js → chunk-OS26ZCWF.js} +4 -4
- package/dist/{chunk-NNE44UHQ.js → chunk-UAFVGOA7.js} +2 -2
- package/dist/{chunk-N4GXGPVA.js → chunk-VCXKB4QH.js} +1 -1
- package/dist/{chunk-UUWI4VWU.js → chunk-Y4R6A5ZF.js} +1 -1
- package/dist/{chunk-UUWI4VWU.js.map → chunk-Y4R6A5ZF.js.map} +1 -1
- package/dist/{chunk-KNLFFHBT.js → chunk-Z7JVH236.js} +2 -2
- package/dist/{chunk-SSKQUKI7.js → chunk-ZQQ56UGL.js} +1 -1
- package/dist/{cli-FMCSS5QE.js → cli-PGYIYYGL.js} +106 -87
- package/dist/cli-PGYIYYGL.js.map +7 -0
- package/dist/commands-3QMEPLJI.js +51 -0
- package/dist/{config-YRHKZJO6.js → config-SRARC4UV.js} +4 -4
- package/dist/{context-ZZO64MRN.js → context-LYZN2WOR.js} +6 -6
- package/dist/{customCommands-2S7LYMG7.js → customCommands-G64J6TJU.js} +4 -4
- package/dist/{env-PQDRZBAW.js → env-NRGZD37J.js} +2 -2
- package/dist/{file-X7BE3MNR.js → file-B7ZHCEOY.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-3KCTIVOM.js → llm-FB3ZW3AI.js} +29 -29
- package/dist/{llmLazy-HCTXTHRZ.js → llmLazy-DHIZM4VB.js} +1 -1
- package/dist/{loader-DKMJSH4V.js → loader-G4RUXY5F.js} +4 -4
- package/dist/{lsp-IXEAYT4K.js → lsp-G7G7KQ6Z.js} +6 -6
- package/dist/{lspAnchor-FKXOKCQZ.js → lspAnchor-4XUNRJYJ.js} +6 -6
- package/dist/{mcp-ZUJD3E4V.js → mcp-GP2OY5CW.js} +7 -7
- package/dist/{mentionProcessor-7GXI47P3.js → mentionProcessor-5VND2CWI.js} +6 -6
- package/dist/{messages-55HNRTQC.js → messages-DJTPGO5G.js} +1 -1
- package/dist/{model-R5X6XP7I.js → model-FY7P6LPI.js} +5 -5
- package/dist/{openai-FM7DX3GB.js → openai-R5JKUS7L.js} +5 -5
- package/dist/{outputStyles-ZLGIDCCJ.js → outputStyles-XPOEKV5L.js} +4 -4
- package/dist/{pluginRuntime-REF3E5F5.js → pluginRuntime-PLWSOKAW.js} +6 -6
- package/dist/{pluginValidation-E33USDYW.js → pluginValidation-M57BSDWY.js} +6 -6
- package/dist/prompts-V55TE46Y.js +53 -0
- package/dist/{pybAgentSessionLoad-PGTH6SZH.js → pybAgentSessionLoad-IDJQMXK3.js} +4 -4
- package/dist/{pybAgentSessionResume-IVBY65PN.js → pybAgentSessionResume-U2LJH3AF.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-N2Q6LQHX.js → pybAgentStreamJsonSession-F2QIUJBH.js} +1 -1
- package/dist/{pybHooks-WIA5KKVN.js → pybHooks-KYHGMDRK.js} +4 -4
- package/dist/query-7J3FFRIB.js +55 -0
- package/dist/{registry-PT3XVAT6.js → registry-I5LJ4C6T.js} +5 -5
- package/dist/{ripgrep-2VWCSPH4.js → ripgrep-7AN4NOC7.js} +3 -3
- package/dist/{skillMarketplace-NHPAPZTS.js → skillMarketplace-Z7R6YX7F.js} +3 -3
- package/dist/{state-4AIVX6VM.js → state-DEPXOXNL.js} +2 -2
- package/dist/{theme-LKZFY5TU.js → theme-HXJ2OXED.js} +5 -5
- package/dist/{toolPermissionSettings-OVFT6D3R.js → toolPermissionSettings-4LMPOZYV.js} +6 -6
- package/dist/tools-FCGNXBLR.js +52 -0
- package/dist/{userInput-RHGZ225B.js → userInput-BYJMHASU.js} +30 -30
- package/package.json +1 -1
- package/dist/REPL-N62XVC35.js +0 -47
- package/dist/chunk-AI7FJQR4.js.map +0 -7
- package/dist/cli-FMCSS5QE.js.map +0 -7
- package/dist/commands-IJTOU4P3.js +0 -51
- package/dist/prompts-W7TUXY74.js +0 -53
- package/dist/query-BTG2T7NV.js +0 -55
- package/dist/tools-6ONPKOSL.js +0 -52
- /package/dist/{REPL-N62XVC35.js.map → REPL-X37QFHMY.js.map} +0 -0
- /package/dist/{acp-6LBQJVMX.js.map → acp-YPG3ODYW.js.map} +0 -0
- /package/dist/{agentsValidate-SLBW2ESZ.js.map → agentsValidate-3UWY6SGZ.js.map} +0 -0
- /package/dist/{ask-DB4F3WJG.js.map → ask-KPWV37T5.js.map} +0 -0
- /package/dist/{autoUpdater-CYDJVIEC.js.map → autoUpdater-J45KPDGS.js.map} +0 -0
- /package/dist/{chunk-3LNPU7WH.js.map → chunk-3KC257RS.js.map} +0 -0
- /package/dist/{chunk-KWPH7MSB.js.map → chunk-4663HA7W.js.map} +0 -0
- /package/dist/{chunk-DLBWS3IW.js.map → chunk-5AQPEKHM.js.map} +0 -0
- /package/dist/{chunk-GD43B2GV.js.map → chunk-6SRKKJNO.js.map} +0 -0
- /package/dist/{chunk-UK4IHZU3.js.map → chunk-ABCEGXO7.js.map} +0 -0
- /package/dist/{chunk-VHTIDAOJ.js.map → chunk-AOK6U7U7.js.map} +0 -0
- /package/dist/{chunk-O5OT26P6.js.map → chunk-BDM7IINE.js.map} +0 -0
- /package/dist/{chunk-TNAAGT3Q.js.map → chunk-BEP5VFCR.js.map} +0 -0
- /package/dist/{chunk-ZGVGFR4C.js.map → chunk-FJBRBBAE.js.map} +0 -0
- /package/dist/{chunk-E5EB22W4.js.map → chunk-GS2HTCOK.js.map} +0 -0
- /package/dist/{chunk-7WCSSH3C.js.map → chunk-GW3QUBEN.js.map} +0 -0
- /package/dist/{chunk-YJ2WXW2J.js.map → chunk-HC2UA3UA.js.map} +0 -0
- /package/dist/{chunk-SBPVAFBQ.js.map → chunk-HSV2W6ZE.js.map} +0 -0
- /package/dist/{chunk-VXQMCAPS.js.map → chunk-IGU3SZC3.js.map} +0 -0
- /package/dist/{chunk-GXHSGPIF.js.map → chunk-IGYIVSD4.js.map} +0 -0
- /package/dist/{chunk-4LXZDGCO.js.map → chunk-IZJC66JK.js.map} +0 -0
- /package/dist/{chunk-6KSM5M7T.js.map → chunk-JF3APTJS.js.map} +0 -0
- /package/dist/{chunk-7TGWBYFN.js.map → chunk-LQC2XIQ5.js.map} +0 -0
- /package/dist/{chunk-GL3ZM7F3.js.map → chunk-MAQDSC4C.js.map} +0 -0
- /package/dist/{chunk-DEYAAT6H.js.map → chunk-MKPXX4RV.js.map} +0 -0
- /package/dist/{chunk-NMJYV37P.js.map → chunk-MMRONBNC.js.map} +0 -0
- /package/dist/{chunk-VFQU3JSH.js.map → chunk-OS26ZCWF.js.map} +0 -0
- /package/dist/{chunk-NNE44UHQ.js.map → chunk-UAFVGOA7.js.map} +0 -0
- /package/dist/{chunk-N4GXGPVA.js.map → chunk-VCXKB4QH.js.map} +0 -0
- /package/dist/{chunk-KNLFFHBT.js.map → chunk-Z7JVH236.js.map} +0 -0
- /package/dist/{chunk-SSKQUKI7.js.map → chunk-ZQQ56UGL.js.map} +0 -0
- /package/dist/{commands-IJTOU4P3.js.map → commands-3QMEPLJI.js.map} +0 -0
- /package/dist/{config-YRHKZJO6.js.map → config-SRARC4UV.js.map} +0 -0
- /package/dist/{context-ZZO64MRN.js.map → context-LYZN2WOR.js.map} +0 -0
- /package/dist/{customCommands-2S7LYMG7.js.map → customCommands-G64J6TJU.js.map} +0 -0
- /package/dist/{env-PQDRZBAW.js.map → env-NRGZD37J.js.map} +0 -0
- /package/dist/{file-X7BE3MNR.js.map → file-B7ZHCEOY.js.map} +0 -0
- /package/dist/{llm-3KCTIVOM.js.map → llm-FB3ZW3AI.js.map} +0 -0
- /package/dist/{llmLazy-HCTXTHRZ.js.map → llmLazy-DHIZM4VB.js.map} +0 -0
- /package/dist/{loader-DKMJSH4V.js.map → loader-G4RUXY5F.js.map} +0 -0
- /package/dist/{lsp-IXEAYT4K.js.map → lsp-G7G7KQ6Z.js.map} +0 -0
- /package/dist/{lspAnchor-FKXOKCQZ.js.map → lspAnchor-4XUNRJYJ.js.map} +0 -0
- /package/dist/{mcp-ZUJD3E4V.js.map → mcp-GP2OY5CW.js.map} +0 -0
- /package/dist/{mentionProcessor-7GXI47P3.js.map → mentionProcessor-5VND2CWI.js.map} +0 -0
- /package/dist/{messages-55HNRTQC.js.map → messages-DJTPGO5G.js.map} +0 -0
- /package/dist/{model-R5X6XP7I.js.map → model-FY7P6LPI.js.map} +0 -0
- /package/dist/{openai-FM7DX3GB.js.map → openai-R5JKUS7L.js.map} +0 -0
- /package/dist/{outputStyles-ZLGIDCCJ.js.map → outputStyles-XPOEKV5L.js.map} +0 -0
- /package/dist/{pluginRuntime-REF3E5F5.js.map → pluginRuntime-PLWSOKAW.js.map} +0 -0
- /package/dist/{pluginValidation-E33USDYW.js.map → pluginValidation-M57BSDWY.js.map} +0 -0
- /package/dist/{prompts-W7TUXY74.js.map → prompts-V55TE46Y.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-PGTH6SZH.js.map → pybAgentSessionLoad-IDJQMXK3.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-IVBY65PN.js.map → pybAgentSessionResume-U2LJH3AF.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-N2Q6LQHX.js.map → pybAgentStreamJsonSession-F2QIUJBH.js.map} +0 -0
- /package/dist/{pybHooks-WIA5KKVN.js.map → pybHooks-KYHGMDRK.js.map} +0 -0
- /package/dist/{query-BTG2T7NV.js.map → query-7J3FFRIB.js.map} +0 -0
- /package/dist/{registry-PT3XVAT6.js.map → registry-I5LJ4C6T.js.map} +0 -0
- /package/dist/{ripgrep-2VWCSPH4.js.map → ripgrep-7AN4NOC7.js.map} +0 -0
- /package/dist/{skillMarketplace-NHPAPZTS.js.map → skillMarketplace-Z7R6YX7F.js.map} +0 -0
- /package/dist/{state-4AIVX6VM.js.map → state-DEPXOXNL.js.map} +0 -0
- /package/dist/{theme-LKZFY5TU.js.map → theme-HXJ2OXED.js.map} +0 -0
- /package/dist/{toolPermissionSettings-OVFT6D3R.js.map → toolPermissionSettings-4LMPOZYV.js.map} +0 -0
- /package/dist/{tools-6ONPKOSL.js.map → tools-FCGNXBLR.js.map} +0 -0
- /package/dist/{userInput-RHGZ225B.js.map → userInput-BYJMHASU.js.map} +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createRequire as __pybCreateRequire } from "node:module";
|
|
2
|
+
const require = __pybCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
REPL
|
|
5
|
+
} from "./chunk-EADYBO22.js";
|
|
6
|
+
import "./chunk-HC2UA3UA.js";
|
|
7
|
+
import "./chunk-4663HA7W.js";
|
|
8
|
+
import "./chunk-ZQQ56UGL.js";
|
|
9
|
+
import "./chunk-UAFVGOA7.js";
|
|
10
|
+
import "./chunk-5P7HBXTD.js";
|
|
11
|
+
import "./chunk-MKPXX4RV.js";
|
|
12
|
+
import "./chunk-AOK6U7U7.js";
|
|
13
|
+
import "./chunk-ABCEGXO7.js";
|
|
14
|
+
import "./chunk-GS2HTCOK.js";
|
|
15
|
+
import "./chunk-OS26ZCWF.js";
|
|
16
|
+
import "./chunk-IGU3SZC3.js";
|
|
17
|
+
import "./chunk-GW3QUBEN.js";
|
|
18
|
+
import "./chunk-UNNVICVU.js";
|
|
19
|
+
import "./chunk-6K3ESUEV.js";
|
|
20
|
+
import "./chunk-ERMQRV55.js";
|
|
21
|
+
import "./chunk-Z7JVH236.js";
|
|
22
|
+
import "./chunk-A3BVXXA3.js";
|
|
23
|
+
import "./chunk-5AQPEKHM.js";
|
|
24
|
+
import "./chunk-3DFBSQIT.js";
|
|
25
|
+
import "./chunk-B6IMQJZM.js";
|
|
26
|
+
import "./chunk-OUXHGDLH.js";
|
|
27
|
+
import "./chunk-MMRONBNC.js";
|
|
28
|
+
import "./chunk-QWIBSCDN.js";
|
|
29
|
+
import "./chunk-LQC2XIQ5.js";
|
|
30
|
+
import "./chunk-MAQDSC4C.js";
|
|
31
|
+
import "./chunk-VCXKB4QH.js";
|
|
32
|
+
import "./chunk-UZ34JEUK.js";
|
|
33
|
+
import "./chunk-HSV2W6ZE.js";
|
|
34
|
+
import "./chunk-BJSWTHRM.js";
|
|
35
|
+
import "./chunk-IZJC66JK.js";
|
|
36
|
+
import "./chunk-IGYIVSD4.js";
|
|
37
|
+
import "./chunk-JF3APTJS.js";
|
|
38
|
+
import "./chunk-6SRKKJNO.js";
|
|
39
|
+
import "./chunk-BEP5VFCR.js";
|
|
40
|
+
import "./chunk-RQVLBMP7.js";
|
|
41
|
+
import "./chunk-BDM7IINE.js";
|
|
42
|
+
import "./chunk-FJBRBBAE.js";
|
|
43
|
+
import "./chunk-Y4R6A5ZF.js";
|
|
44
|
+
import "./chunk-I3J4JYES.js";
|
|
45
|
+
export {
|
|
46
|
+
REPL
|
|
47
|
+
};
|
|
@@ -6,66 +6,66 @@ import {
|
|
|
6
6
|
} from "./chunk-MWPFU2KU.js";
|
|
7
7
|
import {
|
|
8
8
|
getTools
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2L67XJY6.js";
|
|
10
10
|
import {
|
|
11
11
|
getCommands,
|
|
12
12
|
getSystemPrompt,
|
|
13
13
|
grantReadPermissionForOriginalDir,
|
|
14
14
|
hasPermissionsToUseTool,
|
|
15
15
|
query
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-EADYBO22.js";
|
|
17
|
+
import "./chunk-HC2UA3UA.js";
|
|
18
|
+
import "./chunk-4663HA7W.js";
|
|
19
|
+
import "./chunk-ZQQ56UGL.js";
|
|
20
|
+
import "./chunk-UAFVGOA7.js";
|
|
21
21
|
import "./chunk-5P7HBXTD.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-MKPXX4RV.js";
|
|
23
|
+
import "./chunk-AOK6U7U7.js";
|
|
24
|
+
import "./chunk-ABCEGXO7.js";
|
|
25
|
+
import "./chunk-GS2HTCOK.js";
|
|
26
26
|
import {
|
|
27
27
|
getClients
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-OS26ZCWF.js";
|
|
29
|
+
import "./chunk-IGU3SZC3.js";
|
|
30
30
|
import {
|
|
31
31
|
loadToolPermissionContextFromDisk,
|
|
32
32
|
persistToolPermissionUpdateToDisk
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-GW3QUBEN.js";
|
|
34
34
|
import {
|
|
35
35
|
applyToolPermissionContextUpdates
|
|
36
36
|
} from "./chunk-UNNVICVU.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-6K3ESUEV.js";
|
|
38
38
|
import "./chunk-ERMQRV55.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-Z7JVH236.js";
|
|
40
40
|
import "./chunk-A3BVXXA3.js";
|
|
41
41
|
import {
|
|
42
42
|
createAssistantMessage,
|
|
43
43
|
createUserMessage
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-5AQPEKHM.js";
|
|
45
45
|
import "./chunk-3DFBSQIT.js";
|
|
46
46
|
import "./chunk-B6IMQJZM.js";
|
|
47
47
|
import "./chunk-OUXHGDLH.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-MMRONBNC.js";
|
|
49
49
|
import "./chunk-QWIBSCDN.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-LQC2XIQ5.js";
|
|
51
|
+
import "./chunk-MAQDSC4C.js";
|
|
52
|
+
import "./chunk-VCXKB4QH.js";
|
|
53
53
|
import "./chunk-UZ34JEUK.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-HSV2W6ZE.js";
|
|
55
55
|
import "./chunk-BJSWTHRM.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-IZJC66JK.js";
|
|
57
57
|
import {
|
|
58
58
|
getContext
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
59
|
+
} from "./chunk-IGYIVSD4.js";
|
|
60
|
+
import "./chunk-JF3APTJS.js";
|
|
61
|
+
import "./chunk-6SRKKJNO.js";
|
|
62
62
|
import {
|
|
63
63
|
enableConfigs
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-BEP5VFCR.js";
|
|
65
65
|
import "./chunk-RQVLBMP7.js";
|
|
66
66
|
import {
|
|
67
67
|
initDebugLogger
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-BDM7IINE.js";
|
|
69
69
|
import {
|
|
70
70
|
PRODUCT_COMMAND,
|
|
71
71
|
initSentry,
|
|
@@ -73,10 +73,10 @@ import {
|
|
|
73
73
|
resolveXdgDataPath,
|
|
74
74
|
setCwd,
|
|
75
75
|
setOriginalCwd
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-FJBRBBAE.js";
|
|
77
77
|
import {
|
|
78
78
|
MACRO
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-Y4R6A5ZF.js";
|
|
80
80
|
import "./chunk-I3J4JYES.js";
|
|
81
81
|
|
|
82
82
|
// src/acp/jsonrpc.ts
|
|
@@ -2,14 +2,14 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
getModelManager
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-IZJC66JK.js";
|
|
6
|
+
import "./chunk-BEP5VFCR.js";
|
|
7
7
|
import "./chunk-RQVLBMP7.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-BDM7IINE.js";
|
|
9
9
|
import {
|
|
10
10
|
getXdgConfigDir
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-FJBRBBAE.js";
|
|
12
|
+
import "./chunk-Y4R6A5ZF.js";
|
|
13
13
|
import "./chunk-I3J4JYES.js";
|
|
14
14
|
|
|
15
15
|
// src/entrypoints/cli/agentsValidate.ts
|
|
@@ -346,8 +346,8 @@ async function validateAgentTemplates(args) {
|
|
|
346
346
|
let knownToolNames;
|
|
347
347
|
if (args.checkTools) {
|
|
348
348
|
try {
|
|
349
|
-
const { getTools } = await import("./tools-
|
|
350
|
-
const { getCurrentProjectConfig } = await import("./config-
|
|
349
|
+
const { getTools } = await import("./tools-FCGNXBLR.js");
|
|
350
|
+
const { getCurrentProjectConfig } = await import("./config-SRARC4UV.js");
|
|
351
351
|
const allTools = await getTools(getCurrentProjectConfig().enableArchitectTool);
|
|
352
352
|
knownToolNames = new Set(allTools.map((t) => t.name));
|
|
353
353
|
} catch {
|
|
@@ -3,57 +3,57 @@ const require = __pybCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getSystemPrompt,
|
|
5
5
|
query
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-EADYBO22.js";
|
|
7
|
+
import "./chunk-HC2UA3UA.js";
|
|
8
|
+
import "./chunk-4663HA7W.js";
|
|
9
|
+
import "./chunk-ZQQ56UGL.js";
|
|
10
|
+
import "./chunk-UAFVGOA7.js";
|
|
11
11
|
import "./chunk-5P7HBXTD.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-MKPXX4RV.js";
|
|
13
|
+
import "./chunk-AOK6U7U7.js";
|
|
14
|
+
import "./chunk-ABCEGXO7.js";
|
|
15
|
+
import "./chunk-GS2HTCOK.js";
|
|
16
|
+
import "./chunk-OS26ZCWF.js";
|
|
17
|
+
import "./chunk-IGU3SZC3.js";
|
|
18
|
+
import "./chunk-GW3QUBEN.js";
|
|
19
19
|
import "./chunk-UNNVICVU.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-6K3ESUEV.js";
|
|
21
21
|
import "./chunk-ERMQRV55.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-Z7JVH236.js";
|
|
23
23
|
import "./chunk-A3BVXXA3.js";
|
|
24
24
|
import {
|
|
25
25
|
createUserMessage
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-5AQPEKHM.js";
|
|
27
27
|
import "./chunk-3DFBSQIT.js";
|
|
28
28
|
import "./chunk-B6IMQJZM.js";
|
|
29
29
|
import {
|
|
30
30
|
getTotalCost
|
|
31
31
|
} from "./chunk-OUXHGDLH.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-MMRONBNC.js";
|
|
33
33
|
import "./chunk-QWIBSCDN.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-LQC2XIQ5.js";
|
|
35
|
+
import "./chunk-MAQDSC4C.js";
|
|
36
|
+
import "./chunk-VCXKB4QH.js";
|
|
37
37
|
import "./chunk-UZ34JEUK.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-HSV2W6ZE.js";
|
|
39
39
|
import "./chunk-BJSWTHRM.js";
|
|
40
40
|
import {
|
|
41
41
|
getModelManager
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-IZJC66JK.js";
|
|
43
43
|
import {
|
|
44
44
|
getContext
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
45
|
+
} from "./chunk-IGYIVSD4.js";
|
|
46
|
+
import "./chunk-JF3APTJS.js";
|
|
47
|
+
import "./chunk-6SRKKJNO.js";
|
|
48
|
+
import "./chunk-BEP5VFCR.js";
|
|
49
49
|
import "./chunk-RQVLBMP7.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-BDM7IINE.js";
|
|
51
51
|
import {
|
|
52
52
|
getMessagesPath,
|
|
53
53
|
overwriteLog,
|
|
54
54
|
setCwd
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-FJBRBBAE.js";
|
|
56
|
+
import "./chunk-Y4R6A5ZF.js";
|
|
57
57
|
import "./chunk-I3J4JYES.js";
|
|
58
58
|
|
|
59
59
|
// src/app/ask.ts
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
checkAndNotifyUpdate,
|
|
6
6
|
getLatestVersion,
|
|
7
7
|
getUpdateCommandSuggestions
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-3KC257RS.js";
|
|
9
|
+
import "./chunk-FJBRBBAE.js";
|
|
10
|
+
import "./chunk-Y4R6A5ZF.js";
|
|
11
11
|
import "./chunk-I3J4JYES.js";
|
|
12
12
|
export {
|
|
13
13
|
assertMinVersion,
|
|
@@ -28,16 +28,16 @@ import {
|
|
|
28
28
|
hasReadPermission,
|
|
29
29
|
hasWritePermission,
|
|
30
30
|
query
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-EADYBO22.js";
|
|
32
32
|
import {
|
|
33
33
|
queryLLM
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GS2HTCOK.js";
|
|
35
35
|
import {
|
|
36
36
|
FallbackToolUseRejectedMessage,
|
|
37
37
|
MCPTool,
|
|
38
38
|
getClients,
|
|
39
39
|
getMCPTools
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-OS26ZCWF.js";
|
|
41
41
|
import {
|
|
42
42
|
TaskStoreConflictError,
|
|
43
43
|
createTask,
|
|
@@ -47,45 +47,45 @@ import {
|
|
|
47
47
|
getTaskListPaths,
|
|
48
48
|
listTasks,
|
|
49
49
|
updateTask
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-6K3ESUEV.js";
|
|
51
51
|
import {
|
|
52
52
|
getActiveAgents,
|
|
53
53
|
getAgentByType,
|
|
54
54
|
getAvailableAgentTypes
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-Z7JVH236.js";
|
|
56
56
|
import {
|
|
57
57
|
INTERRUPT_MESSAGE,
|
|
58
58
|
createAssistantMessage,
|
|
59
59
|
createUserMessage,
|
|
60
60
|
getLastAssistantMessageId
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-5AQPEKHM.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-MMRONBNC.js";
|
|
69
69
|
import {
|
|
70
70
|
LspFacade,
|
|
71
71
|
formatDiagnosticsPretty
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-LQC2XIQ5.js";
|
|
73
73
|
import {
|
|
74
74
|
getModelManager
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-IZJC66JK.js";
|
|
76
76
|
import {
|
|
77
77
|
getContext
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-IGYIVSD4.js";
|
|
79
79
|
import {
|
|
80
80
|
filesToTree,
|
|
81
81
|
ripGrepWithStatus
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-JF3APTJS.js";
|
|
83
83
|
import {
|
|
84
84
|
getTheme
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-6SRKKJNO.js";
|
|
86
86
|
import {
|
|
87
87
|
debug
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-BDM7IINE.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-FJBRBBAE.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-DEPXOXNL.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-G7G7KQ6Z.js");
|
|
1152
1152
|
const referenceDetail = await LspFacade2.checkFileReferences(fullPath);
|
|
1153
1153
|
if (referenceDetail) {
|
|
1154
1154
|
failedItems.push(
|
|
@@ -3001,18 +3001,31 @@ var TaskTool = {
|
|
|
3001
3001
|
import { z as z9 } from "zod";
|
|
3002
3002
|
|
|
3003
3003
|
// src/utils/session/taskToolUtils.ts
|
|
3004
|
-
function
|
|
3004
|
+
function toTaskListItem(task) {
|
|
3005
3005
|
return {
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3006
|
+
id: task.id,
|
|
3007
|
+
subject: task.subject,
|
|
3008
|
+
status: task.status,
|
|
3009
|
+
owner: task.assignee,
|
|
3010
|
+
blockedBy: task.blockedBy ?? []
|
|
3010
3011
|
};
|
|
3011
3012
|
}
|
|
3012
|
-
function
|
|
3013
|
+
function toTaskDetail(task) {
|
|
3013
3014
|
return {
|
|
3014
|
-
task,
|
|
3015
|
-
|
|
3015
|
+
id: task.id,
|
|
3016
|
+
subject: task.subject,
|
|
3017
|
+
description: task.description,
|
|
3018
|
+
activeForm: task.activeForm,
|
|
3019
|
+
status: task.status,
|
|
3020
|
+
tags: task.tags,
|
|
3021
|
+
assignee: task.assignee,
|
|
3022
|
+
metadata: task.metadata,
|
|
3023
|
+
archived: task.archived,
|
|
3024
|
+
blocks: task.blocks ?? [],
|
|
3025
|
+
blockedBy: task.blockedBy ?? [],
|
|
3026
|
+
parent: task.parent,
|
|
3027
|
+
related: task.related ?? [],
|
|
3028
|
+
legacyTodoId: task.legacyTodoId
|
|
3016
3029
|
};
|
|
3017
3030
|
}
|
|
3018
3031
|
function createTaskToolError(params) {
|
|
@@ -3034,7 +3047,7 @@ var PROMPT6 = `Use this tool to create a new task in the current task list. It i
|
|
|
3034
3047
|
Use this tool proactively in these scenarios:
|
|
3035
3048
|
1. You need to add a task with structured fields (subject, status, tags).
|
|
3036
3049
|
2. You want to seed a plan for multi-step work before implementation starts.
|
|
3037
|
-
3. You need to define dependencies (
|
|
3050
|
+
3. You need to define dependencies (blockedBy, parent, related) at creation time.
|
|
3038
3051
|
4. You need to align with a user request to create a task list or plan.
|
|
3039
3052
|
|
|
3040
3053
|
## When NOT to Use This Tool
|
|
@@ -3050,10 +3063,9 @@ NOTE that you should not use this tool if you are only updating status or detail
|
|
|
3050
3063
|
- subject is required.
|
|
3051
3064
|
- listId is optional; omit to use the default list.
|
|
3052
3065
|
- Dependencies are validated for cycles; invalid cycles will be rejected.
|
|
3053
|
-
- baseVersion is set automatically for new tasks.
|
|
3054
3066
|
- status can be open, in_progress, blocked, done, or archived.
|
|
3055
3067
|
- activeForm will be generated from subject if omitted.
|
|
3056
|
-
-
|
|
3068
|
+
- blockedBy is always stored as an array (empty when not used).
|
|
3057
3069
|
- description and blockedBy are kept separate in JSON; any joining is only for terminal rendering.
|
|
3058
3070
|
- Task ordering relies on task id; do not use priority fields.
|
|
3059
3071
|
|
|
@@ -3140,7 +3152,6 @@ var TaskCreateTool = {
|
|
|
3140
3152
|
async *call(input) {
|
|
3141
3153
|
try {
|
|
3142
3154
|
const subject = input.subject;
|
|
3143
|
-
const title = subject;
|
|
3144
3155
|
const tasks = listTasks({ listId: input.listId });
|
|
3145
3156
|
const nextId = Math.max(
|
|
3146
3157
|
0,
|
|
@@ -3150,7 +3161,6 @@ var TaskCreateTool = {
|
|
|
3150
3161
|
const candidateTask = {
|
|
3151
3162
|
id: String(nextId),
|
|
3152
3163
|
subject,
|
|
3153
|
-
title,
|
|
3154
3164
|
description: input.description,
|
|
3155
3165
|
activeForm: input.activeForm,
|
|
3156
3166
|
status: input.status ?? "open",
|
|
@@ -3158,7 +3168,7 @@ var TaskCreateTool = {
|
|
|
3158
3168
|
assignee: input.assignee,
|
|
3159
3169
|
metadata: input.metadata,
|
|
3160
3170
|
archived: input.archived,
|
|
3161
|
-
blocks:
|
|
3171
|
+
blocks: [],
|
|
3162
3172
|
blockedBy: input.blockedBy,
|
|
3163
3173
|
parent: input.parent,
|
|
3164
3174
|
related: input.related,
|
|
@@ -3192,7 +3202,6 @@ var TaskCreateTool = {
|
|
|
3192
3202
|
assignee: input.assignee,
|
|
3193
3203
|
metadata: input.metadata,
|
|
3194
3204
|
archived: input.archived,
|
|
3195
|
-
blocks: input.blocks,
|
|
3196
3205
|
blockedBy: input.blockedBy,
|
|
3197
3206
|
parent: input.parent,
|
|
3198
3207
|
related: input.related,
|
|
@@ -3211,7 +3220,7 @@ var TaskCreateTool = {
|
|
|
3211
3220
|
type: "result",
|
|
3212
3221
|
data: {
|
|
3213
3222
|
listId,
|
|
3214
|
-
item:
|
|
3223
|
+
item: toTaskDetail(task)
|
|
3215
3224
|
}
|
|
3216
3225
|
};
|
|
3217
3226
|
} catch (error) {
|
|
@@ -3238,7 +3247,7 @@ var PROMPT7 = `Use this tool to fetch a single task by id.
|
|
|
3238
3247
|
Use this tool proactively in these scenarios:
|
|
3239
3248
|
|
|
3240
3249
|
1. You need details for one task to confirm its fields, status, or dependencies.
|
|
3241
|
-
2. You need the latest
|
|
3250
|
+
2. You need the latest task details before updating a task.
|
|
3242
3251
|
|
|
3243
3252
|
## When NOT to Use This Tool
|
|
3244
3253
|
|
|
@@ -3316,7 +3325,7 @@ var TaskGetTool = {
|
|
|
3316
3325
|
type: "result",
|
|
3317
3326
|
data: {
|
|
3318
3327
|
listId,
|
|
3319
|
-
item:
|
|
3328
|
+
item: toTaskDetail(task)
|
|
3320
3329
|
}
|
|
3321
3330
|
};
|
|
3322
3331
|
}
|
|
@@ -3327,7 +3336,7 @@ import { z as z11 } from "zod";
|
|
|
3327
3336
|
|
|
3328
3337
|
// src/tools/interaction/TaskListTool/prompt.ts
|
|
3329
3338
|
var DESCRIPTION8 = "List tasks in a task list, optionally filtered by status with ready/blocked breakdown.";
|
|
3330
|
-
var PROMPT8 = `Use this tool to list tasks and understand readiness. It returns ready and blocked groupings to help prioritize work.
|
|
3339
|
+
var PROMPT8 = `Use this tool to list tasks and understand readiness. It returns ready and blocked groupings to help prioritize work. TaskList only returns id/subject/status/owner/blockedBy for summaries; use TaskGet for details.
|
|
3331
3340
|
|
|
3332
3341
|
## When to Use This Tool
|
|
3333
3342
|
Use this tool proactively in these scenarios:
|
|
@@ -3373,10 +3382,10 @@ var inputSchema11 = z11.strictObject({
|
|
|
3373
3382
|
});
|
|
3374
3383
|
var filterByStatus = (tasks, statuses) => {
|
|
3375
3384
|
if (!statuses || statuses.length === 0) {
|
|
3376
|
-
return tasks.filter((item) => item.
|
|
3385
|
+
return tasks.filter((item) => item.status !== "archived");
|
|
3377
3386
|
}
|
|
3378
3387
|
const allowed = new Set(statuses);
|
|
3379
|
-
return tasks.filter((item) => allowed.has(item.
|
|
3388
|
+
return tasks.filter((item) => allowed.has(item.status));
|
|
3380
3389
|
};
|
|
3381
3390
|
var TaskListTool = {
|
|
3382
3391
|
name: "TaskList",
|
|
@@ -3413,17 +3422,12 @@ var TaskListTool = {
|
|
|
3413
3422
|
try {
|
|
3414
3423
|
const { listId } = getTaskListPaths(input.listId);
|
|
3415
3424
|
const tasks = listTasks({ listId: input.listId });
|
|
3416
|
-
const
|
|
3417
|
-
const
|
|
3418
|
-
const
|
|
3419
|
-
|
|
3420
|
-
);
|
|
3421
|
-
const ready = readyBlocked.ready.map(toTaskSummary);
|
|
3422
|
-
const blocked = readyBlocked.blocked.map(toTaskSummary);
|
|
3425
|
+
const filtered = filterByStatus(tasks, input.status);
|
|
3426
|
+
const readyBlocked = calculateReadyBlocked(filtered);
|
|
3427
|
+
const ready = readyBlocked.ready.map(toTaskListItem);
|
|
3428
|
+
const blocked = readyBlocked.blocked.map(toTaskListItem);
|
|
3423
3429
|
const includeBlocked = input.includeBlocked !== false;
|
|
3424
|
-
const items = includeBlocked ? filtered : filtered.filter(
|
|
3425
|
-
(item) => ready.some((entry) => entry.task.id === item.task.id)
|
|
3426
|
-
);
|
|
3430
|
+
const items = includeBlocked ? filtered.map(toTaskListItem) : filtered.filter((item) => ready.some((entry) => entry.id === item.id)).map(toTaskListItem);
|
|
3427
3431
|
yield {
|
|
3428
3432
|
type: "result",
|
|
3429
3433
|
data: {
|
|
@@ -3457,8 +3461,8 @@ var PROMPT9 = `Use this tool to update an existing task. It is the primary way t
|
|
|
3457
3461
|
Use this tool proactively in these scenarios:
|
|
3458
3462
|
|
|
3459
3463
|
1. You need to change task fields (subject/description/status/tags).
|
|
3460
|
-
2. You need to adjust dependencies (
|
|
3461
|
-
3. You need
|
|
3464
|
+
2. You need to adjust dependencies (blockedBy, parent, related).
|
|
3465
|
+
3. You need to move a task across states (open \u2192 in_progress \u2192 done).
|
|
3462
3466
|
4. You are moving a task across states (open \u2192 in_progress \u2192 done).
|
|
3463
3467
|
|
|
3464
3468
|
## When NOT to Use This Tool
|
|
@@ -3467,16 +3471,16 @@ Skip using this tool when:
|
|
|
3467
3471
|
1. You need to create a new task (use TaskCreate).
|
|
3468
3472
|
2. You only need to read tasks (use TaskGet or TaskList).
|
|
3469
3473
|
|
|
3470
|
-
NOTE that TaskUpdate
|
|
3474
|
+
NOTE that TaskUpdate should be used when you need to persist task changes.
|
|
3471
3475
|
|
|
3472
3476
|
## Input Notes
|
|
3473
3477
|
- taskId is required.
|
|
3474
3478
|
- listId is optional; omit to use the default list.
|
|
3475
3479
|
- If you provide status=done/archived and a parent exists, parent must already be completed.
|
|
3476
3480
|
- Dependencies are validated for cycles; invalid cycles will be rejected.
|
|
3477
|
-
-
|
|
3481
|
+
- If an update fails due to a conflict, refetch the task and retry.
|
|
3478
3482
|
- activeForm will be generated from subject if omitted.
|
|
3479
|
-
-
|
|
3483
|
+
- blockedBy is always stored as an array (empty when not used).
|
|
3480
3484
|
- description and blockedBy are kept separate in JSON; any joining is only for terminal rendering.
|
|
3481
3485
|
- Task ordering relies on task id; do not use priority fields.
|
|
3482
3486
|
|
|
@@ -3500,9 +3504,9 @@ Assistant: I'll update dependencies.
|
|
|
3500
3504
|
</example>
|
|
3501
3505
|
|
|
3502
3506
|
<example>
|
|
3503
|
-
User: The task update failed due to
|
|
3504
|
-
Assistant: I'll refetch the task and retry
|
|
3505
|
-
*Fetches task, then updates
|
|
3507
|
+
User: The task update failed due to a conflict.
|
|
3508
|
+
Assistant: I'll refetch the task and retry the update.
|
|
3509
|
+
*Fetches task, then updates again*
|
|
3506
3510
|
</example>
|
|
3507
3511
|
`;
|
|
3508
3512
|
|
|
@@ -3511,12 +3515,6 @@ var isCompletedStatus = (status) => status === "done" || status === "archived";
|
|
|
3511
3515
|
var normalizeDeps = (items) => [...items ?? []].filter(Boolean).sort();
|
|
3512
3516
|
var depsChanged = (prev, next) => {
|
|
3513
3517
|
if (prev.parent !== next.parent) return true;
|
|
3514
|
-
const prevBlocks = normalizeDeps(prev.blocks);
|
|
3515
|
-
const nextBlocks = normalizeDeps(next.blocks);
|
|
3516
|
-
if (prevBlocks.length !== nextBlocks.length) return true;
|
|
3517
|
-
for (let i = 0; i < prevBlocks.length; i += 1) {
|
|
3518
|
-
if (prevBlocks[i] !== nextBlocks[i]) return true;
|
|
3519
|
-
}
|
|
3520
3518
|
const prevBlockedBy = normalizeDeps(prev.blockedBy);
|
|
3521
3519
|
const nextBlockedBy = normalizeDeps(next.blockedBy);
|
|
3522
3520
|
if (prevBlockedBy.length !== nextBlockedBy.length) return true;
|
|
@@ -3605,11 +3603,9 @@ var TaskUpdateTool = {
|
|
|
3605
3603
|
}
|
|
3606
3604
|
const tasks = listTasks({ listId: input.listId });
|
|
3607
3605
|
const subject = input.subject ?? existing.subject;
|
|
3608
|
-
const title = subject;
|
|
3609
3606
|
const updatedTask = {
|
|
3610
3607
|
...existing,
|
|
3611
3608
|
subject,
|
|
3612
|
-
title,
|
|
3613
3609
|
description: input.description ?? existing.description,
|
|
3614
3610
|
activeForm: input.activeForm ?? existing.activeForm,
|
|
3615
3611
|
status: input.status ?? existing.status,
|
|
@@ -3617,7 +3613,6 @@ var TaskUpdateTool = {
|
|
|
3617
3613
|
assignee: input.assignee ?? existing.assignee,
|
|
3618
3614
|
metadata: input.metadata ?? existing.metadata,
|
|
3619
3615
|
archived: input.archived ?? existing.archived,
|
|
3620
|
-
blocks: input.blocks ?? existing.blocks,
|
|
3621
3616
|
blockedBy: input.blockedBy ?? existing.blockedBy,
|
|
3622
3617
|
parent: input.parent ?? existing.parent,
|
|
3623
3618
|
related: input.related ?? existing.related,
|
|
@@ -3673,7 +3668,6 @@ var TaskUpdateTool = {
|
|
|
3673
3668
|
assignee: input.assignee,
|
|
3674
3669
|
metadata: input.metadata,
|
|
3675
3670
|
archived: input.archived,
|
|
3676
|
-
blocks: input.blocks,
|
|
3677
3671
|
blockedBy: input.blockedBy,
|
|
3678
3672
|
parent: input.parent,
|
|
3679
3673
|
related: input.related,
|
|
@@ -3710,7 +3704,7 @@ var TaskUpdateTool = {
|
|
|
3710
3704
|
type: "result",
|
|
3711
3705
|
data: {
|
|
3712
3706
|
listId,
|
|
3713
|
-
item:
|
|
3707
|
+
item: toTaskDetail(result.task)
|
|
3714
3708
|
}
|
|
3715
3709
|
};
|
|
3716
3710
|
} catch (error) {
|