@itsaplan/runner 0.5.1 → 0.5.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.
Files changed (2) hide show
  1. package/dist/cli.js +4 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -473,7 +473,10 @@ class UsageReader {
473
473
  }
474
474
  }
475
475
  function tail(text, limit) {
476
- return text.length <= limit ? text : `…${text.slice(-limit)}`;
476
+ if (text.length <= limit)
477
+ return text;
478
+ const mark = "…";
479
+ return mark + text.slice(-(limit - mark.length));
477
480
  }
478
481
  function textOfResult(content) {
479
482
  if (typeof content === "string")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itsaplan/runner",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Runs an Itsaplan external agent's queued tasks and answers its chat on your own machine",
5
5
  "keywords": [
6
6
  "itsaplan",