developing-agent-forge 2.4.0 → 2.5.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/README.md +17 -48
- package/README.zh-CN.md +17 -48
- package/developing-forge.yaml +0 -10
- package/dist/agents/developer.d.ts.map +1 -1
- package/dist/agents/developer.js +31 -45
- package/dist/agents/developer.js.map +1 -1
- package/dist/agents/factory.d.ts.map +1 -1
- package/dist/agents/factory.js +0 -2
- package/dist/agents/factory.js.map +1 -1
- package/dist/agents/index.d.ts +0 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +0 -1
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/manager.d.ts.map +1 -1
- package/dist/agents/manager.js +28 -45
- package/dist/agents/manager.js.map +1 -1
- package/dist/agents/prompts.d.ts +0 -1
- package/dist/agents/prompts.d.ts.map +1 -1
- package/dist/agents/prompts.js +1 -6
- package/dist/agents/prompts.js.map +1 -1
- package/dist/agents/reviewer.d.ts.map +1 -1
- package/dist/agents/reviewer.js +13 -30
- package/dist/agents/reviewer.js.map +1 -1
- package/dist/agents/types.d.ts +0 -1
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/agents/types.js.map +1 -1
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/pipeline/index.d.ts +0 -1
- package/dist/pipeline/index.d.ts.map +1 -1
- package/dist/pipeline/index.js +0 -1
- package/dist/pipeline/index.js.map +1 -1
- package/dist/pipeline/pipeline.d.ts +0 -9
- package/dist/pipeline/pipeline.d.ts.map +1 -1
- package/dist/pipeline/pipeline.js +2 -9
- package/dist/pipeline/pipeline.js.map +1 -1
- package/dist/pipeline/project-devloop.d.ts +1 -1
- package/dist/pipeline/project-devloop.d.ts.map +1 -1
- package/dist/pipeline/project-devloop.js +2 -3
- package/dist/pipeline/project-devloop.js.map +1 -1
- package/dist/pipeline/task-devloop.d.ts +1 -1
- package/dist/pipeline/task-devloop.d.ts.map +1 -1
- package/dist/pipeline/task-devloop.js +1 -2
- package/dist/pipeline/task-devloop.js.map +1 -1
- package/package.json +3 -6
- package/dist/agents/trajectory-optimizer.d.ts +0 -11
- package/dist/agents/trajectory-optimizer.d.ts.map +0 -1
- package/dist/agents/trajectory-optimizer.js +0 -33
- package/dist/agents/trajectory-optimizer.js.map +0 -1
- package/dist/pipeline/pipelineskill.d.ts +0 -109
- package/dist/pipeline/pipelineskill.d.ts.map +0 -1
- package/dist/pipeline/pipelineskill.js +0 -45
- package/dist/pipeline/pipelineskill.js.map +0 -1
- package/metaskills/coding-style/METASKILL.md +0 -214
- package/skills/coding-style/SKILL.md +0 -802
- package/skills/coding-style/agents/openai.yaml +0 -4
package/dist/agents/manager.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { goalInstruction } from "./prompts.js";
|
|
2
2
|
import { DevelopingAgent } from "./types.js";
|
|
3
3
|
const MANAGER_DECISION_PATTERN = /^(FINISHED|# Task Brief)\b/;
|
|
4
4
|
const MAX_FORMAT_CORRECTION_ATTEMPTS = 3;
|
|
@@ -15,15 +15,14 @@ export class CodingManagerAgent extends DevelopingAgent {
|
|
|
15
15
|
catch {
|
|
16
16
|
for (let attempt = 1; attempt <= MAX_FORMAT_CORRECTION_ATTEMPTS; attempt++) {
|
|
17
17
|
managerOutput = (await this.thread.runStreamed(`
|
|
18
|
-
|
|
19
|
-
The output must start with exactly one of:
|
|
18
|
+
Incorrect format. First non-empty line must be:
|
|
20
19
|
FINISHED
|
|
21
20
|
# Task Brief
|
|
22
21
|
|
|
23
22
|
Previous output:
|
|
24
23
|
${managerOutput}
|
|
25
24
|
|
|
26
|
-
|
|
25
|
+
Correct it.
|
|
27
26
|
`, onRecord)).trim();
|
|
28
27
|
try {
|
|
29
28
|
this.parseDecision(managerOutput);
|
|
@@ -46,102 +45,86 @@ Please correct it.
|
|
|
46
45
|
return match[1] === "FINISHED" ? "FINISHED" : "TASK_BRIEF";
|
|
47
46
|
}
|
|
48
47
|
buildPrompt(variables) {
|
|
49
|
-
const codingStyleSkillPath = this.workspaceRelativePath(variables.codingStyleSkillPath);
|
|
50
48
|
const targetPath = this.workspaceRelativePath(variables.targetPath);
|
|
51
|
-
const codingStyleSkillInstructionText = codingStyleSkillInstruction(codingStyleSkillPath);
|
|
52
49
|
const goalInstructionText = goalInstruction(variables.goal);
|
|
53
50
|
const lastTaskRoundSummary = "lastTaskRoundSummary" in variables && variables.lastTaskRoundSummary
|
|
54
|
-
? `Last
|
|
51
|
+
? `Last round:
|
|
55
52
|
${variables.lastTaskRoundSummary}`
|
|
56
53
|
: "";
|
|
57
54
|
switch (variables.phase) {
|
|
58
55
|
case "recall":
|
|
59
|
-
return buildRecallPrompt(
|
|
56
|
+
return buildRecallPrompt(goalInstructionText, targetPath, lastTaskRoundSummary);
|
|
60
57
|
case "select":
|
|
61
|
-
return buildSelectPrompt(
|
|
58
|
+
return buildSelectPrompt(goalInstructionText, targetPath, variables.projectProgressMemory, lastTaskRoundSummary);
|
|
62
59
|
case "update":
|
|
63
|
-
return buildUpdatePrompt(
|
|
60
|
+
return buildUpdatePrompt(goalInstructionText, targetPath, variables.projectProgressMemory, variables.taskBrief, variables.taskRoundSummary);
|
|
64
61
|
}
|
|
65
62
|
}
|
|
66
63
|
}
|
|
67
|
-
function buildRecallPrompt(
|
|
64
|
+
function buildRecallPrompt(goalInstructionText, targetPath, lastTaskRoundSummary) {
|
|
68
65
|
return `
|
|
69
|
-
${codingStyleSkillInstructionText}
|
|
70
|
-
|
|
71
66
|
${goalInstructionText}
|
|
72
67
|
|
|
73
|
-
Target
|
|
68
|
+
Target: ${targetPath}/.
|
|
74
69
|
|
|
75
70
|
${lastTaskRoundSummary}
|
|
76
71
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
Output concise project progress memory recall guidance.
|
|
72
|
+
Output recall guidance only: project-progress memory needed before choosing next task.
|
|
73
|
+
No recalled content. No task decision.
|
|
80
74
|
`;
|
|
81
75
|
}
|
|
82
|
-
function buildSelectPrompt(
|
|
76
|
+
function buildSelectPrompt(goalInstructionText, targetPath, projectProgressMemory, lastTaskRoundSummary) {
|
|
83
77
|
return `
|
|
84
|
-
${codingStyleSkillInstructionText}
|
|
85
|
-
|
|
86
78
|
${goalInstructionText}
|
|
87
79
|
|
|
88
|
-
Target
|
|
80
|
+
Target: ${targetPath}/.
|
|
89
81
|
|
|
90
|
-
|
|
82
|
+
Project progress memory:
|
|
91
83
|
${projectProgressMemory}
|
|
92
84
|
|
|
93
85
|
${lastTaskRoundSummary}
|
|
94
86
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
Choose exactly one new bounded task for the Developer.
|
|
87
|
+
If no task remains, output exactly:
|
|
88
|
+
FINISHED
|
|
98
89
|
|
|
99
|
-
|
|
90
|
+
Otherwise specify one bounded Developer task:
|
|
100
91
|
|
|
101
92
|
# Task Brief
|
|
102
93
|
|
|
103
94
|
## Objective
|
|
104
95
|
|
|
105
|
-
|
|
96
|
+
Concrete repo improvement.
|
|
106
97
|
|
|
107
98
|
## Context
|
|
108
99
|
|
|
109
|
-
|
|
100
|
+
Why now.
|
|
110
101
|
|
|
111
102
|
## Boundaries
|
|
112
103
|
|
|
113
|
-
|
|
104
|
+
Scope, risks, key paths. Empty if unknown.
|
|
114
105
|
|
|
115
106
|
## Reviewer Focus
|
|
116
107
|
|
|
117
|
-
What
|
|
118
|
-
|
|
119
|
-
Keep the brief bounded enough for one Developer attempt. Use natural language; do not introduce task-type schemas, check schemas, or mode enums unless they are simply part of the prose.
|
|
120
|
-
|
|
121
|
-
When no further developing task is needed, return exactly:
|
|
122
|
-
FINISHED
|
|
108
|
+
What to check.
|
|
123
109
|
`;
|
|
124
110
|
}
|
|
125
|
-
function buildUpdatePrompt(
|
|
111
|
+
function buildUpdatePrompt(goalInstructionText, targetPath, projectProgressMemory, taskBrief, taskRoundSummary) {
|
|
126
112
|
return `
|
|
127
|
-
${codingStyleSkillInstructionText}
|
|
128
|
-
|
|
129
113
|
${goalInstructionText}
|
|
130
114
|
|
|
131
|
-
Target
|
|
115
|
+
Target: ${targetPath}/.
|
|
132
116
|
|
|
133
|
-
Task
|
|
117
|
+
Task:
|
|
134
118
|
${taskBrief}
|
|
135
119
|
|
|
136
|
-
|
|
120
|
+
Previous project progress memory:
|
|
137
121
|
${projectProgressMemory}
|
|
138
122
|
|
|
139
|
-
|
|
123
|
+
Round summary:
|
|
140
124
|
${taskRoundSummary}
|
|
141
125
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
Remember only reusable project state: current goal progress, completed direction, blockers or redirect reasons, and useful next-step context. Do not store long transcripts, one-off runtime noise, or code-design details that belong in code design memory.
|
|
126
|
+
Record reusable project progress insights (completed milestones, blockers, next steps).
|
|
127
|
+
Exclude execution details and code specifics.
|
|
145
128
|
`;
|
|
146
129
|
}
|
|
147
130
|
//# sourceMappingURL=manager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../src/agents/manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../src/agents/manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAiC,MAAM,YAAY,CAAC;AA0B5E,MAAM,wBAAwB,GAAG,4BAA4B,CAAC;AAC9D,MAAM,8BAA8B,GAAG,CAAC,CAAC;AAEzC,MAAM,OAAO,kBAAmB,SAAQ,eAAuC;IACpE,KAAK,CAAC,WAAW,CACxB,SAAiC,EACjC,QAAyB;QAEzB,IAAI,aAAa,GAAG,MAAM,KAAK,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QACjE,IAAI,SAAS,CAAC,KAAK,KAAK,QAA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1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/agents/prompts.ts"],"names":[],"mappings":"AAAA,wBAAgB,
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/agents/prompts.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKpD"}
|
package/dist/agents/prompts.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
export function codingStyleSkillInstruction(codingStyleSkillPath) {
|
|
2
|
-
return `Load and follow the skill at ${codingStyleSkillPath}. It describes how to keep repository code concise, readable, low-friction, and easy to modify.`;
|
|
3
|
-
}
|
|
4
1
|
export function goalInstruction(goal) {
|
|
5
2
|
return `
|
|
6
|
-
|
|
3
|
+
Goal:
|
|
7
4
|
${goal}
|
|
8
|
-
|
|
9
|
-
Use this goal as the current high-level objective.
|
|
10
5
|
`;
|
|
11
6
|
}
|
|
12
7
|
//# sourceMappingURL=prompts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/agents/prompts.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/agents/prompts.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,OAAO;;EAEP,IAAI;CACL,CAAC;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviewer.d.ts","sourceRoot":"","sources":["../../src/agents/reviewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzD,OAAO,EAAE,eAAe,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE5E,MAAM,MAAM,qBAAqB,GAAG,wBAAwB,GAAG;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAI9D,qBAAa,iBAAkB,SAAQ,eAAe,CAAC,qBAAqB,CAAC;IAC5D,WAAW,CACxB,SAAS,EAAE,qBAAqB,EAChC,QAAQ,CAAC,EAAE,cAAc,GACxB,OAAO,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"reviewer.d.ts","sourceRoot":"","sources":["../../src/agents/reviewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzD,OAAO,EAAE,eAAe,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE5E,MAAM,MAAM,qBAAqB,GAAG,wBAAwB,GAAG;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAI9D,qBAAa,iBAAkB,SAAQ,eAAe,CAAC,qBAAqB,CAAC;IAC5D,WAAW,CACxB,SAAS,EAAE,qBAAqB,EAChC,QAAQ,CAAC,EAAE,cAAc,GACxB,OAAO,CAAC,MAAM,CAAC;IAsClB,aAAa,CAAC,cAAc,EAAE,MAAM,GAAG,cAAc;IAQrD,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GAAG,MAAM;CAmC1E"}
|
package/dist/agents/reviewer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ponytailReviewSkillPrompt } from "./polytail.js";
|
|
2
|
-
import {
|
|
2
|
+
import { goalInstruction } from "./prompts.js";
|
|
3
3
|
import { DevelopingAgent } from "./types.js";
|
|
4
4
|
const REVIEW_DECISION_PATTERN = /^(ACCEPT|REVISE|REDIRECT)\b/;
|
|
5
5
|
const MAX_FORMAT_CORRECTION_ATTEMPTS = 3;
|
|
@@ -13,8 +13,7 @@ export class CodeReviewerAgent extends DevelopingAgent {
|
|
|
13
13
|
catch {
|
|
14
14
|
for (let attempt = 1; attempt <= MAX_FORMAT_CORRECTION_ATTEMPTS; attempt++) {
|
|
15
15
|
reviewerReport = (await this.thread.runStreamed(`
|
|
16
|
-
|
|
17
|
-
The output must start with exactly one of:
|
|
16
|
+
Incorrect format. First non-empty line must be:
|
|
18
17
|
ACCEPT
|
|
19
18
|
REVISE
|
|
20
19
|
REDIRECT
|
|
@@ -22,7 +21,7 @@ REDIRECT
|
|
|
22
21
|
Previous output:
|
|
23
22
|
${reviewerReport}
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
Correct it.
|
|
26
25
|
`, onRecord)).trim();
|
|
27
26
|
try {
|
|
28
27
|
this.parseDecision(reviewerReport);
|
|
@@ -45,53 +44,37 @@ Please correct it.
|
|
|
45
44
|
return match[1];
|
|
46
45
|
}
|
|
47
46
|
buildPrompt(variables) {
|
|
48
|
-
const codingStyleSkillPath = this.workspaceRelativePath(variables.codingStyleSkillPath);
|
|
49
47
|
const targetPath = this.workspaceRelativePath(variables.targetPath);
|
|
50
|
-
const codingStyleSkillInstructionText = codingStyleSkillInstruction(codingStyleSkillPath);
|
|
51
48
|
const goalInstructionText = goalInstruction(variables.goal);
|
|
52
49
|
return `
|
|
53
50
|
${ponytailReviewSkillPrompt}
|
|
54
51
|
|
|
55
|
-
${codingStyleSkillInstructionText}
|
|
56
|
-
|
|
57
52
|
${goalInstructionText}
|
|
58
53
|
|
|
59
|
-
|
|
60
|
-
Review the current code. Read only.
|
|
54
|
+
Target: ${targetPath}/. Read only.
|
|
61
55
|
|
|
62
|
-
Task
|
|
56
|
+
Task:
|
|
63
57
|
${variables.taskBrief}
|
|
64
58
|
|
|
65
|
-
|
|
59
|
+
Code/design memory:
|
|
66
60
|
${variables.codeDesignMemory}
|
|
67
61
|
|
|
68
62
|
Developer report:
|
|
69
63
|
${variables.developerReport}
|
|
70
64
|
|
|
71
|
-
Review
|
|
72
|
-
|
|
73
|
-
Focus on:
|
|
74
|
-
- whether the Objective is actually improved
|
|
75
|
-
- whether the evidence supports the Developer's claims
|
|
76
|
-
- whether the code quality and design remain healthy
|
|
77
|
-
- whether the change respects existing code relationships and design memory
|
|
78
|
-
- whether the next action should be revision, manager redirection, or acceptance
|
|
65
|
+
Review: task completion, report accuracy, code health.
|
|
79
66
|
|
|
80
|
-
|
|
67
|
+
First non-empty line must equal one of:
|
|
81
68
|
ACCEPT
|
|
82
69
|
REVISE
|
|
83
70
|
REDIRECT
|
|
84
71
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
For REVISE, give the smallest actionable feedback for the same task direction.
|
|
90
|
-
For REDIRECT, explain the manager-level reason in one short paragraph.
|
|
72
|
+
ACCEPT: good enough.
|
|
73
|
+
REVISE: smallest same-direction fix.
|
|
74
|
+
REDIRECT: manager must rethink direction, scope, dependency, or premise.
|
|
91
75
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
## Memory Candidates
|
|
76
|
+
Feedback required if REVISE or REDIRECT.
|
|
77
|
+
End with reusable insights under "## Memory Candidates".
|
|
95
78
|
`;
|
|
96
79
|
}
|
|
97
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviewer.js","sourceRoot":"","sources":["../../src/agents/reviewer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"reviewer.js","sourceRoot":"","sources":["../../src/agents/reviewer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AA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F,CAAC;QACD,OAAO,KAAK,CAAC,CAAC,CAAmB,CAAC;IACpC,CAAC;IAES,WAAW,CAAC,SAA0C;QAC9D,MAAM,UAAU,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACpE,MAAM,mBAAmB,GAAG,eAAe,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAE5D,OAAO;EACT,yBAAyB;;EAEzB,mBAAmB;;UAEX,UAAU;;;EAGlB,SAAS,CAAC,SAAS;;;EAGnB,SAAS,CAAC,gBAAgB;;;EAG1B,SAAS,CAAC,eAAe;;;;;;;;;;;;;;;CAe1B,CAAC;IACA,CAAC;CACF"}
|
package/dist/agents/types.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import type { PromptConstants, Thread } from "coding-agent-forge";
|
|
|
2
2
|
import { Agent } from "coding-agent-forge/agent";
|
|
3
3
|
export type DevelopingAgentVariables = {
|
|
4
4
|
targetPath: string;
|
|
5
|
-
codingStyleSkillPath: string;
|
|
6
5
|
goal: string;
|
|
7
6
|
};
|
|
8
7
|
export type DevelopingAgentConstants = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/agents/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAIjD,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/agents/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAIjD,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,8BAAsB,eAAe,CAAC,SAAS,SAAS,wBAAwB,CAAE,SAAQ,KAAK,CAC7F,SAAS,EACT,wBAAwB,CACzB;IACC,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;gBAE7B,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,eAAe,CAAC;IAahE,SAAS,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;CAG1D"}
|
package/dist/agents/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/agents/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,IAAI,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/agents/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,IAAI,MAAM,WAAW,CAAC;AAW7B,MAAM,OAAgB,eAA4D,SAAQ,KAGzF;IACoB,aAAa,CAAS;IAEzC,YAAY,MAAc,EAAE,SAAoC;QAC9D,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAC;QAClF,CAAC;QAED,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QAC5D,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;YAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,aAAa,EAAE,CAAC,CAAC;QACzE,CAAC;QACD,KAAK,CAAC,MAAM,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;QACjC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAES,qBAAqB,CAAC,QAAgB;QAC9C,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG,CAAC;IAC1E,CAAC;CACF"}
|
package/dist/cli.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { pathToFileURL } from "node:url";
|
|
3
3
|
import { runPipelinesCli } from "coding-agent-forge";
|
|
4
|
-
import { developingPipeline
|
|
4
|
+
import { developingPipeline } from "./pipeline/index.js";
|
|
5
5
|
function isDirectCli() {
|
|
6
6
|
const entry = process.argv[1];
|
|
7
7
|
return entry !== undefined && import.meta.url === pathToFileURL(entry).href;
|
|
8
8
|
}
|
|
9
9
|
if (isDirectCli()) {
|
|
10
|
-
await runPipelinesCli([developingPipeline
|
|
10
|
+
await runPipelinesCli([developingPipeline], process.argv.slice(2));
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,SAAS,WAAW;IAClB,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC9B,OAAO,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,aAAa,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC;AAC9E,CAAC;AAED,IAAI,WAAW,EAAE,EAAE,CAAC;IAClB,MAAM,eAAe,CAAC,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACrE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ProjectDevLoop, TaskDevLoop, developing, developingArgsOptions, developingPipeline,
|
|
2
|
-
export type { DevelopingOptions,
|
|
3
|
-
export { CodeReviewerAgent, CodingManagerAgent, DeveloperAgent, DevelopingAgent,
|
|
4
|
-
export type { CodeReviewerVariables, CodingManagerVariables, DeveloperVariables, DevelopingAgentConstants, DevelopingAgentVariables,
|
|
1
|
+
export { ProjectDevLoop, TaskDevLoop, developing, developingArgsOptions, developingPipeline, } from "./pipeline/index.js";
|
|
2
|
+
export type { DevelopingOptions, ProjectDevLoopAgentVariablesByName, ProjectDevLoopCallbacks, TaskDevLoopAgentVariablesByName, } from "./pipeline/index.js";
|
|
3
|
+
export { CodeReviewerAgent, CodingManagerAgent, DeveloperAgent, DevelopingAgent, agentFactories, } from "./agents/index.js";
|
|
4
|
+
export type { CodeReviewerVariables, CodingManagerVariables, DeveloperVariables, DevelopingAgentConstants, DevelopingAgentVariables, } from "./agents/index.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EACV,iBAAiB,EACjB,kCAAkC,EAClC,uBAAuB,EACvB,+BAA+B,GAChC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,cAAc,GACf,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EACV,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ProjectDevLoop, TaskDevLoop, developing, developingArgsOptions, developingPipeline,
|
|
2
|
-
export { CodeReviewerAgent, CodingManagerAgent, DeveloperAgent, DevelopingAgent,
|
|
1
|
+
export { ProjectDevLoop, TaskDevLoop, developing, developingArgsOptions, developingPipeline, } from "./pipeline/index.js";
|
|
2
|
+
export { CodeReviewerAgent, CodingManagerAgent, DeveloperAgent, DevelopingAgent, agentFactories, } from "./agents/index.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAS7B,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,cAAc,GACf,MAAM,mBAAmB,CAAC"}
|
package/dist/pipeline/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { ProjectDevLoop, type ProjectDevLoopAgentVariablesByName, type ProjectDevLoopCallbacks, } from "./project-devloop.js";
|
|
2
2
|
export { TaskDevLoop, type TaskDevLoopAgentVariablesByName, type TaskDevLoopResult, } from "./task-devloop.js";
|
|
3
3
|
export { developing, developingArgsOptions, developingPipeline, type DevelopingOptions, } from "./pipeline.js";
|
|
4
|
-
export { developingSkill, developingSkillArgsOptions, developingSkillPipeline, type DevelopingSkillAgentVariables, type DevelopingSkillOptions, } from "./pipelineskill.js";
|
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pipeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EACX,KAAK,+BAA+B,EACpC,KAAK,iBAAiB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,kBAAkB,EAClB,KAAK,iBAAiB,GACvB,MAAM,eAAe,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pipeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EACX,KAAK,+BAA+B,EACpC,KAAK,iBAAiB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,kBAAkB,EAClB,KAAK,iBAAiB,GACvB,MAAM,eAAe,CAAC"}
|
package/dist/pipeline/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { ProjectDevLoop, } from "./project-devloop.js";
|
|
2
2
|
export { TaskDevLoop, } from "./task-devloop.js";
|
|
3
3
|
export { developing, developingArgsOptions, developingPipeline, } from "./pipeline.js";
|
|
4
|
-
export { developingSkill, developingSkillArgsOptions, developingSkillPipeline, } from "./pipelineskill.js";
|
|
5
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/pipeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,GAGf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,GAGZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,kBAAkB,GAEnB,MAAM,eAAe,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/pipeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,GAGf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,GAGZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,kBAAkB,GAEnB,MAAM,eAAe,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { AgentTeam } from "coding-agent-forge";
|
|
|
2
2
|
import { type ProjectDevLoopAgentVariablesByName, type ProjectDevLoopCallbacks } from "./project-devloop.js";
|
|
3
3
|
export type DevelopingOptions = {
|
|
4
4
|
targetPath: string;
|
|
5
|
-
codingStyleSkillPath: string;
|
|
6
5
|
goalPath: string;
|
|
7
6
|
achiveDir: string;
|
|
8
7
|
maxIterations: number;
|
|
@@ -19,10 +18,6 @@ export declare const developingArgsOptions: {
|
|
|
19
18
|
readonly type: "string";
|
|
20
19
|
readonly description: "Target repository folder to create or modify";
|
|
21
20
|
};
|
|
22
|
-
readonly "coding-style-skill-path": {
|
|
23
|
-
readonly type: "string";
|
|
24
|
-
readonly description: "Coding style skill path used by the agents";
|
|
25
|
-
};
|
|
26
21
|
readonly "goal-path": {
|
|
27
22
|
readonly type: "string";
|
|
28
23
|
readonly description: "Goal document path";
|
|
@@ -65,10 +60,6 @@ export declare const developingPipeline: import("coding-agent-forge").Pipeline<{
|
|
|
65
60
|
readonly type: "string";
|
|
66
61
|
readonly description: "Target repository folder to create or modify";
|
|
67
62
|
};
|
|
68
|
-
readonly "coding-style-skill-path": {
|
|
69
|
-
readonly type: "string";
|
|
70
|
-
readonly description: "Coding style skill path used by the agents";
|
|
71
|
-
};
|
|
72
63
|
readonly "goal-path": {
|
|
73
64
|
readonly type: "string";
|
|
74
65
|
readonly description: "Goal document path";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../src/pipeline/pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAKV,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAEL,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC7B,MAAM,sBAAsB,CAAC;AAG9B,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,
|
|
1
|
+
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../src/pipeline/pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAKV,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAEL,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC7B,MAAM,sBAAsB,CAAC;AAG9B,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,wBAAwB,EAAE,MAAM,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC;IAClC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC,CAAC;AAEF,wBAAsB,UAAU,CAC9B,IAAI,EAAE,SAAS,CAAC,kCAAkC,CAAC,EACnD,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CAqBf;AAUD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCM,CAAC;AAEzC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAoD7B,CAAC"}
|
|
@@ -8,7 +8,7 @@ export async function developing(team, options) {
|
|
|
8
8
|
console.log(thread.recordToPrettyString(record));
|
|
9
9
|
};
|
|
10
10
|
const goal = await readGoal(options.goalPath);
|
|
11
|
-
await new ProjectDevLoop().develop(team, options.targetPath,
|
|
11
|
+
await new ProjectDevLoop().develop(team, options.targetPath, goal, options.achiveDir, options.maxIterations, options.maxTaskDevLoopIterations, options.projectProgressMemoryPath, options.codeDesignMemoryPath, options.maxMemoryRounds, options.memoryCleanInterval, options.callbacks, logRecord);
|
|
12
12
|
}
|
|
13
13
|
async function readGoal(goalPath) {
|
|
14
14
|
const goal = (await readFile(path.resolve(goalPath), "utf8")).trim();
|
|
@@ -22,10 +22,6 @@ export const developingArgsOptions = {
|
|
|
22
22
|
type: "string",
|
|
23
23
|
description: "Target repository folder to create or modify",
|
|
24
24
|
},
|
|
25
|
-
"coding-style-skill-path": {
|
|
26
|
-
type: "string",
|
|
27
|
-
description: "Coding style skill path used by the agents",
|
|
28
|
-
},
|
|
29
25
|
"goal-path": {
|
|
30
26
|
type: "string",
|
|
31
27
|
description: "Goal document path",
|
|
@@ -69,16 +65,14 @@ export const developingPipeline = definePipeline({
|
|
|
69
65
|
argsOptions: developingArgsOptions,
|
|
70
66
|
agentFactories,
|
|
71
67
|
async run(team, options) {
|
|
72
|
-
const { "target-path": targetPath, "
|
|
68
|
+
const { "target-path": targetPath, "goal-path": goalPath, "achive-dir": achiveDir, "max-iterations": maxIterations, "max-task-devloop-iterations": maxTaskDevLoopIterations, "project-progress-memory-path": projectProgressMemoryPath, "code-design-memory-path": codeDesignMemoryPath, "max-memory-rounds": maxMemoryRounds, "memory-clean-interval": memoryCleanInterval, callbacks, } = options;
|
|
73
69
|
if (targetPath === undefined ||
|
|
74
|
-
codingStyleSkillPath === undefined ||
|
|
75
70
|
goalPath === undefined ||
|
|
76
71
|
achiveDir === undefined ||
|
|
77
72
|
projectProgressMemoryPath === undefined ||
|
|
78
73
|
codeDesignMemoryPath === undefined) {
|
|
79
74
|
throw new Error([
|
|
80
75
|
"--target-path",
|
|
81
|
-
"--coding-style-skill-path",
|
|
82
76
|
"--goal-path",
|
|
83
77
|
"--achive-dir",
|
|
84
78
|
"--project-progress-memory-path",
|
|
@@ -87,7 +81,6 @@ export const developingPipeline = definePipeline({
|
|
|
87
81
|
}
|
|
88
82
|
await developing(team, {
|
|
89
83
|
targetPath,
|
|
90
|
-
codingStyleSkillPath,
|
|
91
84
|
goalPath,
|
|
92
85
|
achiveDir,
|
|
93
86
|
maxIterations: Number(maxIterations),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../src/pipeline/pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,GAIf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,cAAc,GAGf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"pipeline.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,EAC/C,mBAAmB,EAAE,eAAe,EACpC,uBAAuB,EAAE,mBAAmB,EAC5C,SAAS,GACV,GAAG,OAAO,CAAC;QACZ,IACE,UAAU,KAAK,SAAS;YACxB,QAAQ,KAAK,SAAS;YACtB,SAAS,KAAK,SAAS;YACvB,yBAAyB,KAAK,SAAS;YACvC,oBAAoB,KAAK,SAAS,EAClC,CAAC;YACD,MAAM,IAAI,KAAK,CACb;gBACE,eAAe;gBACf,aAAa;gBACb,cAAc;gBACd,gCAAgC;gBAChC,2BAA2B;aAC5B,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,eAAe,CAC/B,CAAC;QACJ,CAAC;QAED,MAAM,UAAU,CAAC,IAAI,EAAE;YACrB,UAAU;YACV,QAAQ;YACR,SAAS;YACT,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;YACpC,wBAAwB,EAAE,MAAM,CAAC,wBAAwB,CAAC;YAC1D,yBAAyB;YACzB,oBAAoB;YACpB,eAAe,EAAE,MAAM,CAAC,eAAe,CAAC;YACxC,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;YAChD,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC;SAClD,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -10,6 +10,6 @@ export type ProjectDevLoopCallbacks = {
|
|
|
10
10
|
onTaskFinish?: (agentVariables: DevelopingAgentVariables, taskBrief: string, taskResult: TaskDevLoopResult, thingsToRemember: string) => Promise<void> | void;
|
|
11
11
|
};
|
|
12
12
|
export declare class ProjectDevLoop {
|
|
13
|
-
develop(team: AgentTeam<ProjectDevLoopAgentVariablesByName>, targetPath: string,
|
|
13
|
+
develop(team: AgentTeam<ProjectDevLoopAgentVariablesByName>, targetPath: string, goal: string, achiveDir: string, maxIterations: number, maxTaskDevLoopIterations: number, projectProgressMemoryPath: string, codeDesignMemoryPath: string, maxMemoryRounds: number, memoryCleanInterval: number, callbacks?: ProjectDevLoopCallbacks, logRecord?: RecordCallback): Promise<void>;
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=project-devloop.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-devloop.d.ts","sourceRoot":"","sources":["../../src/pipeline/project-devloop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EAEV,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,KAAK,+BAA+B,EACpC,KAAK,iBAAiB,EACvB,MAAM,mBAAmB,CAAC;AAK3B,MAAM,MAAM,kCAAkC,GAAG,+BAA+B,GAAG;IACjF,gBAAgB,EAAE,sBAAsB,CAAC;CAC1C,GAAG,0BAA0B,CAAC;AAE/B,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,CAAC,EAAE,CACZ,cAAc,EAAE,wBAAwB,EACxC,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,CACb,cAAc,EAAE,wBAAwB,EACxC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,iBAAiB,EAC7B,gBAAgB,EAAE,MAAM,KACrB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,qBAAa,cAAc;IACnB,OAAO,CACX,IAAI,EAAE,SAAS,CAAC,kCAAkC,CAAC,EACnD,UAAU,EAAE,MAAM,EAClB,
|
|
1
|
+
{"version":3,"file":"project-devloop.d.ts","sourceRoot":"","sources":["../../src/pipeline/project-devloop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EAEV,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,KAAK,+BAA+B,EACpC,KAAK,iBAAiB,EACvB,MAAM,mBAAmB,CAAC;AAK3B,MAAM,MAAM,kCAAkC,GAAG,+BAA+B,GAAG;IACjF,gBAAgB,EAAE,sBAAsB,CAAC;CAC1C,GAAG,0BAA0B,CAAC;AAE/B,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,CAAC,EAAE,CACZ,cAAc,EAAE,wBAAwB,EACxC,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,CACb,cAAc,EAAE,wBAAwB,EACxC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,iBAAiB,EAC7B,gBAAgB,EAAE,MAAM,KACrB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,qBAAa,cAAc;IACnB,OAAO,CACX,IAAI,EAAE,SAAS,CAAC,kCAAkC,CAAC,EACnD,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,wBAAwB,EAAE,MAAM,EAChC,yBAAyB,EAAE,MAAM,EACjC,oBAAoB,EAAE,MAAM,EAC5B,eAAe,EAAE,MAAM,EACvB,mBAAmB,EAAE,MAAM,EAC3B,SAAS,CAAC,EAAE,uBAAuB,EACnC,SAAS,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,IAAI,CAAC;CAyIjB"}
|
|
@@ -4,10 +4,9 @@ import path from "node:path";
|
|
|
4
4
|
import { TaskDevLoop, } from "./task-devloop.js";
|
|
5
5
|
const PROJECT_STATE_MEMORY_DOMAIN_HINT = "Project progress memory for goals, completed tasks, current status, and task-selection context across project iterations.";
|
|
6
6
|
export class ProjectDevLoop {
|
|
7
|
-
async develop(team, targetPath,
|
|
7
|
+
async develop(team, targetPath, goal, achiveDir, maxIterations, maxTaskDevLoopIterations, projectProgressMemoryPath, codeDesignMemoryPath, maxMemoryRounds, memoryCleanInterval, callbacks, logRecord) {
|
|
8
8
|
const agentVariables = {
|
|
9
9
|
targetPath: path.resolve(targetPath),
|
|
10
|
-
codingStyleSkillPath: path.resolve(codingStyleSkillPath),
|
|
11
10
|
goal,
|
|
12
11
|
};
|
|
13
12
|
await mkdir(achiveDir, { recursive: true });
|
|
@@ -43,7 +42,7 @@ export class ProjectDevLoop {
|
|
|
43
42
|
}
|
|
44
43
|
await callbacks?.onTaskStart?.(agentVariables, taskBrief);
|
|
45
44
|
const cleanMemory = memoryCleanInterval > 0 && iteration % memoryCleanInterval === 0;
|
|
46
|
-
const taskResult = await taskDevLoop.develop(team, agentVariables.targetPath, agentVariables.
|
|
45
|
+
const taskResult = await taskDevLoop.develop(team, agentVariables.targetPath, agentVariables.goal, archiveDir, maxTaskDevLoopIterations, taskBrief, codeDesignMemoryPath, maxMemoryRounds, cleanMemory, logRecord);
|
|
47
46
|
if (taskResult.finalDecision === "REDIRECT" || taskResult.finalDecision === "FAILED") {
|
|
48
47
|
lastTaskRoundSummary = taskResult.taskRoundSummary;
|
|
49
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-devloop.js","sourceRoot":"","sources":["../../src/pipeline/project-devloop.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,uBAAuB,GAExB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,IAAI,MAAM,WAAW,CAAC;AAO7B,OAAO,EACL,WAAW,GAGZ,MAAM,mBAAmB,CAAC;AAE3B,MAAM,gCAAgC,GACpC,2HAA2H,CAAC;AAmB9H,MAAM,OAAO,cAAc;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EACJ,gCAAgC,EAChC,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,SAAS,CACV,CAAC;YAEF,MAAM,SAAS,EAAE,YAAY,EAAE,CAAC,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC;YAEzF,IAAI,WAAW,EAAE,CAAC;gBAChB,OAAO,CAAC,GAAG,CACT,yEAAyE,MAAM,CAAC,SAAS,CAAC,IAAI,CAC/F,CAAC;gBACF,MAAM,WAAW,CAAC,KAAK,CACrB,IAAI,EACJ,gCAAgC,EAChC,yBAAyB,EACzB,SAAS,CACV,CAAC;YACJ,CAAC;QACH,CAAC;QAED,MAAM,IAAI,KAAK,CACb,4BAA4B,MAAM,CAAC,aAAa,CAAC,+CAA+C,CACjG,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -11,7 +11,7 @@ export type TaskDevLoopResult = {
|
|
|
11
11
|
taskRoundSummary: string;
|
|
12
12
|
};
|
|
13
13
|
export declare class TaskDevLoop {
|
|
14
|
-
develop(team: AgentTeam<TaskDevLoopAgentVariablesByName>, targetPath: string,
|
|
14
|
+
develop(team: AgentTeam<TaskDevLoopAgentVariablesByName>, targetPath: string, goal: string, archiveDir: string, maxIterations: number, taskBrief: string, codeDesignMemoryPath: string, maxMemoryRounds: number, cleanMemory?: boolean, logRecord?: RecordCallback): Promise<TaskDevLoopResult>;
|
|
15
15
|
}
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=task-devloop.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-devloop.d.ts","sourceRoot":"","sources":["../../src/pipeline/task-devloop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EAExB,MAAM,o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oBAAoB,EAAE,MAAM,EAC5B,eAAe,EAAE,MAAM,EACvB,WAAW,CAAC,EAAE,OAAO,EACrB,SAAS,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,iBAAiB,CAAC;CAsK9B"}
|
|
@@ -3,10 +3,9 @@ import { mkdir, writeFile } from "node:fs/promises";
|
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
const CODE_DESIGN_MEMORY_DOMAIN_HINT = "Code design memory for logic relationships between code, design rationale, invariants, and implementation decisions in the target repository.";
|
|
5
5
|
export class TaskDevLoop {
|
|
6
|
-
async develop(team, targetPath,
|
|
6
|
+
async develop(team, targetPath, goal, archiveDir, maxIterations, taskBrief, codeDesignMemoryPath, maxMemoryRounds, cleanMemory, logRecord) {
|
|
7
7
|
const agentVariables = {
|
|
8
8
|
targetPath,
|
|
9
|
-
codingStyleSkillPath,
|
|
10
9
|
goal,
|
|
11
10
|
};
|
|
12
11
|
await mkdir(archiveDir, { recursive: true });
|