langflow-mcp-server 1.2.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +90 -2
- package/dist/__tests__/fixtures/advanced-execution.d.ts +22 -0
- package/dist/__tests__/fixtures/advanced-execution.d.ts.map +1 -0
- package/dist/__tests__/fixtures/advanced-execution.js +77 -0
- package/dist/__tests__/fixtures/advanced-execution.js.map +1 -0
- package/dist/__tests__/fixtures/api-keys.d.ts +8 -0
- package/dist/__tests__/fixtures/api-keys.d.ts.map +1 -0
- package/dist/__tests__/fixtures/api-keys.js +38 -0
- package/dist/__tests__/fixtures/api-keys.js.map +1 -0
- package/dist/__tests__/fixtures/auth.d.ts +9 -0
- package/dist/__tests__/fixtures/auth.d.ts.map +1 -0
- package/dist/__tests__/fixtures/auth.js +26 -0
- package/dist/__tests__/fixtures/auth.js.map +1 -0
- package/dist/__tests__/fixtures/custom-components.d.ts +5 -0
- package/dist/__tests__/fixtures/custom-components.d.ts.map +1 -0
- package/dist/__tests__/fixtures/custom-components.js +49 -0
- package/dist/__tests__/fixtures/custom-components.js.map +1 -0
- package/dist/__tests__/fixtures/files.d.ts +14 -0
- package/dist/__tests__/fixtures/files.d.ts.map +1 -0
- package/dist/__tests__/fixtures/files.js +41 -0
- package/dist/__tests__/fixtures/files.js.map +1 -0
- package/dist/__tests__/fixtures/misc.d.ts +18 -0
- package/dist/__tests__/fixtures/misc.d.ts.map +1 -0
- package/dist/__tests__/fixtures/misc.js +101 -0
- package/dist/__tests__/fixtures/misc.js.map +1 -0
- package/dist/__tests__/fixtures/monitoring.d.ts +13 -0
- package/dist/__tests__/fixtures/monitoring.d.ts.map +1 -0
- package/dist/__tests__/fixtures/monitoring.js +88 -0
- package/dist/__tests__/fixtures/monitoring.js.map +1 -0
- package/dist/__tests__/fixtures/store.d.ts +18 -0
- package/dist/__tests__/fixtures/store.d.ts.map +1 -0
- package/dist/__tests__/fixtures/store.js +96 -0
- package/dist/__tests__/fixtures/store.js.map +1 -0
- package/dist/__tests__/fixtures/users.d.ts +9 -0
- package/dist/__tests__/fixtures/users.d.ts.map +1 -0
- package/dist/__tests__/fixtures/users.js +55 -0
- package/dist/__tests__/fixtures/users.js.map +1 -0
- package/dist/__tests__/fixtures/validation.d.ts +10 -0
- package/dist/__tests__/fixtures/validation.d.ts.map +1 -0
- package/dist/__tests__/fixtures/validation.js +43 -0
- package/dist/__tests__/fixtures/validation.js.map +1 -0
- package/dist/__tests__/fixtures/vertices.d.ts +29 -0
- package/dist/__tests__/fixtures/vertices.d.ts.map +1 -0
- package/dist/__tests__/fixtures/vertices.js +51 -0
- package/dist/__tests__/fixtures/vertices.js.map +1 -0
- package/dist/mcp/server.d.ts +2 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +344 -5
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +1218 -0
- package/dist/mcp/tools.js.map +1 -1
- package/dist/mcp/validation.d.ts +241 -0
- package/dist/mcp/validation.d.ts.map +1 -1
- package/dist/mcp/validation.js +211 -2
- package/dist/mcp/validation.js.map +1 -1
- package/dist/services/langflow-client.d.ts +131 -1
- package/dist/services/langflow-client.d.ts.map +1 -1
- package/dist/services/langflow-client.js +843 -1
- package/dist/services/langflow-client.js.map +1 -1
- package/dist/types/index.d.ts +226 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mockMonitorTransactionsParams = exports.mockTransactionsList = exports.mockTransactionResponse = exports.mockMigrateSessionParams = exports.mockMonitorSessionsParams = exports.mockMonitorMessagesParams = exports.mockSessionsList = exports.mockMessagesList = exports.mockMessageResponse = exports.mockVertexBuildMap = exports.mockMonitorBuildsParams = void 0;
|
|
4
|
+
exports.mockMonitorBuildsParams = {
|
|
5
|
+
flow_id: 'flow-123'
|
|
6
|
+
};
|
|
7
|
+
exports.mockVertexBuildMap = {
|
|
8
|
+
vertex_builds: {
|
|
9
|
+
'vertex-1': [{
|
|
10
|
+
status: 'completed',
|
|
11
|
+
duration: 1234,
|
|
12
|
+
timestamp: '2024-01-01T00:00:00Z'
|
|
13
|
+
}],
|
|
14
|
+
'vertex-2': [{
|
|
15
|
+
status: 'running',
|
|
16
|
+
duration: null,
|
|
17
|
+
timestamp: '2024-01-01T00:01:00Z'
|
|
18
|
+
}]
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.mockMessageResponse = {
|
|
22
|
+
id: 'msg-123',
|
|
23
|
+
session_id: 'session-456',
|
|
24
|
+
sender: 'user',
|
|
25
|
+
sender_name: 'Test User',
|
|
26
|
+
text: 'Hello, this is a test message',
|
|
27
|
+
timestamp: '2024-01-01T00:00:00Z',
|
|
28
|
+
flow_id: 'flow-123'
|
|
29
|
+
};
|
|
30
|
+
exports.mockMessagesList = [
|
|
31
|
+
exports.mockMessageResponse,
|
|
32
|
+
{
|
|
33
|
+
id: 'msg-124',
|
|
34
|
+
session_id: 'session-456',
|
|
35
|
+
sender: 'assistant',
|
|
36
|
+
sender_name: 'AI Assistant',
|
|
37
|
+
text: 'Response message',
|
|
38
|
+
timestamp: '2024-01-01T00:01:00Z',
|
|
39
|
+
flow_id: 'flow-123'
|
|
40
|
+
}
|
|
41
|
+
];
|
|
42
|
+
exports.mockSessionsList = [
|
|
43
|
+
'session-456',
|
|
44
|
+
'session-789',
|
|
45
|
+
'session-101'
|
|
46
|
+
];
|
|
47
|
+
exports.mockMonitorMessagesParams = {
|
|
48
|
+
flow_id: 'flow-123',
|
|
49
|
+
session_id: 'session-456',
|
|
50
|
+
sender: 'user',
|
|
51
|
+
sender_name: 'Test User',
|
|
52
|
+
order_by: 'timestamp'
|
|
53
|
+
};
|
|
54
|
+
exports.mockMonitorSessionsParams = {
|
|
55
|
+
flow_id: 'flow-123'
|
|
56
|
+
};
|
|
57
|
+
exports.mockMigrateSessionParams = {
|
|
58
|
+
old_session_id: 'session-old-123',
|
|
59
|
+
new_session_id: 'session-new-456'
|
|
60
|
+
};
|
|
61
|
+
exports.mockTransactionResponse = {
|
|
62
|
+
id: 'txn-123',
|
|
63
|
+
flow_id: 'flow-123',
|
|
64
|
+
status: 'completed',
|
|
65
|
+
started_at: '2024-01-01T00:00:00Z',
|
|
66
|
+
completed_at: '2024-01-01T00:05:00Z',
|
|
67
|
+
duration: 300000,
|
|
68
|
+
inputs: { input: 'test' },
|
|
69
|
+
outputs: { output: 'result' }
|
|
70
|
+
};
|
|
71
|
+
exports.mockTransactionsList = [
|
|
72
|
+
exports.mockTransactionResponse,
|
|
73
|
+
{
|
|
74
|
+
id: 'txn-124',
|
|
75
|
+
flow_id: 'flow-123',
|
|
76
|
+
status: 'failed',
|
|
77
|
+
started_at: '2024-01-01T00:10:00Z',
|
|
78
|
+
completed_at: '2024-01-01T00:10:05Z',
|
|
79
|
+
duration: 5000,
|
|
80
|
+
error: 'Connection timeout'
|
|
81
|
+
}
|
|
82
|
+
];
|
|
83
|
+
exports.mockMonitorTransactionsParams = {
|
|
84
|
+
flow_id: 'flow-123',
|
|
85
|
+
page: 1,
|
|
86
|
+
size: 10
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=monitoring.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitoring.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/monitoring.ts"],"names":[],"mappings":";;;AAWa,QAAA,uBAAuB,GAAwB;IAC1D,OAAO,EAAE,UAAU;CACpB,CAAC;AAEW,QAAA,kBAAkB,GAAwB;IACrD,aAAa,EAAE;QACb,UAAU,EAAE,CAAC;gBACX,MAAM,EAAE,WAAW;gBACnB,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,sBAAsB;aAClC,CAAC;QACF,UAAU,EAAE,CAAC;gBACX,MAAM,EAAE,SAAS;gBACjB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zD,+BAAuB;IACvB;QACE,EAAE,EAAE,SAAS;QACb,OAAO,EAAE,UAAU;QACnB,MAAM,EAAE,QAAQ;QAChB,UAAU,EAAE,sBAAsB;QAClC,YAAY,EAAE,sBAAsB;QACpC,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,oBAAoB;KAC5B;CACF,CAAC;AAEW,QAAA,6BAA6B,GAA8B;IACtE,OAAO,EAAE,UAAU;IACnB,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,EAAE;CACT,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StoreComponent, ListStoreComponentsParams, StoreTag, UserLike } from '../../types';
|
|
2
|
+
export declare const mockStoreComponent: StoreComponent;
|
|
3
|
+
export declare const mockStoreComponentsList: StoreComponent[];
|
|
4
|
+
export declare const mockListStoreComponentsParams: ListStoreComponentsParams;
|
|
5
|
+
export declare const mockStoreTag: StoreTag;
|
|
6
|
+
export declare const mockStoreTagsList: StoreTag[];
|
|
7
|
+
export declare const mockUserLike: UserLike;
|
|
8
|
+
export declare const mockUserLikesList: UserLike[];
|
|
9
|
+
export declare const mockCheckStoreResponse: {
|
|
10
|
+
available: boolean;
|
|
11
|
+
status: string;
|
|
12
|
+
version: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const mockCheckStoreApiKeyResponse: {
|
|
15
|
+
valid: boolean;
|
|
16
|
+
permissions: string[];
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,QAAQ,EACR,QAAQ,EACT,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,kBAAkB,EAAE,cAWhC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,cAAc,EA0BnD,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,yBAK3C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAG1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,EAkBvC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAG1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,EAUvC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;CAIlC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;CAGxC,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mockCheckStoreApiKeyResponse = exports.mockCheckStoreResponse = exports.mockUserLikesList = exports.mockUserLike = exports.mockStoreTagsList = exports.mockStoreTag = exports.mockListStoreComponentsParams = exports.mockStoreComponentsList = exports.mockStoreComponent = void 0;
|
|
4
|
+
exports.mockStoreComponent = {
|
|
5
|
+
id: 'store-comp-123',
|
|
6
|
+
name: 'Chat Model Component',
|
|
7
|
+
description: 'A pre-built chat model component',
|
|
8
|
+
tags: ['chat', 'llm', 'openai'],
|
|
9
|
+
author: 'Langflow Team',
|
|
10
|
+
downloads: 1500,
|
|
11
|
+
likes: 245,
|
|
12
|
+
version: '1.0.0',
|
|
13
|
+
created_at: '2024-01-01T00:00:00Z',
|
|
14
|
+
updated_at: '2024-01-15T00:00:00Z'
|
|
15
|
+
};
|
|
16
|
+
exports.mockStoreComponentsList = [
|
|
17
|
+
exports.mockStoreComponent,
|
|
18
|
+
{
|
|
19
|
+
id: 'store-comp-124',
|
|
20
|
+
name: 'Vector Store Component',
|
|
21
|
+
description: 'Component for vector storage and retrieval',
|
|
22
|
+
tags: ['vector', 'embeddings', 'rag'],
|
|
23
|
+
author: 'Community',
|
|
24
|
+
downloads: 890,
|
|
25
|
+
likes: 156,
|
|
26
|
+
version: '2.1.0',
|
|
27
|
+
created_at: '2024-01-05T00:00:00Z',
|
|
28
|
+
updated_at: '2024-01-20T00:00:00Z'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 'store-comp-125',
|
|
32
|
+
name: 'Data Processor',
|
|
33
|
+
description: 'Process and transform data',
|
|
34
|
+
tags: ['data', 'processing', 'utility'],
|
|
35
|
+
author: 'Langflow Team',
|
|
36
|
+
downloads: 2100,
|
|
37
|
+
likes: 378,
|
|
38
|
+
version: '1.5.0',
|
|
39
|
+
created_at: '2023-12-01T00:00:00Z',
|
|
40
|
+
updated_at: '2024-01-10T00:00:00Z'
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
exports.mockListStoreComponentsParams = {
|
|
44
|
+
page: 1,
|
|
45
|
+
limit: 10,
|
|
46
|
+
tags: ['chat', 'llm'],
|
|
47
|
+
search: 'chat model'
|
|
48
|
+
};
|
|
49
|
+
exports.mockStoreTag = {
|
|
50
|
+
name: 'chat',
|
|
51
|
+
count: 45
|
|
52
|
+
};
|
|
53
|
+
exports.mockStoreTagsList = [
|
|
54
|
+
exports.mockStoreTag,
|
|
55
|
+
{
|
|
56
|
+
name: 'llm',
|
|
57
|
+
count: 38
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'vector',
|
|
61
|
+
count: 22
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'rag',
|
|
65
|
+
count: 19
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'data',
|
|
69
|
+
count: 31
|
|
70
|
+
}
|
|
71
|
+
];
|
|
72
|
+
exports.mockUserLike = {
|
|
73
|
+
component_id: 'store-comp-123',
|
|
74
|
+
liked_at: '2024-01-15T12:30:00Z'
|
|
75
|
+
};
|
|
76
|
+
exports.mockUserLikesList = [
|
|
77
|
+
exports.mockUserLike,
|
|
78
|
+
{
|
|
79
|
+
component_id: 'store-comp-124',
|
|
80
|
+
liked_at: '2024-01-10T09:15:00Z'
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
component_id: 'store-comp-125',
|
|
84
|
+
liked_at: '2024-01-05T14:45:00Z'
|
|
85
|
+
}
|
|
86
|
+
];
|
|
87
|
+
exports.mockCheckStoreResponse = {
|
|
88
|
+
available: true,
|
|
89
|
+
status: 'online',
|
|
90
|
+
version: '1.0.0'
|
|
91
|
+
};
|
|
92
|
+
exports.mockCheckStoreApiKeyResponse = {
|
|
93
|
+
valid: true,
|
|
94
|
+
permissions: ['read', 'download']
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/store.ts"],"names":[],"mappings":";;;AAOa,QAAA,kBAAkB,GAAmB;IAChD,EAAE,EAAE,gBAAgB;IACpB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,kCAAkC;IAC/C,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC;IAC/B,MAAM,EAAE,eAAe;IACvB,SAAS,EAAE,IAAI;IACf,KAAK,EAAE,GAAG;IACV,OAAO,EAAE,OAAO;IAChB,UAAU,EAAE,sBAAsB;IAClC,UAAU,EAAE,sBAAsB;CACnC,CAAC;AAEW,QAAA,uBAAuB,GAAqB;IACvD,0BAAkB;IAClB;QACE,EAAE,EAAE,gBAAgB;QACpB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,4CAA4C;QACzD,IAAI,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,CAAC;QACrC,MAAM,EAAE,WAAW;QACnB,SAAS,EAAE,GAAG;QACd,KAAK,EAAE,GAAG;QACV,OAAO,EAAE,OAAO;QAChB,UAAU,EAAE,sBAAsB;QAClC,UAAU,EAAE,sBAAsB;KACnC;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,4BAA4B;QACzC,IAAI,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,CAAC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ate, UserUpdate, ListUsersParams } from '../../types';
|
|
2
|
+
export declare const mockUserRead: UserRead;
|
|
3
|
+
export declare const mockUserCreate: UserCreate;
|
|
4
|
+
export declare const mockUserUpdate: UserUpdate;
|
|
5
|
+
export declare const mockUsersList: UserRead[];
|
|
6
|
+
export declare const mockListUsersParams: ListUsersParams;
|
|
7
|
+
export declare const mockCurrentUser: UserRead;
|
|
8
|
+
export declare const mockPasswordResetResponse: UserRead;
|
|
9
|
+
//# sourceMappingURL=users.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/users.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,UAAU,EACV,UAAU,EACV,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,YAAY,EAAE,QAS1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,UAK5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,UAG5B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,EAqBnC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,eAGjC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,QAAuB,CAAC;AAEtD,eAAO,MAAM,yBAAyB,EAAE,QAGvC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mockPasswordResetResponse = exports.mockCurrentUser = exports.mockListUsersParams = exports.mockUsersList = exports.mockUserUpdate = exports.mockUserCreate = exports.mockUserRead = void 0;
|
|
4
|
+
exports.mockUserRead = {
|
|
5
|
+
id: 'user-123',
|
|
6
|
+
username: 'testuser',
|
|
7
|
+
email: 'test@example.com',
|
|
8
|
+
is_active: true,
|
|
9
|
+
is_superuser: false,
|
|
10
|
+
profile_image: 'avatar.png',
|
|
11
|
+
created_at: '2024-01-01T00:00:00Z',
|
|
12
|
+
updated_at: '2024-01-01T00:00:00Z'
|
|
13
|
+
};
|
|
14
|
+
exports.mockUserCreate = {
|
|
15
|
+
username: 'newuser',
|
|
16
|
+
password: 'securePassword123!',
|
|
17
|
+
email: 'newuser@example.com',
|
|
18
|
+
profile_image: 'default-avatar.png'
|
|
19
|
+
};
|
|
20
|
+
exports.mockUserUpdate = {
|
|
21
|
+
username: 'updateduser',
|
|
22
|
+
profile_image: 'new-avatar.png'
|
|
23
|
+
};
|
|
24
|
+
exports.mockUsersList = [
|
|
25
|
+
exports.mockUserRead,
|
|
26
|
+
{
|
|
27
|
+
id: 'user-124',
|
|
28
|
+
username: 'admin',
|
|
29
|
+
email: 'admin@example.com',
|
|
30
|
+
is_active: true,
|
|
31
|
+
is_superuser: true,
|
|
32
|
+
profile_image: 'admin-avatar.png',
|
|
33
|
+
created_at: '2023-12-01T00:00:00Z',
|
|
34
|
+
updated_at: '2024-01-15T00:00:00Z'
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 'user-125',
|
|
38
|
+
username: 'viewer',
|
|
39
|
+
email: 'viewer@example.com',
|
|
40
|
+
is_active: true,
|
|
41
|
+
is_superuser: false,
|
|
42
|
+
created_at: '2024-01-10T00:00:00Z',
|
|
43
|
+
updated_at: '2024-01-10T00:00:00Z'
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
exports.mockListUsersParams = {
|
|
47
|
+
skip: 0,
|
|
48
|
+
limit: 10
|
|
49
|
+
};
|
|
50
|
+
exports.mockCurrentUser = exports.mockUserRead;
|
|
51
|
+
exports.mockPasswordResetResponse = {
|
|
52
|
+
...exports.mockUserRead,
|
|
53
|
+
updated_at: '2024-01-20T00:00:00Z'
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=users.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/users.ts"],"names":[],"mappings":";;;AAOa,QAAA,YAAY,GAAa;IACpC,EAAE,EAAE,UAAU;IACd,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,IAAI;IACf,YAAY,EAAE,KAAK;IACnB,aAAa,EAAE,YAAY;IAC3B,UAAU,EAAE,sBAAsB;IAClC,UAAU,EAAE,sBAAsB;CACnC,CAAC;AAEW,QAAA,cAAc,GAAe;IACxC,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,oBAAoB;IAC9B,KAAK,EAAE,qBAAqB;IAC5B,aAAa,EAAE,oBAAoB;CACpC,CAAC;AAEW,QAAA,cAAc,GAAe;IACxC,QAAQ,EAAE,aAAa;IACvB,aAAa,EAAE,gBAAgB;CAChC,CAAC;AAEW,QAAA,aAAa,GAAe;IACvC,oBAAY;IACZ;QACE,EAAE,EAAE,UAAU;QACd,QAAQ,EAAE,OAAO;QACjB,KAAK,EAAE,mBAAmB;QAC1B,SAAS,EAAE,IAAI;QACf,YAAY,EAAE,IAAI;QAClB,aAAa,EAAE,kBAAkB;QACjC,UAAU,EAAE,sBAAsB;QAClC,UAAU,EAAE,sBAAsB;KACnC;IACD;QACE,EAAE,EAAE,UAAU;QACd,QAAQ,EAAE,QAAQ;QAClB,KAAK,EAAE,oBAAoB;QAC3B,SAAS,EAAE,IAAI;QACf,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,sBAAsB;QAClC,UAAU,EAAE,sBAAsB;KACnC;CACF,CAAC;AAEW,QAAA,mBAAmB,GAAoB;IAClD,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,EAAE;CACV,CAAC;AAEW,QAAA,eAAe,GAAa,oBAAY,CAAC;AAEzC,QAAA,yBAAyB,GAAa;IACjD,GAAG,oBAAY;IACf,UAAU,EAAE,sBAAsB;CACnC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ValidateCodeRequest, ValidateCodeResponse, ValidatePromptRequest, ValidatePromptResponse } from '../../types';
|
|
2
|
+
export declare const mockValidateCodeRequest: ValidateCodeRequest;
|
|
3
|
+
export declare const mockValidCodeResponse: ValidateCodeResponse;
|
|
4
|
+
export declare const mockInvalidCodeResponse: ValidateCodeResponse;
|
|
5
|
+
export declare const mockCodeWithWarningsResponse: ValidateCodeResponse;
|
|
6
|
+
export declare const mockValidatePromptRequest: ValidatePromptRequest;
|
|
7
|
+
export declare const mockValidPromptResponse: ValidatePromptResponse;
|
|
8
|
+
export declare const mockInvalidPromptResponse: ValidatePromptResponse;
|
|
9
|
+
export declare const mockPromptNoVariablesResponse: ValidatePromptResponse;
|
|
10
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,uBAAuB,EAAE,mBAErC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,oBAKnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,oBAKrC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,oBAK1C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,qBAEvC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,sBAIrC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,sBAIvC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,sBAI3C,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mockPromptNoVariablesResponse = exports.mockInvalidPromptResponse = exports.mockValidPromptResponse = exports.mockValidatePromptRequest = exports.mockCodeWithWarningsResponse = exports.mockInvalidCodeResponse = exports.mockValidCodeResponse = exports.mockValidateCodeRequest = void 0;
|
|
4
|
+
exports.mockValidateCodeRequest = {
|
|
5
|
+
code: 'def hello_world():\n return "Hello, World!"'
|
|
6
|
+
};
|
|
7
|
+
exports.mockValidCodeResponse = {
|
|
8
|
+
valid: true,
|
|
9
|
+
is_valid: true,
|
|
10
|
+
errors: [],
|
|
11
|
+
warnings: []
|
|
12
|
+
};
|
|
13
|
+
exports.mockInvalidCodeResponse = {
|
|
14
|
+
valid: false,
|
|
15
|
+
is_valid: false,
|
|
16
|
+
errors: ['SyntaxError: unexpected EOF while parsing', 'IndentationError: unexpected indent'],
|
|
17
|
+
warnings: []
|
|
18
|
+
};
|
|
19
|
+
exports.mockCodeWithWarningsResponse = {
|
|
20
|
+
valid: true,
|
|
21
|
+
is_valid: true,
|
|
22
|
+
errors: [],
|
|
23
|
+
warnings: ['Unused variable: x']
|
|
24
|
+
};
|
|
25
|
+
exports.mockValidatePromptRequest = {
|
|
26
|
+
prompt: 'Hello {name}, welcome to {system}!'
|
|
27
|
+
};
|
|
28
|
+
exports.mockValidPromptResponse = {
|
|
29
|
+
valid: true,
|
|
30
|
+
errors: [],
|
|
31
|
+
variables: ['name', 'system']
|
|
32
|
+
};
|
|
33
|
+
exports.mockInvalidPromptResponse = {
|
|
34
|
+
valid: false,
|
|
35
|
+
errors: ['Unclosed placeholder: {name'],
|
|
36
|
+
variables: []
|
|
37
|
+
};
|
|
38
|
+
exports.mockPromptNoVariablesResponse = {
|
|
39
|
+
valid: true,
|
|
40
|
+
errors: [],
|
|
41
|
+
variables: []
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/validation.ts"],"names":[],"mappings":";;;AAOa,QAAA,uBAAuB,GAAwB;IAC1D,IAAI,EAAE,gDAAgD;CACvD,CAAC;AAEW,QAAA,qBAAqB,GAAyB;IACzD,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,EAAE;IACV,QAAQ,EAAE,EAAE;CACb,CAAC;AAEW,QAAA,uBAAuB,GAAyB;IAC3D,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,CAAC,2CAA2C,EAAE,qCAAqC,CAAC;IAC5F,QAAQ,EAAE,EAAE;CACb,CAAC;AAEW,QAAA,4BAA4B,GAAyB;IAChE,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,EAAE;IACV,QAAQ,EAAE,CAAC,oBAAoB,CAAC;CACjC,CAAC;AAEW,QAAA,yBAAyB,GAA0B;IAC9D,MAAM,EAAE,oCAAoC;CAC7C,CAAC;AAEW,QAAA,uBAAuB,GAA2B;IAC7D,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;CAC9B,CAAC;AAEW,QAAA,yBAAyB,GAA2B;IAC/D,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,CAAC,6BAA6B,CAAC;IACvC,SAAS,EAAE,EAAE;CACd,CAAC;AAEW,QAAA,6BAA6B,GAA2B;IACnE,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,EAAE;CACd,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BuildVerticesRequest, VerticesOrderResponse, GetVertexParams, StreamVertexBuildParams } from '../../types';
|
|
2
|
+
export declare const mockBuildVerticesRequest: BuildVerticesRequest;
|
|
3
|
+
export declare const mockVerticesOrderResponse: VerticesOrderResponse;
|
|
4
|
+
export declare const mockGetVertexParams: GetVertexParams;
|
|
5
|
+
export declare const mockVertexResponse: {
|
|
6
|
+
id: string;
|
|
7
|
+
vertex_id: string;
|
|
8
|
+
flow_id: string;
|
|
9
|
+
component_type: string;
|
|
10
|
+
status: string;
|
|
11
|
+
inputs: {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
outputs: {
|
|
15
|
+
text: string;
|
|
16
|
+
};
|
|
17
|
+
metadata: {
|
|
18
|
+
execution_time: number;
|
|
19
|
+
timestamp: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const mockStreamVertexBuildParams: StreamVertexBuildParams;
|
|
23
|
+
export declare const mockStreamVertexResponse: {
|
|
24
|
+
vertex_id: string;
|
|
25
|
+
status: string;
|
|
26
|
+
chunk: string;
|
|
27
|
+
completed: boolean;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=vertices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vertices.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/vertices.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,wBAAwB,EAAE,oBAUtC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,qBAQvC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,eAGjC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;CAY9B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,uBAGzC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;CAKpC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mockStreamVertexResponse = exports.mockStreamVertexBuildParams = exports.mockVertexResponse = exports.mockGetVertexParams = exports.mockVerticesOrderResponse = exports.mockBuildVerticesRequest = void 0;
|
|
4
|
+
exports.mockBuildVerticesRequest = {
|
|
5
|
+
data: {
|
|
6
|
+
nodes: [
|
|
7
|
+
{ id: 'node-1', type: 'input' },
|
|
8
|
+
{ id: 'node-2', type: 'process' },
|
|
9
|
+
{ id: 'node-3', type: 'output' }
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
stop_component_id: 'node-3',
|
|
13
|
+
start_component_id: 'node-1'
|
|
14
|
+
};
|
|
15
|
+
exports.mockVerticesOrderResponse = {
|
|
16
|
+
ids: ['vertex-1', 'vertex-2', 'vertex-3'],
|
|
17
|
+
run_id: 'run-123',
|
|
18
|
+
execution_order: [
|
|
19
|
+
{ vertex_id: 'vertex-1', position: 0 },
|
|
20
|
+
{ vertex_id: 'vertex-2', position: 1 },
|
|
21
|
+
{ vertex_id: 'vertex-3', position: 2 }
|
|
22
|
+
]
|
|
23
|
+
};
|
|
24
|
+
exports.mockGetVertexParams = {
|
|
25
|
+
flow_id: 'flow-123',
|
|
26
|
+
vertex_id: 'vertex-1'
|
|
27
|
+
};
|
|
28
|
+
exports.mockVertexResponse = {
|
|
29
|
+
id: 'vertex-1',
|
|
30
|
+
vertex_id: 'vertex-1',
|
|
31
|
+
flow_id: 'flow-123',
|
|
32
|
+
component_type: 'ChatInput',
|
|
33
|
+
status: 'completed',
|
|
34
|
+
inputs: { message: 'test input' },
|
|
35
|
+
outputs: { text: 'processed output' },
|
|
36
|
+
metadata: {
|
|
37
|
+
execution_time: 0.5,
|
|
38
|
+
timestamp: '2024-01-01T00:00:00Z'
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
exports.mockStreamVertexBuildParams = {
|
|
42
|
+
flow_id: 'flow-123',
|
|
43
|
+
vertex_id: 'vertex-1'
|
|
44
|
+
};
|
|
45
|
+
exports.mockStreamVertexResponse = {
|
|
46
|
+
vertex_id: 'vertex-1',
|
|
47
|
+
status: 'streaming',
|
|
48
|
+
chunk: 'partial output data',
|
|
49
|
+
completed: false
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=vertices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vertices.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/vertices.ts"],"names":[],"mappings":";;;AAOa,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AW;IACnB,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,KAAK;CACjB,CAAC"}
|
package/dist/mcp/server.d.ts
CHANGED
package/dist/mcp/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":"AAuGA,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAA+B;;IAyD7C,OAAO,CAAC,qBAAqB;IAW7B,OAAO,CAAC,qBAAqB;IAiB7B,OAAO,CAAC,gBAAgB;IAYxB,OAAO,CAAC,mBAAmB;IA2C3B,OAAO,CAAC,aAAa;IAyoBf,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAMpB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAIhC"}
|