MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / removeImpl

Function removeImpl

packages/core/sdk/src/executor.ts:1276–1288  ·  view source on GitHub ↗
(owner: Owner, collection: string, key: string)

Source from the content-addressed store, hash-verified

1274 });
1275
1276 const removeImpl = (owner: Owner, collection: string, key: string) =>
1277 Effect.gen(function* () {
1278 const os = ownerSubject(owner);
1279 if (!os) {
1280 return yield* new StorageError({
1281 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1282 cause: undefined,
1283 });
1284 }
1285 yield* input.core.deleteMany("plugin_storage", {
1286 where: whereOwner(owner, collection, key),
1287 });
1288 });
1289
1290 const keysByCollection = (
1291 entries: readonly { readonly collection: string; readonly key: string }[],

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

whereOwnerFunction · 0.85
ownerSubjectFunction · 0.70

Tested by

no test coverage detected