sam-coder-cli 1.0.38 → 1.0.39
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/ai-team.js +18 -2
- package/package.json +1 -1
package/bin/ai-team.js
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// Import dependencies at runtime to avoid circular dependencies
|
|
2
|
+
let callOpenRouter;
|
|
3
|
+
let MultiplayerClient;
|
|
3
4
|
const readline = require('readline');
|
|
4
5
|
const chalk = require('chalk');
|
|
5
6
|
const { v4: uuidv4 } = require('uuid');
|
|
6
7
|
|
|
8
|
+
// Lazy load dependencies to avoid circular dependencies
|
|
9
|
+
function getCallOpenRouter() {
|
|
10
|
+
if (!callOpenRouter) {
|
|
11
|
+
callOpenRouter = require('./agi-cli').callOpenRouter;
|
|
12
|
+
}
|
|
13
|
+
return callOpenRouter;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function getMultiplayerClient() {
|
|
17
|
+
if (!MultiplayerClient) {
|
|
18
|
+
MultiplayerClient = require('./multiplayer-client').MultiplayerClient;
|
|
19
|
+
}
|
|
20
|
+
return MultiplayerClient;
|
|
21
|
+
}
|
|
22
|
+
|
|
7
23
|
// System prompt for AI team collaboration
|
|
8
24
|
const TEAM_COLLABORATION_PROMPT = `You are an AI team facilitator that helps coordinate multiple AI agents working together on a project.
|
|
9
25
|
|