sam-coder-cli 1.0.43 → 1.0.44

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.
@@ -1,48 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const AICollaboration = require('./ai-collaboration');
4
- const readline = require('readline');
5
- const chalk = require('chalk');
6
-
7
- // Create readline interface
8
- const rl = readline.createInterface({
9
- input: process.stdin,
10
- output: process.stdout
11
- });
12
-
13
- // Parse command line arguments
14
- const args = process.argv.slice(2);
15
- const sessionId = args[0];
16
- const role = args[1]?.toUpperCase() || 'DEVELOPER';
17
-
18
- console.log(chalk.cyan('\nšŸ¤– AI Team Collaboration šŸ¤–'));
19
- console.log(chalk.cyan('==========================\n'));
20
-
21
- // Get user's name
22
- rl.question('Enter your name (or press Enter for a random one): ', (name) => {
23
- // Create AI collaboration instance
24
- const aiCollab = new AICollaboration({
25
- name: name.trim() || undefined,
26
- role: role,
27
- rl: rl
28
- });
29
-
30
- // Handle Ctrl+C to exit gracefully
31
- process.on('SIGINT', () => {
32
- console.log('\nšŸ‘‹ Disconnecting...');
33
- process.exit(0);
34
- });
35
-
36
- // Start the collaboration
37
- aiCollab.start(sessionId).catch(error => {
38
- console.error(chalk.red('Error:'), error.message);
39
- process.exit(1);
40
- });
41
-
42
- // Listen for chat messages
43
- rl.on('line', (input) => {
44
- if (input.trim()) {
45
- aiCollab.sendChatMessage(input.trim());
46
- }
47
- });
48
- });