You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7d696db
Browse filesBrowse the repository at this point in the historyBrowse files
feat(promote): warn when omit drops a credentialIds entry
An omitted credentialId is neutral. An entry omitted from a credentialIds
list narrows which keys calls in the target may use, so the provider it was
for falls back to Vapi's own key. The plan now names the entry and the file.
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
// A credentialIds list is the only set of keys a call may use, so an
643
+
// entry left out of it is not neutral the way an omitted credentialId is.
644
+
for(constaliasofnewSet(omitted))
645
+
warnings.push(
646
+
`${file.path}: credentialIds entry "${alias}" is left out in ${options.target} (binding policy "omit"). Calls there can use only the keys still on the list, so that provider would run on Vapi's own key.`,
647
+
);
648
+
}
630
649
}
631
650
for(constfileoftarget)
632
651
if(
@@ -636,7 +655,12 @@ export async function promotionPlanBuild(
'squads/front-desk.yml: credentialIds entry "voice" is left out in target (binding policy "omit"). Calls there can use only the keys still on the list, so that provider would run on Vapi\'s own key.',
343
+
]);
344
+
345
+
// Once the target file holds the promoted content there is no change,
346
+
// and no warning to repeat.
347
+
awaitpromotionPlanApply(plan);
348
+
constagain=awaitbuild({voice: "omit"});
349
+
assert.deepEqual(again.changes,[]);
350
+
assert.deepEqual(again.warnings,[]);
287
351
}finally{
288
352
awaitfx.cleanup();
289
353
}
@@ -462,6 +526,10 @@ test("promotionConfigParse reads an org's optional check gate and rejects a non-
0 commit comments