academic-army 0.1.0 → 0.1.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.
Files changed (106) hide show
  1. package/dist/cli.d.ts +2 -0
  2. package/dist/cli.d.ts.map +1 -0
  3. package/dist/cli.js +46 -0
  4. package/dist/cli.js.map +1 -0
  5. package/dist/developing/agents/developer.d.ts +9 -0
  6. package/dist/developing/agents/developer.d.ts.map +1 -0
  7. package/dist/developing/agents/developer.js +34 -0
  8. package/dist/developing/agents/developer.js.map +1 -0
  9. package/dist/developing/agents/factory.d.ts +3 -0
  10. package/dist/developing/agents/factory.d.ts.map +1 -0
  11. package/dist/developing/agents/factory.js +9 -0
  12. package/dist/developing/agents/factory.js.map +1 -0
  13. package/{src/developing/agents/index.ts → dist/developing/agents/index.d.ts} +2 -4
  14. package/dist/developing/agents/index.d.ts.map +1 -0
  15. package/dist/developing/agents/index.js +6 -0
  16. package/dist/developing/agents/index.js.map +1 -0
  17. package/dist/developing/agents/manager.d.ts +19 -0
  18. package/dist/developing/agents/manager.d.ts.map +1 -0
  19. package/dist/developing/agents/manager.js +56 -0
  20. package/dist/developing/agents/manager.js.map +1 -0
  21. package/dist/developing/agents/prompts.d.ts +3 -0
  22. package/dist/developing/agents/prompts.d.ts.map +1 -0
  23. package/dist/developing/agents/prompts.js +12 -0
  24. package/dist/developing/agents/prompts.js.map +1 -0
  25. package/dist/developing/agents/reviewer.d.ts +10 -0
  26. package/dist/developing/agents/reviewer.d.ts.map +1 -0
  27. package/dist/developing/agents/reviewer.js +35 -0
  28. package/dist/developing/agents/reviewer.js.map +1 -0
  29. package/dist/developing/agents/trajectory-optimizer.d.ts +19 -0
  30. package/dist/developing/agents/trajectory-optimizer.d.ts.map +1 -0
  31. package/{src/developing/agents/trajectory-optimizer.ts → dist/developing/agents/trajectory-optimizer.js} +9 -28
  32. package/dist/developing/agents/trajectory-optimizer.js.map +1 -0
  33. package/dist/developing/agents/types.d.ts +19 -0
  34. package/dist/developing/agents/types.d.ts.map +1 -0
  35. package/dist/developing/agents/types.js +21 -0
  36. package/dist/developing/agents/types.js.map +1 -0
  37. package/dist/developing/index.d.ts +3 -0
  38. package/dist/developing/index.d.ts.map +1 -0
  39. package/{src/developing/index.ts → dist/developing/index.js} +1 -0
  40. package/dist/developing/index.js.map +1 -0
  41. package/dist/developing/pipeline.d.ts +31 -0
  42. package/dist/developing/pipeline.d.ts.map +1 -0
  43. package/dist/developing/pipeline.js +175 -0
  44. package/dist/developing/pipeline.js.map +1 -0
  45. package/dist/developing/pipelineskill.d.ts +15 -0
  46. package/dist/developing/pipelineskill.d.ts.map +1 -0
  47. package/dist/developing/pipelineskill.js +110 -0
  48. package/dist/developing/pipelineskill.js.map +1 -0
  49. package/dist/evolve-skill/agents/evaluator.d.ts +10 -0
  50. package/dist/evolve-skill/agents/evaluator.d.ts.map +1 -0
  51. package/{src/evolve-skill/agents/evaluator.ts → dist/evolve-skill/agents/evaluator.js} +6 -12
  52. package/dist/evolve-skill/agents/evaluator.js.map +1 -0
  53. package/dist/evolve-skill/agents/factory.d.ts +3 -0
  54. package/dist/evolve-skill/agents/factory.d.ts.map +1 -0
  55. package/dist/evolve-skill/agents/factory.js +9 -0
  56. package/dist/evolve-skill/agents/factory.js.map +1 -0
  57. package/{src/evolve-skill/agents/index.ts → dist/evolve-skill/agents/index.d.ts} +1 -0
  58. package/dist/evolve-skill/agents/index.d.ts.map +1 -0
  59. package/dist/evolve-skill/agents/index.js +5 -0
  60. package/dist/evolve-skill/agents/index.js.map +1 -0
  61. package/dist/evolve-skill/agents/modifier.d.ts +10 -0
  62. package/dist/evolve-skill/agents/modifier.d.ts.map +1 -0
  63. package/{src/evolve-skill/agents/modifier.ts → dist/evolve-skill/agents/modifier.js} +6 -12
  64. package/dist/evolve-skill/agents/modifier.js.map +1 -0
  65. package/dist/evolve-skill/agents/runner.d.ts +10 -0
  66. package/dist/evolve-skill/agents/runner.d.ts.map +1 -0
  67. package/dist/evolve-skill/agents/runner.js +13 -0
  68. package/dist/evolve-skill/agents/runner.js.map +1 -0
  69. package/dist/evolve-skill/index.d.ts +2 -0
  70. package/dist/evolve-skill/index.d.ts.map +1 -0
  71. package/dist/evolve-skill/index.js +2 -0
  72. package/dist/evolve-skill/index.js.map +1 -0
  73. package/dist/evolve-skill/pipeline.d.ts +19 -0
  74. package/dist/evolve-skill/pipeline.d.ts.map +1 -0
  75. package/dist/evolve-skill/pipeline.js +74 -0
  76. package/dist/evolve-skill/pipeline.js.map +1 -0
  77. package/dist/pipeline.d.ts +13 -0
  78. package/dist/pipeline.d.ts.map +1 -0
  79. package/dist/pipeline.js +24 -0
  80. package/dist/pipeline.js.map +1 -0
  81. package/package.json +37 -3
  82. package/.editorconfig +0 -9
  83. package/.github/workflows/publish.yml +0 -44
  84. package/.prettierrc.json +0 -3
  85. package/eslint.config.js +0 -28
  86. package/src/README.md +0 -79
  87. package/src/README.zh-CN.md +0 -79
  88. package/src/cli.ts +0 -55
  89. package/src/developing/README.md +0 -146
  90. package/src/developing/README.zh-CN.md +0 -146
  91. package/src/developing/agents/developer.ts +0 -40
  92. package/src/developing/agents/factory.ts +0 -11
  93. package/src/developing/agents/manager.ts +0 -74
  94. package/src/developing/agents/prompts.ts +0 -12
  95. package/src/developing/agents/reviewer.ts +0 -44
  96. package/src/developing/agents/types.ts +0 -41
  97. package/src/developing/pipeline.ts +0 -306
  98. package/src/developing/pipelineskill.ts +0 -169
  99. package/src/evolve-skill/README.md +0 -116
  100. package/src/evolve-skill/README.zh-CN.md +0 -116
  101. package/src/evolve-skill/agents/factory.ts +0 -11
  102. package/src/evolve-skill/agents/runner.ts +0 -19
  103. package/src/evolve-skill/index.ts +0 -1
  104. package/src/evolve-skill/pipeline.ts +0 -140
  105. package/src/pipeline.ts +0 -65
  106. package/tsconfig.json +0 -22
package/dist/cli.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
package/dist/cli.js ADDED
@@ -0,0 +1,46 @@
1
+ import { runPipelineCli } from "./pipeline.js";
2
+ import { developingPipeline, developingSkillPipeline } from "./developing/index.js";
3
+ import { evolveSkillPipeline } from "./evolve-skill/index.js";
4
+ function defineCli(entry) {
5
+ return {
6
+ name: entry.name,
7
+ description: entry.description,
8
+ run: (args) => runPipelineCli(entry.definition, args),
9
+ };
10
+ }
11
+ const cliDefinitions = [
12
+ defineCli({
13
+ name: "developing",
14
+ description: "Run the code development loop.",
15
+ definition: developingPipeline,
16
+ }),
17
+ defineCli({
18
+ name: "developing-skill",
19
+ description: "Run the code development loop and evolve its skill.",
20
+ definition: developingSkillPipeline,
21
+ }),
22
+ defineCli({
23
+ name: "evolve-skill",
24
+ description: "Run the skill evolution loop.",
25
+ definition: evolveSkillPipeline,
26
+ }),
27
+ ];
28
+ function buildHelp() {
29
+ const pipelineList = cliDefinitions
30
+ .map((pipeline) => ` ${pipeline.name.padEnd(16)} ${pipeline.description}`)
31
+ .join("\n");
32
+ return `Usage: npm run cli -- <pipeline> [...args]
33
+
34
+ Available pipelines:
35
+ ${pipelineList}`;
36
+ }
37
+ const [pipelineName, ...pipelineArgs] = process.argv.slice(2);
38
+ const pipelineDefinition = cliDefinitions.find((pipeline) => pipeline.name === pipelineName);
39
+ if (pipelineDefinition === undefined) {
40
+ console.log(buildHelp());
41
+ process.exitCode = 1;
42
+ }
43
+ else {
44
+ await pipelineDefinition.run(pipelineArgs);
45
+ }
46
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,cAAc,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,SAAS,SAAS,CAAwD,KAIzE;IACC,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,GAAG,EAAE,CAAC,IAAuB,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,UAAU,EAAE,IAAI,CAAC;KACzE,CAAC;AACJ,CAAC;AAED,MAAM,cAAc,GAAG;IACrB,SAAS,CAAC;QACR,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,gCAAgC;QAC7C,UAAU,EAAE,kBAAkB;KAC/B,CAAC;IACF,SAAS,CAAC;QACR,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,qDAAqD;QAClE,UAAU,EAAE,uBAAuB;KACpC,CAAC;IACF,SAAS,CAAC;QACR,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,+BAA+B;QAC5C,UAAU,EAAE,mBAAmB;KAChC,CAAC;CACM,CAAC;AAEX,SAAS,SAAS;IAChB,MAAM,YAAY,GAAG,cAAc;SAChC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,KAAK,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;SAC1E,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,OAAO;;;EAGP,YAAY,EAAE,CAAC;AACjB,CAAC;AAED,MAAM,CAAC,YAAY,EAAE,GAAG,YAAY,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC9D,MAAM,kBAAkB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,YAAY,CAAC,CAAC;AAE7F,IAAI,kBAAkB,KAAK,SAAS,EAAE,CAAC;IACrC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC;IACzB,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC;KAAM,CAAC;IACN,MAAM,kBAAkB,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;AAC7C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { DevelopingAgent, type DevelopingAgentVariables } from "./types.js";
2
+ export type DeveloperVariables = DevelopingAgentVariables & {
3
+ currentTask: string;
4
+ reviewerReport?: string;
5
+ };
6
+ export declare class DeveloperAgent extends DevelopingAgent<DeveloperVariables> {
7
+ protected buildPrompt(variables: Readonly<DeveloperVariables>): string;
8
+ }
9
+ //# sourceMappingURL=developer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"developer.d.ts","sourceRoot":"","sources":["../../../src/developing/agents/developer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE5E,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,qBAAa,cAAe,SAAQ,eAAe,CAAC,kBAAkB,CAAC;IACrE,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GAAG,MAAM;CA8BvE"}
@@ -0,0 +1,34 @@
1
+ import { codingStyleSkillInstruction } from "./prompts.js";
2
+ import { DevelopingAgent } from "./types.js";
3
+ export class DeveloperAgent extends DevelopingAgent {
4
+ buildPrompt(variables) {
5
+ const codingStyleSkillPath = this.workspaceRelativePath(variables.codingStyleSkillPath);
6
+ const targetPath = this.workspaceRelativePath(variables.targetPath);
7
+ const paperBlueprintPath = this.workspaceRelativePath(variables.paperBlueprintPath);
8
+ const experimentPlanPath = this.workspaceRelativePath(variables.experimentPlanPath);
9
+ const codingPlanPath = this.workspaceRelativePath(variables.codingPlanPath);
10
+ const reviewerReport = variables.reviewerReport ?? "(none)";
11
+ const codingStyleSkillInstructionText = codingStyleSkillInstruction(codingStyleSkillPath);
12
+ return `
13
+ ${codingStyleSkillInstructionText}
14
+
15
+ Work only in the target repository at ${targetPath}/.
16
+
17
+ Read:
18
+ - paper blueprint: ${paperBlueprintPath}
19
+ - experiment plan: ${experimentPlanPath}
20
+ - coding plan: ${codingPlanPath}
21
+
22
+ Current developer task:
23
+ ${variables.currentTask}
24
+
25
+ Reviewer report:
26
+ ${reviewerReport}
27
+
28
+ Modify the target repository code for the current task. If a reviewer report is present, update the code according to that report.
29
+
30
+ Output a concise developer report with the main changes.
31
+ `;
32
+ }
33
+ }
34
+ //# sourceMappingURL=developer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"developer.js","sourceRoot":"","sources":["../../../src/developing/agents/developer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAiC,MAAM,YAAY,CAAC;AAO5E,MAAM,OAAO,cAAe,SAAQ,eAAmC;IAC3D,WAAW,CAAC,SAAuC;QAC3D,MAAM,oBAAoB,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;QACxF,MAAM,UAAU,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACpE,MAAM,kBAAkB,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QACpF,MAAM,kBAAkB,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QACpF,MAAM,cAAc,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAC5E,MAAM,cAAc,GAAG,SAAS,CAAC,cAAc,IAAI,QAAQ,CAAC;QAC5D,MAAM,+BAA+B,GAAG,2BAA2B,CAAC,oBAAoB,CAAC,CAAC;QAE1F,OAAO;EACT,+BAA+B;;wCAEO,UAAU;;;qBAG7B,kBAAkB;qBAClB,kBAAkB;iBACtB,cAAc;;;EAG7B,SAAS,CAAC,WAAW;;;EAGrB,cAAc;;;;;CAKf,CAAC;IACA,CAAC;CACF"}
@@ -0,0 +1,3 @@
1
+ import type { AgentFactoryMap } from "coding-agent-forge";
2
+ export declare const agentFactories: AgentFactoryMap;
3
+ //# sourceMappingURL=factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/developing/agents/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAM1D,eAAO,MAAM,cAAc,EAAE,eAI5B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { DeveloperAgent } from "./developer.js";
2
+ import { CodingManagerAgent } from "./manager.js";
3
+ import { CodeReviewerAgent } from "./reviewer.js";
4
+ export const agentFactories = {
5
+ "coding-manager": (thread, constants) => new CodingManagerAgent(thread, constants),
6
+ developer: (thread, constants) => new DeveloperAgent(thread, constants),
7
+ "code-reviewer": (thread, constants) => new CodeReviewerAgent(thread, constants),
8
+ };
9
+ //# sourceMappingURL=factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../src/developing/agents/factory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,MAAM,CAAC,MAAM,cAAc,GAAoB;IAC7C,gBAAgB,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,IAAI,kBAAkB,CAAC,MAAM,EAAE,SAAS,CAAC;IAClF,SAAS,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,IAAI,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC;IACvE,eAAe,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,IAAI,iBAAiB,CAAC,MAAM,EAAE,SAAS,CAAC;CACjF,CAAC"}
@@ -1,8 +1,6 @@
1
1
  export { CodingManagerAgent, type CodingManagerVariables } from "./manager.js";
2
2
  export { DeveloperAgent, type DeveloperVariables } from "./developer.js";
3
3
  export { CodeReviewerAgent, type CodeReviewerVariables } from "./reviewer.js";
4
- export {
5
- TrajectoryOptimizerAgent,
6
- type TrajectoryOptimizerVariables,
7
- } from "./trajectory-optimizer.js";
4
+ export { TrajectoryOptimizerAgent, type TrajectoryOptimizerVariables, } from "./trajectory-optimizer.js";
8
5
  export { agentFactories } from "./factory.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/developing/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,KAAK,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EACL,wBAAwB,EACxB,KAAK,4BAA4B,GAClC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { CodingManagerAgent } from "./manager.js";
2
+ export { DeveloperAgent } from "./developer.js";
3
+ export { CodeReviewerAgent } from "./reviewer.js";
4
+ export { TrajectoryOptimizerAgent, } from "./trajectory-optimizer.js";
5
+ export { agentFactories } from "./factory.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/developing/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA+B,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAE,cAAc,EAA2B,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAA8B,MAAM,eAAe,CAAC;AAC9E,OAAO,EACL,wBAAwB,GAEzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { DevelopingAgent, type DevelopingAgentVariables } from "./types.js";
2
+ type SelectCodingManagerVariables = DevelopingAgentVariables & {
3
+ todoPath: string;
4
+ finishMark: string;
5
+ phase: "select";
6
+ };
7
+ type UpdateCodingManagerVariables = DevelopingAgentVariables & {
8
+ todoPath: string;
9
+ finishMark: string;
10
+ phase: "update";
11
+ currentTask: string;
12
+ revisionReport: string;
13
+ };
14
+ export type CodingManagerVariables = SelectCodingManagerVariables | UpdateCodingManagerVariables;
15
+ export declare class CodingManagerAgent extends DevelopingAgent<CodingManagerVariables> {
16
+ protected buildPrompt(variables: Readonly<CodingManagerVariables>): string;
17
+ }
18
+ export {};
19
+ //# sourceMappingURL=manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../src/developing/agents/manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE5E,KAAK,4BAA4B,GAAG,wBAAwB,GAAG;IAC7D,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,QAAQ,CAAC;CACjB,CAAC;AAEF,KAAK,4BAA4B,GAAG,wBAAwB,GAAG;IAC7D,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,QAAQ,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,4BAA4B,GAAG,4BAA4B,CAAC;AAEjG,qBAAa,kBAAmB,SAAQ,eAAe,CAAC,sBAAsB,CAAC;IAC7E,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GAAG,MAAM;CAqD3E"}
@@ -0,0 +1,56 @@
1
+ import { codingStyleSkillInstruction, goalInstruction } from "./prompts.js";
2
+ import { DevelopingAgent } from "./types.js";
3
+ export class CodingManagerAgent extends DevelopingAgent {
4
+ buildPrompt(variables) {
5
+ const codingStyleSkillPath = this.workspaceRelativePath(variables.codingStyleSkillPath);
6
+ const targetPath = this.workspaceRelativePath(variables.targetPath);
7
+ const paperBlueprintPath = this.workspaceRelativePath(variables.paperBlueprintPath);
8
+ const experimentPlanPath = this.workspaceRelativePath(variables.experimentPlanPath);
9
+ const codingPlanPath = this.workspaceRelativePath(variables.codingPlanPath);
10
+ const todoPath = this.workspaceRelativePath(variables.todoPath);
11
+ const codingStyleSkillInstructionText = codingStyleSkillInstruction(codingStyleSkillPath);
12
+ const goalInstructionText = goalInstruction(variables.goal);
13
+ if (variables.phase === "update") {
14
+ return `
15
+ ${codingStyleSkillInstructionText}
16
+
17
+ Update the TODO file after a developer task.
18
+ Work only in the TODO file at ${todoPath}. Scan the target repository at ${targetPath}/ before editing it.
19
+
20
+ Read:
21
+ - paper blueprint: ${paperBlueprintPath}
22
+ - experiment plan: ${experimentPlanPath}
23
+ - coding plan: ${codingPlanPath}
24
+ ${goalInstructionText}
25
+
26
+ Current developer task:
27
+ ${variables.currentTask}
28
+
29
+ Revision report:
30
+ ${variables.revisionReport}
31
+
32
+ The revision report lists each Developer report and Reviewer report from the review loop, ending with whether the Reviewer accepted the changes or the loop reached the max revision iterations.
33
+
34
+ Update the TODO so completed work and future developer tasks match the current repository. If you find a better future plan, update it too.
35
+ `;
36
+ }
37
+ return `
38
+ ${codingStyleSkillInstructionText}
39
+
40
+ Select the next developer task for the target repository.
41
+ Scan the target repository at ${targetPath}/ and the TODO file at ${todoPath}.
42
+
43
+ Read:
44
+ - paper blueprint: ${paperBlueprintPath}
45
+ - experiment plan: ${experimentPlanPath}
46
+ - coding plan: ${codingPlanPath}
47
+ ${goalInstructionText}
48
+
49
+ Choose exactly one new bounded task for the Developer.
50
+
51
+ When no further developer task is needed, return exactly:
52
+ ${variables.finishMark}
53
+ `;
54
+ }
55
+ }
56
+ //# sourceMappingURL=manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manager.js","sourceRoot":"","sources":["../../../src/developing/agents/manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAiC,MAAM,YAAY,CAAC;AAkB5E,MAAM,OAAO,kBAAmB,SAAQ,eAAuC;IACnE,WAAW,CAAC,SAA2C;QAC/D,MAAM,oBAAoB,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;QACxF,MAAM,UAAU,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACpE,MAAM,kBAAkB,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QACpF,MAAM,kBAAkB,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QACpF,MAAM,cAAc,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAC5E,MAAM,QAAQ,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAChE,MAAM,+BAA+B,GAAG,2BAA2B,CAAC,oBAAoB,CAAC,CAAC;QAC1F,MAAM,mBAAmB,GAAG,eAAe,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAE5D,IAAI,SAAS,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YACjC,OAAO;EACX,+BAA+B;;;gCAGD,QAAQ,mCAAmC,UAAU;;;qBAGhE,kBAAkB;qBAClB,kBAAkB;iBACtB,cAAc;EAC7B,mBAAmB;;;EAGnB,SAAS,CAAC,WAAW;;;EAGrB,SAAS,CAAC,cAAc;;;;;CAKzB,CAAC;QACE,CAAC;QAED,OAAO;EACT,+BAA+B;;;gCAGD,UAAU,0BAA0B,QAAQ;;;qBAGvD,kBAAkB;qBAClB,kBAAkB;iBACtB,cAAc;EAC7B,mBAAmB;;;;;EAKnB,SAAS,CAAC,UAAU;CACrB,CAAC;IACA,CAAC;CACF"}
@@ -0,0 +1,3 @@
1
+ export declare function codingStyleSkillInstruction(codingStyleSkillPath: string): string;
2
+ export declare function goalInstruction(goal: string): string;
3
+ //# sourceMappingURL=prompts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/developing/agents/prompts.ts"],"names":[],"mappings":"AAAA,wBAAgB,2BAA2B,CAAC,oBAAoB,EAAE,MAAM,GAAG,MAAM,CAEhF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOpD"}
@@ -0,0 +1,12 @@
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
+ export function goalInstruction(goal) {
5
+ return `
6
+ Current goal:
7
+ ${goal}
8
+
9
+ Use this goal as the current high-level objective.
10
+ `;
11
+ }
12
+ //# sourceMappingURL=prompts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/developing/agents/prompts.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,2BAA2B,CAAC,oBAA4B;IACtE,OAAO,gCAAgC,oBAAoB,iGAAiG,CAAC;AAC/J,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,OAAO;;EAEP,IAAI;;;CAGL,CAAC;AACF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { DevelopingAgent, type DevelopingAgentVariables } from "./types.js";
2
+ export type CodeReviewerVariables = DevelopingAgentVariables & {
3
+ acceptMark: string;
4
+ currentTask: string;
5
+ developerReport: string;
6
+ };
7
+ export declare class CodeReviewerAgent extends DevelopingAgent<CodeReviewerVariables> {
8
+ protected buildPrompt(variables: Readonly<CodeReviewerVariables>): string;
9
+ }
10
+ //# sourceMappingURL=reviewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reviewer.d.ts","sourceRoot":"","sources":["../../../src/developing/agents/reviewer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE5E,MAAM,MAAM,qBAAqB,GAAG,wBAAwB,GAAG;IAC7D,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,eAAe,CAAC,qBAAqB,CAAC;IAC3E,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GAAG,MAAM;CAiC1E"}
@@ -0,0 +1,35 @@
1
+ import { codingStyleSkillInstruction } from "./prompts.js";
2
+ import { DevelopingAgent } from "./types.js";
3
+ export class CodeReviewerAgent extends DevelopingAgent {
4
+ buildPrompt(variables) {
5
+ const codingStyleSkillPath = this.workspaceRelativePath(variables.codingStyleSkillPath);
6
+ const targetPath = this.workspaceRelativePath(variables.targetPath);
7
+ const paperBlueprintPath = this.workspaceRelativePath(variables.paperBlueprintPath);
8
+ const experimentPlanPath = this.workspaceRelativePath(variables.experimentPlanPath);
9
+ const codingPlanPath = this.workspaceRelativePath(variables.codingPlanPath);
10
+ const codingStyleSkillInstructionText = codingStyleSkillInstruction(codingStyleSkillPath);
11
+ return (codingStyleSkillInstructionText +
12
+ `
13
+
14
+ Review the current developer task result. Read only.
15
+
16
+ Read:
17
+ - target repository: ${targetPath}
18
+ - paper blueprint: ${paperBlueprintPath}
19
+ - experiment plan: ${experimentPlanPath}
20
+ - coding plan: ${codingPlanPath}
21
+
22
+ Current developer task:
23
+ ${variables.currentTask}
24
+
25
+ Developer report:
26
+ ${variables.developerReport}
27
+
28
+ If the code for the current task is complete and needs no more changes, output exactly:
29
+ ${variables.acceptMark}
30
+
31
+ Otherwise output the revision feedback for the Developer.
32
+ `);
33
+ }
34
+ }
35
+ //# sourceMappingURL=reviewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reviewer.js","sourceRoot":"","sources":["../../../src/developing/agents/reviewer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAiC,MAAM,YAAY,CAAC;AAQ5E,MAAM,OAAO,iBAAkB,SAAQ,eAAsC;IACjE,WAAW,CAAC,SAA0C;QAC9D,MAAM,oBAAoB,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;QACxF,MAAM,UAAU,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACpE,MAAM,kBAAkB,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QACpF,MAAM,kBAAkB,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QACpF,MAAM,cAAc,GAAG,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAC5E,MAAM,+BAA+B,GAAG,2BAA2B,CAAC,oBAAoB,CAAC,CAAC;QAE1F,OAAO,CACL,+BAA+B;YAC/B;;;;;uBAKiB,UAAU;qBACZ,kBAAkB;qBAClB,kBAAkB;iBACtB,cAAc;;;EAG7B,SAAS,CAAC,WAAW;;;EAGrB,SAAS,CAAC,eAAe;;;EAGzB,SAAS,CAAC,UAAU;;;CAGrB,CACI,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,19 @@
1
+ import { Agent } from "coding-agent-forge/agent";
2
+ import type { DevelopingAgentVariables } from "./types.js";
3
+ type ScanTrajectoryOptimizerVariables = DevelopingAgentVariables & {
4
+ phase: "scan";
5
+ currentTask: string;
6
+ };
7
+ type OptimizeTrajectoryOptimizerVariables = DevelopingAgentVariables & {
8
+ phase: "optimize";
9
+ currentTask: string;
10
+ revisionReport: string;
11
+ todoUpdateReport: string;
12
+ metaskillPath: string;
13
+ };
14
+ export type TrajectoryOptimizerVariables = ScanTrajectoryOptimizerVariables | OptimizeTrajectoryOptimizerVariables;
15
+ export declare class TrajectoryOptimizerAgent extends Agent<TrajectoryOptimizerVariables> {
16
+ protected buildPrompt(variables: Readonly<TrajectoryOptimizerVariables>): string;
17
+ }
18
+ export {};
19
+ //# sourceMappingURL=trajectory-optimizer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trajectory-optimizer.d.ts","sourceRoot":"","sources":["../../../src/developing/agents/trajectory-optimizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D,KAAK,gCAAgC,GAAG,wBAAwB,GAAG;IACjE,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,oCAAoC,GAAG,wBAAwB,GAAG;IACrE,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GACpC,gCAAgC,GAChC,oCAAoC,CAAC;AAEzC,qBAAa,wBAAyB,SAAQ,KAAK,CAAC,4BAA4B,CAAC;IAC/E,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,MAAM;CA+CjF"}
@@ -1,28 +1,9 @@
1
1
  import { Agent } from "coding-agent-forge/agent";
2
2
  import { readFileSync } from "node:fs";
3
- import type { DevelopingAgentVariables } from "./types.js";
4
-
5
- type ScanTrajectoryOptimizerVariables = DevelopingAgentVariables & {
6
- phase: "scan";
7
- currentTask: string;
8
- };
9
-
10
- type OptimizeTrajectoryOptimizerVariables = DevelopingAgentVariables & {
11
- phase: "optimize";
12
- currentTask: string;
13
- revisionReport: string;
14
- todoUpdateReport: string;
15
- metaskillPath: string;
16
- };
17
-
18
- export type TrajectoryOptimizerVariables =
19
- | ScanTrajectoryOptimizerVariables
20
- | OptimizeTrajectoryOptimizerVariables;
21
-
22
- export class TrajectoryOptimizerAgent extends Agent<TrajectoryOptimizerVariables> {
23
- protected buildPrompt(variables: Readonly<TrajectoryOptimizerVariables>): string {
24
- if (variables.phase === "scan") {
25
- return `
3
+ export class TrajectoryOptimizerAgent extends Agent {
4
+ buildPrompt(variables) {
5
+ if (variables.phase === "scan") {
6
+ return `
26
7
  Read only. Scan the target repository before the Developer starts the current task.
27
8
 
28
9
  Read:
@@ -37,10 +18,9 @@ ${variables.currentTask}
37
18
 
38
19
  Output a concise baseline of the repository state relevant to this task and the main guidance the skill should provide.
39
20
  `;
40
- }
41
-
42
- const metaskill = readFileSync(variables.metaskillPath, "utf8");
43
- return `
21
+ }
22
+ const metaskill = readFileSync(variables.metaskillPath, "utf8");
23
+ return `
44
24
  Revise the skill at ${variables.codingStyleSkillPath} so it produces better development trajectories.
45
25
 
46
26
  The metaskill below contains the design goals and tips of this skill:
@@ -66,5 +46,6 @@ Evaluate whether the skill produced a good modification trajectory, then edit th
66
46
 
67
47
  Output a concise optimizer report with the main skill changes.
68
48
  `;
69
- }
49
+ }
70
50
  }
51
+ //# sourceMappingURL=trajectory-optimizer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trajectory-optimizer.js","sourceRoot":"","sources":["../../../src/developing/agents/trajectory-optimizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAoBvC,MAAM,OAAO,wBAAyB,SAAQ,KAAmC;IACrE,WAAW,CAAC,SAAiD;QACrE,IAAI,SAAS,CAAC,KAAK,KAAK,MAAM,EAAE,CAAC;YAC/B,OAAO;;;;WAIF,SAAS,CAAC,oBAAoB;uBAClB,SAAS,CAAC,UAAU;qBACtB,SAAS,CAAC,kBAAkB;qBAC5B,SAAS,CAAC,kBAAkB;iBAChC,SAAS,CAAC,cAAc;;;EAGvC,SAAS,CAAC,WAAW;;;CAGtB,CAAC;QACE,CAAC;QAED,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QAChE,OAAO;sBACW,SAAS,CAAC,oBAAoB;;;;EAIlD,SAAS;;;uBAGY,SAAS,CAAC,UAAU;qBACtB,SAAS,CAAC,kBAAkB;qBAC5B,SAAS,CAAC,kBAAkB;iBAChC,SAAS,CAAC,cAAc;;;EAGvC,SAAS,CAAC,WAAW;;;EAGrB,SAAS,CAAC,cAAc;;;EAGxB,SAAS,CAAC,gBAAgB;;;;;CAK3B,CAAC;IACA,CAAC;CACF"}
@@ -0,0 +1,19 @@
1
+ import type { PromptConstants, Thread } from "coding-agent-forge";
2
+ import { Agent } from "coding-agent-forge/agent";
3
+ export type DevelopingAgentVariables = {
4
+ targetPath: string;
5
+ codingStyleSkillPath: string;
6
+ paperBlueprintPath: string;
7
+ experimentPlanPath: string;
8
+ codingPlanPath: string;
9
+ goal: string;
10
+ };
11
+ export type DevelopingAgentConstants = {
12
+ workspacePath: string;
13
+ };
14
+ export declare abstract class DevelopingAgent<Variables extends DevelopingAgentVariables> extends Agent<Variables, DevelopingAgentConstants> {
15
+ protected readonly workspacePath: string;
16
+ constructor(thread: Thread, constants: Readonly<PromptConstants>);
17
+ protected workspaceRelativePath(filePath: string): string;
18
+ }
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/developing/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,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,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"}
@@ -0,0 +1,21 @@
1
+ import { Agent } from "coding-agent-forge/agent";
2
+ import { statSync } from "node:fs";
3
+ import path from "node:path";
4
+ export class DevelopingAgent extends Agent {
5
+ workspacePath;
6
+ constructor(thread, constants) {
7
+ if (!constants.workspacePath) {
8
+ throw new Error("Developing agent constants.workspacePath must be configured.");
9
+ }
10
+ const workspacePath = path.resolve(constants.workspacePath);
11
+ if (!statSync(workspacePath).isDirectory()) {
12
+ throw new Error(`workspacePath must be a directory: ${workspacePath}`);
13
+ }
14
+ super(thread, { workspacePath });
15
+ this.workspacePath = workspacePath;
16
+ }
17
+ workspaceRelativePath(filePath) {
18
+ return path.relative(this.workspacePath, path.resolve(filePath)) || ".";
19
+ }
20
+ }
21
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/developing/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;AAe7B,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"}
@@ -0,0 +1,3 @@
1
+ export * from "./pipeline.js";
2
+ export * from "./pipelineskill.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/developing/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from "./pipeline.js";
2
2
  export * from "./pipelineskill.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/developing/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { AgentTeam } from "coding-agent-forge";
2
+ import { type ParsedPipelineArgs } from "../pipeline.js";
3
+ import { type CodingManagerVariables, type CodeReviewerVariables, type DeveloperVariables } from "./agents/index.js";
4
+ import type { DevelopingAgentVariables } from "./agents/types.js";
5
+ export type DevelopingAgentVariablesByName = {
6
+ "coding-manager": CodingManagerVariables;
7
+ developer: DeveloperVariables;
8
+ "code-reviewer": CodeReviewerVariables;
9
+ };
10
+ export type DevelopingOptions = {
11
+ targetPath: string;
12
+ achiveDir: string;
13
+ artifactPath: string;
14
+ codingStyleSkillPath: string;
15
+ paperBlueprintPath: string;
16
+ experimentPlanPath: string;
17
+ codingPlanPath: string;
18
+ goalPath: string;
19
+ maxIterations: number;
20
+ maxRevisionIterations: number;
21
+ hooks?: DevelopingHooks;
22
+ };
23
+ export type DevelopingHooks = {
24
+ beforeRevisionLoop?: (agentVariables: DevelopingAgentVariables, currentTask: string) => Promise<void> | void;
25
+ afterRevision?: (revision: number, agentVariables: DevelopingAgentVariables, currentTask: string, developerReport: string, reviewerReport: string, revisionReports: readonly string[]) => Promise<void> | void;
26
+ afterTodoUpdate?: (agentVariables: DevelopingAgentVariables, currentTask: string, revisionReport: string, todoUpdateReport: string) => Promise<void> | void;
27
+ };
28
+ export declare function parseDevelopingArgs(args: readonly string[]): ParsedPipelineArgs<DevelopingOptions>;
29
+ export declare function developing(team: AgentTeam<DevelopingAgentVariablesByName>, options: DevelopingOptions): Promise<void>;
30
+ export declare const developingPipeline: import("../pipeline.js").PipelineDefinition<DevelopingAgentVariablesByName, DevelopingOptions>;
31
+ //# sourceMappingURL=pipeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../src/developing/pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAuB,MAAM,oBAAoB,CAAC;AAKpE,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAElE,MAAM,MAAM,8BAA8B,GAAG;IAC3C,gBAAgB,EAAE,sBAAsB,CAAC;IACzC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,eAAe,EAAE,qBAAqB,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,kBAAkB,CAAC,EAAE,CACnB,cAAc,EAAE,wBAAwB,EACxC,WAAW,EAAE,MAAM,KAChB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,CACd,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,wBAAwB,EACxC,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,cAAc,EAAE,MAAM,EACtB,eAAe,EAAE,SAAS,MAAM,EAAE,KAC/B,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,CAChB,cAAc,EAAE,wBAAwB,EACxC,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,gBAAgB,EAAE,MAAM,KACrB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC3B,CAAC;AAoBF,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,SAAS,MAAM,EAAE,GACtB,kBAAkB,CAAC,iBAAiB,CAAC,CA6DvC;AAED,wBAAsB,UAAU,CAC9B,IAAI,EAAE,SAAS,CAAC,8BAA8B,CAAC,EAC/C,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CAiJf;AAeD,eAAO,MAAM,kBAAkB,gGAI7B,CAAC"}