semantic-atlas 0.4.0 → 2.0.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/.agents/skills/semantic-atlas/SKILL.md +134 -166
- package/.agents/skills/semantic-atlas/agents/openai.yaml +4 -0
- package/.agents/skills/semantic-atlas/references/observations.md +130 -0
- package/.agents/skills/semantic-atlas/scripts/query-context.mjs +110 -0
- package/.agents/skills/semantic-atlas-maintenance/SKILL.md +93 -0
- package/.agents/skills/semantic-atlas-maintenance/agents/openai.yaml +4 -0
- package/.agents/skills/semantic-atlas-maintenance/references/reconciliation.md +56 -0
- package/README.md +133 -265
- package/dist/application/map-application.d.ts +24 -0
- package/dist/application/map-application.d.ts.map +1 -0
- package/dist/application/map-application.js +134 -0
- package/dist/application/map-application.js.map +1 -0
- package/dist/cli/bin.js +6 -42
- package/dist/cli/bin.js.map +1 -0
- package/dist/cli/observation-commands.d.ts +16 -0
- package/dist/cli/observation-commands.d.ts.map +1 -0
- package/dist/cli/observation-commands.js +118 -0
- package/dist/cli/observation-commands.js.map +1 -0
- package/dist/cli/projection-writer.d.ts +2 -0
- package/dist/cli/projection-writer.d.ts.map +1 -0
- package/dist/cli/projection-writer.js +9 -0
- package/dist/cli/projection-writer.js.map +1 -0
- package/dist/cli/reconciliation-command.d.ts +7 -0
- package/dist/cli/reconciliation-command.d.ts.map +1 -0
- package/dist/cli/reconciliation-command.js +33 -0
- package/dist/cli/reconciliation-command.js.map +1 -0
- package/dist/cli/run-cli.d.ts +21 -0
- package/dist/cli/run-cli.d.ts.map +1 -0
- package/dist/cli/run-cli.js +299 -0
- package/dist/cli/run-cli.js.map +1 -0
- package/dist/contracts/cli.d.ts +166 -1211
- package/dist/contracts/cli.d.ts.map +1 -1
- package/dist/contracts/cli.js +2 -232
- package/dist/contracts/cli.js.map +1 -0
- package/dist/contracts/insights.d.ts +39 -1
- package/dist/contracts/insights.d.ts.map +1 -1
- package/dist/contracts/insights.js +2 -1
- package/dist/contracts/insights.js.map +1 -0
- package/dist/contracts/map.d.ts +154 -0
- package/dist/contracts/map.d.ts.map +1 -0
- package/dist/contracts/map.js +60 -0
- package/dist/contracts/map.js.map +1 -0
- package/dist/contracts/observation.d.ts +414 -0
- package/dist/contracts/observation.d.ts.map +1 -0
- package/dist/contracts/observation.js +125 -0
- package/dist/contracts/observation.js.map +1 -0
- package/dist/contracts/projection.d.ts +7 -0
- package/dist/contracts/projection.d.ts.map +1 -0
- package/dist/contracts/projection.js +2 -0
- package/dist/contracts/projection.js.map +1 -0
- package/dist/contracts/reconciliation.d.ts +40 -0
- package/dist/contracts/reconciliation.d.ts.map +1 -0
- package/dist/contracts/reconciliation.js +2 -0
- package/dist/contracts/reconciliation.js.map +1 -0
- package/dist/index.d.ts +7 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -0
- package/dist/insights/insight-service.d.ts +14 -0
- package/dist/insights/insight-service.d.ts.map +1 -0
- package/dist/insights/insight-service.js +129 -0
- package/dist/insights/insight-service.js.map +1 -0
- package/dist/map/business-graph.d.ts +32 -0
- package/dist/map/business-graph.d.ts.map +1 -0
- package/dist/map/business-graph.js +122 -0
- package/dist/map/business-graph.js.map +1 -0
- package/dist/map/map-document-loader.d.ts +13 -0
- package/dist/map/map-document-loader.d.ts.map +1 -0
- package/dist/map/map-document-loader.js +86 -0
- package/dist/map/map-document-loader.js.map +1 -0
- package/dist/map/map-validator.d.ts +12 -0
- package/dist/map/map-validator.d.ts.map +1 -0
- package/dist/map/map-validator.js +322 -0
- package/dist/map/map-validator.js.map +1 -0
- package/dist/observations/observation-application.d.ts +23 -0
- package/dist/observations/observation-application.d.ts.map +1 -0
- package/dist/observations/observation-application.js +62 -0
- package/dist/observations/observation-application.js.map +1 -0
- package/dist/observations/observation-claim-manager.d.ts +17 -0
- package/dist/observations/observation-claim-manager.d.ts.map +1 -0
- package/dist/observations/observation-claim-manager.js +198 -0
- package/dist/observations/observation-claim-manager.js.map +1 -0
- package/dist/observations/observation-store.d.ts +43 -0
- package/dist/observations/observation-store.d.ts.map +1 -0
- package/dist/observations/observation-store.js +213 -0
- package/dist/observations/observation-store.js.map +1 -0
- package/dist/observations/repository-identity.d.ts +12 -0
- package/dist/observations/repository-identity.d.ts.map +1 -0
- package/dist/observations/repository-identity.js +108 -0
- package/dist/observations/repository-identity.js.map +1 -0
- package/dist/query/context-query-service.d.ts +15 -0
- package/dist/query/context-query-service.d.ts.map +1 -0
- package/dist/query/context-query-service.js +36 -0
- package/dist/query/context-query-service.js.map +1 -0
- package/dist/reconciliation/reconciliation-service.d.ts +10 -0
- package/dist/reconciliation/reconciliation-service.d.ts.map +1 -0
- package/dist/reconciliation/reconciliation-service.js +114 -0
- package/dist/reconciliation/reconciliation-service.js.map +1 -0
- package/dist/rendering/map-projector.d.ts +8 -0
- package/dist/rendering/map-projector.d.ts.map +1 -0
- package/dist/rendering/map-projector.js +386 -0
- package/dist/rendering/map-projector.js.map +1 -0
- package/dist/setup/managed-skill-installer.d.ts +60 -0
- package/dist/setup/managed-skill-installer.d.ts.map +1 -0
- package/dist/setup/managed-skill-installer.js +293 -0
- package/dist/setup/managed-skill-installer.js.map +1 -0
- package/dist/setup/package-identity.d.ts +6 -0
- package/dist/setup/package-identity.d.ts.map +1 -0
- package/dist/setup/package-identity.js +16 -0
- package/dist/setup/package-identity.js.map +1 -0
- package/dist/setup/package-upgrader.d.ts +10 -22
- package/dist/setup/package-upgrader.d.ts.map +1 -1
- package/dist/setup/package-upgrader.js +60 -76
- package/dist/setup/package-upgrader.js.map +1 -0
- package/docs/architecture.md +426 -0
- package/docs/evaluation.md +220 -174
- package/docs/index.md +27 -45
- package/docs/map-format.md +225 -0
- package/docs/observations.md +167 -0
- package/docs/product-contract.md +282 -165
- package/examples/commerce.yaml +204 -0
- package/package.json +31 -32
- package/.agents/skills/semantic-atlas/references/graph-patch.md +0 -190
- package/.agents/skills/semantic-atlas/references/product-feedback.md +0 -34
- package/.agents/skills/semantic-atlas/references/result-routing.md +0 -104
- package/.agents/skills/semantic-atlas/references/snapshot-bootstrap.md +0 -42
- package/.agents/skills/semantic-atlas-insights/SKILL.md +0 -55
- package/README.zh-CN.md +0 -296
- package/dist/business-flow/business-flow-derivation-service.d.ts +0 -11
- package/dist/business-flow/business-flow-derivation-service.d.ts.map +0 -1
- package/dist/business-flow/business-flow-derivation-service.js +0 -151
- package/dist/business-flow/business-flow-draft.d.ts +0 -16
- package/dist/business-flow/business-flow-draft.d.ts.map +0 -1
- package/dist/business-flow/business-flow-draft.js +0 -150
- package/dist/business-flow/framework-business-strategy.d.ts +0 -7
- package/dist/business-flow/framework-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/framework-business-strategy.js +0 -1
- package/dist/business-flow/strategies/bullmq-business-strategy.d.ts +0 -10
- package/dist/business-flow/strategies/bullmq-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/bullmq-business-strategy.js +0 -79
- package/dist/business-flow/strategies/called-operation-derivation.d.ts +0 -13
- package/dist/business-flow/strategies/called-operation-derivation.d.ts.map +0 -1
- package/dist/business-flow/strategies/called-operation-derivation.js +0 -32
- package/dist/business-flow/strategies/graphql-business-strategy.d.ts +0 -8
- package/dist/business-flow/strategies/graphql-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/graphql-business-strategy.js +0 -65
- package/dist/business-flow/strategies/nestjs-business-strategy.d.ts +0 -8
- package/dist/business-flow/strategies/nestjs-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/nestjs-business-strategy.js +0 -72
- package/dist/business-flow/strategies/strategy-helpers.d.ts +0 -32
- package/dist/business-flow/strategies/strategy-helpers.d.ts.map +0 -1
- package/dist/business-flow/strategies/strategy-helpers.js +0 -49
- package/dist/business-flow/strategies/typeorm-business-strategy.d.ts +0 -10
- package/dist/business-flow/strategies/typeorm-business-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/typeorm-business-strategy.js +0 -136
- package/dist/business-flow/strategies/verified-invariant-strategy.d.ts +0 -5
- package/dist/business-flow/strategies/verified-invariant-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/verified-invariant-strategy.js +0 -38
- package/dist/business-flow/strategies/verified-test-strategy.d.ts +0 -5
- package/dist/business-flow/strategies/verified-test-strategy.d.ts.map +0 -1
- package/dist/business-flow/strategies/verified-test-strategy.js +0 -26
- package/dist/business-flow/structural-flow-catalog.d.ts +0 -21
- package/dist/business-flow/structural-flow-catalog.d.ts.map +0 -1
- package/dist/business-flow/structural-flow-catalog.js +0 -125
- package/dist/business-flow/types.d.ts +0 -51
- package/dist/business-flow/types.d.ts.map +0 -1
- package/dist/business-flow/types.js +0 -1
- package/dist/cli/argument-parser.d.ts +0 -3
- package/dist/cli/argument-parser.d.ts.map +0 -1
- package/dist/cli/argument-parser.js +0 -200
- package/dist/cli/cli-application.d.ts +0 -39
- package/dist/cli/cli-application.d.ts.map +0 -1
- package/dist/cli/cli-application.js +0 -571
- package/dist/cli/cli-error.d.ts +0 -12
- package/dist/cli/cli-error.d.ts.map +0 -1
- package/dist/cli/cli-error.js +0 -44
- package/dist/cli/cli-presenter.d.ts +0 -14
- package/dist/cli/cli-presenter.d.ts.map +0 -1
- package/dist/cli/cli-presenter.js +0 -36
- package/dist/cli/insights-cli.d.ts +0 -6
- package/dist/cli/insights-cli.d.ts.map +0 -1
- package/dist/cli/insights-cli.js +0 -236
- package/dist/cli/main.d.ts +0 -3
- package/dist/cli/main.d.ts.map +0 -1
- package/dist/cli/main.js +0 -137
- package/dist/cli/standalone-cli.d.ts +0 -3
- package/dist/cli/standalone-cli.d.ts.map +0 -1
- package/dist/cli/standalone-cli.js +0 -104
- package/dist/cli/types.d.ts +0 -49
- package/dist/cli/types.d.ts.map +0 -1
- package/dist/cli/types.js +0 -1
- package/dist/cli/web-cli.d.ts +0 -9
- package/dist/cli/web-cli.d.ts.map +0 -1
- package/dist/cli/web-cli.js +0 -134
- package/dist/contracts/graph.d.ts +0 -266
- package/dist/contracts/graph.d.ts.map +0 -1
- package/dist/contracts/graph.js +0 -182
- package/dist/contracts/identifiers.d.ts +0 -4
- package/dist/contracts/identifiers.d.ts.map +0 -1
- package/dist/contracts/identifiers.js +0 -7
- package/dist/contracts/public-contracts.d.ts +0 -5
- package/dist/contracts/public-contracts.d.ts.map +0 -1
- package/dist/contracts/public-contracts.js +0 -4
- package/dist/evaluation/comparison.d.ts +0 -30
- package/dist/evaluation/comparison.d.ts.map +0 -1
- package/dist/evaluation/comparison.js +0 -108
- package/dist/evaluation/contracts.d.ts +0 -301
- package/dist/evaluation/contracts.d.ts.map +0 -1
- package/dist/evaluation/contracts.js +0 -413
- package/dist/graph/graph-store.d.ts +0 -55
- package/dist/graph/graph-store.d.ts.map +0 -1
- package/dist/graph/graph-store.js +0 -912
- package/dist/graph/types.d.ts +0 -189
- package/dist/graph/types.d.ts.map +0 -1
- package/dist/graph/types.js +0 -1
- package/dist/insights/contracts.d.ts +0 -266
- package/dist/insights/contracts.d.ts.map +0 -1
- package/dist/insights/contracts.js +0 -124
- package/dist/insights/insights-store.d.ts +0 -73
- package/dist/insights/insights-store.d.ts.map +0 -1
- package/dist/insights/insights-store.js +0 -246
- package/dist/knowledge/business-knowledge-service.d.ts +0 -24
- package/dist/knowledge/business-knowledge-service.d.ts.map +0 -1
- package/dist/knowledge/business-knowledge-service.js +0 -200
- package/dist/knowledge/graph-patch-conflict-error.d.ts +0 -8
- package/dist/knowledge/graph-patch-conflict-error.d.ts.map +0 -1
- package/dist/knowledge/graph-patch-conflict-error.js +0 -12
- package/dist/knowledge/structural-target-binding.d.ts +0 -14
- package/dist/knowledge/structural-target-binding.d.ts.map +0 -1
- package/dist/knowledge/structural-target-binding.js +0 -11
- package/dist/package-metadata.d.ts +0 -2
- package/dist/package-metadata.d.ts.map +0 -1
- package/dist/package-metadata.js +0 -9
- package/dist/repository/git-command.d.ts +0 -3
- package/dist/repository/git-command.d.ts.map +0 -1
- package/dist/repository/git-command.js +0 -25
- package/dist/repository/repository-inspector.d.ts +0 -8
- package/dist/repository/repository-inspector.d.ts.map +0 -1
- package/dist/repository/repository-inspector.js +0 -97
- package/dist/repository/repository-language-support.d.ts +0 -14
- package/dist/repository/repository-language-support.d.ts.map +0 -1
- package/dist/repository/repository-language-support.js +0 -64
- package/dist/repository/types.d.ts +0 -9
- package/dist/repository/types.d.ts.map +0 -1
- package/dist/repository/types.js +0 -1
- package/dist/runtime/sqlite-compatibility-process.d.ts +0 -8
- package/dist/runtime/sqlite-compatibility-process.d.ts.map +0 -1
- package/dist/runtime/sqlite-compatibility-process.js +0 -20
- package/dist/setup/skill-installer.d.ts +0 -20
- package/dist/setup/skill-installer.d.ts.map +0 -1
- package/dist/setup/skill-installer.js +0 -187
- package/dist/snapshots/repository-snapshot.d.ts +0 -4
- package/dist/snapshots/repository-snapshot.d.ts.map +0 -1
- package/dist/snapshots/repository-snapshot.js +0 -119
- package/dist/snapshots/types.d.ts +0 -30
- package/dist/snapshots/types.d.ts.map +0 -1
- package/dist/snapshots/types.js +0 -1
- package/dist/storage/atlas-database.d.ts +0 -25
- package/dist/storage/atlas-database.d.ts.map +0 -1
- package/dist/storage/atlas-database.js +0 -483
- package/dist/storage/snapshot-store.d.ts +0 -19
- package/dist/storage/snapshot-store.d.ts.map +0 -1
- package/dist/storage/snapshot-store.js +0 -74
- package/dist/structural-backend/codegraph-backend.d.ts +0 -57
- package/dist/structural-backend/codegraph-backend.d.ts.map +0 -1
- package/dist/structural-backend/codegraph-backend.js +0 -1230
- package/dist/structural-backend/codegraph-worker-client.d.ts +0 -5
- package/dist/structural-backend/codegraph-worker-client.d.ts.map +0 -1
- package/dist/structural-backend/codegraph-worker-client.js +0 -118
- package/dist/structural-backend/codegraph-worker-protocol.d.ts +0 -35
- package/dist/structural-backend/codegraph-worker-protocol.d.ts.map +0 -1
- package/dist/structural-backend/codegraph-worker-protocol.js +0 -1
- package/dist/structural-backend/codegraph-worker.d.ts +0 -2
- package/dist/structural-backend/codegraph-worker.d.ts.map +0 -1
- package/dist/structural-backend/codegraph-worker.js +0 -131
- package/dist/structural-backend/process-instance.d.ts +0 -18
- package/dist/structural-backend/process-instance.d.ts.map +0 -1
- package/dist/structural-backend/process-instance.js +0 -207
- package/dist/structural-backend/structural-fact-changes.d.ts +0 -7
- package/dist/structural-backend/structural-fact-changes.d.ts.map +0 -1
- package/dist/structural-backend/structural-fact-changes.js +0 -78
- package/dist/structural-backend/structural-projection-bootstrapper.d.ts +0 -10
- package/dist/structural-backend/structural-projection-bootstrapper.d.ts.map +0 -1
- package/dist/structural-backend/structural-projection-bootstrapper.js +0 -295
- package/dist/structural-backend/structural-publication.d.ts +0 -13
- package/dist/structural-backend/structural-publication.d.ts.map +0 -1
- package/dist/structural-backend/structural-publication.js +0 -255
- package/dist/structural-backend/structural-write-lock.d.ts +0 -8
- package/dist/structural-backend/structural-write-lock.d.ts.map +0 -1
- package/dist/structural-backend/structural-write-lock.js +0 -415
- package/dist/structural-backend/types.d.ts +0 -144
- package/dist/structural-backend/types.d.ts.map +0 -1
- package/dist/structural-backend/types.js +0 -11
- package/dist/web/application/atlas-read-service.d.ts +0 -27
- package/dist/web/application/atlas-read-service.d.ts.map +0 -1
- package/dist/web/application/atlas-read-service.js +0 -216
- package/dist/web/application/primary-repository-catalog.d.ts +0 -15
- package/dist/web/application/primary-repository-catalog.d.ts.map +0 -1
- package/dist/web/application/primary-repository-catalog.js +0 -202
- package/dist/web/application/types.d.ts +0 -41
- package/dist/web/application/types.d.ts.map +0 -1
- package/dist/web/application/types.js +0 -1
- package/dist/web/server/api-router.d.ts +0 -4
- package/dist/web/server/api-router.d.ts.map +0 -1
- package/dist/web/server/api-router.js +0 -151
- package/dist/web/server/local-web-server.d.ts +0 -12
- package/dist/web/server/local-web-server.d.ts.map +0 -1
- package/dist/web/server/local-web-server.js +0 -100
- package/dist/web-client/assets/index-DneaErDj.css +0 -1
- package/dist/web-client/assets/index-cze_4vtt.js +0 -2
- package/dist/web-client/assets/index-cze_4vtt.js.map +0 -1
- package/dist/web-client/index.html +0 -61
- package/dist/world/business-map-projector.d.ts +0 -14
- package/dist/world/business-map-projector.d.ts.map +0 -1
- package/dist/world/business-map-projector.js +0 -178
- package/dist/world/types.d.ts +0 -77
- package/dist/world/types.d.ts.map +0 -1
- package/dist/world/types.js +0 -1
- package/dist/world/world-graph-query.d.ts +0 -30
- package/dist/world/world-graph-query.d.ts.map +0 -1
- package/dist/world/world-graph-query.js +0 -252
- package/dist/world/world-model-service.d.ts +0 -21
- package/dist/world/world-model-service.d.ts.map +0 -1
- package/dist/world/world-model-service.js +0 -219
- package/dist/world/world-snapshot-store.d.ts +0 -41
- package/dist/world/world-snapshot-store.d.ts.map +0 -1
- package/dist/world/world-snapshot-store.js +0 -581
- package/docs/README.md +0 -30
- package/docs/architecture/codegraph-backend.md +0 -190
- package/docs/architecture/continuous-business-learning.md +0 -240
- package/docs/architecture/web-viewer.md +0 -225
- package/docs/contracts/cli-v1.md +0 -179
- package/docs/contracts/graph-model.md +0 -106
- package/docs/contracts/graph-patch-v1.md +0 -105
- package/docs/contracts/http-api-v1.md +0 -155
- package/docs/contracts/insights-v1.md +0 -84
- package/docs/log.md +0 -159
- package/docs/mindmaps/semantic-atlas-overview.drawio +0 -255
- package/docs/mindmaps/semantic-atlas-overview.png +0 -0
- package/docs/mindmaps/semantic-atlas-overview.zh-CN.drawio +0 -255
- package/docs/mindmaps/semantic-atlas-overview.zh-CN.png +0 -0
- package/schemas/cli-envelope-v1.schema.json +0 -1244
- package/schemas/evaluation-plan-v1.schema.json +0 -211
- package/schemas/evaluation-run-v1.schema.json +0 -659
- package/schemas/graph-patch-v1.schema.json +0 -392
- package/schemas/insights-envelope-v1.schema.json +0 -428
package/dist/world/types.d.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import type { StructuralFileChanges, StructuralIndexState, StructuralNode } from "../structural-backend/types.js";
|
|
2
|
-
import type { RepositorySnapshot } from "../snapshots/types.js";
|
|
3
|
-
export type WorldSnapshotStatus = "missing" | "building" | "current" | "failed";
|
|
4
|
-
export interface WorldSnapshotState {
|
|
5
|
-
readonly status: WorldSnapshotStatus;
|
|
6
|
-
readonly currentSnapshotId: string | null;
|
|
7
|
-
readonly targetSnapshotId: string | null;
|
|
8
|
-
readonly backendVersion: string | null;
|
|
9
|
-
readonly extractionVersion: number | null;
|
|
10
|
-
readonly failureMessage: string | null;
|
|
11
|
-
readonly startedAt: string | null;
|
|
12
|
-
readonly publishedAt: string | null;
|
|
13
|
-
readonly updatedAt: string;
|
|
14
|
-
}
|
|
15
|
-
export interface CurrentWorldSnapshot {
|
|
16
|
-
readonly publicationId: number;
|
|
17
|
-
readonly snapshot: RepositorySnapshot;
|
|
18
|
-
}
|
|
19
|
-
export interface StructuralLocator {
|
|
20
|
-
readonly structuralReference: string;
|
|
21
|
-
readonly file: string;
|
|
22
|
-
readonly qualifiedSymbol: string | null;
|
|
23
|
-
readonly structuralKind: string | null;
|
|
24
|
-
readonly range: {
|
|
25
|
-
readonly start: {
|
|
26
|
-
readonly line: number;
|
|
27
|
-
readonly column: number;
|
|
28
|
-
};
|
|
29
|
-
readonly end: {
|
|
30
|
-
readonly line: number;
|
|
31
|
-
readonly column: number;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
readonly backendLocator?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface EvidenceLocator extends StructuralLocator {
|
|
37
|
-
readonly contentHash: string;
|
|
38
|
-
}
|
|
39
|
-
export type StructuralTargetLocator = StructuralLocator;
|
|
40
|
-
export interface StructuralEvidenceResolver {
|
|
41
|
-
getNode(reference: string): StructuralNode | undefined;
|
|
42
|
-
findCandidates(locator: StructuralLocator): readonly StructuralNode[];
|
|
43
|
-
backendLocator(node: StructuralNode): string | undefined;
|
|
44
|
-
}
|
|
45
|
-
export interface IndexedSourceFile {
|
|
46
|
-
readonly path: string;
|
|
47
|
-
readonly contentHash: string;
|
|
48
|
-
}
|
|
49
|
-
export interface WorldWriteCoordinator {
|
|
50
|
-
withWorldWriteLock<T>(operation: (state: StructuralIndexState, resolver: StructuralEvidenceResolver) => Promise<T>): Promise<T>;
|
|
51
|
-
}
|
|
52
|
-
export interface WorldPublicationMetadata {
|
|
53
|
-
readonly fromSnapshotId: string | null;
|
|
54
|
-
readonly toSnapshotId: string;
|
|
55
|
-
readonly structural: StructuralFileChanges;
|
|
56
|
-
readonly staleAssertions: readonly string[];
|
|
57
|
-
}
|
|
58
|
-
export interface SemanticGraphChanges {
|
|
59
|
-
readonly fromSnapshotId: string;
|
|
60
|
-
readonly toSnapshotId: string;
|
|
61
|
-
readonly nodes: {
|
|
62
|
-
readonly added: readonly string[];
|
|
63
|
-
readonly changed: readonly string[];
|
|
64
|
-
readonly removed: readonly string[];
|
|
65
|
-
};
|
|
66
|
-
readonly relations: {
|
|
67
|
-
readonly added: readonly string[];
|
|
68
|
-
readonly changed: readonly string[];
|
|
69
|
-
readonly removed: readonly string[];
|
|
70
|
-
};
|
|
71
|
-
readonly staleAssertions: readonly string[];
|
|
72
|
-
}
|
|
73
|
-
export interface SemanticGraphChangeOptions {
|
|
74
|
-
readonly fromSnapshotId?: string;
|
|
75
|
-
readonly toSnapshotId?: string;
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/world/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhF,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC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AAE,CAAC;QACpC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;KACrC,CAAC;IACF,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC"}
|
package/dist/world/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { GitRepository } from "../repository/types.js";
|
|
2
|
-
import { GraphStore } from "../graph/graph-store.js";
|
|
3
|
-
import type { BusinessGraphView, BusinessGraphNode, BusinessMapView, GraphSearchResult, StructuralGraphNode } from "../graph/types.js";
|
|
4
|
-
import type { StructuralIndexBackend } from "../structural-backend/types.js";
|
|
5
|
-
import type { AtlasDatabaseAccess } from "../storage/atlas-database.js";
|
|
6
|
-
import type { SemanticGraphChangeOptions, SemanticGraphChanges } from "./types.js";
|
|
7
|
-
export interface WorldGraphQueryOptions {
|
|
8
|
-
readonly atlasAccess?: AtlasDatabaseAccess;
|
|
9
|
-
}
|
|
10
|
-
export declare class WorldGraphQuery implements Disposable {
|
|
11
|
-
#private;
|
|
12
|
-
constructor(repository: GitRepository, graph?: GraphStore, structural?: StructuralIndexBackend, options?: WorldGraphQueryOptions);
|
|
13
|
-
view(focusKey?: string): Promise<BusinessMapView | undefined>;
|
|
14
|
-
searchBusiness(query: string, options?: {
|
|
15
|
-
readonly limit?: number;
|
|
16
|
-
}): Promise<readonly GraphSearchResult<BusinessGraphNode>[]>;
|
|
17
|
-
searchCode(query: string, options?: {
|
|
18
|
-
readonly limit?: number;
|
|
19
|
-
}): Promise<readonly GraphSearchResult<StructuralGraphNode>[]>;
|
|
20
|
-
showBusiness(key: string): Promise<BusinessGraphView | undefined>;
|
|
21
|
-
changes(options?: SemanticGraphChangeOptions): SemanticGraphChanges | undefined;
|
|
22
|
-
close(): void;
|
|
23
|
-
[Symbol.dispose](): void;
|
|
24
|
-
private currentWorld;
|
|
25
|
-
private withCurrentWorld;
|
|
26
|
-
private getNode;
|
|
27
|
-
private businessAdjacency;
|
|
28
|
-
private structuralNode;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=world-graph-query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,EACjB,iBAAiB,EAEjB,eAAe,EAIf,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EACV,sBAAsB,EAEvB,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EACV,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAQpB,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,WAAW,CAAC,EAAE,mBAAmB,CAAC;CAC5C;AAED,qBAAa,eAAgB,YAAW,UAAU;;gBAQ9C,UAAU,EAAE,aAAa,EACzB,KAAK,CAAC,EAAE,UAAU,EAClB,UAAU,GAAE,sBAAmE,EAC/E,OAAO,GAAE,sBAA2B;IAUhC,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;IAQ7D,cAAc,CAClB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAO,GACxC,OAAO,CAAC,SAAS,iBAAiB,CAAC,iBAAiB,CAAC,EAAE,CAAC;IAcrD,UAAU,CACd,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAO,GACxC,OAAO,CAAC,SAAS,iBAAiB,CAAC,mBAAmB,CAAC,EAAE,CAAC;IAevD,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC;IAgBvE,OAAO,CAAC,OAAO,GAAE,0BAA+B,GAAG,oBAAoB,GAAG,SAAS;IAKnF,KAAK,IAAI,IAAI;IAMb,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;IAIxB,OAAO,CAAC,YAAY;YAKN,gBAAgB;YAgBhB,OAAO;YAWP,iBAAiB;YAmBjB,cAAc;CAgB7B"}
|
|
@@ -1,252 +0,0 @@
|
|
|
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 { GraphStore } from "../graph/graph-store.js";
|
|
54
|
-
import { CodeGraphStructuralBackend } from "../structural-backend/codegraph-backend.js";
|
|
55
|
-
import { BusinessMapProjector } from "./business-map-projector.js";
|
|
56
|
-
import { WorldSnapshotStore } from "./world-snapshot-store.js";
|
|
57
|
-
export class WorldGraphQuery {
|
|
58
|
-
#repository;
|
|
59
|
-
#graph;
|
|
60
|
-
#structural;
|
|
61
|
-
#ownsGraph;
|
|
62
|
-
#atlasAccess;
|
|
63
|
-
constructor(repository, graph, structural = new CodeGraphStructuralBackend(repository), options = {}) {
|
|
64
|
-
const dependencies = createDependencies(repository, graph, structural);
|
|
65
|
-
this.#repository = repository;
|
|
66
|
-
this.#graph = dependencies.graph;
|
|
67
|
-
this.#structural = dependencies.structural;
|
|
68
|
-
this.#ownsGraph = dependencies.ownsGraph;
|
|
69
|
-
this.#atlasAccess = options.atlasAccess ?? "read-write";
|
|
70
|
-
}
|
|
71
|
-
async view(focusKey) {
|
|
72
|
-
return this.withCurrentWorld(async (snapshot) => {
|
|
73
|
-
const nodes = this.#graph.listBusinessNodes(snapshot.snapshotId);
|
|
74
|
-
const relations = this.#graph.listBusinessRelations(snapshot.snapshotId);
|
|
75
|
-
return new BusinessMapProjector(nodes, relations).project(focusKey);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
async searchBusiness(query, options = {}) {
|
|
79
|
-
const terms = lexicalTerms(query);
|
|
80
|
-
if (terms.length === 0) {
|
|
81
|
-
return [];
|
|
82
|
-
}
|
|
83
|
-
return this.withCurrentWorld(async (snapshot) => {
|
|
84
|
-
const limit = requireSearchLimit(options.limit);
|
|
85
|
-
return this.#graph.search(query, { snapshotId: snapshot.snapshotId, limit })
|
|
86
|
-
.flatMap((result) => (result.node.domain === "business" ? [{ score: result.score, node: result.node }] : []));
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
async searchCode(query, options = {}) {
|
|
90
|
-
const terms = lexicalTerms(query);
|
|
91
|
-
if (terms.length === 0) {
|
|
92
|
-
return [];
|
|
93
|
-
}
|
|
94
|
-
return this.withCurrentWorld(async (snapshot) => {
|
|
95
|
-
const limit = requireSearchLimit(options.limit);
|
|
96
|
-
const results = await this.#structural.search({ query, limit });
|
|
97
|
-
return Promise.all(results.map(async (result, index) => ({
|
|
98
|
-
score: reciprocalRank(index),
|
|
99
|
-
node: await this.structuralNode(result.node, snapshot),
|
|
100
|
-
})));
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
async showBusiness(key) {
|
|
104
|
-
return this.withCurrentWorld(async (snapshot) => {
|
|
105
|
-
const node = this.#graph.getNode({ domain: "business", key }, snapshot.snapshotId);
|
|
106
|
-
if (node?.domain !== "business") {
|
|
107
|
-
return undefined;
|
|
108
|
-
}
|
|
109
|
-
return {
|
|
110
|
-
node,
|
|
111
|
-
relations: (await this.businessAdjacency({ domain: "business", key }, snapshot)).sort(compareNeighbors),
|
|
112
|
-
};
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
changes(options = {}) {
|
|
116
|
-
const env_1 = { stack: [], error: void 0, hasError: false };
|
|
117
|
-
try {
|
|
118
|
-
const store = __addDisposableResource(env_1, new WorldSnapshotStore(this.#repository), false);
|
|
119
|
-
return store.readSemanticChanges(options);
|
|
120
|
-
}
|
|
121
|
-
catch (e_1) {
|
|
122
|
-
env_1.error = e_1;
|
|
123
|
-
env_1.hasError = true;
|
|
124
|
-
}
|
|
125
|
-
finally {
|
|
126
|
-
__disposeResources(env_1);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
close() {
|
|
130
|
-
if (this.#ownsGraph) {
|
|
131
|
-
this.#graph.close();
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
[Symbol.dispose]() {
|
|
135
|
-
this.close();
|
|
136
|
-
}
|
|
137
|
-
currentWorld() {
|
|
138
|
-
const env_2 = { stack: [], error: void 0, hasError: false };
|
|
139
|
-
try {
|
|
140
|
-
const store = __addDisposableResource(env_2, new WorldSnapshotStore(this.#repository, { access: this.#atlasAccess }), false);
|
|
141
|
-
return store.requireCurrentWorld();
|
|
142
|
-
}
|
|
143
|
-
catch (e_2) {
|
|
144
|
-
env_2.error = e_2;
|
|
145
|
-
env_2.hasError = true;
|
|
146
|
-
}
|
|
147
|
-
finally {
|
|
148
|
-
__disposeResources(env_2);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
async withCurrentWorld(query) {
|
|
152
|
-
const currentWorld = this.currentWorld();
|
|
153
|
-
const snapshot = currentWorld.snapshot;
|
|
154
|
-
const result = await query(snapshot);
|
|
155
|
-
const verifiedWorld = this.currentWorld();
|
|
156
|
-
if (verifiedWorld.publicationId !== currentWorld.publicationId) {
|
|
157
|
-
throw new Error(`World publication changed from ${currentWorld.publicationId} ` +
|
|
158
|
-
`to ${verifiedWorld.publicationId} during the query`);
|
|
159
|
-
}
|
|
160
|
-
return result;
|
|
161
|
-
}
|
|
162
|
-
async getNode(reference, snapshot) {
|
|
163
|
-
if (reference.domain === "business") {
|
|
164
|
-
return this.#graph.getNode(reference, snapshot.snapshotId);
|
|
165
|
-
}
|
|
166
|
-
const node = await this.#structural.getNode({ id: reference.id });
|
|
167
|
-
return node === undefined ? undefined : this.structuralNode(node, snapshot);
|
|
168
|
-
}
|
|
169
|
-
async businessAdjacency(reference, snapshot) {
|
|
170
|
-
const result = [];
|
|
171
|
-
for (const relation of this.#graph.listBusinessRelations(snapshot.snapshotId)) {
|
|
172
|
-
const relationDirection = directionForRelation(reference, relation);
|
|
173
|
-
if (relationDirection === undefined) {
|
|
174
|
-
continue;
|
|
175
|
-
}
|
|
176
|
-
const otherReference = relationDirection === "outgoing" ? relation.to : relation.from;
|
|
177
|
-
const node = await this.getNode(otherReference, snapshot);
|
|
178
|
-
if (node !== undefined) {
|
|
179
|
-
result.push({ depth: 1, direction: relationDirection, relation, node });
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
return result;
|
|
183
|
-
}
|
|
184
|
-
async structuralNode(node, snapshot) {
|
|
185
|
-
return {
|
|
186
|
-
domain: "structural",
|
|
187
|
-
id: node.reference.id,
|
|
188
|
-
kind: node.kind,
|
|
189
|
-
label: node.name,
|
|
190
|
-
snapshotId: snapshot.snapshotId,
|
|
191
|
-
validity: "valid",
|
|
192
|
-
locations: node.virtual === true ? [] : [sourceLocation(node, snapshot)],
|
|
193
|
-
support: node.support,
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
function createDependencies(repository, graph, structural) {
|
|
198
|
-
return {
|
|
199
|
-
graph: graph ?? new GraphStore(repository),
|
|
200
|
-
structural,
|
|
201
|
-
ownsGraph: graph === undefined,
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
function sourceLocation(node, snapshot) {
|
|
205
|
-
return {
|
|
206
|
-
file: node.path,
|
|
207
|
-
range: node.range,
|
|
208
|
-
contentHash: contentHashFor(node.path, snapshot),
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
function contentHashFor(path, snapshot) {
|
|
212
|
-
const file = snapshot.files.find((candidate) => candidate.path === path);
|
|
213
|
-
if (file?.worktree === null || file?.worktree === undefined) {
|
|
214
|
-
throw new Error(`Structural source ${path} is absent from world snapshot ${snapshot.snapshotId}`);
|
|
215
|
-
}
|
|
216
|
-
return file.worktree.contentHash;
|
|
217
|
-
}
|
|
218
|
-
function directionForRelation(reference, relation) {
|
|
219
|
-
if (sameReference(reference, relation.from)) {
|
|
220
|
-
return "outgoing";
|
|
221
|
-
}
|
|
222
|
-
return sameReference(reference, relation.to) ? "incoming" : undefined;
|
|
223
|
-
}
|
|
224
|
-
function sameReference(left, right) {
|
|
225
|
-
return referenceIdentity(left) === referenceIdentity(right);
|
|
226
|
-
}
|
|
227
|
-
function referenceIdentity(reference) {
|
|
228
|
-
return reference.domain === "business"
|
|
229
|
-
? `business:${reference.key}`
|
|
230
|
-
: `structural:${reference.id}`;
|
|
231
|
-
}
|
|
232
|
-
function nodeIdentity(node) {
|
|
233
|
-
return node.domain === "business" ? `business:${node.key}` : `structural:${node.id}`;
|
|
234
|
-
}
|
|
235
|
-
function compareNeighbors(left, right) {
|
|
236
|
-
return left.depth - right.depth
|
|
237
|
-
|| left.relation.type.localeCompare(right.relation.type)
|
|
238
|
-
|| nodeIdentity(left.node).localeCompare(nodeIdentity(right.node));
|
|
239
|
-
}
|
|
240
|
-
function reciprocalRank(index) {
|
|
241
|
-
return 1 / (index + 1);
|
|
242
|
-
}
|
|
243
|
-
function lexicalTerms(query) {
|
|
244
|
-
return query.toLowerCase().match(/[\p{L}\p{N}_]+/gu) ?? [];
|
|
245
|
-
}
|
|
246
|
-
function requireSearchLimit(limit) {
|
|
247
|
-
const resolved = limit ?? 20;
|
|
248
|
-
if (!Number.isInteger(resolved) || resolved < 1) {
|
|
249
|
-
throw new Error("World graph search limit must be a positive integer");
|
|
250
|
-
}
|
|
251
|
-
return resolved;
|
|
252
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { GitRepository } from "../repository/types.js";
|
|
2
|
-
import type { StructuralBuildResult } from "../structural-backend/types.js";
|
|
3
|
-
import type { RepositorySnapshot } from "../snapshots/types.js";
|
|
4
|
-
import type { IndexedSourceFile, WorldSnapshotState } from "./types.js";
|
|
5
|
-
export interface PublishedWorldSnapshot {
|
|
6
|
-
readonly snapshotId: string;
|
|
7
|
-
readonly structural: StructuralBuildResult;
|
|
8
|
-
readonly staleAssertions: readonly string[];
|
|
9
|
-
}
|
|
10
|
-
export declare class WorldModelService {
|
|
11
|
-
#private;
|
|
12
|
-
readonly repository: GitRepository;
|
|
13
|
-
constructor(repository: GitRepository);
|
|
14
|
-
build(): Promise<PublishedWorldSnapshot>;
|
|
15
|
-
sync(): Promise<PublishedWorldSnapshot>;
|
|
16
|
-
state(): WorldSnapshotState;
|
|
17
|
-
currentSnapshotId(): string;
|
|
18
|
-
private publish;
|
|
19
|
-
}
|
|
20
|
-
export declare function worldPublicationMismatch(indexedSnapshot: RepositorySnapshot, publishableSnapshot: RepositorySnapshot, indexedSources: readonly IndexedSourceFile[]): string | null;
|
|
21
|
-
//# sourceMappingURL=world-model-service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,219 +0,0 @@
|
|
|
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 { createRepositorySnapshot } from "../snapshots/repository-snapshot.js";
|
|
54
|
-
import { isSupportedSource } from "../repository/repository-inspector.js";
|
|
55
|
-
import { CodeGraphStructuralBackend, } from "../structural-backend/codegraph-backend.js";
|
|
56
|
-
import { StructuralProjectionBootstrapper } from "../structural-backend/structural-projection-bootstrapper.js";
|
|
57
|
-
import { requiresBundledCodeGraphRuntime, runCodeGraphWorker, } from "../structural-backend/codegraph-worker-client.js";
|
|
58
|
-
import { WorldSnapshotStore } from "./world-snapshot-store.js";
|
|
59
|
-
export class WorldModelService {
|
|
60
|
-
repository;
|
|
61
|
-
#backend;
|
|
62
|
-
constructor(repository) {
|
|
63
|
-
this.repository = repository;
|
|
64
|
-
this.#backend = new CodeGraphStructuralBackend(repository);
|
|
65
|
-
}
|
|
66
|
-
async build() {
|
|
67
|
-
return this.publish("full");
|
|
68
|
-
}
|
|
69
|
-
async sync() {
|
|
70
|
-
return this.publish("incremental");
|
|
71
|
-
}
|
|
72
|
-
state() {
|
|
73
|
-
const env_1 = { stack: [], error: void 0, hasError: false };
|
|
74
|
-
try {
|
|
75
|
-
const store = __addDisposableResource(env_1, new WorldSnapshotStore(this.repository), false);
|
|
76
|
-
return store.readState();
|
|
77
|
-
}
|
|
78
|
-
catch (e_1) {
|
|
79
|
-
env_1.error = e_1;
|
|
80
|
-
env_1.hasError = true;
|
|
81
|
-
}
|
|
82
|
-
finally {
|
|
83
|
-
__disposeResources(env_1);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
currentSnapshotId() {
|
|
87
|
-
const env_2 = { stack: [], error: void 0, hasError: false };
|
|
88
|
-
try {
|
|
89
|
-
const store = __addDisposableResource(env_2, new WorldSnapshotStore(this.repository), false);
|
|
90
|
-
return store.requireCurrentSnapshot().snapshotId;
|
|
91
|
-
}
|
|
92
|
-
catch (e_2) {
|
|
93
|
-
env_2.error = e_2;
|
|
94
|
-
env_2.hasError = true;
|
|
95
|
-
}
|
|
96
|
-
finally {
|
|
97
|
-
__disposeResources(env_2);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
async publish(mode) {
|
|
101
|
-
if (requiresBundledCodeGraphRuntime()) {
|
|
102
|
-
return runCodeGraphWorker({
|
|
103
|
-
operation: mode === "full" ? "worldBuild" : "worldSync",
|
|
104
|
-
repository: this.repository,
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
let snapshot;
|
|
108
|
-
let staleAssertions = [];
|
|
109
|
-
let previousSnapshotId = null;
|
|
110
|
-
const hooks = {
|
|
111
|
-
onBuilding: async () => {
|
|
112
|
-
const env_3 = { stack: [], error: void 0, hasError: false };
|
|
113
|
-
try {
|
|
114
|
-
snapshot = await createRepositorySnapshot(this.repository);
|
|
115
|
-
const store = __addDisposableResource(env_3, new WorldSnapshotStore(this.repository), false);
|
|
116
|
-
previousSnapshotId = store.readState().currentSnapshotId;
|
|
117
|
-
store.begin(snapshot.snapshotId);
|
|
118
|
-
}
|
|
119
|
-
catch (e_3) {
|
|
120
|
-
env_3.error = e_3;
|
|
121
|
-
env_3.hasError = true;
|
|
122
|
-
}
|
|
123
|
-
finally {
|
|
124
|
-
__disposeResources(env_3);
|
|
125
|
-
}
|
|
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) => {
|
|
140
|
-
const env_4 = { stack: [], error: void 0, hasError: false };
|
|
141
|
-
try {
|
|
142
|
-
const indexedSnapshot = requireBuildSnapshot(snapshot);
|
|
143
|
-
const store = __addDisposableResource(env_4, new WorldSnapshotStore(this.repository), false);
|
|
144
|
-
staleAssertions = store.publish(indexedSnapshot, structural.backendVersion, structural.extractionVersion, resolver, {
|
|
145
|
-
fromSnapshotId: previousSnapshotId,
|
|
146
|
-
toSnapshotId: indexedSnapshot.snapshotId,
|
|
147
|
-
structural: structural.changes,
|
|
148
|
-
}).staleAssertions;
|
|
149
|
-
}
|
|
150
|
-
catch (e_4) {
|
|
151
|
-
env_4.error = e_4;
|
|
152
|
-
env_4.hasError = true;
|
|
153
|
-
}
|
|
154
|
-
finally {
|
|
155
|
-
__disposeResources(env_4);
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
fail: (error) => {
|
|
159
|
-
const env_5 = { stack: [], error: void 0, hasError: false };
|
|
160
|
-
try {
|
|
161
|
-
if (snapshot === undefined) {
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
const store = __addDisposableResource(env_5, new WorldSnapshotStore(this.repository), false);
|
|
165
|
-
store.fail(snapshot.snapshotId, error);
|
|
166
|
-
}
|
|
167
|
-
catch (e_5) {
|
|
168
|
-
env_5.error = e_5;
|
|
169
|
-
env_5.hasError = true;
|
|
170
|
-
}
|
|
171
|
-
finally {
|
|
172
|
-
__disposeResources(env_5);
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
};
|
|
176
|
-
const structural = await this.#backend.publishWorld(mode, hooks);
|
|
177
|
-
if (structural.completeness !== "complete") {
|
|
178
|
-
throw new Error(structural.diagnostics[0]?.message ?? "The structural index did not complete");
|
|
179
|
-
}
|
|
180
|
-
return {
|
|
181
|
-
snapshotId: requireBuildSnapshot(snapshot).snapshotId,
|
|
182
|
-
structural,
|
|
183
|
-
staleAssertions,
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
function requireBuildSnapshot(snapshot) {
|
|
188
|
-
if (snapshot === undefined) {
|
|
189
|
-
throw new Error("World publication did not capture a repository snapshot");
|
|
190
|
-
}
|
|
191
|
-
return snapshot;
|
|
192
|
-
}
|
|
193
|
-
export function worldPublicationMismatch(indexedSnapshot, publishableSnapshot, indexedSources) {
|
|
194
|
-
if (publishableSnapshot.snapshotId !== indexedSnapshot.snapshotId) {
|
|
195
|
-
return `indexed ${indexedSnapshot.snapshotId}, current ${publishableSnapshot.snapshotId}`;
|
|
196
|
-
}
|
|
197
|
-
const indexedHashes = new Map(indexedSources.map((file) => [file.path, file.contentHash]));
|
|
198
|
-
for (const file of indexedSnapshot.files) {
|
|
199
|
-
if (!isSupportedSource(file.path) || file.worktree === null) {
|
|
200
|
-
continue;
|
|
201
|
-
}
|
|
202
|
-
const indexedHash = indexedHashes.get(file.path);
|
|
203
|
-
if (indexedHash === undefined) {
|
|
204
|
-
return `snapshot source ${file.path} is missing from the structural index`;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
const snapshotHashes = new Map(indexedSnapshot.files.map((file) => [file.path, file.worktree?.contentHash]));
|
|
208
|
-
for (const file of indexedSources) {
|
|
209
|
-
if (!isSupportedSource(file.path)) {
|
|
210
|
-
continue;
|
|
211
|
-
}
|
|
212
|
-
const snapshotHash = snapshotHashes.get(file.path);
|
|
213
|
-
if (snapshotHash !== file.contentHash) {
|
|
214
|
-
return `indexed source ${file.path} has ${file.contentHash}, ` +
|
|
215
|
-
`snapshot has ${snapshotHash ?? "no content"}`;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
return null;
|
|
219
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { GitRepository } from "../repository/types.js";
|
|
2
|
-
import type { RepositorySnapshot } from "../snapshots/types.js";
|
|
3
|
-
import { type AtlasDatabaseOptions } from "../storage/atlas-database.js";
|
|
4
|
-
import type { CurrentWorldSnapshot, SemanticGraphChangeOptions, SemanticGraphChanges, StructuralEvidenceResolver, WorldPublicationMetadata, WorldSnapshotState } from "./types.js";
|
|
5
|
-
interface ReconciliationResult {
|
|
6
|
-
readonly staleAssertions: readonly string[];
|
|
7
|
-
}
|
|
8
|
-
export declare class WorldSnapshotStore implements Disposable {
|
|
9
|
-
#private;
|
|
10
|
-
constructor(repository: GitRepository, options?: AtlasDatabaseOptions);
|
|
11
|
-
readState(): WorldSnapshotState;
|
|
12
|
-
begin(targetSnapshotId: string): void;
|
|
13
|
-
publish(snapshot: RepositorySnapshot, backendVersion: string, extractionVersion: number | null, resolver: StructuralEvidenceResolver, changes: Omit<WorldPublicationMetadata, "staleAssertions">): ReconciliationResult;
|
|
14
|
-
fail(targetSnapshotId: string, error: unknown): void;
|
|
15
|
-
requireCurrentSnapshot(): RepositorySnapshot;
|
|
16
|
-
requireCurrentWorld(): CurrentWorldSnapshot;
|
|
17
|
-
readSemanticChanges(options?: SemanticGraphChangeOptions): SemanticGraphChanges | undefined;
|
|
18
|
-
private readCurrentPublication;
|
|
19
|
-
private readPublication;
|
|
20
|
-
private requirePublication;
|
|
21
|
-
private readPreviousPublication;
|
|
22
|
-
private findPublication;
|
|
23
|
-
private readSnapshot;
|
|
24
|
-
close(): void;
|
|
25
|
-
[Symbol.dispose](): void;
|
|
26
|
-
private get connection();
|
|
27
|
-
private transaction;
|
|
28
|
-
private requireBuildingSnapshot;
|
|
29
|
-
private saveSnapshot;
|
|
30
|
-
private rebindEvidence;
|
|
31
|
-
private assertionIdentity;
|
|
32
|
-
private rebindEvidenceTable;
|
|
33
|
-
private rebindStructuralRelationTargets;
|
|
34
|
-
private resolveEvidence;
|
|
35
|
-
private resolveStructuralLocator;
|
|
36
|
-
private refreshValidity;
|
|
37
|
-
private refreshValidityTable;
|
|
38
|
-
private saveWorldPublication;
|
|
39
|
-
}
|
|
40
|
-
export {};
|
|
41
|
-
//# sourceMappingURL=world-snapshot-store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AAChE,OAAO,EAAiB,KAAK,oBAAoB,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