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>
33 lines
648 B
TypeScript
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 [];
|
|
}
|
|
}
|