@mc1global/opencode-jarvis 0.1.1 → 0.3.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 (291) hide show
  1. package/dist/application/agent-registry/dtos.d.ts +66 -0
  2. package/dist/application/agent-registry/dtos.d.ts.map +1 -0
  3. package/dist/application/agent-registry/dtos.js +11 -0
  4. package/dist/application/agent-registry/dtos.js.map +1 -0
  5. package/dist/application/agent-registry/use-cases.d.ts +39 -0
  6. package/dist/application/agent-registry/use-cases.d.ts.map +1 -0
  7. package/dist/application/agent-registry/use-cases.js +222 -0
  8. package/dist/application/agent-registry/use-cases.js.map +1 -0
  9. package/dist/application/azure-sync/dtos.d.ts +210 -0
  10. package/dist/application/azure-sync/dtos.d.ts.map +1 -0
  11. package/dist/application/azure-sync/dtos.js +11 -0
  12. package/dist/application/azure-sync/dtos.js.map +1 -0
  13. package/dist/application/azure-sync/field-builders.d.ts +54 -0
  14. package/dist/application/azure-sync/field-builders.d.ts.map +1 -0
  15. package/dist/application/azure-sync/field-builders.js +166 -0
  16. package/dist/application/azure-sync/field-builders.js.map +1 -0
  17. package/dist/application/azure-sync/index.d.ts +16 -0
  18. package/dist/application/azure-sync/index.d.ts.map +1 -0
  19. package/dist/application/azure-sync/index.js +10 -0
  20. package/dist/application/azure-sync/index.js.map +1 -0
  21. package/dist/application/azure-sync/pr-use-cases.d.ts +39 -0
  22. package/dist/application/azure-sync/pr-use-cases.d.ts.map +1 -0
  23. package/dist/application/azure-sync/pr-use-cases.js +192 -0
  24. package/dist/application/azure-sync/pr-use-cases.js.map +1 -0
  25. package/dist/application/azure-sync/pull-use-cases.d.ts +43 -0
  26. package/dist/application/azure-sync/pull-use-cases.d.ts.map +1 -0
  27. package/dist/application/azure-sync/pull-use-cases.js +322 -0
  28. package/dist/application/azure-sync/pull-use-cases.js.map +1 -0
  29. package/dist/application/azure-sync/push-use-cases.d.ts +53 -0
  30. package/dist/application/azure-sync/push-use-cases.d.ts.map +1 -0
  31. package/dist/application/azure-sync/push-use-cases.js +341 -0
  32. package/dist/application/azure-sync/push-use-cases.js.map +1 -0
  33. package/dist/application/azure-sync/reverse-field-builder.d.ts +52 -0
  34. package/dist/application/azure-sync/reverse-field-builder.d.ts.map +1 -0
  35. package/dist/application/azure-sync/reverse-field-builder.js +130 -0
  36. package/dist/application/azure-sync/reverse-field-builder.js.map +1 -0
  37. package/dist/application/azure-sync/task-push-use-cases.d.ts +68 -0
  38. package/dist/application/azure-sync/task-push-use-cases.d.ts.map +1 -0
  39. package/dist/application/azure-sync/task-push-use-cases.js +162 -0
  40. package/dist/application/azure-sync/task-push-use-cases.js.map +1 -0
  41. package/dist/application/config/config-service.d.ts +64 -0
  42. package/dist/application/config/config-service.d.ts.map +1 -0
  43. package/dist/application/config/config-service.js +110 -0
  44. package/dist/application/config/config-service.js.map +1 -0
  45. package/dist/application/config/index.d.ts +5 -0
  46. package/dist/application/config/index.d.ts.map +1 -0
  47. package/dist/application/config/index.js +5 -0
  48. package/dist/application/config/index.js.map +1 -0
  49. package/dist/application/kanban/board-use-cases.d.ts.map +1 -1
  50. package/dist/application/kanban/board-use-cases.js +14 -0
  51. package/dist/application/kanban/board-use-cases.js.map +1 -1
  52. package/dist/application/kanban/card-use-cases.d.ts +21 -2
  53. package/dist/application/kanban/card-use-cases.d.ts.map +1 -1
  54. package/dist/application/kanban/card-use-cases.js +180 -1
  55. package/dist/application/kanban/card-use-cases.js.map +1 -1
  56. package/dist/application/kanban/dtos.d.ts +59 -0
  57. package/dist/application/kanban/dtos.d.ts.map +1 -1
  58. package/dist/application/mcp/index.d.ts +10 -0
  59. package/dist/application/mcp/index.d.ts.map +1 -0
  60. package/dist/application/mcp/index.js +8 -0
  61. package/dist/application/mcp/index.js.map +1 -0
  62. package/dist/application/mcp/middleware.d.ts +91 -0
  63. package/dist/application/mcp/middleware.d.ts.map +1 -0
  64. package/dist/application/mcp/middleware.js +84 -0
  65. package/dist/application/mcp/middleware.js.map +1 -0
  66. package/dist/application/mcp/tool-adapter.d.ts +72 -0
  67. package/dist/application/mcp/tool-adapter.d.ts.map +1 -0
  68. package/dist/application/mcp/tool-adapter.js +132 -0
  69. package/dist/application/mcp/tool-adapter.js.map +1 -0
  70. package/dist/application/pipeline/dtos.d.ts +135 -0
  71. package/dist/application/pipeline/dtos.d.ts.map +1 -0
  72. package/dist/application/pipeline/dtos.js +11 -0
  73. package/dist/application/pipeline/dtos.js.map +1 -0
  74. package/dist/application/pipeline/index.d.ts +8 -0
  75. package/dist/application/pipeline/index.d.ts.map +1 -0
  76. package/dist/application/pipeline/index.js +7 -0
  77. package/dist/application/pipeline/index.js.map +1 -0
  78. package/dist/application/pipeline/use-cases.d.ts +67 -0
  79. package/dist/application/pipeline/use-cases.d.ts.map +1 -0
  80. package/dist/application/pipeline/use-cases.js +413 -0
  81. package/dist/application/pipeline/use-cases.js.map +1 -0
  82. package/dist/application/rag/use-cases.d.ts +3 -0
  83. package/dist/application/rag/use-cases.d.ts.map +1 -1
  84. package/dist/application/rag/use-cases.js +112 -34
  85. package/dist/application/rag/use-cases.js.map +1 -1
  86. package/dist/domain/agent-registry/entities.d.ts +68 -0
  87. package/dist/domain/agent-registry/entities.d.ts.map +1 -0
  88. package/dist/domain/agent-registry/entities.js +177 -0
  89. package/dist/domain/agent-registry/entities.js.map +1 -0
  90. package/dist/domain/agent-registry/repositories.d.ts +56 -0
  91. package/dist/domain/agent-registry/repositories.d.ts.map +1 -0
  92. package/dist/domain/agent-registry/repositories.js +12 -0
  93. package/dist/domain/agent-registry/repositories.js.map +1 -0
  94. package/dist/domain/agent-registry/services.d.ts +87 -0
  95. package/dist/domain/agent-registry/services.d.ts.map +1 -0
  96. package/dist/domain/agent-registry/services.js +188 -0
  97. package/dist/domain/agent-registry/services.js.map +1 -0
  98. package/dist/domain/agent-registry/value-objects.d.ts +145 -0
  99. package/dist/domain/agent-registry/value-objects.d.ts.map +1 -0
  100. package/dist/domain/agent-registry/value-objects.js +339 -0
  101. package/dist/domain/agent-registry/value-objects.js.map +1 -0
  102. package/dist/domain/azure-sync/entities.d.ts +165 -0
  103. package/dist/domain/azure-sync/entities.d.ts.map +1 -0
  104. package/dist/domain/azure-sync/entities.js +203 -0
  105. package/dist/domain/azure-sync/entities.js.map +1 -0
  106. package/dist/domain/azure-sync/index.d.ts +16 -0
  107. package/dist/domain/azure-sync/index.d.ts.map +1 -0
  108. package/dist/domain/azure-sync/index.js +14 -0
  109. package/dist/domain/azure-sync/index.js.map +1 -0
  110. package/dist/domain/azure-sync/ports.d.ts +117 -0
  111. package/dist/domain/azure-sync/ports.d.ts.map +1 -0
  112. package/dist/domain/azure-sync/ports.js +13 -0
  113. package/dist/domain/azure-sync/ports.js.map +1 -0
  114. package/dist/domain/azure-sync/repositories.d.ts +53 -0
  115. package/dist/domain/azure-sync/repositories.d.ts.map +1 -0
  116. package/dist/domain/azure-sync/repositories.js +11 -0
  117. package/dist/domain/azure-sync/repositories.js.map +1 -0
  118. package/dist/domain/azure-sync/services.d.ts +107 -0
  119. package/dist/domain/azure-sync/services.d.ts.map +1 -0
  120. package/dist/domain/azure-sync/services.js +316 -0
  121. package/dist/domain/azure-sync/services.js.map +1 -0
  122. package/dist/domain/azure-sync/value-objects.d.ts +129 -0
  123. package/dist/domain/azure-sync/value-objects.d.ts.map +1 -0
  124. package/dist/domain/azure-sync/value-objects.js +343 -0
  125. package/dist/domain/azure-sync/value-objects.js.map +1 -0
  126. package/dist/domain/config/index.d.ts +9 -0
  127. package/dist/domain/config/index.d.ts.map +1 -0
  128. package/dist/domain/config/index.js +7 -0
  129. package/dist/domain/config/index.js.map +1 -0
  130. package/dist/domain/config/repositories.d.ts +36 -0
  131. package/dist/domain/config/repositories.d.ts.map +1 -0
  132. package/dist/domain/config/repositories.js +12 -0
  133. package/dist/domain/config/repositories.js.map +1 -0
  134. package/dist/domain/config/value-objects.d.ts +112 -0
  135. package/dist/domain/config/value-objects.d.ts.map +1 -0
  136. package/dist/domain/config/value-objects.js +93 -0
  137. package/dist/domain/config/value-objects.js.map +1 -0
  138. package/dist/domain/governance/policies.d.ts.map +1 -1
  139. package/dist/domain/governance/policies.js +70 -0
  140. package/dist/domain/governance/policies.js.map +1 -1
  141. package/dist/domain/kanban/entities.d.ts +67 -15
  142. package/dist/domain/kanban/entities.d.ts.map +1 -1
  143. package/dist/domain/kanban/entities.js +177 -14
  144. package/dist/domain/kanban/entities.js.map +1 -1
  145. package/dist/domain/kanban/grooming.d.ts +27 -7
  146. package/dist/domain/kanban/grooming.d.ts.map +1 -1
  147. package/dist/domain/kanban/grooming.js +50 -12
  148. package/dist/domain/kanban/grooming.js.map +1 -1
  149. package/dist/domain/kanban/services.d.ts +16 -2
  150. package/dist/domain/kanban/services.d.ts.map +1 -1
  151. package/dist/domain/kanban/services.js +29 -2
  152. package/dist/domain/kanban/services.js.map +1 -1
  153. package/dist/domain/kanban/value-objects.d.ts +48 -0
  154. package/dist/domain/kanban/value-objects.d.ts.map +1 -1
  155. package/dist/domain/kanban/value-objects.js +53 -0
  156. package/dist/domain/kanban/value-objects.js.map +1 -1
  157. package/dist/domain/pipeline/gate.d.ts +75 -0
  158. package/dist/domain/pipeline/gate.d.ts.map +1 -0
  159. package/dist/domain/pipeline/gate.js +158 -0
  160. package/dist/domain/pipeline/gate.js.map +1 -0
  161. package/dist/domain/pipeline/index.d.ts +13 -0
  162. package/dist/domain/pipeline/index.d.ts.map +1 -0
  163. package/dist/domain/pipeline/index.js +14 -0
  164. package/dist/domain/pipeline/index.js.map +1 -0
  165. package/dist/domain/pipeline/pipeline.d.ts +99 -0
  166. package/dist/domain/pipeline/pipeline.d.ts.map +1 -0
  167. package/dist/domain/pipeline/pipeline.js +257 -0
  168. package/dist/domain/pipeline/pipeline.js.map +1 -0
  169. package/dist/domain/pipeline/ports.d.ts +120 -0
  170. package/dist/domain/pipeline/ports.d.ts.map +1 -0
  171. package/dist/domain/pipeline/ports.js +12 -0
  172. package/dist/domain/pipeline/ports.js.map +1 -0
  173. package/dist/domain/pipeline/repositories.d.ts +66 -0
  174. package/dist/domain/pipeline/repositories.d.ts.map +1 -0
  175. package/dist/domain/pipeline/repositories.js +11 -0
  176. package/dist/domain/pipeline/repositories.js.map +1 -0
  177. package/dist/domain/pipeline/services.d.ts +77 -0
  178. package/dist/domain/pipeline/services.d.ts.map +1 -0
  179. package/dist/domain/pipeline/services.js +156 -0
  180. package/dist/domain/pipeline/services.js.map +1 -0
  181. package/dist/domain/pipeline/value-objects.d.ts +117 -0
  182. package/dist/domain/pipeline/value-objects.d.ts.map +1 -0
  183. package/dist/domain/pipeline/value-objects.js +313 -0
  184. package/dist/domain/pipeline/value-objects.js.map +1 -0
  185. package/dist/domain/rag/value-objects.d.ts +9 -2
  186. package/dist/domain/rag/value-objects.d.ts.map +1 -1
  187. package/dist/domain/rag/value-objects.js +8 -2
  188. package/dist/domain/rag/value-objects.js.map +1 -1
  189. package/dist/index.d.ts.map +1 -1
  190. package/dist/index.js +113 -75
  191. package/dist/index.js.map +1 -1
  192. package/dist/infrastructure/agent-registry/agent-profile-repository.d.ts +29 -0
  193. package/dist/infrastructure/agent-registry/agent-profile-repository.d.ts.map +1 -0
  194. package/dist/infrastructure/agent-registry/agent-profile-repository.js +109 -0
  195. package/dist/infrastructure/agent-registry/agent-profile-repository.js.map +1 -0
  196. package/dist/infrastructure/agent-registry/agent-session-adapter.d.ts +28 -0
  197. package/dist/infrastructure/agent-registry/agent-session-adapter.d.ts.map +1 -0
  198. package/dist/infrastructure/agent-registry/agent-session-adapter.js +61 -0
  199. package/dist/infrastructure/agent-registry/agent-session-adapter.js.map +1 -0
  200. package/dist/infrastructure/agent-registry/built-in-profiles.d.ts +19 -0
  201. package/dist/infrastructure/agent-registry/built-in-profiles.d.ts.map +1 -0
  202. package/dist/infrastructure/agent-registry/built-in-profiles.js +210 -0
  203. package/dist/infrastructure/agent-registry/built-in-profiles.js.map +1 -0
  204. package/dist/infrastructure/azure-sync/azure-auth.d.ts +40 -0
  205. package/dist/infrastructure/azure-sync/azure-auth.d.ts.map +1 -0
  206. package/dist/infrastructure/azure-sync/azure-auth.js +94 -0
  207. package/dist/infrastructure/azure-sync/azure-auth.js.map +1 -0
  208. package/dist/infrastructure/azure-sync/azure-devops-client.d.ts +43 -0
  209. package/dist/infrastructure/azure-sync/azure-devops-client.d.ts.map +1 -0
  210. package/dist/infrastructure/azure-sync/azure-devops-client.js +296 -0
  211. package/dist/infrastructure/azure-sync/azure-devops-client.js.map +1 -0
  212. package/dist/infrastructure/azure-sync/index.d.ts +9 -0
  213. package/dist/infrastructure/azure-sync/index.d.ts.map +1 -0
  214. package/dist/infrastructure/azure-sync/index.js +12 -0
  215. package/dist/infrastructure/azure-sync/index.js.map +1 -0
  216. package/dist/infrastructure/azure-sync/sqlite-sync-repository.d.ts +39 -0
  217. package/dist/infrastructure/azure-sync/sqlite-sync-repository.d.ts.map +1 -0
  218. package/dist/infrastructure/azure-sync/sqlite-sync-repository.js +202 -0
  219. package/dist/infrastructure/azure-sync/sqlite-sync-repository.js.map +1 -0
  220. package/dist/infrastructure/config/index.d.ts +5 -0
  221. package/dist/infrastructure/config/index.d.ts.map +1 -0
  222. package/dist/infrastructure/config/index.js +5 -0
  223. package/dist/infrastructure/config/index.js.map +1 -0
  224. package/dist/infrastructure/config/yaml-config-repository.d.ts +22 -0
  225. package/dist/infrastructure/config/yaml-config-repository.d.ts.map +1 -0
  226. package/dist/infrastructure/config/yaml-config-repository.js +68 -0
  227. package/dist/infrastructure/config/yaml-config-repository.js.map +1 -0
  228. package/dist/infrastructure/domain-map/llm-prompt-factory.d.ts +21 -0
  229. package/dist/infrastructure/domain-map/llm-prompt-factory.d.ts.map +1 -0
  230. package/dist/infrastructure/domain-map/llm-prompt-factory.js +49 -0
  231. package/dist/infrastructure/domain-map/llm-prompt-factory.js.map +1 -0
  232. package/dist/infrastructure/kanban/card-repository.d.ts +6 -0
  233. package/dist/infrastructure/kanban/card-repository.d.ts.map +1 -1
  234. package/dist/infrastructure/kanban/card-repository.js +79 -7
  235. package/dist/infrastructure/kanban/card-repository.js.map +1 -1
  236. package/dist/infrastructure/pipeline/dagger-adapter.d.ts +50 -0
  237. package/dist/infrastructure/pipeline/dagger-adapter.d.ts.map +1 -0
  238. package/dist/infrastructure/pipeline/dagger-adapter.js +153 -0
  239. package/dist/infrastructure/pipeline/dagger-adapter.js.map +1 -0
  240. package/dist/infrastructure/pipeline/dagger-scaffold-generator.d.ts +35 -0
  241. package/dist/infrastructure/pipeline/dagger-scaffold-generator.d.ts.map +1 -0
  242. package/dist/infrastructure/pipeline/dagger-scaffold-generator.js +132 -0
  243. package/dist/infrastructure/pipeline/dagger-scaffold-generator.js.map +1 -0
  244. package/dist/infrastructure/pipeline/index.d.ts +20 -0
  245. package/dist/infrastructure/pipeline/index.d.ts.map +1 -0
  246. package/dist/infrastructure/pipeline/index.js +19 -0
  247. package/dist/infrastructure/pipeline/index.js.map +1 -0
  248. package/dist/infrastructure/pipeline/pipeline-template-registry.d.ts +23 -0
  249. package/dist/infrastructure/pipeline/pipeline-template-registry.d.ts.map +1 -0
  250. package/dist/infrastructure/pipeline/pipeline-template-registry.js +63 -0
  251. package/dist/infrastructure/pipeline/pipeline-template-registry.js.map +1 -0
  252. package/dist/infrastructure/pipeline/scaffold-templates-extra.d.ts +17 -0
  253. package/dist/infrastructure/pipeline/scaffold-templates-extra.d.ts.map +1 -0
  254. package/dist/infrastructure/pipeline/scaffold-templates-extra.js +467 -0
  255. package/dist/infrastructure/pipeline/scaffold-templates-extra.js.map +1 -0
  256. package/dist/infrastructure/pipeline/scaffold-templates.d.ts +23 -0
  257. package/dist/infrastructure/pipeline/scaffold-templates.d.ts.map +1 -0
  258. package/dist/infrastructure/pipeline/scaffold-templates.js +476 -0
  259. package/dist/infrastructure/pipeline/scaffold-templates.js.map +1 -0
  260. package/dist/infrastructure/pipeline/sqlite-pipeline-repository.d.ts +32 -0
  261. package/dist/infrastructure/pipeline/sqlite-pipeline-repository.d.ts.map +1 -0
  262. package/dist/infrastructure/pipeline/sqlite-pipeline-repository.js +197 -0
  263. package/dist/infrastructure/pipeline/sqlite-pipeline-repository.js.map +1 -0
  264. package/dist/mcp-server.d.ts +3 -0
  265. package/dist/mcp-server.d.ts.map +1 -0
  266. package/dist/mcp-server.js +300 -0
  267. package/dist/mcp-server.js.map +1 -0
  268. package/dist/tools/agent-registry-tools.d.ts +11 -0
  269. package/dist/tools/agent-registry-tools.d.ts.map +1 -0
  270. package/dist/tools/agent-registry-tools.js +208 -0
  271. package/dist/tools/agent-registry-tools.js.map +1 -0
  272. package/dist/tools/azure-sync-tools.d.ts +15 -0
  273. package/dist/tools/azure-sync-tools.d.ts.map +1 -0
  274. package/dist/tools/azure-sync-tools.js +332 -0
  275. package/dist/tools/azure-sync-tools.js.map +1 -0
  276. package/dist/tools/kanban-card-tools.d.ts.map +1 -1
  277. package/dist/tools/kanban-card-tools.js +41 -16
  278. package/dist/tools/kanban-card-tools.js.map +1 -1
  279. package/dist/tools/kanban-gate-tools.d.ts +7 -0
  280. package/dist/tools/kanban-gate-tools.d.ts.map +1 -0
  281. package/dist/tools/kanban-gate-tools.js +106 -0
  282. package/dist/tools/kanban-gate-tools.js.map +1 -0
  283. package/dist/tools/kanban-grooming-tools.d.ts +7 -0
  284. package/dist/tools/kanban-grooming-tools.d.ts.map +1 -0
  285. package/dist/tools/kanban-grooming-tools.js +180 -0
  286. package/dist/tools/kanban-grooming-tools.js.map +1 -0
  287. package/dist/tools/pipeline-tools.d.ts +15 -0
  288. package/dist/tools/pipeline-tools.d.ts.map +1 -0
  289. package/dist/tools/pipeline-tools.js +424 -0
  290. package/dist/tools/pipeline-tools.js.map +1 -0
  291. package/package.json +7 -2
@@ -0,0 +1,322 @@
1
+ /**
2
+ * Azure Sync Application — Pull & Bidirectional Use Cases
3
+ *
4
+ * Orchestrates pull (Azure → local) and bidirectional sync operations.
5
+ * Fetches Azure work items, reverse-maps fields, creates/updates local
6
+ * entities via kanban use cases, and resolves conflicts.
7
+ *
8
+ * SOLID: SRP — pull orchestration only
9
+ * SOLID: DIP — depends on interfaces (ports, repositories, use cases)
10
+ * DDD: Application service coordinating bounded contexts
11
+ */
12
+ import { ok, Timestamp } from "../../domain/shared/value-objects.js";
13
+ import { FieldMapper, ConflictResolver, AZURE_FIELDS } from "../../domain/azure-sync/services.js";
14
+ import { SyncMapping, SyncLog } from "../../domain/azure-sync/entities.js";
15
+ import { SyncMappingId, SyncLogId, WorkItemId } from "../../domain/azure-sync/value-objects.js";
16
+ import { ReverseFieldBuilder } from "./reverse-field-builder.js";
17
+ // ─── Pull Use Cases ───────────────────────────────────────────────────────────
18
+ /**
19
+ * Orchestrates pull and bidirectional sync operations.
20
+ * Fetches Azure work items and creates/updates local kanban entities.
21
+ */
22
+ export class AzureSyncPullUseCases {
23
+ deps;
24
+ pushUseCases;
25
+ fieldMapper = new FieldMapper();
26
+ reverseBuilder = new ReverseFieldBuilder(this.fieldMapper);
27
+ conflictResolver = new ConflictResolver();
28
+ constructor(deps, pushUseCases) {
29
+ this.deps = deps;
30
+ this.pushUseCases = pushUseCases;
31
+ }
32
+ // ── Pull ──────────────────────────────────────────────────────────
33
+ /** Pull work items from Azure and create/update local entities. */
34
+ async pull(req) {
35
+ const projResult = await this.deps.azureClient.getProjectInfo(req.org, req.project);
36
+ if (!projResult.success)
37
+ return projResult;
38
+ const template = projResult.data.processTemplate;
39
+ const created = [];
40
+ const updated = [];
41
+ const conflicts = [];
42
+ const skipped = [];
43
+ const errors = [];
44
+ if (req.entityType === "epic" || req.entityType === "all") {
45
+ await this.pullEpics(req, template, created, skipped, errors);
46
+ }
47
+ if (req.entityType === "card" || req.entityType === "all") {
48
+ await this.pullCards(req, template, created, updated, conflicts, skipped, errors);
49
+ }
50
+ const summary = `Pulled: ${created.length} created, ${updated.length} updated, ` +
51
+ `${conflicts.length} conflicts, ${skipped.length} skipped, ${errors.length} errors`;
52
+ return ok({ created, updated, conflicts, skipped, errors, summary });
53
+ }
54
+ // ── Bidirectional Sync ────────────────────────────────────────────
55
+ /** Push local changes then pull Azure changes in one operation. */
56
+ async bidiSync(req) {
57
+ const pushResult = await this.pushUseCases.push({
58
+ workspace: req.workspace,
59
+ org: req.org,
60
+ project: req.project,
61
+ entityType: "all",
62
+ ...(req.dryRun !== undefined ? { dryRun: req.dryRun } : {}),
63
+ });
64
+ if (!pushResult.success)
65
+ return pushResult;
66
+ const pullResult = await this.pull({
67
+ workspace: req.workspace,
68
+ org: req.org,
69
+ project: req.project,
70
+ entityType: "all",
71
+ ...(req.dryRun !== undefined ? { dryRun: req.dryRun } : {}),
72
+ });
73
+ if (!pullResult.success)
74
+ return pullResult;
75
+ const summary = `Push: ${pushResult.data.summary} | Pull: ${pullResult.data.summary}`;
76
+ return ok({
77
+ pushResult: pushResult.data,
78
+ pullResult: pullResult.data,
79
+ summary,
80
+ });
81
+ }
82
+ // ── Enhanced Sync Status ──────────────────────────────────────────
83
+ /** Enhanced sync status that also detects unmapped Azure items. */
84
+ async enhancedSyncStatus(req) {
85
+ const baseResult = await this.pushUseCases.syncStatus(req);
86
+ if (!baseResult.success)
87
+ return baseResult;
88
+ const unmappedAzure = await this.findUnmappedAzureItems(req);
89
+ const total = baseResult.data.mappings.length +
90
+ baseResult.data.unmappedLocal.length + unmappedAzure.length;
91
+ const summary = `${baseResult.data.mappings.length} synced, ` +
92
+ `${baseResult.data.unmappedLocal.length} local-only, ` +
93
+ `${unmappedAzure.length} azure-only (${total} total)`;
94
+ return ok({
95
+ mappings: baseResult.data.mappings,
96
+ unmappedLocal: baseResult.data.unmappedLocal,
97
+ unmappedAzure,
98
+ summary,
99
+ });
100
+ }
101
+ // ── Private: Pull Epics ─────────────────────────────────────────
102
+ async pullEpics(req, template, created, skipped, errors) {
103
+ const wiResult = await this.deps.azureClient.listWorkItems(req.org, req.project, "Epic", 100);
104
+ if (!wiResult.success) {
105
+ errors.push({ localId: "epics", error: wiResult.error });
106
+ return;
107
+ }
108
+ const items = req.entityId
109
+ ? wiResult.data.filter((wi) => wi.id === req.entityId)
110
+ : Array.from(wiResult.data);
111
+ for (const wi of items) {
112
+ try {
113
+ const existing = await this.deps.syncMappingRepo.findByAzureWorkItemId(wi.id, req.project);
114
+ if (existing) {
115
+ skipped.push({
116
+ azureWorkItemId: wi.id,
117
+ reason: "Epic already mapped — update not supported for epics",
118
+ });
119
+ continue;
120
+ }
121
+ await this.createLocalEpic(req, template, wi, created, errors);
122
+ }
123
+ catch (err) {
124
+ errors.push({
125
+ localId: `azure-epic-${wi.id}`,
126
+ error: err instanceof Error ? err.message : String(err),
127
+ });
128
+ }
129
+ }
130
+ }
131
+ // ── Private: Pull Cards ─────────────────────────────────────────
132
+ async pullCards(req, template, created, updated, conflicts, skipped, errors) {
133
+ const wiType = this.fieldMapper.mapWorkItemType(template, "card");
134
+ if (!wiType) {
135
+ errors.push({ localId: "cards", error: `No card type for ${template}` });
136
+ return;
137
+ }
138
+ const wiResult = await this.deps.azureClient.listWorkItems(req.org, req.project, wiType, 100);
139
+ if (!wiResult.success) {
140
+ errors.push({ localId: "cards", error: wiResult.error });
141
+ return;
142
+ }
143
+ const items = req.entityId
144
+ ? wiResult.data.filter((wi) => wi.id === req.entityId)
145
+ : Array.from(wiResult.data);
146
+ for (const wi of items) {
147
+ try {
148
+ const existing = await this.deps.syncMappingRepo.findByAzureWorkItemId(wi.id, req.project);
149
+ if (existing) {
150
+ await this.handleMappedCard(req, template, wi, existing, updated, conflicts, skipped, errors);
151
+ }
152
+ else {
153
+ await this.createLocalCard(req, template, wi, created, errors);
154
+ }
155
+ }
156
+ catch (err) {
157
+ errors.push({
158
+ localId: `azure-card-${wi.id}`,
159
+ error: err instanceof Error ? err.message : String(err),
160
+ });
161
+ }
162
+ }
163
+ }
164
+ // ── Private: Handle Mapped Card (conflict resolution) ──────────
165
+ async handleMappedCard(req, template, wi, mapping, updated, conflicts, skipped, errors) {
166
+ // Update Azure timestamp on mapping
167
+ mapping.markAzureModified(Timestamp.now(), wi.rev);
168
+ const resolution = this.conflictResolver.resolve(mapping, "pull");
169
+ if (resolution.winner === "skip") {
170
+ skipped.push({ azureWorkItemId: wi.id, reason: resolution.reason });
171
+ return;
172
+ }
173
+ if (resolution.winner === "local") {
174
+ conflicts.push({
175
+ azureWorkItemId: wi.id, localId: mapping.localId,
176
+ winner: "local", reason: resolution.reason,
177
+ });
178
+ return;
179
+ }
180
+ // Azure wins — update local entity
181
+ await this.updateLocalCard(req, template, wi, mapping, updated, errors);
182
+ }
183
+ // ── Private: Create Local Card ──────────────────────────────────
184
+ async createLocalCard(req, template, wi, created, errors) {
185
+ const data = this.reverseBuilder.extractCardData(wi, template);
186
+ const createResult = await this.deps.cardUseCases.createCard({
187
+ title: data.title,
188
+ workspace: req.workspace,
189
+ ...(data.priority !== "medium" ? { priority: data.priority } : {}),
190
+ ...(data.description !== undefined ? { description: data.description } : {}),
191
+ });
192
+ if (!createResult.success) {
193
+ errors.push({ localId: `azure-${wi.id}`, error: createResult.error });
194
+ return;
195
+ }
196
+ const localId = createResult.data.id;
197
+ // Set story points if extracted
198
+ if (data.storyPoints !== undefined) {
199
+ await this.deps.cardUseCases.setStoryPoints({
200
+ cardId: localId, points: data.storyPoints,
201
+ });
202
+ }
203
+ // Add acceptance criteria
204
+ for (const ac of data.acceptanceCriteria) {
205
+ await this.deps.cardUseCases.addAcceptanceCriterion({
206
+ cardId: localId, description: ac,
207
+ });
208
+ }
209
+ // Create sync mapping
210
+ await this.createPullMapping(req, localId, "card", wi, template);
211
+ created.push({
212
+ azureWorkItemId: wi.id, azureTitle: data.title,
213
+ localId, entityType: "card",
214
+ });
215
+ await this.logSync(localId, "card", wi.id, "created");
216
+ }
217
+ // ── Private: Update Local Card ──────────────────────────────────
218
+ async updateLocalCard(_req, template, wi, mapping, updated, errors) {
219
+ const data = this.reverseBuilder.extractCardData(wi, template);
220
+ // Move card to mapped status if it changed
221
+ if (data.status !== undefined) {
222
+ const moveResult = await this.deps.cardUseCases.moveCard({
223
+ cardId: mapping.localId, targetStatus: data.status,
224
+ });
225
+ if (!moveResult.success) {
226
+ errors.push({ localId: mapping.localId, error: moveResult.error });
227
+ }
228
+ }
229
+ // Update story points
230
+ if (data.storyPoints !== undefined) {
231
+ await this.deps.cardUseCases.setStoryPoints({
232
+ cardId: mapping.localId, points: data.storyPoints,
233
+ });
234
+ }
235
+ // Mark synced
236
+ mapping.markSynced(Timestamp.now(), wi.rev);
237
+ await this.deps.syncMappingRepo.save(mapping);
238
+ const changes = this.reverseBuilder.diffCardChanges({ title: mapping.localId, description: undefined, priority: "medium", status: "backlog" }, data);
239
+ updated.push({
240
+ azureWorkItemId: wi.id, localId: mapping.localId,
241
+ changes: changes.length > 0 ? changes : ["fields updated from Azure"],
242
+ });
243
+ await this.logSync(mapping.localId, "card", wi.id, "updated");
244
+ }
245
+ // ── Private: Create Local Epic ──────────────────────────────────
246
+ async createLocalEpic(req, template, wi, created, errors) {
247
+ const data = this.reverseBuilder.extractEpicData(wi);
248
+ const createResult = await this.deps.epicUseCases.createEpic({
249
+ title: data.title,
250
+ workspace: req.workspace,
251
+ ...(data.priority !== "medium" ? { priority: data.priority } : {}),
252
+ ...(data.description !== undefined ? { description: data.description } : {}),
253
+ });
254
+ if (!createResult.success) {
255
+ errors.push({ localId: `azure-epic-${wi.id}`, error: createResult.error });
256
+ return;
257
+ }
258
+ await this.createPullMapping(req, createResult.data.id, "epic", wi, template);
259
+ created.push({
260
+ azureWorkItemId: wi.id, azureTitle: data.title,
261
+ localId: createResult.data.id, entityType: "epic",
262
+ });
263
+ await this.logSync(createResult.data.id, "epic", wi.id, "created");
264
+ }
265
+ // ── Private: Mapping & Logging Helpers ──────────────────────────
266
+ async createPullMapping(req, localId, entityType, wi, template) {
267
+ const now = Timestamp.now();
268
+ const seq = await this.deps.syncMappingRepo.nextMappingSequence();
269
+ const mapping = SyncMapping.create({
270
+ id: SyncMappingId.create(seq),
271
+ localId,
272
+ localEntityType: entityType,
273
+ azureWorkItemId: WorkItemId.create(wi.id),
274
+ azureProject: req.project,
275
+ azureOrg: req.org,
276
+ processTemplate: template,
277
+ syncDirection: "pull",
278
+ now,
279
+ azureRevision: wi.rev,
280
+ });
281
+ await this.deps.syncMappingRepo.save(mapping);
282
+ }
283
+ async logSync(localId, entityType, azureId, action) {
284
+ const logSeq = await this.deps.syncMappingRepo.nextLogSequence();
285
+ const log = SyncLog.create({
286
+ id: SyncLogId.create(logSeq),
287
+ mappingId: SyncMappingId.create(await this.deps.syncMappingRepo.nextMappingSequence() - 1),
288
+ direction: "pull",
289
+ status: "success",
290
+ detail: `${action} local ${entityType} ${localId} from Azure #${azureId}`,
291
+ timestamp: Timestamp.now(),
292
+ });
293
+ await this.deps.syncLogRepo.append(log);
294
+ }
295
+ // ── Private: Find Unmapped Azure Items ──────────────────────────
296
+ async findUnmappedAzureItems(req) {
297
+ const projResult = await this.deps.azureClient.getProjectInfo(req.org, req.project);
298
+ if (!projResult.success)
299
+ return [];
300
+ const template = projResult.data.processTemplate;
301
+ const wiType = this.fieldMapper.mapWorkItemType(template, "card");
302
+ if (!wiType)
303
+ return [];
304
+ const wiResult = await this.deps.azureClient.listWorkItems(req.org, req.project, wiType, 100);
305
+ if (!wiResult.success)
306
+ return [];
307
+ const mappings = await this.deps.syncMappingRepo.findByProject(req.project);
308
+ const mappedAzureIds = new Set(mappings.map((m) => m.azureWorkItemId.value));
309
+ return wiResult.data
310
+ .filter((wi) => !mappedAzureIds.has(wi.id))
311
+ .map((wi) => {
312
+ const f = wi.fields;
313
+ return {
314
+ azureWorkItemId: wi.id,
315
+ title: String(f[AZURE_FIELDS.TITLE] ?? ""),
316
+ type: String(f[AZURE_FIELDS.WORK_ITEM_TYPE] ?? ""),
317
+ state: String(f[AZURE_FIELDS.STATE] ?? ""),
318
+ };
319
+ });
320
+ }
321
+ }
322
+ //# sourceMappingURL=pull-use-cases.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pull-use-cases.js","sourceRoot":"","sources":["../../../src/application/azure-sync/pull-use-cases.ts"],"names":[],"mappings":"AAAA;;;;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,EAAE,CAAC;QAEjC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC5E,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;QAE7E,OAAO,QAAQ,CAAC,IAAI;aACjB,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;aAC1C,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;YACV,MAAM,CAAC,GAAG,EAAE,CAAC,MAAiC,CAAC;YAC/C,OAAO;gBACL,eAAe,EAAE,EAAE,CAAC,EAAE;gBACtB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;gBAC1C,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;gBAClD,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;aAC3C,CAAC;QACJ,CAAC,CAAC,CAAC;IACP,CAAC;CACF"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Azure Sync Application — Use Cases
3
+ *
4
+ * Orchestrates discover, push, and sync-status operations.
5
+ * Coordinates between azure-sync domain, kanban BC, and Azure DevOps.
6
+ *
7
+ * SOLID: SRP — sync orchestration only
8
+ * SOLID: DIP — depends on interfaces (ports, repositories)
9
+ * DDD: Application service coordinating bounded contexts
10
+ */
11
+ import type { Result } from "../../domain/shared/value-objects.js";
12
+ import type { AzureDevOpsPort } from "../../domain/azure-sync/ports.js";
13
+ import type { SyncMappingRepository, SyncLogRepository } from "../../domain/azure-sync/repositories.js";
14
+ import type { CardUseCases } from "../kanban/card-use-cases.js";
15
+ import type { EpicUseCases, SprintUseCases } from "../kanban/sprint-use-cases.js";
16
+ import type { DiscoverRequest, DiscoverResponse, PushRequest, PushResponse, SyncStatusRequest, SyncStatusResponse, ConfigStatusResponse } from "./dtos.js";
17
+ import type { ConfigService } from "../config/config-service.js";
18
+ export interface AzureSyncDeps {
19
+ readonly azureClient: AzureDevOpsPort;
20
+ readonly syncMappingRepo: SyncMappingRepository;
21
+ readonly syncLogRepo: SyncLogRepository;
22
+ readonly cardUseCases: CardUseCases;
23
+ readonly epicUseCases: EpicUseCases;
24
+ readonly sprintUseCases: SprintUseCases;
25
+ readonly configService: ConfigService;
26
+ }
27
+ /**
28
+ * Orchestrates Azure DevOps sync operations.
29
+ * Coordinates local kanban data with Azure DevOps Board via REST API.
30
+ */
31
+ export declare class AzureSyncUseCases {
32
+ private readonly deps;
33
+ private readonly fieldMapper;
34
+ private readonly fieldBuilder;
35
+ private readonly taskPush;
36
+ constructor(deps: AzureSyncDeps);
37
+ /** Detect project template, list existing work items and iterations. */
38
+ discover(req: DiscoverRequest): Promise<Result<DiscoverResponse>>;
39
+ /** Push local entities to Azure DevOps as work items. */
40
+ push(req: PushRequest): Promise<Result<PushResponse>>;
41
+ /** Show diff between local kanban and Azure DevOps board. */
42
+ syncStatus(req: SyncStatusRequest): Promise<Result<SyncStatusResponse>>;
43
+ /** Show current config and test connectivity. */
44
+ configStatus(): Promise<Result<ConfigStatusResponse>>;
45
+ private pushEpics;
46
+ private pushCards;
47
+ private pushSprints;
48
+ /** Build a map of local sprint ID -> Azure iteration path. */
49
+ private buildIterationPathMap;
50
+ private pushSingleEntity;
51
+ private linkToParentEpic;
52
+ }
53
+ //# sourceMappingURL=push-use-cases.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"push-use-cases.d.ts","sourceRoot":"","sources":["../../../src/application/azure-sync/push-use-cases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,O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