academic-army 0.4.0 → 0.4.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.
@@ -0,0 +1,2 @@
1
+ export declare function quoteBlock(content: string): string;
2
+ //# sourceMappingURL=prompts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/developing-skill/agents/prompts.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAKlD"}
@@ -0,0 +1,7 @@
1
+ export function quoteBlock(content) {
2
+ return content
3
+ .split(/\r?\n/)
4
+ .map((line) => `> ${line}`)
5
+ .join("\n");
6
+ }
7
+ //# sourceMappingURL=prompts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/developing-skill/agents/prompts.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CAAC,OAAe;IACxC,OAAO,OAAO;SACX,KAAK,CAAC,OAAO,CAAC;SACd,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC;SAC1B,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"trajectory-optimizer.d.ts","sourceRoot":"","sources":["../../../src/developing-skill/agents/trajectory-optimizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,MAAM,MAAM,4BAA4B,GAAG,wBAAwB,GAAG;IACpE,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,qBAAa,wBAAyB,SAAQ,KAAK,CAAC,4BAA4B,CAAC;IAC/E,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,MAAM;CA0BjF"}
1
+ {"version":3,"file":"trajectory-optimizer.d.ts","sourceRoot":"","sources":["../../../src/developing-skill/agents/trajectory-optimizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAI9E,MAAM,MAAM,4BAA4B,GAAG,wBAAwB,GAAG;IACpE,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,qBAAa,wBAAyB,SAAQ,KAAK,CAAC,4BAA4B,CAAC;IAC/E,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,MAAM;CA+BjF"}
@@ -1,29 +1,35 @@
1
1
  import { Agent } from "coding-agent-forge/agent";
2
+ import { quoteBlock } from "./prompts.js";
2
3
  export class TrajectoryOptimizerAgent extends Agent {
3
4
  buildPrompt(variables) {
4
5
  return `
5
- Revise the skill at ${variables.codingStyleSkillPath} so it produces better development trajectories.
6
+ Evaluate and revise the skill so it produces better development trajectories.
6
7
 
7
- The metaskill below contains the design goals and tips of this skill:
8
+ Skill path: ${variables.codingStyleSkillPath}
9
+ Project root: ${variables.targetPath}/.
8
10
 
9
- ${variables.metaskill}
11
+ Current goal:
12
+ ${quoteBlock(variables.goal)}
10
13
 
11
- The sections below describe the task this skill just executed and what happened during that round.
14
+ Task brief:
15
+ ${quoteBlock(variables.taskBrief)}
12
16
 
13
- Target repository at ${variables.targetPath}/.
17
+ Round summary:
18
+ ${quoteBlock(variables.taskRoundSummary)}
14
19
 
15
- Goal:
16
- ${variables.goal}
20
+ Metaskill (design goals and tips for this skill):
21
+ ${quoteBlock(variables.metaskill)}
17
22
 
18
- Task Brief:
19
- ${variables.taskBrief}
23
+ Consider these design goals and tips when revising.
20
24
 
21
- Reality-aware task round summary:
22
- ${variables.taskRoundSummary}
25
+ Evaluate whether the skill produced a good modification trajectory, then revise the skill directly.
23
26
 
24
- Evaluate whether the skill produced a good modification trajectory, then edit the skill directly. Focus on missing, misleading, or redundant guidance that affected task selection, coding, or review.
25
-
26
- Output a concise optimizer report with the main skill changes.
27
+ Useful angles include:
28
+ - missing guidance
29
+ - misleading guidance
30
+ - redundant guidance
31
+ - effects on task selection, coding, or review
32
+ - other relevant trajectory issues...
27
33
  `;
28
34
  }
29
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"trajectory-optimizer.js","sourceRoot":"","sources":["../../../src/developing-skill/agents/trajectory-optimizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAUjD,MAAM,OAAO,wBAAyB,SAAQ,KAAmC;IACrE,WAAW,CAAC,SAAiD;QACrE,OAAO;sBACW,SAAS,CAAC,oBAAoB;;;;EAIlD,SAAS,CAAC,SAAS;;;;uBAIE,SAAS,CAAC,UAAU;;;EAGzC,SAAS,CAAC,IAAI;;;EAGd,SAAS,CAAC,SAAS;;;EAGnB,SAAS,CAAC,gBAAgB;;;;;CAK3B,CAAC;IACA,CAAC;CACF"}
1
+ {"version":3,"file":"trajectory-optimizer.js","sourceRoot":"","sources":["../../../src/developing-skill/agents/trajectory-optimizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAGjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAS1C,MAAM,OAAO,wBAAyB,SAAQ,KAAmC;IACrE,WAAW,CAAC,SAAiD;QACrE,OAAO;;;cAGG,SAAS,CAAC,oBAAoB;gBAC5B,SAAS,CAAC,UAAU;;;EAGlC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC;;;EAG1B,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC;;;EAG/B,UAAU,CAAC,SAAS,CAAC,gBAAgB,CAAC;;;EAGtC,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC;;;;;;;;;;;;CAYhC,CAAC;IACA,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"evaluator.d.ts","sourceRoot":"","sources":["../../../src/evolve-skill/agents/evaluator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,KAAK,CAAC,uBAAuB,CAAC;IACrE,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,uBAAuB,CAAC,GAAG,MAAM;CAgB5E"}
1
+ {"version":3,"file":"evaluator.d.ts","sourceRoot":"","sources":["../../../src/evolve-skill/agents/evaluator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAIjD,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,qBAAa,mBAAoB,SAAQ,KAAK,CAAC,uBAAuB,CAAC;IACrE,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,uBAAuB,CAAC,GAAG,MAAM;CAuB5E"}
@@ -1,19 +1,27 @@
1
1
  import { Agent } from "coding-agent-forge/agent";
2
+ import { quoteBlock } from "./prompts.js";
2
3
  export class SkillEvaluatorAgent extends Agent {
3
4
  buildPrompt(variables) {
4
5
  return `
5
- Evaluate the artifact at ${variables.artifactPath}. It was produced by a skill.
6
+ Evaluate the artifact produced by this skill.
6
7
 
7
- The artifacts were created based on the following task descriptions:
8
+ Artifact path: ${variables.artifactPath}
8
9
 
9
- ${variables.taskDescriptions}
10
+ Task descriptions:
11
+ ${quoteBlock(variables.taskDescriptions)}
10
12
 
11
- The metaskill below contains the design goals and tips of this skill:
13
+ Metaskill (design goals and tips for this skill):
14
+ ${quoteBlock(variables.metaskill)}
12
15
 
13
- ${variables.metaskill}
16
+ Review the artifact against the metaskill.
14
17
 
15
- Based on these goals and tips, are there any problems in the artifact produced by this skill? Are there any redundant parts?
16
- Carefully inspect both the language and the content, and use that analysis to explain how this skill can be optimized.
18
+ Useful angles include:
19
+ - problems in content or language
20
+ - missing or misleading guidance
21
+ - redundant parts
22
+ - other relevant issues...
23
+
24
+ Return a concise report that explains how this skill can be optimized.
17
25
  `;
18
26
  }
19
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"evaluator.js","sourceRoot":"","sources":["../../../src/evolve-skill/agents/evaluator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAQjD,MAAM,OAAO,mBAAoB,SAAQ,KAA8B;IAC3D,WAAW,CAAC,SAA4C;QAChE,OAAO;2BACgB,SAAS,CAAC,YAAY;;;;EAI/C,SAAS,CAAC,gBAAgB;;;;EAI1B,SAAS,CAAC,SAAS;;;;CAIpB,CAAC;IACA,CAAC;CACF"}
1
+ {"version":3,"file":"evaluator.js","sourceRoot":"","sources":["../../../src/evolve-skill/agents/evaluator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ1C,MAAM,OAAO,mBAAoB,SAAQ,KAA8B;IAC3D,WAAW,CAAC,SAA4C;QAChE,OAAO;;;iBAGM,SAAS,CAAC,YAAY;;;EAGrC,UAAU,CAAC,SAAS,CAAC,gBAAgB,CAAC;;;EAGtC,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC;;;;;;;;;;;CAWhC,CAAC;IACA,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"modifier.d.ts","sourceRoot":"","sources":["../../../src/evolve-skill/agents/modifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,qBAAa,kBAAmB,SAAQ,KAAK,CAAC,sBAAsB,CAAC;IACnE,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GAAG,MAAM;CAe3E"}
1
+ {"version":3,"file":"modifier.d.ts","sourceRoot":"","sources":["../../../src/evolve-skill/agents/modifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAIjD,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,qBAAa,kBAAmB,SAAQ,KAAK,CAAC,sBAAsB,CAAC;IACnE,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GAAG,MAAM;CAiB3E"}
@@ -1,18 +1,21 @@
1
1
  import { Agent } from "coding-agent-forge/agent";
2
+ import { quoteBlock } from "./prompts.js";
2
3
  export class SkillModifierAgent extends Agent {
3
4
  buildPrompt(variables) {
4
5
  return `
5
- Revise the skill at ${variables.skillPath} using the feedback below. The feedback is based on an artifact produced by this skill.
6
+ Revise the skill using the evaluation feedback.
6
7
 
7
- The metaskill below contains the design goals and tips of this skill:
8
+ Skill path: ${variables.skillPath}
8
9
 
9
- ${variables.metaskill}
10
+ Metaskill (design goals and tips for this skill):
11
+ ${quoteBlock(variables.metaskill)}
10
12
 
11
13
  Consider these design goals and tips when revising.
12
14
 
13
- Feedback:
15
+ Evaluation feedback:
16
+ ${quoteBlock(variables.review)}
14
17
 
15
- ${variables.review}
18
+ Edit the skill directly.
16
19
  `;
17
20
  }
18
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"modifier.js","sourceRoot":"","sources":["../../../src/evolve-skill/agents/modifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAQjD,MAAM,OAAO,kBAAmB,SAAQ,KAA6B;IACzD,WAAW,CAAC,SAA2C;QAC/D,OAAO;sBACW,SAAS,CAAC,SAAS;;;;EAIvC,SAAS,CAAC,SAAS;;;;;;EAMnB,SAAS,CAAC,MAAM;CACjB,CAAC;IACA,CAAC;CACF"}
1
+ {"version":3,"file":"modifier.js","sourceRoot":"","sources":["../../../src/evolve-skill/agents/modifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ1C,MAAM,OAAO,kBAAmB,SAAQ,KAA6B;IACzD,WAAW,CAAC,SAA2C;QAC/D,OAAO;;;cAGG,SAAS,CAAC,SAAS;;;EAG/B,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC;;;;;EAK/B,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC;;;CAG7B,CAAC;IACA,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export declare function quoteBlock(content: string): string;
2
+ //# sourceMappingURL=prompts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/evolve-skill/agents/prompts.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAKlD"}
@@ -0,0 +1,7 @@
1
+ export function quoteBlock(content) {
2
+ return content
3
+ .split(/\r?\n/)
4
+ .map((line) => `> ${line}`)
5
+ .join("\n");
6
+ }
7
+ //# sourceMappingURL=prompts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/evolve-skill/agents/prompts.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CAAC,OAAe;IACxC,OAAO,OAAO;SACX,KAAK,CAAC,OAAO,CAAC;SACd,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC;SAC1B,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../../src/evolve-skill/agents/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAGjD,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,qBAAa,gBAAiB,SAAQ,KAAK,CAAC,oBAAoB,CAAC;IAC/D,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAAG,MAAM;CAQzE"}
1
+ {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../../src/evolve-skill/agents/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAKjD,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,qBAAa,gBAAiB,SAAQ,KAAK,CAAC,oBAAoB,CAAC;IAC/D,SAAS,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAAG,MAAM;CAczE"}
@@ -1,12 +1,19 @@
1
1
  import { Agent } from "coding-agent-forge/agent";
2
2
  import { readFileSync } from "node:fs";
3
+ import { quoteBlock } from "./prompts.js";
3
4
  export class SkillRunnerAgent extends Agent {
4
5
  buildPrompt(variables) {
5
6
  const task = readFileSync(variables.taskPath, "utf8");
6
7
  return `
7
- Use the skill at ${variables.skillPath} to complete the task below. Save all relevant output files in ${variables.artifactPath}.
8
+ Use the skill to complete the task.
8
9
 
9
- ${task}
10
+ Skill path: ${variables.skillPath}
11
+ Artifact path: ${variables.artifactPath}
12
+
13
+ Task:
14
+ ${quoteBlock(task)}
15
+
16
+ Save all relevant output files in the artifact path.
10
17
  `;
11
18
  }
12
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"runner.js","sourceRoot":"","sources":["../../../src/evolve-skill/agents/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAQvC,MAAM,OAAO,gBAAiB,SAAQ,KAA2B;IACrD,WAAW,CAAC,SAAyC;QAC7D,MAAM,IAAI,GAAG,YAAY,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACtD,OAAO;mBACQ,SAAS,CAAC,SAAS,kEAAkE,SAAS,CAAC,YAAY;;EAE5H,IAAI;CACL,CAAC;IACA,CAAC;CACF"}
1
+ {"version":3,"file":"runner.js","sourceRoot":"","sources":["../../../src/evolve-skill/agents/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ1C,MAAM,OAAO,gBAAiB,SAAQ,KAA2B;IACrD,WAAW,CAAC,SAAyC;QAC7D,MAAM,IAAI,GAAG,YAAY,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACtD,OAAO;;;cAGG,SAAS,CAAC,SAAS;iBAChB,SAAS,CAAC,YAAY;;;EAGrC,UAAU,CAAC,IAAI,CAAC;;;CAGjB,CAAC;IACA,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "academic-army",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Agent workflows and skills for AcademicArmy.",
5
5
  "license": "MIT",
6
6
  "repository": {