MCPcopy
hub / github.com/continuedev/continue / parseAssistantUnrolled

Function parseAssistantUnrolled

packages/config-yaml/src/load/unroll.ts:60–71  ·  view source on GitHub ↗
(configYaml: string)

Source from the content-addressed store, hash-verified

58}
59
60export function parseAssistantUnrolled(configYaml: string): AssistantUnrolled {
61 try {
62 const parsed = YAML.parse(configYaml);
63 const result = assistantUnrolledSchema.parse(parsed);
64 return result;
65 } catch (e: any) {
66 console.error(
67 `Failed to parse unrolled assistant: ${e.message}\n\n${configYaml}`,
68 );
69 throw new Error(`Failed to parse config: ${formatZodError(e)}`);
70 }
71}
72
73export function parseBlock(configYaml: string): Block {
74 try {

Callers 2

renderSecretsFunction · 0.85

Calls 2

formatZodErrorFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected