MCPcopy
hub / github.com/rohitg00/agentmemory / extractFilePaths

Function extractFilePaths

plugin/opencode/agentmemory-capture.ts:144–153  ·  view source on GitHub ↗
(args: Record<string, unknown>)

Source from the content-addressed store, hash-verified

142</agentmemory-instructions>`;
143
144function extractFilePaths(args: Record<string, unknown>): string[] {
145 const files: string[] = [];
146 for (const key of FILE_KEYS) {
147 const val = args[key];
148 if (typeof val === "string" && val.length > 0) {
149 files.push(val);
150 }
151 }
152 return files;
153}
154
155function extractErrorMessage(err: unknown): string {
156 if (typeof err === "string") return err;

Callers 1

AgentmemoryCapturePluginFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected