MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / rejectReservedDevSecretGenerationMetadata

Function rejectReservedDevSecretGenerationMetadata

dev/local/env-sync/plan.ts:278–290  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

276 throw new Error('Invalid @dev-generate metadata');
277 }
278 return bytes;
279}
280
281function validateDevSecretGenerationMetadata(value: unknown): void {
282 if (Array.isArray(value)) {
283 for (const item of value) validateDevSecretGenerationMetadata(item);
284 return;
285 }
286 if (!isJsonObject(value)) return;
287
288 if (getDevGeneratedBase64Bytes(value) !== undefined) {
289 if (
290 typeof value.binding !== 'string' ||
291 typeof value.store_id !== 'string' ||
292 typeof value.secret_name !== 'string'
293 ) {

Callers 1

Calls 2

isJsonObjectFunction · 0.70
valuesMethod · 0.65

Tested by

no test coverage detected