@qwen-code/qwen-code 0.18.0 → 0.18.1-preview.0
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/common-workflow.md +4 -4
- package/bundled/qc-helper/docs/configuration/auth.md +1 -1
- package/bundled/qc-helper/docs/configuration/model-providers.md +13 -6
- package/bundled/qc-helper/docs/configuration/settings.md +90 -87
- package/bundled/qc-helper/docs/features/dual-output.md +37 -3
- package/bundled/qc-helper/docs/features/skills.md +29 -3
- package/bundled/qc-helper/docs/features/sub-agents.md +5 -4
- package/bundled/qc-helper/docs/qwen-serve.md +32 -23
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +30 -30
- package/bundled/review/SKILL.md +3 -1
- package/bundled/simplify/SKILL.md +1 -1
- package/chunks/{agent-LOTJK6AH.js → agent-WK5GYOPC.js} +21 -20
- package/chunks/{agent-headless-TU3EPMYU.js → agent-headless-KZJALDQF.js} +21 -20
- package/chunks/{anthropicContentGenerator-2HBRNQ3B.js → anthropicContentGenerator-DCI26OQF.js} +4 -4
- package/chunks/{askUserQuestion-OGCMIBQM.js → askUserQuestion-NDNFGC35.js} +2 -2
- package/chunks/{ca-BARBRL6N.js → ca-RK4QPLIX.js} +18 -1
- package/chunks/{chunk-BIVG75CP.js → chunk-26QELEL2.js} +1 -1
- package/chunks/{chunk-LBP46COL.js → chunk-27STU35P.js} +83 -15
- package/chunks/{chunk-ZTZ4DDQE.js → chunk-3NRO6NHX.js} +2 -2
- package/chunks/{chunk-XV4HCEVI.js → chunk-6WPY6ES3.js} +41 -22
- package/chunks/{chunk-A7B4ISQP.js → chunk-B4ZF2KSI.js} +1 -1
- package/chunks/chunk-BJ5HQ23U.js +178 -0
- package/chunks/{chunk-PL3MVCWD.js → chunk-BW7CMDF3.js} +11 -11
- package/chunks/{chunk-OHEGWO4L.js → chunk-CPVI5J2L.js} +1 -1
- package/chunks/{chunk-LEJ42GNY.js → chunk-DYCU43TE.js} +6 -6
- package/chunks/{chunk-6YIUGZTC.js → chunk-E322ZT4P.js} +281 -132
- package/chunks/{chunk-SEGYWKIH.js → chunk-FIQECJTQ.js} +1 -1
- package/chunks/{chunk-HR7SV7AY.js → chunk-HA2UEYZP.js} +6 -2
- package/chunks/{chunk-2Y5SYSD3.js → chunk-IDYDPBBN.js} +3 -3
- package/chunks/{chunk-3HTIVKZE.js → chunk-IQHSD7K5.js} +1 -1
- package/chunks/{chunk-MFBBBTNY.js → chunk-JZFEL3RB.js} +1 -1
- package/chunks/{chunk-B7HXHOHU.js → chunk-LXYWINWF.js} +1 -1
- package/chunks/{chunk-IDX6COTE.js → chunk-LYRSMKLS.js} +2 -2
- package/chunks/{chunk-M6VTDSVR.js → chunk-LYSND7KR.js} +9 -4
- package/chunks/{chunk-EYENRK4D.js → chunk-NNIYWQIS.js} +1 -1
- package/chunks/chunk-OMX7CUOE.js +356 -0
- package/chunks/{chunk-R7ODSGTK.js → chunk-OT6JA3KQ.js} +2 -2
- package/chunks/{chunk-IWAYOW5Q.js → chunk-Q3NN2XUW.js} +6661 -4210
- package/chunks/{chunk-72LDN5PP.js → chunk-QP4R5FTG.js} +1 -1
- package/chunks/{chunk-7BCMOPIM.js → chunk-RLFLJVHU.js} +31 -12
- package/chunks/{chunk-3DHXZ6EV.js → chunk-SFRV6BGY.js} +6 -4
- package/chunks/{chunk-JTQAQBTV.js → chunk-VU6A2OBJ.js} +20 -6
- package/chunks/{chunk-HLPLOD42.js → chunk-VXHYMZXW.js} +1 -1
- package/chunks/{chunk-J5MDQKJL.js → chunk-WPTCDQN6.js} +2 -347
- package/chunks/{chunk-SNGELLWX.js → chunk-ZMIBJS45.js} +1 -1
- package/chunks/{chunk-XBY7E2FX.js → chunk-ZOFNJQNJ.js} +6 -4
- package/chunks/computer-use-4ELNIZMF.js +2052 -0
- package/chunks/{contextCommand-K347QT6O.js → contextCommand-E2V26QGD.js} +23 -22
- package/chunks/cron-create-7CXEAJ2K.js +184 -0
- package/chunks/{cron-delete-WKWSJZQA.js → cron-delete-2FQYYNQ6.js} +27 -4
- package/chunks/{cron-list-B52XEXAZ.js → cron-list-QCAJ73XE.js} +39 -6
- package/chunks/{de-YGKK2BC4.js → de-FGPM4KW5.js} +18 -1
- package/chunks/{dist-4LXD6L6X.js → dist-2UCAYOX7.js} +2 -2
- package/chunks/{dist-H6ONXVLG.js → dist-33LHH26D.js} +1 -1
- package/chunks/{dist-PK7DFCAW.js → dist-KF43SZZV.js} +1 -1
- package/chunks/{dist-KAZ3SEBX.js → dist-PF2IYSMD.js} +1 -1
- package/chunks/{edit-KU4PJGEX.js → edit-IC3ECG44.js} +23 -24
- package/chunks/{en-DHGYHIHX.js → en-VP6XPGEC.js} +5 -2
- package/chunks/{enter-worktree-PPYIDCWI.js → enter-worktree-ETQWM7BB.js} +21 -20
- package/chunks/{enterPlanMode-5CZDMCB4.js → enterPlanMode-VL3F45RF.js} +21 -20
- package/chunks/{exit-worktree-UY3CGHKC.js → exit-worktree-F5BJXBFB.js} +21 -20
- package/chunks/{exitPlanMode-3DN4QNSG.js → exitPlanMode-VOC7G5FJ.js} +71 -31
- package/chunks/{fr-JXBKPJKQ.js → fr-ATYBVCLT.js} +18 -1
- package/chunks/{geminiContentGenerator-7A6I2RWB.js → geminiContentGenerator-7D2QZ5FE.js} +4 -4
- package/chunks/{glob-OFNQSS52.js → glob-XTABUPPR.js} +21 -20
- package/chunks/{grep-6J2MSUM5.js → grep-MRCXYH2N.js} +30 -26
- package/chunks/{ja-TGPZSP2B.js → ja-W2QEA2OI.js} +18 -1
- package/chunks/{keychain-token-storage-6IU6ORQN.js → keychain-token-storage-QSTRHKKL.js} +2 -2
- package/chunks/{ls-V3O6A5PT.js → ls-XVGXRYWD.js} +3 -3
- package/chunks/{lsp-G2OCIFUA.js → lsp-S6SHPULC.js} +2 -2
- package/chunks/{monitor-FKLHV423.js → monitor-LNRRNJJB.js} +21 -20
- package/chunks/{notebook-edit-KTBYFKWG.js → notebook-edit-IS3UYVGM.js} +22 -21
- package/chunks/{openaiContentGenerator-L5KSWQY7.js → openaiContentGenerator-P772OZ6K.js} +11 -11
- package/chunks/{pt-TIBG6BIO.js → pt-ZKEWJFBW.js} +18 -1
- package/chunks/{qwenContentGenerator-PYOXLMBW.js → qwenContentGenerator-Y6YGZRHH.js} +23 -22
- package/chunks/{qwenOAuth2-2KCKWDCF.js → qwenOAuth2-KK433U33.js} +4 -4
- package/chunks/{read-file-JQVRK4NU.js → read-file-2JIJ646W.js} +8 -8
- package/chunks/{ripGrep-2L4LPNAJ.js → ripGrep-Z74CN4MW.js} +21 -20
- package/chunks/{ru-JBCHCK4L.js → ru-VEKTPJ74.js} +18 -1
- package/chunks/{scheduler-FGNXY4JQ.js → scheduler-KFG4TT3A.js} +21 -20
- package/chunks/{send-message-SZFWNOCL.js → send-message-SMNR5DBG.js} +2 -2
- package/chunks/{serve-N2IBLA3G.js → serve-XDZAE3KF.js} +998 -278
- package/chunks/{shell-PTEG6UX4.js → shell-BTAJJJHO.js} +21 -20
- package/chunks/{skill-X4NTK4NH.js → skill-LSM726DP.js} +10 -10
- package/chunks/{src-GLLQ3R5W.js → src-JMUZP4A4.js} +44 -26
- package/chunks/{syntheticOutput-IKAY5F6X.js → syntheticOutput-KMNF7YG6.js} +3 -3
- package/chunks/{task-create-MQICOJFV.js → task-create-LIJHK75G.js} +7 -6
- package/chunks/{task-list-RIHJCH32.js → task-list-S4GNSILM.js} +6 -5
- package/chunks/{task-stop-FWZRFANS.js → task-stop-3GBRYJHM.js} +2 -2
- package/chunks/{task-update-2LHPXOYM.js → task-update-F3UTVJMS.js} +7 -6
- package/chunks/{team-create-2E4PF4KN.js → team-create-S5ZBN464.js} +21 -20
- package/chunks/{team-delete-DAUDQS4J.js → team-delete-54434EB7.js} +6 -5
- package/chunks/{todoWrite-HTUACZES.js → todoWrite-4ENGSBUX.js} +4 -4
- package/chunks/{tool-search-KTVULRES.js → tool-search-NUOEJ4LF.js} +8 -8
- package/chunks/{web-fetch-CZ7LLKPE.js → web-fetch-RHZMF3MP.js} +4 -4
- package/chunks/{workflow-L2ZUUDT2.js → workflow-ZI3ZXNU6.js} +503 -49
- package/chunks/{write-file-ZEB2JDYH.js → write-file-MHQLLZWY.js} +22 -21
- package/chunks/{zh-7H5OQC4I.js → zh-OIXDDQHB.js} +5 -2
- package/chunks/{zh-TW-P4IDHD3M.js → zh-TW-6YFNCKTA.js} +5 -2
- package/cli-entry.js +19 -0
- package/cli.js +6645 -4971
- package/locales/ca.js +20 -2
- package/locales/de.js +21 -2
- package/locales/en.js +7 -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 +6 -4
- package/locales/zh.js +6 -4
- package/package.json +4 -3
- package/chunks/chunk-SKBPNJEW.js +0 -45
- package/chunks/computer-use-3RH2DOM6.js +0 -825
- package/chunks/cron-create-YJL3KFWI.js +0 -140
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
parseCron
|
|
5
|
-
} from "./chunk-O4PICXES.js";
|
|
6
|
-
import {
|
|
7
|
-
humanReadableCron
|
|
8
|
-
} from "./chunk-TW522KN6.js";
|
|
9
|
-
import {
|
|
10
|
-
BaseDeclarativeTool,
|
|
11
|
-
BaseToolInvocation,
|
|
12
|
-
ToolDisplayNames,
|
|
13
|
-
ToolNames
|
|
14
|
-
} from "./chunk-XV4HCEVI.js";
|
|
15
|
-
import "./chunk-HR7SV7AY.js";
|
|
16
|
-
import "./chunk-Z2Z3GUXZ.js";
|
|
17
|
-
import {
|
|
18
|
-
init_esbuild_shims
|
|
19
|
-
} from "./chunk-A4BMJM77.js";
|
|
20
|
-
import {
|
|
21
|
-
__name
|
|
22
|
-
} from "./chunk-J2S4EL5Y.js";
|
|
23
|
-
|
|
24
|
-
// packages/core/src/tools/cron-create.ts
|
|
25
|
-
init_esbuild_shims();
|
|
26
|
-
var CronCreateInvocation = class extends BaseToolInvocation {
|
|
27
|
-
constructor(config, params) {
|
|
28
|
-
super(params);
|
|
29
|
-
this.config = config;
|
|
30
|
-
}
|
|
31
|
-
static {
|
|
32
|
-
__name(this, "CronCreateInvocation");
|
|
33
|
-
}
|
|
34
|
-
getDescription() {
|
|
35
|
-
return `${this.params.cron}: ${this.params.prompt}`;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* The scheduled prompt fires against the agent at cron-trigger time
|
|
39
|
-
* and executes with full tool access. The CronCreateTool's L3 default
|
|
40
|
-
* must NOT be 'allow', because AUTO mode short-circuits at L4 when
|
|
41
|
-
* `finalPermission === 'allow'` — the classifier never runs and an
|
|
42
|
-
* arbitrary scheduled prompt is silently approved. `'ask'` routes
|
|
43
|
-
* the call through the classifier (or manual approval in DEFAULT).
|
|
44
|
-
*/
|
|
45
|
-
async getDefaultPermission() {
|
|
46
|
-
return "ask";
|
|
47
|
-
}
|
|
48
|
-
async execute() {
|
|
49
|
-
const scheduler = this.config.getCronScheduler();
|
|
50
|
-
const recurring = this.params.recurring !== false;
|
|
51
|
-
try {
|
|
52
|
-
parseCron(this.params.cron);
|
|
53
|
-
const job = scheduler.create(
|
|
54
|
-
this.params.cron,
|
|
55
|
-
this.params.prompt,
|
|
56
|
-
recurring
|
|
57
|
-
);
|
|
58
|
-
const display = humanReadableCron(job.cronExpr);
|
|
59
|
-
const returnDisplay = `Scheduled ${job.id} (${display})`;
|
|
60
|
-
let llmContent;
|
|
61
|
-
if (recurring) {
|
|
62
|
-
llmContent = `Scheduled recurring job ${job.id} (${job.cronExpr}). Session-only (not written to disk, dies when Qwen Code exits). Auto-expires after 3 days. Use CronDelete to cancel sooner.`;
|
|
63
|
-
} else {
|
|
64
|
-
llmContent = `Scheduled one-shot task ${job.id} (${job.cronExpr}). Session-only (not written to disk, dies when Qwen Code exits). It will fire once then auto-delete.`;
|
|
65
|
-
}
|
|
66
|
-
return { llmContent, returnDisplay };
|
|
67
|
-
} catch (error) {
|
|
68
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
69
|
-
return {
|
|
70
|
-
llmContent: `Error creating cron job: ${message}`,
|
|
71
|
-
returnDisplay: message,
|
|
72
|
-
error: { message }
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var CronCreateTool = class _CronCreateTool extends BaseDeclarativeTool {
|
|
78
|
-
constructor(config) {
|
|
79
|
-
super(
|
|
80
|
-
_CronCreateTool.Name,
|
|
81
|
-
ToolDisplayNames.CRON_CREATE,
|
|
82
|
-
'Schedule a prompt to be enqueued at a future time. Use for both recurring schedules and one-shot reminders.\n\nUses standard 5-field cron in the user\'s local timezone: minute hour day-of-month month day-of-week. "0 9 * * *" means 9am local \u2014 no timezone conversion needed.\n\n## One-shot tasks (recurring: false)\n\nFor "remind me at X" or "at <time>, do Y" requests \u2014 fire once then auto-delete.\nPin minute/hour/day-of-month/month to specific values:\n "remind me at 2:30pm today to check the deploy" \u2192 cron: "30 14 <today_dom> <today_month> *", recurring: false\n "tomorrow morning, run the smoke test" \u2192 cron: "57 8 <tomorrow_dom> <tomorrow_month> *", recurring: false\n\n## Recurring jobs (recurring: true, the default)\n\nFor "every N minutes" / "every hour" / "weekdays at 9am" requests:\n "*/5 * * * *" (every 5 min), "0 * * * *" (hourly), "0 9 * * 1-5" (weekdays at 9am local)\n\n## Avoid the :00 and :30 minute marks when the task allows it\n\nEvery user who asks for "9am" gets `0 9`, and every user who asks for "hourly" gets `0 *` \u2014 which means requests from across the planet land on the API at the same instant. When the user\'s request is approximate, pick a minute that is NOT 0 or 30:\n "every morning around 9" \u2192 "57 8 * * *" or "3 9 * * *" (not "0 9 * * *")\n "hourly" \u2192 "7 * * * *" (not "0 * * * *")\n "in an hour or so, remind me to..." \u2192 pick whatever minute you land on, don\'t round\n\nOnly use minute 0 or 30 when the user names that exact time and clearly means it ("at 9:00 sharp", "at half past", coordinating with a meeting). When in doubt, nudge a few minutes early or late \u2014 the user will not notice, and the fleet will.\n\n## Session-only\n\nJobs live only in this Qwen Code session \u2014 nothing is written to disk, and the job is gone when Qwen Code exits.\n\n## Runtime behavior\n\nJobs only fire while the REPL is idle (not mid-query). The scheduler adds a small deterministic jitter on top of whatever you pick: recurring tasks fire up to 10% of their period late (max 15 min); one-shot tasks landing on :00 or :30 fire up to 90 s early. Picking an off-minute is still the bigger lever.\n\nRecurring tasks auto-expire after 3 days \u2014 they fire one final time, then are deleted. This bounds session lifetime. Tell the user about the 3-day limit when scheduling recurring jobs.\n\nReturns a job ID you can pass to CronDelete.',
|
|
83
|
-
"other" /* Other */,
|
|
84
|
-
{
|
|
85
|
-
type: "object",
|
|
86
|
-
properties: {
|
|
87
|
-
cron: {
|
|
88
|
-
type: "string",
|
|
89
|
-
description: 'Standard 5-field cron expression in local time: "M H DoM Mon DoW" (e.g. "*/5 * * * *" = every 5 minutes, "30 14 28 2 *" = Feb 28 at 2:30pm local once).'
|
|
90
|
-
},
|
|
91
|
-
prompt: {
|
|
92
|
-
type: "string",
|
|
93
|
-
description: "The prompt to enqueue at each fire time."
|
|
94
|
-
},
|
|
95
|
-
recurring: {
|
|
96
|
-
type: "boolean",
|
|
97
|
-
description: 'true (default) = fire on every cron match until deleted or auto-expired after 3 days. false = fire once at the next match, then auto-delete. Use false for "remind me at X" one-shot requests with pinned minute/hour/dom/month.'
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
required: ["cron", "prompt"],
|
|
101
|
-
additionalProperties: false
|
|
102
|
-
},
|
|
103
|
-
true,
|
|
104
|
-
// isOutputMarkdown
|
|
105
|
-
false,
|
|
106
|
-
// canUpdateOutput
|
|
107
|
-
true,
|
|
108
|
-
// shouldDefer — scheduling is infrequent
|
|
109
|
-
false,
|
|
110
|
-
// alwaysLoad
|
|
111
|
-
"cron schedule reminder recurring timer"
|
|
112
|
-
);
|
|
113
|
-
this.config = config;
|
|
114
|
-
}
|
|
115
|
-
static {
|
|
116
|
-
__name(this, "CronCreateTool");
|
|
117
|
-
}
|
|
118
|
-
static Name = ToolNames.CRON_CREATE;
|
|
119
|
-
createInvocation(params) {
|
|
120
|
-
return new CronCreateInvocation(this.config, params);
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Forward the prompt and cadence to the classifier. The scheduled
|
|
124
|
-
* prompt will be enqueued and executed against the agent at fire-time,
|
|
125
|
-
* so it must go through the same scrutiny as a direct command. Without
|
|
126
|
-
* this override the default projection returns `''` and the classifier
|
|
127
|
-
* sees `cron_create({})` — blind to what the agent will be asked to
|
|
128
|
-
* do in 8 hours.
|
|
129
|
-
*/
|
|
130
|
-
toAutoClassifierInput(params) {
|
|
131
|
-
return {
|
|
132
|
-
cron: params.cron,
|
|
133
|
-
prompt: params.prompt,
|
|
134
|
-
recurring: params.recurring ?? true
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
export {
|
|
139
|
-
CronCreateTool
|
|
140
|
-
};
|