sam-coder-cli 1.0.39 → 1.0.40

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.
Files changed (2) hide show
  1. package/bin/ai-team.js +3 -0
  2. package/package.json +1 -1
package/bin/ai-team.js CHANGED
@@ -39,6 +39,7 @@ Respond in markdown format with clear sections for each part of your response.`;
39
39
 
40
40
  class AITeam {
41
41
  constructor(options = {}) {
42
+ const MultiplayerClient = getMultiplayerClient();
42
43
  this.client = new MultiplayerClient({
43
44
  name: options.name || `Agent-${uuidv4().substr(0, 4)}`,
44
45
  role: options.role || 'DEVELOPER',
@@ -141,6 +142,7 @@ class AITeam {
141
142
  this.conversation.push({ role: 'user', content: input });
142
143
 
143
144
  // Get AI response
145
+ const callOpenRouter = getCallOpenRouter();
144
146
  const response = await callOpenRouter(this.conversation, this.client.model);
145
147
  const aiMessage = response.choices[0].message;
146
148
 
@@ -187,6 +189,7 @@ class AITeam {
187
189
  console.log(chalk.blue(`\nšŸ“Œ Task received: ${task.description}`));
188
190
 
189
191
  // Process the task using the AGI-CLI's tool calling system
192
+ const callOpenRouter = getCallOpenRouter();
190
193
  const response = await callOpenRouter([
191
194
  { role: 'system', content: `You are an AI assistant working on a task: ${task.description}` },
192
195
  { role: 'user', content: 'Please complete this task step by step.' }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sam-coder-cli",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "SAM-CODER: An animated command-line AI assistant with agency capabilities.",
5
5
  "main": "bin/agi-cli.js",
6
6
  "bin": {