64 Commits

Author SHA1 Message Date
root
b2ac0e7a00 feat: add Reset Stats button to admin LLM tracking panel
Allows resetting the LLM stats aggregation window without deleting
historical data. Stores a reset timestamp in metadata and filters
the aggregation query to only include calls after that point.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 01:59:24 +00:00
root
02aabc294d docs: add daytime nap implementation plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 03:03:09 +00:00
root
37d5ce96d6 docs: fix guard condition and add reviewer feedback to nap spec
Fix inverted guard logic (napTarget < 60 triggers full sleep, not >=),
add cycleTicks derivation, clamp napTarget to 100, add test plan.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 02:57:54 +00:00
root
f0b8fea4f1 docs: daytime nap system design spec
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 02:55:12 +00:00
root
30b187b838 docs: add needs overhaul implementation plan (15 tasks)
TDD-structured plan covering thirst need, berry bushes, hunger rework,
forage goal, UI bars, and food POI removal.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 20:24:14 +00:00
root
c6f36592e7 docs: add needs overhaul design (food, thirst, productivity visibility)
Berry bushes as gatherable food, thirst need consuming water items,
productivity bar on status tab, desperate forage goal, remove magic
food POIs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 20:19:30 +00:00
root
5d407d41fa docs: add day counter + 2x indicator implementation plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 19:10:48 +00:00
root
4526ba908c docs: add day counter + 2x indicator design
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 19:09:05 +00:00
root
d11f19e703 docs: add LLM analytics implementation plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 13:12:38 +00:00
root
703b940e9d docs: add LLM analytics tracking design
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 13:08:10 +00:00
root
186536d95c docs: Admin & Log panel implementation plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 02:13:37 +00:00
root
43c3709293 docs: Admin & Log panel design
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 02:09:55 +00:00
root
176ca88983 docs: NPC panel cleanup implementation plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 01:32:53 +00:00
root
b28046c5f2 docs: NPC panel cleanup design — desires tab, thought name stripping
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 01:32:14 +00:00
root
dfd2b9e6e4 docs: add NPC desire system implementation plan
14 bite-sized tasks covering types, config, fulfillment system,
template overhaul, backstory+desires generator, desire generator
system, industry scoring, invention integration, persistence,
client display, and integration testing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 23:37:15 +00:00
root
ac9c881610 docs: add NPC desire system design
Motivation layer giving NPCs personal desires (0-3 per NPC) that
drive crafting priorities, influence invention, and create emergent
stories. Hybrid LLM approach: traits at spawn + event-driven updates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 23:31:50 +00:00
root
ee7f22c2c3 feat: ensure default stockpiles on load, use full stat names in backstory prompts
- Add ensureDefaultStockpiles() to handle saves from before stockpile spawning
- Switch backstory prompt stat formatting from abbreviations (STR, DEX) to
  full names (strength, dexterity) for better LLM comprehension
- Add prior design/plan docs for LLM fallback and NPC sleep system

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 22:05:14 +00:00
root
7a15a3257a docs: carry capacity and dropoff implementation plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 21:47:27 +00:00
root
d66db04832 docs: carry capacity and dropoff priority design
NPCs never drop off gathered resources due to missing continue
statement in npcBrainSystem. Design adds strength-based carry
capacity and fixes dropoff goal priority.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 21:46:10 +00:00
root
31d45338ec docs: add invention refinements implementation plan
8 tasks covering: load-time re-registration fix, reasoning field
parsing, revised LLM prompt, full stat passthrough, token usage
tracking, race condition guard, and integration tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 20:18:26 +00:00
root
bc0e1154b5 docs: add invention system refinements design
Covers duplicate fix (load bug), name normalization, stat-driven
invention selection, race condition guard, and token usage tracking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 20:15:34 +00:00
root
fe7bc56c28 docs: add tooltip hover implementation plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 19:24:17 +00:00
root
e9d8e5f533 docs: add tooltip hover design for UI abbreviations
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 19:23:17 +00:00
root
1a7e68f211 docs: add world persistence implementation plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 13:57:39 +00:00
root
f9557fac3a docs: add world persistence design (SQLite-based save/load)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 13:51:23 +00:00
root
35f3b4ea37 docs: add implementation plan for stocks panel, NPC tabs, and pickup mechanic
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 02:45:44 +00:00
root
ca3e067e0b docs: add design for stocks panel, NPC tab rework, and pickup mechanic
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 02:42:27 +00:00
root
827b38c2c7 docs: add inventions panel implementation plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:38:01 +00:00
root
89ae5d065b docs: add inventions panel design
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:35:51 +00:00
root
6d1f470ba5 docs: update completion status for Phases A-D.3
Mark all resource system phases (A, B, C, D.1-D.3) as complete in
the LLM integration roadmap and design docs. D.4 (structure
inspection) remains as future work.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:15:02 +00:00
root
c7bf7c9ef4 feat(client): add Phase D UI integration (D.1-D.3)
- D.1: Inventory display in NPC info panel (two-column grid below stats)
- D.2: Activity labels for gather/craft/build/dropoff goals
- D.3: Gold color for invention events in feed, lightbulb icon in history

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:13:15 +00:00
root
9e4d2583f5 docs: add Phase D UI integration design (D.1-D.3)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:11:43 +00:00
root
ed7113a34c docs: add Phase A, B, C implementation plans
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:03:03 +00:00
root
412e4dab7a docs: mark Phase B (crafting + building) as complete
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:31:13 +00:00
root
bfaa0ce6b8 docs: mark Phase A (harvestable map + gathering) as complete
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 22:52:52 +00:00
root
f6792baf68 docs: phase resource system design into 4 independent implementation stages
Break the monolithic 2.2 design into Phases A-D that can each be
implemented in a separate session with cleared context. Each phase
section is self-contained with all needed specs and file references.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 22:28:17 +00:00
root
ccb53d8a17 docs: mark task 2.1 (NPC event memory) as complete
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 22:05:46 +00:00
root
48332b104c docs: add NPC event memory implementation plan (task 2.1)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 21:46:48 +00:00
root
7f2097be0e docs: add NPC event memory system design (task 2.1)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 21:41:31 +00:00
root
22956c2050 docs: mark task 1.4 (NPC inner monologue) as complete
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 21:12:51 +00:00
root
e17f8c7655 docs: add NPC inner monologue implementation plan (task 1.4)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 20:57:27 +00:00
root
b151d8a785 docs: add NPC inner monologue design (task 1.4)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 20:53:51 +00:00
root
69c36e776b docs: add resource, tool & invention system design
Design for LLM-driven emergent crafting and invention system.
NPCs gather resources from terrain, craft at workshops, and
occasionally have eureka moments where an LLM invents new items.
Updates LLM roadmap: this becomes item 2.2, old goal selection
splits into 2.5 (POI naming).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 20:37:20 +00:00
root
87946bcb5c feat: add social interaction narration system (task 1.3)
Implements LLM-powered narration for NPC social interactions:
- Rate limits updated to 20 RPM / 1000 per day (OpenRouter free tier)
- NarrationEvent type with template fallback text generator
- NarrationService with rolling event buffer and LLM priority queuing
- Narration emitter wired between social and relationship systems
- Socket.io events for real-time narration delivery
- Tabbed left panel (Stats + Events) replacing old Superlatives panel
- Recent events section in NPC info panel
- Follow tracking via socket for LLM narration priority

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 19:29:43 +00:00
root
5ccb708d80 docs: add social narration implementation plan (task 1.3)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 17:44:11 +00:00
root
6c51fb622b docs: add social interaction narration design (task 1.3)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 17:40:54 +00:00
root
6f459fa88a feat: add trunk decorations, resize superlatives panel, add LLM plan docs
- Add trunk decoration layer to GameMap and mapGenerator
- Load trunk.png asset in BootScene
- Increase superlatives panel size and font sizes for readability
- Simplify mapGenerator (remove procedural terrain features)
- Add LLM integration planning documents
- Remove stale day-night cycle worktree plans
- Update local Claude settings

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 17:09:19 +00:00
root
180aabe17e docs: add superlatives implementation plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 04:34:24 +00:00
root
e54abdcbd2 docs: add superlatives system design
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 04:30:44 +00:00
root
e5a6b443e9 docs: add mutual bonds implementation plan
12-task TDD plan covering bond registry, proposal interactions,
classification rework, config additions, and client display updates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 19:11:48 +00:00