@elizaos/plugin-agent-orchestrator 0.1.0 → 0.2.0

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 (80) hide show
  1. package/README.md +29 -6
  2. package/dist/index.js +465 -539
  3. package/dist/index.js.map +10 -10
  4. package/dist/src/actions/coding-task-handlers.d.ts +44 -0
  5. package/dist/src/actions/coding-task-handlers.d.ts.map +1 -0
  6. package/dist/src/actions/coding-task-helpers.d.ts +27 -0
  7. package/dist/src/actions/coding-task-helpers.d.ts.map +1 -0
  8. package/dist/src/actions/finalize-workspace.d.ts +11 -0
  9. package/dist/src/actions/finalize-workspace.d.ts.map +1 -0
  10. package/dist/src/actions/list-agents.d.ts +11 -0
  11. package/dist/src/actions/list-agents.d.ts.map +1 -0
  12. package/dist/src/actions/manage-issues.d.ts +11 -0
  13. package/dist/src/actions/manage-issues.d.ts.map +1 -0
  14. package/dist/src/actions/provision-workspace.d.ts +11 -0
  15. package/dist/src/actions/provision-workspace.d.ts.map +1 -0
  16. package/dist/src/actions/send-to-agent.d.ts +11 -0
  17. package/dist/src/actions/send-to-agent.d.ts.map +1 -0
  18. package/dist/src/actions/spawn-agent.d.ts +11 -0
  19. package/dist/src/actions/spawn-agent.d.ts.map +1 -0
  20. package/dist/src/actions/start-coding-task.d.ts +17 -0
  21. package/dist/src/actions/start-coding-task.d.ts.map +1 -0
  22. package/dist/src/actions/stop-agent.d.ts +11 -0
  23. package/dist/src/actions/stop-agent.d.ts.map +1 -0
  24. package/dist/src/api/agent-routes.d.ts +18 -0
  25. package/dist/src/api/agent-routes.d.ts.map +1 -0
  26. package/dist/src/api/coordinator-routes.d.ts +22 -0
  27. package/dist/src/api/coordinator-routes.d.ts.map +1 -0
  28. package/dist/src/api/issue-routes.d.ts +17 -0
  29. package/dist/src/api/issue-routes.d.ts.map +1 -0
  30. package/dist/src/api/routes.d.ts +36 -0
  31. package/dist/src/api/routes.d.ts.map +1 -0
  32. package/dist/src/api/workspace-routes.d.ts +17 -0
  33. package/dist/src/api/workspace-routes.d.ts.map +1 -0
  34. package/dist/src/index.d.ts +32 -0
  35. package/dist/src/index.d.ts.map +1 -0
  36. package/dist/src/providers/action-examples.d.ts +13 -0
  37. package/dist/src/providers/action-examples.d.ts.map +1 -0
  38. package/dist/src/providers/active-workspace-context.d.ts +13 -0
  39. package/dist/src/providers/active-workspace-context.d.ts.map +1 -0
  40. package/dist/src/services/agent-metrics.d.ts +28 -0
  41. package/dist/src/services/agent-metrics.d.ts.map +1 -0
  42. package/dist/src/services/agent-selection.d.ts +53 -0
  43. package/dist/src/services/agent-selection.d.ts.map +1 -0
  44. package/dist/src/services/ansi-utils.d.ts +48 -0
  45. package/dist/src/services/ansi-utils.d.ts.map +1 -0
  46. package/dist/src/services/pty-auto-response.d.ts +30 -0
  47. package/dist/src/services/pty-auto-response.d.ts.map +1 -0
  48. package/dist/src/services/pty-init.d.ts +43 -0
  49. package/dist/src/services/pty-init.d.ts.map +1 -0
  50. package/dist/src/services/pty-service.d.ts +92 -0
  51. package/dist/src/services/pty-service.d.ts.map +1 -0
  52. package/dist/src/services/pty-session-io.d.ts +46 -0
  53. package/dist/src/services/pty-session-io.d.ts.map +1 -0
  54. package/dist/src/services/pty-spawn.d.ts +50 -0
  55. package/dist/src/services/pty-spawn.d.ts.map +1 -0
  56. package/dist/src/services/pty-types.d.ts +80 -0
  57. package/dist/src/services/pty-types.d.ts.map +1 -0
  58. package/dist/src/services/stall-classifier.d.ts +44 -0
  59. package/dist/src/services/stall-classifier.d.ts.map +1 -0
  60. package/dist/src/services/swarm-coordinator-prompts.d.ts +62 -0
  61. package/dist/src/services/swarm-coordinator-prompts.d.ts.map +1 -0
  62. package/dist/src/services/swarm-coordinator.d.ts +163 -0
  63. package/dist/src/services/swarm-coordinator.d.ts.map +1 -0
  64. package/dist/src/services/swarm-decision-loop.d.ts +39 -0
  65. package/dist/src/services/swarm-decision-loop.d.ts.map +1 -0
  66. package/dist/src/services/swarm-idle-watchdog.d.ts +22 -0
  67. package/dist/src/services/swarm-idle-watchdog.d.ts.map +1 -0
  68. package/dist/src/services/workspace-git-ops.d.ts +28 -0
  69. package/dist/src/services/workspace-git-ops.d.ts.map +1 -0
  70. package/dist/src/services/workspace-github.d.ts +58 -0
  71. package/dist/src/services/workspace-github.d.ts.map +1 -0
  72. package/dist/src/services/workspace-lifecycle.d.ts +18 -0
  73. package/dist/src/services/workspace-lifecycle.d.ts.map +1 -0
  74. package/dist/src/services/workspace-service.d.ts +84 -0
  75. package/dist/src/services/workspace-service.d.ts.map +1 -0
  76. package/dist/src/services/workspace-types.d.ts +81 -0
  77. package/dist/src/services/workspace-types.d.ts.map +1 -0
  78. package/dist/tsconfig.build.tsbuildinfo +1 -0
  79. package/dist/tsconfig.tsbuildinfo +1 -0
  80. package/package.json +5 -4
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Orchestrate CLI-based coding agents (Claude Code, Codex, Gemini CLI, Aider, Pi) via PTY sessions and manage git workspaces for autonomous coding tasks.
4
4
 
5
+ Built for [Milady](https://github.com/milady-ai/milady). The plugin registers ElizaOS-compatible actions and services, so any ElizaOS agent can spawn and manage coding agents via chat. The full experience — live xterm terminal views, real-time PTY output streaming, and the swarm monitoring dashboard — requires the Milady frontend and server.
6
+
5
7
  ## Features
6
8
 
7
9
  - **PTY Session Management**: Spawn, control, and monitor coding agents running in pseudo-terminals
@@ -9,14 +11,33 @@ Orchestrate CLI-based coding agents (Claude Code, Codex, Gemini CLI, Aider, Pi)
9
11
  - **PR Workflow**: Commit changes, push to remote, create pull requests
10
12
  - **Multi-Agent Support**: Claude Code, Codex, Gemini CLI, Aider, Pi, or generic shell
11
13
 
12
- ## Installation
14
+ ## Prerequisites
15
+
16
+ This plugin spawns CLI coding agents in PTY sessions. You need **at least one** of the following installed on your machine:
17
+
18
+ | Agent | Install | Docs |
19
+ |-------|---------|------|
20
+ | **Claude Code** | `npm install -g @anthropic-ai/claude-code` | [claude.ai/claude-code](https://claude.ai/claude-code) |
21
+ | **Codex** | `npm install -g @openai/codex` | [github.com/openai/codex](https://github.com/openai/codex) |
22
+ | **Gemini CLI** | `npm install -g @google/gemini-cli` | [github.com/google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli) |
23
+ | **Aider** | `pip install aider-chat` | [aider.chat](https://aider.chat) |
24
+
25
+ Each agent also requires its own API key (e.g., `ANTHROPIC_API_KEY` for Claude Code, `OPENAI_API_KEY` for Codex, `GOOGLE_GENERATIVE_AI_API_KEY` for Gemini). Set these in your environment or runtime settings.
13
26
 
14
- This plugin is part of the Milady monorepo. It requires the following peer dependencies:
27
+ The plugin auto-detects which agents are available at spawn time and will report if a requested agent isn't installed.
28
+
29
+ ## Installation
15
30
 
16
31
  ```bash
17
- pnpm add pty-manager git-workspace-service
32
+ npm install @elizaos/plugin-agent-orchestrator
18
33
  ```
19
34
 
35
+ The following peer dependencies will be installed automatically:
36
+
37
+ - `pty-manager` — PTY session management
38
+ - `git-workspace-service` — git workspace provisioning
39
+ - `coding-agent-adapters` — CLI agent adapter layer
40
+
20
41
  ## Usage
21
42
 
22
43
  ### Register the Plugin
@@ -24,7 +45,7 @@ pnpm add pty-manager git-workspace-service
24
45
  ```typescript
25
46
  import { codingAgentPlugin } from "@elizaos/plugin-agent-orchestrator";
26
47
 
27
- // Add to your ElizaOS agent configuration
48
+ // Add to your Milady or ElizaOS agent configuration
28
49
  const agent = {
29
50
  plugins: [codingAgentPlugin],
30
51
  // ... other config
@@ -161,8 +182,10 @@ runtime.setSetting("CODING_WORKSPACE_CONFIG", {
161
182
 
162
183
  ## Dependencies
163
184
 
164
- - `pty-manager` - PTY session management with adapter pattern
165
- - `git-workspace-service` - Git workspace provisioning and PR creation
185
+ - `pty-manager` - PTY session management with stall detection and auto-response
186
+ - `coding-agent-adapters` - Adapter layer for Claude Code, Codex, Gemini CLI, Aider CLIs
187
+ - `git-workspace-service` - Git workspace provisioning, credential management, and PR creation
188
+ - `pty-console` - Terminal bridge for xterm.js frontend integration
166
189
 
167
190
  ## License
168
191