semantic-atlas 2.3.1 → 2.5.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 +25 -8
- package/.agents/skills/semantic-atlas/scripts/query-context.mjs +8 -17
- package/.agents/skills/semantic-atlas-maintenance/SKILL.md +129 -83
- package/.agents/skills/semantic-atlas-maintenance/agents/openai.yaml +2 -2
- package/.agents/skills/semantic-atlas-maintenance/references/map-authoring.md +100 -0
- package/.agents/skills/semantic-atlas-maintenance/references/reconciliation.md +33 -5
- package/README.md +91 -4
- package/README.zh-CN.md +79 -3
- package/dist/application/map-application.d.ts.map +1 -1
- package/dist/application/map-application.js +9 -11
- package/dist/application/map-application.js.map +1 -1
- package/dist/cli/localized-command.d.ts +9 -0
- package/dist/cli/localized-command.d.ts.map +1 -0
- package/dist/cli/localized-command.js +78 -0
- package/dist/cli/localized-command.js.map +1 -0
- package/dist/cli/observation-commands.d.ts.map +1 -1
- package/dist/cli/observation-commands.js +5 -6
- package/dist/cli/observation-commands.js.map +1 -1
- package/dist/cli/reconciliation-command.d.ts.map +1 -1
- package/dist/cli/reconciliation-command.js +3 -4
- package/dist/cli/reconciliation-command.js.map +1 -1
- package/dist/cli/run-cli.d.ts.map +1 -1
- package/dist/cli/run-cli.js +54 -56
- package/dist/cli/run-cli.js.map +1 -1
- package/dist/contracts/cli.d.ts.map +1 -1
- package/dist/contracts/map.d.ts +6 -6
- package/dist/contracts/map.d.ts.map +1 -1
- package/dist/contracts/map.js +38 -29
- package/dist/contracts/map.js.map +1 -1
- package/dist/contracts/observation.d.ts +3 -3
- package/dist/contracts/observation.d.ts.map +1 -1
- package/dist/contracts/observation.js +109 -68
- package/dist/contracts/observation.js.map +1 -1
- package/dist/contracts/project.d.ts.map +1 -1
- package/dist/contracts/project.js +4 -2
- package/dist/contracts/project.js.map +1 -1
- package/dist/i18n/index.d.ts +540 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +52 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/locale.d.ts +4 -0
- package/dist/i18n/locale.d.ts.map +1 -0
- package/dist/i18n/locale.js +14 -0
- package/dist/i18n/locale.js.map +1 -0
- package/dist/i18n/locales/en/cli.d.ts +57 -0
- package/dist/i18n/locales/en/cli.d.ts.map +1 -0
- package/dist/i18n/locales/en/cli.js +56 -0
- package/dist/i18n/locales/en/cli.js.map +1 -0
- package/dist/i18n/locales/en/errors.d.ts +90 -0
- package/dist/i18n/locales/en/errors.d.ts.map +1 -0
- package/dist/i18n/locales/en/errors.js +89 -0
- package/dist/i18n/locales/en/errors.js.map +1 -0
- package/dist/i18n/locales/en/viewer.d.ts +118 -0
- package/dist/i18n/locales/en/viewer.d.ts.map +1 -0
- package/dist/i18n/locales/en/viewer.js +117 -0
- package/dist/i18n/locales/en/viewer.js.map +1 -0
- package/dist/i18n/locales/zh-CN/cli.d.ts +57 -0
- package/dist/i18n/locales/zh-CN/cli.d.ts.map +1 -0
- package/dist/i18n/locales/zh-CN/cli.js +56 -0
- package/dist/i18n/locales/zh-CN/cli.js.map +1 -0
- package/dist/i18n/locales/zh-CN/errors.d.ts +90 -0
- package/dist/i18n/locales/zh-CN/errors.d.ts.map +1 -0
- package/dist/i18n/locales/zh-CN/errors.js +89 -0
- package/dist/i18n/locales/zh-CN/errors.js.map +1 -0
- package/dist/i18n/locales/zh-CN/viewer.d.ts +118 -0
- package/dist/i18n/locales/zh-CN/viewer.d.ts.map +1 -0
- package/dist/i18n/locales/zh-CN/viewer.js +117 -0
- package/dist/i18n/locales/zh-CN/viewer.js.map +1 -0
- package/dist/insights/insight-service.d.ts.map +1 -1
- package/dist/insights/insight-service.js +5 -4
- package/dist/insights/insight-service.js.map +1 -1
- package/dist/map/business-flow-validator.d.ts.map +1 -1
- package/dist/map/business-flow-validator.js +18 -14
- package/dist/map/business-flow-validator.js.map +1 -1
- package/dist/map/business-graph.d.ts.map +1 -1
- package/dist/map/business-graph.js +7 -9
- package/dist/map/business-graph.js.map +1 -1
- package/dist/map/map-document-loader.d.ts.map +1 -1
- package/dist/map/map-document-loader.js +7 -9
- package/dist/map/map-document-loader.js.map +1 -1
- package/dist/map/map-validator.d.ts.map +1 -1
- package/dist/map/map-validator.js +20 -15
- package/dist/map/map-validator.js.map +1 -1
- package/dist/observations/observation-application.d.ts.map +1 -1
- package/dist/observations/observation-application.js +17 -12
- package/dist/observations/observation-application.js.map +1 -1
- package/dist/observations/observation-claim-manager.d.ts.map +1 -1
- package/dist/observations/observation-claim-manager.js +16 -18
- package/dist/observations/observation-claim-manager.js.map +1 -1
- package/dist/observations/observation-store.d.ts.map +1 -1
- package/dist/observations/observation-store.js +22 -18
- package/dist/observations/observation-store.js.map +1 -1
- package/dist/observations/repository-identity.d.ts.map +1 -1
- package/dist/observations/repository-identity.js +5 -7
- package/dist/observations/repository-identity.js.map +1 -1
- package/dist/projects/project-registration-service.d.ts.map +1 -1
- package/dist/projects/project-registration-service.js +4 -1
- package/dist/projects/project-registration-service.js.map +1 -1
- package/dist/projects/project-store.d.ts.map +1 -1
- package/dist/projects/project-store.js +14 -14
- package/dist/projects/project-store.js.map +1 -1
- package/dist/reconciliation/reconciliation-service.d.ts.map +1 -1
- package/dist/reconciliation/reconciliation-service.js +6 -8
- package/dist/reconciliation/reconciliation-service.js.map +1 -1
- package/dist/rendering/diagram-image.d.ts +17 -0
- package/dist/rendering/diagram-image.d.ts.map +1 -0
- package/dist/rendering/diagram-image.js +102 -0
- package/dist/rendering/diagram-image.js.map +1 -0
- package/dist/rendering/flow-projector.d.ts.map +1 -1
- package/dist/rendering/flow-projector.js +14 -9
- package/dist/rendering/flow-projector.js.map +1 -1
- package/dist/rendering/html.d.ts +2 -0
- package/dist/rendering/html.d.ts.map +1 -1
- package/dist/rendering/html.js +5 -0
- package/dist/rendering/html.js.map +1 -1
- package/dist/rendering/manual-layout.d.ts +4 -0
- package/dist/rendering/manual-layout.d.ts.map +1 -0
- package/dist/rendering/manual-layout.js +72 -0
- package/dist/rendering/manual-layout.js.map +1 -0
- package/dist/rendering/map-camera.d.ts.map +1 -1
- package/dist/rendering/map-camera.js +1 -1
- package/dist/rendering/map-camera.js.map +1 -1
- package/dist/rendering/map-projector.d.ts.map +1 -1
- package/dist/rendering/map-projector.js +44 -35
- 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 +225 -79
- package/dist/rendering/viewer-browser.js.map +1 -1
- package/dist/rendering/viewer-diagram.d.ts +4 -2
- package/dist/rendering/viewer-diagram.d.ts.map +1 -1
- package/dist/rendering/viewer-diagram.js +51 -8
- package/dist/rendering/viewer-diagram.js.map +1 -1
- package/dist/rendering/viewer-layout.d.ts.map +1 -1
- package/dist/rendering/viewer-layout.js.map +1 -1
- package/dist/rendering/viewer-legend.d.ts +4 -0
- package/dist/rendering/viewer-legend.d.ts.map +1 -0
- package/dist/rendering/viewer-legend.js +138 -0
- package/dist/rendering/viewer-legend.js.map +1 -0
- package/dist/rendering/viewer-page.d.ts.map +1 -1
- package/dist/rendering/viewer-page.js +76 -79
- package/dist/rendering/viewer-page.js.map +1 -1
- package/dist/setup/managed-skill-installer.d.ts +1 -1
- package/dist/setup/managed-skill-installer.d.ts.map +1 -1
- package/dist/setup/managed-skill-installer.js +33 -33
- package/dist/setup/managed-skill-installer.js.map +1 -1
- package/dist/setup/package-identity.d.ts.map +1 -1
- package/dist/setup/package-identity.js +6 -5
- package/dist/setup/package-identity.js.map +1 -1
- package/dist/setup/package-upgrader.d.ts.map +1 -1
- package/dist/setup/package-upgrader.js +16 -13
- package/dist/setup/package-upgrader.js.map +1 -1
- package/dist/web/local-web-application.d.ts +1 -0
- package/dist/web/local-web-application.d.ts.map +1 -1
- package/dist/web/local-web-application.js +12 -7
- 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 +18 -8
- package/dist/web/local-web-server.js.map +1 -1
- package/dist/web/web-command-service.js +1 -1
- package/dist/web/web-command-service.js.map +1 -1
- package/docs/architecture.md +103 -24
- package/docs/evaluation.md +22 -0
- package/docs/index.md +2 -2
- package/docs/map-format.md +31 -1
- package/docs/observations.md +11 -0
- package/docs/product-contract.md +51 -2
- package/package.json +12 -3
|
@@ -11,7 +11,7 @@ export class WebCommandService {
|
|
|
11
11
|
this.projectStore = projectStore;
|
|
12
12
|
}
|
|
13
13
|
async start(options) {
|
|
14
|
-
const repositoryPaths = options.repositoryPaths ?? await this.projectStore.read();
|
|
14
|
+
const repositoryPaths = options.repositoryPaths ?? (await this.projectStore.read());
|
|
15
15
|
const application = new LocalWebApplication(this.mapApplication, repositoryPaths);
|
|
16
16
|
const server = await startLocalWebServer({ application, port: options.port });
|
|
17
17
|
installShutdownHandlers(server);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-command-service.js","sourceRoot":"","sources":["../../src/web/web-command-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAuB,MAAM,uBAAuB,CAAC;AAajF,MAAM,OAAO,iBAAiB;IAET;IACA;IAFnB,YACmB,cAA8B,EAC9B,YAA0B;QAD1B,mBAAc,GAAd,cAAc,CAAgB;QAC9B,iBAAY,GAAZ,YAAY,CAAc;IAC1C,CAAC;IAEG,KAAK,CAAC,KAAK,CAAC,OAAwB;QACzC,MAAM,eAAe,GAAG,OAAO,CAAC,eAAe,IAAI,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"web-command-service.js","sourceRoot":"","sources":["../../src/web/web-command-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAuB,MAAM,uBAAuB,CAAC;AAajF,MAAM,OAAO,iBAAiB;IAET;IACA;IAFnB,YACmB,cAA8B,EAC9B,YAA0B;QAD1B,mBAAc,GAAd,cAAc,CAAgB;QAC9B,iBAAY,GAAZ,YAAY,CAAc;IAC1C,CAAC;IAEG,KAAK,CAAC,KAAK,CAAC,OAAwB;QACzC,MAAM,eAAe,GAAG,OAAO,CAAC,eAAe,IAAI,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;QACpF,MAAM,WAAW,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;QAClF,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;QAC9E,uBAAuB,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,OAAO,CAAC,WAAW;YAAE,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACxD,OAAO;YACL,GAAG,EAAE,MAAM,CAAC,GAAG;YACf,eAAe,EAAE,MAAM,CAAC,eAAe;SACxC,CAAC;IACJ,CAAC;CACF;AAED,SAAS,uBAAuB,CAAC,MAAsB;IACrD,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,MAAM,KAAK,GAAG,GAAS,EAAE;QACvB,IAAI,OAAO;YAAE,OAAO;QACpB,OAAO,GAAG,IAAI,CAAC;QACf,KAAK,MAAM,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE;YAC/B,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC9B,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,kBAAkB,CAAC,GAAW;IACrC,MAAM,OAAO,GACX,OAAO,CAAC,QAAQ,KAAK,QAAQ;QAC3B,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG,CAAC,EAAE;QAC1C,CAAC,CAAC,OAAO,CAAC,QAAQ,KAAK,OAAO;YAC5B,CAAC,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE;YAC5D,CAAC,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IACrD,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,SAAS,EAAE;QACzD,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;IACH,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE;QACvB,kFAAkF;IACpF,CAAC,CAAC,CAAC;IACH,KAAK,CAAC,KAAK,EAAE,CAAC;AAChB,CAAC"}
|
package/docs/architecture.md
CHANGED
|
@@ -162,8 +162,17 @@ tracked business-map copy.
|
|
|
162
162
|
Owns the compact human inspection surface shared by static export and Web. It
|
|
163
163
|
combines project selection, relationship/flow switching, business-domain or
|
|
164
164
|
flow selection, map statistics, a restrained legend, pan, zoom, and fit-to-view
|
|
165
|
-
around shared SVG geometry and selectable HTML text.
|
|
166
|
-
selection and copying
|
|
165
|
+
around shared SVG geometry and selectable HTML text. Inline text boxes accept
|
|
166
|
+
native selection and copying while card padding and
|
|
167
|
+
blank content space reach the SVG node underneath. Dragging a node updates
|
|
168
|
+
view-local offsets from the measured automatic layout; dragging empty diagram
|
|
169
|
+
space pans the map. `repositionDiagram` moves incident routes and their labels,
|
|
170
|
+
clips endpoints to card or diamond boundaries, and expands the complete image
|
|
171
|
+
bounds. When a drag extends the canvas origin, the camera compensates so the
|
|
172
|
+
node stays under the pointer. Offsets survive text reflow and view switching
|
|
173
|
+
within the current model; reset clears the current view's offsets and fits its
|
|
174
|
+
automatic arrangement. Replacing a Web project model discards that model's
|
|
175
|
+
manual positions. Cards render stable
|
|
167
176
|
business meaning only. Clicking a node or activating it with the keyboard opens its navigation anchors and
|
|
168
177
|
derived related-flow links in an overlaid desktop side panel or narrow-screen
|
|
169
178
|
bottom panel. Selecting a related flow switches to its projected path. Camera
|
|
@@ -173,8 +182,27 @@ camera follows content reflow; an explicitly zoomed or panned camera keeps its
|
|
|
173
182
|
current view. Its browser interaction state is disposable and never
|
|
174
183
|
enters tracked map data.
|
|
175
184
|
|
|
185
|
+
`ViewerLegend` supplies one keyboard-accessible, scrollable reading guide in the
|
|
186
|
+
shared toolbar, including narrow screens. Its bilingual examples explain all
|
|
187
|
+
relationship kinds, concept and external-boundary styling, and flow shapes and
|
|
188
|
+
branches. Relationship arrows read from source to target, including consumer to
|
|
189
|
+
interface for `consumes`; dashed containment is displayed as parent contains
|
|
190
|
+
child without an arrow. Flow arrows separately express step progression.
|
|
191
|
+
|
|
192
|
+
`renderDiagramImage` snapshots the selected diagram after text layout settles,
|
|
193
|
+
resets the snapshot to full layout bounds, and rasterizes its SVG geometry and
|
|
194
|
+
current HTML text through bundled `html-to-image`. SVG paint styles are captured
|
|
195
|
+
explicitly because that library deep-clones SVG without copying descendant
|
|
196
|
+
styles. The off-screen snapshot is removed on success or failure; the live
|
|
197
|
+
camera and translated DOM stay unchanged. Small diagrams use 2× resolution;
|
|
198
|
+
large images stay within 64 million pixels and 16384 pixels per side. Diagrams
|
|
199
|
+
that cannot fit at native text size report a limit and suggest a business-domain
|
|
200
|
+
or flow selection. Export controls prevent duplicate jobs and report completion
|
|
201
|
+
or failure. The Web policy permits generated `data:` images while keeping
|
|
202
|
+
external image sources blocked.
|
|
203
|
+
|
|
176
204
|
Static export embeds its complete project model, diagram layers, and the bundled
|
|
177
|
-
Dagre browser
|
|
205
|
+
Dagre and image-export browser runtimes, with no network dependency. Web mode initially
|
|
178
206
|
receives only project IDs and display names, then replaces its single current
|
|
179
207
|
model and SVG set when a selection loads. Empty, loading, ready, and unavailable
|
|
180
208
|
states are browser-session state. A monotonically increasing request generation
|
|
@@ -214,6 +242,45 @@ Owns argument parsing, exit status, machine-readable envelopes, and concise
|
|
|
214
242
|
human presentation. It composes application services and performs no graph
|
|
215
243
|
interpretation of its own.
|
|
216
244
|
|
|
245
|
+
### Internationalization
|
|
246
|
+
|
|
247
|
+
`src/i18n/` owns locale normalization and i18next integration. The CLI normally
|
|
248
|
+
uses the first nonempty system variable in `LC_ALL`, `LC_MESSAGES`, and `LANG`.
|
|
249
|
+
`SEMANTIC_ATLAS_LANG` is an optional debugging and testing override of that
|
|
250
|
+
selection, rather than a normal setup requirement. Locale matching ignores case,
|
|
251
|
+
accepts underscores and POSIX encoding or modifier suffixes, and maps `zh`,
|
|
252
|
+
`zh-CN`, `zh-SG`, and `zh-Hans` (including script-region variants) to Simplified
|
|
253
|
+
Chinese. Missing or unsupported system settings select English.
|
|
254
|
+
|
|
255
|
+
The Viewer uses `i18next-browser-languagedetector` with only its `navigator`
|
|
256
|
+
detector enabled. Browser language preferences select the first supported
|
|
257
|
+
language; the fallback is English. Traditional Chinese locales are unsupported.
|
|
258
|
+
Detection does not persist a language preference, so opening the same export
|
|
259
|
+
in another browser follows that browser's preferences. Server environment
|
|
260
|
+
variables determine CLI diagnostics only.
|
|
261
|
+
|
|
262
|
+
Independent catalogs under `src/i18n/locales/en/` and
|
|
263
|
+
`src/i18n/locales/zh-CN/` group CLI, diagnostics, and Viewer messages. i18next
|
|
264
|
+
owns resource lookup, interpolation, and English fallback. Node instances are
|
|
265
|
+
isolated by locale; Zod uses its official locale error maps per parse. External
|
|
266
|
+
parser, operating-system, and npm diagnostics retain their original details.
|
|
267
|
+
HTML adapters escape translated output at the rendering boundary.
|
|
268
|
+
|
|
269
|
+
The Viewer embeds its resources, i18next runtime, and browser language detector
|
|
270
|
+
in the self-contained page. Server-rendered markup uses deterministic English
|
|
271
|
+
fallback text with translation bindings. The browser translates product-owned
|
|
272
|
+
text and attributes on startup and after each lazy project load, before measuring
|
|
273
|
+
the diagram. User-authored content remains outside those bindings. Safe project
|
|
274
|
+
error responses include a translation key for the browser to render in its own
|
|
275
|
+
language. The JSON model escapes script delimiters before embedding resources.
|
|
276
|
+
|
|
277
|
+
To add a language, create its catalogs using the same keys and interpolation
|
|
278
|
+
names, register its resources in `src/i18n/index.ts` and aliases in
|
|
279
|
+
`src/i18n/locale.ts`, extend the Viewer's supported languages, and add the
|
|
280
|
+
corresponding Zod locale. The internationalization tests check catalog parity
|
|
281
|
+
and public language behavior. Runtime language scope is owned by the
|
|
282
|
+
[product contract](product-contract.md#runtime-language).
|
|
283
|
+
|
|
217
284
|
### Business Understanding Agent Skill
|
|
218
285
|
|
|
219
286
|
Owns the business-understanding workflow for every business-changing task. It
|
|
@@ -233,23 +300,32 @@ contract when another installed product uses the same executable name.
|
|
|
233
300
|
|
|
234
301
|
### Maintenance Agent Skill
|
|
235
302
|
|
|
236
|
-
Owns
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
303
|
+
Owns business-map authoring and candidate-driven maintenance. Both paths use
|
|
304
|
+
the same evidence-based ownership sequence before every edit: confirm affected
|
|
305
|
+
responsibilities, reuse still-correct owners, create owners for new independent
|
|
306
|
+
business areas, and preserve shared identities and relation/flow ownership.
|
|
307
|
+
These decisions apply equally to the first map and later maintenance. The
|
|
308
|
+
[map format](map-format.md#business-ownership-and-file-boundaries) owns the
|
|
309
|
+
common model.
|
|
310
|
+
|
|
311
|
+
Direct authoring handles requested creation, extension, correction or ownership
|
|
312
|
+
reorganization from current evidence even when no retained candidates exist.
|
|
313
|
+
Its complete necessary map change follows normal Git validation, rendering,
|
|
314
|
+
review and integration. Candidate reconciliation instead begins with
|
|
315
|
+
`ReconciliationService`'s report, confirms the selected domain's real ownership,
|
|
316
|
+
and edits or creates its owning YAML. A mapless candidate run can seed one
|
|
317
|
+
bounded domain. Current evidence may show that repartitioning existing files is
|
|
318
|
+
necessary; that correction uses the complete ordinary authoring review surface
|
|
319
|
+
and reports retained origins separately rather than encoding a multi-file result
|
|
320
|
+
as one `owningMapPath`.
|
|
321
|
+
|
|
322
|
+
For candidate reconciliation, Work, Review and Integration remain separate
|
|
323
|
+
evidence stages. Work prepares classifications and an observation document
|
|
324
|
+
without consuming any candidate. Integration adds the actual merged commit when
|
|
325
|
+
the single-domain map changed and records the reviewed result through
|
|
326
|
+
`observe maintenance`. Discarded or unresolved conclusions follow the same
|
|
327
|
+
review boundary. Direct authoring without origins records its Git delivery
|
|
328
|
+
state; retained observations stay immutable and origin accounting stays accurate.
|
|
253
329
|
|
|
254
330
|
### ManagedSkillsInstaller
|
|
255
331
|
|
|
@@ -336,7 +412,8 @@ candidate reports are deferred until a maintenance Agent requests them.
|
|
|
336
412
|
|
|
337
413
|
### Release Candidate Verification
|
|
338
414
|
|
|
339
|
-
The repository-owned release gate composes
|
|
415
|
+
The repository-owned release gate composes Oxlint correctness checks, Oxfmt
|
|
416
|
+
format checks for code and scripts, contract and source tests,
|
|
340
417
|
typecheck, build, deterministic render checks, packed-tarball privacy, an
|
|
341
418
|
anonymous installed-product flow, package dry-run, and Git diff validation. CI
|
|
342
419
|
invokes the same gate used by a
|
|
@@ -552,9 +629,11 @@ in the shared map.
|
|
|
552
629
|
Every business-changing task writes its own immutable observation and maintenance
|
|
553
630
|
disposition. Candidate-producing results can enter post-integration maintenance
|
|
554
631
|
as soon as stable reviewed source is available. Periodic reconciliation uses the
|
|
555
|
-
same deterministic report to recover accumulated drift and missed work. Each
|
|
556
|
-
updates one owning YAML surface for one business
|
|
557
|
-
|
|
632
|
+
same deterministic report to recover accumulated drift and missed work. Each
|
|
633
|
+
candidate reconciliation run updates one owning YAML surface for one business
|
|
634
|
+
domain after confirming its ownership. Direct authoring and necessary ownership
|
|
635
|
+
reorganization review the affected owning files together. A no-candidate or
|
|
636
|
+
no-change run is a valid outcome and does not
|
|
558
637
|
affect an engineering task already completed against current evidence.
|
|
559
638
|
|
|
560
639
|
The understanding and maintenance Skills operate independently of task
|
package/docs/evaluation.md
CHANGED
|
@@ -118,6 +118,28 @@ manufactured business knowledge. These fixtures protect the Skill contract;
|
|
|
118
118
|
they do not replace the private real-project paired evaluation defined in this
|
|
119
119
|
page.
|
|
120
120
|
|
|
121
|
+
## Business Ownership Regression
|
|
122
|
+
|
|
123
|
+
`tests/fixtures/map-authoring/evals.json` retains the natural requests and
|
|
124
|
+
artifact criteria from the repeated issue #8 failure. One fixture has separate
|
|
125
|
+
order, fulfillment and revenue responsibilities within technical source files;
|
|
126
|
+
the control has three technical directories serving one cancellation business.
|
|
127
|
+
A maintenance case starts from a valid order map and asks for the newly
|
|
128
|
+
implemented delivery behavior to be incorporated.
|
|
129
|
+
Execution receives only the request and source fixture, while expected results
|
|
130
|
+
remain with the evaluator. Use the bundled understanding and maintenance Skills
|
|
131
|
+
in fresh contexts, with equivalent baseline and candidate environments.
|
|
132
|
+
|
|
133
|
+
Acceptance checks actual business-owned files, shared concept identity,
|
|
134
|
+
relation/flow ownership, complete-graph validation and selectable Viewer domains.
|
|
135
|
+
A schema-valid oversized project domain fails the multi-business case; artificial
|
|
136
|
+
HTTP/rules/storage domains fail the small-project control. A later update must
|
|
137
|
+
preserve the valid order identities while establishing the independent
|
|
138
|
+
fulfillment owner. Direct authoring must proceed without fabricated retained
|
|
139
|
+
candidates and report actual Git review and integration status. Static Skill contract tests and the runnable authoring
|
|
140
|
+
example protect packaging and format coherence; only Fresh Agent execution
|
|
141
|
+
provides evidence about autonomous partitioning behavior.
|
|
142
|
+
|
|
121
143
|
## Paired Execution
|
|
122
144
|
|
|
123
145
|
When practical, run each case in two fresh contexts with the same model,
|
package/docs/index.md
CHANGED
|
@@ -25,7 +25,7 @@ verified gates.
|
|
|
25
25
|
|
|
26
26
|
## Maintenance
|
|
27
27
|
|
|
28
|
-
- [
|
|
29
|
-
|
|
28
|
+
- [Maintenance records](changes/README.md): durable changes to product knowledge,
|
|
29
|
+
historical records, and the rules for independent documentation updates.
|
|
30
30
|
- [Commerce example](../examples/commerce.yaml): illustrative map data only; it
|
|
31
31
|
does not define the normative schema independently of `map-format.md`.
|
package/docs/map-format.md
CHANGED
|
@@ -21,6 +21,34 @@ The first implementation uses this conventional directory. Every `*.yaml` file
|
|
|
21
21
|
in the directory participates in one repository-wide graph. File names organize
|
|
22
22
|
ownership but do not become graph nodes.
|
|
23
23
|
|
|
24
|
+
## Business Ownership And File Boundaries
|
|
25
|
+
|
|
26
|
+
Every map-writing task chooses ownership from stable business responsibilities,
|
|
27
|
+
owned data/rules, and collaborators. This applies to initial creation, later
|
|
28
|
+
capability additions, drift correction and candidate maintenance. Source
|
|
29
|
+
folders, existing filenames and recorded candidate owners supply evidence;
|
|
30
|
+
current business meaning decides the boundary.
|
|
31
|
+
|
|
32
|
+
Reuse a domain and owning YAML when their business scope remains correct. Give
|
|
33
|
+
a newly identified independent business area its own meaningful `domain` root
|
|
34
|
+
and owning document. Narrower responsibilities use `capability` and `part_of`
|
|
35
|
+
within an area. A small project or local task with one responsibility can use
|
|
36
|
+
one file. Correct affected containment when an existing umbrella domain is too
|
|
37
|
+
broad, preserving stable concept IDs where identity has not changed. Viewer
|
|
38
|
+
selection follows domain nodes and containment, not filenames.
|
|
39
|
+
|
|
40
|
+
Define shared concepts once in their owning file. Declare each relation in the
|
|
41
|
+
source concept's file and each flow in its scenario's file. References resolve
|
|
42
|
+
by stable ID across all documents, including flow-step concepts. Validate the
|
|
43
|
+
complete repository graph and inspect each affected domain with its external
|
|
44
|
+
collaborators and relevant flows.
|
|
45
|
+
|
|
46
|
+
The requested or evidenced change bounds the work. Ordinary candidate
|
|
47
|
+
reconciliation handles one confirmed business domain and its owning YAML.
|
|
48
|
+
Necessary repartitioning across existing files is a complete normal reviewed
|
|
49
|
+
authoring/reorganization change, with accurate separate candidate accounting;
|
|
50
|
+
the observation format does not decide the business model.
|
|
51
|
+
|
|
24
52
|
## Document Shape
|
|
25
53
|
|
|
26
54
|
```yaml
|
|
@@ -324,4 +352,6 @@ meaning that needs maintenance.
|
|
|
324
352
|
Post-integration or periodic reconciliation confirms candidates in current
|
|
325
353
|
evidence, updates one bounded neighborhood, validates the complete graph, and
|
|
326
354
|
submits the normal repository change for review. A mapless repository can use
|
|
327
|
-
the same
|
|
355
|
+
the same candidate path to establish one evidence-supported initial domain.
|
|
356
|
+
Direct authoring and ownership reorganization use the common business-ownership
|
|
357
|
+
rules above and review their complete necessary set of owning files together.
|
package/docs/observations.md
CHANGED
|
@@ -33,6 +33,17 @@ references exact task-candidate positions, records the reviewed classification
|
|
|
33
33
|
and current evidence, and includes the owning YAML plus real merged commit when
|
|
34
34
|
the canonical map changed. Work-stage proposals are not observations.
|
|
35
35
|
|
|
36
|
+
Direct map authoring uses its source-supported Git diff, independent review and
|
|
37
|
+
actual integration state as delivery evidence. Without retained origins, it has
|
|
38
|
+
no candidates to consume and does not manufacture task observations or
|
|
39
|
+
maintenance results. The single `businessDomainId` and `owningMapPath` describe
|
|
40
|
+
a candidate maintenance result; they do not determine business ownership or
|
|
41
|
+
force independent business areas into one map file. A necessary multi-file
|
|
42
|
+
ownership reorganization uses its complete normal Git review surface, with
|
|
43
|
+
retained origins reported separately until their results truthfully satisfy
|
|
44
|
+
the unchanged observation contract. Original observation identities stay
|
|
45
|
+
immutable, including a domain assignment that later evidence corrects.
|
|
46
|
+
|
|
36
47
|
## Versioned Schemas
|
|
37
48
|
|
|
38
49
|
Current task artifacts use `schemaVersion: 2`; review and maintenance artifacts
|
package/docs/product-contract.md
CHANGED
|
@@ -84,6 +84,55 @@ When a translator appends Chinese alongside English, cards grow to show the
|
|
|
84
84
|
complete content and the diagram rearranges nodes, labels, and connecting lines.
|
|
85
85
|
The original tracked map remains the single business-knowledge source.
|
|
86
86
|
|
|
87
|
+
In both relationship and flow views, dragging a card's non-text space moves
|
|
88
|
+
that node and its connected lines. Only actual text accepts native selection
|
|
89
|
+
and copying; the Viewer does not force a text cursor over the entire card.
|
|
90
|
+
Dragging empty canvas still pans the view. `Reset layout` restores the current
|
|
91
|
+
diagram's automatic arrangement using the current displayed text, then fits it
|
|
92
|
+
to the window. Manual positions belong only to the current browser view; they
|
|
93
|
+
are not saved into tracked maps or shared with other viewers.
|
|
94
|
+
|
|
95
|
+
`Export PNG` saves the entire selected relationship diagram or flow, including
|
|
96
|
+
its currently displayed translations. Image bounds come from the complete
|
|
97
|
+
layout rather than the visible viewport or zoom. Generation stays in the
|
|
98
|
+
browser and works in both the self-contained HTML and local Web Viewer.
|
|
99
|
+
|
|
100
|
+
### Runtime language
|
|
101
|
+
|
|
102
|
+
Product-owned text supports English and Simplified Chinese, with English as
|
|
103
|
+
the fallback. CLI help and diagnostics follow the system's language environment.
|
|
104
|
+
The shared Viewer follows the browser's language preferences when the page opens,
|
|
105
|
+
for both exported HTML and local Web sessions. Its controls, diagram type labels,
|
|
106
|
+
project states, accessibility text, and PNG feedback share that browser language.
|
|
107
|
+
The same exported file can therefore serve browsers with different preferences.
|
|
108
|
+
User-authored map names, summaries, aliases, and branch labels retain their
|
|
109
|
+
original content; machine-readable keys, IDs, error codes, and enum values remain
|
|
110
|
+
stable.
|
|
111
|
+
|
|
112
|
+
Language configuration and translation maintenance are defined in
|
|
113
|
+
[Internationalization](architecture.md#internationalization).
|
|
114
|
+
|
|
115
|
+
### Business-map authoring and maintenance
|
|
116
|
+
|
|
117
|
+
Agents organize maps by real business responsibility whenever they create,
|
|
118
|
+
extend, correct or reconcile shared knowledge. Independent business areas have
|
|
119
|
+
meaningful domain roots and owning YAML files. Existing owners are reused while
|
|
120
|
+
their scope remains correct; newly discovered independent responsibilities get
|
|
121
|
+
their own owners rather than accumulating under an unrelated existing domain.
|
|
122
|
+
A local task or single-business project can use one file. Shared concepts remain
|
|
123
|
+
unique and relationships and flows retain their business owners. The
|
|
124
|
+
[map format](map-format.md#business-ownership-and-file-boundaries) owns these
|
|
125
|
+
rules for the complete authoring lifecycle.
|
|
126
|
+
|
|
127
|
+
Direct authoring covers a user-requested initial map, incremental update or
|
|
128
|
+
ownership reorganization and works from current evidence without requiring
|
|
129
|
+
retained candidates. Its complete necessary Git diff, independent review and
|
|
130
|
+
actual integration state are delivery evidence. Candidate reconciliation uses
|
|
131
|
+
the same ownership decisions while retaining its one-domain exact-origin
|
|
132
|
+
observation contract. A necessary multi-file reorganization has a complete Git
|
|
133
|
+
review surface and separate accurate candidate accounting; it is not reported
|
|
134
|
+
as an accepted single-path maintenance result.
|
|
135
|
+
|
|
87
136
|
### Post-task maintenance decision and reconciliation
|
|
88
137
|
|
|
89
138
|
Every business-changing task records its map outcome and decides whether stable
|
|
@@ -348,8 +397,8 @@ review, and earlier unresolved investigation. Accepted, refined, and discarded
|
|
|
348
397
|
origins are terminal. Unresolved origins wait for a new origin in the same
|
|
349
398
|
candidate group before becoming actionable again. A
|
|
350
399
|
post-integration maintenance task selects one business domain, checks current
|
|
351
|
-
source and durable product meaning,
|
|
352
|
-
Git review, and records the immutable result only after review and integration.
|
|
400
|
+
source and durable product meaning, confirms its real owner and updates that
|
|
401
|
+
owning YAML map through normal Git review, and records the immutable result only after review and integration.
|
|
353
402
|
It leaves unresolved or implementation-local meaning outside the canonical map.
|
|
354
403
|
A mapless repository can create one initial domain-owned YAML
|
|
355
404
|
when current evidence establishes stable identity and bounded meaning. Periodic
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semantic-atlas",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "A Git-native advisory business map for coding agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -58,23 +58,32 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@dagrejs/dagre": "^1.1.8",
|
|
60
60
|
"commander": "^14.0.0",
|
|
61
|
+
"html-to-image": "1.11.13",
|
|
62
|
+
"i18next": "26.4.2",
|
|
63
|
+
"i18next-browser-languagedetector": "8.2.1",
|
|
61
64
|
"string-width": "^8.2.2",
|
|
62
65
|
"yaml": "^2.8.1",
|
|
63
66
|
"zod": "^4.1.5"
|
|
64
67
|
},
|
|
65
68
|
"devDependencies": {
|
|
66
69
|
"@types/node": "^24.3.0",
|
|
70
|
+
"oxfmt": "^0.68.0",
|
|
71
|
+
"oxlint": "^1.83.0",
|
|
67
72
|
"typescript": "^5.9.2",
|
|
68
73
|
"vitest": "^3.2.4"
|
|
69
74
|
},
|
|
70
75
|
"scripts": {
|
|
71
76
|
"build": "tsc -p tsconfig.build.json",
|
|
72
77
|
"contracts:check": "vitest run tests/release/release-contract.test.ts",
|
|
73
|
-
"release:verify": "pnpm contracts:check && pnpm test && pnpm typecheck && pnpm build && node tests/smoke/built-render.mjs && node tests/smoke/built-skill.mjs && node tests/smoke/packaged-product.mjs && pnpm pack --dry-run && git diff --check",
|
|
78
|
+
"release:verify": "pnpm lint && pnpm format:check && pnpm contracts:check && pnpm test && pnpm typecheck && pnpm build && node tests/smoke/built-render.mjs && node tests/smoke/built-skill.mjs && node tests/smoke/packaged-product.mjs && pnpm pack --dry-run && git diff --check",
|
|
74
79
|
"test": "vitest run",
|
|
75
80
|
"test:acceptance": "pnpm release:verify",
|
|
76
81
|
"test:built": "pnpm build && node tests/smoke/built-render.mjs && node tests/smoke/built-skill.mjs",
|
|
77
82
|
"test:package": "node tests/smoke/packaged-product.mjs",
|
|
78
|
-
"typecheck": "tsc -p tsconfig.json"
|
|
83
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
84
|
+
"lint": "oxlint --deny-warnings src tests scripts .agents/skills/semantic-atlas/scripts vitest.config.ts",
|
|
85
|
+
"lint:fix": "pnpm lint --fix",
|
|
86
|
+
"format": "oxfmt --write \"src/**/*.ts\" \"tests/**/*.{ts,mjs}\" \"scripts/**/*.mjs\" \".agents/skills/*/scripts/*.mjs\" vitest.config.ts",
|
|
87
|
+
"format:check": "oxfmt --check \"src/**/*.ts\" \"tests/**/*.{ts,mjs}\" \"scripts/**/*.mjs\" \".agents/skills/*/scripts/*.mjs\" vitest.config.ts"
|
|
79
88
|
}
|
|
80
89
|
}
|