@schemyx/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 +79 -2
- package/dist/backend-client.d.ts +1 -17
- package/dist/backend-client.js +15 -91
- package/dist/backend-client.js.map +1 -1
- package/dist/client/backend-client.d.ts +17 -0
- package/dist/client/backend-client.js +97 -0
- package/dist/client/backend-client.js.map +1 -0
- package/dist/client/local-theme-source.d.ts +19 -0
- package/dist/client/local-theme-source.js +737 -0
- package/dist/client/local-theme-source.js.map +1 -0
- package/dist/client/mcp-client.d.ts +15 -0
- package/dist/client/mcp-client.js +46 -0
- package/dist/client/mcp-client.js.map +1 -0
- package/dist/codebase-scanner/backend.d.ts +12 -0
- package/dist/codebase-scanner/backend.js +814 -0
- package/dist/codebase-scanner/backend.js.map +1 -0
- package/dist/codebase-scanner/bundle.d.ts +315 -0
- package/dist/codebase-scanner/bundle.js +5195 -0
- package/dist/codebase-scanner/bundle.js.map +1 -0
- package/dist/codebase-scanner/constants.d.ts +26 -0
- package/dist/codebase-scanner/constants.js +231 -0
- package/dist/codebase-scanner/constants.js.map +1 -0
- package/dist/codebase-scanner/database.d.ts +8 -0
- package/dist/codebase-scanner/database.js +1252 -0
- package/dist/codebase-scanner/database.js.map +1 -0
- package/dist/codebase-scanner/extractors.d.ts +241 -0
- package/dist/codebase-scanner/extractors.js +3513 -0
- package/dist/codebase-scanner/extractors.js.map +1 -0
- package/dist/codebase-scanner/files.d.ts +16 -0
- package/dist/codebase-scanner/files.js +250 -0
- package/dist/codebase-scanner/files.js.map +1 -0
- package/dist/codebase-scanner/index.d.ts +217 -0
- package/dist/codebase-scanner/index.js +387 -0
- package/dist/codebase-scanner/index.js.map +1 -0
- package/dist/codebase-scanner/recipes.d.ts +74 -0
- package/dist/codebase-scanner/recipes.js +743 -0
- package/dist/codebase-scanner/recipes.js.map +1 -0
- package/dist/codebase-scanner/storage.d.ts +19 -0
- package/dist/codebase-scanner/storage.js +103 -0
- package/dist/codebase-scanner/storage.js.map +1 -0
- package/dist/codebase-scanner/types.d.ts +743 -0
- package/dist/codebase-scanner/types.js +3 -0
- package/dist/codebase-scanner/types.js.map +1 -0
- package/dist/codebase-scanner/utils.d.ts +37 -0
- package/dist/codebase-scanner/utils.js +259 -0
- package/dist/codebase-scanner/utils.js.map +1 -0
- package/dist/codebase-scanner.d.ts +1 -0
- package/dist/codebase-scanner.js +18 -0
- package/dist/codebase-scanner.js.map +1 -0
- package/dist/config.d.ts +1 -2
- package/dist/config.js +15 -37
- package/dist/config.js.map +1 -1
- package/dist/local-theme-source.d.ts +1 -0
- package/dist/local-theme-source.js +18 -0
- package/dist/local-theme-source.js.map +1 -0
- package/dist/main.js +3 -3
- package/dist/main.js.map +1 -1
- package/dist/mcp-client.d.ts +1 -0
- package/dist/mcp-client.js +18 -0
- package/dist/mcp-client.js.map +1 -0
- package/dist/prompts.d.ts +1 -7
- package/dist/prompts.js +15 -52
- package/dist/prompts.js.map +1 -1
- package/dist/server/index.d.ts +4 -0
- package/dist/server/index.js +163 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/prompts.d.ts +7 -0
- package/dist/server/prompts.js +55 -0
- package/dist/server/prompts.js.map +1 -0
- package/dist/server/tool-definitions.d.ts +22 -0
- package/dist/server/tool-definitions.js +531 -0
- package/dist/server/tool-definitions.js.map +1 -0
- package/dist/server.d.ts +3 -3
- package/dist/server.js +33 -0
- package/dist/server.js.map +1 -1
- package/dist/shared/config.d.ts +2 -0
- package/dist/shared/config.js +54 -0
- package/dist/shared/config.js.map +1 -0
- package/dist/shared/text.d.ts +14 -0
- package/dist/shared/text.js +33 -0
- package/dist/shared/text.js.map +1 -0
- package/dist/shared/types.d.ts +118 -0
- package/dist/shared/types.js +3 -0
- package/dist/shared/types.js.map +1 -0
- package/dist/shared/uri.d.ts +6 -0
- package/dist/shared/uri.js +24 -0
- package/dist/shared/uri.js.map +1 -0
- package/dist/style-recipes.d.ts +1 -0
- package/dist/style-recipes.js +18 -0
- package/dist/style-recipes.js.map +1 -0
- package/dist/text.d.ts +1 -14
- package/dist/text.js +15 -30
- package/dist/text.js.map +1 -1
- package/dist/theme/style-recipes.d.ts +26 -0
- package/dist/theme/style-recipes.js +129 -0
- package/dist/theme/style-recipes.js.map +1 -0
- package/dist/tool-definitions.d.ts +1 -11
- package/dist/tool-definitions.js +15 -127
- package/dist/tool-definitions.js.map +1 -1
- package/dist/types.d.ts +1 -106
- package/dist/types.js +15 -0
- package/dist/types.js.map +1 -1
- package/dist/uri.d.ts +1 -6
- package/dist/uri.js +15 -21
- package/dist/uri.js.map +1 -1
- package/package.json +5 -2
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadLocalMcpConfig = loadLocalMcpConfig;
|
|
4
|
+
const defaultApiUrl = 'https://api.schemyx.com';
|
|
5
|
+
const defaultCacheTtlMs = 10_000;
|
|
6
|
+
function loadLocalMcpConfig(env = process.env) {
|
|
7
|
+
const apiKey = env.SCHEMYX_API_KEY?.trim();
|
|
8
|
+
return {
|
|
9
|
+
apiUrl: normalizeApiUrl(env.SCHEMYX_API_URL ?? defaultApiUrl),
|
|
10
|
+
...(apiKey ? { apiKey } : {}),
|
|
11
|
+
projectId: optionalValue(env.SCHEMYX_PROJECT_ID),
|
|
12
|
+
configId: optionalValue(env.SCHEMYX_CONFIG_ID),
|
|
13
|
+
cacheTtlMs: parseCacheTtl(env.SCHEMYX_MCP_CACHE_TTL_MS),
|
|
14
|
+
sourceMode: parseSourceMode(env.SCHEMYX_MCP_SOURCE),
|
|
15
|
+
themeDir: optionalValue(env.SCHEMYX_THEME_DIR),
|
|
16
|
+
cwd: normalizeCwd(env.SCHEMYX_MCP_CWD ?? process.cwd()),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function normalizeApiUrl(value) {
|
|
20
|
+
const trimmed = value.trim();
|
|
21
|
+
if (!trimmed) {
|
|
22
|
+
return defaultApiUrl;
|
|
23
|
+
}
|
|
24
|
+
return trimmed.replace(/\/+$/, '');
|
|
25
|
+
}
|
|
26
|
+
function optionalValue(value) {
|
|
27
|
+
const trimmed = value?.trim();
|
|
28
|
+
return trimmed ? trimmed : undefined;
|
|
29
|
+
}
|
|
30
|
+
function parseCacheTtl(value) {
|
|
31
|
+
if (!value) {
|
|
32
|
+
return defaultCacheTtlMs;
|
|
33
|
+
}
|
|
34
|
+
const parsed = Number(value);
|
|
35
|
+
if (!Number.isFinite(parsed) || parsed < 0) {
|
|
36
|
+
throw new Error('SCHEMYX_MCP_CACHE_TTL_MS must be a non-negative number.');
|
|
37
|
+
}
|
|
38
|
+
return parsed;
|
|
39
|
+
}
|
|
40
|
+
function parseSourceMode(value) {
|
|
41
|
+
const mode = optionalValue(value) ?? 'auto';
|
|
42
|
+
if (mode === 'auto' || mode === 'local' || mode === 'remote') {
|
|
43
|
+
return mode;
|
|
44
|
+
}
|
|
45
|
+
throw new Error('SCHEMYX_MCP_SOURCE must be one of auto, local, or remote.');
|
|
46
|
+
}
|
|
47
|
+
function normalizeCwd(value) {
|
|
48
|
+
const trimmed = value.trim();
|
|
49
|
+
if (!trimmed) {
|
|
50
|
+
return process.cwd();
|
|
51
|
+
}
|
|
52
|
+
return trimmed;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/shared/config.ts"],"names":[],"mappings":";;AAKA,gDAaC;AAhBD,MAAM,aAAa,GAAG,yBAAyB,CAAC;AAChD,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAEjC,SAAgB,kBAAkB,CAAC,MAAyB,OAAO,CAAC,GAAG;IACrE,MAAM,MAAM,GAAG,GAAG,CAAC,eAAe,EAAE,IAAI,EAAE,CAAC;IAE3C,OAAO;QACL,MAAM,EAAE,eAAe,CAAC,GAAG,CAAC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;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,eAAe,CAAC,KAAyB;IAChD,MAAM,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC;IAE5C,IAAI,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,OAAO,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;AAC/E,CAAC;AAED,SAAS,YAAY,CAAC,KAAa;IACjC,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAE7B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC;IACvB,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function stringifyMcpContent(value: unknown): string;
|
|
2
|
+
export declare function textToolResult(value: unknown): {
|
|
3
|
+
content: {
|
|
4
|
+
type: "text";
|
|
5
|
+
text: string;
|
|
6
|
+
}[];
|
|
7
|
+
};
|
|
8
|
+
export declare function errorToolResult(error: unknown): {
|
|
9
|
+
isError: boolean;
|
|
10
|
+
content: {
|
|
11
|
+
type: "text";
|
|
12
|
+
text: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stringifyMcpContent = stringifyMcpContent;
|
|
4
|
+
exports.textToolResult = textToolResult;
|
|
5
|
+
exports.errorToolResult = errorToolResult;
|
|
6
|
+
function stringifyMcpContent(value) {
|
|
7
|
+
if (typeof value === 'string') {
|
|
8
|
+
return value;
|
|
9
|
+
}
|
|
10
|
+
return JSON.stringify(value, null, 2);
|
|
11
|
+
}
|
|
12
|
+
function textToolResult(value) {
|
|
13
|
+
return {
|
|
14
|
+
content: [
|
|
15
|
+
{
|
|
16
|
+
type: 'text',
|
|
17
|
+
text: stringifyMcpContent(value),
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function errorToolResult(error) {
|
|
23
|
+
return {
|
|
24
|
+
isError: true,
|
|
25
|
+
content: [
|
|
26
|
+
{
|
|
27
|
+
type: 'text',
|
|
28
|
+
text: error instanceof Error ? error.message : String(error),
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/shared/text.ts"],"names":[],"mappings":";;AAAA,kDAMC;AAED,wCASC;AAED,0CAUC;AA7BD,SAAgB,mBAAmB,CAAC,KAAc;IAChD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AACxC,CAAC;AAED,SAAgB,cAAc,CAAC,KAAc;IAC3C,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAe;gBACrB,IAAI,EAAE,mBAAmB,CAAC,KAAK,CAAC;aACjC;SACF;KACF,CAAC;AACJ,CAAC;AAED,SAAgB,eAAe,CAAC,KAAc;IAC5C,OAAO;QACL,OAAO,EAAE,IAAI;QACb,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAe;gBACrB,IAAI,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;aAC7D;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export interface LocalMcpConfig {
|
|
2
|
+
apiUrl: string;
|
|
3
|
+
apiKey?: string;
|
|
4
|
+
projectId?: string;
|
|
5
|
+
configId?: string;
|
|
6
|
+
cacheTtlMs: number;
|
|
7
|
+
sourceMode: 'auto' | 'local' | 'remote';
|
|
8
|
+
themeDir?: string;
|
|
9
|
+
cwd: string;
|
|
10
|
+
}
|
|
11
|
+
export interface McpConfigResponse {
|
|
12
|
+
id: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
name: string;
|
|
15
|
+
key: string;
|
|
16
|
+
type: string;
|
|
17
|
+
status: string;
|
|
18
|
+
source: string;
|
|
19
|
+
description: string | null;
|
|
20
|
+
targetPath: string | null;
|
|
21
|
+
schema: unknown;
|
|
22
|
+
validation: unknown;
|
|
23
|
+
metadata: unknown;
|
|
24
|
+
createdAt: string;
|
|
25
|
+
updatedAt: string;
|
|
26
|
+
latestVersion: {
|
|
27
|
+
id: string;
|
|
28
|
+
version: number;
|
|
29
|
+
content: unknown;
|
|
30
|
+
createdAt: string;
|
|
31
|
+
} | null;
|
|
32
|
+
}
|
|
33
|
+
export interface McpContextResponse {
|
|
34
|
+
apiKey: {
|
|
35
|
+
id: string;
|
|
36
|
+
teamId: string;
|
|
37
|
+
projectId: string | null;
|
|
38
|
+
scopes: unknown;
|
|
39
|
+
};
|
|
40
|
+
team: {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
slug: string;
|
|
44
|
+
};
|
|
45
|
+
projects: Array<{
|
|
46
|
+
id: string;
|
|
47
|
+
teamId: string;
|
|
48
|
+
name: string;
|
|
49
|
+
slug: string;
|
|
50
|
+
description: string | null;
|
|
51
|
+
configs: McpConfigResponse[];
|
|
52
|
+
}>;
|
|
53
|
+
}
|
|
54
|
+
export interface BackendResourceDescriptor {
|
|
55
|
+
id: string;
|
|
56
|
+
uri: string;
|
|
57
|
+
name: string;
|
|
58
|
+
description: string;
|
|
59
|
+
mimeType: string;
|
|
60
|
+
kind: 'json' | 'text';
|
|
61
|
+
metadata?: Record<string, unknown>;
|
|
62
|
+
}
|
|
63
|
+
export interface BackendToolDescriptor {
|
|
64
|
+
name: string;
|
|
65
|
+
title: string;
|
|
66
|
+
description: string;
|
|
67
|
+
inputSchema: {
|
|
68
|
+
type: string;
|
|
69
|
+
properties?: Record<string, unknown>;
|
|
70
|
+
required?: string[];
|
|
71
|
+
additionalProperties?: boolean;
|
|
72
|
+
};
|
|
73
|
+
readOnly: boolean;
|
|
74
|
+
metadata?: Record<string, unknown>;
|
|
75
|
+
}
|
|
76
|
+
export interface BackendPromptDescriptor {
|
|
77
|
+
id: string;
|
|
78
|
+
name: string;
|
|
79
|
+
description: string;
|
|
80
|
+
arguments?: Array<{
|
|
81
|
+
name: string;
|
|
82
|
+
description: string;
|
|
83
|
+
required?: boolean;
|
|
84
|
+
}>;
|
|
85
|
+
}
|
|
86
|
+
export interface BackendConfigManifest {
|
|
87
|
+
configId: string;
|
|
88
|
+
providers: Array<{
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
}>;
|
|
92
|
+
resources: BackendResourceDescriptor[];
|
|
93
|
+
tools: BackendToolDescriptor[];
|
|
94
|
+
prompts: BackendPromptDescriptor[];
|
|
95
|
+
}
|
|
96
|
+
export interface BackendResourceContent {
|
|
97
|
+
resource: BackendResourceDescriptor;
|
|
98
|
+
content: unknown;
|
|
99
|
+
}
|
|
100
|
+
export interface BackendToolResult {
|
|
101
|
+
tool: BackendToolDescriptor;
|
|
102
|
+
content: unknown;
|
|
103
|
+
contentType: 'json' | 'text';
|
|
104
|
+
metadata?: Record<string, unknown>;
|
|
105
|
+
}
|
|
106
|
+
export interface DiscoveredConfig {
|
|
107
|
+
config: McpConfigResponse;
|
|
108
|
+
manifest: BackendConfigManifest;
|
|
109
|
+
}
|
|
110
|
+
export interface SchemyxMcpSource {
|
|
111
|
+
listConfigs(): Promise<McpConfigResponse[]>;
|
|
112
|
+
discoverConfigs(): Promise<DiscoveredConfig[]>;
|
|
113
|
+
getManifest(configId: string): Promise<BackendConfigManifest>;
|
|
114
|
+
getLatestConfig(configId: string): Promise<McpConfigResponse>;
|
|
115
|
+
readResource(configId: string, resourceId: string): Promise<BackendResourceContent>;
|
|
116
|
+
executeTool(configId: string, toolName: string, args: Record<string, unknown>): Promise<BackendToolResult>;
|
|
117
|
+
resolveConfigId(configId: string | undefined): Promise<string>;
|
|
118
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/shared/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const localResourcePrefix = "schemyx://configs/";
|
|
2
|
+
export declare function createLocalResourceUri(configId: string, resourceId: string): string;
|
|
3
|
+
export declare function parseLocalResourceUri(uri: string): {
|
|
4
|
+
configId: string;
|
|
5
|
+
resourceId: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.localResourcePrefix = void 0;
|
|
4
|
+
exports.createLocalResourceUri = createLocalResourceUri;
|
|
5
|
+
exports.parseLocalResourceUri = parseLocalResourceUri;
|
|
6
|
+
exports.localResourcePrefix = 'schemyx://configs/';
|
|
7
|
+
function createLocalResourceUri(configId, resourceId) {
|
|
8
|
+
return `${exports.localResourcePrefix}${encodeURIComponent(configId)}/resources/${encodeURIComponent(resourceId)}`;
|
|
9
|
+
}
|
|
10
|
+
function parseLocalResourceUri(uri) {
|
|
11
|
+
const parsed = new URL(uri);
|
|
12
|
+
if (parsed.protocol !== 'schemyx:' || parsed.hostname !== 'configs') {
|
|
13
|
+
throw new Error(`Unsupported Schemyx resource URI: ${uri}`);
|
|
14
|
+
}
|
|
15
|
+
const [configId, resourceSegment, resourceId] = parsed.pathname
|
|
16
|
+
.split('/')
|
|
17
|
+
.filter((segment) => segment.length > 0)
|
|
18
|
+
.map((segment) => decodeURIComponent(segment));
|
|
19
|
+
if (!configId || resourceSegment !== 'resources' || !resourceId) {
|
|
20
|
+
throw new Error(`Unsupported Schemyx resource URI: ${uri}`);
|
|
21
|
+
}
|
|
22
|
+
return { configId, resourceId };
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=uri.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uri.js","sourceRoot":"","sources":["../../src/shared/uri.ts"],"names":[],"mappings":";;;AAEA,wDAIC;AAED,sDAiBC;AAzBY,QAAA,mBAAmB,GAAG,oBAAoB,CAAC;AAExD,SAAgB,sBAAsB,CAAC,QAAgB,EAAE,UAAkB;IACzE,OAAO,GAAG,2BAAmB,GAAG,kBAAkB,CAAC,QAAQ,CAAC,cAAc,kBAAkB,CAC1F,UAAU,CACX,EAAE,CAAC;AACN,CAAC;AAED,SAAgB,qBAAqB,CAAC,GAAW;IAC/C,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;IAE5B,IAAI,MAAM,CAAC,QAAQ,KAAK,UAAU,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;QACpE,MAAM,IAAI,KAAK,CAAC,qCAAqC,GAAG,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,MAAM,CAAC,QAAQ,EAAE,eAAe,EAAE,UAAU,CAAC,GAAG,MAAM,CAAC,QAAQ;SAC5D,KAAK,CAAC,GAAG,CAAC;SACV,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;SACvC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;IAEjD,IAAI,CAAC,QAAQ,IAAI,eAAe,KAAK,WAAW,IAAI,CAAC,UAAU,EAAE,CAAC;QAChE,MAAM,IAAI,KAAK,CAAC,qCAAqC,GAAG,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './theme/style-recipes';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./theme/style-recipes"), exports);
|
|
18
|
+
//# sourceMappingURL=style-recipes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-recipes.js","sourceRoot":"","sources":["../src/style-recipes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
|
package/dist/text.d.ts
CHANGED
|
@@ -1,14 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function textToolResult(value: unknown): {
|
|
3
|
-
content: {
|
|
4
|
-
type: "text";
|
|
5
|
-
text: string;
|
|
6
|
-
}[];
|
|
7
|
-
};
|
|
8
|
-
export declare function errorToolResult(error: unknown): {
|
|
9
|
-
isError: boolean;
|
|
10
|
-
content: {
|
|
11
|
-
type: "text";
|
|
12
|
-
text: string;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
1
|
+
export * from './shared/text';
|
package/dist/text.js
CHANGED
|
@@ -1,33 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
if (typeof value === 'string') {
|
|
8
|
-
return value;
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
7
|
}
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function errorToolResult(error) {
|
|
23
|
-
return {
|
|
24
|
-
isError: true,
|
|
25
|
-
content: [
|
|
26
|
-
{
|
|
27
|
-
type: 'text',
|
|
28
|
-
text: error instanceof Error ? error.message : String(error),
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
};
|
|
32
|
-
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./shared/text"), exports);
|
|
33
18
|
//# sourceMappingURL=text.js.map
|
package/dist/text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sourceRoot":"","sources":["../src/text.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../src/text.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface ThemeFile {
|
|
2
|
+
fileName: string;
|
|
3
|
+
content: string;
|
|
4
|
+
}
|
|
5
|
+
interface ThemeBundle {
|
|
6
|
+
files: ThemeFile[];
|
|
7
|
+
}
|
|
8
|
+
export declare function hasStyleRecipes(bundle: ThemeBundle): boolean;
|
|
9
|
+
export declare function listStyleRecipes(bundle: ThemeBundle, args?: Record<string, unknown>): {
|
|
10
|
+
key: string | undefined;
|
|
11
|
+
group: string | undefined;
|
|
12
|
+
summary: string | undefined;
|
|
13
|
+
tags: string[];
|
|
14
|
+
dependencies: string[];
|
|
15
|
+
}[];
|
|
16
|
+
export declare function getStyleRecipe(bundle: ThemeBundle, args: Record<string, unknown>): {
|
|
17
|
+
key: string;
|
|
18
|
+
contractVersion: string | undefined;
|
|
19
|
+
mode: string | undefined;
|
|
20
|
+
recipe: unknown;
|
|
21
|
+
dependencies: {
|
|
22
|
+
[k: string]: unknown;
|
|
23
|
+
};
|
|
24
|
+
} | null;
|
|
25
|
+
export declare function getStyleRecipeKeys(bundle: ThemeBundle): string[];
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hasStyleRecipes = hasStyleRecipes;
|
|
4
|
+
exports.listStyleRecipes = listStyleRecipes;
|
|
5
|
+
exports.getStyleRecipe = getStyleRecipe;
|
|
6
|
+
exports.getStyleRecipeKeys = getStyleRecipeKeys;
|
|
7
|
+
const styleContractFileName = 'agent-style-contract.json';
|
|
8
|
+
const styleIndexFileName = 'agent-style-index.json';
|
|
9
|
+
const jsonCache = new Map();
|
|
10
|
+
function hasStyleRecipes(bundle) {
|
|
11
|
+
return Boolean(getStyleContractFile(bundle));
|
|
12
|
+
}
|
|
13
|
+
function listStyleRecipes(bundle, args = {}) {
|
|
14
|
+
const query = stringArg(args, 'query')?.toLowerCase();
|
|
15
|
+
const group = stringArg(args, 'group')?.toLowerCase();
|
|
16
|
+
const index = getStyleIndex(bundle);
|
|
17
|
+
const contract = getStyleContract(bundle);
|
|
18
|
+
const keys = index?.keys?.length
|
|
19
|
+
? index.keys
|
|
20
|
+
: Object.keys(contract?.r ?? {}).map((key) => ({ k: key }));
|
|
21
|
+
return keys
|
|
22
|
+
.map((entry) => ({
|
|
23
|
+
key: stringValue(entry.k),
|
|
24
|
+
group: stringValue(entry.g),
|
|
25
|
+
summary: stringValue(entry.s),
|
|
26
|
+
tags: stringArray(entry.t),
|
|
27
|
+
dependencies: stringArray(entry.d),
|
|
28
|
+
}))
|
|
29
|
+
.filter((entry) => entry.key)
|
|
30
|
+
.filter((entry) => {
|
|
31
|
+
if (group && entry.group?.toLowerCase() !== group) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
if (!query) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
return [entry.key, entry.group, entry.summary, ...entry.tags]
|
|
38
|
+
.filter((value) => Boolean(value))
|
|
39
|
+
.some((value) => value.toLowerCase().includes(query));
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function getStyleRecipe(bundle, args) {
|
|
43
|
+
const key = stringArg(args, 'key');
|
|
44
|
+
const includeDeps = args.includeDeps !== false;
|
|
45
|
+
if (!key) {
|
|
46
|
+
throw new Error('Style recipe key is required.');
|
|
47
|
+
}
|
|
48
|
+
const contract = getStyleContract(bundle);
|
|
49
|
+
const recipes = contract?.r;
|
|
50
|
+
if (!recipes || !(key in recipes)) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
const recipe = normalizeRecipe(recipes[key]);
|
|
54
|
+
return {
|
|
55
|
+
key,
|
|
56
|
+
contractVersion: stringValue(contract.v),
|
|
57
|
+
mode: stringValue(contract.mode),
|
|
58
|
+
recipe: recipe.value,
|
|
59
|
+
dependencies: includeDeps ? collectDependencies(recipes, recipe.dependencies) : {},
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function getStyleRecipeKeys(bundle) {
|
|
63
|
+
const contract = getStyleContract(bundle);
|
|
64
|
+
return Object.keys(contract?.r ?? {});
|
|
65
|
+
}
|
|
66
|
+
function collectDependencies(recipes, dependencyKeys) {
|
|
67
|
+
return Object.fromEntries(dependencyKeys
|
|
68
|
+
.filter((dependencyKey) => dependencyKey in recipes)
|
|
69
|
+
.map((dependencyKey) => {
|
|
70
|
+
const recipe = normalizeRecipe(recipes[dependencyKey]);
|
|
71
|
+
return [dependencyKey, recipe.value];
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
function normalizeRecipe(input) {
|
|
75
|
+
if (isObject(input) && ('v' in input || 'd' in input)) {
|
|
76
|
+
const payload = input;
|
|
77
|
+
return {
|
|
78
|
+
dependencies: stringArray(payload.d),
|
|
79
|
+
value: payload.v,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
dependencies: [],
|
|
84
|
+
value: input,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function getStyleContract(bundle) {
|
|
88
|
+
const file = getStyleContractFile(bundle);
|
|
89
|
+
return file ? parseJson(file) : null;
|
|
90
|
+
}
|
|
91
|
+
function getStyleIndex(bundle) {
|
|
92
|
+
const file = bundle.files.find((candidate) => candidate.fileName === styleIndexFileName);
|
|
93
|
+
return file ? parseJson(file) : null;
|
|
94
|
+
}
|
|
95
|
+
function getStyleContractFile(bundle) {
|
|
96
|
+
return bundle.files.find((candidate) => candidate.fileName === styleContractFileName) ?? null;
|
|
97
|
+
}
|
|
98
|
+
function parseJson(file) {
|
|
99
|
+
try {
|
|
100
|
+
if (jsonCache.has(file.content)) {
|
|
101
|
+
return jsonCache.get(file.content);
|
|
102
|
+
}
|
|
103
|
+
const parsed = JSON.parse(file.content);
|
|
104
|
+
if (jsonCache.size > 50) {
|
|
105
|
+
jsonCache.clear();
|
|
106
|
+
}
|
|
107
|
+
jsonCache.set(file.content, parsed);
|
|
108
|
+
return parsed;
|
|
109
|
+
}
|
|
110
|
+
catch {
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function stringArg(args, key) {
|
|
115
|
+
const value = args[key];
|
|
116
|
+
return typeof value === 'string' && value.trim() ? value : null;
|
|
117
|
+
}
|
|
118
|
+
function stringValue(value) {
|
|
119
|
+
return typeof value === 'string' ? value : undefined;
|
|
120
|
+
}
|
|
121
|
+
function stringArray(value) {
|
|
122
|
+
return Array.isArray(value)
|
|
123
|
+
? value.filter((item) => typeof item === 'string')
|
|
124
|
+
: [];
|
|
125
|
+
}
|
|
126
|
+
function isObject(value) {
|
|
127
|
+
return Boolean(value) && typeof value === 'object' && !Array.isArray(value);
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=style-recipes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-recipes.js","sourceRoot":"","sources":["../../src/theme/style-recipes.ts"],"names":[],"mappings":";;AAoCA,0CAEC;AAED,4CA+BC;AAED,wCAwBC;AAED,gDAGC;AAtGD,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AAC1D,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;AACpD,MAAM,SAAS,GAAG,IAAI,GAAG,EAAmB,CAAC;AAkC7C,SAAgB,eAAe,CAAC,MAAmB;IACjD,OAAO,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,gBAAgB,CAAC,MAAmB,EAAE,OAAgC,EAAE;IACtF,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACtD,MAAM,KAA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,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC;QAClE,CAAC,CAAC,EAAE,CAAC;AACT,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const localToolNames: {
|
|
3
|
-
readonly listConfigs: "schemyx_list_configs";
|
|
4
|
-
readonly getLatestConfig: "schemyx_get_latest_config";
|
|
5
|
-
readonly getManifest: "schemyx_get_manifest";
|
|
6
|
-
readonly readResource: "schemyx_read_resource";
|
|
7
|
-
readonly callBackendTool: "schemyx_call_backend_tool";
|
|
8
|
-
readonly getThemeFile: "schemyx_get_theme_file";
|
|
9
|
-
readonly getImplementationGuide: "schemyx_get_implementation_guide";
|
|
10
|
-
};
|
|
11
|
-
export declare const localTools: Tool[];
|
|
1
|
+
export * from './server/tool-definitions';
|