@pwddd/skills-scanner 3.0.5 → 3.0.7

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/src/commands.ts CHANGED
@@ -1,302 +1,302 @@
1
- /**
2
- * Command handlers module
3
- */
4
-
5
- import { existsSync, execSync } from "node:fs";
6
- import { join, basename } from "node:path";
7
- import { promisify } from "node:util";
8
- import { exec } from "node:child_process";
9
- import { runScan } from "./scanner.js";
10
- import { buildDailyReport } from "./report.js";
11
- import { loadState, saveState, expandPath } from "./state.js";
12
- import { isVenvReady } from "./deps.js";
13
- import { generateConfigGuide } from "./config.js";
14
- import { ensureCronJob } from "./cron.js";
15
- import type { ScannerConfig } from "./types.js";
16
-
17
- const execAsync = promisify(exec);
18
-
19
- export function createCommandHandlers(
20
- cfg: ScannerConfig,
21
- apiUrl: string,
22
- scanDirs: string[],
23
- behavioral: boolean,
24
- useLLM: boolean,
25
- policy: string,
26
- preInstallScan: string,
27
- onUnsafe: string,
28
- venvPython: string,
29
- scanScript: string,
30
- logger: any
31
- ) {
32
- async function handleScanCommand(args: string): Promise<any> {
33
- if (!args) {
34
- return {
35
- text: "用法:`/skills-scanner scan <路径> [--detailed] [--behavioral] [--recursive] [--report]`\n或:`/skills-scanner scan clawhub <URL> [--detailed] [--behavioral]`",
36
- };
37
- }
38
-
39
- if (!isVenvReady(venvPython)) {
40
- return { text: " Python 依赖尚未就绪,请稍后重试或查看日志" };
41
- }
42
-
43
- const parts = args.split(/\s+/);
44
-
45
- // Check if this is a ClawHub scan
46
- if (parts[0] === "clawhub") {
47
- const clawhubUrl = parts.find((p) => p.startsWith("https://clawhub.ai/"));
48
- if (!clawhubUrl) {
49
- return { text: " 请提供有效的 ClawHub URL (例如: https://clawhub.ai/username/project)" };
50
- }
51
-
52
- const detailed = parts.includes("--detailed");
53
- const useBehav = parts.includes("--behavioral") || behavioral;
54
-
55
- const res = await runScan(venvPython, scanScript, "clawhub", clawhubUrl, {
56
- detailed,
57
- behavioral: useBehav,
58
- apiUrl,
59
- useLLM,
60
- policy,
61
- });
62
- const icon = res.exitCode === 0 ? "✅" : "❌";
63
- return { text: `${icon} ClawHub 扫描完成\n\`\`\`\n${res.output}\n\`\`\`` };
64
- }
65
-
66
- const targetPath = expandPath(parts.find((p) => !p.startsWith("--")) ?? "");
67
- const detailed = parts.includes("--detailed");
68
- const useBehav = parts.includes("--behavioral") || behavioral;
69
- const recursive = parts.includes("--recursive");
70
- const isReport = parts.includes("--report");
71
-
72
- if (!targetPath) {
73
- return { text: " 请指定扫描路径" };
74
- }
75
-
76
- if (!existsSync(targetPath)) {
77
- return { text: `❌ 路径不存在: ${targetPath}` };
78
- }
79
-
80
- const isSingleSkill = existsSync(join(targetPath, "SKILL.md"));
81
-
82
- if (isReport) {
83
- if (scanDirs.length === 0) {
84
- return { text: "⚠️ 未找到可扫描目录,请检查配置" };
85
- }
86
- const report = await buildDailyReport(
87
- scanDirs,
88
- useBehav,
89
- apiUrl,
90
- useLLM,
91
- policy,
92
- logger,
93
- venvPython,
94
- scanScript
95
- );
96
- return { text: report };
97
- } else if (isSingleSkill) {
98
- const res = await runScan(venvPython, scanScript, "scan", targetPath, {
99
- detailed,
100
- behavioral: useBehav,
101
- apiUrl,
102
- useLLM,
103
- policy,
104
- });
105
- const icon = res.exitCode === 0 ? "✅" : "❌";
106
- return { text: `${icon} 扫描完成\n\`\`\`\n${res.output}\n\`\`\`` };
107
- } else {
108
- const res = await runScan(venvPython, scanScript, "batch", targetPath, {
109
- recursive,
110
- detailed,
111
- behavioral: useBehav,
112
- apiUrl,
113
- useLLM,
114
- policy,
115
- });
116
- const icon = res.exitCode === 0 ? "✅" : "❌";
117
- return { text: `${icon} 批量扫描完成\n\`\`\`\n${res.output}\n\`\`\`` };
118
- }
119
- }
120
-
121
- async function handleStatusCommand(): Promise<any> {
122
- const state = loadState() as any;
123
- const alerts: string[] = state.pendingAlerts ?? [];
124
-
125
- const lines = [
126
- "📋 *Skills Scanner 状态*",
127
- `API 地址: ${apiUrl}`,
128
- `Python 依赖: ${isVenvReady(venvPython) ? "✅ 就绪" : "❌ 未就绪"}`,
129
- `安装前扫描: ${preInstallScan === "on" ? `✅ 监听中 (${onUnsafe})` : " 已禁用"}`,
130
- `扫描策略: ${policy}`,
131
- `LLM 分析: ${useLLM ? "✅ 启用" : "❌ 禁用"}`,
132
- `行为分析: ${behavioral ? "✅ 启用" : "❌ 禁用"}`,
133
- `上次扫描: ${state.lastScanAt ? new Date(state.lastScanAt).toLocaleString("zh-CN") : "从未"}`,
134
- `扫描目录:\n${scanDirs.map((d) => ` ${d}`).join("\n")}`,
135
- ];
136
-
137
- if (isVenvReady(venvPython)) {
138
- lines.push("", "🔍 *API 服务检查*");
139
- try {
140
- const cmd = `"${venvPython}" "${scanScript}" --api-url "${apiUrl}" health`;
141
- const env = { ...process.env };
142
- delete env.http_proxy;
143
- delete env.https_proxy;
144
- delete env.HTTP_PROXY;
145
- delete env.HTTPS_PROXY;
146
- delete env.all_proxy;
147
- delete env.ALL_PROXY;
148
-
149
- const { stdout, stderr } = await execAsync(cmd, { timeout: 5000, env });
150
- const output = (stdout + stderr).trim();
151
-
152
- if (output.includes("✓") || output.includes("OK")) {
153
- lines.push(`API 服务: ✅ 正常`);
154
- const jsonMatch = output.match(/\{[\s\S]*\}/);
155
- if (jsonMatch) {
156
- try {
157
- const healthData = JSON.parse(jsonMatch[0]);
158
- if (healthData.analyzers_available) {
159
- lines.push(`可用分析器: ${healthData.analyzers_available.join(", ")}`);
160
- }
161
- } catch {}
162
- }
163
- } else {
164
- lines.push(`API 服务: 不可用`);
165
- }
166
- } catch (err: any) {
167
- lines.push(`API 服务: 连接失败`);
168
- lines.push(`错误: ${err.message}`);
169
- }
170
- }
171
-
172
- if (alerts.length > 0) {
173
- lines.push("", `🔔 *待查告警 (${alerts.length} 条):*`);
174
- alerts.slice(-5).forEach((a) => lines.push(` ${a}`));
175
- saveState({ ...state, pendingAlerts: [] });
176
- }
177
-
178
- lines.push("", "🕐 *定时任务*");
179
- if (state.cronJobId && state.cronJobId !== "manual-created") {
180
- lines.push(`状态: ✅ 已注册 (${state.cronJobId})`);
181
- } else {
182
- lines.push("状态: ❌ 未注册");
183
- lines.push("💡 使用 `/skills-scanner cron register` 注册");
184
- }
185
-
186
- return { text: lines.join("\n") };
187
- }
188
-
189
- async function handleConfigCommand(args: string): Promise<any> {
190
- const action = args.trim().toLowerCase() || "show";
191
-
192
- if (action === "show" || action === "") {
193
- const configGuide = generateConfigGuide(
194
- cfg,
195
- apiUrl,
196
- scanDirs,
197
- behavioral,
198
- useLLM,
199
- policy,
200
- preInstallScan,
201
- onUnsafe
202
- );
203
- return { text: "```\n" + configGuide + "\n```" };
204
- } else if (action === "reset") {
205
- const state = loadState() as any;
206
- saveState({ ...state, configReviewed: false });
207
- return {
208
- text: "✅ 配置审查标记已重置\n下次重启 Gateway 时将再次显示配置向导",
209
- };
210
- } else {
211
- return { text: "用法: `/skills-scanner config [show|reset]`" };
212
- }
213
- }
214
-
215
- async function handleCronCommand(args: string): Promise<any> {
216
- const action = args.trim().toLowerCase() || "status";
217
- const state = loadState() as any;
218
-
219
- if (action === "register") {
220
- const oldJobId = state.cronJobId;
221
- if (oldJobId && oldJobId !== "manual-created") {
222
- try {
223
- execSync(`openclaw cron remove ${oldJobId}`, { encoding: "utf-8", timeout: 5000 });
224
- } catch {}
225
- }
226
-
227
- saveState({ ...state, cronJobId: undefined });
228
- await ensureCronJob(logger);
229
-
230
- const newState = loadState() as any;
231
- if (newState.cronJobId) {
232
- return { text: `✅ 定时任务注册成功\n任务 ID: ${newState.cronJobId}` };
233
- } else {
234
- return { text: " 定时任务注册失败,请查看日志" };
235
- }
236
- } else if (action === "unregister") {
237
- if (!state.cronJobId) {
238
- return { text: "⚠️ 未找到已注册的定时任务" };
239
- }
240
-
241
- try {
242
- execSync(`openclaw cron remove ${state.cronJobId}`, {
243
- encoding: "utf-8",
244
- timeout: 5000,
245
- });
246
- saveState({ ...state, cronJobId: undefined });
247
- return { text: `✅ 定时任务已删除: ${state.cronJobId}` };
248
- } catch (err: any) {
249
- return { text: `❌ 删除失败: ${err.message}` };
250
- }
251
- } else {
252
- const lines = ["🕐 *定时任务状态*"];
253
- if (state.cronJobId && state.cronJobId !== "manual-created") {
254
- lines.push(`任务 ID: ${state.cronJobId}`);
255
- lines.push(`执行时间: 每天 08:00 (Asia/Shanghai)`);
256
- lines.push("状态: ✅ 已注册");
257
- } else {
258
- lines.push("状态: ❌ 未注册");
259
- lines.push("", "💡 使用 `/skills-scanner cron register` 注册");
260
- }
261
- return { text: lines.join("\n") };
262
- }
263
- }
264
-
265
- function getHelpText(): string {
266
- return [
267
- "🔍 *Skills Scanner - 帮助*",
268
- "",
269
- "═══ 扫描命令 ═══",
270
- "`/skills-scanner scan <路径> [选项]`",
271
- "`/skills-scanner scan clawhub <URL> [选项]`",
272
- "",
273
- "选项:",
274
- "• `--detailed` - 显示详细发现",
275
- "• `--behavioral` - 启用行为分析",
276
- "• `--recursive` - 递归扫描子目录",
277
- "• `--report` - 生成日报格式",
278
- "",
279
- "示例:",
280
- "```",
281
- "/skills-scanner scan ~/.openclaw/skills/my-skill",
282
- "/skills-scanner scan ~/.openclaw/skills --recursive",
283
- "/skills-scanner scan ~/.openclaw/skills --report",
284
- "/skills-scanner scan clawhub https://clawhub.ai/username/project",
285
- "/skills-scanner scan clawhub https://clawhub.ai/username/project --detailed",
286
- "```",
287
- "",
288
- "═══ 其他命令 ═══",
289
- "• `/skills-scanner status` - 查看状态",
290
- "• `/skills-scanner config [show|reset]` - 配置管理",
291
- "• `/skills-scanner cron [register|unregister|status]` - 定时任务管理",
292
- ].join("\n");
293
- }
294
-
295
- return {
296
- handleScanCommand,
297
- handleStatusCommand,
298
- handleConfigCommand,
299
- handleCronCommand,
300
- getHelpText,
301
- };
302
- }
1
+ /**
2
+ * Command handlers module
3
+ */
4
+
5
+ import { existsSync, execSync } from "node:fs";
6
+ import { join, basename } from "node:path";
7
+ import { promisify } from "node:util";
8
+ import { exec } from "node:child_process";
9
+ import { runScan } from "./scanner.js";
10
+ import { buildDailyReport } from "./report.js";
11
+ import { loadState, saveState, expandPath } from "./state.js";
12
+ import { isPythonReady } from "./deps.js";
13
+ import { generateConfigGuide } from "./config.js";
14
+ import { ensureCronJob } from "./cron.js";
15
+ import type { ScannerConfig } from "./types.js";
16
+
17
+ const execAsync = promisify(exec);
18
+
19
+ export function createCommandHandlers(
20
+ cfg: ScannerConfig,
21
+ apiUrl: string,
22
+ scanDirs: string[],
23
+ behavioral: boolean,
24
+ useLLM: boolean,
25
+ policy: string,
26
+ preInstallScan: string,
27
+ onUnsafe: string,
28
+ pythonCmd: string | null,
29
+ scanScript: string,
30
+ logger: any
31
+ ) {
32
+ async function handleScanCommand(args: string): Promise<any> {
33
+ if (!args) {
34
+ return {
35
+ text: "用法:`/skills-scanner scan <路径> [--detailed] [--behavioral] [--recursive] [--report]`\n或:`/skills-scanner scan clawhub <URL> [--detailed] [--behavioral]`",
36
+ };
37
+ }
38
+
39
+ if (!isPythonReady(pythonCmd)) {
40
+ return { text: "⚠️ Python 依赖尚未就绪,请稍后重试或查看日志" };
41
+ }
42
+
43
+ const parts = args.split(/\s+/);
44
+
45
+ // Check if this is a ClawHub scan
46
+ if (parts[0] === "clawhub") {
47
+ const clawhubUrl = parts.find((p) => p.startsWith("https://clawhub.ai/"));
48
+ if (!clawhubUrl) {
49
+ return { text: "⚠️ 请提供有效的 ClawHub URL (例如: https://clawhub.ai/username/project)" };
50
+ }
51
+
52
+ const detailed = parts.includes("--detailed");
53
+ const useBehav = parts.includes("--behavioral") || behavioral;
54
+
55
+ const res = await runScan(pythonCmd, scanScript, "clawhub", clawhubUrl, {
56
+ detailed,
57
+ behavioral: useBehav,
58
+ apiUrl,
59
+ useLLM,
60
+ policy,
61
+ });
62
+ const icon = res.exitCode === 0 ? "✅" : "❌";
63
+ return { text: `${icon} ClawHub 扫描完成\n\`\`\`\n${res.output}\n\`\`\`` };
64
+ }
65
+
66
+ const targetPath = expandPath(parts.find((p) => !p.startsWith("--")) ?? "");
67
+ const detailed = parts.includes("--detailed");
68
+ const useBehav = parts.includes("--behavioral") || behavioral;
69
+ const recursive = parts.includes("--recursive");
70
+ const isReport = parts.includes("--report");
71
+
72
+ if (!targetPath) {
73
+ return { text: "⚠️ 请指定扫描路径" };
74
+ }
75
+
76
+ if (!existsSync(targetPath)) {
77
+ return { text: `⚠️ 路径不存在: ${targetPath}` };
78
+ }
79
+
80
+ const isSingleSkill = existsSync(join(targetPath, "SKILL.md"));
81
+
82
+ if (isReport) {
83
+ if (scanDirs.length === 0) {
84
+ return { text: "⚠️ 未找到可扫描目录,请检查配置" };
85
+ }
86
+ const report = await buildDailyReport(
87
+ scanDirs,
88
+ useBehav,
89
+ apiUrl,
90
+ useLLM,
91
+ policy,
92
+ logger,
93
+ pythonCmd,
94
+ scanScript
95
+ );
96
+ return { text: report };
97
+ } else if (isSingleSkill) {
98
+ const res = await runScan(pythonCmd, scanScript, "scan", targetPath, {
99
+ detailed,
100
+ behavioral: useBehav,
101
+ apiUrl,
102
+ useLLM,
103
+ policy,
104
+ });
105
+ const icon = res.exitCode === 0 ? "✅" : "❌";
106
+ return { text: `${icon} 扫描完成\n\`\`\`\n${res.output}\n\`\`\`` };
107
+ } else {
108
+ const res = await runScan(pythonCmd, scanScript, "batch", targetPath, {
109
+ recursive,
110
+ detailed,
111
+ behavioral: useBehav,
112
+ apiUrl,
113
+ useLLM,
114
+ policy,
115
+ });
116
+ const icon = res.exitCode === 0 ? "✅" : "❌";
117
+ return { text: `${icon} 批量扫描完成\n\`\`\`\n${res.output}\n\`\`\`` };
118
+ }
119
+ }
120
+
121
+ async function handleHealthCommand(): Promise<any> {
122
+ const state = loadState() as any;
123
+ const alerts: string[] = state.pendingAlerts ?? [];
124
+
125
+ const lines = [
126
+ " *Skills Scanner 状态*",
127
+ `API 地址: ${apiUrl}`,
128
+ `Python 依赖: ${isPythonReady(pythonCmd) ? "✅ 就绪" : "❌ 未就绪"}`,
129
+ `安装前扫描: ${preInstallScan === "on" ? `✅ 监听中 (${onUnsafe})` : "⏭️ 已禁用"}`,
130
+ `扫描策略: ${policy}`,
131
+ `LLM 分析: ${useLLM ? "✅ 启用" : "❌ 禁用"}`,
132
+ `行为分析: ${behavioral ? "✅ 启用" : "❌ 禁用"}`,
133
+ `上次扫描: ${state.lastScanAt ? new Date(state.lastScanAt).toLocaleString("zh-CN") : "从未"}`,
134
+ `扫描目录:\n${scanDirs.map((d) => ` 📁 ${d}`).join("\n")}`,
135
+ ];
136
+
137
+ if (isPythonReady(pythonCmd)) {
138
+ lines.push("", " *API 服务检查*");
139
+ try {
140
+ const cmd = `"${pythonCmd}" "${scanScript}" --api-url "${apiUrl}" health`;
141
+ const env = { ...process.env };
142
+ delete env.http_proxy;
143
+ delete env.https_proxy;
144
+ delete env.HTTP_PROXY;
145
+ delete env.HTTPS_PROXY;
146
+ delete env.all_proxy;
147
+ delete env.ALL_PROXY;
148
+
149
+ const { stdout, stderr } = await execAsync(cmd, { timeout: 5000, env });
150
+ const output = (stdout + stderr).trim();
151
+
152
+ if (output.includes("✅") || output.includes("✓") || output.includes("OK")) {
153
+ lines.push(`API 服务: ✅ 正常`);
154
+ const jsonMatch = output.match(/\{[\s\S]*\}/);
155
+ if (jsonMatch) {
156
+ try {
157
+ const healthData = JSON.parse(jsonMatch[0]);
158
+ if (healthData.analyzers_available) {
159
+ lines.push(`可用分析器: ${healthData.analyzers_available.join(", ")}`);
160
+ }
161
+ } catch {}
162
+ }
163
+ } else {
164
+ lines.push(`API 服务: ⚠️ 不可用`);
165
+ }
166
+ } catch (err: any) {
167
+ lines.push(`API 服务: ⚠️ 连接失败`);
168
+ lines.push(`错误: ${err.message}`);
169
+ }
170
+ }
171
+
172
+ if (alerts.length > 0) {
173
+ lines.push("", `⚠️ *待查告警 (${alerts.length} 条):*`);
174
+ alerts.slice(-5).forEach((a) => lines.push(` ${a}`));
175
+ saveState({ ...state, pendingAlerts: [] });
176
+ }
177
+
178
+ lines.push("", " *定时任务*");
179
+ if (state.cronJobId && state.cronJobId !== "manual-created") {
180
+ lines.push(`状态: ✅ 已注册 (${state.cronJobId})`);
181
+ } else {
182
+ lines.push("状态: ❌ 未注册");
183
+ lines.push("ℹ️ 使用 `/skills-scanner cron register` 注册");
184
+ }
185
+
186
+ return { text: lines.join("\n") };
187
+ }
188
+
189
+ async function handleConfigCommand(args: string): Promise<any> {
190
+ const action = args.trim().toLowerCase() || "show";
191
+
192
+ if (action === "show" || action === "") {
193
+ const configGuide = generateConfigGuide(
194
+ cfg,
195
+ apiUrl,
196
+ scanDirs,
197
+ behavioral,
198
+ useLLM,
199
+ policy,
200
+ preInstallScan,
201
+ onUnsafe
202
+ );
203
+ return { text: "```\n" + configGuide + "\n```" };
204
+ } else if (action === "reset") {
205
+ const state = loadState() as any;
206
+ saveState({ ...state, configReviewed: false });
207
+ return {
208
+ text: "✅ 配置审查标记已重置\n下次重启 Gateway 时将再次显示配置向导",
209
+ };
210
+ } else {
211
+ return { text: "用法: `/skills-scanner config [show|reset]`" };
212
+ }
213
+ }
214
+
215
+ async function handleCronCommand(args: string): Promise<any> {
216
+ const action = args.trim().toLowerCase() || "status";
217
+ const state = loadState() as any;
218
+
219
+ if (action === "register") {
220
+ const oldJobId = state.cronJobId;
221
+ if (oldJobId && oldJobId !== "manual-created") {
222
+ try {
223
+ execSync(`openclaw cron remove ${oldJobId}`, { encoding: "utf-8", timeout: 5000 });
224
+ } catch {}
225
+ }
226
+
227
+ saveState({ ...state, cronJobId: undefined });
228
+ await ensureCronJob(logger);
229
+
230
+ const newState = loadState() as any;
231
+ if (newState.cronJobId) {
232
+ return { text: `✅ 定时任务注册成功\n任务 ID: ${newState.cronJobId}` };
233
+ } else {
234
+ return { text: "⚠️ 定时任务注册失败,请查看日志" };
235
+ }
236
+ } else if (action === "unregister") {
237
+ if (!state.cronJobId) {
238
+ return { text: "ℹ️ 未找到已注册的定时任务" };
239
+ }
240
+
241
+ try {
242
+ execSync(`openclaw cron remove ${state.cronJobId}`, {
243
+ encoding: "utf-8",
244
+ timeout: 5000,
245
+ });
246
+ saveState({ ...state, cronJobId: undefined });
247
+ return { text: `✅ 定时任务已删除: ${state.cronJobId}` };
248
+ } catch (err: any) {
249
+ return { text: `⚠️ 删除失败: ${err.message}` };
250
+ }
251
+ } else {
252
+ const lines = [" *定时任务状态*"];
253
+ if (state.cronJobId && state.cronJobId !== "manual-created") {
254
+ lines.push(`任务 ID: ${state.cronJobId}`);
255
+ lines.push(`执行时间: 每天 08:00 (Asia/Shanghai)`);
256
+ lines.push("状态: ✅ 已注册");
257
+ } else {
258
+ lines.push("状态: ❌ 未注册");
259
+ lines.push("", "ℹ️ 使用 `/skills-scanner cron register` 注册");
260
+ }
261
+ return { text: lines.join("\n") };
262
+ }
263
+ }
264
+
265
+ function getHelpText(): string {
266
+ return [
267
+ " *Skills Scanner - 帮助*",
268
+ "",
269
+ "═══ 扫描命令 ═══",
270
+ "`/skills-scanner scan <路径> [选项]`",
271
+ "`/skills-scanner scan clawhub <URL> [选项]`",
272
+ "",
273
+ "选项:",
274
+ "• `--detailed` - 显示详细发现",
275
+ "• `--behavioral` - 启用行为分析",
276
+ "• `--recursive` - 递归扫描子目录",
277
+ "• `--report` - 生成日报格式",
278
+ "",
279
+ "示例:",
280
+ "```",
281
+ "/skills-scanner scan ~/.openclaw/skills/my-skill",
282
+ "/skills-scanner scan ~/.openclaw/skills --recursive",
283
+ "/skills-scanner scan ~/.openclaw/skills --report",
284
+ "/skills-scanner scan clawhub https://clawhub.ai/username/project",
285
+ "/skills-scanner scan clawhub https://clawhub.ai/username/project --detailed",
286
+ "```",
287
+ "",
288
+ "═══ 其他命令 ═══",
289
+ "• `/skills-scanner health` - 健康检查",
290
+ "• `/skills-scanner config [show|reset]` - 配置管理",
291
+ "• `/skills-scanner cron [register|unregister|status]` - 定时任务管理",
292
+ ].join("\n");
293
+ }
294
+
295
+ return {
296
+ handleScanCommand,
297
+ handleHealthCommand,
298
+ handleConfigCommand,
299
+ handleCronCommand,
300
+ getHelpText,
301
+ };
302
+ }
package/src/config.ts CHANGED
@@ -162,7 +162,7 @@ export function generateConfigGuide(
162
162
  "",
163
163
  "🚀 快速开始:",
164
164
  " 编辑配置文件后重启 Gateway",
165
- " /skills-scanner status",
165
+ " /skills-scanner health",
166
166
  "",
167
167
  "提示:此消息只在首次运行时显示。",
168
168
  "════════════════════════════════════════════════════════════════",