@wefter/opencode 0.2.0 → 0.3.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/CHANGELOG.md +43 -25
- package/LICENSE +21 -21
- package/README.md +128 -125
- package/bin/wefter.js +8 -8
- package/docs/ARCHITECTURE.md +75 -75
- package/docs/INSTALLATION.md +56 -47
- package/docs/ROADMAP.md +48 -0
- package/docs/SAFETY_MODEL.md +18 -17
- package/docs/SELF_AUDIT.md +37 -35
- package/docs/WORKFLOWS.md +17 -15
- package/package.json +45 -45
- package/schemas/documentation-audit-profile.schema.json +55 -55
- package/schemas/install-manifest.schema.json +42 -0
- package/schemas/product-shaping-config.schema.json +63 -63
- package/schemas/product-shaping-contract.schema.json +204 -204
- package/schemas/product-shaping-profile.schema.json +39 -39
- package/schemas/product-shaping-run-manifest.schema.json +103 -103
- package/schemas/run-manifest.schema.json +14 -14
- package/schemas/wefter.config.schema.json +62 -62
- package/schemas/work-unit-config.schema.json +51 -44
- package/schemas/work-unit-profile.schema.json +38 -38
- package/schemas/work-unit-review-result.schema.json +13 -13
- package/schemas/workflow-manifest.schema.json +31 -21
- package/src/cli/main.js +2937 -2646
- package/src/workflows/documentation-audit/README.md +37 -37
- package/src/workflows/documentation-audit/templates/README.md.tmpl +47 -47
- package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-consolidator.md.tmpl +27 -27
- package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-orchestrator.md.tmpl +69 -65
- package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-profile-builder.md.tmpl +58 -58
- package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-validator.md.tmpl +26 -26
- package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-auditor.md.tmpl +31 -28
- package/src/workflows/documentation-audit/templates/opencode/skills/documentation-audit/SKILL.md.tmpl +39 -38
- package/src/workflows/documentation-audit/templates/prompts/auditor-prompt.md +98 -97
- package/src/workflows/documentation-audit/templates/prompts/consolidator-prompt.md +84 -84
- package/src/workflows/documentation-audit/templates/prompts/validator-prompt.md +92 -92
- package/src/workflows/documentation-audit/workflow.json +24 -24
- package/src/workflows/documentation-repair/README.md +11 -11
- package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repair-orchestrator.md.tmpl +33 -33
- package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repair-planner.md.tmpl +17 -17
- package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repair-reviewer.md.tmpl +17 -17
- package/src/workflows/documentation-repair/templates/opencode/agent/wefter-doc-repairer.md.tmpl +14 -14
- package/src/workflows/documentation-repair/templates/opencode/skills/documentation-repair/SKILL.md.tmpl +17 -17
- package/src/workflows/documentation-repair/templates/prompts/repair-apply-prompt.md +43 -43
- package/src/workflows/documentation-repair/templates/prompts/repair-plan-prompt.md +73 -73
- package/src/workflows/documentation-repair/templates/prompts/repair-review-prompt.md +47 -47
- package/src/workflows/documentation-repair/workflow.json +10 -10
- package/src/workflows/product-shaping/README.md +1245 -1245
- package/src/workflows/product-shaping/compatibility.md +33 -33
- package/src/workflows/product-shaping/contracts/product-spec-contract.json +250 -250
- package/src/workflows/product-shaping/templates/default-config.json +34 -34
- package/src/workflows/product-shaping/templates/default-profile.json +48 -48
- package/src/workflows/product-shaping/templates/documentation-audit/workflow-self-audit-auditor-prompt.md +117 -116
- package/src/workflows/product-shaping/templates/documentation-audit-profile.json +80 -80
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-auditor.md.tmpl +22 -22
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-domain-modeler.md.tmpl +31 -31
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-intake-analyst.md.tmpl +31 -31
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-orchestrator.md.tmpl +48 -48
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-reference-researcher.md.tmpl +29 -29
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-release-planner.md.tmpl +34 -34
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-repairer.md.tmpl +25 -25
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-shaper.md.tmpl +31 -31
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-validator.md.tmpl +23 -23
- package/src/workflows/product-shaping/templates/opencode/skills/product-shaping/SKILL.md.tmpl +45 -45
- package/src/workflows/product-shaping/templates/prompts/domain-modeler-prompt.md +27 -27
- package/src/workflows/product-shaping/templates/prompts/intake-prompt.md +30 -30
- package/src/workflows/product-shaping/templates/prompts/product-auditor-prompt.md +53 -53
- package/src/workflows/product-shaping/templates/prompts/product-repairer-prompt.md +25 -25
- package/src/workflows/product-shaping/templates/prompts/product-shaper-prompt.md +26 -26
- package/src/workflows/product-shaping/templates/prompts/product-validator-prompt.md +55 -55
- package/src/workflows/product-shaping/templates/prompts/reference-research-prompt.md +25 -25
- package/src/workflows/product-shaping/templates/prompts/release-planner-prompt.md +34 -34
- package/src/workflows/product-shaping/workflow.json +33 -33
- package/src/workflows/technical-shaping/README.md +7 -5
- package/src/workflows/technical-shaping/workflow.json +14 -10
- package/src/workflows/work-unit-implementation/README.md +71 -71
- package/src/workflows/work-unit-implementation/templates/default-config.json +46 -46
- package/src/workflows/work-unit-implementation/templates/default-profile.json +57 -57
- package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-orchestrator.md.tmpl +62 -62
- package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-auditor.md.tmpl +26 -26
- package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-consolidator.md.tmpl +26 -26
- package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-repairer.md.tmpl +25 -25
- package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-plan-validator.md.tmpl +25 -25
- package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-planner.md.tmpl +27 -27
- package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-task-implementer.md.tmpl +30 -30
- package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-task-reviewer.md.tmpl +28 -28
- package/src/workflows/work-unit-implementation/templates/opencode/agent/wefter-work-unit-validator.md.tmpl +26 -26
- package/src/workflows/work-unit-implementation/templates/opencode/skills/work-unit-implementation/SKILL.md.tmpl +25 -25
- package/src/workflows/work-unit-implementation/templates/prompts/plan-auditor-prompt.md +89 -89
- package/src/workflows/work-unit-implementation/templates/prompts/plan-consolidator-prompt.md +64 -64
- package/src/workflows/work-unit-implementation/templates/prompts/plan-repairer-prompt.md +42 -42
- package/src/workflows/work-unit-implementation/templates/prompts/plan-validator-prompt.md +84 -84
- package/src/workflows/work-unit-implementation/templates/prompts/planner-prompt.md +150 -150
- package/src/workflows/work-unit-implementation/templates/prompts/task-implementation-prompt.md +57 -57
- package/src/workflows/work-unit-implementation/templates/prompts/task-review-prompt.md +69 -69
- package/src/workflows/work-unit-implementation/templates/prompts/work-unit-validator-prompt.md +50 -50
- package/src/workflows/work-unit-implementation/workflow.json +14 -14
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://wefter.dev/schemas/product-shaping-run-manifest.schema.json",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": ["version", "workflowId", "runId", "releaseId", "generatedAt", "configPath", "profilePath", "contractPath", "processDocPath", "specRoot", "counts", "paths", "outputs", "handoff", "gate", "prompts", "requiredFiles"],
|
|
6
|
-
"properties": {
|
|
7
|
-
"version": { "const": 1 },
|
|
8
|
-
"workflowId": { "const": "product-shaping" },
|
|
9
|
-
"runId": { "type": "string", "minLength": 1 },
|
|
10
|
-
"releaseId": { "type": "string", "minLength": 1 },
|
|
11
|
-
"generatedAt": { "type": "string", "format": "date-time" },
|
|
12
|
-
"configPath": { "$ref": "#/$defs/relativePath" },
|
|
13
|
-
"profilePath": { "$ref": "#/$defs/relativePath" },
|
|
14
|
-
"contractPath": { "$ref": "#/$defs/relativePath" },
|
|
15
|
-
"processDocPath": { "$ref": "#/$defs/relativePath" },
|
|
16
|
-
"specRoot": { "$ref": "#/$defs/relativePath" },
|
|
17
|
-
"counts": {
|
|
18
|
-
"type": "object",
|
|
19
|
-
"required": ["requiredFiles", "variants", "lenses"],
|
|
20
|
-
"properties": {
|
|
21
|
-
"requiredFiles": { "type": "integer", "minimum": 1 },
|
|
22
|
-
"variants": { "type": "integer", "minimum": 1 },
|
|
23
|
-
"lenses": { "type": "integer", "minimum": 1 }
|
|
24
|
-
},
|
|
25
|
-
"additionalProperties": false
|
|
26
|
-
},
|
|
27
|
-
"paths": {
|
|
28
|
-
"type": "object",
|
|
29
|
-
"required": ["runRoot", "prompts", "draft", "review", "validation", "final", "specRoot", "releaseRoot"],
|
|
30
|
-
"properties": {
|
|
31
|
-
"runRoot": { "$ref": "#/$defs/relativePath" },
|
|
32
|
-
"prompts": { "$ref": "#/$defs/relativePath" },
|
|
33
|
-
"draft": { "$ref": "#/$defs/relativePath" },
|
|
34
|
-
"review": { "$ref": "#/$defs/relativePath" },
|
|
35
|
-
"validation": { "$ref": "#/$defs/relativePath" },
|
|
36
|
-
"final": { "$ref": "#/$defs/relativePath" },
|
|
37
|
-
"specRoot": { "$ref": "#/$defs/relativePath" },
|
|
38
|
-
"releaseRoot": { "$ref": "#/$defs/relativePath" }
|
|
39
|
-
},
|
|
40
|
-
"additionalProperties": false
|
|
41
|
-
},
|
|
42
|
-
"outputs": {
|
|
43
|
-
"type": "object",
|
|
44
|
-
"required": ["adversarialReview", "finalValidation"],
|
|
45
|
-
"properties": {
|
|
46
|
-
"adversarialReview": { "$ref": "#/$defs/relativePath" },
|
|
47
|
-
"finalValidation": { "$ref": "#/$defs/relativePath" }
|
|
48
|
-
},
|
|
49
|
-
"additionalProperties": false
|
|
50
|
-
},
|
|
51
|
-
"handoff": {
|
|
52
|
-
"type": "object",
|
|
53
|
-
"required": ["deliverables"],
|
|
54
|
-
"properties": {
|
|
55
|
-
"deliverables": { "allOf": [{ "$ref": "#/$defs/relativePath" }, { "pattern": "^.+/DELIVERABLES\\.md$" }] }
|
|
56
|
-
},
|
|
57
|
-
"additionalProperties": false
|
|
58
|
-
},
|
|
59
|
-
"gate": {
|
|
60
|
-
"type": "object",
|
|
61
|
-
"required": ["status", "requireNoReleaseBlockingQuestions", "requireAdversarialReview", "requireFinalValidation", "readyDeliverableStatuses"],
|
|
62
|
-
"properties": {
|
|
63
|
-
"status": { "enum": ["pending", "passed", "failed"] },
|
|
64
|
-
"requireNoReleaseBlockingQuestions": { "type": "boolean" },
|
|
65
|
-
"requireAdversarialReview": { "type": "boolean" },
|
|
66
|
-
"requireFinalValidation": { "type": "boolean" },
|
|
67
|
-
"readyDeliverableStatuses": {
|
|
68
|
-
"type": "array",
|
|
69
|
-
"minItems": 1,
|
|
70
|
-
"items": { "const": "ready" }
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"additionalProperties": false
|
|
74
|
-
},
|
|
75
|
-
"requiredFiles": {
|
|
76
|
-
"type": "array",
|
|
77
|
-
"minItems": 1,
|
|
78
|
-
"items": {
|
|
79
|
-
"type": "object",
|
|
80
|
-
"required": ["templatePath", "path", "fullPath"],
|
|
81
|
-
"properties": {
|
|
82
|
-
"templatePath": { "$ref": "#/$defs/relativePath" },
|
|
83
|
-
"path": { "$ref": "#/$defs/relativePath" },
|
|
84
|
-
"fullPath": { "$ref": "#/$defs/relativePath" }
|
|
85
|
-
},
|
|
86
|
-
"additionalProperties": false
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"prompts": {
|
|
90
|
-
"type": "array",
|
|
91
|
-
"minItems": 1,
|
|
92
|
-
"items": { "$ref": "#/$defs/relativePath" }
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"additionalProperties": false,
|
|
96
|
-
"$defs": {
|
|
97
|
-
"relativePath": {
|
|
98
|
-
"type": "string",
|
|
99
|
-
"minLength": 1,
|
|
100
|
-
"pattern": "^(?![A-Za-z]:)(?![\\\\/])(?!.*(?:^|/)\\.\\.(?:/|$))[^\\\\\r\n]+$"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://wefter.dev/schemas/product-shaping-run-manifest.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["version", "workflowId", "runId", "releaseId", "generatedAt", "configPath", "profilePath", "contractPath", "processDocPath", "specRoot", "counts", "paths", "outputs", "handoff", "gate", "prompts", "requiredFiles"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"version": { "const": 1 },
|
|
8
|
+
"workflowId": { "const": "product-shaping" },
|
|
9
|
+
"runId": { "type": "string", "minLength": 1 },
|
|
10
|
+
"releaseId": { "type": "string", "minLength": 1 },
|
|
11
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
12
|
+
"configPath": { "$ref": "#/$defs/relativePath" },
|
|
13
|
+
"profilePath": { "$ref": "#/$defs/relativePath" },
|
|
14
|
+
"contractPath": { "$ref": "#/$defs/relativePath" },
|
|
15
|
+
"processDocPath": { "$ref": "#/$defs/relativePath" },
|
|
16
|
+
"specRoot": { "$ref": "#/$defs/relativePath" },
|
|
17
|
+
"counts": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"required": ["requiredFiles", "variants", "lenses"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"requiredFiles": { "type": "integer", "minimum": 1 },
|
|
22
|
+
"variants": { "type": "integer", "minimum": 1 },
|
|
23
|
+
"lenses": { "type": "integer", "minimum": 1 }
|
|
24
|
+
},
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
},
|
|
27
|
+
"paths": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"required": ["runRoot", "prompts", "draft", "review", "validation", "final", "specRoot", "releaseRoot"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"runRoot": { "$ref": "#/$defs/relativePath" },
|
|
32
|
+
"prompts": { "$ref": "#/$defs/relativePath" },
|
|
33
|
+
"draft": { "$ref": "#/$defs/relativePath" },
|
|
34
|
+
"review": { "$ref": "#/$defs/relativePath" },
|
|
35
|
+
"validation": { "$ref": "#/$defs/relativePath" },
|
|
36
|
+
"final": { "$ref": "#/$defs/relativePath" },
|
|
37
|
+
"specRoot": { "$ref": "#/$defs/relativePath" },
|
|
38
|
+
"releaseRoot": { "$ref": "#/$defs/relativePath" }
|
|
39
|
+
},
|
|
40
|
+
"additionalProperties": false
|
|
41
|
+
},
|
|
42
|
+
"outputs": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"required": ["adversarialReview", "finalValidation"],
|
|
45
|
+
"properties": {
|
|
46
|
+
"adversarialReview": { "$ref": "#/$defs/relativePath" },
|
|
47
|
+
"finalValidation": { "$ref": "#/$defs/relativePath" }
|
|
48
|
+
},
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
},
|
|
51
|
+
"handoff": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"required": ["deliverables"],
|
|
54
|
+
"properties": {
|
|
55
|
+
"deliverables": { "allOf": [{ "$ref": "#/$defs/relativePath" }, { "pattern": "^.+/DELIVERABLES\\.md$" }] }
|
|
56
|
+
},
|
|
57
|
+
"additionalProperties": false
|
|
58
|
+
},
|
|
59
|
+
"gate": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"required": ["status", "requireNoReleaseBlockingQuestions", "requireAdversarialReview", "requireFinalValidation", "readyDeliverableStatuses"],
|
|
62
|
+
"properties": {
|
|
63
|
+
"status": { "enum": ["pending", "passed", "failed"] },
|
|
64
|
+
"requireNoReleaseBlockingQuestions": { "type": "boolean" },
|
|
65
|
+
"requireAdversarialReview": { "type": "boolean" },
|
|
66
|
+
"requireFinalValidation": { "type": "boolean" },
|
|
67
|
+
"readyDeliverableStatuses": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"minItems": 1,
|
|
70
|
+
"items": { "const": "ready" }
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"additionalProperties": false
|
|
74
|
+
},
|
|
75
|
+
"requiredFiles": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"minItems": 1,
|
|
78
|
+
"items": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"required": ["templatePath", "path", "fullPath"],
|
|
81
|
+
"properties": {
|
|
82
|
+
"templatePath": { "$ref": "#/$defs/relativePath" },
|
|
83
|
+
"path": { "$ref": "#/$defs/relativePath" },
|
|
84
|
+
"fullPath": { "$ref": "#/$defs/relativePath" }
|
|
85
|
+
},
|
|
86
|
+
"additionalProperties": false
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"prompts": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"minItems": 1,
|
|
92
|
+
"items": { "$ref": "#/$defs/relativePath" }
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"additionalProperties": false,
|
|
96
|
+
"$defs": {
|
|
97
|
+
"relativePath": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"minLength": 1,
|
|
100
|
+
"pattern": "^(?![A-Za-z]:)(?![\\\\/])(?!.*(?:^|/)\\.\\.(?:/|$))[^\\\\\r\n]+$"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://wefter.dev/schemas/run-manifest.schema.json",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": ["version", "runId", "generatedAt", "paths"],
|
|
6
|
-
"properties": {
|
|
7
|
-
"version": { "const": 1 },
|
|
8
|
-
"workflowId": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
|
|
9
|
-
"runId": { "type": "string", "minLength": 1 },
|
|
10
|
-
"generatedAt": { "type": "string", "format": "date-time" },
|
|
11
|
-
"paths": { "type": "object" }
|
|
12
|
-
},
|
|
13
|
-
"additionalProperties": true
|
|
14
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://wefter.dev/schemas/run-manifest.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["version", "runId", "generatedAt", "paths"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"version": { "const": 1 },
|
|
8
|
+
"workflowId": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
|
|
9
|
+
"runId": { "type": "string", "minLength": 1 },
|
|
10
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
11
|
+
"paths": { "type": "object" }
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": true
|
|
14
|
+
}
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://wefter.dev/schemas/wefter.config.schema.json",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": ["version", "workflowRoot", "profilePath", "artifactRoot", "templateRoot", "processDocPath", "runnerCommand", "workflows"],
|
|
6
|
-
"properties": {
|
|
7
|
-
"$schema": { "type": "string" },
|
|
8
|
-
"version": { "const": 1 },
|
|
9
|
-
"workflowRoot": { "$ref": "#/$defs/relativePath" },
|
|
10
|
-
"profilePath": { "$ref": "#/$defs/relativePath" },
|
|
11
|
-
"artifactRoot": { "$ref": "#/$defs/relativePath" },
|
|
12
|
-
"templateRoot": { "$ref": "#/$defs/relativePath" },
|
|
13
|
-
"processDocPath": { "$ref": "#/$defs/relativePath" },
|
|
14
|
-
"runnerCommand": { "type": "string", "minLength": 1 },
|
|
15
|
-
"workflows": {
|
|
16
|
-
"type": "object",
|
|
17
|
-
"properties": {
|
|
18
|
-
"product-shaping": {
|
|
19
|
-
"allOf": [
|
|
20
|
-
{ "$ref": "#/$defs/workflowSettings" },
|
|
21
|
-
{
|
|
22
|
-
"type": "object",
|
|
23
|
-
"required": ["status", "enabled", "specRoot", "runRoot", "configPath", "profilePath"],
|
|
24
|
-
"properties": {
|
|
25
|
-
"status": { "enum": ["available", "planned"] },
|
|
26
|
-
"enabled": { "type": "boolean", "default": true },
|
|
27
|
-
"specRoot": { "$ref": "#/$defs/relativePath", "default": ".wefter/specs" },
|
|
28
|
-
"runRoot": { "$ref": "#/$defs/relativePath", "default": ".wefter/runs/product-shaping" },
|
|
29
|
-
"configPath": { "$ref": "#/$defs/relativePath", "default": ".wefter/workflows/product-shaping/config.json" },
|
|
30
|
-
"profilePath": { "$ref": "#/$defs/relativePath", "default": ".wefter/workflows/product-shaping/profile.json" }
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"additionalProperties": {
|
|
37
|
-
"$ref": "#/$defs/workflowSettings"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"additionalProperties": false,
|
|
42
|
-
"$defs": {
|
|
43
|
-
"workflowSettings": {
|
|
44
|
-
"type": "object",
|
|
45
|
-
"required": ["status", "enabled"],
|
|
46
|
-
"properties": {
|
|
47
|
-
"status": { "enum": ["available", "planned"] },
|
|
48
|
-
"enabled": { "type": "boolean" },
|
|
49
|
-
"profilePath": { "$ref": "#/$defs/relativePath" },
|
|
50
|
-
"configPath": { "$ref": "#/$defs/relativePath" },
|
|
51
|
-
"specRoot": { "$ref": "#/$defs/relativePath" },
|
|
52
|
-
"runRoot": { "$ref": "#/$defs/relativePath" }
|
|
53
|
-
},
|
|
54
|
-
"additionalProperties": false
|
|
55
|
-
},
|
|
56
|
-
"relativePath": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"minLength": 1,
|
|
59
|
-
"pattern": "^(?![A-Za-z]:)(?![\\\\/])(?!.*(?:^|/)\\.\\.(?:/|$))[^\\\\\r\n]+$"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://wefter.dev/schemas/wefter.config.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["version", "workflowRoot", "profilePath", "artifactRoot", "templateRoot", "processDocPath", "runnerCommand", "workflows"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"$schema": { "type": "string" },
|
|
8
|
+
"version": { "const": 1 },
|
|
9
|
+
"workflowRoot": { "$ref": "#/$defs/relativePath" },
|
|
10
|
+
"profilePath": { "$ref": "#/$defs/relativePath" },
|
|
11
|
+
"artifactRoot": { "$ref": "#/$defs/relativePath" },
|
|
12
|
+
"templateRoot": { "$ref": "#/$defs/relativePath" },
|
|
13
|
+
"processDocPath": { "$ref": "#/$defs/relativePath" },
|
|
14
|
+
"runnerCommand": { "type": "string", "minLength": 1 },
|
|
15
|
+
"workflows": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"product-shaping": {
|
|
19
|
+
"allOf": [
|
|
20
|
+
{ "$ref": "#/$defs/workflowSettings" },
|
|
21
|
+
{
|
|
22
|
+
"type": "object",
|
|
23
|
+
"required": ["status", "enabled", "specRoot", "runRoot", "configPath", "profilePath"],
|
|
24
|
+
"properties": {
|
|
25
|
+
"status": { "enum": ["available", "planned"] },
|
|
26
|
+
"enabled": { "type": "boolean", "default": true },
|
|
27
|
+
"specRoot": { "$ref": "#/$defs/relativePath", "default": ".wefter/specs" },
|
|
28
|
+
"runRoot": { "$ref": "#/$defs/relativePath", "default": ".wefter/runs/product-shaping" },
|
|
29
|
+
"configPath": { "$ref": "#/$defs/relativePath", "default": ".wefter/workflows/product-shaping/config.json" },
|
|
30
|
+
"profilePath": { "$ref": "#/$defs/relativePath", "default": ".wefter/workflows/product-shaping/profile.json" }
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"additionalProperties": {
|
|
37
|
+
"$ref": "#/$defs/workflowSettings"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"$defs": {
|
|
43
|
+
"workflowSettings": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"required": ["status", "enabled"],
|
|
46
|
+
"properties": {
|
|
47
|
+
"status": { "enum": ["available", "planned"] },
|
|
48
|
+
"enabled": { "type": "boolean" },
|
|
49
|
+
"profilePath": { "$ref": "#/$defs/relativePath" },
|
|
50
|
+
"configPath": { "$ref": "#/$defs/relativePath" },
|
|
51
|
+
"specRoot": { "$ref": "#/$defs/relativePath" },
|
|
52
|
+
"runRoot": { "$ref": "#/$defs/relativePath" }
|
|
53
|
+
},
|
|
54
|
+
"additionalProperties": false
|
|
55
|
+
},
|
|
56
|
+
"relativePath": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"minLength": 1,
|
|
59
|
+
"pattern": "^(?![A-Za-z]:)(?![\\\\/])(?!.*(?:^|/)\\.\\.(?:/|$))[^\\\\\r\n]+$"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -1,44 +1,51 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://wefter.dev/schemas/work-unit-config.schema.json",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": ["version", "workflowName", "releaseId", "workUnitsDocument", "sourceDocs", "runArtifactsRoot", "versionedArtifacts", "defaultWorkUnitId", "defaultPlanAuditPassesPerLens", "gatePolicy"],
|
|
6
|
-
"properties": {
|
|
7
|
-
"version": { "const": 1 },
|
|
8
|
-
"workflowName": { "const": "work-unit-implementation" },
|
|
9
|
-
"releaseId": { "type": "string", "minLength": 1 },
|
|
10
|
-
"workUnitsDocument": { "
|
|
11
|
-
"sourceDocs": {
|
|
12
|
-
"type": "object",
|
|
13
|
-
"required": ["include", "exclude"],
|
|
14
|
-
"properties": {
|
|
15
|
-
"include": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
16
|
-
"exclude": { "type": "array", "items": { "type": "string", "minLength": 1 } }
|
|
17
|
-
},
|
|
18
|
-
"additionalProperties": false
|
|
19
|
-
},
|
|
20
|
-
"runArtifactsRoot": { "
|
|
21
|
-
"versionedArtifacts": {
|
|
22
|
-
"type": "object",
|
|
23
|
-
"required": ["executionRoot", "decisionLogRoot"],
|
|
24
|
-
"properties": {
|
|
25
|
-
"executionRoot": { "
|
|
26
|
-
"decisionLogRoot": { "
|
|
27
|
-
},
|
|
28
|
-
"additionalProperties": false
|
|
29
|
-
},
|
|
30
|
-
"defaultWorkUnitId": { "type": "string", "minLength": 1 },
|
|
31
|
-
"defaultPlanAuditPassesPerLens": { "type": "integer", "minimum": 1 },
|
|
32
|
-
"gatePolicy": {
|
|
33
|
-
"type": "object",
|
|
34
|
-
"required": ["mode", "structuralWorkUnits", "alwaysPauseOn"],
|
|
35
|
-
"properties": {
|
|
36
|
-
"mode": { "type": "string", "minLength": 1 },
|
|
37
|
-
"structuralWorkUnits": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
38
|
-
"alwaysPauseOn": { "type": "array", "items": { "type": "string", "minLength": 1 } }
|
|
39
|
-
},
|
|
40
|
-
"additionalProperties": false
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"additionalProperties": false
|
|
44
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://wefter.dev/schemas/work-unit-config.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["version", "workflowName", "releaseId", "workUnitsDocument", "sourceDocs", "runArtifactsRoot", "versionedArtifacts", "defaultWorkUnitId", "defaultPlanAuditPassesPerLens", "gatePolicy"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"version": { "const": 1 },
|
|
8
|
+
"workflowName": { "const": "work-unit-implementation" },
|
|
9
|
+
"releaseId": { "type": "string", "minLength": 1 },
|
|
10
|
+
"workUnitsDocument": { "$ref": "#/$defs/relativePath" },
|
|
11
|
+
"sourceDocs": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"required": ["include", "exclude"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"include": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
16
|
+
"exclude": { "type": "array", "items": { "type": "string", "minLength": 1 } }
|
|
17
|
+
},
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
},
|
|
20
|
+
"runArtifactsRoot": { "$ref": "#/$defs/relativePath" },
|
|
21
|
+
"versionedArtifacts": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"required": ["executionRoot", "decisionLogRoot"],
|
|
24
|
+
"properties": {
|
|
25
|
+
"executionRoot": { "$ref": "#/$defs/relativePath" },
|
|
26
|
+
"decisionLogRoot": { "$ref": "#/$defs/relativePath" }
|
|
27
|
+
},
|
|
28
|
+
"additionalProperties": false
|
|
29
|
+
},
|
|
30
|
+
"defaultWorkUnitId": { "type": "string", "minLength": 1 },
|
|
31
|
+
"defaultPlanAuditPassesPerLens": { "type": "integer", "minimum": 1 },
|
|
32
|
+
"gatePolicy": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"required": ["mode", "structuralWorkUnits", "alwaysPauseOn"],
|
|
35
|
+
"properties": {
|
|
36
|
+
"mode": { "type": "string", "minLength": 1 },
|
|
37
|
+
"structuralWorkUnits": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
38
|
+
"alwaysPauseOn": { "type": "array", "items": { "type": "string", "minLength": 1 } }
|
|
39
|
+
},
|
|
40
|
+
"additionalProperties": false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"$defs": {
|
|
45
|
+
"relativePath": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"minLength": 1,
|
|
48
|
+
"pattern": "^(?![A-Za-z]:)(?![\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$))[^\r\n]+$"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://wefter.dev/schemas/work-unit-profile.schema.json",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": ["version", "variants", "lenses"],
|
|
6
|
-
"properties": {
|
|
7
|
-
"version": { "const": 1 },
|
|
8
|
-
"variants": {
|
|
9
|
-
"type": "array",
|
|
10
|
-
"minItems": 1,
|
|
11
|
-
"items": {
|
|
12
|
-
"type": "object",
|
|
13
|
-
"required": ["id", "title", "instruction"],
|
|
14
|
-
"properties": {
|
|
15
|
-
"id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
|
|
16
|
-
"title": { "type": "string", "minLength": 1 },
|
|
17
|
-
"instruction": { "type": "string", "minLength": 1 }
|
|
18
|
-
},
|
|
19
|
-
"additionalProperties": false
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"lenses": {
|
|
23
|
-
"type": "array",
|
|
24
|
-
"minItems": 1,
|
|
25
|
-
"items": {
|
|
26
|
-
"type": "object",
|
|
27
|
-
"required": ["id", "title", "focus"],
|
|
28
|
-
"properties": {
|
|
29
|
-
"id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
|
|
30
|
-
"title": { "type": "string", "minLength": 1 },
|
|
31
|
-
"focus": { "type": "string", "minLength": 1 }
|
|
32
|
-
},
|
|
33
|
-
"additionalProperties": false
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"additionalProperties": false
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://wefter.dev/schemas/work-unit-profile.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["version", "variants", "lenses"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"version": { "const": 1 },
|
|
8
|
+
"variants": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"minItems": 1,
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"required": ["id", "title", "instruction"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
|
|
16
|
+
"title": { "type": "string", "minLength": 1 },
|
|
17
|
+
"instruction": { "type": "string", "minLength": 1 }
|
|
18
|
+
},
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"lenses": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"minItems": 1,
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"required": ["id", "title", "focus"],
|
|
28
|
+
"properties": {
|
|
29
|
+
"id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
|
|
30
|
+
"title": { "type": "string", "minLength": 1 },
|
|
31
|
+
"focus": { "type": "string", "minLength": 1 }
|
|
32
|
+
},
|
|
33
|
+
"additionalProperties": false
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"additionalProperties": false
|
|
38
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://wefter.dev/schemas/work-unit-review-result.schema.json",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": ["taskId", "result", "reviewIteration", "blockingFindings"],
|
|
6
|
-
"properties": {
|
|
7
|
-
"taskId": { "type": "string", "minLength": 1 },
|
|
8
|
-
"result": { "enum": ["Pass", "Needs Fix", "Blocked"] },
|
|
9
|
-
"reviewIteration": { "type": "integer", "minimum": 1 },
|
|
10
|
-
"blockingFindings": { "type": "array", "items": { "type": "string" } }
|
|
11
|
-
},
|
|
12
|
-
"additionalProperties": false
|
|
13
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://wefter.dev/schemas/work-unit-review-result.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["taskId", "result", "reviewIteration", "blockingFindings"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"taskId": { "type": "string", "minLength": 1 },
|
|
8
|
+
"result": { "enum": ["Pass", "Needs Fix", "Blocked"] },
|
|
9
|
+
"reviewIteration": { "type": "integer", "minimum": 1 },
|
|
10
|
+
"blockingFindings": { "type": "array", "items": { "type": "string" } }
|
|
11
|
+
},
|
|
12
|
+
"additionalProperties": false
|
|
13
|
+
}
|
|
@@ -1,21 +1,31 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://wefter.dev/schemas/workflow-manifest.schema.json",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": ["id", "status", "title", "summary", "commands"],
|
|
6
|
-
"properties": {
|
|
7
|
-
"id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
|
|
8
|
-
"status": { "enum": ["available", "planned"] },
|
|
9
|
-
"title": { "type": "string", "minLength": 1 },
|
|
10
|
-
"summary": { "type": "string", "minLength": 1 },
|
|
11
|
-
"commands": {
|
|
12
|
-
"type": "object",
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://wefter.dev/schemas/workflow-manifest.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["id", "status", "title", "summary", "commands"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
|
|
8
|
+
"status": { "enum": ["available", "planned"] },
|
|
9
|
+
"title": { "type": "string", "minLength": 1 },
|
|
10
|
+
"summary": { "type": "string", "minLength": 1 },
|
|
11
|
+
"commands": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"required": ["cli", "opencode"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"cli": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
16
|
+
"opencode": { "type": "array", "items": { "type": "string", "minLength": 1 } }
|
|
17
|
+
},
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
},
|
|
20
|
+
"plannedCommands": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"required": ["cli", "opencode"],
|
|
23
|
+
"properties": {
|
|
24
|
+
"cli": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
25
|
+
"opencode": { "type": "array", "items": { "type": "string", "minLength": 1 } }
|
|
26
|
+
},
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"additionalProperties": true
|
|
31
|
+
}
|