semantic-atlas 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/semantic-atlas/SKILL.md +2 -2
- package/.agents/skills/semantic-atlas/references/snapshot-bootstrap.md +5 -1
- package/README.md +15 -14
- package/README.zh-CN.md +15 -14
- package/dist/cli/cli-application.d.ts.map +1 -1
- package/dist/cli/cli-application.js +5 -5
- package/dist/graph/graph-store.d.ts +6 -0
- package/dist/graph/graph-store.d.ts.map +1 -1
- package/dist/graph/graph-store.js +261 -114
- package/dist/storage/atlas-database.d.ts +6 -2
- package/dist/storage/atlas-database.d.ts.map +1 -1
- package/dist/storage/atlas-database.js +388 -514
- package/dist/storage/snapshot-store.d.ts.map +1 -1
- package/dist/storage/snapshot-store.js +7 -10
- package/dist/structural-backend/codegraph-backend.d.ts +4 -1
- package/dist/structural-backend/codegraph-backend.d.ts.map +1 -1
- package/dist/structural-backend/codegraph-backend.js +10 -4
- package/dist/structural-backend/structural-projection-bootstrapper.d.ts +10 -0
- package/dist/structural-backend/structural-projection-bootstrapper.d.ts.map +1 -0
- package/dist/structural-backend/structural-projection-bootstrapper.js +295 -0
- package/dist/structural-backend/structural-publication.d.ts +1 -0
- package/dist/structural-backend/structural-publication.d.ts.map +1 -1
- package/dist/structural-backend/structural-publication.js +5 -2
- package/dist/world/world-model-service.d.ts.map +1 -1
- package/dist/world/world-model-service.js +14 -6
- package/dist/world/world-snapshot-store.d.ts.map +1 -1
- package/dist/world/world-snapshot-store.js +92 -66
- package/docs/architecture/codegraph-backend.md +26 -29
- package/docs/contracts/cli-v1.md +2 -1
- package/docs/contracts/graph-model.md +2 -2
- package/docs/product-contract.md +20 -17
- package/package.json +1 -1
|
@@ -21,8 +21,8 @@ and structured GraphPatch input; it does not interpret natural-language tasks.
|
|
|
21
21
|
that worktree or pass its absolute path with `--repo <path>`, and confirm the
|
|
22
22
|
response `repository.root` is the intended worktree.
|
|
23
23
|
2. Run one Atlas CLI command at a time and wait for its complete response. The
|
|
24
|
-
worktree
|
|
25
|
-
boundary.
|
|
24
|
+
current worktree publication and repository-wide knowledge transaction form
|
|
25
|
+
a serialized evidence boundary.
|
|
26
26
|
3. Start with `semantic-atlas status` before broad source discovery. Read the
|
|
27
27
|
versioned envelope, `data.freshness`, snapshot, warnings, and
|
|
28
28
|
`data.backend.completeness` by stable fields and codes.
|
|
@@ -8,7 +8,11 @@ worktree.
|
|
|
8
8
|
## Publish structural state
|
|
9
9
|
|
|
10
10
|
1. For `missing`, `stale`, failed, or incomplete state, run
|
|
11
|
-
`semantic-atlas index` and inspect the returned envelope.
|
|
11
|
+
`semantic-atlas index` and inspect the returned envelope. In a new Git
|
|
12
|
+
worktree, this command automatically restores a compatible sibling
|
|
13
|
+
CodeGraph projection and incrementally synchronizes it; no separate
|
|
14
|
+
initialization command is needed. When no candidate is compatible, the same
|
|
15
|
+
command performs the initial full index.
|
|
12
16
|
2. Run `semantic-atlas status` again. Continue with Atlas only when freshness is
|
|
13
17
|
`current` and backend completeness is `complete`.
|
|
14
18
|
3. Run `semantic-atlas map roots`. Structural `Module` roots are valid initial
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Semantic Atlas gives coding agents one local map that joins two kinds of project
|
|
|
20
20
|
- **Structural evidence** from TypeScript and JavaScript: files, symbols, relations, framework entry points, and unresolved boundaries.
|
|
21
21
|
- **Agent-verified business knowledge**: capabilities, scenarios, operations, interfaces, data, rules, tests, and the evidence that supports them.
|
|
22
22
|
|
|
23
|
-
The `semantic-atlas` CLI provides deterministic, versioned JSON operations. The packaged Codex Skill teaches an agent when to query, when to return to source, and when verified knowledge should be retained.
|
|
23
|
+
The `semantic-atlas` CLI provides deterministic, versioned JSON operations. The packaged Codex Skill teaches an agent when to query, when to return to source, and when verified knowledge should be retained.
|
|
24
24
|
|
|
25
25
|
> **Query first. Confirm in source. Learn only what the evidence proves.**
|
|
26
26
|
|
|
@@ -32,14 +32,12 @@ Source code remains authoritative. Atlas is a revision-aware projection that mak
|
|
|
32
32
|
- **Spend less source context.** Use graph evidence to choose a bounded source seed set, then read only the code needed to decide the task.
|
|
33
33
|
- **Keep knowledge honest.** Evidence is tied to a snapshot; changed or missing evidence becomes visibly stale instead of silently remaining current.
|
|
34
34
|
- **Preserve uncertainty.** Dynamic dispatch, reflection, unsupported structure, and unresolved targets stay explicit and route the agent back to source.
|
|
35
|
-
- **Leave the project untouched.**
|
|
35
|
+
- **Leave the project untouched.** Durable knowledge stays under `~/.semantic-atlas`; only a disposable CodeGraph projection enters the worktree's ignored `.atlas/` directory. Tracked source and configuration are not rewritten.
|
|
36
36
|
|
|
37
37
|
## One project world map
|
|
38
38
|
|
|
39
39
|

|
|
40
40
|
|
|
41
|
-
The overview is an editable draw.io mind map: [open the English source](docs/mindmaps/semantic-atlas-overview.drawio). The [Simplified Chinese source](docs/mindmaps/semantic-atlas-overview.zh-CN.drawio) is maintained alongside its localized image.
|
|
42
|
-
|
|
43
41
|
## Quick start
|
|
44
42
|
|
|
45
43
|
Semantic Atlas supports Node.js 22.12 through 24 and Git worktrees containing TypeScript or JavaScript.
|
|
@@ -61,7 +59,7 @@ Install the Skill from the repository's current `main` branch:
|
|
|
61
59
|
$skill-installer Install semantic-atlas from https://github.com/lzj960515/semantic-atlas/tree/main/.agents/skills/semantic-atlas
|
|
62
60
|
```
|
|
63
61
|
|
|
64
|
-
Codex can then select `$semantic-atlas` from the task description, or you can invoke it explicitly.
|
|
62
|
+
Codex can then select `$semantic-atlas` from the task description, or you can invoke it explicitly.
|
|
65
63
|
|
|
66
64
|
### Run the first query
|
|
67
65
|
|
|
@@ -88,6 +86,8 @@ Every command writes one versioned JSON envelope to standard output. Diagnostics
|
|
|
88
86
|
|
|
89
87
|
This loop grows the business map one verified capability at a time. It does not attempt to convert the whole repository into speculative documentation.
|
|
90
88
|
|
|
89
|
+
When `index` runs for a newly created Git worktree, Atlas automatically copies a compatible sibling CodeGraph projection and performs an incremental sync. Agents do not run a separate initialization command; a full index is used only when no compatible sibling projection is available.
|
|
90
|
+
|
|
91
91
|
## Measured results
|
|
92
92
|
|
|
93
93
|
### Frozen comparative evaluation
|
|
@@ -106,15 +106,15 @@ The gate was declared before collection and all 61 routed uncertainty events wer
|
|
|
106
106
|
|
|
107
107
|
These are fixture-scoped comparative results. They do **not** establish universal business accuracy, performance on every repository, or total model-token savings; the token metric counts observed source input under `tiktoken-o200k_base-v1`.
|
|
108
108
|
|
|
109
|
-
### Public
|
|
109
|
+
### Public workflow validation
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
An isolated TypeScript project was used to validate the public installation path with the registry-installed CLI and the Skill from this repository:
|
|
112
112
|
|
|
113
|
-
- A first fresh agent completed `missing → index → query → source confirmation → learn
|
|
114
|
-
- A second fresh agent discovered and reused
|
|
115
|
-
- The target revision and ordinary Git status stayed unchanged;
|
|
113
|
+
- A first fresh agent completed `missing → index → query → source confirmation → learn`.
|
|
114
|
+
- A second fresh agent discovered and reused the persisted knowledge through normal `status`, search, roots, and show commands without receiving the previous answer or repeating `learn`.
|
|
115
|
+
- The target revision and ordinary Git status stayed unchanged; durable knowledge lived in the user Atlas home and the worktree contained only ignored CodeGraph state.
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
This validates installation, the Agent workflow, knowledge reuse, and zero-intrusion behavior in that project. It is not a universal accuracy benchmark or a production-stability claim.
|
|
118
118
|
|
|
119
119
|
## Evidence, uncertainty, and storage
|
|
120
120
|
|
|
@@ -124,8 +124,9 @@ That run also exposed precision and discoverability backlog: one natural multi-t
|
|
|
124
124
|
| Evidence validity | Business assertions carry source locators, hashes, certainty, and snapshot-derived validity. Failed rebinding produces `stale`, not silent deletion or promotion. |
|
|
125
125
|
| Explicit uncertainty | `UnknownBoundary`, `partial`, `unsupported`, `hypothesis`, and insufficient results narrow source fallback; they are never presented as exact facts. |
|
|
126
126
|
| One product | The CLI and Skill expose one Semantic Atlas workflow. CodeGraph stays behind the adapter and its CLI, MCP, schema, and backend types are not public Atlas interfaces. |
|
|
127
|
-
|
|
|
128
|
-
|
|
|
127
|
+
| Durable repository knowledge | `~/.semantic-atlas/repositories/<repository-id>/atlas.db` stores repository-wide business knowledge, snapshots, snapshot bindings, validity, and worktree publication state. Set absolute `SEMANTIC_ATLAS_HOME` only when tests or CI need isolation. |
|
|
128
|
+
| Disposable worktree projection | Each worktree owns `.atlas/codegraph.db`, containing CodeGraph structure only. A missing projection is bootstrapped from a compatible sibling and incrementally synchronized. |
|
|
129
|
+
| Zero intrusion | Atlas prepares `.atlas/.gitignore`, writes no tracked source or project configuration, and does not edit, test, review, commit, merge, or release code. Removing a worktree removes only its disposable projection. |
|
|
129
130
|
|
|
130
131
|
## CLI and development
|
|
131
132
|
|
|
@@ -151,7 +152,7 @@ pnpm build
|
|
|
151
152
|
pnpm package:verify
|
|
152
153
|
```
|
|
153
154
|
|
|
154
|
-
`package:verify` installs the packed artifact into an external temporary consumer and runs the real CLI. `validation:backend` adds the pinned CodeGraph
|
|
155
|
+
`package:verify` installs the packed artifact into an external temporary consumer and runs the real CLI. `validation:backend` adds the pinned CodeGraph projection, recovery, rebinding, sibling-bootstrap, and worktree-isolation gate.
|
|
155
156
|
|
|
156
157
|
## Reference
|
|
157
158
|
|
package/README.zh-CN.md
CHANGED
|
@@ -20,7 +20,7 @@ Semantic Atlas 为编程 Agent 提供一张本地世界图,把两类项目知
|
|
|
20
20
|
- **TypeScript 与 JavaScript 结构证据**:文件、符号、关系、框架入口和未解析边界。
|
|
21
21
|
- **由 Agent 验证的业务知识**:能力、场景、操作、接口、数据、规则、测试,以及支撑它们的证据。
|
|
22
22
|
|
|
23
|
-
`semantic-atlas` CLI 提供确定性、带版本的 JSON 操作;随包发布的 Codex Skill 则告诉 Agent
|
|
23
|
+
`semantic-atlas` CLI 提供确定性、带版本的 JSON 操作;随包发布的 Codex Skill 则告诉 Agent 何时查询、何时回到源码,以及何时值得保留已经验证的知识。
|
|
24
24
|
|
|
25
25
|
> **先查询,再确认源码;只学习证据真正证明的内容。**
|
|
26
26
|
|
|
@@ -32,14 +32,12 @@ Semantic Atlas 为编程 Agent 提供一张本地世界图,把两类项目知
|
|
|
32
32
|
- **减少源码上下文。** 用图证据选择有边界的源码起点,只阅读当前判断真正需要的代码。
|
|
33
33
|
- **让知识保持诚实。** 证据绑定到快照;证据变化或消失后,断言会明确变为过期,而不会悄悄继续充当当前事实。
|
|
34
34
|
- **保留不确定性。** 动态分派、反射、不支持的结构和未解析目标会保持显式,并把 Agent 引导回源码。
|
|
35
|
-
- **不侵入目标项目。**
|
|
35
|
+
- **不侵入目标项目。** 持久知识保存在 `~/.semantic-atlas`;工作树内只有被忽略、可丢弃的 CodeGraph 投影,不会改写跟踪中的源码和配置。
|
|
36
36
|
|
|
37
37
|
## 一张项目世界图
|
|
38
38
|
|
|
39
39
|

|
|
40
40
|
|
|
41
|
-
这张总览是可编辑的 draw.io 思维导图:[打开简体中文源图](docs/mindmaps/semantic-atlas-overview.zh-CN.drawio)。[英文源图](docs/mindmaps/semantic-atlas-overview.drawio)与本地化图片一并维护。
|
|
42
|
-
|
|
43
41
|
## 快速开始
|
|
44
42
|
|
|
45
43
|
Semantic Atlas 支持 Node.js 22.12 至 24,以及包含 TypeScript 或 JavaScript 的 Git 工作树。
|
|
@@ -61,7 +59,7 @@ semantic-atlas status --repo /path/to/project
|
|
|
61
59
|
$skill-installer Install semantic-atlas from https://github.com/lzj960515/semantic-atlas/tree/main/.agents/skills/semantic-atlas
|
|
62
60
|
```
|
|
63
61
|
|
|
64
|
-
之后,Codex 可以根据任务描述自动选择 `$semantic-atlas
|
|
62
|
+
之后,Codex 可以根据任务描述自动选择 `$semantic-atlas`,你也可以显式调用它。
|
|
65
63
|
|
|
66
64
|
### 发起第一次查询
|
|
67
65
|
|
|
@@ -88,6 +86,8 @@ semantic-atlas map show module:src --depth 1
|
|
|
88
86
|
|
|
89
87
|
这个循环每次只增长一块经过验证的业务能力,而不是把整个仓库转换成推测性文档。
|
|
90
88
|
|
|
89
|
+
当新建 Git worktree 第一次运行 `index` 时,Atlas 会自动复制兼容 sibling worktree 的 CodeGraph 投影,再执行增量同步。Agent 不需要额外初始化命令;只有不存在兼容投影时才执行全量索引。
|
|
90
|
+
|
|
91
91
|
## 实测结果
|
|
92
92
|
|
|
93
93
|
### 冻结对照评测
|
|
@@ -106,15 +106,15 @@ semantic-atlas map show module:src --depth 1
|
|
|
106
106
|
|
|
107
107
|
这些只是在固定 fixture 上得到的对照结果,**不能**证明所有仓库都具有相同业务准确率,也不能代表模型总 token 节省。这里的 token 指标只统计使用 `tiktoken-o200k_base-v1` 观测到的源码输入。
|
|
108
108
|
|
|
109
|
-
###
|
|
109
|
+
### 公开工作流验证
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
我们在一个隔离的 TypeScript 项目中,使用从 npm registry 安装的 CLI 和本仓库公开的 Skill 验证了公开安装路径:
|
|
112
112
|
|
|
113
|
-
- 第一个全新 Agent 完成 `missing → index → query → 源码确认 → learn
|
|
114
|
-
- 第二个全新 Agent 没有看到前一个答案,也没有重复 `learn`,只通过正常的 `status
|
|
115
|
-
-
|
|
113
|
+
- 第一个全新 Agent 完成 `missing → index → query → 源码确认 → learn`。
|
|
114
|
+
- 第二个全新 Agent 没有看到前一个答案,也没有重复 `learn`,只通过正常的 `status`、搜索、根节点和详情查询就发现并复用了已持久化的知识。
|
|
115
|
+
- 验证前后,目标 revision 与普通 Git 状态保持不变;持久知识位于用户级 Atlas 目录,工作树内只有被忽略的 CodeGraph 状态。
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
这次验证说明安装路径、Agent 工作流、知识复用和零侵入行为可以协同工作;它不构成通用准确率基准或生产稳定性结论。
|
|
118
118
|
|
|
119
119
|
## 证据、不确定性与存储边界
|
|
120
120
|
|
|
@@ -124,8 +124,9 @@ semantic-atlas map show module:src --depth 1
|
|
|
124
124
|
| 证据有效性 | 业务断言携带源码定位、哈希、确定性和由快照推导的有效性。证据无法重绑定时会得到 `stale`,而不是被静默删除或升级。 |
|
|
125
125
|
| 显式不确定性 | `UnknownBoundary`、`partial`、`unsupported`、`hypothesis` 和信息不足的结果用于缩小源码回退范围,绝不会冒充精确事实。 |
|
|
126
126
|
| 一个产品 | CLI 与 Skill 组成一个 Semantic Atlas 工作流。CodeGraph 位于适配器之后,它的 CLI、MCP、表结构和后端类型不是 Atlas 公共接口。 |
|
|
127
|
-
|
|
|
128
|
-
|
|
|
127
|
+
| 仓库级持久知识 | `~/.semantic-atlas/repositories/<repository-id>/atlas.db` 保存仓库共享的业务知识、快照、按快照绑定、有效性和 worktree publication 状态。测试与 CI 只能用绝对路径 `SEMANTIC_ATLAS_HOME` 隔离。 |
|
|
128
|
+
| 工作树级结构投影 | 每个 worktree 拥有只含 CodeGraph 结构的 `.atlas/codegraph.db`。缺失投影会从兼容 sibling 自动引导并增量同步。 |
|
|
129
|
+
| 零侵入 | Atlas 准备 `.atlas/.gitignore`,不写入跟踪中的源码或项目配置,也不负责编辑、测试、审查、提交、合入或发布代码。删除 worktree 只会删除其可丢弃结构投影。 |
|
|
129
130
|
|
|
130
131
|
## CLI 与开发
|
|
131
132
|
|
|
@@ -151,7 +152,7 @@ pnpm build
|
|
|
151
152
|
pnpm package:verify
|
|
152
153
|
```
|
|
153
154
|
|
|
154
|
-
`package:verify` 会把打包产物安装到仓库外的临时使用者中,并运行真实 CLI。`validation:backend` 则增加固定 CodeGraph
|
|
155
|
+
`package:verify` 会把打包产物安装到仓库外的临时使用者中,并运行真实 CLI。`validation:backend` 则增加固定 CodeGraph 版本的结构投影、恢复、证据重绑定、sibling 引导与工作树隔离门槛。
|
|
155
156
|
|
|
156
157
|
## 参考资料
|
|
157
158
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-application.d.ts","sourceRoot":"","sources":["../../src/cli/cli-application.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli-application.d.ts","sourceRoot":"","sources":["../../src/cli/cli-application.ts"],"names":[],"mappings":"AAA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GAAG;QAC3C,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;QAC/C,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;KAC5C;IAOD,OAAO,CAAC,MAAM;YAwBA,KAAK;YAsDL,QAAQ;YAOR,WAAW;YAWX,SAAS;YAWT,OAAO;YAsBP,KAAK;IAwBnB,OAAO,CAAC,OAAO;IAuCf,OAAO,CAAC,qBAAqB;IAS7B,OAAO,CAAC,mBAAmB;CAW5B"}
|
|
@@ -50,7 +50,6 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres
|
|
|
50
50
|
var e = new Error(message);
|
|
51
51
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
52
52
|
});
|
|
53
|
-
import { join } from "node:path";
|
|
54
53
|
import { cliEnvelopeSchema } from "../contracts/cli.js";
|
|
55
54
|
import { graphPatchV1Schema } from "../contracts/graph.js";
|
|
56
55
|
import { GraphStore } from "../graph/graph-store.js";
|
|
@@ -59,6 +58,7 @@ import { hasSupportedRepositoryLanguage, inspectRepositoryLanguages, } from "../
|
|
|
59
58
|
import { inspectGitRepository, } from "../repository/repository-inspector.js";
|
|
60
59
|
import { createRepositorySnapshot } from "../snapshots/repository-snapshot.js";
|
|
61
60
|
import { SnapshotStore, } from "../storage/snapshot-store.js";
|
|
61
|
+
import { resolveAtlasDatabasePath } from "../storage/atlas-database.js";
|
|
62
62
|
import { CodeGraphStructuralBackend } from "../structural-backend/codegraph-backend.js";
|
|
63
63
|
import { WorldGraphQuery } from "../world/world-graph-query.js";
|
|
64
64
|
import { WorldModelService } from "../world/world-model-service.js";
|
|
@@ -159,7 +159,7 @@ export class CliApplication {
|
|
|
159
159
|
changes: changeCounts(context.currentSnapshot),
|
|
160
160
|
},
|
|
161
161
|
freshness,
|
|
162
|
-
storeLocation:
|
|
162
|
+
storeLocation: resolveAtlasDatabasePath(context.repository),
|
|
163
163
|
languages: [...context.languages],
|
|
164
164
|
backend: {
|
|
165
165
|
version: context.structural.backendVersion,
|
|
@@ -179,9 +179,9 @@ export class CliApplication {
|
|
|
179
179
|
? await new CodeGraphStructuralBackend(context.repository).listUnknownBoundaries()
|
|
180
180
|
: [];
|
|
181
181
|
const world = new WorldModelService(context.repository);
|
|
182
|
-
const publication = context.structural.completeness === "
|
|
183
|
-
? await world.
|
|
184
|
-
: await world.
|
|
182
|
+
const publication = context.structural.completeness === "incomplete"
|
|
183
|
+
? await world.build()
|
|
184
|
+
: await world.sync();
|
|
185
185
|
const unknownChanges = compareUnknownBoundaries(previousUnknowns, publication.structural.boundaries);
|
|
186
186
|
const warnings = [
|
|
187
187
|
...unsupportedLanguageWarnings(context.languages),
|
|
@@ -24,12 +24,18 @@ export declare class GraphStore implements Disposable {
|
|
|
24
24
|
private requireSnapshot;
|
|
25
25
|
private upsertBusinessNode;
|
|
26
26
|
private upsertBusinessRelation;
|
|
27
|
+
private storeBusinessRelation;
|
|
27
28
|
private removeBusinessNode;
|
|
28
29
|
private removeBusinessRelation;
|
|
29
30
|
private insertNodeEvidence;
|
|
30
31
|
private insertRelationEvidence;
|
|
32
|
+
private insertEvidenceBinding;
|
|
33
|
+
private insertStructuralTargetBinding;
|
|
31
34
|
private requireEvidence;
|
|
35
|
+
private currentSnapshotId;
|
|
32
36
|
private refreshAllBusinessValidity;
|
|
37
|
+
private reconcileEvidenceBindings;
|
|
38
|
+
private reconcileEvidenceBindingTable;
|
|
33
39
|
private refreshBusinessValidity;
|
|
34
40
|
private readBusinessNode;
|
|
35
41
|
private readNodeEvidence;
|
|
@@ -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,EAC7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAEV,qBAAqB,EAC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