@forwardimpact/map 0.15.1 → 0.15.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardimpact/map",
3
- "version": "0.15.1",
3
+ "version": "0.15.3",
4
4
  "description": "Public data model for career frameworks, consumed by AI agents and engineers",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -46,6 +46,7 @@
46
46
  "./activity/transform": "./activity/transform/index.js"
47
47
  },
48
48
  "dependencies": {
49
+ "@forwardimpact/libutil": "^0.1.64",
49
50
  "ajv": "^8.18.0",
50
51
  "ajv-formats": "^3.0.1",
51
52
  "yaml": "^2.8.3"
@@ -227,7 +227,7 @@
227
227
  "properties": {
228
228
  "specify": { "$ref": "#/$defs/skillStage" },
229
229
  "plan": { "$ref": "#/$defs/skillStage" },
230
- "onboard": { "$ref": "#/$defs/skillStage" },
230
+ "scaffold": { "$ref": "#/$defs/skillStage" },
231
231
  "code": { "$ref": "#/$defs/skillStage" },
232
232
  "review": { "$ref": "#/$defs/skillStage" },
233
233
  "deploy": { "$ref": "#/$defs/skillStage" }
@@ -14,7 +14,7 @@
14
14
  "properties": {
15
15
  "id": {
16
16
  "type": "string",
17
- "enum": ["specify", "plan", "onboard", "code", "review", "deploy"],
17
+ "enum": ["specify", "plan", "scaffold", "code", "review", "deploy"],
18
18
  "description": "Stage identifier"
19
19
  },
20
20
  "name": {
@@ -77,7 +77,7 @@
77
77
  "properties": {
78
78
  "targetStage": {
79
79
  "type": "string",
80
- "enum": ["specify", "plan", "onboard", "code", "review", "deploy"],
80
+ "enum": ["specify", "plan", "scaffold", "code", "review", "deploy"],
81
81
  "description": "The stage to transition to"
82
82
  },
83
83
  "label": {
@@ -74,7 +74,7 @@ fit:StageShape a sh:NodeShape ;
74
74
  sh:targetClass fit:Stage ;
75
75
  sh:property [
76
76
  sh:path fit:id ;
77
- sh:in ( "specify" "plan" "onboard" "code" "review" "deploy" ) ;
77
+ sh:in ( "specify" "plan" "scaffold" "code" "review" "deploy" ) ;
78
78
  sh:minCount 1 ;
79
79
  sh:maxCount 1 ;
80
80
  sh:name "id" ;
@@ -142,7 +142,7 @@ fit:HandoffShape a sh:NodeShape ;
142
142
  sh:targetClass fit:Handoff ;
143
143
  sh:property [
144
144
  sh:path fit:targetStage ;
145
- sh:in ( "specify" "plan" "onboard" "code" "review" "deploy" ) ;
145
+ sh:in ( "specify" "plan" "scaffold" "code" "review" "deploy" ) ;
146
146
  sh:minCount 1 ;
147
147
  sh:maxCount 1 ;
148
148
  sh:name "targetStage" ;
package/src/validation.js CHANGED
@@ -338,15 +338,15 @@ function validateSkill(skill, index, requiredStageIds = []) {
338
338
  );
339
339
  }
340
340
 
341
- // Error if implementationReference still contains <onboarding_steps> tags (migration aid)
341
+ // Error if implementationReference still contains <scaffolding_steps> tags (migration aid)
342
342
  if (
343
343
  typeof skill.implementationReference === "string" &&
344
- skill.implementationReference.includes("<onboarding_steps>")
344
+ skill.implementationReference.includes("<scaffolding_steps>")
345
345
  ) {
346
346
  errors.push(
347
347
  createError(
348
348
  "INVALID_FIELD",
349
- "Skill implementationReference contains <onboarding_steps> tags. Extract install commands to skill.installScript instead.",
349
+ "Skill implementationReference contains <scaffolding_steps> tags. Extract install commands to skill.installScript instead.",
350
350
  `${path}.implementationReference`,
351
351
  ),
352
352
  );
@@ -2089,7 +2089,7 @@ export function validateAgentData({ humanData, agentData }) {
2089
2089
 
2090
2090
  // Validate skills with agent sections have complete stage coverage
2091
2091
  const skillsWithAgent = (humanData.skills || []).filter((s) => s.agent);
2092
- const requiredStages = ["plan", "onboard", "code", "review"];
2092
+ const requiredStages = (humanData.stages || []).map((s) => s.id);
2093
2093
 
2094
2094
  for (const skill of skillsWithAgent) {
2095
2095
  const stages = skill.agent.stages || {};