semantic-atlas 2.6.0 → 2.7.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.
Files changed (35) hide show
  1. package/.agents/skills/semantic-atlas/SKILL.md +49 -23
  2. package/.agents/skills/semantic-atlas-maintenance/SKILL.md +24 -17
  3. package/.agents/skills/semantic-atlas-maintenance/references/boundary-design.md +120 -0
  4. package/.agents/skills/semantic-atlas-maintenance/references/map-authoring.md +5 -4
  5. package/README.md +9 -5
  6. package/README.zh-CN.md +8 -4
  7. package/dist/application/map-application.d.ts +2 -1
  8. package/dist/application/map-application.d.ts.map +1 -1
  9. package/dist/application/map-application.js +25 -0
  10. package/dist/application/map-application.js.map +1 -1
  11. package/dist/cli/run-cli.d.ts.map +1 -1
  12. package/dist/cli/run-cli.js +8 -0
  13. package/dist/cli/run-cli.js.map +1 -1
  14. package/dist/contracts/cli.d.ts +11 -0
  15. package/dist/contracts/cli.d.ts.map +1 -1
  16. package/dist/i18n/index.d.ts +4 -0
  17. package/dist/i18n/index.d.ts.map +1 -1
  18. package/dist/i18n/locales/en/cli.d.ts +2 -0
  19. package/dist/i18n/locales/en/cli.d.ts.map +1 -1
  20. package/dist/i18n/locales/en/cli.js +2 -0
  21. package/dist/i18n/locales/en/cli.js.map +1 -1
  22. package/dist/i18n/locales/zh-CN/cli.d.ts +2 -0
  23. package/dist/i18n/locales/zh-CN/cli.d.ts.map +1 -1
  24. package/dist/i18n/locales/zh-CN/cli.js +2 -0
  25. package/dist/i18n/locales/zh-CN/cli.js.map +1 -1
  26. package/dist/query/concept-search-service.d.ts +9 -0
  27. package/dist/query/concept-search-service.d.ts.map +1 -0
  28. package/dist/query/concept-search-service.js +127 -0
  29. package/dist/query/concept-search-service.js.map +1 -0
  30. package/docs/architecture.md +29 -10
  31. package/docs/evaluation.md +11 -1
  32. package/docs/map-format.md +33 -9
  33. package/docs/product-contract.md +20 -13
  34. package/package.json +4 -4
  35. package/.agents/skills/semantic-atlas/scripts/query-context.mjs +0 -101
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: semantic-atlas
3
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
- compatibility: Requires Node.js 24+, a bundled or PATH-compatible semantic-atlas CLI, and repository source access.
4
+ compatibility: Requires Node.js 24+, the semantic-atlas CLI on PATH, and repository source access.
5
5
  ---
6
6
 
7
7
  # Semantic Atlas
@@ -37,28 +37,39 @@ produces no shared business-knowledge maintenance work.
37
37
 
38
38
  1. Read the task contract and repository instructions. Resolve the repository
39
39
  root and keep all commands in the task's assigned worktree.
40
- 2. Choose one distinctive business term from the user-visible behavior. Prefer
41
- an exact business name or stable task vocabulary over a framework, folder,
42
- class, or method name.
43
- 3. Before broad source discovery, run the Skill's identity- and
44
- contract-checking adapter whether or not map documents are present:
40
+ 2. Form one concise business query from the user-visible behavior. Use the
41
+ user's natural business language rather than guessing an exact map name.
42
+ 3. Before broad source discovery, run the public ranked-search command whether
43
+ or not map documents are present:
45
44
 
46
45
  ```bash
47
- node "<skill-directory>/scripts/query-context.mjs" \
48
- "<business-term>" --repo "<absolute-repository-root>"
46
+ semantic-atlas search "<business-query>" \
47
+ --repo "<absolute-repository-root>"
49
48
  ```
49
+ 4. Read the ordered `data.results`. Every result can represent any mapped node
50
+ kind and includes its `rank`, `score`, stable ID, name, kind, and matched
51
+ fields. Scores express relative relevance within one query, not correctness
52
+ probabilities. Choose the candidate whose business meaning fits the task;
53
+ use score and the gap between nearby results as ranking evidence rather than
54
+ as a substitute for task meaning.
55
+ 5. Query the chosen candidate's stable ID through the public context command:
50
56
 
51
- A package-bundled adapter invokes that package's CLI directly. A managed
52
- user Skill first requires the PATH CLI version recorded by `setup`, then
53
- verifies the v1 `context` envelope. This prevents an older command with the
54
- same executable name from being interpreted as the current product.
57
+ ```bash
58
+ semantic-atlas context "<stable-concept-id>" \
59
+ --repo "<absolute-repository-root>"
60
+ ```
55
61
 
56
- 4. Preserve the selector and bounded outcome for the task observation. When a
57
- context is returned, record the selected stable IDs as hypotheses.
62
+ A clear leading candidate proceeds directly. When nearby candidates express
63
+ materially different business scopes, compare their names, kinds, and task
64
+ meaning before choosing. Ask for clarification only when current task
65
+ evidence cannot distinguish a choice that would change the engineering
66
+ boundary.
67
+ 6. Preserve the original business query, bounded outcome, and selected stable
68
+ IDs for the task observation.
58
69
 
59
70
  ## Build The Business Model With Or Without A Map
60
71
 
61
- Route the probe result into one current-evidence investigation:
72
+ Route the search and context result into one current-evidence investigation:
62
73
 
63
74
  - A successful context result supplies likely business scope and source entry
64
75
  points. It can also return related business flows in `context.data.flows`.
@@ -66,12 +77,13 @@ Route the probe result into one current-evidence investigation:
66
77
  when an owner, upstream action, downstream consumer, shared data concept,
67
78
  invariant, interface, or business-relevant path could change the
68
79
  implementation scope.
69
- - `CONCEPT_AMBIGUOUS` supplies explicit candidates. Compare their stable IDs,
70
- names, kinds, and task meaning, then query the matching ID. Use bounded source
71
- evidence when current behavior is needed to choose.
72
- - `CONCEPT_NOT_FOUND` means the repository has a map without this vocabulary.
73
- Search current product documents and source using the task term, likely
74
- business synonyms, and directly observed collaborators.
80
+ - An empty search result means the repository has a map without sufficiently
81
+ related vocabulary. Search current product documents and source using the
82
+ original query, likely business synonyms, and directly observed
83
+ collaborators.
84
+ - Ranked candidates that remain indistinguishable after task-specific
85
+ comparison form a bounded ambiguous result. Continue with current evidence
86
+ when it can identify the owner; otherwise preserve the unresolved choice.
75
87
  - `MAP_NOT_FOUND` means the repository has no configured shared business map.
76
88
  When the map is absent, build the smallest source-supported business model needed for the task.
77
89
  Start from the user-visible outcome, identify only the owning business scope,
@@ -90,6 +102,11 @@ Route the probe result into one current-evidence investigation:
90
102
  evidence to find the replacement location without discarding unrelated
91
103
  stable business meaning.
92
104
 
105
+ Record a successful selection as `context` with the original business query
106
+ and selected stable ID. Record an empty result as `concept_not_found`, an
107
+ unresolved candidate choice as `concept_ambiguous`, and an unavailable search
108
+ contract as `unavailable`.
109
+
93
110
  For a mapless task, the observation query records the bounded outcome:
94
111
 
95
112
  ```json
@@ -101,6 +118,14 @@ For a mapless task, the observation query records the bounded outcome:
101
118
 
102
119
  ## Confirm The Current-Evidence Model
103
120
 
121
+ Identify who promises the task's outcome and controls its rules/state, then
122
+ separate that owner from callers, consumers and infrastructure collaborators.
123
+ When ownership or lifecycle coverage is uncertain, read the shared
124
+ [boundary-design reference](../semantic-atlas-maintenance/references/boundary-design.md)
125
+ and apply its source-to-map coverage and cohesion questions to this task only.
126
+ An ordinary engineering task needs a sufficient local model, not a complete
127
+ project partition or a map-authoring artifact.
128
+
104
129
  For every statement that could control the change:
105
130
 
106
131
  1. Open current source or tests that implement or exercise the behavior.
@@ -185,8 +210,9 @@ Add concepts, relations, and flows only when current evidence supports their
185
210
  accuracy. When no relevant flow changed, record no flow candidate.
186
211
 
187
212
  For every proposed candidate, identify the actual business responsibility from
188
- its outcomes, owned data/rules and collaborators. Reuse a mapped domain when
189
- that meaning matches; an independently meaningful new business area receives
213
+ its outcomes, owned data/rules, lifecycle and collaborators using the same
214
+ boundary-design reference when that ownership needs investigation. Reuse a mapped
215
+ domain when that meaning matches; an independently meaningful new business area receives
190
216
  its own stable `businessDomainId`, even when another domain already has a YAML.
191
217
  Use narrower capabilities for behavior belonging inside an existing area.
192
218
  The maintenance Skill rechecks this ownership before choosing files. A required
@@ -7,6 +7,8 @@ compatibility: Requires Node.js 24+, Git, the current semantic-atlas CLI, and re
7
7
  # Semantic Atlas Maintenance
8
8
 
9
9
  Create or maintain a source-supported business map through ordinary Git review.
10
+ Design a coherent, sufficiently complete responsibility before choosing its
11
+ map nodes and files; a plausible diagram can still omit or misplace business.
10
12
  Current source, tests, tracked product documents, and required runtime evidence
11
13
  decide business meaning; retained candidates supply investigation leads.
12
14
 
@@ -60,17 +62,19 @@ evidence. For candidate reconciliation, start from the selected origins and
60
62
  confirm their current evidence. Apply this sequence when creating the first map,
61
63
  adding later business capabilities, correcting meaning, or reconciling drift:
62
64
 
63
- 1. Inspect the affected map, tracked product documents, current source and tests.
64
- Follow callers and collaborators needed to confirm both endpoints of a
65
- relationship. Use runtime evidence when deployed state owns the conclusion.
66
- Preserve `MAP_NOT_FOUND` as the result when no map exists.
67
- 2. Identify the affected business responsibilities, owned data and rules,
68
- collaborators, and decisive evidence before selecting a YAML file. Independent
69
- responsibilities with their own business outcomes and rules get distinct
70
- business areas. Source directories and existing filenames are evidence, not
71
- the decision about ownership.
65
+ 1. Read [references/boundary-design.md](references/boundary-design.md). Establish
66
+ result promises, owned decisions/state, supported lifecycles and collaborator
67
+ limits from current source, tests and tracked product documents. Use runtime
68
+ evidence when deployed state owns the conclusion. Preserve `MAP_NOT_FOUND`
69
+ when no map exists.
70
+ 2. Build a source-to-map coverage account from independently discovered business
71
+ entries and state/rule owners. Challenge the proposed partition for overly
72
+ broad areas, fragmented lifecycles, omissions and misplaced concepts using
73
+ the reference. Record unresolved boundaries and the supported stopping point.
74
+ Complete this reasoning before choosing YAML files; for a local request,
75
+ keep the account limited to the requested neighborhood and its contracts.
72
76
  3. Reuse an existing domain and owning file when their business meaning matches
73
- the change. Give newly identified independent business areas their own
77
+ the confirmed partition. Give newly identified independent business areas
74
78
  meaningful `domain` roots and owning YAML files, including during incremental
75
79
  maintenance. Use `capability` and `part_of` for narrower responsibilities within
76
80
  an area. A single-business project or local task can still use one file.
@@ -129,8 +133,9 @@ git diff --check
129
133
  git diff -- docs/business-map/
130
134
  ```
131
135
 
132
- Inspect every changed business area in the Viewer. Confirm that domain
133
- selection matches the evidenced boundaries, cross-file relationships retain
136
+ Recheck source-to-map coverage against the final partition, including supported
137
+ lifecycle responsibilities missing from the old map. Inspect every changed
138
+ business area in the Viewer. Confirm that domain selection matches the evidenced boundaries, cross-file relationships retain
134
139
  external neighboring concepts, and scenario flows preserve their branches,
135
140
  outcomes and relationship-to-flow links. Moving YAML alone does not establish
136
141
  correct business containment. Check the complete graph together, including
@@ -153,15 +158,17 @@ a candidate-origin observation. A reorganization records its complete Git diff
153
158
  and integration state; retained origins stay available for accurate separate
154
159
  reconciliation instead of being consumed by a fabricated single-file result.
155
160
 
156
- Report the requested scope, boundaries, evidence, owning files, validation and
157
- render results, Git candidate, and actual review/integration state. Include
161
+ Report the requested scope, boundaries, source-to-map coverage and unresolved
162
+ ownership, evidence, owning files, validation and render results, Git candidate, and actual review/integration state. Include
158
163
  origins, classifications and the observation draft for candidate reconciliation.
159
164
 
160
165
  ## Review Phase
161
166
 
162
- Use the host workflow's ordinary independent review. Review durable business
163
- meaning, relation direction, flow branch meaning, evidence support,
164
- complete-graph validity, and whether the domain/file partition matches the
167
+ Use the host workflow's ordinary independent review. Start from current source
168
+ entry points and the requested outcomes, and challenge ownership and lifecycle
169
+ coverage independently of the map's own node list using the boundary-design
170
+ reference. Review durable business meaning, relation direction, flow branch
171
+ meaning, evidence support, complete-graph validity, and whether the domain/file partition matches the
165
172
  requested business scope. For candidate reconciliation, also check exact origin
166
173
  coverage, one-domain ownership, and whether discarded or unresolved conclusions
167
174
  correctly avoid a map edit.
@@ -0,0 +1,120 @@
1
+ # Design Business Boundaries
2
+
3
+ Use this reference before creating or changing a business partition, or when a
4
+ mapped owner, missing lifecycle or collaborator could change an engineering
5
+ conclusion. It owns boundary judgment; `map-authoring.md` owns YAML expression.
6
+ Apply it at the requested scale: a project map covers evidenced project
7
+ responsibilities, a local map covers one complete requested neighborhood, and an
8
+ engineering task establishes only the boundary needed for its decision.
9
+
10
+ ## Start With The Responsibility, Then Draw It
11
+
12
+ A useful business area is a coherent responsibility: someone relies on its
13
+ result, it owns decisions that make that result true, and its supported lifecycle
14
+ explains how the result is established, changed and ended. A user journey may
15
+ cross several such areas. Calling another action, sharing a table, or appearing
16
+ in the same execution path proves collaboration; ownership requires evidence
17
+ about who decides the rule, authoritative state or outcome.
18
+
19
+ Before choosing domains or files, describe each plausible owner in working
20
+ notes using this compact shape. A short local task can keep the same reasoning
21
+ in its answer; no separate tracked document is required.
22
+
23
+ | Responsibility | Required evidence |
24
+ | --- | --- |
25
+ | Result and beneficiary | What user, operator or dependent capability can rely on this area to accomplish |
26
+ | Owned decisions and state | Rules it decides, records whose meaning/lifecycle it controls, and meaningful changes it permits |
27
+ | Supported lifecycle | How the responsibility starts, is used or changed, and ends; include alternative entries and consequential failure/refusal paths that actually exist |
28
+ | Collaborators and limits | Inputs/outputs it exchanges, who owns the other decisions, and what current repository evidence can establish |
29
+ | Source support and uncertainty | Decisive entry points, state/rule owners and tests; unresolved ownership that could alter the partition |
30
+
31
+ Use the card to test candidate boundaries, not to invent missing product
32
+ features. A library can own recording, revising, withdrawing and making its
33
+ knowledge available while a chat consumer owns answering a conversation. Those
34
+ activities can remain one library responsibility even when different modules or
35
+ entry points implement them. If source supports only retrieval, retain only that
36
+ supported scope and state the missing ownership evidence.
37
+
38
+ ## Discover Coverage Independently Of The Existing Map
39
+
40
+ Build a bounded list of supported scenarios from current evidence before using
41
+ the map's node list as a completeness checklist. Start with product promises and
42
+ public/user/operator entry points. Cross-check durable state and its writers,
43
+ configuration and authorization owners, event/job/callback entries, and tests
44
+ that exercise consequential decisions. Follow only surfaces capable of changing
45
+ the requested business meaning. Technical directories help locate evidence;
46
+ their number and shape do not prescribe the business partition.
47
+
48
+ For each supported scenario, record its responsible owner and decisive source.
49
+ A compact table is sufficient: `scenario or lifecycle responsibility -> owner ->
50
+ source -> mapped concept/flow or reason omitted`. Use explicit collaborator,
51
+ implementation-detail or unresolved dispositions when those explain the result.
52
+ An omitted scenario needs such a reason; a node already drawn is not evidence
53
+ that the supported responsibility is complete.
54
+
55
+ Completeness means that a reader can find the important supported outcomes,
56
+ rules and lifecycle changes under the right owner. Several equivalent HTTP,
57
+ event or tool entries may share a single scenario and multiple anchors. Create a
58
+ separate scenario or operation when it has independently meaningful decisions
59
+ or outcomes. Method counts, generic CRUD lists and one flow per endpoint are not
60
+ completion measures. A project map accounts for its evidenced responsibilities;
61
+ a local request finishes at its relevant collaborator contracts.
62
+
63
+ ## Challenge Cohesion And Ownership
64
+
65
+ Use the following questions on the provisional partition before encoding it:
66
+
67
+ | Possible defect | Evidence that decides the correction |
68
+ | --- | --- |
69
+ | Too broad | Can two groups deliver separately meaningful outcomes and change their rules or authoritative state for different reasons? Give each an owner and retain their collaboration. |
70
+ | Too fragmented | Do the fragments establish, change or end the same promised result under the same rules and lifecycle? Keep them together as capabilities/scenarios; use source anchors for technical layers. |
71
+ | Incomplete | Does an independently found entry, state transition, configuration or exit path have meaningful behavior with no represented owner? Include it at the right granularity, or identify the evidence still missing. |
72
+ | Misplaced | Is a concept nested under its caller, consumer or source directory even though another responsibility decides its meaning? Move containment to that owner and express the usage as a relation. |
73
+
74
+ Treat these as evidence tests, not requirements for a fixed number of domains.
75
+ One area may have many scenarios; many callers may share one action. A shared
76
+ record has one primary business owner even when other areas read or write it.
77
+ Determine ownership from the rules and lifecycle authority, and represent each
78
+ confirmed writer's collaboration explicitly. Shared identity follows business
79
+ meaning: one physical table can support distinct responsibility-specific
80
+ concepts, while equivalent concepts share one identity across callers.
81
+
82
+ Shared technical capabilities can be independently meaningful. For example, a
83
+ reusable execution system may own definition/instance separation, cancellation,
84
+ resumption and completion contracts across several products. Represent that
85
+ supported responsibility at its own level when relevant. An adapter, conversion
86
+ helper or queue wrapper usually supplies evidence behind another operation;
87
+ its callable methods alone do not establish a new business area. Product
88
+ configuration belongs to the result it configures; generic execution lifecycle
89
+ belongs to the execution responsibility. Inspect who owns each decision.
90
+
91
+ ## Preserve The Repository Boundary
92
+
93
+ Distinguish business ownership from where a call is made. For a remote parser,
94
+ commerce service or third-party channel, map the local integration responsibility
95
+ and the evidenced interface or external collaborator. State external ownership
96
+ in its name, summary or notes and link the relevant contract anchors. Expand
97
+ that collaborator's internal business only when it belongs to the requested
98
+ scope and current evidence supports it. An interface can be shown without
99
+ inventing an external domain or an internal implementation.
100
+
101
+ A local orchestration flow can reference independently owned actions to explain
102
+ an end-to-end result. Each concept keeps its owner; flow participation does not
103
+ transfer containment. Preserve separate owners when a business process spans
104
+ repositories, and state which part the current repository actually implements.
105
+
106
+ ## Decide And Stop
107
+
108
+ Choose the partition when each retained owner has a source-supported promise
109
+ and decision/state responsibility, important supported scenarios have an owner,
110
+ and dependencies are expressed at their evidenced boundaries. Then translate
111
+ that partition into the existing domain/capability/scenario model and owning
112
+ files. Preserve stable IDs when identity remains the same.
113
+
114
+ When uncertainty would change ownership, retain it explicitly and continue only
115
+ the supported portion. Finish a local investigation when the task's behavior,
116
+ owner and necessary collaborator contracts are established. Complete map work
117
+ when source-to-map coverage explains the requested responsibility and the
118
+ boundary challenge reveals no material omission or misplaced ownership. Schema
119
+ validity and a readable diagram are separate checks; neither proves that this
120
+ business partition is correct.
@@ -1,9 +1,10 @@
1
1
  # Business Map Authoring
2
2
 
3
- Use this reference when creating or updating map documents. The Skill owns the
4
- common business-ownership decisions for every edit; this page supplies the
5
- version 1 authoring shape. The installed package's `docs/map-format.md` defines the complete format,
6
- and `semantic-atlas validate` checks all documents together.
3
+ Use this reference when encoding a confirmed business partition. The Skill owns
4
+ the workflow; [boundary-design.md](boundary-design.md) supplies boundary judgment.
5
+ This page supplies the version 1 authoring shape. The installed package's
6
+ `docs/map-format.md` defines the complete format, and `semantic-atlas validate`
7
+ checks all documents together.
7
8
 
8
9
  ## Document And Concept Shape
9
10
 
package/README.md CHANGED
@@ -133,16 +133,20 @@ business flows, anchors, validation rules, and lookup behavior.
133
133
 
134
134
  ```bash
135
135
  semantic-atlas validate --repo /path/to/repository
136
- semantic-atlas context "Checkout" --repo /path/to/repository
136
+ semantic-atlas search "order confirmation notification" --repo /path/to/repository
137
+ semantic-atlas context "engagement.notifications.send-order-confirmation" --repo /path/to/repository
137
138
  semantic-atlas render --repo /path/to/repository --output ./business-map.html
138
139
  semantic-atlas project add /path/to/repository
139
140
  semantic-atlas web
140
141
  ```
141
142
 
142
- `validate` checks every map document as one graph. `context` returns the
143
- selected concept, containment, direct incoming and outgoing relationships,
144
- related concepts, source-navigation anchors, and complete related flows in a
145
- versioned JSON envelope.
143
+ `validate` checks every map document as one graph. `search` ranks up to five
144
+ concepts of any business-node kind for a natural-language query. Each result
145
+ includes a query-relative score, stable ID, node kind, and the fields that
146
+ matched. Use the selected stable ID with `context` to return that concept's
147
+ containment, direct incoming and outgoing relationships, related concepts,
148
+ source-navigation anchors, and complete related flows in a versioned JSON
149
+ envelope. Existing exact and partial `context` selectors remain supported.
146
150
  `render` produces a deterministic, self-contained interactive HTML Viewer from
147
151
  that same normalized map. Its compact toolbar switches between Relationships
148
152
  and Flows; each view then selects a business domain or scenario flow. Drag to pan,
package/README.zh-CN.md CHANGED
@@ -134,15 +134,19 @@ flows: []
134
134
 
135
135
  ```bash
136
136
  semantic-atlas validate --repo /path/to/repository
137
- semantic-atlas context "Checkout" --repo /path/to/repository
137
+ semantic-atlas search "订单确认通知" --repo /path/to/repository
138
+ semantic-atlas context "engagement.notifications.send-order-confirmation" --repo /path/to/repository
138
139
  semantic-atlas render --repo /path/to/repository --output ./business-map.html
139
140
  semantic-atlas project add /path/to/repository
140
141
  semantic-atlas web
141
142
  ```
142
143
 
143
- `validate` 把所有地图文档作为一张完整图进行检查。`context` 使用带版本的 JSON
144
- 结果返回选中的概念、所属层级、直接输入和输出关系、相关概念、源码导航锚点及
145
- 完整相关流程。`render` 从同一个标准化地图生成确定性的单文件交互 Viewer。
144
+ `validate` 把所有地图文档作为一张完整图进行检查。`search` 根据自然语言查询,
145
+ 从所有类型的业务节点中返回最多五个排序结果;每个结果包含查询内的相对相关度、
146
+ 稳定 ID、节点类型和命中字段。选定候选后,把稳定 ID 交给 `context`,即可通过
147
+ 带版本的 JSON 结果取得该概念的所属层级、直接输入和输出关系、相关概念、源码
148
+ 导航锚点及完整相关流程。原有的 `context` 精确和部分选择器继续兼容。`render`
149
+ 从同一个标准化地图生成确定性的单文件交互 Viewer。
146
150
  顶部工具栏先在“关系”和“流程”之间切换,再选择业务域或场景流程;拖动可以
147
151
  平移,鼠标滚轮和按钮可以缩放,`Fit` 会恢复当前完整视图。卡片默认只显示业务
148
152
  类型、标题和描述,不会让代码路径挤占地图空间。点击卡片,或聚焦后按 `Enter`,
@@ -1,4 +1,4 @@
1
- import type { CliError, ContextEnvelope, ValidateEnvelope } from "../contracts/cli.js";
1
+ import type { CliError, ContextEnvelope, SearchEnvelope, ValidateEnvelope } from "../contracts/cli.js";
2
2
  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";
@@ -29,6 +29,7 @@ export declare class MapApplication {
29
29
  constructor(loader?: MapDocumentLoader, validator?: MapValidator);
30
30
  validate(repositoryPath: string): Promise<ValidateEnvelope>;
31
31
  context(repositoryPath: string, selector: string): Promise<ContextEnvelope>;
32
+ search(repositoryPath: string, query: string): Promise<SearchEnvelope>;
32
33
  project(repositoryPath: string): Promise<MapProjectionResult>;
33
34
  viewerProject(repositoryPath: string, metadata?: ViewerProjectMetadata): Promise<ViewerProjectResult>;
34
35
  private loadValidatedMap;
@@ -1 +1 @@
1
- {"version":3,"file":"map-application.d.ts","sourceRoot":"","sources":["../../src/application/map-application.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAwB,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAA6B,MAAM,+BAA+B,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CA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pC,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,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAgBtE,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;YAcjB,gBAAgB;CAsC/B"}
@@ -5,6 +5,7 @@ import { MapDocumentLoader, RepositoryResolutionError } from "../map/map-documen
5
5
  import { BusinessGraph } from "../map/business-graph.js";
6
6
  import { MapValidator } from "../map/map-validator.js";
7
7
  import { ContextQueryService } from "../query/context-query-service.js";
8
+ import { ConceptSearchService } from "../query/concept-search-service.js";
8
9
  import { MapProjector } from "../rendering/map-projector.js";
9
10
  export class MapApplication {
10
11
  loader;
@@ -66,6 +67,21 @@ export class MapApplication {
66
67
  data: query.data,
67
68
  };
68
69
  }
70
+ async search(repositoryPath, query) {
71
+ const result = await this.loadValidatedMap(repositoryPath);
72
+ if (!result.ok)
73
+ return searchError(result);
74
+ return {
75
+ schemaVersion: 1,
76
+ ok: true,
77
+ command: "search",
78
+ repository: result.map.source,
79
+ data: {
80
+ query,
81
+ results: new ConceptSearchService(result.map.nodes).search(query),
82
+ },
83
+ };
84
+ }
69
85
  async project(repositoryPath) {
70
86
  const result = await this.loadValidatedMap(repositoryPath);
71
87
  if (!result.ok)
@@ -150,4 +166,13 @@ function contextError(result) {
150
166
  error: result.error,
151
167
  };
152
168
  }
169
+ function searchError(result) {
170
+ return {
171
+ schemaVersion: 1,
172
+ ok: false,
173
+ command: "search",
174
+ ...(result.repository ? { repository: result.repository } : {}),
175
+ error: result.error,
176
+ };
177
+ }
153
178
  //# sourceMappingURL=map-application.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"map-application.js","sourceRoot":"","sources":["../../src/application/map-application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,kBAAkB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAI7B,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,EAAE,YAAY,EAA8B,MAAM,+BAA+B,CAAC;AAsCzF,MAAM,OAAO,cAAc;IAEN;IACA;IAFnB,YACmB,SAAS,IAAI,iBAAiB,EAAE,EAChC,YAAY,IAAI,YAAY,EAAE;QAD9B,WAAM,GAAN,MAAM,CAA0B;QAChC,cAAS,GAAT,SAAS,CAAqB;IAC9C,CAAC;IAEG,KAAK,CAAC,QAAQ,CAAC,cAAsB;QAC1C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAC3D,IAAI,CAAC,MAAM,CAAC,EAAE;YAAE,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;QAE7C,OAAO;YACL,aAAa,EAAE,CAAC;YAChB,EAAE,EAAE,IAAI;YACR,OAAO,EAAE,UAAU;YACnB,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM;YAC7B,IAAI,EAAE;gBACJ,aAAa,EAAE,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM;gBAC1C,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM;gBAClC,aAAa,EAAE,MAAM,CAAC,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AW,iBAAiB;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACnD,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,wBAAsB,MAAM,CAC1B,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,OAAO,CAAC,EAAE,UAAU,GACnB,OAAO,CAAC,YAAY,CAAC,CAmOvB;AAED,wBAAsB,gBAAgB,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC,CA2B3F"}
@@ -90,6 +90,14 @@ export async function runCli(arguments_, runtime) {
90
90
  openBrowser: options.open,
91
91
  });
92
92
  });
93
+ program
94
+ .command("search")
95
+ .description(t("cli.search"))
96
+ .argument("<query>", t("cli.query"))
97
+ .option("--repo <path>", t("cli.repo"), process.cwd())
98
+ .action(async (query, options) => {
99
+ commandEnvelope = await application.search(options.repo, query);
100
+ });
93
101
  program
94
102
  .command("context")
95
103
  .description(t("cli.context"))
@@ -1 +1 @@
1
- {"version":3,"file":"run-cli.js","sourceRoot":"","sources":["../../src/cli/run-cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,kBAAkB,CAAC;AACrC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,cAAc,EAA4B,MAAM,mCAAmC,CAAC;AAkB7F,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;A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AChC,UAAU;gBACV,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,SAAS;gBACtC,aAAa,EAAE,MAAM,CAAC,UAAU,CAAC,aAAa;gBAC9C,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,SAAS;aACvC;SACF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;QACrD,OAAO;YACL,aAAa,EAAE,CAAC;YAChB,EAAE,EAAE,KAAK;YACT,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,KAAK,EAAE;gBACL,IAAI,EAAE,eAAe;gBACrB,OAAO,EAAE,CAAC,CAAC,iBAAiB,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC1E,UAAU;aACX;SACF,CAAC;IACJ,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CAAC,KAAc;IAClC,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC;AACzE,CAAC"}
@@ -120,6 +120,16 @@ export interface ConceptCandidate {
120
120
  readonly kind: BusinessNode["kind"];
121
121
  readonly documentId: string;
122
122
  }
123
+ export type ConceptSearchField = "id" | "name" | "alias" | "summary";
124
+ export interface ConceptSearchResult extends ConceptCandidate {
125
+ readonly rank: number;
126
+ readonly score: number;
127
+ readonly matchedFields: readonly ConceptSearchField[];
128
+ }
129
+ export interface SearchData {
130
+ readonly query: string;
131
+ readonly results: readonly ConceptSearchResult[];
132
+ }
123
133
  export interface ContextRelation {
124
134
  readonly type: BusinessRelation["type"];
125
135
  readonly summary: string;
@@ -181,6 +191,7 @@ export interface ReconciliationStatusData {
181
191
  }
182
192
  export type ValidateEnvelope = CliSuccessEnvelope<"validate", ValidateData> | CliErrorEnvelope<"validate">;
183
193
  export type ContextEnvelope = CliSuccessEnvelope<"context", ContextData> | CliErrorEnvelope<"context">;
194
+ export type SearchEnvelope = CliSuccessEnvelope<"search", SearchData> | CliErrorEnvelope<"search">;
184
195
  export type RenderEnvelope = CliSuccessEnvelope<"render", RenderData> | CliErrorEnvelope<"render">;
185
196
  export type WebEnvelope = StandaloneCliSuccessEnvelope<"web", WebData> | CliErrorEnvelope<"web">;
186
197
  export type ProjectAddEnvelope = CliSuccessEnvelope<"project add", ProjectAddData> | CliErrorEnvelope<"project add">;