mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-17 04:45:33 -08:00
Add a per-phase webhook message and more detail to loop notifications
AI Assisted
This commit is contained in:
1 parent
e5155778bf
commit
5136269ca7
7 files changed
+632
-79
No files matched your search
@@ -40,6 +40,7 @@ export const LOOP_DEFAULTS = Object.freeze({
|
||||
notifyKind: "query",
|
||||
notifyUrl: "",
|
||||
notifyParam: "message",
|
||||
notifyPhases: false,
|
||||
phaseStrength: false,
|
||||
strengths: Object.freeze({}),
|
||||
});
|
||||
@@ -61,7 +62,7 @@ export function loopSetupProblems(entry) {
|
||||
for (const key of Object.keys(entry)) {
|
||||
if (!Object.hasOwn(LOOP_DEFAULTS, key)) problems.push(`"${key}" is not a setup field`);
|
||||
}
|
||||
for (const key of ["review", "commit", "retryOnce"]) {
|
||||
for (const key of ["review", "commit", "retryOnce", "notifyPhases"]) {
|
||||
if (typeof entry[key] !== "boolean") problems.push(`"${key}" must be true or false`);
|
||||
}
|
||||
if (!Array.isArray(entry.fix) || !entry.fix.every((l) => LEVELS.includes(l)) || new Set(entry.fix).size !== entry.fix.length) {
|
||||
|
||||
Reference in new issue
Block a user