cmp-standards 2.7.0 → 2.8.0-alpha

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 (114) hide show
  1. package/README.md +633 -633
  2. package/dist/cache/EmbeddingCache.d.ts +109 -0
  3. package/dist/cache/EmbeddingCache.d.ts.map +1 -0
  4. package/dist/cache/EmbeddingCache.js +239 -0
  5. package/dist/cache/EmbeddingCache.js.map +1 -0
  6. package/dist/cache/index.d.ts +6 -0
  7. package/dist/cache/index.d.ts.map +1 -0
  8. package/dist/cache/index.js +6 -0
  9. package/dist/cache/index.js.map +1 -0
  10. package/dist/cli/index.js +0 -0
  11. package/dist/db/turso-client.js +11 -11
  12. package/dist/eslint/rules/no-async-useeffect.js +6 -6
  13. package/dist/events/EventBus.d.ts +87 -0
  14. package/dist/events/EventBus.d.ts.map +1 -0
  15. package/dist/events/EventBus.js +200 -0
  16. package/dist/events/EventBus.js.map +1 -0
  17. package/dist/events/index.d.ts +7 -0
  18. package/dist/events/index.d.ts.map +1 -0
  19. package/dist/events/index.js +9 -0
  20. package/dist/events/index.js.map +1 -0
  21. package/dist/events/types.d.ts +989 -0
  22. package/dist/events/types.d.ts.map +1 -0
  23. package/dist/events/types.js +136 -0
  24. package/dist/events/types.js.map +1 -0
  25. package/dist/experts/ConsensusEngine.d.ts +57 -0
  26. package/dist/experts/ConsensusEngine.d.ts.map +1 -0
  27. package/dist/experts/ConsensusEngine.js +146 -0
  28. package/dist/experts/ConsensusEngine.js.map +1 -0
  29. package/dist/experts/ExpertPanelService.d.ts +84 -0
  30. package/dist/experts/ExpertPanelService.d.ts.map +1 -0
  31. package/dist/experts/ExpertPanelService.js +204 -0
  32. package/dist/experts/ExpertPanelService.js.map +1 -0
  33. package/dist/experts/ExpertRouter.d.ts +68 -0
  34. package/dist/experts/ExpertRouter.d.ts.map +1 -0
  35. package/dist/experts/ExpertRouter.js +374 -0
  36. package/dist/experts/ExpertRouter.js.map +1 -0
  37. package/dist/experts/VoteCollector.d.ts +58 -0
  38. package/dist/experts/VoteCollector.d.ts.map +1 -0
  39. package/dist/experts/VoteCollector.js +146 -0
  40. package/dist/experts/VoteCollector.js.map +1 -0
  41. package/dist/experts/index.d.ts +9 -0
  42. package/dist/experts/index.d.ts.map +1 -0
  43. package/dist/experts/index.js +13 -0
  44. package/dist/experts/index.js.map +1 -0
  45. package/dist/hooks/cloud-pre-tool-use.js +20 -20
  46. package/dist/hooks/expert-review.d.ts +74 -0
  47. package/dist/hooks/expert-review.d.ts.map +1 -0
  48. package/dist/hooks/expert-review.js +220 -0
  49. package/dist/hooks/expert-review.js.map +1 -0
  50. package/dist/hooks/index.d.ts +1 -0
  51. package/dist/hooks/index.d.ts.map +1 -1
  52. package/dist/hooks/index.js +2 -0
  53. package/dist/hooks/index.js.map +1 -1
  54. package/dist/index.d.ts +13 -0
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +22 -0
  57. package/dist/index.js.map +1 -1
  58. package/dist/performance/Debouncer.d.ts +91 -0
  59. package/dist/performance/Debouncer.d.ts.map +1 -0
  60. package/dist/performance/Debouncer.js +198 -0
  61. package/dist/performance/Debouncer.js.map +1 -0
  62. package/dist/performance/MemoryDecay.d.ts +82 -0
  63. package/dist/performance/MemoryDecay.d.ts.map +1 -0
  64. package/dist/performance/MemoryDecay.js +153 -0
  65. package/dist/performance/MemoryDecay.js.map +1 -0
  66. package/dist/performance/index.d.ts +7 -0
  67. package/dist/performance/index.d.ts.map +1 -0
  68. package/dist/performance/index.js +9 -0
  69. package/dist/performance/index.js.map +1 -0
  70. package/dist/schema/expert-types.d.ts +395 -0
  71. package/dist/schema/expert-types.d.ts.map +1 -0
  72. package/dist/schema/expert-types.js +250 -0
  73. package/dist/schema/expert-types.js.map +1 -0
  74. package/dist/services/ContextGenerator.js +7 -7
  75. package/dist/services/ProjectScaffold.js +76 -76
  76. package/dist/services/memory-router.js +35 -35
  77. package/dist/services/pattern-tracker.js +90 -90
  78. package/dist/services/semantic-search.js +2 -2
  79. package/package.json +105 -104
  80. package/standards/README.md +50 -50
  81. package/standards/experts/expert-routing.md +215 -215
  82. package/standards/general/code-quality.md +86 -86
  83. package/standards/general/memory-usage.md +205 -205
  84. package/standards/general/sync-workflow.md +235 -235
  85. package/standards/general/workflow.md +82 -82
  86. package/standards/hooks/mandatory-tracking.md +446 -446
  87. package/standards/infrastructure/cloud-database.md +287 -287
  88. package/standards/mcp/server-design.md +243 -243
  89. package/standards/mcp/tool-patterns.md +354 -354
  90. package/standards/skills/skill-structure.md +286 -286
  91. package/standards/skills/workflow-design.md +323 -323
  92. package/standards/tools/tool-design.md +297 -297
  93. package/templates/agents/architecture-expert.md +61 -61
  94. package/templates/agents/database-expert.md +62 -62
  95. package/templates/agents/documentation-expert.md +57 -57
  96. package/templates/agents/memory-expert.md +88 -88
  97. package/templates/agents/performance-expert.md +61 -61
  98. package/templates/agents/security-expert.md +59 -59
  99. package/templates/agents/ux-expert.md +63 -63
  100. package/templates/agents/worker.md +75 -75
  101. package/templates/ai-skills/SKILL_TEMPLATE.md +55 -55
  102. package/templates/claude-settings.json +72 -72
  103. package/templates/commands/experts.md +138 -138
  104. package/templates/hooks/README.md +158 -158
  105. package/templates/hooks/project.config.json.template +77 -77
  106. package/templates/hooks/settings.local.json.template +57 -57
  107. package/templates/memory-config.json +56 -56
  108. package/templates/memory-config.schema.json +212 -212
  109. package/templates/settings.json +58 -58
  110. package/templates/skills/continue.md +205 -205
  111. package/templates/workflows/business-improvement.md +264 -264
  112. package/templates/workflows/expert-review.md +153 -153
  113. package/templates/workflows/internal-app.md +245 -245
  114. package/templates/workflows/sync-docs.md +187 -187
package/package.json CHANGED
@@ -1,104 +1,105 @@
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
+ {
2
+ "name": "cmp-standards",
3
+ "version": "2.8.0-alpha",
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
+ "@types/better-sqlite3": "^7.6.13",
64
+ "better-sqlite3": "^11.0.0"
65
+ },
66
+ "peerDependencies": {
67
+ "drizzle-orm": ">=0.30.0",
68
+ "mysql2": ">=3.0.0"
69
+ },
70
+ "devDependencies": {
71
+ "@types/better-sqlite3": "^7.6.0",
72
+ "@types/cors": "^2.8.17",
73
+ "@types/eslint": "^8.56.0",
74
+ "@types/express": "^4.17.21",
75
+ "@types/node": "^20.11.0",
76
+ "@typescript-eslint/eslint-plugin": "^6.19.0",
77
+ "@typescript-eslint/parser": "^6.19.0",
78
+ "eslint": "^8.56.0",
79
+ "typescript": "^5.3.3",
80
+ "vitest": "^1.2.0"
81
+ },
82
+ "files": [
83
+ "dist",
84
+ "templates",
85
+ "standards",
86
+ "README.md"
87
+ ],
88
+ "exports": {
89
+ ".": {
90
+ "import": "./dist/index.js",
91
+ "types": "./dist/index.d.ts"
92
+ },
93
+ "./hooks": {
94
+ "import": "./dist/hooks/index.js",
95
+ "types": "./dist/hooks/index.d.ts"
96
+ },
97
+ "./cli": {
98
+ "import": "./dist/cli/index.js"
99
+ },
100
+ "./eslint": {
101
+ "import": "./dist/eslint/index.js",
102
+ "types": "./dist/eslint/index.d.ts"
103
+ }
104
+ }
105
+ }
@@ -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.