critical-gate 2.0.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/LICENSE +21 -0
- package/README.md +240 -0
- package/dist/cli.d.ts +20 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +224 -0
- package/dist/cli.js.map +1 -0
- package/dist/config/critical-gate-config.d.ts +21 -0
- package/dist/config/critical-gate-config.d.ts.map +1 -0
- package/dist/config/critical-gate-config.js +81 -0
- package/dist/config/critical-gate-config.js.map +1 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +2 -0
- package/dist/config/index.js.map +1 -0
- package/dist/detectors/api-surface-detector.d.ts +3 -0
- package/dist/detectors/api-surface-detector.d.ts.map +1 -0
- package/dist/detectors/api-surface-detector.js +111 -0
- package/dist/detectors/api-surface-detector.js.map +1 -0
- package/dist/detectors/blast-radius-detector.d.ts +3 -0
- package/dist/detectors/blast-radius-detector.d.ts.map +1 -0
- package/dist/detectors/blast-radius-detector.js +90 -0
- package/dist/detectors/blast-radius-detector.js.map +1 -0
- package/dist/detectors/config-change-detector.d.ts +3 -0
- package/dist/detectors/config-change-detector.d.ts.map +1 -0
- package/dist/detectors/config-change-detector.js +68 -0
- package/dist/detectors/config-change-detector.js.map +1 -0
- package/dist/detectors/dependency-detector.d.ts +3 -0
- package/dist/detectors/dependency-detector.d.ts.map +1 -0
- package/dist/detectors/dependency-detector.js +98 -0
- package/dist/detectors/dependency-detector.js.map +1 -0
- package/dist/detectors/existing-solution-detector.d.ts +3 -0
- package/dist/detectors/existing-solution-detector.d.ts.map +1 -0
- package/dist/detectors/existing-solution-detector.js +87 -0
- package/dist/detectors/existing-solution-detector.js.map +1 -0
- package/dist/detectors/expected-companions-detector.d.ts +3 -0
- package/dist/detectors/expected-companions-detector.d.ts.map +1 -0
- package/dist/detectors/expected-companions-detector.js +65 -0
- package/dist/detectors/expected-companions-detector.js.map +1 -0
- package/dist/detectors/index.d.ts +17 -0
- package/dist/detectors/index.d.ts.map +1 -0
- package/dist/detectors/index.js +16 -0
- package/dist/detectors/index.js.map +1 -0
- package/dist/detectors/intent-verification-detector.d.ts +3 -0
- package/dist/detectors/intent-verification-detector.d.ts.map +1 -0
- package/dist/detectors/intent-verification-detector.js +43 -0
- package/dist/detectors/intent-verification-detector.js.map +1 -0
- package/dist/detectors/pattern-violation-detector.d.ts +3 -0
- package/dist/detectors/pattern-violation-detector.d.ts.map +1 -0
- package/dist/detectors/pattern-violation-detector.js +83 -0
- package/dist/detectors/pattern-violation-detector.js.map +1 -0
- package/dist/detectors/repository-intelligence-detector.d.ts +3 -0
- package/dist/detectors/repository-intelligence-detector.d.ts.map +1 -0
- package/dist/detectors/repository-intelligence-detector.js +51 -0
- package/dist/detectors/repository-intelligence-detector.js.map +1 -0
- package/dist/detectors/rewrite-detector.d.ts +3 -0
- package/dist/detectors/rewrite-detector.d.ts.map +1 -0
- package/dist/detectors/rewrite-detector.js +61 -0
- package/dist/detectors/rewrite-detector.js.map +1 -0
- package/dist/detectors/runner.d.ts +9 -0
- package/dist/detectors/runner.d.ts.map +1 -0
- package/dist/detectors/runner.js +96 -0
- package/dist/detectors/runner.js.map +1 -0
- package/dist/detectors/scope-detector.d.ts +3 -0
- package/dist/detectors/scope-detector.d.ts.map +1 -0
- package/dist/detectors/scope-detector.js +138 -0
- package/dist/detectors/scope-detector.js.map +1 -0
- package/dist/detectors/secret-path-detector.d.ts +5 -0
- package/dist/detectors/secret-path-detector.d.ts.map +1 -0
- package/dist/detectors/secret-path-detector.js +150 -0
- package/dist/detectors/secret-path-detector.js.map +1 -0
- package/dist/detectors/test-weakening-detector.d.ts +3 -0
- package/dist/detectors/test-weakening-detector.d.ts.map +1 -0
- package/dist/detectors/test-weakening-detector.js +91 -0
- package/dist/detectors/test-weakening-detector.js.map +1 -0
- package/dist/detectors/types.d.ts +15 -0
- package/dist/detectors/types.d.ts.map +1 -0
- package/dist/detectors/types.js +2 -0
- package/dist/detectors/types.js.map +1 -0
- package/dist/detectors/utility-reinvention-detector.d.ts +3 -0
- package/dist/detectors/utility-reinvention-detector.d.ts.map +1 -0
- package/dist/detectors/utility-reinvention-detector.js +78 -0
- package/dist/detectors/utility-reinvention-detector.js.map +1 -0
- package/dist/diff/git-diff-reader.d.ts +24 -0
- package/dist/diff/git-diff-reader.d.ts.map +1 -0
- package/dist/diff/git-diff-reader.js +81 -0
- package/dist/diff/git-diff-reader.js.map +1 -0
- package/dist/diff/index.d.ts +4 -0
- package/dist/diff/index.d.ts.map +1 -0
- package/dist/diff/index.js +4 -0
- package/dist/diff/index.js.map +1 -0
- package/dist/diff/parse-unified-diff.d.ts +3 -0
- package/dist/diff/parse-unified-diff.d.ts.map +1 -0
- package/dist/diff/parse-unified-diff.js +153 -0
- package/dist/diff/parse-unified-diff.js.map +1 -0
- package/dist/diff/path-classifier.d.ts +5 -0
- package/dist/diff/path-classifier.d.ts.map +1 -0
- package/dist/diff/path-classifier.js +86 -0
- package/dist/diff/path-classifier.js.map +1 -0
- package/dist/editor/diagnostics.d.ts +35 -0
- package/dist/editor/diagnostics.d.ts.map +1 -0
- package/dist/editor/diagnostics.js +55 -0
- package/dist/editor/diagnostics.js.map +1 -0
- package/dist/editor/index.d.ts +3 -0
- package/dist/editor/index.d.ts.map +1 -0
- package/dist/editor/index.js +2 -0
- package/dist/editor/index.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/intent/index.d.ts +5 -0
- package/dist/intent/index.d.ts.map +1 -0
- package/dist/intent/index.js +5 -0
- package/dist/intent/index.js.map +1 -0
- package/dist/intent/intent-core.d.ts +4 -0
- package/dist/intent/intent-core.d.ts.map +1 -0
- package/dist/intent/intent-core.js +58 -0
- package/dist/intent/intent-core.js.map +1 -0
- package/dist/intent/intent-model.d.ts +18 -0
- package/dist/intent/intent-model.d.ts.map +1 -0
- package/dist/intent/intent-model.js +74 -0
- package/dist/intent/intent-model.js.map +1 -0
- package/dist/intent/observed-actions.d.ts +17 -0
- package/dist/intent/observed-actions.d.ts.map +1 -0
- package/dist/intent/observed-actions.js +128 -0
- package/dist/intent/observed-actions.js.map +1 -0
- package/dist/intent/scope-expansion-score.d.ts +13 -0
- package/dist/intent/scope-expansion-score.d.ts.map +1 -0
- package/dist/intent/scope-expansion-score.js +87 -0
- package/dist/intent/scope-expansion-score.js.map +1 -0
- package/dist/intent/task-analysis.d.ts +18 -0
- package/dist/intent/task-analysis.d.ts.map +1 -0
- package/dist/intent/task-analysis.js +46 -0
- package/dist/intent/task-analysis.js.map +1 -0
- package/dist/knowledge/cache.d.ts +29 -0
- package/dist/knowledge/cache.d.ts.map +1 -0
- package/dist/knowledge/cache.js +85 -0
- package/dist/knowledge/cache.js.map +1 -0
- package/dist/knowledge/graph.d.ts +16 -0
- package/dist/knowledge/graph.d.ts.map +1 -0
- package/dist/knowledge/graph.js +139 -0
- package/dist/knowledge/graph.js.map +1 -0
- package/dist/knowledge/history-index.d.ts +20 -0
- package/dist/knowledge/history-index.d.ts.map +1 -0
- package/dist/knowledge/history-index.js +117 -0
- package/dist/knowledge/history-index.js.map +1 -0
- package/dist/knowledge/index.d.ts +9 -0
- package/dist/knowledge/index.d.ts.map +1 -0
- package/dist/knowledge/index.js +8 -0
- package/dist/knowledge/index.js.map +1 -0
- package/dist/knowledge/pattern-index.d.ts +14 -0
- package/dist/knowledge/pattern-index.d.ts.map +1 -0
- package/dist/knowledge/pattern-index.js +94 -0
- package/dist/knowledge/pattern-index.js.map +1 -0
- package/dist/knowledge/provider.d.ts +18 -0
- package/dist/knowledge/provider.d.ts.map +1 -0
- package/dist/knowledge/provider.js +83 -0
- package/dist/knowledge/provider.js.map +1 -0
- package/dist/knowledge/solution-index.d.ts +17 -0
- package/dist/knowledge/solution-index.d.ts.map +1 -0
- package/dist/knowledge/solution-index.js +170 -0
- package/dist/knowledge/solution-index.js.map +1 -0
- package/dist/knowledge/symbol-index.d.ts +4 -0
- package/dist/knowledge/symbol-index.d.ts.map +1 -0
- package/dist/knowledge/symbol-index.js +11 -0
- package/dist/knowledge/symbol-index.js.map +1 -0
- package/dist/knowledge/types.d.ts +100 -0
- package/dist/knowledge/types.d.ts.map +1 -0
- package/dist/knowledge/types.js +2 -0
- package/dist/knowledge/types.js.map +1 -0
- package/dist/llm/artifact.d.ts +6 -0
- package/dist/llm/artifact.d.ts.map +1 -0
- package/dist/llm/artifact.js +86 -0
- package/dist/llm/artifact.js.map +1 -0
- package/dist/llm/cache.d.ts +10 -0
- package/dist/llm/cache.d.ts.map +1 -0
- package/dist/llm/cache.js +24 -0
- package/dist/llm/cache.js.map +1 -0
- package/dist/llm/index.d.ts +8 -0
- package/dist/llm/index.d.ts.map +1 -0
- package/dist/llm/index.js +7 -0
- package/dist/llm/index.js.map +1 -0
- package/dist/llm/prompt.d.ts +7 -0
- package/dist/llm/prompt.d.ts.map +1 -0
- package/dist/llm/prompt.js +23 -0
- package/dist/llm/prompt.js.map +1 -0
- package/dist/llm/provider.d.ts +4 -0
- package/dist/llm/provider.d.ts.map +1 -0
- package/dist/llm/provider.js +43 -0
- package/dist/llm/provider.js.map +1 -0
- package/dist/llm/redaction.d.ts +3 -0
- package/dist/llm/redaction.d.ts.map +1 -0
- package/dist/llm/redaction.js +22 -0
- package/dist/llm/redaction.js.map +1 -0
- package/dist/llm/types.d.ts +89 -0
- package/dist/llm/types.d.ts.map +1 -0
- package/dist/llm/types.js +2 -0
- package/dist/llm/types.js.map +1 -0
- package/dist/reporters/index.d.ts +8 -0
- package/dist/reporters/index.d.ts.map +1 -0
- package/dist/reporters/index.js +21 -0
- package/dist/reporters/index.js.map +1 -0
- package/dist/reporters/json-reporter.d.ts +3 -0
- package/dist/reporters/json-reporter.d.ts.map +1 -0
- package/dist/reporters/json-reporter.js +4 -0
- package/dist/reporters/json-reporter.js.map +1 -0
- package/dist/reporters/markdown-reporter.d.ts +3 -0
- package/dist/reporters/markdown-reporter.d.ts.map +1 -0
- package/dist/reporters/markdown-reporter.js +76 -0
- package/dist/reporters/markdown-reporter.js.map +1 -0
- package/dist/reporters/repair-reporter.d.ts +3 -0
- package/dist/reporters/repair-reporter.d.ts.map +1 -0
- package/dist/reporters/repair-reporter.js +56 -0
- package/dist/reporters/repair-reporter.js.map +1 -0
- package/dist/reporters/sarif-reporter.d.ts +3 -0
- package/dist/reporters/sarif-reporter.d.ts.map +1 -0
- package/dist/reporters/sarif-reporter.js +161 -0
- package/dist/reporters/sarif-reporter.js.map +1 -0
- package/dist/repository/index.d.ts +3 -0
- package/dist/repository/index.d.ts.map +1 -0
- package/dist/repository/index.js +3 -0
- package/dist/repository/index.js.map +1 -0
- package/dist/repository/profile.d.ts +7 -0
- package/dist/repository/profile.d.ts.map +1 -0
- package/dist/repository/profile.js +6 -0
- package/dist/repository/profile.js.map +1 -0
- package/dist/repository/utility-index.d.ts +7 -0
- package/dist/repository/utility-index.d.ts.map +1 -0
- package/dist/repository/utility-index.js +6 -0
- package/dist/repository/utility-index.js.map +1 -0
- package/dist/schema/gate-result.schema.d.ts +514 -0
- package/dist/schema/gate-result.schema.d.ts.map +1 -0
- package/dist/schema/gate-result.schema.js +326 -0
- package/dist/schema/gate-result.schema.js.map +1 -0
- package/dist/schema/index.d.ts +4 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +3 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/types.d.ts +136 -0
- package/dist/schema/types.d.ts.map +1 -0
- package/dist/schema/types.js +2 -0
- package/dist/schema/types.js.map +1 -0
- package/package.json +51 -0
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
export declare const gateResultJsonSchema: {
|
|
2
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
3
|
+
readonly $id: "https://critical-gate.dev/schemas/gate-result.schema.json";
|
|
4
|
+
readonly title: "Critical Gate Result";
|
|
5
|
+
readonly type: "object";
|
|
6
|
+
readonly additionalProperties: false;
|
|
7
|
+
readonly required: readonly ["schemaVersion", "generatedAt", "task", "diff", "findings", "summary"];
|
|
8
|
+
readonly properties: {
|
|
9
|
+
readonly schemaVersion: {
|
|
10
|
+
readonly const: "1.0";
|
|
11
|
+
};
|
|
12
|
+
readonly generatedAt: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly minLength: 1;
|
|
15
|
+
};
|
|
16
|
+
readonly task: {
|
|
17
|
+
readonly $ref: "#/$defs/taskIntent";
|
|
18
|
+
};
|
|
19
|
+
readonly diff: {
|
|
20
|
+
readonly $ref: "#/$defs/diff";
|
|
21
|
+
};
|
|
22
|
+
readonly context: {
|
|
23
|
+
readonly $ref: "#/$defs/repoContext";
|
|
24
|
+
};
|
|
25
|
+
readonly findings: {
|
|
26
|
+
readonly type: "array";
|
|
27
|
+
readonly items: {
|
|
28
|
+
readonly $ref: "#/$defs/finding";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
readonly summary: {
|
|
32
|
+
readonly $ref: "#/$defs/gateSummary";
|
|
33
|
+
};
|
|
34
|
+
readonly intentVerification: {
|
|
35
|
+
readonly $ref: "#/$defs/intentVerificationSummary";
|
|
36
|
+
};
|
|
37
|
+
readonly metadata: {
|
|
38
|
+
readonly type: "object";
|
|
39
|
+
readonly additionalProperties: true;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
readonly $defs: {
|
|
43
|
+
readonly taskIntent: {
|
|
44
|
+
readonly type: "object";
|
|
45
|
+
readonly additionalProperties: false;
|
|
46
|
+
readonly required: readonly ["source", "text"];
|
|
47
|
+
readonly properties: {
|
|
48
|
+
readonly source: {
|
|
49
|
+
readonly enum: readonly ["cli", "commit", "pull_request", "issue", "codex", "unknown"];
|
|
50
|
+
};
|
|
51
|
+
readonly text: {
|
|
52
|
+
readonly type: "string";
|
|
53
|
+
readonly minLength: 1;
|
|
54
|
+
};
|
|
55
|
+
readonly summary: {
|
|
56
|
+
readonly type: "string";
|
|
57
|
+
};
|
|
58
|
+
readonly id: {
|
|
59
|
+
readonly type: "string";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly diff: {
|
|
64
|
+
readonly type: "object";
|
|
65
|
+
readonly additionalProperties: false;
|
|
66
|
+
readonly required: readonly ["files"];
|
|
67
|
+
readonly properties: {
|
|
68
|
+
readonly baseRef: {
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
};
|
|
71
|
+
readonly headRef: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
};
|
|
74
|
+
readonly files: {
|
|
75
|
+
readonly type: "array";
|
|
76
|
+
readonly items: {
|
|
77
|
+
readonly $ref: "#/$defs/diffFile";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
readonly diffFile: {
|
|
83
|
+
readonly type: "object";
|
|
84
|
+
readonly additionalProperties: false;
|
|
85
|
+
readonly required: readonly ["path", "status", "role", "additions", "deletions", "hunks"];
|
|
86
|
+
readonly properties: {
|
|
87
|
+
readonly path: {
|
|
88
|
+
readonly type: "string";
|
|
89
|
+
readonly minLength: 1;
|
|
90
|
+
};
|
|
91
|
+
readonly status: {
|
|
92
|
+
readonly enum: readonly ["added", "modified", "deleted", "renamed"];
|
|
93
|
+
};
|
|
94
|
+
readonly role: {
|
|
95
|
+
readonly enum: readonly ["source", "test", "config", "docs", "manifest", "lockfile", "generated", "unknown"];
|
|
96
|
+
};
|
|
97
|
+
readonly additions: {
|
|
98
|
+
readonly type: "integer";
|
|
99
|
+
readonly minimum: 0;
|
|
100
|
+
};
|
|
101
|
+
readonly deletions: {
|
|
102
|
+
readonly type: "integer";
|
|
103
|
+
readonly minimum: 0;
|
|
104
|
+
};
|
|
105
|
+
readonly oldPath: {
|
|
106
|
+
readonly type: "string";
|
|
107
|
+
};
|
|
108
|
+
readonly newPath: {
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
};
|
|
111
|
+
readonly language: {
|
|
112
|
+
readonly type: "string";
|
|
113
|
+
};
|
|
114
|
+
readonly hunks: {
|
|
115
|
+
readonly type: "array";
|
|
116
|
+
readonly items: {
|
|
117
|
+
readonly $ref: "#/$defs/diffHunk";
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
readonly diffHunk: {
|
|
123
|
+
readonly type: "object";
|
|
124
|
+
readonly additionalProperties: false;
|
|
125
|
+
readonly required: readonly ["oldStart", "oldLines", "newStart", "newLines", "lines"];
|
|
126
|
+
readonly properties: {
|
|
127
|
+
readonly oldStart: {
|
|
128
|
+
readonly type: "integer";
|
|
129
|
+
readonly minimum: 0;
|
|
130
|
+
};
|
|
131
|
+
readonly oldLines: {
|
|
132
|
+
readonly type: "integer";
|
|
133
|
+
readonly minimum: 0;
|
|
134
|
+
};
|
|
135
|
+
readonly newStart: {
|
|
136
|
+
readonly type: "integer";
|
|
137
|
+
readonly minimum: 0;
|
|
138
|
+
};
|
|
139
|
+
readonly newLines: {
|
|
140
|
+
readonly type: "integer";
|
|
141
|
+
readonly minimum: 0;
|
|
142
|
+
};
|
|
143
|
+
readonly heading: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
};
|
|
146
|
+
readonly lines: {
|
|
147
|
+
readonly type: "array";
|
|
148
|
+
readonly items: {
|
|
149
|
+
readonly $ref: "#/$defs/diffLine";
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
readonly diffLine: {
|
|
155
|
+
readonly type: "object";
|
|
156
|
+
readonly additionalProperties: false;
|
|
157
|
+
readonly required: readonly ["kind", "content"];
|
|
158
|
+
readonly properties: {
|
|
159
|
+
readonly kind: {
|
|
160
|
+
readonly enum: readonly ["add", "delete", "context"];
|
|
161
|
+
};
|
|
162
|
+
readonly content: {
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
};
|
|
165
|
+
readonly oldLineNumber: {
|
|
166
|
+
readonly type: "integer";
|
|
167
|
+
readonly minimum: 1;
|
|
168
|
+
};
|
|
169
|
+
readonly newLineNumber: {
|
|
170
|
+
readonly type: "integer";
|
|
171
|
+
readonly minimum: 1;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
readonly repoContext: {
|
|
176
|
+
readonly type: "object";
|
|
177
|
+
readonly additionalProperties: false;
|
|
178
|
+
readonly properties: {
|
|
179
|
+
readonly root: {
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
};
|
|
182
|
+
readonly packageManager: {
|
|
183
|
+
readonly enum: readonly ["pnpm", "npm", "yarn", "bun", "unknown"];
|
|
184
|
+
};
|
|
185
|
+
readonly manifests: {
|
|
186
|
+
readonly type: "array";
|
|
187
|
+
readonly items: {
|
|
188
|
+
readonly type: "string";
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
readonly configFiles: {
|
|
192
|
+
readonly type: "array";
|
|
193
|
+
readonly items: {
|
|
194
|
+
readonly type: "string";
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
readonly testFrameworks: {
|
|
198
|
+
readonly type: "array";
|
|
199
|
+
readonly items: {
|
|
200
|
+
readonly type: "string";
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
readonly publicEntrypoints: {
|
|
204
|
+
readonly type: "array";
|
|
205
|
+
readonly items: {
|
|
206
|
+
readonly type: "string";
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
readonly repositoryProfile: {
|
|
210
|
+
readonly $ref: "#/$defs/repositoryProfile";
|
|
211
|
+
};
|
|
212
|
+
readonly utilityIndex: {
|
|
213
|
+
readonly $ref: "#/$defs/utilityIndex";
|
|
214
|
+
};
|
|
215
|
+
readonly git: {
|
|
216
|
+
readonly type: "object";
|
|
217
|
+
readonly additionalProperties: false;
|
|
218
|
+
readonly properties: {
|
|
219
|
+
readonly baseRef: {
|
|
220
|
+
readonly type: "string";
|
|
221
|
+
};
|
|
222
|
+
readonly headRef: {
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
readonly repositoryProfile: {
|
|
230
|
+
readonly type: "object";
|
|
231
|
+
readonly additionalProperties: false;
|
|
232
|
+
readonly required: readonly ["commitCount", "minConfidenceCommitCount", "coChanges"];
|
|
233
|
+
readonly properties: {
|
|
234
|
+
readonly commitCount: {
|
|
235
|
+
readonly type: "integer";
|
|
236
|
+
readonly minimum: 0;
|
|
237
|
+
};
|
|
238
|
+
readonly minConfidenceCommitCount: {
|
|
239
|
+
readonly type: "integer";
|
|
240
|
+
readonly minimum: 0;
|
|
241
|
+
};
|
|
242
|
+
readonly coChanges: {
|
|
243
|
+
readonly type: "array";
|
|
244
|
+
readonly items: {
|
|
245
|
+
readonly $ref: "#/$defs/repositoryCoChange";
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
readonly repositoryCoChange: {
|
|
251
|
+
readonly type: "object";
|
|
252
|
+
readonly additionalProperties: false;
|
|
253
|
+
readonly required: readonly ["path", "count", "relatedPaths"];
|
|
254
|
+
readonly properties: {
|
|
255
|
+
readonly path: {
|
|
256
|
+
readonly type: "string";
|
|
257
|
+
readonly minLength: 1;
|
|
258
|
+
};
|
|
259
|
+
readonly count: {
|
|
260
|
+
readonly type: "integer";
|
|
261
|
+
readonly minimum: 0;
|
|
262
|
+
};
|
|
263
|
+
readonly relatedPaths: {
|
|
264
|
+
readonly type: "array";
|
|
265
|
+
readonly items: {
|
|
266
|
+
readonly type: "object";
|
|
267
|
+
readonly additionalProperties: false;
|
|
268
|
+
readonly required: readonly ["path", "count"];
|
|
269
|
+
readonly properties: {
|
|
270
|
+
readonly path: {
|
|
271
|
+
readonly type: "string";
|
|
272
|
+
readonly minLength: 1;
|
|
273
|
+
};
|
|
274
|
+
readonly count: {
|
|
275
|
+
readonly type: "integer";
|
|
276
|
+
readonly minimum: 0;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
readonly utilityIndex: {
|
|
284
|
+
readonly type: "object";
|
|
285
|
+
readonly additionalProperties: false;
|
|
286
|
+
readonly required: readonly ["utilities"];
|
|
287
|
+
readonly properties: {
|
|
288
|
+
readonly utilities: {
|
|
289
|
+
readonly type: "array";
|
|
290
|
+
readonly items: {
|
|
291
|
+
readonly $ref: "#/$defs/utilityEntry";
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
readonly utilityEntry: {
|
|
297
|
+
readonly type: "object";
|
|
298
|
+
readonly additionalProperties: false;
|
|
299
|
+
readonly required: readonly ["path", "exportedNames"];
|
|
300
|
+
readonly properties: {
|
|
301
|
+
readonly path: {
|
|
302
|
+
readonly type: "string";
|
|
303
|
+
readonly minLength: 1;
|
|
304
|
+
};
|
|
305
|
+
readonly exportedNames: {
|
|
306
|
+
readonly type: "array";
|
|
307
|
+
readonly items: {
|
|
308
|
+
readonly type: "string";
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
readonly finding: {
|
|
314
|
+
readonly type: "object";
|
|
315
|
+
readonly additionalProperties: false;
|
|
316
|
+
readonly required: readonly ["id", "detector", "severity", "confidence", "title", "message", "evidence", "repair", "tags"];
|
|
317
|
+
readonly properties: {
|
|
318
|
+
readonly id: {
|
|
319
|
+
readonly type: "string";
|
|
320
|
+
readonly minLength: 1;
|
|
321
|
+
};
|
|
322
|
+
readonly detector: {
|
|
323
|
+
readonly type: "string";
|
|
324
|
+
readonly minLength: 1;
|
|
325
|
+
};
|
|
326
|
+
readonly severity: {
|
|
327
|
+
readonly enum: readonly ["blocker", "high", "medium", "low", "info"];
|
|
328
|
+
};
|
|
329
|
+
readonly confidence: {
|
|
330
|
+
readonly type: "number";
|
|
331
|
+
readonly minimum: 0;
|
|
332
|
+
readonly maximum: 1;
|
|
333
|
+
};
|
|
334
|
+
readonly title: {
|
|
335
|
+
readonly type: "string";
|
|
336
|
+
readonly minLength: 1;
|
|
337
|
+
};
|
|
338
|
+
readonly message: {
|
|
339
|
+
readonly type: "string";
|
|
340
|
+
readonly minLength: 1;
|
|
341
|
+
};
|
|
342
|
+
readonly evidence: {
|
|
343
|
+
readonly type: "array";
|
|
344
|
+
readonly minItems: 1;
|
|
345
|
+
readonly items: {
|
|
346
|
+
readonly $ref: "#/$defs/findingEvidence";
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
readonly repair: {
|
|
350
|
+
readonly type: "string";
|
|
351
|
+
readonly minLength: 1;
|
|
352
|
+
};
|
|
353
|
+
readonly tags: {
|
|
354
|
+
readonly type: "array";
|
|
355
|
+
readonly items: {
|
|
356
|
+
readonly enum: readonly ["scope", "dependency", "api", "test", "secret", "config", "rewrite", "convention", "utility", "dead-code", "duplicate-code"];
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
readonly findingEvidence: {
|
|
362
|
+
readonly type: "object";
|
|
363
|
+
readonly additionalProperties: false;
|
|
364
|
+
readonly required: readonly ["kind", "message"];
|
|
365
|
+
readonly properties: {
|
|
366
|
+
readonly kind: {
|
|
367
|
+
readonly enum: readonly ["file", "line", "symbol", "manifest", "metric", "history"];
|
|
368
|
+
};
|
|
369
|
+
readonly message: {
|
|
370
|
+
readonly type: "string";
|
|
371
|
+
readonly minLength: 1;
|
|
372
|
+
};
|
|
373
|
+
readonly path: {
|
|
374
|
+
readonly type: "string";
|
|
375
|
+
};
|
|
376
|
+
readonly startLine: {
|
|
377
|
+
readonly type: "integer";
|
|
378
|
+
readonly minimum: 1;
|
|
379
|
+
};
|
|
380
|
+
readonly endLine: {
|
|
381
|
+
readonly type: "integer";
|
|
382
|
+
readonly minimum: 1;
|
|
383
|
+
};
|
|
384
|
+
readonly symbol: {
|
|
385
|
+
readonly type: "string";
|
|
386
|
+
};
|
|
387
|
+
readonly data: {
|
|
388
|
+
readonly type: "object";
|
|
389
|
+
readonly additionalProperties: true;
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
readonly gateSummary: {
|
|
394
|
+
readonly type: "object";
|
|
395
|
+
readonly additionalProperties: false;
|
|
396
|
+
readonly required: readonly ["decision", "findingCount", "blockerCount", "highCount", "mediumCount", "lowCount", "infoCount"];
|
|
397
|
+
readonly properties: {
|
|
398
|
+
readonly decision: {
|
|
399
|
+
readonly enum: readonly ["pass", "fail"];
|
|
400
|
+
};
|
|
401
|
+
readonly findingCount: {
|
|
402
|
+
readonly type: "integer";
|
|
403
|
+
readonly minimum: 0;
|
|
404
|
+
};
|
|
405
|
+
readonly blockerCount: {
|
|
406
|
+
readonly type: "integer";
|
|
407
|
+
readonly minimum: 0;
|
|
408
|
+
};
|
|
409
|
+
readonly highCount: {
|
|
410
|
+
readonly type: "integer";
|
|
411
|
+
readonly minimum: 0;
|
|
412
|
+
};
|
|
413
|
+
readonly mediumCount: {
|
|
414
|
+
readonly type: "integer";
|
|
415
|
+
readonly minimum: 0;
|
|
416
|
+
};
|
|
417
|
+
readonly lowCount: {
|
|
418
|
+
readonly type: "integer";
|
|
419
|
+
readonly minimum: 0;
|
|
420
|
+
};
|
|
421
|
+
readonly infoCount: {
|
|
422
|
+
readonly type: "integer";
|
|
423
|
+
readonly minimum: 0;
|
|
424
|
+
};
|
|
425
|
+
readonly diffCostScore: {
|
|
426
|
+
readonly type: "number";
|
|
427
|
+
readonly minimum: 0;
|
|
428
|
+
readonly maximum: 100;
|
|
429
|
+
};
|
|
430
|
+
readonly scopeExpansionScore: {
|
|
431
|
+
readonly $ref: "#/$defs/scopeExpansionScore";
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
readonly scopeExpansionScore: {
|
|
436
|
+
readonly type: "object";
|
|
437
|
+
readonly additionalProperties: false;
|
|
438
|
+
readonly required: readonly ["score", "drivers"];
|
|
439
|
+
readonly properties: {
|
|
440
|
+
readonly score: {
|
|
441
|
+
readonly type: "number";
|
|
442
|
+
readonly minimum: 0;
|
|
443
|
+
readonly maximum: 10;
|
|
444
|
+
};
|
|
445
|
+
readonly drivers: {
|
|
446
|
+
readonly type: "array";
|
|
447
|
+
readonly items: {
|
|
448
|
+
readonly $ref: "#/$defs/scopeExpansionDriver";
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
readonly scopeExpansionDriver: {
|
|
454
|
+
readonly type: "object";
|
|
455
|
+
readonly additionalProperties: false;
|
|
456
|
+
readonly required: readonly ["code", "label", "points"];
|
|
457
|
+
readonly properties: {
|
|
458
|
+
readonly code: {
|
|
459
|
+
readonly type: "string";
|
|
460
|
+
readonly minLength: 1;
|
|
461
|
+
};
|
|
462
|
+
readonly label: {
|
|
463
|
+
readonly type: "string";
|
|
464
|
+
readonly minLength: 1;
|
|
465
|
+
};
|
|
466
|
+
readonly points: {
|
|
467
|
+
readonly type: "number";
|
|
468
|
+
readonly minimum: 0;
|
|
469
|
+
};
|
|
470
|
+
readonly evidence: {
|
|
471
|
+
readonly type: "array";
|
|
472
|
+
readonly items: {
|
|
473
|
+
readonly type: "string";
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
readonly intentVerificationSummary: {
|
|
479
|
+
readonly type: "object";
|
|
480
|
+
readonly additionalProperties: false;
|
|
481
|
+
readonly required: readonly ["requestedClasses", "observedClasses", "unexpectedClasses", "coverage", "explanationCodes"];
|
|
482
|
+
readonly properties: {
|
|
483
|
+
readonly requestedClasses: {
|
|
484
|
+
readonly type: "array";
|
|
485
|
+
readonly items: {
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
readonly observedClasses: {
|
|
490
|
+
readonly type: "array";
|
|
491
|
+
readonly items: {
|
|
492
|
+
readonly type: "string";
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
readonly unexpectedClasses: {
|
|
496
|
+
readonly type: "array";
|
|
497
|
+
readonly items: {
|
|
498
|
+
readonly type: "string";
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
readonly coverage: {
|
|
502
|
+
readonly enum: readonly ["none", "partial", "matched"];
|
|
503
|
+
};
|
|
504
|
+
readonly explanationCodes: {
|
|
505
|
+
readonly type: "array";
|
|
506
|
+
readonly items: {
|
|
507
|
+
readonly type: "string";
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
//# sourceMappingURL=gate-result.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gate-result.schema.d.ts","sourceRoot":"","sources":["../../src/schema/gate-result.schema.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+TvB,CAAC"}
|