@shivaedev/quality 0.58.0 → 0.60.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/CHANGELOG.md +28 -0
- package/README.md +13 -5
- package/dist/adapters/bodyReference.d.ts +9 -0
- package/dist/adapters/bodyReference.d.ts.map +1 -0
- package/dist/adapters/bodyReference.js +10 -0
- package/dist/adapters/bodyReference.js.map +1 -0
- package/dist/adapters/bodyReferences.d.ts +5 -0
- package/dist/adapters/bodyReferences.d.ts.map +1 -0
- package/dist/adapters/bodyReferences.js +129 -0
- package/dist/adapters/bodyReferences.js.map +1 -0
- package/dist/adapters/engineEscapes.d.ts +10 -0
- package/dist/adapters/engineEscapes.d.ts.map +1 -0
- package/dist/adapters/engineEscapes.js +103 -0
- package/dist/adapters/engineEscapes.js.map +1 -0
- package/dist/adapters/imports/projects.js +1 -1
- package/dist/adapters/imports/projects.js.map +1 -1
- package/dist/adapters/knip/configuration.d.ts.map +1 -1
- package/dist/adapters/knip/configuration.js +9 -1
- package/dist/adapters/knip/configuration.js.map +1 -1
- package/dist/adapters/knip/run.js +1 -1
- package/dist/adapters/knip/run.js.map +1 -1
- package/dist/adapters/outcomeAssertions.d.ts +9 -0
- package/dist/adapters/outcomeAssertions.d.ts.map +1 -0
- package/dist/adapters/outcomeAssertions.js +94 -0
- package/dist/adapters/outcomeAssertions.js.map +1 -0
- package/dist/adapters/positiveRefusalFindings.d.ts +4 -0
- package/dist/adapters/positiveRefusalFindings.d.ts.map +1 -0
- package/dist/adapters/positiveRefusalFindings.js +41 -0
- package/dist/adapters/positiveRefusalFindings.js.map +1 -0
- package/dist/adapters/queueReadoutFindings.js +1 -1
- package/dist/adapters/queueReadoutFindings.js.map +1 -1
- package/dist/adapters/rpcBoundaryFindings.d.ts +4 -0
- package/dist/adapters/rpcBoundaryFindings.d.ts.map +1 -0
- package/dist/adapters/rpcBoundaryFindings.js +90 -0
- package/dist/adapters/rpcBoundaryFindings.js.map +1 -0
- package/dist/adapters/serviceAccess.d.ts +4 -0
- package/dist/adapters/serviceAccess.d.ts.map +1 -0
- package/dist/adapters/serviceAccess.js +33 -0
- package/dist/adapters/serviceAccess.js.map +1 -0
- package/dist/{rules/stories/program.d.ts → adapters/storyProgram.d.ts} +1 -1
- package/dist/adapters/storyProgram.d.ts.map +1 -0
- package/dist/{rules/stories/program.js → adapters/storyProgram.js} +14 -5
- package/dist/adapters/storyProgram.js.map +1 -0
- package/dist/adapters/tanstackRoutes.d.ts +11 -0
- package/dist/adapters/tanstackRoutes.d.ts.map +1 -0
- package/dist/adapters/tanstackRoutes.js +65 -0
- package/dist/adapters/tanstackRoutes.js.map +1 -0
- package/dist/adapters/vitePort.d.ts +2 -0
- package/dist/adapters/vitePort.d.ts.map +1 -0
- package/dist/adapters/vitePort.js +5 -0
- package/dist/adapters/vitePort.js.map +1 -0
- package/dist/appViteConfig.d.ts +4 -1
- package/dist/appViteConfig.d.ts.map +1 -1
- package/dist/appViteConfig.js +7 -3
- package/dist/appViteConfig.js.map +1 -1
- package/dist/inventory/routeFiles.d.ts +7 -0
- package/dist/inventory/routeFiles.d.ts.map +1 -0
- package/dist/inventory/routeFiles.js +62 -0
- package/dist/inventory/routeFiles.js.map +1 -0
- package/dist/inventory/shadcnAlias.js +1 -1
- package/dist/inventory/shadcnAlias.js.map +1 -1
- package/dist/rules/builtIn.d.ts +4 -4
- package/dist/rules/builtIn.d.ts.map +1 -1
- package/dist/rules/builtIn.js +4 -0
- package/dist/rules/builtIn.js.map +1 -1
- package/dist/rules/effect/rpcBoundary.d.ts +2 -0
- package/dist/rules/effect/rpcBoundary.d.ts.map +1 -0
- package/dist/rules/effect/rpcBoundary.js +9 -0
- package/dist/rules/effect/rpcBoundary.js.map +1 -0
- package/dist/rules/files/folderNames.d.ts +1 -1
- package/dist/rules/files/folderNames.d.ts.map +1 -1
- package/dist/rules/files/folderNames.js +6 -4
- package/dist/rules/files/folderNames.js.map +1 -1
- package/dist/rules/files/namedAfterExport.d.ts +1 -1
- package/dist/rules/files/namedAfterExport.d.ts.map +1 -1
- package/dist/rules/files/namedAfterExport.js +5 -3
- package/dist/rules/files/namedAfterExport.js.map +1 -1
- package/dist/rules/manifestsExportsShape.d.ts.map +1 -1
- package/dist/rules/manifestsExportsShape.js +2 -1
- package/dist/rules/manifestsExportsShape.js.map +1 -1
- package/dist/rules/manifestsSourceFirst.d.ts.map +1 -1
- package/dist/rules/manifestsSourceFirst.js +4 -4
- package/dist/rules/manifestsSourceFirst.js.map +1 -1
- package/dist/rules/stories/adapterOnlyFakes.js +1 -1
- package/dist/rules/stories/adapterOnlyFakes.js.map +1 -1
- package/dist/rules/stories/engine.d.ts.map +1 -1
- package/dist/rules/stories/engine.js +24 -7
- package/dist/rules/stories/engine.js.map +1 -1
- package/dist/rules/stories/origins.d.ts.map +1 -1
- package/dist/rules/stories/origins.js +1 -1
- package/dist/rules/stories/origins.js.map +1 -1
- package/dist/rules/stories/positiveRefusals.d.ts +2 -0
- package/dist/rules/stories/positiveRefusals.d.ts.map +1 -0
- package/dist/rules/stories/positiveRefusals.js +17 -0
- package/dist/rules/stories/positiveRefusals.js.map +1 -0
- package/dist/rules/stories/usesInputs.d.ts.map +1 -1
- package/dist/rules/stories/usesInputs.js +3 -2
- package/dist/rules/stories/usesInputs.js.map +1 -1
- package/dist/testing/adapters/cli.js +1 -1
- package/dist/testing/adapters/cli.js.map +1 -1
- package/dist/testing/adapters/hookRepository.js +1 -1
- package/dist/testing/adapters/hookRepository.js.map +1 -1
- package/dist/testing/adapters/packageExports.d.ts +1 -1
- package/dist/testing/adapters/packageExports.d.ts.map +1 -1
- package/dist/testing/adapters/packageExports.js +6 -3
- package/dist/testing/adapters/packageExports.js.map +1 -1
- package/package.json +9 -9
- package/src/adapters/bodyReference.ts +19 -0
- package/src/adapters/bodyReferences.ts +134 -0
- package/src/adapters/engineEscapes.ts +120 -0
- package/src/adapters/imports/projects.ts +1 -1
- package/src/adapters/knip/configuration.ts +8 -1
- package/src/adapters/knip/run.ts +1 -1
- package/src/adapters/outcomeAssertions.ts +110 -0
- package/src/adapters/positiveRefusalFindings.ts +52 -0
- package/src/adapters/queueReadoutFindings.ts +1 -1
- package/src/adapters/rpcBoundaryFindings.ts +98 -0
- package/src/adapters/serviceAccess.ts +38 -0
- package/src/{rules/stories/program.ts → adapters/storyProgram.ts} +13 -4
- package/src/adapters/tanstackRoutes.ts +73 -0
- package/src/adapters/vitePort.ts +5 -0
- package/src/appViteConfig.ts +13 -3
- package/src/inventory/routeFiles.ts +78 -0
- package/src/inventory/shadcnAlias.ts +1 -1
- package/src/rules/builtIn.ts +4 -0
- package/src/rules/effect/rpcBoundary.ts +10 -0
- package/src/rules/files/folderNames.ts +7 -5
- package/src/rules/files/namedAfterExport.ts +5 -3
- package/src/rules/manifestsExportsShape.ts +2 -1
- package/src/rules/manifestsSourceFirst.ts +4 -5
- package/src/rules/stories/adapterOnlyFakes.ts +1 -1
- package/src/rules/stories/engine.ts +25 -9
- package/src/rules/stories/origins.ts +1 -1
- package/src/rules/stories/positiveRefusals.ts +17 -0
- package/src/rules/stories/usesInputs.ts +3 -2
- package/src/testing/adapters/cli.ts +1 -1
- package/src/testing/adapters/hookRepository.ts +1 -1
- package/src/testing/adapters/packageExports.ts +6 -3
- package/dist/rules/stories/program.d.ts.map +0 -1
- package/dist/rules/stories/program.js.map +0 -1
|
@@ -2,6 +2,7 @@ import { posix } from "node:path";
|
|
|
2
2
|
import { Effect, Schema } from "effect";
|
|
3
3
|
import { ignorePatterns } from "#adapters/ignore.ts";
|
|
4
4
|
import { GlobDeclarations, globPatterns, validateGlobs } from "#config/globs.ts";
|
|
5
|
+
import { routeFiles } from "#inventory/routeFiles.ts";
|
|
5
6
|
import { exportFits } from "#naming/exportFits.ts";
|
|
6
7
|
import { mainExport } from "#naming/mainExport.ts";
|
|
7
8
|
import { isMigrationFile } from "#naming/migrationFile.ts";
|
|
@@ -89,16 +90,17 @@ function findingsOf(file: SourceFile, layout: PackageLayout): readonly Finding[]
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
export const namedAfterExport = defineRule({
|
|
92
|
-
check: ({ files, options, readText, sources }) =>
|
|
93
|
+
check: ({ files, options, readText, root, sources }) =>
|
|
93
94
|
Effect.gen(function* () {
|
|
94
95
|
const layout = yield* packageLayout({ files, readText });
|
|
96
|
+
const routes = yield* routeFiles(root);
|
|
95
97
|
const toolOwned = ignorePatterns([...DEFAULT_TOOL_OWNED, ...globPatterns(options.toolOwned)]);
|
|
96
98
|
return sources
|
|
97
|
-
.filter((file) => !(TEST.test(file.path) || isMigrationFile(file.path) || toolOwned.ignores(file.path)))
|
|
99
|
+
.filter((file) => !(TEST.test(file.path) || isMigrationFile(file.path) || routes.files.has(file.path) || toolOwned.ignores(file.path)))
|
|
98
100
|
.flatMap((file) => findingsOf(file, layout));
|
|
99
101
|
}),
|
|
100
102
|
description:
|
|
101
|
-
"A file is named after its main export or a module-level constant, including a private constant, with its folders as the prefix; module client/admin and server/admin files may repeat names from above the admin folder. A file of several exports is a camelCase topic file, and a script is kebab-case. Rename the file or the export; nothing renames them for you.",
|
|
103
|
+
"A file is named after its main export or a module-level constant, including a private constant, with its folders as the prefix; module client/admin and server/admin files may repeat names from above the admin folder. TanStack Router configuration owns route filenames. A file of several exports is a camelCase topic file, and a script is kebab-case. Rename the file or the export; nothing renames them for you.",
|
|
102
104
|
id: "files/named-after-export",
|
|
103
105
|
options: Schema.toStandardSchemaV1(NamedAfterExportOptions, { parseOptions: { errors: "all", onExcessProperty: "error" } }),
|
|
104
106
|
validate: validateGlobs,
|
|
@@ -18,7 +18,8 @@ function standardPattern(key: string, value: unknown): boolean {
|
|
|
18
18
|
}
|
|
19
19
|
const subpath = key.slice("./".length);
|
|
20
20
|
const stem = subpath.slice(0, -".ts".length);
|
|
21
|
-
const
|
|
21
|
+
const source = "@shivaedev/source" in value ? "@shivaedev/source" : "source";
|
|
22
|
+
const conditions = { default: `./dist/${stem}.js`, [source]: `./src/${subpath}`, types: `./dist/${stem}.d.ts` };
|
|
22
23
|
return (
|
|
23
24
|
Object.keys(value).length === Object.keys(conditions).length
|
|
24
25
|
&& Object.entries(conditions).every(([condition, target]) => value[condition] === target)
|
|
@@ -3,19 +3,18 @@ import { manifestEntry, manifestFiles } from "#adapters/manifestInventory.ts";
|
|
|
3
3
|
import { defineRule, type Finding } from "#rule.ts";
|
|
4
4
|
import { itemsOf, type Json, member, parseJsonc } from "#rules/suppressions/biome/json.ts";
|
|
5
5
|
|
|
6
|
-
const CONDITION = "source";
|
|
7
|
-
|
|
8
6
|
function misplaced(path: string, field: string, value: unknown, node: Json | undefined): readonly Finding[] {
|
|
9
7
|
const conditions = typeof value === "object" && value !== null && !Array.isArray(value) ? Object.entries(value) : [];
|
|
10
8
|
const first = conditions[0]?.[0];
|
|
9
|
+
const condition = ["@shivaedev/source", "source"].find((name) => conditions.some(([key]) => key === name));
|
|
11
10
|
const own: readonly Finding[] =
|
|
12
|
-
|
|
11
|
+
condition === undefined || first === condition
|
|
13
12
|
? []
|
|
14
13
|
: [
|
|
15
14
|
{
|
|
16
15
|
file: path,
|
|
17
16
|
line: node?.line,
|
|
18
|
-
message: `Lists the "${
|
|
17
|
+
message: `Lists the "${condition}" condition after "${first}" in ${field}. TypeScript takes the first condition that matches, so once built output exists it reads that instead of the sources the "${condition}" condition names. Move "${condition}" to the top of this condition block.`,
|
|
19
18
|
subject: field,
|
|
20
19
|
},
|
|
21
20
|
];
|
|
@@ -47,7 +46,7 @@ export const manifestsSourceFirst = defineRule({
|
|
|
47
46
|
return findings.flat();
|
|
48
47
|
}),
|
|
49
48
|
description:
|
|
50
|
-
'Every package.json condition block that names
|
|
49
|
+
'Every package.json condition block that names a "@shivaedev/source" or "source" condition lists it first in exports and imports, so TypeScript reads the sources whether or not built output exists.',
|
|
51
50
|
id: "manifests/source-first",
|
|
52
51
|
registrable: false,
|
|
53
52
|
});
|
|
@@ -2,11 +2,11 @@ import { Effect } from "effect";
|
|
|
2
2
|
import ts from "typescript";
|
|
3
3
|
import { fakeApi, fakeReferences } from "#adapters/imports/fakeReferences.ts";
|
|
4
4
|
import { type FakeModule, fakeTargets } from "#adapters/imports/fakeTargets.ts";
|
|
5
|
+
import { storyProgram } from "#adapters/storyProgram.ts";
|
|
5
6
|
import { importGraph } from "#imports/graph.ts";
|
|
6
7
|
import { isTestCode } from "#naming/testName.ts";
|
|
7
8
|
import { defineRule, type Finding } from "#rule.ts";
|
|
8
9
|
import { fakeReplacements } from "./fakeReplacements.ts";
|
|
9
|
-
import { storyProgram } from "./program.ts";
|
|
10
10
|
|
|
11
11
|
function internal(path: string): boolean {
|
|
12
12
|
return !path.split("/").includes("adapters");
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Effect } from "effect";
|
|
2
2
|
import ts from "typescript";
|
|
3
|
+
import { engineEscapes } from "#adapters/engineEscapes.ts";
|
|
3
4
|
import { importGraph } from "#imports/graph.ts";
|
|
4
5
|
import { packageOf } from "#imports/workspace.ts";
|
|
5
6
|
import { testName } from "#naming/testName.ts";
|
|
@@ -40,18 +41,33 @@ export const storyEngine = defineRule({
|
|
|
40
41
|
if (source === undefined) {
|
|
41
42
|
return [];
|
|
42
43
|
}
|
|
43
|
-
const stories = nodesWhere(
|
|
44
|
-
|
|
45
|
-
(node) => ts.isCallExpression(node) && origins.origin(node.expression) === "story" && ignoresEngine(node, origins.checker),
|
|
44
|
+
const stories = nodesWhere(source, (node) => ts.isCallExpression(node) && origins.origin(node.expression) === "story").filter(
|
|
45
|
+
ts.isCallExpression,
|
|
46
46
|
);
|
|
47
|
-
return stories.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
return stories.flatMap((story) => {
|
|
48
|
+
const body = story.arguments[2];
|
|
49
|
+
const checked = body === undefined ? { drivesSubject: false, escapes: [] } : engineEscapes(body, origins.checker, file.path);
|
|
50
|
+
if (checked.escapes.length > 0) {
|
|
51
|
+
return checked.escapes.map(({ node, reason }) => ({
|
|
52
|
+
file: file.path,
|
|
53
|
+
line: source.getLineAndCharacterOfPosition(node.getStart(source)).line + 1,
|
|
54
|
+
message: `${reason} in a spec body. Move engine access and wiring into the story kit's verbs or traits in test-support/. Keep expectations in the spec. Constructor tests may call the constructor in their colocated module; native SQL transaction blocks may wrap kit verbs. See https://github.com/ShivaeDev/platform/tree/main/packages/quality#story-tests.`,
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
if (checked.drivesSubject || !ignoresEngine(story, origins.checker)) {
|
|
58
|
+
return [];
|
|
59
|
+
}
|
|
60
|
+
return [
|
|
61
|
+
{
|
|
62
|
+
file: file.path,
|
|
63
|
+
line: source.getLineAndCharacterOfPosition(story.getStart(source)).line + 1,
|
|
64
|
+
message: `Declares a story without traits whose body never references its verbs, its story or its test context. Drive the engine through one of the kit's verbs or traits. If the code under test is pure, move the test to ${name.stem}.unit.${name.kind}${name.extension}, which reaches no engine and mocks nothing. See https://github.com/ShivaeDev/platform/tree/main/packages/quality#story-tests.`,
|
|
65
|
+
},
|
|
66
|
+
];
|
|
67
|
+
});
|
|
52
68
|
});
|
|
53
69
|
}),
|
|
54
70
|
description:
|
|
55
|
-
"
|
|
71
|
+
"Story bodies use their kit instead of raw services, story.engine or production wiring; constructor subjects and native transaction blocks remain explicit.",
|
|
56
72
|
id: "tests/story-engine",
|
|
57
73
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import ts from "typescript";
|
|
3
|
+
import { storyProgram } from "#adapters/storyProgram.ts";
|
|
3
4
|
import type { ImportGraph } from "#imports/graph.ts";
|
|
4
5
|
import type { RuleInputs } from "#rule.ts";
|
|
5
6
|
import { iterationOrigin, type Origin } from "./collectionOrigins.ts";
|
|
6
7
|
import { importFrom, importOrigin } from "./importOrigin.ts";
|
|
7
|
-
import { storyProgram } from "./program.ts";
|
|
8
8
|
import { returnValues } from "./returnValues.ts";
|
|
9
9
|
import { memberName } from "./syntax.ts";
|
|
10
10
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
2
|
+
import { positiveRefusalFindings } from "#adapters/positiveRefusalFindings.ts";
|
|
3
|
+
import { importGraph } from "#imports/graph.ts";
|
|
4
|
+
import { defineRule } from "#rule.ts";
|
|
5
|
+
import { storyOrigins } from "./origins.ts";
|
|
6
|
+
import { storySources } from "./sources.ts";
|
|
7
|
+
|
|
8
|
+
export const positiveRefusals = defineRule({
|
|
9
|
+
check: Effect.fn("Stories.check")(function* (inputs) {
|
|
10
|
+
const files = yield* storySources(inputs);
|
|
11
|
+
const graph = yield* importGraph(inputs);
|
|
12
|
+
const origins = storyOrigins(inputs, graph);
|
|
13
|
+
return files.flatMap((file) => positiveRefusalFindings(file, origins));
|
|
14
|
+
}),
|
|
15
|
+
description: "Negative outcome comparisons in a story need a positive assertion of the expected refusal on the same outcome.",
|
|
16
|
+
id: "tests/positive-refusals",
|
|
17
|
+
});
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import ts from "typescript";
|
|
2
|
+
import { storyBody } from "#adapters/bodyReferences.ts";
|
|
2
3
|
|
|
3
4
|
export function storyUsesInputs(body: ts.Expression, checker: ts.TypeChecker): boolean | undefined {
|
|
4
|
-
const declaration =
|
|
5
|
-
if (declaration
|
|
5
|
+
const declaration = storyBody(body, checker);
|
|
6
|
+
if (declaration?.body === undefined) {
|
|
6
7
|
return undefined;
|
|
7
8
|
}
|
|
8
9
|
const inputs = new Set<ts.Symbol>();
|
|
@@ -15,7 +15,7 @@ export interface Run {
|
|
|
15
15
|
|
|
16
16
|
const SOURCE = import.meta.url.endsWith(".ts");
|
|
17
17
|
const CLI = fileURLToPath(new URL(SOURCE ? "../../cli.ts" : "../../cli.js", import.meta.url));
|
|
18
|
-
const OPTIONS = SOURCE ? ["--conditions
|
|
18
|
+
const OPTIONS = SOURCE ? ["--conditions=@shivaedev/source"] : [];
|
|
19
19
|
|
|
20
20
|
export const CLI_TIMEOUT = 60_000;
|
|
21
21
|
|
|
@@ -4,7 +4,7 @@ import type { SeedFile } from "./tree.ts";
|
|
|
4
4
|
export const LIBRARY_MANIFEST = "modules/library/package.json";
|
|
5
5
|
|
|
6
6
|
export const FILE_PATH_EXPORTS = {
|
|
7
|
-
"./*.ts": {
|
|
7
|
+
"./*.ts": { "@shivaedev/source": "./src/*.ts", default: "./dist/*.js", types: "./dist/*.d.ts" },
|
|
8
8
|
"./package.json": "./package.json",
|
|
9
9
|
};
|
|
10
10
|
|
|
@@ -14,10 +14,13 @@ export const exportsWorkspace: SeedFile = {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
function sourceFirst(_key: string, value: unknown): unknown {
|
|
17
|
-
if (typeof value !== "object" || value === null || !("source" in value)) {
|
|
17
|
+
if (typeof value !== "object" || value === null || !("@shivaedev/source" in value)) {
|
|
18
18
|
return value;
|
|
19
19
|
}
|
|
20
|
-
return Object.fromEntries([
|
|
20
|
+
return Object.fromEntries([
|
|
21
|
+
["@shivaedev/source", value["@shivaedev/source"]],
|
|
22
|
+
...Object.entries(value).filter(([key]) => key !== "@shivaedev/source"),
|
|
23
|
+
]);
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
export function packageExports(exports: unknown, path = LIBRARY_MANIFEST): SeedFile {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../../../src/rules/stories/program.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAI3C,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,GAAG,EAAE,CAAC,OAAO,CA6B/E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"program.js","sourceRoot":"","sources":["../../../src/rules/stories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