@hit-sudomaker/ccw 0.4.1 → 0.5.1
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/README.md +54 -52
- package/assets/ccline/config.toml +34 -34
- package/assets/skills/amirc-research/SKILL.md +39 -39
- package/dist/ccline.js +149 -617
- package/dist/ccw.js +166 -381
- package/dist/claude-program.js +191 -0
- package/dist/claude.js +177 -0
- package/dist/cleanup.js +148 -362
- package/dist/effect-machine.js +65 -0
- package/dist/frozen-json.js +99 -0
- package/dist/instance.js +71 -0
- package/dist/machine.js +610 -572
- package/dist/main.js +66 -67
- package/dist/management-catalog.js +56 -56
- package/dist/messages.js +182 -0
- package/dist/model.js +37 -155
- package/dist/npm-registry.js +108 -29
- package/dist/officecli.js +270 -407
- package/dist/planning.js +141 -0
- package/dist/plugins.js +134 -319
- package/dist/program-channels.js +94 -393
- package/dist/program-operations.js +155 -0
- package/dist/read-machine.js +94 -38
- package/dist/render.js +345 -396
- package/dist/settings.js +380 -0
- package/dist/skill-files.js +182 -96
- package/dist/skills.js +393 -259
- package/dist/terminal-view.js +303 -455
- package/dist/terminal.js +207 -508
- package/dist/work.js +135 -0
- package/package.json +1 -2
- package/dist/claude-config.js +0 -349
- package/dist/collect.js +0 -147
- package/dist/errors.js +0 -140
- package/dist/legacy-amirc.js +0 -60
- package/dist/mcp.js +0 -317
- package/dist/programs.js +0 -797
- package/dist/run-presentation.js +0 -157
- package/dist/storage.js +0 -44
- package/dist/titles.js +0 -46
- package/dist/warnings.js +0 -6
package/dist/main.js
CHANGED
|
@@ -2,28 +2,13 @@
|
|
|
2
2
|
import os from 'node:os';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { createCcw } from './ccw.js';
|
|
5
|
-
import {
|
|
5
|
+
import { acquireInstance } from './instance.js';
|
|
6
6
|
import { createMachine, errorCode, isObject } from './machine.js';
|
|
7
7
|
import { BRAND, describeInspection, HELP_TEXT, startupFailure } from './render.js';
|
|
8
8
|
import { runTerminal } from './terminal.js';
|
|
9
9
|
import { createTerminal } from './terminal-view.js';
|
|
10
|
-
/**
|
|
11
|
-
const CLI_MODES = ['--help', '--version', '--inspect'
|
|
12
|
-
const CLI_MODE_VALUES = CLI_MODES;
|
|
13
|
-
const isMode = (value) => CLI_MODE_VALUES.includes(value);
|
|
14
|
-
function parseArguments(args) {
|
|
15
|
-
let mode;
|
|
16
|
-
let hasDetails = false;
|
|
17
|
-
for (const argument of args) {
|
|
18
|
-
if (argument === '--details' && !hasDetails)
|
|
19
|
-
hasDetails = true;
|
|
20
|
-
else if (isMode(argument) && mode === undefined)
|
|
21
|
-
mode = argument;
|
|
22
|
-
else
|
|
23
|
-
throw new Error('unknown-argument');
|
|
24
|
-
}
|
|
25
|
-
return { mode, hasDetails };
|
|
26
|
-
}
|
|
10
|
+
/** 可与 --details 组合的互斥命令行模式 */
|
|
11
|
+
const CLI_MODES = ['--help', '--version', '--inspect'];
|
|
27
12
|
async function main() {
|
|
28
13
|
const { mode: argument, hasDetails } = parseArguments(process.argv.slice(2));
|
|
29
14
|
if (argument === '--version') {
|
|
@@ -34,60 +19,74 @@ async function main() {
|
|
|
34
19
|
process.stdout.write(HELP_TEXT);
|
|
35
20
|
return;
|
|
36
21
|
}
|
|
37
|
-
|
|
38
|
-
throw new Error('interactive-terminal-required');
|
|
39
|
-
if (process.platform !== 'win32' && process.platform !== 'darwin' && process.platform !== 'linux')
|
|
40
|
-
throw new Error('unsupported-platform');
|
|
41
|
-
const home = os.homedir();
|
|
42
|
-
const claudeConfig = process.env.CLAUDE_CONFIG_DIR?.trim();
|
|
43
|
-
const claudeRoot = path.resolve(claudeConfig || path.join(home, '.claude'));
|
|
44
|
-
const report = process.platform === 'linux' ? process.report.getReport() : undefined;
|
|
45
|
-
const machineArch = os.machine();
|
|
46
|
-
const libc = isObject(report) && isObject(report.header) && typeof report.header.glibcVersionRuntime === 'string'
|
|
47
|
-
? 'glibc'
|
|
48
|
-
: 'musl';
|
|
49
|
-
const abort = new AbortController();
|
|
50
|
-
const stop = () => {
|
|
51
|
-
abort.abort();
|
|
52
|
-
};
|
|
53
|
-
const terminal = argument === undefined ? createTerminal(stop) : undefined;
|
|
54
|
-
const options = {
|
|
55
|
-
machine: createMachine(process.env, process.cwd(), terminal ? work => terminal.handoff(work) : undefined),
|
|
56
|
-
home,
|
|
57
|
-
claudeRoot,
|
|
58
|
-
cclineRoot: path.resolve(process.env.CCLINE_HOME?.trim() || path.join(home, '.claude/ccline')),
|
|
59
|
-
claudeState: path.join(claudeConfig ? claudeRoot : home, '.claude.json'),
|
|
60
|
-
inheritedKeys: Object.keys(process.env),
|
|
61
|
-
...(process.platform === 'win32' && process.env.LOCALAPPDATA ? { localAppData: process.env.LOCALAPPDATA } : {}),
|
|
62
|
-
...(process.platform === 'win32' && process.env.SCOOP ? { scoopRoot: process.env.SCOOP } : {}),
|
|
63
|
-
arch: /arm64|aarch64/i.test(machineArch) ? 'arm64' : /x86_64|amd64|x64/i.test(machineArch) ? 'x64' : process.arch,
|
|
64
|
-
...(process.platform === 'linux' ? { libc } : {}),
|
|
65
|
-
platform: process.platform,
|
|
66
|
-
};
|
|
67
|
-
const ccw = createCcw(options);
|
|
68
|
-
if (argument === '--inspect') {
|
|
69
|
-
const view = await ccw.inspect();
|
|
70
|
-
process.stdout.write(`${describeInspection(view, hasDetails)}\n`);
|
|
71
|
-
if (view.problems.length || view.items.some(item => item.problem))
|
|
72
|
-
process.exitCode = 1;
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
if (argument === '--collect-logs') {
|
|
76
|
-
const collected = await collectLogs(ccw, options);
|
|
77
|
-
process.stdout.write(`${collected.summary}\n`);
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
if (!terminal)
|
|
81
|
-
return;
|
|
82
|
-
process.on('SIGINT', stop);
|
|
22
|
+
const instance = await acquireInstance();
|
|
83
23
|
try {
|
|
84
|
-
|
|
24
|
+
if (argument === undefined && !process.stdin.isTTY)
|
|
25
|
+
throw new Error('interactive-terminal-required');
|
|
26
|
+
if (process.platform !== 'win32' && process.platform !== 'darwin' && process.platform !== 'linux')
|
|
27
|
+
throw new Error('unsupported-platform');
|
|
28
|
+
const home = os.homedir();
|
|
29
|
+
const claudeConfig = process.env.CLAUDE_CONFIG_DIR?.trim();
|
|
30
|
+
const claudeRoot = path.resolve(claudeConfig || path.join(home, '.claude'));
|
|
31
|
+
const report = process.platform === 'linux' ? process.report.getReport() : undefined;
|
|
32
|
+
const machineArch = os.machine();
|
|
33
|
+
const libc = isObject(report) && isObject(report.header) && typeof report.header.glibcVersionRuntime === 'string'
|
|
34
|
+
? 'glibc'
|
|
35
|
+
: 'musl';
|
|
36
|
+
const abort = new AbortController();
|
|
37
|
+
const stop = () => {
|
|
38
|
+
abort.abort();
|
|
39
|
+
};
|
|
40
|
+
const terminal = argument === undefined ? createTerminal(stop) : undefined;
|
|
41
|
+
const options = {
|
|
42
|
+
machine: createMachine(process.env, process.cwd(), terminal ? work => terminal.handoff(work) : undefined),
|
|
43
|
+
home,
|
|
44
|
+
claudeRoot,
|
|
45
|
+
cclineRoot: path.resolve(process.env.CCLINE_HOME?.trim() || path.join(home, '.claude/ccline')),
|
|
46
|
+
claudeState: path.join(claudeConfig ? claudeRoot : home, '.claude.json'),
|
|
47
|
+
inheritedKeys: Object.keys(process.env),
|
|
48
|
+
...(process.platform === 'win32' && process.env.LOCALAPPDATA ? { localAppData: process.env.LOCALAPPDATA } : {}),
|
|
49
|
+
arch: /arm64|aarch64/i.test(machineArch) ? 'arm64' : /x86_64|amd64|x64/i.test(machineArch) ? 'x64' : process.arch,
|
|
50
|
+
...(process.platform === 'linux' ? { libc } : {}),
|
|
51
|
+
platform: process.platform,
|
|
52
|
+
};
|
|
53
|
+
const ccw = createCcw(options);
|
|
54
|
+
if (argument === '--inspect') {
|
|
55
|
+
const view = await ccw.inspect();
|
|
56
|
+
process.stdout.write(`${describeInspection(view, hasDetails)}\n`);
|
|
57
|
+
if (view.problems.length || view.items.some(item => item.problem))
|
|
58
|
+
process.exitCode = 1;
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (!terminal)
|
|
62
|
+
return;
|
|
63
|
+
process.on('SIGINT', stop);
|
|
64
|
+
try {
|
|
65
|
+
await runTerminal(ccw, terminal, abort.signal, hasDetails);
|
|
66
|
+
}
|
|
67
|
+
finally {
|
|
68
|
+
process.off('SIGINT', stop);
|
|
69
|
+
await terminal.close();
|
|
70
|
+
}
|
|
85
71
|
}
|
|
86
72
|
finally {
|
|
87
|
-
|
|
88
|
-
await terminal.close();
|
|
73
|
+
await instance.release();
|
|
89
74
|
}
|
|
90
75
|
}
|
|
76
|
+
function parseArguments(args) {
|
|
77
|
+
let mode;
|
|
78
|
+
let hasDetails = false;
|
|
79
|
+
for (const argument of args) {
|
|
80
|
+
if (argument === '--details' && !hasDetails)
|
|
81
|
+
hasDetails = true;
|
|
82
|
+
else if (isMode(argument) && mode === undefined)
|
|
83
|
+
mode = argument;
|
|
84
|
+
else
|
|
85
|
+
throw new Error('unknown-argument');
|
|
86
|
+
}
|
|
87
|
+
return { mode, hasDetails };
|
|
88
|
+
}
|
|
89
|
+
const isMode = (value) => CLI_MODES.some(mode => mode === value);
|
|
91
90
|
main().catch(error => {
|
|
92
91
|
process.stderr.write(`${startupFailure(errorCode(error), process.argv.slice(2).includes('--details'))}\n`);
|
|
93
92
|
process.exitCode = 1;
|
|
@@ -1,52 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
repository: 'Haleclipse/CCometixLine',
|
|
10
|
-
acceptedRepositories: ['Haleclipse/CCometixLine'],
|
|
11
|
-
},
|
|
1
|
+
// 目录只定义对象、来源与名称;各业务域负责安装、配置和依赖
|
|
2
|
+
/** Skills 官方 CLI 的固定调用前缀,安装和只读白名单共用 */
|
|
3
|
+
export const SKILLS_CLI = ['exec', '--yes', '--package=skills@1.8.1', '--', 'skills'];
|
|
4
|
+
/** 受管插件市场及允许识别为同一来源的仓库 */
|
|
5
|
+
export const PLUGIN_MARKETPLACE = {
|
|
6
|
+
market: 'claude-plugins-official',
|
|
7
|
+
repository: 'anthropics/claude-plugins-official',
|
|
8
|
+
acceptedRepositories: ['anthropics/claude-plugins-official', 'anthropics/claude-plugins-public'],
|
|
12
9
|
};
|
|
13
|
-
|
|
10
|
+
/** 可管理插件的协议标识与显示标题 */
|
|
11
|
+
export const PLUGIN_SPECS = {
|
|
14
12
|
'code-simplifier@claude-plugins-official': {
|
|
15
13
|
title: 'Code Simplifier',
|
|
16
|
-
source: 'official',
|
|
17
|
-
exposure: 'offer',
|
|
18
14
|
},
|
|
19
15
|
'frontend-design@claude-plugins-official': {
|
|
20
16
|
title: 'Frontend Design',
|
|
21
|
-
source: 'official',
|
|
22
|
-
exposure: 'offer',
|
|
23
17
|
},
|
|
24
18
|
'github@claude-plugins-official': {
|
|
25
19
|
title: 'GitHub',
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
},
|
|
21
|
+
'context7@claude-plugins-official': {
|
|
22
|
+
title: 'Context7',
|
|
28
23
|
},
|
|
29
24
|
'mcp-server-dev@claude-plugins-official': {
|
|
30
25
|
title: 'MCP Server Dev',
|
|
31
|
-
source: 'official',
|
|
32
|
-
exposure: 'offer',
|
|
33
26
|
},
|
|
34
27
|
'skill-creator@claude-plugins-official': {
|
|
35
28
|
title: 'Skill Creator',
|
|
36
|
-
source: 'official',
|
|
37
|
-
exposure: 'offer',
|
|
38
29
|
},
|
|
39
|
-
'
|
|
40
|
-
title: '
|
|
41
|
-
source: 'ccline',
|
|
42
|
-
exposure: 'discovered',
|
|
30
|
+
'serena@claude-plugins-official': {
|
|
31
|
+
title: 'Serena',
|
|
43
32
|
},
|
|
44
33
|
};
|
|
45
|
-
/** 技能套件目录。隐含不变量:repository 在目录内全局唯一(不与其他套件共享仓库)——
|
|
46
|
-
* 已装成员的套件归属与更新资格均以 repository 单字段匹配(skills.ts suiteOfRecord/memberSuite) */
|
|
47
34
|
/** 技能入口文件名:载荷校验、套件成员发现与随包技能读取共用 */
|
|
48
35
|
export const SKILL_ENTRY = 'SKILL.md';
|
|
49
|
-
|
|
36
|
+
/** 技能套件的固定仓库和源目录;仓库匹配用于分组,修改资格还须核对目录摘要 */
|
|
37
|
+
export const SKILL_SUITES = {
|
|
50
38
|
mattpocock: {
|
|
51
39
|
title: 'Matt Pocock/Skills',
|
|
52
40
|
repository: 'https://github.com/mattpocock/skills',
|
|
@@ -58,11 +46,13 @@ export const skillSuites = {
|
|
|
58
46
|
folder: '.agents/skills',
|
|
59
47
|
},
|
|
60
48
|
};
|
|
61
|
-
|
|
49
|
+
/** 预先登记的套件成员及其所属套件 */
|
|
50
|
+
export const SKILL_MEMBERS = {
|
|
62
51
|
'ssre2-design': { title: 'ssre2-design', suite: 'ssre2' },
|
|
63
52
|
'ssre2-review': { title: 'ssre2-review', suite: 'ssre2' },
|
|
64
53
|
};
|
|
65
|
-
|
|
54
|
+
/** 随包技能的资源位置、来源标识和版本 */
|
|
55
|
+
export const BUNDLED_SKILLS = {
|
|
66
56
|
'amirc-research': {
|
|
67
57
|
title: 'AMIRC Research Skill',
|
|
68
58
|
asset: 'skills/amirc-research/SKILL.md',
|
|
@@ -70,32 +60,42 @@ export const bundledSkills = {
|
|
|
70
60
|
revision: 'bundled',
|
|
71
61
|
},
|
|
72
62
|
};
|
|
73
|
-
export const mcpSpecs = {
|
|
74
|
-
context7: {
|
|
75
|
-
title: 'Context7',
|
|
76
|
-
registration: { type: 'http', url: 'https://mcp.context7.com/mcp' },
|
|
77
|
-
},
|
|
78
|
-
serena: {
|
|
79
|
-
title: 'Serena',
|
|
80
|
-
release: {
|
|
81
|
-
package: 'serena-agent',
|
|
82
|
-
metadataUrl: 'https://pypi.org/pypi/serena-agent/json',
|
|
83
|
-
python: '3.13',
|
|
84
|
-
},
|
|
85
|
-
registration: {
|
|
86
|
-
args: ['start-mcp-server', '--context', 'claude-code', '--project-from-cwd', '--enable-web-dashboard', 'false'],
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
};
|
|
90
|
-
/** 抑制 OfficeCLI 自更新/自动安装的固定旗标:MCP 注册模板与版本探测共用同一份事实 */
|
|
91
|
-
const officeSuppressSelfUpdate = { OFFICECLI_NO_AUTO_INSTALL: '1', OFFICECLI_SKIP_UPDATE: '1' };
|
|
92
63
|
/** OfficeCLI 上游仓库标识:目录登记、发布/标签 API 与下载 URL 派生共用 */
|
|
93
64
|
export const OFFICECLI_REPO_SLUG = 'iOfficeAI/OfficeCLI';
|
|
94
|
-
|
|
95
|
-
|
|
65
|
+
/** OfficeCLI 的自动更新抑制、下载镜像和技能来源配置 */
|
|
66
|
+
export const OFFICE_INTEGRATION = {
|
|
67
|
+
suppressSelfUpdate: { OFFICECLI_NO_AUTO_INSTALL: '1', OFFICECLI_SKIP_UPDATE: '1' },
|
|
68
|
+
releaseMirror: 'https://d.officecli.ai',
|
|
96
69
|
skill: { repository: `https://github.com/${OFFICECLI_REPO_SLUG}`, folder: 'skills/officecli' },
|
|
97
|
-
mcp: {
|
|
98
|
-
args: ['mcp'],
|
|
99
|
-
env: officeSuppressSelfUpdate,
|
|
100
|
-
},
|
|
101
70
|
};
|
|
71
|
+
/** 将分类目录映射为带前缀的标题索引 */
|
|
72
|
+
const prefixedTitles = (prefix, specs) => Object.fromEntries(Object.entries(specs).map(([name, spec]) => [`${prefix}:${name}`, spec.title]));
|
|
73
|
+
/** 已登记条目的显示标题表 */
|
|
74
|
+
const KNOWN_TITLES = {
|
|
75
|
+
claude: 'Claude Code',
|
|
76
|
+
settings: '模型配置',
|
|
77
|
+
ccline: 'CCometixLine',
|
|
78
|
+
officecli: 'OfficeCLI',
|
|
79
|
+
plan: '操作计划',
|
|
80
|
+
'data:cache': '缓存与日志',
|
|
81
|
+
'data:history': '会话与历史记录',
|
|
82
|
+
'data:memory': '项目记忆',
|
|
83
|
+
'data:backups': '备份文件',
|
|
84
|
+
'data:runtime': '运行数据',
|
|
85
|
+
...prefixedTitles('plugin', PLUGIN_SPECS),
|
|
86
|
+
...prefixedTitles('skill-set', SKILL_SUITES),
|
|
87
|
+
...prefixedTitles('skill', { ...SKILL_MEMBERS, ...BUNDLED_SKILLS }),
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* 读取已登记条目的显示标题
|
|
91
|
+
*
|
|
92
|
+
* @param fallback - 未登记时返回的文案,省略时使用原始键
|
|
93
|
+
* @remarks 标题匹配不证明来源身份,也不授予修改资格
|
|
94
|
+
*/
|
|
95
|
+
export function knownTitle(key, fallback = key) {
|
|
96
|
+
return catalogEntry(KNOWN_TITLES, key) ?? fallback;
|
|
97
|
+
}
|
|
98
|
+
/** 按自有键读取目录项,不接管原型链上的同名属性 */
|
|
99
|
+
export function catalogEntry(catalog, key) {
|
|
100
|
+
return Object.hasOwn(catalog, key) ? catalog[key] : undefined;
|
|
101
|
+
}
|
package/dist/messages.js
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/** 原因码与事实码的共用显示文案;严重性由实际结果决定 */
|
|
2
|
+
export const MESSAGES = {
|
|
3
|
+
'data-size': '可清理数据',
|
|
4
|
+
'data-delete': '删除数据',
|
|
5
|
+
'data-root': '清理目录',
|
|
6
|
+
'data-permanent': '永久删除所选数据',
|
|
7
|
+
'data-keep-configuration': '保留程序、配置与凭据',
|
|
8
|
+
'data-file-removed': '已删除数据文件',
|
|
9
|
+
'data-cleared': '所选数据已清理',
|
|
10
|
+
'data-links-kept': '保留共享链接及其目标',
|
|
11
|
+
'cleanup-type-changed': '数据位置类型发生变化,请重新检查',
|
|
12
|
+
'cleanup-incomplete': '仍有新增或未清理的数据,请重新检查',
|
|
13
|
+
'external-program-preserved': '外部安装仅供查看,请用原安装方式管理',
|
|
14
|
+
'marketplace-add-failed': '添加官方插件市场失败',
|
|
15
|
+
'npm-changed': 'npm 已变化',
|
|
16
|
+
'inspection-timeout': '检查超时',
|
|
17
|
+
'verification-timeout': '未能在时限内确认状态,请重新检查状态后再决定是否重试',
|
|
18
|
+
'source-timeout': '请求超时',
|
|
19
|
+
'program-removal-unconfirmed': '无法确认移除结果',
|
|
20
|
+
'npm-uninstall-failed': '移除 npm 程序失败',
|
|
21
|
+
'program-installation-unconfirmed': '无法确认安装结果',
|
|
22
|
+
'program-identity-unconfirmed': '无法确认程序身份',
|
|
23
|
+
'program-update-conflict': '目标已变化',
|
|
24
|
+
'program-scope-unconfirmed': '无法确认包管理器范围',
|
|
25
|
+
'user-path-save-failed': '保存用户命令路径失败',
|
|
26
|
+
'user-home-unconfirmed': '无法确认用户目录',
|
|
27
|
+
'release-asset-unavailable': '发布包缺少当前平台的程序文件',
|
|
28
|
+
'release-checksum-unavailable': '发布包缺少校验信息',
|
|
29
|
+
'release-checksum-mismatch': '下载文件的校验值不符',
|
|
30
|
+
'unsupported-architecture': '处理器架构不支持',
|
|
31
|
+
'source-metadata-unavailable': '无法读取或保存来源记录',
|
|
32
|
+
'api-fields-required': '缺少 Base URL 和 API Key',
|
|
33
|
+
'base-url-required': '缺少 Base URL',
|
|
34
|
+
'plan-unavailable': '计划已失效',
|
|
35
|
+
'operation-in-progress': '另一批操作进行中',
|
|
36
|
+
'operation-record-invalid': '操作数据无效',
|
|
37
|
+
'user-path-unconfirmed': '无法确认用户命令路径',
|
|
38
|
+
'read-command-not-allowed': '读取阶段拒绝执行未登记的观察命令',
|
|
39
|
+
'effect-not-authorized': '执行资格已失效',
|
|
40
|
+
'empty-selection': '未选择变更',
|
|
41
|
+
'duplicate-selection': '重复选择了同一项目',
|
|
42
|
+
'npm-inspection-failed': '读取 npm 安装记录失败',
|
|
43
|
+
'invalid-npm-result': 'npm 返回的安装记录格式无效',
|
|
44
|
+
'npm-not-found': '找不到 npm',
|
|
45
|
+
'npm-install-failed': '安装 npm 程序失败',
|
|
46
|
+
'command-failed': '执行命令失败',
|
|
47
|
+
'invalid-settings': '配置文件格式无效',
|
|
48
|
+
'target-changed': '目标已变化',
|
|
49
|
+
'settings-changed': '配置已变化',
|
|
50
|
+
'program-changed': '程序已变化',
|
|
51
|
+
'program-not-ready': '命令完成但程序未就绪',
|
|
52
|
+
'binary-version-mismatch': '程序版本与预览不符',
|
|
53
|
+
'target-remains': '目标仍存在',
|
|
54
|
+
'newer-version-preserved': '保留较新版本',
|
|
55
|
+
'channel-not-supported': '此安装渠道不受支持',
|
|
56
|
+
'appearance-changed': '配置已变化',
|
|
57
|
+
'asset-missing': '运行包资产缺失',
|
|
58
|
+
'claude-not-installed': 'Claude 程序缺失',
|
|
59
|
+
'plugin-command-failed': '执行插件命令失败',
|
|
60
|
+
'plugin-not-ready': '插件未就绪',
|
|
61
|
+
'credential-required': '缺少 API Key',
|
|
62
|
+
'invalid-base-url': '地址需使用 HTTP 或 HTTPS,不能包含用户名、密码、查询参数或片段',
|
|
63
|
+
'inherited-configuration-conflict': '外部环境变量覆盖设置',
|
|
64
|
+
'login-failed': '登录官方账号失败',
|
|
65
|
+
'login-unconfirmed': '无法确认登录状态',
|
|
66
|
+
'local-edits-preserved': '来源未知或内容已修改',
|
|
67
|
+
'source-version-unavailable': '无法确认资源对应版本',
|
|
68
|
+
'source-unavailable': '无法获取资源',
|
|
69
|
+
'source-registry-unconfirmed': '无法确定 npm 来源',
|
|
70
|
+
'source-empty': '预期资源缺失',
|
|
71
|
+
'skill-payload-missing': '下载内容缺少有效 SKILL.md',
|
|
72
|
+
'skill-entry-missing': '技能目录缺少有效 SKILL.md,请重新安装',
|
|
73
|
+
'skill-name-conflict': '同名技能导致目录未知',
|
|
74
|
+
'not-in-update-catalog': '不在 CCW 清单;可解除接入',
|
|
75
|
+
'file-too-large': '文件过大',
|
|
76
|
+
'stable-release-unavailable': '来源不可用',
|
|
77
|
+
'installation-state-unconfirmed': '无法读取安装状态',
|
|
78
|
+
'program-version-unconfirmed': '无法确认程序版本',
|
|
79
|
+
'linked-parent': '保留目录:路径经过共享链接',
|
|
80
|
+
'not-regular-file': '保留目标:链接或特殊文件',
|
|
81
|
+
'action-unavailable': '操作不受支持',
|
|
82
|
+
'invalid-release': '发布版本信息不符合要求',
|
|
83
|
+
'unsupported-ccline-release': '保留 CCometixLine:版本需要新兼容验证',
|
|
84
|
+
'marketplace-source-conflict': '保留同名市场:来源不同',
|
|
85
|
+
'overlapping-selection': '与同批另一项的操作范围重叠',
|
|
86
|
+
'integration-source-conflict': '同名入口与程序关系未知',
|
|
87
|
+
'claude-running': 'Claude 正在运行',
|
|
88
|
+
'process-state-unconfirmed': '无法确认 Claude 进程状态',
|
|
89
|
+
'backup-exists': '目标已存在',
|
|
90
|
+
'inspection-failed': '检查内容失败',
|
|
91
|
+
'invalid-config-root': '配置目录无效',
|
|
92
|
+
'invalid-command': '调用参数无效',
|
|
93
|
+
'invalid-npm-command': '命令不受支持',
|
|
94
|
+
'invalid-npm-root': 'npm 全局目录无效',
|
|
95
|
+
'invalid-plugin-record': '插件安装记录格式无效',
|
|
96
|
+
'invalid-program-entry': '入口无效',
|
|
97
|
+
'invalid-source': '配置无效',
|
|
98
|
+
'invalid-source-path': '路径无效',
|
|
99
|
+
'invalid-source-url': '地址无效',
|
|
100
|
+
'invalid-target': '路径无效',
|
|
101
|
+
'source-link-unsupported': '不支持共享链接',
|
|
102
|
+
'source-too-large': '内容过大',
|
|
103
|
+
'special-file': '不支持特殊文件',
|
|
104
|
+
'unknown-selection': '所选内容不受支持',
|
|
105
|
+
'unknown-argument': '参数无效',
|
|
106
|
+
'interactive-terminal-required': '需要交互终端',
|
|
107
|
+
'instance-already-running': 'CCW 已在运行',
|
|
108
|
+
'instance-lock-unavailable': '无法取得启动资格',
|
|
109
|
+
'unsupported-platform': '系统不支持',
|
|
110
|
+
EEXIST: '同名目标存在或另一轮写入进行中',
|
|
111
|
+
EACCES: '权限不足',
|
|
112
|
+
EPERM: '目标占用或权限不足',
|
|
113
|
+
ENOENT: '目标不存在',
|
|
114
|
+
'operation-failed': '原因未知',
|
|
115
|
+
'inspection-incomplete': '检查不完整',
|
|
116
|
+
'new-session-required': '新会话或重新加载后生效',
|
|
117
|
+
'program-uninstall': '移除程序',
|
|
118
|
+
'program-removed': '移除程序',
|
|
119
|
+
'program-copy-remove': '删除程序文件',
|
|
120
|
+
'program-user-path': '配置用户命令路径',
|
|
121
|
+
'program-file-ready': '写入程序文件',
|
|
122
|
+
'program-not-installed': '程序未安装',
|
|
123
|
+
'program-missing': '程序入口缺失',
|
|
124
|
+
'program-kept': '保留程序',
|
|
125
|
+
'program-exists': '程序存在',
|
|
126
|
+
'program-version': '程序版本',
|
|
127
|
+
'not-installed': '未安装',
|
|
128
|
+
'skill-members-present': '套件在本机已发现的成员数量',
|
|
129
|
+
'not-connected': '未接入',
|
|
130
|
+
'program-install': '安装程序',
|
|
131
|
+
'program-update': '更新程序',
|
|
132
|
+
'keep-user-data': '保留用户数据',
|
|
133
|
+
'program-ready': '程序就绪',
|
|
134
|
+
'plugin-installed': '插件已安装',
|
|
135
|
+
'plugin-not-installed': '插件未安装',
|
|
136
|
+
'declared-enabled': '已启用',
|
|
137
|
+
'declared-disabled': '已停用',
|
|
138
|
+
'plugin-disable': '停用用户插件',
|
|
139
|
+
'keep-plugin-files': '保留插件文件和市场',
|
|
140
|
+
'plugin-disabled': '停用用户插件',
|
|
141
|
+
'plugin-install': '安装插件',
|
|
142
|
+
'plugin-update': '更新插件',
|
|
143
|
+
'plugin-ready': '安装插件',
|
|
144
|
+
'api-configured': '已有连接字段',
|
|
145
|
+
'official-connection': '默认连接',
|
|
146
|
+
'skills-refresh': '清理此来源的旧技能并通过 Skills CLI 重新安装',
|
|
147
|
+
'skill-removed': '已清理旧技能',
|
|
148
|
+
'skill-source-unavailable': '无法读取技能来源,保留原有技能',
|
|
149
|
+
'skill-command-failed': 'Skills CLI 安装失败',
|
|
150
|
+
'skill-remove-failed': '旧技能未能移除,已停止重装;请检查目录占用或权限',
|
|
151
|
+
'skill-cli-output-invalid': 'Skills CLI 返回格式无法确认',
|
|
152
|
+
'skill-install-unconfirmed': '无法确认技能安装结果',
|
|
153
|
+
'settings-edit': '修改设置',
|
|
154
|
+
'settings-disconnect': '解除模型连接',
|
|
155
|
+
'settings-saved': '保存设置',
|
|
156
|
+
'login-browser': '打开官方登录',
|
|
157
|
+
'logged-in': '确认登录',
|
|
158
|
+
'entry-exists': '读取入口存在',
|
|
159
|
+
'entry-disable': '移出 Claude 读取位置',
|
|
160
|
+
'preserved-at': '保留原内容',
|
|
161
|
+
'keep-link-target': '保留链接目标和共享源',
|
|
162
|
+
'entry-disabled': '解除读取接入;保留原内容',
|
|
163
|
+
'skill-install': '复制技能和资源',
|
|
164
|
+
'skill-installed': '写入技能资源',
|
|
165
|
+
'skill-source-repair': '补记技能来源',
|
|
166
|
+
'skill-source-recorded': '补记技能来源',
|
|
167
|
+
disconnected: '解除 Claude 状态栏接入',
|
|
168
|
+
'no-connection': '无可移除的 Claude 入口或声明',
|
|
169
|
+
connected: 'Claude 状态栏已接入',
|
|
170
|
+
'appearance-copied': '复制 CCW 外观配置',
|
|
171
|
+
'appearance-kept': '保留外观配置',
|
|
172
|
+
'ccline-detach': '解除 CCometixLine 接入;保留程序与外观',
|
|
173
|
+
'ccline-program-update': '更新 npm 程序',
|
|
174
|
+
'ccline-program-prepare': '准备 CCometixLine 程序',
|
|
175
|
+
'appearance-copy': '复制 CCW 外观配置',
|
|
176
|
+
'ccline-connect': '接入 Claude 状态栏',
|
|
177
|
+
cancelled: '停止后续操作',
|
|
178
|
+
'dependency-not-ready': '所需程序尚未通过核验,请先处理该程序的提示',
|
|
179
|
+
'unmatched-integration-kept': '保留同名入口:与程序关系未知',
|
|
180
|
+
'skill-current': '保留已有的有效技能内容,并复核准备时摘要;未确认与上游最新版是否一致',
|
|
181
|
+
'operation-unconfirmed': '无法确认操作结果',
|
|
182
|
+
};
|