Commit Graph

10 Commits

Author SHA1 Message Date
veguAI
f07b68fb3e fix: honor can_be_disabled and declared defaults when loading agent action enabled flags (#174) (#181)
* fix: honor can_be_disabled and declared defaults when loading agent action enabled flags (#174)

* fix: surface refused agent action toggles, enforce enabled/can_be_disabled at the model, correct changelog claims (#174)

* fix: correct ToggleAgentAction docs wording and error message, restore test class placement (#174)
2026-07-29 20:06:56 +03:00
veguAI
70011a4bd8 add missing inputs to GenerateCharactger node and have it respect the… (#170)
* add missing inputs to GenerateCharactger node and have it respect the creator agent setting

Rewire simulation suite to use GenewrateCharacter Node

* address PR 170 review: description passthrough, generation options, docs sync, node tests

* default example dialogue off in the Create Character module, enable it explicitly on the sim suite call

* brace-tolerant template formatting, scene writing style for split-mode descriptions, changelog default clauses

* widen the template format guard to compound fields (AttributeError/TypeError)
2026-07-28 18:55:14 +03:00
veguAI
b7d65f6d9d Card import: keep the card's attributes when attribute extraction produces nothing (#159)
* Card import: keep the card's attributes when attribute extraction produces nothing (#158)

* Simplify the empty-sheet guard and sync the scripting-wrapper contract (PR 159 review)
2026-07-26 20:09:55 +03:00
veguAI
da464bb5b0 Card import: keep the card's description and example dialogue when generation fails (#156)
* Card import: keep the card's description and example dialogue when generation fails (#154)

* Document the empty-description contract and scope the import fallback note (PR 156 review)

* Scope the import fallback admonition title and link Fast Character Generation (PR 156 review round 2)
2026-07-26 11:24:30 +03:00
veguAI
25d038e8c9 Character creation refactor: unified flow + Fast mode (#138) (#139)
* feat(creator): consolidated character generation (Fast mode) with per-aspect orchestrator

* test(creator): consolidated generation unit + baseline template tests; strict anchor extraction for one-shot misses

* feat(director): persist_character unified flow - Fast mode branch, generate=False manual mode, pre-generated field params

* feat(load): route card import AI extraction through creator consolidated generation in Fast mode

* feat(nodes): add agents/creator/GenerateCharacter node; PersistCharacter accepts pre-generated fields

* refactor: remove deprecated WorldStateManager.create_character path; world editor manual creation uses persist_character

* docs: changelog entries + creator settings docs for Fast character creation

* fix(creator): parse consolidated response by section boundaries - real models write open sections without closing tags

* fix(creator): drop bare name/header lines from consolidated example dialogue

* fix: address PR #139 review - node chain description passthrough, manual-mode template gate, shared attribute parser, fast import error tolerance

* fix: address PR #139 review round 2 - late-name renormalization guard, speaker-drop heuristics, cancellation propagation, universal name guard

* feat(creator): one-shot token budget setting (1024-8192, default 4096) for Fast character creation

* feat: consolidate attribute templates into the one-shot + review round 3 fixes (strict extraction, mixin action, name guards)

* fix: address PR #139 review round 4 - conditional template fold, augment folding, response-budget-aware context reservation, budget clamping

* fix: address PR #139 review round 5 - augment in fill-miss fallback, fold eligibility vs Consolidate set, clamped history budget, fold precondition docs

* fix: clamp one-shot response budget to client context so history + overhead + response always fit

* fix: address PR #139 review round 7 - docs-index entries for Character Creation pages, response-budget docstring bound

* fix: template fold works with name determination (placeholder formatting); consolidate_templates becomes an 'Attribute templates' entry in the Consolidate flags

* test: re-level character-creation test mocking to the client-response layer (#140) (#144)

* feat(creator): richer one-shot instructions ported from standalone prompts; quick toggle for Fast mode

* feat(creator): label fast mode 'Fast Character Generation' for the quick toggle

* fix: propagate GenerationCancelled in split-mode card import helpers (#142) (#145)

* refactor: decompose the character-generation flow (#141) (#146)

* refactor(creator,director): decompose the character-generation flow (#141)

* refactor(creator,director): pydantic request models; generate_character_unified takes the request object (#141)

* refactor(creator,director): address PR #146 review - sheet visibility, node None-name guard, request hardening (#141)

* refactor(creator,director): PR #146 round 2 - completion status parity, enforcement ordering, test pins (#141)

* refactor(director): PR #146 round 3 - completion status placement, cap pins (#141)

* fix: address PR #139 review - fold placeholder gated on determine_name, cancel propagation in card import pipeline, dedupe fast/split orchestration, orchestrator-side character detach, docs for Attribute templates fold

* fix: address PR #139 review round 2 - sheet prompt gets pre-creation description via explicit context character, detach field-fidelity coverage, aspect type annotations, Fast Character Generation naming, extraction polish

* fix: address PR #139 review round 3 - uniform context-character rendering in sheet prompt (skip_characters), augment detour comment restated, Consolidate description rename, test state/fidelity gaps

* refactor: move StrictAnchorExtractor to talemate.prompts.response with the other extractors (PR #139 review)

* feat(creator): default Consolidate to every aspect incl. example dialogue

* feat(creator): render writing style instructions in the consolidated character generation prompt; reword Fast Character Generation description (no upper request limit, less detail as failure mode)

* fix: address PR #139 review round 6 - example dialogue guidance reaches the consolidated one-shot, extractor docstring + unit tests, dialogue_examples event caveats, writing-style docs, changelog accuracy
2026-07-25 13:17:11 +03:00
veguAI
f38d330ba1 Fix node code bugs surfaced by the docstring audit (#115) (#122)
* fix: node code bugs from docstring audit (#115) - runtime crashes, phantom/duplicate sockets, registry typo aliases, property default mismatches

* fix: address PR #122 review - register template scene types on intent_state, StageExit node_state_pop, annotations, shared graph-test helpers, migration round-trip test

* docs: correct the circular-import chain named in apply_to_scene's deferral comment

* fix: SetScenePhase defaults to the shipped roleplay scene type instead of an empty string that errors on run
2026-07-20 17:28:56 +03:00
veguAI
89e01ac138 Node editor node reference glossary (#107) (#111)
* docs: complete node editor node reference glossary (#107) - generated by new nodes.tools glossary subcommand, 47 categorized pages covering all 403 nodes, docstring gap fixes, help-agent docs-index entries

* docs: fix Jinja2 Format discoverability - document dynamic-input template variables, move node to string page, link key inference from dynamic-input notes, strip links from index summaries

* help agent: keep node reference out of the chat prompt - collapse glossary entries to one pointer line (~19k chars saved), agent retrieves node info via search_docs/read_doc tool calls

* help agent: replace in-prompt docs index with find_docs lookup tool - prompt carries a 13-line section overview (~1.5k chars vs ~66k), pages located via keyword-scored find_docs at runtime

* changelog: help agent prompt slimming + find_docs lookup

* docs: sort node reference index and nav alphabetically by page title

* review: move module constants into top-of-file constant blocks (glossary MAX_DEFAULT_LENGTH; docs SECTION_DESCRIPTIONS, _FIND_STOPWORDS, FIND_DOCS_LIMIT)

* review: word-boundary find_docs scoring with plural/-ing folds, find_docs+section_overview unit tests, jinja2 template field description override

* docs: help agent overview no longer claims an in-prompt index of all documentation pages

* docs: full node docstring audit pass - 335 classes audited by 5 agents, ~89 accuracy fixes (nonexistent/misnamed sockets, wrong behavior claims), ~94 expansions, 5 factually-wrong PropertyField descriptions corrected, glossary regenerated
2026-07-20 01:49:33 +03:00
veguAI
5f0ddc919e Node-graph event signals for 0.39.0 features (#76) (#78)
* Add node-graph event signals for 0.39.0 features: visual prompt finalization, creator dialogue examples, help chat, scene asset lifecycle (#76)

* review: fire scene.backdrop_changed when backdrop asset is deleted; suppress no-op backdrop updates (#78)
2026-07-06 14:32:43 +03:00
veguAI
f5d41c04c8 0.37.0 (#267)
0.37.0

- **Director Planning** — Multi-step todo lists in director chat plus a Generate long progress action for multi-beat scene arcs.
- **Auto Narration** — Unified auto-narration replacing the old Narrate after Dialogue toggle, with a chance slider and weighted action mix.
- **LLM Prompt Templates Manager** — Dedicated UI tab for viewing, creating, editing, and deleting prompt templates.
- **Character Folders** — Collapsible folders in the World Editor character list, synced across linked scenes.
- **OpenAI Compatible TTS** — Connect any number of OpenAI-compatible TTS servers in parallel.
- **KoboldCpp TTS Auto-Setup** — KoboldCpp clients with a TTS model loaded register themselves as a TTS backend.
- **Model Testing Harness** — Bundled scene that runs basic capability tests against any connected LLM.

Plus 27 improvements and 28 bug fixes
2026-05-12 21:01:51 +03:00
veguAI
61d01984ba 0.30.0 (#184)
* pytorch update

* github workflow for tests

* tests set up config

* tests download nltk punkt

* punkt_tab

* fix world state not updating on new initial  scene load

* fix new character creation from scene tools

* py 312 py 313 support
remove unreliant cuda detection and just lock poetry with cuda

* fix tests

* dont auto install cuda

* remove unused StrEnum import

* separate cuda install

* fix auto progress OFF no longer working

* fix debug logging options not sticking

* disable revision during image prompt generation

* prompt tweaks

* prompt tweaks

* fix some issues with directed character creation

* tweak the continue generation button so its less prone to pop into a new line on itsown

* fix context db filter field layout

* handle error when trying to regnerate passthrough narrator message

* prompt tweaks

* increase auto direct evaluation length

* fix node library on windows

* auto direct eval tweaks

* prompt tweaks

* prompt tweaks

* allow updationg of scene phase through director console

* add generate action to director console phase intent text fields

* prompt tweaks

* track iteration count in scene loop
always yield to user at initial start / load of a scene

* fix issue with Split and Join nodes when passed \n as delimiter

* sim suite only generate auto direct requirements if auto direct is enabled
sim suite fix issues with title generation

* autocomplete button disable until there is text to autcomplete

* update installation docs

* update scenario tools docs

* docs

* writing style phrase detection

* typo

* docs

* fix issue where deleting an applied preset group would prevent selection of a different preset group in the affected client

* fix @-Instruction is broken when using apostrophes

* editor never attempt to fix exposition on user input if input starts with command characters @, ! or /

* prompt tweaks

* editor revision: automatic revision setting, prompt tweaks, docs

* missing files

* fix issue where narration responses starting with # would result in empty messages

* prompt tweaks

* fix issue with autocomplete not working at the beginning of a scene

* fix issues where cached guidance would result in no guidance

* editor revision analysis now has access to scene analysis and director guidance if it exists

* fix issue where all nodes in the node editor would be locked on winsows OS

* add `scene/SetIntroducation` node

* fix issue where generating narration in a scene with zero characters would always come back blank

* SceneIntroduction node state output fixed

* node editor docs progress

* fix issue with loading scene from file upload no longer working

* better handling of what to do when there are no characters in a scene and no default character is defined

* typo

* silence trigger game loop debug message

* docs

* GenerateThematicList node

* docs

* docs

* stubs

* allow creation of module from existing nodes

* move function into plugin

* separate graph export functions into own .js file

* group from selected nodes

* remove debug output

* tweak create module dialog

* docs

* docs

* graph tests need to assume auto_progres True

* add ModuleProperty node

* fix some issues in the module creation modal when extending or copying a module

* include module name in module deletion confirm dialog

* fix node module copy not setting updated registry

* module property name output

* docs

* docs

* initializing a scene from a character card will no longer break the node editor

* docs

* when greeting text and intro do not match, do the greeting text first.

* intro is set during card import, there is no need to ever emit character greetings in addition to the intro, its not really something that matches talemate's design philsophy at this point

* docs

* dynamic premise modules

* tweaks

* propagate module level property defaults to node

* docs

* fix issue where the default character would get added to scenes during load even though there already was a player character

* prompt tweaks

* tweaks to generate-premise module

* docs

* infinity quest dynamic story v2

* tweaks limits

* fix line endings

* prompt tweaks

* fix some issues with node property editing

* formatting

* prompt tweaks

* group and comment

* add talemate tint node style
fix gap in nodes when there are no sockets

* node style fixes

* docs

* docs

* icon for swtich nodes

* conditional emit status node

* don't reset dynamic premise

* dynamic premise tweaks

* dynamic premis status messages

* fix issue with Input value error node

* validate that topic is specified

* fix issue where cancelling a generation triggered during scene loop init would cause the loop to reinitialize

* docs

* node error handling improvements

* docs

* better error handling in generate premise module

* a connected socket should always override a property of the same value even if the socket connection is not resolved

* dynamic premise expose intro length property

* fix some issues with node module creation and add registry path validation

* correctly title creative loop module so it can be copied

* remove debug message

* rename to dynamic storyline for clarity and so it doesn't collide with tutorial

* import dynanimc storyline node

* docs

* gracefully handle a node missing during graph load

* docs

* make agent list a bit more compact

* disable node property editing in inherited nodes

* rename editor revision events so they are inline with the other agent events

* support instruction injection for director.generate_choices action

* normalize dynamic instructions

* fix director guidance dynamic instructions

* docs

* generate choices event add choices property

* prompt tweaks

* add dynamic instruction node

* prompt tweak

* fix issue where some events could not be hooked into through event node modules

* docs

* clean response node

* docs

* docs

* docs

* module library tweaks

* fix some issues with act-as selection

* dont allow creation of new modules until scene has been saved at least once

* public node modules dir

* sim suite module styles

* remove debug messages

* fix default node titles

* fix number input vlaidation in math nodes

* context awareness in  contextual generate now includes character info

* fix dupe id warnings

* alt drag to clone multiple nodes

* alt drag to clone multiple nodes

* docs

* docs

* fix issue where some scene modules could leak across scenes

* dynamic instructions already included through extra context

* prompt tweaks

* update defaults

* docs

* make list init from json

* socs

* fix issue where not all field definitions would get sent

* docs

* fix issue causing deep analysis to loop

* case insentive regex matching

* prompt tweaks

* fix node title

* fix size issue in scene view when node editor was open on smaller resolutions

* fix issue with autocomplete sometime loosing markup

* add claude 4

* make director guidance and actor instructions available to autocomplete prompt

* fix trim node handling of \n

* extract node

* extract node trim property

* remover cruft

* charactermessage node only set character if not already part of message prefix

* editor revision unslop mode

* fix search scenes showing node module files

* prompt tweaks

* unslop support unwanted phrase detection

* define bad_prose

* </FIX> seems to get ommitted a lot so lets handle it

* cleanup

* return on no issues

* fix some issues with character creation

* fix some character creation issues

* prompt tweaks

* contewxtual generate and autocomplete signals added

* prefix revision_

* use uuidv4 which is already installed and doesnt come with compatibility issues

* editor revision support for contextual generations
normalize some event objects

* add template picker to worldstate character creation interface

* prompt tweaks

* dont unslop scene intent or story intent generation

* prompt tweaks

* prompt tweaks

* prompt tweaks

* prompt tweaks

* prompt tweaks

* prompt tweaks

* prompt tweaks

* prompt tweaks

* prompt tweaks

* prompt tweaks

* fix issue of conversation losing edits through signals

* support revisions for world state entry generation

* task_instructions

* dont show rewrite specific options if unslop method is selected

* docs

* fix issue with setting locked save file when auto saving was turned on

* don't trigger player_turn_start in creative mode

* better check for when to fire player_turn_start and when not

* node editor crash course fixes

* docs

* fix issue where sometimes wrong system prompt was selected

* add world context to contextual generate node

* fix node dragging issue when cloning multiple nodes

* support editor revision for summarization generation

* summarization support dynamic instructions

* dedicated template for summary unslop

* pass summarization_history to template vars

* prompt tweaks

* prompt tweaks

* not sure how this got blanked

* wording

* wording

* only display debug log if TALEMATE_DEBUG=1

* fix syntax

* fix syntax

* remove unused cruft

* start-debug

* log message cleanup

* docs

* tweak defaults

* sim suite polish

* remove unused images

* add writing style instructions to revision prompts

* missing endif tag

* prompt tweaks

* prompt tweaks

* prompt tweaks

* use app-busy

* prompt tweaks

* update readme and screenshots

wording

wording

* add discord link
2025-06-03 12:26:12 +03:00