@elizaos/plugin-agent-orchestrator 0.4.3 → 0.5.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.
Files changed (37) hide show
  1. package/README.md +76 -35
  2. package/dist/actions/list-agents.d.ts +5 -3
  3. package/dist/actions/list-agents.d.ts.map +1 -1
  4. package/dist/actions/send-to-agent.d.ts +2 -1
  5. package/dist/actions/send-to-agent.d.ts.map +1 -1
  6. package/dist/actions/spawn-agent.d.ts +3 -2
  7. package/dist/actions/spawn-agent.d.ts.map +1 -1
  8. package/dist/actions/start-coding-task.d.ts +4 -3
  9. package/dist/actions/start-coding-task.d.ts.map +1 -1
  10. package/dist/actions/stop-agent.d.ts +2 -1
  11. package/dist/actions/stop-agent.d.ts.map +1 -1
  12. package/dist/api/agent-routes.d.ts +3 -3
  13. package/dist/api/agent-routes.d.ts.map +1 -1
  14. package/dist/api/coordinator-routes.d.ts.map +1 -1
  15. package/dist/api/routes.d.ts +3 -2
  16. package/dist/api/routes.d.ts.map +1 -1
  17. package/dist/index.d.ts +11 -5
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +3938 -3514
  20. package/dist/index.js.map +27 -27
  21. package/dist/providers/action-examples.d.ts +3 -2
  22. package/dist/providers/action-examples.d.ts.map +1 -1
  23. package/dist/providers/active-workspace-context.d.ts +5 -5
  24. package/dist/providers/active-workspace-context.d.ts.map +1 -1
  25. package/dist/services/pty-init.d.ts +4 -0
  26. package/dist/services/pty-init.d.ts.map +1 -1
  27. package/dist/services/pty-service.d.ts +6 -0
  28. package/dist/services/pty-service.d.ts.map +1 -1
  29. package/dist/services/pty-spawn.d.ts +1 -0
  30. package/dist/services/pty-spawn.d.ts.map +1 -1
  31. package/dist/services/pty-types.d.ts +4 -4
  32. package/dist/services/pty-types.d.ts.map +1 -1
  33. package/dist/services/stall-classifier.d.ts +1 -1
  34. package/dist/services/swarm-decision-loop.d.ts.map +1 -1
  35. package/dist/services/task-agent-frameworks.d.ts +46 -0
  36. package/dist/services/task-agent-frameworks.d.ts.map +1 -0
  37. package/package.json +7 -3
package/README.md CHANGED
@@ -1,30 +1,37 @@
1
1
  # @elizaos/plugin-agent-orchestrator
2
2
 
3
- Orchestrate CLI-based coding agents (Claude Code, Codex, Gemini CLI, Aider, Pi) via PTY sessions and manage git workspaces for autonomous coding tasks.
3
+ Orchestrate CLI task agents (Claude Code, Codex, Gemini CLI, Aider, Pi) via PTY sessions and git workspaces for open-ended background work.
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.
5
+ Built for [Milady](https://github.com/milady-ai/milady). The plugin registers elizaOS-compatible actions and services so any Eliza agent can delegate substantial work to sub-agents while continuing the user conversation. The full experience, including live xterm views, PTY output streaming, and swarm monitoring, is available through the Milady frontend and server.
6
6
 
7
7
  ## Features
8
8
 
9
- - **PTY Session Management**: Spawn, control, and monitor coding agents running in pseudo-terminals
10
- - **Git Workspace Provisioning**: Clone repos, create worktrees, manage branches
11
- - **PR Workflow**: Commit changes, push to remote, create pull requests
12
- - **Multi-Agent Support**: Claude Code, Codex, Gemini CLI, Aider, Pi, or generic shell
9
+ - **Open-ended task delegation**: Use task agents for anything beyond a simple reply, including coding, research, drafting, debugging, repo work, and multi-step execution
10
+ - **PTY session management**: Spawn, control, and monitor task agents running in pseudo-terminals
11
+ - **Current task status**: Surface active sessions, coordinator task state, and pending confirmations so the main agent can keep the user updated
12
+ - **Subscription-aware framework preference**: Prefer Claude Code or Codex when Milady knows the user is logged in with Anthropic or OpenAI-backed subscriptions
13
+ - **Git workspace provisioning**: Clone repos, create worktrees, manage branches, commits, pushes, and pull requests
14
+ - **Multi-agent support**: Claude Code, Codex, Gemini CLI, Aider, Pi, or generic shell flows through the same orchestration surface
13
15
 
14
16
  ## Prerequisites
15
17
 
16
- This plugin spawns CLI coding agents in PTY sessions. You need **at least one** of the following installed on your machine:
18
+ This plugin spawns CLI task agents in PTY sessions. You need at least one supported framework installed locally:
17
19
 
18
- | Agent | Install | Docs |
19
- |-------|---------|------|
20
+ | Framework | Install | Docs |
21
+ |-----------|---------|------|
20
22
  | **Claude Code** | `npm install -g @anthropic-ai/claude-code` | [claude.ai/claude-code](https://claude.ai/claude-code) |
21
23
  | **Codex** | `npm install -g @openai/codex` | [github.com/openai/codex](https://github.com/openai/codex) |
22
24
  | **Gemini CLI** | `npm install -g @google/gemini-cli` | [github.com/google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli) |
23
25
  | **Aider** | `pip install aider-chat` | [aider.chat](https://aider.chat) |
26
+ | **Pi** | install the `pi` CLI available on your host | provider-specific |
24
27
 
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.
28
+ Each framework also needs its own auth. API keys still work, but the orchestrator can also detect subscription-backed CLI logins:
26
29
 
27
- The plugin auto-detects which agents are available at spawn time and will report if a requested agent isn't installed.
30
+ - `ANTHROPIC_API_KEY` or a Claude Code subscription login for Claude Code
31
+ - `OPENAI_API_KEY` or a Codex login for Codex
32
+ - `GOOGLE_GENERATIVE_AI_API_KEY` or `GOOGLE_API_KEY` for Gemini CLI
33
+
34
+ The provider surface exposes the currently available frameworks and the preferred default. If the user does not specify a framework, the plugin picks the best available option automatically.
28
35
 
29
36
  ## Installation
30
37
 
@@ -43,47 +50,45 @@ The following peer dependencies will be installed automatically:
43
50
  ### Register the Plugin
44
51
 
45
52
  ```typescript
46
- import { codingAgentPlugin } from "@elizaos/plugin-agent-orchestrator";
53
+ import taskAgentPlugin from "@elizaos/plugin-agent-orchestrator";
47
54
 
48
- // Add to your Milady or ElizaOS agent configuration
55
+ // Add to your Milady or elizaOS agent configuration
49
56
  const agent = {
50
- plugins: [codingAgentPlugin],
57
+ plugins: [taskAgentPlugin],
51
58
  // ... other config
52
59
  };
53
60
  ```
54
61
 
55
- ### Actions
56
-
57
- #### PTY Session Management
58
-
59
- | Action | Description |
60
- |--------|-------------|
61
- | `SPAWN_CODING_AGENT` | Spawn a new coding agent session |
62
- | `SEND_TO_CODING_AGENT` | Send input or keys to a running agent |
63
- | `STOP_CODING_AGENT` | Terminate an agent session |
64
- | `LIST_CODING_AGENTS` | List all active sessions |
62
+ `codingAgentPlugin` is still exported as a compatibility alias, but `taskAgentPlugin` is the canonical export.
65
63
 
66
- #### Workspace Management
64
+ ### Canonical Actions
67
65
 
68
66
  | Action | Description |
69
67
  |--------|-------------|
68
+ | `CREATE_TASK` | Create an asynchronous task-agent job for substantial work |
69
+ | `SPAWN_AGENT` | Spawn a task agent session immediately |
70
+ | `SEND_TO_AGENT` | Send input or keys to a running task agent |
71
+ | `LIST_AGENTS` | List active sessions and current task status |
72
+ | `STOP_AGENT` | Terminate an agent session |
70
73
  | `PROVISION_WORKSPACE` | Clone a repo or create a worktree |
71
74
  | `FINALIZE_WORKSPACE` | Commit, push, and optionally create PR |
72
75
 
76
+ Legacy action names such as `START_CODING_TASK`, `SPAWN_CODING_AGENT`, `SEND_TO_CODING_AGENT`, `LIST_CODING_AGENTS`, and `STOP_CODING_AGENT` remain supported as aliases.
77
+
73
78
  ### Example Conversation
74
79
 
75
80
  ```
76
- User: Spawn Claude Code to fix the auth bug in src/auth.ts
77
- Agent: Starting claude-code agent in /workspace...
81
+ User: This is bigger than a simple reply. Create a background task to inspect the repo, fix the auth bug, and open a PR.
82
+ Agent: Starting a task agent for the repo work...
78
83
  Session ID: abc123, Status: running
79
84
 
80
- User: What coding agents are running?
81
- Agent: Active sessions:
82
- 1. claude-code (abc123...) - running
85
+ User: What task agents are running?
86
+ Agent: Active task agents:
87
+ 1. Claude Code (abc123...) - running
83
88
  Working in: /workspace
84
89
 
85
90
  User: Tell it to accept the changes
86
- Agent: Sent "y" to coding agent.
91
+ Agent: Sent "y" to the task agent.
87
92
 
88
93
  User: Create a PR for the fix
89
94
  Agent: Workspace finalized!
@@ -95,7 +100,7 @@ Agent: Workspace finalized!
95
100
 
96
101
  ### PTYService
97
102
 
98
- Manages PTY sessions for coding agents.
103
+ Manages PTY sessions for task agents.
99
104
 
100
105
  ```typescript
101
106
  import { PTYService } from "@elizaos/plugin-agent-orchestrator";
@@ -105,7 +110,7 @@ const ptyService = runtime.getService("PTY_SERVICE") as PTYService;
105
110
 
106
111
  // Spawn a session
107
112
  const session = await ptyService.spawnSession({
108
- agentType: "claude-code",
113
+ agentType: "claude",
109
114
  workdir: "/path/to/project",
110
115
  initialTask: "Fix the auth bug",
111
116
  });
@@ -123,7 +128,7 @@ await ptyService.stopSession(session.id);
123
128
 
124
129
  ### CodingWorkspaceService
125
130
 
126
- Manages git workspaces for coding tasks.
131
+ Manages git workspaces for task-agent jobs.
127
132
 
128
133
  ```typescript
129
134
  import { CodingWorkspaceService } from "@elizaos/plugin-agent-orchestrator";
@@ -160,7 +165,7 @@ const pr = await workspaceService.createPR(workspace.id, {
160
165
 
161
166
  ## Configuration
162
167
 
163
- Configure via runtime settings:
168
+ Configure via runtime settings and Milady config:
164
169
 
165
170
  ```typescript
166
171
  // PTY Service config
@@ -178,8 +183,44 @@ runtime.setSetting("CODING_WORKSPACE_CONFIG", {
178
183
  },
179
184
  debug: true,
180
185
  });
186
+
187
+ // Optional fixed default when you do not want auto-selection
188
+ runtime.setSetting("PARALLAX_DEFAULT_AGENT_TYPE", "codex");
189
+
190
+ // Selection strategy: "heuristic" | "fixed"
191
+ runtime.setSetting("PARALLAX_AGENT_SELECTION_STRATEGY", "heuristic");
192
+ ```
193
+
194
+ To bias the preferred framework toward the user's paid subscription, Milady can store a provider hint in `~/.milady/milady.json`:
195
+
196
+ ```json
197
+ {
198
+ "agents": {
199
+ "defaults": {
200
+ "subscriptionProvider": "anthropic-subscription"
201
+ }
202
+ }
203
+ }
181
204
  ```
182
205
 
206
+ Supported subscription hints currently include Anthropic and OpenAI-backed flows, which map to Claude Code and Codex when those CLIs are installed and authenticated.
207
+
208
+ ## Testing
209
+
210
+ Run the standard suite:
211
+
212
+ ```bash
213
+ bun test
214
+ ```
215
+
216
+ Run the opt-in live smoke tests against real Claude Code and Codex sessions:
217
+
218
+ ```bash
219
+ bun run test:live
220
+ ```
221
+
222
+ The live suite creates a temporary workspace, asks the real CLI to complete a small file-writing task, and verifies both task execution and task-status visibility.
223
+
183
224
  ## Dependencies
184
225
 
185
226
  - `pty-manager` - PTY session management with stall detection and auto-response
@@ -1,11 +1,13 @@
1
1
  /**
2
- * LIST_CODING_AGENTS action - List active coding agent sessions
2
+ * LIST_AGENTS action - List active task-agent sessions and task progress.
3
3
  *
4
- * Returns information about all running PTY sessions,
5
- * including their status, agent type, and working directory.
4
+ * Returns information about running PTY sessions together with the current
5
+ * coordinator task state so the main agent can keep the user updated while
6
+ * background work continues.
6
7
  *
7
8
  * @module actions/list-agents
8
9
  */
9
10
  import type { Action } from "@elizaos/core";
10
11
  export declare const listAgentsAction: Action;
12
+ export declare const listTaskAgentsAction: Action;
11
13
  //# sourceMappingURL=list-agents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-agents.d.ts","sourceRoot":"","sources":["../../src/actions/list-agents.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,MAAM,EAOP,MAAM,eAAe,CAAC;AAIvB,eAAO,MAAM,gBAAgB,EAAE,MA6H9B,CAAC"}
1
+ {"version":3,"file":"list-agents.d.ts","sourceRoot":"","sources":["../../src/actions/list-agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,MAAM,EAOP,MAAM,eAAe,CAAC;AAgCvB,eAAO,MAAM,gBAAgB,EAAE,MAqL9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAmB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * SEND_TO_CODING_AGENT action - Send input to a running coding agent
2
+ * SEND_TO_AGENT action - Send input to a running task agent.
3
3
  *
4
4
  * Allows sending text or commands to an active PTY session.
5
5
  * Useful for responding to prompts, providing feedback, or giving new instructions.
@@ -8,4 +8,5 @@
8
8
  */
9
9
  import type { Action } from "@elizaos/core";
10
10
  export declare const sendToAgentAction: Action;
11
+ export declare const sendToTaskAgentAction: Action;
11
12
  //# sourceMappingURL=send-to-agent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-to-agent.d.ts","sourceRoot":"","sources":["../../src/actions/send-to-agent.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,MAAM,EAOP,MAAM,eAAe,CAAC;AAGvB,eAAO,MAAM,iBAAiB,EAAE,MAiM/B,CAAC"}
1
+ {"version":3,"file":"send-to-agent.d.ts","sourceRoot":"","sources":["../../src/actions/send-to-agent.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,MAAM,EAOP,MAAM,eAAe,CAAC;AAIvB,eAAO,MAAM,iBAAiB,EAAE,MA4O/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAoB,CAAC"}
@@ -1,11 +1,12 @@
1
1
  /**
2
- * SPAWN_CODING_AGENT action - Spawns a CLI coding agent
2
+ * SPAWN_AGENT action - Spawns a CLI task agent.
3
3
  *
4
- * Creates a new PTY session for a coding agent (Claude Code, Codex, etc.)
4
+ * Creates a new PTY session for a task agent (Claude Code, Codex, etc.)
5
5
  * and returns a session ID for subsequent interactions.
6
6
  *
7
7
  * @module actions/spawn-agent
8
8
  */
9
9
  import { type Action } from "@elizaos/core";
10
10
  export declare const spawnAgentAction: Action;
11
+ export declare const spawnTaskAgentAction: Action;
11
12
  //# sourceMappingURL=spawn-agent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"spawn-agent.d.ts","sourceRoot":"","sources":["../../src/actions/spawn-agent.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EACL,KAAK,MAAM,EAQZ,MAAM,eAAe,CAAC;AAavB,eAAO,MAAM,gBAAgB,EAAE,MA+U9B,CAAC"}
1
+ {"version":3,"file":"spawn-agent.d.ts","sourceRoot":"","sources":["../../src/actions/spawn-agent.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EACL,KAAK,MAAM,EAQZ,MAAM,eAAe,CAAC;AAavB,eAAO,MAAM,gBAAgB,EAAE,MAsV9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAmB,CAAC"}
@@ -1,17 +1,18 @@
1
1
  /**
2
- * START_CODING_TASK action - Unified action to set up and launch coding agents
2
+ * CREATE_TASK action - Unified action to set up and launch task agents.
3
3
  *
4
4
  * Combines workspace provisioning and agent spawning into a single atomic action.
5
5
  * - If a repo URL is provided, clones it into a fresh workspace
6
6
  * - If no repo, creates a scratch sandbox directory
7
- * - Spawns the specified coding agent(s) in that workspace with the given task
7
+ * - Spawns the specified task agent(s) in that workspace with the given task
8
8
  * - Supports multi-agent mode via pipe-delimited `agents` param
9
9
  *
10
- * This eliminates the need for multi-action chaining (PROVISION_WORKSPACE -> SPAWN_CODING_AGENT)
10
+ * This eliminates the need for multi-action chaining (PROVISION_WORKSPACE -> SPAWN_AGENT)
11
11
  * and ensures agents always run in an isolated directory.
12
12
  *
13
13
  * @module actions/start-coding-task
14
14
  */
15
15
  import type { Action } from "@elizaos/core";
16
16
  export declare const startCodingTaskAction: Action;
17
+ export declare const createTaskAction: Action;
17
18
  //# sourceMappingURL=start-coding-task.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"start-coding-task.d.ts","sourceRoot":"","sources":["../../src/actions/start-coding-task.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EACV,MAAM,EAOP,MAAM,eAAe,CAAC;AAWvB,eAAO,MAAM,qBAAqB,EAAE,MA2QnC,CAAC"}
1
+ {"version":3,"file":"start-coding-task.d.ts","sourceRoot":"","sources":["../../src/actions/start-coding-task.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EACV,MAAM,EAOP,MAAM,eAAe,CAAC;AAWvB,eAAO,MAAM,qBAAqB,EAAE,MAgRnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAwB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * STOP_CODING_AGENT action - Stop a running coding agent session
2
+ * STOP_AGENT action - Stop a running task-agent session.
3
3
  *
4
4
  * Terminates an active PTY session. Use when the agent is done,
5
5
  * stuck, or needs to be cancelled.
@@ -8,4 +8,5 @@
8
8
  */
9
9
  import { type Action } from "@elizaos/core";
10
10
  export declare const stopAgentAction: Action;
11
+ export declare const stopTaskAgentAction: Action;
11
12
  //# sourceMappingURL=stop-agent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stop-agent.d.ts","sourceRoot":"","sources":["../../src/actions/stop-agent.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,KAAK,MAAM,EAQZ,MAAM,eAAe,CAAC;AAGvB,eAAO,MAAM,eAAe,EAAE,MA4M7B,CAAC"}
1
+ {"version":3,"file":"stop-agent.d.ts","sourceRoot":"","sources":["../../src/actions/stop-agent.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,KAAK,MAAM,EAQZ,MAAM,eAAe,CAAC;AAGvB,eAAO,MAAM,eAAe,EAAE,MAgN7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAkB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Coding Agent Route Handlers
2
+ * Task Agent Route Handlers
3
3
  *
4
- * Handles routes for PTY-based coding agent management:
4
+ * Handles routes for PTY-based task-agent management:
5
5
  * - Preflight checks, metrics, workspace files
6
6
  * - Approval presets and config
7
7
  * - Agent CRUD: list, spawn, get, send, stop, output
@@ -11,7 +11,7 @@
11
11
  import type { IncomingMessage, ServerResponse } from "node:http";
12
12
  import type { RouteContext } from "./routes.js";
13
13
  /**
14
- * Handle coding agent routes (/api/coding-agents/*)
14
+ * Handle task-agent routes (/api/coding-agents/*)
15
15
  * Returns true if the route was handled, false otherwise
16
16
  */
17
17
  export declare function handleAgentRoutes(req: IncomingMessage, res: ServerResponse, pathname: string, ctx: RouteContext): Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"agent-routes.d.ts","sourceRoot":"","sources":["../../src/api/agent-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAajE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAiMhD;;;GAGG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,YAAY,GAChB,OAAO,CAAC,OAAO,CAAC,CAgiBlB"}
1
+ {"version":3,"file":"agent-routes.d.ts","sourceRoot":"","sources":["../../src/api/agent-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAcjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAiMhD;;;GAGG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,YAAY,GAChB,OAAO,CAAC,OAAO,CAAC,CAwiBlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"coordinator-routes.d.ts","sourceRoot":"","sources":["../../src/api/coordinator-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAahD;;;GAGG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,YAAY,GAAG;IAAE,WAAW,CAAC,EAAE,gBAAgB,CAAA;CAAE,GACrD,OAAO,CAAC,OAAO,CAAC,CA6KlB"}
1
+ {"version":3,"file":"coordinator-routes.d.ts","sourceRoot":"","sources":["../../src/api/coordinator-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAahD;;;GAGG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,YAAY,GAAG;IAAE,WAAW,CAAC,EAAE,gBAAgB,CAAA;CAAE,GACrD,OAAO,CAAC,OAAO,CAAC,CAoMlB"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Coding Agent API Routes — Dispatcher
2
+ * Task Agent API Routes — Dispatcher
3
3
  *
4
4
  * Provides shared helpers (parseBody, sendJson, sendError), types, and the
5
5
  * top-level route dispatcher that delegates to domain-specific route modules.
@@ -25,7 +25,7 @@ export declare function parseBody(req: IncomingMessage): Promise<Record<string,
25
25
  export declare function sendJson(res: ServerResponse, data: JsonValue, status?: number): void;
26
26
  export declare function sendError(res: ServerResponse, message: string, status?: number): void;
27
27
  /**
28
- * Handle coding agent routes
28
+ * Handle task-agent routes
29
29
  * Returns true if the route was handled, false otherwise
30
30
  */
31
31
  export declare function handleCodingAgentRoutes(req: IncomingMessage, res: ServerResponse, pathname: string, ctx: RouteContext): Promise<boolean>;
@@ -33,4 +33,5 @@ export declare function handleCodingAgentRoutes(req: IncomingMessage, res: Serve
33
33
  * Create route handler with services from runtime
34
34
  */
35
35
  export declare function createCodingAgentRouteHandler(runtime: IAgentRuntime, coordinator?: SwarmCoordinator): (req: IncomingMessage, res: ServerResponse, pathname: string) => Promise<boolean>;
36
+ export declare const createTaskAgentRouteHandler: typeof createCodingAgentRouteHandler;
36
37
  //# sourceMappingURL=routes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/api/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAO/E,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,EAAE,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAEjC,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,gBAAgB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAChD,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAChC;AAGD,eAAO,MAAM,aAAa,QAAc,CAAC;AAGzC,wBAAsB,SAAS,CAC7B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,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AChD,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAChC;AAGD,eAAO,MAAM,aAAa,QAAc,CAAC;AAGzC,wBAAsB,SAAS,CAC7B,GAAG,EAAE,eAAe,GACnB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAsBlC;AAGD,wBAAgB,QAAQ,CACtB,GAAG,EAAE,cAAc,EACnB,IAAI,EAAE,SAAS,EACf,MAAM,SAAM,GACX,IAAI,CAGN;AAGD,wBAAgB,SAAS,CACvB,GAAG,EAAE,cAAc,EACnB,OAAO,EAAE,MAAM,EACf,MAAM,SAAM,GACX,IAAI,CAEN;AAED;;;GAGG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,YAAY,GAChB,OAAO,CAAC,OAAO,CAAC,CAgClB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,aAAa,EACtB,WAAW,CAAC,EAAE,gBAAgB,IAEtB,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,UAAU,MAAM,sBAiBpE;AAED,eAAO,MAAM,2BAA2B,sCAAgC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Coding Agent Plugin for Milady
2
+ * Task Agent Plugin for Milady
3
3
  *
4
- * Provides orchestration capabilities for CLI-based coding agents:
5
- * - PTY session management (spawn, control, monitor coding agents)
4
+ * Provides orchestration capabilities for CLI-based task agents:
5
+ * - PTY session management (spawn, control, monitor task agents)
6
6
  * - Git workspace provisioning (clone, branch, PR creation)
7
7
  * - GitHub issue management (create, list, update, close)
8
8
  * - Integration with Claude Code, Codex, Gemini CLI, Aider, Pi, etc.
@@ -10,8 +10,9 @@
10
10
  * @module @elizaos/plugin-agent-orchestrator
11
11
  */
12
12
  import type { Plugin } from "@elizaos/core";
13
+ export declare const taskAgentPlugin: Plugin;
13
14
  export declare const codingAgentPlugin: Plugin;
14
- export default codingAgentPlugin;
15
+ export default taskAgentPlugin;
15
16
  export type { AdapterType, AgentCredentials, AgentFileDescriptor, ApprovalConfig, ApprovalPreset, PreflightResult, PresetDefinition, RiskLevel, ToolCategory, WriteMemoryOptions, } from "coding-agent-adapters";
16
17
  export { finalizeWorkspaceAction } from "./actions/finalize-workspace.js";
17
18
  export { listAgentsAction } from "./actions/list-agents.js";
@@ -19,9 +20,14 @@ export { manageIssuesAction } from "./actions/manage-issues.js";
19
20
  export { provisionWorkspaceAction } from "./actions/provision-workspace.js";
20
21
  export { sendToAgentAction } from "./actions/send-to-agent.js";
21
22
  export { spawnAgentAction } from "./actions/spawn-agent.js";
23
+ export { createTaskAction } from "./actions/start-coding-task.js";
24
+ export { listTaskAgentsAction } from "./actions/list-agents.js";
25
+ export { sendToTaskAgentAction } from "./actions/send-to-agent.js";
26
+ export { spawnTaskAgentAction } from "./actions/spawn-agent.js";
22
27
  export { startCodingTaskAction } from "./actions/start-coding-task.js";
23
28
  export { stopAgentAction } from "./actions/stop-agent.js";
24
- export { createCodingAgentRouteHandler, handleCodingAgentRoutes, } from "./api/routes.js";
29
+ export { stopTaskAgentAction } from "./actions/stop-agent.js";
30
+ export { createCodingAgentRouteHandler, createTaskAgentRouteHandler, handleCodingAgentRoutes, } from "./api/routes.js";
25
31
  export type { CodingAgentType, PTYServiceConfig, SessionEventName, SessionInfo, SpawnSessionOptions, } from "./services/pty-service.js";
26
32
  export { getCoordinator, PTYService } from "./services/pty-service.js";
27
33
  export type { AgentDecisionCallback, ChatMessageCallback, CoordinationDecision, PendingDecision, SupervisionLevel, SwarmCompleteCallback, SwarmEvent, TaskCompletionSummary, TaskContext, WsBroadcastCallback, } from "./services/swarm-coordinator.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,MAAM,EA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