MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / read

Method read

src/workspaces/scrollback-store.ts:56–65  ·  view source on GitHub ↗
(rel: string)

Source from the content-addressed store, hash-verified

54 }
55
56 async read(rel: string): Promise<Buffer | null> {
57 try {
58 return await readFile(join(this.dir, rel));
59 } catch (err) {
60 if ((err as NodeJS.ErrnoException).code !== 'ENOENT') {
61 this.logger.warn('scrollback.read_failed', { rel, err });
62 }
63 return null;
64 }
65 }
66
67 async remove(rel: string): Promise<void> {
68 try {

Callers

nothing calls this directly

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected