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
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file EventBus - In-memory event bus for cmp-standards v2.8
|
|
3
|
+
* @description Decoupled event-driven architecture for expert panel orchestration
|
|
4
|
+
*
|
|
5
|
+
* Features:
|
|
6
|
+
* - Type-safe event publishing and subscribing
|
|
7
|
+
* - Parallel handler execution with Promise.allSettled
|
|
8
|
+
* - Event history for debugging
|
|
9
|
+
* - Handler timeout protection
|
|
10
|
+
* - Correlation ID tracking for request tracing
|
|
11
|
+
*/
|
|
12
|
+
import { createEventMetadata, } from './types.js';
|
|
13
|
+
const DEFAULT_CONFIG = {
|
|
14
|
+
historyLimit: 100,
|
|
15
|
+
handlerTimeout: 5000,
|
|
16
|
+
debug: false,
|
|
17
|
+
};
|
|
18
|
+
// =============================================================================
|
|
19
|
+
// EventBus Implementation
|
|
20
|
+
// =============================================================================
|
|
21
|
+
export class EventBus {
|
|
22
|
+
handlers = {};
|
|
23
|
+
history = [];
|
|
24
|
+
config;
|
|
25
|
+
constructor(config = {}) {
|
|
26
|
+
this.config = { ...DEFAULT_CONFIG, ...config };
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Subscribe to an event type
|
|
30
|
+
* @returns Unsubscribe function
|
|
31
|
+
*/
|
|
32
|
+
subscribe(eventType, handler) {
|
|
33
|
+
if (!this.handlers[eventType]) {
|
|
34
|
+
this.handlers[eventType] = [];
|
|
35
|
+
}
|
|
36
|
+
// Type assertion needed due to TypeScript limitations with mapped types
|
|
37
|
+
const handlers = this.handlers[eventType];
|
|
38
|
+
handlers.push(handler);
|
|
39
|
+
if (this.config.debug) {
|
|
40
|
+
console.log(`[EventBus] Subscribed to ${eventType}`);
|
|
41
|
+
}
|
|
42
|
+
// Return unsubscribe function
|
|
43
|
+
return () => {
|
|
44
|
+
const index = handlers.indexOf(handler);
|
|
45
|
+
if (index > -1) {
|
|
46
|
+
handlers.splice(index, 1);
|
|
47
|
+
if (this.config.debug) {
|
|
48
|
+
console.log(`[EventBus] Unsubscribed from ${eventType}`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Publish an event to all subscribers
|
|
55
|
+
* Handlers are executed in parallel with timeout protection
|
|
56
|
+
*/
|
|
57
|
+
async publish(event) {
|
|
58
|
+
const startTime = Date.now();
|
|
59
|
+
// Add to history
|
|
60
|
+
this.addToHistory(event);
|
|
61
|
+
const handlers = this.handlers[event.type];
|
|
62
|
+
if (!handlers || handlers.length === 0) {
|
|
63
|
+
if (this.config.debug) {
|
|
64
|
+
console.log(`[EventBus] No handlers for ${event.type}`);
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
success: true,
|
|
68
|
+
handlerResults: [],
|
|
69
|
+
duration: Date.now() - startTime,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
if (this.config.debug) {
|
|
73
|
+
console.log(`[EventBus] Publishing ${event.type} to ${handlers.length} handlers`);
|
|
74
|
+
}
|
|
75
|
+
// Execute all handlers in parallel with timeout
|
|
76
|
+
const handlerPromises = handlers.map(handler => this.executeWithTimeout(handler, event));
|
|
77
|
+
const results = await Promise.allSettled(handlerPromises);
|
|
78
|
+
const failedCount = results.filter(r => r.status === 'rejected').length;
|
|
79
|
+
const duration = Date.now() - startTime;
|
|
80
|
+
if (this.config.debug) {
|
|
81
|
+
console.log(`[EventBus] ${event.type} completed in ${duration}ms ` +
|
|
82
|
+
`(${handlers.length - failedCount}/${handlers.length} succeeded)`);
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
success: failedCount === 0,
|
|
86
|
+
handlerResults: results,
|
|
87
|
+
duration,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Publish and wait for all handlers, throwing on any failure
|
|
92
|
+
*/
|
|
93
|
+
async publishStrict(event) {
|
|
94
|
+
const result = await this.publish(event);
|
|
95
|
+
if (!result.success) {
|
|
96
|
+
const errors = result.handlerResults
|
|
97
|
+
.filter((r) => r.status === 'rejected')
|
|
98
|
+
.map(r => r.reason);
|
|
99
|
+
throw new AggregateError(errors, `Event ${event.type} failed with ${errors.length} handler errors`);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Execute handler with timeout protection
|
|
104
|
+
*/
|
|
105
|
+
async executeWithTimeout(handler, event) {
|
|
106
|
+
return new Promise((resolve, reject) => {
|
|
107
|
+
const timeoutId = setTimeout(() => {
|
|
108
|
+
reject(new Error(`Handler timeout after ${this.config.handlerTimeout}ms`));
|
|
109
|
+
}, this.config.handlerTimeout);
|
|
110
|
+
Promise.resolve(handler(event))
|
|
111
|
+
.then(() => {
|
|
112
|
+
clearTimeout(timeoutId);
|
|
113
|
+
resolve();
|
|
114
|
+
})
|
|
115
|
+
.catch(error => {
|
|
116
|
+
clearTimeout(timeoutId);
|
|
117
|
+
reject(error);
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Add event to history with limit enforcement
|
|
123
|
+
*/
|
|
124
|
+
addToHistory(event) {
|
|
125
|
+
this.history.push(event);
|
|
126
|
+
if (this.history.length > this.config.historyLimit) {
|
|
127
|
+
this.history.shift();
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Get event history, optionally filtered by type
|
|
132
|
+
*/
|
|
133
|
+
getHistory(type) {
|
|
134
|
+
if (!type)
|
|
135
|
+
return [...this.history];
|
|
136
|
+
return this.history.filter(e => e.type === type);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Get events by correlation ID (for request tracing)
|
|
140
|
+
*/
|
|
141
|
+
getByCorrelationId(correlationId) {
|
|
142
|
+
return this.history.filter(e => e.metadata.correlationId === correlationId);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Clear all handlers and history
|
|
146
|
+
*/
|
|
147
|
+
clear() {
|
|
148
|
+
this.handlers = {};
|
|
149
|
+
this.history = [];
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Get handler count for a specific event type
|
|
153
|
+
*/
|
|
154
|
+
getHandlerCount(type) {
|
|
155
|
+
return this.handlers[type]?.length ?? 0;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Check if there are any handlers for an event type
|
|
159
|
+
*/
|
|
160
|
+
hasHandlers(type) {
|
|
161
|
+
return this.getHandlerCount(type) > 0;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
// =============================================================================
|
|
165
|
+
// Singleton Instance
|
|
166
|
+
// =============================================================================
|
|
167
|
+
let globalEventBus = null;
|
|
168
|
+
/**
|
|
169
|
+
* Get or create the global EventBus instance
|
|
170
|
+
*/
|
|
171
|
+
export function getEventBus(config) {
|
|
172
|
+
if (!globalEventBus) {
|
|
173
|
+
globalEventBus = new EventBus(config);
|
|
174
|
+
}
|
|
175
|
+
return globalEventBus;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Reset the global EventBus (useful for testing)
|
|
179
|
+
*/
|
|
180
|
+
export function resetEventBus() {
|
|
181
|
+
if (globalEventBus) {
|
|
182
|
+
globalEventBus.clear();
|
|
183
|
+
}
|
|
184
|
+
globalEventBus = null;
|
|
185
|
+
}
|
|
186
|
+
// =============================================================================
|
|
187
|
+
// Helper Functions
|
|
188
|
+
// =============================================================================
|
|
189
|
+
/**
|
|
190
|
+
* Create and publish an event in one call
|
|
191
|
+
*/
|
|
192
|
+
export async function emitEvent(eventData, source, correlationId) {
|
|
193
|
+
const bus = getEventBus();
|
|
194
|
+
const event = {
|
|
195
|
+
...eventData,
|
|
196
|
+
metadata: createEventMetadata(source, correlationId),
|
|
197
|
+
};
|
|
198
|
+
await bus.publish(event);
|
|
199
|
+
}
|
|
200
|
+
//# sourceMappingURL=EventBus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventBus.js","sourceRoot":"","sources":["../../src/events/EventBus.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAKL,mBAAmB,GACpB,MAAM,YAAY,CAAA;AAenB,MAAM,cAAc,GAAmB;IACrC,YAAY,EAAE,GAAG;IACjB,cAAc,EAAE,IAAI;IACpB,KAAK,EAAE,KAAK;CACb,CAAA;AAED,gFAAgF;AAChF,0BAA0B;AAC1B,gFAAgF;AAEhF,MAAM,OAAO,QAAQ;IACX,QAAQ,GAAoB,EAAE,CAAA;IAC9B,OAAO,GAAY,EAAE,CAAA;IACrB,MAAM,CAAgB;IAE9B,YAAY,SAAkC,EAAE;QAC9C,IAAI,CAAC,MAAM,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,MAAM,EAAE,CAAA;IAChD,CAAC;IAED;;;OAGG;IACH,S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,EAAE,CAAA;IACxB,CAAC;IACD,cAAc,GAAG,IAAI,CAAA;AACvB,CAAC;AAED,gFAAgF;AAChF,mBAAmB;AACnB,gFAAgF;AAEhF;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAC7B,SAAkC,EAClC,MAAc,EACd,aAAsB;IAEtB,MAAM,GAAG,GAAG,WAAW,EAAE,CAAA;IACzB,MAAM,KAAK,GAAG;QACZ,GAAG,SAAS;QACZ,QAAQ,EAAE,mBAAmB,CAAC,MAAM,EAAE,aAAa,CAAC;KACjC,CAAA;IAErB,MAAM,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AAC1B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Events Module - cmp-standards v2.8
|
|
3
|
+
* @description Event-driven architecture for expert panel orchestration
|
|
4
|
+
*/
|
|
5
|
+
export * from './types.js';
|
|
6
|
+
export { EventBus, EventBusConfig, getEventBus, resetEventBus, emitEvent, } from './EventBus.js';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,YAAY,CAAA;AAG1B,OAAO,EACL,QAAQ,EACR,cAAc,EACd,WAAW,EACX,aAAa,EACb,SAAS,GACV,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Events Module - cmp-standards v2.8
|
|
3
|
+
* @description Event-driven architecture for expert panel orchestration
|
|
4
|
+
*/
|
|
5
|
+
// Types
|
|
6
|
+
export * from './types.js';
|
|
7
|
+
// EventBus
|
|
8
|
+
export { EventBus, getEventBus, resetEventBus, emitEvent, } from './EventBus.js';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,QAAQ;AACR,cAAc,YAAY,CAAA;AAE1B,WAAW;AACX,OAAO,EACL,QAAQ,EAER,WAAW,EACX,aAAa,EACb,SAAS,GACV,MAAM,eAAe,CAAA"}
|