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

Function isStringList

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

Source from the content-addressed store, hash-verified

247export const APPROVAL_TERM_KEYS = ["persist", "origin", "connector_name", "connector_id"] as const;
248
249const isStringList = (value: unknown): value is readonly string[] =>
250 Array.isArray(value) && value.every((item) => typeof item === "string");
251
252/** A term is a string, or a list of strings: Computer Use OFFERS
253 * `persist: ["session", "always"]` for the answer to pick from, where

Callers 1

isApprovalTermFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected