@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
package/locales/zh.js
CHANGED
|
@@ -81,6 +81,7 @@ export default {
|
|
|
81
81
|
'docs/keyboard-shortcuts.md': 'docs/keyboard-shortcuts.md',
|
|
82
82
|
'for help on Qwen Code': '获取 Qwen Code 帮助',
|
|
83
83
|
'show version info': '显示版本信息',
|
|
84
|
+
'show paths for current session files and logs': '显示当前会话文件和日志路径',
|
|
84
85
|
'submit a bug report': '提交错误报告',
|
|
85
86
|
Status: '状态',
|
|
86
87
|
|
|
@@ -126,6 +127,44 @@ export default {
|
|
|
126
127
|
'Rename the current conversation. --auto lets the fast model pick a title.':
|
|
127
128
|
'重命名当前对话。--auto 会让快速模型自动生成标题。',
|
|
128
129
|
'Rewind conversation to a previous turn': '将对话回退到之前的某一轮',
|
|
130
|
+
'Rewind Conversation': '回退对话',
|
|
131
|
+
'No user turns to rewind to.': '没有可回退的用户对话轮次。',
|
|
132
|
+
'Rewind to: ': '回退到:',
|
|
133
|
+
'Restore code and conversation': '恢复代码和对话',
|
|
134
|
+
'Restore conversation only': '仅恢复对话',
|
|
135
|
+
'Restore code only': '仅恢复代码',
|
|
136
|
+
'Never mind': '算了',
|
|
137
|
+
'Computing file changes...': '正在计算文件变更...',
|
|
138
|
+
'Restoring...': '正在恢复...',
|
|
139
|
+
'Restored {{count}} file(s).': '已恢复 {{count}} 个文件。',
|
|
140
|
+
'Failed to restore files: {{error}}': '恢复文件失败:{{error}}',
|
|
141
|
+
'Rewind failed: {{error}}': '回退失败:{{error}}',
|
|
142
|
+
'Cannot rewind conversation: no active model client.':
|
|
143
|
+
'无法回退对话:模型客户端未激活。',
|
|
144
|
+
'Code restored, but conversation could not be rewound (no active client).':
|
|
145
|
+
'代码已恢复,但对话无法回退(模型客户端未激活)。',
|
|
146
|
+
'Conversation rewound. Edit your prompt and press Enter to continue.':
|
|
147
|
+
'对话已回退。修改你的提示后按回车继续。',
|
|
148
|
+
'Rewinding does not affect files edited manually or via shell commands.':
|
|
149
|
+
'回退不会影响手工编辑或通过 shell 命令修改的文件。',
|
|
150
|
+
'Cannot rewind to a turn that was compressed. Try a more recent turn.':
|
|
151
|
+
'无法回退到已被压缩的轮次,请尝试更近一些的轮次。',
|
|
152
|
+
'File restore is unavailable for this turn (no captured file changes, or this turn predates the current session).':
|
|
153
|
+
'该轮次无法恢复文件(没有捕获到文件变更,或该轮次属于本次会话之前)。',
|
|
154
|
+
'(+{{insertions}} -{{deletions}} in {{count}} file)':
|
|
155
|
+
'(+{{insertions}} -{{deletions}},{{count}} 个文件)',
|
|
156
|
+
'(+{{insertions}} -{{deletions}} in {{count}} files)':
|
|
157
|
+
'(+{{insertions}} -{{deletions}},{{count}} 个文件)',
|
|
158
|
+
'Failed to restore {{count}} file(s): {{files}}':
|
|
159
|
+
'恢复 {{count}} 个文件失败:{{files}}',
|
|
160
|
+
'Cannot restore files: this turn was created before file checkpointing was enabled.':
|
|
161
|
+
'无法恢复文件:该轮对话创建时尚未启用文件检查点功能。',
|
|
162
|
+
'No files needed to be restored.': '没有文件需要恢复。',
|
|
163
|
+
'↑↓ to navigate · Enter to select · Esc to go back':
|
|
164
|
+
'↑↓ 导航 · Enter 选择 · Esc 返回',
|
|
165
|
+
'↑↓ to navigate · Enter to select · Esc to cancel':
|
|
166
|
+
'↑↓ 导航 · Enter 选择 · Esc 取消',
|
|
167
|
+
'Enter/Y to confirm · Esc/N to go back': 'Enter/Y 确认 · Esc/N 返回',
|
|
129
168
|
'change the theme': '更改主题',
|
|
130
169
|
'Select Theme': '选择主题',
|
|
131
170
|
Preview: '预览',
|
|
@@ -144,7 +183,7 @@ export default {
|
|
|
144
183
|
'open full Qwen Code documentation in your browser':
|
|
145
184
|
'在浏览器中打开完整的 Qwen Code 文档',
|
|
146
185
|
'Configuration not available.': '配置不可用',
|
|
147
|
-
'
|
|
186
|
+
'Connect an LLM provider': '连接 LLM 提供商',
|
|
148
187
|
'Copy the last result or code snippet to clipboard':
|
|
149
188
|
'将最后的结果或代码片段复制到剪贴板',
|
|
150
189
|
'Show working-tree change stats versus HEAD':
|
|
@@ -1058,9 +1097,9 @@ export default {
|
|
|
1058
1097
|
'👋 Welcome back! (Last updated: {{timeAgo}})':
|
|
1059
1098
|
'👋 欢迎回来!(最后更新:{{timeAgo}})',
|
|
1060
1099
|
'🎯 Overall Goal:': '🎯 总体目标:',
|
|
1061
|
-
'
|
|
1062
|
-
'You must
|
|
1063
|
-
'
|
|
1100
|
+
'Connect a Provider': '连接服务商',
|
|
1101
|
+
'You must connect a provider to proceed. Press Ctrl+C again to exit.':
|
|
1102
|
+
'必须连接一个服务商才能继续。再次按 Ctrl+C 退出',
|
|
1064
1103
|
'Terms of Services and Privacy Notice': '服务条款和隐私声明',
|
|
1065
1104
|
'Qwen OAuth': 'Qwen OAuth (免费)',
|
|
1066
1105
|
'Discontinued — switch to Coding Plan or API Key':
|
|
@@ -1617,6 +1656,8 @@ export default {
|
|
|
1617
1656
|
'紧凑模式下隐藏工具输出和思考过程,界面更简洁(Ctrl+O 切换)。',
|
|
1618
1657
|
'Press Ctrl+O to show full tool output': '按 Ctrl+O 查看详细工具调用结果',
|
|
1619
1658
|
'Switch to plan mode or exit plan mode': '切换到计划模式或退出计划模式',
|
|
1659
|
+
'Set a goal — keep working until the condition is met':
|
|
1660
|
+
'设定目标 — 持续工作直到条件满足',
|
|
1620
1661
|
'Exited plan mode. Previous approval mode restored.':
|
|
1621
1662
|
'已退出计划模式,已恢复之前的审批模式。',
|
|
1622
1663
|
'Enabled plan mode. The agent will analyze and plan without executing tools.':
|
|
@@ -1677,6 +1718,7 @@ export default {
|
|
|
1677
1718
|
'[{{label}}] failed: {{error}}': '[{{label}}] 失败:{{error}}',
|
|
1678
1719
|
'Loading suggestions...': '正在加载建议...',
|
|
1679
1720
|
'Open the memory manager.': '打开记忆管理器。',
|
|
1721
|
+
'Show current process memory diagnostics': '显示当前进程的内存诊断。',
|
|
1680
1722
|
'Save a durable memory to the memory system.':
|
|
1681
1723
|
'将一条持久记忆保存到记忆系统。',
|
|
1682
1724
|
'Show per-item context usage breakdown.': '显示按项目划分的上下文使用详情。',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwen-code/qwen-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0-nightly.20260522.48b0a8bfc",
|
|
4
4
|
"description": "Qwen Code - AI-powered coding assistant",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"bundled"
|
|
23
23
|
],
|
|
24
24
|
"config": {
|
|
25
|
-
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.
|
|
25
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.16.0-nightly.20260522.48b0a8bfc"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {},
|
|
28
28
|
"optionalDependencies": {
|
package/chunks/chunk-5P5XGNYH.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
init_esbuild_shims
|
|
5
|
-
} from "./chunk-A4BMJM77.js";
|
|
6
|
-
import {
|
|
7
|
-
__commonJS,
|
|
8
|
-
__name
|
|
9
|
-
} from "./chunk-J2S4EL5Y.js";
|
|
10
|
-
|
|
11
|
-
// node_modules/wrappy/wrappy.js
|
|
12
|
-
var require_wrappy = __commonJS({
|
|
13
|
-
"node_modules/wrappy/wrappy.js"(exports, module) {
|
|
14
|
-
init_esbuild_shims();
|
|
15
|
-
module.exports = wrappy;
|
|
16
|
-
function wrappy(fn, cb) {
|
|
17
|
-
if (fn && cb) return wrappy(fn)(cb);
|
|
18
|
-
if (typeof fn !== "function")
|
|
19
|
-
throw new TypeError("need wrapper function");
|
|
20
|
-
Object.keys(fn).forEach(function(k) {
|
|
21
|
-
wrapper[k] = fn[k];
|
|
22
|
-
});
|
|
23
|
-
return wrapper;
|
|
24
|
-
function wrapper() {
|
|
25
|
-
var args = new Array(arguments.length);
|
|
26
|
-
for (var i = 0; i < args.length; i++) {
|
|
27
|
-
args[i] = arguments[i];
|
|
28
|
-
}
|
|
29
|
-
var ret = fn.apply(this, args);
|
|
30
|
-
var cb2 = args[args.length - 1];
|
|
31
|
-
if (typeof ret === "function" && ret !== cb2) {
|
|
32
|
-
Object.keys(cb2).forEach(function(k) {
|
|
33
|
-
ret[k] = cb2[k];
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
return ret;
|
|
37
|
-
}
|
|
38
|
-
__name(wrapper, "wrapper");
|
|
39
|
-
}
|
|
40
|
-
__name(wrappy, "wrappy");
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
// node_modules/once/once.js
|
|
45
|
-
var require_once = __commonJS({
|
|
46
|
-
"node_modules/once/once.js"(exports, module) {
|
|
47
|
-
init_esbuild_shims();
|
|
48
|
-
var wrappy = require_wrappy();
|
|
49
|
-
module.exports = wrappy(once);
|
|
50
|
-
module.exports.strict = wrappy(onceStrict);
|
|
51
|
-
once.proto = once(function() {
|
|
52
|
-
Object.defineProperty(Function.prototype, "once", {
|
|
53
|
-
value: /* @__PURE__ */ __name(function() {
|
|
54
|
-
return once(this);
|
|
55
|
-
}, "value"),
|
|
56
|
-
configurable: true
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(Function.prototype, "onceStrict", {
|
|
59
|
-
value: /* @__PURE__ */ __name(function() {
|
|
60
|
-
return onceStrict(this);
|
|
61
|
-
}, "value"),
|
|
62
|
-
configurable: true
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
function once(fn) {
|
|
66
|
-
var f = /* @__PURE__ */ __name(function() {
|
|
67
|
-
if (f.called) return f.value;
|
|
68
|
-
f.called = true;
|
|
69
|
-
return f.value = fn.apply(this, arguments);
|
|
70
|
-
}, "f");
|
|
71
|
-
f.called = false;
|
|
72
|
-
return f;
|
|
73
|
-
}
|
|
74
|
-
__name(once, "once");
|
|
75
|
-
function onceStrict(fn) {
|
|
76
|
-
var f = /* @__PURE__ */ __name(function() {
|
|
77
|
-
if (f.called)
|
|
78
|
-
throw new Error(f.onceError);
|
|
79
|
-
f.called = true;
|
|
80
|
-
return f.value = fn.apply(this, arguments);
|
|
81
|
-
}, "f");
|
|
82
|
-
var name = fn.name || "Function wrapped with `once`";
|
|
83
|
-
f.onceError = name + " shouldn't be called more than once";
|
|
84
|
-
f.called = false;
|
|
85
|
-
return f;
|
|
86
|
-
}
|
|
87
|
-
__name(onceStrict, "onceStrict");
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
export {
|
|
92
|
-
require_once
|
|
93
|
-
};
|
package/chunks/chunk-SYCJMSIJ.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
init_esbuild_shims
|
|
5
|
-
} from "./chunk-A4BMJM77.js";
|
|
6
|
-
import {
|
|
7
|
-
__commonJS,
|
|
8
|
-
__require
|
|
9
|
-
} from "./chunk-J2S4EL5Y.js";
|
|
10
|
-
|
|
11
|
-
// node_modules/safer-buffer/safer.js
|
|
12
|
-
var require_safer = __commonJS({
|
|
13
|
-
"node_modules/safer-buffer/safer.js"(exports, module) {
|
|
14
|
-
"use strict";
|
|
15
|
-
init_esbuild_shims();
|
|
16
|
-
var buffer = __require("buffer");
|
|
17
|
-
var Buffer = buffer.Buffer;
|
|
18
|
-
var safer = {};
|
|
19
|
-
var key;
|
|
20
|
-
for (key in buffer) {
|
|
21
|
-
if (!buffer.hasOwnProperty(key)) continue;
|
|
22
|
-
if (key === "SlowBuffer" || key === "Buffer") continue;
|
|
23
|
-
safer[key] = buffer[key];
|
|
24
|
-
}
|
|
25
|
-
var Safer = safer.Buffer = {};
|
|
26
|
-
for (key in Buffer) {
|
|
27
|
-
if (!Buffer.hasOwnProperty(key)) continue;
|
|
28
|
-
if (key === "allocUnsafe" || key === "allocUnsafeSlow") continue;
|
|
29
|
-
Safer[key] = Buffer[key];
|
|
30
|
-
}
|
|
31
|
-
safer.Buffer.prototype = Buffer.prototype;
|
|
32
|
-
if (!Safer.from || Safer.from === Uint8Array.from) {
|
|
33
|
-
Safer.from = function(value, encodingOrOffset, length) {
|
|
34
|
-
if (typeof value === "number") {
|
|
35
|
-
throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof value);
|
|
36
|
-
}
|
|
37
|
-
if (value && typeof value.length === "undefined") {
|
|
38
|
-
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
|
|
39
|
-
}
|
|
40
|
-
return Buffer(value, encodingOrOffset, length);
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
if (!Safer.alloc) {
|
|
44
|
-
Safer.alloc = function(size, fill, encoding) {
|
|
45
|
-
if (typeof size !== "number") {
|
|
46
|
-
throw new TypeError('The "size" argument must be of type number. Received type ' + typeof size);
|
|
47
|
-
}
|
|
48
|
-
if (size < 0 || size >= 2 * (1 << 30)) {
|
|
49
|
-
throw new RangeError('The value "' + size + '" is invalid for option "size"');
|
|
50
|
-
}
|
|
51
|
-
var buf = Buffer(size);
|
|
52
|
-
if (!fill || fill.length === 0) {
|
|
53
|
-
buf.fill(0);
|
|
54
|
-
} else if (typeof encoding === "string") {
|
|
55
|
-
buf.fill(fill, encoding);
|
|
56
|
-
} else {
|
|
57
|
-
buf.fill(fill);
|
|
58
|
-
}
|
|
59
|
-
return buf;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
if (!safer.kStringMaxLength) {
|
|
63
|
-
try {
|
|
64
|
-
safer.kStringMaxLength = process.binding("buffer").kStringMaxLength;
|
|
65
|
-
} catch (e) {
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
if (!safer.constants) {
|
|
69
|
-
safer.constants = {
|
|
70
|
-
MAX_LENGTH: safer.kMaxLength
|
|
71
|
-
};
|
|
72
|
-
if (safer.kStringMaxLength) {
|
|
73
|
-
safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
module.exports = safer;
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
export {
|
|
81
|
-
require_safer
|
|
82
|
-
};
|
package/chunks/chunk-Y6Z2O3WR.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Force strict mode and setup for ESM
|
|
2
|
-
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
init_esbuild_shims
|
|
5
|
-
} from "./chunk-A4BMJM77.js";
|
|
6
|
-
import {
|
|
7
|
-
__name
|
|
8
|
-
} from "./chunk-J2S4EL5Y.js";
|
|
9
|
-
|
|
10
|
-
// packages/cli/src/utils/stdioHelpers.ts
|
|
11
|
-
init_esbuild_shims();
|
|
12
|
-
var writeStdoutLine = /* @__PURE__ */ __name((message) => {
|
|
13
|
-
process.stdout.write(message.endsWith("\n") ? message : `${message}
|
|
14
|
-
`);
|
|
15
|
-
}, "writeStdoutLine");
|
|
16
|
-
var writeStderrLine = /* @__PURE__ */ __name((message) => {
|
|
17
|
-
process.stderr.write(message.endsWith("\n") ? message : `${message}
|
|
18
|
-
`);
|
|
19
|
-
}, "writeStderrLine");
|
|
20
|
-
var clearScreen = /* @__PURE__ */ __name(() => {
|
|
21
|
-
console.clear();
|
|
22
|
-
}, "clearScreen");
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
writeStdoutLine,
|
|
26
|
-
writeStderrLine,
|
|
27
|
-
clearScreen
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @license
|
|
31
|
-
* Copyright 2025 Qwen Team
|
|
32
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
33
|
-
*/
|