0agent 1.0.57 → 1.0.58

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.
Files changed (2) hide show
  1. package/bin/chat.js +4 -3
  2. package/package.json +1 -1
package/bin/chat.js CHANGED
@@ -1181,9 +1181,11 @@ emitKeypressEvents(process.stdin, rl);
1181
1181
  process.stdin.on('keypress', (_char, key) => {
1182
1182
  if (!key || _paletteOpen) return;
1183
1183
  if (key.name === 'escape' && pendingResolve) {
1184
- // Cancel the running session cleanly
1185
- process.stdout.write(`\r\x1b[2K\n ${fmt(C.yellow, '↩')} Cancelled\n`);
1186
1184
  spinner.stop();
1185
+ process.stdout.write(`\r\x1b[2K`);
1186
+ process.stdout.write(`\n ${fmt(C.yellow, '⏹')} ${fmt(C.bold, 'Task stopped.')} All background processes killed.\n`);
1187
+ process.stdout.write(` ${fmt(C.dim, 'Send a new message to start fresh.')}\n\n`);
1188
+
1187
1189
  if (sessionId) {
1188
1190
  fetch(`${BASE_URL}/api/sessions/${sessionId}`, { method: 'DELETE' }).catch(() => {});
1189
1191
  }
@@ -1195,7 +1197,6 @@ process.stdin.on('keypress', (_char, key) => {
1195
1197
  messageQueue.length = 0;
1196
1198
 
1197
1199
  // Kill any OS-level processes spawned by GUI/shell capabilities
1198
- // (python3 GUI scripts, bash subprocesses) so nothing keeps running
1199
1200
  import('node:child_process').then(({ execSync: _exec }) => {
1200
1201
  try { _exec('pkill -f "0agent_gui_" 2>/dev/null; pkill -f "0agent-bg-" 2>/dev/null; true', { stdio: 'ignore' }); } catch {}
1201
1202
  }).catch(() => {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "0agent",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "description": "A persistent, learning AI agent that runs on your machine. An agent that learns.",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",