semantic-atlas 2.4.0 → 2.6.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 +88 -5
- package/README.zh-CN.md +77 -4
- 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 +542 -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 +119 -0
- package/dist/i18n/locales/en/viewer.d.ts.map +1 -0
- package/dist/i18n/locales/en/viewer.js +118 -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 +119 -0
- package/dist/i18n/locales/zh-CN/viewer.d.ts.map +1 -0
- package/dist/i18n/locales/zh-CN/viewer.js +118 -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 +4 -2
- package/dist/rendering/diagram-image.d.ts.map +1 -1
- package/dist/rendering/diagram-image.js +29 -12
- package/dist/rendering/diagram-image.js.map +1 -1
- package/dist/rendering/flow-projector.d.ts.map +1 -1
- package/dist/rendering/flow-projector.js +15 -10
- 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 +217 -93
- 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 +43 -80
- 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 +17 -7
- 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 +116 -29
- 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 +46 -2
- package/package.json +11 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-upgrader.js","sourceRoot":"","sources":["../../src/setup/package-upgrader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,WAAW,GAAG,gBAAgB,CAAC;AACrC,MAAM,2BAA2B,GAAG,EAAE,GAAG,KAAK,CAAC;AAC/C,MAAM,oBAAoB,GAAG,uCAAuC,CAAC;AA6BrE,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAI1B;IAHO,IAAI,GAAG,qBAAqB,CAAC;IAEtD,YACkB,IAAwB,EACxC,OAAe,EACf,OAAsB;QAEtB,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAJR,SAAI,GAAJ,IAAI,CAAoB;IAK1C,CAAC;CACF;AAED,MAAM,OAAO,4BAA4B;IAKpB;IACA;IALF,cAAc,CAAS;IACvB,QAAQ,CAAS;IAElC,YACmB,OAA+B,EAC/B,SAA+B,IAAI,yBAAyB,EAAE;QAD9D,YAAO,GAAP,OAAO,CAAwB;QAC/B,WAAM,GAAN,MAAM,CAAwD;QAE/E,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,IAAI,OAAO,CAAC,QAAQ,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,EAAE,CAAC;IAChD,CAAC;IAEM,KAAK,CAAC,OAAO;QAClB,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,mB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AE,aAAa,IAAI,KAAK;YAClC,SAAS,EAAE,UAAU;SACtB,CAAC;IACJ,CAAC;IACD,OAAO;QACL,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,SAAS;QAC5C,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,UAAU,CAAC;KACxD,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAAC,OAAe,EAAE,KAAa;IAC1D,MAAM,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;IACjC,OAAO,QAAQ,CAAC,MAAM,IAAI,2BAA2B;QACnD,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,2BAA2B,CAAC,CAAC;AACnD,CAAC;AAED,SAAS,iBAAiB,CAAC,MAA4B;IACrD,MAAM,UAAU,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAC3E,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAC1D,CAAC;IACF,OAAO,UAAU,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;AAChD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-web-application.d.ts","sourceRoot":"","sources":["../../src/web/local-web-application.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"local-web-application.d.ts","sourceRoot":"","sources":["../../src/web/local-web-application.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,6BAA6B,CAAC;AAMrC,MAAM,MAAM,oBAAoB,GAC5B;IACE,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;CACrC,GACD;IACE,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B,GACD;IACE,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;CACvB,CAAC;AAEN,qBAAa,mBAAmB;IAI5B,OAAO,CAAC,QAAQ,CAAC,cAAc;IAHjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwB;gBAG9B,cAAc,EAAE,cAAc,EAC/C,eAAe,EAAE,SAAS,MAAM,EAAE;IAgBpC,IAAW,eAAe,IAAI,MAAM,CAEnC;IAEM,MAAM,IAAI,MAAM;IAIV,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAuBpE"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t } from "../i18n/index.js";
|
|
1
2
|
import { createHash } from "node:crypto";
|
|
2
3
|
import path from "node:path";
|
|
3
4
|
import { MapApplication } from "../application/map-application.js";
|
|
@@ -7,7 +8,9 @@ export class LocalWebApplication {
|
|
|
7
8
|
projects;
|
|
8
9
|
constructor(mapApplication, repositoryPaths) {
|
|
9
10
|
this.mapApplication = mapApplication;
|
|
10
|
-
const normalizedPaths = [
|
|
11
|
+
const normalizedPaths = [
|
|
12
|
+
...new Set(repositoryPaths.map((repositoryPath) => path.resolve(repositoryPath))),
|
|
13
|
+
];
|
|
11
14
|
this.projects = Object.freeze(disambiguateProjectNames(normalizedPaths.map((repositoryPath) => ({
|
|
12
15
|
id: projectId(repositoryPath),
|
|
13
16
|
name: path.basename(repositoryPath),
|
|
@@ -29,10 +32,12 @@ export class LocalWebApplication {
|
|
|
29
32
|
name: project.name,
|
|
30
33
|
});
|
|
31
34
|
if (!result.ok) {
|
|
35
|
+
const messageKey = safeUnavailableMessageKey(result.error.code);
|
|
32
36
|
return {
|
|
33
37
|
found: true,
|
|
34
38
|
ok: false,
|
|
35
|
-
message:
|
|
39
|
+
message: t(messageKey),
|
|
40
|
+
messageKey,
|
|
36
41
|
};
|
|
37
42
|
}
|
|
38
43
|
return {
|
|
@@ -63,13 +68,13 @@ function disambiguateProjectNames(projects) {
|
|
|
63
68
|
return { ...project, name: `${project.name} (${occurrence})` };
|
|
64
69
|
});
|
|
65
70
|
}
|
|
66
|
-
function
|
|
71
|
+
function safeUnavailableMessageKey(code) {
|
|
67
72
|
if (code === "MAP_NOT_FOUND")
|
|
68
|
-
return "
|
|
73
|
+
return "errors.projectMapMissing";
|
|
69
74
|
if (code === "MAP_DOCUMENT_INVALID")
|
|
70
|
-
return "
|
|
75
|
+
return "errors.projectMapInvalid";
|
|
71
76
|
if (code === "REPOSITORY_INVALID")
|
|
72
|
-
return "
|
|
73
|
-
return "
|
|
77
|
+
return "errors.projectPathUnavailable";
|
|
78
|
+
return "errors.projectMapUnavailable";
|
|
74
79
|
}
|
|
75
80
|
//# sourceMappingURL=local-web-application.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-web-application.js","sourceRoot":"","sources":["../../src/web/local-web-application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,mBAAmB,EACnB,sBAAsB,GAGvB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"local-web-application.js","sourceRoot":"","sources":["../../src/web/local-web-application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,kBAAkB,CAAC;AACrC,OAA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AC,CAAC,GAAG,CAAC;YAAE,OAAO,OAAO,CAAC;QACxD,MAAM,UAAU,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QAC5D,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC1C,OAAO,EAAE,GAAG,OAAO,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,KAAK,UAAU,GAAG,EAAE,CAAC;IACjE,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,yBAAyB,CAAC,IAAY;IAC7C,IAAI,IAAI,KAAK,eAAe;QAAE,OAAO,0BAA0B,CAAC;IAChE,IAAI,IAAI,KAAK,sBAAsB;QAAE,OAAO,0BAA0B,CAAC;IACvE,IAAI,IAAI,KAAK,oBAAoB;QAAE,OAAO,+BAA+B,CAAC;IAC1E,OAAO,8BAA8B,CAAC;AACxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-web-server.d.ts","sourceRoot":"","sources":["../../src/web/local-web-server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"local-web-server.d.ts","sourceRoot":"","sources":["../../src/web/local-web-server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAKtE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,WAAW,EAAE,mBAAmB,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,cAAc,CAAC,CA0BjG"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t } from "../i18n/index.js";
|
|
1
2
|
import { createServer } from "node:http";
|
|
2
3
|
const LOOPBACK_HOST = "127.0.0.1";
|
|
3
4
|
const PROJECT_ROUTE = "/api/projects/";
|
|
@@ -15,7 +16,7 @@ export async function startLocalWebServer(options) {
|
|
|
15
16
|
const address = server.address();
|
|
16
17
|
if (!address || typeof address === "string") {
|
|
17
18
|
await closeServer(server);
|
|
18
|
-
throw new Error("
|
|
19
|
+
throw new Error(t("errors.webAddress"));
|
|
19
20
|
}
|
|
20
21
|
return {
|
|
21
22
|
url: `http://${LOOPBACK_HOST}:${address.port}`,
|
|
@@ -33,7 +34,7 @@ async function routeRequest(application, method, requestUrl, response) {
|
|
|
33
34
|
Allow: "GET, HEAD",
|
|
34
35
|
"Content-Type": "text/plain; charset=utf-8",
|
|
35
36
|
});
|
|
36
|
-
response.end("
|
|
37
|
+
response.end(t("errors.methodNotAllowed"));
|
|
37
38
|
return;
|
|
38
39
|
}
|
|
39
40
|
const pathname = new URL(requestUrl, `http://${LOOPBACK_HOST}`).pathname;
|
|
@@ -51,14 +52,15 @@ async function routeRequest(application, method, requestUrl, response) {
|
|
|
51
52
|
ok: false,
|
|
52
53
|
error: {
|
|
53
54
|
code: "PROJECT_UNAVAILABLE",
|
|
54
|
-
message: "
|
|
55
|
+
message: t("errors.projectMapUnavailable"),
|
|
56
|
+
messageKey: "errors.projectMapUnavailable",
|
|
55
57
|
},
|
|
56
58
|
});
|
|
57
59
|
}
|
|
58
60
|
return;
|
|
59
61
|
}
|
|
60
62
|
if (pathname !== "/") {
|
|
61
|
-
sendResponse(response, method, 404, "text/plain; charset=utf-8", "
|
|
63
|
+
sendResponse(response, method, 404, "text/plain; charset=utf-8", t("errors.httpNotFound"));
|
|
62
64
|
return;
|
|
63
65
|
}
|
|
64
66
|
response.setHeader("Content-Security-Policy", "default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; img-src data:; connect-src 'self'; base-uri 'none'; form-action 'none'");
|
|
@@ -74,7 +76,11 @@ async function sendProject(application, projectId, method, response) {
|
|
|
74
76
|
sendJson(response, method, 404, {
|
|
75
77
|
schemaVersion: 1,
|
|
76
78
|
ok: false,
|
|
77
|
-
error: {
|
|
79
|
+
error: {
|
|
80
|
+
code: "PROJECT_NOT_FOUND",
|
|
81
|
+
message: t("errors.projectNotFound"),
|
|
82
|
+
messageKey: "errors.projectNotFound",
|
|
83
|
+
},
|
|
78
84
|
});
|
|
79
85
|
return;
|
|
80
86
|
}
|
|
@@ -82,7 +88,11 @@ async function sendProject(application, projectId, method, response) {
|
|
|
82
88
|
sendJson(response, method, 422, {
|
|
83
89
|
schemaVersion: 1,
|
|
84
90
|
ok: false,
|
|
85
|
-
error: {
|
|
91
|
+
error: {
|
|
92
|
+
code: "PROJECT_UNAVAILABLE",
|
|
93
|
+
message: result.message,
|
|
94
|
+
messageKey: result.messageKey,
|
|
95
|
+
},
|
|
86
96
|
});
|
|
87
97
|
return;
|
|
88
98
|
}
|
|
@@ -103,7 +113,7 @@ async function closeServer(server) {
|
|
|
103
113
|
if (!server.listening)
|
|
104
114
|
return;
|
|
105
115
|
await new Promise((resolve, reject) => {
|
|
106
|
-
server.close((error) => error ? reject(error) : resolve());
|
|
116
|
+
server.close((error) => (error ? reject(error) : resolve()));
|
|
107
117
|
});
|
|
108
118
|
}
|
|
109
119
|
//# sourceMappingURL=local-web-server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-web-server.js","sourceRoot":"","sources":["../../src/web/local-web-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,WAAW,CAAC;AAG9D,MAAM,aAAa,GAAG,WAAW,CAAC;AAClC,MAAM,aAAa,GAAG,gBAAgB,CAAC;AAavC,MAAM,CAAC,KAAK,UAAU,mBAAmB,
|
|
1
|
+
{"version":3,"file":"local-web-server.js","sourceRoot":"","sources":["../../src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MAAM,EAAE,GAAG,EAAE;YAC9B,aAAa,EAAE,CAAC;YAChB,EAAE,EAAE,KAAK;YACT,KAAK,EAAE;gBACL,IAAI,EAAE,qBAAqB;gBAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,UAAU,EAAE,MAAM,CAAC,UAAU;aAC9B;SACF,CAAC,CAAC;QACH,OAAO;IACT,CAAC;IACD,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE;QAC9B,aAAa,EAAE,CAAC;QAChB,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,MAAM,CAAC,IAAI;KAClB,CAAC,CAAC;AACL,CAAC;AAED,SAAS,YAAY,CACnB,QAAwB,EACxB,MAAc,EACd,MAAc,EACd,WAAmB,EACnB,IAAY;IAEZ,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE;QACzB,cAAc,EAAE,WAAW;QAC3B,gBAAgB,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC;KAC1C,CAAC,CAAC;IACH,QAAQ,CAAC,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACrD,CAAC;AAED,KAAK,UAAU,WAAW,CAAC,MAAuC;IAChE,IAAI,CAAC,MAAM,CAAC,SAAS;QAAE,OAAO;IAC9B,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC1C,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -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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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
|
@@ -70,7 +70,10 @@ verified source candidate -> annotated release tag -> published GitHub Release
|
|
|
70
70
|
protected npm environment
|
|
71
71
|
|
|
|
72
72
|
v
|
|
73
|
-
|
|
73
|
+
provenance publication
|
|
74
|
+
|
|
|
75
|
+
v
|
|
76
|
+
independent read-only public verification
|
|
74
77
|
|
|
75
78
|
project add [path] -> complete map validation -> user-local ProjectStore
|
|
76
79
|
|
|
|
@@ -162,17 +165,43 @@ tracked business-map copy.
|
|
|
162
165
|
Owns the compact human inspection surface shared by static export and Web. It
|
|
163
166
|
combines project selection, relationship/flow switching, business-domain or
|
|
164
167
|
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
|
|
167
|
-
|
|
168
|
+
around shared SVG geometry and selectable HTML text. Inline text boxes accept
|
|
169
|
+
native selection and copying while card padding and
|
|
170
|
+
blank content space reach the SVG node underneath. Dragging a node updates
|
|
171
|
+
view-local offsets from the measured automatic layout; dragging empty diagram
|
|
172
|
+
space pans the map. `repositionDiagram` moves incident routes and their labels,
|
|
173
|
+
clips endpoints to card or diamond boundaries, and expands the complete image
|
|
174
|
+
bounds. When a drag extends the canvas origin, the camera compensates so the
|
|
175
|
+
node stays under the pointer. Offsets survive text reflow and view switching
|
|
176
|
+
within the current model; reset clears the current view's offsets and fits its
|
|
177
|
+
automatic arrangement. Replacing a Web project model discards that model's
|
|
178
|
+
manual positions. Cards render stable
|
|
179
|
+
business meaning only. Card surfaces use a grab cursor, selected-text surfaces
|
|
180
|
+
retain the text cursor, and active diagram dragging uses a grabbing cursor.
|
|
181
|
+
Clicking a node or activating it with the keyboard opens its navigation anchors and
|
|
168
182
|
derived related-flow links in an overlaid desktop side panel or narrow-screen
|
|
169
|
-
bottom panel.
|
|
183
|
+
bottom panel. Flow steps with a concept reference open that concept's same
|
|
184
|
+
panel; steps without a reference remain ordinary flow content. From a boundary
|
|
185
|
+
concept, the complete-map view, or a concept-linked flow step, the panel can open
|
|
186
|
+
the concept's owning business-domain view and select the same concept there.
|
|
187
|
+
The target domain is derived from the existing non-boundary domain projection,
|
|
188
|
+
so cross-file navigation adds no tracked link format or cross-project resolver.
|
|
189
|
+
Related-flow links omit the currently displayed flow in flow view, and the panel
|
|
190
|
+
hides the section when no other related flows remain. Relationship view retains
|
|
191
|
+
all related-flow links. Selecting a related flow switches to its projected path. Camera
|
|
170
192
|
coordinates use the SVG `xMidYMid meet` scale and letterbox offsets for both
|
|
171
193
|
pointer zoom, pan, and HTML placement, including viewport resizing. A fitted
|
|
172
194
|
camera follows content reflow; an explicitly zoomed or panned camera keeps its
|
|
173
195
|
current view. Its browser interaction state is disposable and never
|
|
174
196
|
enters tracked map data.
|
|
175
197
|
|
|
198
|
+
`ViewerLegend` supplies one keyboard-accessible, scrollable reading guide in the
|
|
199
|
+
shared toolbar, including narrow screens. Its bilingual examples explain all
|
|
200
|
+
relationship kinds, concept and external-boundary styling, and flow shapes and
|
|
201
|
+
branches. Relationship arrows read from source to target, including consumer to
|
|
202
|
+
interface for `consumes`; dashed containment is displayed as parent contains
|
|
203
|
+
child without an arrow. Flow arrows separately express step progression.
|
|
204
|
+
|
|
176
205
|
`renderDiagramImage` snapshots the selected diagram after text layout settles,
|
|
177
206
|
resets the snapshot to full layout bounds, and rasterizes its SVG geometry and
|
|
178
207
|
current HTML text through bundled `html-to-image`. SVG paint styles are captured
|
|
@@ -226,6 +255,45 @@ Owns argument parsing, exit status, machine-readable envelopes, and concise
|
|
|
226
255
|
human presentation. It composes application services and performs no graph
|
|
227
256
|
interpretation of its own.
|
|
228
257
|
|
|
258
|
+
### Internationalization
|
|
259
|
+
|
|
260
|
+
`src/i18n/` owns locale normalization and i18next integration. The CLI normally
|
|
261
|
+
uses the first nonempty system variable in `LC_ALL`, `LC_MESSAGES`, and `LANG`.
|
|
262
|
+
`SEMANTIC_ATLAS_LANG` is an optional debugging and testing override of that
|
|
263
|
+
selection, rather than a normal setup requirement. Locale matching ignores case,
|
|
264
|
+
accepts underscores and POSIX encoding or modifier suffixes, and maps `zh`,
|
|
265
|
+
`zh-CN`, `zh-SG`, and `zh-Hans` (including script-region variants) to Simplified
|
|
266
|
+
Chinese. Missing or unsupported system settings select English.
|
|
267
|
+
|
|
268
|
+
The Viewer uses `i18next-browser-languagedetector` with only its `navigator`
|
|
269
|
+
detector enabled. Browser language preferences select the first supported
|
|
270
|
+
language; the fallback is English. Traditional Chinese locales are unsupported.
|
|
271
|
+
Detection does not persist a language preference, so opening the same export
|
|
272
|
+
in another browser follows that browser's preferences. Server environment
|
|
273
|
+
variables determine CLI diagnostics only.
|
|
274
|
+
|
|
275
|
+
Independent catalogs under `src/i18n/locales/en/` and
|
|
276
|
+
`src/i18n/locales/zh-CN/` group CLI, diagnostics, and Viewer messages. i18next
|
|
277
|
+
owns resource lookup, interpolation, and English fallback. Node instances are
|
|
278
|
+
isolated by locale; Zod uses its official locale error maps per parse. External
|
|
279
|
+
parser, operating-system, and npm diagnostics retain their original details.
|
|
280
|
+
HTML adapters escape translated output at the rendering boundary.
|
|
281
|
+
|
|
282
|
+
The Viewer embeds its resources, i18next runtime, and browser language detector
|
|
283
|
+
in the self-contained page. Server-rendered markup uses deterministic English
|
|
284
|
+
fallback text with translation bindings. The browser translates product-owned
|
|
285
|
+
text and attributes on startup and after each lazy project load, before measuring
|
|
286
|
+
the diagram. User-authored content remains outside those bindings. Safe project
|
|
287
|
+
error responses include a translation key for the browser to render in its own
|
|
288
|
+
language. The JSON model escapes script delimiters before embedding resources.
|
|
289
|
+
|
|
290
|
+
To add a language, create its catalogs using the same keys and interpolation
|
|
291
|
+
names, register its resources in `src/i18n/index.ts` and aliases in
|
|
292
|
+
`src/i18n/locale.ts`, extend the Viewer's supported languages, and add the
|
|
293
|
+
corresponding Zod locale. The internationalization tests check catalog parity
|
|
294
|
+
and public language behavior. Runtime language scope is owned by the
|
|
295
|
+
[product contract](product-contract.md#runtime-language).
|
|
296
|
+
|
|
229
297
|
### Business Understanding Agent Skill
|
|
230
298
|
|
|
231
299
|
Owns the business-understanding workflow for every business-changing task. It
|
|
@@ -245,23 +313,32 @@ contract when another installed product uses the same executable name.
|
|
|
245
313
|
|
|
246
314
|
### Maintenance Agent Skill
|
|
247
315
|
|
|
248
|
-
Owns
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
316
|
+
Owns business-map authoring and candidate-driven maintenance. Both paths use
|
|
317
|
+
the same evidence-based ownership sequence before every edit: confirm affected
|
|
318
|
+
responsibilities, reuse still-correct owners, create owners for new independent
|
|
319
|
+
business areas, and preserve shared identities and relation/flow ownership.
|
|
320
|
+
These decisions apply equally to the first map and later maintenance. The
|
|
321
|
+
[map format](map-format.md#business-ownership-and-file-boundaries) owns the
|
|
322
|
+
common model.
|
|
323
|
+
|
|
324
|
+
Direct authoring handles requested creation, extension, correction or ownership
|
|
325
|
+
reorganization from current evidence even when no retained candidates exist.
|
|
326
|
+
Its complete necessary map change follows normal Git validation, rendering,
|
|
327
|
+
review and integration. Candidate reconciliation instead begins with
|
|
328
|
+
`ReconciliationService`'s report, confirms the selected domain's real ownership,
|
|
329
|
+
and edits or creates its owning YAML. A mapless candidate run can seed one
|
|
330
|
+
bounded domain. Current evidence may show that repartitioning existing files is
|
|
331
|
+
necessary; that correction uses the complete ordinary authoring review surface
|
|
332
|
+
and reports retained origins separately rather than encoding a multi-file result
|
|
333
|
+
as one `owningMapPath`.
|
|
334
|
+
|
|
335
|
+
For candidate reconciliation, Work, Review and Integration remain separate
|
|
336
|
+
evidence stages. Work prepares classifications and an observation document
|
|
337
|
+
without consuming any candidate. Integration adds the actual merged commit when
|
|
338
|
+
the single-domain map changed and records the reviewed result through
|
|
339
|
+
`observe maintenance`. Discarded or unresolved conclusions follow the same
|
|
340
|
+
review boundary. Direct authoring without origins records its Git delivery
|
|
341
|
+
state; retained observations stay immutable and origin accounting stays accurate.
|
|
265
342
|
|
|
266
343
|
### ManagedSkillsInstaller
|
|
267
344
|
|
|
@@ -348,7 +425,8 @@ candidate reports are deferred until a maintenance Agent requests them.
|
|
|
348
425
|
|
|
349
426
|
### Release Candidate Verification
|
|
350
427
|
|
|
351
|
-
The repository-owned release gate composes
|
|
428
|
+
The repository-owned release gate composes Oxlint correctness checks, Oxfmt
|
|
429
|
+
format checks for code and scripts, contract and source tests,
|
|
352
430
|
typecheck, build, deterministic render checks, packed-tarball privacy, an
|
|
353
431
|
anonymous installed-product flow, package dry-run, and Git diff validation. CI
|
|
354
432
|
invokes the same gate used by a
|
|
@@ -364,9 +442,16 @@ is available. The gate fails unless the Release tag matches and immutable
|
|
|
364
442
|
protection is active. A dependent publish job then enters the protected `npm`
|
|
365
443
|
environment, checks out the annotated tag, proves that the tag, commit, and
|
|
366
444
|
stable package version agree, repeats the Release check as defense in depth,
|
|
367
|
-
runs release-candidate verification, and publishes with provenance.
|
|
368
|
-
|
|
369
|
-
|
|
445
|
+
runs release-candidate verification, and publishes with provenance. A separate
|
|
446
|
+
`verify_publication` job depends on successful publication and checks out the
|
|
447
|
+
same exact tag with Node 24 and read-only repository permission. It needs no npm
|
|
448
|
+
credentials, protected environment, or dependency installation. The verifier
|
|
449
|
+
reads the exact version, latest tag, shasum, and integrity from the public
|
|
450
|
+
registry within a five-minute deadline, logging each attempt and bounding npm
|
|
451
|
+
requests by the remaining time. A failed verification can be rerun independently
|
|
452
|
+
without repeating a successful publication; recovery commands live in the
|
|
453
|
+
[release command](../.claude/commands/release.md#failure-semantics).
|
|
454
|
+
The fast-forward `main` push, repository setting changes, tag creation,
|
|
370
455
|
GitHub Release publication, and npm publication remain explicit operations
|
|
371
456
|
rather than local build effects.
|
|
372
457
|
|
|
@@ -564,9 +649,11 @@ in the shared map.
|
|
|
564
649
|
Every business-changing task writes its own immutable observation and maintenance
|
|
565
650
|
disposition. Candidate-producing results can enter post-integration maintenance
|
|
566
651
|
as soon as stable reviewed source is available. Periodic reconciliation uses the
|
|
567
|
-
same deterministic report to recover accumulated drift and missed work. Each
|
|
568
|
-
updates one owning YAML surface for one business
|
|
569
|
-
|
|
652
|
+
same deterministic report to recover accumulated drift and missed work. Each
|
|
653
|
+
candidate reconciliation run updates one owning YAML surface for one business
|
|
654
|
+
domain after confirming its ownership. Direct authoring and necessary ownership
|
|
655
|
+
reorganization review the affected owning files together. A no-candidate or
|
|
656
|
+
no-change run is a valid outcome and does not
|
|
570
657
|
affect an engineering task already completed against current evidence.
|
|
571
658
|
|
|
572
659
|
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,11 +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
|
+
|
|
87
95
|
`Export PNG` saves the entire selected relationship diagram or flow, including
|
|
88
96
|
its currently displayed translations. Image bounds come from the complete
|
|
89
97
|
layout rather than the visible viewport or zoom. Generation stays in the
|
|
90
98
|
browser and works in both the self-contained HTML and local Web Viewer.
|
|
91
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
|
+
|
|
92
136
|
### Post-task maintenance decision and reconciliation
|
|
93
137
|
|
|
94
138
|
Every business-changing task records its map outcome and decides whether stable
|
|
@@ -353,8 +397,8 @@ review, and earlier unresolved investigation. Accepted, refined, and discarded
|
|
|
353
397
|
origins are terminal. Unresolved origins wait for a new origin in the same
|
|
354
398
|
candidate group before becoming actionable again. A
|
|
355
399
|
post-integration maintenance task selects one business domain, checks current
|
|
356
|
-
source and durable product meaning,
|
|
357
|
-
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.
|
|
358
402
|
It leaves unresolved or implementation-local meaning outside the canonical map.
|
|
359
403
|
A mapless repository can create one initial domain-owned YAML
|
|
360
404
|
when current evidence establishes stable identity and bounded meaning. Periodic
|