@qwen-code/qwen-code 0.17.0 → 0.17.1-nightly.20260604.16dd99fa3
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/_meta.ts +0 -3
- package/bundled/qc-helper/docs/configuration/settings.md +13 -12
- package/bundled/qc-helper/docs/configuration/themes.md +39 -0
- package/bundled/qc-helper/docs/features/approval-mode.md +26 -22
- package/bundled/qc-helper/docs/features/commands.md +68 -12
- package/bundled/qc-helper/docs/features/status-line.md +168 -32
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +16 -0
- package/bundled/simplify/SKILL.md +123 -0
- package/chunks/{agent-KVXFGIOU.js → agent-GNHB6UIW.js} +14 -13
- package/chunks/{anthropicContentGenerator-L4HWAOIV.js → anthropicContentGenerator-M45RXZVS.js} +48 -5
- package/chunks/{askUserQuestion-DC6OWQIL.js → askUserQuestion-TGRD7FNQ.js} +1 -1
- package/chunks/{ca-NMZFEGAU.js → ca-6RSCDYUS.js} +2 -1
- package/chunks/{chunk-J5VCSWPA.js → chunk-3PJXIDKI.js} +1153 -103
- package/chunks/{chunk-EMVEDSVZ.js → chunk-6O244QKR.js} +43 -3
- package/chunks/chunk-7TQVELRB.js +10412 -0
- package/chunks/{chunk-HCSJIOLR.js → chunk-BNESGOSJ.js} +7450 -3516
- package/chunks/{chunk-7YJIR2FX.js → chunk-G4K6P5KN.js} +8 -15
- package/chunks/chunk-HX3JRTWL.js +393 -0
- package/chunks/{chunk-V7LMZR76.js → chunk-JBSYXHJF.js} +1 -1
- package/chunks/{chunk-R2B65CAN.js → chunk-JKUAX6UT.js} +0 -1
- package/chunks/{chunk-7EHPK6TK.js → chunk-JR346RJ5.js} +4007 -2390
- package/chunks/{chunk-JI7FDD65.js → chunk-K3VUDSWM.js} +9 -6
- package/chunks/chunk-MRO43B25.js +30 -0
- package/chunks/{chunk-4O2TWJK4.js → chunk-NDZEP7SA.js} +183 -40
- package/chunks/{chunk-7NNBQRV7.js → chunk-NJY4F5NM.js} +4 -4
- package/chunks/{chunk-ODPVJ6JJ.js → chunk-OJFMTECH.js} +6 -1
- package/chunks/{chunk-U2K6HDUJ.js → chunk-QVJ33ZBG.js} +23 -13
- package/chunks/{chunk-HAQCNXSG.js → chunk-RQW7WUJR.js} +15 -0
- package/chunks/{chunk-UQRYJQBE.js → chunk-SOGUPKP6.js} +1 -1
- package/chunks/{chunk-6NUSWV4M.js → chunk-TDZCEIK6.js} +2 -0
- package/chunks/{chunk-QEXSIXLX.js → chunk-XK4IGU5E.js} +10 -10
- package/chunks/{chunk-MEN6IEKX.js → chunk-YVGIQ2CS.js} +456 -1225
- package/chunks/{computer-use-2J5ZXEER.js → computer-use-NAHQPV2L.js} +24 -6
- package/chunks/{contextCommand-52NTEMCT.js → contextCommand-VKNIA257.js} +16 -15
- package/chunks/{cron-create-FXRORK2U.js → cron-create-V3UK2SJN.js} +1 -1
- package/chunks/{cron-delete-D24IN6CA.js → cron-delete-MANALPCP.js} +1 -1
- package/chunks/{cron-list-SMOX26SL.js → cron-list-UDIYK3B3.js} +1 -1
- package/chunks/{de-OIMT3OMI.js → de-APURNJ3I.js} +2 -1
- package/chunks/{dist-GRQVFL3G.js → dist-ATAKC63R.js} +1 -1
- package/chunks/{edit-RLFUTT5F.js → edit-YP22XCVA.js} +14 -13
- package/chunks/{en-2IFZ5THF.js → en-FYO57HJW.js} +3 -1
- package/chunks/{enter-worktree-CYRAPQKJ.js → enter-worktree-BD7UFMUZ.js} +14 -13
- package/chunks/{exit-worktree-WQZM72QD.js → exit-worktree-AVWBCQWY.js} +14 -13
- package/chunks/{exitPlanMode-STFEBQZE.js → exitPlanMode-2D6EGF76.js} +14 -13
- package/chunks/{fr-PVELSHTV.js → fr-32YHQZIS.js} +2 -1
- package/chunks/{geminiContentGenerator-DIV32SKO.js → geminiContentGenerator-YFVW6DXY.js} +4 -3
- package/chunks/{glob-N3XO4RVI.js → glob-NZWP66L5.js} +14 -13
- package/chunks/{grep-AK5MP7P3.js → grep-RFEZDGI4.js} +14 -13
- package/chunks/{ja-P5TK5GNN.js → ja-PEUXN4XT.js} +2 -1
- package/chunks/{ls-7FYQHPWF.js → ls-T4SVZWR6.js} +1 -1
- package/chunks/{lsp-DKG34USR.js → lsp-U4ZQLNIS.js} +1 -1
- package/chunks/{monitor-IVBWJZEZ.js → monitor-OHKCQLFQ.js} +17 -14
- package/chunks/{multipart-parser-IXGBIOIN.js → multipart-parser-AJ4WASWR.js} +2 -2
- package/chunks/{notebook-edit-PM46AXFS.js → notebook-edit-AFRICVUX.js} +14 -13
- package/chunks/{openaiContentGenerator-4QXCH7L2.js → openaiContentGenerator-47KB64GP.js} +11 -10
- package/chunks/{pt-A5GHG66T.js → pt-2INS7YVC.js} +2 -1
- package/chunks/{qwenContentGenerator-BLXQIIMX.js → qwenContentGenerator-7BC2OW3T.js} +16 -15
- package/chunks/{qwenOAuth2-BAN2EGSH.js → qwenOAuth2-LKXG7XVO.js} +2 -1
- package/chunks/{read-file-IEQAS3EZ.js → read-file-MXUW3RUF.js} +8 -7
- package/chunks/{ripGrep-HQO7IE4C.js → ripGrep-AHBINNF3.js} +14 -13
- package/chunks/{ru-66XKB4QX.js → ru-6CQ5HNHB.js} +2 -1
- package/chunks/scheduler-KBRJ3LFC.js +306 -0
- package/chunks/{send-message-ZL7CDM7K.js → send-message-GFYV7WLL.js} +1 -1
- package/chunks/{serve-CYRAK4UM.js → serve-PVFP6HD7.js} +43 -30
- package/chunks/{shell-UZBGNO2Q.js → shell-JOXQ5PPL.js} +14 -13
- package/chunks/{skill-JVC34QYN.js → skill-73RYGDJQ.js} +9 -8
- package/chunks/{src-TMOD5X6F.js → src-7XL4G4DC.js} +88 -46
- package/chunks/{src-FOODLH7B.js → src-DR3Y7J6D.js} +41 -15
- package/chunks/{syntheticOutput-U3YJ3GOO.js → syntheticOutput-DM43O6TY.js} +2 -2
- package/chunks/{task-stop-NPUI3YBA.js → task-stop-WKP5OB3V.js} +1 -1
- package/chunks/{todoWrite-Y6F7YEIM.js → todoWrite-GHL6DCLP.js} +14 -3
- package/chunks/{tool-search-P7PRPOW3.js → tool-search-DRMR34WX.js} +8 -7
- package/chunks/{web-fetch-XWEK4TFX.js → web-fetch-SZIV74ZX.js} +2 -2
- package/chunks/{write-file-SIIEUON5.js → write-file-B45ZAKUJ.js} +16 -15
- package/chunks/{zh-TW-3ND6DQRX.js → zh-TW-SSL3ATVZ.js} +3 -1
- package/chunks/{zh-OB5P2ZDO.js → zh-ZHZCMIRG.js} +3 -1
- package/cli.js +38665 -53791
- package/locales/ca.js +2 -1
- package/locales/de.js +2 -1
- package/locales/en.js +4 -1
- package/locales/fr.js +2 -1
- package/locales/ja.js +2 -1
- package/locales/pt.js +2 -1
- package/locales/ru.js +2 -1
- package/locales/zh-TW.js +4 -1
- package/locales/zh.js +4 -1
- package/package.json +2 -2
- package/chunks/chunk-EM6ETG2K.js +0 -60
- package/chunks/chunk-TI4GXJKO.js +0 -4277
- package/chunks/multipart-parser-3QWGTLK3.js +0 -384
- package/chunks/src-IPWIHNMI.js +0 -1406
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-OFEVLU4C.js";
|
|
6
6
|
import {
|
|
7
7
|
SchemaValidator
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JKUAX6UT.js";
|
|
9
9
|
import {
|
|
10
10
|
init_esbuild_shims
|
|
11
11
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
|
|
16
16
|
// packages/core/src/utils/sideQuery.ts
|
|
17
17
|
init_esbuild_shims();
|
|
18
|
+
import { readFile } from "node:fs/promises";
|
|
18
19
|
function buildDefaultPromptId(purpose) {
|
|
19
20
|
return purpose ? `side-query:${purpose}` : "side-query";
|
|
20
21
|
}
|
|
@@ -31,6 +32,41 @@ function applyThinkingDefault(callerConfig) {
|
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
__name(applyThinkingDefault, "applyThinkingDefault");
|
|
35
|
+
async function getOutputLanguageInstruction(config) {
|
|
36
|
+
const outputLanguageFilePath = config.getOutputLanguageFilePath?.();
|
|
37
|
+
if (!outputLanguageFilePath) return void 0;
|
|
38
|
+
try {
|
|
39
|
+
const preference = (await readFile(outputLanguageFilePath, "utf8")).trim();
|
|
40
|
+
if (!preference) return void 0;
|
|
41
|
+
return [
|
|
42
|
+
"Follow the user-visible output language preference below for this side query.",
|
|
43
|
+
preference
|
|
44
|
+
].join("\n\n");
|
|
45
|
+
} catch {
|
|
46
|
+
return void 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
__name(getOutputLanguageInstruction, "getOutputLanguageInstruction");
|
|
50
|
+
function appendSystemInstruction(systemInstruction, outputLanguageInstruction) {
|
|
51
|
+
if (!outputLanguageInstruction) return systemInstruction;
|
|
52
|
+
if (systemInstruction === void 0) return outputLanguageInstruction;
|
|
53
|
+
if (typeof systemInstruction === "string") {
|
|
54
|
+
return `${systemInstruction}
|
|
55
|
+
|
|
56
|
+
${outputLanguageInstruction}`;
|
|
57
|
+
}
|
|
58
|
+
if (Array.isArray(systemInstruction)) {
|
|
59
|
+
return [...systemInstruction, { text: outputLanguageInstruction }];
|
|
60
|
+
}
|
|
61
|
+
if (typeof systemInstruction === "object" && "parts" in systemInstruction && Array.isArray(systemInstruction.parts)) {
|
|
62
|
+
return {
|
|
63
|
+
...systemInstruction,
|
|
64
|
+
parts: [...systemInstruction.parts, { text: outputLanguageInstruction }]
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
return [systemInstruction, { text: outputLanguageInstruction }];
|
|
68
|
+
}
|
|
69
|
+
__name(appendSystemInstruction, "appendSystemInstruction");
|
|
34
70
|
function isJsonOptions(options) {
|
|
35
71
|
return options.schema !== void 0 && options.schema !== null;
|
|
36
72
|
}
|
|
@@ -39,13 +75,17 @@ async function runSideQuery(config, options) {
|
|
|
39
75
|
const model = resolveDefaultModel(config, options.model);
|
|
40
76
|
const promptId = options.promptId ?? buildDefaultPromptId(options.purpose);
|
|
41
77
|
const requestConfig = applyThinkingDefault(options.config);
|
|
78
|
+
const systemInstruction = appendSystemInstruction(
|
|
79
|
+
options.systemInstruction,
|
|
80
|
+
await getOutputLanguageInstruction(config)
|
|
81
|
+
);
|
|
42
82
|
if (isJsonOptions(options)) {
|
|
43
83
|
const response = await config.getBaseLlmClient().generateJson({
|
|
44
84
|
contents: options.contents,
|
|
45
85
|
schema: options.schema,
|
|
46
86
|
abortSignal: options.abortSignal,
|
|
47
87
|
model,
|
|
48
|
-
systemInstruction
|
|
88
|
+
systemInstruction,
|
|
49
89
|
promptId,
|
|
50
90
|
config: requestConfig,
|
|
51
91
|
...options.maxAttempts !== void 0 && {
|
|
@@ -65,7 +105,7 @@ async function runSideQuery(config, options) {
|
|
|
65
105
|
const result = await config.getBaseLlmClient().generateText({
|
|
66
106
|
contents: options.contents,
|
|
67
107
|
model,
|
|
68
|
-
systemInstruction
|
|
108
|
+
systemInstruction,
|
|
69
109
|
abortSignal: options.abortSignal,
|
|
70
110
|
promptId,
|
|
71
111
|
config: requestConfig,
|