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.
- package/dist/api/eval-sample.d.ts +18 -18
- package/dist/api/governance-steering.d.ts +4 -4
- package/dist/api/routes.d.ts +15 -8
- package/dist/api/routes.d.ts.map +1 -1
- package/dist/api/routes.js +114 -5
- package/dist/api/routes.js.map +1 -1
- package/dist/api/server.d.ts.map +1 -1
- package/dist/api/server.js +44 -0
- package/dist/api/server.js.map +1 -1
- package/dist/api/skills.d.ts.map +1 -1
- package/dist/api/skills.js +12 -3
- package/dist/api/skills.js.map +1 -1
- package/dist/campaigns/routes.d.ts +14 -14
- package/dist/cli/index.js +17 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/core/adapter.d.ts +6 -0
- package/dist/core/adapter.d.ts.map +1 -1
- package/dist/core/adapter.js +26 -0
- package/dist/core/adapter.js.map +1 -1
- package/dist/core/engine-roster.d.ts +28 -0
- package/dist/core/engine-roster.d.ts.map +1 -1
- package/dist/core/engine-roster.js +28 -0
- package/dist/core/engine-roster.js.map +1 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +6 -0
- package/dist/core/types.js.map +1 -1
- package/dist/projects/state-home-preflight.d.ts +163 -0
- package/dist/projects/state-home-preflight.d.ts.map +1 -0
- package/dist/projects/state-home-preflight.js +310 -0
- package/dist/projects/state-home-preflight.js.map +1 -0
- package/dist/projects/state-home-registry.d.ts +25 -0
- package/dist/projects/state-home-registry.d.ts.map +1 -0
- package/dist/projects/state-home-registry.js +50 -0
- package/dist/projects/state-home-registry.js.map +1 -0
- package/dist/skills/base-skill.d.ts +92 -0
- package/dist/skills/base-skill.d.ts.map +1 -0
- package/dist/skills/base-skill.js +105 -0
- package/dist/skills/base-skill.js.map +1 -0
- package/dist/skills/runtime.d.ts +36 -1
- package/dist/skills/runtime.d.ts.map +1 -1
- package/dist/skills/runtime.js +93 -5
- package/dist/skills/runtime.js.map +1 -1
- package/dist/skills/store.d.ts +11 -0
- package/dist/skills/store.d.ts.map +1 -1
- package/dist/skills/store.js +16 -0
- package/dist/skills/store.js.map +1 -1
- package/endpoint-manifest.json +1 -0
- package/package.json +2 -2
package/dist/skills/store.js
CHANGED
|
@@ -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);
|