@orchestrator-claude/definitions 3.37.3 → 3.39.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/agentic-architect.md +174 -0
- package/agents/architecture-mediator.md +215 -0
- package/agents/azure-devops-engineer.md +2 -2
- package/agents/backend-architect.md +198 -0
- package/agents/cicd-platform-engineer.md +3 -2
- package/agents/contract-architect.md +210 -0
- package/agents/datamodel-architect.md +202 -0
- package/agents/frontend-architect.md +166 -0
- package/agents/frontend-engineer.md +10 -7
- package/agents/harness-architect.md +51 -32
- package/agents/harness-engineer.md +175 -0
- package/agents/implementer.md +10 -1
- package/agents/infra-architect.md +160 -0
- package/agents/operational-artifact-builder.md +1 -1
- package/agents/python-data-engineer.md +5 -4
- package/agents/software-architect.md +29 -147
- package/hooks/hooks.json +2 -2
- package/hooks/pre-agent-dispatch.mjs +3 -1
- package/hooks/pre-agent-dispatch.ts +2 -0
- package/hooks/subagent-start.ts +3 -1
- package/manifest.json +101 -13
- package/package.json +1 -1
- package/skills/archify/LICENSE +22 -0
- package/skills/archify/SKILL.md +278 -0
- package/skills/archify/VENDOR.txt +70 -0
- package/skills/archify/assets/template.html +1261 -0
- package/skills/archify/bin/archify.mjs +271 -0
- package/skills/archify/examples/agent-run.lifecycle.json +64 -0
- package/skills/archify/examples/agent-tool-call.workflow.json +88 -0
- package/skills/archify/examples/cache-miss-request.sequence.json +75 -0
- package/skills/archify/examples/product-analytics.dataflow.json +70 -0
- package/skills/archify/examples/web-app.architecture.json +41 -0
- package/skills/archify/package-lock.json +80 -0
- package/skills/archify/package.json +23 -0
- package/skills/archify/renderers/architecture/grid.mjs +62 -0
- package/skills/archify/renderers/architecture/render-architecture.mjs +371 -0
- package/skills/archify/renderers/dataflow/README.md +82 -0
- package/skills/archify/renderers/dataflow/render-dataflow.mjs +295 -0
- package/skills/archify/renderers/lifecycle/README.md +91 -0
- package/skills/archify/renderers/lifecycle/render-lifecycle.mjs +384 -0
- package/skills/archify/renderers/sequence/README.md +84 -0
- package/skills/archify/renderers/sequence/render-sequence.mjs +257 -0
- package/skills/archify/renderers/shared/cli.mjs +44 -0
- package/skills/archify/renderers/shared/generated-validators.mjs +13 -0
- package/skills/archify/renderers/shared/geometry.mjs +230 -0
- package/skills/archify/renderers/shared/layout-report.mjs +40 -0
- package/skills/archify/renderers/shared/utils.mjs +88 -0
- package/skills/archify/renderers/shared/validator.mjs +40 -0
- package/skills/archify/renderers/workflow/README.md +103 -0
- package/skills/archify/renderers/workflow/render-workflow.mjs +481 -0
- package/skills/archify/schemas/README.md +72 -0
- package/skills/archify/schemas/architecture.schema.json +121 -0
- package/skills/archify/schemas/common.schema.json +43 -0
- package/skills/archify/schemas/dataflow.schema.json +221 -0
- package/skills/archify/schemas/lifecycle.schema.json +241 -0
- package/skills/archify/schemas/sequence.schema.json +186 -0
- package/skills/archify/schemas/workflow.schema.json +332 -0
- package/skills/archify/scripts/check-render-output.mjs +297 -0
- package/skills/archify/scripts/generate-validators.mjs +66 -0
- package/skills/archify/scripts/render-examples.mjs +26 -0
- package/skills/archify/test/animation.test.mjs +53 -0
- package/skills/archify/test/cli.test.mjs +206 -0
- package/skills/archify/test/degraded.test.mjs +157 -0
- package/skills/archify/test/generate-validators.test.mjs +40 -0
- package/skills/archify/test/geometry.test.mjs +186 -0
- package/skills/archify/test/golden.mjs +167 -0
- package/skills/archify/test/grid.test.mjs +47 -0
- package/skills/archify/test/layout-rules.test.mjs +193 -0
- package/skills/archify/test/render-output-checks.test.mjs +75 -0
- package/skills/arquitetura-lane-dispatch/SKILL.md +205 -0
- package/skills/arquitetura-mediada-arquiteto/SKILL.md +261 -0
- package/skills/checkpoint-protocol/SKILL.md +1 -1
- package/skills/orchestrator/SKILL.md +1 -1
- package/skills/release/release.sh +63 -6
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/tt-a1i/archify/schemas/common.schema.json",
|
|
4
|
+
"title": "Archify Shared Definitions",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
|
|
9
|
+
},
|
|
10
|
+
"point": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"prefixItems": [
|
|
13
|
+
{ "type": "number" },
|
|
14
|
+
{ "type": "number" }
|
|
15
|
+
],
|
|
16
|
+
"items": false,
|
|
17
|
+
"minItems": 2,
|
|
18
|
+
"maxItems": 2
|
|
19
|
+
},
|
|
20
|
+
"componentType": {
|
|
21
|
+
"enum": ["frontend", "backend", "database", "cloud", "security", "messagebus", "external"]
|
|
22
|
+
},
|
|
23
|
+
"variant": {
|
|
24
|
+
"enum": ["default", "emphasis", "security", "dashed"]
|
|
25
|
+
},
|
|
26
|
+
"cards": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": ["dot", "title", "items"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"dot": { "enum": ["cyan", "emerald", "violet", "amber", "rose", "orange", "slate"] },
|
|
34
|
+
"title": { "type": "string", "minLength": 1 },
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": { "type": "string" }
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/tt-a1i/archify/schemas/dataflow.schema.json",
|
|
4
|
+
"title": "Archify Data Flow Diagram",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"diagram_type",
|
|
10
|
+
"meta",
|
|
11
|
+
"stages",
|
|
12
|
+
"nodes",
|
|
13
|
+
"flows"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"schema_version": {
|
|
17
|
+
"const": 1
|
|
18
|
+
},
|
|
19
|
+
"diagram_type": {
|
|
20
|
+
"const": "dataflow"
|
|
21
|
+
},
|
|
22
|
+
"meta": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"title"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"title": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1
|
|
32
|
+
},
|
|
33
|
+
"subtitle": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"output": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"animation": {
|
|
40
|
+
"enum": [
|
|
41
|
+
"trace",
|
|
42
|
+
"none"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"viewBox": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"prefixItems": [
|
|
48
|
+
{
|
|
49
|
+
"type": "number",
|
|
50
|
+
"minimum": 360
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "number",
|
|
54
|
+
"minimum": 360
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"items": false,
|
|
58
|
+
"minItems": 2,
|
|
59
|
+
"maxItems": 2
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"stages": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"minItems": 2,
|
|
66
|
+
"maxItems": 5,
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"required": [
|
|
71
|
+
"label"
|
|
72
|
+
],
|
|
73
|
+
"properties": {
|
|
74
|
+
"label": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"nodes": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"minItems": 2,
|
|
84
|
+
"items": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"required": [
|
|
88
|
+
"id",
|
|
89
|
+
"type",
|
|
90
|
+
"label",
|
|
91
|
+
"stage",
|
|
92
|
+
"row"
|
|
93
|
+
],
|
|
94
|
+
"properties": {
|
|
95
|
+
"id": {
|
|
96
|
+
"$ref": "common.schema.json#/$defs/id"
|
|
97
|
+
},
|
|
98
|
+
"type": {
|
|
99
|
+
"$ref": "common.schema.json#/$defs/componentType"
|
|
100
|
+
},
|
|
101
|
+
"label": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"minLength": 1
|
|
104
|
+
},
|
|
105
|
+
"sublabel": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"tag": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"stage": {
|
|
112
|
+
"type": "integer",
|
|
113
|
+
"minimum": 0
|
|
114
|
+
},
|
|
115
|
+
"row": {
|
|
116
|
+
"type": "integer",
|
|
117
|
+
"minimum": 0
|
|
118
|
+
},
|
|
119
|
+
"width": {
|
|
120
|
+
"type": "number",
|
|
121
|
+
"minimum": 48
|
|
122
|
+
},
|
|
123
|
+
"height": {
|
|
124
|
+
"type": "number",
|
|
125
|
+
"minimum": 36
|
|
126
|
+
},
|
|
127
|
+
"yOffset": {
|
|
128
|
+
"type": "number"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"flows": {
|
|
134
|
+
"type": "array",
|
|
135
|
+
"items": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"additionalProperties": false,
|
|
138
|
+
"required": [
|
|
139
|
+
"from",
|
|
140
|
+
"to",
|
|
141
|
+
"label"
|
|
142
|
+
],
|
|
143
|
+
"properties": {
|
|
144
|
+
"from": {
|
|
145
|
+
"$ref": "common.schema.json#/$defs/id"
|
|
146
|
+
},
|
|
147
|
+
"to": {
|
|
148
|
+
"$ref": "common.schema.json#/$defs/id"
|
|
149
|
+
},
|
|
150
|
+
"label": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"minLength": 1
|
|
153
|
+
},
|
|
154
|
+
"classification": {
|
|
155
|
+
"type": "string"
|
|
156
|
+
},
|
|
157
|
+
"variant": {
|
|
158
|
+
"$ref": "common.schema.json#/$defs/variant"
|
|
159
|
+
},
|
|
160
|
+
"route": {
|
|
161
|
+
"enum": [
|
|
162
|
+
"auto",
|
|
163
|
+
"straight",
|
|
164
|
+
"vertical-channel",
|
|
165
|
+
"bottom-channel",
|
|
166
|
+
"top-channel"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
"fromSide": {
|
|
170
|
+
"enum": [
|
|
171
|
+
"left",
|
|
172
|
+
"right",
|
|
173
|
+
"top",
|
|
174
|
+
"bottom"
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
"toSide": {
|
|
178
|
+
"enum": [
|
|
179
|
+
"left",
|
|
180
|
+
"right",
|
|
181
|
+
"top",
|
|
182
|
+
"bottom"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
"channelX": {
|
|
186
|
+
"type": "number"
|
|
187
|
+
},
|
|
188
|
+
"channelY": {
|
|
189
|
+
"type": "number"
|
|
190
|
+
},
|
|
191
|
+
"labelAt": {
|
|
192
|
+
"$ref": "common.schema.json#/$defs/point"
|
|
193
|
+
},
|
|
194
|
+
"labelDx": {
|
|
195
|
+
"type": "number"
|
|
196
|
+
},
|
|
197
|
+
"labelDy": {
|
|
198
|
+
"type": "number"
|
|
199
|
+
},
|
|
200
|
+
"labelSegment": {
|
|
201
|
+
"type": "integer",
|
|
202
|
+
"minimum": 0
|
|
203
|
+
},
|
|
204
|
+
"via": {
|
|
205
|
+
"type": "array",
|
|
206
|
+
"items": {
|
|
207
|
+
"$ref": "common.schema.json#/$defs/point"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"width": {
|
|
211
|
+
"type": "number",
|
|
212
|
+
"minimum": 0.5
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"cards": {
|
|
218
|
+
"$ref": "common.schema.json#/$defs/cards"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/tt-a1i/archify/schemas/lifecycle.schema.json",
|
|
4
|
+
"title": "Archify Lifecycle Diagram",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"diagram_type",
|
|
10
|
+
"meta",
|
|
11
|
+
"lanes",
|
|
12
|
+
"states",
|
|
13
|
+
"transitions"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"schema_version": {
|
|
17
|
+
"const": 1
|
|
18
|
+
},
|
|
19
|
+
"diagram_type": {
|
|
20
|
+
"const": "lifecycle"
|
|
21
|
+
},
|
|
22
|
+
"meta": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"title"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"title": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1
|
|
32
|
+
},
|
|
33
|
+
"subtitle": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"output": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"animation": {
|
|
40
|
+
"enum": [
|
|
41
|
+
"trace",
|
|
42
|
+
"none"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"viewBox": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"prefixItems": [
|
|
48
|
+
{
|
|
49
|
+
"type": "number",
|
|
50
|
+
"minimum": 420
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "number",
|
|
54
|
+
"minimum": 566
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"items": false,
|
|
58
|
+
"minItems": 2,
|
|
59
|
+
"maxItems": 2
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"lanes": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"minItems": 1,
|
|
66
|
+
"maxItems": 4,
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"required": [
|
|
71
|
+
"id",
|
|
72
|
+
"label"
|
|
73
|
+
],
|
|
74
|
+
"properties": {
|
|
75
|
+
"id": {
|
|
76
|
+
"$ref": "common.schema.json#/$defs/id"
|
|
77
|
+
},
|
|
78
|
+
"label": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"minLength": 1
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"states": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"minItems": 2,
|
|
88
|
+
"items": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"required": [
|
|
92
|
+
"id",
|
|
93
|
+
"type",
|
|
94
|
+
"label",
|
|
95
|
+
"lane",
|
|
96
|
+
"col"
|
|
97
|
+
],
|
|
98
|
+
"properties": {
|
|
99
|
+
"id": {
|
|
100
|
+
"$ref": "common.schema.json#/$defs/id"
|
|
101
|
+
},
|
|
102
|
+
"type": {
|
|
103
|
+
"enum": [
|
|
104
|
+
"start",
|
|
105
|
+
"active",
|
|
106
|
+
"waiting",
|
|
107
|
+
"decision",
|
|
108
|
+
"success",
|
|
109
|
+
"failure",
|
|
110
|
+
"neutral",
|
|
111
|
+
"external"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"label": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"minLength": 1
|
|
117
|
+
},
|
|
118
|
+
"sublabel": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"tag": {
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"step": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"lane": {
|
|
128
|
+
"$ref": "common.schema.json#/$defs/id"
|
|
129
|
+
},
|
|
130
|
+
"col": {
|
|
131
|
+
"type": "integer",
|
|
132
|
+
"minimum": 0,
|
|
133
|
+
"maximum": 4
|
|
134
|
+
},
|
|
135
|
+
"width": {
|
|
136
|
+
"type": "number",
|
|
137
|
+
"minimum": 48
|
|
138
|
+
},
|
|
139
|
+
"height": {
|
|
140
|
+
"type": "number",
|
|
141
|
+
"minimum": 36
|
|
142
|
+
},
|
|
143
|
+
"yOffset": {
|
|
144
|
+
"type": "number"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"transitions": {
|
|
150
|
+
"type": "array",
|
|
151
|
+
"items": {
|
|
152
|
+
"type": "object",
|
|
153
|
+
"additionalProperties": false,
|
|
154
|
+
"required": [
|
|
155
|
+
"from",
|
|
156
|
+
"to"
|
|
157
|
+
],
|
|
158
|
+
"properties": {
|
|
159
|
+
"from": {
|
|
160
|
+
"$ref": "common.schema.json#/$defs/id"
|
|
161
|
+
},
|
|
162
|
+
"to": {
|
|
163
|
+
"$ref": "common.schema.json#/$defs/id"
|
|
164
|
+
},
|
|
165
|
+
"label": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
},
|
|
168
|
+
"note": {
|
|
169
|
+
"type": "string"
|
|
170
|
+
},
|
|
171
|
+
"variant": {
|
|
172
|
+
"$ref": "common.schema.json#/$defs/variant"
|
|
173
|
+
},
|
|
174
|
+
"route": {
|
|
175
|
+
"enum": [
|
|
176
|
+
"auto",
|
|
177
|
+
"straight",
|
|
178
|
+
"drop",
|
|
179
|
+
"bottom-channel",
|
|
180
|
+
"top-channel",
|
|
181
|
+
"right-channel",
|
|
182
|
+
"left-channel"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
"fromSide": {
|
|
186
|
+
"enum": [
|
|
187
|
+
"left",
|
|
188
|
+
"right",
|
|
189
|
+
"top",
|
|
190
|
+
"bottom"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
"toSide": {
|
|
194
|
+
"enum": [
|
|
195
|
+
"left",
|
|
196
|
+
"right",
|
|
197
|
+
"top",
|
|
198
|
+
"bottom"
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"channelX": {
|
|
202
|
+
"type": "number"
|
|
203
|
+
},
|
|
204
|
+
"channelY": {
|
|
205
|
+
"type": "number"
|
|
206
|
+
},
|
|
207
|
+
"cornerRadius": {
|
|
208
|
+
"type": "number",
|
|
209
|
+
"minimum": 0
|
|
210
|
+
},
|
|
211
|
+
"labelAt": {
|
|
212
|
+
"$ref": "common.schema.json#/$defs/point"
|
|
213
|
+
},
|
|
214
|
+
"labelDx": {
|
|
215
|
+
"type": "number"
|
|
216
|
+
},
|
|
217
|
+
"labelDy": {
|
|
218
|
+
"type": "number"
|
|
219
|
+
},
|
|
220
|
+
"labelSegment": {
|
|
221
|
+
"type": "integer",
|
|
222
|
+
"minimum": 0
|
|
223
|
+
},
|
|
224
|
+
"via": {
|
|
225
|
+
"type": "array",
|
|
226
|
+
"items": {
|
|
227
|
+
"$ref": "common.schema.json#/$defs/point"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"width": {
|
|
231
|
+
"type": "number",
|
|
232
|
+
"minimum": 0.5
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"cards": {
|
|
238
|
+
"$ref": "common.schema.json#/$defs/cards"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/tt-a1i/archify/schemas/sequence.schema.json",
|
|
4
|
+
"title": "Archify Sequence Diagram",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"diagram_type",
|
|
10
|
+
"meta",
|
|
11
|
+
"participants",
|
|
12
|
+
"messages"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"schema_version": {
|
|
16
|
+
"const": 1
|
|
17
|
+
},
|
|
18
|
+
"diagram_type": {
|
|
19
|
+
"const": "sequence"
|
|
20
|
+
},
|
|
21
|
+
"meta": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": [
|
|
25
|
+
"title"
|
|
26
|
+
],
|
|
27
|
+
"properties": {
|
|
28
|
+
"title": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"minLength": 1
|
|
31
|
+
},
|
|
32
|
+
"subtitle": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"output": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"animation": {
|
|
39
|
+
"enum": [
|
|
40
|
+
"trace",
|
|
41
|
+
"none"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"viewBox": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"prefixItems": [
|
|
47
|
+
{
|
|
48
|
+
"type": "number",
|
|
49
|
+
"minimum": 480
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "number",
|
|
53
|
+
"minimum": 480
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"items": false,
|
|
57
|
+
"minItems": 2,
|
|
58
|
+
"maxItems": 2
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"participants": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"minItems": 2,
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": [
|
|
69
|
+
"id",
|
|
70
|
+
"type",
|
|
71
|
+
"label"
|
|
72
|
+
],
|
|
73
|
+
"properties": {
|
|
74
|
+
"id": {
|
|
75
|
+
"$ref": "common.schema.json#/$defs/id"
|
|
76
|
+
},
|
|
77
|
+
"type": {
|
|
78
|
+
"$ref": "common.schema.json#/$defs/componentType"
|
|
79
|
+
},
|
|
80
|
+
"label": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"minLength": 1
|
|
83
|
+
},
|
|
84
|
+
"sublabel": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"segments": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"items": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"additionalProperties": false,
|
|
95
|
+
"required": [
|
|
96
|
+
"from",
|
|
97
|
+
"to",
|
|
98
|
+
"label"
|
|
99
|
+
],
|
|
100
|
+
"properties": {
|
|
101
|
+
"from": {
|
|
102
|
+
"type": "number"
|
|
103
|
+
},
|
|
104
|
+
"to": {
|
|
105
|
+
"type": "number"
|
|
106
|
+
},
|
|
107
|
+
"label": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"minLength": 1
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"messages": {
|
|
115
|
+
"type": "array",
|
|
116
|
+
"minItems": 1,
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"required": [
|
|
121
|
+
"from",
|
|
122
|
+
"to",
|
|
123
|
+
"y",
|
|
124
|
+
"label"
|
|
125
|
+
],
|
|
126
|
+
"properties": {
|
|
127
|
+
"from": {
|
|
128
|
+
"$ref": "common.schema.json#/$defs/id"
|
|
129
|
+
},
|
|
130
|
+
"to": {
|
|
131
|
+
"$ref": "common.schema.json#/$defs/id"
|
|
132
|
+
},
|
|
133
|
+
"y": {
|
|
134
|
+
"type": "number",
|
|
135
|
+
"minimum": 160
|
|
136
|
+
},
|
|
137
|
+
"label": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"minLength": 1
|
|
140
|
+
},
|
|
141
|
+
"variant": {
|
|
142
|
+
"enum": [
|
|
143
|
+
"default",
|
|
144
|
+
"emphasis",
|
|
145
|
+
"security",
|
|
146
|
+
"dashed",
|
|
147
|
+
"return"
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
"note": {
|
|
151
|
+
"type": "string"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"activations": {
|
|
157
|
+
"type": "array",
|
|
158
|
+
"items": {
|
|
159
|
+
"type": "object",
|
|
160
|
+
"additionalProperties": false,
|
|
161
|
+
"required": [
|
|
162
|
+
"participant",
|
|
163
|
+
"from",
|
|
164
|
+
"to"
|
|
165
|
+
],
|
|
166
|
+
"properties": {
|
|
167
|
+
"participant": {
|
|
168
|
+
"$ref": "common.schema.json#/$defs/id"
|
|
169
|
+
},
|
|
170
|
+
"from": {
|
|
171
|
+
"type": "number"
|
|
172
|
+
},
|
|
173
|
+
"to": {
|
|
174
|
+
"type": "number"
|
|
175
|
+
},
|
|
176
|
+
"type": {
|
|
177
|
+
"$ref": "common.schema.json#/$defs/componentType"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"cards": {
|
|
183
|
+
"$ref": "common.schema.json#/$defs/cards"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|