@jmanuelcorral/openteam 0.2.1 → 0.9.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 (312) hide show
  1. package/.opencode/command/openteam.md +2 -1
  2. package/.opencode/openteam.example.json +27 -8
  3. package/AGENTS.md +5 -2
  4. package/README.es.md +155 -59
  5. package/README.md +418 -62
  6. package/dist/capabilities/types.d.ts +3 -3
  7. package/dist/capabilities/types.d.ts.map +1 -1
  8. package/dist/classifier/localClassifier.d.ts +0 -2
  9. package/dist/classifier/localClassifier.d.ts.map +1 -1
  10. package/dist/cli/consoleServe.d.ts +30 -1
  11. package/dist/cli/consoleServe.d.ts.map +1 -1
  12. package/dist/cli/graphOperator.d.ts +22 -0
  13. package/dist/cli/graphOperator.d.ts.map +1 -0
  14. package/dist/cli/graphStatusSnapshot.d.ts +16 -0
  15. package/dist/cli/graphStatusSnapshot.d.ts.map +1 -0
  16. package/dist/cli/graphViewProvider.d.ts +30 -0
  17. package/dist/cli/graphViewProvider.d.ts.map +1 -0
  18. package/dist/cli/migrateAdapter.d.ts +12 -0
  19. package/dist/cli/migrateAdapter.d.ts.map +1 -0
  20. package/dist/cli/purgeAdapter.d.ts +10 -0
  21. package/dist/cli/purgeAdapter.d.ts.map +1 -0
  22. package/dist/cli/setupAdapters.d.ts.map +1 -1
  23. package/dist/cli.js +13480 -5176
  24. package/dist/commands/agents.d.ts +102 -2
  25. package/dist/commands/agents.d.ts.map +1 -1
  26. package/dist/commands/baseline.d.ts.map +1 -1
  27. package/dist/commands/clearCache.d.ts +23 -0
  28. package/dist/commands/clearCache.d.ts.map +1 -0
  29. package/dist/commands/dispatch.d.ts +197 -4
  30. package/dist/commands/dispatch.d.ts.map +1 -1
  31. package/dist/commands/doctor.d.ts +40 -0
  32. package/dist/commands/doctor.d.ts.map +1 -1
  33. package/dist/commands/frontierCatalog.d.ts +8 -14
  34. package/dist/commands/frontierCatalog.d.ts.map +1 -1
  35. package/dist/commands/graph.d.ts +0 -27
  36. package/dist/commands/graph.d.ts.map +1 -1
  37. package/dist/commands/local.d.ts.map +1 -1
  38. package/dist/commands/migrate.d.ts +11 -0
  39. package/dist/commands/migrate.d.ts.map +1 -0
  40. package/dist/commands/purge.d.ts +132 -0
  41. package/dist/commands/purge.d.ts.map +1 -0
  42. package/dist/commands/report.d.ts +1 -0
  43. package/dist/commands/report.d.ts.map +1 -1
  44. package/dist/commands/setup.d.ts +62 -5
  45. package/dist/commands/setup.d.ts.map +1 -1
  46. package/dist/config/errors.d.ts +10 -0
  47. package/dist/config/errors.d.ts.map +1 -0
  48. package/dist/config/legacyMigration.d.ts +82 -0
  49. package/dist/config/legacyMigration.d.ts.map +1 -0
  50. package/dist/config/legacyPaths.d.ts +105 -0
  51. package/dist/config/legacyPaths.d.ts.map +1 -0
  52. package/dist/config/load.d.ts.map +1 -1
  53. package/dist/config/opencode.d.ts +63 -0
  54. package/dist/config/opencode.d.ts.map +1 -0
  55. package/dist/config/persist.d.ts +8 -0
  56. package/dist/config/persist.d.ts.map +1 -1
  57. package/dist/config/resolve.d.ts +1 -1
  58. package/dist/config/resolve.d.ts.map +1 -1
  59. package/dist/config/runtime.d.ts +62 -0
  60. package/dist/config/runtime.d.ts.map +1 -0
  61. package/dist/config/schema.d.ts +145 -77
  62. package/dist/config/schema.d.ts.map +1 -1
  63. package/dist/console/assets.d.ts +2 -2
  64. package/dist/console/assets.d.ts.map +1 -1
  65. package/dist/console/configView.d.ts +74 -0
  66. package/dist/console/configView.d.ts.map +1 -0
  67. package/dist/console/opencodeClient.d.ts +8 -6
  68. package/dist/console/opencodeClient.d.ts.map +1 -1
  69. package/dist/console/protocol.d.ts +30 -6
  70. package/dist/console/protocol.d.ts.map +1 -1
  71. package/dist/console/render.d.ts +30 -1
  72. package/dist/console/render.d.ts.map +1 -1
  73. package/dist/console/types.d.ts +1 -1
  74. package/dist/console/types.d.ts.map +1 -1
  75. package/dist/context/redaction.d.ts +27 -19
  76. package/dist/context/redaction.d.ts.map +1 -1
  77. package/dist/context/schema.d.ts +26 -26
  78. package/dist/context/schema.d.ts.map +1 -1
  79. package/dist/context/types.d.ts +3 -3
  80. package/dist/contract/opencode.d.ts +39 -23
  81. package/dist/contract/opencode.d.ts.map +1 -1
  82. package/dist/graph/certificate.d.ts +37 -16
  83. package/dist/graph/certificate.d.ts.map +1 -1
  84. package/dist/graph/langgraph/adapter.d.ts +56 -0
  85. package/dist/graph/langgraph/adapter.d.ts.map +1 -0
  86. package/dist/graph/langgraph/certification.d.ts +64 -0
  87. package/dist/graph/langgraph/certification.d.ts.map +1 -0
  88. package/dist/graph/langgraph/checkpointReplay.d.ts +49 -0
  89. package/dist/graph/langgraph/checkpointReplay.d.ts.map +1 -0
  90. package/dist/graph/langgraph/checkpointer.d.ts +49 -0
  91. package/dist/graph/langgraph/checkpointer.d.ts.map +1 -0
  92. package/dist/graph/langgraph/engine.d.ts +34 -0
  93. package/dist/graph/langgraph/engine.d.ts.map +1 -0
  94. package/dist/graph/langgraph/graphModel.d.ts +37 -0
  95. package/dist/graph/langgraph/graphModel.d.ts.map +1 -0
  96. package/dist/graph/langgraph/reducer.d.ts +18 -0
  97. package/dist/graph/langgraph/reducer.d.ts.map +1 -0
  98. package/dist/graph/langgraph/retirement.d.ts +59 -0
  99. package/dist/graph/langgraph/retirement.d.ts.map +1 -0
  100. package/dist/graph/langgraph/types.d.ts +65 -0
  101. package/dist/graph/langgraph/types.d.ts.map +1 -0
  102. package/dist/graph/privacyPolicy.d.ts +7 -0
  103. package/dist/graph/privacyPolicy.d.ts.map +1 -1
  104. package/dist/graph/soakLedger.d.ts.map +1 -1
  105. package/dist/graph/types.d.ts +0 -2
  106. package/dist/graph/types.d.ts.map +1 -1
  107. package/dist/index.d.ts +48 -16
  108. package/dist/index.d.ts.map +1 -1
  109. package/dist/index.js +11596 -4180
  110. package/dist/local/cacheAdapter.d.ts +7 -0
  111. package/dist/local/cacheAdapter.d.ts.map +1 -0
  112. package/dist/local/concurrency.d.ts +52 -0
  113. package/dist/local/concurrency.d.ts.map +1 -0
  114. package/dist/local/embeddings.d.ts +10 -10
  115. package/dist/local/embeddings.d.ts.map +1 -1
  116. package/dist/local/extractClient.d.ts +13 -10
  117. package/dist/local/extractClient.d.ts.map +1 -1
  118. package/dist/local/lemonade.d.ts +4 -0
  119. package/dist/local/lemonade.d.ts.map +1 -0
  120. package/dist/local/registry.d.ts +16 -0
  121. package/dist/local/registry.d.ts.map +1 -1
  122. package/dist/local/types.d.ts +1 -1
  123. package/dist/local/types.d.ts.map +1 -1
  124. package/dist/mcp/semanticRecall.d.ts +18 -1
  125. package/dist/mcp/semanticRecall.d.ts.map +1 -1
  126. package/dist/mcp/server.d.ts +41 -1
  127. package/dist/mcp/server.d.ts.map +1 -1
  128. package/dist/memory/embedText.d.ts +4 -0
  129. package/dist/memory/embedText.d.ts.map +1 -0
  130. package/dist/memory/extract.d.ts +33 -18
  131. package/dist/memory/extract.d.ts.map +1 -1
  132. package/dist/memory/fold.d.ts +3 -2
  133. package/dist/memory/fold.d.ts.map +1 -1
  134. package/dist/memory/index.d.ts +1 -0
  135. package/dist/memory/index.d.ts.map +1 -1
  136. package/dist/memory/inject.d.ts.map +1 -1
  137. package/dist/memory/log.d.ts +15 -4
  138. package/dist/memory/log.d.ts.map +1 -1
  139. package/dist/memory/merge.d.ts +18 -1
  140. package/dist/memory/merge.d.ts.map +1 -1
  141. package/dist/memory/traverse.d.ts +80 -0
  142. package/dist/memory/traverse.d.ts.map +1 -0
  143. package/dist/memory/types.d.ts +53 -7
  144. package/dist/memory/types.d.ts.map +1 -1
  145. package/dist/messages/commands.d.ts +84 -0
  146. package/dist/messages/commands.d.ts.map +1 -0
  147. package/dist/messages/index.d.ts +46 -0
  148. package/dist/messages/index.d.ts.map +1 -0
  149. package/dist/opencodeArtifacts/index.d.ts +33 -0
  150. package/dist/opencodeArtifacts/index.d.ts.map +1 -0
  151. package/dist/opencodeArtifacts/orchestratorAgent.d.ts +29 -0
  152. package/dist/opencodeArtifacts/orchestratorAgent.d.ts.map +1 -0
  153. package/dist/opencodeArtifacts/slashCommand.d.ts +31 -0
  154. package/dist/opencodeArtifacts/slashCommand.d.ts.map +1 -0
  155. package/dist/orchestrator/coordinator.d.ts +188 -2
  156. package/dist/orchestrator/coordinator.d.ts.map +1 -1
  157. package/dist/orchestrator/graphCancellation.d.ts +40 -37
  158. package/dist/orchestrator/graphCancellation.d.ts.map +1 -1
  159. package/dist/orchestrator/graphEffects.d.ts +24 -24
  160. package/dist/orchestrator/graphEffects.d.ts.map +1 -1
  161. package/dist/orchestrator/graphFacade.d.ts +16 -16
  162. package/dist/orchestrator/graphFacade.d.ts.map +1 -1
  163. package/dist/orchestrator/graphIngress.d.ts +49 -45
  164. package/dist/orchestrator/graphIngress.d.ts.map +1 -1
  165. package/dist/orchestrator/graphReview.d.ts +24 -23
  166. package/dist/orchestrator/graphReview.d.ts.map +1 -1
  167. package/dist/orchestrator/graphRuntime.d.ts +27 -26
  168. package/dist/orchestrator/graphRuntime.d.ts.map +1 -1
  169. package/dist/orchestrator/graphShadow.d.ts +70 -69
  170. package/dist/orchestrator/graphShadow.d.ts.map +1 -1
  171. package/dist/orchestrator/opencodeSessionAdapter.d.ts +25 -25
  172. package/dist/orchestrator/opencodeSessionAdapter.d.ts.map +1 -1
  173. package/dist/orchestrator/permissions.d.ts.map +1 -1
  174. package/dist/orchestrator/ralphLoop.d.ts +57 -0
  175. package/dist/orchestrator/ralphLoop.d.ts.map +1 -0
  176. package/dist/orchestrator/roles.d.ts +50 -8
  177. package/dist/orchestrator/roles.d.ts.map +1 -1
  178. package/dist/orchestrator/roster.d.ts +103 -0
  179. package/dist/orchestrator/roster.d.ts.map +1 -0
  180. package/dist/orchestrator/rosterPersistence.d.ts +22 -0
  181. package/dist/orchestrator/rosterPersistence.d.ts.map +1 -0
  182. package/dist/orchestrator/runtimeSelection.d.ts +46 -0
  183. package/dist/orchestrator/runtimeSelection.d.ts.map +1 -0
  184. package/dist/orchestrator/sddCompiler.d.ts +34 -34
  185. package/dist/orchestrator/sddCompiler.d.ts.map +1 -1
  186. package/dist/orchestrator/sessionReconciler.d.ts +31 -29
  187. package/dist/orchestrator/sessionReconciler.d.ts.map +1 -1
  188. package/dist/orchestrator/shadowComparator.d.ts +23 -23
  189. package/dist/orchestrator/shadowComparator.d.ts.map +1 -1
  190. package/dist/orchestrator/subsessions.d.ts.map +1 -1
  191. package/dist/orchestrator/worktreeAdapter.d.ts +12 -12
  192. package/dist/orchestrator/worktreeAdapter.d.ts.map +1 -1
  193. package/dist/orchestrator/worktreeDispatch.d.ts +34 -34
  194. package/dist/orchestrator/worktreeDispatch.d.ts.map +1 -1
  195. package/dist/orchestrator/worktreeReconciler.d.ts +37 -36
  196. package/dist/orchestrator/worktreeReconciler.d.ts.map +1 -1
  197. package/dist/plugin/availability.d.ts.map +1 -1
  198. package/dist/plugin/capture.d.ts +12 -12
  199. package/dist/plugin/capture.d.ts.map +1 -1
  200. package/dist/plugin/commandTool.d.ts +1 -1
  201. package/dist/plugin/commandTool.d.ts.map +1 -1
  202. package/dist/plugin/graphShadowIngress.d.ts +50 -48
  203. package/dist/plugin/graphShadowIngress.d.ts.map +1 -1
  204. package/dist/plugin/graphTool.d.ts +25 -23
  205. package/dist/plugin/graphTool.d.ts.map +1 -1
  206. package/dist/plugin/hooks.d.ts +10 -10
  207. package/dist/plugin/hooks.d.ts.map +1 -1
  208. package/dist/plugin/legacyRunProducer.d.ts +22 -22
  209. package/dist/plugin/legacyRunProducer.d.ts.map +1 -1
  210. package/dist/plugin/memoryInject.d.ts +6 -6
  211. package/dist/plugin/memoryInject.d.ts.map +1 -1
  212. package/dist/plugin/memoryTool.d.ts +36 -0
  213. package/dist/plugin/memoryTool.d.ts.map +1 -0
  214. package/dist/plugin/orchestrateTool.d.ts +230 -0
  215. package/dist/plugin/orchestrateTool.d.ts.map +1 -0
  216. package/dist/plugin/reportRunSchema.d.ts +8 -8
  217. package/dist/plugin/reportRunSchema.d.ts.map +1 -1
  218. package/dist/plugin/sessionTracker.d.ts +15 -15
  219. package/dist/plugin/sessionTracker.d.ts.map +1 -1
  220. package/dist/plugin/shadowPipeline.d.ts +2 -1
  221. package/dist/plugin/shadowPipeline.d.ts.map +1 -1
  222. package/dist/plugin/soakObserver.d.ts +18 -11
  223. package/dist/plugin/soakObserver.d.ts.map +1 -1
  224. package/dist/plugin/toolcalls.d.ts +3 -3
  225. package/dist/router/chooseModel.d.ts.map +1 -1
  226. package/dist/router/frontierBaseline.d.ts +3 -3
  227. package/dist/router/modelSelection.d.ts +12 -4
  228. package/dist/router/modelSelection.d.ts.map +1 -1
  229. package/dist/router/types.d.ts +6 -1
  230. package/dist/router/types.d.ts.map +1 -1
  231. package/dist/storage/graph/snapshot.d.ts.map +1 -1
  232. package/dist/storage/graph/soakRecorder.d.ts +14 -1
  233. package/dist/storage/graph/soakRecorder.d.ts.map +1 -1
  234. package/dist/storage/graph/workspaceLease.d.ts +1 -1
  235. package/dist/storage/graph/workspaceLease.d.ts.map +1 -1
  236. package/dist/storage/graph/worktreeRegistry.d.ts +1 -1
  237. package/dist/storage/graph/worktreeRegistry.d.ts.map +1 -1
  238. package/dist/storage/httpStorageProvider.d.ts +2 -2
  239. package/dist/storage/index/bunSqlite.d.ts +1 -0
  240. package/dist/storage/index/bunSqlite.d.ts.map +1 -1
  241. package/dist/storage/index/memoryConsolidate.d.ts +2 -0
  242. package/dist/storage/index/memoryConsolidate.d.ts.map +1 -1
  243. package/dist/storage/index/memoryEmbeddings.d.ts +51 -0
  244. package/dist/storage/index/memoryEmbeddings.d.ts.map +1 -0
  245. package/dist/storage/index/memoryIndex.d.ts +36 -4
  246. package/dist/storage/index/memoryIndex.d.ts.map +1 -1
  247. package/dist/storage/index/memoryRecall.d.ts +1 -1
  248. package/dist/storage/index/memoryRecall.d.ts.map +1 -1
  249. package/dist/storage/index/memoryRuntime.d.ts +2 -0
  250. package/dist/storage/index/memoryRuntime.d.ts.map +1 -1
  251. package/dist/storage/index/sqliteIndex.d.ts +18 -1
  252. package/dist/storage/index/sqliteIndex.d.ts.map +1 -1
  253. package/dist/storage/path.d.ts.map +1 -1
  254. package/dist/telemetry/aggregate.d.ts +12 -12
  255. package/dist/telemetry/aggregate.d.ts.map +1 -1
  256. package/dist/telemetry/cost.d.ts.map +1 -1
  257. package/dist/telemetry/decisions.d.ts +11 -11
  258. package/dist/telemetry/decisions.d.ts.map +1 -1
  259. package/dist/telemetry/eventLog.d.ts +41 -25
  260. package/dist/telemetry/eventLog.d.ts.map +1 -1
  261. package/dist/telemetry/events.d.ts +79 -34
  262. package/dist/telemetry/events.d.ts.map +1 -1
  263. package/dist/telemetry/fanout.d.ts +18 -0
  264. package/dist/telemetry/fanout.d.ts.map +1 -0
  265. package/dist/telemetry/graphProjection.d.ts +12 -12
  266. package/dist/telemetry/graphProjection.d.ts.map +1 -1
  267. package/dist/telemetry/graphRuntimeHealth.d.ts +26 -26
  268. package/dist/telemetry/graphRuntimeHealth.d.ts.map +1 -1
  269. package/dist/telemetry/graphView.d.ts +20 -20
  270. package/dist/telemetry/graphView.d.ts.map +1 -1
  271. package/dist/telemetry/otel.d.ts +86 -0
  272. package/dist/telemetry/otel.d.ts.map +1 -0
  273. package/dist/telemetry/otelConfig.d.ts +128 -0
  274. package/dist/telemetry/otelConfig.d.ts.map +1 -0
  275. package/dist/telemetry/otelExporter.d.ts +7 -0
  276. package/dist/telemetry/otelExporter.d.ts.map +1 -0
  277. package/dist/telemetry/read.d.ts +18 -4
  278. package/dist/telemetry/read.d.ts.map +1 -1
  279. package/dist/telemetry/types.d.ts +3 -2
  280. package/dist/telemetry/types.d.ts.map +1 -1
  281. package/dist/version.d.ts +3 -0
  282. package/dist/version.d.ts.map +1 -0
  283. package/dist/web/configApi.d.ts +154 -0
  284. package/dist/web/configApi.d.ts.map +1 -0
  285. package/dist/web/configRoute.d.ts +57 -0
  286. package/dist/web/configRoute.d.ts.map +1 -0
  287. package/dist/web/console.d.ts +8 -0
  288. package/dist/web/console.d.ts.map +1 -1
  289. package/dist/web/paths.d.ts +4 -3
  290. package/dist/web/paths.d.ts.map +1 -1
  291. package/dist/web/server.d.ts +30 -1
  292. package/dist/web/server.d.ts.map +1 -1
  293. package/dist/web/start.d.ts +15 -0
  294. package/dist/web/start.d.ts.map +1 -1
  295. package/dist/web/storageRoute.d.ts +2 -2
  296. package/package.json +13 -7
  297. package/dist/cli/tunnel.d.ts +0 -89
  298. package/dist/cli/tunnel.d.ts.map +0 -1
  299. package/dist/commands/orchestratorAgent.d.ts +0 -30
  300. package/dist/commands/orchestratorAgent.d.ts.map +0 -1
  301. package/dist/commands/slashCommand.d.ts +0 -39
  302. package/dist/commands/slashCommand.d.ts.map +0 -1
  303. package/dist/orchestrator/ledger.d.ts +0 -28
  304. package/dist/orchestrator/ledger.d.ts.map +0 -1
  305. package/dist/storage/graph/importLegacy.d.ts +0 -62
  306. package/dist/storage/graph/importLegacy.d.ts.map +0 -1
  307. package/dist/storage/graph/migrateLegacyBriefs.d.ts +0 -32
  308. package/dist/storage/graph/migrateLegacyBriefs.d.ts.map +0 -1
  309. package/dist/storage/graph/migration.d.ts +0 -91
  310. package/dist/storage/graph/migration.d.ts.map +0 -1
  311. package/dist/storage/graph/projections.d.ts +0 -31
  312. package/dist/storage/graph/projections.d.ts.map +0 -1
@@ -0,0 +1,22 @@
1
+ import type { StorageProvider } from "../storage/provider";
2
+ import { type Roster } from "./roster";
3
+ /** Serialises a roster to the Markdown-with-JSON roster document. Pure. */
4
+ export declare function serializeRoster(roster: Roster): string;
5
+ /** Parses a roster document back into a validated {@link Roster}. Pure. */
6
+ export declare function parseRoster(text: string): Roster;
7
+ /** Writes the roster to the portable path; returns the path written. */
8
+ export declare function persistRoster(storage: StorageProvider, roster: Roster, path?: string): Promise<string>;
9
+ /** Loads and parses the persisted roster; `undefined` when none exists. */
10
+ export declare function loadRoster(storage: StorageProvider, path?: string): Promise<Roster | undefined>;
11
+ /** Outcome of {@link loadOrGenerateRoster}: the roster and whether it was rebuilt. */
12
+ export type RosterLoadResult = {
13
+ readonly roster: Roster;
14
+ readonly regenerated: boolean;
15
+ };
16
+ /**
17
+ * Reuses the persisted cast when present, generating and persisting one only when
18
+ * absent (#173). A second session with a roster on disk therefore never triggers
19
+ * re-generation — the cast stays stable across sessions.
20
+ */
21
+ export declare function loadOrGenerateRoster(storage: StorageProvider, generate: () => Roster | Promise<Roster>, path?: string): Promise<RosterLoadResult>;
22
+ //# sourceMappingURL=rosterPersistence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rosterPersistence.d.ts","sourceRoot":"","sources":["../../src/orchestrator/rosterPersistence.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,UAAU,CAAC;AAmBrD,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAItD;AAED,2EAA2E;AAC3E,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAchD;AAED,wEAAwE;AACxE,wBAAsB,aAAa,CACjC,OAAO,EAAE,eAAe,EACxB,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,MAA6B,GAClC,OAAO,CAAC,MAAM,CAAC,CAGjB;AAED,2EAA2E;AAC3E,wBAAsB,UAAU,CAC9B,OAAO,EAAE,eAAe,EACxB,IAAI,GAAE,MAA6B,GAClC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAM7B;AAED,sFAAsF;AACtF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,EACxC,IAAI,GAAE,MAA6B,GAClC,OAAO,CAAC,gBAAgB,CAAC,CAQ3B"}
@@ -0,0 +1,46 @@
1
+ import type { OpenTeamConfig } from "../config/schema";
2
+ import type { LocalRuntimeId } from "../local/types";
3
+ import type { ModelSelection, RoutingDecision } from "../router/types";
4
+ import type { AgentRoleProfile } from "./roles";
5
+ /**
6
+ * Result of resolving which local runtime a role's task dispatches to (#144).
7
+ *
8
+ * `runtimeId` is the runtime the task is PINNED to for its whole duration —
9
+ * capacity is enforced on it and it never changes once chosen. It is `undefined`
10
+ * when the dispatch is not to a configured local runtime (a frontier route, or a
11
+ * local model that maps to no configured runtime), in which case no per-runtime
12
+ * cap applies. `decision` is the routing decision to record and dispatch, with
13
+ * `selected` overridden to the chosen runtime's model when a preference list
14
+ * redirected the task.
15
+ */
16
+ export type RuntimeDispatchSelection = {
17
+ readonly runtimeId: LocalRuntimeId | undefined;
18
+ readonly decision: RoutingDecision;
19
+ };
20
+ /**
21
+ * Maps a selected local model back to the configured runtime that serves it, by
22
+ * matching the model against each runtime's `defaultModel`. Returns `undefined`
23
+ * when no configured runtime serves the model (e.g. a bare `router.localDefault`
24
+ * with no matching runtime entry, or a frontier model). Pure.
25
+ */
26
+ export declare function runtimeIdOfModel(model: ModelSelection, config: OpenTeamConfig): LocalRuntimeId | undefined;
27
+ /**
28
+ * Resolves the local runtime a role's task dispatches to, honouring an ordered
29
+ * preference list when the role declares one (#144). Pure and deterministic: no
30
+ * I/O, clock, or randomness — reachability arrives as data in `reachable`.
31
+ *
32
+ * Rules:
33
+ * - A non-local route (frontier/blocked) is returned unchanged with no runtime
34
+ * pin — per-runtime caps apply only to local dispatch.
35
+ * - When the role lists runtimes and a reachable set is provided, the FIRST
36
+ * listed runtime that is both reachable AND configured wins; the decision's
37
+ * model is overridden to that runtime's `defaultModel` so the task actually
38
+ * runs on the chosen runtime (failover + pinning). An unreachable runtime is
39
+ * skipped; capacity is NOT a selection input, so a saturated-but-reachable
40
+ * runtime is still chosen and its excess work queues rather than spilling.
41
+ * - Without a usable list (no list, no reachable set, or none of the listed
42
+ * runtimes reachable/configured) the router's own local pick stands and its
43
+ * runtime is resolved via `runtimeIdOfModel` so capacity is still enforced.
44
+ */
45
+ export declare function selectDispatchRuntime(role: AgentRoleProfile, decision: RoutingDecision, reachable: ReadonlySet<LocalRuntimeId> | undefined, config: OpenTeamConfig): RuntimeDispatchSelection;
46
+ //# sourceMappingURL=runtimeSelection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtimeSelection.d.ts","sourceRoot":"","sources":["../../src/orchestrator/runtimeSelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,CAAC,SAAS,EAAE,cAAc,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;CACpC,CAAC;AASF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,cAAc,GACrB,cAAc,GAAG,SAAS,CAI5B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,gBAAgB,EACtB,QAAQ,EAAE,eAAe,EACzB,SAAS,EAAE,WAAW,CAAC,cAAc,CAAC,GAAG,SAAS,EAClD,MAAM,EAAE,cAAc,GACrB,wBAAwB,CA2B1B"}
@@ -1,72 +1,72 @@
1
1
  import { type GraphSpecV1 } from "../graph/schema";
2
2
  import type { TaskSignals } from "../router/types";
3
- /** Rol reviewer por defecto de la compilación SDD → grafo. */
3
+ /** Default reviewer role for SDD → graph compilation. */
4
4
  export declare const DEFAULT_REVIEWER_ROLE_ID = "reviewer";
5
5
  /**
6
- * Descriptor de entrada del compilador SDD → grafo.
6
+ * Input descriptor for the SDD → graph compiler.
7
7
  *
8
- * Es el contrato que `compileSddTask` y el ingress activo (`graphIngress.ts`)
9
- * consumen: identifica la tarea, sus roles y su brief accionable, más las
10
- * señales de routing. El brief nunca se persiste en crudo; el compilador lo
11
- * ancla por digest (`assertReferenceOnly` rechaza cualquier campo crudo).
8
+ * It is the contract consumed by `compileSddTask` and the active ingress
9
+ * (`graphIngress.ts`): it identifies the task, its roles, and its actionable
10
+ * brief, plus the routing signals. The brief is never persisted raw; the
11
+ * compiler anchors it by digest (`assertReferenceOnly` rejects any raw field).
12
12
  */
13
13
  export type SddTask = {
14
- /** Id estable y sin `:` (kebab-case) usado para anclas y nodos. */
14
+ /** Stable id with no `:` (kebab-case) used for anchors and nodes. */
15
15
  id: string;
16
- /** Rol que implementa (y arregla) la tarea. */
16
+ /** Role that implements (and fixes) the task. */
17
17
  implementerRoleID: string;
18
- /** Título humano corto. */
18
+ /** Short human-readable title. */
19
19
  title: string;
20
- /** Brief accionable de la tarea (cuerpo del prompt del implementer). */
20
+ /** Actionable task brief (body of the implementer's prompt). */
21
21
  brief: string;
22
- /** Señales de routing para la tarea. */
22
+ /** Routing signals for the task. */
23
23
  task: TaskSignals;
24
- /** Rol reviewer específico (sobreescribe el reviewer por defecto). */
24
+ /** Specific reviewer role (overrides the default reviewer). */
25
25
  reviewerRoleID?: string;
26
26
  };
27
27
  /**
28
- * Compilador **puro** de una tarea SDD legacy a un `GraphSpecV1` estático
28
+ * **Pure** compiler from a legacy SDD task to a static `GraphSpecV1`
29
29
  * (GE-041).
30
30
  *
31
- * La cadena implement → review → revise → re-review se expande a un DAG
32
- * acíclico versionado: un nodo `implementer` inicial, su `reviewer`, y por cada
33
- * ronda de revisión un nuevo `implementer` (revise) con su `reviewer`
34
- * (re-review). El spec resultante:
31
+ * The implement → review → revise → re-review chain expands to a versioned
32
+ * acyclic DAG: an initial `implementer` node, its `reviewer`, and for each
33
+ * review round a new `implementer` (revise) with its `reviewer` (re-review).
34
+ * The resulting spec:
35
35
  *
36
- * - es **reference-only**: los nodos solo llevan ids, roles y un `anchor`
37
- * (taskID + digest), nunca el brief crudo;
38
- * - es **determinista**: la misma tarea produce el mismo spec y el mismo
36
+ * - is **reference-only**: nodes carry only ids, roles, and an `anchor`
37
+ * (taskID + digest), never the raw brief;
38
+ * - is **deterministic**: the same task produces the same spec and the same
39
39
  * digest (`graphSpecDigest`);
40
- * - **falla antes de dispatch** ante un rol inválido, un autor que también
41
- * revisa, o un id de tarea que no es un `NodeID` válido.
40
+ * - **fails before dispatch** on an invalid role, an author who also reviews,
41
+ * or a task id that is not a valid `NodeID`.
42
42
  *
43
- * Sin I/O, reloj ni random: solo cómputo de digest y validación estructural.
43
+ * Without I/O, clock, or random: only digest computation and structural validation.
44
44
  */
45
- /** Código de fallo de compilación (falla antes de cualquier dispatch). */
45
+ /** Compilation failure code (fails before any dispatch). */
46
46
  export type SddCompileErrorCode = "invalid-role" | "author-is-reviewer" | "invalid-spec";
47
- /** Error tipado de una compilación rechazada. */
47
+ /** Typed error for a rejected compilation. */
48
48
  export declare class SddCompileError extends Error {
49
49
  readonly code: SddCompileErrorCode;
50
50
  readonly detail: string;
51
51
  constructor(code: SddCompileErrorCode, detail: string);
52
52
  }
53
- /** Opciones de compilación. */
53
+ /** Compilation options. */
54
54
  export type SddCompileOptions = {
55
- /** Rol del reviewer (def: el de la tarea o `reviewer`). */
55
+ /** Reviewer role (default: the task's or `reviewer`). */
56
56
  reviewerRoleID?: string;
57
- /** Rondas de revisión revise/re-review a expandir (def: 1). */
57
+ /** revise/re-review review rounds to expand (default: 1). */
58
58
  revisionRounds?: number;
59
59
  };
60
60
  /**
61
- * Digest canónico del spec. Reexportado desde `graph/ids` para no romper a los
62
- * consumidores del compilador; la implementación vive en la capa de grafo
63
- * porque el espejo shadow la necesita sin alcanzar este módulo.
61
+ * Canonical digest of the spec. Re-exported from `graph/ids` to avoid breaking
62
+ * compiler consumers; the implementation lives in the graph layer because the
63
+ * shadow mirror needs it without reaching this module.
64
64
  */
65
65
  export { graphSpecDigest } from "../graph/ids";
66
66
  /**
67
- * Compila una tarea SDD legacy a un `GraphSpecV1` validado. Lanza
68
- * `SddCompileError` ante rol/autor/spec inválidos, siempre **antes** de
69
- * cualquier dispatch.
67
+ * Compiles a legacy SDD task to a validated `GraphSpecV1`. Throws
68
+ * `SddCompileError` for invalid role/author/spec, always **before** any
69
+ * dispatch.
70
70
  */
71
71
  export declare function compileSddTask(task: SddTask, options?: SddCompileOptions): GraphSpecV1;
72
72
  //# sourceMappingURL=sddCompiler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sddCompiler.d.ts","sourceRoot":"","sources":["../../src/orchestrator/sddCompiler.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,WAAW,EAEjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,8DAA8D;AAC9D,eAAO,MAAM,wBAAwB,aAAa,CAAC;AAEnD;;;;;;;GAOG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,mEAAmE;IACnE,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,IAAI,EAAE,WAAW,CAAC;IAClB,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AAEH,0EAA0E;AAC1E,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,oBAAoB,GACpB,cAAc,CAAC;AAEnB,iDAAiD;AACjD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AAEnB,8CAA8C;AAC9C,qBAAa,eAAgB,SAAQ,KAAK;IACxC,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,YAAY,IAAI,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,EAKpD;CACF;AAED,2BAA2B;AAC3B,MAAM,MAAM,iBAAiB,GAAG;IAC9B,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6DAA6D;IAC7D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAwBF;;;;GAIG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,OAAO,EACb,OAAO,GAAE,iBAAsB,GAC9B,WAAW,CA0Db"}
@@ -1,35 +1,37 @@
1
1
  import type { NodeStatus } from "../graph/types";
2
2
  /**
3
- * Reconciliador de ventanas de crash de create/prompt (GE-032).
3
+ * Reconciler for create/prompt crash windows (GE-032).
4
4
  *
5
- * Tras un fallo a mitad de crear la sub-sesión hija o despachar el prompt, el
6
- * runtime no sabe si el efecto llegó a empezar. Este módulo clasifica la
7
- * ventana usando la **sesión hija correlacionada** de opencode y decide sin
8
- * reintentar a ciegas:
5
+ * After a failure halfway through creating the child sub-session or dispatching
6
+ * the prompt, the runtime does not know whether the effect started. This module
7
+ * classifies the window using the **correlated child session** from opencode and
8
+ * decides without retrying blindly:
9
9
  *
10
- * - `not-started`: no hay hija correlacionada; el efecto puede despacharse.
11
- * - `active`: existe una única hija correlacionada aún en curso; se **adopta**.
12
- * - `completed`: existe una única hija correlacionada terminada; se **adopta**.
13
- * - `unknown`: la evidencia es ambigua (varias hijas correlacionadas); se
14
- * **bloquea** el reintento ciego y se exige reconciliación segura.
10
+ * - `not-started`: there is no correlated child; the effect can be dispatched.
11
+ * - `active`: exactly one correlated child exists and is still in progress; it
12
+ * is **adopted**.
13
+ * - `completed`: exactly one correlated child exists and has finished; it is
14
+ * **adopted**.
15
+ * - `unknown`: the evidence is ambiguous (multiple correlated children); the
16
+ * blind retry is **blocked** and safe reconciliation is required.
15
17
  *
16
- * Un nodo con recibo ya escrito (terminal) hace que la reconciliación sea un
17
- * **no-op idempotente**. Puro y determinista: sin I/O, reloj ni random; el
18
- * runtime le pasa la evidencia ya observada a través de puertos inyectados.
18
+ * A node with a receipt already written (terminal) makes reconciliation an
19
+ * **idempotent no-op**. Pure and deterministic: no I/O, clock, or random; the
20
+ * runtime passes it the already observed evidence through injected ports.
19
21
  */
20
- /** Clasificación de la ventana de crash de un efecto. */
22
+ /** Classification of an effect's crash window. */
21
23
  export type CrashWindowClass = "not-started" | "active" | "completed" | "unknown";
22
- /** Decisión de reconciliación derivada de la ventana. */
24
+ /** Reconciliation decision derived from the window. */
23
25
  export type ReconcileDecision = "dispatch" | "adopt" | "block" | "noop";
24
- /** Estado observado de una sesión hija de opencode. */
26
+ /** Observed state of an opencode child session. */
25
27
  export type ObservedChildState = "active" | "completed";
26
- /** Sesión hija observada con su título de correlación y estado. */
28
+ /** Observed child session with its correlation title and state. */
27
29
  export type ObservedChild = {
28
30
  readonly sessionID: string;
29
31
  readonly title: string;
30
32
  readonly state: ObservedChildState;
31
33
  };
32
- /** Evidencia correlacionada sobre la hija de un intento concreto. */
34
+ /** Correlated evidence about the child of a concrete attempt. */
33
35
  export type ChildObservation = {
34
36
  readonly kind: "none";
35
37
  } | {
@@ -42,33 +44,33 @@ export type ChildObservation = {
42
44
  readonly kind: "ambiguous";
43
45
  readonly detail: string;
44
46
  };
45
- /** Entrada de la reconciliación de un nodo. */
47
+ /** Input for reconciling a node. */
46
48
  export type ReconcileInput = {
47
49
  readonly nodeStatus: NodeStatus;
48
50
  readonly observation: ChildObservation;
49
51
  };
50
- /** Resultado de la reconciliación: ventana, decisión y hija adoptada si aplica. */
52
+ /** Reconciliation result: window, decision, and adopted child if applicable. */
51
53
  export type ReconcileResult = {
52
54
  readonly window: CrashWindowClass;
53
55
  readonly decision: ReconcileDecision;
54
56
  readonly sessionID?: string;
55
57
  };
56
58
  /**
57
- * Título de correlación determinista de la hija del intento `(runID, op,
58
- * attempt)`. El runtime lo fija como título de la sub-sesión al crearla, de
59
- * modo que un reinicio pueda reencontrar exactamente la misma hija.
59
+ * Deterministic correlation title of the child for attempt `(runID, op,
60
+ * attempt)`. The runtime sets it as the sub-session title when creating it, so
61
+ * that a restart can find exactly the same child again.
60
62
  */
61
63
  export declare function correlationTitle(runID: string, operationID: string, attemptID: string): string;
62
64
  /**
63
- * Reduce las hijas observadas a la evidencia correlacionada del intento. Cero
64
- * coincidencias es `none`; exactamente una determina `active`/`completed`;
65
- * más de una es `ambiguous` (no se puede adoptar una sola con seguridad).
65
+ * Reduces the observed children to the correlated evidence for the attempt.
66
+ * Zero matches is `none`; exactly one determines `active`/`completed`; more
67
+ * than one is `ambiguous` (a single one cannot be adopted safely).
66
68
  */
67
69
  export declare function observeChild(expectedTitle: string, children: readonly ObservedChild[]): ChildObservation;
68
70
  /**
69
- * Clasifica la ventana de crash de un nodo y decide la acción segura. Un nodo
70
- * terminal (recibo ya escrito) es un no-op idempotente; un nodo `pending` no ha
71
- * empezado; un nodo `running` se clasifica por la evidencia correlacionada.
71
+ * Classifies a node's crash window and decides the safe action. A terminal node
72
+ * (receipt already written) is an idempotent no-op; a `pending` node has not
73
+ * started; a `running` node is classified by the correlated evidence.
72
74
  */
73
75
  export declare function reconcileSession(input: ReconcileInput): ReconcileResult;
74
76
  //# sourceMappingURL=sessionReconciler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sessionReconciler.d.ts","sourceRoot":"","sources":["../../src/orchestrator/sessionReconciler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD;;;;;;;;;;;;;;;;;GAiBG;AAEH,yDAAyD;AACzD,MAAM,MAAM,gBAAgB,GACxB,aAAa,GAC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AAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D,oCAAoC;AACpC,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC;CACxC,CAAC;AAEF,gFAAgF;AAChF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAIF;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,MAAM,CAER;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,SAAS,aAAa,EAAE,GACjC,gBAAgB,CAelB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,GAAG,eAAe,CAiCvE"}
@@ -1,28 +1,28 @@
1
1
  /**
2
- * Comparador de **paridad shadow** y tally de proyección idempotente (GE-044).
2
+ * **Shadow parity** comparator and idempotent projection tally (GE-044).
3
3
  *
4
- * Compara un run legacy con su espejo shadow (sin efectos) sobre dimensiones
5
- * **normalizadas**: estado terminal, orden de nodos, roles, modelos, número de
6
- * fixes y outcome. La ausencia de evidencia en cualquier lado es
7
- * `inconclusive`. El informe es **reference-only**: solo códigos y veredicto,
8
- * nunca contenido crudo. El tally de proyección es **idempotente** por run: una
9
- * proyección duplicada no vuelve a contar.
4
+ * Compares a legacy run with its side-effect-free shadow mirror over
5
+ * **normalized** dimensions: terminal state, node order, roles, models, number
6
+ * of fixes, and outcome. Lack of evidence on either side is `inconclusive`.
7
+ * The report is **reference-only**: only codes and verdict, never raw content.
8
+ * The projection tally is **idempotent** per run: a duplicate projection is not
9
+ * counted again.
10
10
  *
11
- * Puro y determinista: sin I/O, reloj, random ni estado global.
11
+ * Pure and deterministic: no I/O, clock, random, or global state.
12
12
  */
13
- /** Rol normalizado de un nodo del run. */
13
+ /** Normalized role of a run node. */
14
14
  export type ShadowNodeRole = "implementer" | "reviewer";
15
- /** Estado terminal normalizado de un run. */
15
+ /** Normalized terminal status of a run. */
16
16
  export type ShadowRunStatus = "completed" | "failed" | "cancelled";
17
- /** Outcome normalizado del review de un run. */
17
+ /** Normalized outcome of a run review. */
18
18
  export type ShadowRunOutcome = "approved" | "rejected" | "inconclusive";
19
- /** Resumen normalizado de un nodo (solo referencias/etiquetas acotadas). */
19
+ /** Normalized node summary (only references/bounded labels). */
20
20
  export type ShadowNodeSummary = {
21
21
  readonly id: string;
22
22
  readonly role: ShadowNodeRole;
23
23
  readonly model: string;
24
24
  };
25
- /** Resumen normalizado de un run, apto para comparar paridad. */
25
+ /** Normalized run summary, suitable for comparing parity. */
26
26
  export type ShadowRunSummary = {
27
27
  readonly runID: string;
28
28
  readonly status: ShadowRunStatus;
@@ -30,33 +30,33 @@ export type ShadowRunSummary = {
30
30
  readonly fixes: number;
31
31
  readonly nodes: readonly ShadowNodeSummary[];
32
32
  };
33
- /** Dimensión en la que legacy y shadow divergen. */
33
+ /** Dimension in which legacy and shadow diverge. */
34
34
  export type ShadowDivergenceCode = "status" | "order" | "roles" | "models" | "fixes" | "outcome";
35
- /** Veredicto de paridad. */
35
+ /** Parity verdict. */
36
36
  export type ShadowParityVerdict = "match" | "divergent" | "inconclusive";
37
- /** Informe reference-only de paridad shadow. */
37
+ /** Reference-only report of shadow parity. */
38
38
  export type ShadowParityReport = {
39
39
  readonly verdict: ShadowParityVerdict;
40
40
  readonly divergences: readonly ShadowDivergenceCode[];
41
41
  };
42
42
  /**
43
- * Compara la paridad entre el run legacy y su espejo shadow. Si falta evidencia
44
- * en cualquier lado, el veredicto es `inconclusive`. En caso contrario reporta
45
- * las dimensiones divergentes de forma determinista.
43
+ * Compares parity between the legacy run and its shadow mirror. If evidence is
44
+ * missing on either side, the verdict is `inconclusive`. Otherwise it reports
45
+ * the divergent dimensions deterministically.
46
46
  */
47
47
  export declare function compareShadowRun(legacy: ShadowRunSummary | undefined, shadow: ShadowRunSummary | undefined): ShadowParityReport;
48
- /** Acumulador idempotente de veredictos de paridad por run. */
48
+ /** Idempotent accumulator of parity verdicts per run. */
49
49
  export type ShadowParityTally = {
50
50
  readonly seen: ReadonlySet<string>;
51
51
  readonly match: number;
52
52
  readonly divergent: number;
53
53
  readonly inconclusive: number;
54
54
  };
55
- /** Tally vacío. */
55
+ /** Empty tally. */
56
56
  export declare function emptyShadowTally(): ShadowParityTally;
57
57
  /**
58
- * Proyecta un veredicto en el tally. **Idempotente por run**: si el `runID` ya
59
- * se contabilizó, devuelve el tally intacto (no doble conteo).
58
+ * Projects a verdict into the tally. **Idempotent per run**: if the `runID` has
59
+ * already been counted, it returns the tally unchanged (no double counting).
60
60
  */
61
61
  export declare function tallyShadowParity(tally: ShadowParityTally, runID: string, report: ShadowParityReport): ShadowParityTally;
62
62
  //# sourceMappingURL=shadowComparator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shadowComparator.d.ts","sourceRoot":"","sources":["../../src/orchestrator/shadowComparator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,0CAA0C;AAC1C,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,UAAU,CAAC;AAExD,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEnE,gDAAgD;AAChD,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,UAAU,GAAG,cAAc,CAAC;AAExE,4EAA4E;AAC5E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,C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MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,cAAc,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAiQF,wBAAsB,aAAa,CACjC,MAAM,EAAE,qBAAqB,EAC7B,GAAG,EAAE,iBAAiB,EACtB,IAAI,GAAE,cAAmB,GACxB,OAAO,CAAC,gBAAgB,CAAC,CAuE3B"}
@@ -1,38 +1,38 @@
1
1
  import type { ExecLike } from "../local/foundry-local";
2
- /** Taxonomía cerrada de errores del adapter de worktrees. */
2
+ /** Closed taxonomy of worktree adapter errors. */
3
3
  export type WorktreeErrorCode = "invalid-run" | "git-failed" | "corrupt-list";
4
- /** Error tipado de una operación inválida del ciclo de vida del worktree. */
4
+ /** Typed error for an invalid worktree lifecycle operation. */
5
5
  export declare class WorktreeError extends Error {
6
6
  readonly code: WorktreeErrorCode;
7
7
  readonly detail: string;
8
8
  constructor(code: WorktreeErrorCode, detail: string);
9
9
  }
10
- /** Información observada de un worktree del namespace de openteam. */
10
+ /** Observed information for a worktree in the openteam namespace. */
11
11
  export type WorktreeInfo = {
12
12
  readonly runID: string;
13
- /** Ruta reportada por git (separadores `/`, usable por `node:fs`). */
13
+ /** Path reported by git (separators `/`, usable by `node:fs`). */
14
14
  readonly path: string;
15
15
  readonly head: string | undefined;
16
16
  readonly detached: boolean;
17
17
  readonly locked: boolean;
18
18
  };
19
- /** Configuración inyectada del adapter. */
19
+ /** Injected adapter configuration. */
20
20
  export type WorktreeAdapterConfig = {
21
21
  readonly exec: ExecLike;
22
- /** Working tree principal del repositorio (destino de `git -C`). */
22
+ /** Main working tree of the repository (target for `git -C`). */
23
23
  readonly repoRoot: string;
24
- /** Directorio raíz del namespace de worktrees por run. */
24
+ /** Root directory of the per-run worktree namespace. */
25
25
  readonly worktreesDir: string;
26
26
  };
27
- /** Contrato del ciclo de vida idempotente y crash-safe de worktrees. */
27
+ /** Contract for the idempotent and crash-safe worktree lifecycle. */
28
28
  export interface WorktreeAdapter {
29
- /** Crea (o adopta) el worktree del run; reconstruye tras crash. */
29
+ /** Creates (or adopts) the run's worktree; rebuilds after a crash. */
30
30
  create(runID: string): Promise<WorktreeInfo>;
31
- /** Lista los worktrees del namespace de openteam. */
31
+ /** Lists worktrees in the openteam namespace. */
32
32
  list(): Promise<WorktreeInfo[]>;
33
- /** Elimina el worktree del run (idempotente). */
33
+ /** Removes the run's worktree (idempotent). */
34
34
  remove(runID: string): Promise<void>;
35
- /** Poda entradas administrativas huérfanas (idempotente). */
35
+ /** Prunes orphaned administrative entries (idempotent). */
36
36
  prune(): Promise<void>;
37
37
  }
38
38
  export declare function createWorktreeAdapter(config: WorktreeAdapterConfig): WorktreeAdapter;
@@ -1 +1 @@
1
- {"version":3,"file":"worktreeAdapter.d.ts","sourceRoot":"","sources":["../../src/orchestrator/worktreeAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAqCvD,6DAA6D;AAC7D,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,YAAY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