semantic-atlas 0.1.3 → 0.2.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 (60) hide show
  1. package/.agents/skills/semantic-atlas/SKILL.md +59 -43
  2. package/.agents/skills/semantic-atlas/references/graph-patch.md +22 -5
  3. package/.agents/skills/semantic-atlas/references/result-routing.md +32 -19
  4. package/.agents/skills/semantic-atlas/references/snapshot-bootstrap.md +17 -32
  5. package/README.md +34 -20
  6. package/README.zh-CN.md +30 -20
  7. package/dist/cli/argument-parser.js +41 -23
  8. package/dist/cli/bin.js +12 -15
  9. package/dist/cli/cli-application.d.ts +2 -2
  10. package/dist/cli/cli-application.d.ts.map +1 -1
  11. package/dist/cli/cli-application.js +40 -36
  12. package/dist/cli/standalone-cli.d.ts +3 -0
  13. package/dist/cli/standalone-cli.d.ts.map +1 -0
  14. package/dist/cli/standalone-cli.js +65 -0
  15. package/dist/cli/types.d.ts +7 -6
  16. package/dist/cli/types.d.ts.map +1 -1
  17. package/dist/contracts/cli.d.ts +370 -1360
  18. package/dist/contracts/cli.d.ts.map +1 -1
  19. package/dist/contracts/cli.js +58 -65
  20. package/dist/contracts/graph.d.ts +4 -0
  21. package/dist/contracts/graph.d.ts.map +1 -1
  22. package/dist/contracts/graph.js +2 -2
  23. package/dist/evaluation/contracts.d.ts +11 -2
  24. package/dist/evaluation/contracts.d.ts.map +1 -1
  25. package/dist/evaluation/contracts.js +7 -2
  26. package/dist/graph/graph-store.d.ts +3 -1
  27. package/dist/graph/graph-store.d.ts.map +1 -1
  28. package/dist/graph/graph-store.js +48 -2
  29. package/dist/graph/types.d.ts +30 -9
  30. package/dist/graph/types.d.ts.map +1 -1
  31. package/dist/index.d.ts +0 -1
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/package-metadata.d.ts +2 -0
  34. package/dist/package-metadata.d.ts.map +1 -0
  35. package/dist/package-metadata.js +9 -0
  36. package/dist/runtime/sqlite-compatibility-process.d.ts +8 -0
  37. package/dist/runtime/sqlite-compatibility-process.d.ts.map +1 -0
  38. package/dist/runtime/sqlite-compatibility-process.js +20 -0
  39. package/dist/setup/skill-installer.d.ts +19 -0
  40. package/dist/setup/skill-installer.d.ts.map +1 -0
  41. package/dist/setup/skill-installer.js +156 -0
  42. package/dist/world/business-map-projector.d.ts +14 -0
  43. package/dist/world/business-map-projector.d.ts.map +1 -0
  44. package/dist/world/business-map-projector.js +178 -0
  45. package/dist/world/world-graph-query.d.ts +8 -13
  46. package/dist/world/world-graph-query.d.ts.map +1 -1
  47. package/dist/world/world-graph-query.js +26 -229
  48. package/docs/README.md +30 -0
  49. package/docs/architecture/codegraph-backend.md +2 -2
  50. package/docs/architecture/continuous-business-learning.md +240 -0
  51. package/docs/contracts/cli-v1.md +40 -17
  52. package/docs/contracts/graph-model.md +11 -7
  53. package/docs/contracts/graph-patch-v1.md +8 -1
  54. package/docs/evaluation.md +20 -15
  55. package/docs/index.md +41 -0
  56. package/docs/log.md +56 -0
  57. package/docs/product-contract.md +10 -5
  58. package/package.json +1 -1
  59. package/schemas/cli-envelope-v1.schema.json +365 -564
  60. package/schemas/evaluation-run-v1.schema.json +4 -1
@@ -0,0 +1,156 @@
1
+ import { createHash, randomUUID } from "node:crypto";
2
+ import { access, cp, mkdir, readFile, readdir, rename, rm, writeFile, } from "node:fs/promises";
3
+ import { homedir } from "node:os";
4
+ import { dirname, join, relative } from "node:path";
5
+ import { fileURLToPath } from "node:url";
6
+ const skillName = "semantic-atlas";
7
+ const installationMarkerName = ".semantic-atlas-managed.json";
8
+ export class SkillInstaller {
9
+ #sourceDirectory;
10
+ #targetDirectory;
11
+ #legacyDirectories;
12
+ #version;
13
+ constructor(options) {
14
+ const userHome = options.userHome ?? homedir();
15
+ this.#sourceDirectory = options.sourceDirectory ?? resolveBundledSkillDirectory();
16
+ this.#targetDirectory = join(userHome, ".agents", "skills", skillName);
17
+ this.#legacyDirectories = [join(userHome, ".codex", "skills", skillName)];
18
+ this.#version = options.version;
19
+ }
20
+ async install() {
21
+ await requireSemanticAtlasSkill(this.#sourceDirectory, "bundled Skill");
22
+ const targetExists = await exists(this.#targetDirectory);
23
+ if (targetExists) {
24
+ await requireSemanticAtlasSkill(this.#targetDirectory, "existing shared Skill");
25
+ }
26
+ const existingLegacyDirectories = await this.existingLegacyDirectories();
27
+ for (const directory of existingLegacyDirectories) {
28
+ await requireSemanticAtlasSkill(directory, "legacy Codex Skill");
29
+ }
30
+ const sourceFingerprint = await fingerprintSkill(this.#sourceDirectory);
31
+ const targetCurrent = targetExists
32
+ && await installedSkillIsCurrent(this.#targetDirectory, this.#version, sourceFingerprint);
33
+ if (targetCurrent && existingLegacyDirectories.length === 0) {
34
+ return {
35
+ outcome: "current",
36
+ targetDirectory: this.#targetDirectory,
37
+ removedLegacyDirectories: [],
38
+ };
39
+ }
40
+ await this.installAtomically({ version: this.#version, fingerprint: sourceFingerprint });
41
+ for (const directory of existingLegacyDirectories) {
42
+ await rm(directory, { recursive: true, force: true });
43
+ }
44
+ return {
45
+ outcome: targetExists ? "updated" : "installed",
46
+ targetDirectory: this.#targetDirectory,
47
+ removedLegacyDirectories: existingLegacyDirectories,
48
+ };
49
+ }
50
+ async existingLegacyDirectories() {
51
+ const result = [];
52
+ for (const directory of this.#legacyDirectories) {
53
+ if (await exists(directory)) {
54
+ result.push(directory);
55
+ }
56
+ }
57
+ return result;
58
+ }
59
+ async installAtomically(marker) {
60
+ const parent = dirname(this.#targetDirectory);
61
+ const token = `${process.pid}-${randomUUID()}`;
62
+ const temporary = `${this.#targetDirectory}.installing-${token}`;
63
+ const backup = `${this.#targetDirectory}.backup-${token}`;
64
+ const targetExists = await exists(this.#targetDirectory);
65
+ await mkdir(parent, { recursive: true });
66
+ await rm(temporary, { recursive: true, force: true });
67
+ await rm(backup, { recursive: true, force: true });
68
+ await cp(this.#sourceDirectory, temporary, { recursive: true });
69
+ await writeFile(join(temporary, installationMarkerName), `${JSON.stringify(marker, null, 2)}\n`, "utf8");
70
+ if (targetExists) {
71
+ await rename(this.#targetDirectory, backup);
72
+ }
73
+ try {
74
+ await rename(temporary, this.#targetDirectory);
75
+ }
76
+ catch (error) {
77
+ if (targetExists) {
78
+ await rename(backup, this.#targetDirectory);
79
+ }
80
+ throw error;
81
+ }
82
+ await rm(backup, { recursive: true, force: true });
83
+ }
84
+ }
85
+ export function resolveBundledSkillDirectory() {
86
+ const moduleDirectory = dirname(fileURLToPath(import.meta.url));
87
+ return join(moduleDirectory, "..", "..", ".agents", "skills", skillName);
88
+ }
89
+ async function installedSkillIsCurrent(directory, version, sourceFingerprint) {
90
+ const marker = await readInstallationMarker(join(directory, installationMarkerName));
91
+ if (marker?.version !== version || marker.fingerprint !== sourceFingerprint) {
92
+ return false;
93
+ }
94
+ return await fingerprintSkill(directory) === sourceFingerprint;
95
+ }
96
+ async function requireSemanticAtlasSkill(directory, description) {
97
+ let contents;
98
+ try {
99
+ contents = await readFile(join(directory, "SKILL.md"), "utf8");
100
+ }
101
+ catch {
102
+ throw new Error(`Refusing to replace ${description} at ${directory}: SKILL.md is missing`);
103
+ }
104
+ if (!/^---\r?\n[\s\S]*?^name:\s*["']?semantic-atlas["']?\s*$[\s\S]*?^---\s*$/mu.test(contents)) {
105
+ throw new Error(`Refusing to replace unrelated Skill at ${directory}`);
106
+ }
107
+ }
108
+ async function readInstallationMarker(path) {
109
+ try {
110
+ const parsed = JSON.parse(await readFile(path, "utf8"));
111
+ return typeof parsed.version === "string" && /^[a-f0-9]{64}$/u.test(parsed.fingerprint ?? "")
112
+ ? { version: parsed.version, fingerprint: parsed.fingerprint }
113
+ : undefined;
114
+ }
115
+ catch (error) {
116
+ if (error instanceof Error && "code" in error && error.code === "ENOENT") {
117
+ return undefined;
118
+ }
119
+ return undefined;
120
+ }
121
+ }
122
+ async function fingerprintSkill(directory) {
123
+ const hash = createHash("sha256");
124
+ for (const path of await listFiles(directory)) {
125
+ const relativePath = relative(directory, path);
126
+ hash.update(relativePath);
127
+ hash.update("\0");
128
+ hash.update(await readFile(path));
129
+ hash.update("\0");
130
+ }
131
+ return hash.digest("hex");
132
+ }
133
+ async function listFiles(directory) {
134
+ const result = [];
135
+ for (const entry of await readdir(directory, { withFileTypes: true })) {
136
+ if (entry.name === installationMarkerName) {
137
+ continue;
138
+ }
139
+ const path = join(directory, entry.name);
140
+ if (entry.isDirectory()) {
141
+ result.push(...await listFiles(path));
142
+ }
143
+ else {
144
+ result.push(path);
145
+ }
146
+ }
147
+ return result.sort();
148
+ }
149
+ async function exists(path) {
150
+ return access(path).then(() => true, (error) => {
151
+ if (error.code === "ENOENT") {
152
+ return false;
153
+ }
154
+ throw error;
155
+ });
156
+ }
@@ -0,0 +1,14 @@
1
+ import type { BusinessGraphNode, BusinessGraphRelation, BusinessMapView } from "../graph/types.js";
2
+ export declare class BusinessMapProjector {
3
+ #private;
4
+ constructor(nodes: readonly BusinessGraphNode[], relations: readonly BusinessGraphRelation[]);
5
+ project(focusKey?: string): BusinessMapView | undefined;
6
+ private rootKeys;
7
+ private pathFromRoot;
8
+ private touchesSubtree;
9
+ private isDescendantOrSelf;
10
+ private projectEndpoint;
11
+ private addContextRegion;
12
+ private addRegion;
13
+ }
14
+ //# sourceMappingURL=business-map-projector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-map-projector.d.ts","sourceRoot":"","sources":["../../src/world/business-map-projector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EAKrB,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAuB3B,qBAAa,oBAAoB;;gBAO7B,KAAK,EAAE,SAAS,iBAAiB,EAAE,EACnC,SAAS,EAAE,SAAS,qBAAqB,EAAE;IAY7C,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS;IA2CvD,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,SAAS;CAYlB"}
@@ -0,0 +1,178 @@
1
+ export class BusinessMapProjector {
2
+ #nodes;
3
+ #parentByChild;
4
+ #childrenByParent;
5
+ #relations;
6
+ constructor(nodes, relations) {
7
+ this.#nodes = new Map(nodes.map((node) => [node.key, node]));
8
+ this.#parentByChild = new Map(relations.flatMap((relation) => (relation.type === "part_of" && relation.to.domain === "business"
9
+ ? [[relation.from.key, relation.to.key]]
10
+ : [])));
11
+ this.#childrenByParent = childrenByParent(this.#parentByChild);
12
+ this.#relations = relations;
13
+ }
14
+ project(focusKey) {
15
+ const focus = focusKey === undefined ? null : this.#nodes.get(focusKey);
16
+ if (focus === undefined) {
17
+ return undefined;
18
+ }
19
+ const breadcrumbs = focus === null ? [] : this.pathFromRoot(focus.key);
20
+ const regions = new Map();
21
+ const visibleKeys = focus === null
22
+ ? this.rootKeys()
23
+ : this.#childrenByParent.get(focus.key) ?? [];
24
+ const role = focus === null ? "root" : "child";
25
+ visibleKeys.forEach((key) => this.addRegion(regions, key, role));
26
+ const connections = new Map();
27
+ for (const relation of this.#relations) {
28
+ if (!isMapRelation(relation)) {
29
+ continue;
30
+ }
31
+ if (focus !== null && !this.touchesSubtree(relation, focus.key)) {
32
+ continue;
33
+ }
34
+ const projectedFrom = this.projectEndpoint(relation.from.key, focus, breadcrumbs);
35
+ const projectedTo = this.projectEndpoint(relation.to.key, focus, breadcrumbs);
36
+ if (projectedFrom === projectedTo) {
37
+ continue;
38
+ }
39
+ this.addContextRegion(regions, projectedFrom, focus);
40
+ this.addContextRegion(regions, projectedTo, focus);
41
+ const direct = projectedFrom === relation.from.key && projectedTo === relation.to.key;
42
+ addConnectionContribution(connections, projectedFrom, projectedTo, relation, direct);
43
+ }
44
+ return {
45
+ focus,
46
+ breadcrumbs,
47
+ regions: [...regions.values()].sort(compareRegions),
48
+ connections: presentConnections(connections),
49
+ };
50
+ }
51
+ rootKeys() {
52
+ return [...this.#nodes.keys()]
53
+ .filter((key) => !this.#parentByChild.has(key))
54
+ .sort((left, right) => left.localeCompare(right));
55
+ }
56
+ pathFromRoot(key) {
57
+ const path = [];
58
+ let current = key;
59
+ while (current !== undefined) {
60
+ const node = this.#nodes.get(current);
61
+ if (node === undefined) {
62
+ break;
63
+ }
64
+ path.push(node);
65
+ current = this.#parentByChild.get(current);
66
+ }
67
+ return path.reverse();
68
+ }
69
+ touchesSubtree(relation, focusKey) {
70
+ return this.isDescendantOrSelf(relation.from.key, focusKey)
71
+ || (relation.to.domain === "business" && this.isDescendantOrSelf(relation.to.key, focusKey));
72
+ }
73
+ isDescendantOrSelf(key, ancestorKey) {
74
+ let current = key;
75
+ while (current !== undefined) {
76
+ if (current === ancestorKey) {
77
+ return true;
78
+ }
79
+ current = this.#parentByChild.get(current);
80
+ }
81
+ return false;
82
+ }
83
+ projectEndpoint(key, focus, focusPath) {
84
+ const endpointPath = this.pathFromRoot(key);
85
+ if (focus === null) {
86
+ return endpointPath[0]?.key ?? key;
87
+ }
88
+ if (this.isDescendantOrSelf(key, focus.key)) {
89
+ if (key === focus.key) {
90
+ return key;
91
+ }
92
+ const focusIndex = endpointPath.findIndex((node) => node.key === focus.key);
93
+ return endpointPath[focusIndex + 1]?.key ?? key;
94
+ }
95
+ const commonLength = sharedPrefixLength(focusPath, endpointPath);
96
+ return endpointPath[commonLength]?.key ?? key;
97
+ }
98
+ addContextRegion(regions, key, focus) {
99
+ if (key !== focus?.key && !regions.has(key)) {
100
+ this.addRegion(regions, key, "context");
101
+ }
102
+ }
103
+ addRegion(regions, key, role) {
104
+ const node = this.#nodes.get(key);
105
+ if (node === undefined) {
106
+ return;
107
+ }
108
+ const childCount = this.#childrenByParent.get(key)?.length ?? 0;
109
+ regions.set(key, { node, role, childCount, expandable: childCount > 0 });
110
+ }
111
+ }
112
+ function childrenByParent(parentByChild) {
113
+ const result = new Map();
114
+ for (const [child, parent] of parentByChild) {
115
+ const children = result.get(parent) ?? [];
116
+ children.push(child);
117
+ result.set(parent, children);
118
+ }
119
+ result.forEach((children) => children.sort((left, right) => left.localeCompare(right)));
120
+ return result;
121
+ }
122
+ function isMapRelation(relation) {
123
+ return relation.to.domain === "business"
124
+ && relation.type !== "part_of"
125
+ && relation.type !== "realized_by"
126
+ && relation.type !== "verified_by";
127
+ }
128
+ function sharedPrefixLength(left, right) {
129
+ let length = 0;
130
+ while (length < left.length && length < right.length && left[length].key === right[length].key) {
131
+ length += 1;
132
+ }
133
+ return length;
134
+ }
135
+ function addConnectionContribution(connections, fromKey, toKey, relation, direct) {
136
+ const connectionKey = `${fromKey}\0${toKey}`;
137
+ const connection = connections.get(connectionKey) ?? {
138
+ fromKey,
139
+ toKey,
140
+ relations: new Map(),
141
+ };
142
+ connections.set(connectionKey, connection);
143
+ const summary = connection.relations.get(relation.type) ?? emptySummary(relation.type);
144
+ connection.relations.set(relation.type, summary);
145
+ if (direct) {
146
+ summary.directCount += 1;
147
+ }
148
+ else {
149
+ summary.aggregatedCount += 1;
150
+ }
151
+ summary.certainty[relation.certainty] += 1;
152
+ summary.validity[relation.validity] += 1;
153
+ }
154
+ function emptySummary(type) {
155
+ return {
156
+ type,
157
+ directCount: 0,
158
+ aggregatedCount: 0,
159
+ certainty: { exact: 0, inferred: 0, hypothesis: 0 },
160
+ validity: { valid: 0, stale: 0 },
161
+ };
162
+ }
163
+ function compareRegions(left, right) {
164
+ const leftRank = left.role === "context" ? 1 : 0;
165
+ const rightRank = right.role === "context" ? 1 : 0;
166
+ return leftRank - rightRank || left.node.key.localeCompare(right.node.key);
167
+ }
168
+ function presentConnections(connections) {
169
+ return [...connections.values()]
170
+ .sort((left, right) => (left.fromKey.localeCompare(right.fromKey) || left.toKey.localeCompare(right.toKey)))
171
+ .map((connection) => ({
172
+ from: { domain: "business", key: connection.fromKey },
173
+ to: { domain: "business", key: connection.toKey },
174
+ relations: [...connection.relations.values()]
175
+ .sort((left, right) => left.type.localeCompare(right.type))
176
+ .map((relation) => relation),
177
+ }));
178
+ }
@@ -1,31 +1,26 @@
1
1
  import type { GitRepository } from "../repository/types.js";
2
2
  import { GraphStore } from "../graph/graph-store.js";
3
- import type { BusinessGraphNode, GraphNode, GraphNodeReference, GraphSearchResult, GraphTraversalOptions, StructuralGraphNode, WorldGraphTraversalResult, WorldGraphView } from "../graph/types.js";
3
+ import type { BusinessGraphView, BusinessGraphNode, BusinessMapView, GraphSearchResult, StructuralGraphNode } from "../graph/types.js";
4
4
  import type { StructuralIndexBackend } from "../structural-backend/types.js";
5
5
  import type { SemanticGraphChangeOptions, SemanticGraphChanges } from "./types.js";
6
- export type WorldGraphTraversalOptions = Omit<GraphTraversalOptions, "snapshotId">;
7
6
  export declare class WorldGraphQuery implements Disposable {
8
7
  #private;
9
8
  constructor(repository: GitRepository, graph?: GraphStore, structural?: StructuralIndexBackend);
10
- roots(): Promise<readonly (BusinessGraphNode | StructuralGraphNode)[]>;
11
- children(reference: GraphNodeReference): Promise<readonly GraphNode[] | undefined>;
12
- search(query: string, options?: {
9
+ view(focusKey?: string): Promise<BusinessMapView | undefined>;
10
+ searchBusiness(query: string, options?: {
13
11
  readonly limit?: number;
14
- }): Promise<readonly GraphSearchResult[]>;
15
- show(reference: GraphNodeReference, options?: Pick<WorldGraphTraversalOptions, "maxDepth">): Promise<WorldGraphView | undefined>;
12
+ }): Promise<readonly GraphSearchResult<BusinessGraphNode>[]>;
13
+ searchCode(query: string, options?: {
14
+ readonly limit?: number;
15
+ }): Promise<readonly GraphSearchResult<StructuralGraphNode>[]>;
16
+ showBusiness(key: string): Promise<BusinessGraphView | undefined>;
16
17
  changes(options?: SemanticGraphChangeOptions): SemanticGraphChanges | undefined;
17
- traverse(start: GraphNodeReference, options?: WorldGraphTraversalOptions): Promise<WorldGraphTraversalResult>;
18
- private traverseSnapshot;
19
18
  close(): void;
20
19
  [Symbol.dispose](): void;
21
20
  private currentWorld;
22
21
  private withCurrentWorld;
23
22
  private getNode;
24
- private adjacent;
25
23
  private businessAdjacency;
26
- private structuralAdjacency;
27
- private structuralNeighbor;
28
24
  private structuralNode;
29
- private unknownBoundary;
30
25
  }
31
26
  //# sourceMappingURL=world-graph-query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"world-graph-query.d.ts","sourceRoot":"","sources":["../../src/world/world-graph-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EACV,iBAAiB,EAGjB,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EAGnB,yBAAyB,EACzB,cAAc,EACf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EACV,sBAAsB,EAKvB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,KAAK,EACV,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;AAQnF,qBAAa,eAAgB,YAAW,UAAU;;gBAO9C,UAAU,EAAE,aAAa,EACzB,KAAK,CAAC,EAAE,UAAU,EAClB,UAAU,GAAE,sBAAmE;IAS3E,KAAK,IAAI,OAAO,CAAC,SAAS,CAAC,iBAAiB,GAAG,mBAAmB,CAAC,EAAE,CAAC;IAWtE,QAAQ,CAAC,SAAS,EAAE,kBAAkB,GAAG,OAAO,CAAC,SAAS,SAAS,EAAE,GAAG,SAAS,CAAC;IAiBlF,MAAM,CACV,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAO,GACxC,OAAO,CAAC,SAAS,iBAAiB,EAAE,CAAC;IA2BlC,IAAI,CACR,SAAS,EAAE,kBAAkB,EAC7B,OAAO,GAAE,IAAI,CAAC,0BAA0B,EAAE,UAAU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