@draht/coding-agent 2026.4.25 → 2026.5.12

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/CHANGELOG.md CHANGED
@@ -1,6 +1,35 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased]
3
+ ## [2026.5.12] - 2026-05-12
4
+
5
+ ### Added
6
+
7
+ - flag plan placeholders and empty sections in validate-plans
8
+ - integrate spec-reviewer, STATUS protocol, and Red Flag gates across commands
9
+ - rewrite /fix as 4-phase systematic debugging protocol
10
+ - add commit-level branding hooks to rebase guard
11
+
12
+ ### Changed
13
+
14
+ - ignore local .dev scratch file
15
+
16
+ ### Fixed
17
+
18
+ - add missing @sinclair/typebox dependency
19
+
20
+ ## [2026.4.25] - 2026-04-25
21
+
22
+ ### Added
23
+
24
+ - add GSD workflow shipped prompts and API exports
25
+ - add "max" thinking level, copper theme, and error retry
26
+
27
+ ### Changed
28
+
29
+ - bump workspace version to 2026.4.25
30
+ - rebrand all package READMEs from pi to draht
31
+ - rebrand pi to draht in README
32
+ - add ASCII art logo and dev changelog skip
4
33
 
5
34
  ## [2026.4.23] - 2026-04-23
6
35
 
@@ -206,7 +235,7 @@
206
235
  - resolve type errors and branding from upstream sync
207
236
  - branding sweep for upstream cherry-picks
208
237
  - emit session_shutdown in print mode closes #2576
209
- - replace π with D in terminal title
238
+ - replace π with draht in terminal title
210
239
  - update changelog URL from draht-mono to draht
211
240
  - resolve upstream sync conflicts and fix branding
212
241
  - respect export theme backgrounds closes #2565
@@ -523,6 +523,46 @@ commands["read-plan"] = function (n, p) {
523
523
  };
524
524
 
525
525
  // --- validate-plans ---
526
+ // Placeholder patterns that indicate a task isn't actually executable.
527
+ // Borrowed from superpowers' writing-plans discipline: tasks with these aren't
528
+ // usable input for an implementer subagent.
529
+ const PLACEHOLDER_PATTERNS = [
530
+ { pattern: /\[TBD\]/i, label: "[TBD]" },
531
+ { pattern: /\[files?\]/i, label: "[file] or [files]" },
532
+ { pattern: /\[description\]/i, label: "[description]" },
533
+ { pattern: /\[task\s*name\]/i, label: "[task name]" },
534
+ { pattern: /\bappropriate\s+error\s+handling\b/i, label: '"appropriate error handling"' },
535
+ { pattern: /\bsimilar\s+to\s+task\s+[NX0-9]+\b/i, label: '"similar to Task N"' },
536
+ { pattern: /\bsee\s+previous\s+task\b/i, label: '"see previous task"' },
537
+ { pattern: /\bfill\s+in\s+later\b/i, label: '"fill in later"' },
538
+ { pattern: /\bfigure\s+(?:this\s+)?out\s+later\b/i, label: '"figure out later"' },
539
+ ];
540
+
541
+ function findPlaceholders(content) {
542
+ const hits = [];
543
+ for (const { pattern, label } of PLACEHOLDER_PATTERNS) {
544
+ if (pattern.test(content)) hits.push(label);
545
+ }
546
+ return hits;
547
+ }
548
+
549
+ function findEmptySections(content) {
550
+ // Detect <test>, <action>, <verify>, <done> blocks that are empty or contain only whitespace/placeholders
551
+ const sections = ["test", "action", "verify", "done", "files"];
552
+ const empty = [];
553
+ for (const tag of sections) {
554
+ const re = new RegExp(`<${tag}>([\\s\\S]*?)</${tag}>`, "g");
555
+ let match;
556
+ while ((match = re.exec(content)) !== null) {
557
+ const inner = match[1].trim();
558
+ if (inner.length === 0 || /^\.\.\.$/.test(inner) || /^\[.*\]$/.test(inner)) {
559
+ empty.push(`<${tag}>`);
560
+ }
561
+ }
562
+ }
563
+ return empty;
564
+ }
565
+
526
566
  commands["validate-plans"] = function (n) {
527
567
  const num = parseInt(n, 10);
528
568
  if (!num) { console.error("Usage: draht-tools validate-plans N"); process.exit(1); }
@@ -547,6 +587,18 @@ commands["validate-plans"] = function (n) {
547
587
  const taskCount = (content.match(/<task/g) || []).length;
548
588
  if (taskCount > 5) issues.push(`${file}: ${taskCount} tasks (max recommended: 5)`);
549
589
  if (taskCount === 0) issues.push(`${file}: No tasks defined`);
590
+
591
+ // Placeholder linter — flag tasks that aren't actually executable
592
+ const placeholders = findPlaceholders(content);
593
+ if (placeholders.length > 0) {
594
+ issues.push(`${file}: contains placeholder text → ${placeholders.join(", ")} (tasks must be concrete to dispatch to subagents)`);
595
+ }
596
+
597
+ // Empty section linter — <test>, <action>, <verify>, <done>, <files> must have real content
598
+ const emptySections = findEmptySections(content);
599
+ if (emptySections.length > 0) {
600
+ issues.push(`${file}: empty or placeholder-only sections → ${emptySections.join(", ")}`);
601
+ }
550
602
  }
551
603
 
552
604
  console.log(banner(`VALIDATE PHASE ${num}`));
@@ -556,6 +608,7 @@ commands["validate-plans"] = function (n) {
556
608
  } else {
557
609
  console.log(`\n⚠️ ${issues.length} issue(s):`);
558
610
  for (const issue of issues) console.log(` - ${issue}`);
611
+ process.exit(1);
559
612
  }
560
613
  };
561
614