@forwardimpact/schema 0.7.0 → 0.8.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 +3 -3
- package/examples/framework.yaml +1 -1
- package/examples/stages.yaml +2 -1
- package/package.json +1 -1
- package/src/validation.js +4 -1
package/README.md
CHANGED
|
@@ -5,9 +5,9 @@ Schema definitions and data loading for skills, behaviours, and role frameworks.
|
|
|
5
5
|
## Role in the Vision
|
|
6
6
|
|
|
7
7
|
The schema package defines how engineering competencies are structured. It
|
|
8
|
-
provides the foundational data model that both human career progression and
|
|
9
|
-
agent generation build upon—ensuring consistency between how we
|
|
10
|
-
roles and how
|
|
8
|
+
provides the foundational data model that both human career progression and
|
|
9
|
+
coding agent team generation build upon—ensuring consistency between how we
|
|
10
|
+
define human roles and how agent teams understand their capabilities.
|
|
11
11
|
|
|
12
12
|
## What It Does
|
|
13
13
|
|
package/examples/framework.yaml
CHANGED
|
@@ -4,7 +4,7 @@ title: Engineering Pathway
|
|
|
4
4
|
emojiIcon: "🧭"
|
|
5
5
|
tag: "#AcmeCorp"
|
|
6
6
|
description: |
|
|
7
|
-
|
|
7
|
+
Great engineering comes from improving the performance of people and machines together. The pathway defines skills, behaviours, and career levels that apply equally to human engineers and coding agent teams—raising quality, increasing output, and bringing pride of workmanship to both.
|
|
8
8
|
|
|
9
9
|
# Distribution configuration
|
|
10
10
|
distribution:
|
package/examples/stages.yaml
CHANGED
|
@@ -63,7 +63,8 @@
|
|
|
63
63
|
name: Onboard
|
|
64
64
|
emojiIcon: "🔧"
|
|
65
65
|
summary:
|
|
66
|
-
Prepares the development environment with dependencies, tools, and
|
|
66
|
+
Prepares the development environment with dependencies, tools, and
|
|
67
|
+
credentials
|
|
67
68
|
description:
|
|
68
69
|
Your primary task is to prepare the development environment with all
|
|
69
70
|
prerequisites for coding. Install dependencies, configure tools, set up
|
package/package.json
CHANGED
package/src/validation.js
CHANGED
|
@@ -151,7 +151,10 @@ function validateSkill(skill, index, requiredStageIds = []) {
|
|
|
151
151
|
} else {
|
|
152
152
|
// Validate each stage against loaded stage data
|
|
153
153
|
for (const [stageId, stageData] of Object.entries(skill.agent.stages)) {
|
|
154
|
-
if (
|
|
154
|
+
if (
|
|
155
|
+
requiredStageIds.length > 0 &&
|
|
156
|
+
!requiredStageIds.includes(stageId)
|
|
157
|
+
) {
|
|
155
158
|
errors.push(
|
|
156
159
|
createError(
|
|
157
160
|
"INVALID_VALUE",
|