@plasius/ai-game 0.1.12 → 0.1.13

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/CHANGELOG.md CHANGED
@@ -17,6 +17,21 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
17
17
  - **Security**
18
18
  - (placeholder)
19
19
 
20
+ ## [0.1.13] - 2026-06-28
21
+
22
+ - **Added**
23
+ - Added academy-track bridge exports that re-expose authoritative school progression, academy admission, academic mission prerequisite, and track-selection contracts from `@plasius/training`.
24
+ - Added `createAiGameAcademicTrainingSnapshot` for frozen Player System-readable school and academy progression bundles under `isekai.training.academies.enabled`.
25
+
26
+ - **Changed**
27
+ - (placeholder)
28
+
29
+ - **Fixed**
30
+ - (placeholder)
31
+
32
+ - **Security**
33
+ - (placeholder)
34
+
20
35
  ## [0.1.12] - 2026-06-23
21
36
 
22
37
  - **Added**
@@ -134,3 +149,4 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
134
149
  [0.1.10]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.10
135
150
  [0.1.11]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.11
136
151
  [0.1.12]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.12
152
+ [0.1.13]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.13
package/README.md CHANGED
@@ -43,8 +43,10 @@ The training surface intentionally reuses `@plasius/training` as the authority f
43
43
  - `AiGameTrainingState` re-exports the canonical progression record from `@plasius/training`.
44
44
  - `AiGameInstitutionEligibility` makes stage-gated institutional availability explicit for Player System consumers.
45
45
  - `AiGameTrainingTrustMarker` carries trust evidence without copying broader profile state.
46
+ - `AiGameTrainingAcademicMissionPrerequisite`, `AiGameTrainingSchoolProgression`, `AiGameTrainingAcademyAdmission`, and `AiGameTrainingTrackSelection` re-export the academy authority contracts from `@plasius/training`.
46
47
  - `AiGameSpecializationRecommendation` keeps leaning and recommended-track output inside the canonical `internalized` / `externalized` / `hybrid` MCC doctrine.
47
48
  - `createAiGameTrainingStateSnapshot` freezes a Player System-readable bundle of progression, institution, eligibility, trust-marker, and recommendation data.
49
+ - `createAiGameAcademicTrainingSnapshot` packages school-stage progress, academy admissions, track-selection authority, and Player System recommendations into one frozen bridge payload.
48
50
 
49
51
  ## Martial training bridge contracts
50
52
 
@@ -95,6 +97,7 @@ npm run pack:check
95
97
  - `ai.game.npc-gossip.lifecycle.enabled`
96
98
  - `isekai.player-system.quiet-measure.enabled`
97
99
  - `isekai.training.institutions.enabled`
100
+ - `isekai.training.academies.enabled`
98
101
  - `isekai.training.martial.enabled`
99
102
 
100
103
  ## Governance
package/dist/index.cjs CHANGED
@@ -37,17 +37,22 @@ __export(index_exports, {
37
37
  AI_GAME_TASK_KINDS: () => AI_GAME_TASK_KINDS,
38
38
  AI_GAME_TASK_RESULTS: () => AI_GAME_TASK_RESULTS,
39
39
  AI_GAME_TASK_RISK_CLASSES: () => AI_GAME_TASK_RISK_CLASSES,
40
+ AI_GAME_TRAINING_ACADEMIC_PROGRESS_STAGES: () => import_training.TRAINING_ACADEMIC_PROGRESS_STAGES,
41
+ AI_GAME_TRAINING_ACADEMIES_FEATURE_FLAG_ID: () => import_training.TRAINING_ACADEMIES_FEATURE_FLAG_ID,
42
+ AI_GAME_TRAINING_ACADEMY_ADMISSION_DECISIONS: () => import_training.TRAINING_ACADEMY_ADMISSION_DECISIONS,
40
43
  AI_GAME_TRAINING_ANTI_SPELL_COUNTER_WINDOWS: () => import_training.TRAINING_ANTI_SPELL_COUNTER_WINDOWS,
41
44
  AI_GAME_TRAINING_ANTI_SPELL_FIELDCRAFT_FAMILIES: () => import_training.TRAINING_ANTI_SPELL_FIELDCRAFT_FAMILIES,
42
45
  AI_GAME_TRAINING_BARRACKS_DRILL_DELIVERY_MODES: () => import_training.TRAINING_BARRACKS_DRILL_DELIVERY_MODES,
43
46
  AI_GAME_TRAINING_INSTITUTIONS_FEATURE_FLAG_ID: () => import_training.TRAINING_FEATURE_FLAG_ID,
47
+ AI_GAME_TRAINING_INSTRUCTION_ACCESS_LEVELS: () => import_training.TRAINING_INSTRUCTION_ACCESS_LEVELS,
44
48
  AI_GAME_TRAINING_MARTIAL_FEATURE_FLAG_ID: () => import_training.TRAINING_MARTIAL_FEATURE_FLAG_ID,
45
49
  AI_GAME_TRAINING_MARTIAL_TECHNIQUE_FAMILIES: () => import_training.TRAINING_MARTIAL_TECHNIQUE_FAMILIES,
46
50
  AI_GAME_TRAINING_MARTIAL_TECHNIQUE_TRACKS: () => import_training.TRAINING_MARTIAL_TECHNIQUE_TRACKS,
47
51
  AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS: () => AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS,
48
52
  AI_GAME_TRAINING_RECOMMENDATION_READINESS: () => AI_GAME_TRAINING_RECOMMENDATION_READINESS,
49
53
  AI_GAME_TRAINING_STAGE_GATES: () => AI_GAME_TRAINING_STAGE_GATES,
50
- AI_GAME_TRAINING_TRUST_MARKER_SOURCES: () => AI_GAME_TRAINING_TRUST_MARKER_SOURCES,
54
+ AI_GAME_TRAINING_TECHNIQUE_MASTERY_STATES: () => import_training.TRAINING_TECHNIQUE_MASTERY_STATES,
55
+ AI_GAME_TRAINING_TRUST_MARKER_SOURCES: () => import_training.TRAINING_TRUST_MARKER_SOURCES,
51
56
  AI_GAME_TTS_CACHE_POLICIES: () => AI_GAME_TTS_CACHE_POLICIES,
52
57
  QUIET_MEASURE_AXES: () => QUIET_MEASURE_AXES,
53
58
  QUIET_MEASURE_CONFIDENCE_BANDS: () => QUIET_MEASURE_CONFIDENCE_BANDS,
@@ -62,23 +67,32 @@ __export(index_exports, {
62
67
  QUIET_MEASURE_SIGNAL_BANDS: () => QUIET_MEASURE_SIGNAL_BANDS,
63
68
  aiGameFeatureFlags: () => aiGameFeatureFlags,
64
69
  classifyAiGameTask: () => classifyAiGameTask,
70
+ createAiGameAcademicTrainingSnapshot: () => createAiGameAcademicTrainingSnapshot,
65
71
  createAiGameInstitutionEligibility: () => createAiGameInstitutionEligibility,
66
72
  createAiGameMartialTrainingSnapshot: () => createAiGameMartialTrainingSnapshot,
67
73
  createAiGameSpecializationRecommendation: () => createAiGameSpecializationRecommendation,
74
+ createAiGameTrainingAcademicMissionPrerequisite: () => import_training.createTrainingAcademicMissionPrerequisite,
75
+ createAiGameTrainingAcademyAdmission: () => import_training.createTrainingAcademyAdmission,
76
+ createAiGameTrainingSchoolProgression: () => import_training.createTrainingSchoolProgression,
68
77
  createAiGameTrainingStateSnapshot: () => createAiGameTrainingStateSnapshot,
78
+ createAiGameTrainingTrackSelection: () => import_training.createTrainingTrackSelection,
69
79
  createAiGameTrainingTrustMarker: () => createAiGameTrainingTrustMarker,
70
80
  createQuietMeasureJudgmentEligibility: () => createQuietMeasureJudgmentEligibility,
71
81
  createQuietMeasureJudgmentResponse: () => createQuietMeasureJudgmentResponse,
72
82
  gameEventFeatureFlags: () => gameEventFeatureFlags,
83
+ isAiGameTrainingAcademicProgressStage: () => import_training.isTrainingAcademicProgressStage,
84
+ isAiGameTrainingAcademyAdmissionDecision: () => import_training.isTrainingAcademyAdmissionDecision,
73
85
  isAiGameTrainingAntiSpellCounterWindow: () => import_training.isTrainingAntiSpellCounterWindow,
74
86
  isAiGameTrainingAntiSpellFieldcraftFamily: () => import_training.isTrainingAntiSpellFieldcraftFamily,
75
87
  isAiGameTrainingBarracksDrillDeliveryMode: () => import_training.isTrainingBarracksDrillDeliveryMode,
88
+ isAiGameTrainingInstructionAccessLevel: () => import_training.isTrainingInstructionAccessLevel,
76
89
  isAiGameTrainingMartialTechniqueFamily: () => import_training.isTrainingMartialTechniqueFamily,
77
90
  isAiGameTrainingMartialTechniqueTrack: () => import_training.isTrainingMartialTechniqueTrack,
78
91
  isAiGameTrainingRecommendationConfidenceBand: () => isAiGameTrainingRecommendationConfidenceBand,
79
92
  isAiGameTrainingRecommendationReadiness: () => isAiGameTrainingRecommendationReadiness,
80
93
  isAiGameTrainingStageGate: () => isAiGameTrainingStageGate,
81
- isAiGameTrainingTrustMarkerSource: () => isAiGameTrainingTrustMarkerSource,
94
+ isAiGameTrainingTechniqueMasteryState: () => import_training.isTrainingTechniqueMasteryState,
95
+ isAiGameTrainingTrustMarkerSource: () => import_training.isTrainingTrustMarkerSource,
82
96
  isCandidateWorldEvent: () => isCandidateWorldEvent,
83
97
  isCanonicalWorldEvent: () => isCanonicalWorldEvent,
84
98
  isGossipTopicActive: () => isGossipTopicActive,
@@ -107,12 +121,6 @@ var AI_GAME_TRAINING_STAGE_GATES = [
107
121
  "advanced-specialization",
108
122
  "dominion-and-divine"
109
123
  ];
110
- var AI_GAME_TRAINING_TRUST_MARKER_SOURCES = [
111
- "system",
112
- "mission",
113
- "institution",
114
- "sponsor"
115
- ];
116
124
  var AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS = [
117
125
  "low",
118
126
  "medium",
@@ -131,21 +139,12 @@ function assertNonEmptyString(value, label) {
131
139
  throw new Error(`${label} must be a non-empty string`);
132
140
  }
133
141
  }
134
- function assertIsoTimestamp(value, label) {
135
- assertNonEmptyString(value, label);
136
- if (Number.isNaN(Date.parse(value))) {
137
- throw new Error(`${label} must be an ISO-8601 timestamp`);
138
- }
139
- }
140
142
  function isTrainingInstitutionType(value) {
141
143
  return value === "school" || value === "barracks" || value === "academy" || value === "apprenticeship";
142
144
  }
143
145
  function isAiGameTrainingStageGate(value) {
144
146
  return AI_GAME_TRAINING_STAGE_GATES.includes(value);
145
147
  }
146
- function isAiGameTrainingTrustMarkerSource(value) {
147
- return AI_GAME_TRAINING_TRUST_MARKER_SOURCES.includes(value);
148
- }
149
148
  function isAiGameTrainingRecommendationConfidenceBand(value) {
150
149
  return AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS.includes(value);
151
150
  }
@@ -173,19 +172,7 @@ function createAiGameInstitutionEligibility(input) {
173
172
  });
174
173
  }
175
174
  function createAiGameTrainingTrustMarker(input) {
176
- assertNonEmptyString(input.markerId, "markerId");
177
- assertNonEmptyString(input.institutionId, "institutionId");
178
- assertIsoTimestamp(input.awardedAtIso, "awardedAtIso");
179
- if (!(0, import_training.isTrainingTrustLevel)(input.trustLevel)) {
180
- throw new Error("trustLevel must be a supported training trust level");
181
- }
182
- if (!isAiGameTrainingTrustMarkerSource(input.source)) {
183
- throw new Error("source must be a supported training trust marker source");
184
- }
185
- return Object.freeze({
186
- ...input,
187
- reasonCodes: freezeReadonlyArray(input.reasonCodes)
188
- });
175
+ return (0, import_training.createTrainingTrustMarker)(input);
189
176
  }
190
177
  function createAiGameSpecializationRecommendation(input) {
191
178
  assertNonEmptyString(input.recommendationId, "recommendationId");
@@ -226,6 +213,20 @@ function createAiGameTrainingStateSnapshot(input) {
226
213
  )
227
214
  });
228
215
  }
216
+ function createAiGameAcademicTrainingSnapshot(input) {
217
+ return Object.freeze({
218
+ schoolProgression: (0, import_training.createTrainingSchoolProgression)(input.schoolProgression),
219
+ academyAdmissions: freezeReadonlyArray(
220
+ input.academyAdmissions.map(import_training.createTrainingAcademyAdmission)
221
+ ),
222
+ trackSelections: freezeReadonlyArray(
223
+ input.trackSelections.map(import_training.createTrainingTrackSelection)
224
+ ),
225
+ recommendations: freezeReadonlyArray(
226
+ input.recommendations.map(createAiGameSpecializationRecommendation)
227
+ )
228
+ });
229
+ }
229
230
  function createAiGameMartialTrainingSnapshot(input) {
230
231
  return Object.freeze({
231
232
  barracksDrills: freezeReadonlyArray(
@@ -1089,16 +1090,21 @@ var gameEventFeatureFlags = Object.freeze([
1089
1090
  AI_GAME_TASK_KINDS,
1090
1091
  AI_GAME_TASK_RESULTS,
1091
1092
  AI_GAME_TASK_RISK_CLASSES,
1093
+ AI_GAME_TRAINING_ACADEMIC_PROGRESS_STAGES,
1094
+ AI_GAME_TRAINING_ACADEMIES_FEATURE_FLAG_ID,
1095
+ AI_GAME_TRAINING_ACADEMY_ADMISSION_DECISIONS,
1092
1096
  AI_GAME_TRAINING_ANTI_SPELL_COUNTER_WINDOWS,
1093
1097
  AI_GAME_TRAINING_ANTI_SPELL_FIELDCRAFT_FAMILIES,
1094
1098
  AI_GAME_TRAINING_BARRACKS_DRILL_DELIVERY_MODES,
1095
1099
  AI_GAME_TRAINING_INSTITUTIONS_FEATURE_FLAG_ID,
1100
+ AI_GAME_TRAINING_INSTRUCTION_ACCESS_LEVELS,
1096
1101
  AI_GAME_TRAINING_MARTIAL_FEATURE_FLAG_ID,
1097
1102
  AI_GAME_TRAINING_MARTIAL_TECHNIQUE_FAMILIES,
1098
1103
  AI_GAME_TRAINING_MARTIAL_TECHNIQUE_TRACKS,
1099
1104
  AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS,
1100
1105
  AI_GAME_TRAINING_RECOMMENDATION_READINESS,
1101
1106
  AI_GAME_TRAINING_STAGE_GATES,
1107
+ AI_GAME_TRAINING_TECHNIQUE_MASTERY_STATES,
1102
1108
  AI_GAME_TRAINING_TRUST_MARKER_SOURCES,
1103
1109
  AI_GAME_TTS_CACHE_POLICIES,
1104
1110
  QUIET_MEASURE_AXES,
@@ -1114,22 +1120,31 @@ var gameEventFeatureFlags = Object.freeze([
1114
1120
  QUIET_MEASURE_SIGNAL_BANDS,
1115
1121
  aiGameFeatureFlags,
1116
1122
  classifyAiGameTask,
1123
+ createAiGameAcademicTrainingSnapshot,
1117
1124
  createAiGameInstitutionEligibility,
1118
1125
  createAiGameMartialTrainingSnapshot,
1119
1126
  createAiGameSpecializationRecommendation,
1127
+ createAiGameTrainingAcademicMissionPrerequisite,
1128
+ createAiGameTrainingAcademyAdmission,
1129
+ createAiGameTrainingSchoolProgression,
1120
1130
  createAiGameTrainingStateSnapshot,
1131
+ createAiGameTrainingTrackSelection,
1121
1132
  createAiGameTrainingTrustMarker,
1122
1133
  createQuietMeasureJudgmentEligibility,
1123
1134
  createQuietMeasureJudgmentResponse,
1124
1135
  gameEventFeatureFlags,
1136
+ isAiGameTrainingAcademicProgressStage,
1137
+ isAiGameTrainingAcademyAdmissionDecision,
1125
1138
  isAiGameTrainingAntiSpellCounterWindow,
1126
1139
  isAiGameTrainingAntiSpellFieldcraftFamily,
1127
1140
  isAiGameTrainingBarracksDrillDeliveryMode,
1141
+ isAiGameTrainingInstructionAccessLevel,
1128
1142
  isAiGameTrainingMartialTechniqueFamily,
1129
1143
  isAiGameTrainingMartialTechniqueTrack,
1130
1144
  isAiGameTrainingRecommendationConfidenceBand,
1131
1145
  isAiGameTrainingRecommendationReadiness,
1132
1146
  isAiGameTrainingStageGate,
1147
+ isAiGameTrainingTechniqueMasteryState,
1133
1148
  isAiGameTrainingTrustMarkerSource,
1134
1149
  isCandidateWorldEvent,
1135
1150
  isCanonicalWorldEvent,