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

Function decodeConnection

apps/cli/src/server-profile.ts:93–98  ·  view source on GitHub ↗
(
  input: ExecutorServerConnectionInput,
)

Source from the content-addressed store, hash-verified

91const decodeStoreJson = Schema.decodeUnknownOption(Schema.fromJsonString(PersistedStore));
92
93const decodeConnection = (
94 input: ExecutorServerConnectionInput,
95): ExecutorServerConnection | null => {
96 if (!input.origin && !input.apiBaseUrl) return null;
97 return normalizeExecutorServerConnection(input);
98};
99
100export const parseCliServerConnectionStore = (raw: string): CliServerConnectionStore => {
101 const decoded = decodeStoreJson(raw);

Callers 1

Calls 1

Tested by

no test coverage detected