sam-coder-cli 1.0.12 → 1.0.13
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 +9 -0
- package/package.json +3 -2
package/bin/agi-cli.js
CHANGED
|
@@ -750,6 +750,15 @@ async function start() {
|
|
|
750
750
|
output: process.stdout
|
|
751
751
|
});
|
|
752
752
|
|
|
753
|
+
// Check for server mode
|
|
754
|
+
if (process.argv.includes('--server')) {
|
|
755
|
+
const MultiplayerServer = require('./multiplayer-server');
|
|
756
|
+
const server = new MultiplayerServer(8080);
|
|
757
|
+
server.start();
|
|
758
|
+
console.log('Multiplayer server started on ws://localhost:8080');
|
|
759
|
+
return;
|
|
760
|
+
}
|
|
761
|
+
|
|
753
762
|
try {
|
|
754
763
|
let config = await readConfig();
|
|
755
764
|
if (!config || !config.OPENROUTER_API_KEY) {
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sam-coder-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "SAM-CODER: An animated command-line AI assistant with agency capabilities.",
|
|
5
5
|
"main": "bin/agi-cli.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"sam-coder": "bin/agi-cli.js"
|
|
7
|
+
"sam-coder": "bin/agi-cli.js",
|
|
8
|
+
"sam-coder-server": "bin/agi-cli.js --server"
|
|
8
9
|
},
|
|
9
10
|
"scripts": {
|
|
10
11
|
"start": "node ./bin/agi-cli.js"
|