mine-auto-cli 2.7.3 → 2.7.4
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/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import xe from "download-git-repo";
|
|
|
13
13
|
import q from "inquirer";
|
|
14
14
|
import se from "os";
|
|
15
15
|
import Ae from "update-notifier";
|
|
16
|
-
const re = "mine-auto-cli", ce = "2.7.
|
|
16
|
+
const re = "mine-auto-cli", ce = "2.7.4", Ne = "./dist/index.js", Pe = "./dist/index.js", Ie = "module", Ee = { auto: "bin/mine-auto-cli.js" }, Je = { name: "biaov", email: "biaov@qq.com", url: "https://biaov.cn" }, Me = "一个将多个命令简化成一个命令的工具 😆", Le = { start: "npm run dev", dev: "npm run build -- --watch", build: "vite build", prettier: "prettier --write '**/*.{js,ts,md,json}'", tag: "node scripts/tag" }, Re = { registry: "https://registry.npmjs.org/", "engine-strict": !0, provenance: !0 }, De = { node: ">=24.x" }, Ve = ["auto", "cli", "vite", "typescript"], Te = { type: "git", url: "git+https://github.com/biaov/mine-auto-cli.git" }, _e = "https://github.com/biaov/mine-auto-cli.git", Fe = { url: "https://github.com/biaov/mine-auto-cli/issues" }, Ue = "ISC", He = [{ name: "biaov", email: "biaov@qq.com" }], qe = { chalk: "^5.6.2", commander: "^14.0.3", "download-git-repo": "^3.0.2", inquirer: "^13.3.0", "js-yaml": "^4.1.1", "log-symbols": "^7.0.1", ora: "^9.3.0", pacote: "^21.4.0", "semver-utils": "^1.1.4", "strip-json-comments": "^5.0.3", "update-notifier": "^7.3.1" }, Be = { "@types/js-yaml": "^4.0.9", "@types/node": "^25.3.3", "@types/pacote": "^11.1.8", "@types/semver-utils": "^1.1.3", "@types/update-notifier": "^6.0.8", prettier: "^3.8.1", typescript: "^5.9.3", vite: "^7.3.1" }, I = {
|
|
17
17
|
name: re,
|
|
18
18
|
private: !1,
|
|
19
19
|
version: ce,
|
|
@@ -326,9 +326,9 @@ const U = ["ANTHROPIC_AUTH_TOKEN", "ANTHROPIC_BASE_URL", "ANTHROPIC_MODEL", "ANT
|
|
|
326
326
|
}
|
|
327
327
|
}, vt = async () => {
|
|
328
328
|
a(), a("开始汉化 Claude Code");
|
|
329
|
-
const { cliPath: e } = ye(), t = h(e).toString(), s = (await import("./keyword-
|
|
329
|
+
const { cliPath: e } = ye(), t = h(e).toString(), s = (await import("./keyword-BOSF0nfJ.js")).default, n = Object.entries(s).reduce((o, [r, c]) => {
|
|
330
330
|
const i = r.replace(/\n/g, "\\\\n").replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), p = c.replace(/\n/g, "\\n");
|
|
331
|
-
return i[0]
|
|
331
|
+
return ["`", "\\"].includes(i[0]) ? o.replace(new RegExp(i, "g"), c) : o.replace(new RegExp(`"${i}"`, "g"), `"${p}"`).replace(new RegExp(`('${i}')`, "g"), `'${p}'`);
|
|
332
332
|
}, t);
|
|
333
333
|
v(e, n), u("Claude Code 已汉化");
|
|
334
334
|
}, St = () => {
|
|
@@ -22,9 +22,13 @@ const e = {
|
|
|
22
22
|
Model: "模型",
|
|
23
23
|
"Auto-install IDE extension": "自动安装 IDE 扩展",
|
|
24
24
|
"Enable Claude in Chrome by default": "默认启用 Chrome 中的 Claude",
|
|
25
|
+
Usage: "使用量",
|
|
26
|
+
Status: "状态",
|
|
27
|
+
Config: "配置",
|
|
25
28
|
"Search settings...": "搜索设置",
|
|
26
29
|
" more above": " 条在上方",
|
|
27
30
|
" more below": " 条在下方",
|
|
31
|
+
"more below": "条在下方",
|
|
28
32
|
"Esc to cancel": "Esc 取消",
|
|
29
33
|
"Edit and press Enter to retry, or Esc to cancel": "编辑后按 Enter 重试,或按 Esc 取消",
|
|
30
34
|
"Enter to submit · Esc to cancel": "Enter 提交 · Esc 取消",
|
|
@@ -34,6 +38,8 @@ const e = {
|
|
|
34
38
|
"Esc to cancel · r to cycle dates": "Esc 取消 · r 切换日期",
|
|
35
39
|
"· Esc to cancel": "· Esc 取消",
|
|
36
40
|
"Enter to confirm · Esc to cancel": "Enter 确认 · Esc 取消",
|
|
41
|
+
"/usage is only available for subscription plans.": "/usage 仅适用于订阅计划",
|
|
42
|
+
// 主要
|
|
37
43
|
"Welcome back!": "欢迎回来!",
|
|
38
44
|
"API Usage Billing": "API 使用计费",
|
|
39
45
|
"Tips for getting started": "入门技巧",
|
|
@@ -102,7 +108,22 @@ const e = {
|
|
|
102
108
|
"Visualize current context usage as a colored grid": "以彩色网格可视化当前上下文用量",
|
|
103
109
|
'Use this skill to configure the Claude Code harness via settings.json. Automated behaviors ("from now on when X", "each time X", "whenever X", "before/after X") require hooks configured in settings.json - the harness executes these, not Claude, so memory/preferences cannot fulfill them. Also use for: permissions ("allow X", "add permission", "move permission to"), env vars ("set X=Y"), hook troubleshooting, or any changes to settings.json/settings.local.json files. Examples: "allow npm commands", "add bq permission to global settings", "move permission to user settings", "set DEBUG=true", "when claude stops show X". For simple settings like theme/model, use Config tool.': '使用此技能通过 settings.json 配置 Claude Code 运行环境。自动化行为("从现在起每当 X"、"每次 X"、"每当 X"、"在 X 之前/之后")需要在 settings.json 中配置钩子——由运行环境执行,而非 Claude,因此记忆/偏好设置无法实现这类需求。也适用于:权限管理("允许 X"、"添加权限"、"移动权限至")、环境变量("设置 X=Y")、钩子排查,或对 settings.json/settings.local.json 的任何修改。示例:"允许 npm 命令"、"将 bq 权限添加到全局设置"、"将权限移至用户设置"、"设置 DEBUG=true"、"当 Claude 停止时显示 X"。如需修改主题/模型等简单设置,请使用 Config 工具。',
|
|
104
110
|
"`Toggle fast mode (${Ok} only)`": "`切换快速模式(仅限 ${Ok})`",
|
|
105
|
-
"`Set the AI model for Claude Code (currently ${Ej(JK())})`": "`设置 Claude Code 的 AI 模型(当前模型:${Ej(JK())})`"
|
|
111
|
+
"`Set the AI model for Claude Code (currently ${Ej(JK())})`": "`设置 Claude Code 的 AI 模型(当前模型:${Ej(JK())})`",
|
|
112
|
+
// 其他
|
|
113
|
+
"Type to filter": "输入以过滤",
|
|
114
|
+
"Type to filter · Enter/↓ select · ↑ tabs · Esc clear": "输入以过滤 · Enter/↓ 选项 · ↑ 切换选项卡 · Esc 清除",
|
|
115
|
+
"(↓ to select)": "(↓ 选择选项)",
|
|
116
|
+
'{shortcut:"Enter/↓",action:"select"}': '{shortcut:"Enter/↓",action:"选择"}',
|
|
117
|
+
'{shortcut:"↑",action:"tabs"}': '{shortcut:"↑",action:"切换选项卡"}',
|
|
118
|
+
'{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"}': '{action:"confirm:no",context:"Settings",fallback:"Esc",description:"清除"}',
|
|
119
|
+
'{shortcut:"Enter",action:"save"}': '{shortcut:"Enter",action:"保存"}',
|
|
120
|
+
'{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"}': '{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"取消"}',
|
|
121
|
+
'{shortcut:"Enter",action:"search"}': '{shortcut:"Enter",action:"搜索"}',
|
|
122
|
+
'{action:"select:accept",context:"Settings",fallback:"Space",description:"change"}': '{action:"select:accept",context:"Settings",fallback:"Space",description:"改变"}',
|
|
123
|
+
'{action:"settings:close",context:"Settings",fallback:"Enter",description:"save"}': '{action:"settings:close",context:"Settings",fallback:"Enter",description:"保存"}',
|
|
124
|
+
'{action:"settings:search",context:"Settings",fallback:"/",description:"search"}': '{action:"settings:search",context:"Settings",fallback:"/",description:"搜索"}',
|
|
125
|
+
'{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"}': '{action:"confirm:no",context:"Settings",fallback:"Esc",description:"取消"}',
|
|
126
|
+
'{shortcut:"Esc",action:"cancel"}': '{shortcut:"Esc",action:"取消"}'
|
|
106
127
|
};
|
|
107
128
|
export {
|
|
108
129
|
e as default
|