Secrets: add migrate rollback and skill ref support

This commit is contained in:
joshavant
2026-02-21 14:23:44 -08:00
committed by Peter Steinberger
parent 2e53033f22
commit f6a854bd37
11 changed files with 1450 additions and 5 deletions

View File

@@ -36,6 +36,21 @@ describe("config secret refs schema", () => {
expect(result.ok).toBe(true);
});
it("accepts skills entry apiKey refs", () => {
const result = validateConfigObjectRaw({
skills: {
entries: {
"review-pr": {
enabled: true,
apiKey: { source: "env", id: "SKILL_REVIEW_PR_API_KEY" },
},
},
},
});
expect(result.ok).toBe(true);
});
it("rejects invalid secret ref id", () => {
const result = validateConfigObjectRaw({
models: {