feat: GM Workbench read-aloud description generator (#141) #219
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/141-description-generator"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First generic-path GM Workbench tool, and the reusable result-landing action bar the next five generators reuse.
What
descriptiongenerator — read-aloud one-liner + paragraph, tone-aware, optionally grounded in a picked lore entry. Runs through the genericPOST …/workbench/{tool_id}/generateengine (#136), persisting aGenerationResult(#138).WorkbenchResultActions(reusable) — the result-landing bar every later tool reuses:{entry_type, title, body}output.POST /lore/{entry_id}/append-draftcreates a READY review draft (no LLM call) seeded withexisting body + text, reviewable/editable/approvable inWikiDraftReview. GM-only, one draft per entry (409 otherwise).params, so entry-scoped tools can fold the picked lore entry into the prompt.Verification (Docker)
test_workbench_description.py)ruff check+ruff format --checkclean; eslint 0 errorsNotes
get_current_useroverride collision (requesting bothgm_client+player_clientin one test) — reseeded the entry viadband droppedgm_client; and the clipboard spy is now installed afteruserEvent.setup()(which attaches its own clipboard stub) viadefineProperty(jsdom'snavigator.clipboardis getter-only).BOT_CONTRACT_VERSIONbump.Closes #141.
First generic-path GM Workbench tool. Adds the `description` generator (read-aloud one-liner + paragraph, tone-aware, optionally grounded in a lore entry) plus the reusable result-landing actions every later generator reuses: - Save as lore entry (reuses the lore-create endpoint) - Append to entry — POST /lore/{entry_id}/append-draft creates a READY review draft (no LLM call) reviewable/approvable in the wiki draft rail; GM-only, one draft per entry - Copy to clipboard Threads generation params into the context builders so entry-scoped tools can fold the picked lore entry into the prompt. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>