@mmmbuto/qwen-code-termux 0.16.1-termux → 0.18.0-termux
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/README.md +79 -109
- package/bundled/new-app/SKILL.md +22 -0
- package/bundled/qc-helper/SKILL.md +29 -24
- package/bundled/qc-helper/docs/_meta.ts +1 -0
- package/bundled/qc-helper/docs/configuration/_meta.ts +0 -3
- package/bundled/qc-helper/docs/configuration/settings.md +37 -31
- package/bundled/qc-helper/docs/configuration/themes.md +39 -0
- package/bundled/qc-helper/docs/features/_meta.ts +1 -3
- package/bundled/qc-helper/docs/features/approval-mode.md +35 -35
- package/bundled/qc-helper/docs/features/auto-mode.md +54 -9
- package/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/feishu.md +170 -0
- package/bundled/qc-helper/docs/features/commands.md +115 -35
- package/bundled/qc-helper/docs/features/followup-suggestions.md +2 -2
- package/bundled/qc-helper/docs/features/headless.md +32 -0
- package/bundled/qc-helper/docs/features/markdown-rendering.md +21 -1
- package/bundled/qc-helper/docs/features/memory.md +22 -5
- package/bundled/qc-helper/docs/features/scheduled-tasks.md +1 -1
- package/bundled/qc-helper/docs/features/status-line.md +168 -32
- package/bundled/qc-helper/docs/features/sub-agents.md +60 -0
- package/bundled/qc-helper/docs/features/worktree.md +345 -0
- package/bundled/qc-helper/docs/overview.md +4 -4
- package/bundled/qc-helper/docs/quickstart.md +4 -4
- package/bundled/qc-helper/docs/qwen-serve-deploy-local.md +221 -0
- package/bundled/qc-helper/docs/qwen-serve.md +234 -24
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +16 -0
- package/bundled/qc-helper/docs/support/Uninstall.md +19 -1
- package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
- package/bundled/simplify/SKILL.md +123 -0
- package/chunks/agent-IDS4HMOX.js +56 -0
- package/chunks/agent-headless-5Q2EUSPS.js +50 -0
- package/chunks/{anthropicContentGenerator-SSGKR6DO.js → anthropicContentGenerator-2HBRNQ3B.js} +52 -9
- package/chunks/{askUserQuestion-PJWUUXKN.js → askUserQuestion-75TDJVK2.js} +45 -3
- package/chunks/{ca-UZ7BANMN.js → ca-BARBRL6N.js} +89 -5
- package/chunks/{chunk-GGNTZ2NH.js → chunk-2Y5SYSD3.js} +368 -597
- package/chunks/{chunk-2LA2TREA.js → chunk-3AA2DK35.js} +1448 -207
- package/chunks/{chunk-I2V5WXHJ.js → chunk-3AUHFMSK.js} +80 -38
- package/chunks/chunk-3DHXZ6EV.js +241 -0
- package/chunks/{chunk-PR4T27R7.js → chunk-3HTIVKZE.js} +42 -8
- package/chunks/chunk-3HX5LZ6R.js +1798 -0
- package/chunks/chunk-3PJXIDKI.js +2517 -0
- package/chunks/{chunk-MYAKAFEC.js → chunk-55ZMG67I.js} +7451 -3517
- package/chunks/{chunk-66CXYE4B.js → chunk-5IFG2VC4.js} +293 -242
- package/chunks/chunk-64WXLC72.js +98 -0
- package/chunks/{chunk-C6WMLUNB.js → chunk-72LDN5PP.js} +1 -1
- package/chunks/{chunk-F23NCRJ2.js → chunk-A7B4ISQP.js} +1 -1
- package/chunks/chunk-B7HXHOHU.js +393 -0
- package/chunks/{chunk-XEGHDASV.js → chunk-D3RHSPAS.js} +435 -540
- package/chunks/{chunk-XKS5KBFJ.js → chunk-EYENRK4D.js} +694 -384
- package/chunks/chunk-H6BD2ELD.js +36 -0
- package/chunks/{chunk-XP27SJMH.js → chunk-HR7SV7AY.js} +79 -48
- package/chunks/{chunk-D5NTAHYL.js → chunk-IDX6COTE.js} +7 -2
- package/chunks/{chunk-SHT4VJWU.js → chunk-IWKSG2AR.js} +2 -2
- package/chunks/chunk-J37FGIOA.js +1623 -0
- package/chunks/chunk-J5MDQKJL.js +2230 -0
- package/chunks/{chunk-USE2VQ5P.js → chunk-JTQAQBTV.js} +21 -0
- package/chunks/{chunk-NCTLV2NB.js → chunk-KQJMQJPI.js} +1 -1
- package/chunks/{chunk-5FBA5XC2.js → chunk-KRIHGKNA.js} +1 -1
- package/chunks/chunk-LD2XBG6Z.js +102 -0
- package/chunks/{chunk-MAY32HXD.js → chunk-M6VTDSVR.js} +3 -1
- package/chunks/chunk-MRO43B25.js +30 -0
- package/chunks/{chunk-N4WOREMD.js → chunk-NVFMZBX2.js} +43 -3
- package/chunks/chunk-OHEGWO4L.js +264 -0
- package/chunks/{chunk-K6O2NBMF.js → chunk-OQ7NJIY7.js} +4604 -6397
- package/chunks/chunk-QQDPRDVW.js +25 -0
- package/chunks/{chunk-KXZ4TJB4.js → chunk-SEGYWKIH.js} +1 -1
- package/chunks/chunk-SKBPNJEW.js +45 -0
- package/chunks/{chunk-4AOCVI6J.js → chunk-SNGELLWX.js} +52 -6
- package/chunks/{chunk-3OCRHZA3.js → chunk-TD4OPI4T.js} +56742 -44104
- package/chunks/{chunk-DQ4QTG7E.js → chunk-VV4F63BD.js} +11 -11
- package/chunks/chunk-XBY7E2FX.js +605 -0
- package/chunks/{chunk-JKMBWLFB.js → chunk-YILFYI5W.js} +48 -26
- package/chunks/chunk-YOGAOMYB.js +159 -0
- package/chunks/{chunk-QWSRH265.js → chunk-Z2Z3GUXZ.js} +777 -776
- package/chunks/{chunk-SDHRQFOS.js → chunk-ZTZ4DDQE.js} +2 -2
- package/chunks/computer-use-W2TYQNEE.js +825 -0
- package/chunks/contextCommand-6FGX3A7J.js +52 -0
- package/chunks/{cron-create-3ZBBN7WB.js → cron-create-APL5LU6I.js} +3 -3
- package/chunks/{cron-delete-NAGKKIIG.js → cron-delete-4SBJSCN4.js} +3 -3
- package/chunks/{cron-list-PAGRXNAI.js → cron-list-2AMGOMVO.js} +3 -3
- package/chunks/{de-V4IE2OOZ.js → de-YGKK2BC4.js} +89 -5
- package/chunks/{devtools-TWVXEJQB.js → devtools-FM6GJPYG.js} +2 -1
- package/chunks/{dist-4L54HRX2.js → dist-4LXD6L6X.js} +24 -5
- package/chunks/dist-H6ONXVLG.js +94146 -0
- package/chunks/{dist-XKWIWPWQ.js → dist-KAZ3SEBX.js} +1083 -3856
- package/chunks/{dist-BXDUQ2QY.js → dist-PK7DFCAW.js} +1 -1
- package/chunks/{edit-NVO3FOAK.js → edit-ZCEZC264.js} +30 -22
- package/chunks/{en-HGJ2SPLM.js → en-DHGYHIHX.js} +127 -6
- package/chunks/{enter-worktree-UEBG4WFC.js → enter-worktree-BBHCFCHG.js} +30 -20
- package/chunks/enterPlanMode-3M6KTD3B.js +158 -0
- package/chunks/{exit-worktree-UZ3MAQZN.js → exit-worktree-73YPIEQO.js} +27 -19
- package/chunks/exitPlanMode-TYZM6BAE.js +703 -0
- package/chunks/{fr-CJULI7ZX.js → fr-JXBKPJKQ.js} +89 -5
- package/chunks/{geminiContentGenerator-3UZFXGNT.js → geminiContentGenerator-7N2V3VW2.js} +8 -6
- package/chunks/{getMachineId-bsd-JXOSIJV2.js → getMachineId-bsd-4CASPIU4.js} +4 -4
- package/chunks/{getMachineId-darwin-TE4QRR42.js → getMachineId-darwin-HPQPEMZR.js} +4 -4
- package/chunks/{getMachineId-linux-S3OL52XK.js → getMachineId-linux-AUARKYHL.js} +3 -3
- package/chunks/{getMachineId-unsupported-DWUSBAPX.js → getMachineId-unsupported-S32ZDA2T.js} +3 -3
- package/chunks/{getMachineId-win-AAC5P3AP.js → getMachineId-win-4EFLHYIJ.js} +4 -4
- package/chunks/{glob-KNHSFFFG.js → glob-5XBCPQ2A.js} +27 -19
- package/chunks/{grep-LACWDZW4.js → grep-VIUU3A7X.js} +30 -19
- package/chunks/{ja-L7CHRQEW.js → ja-TGPZSP2B.js} +89 -5
- package/chunks/{keychain-token-storage-335UOLJ6.js → keychain-token-storage-6IU6ORQN.js} +3 -3
- package/chunks/{ls-AGXQOKSG.js → ls-JRGYIGLY.js} +4 -4
- package/chunks/{lsp-UDMUHNPA.js → lsp-SHMKFOAC.js} +3 -3
- package/chunks/{monitor-ETKWPJEH.js → monitor-6R4LIJL5.js} +40 -25
- package/chunks/{multipart-parser-3QWGTLK3.js → multipart-parser-AJ4WASWR.js} +2 -2
- package/chunks/{notebook-edit-QJJLPNYT.js → notebook-edit-5E7ULDVQ.js} +28 -20
- package/chunks/{openaiContentGenerator-CNNN424U.js → openaiContentGenerator-ZVHFKM3O.js} +17 -14
- package/chunks/{pt-M6JULLEQ.js → pt-TIBG6BIO.js} +89 -5
- package/chunks/{qwenContentGenerator-BOLCGK3R.js → qwenContentGenerator-B2VTVSPJ.js} +31 -23
- package/chunks/{qwenOAuth2-EEJGROP7.js → qwenOAuth2-2KCKWDCF.js} +6 -4
- package/chunks/read-file-GIT7BCDR.js +27 -0
- package/chunks/ripGrep-MWKFVYMS.js +48 -0
- package/chunks/{ru-QILM4HBC.js → ru-JBCHCK4L.js} +89 -5
- package/chunks/scheduler-5VOOYGBH.js +308 -0
- package/chunks/send-message-4QNWQJF4.js +244 -0
- package/chunks/{serve-OLSI7WSR.js → serve-MN6HZBWN.js} +14262 -7414
- package/chunks/shell-NQZQGFM2.js +56 -0
- package/chunks/{skill-D6YRHTTI.js → skill-WCFW4644.js} +145 -119
- package/chunks/{src-TMOD5X6F.js → src-7XL4G4DC.js} +88 -46
- package/chunks/{src-4QH4FZ6I.js → src-IHA6DTUV.js} +452 -62
- package/chunks/{syntheticOutput-5PVFDDJ4.js → syntheticOutput-YTYS2ZMQ.js} +4 -4
- package/chunks/task-create-MPORPYN6.js +19 -0
- package/chunks/task-list-R2YDYPZT.js +151 -0
- package/chunks/{task-stop-AJKPSR6R.js → task-stop-SYWJYBCM.js} +3 -3
- package/chunks/task-update-E4NSLKMQ.js +408 -0
- package/chunks/team-create-7R7KA5IP.js +314 -0
- package/chunks/team-delete-25OIWUPN.js +116 -0
- package/chunks/{todoWrite-VLAUG4CA.js → todoWrite-4YHMIF4X.js} +16 -5
- package/chunks/{tool-search-MZGHUUKD.js → tool-search-YBRVZCLI.js} +29 -11
- package/chunks/{tts-notification-K3X7X7MN.js → tts-notification-7SOEMQK4.js} +5 -4
- package/chunks/{web-fetch-OILB464A.js → web-fetch-MFIRHIHI.js} +5 -5
- package/chunks/workflow-5RIKVCIE.js +960 -0
- package/chunks/{write-file-BIQAA57V.js → write-file-DMQTJZOM.js} +32 -24
- package/chunks/{zh-PWL2NKY3.js → zh-7H5OQC4I.js} +135 -11
- package/chunks/{zh-TW-S3YGWICZ.js → zh-TW-P4IDHD3M.js} +128 -11
- package/cli.js +45402 -20570
- package/examples/agent/agents/diary.md +86 -0
- package/examples/agent/qwen-extension.json +5 -0
- package/examples/commands/commands/fs/grep-code.md +3 -0
- package/examples/commands/qwen-extension.json +5 -0
- package/examples/context/QWEN.md +8 -0
- package/examples/context/qwen-extension.json +5 -0
- package/examples/mcp-server/example.ts +60 -0
- package/examples/mcp-server/package.json +18 -0
- package/examples/mcp-server/qwen-extension.json +12 -0
- package/examples/mcp-server/tsconfig.json +13 -0
- package/examples/skills/qwen-extension.json +5 -0
- package/examples/skills/skills/synonyms/SKILL.md +48 -0
- 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 +118 -5
- package/locales/de.js +117 -5
- package/locales/en.js +169 -7
- package/locales/fr.js +119 -5
- package/locales/ja.js +114 -5
- package/locales/pt.js +117 -5
- package/locales/ru.js +116 -5
- package/locales/zh-TW.js +161 -12
- package/locales/zh.js +169 -12
- package/package.json +4 -2
- package/scripts/postinstall.cjs +2 -1
- package/bundled/qc-helper/docs/features/checkpointing.md +0 -77
- package/chunks/agent-7ZN3CRHR.js +0 -48
- package/chunks/chunk-6PCB2DEF.js +0 -434
- package/chunks/chunk-EM6ETG2K.js +0 -60
- package/chunks/chunk-G7YTSRES.js +0 -150
- package/chunks/contextCommand-7IBASARL.js +0 -44
- package/chunks/exitPlanMode-PZAMWIRW.js +0 -227
- package/chunks/multipart-parser-IXGBIOIN.js +0 -384
- package/chunks/read-file-CCUEUFG2.js +0 -24
- package/chunks/ripGrep-TADOH2HK.js +0 -40
- package/chunks/send-message-YL44UZFC.js +0 -151
- package/chunks/shell-7KKKC5G7.js +0 -48
- package/chunks/src-IPWIHNMI.js +0 -1406
- package/chunks/undici-F6ZOXSS5.js +0 -8
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import {
|
|
4
4
|
StructuredToolError,
|
|
5
5
|
checkPriorRead
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KRIHGKNA.js";
|
|
7
7
|
import {
|
|
8
8
|
CommitAttributionService,
|
|
9
9
|
DEFAULT_DIFF_OPTIONS,
|
|
@@ -13,17 +13,21 @@ import {
|
|
|
13
13
|
getDiffStat,
|
|
14
14
|
needsUtf8Bom,
|
|
15
15
|
safeLiteralReplace
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TD4OPI4T.js";
|
|
17
17
|
import "./chunk-K5PGHDBN.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-XBY7E2FX.js";
|
|
19
|
+
import "./chunk-SKBPNJEW.js";
|
|
20
|
+
import "./chunk-NVFMZBX2.js";
|
|
19
21
|
import "./chunk-O4PICXES.js";
|
|
20
22
|
import "./chunk-TW522KN6.js";
|
|
23
|
+
import "./chunk-3DHXZ6EV.js";
|
|
24
|
+
import "./chunk-J5MDQKJL.js";
|
|
21
25
|
import "./chunk-MLZQVCF3.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-LD2XBG6Z.js";
|
|
27
|
+
import "./chunk-OHEGWO4L.js";
|
|
28
|
+
import "./chunk-SNGELLWX.js";
|
|
24
29
|
import "./chunk-77WXWU44.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-6PCB2DEF.js";
|
|
30
|
+
import "./chunk-A7B4ISQP.js";
|
|
27
31
|
import {
|
|
28
32
|
FileOperationEvent,
|
|
29
33
|
ReadFileTool,
|
|
@@ -31,36 +35,40 @@ import {
|
|
|
31
35
|
getLanguageFromFilePath,
|
|
32
36
|
getSpecificMimeType,
|
|
33
37
|
logFileOperation
|
|
34
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-OQ7NJIY7.js";
|
|
39
|
+
import "./chunk-3PJXIDKI.js";
|
|
35
40
|
import "./chunk-UWCTAVOD.js";
|
|
36
41
|
import "./chunk-OFEVLU4C.js";
|
|
37
42
|
import {
|
|
38
|
-
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-MYAKAFEC.js";
|
|
43
|
-
import "./chunk-66CXYE4B.js";
|
|
44
|
-
import "./chunk-NCTLV2NB.js";
|
|
43
|
+
isAnyAutoMemPath
|
|
44
|
+
} from "./chunk-3HTIVKZE.js";
|
|
45
|
+
import "./chunk-IDX6COTE.js";
|
|
46
|
+
import "./chunk-KQJMQJPI.js";
|
|
45
47
|
import {
|
|
46
48
|
BaseDeclarativeTool,
|
|
47
49
|
ToolDisplayNames,
|
|
48
50
|
ToolNames
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-D3RHSPAS.js";
|
|
52
|
+
import "./chunk-2Y5SYSD3.js";
|
|
53
|
+
import "./chunk-SEGYWKIH.js";
|
|
54
|
+
import "./chunk-64WXLC72.js";
|
|
55
|
+
import "./chunk-B7HXHOHU.js";
|
|
56
|
+
import "./chunk-EYENRK4D.js";
|
|
57
|
+
import "./chunk-M6VTDSVR.js";
|
|
58
|
+
import "./chunk-55ZMG67I.js";
|
|
59
|
+
import "./chunk-H6BD2ELD.js";
|
|
60
|
+
import "./chunk-5IFG2VC4.js";
|
|
52
61
|
import {
|
|
53
62
|
createDebugLogger,
|
|
54
63
|
isNodeError,
|
|
55
64
|
makeRelative,
|
|
56
65
|
shortenPath,
|
|
57
66
|
unescapePath
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-XKS5KBFJ.js";
|
|
67
|
+
} from "./chunk-HR7SV7AY.js";
|
|
60
68
|
import "./chunk-ZERZSAZL.js";
|
|
61
69
|
import "./chunk-QN5NZ3UQ.js";
|
|
62
70
|
import "./chunk-BR4QREVK.js";
|
|
63
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-Z2Z3GUXZ.js";
|
|
64
72
|
import {
|
|
65
73
|
init_esbuild_shims
|
|
66
74
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -568,7 +576,7 @@ var EditToolInvocation = class {
|
|
|
568
576
|
*/
|
|
569
577
|
async getDefaultPermission() {
|
|
570
578
|
const projectRoot = this.config.getProjectRoot();
|
|
571
|
-
if (
|
|
579
|
+
if (isAnyAutoMemPath(path.resolve(this.params.file_path), projectRoot)) {
|
|
572
580
|
return "allow";
|
|
573
581
|
}
|
|
574
582
|
return "ask";
|
|
@@ -22,6 +22,7 @@ var en_default = {
|
|
|
22
22
|
"@src/myFile.ts": "@src/myFile.ts",
|
|
23
23
|
"Shell mode": "Shell mode",
|
|
24
24
|
"YOLO mode": "YOLO mode",
|
|
25
|
+
"Auto mode": "Auto mode",
|
|
25
26
|
"plan mode": "plan mode",
|
|
26
27
|
"auto-accept edits": "auto-accept edits",
|
|
27
28
|
"Accepting edits": "Accepting edits",
|
|
@@ -97,7 +98,32 @@ var en_default = {
|
|
|
97
98
|
// ============================================================================
|
|
98
99
|
"Analyzes the project and creates a tailored QWEN.md file.": "Analyzes the project and creates a tailored QWEN.md file.",
|
|
99
100
|
"List available Qwen Code tools. Usage: /tools [desc]": "List available Qwen Code tools. Usage: /tools [desc]",
|
|
100
|
-
"
|
|
101
|
+
"Open the skills panel (browse, search, toggle, pick).": "Open the skills panel (browse, search, toggle, pick).",
|
|
102
|
+
"Move this session to a new working directory": "Move this session to a new working directory",
|
|
103
|
+
// SkillsManagerDialog (the panel `/skills` opens)
|
|
104
|
+
"Manage Skills": "Manage Skills",
|
|
105
|
+
"Skills configuration saved.": "Skills configuration saved.",
|
|
106
|
+
"Skills configuration saved, but refresh failed: {{error}}. Restart to ensure the new state is applied.": "Skills configuration saved, but refresh failed: {{error}}. Restart to ensure the new state is applied.",
|
|
107
|
+
"Workspace is untrusted; workspace settings are ignored by the merged config. Run /trust first to persist skills changes here, or edit ~/.qwen/settings.json directly to manage skills at user scope.": "Workspace is untrusted; workspace settings are ignored by the merged config. Run /trust first to persist skills changes here, or edit ~/.qwen/settings.json directly to manage skills at user scope.",
|
|
108
|
+
"SkillManager not available.": "SkillManager not available.",
|
|
109
|
+
"Loading skills\u2026": "Loading skills\u2026",
|
|
110
|
+
"Failed to load skills: {{error}}": "Failed to load skills: {{error}}",
|
|
111
|
+
"Failed to save skills configuration: {{error}}": "Failed to save skills configuration: {{error}}",
|
|
112
|
+
"All available skills are disabled. Edit ~/.qwen/settings.json or .qwen/settings.json (skills.disabled) to re-enable.": "All available skills are disabled. Edit ~/.qwen/settings.json or .qwen/settings.json (skills.disabled) to re-enable.",
|
|
113
|
+
"Press esc to close.": "Press esc to close.",
|
|
114
|
+
"{{count}} skills \xB7 ": "{{count}} skills \xB7 ",
|
|
115
|
+
"{{matched}} / {{total}} skills \xB7 ": "{{matched}} / {{total}} skills \xB7 ",
|
|
116
|
+
"Space toggle \xB7 Enter pick (fill input) \xB7 Esc save & exit \xB7 workspace scope": "Space toggle \xB7 Enter pick (fill input) \xB7 Esc save & exit \xB7 workspace scope",
|
|
117
|
+
"Search:": "Search:",
|
|
118
|
+
"type to filter\u2026": "type to filter\u2026",
|
|
119
|
+
"No skills are currently available.": "No skills are currently available.",
|
|
120
|
+
"All available skills are locked at a higher scope (see below).": "All available skills are locked at a higher scope (see below).",
|
|
121
|
+
"No skills match the search.": "No skills match the search.",
|
|
122
|
+
"Locked by higher-scope settings (cannot toggle here):": "Locked by higher-scope settings (cannot toggle here):",
|
|
123
|
+
"higher scope": "higher scope",
|
|
124
|
+
" {{name}} {{description}} [locked: {{scope}}]": " {{name}} {{description}} [locked: {{scope}}]",
|
|
125
|
+
"\u2191/\u2193 navigate \xB7 backspace edits search": "\u2191/\u2193 navigate \xB7 backspace edits search",
|
|
126
|
+
Bundled: "Bundled",
|
|
101
127
|
"Available Qwen Code CLI tools:": "Available Qwen Code CLI tools:",
|
|
102
128
|
"No tools available": "No tools available",
|
|
103
129
|
"View or change the approval mode for tool usage": "View or change the approval mode for tool usage",
|
|
@@ -147,10 +173,11 @@ var en_default = {
|
|
|
147
173
|
'Theme "{{themeName}}" not found in selected scope.': 'Theme "{{themeName}}" not found in selected scope.',
|
|
148
174
|
"Clear conversation history and free up context": "Clear conversation history and free up context",
|
|
149
175
|
"Compresses the context by replacing it with a summary.": "Compresses the context by replacing it with a summary.",
|
|
176
|
+
"Fast context compression without AI. Strips old tool outputs and thinking parts.": "Fast context compression without AI. Strips old tool outputs and thinking parts.",
|
|
150
177
|
"open full Qwen Code documentation in your browser": "open full Qwen Code documentation in your browser",
|
|
151
178
|
"Configuration not available.": "Configuration not available.",
|
|
152
179
|
"Connect an LLM provider": "Connect an LLM provider",
|
|
153
|
-
"Copy the last
|
|
180
|
+
"Copy the last AI response to clipboard (/copy N for Nth-latest)": "Copy the last AI response to clipboard (/copy N for Nth-latest)",
|
|
154
181
|
"Show working-tree change stats versus HEAD": "Show working-tree change stats versus HEAD",
|
|
155
182
|
"Could not determine current working directory.": "Could not determine current working directory.",
|
|
156
183
|
"Failed to compute git diff stats": "Failed to compute git diff stats",
|
|
@@ -384,11 +411,11 @@ var en_default = {
|
|
|
384
411
|
Text: "Text",
|
|
385
412
|
JSON: "JSON",
|
|
386
413
|
Plan: "Plan",
|
|
387
|
-
|
|
414
|
+
"Ask permissions": "Ask permissions",
|
|
388
415
|
"Auto Edit": "Auto Edit",
|
|
389
416
|
YOLO: "YOLO",
|
|
390
417
|
"toggle vim mode on/off": "toggle vim mode on/off",
|
|
391
|
-
"
|
|
418
|
+
"Show usage statistics dashboard.": "Show usage statistics dashboard.",
|
|
392
419
|
"Show model-specific usage statistics.": "Show model-specific usage statistics.",
|
|
393
420
|
"Show tool-specific usage statistics.": "Show tool-specific usage statistics.",
|
|
394
421
|
"exit the cli": "exit the cli",
|
|
@@ -455,6 +482,7 @@ var en_default = {
|
|
|
455
482
|
"Update all extensions.": "Update all extensions.",
|
|
456
483
|
"The name of the extension to update.": "The name of the extension to update.",
|
|
457
484
|
"Either an extension name or --all must be provided": "Either an extension name or --all must be provided",
|
|
485
|
+
"List installed extensions": "List installed extensions",
|
|
458
486
|
"Lists installed extensions.": "Lists installed extensions.",
|
|
459
487
|
"Path:": "Path:",
|
|
460
488
|
"Source:": "Source:",
|
|
@@ -580,6 +608,7 @@ var en_default = {
|
|
|
580
608
|
"After tool execution fails": "After tool execution fails",
|
|
581
609
|
"When notifications are sent": "When notifications are sent",
|
|
582
610
|
"When the user submits a prompt": "When the user submits a prompt",
|
|
611
|
+
"When a slash command expands into a prompt": "When a slash command expands into a prompt",
|
|
583
612
|
"When a new session is started": "When a new session is started",
|
|
584
613
|
"Right before Qwen Code concludes its response": "Right before Qwen Code concludes its response",
|
|
585
614
|
"When a subagent (Agent tool call) is started": "When a subagent (Agent tool call) is started",
|
|
@@ -595,6 +624,7 @@ var en_default = {
|
|
|
595
624
|
"Input to command is JSON with tool_name, tool_input, tool_use_id, error, error_type, is_interrupt, and is_timeout.": "Input to command is JSON with tool_name, tool_input, tool_use_id, error, error_type, is_interrupt, and is_timeout.",
|
|
596
625
|
"Input to command is JSON with notification message and type.": "Input to command is JSON with notification message and type.",
|
|
597
626
|
"Input to command is JSON with original user prompt text.": "Input to command is JSON with original user prompt text.",
|
|
627
|
+
"Input to command is JSON with command_name, command_args, and expanded prompt text.": "Input to command is JSON with command_name, command_args, and expanded prompt text.",
|
|
598
628
|
"Input to command is JSON with session start source.": "Input to command is JSON with session start source.",
|
|
599
629
|
"Input to command is JSON with session end reason.": "Input to command is JSON with session end reason.",
|
|
600
630
|
"Input to command is JSON with agent_id and agent_type.": "Input to command is JSON with agent_id and agent_type.",
|
|
@@ -611,6 +641,7 @@ var en_default = {
|
|
|
611
641
|
"show stderr to model immediately": "show stderr to model immediately",
|
|
612
642
|
"show stderr to user only but continue with tool call": "show stderr to user only but continue with tool call",
|
|
613
643
|
"block processing, erase original prompt, and show stderr to user only": "block processing, erase original prompt, and show stderr to user only",
|
|
644
|
+
"block expanded prompt submission and show stderr to user only": "block expanded prompt submission and show stderr to user only",
|
|
614
645
|
"stdout shown to Qwen": "stdout shown to Qwen",
|
|
615
646
|
"show stderr to user only (blocking errors ignored)": "show stderr to user only (blocking errors ignored)",
|
|
616
647
|
"command completes successfully": "command completes successfully",
|
|
@@ -644,6 +675,16 @@ var en_default = {
|
|
|
644
675
|
// ============================================================================
|
|
645
676
|
"Resume a previous session": "Resume a previous session",
|
|
646
677
|
"Fork the current conversation into a new session": "Fork the current conversation into a new session",
|
|
678
|
+
"Spawn a background agent that inherits the full conversation": "Spawn a background agent that inherits the full conversation",
|
|
679
|
+
"Please provide a directive. Usage: /fork <directive>": "Please provide a directive. Usage: /fork <directive>",
|
|
680
|
+
"Cannot fork while a response or tool call is in progress. Wait for it to finish or resolve the pending tool call.": "Cannot fork while a response or tool call is in progress. Wait for it to finish or resolve the pending tool call.",
|
|
681
|
+
"Cannot fork before the first conversation turn.": "Cannot fork before the first conversation turn.",
|
|
682
|
+
"The /fork command requires the fork feature gate. Set QWEN_CODE_ENABLE_FORK_SUBAGENT=1 to enable it.": "The /fork command requires the fork feature gate. Set QWEN_CODE_ENABLE_FORK_SUBAGENT=1 to enable it.",
|
|
683
|
+
"The agent tool is unavailable; cannot fork.": "The agent tool is unavailable; cannot fork.",
|
|
684
|
+
"Failed to launch fork: {{error}}": "Failed to launch fork: {{error}}",
|
|
685
|
+
"the background agent could not be started.": "the background agent could not be started.",
|
|
686
|
+
"User launched a background fork via /fork: {{directive}}": "User launched a background fork via /fork: {{directive}}",
|
|
687
|
+
"Forked into a background agent. It inherits this conversation and runs without blocking \u2014 track it in the background tasks panel; it reports back when done.": "Forked into a background agent. It inherits this conversation and runs without blocking \u2014 track it in the background tasks panel; it reports back when done.",
|
|
647
688
|
"Cannot branch while a response or tool call is in progress. Wait for it to finish or resolve the pending tool call.": "Cannot branch while a response or tool call is in progress. Wait for it to finish or resolve the pending tool call.",
|
|
648
689
|
"No conversation to branch.": "No conversation to branch.",
|
|
649
690
|
"Restore a tool call. This will reset the conversation and file history to the state it was in when the tool call was suggested": "Restore a tool call. This will reset the conversation and file history to the state it was in when the tool call was suggested",
|
|
@@ -676,10 +717,10 @@ var en_default = {
|
|
|
676
717
|
// Commands - Approval Mode
|
|
677
718
|
// ============================================================================
|
|
678
719
|
"Tool Approval Mode": "Tool Approval Mode",
|
|
679
|
-
"{{mode}} mode": "{{mode}} mode",
|
|
680
720
|
"Analyze only, do not modify files or execute commands": "Analyze only, do not modify files or execute commands",
|
|
681
721
|
"Require approval for file edits or shell commands": "Require approval for file edits or shell commands",
|
|
682
722
|
"Automatically approve file edits": "Automatically approve file edits",
|
|
723
|
+
"Use classifier to automatically approve safe tool calls": "Use classifier to automatically approve safe tool calls",
|
|
683
724
|
"Automatically approve all tools": "Automatically approve all tools",
|
|
684
725
|
"Workspace approval mode exists and takes priority. User-level change will have no effect.": "Workspace approval mode exists and takes priority. User-level change will have no effect.",
|
|
685
726
|
"Apply To": "Apply To",
|
|
@@ -687,6 +728,7 @@ var en_default = {
|
|
|
687
728
|
"Open auto-memory folder": "Open auto-memory folder",
|
|
688
729
|
"Auto-memory: {{status}}": "Auto-memory: {{status}}",
|
|
689
730
|
"Auto-dream: {{status}} \xB7 {{lastDream}} \xB7 /dream to run": "Auto-dream: {{status}} \xB7 {{lastDream}} \xB7 /dream to run",
|
|
731
|
+
"Auto-skill: {{status}}": "Auto-skill: {{status}}",
|
|
690
732
|
never: "never",
|
|
691
733
|
on: "on",
|
|
692
734
|
off: "off",
|
|
@@ -1458,6 +1500,13 @@ var en_default = {
|
|
|
1458
1500
|
// === Core: added from PR #3328 ===
|
|
1459
1501
|
"Open the memory manager.": "Open the memory manager.",
|
|
1460
1502
|
"Show current process memory diagnostics": "Show current process memory diagnostics",
|
|
1503
|
+
"Record a CPU profile for Chrome DevTools analysis": "Record a CPU profile for Chrome DevTools analysis",
|
|
1504
|
+
"Roll back a standalone update to the previous version": "Roll back a standalone update to the previous version",
|
|
1505
|
+
"Rollback is not available in ACP mode.": "Rollback is not available in ACP mode.",
|
|
1506
|
+
"Rollback is only available for standalone installations.": "Rollback is only available for standalone installations.",
|
|
1507
|
+
"Rollback successful. Restart your terminal to use the previous version.": "Rollback successful. Restart your terminal to use the previous version.",
|
|
1508
|
+
"Rollback failed:": "Rollback failed:",
|
|
1509
|
+
"Rollback on Windows requires manual intervention. Rename qwen-code.old to qwen-code in your installation directory.": "Rollback on Windows requires manual intervention. Rename qwen-code.old to qwen-code in your installation directory.",
|
|
1461
1510
|
"Save a durable memory to the memory system.": "Save a durable memory to the memory system.",
|
|
1462
1511
|
"Ask a quick side question without affecting the main conversation": "Ask a quick side question without affecting the main conversation",
|
|
1463
1512
|
"Manage Arena sessions": "Manage Arena sessions",
|
|
@@ -1487,7 +1536,79 @@ var en_default = {
|
|
|
1487
1536
|
"Arena panes are running in tmux. Attach with: `{{command}}`": "Arena panes are running in tmux. Attach with: `{{command}}`",
|
|
1488
1537
|
"[{{label}}] failed: {{error}}": "[{{label}}] failed: {{error}}",
|
|
1489
1538
|
"Loading suggestions...": "Loading suggestions...",
|
|
1490
|
-
"Show per-item context usage breakdown.": "Show per-item context usage breakdown."
|
|
1539
|
+
"Show per-item context usage breakdown.": "Show per-item context usage breakdown.",
|
|
1540
|
+
"No compression needed.": "No compression needed.",
|
|
1541
|
+
// ============================================================================
|
|
1542
|
+
// Stats
|
|
1543
|
+
// ============================================================================
|
|
1544
|
+
// statsCommand non-interactive output
|
|
1545
|
+
"Session duration: {{duration}}": "Session duration: {{duration}}",
|
|
1546
|
+
"Prompts: {{count}}": "Prompts: {{count}}",
|
|
1547
|
+
"API requests: {{count}}": "API requests: {{count}}",
|
|
1548
|
+
"Tokens \u2014 prompt: {{prompt}}, output: {{output}}": "Tokens \u2014 prompt: {{prompt}}, output: {{output}}",
|
|
1549
|
+
"Tool calls: {{total}} ({{success}} ok, {{fail}} fail)": "Tool calls: {{total}} ({{success}} ok, {{fail}} fail)",
|
|
1550
|
+
"Files: +{{added}} / -{{removed}} lines": "Files: +{{added}} / -{{removed}} lines",
|
|
1551
|
+
prompt: "prompt",
|
|
1552
|
+
output: "output",
|
|
1553
|
+
cached: "cached",
|
|
1554
|
+
"Estimated cost: ${{cost}}": "Estimated cost: ${{cost}}",
|
|
1555
|
+
"No model usage data yet.": "No model usage data yet.",
|
|
1556
|
+
"No tool usage data yet.": "No tool usage data yet.",
|
|
1557
|
+
// StatsDialog
|
|
1558
|
+
Models: "Models",
|
|
1559
|
+
"All time": "All time",
|
|
1560
|
+
"Last 7 days": "Last 7 days",
|
|
1561
|
+
"Last 30 days": "Last 30 days",
|
|
1562
|
+
"N/A": "N/A",
|
|
1563
|
+
Sessions: "Sessions",
|
|
1564
|
+
days: "days",
|
|
1565
|
+
Input: "Input",
|
|
1566
|
+
"Tool calls": "Tool calls",
|
|
1567
|
+
"Code changes": "Code changes",
|
|
1568
|
+
Projects: "Projects",
|
|
1569
|
+
Name: "Name",
|
|
1570
|
+
Duration: "Duration",
|
|
1571
|
+
"Activity Heatmap": "Activity Heatmap",
|
|
1572
|
+
"Loading stats...": "Loading stats...",
|
|
1573
|
+
"\u2191 tabs \xB7 r to cycle dates \xB7 esc to close": "\u2191 tabs \xB7 r to cycle dates \xB7 esc to close",
|
|
1574
|
+
Cost: "Cost",
|
|
1575
|
+
Less: "Less",
|
|
1576
|
+
More: "More",
|
|
1577
|
+
"(no data)": "(no data)",
|
|
1578
|
+
d: "d",
|
|
1579
|
+
h: "h",
|
|
1580
|
+
m: "m",
|
|
1581
|
+
// Stats Dashboard — keyboard hints (not translated)
|
|
1582
|
+
"tab \xB7 esc": "tab \xB7 esc",
|
|
1583
|
+
"tab \xB7 r dates \xB7 \u2190\u2192 month \xB7 esc": "tab \xB7 r dates \xB7 \u2190\u2192 month \xB7 esc",
|
|
1584
|
+
"tab \xB7 r dates \xB7 esc": "tab \xB7 r dates \xB7 esc",
|
|
1585
|
+
// Stats Dashboard — labels
|
|
1586
|
+
Session: "Session",
|
|
1587
|
+
Activity: "Activity",
|
|
1588
|
+
Efficiency: "Efficiency",
|
|
1589
|
+
Success: "Success",
|
|
1590
|
+
Today: "Today",
|
|
1591
|
+
"Cache Hit Rate": "Cache Hit Rate",
|
|
1592
|
+
"Tool Success": "Tool Success",
|
|
1593
|
+
"Tool Leaderboard": "Tool Leaderboard",
|
|
1594
|
+
Time: "Time",
|
|
1595
|
+
Cache: "Cache",
|
|
1596
|
+
Latency: "Latency",
|
|
1597
|
+
"Code Impact": "Code Impact",
|
|
1598
|
+
"Failed to load stats. Press r to retry.": "Failed to load stats. Press r to retry.",
|
|
1599
|
+
net: "net",
|
|
1600
|
+
streak: "streak",
|
|
1601
|
+
best: "best",
|
|
1602
|
+
"Token Trend": "Token Trend",
|
|
1603
|
+
"In/Out": "In/Out",
|
|
1604
|
+
"API Requests": "API Requests",
|
|
1605
|
+
"Tool Calls": "Tool Calls",
|
|
1606
|
+
"Success rate": "Success rate",
|
|
1607
|
+
"Code Changes": "Code Changes",
|
|
1608
|
+
Tool: "Tool",
|
|
1609
|
+
reqs: "reqs",
|
|
1610
|
+
in: "in",
|
|
1611
|
+
out: "out"
|
|
1491
1612
|
};
|
|
1492
1613
|
export {
|
|
1493
1614
|
en_default as default
|
|
@@ -4,42 +4,50 @@ import {
|
|
|
4
4
|
GitWorktreeService,
|
|
5
5
|
writeWorktreeSession,
|
|
6
6
|
writeWorktreeSessionMarker
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TD4OPI4T.js";
|
|
8
8
|
import "./chunk-K5PGHDBN.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-XBY7E2FX.js";
|
|
10
|
+
import "./chunk-SKBPNJEW.js";
|
|
11
|
+
import "./chunk-NVFMZBX2.js";
|
|
10
12
|
import "./chunk-O4PICXES.js";
|
|
11
13
|
import "./chunk-TW522KN6.js";
|
|
14
|
+
import "./chunk-3DHXZ6EV.js";
|
|
15
|
+
import "./chunk-J5MDQKJL.js";
|
|
12
16
|
import "./chunk-MLZQVCF3.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-LD2XBG6Z.js";
|
|
18
|
+
import "./chunk-OHEGWO4L.js";
|
|
19
|
+
import "./chunk-SNGELLWX.js";
|
|
15
20
|
import "./chunk-77WXWU44.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-A7B4ISQP.js";
|
|
22
|
+
import "./chunk-OQ7NJIY7.js";
|
|
23
|
+
import "./chunk-3PJXIDKI.js";
|
|
19
24
|
import "./chunk-UWCTAVOD.js";
|
|
20
25
|
import "./chunk-OFEVLU4C.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-MYAKAFEC.js";
|
|
25
|
-
import "./chunk-66CXYE4B.js";
|
|
26
|
-
import "./chunk-NCTLV2NB.js";
|
|
26
|
+
import "./chunk-3HTIVKZE.js";
|
|
27
|
+
import "./chunk-IDX6COTE.js";
|
|
28
|
+
import "./chunk-KQJMQJPI.js";
|
|
27
29
|
import {
|
|
28
30
|
BaseDeclarativeTool,
|
|
29
31
|
BaseToolInvocation,
|
|
30
32
|
ToolDisplayNames,
|
|
31
33
|
ToolNames
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-D3RHSPAS.js";
|
|
35
|
+
import "./chunk-2Y5SYSD3.js";
|
|
36
|
+
import "./chunk-SEGYWKIH.js";
|
|
37
|
+
import "./chunk-64WXLC72.js";
|
|
38
|
+
import "./chunk-B7HXHOHU.js";
|
|
39
|
+
import "./chunk-EYENRK4D.js";
|
|
40
|
+
import "./chunk-M6VTDSVR.js";
|
|
41
|
+
import "./chunk-55ZMG67I.js";
|
|
42
|
+
import "./chunk-H6BD2ELD.js";
|
|
43
|
+
import "./chunk-5IFG2VC4.js";
|
|
35
44
|
import {
|
|
36
45
|
createDebugLogger
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-XKS5KBFJ.js";
|
|
46
|
+
} from "./chunk-HR7SV7AY.js";
|
|
39
47
|
import "./chunk-ZERZSAZL.js";
|
|
40
48
|
import "./chunk-QN5NZ3UQ.js";
|
|
41
49
|
import "./chunk-BR4QREVK.js";
|
|
42
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-Z2Z3GUXZ.js";
|
|
43
51
|
import {
|
|
44
52
|
init_esbuild_shims
|
|
45
53
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -123,7 +131,9 @@ var EnterWorktreeInvocation = class extends BaseToolInvocation {
|
|
|
123
131
|
`enter_worktree: getCurrentCommitHash failed at ${projectRoot}: ${error}`
|
|
124
132
|
);
|
|
125
133
|
}
|
|
126
|
-
const result = await service.createUserWorktree(slug, baseBranch
|
|
134
|
+
const result = await service.createUserWorktree(slug, baseBranch, {
|
|
135
|
+
symlinkDirectories: this.config.getWorktreeSymlinkDirectories()
|
|
136
|
+
});
|
|
127
137
|
if (!result.success || !result.worktree) {
|
|
128
138
|
const reason = result.error ?? "Failed to create worktree.";
|
|
129
139
|
debugLogger.warn(`enter_worktree: createUserWorktree failed: ${reason}`);
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import "./chunk-TD4OPI4T.js";
|
|
4
|
+
import "./chunk-K5PGHDBN.js";
|
|
5
|
+
import "./chunk-XBY7E2FX.js";
|
|
6
|
+
import "./chunk-SKBPNJEW.js";
|
|
7
|
+
import "./chunk-NVFMZBX2.js";
|
|
8
|
+
import "./chunk-O4PICXES.js";
|
|
9
|
+
import "./chunk-TW522KN6.js";
|
|
10
|
+
import "./chunk-3DHXZ6EV.js";
|
|
11
|
+
import "./chunk-J5MDQKJL.js";
|
|
12
|
+
import "./chunk-MLZQVCF3.js";
|
|
13
|
+
import "./chunk-LD2XBG6Z.js";
|
|
14
|
+
import "./chunk-OHEGWO4L.js";
|
|
15
|
+
import "./chunk-SNGELLWX.js";
|
|
16
|
+
import "./chunk-77WXWU44.js";
|
|
17
|
+
import "./chunk-A7B4ISQP.js";
|
|
18
|
+
import "./chunk-OQ7NJIY7.js";
|
|
19
|
+
import "./chunk-3PJXIDKI.js";
|
|
20
|
+
import "./chunk-UWCTAVOD.js";
|
|
21
|
+
import "./chunk-OFEVLU4C.js";
|
|
22
|
+
import "./chunk-3HTIVKZE.js";
|
|
23
|
+
import "./chunk-IDX6COTE.js";
|
|
24
|
+
import "./chunk-KQJMQJPI.js";
|
|
25
|
+
import {
|
|
26
|
+
BaseDeclarativeTool,
|
|
27
|
+
BaseToolInvocation,
|
|
28
|
+
ToolDisplayNames,
|
|
29
|
+
ToolNames
|
|
30
|
+
} from "./chunk-D3RHSPAS.js";
|
|
31
|
+
import "./chunk-2Y5SYSD3.js";
|
|
32
|
+
import "./chunk-SEGYWKIH.js";
|
|
33
|
+
import "./chunk-64WXLC72.js";
|
|
34
|
+
import "./chunk-B7HXHOHU.js";
|
|
35
|
+
import "./chunk-EYENRK4D.js";
|
|
36
|
+
import "./chunk-M6VTDSVR.js";
|
|
37
|
+
import "./chunk-55ZMG67I.js";
|
|
38
|
+
import "./chunk-H6BD2ELD.js";
|
|
39
|
+
import "./chunk-5IFG2VC4.js";
|
|
40
|
+
import {
|
|
41
|
+
createDebugLogger
|
|
42
|
+
} from "./chunk-HR7SV7AY.js";
|
|
43
|
+
import "./chunk-ZERZSAZL.js";
|
|
44
|
+
import "./chunk-QN5NZ3UQ.js";
|
|
45
|
+
import "./chunk-BR4QREVK.js";
|
|
46
|
+
import "./chunk-Z2Z3GUXZ.js";
|
|
47
|
+
import {
|
|
48
|
+
init_esbuild_shims
|
|
49
|
+
} from "./chunk-A4BMJM77.js";
|
|
50
|
+
import {
|
|
51
|
+
__name
|
|
52
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
53
|
+
|
|
54
|
+
// packages/core/src/tools/enterPlanMode.ts
|
|
55
|
+
init_esbuild_shims();
|
|
56
|
+
var debugLogger = createDebugLogger("ENTER_PLAN_MODE");
|
|
57
|
+
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.
|
|
58
|
+
|
|
59
|
+
## When to Use This Tool
|
|
60
|
+
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.
|
|
61
|
+
|
|
62
|
+
## When NOT to Use This Tool
|
|
63
|
+
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.
|
|
64
|
+
|
|
65
|
+
## Important
|
|
66
|
+
Do NOT use this tool if the user has explicitly asked you not to use plan mode.`;
|
|
67
|
+
var enterPlanModeToolSchemaData = {
|
|
68
|
+
name: "enter_plan_mode",
|
|
69
|
+
description: enterPlanModeToolDescription,
|
|
70
|
+
parametersJsonSchema: {
|
|
71
|
+
type: "object",
|
|
72
|
+
properties: {},
|
|
73
|
+
additionalProperties: false,
|
|
74
|
+
$schema: "http://json-schema.org/draft-07/schema#"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var EnterPlanModeToolInvocation = class extends BaseToolInvocation {
|
|
78
|
+
constructor(config, params) {
|
|
79
|
+
super(params);
|
|
80
|
+
this.config = config;
|
|
81
|
+
}
|
|
82
|
+
static {
|
|
83
|
+
__name(this, "EnterPlanModeToolInvocation");
|
|
84
|
+
}
|
|
85
|
+
getDescription() {
|
|
86
|
+
return "Enter plan mode";
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Entering plan mode lowers privileges, so it is always allowed without a
|
|
90
|
+
* confirmation prompt.
|
|
91
|
+
*/
|
|
92
|
+
async getDefaultPermission() {
|
|
93
|
+
return "allow";
|
|
94
|
+
}
|
|
95
|
+
async execute(_signal) {
|
|
96
|
+
const isAcpMode = this.config.getExperimentalZedIntegration?.() || this.config.getInputFormat?.() === "stream-json" /* STREAM_JSON */;
|
|
97
|
+
if (!this.config.isInteractive() && !isAcpMode) {
|
|
98
|
+
return {
|
|
99
|
+
llmContent: "Cannot enter plan mode in non-interactive mode without ACP support. The gate exit paths require user interaction.",
|
|
100
|
+
returnDisplay: "Plan mode unavailable in non-interactive mode."
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
try {
|
|
104
|
+
if (this.config.getApprovalMode() !== "plan" /* PLAN */) {
|
|
105
|
+
this.config.setApprovalMode("plan" /* PLAN */);
|
|
106
|
+
}
|
|
107
|
+
} catch (error) {
|
|
108
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
109
|
+
debugLogger.error(
|
|
110
|
+
`[EnterPlanModeTool] Failed to set approval mode to plan: ${errorMessage}`
|
|
111
|
+
);
|
|
112
|
+
return {
|
|
113
|
+
llmContent: `Failed to enter plan mode: ${errorMessage}`,
|
|
114
|
+
returnDisplay: `Error entering plan mode: ${errorMessage}`
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
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.",
|
|
119
|
+
returnDisplay: "Entered plan mode."
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
var EnterPlanModeTool = class _EnterPlanModeTool extends BaseDeclarativeTool {
|
|
124
|
+
constructor(config) {
|
|
125
|
+
super(
|
|
126
|
+
_EnterPlanModeTool.Name,
|
|
127
|
+
ToolDisplayNames.ENTER_PLAN_MODE,
|
|
128
|
+
enterPlanModeToolDescription,
|
|
129
|
+
"think" /* Think */,
|
|
130
|
+
enterPlanModeToolSchemaData.parametersJsonSchema,
|
|
131
|
+
true,
|
|
132
|
+
// isOutputMarkdown
|
|
133
|
+
false,
|
|
134
|
+
// canUpdateOutput
|
|
135
|
+
false,
|
|
136
|
+
// shouldDefer — always visible so the model can enter plan mode
|
|
137
|
+
false,
|
|
138
|
+
// alwaysLoad
|
|
139
|
+
"plan mode enter start"
|
|
140
|
+
);
|
|
141
|
+
this.config = config;
|
|
142
|
+
}
|
|
143
|
+
static {
|
|
144
|
+
__name(this, "EnterPlanModeTool");
|
|
145
|
+
}
|
|
146
|
+
static Name = ToolNames.ENTER_PLAN_MODE;
|
|
147
|
+
createInvocation(params) {
|
|
148
|
+
return new EnterPlanModeToolInvocation(this.config, params);
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
export {
|
|
152
|
+
EnterPlanModeTool
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* @license
|
|
156
|
+
* Copyright 2025 Qwen
|
|
157
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
158
|
+
*/
|
|
@@ -6,43 +6,51 @@ import {
|
|
|
6
6
|
readWorktreeSession,
|
|
7
7
|
readWorktreeSessionMarker,
|
|
8
8
|
worktreeBranchForSlug
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TD4OPI4T.js";
|
|
10
10
|
import "./chunk-K5PGHDBN.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-XBY7E2FX.js";
|
|
12
|
+
import "./chunk-SKBPNJEW.js";
|
|
13
|
+
import "./chunk-NVFMZBX2.js";
|
|
12
14
|
import "./chunk-O4PICXES.js";
|
|
13
15
|
import "./chunk-TW522KN6.js";
|
|
16
|
+
import "./chunk-3DHXZ6EV.js";
|
|
17
|
+
import "./chunk-J5MDQKJL.js";
|
|
14
18
|
import "./chunk-MLZQVCF3.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-LD2XBG6Z.js";
|
|
20
|
+
import "./chunk-OHEGWO4L.js";
|
|
21
|
+
import "./chunk-SNGELLWX.js";
|
|
17
22
|
import "./chunk-77WXWU44.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-A7B4ISQP.js";
|
|
24
|
+
import "./chunk-OQ7NJIY7.js";
|
|
25
|
+
import "./chunk-3PJXIDKI.js";
|
|
21
26
|
import "./chunk-UWCTAVOD.js";
|
|
22
27
|
import "./chunk-OFEVLU4C.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-MYAKAFEC.js";
|
|
27
|
-
import "./chunk-66CXYE4B.js";
|
|
28
|
-
import "./chunk-NCTLV2NB.js";
|
|
28
|
+
import "./chunk-3HTIVKZE.js";
|
|
29
|
+
import "./chunk-IDX6COTE.js";
|
|
30
|
+
import "./chunk-KQJMQJPI.js";
|
|
29
31
|
import {
|
|
30
32
|
BaseDeclarativeTool,
|
|
31
33
|
BaseToolInvocation,
|
|
32
34
|
ToolDisplayNames,
|
|
33
35
|
ToolNames
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-D3RHSPAS.js";
|
|
37
|
+
import "./chunk-2Y5SYSD3.js";
|
|
38
|
+
import "./chunk-SEGYWKIH.js";
|
|
39
|
+
import "./chunk-64WXLC72.js";
|
|
40
|
+
import "./chunk-B7HXHOHU.js";
|
|
41
|
+
import "./chunk-EYENRK4D.js";
|
|
42
|
+
import "./chunk-M6VTDSVR.js";
|
|
43
|
+
import "./chunk-55ZMG67I.js";
|
|
44
|
+
import "./chunk-H6BD2ELD.js";
|
|
45
|
+
import "./chunk-5IFG2VC4.js";
|
|
37
46
|
import {
|
|
38
47
|
createDebugLogger,
|
|
39
48
|
isNodeError
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-XKS5KBFJ.js";
|
|
49
|
+
} from "./chunk-HR7SV7AY.js";
|
|
42
50
|
import "./chunk-ZERZSAZL.js";
|
|
43
51
|
import "./chunk-QN5NZ3UQ.js";
|
|
44
52
|
import "./chunk-BR4QREVK.js";
|
|
45
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-Z2Z3GUXZ.js";
|
|
46
54
|
import {
|
|
47
55
|
init_esbuild_shims
|
|
48
56
|
} from "./chunk-A4BMJM77.js";
|