From 69a07248cea2916cdb6c699fc4dceecfde469c30 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 8 Mar 2026 23:48:50 +0000 Subject: [PATCH] feat(shared): add 'invention' to MemoryEventType and NarrationEvent type Co-Authored-By: Claude Opus 4.6 --- shared/src/narration.ts | 2 +- shared/src/types.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/shared/src/narration.ts b/shared/src/narration.ts index 147b293..4f24eba 100644 --- a/shared/src/narration.ts +++ b/shared/src/narration.ts @@ -5,7 +5,7 @@ export type NarrationOutcome = InteractionOutcome | 'proposal_accepted' | 'propo export interface NarrationEvent { id: number; tick: number; - type: 'social' | 'proposal'; + type: 'social' | 'proposal' | 'invention'; entityIds: [EntityId, EntityId]; names: [string, string]; outcome: NarrationOutcome; diff --git a/shared/src/types.ts b/shared/src/types.ts index 6500a3f..41f9661 100644 --- a/shared/src/types.ts +++ b/shared/src/types.ts @@ -12,7 +12,8 @@ export type MemoryEventType = | 'need_crisis' | 'need_recovery' | 'goal_change' | 'bond_formed' | 'bond_dissolved' - | 'spawned'; + | 'spawned' + | 'invention'; export interface MemoryEvent { id: number;