sam-coder-cli 1.0.42 ā 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.
- package/bin/agi-cli.js +7 -77
- package/package.json +2 -8
- package/MULTIPLAYER.md +0 -112
- package/bin/ai-collaboration.js +0 -175
- package/bin/ai-team.js +0 -228
- package/bin/collaborate.js +0 -48
- package/bin/multiplayer-client.js +0 -896
- package/bin/multiplayer-mode.js +0 -276
- package/bin/multiplayer-server.js +0 -372
package/bin/collaborate.js
DELETED
|
@@ -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
|
-
});
|