cortex-tms 2.2.0 → 2.3.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.
- package/dist/__tests__/validate.test.js +2 -0
- package/dist/__tests__/validate.test.js.map +1 -1
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +96 -25
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/status.d.ts +4 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +99 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +39 -0
- package/dist/commands/validate.js.map +1 -1
- package/dist/types/cli.d.ts +4 -0
- package/dist/types/cli.d.ts.map +1 -1
- package/dist/utils/prompts.d.ts.map +1 -1
- package/dist/utils/prompts.js +15 -0
- package/dist/utils/prompts.js.map +1 -1
- package/dist/utils/status.d.ts +21 -0
- package/dist/utils/status.d.ts.map +1 -0
- package/dist/utils/status.js +86 -0
- package/dist/utils/status.js.map +1 -0
- package/dist/utils/templates.d.ts +8 -0
- package/dist/utils/templates.d.ts.map +1 -1
- package/dist/utils/templates.js +92 -7
- package/dist/utils/templates.js.map +1 -1
- package/dist/utils/validator.d.ts +1 -0
- package/dist/utils/validator.d.ts.map +1 -1
- package/dist/utils/validator.js +54 -3
- package/dist/utils/validator.js.map +1 -1
- package/package.json +1 -1
- package/templates/vscode/tms.code-snippets +225 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
{
|
|
2
|
+
"TMS: Architecture Decision Record": {
|
|
3
|
+
"scope": "markdown",
|
|
4
|
+
"prefix": "tms-adr",
|
|
5
|
+
"description": "Insert a complete Architecture Decision Record (ADR) entry",
|
|
6
|
+
"body": [
|
|
7
|
+
"## [${1:YYYY-MM-DD}] - ${2:Decision Title}",
|
|
8
|
+
"",
|
|
9
|
+
"**Context**: ${3:What problem were we solving? What constraints existed?}",
|
|
10
|
+
"",
|
|
11
|
+
"**Decision**: ${4:What did we choose? Be specific}",
|
|
12
|
+
"",
|
|
13
|
+
"**Reasoning**:",
|
|
14
|
+
"- **Pro**: ${5:Advantage 1}",
|
|
15
|
+
"- **Pro**: ${6:Advantage 2}",
|
|
16
|
+
"- **Con**: ${7:Trade-off 1}",
|
|
17
|
+
"- **Alternative Considered**: ${8:What we didn't choose and why}",
|
|
18
|
+
"",
|
|
19
|
+
"**Consequences**:",
|
|
20
|
+
"- ✅ ${9:Positive outcome}",
|
|
21
|
+
"- ⚠️ ${10:Trade-off or limitation}",
|
|
22
|
+
"",
|
|
23
|
+
"**Status**: ${11|Active,Deprecated,Superseded|}",
|
|
24
|
+
"",
|
|
25
|
+
"---",
|
|
26
|
+
""
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"TMS: Implementation Pattern": {
|
|
30
|
+
"scope": "markdown",
|
|
31
|
+
"prefix": "tms-pattern",
|
|
32
|
+
"description": "Insert a new implementation pattern entry",
|
|
33
|
+
"body": [
|
|
34
|
+
"## [${1|UI,Data,Auth,API,Testing,Config,Deployment|}] ${2:Pattern Name}",
|
|
35
|
+
"",
|
|
36
|
+
"**Rule**: ${3:Short, imperative statement of the rule}",
|
|
37
|
+
"",
|
|
38
|
+
"### ❌ Anti-Pattern (What NOT to do)",
|
|
39
|
+
"",
|
|
40
|
+
"- ${4:Description of common AI mistake}",
|
|
41
|
+
"- ${5:Why it fails in this project}",
|
|
42
|
+
"",
|
|
43
|
+
"### ✅ Canonical Example",
|
|
44
|
+
"",
|
|
45
|
+
"**Source File**: \\`${6:path/to/best-example-file.ts}\\`",
|
|
46
|
+
"",
|
|
47
|
+
"\\`\\`\\`${7|typescript,javascript,python,rust,go|}",
|
|
48
|
+
"${8:// A concise, perfect implementation of the pattern}",
|
|
49
|
+
"\\`\\`\\`",
|
|
50
|
+
"",
|
|
51
|
+
"### 🔗 References",
|
|
52
|
+
"",
|
|
53
|
+
"- **Domain Logic**: \\`DOMAIN-LOGIC.md#${9:Section}\\`",
|
|
54
|
+
"- **Gotchas**: \\`TROUBLESHOOTING.md#${10:Section}\\`",
|
|
55
|
+
"",
|
|
56
|
+
"---",
|
|
57
|
+
""
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"TMS: Glossary Term": {
|
|
61
|
+
"scope": "markdown",
|
|
62
|
+
"prefix": "tms-term",
|
|
63
|
+
"description": "Insert a glossary term definition",
|
|
64
|
+
"body": [
|
|
65
|
+
"### ${1:Term Name}",
|
|
66
|
+
"**Definition**: ${2:Clear, concise explanation of what this means in your project}",
|
|
67
|
+
"**Example**: ${3:Usage in context}",
|
|
68
|
+
"**Related Terms**: ${4:Links to related concepts}",
|
|
69
|
+
""
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"TMS: Glossary Acronym": {
|
|
73
|
+
"scope": "markdown",
|
|
74
|
+
"prefix": "tms-acronym",
|
|
75
|
+
"description": "Insert a glossary acronym table row",
|
|
76
|
+
"body": [
|
|
77
|
+
"| ${1:ACRONYM} | ${2:Stands For} | ${3:Meaning in This Project} |"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"TMS: Task Row": {
|
|
81
|
+
"scope": "markdown",
|
|
82
|
+
"prefix": "tms-task",
|
|
83
|
+
"description": "Insert a task row for NEXT-TASKS.md",
|
|
84
|
+
"body": [
|
|
85
|
+
"| **${1:Task Name}** - ${2:Description} | [${3:TMS-XXX}] | ${4:2h} | ${5|🔴 HIGH,🟡 MED,🟢 LOW|} | ${6|⬜ Todo,🔄 In Progress,✅ Done|} |"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"TMS: Sprint Section": {
|
|
89
|
+
"scope": "markdown",
|
|
90
|
+
"prefix": "tms-sprint",
|
|
91
|
+
"description": "Insert a complete sprint section for NEXT-TASKS.md",
|
|
92
|
+
"body": [
|
|
93
|
+
"## Active Sprint: ${1:v2.X} - ${2:Sprint Theme}",
|
|
94
|
+
"",
|
|
95
|
+
"**Why this matters**: ${3:Explain the value and focus of this sprint}",
|
|
96
|
+
"",
|
|
97
|
+
"| Task | Ref | Effort | Priority | Status |",
|
|
98
|
+
"| :--- | :--- | :----- | :------- | :----- |",
|
|
99
|
+
"| **${4:Task Name}** - ${5:Description} | [${6:TMS-XXX}] | ${7:2h} | 🔴 HIGH | ⬜ Todo |",
|
|
100
|
+
"",
|
|
101
|
+
"---",
|
|
102
|
+
""
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"TMS: Domain Logic Section": {
|
|
106
|
+
"scope": "markdown",
|
|
107
|
+
"prefix": "tms-domain",
|
|
108
|
+
"description": "Insert a domain logic section",
|
|
109
|
+
"body": [
|
|
110
|
+
"## ${1:Domain Area Name}",
|
|
111
|
+
"",
|
|
112
|
+
"### 🎯 Purpose",
|
|
113
|
+
"${2:Why this domain area exists and what problems it solves}",
|
|
114
|
+
"",
|
|
115
|
+
"### 📐 Rules",
|
|
116
|
+
"",
|
|
117
|
+
"1. **${3:Rule Name}**: ${4:Rule description}",
|
|
118
|
+
" - **Why**: ${5:Justification}",
|
|
119
|
+
" - **Example**: ${6:Concrete example}",
|
|
120
|
+
"",
|
|
121
|
+
"2. **${7:Rule Name}**: ${8:Rule description}",
|
|
122
|
+
" - **Why**: ${9:Justification}",
|
|
123
|
+
" - **Example**: ${10:Concrete example}",
|
|
124
|
+
"",
|
|
125
|
+
"### 🔗 Related",
|
|
126
|
+
"- **Patterns**: \\`PATTERNS.md#${11:Section}\\`",
|
|
127
|
+
"- **Schema**: \\`SCHEMA.md#${12:Section}\\`",
|
|
128
|
+
"",
|
|
129
|
+
"---",
|
|
130
|
+
""
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"TMS: Troubleshooting Entry": {
|
|
134
|
+
"scope": "markdown",
|
|
135
|
+
"prefix": "tms-trouble",
|
|
136
|
+
"description": "Insert a troubleshooting entry",
|
|
137
|
+
"body": [
|
|
138
|
+
"### ${1:Error/Issue Name}",
|
|
139
|
+
"",
|
|
140
|
+
"**Symptoms**: ${2:How does this problem manifest?}",
|
|
141
|
+
"",
|
|
142
|
+
"**Root Cause**: ${3:Why does this happen?}",
|
|
143
|
+
"",
|
|
144
|
+
"**Solution**:",
|
|
145
|
+
"\\`\\`\\`${4|bash,typescript,javascript,python|}",
|
|
146
|
+
"${5:Code or command to fix the issue}",
|
|
147
|
+
"\\`\\`\\`",
|
|
148
|
+
"",
|
|
149
|
+
"**Prevention**: ${6:How to avoid this in the future}",
|
|
150
|
+
"",
|
|
151
|
+
"---",
|
|
152
|
+
""
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"TMS: Architecture Section": {
|
|
156
|
+
"scope": "markdown",
|
|
157
|
+
"prefix": "tms-arch",
|
|
158
|
+
"description": "Insert an architecture section",
|
|
159
|
+
"body": [
|
|
160
|
+
"## ${1:Component/Layer Name}",
|
|
161
|
+
"",
|
|
162
|
+
"### 🎯 Purpose",
|
|
163
|
+
"${2:What this component does and why it exists}",
|
|
164
|
+
"",
|
|
165
|
+
"### 🏗️ Structure",
|
|
166
|
+
"",
|
|
167
|
+
"\\`\\`\\`",
|
|
168
|
+
"${3:Directory structure or component diagram}",
|
|
169
|
+
"\\`\\`\\`",
|
|
170
|
+
"",
|
|
171
|
+
"### 🔌 Dependencies",
|
|
172
|
+
"",
|
|
173
|
+
"- **Depends On**: ${4:What this component needs}",
|
|
174
|
+
"- **Used By**: ${5:What depends on this component}",
|
|
175
|
+
"",
|
|
176
|
+
"### 🔑 Key Decisions",
|
|
177
|
+
"",
|
|
178
|
+
"- ${6:Important architectural choice 1}",
|
|
179
|
+
"- ${7:Important architectural choice 2}",
|
|
180
|
+
"",
|
|
181
|
+
"### 🔗 Related",
|
|
182
|
+
"- **ADRs**: \\`DECISIONS.md#${8:Section}\\`",
|
|
183
|
+
"- **Patterns**: \\`PATTERNS.md#${9:Section}\\`",
|
|
184
|
+
"",
|
|
185
|
+
"---",
|
|
186
|
+
""
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"TMS: Code Block with Language": {
|
|
190
|
+
"scope": "markdown",
|
|
191
|
+
"prefix": "tms-code",
|
|
192
|
+
"description": "Insert a code block with language selection",
|
|
193
|
+
"body": [
|
|
194
|
+
"\\`\\`\\`${1|typescript,javascript,python,rust,go,bash,json,yaml,sql|}",
|
|
195
|
+
"${2:code}",
|
|
196
|
+
"\\`\\`\\`"
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
"TMS: Cross-Reference Section": {
|
|
200
|
+
"scope": "markdown",
|
|
201
|
+
"prefix": "tms-xref",
|
|
202
|
+
"description": "Insert a cross-reference section",
|
|
203
|
+
"body": [
|
|
204
|
+
"## 🔗 Cross-References",
|
|
205
|
+
"",
|
|
206
|
+
"- **Architecture**: See \\`docs/core/ARCHITECTURE.md\\` for ${1:topic}",
|
|
207
|
+
"- **Patterns**: See \\`docs/core/PATTERNS.md\\` for ${2:topic}",
|
|
208
|
+
"- **Decisions**: See \\`docs/core/DECISIONS.md\\` for ${3:topic}",
|
|
209
|
+
"- **Glossary**: See \\`docs/core/GLOSSARY.md\\` for ${4:topic}",
|
|
210
|
+
""
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"TMS: Definition of Done": {
|
|
214
|
+
"scope": "markdown",
|
|
215
|
+
"prefix": "tms-dod",
|
|
216
|
+
"description": "Insert a Definition of Done checklist",
|
|
217
|
+
"body": [
|
|
218
|
+
"## 🎯 Definition of Done (${1:v2.X})",
|
|
219
|
+
"- [ ] ${2:Completion criteria 1}",
|
|
220
|
+
"- [ ] ${3:Completion criteria 2}",
|
|
221
|
+
"- [ ] ${4:Completion criteria 3}",
|
|
222
|
+
""
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
}
|