cmp-standards 2.4.0 → 2.6.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 (91) hide show
  1. package/README.md +633 -611
  2. package/dist/db/drizzle-client.d.ts +3 -3
  3. package/dist/db/drizzle-client.d.ts.map +1 -1
  4. package/dist/db/drizzle-client.js +57 -58
  5. package/dist/db/drizzle-client.js.map +1 -1
  6. package/dist/db/turso-client.js +11 -11
  7. package/dist/eslint/rules/no-async-useeffect.js +6 -6
  8. package/dist/hooks/cloud-pre-tool-use.js +20 -20
  9. package/dist/hooks/cloud-session-start.d.ts +15 -3
  10. package/dist/hooks/cloud-session-start.d.ts.map +1 -1
  11. package/dist/hooks/cloud-session-start.js +135 -8
  12. package/dist/hooks/cloud-session-start.js.map +1 -1
  13. package/dist/hooks/session-start.d.ts +2 -1
  14. package/dist/hooks/session-start.d.ts.map +1 -1
  15. package/dist/hooks/session-start.js +99 -74
  16. package/dist/hooks/session-start.js.map +1 -1
  17. package/dist/index.d.ts +4 -0
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +4 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/mcp/server.js +2 -2
  22. package/dist/mcp/server.js.map +1 -1
  23. package/dist/schema/plans.d.ts +194 -0
  24. package/dist/schema/plans.d.ts.map +1 -0
  25. package/dist/schema/plans.js +180 -0
  26. package/dist/schema/plans.js.map +1 -0
  27. package/dist/services/ContextGenerator.d.ts +16 -0
  28. package/dist/services/ContextGenerator.d.ts.map +1 -0
  29. package/dist/services/ContextGenerator.js +62 -0
  30. package/dist/services/ContextGenerator.js.map +1 -0
  31. package/dist/services/PlanManager.d.ts +99 -0
  32. package/dist/services/PlanManager.d.ts.map +1 -0
  33. package/dist/services/PlanManager.js +372 -0
  34. package/dist/services/PlanManager.js.map +1 -0
  35. package/dist/services/ProjectScaffold.js +76 -76
  36. package/dist/services/context-injector.d.ts +105 -0
  37. package/dist/services/context-injector.d.ts.map +1 -0
  38. package/dist/services/context-injector.js +357 -0
  39. package/dist/services/context-injector.js.map +1 -0
  40. package/dist/services/index.d.ts +15 -15
  41. package/dist/services/index.d.ts.map +1 -1
  42. package/dist/services/index.js +18 -20
  43. package/dist/services/index.js.map +1 -1
  44. package/dist/services/memory-router.d.ts +98 -0
  45. package/dist/services/memory-router.d.ts.map +1 -0
  46. package/dist/services/memory-router.js +373 -0
  47. package/dist/services/memory-router.js.map +1 -0
  48. package/dist/services/pattern-tracker.d.ts +93 -0
  49. package/dist/services/pattern-tracker.d.ts.map +1 -0
  50. package/dist/services/pattern-tracker.js +347 -0
  51. package/dist/services/pattern-tracker.js.map +1 -0
  52. package/dist/services/semantic-search.d.ts +33 -35
  53. package/dist/services/semantic-search.d.ts.map +1 -1
  54. package/dist/services/semantic-search.js +207 -165
  55. package/dist/services/semantic-search.js.map +1 -1
  56. package/package.json +100 -100
  57. package/standards/README.md +50 -50
  58. package/standards/experts/expert-routing.md +215 -215
  59. package/standards/general/code-quality.md +86 -86
  60. package/standards/general/memory-usage.md +205 -205
  61. package/standards/general/sync-workflow.md +235 -235
  62. package/standards/general/workflow.md +82 -82
  63. package/standards/hooks/mandatory-tracking.md +446 -446
  64. package/standards/infrastructure/cloud-database.md +287 -287
  65. package/standards/mcp/server-design.md +243 -243
  66. package/standards/mcp/tool-patterns.md +354 -354
  67. package/standards/skills/skill-structure.md +286 -286
  68. package/standards/skills/workflow-design.md +323 -323
  69. package/standards/tools/tool-design.md +297 -297
  70. package/templates/agents/architecture-expert.md +61 -61
  71. package/templates/agents/database-expert.md +62 -62
  72. package/templates/agents/documentation-expert.md +57 -57
  73. package/templates/agents/memory-expert.md +88 -88
  74. package/templates/agents/performance-expert.md +61 -61
  75. package/templates/agents/security-expert.md +59 -59
  76. package/templates/agents/ux-expert.md +63 -63
  77. package/templates/agents/worker.md +75 -75
  78. package/templates/ai-skills/SKILL_TEMPLATE.md +55 -55
  79. package/templates/claude-settings.json +72 -72
  80. package/templates/commands/experts.md +138 -138
  81. package/templates/hooks/README.md +158 -158
  82. package/templates/hooks/project.config.json.template +77 -77
  83. package/templates/hooks/settings.local.json.template +57 -57
  84. package/templates/memory-config.json +56 -56
  85. package/templates/memory-config.schema.json +212 -212
  86. package/templates/settings.json +58 -58
  87. package/templates/skills/continue.md +205 -205
  88. package/templates/workflows/business-improvement.md +264 -264
  89. package/templates/workflows/expert-review.md +153 -153
  90. package/templates/workflows/internal-app.md +245 -245
  91. package/templates/workflows/sync-docs.md +187 -187
package/package.json CHANGED
@@ -1,100 +1,100 @@
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.6.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
+ "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,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.