lexic-mcp 0.1.0 → 0.1.2
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 +10 -1
- package/dist/bundle.cjs +49 -0
- package/dist/index.js +5 -8
- package/package.json +6 -5
- package/dist/client/lexic-api.d.ts +0 -65
- package/dist/client/lexic-api.d.ts.map +0 -1
- package/dist/client/lexic-api.js +0 -253
- package/dist/client/lexic-api.js.map +0 -1
- package/dist/config.d.ts +0 -14
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -30
- package/dist/config.js.map +0 -1
- package/dist/core/admin.d.ts +0 -74
- package/dist/core/admin.d.ts.map +0 -1
- package/dist/core/admin.js +0 -103
- package/dist/core/admin.js.map +0 -1
- package/dist/core/context.d.ts +0 -28
- package/dist/core/context.d.ts.map +0 -1
- package/dist/core/context.js +0 -76
- package/dist/core/context.js.map +0 -1
- package/dist/core/index.d.ts +0 -17
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -50
- package/dist/core/index.js.map +0 -1
- package/dist/core/query.d.ts +0 -47
- package/dist/core/query.d.ts.map +0 -1
- package/dist/core/query.js +0 -55
- package/dist/core/query.js.map +0 -1
- package/dist/core/store.d.ts +0 -35
- package/dist/core/store.d.ts.map +0 -1
- package/dist/core/store.js +0 -55
- package/dist/core/store.js.map +0 -1
- package/dist/core/types.d.ts +0 -57
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -7
- package/dist/core/types.js.map +0 -1
- package/dist/domains/development/index.d.ts +0 -8
- package/dist/domains/development/index.d.ts.map +0 -1
- package/dist/domains/development/index.js +0 -18
- package/dist/domains/development/index.js.map +0 -1
- package/dist/domains/development/tools.d.ts +0 -97
- package/dist/domains/development/tools.d.ts.map +0 -1
- package/dist/domains/development/tools.js +0 -140
- package/dist/domains/development/tools.js.map +0 -1
- package/dist/domains/index.d.ts +0 -9
- package/dist/domains/index.d.ts.map +0 -1
- package/dist/domains/index.js +0 -8
- package/dist/domains/index.js.map +0 -1
- package/dist/domains/loader.d.ts +0 -34
- package/dist/domains/loader.d.ts.map +0 -1
- package/dist/domains/loader.js +0 -74
- package/dist/domains/loader.js.map +0 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -27
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/errors.js +0 -48
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -20
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -63
- package/dist/utils/logger.js.map +0 -1
- package/templates/README.md +0 -12
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Development Domain Tools
|
|
3
|
-
*
|
|
4
|
-
* See .claude/specs/IMPLEMENTATION.md Section 5
|
|
5
|
-
*/
|
|
6
|
-
import type { LexicClient } from '../../client/lexic-api.js';
|
|
7
|
-
export interface LogDecisionParams {
|
|
8
|
-
feature: string;
|
|
9
|
-
decision: string;
|
|
10
|
-
rationale: string;
|
|
11
|
-
alternatives?: Array<{
|
|
12
|
-
option: string;
|
|
13
|
-
whyRejected: string;
|
|
14
|
-
}>;
|
|
15
|
-
revisitIf?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface FeatureContextResult {
|
|
18
|
-
feature: string;
|
|
19
|
-
summary: string;
|
|
20
|
-
decisions: Array<{
|
|
21
|
-
title: string;
|
|
22
|
-
date: string;
|
|
23
|
-
excerpt: string;
|
|
24
|
-
}>;
|
|
25
|
-
architecture: Array<{
|
|
26
|
-
title: string;
|
|
27
|
-
excerpt: string;
|
|
28
|
-
}>;
|
|
29
|
-
recentActivity: Array<{
|
|
30
|
-
title: string;
|
|
31
|
-
date: string;
|
|
32
|
-
}>;
|
|
33
|
-
}
|
|
34
|
-
export declare function createLogDecisionTool(client: LexicClient): {
|
|
35
|
-
name: string;
|
|
36
|
-
description: string;
|
|
37
|
-
inputSchema: {
|
|
38
|
-
type: string;
|
|
39
|
-
properties: {
|
|
40
|
-
feature: {
|
|
41
|
-
type: string;
|
|
42
|
-
description: string;
|
|
43
|
-
};
|
|
44
|
-
decision: {
|
|
45
|
-
type: string;
|
|
46
|
-
description: string;
|
|
47
|
-
};
|
|
48
|
-
rationale: {
|
|
49
|
-
type: string;
|
|
50
|
-
description: string;
|
|
51
|
-
};
|
|
52
|
-
alternatives: {
|
|
53
|
-
type: string;
|
|
54
|
-
items: {
|
|
55
|
-
type: string;
|
|
56
|
-
properties: {
|
|
57
|
-
option: {
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
whyRejected: {
|
|
61
|
-
type: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
description: string;
|
|
66
|
-
};
|
|
67
|
-
revisitIf: {
|
|
68
|
-
type: string;
|
|
69
|
-
description: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
required: string[];
|
|
73
|
-
};
|
|
74
|
-
handler: (params: LogDecisionParams) => Promise<{
|
|
75
|
-
success: boolean;
|
|
76
|
-
noteId: string | undefined;
|
|
77
|
-
message: string;
|
|
78
|
-
}>;
|
|
79
|
-
};
|
|
80
|
-
export declare function createGetFeatureContextTool(client: LexicClient): {
|
|
81
|
-
name: string;
|
|
82
|
-
description: string;
|
|
83
|
-
inputSchema: {
|
|
84
|
-
type: string;
|
|
85
|
-
properties: {
|
|
86
|
-
feature: {
|
|
87
|
-
type: string;
|
|
88
|
-
description: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
required: string[];
|
|
92
|
-
};
|
|
93
|
-
handler: (params: {
|
|
94
|
-
feature: string;
|
|
95
|
-
}) => Promise<FeatureContextResult>;
|
|
96
|
-
};
|
|
97
|
-
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/domains/development/tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,KAAK,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC,CAAC;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,KAAK,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;IACH,YAAY,EAAE,KAAK,CAAC;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;IACH,cAAc,EAAE,KAAK,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,CAAC,CAAC;CACJ;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAqC7B,iBAAiB;;;;;EAiB5C;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,WAAW;;;;;;;;;;;;;sBAcnC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAG,OAAO,CAAC,oBAAoB,CAAC;EAqC9E"}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Development Domain Tools
|
|
3
|
-
*
|
|
4
|
-
* See .claude/specs/IMPLEMENTATION.md Section 5
|
|
5
|
-
*/
|
|
6
|
-
export function createLogDecisionTool(client) {
|
|
7
|
-
return {
|
|
8
|
-
name: 'dev_log_decision',
|
|
9
|
-
description: 'Log a development decision. Use this when making architectural choices, selecting libraries, or deciding on implementation approaches.',
|
|
10
|
-
inputSchema: {
|
|
11
|
-
type: 'object',
|
|
12
|
-
properties: {
|
|
13
|
-
feature: {
|
|
14
|
-
type: 'string',
|
|
15
|
-
description: 'The feature or component this decision relates to'
|
|
16
|
-
},
|
|
17
|
-
decision: {
|
|
18
|
-
type: 'string',
|
|
19
|
-
description: 'What was decided'
|
|
20
|
-
},
|
|
21
|
-
rationale: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
description: 'Why this choice was made'
|
|
24
|
-
},
|
|
25
|
-
alternatives: {
|
|
26
|
-
type: 'array',
|
|
27
|
-
items: {
|
|
28
|
-
type: 'object',
|
|
29
|
-
properties: {
|
|
30
|
-
option: { type: 'string' },
|
|
31
|
-
whyRejected: { type: 'string' }
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
description: 'Other options considered and why they were rejected'
|
|
35
|
-
},
|
|
36
|
-
revisitIf: {
|
|
37
|
-
type: 'string',
|
|
38
|
-
description: 'Conditions that would trigger reconsidering this decision'
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
required: ['feature', 'decision', 'rationale']
|
|
42
|
-
},
|
|
43
|
-
handler: async (params) => {
|
|
44
|
-
const content = renderDecisionTemplate(params);
|
|
45
|
-
const title = `Decision: ${params.feature} - ${truncate(params.decision, 50)}`;
|
|
46
|
-
const result = await client.createNote(content, title);
|
|
47
|
-
if (!result.success) {
|
|
48
|
-
throw new Error(`Failed to log decision: ${result.error}`);
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
success: true,
|
|
52
|
-
noteId: result.noteId,
|
|
53
|
-
message: `Decision logged for ${params.feature}`
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
export function createGetFeatureContextTool(client) {
|
|
59
|
-
return {
|
|
60
|
-
name: 'dev_get_feature_context',
|
|
61
|
-
description: 'Get development context for a feature. Returns decisions, current status, patterns, and related components.',
|
|
62
|
-
inputSchema: {
|
|
63
|
-
type: 'object',
|
|
64
|
-
properties: {
|
|
65
|
-
feature: {
|
|
66
|
-
type: 'string',
|
|
67
|
-
description: "The feature name (e.g., 'entity-system', 'billing', 'auth')"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
required: ['feature']
|
|
71
|
-
},
|
|
72
|
-
handler: async (params) => {
|
|
73
|
-
const { feature } = params;
|
|
74
|
-
const results = await client.semanticSearch(`${feature} decision architecture implementation`, 10);
|
|
75
|
-
const decisions = results.filter(r => r.content.toLowerCase().includes('decision:') ||
|
|
76
|
-
r.title?.toLowerCase().includes('decision'));
|
|
77
|
-
const architecture = results.filter(r => r.content.toLowerCase().includes('architecture') ||
|
|
78
|
-
r.content.toLowerCase().includes('component'));
|
|
79
|
-
return {
|
|
80
|
-
feature,
|
|
81
|
-
summary: `Found ${results.length} relevant notes for ${feature}`,
|
|
82
|
-
decisions: decisions.slice(0, 5).map(d => ({
|
|
83
|
-
title: extractTitle(d.content) || d.title || 'Decision',
|
|
84
|
-
date: d.updatedAt,
|
|
85
|
-
excerpt: truncate(d.content, 200)
|
|
86
|
-
})),
|
|
87
|
-
architecture: architecture.slice(0, 3).map(a => ({
|
|
88
|
-
title: a.title || 'Architecture Note',
|
|
89
|
-
excerpt: truncate(a.content, 300)
|
|
90
|
-
})),
|
|
91
|
-
recentActivity: results.slice(0, 3).map(r => ({
|
|
92
|
-
title: r.title || 'Note',
|
|
93
|
-
date: r.updatedAt
|
|
94
|
-
}))
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
function renderDecisionTemplate(params) {
|
|
100
|
-
const date = new Date().toISOString().split('T')[0];
|
|
101
|
-
let content = `# Decision: ${params.decision}
|
|
102
|
-
|
|
103
|
-
**Date**: ${date}
|
|
104
|
-
**Feature**: ${params.feature}
|
|
105
|
-
**Status**: Approved
|
|
106
|
-
|
|
107
|
-
## Decision
|
|
108
|
-
${params.decision}
|
|
109
|
-
|
|
110
|
-
## Rationale
|
|
111
|
-
${params.rationale}
|
|
112
|
-
`;
|
|
113
|
-
if (params.alternatives && params.alternatives.length > 0) {
|
|
114
|
-
content += `
|
|
115
|
-
## Alternatives Considered
|
|
116
|
-
${params.alternatives.map(a => `- **${a.option}**: ${a.whyRejected}`).join('\n')}
|
|
117
|
-
`;
|
|
118
|
-
}
|
|
119
|
-
if (params.revisitIf) {
|
|
120
|
-
content += `
|
|
121
|
-
## Revisit If
|
|
122
|
-
${params.revisitIf}
|
|
123
|
-
`;
|
|
124
|
-
}
|
|
125
|
-
content += `
|
|
126
|
-
---
|
|
127
|
-
Tags: decision, ${params.feature}
|
|
128
|
-
`;
|
|
129
|
-
return content;
|
|
130
|
-
}
|
|
131
|
-
function extractTitle(content) {
|
|
132
|
-
const match = content.match(/^#\s+(.+)$/m);
|
|
133
|
-
return match?.[1];
|
|
134
|
-
}
|
|
135
|
-
function truncate(text, maxLength) {
|
|
136
|
-
if (text.length <= maxLength)
|
|
137
|
-
return text;
|
|
138
|
-
return text.slice(0, maxLength - 3) + '...';
|
|
139
|
-
}
|
|
140
|
-
//# sourceMappingURL=tools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/domains/development/tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAiCH,MAAM,UAAU,qBAAqB,CAAC,MAAmB;IACvD,OAAO;QACL,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,wIAAwI;QACrJ,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,mDAAmD;iBACjE;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EA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AAC;IAED,OAAO,IAAI;;kBAEK,MAAM,CAAC,OAAO;CAC/B,CAAC;IAEA,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,YAAY,CAAC,OAAe;IACnC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAC3C,OAAO,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAED,SAAS,QAAQ,CAAC,IAAY,EAAE,SAAiB;IAC/C,IAAI,IAAI,CAAC,MAAM,IAAI,SAAS;QAAE,OAAO,IAAI,CAAC;IAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;AAC9C,CAAC"}
|
package/dist/domains/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Domain System
|
|
3
|
-
*
|
|
4
|
-
* Exports the domain loader for dynamic domain loading.
|
|
5
|
-
* Domains live in the domains/ folder (outside src/).
|
|
6
|
-
*/
|
|
7
|
-
export { loadDomains, registerDomainTools, buildSeederMap } from './loader.js';
|
|
8
|
-
export type { DomainModule, LoadedDomain } from './loader.js';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/domains/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,cAAc,EACf,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,YAAY,EACZ,YAAY,EACb,MAAM,aAAa,CAAC"}
|
package/dist/domains/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/domains/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,cAAc,EACf,MAAM,aAAa,CAAC"}
|
package/dist/domains/loader.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Domain Loader
|
|
3
|
-
*
|
|
4
|
-
* Dynamically loads custom domains from the configured path.
|
|
5
|
-
* Domains are self-contained TypeScript modules in the domains/ folder.
|
|
6
|
-
*/
|
|
7
|
-
import type { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
8
|
-
import type { LexicClient } from '../client/lexic-api.js';
|
|
9
|
-
export interface DomainModule {
|
|
10
|
-
metadata: {
|
|
11
|
-
name: string;
|
|
12
|
-
description: string;
|
|
13
|
-
version: string;
|
|
14
|
-
};
|
|
15
|
-
registerTools(server: Server, client: LexicClient): void;
|
|
16
|
-
seedProject?(client: LexicClient, lexiconId: string): Promise<number>;
|
|
17
|
-
}
|
|
18
|
-
export interface LoadedDomain {
|
|
19
|
-
name: string;
|
|
20
|
-
module: DomainModule;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Load domains from the specified path
|
|
24
|
-
*/
|
|
25
|
-
export declare function loadDomains(domainsPath: string, domainNames: string[]): Promise<LoadedDomain[]>;
|
|
26
|
-
/**
|
|
27
|
-
* Register all tools from loaded domains
|
|
28
|
-
*/
|
|
29
|
-
export declare function registerDomainTools(domains: LoadedDomain[], server: Server, client: LexicClient): void;
|
|
30
|
-
/**
|
|
31
|
-
* Build a map of domain seeders for use by admin tools
|
|
32
|
-
*/
|
|
33
|
-
export declare function buildSeederMap(domains: LoadedDomain[]): Map<string, (client: LexicClient, lexiconId: string) => Promise<number>>;
|
|
34
|
-
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/domains/loader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAO1D,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAGzD,WAAW,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACvE;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,YAAY,CAAC;CACtB;AAMD;;GAEG;AACH,wBAAsB,WAAW,CAC/B,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EAAE,GACpB,OAAO,CAAC,YAAY,EAAE,CAAC,CAiCzB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,YAAY,EAAE,EACvB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,WAAW,GAClB,IAAI,CAYN;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,YAAY,EAAE,GACtB,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAW1E"}
|
package/dist/domains/loader.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Domain Loader
|
|
3
|
-
*
|
|
4
|
-
* Dynamically loads custom domains from the configured path.
|
|
5
|
-
* Domains are self-contained TypeScript modules in the domains/ folder.
|
|
6
|
-
*/
|
|
7
|
-
import { pathToFileURL } from 'url';
|
|
8
|
-
import path from 'path';
|
|
9
|
-
import { logger } from '../utils/logger.js';
|
|
10
|
-
// ============================================================================
|
|
11
|
-
// LOADER
|
|
12
|
-
// ============================================================================
|
|
13
|
-
/**
|
|
14
|
-
* Load domains from the specified path
|
|
15
|
-
*/
|
|
16
|
-
export async function loadDomains(domainsPath, domainNames) {
|
|
17
|
-
const loaded = [];
|
|
18
|
-
for (const name of domainNames) {
|
|
19
|
-
try {
|
|
20
|
-
const domainPath = path.resolve(domainsPath, name, 'index.js');
|
|
21
|
-
const domainUrl = pathToFileURL(domainPath).href;
|
|
22
|
-
logger.debug('Loading domain', { name, path: domainPath });
|
|
23
|
-
const module = await import(domainUrl);
|
|
24
|
-
if (!module.metadata?.name) {
|
|
25
|
-
logger.warn('Domain missing metadata', { name });
|
|
26
|
-
continue;
|
|
27
|
-
}
|
|
28
|
-
loaded.push({ name, module });
|
|
29
|
-
logger.info('Loaded domain', {
|
|
30
|
-
name: module.metadata.name,
|
|
31
|
-
version: module.metadata.version,
|
|
32
|
-
hasSeeder: !!module.seedProject
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
logger.error('Failed to load domain', {
|
|
37
|
-
name,
|
|
38
|
-
error: error instanceof Error ? error.message : String(error)
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return loaded;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Register all tools from loaded domains
|
|
46
|
-
*/
|
|
47
|
-
export function registerDomainTools(domains, server, client) {
|
|
48
|
-
for (const { name, module } of domains) {
|
|
49
|
-
try {
|
|
50
|
-
module.registerTools(server, client);
|
|
51
|
-
logger.debug('Registered tools for domain', { name });
|
|
52
|
-
}
|
|
53
|
-
catch (error) {
|
|
54
|
-
logger.error('Failed to register domain tools', {
|
|
55
|
-
name,
|
|
56
|
-
error: error instanceof Error ? error.message : String(error)
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Build a map of domain seeders for use by admin tools
|
|
63
|
-
*/
|
|
64
|
-
export function buildSeederMap(domains) {
|
|
65
|
-
const seeders = new Map();
|
|
66
|
-
for (const { name, module } of domains) {
|
|
67
|
-
if (module.seedProject) {
|
|
68
|
-
seeders.set(name, module.seedProject.bind(module));
|
|
69
|
-
logger.debug('Registered seeder for domain', { name });
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return seeders;
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=loader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../src/domains/loader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAuB5C,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,WAAmB,EACnB,WAAqB;IAErB,MAAM,MAAM,GAAmB,EAAE,CAAC;IAElC,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE,CAAC;QAC/B,IAAI,CAAC;YACH,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;YAC/D,MAAM,SAAS,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC;YAEjD,MAAM,CAAC,KAAK,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;YAE3D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAiB,CAAC;YAEvD,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;gBAC3B,MAAM,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;gBACjD,SAAS;YACX,CAAC;YAED,MAAM,CAAC,IAAI,CAAC,EAAE,IA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AI,EAAE,MAAM,EAAE,IAAI,OAAO,EAAE,CAAC;QACvC,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;YACvB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YACnD,MAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/dist/index.d.ts
DELETED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;GAIG"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,cA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AAK,CAAC,IAAI;QACrB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;KAChC,CAAC,CAAC;AACL,CAAC;AAED,MAAM;AACN,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC/F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/dist/utils/errors.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error Types
|
|
3
|
-
*
|
|
4
|
-
* See .claude/specs/IMPLEMENTATION.md Section 3
|
|
5
|
-
*/
|
|
6
|
-
export declare class LexicApiError extends Error {
|
|
7
|
-
statusCode: number;
|
|
8
|
-
correlationId?: string | undefined;
|
|
9
|
-
constructor(message: string, statusCode: number, correlationId?: string | undefined);
|
|
10
|
-
}
|
|
11
|
-
export declare class AuthenticationError extends LexicApiError {
|
|
12
|
-
constructor(message: string, correlationId?: string);
|
|
13
|
-
}
|
|
14
|
-
export declare class AuthorizationError extends LexicApiError {
|
|
15
|
-
constructor(message: string, correlationId?: string);
|
|
16
|
-
}
|
|
17
|
-
export declare class NotFoundError extends LexicApiError {
|
|
18
|
-
constructor(message: string, correlationId?: string);
|
|
19
|
-
}
|
|
20
|
-
export declare class RateLimitError extends LexicApiError {
|
|
21
|
-
retryAfter?: number | undefined;
|
|
22
|
-
constructor(message: string, correlationId?: string, retryAfter?: number | undefined);
|
|
23
|
-
}
|
|
24
|
-
export declare class ServerError extends LexicApiError {
|
|
25
|
-
constructor(message: string, statusCode: number, correlationId?: string);
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,qBAAa,aAAc,SAAQ,KAAK;IAG7B,UAAU,EAAE,MAAM;IAClB,aAAa,CAAC,EAAE,MAAM;gBAF7B,OAAO,EAAE,MAAM,EACR,UAAU,EAAE,MAAM,EAClB,aAAa,CAAC,EAAE,MAAM,YAAA;CAKhC;AAED,qBAAa,mBAAoB,SAAQ,aAAa;gBACxC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM;CAIpD;AAED,qBAAa,kBAAmB,SAAQ,aAAa;gBACvC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM;CAIpD;AAED,qBAAa,aAAc,SAAQ,aAAa;gBAClC,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM;CAIpD;AAED,qBAAa,cAAe,SAAQ,aAAa;IAItC,UAAU,CAAC,EAAE,MAAM;gBAF1B,OAAO,EAAE,MAAM,EACf,aAAa,CAAC,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,MAAM,YAAA;CAK7B;AAED,qBAAa,WAAY,SAAQ,aAAa;gBAChC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM;CAIxE"}
|
package/dist/utils/errors.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error Types
|
|
3
|
-
*
|
|
4
|
-
* See .claude/specs/IMPLEMENTATION.md Section 3
|
|
5
|
-
*/
|
|
6
|
-
export class LexicApiError extends Error {
|
|
7
|
-
statusCode;
|
|
8
|
-
correlationId;
|
|
9
|
-
constructor(message, statusCode, correlationId) {
|
|
10
|
-
super(message);
|
|
11
|
-
this.statusCode = statusCode;
|
|
12
|
-
this.correlationId = correlationId;
|
|
13
|
-
this.name = 'LexicApiError';
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export class AuthenticationError extends LexicApiError {
|
|
17
|
-
constructor(message, correlationId) {
|
|
18
|
-
super(message, 401, correlationId);
|
|
19
|
-
this.name = 'AuthenticationError';
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export class AuthorizationError extends LexicApiError {
|
|
23
|
-
constructor(message, correlationId) {
|
|
24
|
-
super(message, 403, correlationId);
|
|
25
|
-
this.name = 'AuthorizationError';
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export class NotFoundError extends LexicApiError {
|
|
29
|
-
constructor(message, correlationId) {
|
|
30
|
-
super(message, 404, correlationId);
|
|
31
|
-
this.name = 'NotFoundError';
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
export class RateLimitError extends LexicApiError {
|
|
35
|
-
retryAfter;
|
|
36
|
-
constructor(message, correlationId, retryAfter) {
|
|
37
|
-
super(message, 429, correlationId);
|
|
38
|
-
this.retryAfter = retryAfter;
|
|
39
|
-
this.name = 'RateLimitError';
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export class ServerError extends LexicApiError {
|
|
43
|
-
constructor(message, statusCode, correlationId) {
|
|
44
|
-
super(message, statusCode, correlationId);
|
|
45
|
-
this.name = 'ServerError';
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=errors.js.map
|
package/dist/utils/errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,OAAO,aAAc,SAAQ,KAAK;IAG7B;IACA;IAHT,YACE,OAAe,EACR,UAAkB,EAClB,aAAsB;QAE7B,KAAK,CAAC,OAAO,CAAC,CAAC;QAHR,eAAU,GAAV,UAAU,CAAQ;QAClB,kBAAa,GAAb,aAAa,CAAS;QAG7B,IAAI,CAAC,IAAI,GAAG,eA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'info' | 'warn' | 'error';
|
|
7
|
-
declare class Logger {
|
|
8
|
-
private level;
|
|
9
|
-
setLevel(level: LogLevel): void;
|
|
10
|
-
getLevel(): LogLevel;
|
|
11
|
-
private shouldLog;
|
|
12
|
-
private format;
|
|
13
|
-
debug(message: string, data?: Record<string, unknown>): void;
|
|
14
|
-
info(message: string, data?: Record<string, unknown>): void;
|
|
15
|
-
warn(message: string, data?: Record<string, unknown>): void;
|
|
16
|
-
error(message: string, data?: Record<string, unknown>): void;
|
|
17
|
-
}
|
|
18
|
-
export declare const logger: Logger;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,KAAK,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AASpD,cAAM,MAAM;IACV,OAAO,CAAC,KAAK,CAAoB;IAEjC,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAM/B,QAAQ,IAAI,QAAQ;IAIpB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,MAAM;IAiBd,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAM5D,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAM3D,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAM3D,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;CAK7D;AAED,eAAO,MAAM,MAAM,QAAe,CAAC"}
|
package/dist/utils/logger.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Structured Logger
|
|
3
|
-
*
|
|
4
|
-
* Logs to stderr (MCP uses stdout for protocol)
|
|
5
|
-
*/
|
|
6
|
-
const LOG_LEVELS = {
|
|
7
|
-
debug: 0,
|
|
8
|
-
info: 1,
|
|
9
|
-
warn: 2,
|
|
10
|
-
error: 3
|
|
11
|
-
};
|
|
12
|
-
class Logger {
|
|
13
|
-
level = 'info';
|
|
14
|
-
setLevel(level) {
|
|
15
|
-
if (LOG_LEVELS[level] !== undefined) {
|
|
16
|
-
this.level = level;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
getLevel() {
|
|
20
|
-
return this.level;
|
|
21
|
-
}
|
|
22
|
-
shouldLog(level) {
|
|
23
|
-
return LOG_LEVELS[level] >= LOG_LEVELS[this.level];
|
|
24
|
-
}
|
|
25
|
-
format(level, message, data) {
|
|
26
|
-
const timestamp = new Date().toISOString();
|
|
27
|
-
const base = `[${timestamp}] [${level.toUpperCase()}] ${message}`;
|
|
28
|
-
if (data) {
|
|
29
|
-
// Redact sensitive fields
|
|
30
|
-
const safeData = { ...data };
|
|
31
|
-
if ('pat' in safeData)
|
|
32
|
-
safeData.pat = '[REDACTED]';
|
|
33
|
-
if ('token' in safeData)
|
|
34
|
-
safeData.token = '[REDACTED]';
|
|
35
|
-
if ('authorization' in safeData)
|
|
36
|
-
safeData.authorization = '[REDACTED]';
|
|
37
|
-
return `${base} ${JSON.stringify(safeData)}`;
|
|
38
|
-
}
|
|
39
|
-
return base;
|
|
40
|
-
}
|
|
41
|
-
debug(message, data) {
|
|
42
|
-
if (this.shouldLog('debug')) {
|
|
43
|
-
console.error(this.format('debug', message, data));
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
info(message, data) {
|
|
47
|
-
if (this.shouldLog('info')) {
|
|
48
|
-
console.error(this.format('info', message, data));
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
warn(message, data) {
|
|
52
|
-
if (this.shouldLog('warn')) {
|
|
53
|
-
console.error(this.format('warn', message, data));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
error(message, data) {
|
|
57
|
-
if (this.shouldLog('error')) {
|
|
58
|
-
console.error(this.format('error', message, data));
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
export const logger = new Logger();
|
|
63
|
-
//# sourceMappingURL=logger.js.map
|
package/dist/utils/logger.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,UAAU,GAA6B;IAC3C,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;CACT,CAAC;AAEF,MAAM,MAAM;IACF,KAAK,GAAa,MAAM,CAAC;IAEjC,QAAQ,CAAC,KAAe;QACtB,IAAI,UAAU,CAAC,KAAK,CAAC,KAAK,SAAS,EAAE,CAAC;YACpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACrB,CAAC;IACH,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAEO,SAAS,CAAC,KAAe;QAC/B,OAAO,UAAU,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;IAEO,MAAM,CAAC,KAAe,EAAE,OAAe,EAAE,IAA8B;QAC7E,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAC3C,MAAM,IAAI,GAAG,IAAI,SAAS,MAAM,KAAK,CAAC,WAAW,EAAE,KAAK,OAAO,EAAE,CAAC;QAElE,IAAI,IAAI,EAAE,CAAC;YACT,0BAA0B;YAC1B,MA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