@plasius/ai-game 0.4.0 → 0.5.0
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 +18 -0
- package/README.md +14 -0
- package/dist/index.cjs +116 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -1
- package/dist/index.d.ts +33 -1
- package/dist/index.js +104 -0
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0014-player-system-guidance-cue-contract-boundary.md +43 -0
- package/docs/adrs/index.md +2 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -68,6 +68,9 @@ declare function createAiGameMartialTrainingSnapshot(input: AiGameMartialTrainin
|
|
|
68
68
|
declare const AI_GAME_PLAYER_SYSTEM_FEATURE_FLAG_ID = "isekai.player-system.core.enabled";
|
|
69
69
|
declare const AI_GAME_PLAYER_SYSTEM_CONTRACT_VERSION: "1.0";
|
|
70
70
|
type AiGamePlayerSystemContractVersion = typeof AI_GAME_PLAYER_SYSTEM_CONTRACT_VERSION;
|
|
71
|
+
declare const AI_GAME_PLAYER_SYSTEM_GUIDANCE_NFR_FEATURE_FLAG_ID = "isekai.player-system.guidance-nfr.enabled";
|
|
72
|
+
declare const AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_PAYLOAD_BYTES = 4096;
|
|
73
|
+
declare const AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_OCCURRENCES_PER_MINUTE = 30;
|
|
71
74
|
declare const AI_GAME_PLAYER_SYSTEM_FOCUS_MODES: readonly ["ambient", "focused", "combat-safe"];
|
|
72
75
|
type AiGamePlayerSystemFocusMode = (typeof AI_GAME_PLAYER_SYSTEM_FOCUS_MODES)[number];
|
|
73
76
|
declare const AI_GAME_PLAYER_SYSTEM_INPUT_MODALITIES: readonly ["voice", "touch"];
|
|
@@ -76,6 +79,28 @@ declare const AI_GAME_PLAYER_SYSTEM_MODULES: readonly ["identity", "missions", "
|
|
|
76
79
|
type AiGamePlayerSystemModule = (typeof AI_GAME_PLAYER_SYSTEM_MODULES)[number];
|
|
77
80
|
declare const AI_GAME_PLAYER_SYSTEM_ALERT_PRIORITIES: readonly ["critical", "high", "normal", "low"];
|
|
78
81
|
type AiGamePlayerSystemAlertPriority = (typeof AI_GAME_PLAYER_SYSTEM_ALERT_PRIORITIES)[number];
|
|
82
|
+
declare const AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_SOURCES: readonly ["voice", "narration", "speech-capture"];
|
|
83
|
+
type AiGamePlayerSystemGuidanceCueSource = (typeof AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_SOURCES)[number];
|
|
84
|
+
declare const AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_IDS: readonly ["voice-unavailable", "narration-unavailable", "speech-capture-unavailable"];
|
|
85
|
+
type AiGamePlayerSystemGuidanceFallbackId = (typeof AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_IDS)[number];
|
|
86
|
+
declare const AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_BEHAVIORS: readonly ["touch-controls-and-text-summary", "status-copy-and-live-region", "manual-actions-stay-visible"];
|
|
87
|
+
type AiGamePlayerSystemGuidanceFallbackBehavior = (typeof AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_BEHAVIORS)[number];
|
|
88
|
+
interface AiGamePlayerSystemGuidanceFallbackContract {
|
|
89
|
+
readonly id: AiGamePlayerSystemGuidanceFallbackId;
|
|
90
|
+
readonly source: AiGamePlayerSystemGuidanceCueSource;
|
|
91
|
+
readonly behavior: AiGamePlayerSystemGuidanceFallbackBehavior;
|
|
92
|
+
}
|
|
93
|
+
declare const AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_CONTRACTS: readonly AiGamePlayerSystemGuidanceFallbackContract[];
|
|
94
|
+
interface AiGamePlayerSystemGuidanceCue {
|
|
95
|
+
readonly cueId: string;
|
|
96
|
+
readonly contractVersion: AiGamePlayerSystemContractVersion;
|
|
97
|
+
readonly featureFlagId: typeof AI_GAME_PLAYER_SYSTEM_GUIDANCE_NFR_FEATURE_FLAG_ID;
|
|
98
|
+
readonly priority: AiGamePlayerSystemAlertPriority;
|
|
99
|
+
readonly source: AiGamePlayerSystemGuidanceCueSource;
|
|
100
|
+
readonly fallbackId: AiGamePlayerSystemGuidanceFallbackId;
|
|
101
|
+
readonly maxPayloadBytes: number;
|
|
102
|
+
readonly maxOccurrencesPerMinute: number;
|
|
103
|
+
}
|
|
79
104
|
declare const AI_GAME_PLAYER_SYSTEM_PREFERENCE_KINDS: readonly ["combat", "exploration", "crafting", "social", "governance"];
|
|
80
105
|
type AiGamePlayerSystemPreferenceKind = (typeof AI_GAME_PLAYER_SYSTEM_PREFERENCE_KINDS)[number];
|
|
81
106
|
declare const AI_GAME_PLAYER_SYSTEM_PREFERENCE_SOURCES: readonly ["explicit", "observed"];
|
|
@@ -152,6 +177,13 @@ declare function isAiGamePlayerSystemFocusMode(value: string): value is AiGamePl
|
|
|
152
177
|
declare function isAiGamePlayerSystemInputModality(value: string): value is AiGamePlayerSystemInputModality;
|
|
153
178
|
declare function isAiGamePlayerSystemModule(value: string): value is AiGamePlayerSystemModule;
|
|
154
179
|
declare function isAiGamePlayerSystemAlertPriority(value: string): value is AiGamePlayerSystemAlertPriority;
|
|
180
|
+
declare function isAiGamePlayerSystemGuidanceCueSource(value: string): value is AiGamePlayerSystemGuidanceCueSource;
|
|
181
|
+
declare function isAiGamePlayerSystemGuidanceFallbackId(value: string): value is AiGamePlayerSystemGuidanceFallbackId;
|
|
182
|
+
declare function isAiGamePlayerSystemGuidanceFallbackBehavior(value: string): value is AiGamePlayerSystemGuidanceFallbackBehavior;
|
|
183
|
+
declare function getAiGamePlayerSystemGuidanceFallbackContract(fallbackId: AiGamePlayerSystemGuidanceFallbackId): AiGamePlayerSystemGuidanceFallbackContract;
|
|
184
|
+
declare function createAiGamePlayerSystemGuidanceCue(input: Omit<AiGamePlayerSystemGuidanceCue, "contractVersion" | "featureFlagId"> & {
|
|
185
|
+
readonly contractVersion?: AiGamePlayerSystemContractVersion;
|
|
186
|
+
}): AiGamePlayerSystemGuidanceCue;
|
|
155
187
|
declare function isAiGamePlayerSystemPreferenceKind(value: string): value is AiGamePlayerSystemPreferenceKind;
|
|
156
188
|
declare function isAiGamePlayerSystemPreferenceSource(value: string): value is AiGamePlayerSystemPreferenceSource;
|
|
157
189
|
declare function isAiGamePlayerSystemConfidenceBand(value: string): value is AiGamePlayerSystemConfidenceBand;
|
|
@@ -1021,4 +1053,4 @@ declare const aiGameFeatureFlags: Readonly<{
|
|
|
1021
1053
|
}>;
|
|
1022
1054
|
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")[];
|
|
1023
1055
|
|
|
1024
|
-
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_IDENTITY_CONTRACT_VERSION, AI_GAME_IDENTITY_DISCLOSURE_POLICY, AI_GAME_IDENTITY_FEATURE_FLAG_ID, AI_GAME_IDENTITY_KNOWLEDGE_STATES, AI_GAME_IDENTITY_PROJECTION_READS, AI_GAME_IDENTITY_TARGET_CATEGORIES, AI_GAME_IDENTITY_VISIBILITY_STATES, AI_GAME_INCIDENT_IMPACT_FEATURE_FLAG_ID, AI_GAME_MISSIONS_CONTRACT_VERSION, AI_GAME_MISSIONS_FEATURE_FLAG_ID, AI_GAME_MISSION_CLASSES, AI_GAME_MISSION_CONFIDENCE_BANDS, AI_GAME_MISSION_FEEDBACK_CHANNELS, AI_GAME_MISSION_INFLUENCE_SOURCES, AI_GAME_MISSION_OBJECTIVE_STATUSES, AI_GAME_MISSION_PLAYER_RESPONSE_KINDS, AI_GAME_MISSION_PREFERENCE_DIMENSIONS, AI_GAME_MISSION_READINESS_BANDS, AI_GAME_MISSION_REPEATED_SIGNAL_HANDLING, AI_GAME_MISSION_REWARD_CAP_SEMANTICS, AI_GAME_MISSION_REWARD_KINDS, AI_GAME_PACKAGE, AI_GAME_PERSPECTIVE_FEATURE_FLAG_ID, AI_GAME_PLAYER_SYSTEM_ALERT_PRIORITIES, AI_GAME_PLAYER_SYSTEM_CONFIDENCE_BANDS, AI_GAME_PLAYER_SYSTEM_CONTRACT_VERSION, AI_GAME_PLAYER_SYSTEM_FEATURE_FLAG_ID, AI_GAME_PLAYER_SYSTEM_FOCUS_MODES, AI_GAME_PLAYER_SYSTEM_FOCUS_MODE_CONTRACTS, AI_GAME_PLAYER_SYSTEM_INPUT_MODALITIES, AI_GAME_PLAYER_SYSTEM_MODULES, AI_GAME_PLAYER_SYSTEM_MODULE_CONTRACTS, AI_GAME_PLAYER_SYSTEM_PREFERENCE_KINDS, AI_GAME_PLAYER_SYSTEM_PREFERENCE_SOURCES, 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 AiGameIdentityContractVersion, type AiGameIdentityDisclosurePolicy, type AiGameIdentityKnowledgeState, type AiGameIdentityProjectionContract, type AiGameIdentityProjectionField, type AiGameIdentityProjectionRead, type AiGameIdentitySelfProjection, type AiGameIdentityTargetCategory, type AiGameIdentityTargetProjection, type AiGameIdentityVisibilityState, type AiGameInstitutionEligibility, type AiGameMartialTrainingSnapshot, type AiGameMissionClass, type AiGameMissionConfidenceBand, type AiGameMissionDefinition, type AiGameMissionFeedbackChannel, type AiGameMissionInfluenceSource, type AiGameMissionMccFocusInfluence, type AiGameMissionObjectiveState, type AiGameMissionObjectiveStatus, type AiGameMissionPlayerModelEvidence, type AiGameMissionPlayerModelInfluenceInput, type AiGameMissionPlayerResponse, type AiGameMissionPlayerResponseKind, type AiGameMissionPreferenceDimension, type AiGameMissionReadinessBand, type AiGameMissionReadinessContext, type AiGameMissionRepeatedSignalHandling, type AiGameMissionRewardBound, type AiGameMissionRewardCapSemantic, type AiGameMissionRewardEnvelope, type AiGameMissionRewardGrant, type AiGameMissionRewardKind, type AiGameMissionsContractVersion, type AiGamePlayerSystemAlert, type AiGamePlayerSystemAlertPriority, type AiGamePlayerSystemConfidenceBand, type AiGamePlayerSystemContractVersion, type AiGamePlayerSystemFocusMode, type AiGamePlayerSystemFocusModeContract, type AiGamePlayerSystemInputModality, type AiGamePlayerSystemModule, type AiGamePlayerSystemModuleContract, type AiGamePlayerSystemPreferenceConfidenceState, type AiGamePlayerSystemPreferenceInput, type AiGamePlayerSystemPreferenceKind, type AiGamePlayerSystemPreferenceProfile, type AiGamePlayerSystemPreferenceSource, type AiGamePlayerSystemSession, 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 CreateAiGameIdentityProjectionContractInput, type CreateAiGameIdentitySelfProjectionInput, type CreateAiGameIdentityTargetProjectionInput, type CreateAiGameMissionDefinitionInput, type CreateAiGameMissionMccFocusInfluenceInput, type CreateAiGameMissionObjectiveStateInput, type CreateAiGameMissionPlayerModelEvidenceInput, type CreateAiGameMissionPlayerModelInfluenceInput, type CreateAiGameMissionPlayerResponseInput, type CreateAiGameMissionReadinessContextInput, type CreateAiGameMissionRewardBoundInput, type CreateAiGameMissionRewardEnvelopeInput, type CreateAiGameMissionRewardGrantInput, type CreateAiGamePlayerSystemSessionInput, 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, assertAiGameIdentityProjectionContractVersion, assertAiGameMissionContractVersion, classifyAiGameTask, createAiGameAcademicTrainingSnapshot, createAiGameIdentityProjectionContract, createAiGameIdentitySelfProjection, createAiGameIdentityTargetProjection, createAiGameInstitutionEligibility, createAiGameMartialTrainingSnapshot, createAiGameMissionDefinition, createAiGameMissionMccFocusInfluence, createAiGameMissionObjectiveState, createAiGameMissionPlayerModelEvidence, createAiGameMissionPlayerModelInfluenceInput, createAiGameMissionPlayerResponse, createAiGameMissionReadinessContext, createAiGameMissionRewardBound, createAiGameMissionRewardEnvelope, createAiGameMissionRewardGrant, createAiGamePlayerSystemAlert, createAiGamePlayerSystemPreferenceConfidenceState, createAiGamePlayerSystemPreferenceInput, createAiGamePlayerSystemPreferenceProfile, createAiGamePlayerSystemSession, createAiGameSpecializationRecommendation, createAiGameTrainingStateSnapshot, createAiGameTrainingTrustMarker, createQuietMeasureJudgmentEligibility, createQuietMeasureJudgmentResponse, gameEventFeatureFlags, getAiGamePlayerSystemFocusModeContract, getAiGamePlayerSystemModuleContract, isAiGameIdentityKnowledgeState, isAiGameIdentityProjectionRead, isAiGameIdentityTargetCategory, isAiGameIdentityVisibilityState, isAiGameMissionClass, isAiGameMissionConfidenceBand, isAiGameMissionFeedbackChannel, isAiGameMissionInfluenceSource, isAiGameMissionObjectiveStatus, isAiGameMissionPlayerResponseKind, isAiGameMissionPreferenceDimension, isAiGameMissionReadinessBand, isAiGameMissionRepeatedSignalHandling, isAiGameMissionRewardCapSemantic, isAiGameMissionRewardKind, isAiGamePlayerSystemAlertDeliverable, isAiGamePlayerSystemAlertPriority, isAiGamePlayerSystemConfidenceBand, isAiGamePlayerSystemFocusMode, isAiGamePlayerSystemInputModality, isAiGamePlayerSystemModule, isAiGamePlayerSystemPreferenceKind, isAiGamePlayerSystemPreferenceSource, isAiGameTrainingRecommendationConfidenceBand, isAiGameTrainingRecommendationReadiness, isAiGameTrainingStageGate, isCandidateWorldEvent, isCanonicalWorldEvent, isGossipTopicActive, isGossipTopicCorrected, isIncidentResolved, isQuietMeasureAxis, isQuietMeasureMissionProbeMode, isQuietMeasureMissionResolutionShape, listQuietMeasureMissingEvidence, normalizeIncidentImpactVector, packageDescriptor, projectTopicForAudience, resolveAiGameIdentityProjectionRead, resolveAiGameMissionConfidenceBand, resolveAiGamePlayerAddressText, resolveAiGamePlayerSystemConfidenceBand, resolveAiGameTaskBatch, selectAiGamePlayerSystemAlertsForFocusMode, selectAiGameVisibleIdentityTargets };
|
|
1056
|
+
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_IDENTITY_CONTRACT_VERSION, AI_GAME_IDENTITY_DISCLOSURE_POLICY, AI_GAME_IDENTITY_FEATURE_FLAG_ID, AI_GAME_IDENTITY_KNOWLEDGE_STATES, AI_GAME_IDENTITY_PROJECTION_READS, AI_GAME_IDENTITY_TARGET_CATEGORIES, AI_GAME_IDENTITY_VISIBILITY_STATES, AI_GAME_INCIDENT_IMPACT_FEATURE_FLAG_ID, AI_GAME_MISSIONS_CONTRACT_VERSION, AI_GAME_MISSIONS_FEATURE_FLAG_ID, AI_GAME_MISSION_CLASSES, AI_GAME_MISSION_CONFIDENCE_BANDS, AI_GAME_MISSION_FEEDBACK_CHANNELS, AI_GAME_MISSION_INFLUENCE_SOURCES, AI_GAME_MISSION_OBJECTIVE_STATUSES, AI_GAME_MISSION_PLAYER_RESPONSE_KINDS, AI_GAME_MISSION_PREFERENCE_DIMENSIONS, AI_GAME_MISSION_READINESS_BANDS, AI_GAME_MISSION_REPEATED_SIGNAL_HANDLING, AI_GAME_MISSION_REWARD_CAP_SEMANTICS, AI_GAME_MISSION_REWARD_KINDS, AI_GAME_PACKAGE, AI_GAME_PERSPECTIVE_FEATURE_FLAG_ID, AI_GAME_PLAYER_SYSTEM_ALERT_PRIORITIES, AI_GAME_PLAYER_SYSTEM_CONFIDENCE_BANDS, AI_GAME_PLAYER_SYSTEM_CONTRACT_VERSION, AI_GAME_PLAYER_SYSTEM_FEATURE_FLAG_ID, AI_GAME_PLAYER_SYSTEM_FOCUS_MODES, AI_GAME_PLAYER_SYSTEM_FOCUS_MODE_CONTRACTS, AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_OCCURRENCES_PER_MINUTE, AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_PAYLOAD_BYTES, AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_SOURCES, AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_BEHAVIORS, AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_CONTRACTS, AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_IDS, AI_GAME_PLAYER_SYSTEM_GUIDANCE_NFR_FEATURE_FLAG_ID, AI_GAME_PLAYER_SYSTEM_INPUT_MODALITIES, AI_GAME_PLAYER_SYSTEM_MODULES, AI_GAME_PLAYER_SYSTEM_MODULE_CONTRACTS, AI_GAME_PLAYER_SYSTEM_PREFERENCE_KINDS, AI_GAME_PLAYER_SYSTEM_PREFERENCE_SOURCES, 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 AiGameIdentityContractVersion, type AiGameIdentityDisclosurePolicy, type AiGameIdentityKnowledgeState, type AiGameIdentityProjectionContract, type AiGameIdentityProjectionField, type AiGameIdentityProjectionRead, type AiGameIdentitySelfProjection, type AiGameIdentityTargetCategory, type AiGameIdentityTargetProjection, type AiGameIdentityVisibilityState, type AiGameInstitutionEligibility, type AiGameMartialTrainingSnapshot, type AiGameMissionClass, type AiGameMissionConfidenceBand, type AiGameMissionDefinition, type AiGameMissionFeedbackChannel, type AiGameMissionInfluenceSource, type AiGameMissionMccFocusInfluence, type AiGameMissionObjectiveState, type AiGameMissionObjectiveStatus, type AiGameMissionPlayerModelEvidence, type AiGameMissionPlayerModelInfluenceInput, type AiGameMissionPlayerResponse, type AiGameMissionPlayerResponseKind, type AiGameMissionPreferenceDimension, type AiGameMissionReadinessBand, type AiGameMissionReadinessContext, type AiGameMissionRepeatedSignalHandling, type AiGameMissionRewardBound, type AiGameMissionRewardCapSemantic, type AiGameMissionRewardEnvelope, type AiGameMissionRewardGrant, type AiGameMissionRewardKind, type AiGameMissionsContractVersion, type AiGamePlayerSystemAlert, type AiGamePlayerSystemAlertPriority, type AiGamePlayerSystemConfidenceBand, type AiGamePlayerSystemContractVersion, type AiGamePlayerSystemFocusMode, type AiGamePlayerSystemFocusModeContract, type AiGamePlayerSystemGuidanceCue, type AiGamePlayerSystemGuidanceCueSource, type AiGamePlayerSystemGuidanceFallbackBehavior, type AiGamePlayerSystemGuidanceFallbackContract, type AiGamePlayerSystemGuidanceFallbackId, type AiGamePlayerSystemInputModality, type AiGamePlayerSystemModule, type AiGamePlayerSystemModuleContract, type AiGamePlayerSystemPreferenceConfidenceState, type AiGamePlayerSystemPreferenceInput, type AiGamePlayerSystemPreferenceKind, type AiGamePlayerSystemPreferenceProfile, type AiGamePlayerSystemPreferenceSource, type AiGamePlayerSystemSession, 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 CreateAiGameIdentityProjectionContractInput, type CreateAiGameIdentitySelfProjectionInput, type CreateAiGameIdentityTargetProjectionInput, type CreateAiGameMissionDefinitionInput, type CreateAiGameMissionMccFocusInfluenceInput, type CreateAiGameMissionObjectiveStateInput, type CreateAiGameMissionPlayerModelEvidenceInput, type CreateAiGameMissionPlayerModelInfluenceInput, type CreateAiGameMissionPlayerResponseInput, type CreateAiGameMissionReadinessContextInput, type CreateAiGameMissionRewardBoundInput, type CreateAiGameMissionRewardEnvelopeInput, type CreateAiGameMissionRewardGrantInput, type CreateAiGamePlayerSystemSessionInput, 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, assertAiGameIdentityProjectionContractVersion, assertAiGameMissionContractVersion, classifyAiGameTask, createAiGameAcademicTrainingSnapshot, createAiGameIdentityProjectionContract, createAiGameIdentitySelfProjection, createAiGameIdentityTargetProjection, createAiGameInstitutionEligibility, createAiGameMartialTrainingSnapshot, createAiGameMissionDefinition, createAiGameMissionMccFocusInfluence, createAiGameMissionObjectiveState, createAiGameMissionPlayerModelEvidence, createAiGameMissionPlayerModelInfluenceInput, createAiGameMissionPlayerResponse, createAiGameMissionReadinessContext, createAiGameMissionRewardBound, createAiGameMissionRewardEnvelope, createAiGameMissionRewardGrant, createAiGamePlayerSystemAlert, createAiGamePlayerSystemGuidanceCue, createAiGamePlayerSystemPreferenceConfidenceState, createAiGamePlayerSystemPreferenceInput, createAiGamePlayerSystemPreferenceProfile, createAiGamePlayerSystemSession, createAiGameSpecializationRecommendation, createAiGameTrainingStateSnapshot, createAiGameTrainingTrustMarker, createQuietMeasureJudgmentEligibility, createQuietMeasureJudgmentResponse, gameEventFeatureFlags, getAiGamePlayerSystemFocusModeContract, getAiGamePlayerSystemGuidanceFallbackContract, getAiGamePlayerSystemModuleContract, isAiGameIdentityKnowledgeState, isAiGameIdentityProjectionRead, isAiGameIdentityTargetCategory, isAiGameIdentityVisibilityState, isAiGameMissionClass, isAiGameMissionConfidenceBand, isAiGameMissionFeedbackChannel, isAiGameMissionInfluenceSource, isAiGameMissionObjectiveStatus, isAiGameMissionPlayerResponseKind, isAiGameMissionPreferenceDimension, isAiGameMissionReadinessBand, isAiGameMissionRepeatedSignalHandling, isAiGameMissionRewardCapSemantic, isAiGameMissionRewardKind, isAiGamePlayerSystemAlertDeliverable, isAiGamePlayerSystemAlertPriority, isAiGamePlayerSystemConfidenceBand, isAiGamePlayerSystemFocusMode, isAiGamePlayerSystemGuidanceCueSource, isAiGamePlayerSystemGuidanceFallbackBehavior, isAiGamePlayerSystemGuidanceFallbackId, isAiGamePlayerSystemInputModality, isAiGamePlayerSystemModule, isAiGamePlayerSystemPreferenceKind, isAiGamePlayerSystemPreferenceSource, isAiGameTrainingRecommendationConfidenceBand, isAiGameTrainingRecommendationReadiness, isAiGameTrainingStageGate, isCandidateWorldEvent, isCanonicalWorldEvent, isGossipTopicActive, isGossipTopicCorrected, isIncidentResolved, isQuietMeasureAxis, isQuietMeasureMissionProbeMode, isQuietMeasureMissionResolutionShape, listQuietMeasureMissingEvidence, normalizeIncidentImpactVector, packageDescriptor, projectTopicForAudience, resolveAiGameIdentityProjectionRead, resolveAiGameMissionConfidenceBand, resolveAiGamePlayerAddressText, resolveAiGamePlayerSystemConfidenceBand, resolveAiGameTaskBatch, selectAiGamePlayerSystemAlertsForFocusMode, selectAiGameVisibleIdentityTargets };
|
package/dist/index.d.ts
CHANGED
|
@@ -68,6 +68,9 @@ declare function createAiGameMartialTrainingSnapshot(input: AiGameMartialTrainin
|
|
|
68
68
|
declare const AI_GAME_PLAYER_SYSTEM_FEATURE_FLAG_ID = "isekai.player-system.core.enabled";
|
|
69
69
|
declare const AI_GAME_PLAYER_SYSTEM_CONTRACT_VERSION: "1.0";
|
|
70
70
|
type AiGamePlayerSystemContractVersion = typeof AI_GAME_PLAYER_SYSTEM_CONTRACT_VERSION;
|
|
71
|
+
declare const AI_GAME_PLAYER_SYSTEM_GUIDANCE_NFR_FEATURE_FLAG_ID = "isekai.player-system.guidance-nfr.enabled";
|
|
72
|
+
declare const AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_PAYLOAD_BYTES = 4096;
|
|
73
|
+
declare const AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_OCCURRENCES_PER_MINUTE = 30;
|
|
71
74
|
declare const AI_GAME_PLAYER_SYSTEM_FOCUS_MODES: readonly ["ambient", "focused", "combat-safe"];
|
|
72
75
|
type AiGamePlayerSystemFocusMode = (typeof AI_GAME_PLAYER_SYSTEM_FOCUS_MODES)[number];
|
|
73
76
|
declare const AI_GAME_PLAYER_SYSTEM_INPUT_MODALITIES: readonly ["voice", "touch"];
|
|
@@ -76,6 +79,28 @@ declare const AI_GAME_PLAYER_SYSTEM_MODULES: readonly ["identity", "missions", "
|
|
|
76
79
|
type AiGamePlayerSystemModule = (typeof AI_GAME_PLAYER_SYSTEM_MODULES)[number];
|
|
77
80
|
declare const AI_GAME_PLAYER_SYSTEM_ALERT_PRIORITIES: readonly ["critical", "high", "normal", "low"];
|
|
78
81
|
type AiGamePlayerSystemAlertPriority = (typeof AI_GAME_PLAYER_SYSTEM_ALERT_PRIORITIES)[number];
|
|
82
|
+
declare const AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_SOURCES: readonly ["voice", "narration", "speech-capture"];
|
|
83
|
+
type AiGamePlayerSystemGuidanceCueSource = (typeof AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_SOURCES)[number];
|
|
84
|
+
declare const AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_IDS: readonly ["voice-unavailable", "narration-unavailable", "speech-capture-unavailable"];
|
|
85
|
+
type AiGamePlayerSystemGuidanceFallbackId = (typeof AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_IDS)[number];
|
|
86
|
+
declare const AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_BEHAVIORS: readonly ["touch-controls-and-text-summary", "status-copy-and-live-region", "manual-actions-stay-visible"];
|
|
87
|
+
type AiGamePlayerSystemGuidanceFallbackBehavior = (typeof AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_BEHAVIORS)[number];
|
|
88
|
+
interface AiGamePlayerSystemGuidanceFallbackContract {
|
|
89
|
+
readonly id: AiGamePlayerSystemGuidanceFallbackId;
|
|
90
|
+
readonly source: AiGamePlayerSystemGuidanceCueSource;
|
|
91
|
+
readonly behavior: AiGamePlayerSystemGuidanceFallbackBehavior;
|
|
92
|
+
}
|
|
93
|
+
declare const AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_CONTRACTS: readonly AiGamePlayerSystemGuidanceFallbackContract[];
|
|
94
|
+
interface AiGamePlayerSystemGuidanceCue {
|
|
95
|
+
readonly cueId: string;
|
|
96
|
+
readonly contractVersion: AiGamePlayerSystemContractVersion;
|
|
97
|
+
readonly featureFlagId: typeof AI_GAME_PLAYER_SYSTEM_GUIDANCE_NFR_FEATURE_FLAG_ID;
|
|
98
|
+
readonly priority: AiGamePlayerSystemAlertPriority;
|
|
99
|
+
readonly source: AiGamePlayerSystemGuidanceCueSource;
|
|
100
|
+
readonly fallbackId: AiGamePlayerSystemGuidanceFallbackId;
|
|
101
|
+
readonly maxPayloadBytes: number;
|
|
102
|
+
readonly maxOccurrencesPerMinute: number;
|
|
103
|
+
}
|
|
79
104
|
declare const AI_GAME_PLAYER_SYSTEM_PREFERENCE_KINDS: readonly ["combat", "exploration", "crafting", "social", "governance"];
|
|
80
105
|
type AiGamePlayerSystemPreferenceKind = (typeof AI_GAME_PLAYER_SYSTEM_PREFERENCE_KINDS)[number];
|
|
81
106
|
declare const AI_GAME_PLAYER_SYSTEM_PREFERENCE_SOURCES: readonly ["explicit", "observed"];
|
|
@@ -152,6 +177,13 @@ declare function isAiGamePlayerSystemFocusMode(value: string): value is AiGamePl
|
|
|
152
177
|
declare function isAiGamePlayerSystemInputModality(value: string): value is AiGamePlayerSystemInputModality;
|
|
153
178
|
declare function isAiGamePlayerSystemModule(value: string): value is AiGamePlayerSystemModule;
|
|
154
179
|
declare function isAiGamePlayerSystemAlertPriority(value: string): value is AiGamePlayerSystemAlertPriority;
|
|
180
|
+
declare function isAiGamePlayerSystemGuidanceCueSource(value: string): value is AiGamePlayerSystemGuidanceCueSource;
|
|
181
|
+
declare function isAiGamePlayerSystemGuidanceFallbackId(value: string): value is AiGamePlayerSystemGuidanceFallbackId;
|
|
182
|
+
declare function isAiGamePlayerSystemGuidanceFallbackBehavior(value: string): value is AiGamePlayerSystemGuidanceFallbackBehavior;
|
|
183
|
+
declare function getAiGamePlayerSystemGuidanceFallbackContract(fallbackId: AiGamePlayerSystemGuidanceFallbackId): AiGamePlayerSystemGuidanceFallbackContract;
|
|
184
|
+
declare function createAiGamePlayerSystemGuidanceCue(input: Omit<AiGamePlayerSystemGuidanceCue, "contractVersion" | "featureFlagId"> & {
|
|
185
|
+
readonly contractVersion?: AiGamePlayerSystemContractVersion;
|
|
186
|
+
}): AiGamePlayerSystemGuidanceCue;
|
|
155
187
|
declare function isAiGamePlayerSystemPreferenceKind(value: string): value is AiGamePlayerSystemPreferenceKind;
|
|
156
188
|
declare function isAiGamePlayerSystemPreferenceSource(value: string): value is AiGamePlayerSystemPreferenceSource;
|
|
157
189
|
declare function isAiGamePlayerSystemConfidenceBand(value: string): value is AiGamePlayerSystemConfidenceBand;
|
|
@@ -1021,4 +1053,4 @@ declare const aiGameFeatureFlags: Readonly<{
|
|
|
1021
1053
|
}>;
|
|
1022
1054
|
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")[];
|
|
1023
1055
|
|
|
1024
|
-
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_IDENTITY_CONTRACT_VERSION, AI_GAME_IDENTITY_DISCLOSURE_POLICY, AI_GAME_IDENTITY_FEATURE_FLAG_ID, AI_GAME_IDENTITY_KNOWLEDGE_STATES, AI_GAME_IDENTITY_PROJECTION_READS, AI_GAME_IDENTITY_TARGET_CATEGORIES, AI_GAME_IDENTITY_VISIBILITY_STATES, AI_GAME_INCIDENT_IMPACT_FEATURE_FLAG_ID, AI_GAME_MISSIONS_CONTRACT_VERSION, AI_GAME_MISSIONS_FEATURE_FLAG_ID, AI_GAME_MISSION_CLASSES, AI_GAME_MISSION_CONFIDENCE_BANDS, AI_GAME_MISSION_FEEDBACK_CHANNELS, AI_GAME_MISSION_INFLUENCE_SOURCES, AI_GAME_MISSION_OBJECTIVE_STATUSES, AI_GAME_MISSION_PLAYER_RESPONSE_KINDS, AI_GAME_MISSION_PREFERENCE_DIMENSIONS, AI_GAME_MISSION_READINESS_BANDS, AI_GAME_MISSION_REPEATED_SIGNAL_HANDLING, AI_GAME_MISSION_REWARD_CAP_SEMANTICS, AI_GAME_MISSION_REWARD_KINDS, AI_GAME_PACKAGE, AI_GAME_PERSPECTIVE_FEATURE_FLAG_ID, AI_GAME_PLAYER_SYSTEM_ALERT_PRIORITIES, AI_GAME_PLAYER_SYSTEM_CONFIDENCE_BANDS, AI_GAME_PLAYER_SYSTEM_CONTRACT_VERSION, AI_GAME_PLAYER_SYSTEM_FEATURE_FLAG_ID, AI_GAME_PLAYER_SYSTEM_FOCUS_MODES, AI_GAME_PLAYER_SYSTEM_FOCUS_MODE_CONTRACTS, AI_GAME_PLAYER_SYSTEM_INPUT_MODALITIES, AI_GAME_PLAYER_SYSTEM_MODULES, AI_GAME_PLAYER_SYSTEM_MODULE_CONTRACTS, AI_GAME_PLAYER_SYSTEM_PREFERENCE_KINDS, AI_GAME_PLAYER_SYSTEM_PREFERENCE_SOURCES, 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 AiGameIdentityContractVersion, type AiGameIdentityDisclosurePolicy, type AiGameIdentityKnowledgeState, type AiGameIdentityProjectionContract, type AiGameIdentityProjectionField, type AiGameIdentityProjectionRead, type AiGameIdentitySelfProjection, type AiGameIdentityTargetCategory, type AiGameIdentityTargetProjection, type AiGameIdentityVisibilityState, type AiGameInstitutionEligibility, type AiGameMartialTrainingSnapshot, type AiGameMissionClass, type AiGameMissionConfidenceBand, type AiGameMissionDefinition, type AiGameMissionFeedbackChannel, type AiGameMissionInfluenceSource, type AiGameMissionMccFocusInfluence, type AiGameMissionObjectiveState, type AiGameMissionObjectiveStatus, type AiGameMissionPlayerModelEvidence, type AiGameMissionPlayerModelInfluenceInput, type AiGameMissionPlayerResponse, type AiGameMissionPlayerResponseKind, type AiGameMissionPreferenceDimension, type AiGameMissionReadinessBand, type AiGameMissionReadinessContext, type AiGameMissionRepeatedSignalHandling, type AiGameMissionRewardBound, type AiGameMissionRewardCapSemantic, type AiGameMissionRewardEnvelope, type AiGameMissionRewardGrant, type AiGameMissionRewardKind, type AiGameMissionsContractVersion, type AiGamePlayerSystemAlert, type AiGamePlayerSystemAlertPriority, type AiGamePlayerSystemConfidenceBand, type AiGamePlayerSystemContractVersion, type AiGamePlayerSystemFocusMode, type AiGamePlayerSystemFocusModeContract, type AiGamePlayerSystemInputModality, type AiGamePlayerSystemModule, type AiGamePlayerSystemModuleContract, type AiGamePlayerSystemPreferenceConfidenceState, type AiGamePlayerSystemPreferenceInput, type AiGamePlayerSystemPreferenceKind, type AiGamePlayerSystemPreferenceProfile, type AiGamePlayerSystemPreferenceSource, type AiGamePlayerSystemSession, 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 CreateAiGameIdentityProjectionContractInput, type CreateAiGameIdentitySelfProjectionInput, type CreateAiGameIdentityTargetProjectionInput, type CreateAiGameMissionDefinitionInput, type CreateAiGameMissionMccFocusInfluenceInput, type CreateAiGameMissionObjectiveStateInput, type CreateAiGameMissionPlayerModelEvidenceInput, type CreateAiGameMissionPlayerModelInfluenceInput, type CreateAiGameMissionPlayerResponseInput, type CreateAiGameMissionReadinessContextInput, type CreateAiGameMissionRewardBoundInput, type CreateAiGameMissionRewardEnvelopeInput, type CreateAiGameMissionRewardGrantInput, type CreateAiGamePlayerSystemSessionInput, 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, assertAiGameIdentityProjectionContractVersion, assertAiGameMissionContractVersion, classifyAiGameTask, createAiGameAcademicTrainingSnapshot, createAiGameIdentityProjectionContract, createAiGameIdentitySelfProjection, createAiGameIdentityTargetProjection, createAiGameInstitutionEligibility, createAiGameMartialTrainingSnapshot, createAiGameMissionDefinition, createAiGameMissionMccFocusInfluence, createAiGameMissionObjectiveState, createAiGameMissionPlayerModelEvidence, createAiGameMissionPlayerModelInfluenceInput, createAiGameMissionPlayerResponse, createAiGameMissionReadinessContext, createAiGameMissionRewardBound, createAiGameMissionRewardEnvelope, createAiGameMissionRewardGrant, createAiGamePlayerSystemAlert, createAiGamePlayerSystemPreferenceConfidenceState, createAiGamePlayerSystemPreferenceInput, createAiGamePlayerSystemPreferenceProfile, createAiGamePlayerSystemSession, createAiGameSpecializationRecommendation, createAiGameTrainingStateSnapshot, createAiGameTrainingTrustMarker, createQuietMeasureJudgmentEligibility, createQuietMeasureJudgmentResponse, gameEventFeatureFlags, getAiGamePlayerSystemFocusModeContract, getAiGamePlayerSystemModuleContract, isAiGameIdentityKnowledgeState, isAiGameIdentityProjectionRead, isAiGameIdentityTargetCategory, isAiGameIdentityVisibilityState, isAiGameMissionClass, isAiGameMissionConfidenceBand, isAiGameMissionFeedbackChannel, isAiGameMissionInfluenceSource, isAiGameMissionObjectiveStatus, isAiGameMissionPlayerResponseKind, isAiGameMissionPreferenceDimension, isAiGameMissionReadinessBand, isAiGameMissionRepeatedSignalHandling, isAiGameMissionRewardCapSemantic, isAiGameMissionRewardKind, isAiGamePlayerSystemAlertDeliverable, isAiGamePlayerSystemAlertPriority, isAiGamePlayerSystemConfidenceBand, isAiGamePlayerSystemFocusMode, isAiGamePlayerSystemInputModality, isAiGamePlayerSystemModule, isAiGamePlayerSystemPreferenceKind, isAiGamePlayerSystemPreferenceSource, isAiGameTrainingRecommendationConfidenceBand, isAiGameTrainingRecommendationReadiness, isAiGameTrainingStageGate, isCandidateWorldEvent, isCanonicalWorldEvent, isGossipTopicActive, isGossipTopicCorrected, isIncidentResolved, isQuietMeasureAxis, isQuietMeasureMissionProbeMode, isQuietMeasureMissionResolutionShape, listQuietMeasureMissingEvidence, normalizeIncidentImpactVector, packageDescriptor, projectTopicForAudience, resolveAiGameIdentityProjectionRead, resolveAiGameMissionConfidenceBand, resolveAiGamePlayerAddressText, resolveAiGamePlayerSystemConfidenceBand, resolveAiGameTaskBatch, selectAiGamePlayerSystemAlertsForFocusMode, selectAiGameVisibleIdentityTargets };
|
|
1056
|
+
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_IDENTITY_CONTRACT_VERSION, AI_GAME_IDENTITY_DISCLOSURE_POLICY, AI_GAME_IDENTITY_FEATURE_FLAG_ID, AI_GAME_IDENTITY_KNOWLEDGE_STATES, AI_GAME_IDENTITY_PROJECTION_READS, AI_GAME_IDENTITY_TARGET_CATEGORIES, AI_GAME_IDENTITY_VISIBILITY_STATES, AI_GAME_INCIDENT_IMPACT_FEATURE_FLAG_ID, AI_GAME_MISSIONS_CONTRACT_VERSION, AI_GAME_MISSIONS_FEATURE_FLAG_ID, AI_GAME_MISSION_CLASSES, AI_GAME_MISSION_CONFIDENCE_BANDS, AI_GAME_MISSION_FEEDBACK_CHANNELS, AI_GAME_MISSION_INFLUENCE_SOURCES, AI_GAME_MISSION_OBJECTIVE_STATUSES, AI_GAME_MISSION_PLAYER_RESPONSE_KINDS, AI_GAME_MISSION_PREFERENCE_DIMENSIONS, AI_GAME_MISSION_READINESS_BANDS, AI_GAME_MISSION_REPEATED_SIGNAL_HANDLING, AI_GAME_MISSION_REWARD_CAP_SEMANTICS, AI_GAME_MISSION_REWARD_KINDS, AI_GAME_PACKAGE, AI_GAME_PERSPECTIVE_FEATURE_FLAG_ID, AI_GAME_PLAYER_SYSTEM_ALERT_PRIORITIES, AI_GAME_PLAYER_SYSTEM_CONFIDENCE_BANDS, AI_GAME_PLAYER_SYSTEM_CONTRACT_VERSION, AI_GAME_PLAYER_SYSTEM_FEATURE_FLAG_ID, AI_GAME_PLAYER_SYSTEM_FOCUS_MODES, AI_GAME_PLAYER_SYSTEM_FOCUS_MODE_CONTRACTS, AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_OCCURRENCES_PER_MINUTE, AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_PAYLOAD_BYTES, AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_SOURCES, AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_BEHAVIORS, AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_CONTRACTS, AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_IDS, AI_GAME_PLAYER_SYSTEM_GUIDANCE_NFR_FEATURE_FLAG_ID, AI_GAME_PLAYER_SYSTEM_INPUT_MODALITIES, AI_GAME_PLAYER_SYSTEM_MODULES, AI_GAME_PLAYER_SYSTEM_MODULE_CONTRACTS, AI_GAME_PLAYER_SYSTEM_PREFERENCE_KINDS, AI_GAME_PLAYER_SYSTEM_PREFERENCE_SOURCES, 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 AiGameIdentityContractVersion, type AiGameIdentityDisclosurePolicy, type AiGameIdentityKnowledgeState, type AiGameIdentityProjectionContract, type AiGameIdentityProjectionField, type AiGameIdentityProjectionRead, type AiGameIdentitySelfProjection, type AiGameIdentityTargetCategory, type AiGameIdentityTargetProjection, type AiGameIdentityVisibilityState, type AiGameInstitutionEligibility, type AiGameMartialTrainingSnapshot, type AiGameMissionClass, type AiGameMissionConfidenceBand, type AiGameMissionDefinition, type AiGameMissionFeedbackChannel, type AiGameMissionInfluenceSource, type AiGameMissionMccFocusInfluence, type AiGameMissionObjectiveState, type AiGameMissionObjectiveStatus, type AiGameMissionPlayerModelEvidence, type AiGameMissionPlayerModelInfluenceInput, type AiGameMissionPlayerResponse, type AiGameMissionPlayerResponseKind, type AiGameMissionPreferenceDimension, type AiGameMissionReadinessBand, type AiGameMissionReadinessContext, type AiGameMissionRepeatedSignalHandling, type AiGameMissionRewardBound, type AiGameMissionRewardCapSemantic, type AiGameMissionRewardEnvelope, type AiGameMissionRewardGrant, type AiGameMissionRewardKind, type AiGameMissionsContractVersion, type AiGamePlayerSystemAlert, type AiGamePlayerSystemAlertPriority, type AiGamePlayerSystemConfidenceBand, type AiGamePlayerSystemContractVersion, type AiGamePlayerSystemFocusMode, type AiGamePlayerSystemFocusModeContract, type AiGamePlayerSystemGuidanceCue, type AiGamePlayerSystemGuidanceCueSource, type AiGamePlayerSystemGuidanceFallbackBehavior, type AiGamePlayerSystemGuidanceFallbackContract, type AiGamePlayerSystemGuidanceFallbackId, type AiGamePlayerSystemInputModality, type AiGamePlayerSystemModule, type AiGamePlayerSystemModuleContract, type AiGamePlayerSystemPreferenceConfidenceState, type AiGamePlayerSystemPreferenceInput, type AiGamePlayerSystemPreferenceKind, type AiGamePlayerSystemPreferenceProfile, type AiGamePlayerSystemPreferenceSource, type AiGamePlayerSystemSession, 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 CreateAiGameIdentityProjectionContractInput, type CreateAiGameIdentitySelfProjectionInput, type CreateAiGameIdentityTargetProjectionInput, type CreateAiGameMissionDefinitionInput, type CreateAiGameMissionMccFocusInfluenceInput, type CreateAiGameMissionObjectiveStateInput, type CreateAiGameMissionPlayerModelEvidenceInput, type CreateAiGameMissionPlayerModelInfluenceInput, type CreateAiGameMissionPlayerResponseInput, type CreateAiGameMissionReadinessContextInput, type CreateAiGameMissionRewardBoundInput, type CreateAiGameMissionRewardEnvelopeInput, type CreateAiGameMissionRewardGrantInput, type CreateAiGamePlayerSystemSessionInput, 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, assertAiGameIdentityProjectionContractVersion, assertAiGameMissionContractVersion, classifyAiGameTask, createAiGameAcademicTrainingSnapshot, createAiGameIdentityProjectionContract, createAiGameIdentitySelfProjection, createAiGameIdentityTargetProjection, createAiGameInstitutionEligibility, createAiGameMartialTrainingSnapshot, createAiGameMissionDefinition, createAiGameMissionMccFocusInfluence, createAiGameMissionObjectiveState, createAiGameMissionPlayerModelEvidence, createAiGameMissionPlayerModelInfluenceInput, createAiGameMissionPlayerResponse, createAiGameMissionReadinessContext, createAiGameMissionRewardBound, createAiGameMissionRewardEnvelope, createAiGameMissionRewardGrant, createAiGamePlayerSystemAlert, createAiGamePlayerSystemGuidanceCue, createAiGamePlayerSystemPreferenceConfidenceState, createAiGamePlayerSystemPreferenceInput, createAiGamePlayerSystemPreferenceProfile, createAiGamePlayerSystemSession, createAiGameSpecializationRecommendation, createAiGameTrainingStateSnapshot, createAiGameTrainingTrustMarker, createQuietMeasureJudgmentEligibility, createQuietMeasureJudgmentResponse, gameEventFeatureFlags, getAiGamePlayerSystemFocusModeContract, getAiGamePlayerSystemGuidanceFallbackContract, getAiGamePlayerSystemModuleContract, isAiGameIdentityKnowledgeState, isAiGameIdentityProjectionRead, isAiGameIdentityTargetCategory, isAiGameIdentityVisibilityState, isAiGameMissionClass, isAiGameMissionConfidenceBand, isAiGameMissionFeedbackChannel, isAiGameMissionInfluenceSource, isAiGameMissionObjectiveStatus, isAiGameMissionPlayerResponseKind, isAiGameMissionPreferenceDimension, isAiGameMissionReadinessBand, isAiGameMissionRepeatedSignalHandling, isAiGameMissionRewardCapSemantic, isAiGameMissionRewardKind, isAiGamePlayerSystemAlertDeliverable, isAiGamePlayerSystemAlertPriority, isAiGamePlayerSystemConfidenceBand, isAiGamePlayerSystemFocusMode, isAiGamePlayerSystemGuidanceCueSource, isAiGamePlayerSystemGuidanceFallbackBehavior, isAiGamePlayerSystemGuidanceFallbackId, isAiGamePlayerSystemInputModality, isAiGamePlayerSystemModule, isAiGamePlayerSystemPreferenceKind, isAiGamePlayerSystemPreferenceSource, isAiGameTrainingRecommendationConfidenceBand, isAiGameTrainingRecommendationReadiness, isAiGameTrainingStageGate, isCandidateWorldEvent, isCanonicalWorldEvent, isGossipTopicActive, isGossipTopicCorrected, isIncidentResolved, isQuietMeasureAxis, isQuietMeasureMissionProbeMode, isQuietMeasureMissionResolutionShape, listQuietMeasureMissingEvidence, normalizeIncidentImpactVector, packageDescriptor, projectTopicForAudience, resolveAiGameIdentityProjectionRead, resolveAiGameMissionConfidenceBand, resolveAiGamePlayerAddressText, resolveAiGamePlayerSystemConfidenceBand, resolveAiGameTaskBatch, selectAiGamePlayerSystemAlertsForFocusMode, selectAiGameVisibleIdentityTargets };
|
package/dist/index.js
CHANGED
|
@@ -170,6 +170,9 @@ function createAiGameMartialTrainingSnapshot(input) {
|
|
|
170
170
|
// src/player-system.ts
|
|
171
171
|
var AI_GAME_PLAYER_SYSTEM_FEATURE_FLAG_ID = "isekai.player-system.core.enabled";
|
|
172
172
|
var AI_GAME_PLAYER_SYSTEM_CONTRACT_VERSION = "1.0";
|
|
173
|
+
var AI_GAME_PLAYER_SYSTEM_GUIDANCE_NFR_FEATURE_FLAG_ID = "isekai.player-system.guidance-nfr.enabled";
|
|
174
|
+
var AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_PAYLOAD_BYTES = 4096;
|
|
175
|
+
var AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_OCCURRENCES_PER_MINUTE = 30;
|
|
173
176
|
var AI_GAME_PLAYER_SYSTEM_FOCUS_MODES = [
|
|
174
177
|
"ambient",
|
|
175
178
|
"focused",
|
|
@@ -191,6 +194,38 @@ var AI_GAME_PLAYER_SYSTEM_ALERT_PRIORITIES = [
|
|
|
191
194
|
"normal",
|
|
192
195
|
"low"
|
|
193
196
|
];
|
|
197
|
+
var AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_SOURCES = [
|
|
198
|
+
"voice",
|
|
199
|
+
"narration",
|
|
200
|
+
"speech-capture"
|
|
201
|
+
];
|
|
202
|
+
var AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_IDS = [
|
|
203
|
+
"voice-unavailable",
|
|
204
|
+
"narration-unavailable",
|
|
205
|
+
"speech-capture-unavailable"
|
|
206
|
+
];
|
|
207
|
+
var AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_BEHAVIORS = [
|
|
208
|
+
"touch-controls-and-text-summary",
|
|
209
|
+
"status-copy-and-live-region",
|
|
210
|
+
"manual-actions-stay-visible"
|
|
211
|
+
];
|
|
212
|
+
var AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_CONTRACTS = Object.freeze([
|
|
213
|
+
Object.freeze({
|
|
214
|
+
id: "voice-unavailable",
|
|
215
|
+
source: "voice",
|
|
216
|
+
behavior: "touch-controls-and-text-summary"
|
|
217
|
+
}),
|
|
218
|
+
Object.freeze({
|
|
219
|
+
id: "narration-unavailable",
|
|
220
|
+
source: "narration",
|
|
221
|
+
behavior: "status-copy-and-live-region"
|
|
222
|
+
}),
|
|
223
|
+
Object.freeze({
|
|
224
|
+
id: "speech-capture-unavailable",
|
|
225
|
+
source: "speech-capture",
|
|
226
|
+
behavior: "manual-actions-stay-visible"
|
|
227
|
+
})
|
|
228
|
+
]);
|
|
194
229
|
var AI_GAME_PLAYER_SYSTEM_PREFERENCE_KINDS = [
|
|
195
230
|
"combat",
|
|
196
231
|
"exploration",
|
|
@@ -377,6 +412,63 @@ function isAiGamePlayerSystemModule(value) {
|
|
|
377
412
|
function isAiGamePlayerSystemAlertPriority(value) {
|
|
378
413
|
return isMember(value, AI_GAME_PLAYER_SYSTEM_ALERT_PRIORITIES);
|
|
379
414
|
}
|
|
415
|
+
function isAiGamePlayerSystemGuidanceCueSource(value) {
|
|
416
|
+
return isMember(value, AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_SOURCES);
|
|
417
|
+
}
|
|
418
|
+
function isAiGamePlayerSystemGuidanceFallbackId(value) {
|
|
419
|
+
return isMember(value, AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_IDS);
|
|
420
|
+
}
|
|
421
|
+
function isAiGamePlayerSystemGuidanceFallbackBehavior(value) {
|
|
422
|
+
return isMember(value, AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_BEHAVIORS);
|
|
423
|
+
}
|
|
424
|
+
function getAiGamePlayerSystemGuidanceFallbackContract(fallbackId) {
|
|
425
|
+
const contract = AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_CONTRACTS.find(
|
|
426
|
+
(candidate) => candidate.id === fallbackId
|
|
427
|
+
);
|
|
428
|
+
if (!contract) {
|
|
429
|
+
throw new Error("fallbackId must identify a supported guidance fallback");
|
|
430
|
+
}
|
|
431
|
+
return contract;
|
|
432
|
+
}
|
|
433
|
+
function createAiGamePlayerSystemGuidanceCue(input) {
|
|
434
|
+
assertNonEmptyString2(input.cueId, "cueId");
|
|
435
|
+
assertContractVersion(
|
|
436
|
+
input.contractVersion ?? AI_GAME_PLAYER_SYSTEM_CONTRACT_VERSION
|
|
437
|
+
);
|
|
438
|
+
if (!isAiGamePlayerSystemAlertPriority(input.priority)) {
|
|
439
|
+
throw new Error("priority must be a supported Player System alert priority");
|
|
440
|
+
}
|
|
441
|
+
if (!isAiGamePlayerSystemGuidanceCueSource(input.source)) {
|
|
442
|
+
throw new Error("source must be a supported guidance cue source");
|
|
443
|
+
}
|
|
444
|
+
if (!isAiGamePlayerSystemGuidanceFallbackId(input.fallbackId)) {
|
|
445
|
+
throw new Error("fallbackId must identify a supported guidance fallback");
|
|
446
|
+
}
|
|
447
|
+
const fallback = getAiGamePlayerSystemGuidanceFallbackContract(input.fallbackId);
|
|
448
|
+
if (fallback.source !== input.source) {
|
|
449
|
+
throw new Error("fallbackId must match the guidance cue source");
|
|
450
|
+
}
|
|
451
|
+
if (!Number.isInteger(input.maxPayloadBytes) || input.maxPayloadBytes < 1 || input.maxPayloadBytes > AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_PAYLOAD_BYTES) {
|
|
452
|
+
throw new Error(
|
|
453
|
+
`maxPayloadBytes must be between 1 and ${AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_PAYLOAD_BYTES}`
|
|
454
|
+
);
|
|
455
|
+
}
|
|
456
|
+
if (!Number.isInteger(input.maxOccurrencesPerMinute) || input.maxOccurrencesPerMinute < 1 || input.maxOccurrencesPerMinute > AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_OCCURRENCES_PER_MINUTE) {
|
|
457
|
+
throw new Error(
|
|
458
|
+
`maxOccurrencesPerMinute must be between 1 and ${AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_OCCURRENCES_PER_MINUTE}`
|
|
459
|
+
);
|
|
460
|
+
}
|
|
461
|
+
return Object.freeze({
|
|
462
|
+
cueId: input.cueId,
|
|
463
|
+
contractVersion: input.contractVersion ?? AI_GAME_PLAYER_SYSTEM_CONTRACT_VERSION,
|
|
464
|
+
featureFlagId: AI_GAME_PLAYER_SYSTEM_GUIDANCE_NFR_FEATURE_FLAG_ID,
|
|
465
|
+
priority: input.priority,
|
|
466
|
+
source: input.source,
|
|
467
|
+
fallbackId: input.fallbackId,
|
|
468
|
+
maxPayloadBytes: input.maxPayloadBytes,
|
|
469
|
+
maxOccurrencesPerMinute: input.maxOccurrencesPerMinute
|
|
470
|
+
});
|
|
471
|
+
}
|
|
380
472
|
function isAiGamePlayerSystemPreferenceKind(value) {
|
|
381
473
|
return isMember(value, AI_GAME_PLAYER_SYSTEM_PREFERENCE_KINDS);
|
|
382
474
|
}
|
|
@@ -1985,6 +2077,13 @@ export {
|
|
|
1985
2077
|
AI_GAME_PLAYER_SYSTEM_FEATURE_FLAG_ID,
|
|
1986
2078
|
AI_GAME_PLAYER_SYSTEM_FOCUS_MODES,
|
|
1987
2079
|
AI_GAME_PLAYER_SYSTEM_FOCUS_MODE_CONTRACTS,
|
|
2080
|
+
AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_OCCURRENCES_PER_MINUTE,
|
|
2081
|
+
AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_MAX_PAYLOAD_BYTES,
|
|
2082
|
+
AI_GAME_PLAYER_SYSTEM_GUIDANCE_CUE_SOURCES,
|
|
2083
|
+
AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_BEHAVIORS,
|
|
2084
|
+
AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_CONTRACTS,
|
|
2085
|
+
AI_GAME_PLAYER_SYSTEM_GUIDANCE_FALLBACK_IDS,
|
|
2086
|
+
AI_GAME_PLAYER_SYSTEM_GUIDANCE_NFR_FEATURE_FLAG_ID,
|
|
1988
2087
|
AI_GAME_PLAYER_SYSTEM_INPUT_MODALITIES,
|
|
1989
2088
|
AI_GAME_PLAYER_SYSTEM_MODULES,
|
|
1990
2089
|
AI_GAME_PLAYER_SYSTEM_MODULE_CONTRACTS,
|
|
@@ -2045,6 +2144,7 @@ export {
|
|
|
2045
2144
|
createAiGameMissionRewardEnvelope,
|
|
2046
2145
|
createAiGameMissionRewardGrant,
|
|
2047
2146
|
createAiGamePlayerSystemAlert,
|
|
2147
|
+
createAiGamePlayerSystemGuidanceCue,
|
|
2048
2148
|
createAiGamePlayerSystemPreferenceConfidenceState,
|
|
2049
2149
|
createAiGamePlayerSystemPreferenceInput,
|
|
2050
2150
|
createAiGamePlayerSystemPreferenceProfile,
|
|
@@ -2060,6 +2160,7 @@ export {
|
|
|
2060
2160
|
createQuietMeasureJudgmentResponse,
|
|
2061
2161
|
gameEventFeatureFlags,
|
|
2062
2162
|
getAiGamePlayerSystemFocusModeContract,
|
|
2163
|
+
getAiGamePlayerSystemGuidanceFallbackContract,
|
|
2063
2164
|
getAiGamePlayerSystemModuleContract,
|
|
2064
2165
|
isAiGameIdentityKnowledgeState,
|
|
2065
2166
|
isAiGameIdentityProjectionRead,
|
|
@@ -2080,6 +2181,9 @@ export {
|
|
|
2080
2181
|
isAiGamePlayerSystemAlertPriority,
|
|
2081
2182
|
isAiGamePlayerSystemConfidenceBand,
|
|
2082
2183
|
isAiGamePlayerSystemFocusMode,
|
|
2184
|
+
isAiGamePlayerSystemGuidanceCueSource,
|
|
2185
|
+
isAiGamePlayerSystemGuidanceFallbackBehavior,
|
|
2186
|
+
isAiGamePlayerSystemGuidanceFallbackId,
|
|
2083
2187
|
isAiGamePlayerSystemInputModality,
|
|
2084
2188
|
isAiGamePlayerSystemModule,
|
|
2085
2189
|
isAiGamePlayerSystemPreferenceKind,
|