@vercel/factory 0.0.0 → 0.0.2
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/README.md +5 -0
- package/dist/{engine-BXVTLiXU.d.ts → approval-Z7iaWibT.d.ts} +195 -4
- package/dist/blob/index.d.ts +26 -0
- package/dist/blob/index.js +127 -0
- package/dist/blob/index.js.map +1 -0
- package/dist/chunk-LBEYCOSR.js +351 -0
- package/dist/chunk-LBEYCOSR.js.map +1 -0
- package/dist/connectors/github.d.ts +26 -1
- package/dist/connectors/github.js +62 -0
- package/dist/connectors/github.js.map +1 -1
- package/dist/eve/index.d.ts +459 -4
- package/dist/eve/index.js +506 -33
- package/dist/eve/index.js.map +1 -1
- package/dist/index.d.ts +92 -3
- package/dist/index.js +257 -62
- package/dist/index.js.map +1 -1
- package/dist/next-page.d.ts +5 -0
- package/dist/next-page.js +75 -0
- package/dist/next-page.js.map +1 -0
- package/dist/next.d.ts +12 -0
- package/dist/next.js +45 -0
- package/dist/next.js.map +1 -0
- package/package.json +8 -8
- package/dist/chunk-BSDWPFKE.js +0 -197
- package/dist/chunk-BSDWPFKE.js.map +0 -1
package/dist/chunk-BSDWPFKE.js
DELETED
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
// src/schema/common.ts
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
var SCHEMA_VERSION = 1;
|
|
4
|
-
var schemaVersionSchema = z.literal(SCHEMA_VERSION).describe("Version of the entity schema this row was written with.");
|
|
5
|
-
var isoDateTimeSchema = z.iso.datetime().describe("UTC timestamp in ISO 8601 format, e.g. 2026-08-26T12:00:00Z.");
|
|
6
|
-
var usdSchema = z.number().finite().nonnegative().describe("Amount in US dollars.");
|
|
7
|
-
var vocabularySchema = z.string().regex(/^[a-z][a-z0-9_]{0,63}$/, "must be lowercase snake_case starting with a letter").describe("Lowercase snake_case name, e.g. github_issue or sentry_alert.");
|
|
8
|
-
var replyToSchema = z.strictObject({
|
|
9
|
-
channel: z.string().min(1).describe("Connector that should carry replies, e.g. github or slack."),
|
|
10
|
-
address: z.string().min(1).describe("Connector-specific reply address, e.g. acme/web#41 or a Slack thread id.")
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
// src/schema/id.ts
|
|
14
|
-
import { z as z2 } from "zod";
|
|
15
|
-
function idSchema(prefix) {
|
|
16
|
-
return z2.string().regex(new RegExp(`^${prefix}_[a-z0-9]{6,64}$`));
|
|
17
|
-
}
|
|
18
|
-
var factoryIdSchema = idSchema("fac");
|
|
19
|
-
var repositoryIdSchema = idSchema("repo");
|
|
20
|
-
var signalIdSchema = idSchema("sig");
|
|
21
|
-
var taskIdSchema = idSchema("task");
|
|
22
|
-
var changeIdSchema = idSchema("chg");
|
|
23
|
-
var receiptIdSchema = idSchema("rcpt");
|
|
24
|
-
var repositoryIdsSchema = z2.array(repositoryIdSchema).min(1);
|
|
25
|
-
|
|
26
|
-
// src/schema/change.ts
|
|
27
|
-
import { z as z3 } from "zod";
|
|
28
|
-
var levelSchema = z3.enum(["low", "medium", "high"]);
|
|
29
|
-
var changeStateSchema = z3.enum([
|
|
30
|
-
"verifying",
|
|
31
|
-
"ready",
|
|
32
|
-
"merged",
|
|
33
|
-
"deployed",
|
|
34
|
-
"rolled_out",
|
|
35
|
-
"rolled_back",
|
|
36
|
-
"closed"
|
|
37
|
-
]);
|
|
38
|
-
var postMergeStates = ["merged", "deployed", "rolled_out", "rolled_back"];
|
|
39
|
-
var changeEvidenceSchema = z3.strictObject({
|
|
40
|
-
reproVerified: z3.boolean(),
|
|
41
|
-
testsAdded: z3.number().int().min(0),
|
|
42
|
-
checksGreen: z3.boolean(),
|
|
43
|
-
attackPassed: z3.boolean(),
|
|
44
|
-
scopeMatches: z3.boolean(),
|
|
45
|
-
previewUrl: z3.url().optional()
|
|
46
|
-
});
|
|
47
|
-
var changeSchema = z3.strictObject({
|
|
48
|
-
schemaVersion: schemaVersionSchema,
|
|
49
|
-
id: changeIdSchema,
|
|
50
|
-
repositoryId: repositoryIdSchema,
|
|
51
|
-
taskId: taskIdSchema.optional(),
|
|
52
|
-
groupId: taskIdSchema.optional(),
|
|
53
|
-
prNumber: z3.number().int().min(1),
|
|
54
|
-
prUrl: z3.url(),
|
|
55
|
-
author: z3.string().min(1),
|
|
56
|
-
risk: levelSchema,
|
|
57
|
-
confidence: levelSchema,
|
|
58
|
-
evidence: changeEvidenceSchema,
|
|
59
|
-
state: changeStateSchema,
|
|
60
|
-
decidedBy: z3.string().min(1).optional(),
|
|
61
|
-
createdAt: isoDateTimeSchema,
|
|
62
|
-
updatedAt: isoDateTimeSchema
|
|
63
|
-
}).superRefine((change, ctx) => {
|
|
64
|
-
if (postMergeStates.includes(change.state) && change.decidedBy === void 0) {
|
|
65
|
-
ctx.addIssue({
|
|
66
|
-
code: "custom",
|
|
67
|
-
path: ["decidedBy"],
|
|
68
|
-
message: `${change.state} changes require decidedBy`
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
// src/schema/task.ts
|
|
74
|
-
import { z as z4 } from "zod";
|
|
75
|
-
var standardTaskKinds = [
|
|
76
|
-
"code_change",
|
|
77
|
-
"verification",
|
|
78
|
-
"investigation",
|
|
79
|
-
"question"
|
|
80
|
-
];
|
|
81
|
-
var taskKindSchema = vocabularySchema.describe(
|
|
82
|
-
"What kind of work this is, e.g. code_change, question, or a registered custom kind."
|
|
83
|
-
);
|
|
84
|
-
var taskStateSchema = z4.enum(["queued", "running", "verifying", "succeeded", "failed", "needs_human", "cancelled"]).describe("Lifecycle state. Transitions are fixed; see taskTransitions.");
|
|
85
|
-
var harnessSchema = z4.string().min(1).describe("Coding harness used in the devbox, e.g. claude-code or codex.");
|
|
86
|
-
var taskOriginSchema = z4.strictObject({
|
|
87
|
-
signalId: signalIdSchema.optional().describe("Signal that led to this task."),
|
|
88
|
-
parentTaskId: taskIdSchema.optional().describe("Parent task that planned this child."),
|
|
89
|
-
operator: z4.string().min(1).optional().describe("Human operator who requested it.")
|
|
90
|
-
}).refine(
|
|
91
|
-
(origin) => origin.signalId !== void 0 || origin.parentTaskId !== void 0 || origin.operator !== void 0,
|
|
92
|
-
{ message: "origin requires a signalId, parentTaskId, or operator" }
|
|
93
|
-
);
|
|
94
|
-
var taskDevboxSchema = z4.strictObject({
|
|
95
|
-
devboxId: z4.string().min(1).describe("Devbox running or having run this task."),
|
|
96
|
-
remoteId: z4.string().min(1).describe("Provider-side id of the execution."),
|
|
97
|
-
harness: harnessSchema
|
|
98
|
-
});
|
|
99
|
-
var taskQuestionSchema = z4.strictObject({
|
|
100
|
-
text: z4.string().min(1).describe("The question a human must answer."),
|
|
101
|
-
options: z4.array(z4.string().min(1)).describe("Suggested answers; free-text is also allowed."),
|
|
102
|
-
answer: z4.string().min(1).optional(),
|
|
103
|
-
answeredBy: z4.string().min(1).optional().describe("Authenticated operator who answered.")
|
|
104
|
-
});
|
|
105
|
-
var taskSchema = z4.strictObject({
|
|
106
|
-
schemaVersion: schemaVersionSchema,
|
|
107
|
-
id: taskIdSchema,
|
|
108
|
-
repositoryIds: repositoryIdsSchema.optional().describe("Repositories the task works on; absent only on a multi-repo parent."),
|
|
109
|
-
kind: taskKindSchema,
|
|
110
|
-
area: z4.string().min(1).optional().describe("Investigation area, e.g. onboarding or security. Investigation tasks only."),
|
|
111
|
-
state: taskStateSchema,
|
|
112
|
-
origin: taskOriginSchema,
|
|
113
|
-
dependsOn: z4.array(taskIdSchema).min(1).optional().describe("Sibling tasks that must produce a change before this one may run."),
|
|
114
|
-
replyTo: replyToSchema,
|
|
115
|
-
devbox: taskDevboxSchema.optional(),
|
|
116
|
-
attempt: z4.number().int().min(1).describe("Execution attempt, starting at 1; bumps on retry."),
|
|
117
|
-
reservedUsd: usdSchema.optional().describe("Budget reserved before dispatch."),
|
|
118
|
-
settledUsd: usdSchema.optional().describe("Measured cost settled after execution."),
|
|
119
|
-
question: taskQuestionSchema.optional(),
|
|
120
|
-
changeId: changeIdSchema.optional().describe("Change this code_change task produced."),
|
|
121
|
-
reportRef: z4.string().min(1).optional().describe("Reference to the report artifact an investigation produced."),
|
|
122
|
-
createdAt: isoDateTimeSchema,
|
|
123
|
-
updatedAt: isoDateTimeSchema
|
|
124
|
-
}).superRefine((task, ctx) => {
|
|
125
|
-
if (task.area !== void 0 && task.kind !== "investigation") {
|
|
126
|
-
ctx.addIssue({
|
|
127
|
-
code: "custom",
|
|
128
|
-
path: ["area"],
|
|
129
|
-
message: "area is only valid on investigation tasks"
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
if (task.kind === "question") {
|
|
133
|
-
if (task.question === void 0) {
|
|
134
|
-
ctx.addIssue({
|
|
135
|
-
code: "custom",
|
|
136
|
-
path: ["question"],
|
|
137
|
-
message: "question tasks require a question"
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
if (task.devbox !== void 0) {
|
|
141
|
-
ctx.addIssue({
|
|
142
|
-
code: "custom",
|
|
143
|
-
path: ["devbox"],
|
|
144
|
-
message: "question tasks never run in a devbox"
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
} else if (task.question !== void 0) {
|
|
148
|
-
ctx.addIssue({
|
|
149
|
-
code: "custom",
|
|
150
|
-
path: ["question"],
|
|
151
|
-
message: "question is only valid on question tasks"
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
if (task.changeId !== void 0 && task.kind !== "code_change") {
|
|
155
|
-
ctx.addIssue({
|
|
156
|
-
code: "custom",
|
|
157
|
-
path: ["changeId"],
|
|
158
|
-
message: "changeId is only valid on code_change tasks"
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
if (task.reportRef !== void 0 && task.kind !== "investigation") {
|
|
162
|
-
ctx.addIssue({
|
|
163
|
-
code: "custom",
|
|
164
|
-
path: ["reportRef"],
|
|
165
|
-
message: "reportRef is only valid on investigation tasks"
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
|
|
170
|
-
export {
|
|
171
|
-
SCHEMA_VERSION,
|
|
172
|
-
schemaVersionSchema,
|
|
173
|
-
isoDateTimeSchema,
|
|
174
|
-
usdSchema,
|
|
175
|
-
vocabularySchema,
|
|
176
|
-
replyToSchema,
|
|
177
|
-
factoryIdSchema,
|
|
178
|
-
repositoryIdSchema,
|
|
179
|
-
signalIdSchema,
|
|
180
|
-
taskIdSchema,
|
|
181
|
-
changeIdSchema,
|
|
182
|
-
receiptIdSchema,
|
|
183
|
-
repositoryIdsSchema,
|
|
184
|
-
levelSchema,
|
|
185
|
-
changeStateSchema,
|
|
186
|
-
changeEvidenceSchema,
|
|
187
|
-
changeSchema,
|
|
188
|
-
standardTaskKinds,
|
|
189
|
-
taskKindSchema,
|
|
190
|
-
taskStateSchema,
|
|
191
|
-
harnessSchema,
|
|
192
|
-
taskOriginSchema,
|
|
193
|
-
taskDevboxSchema,
|
|
194
|
-
taskQuestionSchema,
|
|
195
|
-
taskSchema
|
|
196
|
-
};
|
|
197
|
-
//# sourceMappingURL=chunk-BSDWPFKE.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schema/common.ts","../src/schema/id.ts","../src/schema/change.ts","../src/schema/task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const SCHEMA_VERSION = 1;\n\nexport const schemaVersionSchema = z\n .literal(SCHEMA_VERSION)\n .describe(\"Version of the entity schema this row was written with.\");\n\nexport const isoDateTimeSchema = z.iso\n .datetime()\n .describe(\"UTC timestamp in ISO 8601 format, e.g. 2026-08-26T12:00:00Z.\");\n\nexport const usdSchema = z.number().finite().nonnegative().describe(\"Amount in US dollars.\");\n\n/**\n * Open vocabulary value. Standard values ship as exported constants; custom\n * values matching the pattern are equally valid.\n */\nexport const vocabularySchema = z\n .string()\n .regex(/^[a-z][a-z0-9_]{0,63}$/, \"must be lowercase snake_case starting with a letter\")\n .describe(\"Lowercase snake_case name, e.g. github_issue or sentry_alert.\");\n\nexport const replyToSchema = z.strictObject({\n channel: z\n .string()\n .min(1)\n .describe(\"Connector that should carry replies, e.g. github or slack.\"),\n address: z\n .string()\n .min(1)\n .describe(\"Connector-specific reply address, e.g. acme/web#41 or a Slack thread id.\"),\n});\n\nexport type ReplyTo = z.infer<typeof replyToSchema>;\n","import { z } from \"zod\";\n\nfunction idSchema(prefix: string) {\n return z.string().regex(new RegExp(`^${prefix}_[a-z0-9]{6,64}$`));\n}\n\nexport const factoryIdSchema = idSchema(\"fac\");\nexport const repositoryIdSchema = idSchema(\"repo\");\nexport const signalIdSchema = idSchema(\"sig\");\nexport const taskIdSchema = idSchema(\"task\");\nexport const changeIdSchema = idSchema(\"chg\");\nexport const receiptIdSchema = idSchema(\"rcpt\");\n\nexport const repositoryIdsSchema = z.array(repositoryIdSchema).min(1);\n\nexport type FactoryId = z.infer<typeof factoryIdSchema>;\nexport type RepositoryId = z.infer<typeof repositoryIdSchema>;\nexport type SignalId = z.infer<typeof signalIdSchema>;\nexport type TaskId = z.infer<typeof taskIdSchema>;\nexport type ChangeId = z.infer<typeof changeIdSchema>;\nexport type ReceiptId = z.infer<typeof receiptIdSchema>;\n","import { z } from \"zod\";\nimport { isoDateTimeSchema, schemaVersionSchema } from \"./common\";\nimport { changeIdSchema, repositoryIdSchema, taskIdSchema } from \"./id\";\n\nexport const levelSchema = z.enum([\"low\", \"medium\", \"high\"]);\n\nexport const changeStateSchema = z.enum([\n \"verifying\",\n \"ready\",\n \"merged\",\n \"deployed\",\n \"rolled_out\",\n \"rolled_back\",\n \"closed\",\n]);\n\nconst postMergeStates: readonly string[] = [\"merged\", \"deployed\", \"rolled_out\", \"rolled_back\"];\n\nexport const changeEvidenceSchema = z.strictObject({\n reproVerified: z.boolean(),\n testsAdded: z.number().int().min(0),\n checksGreen: z.boolean(),\n attackPassed: z.boolean(),\n scopeMatches: z.boolean(),\n previewUrl: z.url().optional(),\n});\n\nexport const changeSchema = z\n .strictObject({\n schemaVersion: schemaVersionSchema,\n id: changeIdSchema,\n repositoryId: repositoryIdSchema,\n taskId: taskIdSchema.optional(),\n groupId: taskIdSchema.optional(),\n prNumber: z.number().int().min(1),\n prUrl: z.url(),\n author: z.string().min(1),\n risk: levelSchema,\n confidence: levelSchema,\n evidence: changeEvidenceSchema,\n state: changeStateSchema,\n decidedBy: z.string().min(1).optional(),\n createdAt: isoDateTimeSchema,\n updatedAt: isoDateTimeSchema,\n })\n .superRefine((change, ctx) => {\n if (postMergeStates.includes(change.state) && change.decidedBy === undefined) {\n ctx.addIssue({\n code: \"custom\",\n path: [\"decidedBy\"],\n message: `${change.state} changes require decidedBy`,\n });\n }\n });\n\nexport type Level = z.infer<typeof levelSchema>;\nexport type ChangeState = z.infer<typeof changeStateSchema>;\nexport type ChangeEvidence = z.infer<typeof changeEvidenceSchema>;\nexport type Change = z.infer<typeof changeSchema>;\n","import { z } from \"zod\";\nimport {\n isoDateTimeSchema,\n replyToSchema,\n schemaVersionSchema,\n usdSchema,\n vocabularySchema,\n} from \"./common\";\nimport { changeIdSchema, repositoryIdsSchema, signalIdSchema, taskIdSchema } from \"./id\";\n\n/**\n * Kinds the standard loop understands. Any vocabulary value is valid; the\n * kind-scoped rules below apply only to these standard kinds.\n */\nexport const standardTaskKinds = [\n \"code_change\",\n \"verification\",\n \"investigation\",\n \"question\",\n] as const;\n\nexport const taskKindSchema = vocabularySchema.describe(\n \"What kind of work this is, e.g. code_change, question, or a registered custom kind.\",\n);\n\nexport const taskStateSchema = z\n .enum([\"queued\", \"running\", \"verifying\", \"succeeded\", \"failed\", \"needs_human\", \"cancelled\"])\n .describe(\"Lifecycle state. Transitions are fixed; see taskTransitions.\");\n\nexport const harnessSchema = z\n .string()\n .min(1)\n .describe(\"Coding harness used in the devbox, e.g. claude-code or codex.\");\n\nexport const taskOriginSchema = z\n .strictObject({\n signalId: signalIdSchema.optional().describe(\"Signal that led to this task.\"),\n parentTaskId: taskIdSchema.optional().describe(\"Parent task that planned this child.\"),\n operator: z.string().min(1).optional().describe(\"Human operator who requested it.\"),\n })\n .refine(\n (origin) =>\n origin.signalId !== undefined ||\n origin.parentTaskId !== undefined ||\n origin.operator !== undefined,\n { message: \"origin requires a signalId, parentTaskId, or operator\" },\n );\n\nexport const taskDevboxSchema = z.strictObject({\n devboxId: z.string().min(1).describe(\"Devbox running or having run this task.\"),\n remoteId: z.string().min(1).describe(\"Provider-side id of the execution.\"),\n harness: harnessSchema,\n});\n\nexport const taskQuestionSchema = z.strictObject({\n text: z.string().min(1).describe(\"The question a human must answer.\"),\n options: z.array(z.string().min(1)).describe(\"Suggested answers; free-text is also allowed.\"),\n answer: z.string().min(1).optional(),\n answeredBy: z.string().min(1).optional().describe(\"Authenticated operator who answered.\"),\n});\n\nexport const taskSchema = z\n .strictObject({\n schemaVersion: schemaVersionSchema,\n id: taskIdSchema,\n repositoryIds: repositoryIdsSchema\n .optional()\n .describe(\"Repositories the task works on; absent only on a multi-repo parent.\"),\n kind: taskKindSchema,\n area: z\n .string()\n .min(1)\n .optional()\n .describe(\"Investigation area, e.g. onboarding or security. Investigation tasks only.\"),\n state: taskStateSchema,\n origin: taskOriginSchema,\n dependsOn: z\n .array(taskIdSchema)\n .min(1)\n .optional()\n .describe(\"Sibling tasks that must produce a change before this one may run.\"),\n replyTo: replyToSchema,\n devbox: taskDevboxSchema.optional(),\n attempt: z\n .number()\n .int()\n .min(1)\n .describe(\"Execution attempt, starting at 1; bumps on retry.\"),\n reservedUsd: usdSchema.optional().describe(\"Budget reserved before dispatch.\"),\n settledUsd: usdSchema.optional().describe(\"Measured cost settled after execution.\"),\n question: taskQuestionSchema.optional(),\n changeId: changeIdSchema.optional().describe(\"Change this code_change task produced.\"),\n reportRef: z\n .string()\n .min(1)\n .optional()\n .describe(\"Reference to the report artifact an investigation produced.\"),\n createdAt: isoDateTimeSchema,\n updatedAt: isoDateTimeSchema,\n })\n .superRefine((task, ctx) => {\n if (task.area !== undefined && task.kind !== \"investigation\") {\n ctx.addIssue({\n code: \"custom\",\n path: [\"area\"],\n message: \"area is only valid on investigation tasks\",\n });\n }\n if (task.kind === \"question\") {\n if (task.question === undefined) {\n ctx.addIssue({\n code: \"custom\",\n path: [\"question\"],\n message: \"question tasks require a question\",\n });\n }\n if (task.devbox !== undefined) {\n ctx.addIssue({\n code: \"custom\",\n path: [\"devbox\"],\n message: \"question tasks never run in a devbox\",\n });\n }\n } else if (task.question !== undefined) {\n ctx.addIssue({\n code: \"custom\",\n path: [\"question\"],\n message: \"question is only valid on question tasks\",\n });\n }\n if (task.changeId !== undefined && task.kind !== \"code_change\") {\n ctx.addIssue({\n code: \"custom\",\n path: [\"changeId\"],\n message: \"changeId is only valid on code_change tasks\",\n });\n }\n if (task.reportRef !== undefined && task.kind !== \"investigation\") {\n ctx.addIssue({\n code: \"custom\",\n path: [\"reportRef\"],\n message: \"reportRef is only valid on investigation tasks\",\n });\n }\n });\n\nexport type TaskKind = z.infer<typeof taskKindSchema>;\nexport type TaskState = z.infer<typeof taskStateSchema>;\nexport type Task = z.infer<typeof taskSchema>;\n"],"mappings":";AAAA,SAAS,SAAS;AAEX,IAAM,iBAAiB;AAEvB,IAAM,sBAAsB,EAChC,QAAQ,cAAc,EACtB,SAAS,yDAAyD;AAE9D,IAAM,oBAAoB,EAAE,IAChC,SAAS,EACT,SAAS,8DAA8D;AAEnE,IAAM,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,uBAAuB;AAMpF,IAAM,mBAAmB,EAC7B,OAAO,EACP,MAAM,0BAA0B,qDAAqD,EACrF,SAAS,+DAA+D;AAEpE,IAAM,gBAAgB,EAAE,aAAa;AAAA,EAC1C,SAAS,EACN,OAAO,EACP,IAAI,CAAC,EACL,SAAS,4DAA4D;AAAA,EACxE,SAAS,EACN,OAAO,EACP,IAAI,CAAC,EACL,SAAS,0EAA0E;AACxF,CAAC;;;AChCD,SAAS,KAAAA,UAAS;AAElB,SAAS,SAAS,QAAgB;AAChC,SAAOA,GAAE,OAAO,EAAE,MAAM,IAAI,OAAO,IAAI,MAAM,kBAAk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