openclaw/extensions/memory-claudemem/client.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

33 lines
648 B
TypeScript

import type { SearchResult, Observation } from "./types.js";
export class ClaudeMemClient {
constructor(
private readonly baseUrl: string,
private readonly timeout: number,
) {}
async ping(): Promise<boolean> {
// TODO: Phase 3
return false;
}
async observe(
sessionId: string,
toolName: string,
toolInput: unknown,
toolResponse: unknown,
): Promise<void> {
// TODO: Phase 3
}
async search(query: string, limit = 10): Promise<SearchResult[]> {
// TODO: Phase 3
return [];
}
async getObservations(ids: number[]): Promise<Observation[]> {
// TODO: Phase 3
return [];
}
}