doc-detective-common 4.0.0-beta.0-dev.4 → 4.0.0-beta.0-dev.5

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 (200) hide show
  1. package/package.json +1 -1
  2. package/.c8rc.json +0 -8
  3. package/.mocharc.yml +0 -1
  4. package/icon.png +0 -0
  5. package/scripts/check-coverage-ratchet.cjs +0 -123
  6. package/scripts/createCjsWrapper.js +0 -25
  7. package/scripts/generateTypes.cjs +0 -54
  8. package/src/detectTests.ts +0 -660
  9. package/src/index.ts +0 -3
  10. package/src/schemas/build/checkLink_v2.schema.json +0 -81
  11. package/src/schemas/build/checkLink_v3.schema.json +0 -92
  12. package/src/schemas/build/click_v3.schema.json +0 -145
  13. package/src/schemas/build/config_v2.schema.json +0 -1079
  14. package/src/schemas/build/config_v3.schema.json +0 -696
  15. package/src/schemas/build/context_v2.schema.json +0 -135
  16. package/src/schemas/build/context_v3.schema.json +0 -229
  17. package/src/schemas/build/dragAndDrop_v3.schema.json +0 -189
  18. package/src/schemas/build/find_v2.schema.json +0 -168
  19. package/src/schemas/build/find_v3.schema.json +0 -214
  20. package/src/schemas/build/goTo_v2.schema.json +0 -63
  21. package/src/schemas/build/goTo_v3.schema.json +0 -257
  22. package/src/schemas/build/httpRequest_v2.schema.json +0 -321
  23. package/src/schemas/build/httpRequest_v3.schema.json +0 -439
  24. package/src/schemas/build/loadCookie_v3.schema.json +0 -138
  25. package/src/schemas/build/loadVariables_v3.schema.json +0 -10
  26. package/src/schemas/build/moveTo_v2.schema.json +0 -99
  27. package/src/schemas/build/openApi_v2.schema.json +0 -76
  28. package/src/schemas/build/openApi_v3.schema.json +0 -161
  29. package/src/schemas/build/record_v3.schema.json +0 -70
  30. package/src/schemas/build/report_v3.schema.json +0 -53
  31. package/src/schemas/build/resolvedTests_v3.schema.json +0 -238
  32. package/src/schemas/build/runCode_v2.schema.json +0 -201
  33. package/src/schemas/build/runCode_v3.schema.json +0 -138
  34. package/src/schemas/build/runShell_v2.schema.json +0 -189
  35. package/src/schemas/build/runShell_v3.schema.json +0 -156
  36. package/src/schemas/build/saveCookie_v3.schema.json +0 -149
  37. package/src/schemas/build/saveScreenshot_v2.schema.json +0 -150
  38. package/src/schemas/build/screenshot_v3.schema.json +0 -250
  39. package/src/schemas/build/setVariables_v2.schema.json +0 -39
  40. package/src/schemas/build/sourceIntegration_v3.schema.json +0 -51
  41. package/src/schemas/build/spec_v2.schema.json +0 -199
  42. package/src/schemas/build/spec_v3.schema.json +0 -213
  43. package/src/schemas/build/startRecording_v2.schema.json +0 -57
  44. package/src/schemas/build/step_v3.schema.json +0 -669
  45. package/src/schemas/build/stopRecord_v3.schema.json +0 -13
  46. package/src/schemas/build/stopRecording_v2.schema.json +0 -33
  47. package/src/schemas/build/test_v2.schema.json +0 -244
  48. package/src/schemas/build/test_v3.schema.json +0 -292
  49. package/src/schemas/build/typeKeys_v2.schema.json +0 -72
  50. package/src/schemas/build/type_v3.schema.json +0 -131
  51. package/src/schemas/build/wait_v2.schema.json +0 -42
  52. package/src/schemas/build/wait_v3.schema.json +0 -37
  53. package/src/schemas/dereferenceSchemas.cjs +0 -208
  54. package/src/schemas/index.ts +0 -6
  55. package/src/schemas/output_schemas/analytics_v1.schema.json +0 -585
  56. package/src/schemas/output_schemas/checkLink_v1.schema.json +0 -42
  57. package/src/schemas/output_schemas/checkLink_v2.schema.json +0 -80
  58. package/src/schemas/output_schemas/checkLink_v3.schema.json +0 -145
  59. package/src/schemas/output_schemas/click_v1.schema.json +0 -60
  60. package/src/schemas/output_schemas/click_v3.schema.json +0 -252
  61. package/src/schemas/output_schemas/config_v2.schema.json +0 -2628
  62. package/src/schemas/output_schemas/config_v3.schema.json +0 -16470
  63. package/src/schemas/output_schemas/context_v2.schema.json +0 -134
  64. package/src/schemas/output_schemas/context_v3.schema.json +0 -374
  65. package/src/schemas/output_schemas/dragAndDrop_v3.schema.json +0 -496
  66. package/src/schemas/output_schemas/endRecord_v3.schema.json +0 -12
  67. package/src/schemas/output_schemas/find_v1.schema.json +0 -171
  68. package/src/schemas/output_schemas/find_v2.schema.json +0 -184
  69. package/src/schemas/output_schemas/find_v3.schema.json +0 -1349
  70. package/src/schemas/output_schemas/goTo_v1.schema.json +0 -30
  71. package/src/schemas/output_schemas/goTo_v2.schema.json +0 -62
  72. package/src/schemas/output_schemas/goTo_v3.schema.json +0 -419
  73. package/src/schemas/output_schemas/httpRequest_v1.schema.json +0 -115
  74. package/src/schemas/output_schemas/httpRequest_v2.schema.json +0 -392
  75. package/src/schemas/output_schemas/httpRequest_v3.schema.json +0 -994
  76. package/src/schemas/output_schemas/loadCookie_v3.schema.json +0 -228
  77. package/src/schemas/output_schemas/loadVariables_v3.schema.json +0 -9
  78. package/src/schemas/output_schemas/matchText_v1.schema.json +0 -32
  79. package/src/schemas/output_schemas/moveMouse_v1.schema.json +0 -60
  80. package/src/schemas/output_schemas/moveTo_v2.schema.json +0 -98
  81. package/src/schemas/output_schemas/openApi_v2.schema.json +0 -75
  82. package/src/schemas/output_schemas/openApi_v3.schema.json +0 -162
  83. package/src/schemas/output_schemas/record_v3.schema.json +0 -101
  84. package/src/schemas/output_schemas/report_v3.schema.json +0 -16826
  85. package/src/schemas/output_schemas/resolvedTests_v3.schema.json +0 -33331
  86. package/src/schemas/output_schemas/runCode_v2.schema.json +0 -200
  87. package/src/schemas/output_schemas/runCode_v3.schema.json +0 -222
  88. package/src/schemas/output_schemas/runShell_v1.schema.json +0 -35
  89. package/src/schemas/output_schemas/runShell_v2.schema.json +0 -188
  90. package/src/schemas/output_schemas/runShell_v3.schema.json +0 -236
  91. package/src/schemas/output_schemas/saveCookie_v3.schema.json +0 -245
  92. package/src/schemas/output_schemas/saveScreenshot_v2.schema.json +0 -149
  93. package/src/schemas/output_schemas/screenshot_v1.schema.json +0 -48
  94. package/src/schemas/output_schemas/screenshot_v3.schema.json +0 -681
  95. package/src/schemas/output_schemas/scroll_v1.schema.json +0 -50
  96. package/src/schemas/output_schemas/setVariables_v2.schema.json +0 -38
  97. package/src/schemas/output_schemas/sourceIntegration_v3.schema.json +0 -50
  98. package/src/schemas/output_schemas/spec_v2.schema.json +0 -2301
  99. package/src/schemas/output_schemas/spec_v3.schema.json +0 -16630
  100. package/src/schemas/output_schemas/startRecording_v1.schema.json +0 -55
  101. package/src/schemas/output_schemas/startRecording_v2.schema.json +0 -56
  102. package/src/schemas/output_schemas/step_v3.schema.json +0 -7317
  103. package/src/schemas/output_schemas/stopRecord_v3.schema.json +0 -12
  104. package/src/schemas/output_schemas/stopRecording_v1.schema.json +0 -20
  105. package/src/schemas/output_schemas/stopRecording_v2.schema.json +0 -32
  106. package/src/schemas/output_schemas/test_v2.schema.json +0 -1903
  107. package/src/schemas/output_schemas/test_v3.schema.json +0 -15863
  108. package/src/schemas/output_schemas/typeKeys_v2.schema.json +0 -71
  109. package/src/schemas/output_schemas/type_v1.schema.json +0 -62
  110. package/src/schemas/output_schemas/type_v3.schema.json +0 -244
  111. package/src/schemas/output_schemas/wait_v1.schema.json +0 -42
  112. package/src/schemas/output_schemas/wait_v2.schema.json +0 -41
  113. package/src/schemas/output_schemas/wait_v3.schema.json +0 -41
  114. package/src/schemas/schemas.json +0 -121331
  115. package/src/schemas/src_schemas/analytics_v1.schema.json +0 -585
  116. package/src/schemas/src_schemas/checkLink_v1.schema.json +0 -42
  117. package/src/schemas/src_schemas/checkLink_v2.schema.json +0 -65
  118. package/src/schemas/src_schemas/checkLink_v3.schema.json +0 -91
  119. package/src/schemas/src_schemas/click_v1.schema.json +0 -60
  120. package/src/schemas/src_schemas/click_v3.schema.json +0 -144
  121. package/src/schemas/src_schemas/config_v2.schema.json +0 -929
  122. package/src/schemas/src_schemas/config_v3.schema.json +0 -633
  123. package/src/schemas/src_schemas/context_v2.schema.json +0 -108
  124. package/src/schemas/src_schemas/context_v3.schema.json +0 -202
  125. package/src/schemas/src_schemas/dragAndDrop_v3.schema.json +0 -185
  126. package/src/schemas/src_schemas/find_v1.schema.json +0 -137
  127. package/src/schemas/src_schemas/find_v2.schema.json +0 -155
  128. package/src/schemas/src_schemas/find_v3.schema.json +0 -210
  129. package/src/schemas/src_schemas/goTo_v1.schema.json +0 -30
  130. package/src/schemas/src_schemas/goTo_v2.schema.json +0 -58
  131. package/src/schemas/src_schemas/goTo_v3.schema.json +0 -232
  132. package/src/schemas/src_schemas/httpRequest_v1.schema.json +0 -115
  133. package/src/schemas/src_schemas/httpRequest_v2.schema.json +0 -284
  134. package/src/schemas/src_schemas/httpRequest_v3.schema.json +0 -402
  135. package/src/schemas/src_schemas/loadCookie_v3.schema.json +0 -113
  136. package/src/schemas/src_schemas/loadVariables_v3.schema.json +0 -9
  137. package/src/schemas/src_schemas/matchText_v1.schema.json +0 -32
  138. package/src/schemas/src_schemas/moveMouse_v1.schema.json +0 -60
  139. package/src/schemas/src_schemas/moveTo_v2.schema.json +0 -89
  140. package/src/schemas/src_schemas/openApi_v2.schema.json +0 -64
  141. package/src/schemas/src_schemas/openApi_v3.schema.json +0 -161
  142. package/src/schemas/src_schemas/record_v3.schema.json +0 -69
  143. package/src/schemas/src_schemas/report_v3.schema.json +0 -52
  144. package/src/schemas/src_schemas/resolvedTests_v3.schema.json +0 -237
  145. package/src/schemas/src_schemas/runCode_v2.schema.json +0 -181
  146. package/src/schemas/src_schemas/runCode_v3.schema.json +0 -137
  147. package/src/schemas/src_schemas/runShell_v1.schema.json +0 -35
  148. package/src/schemas/src_schemas/runShell_v2.schema.json +0 -166
  149. package/src/schemas/src_schemas/runShell_v3.schema.json +0 -155
  150. package/src/schemas/src_schemas/saveCookie_v3.schema.json +0 -124
  151. package/src/schemas/src_schemas/saveScreenshot_v2.schema.json +0 -129
  152. package/src/schemas/src_schemas/screenshot_v1.schema.json +0 -48
  153. package/src/schemas/src_schemas/screenshot_v3.schema.json +0 -249
  154. package/src/schemas/src_schemas/scroll_v1.schema.json +0 -50
  155. package/src/schemas/src_schemas/setVariables_v2.schema.json +0 -38
  156. package/src/schemas/src_schemas/sourceIntegration_v3.schema.json +0 -45
  157. package/src/schemas/src_schemas/spec_v2.schema.json +0 -175
  158. package/src/schemas/src_schemas/spec_v3.schema.json +0 -212
  159. package/src/schemas/src_schemas/startRecording_v1.schema.json +0 -55
  160. package/src/schemas/src_schemas/startRecording_v2.schema.json +0 -54
  161. package/src/schemas/src_schemas/step_v3.schema.json +0 -632
  162. package/src/schemas/src_schemas/stopRecord_v3.schema.json +0 -9
  163. package/src/schemas/src_schemas/stopRecording_v1.schema.json +0 -20
  164. package/src/schemas/src_schemas/stopRecording_v2.schema.json +0 -32
  165. package/src/schemas/src_schemas/test_v2.schema.json +0 -200
  166. package/src/schemas/src_schemas/test_v3.schema.json +0 -268
  167. package/src/schemas/src_schemas/typeKeys_v2.schema.json +0 -63
  168. package/src/schemas/src_schemas/type_v1.schema.json +0 -62
  169. package/src/schemas/src_schemas/type_v3.schema.json +0 -118
  170. package/src/schemas/src_schemas/wait_v1.schema.json +0 -42
  171. package/src/schemas/src_schemas/wait_v2.schema.json +0 -41
  172. package/src/schemas/src_schemas/wait_v3.schema.json +0 -36
  173. package/src/types/generated/checkLink_v3.ts +0 -29
  174. package/src/types/generated/click_v3.ts +0 -17
  175. package/src/types/generated/config_v3.ts +0 -405
  176. package/src/types/generated/context_v3.ts +0 -112
  177. package/src/types/generated/dragAndDrop_v3.ts +0 -39
  178. package/src/types/generated/endRecord_v3.ts +0 -10
  179. package/src/types/generated/find_v3.ts +0 -17
  180. package/src/types/generated/goTo_v3.ts +0 -48
  181. package/src/types/generated/httpRequest_v3.ts +0 -17
  182. package/src/types/generated/loadCookie_v3.ts +0 -17
  183. package/src/types/generated/loadVariables_v3.ts +0 -10
  184. package/src/types/generated/openApi_v3.ts +0 -64
  185. package/src/types/generated/record_v3.ts +0 -34
  186. package/src/types/generated/report_v3.ts +0 -183
  187. package/src/types/generated/resolvedTests_v3.ts +0 -585
  188. package/src/types/generated/runCode_v3.ts +0 -59
  189. package/src/types/generated/runShell_v3.ts +0 -58
  190. package/src/types/generated/saveCookie_v3.ts +0 -17
  191. package/src/types/generated/screenshot_v3.ts +0 -76
  192. package/src/types/generated/sourceIntegration_v3.ts +0 -31
  193. package/src/types/generated/spec_v3.ts +0 -166
  194. package/src/types/generated/step_v3.ts +0 -1288
  195. package/src/types/generated/stopRecord_v3.ts +0 -10
  196. package/src/types/generated/test_v3.ts +0 -3048
  197. package/src/types/generated/type_v3.ts +0 -56
  198. package/src/types/generated/wait_v3.ts +0 -13
  199. package/src/validate.ts +0 -627
  200. package/tsconfig.json +0 -22
@@ -1,696 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "config",
4
- "description": "Configuration options for Doc Detective operations.",
5
- "type": "object",
6
- "additionalProperties": false,
7
- "dynamicDefaults": {
8
- "configId": "uuid"
9
- },
10
- "properties": {
11
- "$schema": {
12
- "description": "JSON Schema for this object.",
13
- "type": "string",
14
- "enum": [
15
- "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/config_v3.schema.json"
16
- ]
17
- },
18
- "configId": {
19
- "description": "Identifier for the configuration.",
20
- "type": "string"
21
- },
22
- "configPath": {
23
- "description": "Path to the configuration file.",
24
- "type": "string",
25
- "readOnly": true
26
- },
27
- "input": {
28
- "description": "Path(s) to test specifications and documentation source files. May be paths to specific files or to directories to scan for files.",
29
- "default": ".",
30
- "anyOf": [
31
- {
32
- "$ref": "#/components/schemas/stringOrArray"
33
- }
34
- ]
35
- },
36
- "output": {
37
- "description": "Path of the directory in which to store the output of Doc Detective commands. If a file path is specified, Doc Detective attempts to honor the file name specified, but file path behavior is controlled by the configured reporters.",
38
- "type": "string",
39
- "default": "."
40
- },
41
- "recursive": {
42
- "description": "If `true` searches `input`, `setup`, and `cleanup` paths recursively for test specifications and source files.",
43
- "type": "boolean",
44
- "default": true
45
- },
46
- "relativePathBase": {
47
- "description": "Whether paths should be interpreted as relative to the current working directory (`cwd`) or to the file in which they're specified (`file`).",
48
- "type": "string",
49
- "enum": [
50
- "cwd",
51
- "file"
52
- ],
53
- "default": "file"
54
- },
55
- "loadVariables": {
56
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/loadVariables_v3.schema.json#"
57
- },
58
- "origin": {
59
- "description": "Default protocol and domain to use for relative URLs.",
60
- "type": "string"
61
- },
62
- "beforeAny": {
63
- "description": "Path(s) to test specifications to perform before those specified by `input`. Useful for setting up testing environments.",
64
- "anyOf": [
65
- {
66
- "type": "string"
67
- },
68
- {
69
- "type": "array",
70
- "items": {
71
- "anyOf": [
72
- {
73
- "type": "string"
74
- }
75
- ]
76
- }
77
- }
78
- ]
79
- },
80
- "afterAll": {
81
- "description": "Path(s) to test specifications to perform after those specified by `input`. Useful for cleaning up testing environments.",
82
- "anyOf": [
83
- {
84
- "type": "string"
85
- },
86
- {
87
- "type": "array",
88
- "items": {
89
- "anyOf": [
90
- {
91
- "type": "string"
92
- }
93
- ]
94
- }
95
- }
96
- ]
97
- },
98
- "detectSteps": {
99
- "type": "boolean",
100
- "description": "Whether or not to detect steps in input files based on defined markup.",
101
- "default": true
102
- },
103
- "allowUnsafeSteps": {
104
- "type": "boolean",
105
- "description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
106
- },
107
- "crawl": {
108
- "description": "If `true`, crawls sitemap.xml files specified by URL to find additional files to test.",
109
- "type": "boolean",
110
- "default": false
111
- },
112
- "processDitaMaps": {
113
- "description": "If `true`, processes DITA maps and includes generated files as inputs.",
114
- "type": "boolean",
115
- "default": true
116
- },
117
- "logLevel": {
118
- "description": "Amount of detail to output when performing an operation.",
119
- "type": "string",
120
- "enum": [
121
- "silent",
122
- "error",
123
- "warning",
124
- "info",
125
- "debug"
126
- ],
127
- "default": "info"
128
- },
129
- "runOn": {
130
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/test_v3.schema.json#/properties/runOn"
131
- },
132
- "fileTypes": {
133
- "description": "Configuration for file types and their markup detection.",
134
- "default": [
135
- "markdown",
136
- "asciidoc",
137
- "html",
138
- "dita"
139
- ],
140
- "anyOf": [
141
- {
142
- "type": "array",
143
- "minItems": 1,
144
- "items": {
145
- "anyOf": [
146
- {
147
- "$comment": "Simple mode: Reference predefined templates by name.",
148
- "title": "File type (predefined)",
149
- "type": "string",
150
- "enum": [
151
- "markdown",
152
- "asciidoc",
153
- "html",
154
- "dita"
155
- ]
156
- },
157
- {
158
- "$comment": "Custom mode: Extend predefined templates or write whole new ones.",
159
- "title": "File type (custom)",
160
- "type": "object",
161
- "anyOf": [
162
- {
163
- "required": [
164
- "extensions"
165
- ]
166
- },
167
- {
168
- "required": [
169
- "extends"
170
- ]
171
- }
172
- ],
173
- "properties": {
174
- "name": {
175
- "description": "Name of the file type.",
176
- "type": "string"
177
- },
178
- "extends": {
179
- "description": "Base template to extend.",
180
- "type": "string",
181
- "enum": [
182
- "markdown",
183
- "asciidoc",
184
- "html"
185
- ]
186
- },
187
- "extensions": {
188
- "description": "File extensions to use with type.",
189
- "anyOf": [
190
- {
191
- "$ref": "#/components/schemas/stringOrArray"
192
- }
193
- ]
194
- },
195
- "inlineStatements": {
196
- "$ref": "#/components/schemas/inlineStatements"
197
- },
198
- "markup": {
199
- "description": "Markup definitions for the file type.",
200
- "type": "array",
201
- "minItems": 1,
202
- "items": {
203
- "$ref": "#/components/schemas/markupDefinition"
204
- }
205
- }
206
- }
207
- },
208
- {
209
- "title": "File type (executable)",
210
- "$comment": "Executable mode: Convert executable inputs directly into tests.",
211
- "type": "object",
212
- "required": [
213
- "extensions"
214
- ],
215
- "properties": {
216
- "extensions": {
217
- "description": "File extensions to use with type.",
218
- "anyOf": [
219
- {
220
- "$ref": "#/components/schemas/stringOrArray"
221
- }
222
- ]
223
- },
224
- "runShell": {
225
- "description": "`runShell` step to perform for this file type. Use $1 as a placeholder for the file path.",
226
- "anyOf": [
227
- {
228
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/runShell_v3.schema.json#"
229
- }
230
- ]
231
- }
232
- }
233
- }
234
- ]
235
- }
236
- }
237
- ]
238
- },
239
- "integrations": {
240
- "description": "Options for connecting to external services.",
241
- "type": "object",
242
- "additionalProperties": false,
243
- "properties": {
244
- "openApi": {
245
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/test_v3.schema.json#/properties/openApi"
246
- },
247
- "docDetectiveApi": {
248
- "type": "object",
249
- "description": "Configuration for Doc Detective Orchestration API integration.",
250
- "additionalProperties": false,
251
- "properties": {
252
- "apiKey": {
253
- "type": "string",
254
- "description": "API key for authenticating with the Doc Detective Orchestration API."
255
- }
256
- },
257
- "title": "Doc Detective Orchestration API"
258
- },
259
- "heretto": {
260
- "type": "array",
261
- "description": "Configuration for Heretto CMS integrations. Each entry specifies a Heretto instance and a scenario to build and test.",
262
- "items": {
263
- "type": "object",
264
- "additionalProperties": false,
265
- "required": [
266
- "name",
267
- "organizationId",
268
- "username",
269
- "apiToken"
270
- ],
271
- "properties": {
272
- "name": {
273
- "type": "string",
274
- "description": "Unique identifier for this Heretto integration. Used in logs and results."
275
- },
276
- "organizationId": {
277
- "type": "string",
278
- "description": "The organization subdomain used to access Heretto CCMS (e.g., 'thunderbird' for thunderbird.heretto.com)."
279
- },
280
- "username": {
281
- "type": "string",
282
- "description": "Heretto CCMS username (email address) for API authentication."
283
- },
284
- "apiToken": {
285
- "format": "password",
286
- "minLength": 1,
287
- "type": "string",
288
- "description": "API token generated in Heretto CCMS for authentication. See https://help.heretto.com/en/heretto-ccms/api/ccms-api-authentication/basic-authentication#ariaid-title3"
289
- },
290
- "scenarioName": {
291
- "type": "string",
292
- "description": "Name of the scenario to build and test.",
293
- "default": "Doc Detective"
294
- },
295
- "outputPath": {
296
- "type": "string",
297
- "description": "Local path where Heretto content was downloaded. Set automatically during processing.",
298
- "readOnly": true
299
- },
300
- "fileMapping": {
301
- "type": "object",
302
- "description": "Mapping of local file paths to Heretto file metadata. Set automatically during content loading.",
303
- "readOnly": true,
304
- "additionalProperties": {
305
- "type": "object",
306
- "properties": {
307
- "fileId": {
308
- "type": "string",
309
- "description": "The UUID of the file in Heretto."
310
- },
311
- "filePath": {
312
- "type": "string",
313
- "description": "The path of the file in Heretto."
314
- }
315
- }
316
- }
317
- },
318
- "uploadOnChange": {
319
- "type": "boolean",
320
- "description": "If `true`, uploads changed screenshots and other media files back to Heretto CMS after test execution.",
321
- "default": false
322
- },
323
- "resourceDependencies": {
324
- "type": "object",
325
- "description": "Mapping of Heretto file paths to their UUIDs and metadata. Set automatically during content loading by fetching ditamap resource dependencies.",
326
- "readOnly": true,
327
- "additionalProperties": {
328
- "type": "object",
329
- "properties": {
330
- "uuid": {
331
- "type": "string",
332
- "description": "The UUID of the file in Heretto."
333
- },
334
- "fullPath": {
335
- "type": "string",
336
- "description": "The full xmldb path of the file in Heretto."
337
- },
338
- "name": {
339
- "type": "string",
340
- "description": "The file name."
341
- },
342
- "parentFolderId": {
343
- "type": "string",
344
- "description": "The UUID of the parent folder in Heretto."
345
- }
346
- }
347
- }
348
- }
349
- },
350
- "title": "Heretto CMS integration"
351
- },
352
- "title": "Heretto CMS integrations"
353
- }
354
- },
355
- "title": "Integrations options"
356
- },
357
- "telemetry": {
358
- "description": "Options around sending telemetry for Doc Detective usage.",
359
- "type": "object",
360
- "additionalProperties": false,
361
- "properties": {
362
- "send": {
363
- "description": "If `true`, sends Doc Detective telemetry.",
364
- "type": "boolean",
365
- "default": true
366
- },
367
- "userId": {
368
- "description": "Identifier for the organization, group, or individual running Doc Detective.",
369
- "type": "string"
370
- }
371
- },
372
- "required": [
373
- "send"
374
- ],
375
- "default": {
376
- "send": true
377
- },
378
- "title": "Telemetry options"
379
- },
380
- "concurrentRunners": {
381
- "type": [
382
- "integer",
383
- "boolean"
384
- ],
385
- "default": 1,
386
- "minimum": 1,
387
- "description": "Number of concurrent test runners. Set to true to use CPU core count (capped at 4).",
388
- "not": {
389
- "const": false
390
- }
391
- },
392
- "environment": {
393
- "$ref": "#/components/schemas/environment"
394
- },
395
- "debug": {
396
- "description": "Enable debugging mode. `true` allows pausing on breakpoints, waiting for user input before continuing. `stepThrough` pauses at every step, waiting for user input before continuing. `false` disables all debugging.",
397
- "anyOf": [
398
- {
399
- "type": "boolean"
400
- },
401
- {
402
- "type": "string",
403
- "enum": [
404
- "stepThrough"
405
- ]
406
- }
407
- ],
408
- "default": false
409
- }
410
- },
411
- "components": {
412
- "schemas": {
413
- "environment": {
414
- "type": "object",
415
- "description": "Environment information for the system running Doc Detective.",
416
- "readOnly": true,
417
- "additionalProperties": false,
418
- "required": [
419
- "platform"
420
- ],
421
- "properties": {
422
- "workingDirectory": {
423
- "description": "The current working directory of the process running Doc Detective.",
424
- "type": "string"
425
- },
426
- "platform": {
427
- "description": "The operating system type running Doc Detective.",
428
- "type": "string",
429
- "enum": [
430
- "linux",
431
- "mac",
432
- "windows"
433
- ]
434
- },
435
- "arch": {
436
- "description": "The processor architecture of the system running Doc Detective.",
437
- "type": "string",
438
- "enum": [
439
- "arm32",
440
- "arm64",
441
- "x32",
442
- "x64"
443
- ]
444
- }
445
- },
446
- "title": "Environment details"
447
- },
448
- "markupDefinition": {
449
- "type": "object",
450
- "properties": {
451
- "name": {
452
- "description": "Name of the markup definition",
453
- "type": "string"
454
- },
455
- "regex": {
456
- "description": "Regular expressions to match the markup type.",
457
- "anyOf": [
458
- {
459
- "$ref": "#/components/schemas/stringOrArray"
460
- }
461
- ]
462
- },
463
- "batchMatches": {
464
- "description": "If `true`, all matches are combined into a single string.",
465
- "type": "boolean",
466
- "default": false
467
- },
468
- "actions": {
469
- "description": "Actions to perform when the markup type is detected.",
470
- "anyOf": [
471
- {
472
- "$ref": "#/components/schemas/markupActionString"
473
- },
474
- {
475
- "type": "array",
476
- "items": {
477
- "anyOf": [
478
- {
479
- "$ref": "#/components/schemas/markupActionString"
480
- },
481
- {
482
- "$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/step_v3.schema.json#"
483
- }
484
- ]
485
- }
486
- }
487
- ]
488
- }
489
- },
490
- "title": "Markup definition"
491
- },
492
- "markupActionString": {
493
- "type": "string",
494
- "enum": [
495
- "checkLink",
496
- "click",
497
- "find",
498
- "goTo",
499
- "httpRequest",
500
- "loadCookie",
501
- "loadVariables",
502
- "record",
503
- "runCode",
504
- "runShell",
505
- "saveCookie",
506
- "screenshot",
507
- "stopRecord",
508
- "type",
509
- "wait"
510
- ]
511
- },
512
- "inlineStatements": {
513
- "description": "Statements to include tests and steps inside the content of the file, such as within Markdown.",
514
- "type": "object",
515
- "properties": {
516
- "testStart": {
517
- "description": "Regular expressions that indicate the start of a test. If capture groups are used, the first capture group is used for the statement. If no capture groups are used, the entire match is used for the statement.",
518
- "anyOf": [
519
- {
520
- "$ref": "#/components/schemas/stringOrArray"
521
- }
522
- ]
523
- },
524
- "testEnd": {
525
- "description": "Regular expressions that indicate that the current test is complete.",
526
- "anyOf": [
527
- {
528
- "$ref": "#/components/schemas/stringOrArray"
529
- }
530
- ]
531
- },
532
- "ignoreStart": {
533
- "description": "Regular expressions that indicates that the following content should be ignored for testing purposes.",
534
- "anyOf": [
535
- {
536
- "$ref": "#/components/schemas/stringOrArray"
537
- }
538
- ]
539
- },
540
- "ignoreEnd": {
541
- "description": "Regular expressions that indicate that the ignored section of content is complete.",
542
- "anyOf": [
543
- {
544
- "$ref": "#/components/schemas/stringOrArray"
545
- }
546
- ]
547
- },
548
- "step": {
549
- "description": "Regular expressions that indicate a step in a test.",
550
- "anyOf": [
551
- {
552
- "$ref": "#/components/schemas/stringOrArray"
553
- }
554
- ]
555
- }
556
- },
557
- "title": "Inline statement definition"
558
- },
559
- "stringOrArray": {
560
- "anyOf": [
561
- {
562
- "type": "string"
563
- },
564
- {
565
- "type": "array",
566
- "minItems": 1,
567
- "items": {
568
- "type": "string"
569
- }
570
- }
571
- ]
572
- }
573
- }
574
- },
575
- "examples": [
576
- {},
577
- {
578
- "input": ".",
579
- "output": ".",
580
- "recursive": true,
581
- "loadVariables": ".env",
582
- "fileTypes": [
583
- "markdown"
584
- ]
585
- },
586
- {
587
- "fileTypes": [
588
- {
589
- "extends": "markdown",
590
- "extensions": [
591
- "md",
592
- "markdown",
593
- "mdx"
594
- ],
595
- "inlineStatements": {
596
- "testStart": "<!--\\s*testStart\\s*(.*?)\\s*-->",
597
- "testEnd": "<!-- testEnd -->",
598
- "ignoreStart": "<!-- ignoreStart -->",
599
- "ignoreEnd": "<!-- ignoreEnd -->",
600
- "step": "<!--\\s*step\\s*(.*?)\\s*-->"
601
- },
602
- "markup": [
603
- {
604
- "name": "onscreenText",
605
- "regex": "\\*\\*.+?\\*\\*",
606
- "actions": "find"
607
- }
608
- ]
609
- }
610
- ]
611
- },
612
- {
613
- "fileTypes": [
614
- {
615
- "name": "Jupyter Notebooks",
616
- "extensions": "ipynb",
617
- "runShell": {
618
- "command": "jupyter",
619
- "args": [
620
- "nbconvert",
621
- "--to",
622
- "script",
623
- "--execute",
624
- "$1",
625
- "--stdout"
626
- ]
627
- }
628
- },
629
- {
630
- "name": "JavaScript",
631
- "extensions": "js",
632
- "runShell": {
633
- "command": "node $1"
634
- }
635
- },
636
- {
637
- "name": "Python",
638
- "extensions": "py",
639
- "runShell": {
640
- "command": "python $1"
641
- }
642
- }
643
- ]
644
- },
645
- {
646
- "environment": {
647
- "platform": "windows",
648
- "arch": "x64"
649
- }
650
- },
651
- {
652
- "concurrentRunners": 1
653
- },
654
- {
655
- "concurrentRunners": true
656
- },
657
- {
658
- "concurrentRunners": 4
659
- },
660
- {
661
- "debug": false
662
- },
663
- {
664
- "debug": true
665
- },
666
- {
667
- "debug": "stepThrough"
668
- },
669
- {
670
- "integrations": {
671
- "docDetectiveApi": {
672
- "apiKey": "your-api-key-here"
673
- }
674
- }
675
- },
676
- {
677
- "crawl": true
678
- },
679
- {
680
- "processDitaMaps": true
681
- },
682
- {
683
- "integrations": {
684
- "heretto": [
685
- {
686
- "name": "example",
687
- "organizationId": "your-organization-id",
688
- "username": "your-username",
689
- "apiToken": "your-api-token"
690
- }
691
- ]
692
- }
693
- }
694
- ],
695
- "$id": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/src_schemas/config_v3.schema.json"
696
- }