@pwddd/skills-scanner 1.0.0-beta.18 → 1.0.0-beta.19

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/index.ts CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  getStateDir,
21
21
  } from "./src/state.js";
22
22
  import { runScan } from "./src/scanner.js";
23
- import { cleanupCronJob } from "./src/cron-manager.js";
23
+ import { ensureCronJob } from "./src/cron-manager.js";
24
24
  import { createCommandHandlers } from "./src/commands.js";
25
25
  import { SKILLS_SECURITY_GUIDANCE } from "./src/prompt-guidance.js";
26
26
  import { handleBeforeInstall } from "./src/before-install-hook.js";
@@ -119,18 +119,16 @@ export default definePluginEntry({
119
119
  api.logger.warn("[skills-scanner] ⚠️ before_install hook DISABLED - installations will NOT be intercepted!");
120
120
  }
121
121
 
122
- // 定时任务功能已移除,但保留清理旧任务的功能
123
-
124
- // 在插件启动时清理旧的定时任务
122
+ // 在插件启动时设置系统 crontab 清理任务
125
123
  (async () => {
126
124
  try {
127
- await cleanupCronJob({
125
+ await ensureCronJob({
128
126
  logger: api.logger,
129
127
  config: api.config,
130
128
  });
131
- api.logger.info("[skills-scanner] ✅ Startup cleanup: old cron jobs removed");
129
+ api.logger.info("[skills-scanner] ✅ System crontab cleanup task ensured");
132
130
  } catch (err: any) {
133
- api.logger.warn("[skills-scanner] ⚠️ Startup cleanup failed", {
131
+ api.logger.warn("[skills-scanner] ⚠️ Failed to setup system crontab", {
134
132
  error: err.message,
135
133
  });
136
134
  }
@@ -2,7 +2,7 @@
2
2
  "id": "skills-scanner",
3
3
  "name": "Skills Scanner",
4
4
  "description": "Security scanner for OpenClaw Skills to detect potential threats",
5
- "version": "1.0.0-beta.18",
5
+ "version": "1.0.0-beta.19",
6
6
  "author": "pwddd",
7
7
  "skills": ["./skills"],
8
8
  "uiHints": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pwddd/skills-scanner",
3
- "version": "1.0.0-beta.18",
3
+ "version": "1.0.0-beta.19",
4
4
  "description": "OpenClaw Skills security scanner plugin - detect malicious code, data exfiltration, and prompt injection",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
package/src/commands.ts CHANGED
@@ -7,7 +7,6 @@ import { join, basename } from "node:path";
7
7
  import { runScan } from "./scanner.js";
8
8
  import { loadState, saveState, expandPath } from "./state.js";
9
9
  import { generateConfigGuide } from "./config.js";
10
- // import { cleanupCronJob } from "./cron-manager.js"; // 定时任务功能已移除
11
10
  import type { ScannerConfig, CommandResponse, PluginLogger } from "./types.js";
12
11
 
13
12
  export function createCommandHandlers(