@qwen-code/qwen-code 0.18.0-preview.2 → 0.18.1
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/bundled/loop/SKILL.md +2 -1
- package/bundled/qc-helper/docs/_meta.ts +1 -0
- package/bundled/qc-helper/docs/configuration/auth.md +1 -1
- package/bundled/qc-helper/docs/configuration/model-providers.md +12 -5
- package/bundled/qc-helper/docs/configuration/settings.md +33 -32
- package/bundled/qc-helper/docs/features/approval-mode.md +10 -14
- package/bundled/qc-helper/docs/features/commands.md +33 -11
- package/bundled/qc-helper/docs/features/dual-output.md +37 -3
- package/bundled/qc-helper/docs/features/followup-suggestions.md +2 -2
- package/bundled/qc-helper/docs/features/skills.md +29 -3
- package/bundled/qc-helper/docs/features/sub-agents.md +34 -12
- package/bundled/qc-helper/docs/qwen-serve-deploy-local.md +221 -0
- package/bundled/qc-helper/docs/qwen-serve.md +246 -28
- package/chunks/{agent-QB7TZ4HW.js → agent-XT7NHZ5H.js} +25 -24
- package/chunks/agent-headless-LNRE63ZL.js +51 -0
- package/chunks/{anthropicContentGenerator-M45EVVRM.js → anthropicContentGenerator-DCI26OQF.js} +7 -7
- package/chunks/{askUserQuestion-WM2KHM3K.js → askUserQuestion-ITYUTWLR.js} +45 -3
- package/chunks/{ca-BARBRL6N.js → ca-RK4QPLIX.js} +18 -1
- package/chunks/{chunk-CWV3SJZS.js → chunk-3NRO6NHX.js} +2 -2
- package/chunks/{chunk-BNESGOSJ.js → chunk-55ZMG67I.js} +1 -1
- package/chunks/{chunk-QCG6KPNM.js → chunk-6T7Y7USE.js} +18017 -11621
- package/chunks/{chunk-CNHFPN7T.js → chunk-7KPZFE5A.js} +1 -1
- package/chunks/{chunk-2ZTWI7KH.js → chunk-A2ZIEEGJ.js} +30 -22
- package/chunks/{chunk-JUGRPQAB.js → chunk-B4ZF2KSI.js} +1 -1
- package/chunks/chunk-BJ5HQ23U.js +178 -0
- package/chunks/{chunk-HXJE7VOG.js → chunk-BXYRCW2C.js} +1074 -144
- package/chunks/{chunk-ICOI4E4S.js → chunk-CPVI5J2L.js} +101 -23
- package/chunks/{chunk-HV3ZZ7G4.js → chunk-DHZREJTG.js} +2 -2
- package/chunks/{chunk-GX7VH5JQ.js → chunk-FIQECJTQ.js} +1 -1
- package/chunks/{chunk-SZOEIL6S.js → chunk-H6BD2ELD.js} +1 -0
- package/chunks/{chunk-JXAZUMDW.js → chunk-HA2UEYZP.js} +7 -4
- package/chunks/{chunk-USE2VQ5P.js → chunk-HED55F43.js} +26 -1
- package/chunks/{chunk-PAEBHDIO.js → chunk-HQUWWSSP.js} +1 -1
- package/chunks/{chunk-MVIVIPCU.js → chunk-IDYDPBBN.js} +361 -583
- package/chunks/{chunk-JVQOQ3OU.js → chunk-IQHSD7K5.js} +1 -1
- package/chunks/{chunk-NW5QBUYO.js → chunk-IS7UA4W3.js} +14 -14
- package/chunks/{chunk-UAMOBVVW.js → chunk-LXYWINWF.js} +1 -1
- package/chunks/{chunk-P4J26VDS.js → chunk-LYRSMKLS.js} +2 -2
- package/chunks/{chunk-Y7R6H6FT.js → chunk-LYSND7KR.js} +9 -4
- package/chunks/{chunk-LR62TEET.js → chunk-NNIYWQIS.js} +1 -1
- package/chunks/chunk-OMX7CUOE.js +356 -0
- package/chunks/{chunk-CNSMKPK6.js → chunk-QILTEBWS.js} +1 -1
- package/chunks/chunk-QQDPRDVW.js +25 -0
- package/chunks/{chunk-ZK4AMNIU.js → chunk-RON7LFNH.js} +1294 -314
- package/chunks/chunk-SFRV6BGY.js +243 -0
- package/chunks/{chunk-AVW55ZCO.js → chunk-WJ3SND6W.js} +37 -16
- package/chunks/{chunk-HGJPQK33.js → chunk-WPTCDQN6.js} +188 -534
- package/chunks/{chunk-7YKXFA3D.js → chunk-XZTNBSMW.js} +11 -11
- package/chunks/{chunk-C6WMLUNB.js → chunk-Y7KMDUEP.js} +1 -1
- package/chunks/{chunk-WFVXF3OM.js → chunk-Z2Z3GUXZ.js} +1 -0
- package/chunks/{chunk-KC6ZMJ5X.js → chunk-ZMIBJS45.js} +1 -1
- package/chunks/chunk-ZOFNJQNJ.js +607 -0
- package/chunks/computer-use-4YX3JGBV.js +2052 -0
- package/chunks/contextCommand-KS2H7MW5.js +53 -0
- package/chunks/cron-create-CAPUKK7I.js +184 -0
- package/chunks/{cron-delete-ZGUXWBTG.js → cron-delete-G3KAR26Q.js} +28 -5
- package/chunks/{cron-list-QNNZGMN3.js → cron-list-ZA4ZIUS5.js} +40 -7
- package/chunks/{de-YGKK2BC4.js → de-FGPM4KW5.js} +18 -1
- package/chunks/{devtools-IXE4UP72.js → devtools-FM6GJPYG.js} +1 -1
- package/chunks/{dist-ZMQ4TXD5.js → dist-7YWFWOCJ.js} +2 -2
- package/chunks/{dist-R2SXPG74.js → dist-VEGFONCF.js} +2 -2
- package/chunks/{dist-TE5QKMGR.js → dist-X4EXN7W6.js} +1 -1
- package/chunks/{dist-BXDUQ2QY.js → dist-YLS6NI7H.js} +1 -1
- package/chunks/{edit-6UBTS2J5.js → edit-2ARPEO4B.js} +26 -25
- package/chunks/{en-HSQQNQUB.js → en-VP6XPGEC.js} +9 -2
- package/chunks/{enter-worktree-NN7LIXCM.js → enter-worktree-IXNXNAW5.js} +25 -24
- package/chunks/enterPlanMode-TAKAGAYP.js +159 -0
- package/chunks/{exit-worktree-GGSS5KIE.js → exit-worktree-LHTRV7ML.js} +25 -24
- package/chunks/exitPlanMode-MK5UAITL.js +743 -0
- package/chunks/{fr-JXBKPJKQ.js → fr-ATYBVCLT.js} +18 -1
- package/chunks/{geminiContentGenerator-I4H2NLJG.js → geminiContentGenerator-HFJIGO77.js} +7 -7
- package/chunks/{getMachineId-bsd-F7GNPTER.js → getMachineId-bsd-4CASPIU4.js} +1 -1
- package/chunks/{getMachineId-darwin-T73DJL27.js → getMachineId-darwin-HPQPEMZR.js} +1 -1
- package/chunks/{getMachineId-linux-MKQTFPQM.js → getMachineId-linux-AUARKYHL.js} +1 -1
- package/chunks/{getMachineId-unsupported-MUR5KOQE.js → getMachineId-unsupported-S32ZDA2T.js} +1 -1
- package/chunks/{getMachineId-win-CDYFC6ZM.js → getMachineId-win-4EFLHYIJ.js} +1 -1
- package/chunks/{glob-OLCX57MD.js → glob-I2USLUSC.js} +25 -24
- package/chunks/{grep-7HXIMDOW.js → grep-WBIF7THR.js} +37 -30
- package/chunks/{ja-TGPZSP2B.js → ja-W2QEA2OI.js} +18 -1
- package/chunks/{keychain-token-storage-LB46DAEK.js → keychain-token-storage-QSTRHKKL.js} +3 -3
- package/chunks/{ls-6PEZUK6O.js → ls-2R5RHLX5.js} +4 -4
- package/chunks/{lsp-JZSJOVT7.js → lsp-XKH6ZIAN.js} +3 -3
- package/chunks/{monitor-SQO7MVAV.js → monitor-WU7UFATU.js} +25 -24
- package/chunks/{notebook-edit-72L3EBAL.js → notebook-edit-KUHYPXEM.js} +26 -25
- package/chunks/{openaiContentGenerator-FTR7CDWF.js → openaiContentGenerator-5PLHYJQL.js} +15 -15
- package/chunks/{pt-TIBG6BIO.js → pt-ZKEWJFBW.js} +18 -1
- package/chunks/{qwenContentGenerator-U5UFQ566.js → qwenContentGenerator-TSKW73KY.js} +27 -26
- package/chunks/{qwenOAuth2-EFSECGHF.js → qwenOAuth2-KK433U33.js} +6 -5
- package/chunks/{read-file-UA64EEQC.js → read-file-VIPF2PS6.js} +11 -11
- package/chunks/ripGrep-XLIZTYE7.js +49 -0
- package/chunks/{ru-JBCHCK4L.js → ru-VEKTPJ74.js} +18 -1
- package/chunks/{scheduler-VBASHOCA.js → scheduler-O66SLJGU.js} +25 -24
- package/chunks/{send-message-OYJZ5TPG.js → send-message-CTME7DXD.js} +3 -3
- package/chunks/{serve-A7E2OJDR.js → serve-BWOLYT62.js} +13164 -3840
- package/chunks/{shell-3NFOT6F5.js → shell-XE7UYKOO.js} +25 -24
- package/chunks/{skill-RA5YUREY.js → skill-RZWM6XMC.js} +64 -113
- package/chunks/{src-NFCMARMT.js → src-L5P7K4MH.js} +176 -44
- package/chunks/{syntheticOutput-DETQ2YM6.js → syntheticOutput-ZJGSU7OQ.js} +4 -4
- package/chunks/{task-create-Y3ZKTJIG.js → task-create-EE6JEM7G.js} +8 -7
- package/chunks/{task-list-ONXJ3I3A.js → task-list-EESYAC65.js} +7 -6
- package/chunks/{task-stop-UHDC4N5B.js → task-stop-XZVCFFYY.js} +3 -3
- package/chunks/{task-update-TCNOU3P5.js → task-update-EIO4HNE3.js} +21 -9
- package/chunks/{team-create-6SR4OVRG.js → team-create-R2H7Y3SG.js} +28 -26
- package/chunks/{team-delete-EJ4U4DDP.js → team-delete-A7LXPGV7.js} +9 -6
- package/chunks/{todoWrite-TEYDRS5L.js → todoWrite-VRKSGAWM.js} +5 -5
- package/chunks/{tool-search-OD435A3X.js → tool-search-USSQMTMS.js} +11 -11
- package/chunks/{web-fetch-6W67H5PO.js → web-fetch-GHAZUA54.js} +5 -5
- package/chunks/workflow-5LNNLNUR.js +1414 -0
- package/chunks/{write-file-475L5OPP.js → write-file-2I7HP24C.js} +26 -25
- package/chunks/{zh-VCLWO26Y.js → zh-OIXDDQHB.js} +10 -3
- package/chunks/{zh-TW-G3HFHVVT.js → zh-TW-6YFNCKTA.js} +10 -3
- package/cli-entry.js +19 -0
- package/cli.js +11064 -6628
- package/examples/starter/QWEN.md +30 -0
- package/examples/starter/README.md +59 -0
- package/examples/starter/agents/diary.md +86 -0
- package/examples/starter/commands/writing/polish.md +13 -0
- package/examples/starter/example.ts +64 -0
- package/examples/starter/package.json +18 -0
- package/examples/starter/qwen-extension.json +12 -0
- package/examples/starter/skills/synonyms/SKILL.md +48 -0
- package/examples/starter/tsconfig.json +13 -0
- package/fzfWorker.js +1083 -0
- package/locales/ca.js +20 -2
- package/locales/de.js +21 -2
- package/locales/en.js +13 -4
- package/locales/fr.js +22 -2
- package/locales/ja.js +22 -2
- package/locales/pt.js +21 -2
- package/locales/ru.js +20 -2
- package/locales/zh-TW.js +11 -4
- package/locales/zh.js +11 -4
- package/package.json +5 -3
- package/chunks/agent-headless-APVHH7QM.js +0 -50
- package/chunks/chunk-AJIR24J2.js +0 -59
- package/chunks/chunk-SKBPNJEW.js +0 -45
- package/chunks/chunk-XBFVXFB2.js +0 -216
- package/chunks/computer-use-B7VIUI7F.js +0 -825
- package/chunks/contextCommand-63RZ3O5R.js +0 -52
- package/chunks/cron-create-FI5LJVUS.js +0 -140
- package/chunks/exitPlanMode-H323NHB2.js +0 -235
- package/chunks/ripGrep-WSYCWZVK.js +0 -48
- package/chunks/workflow-62DHH4EO.js +0 -708
|
@@ -4,50 +4,51 @@ import {
|
|
|
4
4
|
GitWorktreeService,
|
|
5
5
|
writeWorktreeSession,
|
|
6
6
|
writeWorktreeSessionMarker
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6T7Y7USE.js";
|
|
8
8
|
import "./chunk-K5PGHDBN.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-HQUWWSSP.js";
|
|
10
10
|
import "./chunk-O4PICXES.js";
|
|
11
11
|
import "./chunk-TW522KN6.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-BJ5HQ23U.js";
|
|
13
|
+
import "./chunk-SFRV6BGY.js";
|
|
14
|
+
import "./chunk-ZOFNJQNJ.js";
|
|
15
|
+
import "./chunk-WPTCDQN6.js";
|
|
16
|
+
import "./chunk-OMX7CUOE.js";
|
|
15
17
|
import "./chunk-MLZQVCF3.js";
|
|
16
|
-
import "./chunk-PAEBHDIO.js";
|
|
17
18
|
import "./chunk-LD2XBG6Z.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-CPVI5J2L.js";
|
|
20
|
+
import "./chunk-ZMIBJS45.js";
|
|
20
21
|
import "./chunk-77WXWU44.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-ZK4AMNIU.js";
|
|
22
|
+
import "./chunk-B4ZF2KSI.js";
|
|
23
|
+
import "./chunk-RON7LFNH.js";
|
|
24
24
|
import "./chunk-3PJXIDKI.js";
|
|
25
25
|
import "./chunk-UWCTAVOD.js";
|
|
26
26
|
import "./chunk-OFEVLU4C.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-IQHSD7K5.js";
|
|
28
|
+
import "./chunk-LYRSMKLS.js";
|
|
29
|
+
import "./chunk-QILTEBWS.js";
|
|
30
30
|
import {
|
|
31
31
|
BaseDeclarativeTool,
|
|
32
32
|
BaseToolInvocation,
|
|
33
33
|
ToolDisplayNames,
|
|
34
34
|
ToolNames
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-A2ZIEEGJ.js";
|
|
36
|
+
import "./chunk-IDYDPBBN.js";
|
|
37
|
+
import "./chunk-FIQECJTQ.js";
|
|
38
|
+
import "./chunk-64WXLC72.js";
|
|
39
|
+
import "./chunk-LXYWINWF.js";
|
|
40
|
+
import "./chunk-NNIYWQIS.js";
|
|
41
|
+
import "./chunk-LYSND7KR.js";
|
|
42
|
+
import "./chunk-55ZMG67I.js";
|
|
43
|
+
import "./chunk-H6BD2ELD.js";
|
|
43
44
|
import "./chunk-5IFG2VC4.js";
|
|
44
45
|
import {
|
|
45
46
|
createDebugLogger
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-HA2UEYZP.js";
|
|
47
48
|
import "./chunk-ZERZSAZL.js";
|
|
48
49
|
import "./chunk-QN5NZ3UQ.js";
|
|
49
50
|
import "./chunk-BR4QREVK.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-Z2Z3GUXZ.js";
|
|
51
52
|
import {
|
|
52
53
|
init_esbuild_shims
|
|
53
54
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import "./chunk-6T7Y7USE.js";
|
|
4
|
+
import "./chunk-K5PGHDBN.js";
|
|
5
|
+
import "./chunk-HQUWWSSP.js";
|
|
6
|
+
import "./chunk-O4PICXES.js";
|
|
7
|
+
import "./chunk-TW522KN6.js";
|
|
8
|
+
import "./chunk-BJ5HQ23U.js";
|
|
9
|
+
import "./chunk-SFRV6BGY.js";
|
|
10
|
+
import "./chunk-ZOFNJQNJ.js";
|
|
11
|
+
import "./chunk-WPTCDQN6.js";
|
|
12
|
+
import "./chunk-OMX7CUOE.js";
|
|
13
|
+
import "./chunk-MLZQVCF3.js";
|
|
14
|
+
import "./chunk-LD2XBG6Z.js";
|
|
15
|
+
import "./chunk-CPVI5J2L.js";
|
|
16
|
+
import "./chunk-ZMIBJS45.js";
|
|
17
|
+
import "./chunk-77WXWU44.js";
|
|
18
|
+
import "./chunk-B4ZF2KSI.js";
|
|
19
|
+
import "./chunk-RON7LFNH.js";
|
|
20
|
+
import "./chunk-3PJXIDKI.js";
|
|
21
|
+
import "./chunk-UWCTAVOD.js";
|
|
22
|
+
import "./chunk-OFEVLU4C.js";
|
|
23
|
+
import "./chunk-IQHSD7K5.js";
|
|
24
|
+
import "./chunk-LYRSMKLS.js";
|
|
25
|
+
import "./chunk-QILTEBWS.js";
|
|
26
|
+
import {
|
|
27
|
+
BaseDeclarativeTool,
|
|
28
|
+
BaseToolInvocation,
|
|
29
|
+
ToolDisplayNames,
|
|
30
|
+
ToolNames
|
|
31
|
+
} from "./chunk-A2ZIEEGJ.js";
|
|
32
|
+
import "./chunk-IDYDPBBN.js";
|
|
33
|
+
import "./chunk-FIQECJTQ.js";
|
|
34
|
+
import "./chunk-64WXLC72.js";
|
|
35
|
+
import "./chunk-LXYWINWF.js";
|
|
36
|
+
import "./chunk-NNIYWQIS.js";
|
|
37
|
+
import "./chunk-LYSND7KR.js";
|
|
38
|
+
import "./chunk-55ZMG67I.js";
|
|
39
|
+
import "./chunk-H6BD2ELD.js";
|
|
40
|
+
import "./chunk-5IFG2VC4.js";
|
|
41
|
+
import {
|
|
42
|
+
createDebugLogger
|
|
43
|
+
} from "./chunk-HA2UEYZP.js";
|
|
44
|
+
import "./chunk-ZERZSAZL.js";
|
|
45
|
+
import "./chunk-QN5NZ3UQ.js";
|
|
46
|
+
import "./chunk-BR4QREVK.js";
|
|
47
|
+
import "./chunk-Z2Z3GUXZ.js";
|
|
48
|
+
import {
|
|
49
|
+
init_esbuild_shims
|
|
50
|
+
} from "./chunk-A4BMJM77.js";
|
|
51
|
+
import {
|
|
52
|
+
__name
|
|
53
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
54
|
+
|
|
55
|
+
// packages/core/src/tools/enterPlanMode.ts
|
|
56
|
+
init_esbuild_shims();
|
|
57
|
+
var debugLogger = createDebugLogger("ENTER_PLAN_MODE");
|
|
58
|
+
var enterPlanModeToolDescription = `Use this tool to lower into plan mode before doing uncertain or complex work. Entering plan mode is a privilege reduction, so it does not require user confirmation.
|
|
59
|
+
|
|
60
|
+
## When to Use This Tool
|
|
61
|
+
Use this tool when the task is not yet clear enough to safely execute, for example when it requires multi-file changes, design choices, investigation before a plan can be summarized, or when requirements are ambiguous. While investigating, if complexity rises or you find yourself repeatedly needing to ask the user, enter plan mode and consolidate a plan.
|
|
62
|
+
|
|
63
|
+
## When NOT to Use This Tool
|
|
64
|
+
If the request is already clear, small, and low-risk, you may execute directly without entering plan mode. Do not make speculative small edits before you have thought the change through.
|
|
65
|
+
|
|
66
|
+
## Important
|
|
67
|
+
Do NOT use this tool if the user has explicitly asked you not to use plan mode.`;
|
|
68
|
+
var enterPlanModeToolSchemaData = {
|
|
69
|
+
name: "enter_plan_mode",
|
|
70
|
+
description: enterPlanModeToolDescription,
|
|
71
|
+
parametersJsonSchema: {
|
|
72
|
+
type: "object",
|
|
73
|
+
properties: {},
|
|
74
|
+
additionalProperties: false,
|
|
75
|
+
$schema: "http://json-schema.org/draft-07/schema#"
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
var EnterPlanModeToolInvocation = class extends BaseToolInvocation {
|
|
79
|
+
constructor(config, params) {
|
|
80
|
+
super(params);
|
|
81
|
+
this.config = config;
|
|
82
|
+
}
|
|
83
|
+
static {
|
|
84
|
+
__name(this, "EnterPlanModeToolInvocation");
|
|
85
|
+
}
|
|
86
|
+
getDescription() {
|
|
87
|
+
return "Enter plan mode";
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Entering plan mode lowers privileges, so it is always allowed without a
|
|
91
|
+
* confirmation prompt.
|
|
92
|
+
*/
|
|
93
|
+
async getDefaultPermission() {
|
|
94
|
+
return "allow";
|
|
95
|
+
}
|
|
96
|
+
async execute(_signal) {
|
|
97
|
+
const isAcpMode = this.config.getExperimentalZedIntegration?.() || this.config.getInputFormat?.() === "stream-json" /* STREAM_JSON */;
|
|
98
|
+
if (!this.config.isInteractive() && !isAcpMode) {
|
|
99
|
+
return {
|
|
100
|
+
llmContent: "Cannot enter plan mode in non-interactive mode without ACP support. The gate exit paths require user interaction.",
|
|
101
|
+
returnDisplay: "Plan mode unavailable in non-interactive mode."
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
try {
|
|
105
|
+
if (this.config.getApprovalMode() !== "plan" /* PLAN */) {
|
|
106
|
+
this.config.setApprovalMode("plan" /* PLAN */);
|
|
107
|
+
}
|
|
108
|
+
} catch (error) {
|
|
109
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
110
|
+
debugLogger.error(
|
|
111
|
+
`[EnterPlanModeTool] Failed to set approval mode to plan: ${errorMessage}`
|
|
112
|
+
);
|
|
113
|
+
return {
|
|
114
|
+
llmContent: `Failed to enter plan mode: ${errorMessage}`,
|
|
115
|
+
returnDisplay: `Error entering plan mode: ${errorMessage}`
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
llmContent: "Plan mode is now active. Continue with read-only investigation, ask the user when needed, and use exit_plan_mode when the plan is ready.",
|
|
120
|
+
returnDisplay: "Entered plan mode."
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
var EnterPlanModeTool = class _EnterPlanModeTool extends BaseDeclarativeTool {
|
|
125
|
+
constructor(config) {
|
|
126
|
+
super(
|
|
127
|
+
_EnterPlanModeTool.Name,
|
|
128
|
+
ToolDisplayNames.ENTER_PLAN_MODE,
|
|
129
|
+
enterPlanModeToolDescription,
|
|
130
|
+
"think" /* Think */,
|
|
131
|
+
enterPlanModeToolSchemaData.parametersJsonSchema,
|
|
132
|
+
true,
|
|
133
|
+
// isOutputMarkdown
|
|
134
|
+
false,
|
|
135
|
+
// canUpdateOutput
|
|
136
|
+
false,
|
|
137
|
+
// shouldDefer — always visible so the model can enter plan mode
|
|
138
|
+
false,
|
|
139
|
+
// alwaysLoad
|
|
140
|
+
"plan mode enter start"
|
|
141
|
+
);
|
|
142
|
+
this.config = config;
|
|
143
|
+
}
|
|
144
|
+
static {
|
|
145
|
+
__name(this, "EnterPlanModeTool");
|
|
146
|
+
}
|
|
147
|
+
static Name = ToolNames.ENTER_PLAN_MODE;
|
|
148
|
+
createInvocation(params) {
|
|
149
|
+
return new EnterPlanModeToolInvocation(this.config, params);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
export {
|
|
153
|
+
EnterPlanModeTool
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* @license
|
|
157
|
+
* Copyright 2025 Qwen
|
|
158
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
159
|
+
*/
|
|
@@ -6,51 +6,52 @@ import {
|
|
|
6
6
|
readWorktreeSession,
|
|
7
7
|
readWorktreeSessionMarker,
|
|
8
8
|
worktreeBranchForSlug
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6T7Y7USE.js";
|
|
10
10
|
import "./chunk-K5PGHDBN.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-HQUWWSSP.js";
|
|
12
12
|
import "./chunk-O4PICXES.js";
|
|
13
13
|
import "./chunk-TW522KN6.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-BJ5HQ23U.js";
|
|
15
|
+
import "./chunk-SFRV6BGY.js";
|
|
16
|
+
import "./chunk-ZOFNJQNJ.js";
|
|
17
|
+
import "./chunk-WPTCDQN6.js";
|
|
18
|
+
import "./chunk-OMX7CUOE.js";
|
|
17
19
|
import "./chunk-MLZQVCF3.js";
|
|
18
|
-
import "./chunk-PAEBHDIO.js";
|
|
19
20
|
import "./chunk-LD2XBG6Z.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-CPVI5J2L.js";
|
|
22
|
+
import "./chunk-ZMIBJS45.js";
|
|
22
23
|
import "./chunk-77WXWU44.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-ZK4AMNIU.js";
|
|
24
|
+
import "./chunk-B4ZF2KSI.js";
|
|
25
|
+
import "./chunk-RON7LFNH.js";
|
|
26
26
|
import "./chunk-3PJXIDKI.js";
|
|
27
27
|
import "./chunk-UWCTAVOD.js";
|
|
28
28
|
import "./chunk-OFEVLU4C.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-IQHSD7K5.js";
|
|
30
|
+
import "./chunk-LYRSMKLS.js";
|
|
31
|
+
import "./chunk-QILTEBWS.js";
|
|
32
32
|
import {
|
|
33
33
|
BaseDeclarativeTool,
|
|
34
34
|
BaseToolInvocation,
|
|
35
35
|
ToolDisplayNames,
|
|
36
36
|
ToolNames
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-A2ZIEEGJ.js";
|
|
38
|
+
import "./chunk-IDYDPBBN.js";
|
|
39
|
+
import "./chunk-FIQECJTQ.js";
|
|
40
|
+
import "./chunk-64WXLC72.js";
|
|
41
|
+
import "./chunk-LXYWINWF.js";
|
|
42
|
+
import "./chunk-NNIYWQIS.js";
|
|
43
|
+
import "./chunk-LYSND7KR.js";
|
|
44
|
+
import "./chunk-55ZMG67I.js";
|
|
45
|
+
import "./chunk-H6BD2ELD.js";
|
|
45
46
|
import "./chunk-5IFG2VC4.js";
|
|
46
47
|
import {
|
|
47
48
|
createDebugLogger,
|
|
48
49
|
isNodeError
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-HA2UEYZP.js";
|
|
50
51
|
import "./chunk-ZERZSAZL.js";
|
|
51
52
|
import "./chunk-QN5NZ3UQ.js";
|
|
52
53
|
import "./chunk-BR4QREVK.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-Z2Z3GUXZ.js";
|
|
54
55
|
import {
|
|
55
56
|
init_esbuild_shims
|
|
56
57
|
} from "./chunk-A4BMJM77.js";
|