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

Method set

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

Source from the content-addressed store, hash-verified

81 }
82
83 async set(key: string, value: unknown): Promise<unknown> {
84 const transformed = this.applySetTransformations(key, value);
85 await this.sendRequest('monogatari:storage-set', { key, value: transformed });
86 const result = { key, value: transformed };
87
88 for (const callback of this._callbacks.create) {
89 callback(key, transformed);
90 }
91
92 return result;
93 }
94
95 async update(key: string, value: unknown): Promise<unknown> {
96 const transformed = this.applySetTransformations(key, value);

Callers

nothing calls this directly

Calls 2

sendRequestMethod · 0.95

Tested by

no test coverage detected