MCPcopy Index your code
hub / github.com/coder/mux / parsePolicyFile

Function parsePolicyFile

src/node/services/policyService.ts:155–158  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

153}
154
155function parsePolicyFile(text: string): unknown {
156 // Policy files are strict JSON (no JS evaluation).
157 return JSON.parse(text) as unknown;
158}
159
160export type PolicyStatus =
161 | { state: "disabled" }

Callers 1

refreshPolicyOnceMethod · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected