semantic-atlas 0.1.2 → 0.1.4
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/.agents/skills/semantic-atlas/SKILL.md +2 -2
- package/.agents/skills/semantic-atlas/references/snapshot-bootstrap.md +5 -1
- package/README.md +15 -14
- package/README.zh-CN.md +15 -14
- package/dist/cli/bin.js +7 -15
- package/dist/cli/cli-application.d.ts.map +1 -1
- package/dist/cli/cli-application.js +5 -5
- package/dist/graph/graph-store.d.ts +6 -0
- package/dist/graph/graph-store.d.ts.map +1 -1
- package/dist/graph/graph-store.js +261 -114
- package/dist/runtime/sqlite-compatibility-process.d.ts +8 -0
- package/dist/runtime/sqlite-compatibility-process.d.ts.map +1 -0
- package/dist/runtime/sqlite-compatibility-process.js +20 -0
- package/dist/storage/atlas-database.d.ts +6 -2
- package/dist/storage/atlas-database.d.ts.map +1 -1
- package/dist/storage/atlas-database.js +388 -514
- package/dist/storage/snapshot-store.d.ts.map +1 -1
- package/dist/storage/snapshot-store.js +7 -10
- package/dist/structural-backend/codegraph-backend.d.ts +4 -1
- package/dist/structural-backend/codegraph-backend.d.ts.map +1 -1
- package/dist/structural-backend/codegraph-backend.js +10 -4
- package/dist/structural-backend/structural-projection-bootstrapper.d.ts +10 -0
- package/dist/structural-backend/structural-projection-bootstrapper.d.ts.map +1 -0
- package/dist/structural-backend/structural-projection-bootstrapper.js +295 -0
- package/dist/structural-backend/structural-publication.d.ts +1 -0
- package/dist/structural-backend/structural-publication.d.ts.map +1 -1
- package/dist/structural-backend/structural-publication.js +5 -2
- package/dist/world/world-model-service.d.ts.map +1 -1
- package/dist/world/world-model-service.js +14 -6
- package/dist/world/world-snapshot-store.d.ts.map +1 -1
- package/dist/world/world-snapshot-store.js +92 -66
- package/docs/architecture/codegraph-backend.md +26 -29
- package/docs/contracts/cli-v1.md +2 -1
- package/docs/contracts/graph-model.md +2 -2
- package/docs/product-contract.md +20 -17
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-store.d.ts","sourceRoot":"","sources":["../../src/storage/snapshot-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,qBAAa,aAAc,YAAW,UAAU;;IAC9C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"snapshot-store.d.ts","sourceRoot":"","sources":["../../src/storage/snapshot-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,qBAAa,aAAc,YAAW,UAAU;;IAC9C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;gBAKlB,UAAU,EAAE,aAAa;IAOrC,IAAI,CAAC,QAAQ,EAAE,kBAAkB,GAAG,IAAI;IAyBxC,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAIxD,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,wBAAwB,GAAG,SAAS;IAepE,MAAM,IAAI,kBAAkB,GAAG,SAAS;IAIxC,YAAY,IAAI,wBAAwB,GAAG,SAAS;IAkBpD,KAAK,IAAI,IAAI;IAIb,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;CAGzB"}
|
|
@@ -3,8 +3,10 @@ export class SnapshotStore {
|
|
|
3
3
|
databasePath;
|
|
4
4
|
#atlasDatabase;
|
|
5
5
|
#repositoryId;
|
|
6
|
+
#gitDirectory;
|
|
6
7
|
constructor(repository) {
|
|
7
8
|
this.#repositoryId = repository.repositoryId;
|
|
9
|
+
this.#gitDirectory = repository.gitDirectory;
|
|
8
10
|
this.#atlasDatabase = new AtlasDatabase(repository);
|
|
9
11
|
this.databasePath = this.#atlasDatabase.databasePath;
|
|
10
12
|
}
|
|
@@ -25,11 +27,6 @@ export class SnapshotStore {
|
|
|
25
27
|
) VALUES (?, ?, ?, ?)
|
|
26
28
|
ON CONFLICT (repository_id, snapshot_id) DO NOTHING
|
|
27
29
|
`).run(this.#repositoryId, snapshot.snapshotId, JSON.stringify(snapshot), timestamp);
|
|
28
|
-
database.prepare(`
|
|
29
|
-
UPDATE atlas_repositories
|
|
30
|
-
SET latest_snapshot_id = ?, updated_at = ?
|
|
31
|
-
WHERE repository_id = ?
|
|
32
|
-
`).run(snapshot.snapshotId, timestamp, this.#repositoryId);
|
|
33
30
|
database.exec("COMMIT");
|
|
34
31
|
}
|
|
35
32
|
catch (error) {
|
|
@@ -57,12 +54,12 @@ export class SnapshotStore {
|
|
|
57
54
|
latestStored() {
|
|
58
55
|
const row = this.#atlasDatabase.connection.prepare(`
|
|
59
56
|
SELECT snapshot.payload, snapshot.created_at
|
|
60
|
-
FROM
|
|
57
|
+
FROM atlas_worktree_states AS worktree
|
|
61
58
|
JOIN atlas_repository_snapshots AS snapshot
|
|
62
|
-
ON snapshot.repository_id =
|
|
63
|
-
AND snapshot.snapshot_id =
|
|
64
|
-
WHERE
|
|
65
|
-
`).get(this.#repositoryId);
|
|
59
|
+
ON snapshot.repository_id = worktree.repository_id
|
|
60
|
+
AND snapshot.snapshot_id = worktree.current_snapshot_id
|
|
61
|
+
WHERE worktree.repository_id = ? AND worktree.git_directory = ?
|
|
62
|
+
`).get(this.#repositoryId, this.#gitDirectory);
|
|
66
63
|
return row === undefined ? undefined : {
|
|
67
64
|
snapshot: JSON.parse(row.payload),
|
|
68
65
|
createdAt: row.created_at,
|
|
@@ -3,12 +3,15 @@ import type { IndexedSourceFile, StructuralEvidenceResolver, WorldWriteCoordinat
|
|
|
3
3
|
import { type StructuralBuildResult, type StructuralCallRelation, type StructuralFileDependency, type StructuralIndexBackend, type StructuralIndexState, type StructuralNode, type StructuralProjectGraphQuery, type StructuralReference, type StructuralSearchQuery, type StructuralSearchResult, type StructuralTraversalQuery, type StructuralTraversalResult, type StructuralUnknownBoundary } from "./types.js";
|
|
4
4
|
export interface StructuralWorldPublicationHooks {
|
|
5
5
|
onBuilding(): void | Promise<void>;
|
|
6
|
-
|
|
6
|
+
prepareProjection(): void | Promise<void>;
|
|
7
|
+
validate(result: StructuralBuildResult, indexedSources: readonly IndexedSourceFile[]): void | Promise<void>;
|
|
8
|
+
publish(result: StructuralBuildResult, resolver: StructuralEvidenceResolver): void | Promise<void>;
|
|
7
9
|
fail(error: unknown): void;
|
|
8
10
|
}
|
|
9
11
|
export declare class CodeGraphStructuralBackend implements StructuralIndexBackend, WorldWriteCoordinator {
|
|
10
12
|
#private;
|
|
11
13
|
constructor(repository: GitRepository);
|
|
14
|
+
prepareStorageForBootstrap(): Promise<void>;
|
|
12
15
|
inspect(): Promise<StructuralIndexState>;
|
|
13
16
|
build(): Promise<StructuralBuildResult>;
|
|
14
17
|
sync(): Promise<StructuralBuildResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegraph-backend.d.ts","sourceRoot":"","sources":["../../src/structural-backend/codegraph-backend.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,KAAK,EACV,iBAAiB,EACjB,0BAA0B,EAE1B,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAW3B,OAAO,EAIL,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAI3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,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F,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,wBAAwB,EAAE,CAAC;YA6BvE,QAAQ;YAuCR,cAAc;YA6Dd,mBAAmB;YAgBnB,gBAAgB;YAqBhB,YAAY;YA4BZ,qBAAqB;IAkBnC,OAAO,CAAC,qBAAqB;IAyC7B,OAAO,CAAC,gBAAgB;IA4BxB,OAAO,CAAC,+BAA+B;YAuBzB,gCAAgC;IAgB9C,OAAO,CAAC,iBAAiB;YAcX,gBAAgB;IAiC9B,OAAO,CAAC,SAAS;IAYjB,OAAO,CAAC,cAAc;IAiBtB,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,eAAe;YAWT,qBAAqB;YAQrB,cAAc;YAgBd,kBAAkB;IAsChC,OAAO,CAAC,qBAAqB;IAQ7B,OAAO,CAAC,wBAAwB;YAUlB,oBAAoB;YAYpB,sBAAsB;YAuCtB,4BAA4B;YAY5B,6BAA6B;YAyB7B,oBAAoB;IAsBlC,OAAO,CAAC,kBAAkB;CAK3B"}
|
|
@@ -45,6 +45,9 @@ export class CodeGraphStructuralBackend {
|
|
|
45
45
|
this.#repository = repository;
|
|
46
46
|
this.#databasePath = join(repository.worktreeRoot, ATLAS_DIRECTORY, "codegraph.db");
|
|
47
47
|
}
|
|
48
|
+
async prepareStorageForBootstrap() {
|
|
49
|
+
await this.prepareAtlasDirectory();
|
|
50
|
+
}
|
|
48
51
|
async inspect() {
|
|
49
52
|
if (requiresBundledCodeGraphRuntime()) {
|
|
50
53
|
try {
|
|
@@ -308,6 +311,8 @@ export class CodeGraphStructuralBackend {
|
|
|
308
311
|
}
|
|
309
312
|
try {
|
|
310
313
|
await StructuralPublication.recoverAbandoned(this.#databasePath);
|
|
314
|
+
await worldHooks?.onBuilding();
|
|
315
|
+
await worldHooks?.prepareProjection();
|
|
311
316
|
return await this.runLockedBuild(sdk, requestedMode, worldHooks);
|
|
312
317
|
}
|
|
313
318
|
finally {
|
|
@@ -327,11 +332,9 @@ export class CodeGraphStructuralBackend {
|
|
|
327
332
|
try {
|
|
328
333
|
if (!initialized && worldHooks !== undefined) {
|
|
329
334
|
graph = await sdk.CodeGraph.init(this.#repository.worktreeRoot, { index: false });
|
|
330
|
-
await worldHooks.onBuilding();
|
|
331
335
|
publication = await StructuralPublication.begin(this.#databasePath, false);
|
|
332
336
|
}
|
|
333
337
|
else {
|
|
334
|
-
await worldHooks?.onBuilding();
|
|
335
338
|
publication = await StructuralPublication.begin(this.#databasePath, initialized);
|
|
336
339
|
graph = initialized
|
|
337
340
|
? await sdk.CodeGraph.open(this.#repository.worktreeRoot, { sync: false })
|
|
@@ -353,11 +356,14 @@ export class CodeGraphStructuralBackend {
|
|
|
353
356
|
...buildResult,
|
|
354
357
|
factChanges: compareStructuralFacts(previousFacts, captureStructuralFacts(graph)),
|
|
355
358
|
};
|
|
356
|
-
|
|
359
|
+
const indexedSources = graph.getFiles().map((file) => ({
|
|
357
360
|
path: normalizeRepositoryPath(file.path),
|
|
358
361
|
contentHash: file.contentHash,
|
|
359
|
-
}))
|
|
362
|
+
}));
|
|
363
|
+
await worldHooks?.validate(publishedResult, indexedSources);
|
|
360
364
|
await publication.commit();
|
|
365
|
+
publication = undefined;
|
|
366
|
+
await worldHooks?.publish(publishedResult, structuralEvidenceResolver(graph));
|
|
361
367
|
return publishedResult;
|
|
362
368
|
}
|
|
363
369
|
catch (error) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GitRepository } from "../repository/types.js";
|
|
2
|
+
import type { RepositorySnapshot } from "../snapshots/types.js";
|
|
3
|
+
export declare class StructuralProjectionBootstrapper {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(repository: GitRepository);
|
|
6
|
+
bootstrap(currentSnapshot: RepositorySnapshot): Promise<boolean>;
|
|
7
|
+
private findCandidates;
|
|
8
|
+
private restoreCandidate;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=structural-projection-bootstrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structural-projection-bootstrapper.d.ts","sourceRoot":"","sources":["../../src/structural-backend/structural-projection-bootstrapper.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AA2BhE,qBAAa,gCAAgC;;gBAI/B,UAAU,EAAE,aAAa;IAK/B,SAAS,CAAC,eAAe,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC;YAaxD,cAAc;YA6Dd,gBAAgB;CAiD/B"}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
|
|
2
|
+
if (value !== null && value !== void 0) {
|
|
3
|
+
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
4
|
+
var dispose, inner;
|
|
5
|
+
if (async) {
|
|
6
|
+
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
7
|
+
dispose = value[Symbol.asyncDispose];
|
|
8
|
+
}
|
|
9
|
+
if (dispose === void 0) {
|
|
10
|
+
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
11
|
+
dispose = value[Symbol.dispose];
|
|
12
|
+
if (async) inner = dispose;
|
|
13
|
+
}
|
|
14
|
+
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
15
|
+
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
16
|
+
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
17
|
+
}
|
|
18
|
+
else if (async) {
|
|
19
|
+
env.stack.push({ async: true });
|
|
20
|
+
}
|
|
21
|
+
return value;
|
|
22
|
+
};
|
|
23
|
+
var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
|
|
24
|
+
return function (env) {
|
|
25
|
+
function fail(e) {
|
|
26
|
+
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
27
|
+
env.hasError = true;
|
|
28
|
+
}
|
|
29
|
+
var r, s = 0;
|
|
30
|
+
function next() {
|
|
31
|
+
while (r = env.stack.pop()) {
|
|
32
|
+
try {
|
|
33
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
34
|
+
if (r.dispose) {
|
|
35
|
+
var result = r.dispose.call(r.value);
|
|
36
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
37
|
+
}
|
|
38
|
+
else s |= 1;
|
|
39
|
+
}
|
|
40
|
+
catch (e) {
|
|
41
|
+
fail(e);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
45
|
+
if (env.hasError) throw env.error;
|
|
46
|
+
}
|
|
47
|
+
return next();
|
|
48
|
+
};
|
|
49
|
+
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
50
|
+
var e = new Error(message);
|
|
51
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
52
|
+
});
|
|
53
|
+
import { randomUUID } from "node:crypto";
|
|
54
|
+
import { lstat, rename, rm } from "node:fs/promises";
|
|
55
|
+
import { createRequire } from "node:module";
|
|
56
|
+
import { join, resolve } from "node:path";
|
|
57
|
+
import { DatabaseSync } from "node:sqlite";
|
|
58
|
+
import { isSupportedSource, inspectGitRepository } from "../repository/repository-inspector.js";
|
|
59
|
+
import { AtlasDatabase } from "../storage/atlas-database.js";
|
|
60
|
+
import { CodeGraphStructuralBackend } from "./codegraph-backend.js";
|
|
61
|
+
import { backupSqliteDatabase } from "./structural-publication.js";
|
|
62
|
+
import { StructuralWriteLock } from "./structural-write-lock.js";
|
|
63
|
+
import { STRUCTURAL_BACKEND_VERSION } from "./types.js";
|
|
64
|
+
const ATLAS_DIRECTORY = ".atlas";
|
|
65
|
+
const CODEGRAPH_DATABASE = "codegraph.db";
|
|
66
|
+
const ATLAS_WRITE_LOCK = "semantic-atlas.lock";
|
|
67
|
+
const CODEGRAPH_DIRECTORY_ENVIRONMENT = "CODEGRAPH_DIR";
|
|
68
|
+
const require = createRequire(import.meta.url);
|
|
69
|
+
export class StructuralProjectionBootstrapper {
|
|
70
|
+
#repository;
|
|
71
|
+
#databasePath;
|
|
72
|
+
constructor(repository) {
|
|
73
|
+
this.#repository = repository;
|
|
74
|
+
this.#databasePath = join(repository.worktreeRoot, ATLAS_DIRECTORY, CODEGRAPH_DATABASE);
|
|
75
|
+
}
|
|
76
|
+
async bootstrap(currentSnapshot) {
|
|
77
|
+
if (await pathExists(this.#databasePath)) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
const candidates = await this.findCandidates(currentSnapshot.snapshotId);
|
|
81
|
+
for (const candidate of candidates) {
|
|
82
|
+
if (await this.restoreCandidate(candidate)) {
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
async findCandidates(currentSnapshotId) {
|
|
89
|
+
const env_1 = { stack: [], error: void 0, hasError: false };
|
|
90
|
+
try {
|
|
91
|
+
const atlas = __addDisposableResource(env_1, new AtlasDatabase(this.#repository), false);
|
|
92
|
+
const candidates = [];
|
|
93
|
+
for (const worktreeRoot of this.#repository.worktreeRoots) {
|
|
94
|
+
if (resolve(worktreeRoot) === resolve(this.#repository.worktreeRoot)) {
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
try {
|
|
98
|
+
const repository = await inspectGitRepository(worktreeRoot);
|
|
99
|
+
if (repository.repositoryId !== this.#repository.repositoryId) {
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
const row = atlas.connection.prepare(`
|
|
103
|
+
SELECT
|
|
104
|
+
state.current_snapshot_id,
|
|
105
|
+
state.backend_version,
|
|
106
|
+
state.extraction_version,
|
|
107
|
+
state.published_at,
|
|
108
|
+
snapshot.payload
|
|
109
|
+
FROM atlas_worktree_states AS state
|
|
110
|
+
JOIN atlas_repository_snapshots AS snapshot
|
|
111
|
+
ON snapshot.repository_id = state.repository_id
|
|
112
|
+
AND snapshot.snapshot_id = state.current_snapshot_id
|
|
113
|
+
WHERE state.repository_id = ?
|
|
114
|
+
AND state.git_directory = ?
|
|
115
|
+
AND state.status = 'current'
|
|
116
|
+
`).get(this.#repository.repositoryId, repository.gitDirectory);
|
|
117
|
+
if (row === undefined
|
|
118
|
+
|| row.backend_version !== STRUCTURAL_BACKEND_VERSION
|
|
119
|
+
|| row.extraction_version === null
|
|
120
|
+
|| row.published_at === null) {
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
candidates.push({
|
|
124
|
+
repository,
|
|
125
|
+
snapshot: JSON.parse(row.payload),
|
|
126
|
+
backendVersion: row.backend_version,
|
|
127
|
+
extractionVersion: row.extraction_version,
|
|
128
|
+
publishedAt: row.published_at,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
catch {
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return candidates.sort((left, right) => (Number(right.snapshot.snapshotId === currentSnapshotId)
|
|
136
|
+
- Number(left.snapshot.snapshotId === currentSnapshotId)
|
|
137
|
+
|| right.publishedAt.localeCompare(left.publishedAt)
|
|
138
|
+
|| normalizePath(left.repository.worktreeRoot)
|
|
139
|
+
.localeCompare(normalizePath(right.repository.worktreeRoot))));
|
|
140
|
+
}
|
|
141
|
+
catch (e_1) {
|
|
142
|
+
env_1.error = e_1;
|
|
143
|
+
env_1.hasError = true;
|
|
144
|
+
}
|
|
145
|
+
finally {
|
|
146
|
+
__disposeResources(env_1);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
async restoreCandidate(candidate) {
|
|
150
|
+
const sourceDatabase = join(candidate.repository.worktreeRoot, ATLAS_DIRECTORY, CODEGRAPH_DATABASE);
|
|
151
|
+
const sourceLockPath = join(candidate.repository.worktreeRoot, ATLAS_DIRECTORY, ATLAS_WRITE_LOCK);
|
|
152
|
+
let sourceLock;
|
|
153
|
+
try {
|
|
154
|
+
sourceLock = StructuralWriteLock.acquire(sourceLockPath);
|
|
155
|
+
}
|
|
156
|
+
catch {
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
if (sourceLock === undefined) {
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
const stagingPath = join(this.#repository.worktreeRoot, ATLAS_DIRECTORY, `.codegraph-bootstrap-${randomUUID()}.db`);
|
|
163
|
+
try {
|
|
164
|
+
await requireOrdinaryDatabase(sourceDatabase);
|
|
165
|
+
if (!projectionMatchesSnapshot(sourceDatabase, candidate.snapshot, candidate.backendVersion, candidate.extractionVersion) || !await usesCurrentExtraction(candidate.repository)) {
|
|
166
|
+
return false;
|
|
167
|
+
}
|
|
168
|
+
await new CodeGraphStructuralBackend(this.#repository).prepareStorageForBootstrap();
|
|
169
|
+
if (await pathExists(this.#databasePath)) {
|
|
170
|
+
return false;
|
|
171
|
+
}
|
|
172
|
+
await backupSqliteDatabase(sourceDatabase, stagingPath);
|
|
173
|
+
if (!projectionMatchesSnapshot(stagingPath, candidate.snapshot, candidate.backendVersion, candidate.extractionVersion)) {
|
|
174
|
+
return false;
|
|
175
|
+
}
|
|
176
|
+
await rename(stagingPath, this.#databasePath);
|
|
177
|
+
return true;
|
|
178
|
+
}
|
|
179
|
+
catch {
|
|
180
|
+
return false;
|
|
181
|
+
}
|
|
182
|
+
finally {
|
|
183
|
+
sourceLock.release();
|
|
184
|
+
await rm(stagingPath, { force: true }).catch(() => undefined);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
async function usesCurrentExtraction(repository) {
|
|
189
|
+
const sdk = require("@colbymchenry/codegraph");
|
|
190
|
+
let graph;
|
|
191
|
+
const originalDirectory = process.env[CODEGRAPH_DIRECTORY_ENVIRONMENT];
|
|
192
|
+
process.env[CODEGRAPH_DIRECTORY_ENVIRONMENT] = ATLAS_DIRECTORY;
|
|
193
|
+
try {
|
|
194
|
+
graph = await sdk.CodeGraph.open(repository.worktreeRoot, {
|
|
195
|
+
sync: false,
|
|
196
|
+
readOnly: true,
|
|
197
|
+
});
|
|
198
|
+
return !graph.isIndexStale();
|
|
199
|
+
}
|
|
200
|
+
catch {
|
|
201
|
+
return false;
|
|
202
|
+
}
|
|
203
|
+
finally {
|
|
204
|
+
graph?.close();
|
|
205
|
+
if (originalDirectory === undefined) {
|
|
206
|
+
delete process.env[CODEGRAPH_DIRECTORY_ENVIRONMENT];
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
process.env[CODEGRAPH_DIRECTORY_ENVIRONMENT] = originalDirectory;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
function projectionMatchesSnapshot(databasePath, snapshot, backendVersion, extractionVersion) {
|
|
214
|
+
const database = new DatabaseSync(databasePath, { readOnly: true });
|
|
215
|
+
try {
|
|
216
|
+
const integrity = database.prepare("PRAGMA integrity_check").get();
|
|
217
|
+
if (integrity?.integrity_check !== "ok") {
|
|
218
|
+
return false;
|
|
219
|
+
}
|
|
220
|
+
const atlasObjects = database.prepare(`
|
|
221
|
+
SELECT COUNT(*) AS count
|
|
222
|
+
FROM sqlite_schema
|
|
223
|
+
WHERE name LIKE 'atlas\\_%' ESCAPE '\\'
|
|
224
|
+
`).get();
|
|
225
|
+
if (atlasObjects.count !== 0) {
|
|
226
|
+
return false;
|
|
227
|
+
}
|
|
228
|
+
const metadata = new Map(database.prepare(`
|
|
229
|
+
SELECT key, value
|
|
230
|
+
FROM project_metadata
|
|
231
|
+
WHERE key IN (
|
|
232
|
+
'index_state',
|
|
233
|
+
'indexed_with_version',
|
|
234
|
+
'indexed_with_extraction_version',
|
|
235
|
+
'index_files_discovered',
|
|
236
|
+
'index_files_accounted'
|
|
237
|
+
)
|
|
238
|
+
`).all()
|
|
239
|
+
.map(({ key, value }) => [key, value]));
|
|
240
|
+
if (metadata.get("index_state") !== "complete"
|
|
241
|
+
|| metadata.get("indexed_with_version") !== backendVersion
|
|
242
|
+
|| Number(metadata.get("indexed_with_extraction_version")) !== extractionVersion
|
|
243
|
+
|| metadata.get("index_files_discovered") !== metadata.get("index_files_accounted")) {
|
|
244
|
+
return false;
|
|
245
|
+
}
|
|
246
|
+
const indexedSources = database.prepare(`
|
|
247
|
+
SELECT path, content_hash, errors
|
|
248
|
+
FROM files
|
|
249
|
+
ORDER BY path
|
|
250
|
+
`).all();
|
|
251
|
+
if (indexedSources.some(({ errors }) => errors !== null && errors !== "[]")) {
|
|
252
|
+
return false;
|
|
253
|
+
}
|
|
254
|
+
const indexedHashes = new Map(indexedSources.map((source) => [
|
|
255
|
+
normalizeRepositoryPath(source.path),
|
|
256
|
+
source.content_hash,
|
|
257
|
+
]));
|
|
258
|
+
const snapshotHashes = new Map(snapshot.files.flatMap((file) => (isSupportedSource(file.path) && file.worktree !== null
|
|
259
|
+
? [[normalizeRepositoryPath(file.path), file.worktree.contentHash]]
|
|
260
|
+
: [])));
|
|
261
|
+
return [...snapshotHashes].every(([path, hash]) => indexedHashes.get(path) === hash)
|
|
262
|
+
&& [...indexedHashes.keys()].every((path) => (!isSupportedSource(path) || snapshotHashes.has(path)));
|
|
263
|
+
}
|
|
264
|
+
catch {
|
|
265
|
+
return false;
|
|
266
|
+
}
|
|
267
|
+
finally {
|
|
268
|
+
database.close();
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
async function requireOrdinaryDatabase(databasePath) {
|
|
272
|
+
const metadata = await lstat(databasePath);
|
|
273
|
+
if (!metadata.isFile() || metadata.isSymbolicLink()) {
|
|
274
|
+
throw new Error("A bootstrap source must be a regular CodeGraph database");
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
async function pathExists(path) {
|
|
278
|
+
try {
|
|
279
|
+
await lstat(path);
|
|
280
|
+
return true;
|
|
281
|
+
}
|
|
282
|
+
catch (error) {
|
|
283
|
+
if (error instanceof Error && "code" in error && error.code === "ENOENT") {
|
|
284
|
+
return false;
|
|
285
|
+
}
|
|
286
|
+
throw error;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
function normalizeRepositoryPath(path) {
|
|
290
|
+
return path.replaceAll("\\", "/").replace(/^\.\//u, "");
|
|
291
|
+
}
|
|
292
|
+
function normalizePath(path) {
|
|
293
|
+
const normalized = resolve(path).replaceAll("\\", "/");
|
|
294
|
+
return process.platform === "win32" ? normalized.toLowerCase() : normalized;
|
|
295
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structural-publication.d.ts","sourceRoot":"","sources":["../../src/structural-backend/structural-publication.ts"],"names":[],"mappings":"AA4BA,qBAAa,qBAAqB;;IAOhC,OAAO;IAOP,IAAI,UAAU,IAAI,MAAM,CAEvB;WAEY,KAAK,CAChB,YAAY,EAAE,MAAM,EACpB,oBAAoB,EAAE,OAAO,GAC5B,OAAO,CAAC,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"structural-publication.d.ts","sourceRoot":"","sources":["../../src/structural-backend/structural-publication.ts"],"names":[],"mappings":"AA4BA,qBAAa,qBAAqB;;IAOhC,OAAO;IAOP,IAAI,UAAU,IAAI,MAAM,CAEvB;WAEY,KAAK,CAChB,YAAY,EAAE,MAAM,EACpB,oBAAoB,EAAE,OAAO,GAC5B,OAAO,CAAC,qBAAqB,CAAC;WAoBpB,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAqB/D,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IASvB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAsB/B,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,aAAa;CAKtB;AAYD,wBAAsB,oBAAoB,CACxC,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CAGf"}
|
|
@@ -33,8 +33,7 @@ export class StructuralPublication {
|
|
|
33
33
|
try {
|
|
34
34
|
if (hasPublishedDatabase) {
|
|
35
35
|
const backupPath = join(stagingDirectory, PUBLISHED_DATABASE);
|
|
36
|
-
await
|
|
37
|
-
await verifySqliteDatabase(backupPath);
|
|
36
|
+
await backupSqliteDatabase(databasePath, backupPath);
|
|
38
37
|
}
|
|
39
38
|
await writeManifest(stagingDirectory, { version: 1, hasPublishedDatabase });
|
|
40
39
|
await rename(stagingDirectory, activeDirectory);
|
|
@@ -111,6 +110,10 @@ async function captureDatabase(databasePath, backupPath) {
|
|
|
111
110
|
database.close();
|
|
112
111
|
}
|
|
113
112
|
}
|
|
113
|
+
export async function backupSqliteDatabase(databasePath, backupPath) {
|
|
114
|
+
await captureDatabase(databasePath, backupPath);
|
|
115
|
+
await verifySqliteDatabase(backupPath);
|
|
116
|
+
}
|
|
114
117
|
async function restoreDatabase(backupPath, databasePath) {
|
|
115
118
|
const sqlite = loadNodeSqliteBackup();
|
|
116
119
|
const publishedDatabase = new sqlite.DatabaseSync(backupPath, { readOnly: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"world-model-service.d.ts","sourceRoot":"","sources":["../../src/world/world-model-service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"world-model-service.d.ts","sourceRoot":"","sources":["../../src/world/world-model-service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAU5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAExE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,qBAAqB,CAAC;IAC3C,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7C;AAED,qBAAa,iBAAiB;;IAGhB,QAAQ,CAAC,UAAU,EAAE,aAAa;gBAAzB,UAAU,EAAE,aAAa;IAIxC,KAAK,IAAI,OAAO,CAAC,sBAAsB,CAAC;IAIxC,IAAI,IAAI,OAAO,CAAC,sBAAsB,CAAC;IAI7C,KAAK,IAAI,kBAAkB;IAK3B,iBAAiB,IAAI,MAAM;YAKb,OAAO;CAsEtB;AAWD,wBAAgB,wBAAwB,CACtC,eAAe,EAAE,kBAAkB,EACnC,mBAAmB,EAAE,kBAAkB,EACvC,cAAc,EAAE,SAAS,iBAAiB,EAAE,GAC3C,MAAM,GAAG,IAAI,CA6Bf"}
|
|
@@ -53,6 +53,7 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres
|
|
|
53
53
|
import { createRepositorySnapshot } from "../snapshots/repository-snapshot.js";
|
|
54
54
|
import { isSupportedSource } from "../repository/repository-inspector.js";
|
|
55
55
|
import { CodeGraphStructuralBackend, } from "../structural-backend/codegraph-backend.js";
|
|
56
|
+
import { StructuralProjectionBootstrapper } from "../structural-backend/structural-projection-bootstrapper.js";
|
|
56
57
|
import { requiresBundledCodeGraphRuntime, runCodeGraphWorker, } from "../structural-backend/codegraph-worker-client.js";
|
|
57
58
|
import { WorldSnapshotStore } from "./world-snapshot-store.js";
|
|
58
59
|
export class WorldModelService {
|
|
@@ -123,15 +124,22 @@ export class WorldModelService {
|
|
|
123
124
|
__disposeResources(env_3);
|
|
124
125
|
}
|
|
125
126
|
},
|
|
126
|
-
|
|
127
|
+
prepareProjection: async () => {
|
|
128
|
+
await new StructuralProjectionBootstrapper(this.repository)
|
|
129
|
+
.bootstrap(requireBuildSnapshot(snapshot));
|
|
130
|
+
},
|
|
131
|
+
validate: async (_structural, indexedSources) => {
|
|
132
|
+
const indexedSnapshot = requireBuildSnapshot(snapshot);
|
|
133
|
+
const publishableSnapshot = await createRepositorySnapshot(this.repository);
|
|
134
|
+
const mismatch = worldPublicationMismatch(indexedSnapshot, publishableSnapshot, indexedSources);
|
|
135
|
+
if (mismatch !== null) {
|
|
136
|
+
throw new Error(`Repository changed during world publication: ${mismatch}`);
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
publish: async (structural, resolver) => {
|
|
127
140
|
const env_4 = { stack: [], error: void 0, hasError: false };
|
|
128
141
|
try {
|
|
129
142
|
const indexedSnapshot = requireBuildSnapshot(snapshot);
|
|
130
|
-
const publishableSnapshot = await createRepositorySnapshot(this.repository);
|
|
131
|
-
const mismatch = worldPublicationMismatch(indexedSnapshot, publishableSnapshot, indexedSources);
|
|
132
|
-
if (mismatch !== null) {
|
|
133
|
-
throw new Error(`Repository changed during world publication: ${mismatch}`);
|
|
134
|
-
}
|
|
135
143
|
const store = __addDisposableResource(env_4, new WorldSnapshotStore(this.repository), false);
|
|
136
144
|
staleAssertions = store.publish(indexedSnapshot, structural.backendVersion, structural.extractionVersion, resolver, {
|
|
137
145
|
fromSnapshotId: previousSnapshotId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"world-snapshot-store.d.ts","sourceRoot":"","sources":["../../src/world/world-snapshot-store.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,KAAK,EACV,oBAAoB,EAEpB,0BAA0B,EAC1B,oBAAoB,EACpB,0BAA0B,EAE1B,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAmBpB,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7C;AAwBD,qBAAa,kBAAmB,YAAW,UAAU;;
|
|
1
|
+
{"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