@forwardimpact/map 0.14.0 → 0.15.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/package.json +1 -1
- package/schema/json/stages.schema.json +7 -0
- package/src/loader.js +14 -20
package/package.json
CHANGED
package/src/loader.js
CHANGED
|
@@ -284,8 +284,12 @@ export class DataLoader {
|
|
|
284
284
|
async loadQuestionFolder(questionsDir) {
|
|
285
285
|
const [skillProficiencies, behaviourMaturities, capabilityLevels] =
|
|
286
286
|
await Promise.all([
|
|
287
|
-
this.#loadQuestionsFromDir(join(questionsDir, "skills"))
|
|
288
|
-
|
|
287
|
+
this.#loadQuestionsFromDir(join(questionsDir, "skills")).catch(
|
|
288
|
+
() => ({}),
|
|
289
|
+
),
|
|
290
|
+
this.#loadQuestionsFromDir(join(questionsDir, "behaviours")).catch(
|
|
291
|
+
() => ({}),
|
|
292
|
+
),
|
|
289
293
|
this.#loadQuestionsFromDir(join(questionsDir, "capabilities")).catch(
|
|
290
294
|
() => ({}),
|
|
291
295
|
),
|
|
@@ -367,21 +371,13 @@ export class DataLoader {
|
|
|
367
371
|
const tracksDir = join(dataDir, "tracks");
|
|
368
372
|
const behavioursDir = join(dataDir, "behaviours");
|
|
369
373
|
|
|
370
|
-
const [
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
] = await Promise.all([
|
|
378
|
-
this.#loadDisciplinesFromDir(disciplinesDir),
|
|
379
|
-
this.#loadTracksFromDir(tracksDir),
|
|
380
|
-
this.#loadBehavioursFromDir(behavioursDir),
|
|
381
|
-
this.#loadRepoFile(dataDir, "vscode-settings.yaml", {}),
|
|
382
|
-
this.#loadRepoFile(dataDir, "devcontainer.yaml", {}),
|
|
383
|
-
this.#loadRepoFile(dataDir, "copilot-setup-steps.yaml", null),
|
|
384
|
-
]);
|
|
374
|
+
const [disciplineFiles, trackFiles, behaviourFiles, claudeCodeSettings] =
|
|
375
|
+
await Promise.all([
|
|
376
|
+
this.#loadDisciplinesFromDir(disciplinesDir),
|
|
377
|
+
this.#loadTracksFromDir(tracksDir),
|
|
378
|
+
this.#loadBehavioursFromDir(behavioursDir),
|
|
379
|
+
this.#loadRepoFile(dataDir, "claude-code-settings.yaml", {}),
|
|
380
|
+
]);
|
|
385
381
|
|
|
386
382
|
const disciplines = disciplineFiles
|
|
387
383
|
.filter((d) => d.agent)
|
|
@@ -408,9 +404,7 @@ export class DataLoader {
|
|
|
408
404
|
disciplines,
|
|
409
405
|
tracks,
|
|
410
406
|
behaviours,
|
|
411
|
-
|
|
412
|
-
devcontainer,
|
|
413
|
-
copilotSetupSteps,
|
|
407
|
+
claudeCodeSettings,
|
|
414
408
|
};
|
|
415
409
|
}
|
|
416
410
|
|