@forwardimpact/model 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/agent.js +6 -10
  2. package/package.json +1 -1
package/lib/agent.js CHANGED
@@ -19,7 +19,7 @@
19
19
  */
20
20
 
21
21
  import { deriveSkillMatrix, deriveBehaviourProfile } from "./derivation.js";
22
- import { deriveChecklist, formatChecklistMarkdown } from "./checklist.js";
22
+ import { deriveChecklist } from "./checklist.js";
23
23
  import {
24
24
  filterSkillsForAgent,
25
25
  sortByLevelDescending,
@@ -308,7 +308,6 @@ function estimateBodyDataLength(bodyData) {
308
308
  "priority",
309
309
  "roleContext",
310
310
  "workingStyle",
311
- "beforeHandoff",
312
311
  ];
313
312
  for (const field of stringFields) {
314
313
  if (bodyData[field]) {
@@ -487,7 +486,7 @@ function getChecklistStage(stageId) {
487
486
  * @param {Array} params.derivedBehaviours - Behaviours sorted by maturity
488
487
  * @param {Array} params.agentBehaviours - Agent behaviour definitions
489
488
  * @param {Array} params.skills - All skill definitions (for agent section lookup)
490
- * @param {string} params.checklistMarkdown - Pre-formatted checklist markdown
489
+ * @param {Array<{skill: Object, capability: Object, items: string[]}>} params.checklist - Raw checklist from deriveChecklist
491
490
  * @param {Array<{id: string, name: string, description: string}>} [params.agentIndex] - List of all available agents
492
491
  * @returns {Object} Structured profile body data
493
492
  */
@@ -501,7 +500,7 @@ function buildStageProfileBodyData({
501
500
  derivedBehaviours,
502
501
  agentBehaviours,
503
502
  skills,
504
- checklistMarkdown,
503
+ checklist,
505
504
  agentIndex,
506
505
  }) {
507
506
  const name = `${humanDiscipline.specialization || humanDiscipline.name} - ${humanTrack.name}`;
@@ -563,7 +562,7 @@ function buildStageProfileBodyData({
563
562
  skillIndex,
564
563
  roleContext,
565
564
  workingStyles,
566
- beforeHandoff: checklistMarkdown || null,
565
+ beforeHandoff: checklist || [],
567
566
  constraints,
568
567
  agentIndex: filteredAgentIndex,
569
568
  hasAgentIndex: filteredAgentIndex.length > 0,
@@ -709,10 +708,7 @@ export function generateStageAgentProfile({
709
708
  // Build description using shared helper
710
709
  const description = buildAgentDescription(discipline, track, stage);
711
710
 
712
- // Format checklist as markdown
713
- const checklistMarkdown = formatChecklistMarkdown(agent.checklist);
714
-
715
- // Build structured profile body data
711
+ // Build structured profile body data (pass raw checklist for template iteration)
716
712
  const bodyData = buildStageProfileBodyData({
717
713
  stage,
718
714
  humanDiscipline: discipline,
@@ -723,7 +719,7 @@ export function generateStageAgentProfile({
723
719
  derivedBehaviours: agent.derivedBehaviours,
724
720
  agentBehaviours,
725
721
  skills,
726
- checklistMarkdown,
722
+ checklist: agent.checklist,
727
723
  agentIndex,
728
724
  });
729
725
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardimpact/model",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Derivation engine for roles, skills, and AI agent profiles",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {