thevoidforge 21.0.6 → 21.0.7

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.
@@ -3,12 +3,15 @@
3
3
  * Handles the simple key: value format used in PRD frontmatter blocks.
4
4
  */
5
5
  export function parseFrontmatter(content) {
6
- // Look for ```yaml ... ``` block in the frontmatter section
6
+ // Try ```yaml ... ``` block first (markdown code fence)
7
7
  const yamlBlockMatch = content.match(/```yaml\s*\n([\s\S]*?)```/);
8
- if (!yamlBlockMatch) {
8
+ // Then try --- ... --- block (standard YAML frontmatter)
9
+ const dashBlockMatch = !yamlBlockMatch ? content.match(/^---\s*\n([\s\S]*?)\n---/) : null;
10
+ const match = yamlBlockMatch ?? dashBlockMatch;
11
+ if (!match) {
9
12
  return { frontmatter: {}, body: content };
10
13
  }
11
- const yamlStr = yamlBlockMatch[1];
14
+ const yamlStr = match[1];
12
15
  const frontmatter = {};
13
16
  for (const line of yamlStr.split('\n')) {
14
17
  const trimmed = line.trim();
@@ -188,7 +188,7 @@
188
188
 
189
189
  <div class="field">
190
190
  <label for="prd-paste">Your PRD</label>
191
- <textarea id="prd-paste" rows="16" placeholder="Paste your PRD here. Include the YAML frontmatter block:&#10;&#10;```yaml&#10;name: &quot;My Project&quot;&#10;type: &quot;full-stack&quot;&#10;framework: &quot;next.js&quot;&#10;...&#10;```"></textarea>
191
+ <textarea id="prd-paste" rows="16" placeholder="Paste your PRD here. Start with YAML frontmatter:&#10;&#10;---&#10;name: My Project&#10;type: full-stack&#10;framework: next.js&#10;database: postgres&#10;deploy: vps&#10;---&#10;&#10;# My Project&#10;&#10;Description and requirements..."></textarea>
192
192
  </div>
193
193
  <button class="btn btn-secondary" id="validate-prd" type="button">Validate Frontmatter</button>
194
194
  <div class="status-row" id="prd-status" role="status" aria-live="polite"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thevoidforge",
3
- "version": "21.0.6",
3
+ "version": "21.0.7",
4
4
  "description": "From nothing, everything. A methodology framework for building with Claude Code.",
5
5
  "type": "module",
6
6
  "engines": {