myuru 0.3.0 → 0.3.1
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/README.md +15 -10
- package/package.json +1 -1
- package/src/lib/agent-runner.js +11 -1
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ myuru status
|
|
|
62
62
|
|---------|-------------|
|
|
63
63
|
| `myuru init` | Initialize project with config |
|
|
64
64
|
| `myuru run --task "..."` | Run agents on a task |
|
|
65
|
-
| `myuru council --topic "..." --agents "..."` | Start council deliberation |
|
|
65
|
+
| `myuru council --topic "..." --agents "..." --model sonnet` | Start council deliberation |
|
|
66
66
|
| `myuru status` | View task progress |
|
|
67
67
|
|
|
68
68
|
## Configuration
|
|
@@ -72,17 +72,22 @@ Set environment variables:
|
|
|
72
72
|
```bash
|
|
73
73
|
export OPENAI_API_KEY="sk-..."
|
|
74
74
|
export ANTHROPIC_API_KEY="sk-ant-..."
|
|
75
|
-
export
|
|
75
|
+
export GEMINI_API_KEY="..."
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
Create
|
|
79
|
-
|
|
80
|
-
```
|
|
81
|
-
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
78
|
+
Create `myuru.config.mjs`:
|
|
79
|
+
|
|
80
|
+
```js
|
|
81
|
+
export default {
|
|
82
|
+
provider: "claude",
|
|
83
|
+
model: "sonnet",
|
|
84
|
+
agents: 2,
|
|
85
|
+
concurrent: false,
|
|
86
|
+
roles: {
|
|
87
|
+
Builder: "You are a software engineer. Write clean, working code.",
|
|
88
|
+
Reviewer: "You review code for bugs, security issues, and quality.",
|
|
89
|
+
},
|
|
90
|
+
};
|
|
86
91
|
```
|
|
87
92
|
|
|
88
93
|
## Requirements
|
package/package.json
CHANGED
package/src/lib/agent-runner.js
CHANGED
|
@@ -62,7 +62,17 @@ class AgentRunner {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
_run(prompt) {
|
|
65
|
+
async _run(prompt) {
|
|
66
|
+
// API-based providers (OpenAI, Gemini) use invoke() directly
|
|
67
|
+
if (typeof this.provider.invoke === "function") {
|
|
68
|
+
const output = await this.provider.invoke(prompt, {
|
|
69
|
+
model: this.model,
|
|
70
|
+
systemPrompt: this.systemPrompt,
|
|
71
|
+
});
|
|
72
|
+
return output;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// CLI-based providers (Claude) use buildCommand() + spawn
|
|
66
76
|
return new Promise((resolve, reject) => {
|
|
67
77
|
const tmpDir = path.join(os.tmpdir(), "myuru-agents");
|
|
68
78
|
fs.mkdirSync(tmpDir, { recursive: true });
|