@x12i/made-easy 0.0.0-stage → 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 (169) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +57 -2
  3. package/dist/analysis.d.ts +19 -0
  4. package/dist/analysis.d.ts.map +1 -0
  5. package/dist/analysis.js +90 -0
  6. package/dist/analysis.js.map +1 -0
  7. package/dist/build.d.ts +36 -0
  8. package/dist/build.d.ts.map +1 -0
  9. package/dist/build.js +260 -0
  10. package/dist/build.js.map +1 -0
  11. package/dist/contracts/api.d.ts +447 -0
  12. package/dist/contracts/api.d.ts.map +1 -0
  13. package/dist/contracts/api.js +152 -0
  14. package/dist/contracts/api.js.map +1 -0
  15. package/dist/contracts/blocks.d.ts +221 -0
  16. package/dist/contracts/blocks.d.ts.map +1 -0
  17. package/dist/contracts/blocks.js +392 -0
  18. package/dist/contracts/blocks.js.map +1 -0
  19. package/dist/contracts/diagnostics.d.ts +111 -0
  20. package/dist/contracts/diagnostics.d.ts.map +1 -0
  21. package/dist/contracts/diagnostics.js +122 -0
  22. package/dist/contracts/diagnostics.js.map +1 -0
  23. package/dist/contracts/index.d.ts +11 -0
  24. package/dist/contracts/index.d.ts.map +1 -0
  25. package/dist/contracts/index.js +11 -0
  26. package/dist/contracts/index.js.map +1 -0
  27. package/dist/contracts/json-schema.d.ts +5 -0
  28. package/dist/contracts/json-schema.d.ts.map +1 -0
  29. package/dist/contracts/json-schema.js +41 -0
  30. package/dist/contracts/json-schema.js.map +1 -0
  31. package/dist/contracts/recipe.d.ts +535 -0
  32. package/dist/contracts/recipe.d.ts.map +1 -0
  33. package/dist/contracts/recipe.js +380 -0
  34. package/dist/contracts/recipe.js.map +1 -0
  35. package/dist/contracts/schemas.d.ts +413 -0
  36. package/dist/contracts/schemas.d.ts.map +1 -0
  37. package/dist/contracts/schemas.js +205 -0
  38. package/dist/contracts/schemas.js.map +1 -0
  39. package/dist/draft.d.ts +157 -0
  40. package/dist/draft.d.ts.map +1 -0
  41. package/dist/draft.js +254 -0
  42. package/dist/draft.js.map +1 -0
  43. package/dist/emit-assets.d.ts +2 -0
  44. package/dist/emit-assets.d.ts.map +1 -0
  45. package/dist/emit-assets.js +27 -0
  46. package/dist/emit-assets.js.map +1 -0
  47. package/dist/index.d.ts +25 -0
  48. package/dist/index.d.ts.map +1 -0
  49. package/dist/index.js +30 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/markdown-doc.d.ts +59 -0
  52. package/dist/markdown-doc.d.ts.map +1 -0
  53. package/dist/markdown-doc.js +187 -0
  54. package/dist/markdown-doc.js.map +1 -0
  55. package/dist/model.d.ts +54 -0
  56. package/dist/model.d.ts.map +1 -0
  57. package/dist/model.js +244 -0
  58. package/dist/model.js.map +1 -0
  59. package/dist/normalize.d.ts +63 -0
  60. package/dist/normalize.d.ts.map +1 -0
  61. package/dist/normalize.js +54 -0
  62. package/dist/normalize.js.map +1 -0
  63. package/dist/npm.d.ts +24 -0
  64. package/dist/npm.d.ts.map +1 -0
  65. package/dist/npm.js +51 -0
  66. package/dist/npm.js.map +1 -0
  67. package/dist/render/blocks.d.ts +17 -0
  68. package/dist/render/blocks.d.ts.map +1 -0
  69. package/dist/render/blocks.js +384 -0
  70. package/dist/render/blocks.js.map +1 -0
  71. package/dist/render/brief.d.ts +77 -0
  72. package/dist/render/brief.d.ts.map +1 -0
  73. package/dist/render/brief.js +62 -0
  74. package/dist/render/brief.js.map +1 -0
  75. package/dist/render/context.d.ts +43 -0
  76. package/dist/render/context.d.ts.map +1 -0
  77. package/dist/render/context.js +88 -0
  78. package/dist/render/context.js.map +1 -0
  79. package/dist/render/html.d.ts +19 -0
  80. package/dist/render/html.d.ts.map +1 -0
  81. package/dist/render/html.js +178 -0
  82. package/dist/render/html.js.map +1 -0
  83. package/dist/render/markdown-out.d.ts +11 -0
  84. package/dist/render/markdown-out.d.ts.map +1 -0
  85. package/dist/render/markdown-out.js +121 -0
  86. package/dist/render/markdown-out.js.map +1 -0
  87. package/dist/render/pdf.d.ts +23 -0
  88. package/dist/render/pdf.d.ts.map +1 -0
  89. package/dist/render/pdf.js +138 -0
  90. package/dist/render/pdf.js.map +1 -0
  91. package/dist/render/prose.d.ts +15 -0
  92. package/dist/render/prose.d.ts.map +1 -0
  93. package/dist/render/prose.js +110 -0
  94. package/dist/render/prose.js.map +1 -0
  95. package/dist/scaffold.d.ts +13 -0
  96. package/dist/scaffold.d.ts.map +1 -0
  97. package/dist/scaffold.js +393 -0
  98. package/dist/scaffold.js.map +1 -0
  99. package/dist/sdk.d.ts +56 -0
  100. package/dist/sdk.d.ts.map +1 -0
  101. package/dist/sdk.js +238 -0
  102. package/dist/sdk.js.map +1 -0
  103. package/dist/source.d.ts +57 -0
  104. package/dist/source.d.ts.map +1 -0
  105. package/dist/source.js +289 -0
  106. package/dist/source.js.map +1 -0
  107. package/dist/theme/book.d.ts +10 -0
  108. package/dist/theme/book.d.ts.map +1 -0
  109. package/dist/theme/book.js +198 -0
  110. package/dist/theme/book.js.map +1 -0
  111. package/dist/util.d.ts +14 -0
  112. package/dist/util.d.ts.map +1 -0
  113. package/dist/util.js +69 -0
  114. package/dist/util.js.map +1 -0
  115. package/dist/validate.d.ts +36 -0
  116. package/dist/validate.d.ts.map +1 -0
  117. package/dist/validate.js +986 -0
  118. package/dist/validate.js.map +1 -0
  119. package/dist/verify.d.ts +35 -0
  120. package/dist/verify.d.ts.map +1 -0
  121. package/dist/verify.js +112 -0
  122. package/dist/verify.js.map +1 -0
  123. package/dist/version.d.ts +3 -0
  124. package/dist/version.d.ts.map +1 -0
  125. package/dist/version.js +4 -0
  126. package/dist/version.js.map +1 -0
  127. package/dist/yamlfile.d.ts +22 -0
  128. package/dist/yamlfile.d.ts.map +1 -0
  129. package/dist/yamlfile.js +129 -0
  130. package/dist/yamlfile.js.map +1 -0
  131. package/package.json +64 -4
  132. package/recipes/index.json +282 -0
  133. package/recipes/shared-1.0.0.json +456 -0
  134. package/schemas/artifact.v1.json +36 -0
  135. package/schemas/assets.v1.json +61 -0
  136. package/schemas/block.v1.json +27 -0
  137. package/schemas/blocks/brief.v1.json +20 -0
  138. package/schemas/blocks/callout.v1.json +25 -0
  139. package/schemas/blocks/code.v1.json +21 -0
  140. package/schemas/blocks/decision.v1.json +80 -0
  141. package/schemas/blocks/evidence-comparison.v1.json +33 -0
  142. package/schemas/blocks/example.v1.json +52 -0
  143. package/schemas/blocks/figure.v1.json +22 -0
  144. package/schemas/blocks/human-action.v1.json +42 -0
  145. package/schemas/blocks/job-map.v1.json +170 -0
  146. package/schemas/blocks/pause.v1.json +25 -0
  147. package/schemas/blocks/reference-profile.v1.json +41 -0
  148. package/schemas/blocks/review-checklist.v1.json +19 -0
  149. package/schemas/blocks/table.v1.json +59 -0
  150. package/schemas/brief.v1.json +157 -0
  151. package/schemas/build-request.v1.json +173 -0
  152. package/schemas/build-result.v1.json +171 -0
  153. package/schemas/checks.v1.json +149 -0
  154. package/schemas/create-request.v1.json +47 -0
  155. package/schemas/diagnostic.v1.json +50 -0
  156. package/schemas/draft-request.v1.json +196 -0
  157. package/schemas/guide.v1.json +172 -0
  158. package/schemas/job.v1.json +107 -0
  159. package/schemas/preview-request.v1.json +153 -0
  160. package/schemas/preview-result.v1.json +84 -0
  161. package/schemas/problem.v1.json +78 -0
  162. package/schemas/recipe-definition.v1.json +673 -0
  163. package/schemas/source-ref.v1.json +111 -0
  164. package/schemas/sources.v1.json +158 -0
  165. package/schemas/validate-request.v1.json +135 -0
  166. package/schemas/validate-result.v1.json +110 -0
  167. package/schemas/verification.v1.json +77 -0
  168. package/themes/book/1.0.0/theme.css +190 -0
  169. package/themes/book/1.0.0/theme.json +5 -0
@@ -0,0 +1,80 @@
1
+ {
2
+ "$id": "https://x12i.dev/made-easy/schemas/blocks/decision.v1.json",
3
+ "title": "Decision props",
4
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "job": {
8
+ "type": "string"
9
+ },
10
+ "question": {
11
+ "type": "string"
12
+ },
13
+ "owner": {
14
+ "type": "string"
15
+ },
16
+ "dependsOn": {
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string"
20
+ }
21
+ },
22
+ "options": {
23
+ "type": "array",
24
+ "items": {
25
+ "type": "object",
26
+ "properties": {
27
+ "id": {
28
+ "type": "string",
29
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
30
+ },
31
+ "label": {
32
+ "type": "string"
33
+ },
34
+ "kind": {
35
+ "type": "string",
36
+ "enum": [
37
+ "accept",
38
+ "rerun",
39
+ "authorize",
40
+ "escalate",
41
+ "other"
42
+ ]
43
+ },
44
+ "decidedBy": {
45
+ "type": "string"
46
+ },
47
+ "when": {
48
+ "type": "string"
49
+ },
50
+ "consequence": {
51
+ "type": "string"
52
+ },
53
+ "rationale": {
54
+ "type": "string"
55
+ },
56
+ "evidence": {
57
+ "type": "array",
58
+ "items": {
59
+ "type": "string",
60
+ "pattern": "^(check|claim|source|result|pause|entry|asset|block|input):[a-z0-9][a-z0-9_-]*(#[A-Za-z0-9_-]+)?$"
61
+ }
62
+ }
63
+ },
64
+ "required": [
65
+ "id",
66
+ "label"
67
+ ],
68
+ "additionalProperties": false
69
+ }
70
+ },
71
+ "evidence": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "string",
75
+ "pattern": "^(check|claim|source|result|pause|entry|asset|block|input):[a-z0-9][a-z0-9_-]*(#[A-Za-z0-9_-]+)?$"
76
+ }
77
+ }
78
+ },
79
+ "additionalProperties": false
80
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$id": "https://x12i.dev/made-easy/schemas/blocks/evidence-comparison.v1.json",
3
+ "title": "Evidence comparison props",
4
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "usable": {
8
+ "type": "string",
9
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
10
+ },
11
+ "flawed": {
12
+ "type": "string",
13
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
14
+ },
15
+ "decisiveChecks": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "string",
19
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
20
+ }
21
+ },
22
+ "recovery": {
23
+ "type": "string"
24
+ },
25
+ "partialWhen": {
26
+ "type": "string"
27
+ },
28
+ "invalidWhen": {
29
+ "type": "string"
30
+ }
31
+ },
32
+ "additionalProperties": false
33
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "$id": "https://x12i.dev/made-easy/schemas/blocks/example.v1.json",
3
+ "title": "Executable example props",
4
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "title": {
8
+ "type": "string"
9
+ },
10
+ "language": {
11
+ "type": "string"
12
+ },
13
+ "runtime": {
14
+ "type": "string"
15
+ },
16
+ "fixture": {
17
+ "type": "string",
18
+ "minLength": 1,
19
+ "maxLength": 240
20
+ },
21
+ "files": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string",
25
+ "minLength": 1,
26
+ "maxLength": 240
27
+ }
28
+ },
29
+ "setup": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string"
33
+ }
34
+ },
35
+ "run": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string"
39
+ }
40
+ },
41
+ "expected": {
42
+ "type": "string"
43
+ },
44
+ "executable": {
45
+ "type": "boolean"
46
+ },
47
+ "summary": {
48
+ "type": "string"
49
+ }
50
+ },
51
+ "additionalProperties": false
52
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$id": "https://x12i.dev/made-easy/schemas/blocks/figure.v1.json",
3
+ "title": "Figure props",
4
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "asset": {
8
+ "type": "string",
9
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
10
+ },
11
+ "caption": {
12
+ "type": "string"
13
+ },
14
+ "alt": {
15
+ "type": "string"
16
+ }
17
+ },
18
+ "required": [
19
+ "asset"
20
+ ],
21
+ "additionalProperties": false
22
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "$id": "https://x12i.dev/made-easy/schemas/blocks/human-action.v1.json",
3
+ "title": "Human action props",
4
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "kind": {
8
+ "type": "string",
9
+ "enum": [
10
+ "decision",
11
+ "action",
12
+ "delegated"
13
+ ]
14
+ },
15
+ "actor": {
16
+ "type": "string"
17
+ },
18
+ "action": {
19
+ "type": "string"
20
+ },
21
+ "steps": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string"
25
+ }
26
+ },
27
+ "mayContinue": {
28
+ "type": "string"
29
+ },
30
+ "resume": {
31
+ "type": "string"
32
+ },
33
+ "pause": {
34
+ "type": "string",
35
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
36
+ }
37
+ },
38
+ "required": [
39
+ "kind"
40
+ ],
41
+ "additionalProperties": false
42
+ }
@@ -0,0 +1,170 @@
1
+ {
2
+ "$id": "https://x12i.dev/made-easy/schemas/blocks/job-map.v1.json",
3
+ "title": "Job map props",
4
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "inputs": {
8
+ "type": "array",
9
+ "items": {
10
+ "type": "object",
11
+ "properties": {
12
+ "id": {
13
+ "type": "string",
14
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
15
+ },
16
+ "label": {
17
+ "type": "string"
18
+ },
19
+ "description": {
20
+ "type": "string"
21
+ }
22
+ },
23
+ "required": [
24
+ "id",
25
+ "label"
26
+ ],
27
+ "additionalProperties": false
28
+ }
29
+ },
30
+ "stages": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "object",
34
+ "properties": {
35
+ "id": {
36
+ "type": "string",
37
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
38
+ },
39
+ "label": {
40
+ "type": "string"
41
+ },
42
+ "actor": {
43
+ "type": "string",
44
+ "enum": [
45
+ "human",
46
+ "operator",
47
+ "system"
48
+ ]
49
+ },
50
+ "description": {
51
+ "type": "string"
52
+ }
53
+ },
54
+ "required": [
55
+ "id",
56
+ "label",
57
+ "actor"
58
+ ],
59
+ "additionalProperties": false
60
+ }
61
+ },
62
+ "outputs": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "object",
66
+ "properties": {
67
+ "id": {
68
+ "type": "string",
69
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
70
+ },
71
+ "label": {
72
+ "type": "string"
73
+ },
74
+ "description": {
75
+ "type": "string"
76
+ }
77
+ },
78
+ "required": [
79
+ "id",
80
+ "label"
81
+ ],
82
+ "additionalProperties": false
83
+ }
84
+ },
85
+ "sideEffects": {
86
+ "type": "array",
87
+ "items": {
88
+ "type": "object",
89
+ "properties": {
90
+ "id": {
91
+ "type": "string",
92
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
93
+ },
94
+ "label": {
95
+ "type": "string"
96
+ },
97
+ "reversible": {
98
+ "type": "boolean"
99
+ }
100
+ },
101
+ "required": [
102
+ "id",
103
+ "label"
104
+ ],
105
+ "additionalProperties": false
106
+ }
107
+ },
108
+ "failurePoints": {
109
+ "type": "array",
110
+ "items": {
111
+ "type": "object",
112
+ "properties": {
113
+ "id": {
114
+ "type": "string",
115
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
116
+ },
117
+ "stage": {
118
+ "type": "string",
119
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
120
+ },
121
+ "description": {
122
+ "type": "string"
123
+ },
124
+ "interpretation": {
125
+ "type": "string"
126
+ },
127
+ "recovery": {
128
+ "type": "string"
129
+ }
130
+ },
131
+ "required": [
132
+ "id",
133
+ "description"
134
+ ],
135
+ "additionalProperties": false
136
+ }
137
+ },
138
+ "mechanisms": {
139
+ "type": "array",
140
+ "items": {
141
+ "type": "object",
142
+ "properties": {
143
+ "id": {
144
+ "type": "string",
145
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
146
+ },
147
+ "name": {
148
+ "type": "string"
149
+ },
150
+ "explanation": {
151
+ "type": "string"
152
+ },
153
+ "decisionImpact": {
154
+ "type": "string"
155
+ }
156
+ },
157
+ "required": [
158
+ "id",
159
+ "name",
160
+ "explanation"
161
+ ],
162
+ "additionalProperties": false
163
+ }
164
+ },
165
+ "textEquivalent": {
166
+ "type": "string"
167
+ }
168
+ },
169
+ "additionalProperties": false
170
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$id": "https://x12i.dev/made-easy/schemas/blocks/pause.v1.json",
3
+ "title": "Pause rule props",
4
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "rule": {
8
+ "type": "string",
9
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
10
+ },
11
+ "note": {
12
+ "type": "string"
13
+ },
14
+ "exceptions": {
15
+ "type": "array",
16
+ "items": {
17
+ "type": "string"
18
+ }
19
+ }
20
+ },
21
+ "required": [
22
+ "rule"
23
+ ],
24
+ "additionalProperties": false
25
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$id": "https://x12i.dev/made-easy/schemas/blocks/reference-profile.v1.json",
3
+ "title": "Reference profile props",
4
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "profile": {
8
+ "type": "string",
9
+ "enum": [
10
+ "market",
11
+ "product",
12
+ "service",
13
+ "sdk"
14
+ ]
15
+ },
16
+ "fields": {
17
+ "type": "object",
18
+ "propertyNames": {
19
+ "type": "string"
20
+ },
21
+ "additionalProperties": {
22
+ "anyOf": [
23
+ {
24
+ "type": "string"
25
+ },
26
+ {
27
+ "type": "array",
28
+ "items": {
29
+ "type": "string"
30
+ }
31
+ }
32
+ ]
33
+ }
34
+ }
35
+ },
36
+ "required": [
37
+ "profile",
38
+ "fields"
39
+ ],
40
+ "additionalProperties": false
41
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$id": "https://x12i.dev/made-easy/schemas/blocks/review-checklist.v1.json",
3
+ "title": "Review checklist props",
4
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "title": {
8
+ "type": "string"
9
+ },
10
+ "checks": {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "string",
14
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
15
+ }
16
+ }
17
+ },
18
+ "additionalProperties": false
19
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "$id": "https://x12i.dev/made-easy/schemas/blocks/table.v1.json",
3
+ "title": "Table props",
4
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "caption": {
8
+ "type": "string"
9
+ },
10
+ "columns": {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "object",
14
+ "properties": {
15
+ "key": {
16
+ "type": "string"
17
+ },
18
+ "label": {
19
+ "type": "string"
20
+ },
21
+ "align": {
22
+ "type": "string",
23
+ "enum": [
24
+ "left",
25
+ "right",
26
+ "center"
27
+ ]
28
+ }
29
+ },
30
+ "required": [
31
+ "key",
32
+ "label"
33
+ ],
34
+ "additionalProperties": false
35
+ }
36
+ },
37
+ "rows": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "object",
41
+ "propertyNames": {
42
+ "type": "string"
43
+ },
44
+ "additionalProperties": {
45
+ "type": [
46
+ "string",
47
+ "number",
48
+ "boolean"
49
+ ]
50
+ }
51
+ }
52
+ }
53
+ },
54
+ "required": [
55
+ "columns",
56
+ "rows"
57
+ ],
58
+ "additionalProperties": false
59
+ }