From 73291f310c87b1586f765ae7be2a15c62fc2339b Mon Sep 17 00:00:00 2001 From: Chris Dumas Date: Wed, 26 Aug 2026 19:48:52 +0000 Subject: [PATCH] Simplify beat prompt directive helpers --- dumas_h3_beat_prompt.py | 3 ++- js/h3_beat_prompt/index.js | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dumas_h3_beat_prompt.py b/dumas_h3_beat_prompt.py index 7d6bd38..c0a3253 100644 --- a/dumas_h3_beat_prompt.py +++ b/dumas_h3_beat_prompt.py @@ -47,7 +47,8 @@ def _assemble_beat_prompt(state): class DumasH3BeatPromptNode: DESCRIPTION = ( "Build a MiniMax H3 prompt from one textbox per beat, with a front-end beat " - "editor that can append directive examples such as wardrobe, seconds, exit, and music." + "editor that can append directive examples such as wardrobe set/add/remove, " + "seconds, exit, and music." ) RETURN_TYPES = ("STRING",) RETURN_NAMES = ("prompt",) diff --git a/js/h3_beat_prompt/index.js b/js/h3_beat_prompt/index.js index ac54176..22ac23d 100644 --- a/js/h3_beat_prompt/index.js +++ b/js/h3_beat_prompt/index.js @@ -9,9 +9,10 @@ const DEFAULT_H = 340; const DEFAULT_BEAT = "Describe this beat."; const STATE_PROPERTY = "dumas_h3_beat_prompt_state"; const DIRECTIVE_EXAMPLES = [ - ["wardrobe", "wardrobe: Maya = grey shorts, red jacket"], + ["wardrobe set", "wardrobe: Maya = grey shorts, red jacket"], + ["wardrobe add", "wardrobe: Maya += red jacket"], + ["wardrobe remove", "wardrobe: Maya -= red jacket"], ["seconds", "seconds: 8"], - ["duration", "duration: 8 seconds"], ["exit", "exit: Maya"], ["enter", "enter: Jon"], ["overall_soundscape", "overall_soundscape: soft rain, distant traffic"], @@ -287,7 +288,7 @@ function setupNode(node) { title.textContent = "Beat Prompt Builder"; const subtitle = document.createElement("div"); subtitle.className = "dh3bp-subtitle"; - subtitle.textContent = "One textbox per H3 beat. Buttons append directive examples into that beat."; + subtitle.textContent = "One textbox per H3 beat. Use the buttons for seconds and quick wardrobe set/add/remove syntax."; titleWrap.append(title, subtitle); const addButton = document.createElement("button");