@duypham93/openkit 0.2.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/.opencode/README.md +47 -0
- package/.opencode/install-manifest.json +41 -0
- package/.opencode/lib/artifact-scaffolder.js +111 -0
- package/.opencode/lib/contract-consistency.js +218 -0
- package/.opencode/lib/parallel-execution-rules.js +261 -0
- package/.opencode/lib/runtime-paths.js +95 -0
- package/.opencode/lib/runtime-summary.js +82 -0
- package/.opencode/lib/state-guard.js +99 -0
- package/.opencode/lib/task-board-rules.js +375 -0
- package/.opencode/lib/work-item-store.js +280 -0
- package/.opencode/lib/workflow-state-controller.js +1739 -0
- package/.opencode/lib/workflow-state-rules.js +331 -0
- package/.opencode/opencode.json +93 -0
- package/.opencode/package.json +3 -0
- package/.opencode/tests/artifact-scaffolder.test.js +733 -0
- package/.opencode/tests/multi-work-item-runtime.test.js +369 -0
- package/.opencode/tests/parallel-execution-runtime.test.js +259 -0
- package/.opencode/tests/session-start-hook.test.js +357 -0
- package/.opencode/tests/state-guard.test.js +124 -0
- package/.opencode/tests/task-board-rules.test.js +204 -0
- package/.opencode/tests/work-item-store.test.js +380 -0
- package/.opencode/tests/workflow-behavior.test.js +149 -0
- package/.opencode/tests/workflow-contract-consistency.test.js +387 -0
- package/.opencode/tests/workflow-state-cli.test.js +1275 -0
- package/.opencode/tests/workflow-state-controller.test.js +1038 -0
- package/.opencode/work-items/feature-001/state.json +70 -0
- package/.opencode/work-items/index.json +13 -0
- package/.opencode/workflow-state.js +489 -0
- package/.opencode/workflow-state.json +70 -0
- package/AGENTS.md +265 -0
- package/README.md +401 -0
- package/agents/architect-agent.md +63 -0
- package/agents/ba-agent.md +56 -0
- package/agents/code-reviewer.md +77 -0
- package/agents/fullstack-agent.md +115 -0
- package/agents/master-orchestrator.md +60 -0
- package/agents/pm-agent.md +56 -0
- package/agents/qa-agent.md +124 -0
- package/agents/tech-lead-agent.md +60 -0
- package/assets/install-bundle/README.md +7 -0
- package/assets/install-bundle/opencode/README.md +11 -0
- package/assets/install-bundle/opencode/agents/ArchitectAgent.md +63 -0
- package/assets/install-bundle/opencode/agents/BAAgent.md +56 -0
- package/assets/install-bundle/opencode/agents/CodeReviewer.md +77 -0
- package/assets/install-bundle/opencode/agents/FullstackAgent.md +115 -0
- package/assets/install-bundle/opencode/agents/MasterOrchestrator.md +60 -0
- package/assets/install-bundle/opencode/agents/PMAgent.md +56 -0
- package/assets/install-bundle/opencode/agents/QAAgent.md +124 -0
- package/assets/install-bundle/opencode/agents/TechLeadAgent.md +60 -0
- package/assets/install-bundle/opencode/commands/brainstorm.md +44 -0
- package/assets/install-bundle/opencode/commands/delivery.md +45 -0
- package/assets/install-bundle/opencode/commands/execute-plan.md +44 -0
- package/assets/install-bundle/opencode/commands/migrate.md +61 -0
- package/assets/install-bundle/opencode/commands/quick-task.md +45 -0
- package/assets/install-bundle/opencode/commands/task.md +46 -0
- package/assets/install-bundle/opencode/commands/write-plan.md +50 -0
- package/assets/install-bundle/opencode/context/core/lane-selection.md +54 -0
- package/assets/install-bundle/opencode/skills/brainstorming/SKILL.md +51 -0
- package/assets/install-bundle/opencode/skills/code-review/SKILL.md +48 -0
- package/assets/install-bundle/opencode/skills/subagent-driven-development/SKILL.md +79 -0
- package/assets/install-bundle/opencode/skills/systematic-debugging/SKILL.md +61 -0
- package/assets/install-bundle/opencode/skills/test-driven-development/SKILL.md +48 -0
- package/assets/install-bundle/opencode/skills/using-skills/SKILL.md +39 -0
- package/assets/install-bundle/opencode/skills/verification-before-completion/SKILL.md +137 -0
- package/assets/install-bundle/opencode/skills/writing-plans/SKILL.md +68 -0
- package/assets/install-bundle/opencode/skills/writing-specs/SKILL.md +47 -0
- package/assets/opencode.json.template +11 -0
- package/assets/openkit-install.json.template +19 -0
- package/bin/openkit.js +9 -0
- package/commands/brainstorm.md +44 -0
- package/commands/delivery.md +45 -0
- package/commands/execute-plan.md +44 -0
- package/commands/migrate.md +61 -0
- package/commands/quick-task.md +45 -0
- package/commands/task.md +46 -0
- package/commands/write-plan.md +50 -0
- package/context/core/approval-gates.md +146 -0
- package/context/core/code-quality.md +42 -0
- package/context/core/issue-routing.md +85 -0
- package/context/core/lane-selection.md +54 -0
- package/context/core/project-config.md +143 -0
- package/context/core/session-resume.md +85 -0
- package/context/core/workflow-state-schema.md +224 -0
- package/context/core/workflow.md +442 -0
- package/context/navigation.md +94 -0
- package/docs/adr/README.md +6 -0
- package/docs/architecture/2026-03-20-task-intake-dashboard.md +54 -0
- package/docs/architecture/README.md +7 -0
- package/docs/briefs/2026-03-20-task-intake-dashboard.md +48 -0
- package/docs/briefs/README.md +7 -0
- package/docs/governance/README.md +25 -0
- package/docs/governance/adr-policy.md +27 -0
- package/docs/governance/definition-of-done.md +17 -0
- package/docs/governance/naming-conventions.md +21 -0
- package/docs/governance/severity-levels.md +12 -0
- package/docs/maintainer/README.md +51 -0
- package/docs/operations/README.md +79 -0
- package/docs/operations/internal-records/2026-03-24-release-checklist.md +79 -0
- package/docs/operations/internal-records/2026-03-24-simplified-install-ux.md +36 -0
- package/docs/operations/internal-records/README.md +18 -0
- package/docs/operations/runbooks/README.md +23 -0
- package/docs/operations/runbooks/openkit-daily-usage.md +288 -0
- package/docs/operations/runbooks/workflow-state-smoke-tests.md +302 -0
- package/docs/operator/README.md +50 -0
- package/docs/plans/2026-03-20-task-intake-dashboard.md +49 -0
- package/docs/plans/2026-03-21-openkit-full-delivery-multi-task-runtime.md +521 -0
- package/docs/plans/2026-03-23-openkit-global-install-runtime.md +157 -0
- package/docs/plans/README.md +7 -0
- package/docs/qa/2026-03-20-task-intake-dashboard.md +41 -0
- package/docs/qa/README.md +7 -0
- package/docs/specs/2026-03-20-task-intake-dashboard.md +50 -0
- package/docs/specs/2026-03-21-openkit-full-delivery-multi-task-runtime.md +462 -0
- package/docs/specs/README.md +7 -0
- package/docs/templates/README.md +36 -0
- package/docs/templates/adr-template.md +18 -0
- package/docs/templates/architecture-template.md +31 -0
- package/docs/templates/implementation-plan-template.md +32 -0
- package/docs/templates/migration-baseline-checklist.md +48 -0
- package/docs/templates/migration-plan-template.md +52 -0
- package/docs/templates/migration-report-template.md +74 -0
- package/docs/templates/migration-verify-checklist.md +39 -0
- package/docs/templates/product-brief-template.md +32 -0
- package/docs/templates/qa-report-template.md +37 -0
- package/docs/templates/quick-task-template.md +36 -0
- package/docs/templates/spec-template.md +31 -0
- package/hooks/hooks.json +16 -0
- package/hooks/session-start +162 -0
- package/package.json +24 -0
- package/registry.json +328 -0
- package/skills/brainstorming/SKILL.md +51 -0
- package/skills/code-review/SKILL.md +48 -0
- package/skills/subagent-driven-development/SKILL.md +79 -0
- package/skills/systematic-debugging/SKILL.md +61 -0
- package/skills/test-driven-development/SKILL.md +48 -0
- package/skills/using-skills/SKILL.md +39 -0
- package/skills/verification-before-completion/SKILL.md +137 -0
- package/skills/writing-plans/SKILL.md +68 -0
- package/skills/writing-specs/SKILL.md +47 -0
- package/src/audit/vietnamese-detection.js +259 -0
- package/src/cli/commands/detect-vietnamese.js +24 -0
- package/src/cli/commands/doctor.js +33 -0
- package/src/cli/commands/help.js +33 -0
- package/src/cli/commands/init.js +25 -0
- package/src/cli/commands/install-global.js +26 -0
- package/src/cli/commands/install.js +25 -0
- package/src/cli/commands/run.js +63 -0
- package/src/cli/commands/uninstall.js +32 -0
- package/src/cli/commands/upgrade.js +25 -0
- package/src/cli/conflict-output.js +19 -0
- package/src/cli/index.js +56 -0
- package/src/global/doctor.js +101 -0
- package/src/global/ensure-install.js +32 -0
- package/src/global/install-state.js +73 -0
- package/src/global/launcher.js +51 -0
- package/src/global/materialize.js +123 -0
- package/src/global/paths.js +85 -0
- package/src/global/uninstall.js +25 -0
- package/src/global/workspace-state.js +63 -0
- package/src/install/asset-manifest.js +284 -0
- package/src/install/conflicts.js +43 -0
- package/src/install/discovery.js +138 -0
- package/src/install/install-state.js +136 -0
- package/src/install/materialize.js +158 -0
- package/src/install/merge-policy.js +145 -0
- package/src/runtime/doctor.js +281 -0
- package/src/runtime/launcher.js +49 -0
- package/src/runtime/opencode-layering.js +135 -0
- package/src/runtime/openkit-managed-summary.js +27 -0
- package/tests/cli/openkit-cli.test.js +417 -0
- package/tests/global/doctor.test.js +130 -0
- package/tests/global/ensure-install.test.js +105 -0
- package/tests/install/discovery.test.js +124 -0
- package/tests/install/install-state.test.js +346 -0
- package/tests/install/materialize.test.js +244 -0
- package/tests/install/merge-policy.test.js +177 -0
- package/tests/runtime/doctor.test.js +430 -0
- package/tests/runtime/launcher.test.js +230 -0
- package/tests/runtime/module-boundary.test.js +16 -0
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
const QUICK_STAGE_SEQUENCE = [
|
|
2
|
+
"quick_intake",
|
|
3
|
+
"quick_plan",
|
|
4
|
+
"quick_build",
|
|
5
|
+
"quick_verify",
|
|
6
|
+
"quick_done",
|
|
7
|
+
]
|
|
8
|
+
|
|
9
|
+
const FULL_STAGE_SEQUENCE = [
|
|
10
|
+
"full_intake",
|
|
11
|
+
"full_brief",
|
|
12
|
+
"full_spec",
|
|
13
|
+
"full_architecture",
|
|
14
|
+
"full_plan",
|
|
15
|
+
"full_implementation",
|
|
16
|
+
"full_qa",
|
|
17
|
+
"full_done",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
const MIGRATION_STAGE_SEQUENCE = [
|
|
21
|
+
"migration_intake",
|
|
22
|
+
"migration_baseline",
|
|
23
|
+
"migration_strategy",
|
|
24
|
+
"migration_upgrade",
|
|
25
|
+
"migration_verify",
|
|
26
|
+
"migration_done",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
const STAGE_SEQUENCE = [...QUICK_STAGE_SEQUENCE, ...MIGRATION_STAGE_SEQUENCE, ...FULL_STAGE_SEQUENCE]
|
|
30
|
+
|
|
31
|
+
const STAGE_OWNERS = {
|
|
32
|
+
quick_intake: "MasterOrchestrator",
|
|
33
|
+
quick_plan: "MasterOrchestrator",
|
|
34
|
+
quick_build: "FullstackAgent",
|
|
35
|
+
quick_verify: "QAAgent",
|
|
36
|
+
quick_done: "MasterOrchestrator",
|
|
37
|
+
migration_intake: "MasterOrchestrator",
|
|
38
|
+
migration_baseline: "ArchitectAgent",
|
|
39
|
+
migration_strategy: "TechLeadAgent",
|
|
40
|
+
migration_upgrade: "FullstackAgent",
|
|
41
|
+
migration_verify: "QAAgent",
|
|
42
|
+
migration_done: "MasterOrchestrator",
|
|
43
|
+
full_intake: "MasterOrchestrator",
|
|
44
|
+
full_brief: "PMAgent",
|
|
45
|
+
full_spec: "BAAgent",
|
|
46
|
+
full_architecture: "ArchitectAgent",
|
|
47
|
+
full_plan: "TechLeadAgent",
|
|
48
|
+
full_implementation: "FullstackAgent",
|
|
49
|
+
full_qa: "QAAgent",
|
|
50
|
+
full_done: "MasterOrchestrator",
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const MODE_VALUES = ["quick", "migration", "full"]
|
|
54
|
+
|
|
55
|
+
const ROUTING_WORK_INTENT_VALUES = ["maintenance", "modernization", "feature"]
|
|
56
|
+
const ROUTING_BEHAVIOR_DELTA_VALUES = ["preserve", "extend", "redefine"]
|
|
57
|
+
const ROUTING_DOMINANT_UNCERTAINTY_VALUES = ["low_local", "compatibility", "product"]
|
|
58
|
+
const ROUTING_SCOPE_SHAPE_VALUES = ["local", "adjacent", "cross_boundary"]
|
|
59
|
+
|
|
60
|
+
const MODE_STAGE_SEQUENCES = {
|
|
61
|
+
quick: QUICK_STAGE_SEQUENCE,
|
|
62
|
+
migration: MIGRATION_STAGE_SEQUENCE,
|
|
63
|
+
full: FULL_STAGE_SEQUENCE,
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const MODE_APPROVAL_GATES = {
|
|
67
|
+
quick: ["quick_verified"],
|
|
68
|
+
migration: [
|
|
69
|
+
"baseline_to_strategy",
|
|
70
|
+
"strategy_to_upgrade",
|
|
71
|
+
"upgrade_to_verify",
|
|
72
|
+
"migration_verified",
|
|
73
|
+
],
|
|
74
|
+
full: [
|
|
75
|
+
"pm_to_ba",
|
|
76
|
+
"ba_to_architect",
|
|
77
|
+
"architect_to_tech_lead",
|
|
78
|
+
"tech_lead_to_fullstack",
|
|
79
|
+
"fullstack_to_qa",
|
|
80
|
+
"qa_to_done",
|
|
81
|
+
],
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const TRANSITION_GATES = {
|
|
85
|
+
quick: {
|
|
86
|
+
"quick_verify->quick_done": "quick_verified",
|
|
87
|
+
},
|
|
88
|
+
migration: {
|
|
89
|
+
"migration_baseline->migration_strategy": "baseline_to_strategy",
|
|
90
|
+
"migration_strategy->migration_upgrade": "strategy_to_upgrade",
|
|
91
|
+
"migration_upgrade->migration_verify": "upgrade_to_verify",
|
|
92
|
+
"migration_verify->migration_done": "migration_verified",
|
|
93
|
+
},
|
|
94
|
+
full: {
|
|
95
|
+
"full_brief->full_spec": "pm_to_ba",
|
|
96
|
+
"full_spec->full_architecture": "ba_to_architect",
|
|
97
|
+
"full_architecture->full_plan": "architect_to_tech_lead",
|
|
98
|
+
"full_plan->full_implementation": "tech_lead_to_fullstack",
|
|
99
|
+
"full_implementation->full_qa": "fullstack_to_qa",
|
|
100
|
+
"full_qa->full_done": "qa_to_done",
|
|
101
|
+
},
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const STATUS_VALUES = ["idle", "in_progress", "blocked", "done"]
|
|
105
|
+
|
|
106
|
+
const ARTIFACT_KINDS = ["task_card", "brief", "spec", "architecture", "plan", "migration_report", "qa_report", "adr"]
|
|
107
|
+
|
|
108
|
+
const ISSUE_TYPES = ["bug", "design_flaw", "requirement_gap"]
|
|
109
|
+
const ISSUE_SEVERITIES = ["critical", "high", "medium", "low"]
|
|
110
|
+
const ROOTED_IN_VALUES = ["implementation", "architecture", "requirements"]
|
|
111
|
+
|
|
112
|
+
const RECOMMENDED_OWNERS = {
|
|
113
|
+
bug: ["FullstackAgent"],
|
|
114
|
+
design_flaw: ["ArchitectAgent", "TechLeadAgent", "MasterOrchestrator"],
|
|
115
|
+
requirement_gap: ["BAAgent", "MasterOrchestrator"],
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
const ESCALATION_RETRY_THRESHOLD = 3
|
|
119
|
+
|
|
120
|
+
function createPendingGate() {
|
|
121
|
+
return {
|
|
122
|
+
status: "pending",
|
|
123
|
+
approved_by: null,
|
|
124
|
+
approved_at: null,
|
|
125
|
+
notes: null,
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function createEmptyApprovals(mode) {
|
|
130
|
+
return getApprovalGatesForMode(mode).reduce((accumulator, gate) => {
|
|
131
|
+
accumulator[gate] = createPendingGate()
|
|
132
|
+
return accumulator
|
|
133
|
+
}, {})
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function createEmptyArtifacts() {
|
|
137
|
+
return {
|
|
138
|
+
task_card: null,
|
|
139
|
+
brief: null,
|
|
140
|
+
spec: null,
|
|
141
|
+
architecture: null,
|
|
142
|
+
plan: null,
|
|
143
|
+
migration_report: null,
|
|
144
|
+
qa_report: null,
|
|
145
|
+
adr: [],
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function createDefaultRoutingProfile(mode, selectionReason) {
|
|
150
|
+
if (mode === "quick") {
|
|
151
|
+
return {
|
|
152
|
+
work_intent: "maintenance",
|
|
153
|
+
behavior_delta: "preserve",
|
|
154
|
+
dominant_uncertainty: "low_local",
|
|
155
|
+
scope_shape: "local",
|
|
156
|
+
selection_reason: selectionReason,
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (mode === "migration") {
|
|
161
|
+
return {
|
|
162
|
+
work_intent: "modernization",
|
|
163
|
+
behavior_delta: "preserve",
|
|
164
|
+
dominant_uncertainty: "compatibility",
|
|
165
|
+
scope_shape: "adjacent",
|
|
166
|
+
selection_reason: selectionReason,
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return {
|
|
171
|
+
work_intent: "feature",
|
|
172
|
+
behavior_delta: "extend",
|
|
173
|
+
dominant_uncertainty: "product",
|
|
174
|
+
scope_shape: "cross_boundary",
|
|
175
|
+
selection_reason: selectionReason,
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function getApprovalGatesForMode(mode) {
|
|
180
|
+
return MODE_APPROVAL_GATES[mode] ?? []
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function getInitialStageForMode(mode) {
|
|
184
|
+
const sequence = MODE_STAGE_SEQUENCES[mode] ?? []
|
|
185
|
+
return sequence[0] ?? null
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
function getModeForStage(stage) {
|
|
189
|
+
if (QUICK_STAGE_SEQUENCE.includes(stage)) {
|
|
190
|
+
return "quick"
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
if (FULL_STAGE_SEQUENCE.includes(stage)) {
|
|
194
|
+
return "full"
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
if (MIGRATION_STAGE_SEQUENCE.includes(stage)) {
|
|
198
|
+
return "migration"
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
return null
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
function getNextStage(mode, currentStage) {
|
|
205
|
+
const sequence = MODE_STAGE_SEQUENCES[mode] ?? []
|
|
206
|
+
const index = sequence.indexOf(currentStage)
|
|
207
|
+
if (index === -1 || index === sequence.length - 1) {
|
|
208
|
+
return null
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return sequence[index + 1]
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
function getTransitionGate(mode, fromStage, toStage) {
|
|
215
|
+
return TRANSITION_GATES[mode]?.[`${fromStage}->${toStage}`] ?? null
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function getReworkRoute(mode, issueType) {
|
|
219
|
+
if (mode === "quick") {
|
|
220
|
+
if (issueType === "bug") {
|
|
221
|
+
return {
|
|
222
|
+
mode: "quick",
|
|
223
|
+
stage: "quick_build",
|
|
224
|
+
owner: STAGE_OWNERS.quick_build,
|
|
225
|
+
escalate: false,
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
if (issueType === "design_flaw" || issueType === "requirement_gap") {
|
|
230
|
+
return {
|
|
231
|
+
mode: "full",
|
|
232
|
+
stage: "full_intake",
|
|
233
|
+
owner: STAGE_OWNERS.full_intake,
|
|
234
|
+
escalate: true,
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (mode === "full") {
|
|
240
|
+
if (issueType === "bug") {
|
|
241
|
+
return {
|
|
242
|
+
mode: "full",
|
|
243
|
+
stage: "full_implementation",
|
|
244
|
+
owner: STAGE_OWNERS.full_implementation,
|
|
245
|
+
escalate: false,
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
if (issueType === "design_flaw") {
|
|
250
|
+
return {
|
|
251
|
+
mode: "full",
|
|
252
|
+
stage: "full_architecture",
|
|
253
|
+
owner: STAGE_OWNERS.full_architecture,
|
|
254
|
+
escalate: false,
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
if (issueType === "requirement_gap") {
|
|
259
|
+
return {
|
|
260
|
+
mode: "full",
|
|
261
|
+
stage: "full_spec",
|
|
262
|
+
owner: STAGE_OWNERS.full_spec,
|
|
263
|
+
escalate: false,
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
if (mode === "migration") {
|
|
269
|
+
if (issueType === "bug") {
|
|
270
|
+
return {
|
|
271
|
+
mode: "migration",
|
|
272
|
+
stage: "migration_upgrade",
|
|
273
|
+
owner: STAGE_OWNERS.migration_upgrade,
|
|
274
|
+
escalate: false,
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
if (issueType === "design_flaw") {
|
|
279
|
+
return {
|
|
280
|
+
mode: "migration",
|
|
281
|
+
stage: "migration_strategy",
|
|
282
|
+
owner: STAGE_OWNERS.migration_strategy,
|
|
283
|
+
escalate: false,
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
if (issueType === "requirement_gap") {
|
|
288
|
+
return {
|
|
289
|
+
mode: "full",
|
|
290
|
+
stage: "full_intake",
|
|
291
|
+
owner: STAGE_OWNERS.full_intake,
|
|
292
|
+
escalate: true,
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
return null
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
module.exports = {
|
|
301
|
+
ARTIFACT_KINDS,
|
|
302
|
+
ESCALATION_RETRY_THRESHOLD,
|
|
303
|
+
FULL_STAGE_SEQUENCE,
|
|
304
|
+
ISSUE_SEVERITIES,
|
|
305
|
+
ISSUE_TYPES,
|
|
306
|
+
MIGRATION_STAGE_SEQUENCE,
|
|
307
|
+
MODE_APPROVAL_GATES,
|
|
308
|
+
MODE_STAGE_SEQUENCES,
|
|
309
|
+
MODE_VALUES,
|
|
310
|
+
QUICK_STAGE_SEQUENCE,
|
|
311
|
+
RECOMMENDED_OWNERS,
|
|
312
|
+
ROOTED_IN_VALUES,
|
|
313
|
+
ROUTING_BEHAVIOR_DELTA_VALUES,
|
|
314
|
+
ROUTING_DOMINANT_UNCERTAINTY_VALUES,
|
|
315
|
+
ROUTING_SCOPE_SHAPE_VALUES,
|
|
316
|
+
ROUTING_WORK_INTENT_VALUES,
|
|
317
|
+
STAGE_OWNERS,
|
|
318
|
+
STAGE_SEQUENCE,
|
|
319
|
+
STATUS_VALUES,
|
|
320
|
+
TRANSITION_GATES,
|
|
321
|
+
createDefaultRoutingProfile,
|
|
322
|
+
createEmptyApprovals,
|
|
323
|
+
createEmptyArtifacts,
|
|
324
|
+
createPendingGate,
|
|
325
|
+
getApprovalGatesForMode,
|
|
326
|
+
getInitialStageForMode,
|
|
327
|
+
getModeForStage,
|
|
328
|
+
getNextStage,
|
|
329
|
+
getReworkRoute,
|
|
330
|
+
getTransitionGate,
|
|
331
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"model": "anthropic/claude-sonnet-4-5",
|
|
3
|
+
"agents_dir": "agents",
|
|
4
|
+
"skills_dir": "skills",
|
|
5
|
+
"commands_dir": "commands",
|
|
6
|
+
"kit": {
|
|
7
|
+
"name": "OpenKit AI Software Factory",
|
|
8
|
+
"version": "0.1.0",
|
|
9
|
+
"entryAgent": "MasterOrchestrator",
|
|
10
|
+
"productSurface": {
|
|
11
|
+
"current": "repository-local-openkit-runtime",
|
|
12
|
+
"emerging": "global-openkit-install",
|
|
13
|
+
"installReadiness": "emerging",
|
|
14
|
+
"migrationState": "staged-not-complete",
|
|
15
|
+
"targetWrapperEntrypoint": "opencode.json",
|
|
16
|
+
"repositoryInternal": [
|
|
17
|
+
".opencode/opencode.json",
|
|
18
|
+
".opencode/workflow-state.json",
|
|
19
|
+
".opencode/work-items/",
|
|
20
|
+
".opencode/workflow-state.js",
|
|
21
|
+
"hooks/",
|
|
22
|
+
"agents/",
|
|
23
|
+
"skills/",
|
|
24
|
+
"commands/",
|
|
25
|
+
"context/",
|
|
26
|
+
"docs/"
|
|
27
|
+
],
|
|
28
|
+
"wrapperFacingMetadata": [
|
|
29
|
+
"registry.json",
|
|
30
|
+
".opencode/install-manifest.json"
|
|
31
|
+
],
|
|
32
|
+
"notes": "This file remains the live checked-in runtime manifest for the repository authoring and compatibility surface while the preferred end-user install path stays global."
|
|
33
|
+
},
|
|
34
|
+
"registry": {
|
|
35
|
+
"path": "registry.json",
|
|
36
|
+
"schema": "openkit/component-registry@1"
|
|
37
|
+
},
|
|
38
|
+
"installManifest": {
|
|
39
|
+
"path": ".opencode/install-manifest.json",
|
|
40
|
+
"schema": "openkit/install-manifest@1"
|
|
41
|
+
},
|
|
42
|
+
"activeProfile": "openkit-core",
|
|
43
|
+
"installationMode": "additive-non-destructive",
|
|
44
|
+
"runtimeSurface": "repository-internal",
|
|
45
|
+
"wrapperMetadataSurface": "staged-additive"
|
|
46
|
+
},
|
|
47
|
+
"hooks": {
|
|
48
|
+
"config": "hooks/hooks.json"
|
|
49
|
+
},
|
|
50
|
+
"state": {
|
|
51
|
+
"file": ".opencode/workflow-state.json"
|
|
52
|
+
},
|
|
53
|
+
"agents": {
|
|
54
|
+
"root": "agents",
|
|
55
|
+
"primary": "agents/master-orchestrator.md",
|
|
56
|
+
"teamRoles": [
|
|
57
|
+
"agents/master-orchestrator.md",
|
|
58
|
+
"agents/pm-agent.md",
|
|
59
|
+
"agents/ba-agent.md",
|
|
60
|
+
"agents/architect-agent.md",
|
|
61
|
+
"agents/tech-lead-agent.md",
|
|
62
|
+
"agents/fullstack-agent.md",
|
|
63
|
+
"agents/qa-agent.md"
|
|
64
|
+
],
|
|
65
|
+
"helpers": [
|
|
66
|
+
"agents/code-reviewer.md"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"skills": {
|
|
70
|
+
"root": "skills"
|
|
71
|
+
},
|
|
72
|
+
"commands": {
|
|
73
|
+
"root": "commands",
|
|
74
|
+
"available": [
|
|
75
|
+
"commands/task.md",
|
|
76
|
+
"commands/quick-task.md",
|
|
77
|
+
"commands/migrate.md",
|
|
78
|
+
"commands/delivery.md",
|
|
79
|
+
"commands/brainstorm.md",
|
|
80
|
+
"commands/write-plan.md",
|
|
81
|
+
"commands/execute-plan.md"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"artifacts": {
|
|
85
|
+
"tasks": "docs/tasks",
|
|
86
|
+
"briefs": "docs/briefs",
|
|
87
|
+
"specs": "docs/specs",
|
|
88
|
+
"architecture": "docs/architecture",
|
|
89
|
+
"plans": "docs/plans",
|
|
90
|
+
"qa": "docs/qa",
|
|
91
|
+
"adr": "docs/adr"
|
|
92
|
+
}
|
|
93
|
+
}
|