@torus-engineering/tas-kit 1.10.0 → 1.12.0

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.
Files changed (162) hide show
  1. package/.tas/README.md +70 -70
  2. package/{.claude → .tas/_platform/claude-code}/settings.json +0 -12
  3. package/{.claude → .tas/_platform}/hooks/code-quality.js +1 -1
  4. package/{.claude → .tas/_platform}/hooks/session-end.js +20 -25
  5. package/.tas/commands/ado-create.md +28 -0
  6. package/.tas/commands/ado-delete.md +22 -0
  7. package/.tas/commands/ado-get.md +20 -0
  8. package/.tas/commands/ado-status.md +18 -0
  9. package/.tas/commands/ado-update.md +27 -0
  10. package/.tas/commands/tas-adr.md +33 -0
  11. package/.tas/commands/tas-apitest-plan.md +173 -0
  12. package/.tas/commands/tas-apitest.md +143 -0
  13. package/.tas/commands/tas-brainstorm.md +19 -0
  14. package/.tas/commands/tas-bug.md +113 -0
  15. package/.tas/commands/tas-design.md +37 -0
  16. package/.tas/commands/tas-dev.md +125 -0
  17. package/{.claude → .tas}/commands/tas-e2e-mobile.md +155 -155
  18. package/{.claude → .tas}/commands/tas-e2e-web.md +163 -163
  19. package/.tas/commands/tas-e2e.md +102 -0
  20. package/.tas/commands/tas-epic.md +35 -0
  21. package/.tas/commands/tas-feature.md +47 -0
  22. package/.tas/commands/tas-fix.md +51 -0
  23. package/.tas/commands/tas-functest-mobile.md +144 -0
  24. package/{.claude → .tas}/commands/tas-functest-web.md +192 -192
  25. package/.tas/commands/tas-functest.md +76 -0
  26. package/.tas/commands/tas-init.md +17 -0
  27. package/.tas/commands/tas-plan.md +198 -0
  28. package/.tas/commands/tas-prd.md +37 -0
  29. package/.tas/commands/tas-review.md +113 -0
  30. package/.tas/commands/tas-sad.md +43 -0
  31. package/.tas/commands/tas-security.md +87 -0
  32. package/.tas/commands/tas-spec.md +50 -0
  33. package/.tas/commands/tas-status.md +16 -0
  34. package/.tas/commands/tas-story.md +91 -0
  35. package/.tas/platforms.json +5 -0
  36. package/.tas/project-status-example.yaml +17 -17
  37. package/.tas/rules/ado-integration.md +65 -0
  38. package/{.claude/skills/api-design/SKILL.md → .tas/rules/common/api-design.md} +517 -530
  39. package/{.claude → .tas}/rules/common/code-review.md +30 -6
  40. package/.tas/rules/common/post-implementation-review.md +51 -0
  41. package/{.claude → .tas}/rules/common/project-status.md +80 -80
  42. package/.tas/rules/common/stack-detection.md +29 -0
  43. package/.tas/rules/common/story-done.md +30 -0
  44. package/.tas/rules/common/tdd.md +89 -0
  45. package/{.claude → .tas}/rules/common/testing.md +3 -8
  46. package/.tas/rules/common/token-logging.md +36 -0
  47. package/{.claude → .tas}/rules/csharp/api-testing.md +20 -20
  48. package/{.claude → .tas}/rules/csharp/coding-style.md +0 -2
  49. package/{.claude → .tas}/rules/csharp/security.md +10 -0
  50. package/{.claude → .tas}/rules/python/coding-style.md +0 -2
  51. package/{.claude → .tas}/rules/typescript/coding-style.md +0 -2
  52. package/.tas/rules/typescript/patterns.md +142 -0
  53. package/.tas/rules/typescript/security.md +88 -0
  54. package/{.claude → .tas}/rules/typescript/testing.md +0 -4
  55. package/{.claude → .tas}/rules/web/coding-style.md +0 -2
  56. package/.tas/tas-example.yaml +10 -11
  57. package/.tas/templates/ADR.md +47 -47
  58. package/.tas/templates/AGENTS.md +37 -0
  59. package/.tas/templates/API-Test-Spec.md +3 -3
  60. package/.tas/templates/Bug.md +67 -67
  61. package/.tas/templates/Design-Spec.md +36 -36
  62. package/.tas/templates/E2E-Execution-Report.md +1 -1
  63. package/.tas/templates/Epic.md +46 -46
  64. package/.tas/templates/Feature.md +10 -10
  65. package/.tas/templates/Func-Test-Spec.md +3 -3
  66. package/.tas/templates/SAD.md +106 -106
  67. package/.tas/templates/Security-Report.md +27 -27
  68. package/.tas/templates/Story.md +9 -9
  69. package/.tas/tools/tas-ado-readme.md +68 -68
  70. package/.tas/tools/tas-ado.py +621 -621
  71. package/README.md +78 -78
  72. package/bin/cli.js +91 -73
  73. package/lib/adapters/antigravity.js +137 -0
  74. package/lib/adapters/claude-code.js +35 -0
  75. package/lib/adapters/codex.js +163 -0
  76. package/lib/adapters/cursor.js +80 -0
  77. package/lib/adapters/index.js +20 -0
  78. package/lib/adapters/utils.js +81 -0
  79. package/lib/deleted-files.json +99 -0
  80. package/lib/install.js +403 -327
  81. package/package.json +4 -3
  82. package/.claude/agents/code-reviewer.md +0 -41
  83. package/.claude/agents/e2e-runner.md +0 -61
  84. package/.claude/agents/planner.md +0 -82
  85. package/.claude/agents/tdd-guide.md +0 -84
  86. package/.claude/commands/ado-create.md +0 -27
  87. package/.claude/commands/ado-delete.md +0 -21
  88. package/.claude/commands/ado-get.md +0 -20
  89. package/.claude/commands/ado-status.md +0 -18
  90. package/.claude/commands/ado-update.md +0 -26
  91. package/.claude/commands/tas-adr.md +0 -33
  92. package/.claude/commands/tas-apitest-plan.md +0 -173
  93. package/.claude/commands/tas-apitest.md +0 -143
  94. package/.claude/commands/tas-brainstorm.md +0 -19
  95. package/.claude/commands/tas-bug.md +0 -113
  96. package/.claude/commands/tas-design.md +0 -37
  97. package/.claude/commands/tas-dev.md +0 -128
  98. package/.claude/commands/tas-e2e.md +0 -102
  99. package/.claude/commands/tas-epic.md +0 -35
  100. package/.claude/commands/tas-feature.md +0 -47
  101. package/.claude/commands/tas-fix.md +0 -51
  102. package/.claude/commands/tas-functest-mobile.md +0 -144
  103. package/.claude/commands/tas-functest.md +0 -76
  104. package/.claude/commands/tas-init.md +0 -17
  105. package/.claude/commands/tas-plan.md +0 -200
  106. package/.claude/commands/tas-prd.md +0 -37
  107. package/.claude/commands/tas-review.md +0 -111
  108. package/.claude/commands/tas-sad.md +0 -43
  109. package/.claude/commands/tas-security.md +0 -87
  110. package/.claude/commands/tas-spec.md +0 -50
  111. package/.claude/commands/tas-status.md +0 -16
  112. package/.claude/commands/tas-story.md +0 -91
  113. package/.claude/commands/tas-verify.md +0 -51
  114. package/.claude/rules/common/post-review-agent.md +0 -49
  115. package/.claude/rules/common/stack-detection.md +0 -29
  116. package/.claude/rules/common/token-logging.md +0 -27
  117. package/.claude/rules/typescript/patterns.md +0 -62
  118. package/.claude/rules/typescript/security.md +0 -28
  119. package/.claude/settings.local.json +0 -38
  120. package/.claude/skills/ado-integration/SKILL.md +0 -75
  121. package/.claude/skills/ai-regression-testing/SKILL.md +0 -364
  122. package/.claude/skills/architecture-decision-records/SKILL.md +0 -184
  123. package/.claude/skills/benchmark/SKILL.md +0 -98
  124. package/.claude/skills/browser-qa/SKILL.md +0 -92
  125. package/.claude/skills/canary-watch/SKILL.md +0 -104
  126. package/.claude/skills/js-backend-patterns/SKILL.md +0 -603
  127. package/.claude/skills/tas-conventions/SKILL.md +0 -65
  128. package/.claude/skills/tas-implementation-complete/SKILL.md +0 -99
  129. package/.claude/skills/tas-tdd/SKILL.md +0 -123
  130. package/.claude/skills/token-logger/SKILL.md +0 -19
  131. package/.tas/checklists/code-review.md +0 -29
  132. package/.tas/checklists/security.md +0 -21
  133. package/.tas/checklists/story-done.md +0 -23
  134. package/CLAUDE-Example.md +0 -61
  135. /package/{.claude → .tas}/agents/architect.md +0 -0
  136. /package/{.claude → .tas}/agents/aws-reviewer.md +0 -0
  137. /package/{.claude → .tas}/agents/build-resolver.md +0 -0
  138. /package/{.claude → .tas}/agents/code-explorer.md +0 -0
  139. /package/{.claude → .tas}/agents/csharp-reviewer.md +0 -0
  140. /package/{.claude → .tas}/agents/database-reviewer.md +0 -0
  141. /package/{.claude → .tas}/agents/doc-updater.md +0 -0
  142. /package/{.claude → .tas}/agents/python-reviewer.md +0 -0
  143. /package/{.claude → .tas}/agents/security-reviewer.md +0 -0
  144. /package/{.claude → .tas}/agents/typescript-reviewer.md +0 -0
  145. /package/{.claude → .tas}/rules/.gitkeep +0 -0
  146. /package/{.claude → .tas}/rules/common/hooks.md +0 -0
  147. /package/{.claude → .tas}/rules/common/patterns.md +0 -0
  148. /package/{.claude → .tas}/rules/common/security.md +0 -0
  149. /package/{.claude → .tas}/rules/csharp/hooks.md +0 -0
  150. /package/{.claude → .tas}/rules/csharp/patterns.md +0 -0
  151. /package/{.claude → .tas}/rules/csharp/testing.md +0 -0
  152. /package/{.claude → .tas}/rules/python/hooks.md +0 -0
  153. /package/{.claude → .tas}/rules/python/patterns.md +0 -0
  154. /package/{.claude → .tas}/rules/python/security.md +0 -0
  155. /package/{.claude → .tas}/rules/python/testing.md +0 -0
  156. /package/{.claude → .tas}/rules/typescript/hooks.md +0 -0
  157. /package/{.claude → .tas}/rules/web/design-quality.md +0 -0
  158. /package/{.claude → .tas}/rules/web/hooks.md +0 -0
  159. /package/{.claude → .tas}/rules/web/patterns.md +0 -0
  160. /package/{.claude → .tas}/rules/web/performance.md +0 -0
  161. /package/{.claude → .tas}/rules/web/security.md +0 -0
  162. /package/{.claude → .tas}/rules/web/testing.md +0 -0
@@ -0,0 +1,163 @@
1
+ import fs from 'node:fs/promises';
2
+ import path from 'node:path';
3
+ import {
4
+ exists, listFilesRecursive,
5
+ parseFrontmatter, extractDescription, extractCommandName, extractH1, yamlValue,
6
+ } from './utils.js';
7
+
8
+ export const PLATFORM_ID = 'codex';
9
+ export const PLATFORM_LABEL = 'Codex';
10
+
11
+ export async function install({ tasDir, target }) {
12
+ const codexDir = path.join(target, '.codex');
13
+ const skillsOut = path.join(codexDir, 'skills');
14
+ await fs.mkdir(skillsOut, { recursive: true });
15
+
16
+ // commands → skills
17
+ const commandsDir = path.join(tasDir, 'commands');
18
+ if (await exists(commandsDir)) {
19
+ const files = await listFilesRecursive(commandsDir, '.md');
20
+ for (const file of files) {
21
+ await commandToSkill(file, skillsOut);
22
+ }
23
+ console.log(' [ok] .codex/skills/ (commands)');
24
+ }
25
+
26
+ // agents → skills
27
+ const agentsDir = path.join(tasDir, 'agents');
28
+ if (await exists(agentsDir)) {
29
+ const files = await listFilesRecursive(agentsDir, '.md');
30
+ for (const file of files) {
31
+ await agentToSkill(file, skillsOut);
32
+ }
33
+ console.log(' [ok] .codex/skills/ (agents)');
34
+ }
35
+
36
+ // skills → skills (copy as-is, same format)
37
+ const skillsSrc = path.join(tasDir, 'skills');
38
+ if (await exists(skillsSrc)) {
39
+ const skillDirs = await fs.readdir(skillsSrc, { withFileTypes: true });
40
+ for (const d of skillDirs.filter(e => e.isDirectory())) {
41
+ const src = path.join(skillsSrc, d.name);
42
+ const dest = path.join(skillsOut, d.name);
43
+ await fs.cp(src, dest, { recursive: true });
44
+ }
45
+ console.log(' [ok] .codex/skills/ (skills)');
46
+ }
47
+
48
+ // rules → skills with references/
49
+ const rulesDir = path.join(tasDir, 'rules');
50
+ if (await exists(rulesDir)) {
51
+ await rulesToSkills(rulesDir, skillsOut);
52
+ console.log(' [ok] .codex/skills/ (rules)');
53
+ }
54
+
55
+ // lean AGENTS.md
56
+ await generateAgentsMd(skillsOut, target);
57
+ console.log(' [ok] AGENTS.md');
58
+ }
59
+
60
+ async function commandToSkill(file, skillsOut) {
61
+ const content = await fs.readFile(file, 'utf8');
62
+ const name = extractCommandName(content) || path.basename(file, '.md');
63
+ const description = extractDescription(content, name);
64
+ const skillDir = path.join(skillsOut, name);
65
+ await fs.mkdir(skillDir, { recursive: true });
66
+ const skillMd = `---\nname: ${yamlValue(name)}\ndescription: ${yamlValue(description)}\n---\n\n${content}`;
67
+ await fs.writeFile(path.join(skillDir, 'SKILL.md'), skillMd);
68
+ }
69
+
70
+ async function agentToSkill(file, skillsOut) {
71
+ const content = await fs.readFile(file, 'utf8');
72
+ const { frontmatter, body } = parseFrontmatter(content);
73
+ const name = frontmatter.name || path.basename(file, '.md');
74
+ const description = frontmatter.description || extractDescription(body, name);
75
+ const skillDir = path.join(skillsOut, name);
76
+ await fs.mkdir(skillDir, { recursive: true });
77
+ const skillMd = `---\nname: ${yamlValue(name)}\ndescription: ${yamlValue(description)}\n---\n\n${body}`;
78
+ await fs.writeFile(path.join(skillDir, 'SKILL.md'), skillMd);
79
+ }
80
+
81
+ async function rulesToSkills(rulesDir, skillsOut) {
82
+ const stacks = await fs.readdir(rulesDir, { withFileTypes: true });
83
+ for (const entry of stacks) {
84
+ if (!entry.isDirectory() && !entry.name.endsWith('.md')) continue;
85
+
86
+ if (entry.isDirectory()) {
87
+ const stack = entry.name;
88
+ const stackDir = path.join(rulesDir, stack);
89
+ const files = await listFilesRecursive(stackDir, '.md');
90
+ if (files.length === 0) continue;
91
+
92
+ const skillName = `${stack}-rules`;
93
+ const skillDir = path.join(skillsOut, skillName);
94
+ const refsDir = path.join(skillDir, 'references');
95
+ await fs.mkdir(refsDir, { recursive: true });
96
+
97
+ const refList = [];
98
+ for (const f of files) {
99
+ const dest = path.join(refsDir, path.basename(f));
100
+ await fs.copyFile(f, dest);
101
+ refList.push(`- ${path.basename(f, '.md')}`);
102
+ }
103
+
104
+ const skillMd = [
105
+ `---`,
106
+ `name: ${yamlValue(skillName)}`,
107
+ `description: ${yamlValue(`${stack} coding standards, patterns and security rules`)}`,
108
+ `---`,
109
+ ``,
110
+ `# ${stack} Rules`,
111
+ ``,
112
+ `References (loaded on demand):`,
113
+ ...refList,
114
+ ].join('\n') + '\n';
115
+ await fs.writeFile(path.join(skillDir, 'SKILL.md'), skillMd);
116
+ } else {
117
+ // top-level .md file (e.g. ado-integration.md)
118
+ const file = path.join(rulesDir, entry.name);
119
+ const content = await fs.readFile(file, 'utf8');
120
+ const name = path.basename(entry.name, '.md') + '-rules';
121
+ const skillDir = path.join(skillsOut, name);
122
+ const refsDir = path.join(skillDir, 'references');
123
+ await fs.mkdir(refsDir, { recursive: true });
124
+ await fs.copyFile(file, path.join(refsDir, entry.name));
125
+ const title = extractH1(content) || name;
126
+ const skillMd = `---\nname: ${yamlValue(name)}\ndescription: ${yamlValue(title)}\n---\n\n# ${title}\n\nSee references/${entry.name}\n`;
127
+ await fs.writeFile(path.join(skillDir, 'SKILL.md'), skillMd);
128
+ }
129
+ }
130
+ }
131
+
132
+ async function generateAgentsMd(skillsOut, target) {
133
+ const skillDirs = await fs.readdir(skillsOut, { withFileTypes: true });
134
+ const skillLines = [];
135
+ for (const d of skillDirs.filter(e => e.isDirectory())) {
136
+ const skillFile = path.join(skillsOut, d.name, 'SKILL.md');
137
+ if (!(await exists(skillFile))) continue;
138
+ const content = await fs.readFile(skillFile, 'utf8');
139
+ const { frontmatter } = parseFrontmatter(content);
140
+ if (frontmatter.name) {
141
+ skillLines.push(`- **${frontmatter.name}**: ${frontmatter.description || ''}`);
142
+ }
143
+ }
144
+
145
+ const agentsMd = [
146
+ `# Project Instructions`,
147
+ ``,
148
+ `This project uses TAS Kit — Torus Agentic SDLC Kit.`,
149
+ ``,
150
+ `## Available Skills`,
151
+ ``,
152
+ `Use \`/skills\` to list and invoke skills. Available skills:`,
153
+ ``,
154
+ ...skillLines,
155
+ ``,
156
+ `## Project Configuration`,
157
+ ``,
158
+ `See \`tas.yaml\` for project settings and \`CLAUDE.md\` for detailed instructions.`,
159
+ ``,
160
+ ].join('\n');
161
+
162
+ await fs.writeFile(path.join(target, 'AGENTS.md'), agentsMd);
163
+ }
@@ -0,0 +1,80 @@
1
+ import fs from 'node:fs/promises';
2
+ import path from 'node:path';
3
+ import { copyDir, exists, listFilesRecursive, extractH1, yamlValue } from './utils.js';
4
+
5
+ export const PLATFORM_ID = 'cursor';
6
+ export const PLATFORM_LABEL = 'Cursor';
7
+
8
+ const HOOKS_JSON = {
9
+ postToolUse: [
10
+ {
11
+ matcher: '^(Write|Edit|MultiEdit)$',
12
+ hooks: [
13
+ {
14
+ type: 'command',
15
+ command: 'node .tas/_platform/hooks/code-quality.js',
16
+ description: 'Auto format source files: prettier (TS/JS), ruff/black (Python), dotnet format (C#)',
17
+ },
18
+ ],
19
+ },
20
+ ],
21
+ agentLoopEnd: [
22
+ {
23
+ hooks: [
24
+ {
25
+ type: 'command',
26
+ command: 'node .tas/_platform/hooks/session-end.js',
27
+ description: 'Run test suite, check project-status.yaml updated, remind next steps',
28
+ },
29
+ ],
30
+ },
31
+ ],
32
+ };
33
+
34
+ export async function install({ tasDir, target }) {
35
+ const cursorDir = path.join(target, '.cursor');
36
+ await fs.mkdir(cursorDir, { recursive: true });
37
+
38
+ // commands — same format as Claude Code
39
+ await copyDir(path.join(tasDir, 'commands'), path.join(cursorDir, 'commands'));
40
+ console.log(' [ok] .cursor/commands/');
41
+
42
+ // agents — identical frontmatter format
43
+ await copyDir(path.join(tasDir, 'agents'), path.join(cursorDir, 'agents'));
44
+ console.log(' [ok] .cursor/agents/');
45
+
46
+ // skills — same open standard
47
+ const skillsSrc = path.join(tasDir, 'skills');
48
+ if (await exists(skillsSrc)) {
49
+ await copyDir(skillsSrc, path.join(cursorDir, 'skills'));
50
+ console.log(' [ok] .cursor/skills/');
51
+ }
52
+
53
+ // rules → .mdc files with frontmatter
54
+ const rulesDir = path.join(tasDir, 'rules');
55
+ const rulesOut = path.join(cursorDir, 'rules');
56
+ await fs.mkdir(rulesOut, { recursive: true });
57
+ await convertRulesToMdc(rulesDir, rulesOut);
58
+ console.log(' [ok] .cursor/rules/ (converted from .tas/rules/)');
59
+
60
+ // hooks.json
61
+ await fs.writeFile(
62
+ path.join(cursorDir, 'hooks.json'),
63
+ JSON.stringify(HOOKS_JSON, null, 2) + '\n'
64
+ );
65
+ console.log(' [ok] .cursor/hooks.json');
66
+ }
67
+
68
+ async function convertRulesToMdc(rulesDir, outDir) {
69
+ if (!(await exists(rulesDir))) return;
70
+ const files = await listFilesRecursive(rulesDir, '.md');
71
+ for (const file of files) {
72
+ const rel = path.relative(rulesDir, file);
73
+ // flatten: common/code-review.md → common-code-review.mdc
74
+ const flatName = rel.replace(/[\\/]/g, '-').replace(/\.md$/, '.mdc');
75
+ const content = await fs.readFile(file, 'utf8');
76
+ const title = extractH1(content) || path.basename(file, '.md');
77
+ const mdc = `---\ndescription: ${yamlValue(title)}\nalwaysApply: false\n---\n\n${content}`;
78
+ await fs.writeFile(path.join(outDir, flatName), mdc);
79
+ }
80
+ }
@@ -0,0 +1,20 @@
1
+ export { PLATFORM_ID as CLAUDE_CODE, install as installClaudeCode } from './claude-code.js';
2
+ export { PLATFORM_ID as CURSOR, install as installCursor } from './cursor.js';
3
+ export { PLATFORM_ID as CODEX, install as installCodex } from './codex.js';
4
+ export { PLATFORM_ID as ANTIGRAVITY, install as installAntigravity } from './antigravity.js';
5
+
6
+ import * as claudeCode from './claude-code.js';
7
+ import * as cursor from './cursor.js';
8
+ import * as codex from './codex.js';
9
+ import * as antigravity from './antigravity.js';
10
+
11
+ export const PLATFORMS = [
12
+ { id: claudeCode.PLATFORM_ID, label: claudeCode.PLATFORM_LABEL, install: claudeCode.install },
13
+ { id: cursor.PLATFORM_ID, label: cursor.PLATFORM_LABEL, install: cursor.install },
14
+ { id: codex.PLATFORM_ID, label: codex.PLATFORM_LABEL, install: codex.install },
15
+ { id: antigravity.PLATFORM_ID, label: antigravity.PLATFORM_LABEL, install: antigravity.install },
16
+ ];
17
+
18
+ export function getPlatform(id) {
19
+ return PLATFORMS.find(p => p.id === id);
20
+ }
@@ -0,0 +1,81 @@
1
+ import fs from 'node:fs/promises';
2
+ import path from 'node:path';
3
+
4
+ export async function exists(p) {
5
+ return fs.access(p).then(() => true).catch(() => false);
6
+ }
7
+
8
+ export async function copyDir(src, dest) {
9
+ await fs.cp(src, dest, { recursive: true });
10
+ }
11
+
12
+ export async function listFilesRecursive(dir, ext = '') {
13
+ const results = [];
14
+ async function walk(current) {
15
+ const entries = await fs.readdir(current, { withFileTypes: true });
16
+ for (const e of entries) {
17
+ const full = path.join(current, e.name);
18
+ if (e.isDirectory()) await walk(full);
19
+ else if (!ext || e.name.endsWith(ext)) results.push(full);
20
+ }
21
+ }
22
+ await walk(dir);
23
+ return results;
24
+ }
25
+
26
+ export function parseFrontmatter(content) {
27
+ if (!content.startsWith('---')) return { frontmatter: {}, body: content };
28
+ const end = content.indexOf('\n---', 3);
29
+ if (end === -1) return { frontmatter: {}, body: content };
30
+ const yaml = content.slice(4, end);
31
+ const body = content.slice(end + 4).trimStart();
32
+ const frontmatter = {};
33
+ for (const line of yaml.split('\n')) {
34
+ const colon = line.indexOf(':');
35
+ if (colon > 0) {
36
+ const key = line.slice(0, colon).trim();
37
+ let val = line.slice(colon + 1).trim();
38
+ // handle multiline: only single-line values here
39
+ val = val.replace(/^["']|["']$/g, '');
40
+ frontmatter[key] = val;
41
+ }
42
+ }
43
+ return { frontmatter, body };
44
+ }
45
+
46
+ // Extract description: first non-empty, non-heading line after the H1
47
+ export function extractDescription(content, fallback = '') {
48
+ const lines = content.split('\n');
49
+ let pastH1 = false;
50
+ for (const line of lines) {
51
+ const trimmed = line.trim();
52
+ if (!pastH1) {
53
+ if (trimmed.startsWith('# ')) pastH1 = true;
54
+ continue;
55
+ }
56
+ if (trimmed && !trimmed.startsWith('#') && !trimmed.startsWith('|') && !trimmed.startsWith('-')) {
57
+ return trimmed.replace(/^Role:\s*/i, '').replace(/\*\*/g, '').slice(0, 150);
58
+ }
59
+ }
60
+ return fallback;
61
+ }
62
+
63
+ // Extract H1 title from markdown
64
+ export function extractH1(content) {
65
+ const match = content.match(/^#\s+(.+)$/m);
66
+ return match ? match[1].trim() : '';
67
+ }
68
+
69
+ // Extract command name from first line: "# /tas-dev $ARGUMENTS" → "tas-dev"
70
+ export function extractCommandName(content) {
71
+ const match = content.match(/^#\s+\/(\S+)/);
72
+ return match ? match[1] : '';
73
+ }
74
+
75
+ // Escape a string for use in YAML frontmatter value (single-line)
76
+ export function yamlValue(str) {
77
+ if (/[:#\[\]{},|>&*!'"\\]/.test(str) || str.includes('\n')) {
78
+ return `"${str.replace(/"/g, '\\"')}"`;
79
+ }
80
+ return str;
81
+ }
@@ -32,5 +32,104 @@
32
32
  ],
33
33
  "1.9.0": [
34
34
  ".claude/commands/tas-api-test.md"
35
+ ],
36
+ "1.12.0": [
37
+ ".claude/rules/.gitkeep",
38
+ ".claude/rules/common/code-review.md",
39
+ ".claude/rules/common/hooks.md",
40
+ ".claude/rules/common/patterns.md",
41
+ ".claude/rules/common/post-review-agent.md",
42
+ ".claude/rules/common/project-status.md",
43
+ ".claude/rules/common/security.md",
44
+ ".claude/rules/common/stack-detection.md",
45
+ ".claude/rules/common/testing.md",
46
+ ".claude/rules/common/token-logging.md",
47
+ ".claude/rules/csharp/api-testing.md",
48
+ ".claude/rules/csharp/coding-style.md",
49
+ ".claude/rules/csharp/hooks.md",
50
+ ".claude/rules/csharp/patterns.md",
51
+ ".claude/rules/csharp/security.md",
52
+ ".claude/rules/csharp/testing.md",
53
+ ".claude/rules/python/coding-style.md",
54
+ ".claude/rules/python/hooks.md",
55
+ ".claude/rules/python/patterns.md",
56
+ ".claude/rules/python/security.md",
57
+ ".claude/rules/python/testing.md",
58
+ ".claude/rules/typescript/coding-style.md",
59
+ ".claude/rules/typescript/hooks.md",
60
+ ".claude/rules/typescript/patterns.md",
61
+ ".claude/rules/typescript/security.md",
62
+ ".claude/rules/typescript/testing.md",
63
+ ".claude/rules/web/coding-style.md",
64
+ ".claude/rules/web/design-quality.md",
65
+ ".claude/rules/web/hooks.md",
66
+ ".claude/rules/web/patterns.md",
67
+ ".claude/rules/web/performance.md",
68
+ ".claude/rules/web/security.md",
69
+ ".claude/rules/web/testing.md",
70
+ ".tas/rules/common/post-review-agent.md",
71
+ ".claude/skills/ado-integration/SKILL.md",
72
+ ".claude/skills/ai-regression-testing/SKILL.md",
73
+ ".claude/skills/api-design/SKILL.md",
74
+ ".claude/skills/architecture-decision-records/SKILL.md",
75
+ ".claude/skills/benchmark/SKILL.md",
76
+ ".claude/skills/browser-qa/SKILL.md",
77
+ ".claude/skills/canary-watch/SKILL.md",
78
+ ".claude/skills/js-backend-patterns/SKILL.md",
79
+ ".claude/skills/tas-conventions/SKILL.md",
80
+ ".claude/skills/tas-implementation-complete/SKILL.md",
81
+ ".claude/skills/tas-tdd/SKILL.md",
82
+ ".claude/skills/token-logger/SKILL.md",
83
+ ".claude/agents/planner.md",
84
+ ".claude/agents/tdd-guide.md",
85
+ ".claude/agents/code-reviewer.md",
86
+ ".claude/agents/e2e-runner.md",
87
+ ".claude/commands/tas-verify.md",
88
+ ".tas/checklists/code-review.md",
89
+ ".tas/checklists/security.md",
90
+ ".tas/checklists/story-done.md",
91
+ ".claude/agents/architect.md",
92
+ ".claude/agents/aws-reviewer.md",
93
+ ".claude/agents/build-resolver.md",
94
+ ".claude/agents/code-explorer.md",
95
+ ".claude/agents/csharp-reviewer.md",
96
+ ".claude/agents/database-reviewer.md",
97
+ ".claude/agents/doc-updater.md",
98
+ ".claude/agents/python-reviewer.md",
99
+ ".claude/agents/security-reviewer.md",
100
+ ".claude/agents/typescript-reviewer.md",
101
+ ".claude/commands/ado-create.md",
102
+ ".claude/commands/ado-delete.md",
103
+ ".claude/commands/ado-get.md",
104
+ ".claude/commands/ado-status.md",
105
+ ".claude/commands/ado-update.md",
106
+ ".claude/commands/tas-adr.md",
107
+ ".claude/commands/tas-apitest-plan.md",
108
+ ".claude/commands/tas-apitest.md",
109
+ ".claude/commands/tas-brainstorm.md",
110
+ ".claude/commands/tas-bug.md",
111
+ ".claude/commands/tas-design.md",
112
+ ".claude/commands/tas-dev.md",
113
+ ".claude/commands/tas-e2e-mobile.md",
114
+ ".claude/commands/tas-e2e-web.md",
115
+ ".claude/commands/tas-e2e.md",
116
+ ".claude/commands/tas-epic.md",
117
+ ".claude/commands/tas-feature.md",
118
+ ".claude/commands/tas-fix.md",
119
+ ".claude/commands/tas-functest-mobile.md",
120
+ ".claude/commands/tas-functest-web.md",
121
+ ".claude/commands/tas-functest.md",
122
+ ".claude/commands/tas-init.md",
123
+ ".claude/commands/tas-plan.md",
124
+ ".claude/commands/tas-prd.md",
125
+ ".claude/commands/tas-review.md",
126
+ ".claude/commands/tas-sad.md",
127
+ ".claude/commands/tas-security.md",
128
+ ".claude/commands/tas-spec.md",
129
+ ".claude/commands/tas-status.md",
130
+ ".claude/commands/tas-story.md",
131
+ ".claude/hooks/code-quality.js",
132
+ ".claude/hooks/session-end.js",
133
+ ".claude/settings.json"
35
134
  ]
36
135
  }