dotmd-cli 0.10.5 → 0.10.6
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/package.json +1 -1
- package/src/validate.mjs +5 -4
package/package.json
CHANGED
package/src/validate.mjs
CHANGED
|
@@ -79,14 +79,15 @@ export function validateDoc(doc, frontmatter, headingTitle, config) {
|
|
|
79
79
|
doc.warnings.push({ path: doc.path, level: 'warning', message: 'Missing `summary` and no blockquote fallback found.' });
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
// Determine which statuses should have current_state and next_step
|
|
83
|
-
const
|
|
82
|
+
// Determine which statuses should have current_state and next_step (plans only, not docs/research)
|
|
83
|
+
const isPlanWork = knownStatus && doc.status && (!doc.type || doc.type === 'plan')
|
|
84
|
+
&& !config.lifecycle.terminalStatuses.has(doc.status) && !config.lifecycle.skipWarningsFor.has(doc.status);
|
|
84
85
|
|
|
85
|
-
if (
|
|
86
|
+
if (isPlanWork && !asString(frontmatter.current_state)) {
|
|
86
87
|
doc.warnings.push({ path: doc.path, level: 'warning', message: 'Missing `current_state`; index output is using a fallback or placeholder.' });
|
|
87
88
|
}
|
|
88
89
|
|
|
89
|
-
if (
|
|
90
|
+
if (isPlanWork && doc.status !== 'blocked' && !asString(frontmatter.next_step)) {
|
|
90
91
|
doc.warnings.push({ path: doc.path, level: 'warning', message: 'Missing `next_step`; command output will omit a clear immediate action.' });
|
|
91
92
|
}
|
|
92
93
|
|