intention-coding 0.6.7 → 0.6.9

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 (77) hide show
  1. package/dist/db/lark-storage.d.ts +25 -0
  2. package/dist/db/lark-storage.d.ts.map +1 -0
  3. package/dist/db/requirement-storage.d.ts +69 -0
  4. package/dist/db/requirement-storage.d.ts.map +1 -0
  5. package/dist/db/tech-spec-storage.d.ts.map +1 -1
  6. package/dist/index.cjs +6842 -7538
  7. package/dist/services/export-excel/index.d.ts +24 -24
  8. package/dist/services/image-analysis/analyzer.d.ts +30 -2
  9. package/dist/services/image-analysis/analyzer.d.ts.map +1 -1
  10. package/dist/services/image-analysis/types.d.ts +37 -0
  11. package/dist/services/image-analysis/types.d.ts.map +1 -1
  12. package/dist/services/image-recognition-agent/analyzer.d.ts +2 -2
  13. package/dist/services/image-recognition-agent/analyzer.d.ts.map +1 -1
  14. package/dist/services/image-recognition-agent/types.d.ts +2 -2
  15. package/dist/services/index.d.ts.map +1 -1
  16. package/dist/services/lark/client.d.ts +66 -0
  17. package/dist/services/lark/client.d.ts.map +1 -0
  18. package/dist/services/lark/index.d.ts +419 -0
  19. package/dist/services/lark/index.d.ts.map +1 -0
  20. package/dist/services/lark/tools/bitable-tools.d.ts +490 -0
  21. package/dist/services/lark/tools/bitable-tools.d.ts.map +1 -0
  22. package/dist/services/lark/tools/board-tools.d.ts +174 -0
  23. package/dist/services/lark/tools/board-tools.d.ts.map +1 -0
  24. package/dist/services/lark/tools/doc-tools.d.ts +266 -0
  25. package/dist/services/lark/tools/doc-tools.d.ts.map +1 -0
  26. package/dist/services/lark/tools/index.d.ts +414 -0
  27. package/dist/services/lark/tools/index.d.ts.map +1 -0
  28. package/dist/services/lark/tools/permission-tools.d.ts +6 -0
  29. package/dist/services/lark/tools/permission-tools.d.ts.map +1 -0
  30. package/dist/services/lark/types.d.ts +17 -0
  31. package/dist/services/lark/types.d.ts.map +1 -0
  32. package/dist/services/requirement-analyzer/index.d.ts +83 -12
  33. package/dist/services/requirement-analyzer/index.d.ts.map +1 -1
  34. package/dist/services/requirement-analyzer/tools/chapter-tools.d.ts +273 -0
  35. package/dist/services/requirement-analyzer/tools/chapter-tools.d.ts.map +1 -0
  36. package/dist/services/requirement-analyzer/tools/index.d.ts +4 -0
  37. package/dist/services/requirement-analyzer/tools/index.d.ts.map +1 -0
  38. package/dist/services/requirement-analyzer/tools/project-tools.d.ts +75 -0
  39. package/dist/services/requirement-analyzer/tools/project-tools.d.ts.map +1 -0
  40. package/dist/services/requirement-analyzer/tools/render-tools.d.ts +78 -0
  41. package/dist/services/requirement-analyzer/tools/render-tools.d.ts.map +1 -0
  42. package/dist/services/tech-spec-generator/tools/chapter-save-tools.d.ts +8 -2
  43. package/dist/services/tech-spec-generator/tools/chapter-save-tools.d.ts.map +1 -1
  44. package/dist/utils/config.d.ts.map +1 -1
  45. package/dist/utils/lark-config.d.ts +11 -0
  46. package/dist/utils/lark-config.d.ts.map +1 -0
  47. package/dist/utils/openai.d.ts +2 -1
  48. package/dist/utils/openai.d.ts.map +1 -1
  49. package/package.json +1 -1
  50. package/dist/services/change-summarizer/index.d.ts +0 -42
  51. package/dist/services/change-summarizer/index.d.ts.map +0 -1
  52. package/dist/services/change-summarizer/prompt/change-analysis.d.ts +0 -2
  53. package/dist/services/change-summarizer/prompt/change-analysis.d.ts.map +0 -1
  54. package/dist/services/image-recognition-agent/image-recognition-agent.test.d.ts +0 -2
  55. package/dist/services/image-recognition-agent/image-recognition-agent.test.d.ts.map +0 -1
  56. package/dist/services/integrated-generator/index.d.ts +0 -80
  57. package/dist/services/integrated-generator/index.d.ts.map +0 -1
  58. package/dist/services/project-template/index.d.ts +0 -42
  59. package/dist/services/project-template/index.d.ts.map +0 -1
  60. package/dist/services/project-template/prompt/project-rules.d.ts +0 -2
  61. package/dist/services/project-template/prompt/project-rules.d.ts.map +0 -1
  62. package/dist/services/requirement-analyzer/chunk-reader.d.ts +0 -38
  63. package/dist/services/requirement-analyzer/chunk-reader.d.ts.map +0 -1
  64. package/dist/services/requirement-analyzer/core/document-generator.d.ts +0 -105
  65. package/dist/services/requirement-analyzer/core/document-generator.d.ts.map +0 -1
  66. package/dist/services/requirement-analyzer/core/intelligent-analyzer.d.ts +0 -36
  67. package/dist/services/requirement-analyzer/core/intelligent-analyzer.d.ts.map +0 -1
  68. package/dist/services/requirement-analyzer/core/project-analyzer.d.ts +0 -37
  69. package/dist/services/requirement-analyzer/core/project-analyzer.d.ts.map +0 -1
  70. package/dist/services/requirement-analyzer/core/requirement-analyzer-service.d.ts +0 -43
  71. package/dist/services/requirement-analyzer/core/requirement-analyzer-service.d.ts.map +0 -1
  72. package/dist/services/requirement-analyzer/core/template-selector.d.ts +0 -36
  73. package/dist/services/requirement-analyzer/core/template-selector.d.ts.map +0 -1
  74. package/dist/services/requirement-analyzer/core/types.d.ts +0 -105
  75. package/dist/services/requirement-analyzer/core/types.d.ts.map +0 -1
  76. package/dist/services/requirement-analyzer/utils/file-reader.d.ts +0 -9
  77. package/dist/services/requirement-analyzer/utils/file-reader.d.ts.map +0 -1
@@ -0,0 +1,490 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * 创建多维表格
4
+ */
5
+ export declare const createBitableTool: {
6
+ name: string;
7
+ description: string;
8
+ inputSchema: {
9
+ name: z.ZodString;
10
+ folder: z.ZodOptional<z.ZodString>;
11
+ email: z.ZodString;
12
+ };
13
+ handler: (args: {
14
+ name: string;
15
+ folder?: string;
16
+ email?: string;
17
+ }) => Promise<{
18
+ content: {
19
+ type: "text";
20
+ text: string;
21
+ }[];
22
+ }>;
23
+ };
24
+ /**
25
+ * 创建数据表
26
+ */
27
+ export declare const createTableTool: {
28
+ name: string;
29
+ description: string;
30
+ inputSchema: {
31
+ app: z.ZodString;
32
+ name: z.ZodString;
33
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
+ name: z.ZodString;
35
+ type: z.ZodNumber;
36
+ }, "strip", z.ZodTypeAny, {
37
+ type: number;
38
+ name: string;
39
+ }, {
40
+ type: number;
41
+ name: string;
42
+ }>, "many">>;
43
+ };
44
+ handler: (args: {
45
+ app: string;
46
+ name: string;
47
+ fields?: Array<{
48
+ name: string;
49
+ type: number;
50
+ }>;
51
+ }) => Promise<{
52
+ content: {
53
+ type: "text";
54
+ text: string;
55
+ }[];
56
+ }>;
57
+ };
58
+ /**
59
+ * 列出数据表
60
+ */
61
+ export declare const listTablesTool: {
62
+ name: string;
63
+ description: string;
64
+ inputSchema: {
65
+ app: z.ZodString;
66
+ };
67
+ handler: (args: {
68
+ app: string;
69
+ }) => Promise<{
70
+ content: {
71
+ type: "text";
72
+ text: string;
73
+ }[];
74
+ }>;
75
+ };
76
+ /**
77
+ * 列出字段
78
+ */
79
+ export declare const listFieldsTool: {
80
+ name: string;
81
+ description: string;
82
+ inputSchema: {
83
+ app: z.ZodString;
84
+ table: z.ZodString;
85
+ };
86
+ handler: (args: {
87
+ app: string;
88
+ table: string;
89
+ }) => Promise<{
90
+ content: {
91
+ type: "text";
92
+ text: string;
93
+ }[];
94
+ }>;
95
+ };
96
+ /**
97
+ * 添加记录
98
+ */
99
+ export declare const addRecordTool: {
100
+ name: string;
101
+ description: string;
102
+ inputSchema: {
103
+ app: z.ZodString;
104
+ table: z.ZodString;
105
+ fields: z.ZodRecord<z.ZodString, z.ZodAny>;
106
+ };
107
+ handler: (args: {
108
+ app: string;
109
+ table: string;
110
+ fields: Record<string, any>;
111
+ }) => Promise<{
112
+ content: {
113
+ type: "text";
114
+ text: string;
115
+ }[];
116
+ }>;
117
+ };
118
+ /**
119
+ * 批量添加记录
120
+ */
121
+ export declare const batchAddRecordsTool: {
122
+ name: string;
123
+ description: string;
124
+ inputSchema: {
125
+ app: z.ZodString;
126
+ table: z.ZodString;
127
+ records: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
128
+ };
129
+ handler: (args: {
130
+ app: string;
131
+ table: string;
132
+ records: Array<Record<string, any>>;
133
+ }) => Promise<{
134
+ content: {
135
+ type: "text";
136
+ text: string;
137
+ }[];
138
+ }>;
139
+ };
140
+ /**
141
+ * 搜索记录
142
+ */
143
+ export declare const searchRecordsTool: {
144
+ name: string;
145
+ description: string;
146
+ inputSchema: {
147
+ app: z.ZodString;
148
+ table: z.ZodString;
149
+ filter: z.ZodOptional<z.ZodObject<{
150
+ and: z.ZodOptional<z.ZodBoolean>;
151
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
152
+ field: z.ZodString;
153
+ op: z.ZodEnum<["is", "isNot", "contains", "doesNotContain", "isEmpty", "isNotEmpty"]>;
154
+ value: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ field: string;
157
+ op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
158
+ value?: string[] | undefined;
159
+ }, {
160
+ field: string;
161
+ op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
162
+ value?: string[] | undefined;
163
+ }>, "many">>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ and?: boolean | undefined;
166
+ conditions?: {
167
+ field: string;
168
+ op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
169
+ value?: string[] | undefined;
170
+ }[] | undefined;
171
+ }, {
172
+ and?: boolean | undefined;
173
+ conditions?: {
174
+ field: string;
175
+ op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
176
+ value?: string[] | undefined;
177
+ }[] | undefined;
178
+ }>>;
179
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
180
+ field: z.ZodString;
181
+ desc: z.ZodOptional<z.ZodBoolean>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ field: string;
184
+ desc?: boolean | undefined;
185
+ }, {
186
+ field: string;
187
+ desc?: boolean | undefined;
188
+ }>, "many">>;
189
+ limit: z.ZodOptional<z.ZodNumber>;
190
+ pageToken: z.ZodOptional<z.ZodString>;
191
+ };
192
+ handler: (args: {
193
+ app: string;
194
+ table: string;
195
+ filter?: {
196
+ and?: boolean;
197
+ conditions?: Array<{
198
+ field: string;
199
+ op: string;
200
+ value?: string[];
201
+ }>;
202
+ };
203
+ sort?: Array<{
204
+ field: string;
205
+ desc?: boolean;
206
+ }>;
207
+ limit?: number;
208
+ pageToken?: string;
209
+ }) => Promise<{
210
+ content: {
211
+ type: "text";
212
+ text: string;
213
+ }[];
214
+ }>;
215
+ };
216
+ /**
217
+ * 更新记录
218
+ */
219
+ export declare const updateRecordTool: {
220
+ name: string;
221
+ description: string;
222
+ inputSchema: {
223
+ app: z.ZodString;
224
+ table: z.ZodString;
225
+ record: z.ZodString;
226
+ fields: z.ZodRecord<z.ZodString, z.ZodAny>;
227
+ };
228
+ handler: (args: {
229
+ app: string;
230
+ table: string;
231
+ record: string;
232
+ fields: Record<string, any>;
233
+ }) => Promise<{
234
+ content: {
235
+ type: "text";
236
+ text: string;
237
+ }[];
238
+ }>;
239
+ };
240
+ /**
241
+ * 删除记录
242
+ */
243
+ export declare const deleteRecordsTool: {
244
+ name: string;
245
+ description: string;
246
+ inputSchema: {
247
+ app: z.ZodString;
248
+ table: z.ZodString;
249
+ records: z.ZodArray<z.ZodString, "many">;
250
+ };
251
+ handler: (args: {
252
+ app: string;
253
+ table: string;
254
+ records: string[];
255
+ }) => Promise<{
256
+ content: {
257
+ type: "text";
258
+ text: string;
259
+ }[];
260
+ }>;
261
+ };
262
+ /**
263
+ * 多维表格工具集合
264
+ */
265
+ export declare const bitableTools: ({
266
+ name: string;
267
+ description: string;
268
+ inputSchema: {
269
+ name: z.ZodString;
270
+ folder: z.ZodOptional<z.ZodString>;
271
+ email: z.ZodString;
272
+ };
273
+ handler: (args: {
274
+ name: string;
275
+ folder?: string;
276
+ email?: string;
277
+ }) => Promise<{
278
+ content: {
279
+ type: "text";
280
+ text: string;
281
+ }[];
282
+ }>;
283
+ } | {
284
+ name: string;
285
+ description: string;
286
+ inputSchema: {
287
+ app: z.ZodString;
288
+ name: z.ZodString;
289
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
290
+ name: z.ZodString;
291
+ type: z.ZodNumber;
292
+ }, "strip", z.ZodTypeAny, {
293
+ type: number;
294
+ name: string;
295
+ }, {
296
+ type: number;
297
+ name: string;
298
+ }>, "many">>;
299
+ };
300
+ handler: (args: {
301
+ app: string;
302
+ name: string;
303
+ fields?: Array<{
304
+ name: string;
305
+ type: number;
306
+ }>;
307
+ }) => Promise<{
308
+ content: {
309
+ type: "text";
310
+ text: string;
311
+ }[];
312
+ }>;
313
+ } | {
314
+ name: string;
315
+ description: string;
316
+ inputSchema: {
317
+ app: z.ZodString;
318
+ };
319
+ handler: (args: {
320
+ app: string;
321
+ }) => Promise<{
322
+ content: {
323
+ type: "text";
324
+ text: string;
325
+ }[];
326
+ }>;
327
+ } | {
328
+ name: string;
329
+ description: string;
330
+ inputSchema: {
331
+ app: z.ZodString;
332
+ table: z.ZodString;
333
+ };
334
+ handler: (args: {
335
+ app: string;
336
+ table: string;
337
+ }) => Promise<{
338
+ content: {
339
+ type: "text";
340
+ text: string;
341
+ }[];
342
+ }>;
343
+ } | {
344
+ name: string;
345
+ description: string;
346
+ inputSchema: {
347
+ app: z.ZodString;
348
+ table: z.ZodString;
349
+ fields: z.ZodRecord<z.ZodString, z.ZodAny>;
350
+ };
351
+ handler: (args: {
352
+ app: string;
353
+ table: string;
354
+ fields: Record<string, any>;
355
+ }) => Promise<{
356
+ content: {
357
+ type: "text";
358
+ text: string;
359
+ }[];
360
+ }>;
361
+ } | {
362
+ name: string;
363
+ description: string;
364
+ inputSchema: {
365
+ app: z.ZodString;
366
+ table: z.ZodString;
367
+ records: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
368
+ };
369
+ handler: (args: {
370
+ app: string;
371
+ table: string;
372
+ records: Array<Record<string, any>>;
373
+ }) => Promise<{
374
+ content: {
375
+ type: "text";
376
+ text: string;
377
+ }[];
378
+ }>;
379
+ } | {
380
+ name: string;
381
+ description: string;
382
+ inputSchema: {
383
+ app: z.ZodString;
384
+ table: z.ZodString;
385
+ filter: z.ZodOptional<z.ZodObject<{
386
+ and: z.ZodOptional<z.ZodBoolean>;
387
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
388
+ field: z.ZodString;
389
+ op: z.ZodEnum<["is", "isNot", "contains", "doesNotContain", "isEmpty", "isNotEmpty"]>;
390
+ value: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
391
+ }, "strip", z.ZodTypeAny, {
392
+ field: string;
393
+ op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
394
+ value?: string[] | undefined;
395
+ }, {
396
+ field: string;
397
+ op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
398
+ value?: string[] | undefined;
399
+ }>, "many">>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ and?: boolean | undefined;
402
+ conditions?: {
403
+ field: string;
404
+ op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
405
+ value?: string[] | undefined;
406
+ }[] | undefined;
407
+ }, {
408
+ and?: boolean | undefined;
409
+ conditions?: {
410
+ field: string;
411
+ op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
412
+ value?: string[] | undefined;
413
+ }[] | undefined;
414
+ }>>;
415
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
416
+ field: z.ZodString;
417
+ desc: z.ZodOptional<z.ZodBoolean>;
418
+ }, "strip", z.ZodTypeAny, {
419
+ field: string;
420
+ desc?: boolean | undefined;
421
+ }, {
422
+ field: string;
423
+ desc?: boolean | undefined;
424
+ }>, "many">>;
425
+ limit: z.ZodOptional<z.ZodNumber>;
426
+ pageToken: z.ZodOptional<z.ZodString>;
427
+ };
428
+ handler: (args: {
429
+ app: string;
430
+ table: string;
431
+ filter?: {
432
+ and?: boolean;
433
+ conditions?: Array<{
434
+ field: string;
435
+ op: string;
436
+ value?: string[];
437
+ }>;
438
+ };
439
+ sort?: Array<{
440
+ field: string;
441
+ desc?: boolean;
442
+ }>;
443
+ limit?: number;
444
+ pageToken?: string;
445
+ }) => Promise<{
446
+ content: {
447
+ type: "text";
448
+ text: string;
449
+ }[];
450
+ }>;
451
+ } | {
452
+ name: string;
453
+ description: string;
454
+ inputSchema: {
455
+ app: z.ZodString;
456
+ table: z.ZodString;
457
+ record: z.ZodString;
458
+ fields: z.ZodRecord<z.ZodString, z.ZodAny>;
459
+ };
460
+ handler: (args: {
461
+ app: string;
462
+ table: string;
463
+ record: string;
464
+ fields: Record<string, any>;
465
+ }) => Promise<{
466
+ content: {
467
+ type: "text";
468
+ text: string;
469
+ }[];
470
+ }>;
471
+ } | {
472
+ name: string;
473
+ description: string;
474
+ inputSchema: {
475
+ app: z.ZodString;
476
+ table: z.ZodString;
477
+ records: z.ZodArray<z.ZodString, "many">;
478
+ };
479
+ handler: (args: {
480
+ app: string;
481
+ table: string;
482
+ records: string[];
483
+ }) => Promise<{
484
+ content: {
485
+ type: "text";
486
+ text: string;
487
+ }[];
488
+ }>;
489
+ })[];
490
+ //# sourceMappingURL=bitable-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bitable-tools.d.ts","sourceRoot":"","sources":["../../../../src/services/lark/tools/bitable-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;oBASN;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;CAqCxE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;oBAoBJ;QACpB,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAA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;;;;;;;;;;;oBA2BqB;QACpB,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;KACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAwDqB;QACpB,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE;YACP,GAAG,CAAC,EAAE,OAAO,CAAC;YACd,UAAU,CAAC,EAAE,KAAK,CAAC;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,EAAE,EAAE,MAAM,CAAC;gBAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;aAAE,CAAC,CAAC;SACrE,CAAC;QACF,IAAI,CAAC,EAAE,KAAK,CAAC;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,OAAO,CAAA;SAAE,CAAC,CAAC;QAChD,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;;;;;;;;;;;;;;;oBAyDqB;QACpB,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC7B;;;;;;;;;;;;;;oBA0BqB;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE;;;;;;IA4BxE,CAAC"}
@@ -0,0 +1,174 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * 创建画板
4
+ */
5
+ export declare const createBoardTool: {
6
+ name: string;
7
+ description: string;
8
+ inputSchema: {
9
+ title: z.ZodString;
10
+ folder: z.ZodOptional<z.ZodString>;
11
+ email: z.ZodString;
12
+ };
13
+ handler: (args: {
14
+ title: string;
15
+ folder?: string;
16
+ email?: string;
17
+ }) => Promise<{
18
+ content: {
19
+ type: "text";
20
+ text: string;
21
+ }[];
22
+ }>;
23
+ };
24
+ /**
25
+ * 创建画板并导入图表
26
+ */
27
+ export declare const createBoardWithDiagramTool: {
28
+ name: string;
29
+ description: string;
30
+ inputSchema: {
31
+ title: z.ZodString;
32
+ code: z.ZodString;
33
+ syntax: z.ZodEnum<["plantuml", "mermaid"]>;
34
+ style: z.ZodOptional<z.ZodEnum<["board", "classic"]>>;
35
+ folder: z.ZodOptional<z.ZodString>;
36
+ email: z.ZodString;
37
+ };
38
+ handler: (args: {
39
+ title: string;
40
+ code: string;
41
+ syntax: "plantuml" | "mermaid";
42
+ style?: "board" | "classic";
43
+ folder?: string;
44
+ email?: string;
45
+ }) => Promise<{
46
+ content: {
47
+ type: "text";
48
+ text: string;
49
+ }[];
50
+ }>;
51
+ };
52
+ /**
53
+ * 向已有画板导入图表
54
+ */
55
+ export declare const importDiagramTool: {
56
+ name: string;
57
+ description: string;
58
+ inputSchema: {
59
+ board: z.ZodString;
60
+ code: z.ZodString;
61
+ syntax: z.ZodEnum<["plantuml", "mermaid"]>;
62
+ style: z.ZodOptional<z.ZodEnum<["board", "classic"]>>;
63
+ };
64
+ handler: (args: {
65
+ board: string;
66
+ code: string;
67
+ syntax: "plantuml" | "mermaid";
68
+ style?: "board" | "classic";
69
+ }) => Promise<{
70
+ content: {
71
+ type: "text";
72
+ text: string;
73
+ }[];
74
+ }>;
75
+ };
76
+ /**
77
+ * 获取画板信息
78
+ */
79
+ export declare const getBoardTool: {
80
+ name: string;
81
+ description: string;
82
+ inputSchema: {
83
+ id: z.ZodString;
84
+ };
85
+ handler: (args: {
86
+ id: string;
87
+ }) => Promise<{
88
+ content: {
89
+ type: "text";
90
+ text: string;
91
+ }[];
92
+ }>;
93
+ };
94
+ /**
95
+ * 画板工具集合
96
+ */
97
+ export declare const boardTools: ({
98
+ name: string;
99
+ description: string;
100
+ inputSchema: {
101
+ title: z.ZodString;
102
+ folder: z.ZodOptional<z.ZodString>;
103
+ email: z.ZodString;
104
+ };
105
+ handler: (args: {
106
+ title: string;
107
+ folder?: string;
108
+ email?: string;
109
+ }) => Promise<{
110
+ content: {
111
+ type: "text";
112
+ text: string;
113
+ }[];
114
+ }>;
115
+ } | {
116
+ name: string;
117
+ description: string;
118
+ inputSchema: {
119
+ title: z.ZodString;
120
+ code: z.ZodString;
121
+ syntax: z.ZodEnum<["plantuml", "mermaid"]>;
122
+ style: z.ZodOptional<z.ZodEnum<["board", "classic"]>>;
123
+ folder: z.ZodOptional<z.ZodString>;
124
+ email: z.ZodString;
125
+ };
126
+ handler: (args: {
127
+ title: string;
128
+ code: string;
129
+ syntax: "plantuml" | "mermaid";
130
+ style?: "board" | "classic";
131
+ folder?: string;
132
+ email?: string;
133
+ }) => Promise<{
134
+ content: {
135
+ type: "text";
136
+ text: string;
137
+ }[];
138
+ }>;
139
+ } | {
140
+ name: string;
141
+ description: string;
142
+ inputSchema: {
143
+ board: z.ZodString;
144
+ code: z.ZodString;
145
+ syntax: z.ZodEnum<["plantuml", "mermaid"]>;
146
+ style: z.ZodOptional<z.ZodEnum<["board", "classic"]>>;
147
+ };
148
+ handler: (args: {
149
+ board: string;
150
+ code: string;
151
+ syntax: "plantuml" | "mermaid";
152
+ style?: "board" | "classic";
153
+ }) => Promise<{
154
+ content: {
155
+ type: "text";
156
+ text: string;
157
+ }[];
158
+ }>;
159
+ } | {
160
+ name: string;
161
+ description: string;
162
+ inputSchema: {
163
+ id: z.ZodString;
164
+ };
165
+ handler: (args: {
166
+ id: string;
167
+ }) => Promise<{
168
+ content: {
169
+ type: "text";
170
+ text: string;
171
+ }[];
172
+ }>;
173
+ })[];
174
+ //# sourceMappingURL=board-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"board-tools.d.ts","sourceRoot":"","sources":["../../../../src/services/lark/tools/board-tools.ts"],"names":[],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