cortex-tms 2.3.0 β 2.4.1
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/README.md +185 -117
- package/bin/cortex-tms.js +0 -0
- package/dist/__tests__/init.test.js +4 -3
- package/dist/__tests__/init.test.js.map +1 -1
- package/dist/cli.js +4 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/migrate.d.ts +12 -0
- package/dist/commands/migrate.d.ts.map +1 -0
- package/dist/commands/migrate.js +183 -0
- package/dist/commands/migrate.js.map +1 -0
- package/dist/commands/prompt.d.ts +4 -0
- package/dist/commands/prompt.d.ts.map +1 -0
- package/dist/commands/prompt.js +95 -0
- package/dist/commands/prompt.js.map +1 -0
- package/dist/types/cli.d.ts +1 -0
- package/dist/types/cli.d.ts.map +1 -1
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/config.js +2 -0
- package/dist/utils/config.js.map +1 -1
- package/dist/utils/prompt-parser.d.ts +9 -0
- package/dist/utils/prompt-parser.d.ts.map +1 -0
- package/dist/utils/prompt-parser.js +50 -0
- package/dist/utils/prompt-parser.js.map +1 -0
- package/dist/utils/templates.d.ts +6 -1
- package/dist/utils/templates.d.ts.map +1 -1
- package/dist/utils/templates.js +31 -3
- package/dist/utils/templates.js.map +1 -1
- package/package.json +14 -14
- package/templates/.github/copilot-instructions.md +2 -0
- package/templates/CLAUDE.md +2 -0
- package/templates/FUTURE-ENHANCEMENTS.md +2 -0
- package/templates/NEXT-TASKS.md +2 -0
- package/templates/PROMPTS.md +55 -0
- package/templates/README.md +2 -0
- package/templates/docs/archive/v1.0-CHANGELOG.md +3 -0
- package/templates/docs/core/ARCHITECTURE.md +2 -0
- package/templates/docs/core/DECISIONS.md +2 -0
- package/templates/docs/core/DOMAIN-LOGIC.md +2 -0
- package/templates/docs/core/GLOSSARY.md +2 -0
- package/templates/docs/core/PATTERNS.md +2 -0
- package/templates/docs/core/SCHEMA.md +2 -0
- package/templates/docs/core/TROUBLESHOOTING.md +2 -0
package/README.md
CHANGED
|
@@ -1,46 +1,43 @@
|
|
|
1
1
|
# Cortex TMS π§
|
|
2
2
|
|
|
3
|
-
**The Universal AI-Optimized Project Boilerplate (v2.
|
|
3
|
+
**The Universal AI-Optimized Project Boilerplate (v2.4.1)**
|
|
4
4
|
|
|
5
|
-
Cortex TMS is
|
|
5
|
+
Cortex TMS is an **interactive operating system for AI-assisted development**. It's not just documentationβit's an **activation layer** that turns your repository into a machine-legible project constitution with intelligent tooling for version management and AI collaboration.
|
|
6
6
|
|
|
7
|
-
**Current Status**: β
**Production Ready** | [NPM Package](https://www.npmjs.com/package/cortex-tms) | [GitHub
|
|
7
|
+
**Current Status**: β
**Stable / Production Ready** | [NPM Package](https://www.npmjs.com/package/cortex-tms) | [GitHub Repository](https://github.com/jantonca/cortex-tms)
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
## π
|
|
12
|
-
|
|
13
|
-
### Option 1: CLI Tool (Recommended)
|
|
11
|
+
## π Instant Activation
|
|
14
12
|
|
|
15
13
|
Get started in under 60 seconds:
|
|
16
14
|
|
|
17
15
|
```bash
|
|
18
|
-
|
|
16
|
+
# 1. Initialize your project
|
|
19
17
|
npx cortex-tms init
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
Choose your scope (Nano/Standard/Enterprise) and start building with AI-optimized documentation.
|
|
23
|
-
|
|
24
|
-
### Option 2: GitHub Template
|
|
25
18
|
|
|
26
|
-
|
|
19
|
+
# 2. Open the Project Cockpit
|
|
20
|
+
npx cortex-tms status
|
|
27
21
|
|
|
28
|
-
|
|
22
|
+
# 3. Activate your AI Agent
|
|
23
|
+
npx cortex-tms prompt init-session
|
|
24
|
+
# (Copies project-aware prompt to clipboard!)
|
|
29
25
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
cortex-tms init --scope standard
|
|
26
|
+
# 4. Check version health
|
|
27
|
+
npx cortex-tms migrate
|
|
33
28
|
```
|
|
34
29
|
|
|
35
|
-
|
|
30
|
+
Choose your scope (Nano/Standard/Enterprise) and start building with AI-optimized documentation and intelligent CLI tooling.
|
|
31
|
+
|
|
32
|
+
π **New here?** The Essential 7 prompts in `PROMPTS.md` will guide you through the entire development lifecycle.
|
|
36
33
|
|
|
37
34
|
---
|
|
38
35
|
|
|
39
|
-
##
|
|
36
|
+
## π― The Philosophy: Signal over Noise
|
|
40
37
|
|
|
41
|
-
Traditional repos drown AI agents in thousands of lines of historical tasks and stale documentation. **Cortex TMS** forces
|
|
38
|
+
Traditional repos drown AI agents in thousands of lines of historical tasks and stale documentation. **Cortex TMS** forces agents into a "Tiered" approach:
|
|
42
39
|
|
|
43
|
-
1. **HOT (Active)**: `NEXT-TASKS.md` β What we are doing _now_.
|
|
40
|
+
1. **HOT (Active)**: `NEXT-TASKS.md`, `PROMPTS.md` β What we are doing _now_ and how to ask the AI for help.
|
|
44
41
|
2. **WARM (Truth)**: `docs/core/` β The project's "Laws" (Architecture, Patterns, Domain Logic).
|
|
45
42
|
3. **COLD (History)**: `docs/archive/` β Historical changelogs (Ignore unless asked).
|
|
46
43
|
|
|
@@ -48,14 +45,78 @@ Traditional repos drown AI agents in thousands of lines of historical tasks and
|
|
|
48
45
|
|
|
49
46
|
---
|
|
50
47
|
|
|
48
|
+
## π οΈ CLI Commands
|
|
49
|
+
|
|
50
|
+
Cortex TMS provides 5 production-ready commands:
|
|
51
|
+
|
|
52
|
+
### `cortex-tms init`
|
|
53
|
+
Initialize TMS structure in your project with interactive scope selection.
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
cortex-tms init # Interactive mode
|
|
57
|
+
cortex-tms init --scope standard # Non-interactive
|
|
58
|
+
cortex-tms init --dry-run # Preview changes
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### `cortex-tms validate`
|
|
62
|
+
Verify your project's TMS health and auto-fix common issues.
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
cortex-tms validate # Check project health
|
|
66
|
+
cortex-tms validate --fix # Auto-repair missing files
|
|
67
|
+
cortex-tms validate --strict # Strict mode with no warnings
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### `cortex-tms status`
|
|
71
|
+
Project cockpit with health dashboard, sprint progress, and quick actions.
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
cortex-tms status # Visual dashboard with progress bars
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### `cortex-tms migrate`
|
|
78
|
+
Intelligent version managementβdetect outdated templates and custom modifications.
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
cortex-tms migrate # Analyze version status
|
|
82
|
+
cortex-tms migrate --dry-run # Preview migration plan
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**Status Categories**:
|
|
86
|
+
- `LATEST`: Already on current version
|
|
87
|
+
- `OUTDATED`: Safe to auto-upgrade (matches old template)
|
|
88
|
+
- `CUSTOMIZED`: Manual review needed (has user changes)
|
|
89
|
+
- `MISSING`: Optional file not installed
|
|
90
|
+
|
|
91
|
+
### `cortex-tms prompt`
|
|
92
|
+
Access project-aware AI prompts from the Essential 7 library.
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
cortex-tms prompt # Interactive selection
|
|
96
|
+
cortex-tms prompt init-session # Direct access (auto-copies to clipboard!)
|
|
97
|
+
cortex-tms prompt --list # Browse all prompts
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**The Essential 7**:
|
|
101
|
+
- `init-session` - Start your AI session with context
|
|
102
|
+
- `feature` - Implement new features with architectural anchors
|
|
103
|
+
- `debug` - Troubleshoot with known issues lookup
|
|
104
|
+
- `review` - Code review against project patterns
|
|
105
|
+
- `refactor` - Structural improvements
|
|
106
|
+
- `decision` - Create Architecture Decision Records
|
|
107
|
+
- `finish` - Execute maintenance protocol
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
51
111
|
## π Documentation Structure
|
|
52
112
|
|
|
53
113
|
| Folder / File | Purpose | AI Context Tier |
|
|
54
114
|
|:-------------|:--------|:---------------|
|
|
55
115
|
| `NEXT-TASKS.md` | Active sprint and current focus | **HOT** (Always Read) |
|
|
56
|
-
| `
|
|
116
|
+
| `PROMPTS.md` | AI interaction templates (Essential 7) | **HOT** (Always Read) |
|
|
57
117
|
| `CLAUDE.md` | CLI commands & workflow config | **HOT** (Always Read) |
|
|
58
118
|
| `.github/copilot-instructions.md` | Global guardrails and critical rules | **HOT** (Always Read) |
|
|
119
|
+
| `FUTURE-ENHANCEMENTS.md` | Living backlog (not current sprint) | **PLANNING** |
|
|
59
120
|
| `docs/core/ARCHITECTURE.md` | System design & tech stack | **WARM** (Read on Demand) |
|
|
60
121
|
| `docs/core/PATTERNS.md` | Canonical code examples (Do/Don't) | **WARM** (Read on Demand) |
|
|
61
122
|
| `docs/core/DOMAIN-LOGIC.md` | Immutable project rules | **WARM** (Read on Demand) |
|
|
@@ -65,98 +126,82 @@ Traditional repos drown AI agents in thousands of lines of historical tasks and
|
|
|
65
126
|
| `docs/core/SCHEMA.md` | Data models (optional) | **WARM** (Read on Demand) |
|
|
66
127
|
| `docs/core/TROUBLESHOOTING.md` | Framework gotchas (optional) | **WARM** (Read on Demand) |
|
|
67
128
|
| `docs/archive/` | Historical changelogs | **COLD** (Ignore) |
|
|
68
|
-
| `templates/` | Boilerplate files for user projects | N/A (Toolkit) |
|
|
69
|
-
|
|
70
|
-
---
|
|
71
|
-
|
|
72
|
-
## π― What Cortex TMS Provides
|
|
73
|
-
|
|
74
|
-
### For New Projects (Greenfield)
|
|
75
|
-
- **GitHub Template Repository**: Click "Use this template" to start a new AI-optimized project
|
|
76
|
-
- Pre-configured TMS structure
|
|
77
|
-
- Ready-to-customize templates
|
|
78
|
-
|
|
79
|
-
### For Existing Projects (Brownfield)
|
|
80
|
-
- **NPM CLI Tool**: `npx cortex-tms init` (Coming in Phase 4)
|
|
81
|
-
- Detects existing structure
|
|
82
|
-
- Merges TMS templates safely
|
|
83
|
-
|
|
84
|
-
### For Developers
|
|
85
|
-
- **Example Projects**: Reference implementations (Next.js, CLI tools, APIs)
|
|
86
|
-
- **Best Practices Guide**: How to write effective patterns and domain logic
|
|
87
|
-
- **Migration Guide**: How to adopt TMS incrementally
|
|
88
129
|
|
|
89
130
|
---
|
|
90
131
|
|
|
91
|
-
##
|
|
92
|
-
|
|
93
|
-
This repo is a **"Machine-Legible Project Constitution."** To get the best results from your AI pair programmer:
|
|
94
|
-
|
|
95
|
-
1. **The Context Trigger**: Start a session by saying:
|
|
96
|
-
> _"Review NEXT-TASKS.md and docs/core. Suggest a plan for Task 1 using the Propose, Justify, Recommend framework."_
|
|
132
|
+
## π What's New in v2.4.0
|
|
97
133
|
|
|
98
|
-
|
|
99
|
-
|
|
134
|
+
### Migration Auditor (Repository Scaling)
|
|
135
|
+
- **Version Tracking**: All templates include `@cortex-tms-version` metadata
|
|
136
|
+
- **Customization Detection**: Compares your files against original templates
|
|
137
|
+
- **Safe Upgrades**: Never lose custom changes during template evolution
|
|
138
|
+
- **Status Reports**: Clear categorization of file states (LATEST, OUTDATED, CUSTOMIZED)
|
|
100
139
|
|
|
101
|
-
|
|
102
|
-
|
|
140
|
+
### Prompt Engine (Interaction Scaling)
|
|
141
|
+
- **Essential 7 Library**: Curated prompts for the entire development lifecycle
|
|
142
|
+
- **Clipboard Integration**: One command, instant activation
|
|
143
|
+
- **Project-Aware**: Prompts reference YOUR architecture, patterns, and domain logic
|
|
144
|
+
- **Customizable**: Edit `PROMPTS.md` to match team vocabulary
|
|
103
145
|
|
|
104
|
-
|
|
105
|
-
|
|
146
|
+
### Enhanced Developer Experience
|
|
147
|
+
- **Status Dashboard**: Visual progress bars and health metrics
|
|
148
|
+
- **Self-Healing Validation**: `--fix` flag auto-repairs common issues
|
|
149
|
+
- **Dry-Run Mode**: Preview all changes before applying
|
|
150
|
+
- **VS Code Snippets**: 12 productivity snippets for rapid documentation
|
|
106
151
|
|
|
107
152
|
---
|
|
108
153
|
|
|
109
|
-
##
|
|
154
|
+
## π€ How to Work with AI Agents
|
|
110
155
|
|
|
111
|
-
**
|
|
112
|
-
- Node.js (managed via FN - Fast Node Manager)
|
|
113
|
-
- pnpm (package manager)
|
|
156
|
+
This repo is a **"Machine-Legible Project Constitution."** To get the best results:
|
|
114
157
|
|
|
158
|
+
### 1. The Context Trigger
|
|
115
159
|
```bash
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
160
|
+
cortex-tms prompt init-session
|
|
161
|
+
# Copies: "Review NEXT-TASKS.md, docs/core/ARCHITECTURE.md, and CLAUDE.md.
|
|
162
|
+
# Summarize current priorities and propose a step-by-step plan..."
|
|
163
|
+
```
|
|
119
164
|
|
|
120
|
-
|
|
121
|
-
|
|
165
|
+
### 2. Pattern Enforcement
|
|
166
|
+
```bash
|
|
167
|
+
cortex-tms prompt review
|
|
168
|
+
# Copies: "Review the current changes against PATTERNS.md.
|
|
169
|
+
# Flag any violations and suggest specific fixes."
|
|
170
|
+
```
|
|
122
171
|
|
|
123
|
-
|
|
124
|
-
|
|
172
|
+
### 3. Truth Anchoring
|
|
173
|
+
If the AI hallucinates logic:
|
|
174
|
+
> _"Your calculation is wrong. Refer to the rules in docs/core/DOMAIN-LOGIC.md."_
|
|
125
175
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
#
|
|
129
|
-
# - docs/core/PATTERNS.md - Template patterns
|
|
176
|
+
### 4. Check Current Sprint
|
|
177
|
+
```bash
|
|
178
|
+
cortex-tms status # Visual dashboard with current tasks
|
|
130
179
|
```
|
|
131
180
|
|
|
132
181
|
---
|
|
133
182
|
|
|
134
183
|
## π Development Roadmap
|
|
135
184
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
**
|
|
139
|
-
- [x] **Phase
|
|
140
|
-
- [x] **Phase
|
|
141
|
-
- [x] **Phase
|
|
142
|
-
- [x] **Phase
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
**
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
154
|
-
|
|
155
|
-
-
|
|
156
|
-
|
|
157
|
-
**Future Phases**:
|
|
158
|
-
- Phase 5: Write documentation guides (Quick Start, Migration, Best Practices)
|
|
159
|
-
- Phase 6: Publish to npm + GitHub Template
|
|
185
|
+
**Completed Phases** (All β
):
|
|
186
|
+
- [x] **Phase 1**: Dogfood the System - Applied TMS to Cortex itself
|
|
187
|
+
- [x] **Phase 2**: Complete Template Library - All templates built and validated
|
|
188
|
+
- [x] **Phase 3**: Build Example App - Gold Standard Next.js 15 Todo App
|
|
189
|
+
- [x] **Phase 4**: Create CLI Tool - Full-featured CLI with 5 commands
|
|
190
|
+
- [x] **Phase 5**: Documentation & Guides - Status dashboard, snippets, validation
|
|
191
|
+
- [x] **Phase 6**: Publish & Scale - npm package + GitHub releases
|
|
192
|
+
|
|
193
|
+
**Current Version**: v2.4.0 "Scaling Intelligence"
|
|
194
|
+
- β
Migration Auditor with version tracking
|
|
195
|
+
- β
Prompt Engine with Essential 7 library
|
|
196
|
+
- β
Clipboard integration for frictionless workflows
|
|
197
|
+
- β
Project-local prompt customization
|
|
198
|
+
|
|
199
|
+
**Next Phase (v2.5)**: "Guidance & Growth"
|
|
200
|
+
- Auto-upgrade logic with `migrate --apply`
|
|
201
|
+
- Interactive CLI tutorial for onboarding
|
|
202
|
+
- Custom template directory support
|
|
203
|
+
|
|
204
|
+
See `NEXT-TASKS.md` for current sprint details and `CHANGELOG.md` for full version history.
|
|
160
205
|
|
|
161
206
|
---
|
|
162
207
|
|
|
@@ -165,41 +210,42 @@ See `NEXT-TASKS.md` for current sprint and `FUTURE-ENHANCEMENTS.md` for backlog.
|
|
|
165
210
|
```
|
|
166
211
|
cortex-tms/
|
|
167
212
|
βββ NEXT-TASKS.md # HOT: Current sprint
|
|
213
|
+
βββ PROMPTS.md # HOT: AI interaction templates
|
|
168
214
|
βββ FUTURE-ENHANCEMENTS.md # PLANNING: Backlog
|
|
169
215
|
βββ CLAUDE.md # HOT: Workflow config
|
|
170
216
|
βββ README.md # This file
|
|
171
217
|
βββ .github/
|
|
172
218
|
β βββ copilot-instructions.md # HOT: AI guardrails
|
|
219
|
+
βββ bin/ # CLI executable
|
|
220
|
+
βββ src/ # CLI source code
|
|
221
|
+
β βββ commands/ # CLI commands (init, validate, status, migrate, prompt)
|
|
222
|
+
β βββ utils/ # Template processing, validation, prompt parsing
|
|
223
|
+
β βββ types/ # TypeScript definitions
|
|
173
224
|
βββ templates/ # User-facing boilerplate
|
|
174
225
|
β βββ NEXT-TASKS.md
|
|
226
|
+
β βββ PROMPTS.md # Essential 7 prompt library
|
|
175
227
|
β βββ CLAUDE.md
|
|
176
228
|
β βββ .github/
|
|
177
229
|
β β βββ copilot-instructions.md
|
|
230
|
+
β βββ vscode/
|
|
231
|
+
β β βββ tms.code-snippets # VS Code productivity snippets
|
|
178
232
|
β βββ docs/
|
|
179
233
|
β βββ core/
|
|
180
234
|
β β βββ ARCHITECTURE.md
|
|
181
235
|
β β βββ PATTERNS.md
|
|
182
236
|
β β βββ DOMAIN-LOGIC.md
|
|
237
|
+
β β βββ GIT-STANDARDS.md
|
|
183
238
|
β β βββ DECISIONS.md
|
|
184
239
|
β β βββ GLOSSARY.md
|
|
185
240
|
β β βββ SCHEMA.md
|
|
186
241
|
β β βββ TROUBLESHOOTING.md
|
|
187
242
|
β βββ archive/
|
|
188
243
|
β βββ v1.0-CHANGELOG.md
|
|
189
|
-
βββ docs/ # Cortex TMS documentation
|
|
244
|
+
βββ docs/ # Cortex TMS project documentation
|
|
190
245
|
β βββ core/
|
|
191
|
-
β β βββ ARCHITECTURE.md
|
|
192
|
-
β β βββ PATTERNS.md
|
|
193
|
-
β β βββ DOMAIN-LOGIC.md
|
|
194
|
-
β β βββ DECISIONS.md
|
|
195
|
-
β β βββ GLOSSARY.md
|
|
196
|
-
β β βββ PHILOSOPHY.md
|
|
197
246
|
β βββ archive/
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
β βββ todo-app/ # β
Gold Standard Next.js 15 Todo App
|
|
201
|
-
βββ bin/ # CLI tool entry point
|
|
202
|
-
βββ src/ # CLI tool source code
|
|
247
|
+
βββ examples/ # Reference implementations
|
|
248
|
+
βββ todo-app/ # β
Gold Standard Next.js 15 App
|
|
203
249
|
```
|
|
204
250
|
|
|
205
251
|
---
|
|
@@ -210,15 +256,15 @@ cortex-tms/
|
|
|
210
256
|
|
|
211
257
|
- Cortex's own `NEXT-TASKS.md` tracks Cortex development
|
|
212
258
|
- Cortex's own `docs/core/PATTERNS.md` documents template patterns
|
|
213
|
-
-
|
|
259
|
+
- Cortex's own `PROMPTS.md` guides AI collaboration on Cortex
|
|
214
260
|
|
|
215
|
-
**Validation Test**: "Can an AI agent working on Cortex find what it needs in < 3 file reads?"
|
|
261
|
+
**Validation Test**: "Can an AI agent working on Cortex find what it needs in < 3 file reads?" β
|
|
216
262
|
|
|
217
263
|
---
|
|
218
264
|
|
|
219
265
|
## π Key Documentation
|
|
220
266
|
|
|
221
|
-
- **For AI Agents**: Read `.github/copilot-instructions.md` first
|
|
267
|
+
- **For AI Agents**: Read `.github/copilot-instructions.md` and `PROMPTS.md` first
|
|
222
268
|
- **For Developers**: Read `docs/core/ARCHITECTURE.md` for system design
|
|
223
269
|
- **For Contributors**: Read `docs/core/PATTERNS.md` for template patterns
|
|
224
270
|
- **For Understanding**: Read `docs/core/DOMAIN-LOGIC.md` for TMS principles
|
|
@@ -229,18 +275,38 @@ cortex-tms/
|
|
|
229
275
|
|
|
230
276
|
1. Read `NEXT-TASKS.md` to see what's being worked on
|
|
231
277
|
2. Check `FUTURE-ENHANCEMENTS.md` for backlog items
|
|
232
|
-
3.
|
|
233
|
-
4.
|
|
234
|
-
5.
|
|
278
|
+
3. Use `cortex-tms prompt` to get project-aware guidance
|
|
279
|
+
4. Follow patterns in `docs/core/PATTERNS.md`
|
|
280
|
+
5. Verify changes against `docs/core/DOMAIN-LOGIC.md`
|
|
281
|
+
6. Test templates with AI agents before submitting
|
|
235
282
|
|
|
236
283
|
---
|
|
237
284
|
|
|
238
285
|
## π Learn More
|
|
239
286
|
|
|
240
|
-
- **
|
|
241
|
-
- **Architecture**: See `docs/core/ARCHITECTURE.md`
|
|
287
|
+
- **Release Notes**: See `CHANGELOG.md` for version history
|
|
288
|
+
- **Architecture**: See `docs/core/ARCHITECTURE.md` for system design
|
|
242
289
|
- **Decisions**: See `docs/core/DECISIONS.md` for ADRs
|
|
243
290
|
- **Glossary**: See `docs/core/GLOSSARY.md` for terminology
|
|
291
|
+
- **Patterns**: See `docs/core/PATTERNS.md` for implementation examples
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
## π― Why Cortex TMS?
|
|
296
|
+
|
|
297
|
+
**Before TMS**:
|
|
298
|
+
- AI agents waste time reading historical noise
|
|
299
|
+
- Documentation drifts from reality
|
|
300
|
+
- No standard way to constrain AI attention
|
|
301
|
+
- Manual prompt writing for every interaction
|
|
302
|
+
|
|
303
|
+
**After TMS**:
|
|
304
|
+
- Tiered structure (HOT/WARM/COLD) maximizes signal
|
|
305
|
+
- Version metadata keeps templates synchronized
|
|
306
|
+
- Essential 7 prompts provide instant AI activation
|
|
307
|
+
- Project-aware guidance scales across team size
|
|
308
|
+
|
|
309
|
+
**Result**: 3-5x faster AI collaboration with fewer hallucinations.
|
|
244
310
|
|
|
245
311
|
---
|
|
246
312
|
|
|
@@ -252,7 +318,9 @@ MIT
|
|
|
252
318
|
|
|
253
319
|
## Status
|
|
254
320
|
|
|
255
|
-
**Version**: 2.1 (
|
|
256
|
-
**Last Updated**: 2026-01-
|
|
257
|
-
**Current Sprint**:
|
|
258
|
-
**Completed Sprints**:
|
|
321
|
+
**Version**: 2.4.1 (Stable / Production Ready)
|
|
322
|
+
**Last Updated**: 2026-01-14
|
|
323
|
+
**Current Sprint**: v2.5 Planning - "Guidance & Growth"
|
|
324
|
+
**Completed Sprints**: v2.1, v2.2, v2.3, v2.4 (see `docs/archive/`)
|
|
325
|
+
|
|
326
|
+
<!-- @cortex-tms-version 2.4.1 -->
|
package/bin/cortex-tms.js
CHANGED
|
File without changes
|
|
@@ -32,23 +32,24 @@ describe('Init Command - Scope Filtering', () => {
|
|
|
32
32
|
scope: 'standard',
|
|
33
33
|
overwrite: true,
|
|
34
34
|
});
|
|
35
|
-
expect(result.copied).toBe(
|
|
35
|
+
expect(result.copied).toBe(10);
|
|
36
36
|
expect(result.skipped).toBe(0);
|
|
37
37
|
expect(await fileExists(join(tempDir, 'NEXT-TASKS.md'))).toBe(true);
|
|
38
38
|
expect(await fileExists(join(tempDir, 'CLAUDE.md'))).toBe(true);
|
|
39
39
|
expect(await fileExists(join(tempDir, '.github/copilot-instructions.md'))).toBe(true);
|
|
40
|
+
expect(await fileExists(join(tempDir, 'PROMPTS.md'))).toBe(true);
|
|
40
41
|
expect(await fileExists(join(tempDir, 'FUTURE-ENHANCEMENTS.md'))).toBe(true);
|
|
41
42
|
expect(await fileExists(join(tempDir, 'docs/core/ARCHITECTURE.md'))).toBe(true);
|
|
42
43
|
expect(await fileExists(join(tempDir, 'docs/core/PATTERNS.md'))).toBe(true);
|
|
43
44
|
});
|
|
44
|
-
it('should copy exactly
|
|
45
|
+
it('should copy exactly 12 files when scope is "enterprise"', async () => {
|
|
45
46
|
const templatesDir = getTemplatesDir();
|
|
46
47
|
const replacements = generateReplacements('test-project');
|
|
47
48
|
const result = await copyTemplates(templatesDir, tempDir, replacements, {
|
|
48
49
|
scope: 'enterprise',
|
|
49
50
|
overwrite: true,
|
|
50
51
|
});
|
|
51
|
-
expect(result.copied).toBe(
|
|
52
|
+
expect(result.copied).toBe(12);
|
|
52
53
|
expect(result.skipped).toBe(0);
|
|
53
54
|
expect(await fileExists(join(tempDir, 'docs/core/GLOSSARY.md'))).toBe(true);
|
|
54
55
|
expect(await fileExists(join(tempDir, 'docs/core/SCHEMA.md'))).toBe(true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.test.js","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AAqB,CAAC,YAAY,CAAC,CAAC;QAEnD,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACnD,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+CAA+C,EAAE,KAAK,IAAI,EAAE;QAC7D,MAAM,MAAM,GAAG,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAEjE,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;QAC/C,MAAM,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,QAAS,CAAC,OAAQ,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,mBAAmB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/cli.js
CHANGED
|
@@ -19,9 +19,13 @@ program
|
|
|
19
19
|
import { initCommand } from './commands/init.js';
|
|
20
20
|
import { validateCommand } from './commands/validate.js';
|
|
21
21
|
import { statusCommand } from './commands/status.js';
|
|
22
|
+
import { migrateCommand } from './commands/migrate.js';
|
|
23
|
+
import { promptCommand } from './commands/prompt.js';
|
|
22
24
|
program.addCommand(initCommand);
|
|
23
25
|
program.addCommand(validateCommand);
|
|
24
26
|
program.addCommand(statusCommand);
|
|
27
|
+
program.addCommand(migrateCommand);
|
|
28
|
+
program.addCommand(promptCommand);
|
|
25
29
|
program.on('command:*', () => {
|
|
26
30
|
console.error(chalk.red('\nβ Invalid command:'), chalk.bold(program.args.join(' ')));
|
|
27
31
|
console.log(chalk.gray('\nRun'), chalk.cyan('cortex-tms --help'), chalk.gray('to see available commands.'));
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 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,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,CAAC;IAC5G,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAGH,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAG5B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,OAAO,CAAC,UAAU,EAAE,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
export type MigrationStatus = 'LATEST' | 'OUTDATED' | 'CUSTOMIZED' | 'MISSING';
|
|
3
|
+
export interface FileMigration {
|
|
4
|
+
path: string;
|
|
5
|
+
status: MigrationStatus;
|
|
6
|
+
currentVersion: string | null;
|
|
7
|
+
targetVersion: string;
|
|
8
|
+
reason?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function createMigrateCommand(): Command;
|
|
11
|
+
export declare const migrateCommand: Command;
|
|
12
|
+
//# sourceMappingURL=migrate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../src/commands/migrate.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYpC,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,SAAS,CAAC;AAK/E,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,eAAe,CAAC;IACxB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAKD,wBAAgB,oBAAoB,IAAI,OAAO,CAa9C;AAKD,eAAO,MAAM,cAAc,SAAyB,CAAC"}
|