ccjk 2.0.7 → 2.0.8
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.ja.md +6 -6
- package/README.ko.md +5 -5
- package/README.md +7 -7
- package/README.zh-CN.md +9 -9
- package/dist/chunks/simple-config.mjs +5 -3
- package/dist/cli.mjs +1246 -8
- package/dist/i18n/locales/en/notification.json +137 -0
- package/dist/i18n/locales/zh-CN/notification.json +137 -0
- package/package.json +2 -1
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Notification System",
|
|
3
|
+
"description": "Task completion notifications via Feishu, WeChat Work, Email, SMS",
|
|
4
|
+
|
|
5
|
+
"status.enabled": "Enabled",
|
|
6
|
+
"status.disabled": "Disabled",
|
|
7
|
+
"status.configured": "Configured",
|
|
8
|
+
"status.notConfigured": "Not Configured",
|
|
9
|
+
|
|
10
|
+
"channels.title": "Notification Channels",
|
|
11
|
+
"channels.feishu": "Feishu",
|
|
12
|
+
"channels.wechat": "WeChat Work",
|
|
13
|
+
"channels.email": "Email",
|
|
14
|
+
"channels.sms": "SMS",
|
|
15
|
+
"channels.noChannels": "No channels configured",
|
|
16
|
+
"channels.enabledCount": "{{count}} channel(s) enabled",
|
|
17
|
+
|
|
18
|
+
"config.title": "Configuration",
|
|
19
|
+
"config.wizard.title": "🔔 CCJK Notification Setup Wizard",
|
|
20
|
+
"config.wizard.welcome": "This wizard will help you configure task completion notifications.",
|
|
21
|
+
"config.wizard.step1": "Step 1: Generate Device Token",
|
|
22
|
+
"config.wizard.step2": "Step 2: Select Notification Channels",
|
|
23
|
+
"config.wizard.step3": "Step 3: Configure Channels",
|
|
24
|
+
"config.wizard.step4": "Step 4: Set Notification Threshold",
|
|
25
|
+
"config.wizard.step5": "Step 5: Test Notification",
|
|
26
|
+
"config.wizard.complete": "✅ Configuration Complete!",
|
|
27
|
+
"config.wizard.tokenGenerated": "Token generated: {{token}}",
|
|
28
|
+
|
|
29
|
+
"config.threshold.title": "Notification Threshold",
|
|
30
|
+
"config.threshold.description": "Send notification when task runs longer than:",
|
|
31
|
+
"config.threshold.minutes": "{{count}} minutes",
|
|
32
|
+
"config.threshold.hour": "1 hour",
|
|
33
|
+
"config.threshold.custom": "Custom",
|
|
34
|
+
|
|
35
|
+
"config.quietHours.title": "Quiet Hours",
|
|
36
|
+
"config.quietHours.description": "No notifications during these hours",
|
|
37
|
+
"config.quietHours.enabled": "Quiet hours enabled",
|
|
38
|
+
"config.quietHours.disabled": "Quiet hours disabled",
|
|
39
|
+
"config.quietHours.range": "{{start}}:00 - {{end}}:00",
|
|
40
|
+
|
|
41
|
+
"config.deviceToken.title": "Device Token",
|
|
42
|
+
"config.deviceToken.description": "Used for authentication with CCJK cloud service",
|
|
43
|
+
"config.deviceToken.regenerate": "Regenerate Token",
|
|
44
|
+
"config.deviceToken.regenerateConfirm": "Are you sure? This will invalidate the current token.",
|
|
45
|
+
|
|
46
|
+
"feishu.title": "Feishu Configuration",
|
|
47
|
+
"feishu.webhookUrl": "Webhook URL",
|
|
48
|
+
"feishu.webhookUrlPlaceholder": "https://open.feishu.cn/open-apis/bot/v2/hook/xxxxx",
|
|
49
|
+
"feishu.webhookUrlHelp": "Get this from Feishu bot settings",
|
|
50
|
+
"feishu.secret": "Secret Key (Optional)",
|
|
51
|
+
"feishu.secretHelp": "Used for webhook signature verification",
|
|
52
|
+
|
|
53
|
+
"wechat.title": "WeChat Work Configuration",
|
|
54
|
+
"wechat.corpId": "Corp ID",
|
|
55
|
+
"wechat.corpIdPlaceholder": "Your WeChat Work Corp ID",
|
|
56
|
+
"wechat.agentId": "Agent ID",
|
|
57
|
+
"wechat.agentIdPlaceholder": "Your application Agent ID",
|
|
58
|
+
"wechat.secret": "Secret",
|
|
59
|
+
"wechat.secretPlaceholder": "Your application Secret",
|
|
60
|
+
|
|
61
|
+
"email.title": "Email Configuration",
|
|
62
|
+
"email.address": "Email Address",
|
|
63
|
+
"email.addressPlaceholder": "your@email.com",
|
|
64
|
+
"email.addressHelp": "Notifications will be sent to this email",
|
|
65
|
+
|
|
66
|
+
"sms.title": "SMS Configuration",
|
|
67
|
+
"sms.phone": "Phone Number",
|
|
68
|
+
"sms.phonePlaceholder": "13800138000",
|
|
69
|
+
"sms.phoneHelp": "Phone number to receive SMS notifications",
|
|
70
|
+
"sms.countryCode": "Country Code",
|
|
71
|
+
"sms.countryCodeDefault": "+86",
|
|
72
|
+
|
|
73
|
+
"test.title": "Test Notification",
|
|
74
|
+
"test.sending": "Sending test notification...",
|
|
75
|
+
"test.success": "Sent successfully",
|
|
76
|
+
"test.failed": "Send failed",
|
|
77
|
+
"test.checkDevice": "Please check your device for the notification.",
|
|
78
|
+
"test.allFailed": "❌ All notification channels failed to send.",
|
|
79
|
+
"test.partialFailure": "Some channels failed to send. Please check the configuration.",
|
|
80
|
+
"test.troubleshooting": "Troubleshooting steps:",
|
|
81
|
+
"test.checkConnection": "Check network connection to cloud service",
|
|
82
|
+
"test.checkConfig": "Verify channel configurations are correct",
|
|
83
|
+
"test.checkToken": "Ensure device token is valid",
|
|
84
|
+
|
|
85
|
+
"task.started": "Task Started",
|
|
86
|
+
"task.progress": "Task In Progress",
|
|
87
|
+
"task.completed": "Task Completed",
|
|
88
|
+
"task.failed": "Task Failed",
|
|
89
|
+
"task.cancelled": "Task Cancelled",
|
|
90
|
+
"task.duration": "Duration: {{duration}}",
|
|
91
|
+
"task.result": "Result: {{result}}",
|
|
92
|
+
|
|
93
|
+
"messages.taskProgress.title": "🔔 CCJK Task Notification",
|
|
94
|
+
"messages.taskProgress.body": "Your task is running...\nTask: {{description}}\nElapsed: {{duration}}\nStatus: In Progress",
|
|
95
|
+
"messages.taskCompleted.title": "✅ CCJK Task Completed",
|
|
96
|
+
"messages.taskCompleted.body": "Your task has completed!\nTask: {{description}}\nDuration: {{duration}}\nResult: {{result}}\n\nReply to continue the conversation or enter a new command.",
|
|
97
|
+
"messages.taskFailed.title": "❌ CCJK Task Failed",
|
|
98
|
+
"messages.taskFailed.body": "Your task has failed.\nTask: {{description}}\nDuration: {{duration}}\nError: {{error}}",
|
|
99
|
+
|
|
100
|
+
"actions.continue": "Continue",
|
|
101
|
+
"actions.newTask": "New Task",
|
|
102
|
+
"actions.viewDetails": "View Details",
|
|
103
|
+
"actions.pause": "Pause",
|
|
104
|
+
"actions.cancel": "Cancel",
|
|
105
|
+
|
|
106
|
+
"reply.received": "📩 Remote command received:",
|
|
107
|
+
"reply.processing": "Processing...",
|
|
108
|
+
"reply.continuing": "Continuing execution...",
|
|
109
|
+
|
|
110
|
+
"commands.config": "Configure notification settings",
|
|
111
|
+
"commands.status": "Show notification status",
|
|
112
|
+
"commands.test": "Send a test notification",
|
|
113
|
+
"commands.enable": "Enable notifications",
|
|
114
|
+
"commands.disable": "Disable notifications",
|
|
115
|
+
"commands.channels": "Manage notification channels",
|
|
116
|
+
|
|
117
|
+
"errors.notConfigured": "Notification system is not configured. Run 'ccjk notification config' first.",
|
|
118
|
+
"errors.noChannels": "No notification channels are enabled.",
|
|
119
|
+
"errors.invalidWebhook": "Invalid webhook URL",
|
|
120
|
+
"errors.invalidEmail": "Invalid email address",
|
|
121
|
+
"errors.invalidPhone": "Invalid phone number",
|
|
122
|
+
"errors.sendFailed": "Failed to send notification",
|
|
123
|
+
"errors.networkError": "Network error: {{error}}",
|
|
124
|
+
"errors.invalidToken": "Invalid token, please check your configuration.",
|
|
125
|
+
"errors.channelNotConfigured": "Channel {{channel}} is not configured.",
|
|
126
|
+
"errors.cloudError": "Cloud service error: {{error}}",
|
|
127
|
+
"errors.tokenInvalid": "Device token is invalid. Please regenerate.",
|
|
128
|
+
|
|
129
|
+
"menu.title": "📱 Notification Settings",
|
|
130
|
+
"menu.configure": "Configure Notifications",
|
|
131
|
+
"menu.viewStatus": "View Status",
|
|
132
|
+
"menu.testNotification": "Send Test",
|
|
133
|
+
"menu.manageChannels": "Manage Channels",
|
|
134
|
+
"menu.setThreshold": "Set Threshold",
|
|
135
|
+
"menu.quietHours": "Quiet Hours",
|
|
136
|
+
"menu.back": "Back"
|
|
137
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "通知系统",
|
|
3
|
+
"description": "通过飞书、企业微信、邮件、短信接收任务完成通知",
|
|
4
|
+
|
|
5
|
+
"status.enabled": "已启用",
|
|
6
|
+
"status.disabled": "已禁用",
|
|
7
|
+
"status.configured": "已配置",
|
|
8
|
+
"status.notConfigured": "未配置",
|
|
9
|
+
|
|
10
|
+
"channels.title": "通知渠道",
|
|
11
|
+
"channels.feishu": "飞书",
|
|
12
|
+
"channels.wechat": "企业微信",
|
|
13
|
+
"channels.email": "邮件",
|
|
14
|
+
"channels.sms": "短信",
|
|
15
|
+
"channels.noChannels": "未配置任何渠道",
|
|
16
|
+
"channels.enabledCount": "已启用 {{count}} 个渠道",
|
|
17
|
+
|
|
18
|
+
"config.title": "配置",
|
|
19
|
+
"config.wizard.title": "🔔 CCJK 通知系统配置向导",
|
|
20
|
+
"config.wizard.welcome": "此向导将帮助您配置任务完成通知。",
|
|
21
|
+
"config.wizard.step1": "步骤 1: 生成设备令牌",
|
|
22
|
+
"config.wizard.step2": "步骤 2: 选择通知渠道",
|
|
23
|
+
"config.wizard.step3": "步骤 3: 配置渠道",
|
|
24
|
+
"config.wizard.step4": "步骤 4: 设置通知阈值",
|
|
25
|
+
"config.wizard.step5": "步骤 5: 测试通知",
|
|
26
|
+
"config.wizard.complete": "✅ 配置完成!",
|
|
27
|
+
"config.wizard.tokenGenerated": "令牌已生成: {{token}}",
|
|
28
|
+
|
|
29
|
+
"config.threshold.title": "通知阈值",
|
|
30
|
+
"config.threshold.description": "任务执行超过以下时间后发送通知:",
|
|
31
|
+
"config.threshold.minutes": "{{count}} 分钟",
|
|
32
|
+
"config.threshold.hour": "1 小时",
|
|
33
|
+
"config.threshold.custom": "自定义",
|
|
34
|
+
|
|
35
|
+
"config.quietHours.title": "免打扰时段",
|
|
36
|
+
"config.quietHours.description": "在此时段内不发送通知",
|
|
37
|
+
"config.quietHours.enabled": "免打扰已启用",
|
|
38
|
+
"config.quietHours.disabled": "免打扰已禁用",
|
|
39
|
+
"config.quietHours.range": "{{start}}:00 - {{end}}:00",
|
|
40
|
+
|
|
41
|
+
"config.deviceToken.title": "设备令牌",
|
|
42
|
+
"config.deviceToken.description": "用于与 CCJK 云服务进行身份验证",
|
|
43
|
+
"config.deviceToken.regenerate": "重新生成令牌",
|
|
44
|
+
"config.deviceToken.regenerateConfirm": "确定要重新生成吗?这将使当前令牌失效。",
|
|
45
|
+
|
|
46
|
+
"feishu.title": "飞书配置",
|
|
47
|
+
"feishu.webhookUrl": "Webhook 地址",
|
|
48
|
+
"feishu.webhookUrlPlaceholder": "https://open.feishu.cn/open-apis/bot/v2/hook/xxxxx",
|
|
49
|
+
"feishu.webhookUrlHelp": "从飞书机器人设置中获取",
|
|
50
|
+
"feishu.secret": "签名密钥(可选)",
|
|
51
|
+
"feishu.secretHelp": "用于 Webhook 签名验证",
|
|
52
|
+
|
|
53
|
+
"wechat.title": "企业微信配置",
|
|
54
|
+
"wechat.corpId": "企业 ID",
|
|
55
|
+
"wechat.corpIdPlaceholder": "您的企业微信企业 ID",
|
|
56
|
+
"wechat.agentId": "应用 ID",
|
|
57
|
+
"wechat.agentIdPlaceholder": "您的应用 Agent ID",
|
|
58
|
+
"wechat.secret": "应用密钥",
|
|
59
|
+
"wechat.secretPlaceholder": "您的应用 Secret",
|
|
60
|
+
|
|
61
|
+
"email.title": "邮件配置",
|
|
62
|
+
"email.address": "邮箱地址",
|
|
63
|
+
"email.addressPlaceholder": "your@email.com",
|
|
64
|
+
"email.addressHelp": "通知将发送到此邮箱",
|
|
65
|
+
|
|
66
|
+
"sms.title": "短信配置",
|
|
67
|
+
"sms.phone": "手机号码",
|
|
68
|
+
"sms.phonePlaceholder": "13800138000",
|
|
69
|
+
"sms.phoneHelp": "接收短信通知的手机号",
|
|
70
|
+
"sms.countryCode": "国家代码",
|
|
71
|
+
"sms.countryCodeDefault": "+86",
|
|
72
|
+
|
|
73
|
+
"test.title": "测试通知",
|
|
74
|
+
"test.sending": "正在发送测试通知...",
|
|
75
|
+
"test.success": "发送成功",
|
|
76
|
+
"test.failed": "发送失败",
|
|
77
|
+
"test.checkDevice": "请检查您的设备是否收到通知。",
|
|
78
|
+
"test.allFailed": "❌ 所有通知渠道均发送失败。",
|
|
79
|
+
"test.partialFailure": "部分渠道发送失败,请检查配置。",
|
|
80
|
+
"test.troubleshooting": "故障排查步骤:",
|
|
81
|
+
"test.checkConnection": "检查与云服务的网络连接",
|
|
82
|
+
"test.checkConfig": "验证渠道配置是否正确",
|
|
83
|
+
"test.checkToken": "确保设备令牌有效",
|
|
84
|
+
|
|
85
|
+
"task.started": "任务已开始",
|
|
86
|
+
"task.progress": "任务进行中",
|
|
87
|
+
"task.completed": "任务已完成",
|
|
88
|
+
"task.failed": "任务失败",
|
|
89
|
+
"task.cancelled": "任务已取消",
|
|
90
|
+
"task.duration": "耗时: {{duration}}",
|
|
91
|
+
"task.result": "结果: {{result}}",
|
|
92
|
+
|
|
93
|
+
"messages.taskProgress.title": "🔔 CCJK 任务通知",
|
|
94
|
+
"messages.taskProgress.body": "您的任务正在执行中...\n任务: {{description}}\n已执行: {{duration}}\n状态: 进行中",
|
|
95
|
+
"messages.taskCompleted.title": "✅ CCJK 任务完成",
|
|
96
|
+
"messages.taskCompleted.body": "您的任务已完成!\n任务: {{description}}\n耗时: {{duration}}\n结果: {{result}}\n\n回复任意内容继续对话,或输入新指令开始新任务。",
|
|
97
|
+
"messages.taskFailed.title": "❌ CCJK 任务失败",
|
|
98
|
+
"messages.taskFailed.body": "您的任务执行失败。\n任务: {{description}}\n耗时: {{duration}}\n错误: {{error}}",
|
|
99
|
+
|
|
100
|
+
"actions.continue": "继续",
|
|
101
|
+
"actions.newTask": "新任务",
|
|
102
|
+
"actions.viewDetails": "查看详情",
|
|
103
|
+
"actions.pause": "暂停",
|
|
104
|
+
"actions.cancel": "取消",
|
|
105
|
+
|
|
106
|
+
"reply.received": "📩 收到远程指令:",
|
|
107
|
+
"reply.processing": "正在处理...",
|
|
108
|
+
"reply.continuing": "正在继续执行...",
|
|
109
|
+
|
|
110
|
+
"commands.config": "配置通知设置",
|
|
111
|
+
"commands.status": "查看通知状态",
|
|
112
|
+
"commands.test": "发送测试通知",
|
|
113
|
+
"commands.enable": "启用通知",
|
|
114
|
+
"commands.disable": "禁用通知",
|
|
115
|
+
"commands.channels": "管理通知渠道",
|
|
116
|
+
|
|
117
|
+
"errors.notConfigured": "通知系统尚未配置。请先运行 'ccjk notification config'。",
|
|
118
|
+
"errors.noChannels": "没有启用任何通知渠道。",
|
|
119
|
+
"errors.invalidWebhook": "无效的 Webhook 地址",
|
|
120
|
+
"errors.invalidEmail": "无效的邮箱地址",
|
|
121
|
+
"errors.invalidPhone": "无效的手机号码",
|
|
122
|
+
"errors.sendFailed": "发送通知失败",
|
|
123
|
+
"errors.networkError": "网络错误: {{error}}",
|
|
124
|
+
"errors.invalidToken": "无效的令牌,请检查配置。",
|
|
125
|
+
"errors.channelNotConfigured": "渠道 {{channel}} 尚未配置。",
|
|
126
|
+
"errors.cloudError": "云服务错误: {{error}}",
|
|
127
|
+
"errors.tokenInvalid": "设备令牌无效,请重新生成。",
|
|
128
|
+
|
|
129
|
+
"menu.title": "📱 通知设置",
|
|
130
|
+
"menu.configure": "配置通知",
|
|
131
|
+
"menu.viewStatus": "查看状态",
|
|
132
|
+
"menu.testNotification": "发送测试",
|
|
133
|
+
"menu.manageChannels": "管理渠道",
|
|
134
|
+
"menu.setThreshold": "设置阈值",
|
|
135
|
+
"menu.quietHours": "免打扰时段",
|
|
136
|
+
"menu.back": "返回"
|
|
137
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ccjk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.8",
|
|
5
5
|
"description": "Claude Code JinKu - Advanced AI-powered development assistant with skills, agents, and LLM-driven audit",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "CCJK Team"
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
"node": ">=20"
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
+
"@iarna/toml": "^2.2.5",
|
|
98
99
|
"@types/semver": "^7.7.1",
|
|
99
100
|
"ansis": "^4.1.0",
|
|
100
101
|
"cac": "^6.7.14",
|