@wefter/opencode 0.1.0 → 0.2.1
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 +22 -0
- package/README.md +23 -9
- package/docs/ARCHITECTURE.md +8 -12
- package/docs/INSTALLATION.md +2 -1
- package/docs/SAFETY_MODEL.md +1 -1
- package/docs/SELF_AUDIT.md +37 -0
- package/docs/WORKFLOWS.md +7 -3
- package/package.json +2 -2
- package/schemas/documentation-audit-profile.schema.json +9 -1
- package/schemas/product-shaping-config.schema.json +63 -0
- package/schemas/product-shaping-contract.schema.json +204 -0
- package/schemas/product-shaping-profile.schema.json +39 -0
- package/schemas/product-shaping-run-manifest.schema.json +103 -0
- package/schemas/wefter.config.schema.json +46 -15
- package/schemas/work-unit-config.schema.json +12 -5
- package/schemas/workflow-manifest.schema.json +10 -0
- package/src/cli/main.js +857 -19
- package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-audit-orchestrator.md.tmpl +14 -10
- package/src/workflows/documentation-audit/templates/opencode/agent/wefter-doc-auditor.md.tmpl +3 -0
- package/src/workflows/documentation-audit/templates/opencode/skills/documentation-audit/SKILL.md.tmpl +1 -0
- package/src/workflows/documentation-audit/templates/prompts/auditor-prompt.md +1 -0
- package/src/workflows/product-shaping/README.md +1241 -3
- package/src/workflows/product-shaping/compatibility.md +33 -0
- package/src/workflows/product-shaping/contracts/product-spec-contract.json +250 -0
- package/src/workflows/product-shaping/templates/default-config.json +34 -0
- package/src/workflows/product-shaping/templates/default-profile.json +48 -0
- package/src/workflows/product-shaping/templates/documentation-audit/workflow-self-audit-auditor-prompt.md +117 -0
- package/src/workflows/product-shaping/templates/documentation-audit-profile.json +80 -0
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-auditor.md.tmpl +22 -0
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-domain-modeler.md.tmpl +31 -0
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-intake-analyst.md.tmpl +31 -0
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-orchestrator.md.tmpl +48 -0
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-reference-researcher.md.tmpl +29 -0
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-release-planner.md.tmpl +34 -0
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-repairer.md.tmpl +25 -0
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-shaper.md.tmpl +31 -0
- package/src/workflows/product-shaping/templates/opencode/agent/wefter-product-validator.md.tmpl +23 -0
- package/src/workflows/product-shaping/templates/opencode/skills/product-shaping/SKILL.md.tmpl +45 -0
- package/src/workflows/product-shaping/templates/prompts/domain-modeler-prompt.md +27 -0
- package/src/workflows/product-shaping/templates/prompts/intake-prompt.md +30 -0
- package/src/workflows/product-shaping/templates/prompts/product-auditor-prompt.md +53 -0
- package/src/workflows/product-shaping/templates/prompts/product-repairer-prompt.md +25 -0
- package/src/workflows/product-shaping/templates/prompts/product-shaper-prompt.md +26 -0
- package/src/workflows/product-shaping/templates/prompts/product-validator-prompt.md +55 -0
- package/src/workflows/product-shaping/templates/prompts/reference-research-prompt.md +25 -0
- package/src/workflows/product-shaping/templates/prompts/release-planner-prompt.md +34 -0
- package/src/workflows/product-shaping/workflow.json +26 -3
- package/src/workflows/technical-shaping/README.md +2 -0
- package/src/workflows/technical-shaping/workflow.json +4 -0
|
@@ -0,0 +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
|
+
}
|
|
@@ -6,26 +6,57 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"$schema": { "type": "string" },
|
|
8
8
|
"version": { "const": 1 },
|
|
9
|
-
"workflowRoot": { "
|
|
10
|
-
"profilePath": { "
|
|
11
|
-
"artifactRoot": { "
|
|
12
|
-
"templateRoot": { "
|
|
13
|
-
"processDocPath": { "
|
|
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
14
|
"runnerCommand": { "type": "string", "minLength": 1 },
|
|
15
15
|
"workflows": {
|
|
16
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
|
+
},
|
|
17
36
|
"additionalProperties": {
|
|
18
|
-
"
|
|
19
|
-
"required": ["status", "enabled"],
|
|
20
|
-
"properties": {
|
|
21
|
-
"status": { "enum": ["available", "planned"] },
|
|
22
|
-
"enabled": { "type": "boolean" },
|
|
23
|
-
"profilePath": { "type": "string", "minLength": 1 },
|
|
24
|
-
"configPath": { "type": "string", "minLength": 1 }
|
|
25
|
-
},
|
|
26
|
-
"additionalProperties": false
|
|
37
|
+
"$ref": "#/$defs/workflowSettings"
|
|
27
38
|
}
|
|
28
39
|
}
|
|
29
40
|
},
|
|
30
|
-
"additionalProperties": false
|
|
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
|
+
}
|
|
31
62
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"version": { "const": 1 },
|
|
8
8
|
"workflowName": { "const": "work-unit-implementation" },
|
|
9
9
|
"releaseId": { "type": "string", "minLength": 1 },
|
|
10
|
-
"workUnitsDocument": { "
|
|
10
|
+
"workUnitsDocument": { "$ref": "#/$defs/relativePath" },
|
|
11
11
|
"sourceDocs": {
|
|
12
12
|
"type": "object",
|
|
13
13
|
"required": ["include", "exclude"],
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
},
|
|
18
18
|
"additionalProperties": false
|
|
19
19
|
},
|
|
20
|
-
"runArtifactsRoot": { "
|
|
20
|
+
"runArtifactsRoot": { "$ref": "#/$defs/relativePath" },
|
|
21
21
|
"versionedArtifacts": {
|
|
22
22
|
"type": "object",
|
|
23
23
|
"required": ["executionRoot", "decisionLogRoot"],
|
|
24
24
|
"properties": {
|
|
25
|
-
"executionRoot": { "
|
|
26
|
-
"decisionLogRoot": { "
|
|
25
|
+
"executionRoot": { "$ref": "#/$defs/relativePath" },
|
|
26
|
+
"decisionLogRoot": { "$ref": "#/$defs/relativePath" }
|
|
27
27
|
},
|
|
28
28
|
"additionalProperties": false
|
|
29
29
|
},
|
|
@@ -40,5 +40,12 @@
|
|
|
40
40
|
"additionalProperties": false
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"additionalProperties": false
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"$defs": {
|
|
45
|
+
"relativePath": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"minLength": 1,
|
|
48
|
+
"pattern": "^(?![A-Za-z]:)(?![\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$))[^\r\n]+$"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
44
51
|
}
|
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
"summary": { "type": "string", "minLength": 1 },
|
|
11
11
|
"commands": {
|
|
12
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"],
|
|
13
23
|
"properties": {
|
|
14
24
|
"cli": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
15
25
|
"opencode": { "type": "array", "items": { "type": "string", "minLength": 1 } }
|