@elizaos/plugin-agent-orchestrator 2.0.0-alpha.9 → 2.0.0-beta.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 (265) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/LICENSE +21 -0
  3. package/PROJECT.md +119 -0
  4. package/README.md +160 -0
  5. package/dist/browser/index.browser.js +21051 -0
  6. package/dist/browser/index.browser.js.map +29 -0
  7. package/dist/browser/index.d.ts +2 -0
  8. package/dist/cjs/index.d.ts +2 -0
  9. package/dist/cjs/index.node.cjs +20491 -0
  10. package/dist/cjs/index.node.js.map +72 -0
  11. package/dist/index.d.ts +2 -21
  12. package/dist/node/index.browser.d.ts +3 -0
  13. package/dist/node/index.browser.d.ts.map +1 -0
  14. package/dist/node/index.d.ts +2 -0
  15. package/dist/node/index.d.ts.map +1 -0
  16. package/dist/node/index.node.d.ts +4 -0
  17. package/dist/node/index.node.d.ts.map +1 -0
  18. package/dist/node/index.node.js +20471 -0
  19. package/dist/node/index.node.js.map +72 -0
  20. package/dist/node/src/actions/cancel-task.d.ts +3 -0
  21. package/dist/node/src/actions/cancel-task.d.ts.map +1 -0
  22. package/dist/node/src/actions/coding-task-handlers.d.ts +69 -0
  23. package/dist/node/src/actions/coding-task-handlers.d.ts.map +1 -0
  24. package/dist/node/src/actions/coding-task-helpers.d.ts +35 -0
  25. package/dist/node/src/actions/coding-task-helpers.d.ts.map +1 -0
  26. package/dist/node/src/actions/common.d.ts +56 -0
  27. package/dist/node/src/actions/common.d.ts.map +1 -0
  28. package/dist/node/src/actions/create-task.d.ts +8 -0
  29. package/dist/node/src/actions/create-task.d.ts.map +1 -0
  30. package/dist/node/src/actions/eval-metadata.d.ts +11 -0
  31. package/dist/node/src/actions/eval-metadata.d.ts.map +1 -0
  32. package/dist/node/src/actions/finalize-workspace.d.ts +11 -0
  33. package/dist/node/src/actions/finalize-workspace.d.ts.map +1 -0
  34. package/dist/node/src/actions/list-agents.d.ts +4 -0
  35. package/dist/node/src/actions/list-agents.d.ts.map +1 -0
  36. package/dist/node/src/actions/manage-issues.d.ts +11 -0
  37. package/dist/node/src/actions/manage-issues.d.ts.map +1 -0
  38. package/dist/node/src/actions/provision-workspace.d.ts +11 -0
  39. package/dist/node/src/actions/provision-workspace.d.ts.map +1 -0
  40. package/dist/node/src/actions/sandbox-stub.d.ts +21 -0
  41. package/dist/node/src/actions/sandbox-stub.d.ts.map +1 -0
  42. package/dist/node/src/actions/send-to-agent.d.ts +4 -0
  43. package/dist/node/src/actions/send-to-agent.d.ts.map +1 -0
  44. package/dist/node/src/actions/spawn-agent.d.ts +8 -0
  45. package/dist/node/src/actions/spawn-agent.d.ts.map +1 -0
  46. package/dist/node/src/actions/stop-agent.d.ts +4 -0
  47. package/dist/node/src/actions/stop-agent.d.ts.map +1 -0
  48. package/dist/node/src/actions/task-control.d.ts +3 -0
  49. package/dist/node/src/actions/task-control.d.ts.map +1 -0
  50. package/dist/node/src/actions/task-history.d.ts +3 -0
  51. package/dist/node/src/actions/task-history.d.ts.map +1 -0
  52. package/dist/node/src/actions/task-share.d.ts +3 -0
  53. package/dist/node/src/actions/task-share.d.ts.map +1 -0
  54. package/dist/node/src/actions/task-thread-target.d.ts +11 -0
  55. package/dist/node/src/actions/task-thread-target.d.ts.map +1 -0
  56. package/dist/node/src/actions/tasks.d.ts +88 -0
  57. package/dist/node/src/actions/tasks.d.ts.map +1 -0
  58. package/dist/node/src/api/agent-routes.d.ts +18 -0
  59. package/dist/node/src/api/agent-routes.d.ts.map +1 -0
  60. package/dist/node/src/api/bridge-routes.d.ts +32 -0
  61. package/dist/node/src/api/bridge-routes.d.ts.map +1 -0
  62. package/dist/node/src/api/coordinator-routes.d.ts +22 -0
  63. package/dist/node/src/api/coordinator-routes.d.ts.map +1 -0
  64. package/dist/node/src/api/hook-routes.d.ts +18 -0
  65. package/dist/node/src/api/hook-routes.d.ts.map +1 -0
  66. package/dist/node/src/api/issue-routes.d.ts +17 -0
  67. package/dist/node/src/api/issue-routes.d.ts.map +1 -0
  68. package/dist/node/src/api/parent-context-routes.d.ts +17 -0
  69. package/dist/node/src/api/parent-context-routes.d.ts.map +1 -0
  70. package/dist/node/src/api/route-utils.d.ts +18 -0
  71. package/dist/node/src/api/route-utils.d.ts.map +1 -0
  72. package/dist/node/src/api/routes.d.ts +23 -0
  73. package/dist/node/src/api/routes.d.ts.map +1 -0
  74. package/dist/node/src/api/workspace-routes.d.ts +17 -0
  75. package/dist/node/src/api/workspace-routes.d.ts.map +1 -0
  76. package/dist/node/src/index.d.ts +32 -0
  77. package/dist/node/src/index.d.ts.map +1 -0
  78. package/dist/node/src/providers/action-examples.d.ts +14 -0
  79. package/dist/node/src/providers/action-examples.d.ts.map +1 -0
  80. package/dist/node/src/providers/active-sub-agents.d.ts +15 -0
  81. package/dist/node/src/providers/active-sub-agents.d.ts.map +1 -0
  82. package/dist/node/src/providers/active-workspace-context.d.ts +13 -0
  83. package/dist/node/src/providers/active-workspace-context.d.ts.map +1 -0
  84. package/dist/node/src/providers/available-agents.d.ts +4 -0
  85. package/dist/node/src/providers/available-agents.d.ts.map +1 -0
  86. package/dist/node/src/register-routes.d.ts +11 -0
  87. package/dist/node/src/register-routes.d.ts.map +1 -0
  88. package/dist/node/src/routes/coding-agents-fallback-routes.d.ts +19 -0
  89. package/dist/node/src/routes/coding-agents-fallback-routes.d.ts.map +1 -0
  90. package/dist/node/src/services/acp-service.d.ts +61 -0
  91. package/dist/node/src/services/acp-service.d.ts.map +1 -0
  92. package/dist/node/src/services/acpx-subprocess.d.ts +3 -0
  93. package/dist/node/src/services/acpx-subprocess.d.ts.map +1 -0
  94. package/dist/node/src/services/agent-credentials.d.ts +23 -0
  95. package/dist/node/src/services/agent-credentials.d.ts.map +1 -0
  96. package/dist/node/src/services/agent-metrics.d.ts +30 -0
  97. package/dist/node/src/services/agent-metrics.d.ts.map +1 -0
  98. package/dist/node/src/services/agent-selection.d.ts +53 -0
  99. package/dist/node/src/services/agent-selection.d.ts.map +1 -0
  100. package/dist/node/src/services/ansi-utils.d.ts +64 -0
  101. package/dist/node/src/services/ansi-utils.d.ts.map +1 -0
  102. package/dist/node/src/services/claude-code-skill-installer.d.ts +33 -0
  103. package/dist/node/src/services/claude-code-skill-installer.d.ts.map +1 -0
  104. package/dist/node/src/services/config-env.d.ts +23 -0
  105. package/dist/node/src/services/config-env.d.ts.map +1 -0
  106. package/dist/node/src/services/coordinator-event-normalizer.d.ts +50 -0
  107. package/dist/node/src/services/coordinator-event-normalizer.d.ts.map +1 -0
  108. package/dist/node/src/services/custom-validator-runner.d.ts +66 -0
  109. package/dist/node/src/services/custom-validator-runner.d.ts.map +1 -0
  110. package/dist/node/src/services/debug-capture.d.ts +38 -0
  111. package/dist/node/src/services/debug-capture.d.ts.map +1 -0
  112. package/dist/node/src/services/json-model-output.d.ts +2 -0
  113. package/dist/node/src/services/json-model-output.d.ts.map +1 -0
  114. package/dist/node/src/services/parent-agent-broker.d.ts +21 -0
  115. package/dist/node/src/services/parent-agent-broker.d.ts.map +1 -0
  116. package/dist/node/src/services/pty-auto-response.d.ts +30 -0
  117. package/dist/node/src/services/pty-auto-response.d.ts.map +1 -0
  118. package/dist/node/src/services/pty-init.d.ts +55 -0
  119. package/dist/node/src/services/pty-init.d.ts.map +1 -0
  120. package/dist/node/src/services/pty-service.d.ts +218 -0
  121. package/dist/node/src/services/pty-service.d.ts.map +1 -0
  122. package/dist/node/src/services/pty-session-io.d.ts +49 -0
  123. package/dist/node/src/services/pty-session-io.d.ts.map +1 -0
  124. package/dist/node/src/services/pty-spawn.d.ts +104 -0
  125. package/dist/node/src/services/pty-spawn.d.ts.map +1 -0
  126. package/dist/node/src/services/pty-types.d.ts +94 -0
  127. package/dist/node/src/services/pty-types.d.ts.map +1 -0
  128. package/dist/node/src/services/repo-input.d.ts +16 -0
  129. package/dist/node/src/services/repo-input.d.ts.map +1 -0
  130. package/dist/node/src/services/session-event-queue.d.ts +25 -0
  131. package/dist/node/src/services/session-event-queue.d.ts.map +1 -0
  132. package/dist/node/src/services/session-store.d.ts +107 -0
  133. package/dist/node/src/services/session-store.d.ts.map +1 -0
  134. package/dist/node/src/services/skill-callback-bridge.d.ts +78 -0
  135. package/dist/node/src/services/skill-callback-bridge.d.ts.map +1 -0
  136. package/dist/node/src/services/skill-essentials.d.ts +16 -0
  137. package/dist/node/src/services/skill-essentials.d.ts.map +1 -0
  138. package/dist/node/src/services/skill-lifeops-context-broker.d.ts +20 -0
  139. package/dist/node/src/services/skill-lifeops-context-broker.d.ts.map +1 -0
  140. package/dist/node/src/services/skill-manifest.d.ts +48 -0
  141. package/dist/node/src/services/skill-manifest.d.ts.map +1 -0
  142. package/dist/node/src/services/skill-recommender.d.ts +51 -0
  143. package/dist/node/src/services/skill-recommender.d.ts.map +1 -0
  144. package/dist/node/src/services/spawn-trajectory.d.ts +23 -0
  145. package/dist/node/src/services/spawn-trajectory.d.ts.map +1 -0
  146. package/dist/node/src/services/stall-classifier.d.ts +69 -0
  147. package/dist/node/src/services/stall-classifier.d.ts.map +1 -0
  148. package/dist/node/src/services/structured-proof-bridge.d.ts +99 -0
  149. package/dist/node/src/services/structured-proof-bridge.d.ts.map +1 -0
  150. package/dist/node/src/services/sub-agent-router.d.ts +38 -0
  151. package/dist/node/src/services/sub-agent-router.d.ts.map +1 -0
  152. package/dist/node/src/services/swarm-coordinator-prompts.d.ts +93 -0
  153. package/dist/node/src/services/swarm-coordinator-prompts.d.ts.map +1 -0
  154. package/dist/node/src/services/swarm-coordinator.d.ts +473 -0
  155. package/dist/node/src/services/swarm-coordinator.d.ts.map +1 -0
  156. package/dist/node/src/services/swarm-decision-loop.d.ts +69 -0
  157. package/dist/node/src/services/swarm-decision-loop.d.ts.map +1 -0
  158. package/dist/node/src/services/swarm-event-triage.d.ts +49 -0
  159. package/dist/node/src/services/swarm-event-triage.d.ts.map +1 -0
  160. package/dist/node/src/services/swarm-history.d.ts +27 -0
  161. package/dist/node/src/services/swarm-history.d.ts.map +1 -0
  162. package/dist/node/src/services/swarm-idle-watchdog.d.ts +22 -0
  163. package/dist/node/src/services/swarm-idle-watchdog.d.ts.map +1 -0
  164. package/dist/node/src/services/task-acceptance.d.ts +8 -0
  165. package/dist/node/src/services/task-acceptance.d.ts.map +1 -0
  166. package/dist/node/src/services/task-agent-auth.d.ts +69 -0
  167. package/dist/node/src/services/task-agent-auth.d.ts.map +1 -0
  168. package/dist/node/src/services/task-agent-frameworks.d.ts +90 -0
  169. package/dist/node/src/services/task-agent-frameworks.d.ts.map +1 -0
  170. package/dist/node/src/services/task-kind.d.ts +3 -0
  171. package/dist/node/src/services/task-kind.d.ts.map +1 -0
  172. package/dist/node/src/services/task-policy.d.ts +17 -0
  173. package/dist/node/src/services/task-policy.d.ts.map +1 -0
  174. package/dist/node/src/services/task-registry.d.ts +550 -0
  175. package/dist/node/src/services/task-registry.d.ts.map +1 -0
  176. package/dist/node/src/services/task-share.d.ts +18 -0
  177. package/dist/node/src/services/task-share.d.ts.map +1 -0
  178. package/dist/node/src/services/task-validation.d.ts +69 -0
  179. package/dist/node/src/services/task-validation.d.ts.map +1 -0
  180. package/dist/node/src/services/task-verifier-runner.d.ts +5 -0
  181. package/dist/node/src/services/task-verifier-runner.d.ts.map +1 -0
  182. package/dist/node/src/services/trajectory-context.d.ts +73 -0
  183. package/dist/node/src/services/trajectory-context.d.ts.map +1 -0
  184. package/dist/node/src/services/trajectory-feedback.d.ts +53 -0
  185. package/dist/node/src/services/trajectory-feedback.d.ts.map +1 -0
  186. package/dist/node/src/services/types.d.ts +152 -0
  187. package/dist/node/src/services/types.d.ts.map +1 -0
  188. package/dist/node/src/services/workspace-git-ops.d.ts +28 -0
  189. package/dist/node/src/services/workspace-git-ops.d.ts.map +1 -0
  190. package/dist/node/src/services/workspace-github.d.ts +60 -0
  191. package/dist/node/src/services/workspace-github.d.ts.map +1 -0
  192. package/dist/node/src/services/workspace-lifecycle.d.ts +18 -0
  193. package/dist/node/src/services/workspace-lifecycle.d.ts.map +1 -0
  194. package/dist/node/src/services/workspace-service.d.ts +122 -0
  195. package/dist/node/src/services/workspace-service.d.ts.map +1 -0
  196. package/dist/node/src/services/workspace-types.d.ts +81 -0
  197. package/dist/node/src/services/workspace-types.d.ts.map +1 -0
  198. package/dist/node/src/setup-routes.d.ts +9 -0
  199. package/dist/node/src/setup-routes.d.ts.map +1 -0
  200. package/dist/node/vitest.config.d.ts +3 -0
  201. package/dist/node/vitest.config.d.ts.map +1 -0
  202. package/docs/default-eliza-skills-and-agent-bridge-plan.md +231 -0
  203. package/docs/sub-agent-routing.md +197 -0
  204. package/package.json +113 -37
  205. package/dist/index.d.ts.map +0 -1
  206. package/dist/index.js +0 -21120
  207. package/dist/index.js.map +0 -109
  208. package/dist/src/actions/messaging.d.ts +0 -24
  209. package/dist/src/actions/messaging.d.ts.map +0 -1
  210. package/dist/src/actions/peek-subagent.d.ts +0 -3
  211. package/dist/src/actions/peek-subagent.d.ts.map +0 -1
  212. package/dist/src/actions/subagent-management.d.ts +0 -7
  213. package/dist/src/actions/subagent-management.d.ts.map +0 -1
  214. package/dist/src/actions/task-management.d.ts +0 -9
  215. package/dist/src/actions/task-management.d.ts.map +0 -1
  216. package/dist/src/config.d.ts +0 -4
  217. package/dist/src/config.d.ts.map +0 -1
  218. package/dist/src/providers/orchestrator-config.d.ts +0 -80
  219. package/dist/src/providers/orchestrator-config.d.ts.map +0 -1
  220. package/dist/src/providers/task-context.d.ts +0 -3
  221. package/dist/src/providers/task-context.d.ts.map +0 -1
  222. package/dist/src/services/agent-orchestrator-service.d.ts +0 -59
  223. package/dist/src/services/agent-orchestrator-service.d.ts.map +0 -1
  224. package/dist/src/services/messaging-service.d.ts +0 -111
  225. package/dist/src/services/messaging-service.d.ts.map +0 -1
  226. package/dist/src/services/sandbox-service.d.ts +0 -103
  227. package/dist/src/services/sandbox-service.d.ts.map +0 -1
  228. package/dist/src/services/subagent-service.d.ts +0 -140
  229. package/dist/src/services/subagent-service.d.ts.map +0 -1
  230. package/dist/src/sub-agents/adapter.d.ts +0 -13
  231. package/dist/src/sub-agents/adapter.d.ts.map +0 -1
  232. package/dist/src/sub-agents/claude-agent-sdk-sub-agent.d.ts +0 -18
  233. package/dist/src/sub-agents/claude-agent-sdk-sub-agent.d.ts.map +0 -1
  234. package/dist/src/sub-agents/codex-sdk-sub-agent.d.ts +0 -18
  235. package/dist/src/sub-agents/codex-sdk-sub-agent.d.ts.map +0 -1
  236. package/dist/src/sub-agents/eliza-sub-agent.d.ts +0 -27
  237. package/dist/src/sub-agents/eliza-sub-agent.d.ts.map +0 -1
  238. package/dist/src/sub-agents/elizaos-native-sub-agent.d.ts +0 -61
  239. package/dist/src/sub-agents/elizaos-native-sub-agent.d.ts.map +0 -1
  240. package/dist/src/sub-agents/index.d.ts +0 -10
  241. package/dist/src/sub-agents/index.d.ts.map +0 -1
  242. package/dist/src/sub-agents/opencode-sub-agent.d.ts +0 -44
  243. package/dist/src/sub-agents/opencode-sub-agent.d.ts.map +0 -1
  244. package/dist/src/sub-agents/registry.d.ts +0 -3
  245. package/dist/src/sub-agents/registry.d.ts.map +0 -1
  246. package/dist/src/sub-agents/sweagent-sub-agent.d.ts +0 -19
  247. package/dist/src/sub-agents/sweagent-sub-agent.d.ts.map +0 -1
  248. package/dist/src/sub-agents/tools.d.ts +0 -15
  249. package/dist/src/sub-agents/tools.d.ts.map +0 -1
  250. package/dist/src/sub-agents/types.d.ts +0 -170
  251. package/dist/src/sub-agents/types.d.ts.map +0 -1
  252. package/dist/src/types/index.d.ts +0 -12
  253. package/dist/src/types/index.d.ts.map +0 -1
  254. package/dist/src/types/messaging.d.ts +0 -202
  255. package/dist/src/types/messaging.d.ts.map +0 -1
  256. package/dist/src/types/sandbox.d.ts +0 -228
  257. package/dist/src/types/sandbox.d.ts.map +0 -1
  258. package/dist/src/types/subagent.d.ts +0 -232
  259. package/dist/src/types/subagent.d.ts.map +0 -1
  260. package/dist/src/types.d.ts +0 -138
  261. package/dist/src/types.d.ts.map +0 -1
  262. package/dist/src/utils/index.d.ts +0 -7
  263. package/dist/src/utils/index.d.ts.map +0 -1
  264. package/dist/src/utils/session.d.ts +0 -184
  265. package/dist/src/utils/session.d.ts.map +0 -1
@@ -0,0 +1,3 @@
1
+ import type { Action } from "@elizaos/core";
2
+ export declare const cancelTaskAction: Action;
3
+ //# sourceMappingURL=cancel-task.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-task.d.ts","sourceRoot":"","sources":["../../../../src/actions/cancel-task.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAgB,MAAM,eAAe,CAAC;AAe1D,eAAO,MAAM,gBAAgB,EAAE,MA+H9B,CAAC"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Handler logic for the START_CODING_TASK action.
3
+ *
4
+ * handleMultiAgent() handles both multi-agent and single-agent modes.
5
+ * A single-agent call is just a length-1 agent spec.
6
+ *
7
+ * @module actions/coding-task-handlers
8
+ */
9
+ import { type ActionResult, type HandlerCallback, type IAgentRuntime, type Memory, type State } from "@elizaos/core";
10
+ import type { AgentCredentials } from "coding-agent-adapters";
11
+ import type { AgentSelectionStrategy } from "../services/agent-selection.js";
12
+ import type { PTYService } from "../services/pty-service.js";
13
+ import { type CodingAgentType } from "../services/pty-types.js";
14
+ import { type SkillSessionAllowList } from "../services/skill-callback-bridge.js";
15
+ import type { CodingWorkspaceService } from "../services/workspace-service.js";
16
+ /**
17
+ * Split the planner's optional multi-agent string without treating shell
18
+ * pipelines in a single task recipe as agent delimiters.
19
+ */
20
+ export declare function splitAgentSpecsParam(input: string): string[];
21
+ export declare function getSkillSessionAllowList(): SkillSessionAllowList;
22
+ /** Shared context passed to both multi-agent and single-agent handlers */
23
+ export interface CodingTaskContext {
24
+ runtime: IAgentRuntime;
25
+ ptyService: PTYService;
26
+ wsService: CodingWorkspaceService | undefined;
27
+ credentials: AgentCredentials;
28
+ customCredentials: Record<string, string> | undefined;
29
+ callback: HandlerCallback | undefined;
30
+ message: Memory;
31
+ state: State | undefined;
32
+ repo: string | undefined;
33
+ defaultAgentType: CodingAgentType;
34
+ rawAgentType: string;
35
+ agentTypeExplicit: boolean;
36
+ agentSelectionStrategy: AgentSelectionStrategy;
37
+ memoryContent: string | undefined;
38
+ approvalPreset: string | undefined;
39
+ explicitLabel: string | undefined;
40
+ /**
41
+ * Optional caller-supplied custom validator spec. Forwarded verbatim into
42
+ * the task's session metadata so the swarm decision loop can resolve and
43
+ * invoke it after the child claims `done`. Shape matches
44
+ * `CustomValidatorSpec` in `services/custom-validator-runner.ts`.
45
+ */
46
+ validator?: {
47
+ service: string;
48
+ method: string;
49
+ params: Record<string, unknown>;
50
+ };
51
+ /** Optional override for ELIZA_APP_VERIFICATION_MAX_RETRIES. */
52
+ maxRetries?: number;
53
+ /** Optional verdict-fail behavior. Defaults to "retry". */
54
+ onVerificationFail?: "retry" | "escalate";
55
+ /**
56
+ * Optional originating roomId — when set, persisted onto session metadata
57
+ * so the verification-room-bridge can post the verdict back to the right
58
+ * chat room. Set by APP.create / PLUGIN.create dispatchers.
59
+ */
60
+ originRoomId?: string;
61
+ }
62
+ /**
63
+ * Multi-agent mode handler.
64
+ *
65
+ * Parses pipe-delimited agent specs and spawns each agent in its own
66
+ * workspace clone (or scratch directory).
67
+ */
68
+ export declare function handleMultiAgent(ctx: CodingTaskContext, agentsParam: string): Promise<ActionResult | undefined>;
69
+ //# sourceMappingURL=coding-task-handlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coding-task-handlers.d.ts","sourceRoot":"","sources":["../../../../src/actions/coding-task-handlers.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EACL,KAAK,YAAY,EAEjB,KAAK,eAAe,EACpB,KAAK,aAAa,EAElB,KAAK,MAAM,EAEX,KAAK,KAAK,EAEX,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,uBAAuB,CAAC;AAE9E,OAAO,KAAK,EA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AAC,CAAC;KACjC,CAAC;IACF,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,kBAAkB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC1C;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,iBAAiB,EACtB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CA8fnC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Helper functions for the START_CODING_TASK action.
3
+ *
4
+ * - createScratchDir() -- Creates a scratch sandbox directory for non-repo tasks
5
+ * - generateLabel() -- Generate a short semantic label from repo URL and/or task description
6
+ * - registerSessionEvents() -- Register lifecycle event handlers for a spawned session
7
+ *
8
+ * @module actions/coding-task-helpers
9
+ */
10
+ import type { IAgentRuntime } from "@elizaos/core";
11
+ import { type HandlerCallback } from "@elizaos/core";
12
+ import type { PTYService } from "../services/pty-service.js";
13
+ import type { SkillSessionAllowList } from "../services/skill-callback-bridge.js";
14
+ /**
15
+ * Create a scratch sandbox directory for non-repo tasks.
16
+ *
17
+ * When `PARALLAX_CODING_DIRECTORY` is set (e.g. `~/Projects`), creates a
18
+ * named subdir like `~/Projects/todo-app/` derived from the task label.
19
+ * Otherwise falls back to `~/.eliza/workspaces/{uuid}`.
20
+ */
21
+ export declare function createScratchDir(runtime?: IAgentRuntime, label?: string): string;
22
+ /**
23
+ * Generate a short semantic label from repo URL and/or task description.
24
+ * e.g. "git-workspace-service-testbed/hello-mima" or "scratch/react-research"
25
+ */
26
+ export declare function generateLabel(repo: string | undefined, task: string | undefined): string;
27
+ /**
28
+ * Register lifecycle event handlers for a spawned session.
29
+ *
30
+ * When `coordinatorActive` is true the SwarmCoordinator owns chat messaging
31
+ * and session lifecycle for blocked / task_complete / error events.
32
+ * This listener still handles scratch-dir cleanup regardless.
33
+ */
34
+ export declare function registerSessionEvents(ptyService: PTYService, runtime: IAgentRuntime, sessionId: string, label: string, scratchDir: string | null, callback?: HandlerCallback, coordinatorActive?: boolean, skillSessionAllowList?: SkillSessionAllowList): void;
35
+ //# sourceMappingURL=coding-task-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coding-task-helpers.d.ts","sourceRoot":"","sources":["../../../../src/actions/coding-task-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,KAAK,eAAe,EAAU,MAAM,eAAe,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAgClF;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,CAAC,EAAE,aAAa,EACvB,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,CA4BR;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,IAAI,EAAE,MAAM,GAAG,SAAS,GACvB,MAAM,CA4BR;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,GAAG,IAAI,EACzB,QAAQ,CAAC,EAAE,eAAe,EAC1B,iBAAiB,UAAQ,EACzB,qBAAqB,CAAC,EAAE,qBAAqB,GAC5C,IAAI,CAqEN"}
@@ -0,0 +1,56 @@
1
+ import type { ActionResult, HandlerCallback, IAgentRuntime, Memory, State } from "@elizaos/core";
2
+ import type { AcpJsonRpcMessage, ApprovalPreset, AvailableAgentInfo, PromptResult, SessionEventName, SessionInfo, SpawnOptions, SpawnResult } from "../services/types.js";
3
+ export interface AcpActionService {
4
+ defaultApprovalPreset?: ApprovalPreset;
5
+ agentSelectionStrategy?: string;
6
+ spawnSession(opts: SpawnOptions): Promise<SpawnResult>;
7
+ sendPrompt?(sessionId: string, text: string, opts?: {
8
+ timeoutMs?: number;
9
+ model?: string;
10
+ }): Promise<PromptResult>;
11
+ sendToSession(sessionId: string, input: string): Promise<PromptResult>;
12
+ sendKeysToSession(sessionId: string, keys?: string): Promise<void>;
13
+ stopSession(sessionId: string, force?: boolean): Promise<void>;
14
+ cancelSession?(sessionId: string): Promise<void>;
15
+ listSessions(): SessionInfo[] | Promise<SessionInfo[]>;
16
+ getSession(sessionId: string): SessionInfo | undefined | Promise<SessionInfo | null | undefined>;
17
+ resolveAgentType?(selection?: Record<string, unknown>): Promise<string> | string;
18
+ checkAvailableAgents?(types?: string[]): Promise<AvailableAgentInfo[]>;
19
+ getAvailableAgents?(): Promise<AvailableAgentInfo[]>;
20
+ onSessionEvent?(handler: (sessionId: string, event: SessionEventName, data: unknown) => void): () => void;
21
+ onAcpEvent?(handler: (event: AcpJsonRpcMessage, sessionId?: string) => void): () => void;
22
+ emitSessionEvent?(sessionId: string, event: SessionEventName, data: unknown): void;
23
+ }
24
+ export type HandlerOptionsLike = {
25
+ parameters?: Record<string, unknown>;
26
+ } | Record<string, unknown>;
27
+ export declare function getAcpService(runtime: IAgentRuntime): AcpActionService | undefined;
28
+ export declare function logger(runtime: IAgentRuntime): import("@elizaos/core").Logger;
29
+ export declare function contentRecord(message: Memory): Record<string, unknown>;
30
+ export declare function paramsRecord(options?: HandlerOptionsLike): Record<string, unknown>;
31
+ export declare function pickString(params: Record<string, unknown>, content: Record<string, unknown>, name: string): string | undefined;
32
+ export declare function pickBoolean(params: Record<string, unknown>, content: Record<string, unknown>, name: string): boolean | undefined;
33
+ export declare function pickNumber(params: Record<string, unknown>, content: Record<string, unknown>, name: string): number | undefined;
34
+ export declare function messageText(message: Memory): string;
35
+ export declare function hasExplicitPayload(message: Memory, fields: string[]): boolean;
36
+ export declare function looksLikeTaskAgentRequest(text: string): boolean;
37
+ export declare function shortId(id: string): string;
38
+ export declare function labelFor(session: Pick<SessionInfo, "id" | "name" | "metadata">): string;
39
+ export declare function newestSession(sessions: SessionInfo[]): SessionInfo | undefined;
40
+ export declare function listSessionsWithin(service: AcpActionService, timeoutMs?: number): Promise<SessionInfo[]>;
41
+ export declare function validateHasSessions(runtime: IAgentRuntime): Promise<boolean>;
42
+ export declare function callbackText(callback: HandlerCallback | undefined, text: string): Promise<void>;
43
+ export declare function errorResult(error: string, text?: string): ActionResult;
44
+ export declare function resolveSession(service: AcpActionService, sessionId: string | undefined, state?: State): Promise<{
45
+ session?: SessionInfo;
46
+ missingId?: string;
47
+ sessions: SessionInfo[];
48
+ }>;
49
+ export declare function setCurrentSession(state: State | undefined, session: SpawnResult | SessionInfo): void;
50
+ export declare function setCurrentSessions(state: State | undefined, sessions: SpawnResult[]): void;
51
+ export declare function emitSessionEvent(service: AcpActionService, sessionId: string, event: SessionEventName, data: unknown): void;
52
+ export declare function parseApproval(value: string | undefined): ApprovalPreset | undefined;
53
+ export declare function isAuthError(error: unknown): boolean;
54
+ export declare function failureMessage(error: unknown): string;
55
+ export declare function getTimeoutMs(params: Record<string, unknown>, content: Record<string, unknown>): number | undefined;
56
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/actions/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,aAAa,EACb,MAAM,EACN,KAAK,EACN,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,gBAAgB;IAC/B,qBAAqB,CAAC,EAAE,cAAc,CAAC;IACvC,sBAAsB,CAA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AAC;CACzB,CAAC,CAeD;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,OAAO,EAAE,WAAW,GAAG,WAAW,GACjC,IAAI,CAEN;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,QAAQ,EAAE,WAAW,EAAE,GACtB,IAAI,CAEN;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,gBAAgB,EACzB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,gBAAgB,EACvB,IAAI,EAAE,OAAO,GACZ,IAAI,CAEN;AAED,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,cAAc,GAAG,SAAS,CAS5B;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAGnD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAErD;AAED,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC/B,MAAM,GAAG,SAAS,CAKpB"}
@@ -0,0 +1,8 @@
1
+ import type { Action } from "@elizaos/core";
2
+ export declare const createTaskAction: Action & {
3
+ suppressPostActionContinuation: true;
4
+ };
5
+ export declare const startCodingTaskAction: Action & {
6
+ suppressPostActionContinuation: true;
7
+ };
8
+ //# sourceMappingURL=create-task.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-task.d.ts","sourceRoot":"","sources":["../../../../src/actions/create-task.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAgB,MAAM,eAAe,CAAC;AAmG1D,eAAO,MAAM,gBAAgB,EAsOxB,MAAM,GAAG;IAAE,8BAA8B,EAAE,IAAI,CAAA;CAAE,CAAC;AAEvD,eAAO,MAAM,qBAAqB;oCAFc,IAAI;CAEC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { Memory } from "@elizaos/core";
2
+ export declare function extractEvalRunMetadata(value: Memory | Record<string, unknown> | null | undefined): {
3
+ scenarioId?: string;
4
+ batchId?: string;
5
+ };
6
+ export declare function mergeTaskThreadEvalMetadata(message: Memory | null | undefined, metadata: Record<string, unknown> | undefined): {
7
+ scenarioId?: string;
8
+ batchId?: string;
9
+ metadata: Record<string, unknown>;
10
+ };
11
+ //# sourceMappingURL=eval-metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eval-metadata.d.ts","sourceRoot":"","sources":["../../../../src/actions/eval-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAsB5C,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,GACzD;IACD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CA0BA;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAClC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC5C;IACD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAkBA"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * FINALIZE_WORKSPACE action - Commit, push, and create PR for workspace changes
3
+ *
4
+ * Completes a coding task by committing changes, pushing to remote,
5
+ * and optionally creating a pull request.
6
+ *
7
+ * @module actions/finalize-workspace
8
+ */
9
+ import type { Action } from "@elizaos/core";
10
+ export declare const finalizeWorkspaceAction: Action;
11
+ //# sourceMappingURL=finalize-workspace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"finalize-workspace.d.ts","sourceRoot":"","sources":["../../../../src/actions/finalize-workspace.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,MAAM,EAOP,MAAM,eAAe,CAAC;AAIvB,eAAO,MAAM,uBAAuB,EAAE,MAuQrC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Action } from "@elizaos/core";
2
+ export declare const listAgentsAction: Action;
3
+ export declare const listTaskAgentsAction: Action;
4
+ //# sourceMappingURL=list-agents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-agents.d.ts","sourceRoot":"","sources":["../../../../src/actions/list-agents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAgB,MAAM,eAAe,CAAC;AAc1D,eAAO,MAAM,gBAAgB,EAAE,MA6E9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAmB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * MANAGE_ISSUES action - Create, list, update, and close GitHub issues
3
+ *
4
+ * Provides full issue lifecycle management through the CodingWorkspaceService.
5
+ * Supports creating issues, listing issues, adding comments, closing, and reopening.
6
+ *
7
+ * @module actions/manage-issues
8
+ */
9
+ import type { Action } from "@elizaos/core";
10
+ export declare const manageIssuesAction: Action;
11
+ //# sourceMappingURL=manage-issues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manage-issues.d.ts","sourceRoot":"","sources":["../../../../src/actions/manage-issues.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,MAAM,EAOP,MAAM,eAAe,CAAC;AAsBvB,eAAO,MAAM,kBAAkB,EAAE,MAuNhC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * PROVISION_WORKSPACE action - Create a git workspace for coding tasks
3
+ *
4
+ * Clones a repository or creates a worktree for isolated development.
5
+ * Useful for setting up a clean environment before spawning a coding agent.
6
+ *
7
+ * @module actions/provision-workspace
8
+ */
9
+ import type { Action } from "@elizaos/core";
10
+ export declare const provisionWorkspaceAction: Action;
11
+ //# sourceMappingURL=provision-workspace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provision-workspace.d.ts","sourceRoot":"","sources":["../../../../src/actions/provision-workspace.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,MAAM,EAOP,MAAM,eAAe,CAAC;AAUvB,eAAO,MAAM,wBAAwB,EAAE,MAwOtC,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Sandbox-build stub for the TASKS coding-agent surface.
3
+ *
4
+ * Store-distributed builds (Mac App Store, Microsoft Store, Flathub) run in
5
+ * an OS sandbox that forbids forking arbitrary user-installed binaries. The
6
+ * orchestrator's spawn paths (claude / codex / opencode CLIs via PTY) are
7
+ * therefore not viable in those builds, so we replace the TASKS action with
8
+ * a single stub that explains the limitation and points the user at the
9
+ * direct-download artifact.
10
+ *
11
+ * Behavior:
12
+ * - validate(): always true — we want this stub to win whenever the
13
+ * planner reaches for any coding-agent simile under sandbox.
14
+ * - handler(): returns a single user-facing error result; no spawn
15
+ * attempt, no workspace allocation, no PTY.
16
+ */
17
+ import type { Action } from "@elizaos/core";
18
+ export declare const tasksSandboxStubAction: Action & {
19
+ suppressPostActionContinuation: true;
20
+ };
21
+ //# sourceMappingURL=sandbox-stub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sandbox-stub.d.ts","sourceRoot":"","sources":["../../../../src/actions/sandbox-stub.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EACV,MAAM,EAMP,MAAM,eAAe,CAAC;AAKvB,eAAO,MAAM,sBAAsB,EAAE,MAAM,GAAG;IAC5C,8BAA8B,EAAE,IAAI,CAAC;CAwEtC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Action } from "@elizaos/core";
2
+ export declare const sendToAgentAction: Action;
3
+ export declare const sendToTaskAgentAction: Action;
4
+ //# sourceMappingURL=send-to-agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-to-agent.d.ts","sourceRoot":"","sources":["../../../../src/actions/send-to-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAgB,MAAM,eAAe,CAAC;AAc1D,eAAO,MAAM,iBAAiB,EAAE,MAyH/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAoB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Action } from "@elizaos/core";
2
+ export declare const spawnAgentAction: Action & {
3
+ suppressPostActionContinuation: true;
4
+ };
5
+ export declare const spawnTaskAgentAction: Action & {
6
+ suppressPostActionContinuation: true;
7
+ };
8
+ //# sourceMappingURL=spawn-agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spawn-agent.d.ts","sourceRoot":"","sources":["../../../../src/actions/spawn-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAgB,MAAM,eAAe,CAAC;AAqB1D,eAAO,MAAM,gBAAgB,EAqIxB,MAAM,GAAG;IAAE,8BAA8B,EAAE,IAAI,CAAA;CAAE,CAAC;AAEvD,eAAO,MAAM,oBAAoB;oCAFe,IAAI;CAEA,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Action } from "@elizaos/core";
2
+ export declare const stopAgentAction: Action;
3
+ export declare const stopTaskAgentAction: Action;
4
+ //# sourceMappingURL=stop-agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stop-agent.d.ts","sourceRoot":"","sources":["../../../../src/actions/stop-agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAgB,MAAM,eAAe,CAAC;AAe1D,eAAO,MAAM,eAAe,EAAE,MAyG7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Action } from "@elizaos/core";
2
+ export declare const taskControlAction: Action;
3
+ //# sourceMappingURL=task-control.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-control.d.ts","sourceRoot":"","sources":["../../../../src/actions/task-control.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAOP,MAAM,eAAe,CAAC;AAyEvB,eAAO,MAAM,iBAAiB,EAAE,MA6O/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Action } from "@elizaos/core";
2
+ export declare const taskHistoryAction: Action;
3
+ //# sourceMappingURL=task-history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-history.d.ts","sourceRoot":"","sources":["../../../../src/actions/task-history.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAMP,MAAM,eAAe,CAAC;AA8MvB,eAAO,MAAM,iBAAiB,EAAE,MA2O/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Action } from "@elizaos/core";
2
+ export declare const taskShareAction: Action;
3
+ //# sourceMappingURL=task-share.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-share.d.ts","sourceRoot":"","sources":["../../../../src/actions/task-share.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAOP,MAAM,eAAe,CAAC;AAYvB,eAAO,MAAM,eAAe,EAAE,MAuL7B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { Memory, State } from "@elizaos/core";
2
+ import type { SwarmCoordinator } from "../services/swarm-coordinator.js";
3
+ import type { TaskThreadSummary } from "../services/task-registry.js";
4
+ export declare function resolveTaskThreadTarget(params: {
5
+ coordinator: SwarmCoordinator;
6
+ message: Memory;
7
+ state?: State;
8
+ options?: Record<string, unknown>;
9
+ includeArchived?: boolean;
10
+ }): Promise<TaskThreadSummary | null>;
11
+ //# sourceMappingURL=task-thread-target.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-thread-target.d.ts","sourceRoot":"","sources":["../../../../src/actions/task-thread-target.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,8BAA8B,CAAC;AAkDtC,wBAAsB,uBAAuB,CAAC,MAAM,EAAE;IACpD,WAAW,EAAE,gBAAgB,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAqDpC"}
@@ -0,0 +1,88 @@
1
+ /**
2
+ * TASKS — single Pattern C parent action that subsumes the orchestrator's
3
+ * task-agent lifecycle, workspace lifecycle, GitHub issue management, and
4
+ * coding-task archive/reopen surface.
5
+ *
6
+ * Old leaf actions live as similes; their handlers were folded into per-op
7
+ * runners on this file.
8
+ *
9
+ * Ops:
10
+ * create — CREATE_AGENT_TASK / START_CODING_TASK
11
+ * spawn_agent — SPAWN_AGENT
12
+ * send — SEND_TO_AGENT
13
+ * stop_agent — STOP_AGENT
14
+ * list_agents — LIST_AGENTS
15
+ * cancel — CANCEL_TASK
16
+ * history — TASK_HISTORY
17
+ * control — TASK_CONTROL (action: pause|resume|stop|continue|archive|reopen)
18
+ * share — TASK_SHARE
19
+ * provision_workspace — CREATE_WORKSPACE / PROVISION_WORKSPACE
20
+ * submit_workspace — SUBMIT_WORKSPACE / FINALIZE_WORKSPACE
21
+ * manage_issues — MANAGE_ISSUES (action: create|list|get|update|comment|close|reopen|add_labels)
22
+ * archive — ARCHIVE_CODING_TASK
23
+ * reopen — REOPEN_CODING_TASK
24
+ *
25
+ * @module actions/tasks
26
+ */
27
+ import type { Action } from "@elizaos/core";
28
+ export declare const tasksAction: Action & {
29
+ suppressPostActionContinuation: true;
30
+ };
31
+ export declare const createTaskAction: Action & {
32
+ suppressPostActionContinuation: true;
33
+ };
34
+ export declare const startCodingTaskAction: Action & {
35
+ suppressPostActionContinuation: true;
36
+ };
37
+ export declare const spawnAgentAction: Action & {
38
+ suppressPostActionContinuation: true;
39
+ };
40
+ export declare const spawnTaskAgentAction: Action & {
41
+ suppressPostActionContinuation: true;
42
+ };
43
+ export declare const sendToAgentAction: Action & {
44
+ suppressPostActionContinuation: true;
45
+ };
46
+ export declare const sendToTaskAgentAction: Action & {
47
+ suppressPostActionContinuation: true;
48
+ };
49
+ export declare const stopAgentAction: Action & {
50
+ suppressPostActionContinuation: true;
51
+ };
52
+ export declare const stopTaskAgentAction: Action & {
53
+ suppressPostActionContinuation: true;
54
+ };
55
+ export declare const listAgentsAction: Action & {
56
+ suppressPostActionContinuation: true;
57
+ };
58
+ export declare const listTaskAgentsAction: Action & {
59
+ suppressPostActionContinuation: true;
60
+ };
61
+ export declare const cancelTaskAction: Action & {
62
+ suppressPostActionContinuation: true;
63
+ };
64
+ export declare const taskHistoryAction: Action & {
65
+ suppressPostActionContinuation: true;
66
+ };
67
+ export declare const taskControlAction: Action & {
68
+ suppressPostActionContinuation: true;
69
+ };
70
+ export declare const taskShareAction: Action & {
71
+ suppressPostActionContinuation: true;
72
+ };
73
+ export declare const provisionWorkspaceAction: Action & {
74
+ suppressPostActionContinuation: true;
75
+ };
76
+ export declare const finalizeWorkspaceAction: Action & {
77
+ suppressPostActionContinuation: true;
78
+ };
79
+ export declare const manageIssuesAction: Action & {
80
+ suppressPostActionContinuation: true;
81
+ };
82
+ export declare const archiveCodingTaskAction: Action & {
83
+ suppressPostActionContinuation: true;
84
+ };
85
+ export declare const reopenCodingTaskAction: Action & {
86
+ suppressPostActionContinuation: true;
87
+ };
88
+ //# sourceMappingURL=tasks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tasks.d.ts","sour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AC;AAC9C,eAAO,MAAM,uBAAuB;oCA5mBiC,IAAI;CA4mBvB,CAAC;AACnD,eAAO,MAAM,sBAAsB;oCA7mBkC,IAAI;CA6mBxB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Task Agent Route Handlers
3
+ *
4
+ * Handles routes for PTY-based task-agent management:
5
+ * - Preflight checks, metrics, workspace files
6
+ * - Approval presets and config
7
+ * - Agent CRUD: list, spawn, get, send, stop, output
8
+ *
9
+ * @module api/agent-routes
10
+ */
11
+ import type { IncomingMessage, ServerResponse } from "node:http";
12
+ import type { RouteContext } from "./route-utils.js";
13
+ /**
14
+ * Handle task-agent routes (/api/coding-agents/*)
15
+ * Returns true if the route was handled, false otherwise
16
+ */
17
+ export declare function handleAgentRoutes(req: IncomingMessage, res: ServerResponse, pathname: string, ctx: RouteContext): Promise<boolean>;
18
+ //# sourceMappingURL=agent-routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-routes.d.ts","sourceRoot":"","sources":["../../../../src/api/agent-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAiBjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAiMrD;;;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,CA2mBlB"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Sub-agent bridge routes — read-only HTTP endpoints exposing parent state.
3
+ *
4
+ * Spawned coding sub-agents (Claude Code, Codex) live in sealed PTY workspaces
5
+ * with no direct access to the parent Eliza runtime's memory, character, or
6
+ * room context. These routes give them a constrained read channel so they can
7
+ * resolve pronouns ("the user's dad") and align with parent context the
8
+ * orchestrator's task brief didn't surface.
9
+ *
10
+ * Endpoints (loopback-only, agentId-authed via the path):
11
+ *
12
+ * GET /api/coding-agents/:sessionId/parent-context
13
+ * GET /api/coding-agents/:sessionId/memory?q=<query>&limit=<N>
14
+ * GET /api/coding-agents/:sessionId/active-workspaces
15
+ *
16
+ * All responses are read-only. Mutations stay with the orchestrator —
17
+ * sub-agents can't write parent state through the bridge.
18
+ *
19
+ * Validation: every request's :sessionId is checked against the coordinator's
20
+ * `tasks` map. Unknown / stale sessions get 404. Tasks in stopped/error/completed
21
+ * status get 410 (so the sub-agent can fall back to no-parent-context mode
22
+ * cleanly).
23
+ *
24
+ * @module api/bridge-routes
25
+ */
26
+ import type { IncomingMessage, ServerResponse } from "node:http";
27
+ import type { RouteContext } from "./route-utils.js";
28
+ /**
29
+ * Entry point — dispatches to the right handler based on parsed path.
30
+ */
31
+ export declare function handleBridgeRoutes(req: IncomingMessage, res: ServerResponse, pathname: string, ctx: RouteContext): Promise<boolean>;
32
+ //# sourceMappingURL=bridge-routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bridge-routes.d.ts","sourceRoot":"","sources":["../../../../src/api/bridge-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAsMrD;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,YAAY,GAChB,OAAO,CAAC,OAAO,CAAC,CAkClB"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Swarm Coordinator Route Handlers
3
+ *
4
+ * Provides SSE streaming and HTTP API for the coordination layer:
5
+ * - SSE event stream for real-time dashboard
6
+ * - Task status and context queries
7
+ * - Pending confirmation management
8
+ * - Supervision level control
9
+ *
10
+ * @module api/coordinator-routes
11
+ */
12
+ import type { IncomingMessage, ServerResponse } from "node:http";
13
+ import type { SwarmCoordinator } from "../services/swarm-coordinator.js";
14
+ import type { RouteContext } from "./route-utils.js";
15
+ /**
16
+ * Handle coordinator routes (/api/coding-agents/coordinator/*)
17
+ * Returns true if the route was handled, false otherwise.
18
+ */
19
+ export declare function handleCoordinatorRoutes(req: IncomingMessage, res: ServerResponse, pathname: string, ctx: RouteContext & {
20
+ coordinator?: SwarmCoordinator;
21
+ }): Promise<boolean>;
22
+ //# sourceMappingURL=coordinator-routes.d.ts.map
@@ -0,0 +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;AAOzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAKrD;;;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,CAmdlB"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Coding Agent HTTP Hooks — Webhook Endpoint
3
+ *
4
+ * Receives structured hook events from coding agent CLI hooks systems.
5
+ * Claude Code sends native HTTP hooks; Gemini CLI bridges via curl commands.
6
+ * Replaces fragile PTY output scraping for state detection with deterministic
7
+ * event-driven signals.
8
+ *
9
+ * @module api/hook-routes
10
+ */
11
+ import type { IncomingMessage, ServerResponse } from "node:http";
12
+ import type { RouteContext } from "./route-utils.js";
13
+ /**
14
+ * Handle Claude Code HTTP hook routes.
15
+ * Returns true if the route was handled, false otherwise.
16
+ */
17
+ export declare function handleHookRoutes(req: IncomingMessage, res: ServerResponse, pathname: string, ctx: RouteContext): Promise<boolean>;
18
+ //# sourceMappingURL=hook-routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hook-routes.d.ts","sourceRoot":"","sources":["../../../../src/api/hook-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAsDrD;;;GAGG;AACH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,YAAY,GAChB,OAAO,CAAC,OAAO,CAAC,CA6KlB"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Issue Route Handlers
3
+ *
4
+ * Handles routes for GitHub issue management:
5
+ * - List issues, create issue
6
+ * - Get issue, comment on issue, close issue
7
+ *
8
+ * @module api/issue-routes
9
+ */
10
+ import type { IncomingMessage, ServerResponse } from "node:http";
11
+ import type { RouteContext } from "./route-utils.js";
12
+ /**
13
+ * Handle issue routes (/api/issues/*)
14
+ * Returns true if the route was handled, false otherwise
15
+ */
16
+ export declare function handleIssueRoutes(req: IncomingMessage, res: ServerResponse, pathname: string, ctx: RouteContext): Promise<boolean>;
17
+ //# sourceMappingURL=issue-routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issue-routes.d.ts","sourceRoot":"","sources":["../../../../src/api/issue-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD;;;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,CA+JlB"}