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

Function stableMigrationHash

packages/core/sdk/src/migration-spec.ts:932–936  ·  view source on GitHub ↗
(...parts: readonly string[])

Source from the content-addressed store, hash-verified

930// ---------------------------------------------------------------------------
931
932const stableMigrationHash = (...parts: readonly string[]): string => {
933 const hash = createHash("sha256");
934 for (const part of parts) hash.update(part).update("\0");
935 return hash.digest("base64url");
936};
937
938export const migratedItemId = (scopeId: string, secretId: string): string =>
939 `secret_${stableMigrationHash(scopeId, secretId)}`;

Callers 2

migratedItemIdFunction · 0.85
fallbackPolicyIdFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected