@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,23 @@
1
+ import { type IAgentRuntime, type SpawnTrajectoryHandle } from "@elizaos/core";
2
+ export declare const TRAJECTORY_PARENT_STEP_METADATA_KEY = "parentTrajectoryStepId";
3
+ export declare const TRAJECTORY_CHILD_STEP_METADATA_KEY = "trajectoryChildStepId";
4
+ export declare const TRAJECTORY_LINK_SOURCE_METADATA_KEY = "trajectoryLinkSource";
5
+ export declare const TRAJECTORY_PARENT_STEP_ENV_KEY = "MILADY_PARENT_TRAJECTORY_STEP_ID";
6
+ export declare const TRAJECTORY_CHILD_STEP_ENV_KEY = "MILADY_TRAJECTORY_CHILD_STEP_ID";
7
+ export interface LinkedSpawnContext {
8
+ parentStepId?: string;
9
+ metadata: Record<string, unknown>;
10
+ env: Record<string, string> | undefined;
11
+ linkChild: SpawnTrajectoryHandle["linkChild"];
12
+ }
13
+ interface WithLinkedSpawnOptions<T> {
14
+ source: string;
15
+ metadata?: Record<string, unknown>;
16
+ env?: Record<string, string>;
17
+ childId?: (result: T) => string | undefined;
18
+ }
19
+ export declare function buildLinkedSpawnMetadata(metadata: Record<string, unknown> | undefined, handle: SpawnTrajectoryHandle, source: string): Record<string, unknown>;
20
+ export declare function buildLinkedSpawnEnv(env: Record<string, string> | undefined, handle: SpawnTrajectoryHandle): Record<string, string> | undefined;
21
+ export declare function withLinkedSpawn<T>(runtime: IAgentRuntime | null | undefined, options: WithLinkedSpawnOptions<T>, spawn: (context: LinkedSpawnContext) => Promise<T> | T): Promise<T>;
22
+ export {};
23
+ //# sourceMappingURL=spawn-trajectory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spawn-trajectory.d.ts","sourceRoot":"","sources":["../../../../src/services/spawn-trajectory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB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ACzC,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,EAClC,KAAK,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,GACrD,OAAO,CAAC,CAAC,CAAC,CAuBZ"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Stall classification subsystem — determines what a "stalled" task agent
3
+ * session is doing (finished, waiting for input, still working, or errored).
4
+ *
5
+ * Extracted as standalone functions that receive dependencies as parameters,
6
+ * making them easy to test without coupling to PTYService.
7
+ *
8
+ * @module services/stall-classifier
9
+ */
10
+ import { type IAgentRuntime } from "@elizaos/core";
11
+ import { type StallClassification } from "pty-manager";
12
+ import type { AgentMetricsTracker } from "./agent-metrics.js";
13
+ import type { DecisionHistoryEntry, TaskContextSummary } from "./swarm-coordinator-prompts.js";
14
+ /** Everything the classifier needs, passed in from PTYService. */
15
+ export interface StallClassifierContext {
16
+ sessionId: string;
17
+ recentOutput: string;
18
+ agentType: string;
19
+ buffers: Map<string, string[]>;
20
+ traceEntries: Array<string | Record<string, unknown>>;
21
+ runtime: IAgentRuntime;
22
+ manager: {
23
+ get(id: string): {
24
+ startedAt?: string | Date;
25
+ } | null | undefined;
26
+ } | null;
27
+ metricsTracker: AgentMetricsTracker;
28
+ /** Write debug snapshots to ~/.eliza/debug/ on stall (default: false) */
29
+ debugSnapshots?: boolean;
30
+ /** Most recent text input sent into the session, used to ignore echoed prompts. */
31
+ lastSentInput?: string;
32
+ log: (msg: string) => void;
33
+ }
34
+ /**
35
+ * Build the LLM system prompt used to classify stalled output.
36
+ */
37
+ export declare function buildStallClassificationPrompt(agentType: string, sessionId: string, output: string): string;
38
+ /**
39
+ * Write a debug snapshot to ~/.eliza/debug/ for offline stall analysis.
40
+ */
41
+ export declare function writeStallSnapshot(sessionId: string, agentType: string, recentOutput: string, effectiveOutput: string, buffers: Map<string, string[]>, traceEntries: Array<string | Record<string, unknown>>, log: (msg: string) => void): Promise<void>;
42
+ /**
43
+ * Main stall classification logic. Determines what a stalled session is doing
44
+ * by checking the buffer, building a prompt, and asking the LLM.
45
+ */
46
+ export declare function classifyStallOutput(ctx: StallClassifierContext): Promise<StallClassification | null>;
47
+ /** Context for the combined classify-and-decide call. */
48
+ export interface CoordinatorClassifyContext extends StallClassifierContext {
49
+ taskContext: TaskContextSummary;
50
+ decisionHistory?: DecisionHistoryEntry[];
51
+ }
52
+ /**
53
+ * Build a combined prompt that classifies the stall AND decides how to respond,
54
+ * merging stall classification with coordinator decision guidelines.
55
+ *
56
+ * Used for coordinator-managed sessions in autonomous mode to eliminate the
57
+ * redundant second LLM call in the coordinator's handleBlocked path.
58
+ */
59
+ export declare function buildCombinedClassifyDecidePrompt(agentType: string, sessionId: string, output: string, taskContext: TaskContextSummary, decisionHistory: DecisionHistoryEntry[]): string;
60
+ /**
61
+ * Combined classify-and-decide for coordinator-managed autonomous sessions.
62
+ *
63
+ * Performs classification AND coordinator-quality response decision in a single
64
+ * LLM call. The suggestedResponse is kept intact (not stripped), so pty-manager
65
+ * auto-responds and the coordinator receives autoResponded: true — skipping
66
+ * the second LLM call in handleBlocked().
67
+ */
68
+ export declare function classifyAndDecideForCoordinator(ctx: CoordinatorClassifyContext): Promise<StallClassification | null>;
69
+ //# sourceMappingURL=stall-classifier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stall-classifier.d.ts","sourceRoot":"","sources":["../../../../src/services/stall-classifier.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,eAAe,CAAC;AAC9D,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAG9D,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AAGxC,kEAAkE;AAClE,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAA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C;AAID,yDAAyD;AACzD,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB;IACxE,WAAW,EAAE,kBAAkB,CAAC;IAChC,eAAe,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAC1C;AAgCD;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAC/C,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,kBAAkB,EAC/B,eAAe,EAAE,oBAAoB,EAAE,GACtC,MAAM,CAgDR;AAED;;;;;;;GAOG;AACH,wBAAsB,+BAA+B,CACnD,GAAG,EAAE,0BAA0B,GAC9B,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAiKrC"}
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Structured proof bridge — captures `APP_CREATE_DONE` / `PLUGIN_CREATE_DONE`
3
+ * sentinels emitted by spawned task agents and persists the structured claim
4
+ * onto the owning task's session metadata so the custom validator can
5
+ * cross-check the claim against actual disk state.
6
+ *
7
+ * Sibling to `skill-callback-bridge.ts`. Unlike the skill bridge, this bridge
8
+ * never dispatches anything back into the runtime — it only records the
9
+ * proof and echoes a brief acknowledgement to the PTY so the agent knows
10
+ * the orchestrator saw it.
11
+ *
12
+ * Sentinel grammar (one per session, on its own line):
13
+ *
14
+ * APP_CREATE_DONE {"appName":"foo","files":[...],"tests":{"passed":N,"failed":0},"lint":"ok","typecheck":"ok"}
15
+ * PLUGIN_CREATE_DONE {"pluginName":"plugin-bar","files":[...],"tests":{"passed":N,"failed":0},"lint":"ok","typecheck":"ok"}
16
+ *
17
+ * @module services/structured-proof-bridge
18
+ */
19
+ import type { IAgentRuntime } from "@elizaos/core";
20
+ import type { PTYService } from "./pty-service.js";
21
+ import type { TaskRegistry } from "./task-registry.js";
22
+ export type StructuredProofKind = "APP_CREATE_DONE" | "PLUGIN_CREATE_DONE";
23
+ export type StructuredProofStatus = "ok";
24
+ export interface StructuredProofTests {
25
+ passed: number;
26
+ failed: number;
27
+ }
28
+ interface BaseStructuredProofClaim {
29
+ /** Kind of completion sentinel emitted by the child. */
30
+ kind: StructuredProofKind;
31
+ /** Relative paths the child claims to have created/modified. Required. */
32
+ files: string[];
33
+ /** Test result summary from the child verification run. */
34
+ tests: StructuredProofTests;
35
+ /** Lint status. Completion proofs only accept "ok". */
36
+ lint: StructuredProofStatus;
37
+ /** Typecheck status. Completion proofs only accept "ok". */
38
+ typecheck: StructuredProofStatus;
39
+ /** Wall-clock timestamp when this proof was recorded. */
40
+ recordedAt: number;
41
+ /** Any other JSON fields the child included. */
42
+ extra?: Record<string, unknown>;
43
+ }
44
+ export interface AppStructuredProofClaim extends BaseStructuredProofClaim {
45
+ kind: "APP_CREATE_DONE";
46
+ appName: string;
47
+ }
48
+ export interface PluginStructuredProofClaim extends BaseStructuredProofClaim {
49
+ kind: "PLUGIN_CREATE_DONE";
50
+ pluginName: string;
51
+ }
52
+ export type StructuredProofClaim = AppStructuredProofClaim | PluginStructuredProofClaim;
53
+ type ParsedStructuredProof = {
54
+ kind: "APP_CREATE_DONE";
55
+ claim: AppStructuredProofClaim;
56
+ } | {
57
+ kind: "PLUGIN_CREATE_DONE";
58
+ claim: PluginStructuredProofClaim;
59
+ };
60
+ /**
61
+ * Parse the first APP_CREATE_DONE / PLUGIN_CREATE_DONE directive in a chunk
62
+ * of agent output, if any. The directive must be on its own line (after
63
+ * optional whitespace) and the JSON must include all required fields:
64
+ * `appName`/`pluginName`, `files`, `tests`, `lint`, and `typecheck`.
65
+ * Anything missing returns a structured "invalid" result so the bridge can
66
+ * log without persisting.
67
+ */
68
+ export declare function parseStructuredProofDirective(text: string): {
69
+ ok: true;
70
+ parsed: ParsedStructuredProof;
71
+ } | {
72
+ ok: false;
73
+ reason: string;
74
+ } | null;
75
+ interface BridgeDeps {
76
+ runtime: IAgentRuntime;
77
+ ptyService: PTYService;
78
+ /** Optional override for tests / non-default registries. */
79
+ taskRegistry?: TaskRegistry;
80
+ }
81
+ /**
82
+ * Reset per-session state. Tests use this to assert idempotency cleanly.
83
+ * Production callers can call this when a session is recycled, but the
84
+ * bridge is robust either way — duplicates are just logged.
85
+ */
86
+ export declare function _resetStructuredProofBridge(): void;
87
+ /**
88
+ * Ensure the bridge is installed exactly once for this runtime+PTY pair.
89
+ * Safe to call from PTYService.start() and from every task spawn.
90
+ */
91
+ export declare function ensureStructuredProofBridge(runtime: IAgentRuntime, ptyService: PTYService): void;
92
+ /**
93
+ * Install the structured-proof bridge. Returns a teardown function. Safe to
94
+ * call multiple times — the caller is responsible for deduplication via
95
+ * `ensureStructuredProofBridge` (or by tracking the returned teardown).
96
+ */
97
+ export declare function installStructuredProofBridge(deps: BridgeDeps): () => void;
98
+ export {};
99
+ //# sourceMappingURL=structured-proof-bridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structured-proof-bridge.d.ts","sourceRoot":"","sources":["../../../../src/services/structured-proof-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAU,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAQvD,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAEzC,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,wBAAwB;IAChC,wDAAwD;IACxD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,0EAA0E;IAC1E,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,2DAA2D;IAC3D,KAAK,EAAE,oBAAoB,CAAC;IAC5B,uDAAuD;IACvD,IAAI,EAAE,qBAAqB,CAAC;IAC5B,4DAA4D;IAC5D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I,CAqFzE"}
@@ -0,0 +1,38 @@
1
+ import type { IAgentRuntime } from "@elizaos/core";
2
+ /**
3
+ * SubAgentRouter takes terminal-significant ACPX session events
4
+ * (`task_complete`, `error`, `blocked`) and posts them as synthetic inbound
5
+ * messages into the runtime so the main agent's normal action layer can
6
+ * decide whether to:
7
+ * - REPLY to the user,
8
+ * - SEND_TO_AGENT to push the sub-agent further,
9
+ * - or both.
10
+ *
11
+ * Routing keys are read from `session.metadata` populated by TASKS op=create
12
+ * at spawn time: `roomId`, `worldId`, `userId`, `messageId`, `source`, `label`.
13
+ *
14
+ * Streaming chunks (`agent_message_chunk`, `tool_running`) are intentionally
15
+ * NOT injected — they would refire the planner constantly and burn cache.
16
+ * The provider is the channel for live status; this router is the channel for
17
+ * boundary events that warrant a decision.
18
+ */
19
+ export declare class SubAgentRouter {
20
+ static serviceType: string;
21
+ static dependencies: string[];
22
+ capabilityDescription: string;
23
+ private readonly runtime;
24
+ private acp;
25
+ private unsubscribe;
26
+ private readonly delivered;
27
+ private readonly roundTripCounts;
28
+ private readonly capExceededSessions;
29
+ private started;
30
+ private roundTripCap;
31
+ constructor(runtime: IAgentRuntime);
32
+ static start(runtime: IAgentRuntime): Promise<SubAgentRouter>;
33
+ start(): Promise<void>;
34
+ stop(): Promise<void>;
35
+ private handleEvent;
36
+ private log;
37
+ }
38
+ //# sourceMappingURL=sub-agent-router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sub-agent-router.d.ts","sourceRoot":"","sources":["../../../../src/services/sub-agent-router.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,eAAe,CAAC;AAQjE;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,cAAc;IACzB,MAAM,CAAC,WAAW,SAA2B;IAC7C,MAAM,CAAC,YAAY,WAA8B;IAEjD,qBAAqB,SACkI;IAEvJ,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgB;IACxC,OAAO,CAAC,GAAG,CAA2B;IACtC,OAAO,CAAC,WAAW,CAA2B;IAC9C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqB;IAC/C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA6B;IAC7D,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAqB;IACzD,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,YAAY,CAA0B;gBAElC,OAAO,EAAE,aAAa;WAIrB,KAAK,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;IAM7D,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAkCtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;YAUb,WAAW;IAoIzB,OAAO,CAAC,GAAG;CAeZ"}
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Prompt construction and response parsing for the Swarm Coordinator's
3
+ * LLM-driven coordination decisions.
4
+ *
5
+ * Pure functions — no side effects, easy to test.
6
+ * Pattern follows stall-classifier.ts:buildStallClassificationPrompt().
7
+ *
8
+ * @module services/swarm-coordinator-prompts
9
+ */
10
+ /** Per-session task context provided to the LLM for decision-making. */
11
+ export interface TaskContextSummary {
12
+ sessionId: string;
13
+ agentType: string;
14
+ label: string;
15
+ originalTask: string;
16
+ workdir: string;
17
+ repo?: string;
18
+ }
19
+ /** A previous coordination decision, included for context continuity. */
20
+ export interface DecisionHistoryEntry {
21
+ event: string;
22
+ promptText: string;
23
+ action: string;
24
+ response?: string;
25
+ reasoning: string;
26
+ }
27
+ /** Summary of a sibling task in the same swarm — for cross-task context. */
28
+ export interface SiblingTaskSummary {
29
+ label: string;
30
+ agentType: string;
31
+ originalTask: string;
32
+ status: string;
33
+ /** Last significant decision or action taken by this sibling. */
34
+ lastKeyDecision?: string;
35
+ /** Summary of what the sibling accomplished (populated on completion). */
36
+ completionSummary?: string;
37
+ }
38
+ /** A significant creative or architectural decision made by an agent in the swarm. */
39
+ export interface SharedDecision {
40
+ /** Which agent made this decision. */
41
+ agentLabel: string;
42
+ /** Brief description of the decision. */
43
+ summary: string;
44
+ /** When it was recorded. */
45
+ timestamp: number;
46
+ }
47
+ /** Parsed LLM response for a coordination decision. */
48
+ export interface CoordinationLLMResponse {
49
+ action: "respond" | "escalate" | "ignore" | "complete";
50
+ /** Text to send (for action=respond with plain text input). */
51
+ response?: string;
52
+ /** Whether to use sendKeysToSession instead of sendToSession. */
53
+ useKeys?: boolean;
54
+ /** Key sequence to send (for TUI interactions). e.g. ["enter"] or ["down","enter"]. */
55
+ keys?: string[];
56
+ /** LLM's reasoning for the decision. */
57
+ reasoning: string;
58
+ /** Brief summary of a significant creative/architectural decision the agent made, if any. */
59
+ keyDecision?: string;
60
+ }
61
+ /**
62
+ * Build the LLM prompt for making a coordination decision about a blocked agent.
63
+ */
64
+ export declare function buildCoordinationPrompt(taskCtx: TaskContextSummary, promptText: string, recentOutput: string, decisionHistory: DecisionHistoryEntry[], siblingTasks?: SiblingTaskSummary[], sharedDecisions?: SharedDecision[], swarmContext?: string): string;
65
+ /**
66
+ * Build the LLM prompt for checking on an idle session that hasn't
67
+ * produced any events for a while.
68
+ */
69
+ export declare function buildIdleCheckPrompt(taskCtx: TaskContextSummary, recentOutput: string, idleMinutes: number, idleCheckNumber: number, maxIdleChecks: number, decisionHistory: DecisionHistoryEntry[], siblingTasks?: SiblingTaskSummary[], sharedDecisions?: SharedDecision[], swarmContext?: string): string;
70
+ /**
71
+ * Build the LLM prompt for assessing whether a completed turn means the
72
+ * overall task is done, or if the agent needs more turns.
73
+ *
74
+ * Called when the adapter detects "task_complete" (agent finished a turn and
75
+ * returned to the idle prompt). The LLM decides whether to stop the session
76
+ * or send a follow-up instruction.
77
+ */
78
+ export declare function buildTurnCompletePrompt(taskCtx: TaskContextSummary, turnOutput: string, decisionHistory: DecisionHistoryEntry[], siblingTasks?: SiblingTaskSummary[], sharedDecisions?: SharedDecision[], swarmContext?: string): string;
79
+ /**
80
+ * Build a natural language event message describing a blocked agent, intended
81
+ * to be processed by Eliza's full ElizaOS pipeline (with conversation memory,
82
+ * personality, and actions). Unlike buildCoordinationPrompt(), this omits the
83
+ * "You are Eliza" preamble (she already IS Eliza in the pipeline) and asks
84
+ * for a JSON action object at the end of her response.
85
+ */
86
+ export declare function buildBlockedEventMessage(taskCtx: TaskContextSummary, promptText: string, recentOutput: string, decisionHistory: DecisionHistoryEntry[], siblingTasks?: SiblingTaskSummary[], sharedDecisions?: SharedDecision[], swarmContext?: string): string;
87
+ /**
88
+ * Build a natural language event message describing a turn completion, intended
89
+ * to be processed by Eliza's full ElizaOS pipeline.
90
+ */
91
+ export declare function buildTurnCompleteEventMessage(taskCtx: TaskContextSummary, turnOutput: string, decisionHistory: DecisionHistoryEntry[], siblingTasks?: SiblingTaskSummary[], sharedDecisions?: SharedDecision[], swarmContext?: string): string;
92
+ export declare function parseCoordinationResponse(llmOutput: string): CoordinationLLMResponse | null;
93
+ //# sourceMappingURL=swarm-coordinator-prompts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swarm-coordinator-prompts.d.ts","sourceRoot":"","sources":["../../../../src/services/swarm-coordinator-prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,wEAAwE;AACxE,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yEAAyE;AACzE,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,4EAA4E;AAC5E,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd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