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.
- package/README.md +633 -633
- package/dist/cache/EmbeddingCache.d.ts +109 -0
- package/dist/cache/EmbeddingCache.d.ts.map +1 -0
- package/dist/cache/EmbeddingCache.js +239 -0
- package/dist/cache/EmbeddingCache.js.map +1 -0
- package/dist/cache/index.d.ts +6 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/index.js +6 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/cli/index.js +0 -0
- package/dist/db/turso-client.js +11 -11
- package/dist/eslint/rules/no-async-useeffect.js +6 -6
- package/dist/events/EventBus.d.ts +87 -0
- package/dist/events/EventBus.d.ts.map +1 -0
- package/dist/events/EventBus.js +200 -0
- package/dist/events/EventBus.js.map +1 -0
- package/dist/events/index.d.ts +7 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +9 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/types.d.ts +989 -0
- package/dist/events/types.d.ts.map +1 -0
- package/dist/events/types.js +136 -0
- package/dist/events/types.js.map +1 -0
- package/dist/experts/ConsensusEngine.d.ts +57 -0
- package/dist/experts/ConsensusEngine.d.ts.map +1 -0
- package/dist/experts/ConsensusEngine.js +146 -0
- package/dist/experts/ConsensusEngine.js.map +1 -0
- package/dist/experts/ExpertPanelService.d.ts +84 -0
- package/dist/experts/ExpertPanelService.d.ts.map +1 -0
- package/dist/experts/ExpertPanelService.js +204 -0
- package/dist/experts/ExpertPanelService.js.map +1 -0
- package/dist/experts/ExpertRouter.d.ts +68 -0
- package/dist/experts/ExpertRouter.d.ts.map +1 -0
- package/dist/experts/ExpertRouter.js +374 -0
- package/dist/experts/ExpertRouter.js.map +1 -0
- package/dist/experts/VoteCollector.d.ts +58 -0
- package/dist/experts/VoteCollector.d.ts.map +1 -0
- package/dist/experts/VoteCollector.js +146 -0
- package/dist/experts/VoteCollector.js.map +1 -0
- package/dist/experts/index.d.ts +9 -0
- package/dist/experts/index.d.ts.map +1 -0
- package/dist/experts/index.js +13 -0
- package/dist/experts/index.js.map +1 -0
- package/dist/hooks/cloud-pre-tool-use.js +20 -20
- package/dist/hooks/expert-review.d.ts +74 -0
- package/dist/hooks/expert-review.d.ts.map +1 -0
- package/dist/hooks/expert-review.js +220 -0
- package/dist/hooks/expert-review.js.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/dist/performance/Debouncer.d.ts +91 -0
- package/dist/performance/Debouncer.d.ts.map +1 -0
- package/dist/performance/Debouncer.js +198 -0
- package/dist/performance/Debouncer.js.map +1 -0
- package/dist/performance/MemoryDecay.d.ts +82 -0
- package/dist/performance/MemoryDecay.d.ts.map +1 -0
- package/dist/performance/MemoryDecay.js +153 -0
- package/dist/performance/MemoryDecay.js.map +1 -0
- package/dist/performance/index.d.ts +7 -0
- package/dist/performance/index.d.ts.map +1 -0
- package/dist/performance/index.js +9 -0
- package/dist/performance/index.js.map +1 -0
- package/dist/schema/expert-types.d.ts +395 -0
- package/dist/schema/expert-types.d.ts.map +1 -0
- package/dist/schema/expert-types.js +250 -0
- package/dist/schema/expert-types.js.map +1 -0
- package/dist/services/ContextGenerator.js +7 -7
- package/dist/services/ProjectScaffold.js +76 -76
- package/dist/services/memory-router.js +35 -35
- package/dist/services/pattern-tracker.js +90 -90
- package/dist/services/semantic-search.js +2 -2
- package/package.json +105 -104
- package/standards/README.md +50 -50
- package/standards/experts/expert-routing.md +215 -215
- package/standards/general/code-quality.md +86 -86
- package/standards/general/memory-usage.md +205 -205
- package/standards/general/sync-workflow.md +235 -235
- package/standards/general/workflow.md +82 -82
- package/standards/hooks/mandatory-tracking.md +446 -446
- package/standards/infrastructure/cloud-database.md +287 -287
- package/standards/mcp/server-design.md +243 -243
- package/standards/mcp/tool-patterns.md +354 -354
- package/standards/skills/skill-structure.md +286 -286
- package/standards/skills/workflow-design.md +323 -323
- package/standards/tools/tool-design.md +297 -297
- package/templates/agents/architecture-expert.md +61 -61
- package/templates/agents/database-expert.md +62 -62
- package/templates/agents/documentation-expert.md +57 -57
- package/templates/agents/memory-expert.md +88 -88
- package/templates/agents/performance-expert.md +61 -61
- package/templates/agents/security-expert.md +59 -59
- package/templates/agents/ux-expert.md +63 -63
- package/templates/agents/worker.md +75 -75
- package/templates/ai-skills/SKILL_TEMPLATE.md +55 -55
- package/templates/claude-settings.json +72 -72
- package/templates/commands/experts.md +138 -138
- package/templates/hooks/README.md +158 -158
- package/templates/hooks/project.config.json.template +77 -77
- package/templates/hooks/settings.local.json.template +57 -57
- package/templates/memory-config.json +56 -56
- package/templates/memory-config.schema.json +212 -212
- package/templates/settings.json +58 -58
- package/templates/skills/continue.md +205 -205
- package/templates/workflows/business-improvement.md +264 -264
- package/templates/workflows/expert-review.md +153 -153
- package/templates/workflows/internal-app.md +245 -245
- 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
|
+
}
|
package/templates/settings.json
CHANGED
|
@@ -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
|
+
}
|