cmp-standards 2.4.0 → 2.7.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 (97) hide show
  1. package/README.md +633 -611
  2. package/dist/cli/index.js +0 -0
  3. package/dist/db/drizzle-client.d.ts +3 -3
  4. package/dist/db/drizzle-client.d.ts.map +1 -1
  5. package/dist/db/drizzle-client.js +57 -58
  6. package/dist/db/drizzle-client.js.map +1 -1
  7. package/dist/db/turso-client.js +11 -11
  8. package/dist/eslint/rules/no-async-useeffect.js +6 -6
  9. package/dist/hooks/cloud-pre-tool-use.js +20 -20
  10. package/dist/hooks/cloud-session-start.d.ts +15 -3
  11. package/dist/hooks/cloud-session-start.d.ts.map +1 -1
  12. package/dist/hooks/cloud-session-start.js +135 -8
  13. package/dist/hooks/cloud-session-start.js.map +1 -1
  14. package/dist/hooks/session-start.d.ts +2 -1
  15. package/dist/hooks/session-start.d.ts.map +1 -1
  16. package/dist/hooks/session-start.js +99 -74
  17. package/dist/hooks/session-start.js.map +1 -1
  18. package/dist/index.d.ts +4 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +4 -0
  21. package/dist/index.js.map +1 -1
  22. package/dist/mcp/server.js +2 -2
  23. package/dist/mcp/server.js.map +1 -1
  24. package/dist/schema/plans.d.ts +194 -0
  25. package/dist/schema/plans.d.ts.map +1 -0
  26. package/dist/schema/plans.js +180 -0
  27. package/dist/schema/plans.js.map +1 -0
  28. package/dist/schema/tracking.d.ts +90 -90
  29. package/dist/services/ContextGenerator.d.ts +16 -0
  30. package/dist/services/ContextGenerator.d.ts.map +1 -0
  31. package/dist/services/ContextGenerator.js +62 -0
  32. package/dist/services/ContextGenerator.js.map +1 -0
  33. package/dist/services/PlanManager.d.ts +99 -0
  34. package/dist/services/PlanManager.d.ts.map +1 -0
  35. package/dist/services/PlanManager.js +372 -0
  36. package/dist/services/PlanManager.js.map +1 -0
  37. package/dist/services/ProjectScaffold.js +76 -76
  38. package/dist/services/context-injector.d.ts +111 -0
  39. package/dist/services/context-injector.d.ts.map +1 -0
  40. package/dist/services/context-injector.js +397 -0
  41. package/dist/services/context-injector.js.map +1 -0
  42. package/dist/services/index.d.ts +15 -15
  43. package/dist/services/index.d.ts.map +1 -1
  44. package/dist/services/index.js +18 -20
  45. package/dist/services/index.js.map +1 -1
  46. package/dist/services/memory-router.d.ts +122 -0
  47. package/dist/services/memory-router.d.ts.map +1 -0
  48. package/dist/services/memory-router.js +517 -0
  49. package/dist/services/memory-router.js.map +1 -0
  50. package/dist/services/pattern-tracker.d.ts +97 -0
  51. package/dist/services/pattern-tracker.d.ts.map +1 -0
  52. package/dist/services/pattern-tracker.js +425 -0
  53. package/dist/services/pattern-tracker.js.map +1 -0
  54. package/dist/services/semantic-search.d.ts +33 -35
  55. package/dist/services/semantic-search.d.ts.map +1 -1
  56. package/dist/services/semantic-search.js +207 -165
  57. package/dist/services/semantic-search.js.map +1 -1
  58. package/dist/types/index.d.ts +329 -4
  59. package/dist/types/index.d.ts.map +1 -1
  60. package/dist/types/index.js +186 -9
  61. package/dist/types/index.js.map +1 -1
  62. package/package.json +104 -100
  63. package/standards/README.md +50 -50
  64. package/standards/experts/expert-routing.md +215 -215
  65. package/standards/general/code-quality.md +86 -86
  66. package/standards/general/memory-usage.md +205 -205
  67. package/standards/general/sync-workflow.md +235 -235
  68. package/standards/general/workflow.md +82 -82
  69. package/standards/hooks/mandatory-tracking.md +446 -446
  70. package/standards/infrastructure/cloud-database.md +287 -287
  71. package/standards/mcp/server-design.md +243 -243
  72. package/standards/mcp/tool-patterns.md +354 -354
  73. package/standards/skills/skill-structure.md +286 -286
  74. package/standards/skills/workflow-design.md +323 -323
  75. package/standards/tools/tool-design.md +297 -297
  76. package/templates/agents/architecture-expert.md +61 -61
  77. package/templates/agents/database-expert.md +62 -62
  78. package/templates/agents/documentation-expert.md +57 -57
  79. package/templates/agents/memory-expert.md +88 -88
  80. package/templates/agents/performance-expert.md +61 -61
  81. package/templates/agents/security-expert.md +59 -59
  82. package/templates/agents/ux-expert.md +63 -63
  83. package/templates/agents/worker.md +75 -75
  84. package/templates/ai-skills/SKILL_TEMPLATE.md +55 -55
  85. package/templates/claude-settings.json +72 -72
  86. package/templates/commands/experts.md +138 -138
  87. package/templates/hooks/README.md +158 -158
  88. package/templates/hooks/project.config.json.template +77 -77
  89. package/templates/hooks/settings.local.json.template +57 -57
  90. package/templates/memory-config.json +56 -56
  91. package/templates/memory-config.schema.json +212 -212
  92. package/templates/settings.json +58 -58
  93. package/templates/skills/continue.md +205 -205
  94. package/templates/workflows/business-improvement.md +264 -264
  95. package/templates/workflows/expert-review.md +153 -153
  96. package/templates/workflows/internal-app.md +245 -245
  97. package/templates/workflows/sync-docs.md +187 -187
package/package.json CHANGED
@@ -1,100 +1,104 @@
1
- {
2
- "name": "cmp-standards",
3
- "version": "2.4.0",
4
- "type": "module",
5
- "description": "Unified standards, memory, ESLint rules & workflow system for Claude Code projects",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "bin": {
9
- "cmp-standards": "dist/cli/index.js"
10
- },
11
- "scripts": {
12
- "build": "tsc",
13
- "dev": "tsc --watch",
14
- "test": "vitest",
15
- "lint": "eslint src/**/*.ts",
16
- "prepublishOnly": "npm run build"
17
- },
18
- "keywords": [
19
- "claude",
20
- "ai",
21
- "memory",
22
- "workflow",
23
- "hooks",
24
- "task-tracking"
25
- ],
26
- "author": "Carlos Martin Pavon",
27
- "license": "MIT",
28
- "repository": {
29
- "type": "git",
30
- "url": "git+https://github.com/carlosmartinpavon/carlosmartinpavon.git",
31
- "directory": "packages/cmp-standards"
32
- },
33
- "homepage": "https://github.com/carlosmartinpavon/carlosmartinpavon/tree/main/packages/cmp-standards",
34
- "bugs": {
35
- "url": "https://github.com/carlosmartinpavon/carlosmartinpavon/issues"
36
- },
37
- "publishConfig": {
38
- "access": "public"
39
- },
40
- "engines": {
41
- "node": ">=18.0.0"
42
- },
43
- "dependencies": {
44
- "@libsql/client": "^0.14.0",
45
- "@modelcontextprotocol/sdk": "^0.5.0",
46
- "@upstash/redis": "^1.34.0",
47
- "@upstash/vector": "^1.1.0",
48
- "chalk": "^5.3.0",
49
- "commander": "^12.0.0",
50
- "cors": "^2.8.5",
51
- "dotenv": "^17.2.3",
52
- "drizzle-orm": ">=0.30.0",
53
- "express": "^4.18.2",
54
- "glob": "^10.3.10",
55
- "gray-matter": "^4.0.3",
56
- "mysql2": ">=3.0.0",
57
- "open": "^10.0.0",
58
- "simple-git": "^3.30.0",
59
- "ulid": "^2.3.0",
60
- "zod": "^3.23.0"
61
- },
62
- "peerDependencies": {
63
- "drizzle-orm": ">=0.30.0",
64
- "mysql2": ">=3.0.0"
65
- },
66
- "devDependencies": {
67
- "@types/cors": "^2.8.17",
68
- "@types/eslint": "^8.56.0",
69
- "@types/express": "^4.17.21",
70
- "@types/node": "^20.11.0",
71
- "@typescript-eslint/eslint-plugin": "^6.19.0",
72
- "@typescript-eslint/parser": "^6.19.0",
73
- "eslint": "^8.56.0",
74
- "typescript": "^5.3.3",
75
- "vitest": "^1.2.0"
76
- },
77
- "files": [
78
- "dist",
79
- "templates",
80
- "standards",
81
- "README.md"
82
- ],
83
- "exports": {
84
- ".": {
85
- "import": "./dist/index.js",
86
- "types": "./dist/index.d.ts"
87
- },
88
- "./hooks": {
89
- "import": "./dist/hooks/index.js",
90
- "types": "./dist/hooks/index.d.ts"
91
- },
92
- "./cli": {
93
- "import": "./dist/cli/index.js"
94
- },
95
- "./eslint": {
96
- "import": "./dist/eslint/index.js",
97
- "types": "./dist/eslint/index.d.ts"
98
- }
99
- }
100
- }
1
+ {
2
+ "name": "cmp-standards",
3
+ "version": "2.7.0",
4
+ "type": "module",
5
+ "description": "Collective Memory Protocol - Persistent memory, cross-project learning, and multi-agent collaboration",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "bin": {
9
+ "cmp-standards": "dist/cli/index.js"
10
+ },
11
+ "scripts": {
12
+ "build": "tsc",
13
+ "dev": "tsc --watch",
14
+ "test": "vitest",
15
+ "lint": "eslint src/**/*.ts",
16
+ "prepublishOnly": "npm run build"
17
+ },
18
+ "keywords": [
19
+ "claude",
20
+ "ai",
21
+ "memory",
22
+ "workflow",
23
+ "hooks",
24
+ "task-tracking"
25
+ ],
26
+ "author": "Carlos Martin Pavon",
27
+ "license": "MIT",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/carlosmartinpavon/carlosmartinpavon.git",
31
+ "directory": "packages/cmp-standards"
32
+ },
33
+ "homepage": "https://github.com/carlosmartinpavon/carlosmartinpavon/tree/main/packages/cmp-standards",
34
+ "bugs": {
35
+ "url": "https://github.com/carlosmartinpavon/carlosmartinpavon/issues"
36
+ },
37
+ "publishConfig": {
38
+ "access": "public"
39
+ },
40
+ "engines": {
41
+ "node": ">=18.0.0"
42
+ },
43
+ "dependencies": {
44
+ "@libsql/client": "^0.14.0",
45
+ "@modelcontextprotocol/sdk": "^0.5.0",
46
+ "@upstash/redis": "^1.34.0",
47
+ "@upstash/vector": "^1.1.0",
48
+ "chalk": "^5.3.0",
49
+ "commander": "^12.0.0",
50
+ "cors": "^2.8.5",
51
+ "dotenv": "^17.2.3",
52
+ "drizzle-orm": ">=0.30.0",
53
+ "express": "^4.18.2",
54
+ "glob": "^10.3.10",
55
+ "gray-matter": "^4.0.3",
56
+ "mysql2": ">=3.0.0",
57
+ "open": "^10.0.0",
58
+ "simple-git": "^3.30.0",
59
+ "ulid": "^2.3.0",
60
+ "zod": "^3.23.0"
61
+ },
62
+ "optionalDependencies": {
63
+ "better-sqlite3": "^11.0.0"
64
+ },
65
+ "peerDependencies": {
66
+ "drizzle-orm": ">=0.30.0",
67
+ "mysql2": ">=3.0.0"
68
+ },
69
+ "devDependencies": {
70
+ "@types/better-sqlite3": "^7.6.0",
71
+ "@types/cors": "^2.8.17",
72
+ "@types/eslint": "^8.56.0",
73
+ "@types/express": "^4.17.21",
74
+ "@types/node": "^20.11.0",
75
+ "@typescript-eslint/eslint-plugin": "^6.19.0",
76
+ "@typescript-eslint/parser": "^6.19.0",
77
+ "eslint": "^8.56.0",
78
+ "typescript": "^5.3.3",
79
+ "vitest": "^1.2.0"
80
+ },
81
+ "files": [
82
+ "dist",
83
+ "templates",
84
+ "standards",
85
+ "README.md"
86
+ ],
87
+ "exports": {
88
+ ".": {
89
+ "import": "./dist/index.js",
90
+ "types": "./dist/index.d.ts"
91
+ },
92
+ "./hooks": {
93
+ "import": "./dist/hooks/index.js",
94
+ "types": "./dist/hooks/index.d.ts"
95
+ },
96
+ "./cli": {
97
+ "import": "./dist/cli/index.js"
98
+ },
99
+ "./eslint": {
100
+ "import": "./dist/eslint/index.js",
101
+ "types": "./dist/eslint/index.d.ts"
102
+ }
103
+ }
104
+ }
@@ -1,50 +1,50 @@
1
- # CMP Standards
2
-
3
- Estándares globales para proyectos con Claude Code. Estos estándares son **adaptados inteligentemente** por la IA a cada proyecto local.
4
-
5
- ## Estructura
6
-
7
- ```
8
- standards/
9
- ├── general/ # Cómo trabajar en general
10
- │ ├── workflow.md # Flujo de trabajo con Claude
11
- │ ├── code-quality.md # Estándares de código
12
- │ ├── memory-usage.md # Uso del sistema de memoria
13
- │ └── sync-workflow.md # Cómo funciona el sync inteligente
14
-
15
- ├── mcp/ # Model Context Protocol
16
- │ ├── server-design.md
17
- │ └── tool-patterns.md
18
-
19
- ├── tools/ # Diseño de herramientas
20
- │ └── tool-design.md
21
-
22
- ├── skills/ # Sistema de skills
23
- │ ├── skill-structure.md
24
- │ └── workflow-design.md
25
-
26
- ├── experts/ # Sistema de expertos
27
- │ └── expert-routing.md
28
-
29
- ├── hooks/ # Hooks obligatorios
30
- │ └── mandatory-tracking.md # Sistema de tracking continuo
31
-
32
- └── infrastructure/ # Infraestructura cloud
33
- └── cloud-database.md # Turso + Upstash (gratis)
34
- ```
35
-
36
- ## Cómo funciona el Sync
37
-
38
- 1. **AI lee** estos estándares globales
39
- 2. **AI analiza** el proyecto local (estructura, tech stack, CLAUDE.md existente)
40
- 3. **AI adapta** los estándares al contexto local
41
- 4. **AI actualiza** el CLAUDE.md local con lo relevante
42
-
43
- ## Uso
44
-
45
- ```bash
46
- # El sync se invoca como skill
47
- /sync
48
- ```
49
-
50
- La IA ejecuta el sync de forma inteligente, no es un script.
1
+ # CMP Standards
2
+
3
+ Estándares globales para proyectos con Claude Code. Estos estándares son **adaptados inteligentemente** por la IA a cada proyecto local.
4
+
5
+ ## Estructura
6
+
7
+ ```
8
+ standards/
9
+ ├── general/ # Cómo trabajar en general
10
+ │ ├── workflow.md # Flujo de trabajo con Claude
11
+ │ ├── code-quality.md # Estándares de código
12
+ │ ├── memory-usage.md # Uso del sistema de memoria
13
+ │ └── sync-workflow.md # Cómo funciona el sync inteligente
14
+
15
+ ├── mcp/ # Model Context Protocol
16
+ │ ├── server-design.md
17
+ │ └── tool-patterns.md
18
+
19
+ ├── tools/ # Diseño de herramientas
20
+ │ └── tool-design.md
21
+
22
+ ├── skills/ # Sistema de skills
23
+ │ ├── skill-structure.md
24
+ │ └── workflow-design.md
25
+
26
+ ├── experts/ # Sistema de expertos
27
+ │ └── expert-routing.md
28
+
29
+ ├── hooks/ # Hooks obligatorios
30
+ │ └── mandatory-tracking.md # Sistema de tracking continuo
31
+
32
+ └── infrastructure/ # Infraestructura cloud
33
+ └── cloud-database.md # Turso + Upstash (gratis)
34
+ ```
35
+
36
+ ## Cómo funciona el Sync
37
+
38
+ 1. **AI lee** estos estándares globales
39
+ 2. **AI analiza** el proyecto local (estructura, tech stack, CLAUDE.md existente)
40
+ 3. **AI adapta** los estándares al contexto local
41
+ 4. **AI actualiza** el CLAUDE.md local con lo relevante
42
+
43
+ ## Uso
44
+
45
+ ```bash
46
+ # El sync se invoca como skill
47
+ /sync
48
+ ```
49
+
50
+ La IA ejecuta el sync de forma inteligente, no es un script.