(text, scanOptions)
| 1335 | } |
| 1336 | |
| 1337 | export function appendDesignSystemNote(text, scanOptions) { |
| 1338 | if (!text || !scanOptions?.designSystem?.mdNewerThanJson) return text; |
| 1339 | return `${text}\n\n${ENVELOPE_PREFIX} DESIGN.md is newer than .impeccable/design.json. Run /impeccable document to refresh the design-system sidecar.`; |
| 1340 | } |
| 1341 | |
| 1342 | // The directive footer is the part of the hook output that steers model |
| 1343 | // behavior. Three intentional moves: |