fourmis-agents-sdk 0.3.0 → 0.4.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.
Files changed (102) hide show
  1. package/dist/agent-loop.d.ts +21 -3
  2. package/dist/agent-loop.d.ts.map +1 -1
  3. package/dist/agent-loop.js +294 -90
  4. package/dist/agents/index.js +2798 -1857
  5. package/dist/agents/task-manager.js +15 -0
  6. package/dist/agents/tools.d.ts.map +1 -1
  7. package/dist/agents/tools.js +2798 -1857
  8. package/dist/agents/types.d.ts +4 -0
  9. package/dist/agents/types.d.ts.map +1 -1
  10. package/dist/api.d.ts +8 -5
  11. package/dist/api.d.ts.map +1 -1
  12. package/dist/api.js +2394 -886
  13. package/dist/auth/gemini-oauth.js +15 -0
  14. package/dist/auth/login-openai.js +15 -0
  15. package/dist/auth/openai-oauth.js +15 -0
  16. package/dist/hooks.d.ts +19 -1
  17. package/dist/hooks.d.ts.map +1 -1
  18. package/dist/hooks.js +42 -2
  19. package/dist/index.d.ts +10 -1
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +2407 -887
  22. package/dist/mcp/client.d.ts +7 -0
  23. package/dist/mcp/client.d.ts.map +1 -1
  24. package/dist/mcp/client.js +146 -12
  25. package/dist/mcp/index.js +146 -12
  26. package/dist/mcp/server.js +15 -0
  27. package/dist/mcp/types.d.ts +19 -1
  28. package/dist/mcp/types.d.ts.map +1 -1
  29. package/dist/memory/index.js +15 -0
  30. package/dist/memory/memory-handler.js +15 -0
  31. package/dist/permissions.d.ts.map +1 -1
  32. package/dist/permissions.js +22 -3
  33. package/dist/providers/anthropic.d.ts.map +1 -1
  34. package/dist/providers/anthropic.js +56 -2
  35. package/dist/providers/gemini.js +15 -0
  36. package/dist/providers/openai.js +15 -0
  37. package/dist/providers/registry.js +56 -2
  38. package/dist/providers/types.d.ts +4 -1
  39. package/dist/providers/types.d.ts.map +1 -1
  40. package/dist/query.d.ts +21 -2
  41. package/dist/query.d.ts.map +1 -1
  42. package/dist/query.js +84 -1
  43. package/dist/settings.js +15 -0
  44. package/dist/skills/frontmatter.d.ts +15 -0
  45. package/dist/skills/frontmatter.d.ts.map +1 -0
  46. package/dist/skills/frontmatter.js +66 -0
  47. package/dist/skills/index.d.ts +8 -0
  48. package/dist/skills/index.d.ts.map +1 -0
  49. package/dist/skills/index.js +326 -0
  50. package/dist/skills/skills.d.ts +94 -0
  51. package/dist/skills/skills.d.ts.map +1 -0
  52. package/dist/skills/skills.js +324 -0
  53. package/dist/tools/ask-user-question.d.ts +7 -0
  54. package/dist/tools/ask-user-question.d.ts.map +1 -0
  55. package/dist/tools/ask-user-question.js +63 -0
  56. package/dist/tools/bash.d.ts.map +1 -1
  57. package/dist/tools/bash.js +62 -2
  58. package/dist/tools/config.d.ts +7 -0
  59. package/dist/tools/config.d.ts.map +1 -0
  60. package/dist/tools/config.js +129 -0
  61. package/dist/tools/edit.js +15 -0
  62. package/dist/tools/exit-plan-mode.d.ts +7 -0
  63. package/dist/tools/exit-plan-mode.d.ts.map +1 -0
  64. package/dist/tools/exit-plan-mode.js +49 -0
  65. package/dist/tools/glob.js +15 -0
  66. package/dist/tools/grep.js +15 -0
  67. package/dist/tools/index.d.ts +7 -0
  68. package/dist/tools/index.d.ts.map +1 -1
  69. package/dist/tools/index.js +521 -9
  70. package/dist/tools/mcp-resources.js +15 -0
  71. package/dist/tools/notebook-edit.d.ts +7 -0
  72. package/dist/tools/notebook-edit.d.ts.map +1 -0
  73. package/dist/tools/notebook-edit.js +98 -0
  74. package/dist/tools/presets.d.ts +2 -1
  75. package/dist/tools/presets.d.ts.map +1 -1
  76. package/dist/tools/presets.js +37 -4
  77. package/dist/tools/read.d.ts.map +1 -1
  78. package/dist/tools/read.js +27 -1
  79. package/dist/tools/registry.d.ts +2 -0
  80. package/dist/tools/registry.d.ts.map +1 -1
  81. package/dist/tools/registry.js +25 -0
  82. package/dist/tools/todo-write.d.ts +7 -0
  83. package/dist/tools/todo-write.d.ts.map +1 -0
  84. package/dist/tools/todo-write.js +84 -0
  85. package/dist/tools/web-fetch.d.ts +6 -0
  86. package/dist/tools/web-fetch.d.ts.map +1 -0
  87. package/dist/tools/web-fetch.js +100 -0
  88. package/dist/tools/web-search.d.ts +7 -0
  89. package/dist/tools/web-search.d.ts.map +1 -0
  90. package/dist/tools/web-search.js +93 -0
  91. package/dist/tools/write.js +15 -0
  92. package/dist/types.d.ts +360 -42
  93. package/dist/types.d.ts.map +1 -1
  94. package/dist/types.js +15 -0
  95. package/dist/utils/cost.js +15 -0
  96. package/dist/utils/session-store.d.ts +1 -1
  97. package/dist/utils/session-store.d.ts.map +1 -1
  98. package/dist/utils/session-store.js +64 -2
  99. package/dist/utils/system-prompt.d.ts +4 -0
  100. package/dist/utils/system-prompt.d.ts.map +1 -1
  101. package/dist/utils/system-prompt.js +326 -6
  102. package/package.json +4 -2
@@ -0,0 +1,326 @@
1
+ // @bun
2
+ var __create = Object.create;
3
+ var __getProtoOf = Object.getPrototypeOf;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __toESM = (mod, isNodeMode, target) => {
8
+ target = mod != null ? __create(__getProtoOf(mod)) : {};
9
+ const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
10
+ for (let key of __getOwnPropNames(mod))
11
+ if (!__hasOwnProp.call(to, key))
12
+ __defProp(to, key, {
13
+ get: () => mod[key],
14
+ enumerable: true
15
+ });
16
+ return to;
17
+ };
18
+ var __export = (target, all) => {
19
+ for (var name in all)
20
+ __defProp(target, name, {
21
+ get: all[name],
22
+ enumerable: true,
23
+ configurable: true,
24
+ set: (newValue) => all[name] = () => newValue
25
+ });
26
+ };
27
+ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
28
+ var __require = import.meta.require;
29
+
30
+ // src/skills/frontmatter.ts
31
+ import { parse } from "yaml";
32
+ function normalizeNewlines(value) {
33
+ return value.replace(/\r\n/g, `
34
+ `).replace(/\r/g, `
35
+ `);
36
+ }
37
+ function extractFrontmatter(content) {
38
+ const normalized = normalizeNewlines(content);
39
+ if (!normalized.startsWith("---")) {
40
+ return { yamlString: null, body: normalized };
41
+ }
42
+ const endIndex = normalized.indexOf(`
43
+ ---`, 3);
44
+ if (endIndex === -1) {
45
+ return { yamlString: null, body: normalized };
46
+ }
47
+ return {
48
+ yamlString: normalized.slice(4, endIndex),
49
+ body: normalized.slice(endIndex + 4).trim()
50
+ };
51
+ }
52
+ function parseFrontmatter(content) {
53
+ const { yamlString, body } = extractFrontmatter(content);
54
+ if (!yamlString) {
55
+ return { frontmatter: {}, body };
56
+ }
57
+ const parsed = parse(yamlString);
58
+ return { frontmatter: parsed ?? {}, body };
59
+ }
60
+ function stripFrontmatter(content) {
61
+ return parseFrontmatter(content).body;
62
+ }
63
+
64
+ // src/skills/skills.ts
65
+ import { existsSync, readdirSync, readFileSync, realpathSync, statSync } from "fs";
66
+ import { homedir } from "os";
67
+ import { basename, dirname, isAbsolute, join, resolve } from "path";
68
+ var MAX_NAME_LENGTH = 64;
69
+ var MAX_DESCRIPTION_LENGTH = 1024;
70
+ var MAX_COMPATIBILITY_LENGTH = 500;
71
+ var CONFIG_DIR_NAME = ".claude";
72
+ function shouldIgnore(name) {
73
+ return name.startsWith(".") || name === "node_modules";
74
+ }
75
+ function validateName(name, parentDirName) {
76
+ const errors = [];
77
+ if (name !== parentDirName) {
78
+ errors.push(`name "${name}" does not match parent directory "${parentDirName}"`);
79
+ }
80
+ if (name.length > MAX_NAME_LENGTH) {
81
+ errors.push(`name exceeds ${MAX_NAME_LENGTH} characters (${name.length})`);
82
+ }
83
+ if (!/^[a-z0-9-]+$/.test(name)) {
84
+ errors.push(`name contains invalid characters (must be lowercase a-z, 0-9, hyphens only)`);
85
+ }
86
+ if (name.startsWith("-") || name.endsWith("-")) {
87
+ errors.push(`name must not start or end with a hyphen`);
88
+ }
89
+ if (name.includes("--")) {
90
+ errors.push(`name must not contain consecutive hyphens`);
91
+ }
92
+ return errors;
93
+ }
94
+ function validateDescription(description) {
95
+ const errors = [];
96
+ if (!description || description.trim() === "") {
97
+ errors.push("description is required");
98
+ } else if (description.length > MAX_DESCRIPTION_LENGTH) {
99
+ errors.push(`description exceeds ${MAX_DESCRIPTION_LENGTH} characters (${description.length})`);
100
+ }
101
+ return errors;
102
+ }
103
+ function validateCompatibility(compatibility) {
104
+ if (!compatibility)
105
+ return [];
106
+ if (compatibility.length > MAX_COMPATIBILITY_LENGTH) {
107
+ return [`compatibility exceeds ${MAX_COMPATIBILITY_LENGTH} characters (${compatibility.length})`];
108
+ }
109
+ return [];
110
+ }
111
+ function loadSkillsFromDir(options) {
112
+ return loadSkillsFromDirInternal(options.dir, options.source, true);
113
+ }
114
+ function loadSkillsFromDirInternal(dir, source, includeRootFiles) {
115
+ const skills = [];
116
+ const diagnostics = [];
117
+ if (!existsSync(dir)) {
118
+ return { skills, diagnostics };
119
+ }
120
+ try {
121
+ const entries = readdirSync(dir, { withFileTypes: true });
122
+ for (const entry of entries) {
123
+ if (shouldIgnore(entry.name)) {
124
+ continue;
125
+ }
126
+ const fullPath = join(dir, entry.name);
127
+ let isDirectory = entry.isDirectory();
128
+ let isFile = entry.isFile();
129
+ if (entry.isSymbolicLink()) {
130
+ try {
131
+ const stats = statSync(fullPath);
132
+ isDirectory = stats.isDirectory();
133
+ isFile = stats.isFile();
134
+ } catch {
135
+ continue;
136
+ }
137
+ }
138
+ if (isDirectory) {
139
+ const subResult = loadSkillsFromDirInternal(fullPath, source, false);
140
+ skills.push(...subResult.skills);
141
+ diagnostics.push(...subResult.diagnostics);
142
+ continue;
143
+ }
144
+ if (!isFile)
145
+ continue;
146
+ const isRootMd = includeRootFiles && entry.name.endsWith(".md");
147
+ const isSkillMd = !includeRootFiles && entry.name === "SKILL.md";
148
+ if (!isRootMd && !isSkillMd)
149
+ continue;
150
+ const result = loadSkillFromFile(fullPath, source);
151
+ if (result.skill) {
152
+ skills.push(result.skill);
153
+ }
154
+ diagnostics.push(...result.diagnostics);
155
+ }
156
+ } catch {}
157
+ return { skills, diagnostics };
158
+ }
159
+ function loadSkillFromFile(filePath, source) {
160
+ const diagnostics = [];
161
+ try {
162
+ const rawContent = readFileSync(filePath, "utf-8");
163
+ const { frontmatter } = parseFrontmatter(rawContent);
164
+ const skillDir = dirname(filePath);
165
+ const parentDirName = basename(skillDir);
166
+ const descErrors = validateDescription(frontmatter.description);
167
+ for (const error of descErrors) {
168
+ diagnostics.push({ type: "warning", message: error, path: filePath });
169
+ }
170
+ const name = frontmatter.name || parentDirName;
171
+ const nameErrors = validateName(name, parentDirName);
172
+ for (const error of nameErrors) {
173
+ diagnostics.push({ type: "warning", message: error, path: filePath });
174
+ }
175
+ const compatErrors = validateCompatibility(frontmatter.compatibility);
176
+ for (const error of compatErrors) {
177
+ diagnostics.push({ type: "warning", message: error, path: filePath });
178
+ }
179
+ if (!frontmatter.description || frontmatter.description.trim() === "") {
180
+ return { skill: null, diagnostics };
181
+ }
182
+ const allowedToolsRaw = frontmatter["allowed-tools"];
183
+ const allowedTools = allowedToolsRaw ? allowedToolsRaw.split(/\s+/).filter(Boolean) : undefined;
184
+ return {
185
+ skill: {
186
+ name,
187
+ description: frontmatter.description,
188
+ filePath,
189
+ baseDir: skillDir,
190
+ source,
191
+ disableModelInvocation: frontmatter["disable-model-invocation"] === true,
192
+ license: frontmatter.license,
193
+ compatibility: frontmatter.compatibility,
194
+ metadata: frontmatter.metadata,
195
+ allowedTools
196
+ },
197
+ diagnostics
198
+ };
199
+ } catch (error) {
200
+ const message = error instanceof Error ? error.message : "failed to parse skill file";
201
+ diagnostics.push({ type: "warning", message, path: filePath });
202
+ return { skill: null, diagnostics };
203
+ }
204
+ }
205
+ function normalizePath(input) {
206
+ const trimmed = input.trim();
207
+ if (trimmed === "~")
208
+ return homedir();
209
+ if (trimmed.startsWith("~/"))
210
+ return join(homedir(), trimmed.slice(2));
211
+ if (trimmed.startsWith("~"))
212
+ return join(homedir(), trimmed.slice(1));
213
+ return trimmed;
214
+ }
215
+ function resolveSkillPath(p, cwd) {
216
+ const normalized = normalizePath(p);
217
+ return isAbsolute(normalized) ? normalized : resolve(cwd, normalized);
218
+ }
219
+ function loadSkills(options = {}) {
220
+ const { cwd = process.cwd(), skillPaths = [], includeDefaults = true } = options;
221
+ const skillMap = new Map;
222
+ const realPathSet = new Set;
223
+ const allDiagnostics = [];
224
+ const collisionDiagnostics = [];
225
+ function addSkills(result) {
226
+ allDiagnostics.push(...result.diagnostics);
227
+ for (const skill of result.skills) {
228
+ let realPath;
229
+ try {
230
+ realPath = realpathSync(skill.filePath);
231
+ } catch {
232
+ realPath = skill.filePath;
233
+ }
234
+ if (realPathSet.has(realPath))
235
+ continue;
236
+ const existing = skillMap.get(skill.name);
237
+ if (existing) {
238
+ collisionDiagnostics.push({
239
+ type: "collision",
240
+ message: `name "${skill.name}" collision`,
241
+ path: skill.filePath,
242
+ collision: {
243
+ resourceType: "skill",
244
+ name: skill.name,
245
+ winnerPath: existing.filePath,
246
+ loserPath: skill.filePath
247
+ }
248
+ });
249
+ } else {
250
+ skillMap.set(skill.name, skill);
251
+ realPathSet.add(realPath);
252
+ }
253
+ }
254
+ }
255
+ if (includeDefaults) {
256
+ const userSkillsDir = join(homedir(), CONFIG_DIR_NAME, "skills");
257
+ const projectSkillsDir = resolve(cwd, CONFIG_DIR_NAME, "skills");
258
+ addSkills(loadSkillsFromDirInternal(userSkillsDir, "user", true));
259
+ addSkills(loadSkillsFromDirInternal(projectSkillsDir, "project", true));
260
+ }
261
+ for (const rawPath of skillPaths) {
262
+ const resolvedPath = resolveSkillPath(rawPath, cwd);
263
+ if (!existsSync(resolvedPath)) {
264
+ allDiagnostics.push({ type: "warning", message: "skill path does not exist", path: resolvedPath });
265
+ continue;
266
+ }
267
+ try {
268
+ const stats = statSync(resolvedPath);
269
+ if (stats.isDirectory()) {
270
+ addSkills(loadSkillsFromDirInternal(resolvedPath, "path", true));
271
+ } else if (stats.isFile() && resolvedPath.endsWith(".md")) {
272
+ const result = loadSkillFromFile(resolvedPath, "path");
273
+ if (result.skill) {
274
+ addSkills({ skills: [result.skill], diagnostics: result.diagnostics });
275
+ } else {
276
+ allDiagnostics.push(...result.diagnostics);
277
+ }
278
+ } else {
279
+ allDiagnostics.push({ type: "warning", message: "skill path is not a markdown file", path: resolvedPath });
280
+ }
281
+ } catch (error) {
282
+ const message = error instanceof Error ? error.message : "failed to read skill path";
283
+ allDiagnostics.push({ type: "warning", message, path: resolvedPath });
284
+ }
285
+ }
286
+ return {
287
+ skills: Array.from(skillMap.values()),
288
+ diagnostics: [...allDiagnostics, ...collisionDiagnostics]
289
+ };
290
+ }
291
+ function escapeXml(str) {
292
+ return str.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
293
+ }
294
+ function formatSkillsForPrompt(skills) {
295
+ const visibleSkills = skills.filter((s) => !s.disableModelInvocation);
296
+ if (visibleSkills.length === 0) {
297
+ return "";
298
+ }
299
+ const lines = [
300
+ "The following skills provide specialized instructions for specific tasks.",
301
+ "Use the read tool to load a skill's file when the task matches its description.",
302
+ "When a skill file references a relative path, resolve it against the skill directory (parent of SKILL.md / dirname of the path) and use that absolute path in tool commands.",
303
+ "",
304
+ "<available_skills>"
305
+ ];
306
+ for (const skill of visibleSkills) {
307
+ lines.push(" <skill>");
308
+ lines.push(` <name>${escapeXml(skill.name)}</name>`);
309
+ lines.push(` <description>${escapeXml(skill.description)}</description>`);
310
+ lines.push(` <location>${escapeXml(skill.filePath)}</location>`);
311
+ if (skill.allowedTools?.length) {
312
+ lines.push(` <allowed-tools>${escapeXml(skill.allowedTools.join(" "))}</allowed-tools>`);
313
+ }
314
+ lines.push(" </skill>");
315
+ }
316
+ lines.push("</available_skills>");
317
+ return lines.join(`
318
+ `);
319
+ }
320
+ export {
321
+ stripFrontmatter,
322
+ parseFrontmatter,
323
+ loadSkillsFromDir,
324
+ loadSkills,
325
+ formatSkillsForPrompt
326
+ };
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Skill loader — discovers, validates, and formats SKILL.md files.
3
+ *
4
+ * Mirrors the Claude SDK (pi-mono) implementation:
5
+ * - Loads from ~/.claude/skills/ (user), .claude/skills/ (project), and explicit paths
6
+ * - SKILL.md frontmatter: name, description, disable-model-invocation
7
+ * - Name validation: lowercase a-z, 0-9, hyphens, max 64 chars
8
+ * - XML-formatted prompt injection for available skills
9
+ */
10
+ export interface SkillFrontmatter {
11
+ name?: string;
12
+ description?: string;
13
+ "disable-model-invocation"?: boolean;
14
+ /** License name or reference to a bundled license file. (Agent Skills spec) */
15
+ license?: string;
16
+ /** Environment requirements — max 500 chars. (Agent Skills spec) */
17
+ compatibility?: string;
18
+ /** Arbitrary key-value metadata. (Agent Skills spec) */
19
+ metadata?: Record<string, string>;
20
+ /** Space-delimited list of pre-approved tools. Experimental. (Agent Skills spec) */
21
+ "allowed-tools"?: string;
22
+ [key: string]: unknown;
23
+ }
24
+ export interface Skill {
25
+ name: string;
26
+ description: string;
27
+ filePath: string;
28
+ baseDir: string;
29
+ source: string;
30
+ disableModelInvocation: boolean;
31
+ /** License (Agent Skills spec) */
32
+ license?: string;
33
+ /** Environment compatibility note (Agent Skills spec) */
34
+ compatibility?: string;
35
+ /** Arbitrary metadata (Agent Skills spec) */
36
+ metadata?: Record<string, string>;
37
+ /** Pre-approved tools list (Agent Skills spec, experimental) */
38
+ allowedTools?: string[];
39
+ }
40
+ export interface SkillDiagnostic {
41
+ type: "warning" | "collision";
42
+ message: string;
43
+ path: string;
44
+ collision?: {
45
+ resourceType: "skill";
46
+ name: string;
47
+ winnerPath: string;
48
+ loserPath: string;
49
+ };
50
+ }
51
+ export interface LoadSkillsResult {
52
+ skills: Skill[];
53
+ diagnostics: SkillDiagnostic[];
54
+ }
55
+ export interface LoadSkillsFromDirOptions {
56
+ /** Directory to scan for skills */
57
+ dir: string;
58
+ /** Source identifier for these skills */
59
+ source: string;
60
+ }
61
+ export interface LoadSkillsOptions {
62
+ /** Working directory for project-local skills. Default: process.cwd() */
63
+ cwd?: string;
64
+ /** Explicit skill paths (files or directories) */
65
+ skillPaths?: string[];
66
+ /** Include default skills directories (~/.claude/skills, .claude/skills). Default: true */
67
+ includeDefaults?: boolean;
68
+ }
69
+ /**
70
+ * Load skills from a directory.
71
+ *
72
+ * Discovery rules (matches Claude SDK):
73
+ * - Root-level: any .md file directly in the directory
74
+ * - Subdirectories: only SKILL.md files (recursive)
75
+ */
76
+ export declare function loadSkillsFromDir(options: LoadSkillsFromDirOptions): LoadSkillsResult;
77
+ /**
78
+ * Load skills from all configured locations.
79
+ *
80
+ * Default locations (matches Claude SDK):
81
+ * - ~/.claude/skills/ — user-global skills
82
+ * - .claude/skills/ — project-local skills
83
+ *
84
+ * Plus any explicit `skillPaths` (files or directories).
85
+ */
86
+ export declare function loadSkills(options?: LoadSkillsOptions): LoadSkillsResult;
87
+ /**
88
+ * Format skills for inclusion in a system prompt.
89
+ *
90
+ * Uses XML format per Agent Skills standard (matches Claude SDK).
91
+ * Skills with disableModelInvocation=true are excluded.
92
+ */
93
+ export declare function formatSkillsForPrompt(skills: Skill[]): string;
94
+ //# sourceMappingURL=skills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/skills/skills.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAiBH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAA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