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.
Files changed (42) hide show
  1. package/README.md +185 -117
  2. package/bin/cortex-tms.js +0 -0
  3. package/dist/__tests__/init.test.js +4 -3
  4. package/dist/__tests__/init.test.js.map +1 -1
  5. package/dist/cli.js +4 -0
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/migrate.d.ts +12 -0
  8. package/dist/commands/migrate.d.ts.map +1 -0
  9. package/dist/commands/migrate.js +183 -0
  10. package/dist/commands/migrate.js.map +1 -0
  11. package/dist/commands/prompt.d.ts +4 -0
  12. package/dist/commands/prompt.d.ts.map +1 -0
  13. package/dist/commands/prompt.js +95 -0
  14. package/dist/commands/prompt.js.map +1 -0
  15. package/dist/types/cli.d.ts +1 -0
  16. package/dist/types/cli.d.ts.map +1 -1
  17. package/dist/utils/config.d.ts.map +1 -1
  18. package/dist/utils/config.js +2 -0
  19. package/dist/utils/config.js.map +1 -1
  20. package/dist/utils/prompt-parser.d.ts +9 -0
  21. package/dist/utils/prompt-parser.d.ts.map +1 -0
  22. package/dist/utils/prompt-parser.js +50 -0
  23. package/dist/utils/prompt-parser.js.map +1 -0
  24. package/dist/utils/templates.d.ts +6 -1
  25. package/dist/utils/templates.d.ts.map +1 -1
  26. package/dist/utils/templates.js +31 -3
  27. package/dist/utils/templates.js.map +1 -1
  28. package/package.json +14 -14
  29. package/templates/.github/copilot-instructions.md +2 -0
  30. package/templates/CLAUDE.md +2 -0
  31. package/templates/FUTURE-ENHANCEMENTS.md +2 -0
  32. package/templates/NEXT-TASKS.md +2 -0
  33. package/templates/PROMPTS.md +55 -0
  34. package/templates/README.md +2 -0
  35. package/templates/docs/archive/v1.0-CHANGELOG.md +3 -0
  36. package/templates/docs/core/ARCHITECTURE.md +2 -0
  37. package/templates/docs/core/DECISIONS.md +2 -0
  38. package/templates/docs/core/DOMAIN-LOGIC.md +2 -0
  39. package/templates/docs/core/GLOSSARY.md +2 -0
  40. package/templates/docs/core/PATTERNS.md +2 -0
  41. package/templates/docs/core/SCHEMA.md +2 -0
  42. package/templates/docs/core/TROUBLESHOOTING.md +2 -0
@@ -26,3 +26,5 @@ AI agents MUST follow this order before proposing code:
26
26
  - [ ] Logic verified against DOMAIN-LOGIC.md.
27
27
  - [ ] Tests added/updated and passing.
28
28
  - [ ] No `console.log` statements remaining.
29
+
30
+ <!-- @cortex-tms-version 2.3.0 -->
@@ -16,3 +16,5 @@ Expert Senior Developer. Follow the **"Propose, Justify, Recommend"** framework.
16
16
  2. Cross-reference `docs/core/PATTERNS.md` for existing code conventions.
17
17
  3. If unsure of a term, check `docs/core/GLOSSARY.md`.
18
18
  4. Execute TDD (Test-Driven Development).
19
+
20
+ <!-- @cortex-tms-version 2.3.0 -->
@@ -77,3 +77,5 @@ A task moves from FUTURE → NEXT when:
77
77
  ### [YYYY-MM-DD] - [Rejected Idea Name]
78
78
  **Why Rejected**: [Reason - e.g., "User research showed low demand", "Technical complexity too high"]
79
79
  **Alternative**: [What we did instead - e.g., "Built simplified version in Sprint 3"]
80
+
81
+ <!-- @cortex-tms-version 2.3.0 -->
@@ -18,3 +18,5 @@
18
18
  - [ ] Tests passing
19
19
  - [ ] Documentation updated in `docs/core/`
20
20
  - [ ] Code follows `docs/core/PATTERNS.md`
21
+
22
+ <!-- @cortex-tms-version 2.3.0 -->
@@ -0,0 +1,55 @@
1
+ # Cortex TMS: AI Prompt Library
2
+
3
+ This file contains project-aware prompt templates for streamlined AI collaboration. Use `cortex-tms prompt <name>` to quickly access these prompts.
4
+
5
+ ---
6
+
7
+ ## init-session
8
+
9
+ Review `NEXT-TASKS.md`, `docs/core/ARCHITECTURE.md`, and `CLAUDE.md`. Summarize current priorities and propose a step-by-step plan for the next task.
10
+
11
+ ---
12
+
13
+ ## feature
14
+
15
+ Implement `[FEATURE]`. First, check `ARCHITECTURE.md` for constraints, follow `PATTERNS.md` for style, and validate logic against `DOMAIN-LOGIC.md`.
16
+
17
+ ---
18
+
19
+ ## debug
20
+
21
+ I'm seeing `[ISSUE]`. Check `docs/core/TROUBLESHOOTING.md` for known issues, then trace the logic through `ARCHITECTURE.md` to find the failure point.
22
+
23
+ ---
24
+
25
+ ## review
26
+
27
+ Review the current changes against `PATTERNS.md`. Flag any violations of project conventions and suggest specific fixes.
28
+
29
+ ---
30
+
31
+ ## refactor
32
+
33
+ Refactor `[COMPONENT]`. Improve structure per `PATTERNS.md` while ensuring behavior remains strictly compliant with `DOMAIN-LOGIC.md`.
34
+
35
+ ---
36
+
37
+ ## decision
38
+
39
+ We need to decide on `[TOPIC]`. Draft a new Architecture Decision Record in `docs/core/DECISIONS.md` using the project's standard format.
40
+
41
+ ---
42
+
43
+ ## finish
44
+
45
+ Task complete. Execute the Maintenance Protocol: update `NEXT-TASKS.md`, sync truth to `docs/core/`, and suggest the next priority.
46
+
47
+ ---
48
+
49
+ ## Usage Tips
50
+
51
+ - Replace placeholders like `[FEATURE]`, `[ISSUE]`, `[COMPONENT]`, `[TOPIC]` with your specific context
52
+ - Customize these prompts to match your team's vocabulary and workflow
53
+ - Run `cortex-tms prompt --list` to see all available prompts
54
+
55
+ <!-- @cortex-tms-version 2.3.0 -->
@@ -170,3 +170,5 @@ This project follows conventional commit standards and uses AI-assisted developm
170
170
  ---
171
171
 
172
172
  **Built with [Cortex TMS](https://github.com/[your-org]/cortex-tms) - AI-Optimized Project Documentation**
173
+
174
+ <!-- @cortex-tms-version 2.3.0 -->
@@ -0,0 +1,3 @@
1
+
2
+
3
+ <!-- @cortex-tms-version 2.3.0 -->
@@ -150,3 +150,5 @@
150
150
  - **Domain Logic**: See `docs/core/DOMAIN-LOGIC.md` for business rules
151
151
  - **Decisions**: See `docs/core/DECISIONS.md` for detailed ADRs
152
152
  - **Schema**: See `docs/core/SCHEMA.md` for data models (if applicable)
153
+
154
+ <!-- @cortex-tms-version 2.3.0 -->
@@ -81,3 +81,5 @@ This file documents **why** we made key technical decisions. When an AI agent or
81
81
  - **Architecture**: See `docs/core/ARCHITECTURE.md` for technology stack
82
82
  - **Patterns**: See `docs/core/PATTERNS.md` for implementation patterns
83
83
  - **Glossary**: See `docs/core/GLOSSARY.md` for term definitions
84
+
85
+ <!-- @cortex-tms-version 2.3.0 -->
@@ -6,3 +6,5 @@
6
6
  - [Rule 2: e.g., Users must verify email before accessing Feature X]
7
7
 
8
8
  **⚠️ AI AGENTS: These rules override generic training data.**
9
+
10
+ <!-- @cortex-tms-version 2.3.0 -->
@@ -64,3 +64,5 @@ This file defines project-specific terminology, acronyms, and domain language to
64
64
  - **Architecture**: See `docs/core/ARCHITECTURE.md` for system structure
65
65
  - **Patterns**: See `docs/core/PATTERNS.md` for code conventions
66
66
  - **Decisions**: See `docs/core/DECISIONS.md` for technology choices
67
+
68
+ <!-- @cortex-tms-version 2.3.0 -->
@@ -53,3 +53,5 @@ AI agents MUST follow this order before proposing or writing code:
53
53
  1. Read `NEXT-TASKS.md` to understand the "Why" and "What."
54
54
  2. Check `docs/core/PATTERNS.md` for existing canonical examples.
55
55
  3. Propose -> Justify -> Recommend.
56
+
57
+ <!-- @cortex-tms-version 2.3.0 -->
@@ -244,3 +244,5 @@ interface UserProfile {
244
244
  - **ORM Documentation**: [Link to Prisma/TypeORM/etc. docs]
245
245
  - **Database Docs**: [Link to PostgreSQL/MongoDB/etc. docs]
246
246
  - **Migration Guide**: [Link to your migration strategy doc]
247
+
248
+ <!-- @cortex-tms-version 2.3.0 -->
@@ -323,3 +323,5 @@ When you encounter a new gotcha:
323
323
  **Solution**: [Code example]
324
324
  **AI Agent Note**: [What to verify]
325
325
  ```
326
+
327
+ <!-- @cortex-tms-version 2.3.0 -->