MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / shot

Method shot

graph-ui/tools/call-feedback-capture.mjs:181–190  ·  view source on GitHub ↗
(label, note, options = {})

Source from the content-addressed store, hash-verified

179 }
180
181 async shot(label, note, options = {}) {
182 this.n += 1;
183 const file = `${String(this.n).padStart(2, '0')}-${label}.png`;
184 await mkdir(this.dir, { recursive: true });
185 await this.page.screenshot({ path: join(this.dir, file), fullPage: false, ...(options.clip ? { clip: options.clip } : {}) });
186 const state = await this.state().catch((error) => ({ error: String(error) }));
187 this.entries.push({ file, note, at: Date.now(), state, ...(options.extra ? { extra: options.extra } : {}) });
188 console.log(`[${this.name}] ${file} ${note}`);
189 return state;
190 }
191
192 note(text) {
193 this.notes.push(text);

Callers 9

galaxySelectionFunction · 0.95
galaxyTraceIncomingFunction · 0.95
galaxyZoomFunction · 0.95
chatScenarioFunction · 0.95
headerScenarioFunction · 0.95
architectureScenarioFunction · 0.95
systemScenarioFunction · 0.95
settleFunction · 0.80
measureOverlapFunction · 0.80

Calls 3

stateMethod · 0.95
logMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected