zames_pro 2.15.0 → 2.15.2

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.
@@ -310,11 +310,15 @@ export async function runAgentLoop({ browser, tools, task, workdir, maxIteration
310
310
  MAX_MALFORMED_RETRIES +
311
311
  ')');
312
312
  }
313
+ const large = String(rawResponse || '').length > 3000;
314
+ const truncHint = large
315
+ ? 'Your call was too long and got cut off. Do NOT resend the same huge call: split it. For a large file use Write with small content_base64 pieces, or write several smaller files. Keep each tool call under about 2000 characters.'
316
+ : 'For example: a small JSON tool-call object';
313
317
  message =
314
318
  'Your previous answer was not recognized as a tool call. ' +
315
319
  'Reply with EXACTLY one JSON tool-call object, no text before or after. ' +
316
320
  'Do NOT use XML/DSML tags — plain JSON only. ' +
317
- 'For example: {"tool": "Read", "args": {"path": "src/index.js"}}';
321
+ truncHint;
318
322
  continue;
319
323
  }
320
324
  const trimmed = (rawResponse || '').trim();
package/dist/input.js CHANGED
@@ -377,8 +377,10 @@ export class LineEditor {
377
377
  _eraseBlock() {
378
378
  if (!this.rendered)
379
379
  return;
380
- if (this.cursorRowFromTop > 0) {
381
- process.stdout.write(ESC + '[' + this.cursorRowFromTop + 'A');
380
+ const rows = process.stdout.rows || 24;
381
+ const up = Math.min(this.cursorRowFromTop, Math.max(0, rows - 1));
382
+ if (up > 0) {
383
+ process.stdout.write(ESC + '[' + up + 'A');
382
384
  }
383
385
  process.stdout.write(CR + ESC + '[J');
384
386
  this.rendered = false;
@@ -432,6 +434,7 @@ export class LineEditor {
432
434
  }
433
435
  // Print a block ABOVE the input line and put the input line back.
434
436
  printAbove(text) {
437
+ this._stopDots();
435
438
  this._eraseBlock();
436
439
  process.stdout.write(String(text) + NL);
437
440
  this._writeBlock();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zames_pro",
3
- "version": "2.15.0",
3
+ "version": "2.15.2",
4
4
  "description": "Terminal coding agent over chat.deepseek.com via Playwright",
5
5
  "type": "module",
6
6
  "bin": {