@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 +5 -7
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/src/commands.ts +0 -1
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 {
|
|
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
|
|
125
|
+
await ensureCronJob({
|
|
128
126
|
logger: api.logger,
|
|
129
127
|
config: api.config,
|
|
130
128
|
});
|
|
131
|
-
api.logger.info("[skills-scanner] ✅
|
|
129
|
+
api.logger.info("[skills-scanner] ✅ System crontab cleanup task ensured");
|
|
132
130
|
} catch (err: any) {
|
|
133
|
-
api.logger.warn("[skills-scanner] ⚠️
|
|
131
|
+
api.logger.warn("[skills-scanner] ⚠️ Failed to setup system crontab", {
|
|
134
132
|
error: err.message,
|
|
135
133
|
});
|
|
136
134
|
}
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
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(
|