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