@plasius/ai-game 0.6.0 → 0.6.2

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/index.cjs CHANGED
@@ -37,6 +37,15 @@ __export(index_exports, {
37
37
  AI_GAME_IDENTITY_TARGET_CATEGORIES: () => AI_GAME_IDENTITY_TARGET_CATEGORIES,
38
38
  AI_GAME_IDENTITY_VISIBILITY_STATES: () => AI_GAME_IDENTITY_VISIBILITY_STATES,
39
39
  AI_GAME_INCIDENT_IMPACT_FEATURE_FLAG_ID: () => AI_GAME_INCIDENT_IMPACT_FEATURE_FLAG_ID,
40
+ AI_GAME_MCC_FOCUS_PRIORITIES: () => AI_GAME_MCC_FOCUS_PRIORITIES,
41
+ AI_GAME_MCC_GROWTH_DIRECTIONS: () => AI_GAME_MCC_GROWTH_DIRECTIONS,
42
+ AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION: () => AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION,
43
+ AI_GAME_MCC_GUIDANCE_FEATURE_FLAG_ID: () => AI_GAME_MCC_GUIDANCE_FEATURE_FLAG_ID,
44
+ AI_GAME_MCC_GUIDANCE_MAX_FOCUS_TARGETS: () => AI_GAME_MCC_GUIDANCE_MAX_FOCUS_TARGETS,
45
+ AI_GAME_MCC_GUIDANCE_MAX_RECOMMENDATIONS: () => AI_GAME_MCC_GUIDANCE_MAX_RECOMMENDATIONS,
46
+ AI_GAME_MCC_READINESS_BANDS: () => AI_GAME_MCC_READINESS_BANDS,
47
+ AI_GAME_MCC_WARNING_KINDS: () => AI_GAME_MCC_WARNING_KINDS,
48
+ AI_GAME_MCC_WARNING_STATES: () => AI_GAME_MCC_WARNING_STATES,
40
49
  AI_GAME_MISSIONS_CONTRACT_VERSION: () => AI_GAME_MISSIONS_CONTRACT_VERSION,
41
50
  AI_GAME_MISSIONS_FEATURE_FLAG_ID: () => AI_GAME_MISSIONS_FEATURE_FLAG_ID,
42
51
  AI_GAME_MISSION_CLASSES: () => AI_GAME_MISSION_CLASSES,
@@ -81,6 +90,14 @@ __export(index_exports, {
81
90
  AI_GAME_PLAYER_SYSTEM_PREFERENCE_KINDS: () => AI_GAME_PLAYER_SYSTEM_PREFERENCE_KINDS,
82
91
  AI_GAME_PLAYER_SYSTEM_PREFERENCE_SOURCES: () => AI_GAME_PLAYER_SYSTEM_PREFERENCE_SOURCES,
83
92
  AI_GAME_QUIET_MEASURE_FEATURE_FLAG_ID: () => AI_GAME_QUIET_MEASURE_FEATURE_FLAG_ID,
93
+ AI_GAME_SPELLCRAFT_AUTHORITATIVE_OWNER: () => AI_GAME_SPELLCRAFT_AUTHORITATIVE_OWNER,
94
+ AI_GAME_SPELLCRAFT_CHAOS_PRESSURES: () => AI_GAME_SPELLCRAFT_CHAOS_PRESSURES,
95
+ AI_GAME_SPELLCRAFT_COMMITMENT: () => AI_GAME_SPELLCRAFT_COMMITMENT,
96
+ AI_GAME_SPELLCRAFT_COMPLEXITIES: () => AI_GAME_SPELLCRAFT_COMPLEXITIES,
97
+ AI_GAME_SPELLCRAFT_FATIGUE_STATES: () => AI_GAME_SPELLCRAFT_FATIGUE_STATES,
98
+ AI_GAME_SPELLCRAFT_RECOMMENDATION_KINDS: () => AI_GAME_SPELLCRAFT_RECOMMENDATION_KINDS,
99
+ AI_GAME_SPELLCRAFT_TARGET_MODES: () => AI_GAME_SPELLCRAFT_TARGET_MODES,
100
+ AI_GAME_SPELLCRAFT_VERDICTS: () => AI_GAME_SPELLCRAFT_VERDICTS,
84
101
  AI_GAME_TASK_AUTHORITY_BOUNDARIES: () => AI_GAME_TASK_AUTHORITY_BOUNDARIES,
85
102
  AI_GAME_TASK_DECISIONS: () => AI_GAME_TASK_DECISIONS,
86
103
  AI_GAME_TASK_KINDS: () => AI_GAME_TASK_KINDS,
@@ -103,6 +120,15 @@ __export(index_exports, {
103
120
  AI_GAME_TRAINING_TECHNIQUE_MASTERY_STATES: () => import_training.TRAINING_TECHNIQUE_MASTERY_STATES,
104
121
  AI_GAME_TRAINING_TRUST_MARKER_SOURCES: () => import_training.TRAINING_TRUST_MARKER_SOURCES,
105
122
  AI_GAME_TTS_CACHE_POLICIES: () => AI_GAME_TTS_CACHE_POLICIES,
123
+ AI_GAME_TUTORIAL_COMPLETION_STATES: () => AI_GAME_TUTORIAL_COMPLETION_STATES,
124
+ AI_GAME_TUTORIAL_CONTRACT_VERSION: () => AI_GAME_TUTORIAL_CONTRACT_VERSION,
125
+ AI_GAME_TUTORIAL_FEATURE_FLAG_ID: () => AI_GAME_TUTORIAL_FEATURE_FLAG_ID,
126
+ AI_GAME_TUTORIAL_MAX_PREREQUISITES: () => AI_GAME_TUTORIAL_MAX_PREREQUISITES,
127
+ AI_GAME_TUTORIAL_MAX_STEPS: () => AI_GAME_TUTORIAL_MAX_STEPS,
128
+ AI_GAME_TUTORIAL_MAX_TRIGGERS: () => AI_GAME_TUTORIAL_MAX_TRIGGERS,
129
+ AI_GAME_TUTORIAL_PREREQUISITE_KINDS: () => AI_GAME_TUTORIAL_PREREQUISITE_KINDS,
130
+ AI_GAME_TUTORIAL_STAGES: () => AI_GAME_TUTORIAL_STAGES,
131
+ AI_GAME_TUTORIAL_TRIGGER_KINDS: () => AI_GAME_TUTORIAL_TRIGGER_KINDS,
106
132
  QUIET_MEASURE_AXES: () => QUIET_MEASURE_AXES,
107
133
  QUIET_MEASURE_CONFIDENCE_BANDS: () => QUIET_MEASURE_CONFIDENCE_BANDS,
108
134
  QUIET_MEASURE_DERIVED_READS: () => QUIET_MEASURE_DERIVED_READS,
@@ -126,6 +152,10 @@ __export(index_exports, {
126
152
  createAiGameIdentityTargetProjection: () => createAiGameIdentityTargetProjection,
127
153
  createAiGameInstitutionEligibility: () => createAiGameInstitutionEligibility,
128
154
  createAiGameMartialTrainingSnapshot: () => createAiGameMartialTrainingSnapshot,
155
+ createAiGameMccFocusTarget: () => createAiGameMccFocusTarget,
156
+ createAiGameMccGuidanceSnapshot: () => createAiGameMccGuidanceSnapshot,
157
+ createAiGameMccReadinessState: () => createAiGameMccReadinessState,
158
+ createAiGameMccWarning: () => createAiGameMccWarning,
129
159
  createAiGameMissionDefinition: () => createAiGameMissionDefinition,
130
160
  createAiGameMissionMccFocusInfluence: () => createAiGameMissionMccFocusInfluence,
131
161
  createAiGameMissionObjectiveState: () => createAiGameMissionObjectiveState,
@@ -146,12 +176,19 @@ __export(index_exports, {
146
176
  createAiGamePlayerSystemPreferenceProfile: () => createAiGamePlayerSystemPreferenceProfile,
147
177
  createAiGamePlayerSystemSession: () => createAiGamePlayerSystemSession,
148
178
  createAiGameSpecializationRecommendation: () => createAiGameSpecializationRecommendation,
179
+ createAiGameSpellcraftAdvisory: () => createAiGameSpellcraftAdvisory,
180
+ createAiGameSpellcraftRecommendation: () => createAiGameSpellcraftRecommendation,
149
181
  createAiGameTrainingAcademicMissionPrerequisite: () => import_training.createTrainingAcademicMissionPrerequisite,
150
182
  createAiGameTrainingAcademyAdmission: () => import_training.createTrainingAcademyAdmission,
151
183
  createAiGameTrainingSchoolProgression: () => import_training.createTrainingSchoolProgression,
152
184
  createAiGameTrainingStateSnapshot: () => createAiGameTrainingStateSnapshot,
153
185
  createAiGameTrainingTrackSelection: () => import_training.createTrainingTrackSelection,
154
186
  createAiGameTrainingTrustMarker: () => createAiGameTrainingTrustMarker,
187
+ createAiGameTutorialPrerequisite: () => createAiGameTutorialPrerequisite,
188
+ createAiGameTutorialProgressionState: () => createAiGameTutorialProgressionState,
189
+ createAiGameTutorialStep: () => createAiGameTutorialStep,
190
+ createAiGameTutorialTrack: () => createAiGameTutorialTrack,
191
+ createAiGameTutorialTrigger: () => createAiGameTutorialTrigger,
155
192
  createQuietMeasureJudgmentEligibility: () => createQuietMeasureJudgmentEligibility,
156
193
  createQuietMeasureJudgmentResponse: () => createQuietMeasureJudgmentResponse,
157
194
  gameEventFeatureFlags: () => gameEventFeatureFlags,
@@ -163,6 +200,11 @@ __export(index_exports, {
163
200
  isAiGameIdentityProjectionRead: () => isAiGameIdentityProjectionRead,
164
201
  isAiGameIdentityTargetCategory: () => isAiGameIdentityTargetCategory,
165
202
  isAiGameIdentityVisibilityState: () => isAiGameIdentityVisibilityState,
203
+ isAiGameMccFocusPriority: () => isAiGameMccFocusPriority,
204
+ isAiGameMccGrowthDirection: () => isAiGameMccGrowthDirection,
205
+ isAiGameMccReadinessBand: () => isAiGameMccReadinessBand,
206
+ isAiGameMccWarningKind: () => isAiGameMccWarningKind,
207
+ isAiGameMccWarningState: () => isAiGameMccWarningState,
166
208
  isAiGameMissionClass: () => isAiGameMissionClass,
167
209
  isAiGameMissionConfidenceBand: () => isAiGameMissionConfidenceBand,
168
210
  isAiGameMissionFeedbackChannel: () => isAiGameMissionFeedbackChannel,
@@ -189,6 +231,12 @@ __export(index_exports, {
189
231
  isAiGamePlayerSystemModule: () => isAiGamePlayerSystemModule,
190
232
  isAiGamePlayerSystemPreferenceKind: () => isAiGamePlayerSystemPreferenceKind,
191
233
  isAiGamePlayerSystemPreferenceSource: () => isAiGamePlayerSystemPreferenceSource,
234
+ isAiGameSpellcraftChaosPressure: () => isAiGameSpellcraftChaosPressure,
235
+ isAiGameSpellcraftComplexity: () => isAiGameSpellcraftComplexity,
236
+ isAiGameSpellcraftFatigueState: () => isAiGameSpellcraftFatigueState,
237
+ isAiGameSpellcraftRecommendationKind: () => isAiGameSpellcraftRecommendationKind,
238
+ isAiGameSpellcraftTargetMode: () => isAiGameSpellcraftTargetMode,
239
+ isAiGameSpellcraftVerdict: () => isAiGameSpellcraftVerdict,
192
240
  isAiGameTrainingAcademicProgressStage: () => import_training.isTrainingAcademicProgressStage,
193
241
  isAiGameTrainingAcademyAdmissionDecision: () => import_training.isTrainingAcademyAdmissionDecision,
194
242
  isAiGameTrainingAntiSpellCounterWindow: () => import_training.isTrainingAntiSpellCounterWindow,
@@ -202,6 +250,10 @@ __export(index_exports, {
202
250
  isAiGameTrainingStageGate: () => isAiGameTrainingStageGate,
203
251
  isAiGameTrainingTechniqueMasteryState: () => import_training.isTrainingTechniqueMasteryState,
204
252
  isAiGameTrainingTrustMarkerSource: () => import_training.isTrainingTrustMarkerSource,
253
+ isAiGameTutorialCompletionState: () => isAiGameTutorialCompletionState,
254
+ isAiGameTutorialPrerequisiteKind: () => isAiGameTutorialPrerequisiteKind,
255
+ isAiGameTutorialStage: () => isAiGameTutorialStage,
256
+ isAiGameTutorialTriggerKind: () => isAiGameTutorialTriggerKind,
205
257
  isCandidateWorldEvent: () => isCandidateWorldEvent,
206
258
  isCanonicalWorldEvent: () => isCanonicalWorldEvent,
207
259
  isGossipTopicActive: () => isGossipTopicActive,
@@ -1690,6 +1742,577 @@ function assertAiGameObservedEventLogContractVersion(value) {
1690
1742
  assertContractVersion4(value);
1691
1743
  }
1692
1744
 
1745
+ // src/mcc-guidance.ts
1746
+ var AI_GAME_MCC_GUIDANCE_FEATURE_FLAG_ID = "isekai.player-system.mcc-guidance.enabled";
1747
+ var AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION = "1.0";
1748
+ var AI_GAME_MCC_GROWTH_DIRECTIONS = [
1749
+ "internalized",
1750
+ "externalized",
1751
+ "hybrid"
1752
+ ];
1753
+ var AI_GAME_MCC_FOCUS_PRIORITIES = ["primary", "secondary"];
1754
+ var AI_GAME_MCC_READINESS_BANDS = [
1755
+ "stable",
1756
+ "pressured",
1757
+ "restricted"
1758
+ ];
1759
+ var AI_GAME_MCC_WARNING_STATES = [
1760
+ "clear",
1761
+ "advisory",
1762
+ "elevated",
1763
+ "critical"
1764
+ ];
1765
+ var AI_GAME_MCC_WARNING_KINDS = [
1766
+ "thermal",
1767
+ "fatigue",
1768
+ "chaos-pressure",
1769
+ "target-burden",
1770
+ "stage-gate",
1771
+ "death-impairment"
1772
+ ];
1773
+ var AI_GAME_SPELLCRAFT_RECOMMENDATION_KINDS = [
1774
+ "training",
1775
+ "material",
1776
+ "social-prerequisite",
1777
+ "refinement"
1778
+ ];
1779
+ var AI_GAME_SPELLCRAFT_VERDICTS = [
1780
+ "recommended",
1781
+ "conditional",
1782
+ "blocked"
1783
+ ];
1784
+ var AI_GAME_SPELLCRAFT_TARGET_MODES = [
1785
+ "self",
1786
+ "single-target",
1787
+ "area"
1788
+ ];
1789
+ var AI_GAME_SPELLCRAFT_COMPLEXITIES = ["low", "medium", "high"];
1790
+ var AI_GAME_SPELLCRAFT_CHAOS_PRESSURES = [
1791
+ "low",
1792
+ "elevated",
1793
+ "volatile"
1794
+ ];
1795
+ var AI_GAME_SPELLCRAFT_FATIGUE_STATES = [
1796
+ "steady",
1797
+ "strained",
1798
+ "exhausted"
1799
+ ];
1800
+ var AI_GAME_SPELLCRAFT_COMMITMENT = "preview-only";
1801
+ var AI_GAME_SPELLCRAFT_AUTHORITATIVE_OWNER = "spellcraft-system";
1802
+ var AI_GAME_MCC_GUIDANCE_MAX_FOCUS_TARGETS = 3;
1803
+ var AI_GAME_MCC_GUIDANCE_MAX_RECOMMENDATIONS = 5;
1804
+ function freezeReadonlyArray6(items) {
1805
+ return Object.freeze([...items]);
1806
+ }
1807
+ function createStringArray3(values, label) {
1808
+ const normalized = values ?? [];
1809
+ normalized.forEach((value) => assertNonEmptyString6(value, `${label} entry`));
1810
+ return freezeReadonlyArray6(normalized);
1811
+ }
1812
+ function assertNonEmptyString6(value, label) {
1813
+ if (value.trim().length === 0) {
1814
+ throw new Error(`${label} must be a non-empty string`);
1815
+ }
1816
+ }
1817
+ function assertContractVersion5(value, label = "contractVersion") {
1818
+ if (value !== AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION) {
1819
+ throw new Error(`${label} must be ${AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION}`);
1820
+ }
1821
+ }
1822
+ function assertBoundedFraction(value, label) {
1823
+ if (!Number.isFinite(value) || value < 0 || value > 1) {
1824
+ throw new Error(`${label} must be between 0 and 1`);
1825
+ }
1826
+ }
1827
+ function isMember5(value, members) {
1828
+ return members.includes(value);
1829
+ }
1830
+ function getWarningStateRank(state) {
1831
+ return AI_GAME_MCC_WARNING_STATES.indexOf(state);
1832
+ }
1833
+ function resolveWarningState(warnings) {
1834
+ return warnings.reduce(
1835
+ (mostSevere, warning) => getWarningStateRank(warning.state) > getWarningStateRank(mostSevere) ? warning.state : mostSevere,
1836
+ "clear"
1837
+ );
1838
+ }
1839
+ function isAiGameMccGrowthDirection(value) {
1840
+ return (0, import_training.isMccExpressionTrack)(value);
1841
+ }
1842
+ function isAiGameMccFocusPriority(value) {
1843
+ return isMember5(value, AI_GAME_MCC_FOCUS_PRIORITIES);
1844
+ }
1845
+ function isAiGameMccReadinessBand(value) {
1846
+ return isMember5(value, AI_GAME_MCC_READINESS_BANDS);
1847
+ }
1848
+ function isAiGameMccWarningState(value) {
1849
+ return isMember5(value, AI_GAME_MCC_WARNING_STATES);
1850
+ }
1851
+ function isAiGameMccWarningKind(value) {
1852
+ return isMember5(value, AI_GAME_MCC_WARNING_KINDS);
1853
+ }
1854
+ function isAiGameSpellcraftRecommendationKind(value) {
1855
+ return isMember5(value, AI_GAME_SPELLCRAFT_RECOMMENDATION_KINDS);
1856
+ }
1857
+ function isAiGameSpellcraftVerdict(value) {
1858
+ return isMember5(value, AI_GAME_SPELLCRAFT_VERDICTS);
1859
+ }
1860
+ function isAiGameSpellcraftTargetMode(value) {
1861
+ return isMember5(value, AI_GAME_SPELLCRAFT_TARGET_MODES);
1862
+ }
1863
+ function isAiGameSpellcraftComplexity(value) {
1864
+ return isMember5(value, AI_GAME_SPELLCRAFT_COMPLEXITIES);
1865
+ }
1866
+ function isAiGameSpellcraftChaosPressure(value) {
1867
+ return isMember5(value, AI_GAME_SPELLCRAFT_CHAOS_PRESSURES);
1868
+ }
1869
+ function isAiGameSpellcraftFatigueState(value) {
1870
+ return isMember5(value, AI_GAME_SPELLCRAFT_FATIGUE_STATES);
1871
+ }
1872
+ function createAiGameMccFocusTarget(input) {
1873
+ assertNonEmptyString6(input.targetId, "targetId");
1874
+ assertContractVersion5(input.contractVersion ?? AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION);
1875
+ if (!isAiGameMccGrowthDirection(input.growthDirection)) {
1876
+ throw new Error("growthDirection must be a supported MCC growth direction");
1877
+ }
1878
+ if (!isAiGameMccFocusPriority(input.priority)) {
1879
+ throw new Error("priority must be a supported MCC focus priority");
1880
+ }
1881
+ assertNonEmptyString6(input.label, "label");
1882
+ assertNonEmptyString6(input.summary, "summary");
1883
+ assertBoundedFraction(input.influenceWeight, "influenceWeight");
1884
+ return Object.freeze({
1885
+ contractVersion: input.contractVersion ?? AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION,
1886
+ featureFlagId: AI_GAME_MCC_GUIDANCE_FEATURE_FLAG_ID,
1887
+ targetId: input.targetId,
1888
+ growthDirection: input.growthDirection,
1889
+ label: input.label,
1890
+ summary: input.summary,
1891
+ priority: input.priority,
1892
+ influenceWeight: input.influenceWeight,
1893
+ reasonCodes: createStringArray3(input.reasonCodes, "reasonCodes")
1894
+ });
1895
+ }
1896
+ function createAiGameMccWarning(input) {
1897
+ assertNonEmptyString6(input.warningId, "warningId");
1898
+ assertContractVersion5(input.contractVersion ?? AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION);
1899
+ if (!isAiGameMccWarningKind(input.kind)) {
1900
+ throw new Error("kind must be a supported MCC warning kind");
1901
+ }
1902
+ if (!isAiGameMccWarningState(input.state) || input.state === "clear") {
1903
+ throw new Error("state must be an active MCC warning state");
1904
+ }
1905
+ assertNonEmptyString6(input.summary, "summary");
1906
+ return Object.freeze({
1907
+ contractVersion: input.contractVersion ?? AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION,
1908
+ featureFlagId: AI_GAME_MCC_GUIDANCE_FEATURE_FLAG_ID,
1909
+ warningId: input.warningId,
1910
+ kind: input.kind,
1911
+ state: input.state,
1912
+ summary: input.summary,
1913
+ reasonCodes: createStringArray3(input.reasonCodes, "reasonCodes")
1914
+ });
1915
+ }
1916
+ function createAiGameMccReadinessState(input) {
1917
+ assertNonEmptyString6(input.readinessId, "readinessId");
1918
+ assertContractVersion5(input.contractVersion ?? AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION);
1919
+ if (!isAiGameMccReadinessBand(input.band)) {
1920
+ throw new Error("band must be a supported MCC readiness band");
1921
+ }
1922
+ const warnings = freezeReadonlyArray6(
1923
+ input.warnings.map((warning) => createAiGameMccWarning(warning))
1924
+ );
1925
+ const derivedWarningState = resolveWarningState(warnings);
1926
+ const warningState = input.warningState ?? derivedWarningState;
1927
+ if (!isAiGameMccWarningState(warningState)) {
1928
+ throw new Error("warningState must be a supported MCC warning state");
1929
+ }
1930
+ if (warningState !== derivedWarningState) {
1931
+ throw new Error("warningState must match the most severe warning");
1932
+ }
1933
+ return Object.freeze({
1934
+ contractVersion: input.contractVersion ?? AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION,
1935
+ featureFlagId: AI_GAME_MCC_GUIDANCE_FEATURE_FLAG_ID,
1936
+ readinessId: input.readinessId,
1937
+ band: input.band,
1938
+ warningState,
1939
+ warnings,
1940
+ reasonCodes: createStringArray3(input.reasonCodes, "reasonCodes")
1941
+ });
1942
+ }
1943
+ function createAiGameSpellcraftRecommendation(input) {
1944
+ assertNonEmptyString6(input.recommendationId, "recommendationId");
1945
+ assertNonEmptyString6(input.focusTargetId, "focusTargetId");
1946
+ assertContractVersion5(input.contractVersion ?? AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION);
1947
+ if (!isAiGameSpellcraftRecommendationKind(input.kind)) {
1948
+ throw new Error("kind must be a supported spellcraft recommendation kind");
1949
+ }
1950
+ assertNonEmptyString6(input.title, "title");
1951
+ assertNonEmptyString6(input.summary, "summary");
1952
+ if (!isAiGameMccReadinessBand(input.readinessBand)) {
1953
+ throw new Error("readinessBand must be a supported MCC readiness band");
1954
+ }
1955
+ return Object.freeze({
1956
+ contractVersion: input.contractVersion ?? AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION,
1957
+ featureFlagId: AI_GAME_MCC_GUIDANCE_FEATURE_FLAG_ID,
1958
+ recommendationId: input.recommendationId,
1959
+ kind: input.kind,
1960
+ focusTargetId: input.focusTargetId,
1961
+ title: input.title,
1962
+ summary: input.summary,
1963
+ readinessBand: input.readinessBand,
1964
+ prerequisiteCodes: createStringArray3(input.prerequisiteCodes, "prerequisiteCodes"),
1965
+ reasonCodes: createStringArray3(input.reasonCodes, "reasonCodes")
1966
+ });
1967
+ }
1968
+ function createAiGameSpellcraftAdvisory(input) {
1969
+ assertNonEmptyString6(input.advisoryId, "advisoryId");
1970
+ assertNonEmptyString6(input.recommendationId, "recommendationId");
1971
+ assertContractVersion5(input.contractVersion ?? AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION);
1972
+ if (!isAiGameSpellcraftVerdict(input.verdict)) {
1973
+ throw new Error("verdict must be a supported spellcraft verdict");
1974
+ }
1975
+ if (!isAiGameSpellcraftTargetMode(input.targetMode)) {
1976
+ throw new Error("targetMode must be a supported spellcraft target mode");
1977
+ }
1978
+ if (!isAiGameSpellcraftComplexity(input.complexity)) {
1979
+ throw new Error("complexity must be a supported spellcraft complexity");
1980
+ }
1981
+ if (!isAiGameSpellcraftChaosPressure(input.chaosPressure)) {
1982
+ throw new Error("chaosPressure must be a supported spellcraft chaos pressure");
1983
+ }
1984
+ if (!isAiGameSpellcraftFatigueState(input.fatigueState)) {
1985
+ throw new Error("fatigueState must be a supported spellcraft fatigue state");
1986
+ }
1987
+ if (!isAiGameMccReadinessBand(input.readinessBand)) {
1988
+ throw new Error("readinessBand must be a supported MCC readiness band");
1989
+ }
1990
+ assertNonEmptyString6(input.summary, "summary");
1991
+ return Object.freeze({
1992
+ contractVersion: input.contractVersion ?? AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION,
1993
+ featureFlagId: AI_GAME_MCC_GUIDANCE_FEATURE_FLAG_ID,
1994
+ advisoryId: input.advisoryId,
1995
+ recommendationId: input.recommendationId,
1996
+ verdict: input.verdict,
1997
+ targetMode: input.targetMode,
1998
+ complexity: input.complexity,
1999
+ chaosPressure: input.chaosPressure,
2000
+ fatigueState: input.fatigueState,
2001
+ readinessBand: input.readinessBand,
2002
+ prerequisiteCodes: createStringArray3(input.prerequisiteCodes, "prerequisiteCodes"),
2003
+ warningCodes: createStringArray3(input.warningCodes, "warningCodes"),
2004
+ summary: input.summary,
2005
+ reasonCodes: createStringArray3(input.reasonCodes, "reasonCodes"),
2006
+ commitment: AI_GAME_SPELLCRAFT_COMMITMENT,
2007
+ authoritativeOwner: AI_GAME_SPELLCRAFT_AUTHORITATIVE_OWNER
2008
+ });
2009
+ }
2010
+ function createAiGameMccGuidanceSnapshot(input) {
2011
+ assertNonEmptyString6(input.guidanceId, "guidanceId");
2012
+ assertContractVersion5(input.contractVersion ?? AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION);
2013
+ if (input.focusTargets.length === 0 || input.focusTargets.length > AI_GAME_MCC_GUIDANCE_MAX_FOCUS_TARGETS) {
2014
+ throw new Error(
2015
+ `focusTargets must contain between 1 and ${AI_GAME_MCC_GUIDANCE_MAX_FOCUS_TARGETS} targets`
2016
+ );
2017
+ }
2018
+ if (input.recommendations.length === 0 || input.recommendations.length > AI_GAME_MCC_GUIDANCE_MAX_RECOMMENDATIONS) {
2019
+ throw new Error(
2020
+ `recommendations must contain between 1 and ${AI_GAME_MCC_GUIDANCE_MAX_RECOMMENDATIONS} items`
2021
+ );
2022
+ }
2023
+ const focusTargets = freezeReadonlyArray6(
2024
+ input.focusTargets.map((target) => createAiGameMccFocusTarget(target))
2025
+ );
2026
+ const focusTargetIds = new Set(focusTargets.map((target) => target.targetId));
2027
+ if (focusTargetIds.size !== focusTargets.length) {
2028
+ throw new Error("focusTargets must have unique targetId values");
2029
+ }
2030
+ const readiness = createAiGameMccReadinessState(input.readiness);
2031
+ const recommendations = freezeReadonlyArray6(
2032
+ input.recommendations.map((recommendation) => {
2033
+ const created = createAiGameSpellcraftRecommendation(recommendation);
2034
+ if (!focusTargetIds.has(created.focusTargetId)) {
2035
+ throw new Error("focusTargetId must reference a supplied focus target");
2036
+ }
2037
+ return created;
2038
+ })
2039
+ );
2040
+ const advisory = createAiGameSpellcraftAdvisory(input.advisory);
2041
+ if (!recommendations.some((recommendation) => recommendation.recommendationId === advisory.recommendationId)) {
2042
+ throw new Error("advisory recommendationId must reference a supplied recommendation");
2043
+ }
2044
+ return Object.freeze({
2045
+ contractVersion: input.contractVersion ?? AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION,
2046
+ featureFlagId: AI_GAME_MCC_GUIDANCE_FEATURE_FLAG_ID,
2047
+ guidanceId: input.guidanceId,
2048
+ focusTargets,
2049
+ readiness,
2050
+ recommendations,
2051
+ advisory
2052
+ });
2053
+ }
2054
+
2055
+ // src/tutorial.ts
2056
+ var AI_GAME_TUTORIAL_FEATURE_FLAG_ID = "isekai.player-system.tutorial.enabled";
2057
+ var AI_GAME_TUTORIAL_CONTRACT_VERSION = "1.0";
2058
+ var AI_GAME_TUTORIAL_STAGES = [
2059
+ "stage-1",
2060
+ "stage-2",
2061
+ "stage-3",
2062
+ "stage-4",
2063
+ "stage-5"
2064
+ ];
2065
+ var AI_GAME_TUTORIAL_TRIGGER_KINDS = [
2066
+ "awakening",
2067
+ "first-action",
2068
+ "explicit-request",
2069
+ "progression-gated"
2070
+ ];
2071
+ var AI_GAME_TUTORIAL_PREREQUISITE_KINDS = [
2072
+ "school-access",
2073
+ "apprenticeship",
2074
+ "academy-admission",
2075
+ "guild-standing",
2076
+ "divine-progression",
2077
+ "spellcraft-readiness"
2078
+ ];
2079
+ var AI_GAME_TUTORIAL_COMPLETION_STATES = [
2080
+ "not-started",
2081
+ "active",
2082
+ "dormant",
2083
+ "completed",
2084
+ "declined"
2085
+ ];
2086
+ var AI_GAME_TUTORIAL_MAX_STEPS = 20;
2087
+ var AI_GAME_TUTORIAL_MAX_PREREQUISITES = 12;
2088
+ var AI_GAME_TUTORIAL_MAX_TRIGGERS = 8;
2089
+ function freezeReadonlyArray7(items) {
2090
+ return Object.freeze([...items]);
2091
+ }
2092
+ function createStringArray4(values, label) {
2093
+ const normalized = values ?? [];
2094
+ normalized.forEach((value) => assertNonEmptyString7(value, `${label} entry`));
2095
+ return freezeReadonlyArray7(normalized);
2096
+ }
2097
+ function assertNonEmptyString7(value, label) {
2098
+ if (value.trim().length === 0) {
2099
+ throw new Error(`${label} must be a non-empty string`);
2100
+ }
2101
+ }
2102
+ function assertContractVersion6(value) {
2103
+ if (value !== AI_GAME_TUTORIAL_CONTRACT_VERSION) {
2104
+ throw new Error(`contractVersion must be ${AI_GAME_TUTORIAL_CONTRACT_VERSION}`);
2105
+ }
2106
+ }
2107
+ function assertPositiveInteger2(value, label) {
2108
+ if (!Number.isInteger(value) || value <= 0) {
2109
+ throw new Error(`${label} must be a positive integer`);
2110
+ }
2111
+ }
2112
+ function assertNonNegativeInteger3(value, label) {
2113
+ if (!Number.isInteger(value) || value < 0) {
2114
+ throw new Error(`${label} must be a non-negative integer`);
2115
+ }
2116
+ }
2117
+ function assertIsoTimestampOrNull(value, label) {
2118
+ if (value !== null && Number.isNaN(Date.parse(value))) {
2119
+ throw new Error(`${label} must be an ISO-8601 timestamp`);
2120
+ }
2121
+ }
2122
+ function isMember6(value, members) {
2123
+ return members.includes(value);
2124
+ }
2125
+ function assertUniqueIds2(values, label) {
2126
+ if (new Set(values).size !== values.length) {
2127
+ throw new Error(`${label} must have unique IDs`);
2128
+ }
2129
+ }
2130
+ function isAiGameTutorialStage(value) {
2131
+ return isMember6(value, AI_GAME_TUTORIAL_STAGES);
2132
+ }
2133
+ function isAiGameTutorialTriggerKind(value) {
2134
+ return isMember6(value, AI_GAME_TUTORIAL_TRIGGER_KINDS);
2135
+ }
2136
+ function isAiGameTutorialPrerequisiteKind(value) {
2137
+ return isMember6(value, AI_GAME_TUTORIAL_PREREQUISITE_KINDS);
2138
+ }
2139
+ function isAiGameTutorialCompletionState(value) {
2140
+ return isMember6(value, AI_GAME_TUTORIAL_COMPLETION_STATES);
2141
+ }
2142
+ function createAiGameTutorialPrerequisite(input) {
2143
+ assertNonEmptyString7(input.markerId, "markerId");
2144
+ assertContractVersion6(input.contractVersion ?? AI_GAME_TUTORIAL_CONTRACT_VERSION);
2145
+ if (!isAiGameTutorialPrerequisiteKind(input.kind)) {
2146
+ throw new Error("kind must be a supported tutorial prerequisite kind");
2147
+ }
2148
+ assertNonEmptyString7(input.label, "label");
2149
+ return Object.freeze({
2150
+ contractVersion: input.contractVersion ?? AI_GAME_TUTORIAL_CONTRACT_VERSION,
2151
+ featureFlagId: AI_GAME_TUTORIAL_FEATURE_FLAG_ID,
2152
+ markerId: input.markerId,
2153
+ kind: input.kind,
2154
+ label: input.label,
2155
+ satisfied: input.satisfied,
2156
+ reasonCodes: createStringArray4(input.reasonCodes, "reasonCodes")
2157
+ });
2158
+ }
2159
+ function createAiGameTutorialTrigger(input) {
2160
+ assertNonEmptyString7(input.triggerId, "triggerId");
2161
+ assertContractVersion6(input.contractVersion ?? AI_GAME_TUTORIAL_CONTRACT_VERSION);
2162
+ if (!isAiGameTutorialTriggerKind(input.kind)) {
2163
+ throw new Error("kind must be a supported tutorial trigger kind");
2164
+ }
2165
+ assertNonEmptyString7(input.capabilityCode, "capabilityCode");
2166
+ return Object.freeze({
2167
+ contractVersion: input.contractVersion ?? AI_GAME_TUTORIAL_CONTRACT_VERSION,
2168
+ featureFlagId: AI_GAME_TUTORIAL_FEATURE_FLAG_ID,
2169
+ triggerId: input.triggerId,
2170
+ kind: input.kind,
2171
+ capabilityCode: input.capabilityCode,
2172
+ firstUseOnly: input.firstUseOnly,
2173
+ safeInCombat: input.safeInCombat,
2174
+ reasonCodes: createStringArray4(input.reasonCodes, "reasonCodes")
2175
+ });
2176
+ }
2177
+ function createAiGameTutorialStep(input) {
2178
+ assertNonEmptyString7(input.stepId, "stepId");
2179
+ assertNonEmptyString7(input.trackId, "trackId");
2180
+ assertContractVersion6(input.contractVersion ?? AI_GAME_TUTORIAL_CONTRACT_VERSION);
2181
+ if (!isAiGameTutorialStage(input.stage)) {
2182
+ throw new Error("stage must be a supported tutorial stage");
2183
+ }
2184
+ assertPositiveInteger2(input.sequence, "sequence");
2185
+ assertNonEmptyString7(input.title, "title");
2186
+ assertNonEmptyString7(input.summary, "summary");
2187
+ assertNonEmptyString7(input.capabilityCode, "capabilityCode");
2188
+ if (input.triggerKinds.length === 0) {
2189
+ throw new Error("triggerKinds must contain at least one trigger kind");
2190
+ }
2191
+ input.triggerKinds.forEach((kind) => {
2192
+ if (!isAiGameTutorialTriggerKind(kind)) {
2193
+ throw new Error("triggerKinds must use supported tutorial trigger kinds");
2194
+ }
2195
+ });
2196
+ return Object.freeze({
2197
+ contractVersion: input.contractVersion ?? AI_GAME_TUTORIAL_CONTRACT_VERSION,
2198
+ featureFlagId: AI_GAME_TUTORIAL_FEATURE_FLAG_ID,
2199
+ stepId: input.stepId,
2200
+ trackId: input.trackId,
2201
+ stage: input.stage,
2202
+ sequence: input.sequence,
2203
+ title: input.title,
2204
+ summary: input.summary,
2205
+ capabilityCode: input.capabilityCode,
2206
+ triggerKinds: freezeReadonlyArray7(input.triggerKinds),
2207
+ prerequisiteIds: createStringArray4(input.prerequisiteIds, "prerequisiteIds"),
2208
+ safeInCombat: input.safeInCombat,
2209
+ replayable: input.replayable,
2210
+ reasonCodes: createStringArray4(input.reasonCodes, "reasonCodes")
2211
+ });
2212
+ }
2213
+ function createAiGameTutorialProgressionState(input) {
2214
+ assertNonEmptyString7(input.trackId, "trackId");
2215
+ assertContractVersion6(input.contractVersion ?? AI_GAME_TUTORIAL_CONTRACT_VERSION);
2216
+ if (!isAiGameTutorialCompletionState(input.status)) {
2217
+ throw new Error("status must be a supported tutorial completion state");
2218
+ }
2219
+ if (input.currentStepId !== null) {
2220
+ assertNonEmptyString7(input.currentStepId, "currentStepId");
2221
+ }
2222
+ const completedStepIds = createStringArray4(input.completedStepIds, "completedStepIds");
2223
+ assertUniqueIds2(completedStepIds, "completedStepIds");
2224
+ assertNonNegativeInteger3(input.refusalCount, "refusalCount");
2225
+ assertNonNegativeInteger3(input.replayCount, "replayCount");
2226
+ assertIsoTimestampOrNull(input.lastTriggeredAtIso, "lastTriggeredAtIso");
2227
+ assertIsoTimestampOrNull(input.lastReplayedAtIso, "lastReplayedAtIso");
2228
+ if (input.status === "completed" && input.currentStepId !== null) {
2229
+ throw new Error("completed tutorials cannot have a currentStepId");
2230
+ }
2231
+ return Object.freeze({
2232
+ contractVersion: input.contractVersion ?? AI_GAME_TUTORIAL_CONTRACT_VERSION,
2233
+ featureFlagId: AI_GAME_TUTORIAL_FEATURE_FLAG_ID,
2234
+ trackId: input.trackId,
2235
+ status: input.status,
2236
+ currentStepId: input.currentStepId,
2237
+ completedStepIds,
2238
+ refusalCount: input.refusalCount,
2239
+ replayCount: input.replayCount,
2240
+ replayable: input.replayable,
2241
+ lastTriggeredAtIso: input.lastTriggeredAtIso,
2242
+ lastReplayedAtIso: input.lastReplayedAtIso,
2243
+ reasonCodes: createStringArray4(input.reasonCodes, "reasonCodes")
2244
+ });
2245
+ }
2246
+ function createAiGameTutorialTrack(input) {
2247
+ assertNonEmptyString7(input.trackId, "trackId");
2248
+ assertContractVersion6(input.contractVersion ?? AI_GAME_TUTORIAL_CONTRACT_VERSION);
2249
+ assertNonEmptyString7(input.title, "title");
2250
+ assertNonEmptyString7(input.summary, "summary");
2251
+ if (input.steps.length === 0 || input.steps.length > AI_GAME_TUTORIAL_MAX_STEPS) {
2252
+ throw new Error(
2253
+ `steps must contain between 1 and ${AI_GAME_TUTORIAL_MAX_STEPS} steps`
2254
+ );
2255
+ }
2256
+ if (input.prerequisites.length > AI_GAME_TUTORIAL_MAX_PREREQUISITES) {
2257
+ throw new Error(
2258
+ `prerequisites cannot contain more than ${AI_GAME_TUTORIAL_MAX_PREREQUISITES} markers`
2259
+ );
2260
+ }
2261
+ if (input.triggers.length === 0 || input.triggers.length > AI_GAME_TUTORIAL_MAX_TRIGGERS) {
2262
+ throw new Error(
2263
+ `triggers must contain between 1 and ${AI_GAME_TUTORIAL_MAX_TRIGGERS} triggers`
2264
+ );
2265
+ }
2266
+ const steps = freezeReadonlyArray7(
2267
+ input.steps.map((step) => createAiGameTutorialStep(step))
2268
+ );
2269
+ const prerequisites = freezeReadonlyArray7(
2270
+ input.prerequisites.map((marker) => createAiGameTutorialPrerequisite(marker))
2271
+ );
2272
+ const triggers = freezeReadonlyArray7(
2273
+ input.triggers.map((trigger) => createAiGameTutorialTrigger(trigger))
2274
+ );
2275
+ const progression = createAiGameTutorialProgressionState(input.progression);
2276
+ assertUniqueIds2(steps.map((step) => step.stepId), "steps");
2277
+ assertUniqueIds2(prerequisites.map((marker) => marker.markerId), "prerequisites");
2278
+ assertUniqueIds2(triggers.map((trigger) => trigger.triggerId), "triggers");
2279
+ if (progression.trackId !== input.trackId) {
2280
+ throw new Error("progression trackId must match the tutorial track");
2281
+ }
2282
+ const stepIds = new Set(steps.map((step) => step.stepId));
2283
+ const prerequisiteIds = new Set(prerequisites.map((marker) => marker.markerId));
2284
+ const triggerKinds = new Set(triggers.map((trigger) => trigger.kind));
2285
+ if (progression.currentStepId !== null && !stepIds.has(progression.currentStepId)) {
2286
+ throw new Error("currentStepId must reference a supplied tutorial step");
2287
+ }
2288
+ if (progression.completedStepIds.some((stepId) => !stepIds.has(stepId))) {
2289
+ throw new Error("completedStepIds must reference supplied tutorial steps");
2290
+ }
2291
+ steps.forEach((step) => {
2292
+ if (step.trackId !== input.trackId) {
2293
+ throw new Error("step trackId must match the tutorial track");
2294
+ }
2295
+ if (step.prerequisiteIds.some((markerId) => !prerequisiteIds.has(markerId))) {
2296
+ throw new Error("prerequisiteIds must reference supplied prerequisites");
2297
+ }
2298
+ if (step.triggerKinds.some((kind) => !triggerKinds.has(kind))) {
2299
+ throw new Error("triggerKinds must reference supplied triggers");
2300
+ }
2301
+ });
2302
+ return Object.freeze({
2303
+ contractVersion: input.contractVersion ?? AI_GAME_TUTORIAL_CONTRACT_VERSION,
2304
+ featureFlagId: AI_GAME_TUTORIAL_FEATURE_FLAG_ID,
2305
+ trackId: input.trackId,
2306
+ title: input.title,
2307
+ summary: input.summary,
2308
+ steps,
2309
+ prerequisites,
2310
+ triggers,
2311
+ progression,
2312
+ reasonCodes: createStringArray4(input.reasonCodes, "reasonCodes")
2313
+ });
2314
+ }
2315
+
1693
2316
  // src/world-events.ts
1694
2317
  function isCanonicalWorldEvent(event) {
1695
2318
  return event.recordType === "canonical";
@@ -1841,7 +2464,7 @@ var QUIET_MEASURE_JUDGMENT_MISSING_EVIDENCE = [
1841
2464
  "private-or-low-witness-evidence",
1842
2465
  "costly-pressure-event"
1843
2466
  ];
1844
- function isMember5(value, members) {
2467
+ function isMember7(value, members) {
1845
2468
  return members.includes(value);
1846
2469
  }
1847
2470
  function assertRecord(value, label) {
@@ -1882,7 +2505,7 @@ function normalizeTimestamp(value, label) {
1882
2505
  }
1883
2506
  function normalizeMember(value, members, label) {
1884
2507
  const normalized = normalizeNonEmptyString(value, label);
1885
- if (!isMember5(normalized, members)) {
2508
+ if (!isMember7(normalized, members)) {
1886
2509
  throw new TypeError(`${label} must be one of: ${members.join(", ")}.`);
1887
2510
  }
1888
2511
  return normalized;
@@ -2015,13 +2638,13 @@ function normalizeDominantReads(value) {
2015
2638
  return Object.freeze(value.map((entry, index) => normalizeDerivedReadSummary(entry, index)));
2016
2639
  }
2017
2640
  function isQuietMeasureAxis(value) {
2018
- return isMember5(value, QUIET_MEASURE_AXES);
2641
+ return isMember7(value, QUIET_MEASURE_AXES);
2019
2642
  }
2020
2643
  function isQuietMeasureMissionProbeMode(value) {
2021
- return isMember5(value, QUIET_MEASURE_MISSION_PROBE_MODES);
2644
+ return isMember7(value, QUIET_MEASURE_MISSION_PROBE_MODES);
2022
2645
  }
2023
2646
  function isQuietMeasureMissionResolutionShape(value) {
2024
- return isMember5(value, QUIET_MEASURE_MISSION_RESOLUTION_SHAPES);
2647
+ return isMember7(value, QUIET_MEASURE_MISSION_RESOLUTION_SHAPES);
2025
2648
  }
2026
2649
  function createQuietMeasureJudgmentEligibility(input = {}) {
2027
2650
  const repeatedMeaningfulEvidence = normalizeOptionalBoolean(
@@ -2536,6 +3159,15 @@ var gameEventFeatureFlags = Object.freeze([
2536
3159
  AI_GAME_IDENTITY_TARGET_CATEGORIES,
2537
3160
  AI_GAME_IDENTITY_VISIBILITY_STATES,
2538
3161
  AI_GAME_INCIDENT_IMPACT_FEATURE_FLAG_ID,
3162
+ AI_GAME_MCC_FOCUS_PRIORITIES,
3163
+ AI_GAME_MCC_GROWTH_DIRECTIONS,
3164
+ AI_GAME_MCC_GUIDANCE_CONTRACT_VERSION,
3165
+ AI_GAME_MCC_GUIDANCE_FEATURE_FLAG_ID,
3166
+ AI_GAME_MCC_GUIDANCE_MAX_FOCUS_TARGETS,
3167
+ AI_GAME_MCC_GUIDANCE_MAX_RECOMMENDATIONS,
3168
+ AI_GAME_MCC_READINESS_BANDS,
3169
+ AI_GAME_MCC_WARNING_KINDS,
3170
+ AI_GAME_MCC_WARNING_STATES,
2539
3171
  AI_GAME_MISSIONS_CONTRACT_VERSION,
2540
3172
  AI_GAME_MISSIONS_FEATURE_FLAG_ID,
2541
3173
  AI_GAME_MISSION_CLASSES,
@@ -2580,6 +3212,14 @@ var gameEventFeatureFlags = Object.freeze([
2580
3212
  AI_GAME_PLAYER_SYSTEM_PREFERENCE_KINDS,
2581
3213
  AI_GAME_PLAYER_SYSTEM_PREFERENCE_SOURCES,
2582
3214
  AI_GAME_QUIET_MEASURE_FEATURE_FLAG_ID,
3215
+ AI_GAME_SPELLCRAFT_AUTHORITATIVE_OWNER,
3216
+ AI_GAME_SPELLCRAFT_CHAOS_PRESSURES,
3217
+ AI_GAME_SPELLCRAFT_COMMITMENT,
3218
+ AI_GAME_SPELLCRAFT_COMPLEXITIES,
3219
+ AI_GAME_SPELLCRAFT_FATIGUE_STATES,
3220
+ AI_GAME_SPELLCRAFT_RECOMMENDATION_KINDS,
3221
+ AI_GAME_SPELLCRAFT_TARGET_MODES,
3222
+ AI_GAME_SPELLCRAFT_VERDICTS,
2583
3223
  AI_GAME_TASK_AUTHORITY_BOUNDARIES,
2584
3224
  AI_GAME_TASK_DECISIONS,
2585
3225
  AI_GAME_TASK_KINDS,
@@ -2602,6 +3242,15 @@ var gameEventFeatureFlags = Object.freeze([
2602
3242
  AI_GAME_TRAINING_TECHNIQUE_MASTERY_STATES,
2603
3243
  AI_GAME_TRAINING_TRUST_MARKER_SOURCES,
2604
3244
  AI_GAME_TTS_CACHE_POLICIES,
3245
+ AI_GAME_TUTORIAL_COMPLETION_STATES,
3246
+ AI_GAME_TUTORIAL_CONTRACT_VERSION,
3247
+ AI_GAME_TUTORIAL_FEATURE_FLAG_ID,
3248
+ AI_GAME_TUTORIAL_MAX_PREREQUISITES,
3249
+ AI_GAME_TUTORIAL_MAX_STEPS,
3250
+ AI_GAME_TUTORIAL_MAX_TRIGGERS,
3251
+ AI_GAME_TUTORIAL_PREREQUISITE_KINDS,
3252
+ AI_GAME_TUTORIAL_STAGES,
3253
+ AI_GAME_TUTORIAL_TRIGGER_KINDS,
2605
3254
  QUIET_MEASURE_AXES,
2606
3255
  QUIET_MEASURE_CONFIDENCE_BANDS,
2607
3256
  QUIET_MEASURE_DERIVED_READS,
@@ -2625,6 +3274,10 @@ var gameEventFeatureFlags = Object.freeze([
2625
3274
  createAiGameIdentityTargetProjection,
2626
3275
  createAiGameInstitutionEligibility,
2627
3276
  createAiGameMartialTrainingSnapshot,
3277
+ createAiGameMccFocusTarget,
3278
+ createAiGameMccGuidanceSnapshot,
3279
+ createAiGameMccReadinessState,
3280
+ createAiGameMccWarning,
2628
3281
  createAiGameMissionDefinition,
2629
3282
  createAiGameMissionMccFocusInfluence,
2630
3283
  createAiGameMissionObjectiveState,
@@ -2645,12 +3298,19 @@ var gameEventFeatureFlags = Object.freeze([
2645
3298
  createAiGamePlayerSystemPreferenceProfile,
2646
3299
  createAiGamePlayerSystemSession,
2647
3300
  createAiGameSpecializationRecommendation,
3301
+ createAiGameSpellcraftAdvisory,
3302
+ createAiGameSpellcraftRecommendation,
2648
3303
  createAiGameTrainingAcademicMissionPrerequisite,
2649
3304
  createAiGameTrainingAcademyAdmission,
2650
3305
  createAiGameTrainingSchoolProgression,
2651
3306
  createAiGameTrainingStateSnapshot,
2652
3307
  createAiGameTrainingTrackSelection,
2653
3308
  createAiGameTrainingTrustMarker,
3309
+ createAiGameTutorialPrerequisite,
3310
+ createAiGameTutorialProgressionState,
3311
+ createAiGameTutorialStep,
3312
+ createAiGameTutorialTrack,
3313
+ createAiGameTutorialTrigger,
2654
3314
  createQuietMeasureJudgmentEligibility,
2655
3315
  createQuietMeasureJudgmentResponse,
2656
3316
  gameEventFeatureFlags,
@@ -2662,6 +3322,11 @@ var gameEventFeatureFlags = Object.freeze([
2662
3322
  isAiGameIdentityProjectionRead,
2663
3323
  isAiGameIdentityTargetCategory,
2664
3324
  isAiGameIdentityVisibilityState,
3325
+ isAiGameMccFocusPriority,
3326
+ isAiGameMccGrowthDirection,
3327
+ isAiGameMccReadinessBand,
3328
+ isAiGameMccWarningKind,
3329
+ isAiGameMccWarningState,
2665
3330
  isAiGameMissionClass,
2666
3331
  isAiGameMissionConfidenceBand,
2667
3332
  isAiGameMissionFeedbackChannel,
@@ -2688,6 +3353,12 @@ var gameEventFeatureFlags = Object.freeze([
2688
3353
  isAiGamePlayerSystemModule,
2689
3354
  isAiGamePlayerSystemPreferenceKind,
2690
3355
  isAiGamePlayerSystemPreferenceSource,
3356
+ isAiGameSpellcraftChaosPressure,
3357
+ isAiGameSpellcraftComplexity,
3358
+ isAiGameSpellcraftFatigueState,
3359
+ isAiGameSpellcraftRecommendationKind,
3360
+ isAiGameSpellcraftTargetMode,
3361
+ isAiGameSpellcraftVerdict,
2691
3362
  isAiGameTrainingAcademicProgressStage,
2692
3363
  isAiGameTrainingAcademyAdmissionDecision,
2693
3364
  isAiGameTrainingAntiSpellCounterWindow,
@@ -2701,6 +3372,10 @@ var gameEventFeatureFlags = Object.freeze([
2701
3372
  isAiGameTrainingStageGate,
2702
3373
  isAiGameTrainingTechniqueMasteryState,
2703
3374
  isAiGameTrainingTrustMarkerSource,
3375
+ isAiGameTutorialCompletionState,
3376
+ isAiGameTutorialPrerequisiteKind,
3377
+ isAiGameTutorialStage,
3378
+ isAiGameTutorialTriggerKind,
2704
3379
  isCandidateWorldEvent,
2705
3380
  isCanonicalWorldEvent,
2706
3381
  isGossipTopicActive,