@plasius/ai-game 0.1.11 → 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,36 @@ 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
+
35
+ ## [0.1.12] - 2026-06-23
36
+
37
+ - **Added**
38
+ - Added martial training bridge exports that re-expose the authoritative barracks drill, mission unlock, martial technique, and bounded anti-spell fieldcraft contracts from `@plasius/training`.
39
+ - Added `createAiGameMartialTrainingSnapshot` for frozen Player System-readable bundles under `isekai.training.martial.enabled`.
40
+
41
+ - **Changed**
42
+ - Updated the published `@plasius/training` dependency baseline to `^0.1.5` so ai-game consumes the released martial authority surface.
43
+
44
+ - **Fixed**
45
+ - (placeholder)
46
+
47
+ - **Security**
48
+ - (placeholder)
49
+
20
50
  ## [0.1.11] - 2026-06-23
21
51
 
22
52
  - **Added**
@@ -118,3 +148,5 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
118
148
  [0.1.9]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.9
119
149
  [0.1.10]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.10
120
150
  [0.1.11]: https://github.com/Plasius-LTD/ai-game/releases/tag/v0.1.11
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,29 @@ 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.
50
+
51
+ ## Martial training bridge contracts
52
+
53
+ The martial slice remains a bridge surface over the published
54
+ `@plasius/training` authority package rather than a second source of truth.
55
+
56
+ - `AI_GAME_TRAINING_MARTIAL_FEATURE_FLAG_ID` re-exports the inherited
57
+ `isekai.training.martial.enabled` rollout key.
58
+ - `AI_GAME_TRAINING_BARRACKS_DRILL_DELIVERY_MODES`,
59
+ `AI_GAME_TRAINING_MARTIAL_TECHNIQUE_FAMILIES`, and
60
+ `AI_GAME_TRAINING_ANTI_SPELL_FIELDCRAFT_FAMILIES` expose the canonical
61
+ barracks and bounded anti-spell vocabulary to ai-game consumers.
62
+ - `AiGameTrainingBarracksDrill`, `AiGameTrainingMissionTechniqueUnlock`,
63
+ `AiGameTrainingMartialTechnique`, and
64
+ `AiGameTrainingAntiSpellFieldcraftDiscipline` re-export the authoritative
65
+ training contracts directly.
66
+ - `createAiGameMartialTrainingSnapshot` freezes a Player System-readable bundle
67
+ of barracks drills, mission-earned unlocks, martial techniques, and bounded
68
+ anti-spell fieldcraft without redefining those authority models locally.
48
69
 
49
70
  ## Quiet Measure contracts
50
71
 
@@ -76,6 +97,8 @@ npm run pack:check
76
97
  - `ai.game.npc-gossip.lifecycle.enabled`
77
98
  - `isekai.player-system.quiet-measure.enabled`
78
99
  - `isekai.training.institutions.enabled`
100
+ - `isekai.training.academies.enabled`
101
+ - `isekai.training.martial.enabled`
79
102
 
80
103
  ## Governance
81
104
 
package/dist/index.cjs CHANGED
@@ -37,11 +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,
43
+ AI_GAME_TRAINING_ANTI_SPELL_COUNTER_WINDOWS: () => import_training.TRAINING_ANTI_SPELL_COUNTER_WINDOWS,
44
+ AI_GAME_TRAINING_ANTI_SPELL_FIELDCRAFT_FAMILIES: () => import_training.TRAINING_ANTI_SPELL_FIELDCRAFT_FAMILIES,
45
+ AI_GAME_TRAINING_BARRACKS_DRILL_DELIVERY_MODES: () => import_training.TRAINING_BARRACKS_DRILL_DELIVERY_MODES,
40
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,
48
+ AI_GAME_TRAINING_MARTIAL_FEATURE_FLAG_ID: () => import_training.TRAINING_MARTIAL_FEATURE_FLAG_ID,
49
+ AI_GAME_TRAINING_MARTIAL_TECHNIQUE_FAMILIES: () => import_training.TRAINING_MARTIAL_TECHNIQUE_FAMILIES,
50
+ AI_GAME_TRAINING_MARTIAL_TECHNIQUE_TRACKS: () => import_training.TRAINING_MARTIAL_TECHNIQUE_TRACKS,
41
51
  AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS: () => AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS,
42
52
  AI_GAME_TRAINING_RECOMMENDATION_READINESS: () => AI_GAME_TRAINING_RECOMMENDATION_READINESS,
43
53
  AI_GAME_TRAINING_STAGE_GATES: () => AI_GAME_TRAINING_STAGE_GATES,
44
- 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,
45
56
  AI_GAME_TTS_CACHE_POLICIES: () => AI_GAME_TTS_CACHE_POLICIES,
46
57
  QUIET_MEASURE_AXES: () => QUIET_MEASURE_AXES,
47
58
  QUIET_MEASURE_CONFIDENCE_BANDS: () => QUIET_MEASURE_CONFIDENCE_BANDS,
@@ -56,17 +67,32 @@ __export(index_exports, {
56
67
  QUIET_MEASURE_SIGNAL_BANDS: () => QUIET_MEASURE_SIGNAL_BANDS,
57
68
  aiGameFeatureFlags: () => aiGameFeatureFlags,
58
69
  classifyAiGameTask: () => classifyAiGameTask,
70
+ createAiGameAcademicTrainingSnapshot: () => createAiGameAcademicTrainingSnapshot,
59
71
  createAiGameInstitutionEligibility: () => createAiGameInstitutionEligibility,
72
+ createAiGameMartialTrainingSnapshot: () => createAiGameMartialTrainingSnapshot,
60
73
  createAiGameSpecializationRecommendation: () => createAiGameSpecializationRecommendation,
74
+ createAiGameTrainingAcademicMissionPrerequisite: () => import_training.createTrainingAcademicMissionPrerequisite,
75
+ createAiGameTrainingAcademyAdmission: () => import_training.createTrainingAcademyAdmission,
76
+ createAiGameTrainingSchoolProgression: () => import_training.createTrainingSchoolProgression,
61
77
  createAiGameTrainingStateSnapshot: () => createAiGameTrainingStateSnapshot,
78
+ createAiGameTrainingTrackSelection: () => import_training.createTrainingTrackSelection,
62
79
  createAiGameTrainingTrustMarker: () => createAiGameTrainingTrustMarker,
63
80
  createQuietMeasureJudgmentEligibility: () => createQuietMeasureJudgmentEligibility,
64
81
  createQuietMeasureJudgmentResponse: () => createQuietMeasureJudgmentResponse,
65
82
  gameEventFeatureFlags: () => gameEventFeatureFlags,
83
+ isAiGameTrainingAcademicProgressStage: () => import_training.isTrainingAcademicProgressStage,
84
+ isAiGameTrainingAcademyAdmissionDecision: () => import_training.isTrainingAcademyAdmissionDecision,
85
+ isAiGameTrainingAntiSpellCounterWindow: () => import_training.isTrainingAntiSpellCounterWindow,
86
+ isAiGameTrainingAntiSpellFieldcraftFamily: () => import_training.isTrainingAntiSpellFieldcraftFamily,
87
+ isAiGameTrainingBarracksDrillDeliveryMode: () => import_training.isTrainingBarracksDrillDeliveryMode,
88
+ isAiGameTrainingInstructionAccessLevel: () => import_training.isTrainingInstructionAccessLevel,
89
+ isAiGameTrainingMartialTechniqueFamily: () => import_training.isTrainingMartialTechniqueFamily,
90
+ isAiGameTrainingMartialTechniqueTrack: () => import_training.isTrainingMartialTechniqueTrack,
66
91
  isAiGameTrainingRecommendationConfidenceBand: () => isAiGameTrainingRecommendationConfidenceBand,
67
92
  isAiGameTrainingRecommendationReadiness: () => isAiGameTrainingRecommendationReadiness,
68
93
  isAiGameTrainingStageGate: () => isAiGameTrainingStageGate,
69
- isAiGameTrainingTrustMarkerSource: () => isAiGameTrainingTrustMarkerSource,
94
+ isAiGameTrainingTechniqueMasteryState: () => import_training.isTrainingTechniqueMasteryState,
95
+ isAiGameTrainingTrustMarkerSource: () => import_training.isTrainingTrustMarkerSource,
70
96
  isCandidateWorldEvent: () => isCandidateWorldEvent,
71
97
  isCanonicalWorldEvent: () => isCanonicalWorldEvent,
72
98
  isGossipTopicActive: () => isGossipTopicActive,
@@ -95,12 +121,6 @@ var AI_GAME_TRAINING_STAGE_GATES = [
95
121
  "advanced-specialization",
96
122
  "dominion-and-divine"
97
123
  ];
98
- var AI_GAME_TRAINING_TRUST_MARKER_SOURCES = [
99
- "system",
100
- "mission",
101
- "institution",
102
- "sponsor"
103
- ];
104
124
  var AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS = [
105
125
  "low",
106
126
  "medium",
@@ -119,21 +139,12 @@ function assertNonEmptyString(value, label) {
119
139
  throw new Error(`${label} must be a non-empty string`);
120
140
  }
121
141
  }
122
- function assertIsoTimestamp(value, label) {
123
- assertNonEmptyString(value, label);
124
- if (Number.isNaN(Date.parse(value))) {
125
- throw new Error(`${label} must be an ISO-8601 timestamp`);
126
- }
127
- }
128
142
  function isTrainingInstitutionType(value) {
129
143
  return value === "school" || value === "barracks" || value === "academy" || value === "apprenticeship";
130
144
  }
131
145
  function isAiGameTrainingStageGate(value) {
132
146
  return AI_GAME_TRAINING_STAGE_GATES.includes(value);
133
147
  }
134
- function isAiGameTrainingTrustMarkerSource(value) {
135
- return AI_GAME_TRAINING_TRUST_MARKER_SOURCES.includes(value);
136
- }
137
148
  function isAiGameTrainingRecommendationConfidenceBand(value) {
138
149
  return AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS.includes(value);
139
150
  }
@@ -161,19 +172,7 @@ function createAiGameInstitutionEligibility(input) {
161
172
  });
162
173
  }
163
174
  function createAiGameTrainingTrustMarker(input) {
164
- assertNonEmptyString(input.markerId, "markerId");
165
- assertNonEmptyString(input.institutionId, "institutionId");
166
- assertIsoTimestamp(input.awardedAtIso, "awardedAtIso");
167
- if (!(0, import_training.isTrainingTrustLevel)(input.trustLevel)) {
168
- throw new Error("trustLevel must be a supported training trust level");
169
- }
170
- if (!isAiGameTrainingTrustMarkerSource(input.source)) {
171
- throw new Error("source must be a supported training trust marker source");
172
- }
173
- return Object.freeze({
174
- ...input,
175
- reasonCodes: freezeReadonlyArray(input.reasonCodes)
176
- });
175
+ return (0, import_training.createTrainingTrustMarker)(input);
177
176
  }
178
177
  function createAiGameSpecializationRecommendation(input) {
179
178
  assertNonEmptyString(input.recommendationId, "recommendationId");
@@ -214,6 +213,36 @@ function createAiGameTrainingStateSnapshot(input) {
214
213
  )
215
214
  });
216
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
+ }
230
+ function createAiGameMartialTrainingSnapshot(input) {
231
+ return Object.freeze({
232
+ barracksDrills: freezeReadonlyArray(
233
+ input.barracksDrills.map(import_training.createTrainingBarracksDrill)
234
+ ),
235
+ missionTechniqueUnlocks: freezeReadonlyArray(
236
+ input.missionTechniqueUnlocks.map(import_training.createTrainingMissionTechniqueUnlock)
237
+ ),
238
+ martialTechniques: freezeReadonlyArray(
239
+ input.martialTechniques.map(import_training.createTrainingMartialTechnique)
240
+ ),
241
+ antiSpellFieldcraft: freezeReadonlyArray(
242
+ input.antiSpellFieldcraft.map(import_training.createTrainingAntiSpellFieldcraftDiscipline)
243
+ )
244
+ });
245
+ }
217
246
 
218
247
  // src/world-events.ts
219
248
  function isCanonicalWorldEvent(event) {
@@ -1061,10 +1090,21 @@ var gameEventFeatureFlags = Object.freeze([
1061
1090
  AI_GAME_TASK_KINDS,
1062
1091
  AI_GAME_TASK_RESULTS,
1063
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,
1096
+ AI_GAME_TRAINING_ANTI_SPELL_COUNTER_WINDOWS,
1097
+ AI_GAME_TRAINING_ANTI_SPELL_FIELDCRAFT_FAMILIES,
1098
+ AI_GAME_TRAINING_BARRACKS_DRILL_DELIVERY_MODES,
1064
1099
  AI_GAME_TRAINING_INSTITUTIONS_FEATURE_FLAG_ID,
1100
+ AI_GAME_TRAINING_INSTRUCTION_ACCESS_LEVELS,
1101
+ AI_GAME_TRAINING_MARTIAL_FEATURE_FLAG_ID,
1102
+ AI_GAME_TRAINING_MARTIAL_TECHNIQUE_FAMILIES,
1103
+ AI_GAME_TRAINING_MARTIAL_TECHNIQUE_TRACKS,
1065
1104
  AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS,
1066
1105
  AI_GAME_TRAINING_RECOMMENDATION_READINESS,
1067
1106
  AI_GAME_TRAINING_STAGE_GATES,
1107
+ AI_GAME_TRAINING_TECHNIQUE_MASTERY_STATES,
1068
1108
  AI_GAME_TRAINING_TRUST_MARKER_SOURCES,
1069
1109
  AI_GAME_TTS_CACHE_POLICIES,
1070
1110
  QUIET_MEASURE_AXES,
@@ -1080,16 +1120,31 @@ var gameEventFeatureFlags = Object.freeze([
1080
1120
  QUIET_MEASURE_SIGNAL_BANDS,
1081
1121
  aiGameFeatureFlags,
1082
1122
  classifyAiGameTask,
1123
+ createAiGameAcademicTrainingSnapshot,
1083
1124
  createAiGameInstitutionEligibility,
1125
+ createAiGameMartialTrainingSnapshot,
1084
1126
  createAiGameSpecializationRecommendation,
1127
+ createAiGameTrainingAcademicMissionPrerequisite,
1128
+ createAiGameTrainingAcademyAdmission,
1129
+ createAiGameTrainingSchoolProgression,
1085
1130
  createAiGameTrainingStateSnapshot,
1131
+ createAiGameTrainingTrackSelection,
1086
1132
  createAiGameTrainingTrustMarker,
1087
1133
  createQuietMeasureJudgmentEligibility,
1088
1134
  createQuietMeasureJudgmentResponse,
1089
1135
  gameEventFeatureFlags,
1136
+ isAiGameTrainingAcademicProgressStage,
1137
+ isAiGameTrainingAcademyAdmissionDecision,
1138
+ isAiGameTrainingAntiSpellCounterWindow,
1139
+ isAiGameTrainingAntiSpellFieldcraftFamily,
1140
+ isAiGameTrainingBarracksDrillDeliveryMode,
1141
+ isAiGameTrainingInstructionAccessLevel,
1142
+ isAiGameTrainingMartialTechniqueFamily,
1143
+ isAiGameTrainingMartialTechniqueTrack,
1090
1144
  isAiGameTrainingRecommendationConfidenceBand,
1091
1145
  isAiGameTrainingRecommendationReadiness,
1092
1146
  isAiGameTrainingStageGate,
1147
+ isAiGameTrainingTechniqueMasteryState,
1093
1148
  isAiGameTrainingTrustMarkerSource,
1094
1149
  isCandidateWorldEvent,
1095
1150
  isCanonicalWorldEvent,