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
|
@@ -1,413 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
const relativeSourcePathSchema = z
|
|
3
|
-
.string()
|
|
4
|
-
.min(1)
|
|
5
|
-
.regex(/^(?!\/)(?!.*\\)(?!.*(?:^|\/)\.\.?(?:\/|$))(?!.*\/\/).+$/, "Expected a normalized repository-relative path");
|
|
6
|
-
const frameworkSchema = z.enum(["nestjs", "graphql", "typeorm", "bullmq"]);
|
|
7
|
-
const fixtureSchema = z.discriminatedUnion("kind", [
|
|
8
|
-
z.strictObject({
|
|
9
|
-
kind: z.literal("synthetic"),
|
|
10
|
-
repository: z.string().min(1),
|
|
11
|
-
revision: z.string().min(1),
|
|
12
|
-
}),
|
|
13
|
-
z.strictObject({
|
|
14
|
-
kind: z.literal("private"),
|
|
15
|
-
repositoryAlias: z.string().min(1),
|
|
16
|
-
revision: z.string().min(1),
|
|
17
|
-
}),
|
|
18
|
-
]);
|
|
19
|
-
const symbolReferenceSchema = z.strictObject({
|
|
20
|
-
file: relativeSourcePathSchema,
|
|
21
|
-
name: z.string().min(1),
|
|
22
|
-
});
|
|
23
|
-
export const evaluationCaseSchema = z
|
|
24
|
-
.strictObject({
|
|
25
|
-
id: z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),
|
|
26
|
-
title: z.string().min(1),
|
|
27
|
-
category: z.enum(["location", "dependency-impact"]),
|
|
28
|
-
frameworks: z
|
|
29
|
-
.array(frameworkSchema)
|
|
30
|
-
.min(1)
|
|
31
|
-
.refine((frameworks) => new Set(frameworks).size === frameworks.length, { message: "frameworks must be unique" }),
|
|
32
|
-
fixture: fixtureSchema,
|
|
33
|
-
prompt: z.string().min(1),
|
|
34
|
-
oracle: z.strictObject({
|
|
35
|
-
acceptanceCriteria: z.array(z.string().min(1)).min(1),
|
|
36
|
-
requiredFiles: z.array(relativeSourcePathSchema).min(1),
|
|
37
|
-
requiredSymbols: z.array(symbolReferenceSchema).min(1),
|
|
38
|
-
}),
|
|
39
|
-
})
|
|
40
|
-
.superRefine((evaluationCase, context) => {
|
|
41
|
-
const { acceptanceCriteria, requiredFiles, requiredSymbols } = evaluationCase.oracle;
|
|
42
|
-
addUniqueValueIssue(acceptanceCriteria, context, [
|
|
43
|
-
"oracle",
|
|
44
|
-
"acceptanceCriteria",
|
|
45
|
-
]);
|
|
46
|
-
addUniqueValueIssue(requiredFiles, context, ["oracle", "requiredFiles"]);
|
|
47
|
-
addUniqueValueIssue(requiredSymbols.map(toSymbolIdentity), context, ["oracle", "requiredSymbols"]);
|
|
48
|
-
const requiredFileSet = new Set(requiredFiles);
|
|
49
|
-
if (requiredSymbols.some((symbol) => !requiredFileSet.has(symbol.file))) {
|
|
50
|
-
context.addIssue({
|
|
51
|
-
code: "custom",
|
|
52
|
-
message: "Every required symbol file must also be a required file",
|
|
53
|
-
path: ["oracle", "requiredSymbols"],
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
export const evaluationPlanSchema = z
|
|
58
|
-
.strictObject({
|
|
59
|
-
schemaVersion: z.literal(1),
|
|
60
|
-
cases: z.array(evaluationCaseSchema).min(1),
|
|
61
|
-
})
|
|
62
|
-
.superRefine((plan, context) => {
|
|
63
|
-
addDuplicateIssues(plan.cases.map((evaluationCase) => evaluationCase.id), context, "cases");
|
|
64
|
-
});
|
|
65
|
-
export const baselineEvaluationPlanSchema = evaluationPlanSchema.superRefine((plan, context) => {
|
|
66
|
-
const locationCount = plan.cases.filter((evaluationCase) => evaluationCase.category === "location").length;
|
|
67
|
-
const impactCount = plan.cases.filter((evaluationCase) => evaluationCase.category === "dependency-impact").length;
|
|
68
|
-
if (locationCount !== 6 || impactCount !== 6) {
|
|
69
|
-
context.addIssue({
|
|
70
|
-
code: "custom",
|
|
71
|
-
message: "The baseline must contain six location and six dependency-impact cases",
|
|
72
|
-
path: ["cases"],
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
const coveredFrameworks = new Set(plan.cases.flatMap((evaluationCase) => evaluationCase.frameworks));
|
|
76
|
-
for (const framework of frameworkSchema.options) {
|
|
77
|
-
if (!coveredFrameworks.has(framework)) {
|
|
78
|
-
context.addIssue({
|
|
79
|
-
code: "custom",
|
|
80
|
-
message: `The baseline must cover ${framework}`,
|
|
81
|
-
path: ["cases"],
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
if (plan.cases.some((evaluationCase) => evaluationCase.fixture.kind !== "synthetic")) {
|
|
86
|
-
context.addIssue({
|
|
87
|
-
code: "custom",
|
|
88
|
-
message: "The published baseline may contain only synthetic fixtures",
|
|
89
|
-
path: ["cases"],
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
const sourceOpenSchema = z.strictObject({
|
|
94
|
-
sequence: z.number().int().positive(),
|
|
95
|
-
commandSequence: z.number().int().positive().optional(),
|
|
96
|
-
exitCode: z.number().int().optional(),
|
|
97
|
-
file: relativeSourcePathSchema,
|
|
98
|
-
sourceTokens: z.number().int().nonnegative(),
|
|
99
|
-
});
|
|
100
|
-
const atlasCallSchema = z.strictObject({
|
|
101
|
-
sequence: z.number().int().positive(),
|
|
102
|
-
command: z.string().min(1),
|
|
103
|
-
commandSequence: z.number().int().positive().optional(),
|
|
104
|
-
exitCode: z.number().int().optional(),
|
|
105
|
-
output: z.string().min(1).optional(),
|
|
106
|
-
});
|
|
107
|
-
const atlasHandlingSchema = z.strictObject({
|
|
108
|
-
sequence: z.number().int().positive(),
|
|
109
|
-
classification: z.enum([
|
|
110
|
-
"stale",
|
|
111
|
-
"hypothesis",
|
|
112
|
-
"unknown",
|
|
113
|
-
"unsupported",
|
|
114
|
-
"partial",
|
|
115
|
-
"insufficient",
|
|
116
|
-
]),
|
|
117
|
-
action: z.string().min(1),
|
|
118
|
-
});
|
|
119
|
-
const skillLoadSchema = z.strictObject({
|
|
120
|
-
sequence: z.number().int().positive(),
|
|
121
|
-
file: relativeSourcePathSchema.regex(/^\.agents\/skills\/semantic-atlas\/(?:SKILL\.md|references\/[a-z0-9-]+\.md)$/u),
|
|
122
|
-
});
|
|
123
|
-
const knowledgeCaptureOutcomeSchema = z.enum([
|
|
124
|
-
"persist",
|
|
125
|
-
"reuse",
|
|
126
|
-
"transient",
|
|
127
|
-
"unverified",
|
|
128
|
-
]);
|
|
129
|
-
export const knowledgeCaptureDecisionSchema = z.strictObject({
|
|
130
|
-
outcome: knowledgeCaptureOutcomeSchema,
|
|
131
|
-
summary: z.string().min(1),
|
|
132
|
-
});
|
|
133
|
-
export const knowledgeCaptureAdjudicationSchema = z.strictObject({
|
|
134
|
-
outcome: knowledgeCaptureOutcomeSchema,
|
|
135
|
-
correct: z.boolean(),
|
|
136
|
-
notes: z.string().min(1),
|
|
137
|
-
});
|
|
138
|
-
const skillDiscoverySchema = z.strictObject({
|
|
139
|
-
delivery: z.literal("repository"),
|
|
140
|
-
promptInjection: z.literal(false),
|
|
141
|
-
mainSkillLoaded: z.literal(true),
|
|
142
|
-
statusBeforeSource: z.literal(true),
|
|
143
|
-
mapBeforeSource: z.literal(true),
|
|
144
|
-
decisiveSourceRead: z.literal(true),
|
|
145
|
-
decisiveSourceFiles: z.array(relativeSourcePathSchema).min(1),
|
|
146
|
-
knowledgeCaptureDecision: knowledgeCaptureDecisionSchema,
|
|
147
|
-
conditionalReferences: z.strictObject({
|
|
148
|
-
snapshotBootstrap: z.discriminatedUnion("outcome", [
|
|
149
|
-
z.strictObject({ outcome: z.literal("not-required") }),
|
|
150
|
-
z.strictObject({
|
|
151
|
-
outcome: z.literal("loaded-after-trigger"),
|
|
152
|
-
triggerCommandSequence: z.number().int().positive(),
|
|
153
|
-
loadCommandSequence: z.number().int().positive(),
|
|
154
|
-
}),
|
|
155
|
-
]),
|
|
156
|
-
resultRouting: z.discriminatedUnion("outcome", [
|
|
157
|
-
z.strictObject({ outcome: z.literal("not-required") }),
|
|
158
|
-
z.strictObject({
|
|
159
|
-
outcome: z.literal("loaded-after-trigger"),
|
|
160
|
-
triggerCommandSequence: z.number().int().positive(),
|
|
161
|
-
loadCommandSequence: z.number().int().positive(),
|
|
162
|
-
}),
|
|
163
|
-
]),
|
|
164
|
-
graphPatch: z.discriminatedUnion("outcome", [
|
|
165
|
-
z.strictObject({ outcome: z.literal("not-loaded") }),
|
|
166
|
-
z.strictObject({
|
|
167
|
-
outcome: z.literal("loaded-after-source"),
|
|
168
|
-
sourceCommandSequence: z.number().int().positive(),
|
|
169
|
-
loadCommandSequence: z.number().int().positive(),
|
|
170
|
-
}),
|
|
171
|
-
]),
|
|
172
|
-
}),
|
|
173
|
-
});
|
|
174
|
-
export const evaluationFailureClassificationSchema = z.enum([
|
|
175
|
-
"missed-dependency",
|
|
176
|
-
"incorrect-answer",
|
|
177
|
-
"stale-knowledge",
|
|
178
|
-
"hypothesis-mishandled",
|
|
179
|
-
"unknown-boundary-mishandled",
|
|
180
|
-
"unsupported-source",
|
|
181
|
-
"protocol-violation",
|
|
182
|
-
]);
|
|
183
|
-
const sha256Schema = z.string().regex(/^[a-f0-9]{64}$/);
|
|
184
|
-
export const RETAINED_FRESH_AGENT_COMMAND_AUDIT_POLICY = "fresh-agent-shell-allowlist-v4";
|
|
185
|
-
export const FRESH_AGENT_COMMAND_AUDIT_POLICY = "fresh-agent-shell-allowlist-v5";
|
|
186
|
-
export const freshAgentCommandAuditPolicySchema = z.enum([
|
|
187
|
-
RETAINED_FRESH_AGENT_COMMAND_AUDIT_POLICY,
|
|
188
|
-
FRESH_AGENT_COMMAND_AUDIT_POLICY,
|
|
189
|
-
]);
|
|
190
|
-
export const evaluationRunSchema = z
|
|
191
|
-
.strictObject({
|
|
192
|
-
schemaVersion: z.literal(1),
|
|
193
|
-
runId: z.string().min(1),
|
|
194
|
-
caseId: z.string().min(1),
|
|
195
|
-
mode: z.enum(["no-atlas", "atlas"]),
|
|
196
|
-
fixtureRevision: z.string().min(1),
|
|
197
|
-
agent: z.strictObject({
|
|
198
|
-
product: z.string().min(1),
|
|
199
|
-
model: z.string().min(1),
|
|
200
|
-
freshContext: z.literal(true),
|
|
201
|
-
}),
|
|
202
|
-
protocol: z.strictObject({
|
|
203
|
-
runnerVersion: z.string().min(1),
|
|
204
|
-
fixtureCommit: z.string().regex(/^[a-f0-9]{40}$/),
|
|
205
|
-
instructionsHash: sha256Schema,
|
|
206
|
-
toolPolicyHash: sha256Schema,
|
|
207
|
-
oracleHidden: z.literal(true),
|
|
208
|
-
commandAuditPassed: z.literal(true),
|
|
209
|
-
commandAudit: z.strictObject({
|
|
210
|
-
policy: freshAgentCommandAuditPolicySchema,
|
|
211
|
-
commands: z.array(z.string().min(1)).min(1),
|
|
212
|
-
}),
|
|
213
|
-
skillDiscovery: skillDiscoverySchema.optional(),
|
|
214
|
-
}),
|
|
215
|
-
startedAt: z.iso.datetime(),
|
|
216
|
-
finishedAt: z.iso.datetime(),
|
|
217
|
-
observations: z.strictObject({
|
|
218
|
-
sourceTokenMethod: z.string().min(1),
|
|
219
|
-
sourceOpens: z.array(sourceOpenSchema).min(1),
|
|
220
|
-
atlasCalls: z.array(atlasCallSchema),
|
|
221
|
-
atlasHandling: z.array(atlasHandlingSchema),
|
|
222
|
-
skillLoads: z.array(skillLoadSchema).optional(),
|
|
223
|
-
}),
|
|
224
|
-
answer: z.strictObject({
|
|
225
|
-
response: z.string().min(1),
|
|
226
|
-
reportedFiles: z.array(relativeSourcePathSchema),
|
|
227
|
-
reportedSymbols: z.array(symbolReferenceSchema),
|
|
228
|
-
knowledgeCaptureDecision: knowledgeCaptureDecisionSchema.optional(),
|
|
229
|
-
}),
|
|
230
|
-
adjudication: z.strictObject({
|
|
231
|
-
correct: z.boolean(),
|
|
232
|
-
notes: z.string().min(1),
|
|
233
|
-
failureClassifications: z.array(evaluationFailureClassificationSchema),
|
|
234
|
-
knowledgeCaptureDecision: knowledgeCaptureAdjudicationSchema.optional(),
|
|
235
|
-
}),
|
|
236
|
-
})
|
|
237
|
-
.superRefine((run, context) => {
|
|
238
|
-
if (run.mode === "no-atlas" && run.observations.atlasCalls.length > 0) {
|
|
239
|
-
context.addIssue({
|
|
240
|
-
code: "custom",
|
|
241
|
-
message: "A no-atlas run cannot contain Atlas calls",
|
|
242
|
-
path: ["observations", "atlasCalls"],
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
if (run.mode === "atlas" && run.observations.atlasCalls.length === 0) {
|
|
246
|
-
context.addIssue({
|
|
247
|
-
code: "custom",
|
|
248
|
-
message: "An Atlas-assisted run must contain at least one Atlas call",
|
|
249
|
-
path: ["observations", "atlasCalls"],
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
if (run.mode === "no-atlas" && run.observations.atlasHandling.length > 0) {
|
|
253
|
-
context.addIssue({
|
|
254
|
-
code: "custom",
|
|
255
|
-
message: "A no-atlas run cannot contain Atlas result handling",
|
|
256
|
-
path: ["observations", "atlasHandling"],
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
if (run.protocol.runnerVersion === "fresh-agent-runner-v5") {
|
|
260
|
-
const skillLoads = run.observations.skillLoads ?? [];
|
|
261
|
-
if (run.answer.knowledgeCaptureDecision === undefined) {
|
|
262
|
-
context.addIssue({
|
|
263
|
-
code: "custom",
|
|
264
|
-
message: "A discovery run must retain a structured knowledge-capture decision",
|
|
265
|
-
path: ["answer", "knowledgeCaptureDecision"],
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
const captureAdjudication = run.adjudication.knowledgeCaptureDecision;
|
|
269
|
-
if (captureAdjudication === undefined) {
|
|
270
|
-
context.addIssue({
|
|
271
|
-
code: "custom",
|
|
272
|
-
message: "A discovery run must retain independent knowledge-capture adjudication",
|
|
273
|
-
path: ["adjudication", "knowledgeCaptureDecision"],
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
else {
|
|
277
|
-
if (run.answer.knowledgeCaptureDecision !== undefined
|
|
278
|
-
&& captureAdjudication.outcome !== run.answer.knowledgeCaptureDecision.outcome) {
|
|
279
|
-
context.addIssue({
|
|
280
|
-
code: "custom",
|
|
281
|
-
message: "The knowledge-capture adjudication must evaluate the answer decision",
|
|
282
|
-
path: ["adjudication", "knowledgeCaptureDecision", "outcome"],
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
if (!captureAdjudication.correct && run.adjudication.correct) {
|
|
286
|
-
context.addIssue({
|
|
287
|
-
code: "custom",
|
|
288
|
-
message: "An incorrect knowledge-capture decision makes the run incorrect",
|
|
289
|
-
path: ["adjudication", "correct"],
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
if (!captureAdjudication.correct
|
|
293
|
-
&& !run.adjudication.failureClassifications.includes("protocol-violation")) {
|
|
294
|
-
context.addIssue({
|
|
295
|
-
code: "custom",
|
|
296
|
-
message: "An incorrect knowledge-capture decision requires protocol-violation",
|
|
297
|
-
path: ["adjudication", "failureClassifications"],
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
if (run.observations.sourceOpens.some((sourceOpen) => (sourceOpen.commandSequence === undefined || sourceOpen.exitCode !== 0))) {
|
|
302
|
-
context.addIssue({
|
|
303
|
-
code: "custom",
|
|
304
|
-
message: "A discovery run must bind every source observation to a successful command",
|
|
305
|
-
path: ["observations", "sourceOpens"],
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
if (run.mode === "atlas" && (run.protocol.skillDiscovery === undefined
|
|
309
|
-
|| skillLoads[0]?.file !== ".agents/skills/semantic-atlas/SKILL.md")) {
|
|
310
|
-
context.addIssue({
|
|
311
|
-
code: "custom",
|
|
312
|
-
message: "A discovery run must load and audit the repository Semantic Atlas Skill",
|
|
313
|
-
path: ["protocol", "skillDiscovery"],
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
if (run.mode === "atlas" && run.observations.atlasCalls.some((call) => (call.commandSequence === undefined
|
|
317
|
-
|| call.exitCode === undefined
|
|
318
|
-
|| call.output === undefined))) {
|
|
319
|
-
context.addIssue({
|
|
320
|
-
code: "custom",
|
|
321
|
-
message: "A discovery run must retain replayable Atlas command envelopes",
|
|
322
|
-
path: ["observations", "atlasCalls"],
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
|
-
if (run.mode === "no-atlas" && (run.protocol.skillDiscovery !== undefined || skillLoads.length > 0)) {
|
|
326
|
-
context.addIssue({
|
|
327
|
-
code: "custom",
|
|
328
|
-
message: "A no-atlas run cannot load or audit the candidate Skill",
|
|
329
|
-
path: ["observations", "skillLoads"],
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
if (run.adjudication.correct === (run.adjudication.failureClassifications.length > 0)) {
|
|
334
|
-
context.addIssue({
|
|
335
|
-
code: "custom",
|
|
336
|
-
message: "Incorrect answers require failure classifications and correct answers require none",
|
|
337
|
-
path: ["adjudication", "failureClassifications"],
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
if (Date.parse(run.finishedAt) < Date.parse(run.startedAt)) {
|
|
341
|
-
context.addIssue({
|
|
342
|
-
code: "custom",
|
|
343
|
-
message: "finishedAt must not precede startedAt",
|
|
344
|
-
path: ["finishedAt"],
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
addSequenceIssues(run.observations.sourceOpens, context, "sourceOpens");
|
|
348
|
-
addSequenceIssues(run.observations.atlasCalls, context, "atlasCalls");
|
|
349
|
-
addSequenceIssues(run.observations.atlasHandling, context, "atlasHandling");
|
|
350
|
-
addSequenceIssues(run.observations.skillLoads ?? [], context, "skillLoads");
|
|
351
|
-
});
|
|
352
|
-
export function summarizeEvaluationRun(rawCase, rawRun) {
|
|
353
|
-
const evaluationCase = evaluationCaseSchema.parse(rawCase);
|
|
354
|
-
const run = evaluationRunSchema.parse(rawRun);
|
|
355
|
-
if (run.caseId !== evaluationCase.id) {
|
|
356
|
-
throw new Error(`Run case ${run.caseId} does not match evaluation case ${evaluationCase.id}`);
|
|
357
|
-
}
|
|
358
|
-
if (run.fixtureRevision !== evaluationCase.fixture.revision) {
|
|
359
|
-
throw new Error(`Run fixture revision ${run.fixtureRevision} does not match ${evaluationCase.fixture.revision}`);
|
|
360
|
-
}
|
|
361
|
-
const reportedFiles = new Set(run.answer.reportedFiles);
|
|
362
|
-
const reportedSymbols = new Set(run.answer.reportedSymbols.map(toSymbolIdentity));
|
|
363
|
-
const openedFiles = new Set(run.observations.sourceOpens.map((sourceOpen) => sourceOpen.file));
|
|
364
|
-
return {
|
|
365
|
-
caseId: evaluationCase.id,
|
|
366
|
-
runId: run.runId,
|
|
367
|
-
mode: run.mode,
|
|
368
|
-
correct: run.adjudication.correct,
|
|
369
|
-
requiredFileRecall: recall(evaluationCase.oracle.requiredFiles, reportedFiles, (file) => file),
|
|
370
|
-
requiredSymbolRecall: recall(evaluationCase.oracle.requiredSymbols, reportedSymbols, toSymbolIdentity),
|
|
371
|
-
openedFileCount: openedFiles.size,
|
|
372
|
-
sourceTokens: run.observations.sourceOpens.reduce((total, sourceOpen) => total + sourceOpen.sourceTokens, 0),
|
|
373
|
-
atlasCallCount: run.observations.atlasCalls.length,
|
|
374
|
-
atlasHandlingCount: run.observations.atlasHandling.length,
|
|
375
|
-
failureClassifications: [...run.adjudication.failureClassifications],
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
function recall(required, reported, key) {
|
|
379
|
-
const recalled = required.filter((value) => reported.has(key(value))).length;
|
|
380
|
-
return recalled / required.length;
|
|
381
|
-
}
|
|
382
|
-
function toSymbolIdentity(symbol) {
|
|
383
|
-
return `${symbol.file}#${symbol.name}`;
|
|
384
|
-
}
|
|
385
|
-
function addDuplicateIssues(values, context, path) {
|
|
386
|
-
if (new Set(values).size !== values.length) {
|
|
387
|
-
context.addIssue({
|
|
388
|
-
code: "custom",
|
|
389
|
-
message: `${path} must have unique identifiers`,
|
|
390
|
-
path: [path],
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
function addUniqueValueIssue(values, context, path) {
|
|
395
|
-
if (new Set(values).size !== values.length) {
|
|
396
|
-
context.addIssue({
|
|
397
|
-
code: "custom",
|
|
398
|
-
message: "Values must be unique",
|
|
399
|
-
path,
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
function addSequenceIssues(events, context, path) {
|
|
404
|
-
for (const [index, event] of events.entries()) {
|
|
405
|
-
if (index > 0 && event.sequence <= events[index - 1].sequence) {
|
|
406
|
-
context.addIssue({
|
|
407
|
-
code: "custom",
|
|
408
|
-
message: `${path} sequence values must be strictly increasing`,
|
|
409
|
-
path: ["observations", path, index, "sequence"],
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { GitRepository } from "../repository/types.js";
|
|
2
|
-
import { CURRENT_ATLAS_SCHEMA_VERSION, type AtlasDatabaseOptions } from "../storage/atlas-database.js";
|
|
3
|
-
import type { BusinessGraphMutation, BusinessGraphNode, BusinessGraphRelation, Evidence, EvidenceOwner, GraphNeighbor, GraphNode, GraphNodeReference, GraphSearchOptions, GraphSearchResult, GraphTraversalOptions } from "./types.js";
|
|
4
|
-
export declare class GraphStore implements Disposable {
|
|
5
|
-
#private;
|
|
6
|
-
readonly databasePath: string;
|
|
7
|
-
constructor(repository: GitRepository, options?: AtlasDatabaseOptions);
|
|
8
|
-
get schemaVersion(): number;
|
|
9
|
-
reconcileSnapshot(snapshotId: string): void;
|
|
10
|
-
mutateBusinessGraph(mutation: BusinessGraphMutation): void;
|
|
11
|
-
getNode(reference: GraphNodeReference, snapshotId: string): GraphNode | undefined;
|
|
12
|
-
getEvidence(owner: EvidenceOwner): readonly Evidence[];
|
|
13
|
-
listBusinessRelations(snapshotId: string): readonly BusinessGraphRelation[];
|
|
14
|
-
listBusinessNodes(snapshotId: string): readonly BusinessGraphNode[];
|
|
15
|
-
listBusinessRoots(snapshotId: string): readonly BusinessGraphNode[];
|
|
16
|
-
traverse(start: GraphNodeReference, options: GraphTraversalOptions): readonly GraphNeighbor[];
|
|
17
|
-
search(query: string, options: GraphSearchOptions): readonly GraphSearchResult[];
|
|
18
|
-
close(): void;
|
|
19
|
-
[Symbol.dispose](): void;
|
|
20
|
-
private get database();
|
|
21
|
-
private transaction;
|
|
22
|
-
private validateBusinessMutation;
|
|
23
|
-
private validateBusinessRelation;
|
|
24
|
-
private validateBusinessHierarchy;
|
|
25
|
-
private validateLocation;
|
|
26
|
-
private requireSnapshot;
|
|
27
|
-
private upsertBusinessNode;
|
|
28
|
-
private upsertBusinessRelation;
|
|
29
|
-
private storeBusinessRelation;
|
|
30
|
-
private removeBusinessNode;
|
|
31
|
-
private removeBusinessRelation;
|
|
32
|
-
private insertNodeEvidence;
|
|
33
|
-
private insertRelationEvidence;
|
|
34
|
-
private insertEvidenceBinding;
|
|
35
|
-
private insertStructuralTargetBinding;
|
|
36
|
-
private requireEvidence;
|
|
37
|
-
private currentSnapshotId;
|
|
38
|
-
private refreshAllBusinessValidity;
|
|
39
|
-
private reconcileEvidenceBindings;
|
|
40
|
-
private reconcileEvidenceBindingTable;
|
|
41
|
-
private refreshBusinessValidity;
|
|
42
|
-
private readBusinessNode;
|
|
43
|
-
private readNodeEvidence;
|
|
44
|
-
private readNodeEvidenceRows;
|
|
45
|
-
private readRelationEvidence;
|
|
46
|
-
private readRelationEvidenceRows;
|
|
47
|
-
private readBusinessRelations;
|
|
48
|
-
private relationFromRow;
|
|
49
|
-
private readBusinessAdjacency;
|
|
50
|
-
private findBusinessRelation;
|
|
51
|
-
private findBusinessNodeId;
|
|
52
|
-
private requireBusinessNodeId;
|
|
53
|
-
}
|
|
54
|
-
export { CURRENT_ATLAS_SCHEMA_VERSION };
|
|
55
|
-
//# sourceMappingURL=graph-store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graph-store.d.ts","sourceRoot":"","sources":["../../src/graph/graph-store.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAEL,4BAA4B,EAC5B,KAAK,oBAAoB,EAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAEV,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EAKrB,QAAQ,EACR,aAAa,EACb,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EAEjB,qBAAqB,EAGtB,MAAM,YAAY,CAAC;AA0DpB,qBAAa,UAAW,YAAW,UAAU;;IAC3C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;gBAKlB,UAAU,EAAE,aAAa,EAAE,OAAO,GAAE,oBAAyB;IAOzE,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAS3C,mBAAmB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI;IAsB1D,OAAO,CAAC,SAAS,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAOjF,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,QAAQ,EAAE;IAWtD,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,qBAAqB,EAAE;IAK3E,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,iBAAiB,EAAE;IAYnE,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,iBAAiB,EAAE;IAoBnE,QAAQ,CACN,KAAK,EAAE,kBAAkB,EACzB,OAAO,EAAE,qBAAqB,GAC7B,SAAS,aAAa,EAAE;IA0D3B,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,SAAS,iBAAiB,EAAE;IA0ChF,KAAK,IAAI,IAAI;IAIb,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;IAIxB,OAAO,KAAK,QAAQ,GAEnB;IAED,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,wBAAwB;IAwChC,OAAO,CAAC,wBAAwB;IAgBhC,OAAO,CAAC,yBAAyB;IA4CjC,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,kBAAkB;IAmE1B,OAAO,CAAC,sBAAsB;IAgC9B,OAAO,CAAC,qBAAqB;IA8E7B,OAAO,CAAC,kBAAkB;IAkB1B,OAAO,CAAC,sBAAsB;IAY9B,OAAO,CAAC,kBAAkB;IA6C1B,OAAO,CAAC,sBAAsB;IA6C9B,OAAO,CAAC,qBAAqB;IAkC7B,OAAO,CAAC,6BAA6B;IAoDrC,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,iBAAiB;IAYzB,OAAO,CAAC,0BAA0B;IAYlC,OAAO,CAAC,yBAAyB;IAejC,OAAO,CAAC,6BAA6B;IA0DrC,OAAO,CAAC,uBAAuB;IA+D/B,OAAO,CAAC,gBAAgB;IAuCxB,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,oBAAoB;IA2B5B,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,wBAAwB;IA2BhC,OAAO,CAAC,qBAAqB;IA2B7B,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,qBAAqB;IAkC7B,OAAO,CAAC,oBAAoB;IAiC5B,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,qBAAqB;CAO9B;AA2ED,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
|