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

Function hashSource

src/node/services/workflows/WorkflowRunStore.ts:1142–1144  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

1140}
1141
1142function hashSource(source: string): string {
1143 return `sha256:${crypto.createHash("sha256").update(source).digest("hex")}`;
1144}
1145
1146async function appendJsonLine(filePath: string, value: unknown): Promise<void> {
1147 await fs.mkdir(path.dirname(filePath), { recursive: true });

Callers 4

createRunMethod · 0.70
createRunIfAbsentMethod · 0.70
getRunFileSnapshotMethod · 0.70
getRunUnlockedMethod · 0.70

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected