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

Function offeredPersistence

packages/core/sdk/src/elicitation.ts:26–31  ·  view source on GitHub ↗
(meta: ElicitationMeta | undefined)

Source from the content-addressed store, hash-verified

24 * approval sends `persist: "always"` — a statement of what accepting
25 * means, not a choice — and contributes nothing here. */
26export const offeredPersistence = (meta: ElicitationMeta | undefined): readonly string[] => {
27 const persist = meta?.["persist"];
28 return Array.isArray(persist) && persist.every((scope) => typeof scope === "string")
29 ? persist
30 : [];
31};
32
33/** What an accepted approval carries back, in the request's own vocabulary.
34 *

Callers 2

formatPausedExecutionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected