create-cadmo 0.4.0 → 0.4.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cadmo",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Scaffold the Cadmo method into your project \u2014 a right-sized method for building software with AI as your pair.",
5
5
  "keywords": [
6
6
  "cadmo",
@@ -194,9 +194,10 @@ for (const f of mdFiles(ROOT)) {
194
194
  const rel = path.relative(ROOT, f).split(BS).join('/');
195
195
  if (watches) {
196
196
  specs.push({ spec: rel, watches, reviewed: reviewedOf(text) });
197
- } else if (text.startsWith('<!--') && /^watches:/m.test(text)) {
198
- // the template ships with a leading HTML comment; front matter placed after
199
- // it is invisible to the grammar — a spec that LOOKS guarded but isn't.
197
+ } else if (text.startsWith('<!--') && /^watches:/m.test(text.replace(/^<!--[^]*?-->/, ''))) {
198
+ // front matter placed AFTER a leading HTML comment is invisible to the
199
+ // grammar — a spec that LOOKS guarded but isn't. (A watches: example still
200
+ // INSIDE the comment — the untouched template — stays silent.)
200
201
  console.error(`WARNING: ${rel} has a watches: line but does not start with --- (front matter must be the very first bytes — delete the leading comment). This spec is NOT being checked.`);
201
202
  }
202
203
  }