openclaw/extensions/memory-claudemem/index.ts
Alex Newman 346cef2488 feat(memory-claudemem): scaffold plugin structure
Create extensions/memory-claudemem with:
- package.json with workspace references
- clawdbot.plugin.json manifest
- types.ts, config.ts, client.ts (stubs), index.ts

Part of claude-mem integration (Phase 2/7).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 14:04:28 -05:00

27 lines
825 B
TypeScript

import type { ClawdbotPluginApi } from "clawdbot/plugin-sdk";
import { claudeMemConfigSchema } from "./config.js";
import { ClaudeMemClient } from "./client.js";
const claudeMemPlugin = {
id: "memory-claudemem",
name: "Memory (Claude-Mem)",
description: "Real-time observation and memory via claude-mem worker",
kind: "memory" as const,
configSchema: claudeMemConfigSchema,
register(api: ClawdbotPluginApi) {
const cfg = claudeMemConfigSchema.parse(api.pluginConfig);
const client = new ClaudeMemClient(cfg.workerUrl, cfg.workerTimeout);
api.logger.info(
`memory-claudemem: plugin registered (worker: ${cfg.workerUrl})`,
);
// TODO: Phase 4 - Hook registration
// TODO: Phase 5 - Tool registration
// TODO: Phase 6 - CLI registration
},
};
export default claudeMemPlugin;