intention-coding 0.6.8 → 0.7.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/dist/db/lark-storage.d.ts +25 -0
- package/dist/db/lark-storage.d.ts.map +1 -0
- package/dist/db/requirement-storage.d.ts +69 -0
- package/dist/db/requirement-storage.d.ts.map +1 -0
- package/dist/index.cjs +8125 -8286
- package/dist/services/export-excel/index.d.ts +24 -24
- package/dist/services/image-analysis/analyzer.d.ts +7 -8
- package/dist/services/image-analysis/analyzer.d.ts.map +1 -1
- package/dist/services/image-analysis/image-processor.d.ts +47 -0
- package/dist/services/image-analysis/image-processor.d.ts.map +1 -0
- package/dist/services/image-analysis/types.d.ts +1 -1
- package/dist/services/image-analysis/vision-client.d.ts +41 -0
- package/dist/services/image-analysis/vision-client.d.ts.map +1 -0
- package/dist/services/image-recognition-agent/analyzer.d.ts +2 -2
- package/dist/services/image-recognition-agent/analyzer.d.ts.map +1 -1
- package/dist/services/image-recognition-agent/types.d.ts +2 -2
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/lark/client.d.ts +66 -0
- package/dist/services/lark/client.d.ts.map +1 -0
- package/dist/services/lark/index.d.ts +471 -0
- package/dist/services/lark/index.d.ts.map +1 -0
- package/dist/services/lark/tools/bitable-tools.d.ts +576 -0
- package/dist/services/lark/tools/bitable-tools.d.ts.map +1 -0
- package/dist/services/lark/tools/board-tools.d.ts +174 -0
- package/dist/services/lark/tools/board-tools.d.ts.map +1 -0
- package/dist/services/lark/tools/doc-tools.d.ts +268 -0
- package/dist/services/lark/tools/doc-tools.d.ts.map +1 -0
- package/dist/services/lark/tools/index.d.ts +454 -0
- package/dist/services/lark/tools/index.d.ts.map +1 -0
- package/dist/services/lark/tools/permission-tools.d.ts +6 -0
- package/dist/services/lark/tools/permission-tools.d.ts.map +1 -0
- package/dist/services/lark/types.d.ts +37 -0
- package/dist/services/lark/types.d.ts.map +1 -0
- package/dist/services/requirement-analyzer/index.d.ts +83 -12
- package/dist/services/requirement-analyzer/index.d.ts.map +1 -1
- package/dist/services/requirement-analyzer/tools/chapter-tools.d.ts +273 -0
- package/dist/services/requirement-analyzer/tools/chapter-tools.d.ts.map +1 -0
- package/dist/services/requirement-analyzer/tools/index.d.ts +4 -0
- package/dist/services/requirement-analyzer/tools/index.d.ts.map +1 -0
- package/dist/services/requirement-analyzer/tools/project-tools.d.ts +75 -0
- package/dist/services/requirement-analyzer/tools/project-tools.d.ts.map +1 -0
- package/dist/services/requirement-analyzer/tools/render-tools.d.ts +78 -0
- package/dist/services/requirement-analyzer/tools/render-tools.d.ts.map +1 -0
- package/dist/utils/lark-config.d.ts +11 -0
- package/dist/utils/lark-config.d.ts.map +1 -0
- package/dist/utils/openai.d.ts +35 -1
- package/dist/utils/openai.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/services/change-summarizer/index.d.ts +0 -42
- package/dist/services/change-summarizer/index.d.ts.map +0 -1
- package/dist/services/change-summarizer/prompt/change-analysis.d.ts +0 -2
- package/dist/services/change-summarizer/prompt/change-analysis.d.ts.map +0 -1
- package/dist/services/image-recognition-agent/image-recognition-agent.test.d.ts +0 -2
- package/dist/services/image-recognition-agent/image-recognition-agent.test.d.ts.map +0 -1
- package/dist/services/integrated-generator/index.d.ts +0 -80
- package/dist/services/integrated-generator/index.d.ts.map +0 -1
- package/dist/services/project-template/index.d.ts +0 -42
- package/dist/services/project-template/index.d.ts.map +0 -1
- package/dist/services/project-template/prompt/project-rules.d.ts +0 -2
- package/dist/services/project-template/prompt/project-rules.d.ts.map +0 -1
- package/dist/services/requirement-analyzer/chunk-reader.d.ts +0 -38
- package/dist/services/requirement-analyzer/chunk-reader.d.ts.map +0 -1
- package/dist/services/requirement-analyzer/core/document-generator.d.ts +0 -105
- package/dist/services/requirement-analyzer/core/document-generator.d.ts.map +0 -1
- package/dist/services/requirement-analyzer/core/intelligent-analyzer.d.ts +0 -36
- package/dist/services/requirement-analyzer/core/intelligent-analyzer.d.ts.map +0 -1
- package/dist/services/requirement-analyzer/core/project-analyzer.d.ts +0 -37
- package/dist/services/requirement-analyzer/core/project-analyzer.d.ts.map +0 -1
- package/dist/services/requirement-analyzer/core/requirement-analyzer-service.d.ts +0 -43
- package/dist/services/requirement-analyzer/core/requirement-analyzer-service.d.ts.map +0 -1
- package/dist/services/requirement-analyzer/core/template-selector.d.ts +0 -36
- package/dist/services/requirement-analyzer/core/template-selector.d.ts.map +0 -1
- package/dist/services/requirement-analyzer/core/types.d.ts +0 -105
- package/dist/services/requirement-analyzer/core/types.d.ts.map +0 -1
- package/dist/services/requirement-analyzer/utils/file-reader.d.ts +0 -9
- package/dist/services/requirement-analyzer/utils/file-reader.d.ts.map +0 -1
|
@@ -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":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;oBASJ;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;CAkCzE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;oBAmBf;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC;QAC/B,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;;;;;;CAwDF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;oBAYN;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC;QAC/B,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAC7B;;;;;;CA2BF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;oBAMD;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;;;;;;CAmBrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;oBA7MC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;oBA0DlD;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC;QAC/B,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;;;;;;;;;;;;;;;oBAyEqB;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC;QAC/B,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAC7B;;;;;;;;;;;;oBAsCqB;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;;;;;;IA6BrC,CAAC"}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* 【推荐】创建云文档
|
|
4
|
+
* 当用户要求创建文档时,优先使用此工具
|
|
5
|
+
*/
|
|
6
|
+
export declare const createDocTool: {
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
inputSchema: {
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12
|
+
type: z.ZodEnum<["text", "h1", "h2", "h3", "h4", "h5", "h6", "bullet", "ordered", "code", "quote", "todo", "callout", "divider"]>;
|
|
13
|
+
content: z.ZodOptional<z.ZodString>;
|
|
14
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
|
|
17
|
+
content?: string | undefined;
|
|
18
|
+
lang?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
|
|
21
|
+
content?: string | undefined;
|
|
22
|
+
lang?: string | undefined;
|
|
23
|
+
}>, "many">>;
|
|
24
|
+
folder: z.ZodOptional<z.ZodString>;
|
|
25
|
+
email: z.ZodString;
|
|
26
|
+
};
|
|
27
|
+
handler: (args: {
|
|
28
|
+
title: string;
|
|
29
|
+
blocks?: Array<{
|
|
30
|
+
type: string;
|
|
31
|
+
content?: string;
|
|
32
|
+
lang?: string;
|
|
33
|
+
}>;
|
|
34
|
+
folder?: string;
|
|
35
|
+
email?: string;
|
|
36
|
+
}) => Promise<{
|
|
37
|
+
content: {
|
|
38
|
+
type: "text";
|
|
39
|
+
text: string;
|
|
40
|
+
}[];
|
|
41
|
+
}>;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* 导入Markdown为云文档
|
|
45
|
+
*/
|
|
46
|
+
export declare const importMarkdownTool: {
|
|
47
|
+
name: string;
|
|
48
|
+
description: string;
|
|
49
|
+
inputSchema: {
|
|
50
|
+
md: z.ZodString;
|
|
51
|
+
title: z.ZodOptional<z.ZodString>;
|
|
52
|
+
folder: z.ZodOptional<z.ZodString>;
|
|
53
|
+
email: z.ZodString;
|
|
54
|
+
};
|
|
55
|
+
handler: (args: {
|
|
56
|
+
md: string;
|
|
57
|
+
title?: string;
|
|
58
|
+
folder?: string;
|
|
59
|
+
email?: string;
|
|
60
|
+
}) => Promise<{
|
|
61
|
+
content: {
|
|
62
|
+
type: "text";
|
|
63
|
+
text: string;
|
|
64
|
+
}[];
|
|
65
|
+
}>;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* 获取文档内容
|
|
69
|
+
*/
|
|
70
|
+
export declare const getDocContentTool: {
|
|
71
|
+
name: string;
|
|
72
|
+
description: string;
|
|
73
|
+
inputSchema: {
|
|
74
|
+
id: z.ZodString;
|
|
75
|
+
};
|
|
76
|
+
handler: (args: {
|
|
77
|
+
id: string;
|
|
78
|
+
}) => Promise<{
|
|
79
|
+
content: {
|
|
80
|
+
type: "text";
|
|
81
|
+
text: string;
|
|
82
|
+
}[];
|
|
83
|
+
}>;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* 搜索文档
|
|
87
|
+
*/
|
|
88
|
+
export declare const searchDocsTool: {
|
|
89
|
+
name: string;
|
|
90
|
+
description: string;
|
|
91
|
+
inputSchema: {
|
|
92
|
+
q: z.ZodString;
|
|
93
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["doc", "sheet", "bitable", "docx"]>, "many">>;
|
|
94
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
};
|
|
96
|
+
handler: (args: {
|
|
97
|
+
q: string;
|
|
98
|
+
types?: string[];
|
|
99
|
+
limit?: number;
|
|
100
|
+
}) => Promise<{
|
|
101
|
+
content: {
|
|
102
|
+
type: "text";
|
|
103
|
+
text: string;
|
|
104
|
+
}[];
|
|
105
|
+
}>;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* 追加文档内容
|
|
109
|
+
*/
|
|
110
|
+
export declare const appendDocTool: {
|
|
111
|
+
name: string;
|
|
112
|
+
description: string;
|
|
113
|
+
inputSchema: {
|
|
114
|
+
doc: z.ZodString;
|
|
115
|
+
blocks: z.ZodArray<z.ZodObject<{
|
|
116
|
+
type: z.ZodEnum<["text", "h1", "h2", "h3", "h4", "h5", "h6", "bullet", "ordered", "code", "quote", "todo", "callout", "divider"]>;
|
|
117
|
+
content: z.ZodOptional<z.ZodString>;
|
|
118
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
|
|
121
|
+
content?: string | undefined;
|
|
122
|
+
lang?: string | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
|
|
125
|
+
content?: string | undefined;
|
|
126
|
+
lang?: string | undefined;
|
|
127
|
+
}>, "many">;
|
|
128
|
+
};
|
|
129
|
+
handler: (args: {
|
|
130
|
+
doc: string;
|
|
131
|
+
blocks: Array<{
|
|
132
|
+
type: string;
|
|
133
|
+
content?: string;
|
|
134
|
+
lang?: string;
|
|
135
|
+
}>;
|
|
136
|
+
}) => Promise<{
|
|
137
|
+
content: {
|
|
138
|
+
type: "text";
|
|
139
|
+
text: string;
|
|
140
|
+
}[];
|
|
141
|
+
}>;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* 云文档工具集合
|
|
145
|
+
* 排序说明: createDocTool 放在最前面,AI 会优先选择它
|
|
146
|
+
*/
|
|
147
|
+
export declare const docTools: ({
|
|
148
|
+
name: string;
|
|
149
|
+
description: string;
|
|
150
|
+
inputSchema: {
|
|
151
|
+
title: z.ZodString;
|
|
152
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
153
|
+
type: z.ZodEnum<["text", "h1", "h2", "h3", "h4", "h5", "h6", "bullet", "ordered", "code", "quote", "todo", "callout", "divider"]>;
|
|
154
|
+
content: z.ZodOptional<z.ZodString>;
|
|
155
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
|
|
158
|
+
content?: string | undefined;
|
|
159
|
+
lang?: string | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
|
|
162
|
+
content?: string | undefined;
|
|
163
|
+
lang?: string | undefined;
|
|
164
|
+
}>, "many">>;
|
|
165
|
+
folder: z.ZodOptional<z.ZodString>;
|
|
166
|
+
email: z.ZodString;
|
|
167
|
+
};
|
|
168
|
+
handler: (args: {
|
|
169
|
+
title: string;
|
|
170
|
+
blocks?: Array<{
|
|
171
|
+
type: string;
|
|
172
|
+
content?: string;
|
|
173
|
+
lang?: string;
|
|
174
|
+
}>;
|
|
175
|
+
folder?: string;
|
|
176
|
+
email?: string;
|
|
177
|
+
}) => Promise<{
|
|
178
|
+
content: {
|
|
179
|
+
type: "text";
|
|
180
|
+
text: string;
|
|
181
|
+
}[];
|
|
182
|
+
}>;
|
|
183
|
+
} | {
|
|
184
|
+
name: string;
|
|
185
|
+
description: string;
|
|
186
|
+
inputSchema: {
|
|
187
|
+
md: z.ZodString;
|
|
188
|
+
title: z.ZodOptional<z.ZodString>;
|
|
189
|
+
folder: z.ZodOptional<z.ZodString>;
|
|
190
|
+
email: z.ZodString;
|
|
191
|
+
};
|
|
192
|
+
handler: (args: {
|
|
193
|
+
md: string;
|
|
194
|
+
title?: string;
|
|
195
|
+
folder?: string;
|
|
196
|
+
email?: string;
|
|
197
|
+
}) => Promise<{
|
|
198
|
+
content: {
|
|
199
|
+
type: "text";
|
|
200
|
+
text: string;
|
|
201
|
+
}[];
|
|
202
|
+
}>;
|
|
203
|
+
} | {
|
|
204
|
+
name: string;
|
|
205
|
+
description: string;
|
|
206
|
+
inputSchema: {
|
|
207
|
+
id: z.ZodString;
|
|
208
|
+
};
|
|
209
|
+
handler: (args: {
|
|
210
|
+
id: string;
|
|
211
|
+
}) => Promise<{
|
|
212
|
+
content: {
|
|
213
|
+
type: "text";
|
|
214
|
+
text: string;
|
|
215
|
+
}[];
|
|
216
|
+
}>;
|
|
217
|
+
} | {
|
|
218
|
+
name: string;
|
|
219
|
+
description: string;
|
|
220
|
+
inputSchema: {
|
|
221
|
+
q: z.ZodString;
|
|
222
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<["doc", "sheet", "bitable", "docx"]>, "many">>;
|
|
223
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
};
|
|
225
|
+
handler: (args: {
|
|
226
|
+
q: string;
|
|
227
|
+
types?: string[];
|
|
228
|
+
limit?: number;
|
|
229
|
+
}) => Promise<{
|
|
230
|
+
content: {
|
|
231
|
+
type: "text";
|
|
232
|
+
text: string;
|
|
233
|
+
}[];
|
|
234
|
+
}>;
|
|
235
|
+
} | {
|
|
236
|
+
name: string;
|
|
237
|
+
description: string;
|
|
238
|
+
inputSchema: {
|
|
239
|
+
doc: z.ZodString;
|
|
240
|
+
blocks: z.ZodArray<z.ZodObject<{
|
|
241
|
+
type: z.ZodEnum<["text", "h1", "h2", "h3", "h4", "h5", "h6", "bullet", "ordered", "code", "quote", "todo", "callout", "divider"]>;
|
|
242
|
+
content: z.ZodOptional<z.ZodString>;
|
|
243
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
|
|
246
|
+
content?: string | undefined;
|
|
247
|
+
lang?: string | undefined;
|
|
248
|
+
}, {
|
|
249
|
+
type: "code" | "text" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bullet" | "ordered" | "quote" | "todo" | "callout" | "divider";
|
|
250
|
+
content?: string | undefined;
|
|
251
|
+
lang?: string | undefined;
|
|
252
|
+
}>, "many">;
|
|
253
|
+
};
|
|
254
|
+
handler: (args: {
|
|
255
|
+
doc: string;
|
|
256
|
+
blocks: Array<{
|
|
257
|
+
type: string;
|
|
258
|
+
content?: string;
|
|
259
|
+
lang?: string;
|
|
260
|
+
}>;
|
|
261
|
+
}) => Promise<{
|
|
262
|
+
content: {
|
|
263
|
+
type: "text";
|
|
264
|
+
text: string;
|
|
265
|
+
}[];
|
|
266
|
+
}>;
|
|
267
|
+
})[];
|
|
268
|
+
//# 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;AAqJxB;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;oBAkBF;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;;;;;;;;;oBAWP;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;;;;;;oBAWN;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;;;;;;CAYrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;oBAYH;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;;;;;;;;;;;;;;;;;;;oBAiBF;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;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;oBA/OG;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;;;;;;;;;;;;;;;oBA8DqB;QACpB,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;;;;;;;;;;;;oBAqEqB;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;oBA6Bd;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;oBA0C/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;;;;;;IA8BF,CAAC"}
|