更新 lib/index.js

This commit is contained in:
QQ 2026-11-11 11:33:30 +08:00
parent f2aab54ba2
commit 8160877400
1 changed files with 2 additions and 3 deletions

View File

@ -15,14 +15,14 @@ import { createRoutes } from "./routes.js";
import { join } from 'node:path';
import { SettingsStore, dshHome } from "./store.js";
import { SkillSync } from "./skill-sync.js";
import { SkillAdmin, skillsHoldingDir, skillsTrashDir } from "./skill-admin.js";
import { SkillAdmin, skillsHoldingDir } from "./skill-admin.js";
import { createMemoryTools, createSkillTools } from "./tools.js";
/** Package name; also the client bundle id. */
export const name = 'dsh-cloud-memory';
/** Services required before `apply` runs. */
export const inject = ['webServer'];
/** Version reported by the status card. */
const VERSION = '0.4.0';
const VERSION = '0.4.1';
/** How often the skill directory is reconciled with the cloud center. */
const SKILL_SYNC_INTERVAL_MS = 15 * 60_000;
/** How often queued reports are retried. */
@ -59,7 +59,6 @@ export function apply(ctx, config) {
const skillAdmin = new SkillAdmin({
skillsRoot: () => skillSync.skillsRoot(),
holdingDir: () => skillsHoldingDir(),
trashDir: () => skillsTrashDir(),
syncStatePath: () => join(dshHome(), 'cloud-memory-skills.json'),
syncRunning: () => skillSync.stats().running,
log: (message) => logger.info(message),