更新 src/index.ts
This commit is contained in:
parent
1f1df4f39f
commit
8e9c2ac498
|
|
@ -16,7 +16,7 @@ import { createRoutes } from './routes.ts'
|
||||||
import { join } from 'node:path'
|
import { join } from 'node:path'
|
||||||
import { SettingsStore, dshHome } from './store.ts'
|
import { SettingsStore, dshHome } from './store.ts'
|
||||||
import { SkillSync } from './skill-sync.ts'
|
import { SkillSync } from './skill-sync.ts'
|
||||||
import { SkillAdmin, skillsHoldingDir, skillsTrashDir } from './skill-admin.ts'
|
import { SkillAdmin, skillsHoldingDir } from './skill-admin.ts'
|
||||||
import { createMemoryTools, createSkillTools } from './tools.ts'
|
import { createMemoryTools, createSkillTools } from './tools.ts'
|
||||||
|
|
||||||
/** Package name; also the client bundle id. */
|
/** Package name; also the client bundle id. */
|
||||||
|
|
@ -26,7 +26,7 @@ export const name = 'dsh-cloud-memory'
|
||||||
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
|
||||||
|
|
@ -70,7 +70,6 @@ export function apply(ctx: CloudMemoryContext, config: unknown): void {
|
||||||
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