dsh-knowhub 0.9.0 → 0.10.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 (195) hide show
  1. package/README.md +11 -2
  2. package/cordis.patch.yml +10 -0
  3. package/lib/host/model.js +1 -1
  4. package/lib/host/pipeline/incremental.js +3 -3
  5. package/lib/host/pipeline/initialize.js +144 -27
  6. package/lib/host/pipeline/model-output.js +2 -2
  7. package/package.json +3 -2
  8. package/skills/archify/LICENSE +202 -0
  9. package/skills/archify/LICENSE-MIT +22 -0
  10. package/skills/archify/NOTICE +26 -0
  11. package/skills/archify/SKILL.md +137 -0
  12. package/skills/archify/THIRD_PARTY_NOTICES.md +78 -0
  13. package/skills/archify/assets/JetBrainsMono-OFL.txt +93 -0
  14. package/skills/archify/assets/template.html +14768 -0
  15. package/skills/archify/bin/archify.mjs +7289 -0
  16. package/skills/archify/bin/delivery-update.mjs +92 -0
  17. package/skills/archify/bin/finalize.mjs +1055 -0
  18. package/skills/archify/bin/open-artifact.mjs +146 -0
  19. package/skills/archify/bin/preview.mjs +970 -0
  20. package/skills/archify/bin/recover-output.mjs +41 -0
  21. package/skills/archify/bin/visual-check.mjs +2780 -0
  22. package/skills/archify/brand-marks/README.md +31 -0
  23. package/skills/archify/brand-marks/catalog.json +131 -0
  24. package/skills/archify/delta/architecture-delta.mjs +1318 -0
  25. package/skills/archify/examples/agent-run.lifecycle.json +55 -0
  26. package/skills/archify/examples/agent-tool-call.workflow.json +74 -0
  27. package/skills/archify/examples/archify-dev-activity.timeline.json +176 -0
  28. package/skills/archify/examples/archify-repository.tree.json +197 -0
  29. package/skills/archify/examples/async-job-roundtrip.sequence.json +56 -0
  30. package/skills/archify/examples/brand-aware-delivery.architecture.json +34 -0
  31. package/skills/archify/examples/cache-miss-request.sequence.json +77 -0
  32. package/skills/archify/examples/checkout-platform.base.architecture.json +32 -0
  33. package/skills/archify/examples/checkout-platform.head.architecture.json +32 -0
  34. package/skills/archify/examples/checkout-request.waterfall.json +20 -0
  35. package/skills/archify/examples/delivery.explainer.json +155 -0
  36. package/skills/archify/examples/deployment-release.lifecycle.json +72 -0
  37. package/skills/archify/examples/event-stream.dataflow.json +52 -0
  38. package/skills/archify/examples/example-rebuild.waterfall.json +212 -0
  39. package/skills/archify/examples/holiday-planning.workflow.json +143 -0
  40. package/skills/archify/examples/incident-response.workflow.json +59 -0
  41. package/skills/archify/examples/locales/de.json +463 -0
  42. package/skills/archify/examples/locales/fr.json +463 -0
  43. package/skills/archify/examples/locales/fr.partial.json +22 -0
  44. package/skills/archify/examples/locales/it.json +463 -0
  45. package/skills/archify/examples/locales/ja.json +463 -0
  46. package/skills/archify/examples/locales/pt.json +463 -0
  47. package/skills/archify/examples/locales/ru.json +463 -0
  48. package/skills/archify/examples/orders.erd.json +337 -0
  49. package/skills/archify/examples/payment-incident.timeline.json +24 -0
  50. package/skills/archify/examples/payment-platform.tree.json +22 -0
  51. package/skills/archify/examples/payment-processors.class.json +177 -0
  52. package/skills/archify/examples/payments.class.json +85 -0
  53. package/skills/archify/examples/product-analytics.dataflow.json +71 -0
  54. package/skills/archify/examples/production-deployment.architecture.json +51 -0
  55. package/skills/archify/examples/release-delivery.workflow.json +57 -0
  56. package/skills/archify/examples/subscription-billing.erd.json +548 -0
  57. package/skills/archify/examples/web-app.architecture.json +41 -0
  58. package/skills/archify/explainer/browser-check.mjs +208 -0
  59. package/skills/archify/explainer/charts.mjs +70 -0
  60. package/skills/archify/explainer/check.mjs +167 -0
  61. package/skills/archify/explainer/diagrams.mjs +517 -0
  62. package/skills/archify/explainer/diff.mjs +124 -0
  63. package/skills/archify/explainer/inline.mjs +155 -0
  64. package/skills/archify/explainer/layout.mjs +35 -0
  65. package/skills/archify/explainer/page-bundle.mjs +16 -0
  66. package/skills/archify/explainer/parse.mjs +300 -0
  67. package/skills/archify/explainer/patch.mjs +117 -0
  68. package/skills/archify/explainer/prepare.mjs +131 -0
  69. package/skills/archify/explainer/reader.css +472 -0
  70. package/skills/archify/explainer/reader.js +666 -0
  71. package/skills/archify/explainer/render.mjs +224 -0
  72. package/skills/archify/explainer/revision.mjs +20 -0
  73. package/skills/archify/explainer/sources.mjs +318 -0
  74. package/skills/archify/explainer/validate.mjs +138 -0
  75. package/skills/archify/explainer/vendor/pele/LICENSE +40 -0
  76. package/skills/archify/explainer/vendor/pele/README.md +5 -0
  77. package/skills/archify/explainer/vendor/pele/chunks/3DKXF73K.js +4 -0
  78. package/skills/archify/explainer/vendor/pele/chunks/42UTT654.js +3 -0
  79. package/skills/archify/explainer/vendor/pele/chunks/DKTLEL5E.js +1 -0
  80. package/skills/archify/explainer/vendor/pele/chunks/EEIX5ZYH.js +2 -0
  81. package/skills/archify/explainer/vendor/pele/chunks/EJ5KOXYD.js +25 -0
  82. package/skills/archify/explainer/vendor/pele/chunks/GUJTEFZK.js +1 -0
  83. package/skills/archify/explainer/vendor/pele/chunks/IZOKQ2GT.js +4 -0
  84. package/skills/archify/explainer/vendor/pele/chunks/L4LY553T.js +3 -0
  85. package/skills/archify/explainer/vendor/pele/chunks/MSKIJHB2.js +2 -0
  86. package/skills/archify/explainer/vendor/pele/chunks/RVARI57O.js +1 -0
  87. package/skills/archify/explainer/vendor/pele/chunks/UKSIWDDN.js +2 -0
  88. package/skills/archify/explainer/vendor/pele/chunks/UPTXNAXN.js +2 -0
  89. package/skills/archify/explainer/vendor/pele/chunks/XTDUIGUI.js +9 -0
  90. package/skills/archify/explainer/vendor/pele/chunks/YAYTP6L5.js +9 -0
  91. package/skills/archify/explainer/vendor/pele/core.js +1 -0
  92. package/skills/archify/explainer/vendor/pele/diagrams/pie.js +1 -0
  93. package/skills/archify/explainer/vendor/pele/diagrams/quadrantChart.js +1 -0
  94. package/skills/archify/explainer/vendor/pele/diagrams/radar.js +1 -0
  95. package/skills/archify/explainer/vendor/pele/diagrams/sankey.js +1 -0
  96. package/skills/archify/explainer/vendor/pele/diagrams/venn.js +1 -0
  97. package/skills/archify/explainer/vendor/pele/diagrams/xychart.js +1 -0
  98. package/skills/archify/explainer/writing.mjs +139 -0
  99. package/skills/archify/locales/README.md +40 -0
  100. package/skills/archify/locales/ar.json +488 -0
  101. package/skills/archify/locales/en.json +488 -0
  102. package/skills/archify/locales/es.json +488 -0
  103. package/skills/archify/locales/ko.json +488 -0
  104. package/skills/archify/locales/manifest.json +10 -0
  105. package/skills/archify/locales/zh-CN.json +488 -0
  106. package/skills/archify/locales/zh-TW.json +488 -0
  107. package/skills/archify/migrations/workflow-v2.mjs +280 -0
  108. package/skills/archify/package.json +17 -0
  109. package/skills/archify/recipes/scenarios.mjs +455 -0
  110. package/skills/archify/references/architecture-layout-repair.md +18 -0
  111. package/skills/archify/references/authoring-contract.md +645 -0
  112. package/skills/archify/references/authoring-defaults.md +57 -0
  113. package/skills/archify/references/brand-marks.md +119 -0
  114. package/skills/archify/references/delivery-contract.md +665 -0
  115. package/skills/archify/references/explainer-authoring.md +274 -0
  116. package/skills/archify/references/repository-authoring.md +126 -0
  117. package/skills/archify/references/update-awareness.md +13 -0
  118. package/skills/archify/references/viewer-runtime.md +52 -0
  119. package/skills/archify/renderers/architecture/grid.mjs +62 -0
  120. package/skills/archify/renderers/architecture/labels.mjs +2 -0
  121. package/skills/archify/renderers/architecture/render-architecture.mjs +1204 -0
  122. package/skills/archify/renderers/architecture/routing.mjs +1469 -0
  123. package/skills/archify/renderers/class/README.md +130 -0
  124. package/skills/archify/renderers/class/render-class.mjs +1095 -0
  125. package/skills/archify/renderers/dataflow/README.md +176 -0
  126. package/skills/archify/renderers/dataflow/dataflow-compiler.mjs +1605 -0
  127. package/skills/archify/renderers/dataflow/joint-label-routing.mjs +165 -0
  128. package/skills/archify/renderers/dataflow/label-capacity.mjs +81 -0
  129. package/skills/archify/renderers/dataflow/render-dataflow.mjs +23 -0
  130. package/skills/archify/renderers/erd/README.md +246 -0
  131. package/skills/archify/renderers/erd/grid.mjs +150 -0
  132. package/skills/archify/renderers/erd/render-erd.mjs +1588 -0
  133. package/skills/archify/renderers/explainer/render-explainer.mjs +42 -0
  134. package/skills/archify/renderers/lifecycle/README.md +104 -0
  135. package/skills/archify/renderers/lifecycle/render-lifecycle.mjs +1134 -0
  136. package/skills/archify/renderers/sequence/README.md +146 -0
  137. package/skills/archify/renderers/sequence/render-sequence.mjs +1105 -0
  138. package/skills/archify/renderers/shared/atomic-output.mjs +1982 -0
  139. package/skills/archify/renderers/shared/automatic-labels.mjs +290 -0
  140. package/skills/archify/renderers/shared/brand-marks.mjs +706 -0
  141. package/skills/archify/renderers/shared/cli.mjs +430 -0
  142. package/skills/archify/renderers/shared/desktop-readability.mjs +132 -0
  143. package/skills/archify/renderers/shared/diagnostics.mjs +0 -0
  144. package/skills/archify/renderers/shared/engineering-profiles.mjs +157 -0
  145. package/skills/archify/renderers/shared/generated-brand-marks.mjs +2003 -0
  146. package/skills/archify/renderers/shared/generated-validators.mjs +279 -0
  147. package/skills/archify/renderers/shared/geometry.mjs +2073 -0
  148. package/skills/archify/renderers/shared/i18n.mjs +328 -0
  149. package/skills/archify/renderers/shared/layout-report.mjs +57 -0
  150. package/skills/archify/renderers/shared/legend.mjs +227 -0
  151. package/skills/archify/renderers/shared/node-card-style.mjs +32 -0
  152. package/skills/archify/renderers/shared/output-path.mjs +440 -0
  153. package/skills/archify/renderers/shared/owned-temp-directory.mjs +82 -0
  154. package/skills/archify/renderers/shared/path-semantics.mjs +1017 -0
  155. package/skills/archify/renderers/shared/portable-path.mjs +408 -0
  156. package/skills/archify/renderers/shared/repository-evidence.mjs +394 -0
  157. package/skills/archify/renderers/shared/repository-location.mjs +71 -0
  158. package/skills/archify/renderers/shared/route-quality.mjs +670 -0
  159. package/skills/archify/renderers/shared/sidecar-path.mjs +38 -0
  160. package/skills/archify/renderers/shared/software-notices.mjs +6 -0
  161. package/skills/archify/renderers/shared/spatial-grid.mjs +66 -0
  162. package/skills/archify/renderers/shared/svg-path-analysis.mjs +135 -0
  163. package/skills/archify/renderers/shared/text-fit.mjs +105 -0
  164. package/skills/archify/renderers/shared/utils.mjs +260 -0
  165. package/skills/archify/renderers/shared/validator.mjs +83 -0
  166. package/skills/archify/renderers/timeline/README.md +76 -0
  167. package/skills/archify/renderers/timeline/render-timeline.mjs +576 -0
  168. package/skills/archify/renderers/tree/README.md +96 -0
  169. package/skills/archify/renderers/tree/render-tree.mjs +573 -0
  170. package/skills/archify/renderers/waterfall/README.md +73 -0
  171. package/skills/archify/renderers/waterfall/render-waterfall.mjs +413 -0
  172. package/skills/archify/renderers/workflow/README.md +337 -0
  173. package/skills/archify/renderers/workflow/render-workflow.mjs +47 -0
  174. package/skills/archify/renderers/workflow/workflow-compiler.mjs +5920 -0
  175. package/skills/archify/renderers/workflow/workflow-migration-geometry.mjs +161 -0
  176. package/skills/archify/renderers/workflow/workflow-placement-repair.mjs +94 -0
  177. package/skills/archify/schemas/README.md +258 -0
  178. package/skills/archify/schemas/architecture.schema.json +152 -0
  179. package/skills/archify/schemas/class.schema.json +345 -0
  180. package/skills/archify/schemas/common.schema.json +181 -0
  181. package/skills/archify/schemas/dataflow.schema.json +254 -0
  182. package/skills/archify/schemas/erd.schema.json +381 -0
  183. package/skills/archify/schemas/explainer.schema.json +927 -0
  184. package/skills/archify/schemas/lifecycle.schema.json +179 -0
  185. package/skills/archify/schemas/sequence.schema.json +234 -0
  186. package/skills/archify/schemas/timeline.schema.json +160 -0
  187. package/skills/archify/schemas/tree.schema.json +141 -0
  188. package/skills/archify/schemas/waterfall.schema.json +147 -0
  189. package/skills/archify/schemas/workflow.schema.json +439 -0
  190. package/skills/archify/scripts/check-render-output.mjs +1469 -0
  191. package/skills/archify/scripts/check-update.mjs +1717 -0
  192. package/skills/archify/scripts/delivery-update-child.mjs +26 -0
  193. package/skills/archify/scripts/render-examples.mjs +36 -0
  194. package/skills/archify/scripts/update-contract.mjs +187 -0
  195. package/skills/archify/skill-release.json +10 -0
@@ -0,0 +1,179 @@
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
+ "mainPath",
12
+ "states",
13
+ "transitions"
14
+ ],
15
+ "properties": {
16
+ "schema_version": {
17
+ "description": "Lifecycle uses version 3: an automatic main-path layout.",
18
+ "const": 3
19
+ },
20
+ "diagram_type": {
21
+ "const": "lifecycle"
22
+ },
23
+ "meta": {
24
+ "type": "object",
25
+ "additionalProperties": false,
26
+ "required": [
27
+ "title",
28
+ "output"
29
+ ],
30
+ "properties": {
31
+ "title": {
32
+ "type": "string",
33
+ "minLength": 1
34
+ },
35
+ "locale": {
36
+ "$ref": "common.schema.json#/$defs/locale"
37
+ },
38
+ "translations": {
39
+ "$ref": "common.schema.json#/$defs/translations"
40
+ },
41
+ "subtitle": {
42
+ "type": "string"
43
+ },
44
+ "output": {
45
+ "$ref": "common.schema.json#/$defs/portableOutputPath"
46
+ },
47
+ "animation": {
48
+ "$ref": "common.schema.json#/$defs/animation"
49
+ },
50
+ "visual_preset": {
51
+ "$ref": "common.schema.json#/$defs/visualPreset"
52
+ },
53
+ "quality_profile": {
54
+ "$ref": "common.schema.json#/$defs/qualityProfile"
55
+ },
56
+ "repository": {
57
+ "$ref": "common.schema.json#/$defs/repository"
58
+ },
59
+ "views": {
60
+ "$ref": "common.schema.json#/$defs/guidedViews"
61
+ },
62
+ "legend": {
63
+ "type": "object",
64
+ "additionalProperties": false,
65
+ "properties": {
66
+ "mode": { "$ref": "common.schema.json#/$defs/legendMode" },
67
+ "entries": {
68
+ "type": "object",
69
+ "additionalProperties": false,
70
+ "properties": {
71
+ "start": { "$ref": "common.schema.json#/$defs/legendEntry" },
72
+ "active": { "$ref": "common.schema.json#/$defs/legendEntry" },
73
+ "waiting": { "$ref": "common.schema.json#/$defs/legendEntry" },
74
+ "decision": { "$ref": "common.schema.json#/$defs/legendEntry" },
75
+ "success": { "$ref": "common.schema.json#/$defs/legendEntry" },
76
+ "failure": { "$ref": "common.schema.json#/$defs/legendEntry" },
77
+ "neutral": { "$ref": "common.schema.json#/$defs/legendEntry" },
78
+ "external": { "$ref": "common.schema.json#/$defs/legendEntry" }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ },
85
+ "mainPath": {
86
+ "description": "The happy path from the initial state, left to right. Each consecutive pair needs a transition. Every other state is placed below the state it branches from; transitions back to an earlier main-path state are drawn as loops above.",
87
+ "type": "array",
88
+ "minItems": 2,
89
+ "items": {
90
+ "$ref": "common.schema.json#/$defs/id"
91
+ }
92
+ },
93
+ "states": {
94
+ "type": "array",
95
+ "minItems": 2,
96
+ "items": {
97
+ "type": "object",
98
+ "additionalProperties": false,
99
+ "required": [
100
+ "id",
101
+ "type",
102
+ "label"
103
+ ],
104
+ "properties": {
105
+ "id": {
106
+ "$ref": "common.schema.json#/$defs/id"
107
+ },
108
+ "type": {
109
+ "description": "start: the initial state. active: work in progress. waiting: paused for a person, time, or input. decision: a review or branch point (Mermaid <<choice>>). success / failure: a good or bad outcome. neutral: parked, or ended without success or failure. external: handled by an outside party. Color and the default corner sigil follow the type.",
110
+ "enum": [
111
+ "start",
112
+ "active",
113
+ "waiting",
114
+ "decision",
115
+ "success",
116
+ "failure",
117
+ "neutral",
118
+ "external"
119
+ ]
120
+ },
121
+ "label": {
122
+ "type": "string",
123
+ "minLength": 1
124
+ },
125
+ "sublabel": {
126
+ "type": "string"
127
+ },
128
+ "tag": {
129
+ "type": "string"
130
+ },
131
+ "icon": { "$ref": "common.schema.json#/$defs/nodeIcon" },
132
+ "brand": {
133
+ "$ref": "common.schema.json#/$defs/brandMark"
134
+ },
135
+ "sources": {
136
+ "$ref": "common.schema.json#/$defs/sourceReferences"
137
+ },
138
+ "step": {
139
+ "type": "string"
140
+ }
141
+ }
142
+ }
143
+ },
144
+ "transitions": {
145
+ "type": "array",
146
+ "items": {
147
+ "type": "object",
148
+ "additionalProperties": false,
149
+ "required": [
150
+ "from",
151
+ "to"
152
+ ],
153
+ "properties": {
154
+ "id": {
155
+ "$ref": "common.schema.json#/$defs/id"
156
+ },
157
+ "from": {
158
+ "$ref": "common.schema.json#/$defs/id"
159
+ },
160
+ "to": {
161
+ "$ref": "common.schema.json#/$defs/id"
162
+ },
163
+ "label": {
164
+ "type": "string"
165
+ },
166
+ "note": {
167
+ "type": "string"
168
+ },
169
+ "variant": {
170
+ "$ref": "common.schema.json#/$defs/variant"
171
+ }
172
+ }
173
+ }
174
+ },
175
+ "cards": {
176
+ "$ref": "common.schema.json#/$defs/cards"
177
+ }
178
+ }
179
+ }
@@ -0,0 +1,234 @@
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
+ "output"
27
+ ],
28
+ "properties": {
29
+ "title": {
30
+ "type": "string",
31
+ "minLength": 1
32
+ },
33
+ "locale": {
34
+ "$ref": "common.schema.json#/$defs/locale"
35
+ },
36
+ "translations": {
37
+ "$ref": "common.schema.json#/$defs/translations"
38
+ },
39
+ "subtitle": {
40
+ "type": "string"
41
+ },
42
+ "output": {
43
+ "$ref": "common.schema.json#/$defs/portableOutputPath"
44
+ },
45
+ "animation": {
46
+ "$ref": "common.schema.json#/$defs/animation"
47
+ },
48
+ "visual_preset": {
49
+ "$ref": "common.schema.json#/$defs/visualPreset"
50
+ },
51
+ "quality_profile": {
52
+ "$ref": "common.schema.json#/$defs/qualityProfile"
53
+ },
54
+ "column_fit": {
55
+ "description": "Horizontal participant layout. Defaults to spread whether or not meta.viewBox is supplied. Explicit fixed preserves the historical 86px boxes and 108px column gap. Use spread when a wide viewBox would leave unused horizontal space or meaningful participant labels do not fit the fixed boxes; spread derives box width and column distance from the viewBox with at least a 16px gap between participant cards without changing participant order or message semantics.",
56
+ "enum": ["fixed", "spread"]
57
+ },
58
+ "repository": {
59
+ "$ref": "common.schema.json#/$defs/repository"
60
+ },
61
+ "views": {
62
+ "$ref": "common.schema.json#/$defs/guidedViews"
63
+ },
64
+ "legend": {
65
+ "type": "object",
66
+ "additionalProperties": false,
67
+ "properties": {
68
+ "mode": { "$ref": "common.schema.json#/$defs/legendMode" },
69
+ "entries": {
70
+ "type": "object",
71
+ "additionalProperties": false,
72
+ "properties": {
73
+ "default": { "$ref": "common.schema.json#/$defs/legendEntry" },
74
+ "emphasis": { "$ref": "common.schema.json#/$defs/legendEntry" },
75
+ "security": { "$ref": "common.schema.json#/$defs/legendEntry" },
76
+ "dashed": { "$ref": "common.schema.json#/$defs/legendEntry" },
77
+ "return": { "$ref": "common.schema.json#/$defs/legendEntry" }
78
+ }
79
+ }
80
+ }
81
+ },
82
+ "viewBox": {
83
+ "type": "array",
84
+ "prefixItems": [
85
+ {
86
+ "type": "number",
87
+ "minimum": 480
88
+ },
89
+ {
90
+ "type": "number",
91
+ "minimum": 480
92
+ }
93
+ ],
94
+ "items": false,
95
+ "minItems": 2,
96
+ "maxItems": 2
97
+ }
98
+ }
99
+ },
100
+ "participants": {
101
+ "type": "array",
102
+ "minItems": 2,
103
+ "items": {
104
+ "type": "object",
105
+ "additionalProperties": false,
106
+ "required": [
107
+ "id",
108
+ "type",
109
+ "label"
110
+ ],
111
+ "properties": {
112
+ "id": {
113
+ "$ref": "common.schema.json#/$defs/id"
114
+ },
115
+ "type": {
116
+ "$ref": "common.schema.json#/$defs/componentType"
117
+ },
118
+ "label": {
119
+ "type": "string",
120
+ "minLength": 1
121
+ },
122
+ "sublabel": {
123
+ "type": "string"
124
+ },
125
+ "icon": { "$ref": "common.schema.json#/$defs/nodeIcon" },
126
+ "brand": {
127
+ "$ref": "common.schema.json#/$defs/brandMark"
128
+ },
129
+ "sources": {
130
+ "$ref": "common.schema.json#/$defs/sourceReferences"
131
+ }
132
+ }
133
+ }
134
+ },
135
+ "segments": {
136
+ "type": "array",
137
+ "items": {
138
+ "type": "object",
139
+ "additionalProperties": false,
140
+ "required": [
141
+ "from",
142
+ "to",
143
+ "label"
144
+ ],
145
+ "properties": {
146
+ "from": {
147
+ "type": "number"
148
+ },
149
+ "to": {
150
+ "type": "number"
151
+ },
152
+ "label": {
153
+ "type": "string",
154
+ "minLength": 1
155
+ }
156
+ }
157
+ }
158
+ },
159
+ "messages": {
160
+ "type": "array",
161
+ "minItems": 1,
162
+ "items": {
163
+ "type": "object",
164
+ "additionalProperties": false,
165
+ "required": [
166
+ "from",
167
+ "to",
168
+ "y",
169
+ "label"
170
+ ],
171
+ "properties": {
172
+ "id": {
173
+ "$ref": "common.schema.json#/$defs/id"
174
+ },
175
+ "from": {
176
+ "$ref": "common.schema.json#/$defs/id"
177
+ },
178
+ "to": {
179
+ "$ref": "common.schema.json#/$defs/id"
180
+ },
181
+ "y": {
182
+ "type": "number",
183
+ "minimum": 160
184
+ },
185
+ "label": {
186
+ "type": "string",
187
+ "minLength": 1
188
+ },
189
+ "variant": {
190
+ "enum": [
191
+ "default",
192
+ "emphasis",
193
+ "security",
194
+ "dashed",
195
+ "return"
196
+ ]
197
+ },
198
+ "note": {
199
+ "type": "string"
200
+ }
201
+ }
202
+ }
203
+ },
204
+ "activations": {
205
+ "type": "array",
206
+ "items": {
207
+ "type": "object",
208
+ "additionalProperties": false,
209
+ "required": [
210
+ "participant",
211
+ "from",
212
+ "to"
213
+ ],
214
+ "properties": {
215
+ "participant": {
216
+ "$ref": "common.schema.json#/$defs/id"
217
+ },
218
+ "from": {
219
+ "type": "number"
220
+ },
221
+ "to": {
222
+ "type": "number"
223
+ },
224
+ "type": {
225
+ "$ref": "common.schema.json#/$defs/componentType"
226
+ }
227
+ }
228
+ }
229
+ },
230
+ "cards": {
231
+ "$ref": "common.schema.json#/$defs/cards"
232
+ }
233
+ }
234
+ }
@@ -0,0 +1,160 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/tt-a1i/archify/schemas/timeline.schema.json",
4
+ "title": "Archify Event Timeline",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema_version",
9
+ "diagram_type",
10
+ "meta",
11
+ "events"
12
+ ],
13
+ "properties": {
14
+ "schema_version": {
15
+ "const": 1
16
+ },
17
+ "diagram_type": {
18
+ "const": "timeline"
19
+ },
20
+ "meta": {
21
+ "type": "object",
22
+ "additionalProperties": false,
23
+ "required": [
24
+ "title",
25
+ "evidence"
26
+ ],
27
+ "properties": {
28
+ "title": {
29
+ "type": "string",
30
+ "minLength": 1
31
+ },
32
+ "locale": {
33
+ "$ref": "common.schema.json#/$defs/locale"
34
+ },
35
+ "translations": {
36
+ "$ref": "common.schema.json#/$defs/translations"
37
+ },
38
+ "subtitle": {
39
+ "type": "string"
40
+ },
41
+ "output": {
42
+ "type": "string"
43
+ },
44
+ "animation": {
45
+ "$ref": "common.schema.json#/$defs/animation"
46
+ },
47
+ "visual_preset": {
48
+ "$ref": "common.schema.json#/$defs/visualPreset"
49
+ },
50
+ "quality_profile": {
51
+ "$ref": "common.schema.json#/$defs/qualityProfile"
52
+ },
53
+ "repository": {
54
+ "$ref": "common.schema.json#/$defs/repository"
55
+ },
56
+ "views": {
57
+ "$ref": "common.schema.json#/$defs/guidedViews"
58
+ },
59
+ "evidence": {
60
+ "enum": [
61
+ "observed",
62
+ "illustrative"
63
+ ],
64
+ "description": "Whether the events are recorded observations or illustrative input; drawn on the canvas."
65
+ },
66
+ "timezone": {
67
+ "type": "string",
68
+ "minLength": 1,
69
+ "description": "IANA time zone used for axis and event labels; defaults to UTC."
70
+ }
71
+ }
72
+ },
73
+ "layout": {
74
+ "type": "object",
75
+ "additionalProperties": false,
76
+ "properties": {
77
+ "width": {
78
+ "type": "number",
79
+ "minimum": 480,
80
+ "description": "Drawing width of the time axis in px."
81
+ },
82
+ "breaks": {
83
+ "enum": [
84
+ "auto",
85
+ "none"
86
+ ],
87
+ "description": "auto compresses long quiet periods into disclosed axis breaks."
88
+ }
89
+ }
90
+ },
91
+ "lanes": {
92
+ "type": "array",
93
+ "items": {
94
+ "type": "object",
95
+ "additionalProperties": false,
96
+ "required": [
97
+ "id",
98
+ "label"
99
+ ],
100
+ "properties": {
101
+ "id": {
102
+ "$ref": "common.schema.json#/$defs/id"
103
+ },
104
+ "label": {
105
+ "type": "string",
106
+ "minLength": 1
107
+ }
108
+ }
109
+ }
110
+ },
111
+ "events": {
112
+ "type": "array",
113
+ "minItems": 1,
114
+ "items": {
115
+ "type": "object",
116
+ "additionalProperties": false,
117
+ "required": [
118
+ "id",
119
+ "at",
120
+ "title"
121
+ ],
122
+ "properties": {
123
+ "id": {
124
+ "$ref": "common.schema.json#/$defs/id"
125
+ },
126
+ "at": {
127
+ "type": "string",
128
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,3})?)?(Z|[+-]\\d{2}:\\d{2})$",
129
+ "description": "ISO 8601 timestamp with an explicit Z or ±HH:MM offset."
130
+ },
131
+ "title": {
132
+ "type": "string",
133
+ "minLength": 1
134
+ },
135
+ "detail": {
136
+ "type": "string"
137
+ },
138
+ "lane": {
139
+ "$ref": "common.schema.json#/$defs/id"
140
+ },
141
+ "kind": {
142
+ "enum": [
143
+ "default",
144
+ "change",
145
+ "alert",
146
+ "action",
147
+ "recovery"
148
+ ]
149
+ },
150
+ "sources": {
151
+ "$ref": "common.schema.json#/$defs/sourceReferences"
152
+ }
153
+ }
154
+ }
155
+ },
156
+ "cards": {
157
+ "$ref": "common.schema.json#/$defs/cards"
158
+ }
159
+ }
160
+ }