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

Function isApprovalTerm

packages/plugins/mcp/src/sdk/invoke.ts:255–256  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

253 * `persist: ["session", "always"]` for the answer to pick from, where
254 * Chrome STATES `persist: "always"`. Either way it is a term of the grant. */
255const isApprovalTerm = (value: unknown): value is string | readonly string[] =>
256 typeof value === "string" || isStringList(value);
257
258export const approvalTerms = (meta: Record<string, unknown> | undefined) => {
259 if (meta === undefined) return {};

Callers 1

approvalTermsFunction · 0.85

Calls 1

isStringListFunction · 0.85

Tested by

no test coverage detected