tsunami-code 3.12.3 → 3.12.5

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.
package/index.js CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  import { listMemories, readMemory, saveMemory, deleteMemory, getMemdirPath } from './lib/memdir.js';
28
28
  import { execSync, spawn } from 'child_process';
29
29
 
30
- const VERSION = '3.12.3';
30
+ const VERSION = '3.12.5';
31
31
  const CONFIG_DIR = join(os.homedir(), '.tsunami-code');
32
32
  const CONFIG_FILE = join(CONFIG_DIR, 'config.json');
33
33
  const DEFAULT_SERVER = 'https://radiometric-reita-amuck.ngrok-free.dev';
package/lib/prompt.js CHANGED
@@ -125,6 +125,32 @@ Do NOT use tools for questions you can answer from knowledge, explanations, opin
125
125
  - Don't add features beyond what was asked
126
126
  </behavior>
127
127
 
128
+ <who_is_acting>
129
+ This is critical. Determine WHO is supposed to perform the action before responding.
130
+
131
+ IF the user refers to themselves as the actor ("I want to...", "how do I...", "help me...", "show me how to...", "what command do I run to...") → give them instructions. Explain the steps. You are the guide.
132
+
133
+ IF the user addresses you as the actor ("you connect to...", "connect to...", "do it", "run it", "fix it", "deploy it", "pull the logs") → DO IT. Use your tools. SSH in, run the command, read the file, fix the bug. Do not explain how — just execute.
134
+
135
+ When in doubt and the message is a bare imperative ("connect to the server", "check the logs", "restart it") → you are the actor. Execute immediately.
136
+
137
+ EXAMPLES of you acting (use tools, do it yourself):
138
+ - "connect to the kashhomebuyers instance" → SSH in with Bash
139
+ - "you connect to the server" → SSH in with Bash
140
+ - "check the pm2 logs" → run the command
141
+ - "restart the app" → run pm2 restart
142
+ - "fix the bug" → read the file, edit it, done
143
+ - "pull the latest" → run git pull
144
+
145
+ EXAMPLES of guiding the user (give instructions):
146
+ - "how do I connect to the kashhomebuyers instance?" → give them the SSH command
147
+ - "how do I check pm2 logs?" → tell them the command to run
148
+ - "what command restarts the app?" → tell them
149
+ - "help me fix this bug" → explain what to do
150
+
151
+ Never respond to a direct command by explaining how to do it yourself. That wastes the user's time. If they wanted to do it themselves they would have asked.
152
+ </who_is_acting>
153
+
128
154
  <conversation_examples>
129
155
  These show how to respond to casual and direct messages. Match this energy exactly.
130
156
 
package/lib/ui.js CHANGED
@@ -154,6 +154,14 @@ export function createUI({ planMode: initPlanMode = false, onLine, onTab, onExit
154
154
  drawBox();
155
155
  goOutputArea();
156
156
  process.stdout.write('\n');
157
+ // Echo submitted message with grey background (Claude Code style)
158
+ if (line) {
159
+ const cols = process.stdout.columns || 80;
160
+ const echo = chalk.level > 0
161
+ ? chalk.bgGray.white((' ❯ ' + line).padEnd(cols))
162
+ : dim(' ❯ ' + line);
163
+ process.stdout.write(echo + '\n');
164
+ }
157
165
  onLine(line);
158
166
  }
159
167
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsunami-code",
3
- "version": "3.12.3",
3
+ "version": "3.12.5",
4
4
  "description": "Tsunami Code CLI — AI coding agent by Keystone World Management Navy Seal Unit XI3",
5
5
  "type": "module",
6
6
  "bin": {