@andrebuzeli/git-mcp 2.39.0 → 2.41.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/server.d.ts.map +1 -1
- package/dist/server.js +6 -9
- package/dist/server.js.map +1 -1
- package/dist/tools/git-update-project.d.ts +222 -2
- package/dist/tools/git-update-project.d.ts.map +1 -1
- package/dist/tools/git-update-project.js +673 -23
- package/dist/tools/git-update-project.js.map +1 -1
- package/dist/utils/git-operations.d.ts +4 -0
- package/dist/utils/git-operations.d.ts.map +1 -1
- package/dist/utils/git-operations.js +6 -0
- package/dist/utils/git-operations.js.map +1 -1
- package/package.json +3 -3
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AA8FA;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAS;;IAavB;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,aAAa;IAuDrB;;;;;;;;;;;;;;;;;;OAkBG;IACG,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA8D1B;;;;;;;;;;;;OAYG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG7B"}
|
package/dist/server.js
CHANGED
|
@@ -7,17 +7,16 @@ const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
|
|
|
7
7
|
const config_js_1 = require("./config.js");
|
|
8
8
|
const index_js_2 = require("./providers/index.js");
|
|
9
9
|
/**
|
|
10
|
-
* Importação de todas as ferramentas MCP disponíveis (
|
|
10
|
+
* Importação de todas as ferramentas MCP disponíveis (20 tools)
|
|
11
11
|
*
|
|
12
|
-
* GIT CORE (
|
|
12
|
+
* GIT CORE (20 tools) - Funcionam com GitHub + Gitea:
|
|
13
13
|
* - git-repositories: Gerenciamento de repositórios
|
|
14
14
|
* - git-commits: Operações com commits
|
|
15
15
|
* - git-pulls: Pull requests e merges
|
|
16
16
|
* - git-branches: Operações com branches
|
|
17
17
|
* - git-tags: Gerenciamento de tags
|
|
18
18
|
* - git-files: Gerenciamento de arquivos
|
|
19
|
-
* - git-
|
|
20
|
-
* - git-update-project: Atualização incremental de projeto
|
|
19
|
+
* - git-update-project: Gerenciamento completo (upload + atualização incremental)
|
|
21
20
|
* - git-initialize: Inicialização completa de repositório
|
|
22
21
|
* - git-issues: Gerenciamento de issues
|
|
23
22
|
* - git-releases: Gerenciamento de releases
|
|
@@ -38,7 +37,6 @@ const git_commits_js_1 = require("./tools/git-commits.js");
|
|
|
38
37
|
const git_branches_js_1 = require("./tools/git-branches.js");
|
|
39
38
|
const git_tags_js_1 = require("./tools/git-tags.js");
|
|
40
39
|
const git_files_js_1 = require("./tools/git-files.js");
|
|
41
|
-
const git_upload_project_js_1 = require("./tools/git-upload-project.js");
|
|
42
40
|
const git_update_project_js_1 = require("./tools/git-update-project.js");
|
|
43
41
|
const git_initialize_js_1 = require("./tools/git-initialize.js");
|
|
44
42
|
const git_issues_js_1 = require("./tools/git-issues.js");
|
|
@@ -55,7 +53,7 @@ const git_sync_js_1 = require("./tools/git-sync.js");
|
|
|
55
53
|
const git_packages_js_1 = require("./tools/git-packages.js");
|
|
56
54
|
const git_projects_js_1 = require("./tools/git-projects.js");
|
|
57
55
|
/**
|
|
58
|
-
* Array de todas as ferramentas disponíveis (
|
|
56
|
+
* Array de todas as ferramentas disponíveis (20 tools)
|
|
59
57
|
*
|
|
60
58
|
* ESTRUTURA:
|
|
61
59
|
* - Cada tool deve implementar a interface Tool
|
|
@@ -63,7 +61,7 @@ const git_projects_js_1 = require("./tools/git-projects.js");
|
|
|
63
61
|
* - Handler deve ser assíncrono e retornar resultado
|
|
64
62
|
*
|
|
65
63
|
* ORGANIZAÇÃO:
|
|
66
|
-
* - Git Core (
|
|
64
|
+
* - Git Core (20): Funcionam com GitHub + Gitea
|
|
67
65
|
*
|
|
68
66
|
* USO:
|
|
69
67
|
* - Para listagem de tools disponíveis
|
|
@@ -71,13 +69,12 @@ const git_projects_js_1 = require("./tools/git-projects.js");
|
|
|
71
69
|
* - Para validação de parâmetros
|
|
72
70
|
*/
|
|
73
71
|
const tools = [
|
|
74
|
-
// Git Core Tools (
|
|
72
|
+
// Git Core Tools (20) - GitHub + Gitea
|
|
75
73
|
git_repositories_js_1.gitRepositoriesTool,
|
|
76
74
|
git_commits_js_1.commitsTool,
|
|
77
75
|
git_branches_js_1.branchesTool,
|
|
78
76
|
git_tags_js_1.tagsTool,
|
|
79
77
|
git_files_js_1.filesTool,
|
|
80
|
-
git_upload_project_js_1.uploadProjectTool,
|
|
81
78
|
git_update_project_js_1.gitUpdateProjectTool,
|
|
82
79
|
git_initialize_js_1.initializeTool,
|
|
83
80
|
git_issues_js_1.issuesTool,
|
package/dist/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;;AAAA,wEAAmE;AACnE,wEAAiF;AACjF,iEAAmG;AACnG,2CAAqC;AACrC,mDAAuF;AAEvF
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;;AAAA,wEAAmE;AACnE,wEAAiF;AACjF,iEAAmG;AACnG,2CAAqC;AACrC,mDAAuF;AAEvF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,sBAAsB;AACtB,qEAAkE;AAClE,2DAAqD;AACrD,6DAAuD;AACvD,qDAA+C;AAC/C,uDAAiD;AACjD,yEAAqE;AACrE,iEAA2D;AAC3D,yDAAmD;AACnD,uDAAiD;AACjD,6DAAuD;AACvD,0DAA0D;AAC1D,uDAAoD;AACpD,yDAAsD;AACtD,uDAAoD;AACpD,yDAAsD;AACtD,yDAAsD;AACtD,2D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AE,CAAC;YACd,6BAA6B;QAC/B,CAAC;IACH,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IAC5B,CAAC;CACF;AAxLD,wCAwLC;AAED;;;;;;;;;;;;;;;;;GAiBG;AAEH,+CAA+C;AAC/C,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IAC9B,uBAAuB;IACvB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,gDAAgD;AAChD,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;IACnD,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACrE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,qCAAqC;AACrC,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,KAAK,EAAE,EAAE;IACxC,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAC5C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
declare const GitUpdateProjectInputSchema: z.ZodObject<{
|
|
2
|
+
declare const GitUpdateProjectInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
3
3
|
action: z.ZodLiteral<"update">;
|
|
4
4
|
repo: z.ZodString;
|
|
5
5
|
projectPath: z.ZodString;
|
|
@@ -23,7 +23,151 @@ declare const GitUpdateProjectInputSchema: z.ZodObject<{
|
|
|
23
23
|
projectPath: string;
|
|
24
24
|
branch?: string | undefined;
|
|
25
25
|
forcePush?: boolean | undefined;
|
|
26
|
-
}
|
|
26
|
+
}>, z.ZodObject<{
|
|
27
|
+
action: z.ZodLiteral<"status">;
|
|
28
|
+
projectPath: z.ZodString;
|
|
29
|
+
detailed: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
action: "status";
|
|
32
|
+
projectPath: string;
|
|
33
|
+
detailed?: boolean | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
action: "status";
|
|
36
|
+
projectPath: string;
|
|
37
|
+
detailed?: boolean | undefined;
|
|
38
|
+
}>, z.ZodObject<{
|
|
39
|
+
action: z.ZodLiteral<"diff">;
|
|
40
|
+
projectPath: z.ZodString;
|
|
41
|
+
staged: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
nameOnly: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
action: "diff";
|
|
46
|
+
projectPath: string;
|
|
47
|
+
commit?: string | undefined;
|
|
48
|
+
staged?: boolean | undefined;
|
|
49
|
+
nameOnly?: boolean | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
action: "diff";
|
|
52
|
+
projectPath: string;
|
|
53
|
+
commit?: string | undefined;
|
|
54
|
+
staged?: boolean | undefined;
|
|
55
|
+
nameOnly?: boolean | undefined;
|
|
56
|
+
}>, z.ZodObject<{
|
|
57
|
+
action: z.ZodLiteral<"log">;
|
|
58
|
+
projectPath: z.ZodString;
|
|
59
|
+
maxCount: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
oneline: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
action: "log";
|
|
64
|
+
projectPath: string;
|
|
65
|
+
branch?: string | undefined;
|
|
66
|
+
maxCount?: number | undefined;
|
|
67
|
+
oneline?: boolean | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
action: "log";
|
|
70
|
+
projectPath: string;
|
|
71
|
+
branch?: string | undefined;
|
|
72
|
+
maxCount?: number | undefined;
|
|
73
|
+
oneline?: boolean | undefined;
|
|
74
|
+
}>, z.ZodObject<{
|
|
75
|
+
action: z.ZodLiteral<"reset">;
|
|
76
|
+
projectPath: z.ZodString;
|
|
77
|
+
mode: z.ZodOptional<z.ZodEnum<["soft", "mixed", "hard"]>>;
|
|
78
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
action: "reset";
|
|
81
|
+
projectPath: string;
|
|
82
|
+
commit?: string | undefined;
|
|
83
|
+
mode?: "soft" | "mixed" | "hard" | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
action: "reset";
|
|
86
|
+
projectPath: string;
|
|
87
|
+
commit?: string | undefined;
|
|
88
|
+
mode?: "soft" | "mixed" | "hard" | undefined;
|
|
89
|
+
}>, z.ZodObject<{
|
|
90
|
+
action: z.ZodLiteral<"stash">;
|
|
91
|
+
projectPath: z.ZodString;
|
|
92
|
+
operation: z.ZodOptional<z.ZodEnum<["save", "pop", "apply", "list", "drop", "clear"]>>;
|
|
93
|
+
message: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
action: "stash";
|
|
96
|
+
projectPath: string;
|
|
97
|
+
message?: string | undefined;
|
|
98
|
+
operation?: "pop" | "apply" | "list" | "drop" | "clear" | "save" | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
action: "stash";
|
|
101
|
+
projectPath: string;
|
|
102
|
+
message?: string | undefined;
|
|
103
|
+
operation?: "pop" | "apply" | "list" | "drop" | "clear" | "save" | undefined;
|
|
104
|
+
}>, z.ZodObject<{
|
|
105
|
+
action: z.ZodLiteral<"pull">;
|
|
106
|
+
projectPath: z.ZodString;
|
|
107
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
action: "pull";
|
|
110
|
+
projectPath: string;
|
|
111
|
+
branch?: string | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
action: "pull";
|
|
114
|
+
projectPath: string;
|
|
115
|
+
branch?: string | undefined;
|
|
116
|
+
}>, z.ZodObject<{
|
|
117
|
+
action: z.ZodLiteral<"sync">;
|
|
118
|
+
repo: z.ZodString;
|
|
119
|
+
projectPath: z.ZodString;
|
|
120
|
+
provider: z.ZodEnum<["gitea", "github"]>;
|
|
121
|
+
message: z.ZodString;
|
|
122
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
123
|
+
forcePush: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
provider: "gitea" | "github";
|
|
126
|
+
message: string;
|
|
127
|
+
repo: string;
|
|
128
|
+
action: "sync";
|
|
129
|
+
projectPath: string;
|
|
130
|
+
branch?: string | undefined;
|
|
131
|
+
forcePush?: boolean | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
provider: "gitea" | "github";
|
|
134
|
+
message: string;
|
|
135
|
+
repo: string;
|
|
136
|
+
action: "sync";
|
|
137
|
+
projectPath: string;
|
|
138
|
+
branch?: string | undefined;
|
|
139
|
+
forcePush?: boolean | undefined;
|
|
140
|
+
}>, z.ZodObject<{
|
|
141
|
+
action: z.ZodLiteral<"init">;
|
|
142
|
+
repo: z.ZodString;
|
|
143
|
+
projectPath: z.ZodString;
|
|
144
|
+
provider: z.ZodEnum<["gitea", "github"]>;
|
|
145
|
+
message: z.ZodString;
|
|
146
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
147
|
+
createRepo: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
forcePush: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
granular: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
provider: "gitea" | "github";
|
|
152
|
+
message: string;
|
|
153
|
+
repo: string;
|
|
154
|
+
action: "init";
|
|
155
|
+
projectPath: string;
|
|
156
|
+
branch?: string | undefined;
|
|
157
|
+
forcePush?: boolean | undefined;
|
|
158
|
+
createRepo?: boolean | undefined;
|
|
159
|
+
granular?: boolean | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
provider: "gitea" | "github";
|
|
162
|
+
message: string;
|
|
163
|
+
repo: string;
|
|
164
|
+
action: "init";
|
|
165
|
+
projectPath: string;
|
|
166
|
+
branch?: string | undefined;
|
|
167
|
+
forcePush?: boolean | undefined;
|
|
168
|
+
createRepo?: boolean | undefined;
|
|
169
|
+
granular?: boolean | undefined;
|
|
170
|
+
}>]>;
|
|
27
171
|
export type GitUpdateProjectInput = z.infer<typeof GitUpdateProjectInputSchema>;
|
|
28
172
|
declare const GitUpdateProjectResultSchema: z.ZodObject<{
|
|
29
173
|
success: z.ZodBoolean;
|
|
@@ -83,6 +227,57 @@ export declare const gitUpdateProjectTool: {
|
|
|
83
227
|
description: string;
|
|
84
228
|
default: boolean;
|
|
85
229
|
};
|
|
230
|
+
createRepo: {
|
|
231
|
+
type: string;
|
|
232
|
+
description: string;
|
|
233
|
+
default: boolean;
|
|
234
|
+
};
|
|
235
|
+
granular: {
|
|
236
|
+
type: string;
|
|
237
|
+
description: string;
|
|
238
|
+
default: boolean;
|
|
239
|
+
};
|
|
240
|
+
detailed: {
|
|
241
|
+
type: string;
|
|
242
|
+
description: string;
|
|
243
|
+
default: boolean;
|
|
244
|
+
};
|
|
245
|
+
staged: {
|
|
246
|
+
type: string;
|
|
247
|
+
description: string;
|
|
248
|
+
default: boolean;
|
|
249
|
+
};
|
|
250
|
+
nameOnly: {
|
|
251
|
+
type: string;
|
|
252
|
+
description: string;
|
|
253
|
+
default: boolean;
|
|
254
|
+
};
|
|
255
|
+
commit: {
|
|
256
|
+
type: string;
|
|
257
|
+
description: string;
|
|
258
|
+
};
|
|
259
|
+
maxCount: {
|
|
260
|
+
type: string;
|
|
261
|
+
description: string;
|
|
262
|
+
default: number;
|
|
263
|
+
};
|
|
264
|
+
oneline: {
|
|
265
|
+
type: string;
|
|
266
|
+
description: string;
|
|
267
|
+
default: boolean;
|
|
268
|
+
};
|
|
269
|
+
mode: {
|
|
270
|
+
type: string;
|
|
271
|
+
enum: string[];
|
|
272
|
+
description: string;
|
|
273
|
+
default: string;
|
|
274
|
+
};
|
|
275
|
+
operation: {
|
|
276
|
+
type: string;
|
|
277
|
+
enum: string[];
|
|
278
|
+
description: string;
|
|
279
|
+
default: string;
|
|
280
|
+
};
|
|
86
281
|
};
|
|
87
282
|
required: string[];
|
|
88
283
|
};
|
|
@@ -90,6 +285,31 @@ export declare const gitUpdateProjectTool: {
|
|
|
90
285
|
handleUpdate(params: GitUpdateProjectInput & {
|
|
91
286
|
action: "update";
|
|
92
287
|
}): Promise<GitUpdateProjectResult>;
|
|
288
|
+
handleStatus(params: GitUpdateProjectInput & {
|
|
289
|
+
action: "status";
|
|
290
|
+
}): Promise<GitUpdateProjectResult>;
|
|
291
|
+
handleDiff(params: GitUpdateProjectInput & {
|
|
292
|
+
action: "diff";
|
|
293
|
+
}): Promise<GitUpdateProjectResult>;
|
|
294
|
+
handleLog(params: GitUpdateProjectInput & {
|
|
295
|
+
action: "log";
|
|
296
|
+
}): Promise<GitUpdateProjectResult>;
|
|
297
|
+
handleReset(params: GitUpdateProjectInput & {
|
|
298
|
+
action: "reset";
|
|
299
|
+
}): Promise<GitUpdateProjectResult>;
|
|
300
|
+
handleStash(params: GitUpdateProjectInput & {
|
|
301
|
+
action: "stash";
|
|
302
|
+
}): Promise<GitUpdateProjectResult>;
|
|
303
|
+
handlePull(params: GitUpdateProjectInput & {
|
|
304
|
+
action: "pull";
|
|
305
|
+
}): Promise<GitUpdateProjectResult>;
|
|
306
|
+
handleSync(params: GitUpdateProjectInput & {
|
|
307
|
+
action: "sync";
|
|
308
|
+
}): Promise<GitUpdateProjectResult>;
|
|
309
|
+
handleInit(params: GitUpdateProjectInput & {
|
|
310
|
+
action: "init";
|
|
311
|
+
}): Promise<GitUpdateProjectResult>;
|
|
312
|
+
groupFilesByType(projectPath: string): Promise<Record<string, string[]>>;
|
|
93
313
|
};
|
|
94
314
|
export {};
|
|
95
315
|
//# sourceMappingURL=git-update-project.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-update-project.d.ts","sourceRoot":"","sources":["../../src/tools/git-update-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,QAAA,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"git-update-project.d.ts","sourceRoot":"","sources":["../../src/tools/git-update-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmF/B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;EAMhC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAmCV,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;yBAqCjD,qBAAqB,GAAG;QAAE,MAAM,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC,sBAAsB,CA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