MCPcopy
hub / github.com/cloudflare/vibesdk / parse

Method parse

container/cli-tools.ts:84–95  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

82 }
83
84 static parse(text: string): unknown {
85 try {
86 return JSON.parse(text);
87 } catch {
88 // Return error object for failed parsing
89 return {
90 success: false,
91 error: 'Invalid JSON format',
92 rawText: text.substring(0, 200)
93 };
94 }
95 }
96}
97
98class SafeCleanup {

Callers 15

parseJsonLogMethod · 0.80
parseJSONFunction · 0.80
getTokenFromCookieMethod · 0.80
getInstanceMetadataMethod · 0.80
listAllInstancesMethod · 0.80
createInstanceMethod · 0.80
getInstanceErrorsMethod · 0.80
clearInstanceErrorsMethod · 0.80
runStaticAnalysisCodeMethod · 0.80
getTemplateDetailsFunction · 0.80
extractBindingNameMethod · 0.80
webSocketMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected