mcoda 0.1.2 → 0.1.4

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 (461) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +9 -300
  3. package/dist/bin/McodaEntrypoint.d.ts +5 -0
  4. package/dist/bin/McodaEntrypoint.d.ts.map +1 -0
  5. package/dist/bin/McodaEntrypoint.js +175 -0
  6. package/dist/commands/agents/AgentsCommands.d.ts +4 -0
  7. package/dist/commands/agents/AgentsCommands.d.ts.map +1 -0
  8. package/dist/commands/agents/AgentsCommands.js +376 -0
  9. package/dist/commands/agents/GatewayAgentCommand.d.ts +4 -0
  10. package/dist/commands/agents/GatewayAgentCommand.d.ts.map +1 -0
  11. package/dist/commands/agents/GatewayAgentCommand.js +583 -0
  12. package/dist/commands/agents/TestAgentCommand.d.ts +4 -0
  13. package/dist/commands/agents/TestAgentCommand.d.ts.map +1 -0
  14. package/dist/commands/agents/TestAgentCommand.js +57 -0
  15. package/dist/commands/backlog/BacklogCommands.d.ts +17 -0
  16. package/dist/commands/backlog/BacklogCommands.d.ts.map +1 -0
  17. package/dist/commands/backlog/BacklogCommands.js +260 -0
  18. package/dist/commands/backlog/OrderTasksCommand.d.ts +16 -0
  19. package/dist/commands/backlog/OrderTasksCommand.d.ts.map +1 -0
  20. package/dist/commands/backlog/OrderTasksCommand.js +211 -0
  21. package/dist/commands/backlog/TaskShowCommands.d.ts +16 -0
  22. package/dist/commands/backlog/TaskShowCommands.d.ts.map +1 -0
  23. package/dist/commands/backlog/TaskShowCommands.js +275 -0
  24. package/dist/commands/docs/DocsCommands.d.ts +37 -0
  25. package/dist/commands/docs/DocsCommands.d.ts.map +1 -0
  26. package/dist/commands/docs/DocsCommands.js +381 -0
  27. package/dist/commands/estimate/EstimateCommands.d.ts +24 -0
  28. package/dist/commands/estimate/EstimateCommands.d.ts.map +1 -0
  29. package/dist/commands/estimate/EstimateCommands.js +259 -0
  30. package/dist/commands/jobs/JobsCommands.d.ts +24 -0
  31. package/dist/commands/jobs/JobsCommands.d.ts.map +1 -0
  32. package/dist/commands/jobs/JobsCommands.js +535 -0
  33. package/dist/commands/openapi/OpenapiCommands.d.ts +14 -0
  34. package/dist/commands/openapi/OpenapiCommands.d.ts.map +1 -0
  35. package/dist/commands/openapi/OpenapiCommands.js +157 -0
  36. package/dist/commands/planning/CreateTasksCommand.d.ts +17 -0
  37. package/dist/commands/planning/CreateTasksCommand.d.ts.map +1 -0
  38. package/dist/commands/planning/CreateTasksCommand.js +134 -0
  39. package/dist/commands/planning/MigrateTasksCommand.d.ts +15 -0
  40. package/dist/commands/planning/MigrateTasksCommand.d.ts.map +1 -0
  41. package/dist/commands/planning/MigrateTasksCommand.js +95 -0
  42. package/dist/commands/planning/PlanningCommands.d.ts +3 -0
  43. package/dist/commands/planning/PlanningCommands.d.ts.map +1 -0
  44. package/dist/commands/planning/PlanningCommands.js +2 -0
  45. package/dist/commands/planning/QaTasksCommand.d.ts +30 -0
  46. package/dist/commands/planning/QaTasksCommand.d.ts.map +1 -0
  47. package/dist/commands/planning/QaTasksCommand.js +293 -0
  48. package/dist/commands/planning/RefineTasksCommand.d.ts +30 -0
  49. package/dist/commands/planning/RefineTasksCommand.d.ts.map +1 -0
  50. package/dist/commands/planning/RefineTasksCommand.js +365 -0
  51. package/dist/commands/review/CodeReviewCommand.d.ts +21 -0
  52. package/dist/commands/review/CodeReviewCommand.d.ts.map +1 -0
  53. package/dist/commands/review/CodeReviewCommand.js +236 -0
  54. package/dist/commands/routing/RoutingCommands.d.ts +7 -0
  55. package/dist/commands/routing/RoutingCommands.d.ts.map +1 -0
  56. package/dist/commands/routing/RoutingCommands.js +484 -0
  57. package/dist/commands/telemetry/TelemetryCommands.d.ts +26 -0
  58. package/dist/commands/telemetry/TelemetryCommands.d.ts.map +1 -0
  59. package/dist/commands/telemetry/TelemetryCommands.js +313 -0
  60. package/dist/commands/update/UpdateCommands.d.ts +4 -0
  61. package/dist/commands/update/UpdateCommands.d.ts.map +1 -0
  62. package/dist/commands/update/UpdateCommands.js +280 -0
  63. package/dist/commands/work/WorkOnTasksCommand.d.ts +21 -0
  64. package/dist/commands/work/WorkOnTasksCommand.d.ts.map +1 -0
  65. package/dist/commands/work/WorkOnTasksCommand.js +238 -0
  66. package/dist/commands/workspace/SetWorkspaceCommand.d.ts +9 -0
  67. package/dist/commands/workspace/SetWorkspaceCommand.d.ts.map +1 -0
  68. package/dist/commands/workspace/SetWorkspaceCommand.js +128 -0
  69. package/dist/index.d.ts +19 -0
  70. package/dist/index.d.ts.map +1 -0
  71. package/package.json +31 -16
  72. package/.editorconfig +0 -9
  73. package/.eslintrc.cjs +0 -12
  74. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -29
  75. package/.github/ISSUE_TEMPLATE/config.yml +0 -5
  76. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -19
  77. package/.github/workflows/ci.yml +0 -37
  78. package/.github/workflows/nightly.yml +0 -38
  79. package/.github/workflows/release-dry-run.yml +0 -40
  80. package/.github/workflows/release-please.yml +0 -22
  81. package/.github/workflows/release.yml +0 -139
  82. package/.prettierrc +0 -5
  83. package/.release-please-manifest.json +0 -8
  84. package/CLA.md +0 -42
  85. package/CONTRIBUTING.md +0 -38
  86. package/docs/oss_publishing_plan.md +0 -41
  87. package/docs/pdr/.gitkeep +0 -0
  88. package/docs/quality_gates.md +0 -32
  89. package/docs/rfp/.gitkeep +0 -0
  90. package/docs/sds/sds.md +0 -11963
  91. package/docs/usage.md +0 -72
  92. package/openapi/gen-openapi.ts +0 -1
  93. package/openapi/generated/clients/.gitkeep +0 -0
  94. package/openapi/generated/types/.gitkeep +0 -0
  95. package/openapi/generated/types/index.ts +0 -118
  96. package/openapi/mcoda.yaml +0 -2063
  97. package/pack-mcoda.sh +0 -88
  98. package/packages/agents/CHANGELOG.md +0 -7
  99. package/packages/agents/LICENSE +0 -21
  100. package/packages/agents/README.md +0 -9
  101. package/packages/agents/package.json +0 -41
  102. package/packages/agents/src/AgentService/.gitkeep +0 -0
  103. package/packages/agents/src/AgentService/AgentService.d.ts +0 -21
  104. package/packages/agents/src/AgentService/AgentService.d.ts.map +0 -1
  105. package/packages/agents/src/AgentService/AgentService.js +0 -141
  106. package/packages/agents/src/AgentService/AgentService.ts +0 -308
  107. package/packages/agents/src/__tests__/AgentService.test.ts +0 -284
  108. package/packages/agents/src/adapters/AdapterTypes.d.ts +0 -29
  109. package/packages/agents/src/adapters/AdapterTypes.d.ts.map +0 -1
  110. package/packages/agents/src/adapters/AdapterTypes.js +0 -1
  111. package/packages/agents/src/adapters/AdapterTypes.ts +0 -32
  112. package/packages/agents/src/adapters/codex/.gitkeep +0 -0
  113. package/packages/agents/src/adapters/codex/CodexAdapter.d.ts +0 -11
  114. package/packages/agents/src/adapters/codex/CodexAdapter.d.ts.map +0 -1
  115. package/packages/agents/src/adapters/codex/CodexAdapter.js +0 -43
  116. package/packages/agents/src/adapters/codex/CodexAdapter.ts +0 -63
  117. package/packages/agents/src/adapters/codex/CodexCliRunner.ts +0 -154
  118. package/packages/agents/src/adapters/gemini/.gitkeep +0 -0
  119. package/packages/agents/src/adapters/gemini/GeminiAdapter.d.ts +0 -11
  120. package/packages/agents/src/adapters/gemini/GeminiAdapter.d.ts.map +0 -1
  121. package/packages/agents/src/adapters/gemini/GeminiAdapter.js +0 -42
  122. package/packages/agents/src/adapters/gemini/GeminiAdapter.ts +0 -58
  123. package/packages/agents/src/adapters/gemini/GeminiCliRunner.ts +0 -75
  124. package/packages/agents/src/adapters/local/.gitkeep +0 -0
  125. package/packages/agents/src/adapters/local/LocalAdapter.d.ts +0 -11
  126. package/packages/agents/src/adapters/local/LocalAdapter.d.ts.map +0 -1
  127. package/packages/agents/src/adapters/local/LocalAdapter.js +0 -38
  128. package/packages/agents/src/adapters/local/LocalAdapter.ts +0 -43
  129. package/packages/agents/src/adapters/ollama/OllamaCliAdapter.ts +0 -58
  130. package/packages/agents/src/adapters/ollama/OllamaCliRunner.ts +0 -70
  131. package/packages/agents/src/adapters/ollama/OllamaRemoteAdapter.ts +0 -205
  132. package/packages/agents/src/adapters/openai/.gitkeep +0 -0
  133. package/packages/agents/src/adapters/openai/OpenAiAdapter.d.ts +0 -11
  134. package/packages/agents/src/adapters/openai/OpenAiAdapter.d.ts.map +0 -1
  135. package/packages/agents/src/adapters/openai/OpenAiAdapter.js +0 -51
  136. package/packages/agents/src/adapters/openai/OpenAiAdapter.ts +0 -56
  137. package/packages/agents/src/adapters/openai/OpenAiCliAdapter.ts +0 -62
  138. package/packages/agents/src/adapters/qa/.gitkeep +0 -0
  139. package/packages/agents/src/adapters/qa/QaAdapter.d.ts +0 -11
  140. package/packages/agents/src/adapters/qa/QaAdapter.d.ts.map +0 -1
  141. package/packages/agents/src/adapters/qa/QaAdapter.js +0 -37
  142. package/packages/agents/src/adapters/qa/QaAdapter.ts +0 -42
  143. package/packages/agents/src/adapters/zhipu/ZhipuApiAdapter.ts +0 -273
  144. package/packages/agents/src/index.d.ts +0 -8
  145. package/packages/agents/src/index.d.ts.map +0 -1
  146. package/packages/agents/src/index.js +0 -7
  147. package/packages/agents/src/index.ts +0 -11
  148. package/packages/agents/tsconfig.json +0 -14
  149. package/packages/cli/CHANGELOG.md +0 -7
  150. package/packages/cli/LICENSE +0 -21
  151. package/packages/cli/README.md +0 -23
  152. package/packages/cli/package.json +0 -61
  153. package/packages/cli/src/__tests__/AgentsCommands.test.ts +0 -137
  154. package/packages/cli/src/__tests__/BacklogCommands.test.ts +0 -40
  155. package/packages/cli/src/__tests__/CodeReviewCommand.test.ts +0 -594
  156. package/packages/cli/src/__tests__/CreateTasksCommand.test.ts +0 -40
  157. package/packages/cli/src/__tests__/DocsCommands.test.ts +0 -41
  158. package/packages/cli/src/__tests__/EstimateCommands.test.ts +0 -54
  159. package/packages/cli/src/__tests__/JobsCommands.behavior.test.ts +0 -311
  160. package/packages/cli/src/__tests__/JobsCommands.test.ts +0 -49
  161. package/packages/cli/src/__tests__/MigrateTasksCommand.test.ts +0 -36
  162. package/packages/cli/src/__tests__/OpenapiCommands.test.ts +0 -34
  163. package/packages/cli/src/__tests__/OrderTasksCommand.test.ts +0 -150
  164. package/packages/cli/src/__tests__/PlanningCommands.test.ts +0 -9
  165. package/packages/cli/src/__tests__/QaTasksCommand.test.ts +0 -58
  166. package/packages/cli/src/__tests__/RefineTasksCommand.test.ts +0 -63
  167. package/packages/cli/src/__tests__/RoutingCommands.test.ts +0 -302
  168. package/packages/cli/src/__tests__/SetWorkspaceCommand.test.ts +0 -18
  169. package/packages/cli/src/__tests__/TaskShowCommands.test.ts +0 -130
  170. package/packages/cli/src/__tests__/TelemetryCommands.test.ts +0 -35
  171. package/packages/cli/src/__tests__/TestAgentCommand.test.ts +0 -41
  172. package/packages/cli/src/__tests__/UpdateCommands.test.ts +0 -292
  173. package/packages/cli/src/__tests__/WorkOnTasksCommand.test.ts +0 -42
  174. package/packages/cli/src/bin/.gitkeep +0 -0
  175. package/packages/cli/src/bin/McodaEntrypoint.ts +0 -180
  176. package/packages/cli/src/commands/agents/.gitkeep +0 -0
  177. package/packages/cli/src/commands/agents/AgentsCommands.ts +0 -374
  178. package/packages/cli/src/commands/agents/GatewayAgentCommand.ts +0 -621
  179. package/packages/cli/src/commands/agents/TestAgentCommand.ts +0 -63
  180. package/packages/cli/src/commands/backlog/.gitkeep +0 -0
  181. package/packages/cli/src/commands/backlog/BacklogCommands.ts +0 -286
  182. package/packages/cli/src/commands/backlog/OrderTasksCommand.ts +0 -237
  183. package/packages/cli/src/commands/backlog/TaskShowCommands.ts +0 -289
  184. package/packages/cli/src/commands/docs/.gitkeep +0 -0
  185. package/packages/cli/src/commands/docs/DocsCommands.ts +0 -413
  186. package/packages/cli/src/commands/estimate/EstimateCommands.ts +0 -290
  187. package/packages/cli/src/commands/jobs/.gitkeep +0 -0
  188. package/packages/cli/src/commands/jobs/JobsCommands.ts +0 -595
  189. package/packages/cli/src/commands/openapi/OpenapiCommands.ts +0 -167
  190. package/packages/cli/src/commands/planning/.gitkeep +0 -0
  191. package/packages/cli/src/commands/planning/CreateTasksCommand.ts +0 -149
  192. package/packages/cli/src/commands/planning/MigrateTasksCommand.ts +0 -105
  193. package/packages/cli/src/commands/planning/PlanningCommands.ts +0 -1
  194. package/packages/cli/src/commands/planning/QaTasksCommand.ts +0 -320
  195. package/packages/cli/src/commands/planning/RefineTasksCommand.ts +0 -408
  196. package/packages/cli/src/commands/review/CodeReviewCommand.ts +0 -262
  197. package/packages/cli/src/commands/routing/.gitkeep +0 -0
  198. package/packages/cli/src/commands/routing/RoutingCommands.ts +0 -554
  199. package/packages/cli/src/commands/telemetry/.gitkeep +0 -0
  200. package/packages/cli/src/commands/telemetry/TelemetryCommands.ts +0 -348
  201. package/packages/cli/src/commands/update/.gitkeep +0 -0
  202. package/packages/cli/src/commands/update/UpdateCommands.ts +0 -301
  203. package/packages/cli/src/commands/work/WorkOnTasksCommand.ts +0 -264
  204. package/packages/cli/src/commands/workspace/SetWorkspaceCommand.ts +0 -132
  205. package/packages/cli/test/packaging_guardrails.test.js +0 -75
  206. package/packages/cli/tsconfig.json +0 -20
  207. package/packages/core/CHANGELOG.md +0 -7
  208. package/packages/core/LICENSE +0 -21
  209. package/packages/core/README.md +0 -9
  210. package/packages/core/package.json +0 -45
  211. package/packages/core/src/__tests__/SmokeClasses.test.ts +0 -32
  212. package/packages/core/src/api/AgentsApi.ts +0 -219
  213. package/packages/core/src/api/QaTasksApi.ts +0 -38
  214. package/packages/core/src/api/TasksApi.ts +0 -35
  215. package/packages/core/src/api/__tests__/AgentsApi.test.ts +0 -203
  216. package/packages/core/src/api/__tests__/QaTasksApi.test.ts +0 -51
  217. package/packages/core/src/api/__tests__/TasksApi.test.ts +0 -56
  218. package/packages/core/src/config/.gitkeep +0 -0
  219. package/packages/core/src/config/ConfigService.ts +0 -1
  220. package/packages/core/src/domain/dependencies/.gitkeep +0 -0
  221. package/packages/core/src/domain/dependencies/Dependency.ts +0 -1
  222. package/packages/core/src/domain/epics/.gitkeep +0 -0
  223. package/packages/core/src/domain/epics/Epic.ts +0 -1
  224. package/packages/core/src/domain/projects/.gitkeep +0 -0
  225. package/packages/core/src/domain/projects/Project.ts +0 -1
  226. package/packages/core/src/domain/tasks/.gitkeep +0 -0
  227. package/packages/core/src/domain/tasks/Task.ts +0 -1
  228. package/packages/core/src/domain/userStories/.gitkeep +0 -0
  229. package/packages/core/src/domain/userStories/UserStory.ts +0 -1
  230. package/packages/core/src/index.ts +0 -27
  231. package/packages/core/src/prompts/.gitkeep +0 -0
  232. package/packages/core/src/prompts/PdrPrompts.ts +0 -23
  233. package/packages/core/src/prompts/PromptLoader.ts +0 -1
  234. package/packages/core/src/prompts/SdsPrompts.ts +0 -47
  235. package/packages/core/src/services/agents/.gitkeep +0 -0
  236. package/packages/core/src/services/agents/AgentManagementService.ts +0 -1
  237. package/packages/core/src/services/agents/GatewayAgentService.ts +0 -956
  238. package/packages/core/src/services/agents/RoutingService.ts +0 -461
  239. package/packages/core/src/services/agents/__tests__/GatewayAgentService.test.ts +0 -72
  240. package/packages/core/src/services/agents/__tests__/RoutingService.test.ts +0 -267
  241. package/packages/core/src/services/agents/generated/RoutingApiClient.ts +0 -89
  242. package/packages/core/src/services/backlog/.gitkeep +0 -0
  243. package/packages/core/src/services/backlog/BacklogService.ts +0 -580
  244. package/packages/core/src/services/backlog/TaskOrderingService.ts +0 -868
  245. package/packages/core/src/services/backlog/__tests__/BacklogService.test.ts +0 -219
  246. package/packages/core/src/services/backlog/__tests__/TaskOrderingService.test.ts +0 -268
  247. package/packages/core/src/services/docs/.gitkeep +0 -0
  248. package/packages/core/src/services/docs/DocsService.ts +0 -1913
  249. package/packages/core/src/services/docs/__tests__/DocsService.test.ts +0 -350
  250. package/packages/core/src/services/estimate/EstimateService.ts +0 -111
  251. package/packages/core/src/services/estimate/VelocityService.ts +0 -272
  252. package/packages/core/src/services/estimate/__tests__/VelocityAndEstimate.test.ts +0 -209
  253. package/packages/core/src/services/estimate/types.ts +0 -41
  254. package/packages/core/src/services/execution/.gitkeep +0 -0
  255. package/packages/core/src/services/execution/ExecutionService.ts +0 -1
  256. package/packages/core/src/services/execution/QaFollowupService.ts +0 -289
  257. package/packages/core/src/services/execution/QaProfileService.ts +0 -160
  258. package/packages/core/src/services/execution/QaTasksService.ts +0 -1303
  259. package/packages/core/src/services/execution/TaskSelectionService.ts +0 -362
  260. package/packages/core/src/services/execution/TaskStateService.ts +0 -64
  261. package/packages/core/src/services/execution/WorkOnTasksService.ts +0 -2023
  262. package/packages/core/src/services/execution/__tests__/QaFollowupService.test.ts +0 -58
  263. package/packages/core/src/services/execution/__tests__/QaProfileService.test.ts +0 -49
  264. package/packages/core/src/services/execution/__tests__/QaTasksService.test.ts +0 -157
  265. package/packages/core/src/services/execution/__tests__/TaskSelectionService.test.ts +0 -179
  266. package/packages/core/src/services/execution/__tests__/TaskStateService.test.ts +0 -51
  267. package/packages/core/src/services/execution/__tests__/WorkOnTasksService.test.ts +0 -285
  268. package/packages/core/src/services/jobs/.gitkeep +0 -0
  269. package/packages/core/src/services/jobs/JobInsightsService.ts +0 -355
  270. package/packages/core/src/services/jobs/JobResumeService.ts +0 -119
  271. package/packages/core/src/services/jobs/JobService.ts +0 -648
  272. package/packages/core/src/services/jobs/JobsApiClient.ts +0 -113
  273. package/packages/core/src/services/jobs/__tests__/JobInsightsService.test.ts +0 -17
  274. package/packages/core/src/services/jobs/__tests__/JobResumeService.test.ts +0 -45
  275. package/packages/core/src/services/jobs/__tests__/JobService.test.ts +0 -44
  276. package/packages/core/src/services/openapi/OpenApiService.ts +0 -558
  277. package/packages/core/src/services/openapi/__tests__/OpenApiService.test.ts +0 -57
  278. package/packages/core/src/services/planning/.gitkeep +0 -0
  279. package/packages/core/src/services/planning/CreateTasksService.ts +0 -1280
  280. package/packages/core/src/services/planning/KeyHelpers.ts +0 -80
  281. package/packages/core/src/services/planning/PlanningService.ts +0 -1
  282. package/packages/core/src/services/planning/RefineTasksService.ts +0 -1552
  283. package/packages/core/src/services/planning/__tests__/CreateTasksService.test.ts +0 -288
  284. package/packages/core/src/services/planning/__tests__/KeyHelpers.test.ts +0 -16
  285. package/packages/core/src/services/planning/__tests__/RefineTasksService.test.ts +0 -172
  286. package/packages/core/src/services/review/CodeReviewService.ts +0 -1386
  287. package/packages/core/src/services/review/__tests__/CodeReviewService.test.ts +0 -89
  288. package/packages/core/src/services/system/SystemUpdateService.ts +0 -177
  289. package/packages/core/src/services/system/__tests__/SystemUpdateService.test.ts +0 -40
  290. package/packages/core/src/services/tasks/TaskApiResolver.ts +0 -37
  291. package/packages/core/src/services/tasks/TaskDetailService.ts +0 -494
  292. package/packages/core/src/services/tasks/__tests__/TaskApiResolver.test.ts +0 -41
  293. package/packages/core/src/services/tasks/__tests__/TaskDetailService.test.ts +0 -178
  294. package/packages/core/src/services/telemetry/.gitkeep +0 -0
  295. package/packages/core/src/services/telemetry/TelemetryService.ts +0 -515
  296. package/packages/core/src/services/telemetry/__tests__/TelemetryService.test.ts +0 -160
  297. package/packages/core/src/workspace/.gitkeep +0 -0
  298. package/packages/core/src/workspace/WorkspaceManager.ts +0 -234
  299. package/packages/core/tsconfig.json +0 -20
  300. package/packages/db/CHANGELOG.md +0 -7
  301. package/packages/db/LICENSE +0 -21
  302. package/packages/db/README.md +0 -9
  303. package/packages/db/package.json +0 -42
  304. package/packages/db/src/__tests__/GlobalRepository.test.ts +0 -109
  305. package/packages/db/src/__tests__/SchemaAlignment.test.ts +0 -80
  306. package/packages/db/src/__tests__/WorkspaceRepository.test.ts +0 -19
  307. package/packages/db/src/index.d.ts +0 -6
  308. package/packages/db/src/index.d.ts.map +0 -1
  309. package/packages/db/src/index.js +0 -5
  310. package/packages/db/src/index.ts +0 -6
  311. package/packages/db/src/migrations/global/.gitkeep +0 -0
  312. package/packages/db/src/migrations/global/GlobalMigrations.d.ts +0 -9
  313. package/packages/db/src/migrations/global/GlobalMigrations.d.ts.map +0 -1
  314. package/packages/db/src/migrations/global/GlobalMigrations.js +0 -68
  315. package/packages/db/src/migrations/global/GlobalMigrations.ts +0 -336
  316. package/packages/db/src/migrations/workspace/.gitkeep +0 -0
  317. package/packages/db/src/migrations/workspace/WorkspaceMigrations.d.ts +0 -9
  318. package/packages/db/src/migrations/workspace/WorkspaceMigrations.d.ts.map +0 -1
  319. package/packages/db/src/migrations/workspace/WorkspaceMigrations.js +0 -251
  320. package/packages/db/src/migrations/workspace/WorkspaceMigrations.ts +0 -248
  321. package/packages/db/src/repositories/global/.gitkeep +0 -0
  322. package/packages/db/src/repositories/global/GlobalRepository.d.ts +0 -30
  323. package/packages/db/src/repositories/global/GlobalRepository.d.ts.map +0 -1
  324. package/packages/db/src/repositories/global/GlobalRepository.js +0 -209
  325. package/packages/db/src/repositories/global/GlobalRepository.ts +0 -492
  326. package/packages/db/src/repositories/workspace/.gitkeep +0 -0
  327. package/packages/db/src/repositories/workspace/WorkspaceRepository.d.ts +0 -282
  328. package/packages/db/src/repositories/workspace/WorkspaceRepository.d.ts.map +0 -1
  329. package/packages/db/src/repositories/workspace/WorkspaceRepository.js +0 -773
  330. package/packages/db/src/repositories/workspace/WorkspaceRepository.ts +0 -1511
  331. package/packages/db/src/sqlite/connection.d.ts +0 -11
  332. package/packages/db/src/sqlite/connection.d.ts.map +0 -1
  333. package/packages/db/src/sqlite/connection.js +0 -31
  334. package/packages/db/src/sqlite/connection.ts +0 -35
  335. package/packages/db/src/sqlite/pragmas.d.ts +0 -5
  336. package/packages/db/src/sqlite/pragmas.d.ts.map +0 -1
  337. package/packages/db/src/sqlite/pragmas.js +0 -6
  338. package/packages/db/src/sqlite/pragmas.ts +0 -10
  339. package/packages/db/tsconfig.json +0 -13
  340. package/packages/generators/package.json +0 -21
  341. package/packages/generators/src/__tests__/Generators.test.ts +0 -19
  342. package/packages/generators/src/index.ts +0 -1
  343. package/packages/generators/src/openapi/generateTypes.ts +0 -1
  344. package/packages/generators/src/openapi/validateSchema.ts +0 -1
  345. package/packages/generators/src/scaffolding/docs/.gitkeep +0 -0
  346. package/packages/generators/src/scaffolding/docs/DocsScaffolder.ts +0 -1
  347. package/packages/generators/src/scaffolding/global/.gitkeep +0 -0
  348. package/packages/generators/src/scaffolding/global/GlobalScaffolder.ts +0 -1
  349. package/packages/generators/src/scaffolding/workspace/.gitkeep +0 -0
  350. package/packages/generators/src/scaffolding/workspace/WorkspaceScaffolder.ts +0 -1
  351. package/packages/generators/tsconfig.json +0 -10
  352. package/packages/integrations/CHANGELOG.md +0 -7
  353. package/packages/integrations/LICENSE +0 -21
  354. package/packages/integrations/README.md +0 -9
  355. package/packages/integrations/package.json +0 -47
  356. package/packages/integrations/src/docdex/.gitkeep +0 -0
  357. package/packages/integrations/src/docdex/DocdexClient.d.ts +0 -50
  358. package/packages/integrations/src/docdex/DocdexClient.d.ts.map +0 -1
  359. package/packages/integrations/src/docdex/DocdexClient.js +0 -216
  360. package/packages/integrations/src/docdex/DocdexClient.ts +0 -261
  361. package/packages/integrations/src/docdex/__tests__/DocdexClient.test.ts +0 -29
  362. package/packages/integrations/src/index.d.ts +0 -2
  363. package/packages/integrations/src/index.d.ts.map +0 -1
  364. package/packages/integrations/src/index.js +0 -4
  365. package/packages/integrations/src/index.ts +0 -5
  366. package/packages/integrations/src/issues/.gitkeep +0 -0
  367. package/packages/integrations/src/issues/IssuesClient.ts +0 -1
  368. package/packages/integrations/src/issues/__tests__/IssuesClient.test.ts +0 -10
  369. package/packages/integrations/src/qa/.gitkeep +0 -0
  370. package/packages/integrations/src/qa/ChromiumQaAdapter.ts +0 -89
  371. package/packages/integrations/src/qa/CliQaAdapter.ts +0 -95
  372. package/packages/integrations/src/qa/MaestroQaAdapter.ts +0 -91
  373. package/packages/integrations/src/qa/QaAdapter.ts +0 -7
  374. package/packages/integrations/src/qa/QaClient.ts +0 -1
  375. package/packages/integrations/src/qa/QaTypes.ts +0 -26
  376. package/packages/integrations/src/qa/__tests__/ChromiumQaAdapter.test.ts +0 -30
  377. package/packages/integrations/src/qa/__tests__/CliQaAdapter.test.ts +0 -33
  378. package/packages/integrations/src/qa/__tests__/MaestroQaAdapter.test.ts +0 -30
  379. package/packages/integrations/src/qa/index.ts +0 -5
  380. package/packages/integrations/src/system/SystemClient.ts +0 -50
  381. package/packages/integrations/src/system/__tests__/SystemClient.test.ts +0 -40
  382. package/packages/integrations/src/telemetry/TelemetryClient.ts +0 -139
  383. package/packages/integrations/src/telemetry/__tests__/TelemetryClient.test.ts +0 -41
  384. package/packages/integrations/src/vcs/.gitkeep +0 -0
  385. package/packages/integrations/src/vcs/VcsClient.ts +0 -211
  386. package/packages/integrations/src/vcs/__tests__/VcsClient.test.ts +0 -26
  387. package/packages/integrations/tsconfig.json +0 -14
  388. package/packages/shared/CHANGELOG.md +0 -7
  389. package/packages/shared/LICENSE +0 -21
  390. package/packages/shared/README.md +0 -9
  391. package/packages/shared/package.json +0 -40
  392. package/packages/shared/src/__tests__/CommandMetadata.test.ts +0 -15
  393. package/packages/shared/src/__tests__/ServiceShells.test.ts +0 -16
  394. package/packages/shared/src/crypto/.gitkeep +0 -0
  395. package/packages/shared/src/crypto/CryptoHelper.d.ts +0 -15
  396. package/packages/shared/src/crypto/CryptoHelper.d.ts.map +0 -1
  397. package/packages/shared/src/crypto/CryptoHelper.js +0 -54
  398. package/packages/shared/src/crypto/CryptoHelper.ts +0 -57
  399. package/packages/shared/src/errors/.gitkeep +0 -0
  400. package/packages/shared/src/errors/ErrorFactory.ts +0 -1
  401. package/packages/shared/src/index.d.ts +0 -6
  402. package/packages/shared/src/index.d.ts.map +0 -1
  403. package/packages/shared/src/index.js +0 -4
  404. package/packages/shared/src/index.ts +0 -35
  405. package/packages/shared/src/logging/.gitkeep +0 -0
  406. package/packages/shared/src/logging/Logger.ts +0 -1
  407. package/packages/shared/src/metadata/CommandMetadata.ts +0 -165
  408. package/packages/shared/src/openapi/.gitkeep +0 -0
  409. package/packages/shared/src/openapi/OpenApiTypes.d.ts +0 -216
  410. package/packages/shared/src/openapi/OpenApiTypes.d.ts.map +0 -1
  411. package/packages/shared/src/openapi/OpenApiTypes.js +0 -1
  412. package/packages/shared/src/openapi/OpenApiTypes.ts +0 -312
  413. package/packages/shared/src/paths/.gitkeep +0 -0
  414. package/packages/shared/src/paths/PathHelper.d.ts +0 -12
  415. package/packages/shared/src/paths/PathHelper.d.ts.map +0 -1
  416. package/packages/shared/src/paths/PathHelper.js +0 -24
  417. package/packages/shared/src/paths/PathHelper.ts +0 -29
  418. package/packages/shared/src/qa/QaProfile.ts +0 -14
  419. package/packages/shared/src/utils/.gitkeep +0 -0
  420. package/packages/shared/src/utils/UtilityService.ts +0 -1
  421. package/packages/shared/tsconfig.json +0 -10
  422. package/packages/testing/package.json +0 -26
  423. package/packages/testing/src/__tests__/TestingFakes.test.ts +0 -15
  424. package/packages/testing/src/cli/e2e/.gitkeep +0 -0
  425. package/packages/testing/src/cli/e2e/E2eSuite.ts +0 -1
  426. package/packages/testing/src/fakes/agents/.gitkeep +0 -0
  427. package/packages/testing/src/fakes/agents/FakeAgents.ts +0 -1
  428. package/packages/testing/src/fakes/docdex/.gitkeep +0 -0
  429. package/packages/testing/src/fakes/docdex/FakeDocdexClient.ts +0 -1
  430. package/packages/testing/src/fakes/qa/.gitkeep +0 -0
  431. package/packages/testing/src/fakes/qa/FakeQaClient.ts +0 -1
  432. package/packages/testing/src/fakes/vcs/.gitkeep +0 -0
  433. package/packages/testing/src/fakes/vcs/FakeVcsClient.ts +0 -1
  434. package/packages/testing/src/fixtures/db/.gitkeep +0 -0
  435. package/packages/testing/src/fixtures/db/DbFixtures.ts +0 -1
  436. package/packages/testing/src/fixtures/workspaces/.gitkeep +0 -0
  437. package/packages/testing/src/fixtures/workspaces/WorkspaceFixtures.ts +0 -1
  438. package/packages/testing/src/index.ts +0 -1
  439. package/packages/testing/tsconfig.json +0 -10
  440. package/pnpm-workspace.yaml +0 -2
  441. package/prompts/README.md +0 -5
  442. package/prompts/code-reviewer.md +0 -23
  443. package/prompts/code-writer.md +0 -35
  444. package/prompts/gateway-agent.md +0 -27
  445. package/prompts/qa-agent.md +0 -21
  446. package/release-please-config.json +0 -39
  447. package/scripts/build-all.ts +0 -1
  448. package/scripts/dev.ts +0 -1
  449. package/scripts/install-local-cli.sh +0 -28
  450. package/scripts/pack-npm-tarballs.js +0 -63
  451. package/scripts/release.ts +0 -1
  452. package/scripts/run-node-tests.js +0 -37
  453. package/tests/all.js +0 -127
  454. package/tests/api/openapi_spec.test.js +0 -21
  455. package/tests/artifacts.md +0 -31
  456. package/tests/component/cli_version.test.js +0 -38
  457. package/tests/integration/workspace_resolver.test.js +0 -44
  458. package/tests/unit/crypto_helper.test.js +0 -36
  459. package/tests/unit/path_helper.test.js +0 -20
  460. package/tsconfig.base.json +0 -32
  461. /package/{packages/cli/src/index.ts → dist/index.js} +0 -0
@@ -1,2063 +0,0 @@
1
- openapi: 3.1.0
2
- info:
3
- title: mcoda API
4
- version: 0.0.0
5
- tags:
6
- - name: Agents
7
- description: Global agent registry and credentials
8
- - name: Routing
9
- description: Workspace routing defaults and previews
10
- - name: Tasks
11
- description: Task detail, comments, dependency ordering
12
- - name: Work
13
- description: Planning and execution flows
14
- - name: Review
15
- description: Code review workflows
16
- - name: QA
17
- description: QA orchestration and verification
18
- - name: Backlog
19
- description: Backlog visibility and ordering
20
- - name: Estimate
21
- description: Estimation and velocity reporting
22
- - name: Telemetry
23
- description: Token usage and aggregated telemetry
24
- - name: Jobs
25
- description: Job engine and command runs
26
- - name: Docdex
27
- description: Documentation retrieval and indexing
28
- - name: Config
29
- description: Workspace configuration
30
- - name: System
31
- description: System health and metadata
32
- x-mcoda-command-capabilities:
33
- create-tasks:
34
- required: [plan]
35
- refine-tasks:
36
- required: [plan]
37
- work-on-tasks:
38
- required: [code_write]
39
- code-review:
40
- required: [code_review]
41
- qa-tasks:
42
- required: [qa_interpretation]
43
- pdr:
44
- required: [docdex_query]
45
- sds:
46
- required: [docdex_query]
47
- openapi-from-docs:
48
- required: [docdex_query]
49
- order-tasks:
50
- required: [plan]
51
- gateway-agent:
52
- required: [plan, docdex_query]
53
- paths:
54
- /agents:
55
- get:
56
- summary: List configured agents
57
- operationId: listAgents
58
- tags: [Agents]
59
- responses:
60
- "200":
61
- description: Agents list
62
- content:
63
- application/json:
64
- schema:
65
- type: array
66
- items:
67
- $ref: "#/components/schemas/Agent"
68
- x-mcoda-cli.name: agent
69
- x-mcoda-cli.output-shape: table
70
- x-mcoda-tools:
71
- - docdex
72
- x-mcoda-docdex-profile: sds
73
- post:
74
- summary: Create a new agent
75
- operationId: createAgent
76
- tags: [Agents]
77
- requestBody:
78
- required: true
79
- content:
80
- application/json:
81
- schema:
82
- $ref: "#/components/schemas/CreateAgentRequest"
83
- responses:
84
- "201":
85
- description: Created
86
- content:
87
- application/json:
88
- schema:
89
- $ref: "#/components/schemas/Agent"
90
- x-mcoda-cli.name: agent
91
- x-mcoda-cli.output-shape: scalar
92
- x-mcoda-prompts:
93
- - agent_manage
94
- /agents/{id}:
95
- parameters:
96
- - name: id
97
- in: path
98
- required: true
99
- schema:
100
- type: string
101
- description: Agent id or slug
102
- get:
103
- summary: Get an agent
104
- operationId: getAgent
105
- tags: [Agents]
106
- responses:
107
- "200":
108
- description: Agent
109
- content:
110
- application/json:
111
- schema:
112
- $ref: "#/components/schemas/Agent"
113
- x-mcoda-cli.name: agent
114
- x-mcoda-cli.output-shape: scalar
115
- patch:
116
- summary: Update an agent
117
- operationId: updateAgent
118
- tags: [Agents]
119
- requestBody:
120
- required: true
121
- content:
122
- application/json:
123
- schema:
124
- $ref: "#/components/schemas/UpdateAgentRequest"
125
- responses:
126
- "200":
127
- description: Updated
128
- content:
129
- application/json:
130
- schema:
131
- $ref: "#/components/schemas/Agent"
132
- x-mcoda-cli.name: agent
133
- x-mcoda-cli.output-shape: scalar
134
- delete:
135
- summary: Delete an agent
136
- operationId: deleteAgent
137
- tags: [Agents]
138
- responses:
139
- "204":
140
- description: Deleted
141
- x-mcoda-cli.name: agent
142
- x-mcoda-cli.output-shape: scalar
143
- /agents/{id}/prompts:
144
- parameters:
145
- - name: id
146
- in: path
147
- required: true
148
- schema:
149
- type: string
150
- get:
151
- summary: Get agent prompt manifest
152
- operationId: getAgentPrompts
153
- tags: [Agents]
154
- responses:
155
- "200":
156
- description: Prompt manifest
157
- content:
158
- application/json:
159
- schema:
160
- $ref: "#/components/schemas/AgentPromptManifest"
161
- x-mcoda-cli.name: agent
162
- x-mcoda-cli.output-shape: scalar
163
- /agents/{id}/auth:
164
- parameters:
165
- - name: id
166
- in: path
167
- required: true
168
- schema:
169
- type: string
170
- post:
171
- summary: Attach or update credentials for an agent
172
- operationId: setAgentAuth
173
- tags: [Agents]
174
- requestBody:
175
- required: true
176
- content:
177
- application/json:
178
- schema:
179
- $ref: "#/components/schemas/AgentAuthRequest"
180
- responses:
181
- "200":
182
- description: Stored auth metadata (secret is never returned)
183
- content:
184
- application/json:
185
- schema:
186
- $ref: "#/components/schemas/AgentAuth"
187
- x-mcoda-cli.name: agent
188
- x-mcoda-cli.output-shape: scalar
189
- /agents/{id}/test:
190
- parameters:
191
- - name: id
192
- in: path
193
- required: true
194
- schema:
195
- type: string
196
- post:
197
- summary: Test an agent connection
198
- operationId: testAgent
199
- tags: [Agents]
200
- responses:
201
- "200":
202
- description: Health result
203
- content:
204
- application/json:
205
- schema:
206
- $ref: "#/components/schemas/AgentHealth"
207
- x-mcoda-cli.name: test-agent
208
- x-mcoda-cli.output-shape: scalar
209
- x-mcoda-agent-roles:
210
- - reviewer
211
- /workspaces/{id}/defaults:
212
- parameters:
213
- - name: id
214
- in: path
215
- required: true
216
- schema:
217
- type: string
218
- get:
219
- summary: Get routing defaults for a workspace
220
- operationId: getRoutingDefaults
221
- tags: [Routing]
222
- responses:
223
- "200":
224
- description: Routing defaults
225
- content:
226
- application/json:
227
- schema:
228
- $ref: "#/components/schemas/RoutingDefaults"
229
- x-mcoda-cli.name: routing
230
- x-mcoda-cli.output-shape: scalar
231
- x-mcoda-docdex-profile: sds
232
- put:
233
- summary: Update routing defaults for a workspace
234
- operationId: updateRoutingDefaults
235
- tags: [Routing]
236
- requestBody:
237
- required: true
238
- content:
239
- application/json:
240
- schema:
241
- $ref: "#/components/schemas/RoutingDefaultsUpdate"
242
- responses:
243
- "200":
244
- description: Updated
245
- content:
246
- application/json:
247
- schema:
248
- $ref: "#/components/schemas/RoutingDefaults"
249
- x-mcoda-cli.name: routing
250
- x-mcoda-cli.output-shape: scalar
251
- x-mcoda-prompts:
252
- - routing_defaults
253
- /routing/preview:
254
- post:
255
- summary: Preview routing for a command
256
- operationId: routingPreview
257
- tags: [Routing]
258
- requestBody:
259
- required: true
260
- content:
261
- application/json:
262
- schema:
263
- type: object
264
- properties:
265
- workspaceId:
266
- type: string
267
- commandName:
268
- type: string
269
- agentOverride:
270
- type: string
271
- taskType:
272
- type: string
273
- projectKey:
274
- type: string
275
- requiredCapabilities:
276
- type: array
277
- items:
278
- type: string
279
- responses:
280
- "200":
281
- description: Preview
282
- content:
283
- application/json:
284
- schema:
285
- $ref: "#/components/schemas/RoutingPreview"
286
- x-mcoda-cli.name: routing
287
- x-mcoda-cli.output-shape: scalar
288
- x-mcoda-docdex-profile: sds
289
- /tasks/{id}:
290
- parameters:
291
- - name: id
292
- in: path
293
- required: true
294
- schema:
295
- type: string
296
- get:
297
- summary: Get task detail
298
- operationId: getTask
299
- tags: [Tasks]
300
- responses:
301
- "200":
302
- description: Task
303
- content:
304
- application/json:
305
- schema:
306
- $ref: "#/components/schemas/Task"
307
- x-mcoda-cli.name: task-detail
308
- x-mcoda-cli.output-shape: scalar
309
- x-mcoda-db-table: tasks
310
- /tasks/{id}/comments:
311
- parameters:
312
- - name: id
313
- in: path
314
- required: true
315
- schema:
316
- type: string
317
- get:
318
- summary: List task comments
319
- operationId: listTaskComments
320
- tags: [Tasks]
321
- responses:
322
- "200":
323
- description: Comments
324
- content:
325
- application/json:
326
- schema:
327
- type: array
328
- items:
329
- $ref: "#/components/schemas/TaskComment"
330
- x-mcoda-cli.name: task-detail
331
- x-mcoda-cli.output-shape: table
332
- post:
333
- summary: Add a task comment
334
- operationId: createTaskComment
335
- tags: [Tasks]
336
- requestBody:
337
- required: true
338
- content:
339
- application/json:
340
- schema:
341
- $ref: "#/components/schemas/TaskComment"
342
- responses:
343
- "201":
344
- description: Created
345
- content:
346
- application/json:
347
- schema:
348
- $ref: "#/components/schemas/TaskComment"
349
- x-mcoda-cli.name: task-detail
350
- x-mcoda-cli.output-shape: scalar
351
- x-mcoda-db-table: task_comments
352
- /tasks/{id}/reviews:
353
- parameters:
354
- - name: id
355
- in: path
356
- required: true
357
- schema:
358
- type: string
359
- get:
360
- summary: List task reviews
361
- operationId: listTaskReviews
362
- tags: [Tasks]
363
- responses:
364
- "200":
365
- description: Reviews
366
- content:
367
- application/json:
368
- schema:
369
- type: array
370
- items:
371
- $ref: "#/components/schemas/TaskReview"
372
- x-mcoda-cli.output-shape: table
373
- x-mcoda-db-table: task_reviews
374
- post:
375
- summary: Add a task review decision
376
- operationId: createTaskReview
377
- tags: [Tasks]
378
- requestBody:
379
- required: true
380
- content:
381
- application/json:
382
- schema:
383
- $ref: "#/components/schemas/TaskReview"
384
- responses:
385
- "201":
386
- description: Created
387
- content:
388
- application/json:
389
- schema:
390
- $ref: "#/components/schemas/TaskReview"
391
- x-mcoda-cli.output-shape: scalar
392
- x-mcoda-db-table: task_reviews
393
- /workspaces/{id}/backlog:
394
- parameters:
395
- - name: id
396
- in: path
397
- required: true
398
- schema:
399
- type: string
400
- - name: project
401
- in: query
402
- schema:
403
- type: string
404
- - name: epic
405
- in: query
406
- schema:
407
- type: string
408
- - name: story
409
- in: query
410
- schema:
411
- type: string
412
- - name: assignee
413
- in: query
414
- schema:
415
- type: string
416
- - name: status
417
- in: query
418
- schema:
419
- type: string
420
- get:
421
- summary: Backlog view for a workspace
422
- operationId: backlog
423
- tags: [Backlog, Tasks]
424
- responses:
425
- "200":
426
- description: Backlog summary
427
- content:
428
- application/json:
429
- schema:
430
- $ref: "#/components/schemas/BacklogSummary"
431
- x-mcoda-cli.name: backlog
432
- x-mcoda-cli.output-shape: table
433
- x-mcoda-db-table: tasks
434
- /workspaces/{id}/estimate:
435
- parameters:
436
- - name: id
437
- in: path
438
- required: true
439
- schema:
440
- type: string
441
- - name: project
442
- in: query
443
- schema:
444
- type: string
445
- - name: epic
446
- in: query
447
- schema:
448
- type: string
449
- - name: story
450
- in: query
451
- schema:
452
- type: string
453
- - name: assignee
454
- in: query
455
- schema:
456
- type: string
457
- - name: spPerHour
458
- in: query
459
- schema:
460
- type: number
461
- - name: spPerHourReview
462
- in: query
463
- schema:
464
- type: number
465
- - name: spPerHourQa
466
- in: query
467
- schema:
468
- type: number
469
- - name: velocityMode
470
- in: query
471
- schema:
472
- type: string
473
- enum: [config, empirical, mixed]
474
- - name: velocityWindow
475
- in: query
476
- schema:
477
- type: number
478
- enum: [10, 20, 50]
479
- get:
480
- summary: Estimate backlog durations and ETAs
481
- operationId: estimate
482
- tags: [Estimate, Telemetry]
483
- responses:
484
- "200":
485
- description: Estimate summary
486
- content:
487
- application/json:
488
- schema:
489
- $ref: "#/components/schemas/EstimateResult"
490
- x-mcoda-cli.name: estimate
491
- x-mcoda-cli.output-shape: scalar
492
- x-mcoda-docdex-profile: workspace-code
493
- /workspaces/{id}/create-tasks:
494
- parameters:
495
- - name: id
496
- in: path
497
- required: true
498
- schema:
499
- type: string
500
- post:
501
- summary: Create tasks from requirements
502
- operationId: createTasks
503
- tags: [Work, Tasks]
504
- requestBody:
505
- required: true
506
- content:
507
- application/json:
508
- schema:
509
- type: object
510
- properties:
511
- epicId:
512
- type: string
513
- storyId:
514
- type: string
515
- instructions:
516
- type: string
517
- responses:
518
- "202":
519
- description: Job created
520
- content:
521
- application/json:
522
- schema:
523
- $ref: "#/components/schemas/Job"
524
- x-mcoda-cli.name: create-tasks
525
- x-mcoda-cli.output-shape: job
526
- x-mcoda-job-type: create_tasks
527
- x-mcoda-agent-roles:
528
- - planner
529
- x-mcoda-prompts:
530
- - create_tasks
531
- x-mcoda-tools:
532
- - docdex
533
- - vcs
534
- x-mcoda-docdex-profile: sds
535
- /tasks/refine:
536
- post:
537
- summary: Refine existing tasks in a workspace project
538
- operationId: refineTasks
539
- tags: [Work, Tasks]
540
- requestBody:
541
- required: true
542
- content:
543
- application/json:
544
- schema:
545
- $ref: "#/components/schemas/RefineTasksRequest"
546
- responses:
547
- "200":
548
- description: Planned or executed refinement
549
- content:
550
- application/json:
551
- schema:
552
- $ref: "#/components/schemas/RefineTasksResult"
553
- x-mcoda-cli.name: refine-tasks
554
- x-mcoda-cli.output-shape: job
555
- x-mcoda-job-type: task_refinement
556
- x-mcoda-agent-roles:
557
- - planner
558
- x-mcoda-prompts:
559
- - refine_tasks
560
- x-mcoda-tools:
561
- - docdex
562
- x-mcoda-docdex-profile: sds
563
- /workspaces/{id}/work-on-tasks:
564
- parameters:
565
- - name: id
566
- in: path
567
- required: true
568
- schema:
569
- type: string
570
- post:
571
- summary: Execute work on selected tasks
572
- operationId: workOnTasks
573
- tags: [Work, Tasks]
574
- requestBody:
575
- required: true
576
- content:
577
- application/json:
578
- schema:
579
- $ref: "#/components/schemas/WorkOnTasksRequest"
580
- responses:
581
- "200":
582
- description: Work execution summary
583
- content:
584
- application/json:
585
- schema:
586
- $ref: "#/components/schemas/WorkOnTasksResult"
587
- x-mcoda-cli.name: work-on-tasks
588
- x-mcoda-cli.output-shape: work_on_tasks_result
589
- x-mcoda-job-type: work
590
- x-mcoda-agent-roles:
591
- - worker
592
- x-mcoda-prompts:
593
- - work_on_tasks
594
- x-mcoda-tools:
595
- - vcs
596
- - docdex
597
- x-mcoda-docdex-profile: workspace-code
598
- /workspaces/{id}/code-review:
599
- parameters:
600
- - name: id
601
- in: path
602
- required: true
603
- schema:
604
- type: string
605
- post:
606
- summary: Run code review on tasks
607
- operationId: codeReview
608
- tags: [Review, Tasks]
609
- requestBody:
610
- required: true
611
- content:
612
- application/json:
613
- schema:
614
- type: object
615
- properties:
616
- taskIds:
617
- type: array
618
- items:
619
- type: string
620
- baseRef:
621
- type: string
622
- responses:
623
- "202":
624
- description: Job created
625
- content:
626
- application/json:
627
- schema:
628
- $ref: "#/components/schemas/Job"
629
- x-mcoda-cli.name: code-review
630
- x-mcoda-cli.output-shape: job
631
- x-mcoda-job-type: review
632
- x-mcoda-agent-roles:
633
- - reviewer
634
- x-mcoda-prompts:
635
- - code_review
636
- x-mcoda-tools:
637
- - vcs
638
- - docdex
639
- x-mcoda-docdex-profile: workspace-code
640
- /workspaces/{id}/qa-tasks:
641
- parameters:
642
- - name: id
643
- in: path
644
- required: true
645
- schema:
646
- type: string
647
- post:
648
- summary: Run QA on tasks
649
- operationId: qaTasks
650
- tags: [QA, Tasks]
651
- requestBody:
652
- required: true
653
- content:
654
- application/json:
655
- schema:
656
- type: object
657
- properties:
658
- projectKey:
659
- type: string
660
- description: Key of the project to scope QA runs.
661
- epicKey:
662
- type: string
663
- description: Optional epic key filter.
664
- storyKey:
665
- type: string
666
- description: Optional user story key filter.
667
- taskKeys:
668
- type: array
669
- description: Explicit list of task keys to QA.
670
- items:
671
- type: string
672
- statusFilter:
673
- type: array
674
- description: Status filter, defaults to ready_to_qa.
675
- items:
676
- type: string
677
- mode:
678
- type: string
679
- enum: [auto, manual]
680
- default: auto
681
- profile:
682
- type: string
683
- description: Explicit QA profile name to use.
684
- level:
685
- type: string
686
- description: Level hint (unit|integration|acceptance) for profile selection.
687
- testCommand:
688
- type: string
689
- description: Override CLI test command when runner=cli.
690
- agent:
691
- type: string
692
- description: QA agent to interpret results.
693
- agentStream:
694
- type: boolean
695
- default: true
696
- createFollowupTasks:
697
- type: string
698
- enum: [auto, none, prompt]
699
- default: auto
700
- dryRun:
701
- type: boolean
702
- default: false
703
- result:
704
- type: string
705
- enum: [pass, fail, blocked]
706
- description: Manual result when mode=manual.
707
- notes:
708
- type: string
709
- description: Optional manual QA notes.
710
- evidenceUrl:
711
- type: string
712
- description: Optional manual QA evidence URL.
713
- responses:
714
- "202":
715
- description: Job created
716
- content:
717
- application/json:
718
- schema:
719
- $ref: "#/components/schemas/Job"
720
- x-mcoda-cli.name: qa-tasks
721
- x-mcoda-cli.output-shape: job
722
- x-mcoda-job-type: qa
723
- x-mcoda-agent-roles:
724
- - qa
725
- x-mcoda-prompts:
726
- - qa_tasks
727
- x-mcoda-tools:
728
- - qa_runner
729
- - vcs
730
- x-mcoda-docdex-profile: workspace-code
731
- /workspaces/{id}/order-tasks:
732
- parameters:
733
- - name: id
734
- in: path
735
- required: true
736
- schema:
737
- type: string
738
- - name: strategy
739
- in: query
740
- schema:
741
- type: string
742
- enum: [dependencies, priority]
743
- get:
744
- summary: Order tasks by dependency/priority
745
- operationId: orderTasks
746
- tags: [Tasks, Backlog]
747
- responses:
748
- "200":
749
- description: Ordered tasks
750
- content:
751
- application/json:
752
- schema:
753
- type: array
754
- items:
755
- $ref: "#/components/schemas/TaskSummary"
756
- x-mcoda-cli.name: order-tasks
757
- x-mcoda-cli.output-shape: list
758
- x-mcoda-prompts:
759
- - order_tasks
760
- /jobs:
761
- get:
762
- summary: List jobs
763
- operationId: listJobs
764
- tags: [Jobs]
765
- responses:
766
- "200":
767
- description: Jobs
768
- content:
769
- application/json:
770
- schema:
771
- type: array
772
- items:
773
- $ref: "#/components/schemas/Job"
774
- x-mcoda-cli.name: job
775
- x-mcoda-cli.output-shape: table
776
- x-mcoda-db-table: jobs
777
- /jobs/{id}:
778
- parameters:
779
- - name: id
780
- in: path
781
- required: true
782
- schema:
783
- type: string
784
- get:
785
- summary: Get a job
786
- operationId: getJob
787
- tags: [Jobs]
788
- responses:
789
- "200":
790
- description: Job
791
- content:
792
- application/json:
793
- schema:
794
- $ref: "#/components/schemas/Job"
795
- x-mcoda-cli.name: job
796
- x-mcoda-cli.output-shape: scalar
797
- x-mcoda-db-table: jobs
798
- /jobs/{id}/resume:
799
- parameters:
800
- - name: id
801
- in: path
802
- required: true
803
- schema:
804
- type: string
805
- post:
806
- summary: Resume a job
807
- operationId: resumeJob
808
- tags: [Jobs]
809
- responses:
810
- "200":
811
- description: Job
812
- content:
813
- application/json:
814
- schema:
815
- $ref: "#/components/schemas/Job"
816
- x-mcoda-cli.name: job
817
- x-mcoda-cli.output-shape: scalar
818
- x-mcoda-job-type: openapi_change
819
- /workspaces/{id}/telemetry:
820
- parameters:
821
- - name: id
822
- in: path
823
- required: true
824
- schema:
825
- type: string
826
- - name: command
827
- in: query
828
- schema:
829
- type: string
830
- - name: since
831
- in: query
832
- schema:
833
- type: string
834
- get:
835
- summary: Telemetry aggregates for a workspace
836
- operationId: telemetry
837
- tags: [Telemetry]
838
- responses:
839
- "200":
840
- description: Telemetry view
841
- content:
842
- application/json:
843
- schema:
844
- type: object
845
- properties:
846
- runs:
847
- type: array
848
- items:
849
- $ref: "#/components/schemas/CommandRun"
850
- usage:
851
- type: array
852
- items:
853
- $ref: "#/components/schemas/TokenUsage"
854
- x-mcoda-cli.name: telemetry
855
- x-mcoda-cli.output-shape: table
856
- x-mcoda-docdex-profile: workspace-code
857
- /workspaces/{id}/tokens:
858
- parameters:
859
- - name: id
860
- in: path
861
- required: true
862
- schema:
863
- type: string
864
- - name: command
865
- in: query
866
- schema:
867
- type: string
868
- get:
869
- summary: Token usage for a workspace
870
- operationId: tokens
871
- tags: [Telemetry]
872
- responses:
873
- "200":
874
- description: Token usage
875
- content:
876
- application/json:
877
- schema:
878
- type: array
879
- items:
880
- $ref: "#/components/schemas/TokenUsage"
881
- x-mcoda-cli.name: tokens
882
- x-mcoda-cli.output-shape: table
883
- x-mcoda-db-table: token_usage
884
- /docdex/search:
885
- parameters:
886
- - name: q
887
- in: query
888
- required: true
889
- schema:
890
- type: string
891
- - name: doc_type
892
- in: query
893
- schema:
894
- type: string
895
- get:
896
- summary: Search docdex
897
- operationId: searchDocdex
898
- tags: [Docdex]
899
- responses:
900
- "200":
901
- description: Documents
902
- content:
903
- application/json:
904
- schema:
905
- type: array
906
- items:
907
- $ref: "#/components/schemas/DocdexDocument"
908
- x-mcoda-cli.name: docs
909
- x-mcoda-cli.output-shape: table
910
- x-mcoda-docdex-profile: sds
911
- /config:
912
- get:
913
- summary: Get workspace config
914
- operationId: getConfig
915
- tags: [Config]
916
- responses:
917
- "200":
918
- description: Config
919
- content:
920
- application/json:
921
- schema:
922
- type: object
923
- properties:
924
- mirrorDocs:
925
- type: boolean
926
- branch:
927
- type: string
928
- docdexUrl:
929
- type: string
930
- x-mcoda-cli.name: config
931
- x-mcoda-cli.output-shape: scalar
932
- /system/ping:
933
- get:
934
- summary: Health check
935
- operationId: ping
936
- tags: [System]
937
- responses:
938
- "200":
939
- description: Pong
940
- content:
941
- application/json:
942
- schema:
943
- type: object
944
- properties:
945
- status:
946
- type: string
947
- version:
948
- type: string
949
- x-mcoda-cli.name: system
950
- x-mcoda-cli.output-shape: scalar
951
- /system/update:
952
- get:
953
- summary: Check for available mcoda updates
954
- operationId: checkUpdate
955
- tags: [System]
956
- parameters:
957
- - name: channel
958
- in: query
959
- required: false
960
- schema:
961
- type: string
962
- enum: [stable, beta, nightly]
963
- responses:
964
- "200":
965
- description: Update information
966
- content:
967
- application/json:
968
- schema:
969
- $ref: "#/components/schemas/UpdateInfo"
970
- x-mcoda-cli.name: update
971
- x-mcoda-cli.output-shape: scalar
972
- post:
973
- summary: Apply a pending mcoda update
974
- operationId: applyUpdate
975
- tags: [System]
976
- requestBody:
977
- required: false
978
- content:
979
- application/json:
980
- schema:
981
- type: object
982
- properties:
983
- channel:
984
- type: string
985
- enum: [stable, beta, nightly]
986
- responses:
987
- "202":
988
- description: Update started or completed
989
- content:
990
- application/json:
991
- schema:
992
- type: object
993
- properties:
994
- status:
995
- type: string
996
- enum: [started, already_up_to_date, completed]
997
- logFile:
998
- type: string
999
- nullable: true
1000
- components:
1001
- schemas:
1002
- Agent:
1003
- type: object
1004
- properties:
1005
- id:
1006
- type: string
1007
- slug:
1008
- type: string
1009
- adapter:
1010
- type: string
1011
- defaultModel:
1012
- type: string
1013
- rating:
1014
- type: integer
1015
- description: Relative capability rating (higher is stronger).
1016
- reasoningRating:
1017
- type: integer
1018
- description: Relative reasoning strength rating (higher is stronger).
1019
- bestUsage:
1020
- type: string
1021
- description: Primary usage area or specialization (e.g., code_write, ui_ux_docs).
1022
- costPerMillion:
1023
- type: number
1024
- description: Cost per 1M tokens in configured currency (0 for local models).
1025
- health:
1026
- $ref: "#/components/schemas/AgentHealth"
1027
- capabilities:
1028
- type: array
1029
- items:
1030
- type: string
1031
- models:
1032
- type: array
1033
- items:
1034
- $ref: "#/components/schemas/AgentModel"
1035
- prompts:
1036
- $ref: "#/components/schemas/AgentPromptManifest"
1037
- auth:
1038
- $ref: "#/components/schemas/AgentAuth"
1039
- createdAt:
1040
- type: string
1041
- format: date-time
1042
- updatedAt:
1043
- type: string
1044
- format: date-time
1045
- required: [id, slug, adapter, createdAt, updatedAt]
1046
- x-mcoda-db-table: agents
1047
- AgentHealth:
1048
- type: object
1049
- properties:
1050
- agentId:
1051
- type: string
1052
- status:
1053
- type: string
1054
- enum: [healthy, degraded, unreachable]
1055
- lastCheckedAt:
1056
- type: string
1057
- format: date-time
1058
- latencyMs:
1059
- type: number
1060
- details:
1061
- type: object
1062
- required: [agentId, status, lastCheckedAt]
1063
- x-mcoda-db-table: agent_health
1064
- AgentCapability:
1065
- type: object
1066
- properties:
1067
- agentId:
1068
- type: string
1069
- capability:
1070
- type: string
1071
- required: [agentId, capability]
1072
- x-mcoda-db-table: agent_capabilities
1073
- AgentModel:
1074
- type: object
1075
- properties:
1076
- agentId:
1077
- type: string
1078
- modelName:
1079
- type: string
1080
- isDefault:
1081
- type: boolean
1082
- config:
1083
- type: object
1084
- required: [agentId, modelName]
1085
- x-mcoda-db-table: agent_models
1086
- AgentAuth:
1087
- type: object
1088
- properties:
1089
- agentId:
1090
- type: string
1091
- configured:
1092
- type: boolean
1093
- lastUpdatedAt:
1094
- type: string
1095
- format: date-time
1096
- lastVerifiedAt:
1097
- type: string
1098
- format: date-time
1099
- required: [agentId, configured]
1100
- x-mcoda-db-table: agent_auth
1101
- AgentAuthRequest:
1102
- type: object
1103
- properties:
1104
- secret:
1105
- type: string
1106
- required: [secret]
1107
- AgentPromptManifest:
1108
- type: object
1109
- properties:
1110
- agentId:
1111
- type: string
1112
- jobPrompt:
1113
- type: string
1114
- characterPrompt:
1115
- type: string
1116
- commandPrompts:
1117
- type: object
1118
- additionalProperties:
1119
- type: string
1120
- jobPath:
1121
- type: string
1122
- characterPath:
1123
- type: string
1124
- x-mcoda-db-table: agent_prompts
1125
- CreateAgentRequest:
1126
- type: object
1127
- properties:
1128
- slug:
1129
- type: string
1130
- adapter:
1131
- type: string
1132
- defaultModel:
1133
- type: string
1134
- rating:
1135
- type: integer
1136
- reasoningRating:
1137
- type: integer
1138
- bestUsage:
1139
- type: string
1140
- costPerMillion:
1141
- type: number
1142
- config:
1143
- type: object
1144
- additionalProperties: true
1145
- capabilities:
1146
- type: array
1147
- items:
1148
- type: string
1149
- models:
1150
- type: array
1151
- items:
1152
- $ref: "#/components/schemas/AgentModel"
1153
- prompts:
1154
- $ref: "#/components/schemas/AgentPromptManifest"
1155
- required: [slug, adapter]
1156
- UpdateAgentRequest:
1157
- type: object
1158
- properties:
1159
- adapter:
1160
- type: string
1161
- defaultModel:
1162
- type: string
1163
- rating:
1164
- type: integer
1165
- reasoningRating:
1166
- type: integer
1167
- bestUsage:
1168
- type: string
1169
- costPerMillion:
1170
- type: number
1171
- config:
1172
- type: object
1173
- additionalProperties: true
1174
- capabilities:
1175
- type: array
1176
- items:
1177
- type: string
1178
- models:
1179
- type: array
1180
- items:
1181
- $ref: "#/components/schemas/AgentModel"
1182
- prompts:
1183
- $ref: "#/components/schemas/AgentPromptManifest"
1184
- RoutingDefault:
1185
- type: object
1186
- properties:
1187
- workspaceId:
1188
- type: string
1189
- commandName:
1190
- type: string
1191
- agentId:
1192
- type: string
1193
- qaProfile:
1194
- type: string
1195
- nullable: true
1196
- docdexScope:
1197
- type: string
1198
- nullable: true
1199
- updatedAt:
1200
- type: string
1201
- format: date-time
1202
- required: [workspaceId, commandName, agentId]
1203
- x-mcoda-db-table: workspace_defaults
1204
- RoutingDefaults:
1205
- type: array
1206
- items:
1207
- $ref: "#/components/schemas/RoutingDefault"
1208
- RoutingPreview:
1209
- type: object
1210
- properties:
1211
- workspaceId:
1212
- type: string
1213
- commandName:
1214
- type: string
1215
- resolvedAgent:
1216
- $ref: "#/components/schemas/Agent"
1217
- provenance:
1218
- type: string
1219
- enum: [override, workspace_default, global_default]
1220
- requiredCapabilities:
1221
- type: array
1222
- items:
1223
- type: string
1224
- qaProfile:
1225
- type: string
1226
- nullable: true
1227
- docdexScope:
1228
- type: string
1229
- nullable: true
1230
- candidates:
1231
- type: array
1232
- items:
1233
- $ref: "#/components/schemas/RoutingCandidate"
1234
- notes:
1235
- type: string
1236
- required: [workspaceId, commandName, resolvedAgent]
1237
- x-mcoda-cli.output-shape: scalar
1238
- RoutingCandidate:
1239
- type: object
1240
- properties:
1241
- agent:
1242
- $ref: "#/components/schemas/Agent"
1243
- agentId:
1244
- type: string
1245
- agentSlug:
1246
- type: string
1247
- source:
1248
- type: string
1249
- enum: [override, workspace_default, global_default]
1250
- capabilities:
1251
- type: array
1252
- items:
1253
- type: string
1254
- health:
1255
- $ref: "#/components/schemas/AgentHealth"
1256
- missingCapabilities:
1257
- type: array
1258
- items:
1259
- type: string
1260
- notes:
1261
- type: string
1262
- RoutingDefaultsUpdate:
1263
- type: object
1264
- properties:
1265
- set:
1266
- type: object
1267
- additionalProperties:
1268
- type: string
1269
- reset:
1270
- type: array
1271
- items:
1272
- type: string
1273
- qaProfile:
1274
- type: string
1275
- nullable: true
1276
- docdexScope:
1277
- type: string
1278
- nullable: true
1279
- Project:
1280
- type: object
1281
- properties:
1282
- id:
1283
- type: string
1284
- key:
1285
- type: string
1286
- name:
1287
- type: string
1288
- required: [id, key, name]
1289
- x-mcoda-db-table: projects
1290
- Epic:
1291
- type: object
1292
- properties:
1293
- id:
1294
- type: string
1295
- projectId:
1296
- type: string
1297
- key:
1298
- type: string
1299
- title:
1300
- type: string
1301
- description:
1302
- type: string
1303
- required: [id, projectId, key, title]
1304
- x-mcoda-db-table: epics
1305
- UserStory:
1306
- type: object
1307
- properties:
1308
- id:
1309
- type: string
1310
- epicId:
1311
- type: string
1312
- key:
1313
- type: string
1314
- title:
1315
- type: string
1316
- description:
1317
- type: string
1318
- required: [id, epicId, key, title]
1319
- x-mcoda-db-table: user_stories
1320
- Task:
1321
- type: object
1322
- properties:
1323
- id:
1324
- type: string
1325
- projectId:
1326
- type: string
1327
- epicId:
1328
- type: string
1329
- storyId:
1330
- type: string
1331
- title:
1332
- type: string
1333
- status:
1334
- type: string
1335
- priority:
1336
- type: string
1337
- assignee:
1338
- type: string
1339
- description:
1340
- type: string
1341
- createdAt:
1342
- type: string
1343
- format: date-time
1344
- updatedAt:
1345
- type: string
1346
- format: date-time
1347
- tags:
1348
- type: array
1349
- items:
1350
- type: string
1351
- required: [id, title, status]
1352
- x-mcoda-db-table: tasks
1353
- TaskSummary:
1354
- type: object
1355
- properties:
1356
- id:
1357
- type: string
1358
- title:
1359
- type: string
1360
- status:
1361
- type: string
1362
- priority:
1363
- type: string
1364
- epicId:
1365
- type: string
1366
- storyId:
1367
- type: string
1368
- required: [id, title, status]
1369
- x-mcoda-db-table: tasks
1370
- BacklogLaneTotals:
1371
- type: object
1372
- properties:
1373
- tasks:
1374
- type: integer
1375
- story_points:
1376
- type: number
1377
- required: [tasks, story_points]
1378
- BacklogTotals:
1379
- type: object
1380
- properties:
1381
- implementation:
1382
- $ref: "#/components/schemas/BacklogLaneTotals"
1383
- review:
1384
- $ref: "#/components/schemas/BacklogLaneTotals"
1385
- qa:
1386
- $ref: "#/components/schemas/BacklogLaneTotals"
1387
- done:
1388
- $ref: "#/components/schemas/BacklogLaneTotals"
1389
- required: [implementation, review, qa, done]
1390
- BacklogSummary:
1391
- type: object
1392
- properties:
1393
- scope:
1394
- type: object
1395
- properties:
1396
- project:
1397
- type: string
1398
- epic:
1399
- type: string
1400
- story:
1401
- type: string
1402
- assignee:
1403
- type: string
1404
- totals:
1405
- $ref: "#/components/schemas/BacklogTotals"
1406
- required: [scope, totals]
1407
- EffectiveVelocity:
1408
- type: object
1409
- properties:
1410
- implementationSpPerHour:
1411
- type: number
1412
- reviewSpPerHour:
1413
- type: number
1414
- qaSpPerHour:
1415
- type: number
1416
- source:
1417
- type: string
1418
- enum: [config, empirical, mixed]
1419
- windowTasks:
1420
- type: number
1421
- enum: [10, 20, 50]
1422
- required: [implementationSpPerHour, reviewSpPerHour, qaSpPerHour, source]
1423
- EstimateDurations:
1424
- type: object
1425
- properties:
1426
- implementationHours:
1427
- type: number
1428
- nullable: true
1429
- reviewHours:
1430
- type: number
1431
- nullable: true
1432
- qaHours:
1433
- type: number
1434
- nullable: true
1435
- totalHours:
1436
- type: number
1437
- nullable: true
1438
- required: [implementationHours, reviewHours, qaHours, totalHours]
1439
- EstimateEtas:
1440
- type: object
1441
- properties:
1442
- readyToReviewEta:
1443
- type: string
1444
- format: date-time
1445
- readyToQaEta:
1446
- type: string
1447
- format: date-time
1448
- completeEta:
1449
- type: string
1450
- format: date-time
1451
- EstimateResult:
1452
- type: object
1453
- properties:
1454
- scope:
1455
- type: object
1456
- properties:
1457
- workspaceId:
1458
- type: string
1459
- project:
1460
- type: string
1461
- epic:
1462
- type: string
1463
- story:
1464
- type: string
1465
- assignee:
1466
- type: string
1467
- backlogTotals:
1468
- $ref: "#/components/schemas/BacklogTotals"
1469
- effectiveVelocity:
1470
- $ref: "#/components/schemas/EffectiveVelocity"
1471
- durationsHours:
1472
- $ref: "#/components/schemas/EstimateDurations"
1473
- etas:
1474
- $ref: "#/components/schemas/EstimateEtas"
1475
- required: [scope, backlogTotals, effectiveVelocity, durationsHours, etas]
1476
- RefineTasksRequest:
1477
- type: object
1478
- properties:
1479
- projectKey:
1480
- type: string
1481
- epicKey:
1482
- type: string
1483
- userStoryKey:
1484
- type: string
1485
- taskKeys:
1486
- type: array
1487
- items:
1488
- type: string
1489
- statusFilter:
1490
- type: array
1491
- items:
1492
- type: string
1493
- strategy:
1494
- type: string
1495
- enum: [split, merge, enrich, estimate, auto]
1496
- default: auto
1497
- maxTasks:
1498
- type: integer
1499
- dryRun:
1500
- type: boolean
1501
- agentIdOverride:
1502
- type: string
1503
- planInPath:
1504
- type: string
1505
- planOutPath:
1506
- type: string
1507
- required: [projectKey]
1508
- TaskUpdateFields:
1509
- type: object
1510
- properties:
1511
- title:
1512
- type: string
1513
- description:
1514
- type: string
1515
- acceptanceCriteria:
1516
- type: array
1517
- items:
1518
- type: string
1519
- type:
1520
- type: string
1521
- storyPoints:
1522
- type: number
1523
- nullable: true
1524
- priority:
1525
- type: number
1526
- nullable: true
1527
- metadata:
1528
- type: object
1529
- status:
1530
- type: string
1531
- additionalProperties: false
1532
- UpdateTaskOp:
1533
- type: object
1534
- properties:
1535
- op:
1536
- type: string
1537
- enum: [update_task]
1538
- taskKey:
1539
- type: string
1540
- updates:
1541
- $ref: "#/components/schemas/TaskUpdateFields"
1542
- required: [op, taskKey, updates]
1543
- SplitChildTask:
1544
- type: object
1545
- properties:
1546
- title:
1547
- type: string
1548
- description:
1549
- type: string
1550
- acceptanceCriteria:
1551
- type: array
1552
- items:
1553
- type: string
1554
- type:
1555
- type: string
1556
- storyPoints:
1557
- type: number
1558
- nullable: true
1559
- priority:
1560
- type: number
1561
- nullable: true
1562
- metadata:
1563
- type: object
1564
- dependsOn:
1565
- type: array
1566
- items:
1567
- type: string
1568
- required: [title]
1569
- SplitTaskOp:
1570
- type: object
1571
- properties:
1572
- op:
1573
- type: string
1574
- enum: [split_task]
1575
- taskKey:
1576
- type: string
1577
- keepParent:
1578
- type: boolean
1579
- parentUpdates:
1580
- $ref: "#/components/schemas/TaskUpdateFields"
1581
- children:
1582
- type: array
1583
- items:
1584
- $ref: "#/components/schemas/SplitChildTask"
1585
- required: [op, taskKey, children]
1586
- MergeTasksOp:
1587
- type: object
1588
- properties:
1589
- op:
1590
- type: string
1591
- enum: [merge_tasks]
1592
- targetTaskKey:
1593
- type: string
1594
- sourceTaskKeys:
1595
- type: array
1596
- items:
1597
- type: string
1598
- updates:
1599
- $ref: "#/components/schemas/TaskUpdateFields"
1600
- cancelSources:
1601
- type: boolean
1602
- required: [op, targetTaskKey, sourceTaskKeys]
1603
- UpdateEstimateOp:
1604
- type: object
1605
- properties:
1606
- op:
1607
- type: string
1608
- enum: [update_estimate]
1609
- taskKey:
1610
- type: string
1611
- storyPoints:
1612
- type: number
1613
- nullable: true
1614
- type:
1615
- type: string
1616
- priority:
1617
- type: number
1618
- nullable: true
1619
- required: [op, taskKey]
1620
- RefineOperation:
1621
- oneOf:
1622
- - $ref: "#/components/schemas/UpdateTaskOp"
1623
- - $ref: "#/components/schemas/SplitTaskOp"
1624
- - $ref: "#/components/schemas/MergeTasksOp"
1625
- - $ref: "#/components/schemas/UpdateEstimateOp"
1626
- discriminator:
1627
- propertyName: op
1628
- RefineTasksPlan:
1629
- type: object
1630
- properties:
1631
- strategy:
1632
- type: string
1633
- enum: [split, merge, enrich, estimate, auto]
1634
- operations:
1635
- type: array
1636
- items:
1637
- $ref: "#/components/schemas/RefineOperation"
1638
- warnings:
1639
- type: array
1640
- items:
1641
- type: string
1642
- metadata:
1643
- type: object
1644
- properties:
1645
- generatedAt:
1646
- type: string
1647
- projectKey:
1648
- type: string
1649
- epicKeys:
1650
- type: array
1651
- items:
1652
- type: string
1653
- storyKeys:
1654
- type: array
1655
- items:
1656
- type: string
1657
- jobId:
1658
- type: string
1659
- commandRunId:
1660
- type: string
1661
- strategy:
1662
- type: string
1663
- required: [operations]
1664
- RefineTasksResult:
1665
- type: object
1666
- properties:
1667
- jobId:
1668
- type: string
1669
- commandRunId:
1670
- type: string
1671
- plan:
1672
- $ref: "#/components/schemas/RefineTasksPlan"
1673
- applied:
1674
- type: boolean
1675
- createdTasks:
1676
- type: array
1677
- items:
1678
- type: string
1679
- updatedTasks:
1680
- type: array
1681
- items:
1682
- type: string
1683
- cancelledTasks:
1684
- type: array
1685
- items:
1686
- type: string
1687
- summary:
1688
- type: object
1689
- properties:
1690
- tasksProcessed:
1691
- type: integer
1692
- tasksAffected:
1693
- type: integer
1694
- storyPointsDelta:
1695
- type: number
1696
- nullable: true
1697
- required: [jobId, commandRunId, plan, applied]
1698
- TaskHistoryEntry:
1699
- type: object
1700
- properties:
1701
- id:
1702
- type: string
1703
- taskId:
1704
- type: string
1705
- changeType:
1706
- type: string
1707
- description:
1708
- type: string
1709
- createdAt:
1710
- type: string
1711
- format: date-time
1712
- required: [id, taskId, changeType, createdAt]
1713
- x-mcoda-db-table: task_history
1714
- TaskComment:
1715
- type: object
1716
- properties:
1717
- id:
1718
- type: string
1719
- taskId:
1720
- type: string
1721
- taskRunId:
1722
- type: string
1723
- nullable: true
1724
- jobId:
1725
- type: string
1726
- nullable: true
1727
- sourceCommand:
1728
- type: string
1729
- authorType:
1730
- type: string
1731
- enum: [agent, human]
1732
- authorAgentId:
1733
- type: string
1734
- nullable: true
1735
- category:
1736
- type: string
1737
- nullable: true
1738
- file:
1739
- type: string
1740
- nullable: true
1741
- line:
1742
- type: integer
1743
- nullable: true
1744
- pathHint:
1745
- type: string
1746
- nullable: true
1747
- body:
1748
- type: string
1749
- metadata:
1750
- type: object
1751
- additionalProperties: true
1752
- createdAt:
1753
- type: string
1754
- format: date-time
1755
- resolvedAt:
1756
- type: string
1757
- format: date-time
1758
- nullable: true
1759
- resolvedBy:
1760
- type: string
1761
- nullable: true
1762
- required: [id, taskId, sourceCommand, authorType, body, createdAt]
1763
- x-mcoda-db-table: task_comments
1764
- TaskReview:
1765
- type: object
1766
- properties:
1767
- id:
1768
- type: string
1769
- taskId:
1770
- type: string
1771
- jobId:
1772
- type: string
1773
- nullable: true
1774
- agentId:
1775
- type: string
1776
- nullable: true
1777
- modelName:
1778
- type: string
1779
- nullable: true
1780
- decision:
1781
- type: string
1782
- enum: [approve, changes_requested, block, info_only]
1783
- summary:
1784
- type: string
1785
- nullable: true
1786
- findingsJson:
1787
- type: array
1788
- items:
1789
- type: object
1790
- additionalProperties: true
1791
- testRecommendationsJson:
1792
- type: array
1793
- items:
1794
- type: string
1795
- metadata:
1796
- type: object
1797
- additionalProperties: true
1798
- createdAt:
1799
- type: string
1800
- format: date-time
1801
- createdBy:
1802
- type: string
1803
- nullable: true
1804
- required: [id, taskId, decision, createdAt]
1805
- x-mcoda-db-table: task_reviews
1806
- Job:
1807
- type: object
1808
- properties:
1809
- id:
1810
- type: string
1811
- type:
1812
- type: string
1813
- status:
1814
- type: string
1815
- commandRunId:
1816
- type: string
1817
- workspaceId:
1818
- type: string
1819
- projectKey:
1820
- type: string
1821
- createdAt:
1822
- type: string
1823
- format: date-time
1824
- updatedAt:
1825
- type: string
1826
- format: date-time
1827
- durationSeconds:
1828
- type: number
1829
- metadata:
1830
- type: object
1831
- required: [id, type, status, createdAt, updatedAt]
1832
- x-mcoda-db-table: jobs
1833
- CommandRun:
1834
- type: object
1835
- properties:
1836
- id:
1837
- type: string
1838
- name:
1839
- type: string
1840
- workspaceId:
1841
- type: string
1842
- projectKey:
1843
- type: string
1844
- status:
1845
- type: string
1846
- startedAt:
1847
- type: string
1848
- format: date-time
1849
- endedAt:
1850
- type: string
1851
- format: date-time
1852
- durationSeconds:
1853
- type: number
1854
- required: [id, name, workspaceId, status, startedAt]
1855
- x-mcoda-db-table: command_runs
1856
- TaskRun:
1857
- type: object
1858
- properties:
1859
- id:
1860
- type: string
1861
- taskId:
1862
- type: string
1863
- jobId:
1864
- type: string
1865
- status:
1866
- type: string
1867
- startedAt:
1868
- type: string
1869
- format: date-time
1870
- endedAt:
1871
- type: string
1872
- format: date-time
1873
- required: [id, taskId, status]
1874
- x-mcoda-db-table: task_runs
1875
- TaskQaRun:
1876
- type: object
1877
- properties:
1878
- id:
1879
- type: string
1880
- taskId:
1881
- type: string
1882
- jobId:
1883
- type: string
1884
- profile:
1885
- type: string
1886
- status:
1887
- type: string
1888
- startedAt:
1889
- type: string
1890
- format: date-time
1891
- endedAt:
1892
- type: string
1893
- format: date-time
1894
- outcome:
1895
- type: string
1896
- required: [id, taskId, profile, status]
1897
- x-mcoda-db-table: task_qa_runs
1898
- WorkOnTasksRequest:
1899
- type: object
1900
- description: Filters and options for executing work-on-tasks
1901
- properties:
1902
- projectKey:
1903
- type: string
1904
- epicKey:
1905
- type: string
1906
- storyKey:
1907
- type: string
1908
- taskKeys:
1909
- type: array
1910
- items:
1911
- type: string
1912
- statusFilter:
1913
- type: array
1914
- items:
1915
- type: string
1916
- limit:
1917
- type: integer
1918
- parallel:
1919
- type: integer
1920
- noCommit:
1921
- type: boolean
1922
- dryRun:
1923
- type: boolean
1924
- agent:
1925
- type: string
1926
- agentStream:
1927
- type: boolean
1928
- WorkOnTasksResult:
1929
- type: object
1930
- description: Summary of a work-on-tasks run
1931
- properties:
1932
- jobId:
1933
- type: string
1934
- commandRunId:
1935
- type: string
1936
- processed:
1937
- type: integer
1938
- succeeded:
1939
- type: integer
1940
- failed:
1941
- type: integer
1942
- skipped:
1943
- type: integer
1944
- blocked:
1945
- type: array
1946
- items:
1947
- type: string
1948
- warnings:
1949
- type: array
1950
- items:
1951
- type: string
1952
- required: [jobId, commandRunId]
1953
- TokenUsage:
1954
- type: object
1955
- properties:
1956
- timestamp:
1957
- type: string
1958
- format: date-time
1959
- workspaceId:
1960
- type: string
1961
- commandName:
1962
- type: string
1963
- jobId:
1964
- type: string
1965
- taskId:
1966
- type: string
1967
- action:
1968
- type: string
1969
- promptTokens:
1970
- type: number
1971
- completionTokens:
1972
- type: number
1973
- costUsd:
1974
- type: number
1975
- modelName:
1976
- type: string
1977
- agentId:
1978
- type: string
1979
- required: [timestamp, workspaceId, commandName, action, promptTokens, completionTokens]
1980
- x-mcoda-db-table: token_usage
1981
- TaskLog:
1982
- type: object
1983
- properties:
1984
- taskId:
1985
- type: string
1986
- runId:
1987
- type: string
1988
- entries:
1989
- type: array
1990
- items:
1991
- $ref: "#/components/schemas/LogEntry"
1992
- required: [taskId, runId]
1993
- x-mcoda-db-table: task_logs
1994
- LogEntry:
1995
- type: object
1996
- properties:
1997
- timestamp:
1998
- type: string
1999
- format: date-time
2000
- level:
2001
- type: string
2002
- message:
2003
- type: string
2004
- metadata:
2005
- type: object
2006
- required: [timestamp, level, message]
2007
- ErrorResponse:
2008
- type: object
2009
- properties:
2010
- error:
2011
- type: string
2012
- message:
2013
- type: string
2014
- code:
2015
- type: string
2016
- required: [error, message]
2017
- EstimateView:
2018
- type: object
2019
- properties:
2020
- workspaceId:
2021
- type: string
2022
- averageSpPerHour:
2023
- type: number
2024
- sampleSize:
2025
- type: number
2026
- basis:
2027
- type: array
2028
- items:
2029
- $ref: "#/components/schemas/TokenUsage"
2030
- DocdexDocument:
2031
- type: object
2032
- properties:
2033
- id:
2034
- type: string
2035
- docType:
2036
- type: string
2037
- path:
2038
- type: string
2039
- title:
2040
- type: string
2041
- content:
2042
- type: string
2043
- createdAt:
2044
- type: string
2045
- updatedAt:
2046
- type: string
2047
- required: [id, docType, createdAt, updatedAt]
2048
- UpdateInfo:
2049
- type: object
2050
- required: [currentVersion, latestVersion, updateAvailable, channel]
2051
- properties:
2052
- currentVersion:
2053
- type: string
2054
- latestVersion:
2055
- type: string
2056
- channel:
2057
- type: string
2058
- enum: [stable, beta, nightly]
2059
- updateAvailable:
2060
- type: boolean
2061
- notes:
2062
- type: string
2063
- nullable: true