1
0
Fork 0
polaris-task-force/src/lib/npc-dialogue
Z8MB1E 04bbc66edc feat(npc-dialogue): add defined checks to flag conditions
is_true/is_false test truthiness, so a flag explicitly set to false reads
the same as a flag that was never recorded. is_defined/is_undefined test
existence instead, which lets a branch fire on "has this happened yet".

A pending-activation flag counts as defined (recorded, not yet in effect)
and an expired personal entry now falls through to the global entry, which
is what readFlag's contract already promised.

NUMERIC_CONDITION_OPS becomes the shared list of ops that take an amount, so
the editor, the entryGate field and conditionSummary agree. Adding to
CONDITION_OPS also alters enum_npc_dialogues_entry_gate_op, so the migration
is an ALTER TYPE ADD VALUE, applied to dev.
2026-11-24 17:34:40 -05:00
..
AGENTS.md feat(npc-dialogue): add defined checks to flag conditions 2026-11-24 17:34:40 -05:00
attachments.ts feat(npc-dialogue): attach files to conversation lines 2026-10-14 16:05:15 -04:00
dialogue.ts feat(npc-dialogue): add defined checks to flag conditions 2026-11-24 17:34:40 -05:00
DialogueText.tsx feat(npc-dialogue): rich text editor and block lists in dialogue markup 2026-10-14 16:33:23 -04:00
flags.ts feat(npc-dialogue): add defined checks to flag conditions 2026-11-24 17:34:40 -05:00
fragmentInsert.ts docs(npc-dialogue): sync the contract with the start-node exception 2026-11-24 15:05:19 -05:00
generation.ts fix(npc-dialogue): keep the conversation reachable when a branch attaches 2026-11-24 14:47:08 -05:00
generationPrompt.ts fix(npc-dialogue): keep the conversation reachable when a branch attaches 2026-11-24 14:47:08 -05:00
generationSchema.ts feat(npc-dialogue): add defined checks to flag conditions 2026-11-24 17:34:40 -05:00
generationSettings.ts feat(npc-dialogue): make the AI prompt voice configurable 2026-11-24 12:53:33 -05:00
interpolate.ts feat(npc-dialogue): condition groups and ternary text tokens 2026-10-14 16:21:16 -04:00
normalize.ts fix(ai): bound the structured path too, and stop the dialog overpromising 2026-11-24 15:00:30 -05:00
reorder.ts feat(npc-dialogue): reorder choices in the dialogue editor 2026-10-07 14:01:00 -04:00
selection.ts feat(npc-dialogue): condition groups and ternary text tokens 2026-10-14 16:21:16 -04:00
states.ts feat(npc-dialogue): back NEW badges with server-side read markers 2026-10-14 15:35:47 -04:00