@dsh-agentic-roleplay/state 0.3.1 → 0.3.3

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/lib/index.d.ts CHANGED
@@ -1199,6 +1199,90 @@ interface NewTriggerNote {
1199
1199
  /** At most this many triggers in a story. */
1200
1200
  declare const MAX_TRIGGERS = 200;
1201
1201
  //#endregion
1202
+ //#region ../dsh-roleplay-model/src/dice.d.ts
1203
+ type DiceCheckId = number;
1204
+ type DiceRollId = number;
1205
+ /** What a band of a check makes of an attempt; the same three results a round's outcome has. */
1206
+ declare const DICE_RESULTS: readonly ["succeeded", "partial", "failed"];
1207
+ type DiceResult = (typeof DICE_RESULTS)[number];
1208
+ /** How a roll is read: by its total, or by how many of the dice came up high enough. */
1209
+ declare const DICE_READINGS: readonly ["total", "successes"];
1210
+ type DiceReading = (typeof DICE_READINGS)[number];
1211
+ /**
1212
+ * What the value is compared with: `absolute` reads the value itself, `over` the amount by which it beats the target
1213
+ * (a difficulty to meet or exceed), `under` the amount by which it stays below the target (a skill to roll under).
1214
+ */
1215
+ declare const DICE_COMPARISONS: readonly ["absolute", "over", "under"];
1216
+ type DiceComparison = (typeof DICE_COMPARISONS)[number];
1217
+ /** One range of values and what it means; a range left open at an end runs on for ever. */
1218
+ interface DiceBand {
1219
+ min?: number;
1220
+ max?: number;
1221
+ /** What it is called in play ("critical failure", "success at a cost"). */
1222
+ label: string;
1223
+ result: DiceResult;
1224
+ /** A result that is more than the plain one: a critical. */
1225
+ critical?: boolean;
1226
+ }
1227
+ /** A way of settling an attempt, as a world defines it; the dice and the reading of what they show are the world's, not the model's. */
1228
+ interface DiceCheckDefinition {
1229
+ key: string;
1230
+ name: string;
1231
+ /** When the game master uses this check, in the author's words. */
1232
+ use: string;
1233
+ /** Dice notation: `1d20`, `2d6`, `4d6kh3`, `d100`. */
1234
+ dice: string;
1235
+ reading?: DiceReading;
1236
+ /** With the reading `successes`: a die counts when it shows at least this. */
1237
+ hit?: number;
1238
+ compare?: DiceComparison;
1239
+ /** The key of a variable of the acting character that is added to the total. */
1240
+ modifier?: string;
1241
+ bands: DiceBand[];
1242
+ }
1243
+ interface DiceCheck extends DiceCheckDefinition {
1244
+ id: DiceCheckId;
1245
+ }
1246
+ /** What the dice and the reading of them gave, once a roll is made. */
1247
+ interface DiceReadout {
1248
+ label: string;
1249
+ result: DiceResult;
1250
+ critical: boolean;
1251
+ }
1252
+ interface NewDiceRoll {
1253
+ turn: number;
1254
+ /** The check that was rolled, none for a plain roll. */
1255
+ check?: string;
1256
+ expression: string;
1257
+ /** Every die rolled, in order. */
1258
+ faces: number[];
1259
+ /** The dice that count, after any are dropped or only the best are kept. */
1260
+ kept: number[];
1261
+ /** What is added to the dice: constants of the expression, the character's modifier, a bonus. */
1262
+ modifier: number;
1263
+ target?: number;
1264
+ /** What the dice and the modifier add up to, or the number of dice that hit. */
1265
+ total: number;
1266
+ /** What the bands were compared with: the total, or its distance from the target. */
1267
+ value: number;
1268
+ readout?: DiceReadout;
1269
+ reason: string;
1270
+ /** The character the roll was for, by key. */
1271
+ character?: string;
1272
+ /** Who asked for it. */
1273
+ by: 'agent' | 'player';
1274
+ }
1275
+ interface DiceRoll extends NewDiceRoll {
1276
+ id: DiceRollId;
1277
+ at: string;
1278
+ }
1279
+ /** Rolls and checks are limited so that a story cannot grow without bound. */
1280
+ declare const MAX_DICE_CHECKS = 40;
1281
+ declare const MAX_DICE_BANDS = 20;
1282
+ declare const MAX_DICE_PER_ROLL = 100;
1283
+ declare const MAX_DICE_SIDES = 1000;
1284
+ declare const MAX_DICE_TERMS = 8;
1285
+ //#endregion
1202
1286
  //#region ../dsh-roleplay-model/src/lore.d.ts
1203
1287
  type LoreId = number;
1204
1288
  declare const LORE_KINDS: readonly ["history", "culture", "religion", "politics", "geography", "science", "custom", "legend", "other"];
@@ -1873,6 +1957,21 @@ interface TriggerRepository {
1873
1957
  /** @throws {NotFoundError} */
1874
1958
  resolveNote(id: number, status: 'done' | 'lapsed'): void;
1875
1959
  }
1960
+ interface DiceRepository {
1961
+ /** @throws {ConflictError} for a key that exists. @throws {InvalidValueError} when the story has too many. */
1962
+ define(definition: DiceCheckDefinition): DiceCheck;
1963
+ /** In the order defined. */
1964
+ checks(): DiceCheck[];
1965
+ check(key: string): DiceCheck | undefined;
1966
+ /** @throws {NotFoundError} */
1967
+ removeCheck(key: string): void;
1968
+ record(roll: NewDiceRoll): DiceRoll;
1969
+ /** Oldest first: the rolls of one turn, or the latest ones. */
1970
+ rolls(filter?: {
1971
+ turn?: number;
1972
+ limit?: number;
1973
+ }): DiceRoll[];
1974
+ }
1876
1975
  //#endregion
1877
1976
  //#region src/records/items.d.ts
1878
1977
  /** The name by which models and tools refer to an item: its id in the world, or its number when it was made up in play. */
@@ -3063,6 +3162,7 @@ interface SessionStore {
3063
3162
  /** What characters have committed to, by date. */
3064
3163
  readonly engagements: EngagementRepository;
3065
3164
  readonly triggers: TriggerRepository;
3165
+ readonly dice: DiceRepository;
3066
3166
  /** What the session can be searched by: its texts by words, and by meaning once vectors are stored. */
3067
3167
  readonly recallIndex: RecallIndexRepository;
3068
3168
  /** Run `fn` atomically across the repositories; see {@link SqlDatabase.transaction}. */
@@ -3208,7 +3308,7 @@ type SemanticRanker = (input: {
3208
3308
  //#region src/tools/index.d.ts
3209
3309
  /** The roleplay session an agent works in, as the plugin that runs the agent knows it. */
3210
3310
  interface AgentLink {
3211
- session: Pick<Session, 'characters' | 'factions' | 'factionStates' | 'factionMemberships' | 'factionRelationships' | 'factionIntents' | 'lore' | 'events' | 'memories' | 'threads' | 'records' | 'recallRanked' | 'searchEvents' | 'edit' | 'locations' | 'placements' | 'relationships' | 'knowledge' | 'consolidation' | 'planMove' | 'items' | 'slots' | 'variables' | 'intents' | 'routines' | 'engagements' | 'clock'>;
3311
+ session: Pick<Session, 'characters' | 'factions' | 'factionStates' | 'factionMemberships' | 'factionRelationships' | 'factionIntents' | 'lore' | 'events' | 'memories' | 'threads' | 'records' | 'recallRanked' | 'searchEvents' | 'edit' | 'locations' | 'placements' | 'relationships' | 'knowledge' | 'consolidation' | 'planMove' | 'items' | 'slots' | 'variables' | 'intents' | 'routines' | 'engagements' | 'clock' | 'dice'>;
3212
3312
  /** The time zone the story's times are written and read in; UTC when not given. */
3213
3313
  timeZone?: string;
3214
3314
  /** The turn the agent is playing, which is what the age of a memory is counted from. */
@@ -3250,6 +3350,11 @@ interface Config {
3250
3350
  * tools are always there; leave writing off where another agent is responsible for the records.
3251
3351
  */
3252
3352
  writeTools: boolean;
3353
+ /**
3354
+ * Whether the dice tools (`roll_dice`, `roll_check`, `list_checks`) are registered for every agent of a roleplay session. Leave off where another plugin
3355
+ * decides which agents may roll, as the roleplay core does with its per-agent tool settings.
3356
+ */
3357
+ diceTools: boolean;
3253
3358
  }
3254
3359
  declare const Config: z<Config>;
3255
3360
  /** A session's repositories. Connections belong to the service, so there is nothing to close. */
@@ -3332,6 +3437,99 @@ declare function apply(ctx: Context, config: Config): void;
3332
3437
  //#region src/tools/character.d.ts
3333
3438
  declare function createCharacterTools(link: () => AgentLink, characterId: CharacterId): ToolDefinition[];
3334
3439
  //#endregion
3440
+ //#region src/records/dice.d.ts
3441
+ /** A die with this many sides shows a number from 1 to `sides`. The system's own source of randomness is the default. */
3442
+ type Roller = (sides: number) => number;
3443
+ declare const systemRoller: Roller;
3444
+ type KeepMode = 'kh' | 'kl' | 'dh' | 'dl';
3445
+ type Term = {
3446
+ sign: 1 | -1;
3447
+ count: number;
3448
+ sides: number;
3449
+ keep?: {
3450
+ mode: KeepMode;
3451
+ n: number;
3452
+ };
3453
+ } | {
3454
+ sign: 1 | -1;
3455
+ constant: number;
3456
+ };
3457
+ interface Notation {
3458
+ /** The expression written the same way whatever the spacing and case. */
3459
+ text: string;
3460
+ terms: Term[];
3461
+ }
3462
+ /** Reads dice notation: `2d6+1`, `d20`, `4d6kh3`, `d%`, `1d8+1d4-1`. @throws {InvalidValueError} with what is wrong. */
3463
+ declare function parseNotation(input: string): Notation;
3464
+ /** The lowest and highest total the dice and constants can give. */
3465
+ declare function notationRange(notation: Notation): {
3466
+ min: number;
3467
+ max: number;
3468
+ };
3469
+ interface Rolled {
3470
+ /** Every die, in the order of the terms. */
3471
+ faces: number[];
3472
+ /** The dice that count. */
3473
+ kept: number[];
3474
+ /** The constants of the expression, signed. */
3475
+ constant: number;
3476
+ /** The dice that count with their signs, plus the constants. */
3477
+ total: number;
3478
+ }
3479
+ declare function rollNotation(notation: Notation, roll?: Roller): Rolled;
3480
+ /** What the bands of a check make of a value. @throws {InvalidValueError} when no band holds it. */
3481
+ declare function readBands(bands: readonly DiceBand[], value: number): DiceReadout;
3482
+ interface CheckRoll {
3483
+ faces: number[];
3484
+ kept: number[];
3485
+ modifier: number;
3486
+ target?: number;
3487
+ total: number;
3488
+ value: number;
3489
+ readout: DiceReadout;
3490
+ }
3491
+ /**
3492
+ * Rolls a check: the dice, the character's modifier and any bonus added, then the value read against the bands. With the reading
3493
+ * `successes` the total is the number of dice that hit. A check read against a target needs one.
3494
+ * @throws {InvalidValueError} for a target a check needs and is not given, or bands that leave the value unread.
3495
+ */
3496
+ declare function rollCheck(check: DiceCheckDefinition, input: {
3497
+ modifier?: number;
3498
+ bonus?: number;
3499
+ target?: number;
3500
+ }, roll?: Roller): CheckRoll;
3501
+ /** What is wrong with a check as a world defines it; nothing when it is sound. */
3502
+ declare function checkProblems(check: DiceCheckDefinition): string[];
3503
+ /** A roll of dice with no meaning attached, for what the world has no check for. */
3504
+ interface PlainRoll {
3505
+ expression: string;
3506
+ faces: number[];
3507
+ kept: number[];
3508
+ modifier: number;
3509
+ total: number;
3510
+ }
3511
+ declare function rollPlain(expression: string, roll?: Roller): PlainRoll;
3512
+ //#endregion
3513
+ //#region src/tools/dice.d.ts
3514
+ declare const ROLL_DICE_TOOL = "roll_dice";
3515
+ declare const ROLL_CHECK_TOOL = "roll_check";
3516
+ declare const LIST_CHECKS_TOOL = "list_checks";
3517
+ /** The tools that need the dice and nothing else of the story. */
3518
+ type DiceLink = Pick<AgentLink, 'turn'> & {
3519
+ session: Pick<AgentLink['session'], 'dice' | 'characters' | 'variables'>;
3520
+ };
3521
+ /** How a roll reads to the agent that asked for it: what fell, what it adds up to, and what the world's check makes of it. */
3522
+ declare function describeRoll(roll: DiceRoll, check?: DiceCheck): string;
3523
+ /**
3524
+ * Tools that roll dice for an agent, so that numbers are not made up. `roll_check` rolls a check the story defines and reads
3525
+ * the result with the check's own bands; `roll_dice` rolls plain notation for what has no check. The roller is the system's
3526
+ * source of randomness unless one is given.
3527
+ */
3528
+ declare function createDiceTools(resolve: (agentSessionId: string) => DiceLink | undefined, options?: {
3529
+ roller?: Roller;
3530
+ by?: 'agent' | 'player';
3531
+ }): ToolDefinition[];
3532
+ //#endregion
3335
3533
  //#region src/sqlite/variable-repository.d.ts
3336
3534
  /** Why a value is not one the variable can have, or nothing when it is. */
3337
3535
  declare function valueIssue(def: Pick<VariableDefinition, 'key' | 'kind' | 'min' | 'max' | 'integer' | 'options'>, value: unknown): string | undefined;
@@ -3639,5 +3837,5 @@ type LintTarget = Pick<RecordsTarget, 'characters' | 'locations' | 'placements'
3639
3837
  */
3640
3838
  declare function lintWorld(target: LintTarget): LintFinding[];
3641
3839
  //#endregion
3642
- export { ACCURACIES, Accuracy, type Agenda, type AgendaEngagement, type AgendaOptions, type AgentLink, type AgentResolver, type Announcement, type BeliefEdit, CHARACTER_CONTROLS, CHARACTER_KINDS, CHARACTER_ROLES, CHARACTER_TIERS, CLOCK_MODES, COMPARISONS, CONSOLIDATION_KINDS, CONTAINER_STATES, type Calendar, type CalendarDay, Character, CharacterControl, CharacterDefinition, CharacterFilter, CharacterId, CharacterIntent, CharacterKind, CharacterMemory, CharacterMemoryPatch, type CharacterMove, CharacterPatch, type CharacterRepository, CharacterRole, CharacterSpeech, CharacterStart, CharacterState, CharacterStatePatch, type CharacterStateRepository, CharacterTier, type Clarity, type Clock, ClockMode, ClockState, Comparison, Config, ConflictError, ConsolidationItem, ConsolidationItemId, ConsolidationKind, type ConsolidationRepository, ContainerSpec, ContainerState, CorruptDataError, DAY, DAY_PARTS, DEFAULT_CONFIDENCE, DEFAULT_MEMORY_POLICY, DEFAULT_SLOTS, type DayPart, type Delivery, EMOTION_VARIABLES, ENGAGEMENT_GRACE, ENGAGEMENT_STATUSES, EVIDENCE_RELATIONS, EXIT_STATES, type EditChecker, type EditResult, EmbeddingIndexInfo, EmotionStart, EmotionVector, Engagement, EngagementFilter, EngagementId, EngagementPatch, EngagementStatus, EntityKnowledge, type EventEdit, EventId, type EventRepository, EvidenceRelation, Exit, type ExitChange, ExitDefinition, ExitId, ExitOpener, ExitPatch, ExitState, Faction, FactionDefinition, FactionId, FactionIntent, type FactionIntentRepository, FactionMembership, FactionMembershipDefinition, type FactionMembershipRepository, FactionPatch, FactionRelationship, FactionRelationshipDefinition, type FactionRelationshipRepository, type FactionRepository, FactionState, FactionStatePatch, type FactionStateRepository, type FiredTrigger, HOUR, type Hemisphere, Holder, Holding, type Holiday, IMPORTANCE_MAX, IMPORTANCE_MIN, INTENT_HORIZONS, INTENT_STATUSES, INTENT_TYPES, ITEM_ACTIONS, Intent, IntentFilter, IntentHorizon, IntentId, IntentPatch, type IntentRepository, IntentStatus, IntentType, InvalidEditError, InvalidMoveError, InvalidValueError, Item, type ItemAction, type ItemChange, type ItemChangeSpec, type ItemContext, ItemDefinition, type ItemEditSpec, type ItemEffect, ItemId, ItemPatch, type ItemPlan, type ItemRepository, JsonValue, KNOWLEDGE_KINDS, KnowledgeDefinition, KnowledgeKind, type KnowledgeRepository, type KnownMoveContext, LANGUAGES, LORE_KINDS, LORE_SUBJECT_KINDS, Language, type LintFinding, type LintSeverity, type LintTarget, type LocalTime, Location, LocationDefinition, LocationFeature, LocationId, LocationPatch, type LocationRepository, Lore, LoreDefinition, LoreId, LoreKind, LorePatch, LoreSubject, LoreSubjectDefinition, LoreSubjectKind, MAX_LOCATION_FEATURES, MAX_ROUTINE_WINDOWS, MAX_SHOWN, MAX_TRIGGERS, MAX_VARIABLES, MEMBERSHIP_STATUSES, MEMORY_CONFIDENCES, MEMORY_KINDS, MIGRATION_BACKUP_FOLDER, MINUTE, MONTH_NAMES, MembershipPatch, MembershipStatus, MemoryConfidence, MemoryEvidence, MemoryId, MemoryKind, type MemoryPolicy, type MemoryRepository, MessageValues, type MetadataRepository, Move, type MoveContext, MovePlan, NO_CALENDAR, type NewBelief, NewCharacter, NewCharacterMemory, type NewCharacterSpec, NewCharacterState, NewEngagement, type NewEvent, NewExit, type NewExitBetween, type NewExit$1 as NewExitEdit, NewFaction, NewFactionState, NewItem, type NewItemSpec, NewLocation, NewLore, NewPerception, type NewPlace, NewPlacement, NewRelationship, NewSession, NewStoryEvent, NewSummary, NewTriggerNote, NotFoundError, type Occurrence, type OpenOptions, PERCEPTION_MODES, PLACEABLE_KINDS, PLOT_NUDGE_MODES, PLOT_STATUSES, PendingCommit, type PendingCommitRepository, PendingEmbedding, type PerceivedBy, PerceivedEvent, Perception, type PerceptionAddition, type PerceptionEdit, PerceptionId, PerceptionMode, PerceptionPatch, type PlaceEdit, PlaceableKind, type Placeholder, Placement, type PlacementRepository, PlotDefinition, PlotDevelopment, PlotNudgeMode, PlotProgress, PlotStatus, RECALL_ITEM_KINDS, type RankedGoal, type RecallCandidate, type RecallEvidence, RecallHit, type RecallIndexRepository, RecallItemKind, type RecallPool, type RecallQuery, type RecallSearch, type RecallSource, type RecallWhy, type Recalled, type RecordsEdit, type RecordsScope, type RecordsTarget, type RecordsView, Relationship, RelationshipDefinition, RelationshipId, RelationshipPatch, type RelationshipRepository, type RelationshipRetraction, type RelationshipSet, RoleplayState, RoutineDefinition, RoutineWindow, type RunResult, LATEST_VERSION as SCHEMA_VERSION, SEASONS, SECOND, SELF, SESSION_DATABASE_FILE, SLOT_ID, SUMMARY_LEVELS, SchemaError, type Season, type SemanticRanker, type Session, type SessionInit, type SessionListing, SessionMetadata, type SessionStore, type ShownVariable, Slot, type SlotRepository, SocialSubjectKind, type SqlDatabase, type SqlDriver, type SqlValue, StateError, type StatePatch, type StoreOptions, StoredRoutineWindow, StoredVariable, StoryEvent, StoryEventFilter, StoryEventPatch, StoryThread, Summary, SummaryId, SummaryLevel, type SummaryRepository, TEMPLATE_KINDS, THREAD_STATUSES, TIME_CHANGE_KINDS, TRIGGER_NOTE_KINDS, TRIGGER_STATUSES, type TemplateKind, ThreadId, type ThreadRepository, ThreadStatus, TimeChange, TimeChangeFilter, TimeChangeKind, Translate, Trigger, TriggerAnnouncement, TriggerAudience, type TriggerClock, TriggerCondition, TriggerDefinition, TriggerEffect, TriggerId, TriggerNote, TriggerNoteKind, type TriggerRun, type TriggerRunOptions, TriggerStatus, UnwritableError, VARIABLE_KEY, VARIABLE_KINDS, VARIABLE_SUBJECTS, VARIABLE_VISIBILITIES, VISUAL_SUBJECT_KINDS, type VariableAudience, VariableBand, type VariableChangeSpec, type VariableContext, VariableDefinition, VariableDefinitionInput, type VariableEffect, VariableKind, type VariablePlan, VariableSubject, VariableValue, VariableVisibility, type VectorSearch, type VectorSupport, VisualIdentity, VisualIdentityInput, VisualIdentityPatch, type VisualIdentityRepository, VisualSubjectKind, WEEKDAY_NAMES, WorldReference, addLocalDays, agendaAt, announcements, apply, applyItemPlan, applyRecordsEdit, audienceIds, catchUpPlan, changeItem, changeVariable, characterKey, clarityAt, clockTime, conditionHolds, createCharacterTools, createSession, createSessionStore, createTools, dayMatches, dayPart, dayTokenProblems, deleteSession, deliverNotes, denseScore, describeDuration, describeHolder, describeInstant, describeValue, finishRecall, fuseScores, holidaysOn, inAudience, inWindow, isSessionId, isTimeZone, itemKey, jitter, judgedStatements, languageOf, lapseNotes, lintWorld, listSessions, localIso, localTime, locationKey, mentioned, migrationBackupPath, moveCharacter, name, nextOccurrence, nextTimeOfDay, nodeSqliteDriver, occurrenceAt, openSession, openSessionStore, overlap, parseDayToken, parseInstant, parseRecordsEdit, parseTimeOfDay, parseTriggerDefinition, placeholdersOf, planItemChange, planKnownMove, planMove, planVariableChange, poolCandidates, rankGoals, readCalendar, readRecords, readTriggerDefinition, recall, recallCandidates, recallPool, recordsEditSchema, renderWords, retention, runTriggers, seasonOf, seededRoll, sessionDatabase, sessionFolder, shownVariables, subjectOf, systemClock, systemTimeZone, tokens, translated, translation, translator, triggerReferenceProblems, valueIssue, writeCalendar, zonedInstant };
3840
+ export { ACCURACIES, Accuracy, type Agenda, type AgendaEngagement, type AgendaOptions, type AgentLink, type AgentResolver, type Announcement, type BeliefEdit, CHARACTER_CONTROLS, CHARACTER_KINDS, CHARACTER_ROLES, CHARACTER_TIERS, CLOCK_MODES, COMPARISONS, CONSOLIDATION_KINDS, CONTAINER_STATES, type Calendar, type CalendarDay, Character, CharacterControl, CharacterDefinition, CharacterFilter, CharacterId, CharacterIntent, CharacterKind, CharacterMemory, CharacterMemoryPatch, type CharacterMove, CharacterPatch, type CharacterRepository, CharacterRole, CharacterSpeech, CharacterStart, CharacterState, CharacterStatePatch, type CharacterStateRepository, CharacterTier, type CheckRoll, type Clarity, type Clock, ClockMode, ClockState, Comparison, Config, ConflictError, ConsolidationItem, ConsolidationItemId, ConsolidationKind, type ConsolidationRepository, ContainerSpec, ContainerState, CorruptDataError, DAY, DAY_PARTS, DEFAULT_CONFIDENCE, DEFAULT_MEMORY_POLICY, DEFAULT_SLOTS, DICE_COMPARISONS, DICE_READINGS, DICE_RESULTS, type DayPart, type Delivery, DiceBand, DiceCheck, DiceCheckDefinition, DiceCheckId, DiceComparison, type DiceLink, DiceReading, DiceReadout, DiceResult, DiceRoll, DiceRollId, EMOTION_VARIABLES, ENGAGEMENT_GRACE, ENGAGEMENT_STATUSES, EVIDENCE_RELATIONS, EXIT_STATES, type EditChecker, type EditResult, EmbeddingIndexInfo, EmotionStart, EmotionVector, Engagement, EngagementFilter, EngagementId, EngagementPatch, EngagementStatus, EntityKnowledge, type EventEdit, EventId, type EventRepository, EvidenceRelation, Exit, type ExitChange, ExitDefinition, ExitId, ExitOpener, ExitPatch, ExitState, Faction, FactionDefinition, FactionId, FactionIntent, type FactionIntentRepository, FactionMembership, FactionMembershipDefinition, type FactionMembershipRepository, FactionPatch, FactionRelationship, FactionRelationshipDefinition, type FactionRelationshipRepository, type FactionRepository, FactionState, FactionStatePatch, type FactionStateRepository, type FiredTrigger, HOUR, type Hemisphere, Holder, Holding, type Holiday, IMPORTANCE_MAX, IMPORTANCE_MIN, INTENT_HORIZONS, INTENT_STATUSES, INTENT_TYPES, ITEM_ACTIONS, Intent, IntentFilter, IntentHorizon, IntentId, IntentPatch, type IntentRepository, IntentStatus, IntentType, InvalidEditError, InvalidMoveError, InvalidValueError, Item, type ItemAction, type ItemChange, type ItemChangeSpec, type ItemContext, ItemDefinition, type ItemEditSpec, type ItemEffect, ItemId, ItemPatch, type ItemPlan, type ItemRepository, JsonValue, KNOWLEDGE_KINDS, KnowledgeDefinition, KnowledgeKind, type KnowledgeRepository, type KnownMoveContext, LANGUAGES, LIST_CHECKS_TOOL, LORE_KINDS, LORE_SUBJECT_KINDS, Language, type LintFinding, type LintSeverity, type LintTarget, type LocalTime, Location, LocationDefinition, LocationFeature, LocationId, LocationPatch, type LocationRepository, Lore, LoreDefinition, LoreId, LoreKind, LorePatch, LoreSubject, LoreSubjectDefinition, LoreSubjectKind, MAX_DICE_BANDS, MAX_DICE_CHECKS, MAX_DICE_PER_ROLL, MAX_DICE_SIDES, MAX_DICE_TERMS, MAX_LOCATION_FEATURES, MAX_ROUTINE_WINDOWS, MAX_SHOWN, MAX_TRIGGERS, MAX_VARIABLES, MEMBERSHIP_STATUSES, MEMORY_CONFIDENCES, MEMORY_KINDS, MIGRATION_BACKUP_FOLDER, MINUTE, MONTH_NAMES, MembershipPatch, MembershipStatus, MemoryConfidence, MemoryEvidence, MemoryId, MemoryKind, type MemoryPolicy, type MemoryRepository, MessageValues, type MetadataRepository, Move, type MoveContext, MovePlan, NO_CALENDAR, type NewBelief, NewCharacter, NewCharacterMemory, type NewCharacterSpec, NewCharacterState, NewDiceRoll, NewEngagement, type NewEvent, NewExit, type NewExitBetween, type NewExit$1 as NewExitEdit, NewFaction, NewFactionState, NewItem, type NewItemSpec, NewLocation, NewLore, NewPerception, type NewPlace, NewPlacement, NewRelationship, NewSession, NewStoryEvent, NewSummary, NewTriggerNote, NotFoundError, type Notation, type Occurrence, type OpenOptions, PERCEPTION_MODES, PLACEABLE_KINDS, PLOT_NUDGE_MODES, PLOT_STATUSES, PendingCommit, type PendingCommitRepository, PendingEmbedding, type PerceivedBy, PerceivedEvent, Perception, type PerceptionAddition, type PerceptionEdit, PerceptionId, PerceptionMode, PerceptionPatch, type PlaceEdit, PlaceableKind, type Placeholder, Placement, type PlacementRepository, type PlainRoll, PlotDefinition, PlotDevelopment, PlotNudgeMode, PlotProgress, PlotStatus, RECALL_ITEM_KINDS, ROLL_CHECK_TOOL, ROLL_DICE_TOOL, type RankedGoal, type RecallCandidate, type RecallEvidence, RecallHit, type RecallIndexRepository, RecallItemKind, type RecallPool, type RecallQuery, type RecallSearch, type RecallSource, type RecallWhy, type Recalled, type RecordsEdit, type RecordsScope, type RecordsTarget, type RecordsView, Relationship, RelationshipDefinition, RelationshipId, RelationshipPatch, type RelationshipRepository, type RelationshipRetraction, type RelationshipSet, RoleplayState, type Roller, RoutineDefinition, RoutineWindow, type RunResult, LATEST_VERSION as SCHEMA_VERSION, SEASONS, SECOND, SELF, SESSION_DATABASE_FILE, SLOT_ID, SUMMARY_LEVELS, SchemaError, type Season, type SemanticRanker, type Session, type SessionInit, type SessionListing, SessionMetadata, type SessionStore, type ShownVariable, Slot, type SlotRepository, SocialSubjectKind, type SqlDatabase, type SqlDriver, type SqlValue, StateError, type StatePatch, type StoreOptions, StoredRoutineWindow, StoredVariable, StoryEvent, StoryEventFilter, StoryEventPatch, StoryThread, Summary, SummaryId, SummaryLevel, type SummaryRepository, TEMPLATE_KINDS, THREAD_STATUSES, TIME_CHANGE_KINDS, TRIGGER_NOTE_KINDS, TRIGGER_STATUSES, type TemplateKind, ThreadId, type ThreadRepository, ThreadStatus, TimeChange, TimeChangeFilter, TimeChangeKind, Translate, Trigger, TriggerAnnouncement, TriggerAudience, type TriggerClock, TriggerCondition, TriggerDefinition, TriggerEffect, TriggerId, TriggerNote, TriggerNoteKind, type TriggerRun, type TriggerRunOptions, TriggerStatus, UnwritableError, VARIABLE_KEY, VARIABLE_KINDS, VARIABLE_SUBJECTS, VARIABLE_VISIBILITIES, VISUAL_SUBJECT_KINDS, type VariableAudience, VariableBand, type VariableChangeSpec, type VariableContext, VariableDefinition, VariableDefinitionInput, type VariableEffect, VariableKind, type VariablePlan, VariableSubject, VariableValue, VariableVisibility, type VectorSearch, type VectorSupport, VisualIdentity, VisualIdentityInput, VisualIdentityPatch, type VisualIdentityRepository, VisualSubjectKind, WEEKDAY_NAMES, WorldReference, addLocalDays, agendaAt, announcements, apply, applyItemPlan, applyRecordsEdit, audienceIds, catchUpPlan, changeItem, changeVariable, characterKey, checkProblems, clarityAt, clockTime, conditionHolds, createCharacterTools, createDiceTools, createSession, createSessionStore, createTools, dayMatches, dayPart, dayTokenProblems, deleteSession, deliverNotes, denseScore, describeDuration, describeHolder, describeInstant, describeRoll, describeValue, finishRecall, fuseScores, holidaysOn, inAudience, inWindow, isSessionId, isTimeZone, itemKey, jitter, judgedStatements, languageOf, lapseNotes, lintWorld, listSessions, localIso, localTime, locationKey, mentioned, migrationBackupPath, moveCharacter, name, nextOccurrence, nextTimeOfDay, nodeSqliteDriver, notationRange, occurrenceAt, openSession, openSessionStore, overlap, parseDayToken, parseInstant, parseNotation, parseRecordsEdit, parseTimeOfDay, parseTriggerDefinition, placeholdersOf, planItemChange, planKnownMove, planMove, planVariableChange, poolCandidates, rankGoals, readBands, readCalendar, readRecords, readTriggerDefinition, recall, recallCandidates, recallPool, recordsEditSchema, renderWords, retention, rollCheck, rollNotation, rollPlain, runTriggers, seasonOf, seededRoll, sessionDatabase, sessionFolder, shownVariables, subjectOf, systemClock, systemRoller, systemTimeZone, tokens, translated, translation, translator, triggerReferenceProblems, valueIssue, writeCalendar, zonedInstant };
3643
3841
  //# sourceMappingURL=index.d.ts.map