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 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 GOOGLE_API_KEY="..."
75
+ export GEMINI_API_KEY="..."
76
76
  ```
77
77
 
78
- Create `.myuru.json`:
79
-
80
- ```json
81
- {
82
- "tier": "free",
83
- "providers": ["claude", "openai"],
84
- "maxConcurrent": 2
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myuru",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Multi-provider AI agent orchestrator. Coordinate Claude, GPT, and Gemini agents to build software in parallel.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -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 });