@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 +16 -0
- package/README.md +3 -0
- package/dist/index.cjs +45 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -7
- package/dist/index.d.ts +11 -7
- package/dist/index.js +47 -30
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { TrainingInstitutionType, MccExpressionTrack, TrainingTrustLevel, TrainingBarracksDrill, TrainingMissionTechniqueUnlock, TrainingMartialTechnique, TrainingAntiSpellFieldcraftDiscipline, TrainingProgressionRecord, TrainingInstitution } from '@plasius/training';
|
|
2
|
-
export { TRAINING_ANTI_SPELL_COUNTER_WINDOWS as AI_GAME_TRAINING_ANTI_SPELL_COUNTER_WINDOWS, TRAINING_ANTI_SPELL_FIELDCRAFT_FAMILIES as AI_GAME_TRAINING_ANTI_SPELL_FIELDCRAFT_FAMILIES, TRAINING_BARRACKS_DRILL_DELIVERY_MODES as AI_GAME_TRAINING_BARRACKS_DRILL_DELIVERY_MODES, TRAINING_FEATURE_FLAG_ID as AI_GAME_TRAINING_INSTITUTIONS_FEATURE_FLAG_ID, TRAINING_MARTIAL_FEATURE_FLAG_ID as AI_GAME_TRAINING_MARTIAL_FEATURE_FLAG_ID, TRAINING_MARTIAL_TECHNIQUE_FAMILIES as AI_GAME_TRAINING_MARTIAL_TECHNIQUE_FAMILIES, TRAINING_MARTIAL_TECHNIQUE_TRACKS as AI_GAME_TRAINING_MARTIAL_TECHNIQUE_TRACKS, TrainingAntiSpellCounterWindow as AiGameTrainingAntiSpellCounterWindow, TrainingAntiSpellFieldcraftDiscipline as AiGameTrainingAntiSpellFieldcraftDiscipline, TrainingAntiSpellFieldcraftFamily as AiGameTrainingAntiSpellFieldcraftFamily, TrainingBarracksDrill as AiGameTrainingBarracksDrill, TrainingBarracksDrillDeliveryMode as AiGameTrainingBarracksDrillDeliveryMode, TrainingInstitution as AiGameTrainingInstitution, TrainingInstitutionType as AiGameTrainingInstitutionType, TrainingMartialTechnique as AiGameTrainingMartialTechnique, TrainingMartialTechniqueFamily as AiGameTrainingMartialTechniqueFamily, TrainingMartialTechniqueTrack as AiGameTrainingMartialTechniqueTrack, TrainingMissionTechniqueUnlock as AiGameTrainingMissionTechniqueUnlock, MccExpressionTrack as AiGameTrainingSpecializationLeaning, TrainingProgressionRecord as AiGameTrainingState, TrainingTrustLevel as AiGameTrainingTrustLevel, isTrainingAntiSpellCounterWindow as isAiGameTrainingAntiSpellCounterWindow, isTrainingAntiSpellFieldcraftFamily as isAiGameTrainingAntiSpellFieldcraftFamily, isTrainingBarracksDrillDeliveryMode as isAiGameTrainingBarracksDrillDeliveryMode, isTrainingMartialTechniqueFamily as isAiGameTrainingMartialTechniqueFamily, isTrainingMartialTechniqueTrack as isAiGameTrainingMartialTechniqueTrack, isMccExpressionTrack, isTrainingTrustLevel } from '@plasius/training';
|
|
1
|
+
import { TrainingSchoolProgression, TrainingAcademyAdmission, TrainingTrackSelection, TrainingInstitutionType, MccExpressionTrack, TrainingTrustLevel, TrainingBarracksDrill, TrainingMissionTechniqueUnlock, TrainingMartialTechnique, TrainingAntiSpellFieldcraftDiscipline, TrainingProgressionRecord, TrainingInstitution, TrainingTrustMarkerSource } from '@plasius/training';
|
|
2
|
+
export { TRAINING_ACADEMIC_PROGRESS_STAGES as AI_GAME_TRAINING_ACADEMIC_PROGRESS_STAGES, TRAINING_ACADEMIES_FEATURE_FLAG_ID as AI_GAME_TRAINING_ACADEMIES_FEATURE_FLAG_ID, TRAINING_ACADEMY_ADMISSION_DECISIONS as AI_GAME_TRAINING_ACADEMY_ADMISSION_DECISIONS, TRAINING_ANTI_SPELL_COUNTER_WINDOWS as AI_GAME_TRAINING_ANTI_SPELL_COUNTER_WINDOWS, TRAINING_ANTI_SPELL_FIELDCRAFT_FAMILIES as AI_GAME_TRAINING_ANTI_SPELL_FIELDCRAFT_FAMILIES, TRAINING_BARRACKS_DRILL_DELIVERY_MODES as AI_GAME_TRAINING_BARRACKS_DRILL_DELIVERY_MODES, TRAINING_FEATURE_FLAG_ID as AI_GAME_TRAINING_INSTITUTIONS_FEATURE_FLAG_ID, TRAINING_INSTRUCTION_ACCESS_LEVELS as AI_GAME_TRAINING_INSTRUCTION_ACCESS_LEVELS, TRAINING_MARTIAL_FEATURE_FLAG_ID as AI_GAME_TRAINING_MARTIAL_FEATURE_FLAG_ID, TRAINING_MARTIAL_TECHNIQUE_FAMILIES as AI_GAME_TRAINING_MARTIAL_TECHNIQUE_FAMILIES, TRAINING_MARTIAL_TECHNIQUE_TRACKS as AI_GAME_TRAINING_MARTIAL_TECHNIQUE_TRACKS, TRAINING_TECHNIQUE_MASTERY_STATES as AI_GAME_TRAINING_TECHNIQUE_MASTERY_STATES, TRAINING_TRUST_MARKER_SOURCES as AI_GAME_TRAINING_TRUST_MARKER_SOURCES, TrainingAcademicMissionPrerequisite as AiGameTrainingAcademicMissionPrerequisite, TrainingAcademicProgressStage as AiGameTrainingAcademicProgressStage, TrainingAcademyAdmission as AiGameTrainingAcademyAdmission, TrainingAcademyAdmissionDecision as AiGameTrainingAcademyAdmissionDecision, TrainingAntiSpellCounterWindow as AiGameTrainingAntiSpellCounterWindow, TrainingAntiSpellFieldcraftDiscipline as AiGameTrainingAntiSpellFieldcraftDiscipline, TrainingAntiSpellFieldcraftFamily as AiGameTrainingAntiSpellFieldcraftFamily, TrainingBarracksDrill as AiGameTrainingBarracksDrill, TrainingBarracksDrillDeliveryMode as AiGameTrainingBarracksDrillDeliveryMode, TrainingInstitution as AiGameTrainingInstitution, TrainingInstitutionType as AiGameTrainingInstitutionType, TrainingInstructionAccessLevel as AiGameTrainingInstructionAccessLevel, TrainingMartialTechnique as AiGameTrainingMartialTechnique, TrainingMartialTechniqueFamily as AiGameTrainingMartialTechniqueFamily, TrainingMartialTechniqueTrack as AiGameTrainingMartialTechniqueTrack, TrainingMissionTechniqueUnlock as AiGameTrainingMissionTechniqueUnlock, TrainingSchoolProgression as AiGameTrainingSchoolProgression, MccExpressionTrack as AiGameTrainingSpecializationLeaning, TrainingProgressionRecord as AiGameTrainingState, TrainingTechniqueMasteryState as AiGameTrainingTechniqueMasteryState, TrainingTrackSelection as AiGameTrainingTrackSelection, TrainingTrustLevel as AiGameTrainingTrustLevel, TrainingTrustMarkerSource as AiGameTrainingTrustMarkerSource, createTrainingAcademicMissionPrerequisite as createAiGameTrainingAcademicMissionPrerequisite, createTrainingAcademyAdmission as createAiGameTrainingAcademyAdmission, createTrainingSchoolProgression as createAiGameTrainingSchoolProgression, createTrainingTrackSelection as createAiGameTrainingTrackSelection, isTrainingAcademicProgressStage as isAiGameTrainingAcademicProgressStage, isTrainingAcademyAdmissionDecision as isAiGameTrainingAcademyAdmissionDecision, isTrainingAntiSpellCounterWindow as isAiGameTrainingAntiSpellCounterWindow, isTrainingAntiSpellFieldcraftFamily as isAiGameTrainingAntiSpellFieldcraftFamily, isTrainingBarracksDrillDeliveryMode as isAiGameTrainingBarracksDrillDeliveryMode, isTrainingInstructionAccessLevel as isAiGameTrainingInstructionAccessLevel, isTrainingMartialTechniqueFamily as isAiGameTrainingMartialTechniqueFamily, isTrainingMartialTechniqueTrack as isAiGameTrainingMartialTechniqueTrack, isTrainingTechniqueMasteryState as isAiGameTrainingTechniqueMasteryState, isTrainingTrustMarkerSource as isAiGameTrainingTrustMarkerSource, isMccExpressionTrack, isTrainingTrustLevel } from '@plasius/training';
|
|
3
3
|
|
|
4
4
|
declare const AI_GAME_TRAINING_STAGE_GATES: readonly ["system-first-awakening", "field-repetition", "first-social-institution", "advanced-specialization", "dominion-and-divine"];
|
|
5
5
|
type AiGameTrainingStageGate = (typeof AI_GAME_TRAINING_STAGE_GATES)[number];
|
|
6
|
-
declare const AI_GAME_TRAINING_TRUST_MARKER_SOURCES: readonly ["system", "mission", "institution", "sponsor"];
|
|
7
|
-
type AiGameTrainingTrustMarkerSource = (typeof AI_GAME_TRAINING_TRUST_MARKER_SOURCES)[number];
|
|
8
6
|
declare const AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS: readonly ["low", "medium", "high"];
|
|
9
7
|
type AiGameTrainingRecommendationConfidenceBand = (typeof AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS)[number];
|
|
10
8
|
declare const AI_GAME_TRAINING_RECOMMENDATION_READINESS: readonly ["ready", "needs-prerequisites", "institution-gated"];
|
|
@@ -23,7 +21,7 @@ interface AiGameTrainingTrustMarker {
|
|
|
23
21
|
readonly markerId: string;
|
|
24
22
|
readonly institutionId: string;
|
|
25
23
|
readonly trustLevel: TrainingTrustLevel;
|
|
26
|
-
readonly source:
|
|
24
|
+
readonly source: TrainingTrustMarkerSource;
|
|
27
25
|
readonly awardedAtIso: string;
|
|
28
26
|
readonly reasonCodes: readonly string[];
|
|
29
27
|
}
|
|
@@ -45,6 +43,12 @@ interface AiGameTrainingStateSnapshot {
|
|
|
45
43
|
readonly trustMarkers: readonly AiGameTrainingTrustMarker[];
|
|
46
44
|
readonly recommendations: readonly AiGameSpecializationRecommendation[];
|
|
47
45
|
}
|
|
46
|
+
interface AiGameAcademicTrainingSnapshot {
|
|
47
|
+
readonly schoolProgression: TrainingSchoolProgression;
|
|
48
|
+
readonly academyAdmissions: readonly TrainingAcademyAdmission[];
|
|
49
|
+
readonly trackSelections: readonly TrainingTrackSelection[];
|
|
50
|
+
readonly recommendations: readonly AiGameSpecializationRecommendation[];
|
|
51
|
+
}
|
|
48
52
|
interface AiGameMartialTrainingSnapshot {
|
|
49
53
|
readonly barracksDrills: readonly TrainingBarracksDrill[];
|
|
50
54
|
readonly missionTechniqueUnlocks: readonly TrainingMissionTechniqueUnlock[];
|
|
@@ -52,13 +56,13 @@ interface AiGameMartialTrainingSnapshot {
|
|
|
52
56
|
readonly antiSpellFieldcraft: readonly TrainingAntiSpellFieldcraftDiscipline[];
|
|
53
57
|
}
|
|
54
58
|
declare function isAiGameTrainingStageGate(value: string): value is AiGameTrainingStageGate;
|
|
55
|
-
declare function isAiGameTrainingTrustMarkerSource(value: string): value is AiGameTrainingTrustMarkerSource;
|
|
56
59
|
declare function isAiGameTrainingRecommendationConfidenceBand(value: string): value is AiGameTrainingRecommendationConfidenceBand;
|
|
57
60
|
declare function isAiGameTrainingRecommendationReadiness(value: string): value is AiGameTrainingRecommendationReadiness;
|
|
58
61
|
declare function createAiGameInstitutionEligibility(input: AiGameInstitutionEligibility): AiGameInstitutionEligibility;
|
|
59
62
|
declare function createAiGameTrainingTrustMarker(input: AiGameTrainingTrustMarker): AiGameTrainingTrustMarker;
|
|
60
63
|
declare function createAiGameSpecializationRecommendation(input: AiGameSpecializationRecommendation): AiGameSpecializationRecommendation;
|
|
61
64
|
declare function createAiGameTrainingStateSnapshot(input: AiGameTrainingStateSnapshot): AiGameTrainingStateSnapshot;
|
|
65
|
+
declare function createAiGameAcademicTrainingSnapshot(input: AiGameAcademicTrainingSnapshot): AiGameAcademicTrainingSnapshot;
|
|
62
66
|
declare function createAiGameMartialTrainingSnapshot(input: AiGameMartialTrainingSnapshot): AiGameMartialTrainingSnapshot;
|
|
63
67
|
|
|
64
68
|
type Version = string;
|
|
@@ -582,4 +586,4 @@ declare const aiGameFeatureFlags: Readonly<{
|
|
|
582
586
|
}>;
|
|
583
587
|
declare const gameEventFeatureFlags: readonly ("ai.game.event-recorder.contracts.enabled" | "ai.game.event-recorder.ingestion.enabled" | "ai.game.event-recorder.impact.enabled" | "ai.game.npc-gossip.topics.enabled" | "ai.game.npc-gossip.perspective.enabled" | "ai.game.npc-gossip.lifecycle.enabled")[];
|
|
584
588
|
|
|
585
|
-
export { AI_GAME_ACTOR_ROLES, AI_GAME_ENV_PREFIX, AI_GAME_EVENT_CONTRACTS_FEATURE_FLAG_ID, AI_GAME_EVENT_INGESTION_FEATURE_FLAG_ID, AI_GAME_FEATURE_FLAGS, AI_GAME_FEATURE_FLAG_ID, AI_GAME_GOSSIP_LIFECYCLE_FEATURE_FLAG_ID, AI_GAME_GOSSIP_TOPICS_FEATURE_FLAG_ID, AI_GAME_INCIDENT_IMPACT_FEATURE_FLAG_ID, AI_GAME_PACKAGE, AI_GAME_PERSPECTIVE_FEATURE_FLAG_ID, AI_GAME_QUIET_MEASURE_FEATURE_FLAG_ID, AI_GAME_TASK_AUTHORITY_BOUNDARIES, AI_GAME_TASK_DECISIONS, AI_GAME_TASK_KINDS, AI_GAME_TASK_RESULTS, AI_GAME_TASK_RISK_CLASSES, AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS, AI_GAME_TRAINING_RECOMMENDATION_READINESS, AI_GAME_TRAINING_STAGE_GATES,
|
|
589
|
+
export { AI_GAME_ACTOR_ROLES, AI_GAME_ENV_PREFIX, AI_GAME_EVENT_CONTRACTS_FEATURE_FLAG_ID, AI_GAME_EVENT_INGESTION_FEATURE_FLAG_ID, AI_GAME_FEATURE_FLAGS, AI_GAME_FEATURE_FLAG_ID, AI_GAME_GOSSIP_LIFECYCLE_FEATURE_FLAG_ID, AI_GAME_GOSSIP_TOPICS_FEATURE_FLAG_ID, AI_GAME_INCIDENT_IMPACT_FEATURE_FLAG_ID, AI_GAME_PACKAGE, AI_GAME_PERSPECTIVE_FEATURE_FLAG_ID, AI_GAME_QUIET_MEASURE_FEATURE_FLAG_ID, AI_GAME_TASK_AUTHORITY_BOUNDARIES, AI_GAME_TASK_DECISIONS, AI_GAME_TASK_KINDS, AI_GAME_TASK_RESULTS, AI_GAME_TASK_RISK_CLASSES, AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS, AI_GAME_TRAINING_RECOMMENDATION_READINESS, AI_GAME_TRAINING_STAGE_GATES, AI_GAME_TTS_CACHE_POLICIES, type AiGameAcademicTrainingSnapshot, type AiGameActorRole, type AiGameAuthorityBoundary, type AiGameFeatureFlagKey, type AiGameFeatureFlagSnapshot, type AiGameInstitutionEligibility, type AiGameMartialTrainingSnapshot, type AiGamePolicyAuditBase, type AiGameSpecializationRecommendation, type AiGameTaskDecision, type AiGameTaskDecisionResult, type AiGameTaskKind, type AiGameTaskRequest, type AiGameTaskResolution, type AiGameTaskResult, type AiGameTaskRiskClass, type AiGameTrainingRecommendationConfidenceBand, type AiGameTrainingRecommendationReadiness, type AiGameTrainingStageGate, type AiGameTrainingStateSnapshot, type AiGameTrainingTrustMarker, type AiGameTtsCachePolicy, type AiPackageDescriptor, type CreateQuietMeasureJudgmentResponseInput, type DungeonClearedPayload, type DungeonCreatedPayload, type EventSourceLink, type FamineStartedPayload, type GameEventActor, type GameEventActorKind, type GameEventCausation, type GameEventCommitReceipt, type GameEventLocation, type GameEventParticipant, type GameEventParticipantRole, type GameEventRecordType, type GameEventSeverity, type GameEventSubmissionChannel, type GameEventSubmissionReceipt, type GameEventValidationIssue, type GameEventValidationResult, type GameEventVisibilityClass, type GameWorldEvent, type GameWorldEventCandidate, type GameWorldEventCanonical, type GameWorldEventEnvelope, type GameWorldEventPayload, type GameWorldEventPayloadBase, type GameWorldEventType, type GossipAudienceSegment, type GossipConfidence, type GossipLifecyclePort, type GossipPerspectiveProjection, type GossipProjectionMode, type GossipSalience, type GossipSpeechHint, type GossipTopic, type GossipTopicEnvelope, type GossipTopicPayload, type GossipTopicStatus, type JsonValue, type KnowledgeSource, type MonsterKilledPayload, type MonsterSpawnedPayload, type PerspectiveRule, type ProjectedGossipEnvelope, type ProjectionCheckpointStore, type ProjectionProjectorCheckpoint, QUIET_MEASURE_AXES, QUIET_MEASURE_CONFIDENCE_BANDS, QUIET_MEASURE_DERIVED_READS, QUIET_MEASURE_EVIDENCE_CLASSES, QUIET_MEASURE_JUDGMENT_DISCLOSURES, QUIET_MEASURE_JUDGMENT_MISSING_EVIDENCE, QUIET_MEASURE_JUDGMENT_REQUESTERS, QUIET_MEASURE_MISSION_PROBE_MODES, QUIET_MEASURE_MISSION_RESOLUTION_SHAPES, QUIET_MEASURE_PERSPECTIVES, QUIET_MEASURE_SIGNAL_BANDS, type QuietMeasureAxis, type QuietMeasureAxisSummary, type QuietMeasureConfidenceBand, type QuietMeasureDerivedRead, type QuietMeasureDerivedReadSummary, type QuietMeasureEvidenceClass, type QuietMeasureEvidenceWindow, type QuietMeasureJudgmentDisclosure, type QuietMeasureJudgmentEligibility, type QuietMeasureJudgmentEligibilityInput, type QuietMeasureJudgmentInsufficientEvidenceResponse, type QuietMeasureJudgmentMissingEvidence, type QuietMeasureJudgmentRequest, type QuietMeasureJudgmentRequester, type QuietMeasureJudgmentResponse, type QuietMeasureJudgmentVerdictResponse, type QuietMeasureMissionProbe, type QuietMeasureMissionProbeMode, type QuietMeasureMissionResolutionMetadata, type QuietMeasureMissionResolutionShape, type QuietMeasurePerspective, type QuietMeasureSignalBand, type QuietMeasureTitleDescriptor, type ResolveAiGamePlayerAddressInput, type ResolveAiGamePlayerAddressResult, type ResolveAiGameTaskInput, type SurplusUpdatedPayload, type SystemCheckpointPayload, type Version, type WarDeclaredPayload, type WarResolvedPayload, type WitnessChannel, type WorldEventIngestionPort, type WorldEventProjectorPort, type WorldIncidentImpactKey, type WorldIncidentImpactVector, type WorldIncidentLifecycle, type WorldIncidentRegistry, type WorldIncidentResolution, type WorldIncidentScope, type WorldIncidentThread, aiGameFeatureFlags, classifyAiGameTask, createAiGameAcademicTrainingSnapshot, createAiGameInstitutionEligibility, createAiGameMartialTrainingSnapshot, createAiGameSpecializationRecommendation, createAiGameTrainingStateSnapshot, createAiGameTrainingTrustMarker, createQuietMeasureJudgmentEligibility, createQuietMeasureJudgmentResponse, gameEventFeatureFlags, isAiGameTrainingRecommendationConfidenceBand, isAiGameTrainingRecommendationReadiness, isAiGameTrainingStageGate, isCandidateWorldEvent, isCanonicalWorldEvent, isGossipTopicActive, isGossipTopicCorrected, isIncidentResolved, isQuietMeasureAxis, isQuietMeasureMissionProbeMode, isQuietMeasureMissionResolutionShape, listQuietMeasureMissingEvidence, normalizeIncidentImpactVector, packageDescriptor, projectTopicForAudience, resolveAiGamePlayerAddressText, resolveAiGameTaskBatch };
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,40 @@
|
|
|
1
1
|
// src/training-state.ts
|
|
2
2
|
import {
|
|
3
|
+
TRAINING_ACADEMIES_FEATURE_FLAG_ID,
|
|
3
4
|
TRAINING_FEATURE_FLAG_ID,
|
|
4
5
|
TRAINING_MARTIAL_FEATURE_FLAG_ID,
|
|
6
|
+
TRAINING_TRUST_MARKER_SOURCES,
|
|
7
|
+
TRAINING_ACADEMIC_PROGRESS_STAGES,
|
|
8
|
+
TRAINING_ACADEMY_ADMISSION_DECISIONS,
|
|
9
|
+
TRAINING_INSTRUCTION_ACCESS_LEVELS,
|
|
10
|
+
TRAINING_TECHNIQUE_MASTERY_STATES,
|
|
5
11
|
TRAINING_MARTIAL_TECHNIQUE_TRACKS,
|
|
6
12
|
TRAINING_BARRACKS_DRILL_DELIVERY_MODES,
|
|
7
13
|
TRAINING_MARTIAL_TECHNIQUE_FAMILIES,
|
|
8
14
|
TRAINING_ANTI_SPELL_FIELDCRAFT_FAMILIES,
|
|
9
15
|
TRAINING_ANTI_SPELL_COUNTER_WINDOWS,
|
|
16
|
+
createTrainingAcademicMissionPrerequisite,
|
|
17
|
+
createTrainingAcademyAdmission,
|
|
10
18
|
createTrainingAntiSpellFieldcraftDiscipline,
|
|
11
19
|
createTrainingBarracksDrill,
|
|
12
20
|
createTrainingInstitution,
|
|
13
21
|
createTrainingMartialTechnique,
|
|
14
22
|
createTrainingMissionTechniqueUnlock,
|
|
15
23
|
createTrainingProgressionRecord,
|
|
24
|
+
createTrainingSchoolProgression,
|
|
25
|
+
createTrainingTrackSelection,
|
|
26
|
+
createTrainingTrustMarker,
|
|
27
|
+
isTrainingAcademicProgressStage,
|
|
28
|
+
isTrainingAcademyAdmissionDecision,
|
|
16
29
|
isMccExpressionTrack,
|
|
17
30
|
isTrainingAntiSpellCounterWindow,
|
|
18
31
|
isTrainingAntiSpellFieldcraftFamily,
|
|
19
32
|
isTrainingBarracksDrillDeliveryMode,
|
|
33
|
+
isTrainingInstructionAccessLevel,
|
|
20
34
|
isTrainingMartialTechniqueFamily,
|
|
21
35
|
isTrainingMartialTechniqueTrack,
|
|
36
|
+
isTrainingTechniqueMasteryState,
|
|
37
|
+
isTrainingTrustMarkerSource,
|
|
22
38
|
isTrainingTrustLevel
|
|
23
39
|
} from "@plasius/training";
|
|
24
40
|
var AI_GAME_TRAINING_STAGE_GATES = [
|
|
@@ -28,12 +44,6 @@ var AI_GAME_TRAINING_STAGE_GATES = [
|
|
|
28
44
|
"advanced-specialization",
|
|
29
45
|
"dominion-and-divine"
|
|
30
46
|
];
|
|
31
|
-
var AI_GAME_TRAINING_TRUST_MARKER_SOURCES = [
|
|
32
|
-
"system",
|
|
33
|
-
"mission",
|
|
34
|
-
"institution",
|
|
35
|
-
"sponsor"
|
|
36
|
-
];
|
|
37
47
|
var AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS = [
|
|
38
48
|
"low",
|
|
39
49
|
"medium",
|
|
@@ -52,21 +62,12 @@ function assertNonEmptyString(value, label) {
|
|
|
52
62
|
throw new Error(`${label} must be a non-empty string`);
|
|
53
63
|
}
|
|
54
64
|
}
|
|
55
|
-
function assertIsoTimestamp(value, label) {
|
|
56
|
-
assertNonEmptyString(value, label);
|
|
57
|
-
if (Number.isNaN(Date.parse(value))) {
|
|
58
|
-
throw new Error(`${label} must be an ISO-8601 timestamp`);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
65
|
function isTrainingInstitutionType(value) {
|
|
62
66
|
return value === "school" || value === "barracks" || value === "academy" || value === "apprenticeship";
|
|
63
67
|
}
|
|
64
68
|
function isAiGameTrainingStageGate(value) {
|
|
65
69
|
return AI_GAME_TRAINING_STAGE_GATES.includes(value);
|
|
66
70
|
}
|
|
67
|
-
function isAiGameTrainingTrustMarkerSource(value) {
|
|
68
|
-
return AI_GAME_TRAINING_TRUST_MARKER_SOURCES.includes(value);
|
|
69
|
-
}
|
|
70
71
|
function isAiGameTrainingRecommendationConfidenceBand(value) {
|
|
71
72
|
return AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS.includes(value);
|
|
72
73
|
}
|
|
@@ -94,19 +95,7 @@ function createAiGameInstitutionEligibility(input) {
|
|
|
94
95
|
});
|
|
95
96
|
}
|
|
96
97
|
function createAiGameTrainingTrustMarker(input) {
|
|
97
|
-
|
|
98
|
-
assertNonEmptyString(input.institutionId, "institutionId");
|
|
99
|
-
assertIsoTimestamp(input.awardedAtIso, "awardedAtIso");
|
|
100
|
-
if (!isTrainingTrustLevel(input.trustLevel)) {
|
|
101
|
-
throw new Error("trustLevel must be a supported training trust level");
|
|
102
|
-
}
|
|
103
|
-
if (!isAiGameTrainingTrustMarkerSource(input.source)) {
|
|
104
|
-
throw new Error("source must be a supported training trust marker source");
|
|
105
|
-
}
|
|
106
|
-
return Object.freeze({
|
|
107
|
-
...input,
|
|
108
|
-
reasonCodes: freezeReadonlyArray(input.reasonCodes)
|
|
109
|
-
});
|
|
98
|
+
return createTrainingTrustMarker(input);
|
|
110
99
|
}
|
|
111
100
|
function createAiGameSpecializationRecommendation(input) {
|
|
112
101
|
assertNonEmptyString(input.recommendationId, "recommendationId");
|
|
@@ -147,6 +136,20 @@ function createAiGameTrainingStateSnapshot(input) {
|
|
|
147
136
|
)
|
|
148
137
|
});
|
|
149
138
|
}
|
|
139
|
+
function createAiGameAcademicTrainingSnapshot(input) {
|
|
140
|
+
return Object.freeze({
|
|
141
|
+
schoolProgression: createTrainingSchoolProgression(input.schoolProgression),
|
|
142
|
+
academyAdmissions: freezeReadonlyArray(
|
|
143
|
+
input.academyAdmissions.map(createTrainingAcademyAdmission)
|
|
144
|
+
),
|
|
145
|
+
trackSelections: freezeReadonlyArray(
|
|
146
|
+
input.trackSelections.map(createTrainingTrackSelection)
|
|
147
|
+
),
|
|
148
|
+
recommendations: freezeReadonlyArray(
|
|
149
|
+
input.recommendations.map(createAiGameSpecializationRecommendation)
|
|
150
|
+
)
|
|
151
|
+
});
|
|
152
|
+
}
|
|
150
153
|
function createAiGameMartialTrainingSnapshot(input) {
|
|
151
154
|
return Object.freeze({
|
|
152
155
|
barracksDrills: freezeReadonlyArray(
|
|
@@ -1009,17 +1012,22 @@ export {
|
|
|
1009
1012
|
AI_GAME_TASK_KINDS,
|
|
1010
1013
|
AI_GAME_TASK_RESULTS,
|
|
1011
1014
|
AI_GAME_TASK_RISK_CLASSES,
|
|
1015
|
+
TRAINING_ACADEMIC_PROGRESS_STAGES as AI_GAME_TRAINING_ACADEMIC_PROGRESS_STAGES,
|
|
1016
|
+
TRAINING_ACADEMIES_FEATURE_FLAG_ID as AI_GAME_TRAINING_ACADEMIES_FEATURE_FLAG_ID,
|
|
1017
|
+
TRAINING_ACADEMY_ADMISSION_DECISIONS as AI_GAME_TRAINING_ACADEMY_ADMISSION_DECISIONS,
|
|
1012
1018
|
TRAINING_ANTI_SPELL_COUNTER_WINDOWS as AI_GAME_TRAINING_ANTI_SPELL_COUNTER_WINDOWS,
|
|
1013
1019
|
TRAINING_ANTI_SPELL_FIELDCRAFT_FAMILIES as AI_GAME_TRAINING_ANTI_SPELL_FIELDCRAFT_FAMILIES,
|
|
1014
1020
|
TRAINING_BARRACKS_DRILL_DELIVERY_MODES as AI_GAME_TRAINING_BARRACKS_DRILL_DELIVERY_MODES,
|
|
1015
1021
|
TRAINING_FEATURE_FLAG_ID as AI_GAME_TRAINING_INSTITUTIONS_FEATURE_FLAG_ID,
|
|
1022
|
+
TRAINING_INSTRUCTION_ACCESS_LEVELS as AI_GAME_TRAINING_INSTRUCTION_ACCESS_LEVELS,
|
|
1016
1023
|
TRAINING_MARTIAL_FEATURE_FLAG_ID as AI_GAME_TRAINING_MARTIAL_FEATURE_FLAG_ID,
|
|
1017
1024
|
TRAINING_MARTIAL_TECHNIQUE_FAMILIES as AI_GAME_TRAINING_MARTIAL_TECHNIQUE_FAMILIES,
|
|
1018
1025
|
TRAINING_MARTIAL_TECHNIQUE_TRACKS as AI_GAME_TRAINING_MARTIAL_TECHNIQUE_TRACKS,
|
|
1019
1026
|
AI_GAME_TRAINING_RECOMMENDATION_CONFIDENCE_BANDS,
|
|
1020
1027
|
AI_GAME_TRAINING_RECOMMENDATION_READINESS,
|
|
1021
1028
|
AI_GAME_TRAINING_STAGE_GATES,
|
|
1022
|
-
|
|
1029
|
+
TRAINING_TECHNIQUE_MASTERY_STATES as AI_GAME_TRAINING_TECHNIQUE_MASTERY_STATES,
|
|
1030
|
+
TRAINING_TRUST_MARKER_SOURCES as AI_GAME_TRAINING_TRUST_MARKER_SOURCES,
|
|
1023
1031
|
AI_GAME_TTS_CACHE_POLICIES,
|
|
1024
1032
|
QUIET_MEASURE_AXES,
|
|
1025
1033
|
QUIET_MEASURE_CONFIDENCE_BANDS,
|
|
@@ -1034,23 +1042,32 @@ export {
|
|
|
1034
1042
|
QUIET_MEASURE_SIGNAL_BANDS,
|
|
1035
1043
|
aiGameFeatureFlags,
|
|
1036
1044
|
classifyAiGameTask,
|
|
1045
|
+
createAiGameAcademicTrainingSnapshot,
|
|
1037
1046
|
createAiGameInstitutionEligibility,
|
|
1038
1047
|
createAiGameMartialTrainingSnapshot,
|
|
1039
1048
|
createAiGameSpecializationRecommendation,
|
|
1049
|
+
createTrainingAcademicMissionPrerequisite as createAiGameTrainingAcademicMissionPrerequisite,
|
|
1050
|
+
createTrainingAcademyAdmission as createAiGameTrainingAcademyAdmission,
|
|
1051
|
+
createTrainingSchoolProgression as createAiGameTrainingSchoolProgression,
|
|
1040
1052
|
createAiGameTrainingStateSnapshot,
|
|
1053
|
+
createTrainingTrackSelection as createAiGameTrainingTrackSelection,
|
|
1041
1054
|
createAiGameTrainingTrustMarker,
|
|
1042
1055
|
createQuietMeasureJudgmentEligibility,
|
|
1043
1056
|
createQuietMeasureJudgmentResponse,
|
|
1044
1057
|
gameEventFeatureFlags,
|
|
1058
|
+
isTrainingAcademicProgressStage as isAiGameTrainingAcademicProgressStage,
|
|
1059
|
+
isTrainingAcademyAdmissionDecision as isAiGameTrainingAcademyAdmissionDecision,
|
|
1045
1060
|
isTrainingAntiSpellCounterWindow as isAiGameTrainingAntiSpellCounterWindow,
|
|
1046
1061
|
isTrainingAntiSpellFieldcraftFamily as isAiGameTrainingAntiSpellFieldcraftFamily,
|
|
1047
1062
|
isTrainingBarracksDrillDeliveryMode as isAiGameTrainingBarracksDrillDeliveryMode,
|
|
1063
|
+
isTrainingInstructionAccessLevel as isAiGameTrainingInstructionAccessLevel,
|
|
1048
1064
|
isTrainingMartialTechniqueFamily as isAiGameTrainingMartialTechniqueFamily,
|
|
1049
1065
|
isTrainingMartialTechniqueTrack as isAiGameTrainingMartialTechniqueTrack,
|
|
1050
1066
|
isAiGameTrainingRecommendationConfidenceBand,
|
|
1051
1067
|
isAiGameTrainingRecommendationReadiness,
|
|
1052
1068
|
isAiGameTrainingStageGate,
|
|
1053
|
-
|
|
1069
|
+
isTrainingTechniqueMasteryState as isAiGameTrainingTechniqueMasteryState,
|
|
1070
|
+
isTrainingTrustMarkerSource as isAiGameTrainingTrustMarkerSource,
|
|
1054
1071
|
isCandidateWorldEvent,
|
|
1055
1072
|
isCanonicalWorldEvent,
|
|
1056
1073
|
isGossipTopicActive,
|