commitgate 0.1.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/AGENTS.template.md +48 -0
- package/LICENSE +21 -0
- package/README.md +224 -0
- package/bin/commitgate.mjs +21 -0
- package/bin/init.ts +328 -0
- package/package.json +62 -0
- package/req.config.json.sample +13 -0
- package/scripts/req/lib/adapters.ts +139 -0
- package/scripts/req/lib/config.ts +177 -0
- package/scripts/req/req-commit.ts +792 -0
- package/scripts/req/req-doctor.ts +526 -0
- package/scripts/req/req-new.ts +173 -0
- package/scripts/req/review-codex.ts +927 -0
- package/workflow/machine.schema.json +38 -0
- package/workflow/req.config.schema.json +21 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"additionalProperties": false,
|
|
4
|
+
"required": [
|
|
5
|
+
"machine_schema_version",
|
|
6
|
+
"review_base_sha",
|
|
7
|
+
"status",
|
|
8
|
+
"commit_approved",
|
|
9
|
+
"merge_ready",
|
|
10
|
+
"risk_level",
|
|
11
|
+
"review_kind",
|
|
12
|
+
"findings",
|
|
13
|
+
"next_action"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"machine_schema_version": { "type": "string", "enum": ["1.1"] },
|
|
17
|
+
"review_base_sha": { "type": "string" },
|
|
18
|
+
"status": { "type": "string", "enum": ["NEEDS_FIX", "STEP_COMPLETE", "COMPLETE"] },
|
|
19
|
+
"commit_approved": { "type": "string", "enum": ["yes", "no"] },
|
|
20
|
+
"merge_ready": { "type": "string", "enum": ["yes", "no"] },
|
|
21
|
+
"risk_level": { "type": "string", "enum": ["LOW", "HIGH"] },
|
|
22
|
+
"review_kind": { "type": "string", "enum": ["design", "phase"] },
|
|
23
|
+
"findings": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["severity", "detail", "file"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"severity": { "type": "string", "enum": ["P1", "P2", "P3"] },
|
|
31
|
+
"detail": { "type": "string" },
|
|
32
|
+
"file": { "type": ["string", "null"] }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"next_action": { "type": "string" }
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"additionalProperties": false,
|
|
4
|
+
"properties": {
|
|
5
|
+
"ticketRoot": { "type": "string", "minLength": 1 },
|
|
6
|
+
"schemaPath": { "type": "string", "minLength": 1 },
|
|
7
|
+
"handoffPath": { "type": ["string", "null"] },
|
|
8
|
+
"branchPrefix": { "type": "string", "minLength": 1 },
|
|
9
|
+
"packageManager": { "type": "string", "enum": ["pnpm", "npm", "yarn"] },
|
|
10
|
+
"granularityMaxFiles": { "type": "integer", "minimum": 1 },
|
|
11
|
+
"designDocs": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"additionalProperties": false,
|
|
14
|
+
"properties": {
|
|
15
|
+
"requirement": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$" },
|
|
16
|
+
"design": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$" },
|
|
17
|
+
"plan": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$" }
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|