tdd-enforcer 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapters/pi/hooks.ts +2 -1
- package/package.json +1 -1
package/adapters/pi/hooks.ts
CHANGED
|
@@ -105,12 +105,13 @@ export function registerHooks(pi: ExtensionAPI): void {
|
|
|
105
105
|
|
|
106
106
|
const existingText = event.content.map((c) => ("text" in c ? c.text : "")).join("");
|
|
107
107
|
return {
|
|
108
|
+
isError: true,
|
|
108
109
|
content: [
|
|
109
110
|
{
|
|
110
111
|
type: "text",
|
|
111
112
|
text:
|
|
112
113
|
existingText +
|
|
113
|
-
`\n\n
|
|
114
|
+
`\n\n⛔ ${phase.toUpperCase()}: bash modified locked files: ${violations.join(", ")}\n` +
|
|
114
115
|
`next_tdd_phase blocked until reverted. ` +
|
|
115
116
|
`Inspect with: cd .pi/tdd && git diff HEAD -- ${violations[0]}`,
|
|
116
117
|
},
|