@company-semantics/contracts 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.ts CHANGED
@@ -31,11 +31,7 @@ export type {
31
31
  SystemCapability,
32
32
  SystemLayer,
33
33
  SystemCapabilityManifest,
34
- // Snapshot metadata
35
- SystemSnapshotMeta,
36
- /** @deprecated Use DiagramSpec instead */
37
- SystemSnapshot,
38
- // Graph-based diagram spec (new architecture)
34
+ // Graph-based diagram spec
39
35
  DiagramNodeKind,
40
36
  DiagramEdgeRelation,
41
37
  DiagramNode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/system/README.md CHANGED
@@ -25,17 +25,13 @@ Defines the semantic contract between backend (producer) and site (renderer).
25
25
  - `SystemLayer` — logical layer grouping
26
26
  - `SystemCapabilityManifest` — full manifest structure (YAML representation)
27
27
 
28
- ### Diagram graph (new architecture)
28
+ ### Diagram graph
29
29
  - `DiagramNodeKind` — 'layer' | 'feature' | 'artifact'
30
30
  - `DiagramEdgeRelation` — 'contains' | 'flows_to' | 'depends_on'
31
31
  - `DiagramNode` — semantic node with optional layer grouping
32
32
  - `DiagramEdge` — semantic relationship between nodes
33
33
  - `DiagramSpec` — complete graph that crosses system boundaries
34
34
 
35
- ### Metadata (retained for compatibility)
36
- - `SystemSnapshotMeta` — generation metadata
37
- - `SystemSnapshot` — **deprecated**, use DiagramSpec instead
38
-
39
35
  ## Dependencies
40
36
 
41
37
  **Imports from:** (none — leaf module)
package/system/index.ts CHANGED
@@ -64,39 +64,7 @@ export interface SystemCapabilityManifest {
64
64
  layers: SystemLayer[]
65
65
  }
66
66
 
67
- /**
68
- * Metadata accompanying a generated snapshot.
69
- */
70
- export interface SystemSnapshotMeta {
71
- /** Metadata format version */
72
- version: number
73
- /** ISO 8601 timestamp of generation */
74
- snapshotDate: string
75
- /** Git commit SHA of source */
76
- commitSha: string
77
- /** Schema version used for generation */
78
- schemaVersion: string
79
- /** Visibility level (always 'public' for now) */
80
- visibility: 'public'
81
- /** SHA256 checksum of the ASCII content */
82
- checksum?: string
83
- }
84
-
85
- /**
86
- * Complete snapshot bundle (ASCII + metadata).
87
- * @deprecated Use DiagramSpec instead. This type will be removed in a future version.
88
- * ASCII rendering now happens client-side from DiagramSpec.
89
- */
90
- export interface SystemSnapshot {
91
- /** Raw ASCII diagram content */
92
- ascii: string
93
- /** Snapshot metadata */
94
- meta: SystemSnapshotMeta
95
- /** Optional explanation markdown */
96
- explanation?: string
97
- }
98
-
99
- // Graph-based diagram types (new architecture)
67
+ // Graph-based diagram types
100
68
  export type {
101
69
  DiagramNodeKind,
102
70
  DiagramEdgeRelation,