wicked-crew 0.7.33 → 0.7.34

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.
Files changed (48) hide show
  1. package/dist/api/eval-sample.d.ts +18 -18
  2. package/dist/api/governance-steering.d.ts +4 -4
  3. package/dist/api/routes.d.ts +15 -8
  4. package/dist/api/routes.d.ts.map +1 -1
  5. package/dist/api/routes.js +114 -5
  6. package/dist/api/routes.js.map +1 -1
  7. package/dist/api/server.d.ts.map +1 -1
  8. package/dist/api/server.js +44 -0
  9. package/dist/api/server.js.map +1 -1
  10. package/dist/api/skills.d.ts.map +1 -1
  11. package/dist/api/skills.js +12 -3
  12. package/dist/api/skills.js.map +1 -1
  13. package/dist/campaigns/routes.d.ts +14 -14
  14. package/dist/cli/index.js +17 -0
  15. package/dist/cli/index.js.map +1 -1
  16. package/dist/core/adapter.d.ts +6 -0
  17. package/dist/core/adapter.d.ts.map +1 -1
  18. package/dist/core/adapter.js +26 -0
  19. package/dist/core/adapter.js.map +1 -1
  20. package/dist/core/engine-roster.d.ts +28 -0
  21. package/dist/core/engine-roster.d.ts.map +1 -1
  22. package/dist/core/engine-roster.js +28 -0
  23. package/dist/core/engine-roster.js.map +1 -1
  24. package/dist/core/types.d.ts.map +1 -1
  25. package/dist/core/types.js +6 -0
  26. package/dist/core/types.js.map +1 -1
  27. package/dist/projects/state-home-preflight.d.ts +163 -0
  28. package/dist/projects/state-home-preflight.d.ts.map +1 -0
  29. package/dist/projects/state-home-preflight.js +310 -0
  30. package/dist/projects/state-home-preflight.js.map +1 -0
  31. package/dist/projects/state-home-registry.d.ts +25 -0
  32. package/dist/projects/state-home-registry.d.ts.map +1 -0
  33. package/dist/projects/state-home-registry.js +50 -0
  34. package/dist/projects/state-home-registry.js.map +1 -0
  35. package/dist/skills/base-skill.d.ts +92 -0
  36. package/dist/skills/base-skill.d.ts.map +1 -0
  37. package/dist/skills/base-skill.js +105 -0
  38. package/dist/skills/base-skill.js.map +1 -0
  39. package/dist/skills/runtime.d.ts +36 -1
  40. package/dist/skills/runtime.d.ts.map +1 -1
  41. package/dist/skills/runtime.js +93 -5
  42. package/dist/skills/runtime.js.map +1 -1
  43. package/dist/skills/store.d.ts +11 -0
  44. package/dist/skills/store.d.ts.map +1 -1
  45. package/dist/skills/store.js +16 -0
  46. package/dist/skills/store.js.map +1 -1
  47. package/endpoint-manifest.json +1 -0
  48. package/package.json +2 -2
@@ -828,6 +828,22 @@ export class SkillsStore {
828
828
  }
829
829
  return this.verifyCurrent(link, target);
830
830
  }
831
+ /**
832
+ * The skill rows of the VERIFIED current generation — what the engine's intake admission judges
833
+ * a run's `skill_ref`s and `base_skill_ref` against (crew#554 / core#468) — as `{gen, skills}`,
834
+ * or `null` before the first publish. Reads `snapshot.json` at the verified path through the
835
+ * same structural check every reader uses; a generation that verifies but whose metadata will
836
+ * not re-read is answered as `null` (nothing is KNOWN to be handed), never as an empty catalog.
837
+ */
838
+ currentSnapshotSkills() {
839
+ const current = this.currentSnapshot();
840
+ if (current === null)
841
+ return null;
842
+ const meta = this.readSnapshotMetadata(current.path);
843
+ if (typeof meta === 'string')
844
+ return null;
845
+ return { gen: current.gen, skills: meta.parsed.skills.map((row) => row.name) };
846
+ }
831
847
  verifyCurrent(link, target) {
832
848
  const invalid = (detail) => {
833
849
  throw new SkillsCurrentInvalidError(link, detail);