@donartcha/openlag 0.1.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/LICENSE +373 -0
- package/README.md +82 -0
- package/bin/openlag.js +2 -0
- package/dist/assets/arc-4YUHkXo3.js +1 -0
- package/dist/assets/architectureDiagram-3BPJPVTR-WeGmL7HM.js +36 -0
- package/dist/assets/blockDiagram-GPEHLZMM-CtV7ubAx.js +132 -0
- package/dist/assets/c4Diagram-AAUBKEIU-DqYDW5c3.js +10 -0
- package/dist/assets/channel-Tsel3-MK.js +1 -0
- package/dist/assets/chunk-2J33WTMH-BE8P9tjh.js +1 -0
- package/dist/assets/chunk-4BX2VUAB-Bi7oLGF5.js +1 -0
- package/dist/assets/chunk-55IACEB6-D9Xhxp_r.js +1 -0
- package/dist/assets/chunk-727SXJPM-Dz8jKE60.js +206 -0
- package/dist/assets/chunk-AQP2D5EJ-BzmM0IeH.js +231 -0
- package/dist/assets/chunk-FMBD7UC4-Cvl5dpcx.js +15 -0
- package/dist/assets/chunk-ND2GUHAM-Dz2efqnq.js +1 -0
- package/dist/assets/chunk-QZHKN3VN-CwblgSnQ.js +1 -0
- package/dist/assets/classDiagram-4FO5ZUOK-Bgm-_cW8.js +1 -0
- package/dist/assets/classDiagram-v2-Q7XG4LA2-Bgm-_cW8.js +1 -0
- package/dist/assets/cose-bilkent-S5V4N54A-h_A3nZUx.js +1 -0
- package/dist/assets/cytoscape.esm-D_LviqZs.js +331 -0
- package/dist/assets/dagre-BM42HDAG-CN_B2Doz.js +4 -0
- package/dist/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/dist/assets/diagram-2AECGRRQ-C9TAFwjG.js +43 -0
- package/dist/assets/diagram-5GNKFQAL-BThljQLo.js +10 -0
- package/dist/assets/diagram-KO2AKTUF-bRPq25Se.js +3 -0
- package/dist/assets/diagram-LMA3HP47-BubLCIus.js +24 -0
- package/dist/assets/diagram-OG6HWLK6-CJpfhIsS.js +24 -0
- package/dist/assets/erDiagram-TEJ5UH35-6Xkza9wL.js +85 -0
- package/dist/assets/flowDiagram-I6XJVG4X-Bq_to3hX.js +162 -0
- package/dist/assets/ganttDiagram-6RSMTGT7-C3CmvYl7.js +292 -0
- package/dist/assets/gitGraphDiagram-PVQCEYII-C93LTfrl.js +106 -0
- package/dist/assets/graph-CAnANduQ.js +1 -0
- package/dist/assets/index-0RMQQ34p.css +1 -0
- package/dist/assets/index-ByxguSZe.js +729 -0
- package/dist/assets/infoDiagram-5YYISTIA-CMfuwygl.js +2 -0
- package/dist/assets/init-Gi6I4Gst.js +1 -0
- package/dist/assets/ishikawaDiagram-YF4QCWOH-CbJ5ojDF.js +70 -0
- package/dist/assets/journeyDiagram-JHISSGLW-C_Xz8YyT.js +139 -0
- package/dist/assets/kanban-definition-UN3LZRKU-GVv_iRMq.js +89 -0
- package/dist/assets/katex-DkKDou_j.js +257 -0
- package/dist/assets/layout-DGIYPm2g.js +1 -0
- package/dist/assets/linear-BNEtUH2J.js +1 -0
- package/dist/assets/mindmap-definition-RKZ34NQL-DIsL0XSF.js +96 -0
- package/dist/assets/ordinal-Cboi1Yqb.js +1 -0
- package/dist/assets/pieDiagram-4H26LBE5-CSCTSOjk.js +30 -0
- package/dist/assets/quadrantDiagram-W4KKPZXB-CQQ9OaFY.js +7 -0
- package/dist/assets/requirementDiagram-4Y6WPE33-Cjn3la_S.js +84 -0
- package/dist/assets/sankeyDiagram-5OEKKPKP-DoVspvVc.js +40 -0
- package/dist/assets/sequenceDiagram-3UESZ5HK-UsoGmL4w.js +162 -0
- package/dist/assets/stateDiagram-AJRCARHV-DLmf7Dc8.js +1 -0
- package/dist/assets/stateDiagram-v2-BHNVJYJU-jkiDZ_3u.js +1 -0
- package/dist/assets/timeline-definition-PNZ67QCA-HfyRxZ8p.js +120 -0
- package/dist/assets/vennDiagram-CIIHVFJN-B6pM3L33.js +34 -0
- package/dist/assets/wardley-L42UT6IY-B-LdKtrI.js +173 -0
- package/dist/assets/wardleyDiagram-YWT4CUSO-BD45zhOu.js +78 -0
- package/dist/assets/xychartDiagram-2RQKCTM6-zsDMbUiS.js +7 -0
- package/dist/cli/openlag.js +1793 -0
- package/dist/index.html +14 -0
- package/index.html +13 -0
- package/package.json +84 -0
- package/scripts/cli/build.ts +34 -0
- package/scripts/cli/dev.ts +35 -0
- package/scripts/cli/generate.ts +92 -0
- package/scripts/cli/init.ts +427 -0
- package/scripts/cli/lint.ts +29 -0
- package/scripts/cli/openlag.ts +110 -0
- package/scripts/cli/vite-bin.ts +8 -0
- package/scripts/core/parser/diagnostic.ts +34 -0
- package/scripts/core/parser/normalizer.ts +27 -0
- package/scripts/core/parser/scanner.ts +30 -0
- package/scripts/core/parser/schemas.ts +23 -0
- package/scripts/core/parser/types.ts +30 -0
- package/scripts/core/parser.ts +127 -0
- package/scripts/generate-relations.ts +53 -0
- package/scripts/lint/lint-engine.ts +85 -0
- package/scripts/lint/lint-profiles.ts +49 -0
- package/scripts/lint/lint-rules.ts +174 -0
- package/scripts/lint/lint-types.ts +43 -0
- package/src/App.tsx +164 -0
- package/src/components/DocumentationView.tsx +905 -0
- package/src/components/GraphView.tsx +529 -0
- package/src/components/GuideView.tsx +535 -0
- package/src/components/ImpactView.tsx +365 -0
- package/src/components/MarkdownRenderer.tsx +120 -0
- package/src/components/OrphansView.tsx +360 -0
- package/src/components/SettingsView.tsx +146 -0
- package/src/core/generated/relation-definitions.ts +622 -0
- package/src/core/graph/GraphQueryLayer.ts +194 -0
- package/src/core/registry/ArtifactRegistry.ts +19 -0
- package/src/core/registry/RelationRegistry.ts +27 -0
- package/src/core/semantic/artifact-layers.ts +43 -0
- package/src/core/semantic/ownership-rules.ts +13 -0
- package/src/core/semantic/types.ts +11 -0
- package/src/index.css +121 -0
- package/src/lib/reportUtils.ts +59 -0
- package/src/main.tsx +10 -0
- package/src/store.ts +146 -0
- package/src/types.ts +77 -0
- package/vite.config.ts +31 -0
package/src/types.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { ArtifactType } from './core/registry/ArtifactRegistry.js';
|
|
2
|
+
|
|
3
|
+
export type { ArtifactType };
|
|
4
|
+
export type RelationType = string;
|
|
5
|
+
export type ChangeType = 'ERROR' | 'FEATURE' | 'EVOLUTION' | 'REFACTOR' | 'ADAPTATION';
|
|
6
|
+
|
|
7
|
+
export type ArtifactLayer = 'BUSINESS' | 'ARCHITECTURE' | 'IMPLEMENTATION' | 'OPERATIONS' | 'DOCUMENTATION';
|
|
8
|
+
export type RelationStrength = 'STRONG' | 'MEDIUM' | 'WEAK';
|
|
9
|
+
export type RelationCategory = 'STRUCTURAL' | 'BEHAVIORAL' | 'OPERATIONAL' | 'SEMANTIC' | 'TRACEABILITY' | 'DEPENDENCY' | 'EVOLUTIONARY';
|
|
10
|
+
|
|
11
|
+
export interface Ownership {
|
|
12
|
+
owner?: string;
|
|
13
|
+
team?: string;
|
|
14
|
+
domain?: string;
|
|
15
|
+
maintainers?: string[];
|
|
16
|
+
reviewers?: string[];
|
|
17
|
+
steward?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface Version {
|
|
21
|
+
id: string;
|
|
22
|
+
timestamp: string;
|
|
23
|
+
parentVersion: string | null;
|
|
24
|
+
name: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface SystemVersion {
|
|
28
|
+
id: string;
|
|
29
|
+
component: string;
|
|
30
|
+
version: string;
|
|
31
|
+
releaseDate: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface Artifact {
|
|
35
|
+
id: string;
|
|
36
|
+
type: ArtifactType;
|
|
37
|
+
subType?: string;
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
version: string;
|
|
41
|
+
component?: string;
|
|
42
|
+
releaseDate?: string;
|
|
43
|
+
systemVersionId?: string;
|
|
44
|
+
layer?: ArtifactLayer;
|
|
45
|
+
ownership?: Ownership;
|
|
46
|
+
status?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface Relation {
|
|
50
|
+
id: string;
|
|
51
|
+
from: string;
|
|
52
|
+
to: string;
|
|
53
|
+
type: RelationType;
|
|
54
|
+
strength?: RelationStrength;
|
|
55
|
+
category?: RelationCategory;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface Change {
|
|
59
|
+
id: string;
|
|
60
|
+
type: ChangeType;
|
|
61
|
+
title: string;
|
|
62
|
+
description: string;
|
|
63
|
+
affects: string[];
|
|
64
|
+
versionFrom: string;
|
|
65
|
+
versionTo: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface GraphSnapshot {
|
|
69
|
+
artifacts: Artifact[];
|
|
70
|
+
relations: Relation[];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface AppState {
|
|
74
|
+
versions: Version[];
|
|
75
|
+
changes: Change[];
|
|
76
|
+
graphs: Record<string, GraphSnapshot>;
|
|
77
|
+
}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import tailwindcss from '@tailwindcss/vite';
|
|
2
|
+
import react from '@vitejs/plugin-react';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import { defineConfig } from 'vite';
|
|
5
|
+
|
|
6
|
+
const packageRoot = __dirname;
|
|
7
|
+
const projectRoot = process.env.OPENLAG_PROJECT_ROOT
|
|
8
|
+
? path.resolve(process.env.OPENLAG_PROJECT_ROOT)
|
|
9
|
+
: packageRoot;
|
|
10
|
+
const projectPublicDir = process.env.OPENLAG_PROJECT_ROOT ? path.join(projectRoot, 'public') : false;
|
|
11
|
+
|
|
12
|
+
export default defineConfig({
|
|
13
|
+
root: packageRoot,
|
|
14
|
+
publicDir: projectPublicDir,
|
|
15
|
+
plugins: [react(), tailwindcss()],
|
|
16
|
+
resolve: {
|
|
17
|
+
alias: {
|
|
18
|
+
'@': packageRoot,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
build: {
|
|
22
|
+
outDir: path.join(projectRoot, 'dist'),
|
|
23
|
+
emptyOutDir: true,
|
|
24
|
+
},
|
|
25
|
+
server: {
|
|
26
|
+
port: 3000,
|
|
27
|
+
host: '0.0.0.0',
|
|
28
|
+
hmr: process.env.DISABLE_HMR !== 'true',
|
|
29
|
+
watch: process.env.DISABLE_HMR === 'true' ? null : {},
|
|
30
|
+
},
|
|
31
|
+
});
|