@aruzone/aze-forge 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.
Files changed (133) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +408 -0
  3. package/dist/acceptance.d.ts +48 -0
  4. package/dist/acceptance.js +180 -0
  5. package/dist/acceptance.js.map +1 -0
  6. package/dist/assets.d.ts +19 -0
  7. package/dist/assets.js +509 -0
  8. package/dist/assets.js.map +1 -0
  9. package/dist/atomic-write.d.ts +1 -0
  10. package/dist/atomic-write.js +23 -0
  11. package/dist/atomic-write.js.map +1 -0
  12. package/dist/callout.d.ts +27 -0
  13. package/dist/callout.js +78 -0
  14. package/dist/callout.js.map +1 -0
  15. package/dist/capabilities-json.d.ts +4 -0
  16. package/dist/capabilities-json.js +225 -0
  17. package/dist/capabilities-json.js.map +1 -0
  18. package/dist/capabilities.d.ts +110 -0
  19. package/dist/capabilities.js +270 -0
  20. package/dist/capabilities.js.map +1 -0
  21. package/dist/cli.d.ts +2 -0
  22. package/dist/cli.js +1096 -0
  23. package/dist/cli.js.map +1 -0
  24. package/dist/compiler.d.ts +3 -0
  25. package/dist/compiler.js +1034 -0
  26. package/dist/compiler.js.map +1 -0
  27. package/dist/configuration-error.d.ts +4 -0
  28. package/dist/configuration-error.js +9 -0
  29. package/dist/configuration-error.js.map +1 -0
  30. package/dist/diagnostics-json.d.ts +23 -0
  31. package/dist/diagnostics-json.js +143 -0
  32. package/dist/diagnostics-json.js.map +1 -0
  33. package/dist/diagnostics.d.ts +16 -0
  34. package/dist/diagnostics.js +154 -0
  35. package/dist/diagnostics.js.map +1 -0
  36. package/dist/equation.d.ts +74 -0
  37. package/dist/equation.js +485 -0
  38. package/dist/equation.js.map +1 -0
  39. package/dist/font.d.ts +19 -0
  40. package/dist/font.js +75 -0
  41. package/dist/font.js.map +1 -0
  42. package/dist/format.d.ts +2 -0
  43. package/dist/format.js +308 -0
  44. package/dist/format.js.map +1 -0
  45. package/dist/hash.d.ts +5 -0
  46. package/dist/hash.js +189 -0
  47. package/dist/hash.js.map +1 -0
  48. package/dist/help.d.ts +9 -0
  49. package/dist/help.js +102 -0
  50. package/dist/help.js.map +1 -0
  51. package/dist/html-fragment.d.ts +7 -0
  52. package/dist/html-fragment.js +70 -0
  53. package/dist/html-fragment.js.map +1 -0
  54. package/dist/index.d.ts +39 -0
  55. package/dist/index.js +32 -0
  56. package/dist/index.js.map +1 -0
  57. package/dist/markdown.d.ts +14 -0
  58. package/dist/markdown.js +425 -0
  59. package/dist/markdown.js.map +1 -0
  60. package/dist/mermaid-browser.d.ts +43 -0
  61. package/dist/mermaid-browser.js +358 -0
  62. package/dist/mermaid-browser.js.map +1 -0
  63. package/dist/mermaid.d.ts +84 -0
  64. package/dist/mermaid.js +740 -0
  65. package/dist/mermaid.js.map +1 -0
  66. package/dist/model.d.ts +406 -0
  67. package/dist/model.js +2 -0
  68. package/dist/model.js.map +1 -0
  69. package/dist/parse.d.ts +3 -0
  70. package/dist/parse.js +1374 -0
  71. package/dist/parse.js.map +1 -0
  72. package/dist/preview-server.d.ts +39 -0
  73. package/dist/preview-server.js +156 -0
  74. package/dist/preview-server.js.map +1 -0
  75. package/dist/preview-shell.d.ts +29 -0
  76. package/dist/preview-shell.js +102 -0
  77. package/dist/preview-shell.js.map +1 -0
  78. package/dist/reference-validation.d.ts +7 -0
  79. package/dist/reference-validation.js +42 -0
  80. package/dist/reference-validation.js.map +1 -0
  81. package/dist/registry.d.ts +29 -0
  82. package/dist/registry.js +384 -0
  83. package/dist/registry.js.map +1 -0
  84. package/dist/render-html.d.ts +24 -0
  85. package/dist/render-html.js +149 -0
  86. package/dist/render-html.js.map +1 -0
  87. package/dist/render-pdf.d.ts +64 -0
  88. package/dist/render-pdf.js +503 -0
  89. package/dist/render-pdf.js.map +1 -0
  90. package/dist/render-png.d.ts +32 -0
  91. package/dist/render-png.js +427 -0
  92. package/dist/render-png.js.map +1 -0
  93. package/dist/render-svg.d.ts +23 -0
  94. package/dist/render-svg.js +243 -0
  95. package/dist/render-svg.js.map +1 -0
  96. package/dist/runtime-support.d.ts +26 -0
  97. package/dist/runtime-support.js +62 -0
  98. package/dist/runtime-support.js.map +1 -0
  99. package/dist/source-map.d.ts +12 -0
  100. package/dist/source-map.js +75 -0
  101. package/dist/source-map.js.map +1 -0
  102. package/dist/table.d.ts +22 -0
  103. package/dist/table.js +90 -0
  104. package/dist/table.js.map +1 -0
  105. package/dist/theme.d.ts +6 -0
  106. package/dist/theme.js +89 -0
  107. package/dist/theme.js.map +1 -0
  108. package/dist/tool-version.d.ts +3 -0
  109. package/dist/tool-version.js +3 -0
  110. package/dist/tool-version.js.map +1 -0
  111. package/dist/type-guards.d.ts +1 -0
  112. package/dist/type-guards.js +4 -0
  113. package/dist/type-guards.js.map +1 -0
  114. package/dist/validate-document.d.ts +2 -0
  115. package/dist/validate-document.js +248 -0
  116. package/dist/validate-document.js.map +1 -0
  117. package/dist/version.d.ts +37 -0
  118. package/dist/version.js +111 -0
  119. package/dist/version.js.map +1 -0
  120. package/dist/watch-dependencies.d.ts +15 -0
  121. package/dist/watch-dependencies.js +93 -0
  122. package/dist/watch-dependencies.js.map +1 -0
  123. package/dist/watch-events.d.ts +51 -0
  124. package/dist/watch-events.js +27 -0
  125. package/dist/watch-events.js.map +1 -0
  126. package/dist/watch-loop.d.ts +39 -0
  127. package/dist/watch-loop.js +117 -0
  128. package/dist/watch-loop.js.map +1 -0
  129. package/package.json +70 -0
  130. package/schemas/acceptance.json +104 -0
  131. package/schemas/capabilities.json +491 -0
  132. package/schemas/diagnostics.json +219 -0
  133. package/schemas/version.json +167 -0
@@ -0,0 +1,491 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "azeforge.capabilities/v1",
4
+ "type": "object",
5
+ "required": [
6
+ "schema",
7
+ "schemaVersion",
8
+ "tool",
9
+ "runtime",
10
+ "commands",
11
+ "source",
12
+ "document",
13
+ "plugins",
14
+ "blockRenderers",
15
+ "renderers",
16
+ "themes",
17
+ "formats",
18
+ "profiles",
19
+ "limits",
20
+ "security",
21
+ "engines",
22
+ "policy",
23
+ "schemas"
24
+ ],
25
+ "additionalProperties": false,
26
+ "properties": {
27
+ "schema": {
28
+ "const": "azeforge.capabilities/v1"
29
+ },
30
+ "schemaVersion": {
31
+ "const": 1
32
+ },
33
+ "tool": {
34
+ "type": "object",
35
+ "required": [
36
+ "name",
37
+ "version"
38
+ ],
39
+ "additionalProperties": false,
40
+ "properties": {
41
+ "name": {
42
+ "const": "azeforge"
43
+ },
44
+ "version": {
45
+ "type": "string",
46
+ "pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$"
47
+ }
48
+ }
49
+ },
50
+ "runtime": {
51
+ "type": "object",
52
+ "required": [
53
+ "node",
54
+ "os",
55
+ "canonical"
56
+ ],
57
+ "additionalProperties": false,
58
+ "properties": {
59
+ "node": {
60
+ "type": "object",
61
+ "required": [
62
+ "supported",
63
+ "canonical"
64
+ ],
65
+ "additionalProperties": false,
66
+ "properties": {
67
+ "supported": {
68
+ "const": [
69
+ 22,
70
+ 24
71
+ ]
72
+ },
73
+ "canonical": {
74
+ "const": 24
75
+ }
76
+ }
77
+ },
78
+ "os": {
79
+ "type": "object",
80
+ "required": [
81
+ "supported",
82
+ "canonical"
83
+ ],
84
+ "additionalProperties": false,
85
+ "properties": {
86
+ "supported": {
87
+ "const": [
88
+ "ubuntu",
89
+ "macos"
90
+ ]
91
+ },
92
+ "canonical": {
93
+ "const": "ubuntu"
94
+ }
95
+ }
96
+ },
97
+ "canonical": {
98
+ "type": "object",
99
+ "required": [
100
+ "os",
101
+ "arch",
102
+ "node"
103
+ ],
104
+ "additionalProperties": false,
105
+ "properties": {
106
+ "os": {
107
+ "const": "ubuntu"
108
+ },
109
+ "arch": {
110
+ "const": "x64"
111
+ },
112
+ "node": {
113
+ "const": 24
114
+ }
115
+ }
116
+ }
117
+ }
118
+ },
119
+ "commands": {
120
+ "type": "array",
121
+ "minItems": 7,
122
+ "maxItems": 7,
123
+ "items": {
124
+ "type": "object",
125
+ "required": [
126
+ "name",
127
+ "summary",
128
+ "usage"
129
+ ],
130
+ "additionalProperties": false,
131
+ "properties": {
132
+ "name": {
133
+ "type": "string",
134
+ "minLength": 1
135
+ },
136
+ "summary": {
137
+ "type": "string",
138
+ "minLength": 1
139
+ },
140
+ "usage": {
141
+ "type": "string",
142
+ "minLength": 1
143
+ }
144
+ }
145
+ }
146
+ },
147
+ "source": {
148
+ "type": "object",
149
+ "required": [
150
+ "azemarkVersions",
151
+ "extension",
152
+ "mimeType"
153
+ ],
154
+ "additionalProperties": false,
155
+ "properties": {
156
+ "azemarkVersions": {
157
+ "type": "array",
158
+ "minItems": 1,
159
+ "items": {
160
+ "type": "integer",
161
+ "minimum": 1
162
+ }
163
+ },
164
+ "extension": {
165
+ "type": "string",
166
+ "minLength": 1
167
+ },
168
+ "mimeType": {
169
+ "type": "string",
170
+ "minLength": 1
171
+ }
172
+ }
173
+ },
174
+ "document": {
175
+ "type": "object",
176
+ "required": [
177
+ "schemaVersions",
178
+ "mimeType"
179
+ ],
180
+ "additionalProperties": false,
181
+ "properties": {
182
+ "schemaVersions": {
183
+ "type": "array",
184
+ "minItems": 1,
185
+ "items": {
186
+ "type": "integer",
187
+ "minimum": 1
188
+ }
189
+ },
190
+ "mimeType": {
191
+ "type": "string",
192
+ "minLength": 1
193
+ }
194
+ }
195
+ },
196
+ "plugins": {
197
+ "type": "array",
198
+ "minItems": 1,
199
+ "items": {
200
+ "type": "object",
201
+ "required": [
202
+ "type",
203
+ "version",
204
+ "title",
205
+ "namespace",
206
+ "bodySyntax"
207
+ ],
208
+ "additionalProperties": false,
209
+ "properties": {
210
+ "type": {
211
+ "type": "string",
212
+ "minLength": 1
213
+ },
214
+ "version": {
215
+ "type": "string",
216
+ "pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$"
217
+ },
218
+ "title": {
219
+ "type": "string",
220
+ "minLength": 1
221
+ },
222
+ "namespace": {
223
+ "type": "string",
224
+ "minLength": 1
225
+ },
226
+ "bodySyntax": {
227
+ "type": "object",
228
+ "required": [
229
+ "id",
230
+ "version"
231
+ ],
232
+ "additionalProperties": false,
233
+ "properties": {
234
+ "id": {
235
+ "type": "string",
236
+ "minLength": 1
237
+ },
238
+ "version": {
239
+ "type": "string",
240
+ "pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$"
241
+ }
242
+ }
243
+ }
244
+ }
245
+ }
246
+ },
247
+ "blockRenderers": {
248
+ "type": "array",
249
+ "minItems": 1,
250
+ "items": {
251
+ "type": "object",
252
+ "required": [
253
+ "id",
254
+ "version",
255
+ "blockType",
256
+ "renderer"
257
+ ],
258
+ "additionalProperties": false,
259
+ "properties": {
260
+ "id": {
261
+ "type": "string",
262
+ "minLength": 1
263
+ },
264
+ "version": {
265
+ "type": "string",
266
+ "pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$"
267
+ },
268
+ "blockType": {
269
+ "type": "string",
270
+ "minLength": 1
271
+ },
272
+ "renderer": {
273
+ "type": "string",
274
+ "minLength": 1
275
+ }
276
+ }
277
+ }
278
+ },
279
+ "renderers": {
280
+ "type": "array",
281
+ "minItems": 1,
282
+ "items": {
283
+ "type": "object",
284
+ "required": [
285
+ "id",
286
+ "version",
287
+ "formats",
288
+ "capabilities"
289
+ ],
290
+ "additionalProperties": false,
291
+ "properties": {
292
+ "id": {
293
+ "type": "string",
294
+ "minLength": 1
295
+ },
296
+ "version": {
297
+ "type": "string",
298
+ "pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$"
299
+ },
300
+ "formats": {
301
+ "type": "array",
302
+ "minItems": 1,
303
+ "items": {
304
+ "type": "string",
305
+ "minLength": 1
306
+ }
307
+ },
308
+ "capabilities": {
309
+ "type": "array",
310
+ "items": {
311
+ "type": "string",
312
+ "minLength": 1
313
+ }
314
+ }
315
+ }
316
+ }
317
+ },
318
+ "themes": {
319
+ "type": "array",
320
+ "minItems": 1,
321
+ "items": {
322
+ "type": "object",
323
+ "required": [
324
+ "id",
325
+ "version",
326
+ "title",
327
+ "colorScheme"
328
+ ],
329
+ "additionalProperties": false,
330
+ "properties": {
331
+ "id": {
332
+ "type": "string",
333
+ "minLength": 1
334
+ },
335
+ "version": {
336
+ "type": "string",
337
+ "pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$"
338
+ },
339
+ "title": {
340
+ "type": "string",
341
+ "minLength": 1
342
+ },
343
+ "colorScheme": {
344
+ "enum": [
345
+ "light",
346
+ "dark"
347
+ ]
348
+ }
349
+ }
350
+ }
351
+ },
352
+ "formats": {
353
+ "type": "array",
354
+ "minItems": 1,
355
+ "items": {
356
+ "type": "string",
357
+ "minLength": 1
358
+ }
359
+ },
360
+ "profiles": {
361
+ "type": "object"
362
+ },
363
+ "limits": {
364
+ "type": "object"
365
+ },
366
+ "security": {
367
+ "type": "object"
368
+ },
369
+ "engines": {
370
+ "type": "object",
371
+ "required": [
372
+ "browser",
373
+ "katex",
374
+ "mermaid",
375
+ "fonts"
376
+ ],
377
+ "additionalProperties": false,
378
+ "properties": {
379
+ "browser": {
380
+ "type": "object",
381
+ "required": [
382
+ "name",
383
+ "pinnedVersion",
384
+ "availability"
385
+ ],
386
+ "additionalProperties": false,
387
+ "properties": {
388
+ "name": {
389
+ "type": "string",
390
+ "minLength": 1
391
+ },
392
+ "pinnedVersion": {
393
+ "type": "string",
394
+ "minLength": 1
395
+ },
396
+ "availability": {
397
+ "enum": [
398
+ "unknown",
399
+ "available",
400
+ "unavailable"
401
+ ]
402
+ },
403
+ "reason": {
404
+ "type": "string",
405
+ "minLength": 1
406
+ },
407
+ "remedy": {
408
+ "type": "string",
409
+ "minLength": 1
410
+ }
411
+ }
412
+ },
413
+ "katex": {
414
+ "type": "object",
415
+ "required": [
416
+ "version",
417
+ "availability"
418
+ ],
419
+ "additionalProperties": false,
420
+ "properties": {
421
+ "version": {
422
+ "type": "string",
423
+ "minLength": 1
424
+ },
425
+ "availability": {
426
+ "enum": [
427
+ "unknown",
428
+ "available",
429
+ "unavailable"
430
+ ]
431
+ }
432
+ }
433
+ },
434
+ "mermaid": {
435
+ "type": "object",
436
+ "required": [
437
+ "version",
438
+ "availability"
439
+ ],
440
+ "additionalProperties": false,
441
+ "properties": {
442
+ "version": {
443
+ "type": "string",
444
+ "minLength": 1
445
+ },
446
+ "availability": {
447
+ "enum": [
448
+ "unknown",
449
+ "available",
450
+ "unavailable"
451
+ ]
452
+ }
453
+ }
454
+ },
455
+ "fonts": {
456
+ "type": "array",
457
+ "items": {
458
+ "type": "object"
459
+ }
460
+ }
461
+ }
462
+ },
463
+ "policy": {
464
+ "type": "object"
465
+ },
466
+ "schemas": {
467
+ "type": "array",
468
+ "minItems": 1,
469
+ "items": {
470
+ "type": "object",
471
+ "required": [
472
+ "id",
473
+ "version"
474
+ ],
475
+ "additionalProperties": false,
476
+ "properties": {
477
+ "id": {
478
+ "type": "string",
479
+ "minLength": 1
480
+ },
481
+ "version": {
482
+ "type": [
483
+ "string",
484
+ "number"
485
+ ]
486
+ }
487
+ }
488
+ }
489
+ }
490
+ }
491
+ }
@@ -0,0 +1,219 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "azeforge.diagnostics/v1",
4
+ "type": "object",
5
+ "required": [
6
+ "schema",
7
+ "schemaVersion",
8
+ "tool",
9
+ "command",
10
+ "success",
11
+ "diagnostics"
12
+ ],
13
+ "additionalProperties": false,
14
+ "properties": {
15
+ "schema": {
16
+ "const": "azeforge.diagnostics/v1"
17
+ },
18
+ "schemaVersion": {
19
+ "const": 1
20
+ },
21
+ "tool": {
22
+ "type": "object",
23
+ "required": [
24
+ "name",
25
+ "version"
26
+ ],
27
+ "additionalProperties": false,
28
+ "properties": {
29
+ "name": {
30
+ "const": "azeforge"
31
+ },
32
+ "version": {
33
+ "type": "string"
34
+ }
35
+ }
36
+ },
37
+ "command": {
38
+ "type": "string"
39
+ },
40
+ "success": {
41
+ "type": "boolean"
42
+ },
43
+ "diagnostics": {
44
+ "type": "array",
45
+ "items": {
46
+ "$ref": "#/$defs/diagnostic"
47
+ }
48
+ },
49
+ "contentHash": {
50
+ "type": "string",
51
+ "pattern": "^sha256:[0-9a-f]{64}$"
52
+ },
53
+ "artifact": {
54
+ "type": "object"
55
+ }
56
+ },
57
+ "$defs": {
58
+ "position": {
59
+ "type": "object",
60
+ "required": [
61
+ "line",
62
+ "column",
63
+ "offset"
64
+ ],
65
+ "additionalProperties": false,
66
+ "properties": {
67
+ "line": {
68
+ "type": "integer",
69
+ "minimum": 1
70
+ },
71
+ "column": {
72
+ "type": "integer",
73
+ "minimum": 1
74
+ },
75
+ "offset": {
76
+ "type": "integer",
77
+ "minimum": 0
78
+ }
79
+ }
80
+ },
81
+ "range": {
82
+ "type": "object",
83
+ "required": [
84
+ "start",
85
+ "end"
86
+ ],
87
+ "additionalProperties": false,
88
+ "properties": {
89
+ "start": {
90
+ "$ref": "#/$defs/position"
91
+ },
92
+ "end": {
93
+ "$ref": "#/$defs/position"
94
+ }
95
+ }
96
+ },
97
+ "location": {
98
+ "type": "object",
99
+ "minProperties": 1,
100
+ "additionalProperties": false,
101
+ "properties": {
102
+ "source": {
103
+ "type": "string"
104
+ },
105
+ "range": {
106
+ "$ref": "#/$defs/range"
107
+ }
108
+ }
109
+ },
110
+ "relatedLocation": {
111
+ "type": "object",
112
+ "required": [
113
+ "range",
114
+ "message"
115
+ ],
116
+ "additionalProperties": false,
117
+ "properties": {
118
+ "source": {
119
+ "type": "string"
120
+ },
121
+ "range": {
122
+ "$ref": "#/$defs/range"
123
+ },
124
+ "message": {
125
+ "type": "string"
126
+ }
127
+ }
128
+ },
129
+ "fixEdit": {
130
+ "type": "object",
131
+ "required": [
132
+ "range",
133
+ "expectedText",
134
+ "replacementText"
135
+ ],
136
+ "additionalProperties": false,
137
+ "properties": {
138
+ "range": {
139
+ "$ref": "#/$defs/range"
140
+ },
141
+ "expectedText": {
142
+ "type": "string"
143
+ },
144
+ "replacementText": {
145
+ "type": "string"
146
+ }
147
+ }
148
+ },
149
+ "fix": {
150
+ "type": "object",
151
+ "required": [
152
+ "title",
153
+ "applicability",
154
+ "edits"
155
+ ],
156
+ "additionalProperties": false,
157
+ "properties": {
158
+ "title": {
159
+ "type": "string"
160
+ },
161
+ "applicability": {
162
+ "const": "safe"
163
+ },
164
+ "edits": {
165
+ "type": "array",
166
+ "minItems": 1,
167
+ "items": {
168
+ "$ref": "#/$defs/fixEdit"
169
+ }
170
+ }
171
+ }
172
+ },
173
+ "diagnostic": {
174
+ "type": "object",
175
+ "required": [
176
+ "code",
177
+ "severity",
178
+ "message",
179
+ "data",
180
+ "relatedLocations"
181
+ ],
182
+ "additionalProperties": false,
183
+ "properties": {
184
+ "code": {
185
+ "type": "string",
186
+ "pattern": "^[a-z0-9@/._-]+#[a-z0-9]+(?:-[a-z0-9]+)*$"
187
+ },
188
+ "severity": {
189
+ "enum": [
190
+ "error",
191
+ "warning",
192
+ "info"
193
+ ]
194
+ },
195
+ "message": {
196
+ "type": "string"
197
+ },
198
+ "data": {
199
+ "type": "object"
200
+ },
201
+ "location": {
202
+ "$ref": "#/$defs/location"
203
+ },
204
+ "suggestion": {
205
+ "type": "string"
206
+ },
207
+ "fix": {
208
+ "$ref": "#/$defs/fix"
209
+ },
210
+ "relatedLocations": {
211
+ "type": "array",
212
+ "items": {
213
+ "$ref": "#/$defs/relatedLocation"
214
+ }
215
+ }
216
+ }
217
+ }
218
+ }
219
+ }