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,266 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * 创建云文档
4
+ */
5
+ export declare const createDocTool: {
6
+ name: string;
7
+ description: string;
8
+ inputSchema: {
9
+ title: z.ZodString;
10
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
11
+ type: z.ZodEnum<["text", "h1", "h2", "h3", "h4", "h5", "h6", "bullet", "ordered", "code", "quote", "todo", "callout", "divider"]>;
12
+ content: z.ZodOptional<z.ZodString>;
13
+ lang: z.ZodOptional<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
16
+ content?: string | undefined;
17
+ lang?: string | undefined;
18
+ }, {
19
+ type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
20
+ content?: string | undefined;
21
+ lang?: string | undefined;
22
+ }>, "many">>;
23
+ folder: z.ZodOptional<z.ZodString>;
24
+ email: z.ZodString;
25
+ };
26
+ handler: (args: {
27
+ title: string;
28
+ blocks?: Array<{
29
+ type: string;
30
+ content?: string;
31
+ lang?: string;
32
+ }>;
33
+ folder?: string;
34
+ email?: string;
35
+ }) => Promise<{
36
+ content: {
37
+ type: "text";
38
+ text: string;
39
+ }[];
40
+ }>;
41
+ };
42
+ /**
43
+ * 导入Markdown为云文档
44
+ */
45
+ export declare const importMarkdownTool: {
46
+ name: string;
47
+ description: string;
48
+ inputSchema: {
49
+ md: z.ZodString;
50
+ title: z.ZodOptional<z.ZodString>;
51
+ folder: z.ZodOptional<z.ZodString>;
52
+ email: z.ZodString;
53
+ };
54
+ handler: (args: {
55
+ md: string;
56
+ title?: string;
57
+ folder?: string;
58
+ email?: string;
59
+ }) => Promise<{
60
+ content: {
61
+ type: "text";
62
+ text: string;
63
+ }[];
64
+ }>;
65
+ };
66
+ /**
67
+ * 获取文档内容
68
+ */
69
+ export declare const getDocContentTool: {
70
+ name: string;
71
+ description: string;
72
+ inputSchema: {
73
+ id: z.ZodString;
74
+ };
75
+ handler: (args: {
76
+ id: string;
77
+ }) => Promise<{
78
+ content: {
79
+ type: "text";
80
+ text: string;
81
+ }[];
82
+ }>;
83
+ };
84
+ /**
85
+ * 搜索文档
86
+ */
87
+ export declare const searchDocsTool: {
88
+ name: string;
89
+ description: string;
90
+ inputSchema: {
91
+ q: z.ZodString;
92
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<["doc", "sheet", "bitable", "docx"]>, "many">>;
93
+ limit: z.ZodOptional<z.ZodNumber>;
94
+ };
95
+ handler: (args: {
96
+ q: string;
97
+ types?: string[];
98
+ limit?: number;
99
+ }) => Promise<{
100
+ content: {
101
+ type: "text";
102
+ text: string;
103
+ }[];
104
+ }>;
105
+ };
106
+ /**
107
+ * 追加文档内容
108
+ */
109
+ export declare const appendDocTool: {
110
+ name: string;
111
+ description: string;
112
+ inputSchema: {
113
+ doc: z.ZodString;
114
+ blocks: z.ZodArray<z.ZodObject<{
115
+ type: z.ZodEnum<["text", "h1", "h2", "h3", "h4", "h5", "h6", "bullet", "ordered", "code", "quote", "todo", "callout", "divider"]>;
116
+ content: z.ZodOptional<z.ZodString>;
117
+ lang: z.ZodOptional<z.ZodString>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
120
+ content?: string | undefined;
121
+ lang?: string | undefined;
122
+ }, {
123
+ type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
124
+ content?: string | undefined;
125
+ lang?: string | undefined;
126
+ }>, "many">;
127
+ };
128
+ handler: (args: {
129
+ doc: string;
130
+ blocks: Array<{
131
+ type: string;
132
+ content?: string;
133
+ lang?: string;
134
+ }>;
135
+ }) => Promise<{
136
+ content: {
137
+ type: "text";
138
+ text: string;
139
+ }[];
140
+ }>;
141
+ };
142
+ /**
143
+ * 云文档工具集合
144
+ */
145
+ export declare const docTools: ({
146
+ name: string;
147
+ description: string;
148
+ inputSchema: {
149
+ title: z.ZodString;
150
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
151
+ type: z.ZodEnum<["text", "h1", "h2", "h3", "h4", "h5", "h6", "bullet", "ordered", "code", "quote", "todo", "callout", "divider"]>;
152
+ content: z.ZodOptional<z.ZodString>;
153
+ lang: z.ZodOptional<z.ZodString>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
156
+ content?: string | undefined;
157
+ lang?: string | undefined;
158
+ }, {
159
+ type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
160
+ content?: string | undefined;
161
+ lang?: string | undefined;
162
+ }>, "many">>;
163
+ folder: z.ZodOptional<z.ZodString>;
164
+ email: z.ZodString;
165
+ };
166
+ handler: (args: {
167
+ title: string;
168
+ blocks?: Array<{
169
+ type: string;
170
+ content?: string;
171
+ lang?: string;
172
+ }>;
173
+ folder?: string;
174
+ email?: string;
175
+ }) => Promise<{
176
+ content: {
177
+ type: "text";
178
+ text: string;
179
+ }[];
180
+ }>;
181
+ } | {
182
+ name: string;
183
+ description: string;
184
+ inputSchema: {
185
+ md: z.ZodString;
186
+ title: z.ZodOptional<z.ZodString>;
187
+ folder: z.ZodOptional<z.ZodString>;
188
+ email: z.ZodString;
189
+ };
190
+ handler: (args: {
191
+ md: string;
192
+ title?: string;
193
+ folder?: string;
194
+ email?: string;
195
+ }) => Promise<{
196
+ content: {
197
+ type: "text";
198
+ text: string;
199
+ }[];
200
+ }>;
201
+ } | {
202
+ name: string;
203
+ description: string;
204
+ inputSchema: {
205
+ id: z.ZodString;
206
+ };
207
+ handler: (args: {
208
+ id: string;
209
+ }) => Promise<{
210
+ content: {
211
+ type: "text";
212
+ text: string;
213
+ }[];
214
+ }>;
215
+ } | {
216
+ name: string;
217
+ description: string;
218
+ inputSchema: {
219
+ q: z.ZodString;
220
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<["doc", "sheet", "bitable", "docx"]>, "many">>;
221
+ limit: z.ZodOptional<z.ZodNumber>;
222
+ };
223
+ handler: (args: {
224
+ q: string;
225
+ types?: string[];
226
+ limit?: number;
227
+ }) => Promise<{
228
+ content: {
229
+ type: "text";
230
+ text: string;
231
+ }[];
232
+ }>;
233
+ } | {
234
+ name: string;
235
+ description: string;
236
+ inputSchema: {
237
+ doc: z.ZodString;
238
+ blocks: z.ZodArray<z.ZodObject<{
239
+ type: z.ZodEnum<["text", "h1", "h2", "h3", "h4", "h5", "h6", "bullet", "ordered", "code", "quote", "todo", "callout", "divider"]>;
240
+ content: z.ZodOptional<z.ZodString>;
241
+ lang: z.ZodOptional<z.ZodString>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
244
+ content?: string | undefined;
245
+ lang?: string | undefined;
246
+ }, {
247
+ type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
248
+ content?: string | undefined;
249
+ lang?: string | undefined;
250
+ }>, "many">;
251
+ };
252
+ handler: (args: {
253
+ doc: string;
254
+ blocks: Array<{
255
+ type: string;
256
+ content?: string;
257
+ lang?: string;
258
+ }>;
259
+ }) => Promise<{
260
+ content: {
261
+ type: "text";
262
+ text: string;
263
+ }[];
264
+ }>;
265
+ })[];
266
+ //# sourceMappingURL=doc-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doc-tools.d.ts","sourceRoot":"","sources":["../../../../src/services/lark/tools/doc-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA+IxB;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;oBAaF;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAClE,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;;;;;;CA8CF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;oBAUP;QACpB,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;;;;;;CAqDF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;oBAMN;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;;;;;;CAYrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;oBAWH;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;CAoBtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;oBAYF;QACpB,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAClE;;;;;;CAkBF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;oBAlOG;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAClE,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;;;;;;;;;;;;;;;oBA6DqB;QACpB,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;;;;;;;;;;;;oBAgEqB;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;oBA4Bd;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;oBAqC/C;QACpB,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAClE;;;;;;IA6BF,CAAC"}
@@ -0,0 +1,414 @@
1
+ export * from "./doc-tools";
2
+ export * from "./bitable-tools";
3
+ export * from "./board-tools";
4
+ /**
5
+ * 所有昆仑智联工具
6
+ */
7
+ export declare const allLarkTools: ({
8
+ name: string;
9
+ description: string;
10
+ inputSchema: {
11
+ title: import("zod").ZodString;
12
+ blocks: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
13
+ type: import("zod").ZodEnum<["text", "h1", "h2", "h3", "h4", "h5", "h6", "bullet", "ordered", "code", "quote", "todo", "callout", "divider"]>;
14
+ content: import("zod").ZodOptional<import("zod").ZodString>;
15
+ lang: import("zod").ZodOptional<import("zod").ZodString>;
16
+ }, "strip", import("zod").ZodTypeAny, {
17
+ type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
18
+ content?: string | undefined;
19
+ lang?: string | undefined;
20
+ }, {
21
+ type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
22
+ content?: string | undefined;
23
+ lang?: string | undefined;
24
+ }>, "many">>;
25
+ folder: import("zod").ZodOptional<import("zod").ZodString>;
26
+ email: import("zod").ZodString;
27
+ };
28
+ handler: (args: {
29
+ title: string;
30
+ blocks?: Array<{
31
+ type: string;
32
+ content?: string;
33
+ lang?: string;
34
+ }>;
35
+ folder?: string;
36
+ email?: string;
37
+ }) => Promise<{
38
+ content: {
39
+ type: "text";
40
+ text: string;
41
+ }[];
42
+ }>;
43
+ } | {
44
+ name: string;
45
+ description: string;
46
+ inputSchema: {
47
+ md: import("zod").ZodString;
48
+ title: import("zod").ZodOptional<import("zod").ZodString>;
49
+ folder: import("zod").ZodOptional<import("zod").ZodString>;
50
+ email: import("zod").ZodString;
51
+ };
52
+ handler: (args: {
53
+ md: string;
54
+ title?: string;
55
+ folder?: string;
56
+ email?: string;
57
+ }) => Promise<{
58
+ content: {
59
+ type: "text";
60
+ text: string;
61
+ }[];
62
+ }>;
63
+ } | {
64
+ name: string;
65
+ description: string;
66
+ inputSchema: {
67
+ id: import("zod").ZodString;
68
+ };
69
+ handler: (args: {
70
+ id: string;
71
+ }) => Promise<{
72
+ content: {
73
+ type: "text";
74
+ text: string;
75
+ }[];
76
+ }>;
77
+ } | {
78
+ name: string;
79
+ description: string;
80
+ inputSchema: {
81
+ q: import("zod").ZodString;
82
+ types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<["doc", "sheet", "bitable", "docx"]>, "many">>;
83
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
84
+ };
85
+ handler: (args: {
86
+ q: string;
87
+ types?: string[];
88
+ limit?: number;
89
+ }) => Promise<{
90
+ content: {
91
+ type: "text";
92
+ text: string;
93
+ }[];
94
+ }>;
95
+ } | {
96
+ name: string;
97
+ description: string;
98
+ inputSchema: {
99
+ doc: import("zod").ZodString;
100
+ blocks: import("zod").ZodArray<import("zod").ZodObject<{
101
+ type: import("zod").ZodEnum<["text", "h1", "h2", "h3", "h4", "h5", "h6", "bullet", "ordered", "code", "quote", "todo", "callout", "divider"]>;
102
+ content: import("zod").ZodOptional<import("zod").ZodString>;
103
+ lang: import("zod").ZodOptional<import("zod").ZodString>;
104
+ }, "strip", import("zod").ZodTypeAny, {
105
+ type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
106
+ content?: string | undefined;
107
+ lang?: string | undefined;
108
+ }, {
109
+ type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
110
+ content?: string | undefined;
111
+ lang?: string | undefined;
112
+ }>, "many">;
113
+ };
114
+ handler: (args: {
115
+ doc: string;
116
+ blocks: Array<{
117
+ type: string;
118
+ content?: string;
119
+ lang?: string;
120
+ }>;
121
+ }) => Promise<{
122
+ content: {
123
+ type: "text";
124
+ text: string;
125
+ }[];
126
+ }>;
127
+ } | {
128
+ name: string;
129
+ description: string;
130
+ inputSchema: {
131
+ name: import("zod").ZodString;
132
+ folder: import("zod").ZodOptional<import("zod").ZodString>;
133
+ email: import("zod").ZodString;
134
+ };
135
+ handler: (args: {
136
+ name: string;
137
+ folder?: string;
138
+ email?: string;
139
+ }) => Promise<{
140
+ content: {
141
+ type: "text";
142
+ text: string;
143
+ }[];
144
+ }>;
145
+ } | {
146
+ name: string;
147
+ description: string;
148
+ inputSchema: {
149
+ app: import("zod").ZodString;
150
+ name: import("zod").ZodString;
151
+ fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
152
+ name: import("zod").ZodString;
153
+ type: import("zod").ZodNumber;
154
+ }, "strip", import("zod").ZodTypeAny, {
155
+ type: number;
156
+ name: string;
157
+ }, {
158
+ type: number;
159
+ name: string;
160
+ }>, "many">>;
161
+ };
162
+ handler: (args: {
163
+ app: string;
164
+ name: string;
165
+ fields?: Array<{
166
+ name: string;
167
+ type: number;
168
+ }>;
169
+ }) => Promise<{
170
+ content: {
171
+ type: "text";
172
+ text: string;
173
+ }[];
174
+ }>;
175
+ } | {
176
+ name: string;
177
+ description: string;
178
+ inputSchema: {
179
+ app: import("zod").ZodString;
180
+ };
181
+ handler: (args: {
182
+ app: string;
183
+ }) => Promise<{
184
+ content: {
185
+ type: "text";
186
+ text: string;
187
+ }[];
188
+ }>;
189
+ } | {
190
+ name: string;
191
+ description: string;
192
+ inputSchema: {
193
+ app: import("zod").ZodString;
194
+ table: import("zod").ZodString;
195
+ };
196
+ handler: (args: {
197
+ app: string;
198
+ table: string;
199
+ }) => Promise<{
200
+ content: {
201
+ type: "text";
202
+ text: string;
203
+ }[];
204
+ }>;
205
+ } | {
206
+ name: string;
207
+ description: string;
208
+ inputSchema: {
209
+ app: import("zod").ZodString;
210
+ table: import("zod").ZodString;
211
+ fields: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
212
+ };
213
+ handler: (args: {
214
+ app: string;
215
+ table: string;
216
+ fields: Record<string, any>;
217
+ }) => Promise<{
218
+ content: {
219
+ type: "text";
220
+ text: string;
221
+ }[];
222
+ }>;
223
+ } | {
224
+ name: string;
225
+ description: string;
226
+ inputSchema: {
227
+ app: import("zod").ZodString;
228
+ table: import("zod").ZodString;
229
+ records: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>, "many">;
230
+ };
231
+ handler: (args: {
232
+ app: string;
233
+ table: string;
234
+ records: Array<Record<string, any>>;
235
+ }) => Promise<{
236
+ content: {
237
+ type: "text";
238
+ text: string;
239
+ }[];
240
+ }>;
241
+ } | {
242
+ name: string;
243
+ description: string;
244
+ inputSchema: {
245
+ app: import("zod").ZodString;
246
+ table: import("zod").ZodString;
247
+ filter: import("zod").ZodOptional<import("zod").ZodObject<{
248
+ and: import("zod").ZodOptional<import("zod").ZodBoolean>;
249
+ conditions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
250
+ field: import("zod").ZodString;
251
+ op: import("zod").ZodEnum<["is", "isNot", "contains", "doesNotContain", "isEmpty", "isNotEmpty"]>;
252
+ value: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
253
+ }, "strip", import("zod").ZodTypeAny, {
254
+ field: string;
255
+ op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
256
+ value?: string[] | undefined;
257
+ }, {
258
+ field: string;
259
+ op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
260
+ value?: string[] | undefined;
261
+ }>, "many">>;
262
+ }, "strip", import("zod").ZodTypeAny, {
263
+ and?: boolean | undefined;
264
+ conditions?: {
265
+ field: string;
266
+ op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
267
+ value?: string[] | undefined;
268
+ }[] | undefined;
269
+ }, {
270
+ and?: boolean | undefined;
271
+ conditions?: {
272
+ field: string;
273
+ op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty";
274
+ value?: string[] | undefined;
275
+ }[] | undefined;
276
+ }>>;
277
+ sort: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
278
+ field: import("zod").ZodString;
279
+ desc: import("zod").ZodOptional<import("zod").ZodBoolean>;
280
+ }, "strip", import("zod").ZodTypeAny, {
281
+ field: string;
282
+ desc?: boolean | undefined;
283
+ }, {
284
+ field: string;
285
+ desc?: boolean | undefined;
286
+ }>, "many">>;
287
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
288
+ pageToken: import("zod").ZodOptional<import("zod").ZodString>;
289
+ };
290
+ handler: (args: {
291
+ app: string;
292
+ table: string;
293
+ filter?: {
294
+ and?: boolean;
295
+ conditions?: Array<{
296
+ field: string;
297
+ op: string;
298
+ value?: string[];
299
+ }>;
300
+ };
301
+ sort?: Array<{
302
+ field: string;
303
+ desc?: boolean;
304
+ }>;
305
+ limit?: number;
306
+ pageToken?: string;
307
+ }) => Promise<{
308
+ content: {
309
+ type: "text";
310
+ text: string;
311
+ }[];
312
+ }>;
313
+ } | {
314
+ name: string;
315
+ description: string;
316
+ inputSchema: {
317
+ app: import("zod").ZodString;
318
+ table: import("zod").ZodString;
319
+ record: import("zod").ZodString;
320
+ fields: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
321
+ };
322
+ handler: (args: {
323
+ app: string;
324
+ table: string;
325
+ record: string;
326
+ fields: Record<string, any>;
327
+ }) => Promise<{
328
+ content: {
329
+ type: "text";
330
+ text: string;
331
+ }[];
332
+ }>;
333
+ } | {
334
+ name: string;
335
+ description: string;
336
+ inputSchema: {
337
+ app: import("zod").ZodString;
338
+ table: import("zod").ZodString;
339
+ records: import("zod").ZodArray<import("zod").ZodString, "many">;
340
+ };
341
+ handler: (args: {
342
+ app: string;
343
+ table: string;
344
+ records: string[];
345
+ }) => Promise<{
346
+ content: {
347
+ type: "text";
348
+ text: string;
349
+ }[];
350
+ }>;
351
+ } | {
352
+ name: string;
353
+ description: string;
354
+ inputSchema: {
355
+ title: import("zod").ZodString;
356
+ folder: import("zod").ZodOptional<import("zod").ZodString>;
357
+ email: import("zod").ZodString;
358
+ };
359
+ handler: (args: {
360
+ title: string;
361
+ folder?: string;
362
+ email?: string;
363
+ }) => Promise<{
364
+ content: {
365
+ type: "text";
366
+ text: string;
367
+ }[];
368
+ }>;
369
+ } | {
370
+ name: string;
371
+ description: string;
372
+ inputSchema: {
373
+ title: import("zod").ZodString;
374
+ code: import("zod").ZodString;
375
+ syntax: import("zod").ZodEnum<["plantuml", "mermaid"]>;
376
+ style: import("zod").ZodOptional<import("zod").ZodEnum<["board", "classic"]>>;
377
+ folder: import("zod").ZodOptional<import("zod").ZodString>;
378
+ email: import("zod").ZodString;
379
+ };
380
+ handler: (args: {
381
+ title: string;
382
+ code: string;
383
+ syntax: "plantuml" | "mermaid";
384
+ style?: "board" | "classic";
385
+ folder?: string;
386
+ email?: string;
387
+ }) => Promise<{
388
+ content: {
389
+ type: "text";
390
+ text: string;
391
+ }[];
392
+ }>;
393
+ } | {
394
+ name: string;
395
+ description: string;
396
+ inputSchema: {
397
+ board: import("zod").ZodString;
398
+ code: import("zod").ZodString;
399
+ syntax: import("zod").ZodEnum<["plantuml", "mermaid"]>;
400
+ style: import("zod").ZodOptional<import("zod").ZodEnum<["board", "classic"]>>;
401
+ };
402
+ handler: (args: {
403
+ board: string;
404
+ code: string;
405
+ syntax: "plantuml" | "mermaid";
406
+ style?: "board" | "classic";
407
+ }) => Promise<{
408
+ content: {
409
+ type: "text";
410
+ text: string;
411
+ }[];
412
+ }>;
413
+ })[];
414
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/lark/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAM9B;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;cACszF,CAAC;;mBAA+B,CAAC;gBAAc,CAAC;;cAAuB,CAAC;aAAmB,CAAC;;;;;;;;;;;;;;;;;;aAAsuD,CAAC;cAAoB,CAAC;aAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAu1E,CAAC;aAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAilC,CAAC;gBAAc,CAAC;;;;;;;;;;;;;;;;;;cAAp7O,CAAC;aAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAw/C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAghK,CAAC;eAAa,CAAC;sBAA2B,CAAC;;;qBAA0C,CAAC;;;YAA8B,CAAC;;gBAA6B,CAAC;;aAAuB,CAAC;iBAAuB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAnzN,CAAC;aAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;aAA+sD,CAAC;cAAiC,CAAC;aAAmB,CAAC;;;;;;;;;;;;;;;;;;;;aAAmiE,CAAC;;;;;;;IAD92I,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 权限相关内部方法(不对外暴露工具)
3
+ * 权限管理已集成到 LarkClient 中,创建文档/表格时自动处理
4
+ */
5
+ export declare const permissionTools: any[];
6
+ //# sourceMappingURL=permission-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission-tools.d.ts","sourceRoot":"","sources":["../../../../src/services/lark/tools/permission-tools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,eAAO,MAAM,eAAe,EAAE,GAAG,EAAO,CAAC"}