@castari/cli 0.0.1 → 0.0.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.
@@ -78,6 +78,14 @@ export async function start(options) {
78
78
  console.error(chalk.red('Error:'), msg.error);
79
79
  }
80
80
  });
81
+ // Add signal handlers for graceful shutdown
82
+ const cleanup = async () => {
83
+ console.log(chalk.yellow('\nšŸ›‘ Shutting down...'));
84
+ await client.stop({ delete: true });
85
+ process.exit(0);
86
+ };
87
+ process.on('SIGINT', cleanup);
88
+ process.on('SIGTERM', cleanup);
81
89
  }
82
90
  catch (err) {
83
91
  console.error(chalk.red('Failed to start agent:'), err.message || err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@castari/cli",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "castari": "./dist/index.js"
@@ -22,7 +22,7 @@
22
22
  "chalk": "^5.3.0",
23
23
  "dotenv": "^16.3.1",
24
24
  "@daytonaio/sdk": "^0.115.2",
25
- "@castari/sdk": "^0.0.1",
25
+ "@castari/sdk": "^0.0.3",
26
26
  "@anthropic-ai/claude-agent-sdk": "^0.1.44"
27
27
  },
28
28
  "devDependencies": {