semantic-atlas 0.3.0 → 0.4.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/README.md +27 -1
- package/README.zh-CN.md +24 -1
- package/dist/cli/bin.js +12 -5
- package/dist/cli/standalone-cli.d.ts.map +1 -1
- package/dist/cli/standalone-cli.js +8 -0
- package/dist/cli/web-cli.d.ts +9 -0
- package/dist/cli/web-cli.d.ts.map +1 -0
- package/dist/cli/web-cli.js +134 -0
- package/dist/graph/graph-store.d.ts +2 -2
- package/dist/graph/graph-store.d.ts.map +1 -1
- package/dist/graph/graph-store.js +2 -2
- package/dist/repository/repository-inspector.d.ts +1 -0
- package/dist/repository/repository-inspector.d.ts.map +1 -1
- package/dist/repository/repository-inspector.js +13 -0
- package/dist/storage/atlas-database.d.ts +7 -1
- package/dist/storage/atlas-database.d.ts.map +1 -1
- package/dist/storage/atlas-database.js +60 -10
- package/dist/web/application/atlas-read-service.d.ts +27 -0
- package/dist/web/application/atlas-read-service.d.ts.map +1 -0
- package/dist/web/application/atlas-read-service.js +216 -0
- package/dist/web/application/primary-repository-catalog.d.ts +15 -0
- package/dist/web/application/primary-repository-catalog.d.ts.map +1 -0
- package/dist/web/application/primary-repository-catalog.js +202 -0
- package/dist/web/application/types.d.ts +41 -0
- package/dist/web/application/types.d.ts.map +1 -0
- package/dist/web/application/types.js +1 -0
- package/dist/web/server/api-router.d.ts +4 -0
- package/dist/web/server/api-router.d.ts.map +1 -0
- package/dist/web/server/api-router.js +151 -0
- package/dist/web/server/local-web-server.d.ts +12 -0
- package/dist/web/server/local-web-server.d.ts.map +1 -0
- package/dist/web/server/local-web-server.js +100 -0
- package/dist/web-client/assets/index-DneaErDj.css +1 -0
- package/dist/web-client/assets/index-cze_4vtt.js +2 -0
- package/dist/web-client/assets/index-cze_4vtt.js.map +1 -0
- package/dist/web-client/index.html +61 -0
- package/dist/world/world-graph-query.d.ts +5 -1
- package/dist/world/world-graph-query.d.ts.map +1 -1
- package/dist/world/world-graph-query.js +4 -2
- package/dist/world/world-snapshot-store.d.ts +2 -1
- package/dist/world/world-snapshot-store.d.ts.map +1 -1
- package/dist/world/world-snapshot-store.js +2 -2
- package/docs/architecture/web-viewer.md +225 -0
- package/docs/contracts/cli-v1.md +16 -1
- package/docs/contracts/http-api-v1.md +155 -0
- package/docs/index.md +5 -0
- package/docs/log.md +79 -0
- package/docs/product-contract.md +31 -3
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -98,6 +98,8 @@ This workflow is delivered as one product:
|
|
|
98
98
|
- The **Semantic Atlas Insights Skill** supports a separate daily product review
|
|
99
99
|
and feedback-triage loop, keeping routine development context focused.
|
|
100
100
|
- The **`semantic-atlas` CLI** provides deterministic local JSON operations.
|
|
101
|
+
- The **desktop Web viewer** lets people browse the same established business
|
|
102
|
+
map without changing Atlas knowledge or reading source first.
|
|
101
103
|
- The structural analyzer remains an internal evidence provider. Its directory
|
|
102
104
|
graph, CLI, storage schema, and terminology do not become the business map.
|
|
103
105
|
|
|
@@ -163,6 +165,26 @@ Project commands write one versioned JSON envelope to standard output and keep
|
|
|
163
165
|
diagnostics on standard error. `setup`, `upgrade`, `-h`/`--help`, and `--version`
|
|
164
166
|
are repository-independent text commands.
|
|
165
167
|
|
|
168
|
+
## Browse the business map
|
|
169
|
+
|
|
170
|
+
Start the local desktop viewer from any directory:
|
|
171
|
+
|
|
172
|
+
```sh
|
|
173
|
+
semantic-atlas web
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
The command serves a bundled interface and versioned read-only HTTP API on
|
|
177
|
+
`127.0.0.1:4310`, then opens the default browser. Use `--no-open` to suppress
|
|
178
|
+
browser launch, `--port <n>` to select another loopback port, or `--repo <path>`
|
|
179
|
+
to select an eligible initial project.
|
|
180
|
+
|
|
181
|
+
The project rail contains only each repository's primary working tree when it
|
|
182
|
+
is currently on `main` or `master`. Linked worktrees and other branches never
|
|
183
|
+
appear. The viewer supports project selection, hierarchical business-map
|
|
184
|
+
navigation, business search, and node details with existing kind, certainty,
|
|
185
|
+
validity, relationships, and evidence. It cannot index, learn, modify source,
|
|
186
|
+
operate Git, or change Atlas data.
|
|
187
|
+
|
|
166
188
|
## Product insights
|
|
167
189
|
|
|
168
190
|
Normal work does not gain a new reporting step. When source confirmation shows
|
|
@@ -246,6 +268,7 @@ semantic-atlas setup
|
|
|
246
268
|
semantic-atlas upgrade
|
|
247
269
|
semantic-atlas -h | --help
|
|
248
270
|
semantic-atlas --version
|
|
271
|
+
semantic-atlas web [--repo <path>] [--port <n>] [--no-open]
|
|
249
272
|
|
|
250
273
|
semantic-atlas status [--repo <path>] [--pretty]
|
|
251
274
|
semantic-atlas index [--repo <path>] [--pretty]
|
|
@@ -265,7 +288,8 @@ semantic-atlas insights feedback update --stdin [--pretty]
|
|
|
265
288
|
Field-level behavior is defined by the versioned [CLI v1](docs/contracts/cli-v1.md)
|
|
266
289
|
and [GraphPatch v1](docs/contracts/graph-patch-v1.md) contracts. Product
|
|
267
290
|
observability and feedback behavior are defined by
|
|
268
|
-
[Insights v1](docs/contracts/insights-v1.md).
|
|
291
|
+
[Insights v1](docs/contracts/insights-v1.md). The viewer uses the loopback
|
|
292
|
+
[HTTP API v1](docs/contracts/http-api-v1.md).
|
|
269
293
|
|
|
270
294
|
## Develop
|
|
271
295
|
|
|
@@ -288,6 +312,8 @@ evidence rebinding, sibling bootstrap, and worktree-isolation gates.
|
|
|
288
312
|
- [Continuous business learning and semantic zoom](docs/architecture/continuous-business-learning.md)
|
|
289
313
|
- [Graph model](docs/contracts/graph-model.md)
|
|
290
314
|
- [CLI v1 contract](docs/contracts/cli-v1.md)
|
|
315
|
+
- [Desktop Web viewer](docs/architecture/web-viewer.md)
|
|
316
|
+
- [HTTP API v1 contract](docs/contracts/http-api-v1.md)
|
|
291
317
|
- [Insights v1 contract](docs/contracts/insights-v1.md)
|
|
292
318
|
- [Evaluation protocol](docs/evaluation.md)
|
|
293
319
|
|
package/README.zh-CN.md
CHANGED
|
@@ -90,6 +90,8 @@ status
|
|
|
90
90
|
- **Semantic Atlas Insights Skill** 承担独立的每日产品复盘和反馈分诊,保证
|
|
91
91
|
常规开发上下文保持聚焦。
|
|
92
92
|
- **`semantic-atlas` CLI** 提供确定性的本地 JSON 操作。
|
|
93
|
+
- **桌面 Web 查看器**让人可以浏览同一张已建立的业务地图,不需要先阅读源码,
|
|
94
|
+
也不会改变 Atlas 知识。
|
|
93
95
|
- 结构分析器只是内部证据来源,它的目录图、CLI、存储结构和术语不会变成
|
|
94
96
|
对外的业务地图。
|
|
95
97
|
|
|
@@ -149,6 +151,23 @@ semantic-atlas code search "CheckoutService" --limit 10
|
|
|
149
151
|
项目命令向标准输出写入一个带版本的 JSON 信封,诊断信息留在标准错误中。
|
|
150
152
|
`setup`、`upgrade`、`-h`/`--help` 和 `--version` 是不依赖仓库的文本命令。
|
|
151
153
|
|
|
154
|
+
## 浏览业务地图
|
|
155
|
+
|
|
156
|
+
在任意目录启动本地桌面查看器:
|
|
157
|
+
|
|
158
|
+
```sh
|
|
159
|
+
semantic-atlas web
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
命令会在 `127.0.0.1:4310` 提供打包内置的界面和带版本的只读 HTTP API,
|
|
163
|
+
然后打开默认浏览器。`--no-open` 可以关闭自动打开浏览器,`--port <n>` 可以
|
|
164
|
+
选择另一个 loopback 端口,`--repo <path>` 可以选择一个符合条件的初始项目。
|
|
165
|
+
|
|
166
|
+
项目栏只展示每个仓库当前位于 `main` 或 `master` 的主工作目录;linked
|
|
167
|
+
worktree 和其他分支不会出现。查看器支持项目选择、业务地图层级导航、业务
|
|
168
|
+
搜索,以及包含现有类型、确定性、有效性、关系和证据的节点详情。它不能执行
|
|
169
|
+
索引、学习、源码修改、Git 操作或 Atlas 数据变更。
|
|
170
|
+
|
|
152
171
|
## 产品洞察
|
|
153
172
|
|
|
154
173
|
正常开发不会多出一个报告步骤。只有源码确认 Atlas 确实阻塞或拖慢了任务时,
|
|
@@ -224,6 +243,7 @@ semantic-atlas setup
|
|
|
224
243
|
semantic-atlas upgrade
|
|
225
244
|
semantic-atlas -h | --help
|
|
226
245
|
semantic-atlas --version
|
|
246
|
+
semantic-atlas web [--repo <path>] [--port <n>] [--no-open]
|
|
227
247
|
|
|
228
248
|
semantic-atlas status [--repo <path>] [--pretty]
|
|
229
249
|
semantic-atlas index [--repo <path>] [--pretty]
|
|
@@ -242,7 +262,8 @@ semantic-atlas insights feedback update --stdin [--pretty]
|
|
|
242
262
|
|
|
243
263
|
字段级行为由带版本的 [CLI v1](docs/contracts/cli-v1.md)和
|
|
244
264
|
[GraphPatch v1](docs/contracts/graph-patch-v1.md)契约定义。产品洞察和反馈行为
|
|
245
|
-
由 [Insights v1](docs/contracts/insights-v1.md)
|
|
265
|
+
由 [Insights v1](docs/contracts/insights-v1.md) 契约定义。查看器使用 loopback
|
|
266
|
+
[HTTP API v1](docs/contracts/http-api-v1.md)。
|
|
246
267
|
|
|
247
268
|
## 开发
|
|
248
269
|
|
|
@@ -265,6 +286,8 @@ pnpm package:verify
|
|
|
265
286
|
- [持续业务学习与语义缩放](docs/architecture/continuous-business-learning.md)
|
|
266
287
|
- [图模型](docs/contracts/graph-model.md)
|
|
267
288
|
- [CLI v1 契约](docs/contracts/cli-v1.md)
|
|
289
|
+
- [桌面 Web 查看器](docs/architecture/web-viewer.md)
|
|
290
|
+
- [HTTP API v1 契约](docs/contracts/http-api-v1.md)
|
|
268
291
|
- [Insights v1 契约](docs/contracts/insights-v1.md)
|
|
269
292
|
- [评测协议](docs/evaluation.md)
|
|
270
293
|
|
package/dist/cli/bin.js
CHANGED
|
@@ -18,13 +18,20 @@ else if (requiresSqliteCompatibilityProcess({
|
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
20
|
const io = { stdin: process.stdin, stdout: process.stdout, stderr: process.stderr };
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
const { runWebCli } = await import("./web-cli.js");
|
|
22
|
+
const webExitCode = await runWebCli(arguments_, io, process.cwd());
|
|
23
|
+
if (webExitCode !== undefined) {
|
|
24
|
+
process.exitCode = webExitCode;
|
|
24
25
|
}
|
|
25
26
|
else {
|
|
26
|
-
const
|
|
27
|
-
|
|
27
|
+
const insightsExitCode = await runInsightsCli(arguments_, io);
|
|
28
|
+
if (insightsExitCode !== undefined) {
|
|
29
|
+
process.exitCode = insightsExitCode;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
const { runCli } = await import("./main.js");
|
|
33
|
+
process.exitCode = await runCli(arguments_, io, process.cwd());
|
|
34
|
+
}
|
|
28
35
|
}
|
|
29
36
|
}
|
|
30
37
|
async function runWithExperimentalSqlite(arguments_) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standalone-cli.d.ts","sourceRoot":"","sources":["../../src/cli/standalone-cli.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"standalone-cli.d.ts","sourceRoot":"","sources":["../../src/cli/standalone-cli.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAqCxC,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,EAAE,EAAE,KAAK,GACR,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CA6D7B"}
|
|
@@ -14,6 +14,9 @@ Project understanding:
|
|
|
14
14
|
changes [--from id] [--to id] Report semantic changes
|
|
15
15
|
feedback report --stdin Record confirmed product friction
|
|
16
16
|
|
|
17
|
+
Human browsing:
|
|
18
|
+
web [--repo path] [--port n] Start the local read-only desktop viewer
|
|
19
|
+
|
|
17
20
|
Installation and information:
|
|
18
21
|
insights summary [--period period] Summarize local Atlas product signals
|
|
19
22
|
insights feedback [options] List local Agent feedback reports
|
|
@@ -26,6 +29,11 @@ Installation and information:
|
|
|
26
29
|
Global project options:
|
|
27
30
|
--repo <path> Select a Git worktree (default: cwd)
|
|
28
31
|
--pretty Indent JSON project or insights output
|
|
32
|
+
|
|
33
|
+
Web options:
|
|
34
|
+
--port <n> Bind 127.0.0.1 on this port (default: 4310)
|
|
35
|
+
--no-open Do not open the default browser
|
|
36
|
+
--repo <path> Select an eligible initial project
|
|
29
37
|
`;
|
|
30
38
|
export async function runStandaloneCli(arguments_, io) {
|
|
31
39
|
const [command, ...rest] = arguments_;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CliIo } from "./types.js";
|
|
2
|
+
export interface ParsedWebArguments {
|
|
3
|
+
readonly initialRepositoryPath: string | undefined;
|
|
4
|
+
readonly port: number;
|
|
5
|
+
readonly openBrowser: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function parseWebArguments(arguments_: readonly string[], currentDirectory: string): ParsedWebArguments | undefined;
|
|
8
|
+
export declare function runWebCli(arguments_: readonly string[], io: CliIo, currentDirectory: string): Promise<number | undefined>;
|
|
9
|
+
//# sourceMappingURL=web-cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-cli.d.ts","sourceRoot":"","sources":["../../src/cli/web-cli.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAIxC,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,GAAG,SAAS,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,gBAAgB,EAAE,MAAM,GACvB,kBAAkB,GAAG,SAAS,CAiDhC;AAED,wBAAsB,SAAS,CAC7B,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,EAAE,EAAE,KAAK,EACT,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAqC7B"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import { resolve } from "node:path";
|
|
3
|
+
import { inspectGitRepository } from "../repository/repository-inspector.js";
|
|
4
|
+
import { AtlasReadService } from "../web/application/atlas-read-service.js";
|
|
5
|
+
import { startLocalWebServer } from "../web/server/local-web-server.js";
|
|
6
|
+
const DEFAULT_WEB_PORT = 4310;
|
|
7
|
+
export function parseWebArguments(arguments_, currentDirectory) {
|
|
8
|
+
const [command, ...options] = arguments_;
|
|
9
|
+
if (command !== "web") {
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
let initialRepositoryPath;
|
|
13
|
+
let port = DEFAULT_WEB_PORT;
|
|
14
|
+
let openBrowser = true;
|
|
15
|
+
let hasPort = false;
|
|
16
|
+
let hasNoOpen = false;
|
|
17
|
+
for (let index = 0; index < options.length; index += 1) {
|
|
18
|
+
const option = options[index];
|
|
19
|
+
if (option === "--repo") {
|
|
20
|
+
if (initialRepositoryPath !== undefined) {
|
|
21
|
+
throw new Error("--repo may only be provided once.");
|
|
22
|
+
}
|
|
23
|
+
const value = options[index + 1];
|
|
24
|
+
if (value === undefined || value.startsWith("-")) {
|
|
25
|
+
throw new Error("--repo requires a directory path.");
|
|
26
|
+
}
|
|
27
|
+
initialRepositoryPath = resolve(currentDirectory, value);
|
|
28
|
+
index += 1;
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
if (option === "--port") {
|
|
32
|
+
if (hasPort) {
|
|
33
|
+
throw new Error("--port may only be provided once.");
|
|
34
|
+
}
|
|
35
|
+
const value = Number(options[index + 1]);
|
|
36
|
+
if (!Number.isInteger(value) || value < 1 || value > 65_535) {
|
|
37
|
+
throw new Error("--port must be an integer from 1 through 65535.");
|
|
38
|
+
}
|
|
39
|
+
port = value;
|
|
40
|
+
hasPort = true;
|
|
41
|
+
index += 1;
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if (option === "--no-open") {
|
|
45
|
+
if (hasNoOpen) {
|
|
46
|
+
throw new Error("--no-open may only be provided once.");
|
|
47
|
+
}
|
|
48
|
+
openBrowser = false;
|
|
49
|
+
hasNoOpen = true;
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
throw new Error("semantic-atlas web accepts only --repo, --port, and --no-open.");
|
|
53
|
+
}
|
|
54
|
+
return { initialRepositoryPath, port, openBrowser };
|
|
55
|
+
}
|
|
56
|
+
export async function runWebCli(arguments_, io, currentDirectory) {
|
|
57
|
+
let invocation;
|
|
58
|
+
try {
|
|
59
|
+
invocation = parseWebArguments(arguments_, currentDirectory);
|
|
60
|
+
}
|
|
61
|
+
catch (error) {
|
|
62
|
+
io.stderr.write(`semantic-atlas web: ${errorMessage(error)}\n`);
|
|
63
|
+
return 2;
|
|
64
|
+
}
|
|
65
|
+
if (invocation === undefined) {
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
try {
|
|
69
|
+
const service = new AtlasReadService();
|
|
70
|
+
const initialProjectId = invocation.initialRepositoryPath === undefined
|
|
71
|
+
? undefined
|
|
72
|
+
: await resolveInitialProject(service, invocation.initialRepositoryPath);
|
|
73
|
+
const server = await startLocalWebServer({
|
|
74
|
+
readService: service,
|
|
75
|
+
port: invocation.port,
|
|
76
|
+
});
|
|
77
|
+
const url = initialProjectId === undefined
|
|
78
|
+
? server.url
|
|
79
|
+
: `${server.url}/?project=${encodeURIComponent(initialProjectId)}`;
|
|
80
|
+
io.stdout.write(`Semantic Atlas Web is available at ${url}\n`);
|
|
81
|
+
io.stdout.write("Press Ctrl+C to stop the local viewer.\n");
|
|
82
|
+
installShutdownHandlers(server.close);
|
|
83
|
+
if (invocation.openBrowser) {
|
|
84
|
+
openDefaultBrowser(url, (error) => {
|
|
85
|
+
io.stderr.write(`Could not open the default browser: ${errorMessage(error)}\n`);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
return 0;
|
|
89
|
+
}
|
|
90
|
+
catch (error) {
|
|
91
|
+
io.stderr.write(`Semantic Atlas Web failed: ${errorMessage(error)}\n`);
|
|
92
|
+
return 1;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
async function resolveInitialProject(service, repositoryPath) {
|
|
96
|
+
const repository = await inspectGitRepository(repositoryPath);
|
|
97
|
+
if (repository.gitDirectory !== repository.commonGitDirectory) {
|
|
98
|
+
throw new Error("--repo must resolve to a primary main or master working tree");
|
|
99
|
+
}
|
|
100
|
+
const project = (await service.listProjects()).find(({ id }) => id === repository.repositoryId);
|
|
101
|
+
if (project === undefined || project.root !== repository.worktreeRoot) {
|
|
102
|
+
throw new Error("--repo must resolve to an indexed primary main or master working tree");
|
|
103
|
+
}
|
|
104
|
+
return project.id;
|
|
105
|
+
}
|
|
106
|
+
function installShutdownHandlers(close) {
|
|
107
|
+
let closing = false;
|
|
108
|
+
const shutdown = () => {
|
|
109
|
+
if (closing)
|
|
110
|
+
return;
|
|
111
|
+
closing = true;
|
|
112
|
+
void close().finally(() => {
|
|
113
|
+
process.exitCode = 0;
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
process.once("SIGINT", shutdown);
|
|
117
|
+
process.once("SIGTERM", shutdown);
|
|
118
|
+
}
|
|
119
|
+
function openDefaultBrowser(url, onError) {
|
|
120
|
+
const command = process.platform === "darwin"
|
|
121
|
+
? { executable: "open", arguments: [url] }
|
|
122
|
+
: process.platform === "win32"
|
|
123
|
+
? { executable: "cmd", arguments: ["/c", "start", "", url] }
|
|
124
|
+
: { executable: "xdg-open", arguments: [url] };
|
|
125
|
+
const child = spawn(command.executable, command.arguments, {
|
|
126
|
+
detached: true,
|
|
127
|
+
stdio: "ignore",
|
|
128
|
+
});
|
|
129
|
+
child.once("error", onError);
|
|
130
|
+
child.unref();
|
|
131
|
+
}
|
|
132
|
+
function errorMessage(error) {
|
|
133
|
+
return error instanceof Error ? error.message : String(error);
|
|
134
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { GitRepository } from "../repository/types.js";
|
|
2
|
-
import { CURRENT_ATLAS_SCHEMA_VERSION } from "../storage/atlas-database.js";
|
|
2
|
+
import { CURRENT_ATLAS_SCHEMA_VERSION, type AtlasDatabaseOptions } from "../storage/atlas-database.js";
|
|
3
3
|
import type { BusinessGraphMutation, BusinessGraphNode, BusinessGraphRelation, Evidence, EvidenceOwner, GraphNeighbor, GraphNode, GraphNodeReference, GraphSearchOptions, GraphSearchResult, GraphTraversalOptions } from "./types.js";
|
|
4
4
|
export declare class GraphStore implements Disposable {
|
|
5
5
|
#private;
|
|
6
6
|
readonly databasePath: string;
|
|
7
|
-
constructor(repository: GitRepository);
|
|
7
|
+
constructor(repository: GitRepository, options?: AtlasDatabaseOptions);
|
|
8
8
|
get schemaVersion(): number;
|
|
9
9
|
reconcileSnapshot(snapshotId: string): void;
|
|
10
10
|
mutateBusinessGraph(mutation: BusinessGraphMutation): void;
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
|
@@ -7,8 +7,8 @@ export class GraphStore {
|
|
|
7
7
|
#atlasDatabase;
|
|
8
8
|
#repositoryId;
|
|
9
9
|
#gitDirectory;
|
|
10
|
-
constructor(repository) {
|
|
11
|
-
this.#atlasDatabase = new AtlasDatabase(repository);
|
|
10
|
+
constructor(repository, options = {}) {
|
|
11
|
+
this.#atlasDatabase = new AtlasDatabase(repository, options);
|
|
12
12
|
this.databasePath = this.#atlasDatabase.databasePath;
|
|
13
13
|
this.#repositoryId = repository.repositoryId;
|
|
14
14
|
this.#gitDirectory = repository.gitDirectory;
|
|
@@ -4,4 +4,5 @@ export declare function isTargetSource(path: string): boolean;
|
|
|
4
4
|
export declare function inspectGitRepository(startPath: string): Promise<GitRepository>;
|
|
5
5
|
export declare function discoverTargetSources(repository: GitRepository): Promise<string[]>;
|
|
6
6
|
export declare function readCurrentHead(repository: GitRepository): Promise<string>;
|
|
7
|
+
export declare function readCurrentBranch(repository: GitRepository): Promise<string | null>;
|
|
7
8
|
//# sourceMappingURL=repository-inspector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository-inspector.d.ts","sourceRoot":"","sources":["../../src/repository/repository-inspector.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AA4ChD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAMvD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAOpD;AAED,wBAAsB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAuBpF;AAED,wBAAsB,qBAAqB,CAAC,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAcxF;AAED,wBAAsB,eAAe,CAAC,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAEhF"}
|
|
1
|
+
{"version":3,"file":"repository-inspector.d.ts","sourceRoot":"","sources":["../../src/repository/repository-inspector.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AA4ChD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAMvD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAOpD;AAED,wBAAsB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAuBpF;AAED,wBAAsB,qBAAqB,CAAC,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAcxF;AAED,wBAAsB,eAAe,CAAC,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAEhF;AAED,wBAAsB,iBAAiB,CAAC,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAWzF"}
|
|
@@ -82,3 +82,16 @@ export async function discoverTargetSources(repository) {
|
|
|
82
82
|
export async function readCurrentHead(repository) {
|
|
83
83
|
return runGitText(repository.worktreeRoot, ["rev-parse", "--verify", "HEAD"]);
|
|
84
84
|
}
|
|
85
|
+
export async function readCurrentBranch(repository) {
|
|
86
|
+
try {
|
|
87
|
+
return await runGitText(repository.worktreeRoot, [
|
|
88
|
+
"symbolic-ref",
|
|
89
|
+
"--quiet",
|
|
90
|
+
"--short",
|
|
91
|
+
"HEAD",
|
|
92
|
+
]);
|
|
93
|
+
}
|
|
94
|
+
catch {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -2,18 +2,24 @@ import type { DatabaseSync as NodeDatabaseSync } from "node:sqlite";
|
|
|
2
2
|
import type { GitRepository } from "../repository/types.js";
|
|
3
3
|
export declare const CURRENT_ATLAS_SCHEMA_VERSION = 1;
|
|
4
4
|
export declare const SEMANTIC_ATLAS_HOME_ENVIRONMENT_VARIABLE = "SEMANTIC_ATLAS_HOME";
|
|
5
|
+
export type AtlasDatabaseAccess = "read-write" | "read-only";
|
|
6
|
+
export interface AtlasDatabaseOptions {
|
|
7
|
+
readonly access?: AtlasDatabaseAccess;
|
|
8
|
+
}
|
|
5
9
|
export declare class AtlasDatabase implements Disposable {
|
|
6
10
|
#private;
|
|
7
11
|
readonly databasePath: string;
|
|
8
12
|
readonly connection: NodeDatabaseSync;
|
|
9
|
-
constructor(repository: GitRepository);
|
|
13
|
+
constructor(repository: GitRepository, options?: AtlasDatabaseOptions);
|
|
10
14
|
get schemaVersion(): number;
|
|
11
15
|
close(): void;
|
|
12
16
|
[Symbol.dispose](): void;
|
|
13
17
|
private initializeSchema;
|
|
18
|
+
private requireCurrentSchema;
|
|
14
19
|
private registerRepository;
|
|
15
20
|
}
|
|
16
21
|
export declare function resolveAtlasHome(repository: GitRepository): string;
|
|
22
|
+
export declare function resolveExistingAtlasHome(): string | null;
|
|
17
23
|
export declare function resolveInsightsDatabasePath(): string;
|
|
18
24
|
export declare function resolveAtlasDatabasePath(repository: GitRepository): string;
|
|
19
25
|
//# sourceMappingURL=atlas-database.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atlas-database.d.ts","sourceRoot":"","sources":["../../src/storage/atlas-database.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,wCAAwC,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"atlas-database.d.ts","sourceRoot":"","sources":["../../src/storage/atlas-database.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,wCAAwC,wBAAwB,CAAC;AAS9E,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,WAAW,CAAC;AAE7D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,MAAM,CAAC,EAAE,mBAAmB,CAAC;CACvC;AAED,qBAAa,aAAc,YAAW,UAAU;;IAC9C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;gBAG1B,UAAU,EAAE,aAAa,EAAE,OAAO,GAAE,oBAAyB;IAuBzE,IAAI,aAAa,IAAI,MAAM,CAO1B;IAED,KAAK,IAAI,IAAI;IAQb,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;IAIxB,OAAO,CAAC,gBAAgB;IAuCxB,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,kBAAkB;CAqC3B;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,aAAa,GAAG,MAAM,CAIlE;AAED,wBAAgB,wBAAwB,IAAI,MAAM,GAAG,IAAI,CAWxD;AAcD,wBAAgB,2BAA2B,IAAI,MAAM,CAEpD;AAmBD,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,aAAa,GAAG,MAAM,CAQ1E"}
|
|
@@ -9,12 +9,21 @@ export class AtlasDatabase {
|
|
|
9
9
|
databasePath;
|
|
10
10
|
connection;
|
|
11
11
|
#closed = false;
|
|
12
|
-
constructor(repository) {
|
|
13
|
-
|
|
12
|
+
constructor(repository, options = {}) {
|
|
13
|
+
const access = options.access ?? "read-write";
|
|
14
|
+
this.databasePath = access === "read-only"
|
|
15
|
+
? resolveExistingAtlasDatabasePath(repository)
|
|
16
|
+
: resolveAtlasDatabasePath(repository);
|
|
14
17
|
const { DatabaseSync } = require("node:sqlite");
|
|
15
|
-
this.connection = new DatabaseSync(this.databasePath);
|
|
18
|
+
this.connection = new DatabaseSync(this.databasePath, { readOnly: access === "read-only" });
|
|
16
19
|
try {
|
|
17
|
-
this.connection.exec(
|
|
20
|
+
this.connection.exec(access === "read-only"
|
|
21
|
+
? "PRAGMA foreign_keys = ON; PRAGMA busy_timeout = 5000;"
|
|
22
|
+
: "PRAGMA foreign_keys = ON; PRAGMA journal_mode = WAL; PRAGMA busy_timeout = 5000;");
|
|
23
|
+
if (access === "read-only") {
|
|
24
|
+
this.requireCurrentSchema();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
18
27
|
this.initializeSchema();
|
|
19
28
|
this.registerRepository(repository);
|
|
20
29
|
}
|
|
@@ -76,6 +85,16 @@ export class AtlasDatabase {
|
|
|
76
85
|
throw error;
|
|
77
86
|
}
|
|
78
87
|
}
|
|
88
|
+
requireCurrentSchema() {
|
|
89
|
+
const atlasSchema = this.connection.prepare(`
|
|
90
|
+
SELECT name
|
|
91
|
+
FROM sqlite_schema
|
|
92
|
+
WHERE type = 'table' AND name = 'atlas_schema'
|
|
93
|
+
`).get();
|
|
94
|
+
if (atlasSchema === undefined || this.schemaVersion !== CURRENT_ATLAS_SCHEMA_VERSION) {
|
|
95
|
+
throw new Error(`The Atlas database is not a supported schema v${CURRENT_ATLAS_SCHEMA_VERSION} store`);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
79
98
|
registerRepository(repository) {
|
|
80
99
|
const timestamp = new Date().toISOString();
|
|
81
100
|
this.connection.exec("BEGIN IMMEDIATE");
|
|
@@ -112,28 +131,47 @@ export class AtlasDatabase {
|
|
|
112
131
|
}
|
|
113
132
|
export function resolveAtlasHome(repository) {
|
|
114
133
|
const realAtlasHome = resolveConfiguredAtlasHome();
|
|
134
|
+
requireAtlasHomeOutsideRepository(realAtlasHome, repository);
|
|
135
|
+
return realAtlasHome;
|
|
136
|
+
}
|
|
137
|
+
export function resolveExistingAtlasHome() {
|
|
138
|
+
const atlasHome = configuredAtlasHomePath();
|
|
139
|
+
try {
|
|
140
|
+
requireRealDirectory(atlasHome, "The Semantic Atlas home");
|
|
141
|
+
return realpathSync(atlasHome);
|
|
142
|
+
}
|
|
143
|
+
catch (error) {
|
|
144
|
+
if (error.code === "ENOENT") {
|
|
145
|
+
return null;
|
|
146
|
+
}
|
|
147
|
+
throw error;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function requireAtlasHomeOutsideRepository(realAtlasHome, repository) {
|
|
115
151
|
for (const worktreeRoot of repository.worktreeRoots) {
|
|
116
152
|
const realWorktreeRoot = realpathExistingPath(worktreeRoot);
|
|
117
153
|
if (realWorktreeRoot !== null && isPathInside(realAtlasHome, realWorktreeRoot)) {
|
|
118
154
|
throw new Error("The Semantic Atlas home must be outside every repository worktree");
|
|
119
155
|
}
|
|
120
156
|
}
|
|
121
|
-
return realAtlasHome;
|
|
122
157
|
}
|
|
123
158
|
export function resolveInsightsDatabasePath() {
|
|
124
159
|
return join(resolveConfiguredAtlasHome(), "insights.db");
|
|
125
160
|
}
|
|
126
161
|
function resolveConfiguredAtlasHome() {
|
|
127
|
-
const
|
|
128
|
-
if (configuredHome !== undefined && !isAbsolute(configuredHome)) {
|
|
129
|
-
throw new Error(`${SEMANTIC_ATLAS_HOME_ENVIRONMENT_VARIABLE} must be an absolute path`);
|
|
130
|
-
}
|
|
131
|
-
const atlasHome = resolve(configuredHome ?? join(homedir(), ".semantic-atlas"));
|
|
162
|
+
const atlasHome = configuredAtlasHomePath();
|
|
132
163
|
mkdirSync(atlasHome, { recursive: true, mode: 0o700 });
|
|
133
164
|
requireRealDirectory(atlasHome, "The Semantic Atlas home");
|
|
134
165
|
const realAtlasHome = realpathSync(atlasHome);
|
|
135
166
|
return realAtlasHome;
|
|
136
167
|
}
|
|
168
|
+
function configuredAtlasHomePath() {
|
|
169
|
+
const configuredHome = process.env[SEMANTIC_ATLAS_HOME_ENVIRONMENT_VARIABLE];
|
|
170
|
+
if (configuredHome !== undefined && !isAbsolute(configuredHome)) {
|
|
171
|
+
throw new Error(`${SEMANTIC_ATLAS_HOME_ENVIRONMENT_VARIABLE} must be an absolute path`);
|
|
172
|
+
}
|
|
173
|
+
return resolve(configuredHome ?? join(homedir(), ".semantic-atlas"));
|
|
174
|
+
}
|
|
137
175
|
export function resolveAtlasDatabasePath(repository) {
|
|
138
176
|
const atlasHome = resolveAtlasHome(repository);
|
|
139
177
|
const repositoriesDirectory = join(atlasHome, "repositories");
|
|
@@ -143,6 +181,18 @@ export function resolveAtlasDatabasePath(repository) {
|
|
|
143
181
|
requireRealDirectory(repositoryDirectory, "The repository Atlas directory");
|
|
144
182
|
return join(repositoryDirectory, "atlas.db");
|
|
145
183
|
}
|
|
184
|
+
function resolveExistingAtlasDatabasePath(repository) {
|
|
185
|
+
const atlasHome = resolveExistingAtlasHome();
|
|
186
|
+
if (atlasHome === null) {
|
|
187
|
+
throw new Error("The Semantic Atlas home does not exist");
|
|
188
|
+
}
|
|
189
|
+
requireAtlasHomeOutsideRepository(atlasHome, repository);
|
|
190
|
+
const repositoriesDirectory = join(atlasHome, "repositories");
|
|
191
|
+
const repositoryDirectory = join(repositoriesDirectory, repository.repositoryId);
|
|
192
|
+
requireRealDirectory(repositoriesDirectory, "The Semantic Atlas repositories directory");
|
|
193
|
+
requireRealDirectory(repositoryDirectory, "The repository Atlas directory");
|
|
194
|
+
return join(repositoryDirectory, "atlas.db");
|
|
195
|
+
}
|
|
146
196
|
function requireRealDirectory(path, label) {
|
|
147
197
|
const metadata = lstatSync(path);
|
|
148
198
|
if (!metadata.isDirectory() || metadata.isSymbolicLink()) {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PrimaryRepositoryCatalog } from "./primary-repository-catalog.js";
|
|
2
|
+
import type { WebBusinessMap, WebBusinessNode, WebBusinessSearch, WebProjectStatus, WebProjectSummary } from "./types.js";
|
|
3
|
+
export type AtlasReadErrorCode = "PROJECT_NOT_FOUND" | "BUSINESS_NODE_NOT_FOUND" | "ATLAS_STATE_UNAVAILABLE" | "PUBLICATION_CHANGED";
|
|
4
|
+
export declare class AtlasReadError extends Error {
|
|
5
|
+
readonly statusCode: 404 | 409;
|
|
6
|
+
readonly code: AtlasReadErrorCode;
|
|
7
|
+
constructor(statusCode: 404 | 409, code: AtlasReadErrorCode, message: string);
|
|
8
|
+
}
|
|
9
|
+
export interface AtlasReadOperations {
|
|
10
|
+
listProjects(): Promise<readonly WebProjectSummary[]>;
|
|
11
|
+
getStatus(repositoryId: string): Promise<WebProjectStatus>;
|
|
12
|
+
getMap(repositoryId: string, focusKey?: string): Promise<WebBusinessMap>;
|
|
13
|
+
searchBusiness(repositoryId: string, query: string, limit: number): Promise<WebBusinessSearch>;
|
|
14
|
+
getBusinessNode(repositoryId: string, businessKey: string): Promise<WebBusinessNode>;
|
|
15
|
+
}
|
|
16
|
+
export declare class AtlasReadService implements AtlasReadOperations {
|
|
17
|
+
#private;
|
|
18
|
+
constructor(catalog?: PrimaryRepositoryCatalog);
|
|
19
|
+
listProjects(): Promise<readonly WebProjectSummary[]>;
|
|
20
|
+
getStatus(repositoryId: string): Promise<WebProjectStatus>;
|
|
21
|
+
getMap(repositoryId: string, focusKey?: string): Promise<WebBusinessMap>;
|
|
22
|
+
searchBusiness(repositoryId: string, queryText: string, limit: number): Promise<WebBusinessSearch>;
|
|
23
|
+
getBusinessNode(repositoryId: string, businessKey: string): Promise<WebBusinessNode>;
|
|
24
|
+
private withPublishedWorld;
|
|
25
|
+
private withRepositoryRead;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=atlas-read-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"atlas-read-service.d.ts","sourceRoot":"","sources":["../../../src/web/application/atlas-read-service.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,wBAAwB,EAEzB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,kBAAkB,GAC1B,mBAAmB,GACnB,yBAAyB,GACzB,yBAAyB,GACzB,qBAAqB,CAAC;AAE1B,qBAAa,cAAe,SAAQ,KAAK;IAErC,QAAQ,CAAC,UAAU,EAAE,GAAG,GAAG,GAAG;IAC9B,QAAQ,CAAC,IAAI,EAAE,kBAAkB;gBADxB,UAAU,EAAE,GAAG,GAAG,GAAG,EACrB,IAAI,EAAE,kBAAkB,EACjC,OAAO,EAAE,MAAM;CAKlB;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,IAAI,OAAO,CAAC,SAAS,iBAAiB,EAAE,CAAC,CAAC;IACtD,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC3D,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACzE,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC/F,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CACtF;AAED,qBAAa,gBAAiB,YAAW,mBAAmB;;gBAI9C,OAAO,GAAE,wBAAyD;IAI9E,YAAY,IAAI,OAAO,CAAC,SAAS,iBAAiB,EAAE,CAAC;IAIrD,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA2C1D,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAcxE,cAAc,CACZ,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,iBAAiB,CAAC;IAQ7B,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAcpF,OAAO,CAAC,kBAAkB;YAsCZ,kBAAkB;CA2BjC"}
|