pybao-cli 1.4.40 → 1.4.42
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-VG5CDI4P.js +47 -0
- package/dist/{acp-QZOLCDA5.js → acp-XVNKNV3E.js} +29 -29
- package/dist/{agentsValidate-WTSEY43P.js → agentsValidate-KFF3RVPH.js} +7 -7
- package/dist/{ask-5ZZ4OGPD.js → ask-LKJXJMR5.js} +28 -28
- package/dist/{autoUpdater-VMUVSMU5.js → autoUpdater-CIANZ33Q.js} +3 -3
- package/dist/{chunk-FX27A4PO.js → chunk-3H4A5QMO.js} +18 -16
- package/dist/{chunk-GGZ2ZOJU.js → chunk-57CQ4K7N.js} +1 -1
- package/dist/{chunk-GGZ2ZOJU.js.map → chunk-57CQ4K7N.js.map} +1 -1
- package/dist/{chunk-4UHECP7Z.js → chunk-7VTM6GSK.js} +2 -2
- package/dist/{chunk-C74GKYBJ.js → chunk-7Y2H4GS4.js} +1 -1
- package/dist/{chunk-M7NCOW6Z.js → chunk-AHPU2PGO.js} +3 -3
- package/dist/{chunk-HLJUPG7B.js → chunk-AP4VEEZP.js} +63 -15
- package/dist/chunk-AP4VEEZP.js.map +7 -0
- package/dist/{chunk-TI3TEYDV.js → chunk-BBYZVCZQ.js} +1 -1
- package/dist/{chunk-RMKU4DVP.js → chunk-BYPPCDD2.js} +35 -35
- package/dist/{chunk-QP4OM5KA.js → chunk-EGV5AHT6.js} +1 -1
- package/dist/{chunk-CX4ZCXOT.js → chunk-EINP2VAK.js} +2 -2
- package/dist/{chunk-WXW6AHFI.js → chunk-GDU2HUZH.js} +1 -1
- package/dist/{chunk-3JMLHAXQ.js → chunk-GGCKAUKM.js} +4 -4
- package/dist/{chunk-SEEKO5XX.js → chunk-GZDDXJ4Q.js} +1 -1
- package/dist/{chunk-OVRZG3WK.js → chunk-H3OU5E5S.js} +2 -2
- package/dist/{chunk-O6OVLSDT.js → chunk-IP75LG6S.js} +2 -2
- package/dist/{chunk-CMMWSXAT.js → chunk-K7IK7ZL2.js} +3 -3
- package/dist/{chunk-CBJ6GW2R.js → chunk-KMMPDUGB.js} +3 -3
- package/dist/{chunk-D5B6P6W5.js → chunk-M7T5OUGS.js} +4 -4
- package/dist/{chunk-5H4FGNYX.js → chunk-MPSUVQPO.js} +2 -2
- package/dist/{chunk-YBAS546F.js → chunk-RICL7AWV.js} +2 -2
- package/dist/{chunk-UU6CASWY.js → chunk-RVEBFG24.js} +1 -1
- package/dist/{chunk-WNIKFDDS.js → chunk-SBL55NIX.js} +3 -3
- package/dist/{chunk-ZTZHCMM5.js → chunk-SYKTE7AC.js} +3 -3
- package/dist/{chunk-YMEQARK4.js → chunk-URU2VODZ.js} +1 -1
- package/dist/{chunk-QC2QS3JL.js → chunk-V7X642BK.js} +3 -3
- package/dist/{chunk-MSHWIJYD.js → chunk-X6S5OK26.js} +4 -4
- package/dist/{chunk-SV2NALVC.js → chunk-Y4AVABF3.js} +4 -4
- package/dist/{chunk-SVVHXVZ7.js → chunk-YSULMEY6.js} +1 -1
- package/dist/{chunk-CJWSI4HB.js → chunk-YVEC4WWH.js} +3 -3
- package/dist/{chunk-S6VKLRBA.js → chunk-Z523XI5F.js} +1 -1
- package/dist/{cli-5TNOUCJC.js → cli-LVRTYUS6.js} +192 -88
- package/dist/cli-LVRTYUS6.js.map +7 -0
- package/dist/commands-ZAWRCNLL.js +51 -0
- package/dist/{config-EQVBDMNL.js → config-DH3LM7PS.js} +4 -4
- package/dist/{context-XHT72KYH.js → context-GKRJFDXC.js} +6 -6
- package/dist/{customCommands-53PEYF2P.js → customCommands-C7PLNROC.js} +4 -4
- package/dist/{env-HHTIBIOA.js → env-6SXLWYQV.js} +2 -2
- package/dist/{file-2XL7UEI6.js → file-SACICH4E.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-YYDRZV6Q.js → llm-NGIIGWRI.js} +29 -29
- package/dist/{llmLazy-PVTHNKPQ.js → llmLazy-363ZRV5D.js} +1 -1
- package/dist/{loader-634Z6H5T.js → loader-XY7DNFSN.js} +4 -4
- package/dist/{lsp-JMLBYE4S.js → lsp-7DTZV6EK.js} +6 -6
- package/dist/{lspAnchor-P2NDRAWX.js → lspAnchor-LJXWVOIG.js} +6 -6
- package/dist/{mcp-6YEWGGPW.js → mcp-CQB4TVPE.js} +7 -7
- package/dist/{mentionProcessor-AI6OPVWJ.js → mentionProcessor-GEP7CFSI.js} +6 -6
- package/dist/{messages-22GI6CKF.js → messages-HMDDIK3H.js} +1 -1
- package/dist/{model-2PA7FU7I.js → model-6I64Q7QN.js} +5 -5
- package/dist/{openai-ZIPNVIW4.js → openai-HZ4RZSZX.js} +5 -5
- package/dist/{outputStyles-VAHHX6FT.js → outputStyles-63K6ZX7X.js} +4 -4
- package/dist/{pluginRuntime-BWIVSSHB.js → pluginRuntime-DPRRSKSU.js} +6 -6
- package/dist/{pluginValidation-RYP223MH.js → pluginValidation-O4QPKUK4.js} +6 -6
- package/dist/prompts-36PXPQGR.js +53 -0
- package/dist/{pybAgentSessionLoad-FQS7F6IV.js → pybAgentSessionLoad-PV7JSSBO.js} +4 -4
- package/dist/{pybAgentSessionResume-UA6AH2NL.js → pybAgentSessionResume-76G3HTLT.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-BGOJGD7K.js → pybAgentStreamJsonSession-5ZC4UL2Y.js} +1 -1
- package/dist/{pybHooks-G76HSRFU.js → pybHooks-T5KRK2GX.js} +4 -4
- package/dist/query-45JI5FFN.js +55 -0
- package/dist/{registry-Z5GTIAFL.js → registry-LUBZHHKT.js} +5 -5
- package/dist/{ripgrep-IP3FA5AC.js → ripgrep-E3EL2SFA.js} +3 -3
- package/dist/{skillMarketplace-X6IPYOGR.js → skillMarketplace-ZRVTRS44.js} +3 -3
- package/dist/{state-WBOCU46K.js → state-TWPEBWE7.js} +2 -2
- package/dist/{theme-OU2JB33D.js → theme-77L4IJF7.js} +5 -5
- package/dist/{toolPermissionSettings-AAQWI466.js → toolPermissionSettings-6IZTGTSN.js} +6 -6
- package/dist/tools-NQ6AIYE7.js +52 -0
- package/dist/{userInput-YDGTG4S4.js → userInput-UO23QLHA.js} +30 -30
- package/package.json +1 -1
- package/dist/REPL-6K5VPOC2.js +0 -47
- package/dist/chunk-HLJUPG7B.js.map +0 -7
- package/dist/cli-5TNOUCJC.js.map +0 -7
- package/dist/commands-DNDA2GAQ.js +0 -51
- package/dist/prompts-5SV5E55O.js +0 -53
- package/dist/query-EDHQCMV3.js +0 -55
- package/dist/tools-MEBWWJWC.js +0 -52
- /package/dist/{REPL-6K5VPOC2.js.map → REPL-VG5CDI4P.js.map} +0 -0
- /package/dist/{acp-QZOLCDA5.js.map → acp-XVNKNV3E.js.map} +0 -0
- /package/dist/{agentsValidate-WTSEY43P.js.map → agentsValidate-KFF3RVPH.js.map} +0 -0
- /package/dist/{ask-5ZZ4OGPD.js.map → ask-LKJXJMR5.js.map} +0 -0
- /package/dist/{autoUpdater-VMUVSMU5.js.map → autoUpdater-CIANZ33Q.js.map} +0 -0
- /package/dist/{chunk-FX27A4PO.js.map → chunk-3H4A5QMO.js.map} +0 -0
- /package/dist/{chunk-4UHECP7Z.js.map → chunk-7VTM6GSK.js.map} +0 -0
- /package/dist/{chunk-C74GKYBJ.js.map → chunk-7Y2H4GS4.js.map} +0 -0
- /package/dist/{chunk-M7NCOW6Z.js.map → chunk-AHPU2PGO.js.map} +0 -0
- /package/dist/{chunk-TI3TEYDV.js.map → chunk-BBYZVCZQ.js.map} +0 -0
- /package/dist/{chunk-RMKU4DVP.js.map → chunk-BYPPCDD2.js.map} +0 -0
- /package/dist/{chunk-QP4OM5KA.js.map → chunk-EGV5AHT6.js.map} +0 -0
- /package/dist/{chunk-CX4ZCXOT.js.map → chunk-EINP2VAK.js.map} +0 -0
- /package/dist/{chunk-WXW6AHFI.js.map → chunk-GDU2HUZH.js.map} +0 -0
- /package/dist/{chunk-3JMLHAXQ.js.map → chunk-GGCKAUKM.js.map} +0 -0
- /package/dist/{chunk-SEEKO5XX.js.map → chunk-GZDDXJ4Q.js.map} +0 -0
- /package/dist/{chunk-OVRZG3WK.js.map → chunk-H3OU5E5S.js.map} +0 -0
- /package/dist/{chunk-O6OVLSDT.js.map → chunk-IP75LG6S.js.map} +0 -0
- /package/dist/{chunk-CMMWSXAT.js.map → chunk-K7IK7ZL2.js.map} +0 -0
- /package/dist/{chunk-CBJ6GW2R.js.map → chunk-KMMPDUGB.js.map} +0 -0
- /package/dist/{chunk-D5B6P6W5.js.map → chunk-M7T5OUGS.js.map} +0 -0
- /package/dist/{chunk-5H4FGNYX.js.map → chunk-MPSUVQPO.js.map} +0 -0
- /package/dist/{chunk-YBAS546F.js.map → chunk-RICL7AWV.js.map} +0 -0
- /package/dist/{chunk-UU6CASWY.js.map → chunk-RVEBFG24.js.map} +0 -0
- /package/dist/{chunk-WNIKFDDS.js.map → chunk-SBL55NIX.js.map} +0 -0
- /package/dist/{chunk-ZTZHCMM5.js.map → chunk-SYKTE7AC.js.map} +0 -0
- /package/dist/{chunk-YMEQARK4.js.map → chunk-URU2VODZ.js.map} +0 -0
- /package/dist/{chunk-QC2QS3JL.js.map → chunk-V7X642BK.js.map} +0 -0
- /package/dist/{chunk-MSHWIJYD.js.map → chunk-X6S5OK26.js.map} +0 -0
- /package/dist/{chunk-SV2NALVC.js.map → chunk-Y4AVABF3.js.map} +0 -0
- /package/dist/{chunk-SVVHXVZ7.js.map → chunk-YSULMEY6.js.map} +0 -0
- /package/dist/{chunk-CJWSI4HB.js.map → chunk-YVEC4WWH.js.map} +0 -0
- /package/dist/{chunk-S6VKLRBA.js.map → chunk-Z523XI5F.js.map} +0 -0
- /package/dist/{commands-DNDA2GAQ.js.map → commands-ZAWRCNLL.js.map} +0 -0
- /package/dist/{config-EQVBDMNL.js.map → config-DH3LM7PS.js.map} +0 -0
- /package/dist/{context-XHT72KYH.js.map → context-GKRJFDXC.js.map} +0 -0
- /package/dist/{customCommands-53PEYF2P.js.map → customCommands-C7PLNROC.js.map} +0 -0
- /package/dist/{env-HHTIBIOA.js.map → env-6SXLWYQV.js.map} +0 -0
- /package/dist/{file-2XL7UEI6.js.map → file-SACICH4E.js.map} +0 -0
- /package/dist/{llm-YYDRZV6Q.js.map → llm-NGIIGWRI.js.map} +0 -0
- /package/dist/{llmLazy-PVTHNKPQ.js.map → llmLazy-363ZRV5D.js.map} +0 -0
- /package/dist/{loader-634Z6H5T.js.map → loader-XY7DNFSN.js.map} +0 -0
- /package/dist/{lsp-JMLBYE4S.js.map → lsp-7DTZV6EK.js.map} +0 -0
- /package/dist/{lspAnchor-P2NDRAWX.js.map → lspAnchor-LJXWVOIG.js.map} +0 -0
- /package/dist/{mcp-6YEWGGPW.js.map → mcp-CQB4TVPE.js.map} +0 -0
- /package/dist/{mentionProcessor-AI6OPVWJ.js.map → mentionProcessor-GEP7CFSI.js.map} +0 -0
- /package/dist/{messages-22GI6CKF.js.map → messages-HMDDIK3H.js.map} +0 -0
- /package/dist/{model-2PA7FU7I.js.map → model-6I64Q7QN.js.map} +0 -0
- /package/dist/{openai-ZIPNVIW4.js.map → openai-HZ4RZSZX.js.map} +0 -0
- /package/dist/{outputStyles-VAHHX6FT.js.map → outputStyles-63K6ZX7X.js.map} +0 -0
- /package/dist/{pluginRuntime-BWIVSSHB.js.map → pluginRuntime-DPRRSKSU.js.map} +0 -0
- /package/dist/{pluginValidation-RYP223MH.js.map → pluginValidation-O4QPKUK4.js.map} +0 -0
- /package/dist/{prompts-5SV5E55O.js.map → prompts-36PXPQGR.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-FQS7F6IV.js.map → pybAgentSessionLoad-PV7JSSBO.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-UA6AH2NL.js.map → pybAgentSessionResume-76G3HTLT.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-BGOJGD7K.js.map → pybAgentStreamJsonSession-5ZC4UL2Y.js.map} +0 -0
- /package/dist/{pybHooks-G76HSRFU.js.map → pybHooks-T5KRK2GX.js.map} +0 -0
- /package/dist/{query-EDHQCMV3.js.map → query-45JI5FFN.js.map} +0 -0
- /package/dist/{registry-Z5GTIAFL.js.map → registry-LUBZHHKT.js.map} +0 -0
- /package/dist/{ripgrep-IP3FA5AC.js.map → ripgrep-E3EL2SFA.js.map} +0 -0
- /package/dist/{skillMarketplace-X6IPYOGR.js.map → skillMarketplace-ZRVTRS44.js.map} +0 -0
- /package/dist/{state-WBOCU46K.js.map → state-TWPEBWE7.js.map} +0 -0
- /package/dist/{theme-OU2JB33D.js.map → theme-77L4IJF7.js.map} +0 -0
- /package/dist/{toolPermissionSettings-AAQWI466.js.map → toolPermissionSettings-6IZTGTSN.js.map} +0 -0
- /package/dist/{tools-MEBWWJWC.js.map → tools-NQ6AIYE7.js.map} +0 -0
- /package/dist/{userInput-YDGTG4S4.js.map → userInput-UO23QLHA.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-BYPPCDD2.js";
|
|
6
|
+
import "./chunk-V7X642BK.js";
|
|
7
|
+
import "./chunk-EGV5AHT6.js";
|
|
8
|
+
import "./chunk-Z523XI5F.js";
|
|
9
|
+
import "./chunk-EINP2VAK.js";
|
|
10
|
+
import "./chunk-5P7HBXTD.js";
|
|
11
|
+
import "./chunk-SBL55NIX.js";
|
|
12
|
+
import "./chunk-7VTM6GSK.js";
|
|
13
|
+
import "./chunk-H3OU5E5S.js";
|
|
14
|
+
import "./chunk-GGCKAUKM.js";
|
|
15
|
+
import "./chunk-X6S5OK26.js";
|
|
16
|
+
import "./chunk-GZDDXJ4Q.js";
|
|
17
|
+
import "./chunk-YVEC4WWH.js";
|
|
18
|
+
import "./chunk-UNNVICVU.js";
|
|
19
|
+
import "./chunk-AP4VEEZP.js";
|
|
20
|
+
import "./chunk-ERMQRV55.js";
|
|
21
|
+
import "./chunk-IP75LG6S.js";
|
|
22
|
+
import "./chunk-A3BVXXA3.js";
|
|
23
|
+
import "./chunk-URU2VODZ.js";
|
|
24
|
+
import "./chunk-3DFBSQIT.js";
|
|
25
|
+
import "./chunk-B6IMQJZM.js";
|
|
26
|
+
import "./chunk-OUXHGDLH.js";
|
|
27
|
+
import "./chunk-RICL7AWV.js";
|
|
28
|
+
import "./chunk-QWIBSCDN.js";
|
|
29
|
+
import "./chunk-Y4AVABF3.js";
|
|
30
|
+
import "./chunk-AHPU2PGO.js";
|
|
31
|
+
import "./chunk-BBYZVCZQ.js";
|
|
32
|
+
import "./chunk-UZ34JEUK.js";
|
|
33
|
+
import "./chunk-MPSUVQPO.js";
|
|
34
|
+
import "./chunk-BJSWTHRM.js";
|
|
35
|
+
import "./chunk-SYKTE7AC.js";
|
|
36
|
+
import "./chunk-M7T5OUGS.js";
|
|
37
|
+
import "./chunk-RVEBFG24.js";
|
|
38
|
+
import "./chunk-7Y2H4GS4.js";
|
|
39
|
+
import "./chunk-K7IK7ZL2.js";
|
|
40
|
+
import "./chunk-RQVLBMP7.js";
|
|
41
|
+
import "./chunk-YSULMEY6.js";
|
|
42
|
+
import "./chunk-GDU2HUZH.js";
|
|
43
|
+
import "./chunk-57CQ4K7N.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-3H4A5QMO.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-BYPPCDD2.js";
|
|
17
|
+
import "./chunk-V7X642BK.js";
|
|
18
|
+
import "./chunk-EGV5AHT6.js";
|
|
19
|
+
import "./chunk-Z523XI5F.js";
|
|
20
|
+
import "./chunk-EINP2VAK.js";
|
|
21
21
|
import "./chunk-5P7HBXTD.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-SBL55NIX.js";
|
|
23
|
+
import "./chunk-7VTM6GSK.js";
|
|
24
|
+
import "./chunk-H3OU5E5S.js";
|
|
25
|
+
import "./chunk-GGCKAUKM.js";
|
|
26
26
|
import {
|
|
27
27
|
getClients
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-X6S5OK26.js";
|
|
29
|
+
import "./chunk-GZDDXJ4Q.js";
|
|
30
30
|
import {
|
|
31
31
|
loadToolPermissionContextFromDisk,
|
|
32
32
|
persistToolPermissionUpdateToDisk
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-YVEC4WWH.js";
|
|
34
34
|
import {
|
|
35
35
|
applyToolPermissionContextUpdates
|
|
36
36
|
} from "./chunk-UNNVICVU.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-AP4VEEZP.js";
|
|
38
38
|
import "./chunk-ERMQRV55.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-IP75LG6S.js";
|
|
40
40
|
import "./chunk-A3BVXXA3.js";
|
|
41
41
|
import {
|
|
42
42
|
createAssistantMessage,
|
|
43
43
|
createUserMessage
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-URU2VODZ.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-RICL7AWV.js";
|
|
49
49
|
import "./chunk-QWIBSCDN.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-Y4AVABF3.js";
|
|
51
|
+
import "./chunk-AHPU2PGO.js";
|
|
52
|
+
import "./chunk-BBYZVCZQ.js";
|
|
53
53
|
import "./chunk-UZ34JEUK.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-MPSUVQPO.js";
|
|
55
55
|
import "./chunk-BJSWTHRM.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-SYKTE7AC.js";
|
|
57
57
|
import {
|
|
58
58
|
getContext
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
59
|
+
} from "./chunk-M7T5OUGS.js";
|
|
60
|
+
import "./chunk-RVEBFG24.js";
|
|
61
|
+
import "./chunk-7Y2H4GS4.js";
|
|
62
62
|
import {
|
|
63
63
|
enableConfigs
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-K7IK7ZL2.js";
|
|
65
65
|
import "./chunk-RQVLBMP7.js";
|
|
66
66
|
import {
|
|
67
67
|
initDebugLogger
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-YSULMEY6.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-GDU2HUZH.js";
|
|
77
77
|
import {
|
|
78
78
|
MACRO
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-57CQ4K7N.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-SYKTE7AC.js";
|
|
6
|
+
import "./chunk-K7IK7ZL2.js";
|
|
7
7
|
import "./chunk-RQVLBMP7.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-YSULMEY6.js";
|
|
9
9
|
import {
|
|
10
10
|
getXdgConfigDir
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-GDU2HUZH.js";
|
|
12
|
+
import "./chunk-57CQ4K7N.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-NQ6AIYE7.js");
|
|
350
|
+
const { getCurrentProjectConfig } = await import("./config-DH3LM7PS.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-BYPPCDD2.js";
|
|
7
|
+
import "./chunk-V7X642BK.js";
|
|
8
|
+
import "./chunk-EGV5AHT6.js";
|
|
9
|
+
import "./chunk-Z523XI5F.js";
|
|
10
|
+
import "./chunk-EINP2VAK.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-SBL55NIX.js";
|
|
13
|
+
import "./chunk-7VTM6GSK.js";
|
|
14
|
+
import "./chunk-H3OU5E5S.js";
|
|
15
|
+
import "./chunk-GGCKAUKM.js";
|
|
16
|
+
import "./chunk-X6S5OK26.js";
|
|
17
|
+
import "./chunk-GZDDXJ4Q.js";
|
|
18
|
+
import "./chunk-YVEC4WWH.js";
|
|
19
19
|
import "./chunk-UNNVICVU.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-AP4VEEZP.js";
|
|
21
21
|
import "./chunk-ERMQRV55.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-IP75LG6S.js";
|
|
23
23
|
import "./chunk-A3BVXXA3.js";
|
|
24
24
|
import {
|
|
25
25
|
createUserMessage
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-URU2VODZ.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-RICL7AWV.js";
|
|
33
33
|
import "./chunk-QWIBSCDN.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-Y4AVABF3.js";
|
|
35
|
+
import "./chunk-AHPU2PGO.js";
|
|
36
|
+
import "./chunk-BBYZVCZQ.js";
|
|
37
37
|
import "./chunk-UZ34JEUK.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-MPSUVQPO.js";
|
|
39
39
|
import "./chunk-BJSWTHRM.js";
|
|
40
40
|
import {
|
|
41
41
|
getModelManager
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-SYKTE7AC.js";
|
|
43
43
|
import {
|
|
44
44
|
getContext
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
45
|
+
} from "./chunk-M7T5OUGS.js";
|
|
46
|
+
import "./chunk-RVEBFG24.js";
|
|
47
|
+
import "./chunk-7Y2H4GS4.js";
|
|
48
|
+
import "./chunk-K7IK7ZL2.js";
|
|
49
49
|
import "./chunk-RQVLBMP7.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-YSULMEY6.js";
|
|
51
51
|
import {
|
|
52
52
|
getMessagesPath,
|
|
53
53
|
overwriteLog,
|
|
54
54
|
setCwd
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-GDU2HUZH.js";
|
|
56
|
+
import "./chunk-57CQ4K7N.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-KMMPDUGB.js";
|
|
9
|
+
import "./chunk-GDU2HUZH.js";
|
|
10
|
+
import "./chunk-57CQ4K7N.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-BYPPCDD2.js";
|
|
32
32
|
import {
|
|
33
33
|
queryLLM
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GGCKAUKM.js";
|
|
35
35
|
import {
|
|
36
36
|
FallbackToolUseRejectedMessage,
|
|
37
37
|
MCPTool,
|
|
38
38
|
getClients,
|
|
39
39
|
getMCPTools
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-X6S5OK26.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-AP4VEEZP.js";
|
|
51
51
|
import {
|
|
52
52
|
getActiveAgents,
|
|
53
53
|
getAgentByType,
|
|
54
54
|
getAvailableAgentTypes
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-IP75LG6S.js";
|
|
56
56
|
import {
|
|
57
57
|
INTERRUPT_MESSAGE,
|
|
58
58
|
createAssistantMessage,
|
|
59
59
|
createUserMessage,
|
|
60
60
|
getLastAssistantMessageId
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-URU2VODZ.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-RICL7AWV.js";
|
|
69
69
|
import {
|
|
70
70
|
LspFacade,
|
|
71
71
|
formatDiagnosticsPretty
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-Y4AVABF3.js";
|
|
73
73
|
import {
|
|
74
74
|
getModelManager
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-SYKTE7AC.js";
|
|
76
76
|
import {
|
|
77
77
|
getContext
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-M7T5OUGS.js";
|
|
79
79
|
import {
|
|
80
80
|
filesToTree,
|
|
81
81
|
ripGrepWithStatus
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-RVEBFG24.js";
|
|
83
83
|
import {
|
|
84
84
|
getTheme
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-7Y2H4GS4.js";
|
|
86
86
|
import {
|
|
87
87
|
debug
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-YSULMEY6.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-GDU2HUZH.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-TWPEBWE7.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-7DTZV6EK.js");
|
|
1152
1152
|
const referenceDetail = await LspFacade2.checkFileReferences(fullPath);
|
|
1153
1153
|
if (referenceDetail) {
|
|
1154
1154
|
failedItems.push(
|
|
@@ -3788,6 +3788,8 @@ var getReadOnlyTools = memoize2(async () => {
|
|
|
3788
3788
|
});
|
|
3789
3789
|
|
|
3790
3790
|
export {
|
|
3791
|
+
toTaskListItem,
|
|
3792
|
+
toTaskDetail,
|
|
3791
3793
|
getAllTools,
|
|
3792
3794
|
getTools,
|
|
3793
3795
|
getReadOnlyTools
|
|
@@ -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.42\",\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 \"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 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 \"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 }\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": ";;;;AAAA;AAAA,EACE,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,KAAO;AAAA,IACL,KAAO;AAAA,IACP,WAAW;AAAA,EACb;AAAA,EACA,SAAW;AAAA,IACT,MAAQ;AAAA,EACV;AAAA,EACA,MAAQ;AAAA,EACR,QAAU;AAAA,EACV,SAAW;AAAA,EACX,aAAe;AAAA,EACf,UAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,UAAY;AAAA,EACZ,YAAc;AAAA,IACZ,MAAQ;AAAA,IACR,KAAO;AAAA,EACT;AAAA,EACA,MAAQ;AAAA,IACN,KAAO;AAAA,EACT;AAAA,EACA,OAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,SAAW;AAAA,IACT,KAAO;AAAA,IACP,aAAa;AAAA,IACb,OAAS;AAAA,IACT,gBAAgB;AAAA,IAChB,OAAS;AAAA,IACT,gBAAkB;AAAA,IAClB,aAAe;AAAA,IACf,QAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,MAAQ;AAAA,IACR,YAAY;AAAA,IACZ,MAAQ;AAAA,IACR,aAAa;AAAA,IACb,oBAAoB;AAAA,IACpB,YAAY;AAAA,IACZ,WAAa;AAAA,IACb,SAAW;AAAA,IACX,eAAe;AAAA,IACf,mBAAmB;AAAA,IACnB,iBAAiB;AAAA,IACjB,oBAAoB;AAAA,EACtB;AAAA,EACA,cAAgB;AAAA,IACd,6BAA6B;AAAA,IAC7B,qBAAqB;AAAA,IACrB,4BAA4B;AAAA,IAC5B,4BAA4B;AAAA,IAC5B,mCAAmC;AAAA,IACnC,+BAA+B;AAAA,IAC/B,aAAa;AAAA,IACb,6BAA6B;AAAA,IAC7B,2BAA2B;AAAA,IAC3B,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,IAChB,mBAAmB;AAAA,IACnB,wBAAwB;AAAA,IACxB,KAAO;AAAA,IACP,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,IACxB,OAAS;AAAA,IACT,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,WAAa;AAAA,IACb,OAAS;AAAA,IACT,MAAQ;AAAA,IACR,qCAAqC;AAAA,IACrC,QAAU;AAAA,IACV,aAAa;AAAA,IACb,QAAU;AAAA,IACV,SAAW;AAAA,IACX,MAAQ;AAAA,IACR,gCAAgC;AAAA,IAChC,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAU;AAAA,IACV,KAAO;AAAA,IACP,YAAY;AAAA,IACZ,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,IAClB,cAAgB;AAAA,IAChB,WAAW;AAAA,IACX,aAAa;AAAA,IACb,aAAa;AAAA,IACb,QAAU;AAAA,IACV,WAAa;AAAA,IACb,QAAU;AAAA,IACV,oBAAoB;AAAA,IACpB,QAAU;AAAA,IACV,SAAW;AAAA,IACX,OAAS;AAAA,IACT,QAAU;AAAA,IACV,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,0BAA0B;AAAA,IAC1B,KAAO;AAAA,IACP,8BAA8B;AAAA,IAC9B,QAAU;AAAA,IACV,kBAAkB;AAAA,IAClB,gCAAgC;AAAA,IAChC,mBAAmB;AAAA,IACnB,OAAS;AAAA,IACT,aAAa;AAAA,IACb,wBAAwB;AAAA,IACxB,KAAO;AAAA,IACP,sBAAsB;AAAA,EACxB;AAAA,EACA,iBAAmB;AAAA,IACjB,cAAc;AAAA,IACd,eAAe;AAAA,IACf,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,oCAAoC;AAAA,IACpC,6BAA6B;AAAA,IAC7B,oBAAoB;AAAA,IACpB,aAAa;AAAA,IACb,SAAW;AAAA,IACX,SAAW;AAAA,IACX,QAAU;AAAA,IACV,6BAA6B;AAAA,IAC7B,uBAAuB;AAAA,IACvB,cAAc;AAAA,IACd,UAAY;AAAA,IACZ,uBAAuB;AAAA,IACvB,oBAAoB;AAAA,IACpB,uBAAuB;AAAA,IACvB,uBAAuB;AAAA,IACvB,mBAAmB;AAAA,IACnB,kBAAkB;AAAA,IAClB,uBAAuB;AAAA,IACvB,oBAAoB;AAAA,IACpB,qBAAqB;AAAA,IACrB,mBAAmB;AAAA,IACnB,qBAAqB;AAAA,IACrB,sBAAsB;AAAA,IACtB,oBAAoB;AAAA,IACpB,qBAAqB;AAAA,IACrB,qBAAqB;AAAA,IACrB,0BAA0B;AAAA,IAC1B,UAAY;AAAA,IACZ,YAAc;AAAA,EAChB;AAAA,EACA,WAAa;AAAA,IACX,mCAAmC;AAAA,IACnC,yBAAyB;AAAA,EAC3B;AACF;;;ACtKO,IAAM,QAAQ;AAAA,EACnB,SAAS,gBAAI;AAAA,EACb,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,kBACE;AACJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
getSettingsFileCandidates,
|
|
8
8
|
loadSettingsWithLegacyFallback,
|
|
9
9
|
saveSettingsToPrimaryAndSyncLegacy
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BBYZVCZQ.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-GDU2HUZH.js";
|
|
18
18
|
|
|
19
19
|
// src/services/ui/outputStyles.ts
|
|
20
20
|
import figures from "figures";
|
|
@@ -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-BBYZVCZQ.js";
|
|
6
6
|
import {
|
|
7
7
|
debug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YSULMEY6.js";
|
|
9
9
|
import {
|
|
10
10
|
env,
|
|
11
11
|
getSessionRoot,
|
|
12
12
|
resolveXdgDataPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GDU2HUZH.js";
|
|
14
14
|
import {
|
|
15
15
|
__require
|
|
16
16
|
} from "./chunk-I3J4JYES.js";
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
getCurrentProjectConfig,
|
|
9
9
|
getGlobalConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-K7IK7ZL2.js";
|
|
11
11
|
import {
|
|
12
12
|
debug
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YSULMEY6.js";
|
|
14
14
|
import {
|
|
15
15
|
getCwd,
|
|
16
16
|
logError,
|
|
17
17
|
resolveXdgDataPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GDU2HUZH.js";
|
|
19
19
|
|
|
20
20
|
// src/utils/agent/storage.ts
|
|
21
21
|
import { existsSync, readFileSync, writeFileSync, mkdirSync } from "fs";
|
|
@@ -334,13 +334,48 @@ function deriveBlocks(tasks) {
|
|
|
334
334
|
}
|
|
335
335
|
return map;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
const
|
|
337
|
+
function areBlocksEqual(a, b) {
|
|
338
|
+
const left = a ?? [];
|
|
339
|
+
const right = b ?? [];
|
|
340
|
+
if (left.length !== right.length) return false;
|
|
341
|
+
for (let i = 0; i < left.length; i += 1) {
|
|
342
|
+
if (left[i] !== right[i]) return false;
|
|
343
|
+
}
|
|
344
|
+
return true;
|
|
345
|
+
}
|
|
346
|
+
function readTasksFromDisk(paths) {
|
|
347
|
+
const files = readdirSync(paths.tasksDir).filter((file) => file.endsWith(".json"));
|
|
348
|
+
return files.map((file) => readTaskFile(join2(paths.tasksDir, file))).filter(Boolean);
|
|
349
|
+
}
|
|
350
|
+
function applyBlocksMap(tasks, map) {
|
|
339
351
|
return tasks.map((task) => ({
|
|
340
352
|
...task,
|
|
341
353
|
blocks: map.get(task.id) ?? []
|
|
342
354
|
}));
|
|
343
355
|
}
|
|
356
|
+
function persistBlocksMap(paths, map) {
|
|
357
|
+
ensureTaskListDirs(paths);
|
|
358
|
+
const files = readdirSync(paths.tasksDir).filter((file) => file.endsWith(".json"));
|
|
359
|
+
let updated = 0;
|
|
360
|
+
for (const file of files) {
|
|
361
|
+
const path = join2(paths.tasksDir, file);
|
|
362
|
+
const raw = readJson(path);
|
|
363
|
+
if (!raw || !raw.id) continue;
|
|
364
|
+
const nextBlocks = map.get(raw.id) ?? [];
|
|
365
|
+
const currentBlocks = Array.isArray(raw.blocks) ? raw.blocks : [];
|
|
366
|
+
if (areBlocksEqual(currentBlocks, nextBlocks)) continue;
|
|
367
|
+
raw.blocks = nextBlocks;
|
|
368
|
+
writeJson(path, raw);
|
|
369
|
+
updated += 1;
|
|
370
|
+
}
|
|
371
|
+
return updated;
|
|
372
|
+
}
|
|
373
|
+
function rebuildBlocksForPaths(paths) {
|
|
374
|
+
const tasks = readTasksFromDisk(paths);
|
|
375
|
+
const map = deriveBlocks(tasks);
|
|
376
|
+
const updated = persistBlocksMap(paths, map);
|
|
377
|
+
return { tasks: applyBlocksMap(tasks, map), updated };
|
|
378
|
+
}
|
|
344
379
|
function recoverIndex(paths) {
|
|
345
380
|
ensureTaskListDirs(paths);
|
|
346
381
|
const files = readdirSync(paths.tasksDir).filter((file) => file.endsWith(".json"));
|
|
@@ -487,9 +522,8 @@ function createTask(input, options) {
|
|
|
487
522
|
type: "task.created",
|
|
488
523
|
timestamp: Date.now()
|
|
489
524
|
});
|
|
490
|
-
const
|
|
491
|
-
|
|
492
|
-
);
|
|
525
|
+
const { tasks } = rebuildBlocksForPaths(paths);
|
|
526
|
+
const refreshed = tasks.find((task) => task.id === record.id);
|
|
493
527
|
return refreshed ?? record;
|
|
494
528
|
});
|
|
495
529
|
}
|
|
@@ -501,10 +535,15 @@ function listTasks(options) {
|
|
|
501
535
|
const paths = getTaskListPaths(options?.listId);
|
|
502
536
|
readIndex(paths);
|
|
503
537
|
ensureTaskListDirs(paths);
|
|
504
|
-
const
|
|
505
|
-
const
|
|
506
|
-
const derived =
|
|
507
|
-
|
|
538
|
+
const tasks = readTasksFromDisk(paths);
|
|
539
|
+
const map = deriveBlocks(tasks);
|
|
540
|
+
const derived = applyBlocksMap(tasks, map);
|
|
541
|
+
const needsPersist = tasks.some((task) => {
|
|
542
|
+
const nextBlocks = map.get(task.id) ?? [];
|
|
543
|
+
return !areBlocksEqual(task.blocks, nextBlocks);
|
|
544
|
+
});
|
|
545
|
+
const ready = needsPersist ? withTaskListLock(paths, () => rebuildBlocksForPaths(paths).tasks) : derived;
|
|
546
|
+
return ready.sort((a, b) => Number(a.id) - Number(b.id));
|
|
508
547
|
}
|
|
509
548
|
function updateTask(id, updates, options) {
|
|
510
549
|
const paths = getTaskListPaths(options?.listId);
|
|
@@ -550,12 +589,20 @@ function updateTask(id, updates, options) {
|
|
|
550
589
|
type: "task.updated",
|
|
551
590
|
timestamp: Date.now()
|
|
552
591
|
});
|
|
553
|
-
const
|
|
554
|
-
|
|
555
|
-
);
|
|
592
|
+
const { tasks } = rebuildBlocksForPaths(paths);
|
|
593
|
+
const refreshed = tasks.find((task) => task.id === updated.id);
|
|
556
594
|
return { task: refreshed ?? updated, conflict: hasConflict };
|
|
557
595
|
});
|
|
558
596
|
}
|
|
597
|
+
function rebuildTaskBlocks(options) {
|
|
598
|
+
const paths = getTaskListPaths(options?.listId);
|
|
599
|
+
return withTaskListLock(paths, () => {
|
|
600
|
+
readIndex(paths);
|
|
601
|
+
ensureTaskListDirs(paths);
|
|
602
|
+
const { tasks, updated } = rebuildBlocksForPaths(paths);
|
|
603
|
+
return { updated, total: tasks.length };
|
|
604
|
+
});
|
|
605
|
+
}
|
|
559
606
|
function getTaskListMeta(options) {
|
|
560
607
|
const paths = getTaskListPaths(options?.listId);
|
|
561
608
|
return readMeta(paths);
|
|
@@ -1288,6 +1335,7 @@ export {
|
|
|
1288
1335
|
getTask,
|
|
1289
1336
|
listTasks,
|
|
1290
1337
|
updateTask,
|
|
1338
|
+
rebuildTaskBlocks,
|
|
1291
1339
|
isTodoCompatEnabled,
|
|
1292
1340
|
syncTodosToTasks,
|
|
1293
1341
|
migrateTodosToTasks,
|