@windyroad/voice-tone 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -145,5 +145,5 @@
145
145
  }
146
146
  },
147
147
  "name": "wr-voice-tone",
148
- "version": "0.9.0"
148
+ "version": "0.9.1"
149
149
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wr-voice-tone",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Voice, tone, and external-communications governance",
5
5
  "author": {
6
6
  "name": "Windy Road Technology",
package/README.md CHANGED
@@ -37,7 +37,7 @@ This examines your existing content and asks about your brand voice, target audi
37
37
 
38
38
  ### Assistant responses
39
39
 
40
- Run `/wr-voice-tone:update-assistant-guide` to create or update `docs/ASSISTANT-VOICE-AND-TONE.md`. The file's existence is the only enablement switch. Its prose may describe plain-language standards such as ISO 24495-1:2023 or ASD-STE100, or creative voice traits. The same assistant applies the guide and performs one semantic self-review before stopping; this adds one continuation's latency and token use, and some runtimes may briefly show the first response before its correction.
40
+ Run `/wr-voice-tone:update-assistant-guide` to create or update `docs/ASSISTANT-VOICE-AND-TONE.md`. The file's existence is the only enablement switch. Its prose may describe plain-language standards such as ISO 24495-1:2023 or ASD-STE100, or creative voice traits. Before stopping, the same assistant always rewrites its response in full and makes the requested voice unmistakable. This adds one continuation's latency and token use, and some runtimes may briefly show the first response before its replacement.
41
41
 
42
42
  This supports the plugin's Claude Code and Codex command-hook runtimes, not ordinary web ChatGPT conversations. Standards references express alignment, not certification.
43
43
 
@@ -48,7 +48,7 @@ This supports the plugin's Claude Code and Codex command-hook runtimes, not ordi
48
48
  | `voice-tone-eval.sh` | Every prompt | Evaluates copy work and injects an opted-in assistant-response guide |
49
49
  | `voice-tone-enforce-edit.sh` | Edit or Write | Blocks edits until the voice-tone agent has reviewed |
50
50
  | `voice-tone-mark-reviewed.sh` | Agent completes | Marks the review as done (TTL: 3600s) |
51
- | `assistant-voice-tone-stop.sh` | Response stop | Requests one guarded semantic self-review when the assistant guide exists |
51
+ | `assistant-voice-tone-stop.sh` | Response stop | Requests one guarded, complete replacement when the assistant guide exists |
52
52
 
53
53
  ## Agent
54
54
 
@@ -13,7 +13,7 @@ STOP_HOOK_ACTIVE=$(printf '%s' "$INPUT" | jq -r '.stop_hook_active // false' 2>/
13
13
  LAST_ASSISTANT_MESSAGE=$(printf '%s' "$INPUT" | jq -r '.last_assistant_message // empty' 2>/dev/null || echo "")
14
14
  [ -n "$LAST_ASSISTANT_MESSAGE" ] || exit 0
15
15
 
16
- jq -n --arg reason 'Review your previous response semantically against docs/ASSISTANT-VOICE-AND-TONE.md. If the response does not align, emit one complete corrected final response in the requested voice and tone. If no correction is needed, finish without adding user-facing commentary. Do not claim standards certification; claim alignment only when relevant.' '{
16
+ jq -n --arg reason 'Read docs/ASSISTANT-VOICE-AND-TONE.md and rewrite your previous response as one complete final response. Preserve its meaning, but make the voice requested by the guide unmistakable rather than merely acceptable. Always emit the complete replacement response, even when the previous response already aligns. Never return an empty response, a verdict, or review commentary. Do not claim standards certification; claim alignment only when relevant.' '{
17
17
  decision: "block",
18
18
  reason: $reason
19
19
  }'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/voice-tone",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Voice and tone enforcement for user-facing copy",
5
5
  "bin": {
6
6
  "windyroad-voice-tone": "./bin/install.mjs"