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

Function removeImpl

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

Source from the content-addressed store, hash-verified

1236 });
1237
1238 const removeImpl = (owner: Owner, collection: string, key: string) =>
1239 Effect.gen(function* () {
1240 const os = ownerSubject(owner);
1241 if (!os) {
1242 return yield* new StorageError({
1243 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1244 cause: undefined,
1245 });
1246 }
1247 yield* input.core.deleteMany("plugin_storage", {
1248 where: whereOwner(owner, collection, key),
1249 });
1250 });
1251
1252 const keysByCollection = (
1253 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