mustflow 2.85.4 → 2.99.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/cli/commands/script-pack.js +10 -0
- package/dist/cli/i18n/en.js +183 -0
- package/dist/cli/i18n/es.js +183 -0
- package/dist/cli/i18n/fr.js +183 -0
- package/dist/cli/i18n/hi.js +183 -0
- package/dist/cli/i18n/ko.js +183 -0
- package/dist/cli/i18n/zh.js +183 -0
- package/dist/cli/lib/script-pack-registry.js +284 -1
- package/dist/cli/script-packs/code-change-impact.js +6 -0
- package/dist/cli/script-packs/code-import-cycle.js +193 -0
- package/dist/cli/script-packs/docs-link-integrity.js +145 -0
- package/dist/cli/script-packs/repo-approval-gate.js +100 -0
- package/dist/cli/script-packs/repo-git-ignore-audit.js +119 -0
- package/dist/cli/script-packs/repo-manifest-lock-drift.js +122 -0
- package/dist/cli/script-packs/repo-merge-conflict-scan.js +123 -0
- package/dist/cli/script-packs/repo-skill-route-audit.js +86 -0
- package/dist/cli/script-packs/repo-version-source.js +92 -0
- package/dist/cli/script-packs/test-performance-report.js +247 -0
- package/dist/cli/script-packs/test-regression-selector.js +167 -0
- package/dist/core/change-impact.js +23 -51
- package/dist/core/change-surface-classification.js +198 -0
- package/dist/core/docs-link-integrity.js +443 -0
- package/dist/core/import-cycle.js +152 -0
- package/dist/core/public-json-contracts.js +116 -0
- package/dist/core/repo-approval-gate.js +116 -0
- package/dist/core/repo-git-ignore-audit.js +302 -0
- package/dist/core/repo-manifest-lock-drift.js +321 -0
- package/dist/core/repo-merge-conflict-scan.js +335 -0
- package/dist/core/repo-version-source.js +82 -0
- package/dist/core/script-pack-suggestions.js +77 -1
- package/dist/core/skill-route-audit.js +354 -0
- package/dist/core/test-performance-report.js +697 -0
- package/dist/core/test-regression-selector.js +335 -0
- package/package.json +1 -1
- package/schemas/README.md +40 -2
- package/schemas/change-impact-report.schema.json +35 -1
- package/schemas/import-cycle-report.schema.json +157 -0
- package/schemas/link-integrity-report.schema.json +176 -0
- package/schemas/repo-approval-gate-report.schema.json +115 -0
- package/schemas/repo-git-ignore-audit-report.schema.json +201 -0
- package/schemas/repo-manifest-lock-drift-report.schema.json +202 -0
- package/schemas/repo-merge-conflict-scan-report.schema.json +169 -0
- package/schemas/repo-version-source-report.schema.json +127 -0
- package/schemas/skill-route-audit-report.schema.json +144 -0
- package/schemas/test-performance-report.schema.json +319 -0
- package/schemas/test-regression-selector-report.schema.json +187 -0
- package/templates/default/i18n.toml +66 -18
- package/templates/default/locales/en/.mustflow/skills/INDEX.md +45 -8
- package/templates/default/locales/en/.mustflow/skills/api-access-control-review/SKILL.md +48 -27
- package/templates/default/locales/en/.mustflow/skills/api-failure-triage/SKILL.md +270 -0
- package/templates/default/locales/en/.mustflow/skills/auth-flow-triage/SKILL.md +192 -0
- package/templates/default/locales/en/.mustflow/skills/auth-permission-change/SKILL.md +59 -13
- package/templates/default/locales/en/.mustflow/skills/backend-log-evidence-review/SKILL.md +14 -5
- package/templates/default/locales/en/.mustflow/skills/cache-integrity-review/SKILL.md +30 -15
- package/templates/default/locales/en/.mustflow/skills/change-blast-radius-review/SKILL.md +45 -32
- package/templates/default/locales/en/.mustflow/skills/ci-pipeline-triage/SKILL.md +200 -0
- package/templates/default/locales/en/.mustflow/skills/clarifying-question-gate/SKILL.md +87 -13
- package/templates/default/locales/en/.mustflow/skills/docker-runtime-triage/SKILL.md +191 -0
- package/templates/default/locales/en/.mustflow/skills/go-code-change/SKILL.md +18 -13
- package/templates/default/locales/en/.mustflow/skills/line-ending-hygiene/SKILL.md +18 -10
- package/templates/default/locales/en/.mustflow/skills/llm-hallucination-control-review/SKILL.md +4 -1
- package/templates/default/locales/en/.mustflow/skills/motion-system-contract-review/SKILL.md +155 -0
- package/templates/default/locales/en/.mustflow/skills/next-action-menu/SKILL.md +177 -0
- package/templates/default/locales/en/.mustflow/skills/observability-debuggability-review/SKILL.md +15 -7
- package/templates/default/locales/en/.mustflow/skills/payment-integrity-review/SKILL.md +59 -35
- package/templates/default/locales/en/.mustflow/skills/powershell-code-change/SKILL.md +16 -6
- package/templates/default/locales/en/.mustflow/skills/prompt-contract-quality-review/SKILL.md +4 -1
- package/templates/default/locales/en/.mustflow/skills/python-code-change/SKILL.md +19 -10
- package/templates/default/locales/en/.mustflow/skills/rag-pipeline-triage/SKILL.md +206 -0
- package/templates/default/locales/en/.mustflow/skills/routes.toml +54 -0
- package/templates/default/locales/en/.mustflow/skills/rust-code-change/SKILL.md +10 -4
- package/templates/default/locales/en/.mustflow/skills/search-index-integrity-review/SKILL.md +181 -0
- package/templates/default/locales/en/.mustflow/skills/service-boundary-architecture/SKILL.md +37 -23
- package/templates/default/locales/en/.mustflow/skills/test-suite-performance-review/SKILL.md +9 -0
- package/templates/default/locales/en/.mustflow/skills/typescript-code-change/SKILL.md +14 -9
- package/templates/default/locales/en/.mustflow/skills/vector-search-integrity-review/SKILL.md +209 -0
- package/templates/default/locales/en/.mustflow/skills/version-freshness-check/SKILL.md +16 -14
- package/templates/default/manifest.toml +64 -1
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://mustflow.github.io/schemas/link-integrity-report.schema.json",
|
|
4
|
+
"title": "mustflow link-integrity report",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"command",
|
|
10
|
+
"pack_id",
|
|
11
|
+
"script_id",
|
|
12
|
+
"script_ref",
|
|
13
|
+
"action",
|
|
14
|
+
"status",
|
|
15
|
+
"ok",
|
|
16
|
+
"mustflow_root",
|
|
17
|
+
"policy",
|
|
18
|
+
"input_hash",
|
|
19
|
+
"files",
|
|
20
|
+
"links",
|
|
21
|
+
"summary",
|
|
22
|
+
"findings",
|
|
23
|
+
"issues"
|
|
24
|
+
],
|
|
25
|
+
"properties": {
|
|
26
|
+
"schema_version": { "const": "1" },
|
|
27
|
+
"command": { "const": "script-pack" },
|
|
28
|
+
"pack_id": { "const": "docs" },
|
|
29
|
+
"script_id": { "const": "link-integrity" },
|
|
30
|
+
"script_ref": { "const": "docs/link-integrity" },
|
|
31
|
+
"action": { "const": "check" },
|
|
32
|
+
"status": { "enum": ["passed", "failed", "error"] },
|
|
33
|
+
"ok": { "type": "boolean" },
|
|
34
|
+
"mustflow_root": { "type": "string" },
|
|
35
|
+
"policy": { "$ref": "#/$defs/policy" },
|
|
36
|
+
"input_hash": { "$ref": "#/$defs/sha256" },
|
|
37
|
+
"files": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": { "$ref": "#/$defs/file" }
|
|
40
|
+
},
|
|
41
|
+
"links": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": { "$ref": "#/$defs/link" }
|
|
44
|
+
},
|
|
45
|
+
"summary": { "$ref": "#/$defs/summary" },
|
|
46
|
+
"findings": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": { "$ref": "#/$defs/finding" }
|
|
49
|
+
},
|
|
50
|
+
"issues": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": { "type": "string" }
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"$defs": {
|
|
56
|
+
"sha256": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
59
|
+
},
|
|
60
|
+
"nullableSha256": {
|
|
61
|
+
"type": ["string", "null"],
|
|
62
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
63
|
+
},
|
|
64
|
+
"linkKind": {
|
|
65
|
+
"enum": ["local_file", "local_anchor", "external_url", "email", "site_path"]
|
|
66
|
+
},
|
|
67
|
+
"linkStatus": {
|
|
68
|
+
"enum": ["ok", "missing", "skipped", "unknown"]
|
|
69
|
+
},
|
|
70
|
+
"stringArray": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"items": { "type": "string" }
|
|
73
|
+
},
|
|
74
|
+
"policy": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"required": [
|
|
78
|
+
"max_files",
|
|
79
|
+
"max_file_bytes",
|
|
80
|
+
"default_paths",
|
|
81
|
+
"path_filters",
|
|
82
|
+
"checked_link_kinds"
|
|
83
|
+
],
|
|
84
|
+
"properties": {
|
|
85
|
+
"max_files": { "type": "integer", "minimum": 1 },
|
|
86
|
+
"max_file_bytes": { "type": "integer", "minimum": 1 },
|
|
87
|
+
"default_paths": { "$ref": "#/$defs/stringArray" },
|
|
88
|
+
"path_filters": { "$ref": "#/$defs/stringArray" },
|
|
89
|
+
"checked_link_kinds": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": { "$ref": "#/$defs/linkKind" }
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"file": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"required": [
|
|
99
|
+
"kind",
|
|
100
|
+
"path",
|
|
101
|
+
"sha256",
|
|
102
|
+
"size_bytes",
|
|
103
|
+
"line_count",
|
|
104
|
+
"link_count"
|
|
105
|
+
],
|
|
106
|
+
"properties": {
|
|
107
|
+
"kind": { "const": "document" },
|
|
108
|
+
"path": { "type": "string" },
|
|
109
|
+
"sha256": { "$ref": "#/$defs/nullableSha256" },
|
|
110
|
+
"size_bytes": { "type": ["integer", "null"], "minimum": 0 },
|
|
111
|
+
"line_count": { "type": ["integer", "null"], "minimum": 0 },
|
|
112
|
+
"link_count": { "type": "integer", "minimum": 0 }
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"link": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"required": [
|
|
119
|
+
"kind",
|
|
120
|
+
"path",
|
|
121
|
+
"line",
|
|
122
|
+
"text",
|
|
123
|
+
"target",
|
|
124
|
+
"resolved_path",
|
|
125
|
+
"anchor",
|
|
126
|
+
"status",
|
|
127
|
+
"message"
|
|
128
|
+
],
|
|
129
|
+
"properties": {
|
|
130
|
+
"kind": { "$ref": "#/$defs/linkKind" },
|
|
131
|
+
"path": { "type": "string" },
|
|
132
|
+
"line": { "type": "integer", "minimum": 1 },
|
|
133
|
+
"text": { "type": "string" },
|
|
134
|
+
"target": { "type": "string" },
|
|
135
|
+
"resolved_path": { "type": ["string", "null"] },
|
|
136
|
+
"anchor": { "type": ["string", "null"] },
|
|
137
|
+
"status": { "$ref": "#/$defs/linkStatus" },
|
|
138
|
+
"message": { "type": "string" }
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"summary": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"additionalProperties": false,
|
|
144
|
+
"required": ["files_checked", "links_checked", "ok", "missing", "skipped", "unknown"],
|
|
145
|
+
"properties": {
|
|
146
|
+
"files_checked": { "type": "integer", "minimum": 0 },
|
|
147
|
+
"links_checked": { "type": "integer", "minimum": 0 },
|
|
148
|
+
"ok": { "type": "integer", "minimum": 0 },
|
|
149
|
+
"missing": { "type": "integer", "minimum": 0 },
|
|
150
|
+
"skipped": { "type": "integer", "minimum": 0 },
|
|
151
|
+
"unknown": { "type": "integer", "minimum": 0 }
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"finding": {
|
|
155
|
+
"type": "object",
|
|
156
|
+
"additionalProperties": false,
|
|
157
|
+
"required": ["code", "severity", "message", "path"],
|
|
158
|
+
"properties": {
|
|
159
|
+
"code": {
|
|
160
|
+
"enum": [
|
|
161
|
+
"link_integrity_path_outside_root",
|
|
162
|
+
"link_integrity_unreadable_path",
|
|
163
|
+
"link_integrity_file_too_large",
|
|
164
|
+
"link_integrity_max_files_exceeded",
|
|
165
|
+
"link_integrity_missing_file",
|
|
166
|
+
"link_integrity_missing_anchor"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
"severity": { "enum": ["low", "medium", "high", "critical"] },
|
|
170
|
+
"message": { "type": "string" },
|
|
171
|
+
"path": { "type": "string" },
|
|
172
|
+
"line": { "type": "integer", "minimum": 1 }
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://mustflow.github.io/schemas/repo-approval-gate-report.schema.json",
|
|
4
|
+
"title": "mustflow repo approval-gate report",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"command",
|
|
10
|
+
"pack_id",
|
|
11
|
+
"script_id",
|
|
12
|
+
"script_ref",
|
|
13
|
+
"action",
|
|
14
|
+
"status",
|
|
15
|
+
"ok",
|
|
16
|
+
"mustflow_root",
|
|
17
|
+
"input",
|
|
18
|
+
"input_hash",
|
|
19
|
+
"approval_required",
|
|
20
|
+
"policy",
|
|
21
|
+
"decisions",
|
|
22
|
+
"findings",
|
|
23
|
+
"issues"
|
|
24
|
+
],
|
|
25
|
+
"properties": {
|
|
26
|
+
"schema_version": { "const": "1" },
|
|
27
|
+
"command": { "const": "script-pack" },
|
|
28
|
+
"pack_id": { "const": "repo" },
|
|
29
|
+
"script_id": { "const": "approval-gate" },
|
|
30
|
+
"script_ref": { "const": "repo/approval-gate" },
|
|
31
|
+
"action": { "const": "check" },
|
|
32
|
+
"status": { "enum": ["passed", "failed", "error"] },
|
|
33
|
+
"ok": { "type": "boolean" },
|
|
34
|
+
"mustflow_root": { "type": "string" },
|
|
35
|
+
"input": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"required": ["action_types", "policy_path"],
|
|
39
|
+
"properties": {
|
|
40
|
+
"action_types": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": { "type": "string", "minLength": 1 }
|
|
43
|
+
},
|
|
44
|
+
"policy_path": { "const": ".mustflow/config/mustflow.toml" }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"input_hash": { "$ref": "#/$defs/sha256" },
|
|
48
|
+
"approval_required": { "type": "boolean" },
|
|
49
|
+
"policy": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": ["required_for", "on_required"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"required_for": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": { "type": "string", "minLength": 1 }
|
|
57
|
+
},
|
|
58
|
+
"on_required": { "type": ["string", "null"] }
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"decisions": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": { "$ref": "#/$defs/decision" }
|
|
64
|
+
},
|
|
65
|
+
"findings": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": { "$ref": "#/$defs/finding" }
|
|
68
|
+
},
|
|
69
|
+
"issues": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": { "type": "string" }
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"$defs": {
|
|
75
|
+
"sha256": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
78
|
+
},
|
|
79
|
+
"decision": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"required": ["action_type", "approval_required", "policy_source", "reason"],
|
|
83
|
+
"properties": {
|
|
84
|
+
"action_type": { "type": "string", "minLength": 1 },
|
|
85
|
+
"approval_required": { "type": "boolean" },
|
|
86
|
+
"policy_source": { "type": ["string", "null"] },
|
|
87
|
+
"reason": { "type": "string" }
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"finding": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"required": [
|
|
94
|
+
"code",
|
|
95
|
+
"severity",
|
|
96
|
+
"message",
|
|
97
|
+
"path",
|
|
98
|
+
"json_pointer",
|
|
99
|
+
"metric",
|
|
100
|
+
"actual",
|
|
101
|
+
"expected"
|
|
102
|
+
],
|
|
103
|
+
"properties": {
|
|
104
|
+
"code": { "const": "approval_required_for_action" },
|
|
105
|
+
"severity": { "enum": ["low", "medium", "high", "critical"] },
|
|
106
|
+
"message": { "type": "string" },
|
|
107
|
+
"path": { "const": ".mustflow/config/mustflow.toml" },
|
|
108
|
+
"json_pointer": { "type": ["string", "null"] },
|
|
109
|
+
"metric": { "type": ["string", "null"] },
|
|
110
|
+
"actual": { "type": ["number", "null"] },
|
|
111
|
+
"expected": { "type": ["number", "null"] }
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://mustflow.github.io/schemas/repo-git-ignore-audit-report.schema.json",
|
|
4
|
+
"title": "mustflow repo git-ignore-audit report",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"command",
|
|
10
|
+
"pack_id",
|
|
11
|
+
"script_id",
|
|
12
|
+
"script_ref",
|
|
13
|
+
"action",
|
|
14
|
+
"status",
|
|
15
|
+
"ok",
|
|
16
|
+
"mustflow_root",
|
|
17
|
+
"input",
|
|
18
|
+
"policy",
|
|
19
|
+
"input_hash",
|
|
20
|
+
"summary",
|
|
21
|
+
"sources",
|
|
22
|
+
"paths",
|
|
23
|
+
"findings",
|
|
24
|
+
"issues"
|
|
25
|
+
],
|
|
26
|
+
"properties": {
|
|
27
|
+
"schema_version": { "const": "1" },
|
|
28
|
+
"command": { "const": "script-pack" },
|
|
29
|
+
"pack_id": { "const": "repo" },
|
|
30
|
+
"script_id": { "const": "git-ignore-audit" },
|
|
31
|
+
"script_ref": { "const": "repo/git-ignore-audit" },
|
|
32
|
+
"action": { "const": "audit" },
|
|
33
|
+
"status": { "enum": ["passed", "failed", "error"] },
|
|
34
|
+
"ok": { "type": "boolean" },
|
|
35
|
+
"mustflow_root": { "type": "string" },
|
|
36
|
+
"input": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"required": ["paths"],
|
|
40
|
+
"properties": {
|
|
41
|
+
"paths": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": { "type": "string" }
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"policy": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"required": ["input_mode", "max_paths", "source_kinds", "tracked_paths_can_match_ignore"],
|
|
51
|
+
"properties": {
|
|
52
|
+
"input_mode": { "enum": ["explicit_paths", "git_changed_files"] },
|
|
53
|
+
"max_paths": { "type": "integer", "minimum": 1 },
|
|
54
|
+
"source_kinds": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": { "$ref": "#/$defs/sourceKind" }
|
|
57
|
+
},
|
|
58
|
+
"tracked_paths_can_match_ignore": { "type": "boolean" }
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"input_hash": { "$ref": "#/$defs/sha256" },
|
|
62
|
+
"summary": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"required": [
|
|
66
|
+
"paths_checked",
|
|
67
|
+
"ignored_paths",
|
|
68
|
+
"tracked_paths",
|
|
69
|
+
"untracked_paths",
|
|
70
|
+
"missing_paths",
|
|
71
|
+
"ignore_sources",
|
|
72
|
+
"findings"
|
|
73
|
+
],
|
|
74
|
+
"properties": {
|
|
75
|
+
"paths_checked": { "type": "integer", "minimum": 0 },
|
|
76
|
+
"ignored_paths": { "type": "integer", "minimum": 0 },
|
|
77
|
+
"tracked_paths": { "type": "integer", "minimum": 0 },
|
|
78
|
+
"untracked_paths": { "type": "integer", "minimum": 0 },
|
|
79
|
+
"missing_paths": { "type": "integer", "minimum": 0 },
|
|
80
|
+
"ignore_sources": { "type": "integer", "minimum": 0 },
|
|
81
|
+
"findings": { "type": "integer", "minimum": 0 }
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"sources": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": { "$ref": "#/$defs/source" }
|
|
87
|
+
},
|
|
88
|
+
"paths": {
|
|
89
|
+
"type": "array",
|
|
90
|
+
"items": { "$ref": "#/$defs/auditedPath" }
|
|
91
|
+
},
|
|
92
|
+
"findings": {
|
|
93
|
+
"type": "array",
|
|
94
|
+
"items": { "$ref": "#/$defs/finding" }
|
|
95
|
+
},
|
|
96
|
+
"issues": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"items": { "type": "string" }
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"$defs": {
|
|
102
|
+
"sha256": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
105
|
+
},
|
|
106
|
+
"sourceKind": {
|
|
107
|
+
"enum": ["repo_gitignore", "git_info_exclude", "core_excludes_file"]
|
|
108
|
+
},
|
|
109
|
+
"pathStatus": {
|
|
110
|
+
"enum": ["ignored", "tracked", "untracked", "missing", "error"]
|
|
111
|
+
},
|
|
112
|
+
"nullableString": {
|
|
113
|
+
"type": ["string", "null"]
|
|
114
|
+
},
|
|
115
|
+
"nullableInteger": {
|
|
116
|
+
"type": ["integer", "null"],
|
|
117
|
+
"minimum": 1
|
|
118
|
+
},
|
|
119
|
+
"source": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"additionalProperties": false,
|
|
122
|
+
"required": ["path", "kind", "exists", "scope", "sha256"],
|
|
123
|
+
"properties": {
|
|
124
|
+
"path": { "type": "string" },
|
|
125
|
+
"kind": { "$ref": "#/$defs/sourceKind" },
|
|
126
|
+
"exists": { "type": "boolean" },
|
|
127
|
+
"scope": { "enum": ["repository", "local_git", "external"] },
|
|
128
|
+
"sha256": {
|
|
129
|
+
"anyOf": [
|
|
130
|
+
{ "$ref": "#/$defs/sha256" },
|
|
131
|
+
{ "type": "null" }
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"auditedPath": {
|
|
137
|
+
"type": "object",
|
|
138
|
+
"additionalProperties": false,
|
|
139
|
+
"required": [
|
|
140
|
+
"path",
|
|
141
|
+
"status",
|
|
142
|
+
"tracked",
|
|
143
|
+
"ignored",
|
|
144
|
+
"exists",
|
|
145
|
+
"source_path",
|
|
146
|
+
"source_line",
|
|
147
|
+
"pattern"
|
|
148
|
+
],
|
|
149
|
+
"properties": {
|
|
150
|
+
"path": { "type": "string" },
|
|
151
|
+
"status": { "$ref": "#/$defs/pathStatus" },
|
|
152
|
+
"tracked": { "type": "boolean" },
|
|
153
|
+
"ignored": { "type": "boolean" },
|
|
154
|
+
"exists": { "type": "boolean" },
|
|
155
|
+
"source_path": { "$ref": "#/$defs/nullableString" },
|
|
156
|
+
"source_line": { "$ref": "#/$defs/nullableInteger" },
|
|
157
|
+
"pattern": { "$ref": "#/$defs/nullableString" }
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"finding": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"additionalProperties": false,
|
|
163
|
+
"required": [
|
|
164
|
+
"code",
|
|
165
|
+
"severity",
|
|
166
|
+
"message",
|
|
167
|
+
"path",
|
|
168
|
+
"source_path",
|
|
169
|
+
"source_line",
|
|
170
|
+
"pattern",
|
|
171
|
+
"json_pointer",
|
|
172
|
+
"metric",
|
|
173
|
+
"actual",
|
|
174
|
+
"expected"
|
|
175
|
+
],
|
|
176
|
+
"properties": {
|
|
177
|
+
"code": {
|
|
178
|
+
"enum": [
|
|
179
|
+
"git_ignore_audit_git_unavailable",
|
|
180
|
+
"git_ignore_audit_no_input_paths",
|
|
181
|
+
"git_ignore_audit_max_paths_exceeded",
|
|
182
|
+
"git_ignore_audit_path_outside_root",
|
|
183
|
+
"git_ignore_audit_unreadable_path",
|
|
184
|
+
"git_ignore_audit_ignored_path",
|
|
185
|
+
"git_ignore_audit_tracked_path_matches_ignore"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"severity": { "enum": ["low", "medium", "high", "critical"] },
|
|
189
|
+
"message": { "type": "string" },
|
|
190
|
+
"path": { "type": "string" },
|
|
191
|
+
"source_path": { "$ref": "#/$defs/nullableString" },
|
|
192
|
+
"source_line": { "$ref": "#/$defs/nullableInteger" },
|
|
193
|
+
"pattern": { "$ref": "#/$defs/nullableString" },
|
|
194
|
+
"json_pointer": { "type": ["string", "null"] },
|
|
195
|
+
"metric": { "type": ["string", "null"] },
|
|
196
|
+
"actual": { "type": ["number", "null"] },
|
|
197
|
+
"expected": { "type": ["number", "null"] }
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|