code-as-plan 2.0.3 → 2.0.4

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.
@@ -9,7 +9,7 @@ const path = require('node:path');
9
9
 
10
10
  // --- Constants ---
11
11
 
12
- const GSD_TAG_RE = /(@gsd-(feature|todo|risk|decision|context|status|depends|ref|pattern|api|constraint))(\([^)]*\))?\s*(.*)/;
12
+ const GSD_TAG_RE = /(@gsd-(feature|todos?|risk|decision|context|status|depends|ref|pattern|api|constraint|placeholder|concern))(\([^)]*\))?\s*(.*)/;
13
13
 
14
14
  const SUPPORTED_EXTENSIONS = ['.js', '.cjs', '.mjs', '.ts', '.tsx', '.jsx', '.py', '.rb', '.go', '.rs', '.sh', '.md'];
15
15
  const EXCLUDE_DIRS = ['node_modules', '.git', '.cap', 'dist', 'build', 'coverage'];
@@ -120,6 +120,27 @@ function migrateLineTag(line) {
120
120
  action: 'plain-comment',
121
121
  };
122
122
 
123
+ case 'todos':
124
+ // @gsd-todos (plural typo) → @cap-todo
125
+ return {
126
+ replaced: line.replace(fullTag, '@cap-todo'),
127
+ action: 'converted',
128
+ };
129
+
130
+ case 'placeholder':
131
+ // @gsd-placeholder → @cap-todo (placeholder is a todo variant)
132
+ return {
133
+ replaced: line.replace(fullTag, '@cap-todo'),
134
+ action: 'converted',
135
+ };
136
+
137
+ case 'concern':
138
+ // @gsd-concern → @cap-todo risk: (concerns are risks)
139
+ return {
140
+ replaced: line.replace(fullTag + metadata + (description ? ' ' : ''), '@cap-todo' + metadata + ' risk: ').replace(/ +/g, ' '),
141
+ action: 'converted',
142
+ };
143
+
123
144
  default:
124
145
  return null;
125
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-as-plan",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "CAP — Code as Plan. Build first, plan from code. Farley-aligned engineering framework for Claude Code.",
5
5
  "bin": {
6
6
  "cap": "bin/install.js"