@lornatang/dsh-codex-security 0.1.8 → 0.1.9
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/CHANGELOG.md +135 -118
- package/README.md +196 -196
- package/README.zh.md +196 -196
- package/docs/ARCHITECTURE.md +59 -59
- package/docs/ARTIFACTS.md +49 -49
- package/docs/CODEX-COMPATIBILITY.md +17 -17
- package/docs/SPEC.md +43 -43
- package/docs/TOOLS.md +364 -364
- package/docs/VALIDATION.md +33 -33
- package/docs/superpowers/plans/2026-11-16-deep-scan.md +71 -71
- package/docs/superpowers/specs/2026-11-16-deep-scan-design.md +31 -31
- package/lib/constants.js +1 -1
- package/lib/git.js +2 -0
- package/lib/target.js +8 -2
- package/lib/types/constants.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/util.js +131 -10
- package/package.json +131 -131
- package/schemas/coverage.schema.json +136 -136
- package/skills/README.md +122 -122
- package/skills/assess-patch-risk/SKILL.md +10 -10
- package/skills/attack-path-analysis/SKILL.md +10 -10
- package/skills/deep-security-scan/SKILL.md +15 -15
- package/skills/define-security-policy/SKILL.md +10 -10
- package/skills/finding-discovery/SKILL.md +10 -10
- package/skills/fix-finding/SKILL.md +14 -14
- package/skills/propose-security-hardening/SKILL.md +10 -10
- package/skills/track-findings/SKILL.md +12 -12
- package/skills/validation/SKILL.md +10 -10
- package/skills/verify-fix/SKILL.md +14 -14
package/package.json
CHANGED
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@lornatang/dsh-codex-security",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Agent-native security review workbench for DeepSeek Harness, modeled on OpenAI codex-security: sealed scans, findings contract, deep-scan orchestration and SARIF/JSON export.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "Apache-2.0",
|
|
7
|
-
"author": "Lornatang",
|
|
8
|
-
"keywords": [
|
|
9
|
-
"deepseek-harness",
|
|
10
|
-
"dsh",
|
|
11
|
-
"dsh-plugin",
|
|
12
|
-
"security",
|
|
13
|
-
"code-security",
|
|
14
|
-
"appsec",
|
|
15
|
-
"sast",
|
|
16
|
-
"codex-security",
|
|
17
|
-
"security-scan",
|
|
18
|
-
"sarif"
|
|
19
|
-
],
|
|
20
|
-
"engines": {
|
|
21
|
-
"node": ">=22.19",
|
|
22
|
-
"dsh": "*"
|
|
23
|
-
},
|
|
24
|
-
"main": "lib/index.js",
|
|
25
|
-
"types": "lib/types/index.d.ts",
|
|
26
|
-
"exports": {
|
|
27
|
-
".": {
|
|
28
|
-
"types": "./lib/types/index.d.ts",
|
|
29
|
-
"default": "./lib/index.js"
|
|
30
|
-
},
|
|
31
|
-
"./client": {
|
|
32
|
-
"types": "./lib/types/client/index.d.ts",
|
|
33
|
-
"default": "./lib/client.js"
|
|
34
|
-
},
|
|
35
|
-
"./worker-preset": {
|
|
36
|
-
"types": "./lib/types/worker-preset.d.ts",
|
|
37
|
-
"default": "./lib/worker-preset.js"
|
|
38
|
-
},
|
|
39
|
-
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
40
|
-
"./package.json": "./package.json"
|
|
41
|
-
},
|
|
42
|
-
"files": [
|
|
43
|
-
"lib",
|
|
44
|
-
"cordis.patch.yml",
|
|
45
|
-
"skills",
|
|
46
|
-
"references",
|
|
47
|
-
"schemas",
|
|
48
|
-
"docs",
|
|
49
|
-
"examples",
|
|
50
|
-
"README.md",
|
|
51
|
-
"README.zh.md",
|
|
52
|
-
"CHANGELOG.md",
|
|
53
|
-
"LICENSE",
|
|
54
|
-
"NOTICE"
|
|
55
|
-
],
|
|
56
|
-
"scripts": {
|
|
57
|
-
"clean": "node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\"",
|
|
58
|
-
"build:host": "tsc -p tsconfig.json",
|
|
59
|
-
"build:client": "tsc -p tsconfig.client.json",
|
|
60
|
-
"build:bundle": "node scripts/bundle-client.mjs",
|
|
61
|
-
"build": "npm run clean && npm run build:host && npm run build:client && npm run build:bundle",
|
|
62
|
-
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.client.json --noEmit",
|
|
63
|
-
"test": "npm run build && node --test tests/*.test.mjs",
|
|
64
|
-
"prepack": "npm test"
|
|
65
|
-
},
|
|
66
|
-
"dsh": {
|
|
67
|
-
"bundle": {
|
|
68
|
-
"patch": "./cordis.patch.yml"
|
|
69
|
-
},
|
|
70
|
-
"client": {
|
|
71
|
-
"inject": [
|
|
72
|
-
"@deepseek-ai/dsh-client-ui-slots",
|
|
73
|
-
"@deepseek-ai/dsh-client-ui-settings"
|
|
74
|
-
],
|
|
75
|
-
"platform": "web"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"dependencies": {
|
|
79
|
-
"@deepseek-ai/schemastery": "~3.19.0",
|
|
80
|
-
"ajv": "^8.20.0",
|
|
81
|
-
"ajv-formats": "^3.0.1"
|
|
82
|
-
},
|
|
83
|
-
"peerDependencies": {
|
|
84
|
-
"@deepseek-ai/cordis": "~4.1.0",
|
|
85
|
-
"@deepseek-ai/dsh-skill": ">=0.2.2-rc.2 <0.3.0"
|
|
86
|
-
},
|
|
87
|
-
"devDependencies": {
|
|
88
|
-
"@deepseek-ai/dsh-agent-preset-registry": "0.2.2-rc.2",
|
|
89
|
-
"@deepseek-ai/dsh-skill": "0.2.2-rc.2",
|
|
90
|
-
"@deepseek-ai/dsh-subagent": "0.2.2-rc.2",
|
|
91
|
-
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.2-rc.2",
|
|
92
|
-
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.2",
|
|
93
|
-
"@deepseek-ai/dsh-tools": "0.2.2-rc.2",
|
|
94
|
-
"@types/node": "^22.18.0",
|
|
95
|
-
"@types/react": "^18.3.31",
|
|
96
|
-
"typescript": "^5.9.0"
|
|
97
|
-
},
|
|
98
|
-
"repository": {
|
|
99
|
-
"type": "git",
|
|
100
|
-
"url": "git+https://github.com/Lornatang/dsh-codex-security.git"
|
|
101
|
-
},
|
|
102
|
-
"homepage": "https://github.com/Lornatang/dsh-codex-security#readme",
|
|
103
|
-
"bugs": {
|
|
104
|
-
"url": "https://github.com/Lornatang/dsh-codex-security/issues"
|
|
105
|
-
},
|
|
106
|
-
"publishConfig": {
|
|
107
|
-
"access": "public"
|
|
108
|
-
},
|
|
109
|
-
"optionalDependencies": {
|
|
110
|
-
"@koromix/koffi-android-arm64": "3.3.8",
|
|
111
|
-
"@koromix/koffi-android-x64": "3.3.8",
|
|
112
|
-
"@koromix/koffi-darwin-arm64": "3.3.8",
|
|
113
|
-
"@koromix/koffi-darwin-x64": "3.3.8",
|
|
114
|
-
"@koromix/koffi-freebsd-arm64": "3.3.8",
|
|
115
|
-
"@koromix/koffi-freebsd-ia32": "3.3.8",
|
|
116
|
-
"@koromix/koffi-freebsd-x64": "3.3.8",
|
|
117
|
-
"@koromix/koffi-linux-arm": "3.3.8",
|
|
118
|
-
"@koromix/koffi-linux-arm64": "3.3.8",
|
|
119
|
-
"@koromix/koffi-linux-ia32": "3.3.8",
|
|
120
|
-
"@koromix/koffi-linux-loong64": "3.3.8",
|
|
121
|
-
"@koromix/koffi-linux-ppc64": "3.3.8",
|
|
122
|
-
"@koromix/koffi-linux-riscv64": "3.3.8",
|
|
123
|
-
"@koromix/koffi-linux-x64": "3.3.8",
|
|
124
|
-
"@koromix/koffi-openbsd-arm64": "3.3.8",
|
|
125
|
-
"@koromix/koffi-openbsd-ia32": "3.3.8",
|
|
126
|
-
"@koromix/koffi-openbsd-x64": "3.3.8",
|
|
127
|
-
"@koromix/koffi-win32-arm64": "3.3.8",
|
|
128
|
-
"@koromix/koffi-win32-ia32": "3.3.8",
|
|
129
|
-
"@koromix/koffi-win32-x64": "3.3.8"
|
|
130
|
-
}
|
|
131
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@lornatang/dsh-codex-security",
|
|
3
|
+
"version": "0.1.9",
|
|
4
|
+
"description": "Agent-native security review workbench for DeepSeek Harness, modeled on OpenAI codex-security: sealed scans, findings contract, deep-scan orchestration and SARIF/JSON export.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"author": "Lornatang",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"deepseek-harness",
|
|
10
|
+
"dsh",
|
|
11
|
+
"dsh-plugin",
|
|
12
|
+
"security",
|
|
13
|
+
"code-security",
|
|
14
|
+
"appsec",
|
|
15
|
+
"sast",
|
|
16
|
+
"codex-security",
|
|
17
|
+
"security-scan",
|
|
18
|
+
"sarif"
|
|
19
|
+
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=22.19",
|
|
22
|
+
"dsh": "*"
|
|
23
|
+
},
|
|
24
|
+
"main": "lib/index.js",
|
|
25
|
+
"types": "lib/types/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./lib/types/index.d.ts",
|
|
29
|
+
"default": "./lib/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./client": {
|
|
32
|
+
"types": "./lib/types/client/index.d.ts",
|
|
33
|
+
"default": "./lib/client.js"
|
|
34
|
+
},
|
|
35
|
+
"./worker-preset": {
|
|
36
|
+
"types": "./lib/types/worker-preset.d.ts",
|
|
37
|
+
"default": "./lib/worker-preset.js"
|
|
38
|
+
},
|
|
39
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
40
|
+
"./package.json": "./package.json"
|
|
41
|
+
},
|
|
42
|
+
"files": [
|
|
43
|
+
"lib",
|
|
44
|
+
"cordis.patch.yml",
|
|
45
|
+
"skills",
|
|
46
|
+
"references",
|
|
47
|
+
"schemas",
|
|
48
|
+
"docs",
|
|
49
|
+
"examples",
|
|
50
|
+
"README.md",
|
|
51
|
+
"README.zh.md",
|
|
52
|
+
"CHANGELOG.md",
|
|
53
|
+
"LICENSE",
|
|
54
|
+
"NOTICE"
|
|
55
|
+
],
|
|
56
|
+
"scripts": {
|
|
57
|
+
"clean": "node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\"",
|
|
58
|
+
"build:host": "tsc -p tsconfig.json",
|
|
59
|
+
"build:client": "tsc -p tsconfig.client.json",
|
|
60
|
+
"build:bundle": "node scripts/bundle-client.mjs",
|
|
61
|
+
"build": "npm run clean && npm run build:host && npm run build:client && npm run build:bundle",
|
|
62
|
+
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.client.json --noEmit",
|
|
63
|
+
"test": "npm run build && node --test tests/*.test.mjs",
|
|
64
|
+
"prepack": "npm test"
|
|
65
|
+
},
|
|
66
|
+
"dsh": {
|
|
67
|
+
"bundle": {
|
|
68
|
+
"patch": "./cordis.patch.yml"
|
|
69
|
+
},
|
|
70
|
+
"client": {
|
|
71
|
+
"inject": [
|
|
72
|
+
"@deepseek-ai/dsh-client-ui-slots",
|
|
73
|
+
"@deepseek-ai/dsh-client-ui-settings"
|
|
74
|
+
],
|
|
75
|
+
"platform": "web"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"dependencies": {
|
|
79
|
+
"@deepseek-ai/schemastery": "~3.19.0",
|
|
80
|
+
"ajv": "^8.20.0",
|
|
81
|
+
"ajv-formats": "^3.0.1"
|
|
82
|
+
},
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
85
|
+
"@deepseek-ai/dsh-skill": ">=0.2.2-rc.2 <0.3.0"
|
|
86
|
+
},
|
|
87
|
+
"devDependencies": {
|
|
88
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.2.2-rc.2",
|
|
89
|
+
"@deepseek-ai/dsh-skill": "0.2.2-rc.2",
|
|
90
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-rc.2",
|
|
91
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.2-rc.2",
|
|
92
|
+
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.2",
|
|
93
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.2",
|
|
94
|
+
"@types/node": "^22.18.0",
|
|
95
|
+
"@types/react": "^18.3.31",
|
|
96
|
+
"typescript": "^5.9.0"
|
|
97
|
+
},
|
|
98
|
+
"repository": {
|
|
99
|
+
"type": "git",
|
|
100
|
+
"url": "git+https://github.com/Lornatang/dsh-codex-security.git"
|
|
101
|
+
},
|
|
102
|
+
"homepage": "https://github.com/Lornatang/dsh-codex-security#readme",
|
|
103
|
+
"bugs": {
|
|
104
|
+
"url": "https://github.com/Lornatang/dsh-codex-security/issues"
|
|
105
|
+
},
|
|
106
|
+
"publishConfig": {
|
|
107
|
+
"access": "public"
|
|
108
|
+
},
|
|
109
|
+
"optionalDependencies": {
|
|
110
|
+
"@koromix/koffi-android-arm64": "3.3.8",
|
|
111
|
+
"@koromix/koffi-android-x64": "3.3.8",
|
|
112
|
+
"@koromix/koffi-darwin-arm64": "3.3.8",
|
|
113
|
+
"@koromix/koffi-darwin-x64": "3.3.8",
|
|
114
|
+
"@koromix/koffi-freebsd-arm64": "3.3.8",
|
|
115
|
+
"@koromix/koffi-freebsd-ia32": "3.3.8",
|
|
116
|
+
"@koromix/koffi-freebsd-x64": "3.3.8",
|
|
117
|
+
"@koromix/koffi-linux-arm": "3.3.8",
|
|
118
|
+
"@koromix/koffi-linux-arm64": "3.3.8",
|
|
119
|
+
"@koromix/koffi-linux-ia32": "3.3.8",
|
|
120
|
+
"@koromix/koffi-linux-loong64": "3.3.8",
|
|
121
|
+
"@koromix/koffi-linux-ppc64": "3.3.8",
|
|
122
|
+
"@koromix/koffi-linux-riscv64": "3.3.8",
|
|
123
|
+
"@koromix/koffi-linux-x64": "3.3.8",
|
|
124
|
+
"@koromix/koffi-openbsd-arm64": "3.3.8",
|
|
125
|
+
"@koromix/koffi-openbsd-ia32": "3.3.8",
|
|
126
|
+
"@koromix/koffi-openbsd-x64": "3.3.8",
|
|
127
|
+
"@koromix/koffi-win32-arm64": "3.3.8",
|
|
128
|
+
"@koromix/koffi-win32-ia32": "3.3.8",
|
|
129
|
+
"@koromix/koffi-win32-x64": "3.3.8"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "https://openai.com/codex-security/schemas/coverage.schema.json",
|
|
3
|
-
"title": "Codex Security scan coverage",
|
|
4
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"documentType": { "const": "codex-security.coverage" },
|
|
8
|
-
"schemaVersion": { "const": "1.0" },
|
|
9
|
-
"scanId": { "type": "string", "minLength": 1 },
|
|
10
|
-
"completeness": { "enum": ["complete", "partial", "unknown"] },
|
|
11
|
-
"mode": {
|
|
12
|
-
"enum": [
|
|
13
|
-
"repository",
|
|
14
|
-
"scoped_path",
|
|
15
|
-
"diff",
|
|
16
|
-
"commit",
|
|
17
|
-
"branch_diff",
|
|
18
|
-
"working_tree",
|
|
19
|
-
"deep_repository"
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
"inventoryStrategy": {
|
|
23
|
-
"enum": ["repository", "scoped_path", "diff", "directory", "custom"]
|
|
24
|
-
},
|
|
25
|
-
"includePaths": { "type": "array", "items": { "type": "string" } },
|
|
26
|
-
"excludePaths": { "type": "array", "items": { "type": "string" } },
|
|
27
|
-
"surfaces": {
|
|
28
|
-
"type": "array",
|
|
29
|
-
"items": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"properties": {
|
|
32
|
-
"id": { "type": "string", "minLength": 1 },
|
|
33
|
-
"label": { "type": "string", "minLength": 1 },
|
|
34
|
-
"disposition": {
|
|
35
|
-
"enum": [
|
|
36
|
-
"reported",
|
|
37
|
-
"no_issue_found",
|
|
38
|
-
"rejected",
|
|
39
|
-
"not_applicable",
|
|
40
|
-
"needs_follow_up"
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
"receiptRefs": {
|
|
44
|
-
"type": "array",
|
|
45
|
-
"items": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"minLength": 1,
|
|
48
|
-
"pattern": "^(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)artifacts/.+$"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"riskArea": { "type": "string", "minLength": 1 },
|
|
52
|
-
"notes": { "type": "string", "minLength": 1 }
|
|
53
|
-
},
|
|
54
|
-
"required": ["id", "label", "disposition", "receiptRefs"]
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"explicitExclusions": {
|
|
58
|
-
"type": "array",
|
|
59
|
-
"items": {
|
|
60
|
-
"type": "object",
|
|
61
|
-
"properties": {
|
|
62
|
-
"pattern": { "type": "string", "minLength": 1 },
|
|
63
|
-
"reason": { "type": "string", "minLength": 1 }
|
|
64
|
-
},
|
|
65
|
-
"required": ["pattern", "reason"]
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"deferred": {
|
|
69
|
-
"type": "array",
|
|
70
|
-
"items": {
|
|
71
|
-
"type": "object",
|
|
72
|
-
"properties": {
|
|
73
|
-
"id": { "type": "string", "minLength": 1 },
|
|
74
|
-
"reason": { "type": "string", "minLength": 1 },
|
|
75
|
-
"paths": {
|
|
76
|
-
"type": "array",
|
|
77
|
-
"items": {
|
|
78
|
-
"type": "string",
|
|
79
|
-
"minLength": 1,
|
|
80
|
-
"oneOf": [
|
|
81
|
-
{},
|
|
82
|
-
{
|
|
83
|
-
"type": "string",
|
|
84
|
-
"$comment": "invalidSealedDeferredPath",
|
|
85
|
-
"pattern": "^(?:/|[A-Za-z]:)|(?:^|/)\\.\\.(?:/|$)|[\\\\\\x00-\\x1f]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?:^|[^\\ud800-\\udbff])[\\udc00-\\udfff]"
|
|
86
|
-
}
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"surfaceIds": {
|
|
91
|
-
"type": "array",
|
|
92
|
-
"items": { "type": "string", "minLength": 1 }
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"required": ["id", "reason"]
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"resolvedDeferred": {
|
|
99
|
-
"type": "array",
|
|
100
|
-
"items": {
|
|
101
|
-
"type": "object",
|
|
102
|
-
"properties": {
|
|
103
|
-
"id": { "type": "string", "minLength": 1 },
|
|
104
|
-
"reason": { "type": "string", "minLength": 1 }
|
|
105
|
-
},
|
|
106
|
-
"required": ["id", "reason"],
|
|
107
|
-
"additionalProperties": false
|
|
108
|
-
},
|
|
109
|
-
"description": "Completed generic review tasks, with their saved IDs and completion reasons."
|
|
110
|
-
},
|
|
111
|
-
"openQuestions": {
|
|
112
|
-
"type": "array",
|
|
113
|
-
"items": {
|
|
114
|
-
"type": "object",
|
|
115
|
-
"properties": {
|
|
116
|
-
"question": { "type": "string", "minLength": 1 },
|
|
117
|
-
"followUpPrompt": { "type": "string", "minLength": 1 }
|
|
118
|
-
},
|
|
119
|
-
"required": ["question"]
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"required": [
|
|
124
|
-
"documentType",
|
|
125
|
-
"schemaVersion",
|
|
126
|
-
"scanId",
|
|
127
|
-
"mode",
|
|
128
|
-
"completeness",
|
|
129
|
-
"inventoryStrategy",
|
|
130
|
-
"includePaths",
|
|
131
|
-
"excludePaths",
|
|
132
|
-
"surfaces",
|
|
133
|
-
"explicitExclusions",
|
|
134
|
-
"deferred"
|
|
135
|
-
]
|
|
136
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://openai.com/codex-security/schemas/coverage.schema.json",
|
|
3
|
+
"title": "Codex Security scan coverage",
|
|
4
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"documentType": { "const": "codex-security.coverage" },
|
|
8
|
+
"schemaVersion": { "const": "1.0" },
|
|
9
|
+
"scanId": { "type": "string", "minLength": 1 },
|
|
10
|
+
"completeness": { "enum": ["complete", "partial", "unknown"] },
|
|
11
|
+
"mode": {
|
|
12
|
+
"enum": [
|
|
13
|
+
"repository",
|
|
14
|
+
"scoped_path",
|
|
15
|
+
"diff",
|
|
16
|
+
"commit",
|
|
17
|
+
"branch_diff",
|
|
18
|
+
"working_tree",
|
|
19
|
+
"deep_repository"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"inventoryStrategy": {
|
|
23
|
+
"enum": ["repository", "scoped_path", "diff", "directory", "custom"]
|
|
24
|
+
},
|
|
25
|
+
"includePaths": { "type": "array", "items": { "type": "string" } },
|
|
26
|
+
"excludePaths": { "type": "array", "items": { "type": "string" } },
|
|
27
|
+
"surfaces": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"id": { "type": "string", "minLength": 1 },
|
|
33
|
+
"label": { "type": "string", "minLength": 1 },
|
|
34
|
+
"disposition": {
|
|
35
|
+
"enum": [
|
|
36
|
+
"reported",
|
|
37
|
+
"no_issue_found",
|
|
38
|
+
"rejected",
|
|
39
|
+
"not_applicable",
|
|
40
|
+
"needs_follow_up"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"receiptRefs": {
|
|
44
|
+
"type": "array",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"minLength": 1,
|
|
48
|
+
"pattern": "^(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)artifacts/.+$"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"riskArea": { "type": "string", "minLength": 1 },
|
|
52
|
+
"notes": { "type": "string", "minLength": 1 }
|
|
53
|
+
},
|
|
54
|
+
"required": ["id", "label", "disposition", "receiptRefs"]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"explicitExclusions": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {
|
|
62
|
+
"pattern": { "type": "string", "minLength": 1 },
|
|
63
|
+
"reason": { "type": "string", "minLength": 1 }
|
|
64
|
+
},
|
|
65
|
+
"required": ["pattern", "reason"]
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"deferred": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"items": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"properties": {
|
|
73
|
+
"id": { "type": "string", "minLength": 1 },
|
|
74
|
+
"reason": { "type": "string", "minLength": 1 },
|
|
75
|
+
"paths": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"minLength": 1,
|
|
80
|
+
"oneOf": [
|
|
81
|
+
{},
|
|
82
|
+
{
|
|
83
|
+
"type": "string",
|
|
84
|
+
"$comment": "invalidSealedDeferredPath",
|
|
85
|
+
"pattern": "^(?:/|[A-Za-z]:)|(?:^|/)\\.\\.(?:/|$)|[\\\\\\x00-\\x1f]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?:^|[^\\ud800-\\udbff])[\\udc00-\\udfff]"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"surfaceIds": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"items": { "type": "string", "minLength": 1 }
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": ["id", "reason"]
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"resolvedDeferred": {
|
|
99
|
+
"type": "array",
|
|
100
|
+
"items": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"properties": {
|
|
103
|
+
"id": { "type": "string", "minLength": 1 },
|
|
104
|
+
"reason": { "type": "string", "minLength": 1 }
|
|
105
|
+
},
|
|
106
|
+
"required": ["id", "reason"],
|
|
107
|
+
"additionalProperties": false
|
|
108
|
+
},
|
|
109
|
+
"description": "Completed generic review tasks, with their saved IDs and completion reasons."
|
|
110
|
+
},
|
|
111
|
+
"openQuestions": {
|
|
112
|
+
"type": "array",
|
|
113
|
+
"items": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"question": { "type": "string", "minLength": 1 },
|
|
117
|
+
"followUpPrompt": { "type": "string", "minLength": 1 }
|
|
118
|
+
},
|
|
119
|
+
"required": ["question"]
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": [
|
|
124
|
+
"documentType",
|
|
125
|
+
"schemaVersion",
|
|
126
|
+
"scanId",
|
|
127
|
+
"mode",
|
|
128
|
+
"completeness",
|
|
129
|
+
"inventoryStrategy",
|
|
130
|
+
"includePaths",
|
|
131
|
+
"excludePaths",
|
|
132
|
+
"surfaces",
|
|
133
|
+
"explicitExclusions",
|
|
134
|
+
"deferred"
|
|
135
|
+
]
|
|
136
|
+
}
|