@cluesmith/codev 1.6.1 → 2.0.0-rc.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/bin/porch.js +7 -0
- package/dist/agent-farm/cli.d.ts.map +1 -1
- package/dist/agent-farm/cli.js +23 -0
- package/dist/agent-farm/cli.js.map +1 -1
- package/dist/agent-farm/commands/index.d.ts +1 -0
- package/dist/agent-farm/commands/index.d.ts.map +1 -1
- package/dist/agent-farm/commands/index.js +1 -0
- package/dist/agent-farm/commands/index.js.map +1 -1
- package/dist/agent-farm/commands/kickoff.d.ts +19 -0
- package/dist/agent-farm/commands/kickoff.d.ts.map +1 -0
- package/dist/agent-farm/commands/kickoff.js +269 -0
- package/dist/agent-farm/commands/kickoff.js.map +1 -0
- package/dist/agent-farm/commands/spawn.d.ts.map +1 -1
- package/dist/agent-farm/commands/spawn.js +17 -3
- package/dist/agent-farm/commands/spawn.js.map +1 -1
- package/dist/agent-farm/commands/start.d.ts.map +1 -1
- package/dist/agent-farm/commands/start.js +8 -0
- package/dist/agent-farm/commands/start.js.map +1 -1
- package/dist/agent-farm/hq-connector.d.ts +23 -0
- package/dist/agent-farm/hq-connector.d.ts.map +1 -0
- package/dist/agent-farm/hq-connector.js +366 -0
- package/dist/agent-farm/hq-connector.js.map +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +29 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/pcheck/cache.d.ts +48 -0
- package/dist/commands/pcheck/cache.d.ts.map +1 -0
- package/dist/commands/pcheck/cache.js +170 -0
- package/dist/commands/pcheck/cache.js.map +1 -0
- package/dist/commands/pcheck/evaluator.d.ts +15 -0
- package/dist/commands/pcheck/evaluator.d.ts.map +1 -0
- package/dist/commands/pcheck/evaluator.js +246 -0
- package/dist/commands/pcheck/evaluator.js.map +1 -0
- package/dist/commands/pcheck/index.d.ts +12 -0
- package/dist/commands/pcheck/index.d.ts.map +1 -0
- package/dist/commands/pcheck/index.js +249 -0
- package/dist/commands/pcheck/index.js.map +1 -0
- package/dist/commands/pcheck/parser.d.ts +39 -0
- package/dist/commands/pcheck/parser.d.ts.map +1 -0
- package/dist/commands/pcheck/parser.js +155 -0
- package/dist/commands/pcheck/parser.js.map +1 -0
- package/dist/commands/pcheck/types.d.ts +82 -0
- package/dist/commands/pcheck/types.d.ts.map +1 -0
- package/dist/commands/pcheck/types.js +5 -0
- package/dist/commands/pcheck/types.js.map +1 -0
- package/dist/commands/porch/checks.d.ts +42 -0
- package/dist/commands/porch/checks.d.ts.map +1 -0
- package/dist/commands/porch/checks.js +195 -0
- package/dist/commands/porch/checks.js.map +1 -0
- package/dist/commands/porch/consultation.d.ts +56 -0
- package/dist/commands/porch/consultation.d.ts.map +1 -0
- package/dist/commands/porch/consultation.js +330 -0
- package/dist/commands/porch/consultation.js.map +1 -0
- package/dist/commands/porch/index.d.ts +60 -0
- package/dist/commands/porch/index.d.ts.map +1 -0
- package/dist/commands/porch/index.js +828 -0
- package/dist/commands/porch/index.js.map +1 -0
- package/dist/commands/porch/notifications.d.ts +99 -0
- package/dist/commands/porch/notifications.d.ts.map +1 -0
- package/dist/commands/porch/notifications.js +223 -0
- package/dist/commands/porch/notifications.js.map +1 -0
- package/dist/commands/porch/plan-parser.d.ts +38 -0
- package/dist/commands/porch/plan-parser.d.ts.map +1 -0
- package/dist/commands/porch/plan-parser.js +166 -0
- package/dist/commands/porch/plan-parser.js.map +1 -0
- package/dist/commands/porch/protocol-loader.d.ts +46 -0
- package/dist/commands/porch/protocol-loader.d.ts.map +1 -0
- package/dist/commands/porch/protocol-loader.js +249 -0
- package/dist/commands/porch/protocol-loader.js.map +1 -0
- package/dist/commands/porch/signal-parser.d.ts +88 -0
- package/dist/commands/porch/signal-parser.d.ts.map +1 -0
- package/dist/commands/porch/signal-parser.js +148 -0
- package/dist/commands/porch/signal-parser.js.map +1 -0
- package/dist/commands/porch/state.d.ts +133 -0
- package/dist/commands/porch/state.d.ts.map +1 -0
- package/dist/commands/porch/state.js +760 -0
- package/dist/commands/porch/state.js.map +1 -0
- package/dist/commands/porch/types.d.ts +232 -0
- package/dist/commands/porch/types.d.ts.map +1 -0
- package/dist/commands/porch/types.js +7 -0
- package/dist/commands/porch/types.js.map +1 -0
- package/package.json +6 -2
- package/skeleton/porch/prompts/defend.md +103 -0
- package/skeleton/porch/prompts/diagnose.md +70 -0
- package/skeleton/porch/prompts/evaluate.md +132 -0
- package/skeleton/porch/prompts/fix.md +59 -0
- package/skeleton/porch/prompts/implement.md +79 -0
- package/skeleton/porch/prompts/plan.md +74 -0
- package/skeleton/porch/prompts/pr.md +84 -0
- package/skeleton/porch/prompts/review.md +179 -0
- package/skeleton/porch/prompts/specify.md +53 -0
- package/skeleton/porch/prompts/test.md +63 -0
- package/skeleton/porch/prompts/understand.md +61 -0
- package/skeleton/porch/prompts/verify.md +58 -0
- package/skeleton/porch/protocols/bugfix.json +85 -0
- package/skeleton/porch/protocols/spider.json +135 -0
- package/skeleton/porch/protocols/tick.json +76 -0
- package/skeleton/protocols/bugfix/protocol.json +127 -0
- package/skeleton/protocols/protocol-schema.json +237 -0
- package/skeleton/protocols/spider/protocol.json +204 -0
- package/skeleton/protocols/tick/protocol.json +151 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../protocol-schema.json",
|
|
3
|
+
"name": "spider",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Specification-driven development with multi-agent consultation",
|
|
6
|
+
"phases": [
|
|
7
|
+
{
|
|
8
|
+
"id": "specify",
|
|
9
|
+
"name": "Specify",
|
|
10
|
+
"description": "Collaborative design exploration and specification",
|
|
11
|
+
"type": "once",
|
|
12
|
+
"steps": [
|
|
13
|
+
"clarifying_questions",
|
|
14
|
+
"problem_analysis",
|
|
15
|
+
"solution_exploration",
|
|
16
|
+
"open_questions",
|
|
17
|
+
"success_criteria",
|
|
18
|
+
"spec_draft",
|
|
19
|
+
"consultation_1",
|
|
20
|
+
"human_review",
|
|
21
|
+
"consultation_2",
|
|
22
|
+
"spec_final"
|
|
23
|
+
],
|
|
24
|
+
"consultation": {
|
|
25
|
+
"on": "review",
|
|
26
|
+
"models": ["gemini", "codex", "claude"],
|
|
27
|
+
"type": "spec-review",
|
|
28
|
+
"parallel": true,
|
|
29
|
+
"max_rounds": 3
|
|
30
|
+
},
|
|
31
|
+
"gate": {
|
|
32
|
+
"name": "spec-approval",
|
|
33
|
+
"description": "Human approves specification before planning",
|
|
34
|
+
"requires": ["spec_final", "consultation_2"],
|
|
35
|
+
"next": "plan"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "plan",
|
|
40
|
+
"name": "Plan",
|
|
41
|
+
"description": "Implementation planning with phased breakdown",
|
|
42
|
+
"type": "once",
|
|
43
|
+
"steps": [
|
|
44
|
+
"analyze_spec",
|
|
45
|
+
"identify_phases",
|
|
46
|
+
"define_steps",
|
|
47
|
+
"plan_draft",
|
|
48
|
+
"consultation",
|
|
49
|
+
"human_review",
|
|
50
|
+
"plan_final"
|
|
51
|
+
],
|
|
52
|
+
"consultation": {
|
|
53
|
+
"on": "review",
|
|
54
|
+
"models": ["gemini", "codex", "claude"],
|
|
55
|
+
"type": "plan-review",
|
|
56
|
+
"parallel": true,
|
|
57
|
+
"max_rounds": 2
|
|
58
|
+
},
|
|
59
|
+
"gate": {
|
|
60
|
+
"name": "plan-approval",
|
|
61
|
+
"description": "Human approves plan before implementation",
|
|
62
|
+
"requires": ["plan_final", "consultation"],
|
|
63
|
+
"next": "implement"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"id": "implement",
|
|
68
|
+
"name": "Implement",
|
|
69
|
+
"description": "Code implementation following the plan",
|
|
70
|
+
"type": "per_plan_phase",
|
|
71
|
+
"steps": [
|
|
72
|
+
"read_phase",
|
|
73
|
+
"implement_code",
|
|
74
|
+
"self_review",
|
|
75
|
+
"commit"
|
|
76
|
+
],
|
|
77
|
+
"checks": {
|
|
78
|
+
"build": {
|
|
79
|
+
"command": "npm run build",
|
|
80
|
+
"on_fail": "retry",
|
|
81
|
+
"max_retries": 2
|
|
82
|
+
},
|
|
83
|
+
"typecheck": {
|
|
84
|
+
"command": "npm run typecheck",
|
|
85
|
+
"on_fail": "retry",
|
|
86
|
+
"max_retries": 2
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"transition": {
|
|
90
|
+
"on_complete": "defend",
|
|
91
|
+
"on_fail": "implement"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "defend",
|
|
96
|
+
"name": "Defend",
|
|
97
|
+
"description": "Testing and verification",
|
|
98
|
+
"type": "per_plan_phase",
|
|
99
|
+
"steps": [
|
|
100
|
+
"write_tests",
|
|
101
|
+
"run_tests",
|
|
102
|
+
"fix_failures",
|
|
103
|
+
"commit"
|
|
104
|
+
],
|
|
105
|
+
"checks": {
|
|
106
|
+
"tests": {
|
|
107
|
+
"command": "npm test",
|
|
108
|
+
"on_fail": "implement",
|
|
109
|
+
"max_retries": 1
|
|
110
|
+
},
|
|
111
|
+
"lint": {
|
|
112
|
+
"command": "npm run lint",
|
|
113
|
+
"on_fail": "retry",
|
|
114
|
+
"max_retries": 1
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"consultation": {
|
|
118
|
+
"on": "complete",
|
|
119
|
+
"models": ["gemini", "codex", "claude"],
|
|
120
|
+
"type": "impl-review",
|
|
121
|
+
"parallel": true,
|
|
122
|
+
"max_rounds": 2
|
|
123
|
+
},
|
|
124
|
+
"transition": {
|
|
125
|
+
"on_complete": "evaluate",
|
|
126
|
+
"on_fail": "implement"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "evaluate",
|
|
131
|
+
"name": "Evaluate",
|
|
132
|
+
"description": "Verify implementation against spec",
|
|
133
|
+
"type": "per_plan_phase",
|
|
134
|
+
"steps": [
|
|
135
|
+
"check_spec_compliance",
|
|
136
|
+
"check_success_criteria",
|
|
137
|
+
"document_deviations"
|
|
138
|
+
],
|
|
139
|
+
"gate": {
|
|
140
|
+
"name": "phase-complete",
|
|
141
|
+
"description": "Plan phase implementation is verified",
|
|
142
|
+
"requires": ["all_checks_pass", "spec_compliance"],
|
|
143
|
+
"next": "implement"
|
|
144
|
+
},
|
|
145
|
+
"transition": {
|
|
146
|
+
"on_complete": "implement",
|
|
147
|
+
"on_all_phases_complete": "review"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"id": "review",
|
|
152
|
+
"name": "Review",
|
|
153
|
+
"description": "Final review and lessons learned",
|
|
154
|
+
"type": "once",
|
|
155
|
+
"steps": [
|
|
156
|
+
"create_review_document",
|
|
157
|
+
"document_lessons",
|
|
158
|
+
"final_consultation",
|
|
159
|
+
"create_pr"
|
|
160
|
+
],
|
|
161
|
+
"consultation": {
|
|
162
|
+
"on": "review",
|
|
163
|
+
"models": ["gemini", "codex", "claude"],
|
|
164
|
+
"type": "pr-ready",
|
|
165
|
+
"parallel": true,
|
|
166
|
+
"max_rounds": 1
|
|
167
|
+
},
|
|
168
|
+
"gate": {
|
|
169
|
+
"name": "pr-ready",
|
|
170
|
+
"description": "Implementation ready for PR",
|
|
171
|
+
"requires": ["review_complete", "all_tests_pass", "consultation"],
|
|
172
|
+
"next": null
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"signals": {
|
|
177
|
+
"PHASE_COMPLETE": {
|
|
178
|
+
"description": "Signal current phase is complete",
|
|
179
|
+
"transitions_to": "next_phase"
|
|
180
|
+
},
|
|
181
|
+
"BLOCKED": {
|
|
182
|
+
"description": "Signal implementation is blocked",
|
|
183
|
+
"requires": "reason"
|
|
184
|
+
},
|
|
185
|
+
"REVISION_NEEDED": {
|
|
186
|
+
"description": "Signal changes requested",
|
|
187
|
+
"transitions_to": "current_phase"
|
|
188
|
+
},
|
|
189
|
+
"APPROVED": {
|
|
190
|
+
"description": "Signal gate approval received"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"defaults": {
|
|
194
|
+
"consultation": {
|
|
195
|
+
"enabled": true,
|
|
196
|
+
"models": ["gemini", "codex", "claude"],
|
|
197
|
+
"parallel": true
|
|
198
|
+
},
|
|
199
|
+
"checks": {
|
|
200
|
+
"build": "npm run build",
|
|
201
|
+
"test": "npm test"
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../protocol-schema.json",
|
|
3
|
+
"name": "tick",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Amendment workflow for existing SPIDER specifications",
|
|
6
|
+
"phases": [
|
|
7
|
+
{
|
|
8
|
+
"id": "identify",
|
|
9
|
+
"name": "Identify Target",
|
|
10
|
+
"description": "Find the existing spec to amend",
|
|
11
|
+
"type": "once",
|
|
12
|
+
"steps": [
|
|
13
|
+
"analyze_requirements",
|
|
14
|
+
"find_target_spec",
|
|
15
|
+
"verify_spec_integrated",
|
|
16
|
+
"determine_tick_number"
|
|
17
|
+
],
|
|
18
|
+
"transition": {
|
|
19
|
+
"on_complete": "amend_spec"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "amend_spec",
|
|
24
|
+
"name": "Amend Specification",
|
|
25
|
+
"description": "Update the existing specification",
|
|
26
|
+
"type": "once",
|
|
27
|
+
"steps": [
|
|
28
|
+
"analyze_changes_needed",
|
|
29
|
+
"update_spec_sections",
|
|
30
|
+
"add_amendment_entry",
|
|
31
|
+
"commit_spec_changes"
|
|
32
|
+
],
|
|
33
|
+
"transition": {
|
|
34
|
+
"on_complete": "amend_plan"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "amend_plan",
|
|
39
|
+
"name": "Amend Plan",
|
|
40
|
+
"description": "Update the existing plan",
|
|
41
|
+
"type": "once",
|
|
42
|
+
"steps": [
|
|
43
|
+
"update_plan_phases",
|
|
44
|
+
"add_amendment_history",
|
|
45
|
+
"commit_plan_changes"
|
|
46
|
+
],
|
|
47
|
+
"transition": {
|
|
48
|
+
"on_complete": "implement"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "implement",
|
|
53
|
+
"name": "Implement",
|
|
54
|
+
"description": "Implement the amendment",
|
|
55
|
+
"type": "once",
|
|
56
|
+
"steps": [
|
|
57
|
+
"implement_changes",
|
|
58
|
+
"self_review",
|
|
59
|
+
"commit"
|
|
60
|
+
],
|
|
61
|
+
"checks": {
|
|
62
|
+
"build": {
|
|
63
|
+
"command": "npm run build",
|
|
64
|
+
"on_fail": "retry",
|
|
65
|
+
"max_retries": 2
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"transition": {
|
|
69
|
+
"on_complete": "defend"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "defend",
|
|
74
|
+
"name": "Defend",
|
|
75
|
+
"description": "Test the amendment",
|
|
76
|
+
"type": "once",
|
|
77
|
+
"steps": [
|
|
78
|
+
"write_tests",
|
|
79
|
+
"run_tests",
|
|
80
|
+
"fix_failures"
|
|
81
|
+
],
|
|
82
|
+
"checks": {
|
|
83
|
+
"tests": {
|
|
84
|
+
"command": "npm test",
|
|
85
|
+
"on_fail": "implement",
|
|
86
|
+
"max_retries": 1
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"transition": {
|
|
90
|
+
"on_complete": "evaluate"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "evaluate",
|
|
95
|
+
"name": "Evaluate",
|
|
96
|
+
"description": "Verify amendment meets requirements",
|
|
97
|
+
"type": "once",
|
|
98
|
+
"steps": [
|
|
99
|
+
"verify_requirements",
|
|
100
|
+
"check_regressions"
|
|
101
|
+
],
|
|
102
|
+
"transition": {
|
|
103
|
+
"on_complete": "review"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": "review",
|
|
108
|
+
"name": "Review",
|
|
109
|
+
"description": "Create review document and PR",
|
|
110
|
+
"type": "once",
|
|
111
|
+
"steps": [
|
|
112
|
+
"create_tick_review",
|
|
113
|
+
"create_pr"
|
|
114
|
+
],
|
|
115
|
+
"consultation": {
|
|
116
|
+
"on": "review",
|
|
117
|
+
"models": ["gemini", "codex"],
|
|
118
|
+
"type": "impl-review",
|
|
119
|
+
"parallel": true,
|
|
120
|
+
"max_rounds": 1
|
|
121
|
+
},
|
|
122
|
+
"gate": {
|
|
123
|
+
"name": "pr-ready",
|
|
124
|
+
"description": "Amendment ready for PR",
|
|
125
|
+
"requires": ["tests_pass", "review_complete"],
|
|
126
|
+
"next": null
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"signals": {
|
|
131
|
+
"PHASE_COMPLETE": {
|
|
132
|
+
"description": "Signal current phase is complete",
|
|
133
|
+
"transitions_to": "next_phase"
|
|
134
|
+
},
|
|
135
|
+
"BLOCKED": {
|
|
136
|
+
"description": "Signal implementation is blocked",
|
|
137
|
+
"requires": "reason"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"defaults": {
|
|
141
|
+
"consultation": {
|
|
142
|
+
"enabled": true,
|
|
143
|
+
"models": ["gemini", "codex"],
|
|
144
|
+
"parallel": true
|
|
145
|
+
},
|
|
146
|
+
"checks": {
|
|
147
|
+
"build": "npm run build",
|
|
148
|
+
"test": "npm test"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|