@openplanr/protocol 0.4.0 → 0.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.
Files changed (31) hide show
  1. package/README.md +12 -0
  2. package/package.json +9 -1
  3. package/registries/commands.json +8 -8
  4. package/registries/diagram-authoring-capabilities.json +660 -0
  5. package/registries/skills.json +12 -12
  6. package/schemas/v1.11.0/design-handoff-readiness.schema.json +398 -0
  7. package/schemas/v1.11.0/design-implementation-handoff.schema.json +518 -0
  8. package/schemas/v1.11.0/design-planning-lineage.schema.json +106 -0
  9. package/schemas/v1.13.0/diagram-authoring-bundle.schema.json +1079 -0
  10. package/schemas/v1.13.0/diagram-authoring-capabilities.schema.json +211 -0
  11. package/schemas/v1.13.0/diagram-change-proposal.schema.json +3296 -0
  12. package/schemas/v1.13.0/diagram-document.schema.json +435 -0
  13. package/schemas/v1.13.0/diagram-edit-transaction.schema.json +3193 -0
  14. package/schemas/v1.13.0/diagram-fidelity-report.schema.json +157 -0
  15. package/schemas/v1.13.0/diagram-manifest.schema.json +311 -0
  16. package/schemas/v1.13.0/diagram-presentation.schema.json +395 -0
  17. package/schemas/v1.13.0/diagram-publication-state.schema.json +107 -0
  18. package/schemas/v1.13.0/diagram-source-map.schema.json +170 -0
  19. package/src/browser-contracts.d.mts +3 -1
  20. package/src/browser-contracts.mjs +14 -2
  21. package/src/contracts.mjs +27 -1
  22. package/src/design-handoff-contracts.d.mts +92 -0
  23. package/src/design-handoff-contracts.mjs +338 -0
  24. package/src/diagram-authoring-contracts.d.mts +112 -0
  25. package/src/diagram-authoring-contracts.mjs +668 -0
  26. package/src/diagram-contracts.d.mts +1 -1
  27. package/src/diagram-contracts.mjs +7 -4
  28. package/src/generated/canonical-registries.mjs +20 -20
  29. package/src/generated/legacy-diagram-schema.mjs +767 -0
  30. package/src/index.d.mts +2 -0
  31. package/src/index.mjs +4 -0
@@ -0,0 +1,211 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.13.0/diagram-authoring-capabilities.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "diagram-authoring-capabilities",
6
+ "version": "1.13.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "kind": {
12
+ "const": "diagram-authoring-capabilities"
13
+ },
14
+ "schemaVersion": {
15
+ "const": "1.0.0"
16
+ },
17
+ "protocolVersion": {
18
+ "const": "1.13.0"
19
+ },
20
+ "version": {
21
+ "const": "1.0.0"
22
+ },
23
+ "liveCollaboration": {
24
+ "const": false
25
+ },
26
+ "profiles": {
27
+ "type": "array",
28
+ "items": {
29
+ "type": "object",
30
+ "additionalProperties": false,
31
+ "properties": {
32
+ "grammarId": {
33
+ "enum": [
34
+ "flowchart",
35
+ "process",
36
+ "swimlane",
37
+ "architecture"
38
+ ]
39
+ },
40
+ "authoring": {
41
+ "const": true
42
+ },
43
+ "primitives": {
44
+ "type": "array",
45
+ "items": {
46
+ "enum": [
47
+ "node",
48
+ "relation",
49
+ "group",
50
+ "lane",
51
+ "annotation",
52
+ "emphasis"
53
+ ]
54
+ },
55
+ "minItems": 1,
56
+ "maxItems": 6,
57
+ "uniqueItems": true
58
+ },
59
+ "nodeKinds": {
60
+ "type": "array",
61
+ "items": {
62
+ "enum": [
63
+ "process",
64
+ "start",
65
+ "end",
66
+ "decision",
67
+ "data-store",
68
+ "component"
69
+ ]
70
+ },
71
+ "minItems": 1,
72
+ "maxItems": 6,
73
+ "uniqueItems": true
74
+ },
75
+ "relationKinds": {
76
+ "type": "array",
77
+ "items": {
78
+ "enum": [
79
+ "association",
80
+ "dependency",
81
+ "flow",
82
+ "message",
83
+ "transition"
84
+ ]
85
+ },
86
+ "minItems": 1,
87
+ "maxItems": 5,
88
+ "uniqueItems": true
89
+ },
90
+ "operations": {
91
+ "type": "array",
92
+ "items": {
93
+ "enum": [
94
+ "insert-elements",
95
+ "update-semantics",
96
+ "remove-elements",
97
+ "set-membership-order",
98
+ "set-geometry",
99
+ "set-appearance-locks"
100
+ ]
101
+ },
102
+ "minItems": 6,
103
+ "maxItems": 6,
104
+ "uniqueItems": true
105
+ },
106
+ "mermaid": {
107
+ "type": "object",
108
+ "additionalProperties": false,
109
+ "properties": {
110
+ "mode": {
111
+ "const": "copy"
112
+ },
113
+ "certificationVersion": {
114
+ "const": "flowchart-copy-v1"
115
+ },
116
+ "constructs": {
117
+ "type": "array",
118
+ "items": {
119
+ "type": "object",
120
+ "additionalProperties": false,
121
+ "properties": {
122
+ "construct": {
123
+ "type": "string",
124
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
125
+ "maxLength": 64
126
+ },
127
+ "import": {
128
+ "enum": [
129
+ "lossless",
130
+ "partial",
131
+ "unsupported"
132
+ ]
133
+ },
134
+ "export": {
135
+ "enum": [
136
+ "lossless",
137
+ "partial",
138
+ "unsupported"
139
+ ]
140
+ },
141
+ "semanticRoundTrip": {
142
+ "enum": [
143
+ "lossless",
144
+ "partial",
145
+ "unsupported"
146
+ ]
147
+ },
148
+ "mapping": {
149
+ "type": "string",
150
+ "minLength": 1,
151
+ "maxLength": 512
152
+ }
153
+ },
154
+ "required": [
155
+ "construct",
156
+ "import",
157
+ "export",
158
+ "semanticRoundTrip",
159
+ "mapping"
160
+ ]
161
+ },
162
+ "minItems": 1,
163
+ "maxItems": 32
164
+ },
165
+ "linkedSource": {
166
+ "const": false
167
+ }
168
+ },
169
+ "required": [
170
+ "mode",
171
+ "certificationVersion",
172
+ "constructs",
173
+ "linkedSource"
174
+ ]
175
+ }
176
+ },
177
+ "required": [
178
+ "grammarId",
179
+ "authoring",
180
+ "primitives",
181
+ "nodeKinds",
182
+ "relationKinds",
183
+ "operations",
184
+ "mermaid"
185
+ ]
186
+ },
187
+ "minItems": 4,
188
+ "maxItems": 4
189
+ },
190
+ "unsupportedGrammars": {
191
+ "type": "array",
192
+ "items": {
193
+ "type": "string",
194
+ "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
195
+ "maxLength": 64
196
+ },
197
+ "minItems": 0,
198
+ "maxItems": 128,
199
+ "uniqueItems": true
200
+ }
201
+ },
202
+ "required": [
203
+ "kind",
204
+ "schemaVersion",
205
+ "protocolVersion",
206
+ "version",
207
+ "liveCollaboration",
208
+ "profiles",
209
+ "unsupportedGrammars"
210
+ ]
211
+ }