semantic-atlas 2.1.3 → 2.3.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 +47 -9
- package/.agents/skills/semantic-atlas/references/observations.md +4 -0
- package/.agents/skills/semantic-atlas-maintenance/SKILL.md +23 -6
- package/.agents/skills/semantic-atlas-maintenance/references/reconciliation.md +4 -0
- package/README.md +59 -31
- package/README.zh-CN.md +45 -27
- package/dist/application/map-application.d.ts +2 -1
- package/dist/application/map-application.d.ts.map +1 -1
- package/dist/application/map-application.js +4 -3
- package/dist/application/map-application.js.map +1 -1
- package/dist/cli/run-cli.d.ts +2 -0
- package/dist/cli/run-cli.d.ts.map +1 -1
- package/dist/cli/run-cli.js +41 -3
- package/dist/cli/run-cli.js.map +1 -1
- package/dist/contracts/cli.d.ts +11 -1
- package/dist/contracts/cli.d.ts.map +1 -1
- package/dist/contracts/map.d.ts +80 -1
- package/dist/contracts/map.d.ts.map +1 -1
- package/dist/contracts/map.js +29 -0
- package/dist/contracts/map.js.map +1 -1
- package/dist/contracts/observation.d.ts +3 -0
- package/dist/contracts/observation.d.ts.map +1 -1
- package/dist/contracts/observation.js +1 -1
- package/dist/contracts/observation.js.map +1 -1
- package/dist/contracts/project.d.ts +7 -0
- package/dist/contracts/project.d.ts.map +1 -0
- package/dist/contracts/project.js +6 -0
- package/dist/contracts/project.js.map +1 -0
- package/dist/contracts/projection.d.ts +1 -0
- package/dist/contracts/projection.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/map/business-flow-validator.d.ts +3 -0
- package/dist/map/business-flow-validator.d.ts.map +1 -0
- package/dist/map/business-flow-validator.js +152 -0
- package/dist/map/business-flow-validator.js.map +1 -0
- package/dist/map/business-graph.d.ts +3 -1
- package/dist/map/business-graph.d.ts.map +1 -1
- package/dist/map/business-graph.js +11 -0
- package/dist/map/business-graph.js.map +1 -1
- package/dist/map/map-validator.d.ts.map +1 -1
- package/dist/map/map-validator.js +31 -2
- package/dist/map/map-validator.js.map +1 -1
- package/dist/projects/project-registration-service.d.ts +20 -0
- package/dist/projects/project-registration-service.d.ts.map +1 -0
- package/dist/projects/project-registration-service.js +41 -0
- package/dist/projects/project-registration-service.js.map +1 -0
- package/dist/projects/project-store.d.ts +20 -0
- package/dist/projects/project-store.d.ts.map +1 -0
- package/dist/projects/project-store.js +89 -0
- package/dist/projects/project-store.js.map +1 -0
- package/dist/query/context-query-service.d.ts.map +1 -1
- package/dist/query/context-query-service.js +1 -0
- package/dist/query/context-query-service.js.map +1 -1
- package/dist/rendering/flow-projector.d.ts +9 -0
- package/dist/rendering/flow-projector.d.ts.map +1 -0
- package/dist/rendering/flow-projector.js +226 -0
- package/dist/rendering/flow-projector.js.map +1 -0
- package/dist/rendering/latest-project-loader.d.ts +2 -0
- package/dist/rendering/latest-project-loader.d.ts.map +1 -0
- package/dist/rendering/latest-project-loader.js +26 -0
- package/dist/rendering/latest-project-loader.js.map +1 -0
- package/dist/rendering/map-projector.d.ts.map +1 -1
- package/dist/rendering/map-projector.js +7 -3
- package/dist/rendering/map-projector.js.map +1 -1
- package/dist/rendering/viewer-browser.d.ts.map +1 -1
- package/dist/rendering/viewer-browser.js +226 -19
- package/dist/rendering/viewer-browser.js.map +1 -1
- package/dist/rendering/viewer-page.d.ts +31 -1
- package/dist/rendering/viewer-page.d.ts.map +1 -1
- package/dist/rendering/viewer-page.js +158 -21
- package/dist/rendering/viewer-page.js.map +1 -1
- package/dist/web/local-web-application.d.ts +15 -2
- package/dist/web/local-web-application.d.ts.map +1 -1
- package/dist/web/local-web-application.js +62 -16
- package/dist/web/local-web-application.js.map +1 -1
- package/dist/web/local-web-server.d.ts.map +1 -1
- package/dist/web/local-web-server.js +46 -8
- package/dist/web/local-web-server.js.map +1 -1
- package/dist/web/web-command-service.d.ts +4 -2
- package/dist/web/web-command-service.d.ts.map +1 -1
- package/dist/web/web-command-service.js +6 -2
- package/dist/web/web-command-service.js.map +1 -1
- package/docs/architecture.md +135 -58
- package/docs/evaluation.md +18 -3
- package/docs/index.md +1 -1
- package/docs/map-format.md +99 -5
- package/docs/observations.md +3 -1
- package/docs/product-contract.md +59 -23
- package/examples/commerce.yaml +50 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: semantic-atlas
|
|
3
|
-
description: Build source-supported business understanding and make maintenance decisions for business-changing engineering tasks, with or without an existing business map. Use for features, bugs, refactors, reviews, and impact analysis to find or establish business boundaries, collaborators, data, invariants, interfaces, and source entry points before broad discovery, then decide whether stable shared knowledge needs maintenance.
|
|
3
|
+
description: Build source-supported business understanding and make maintenance decisions for business-changing engineering tasks, with or without an existing business map. Use for features, bugs, refactors, reviews, and impact analysis to find or establish business boundaries, collaborators, data, invariants, interfaces, business flows, and source entry points before broad discovery, then decide whether stable shared knowledge needs maintenance.
|
|
4
4
|
compatibility: Requires Node.js 24+, a bundled or PATH-compatible semantic-atlas CLI, and repository source access.
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -55,9 +55,11 @@ produces no shared business-knowledge maintenance work.
|
|
|
55
55
|
Route the probe result into one current-evidence investigation:
|
|
56
56
|
|
|
57
57
|
- A successful context result supplies likely business scope and source entry
|
|
58
|
-
points.
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
points. It can also return related business flows in `context.data.flows`.
|
|
59
|
+
Open the most decisive anchors first. Query another returned stable ID only
|
|
60
|
+
when an owner, upstream action, downstream consumer, shared data concept,
|
|
61
|
+
invariant, interface, or business-relevant path could change the
|
|
62
|
+
implementation scope.
|
|
61
63
|
- `CONCEPT_AMBIGUOUS` supplies explicit candidates. Compare their stable IDs,
|
|
62
64
|
names, kinds, and task meaning, then query the matching ID. Use bounded source
|
|
63
65
|
evidence when current behavior is needed to choose.
|
|
@@ -109,6 +111,38 @@ Trace a downstream symptom toward its confirmed upstream cause before editing.
|
|
|
109
111
|
For shared data or interfaces, inspect every confirmed producer and consumer
|
|
110
112
|
needed to preserve the contract. Keep unrelated neighbors outside the change.
|
|
111
113
|
|
|
114
|
+
## Check Relevant Business Flows
|
|
115
|
+
|
|
116
|
+
Use each returned flow as a compact hypothesis about the business-relevant
|
|
117
|
+
actions, decisions, branches, and outcomes in one scenario. Follow only the
|
|
118
|
+
flows and paths that intersect the task; ordinary relation context remains
|
|
119
|
+
sufficient when no flow is relevant.
|
|
120
|
+
|
|
121
|
+
1. Before editing, trace each relevant path from `startsAt` through its labeled
|
|
122
|
+
decisions to the outcomes that could change. Give special attention to paths
|
|
123
|
+
controlling durable data, provider usage or cost, authorization or tenant
|
|
124
|
+
isolation, interfaces, and user-visible results.
|
|
125
|
+
2. Confirm every step or branch that controls the engineering decision in
|
|
126
|
+
current source, tests, tracked product documents, or required runtime
|
|
127
|
+
evidence. Flow order is an investigation lead rather than current execution
|
|
128
|
+
truth.
|
|
129
|
+
3. After implementation or review, trace the affected paths again. Check that
|
|
130
|
+
preserved branches still reach their intended outcomes and that an intended
|
|
131
|
+
product change has a clear durable meaning.
|
|
132
|
+
4. Classify a discrepancy before changing either side:
|
|
133
|
+
- repair source when implementation accidentally breaks the confirmed
|
|
134
|
+
business path;
|
|
135
|
+
- propose a flow update when confirmed product intent changed the durable
|
|
136
|
+
business path;
|
|
137
|
+
- propose a flow correction when decisive current evidence establishes that
|
|
138
|
+
the retained path was already stale;
|
|
139
|
+
- preserve the discrepancy as unresolved when available evidence cannot
|
|
140
|
+
choose the durable behavior;
|
|
141
|
+
- keep the flow unchanged when only implementation structure changed.
|
|
142
|
+
|
|
143
|
+
Keep routine parameter validation, DTO conversion, helpers, framework wiring,
|
|
144
|
+
and Service or Queue names in source rather than flow steps.
|
|
145
|
+
|
|
112
146
|
## Implement And Verify
|
|
113
147
|
|
|
114
148
|
Continue through the repository's normal engineering workflow after the
|
|
@@ -127,7 +161,9 @@ After the engineering or review result is known, choose one maintenance disposit
|
|
|
127
161
|
|
|
128
162
|
- `candidate`: current evidence establishes stable business meaning that the
|
|
129
163
|
shared map omits or represents incorrectly. Record one or more domain-owned
|
|
130
|
-
map-update candidates with decisive evidence.
|
|
164
|
+
map-update candidates with decisive evidence. Use `kind: "flow"` when the
|
|
165
|
+
durable correction concerns a scenario's actions, decisions, labeled
|
|
166
|
+
branches, or outcomes.
|
|
131
167
|
- `already_represented`: the shared map still expresses the stable business
|
|
132
168
|
meaning needed by the task. Record no candidate.
|
|
133
169
|
- `implementation_local`: the result changes only helpers, framework wiring,
|
|
@@ -139,12 +175,14 @@ After the engineering or review result is known, choose one maintenance disposit
|
|
|
139
175
|
|
|
140
176
|
A no-change disposition is a complete result when current shared knowledge
|
|
141
177
|
already represents the durable meaning or the change is implementation-local.
|
|
142
|
-
Add concepts and
|
|
178
|
+
Add concepts, relations, and flows only when current evidence supports their
|
|
179
|
+
accuracy. When no relevant flow changed, record no flow candidate.
|
|
143
180
|
|
|
144
181
|
For a repository without a map, use `candidate` only when current evidence
|
|
145
|
-
establishes a stable business domain and a bounded reusable concept
|
|
146
|
-
Use `unresolved` when one task cannot support that identity.
|
|
147
|
-
knowledge to the stable meaning established by the current
|
|
182
|
+
establishes a stable business domain and a bounded reusable concept, relation,
|
|
183
|
+
or business path. Use `unresolved` when one task cannot support that identity.
|
|
184
|
+
Limit bootstrap knowledge to the stable meaning established by the current
|
|
185
|
+
task.
|
|
148
186
|
|
|
149
187
|
## Record Accuracy Evidence
|
|
150
188
|
|
|
@@ -69,6 +69,10 @@ is `confirmed` when current evidence supports the proposed correction,
|
|
|
69
69
|
evidence, or `unresolved` when it remains a maintenance lead. Periodic
|
|
70
70
|
maintenance preserves these task-time judgments and linked independent reviews,
|
|
71
71
|
then confirms durable business meaning again before editing canonical YAML.
|
|
72
|
+
Candidate kinds are `node`, `relation`, `anchor`, and `flow`. Use `flow` for
|
|
73
|
+
a stable scenario path whose business actions, decisions, labeled branches, or
|
|
74
|
+
outcomes need reconciliation. An implementation-only control-flow change does
|
|
75
|
+
not create a flow candidate.
|
|
72
76
|
Stored task observations must match this current schema; unsupported local
|
|
73
77
|
artifacts fail visibly and are never migrated or promoted into reconciliation.
|
|
74
78
|
|
|
@@ -31,7 +31,8 @@ duplicate handling, maintenance-observation fields, and stopping conditions.
|
|
|
31
31
|
`candidateIndex`, task evidence, linked independent reviews, duplicate
|
|
32
32
|
provenance, and any earlier unresolved maintenance history.
|
|
33
33
|
Treat task-time `confirmed`, `contradicted`, and `unresolved` dispositions as
|
|
34
|
-
investigation inputs rather than maintenance conclusions.
|
|
34
|
+
investigation inputs rather than maintenance conclusions. A candidate with
|
|
35
|
+
`kind: "flow"` proposes a correction to one stable business scenario path.
|
|
35
36
|
4. When `data.domains` is empty, finish with a no-change result. A positive
|
|
36
37
|
`waitingForEvidenceOccurrences` means prior investigation remains retained
|
|
37
38
|
but does not justify immediately repeating the same work.
|
|
@@ -43,6 +44,15 @@ the selected origins. Follow current callers and collaborators when a proposed
|
|
|
43
44
|
relation changes both endpoints. Use runtime evidence when deployed state owns
|
|
44
45
|
the conclusion.
|
|
45
46
|
|
|
47
|
+
For a flow candidate, reconstruct the durable scenario in business terms: the
|
|
48
|
+
business-relevant actions, decisions, branches, and outcomes that can change
|
|
49
|
+
user results, durable data, cost or provider usage, authorization or isolation,
|
|
50
|
+
or interfaces. Keep flow steps at business granularity; leave parameter
|
|
51
|
+
validation, DTO conversion, helpers, framework wiring, and Service or Queue
|
|
52
|
+
names in source. Treat a source diff as evidence to investigate and retain the
|
|
53
|
+
existing flow until tracked product intent or durable current evidence supports
|
|
54
|
+
a change.
|
|
55
|
+
|
|
46
56
|
Classify every selected origin:
|
|
47
57
|
|
|
48
58
|
- `accepted`: current evidence supports the proposed durable correction;
|
|
@@ -74,6 +84,10 @@ owning file, and keep anchors as navigation hints. One duplicate candidate
|
|
|
74
84
|
group produces one map edit while its maintenance draft retains every exact
|
|
75
85
|
origin.
|
|
76
86
|
|
|
87
|
+
Apply an accepted or refined flow correction in the same domain-owned YAML as
|
|
88
|
+
its scenario. Reference existing business concept IDs from flow steps and keep
|
|
89
|
+
the scenario's stable identity when its business meaning remains unchanged.
|
|
90
|
+
|
|
77
91
|
### Validate And Prepare The Review Candidate
|
|
78
92
|
|
|
79
93
|
When the map changes, run:
|
|
@@ -87,8 +101,11 @@ git diff -- docs/business-map/<owning-file>.yaml
|
|
|
87
101
|
```
|
|
88
102
|
|
|
89
103
|
Inspect the changed neighborhood in the Viewer. Confirm the Git diff changes at
|
|
90
|
-
most one owning YAML and leaves retained observations unchanged.
|
|
91
|
-
|
|
104
|
+
most one owning YAML and leaves retained observations unchanged. For an initial
|
|
105
|
+
map, confirm that the Viewer presents one bounded business domain rather than a
|
|
106
|
+
repository structure. For a flow correction, inspect the affected path,
|
|
107
|
+
decision labels, branches, outcomes, and relationship-to-flow links. Commit the
|
|
108
|
+
map candidate through the host workflow.
|
|
92
109
|
|
|
93
110
|
Prepare, but do not record, one maintenance-observation JSON document. It
|
|
94
111
|
contains the maintenance task/run identity, selected `businessDomainId`, every
|
|
@@ -107,9 +124,9 @@ the host workflow.
|
|
|
107
124
|
## Review Phase
|
|
108
125
|
|
|
109
126
|
Use the host workflow's ordinary independent review. Review durable business
|
|
110
|
-
meaning, relation direction,
|
|
111
|
-
candidate coverage, one-domain ownership, and
|
|
112
|
-
conclusions correctly avoid a map edit.
|
|
127
|
+
meaning, relation direction, flow branch meaning, evidence support,
|
|
128
|
+
complete-graph validity, exact candidate coverage, one-domain ownership, and
|
|
129
|
+
whether discarded or unresolved conclusions correctly avoid a map edit.
|
|
113
130
|
|
|
114
131
|
Changes requested return to the normal Work Phase. Approval authorizes the host
|
|
115
132
|
workflow to enter Integration Phase; it does not itself consume candidates.
|
|
@@ -45,6 +45,10 @@ and leave the candidate unresolved until the owning authority can decide it.
|
|
|
45
45
|
relation direction are confirmed.
|
|
46
46
|
- A missing concept can be added when current evidence establishes stable
|
|
47
47
|
business identity, ownership, and meaning rather than only a source symbol.
|
|
48
|
+
- A flow can be added or corrected when durable evidence establishes the
|
|
49
|
+
scenario's business-relevant actions, decisions, labeled branches, and
|
|
50
|
+
outcomes. Keep the flow at business granularity and classify a source
|
|
51
|
+
discrepancy before changing the canonical path.
|
|
48
52
|
- A repository with `MAP_NOT_FOUND` can begin with one domain-owned map when
|
|
49
53
|
current evidence establishes that domain and the selected bounded concepts.
|
|
50
54
|
Cross-domain relations wait until both stable endpoints can join one valid
|
package/README.md
CHANGED
|
@@ -9,8 +9,9 @@ English | [简体中文](README.zh-CN.md)
|
|
|
9
9
|
Semantic Atlas gives coding agents a compact map of the business before they
|
|
10
10
|
change the code. A repository describes stable domains, capabilities,
|
|
11
11
|
operations, data, rules, interfaces, and their relationships in tracked YAML.
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
Scenario flows add business-relevant actions, decisions, branches, and outcomes
|
|
13
|
+
to the same documents. The CLI validates the map, returns a small neighborhood
|
|
14
|
+
and its related flows for investigation, and renders both views for people.
|
|
14
15
|
|
|
15
16
|
The map is deliberately advisory. It helps an agent enter through the right
|
|
16
17
|
business boundary; current source, tests, tracked product documents, and
|
|
@@ -74,10 +75,11 @@ nodes:
|
|
|
74
75
|
description: Likely source entry point for Commerce behavior.
|
|
75
76
|
|
|
76
77
|
relations: []
|
|
78
|
+
flows: []
|
|
77
79
|
```
|
|
78
80
|
|
|
79
81
|
The [map format](docs/map-format.md) defines supported concepts, relations,
|
|
80
|
-
anchors, validation rules, and lookup behavior.
|
|
82
|
+
business flows, anchors, validation rules, and lookup behavior.
|
|
81
83
|
|
|
82
84
|
## Query And Render
|
|
83
85
|
|
|
@@ -85,32 +87,47 @@ anchors, validation rules, and lookup behavior.
|
|
|
85
87
|
semantic-atlas validate --repo /path/to/repository
|
|
86
88
|
semantic-atlas context "Checkout" --repo /path/to/repository
|
|
87
89
|
semantic-atlas render --repo /path/to/repository --output ./business-map.html
|
|
88
|
-
semantic-atlas
|
|
90
|
+
semantic-atlas project add /path/to/repository
|
|
91
|
+
semantic-atlas web
|
|
89
92
|
```
|
|
90
93
|
|
|
91
94
|
`validate` checks every map document as one graph. `context` returns the
|
|
92
95
|
selected concept, containment, direct incoming and outgoing relationships,
|
|
93
|
-
related concepts,
|
|
96
|
+
related concepts, source-navigation anchors, and complete related flows in a
|
|
97
|
+
versioned JSON envelope.
|
|
94
98
|
`render` produces a deterministic, self-contained interactive HTML Viewer from
|
|
95
|
-
that same normalized
|
|
96
|
-
|
|
97
|
-
wheel or controls to zoom, and use `Fit` to restore the
|
|
98
|
-
Cards keep business type, title, and description visible
|
|
99
|
-
paths in the graph. Click a card, or focus it and press
|
|
100
|
-
navigation anchors in a desktop side
|
|
99
|
+
that same normalized map. Its compact toolbar switches between Relationships
|
|
100
|
+
and Flows; each view then selects a business domain or scenario flow. Drag to pan,
|
|
101
|
+
use the mouse wheel or controls to zoom, and use `Fit` to restore the
|
|
102
|
+
complete selected view. Cards keep business type, title, and description visible
|
|
103
|
+
without exposing code paths in the graph. Click a card, or focus it and press
|
|
104
|
+
`Enter`, to inspect its navigation anchors and related flows in a desktop side
|
|
105
|
+
panel or narrow-screen bottom panel. A related-flow link opens the actual flow.
|
|
106
|
+
|
|
107
|
+
`project add [path]` validates the complete business map and saves its
|
|
108
|
+
normalized checkout path in the versioned user-local
|
|
109
|
+
`~/.semantic-atlas/projects.json` file. Omitting `path` uses the current
|
|
110
|
+
directory. Repeating a valid path is idempotent; a missing or invalid map leaves
|
|
111
|
+
the file unchanged.
|
|
101
112
|
|
|
102
113
|
`web` starts the same Viewer on a read-only `127.0.0.1` server and opens the
|
|
103
|
-
default browser.
|
|
104
|
-
|
|
114
|
+
default browser. With no `--repo`, it reads the registered list from any current
|
|
115
|
+
directory. An empty list opens an instructional empty state. The initial page
|
|
116
|
+
contains only project names and opaque IDs; it loads and validates a map only
|
|
117
|
+
when that project is initially selected or selected later. An unavailable path
|
|
118
|
+
stays in the list and does not prevent another project from loading.
|
|
119
|
+
|
|
120
|
+
Pass several repositories after one `--repo` option for a temporary session:
|
|
105
121
|
|
|
106
122
|
```bash
|
|
107
123
|
semantic-atlas web --repo /path/to/api /path/to/frontend --port 4310 --no-open
|
|
108
124
|
```
|
|
109
125
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
126
|
+
Explicit paths are not saved and are not merged with registered projects. The
|
|
127
|
+
browser cannot provide arbitrary repository paths and never receives the saved
|
|
128
|
+
paths. Reselecting or refreshing a project reloads its tracked YAML.
|
|
129
|
+
Repositories with the same directory name receive deterministic numbered
|
|
130
|
+
labels without exposing their parent paths. `Ctrl+C` stops the server.
|
|
114
131
|
|
|
115
132
|
## Evidence Order
|
|
116
133
|
|
|
@@ -119,12 +136,15 @@ For a business-changing engineering task:
|
|
|
119
136
|
1. Probe the smallest useful map neighborhood whether or not map files exist.
|
|
120
137
|
2. Use returned map knowledge as investigation leads, or build the smallest
|
|
121
138
|
source-supported business model after `MAP_NOT_FOUND`.
|
|
122
|
-
3.
|
|
123
|
-
|
|
139
|
+
3. Trace any related business flow and identify the decisions, branches, and
|
|
140
|
+
outcomes that the task can affect.
|
|
141
|
+
4. Confirm every change-controlling claim in current source and tests.
|
|
142
|
+
5. Use tracked product documents for durable intent and runtime evidence for
|
|
124
143
|
state-dependent behavior.
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
144
|
+
6. Let current evidence override missing, stale, or contradicted map knowledge.
|
|
145
|
+
7. Implement, verify, and recheck the affected business paths through the
|
|
146
|
+
repository's normal engineering workflow.
|
|
147
|
+
8. Record the task outcome and decide whether shared business knowledge needs a
|
|
128
148
|
separate maintenance change; a no-change decision is a complete result.
|
|
129
149
|
|
|
130
150
|
The final engineering conclusion is expected to be more accurate than the map
|
|
@@ -135,9 +155,11 @@ that helped locate it.
|
|
|
135
155
|
`semantic-atlas setup` installs two package-owned Skills:
|
|
136
156
|
|
|
137
157
|
- `semantic-atlas` gives every business-changing task a bounded,
|
|
138
|
-
current-evidence understanding workflow,
|
|
158
|
+
current-evidence understanding workflow, including relevant flow branches,
|
|
159
|
+
with or without an existing map.
|
|
139
160
|
- `semantic-atlas-maintenance` reviews retained candidates for one business
|
|
140
|
-
domain and prepares a normal reviewed YAML
|
|
161
|
+
domain, including flow corrections, and prepares a normal reviewed YAML
|
|
162
|
+
update or initial domain map.
|
|
141
163
|
|
|
142
164
|
Target repositories do not copy these Skills. They share only their business
|
|
143
165
|
maps through Git.
|
|
@@ -157,7 +179,8 @@ semantic-atlas insights summary --repo /path/to/repository --period 4w
|
|
|
157
179
|
|
|
158
180
|
A task observation records queries including `map_not_found`, current-evidence
|
|
159
181
|
classifications, candidate map corrections, and explicit human corrections. An
|
|
160
|
-
|
|
182
|
+
eligible correction can target a node, relation, anchor, or flow. An empty
|
|
183
|
+
candidate list is valid when knowledge is already represented,
|
|
161
184
|
implementation-local, or unresolved. The task never grades its own accuracy.
|
|
162
185
|
An independent review observation owns correctness, impact, required-rework,
|
|
163
186
|
and map-regression judgments. A maintenance observation records `accepted`,
|
|
@@ -190,6 +213,8 @@ submits any accepted map correction through an ordinary Git diff and independent
|
|
|
190
213
|
review, and records the reviewed outcome after integration. When no map exists,
|
|
191
214
|
a supported candidate can seed one bounded business-domain YAML instead of a
|
|
192
215
|
repository-wide taxonomy.
|
|
216
|
+
Flow candidates are checked as stable business paths rather than copied
|
|
217
|
+
implementation control flow.
|
|
193
218
|
Post-integration maintenance is the normal freshness path; periodic
|
|
194
219
|
reconciliation recovers missed observations, accumulated drift, and changes
|
|
195
220
|
outside the normal engineering workflow.
|
|
@@ -203,12 +228,15 @@ immutable JSON files under a hashed user-local repository partition:
|
|
|
203
228
|
~/.semantic-atlas/observations/v1/repositories/<repository-id>/
|
|
204
229
|
```
|
|
205
230
|
|
|
206
|
-
Observation files contain neither repository paths nor remote URLs.
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
231
|
+
Observation files contain neither repository paths nor remote URLs. The
|
|
232
|
+
separate `~/.semantic-atlas/projects.json` Viewer configuration stores only the
|
|
233
|
+
checkout paths the user explicitly registers. Those paths remain server-side
|
|
234
|
+
and are never sent to the browser. Semantic Atlas has no remote observation
|
|
235
|
+
service, account, telemetry upload, persistent graph database, or automatic
|
|
236
|
+
source/map mutation. `setup` and observation commands do not add files to a
|
|
237
|
+
target repository; `render` writes only the explicitly requested local output.
|
|
238
|
+
`web` binds only to loopback, exposes GET and HEAD, and reads either the
|
|
239
|
+
registered list or the explicit temporary `--repo` set.
|
|
212
240
|
|
|
213
241
|
## Development
|
|
214
242
|
|
package/README.zh-CN.md
CHANGED
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
Semantic Atlas 在编码 Agent 修改代码之前,为它提供一份紧凑的业务地图。
|
|
10
10
|
仓库使用纳入 Git 管理的 YAML 描述稳定的业务域、能力、操作、数据、规则、
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
接口及其关系;场景流程继续描述业务上重要的动作、判断、分支和结果。CLI 负责
|
|
12
|
+
验证地图、返回适合当前调查的小范围业务邻域及相关流程,并把两种视图渲染给人
|
|
13
|
+
查看。
|
|
13
14
|
|
|
14
15
|
地图只提供调查线索,不直接代表当前实现。它帮助 Agent 从正确的业务边界
|
|
15
16
|
进入问题;当前源码、测试、纳入版本管理的产品文档,以及必要的运行时证据,
|
|
@@ -71,10 +72,11 @@ nodes:
|
|
|
71
72
|
description: Likely source entry point for Commerce behavior.
|
|
72
73
|
|
|
73
74
|
relations: []
|
|
75
|
+
flows: []
|
|
74
76
|
```
|
|
75
77
|
|
|
76
|
-
[地图格式](docs/map-format.md)
|
|
77
|
-
|
|
78
|
+
[地图格式](docs/map-format.md)定义了支持的业务概念、关系、业务流程、导航锚点、
|
|
79
|
+
验证规则和查找行为。
|
|
78
80
|
|
|
79
81
|
## 查询与渲染
|
|
80
82
|
|
|
@@ -82,27 +84,38 @@ relations: []
|
|
|
82
84
|
semantic-atlas validate --repo /path/to/repository
|
|
83
85
|
semantic-atlas context "Checkout" --repo /path/to/repository
|
|
84
86
|
semantic-atlas render --repo /path/to/repository --output ./business-map.html
|
|
85
|
-
semantic-atlas
|
|
87
|
+
semantic-atlas project add /path/to/repository
|
|
88
|
+
semantic-atlas web
|
|
86
89
|
```
|
|
87
90
|
|
|
88
91
|
`validate` 把所有地图文档作为一张完整图进行检查。`context` 使用带版本的 JSON
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
结果返回选中的概念、所属层级、直接输入和输出关系、相关概念、源码导航锚点及
|
|
93
|
+
完整相关流程。`render` 从同一个标准化地图生成确定性的单文件交互 Viewer。
|
|
94
|
+
顶部工具栏先在“关系”和“流程”之间切换,再选择业务域或场景流程;拖动可以
|
|
95
|
+
平移,鼠标滚轮和按钮可以缩放,`Fit` 会恢复当前完整视图。卡片默认只显示业务
|
|
96
|
+
类型、标题和描述,不会让代码路径挤占地图空间。点击卡片,或聚焦后按 `Enter`,
|
|
97
|
+
会在桌面右侧面板或窄屏底部面板中显示导航锚点和相关流程;点击相关流程会直接
|
|
98
|
+
进入实际流程图。
|
|
99
|
+
|
|
100
|
+
`project add [path]` 会先校验完整业务地图,再把规范化的 checkout 路径保存到
|
|
101
|
+
带版本的用户本地文件 `~/.semantic-atlas/projects.json`。省略 `path` 时使用当前
|
|
102
|
+
目录;重复登记有效路径是幂等操作,地图缺失或无效时不会修改文件。
|
|
95
103
|
|
|
96
104
|
`web` 会在只读的 `127.0.0.1` 服务上启动同一个 Viewer,并打开默认浏览器。
|
|
97
|
-
|
|
105
|
+
不带 `--repo` 时,它可以从任意当前目录读取已登记项目;清单为空时仍会打开
|
|
106
|
+
Viewer,并显示登记指引。首页只包含项目名称和不透明标识,浏览器初次选择或
|
|
107
|
+
切换项目时才加载、校验并渲染该项目。路径不可用的项目仍保留在列表中,而且
|
|
108
|
+
不会阻止其他项目正常加载。
|
|
109
|
+
|
|
110
|
+
一个 `--repo` 参数也可以接收多个仓库,组成仅用于本次启动的临时项目集合:
|
|
98
111
|
|
|
99
112
|
```bash
|
|
100
113
|
semantic-atlas web --repo /path/to/api /path/to/frontend --port 4310 --no-open
|
|
101
114
|
```
|
|
102
115
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
116
|
+
显式路径不会写入项目文件,也不会与已登记路径合并。浏览器不能提交任意仓库
|
|
117
|
+
路径,也不会收到保存的路径。重新选择或刷新项目会重新读取其当前 YAML。目录
|
|
118
|
+
名相同的仓库会获得稳定的编号标签,同时不会暴露父目录。按 `Ctrl+C` 停止服务。
|
|
106
119
|
|
|
107
120
|
## 证据顺序
|
|
108
121
|
|
|
@@ -111,11 +124,12 @@ semantic-atlas web --repo /path/to/api /path/to/frontend --port 4310 --no-open
|
|
|
111
124
|
1. 无论仓库是否已有地图,都先探测能够支持当前任务的最小业务邻域。
|
|
112
125
|
2. 有地图时把返回的业务知识当作调查线索;遇到 `MAP_NOT_FOUND` 时,建立能够
|
|
113
126
|
支持当前任务的最小源码证据模型。
|
|
114
|
-
3.
|
|
115
|
-
4.
|
|
116
|
-
5.
|
|
117
|
-
6.
|
|
118
|
-
7.
|
|
127
|
+
3. 沿相关业务流程找出本次任务可能影响的判断、分支和结果。
|
|
128
|
+
4. 在当前源码和测试中确认每一条会决定改动范围的结论。
|
|
129
|
+
5. 使用纳入版本管理的产品文档确认稳定意图,使用运行时证据确认依赖环境状态的行为。
|
|
130
|
+
6. 当地图缺失、过期或与当前证据冲突时,以当前证据为准。
|
|
131
|
+
7. 按目标仓库原有的工程流程实现、验证并重新核对受影响的业务路径。
|
|
132
|
+
8. 记录任务结果,并判断共享业务知识是否需要单独维护;确认无需修改也是完整结果。
|
|
119
133
|
|
|
120
134
|
最终工程结论应当比帮助定位问题的地图更准确。
|
|
121
135
|
|
|
@@ -124,9 +138,9 @@ semantic-atlas web --repo /path/to/api /path/to/frontend --port 4310 --no-open
|
|
|
124
138
|
`semantic-atlas setup` 会安装两个由 npm 包管理的 Skill:
|
|
125
139
|
|
|
126
140
|
- `semantic-atlas` 让每个业务改动任务进入有边界的当前证据理解流程,不要求仓库
|
|
127
|
-
|
|
141
|
+
事先存在业务地图,并在存在相关流程时核对关键分支。
|
|
128
142
|
- `semantic-atlas-maintenance` 按一个业务域审查保留的候选,并准备普通的、需要
|
|
129
|
-
审查的 YAML
|
|
143
|
+
审查的 YAML 更新或第一份业务域地图,其中也包括稳定业务流程修正。
|
|
130
144
|
|
|
131
145
|
目标仓库不会复制这些 Skill;通过 Git 共享的只有仓库自己的业务地图。
|
|
132
146
|
|
|
@@ -143,7 +157,8 @@ semantic-atlas insights summary --repo /path/to/repository --period 4w
|
|
|
143
157
|
```
|
|
144
158
|
|
|
145
159
|
任务观测记录包括 `map_not_found` 在内的查询结果、当前证据分类、地图修正候选
|
|
146
|
-
|
|
160
|
+
和明确的人类纠正;候选可以针对节点、关系、导航锚点或流程。业务知识已经覆盖、
|
|
161
|
+
改动只涉及实现细节或稳定含义尚不明确时,
|
|
147
162
|
候选列表可以为空。任务不会给自己的准确性打分;独立审查观测负责记录正确性、
|
|
148
163
|
影响完整性、是否需要返工,以及地图是否导致了错误结论。维护观测只在审查和
|
|
149
164
|
合入完成后记录 `accepted`、`refined`、`discarded` 或 `unresolved`。观测 ID
|
|
@@ -170,6 +185,7 @@ semantic-atlas reconcile candidates --repo /path/to/repository
|
|
|
170
185
|
有充分证据的候选可以建立第一份有边界的业务域 YAML,而不是一次推断整个仓库。
|
|
171
186
|
代码合入后的维护是正常的保鲜路径;定期校准负责补回遗漏观测、累计漂移和常规
|
|
172
187
|
流程以外的变更。
|
|
188
|
+
候选针对流程时,维护 Skill 会核对稳定业务路径,而不是照抄当前实现控制流。
|
|
173
189
|
|
|
174
190
|
## 本地数据与隐私
|
|
175
191
|
|
|
@@ -180,10 +196,12 @@ semantic-atlas reconcile candidates --repo /path/to/repository
|
|
|
180
196
|
~/.semantic-atlas/observations/v1/repositories/<repository-id>/
|
|
181
197
|
```
|
|
182
198
|
|
|
183
|
-
观测文件既不包含仓库路径,也不包含远端 URL
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
`
|
|
199
|
+
观测文件既不包含仓库路径,也不包含远端 URL。独立的 Viewer 配置文件
|
|
200
|
+
`~/.semantic-atlas/projects.json` 只保存用户明确登记的 checkout 路径;这些路径
|
|
201
|
+
始终留在服务端,不会发送给浏览器。Semantic Atlas 没有远程观测服务、账号系统、
|
|
202
|
+
遥测上传、持久化图数据库或自动修改源码和地图的行为。`setup` 和观测命令不会
|
|
203
|
+
向目标仓库添加文件;`render` 只写入调用者明确指定的本地输出;`web` 只绑定
|
|
204
|
+
loopback,只接受 GET 和 HEAD,并且只读取登记清单或显式的临时 `--repo` 集合。
|
|
187
205
|
|
|
188
206
|
## 开发
|
|
189
207
|
|
|
@@ -3,6 +3,7 @@ import type { MapProjection } from "../contracts/projection.js";
|
|
|
3
3
|
import type { RepositoryMapSource } from "../contracts/map.js";
|
|
4
4
|
import { MapDocumentLoader } from "../map/map-document-loader.js";
|
|
5
5
|
import { MapValidator } from "../map/map-validator.js";
|
|
6
|
+
import { type ViewerProjectMetadata } from "../rendering/map-projector.js";
|
|
6
7
|
import type { ViewerProject } from "../rendering/viewer-page.js";
|
|
7
8
|
export type MapProjectionResult = {
|
|
8
9
|
readonly ok: true;
|
|
@@ -29,7 +30,7 @@ export declare class MapApplication {
|
|
|
29
30
|
validate(repositoryPath: string): Promise<ValidateEnvelope>;
|
|
30
31
|
context(repositoryPath: string, selector: string): Promise<ContextEnvelope>;
|
|
31
32
|
project(repositoryPath: string): Promise<MapProjectionResult>;
|
|
32
|
-
viewerProject(repositoryPath: string): Promise<ViewerProjectResult>;
|
|
33
|
+
viewerProject(repositoryPath: string, metadata?: ViewerProjectMetadata): Promise<ViewerProjectResult>;
|
|
33
34
|
private loadValidatedMap;
|
|
34
35
|
}
|
|
35
36
|
//# sourceMappingURL=map-application.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-application.d.ts","sourceRoot":"","sources":["../../src/application/map-application.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EACf,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAA6B,MAAM,+BAA+B,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"map-application.d.ts","sourceRoot":"","sources":["../../src/application/map-application.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EACf,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAA6B,MAAM,+BAA+B,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAajE,MAAM,MAAM,mBAAmB,GAC3B;IACE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;CACpC,GACD;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IAC1C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B,CAAC;AAEN,MAAM,MAAM,mBAAmB,GAC3B;IACE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;CACvC,GACD;IACE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IAC1C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;CAC1B,CAAC;AAEN,qBAAa,cAAc;IAEvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBADT,MAAM,oBAA0B,EAChC,SAAS,eAAqB;IAGpC,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAkB3D,OAAO,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAsC3E,OAAO,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAY7D,aAAa,CACxB,cAAc,EAAE,MAAM,EACtB,QAAQ,CAAC,EAAE,qBAAqB,GAC/B,OAAO,CAAC,mBAAmB,CAAC;YAajB,gBAAgB;CAuC/B"}
|
|
@@ -4,7 +4,7 @@ import { MapDocumentLoader, RepositoryResolutionError } from "../map/map-documen
|
|
|
4
4
|
import { BusinessGraph } from "../map/business-graph.js";
|
|
5
5
|
import { MapValidator } from "../map/map-validator.js";
|
|
6
6
|
import { ContextQueryService } from "../query/context-query-service.js";
|
|
7
|
-
import { MapProjector } from "../rendering/map-projector.js";
|
|
7
|
+
import { MapProjector, } from "../rendering/map-projector.js";
|
|
8
8
|
export class MapApplication {
|
|
9
9
|
loader;
|
|
10
10
|
validator;
|
|
@@ -25,6 +25,7 @@ export class MapApplication {
|
|
|
25
25
|
documentCount: result.map.documents.length,
|
|
26
26
|
nodeCount: result.map.nodes.length,
|
|
27
27
|
relationCount: result.map.relations.length,
|
|
28
|
+
flowCount: result.map.flows.length,
|
|
28
29
|
},
|
|
29
30
|
};
|
|
30
31
|
}
|
|
@@ -75,7 +76,7 @@ export class MapApplication {
|
|
|
75
76
|
projection: new MapProjector(graph).project(viewerProjectMetadata(result.map.source.root)),
|
|
76
77
|
};
|
|
77
78
|
}
|
|
78
|
-
async viewerProject(repositoryPath) {
|
|
79
|
+
async viewerProject(repositoryPath, metadata) {
|
|
79
80
|
const result = await this.loadValidatedMap(repositoryPath);
|
|
80
81
|
if (!result.ok)
|
|
81
82
|
return result;
|
|
@@ -84,7 +85,7 @@ export class MapApplication {
|
|
|
84
85
|
ok: true,
|
|
85
86
|
repository: result.map.source,
|
|
86
87
|
viewerProject: new MapProjector(graph)
|
|
87
|
-
.viewerProject(viewerProjectMetadata(result.map.source.root)),
|
|
88
|
+
.viewerProject(metadata ?? viewerProjectMetadata(result.map.source.root)),
|
|
88
89
|
};
|
|
89
90
|
}
|
|
90
91
|
async loadValidatedMap(repositoryPath) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-application.js","sourceRoot":"","sources":["../../src/application/map-application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAW7B,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,
|
|
1
|
+
{"version":3,"file":"map-application.js","sourceRoot":"","sources":["../../src/application/map-application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAW7B,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,E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,EAAE,CAAC;QAC/D,KAAK,EAAE,MAAM,CAAC,KAAK;KACpB,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,MAA2D;IAC/E,OAAO;QACL,aAAa,EAAE,CAAC;QAChB,EAAE,EAAE,KAAK;QACT,OAAO,EAAE,SAAS;QAClB,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/D,KAAK,EAAE,MAAM,CAAC,KAAK;KACpB,CAAC;AACJ,CAAC"}
|
package/dist/cli/run-cli.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MapApplication } from "../application/map-application.js";
|
|
2
2
|
import type { CliRunResult } from "../contracts/cli.js";
|
|
3
|
+
import { type ProjectRegistrationResult } from "../projects/project-registration-service.js";
|
|
3
4
|
import { type ManagedSkillsInstallation } from "../setup/managed-skill-installer.js";
|
|
4
5
|
import { type PackageUpgradeResult } from "../setup/package-upgrader.js";
|
|
5
6
|
import { type PackageIdentity } from "../setup/package-identity.js";
|
|
@@ -9,6 +10,7 @@ import { type StartWebOptions, type WebSessionData } from "../web/web-command-se
|
|
|
9
10
|
export interface CliRuntime extends ObservationCliRuntime, ReconciliationCliRuntime {
|
|
10
11
|
readonly packageIdentity: PackageIdentity;
|
|
11
12
|
readonly mapApplication: MapApplication;
|
|
13
|
+
addProject(repositoryPath: string): Promise<ProjectRegistrationResult>;
|
|
12
14
|
installSkills(): Promise<ManagedSkillsInstallation>;
|
|
13
15
|
upgradePackage(): Promise<PackageUpgradeResult>;
|
|
14
16
|
startWeb(options: StartWebOptions): Promise<WebSessionData>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-cli.d.ts","sourceRoot":"","sources":["../../src/cli/run-cli.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAA4B,MAAM,mCAAmC,CAAC;AAC7F,OA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