doc-detective-common 3.6.0 → 3.7.0-preview.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schemas/config_v3.schema.json +3880 -40
- package/dist/schemas/report_v3.schema.json +3991 -69
- package/dist/schemas/resolvedTests_v3.schema.json +7925 -163
- package/dist/schemas/sourceLocation_v3.schema.json +106 -0
- package/dist/schemas/spec_v3.schema.json +3991 -69
- package/dist/schemas/step_v3.schema.json +1915 -7
- package/dist/schemas/test_v3.schema.json +3995 -73
- package/package.json +6 -2
- package/src/ai.js +532 -0
- package/src/index.js +8 -0
- package/src/refineStep.js +267 -0
- package/src/schemas/build/checkLink_v2.schema.json +1 -1
- package/src/schemas/build/checkLink_v3.schema.json +1 -1
- package/src/schemas/build/click_v3.schema.json +1 -1
- package/src/schemas/build/config_v2.schema.json +14 -14
- package/src/schemas/build/config_v3.schema.json +30 -6
- package/src/schemas/build/context_v2.schema.json +1 -1
- package/src/schemas/build/context_v3.schema.json +1 -1
- package/src/schemas/build/dragAndDrop_v3.schema.json +1 -1
- package/src/schemas/build/find_v2.schema.json +3 -3
- package/src/schemas/build/find_v3.schema.json +4 -4
- package/src/schemas/build/goTo_v2.schema.json +1 -1
- package/src/schemas/build/goTo_v3.schema.json +1 -1
- package/src/schemas/build/httpRequest_v2.schema.json +2 -2
- package/src/schemas/build/httpRequest_v3.schema.json +3 -3
- package/src/schemas/build/loadCookie_v3.schema.json +1 -1
- package/src/schemas/build/loadVariables_v3.schema.json +1 -1
- package/src/schemas/build/moveTo_v2.schema.json +1 -1
- package/src/schemas/build/openApi_v2.schema.json +1 -1
- package/src/schemas/build/openApi_v3.schema.json +1 -1
- package/src/schemas/build/record_v3.schema.json +1 -1
- package/src/schemas/build/report_v3.schema.json +5 -5
- package/src/schemas/build/resolvedTests_v3.schema.json +3 -3
- package/src/schemas/build/runCode_v2.schema.json +1 -1
- package/src/schemas/build/runCode_v3.schema.json +1 -1
- package/src/schemas/build/runShell_v2.schema.json +1 -1
- package/src/schemas/build/runShell_v3.schema.json +1 -1
- package/src/schemas/build/saveCookie_v3.schema.json +1 -1
- package/src/schemas/build/saveScreenshot_v2.schema.json +1 -1
- package/src/schemas/build/screenshot_v3.schema.json +1 -1
- package/src/schemas/build/setVariables_v2.schema.json +1 -1
- package/src/schemas/build/sourceLocation_v3.schema.json +107 -0
- package/src/schemas/build/spec_v2.schema.json +4 -4
- package/src/schemas/build/spec_v3.schema.json +4 -4
- package/src/schemas/build/startRecording_v2.schema.json +1 -1
- package/src/schemas/build/step_v3.schema.json +45 -38
- package/src/schemas/build/stopRecord_v3.schema.json +1 -1
- package/src/schemas/build/stopRecording_v2.schema.json +1 -1
- package/src/schemas/build/test_v2.schema.json +15 -15
- package/src/schemas/build/test_v3.schema.json +10 -6
- package/src/schemas/build/typeKeys_v2.schema.json +1 -1
- package/src/schemas/build/type_v3.schema.json +1 -1
- package/src/schemas/build/wait_v2.schema.json +1 -1
- package/src/schemas/build/wait_v3.schema.json +1 -1
- package/src/schemas/dereferenceSchemas.js +1 -0
- package/src/schemas/output_schemas/config_v3.schema.json +3880 -40
- package/src/schemas/output_schemas/report_v3.schema.json +3991 -69
- package/src/schemas/output_schemas/resolvedTests_v3.schema.json +7925 -163
- package/src/schemas/output_schemas/sourceLocation_v3.schema.json +106 -0
- package/src/schemas/output_schemas/spec_v3.schema.json +3991 -69
- package/src/schemas/output_schemas/step_v3.schema.json +1915 -7
- package/src/schemas/output_schemas/test_v3.schema.json +3995 -73
- package/src/schemas/schemas.json +25978 -596
- package/src/schemas/src_schemas/config_v3.schema.json +24 -0
- package/src/schemas/src_schemas/sourceLocation_v3.schema.json +106 -0
- package/src/schemas/src_schemas/step_v3.schema.json +7 -0
- package/src/schemas/src_schemas/test_v3.schema.json +4 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "sourceLocation",
|
|
4
|
+
"description": "Tracks the original source location of a test or step for inline editing support. This is a read-only property populated during test detection.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"readOnly": true,
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"file": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Absolute path to the source file containing this test or step.",
|
|
12
|
+
"readOnly": true
|
|
13
|
+
},
|
|
14
|
+
"startLine": {
|
|
15
|
+
"type": "integer",
|
|
16
|
+
"description": "1-based line number where this test or step starts.",
|
|
17
|
+
"minimum": 1,
|
|
18
|
+
"readOnly": true
|
|
19
|
+
},
|
|
20
|
+
"endLine": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"description": "1-based line number where this test or step ends.",
|
|
23
|
+
"minimum": 1,
|
|
24
|
+
"readOnly": true
|
|
25
|
+
},
|
|
26
|
+
"startColumn": {
|
|
27
|
+
"type": "integer",
|
|
28
|
+
"description": "1-based column number where this test or step starts on startLine.",
|
|
29
|
+
"minimum": 1,
|
|
30
|
+
"readOnly": true
|
|
31
|
+
},
|
|
32
|
+
"endColumn": {
|
|
33
|
+
"type": "integer",
|
|
34
|
+
"description": "1-based column number where this test or step ends on endLine.",
|
|
35
|
+
"minimum": 1,
|
|
36
|
+
"readOnly": true
|
|
37
|
+
},
|
|
38
|
+
"startOffset": {
|
|
39
|
+
"type": "integer",
|
|
40
|
+
"description": "0-based character offset from the beginning of the file where this test or step starts.",
|
|
41
|
+
"minimum": 0,
|
|
42
|
+
"readOnly": true
|
|
43
|
+
},
|
|
44
|
+
"endOffset": {
|
|
45
|
+
"type": "integer",
|
|
46
|
+
"description": "0-based character offset from the beginning of the file where this test or step ends.",
|
|
47
|
+
"minimum": 0,
|
|
48
|
+
"readOnly": true
|
|
49
|
+
},
|
|
50
|
+
"originalText": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "The original text content of this test or step as found in the source file.",
|
|
53
|
+
"readOnly": true
|
|
54
|
+
},
|
|
55
|
+
"isInline": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"description": "Whether this test or step was detected from inline comments within a content file (true) or from a standalone spec file (false).",
|
|
58
|
+
"default": false,
|
|
59
|
+
"readOnly": true
|
|
60
|
+
},
|
|
61
|
+
"isAutoDetected": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"description": "Whether this step was auto-detected from markup patterns (true) or explicitly defined in an inline comment (false). Only applicable to steps.",
|
|
64
|
+
"default": false,
|
|
65
|
+
"readOnly": true
|
|
66
|
+
},
|
|
67
|
+
"commentFormat": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "The comment format used for this inline test or step. Used when serializing edits back to the source file.",
|
|
70
|
+
"enum": [
|
|
71
|
+
"htmlComment",
|
|
72
|
+
"jsxComment",
|
|
73
|
+
"linkReference"
|
|
74
|
+
],
|
|
75
|
+
"readOnly": true
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"examples": [
|
|
79
|
+
{
|
|
80
|
+
"file": "/path/to/docs/getting-started.md",
|
|
81
|
+
"startLine": 42,
|
|
82
|
+
"endLine": 45,
|
|
83
|
+
"startColumn": 1,
|
|
84
|
+
"endColumn": 3,
|
|
85
|
+
"startOffset": 1250,
|
|
86
|
+
"endOffset": 1350,
|
|
87
|
+
"originalText": "<!-- test testId=\"navigation-test\" -->",
|
|
88
|
+
"isInline": true,
|
|
89
|
+
"isAutoDetected": false,
|
|
90
|
+
"commentFormat": "htmlComment"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"file": "/path/to/docs/tutorial.md",
|
|
94
|
+
"startLine": 78,
|
|
95
|
+
"endLine": 78,
|
|
96
|
+
"startColumn": 1,
|
|
97
|
+
"endColumn": 45,
|
|
98
|
+
"startOffset": 2100,
|
|
99
|
+
"endOffset": 2145,
|
|
100
|
+
"originalText": "[example link](https://example.com)",
|
|
101
|
+
"isInline": true,
|
|
102
|
+
"isAutoDetected": true,
|
|
103
|
+
"commentFormat": "htmlComment"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|