sam-coder-cli 2.0.2 → 2.0.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.
Files changed (2) hide show
  1. package/bin/agi-cli.js +9 -0
  2. package/package.json +1 -1
package/bin/agi-cli.js CHANGED
@@ -1794,6 +1794,7 @@ async function start() {
1794
1794
  ui.showResponse(`\nStarting in ${modeNames[selectedMode]} mode...\n`);
1795
1795
 
1796
1796
  await chat(rl, selectedMode, MODEL);
1797
+ process.exit(0);
1797
1798
  } catch (error) {
1798
1799
  ui.showError(error);
1799
1800
  rl.close();
@@ -1801,4 +1802,12 @@ async function start() {
1801
1802
  }
1802
1803
  }
1803
1804
 
1805
+ // Keep the process alive and handle uncaught errors
1806
+ process.on('uncaughtException', (err) => {
1807
+ console.error('Uncaught Exception:', err.message);
1808
+ });
1809
+ process.on('unhandledRejection', (reason) => {
1810
+ console.error('Unhandled Rejection:', reason);
1811
+ });
1812
+
1804
1813
  start().catch(console.error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sam-coder-cli",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "SAM-CODER: An animated command-line AI assistant with agency capabilities, brainstorm framework, and engineer mode.",
5
5
  "main": "bin/agi-cli.js",
6
6
  "bin": {