@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forwardimpact/map",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Public data model for career frameworks, consumed by AI agents and engineers",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -60,6 +60,13 @@
60
60
  "items": {
61
61
  "type": "string"
62
62
  }
63
+ },
64
+ "returnFormat": {
65
+ "type": "array",
66
+ "description": "Expected outputs when completing this stage",
67
+ "items": {
68
+ "type": "string"
69
+ }
63
70
  }
64
71
  },
65
72
  "additionalProperties": false
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
- this.#loadQuestionsFromDir(join(questionsDir, "behaviours")),
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
- disciplineFiles,
372
- trackFiles,
373
- behaviourFiles,
374
- vscodeSettings,
375
- devcontainer,
376
- copilotSetupSteps,
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
- vscodeSettings,
412
- devcontainer,
413
- copilotSetupSteps,
407
+ claudeCodeSettings,
414
408
  };
415
409
  }
416
410