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

Function removeImpl

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

Source from the content-addressed store, hash-verified

1522 });
1523
1524 const removeImpl = (owner: Owner, collection: string, key: string) =>
1525 Effect.gen(function* () {
1526 const os = ownerSubject(owner);
1527 if (!os) {
1528 return yield* new StorageError({
1529 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1530 cause: undefined,
1531 });
1532 }
1533 yield* input.core.deleteMany("plugin_storage", {
1534 where: whereOwner(owner, collection, key),
1535 });
1536 });
1537
1538 const keysByCollection = (
1539 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