pybao-cli 1.5.11 → 1.5.12
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-GBEPTREF.js +50 -0
- package/dist/{acp-NSVRKFDR.js → acp-Y5IIA2WP.js} +31 -31
- package/dist/{agentsValidate-J4WH47PD.js → agentsValidate-DY2NM3DJ.js} +7 -7
- package/dist/{ask-TIOWV5TX.js → ask-GPGFZXW5.js} +30 -30
- package/dist/{autoUpdater-35O63ORK.js → autoUpdater-M2OUQGQB.js} +3 -3
- package/dist/{chunk-YKCKLLMA.js → chunk-227OYWVC.js} +2 -2
- package/dist/{chunk-WDCDJPYN.js → chunk-2ITFLNCF.js} +1 -1
- package/dist/{chunk-7BZ3TT3E.js → chunk-2OOXJ4JL.js} +15 -9
- package/dist/chunk-2OOXJ4JL.js.map +7 -0
- package/dist/{chunk-YV7Q3VHM.js → chunk-3BURXBWN.js} +1 -1
- package/dist/{chunk-IYPL6KOG.js → chunk-4PFJOP5W.js} +1 -1
- package/dist/{chunk-EV3W3WLB.js → chunk-4RFXDDFR.js} +3 -3
- package/dist/{chunk-I7FH3MBS.js → chunk-4SRPMRVV.js} +3 -3
- package/dist/{chunk-4SQ6LXYG.js → chunk-55ZZ26MV.js} +3 -3
- package/dist/{chunk-MQONPL2D.js → chunk-5OQ3NGHH.js} +1 -1
- package/dist/{chunk-5P4P5CFA.js → chunk-5VJYKH3Y.js} +2 -2
- package/dist/chunk-5ZAXW6YC.js.map +7 -0
- package/dist/{chunk-E4QA2SMS.js → chunk-6BD6I6S2.js} +20 -6
- package/dist/{chunk-E4QA2SMS.js.map → chunk-6BD6I6S2.js.map} +2 -2
- package/dist/{chunk-U6JIGJB4.js → chunk-6MWZ7CQZ.js} +1680 -945
- package/dist/chunk-6MWZ7CQZ.js.map +7 -0
- package/dist/{chunk-BQWG5WFV.js → chunk-7TQBXHKB.js} +1 -1
- package/dist/{chunk-YJ3HLVKX.js → chunk-7TYWNOBA.js} +2 -2
- package/dist/{chunk-M3EVWIF3.js → chunk-A5VNXFCK.js} +3 -3
- package/dist/{chunk-S7PU3TNH.js → chunk-EYP4MYSC.js} +4 -4
- package/dist/{chunk-L5RH454O.js → chunk-GAQ4MRQE.js} +2 -2
- package/dist/{chunk-HOGROHYP.js → chunk-H36NFG5R.js} +4 -4
- package/dist/{chunk-IC6XUDKC.js → chunk-IPK7SMWY.js} +3 -3
- package/dist/{chunk-NXGI34H4.js → chunk-J4QOIMCY.js} +35 -15
- package/dist/chunk-J4QOIMCY.js.map +7 -0
- package/dist/{chunk-Q3DXXYPX.js → chunk-J5TXPVLF.js} +3 -3
- package/dist/{chunk-VH3IQXUR.js → chunk-M2UVICYL.js} +1 -1
- package/dist/{chunk-TEGHHNGC.js → chunk-NGJAMMVA.js} +4 -4
- package/dist/{chunk-6N43IM3F.js → chunk-NKKES2C5.js} +1 -1
- package/dist/{chunk-2TZLPLK6.js → chunk-PAF6R5NZ.js} +1 -1
- package/dist/{chunk-PFYRLJXN.js → chunk-PFX6IKOO.js} +2 -2
- package/dist/{chunk-EZ5IMWVJ.js → chunk-QCT45V24.js} +1 -1
- package/dist/{chunk-5MFIJREB.js → chunk-RLHWOGYA.js} +6 -1
- package/dist/chunk-RLHWOGYA.js.map +7 -0
- package/dist/{chunk-33QWSQC4.js → chunk-TYOFB7OQ.js} +2 -2
- package/dist/{chunk-QMMOGZ7N.js → chunk-VP6FXGFA.js} +4 -4
- package/dist/{chunk-KUQZLTIW.js → chunk-WNSD3D42.js} +4 -1
- package/dist/{chunk-KUQZLTIW.js.map → chunk-WNSD3D42.js.map} +2 -2
- package/dist/{chunk-LTHUAMIE.js → chunk-XBS7CGQI.js} +1 -1
- package/dist/{cli-TIOLFD3Q.js → cli-XKJKAXHT.js} +92 -92
- package/dist/commands-TUBV2Y5X.js +54 -0
- package/dist/{config-BPAZ2QW2.js → config-GVJLYS6J.js} +4 -4
- package/dist/{context-UXBFAE6U.js → context-4CGVBFDS.js} +6 -6
- package/dist/{conversationPersistence-S5Y54OEJ.js → conversationPersistence-G424Q2MK.js} +3 -3
- package/dist/{conversationTracker-EPTEVBKG.js → conversationTracker-Q26GHUUC.js} +4 -4
- package/dist/{customCommands-LJEKRKH7.js → customCommands-LM4FM5U3.js} +4 -4
- package/dist/{env-ZKDJ63EH.js → env-L3OOLUJ2.js} +2 -2
- package/dist/{file-62N53R4I.js → file-WDYIWIDQ.js} +4 -4
- package/dist/index.js +3 -3
- package/dist/{llm-257Z7WOJ.js → llm-D52SN2GV.js} +32 -32
- package/dist/{llmLazy-766Y5JWG.js → llmLazy-3NN2ZUR4.js} +1 -1
- package/dist/{loader-IC2B4I4J.js → loader-D2S3WQNM.js} +4 -4
- package/dist/{lsp-ARSWURXF.js → lsp-HEXOWAPA.js} +6 -6
- package/dist/{lspAnchor-5N3KECK7.js → lspAnchor-L56WS5TF.js} +6 -6
- package/dist/{mcp-6LNALW65.js → mcp-6QYH5WSD.js} +7 -7
- package/dist/{mentionProcessor-LQ6WNIKV.js → mentionProcessor-HSJQXOES.js} +5 -5
- package/dist/{messages-GNEQQA27.js → messages-M7O4ITWW.js} +1 -1
- package/dist/{model-F7IYXNO5.js → model-OBGYKN2R.js} +5 -5
- package/dist/{openai-HTXVPLAS.js → openai-WSL6ONMZ.js} +5 -5
- package/dist/{outputStyles-IEUFSMMK.js → outputStyles-PEKSPFFT.js} +4 -4
- package/dist/{pluginRuntime-4AI2VGR6.js → pluginRuntime-HXPNSVLK.js} +6 -6
- package/dist/{pluginValidation-VM4W42FR.js → pluginValidation-LUNRNYN5.js} +6 -6
- package/dist/prompts-DUBZMFLB.js +56 -0
- package/dist/{pybAgentSessionLoad-A3OZD3FR.js → pybAgentSessionLoad-2HQF3WDO.js} +4 -4
- package/dist/{pybAgentSessionResume-T6XFQUGW.js → pybAgentSessionResume-DHJIRJQX.js} +4 -4
- package/dist/{pybAgentStreamJsonSession-J6TKWFS5.js → pybAgentStreamJsonSession-BPIP4CM4.js} +1 -1
- package/dist/{pybHooks-QXTF2XWB.js → pybHooks-YGTJ3V7F.js} +4 -4
- package/dist/query-QQZDEGH6.js +56 -0
- package/dist/{registry-N7W2DT2O.js → registry-V4XSGNR3.js} +5 -5
- package/dist/{ripgrep-4YX3ALXH.js → ripgrep-2NKICK37.js} +3 -3
- package/dist/{skillMarketplace-BHPBAIS5.js → skillMarketplace-BHCLGUQJ.js} +3 -3
- package/dist/{state-BAYDHBR6.js → state-QXUVP75D.js} +2 -2
- package/dist/{theme-5WK7OBSE.js → theme-2TTCOHK4.js} +5 -5
- package/dist/{toolPermissionSettings-KHCHXARB.js → toolPermissionSettings-XE4MDEZ2.js} +6 -6
- package/dist/tools-SD5RYBF4.js +55 -0
- package/dist/{userInput-I5VZDN77.js → userInput-AUO3ADIL.js} +32 -32
- package/package.json +6 -1
- package/scripts/session-behavior-invariant-gate.mjs +78 -0
- package/scripts/session-contract-gate.mjs +107 -0
- package/dist/REPL-TGEVVUGU.js +0 -50
- package/dist/chunk-5MFIJREB.js.map +0 -7
- package/dist/chunk-7BZ3TT3E.js.map +0 -7
- package/dist/chunk-NXGI34H4.js.map +0 -7
- package/dist/chunk-OC5CZWBQ.js.map +0 -7
- package/dist/chunk-U6JIGJB4.js.map +0 -7
- package/dist/commands-T7TKHXOU.js +0 -54
- package/dist/prompts-EJTGSKLG.js +0 -56
- package/dist/query-ONI2G7VA.js +0 -58
- package/dist/tools-LTGCAA7X.js +0 -55
- /package/dist/{REPL-TGEVVUGU.js.map → REPL-GBEPTREF.js.map} +0 -0
- /package/dist/{acp-NSVRKFDR.js.map → acp-Y5IIA2WP.js.map} +0 -0
- /package/dist/{agentsValidate-J4WH47PD.js.map → agentsValidate-DY2NM3DJ.js.map} +0 -0
- /package/dist/{ask-TIOWV5TX.js.map → ask-GPGFZXW5.js.map} +0 -0
- /package/dist/{autoUpdater-35O63ORK.js.map → autoUpdater-M2OUQGQB.js.map} +0 -0
- /package/dist/{chunk-YKCKLLMA.js.map → chunk-227OYWVC.js.map} +0 -0
- /package/dist/{chunk-WDCDJPYN.js.map → chunk-2ITFLNCF.js.map} +0 -0
- /package/dist/{chunk-YV7Q3VHM.js.map → chunk-3BURXBWN.js.map} +0 -0
- /package/dist/{chunk-IYPL6KOG.js.map → chunk-4PFJOP5W.js.map} +0 -0
- /package/dist/{chunk-EV3W3WLB.js.map → chunk-4RFXDDFR.js.map} +0 -0
- /package/dist/{chunk-I7FH3MBS.js.map → chunk-4SRPMRVV.js.map} +0 -0
- /package/dist/{chunk-4SQ6LXYG.js.map → chunk-55ZZ26MV.js.map} +0 -0
- /package/dist/{chunk-MQONPL2D.js.map → chunk-5OQ3NGHH.js.map} +0 -0
- /package/dist/{chunk-5P4P5CFA.js.map → chunk-5VJYKH3Y.js.map} +0 -0
- /package/dist/{chunk-OC5CZWBQ.js → chunk-5ZAXW6YC.js} +0 -0
- /package/dist/{chunk-BQWG5WFV.js.map → chunk-7TQBXHKB.js.map} +0 -0
- /package/dist/{chunk-YJ3HLVKX.js.map → chunk-7TYWNOBA.js.map} +0 -0
- /package/dist/{chunk-M3EVWIF3.js.map → chunk-A5VNXFCK.js.map} +0 -0
- /package/dist/{chunk-S7PU3TNH.js.map → chunk-EYP4MYSC.js.map} +0 -0
- /package/dist/{chunk-L5RH454O.js.map → chunk-GAQ4MRQE.js.map} +0 -0
- /package/dist/{chunk-HOGROHYP.js.map → chunk-H36NFG5R.js.map} +0 -0
- /package/dist/{chunk-IC6XUDKC.js.map → chunk-IPK7SMWY.js.map} +0 -0
- /package/dist/{chunk-Q3DXXYPX.js.map → chunk-J5TXPVLF.js.map} +0 -0
- /package/dist/{chunk-VH3IQXUR.js.map → chunk-M2UVICYL.js.map} +0 -0
- /package/dist/{chunk-TEGHHNGC.js.map → chunk-NGJAMMVA.js.map} +0 -0
- /package/dist/{chunk-6N43IM3F.js.map → chunk-NKKES2C5.js.map} +0 -0
- /package/dist/{chunk-2TZLPLK6.js.map → chunk-PAF6R5NZ.js.map} +0 -0
- /package/dist/{chunk-PFYRLJXN.js.map → chunk-PFX6IKOO.js.map} +0 -0
- /package/dist/{chunk-EZ5IMWVJ.js.map → chunk-QCT45V24.js.map} +0 -0
- /package/dist/{chunk-33QWSQC4.js.map → chunk-TYOFB7OQ.js.map} +0 -0
- /package/dist/{chunk-QMMOGZ7N.js.map → chunk-VP6FXGFA.js.map} +0 -0
- /package/dist/{chunk-LTHUAMIE.js.map → chunk-XBS7CGQI.js.map} +0 -0
- /package/dist/{cli-TIOLFD3Q.js.map → cli-XKJKAXHT.js.map} +0 -0
- /package/dist/{commands-T7TKHXOU.js.map → commands-TUBV2Y5X.js.map} +0 -0
- /package/dist/{config-BPAZ2QW2.js.map → config-GVJLYS6J.js.map} +0 -0
- /package/dist/{context-UXBFAE6U.js.map → context-4CGVBFDS.js.map} +0 -0
- /package/dist/{conversationPersistence-S5Y54OEJ.js.map → conversationPersistence-G424Q2MK.js.map} +0 -0
- /package/dist/{conversationTracker-EPTEVBKG.js.map → conversationTracker-Q26GHUUC.js.map} +0 -0
- /package/dist/{customCommands-LJEKRKH7.js.map → customCommands-LM4FM5U3.js.map} +0 -0
- /package/dist/{env-ZKDJ63EH.js.map → env-L3OOLUJ2.js.map} +0 -0
- /package/dist/{file-62N53R4I.js.map → file-WDYIWIDQ.js.map} +0 -0
- /package/dist/{llm-257Z7WOJ.js.map → llm-D52SN2GV.js.map} +0 -0
- /package/dist/{llmLazy-766Y5JWG.js.map → llmLazy-3NN2ZUR4.js.map} +0 -0
- /package/dist/{loader-IC2B4I4J.js.map → loader-D2S3WQNM.js.map} +0 -0
- /package/dist/{lsp-ARSWURXF.js.map → lsp-HEXOWAPA.js.map} +0 -0
- /package/dist/{lspAnchor-5N3KECK7.js.map → lspAnchor-L56WS5TF.js.map} +0 -0
- /package/dist/{mcp-6LNALW65.js.map → mcp-6QYH5WSD.js.map} +0 -0
- /package/dist/{mentionProcessor-LQ6WNIKV.js.map → mentionProcessor-HSJQXOES.js.map} +0 -0
- /package/dist/{messages-GNEQQA27.js.map → messages-M7O4ITWW.js.map} +0 -0
- /package/dist/{model-F7IYXNO5.js.map → model-OBGYKN2R.js.map} +0 -0
- /package/dist/{openai-HTXVPLAS.js.map → openai-WSL6ONMZ.js.map} +0 -0
- /package/dist/{outputStyles-IEUFSMMK.js.map → outputStyles-PEKSPFFT.js.map} +0 -0
- /package/dist/{pluginRuntime-4AI2VGR6.js.map → pluginRuntime-HXPNSVLK.js.map} +0 -0
- /package/dist/{pluginValidation-VM4W42FR.js.map → pluginValidation-LUNRNYN5.js.map} +0 -0
- /package/dist/{prompts-EJTGSKLG.js.map → prompts-DUBZMFLB.js.map} +0 -0
- /package/dist/{pybAgentSessionLoad-A3OZD3FR.js.map → pybAgentSessionLoad-2HQF3WDO.js.map} +0 -0
- /package/dist/{pybAgentSessionResume-T6XFQUGW.js.map → pybAgentSessionResume-DHJIRJQX.js.map} +0 -0
- /package/dist/{pybAgentStreamJsonSession-J6TKWFS5.js.map → pybAgentStreamJsonSession-BPIP4CM4.js.map} +0 -0
- /package/dist/{pybHooks-QXTF2XWB.js.map → pybHooks-YGTJ3V7F.js.map} +0 -0
- /package/dist/{query-ONI2G7VA.js.map → query-QQZDEGH6.js.map} +0 -0
- /package/dist/{registry-N7W2DT2O.js.map → registry-V4XSGNR3.js.map} +0 -0
- /package/dist/{ripgrep-4YX3ALXH.js.map → ripgrep-2NKICK37.js.map} +0 -0
- /package/dist/{skillMarketplace-BHPBAIS5.js.map → skillMarketplace-BHCLGUQJ.js.map} +0 -0
- /package/dist/{state-BAYDHBR6.js.map → state-QXUVP75D.js.map} +0 -0
- /package/dist/{theme-5WK7OBSE.js.map → theme-2TTCOHK4.js.map} +0 -0
- /package/dist/{toolPermissionSettings-KHCHXARB.js.map → toolPermissionSettings-XE4MDEZ2.js.map} +0 -0
- /package/dist/{tools-LTGCAA7X.js.map → tools-SD5RYBF4.js.map} +0 -0
- /package/dist/{userInput-I5VZDN77.js.map → userInput-AUO3ADIL.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
|
PERSISTENCE_VERSION
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NKKES2C5.js";
|
|
6
6
|
|
|
7
7
|
// src/utils/session/conversationMessageState.ts
|
|
8
8
|
function mapFinishReason(rawReason) {
|
|
@@ -2,10 +2,10 @@ import { createRequire as __pybCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __pybCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
debug
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2ITFLNCF.js";
|
|
6
6
|
import {
|
|
7
7
|
logError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2OOXJ4JL.js";
|
|
9
9
|
|
|
10
10
|
// src/services/system/systemReminder.ts
|
|
11
11
|
var SystemReminderService = class {
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
getSettingsFileCandidates,
|
|
9
9
|
loadSettingsWithLegacyFallback,
|
|
10
10
|
saveSettingsToPrimaryAndSyncLegacy
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4PFJOP5W.js";
|
|
12
12
|
import {
|
|
13
13
|
getCurrentProjectConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-55ZZ26MV.js";
|
|
15
15
|
import {
|
|
16
16
|
getCwd,
|
|
17
17
|
logError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2OOXJ4JL.js";
|
|
19
19
|
|
|
20
20
|
// src/utils/permissions/toolPermissionSettings.ts
|
|
21
21
|
function uniqueStrings(value) {
|
|
@@ -3,13 +3,13 @@ const require = __pybCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getSettingsFileCandidates,
|
|
5
5
|
loadSettingsWithLegacyFallback
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4PFJOP5W.js";
|
|
7
7
|
import {
|
|
8
8
|
getSessionPlugins
|
|
9
9
|
} from "./chunk-BJSWTHRM.js";
|
|
10
10
|
import {
|
|
11
11
|
getTheme
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5OQ3NGHH.js";
|
|
13
13
|
import {
|
|
14
14
|
addMcprcServerForTesting,
|
|
15
15
|
getCurrentProjectConfig,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
safeParseJSON,
|
|
20
20
|
saveCurrentProjectConfig,
|
|
21
21
|
saveGlobalConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-55ZZ26MV.js";
|
|
23
23
|
import {
|
|
24
24
|
PRODUCT_COMMAND,
|
|
25
25
|
PRODUCT_NAME,
|
|
26
26
|
getCwd,
|
|
27
27
|
logMCPError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2OOXJ4JL.js";
|
|
29
29
|
|
|
30
30
|
// src/services/mcp/client.ts
|
|
31
31
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-BJSWTHRM.js";
|
|
6
6
|
import {
|
|
7
7
|
debug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2ITFLNCF.js";
|
|
9
9
|
import {
|
|
10
10
|
getCwd,
|
|
11
11
|
logError,
|
|
12
12
|
resolveXdgDataPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2OOXJ4JL.js";
|
|
14
14
|
|
|
15
15
|
// src/services/plugins/customCommands.ts
|
|
16
16
|
import { existsSync, readFileSync, readdirSync, statSync } from "fs";
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
LspServerRegistry,
|
|
5
5
|
findNearestRoot,
|
|
6
6
|
getInstallNotices
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-J5TXPVLF.js";
|
|
8
8
|
import {
|
|
9
9
|
levenshtein
|
|
10
10
|
} from "./chunk-UZ34JEUK.js";
|
|
11
11
|
import {
|
|
12
12
|
debug
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2ITFLNCF.js";
|
|
14
14
|
import {
|
|
15
15
|
getCwd,
|
|
16
16
|
getSessionRoot
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2OOXJ4JL.js";
|
|
18
18
|
|
|
19
19
|
// src/lsp/index.ts
|
|
20
20
|
import { extname as extname2 } from "path";
|
|
@@ -565,7 +565,7 @@ var LspClientManager = class _LspClientManager {
|
|
|
565
565
|
const safeCwd = /[^\x00-\x7F]/.test(resolvedRoot) ? process.cwd() : resolvedRoot;
|
|
566
566
|
let initOpts = serverInfo.initializationOptions;
|
|
567
567
|
if (serverInfo.id === "pyright" || serverInfo.id === "ty") {
|
|
568
|
-
const { detectPythonVenv } = await import("./registry-
|
|
568
|
+
const { detectPythonVenv } = await import("./registry-V4XSGNR3.js");
|
|
569
569
|
const pythonPath = detectPythonVenv(resolvedRoot);
|
|
570
570
|
if (pythonPath) {
|
|
571
571
|
initOpts = { ...initOpts ?? {}, pythonPath };
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
PRODUCT_NAME,
|
|
5
5
|
execFileNoThrow,
|
|
6
6
|
logError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2OOXJ4JL.js";
|
|
8
8
|
import {
|
|
9
9
|
MACRO
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RLHWOGYA.js";
|
|
11
11
|
|
|
12
12
|
// src/utils/session/autoUpdater.ts
|
|
13
13
|
async function getSemver() {
|
|
@@ -82,7 +82,7 @@ async function checkAndNotifyUpdate() {
|
|
|
82
82
|
const [
|
|
83
83
|
{ isAutoUpdaterDisabled, getGlobalConfig, saveGlobalConfig },
|
|
84
84
|
{ env }
|
|
85
|
-
] = await Promise.all([import("./config-
|
|
85
|
+
] = await Promise.all([import("./config-GVJLYS6J.js"), import("./env-L3OOLUJ2.js")]);
|
|
86
86
|
if (await isAutoUpdaterDisabled()) return;
|
|
87
87
|
if (await env.getIsDocker()) return;
|
|
88
88
|
if (!await env.hasInternetAccess()) return;
|
|
@@ -41,54 +41,57 @@ import {
|
|
|
41
41
|
runWithTaskListEnv,
|
|
42
42
|
runWithTaskListId,
|
|
43
43
|
updateTask
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-6MWZ7CQZ.js";
|
|
45
|
+
import {
|
|
46
|
+
getCurrentSessionId
|
|
47
|
+
} from "./chunk-XKYHFZEC.js";
|
|
45
48
|
import {
|
|
46
49
|
queryLLM
|
|
47
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-VP6FXGFA.js";
|
|
48
51
|
import {
|
|
49
52
|
FallbackToolUseRejectedMessage,
|
|
50
53
|
MCPTool,
|
|
51
54
|
getClients,
|
|
52
55
|
getMCPTools
|
|
53
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-EYP4MYSC.js";
|
|
54
57
|
import {
|
|
55
58
|
emitReminderEvent
|
|
56
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-7TYWNOBA.js";
|
|
57
60
|
import {
|
|
58
61
|
getActiveAgents,
|
|
59
62
|
getAgentByType,
|
|
60
63
|
getAvailableAgentTypes
|
|
61
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-TYOFB7OQ.js";
|
|
62
65
|
import {
|
|
63
66
|
INTERRUPT_MESSAGE,
|
|
64
67
|
createAssistantMessage,
|
|
65
68
|
createUserMessageFromBlocks,
|
|
66
69
|
createUserMessageFromText,
|
|
67
70
|
getLastAssistantMessageId
|
|
68
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-WNSD3D42.js";
|
|
69
72
|
import {
|
|
70
73
|
formatDuration,
|
|
71
74
|
formatNumber
|
|
72
75
|
} from "./chunk-OUXHGDLH.js";
|
|
73
76
|
import {
|
|
74
77
|
getAbsolutePath
|
|
75
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-PFX6IKOO.js";
|
|
76
79
|
import {
|
|
77
80
|
LspFacade,
|
|
78
81
|
formatDiagnosticsPretty
|
|
79
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-H36NFG5R.js";
|
|
80
83
|
import {
|
|
81
84
|
getModelManager
|
|
82
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-4RFXDDFR.js";
|
|
83
86
|
import {
|
|
84
87
|
getContext
|
|
85
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-NGJAMMVA.js";
|
|
86
89
|
import {
|
|
87
90
|
getTheme
|
|
88
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-5OQ3NGHH.js";
|
|
89
92
|
import {
|
|
90
93
|
debug
|
|
91
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-2ITFLNCF.js";
|
|
92
95
|
import {
|
|
93
96
|
BunShell,
|
|
94
97
|
MEMORY_DIR,
|
|
@@ -100,7 +103,7 @@ import {
|
|
|
100
103
|
overwriteLog,
|
|
101
104
|
readTaskOutput,
|
|
102
105
|
resolveXdgDataPath
|
|
103
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-2OOXJ4JL.js";
|
|
104
107
|
|
|
105
108
|
// src/tools/index.ts
|
|
106
109
|
import { memoize as memoize2 } from "lodash-es";
|
|
@@ -781,7 +784,7 @@ async function analyzeOutputWithLsp(output, exitCode) {
|
|
|
781
784
|
if (exitCode !== 0 || errorCount > 0 || warningCount > 0) {
|
|
782
785
|
try {
|
|
783
786
|
const { isAbsolute: isAbsolute2, resolve: resolve3 } = await import("path");
|
|
784
|
-
const { getSessionRoot: getSessionRoot2 } = await import("./state-
|
|
787
|
+
const { getSessionRoot: getSessionRoot2 } = await import("./state-QXUVP75D.js");
|
|
785
788
|
const lines = output.split("\n");
|
|
786
789
|
const uniqueFiles = /* @__PURE__ */ new Set();
|
|
787
790
|
const lspSuggestions = [];
|
|
@@ -1151,7 +1154,7 @@ var DeleteTool = {
|
|
|
1151
1154
|
}
|
|
1152
1155
|
if (!force) {
|
|
1153
1156
|
try {
|
|
1154
|
-
const { LspFacade: LspFacade2 } = await import("./lsp-
|
|
1157
|
+
const { LspFacade: LspFacade2 } = await import("./lsp-HEXOWAPA.js");
|
|
1155
1158
|
const referenceDetail = await LspFacade2.checkFileReferences(fullPath);
|
|
1156
1159
|
if (referenceDetail) {
|
|
1157
1160
|
failedItems.push(
|
|
@@ -2177,6 +2180,15 @@ function asyncLaunchMessage(agentId) {
|
|
|
2177
2180
|
var FORK_CONTEXT_TOOL_RESULT_TEXT = TASK_FORK_CONTEXT_POLICY;
|
|
2178
2181
|
var TOOL_PROGRESS_OPEN_TAG2 = ["<tool", "-progress>"].join("");
|
|
2179
2182
|
var TOOL_PROGRESS_CLOSE_TAG2 = ["</tool", "-progress>"].join("");
|
|
2183
|
+
function resolveParentSessionId(toolUseContext) {
|
|
2184
|
+
const direct = typeof toolUseContext?.sessionId === "string" ? toolUseContext.sessionId.trim() : "";
|
|
2185
|
+
if (direct) return direct;
|
|
2186
|
+
const active = getCurrentSessionId();
|
|
2187
|
+
if (typeof active === "string" && active.trim()) {
|
|
2188
|
+
return active.trim();
|
|
2189
|
+
}
|
|
2190
|
+
return void 0;
|
|
2191
|
+
}
|
|
2180
2192
|
function normalizeAgentPermissionMode(mode) {
|
|
2181
2193
|
if (typeof mode !== "string") return void 0;
|
|
2182
2194
|
const trimmed = mode.trim();
|
|
@@ -2418,6 +2430,8 @@ var TaskTool = {
|
|
|
2418
2430
|
tools = tools.filter((t) => !disallowedToolNames.has(t.name));
|
|
2419
2431
|
}
|
|
2420
2432
|
const agentId = input.resume || generateAgentId();
|
|
2433
|
+
const parentSessionId = resolveParentSessionId(toolUseContext);
|
|
2434
|
+
const childSessionId = agentId;
|
|
2421
2435
|
const taskListId = generateTaskListId();
|
|
2422
2436
|
const baseTranscript = input.resume ? getAgentTranscript(input.resume)?.filter((m) => m.type !== "progress") ?? null : [];
|
|
2423
2437
|
if (input.resume && baseTranscript === null) {
|
|
@@ -2494,6 +2508,9 @@ var TaskTool = {
|
|
|
2494
2508
|
abortController: bgAbortController,
|
|
2495
2509
|
options: queryOptions,
|
|
2496
2510
|
messageId: getLastAssistantMessageId(bgMessages),
|
|
2511
|
+
sessionId: childSessionId,
|
|
2512
|
+
parentSessionId,
|
|
2513
|
+
childSessionId,
|
|
2497
2514
|
agentId,
|
|
2498
2515
|
agentType: input.subagent_type,
|
|
2499
2516
|
readFileTimestamps,
|
|
@@ -2572,6 +2589,9 @@ var TaskTool = {
|
|
|
2572
2589
|
abortController,
|
|
2573
2590
|
options: queryOptions,
|
|
2574
2591
|
messageId: getLastAssistantMessageId(messagesForQuery),
|
|
2592
|
+
sessionId: childSessionId,
|
|
2593
|
+
parentSessionId,
|
|
2594
|
+
childSessionId,
|
|
2575
2595
|
agentId,
|
|
2576
2596
|
agentType: input.subagent_type,
|
|
2577
2597
|
readFileTimestamps,
|