caroushell 0.1.2 → 0.1.3

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/dist/app.js CHANGED
@@ -151,8 +151,8 @@ class App {
151
151
  this.terminal.write("\n");
152
152
  this.keyboard.pause();
153
153
  try {
154
- const success = await (0, spawner_1.runUserCommand)(cmd);
155
- if (success) {
154
+ const storeInHistory = await (0, spawner_1.runUserCommand)(cmd);
155
+ if (storeInHistory) {
156
156
  await this.history.add(cmd);
157
157
  }
158
158
  }
package/dist/spawner.js CHANGED
@@ -61,5 +61,7 @@ async function runUserCommand(command) {
61
61
  proc.on("error", reject);
62
62
  proc.on("close", () => resolve());
63
63
  });
64
- return proc.exitCode === 0;
64
+ // Why save failed commands? Well eg sometimes we want to run a test
65
+ // many times until we fix it.
66
+ return true;
65
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "caroushell",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Terminal carousel that suggests commands from history, config, and AI.",
5
5
  "type": "commonjs",
6
6
  "main": "dist/main.js",