@lyrra/mcp-server 1.1.2 → 1.1.5

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.
Files changed (105) hide show
  1. package/README.md +59 -242
  2. package/dist/auth-session.js +160 -0
  3. package/dist/eduflow-block-docs.js +438 -0
  4. package/dist/index.js +179 -12
  5. package/dist/lyrra-http.js +80 -0
  6. package/dist/openapi-parse.js +61 -0
  7. package/dist/register-eduflow-block-tools.js +31 -0
  8. package/package.json +36 -13
  9. package/Dockerfile +0 -16
  10. package/dist/client.d.ts +0 -23
  11. package/dist/client.d.ts.map +0 -1
  12. package/dist/client.js +0 -92
  13. package/dist/client.js.map +0 -1
  14. package/dist/config.d.ts +0 -8
  15. package/dist/config.d.ts.map +0 -1
  16. package/dist/config.js +0 -8
  17. package/dist/config.js.map +0 -1
  18. package/dist/http-server.d.ts +0 -8
  19. package/dist/http-server.d.ts.map +0 -1
  20. package/dist/http-server.js +0 -476
  21. package/dist/http-server.js.map +0 -1
  22. package/dist/index.d.ts +0 -3
  23. package/dist/index.d.ts.map +0 -1
  24. package/dist/index.js.map +0 -1
  25. package/dist/resources/block-types.d.ts +0 -318
  26. package/dist/resources/block-types.d.ts.map +0 -1
  27. package/dist/resources/block-types.js +0 -297
  28. package/dist/resources/block-types.js.map +0 -1
  29. package/dist/resources/flow-schema.d.ts +0 -147
  30. package/dist/resources/flow-schema.d.ts.map +0 -1
  31. package/dist/resources/flow-schema.js +0 -143
  32. package/dist/resources/flow-schema.js.map +0 -1
  33. package/dist/server-factory.d.ts +0 -8
  34. package/dist/server-factory.d.ts.map +0 -1
  35. package/dist/server-factory.js +0 -82
  36. package/dist/server-factory.js.map +0 -1
  37. package/dist/tools/admin.d.ts +0 -265
  38. package/dist/tools/admin.d.ts.map +0 -1
  39. package/dist/tools/admin.js +0 -118
  40. package/dist/tools/admin.js.map +0 -1
  41. package/dist/tools/ai-designer.d.ts +0 -297
  42. package/dist/tools/ai-designer.d.ts.map +0 -1
  43. package/dist/tools/ai-designer.js +0 -89
  44. package/dist/tools/ai-designer.js.map +0 -1
  45. package/dist/tools/analytics.d.ts +0 -95
  46. package/dist/tools/analytics.d.ts.map +0 -1
  47. package/dist/tools/analytics.js +0 -44
  48. package/dist/tools/analytics.js.map +0 -1
  49. package/dist/tools/auth.d.ts +0 -61
  50. package/dist/tools/auth.d.ts.map +0 -1
  51. package/dist/tools/auth.js +0 -36
  52. package/dist/tools/auth.js.map +0 -1
  53. package/dist/tools/blocks.d.ts +0 -401
  54. package/dist/tools/blocks.d.ts.map +0 -1
  55. package/dist/tools/blocks.js +0 -167
  56. package/dist/tools/blocks.js.map +0 -1
  57. package/dist/tools/connections.d.ts +0 -173
  58. package/dist/tools/connections.d.ts.map +0 -1
  59. package/dist/tools/connections.js +0 -81
  60. package/dist/tools/connections.js.map +0 -1
  61. package/dist/tools/eduflow.d.ts +0 -409
  62. package/dist/tools/eduflow.d.ts.map +0 -1
  63. package/dist/tools/eduflow.js +0 -139
  64. package/dist/tools/eduflow.js.map +0 -1
  65. package/dist/tools/participants.d.ts +0 -221
  66. package/dist/tools/participants.d.ts.map +0 -1
  67. package/dist/tools/participants.js +0 -70
  68. package/dist/tools/participants.js.map +0 -1
  69. package/dist/tools/presentation.d.ts +0 -233
  70. package/dist/tools/presentation.d.ts.map +0 -1
  71. package/dist/tools/presentation.js +0 -57
  72. package/dist/tools/presentation.js.map +0 -1
  73. package/dist/tools/projects.d.ts +0 -131
  74. package/dist/tools/projects.d.ts.map +0 -1
  75. package/dist/tools/projects.js +0 -55
  76. package/dist/tools/projects.js.map +0 -1
  77. package/dist/tools/resources.d.ts +0 -93
  78. package/dist/tools/resources.d.ts.map +0 -1
  79. package/dist/tools/resources.js +0 -37
  80. package/dist/tools/resources.js.map +0 -1
  81. package/dist/tools/store.d.ts +0 -125
  82. package/dist/tools/store.d.ts.map +0 -1
  83. package/dist/tools/store.js +0 -66
  84. package/dist/tools/store.js.map +0 -1
  85. package/mcp-config.example.json +0 -14
  86. package/src/client.ts +0 -106
  87. package/src/config.ts +0 -7
  88. package/src/http-server.ts +0 -591
  89. package/src/index.ts +0 -23
  90. package/src/resources/block-types.ts +0 -298
  91. package/src/resources/flow-schema.ts +0 -148
  92. package/src/server-factory.ts +0 -109
  93. package/src/tools/admin.ts +0 -128
  94. package/src/tools/ai-designer.ts +0 -97
  95. package/src/tools/analytics.ts +0 -49
  96. package/src/tools/auth.ts +0 -39
  97. package/src/tools/blocks.ts +0 -180
  98. package/src/tools/connections.ts +0 -83
  99. package/src/tools/eduflow.ts +0 -150
  100. package/src/tools/participants.ts +0 -77
  101. package/src/tools/presentation.ts +0 -61
  102. package/src/tools/projects.ts +0 -61
  103. package/src/tools/resources.ts +0 -41
  104. package/src/tools/store.ts +0 -67
  105. package/tsconfig.json +0 -19
@@ -1,61 +0,0 @@
1
- import { z } from 'zod';
2
- import { LyrraClient } from '../client.js';
3
- export declare function createAuthTools(c: LyrraClient): {
4
- auth_login: {
5
- description: string;
6
- inputSchema: z.ZodObject<{
7
- email: z.ZodString;
8
- password: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- email: string;
11
- password: string;
12
- }, {
13
- email: string;
14
- password: string;
15
- }>;
16
- handler: ({ email, password }: {
17
- email: string;
18
- password: string;
19
- }) => Promise<any>;
20
- };
21
- auth_get_profile: {
22
- description: string;
23
- inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
24
- handler: () => Promise<any>;
25
- };
26
- auth_list_api_keys: {
27
- description: string;
28
- inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
29
- handler: () => Promise<any>;
30
- };
31
- };
32
- export declare const authTools: {
33
- auth_login: {
34
- description: string;
35
- inputSchema: z.ZodObject<{
36
- email: z.ZodString;
37
- password: z.ZodString;
38
- }, "strip", z.ZodTypeAny, {
39
- email: string;
40
- password: string;
41
- }, {
42
- email: string;
43
- password: string;
44
- }>;
45
- handler: ({ email, password }: {
46
- email: string;
47
- password: string;
48
- }) => Promise<any>;
49
- };
50
- auth_get_profile: {
51
- description: string;
52
- inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
53
- handler: () => Promise<any>;
54
- };
55
- auth_list_api_keys: {
56
- description: string;
57
- inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
58
- handler: () => Promise<any>;
59
- };
60
- };
61
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/tools/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,wBAAgB,eAAe,CAAC,CAAC,EAAE,WAAW;;;;;;;;;;;;;uCAQH;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;EAuB7E;AAGD,eAAO,MAAM,SAAS;;;;;;;;;;;;;uCA1BqB;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;CA0BvB,CAAC"}
@@ -1,36 +0,0 @@
1
- import { z } from 'zod';
2
- import { client as defaultClient } from '../client.js';
3
- export function createAuthTools(c) {
4
- return {
5
- auth_login: {
6
- description: 'Se connecter à LYRRA Studio avec email et mot de passe. ⚠️ NE PAS utiliser si LYRRA_CLIENT_SECRET est configuré — l\'authentification est alors automatique via API Key. Utiliser uniquement si aucune clé API n\'est définie.',
7
- inputSchema: z.object({
8
- email: z.string().email().describe('Adresse email du compte'),
9
- password: z.string().describe('Mot de passe'),
10
- }),
11
- handler: async ({ email, password }) => {
12
- const result = await c.post('/auth/login', { email, password });
13
- if (result.token)
14
- c.setToken(result.token);
15
- return result;
16
- },
17
- },
18
- auth_get_profile: {
19
- description: 'Récupérer le profil de l\'utilisateur connecté (nom, email, crédits, rôle, institution, etc.).',
20
- inputSchema: z.object({}),
21
- handler: async () => {
22
- return c.get('/auth/me');
23
- },
24
- },
25
- auth_list_api_keys: {
26
- description: 'Lister toutes les clés API de l\'utilisateur connecté.',
27
- inputSchema: z.object({}),
28
- handler: async () => {
29
- return c.get('/api-keys');
30
- },
31
- },
32
- };
33
- }
34
- // Backward compatibility for stdio mode
35
- export const authTools = createAuthTools(defaultClient);
36
- //# sourceMappingURL=auth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/tools/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,UAAU,eAAe,CAAC,CAAc;IAC5C,OAAO;QACL,UAAU,EAAE;YACV,WAAW,EAAE,gOAAgO;YAC7O,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;gBACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;gBAC7D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC;aAC9C,CAAC;YACF,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAuC,EAAE,EAAE;gBAC1E,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;gBAChE,IAAI,MAAM,CAAC,KAAK;oBAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAC3C,OAAO,MAAM,CAAC;YAChB,CAAC;SACF;QAED,gBAAgB,EAAE;YAChB,WAAW,EAAE,gGAAgG;YAC7G,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;YACzB,OAAO,EAAE,KAAK,IAAI,EAAE;gBAClB,OAAO,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YAC3B,CAAC;SACF;QAED,kBAAkB,EAAE;YAClB,WAAW,EAAE,wDAAwD;YACrE,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;YACzB,OAAO,EAAE,KAAK,IAAI,EAAE;gBAClB,OAAO,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;YAC5B,CAAC;SACF;KACF,CAAC;AACJ,CAAC;AAED,wCAAwC;AACxC,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC"}
@@ -1,401 +0,0 @@
1
- import { z } from 'zod';
2
- import { LyrraClient } from '../client.js';
3
- export declare function createBlocksTools(c: LyrraClient): {
4
- block_list_types: {
5
- description: string;
6
- inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
7
- handler: () => Promise<{
8
- types: {
9
- type: string;
10
- name: string;
11
- description: string;
12
- }[];
13
- }>;
14
- };
15
- block_get: {
16
- description: string;
17
- inputSchema: z.ZodObject<{
18
- flowId: z.ZodString;
19
- blockId: z.ZodString;
20
- }, "strip", z.ZodTypeAny, {
21
- flowId: string;
22
- blockId: string;
23
- }, {
24
- flowId: string;
25
- blockId: string;
26
- }>;
27
- handler: ({ flowId, blockId }: {
28
- flowId: string;
29
- blockId: string;
30
- }) => Promise<any>;
31
- };
32
- block_create: {
33
- description: string;
34
- inputSchema: z.ZodObject<{
35
- flowId: z.ZodString;
36
- type: z.ZodEnum<["text", "audio", "quiz", "video", "pdf", "image", "loop", "evaluation", "split", "merge", "timer", "start", "end", "chart", "timeline", "dys_reader", "dys_image_zones", "dys_reading_practice", "dys_clock", "glossary", "subflow", "mindmap", "form", "certification", "email", "voice_assessment", "presentation", "browser", "self_assessment"]>;
37
- title: z.ZodString;
38
- content: z.ZodRecord<z.ZodString, z.ZodAny>;
39
- positionX: z.ZodOptional<z.ZodNumber>;
40
- positionY: z.ZodOptional<z.ZodNumber>;
41
- order: z.ZodOptional<z.ZodNumber>;
42
- }, "strip", z.ZodTypeAny, {
43
- type: "email" | "start" | "end" | "text" | "audio" | "quiz" | "video" | "pdf" | "image" | "loop" | "evaluation" | "split" | "merge" | "timer" | "chart" | "timeline" | "dys_reader" | "dys_image_zones" | "dys_reading_practice" | "dys_clock" | "glossary" | "subflow" | "mindmap" | "form" | "certification" | "voice_assessment" | "presentation" | "browser" | "self_assessment";
44
- flowId: string;
45
- title: string;
46
- content: Record<string, any>;
47
- positionX?: number | undefined;
48
- positionY?: number | undefined;
49
- order?: number | undefined;
50
- }, {
51
- type: "email" | "start" | "end" | "text" | "audio" | "quiz" | "video" | "pdf" | "image" | "loop" | "evaluation" | "split" | "merge" | "timer" | "chart" | "timeline" | "dys_reader" | "dys_image_zones" | "dys_reading_practice" | "dys_clock" | "glossary" | "subflow" | "mindmap" | "form" | "certification" | "voice_assessment" | "presentation" | "browser" | "self_assessment";
52
- flowId: string;
53
- title: string;
54
- content: Record<string, any>;
55
- positionX?: number | undefined;
56
- positionY?: number | undefined;
57
- order?: number | undefined;
58
- }>;
59
- handler: ({ flowId, ...blockData }: any) => Promise<{
60
- success: boolean;
61
- block: any;
62
- }>;
63
- };
64
- block_update: {
65
- description: string;
66
- inputSchema: z.ZodObject<{
67
- flowId: z.ZodString;
68
- blockId: z.ZodString;
69
- title: z.ZodOptional<z.ZodString>;
70
- content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
71
- positionX: z.ZodOptional<z.ZodNumber>;
72
- positionY: z.ZodOptional<z.ZodNumber>;
73
- order: z.ZodOptional<z.ZodNumber>;
74
- conditions: z.ZodOptional<z.ZodAny>;
75
- comment: z.ZodOptional<z.ZodString>;
76
- }, "strip", z.ZodTypeAny, {
77
- flowId: string;
78
- blockId: string;
79
- title?: string | undefined;
80
- content?: Record<string, any> | undefined;
81
- positionX?: number | undefined;
82
- positionY?: number | undefined;
83
- order?: number | undefined;
84
- conditions?: any;
85
- comment?: string | undefined;
86
- }, {
87
- flowId: string;
88
- blockId: string;
89
- title?: string | undefined;
90
- content?: Record<string, any> | undefined;
91
- positionX?: number | undefined;
92
- positionY?: number | undefined;
93
- order?: number | undefined;
94
- conditions?: any;
95
- comment?: string | undefined;
96
- }>;
97
- handler: ({ flowId, blockId, ...data }: any) => Promise<any>;
98
- };
99
- block_batch_update: {
100
- description: string;
101
- inputSchema: z.ZodObject<{
102
- flowId: z.ZodString;
103
- blocks: z.ZodArray<z.ZodObject<{
104
- id: z.ZodString;
105
- type: z.ZodString;
106
- title: z.ZodString;
107
- content: z.ZodAny;
108
- positionX: z.ZodOptional<z.ZodNumber>;
109
- positionY: z.ZodOptional<z.ZodNumber>;
110
- order: z.ZodOptional<z.ZodNumber>;
111
- conditions: z.ZodOptional<z.ZodAny>;
112
- comment: z.ZodOptional<z.ZodString>;
113
- }, "strip", z.ZodTypeAny, {
114
- type: string;
115
- title: string;
116
- id: string;
117
- content?: any;
118
- positionX?: number | undefined;
119
- positionY?: number | undefined;
120
- order?: number | undefined;
121
- conditions?: any;
122
- comment?: string | undefined;
123
- }, {
124
- type: string;
125
- title: string;
126
- id: string;
127
- content?: any;
128
- positionX?: number | undefined;
129
- positionY?: number | undefined;
130
- order?: number | undefined;
131
- conditions?: any;
132
- comment?: string | undefined;
133
- }>, "many">;
134
- }, "strip", z.ZodTypeAny, {
135
- flowId: string;
136
- blocks: {
137
- type: string;
138
- title: string;
139
- id: string;
140
- content?: any;
141
- positionX?: number | undefined;
142
- positionY?: number | undefined;
143
- order?: number | undefined;
144
- conditions?: any;
145
- comment?: string | undefined;
146
- }[];
147
- }, {
148
- flowId: string;
149
- blocks: {
150
- type: string;
151
- title: string;
152
- id: string;
153
- content?: any;
154
- positionX?: number | undefined;
155
- positionY?: number | undefined;
156
- order?: number | undefined;
157
- conditions?: any;
158
- comment?: string | undefined;
159
- }[];
160
- }>;
161
- handler: ({ flowId, blocks }: any) => Promise<any>;
162
- };
163
- block_delete: {
164
- description: string;
165
- inputSchema: z.ZodObject<{
166
- flowId: z.ZodString;
167
- blockId: z.ZodString;
168
- }, "strip", z.ZodTypeAny, {
169
- flowId: string;
170
- blockId: string;
171
- }, {
172
- flowId: string;
173
- blockId: string;
174
- }>;
175
- handler: ({ flowId, blockId }: {
176
- flowId: string;
177
- blockId: string;
178
- }) => Promise<{
179
- success: boolean;
180
- remainingBlocks: any;
181
- remainingEdges: any;
182
- }>;
183
- };
184
- block_generate_tts: {
185
- description: string;
186
- inputSchema: z.ZodObject<{
187
- flowId: z.ZodString;
188
- blockId: z.ZodString;
189
- }, "strip", z.ZodTypeAny, {
190
- flowId: string;
191
- blockId: string;
192
- }, {
193
- flowId: string;
194
- blockId: string;
195
- }>;
196
- handler: ({ flowId, blockId }: {
197
- flowId: string;
198
- blockId: string;
199
- }) => Promise<any>;
200
- };
201
- };
202
- export declare const blocksTools: {
203
- block_list_types: {
204
- description: string;
205
- inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
206
- handler: () => Promise<{
207
- types: {
208
- type: string;
209
- name: string;
210
- description: string;
211
- }[];
212
- }>;
213
- };
214
- block_get: {
215
- description: string;
216
- inputSchema: z.ZodObject<{
217
- flowId: z.ZodString;
218
- blockId: z.ZodString;
219
- }, "strip", z.ZodTypeAny, {
220
- flowId: string;
221
- blockId: string;
222
- }, {
223
- flowId: string;
224
- blockId: string;
225
- }>;
226
- handler: ({ flowId, blockId }: {
227
- flowId: string;
228
- blockId: string;
229
- }) => Promise<any>;
230
- };
231
- block_create: {
232
- description: string;
233
- inputSchema: z.ZodObject<{
234
- flowId: z.ZodString;
235
- type: z.ZodEnum<["text", "audio", "quiz", "video", "pdf", "image", "loop", "evaluation", "split", "merge", "timer", "start", "end", "chart", "timeline", "dys_reader", "dys_image_zones", "dys_reading_practice", "dys_clock", "glossary", "subflow", "mindmap", "form", "certification", "email", "voice_assessment", "presentation", "browser", "self_assessment"]>;
236
- title: z.ZodString;
237
- content: z.ZodRecord<z.ZodString, z.ZodAny>;
238
- positionX: z.ZodOptional<z.ZodNumber>;
239
- positionY: z.ZodOptional<z.ZodNumber>;
240
- order: z.ZodOptional<z.ZodNumber>;
241
- }, "strip", z.ZodTypeAny, {
242
- type: "email" | "start" | "end" | "text" | "audio" | "quiz" | "video" | "pdf" | "image" | "loop" | "evaluation" | "split" | "merge" | "timer" | "chart" | "timeline" | "dys_reader" | "dys_image_zones" | "dys_reading_practice" | "dys_clock" | "glossary" | "subflow" | "mindmap" | "form" | "certification" | "voice_assessment" | "presentation" | "browser" | "self_assessment";
243
- flowId: string;
244
- title: string;
245
- content: Record<string, any>;
246
- positionX?: number | undefined;
247
- positionY?: number | undefined;
248
- order?: number | undefined;
249
- }, {
250
- type: "email" | "start" | "end" | "text" | "audio" | "quiz" | "video" | "pdf" | "image" | "loop" | "evaluation" | "split" | "merge" | "timer" | "chart" | "timeline" | "dys_reader" | "dys_image_zones" | "dys_reading_practice" | "dys_clock" | "glossary" | "subflow" | "mindmap" | "form" | "certification" | "voice_assessment" | "presentation" | "browser" | "self_assessment";
251
- flowId: string;
252
- title: string;
253
- content: Record<string, any>;
254
- positionX?: number | undefined;
255
- positionY?: number | undefined;
256
- order?: number | undefined;
257
- }>;
258
- handler: ({ flowId, ...blockData }: any) => Promise<{
259
- success: boolean;
260
- block: any;
261
- }>;
262
- };
263
- block_update: {
264
- description: string;
265
- inputSchema: z.ZodObject<{
266
- flowId: z.ZodString;
267
- blockId: z.ZodString;
268
- title: z.ZodOptional<z.ZodString>;
269
- content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
270
- positionX: z.ZodOptional<z.ZodNumber>;
271
- positionY: z.ZodOptional<z.ZodNumber>;
272
- order: z.ZodOptional<z.ZodNumber>;
273
- conditions: z.ZodOptional<z.ZodAny>;
274
- comment: z.ZodOptional<z.ZodString>;
275
- }, "strip", z.ZodTypeAny, {
276
- flowId: string;
277
- blockId: string;
278
- title?: string | undefined;
279
- content?: Record<string, any> | undefined;
280
- positionX?: number | undefined;
281
- positionY?: number | undefined;
282
- order?: number | undefined;
283
- conditions?: any;
284
- comment?: string | undefined;
285
- }, {
286
- flowId: string;
287
- blockId: string;
288
- title?: string | undefined;
289
- content?: Record<string, any> | undefined;
290
- positionX?: number | undefined;
291
- positionY?: number | undefined;
292
- order?: number | undefined;
293
- conditions?: any;
294
- comment?: string | undefined;
295
- }>;
296
- handler: ({ flowId, blockId, ...data }: any) => Promise<any>;
297
- };
298
- block_batch_update: {
299
- description: string;
300
- inputSchema: z.ZodObject<{
301
- flowId: z.ZodString;
302
- blocks: z.ZodArray<z.ZodObject<{
303
- id: z.ZodString;
304
- type: z.ZodString;
305
- title: z.ZodString;
306
- content: z.ZodAny;
307
- positionX: z.ZodOptional<z.ZodNumber>;
308
- positionY: z.ZodOptional<z.ZodNumber>;
309
- order: z.ZodOptional<z.ZodNumber>;
310
- conditions: z.ZodOptional<z.ZodAny>;
311
- comment: z.ZodOptional<z.ZodString>;
312
- }, "strip", z.ZodTypeAny, {
313
- type: string;
314
- title: string;
315
- id: string;
316
- content?: any;
317
- positionX?: number | undefined;
318
- positionY?: number | undefined;
319
- order?: number | undefined;
320
- conditions?: any;
321
- comment?: string | undefined;
322
- }, {
323
- type: string;
324
- title: string;
325
- id: string;
326
- content?: any;
327
- positionX?: number | undefined;
328
- positionY?: number | undefined;
329
- order?: number | undefined;
330
- conditions?: any;
331
- comment?: string | undefined;
332
- }>, "many">;
333
- }, "strip", z.ZodTypeAny, {
334
- flowId: string;
335
- blocks: {
336
- type: string;
337
- title: string;
338
- id: string;
339
- content?: any;
340
- positionX?: number | undefined;
341
- positionY?: number | undefined;
342
- order?: number | undefined;
343
- conditions?: any;
344
- comment?: string | undefined;
345
- }[];
346
- }, {
347
- flowId: string;
348
- blocks: {
349
- type: string;
350
- title: string;
351
- id: string;
352
- content?: any;
353
- positionX?: number | undefined;
354
- positionY?: number | undefined;
355
- order?: number | undefined;
356
- conditions?: any;
357
- comment?: string | undefined;
358
- }[];
359
- }>;
360
- handler: ({ flowId, blocks }: any) => Promise<any>;
361
- };
362
- block_delete: {
363
- description: string;
364
- inputSchema: z.ZodObject<{
365
- flowId: z.ZodString;
366
- blockId: z.ZodString;
367
- }, "strip", z.ZodTypeAny, {
368
- flowId: string;
369
- blockId: string;
370
- }, {
371
- flowId: string;
372
- blockId: string;
373
- }>;
374
- handler: ({ flowId, blockId }: {
375
- flowId: string;
376
- blockId: string;
377
- }) => Promise<{
378
- success: boolean;
379
- remainingBlocks: any;
380
- remainingEdges: any;
381
- }>;
382
- };
383
- block_generate_tts: {
384
- description: string;
385
- inputSchema: z.ZodObject<{
386
- flowId: z.ZodString;
387
- blockId: z.ZodString;
388
- }, "strip", z.ZodTypeAny, {
389
- flowId: string;
390
- blockId: string;
391
- }, {
392
- flowId: string;
393
- blockId: string;
394
- }>;
395
- handler: ({ flowId, blockId }: {
396
- flowId: string;
397
- blockId: string;
398
- }) => Promise<any>;
399
- };
400
- };
401
- //# sourceMappingURL=blocks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../src/tools/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAO3C,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;uCAkDP;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAuB9B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAkCC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAqBb,GAAG;;;;;;;;;;;;;;uCAWF;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;uCAwBnC;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE;;EAK3E;AAGD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;uCAzHiB;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAuB9B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAkCC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAqBb,GAAG;;;;;;;;;;;;;;uCAWF;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;uCAwBnC;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE;;CAQjB,CAAC"}