vibe-coding-master 0.7.38 → 0.7.40
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/README.md +12 -6
- package/dist/backend/adapters/claude-adapter.js +1 -0
- package/dist/backend/api/artifact-routes.js +72 -1
- package/dist/backend/api/runtime-state-routes.js +17 -5
- package/dist/backend/api/task-routes.js +6 -0
- package/dist/backend/api/workflow-control-routes.js +56 -0
- package/dist/backend/cli/install-vcm-harness.js +46 -22
- package/dist/backend/server.js +21 -5
- package/dist/backend/services/artifact-service.js +309 -5
- package/dist/backend/services/auto-memory-service.js +2 -2
- package/dist/backend/services/code-intelligence-service.js +5 -5
- package/dist/backend/services/gate-review-service.js +81 -33
- package/dist/backend/services/harness-feedback-service.js +11 -4
- package/dist/backend/services/harness-service.js +42 -26
- package/dist/backend/services/message-service.js +105 -37
- package/dist/backend/services/status-service.js +6 -0
- package/dist/backend/services/workflow-control-service.js +854 -0
- package/dist/backend/templates/handoff.js +158 -3
- package/dist/backend/templates/harness/architect-agent.js +3 -3
- package/dist/backend/templates/harness/check-scaffold-ledger.js +105 -39
- package/dist/backend/templates/harness/claude-root.js +9 -1
- package/dist/backend/templates/harness/coder-agent.js +2 -3
- package/dist/backend/templates/harness/coder-worker-agent.js +1 -1
- package/dist/backend/templates/harness/gate-review.js +4 -5
- package/dist/backend/templates/harness/harness-engineer-agent.js +18 -1
- package/dist/backend/templates/harness/project-manager-agent.js +3 -2
- package/dist/backend/templates/harness/tester-agent.js +1 -0
- package/dist/backend/templates/harness/vcm-architecture-interview-skill.js +5 -0
- package/dist/backend/templates/harness/vcm-code-navigation-skill.js +7 -6
- package/dist/backend/templates/harness/vcm-final-acceptance-skill.js +2 -2
- package/dist/backend/templates/harness/vcm-long-running-validation-skill.js +4 -2
- package/dist/backend/templates/harness/vcm-propose-memory-skill.js +4 -2
- package/dist/backend/templates/harness/vcm-report-harness-issue-skill.js +2 -1
- package/dist/backend/templates/harness/vcm-route-message-skill.js +4 -7
- package/dist/backend/templates/harness/vcm-task-state-skill.js +2 -13
- package/dist/backend/templates/harness/vcm-workflow-review-skill.js +62 -0
- package/dist/backend/templates/message-envelope.js +4 -4
- package/dist/shared/types/workflow.js +7 -1
- package/dist/shared/validation/artifact-check.js +99 -95
- package/dist/shared/validation/artifact-contract.js +9 -0
- package/dist/shared/validation/artifact-registry.js +211 -0
- package/dist-frontend/assets/{index-VillnFRo.js → index-Bocc2DWF.js} +34 -34
- package/dist-frontend/assets/{index-CXSOe-NN.css → index-C_XHGNBD.css} +1 -1
- package/dist-frontend/index.html +2 -2
- package/package.json +1 -1
- package/scripts/harness-tools/run-long-check +38 -8
- package/scripts/harness-tools/vcm-artifact +148 -0
- package/scripts/harness-tools/vcm-bash-guard +42 -47
- package/scripts/harness-tools/watch-job +58 -4
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
export const ARTIFACT_DEFINITIONS = [
|
|
2
|
+
{
|
|
3
|
+
kind: "architecture-brief",
|
|
4
|
+
fileName: "architecture-brief.md",
|
|
5
|
+
owner: "architect",
|
|
6
|
+
requiredHeadings: [
|
|
7
|
+
"Accepted Outcome",
|
|
8
|
+
"Confirmed User Decisions",
|
|
9
|
+
"Existing Constraints",
|
|
10
|
+
"Unresolved User Decisions",
|
|
11
|
+
"User Confirmation"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
kind: "architecture-evidence",
|
|
16
|
+
fileName: "architecture-evidence.md",
|
|
17
|
+
owner: "architect",
|
|
18
|
+
requiredHeadings: [
|
|
19
|
+
"Planning Boundary",
|
|
20
|
+
"Entry Points And Behavior Paths",
|
|
21
|
+
"State And Lifecycle",
|
|
22
|
+
"Callers And Consumers",
|
|
23
|
+
"Existing Assumptions",
|
|
24
|
+
"Related Class Inventories",
|
|
25
|
+
"External Boundaries",
|
|
26
|
+
"Code And Docs Conflicts",
|
|
27
|
+
"Evidence Commands"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
kind: "planning-progress",
|
|
32
|
+
fileName: "planning-progress.md",
|
|
33
|
+
owner: "architect",
|
|
34
|
+
requiredHeadings: ["Planning Steps"]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
kind: "architecture-plan",
|
|
38
|
+
fileName: "architecture-plan.md",
|
|
39
|
+
owner: "architect",
|
|
40
|
+
requiredHeadings: [
|
|
41
|
+
"Accepted Scope",
|
|
42
|
+
"Current Code Reality",
|
|
43
|
+
"Planning Boundary",
|
|
44
|
+
"Code Reading Evidence",
|
|
45
|
+
"Existing Behavior Trace",
|
|
46
|
+
"Code / Docs Conflicts",
|
|
47
|
+
"Architecture Decision",
|
|
48
|
+
"Changed Behavior Flow",
|
|
49
|
+
"Ownership",
|
|
50
|
+
"Data Flow",
|
|
51
|
+
"Lifecycle",
|
|
52
|
+
"Boundaries",
|
|
53
|
+
"Invariants",
|
|
54
|
+
"Failure Model",
|
|
55
|
+
"Decision Rationale",
|
|
56
|
+
"Module/File Plan",
|
|
57
|
+
"Public Surface Impact",
|
|
58
|
+
"Scaffold Manifest",
|
|
59
|
+
"Scaffold Build Evidence",
|
|
60
|
+
"Tester Coverage Hints",
|
|
61
|
+
"Docs Impact",
|
|
62
|
+
"Known Risks",
|
|
63
|
+
"Coder Handoff Notes"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
kind: "known-issues",
|
|
68
|
+
fileName: "known-issues.md",
|
|
69
|
+
owner: "architect",
|
|
70
|
+
requiredHeadings: ["Task Issues", "Escalation To Docs"]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
kind: "coder-completion",
|
|
74
|
+
fileName: "coder-completion.md",
|
|
75
|
+
owner: "coder",
|
|
76
|
+
requiredHeadings: [
|
|
77
|
+
"Scaffold Completion",
|
|
78
|
+
"Changed Files",
|
|
79
|
+
"Private Helpers Added",
|
|
80
|
+
"Manifest Deviations",
|
|
81
|
+
"Generated Context",
|
|
82
|
+
"Baseline Tests Added Or Updated",
|
|
83
|
+
"L0/L1 Validation",
|
|
84
|
+
"Worker Results",
|
|
85
|
+
"Objective Failures"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
kind: "architect-debug",
|
|
90
|
+
fileName: "architect-debug.md",
|
|
91
|
+
owner: "architect",
|
|
92
|
+
requiredHeadings: [
|
|
93
|
+
"PM-Routed Failure",
|
|
94
|
+
"Confirmed Root Cause",
|
|
95
|
+
"Implementation",
|
|
96
|
+
"Changed Files And Public Surface",
|
|
97
|
+
"Baseline Tests",
|
|
98
|
+
"Diagnostic And L0/L1 Validation",
|
|
99
|
+
"L2/L3 Validation",
|
|
100
|
+
"Generated Context",
|
|
101
|
+
"Remaining Failure Evidence",
|
|
102
|
+
"Final Disposition"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
kind: "architecture-diagnosis",
|
|
107
|
+
fileName: "architecture-diagnosis.md",
|
|
108
|
+
owner: "architect",
|
|
109
|
+
requiredHeadings: [
|
|
110
|
+
"Diagnosis Boundary",
|
|
111
|
+
"Documents And Runtime Evidence",
|
|
112
|
+
"Code Reading Closure",
|
|
113
|
+
"Current Architecture",
|
|
114
|
+
"Previous Debug Failure",
|
|
115
|
+
"Failure Trace",
|
|
116
|
+
"Architecture Assessment",
|
|
117
|
+
"Required Architecture Direction",
|
|
118
|
+
"Implementation And Validation",
|
|
119
|
+
"Changed Files And Public Surface",
|
|
120
|
+
"Baseline Tests",
|
|
121
|
+
"Diagnostic And L0/L1 Validation",
|
|
122
|
+
"L2/L3 Validation",
|
|
123
|
+
"Generated Context",
|
|
124
|
+
"Commit",
|
|
125
|
+
"Final Disposition"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
kind: "test-report",
|
|
130
|
+
fileName: "test-report.md",
|
|
131
|
+
owner: "tester",
|
|
132
|
+
requiredHeadings: [
|
|
133
|
+
"Evidence Reviewed",
|
|
134
|
+
"Tests Added Or Updated",
|
|
135
|
+
"Coverage Mapping",
|
|
136
|
+
"Validation Progress",
|
|
137
|
+
"Completed Validation",
|
|
138
|
+
"Remaining Validation",
|
|
139
|
+
"L3 Coverage",
|
|
140
|
+
"Trigger Assessment",
|
|
141
|
+
"Affected End-To-End Flows",
|
|
142
|
+
"L3 Commands And Evidence",
|
|
143
|
+
"Not-Required Evidence",
|
|
144
|
+
"Commands Run Or Checked",
|
|
145
|
+
"Validation Results",
|
|
146
|
+
"Test Infrastructure",
|
|
147
|
+
"Affected Files",
|
|
148
|
+
"Boundary Evidence",
|
|
149
|
+
"Defect-Class Sweep",
|
|
150
|
+
"Repair Commit",
|
|
151
|
+
"Failed Expectations",
|
|
152
|
+
"Reproduction Steps",
|
|
153
|
+
"Skipped Checks With Reasons",
|
|
154
|
+
"Coverage Gaps",
|
|
155
|
+
"Blocking Validation Issues",
|
|
156
|
+
"User Approval Evidence"
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
kind: "docs-sync-report",
|
|
161
|
+
fileName: "docs-sync-report.md",
|
|
162
|
+
owner: "architect",
|
|
163
|
+
requiredHeadings: [
|
|
164
|
+
"Summary",
|
|
165
|
+
"Architecture Drift Check",
|
|
166
|
+
"Docs Updated",
|
|
167
|
+
"Docs Reviewed And Left Unchanged",
|
|
168
|
+
"Public Contract / Module Boundary Notes",
|
|
169
|
+
"Remaining Documentation Risks",
|
|
170
|
+
"Known Issues Disposition",
|
|
171
|
+
"Decision"
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
kind: "workflow-progress",
|
|
176
|
+
fileName: "workflow-progress.md",
|
|
177
|
+
owner: "project-manager",
|
|
178
|
+
requiredHeadings: [
|
|
179
|
+
"Dispatch History",
|
|
180
|
+
"Proposed Dispatch",
|
|
181
|
+
"User Override"
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
kind: "final-acceptance",
|
|
186
|
+
fileName: "final-acceptance.md",
|
|
187
|
+
owner: "project-manager",
|
|
188
|
+
requiredHeadings: [
|
|
189
|
+
"Decision",
|
|
190
|
+
"Evidence Reviewed",
|
|
191
|
+
"Scope Traceability",
|
|
192
|
+
"Validation Summary",
|
|
193
|
+
"Review And Docs Sync",
|
|
194
|
+
"Known Issues Disposition",
|
|
195
|
+
"Gate Review Gates",
|
|
196
|
+
"Cleanup Readiness",
|
|
197
|
+
"Final User Summary"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
];
|
|
201
|
+
const DEFINITION_BY_KIND = new Map(ARTIFACT_DEFINITIONS.map((definition) => [definition.kind, definition]));
|
|
202
|
+
export function getArtifactDefinition(kind) {
|
|
203
|
+
const definition = DEFINITION_BY_KIND.get(kind);
|
|
204
|
+
if (!definition) {
|
|
205
|
+
throw new Error(`Unknown artifact kind: ${kind}`);
|
|
206
|
+
}
|
|
207
|
+
return definition;
|
|
208
|
+
}
|
|
209
|
+
export function isArtifactKind(value) {
|
|
210
|
+
return DEFINITION_BY_KIND.has(value);
|
|
211
|
+
}
|