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

Function removeImpl

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

Source from the content-addressed store, hash-verified

1222 });
1223
1224 const removeImpl = (owner: Owner, collection: string, key: string) =>
1225 Effect.gen(function* () {
1226 const os = ownerSubject(owner);
1227 if (!os) {
1228 return yield* new StorageError({
1229 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1230 cause: undefined,
1231 });
1232 }
1233 yield* input.core.deleteMany("plugin_storage", {
1234 where: whereOwner(owner, collection, key),
1235 });
1236 });
1237
1238 const keysByCollection = (
1239 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