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
@@ -1,212 +1,212 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "MetaNautical Memory Configuration",
4
- "description": "Configuration schema for the MetaNautical Memory Plugin",
5
- "type": "object",
6
- "required": ["system", "domains"],
7
- "properties": {
8
- "system": {
9
- "type": "string",
10
- "description": "System identifier for data isolation (e.g., SWARMSCALE, PANEL)",
11
- "enum": ["SWARMSCALE", "PANEL", "ECOSYSTEM", "ELLIOT", "CONNECTA_HOTEL", "CONNECTA_CREW", "EASYCHARTER", "EASYYACHTS", "GMB", "CLIENT"]
12
- },
13
- "projectName": {
14
- "type": "string",
15
- "description": "Human-readable project name"
16
- },
17
- "description": {
18
- "type": "string",
19
- "description": "Brief project description"
20
- },
21
- "domains": {
22
- "type": "array",
23
- "description": "List of domain/module identifiers for this project",
24
- "items": {
25
- "type": "string"
26
- }
27
- },
28
- "guards": {
29
- "type": "object",
30
- "description": "Pre-tool guard configuration",
31
- "properties": {
32
- "enabled": {
33
- "type": "boolean",
34
- "default": true
35
- },
36
- "rules": {
37
- "type": "array",
38
- "items": {
39
- "type": "object",
40
- "required": ["id", "type", "filePattern", "message"],
41
- "properties": {
42
- "id": {
43
- "type": "string",
44
- "description": "Unique rule identifier"
45
- },
46
- "type": {
47
- "type": "string",
48
- "enum": ["block", "warn", "suggest"],
49
- "description": "Action type: block stops operation, warn allows with message, suggest shows optional advice"
50
- },
51
- "filePattern": {
52
- "type": "string",
53
- "description": "Glob pattern for matching files"
54
- },
55
- "contentTrigger": {
56
- "type": "string",
57
- "description": "Regex pattern for matching content"
58
- },
59
- "excludeFiles": {
60
- "type": "array",
61
- "items": { "type": "string" },
62
- "description": "Files to exclude from this rule"
63
- },
64
- "message": {
65
- "type": "string",
66
- "description": "Message to display when rule triggers"
67
- },
68
- "allowOverride": {
69
- "type": "boolean",
70
- "default": false,
71
- "description": "Whether @guard-ignore comment can bypass this rule"
72
- }
73
- }
74
- }
75
- }
76
- }
77
- },
78
- "embedding": {
79
- "type": "object",
80
- "description": "Embedding-based progressive disclosure configuration",
81
- "properties": {
82
- "enabled": {
83
- "type": "boolean",
84
- "default": true
85
- },
86
- "threshold": {
87
- "type": "number",
88
- "minimum": 0,
89
- "maximum": 1,
90
- "default": 0.60,
91
- "description": "Minimum similarity threshold for section matching"
92
- },
93
- "maxSections": {
94
- "type": "integer",
95
- "minimum": 1,
96
- "maximum": 10,
97
- "default": 3,
98
- "description": "Maximum number of sections to inject"
99
- },
100
- "prioritizeCritical": {
101
- "type": "boolean",
102
- "default": true,
103
- "description": "Whether to prioritize CRITICAL sections over similarity"
104
- },
105
- "providers": {
106
- "type": "array",
107
- "items": {
108
- "type": "string",
109
- "enum": ["openai", "gemini"]
110
- },
111
- "description": "Embedding providers in order of preference"
112
- }
113
- }
114
- },
115
- "checkpoint": {
116
- "type": "object",
117
- "description": "Memory checkpoint configuration",
118
- "properties": {
119
- "enabled": {
120
- "type": "boolean",
121
- "default": true
122
- },
123
- "minLinesChanged": {
124
- "type": "integer",
125
- "minimum": 1,
126
- "default": 20,
127
- "description": "Minimum lines changed to trigger checkpoint"
128
- },
129
- "criticalPaths": {
130
- "type": "array",
131
- "items": { "type": "string" },
132
- "description": "Glob patterns for critical paths that always trigger checkpoint"
133
- },
134
- "excludePaths": {
135
- "type": "array",
136
- "items": { "type": "string" },
137
- "description": "Glob patterns for paths to exclude from checkpoints"
138
- },
139
- "autoTagging": {
140
- "type": "boolean",
141
- "default": true,
142
- "description": "Automatically tag checkpoints based on content"
143
- },
144
- "patternDetection": {
145
- "type": "boolean",
146
- "default": true,
147
- "description": "Enable pattern detection for auto-improvement"
148
- }
149
- }
150
- },
151
- "autoImprovement": {
152
- "type": "object",
153
- "description": "Auto-improvement system configuration",
154
- "properties": {
155
- "enabled": {
156
- "type": "boolean",
157
- "default": true
158
- },
159
- "violationThreshold": {
160
- "type": "integer",
161
- "minimum": 1,
162
- "default": 3,
163
- "description": "Number of violations before auto-improvement triggers"
164
- },
165
- "generateEslintRules": {
166
- "type": "boolean",
167
- "default": true,
168
- "description": "Automatically generate ESLint rules for repeated violations"
169
- },
170
- "createMemoryEntries": {
171
- "type": "boolean",
172
- "default": true,
173
- "description": "Create memory entries for patterns"
174
- },
175
- "updateClaudeMd": {
176
- "type": "boolean",
177
- "default": false,
178
- "description": "Automatically update CLAUDE.md with new rules"
179
- }
180
- }
181
- },
182
- "sessionContext": {
183
- "type": "object",
184
- "description": "Session start context configuration",
185
- "properties": {
186
- "loadMemoriesOnStart": {
187
- "type": "boolean",
188
- "default": true,
189
- "description": "Load relevant memories at session start"
190
- },
191
- "maxMemoriesLoaded": {
192
- "type": "integer",
193
- "minimum": 0,
194
- "maximum": 20,
195
- "default": 5,
196
- "description": "Maximum memories to load per session"
197
- },
198
- "cacheTimeout": {
199
- "type": "integer",
200
- "minimum": 0,
201
- "default": 3600,
202
- "description": "Cache timeout in seconds"
203
- },
204
- "showAvailableCommands": {
205
- "type": "boolean",
206
- "default": true,
207
- "description": "Show available commands at session start"
208
- }
209
- }
210
- }
211
- }
212
- }
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "MetaNautical Memory Configuration",
4
+ "description": "Configuration schema for the MetaNautical Memory Plugin",
5
+ "type": "object",
6
+ "required": ["system", "domains"],
7
+ "properties": {
8
+ "system": {
9
+ "type": "string",
10
+ "description": "System identifier for data isolation (e.g., SWARMSCALE, PANEL)",
11
+ "enum": ["SWARMSCALE", "PANEL", "ECOSYSTEM", "ELLIOT", "CONNECTA_HOTEL", "CONNECTA_CREW", "EASYCHARTER", "EASYYACHTS", "GMB", "CLIENT"]
12
+ },
13
+ "projectName": {
14
+ "type": "string",
15
+ "description": "Human-readable project name"
16
+ },
17
+ "description": {
18
+ "type": "string",
19
+ "description": "Brief project description"
20
+ },
21
+ "domains": {
22
+ "type": "array",
23
+ "description": "List of domain/module identifiers for this project",
24
+ "items": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "guards": {
29
+ "type": "object",
30
+ "description": "Pre-tool guard configuration",
31
+ "properties": {
32
+ "enabled": {
33
+ "type": "boolean",
34
+ "default": true
35
+ },
36
+ "rules": {
37
+ "type": "array",
38
+ "items": {
39
+ "type": "object",
40
+ "required": ["id", "type", "filePattern", "message"],
41
+ "properties": {
42
+ "id": {
43
+ "type": "string",
44
+ "description": "Unique rule identifier"
45
+ },
46
+ "type": {
47
+ "type": "string",
48
+ "enum": ["block", "warn", "suggest"],
49
+ "description": "Action type: block stops operation, warn allows with message, suggest shows optional advice"
50
+ },
51
+ "filePattern": {
52
+ "type": "string",
53
+ "description": "Glob pattern for matching files"
54
+ },
55
+ "contentTrigger": {
56
+ "type": "string",
57
+ "description": "Regex pattern for matching content"
58
+ },
59
+ "excludeFiles": {
60
+ "type": "array",
61
+ "items": { "type": "string" },
62
+ "description": "Files to exclude from this rule"
63
+ },
64
+ "message": {
65
+ "type": "string",
66
+ "description": "Message to display when rule triggers"
67
+ },
68
+ "allowOverride": {
69
+ "type": "boolean",
70
+ "default": false,
71
+ "description": "Whether @guard-ignore comment can bypass this rule"
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ },
78
+ "embedding": {
79
+ "type": "object",
80
+ "description": "Embedding-based progressive disclosure configuration",
81
+ "properties": {
82
+ "enabled": {
83
+ "type": "boolean",
84
+ "default": true
85
+ },
86
+ "threshold": {
87
+ "type": "number",
88
+ "minimum": 0,
89
+ "maximum": 1,
90
+ "default": 0.60,
91
+ "description": "Minimum similarity threshold for section matching"
92
+ },
93
+ "maxSections": {
94
+ "type": "integer",
95
+ "minimum": 1,
96
+ "maximum": 10,
97
+ "default": 3,
98
+ "description": "Maximum number of sections to inject"
99
+ },
100
+ "prioritizeCritical": {
101
+ "type": "boolean",
102
+ "default": true,
103
+ "description": "Whether to prioritize CRITICAL sections over similarity"
104
+ },
105
+ "providers": {
106
+ "type": "array",
107
+ "items": {
108
+ "type": "string",
109
+ "enum": ["openai", "gemini"]
110
+ },
111
+ "description": "Embedding providers in order of preference"
112
+ }
113
+ }
114
+ },
115
+ "checkpoint": {
116
+ "type": "object",
117
+ "description": "Memory checkpoint configuration",
118
+ "properties": {
119
+ "enabled": {
120
+ "type": "boolean",
121
+ "default": true
122
+ },
123
+ "minLinesChanged": {
124
+ "type": "integer",
125
+ "minimum": 1,
126
+ "default": 20,
127
+ "description": "Minimum lines changed to trigger checkpoint"
128
+ },
129
+ "criticalPaths": {
130
+ "type": "array",
131
+ "items": { "type": "string" },
132
+ "description": "Glob patterns for critical paths that always trigger checkpoint"
133
+ },
134
+ "excludePaths": {
135
+ "type": "array",
136
+ "items": { "type": "string" },
137
+ "description": "Glob patterns for paths to exclude from checkpoints"
138
+ },
139
+ "autoTagging": {
140
+ "type": "boolean",
141
+ "default": true,
142
+ "description": "Automatically tag checkpoints based on content"
143
+ },
144
+ "patternDetection": {
145
+ "type": "boolean",
146
+ "default": true,
147
+ "description": "Enable pattern detection for auto-improvement"
148
+ }
149
+ }
150
+ },
151
+ "autoImprovement": {
152
+ "type": "object",
153
+ "description": "Auto-improvement system configuration",
154
+ "properties": {
155
+ "enabled": {
156
+ "type": "boolean",
157
+ "default": true
158
+ },
159
+ "violationThreshold": {
160
+ "type": "integer",
161
+ "minimum": 1,
162
+ "default": 3,
163
+ "description": "Number of violations before auto-improvement triggers"
164
+ },
165
+ "generateEslintRules": {
166
+ "type": "boolean",
167
+ "default": true,
168
+ "description": "Automatically generate ESLint rules for repeated violations"
169
+ },
170
+ "createMemoryEntries": {
171
+ "type": "boolean",
172
+ "default": true,
173
+ "description": "Create memory entries for patterns"
174
+ },
175
+ "updateClaudeMd": {
176
+ "type": "boolean",
177
+ "default": false,
178
+ "description": "Automatically update CLAUDE.md with new rules"
179
+ }
180
+ }
181
+ },
182
+ "sessionContext": {
183
+ "type": "object",
184
+ "description": "Session start context configuration",
185
+ "properties": {
186
+ "loadMemoriesOnStart": {
187
+ "type": "boolean",
188
+ "default": true,
189
+ "description": "Load relevant memories at session start"
190
+ },
191
+ "maxMemoriesLoaded": {
192
+ "type": "integer",
193
+ "minimum": 0,
194
+ "maximum": 20,
195
+ "default": 5,
196
+ "description": "Maximum memories to load per session"
197
+ },
198
+ "cacheTimeout": {
199
+ "type": "integer",
200
+ "minimum": 0,
201
+ "default": 3600,
202
+ "description": "Cache timeout in seconds"
203
+ },
204
+ "showAvailableCommands": {
205
+ "type": "boolean",
206
+ "default": true,
207
+ "description": "Show available commands at session start"
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
@@ -1,58 +1,58 @@
1
- {
2
- "$comment": "Template settings.json for MetaNautical Memory Plugin",
3
- "claudeMdPath": "CLAUDE.md",
4
- "mcpConfigPath": ".claude/mcp-minimal.json",
5
- "hooks": {
6
- "PreToolUse": [
7
- {
8
- "matcher": "Task",
9
- "hooks": [
10
- {
11
- "type": "command",
12
- "command": "npx tsx .claude/hooks/pre-tool-use-embedding.ts"
13
- }
14
- ]
15
- },
16
- {
17
- "matcher": "Edit",
18
- "hooks": [
19
- {
20
- "type": "prompt",
21
- "prompt": "file://.claude/hooks/pre-tool-use-guards.md"
22
- }
23
- ]
24
- },
25
- {
26
- "matcher": "Write",
27
- "hooks": [
28
- {
29
- "type": "prompt",
30
- "prompt": "file://.claude/hooks/pre-tool-use-guards.md"
31
- }
32
- ]
33
- }
34
- ],
35
- "SessionStart": [
36
- {
37
- "matcher": "",
38
- "hooks": [
39
- {
40
- "type": "prompt",
41
- "prompt": "file://.claude/hooks/session-start-context-loader.md"
42
- }
43
- ]
44
- }
45
- ]
46
- },
47
- "plugins": {
48
- "metanautical-memory": {
49
- "version": "1.0.0",
50
- "enabled": true,
51
- "configPath": ".claude/memory-config.json"
52
- },
53
- "claude-mem": {
54
- "autoSync": true,
55
- "syncOnSessionStart": true
56
- }
57
- }
58
- }
1
+ {
2
+ "$comment": "Template settings.json for MetaNautical Memory Plugin",
3
+ "claudeMdPath": "CLAUDE.md",
4
+ "mcpConfigPath": ".claude/mcp-minimal.json",
5
+ "hooks": {
6
+ "PreToolUse": [
7
+ {
8
+ "matcher": "Task",
9
+ "hooks": [
10
+ {
11
+ "type": "command",
12
+ "command": "npx tsx .claude/hooks/pre-tool-use-embedding.ts"
13
+ }
14
+ ]
15
+ },
16
+ {
17
+ "matcher": "Edit",
18
+ "hooks": [
19
+ {
20
+ "type": "prompt",
21
+ "prompt": "file://.claude/hooks/pre-tool-use-guards.md"
22
+ }
23
+ ]
24
+ },
25
+ {
26
+ "matcher": "Write",
27
+ "hooks": [
28
+ {
29
+ "type": "prompt",
30
+ "prompt": "file://.claude/hooks/pre-tool-use-guards.md"
31
+ }
32
+ ]
33
+ }
34
+ ],
35
+ "SessionStart": [
36
+ {
37
+ "matcher": "",
38
+ "hooks": [
39
+ {
40
+ "type": "prompt",
41
+ "prompt": "file://.claude/hooks/session-start-context-loader.md"
42
+ }
43
+ ]
44
+ }
45
+ ]
46
+ },
47
+ "plugins": {
48
+ "metanautical-memory": {
49
+ "version": "1.0.0",
50
+ "enabled": true,
51
+ "configPath": ".claude/memory-config.json"
52
+ },
53
+ "claude-mem": {
54
+ "autoSync": true,
55
+ "syncOnSessionStart": true
56
+ }
57
+ }
58
+ }