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

Function firstScope

scripts/agent-config-smoke.ts:132–140  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

130};
131
132const firstScope = (value: unknown): { readonly id: string; readonly name: string } => {
133 const data = toolData<{
134 readonly scopes: readonly { readonly id: string; readonly name: string }[];
135 }>(value);
136 const scopes = data.scopes;
137 const scope = scopes?.[0];
138 assert(scope, `scopes.list returned no scopes: ${JSON.stringify(value)}`);
139 return scope;
140};
141
142const createSecretPlaceholder = async (
143 ctx: CliContext,

Callers 1

runSmokeFunction · 0.85

Calls 2

toolDataFunction · 0.85
assertFunction · 0.85

Tested by

no test coverage detected