@forwardimpact/schema 0.7.0 → 0.8.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.
- package/examples/stages.yaml +2 -1
- package/package.json +1 -1
- package/src/validation.js +4 -1
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",
|