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

Method update

src/lib/FileSystemStorage.ts:95–105  ·  view source on GitHub ↗
(key: string, value: unknown)

Source from the content-addressed store, hash-verified

93 }
94
95 async update(key: string, value: unknown): Promise<unknown> {
96 const transformed = this.applySetTransformations(key, value);
97 await this.sendRequest('monogatari:storage-update', { key, value: transformed });
98 const result = { key, value: transformed };
99
100 for (const callback of this._callbacks.update) {
101 callback(key, transformed);
102 }
103
104 return result;
105 }
106
107 async remove(key: string): Promise<void> {
108 await this.sendRequest('monogatari:storage-remove', { key });

Callers

nothing calls this directly

Calls 2

sendRequestMethod · 0.95

Tested by

no test coverage detected