MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / getAll

Method getAll

src/lib/FileSystemStorage.ts:114–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112 }
113
114 async getAll(): Promise<Record<string, unknown>> {
115 const raw = await this.sendRequest('monogatari:storage-get-all', {}) as Record<string, unknown>;
116 const result: Record<string, unknown> = {};
117 for (const [k, v] of Object.entries(raw)) {
118 result[k] = this.applyGetTransformations(k, v);
119 }
120 return result;
121 }
122
123 async each(callback: (key: string, value: unknown) => unknown): Promise<unknown[]> {
124 const all = await this.getAll();

Callers 1

eachMethod · 0.95

Calls 2

sendRequestMethod · 0.95

Tested by

no test coverage detected