sudocode 1.1.17 → 1.1.18-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (738) hide show
  1. package/node_modules/@sudocode-ai/cli/README.md +330 -0
  2. package/node_modules/@sudocode-ai/cli/dist/cli/feedback-commands.d.ts +53 -0
  3. package/node_modules/@sudocode-ai/cli/dist/cli/feedback-commands.d.ts.map +1 -0
  4. package/node_modules/@sudocode-ai/cli/dist/cli/feedback-commands.js +339 -0
  5. package/node_modules/@sudocode-ai/cli/dist/cli/feedback-commands.js.map +1 -0
  6. package/node_modules/@sudocode-ai/cli/dist/cli/init-commands.d.ts +20 -0
  7. package/node_modules/@sudocode-ai/cli/dist/cli/init-commands.d.ts.map +1 -0
  8. package/node_modules/@sudocode-ai/cli/dist/cli/init-commands.js +145 -0
  9. package/node_modules/@sudocode-ai/cli/dist/cli/init-commands.js.map +1 -0
  10. package/node_modules/@sudocode-ai/cli/dist/cli/issue-commands.d.ts +46 -0
  11. package/node_modules/@sudocode-ai/cli/dist/cli/issue-commands.d.ts.map +1 -0
  12. package/node_modules/@sudocode-ai/cli/dist/cli/issue-commands.js +353 -0
  13. package/node_modules/@sudocode-ai/cli/dist/cli/issue-commands.js.map +1 -0
  14. package/node_modules/@sudocode-ai/cli/dist/cli/merge-commands.d.ts +42 -0
  15. package/node_modules/@sudocode-ai/cli/dist/cli/merge-commands.d.ts.map +1 -0
  16. package/node_modules/@sudocode-ai/cli/dist/cli/merge-commands.js +405 -0
  17. package/node_modules/@sudocode-ai/cli/dist/cli/merge-commands.js.map +1 -0
  18. package/node_modules/@sudocode-ai/cli/dist/cli/plugin-commands.d.ts +62 -0
  19. package/node_modules/@sudocode-ai/cli/dist/cli/plugin-commands.d.ts.map +1 -0
  20. package/node_modules/@sudocode-ai/cli/dist/cli/plugin-commands.js +595 -0
  21. package/node_modules/@sudocode-ai/cli/dist/cli/plugin-commands.js.map +1 -0
  22. package/node_modules/@sudocode-ai/cli/dist/cli/query-commands.d.ts +18 -0
  23. package/node_modules/@sudocode-ai/cli/dist/cli/query-commands.d.ts.map +1 -0
  24. package/node_modules/@sudocode-ai/cli/dist/cli/query-commands.js +61 -0
  25. package/node_modules/@sudocode-ai/cli/dist/cli/query-commands.js.map +1 -0
  26. package/node_modules/@sudocode-ai/cli/dist/cli/reference-commands.d.ts +22 -0
  27. package/node_modules/@sudocode-ai/cli/dist/cli/reference-commands.d.ts.map +1 -0
  28. package/node_modules/@sudocode-ai/cli/dist/cli/reference-commands.js +136 -0
  29. package/node_modules/@sudocode-ai/cli/dist/cli/reference-commands.js.map +1 -0
  30. package/node_modules/@sudocode-ai/cli/dist/cli/relationship-commands.d.ts +14 -0
  31. package/node_modules/@sudocode-ai/cli/dist/cli/relationship-commands.d.ts.map +1 -0
  32. package/node_modules/@sudocode-ai/cli/dist/cli/relationship-commands.js +83 -0
  33. package/node_modules/@sudocode-ai/cli/dist/cli/relationship-commands.js.map +1 -0
  34. package/node_modules/@sudocode-ai/cli/dist/cli/server-commands.d.ts +17 -0
  35. package/node_modules/@sudocode-ai/cli/dist/cli/server-commands.d.ts.map +1 -0
  36. package/node_modules/@sudocode-ai/cli/dist/cli/server-commands.js +123 -0
  37. package/node_modules/@sudocode-ai/cli/dist/cli/server-commands.js.map +1 -0
  38. package/node_modules/@sudocode-ai/cli/dist/cli/spec-commands.d.ts +38 -0
  39. package/node_modules/@sudocode-ai/cli/dist/cli/spec-commands.d.ts.map +1 -0
  40. package/node_modules/@sudocode-ai/cli/dist/cli/spec-commands.js +326 -0
  41. package/node_modules/@sudocode-ai/cli/dist/cli/spec-commands.js.map +1 -0
  42. package/node_modules/@sudocode-ai/cli/dist/cli/status-commands.d.ts +17 -0
  43. package/node_modules/@sudocode-ai/cli/dist/cli/status-commands.d.ts.map +1 -0
  44. package/node_modules/@sudocode-ai/cli/dist/cli/status-commands.js +131 -0
  45. package/node_modules/@sudocode-ai/cli/dist/cli/status-commands.js.map +1 -0
  46. package/node_modules/@sudocode-ai/cli/dist/cli/sync-commands.d.ts +24 -0
  47. package/node_modules/@sudocode-ai/cli/dist/cli/sync-commands.d.ts.map +1 -0
  48. package/node_modules/@sudocode-ai/cli/dist/cli/sync-commands.js +429 -0
  49. package/node_modules/@sudocode-ai/cli/dist/cli/sync-commands.js.map +1 -0
  50. package/node_modules/@sudocode-ai/cli/dist/cli/update-commands.d.ts +16 -0
  51. package/node_modules/@sudocode-ai/cli/dist/cli/update-commands.d.ts.map +1 -0
  52. package/node_modules/@sudocode-ai/cli/dist/cli/update-commands.js +160 -0
  53. package/node_modules/@sudocode-ai/cli/dist/cli/update-commands.js.map +1 -0
  54. package/node_modules/@sudocode-ai/cli/dist/cli.d.ts +6 -0
  55. package/node_modules/@sudocode-ai/cli/dist/cli.d.ts.map +1 -0
  56. package/node_modules/@sudocode-ai/cli/dist/cli.js +543 -0
  57. package/node_modules/@sudocode-ai/cli/dist/cli.js.map +1 -0
  58. package/node_modules/@sudocode-ai/cli/dist/config.d.ts +50 -0
  59. package/node_modules/@sudocode-ai/cli/dist/config.d.ts.map +1 -0
  60. package/node_modules/@sudocode-ai/cli/dist/config.js +76 -0
  61. package/node_modules/@sudocode-ai/cli/dist/config.js.map +1 -0
  62. package/node_modules/@sudocode-ai/cli/dist/db.d.ts +21 -0
  63. package/node_modules/@sudocode-ai/cli/dist/db.d.ts.map +1 -0
  64. package/node_modules/@sudocode-ai/cli/dist/db.js +55 -0
  65. package/node_modules/@sudocode-ai/cli/dist/db.js.map +1 -0
  66. package/node_modules/@sudocode-ai/cli/dist/export.d.ts +84 -0
  67. package/node_modules/@sudocode-ai/cli/dist/export.d.ts.map +1 -0
  68. package/node_modules/@sudocode-ai/cli/dist/export.js +265 -0
  69. package/node_modules/@sudocode-ai/cli/dist/export.js.map +1 -0
  70. package/node_modules/@sudocode-ai/cli/dist/filename-generator.d.ts +31 -0
  71. package/node_modules/@sudocode-ai/cli/dist/filename-generator.d.ts.map +1 -0
  72. package/node_modules/@sudocode-ai/cli/dist/filename-generator.js +103 -0
  73. package/node_modules/@sudocode-ai/cli/dist/filename-generator.js.map +1 -0
  74. package/node_modules/@sudocode-ai/cli/dist/id-generator.d.ts +63 -0
  75. package/node_modules/@sudocode-ai/cli/dist/id-generator.d.ts.map +1 -0
  76. package/node_modules/@sudocode-ai/cli/dist/id-generator.js +196 -0
  77. package/node_modules/@sudocode-ai/cli/dist/id-generator.js.map +1 -0
  78. package/node_modules/@sudocode-ai/cli/dist/import.d.ts +134 -0
  79. package/node_modules/@sudocode-ai/cli/dist/import.d.ts.map +1 -0
  80. package/node_modules/@sudocode-ai/cli/dist/import.js +751 -0
  81. package/node_modules/@sudocode-ai/cli/dist/import.js.map +1 -0
  82. package/node_modules/@sudocode-ai/cli/dist/index.d.ts +15 -0
  83. package/node_modules/@sudocode-ai/cli/dist/index.d.ts.map +1 -0
  84. package/node_modules/@sudocode-ai/cli/dist/index.js +15 -0
  85. package/node_modules/@sudocode-ai/cli/dist/index.js.map +1 -0
  86. package/node_modules/@sudocode-ai/cli/dist/integrations/base-provider.d.ts +108 -0
  87. package/node_modules/@sudocode-ai/cli/dist/integrations/base-provider.d.ts.map +1 -0
  88. package/node_modules/@sudocode-ai/cli/dist/integrations/base-provider.js +80 -0
  89. package/node_modules/@sudocode-ai/cli/dist/integrations/base-provider.js.map +1 -0
  90. package/node_modules/@sudocode-ai/cli/dist/integrations/config-resolver.d.ts +62 -0
  91. package/node_modules/@sudocode-ai/cli/dist/integrations/config-resolver.d.ts.map +1 -0
  92. package/node_modules/@sudocode-ai/cli/dist/integrations/config-resolver.js +69 -0
  93. package/node_modules/@sudocode-ai/cli/dist/integrations/config-resolver.js.map +1 -0
  94. package/node_modules/@sudocode-ai/cli/dist/integrations/config-validator.d.ts +75 -0
  95. package/node_modules/@sudocode-ai/cli/dist/integrations/config-validator.d.ts.map +1 -0
  96. package/node_modules/@sudocode-ai/cli/dist/integrations/config-validator.js +129 -0
  97. package/node_modules/@sudocode-ai/cli/dist/integrations/config-validator.js.map +1 -0
  98. package/node_modules/@sudocode-ai/cli/dist/integrations/index.d.ts +14 -0
  99. package/node_modules/@sudocode-ai/cli/dist/integrations/index.d.ts.map +1 -0
  100. package/node_modules/@sudocode-ai/cli/dist/integrations/index.js +20 -0
  101. package/node_modules/@sudocode-ai/cli/dist/integrations/index.js.map +1 -0
  102. package/node_modules/@sudocode-ai/cli/dist/integrations/plugin-loader.d.ts +77 -0
  103. package/node_modules/@sudocode-ai/cli/dist/integrations/plugin-loader.d.ts.map +1 -0
  104. package/node_modules/@sudocode-ai/cli/dist/integrations/plugin-loader.js +265 -0
  105. package/node_modules/@sudocode-ai/cli/dist/integrations/plugin-loader.js.map +1 -0
  106. package/node_modules/@sudocode-ai/cli/dist/integrations/registry.d.ts +67 -0
  107. package/node_modules/@sudocode-ai/cli/dist/integrations/registry.d.ts.map +1 -0
  108. package/node_modules/@sudocode-ai/cli/dist/integrations/registry.js +77 -0
  109. package/node_modules/@sudocode-ai/cli/dist/integrations/registry.js.map +1 -0
  110. package/node_modules/@sudocode-ai/cli/dist/integrations/sync-coordinator.d.ts +191 -0
  111. package/node_modules/@sudocode-ai/cli/dist/integrations/sync-coordinator.d.ts.map +1 -0
  112. package/node_modules/@sudocode-ai/cli/dist/integrations/sync-coordinator.js +798 -0
  113. package/node_modules/@sudocode-ai/cli/dist/integrations/sync-coordinator.js.map +1 -0
  114. package/node_modules/@sudocode-ai/cli/dist/integrations/types.d.ts +142 -0
  115. package/node_modules/@sudocode-ai/cli/dist/integrations/types.d.ts.map +1 -0
  116. package/node_modules/@sudocode-ai/cli/dist/integrations/types.js +6 -0
  117. package/node_modules/@sudocode-ai/cli/dist/integrations/types.js.map +1 -0
  118. package/node_modules/@sudocode-ai/cli/dist/integrations/utils/conflict-resolver.d.ts +79 -0
  119. package/node_modules/@sudocode-ai/cli/dist/integrations/utils/conflict-resolver.d.ts.map +1 -0
  120. package/node_modules/@sudocode-ai/cli/dist/integrations/utils/conflict-resolver.js +106 -0
  121. package/node_modules/@sudocode-ai/cli/dist/integrations/utils/conflict-resolver.js.map +1 -0
  122. package/node_modules/@sudocode-ai/cli/dist/jsonl.d.ts +69 -0
  123. package/node_modules/@sudocode-ai/cli/dist/jsonl.d.ts.map +1 -0
  124. package/node_modules/@sudocode-ai/cli/dist/jsonl.js +333 -0
  125. package/node_modules/@sudocode-ai/cli/dist/jsonl.js.map +1 -0
  126. package/node_modules/@sudocode-ai/cli/dist/markdown.d.ts +146 -0
  127. package/node_modules/@sudocode-ai/cli/dist/markdown.d.ts.map +1 -0
  128. package/node_modules/@sudocode-ai/cli/dist/markdown.js +329 -0
  129. package/node_modules/@sudocode-ai/cli/dist/markdown.js.map +1 -0
  130. package/node_modules/@sudocode-ai/cli/dist/merge-resolver.d.ts +85 -0
  131. package/node_modules/@sudocode-ai/cli/dist/merge-resolver.d.ts.map +1 -0
  132. package/node_modules/@sudocode-ai/cli/dist/merge-resolver.js +301 -0
  133. package/node_modules/@sudocode-ai/cli/dist/merge-resolver.js.map +1 -0
  134. package/node_modules/@sudocode-ai/cli/dist/operations/events.d.ts +53 -0
  135. package/node_modules/@sudocode-ai/cli/dist/operations/events.d.ts.map +1 -0
  136. package/node_modules/@sudocode-ai/cli/dist/operations/events.js +108 -0
  137. package/node_modules/@sudocode-ai/cli/dist/operations/events.js.map +1 -0
  138. package/node_modules/@sudocode-ai/cli/dist/operations/external-links.d.ts +147 -0
  139. package/node_modules/@sudocode-ai/cli/dist/operations/external-links.d.ts.map +1 -0
  140. package/node_modules/@sudocode-ai/cli/dist/operations/external-links.js +411 -0
  141. package/node_modules/@sudocode-ai/cli/dist/operations/external-links.js.map +1 -0
  142. package/node_modules/@sudocode-ai/cli/dist/operations/feedback-anchors.d.ts +92 -0
  143. package/node_modules/@sudocode-ai/cli/dist/operations/feedback-anchors.d.ts.map +1 -0
  144. package/node_modules/@sudocode-ai/cli/dist/operations/feedback-anchors.js +444 -0
  145. package/node_modules/@sudocode-ai/cli/dist/operations/feedback-anchors.js.map +1 -0
  146. package/node_modules/@sudocode-ai/cli/dist/operations/feedback.d.ts +94 -0
  147. package/node_modules/@sudocode-ai/cli/dist/operations/feedback.d.ts.map +1 -0
  148. package/node_modules/@sudocode-ai/cli/dist/operations/feedback.js +278 -0
  149. package/node_modules/@sudocode-ai/cli/dist/operations/feedback.js.map +1 -0
  150. package/node_modules/@sudocode-ai/cli/dist/operations/index.d.ts +11 -0
  151. package/node_modules/@sudocode-ai/cli/dist/operations/index.d.ts.map +1 -0
  152. package/node_modules/@sudocode-ai/cli/dist/operations/index.js +11 -0
  153. package/node_modules/@sudocode-ai/cli/dist/operations/index.js.map +1 -0
  154. package/node_modules/@sudocode-ai/cli/dist/operations/issues.d.ts +88 -0
  155. package/node_modules/@sudocode-ai/cli/dist/operations/issues.d.ts.map +1 -0
  156. package/node_modules/@sudocode-ai/cli/dist/operations/issues.js +474 -0
  157. package/node_modules/@sudocode-ai/cli/dist/operations/issues.js.map +1 -0
  158. package/node_modules/@sudocode-ai/cli/dist/operations/references.d.ts +34 -0
  159. package/node_modules/@sudocode-ai/cli/dist/operations/references.d.ts.map +1 -0
  160. package/node_modules/@sudocode-ai/cli/dist/operations/references.js +117 -0
  161. package/node_modules/@sudocode-ai/cli/dist/operations/references.js.map +1 -0
  162. package/node_modules/@sudocode-ai/cli/dist/operations/relationships.d.ts +64 -0
  163. package/node_modules/@sudocode-ai/cli/dist/operations/relationships.d.ts.map +1 -0
  164. package/node_modules/@sudocode-ai/cli/dist/operations/relationships.js +281 -0
  165. package/node_modules/@sudocode-ai/cli/dist/operations/relationships.js.map +1 -0
  166. package/node_modules/@sudocode-ai/cli/dist/operations/specs.d.ts +69 -0
  167. package/node_modules/@sudocode-ai/cli/dist/operations/specs.d.ts.map +1 -0
  168. package/node_modules/@sudocode-ai/cli/dist/operations/specs.js +330 -0
  169. package/node_modules/@sudocode-ai/cli/dist/operations/specs.js.map +1 -0
  170. package/node_modules/@sudocode-ai/cli/dist/operations/tags.d.ts +42 -0
  171. package/node_modules/@sudocode-ai/cli/dist/operations/tags.d.ts.map +1 -0
  172. package/node_modules/@sudocode-ai/cli/dist/operations/tags.js +127 -0
  173. package/node_modules/@sudocode-ai/cli/dist/operations/tags.js.map +1 -0
  174. package/node_modules/@sudocode-ai/cli/dist/operations/transactions.d.ts +41 -0
  175. package/node_modules/@sudocode-ai/cli/dist/operations/transactions.d.ts.map +1 -0
  176. package/node_modules/@sudocode-ai/cli/dist/operations/transactions.js +111 -0
  177. package/node_modules/@sudocode-ai/cli/dist/operations/transactions.js.map +1 -0
  178. package/node_modules/@sudocode-ai/cli/dist/sync.d.ts +47 -0
  179. package/node_modules/@sudocode-ai/cli/dist/sync.d.ts.map +1 -0
  180. package/node_modules/@sudocode-ai/cli/dist/sync.js +464 -0
  181. package/node_modules/@sudocode-ai/cli/dist/sync.js.map +1 -0
  182. package/node_modules/@sudocode-ai/cli/dist/test-schema.d.ts +5 -0
  183. package/node_modules/@sudocode-ai/cli/dist/test-schema.d.ts.map +1 -0
  184. package/node_modules/@sudocode-ai/cli/dist/test-schema.js +46 -0
  185. package/node_modules/@sudocode-ai/cli/dist/test-schema.js.map +1 -0
  186. package/node_modules/@sudocode-ai/cli/dist/types.d.ts +7 -0
  187. package/node_modules/@sudocode-ai/cli/dist/types.d.ts.map +1 -0
  188. package/node_modules/@sudocode-ai/cli/dist/types.js +7 -0
  189. package/node_modules/@sudocode-ai/cli/dist/types.js.map +1 -0
  190. package/node_modules/@sudocode-ai/cli/dist/update-checker.d.ts +33 -0
  191. package/node_modules/@sudocode-ai/cli/dist/update-checker.d.ts.map +1 -0
  192. package/node_modules/@sudocode-ai/cli/dist/update-checker.js +193 -0
  193. package/node_modules/@sudocode-ai/cli/dist/update-checker.js.map +1 -0
  194. package/node_modules/@sudocode-ai/cli/dist/validation.d.ts +11 -0
  195. package/node_modules/@sudocode-ai/cli/dist/validation.d.ts.map +1 -0
  196. package/node_modules/@sudocode-ai/cli/dist/validation.js +58 -0
  197. package/node_modules/@sudocode-ai/cli/dist/validation.js.map +1 -0
  198. package/node_modules/@sudocode-ai/cli/dist/version.d.ts +12 -0
  199. package/node_modules/@sudocode-ai/cli/dist/version.d.ts.map +1 -0
  200. package/node_modules/@sudocode-ai/cli/dist/version.js +23 -0
  201. package/node_modules/@sudocode-ai/cli/dist/version.js.map +1 -0
  202. package/node_modules/@sudocode-ai/cli/dist/watcher.d.ts +69 -0
  203. package/node_modules/@sudocode-ai/cli/dist/watcher.d.ts.map +1 -0
  204. package/node_modules/@sudocode-ai/cli/dist/watcher.js +783 -0
  205. package/node_modules/@sudocode-ai/cli/dist/watcher.js.map +1 -0
  206. package/node_modules/@sudocode-ai/cli/package.json +73 -0
  207. package/node_modules/@sudocode-ai/integration-beads/package.json +44 -0
  208. package/node_modules/@sudocode-ai/integration-github/package.json +41 -0
  209. package/node_modules/@sudocode-ai/integration-openspec/package.json +43 -0
  210. package/node_modules/@sudocode-ai/integration-speckit/package.json +42 -0
  211. package/node_modules/@sudocode-ai/local-server/README.md +25 -0
  212. package/node_modules/@sudocode-ai/local-server/dist/cli.d.ts +7 -0
  213. package/node_modules/@sudocode-ai/local-server/dist/cli.d.ts.map +1 -0
  214. package/node_modules/@sudocode-ai/local-server/dist/cli.js +7 -0
  215. package/node_modules/@sudocode-ai/local-server/dist/cli.js.map +1 -0
  216. package/node_modules/@sudocode-ai/local-server/dist/errors/agent-errors.d.ts +43 -0
  217. package/node_modules/@sudocode-ai/local-server/dist/errors/agent-errors.d.ts.map +1 -0
  218. package/node_modules/@sudocode-ai/local-server/dist/errors/agent-errors.js +69 -0
  219. package/node_modules/@sudocode-ai/local-server/dist/errors/agent-errors.js.map +1 -0
  220. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/claude-adapter.d.ts +63 -0
  221. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/claude-adapter.d.ts.map +1 -0
  222. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/claude-adapter.js +83 -0
  223. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/claude-adapter.js.map +1 -0
  224. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-adapter.d.ts +67 -0
  225. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-adapter.d.ts.map +1 -0
  226. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-adapter.js +183 -0
  227. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-adapter.js.map +1 -0
  228. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-config-builder.d.ts +30 -0
  229. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-config-builder.d.ts.map +1 -0
  230. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-config-builder.js +110 -0
  231. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/codex-config-builder.js.map +1 -0
  232. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-adapter.d.ts +94 -0
  233. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-adapter.d.ts.map +1 -0
  234. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-adapter.js +163 -0
  235. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-adapter.js.map +1 -0
  236. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-config-builder.d.ts +48 -0
  237. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-config-builder.d.ts.map +1 -0
  238. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-config-builder.js +125 -0
  239. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/copilot-config-builder.js.map +1 -0
  240. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-adapter.d.ts +66 -0
  241. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-adapter.d.ts.map +1 -0
  242. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-adapter.js +121 -0
  243. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-adapter.js.map +1 -0
  244. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-config-builder.d.ts +29 -0
  245. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-config-builder.d.ts.map +1 -0
  246. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-config-builder.js +49 -0
  247. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/cursor-config-builder.js.map +1 -0
  248. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-presets.d.ts +102 -0
  249. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-presets.d.ts.map +1 -0
  250. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-presets.js +205 -0
  251. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-presets.js.map +1 -0
  252. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-utils.d.ts +95 -0
  253. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-utils.d.ts.map +1 -0
  254. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-utils.js +163 -0
  255. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/config-utils.js.map +1 -0
  256. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/index.d.ts +8 -0
  257. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/index.d.ts.map +1 -0
  258. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/index.js +8 -0
  259. package/node_modules/@sudocode-ai/local-server/dist/execution/adapters/shared/index.js.map +1 -0
  260. package/node_modules/@sudocode-ai/local-server/dist/execution/executors/agent-executor-wrapper.d.ts +154 -0
  261. package/node_modules/@sudocode-ai/local-server/dist/execution/executors/agent-executor-wrapper.d.ts.map +1 -0
  262. package/node_modules/@sudocode-ai/local-server/dist/execution/executors/agent-executor-wrapper.js +725 -0
  263. package/node_modules/@sudocode-ai/local-server/dist/execution/executors/agent-executor-wrapper.js.map +1 -0
  264. package/node_modules/@sudocode-ai/local-server/dist/execution/executors/executor-factory.d.ts +95 -0
  265. package/node_modules/@sudocode-ai/local-server/dist/execution/executors/executor-factory.d.ts.map +1 -0
  266. package/node_modules/@sudocode-ai/local-server/dist/execution/executors/executor-factory.js +128 -0
  267. package/node_modules/@sudocode-ai/local-server/dist/execution/executors/executor-factory.js.map +1 -0
  268. package/node_modules/@sudocode-ai/local-server/dist/execution/output/ag-ui-adapter.d.ts +174 -0
  269. package/node_modules/@sudocode-ai/local-server/dist/execution/output/ag-ui-adapter.d.ts.map +1 -0
  270. package/node_modules/@sudocode-ai/local-server/dist/execution/output/ag-ui-adapter.js +436 -0
  271. package/node_modules/@sudocode-ai/local-server/dist/execution/output/ag-ui-adapter.js.map +1 -0
  272. package/node_modules/@sudocode-ai/local-server/dist/execution/output/claude-to-ag-ui.d.ts +90 -0
  273. package/node_modules/@sudocode-ai/local-server/dist/execution/output/claude-to-ag-ui.d.ts.map +1 -0
  274. package/node_modules/@sudocode-ai/local-server/dist/execution/output/claude-to-ag-ui.js +153 -0
  275. package/node_modules/@sudocode-ai/local-server/dist/execution/output/claude-to-ag-ui.js.map +1 -0
  276. package/node_modules/@sudocode-ai/local-server/dist/execution/output/index.d.ts +15 -0
  277. package/node_modules/@sudocode-ai/local-server/dist/execution/output/index.d.ts.map +1 -0
  278. package/node_modules/@sudocode-ai/local-server/dist/execution/output/index.js +13 -0
  279. package/node_modules/@sudocode-ai/local-server/dist/execution/output/index.js.map +1 -0
  280. package/node_modules/@sudocode-ai/local-server/dist/execution/output/normalized-to-ag-ui-adapter.d.ts +108 -0
  281. package/node_modules/@sudocode-ai/local-server/dist/execution/output/normalized-to-ag-ui-adapter.d.ts.map +1 -0
  282. package/node_modules/@sudocode-ai/local-server/dist/execution/output/normalized-to-ag-ui-adapter.js +321 -0
  283. package/node_modules/@sudocode-ai/local-server/dist/execution/output/normalized-to-ag-ui-adapter.js.map +1 -0
  284. package/node_modules/@sudocode-ai/local-server/dist/execution/output/types.d.ts +421 -0
  285. package/node_modules/@sudocode-ai/local-server/dist/execution/output/types.d.ts.map +1 -0
  286. package/node_modules/@sudocode-ai/local-server/dist/execution/output/types.js +22 -0
  287. package/node_modules/@sudocode-ai/local-server/dist/execution/output/types.js.map +1 -0
  288. package/node_modules/@sudocode-ai/local-server/dist/execution/process/builders/claude.d.ts +53 -0
  289. package/node_modules/@sudocode-ai/local-server/dist/execution/process/builders/claude.d.ts.map +1 -0
  290. package/node_modules/@sudocode-ai/local-server/dist/execution/process/builders/claude.js +225 -0
  291. package/node_modules/@sudocode-ai/local-server/dist/execution/process/builders/claude.js.map +1 -0
  292. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/event-buffer.d.ts +119 -0
  293. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/event-buffer.d.ts.map +1 -0
  294. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/event-buffer.js +208 -0
  295. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/event-buffer.js.map +1 -0
  296. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/index.d.ts +10 -0
  297. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/index.d.ts.map +1 -0
  298. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/index.js +10 -0
  299. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/index.js.map +1 -0
  300. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/ipc-transport-manager.d.ts +74 -0
  301. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/ipc-transport-manager.d.ts.map +1 -0
  302. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/ipc-transport-manager.js +104 -0
  303. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/ipc-transport-manager.js.map +1 -0
  304. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/sse-transport.d.ts +146 -0
  305. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/sse-transport.d.ts.map +1 -0
  306. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/sse-transport.js +282 -0
  307. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/sse-transport.js.map +1 -0
  308. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/transport-manager.d.ts +176 -0
  309. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/transport-manager.d.ts.map +1 -0
  310. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/transport-manager.js +234 -0
  311. package/node_modules/@sudocode-ai/local-server/dist/execution/transport/transport-manager.js.map +1 -0
  312. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/config.d.ts +74 -0
  313. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/config.d.ts.map +1 -0
  314. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/config.js +280 -0
  315. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/config.js.map +1 -0
  316. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/conflict-detector.d.ts +85 -0
  317. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/conflict-detector.d.ts.map +1 -0
  318. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/conflict-detector.js +129 -0
  319. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/conflict-detector.js.map +1 -0
  320. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-cli.d.ts +208 -0
  321. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-cli.d.ts.map +1 -0
  322. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-cli.js +280 -0
  323. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-cli.js.map +1 -0
  324. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-sync-cli.d.ts +225 -0
  325. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-sync-cli.d.ts.map +1 -0
  326. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-sync-cli.js +464 -0
  327. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/git-sync-cli.js.map +1 -0
  328. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/index.d.ts +16 -0
  329. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/index.d.ts.map +1 -0
  330. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/index.js +15 -0
  331. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/index.js.map +1 -0
  332. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/manager.d.ts +221 -0
  333. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/manager.d.ts.map +1 -0
  334. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/manager.js +508 -0
  335. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/manager.js.map +1 -0
  336. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/types.d.ts +90 -0
  337. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/types.d.ts.map +1 -0
  338. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/types.js +42 -0
  339. package/node_modules/@sudocode-ai/local-server/dist/execution/worktree/types.js.map +1 -0
  340. package/node_modules/@sudocode-ai/local-server/dist/index.d.ts +6 -0
  341. package/node_modules/@sudocode-ai/local-server/dist/index.d.ts.map +1 -0
  342. package/node_modules/@sudocode-ai/local-server/dist/index.js +371 -0
  343. package/node_modules/@sudocode-ai/local-server/dist/index.js.map +1 -0
  344. package/node_modules/@sudocode-ai/local-server/dist/middleware/project-context.d.ts +37 -0
  345. package/node_modules/@sudocode-ai/local-server/dist/middleware/project-context.d.ts.map +1 -0
  346. package/node_modules/@sudocode-ai/local-server/dist/middleware/project-context.js +91 -0
  347. package/node_modules/@sudocode-ai/local-server/dist/middleware/project-context.js.map +1 -0
  348. package/node_modules/@sudocode-ai/local-server/dist/public/assets/index-D4AKx6EO.css +1 -0
  349. package/node_modules/@sudocode-ai/local-server/dist/public/assets/index-DorQqwGV.js +927 -0
  350. package/node_modules/@sudocode-ai/local-server/dist/public/assets/index-DorQqwGV.js.map +1 -0
  351. package/node_modules/@sudocode-ai/local-server/dist/public/assets/react-vendor-DoNwlLhy.js +60 -0
  352. package/node_modules/@sudocode-ai/local-server/dist/public/assets/react-vendor-DoNwlLhy.js.map +1 -0
  353. package/node_modules/@sudocode-ai/local-server/dist/public/assets/ui-vendor-DlxvBun1.js +54 -0
  354. package/node_modules/@sudocode-ai/local-server/dist/public/assets/ui-vendor-DlxvBun1.js.map +1 -0
  355. package/node_modules/@sudocode-ai/local-server/dist/public/favicon.ico +0 -0
  356. package/node_modules/@sudocode-ai/local-server/dist/public/index.html +16 -0
  357. package/node_modules/@sudocode-ai/local-server/dist/public/logo.png +0 -0
  358. package/node_modules/@sudocode-ai/local-server/dist/routes/agents.d.ts +3 -0
  359. package/node_modules/@sudocode-ai/local-server/dist/routes/agents.d.ts.map +1 -0
  360. package/node_modules/@sudocode-ai/local-server/dist/routes/agents.js +62 -0
  361. package/node_modules/@sudocode-ai/local-server/dist/routes/agents.js.map +1 -0
  362. package/node_modules/@sudocode-ai/local-server/dist/routes/config.d.ts +3 -0
  363. package/node_modules/@sudocode-ai/local-server/dist/routes/config.d.ts.map +1 -0
  364. package/node_modules/@sudocode-ai/local-server/dist/routes/config.js +116 -0
  365. package/node_modules/@sudocode-ai/local-server/dist/routes/config.js.map +1 -0
  366. package/node_modules/@sudocode-ai/local-server/dist/routes/editors.d.ts +15 -0
  367. package/node_modules/@sudocode-ai/local-server/dist/routes/editors.d.ts.map +1 -0
  368. package/node_modules/@sudocode-ai/local-server/dist/routes/editors.js +98 -0
  369. package/node_modules/@sudocode-ai/local-server/dist/routes/editors.js.map +1 -0
  370. package/node_modules/@sudocode-ai/local-server/dist/routes/executions-stream.d.ts +27 -0
  371. package/node_modules/@sudocode-ai/local-server/dist/routes/executions-stream.d.ts.map +1 -0
  372. package/node_modules/@sudocode-ai/local-server/dist/routes/executions-stream.js +59 -0
  373. package/node_modules/@sudocode-ai/local-server/dist/routes/executions-stream.js.map +1 -0
  374. package/node_modules/@sudocode-ai/local-server/dist/routes/executions.d.ts +18 -0
  375. package/node_modules/@sudocode-ai/local-server/dist/routes/executions.d.ts.map +1 -0
  376. package/node_modules/@sudocode-ai/local-server/dist/routes/executions.js +1169 -0
  377. package/node_modules/@sudocode-ai/local-server/dist/routes/executions.js.map +1 -0
  378. package/node_modules/@sudocode-ai/local-server/dist/routes/feedback.d.ts +8 -0
  379. package/node_modules/@sudocode-ai/local-server/dist/routes/feedback.d.ts.map +1 -0
  380. package/node_modules/@sudocode-ai/local-server/dist/routes/feedback.js +340 -0
  381. package/node_modules/@sudocode-ai/local-server/dist/routes/feedback.js.map +1 -0
  382. package/node_modules/@sudocode-ai/local-server/dist/routes/files.d.ts +18 -0
  383. package/node_modules/@sudocode-ai/local-server/dist/routes/files.d.ts.map +1 -0
  384. package/node_modules/@sudocode-ai/local-server/dist/routes/files.js +89 -0
  385. package/node_modules/@sudocode-ai/local-server/dist/routes/files.js.map +1 -0
  386. package/node_modules/@sudocode-ai/local-server/dist/routes/import.d.ts +142 -0
  387. package/node_modules/@sudocode-ai/local-server/dist/routes/import.d.ts.map +1 -0
  388. package/node_modules/@sudocode-ai/local-server/dist/routes/import.js +896 -0
  389. package/node_modules/@sudocode-ai/local-server/dist/routes/import.js.map +1 -0
  390. package/node_modules/@sudocode-ai/local-server/dist/routes/issues.d.ts +8 -0
  391. package/node_modules/@sudocode-ai/local-server/dist/routes/issues.d.ts.map +1 -0
  392. package/node_modules/@sudocode-ai/local-server/dist/routes/issues.js +419 -0
  393. package/node_modules/@sudocode-ai/local-server/dist/routes/issues.js.map +1 -0
  394. package/node_modules/@sudocode-ai/local-server/dist/routes/plugins.d.ts +34 -0
  395. package/node_modules/@sudocode-ai/local-server/dist/routes/plugins.d.ts.map +1 -0
  396. package/node_modules/@sudocode-ai/local-server/dist/routes/plugins.js +602 -0
  397. package/node_modules/@sudocode-ai/local-server/dist/routes/plugins.js.map +1 -0
  398. package/node_modules/@sudocode-ai/local-server/dist/routes/projects.d.ts +11 -0
  399. package/node_modules/@sudocode-ai/local-server/dist/routes/projects.d.ts.map +1 -0
  400. package/node_modules/@sudocode-ai/local-server/dist/routes/projects.js +536 -0
  401. package/node_modules/@sudocode-ai/local-server/dist/routes/projects.js.map +1 -0
  402. package/node_modules/@sudocode-ai/local-server/dist/routes/relationships.d.ts +8 -0
  403. package/node_modules/@sudocode-ai/local-server/dist/routes/relationships.d.ts.map +1 -0
  404. package/node_modules/@sudocode-ai/local-server/dist/routes/relationships.js +310 -0
  405. package/node_modules/@sudocode-ai/local-server/dist/routes/relationships.js.map +1 -0
  406. package/node_modules/@sudocode-ai/local-server/dist/routes/repo-info.d.ts +3 -0
  407. package/node_modules/@sudocode-ai/local-server/dist/routes/repo-info.d.ts.map +1 -0
  408. package/node_modules/@sudocode-ai/local-server/dist/routes/repo-info.js +203 -0
  409. package/node_modules/@sudocode-ai/local-server/dist/routes/repo-info.js.map +1 -0
  410. package/node_modules/@sudocode-ai/local-server/dist/routes/specs.d.ts +8 -0
  411. package/node_modules/@sudocode-ai/local-server/dist/routes/specs.d.ts.map +1 -0
  412. package/node_modules/@sudocode-ai/local-server/dist/routes/specs.js +414 -0
  413. package/node_modules/@sudocode-ai/local-server/dist/routes/specs.js.map +1 -0
  414. package/node_modules/@sudocode-ai/local-server/dist/routes/update.d.ts +7 -0
  415. package/node_modules/@sudocode-ai/local-server/dist/routes/update.d.ts.map +1 -0
  416. package/node_modules/@sudocode-ai/local-server/dist/routes/update.js +194 -0
  417. package/node_modules/@sudocode-ai/local-server/dist/routes/update.js.map +1 -0
  418. package/node_modules/@sudocode-ai/local-server/dist/routes/version.d.ts +3 -0
  419. package/node_modules/@sudocode-ai/local-server/dist/routes/version.d.ts.map +1 -0
  420. package/node_modules/@sudocode-ai/local-server/dist/routes/version.js +25 -0
  421. package/node_modules/@sudocode-ai/local-server/dist/routes/version.js.map +1 -0
  422. package/node_modules/@sudocode-ai/local-server/dist/routes/workflows.d.ts +8 -0
  423. package/node_modules/@sudocode-ai/local-server/dist/routes/workflows.d.ts.map +1 -0
  424. package/node_modules/@sudocode-ai/local-server/dist/routes/workflows.js +1729 -0
  425. package/node_modules/@sudocode-ai/local-server/dist/routes/workflows.js.map +1 -0
  426. package/node_modules/@sudocode-ai/local-server/dist/services/agent-registry.d.ts +140 -0
  427. package/node_modules/@sudocode-ai/local-server/dist/services/agent-registry.d.ts.map +1 -0
  428. package/node_modules/@sudocode-ai/local-server/dist/services/agent-registry.js +272 -0
  429. package/node_modules/@sudocode-ai/local-server/dist/services/agent-registry.js.map +1 -0
  430. package/node_modules/@sudocode-ai/local-server/dist/services/db.d.ts +33 -0
  431. package/node_modules/@sudocode-ai/local-server/dist/services/db.d.ts.map +1 -0
  432. package/node_modules/@sudocode-ai/local-server/dist/services/db.js +90 -0
  433. package/node_modules/@sudocode-ai/local-server/dist/services/db.js.map +1 -0
  434. package/node_modules/@sudocode-ai/local-server/dist/services/editor-service.d.ts +57 -0
  435. package/node_modules/@sudocode-ai/local-server/dist/services/editor-service.d.ts.map +1 -0
  436. package/node_modules/@sudocode-ai/local-server/dist/services/editor-service.js +204 -0
  437. package/node_modules/@sudocode-ai/local-server/dist/services/editor-service.js.map +1 -0
  438. package/node_modules/@sudocode-ai/local-server/dist/services/execution-changes-service.d.ts +110 -0
  439. package/node_modules/@sudocode-ai/local-server/dist/services/execution-changes-service.d.ts.map +1 -0
  440. package/node_modules/@sudocode-ai/local-server/dist/services/execution-changes-service.js +710 -0
  441. package/node_modules/@sudocode-ai/local-server/dist/services/execution-changes-service.js.map +1 -0
  442. package/node_modules/@sudocode-ai/local-server/dist/services/execution-event-callbacks.d.ts +73 -0
  443. package/node_modules/@sudocode-ai/local-server/dist/services/execution-event-callbacks.d.ts.map +1 -0
  444. package/node_modules/@sudocode-ai/local-server/dist/services/execution-event-callbacks.js +82 -0
  445. package/node_modules/@sudocode-ai/local-server/dist/services/execution-event-callbacks.js.map +1 -0
  446. package/node_modules/@sudocode-ai/local-server/dist/services/execution-lifecycle.d.ts +145 -0
  447. package/node_modules/@sudocode-ai/local-server/dist/services/execution-lifecycle.d.ts.map +1 -0
  448. package/node_modules/@sudocode-ai/local-server/dist/services/execution-lifecycle.js +392 -0
  449. package/node_modules/@sudocode-ai/local-server/dist/services/execution-lifecycle.js.map +1 -0
  450. package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-cleanup.d.ts +88 -0
  451. package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-cleanup.d.ts.map +1 -0
  452. package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-cleanup.js +137 -0
  453. package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-cleanup.js.map +1 -0
  454. package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-store.d.ts +252 -0
  455. package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-store.d.ts.map +1 -0
  456. package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-store.js +379 -0
  457. package/node_modules/@sudocode-ai/local-server/dist/services/execution-logs-store.js.map +1 -0
  458. package/node_modules/@sudocode-ai/local-server/dist/services/execution-service.d.ts +280 -0
  459. package/node_modules/@sudocode-ai/local-server/dist/services/execution-service.d.ts.map +1 -0
  460. package/node_modules/@sudocode-ai/local-server/dist/services/execution-service.js +1240 -0
  461. package/node_modules/@sudocode-ai/local-server/dist/services/execution-service.js.map +1 -0
  462. package/node_modules/@sudocode-ai/local-server/dist/services/execution-worker-pool.d.ts +116 -0
  463. package/node_modules/@sudocode-ai/local-server/dist/services/execution-worker-pool.d.ts.map +1 -0
  464. package/node_modules/@sudocode-ai/local-server/dist/services/execution-worker-pool.js +326 -0
  465. package/node_modules/@sudocode-ai/local-server/dist/services/execution-worker-pool.js.map +1 -0
  466. package/node_modules/@sudocode-ai/local-server/dist/services/executions.d.ts +63 -0
  467. package/node_modules/@sudocode-ai/local-server/dist/services/executions.d.ts.map +1 -0
  468. package/node_modules/@sudocode-ai/local-server/dist/services/executions.js +177 -0
  469. package/node_modules/@sudocode-ai/local-server/dist/services/executions.js.map +1 -0
  470. package/node_modules/@sudocode-ai/local-server/dist/services/export.d.ts +32 -0
  471. package/node_modules/@sudocode-ai/local-server/dist/services/export.d.ts.map +1 -0
  472. package/node_modules/@sudocode-ai/local-server/dist/services/export.js +114 -0
  473. package/node_modules/@sudocode-ai/local-server/dist/services/export.js.map +1 -0
  474. package/node_modules/@sudocode-ai/local-server/dist/services/external-refresh-service.d.ts +104 -0
  475. package/node_modules/@sudocode-ai/local-server/dist/services/external-refresh-service.d.ts.map +1 -0
  476. package/node_modules/@sudocode-ai/local-server/dist/services/external-refresh-service.js +520 -0
  477. package/node_modules/@sudocode-ai/local-server/dist/services/external-refresh-service.js.map +1 -0
  478. package/node_modules/@sudocode-ai/local-server/dist/services/feedback.d.ts +56 -0
  479. package/node_modules/@sudocode-ai/local-server/dist/services/feedback.d.ts.map +1 -0
  480. package/node_modules/@sudocode-ai/local-server/dist/services/feedback.js +78 -0
  481. package/node_modules/@sudocode-ai/local-server/dist/services/feedback.js.map +1 -0
  482. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/git-ls-files-strategy.d.ts +72 -0
  483. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/git-ls-files-strategy.d.ts.map +1 -0
  484. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/git-ls-files-strategy.js +176 -0
  485. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/git-ls-files-strategy.js.map +1 -0
  486. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/index.d.ts +9 -0
  487. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/index.d.ts.map +1 -0
  488. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/index.js +10 -0
  489. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/index.js.map +1 -0
  490. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/registry.d.ts +97 -0
  491. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/registry.d.ts.map +1 -0
  492. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/registry.js +140 -0
  493. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/registry.js.map +1 -0
  494. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/strategy.d.ts +58 -0
  495. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/strategy.d.ts.map +1 -0
  496. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/strategy.js +8 -0
  497. package/node_modules/@sudocode-ai/local-server/dist/services/file-search/strategy.js.map +1 -0
  498. package/node_modules/@sudocode-ai/local-server/dist/services/integration-sync-service.d.ts +185 -0
  499. package/node_modules/@sudocode-ai/local-server/dist/services/integration-sync-service.d.ts.map +1 -0
  500. package/node_modules/@sudocode-ai/local-server/dist/services/integration-sync-service.js +428 -0
  501. package/node_modules/@sudocode-ai/local-server/dist/services/integration-sync-service.js.map +1 -0
  502. package/node_modules/@sudocode-ai/local-server/dist/services/issues.d.ts +27 -0
  503. package/node_modules/@sudocode-ai/local-server/dist/services/issues.d.ts.map +1 -0
  504. package/node_modules/@sudocode-ai/local-server/dist/services/issues.js +35 -0
  505. package/node_modules/@sudocode-ai/local-server/dist/services/issues.js.map +1 -0
  506. package/node_modules/@sudocode-ai/local-server/dist/services/project-context.d.ts +97 -0
  507. package/node_modules/@sudocode-ai/local-server/dist/services/project-context.d.ts.map +1 -0
  508. package/node_modules/@sudocode-ai/local-server/dist/services/project-context.js +170 -0
  509. package/node_modules/@sudocode-ai/local-server/dist/services/project-context.js.map +1 -0
  510. package/node_modules/@sudocode-ai/local-server/dist/services/project-manager.d.ts +102 -0
  511. package/node_modules/@sudocode-ai/local-server/dist/services/project-manager.d.ts.map +1 -0
  512. package/node_modules/@sudocode-ai/local-server/dist/services/project-manager.js +502 -0
  513. package/node_modules/@sudocode-ai/local-server/dist/services/project-manager.js.map +1 -0
  514. package/node_modules/@sudocode-ai/local-server/dist/services/project-registry.d.ts +98 -0
  515. package/node_modules/@sudocode-ai/local-server/dist/services/project-registry.d.ts.map +1 -0
  516. package/node_modules/@sudocode-ai/local-server/dist/services/project-registry.js +289 -0
  517. package/node_modules/@sudocode-ai/local-server/dist/services/project-registry.js.map +1 -0
  518. package/node_modules/@sudocode-ai/local-server/dist/services/prompt-resolver.d.ts +97 -0
  519. package/node_modules/@sudocode-ai/local-server/dist/services/prompt-resolver.d.ts.map +1 -0
  520. package/node_modules/@sudocode-ai/local-server/dist/services/prompt-resolver.js +377 -0
  521. package/node_modules/@sudocode-ai/local-server/dist/services/prompt-resolver.js.map +1 -0
  522. package/node_modules/@sudocode-ai/local-server/dist/services/prompt-template-engine.d.ts +108 -0
  523. package/node_modules/@sudocode-ai/local-server/dist/services/prompt-template-engine.d.ts.map +1 -0
  524. package/node_modules/@sudocode-ai/local-server/dist/services/prompt-template-engine.js +212 -0
  525. package/node_modules/@sudocode-ai/local-server/dist/services/prompt-template-engine.js.map +1 -0
  526. package/node_modules/@sudocode-ai/local-server/dist/services/prompt-templates.d.ts +97 -0
  527. package/node_modules/@sudocode-ai/local-server/dist/services/prompt-templates.d.ts.map +1 -0
  528. package/node_modules/@sudocode-ai/local-server/dist/services/prompt-templates.js +236 -0
  529. package/node_modules/@sudocode-ai/local-server/dist/services/prompt-templates.js.map +1 -0
  530. package/node_modules/@sudocode-ai/local-server/dist/services/relationships.d.ts +35 -0
  531. package/node_modules/@sudocode-ai/local-server/dist/services/relationships.d.ts.map +1 -0
  532. package/node_modules/@sudocode-ai/local-server/dist/services/relationships.js +42 -0
  533. package/node_modules/@sudocode-ai/local-server/dist/services/relationships.js.map +1 -0
  534. package/node_modules/@sudocode-ai/local-server/dist/services/repo-info.d.ts +33 -0
  535. package/node_modules/@sudocode-ai/local-server/dist/services/repo-info.d.ts.map +1 -0
  536. package/node_modules/@sudocode-ai/local-server/dist/services/repo-info.js +136 -0
  537. package/node_modules/@sudocode-ai/local-server/dist/services/repo-info.js.map +1 -0
  538. package/node_modules/@sudocode-ai/local-server/dist/services/specs.d.ts +27 -0
  539. package/node_modules/@sudocode-ai/local-server/dist/services/specs.d.ts.map +1 -0
  540. package/node_modules/@sudocode-ai/local-server/dist/services/specs.js +35 -0
  541. package/node_modules/@sudocode-ai/local-server/dist/services/specs.js.map +1 -0
  542. package/node_modules/@sudocode-ai/local-server/dist/services/version-service.d.ts +14 -0
  543. package/node_modules/@sudocode-ai/local-server/dist/services/version-service.d.ts.map +1 -0
  544. package/node_modules/@sudocode-ai/local-server/dist/services/version-service.js +57 -0
  545. package/node_modules/@sudocode-ai/local-server/dist/services/version-service.js.map +1 -0
  546. package/node_modules/@sudocode-ai/local-server/dist/services/watcher.d.ts +49 -0
  547. package/node_modules/@sudocode-ai/local-server/dist/services/watcher.d.ts.map +1 -0
  548. package/node_modules/@sudocode-ai/local-server/dist/services/watcher.js +52 -0
  549. package/node_modules/@sudocode-ai/local-server/dist/services/watcher.js.map +1 -0
  550. package/node_modules/@sudocode-ai/local-server/dist/services/websocket.d.ts +179 -0
  551. package/node_modules/@sudocode-ai/local-server/dist/services/websocket.d.ts.map +1 -0
  552. package/node_modules/@sudocode-ai/local-server/dist/services/websocket.js +543 -0
  553. package/node_modules/@sudocode-ai/local-server/dist/services/websocket.js.map +1 -0
  554. package/node_modules/@sudocode-ai/local-server/dist/services/workflow-broadcast-service.d.ts +43 -0
  555. package/node_modules/@sudocode-ai/local-server/dist/services/workflow-broadcast-service.d.ts.map +1 -0
  556. package/node_modules/@sudocode-ai/local-server/dist/services/workflow-broadcast-service.js +155 -0
  557. package/node_modules/@sudocode-ai/local-server/dist/services/workflow-broadcast-service.js.map +1 -0
  558. package/node_modules/@sudocode-ai/local-server/dist/services/worktree-sync-service.d.ts +437 -0
  559. package/node_modules/@sudocode-ai/local-server/dist/services/worktree-sync-service.d.ts.map +1 -0
  560. package/node_modules/@sudocode-ai/local-server/dist/services/worktree-sync-service.js +1505 -0
  561. package/node_modules/@sudocode-ai/local-server/dist/services/worktree-sync-service.js.map +1 -0
  562. package/node_modules/@sudocode-ai/local-server/dist/types/editor.d.ts +49 -0
  563. package/node_modules/@sudocode-ai/local-server/dist/types/editor.d.ts.map +1 -0
  564. package/node_modules/@sudocode-ai/local-server/dist/types/editor.js +50 -0
  565. package/node_modules/@sudocode-ai/local-server/dist/types/editor.js.map +1 -0
  566. package/node_modules/@sudocode-ai/local-server/dist/types/project.d.ts +58 -0
  567. package/node_modules/@sudocode-ai/local-server/dist/types/project.d.ts.map +1 -0
  568. package/node_modules/@sudocode-ai/local-server/dist/types/project.js +10 -0
  569. package/node_modules/@sudocode-ai/local-server/dist/types/project.js.map +1 -0
  570. package/node_modules/@sudocode-ai/local-server/dist/utils/execFileNoThrow.d.ts +43 -0
  571. package/node_modules/@sudocode-ai/local-server/dist/utils/execFileNoThrow.d.ts.map +1 -0
  572. package/node_modules/@sudocode-ai/local-server/dist/utils/execFileNoThrow.js +53 -0
  573. package/node_modules/@sudocode-ai/local-server/dist/utils/execFileNoThrow.js.map +1 -0
  574. package/node_modules/@sudocode-ai/local-server/dist/utils/executable-check.d.ts +36 -0
  575. package/node_modules/@sudocode-ai/local-server/dist/utils/executable-check.d.ts.map +1 -0
  576. package/node_modules/@sudocode-ai/local-server/dist/utils/executable-check.js +79 -0
  577. package/node_modules/@sudocode-ai/local-server/dist/utils/executable-check.js.map +1 -0
  578. package/node_modules/@sudocode-ai/local-server/dist/utils/sudocode-dir.d.ts +6 -0
  579. package/node_modules/@sudocode-ai/local-server/dist/utils/sudocode-dir.d.ts.map +1 -0
  580. package/node_modules/@sudocode-ai/local-server/dist/utils/sudocode-dir.js +9 -0
  581. package/node_modules/@sudocode-ai/local-server/dist/utils/sudocode-dir.js.map +1 -0
  582. package/node_modules/@sudocode-ai/local-server/dist/workers/execution-worker.d.ts +18 -0
  583. package/node_modules/@sudocode-ai/local-server/dist/workers/execution-worker.d.ts.map +1 -0
  584. package/node_modules/@sudocode-ai/local-server/dist/workers/execution-worker.js +340 -0
  585. package/node_modules/@sudocode-ai/local-server/dist/workers/execution-worker.js.map +1 -0
  586. package/node_modules/@sudocode-ai/local-server/dist/workers/worker-ipc.d.ts +84 -0
  587. package/node_modules/@sudocode-ai/local-server/dist/workers/worker-ipc.d.ts.map +1 -0
  588. package/node_modules/@sudocode-ai/local-server/dist/workers/worker-ipc.js +29 -0
  589. package/node_modules/@sudocode-ai/local-server/dist/workers/worker-ipc.js.map +1 -0
  590. package/node_modules/@sudocode-ai/local-server/dist/workflow/base-workflow-engine.d.ts +186 -0
  591. package/node_modules/@sudocode-ai/local-server/dist/workflow/base-workflow-engine.d.ts.map +1 -0
  592. package/node_modules/@sudocode-ai/local-server/dist/workflow/base-workflow-engine.js +557 -0
  593. package/node_modules/@sudocode-ai/local-server/dist/workflow/base-workflow-engine.js.map +1 -0
  594. package/node_modules/@sudocode-ai/local-server/dist/workflow/dependency-analyzer.d.ts +78 -0
  595. package/node_modules/@sudocode-ai/local-server/dist/workflow/dependency-analyzer.d.ts.map +1 -0
  596. package/node_modules/@sudocode-ai/local-server/dist/workflow/dependency-analyzer.js +264 -0
  597. package/node_modules/@sudocode-ai/local-server/dist/workflow/dependency-analyzer.js.map +1 -0
  598. package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/orchestrator-engine.d.ts +237 -0
  599. package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/orchestrator-engine.d.ts.map +1 -0
  600. package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/orchestrator-engine.js +749 -0
  601. package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/orchestrator-engine.js.map +1 -0
  602. package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/sequential-engine.d.ts +276 -0
  603. package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/sequential-engine.d.ts.map +1 -0
  604. package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/sequential-engine.js +1110 -0
  605. package/node_modules/@sudocode-ai/local-server/dist/workflow/engines/sequential-engine.js.map +1 -0
  606. package/node_modules/@sudocode-ai/local-server/dist/workflow/index.d.ts +15 -0
  607. package/node_modules/@sudocode-ai/local-server/dist/workflow/index.d.ts.map +1 -0
  608. package/node_modules/@sudocode-ai/local-server/dist/workflow/index.js +22 -0
  609. package/node_modules/@sudocode-ai/local-server/dist/workflow/index.js.map +1 -0
  610. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/api-client.d.ts +103 -0
  611. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/api-client.d.ts.map +1 -0
  612. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/api-client.js +193 -0
  613. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/api-client.js.map +1 -0
  614. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/index.d.ts +16 -0
  615. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/index.d.ts.map +1 -0
  616. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/index.js +114 -0
  617. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/index.js.map +1 -0
  618. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/server.d.ts +85 -0
  619. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/server.d.ts.map +1 -0
  620. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/server.js +520 -0
  621. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/server.js.map +1 -0
  622. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/escalation.d.ts +36 -0
  623. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/escalation.d.ts.map +1 -0
  624. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/escalation.js +47 -0
  625. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/escalation.js.map +1 -0
  626. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/execution.d.ts +59 -0
  627. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/execution.d.ts.map +1 -0
  628. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/execution.js +67 -0
  629. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/execution.js.map +1 -0
  630. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/inspection.d.ts +82 -0
  631. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/inspection.d.ts.map +1 -0
  632. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/inspection.js +57 -0
  633. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/inspection.js.map +1 -0
  634. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/workflow.d.ts +59 -0
  635. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/workflow.d.ts.map +1 -0
  636. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/workflow.js +40 -0
  637. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/tools/workflow.js.map +1 -0
  638. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/types.d.ts +345 -0
  639. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/types.d.ts.map +1 -0
  640. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/types.js +7 -0
  641. package/node_modules/@sudocode-ai/local-server/dist/workflow/mcp/types.js.map +1 -0
  642. package/node_modules/@sudocode-ai/local-server/dist/workflow/services/prompt-builder.d.ts +36 -0
  643. package/node_modules/@sudocode-ai/local-server/dist/workflow/services/prompt-builder.d.ts.map +1 -0
  644. package/node_modules/@sudocode-ai/local-server/dist/workflow/services/prompt-builder.js +329 -0
  645. package/node_modules/@sudocode-ai/local-server/dist/workflow/services/prompt-builder.js.map +1 -0
  646. package/node_modules/@sudocode-ai/local-server/dist/workflow/services/wakeup-service.d.ts +262 -0
  647. package/node_modules/@sudocode-ai/local-server/dist/workflow/services/wakeup-service.d.ts.map +1 -0
  648. package/node_modules/@sudocode-ai/local-server/dist/workflow/services/wakeup-service.js +809 -0
  649. package/node_modules/@sudocode-ai/local-server/dist/workflow/services/wakeup-service.js.map +1 -0
  650. package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-engine.d.ts +221 -0
  651. package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-engine.d.ts.map +1 -0
  652. package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-engine.js +94 -0
  653. package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-engine.js.map +1 -0
  654. package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-event-emitter.d.ts +278 -0
  655. package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-event-emitter.d.ts.map +1 -0
  656. package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-event-emitter.js +259 -0
  657. package/node_modules/@sudocode-ai/local-server/dist/workflow/workflow-event-emitter.js.map +1 -0
  658. package/node_modules/@sudocode-ai/local-server/package.json +78 -0
  659. package/node_modules/@sudocode-ai/mcp/README.md +226 -0
  660. package/node_modules/@sudocode-ai/mcp/dist/client.d.ts +33 -0
  661. package/node_modules/@sudocode-ai/mcp/dist/client.d.ts.map +1 -0
  662. package/node_modules/@sudocode-ai/mcp/dist/client.js +166 -0
  663. package/node_modules/@sudocode-ai/mcp/dist/client.js.map +1 -0
  664. package/node_modules/@sudocode-ai/mcp/dist/index.d.ts +6 -0
  665. package/node_modules/@sudocode-ai/mcp/dist/index.d.ts.map +1 -0
  666. package/node_modules/@sudocode-ai/mcp/dist/index.js +64 -0
  667. package/node_modules/@sudocode-ai/mcp/dist/index.js.map +1 -0
  668. package/node_modules/@sudocode-ai/mcp/dist/server.d.ts +26 -0
  669. package/node_modules/@sudocode-ai/mcp/dist/server.d.ts.map +1 -0
  670. package/node_modules/@sudocode-ai/mcp/dist/server.js +577 -0
  671. package/node_modules/@sudocode-ai/mcp/dist/server.js.map +1 -0
  672. package/node_modules/@sudocode-ai/mcp/dist/tools/analytics.d.ts +41 -0
  673. package/node_modules/@sudocode-ai/mcp/dist/tools/analytics.d.ts.map +1 -0
  674. package/node_modules/@sudocode-ai/mcp/dist/tools/analytics.js +21 -0
  675. package/node_modules/@sudocode-ai/mcp/dist/tools/analytics.js.map +1 -0
  676. package/node_modules/@sudocode-ai/mcp/dist/tools/feedback.d.ts +21 -0
  677. package/node_modules/@sudocode-ai/mcp/dist/tools/feedback.d.ts.map +1 -0
  678. package/node_modules/@sudocode-ai/mcp/dist/tools/feedback.js +30 -0
  679. package/node_modules/@sudocode-ai/mcp/dist/tools/feedback.js.map +1 -0
  680. package/node_modules/@sudocode-ai/mcp/dist/tools/init.d.ts +17 -0
  681. package/node_modules/@sudocode-ai/mcp/dist/tools/init.d.ts.map +1 -0
  682. package/node_modules/@sudocode-ai/mcp/dist/tools/init.js +15 -0
  683. package/node_modules/@sudocode-ai/mcp/dist/tools/init.js.map +1 -0
  684. package/node_modules/@sudocode-ai/mcp/dist/tools/issues.d.ts +44 -0
  685. package/node_modules/@sudocode-ai/mcp/dist/tools/issues.d.ts.map +1 -0
  686. package/node_modules/@sudocode-ai/mcp/dist/tools/issues.js +109 -0
  687. package/node_modules/@sudocode-ai/mcp/dist/tools/issues.js.map +1 -0
  688. package/node_modules/@sudocode-ai/mcp/dist/tools/references.d.ts +21 -0
  689. package/node_modules/@sudocode-ai/mcp/dist/tools/references.d.ts.map +1 -0
  690. package/node_modules/@sudocode-ai/mcp/dist/tools/references.js +49 -0
  691. package/node_modules/@sudocode-ai/mcp/dist/tools/references.js.map +1 -0
  692. package/node_modules/@sudocode-ai/mcp/dist/tools/relationships.d.ts +15 -0
  693. package/node_modules/@sudocode-ai/mcp/dist/tools/relationships.d.ts.map +1 -0
  694. package/node_modules/@sudocode-ai/mcp/dist/tools/relationships.js +18 -0
  695. package/node_modules/@sudocode-ai/mcp/dist/tools/relationships.js.map +1 -0
  696. package/node_modules/@sudocode-ai/mcp/dist/tools/specs.d.ts +35 -0
  697. package/node_modules/@sudocode-ai/mcp/dist/tools/specs.d.ts.map +1 -0
  698. package/node_modules/@sudocode-ai/mcp/dist/tools/specs.js +85 -0
  699. package/node_modules/@sudocode-ai/mcp/dist/tools/specs.js.map +1 -0
  700. package/node_modules/@sudocode-ai/mcp/dist/types.d.ts +35 -0
  701. package/node_modules/@sudocode-ai/mcp/dist/types.d.ts.map +1 -0
  702. package/node_modules/@sudocode-ai/mcp/dist/types.js +21 -0
  703. package/node_modules/@sudocode-ai/mcp/dist/types.js.map +1 -0
  704. package/node_modules/@sudocode-ai/mcp/package.json +67 -0
  705. package/node_modules/@sudocode-ai/types/README.md +7 -0
  706. package/node_modules/@sudocode-ai/types/package.json +76 -0
  707. package/node_modules/@sudocode-ai/types/src/agents.d.ts +278 -0
  708. package/node_modules/@sudocode-ai/types/src/artifacts.d.ts +66 -0
  709. package/node_modules/@sudocode-ai/types/src/events.d.ts +70 -0
  710. package/node_modules/@sudocode-ai/types/src/index.d.ts +452 -0
  711. package/node_modules/@sudocode-ai/types/src/integrations.d.ts +454 -0
  712. package/node_modules/@sudocode-ai/types/src/workflows.d.ts +501 -0
  713. package/node_modules/commander/LICENSE +22 -0
  714. package/node_modules/commander/Readme.md +1149 -0
  715. package/node_modules/commander/esm.mjs +16 -0
  716. package/node_modules/commander/index.js +24 -0
  717. package/node_modules/commander/lib/argument.js +149 -0
  718. package/node_modules/commander/lib/command.js +2662 -0
  719. package/node_modules/commander/lib/error.js +39 -0
  720. package/node_modules/commander/lib/help.js +709 -0
  721. package/node_modules/commander/lib/option.js +367 -0
  722. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  723. package/node_modules/commander/package-support.json +16 -0
  724. package/node_modules/commander/package.json +82 -0
  725. package/node_modules/commander/typings/esm.d.mts +3 -0
  726. package/node_modules/commander/typings/index.d.ts +1045 -0
  727. package/node_modules/glob/LICENSE +15 -0
  728. package/node_modules/glob/README.md +1265 -0
  729. package/node_modules/glob/package.json +99 -0
  730. package/node_modules/isexe/LICENSE +15 -0
  731. package/node_modules/isexe/README.md +74 -0
  732. package/node_modules/isexe/package.json +96 -0
  733. package/node_modules/which/LICENSE +15 -0
  734. package/node_modules/which/README.md +51 -0
  735. package/node_modules/which/bin/which.js +52 -0
  736. package/node_modules/which/lib/index.js +111 -0
  737. package/node_modules/which/package.json +52 -0
  738. package/package.json +9 -9
@@ -0,0 +1,329 @@
1
+ /**
2
+ * WorkflowPromptBuilder
3
+ *
4
+ * Constructs prompts for the orchestrator agent.
5
+ * Builds initial prompts when workflows start and wakeup messages when events occur.
6
+ */
7
+ // =============================================================================
8
+ // Helper Functions
9
+ // =============================================================================
10
+ /**
11
+ * Format a duration in milliseconds to human-readable string
12
+ */
13
+ function formatDuration(ms) {
14
+ const seconds = Math.floor(ms / 1000);
15
+ const minutes = Math.floor(seconds / 60);
16
+ const hours = Math.floor(minutes / 60);
17
+ if (hours > 0) {
18
+ const remainingMinutes = minutes % 60;
19
+ return `${hours}h ${remainingMinutes}m`;
20
+ }
21
+ if (minutes > 0) {
22
+ const remainingSeconds = seconds % 60;
23
+ return `${minutes}m ${remainingSeconds}s`;
24
+ }
25
+ return `${seconds}s`;
26
+ }
27
+ /**
28
+ * Parse files_changed JSON string to get count and stats
29
+ */
30
+ function parseFilesChanged(filesChanged) {
31
+ if (!filesChanged) {
32
+ return { count: 0, additions: 0, deletions: 0 };
33
+ }
34
+ try {
35
+ const files = JSON.parse(filesChanged);
36
+ const additions = files.reduce((sum, f) => sum + (f.additions || 0), 0);
37
+ const deletions = files.reduce((sum, f) => sum + (f.deletions || 0), 0);
38
+ return { count: files.length, additions, deletions };
39
+ }
40
+ catch {
41
+ return { count: 0, additions: 0, deletions: 0 };
42
+ }
43
+ }
44
+ /**
45
+ * Format workflow source for display
46
+ */
47
+ function formatSource(source) {
48
+ switch (source.type) {
49
+ case "spec":
50
+ return `Implementing spec \`${source.specId}\``;
51
+ case "issues":
52
+ return `Executing ${source.issueIds.length} issues: ${source.issueIds.join(", ")}`;
53
+ case "root_issue":
54
+ return `Completing issue \`${source.issueId}\` and its blockers`;
55
+ case "goal":
56
+ return `Goal: ${source.goal}`;
57
+ default:
58
+ return "Unknown source";
59
+ }
60
+ }
61
+ /**
62
+ * Format config for display
63
+ */
64
+ function formatConfig(config) {
65
+ const lines = [];
66
+ lines.push(`- **Autonomy Level**: ${config.autonomyLevel === "full_auto" ? "Full Auto (no user intervention)" : "Human-in-the-Loop"}`);
67
+ lines.push(`- **On Failure**: ${config.onFailure}`);
68
+ lines.push(`- **Default Agent**: ${config.defaultAgentType}`);
69
+ if (config.orchestratorModel) {
70
+ lines.push(`- **Model**: ${config.orchestratorModel}`);
71
+ }
72
+ if (config.executionTimeoutMs) {
73
+ lines.push(`- **Execution Timeout**: ${formatDuration(config.executionTimeoutMs)}`);
74
+ }
75
+ return lines.join("\n");
76
+ }
77
+ // =============================================================================
78
+ // WorkflowPromptBuilder
79
+ // =============================================================================
80
+ /**
81
+ * Builds prompts and messages for the orchestrator agent.
82
+ */
83
+ export class WorkflowPromptBuilder {
84
+ /**
85
+ * Build the initial prompt for the orchestrator when workflow starts.
86
+ * Includes: workflow source, config, available issues, relationships.
87
+ */
88
+ buildInitialPrompt(workflow, issues) {
89
+ const sections = [];
90
+ // Header
91
+ sections.push("# Workflow Orchestration");
92
+ sections.push("");
93
+ sections.push(`You are orchestrating workflow \`${workflow.id}\`: **${workflow.title}**`);
94
+ sections.push("");
95
+ // Source
96
+ sections.push("## Objective");
97
+ sections.push("");
98
+ sections.push(formatSource(workflow.source));
99
+ sections.push("");
100
+ // Configuration
101
+ sections.push("## Configuration");
102
+ sections.push("");
103
+ sections.push(formatConfig(workflow.config));
104
+ sections.push("");
105
+ // Available Tools
106
+ sections.push("## Available Tools");
107
+ sections.push("");
108
+ sections.push("You have access to workflow orchestration tools:");
109
+ sections.push("");
110
+ sections.push("| Tool | Purpose |");
111
+ sections.push("|------|---------|");
112
+ sections.push("| `workflow_status` | Get current workflow state, active executions, ready issues |");
113
+ sections.push("| `execute_issue` | Start an agent execution for an issue |");
114
+ sections.push("| `execution_status` | Check status of a running/completed execution |");
115
+ sections.push("| `execution_cancel` | Cancel a running execution |");
116
+ sections.push("| `execution_trajectory` | Get summarized trajectory (tool calls, decisions) |");
117
+ sections.push("| `execution_changes` | Get file changes from an execution |");
118
+ sections.push("| `escalate_to_user` | Request user input (async - response via wakeup) |");
119
+ sections.push("| `notify_user` | Send notification without blocking |");
120
+ sections.push("| `workflow_complete` | Mark workflow as complete |");
121
+ sections.push("");
122
+ sections.push("You also have access to sudocode tools (`ready`, `show_issue`, `upsert_issue`, `link`, etc.) for managing issues and specs.");
123
+ sections.push("");
124
+ // Issues
125
+ if (issues.length > 0) {
126
+ sections.push("## Issues to Execute");
127
+ sections.push("");
128
+ for (const issue of issues) {
129
+ const priority = issue.priority !== undefined ? ` (P${issue.priority})` : "";
130
+ sections.push(`### ${issue.id}: ${issue.title}${priority}`);
131
+ sections.push("");
132
+ sections.push(`Status: ${issue.status}`);
133
+ if (issue.content) {
134
+ // Truncate long content
135
+ const content = issue.content.length > 500
136
+ ? issue.content.slice(0, 500) + "..."
137
+ : issue.content;
138
+ sections.push("");
139
+ sections.push(content);
140
+ }
141
+ sections.push("");
142
+ }
143
+ }
144
+ else if (workflow.source.type === "goal") {
145
+ sections.push("## Getting Started");
146
+ sections.push("");
147
+ sections.push("This is a goal-based workflow. No issues have been created yet.");
148
+ sections.push("Use `upsert_issue` to create issues and `link` to establish dependencies.");
149
+ sections.push("Then use `execute_issue` to run agents on the issues.");
150
+ sections.push("");
151
+ }
152
+ // Instructions
153
+ sections.push("## Instructions");
154
+ sections.push("");
155
+ sections.push("1. Review the issues and their dependencies");
156
+ sections.push("2. Use `execute_issue` to start agents on ready issues");
157
+ sections.push("3. You will receive wakeup messages when executions complete or fail");
158
+ sections.push("4. Inspect results with `execution_trajectory` and `execution_changes`");
159
+ sections.push("5. Handle failures by retrying, creating fix issues, or escalating");
160
+ sections.push("6. When all work is done, call `workflow_complete` with a summary");
161
+ sections.push("");
162
+ sections.push("Begin by reviewing the current state and starting the first execution.");
163
+ return sections.join("\n");
164
+ }
165
+ /**
166
+ * Build a wakeup message from workflow events.
167
+ * Summarizes what happened since last orchestrator interaction.
168
+ *
169
+ * @param events - Unprocessed workflow events
170
+ * @param executions - Map of execution ID to execution data
171
+ * @param resolvedAwait - Optional resolved await context (if woken from await_events)
172
+ */
173
+ buildWakeupMessage(events, executions, resolvedAwait) {
174
+ const sections = [];
175
+ sections.push("[Workflow Event]");
176
+ sections.push("");
177
+ // If woken from await, explain what triggered it
178
+ if (resolvedAwait) {
179
+ sections.push("=== AWAIT RESOLVED ===");
180
+ sections.push(`You were waiting for: ${resolvedAwait.eventTypes.join(", ")}`);
181
+ sections.push(`Triggered by: ${resolvedAwait.resolvedBy}`);
182
+ if (resolvedAwait.message) {
183
+ sections.push(`Context: ${resolvedAwait.message}`);
184
+ }
185
+ if (resolvedAwait.executionIds && resolvedAwait.executionIds.length > 0) {
186
+ sections.push(`Filtered executions: ${resolvedAwait.executionIds.join(", ")}`);
187
+ }
188
+ sections.push("");
189
+ }
190
+ if (events.length === 0) {
191
+ if (resolvedAwait) {
192
+ // If we have a resolved await but no events, it was likely a timeout
193
+ sections.push("No new events - this is likely a timeout wakeup.");
194
+ }
195
+ else {
196
+ sections.push("No new events since last update.");
197
+ }
198
+ sections.push("");
199
+ sections.push("What would you like to do next?");
200
+ return sections.join("\n");
201
+ }
202
+ // Group events by type
203
+ const executionEvents = events.filter((e) => e.type === "step_completed" ||
204
+ e.type === "step_failed" ||
205
+ e.type === "step_started");
206
+ const escalationEvents = events.filter((e) => e.type === "escalation_resolved" || e.type === "user_response");
207
+ const lifecycleEvents = events.filter((e) => e.type === "workflow_paused" ||
208
+ e.type === "workflow_resumed");
209
+ // Execution updates
210
+ if (executionEvents.length > 0) {
211
+ sections.push("Executions changed since last update:");
212
+ sections.push("");
213
+ for (const event of executionEvents) {
214
+ const execution = event.executionId
215
+ ? executions.get(event.executionId)
216
+ : undefined;
217
+ if (execution) {
218
+ sections.push(this.summarizeExecution(execution));
219
+ sections.push("");
220
+ }
221
+ else {
222
+ // Fallback if execution not found
223
+ const issueId = event.payload.issueId || "unknown";
224
+ sections.push(`## ${issueId}`);
225
+ sections.push(`- Event: ${event.type}`);
226
+ if (event.payload) {
227
+ sections.push(`- Details: ${JSON.stringify(event.payload)}`);
228
+ }
229
+ sections.push("");
230
+ }
231
+ }
232
+ }
233
+ // Escalation responses
234
+ if (escalationEvents.length > 0) {
235
+ sections.push("User responses:");
236
+ sections.push("");
237
+ for (const event of escalationEvents) {
238
+ const payload = event.payload;
239
+ sections.push(`- **Action**: ${payload.action || "unknown"}`);
240
+ if (payload.message) {
241
+ sections.push(` Message: "${payload.message}"`);
242
+ }
243
+ sections.push("");
244
+ }
245
+ }
246
+ // Lifecycle events
247
+ if (lifecycleEvents.length > 0) {
248
+ for (const event of lifecycleEvents) {
249
+ if (event.type === "workflow_paused") {
250
+ sections.push("⚠️ Workflow was paused by user.");
251
+ sections.push("");
252
+ }
253
+ else if (event.type === "workflow_resumed") {
254
+ sections.push("✓ Workflow resumed.");
255
+ sections.push("");
256
+ }
257
+ }
258
+ }
259
+ sections.push("---");
260
+ sections.push("");
261
+ sections.push("Use `execution_trajectory` or `execution_changes` for details.");
262
+ sections.push("What would you like to do next?");
263
+ return sections.join("\n");
264
+ }
265
+ /**
266
+ * Create a compact summary of an execution result.
267
+ */
268
+ summarizeExecution(execution) {
269
+ const lines = [];
270
+ // Header with issue ID and title (from issue_id if available)
271
+ const issueId = execution.issue_id || "unknown";
272
+ lines.push(`## ${issueId}`);
273
+ // Status
274
+ const statusEmoji = this.getStatusEmoji(execution.status);
275
+ lines.push(`- Status: ${statusEmoji} ${execution.status.toUpperCase()}`);
276
+ // Duration
277
+ if (execution.started_at && execution.completed_at) {
278
+ const startTime = new Date(execution.started_at).getTime();
279
+ const endTime = new Date(execution.completed_at).getTime();
280
+ const duration = endTime - startTime;
281
+ lines.push(`- Duration: ${formatDuration(duration)}`);
282
+ }
283
+ // Files changed
284
+ const { count, additions, deletions } = parseFilesChanged(execution.files_changed);
285
+ if (count > 0) {
286
+ lines.push(`- Files changed: ${count} (+${additions}, -${deletions})`);
287
+ }
288
+ // For completed executions, show summary
289
+ if (execution.status === "completed" && execution.summary) {
290
+ const summary = execution.summary.length > 200
291
+ ? execution.summary.slice(0, 200) + "..."
292
+ : execution.summary;
293
+ lines.push(`- Summary: "${summary}"`);
294
+ }
295
+ // For failed executions, show error
296
+ if (execution.status === "failed") {
297
+ if (execution.exit_code !== null) {
298
+ lines.push(`- Exit code: ${execution.exit_code}`);
299
+ }
300
+ if (execution.error_message) {
301
+ const error = execution.error_message.length > 200
302
+ ? execution.error_message.slice(0, 200) + "..."
303
+ : execution.error_message;
304
+ lines.push(`- Error: "${error}"`);
305
+ }
306
+ }
307
+ return lines.join("\n");
308
+ }
309
+ /**
310
+ * Get emoji for execution status
311
+ */
312
+ getStatusEmoji(status) {
313
+ switch (status) {
314
+ case "completed":
315
+ return "✓";
316
+ case "failed":
317
+ return "✗";
318
+ case "running":
319
+ return "⏳";
320
+ case "stopped":
321
+ return "⏹";
322
+ case "pending":
323
+ return "○";
324
+ default:
325
+ return "•";
326
+ }
327
+ }
328
+ }
329
+ //# sourceMappingURL=prompt-builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-builder.js","sourceRoot":"","sources":["../../../src/workflow/services/prompt-builder.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,gFAAgF;AAChF,mBAAmB;AACnB,gFAAgF;AAEhF;;GAEG;AACH,SAAS,cAAc,CAAC,EAAU;IAChC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC;IACtC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;IACzC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;IAEvC,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;QACd,MAAM,gBAAgB,GAAG,OAAO,GAAG,EAAE,CAAC;QACtC,OAAO,GAAG,KAAK,KAAK,gBAAgB,GAAG,CAAC;IAC1C,CAAC;IACD,IAAI,OAAO,GAAG,CAAC,EAAE,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IAED;;OAEG;IACK,cAAc,CAAC,MAAc;QACnC,QAAQ,MAAM,EAAE,CAAC;YACf,KAAK,WAAW;gBACd,OAAO,GAAG,CAAC;YACb,KAAK,QAAQ;gBACX,OAAO,GAAG,CAAC;YACb,KAAK,SAAS;gBACZ,OAAO,GAAG,CAAC;YACb,KAAK,SAAS;gBACZ,OAAO,GAAG,CAAC;YACb,KAAK,SAAS;gBACZ,OAAO,GAAG,CAAC;YACb;gBACE,OAAO,GAAG,CAAC;QACf,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,262 @@
1
+ /**
2
+ * WorkflowWakeupService
3
+ *
4
+ * Handles event recording and orchestrator wakeups.
5
+ * Events are batched within a configurable window before triggering wakeups.
6
+ */
7
+ import type Database from "better-sqlite3";
8
+ import type { WorkflowEvent, WorkflowEventType } from "@sudocode-ai/types";
9
+ import type { AwaitableEventType } from "../mcp/types.js";
10
+ import type { ExecutionService } from "../../services/execution-service.js";
11
+ import type { WorkflowEventEmitter } from "../workflow-event-emitter.js";
12
+ import { WorkflowPromptBuilder } from "./prompt-builder.js";
13
+ /**
14
+ * Configuration for wakeup behavior
15
+ */
16
+ export interface WakeupConfig {
17
+ /** Batch window in ms - events within this window are batched into one wakeup */
18
+ batchWindowMs: number;
19
+ /** Optional: wake orchestrator if idle for this long */
20
+ idleTimeoutMs?: number;
21
+ /** Optional: wake orchestrator if execution takes longer than this */
22
+ executionTimeoutMs?: number;
23
+ }
24
+ /**
25
+ * Default wakeup configuration
26
+ */
27
+ export declare const DEFAULT_WAKEUP_CONFIG: WakeupConfig;
28
+ /**
29
+ * Event to record
30
+ */
31
+ export interface RecordEventParams {
32
+ workflowId: string;
33
+ type: WorkflowEventType;
34
+ executionId?: string;
35
+ stepId?: string;
36
+ payload: Record<string, unknown>;
37
+ }
38
+ /**
39
+ * Internal structure for tracking pending await conditions.
40
+ * Stored in-memory, not persisted to database.
41
+ */
42
+ export interface PendingAwait {
43
+ id: string;
44
+ workflowId: string;
45
+ eventTypes: AwaitableEventType[];
46
+ executionIds?: string[];
47
+ timeoutAt?: string;
48
+ message?: string;
49
+ createdAt: string;
50
+ }
51
+ /**
52
+ * Resolved await with trigger information
53
+ */
54
+ export interface ResolvedAwait extends PendingAwait {
55
+ resolvedBy: string;
56
+ }
57
+ /**
58
+ * Parameters for registering an await condition
59
+ */
60
+ export interface RegisterAwaitParams {
61
+ workflowId: string;
62
+ eventTypes: AwaitableEventType[];
63
+ executionIds?: string[];
64
+ timeoutSeconds?: number;
65
+ message?: string;
66
+ }
67
+ /**
68
+ * Service for recording workflow events and triggering orchestrator wakeups.
69
+ *
70
+ * Events are batched within a configurable window. When the window expires,
71
+ * a wakeup is triggered by creating a follow-up execution for the orchestrator.
72
+ */
73
+ export declare class WorkflowWakeupService {
74
+ private db;
75
+ private executionService;
76
+ private promptBuilder;
77
+ private eventEmitter;
78
+ private config;
79
+ /** Pending wakeup timers by workflow ID */
80
+ private pendingWakeups;
81
+ /** Active execution timeout timers by execution ID */
82
+ private executionTimeouts;
83
+ /** Pending await conditions by workflow ID */
84
+ private pendingAwaits;
85
+ /** Await timeout timers by await ID */
86
+ private awaitTimeouts;
87
+ /** Last resolved await for each workflow (for wakeup message context) */
88
+ private resolvedAwaits;
89
+ /** Whether the service is running (for timeout monitoring) */
90
+ private _isRunning;
91
+ /** Check if the service is running */
92
+ get isRunning(): boolean;
93
+ constructor(deps: {
94
+ db: Database.Database;
95
+ executionService: ExecutionService;
96
+ promptBuilder: WorkflowPromptBuilder;
97
+ eventEmitter: WorkflowEventEmitter;
98
+ config?: Partial<WakeupConfig>;
99
+ });
100
+ /**
101
+ * Record a workflow event.
102
+ * Automatically schedules a wakeup after the batch window.
103
+ * If an await condition is satisfied, triggers immediate wakeup.
104
+ */
105
+ recordEvent(params: RecordEventParams): Promise<void>;
106
+ /**
107
+ * Get all unprocessed events for a workflow.
108
+ */
109
+ getUnprocessedEvents(workflowId: string): WorkflowEvent[];
110
+ /**
111
+ * Mark events as processed.
112
+ */
113
+ markEventsProcessed(eventIds: string[]): void;
114
+ /**
115
+ * Schedule a wakeup for a workflow.
116
+ * Debounced within the batch window - multiple events will be batched.
117
+ */
118
+ scheduleWakeup(workflowId: string): void;
119
+ /**
120
+ * Cancel a pending wakeup for a workflow.
121
+ */
122
+ cancelPendingWakeup(workflowId: string): void;
123
+ /**
124
+ * Start a timeout for an execution.
125
+ *
126
+ * When the timeout fires, the execution is cancelled and a step_failed
127
+ * event is recorded with reason "timeout".
128
+ *
129
+ * The timeout deadline is persisted to the database so it can be recovered
130
+ * after server restart.
131
+ *
132
+ * @param executionId - The execution to track
133
+ * @param workflowId - The workflow the execution belongs to
134
+ * @param stepId - The workflow step ID
135
+ * @param timeoutMs - Timeout duration in milliseconds
136
+ */
137
+ startExecutionTimeout(executionId: string, workflowId: string, stepId: string, timeoutMs: number): void;
138
+ /**
139
+ * Clear timeout for an execution.
140
+ *
141
+ * Call this when an execution completes normally to prevent
142
+ * the timeout from firing. Also marks the persisted timeout
143
+ * event as processed in the database.
144
+ *
145
+ * @param executionId - The execution to clear timeout for
146
+ */
147
+ clearExecutionTimeout(executionId: string): void;
148
+ /**
149
+ * Handle an execution timeout.
150
+ *
151
+ * Cancels the execution and records a step_failed event.
152
+ *
153
+ * @param executionId - The timed-out execution
154
+ * @param workflowId - The workflow containing the execution
155
+ * @param stepId - The workflow step that timed out
156
+ */
157
+ private handleExecutionTimeout;
158
+ /**
159
+ * Trigger an immediate wakeup for a workflow.
160
+ * Collects unprocessed events, builds a wakeup message, and creates
161
+ * a follow-up execution for the orchestrator.
162
+ */
163
+ triggerWakeup(workflowId: string): Promise<void>;
164
+ /**
165
+ * Start the wakeup service (enables timeout monitoring).
166
+ */
167
+ start(): void;
168
+ /**
169
+ * Recover state from the database after server restart.
170
+ *
171
+ * This method:
172
+ * 1. Recovers pending await conditions from workflow_events
173
+ * 2. Reschedules await timeouts (calculating remaining time)
174
+ * 3. Triggers immediate wakeup for expired awaits
175
+ * 4. Schedules wakeups for workflows with unprocessed events
176
+ * 5. Recovers execution timeout timers
177
+ *
178
+ * Should be called during server startup after the service is constructed.
179
+ */
180
+ recoverState(): Promise<void>;
181
+ /**
182
+ * Recover pending await conditions from the database.
183
+ */
184
+ private recoverPendingAwaits;
185
+ /**
186
+ * Schedule wakeups for workflows with unprocessed events.
187
+ */
188
+ private recoverPendingWakeups;
189
+ /**
190
+ * Recover execution timeout timers from the database.
191
+ *
192
+ * Finds unprocessed execution_timeout events and reschedules the timers
193
+ * with the remaining time. If the timeout has already expired, handles
194
+ * the timeout immediately.
195
+ */
196
+ private recoverExecutionTimeouts;
197
+ /**
198
+ * Stop the wakeup service.
199
+ * Cancels all pending wakeups, execution timeouts, and await conditions.
200
+ */
201
+ stop(): void;
202
+ /**
203
+ * Register a new await condition.
204
+ * Called by the await-events API endpoint.
205
+ *
206
+ * Persists the await to workflow_events for recovery after server restart.
207
+ */
208
+ registerAwait(params: RegisterAwaitParams): {
209
+ id: string;
210
+ timeoutAt?: string;
211
+ };
212
+ /**
213
+ * Check if an event satisfies the pending await for a workflow.
214
+ * Called internally when recording events.
215
+ */
216
+ private checkAwaitCondition;
217
+ /**
218
+ * Map workflow event type to awaitable event type.
219
+ */
220
+ private mapToAwaitableEventType;
221
+ /**
222
+ * Resolve an await condition (internal).
223
+ *
224
+ * Marks the await event as processed in the database for recovery tracking.
225
+ */
226
+ private resolveAwait;
227
+ /**
228
+ * Schedule timeout for an await.
229
+ */
230
+ private scheduleAwaitTimeout;
231
+ /**
232
+ * Get the last resolved await for a workflow (for wakeup message).
233
+ * Clears after retrieval.
234
+ */
235
+ getAndClearResolvedAwait(workflowId: string): ResolvedAwait | undefined;
236
+ /**
237
+ * Clear all await state for a workflow (on cancel/complete).
238
+ * Marks any pending await events as processed in the database.
239
+ */
240
+ clearAwaitState(workflowId: string): void;
241
+ /**
242
+ * Check if a workflow has a pending await condition.
243
+ */
244
+ hasPendingAwait(workflowId: string): boolean;
245
+ /**
246
+ * Get the pending await for a workflow (if any).
247
+ */
248
+ getPendingAwait(workflowId: string): PendingAwait | undefined;
249
+ /**
250
+ * Get a workflow by ID.
251
+ */
252
+ private getWorkflow;
253
+ /**
254
+ * Get executions referenced by events.
255
+ */
256
+ private getExecutionsForEvents;
257
+ /**
258
+ * Update the workflow's orchestrator execution ID.
259
+ */
260
+ private updateOrchestratorExecution;
261
+ }
262
+ //# sourceMappingURL=wakeup-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wakeup-service.d.ts","sourceRoot":"","sources":["../../../src/workflow/services/wakeup-service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,EAEV,aAAa,EACb,iBAAiB,EAGlB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAM5D;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,iFAAiF;IACjF,aAAa,EAAE,MAAM,CAAC;IACtB,wDAAwD;IACxD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAEnC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,iBAAiB,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED;;;GAGG;AACH,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