clinkx 1.0.0 → 1.1.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 (331) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/README.md +72 -0
  3. package/clinkx-workflows/dist/chairman-knobs.d.ts +24 -0
  4. package/clinkx-workflows/dist/chairman-knobs.js +27 -0
  5. package/clinkx-workflows/dist/chairman-knobs.js.map +1 -0
  6. package/clinkx-workflows/dist/clink-client.d.ts +10 -0
  7. package/clinkx-workflows/dist/clink-client.js +39 -1
  8. package/clinkx-workflows/dist/clink-client.js.map +1 -1
  9. package/clinkx-workflows/dist/config.d.ts +29 -1
  10. package/clinkx-workflows/dist/config.js +35 -2
  11. package/clinkx-workflows/dist/config.js.map +1 -1
  12. package/clinkx-workflows/dist/context-preflight.d.ts +5 -0
  13. package/clinkx-workflows/dist/context-preflight.js.map +1 -1
  14. package/clinkx-workflows/dist/council-execution-policy.d.ts +68 -0
  15. package/clinkx-workflows/dist/council-execution-policy.js +110 -0
  16. package/clinkx-workflows/dist/council-execution-policy.js.map +1 -0
  17. package/clinkx-workflows/dist/council-expander.d.ts +9 -8
  18. package/clinkx-workflows/dist/council-expander.js +18 -9
  19. package/clinkx-workflows/dist/council-expander.js.map +1 -1
  20. package/clinkx-workflows/dist/dashboard/activity-contract.d.ts +5557 -4
  21. package/clinkx-workflows/dist/dashboard/activity-contract.js +55 -3
  22. package/clinkx-workflows/dist/dashboard/activity-contract.js.map +1 -1
  23. package/clinkx-workflows/dist/dashboard/activity-reader.d.ts +9 -5
  24. package/clinkx-workflows/dist/dashboard/activity-reader.js +15 -2
  25. package/clinkx-workflows/dist/dashboard/activity-reader.js.map +1 -1
  26. package/clinkx-workflows/dist/dashboard/api-routes.d.ts +4 -0
  27. package/clinkx-workflows/dist/dashboard/api-routes.js +133 -25
  28. package/clinkx-workflows/dist/dashboard/api-routes.js.map +1 -1
  29. package/clinkx-workflows/dist/dashboard/context-builder-invocation-contract.d.ts +3865 -0
  30. package/clinkx-workflows/dist/dashboard/context-builder-invocation-contract.js +69 -0
  31. package/clinkx-workflows/dist/dashboard/context-builder-invocation-contract.js.map +1 -0
  32. package/clinkx-workflows/dist/dashboard/context-run-reader.d.ts +36 -2
  33. package/clinkx-workflows/dist/dashboard/context-run-reader.js +142 -19
  34. package/clinkx-workflows/dist/dashboard/context-run-reader.js.map +1 -1
  35. package/clinkx-workflows/dist/dashboard/contracts.d.ts +20027 -480
  36. package/clinkx-workflows/dist/dashboard/contracts.js +133 -6
  37. package/clinkx-workflows/dist/dashboard/contracts.js.map +1 -1
  38. package/clinkx-workflows/dist/dashboard/index.d.ts +4 -0
  39. package/clinkx-workflows/dist/dashboard/index.js +4 -0
  40. package/clinkx-workflows/dist/dashboard/index.js.map +1 -1
  41. package/clinkx-workflows/dist/dashboard/invocation-contract.d.ts +786 -0
  42. package/clinkx-workflows/dist/dashboard/invocation-contract.js +201 -0
  43. package/clinkx-workflows/dist/dashboard/invocation-contract.js.map +1 -0
  44. package/clinkx-workflows/dist/dashboard/lazy-content.d.ts +14 -1
  45. package/clinkx-workflows/dist/dashboard/lazy-content.js +53 -2
  46. package/clinkx-workflows/dist/dashboard/lazy-content.js.map +1 -1
  47. package/clinkx-workflows/dist/dashboard/native-transcript/contract.d.ts +90 -0
  48. package/clinkx-workflows/dist/dashboard/native-transcript/contract.js +31 -0
  49. package/clinkx-workflows/dist/dashboard/native-transcript/contract.js.map +1 -0
  50. package/clinkx-workflows/dist/dashboard/native-transcript/projection.d.ts +12 -0
  51. package/clinkx-workflows/dist/dashboard/native-transcript/projection.js +286 -0
  52. package/clinkx-workflows/dist/dashboard/native-transcript/projection.js.map +1 -0
  53. package/clinkx-workflows/dist/dashboard/progress-report-contract.d.ts +147 -4
  54. package/clinkx-workflows/dist/dashboard/progress-report-contract.js +11 -11
  55. package/clinkx-workflows/dist/dashboard/progress-report-contract.js.map +1 -1
  56. package/clinkx-workflows/dist/dashboard/progress-report-reader.js +4 -56
  57. package/clinkx-workflows/dist/dashboard/progress-report-reader.js.map +1 -1
  58. package/clinkx-workflows/dist/dashboard/progress-report-status-store.d.ts +2 -1
  59. package/clinkx-workflows/dist/dashboard/progress-report-status-store.js +6 -5
  60. package/clinkx-workflows/dist/dashboard/progress-report-status-store.js.map +1 -1
  61. package/clinkx-workflows/dist/dashboard/prompt-builder-library-contract.d.ts +194 -0
  62. package/clinkx-workflows/dist/dashboard/prompt-builder-library-contract.js +89 -0
  63. package/clinkx-workflows/dist/dashboard/prompt-builder-library-contract.js.map +1 -0
  64. package/clinkx-workflows/dist/dashboard/prompt-builder-library-store.d.ts +26 -0
  65. package/clinkx-workflows/dist/dashboard/prompt-builder-library-store.js +102 -0
  66. package/clinkx-workflows/dist/dashboard/prompt-builder-library-store.js.map +1 -0
  67. package/clinkx-workflows/dist/dashboard/request-admission.js +4 -0
  68. package/clinkx-workflows/dist/dashboard/request-admission.js.map +1 -1
  69. package/clinkx-workflows/dist/dashboard/scanner.d.ts +3 -0
  70. package/clinkx-workflows/dist/dashboard/scanner.js +52 -8
  71. package/clinkx-workflows/dist/dashboard/scanner.js.map +1 -1
  72. package/clinkx-workflows/dist/dashboard/server-factory.d.ts +14 -1
  73. package/clinkx-workflows/dist/dashboard/server-factory.js +73 -21
  74. package/clinkx-workflows/dist/dashboard/server-factory.js.map +1 -1
  75. package/clinkx-workflows/dist/dashboard/session-log-contract.d.ts +223 -56
  76. package/clinkx-workflows/dist/dashboard/session-log-contract.js +26 -0
  77. package/clinkx-workflows/dist/dashboard/session-log-contract.js.map +1 -1
  78. package/clinkx-workflows/dist/dashboard/session-log-journal.js +10 -3
  79. package/clinkx-workflows/dist/dashboard/session-log-journal.js.map +1 -1
  80. package/clinkx-workflows/dist/dashboard/session-log-redaction.d.ts +9 -1
  81. package/clinkx-workflows/dist/dashboard/session-log-redaction.js +793 -59
  82. package/clinkx-workflows/dist/dashboard/session-log-redaction.js.map +1 -1
  83. package/clinkx-workflows/dist/dashboard-ui/assets/index-JPHQVtn9.js +106 -0
  84. package/clinkx-workflows/dist/dashboard-ui/assets/style-DOMHk-j6.css +1 -0
  85. package/clinkx-workflows/dist/dashboard-ui/index.html +2 -2
  86. package/clinkx-workflows/dist/delegate-finalizer-policy.d.ts +26 -0
  87. package/clinkx-workflows/dist/delegate-finalizer-policy.js +72 -0
  88. package/clinkx-workflows/dist/delegate-finalizer-policy.js.map +1 -0
  89. package/clinkx-workflows/dist/delegate-signature.d.ts +14 -0
  90. package/clinkx-workflows/dist/delegate-signature.js +14 -0
  91. package/clinkx-workflows/dist/delegate-signature.js.map +1 -0
  92. package/clinkx-workflows/dist/delegate-validate.d.ts +32 -2
  93. package/clinkx-workflows/dist/delegate-validate.js +51 -0
  94. package/clinkx-workflows/dist/delegate-validate.js.map +1 -1
  95. package/clinkx-workflows/dist/engine.d.ts +113 -3
  96. package/clinkx-workflows/dist/engine.js +476 -80
  97. package/clinkx-workflows/dist/engine.js.map +1 -1
  98. package/clinkx-workflows/dist/errors.d.ts +22 -2
  99. package/clinkx-workflows/dist/errors.js +30 -2
  100. package/clinkx-workflows/dist/errors.js.map +1 -1
  101. package/clinkx-workflows/dist/fidelity.d.ts +47 -1
  102. package/clinkx-workflows/dist/fidelity.js +54 -1
  103. package/clinkx-workflows/dist/fidelity.js.map +1 -1
  104. package/clinkx-workflows/dist/fingerprint.d.ts +24 -6
  105. package/clinkx-workflows/dist/fingerprint.js +32 -9
  106. package/clinkx-workflows/dist/fingerprint.js.map +1 -1
  107. package/clinkx-workflows/dist/index.js +53 -1
  108. package/clinkx-workflows/dist/index.js.map +1 -1
  109. package/clinkx-workflows/dist/logger.d.ts +1 -1
  110. package/clinkx-workflows/dist/logger.js +17 -3
  111. package/clinkx-workflows/dist/logger.js.map +1 -1
  112. package/clinkx-workflows/dist/monotonic-clock.d.ts +19 -0
  113. package/clinkx-workflows/dist/monotonic-clock.js +22 -0
  114. package/clinkx-workflows/dist/monotonic-clock.js.map +1 -0
  115. package/clinkx-workflows/dist/plan-review/contract.d.ts +52 -52
  116. package/clinkx-workflows/dist/plan-review/publication.d.ts +4 -4
  117. package/clinkx-workflows/dist/plan-review/run-state.d.ts +16 -16
  118. package/clinkx-workflows/dist/roster-contract.d.ts +889 -0
  119. package/clinkx-workflows/dist/roster-contract.js +180 -0
  120. package/clinkx-workflows/dist/roster-contract.js.map +1 -0
  121. package/clinkx-workflows/dist/rosters.d.ts +14 -0
  122. package/clinkx-workflows/dist/rosters.js +169 -0
  123. package/clinkx-workflows/dist/rosters.js.map +1 -0
  124. package/clinkx-workflows/dist/run-health.d.ts +7 -0
  125. package/clinkx-workflows/dist/run-health.js +25 -0
  126. package/clinkx-workflows/dist/run-health.js.map +1 -0
  127. package/clinkx-workflows/dist/schema.d.ts +64 -0
  128. package/clinkx-workflows/dist/schema.js +24 -0
  129. package/clinkx-workflows/dist/schema.js.map +1 -1
  130. package/clinkx-workflows/dist/server.js +2 -0
  131. package/clinkx-workflows/dist/server.js.map +1 -1
  132. package/clinkx-workflows/dist/shutdown.d.ts +15 -2
  133. package/clinkx-workflows/dist/shutdown.js +60 -16
  134. package/clinkx-workflows/dist/shutdown.js.map +1 -1
  135. package/clinkx-workflows/dist/state-schema.d.ts +23 -0
  136. package/clinkx-workflows/dist/state.d.ts +5 -0
  137. package/clinkx-workflows/dist/state.js +128 -21
  138. package/clinkx-workflows/dist/state.js.map +1 -1
  139. package/clinkx-workflows/dist/stdio-watchdog.d.ts +52 -0
  140. package/clinkx-workflows/dist/stdio-watchdog.js +212 -0
  141. package/clinkx-workflows/dist/stdio-watchdog.js.map +1 -0
  142. package/clinkx-workflows/dist/types.d.ts +6 -0
  143. package/clinkx-workflows/dist/validators/council.d.ts +50 -50
  144. package/clinkx-workflows/dist/validators/plan-review.d.ts +3 -3
  145. package/clinkx-workflows/dist/workflow-tools.d.ts +70 -0
  146. package/clinkx-workflows/dist/workflow-tools.js +760 -168
  147. package/clinkx-workflows/dist/workflow-tools.js.map +1 -1
  148. package/clinkx-workflows/templates/council/answer-chairman.txt +3 -0
  149. package/clinkx-workflows/templates/council/answer-cross-reviewer.txt +3 -0
  150. package/clinkx-workflows/templates/council/answer-specialist.txt +3 -0
  151. package/clinkx-workflows/templates/council/chairman.txt +3 -0
  152. package/clinkx-workflows/templates/council/code-review-chairman.txt +3 -0
  153. package/clinkx-workflows/templates/council/code-review-cross-reviewer.txt +3 -0
  154. package/clinkx-workflows/templates/council/code-review-reviewer.txt +3 -0
  155. package/clinkx-workflows/templates/council/debug-chairman.txt +3 -0
  156. package/clinkx-workflows/templates/council/debug-cross-reviewer.txt +3 -0
  157. package/clinkx-workflows/templates/council/debug-debugger.txt +3 -0
  158. package/clinkx-workflows/templates/council/discover-analyst.txt +3 -0
  159. package/clinkx-workflows/templates/council/discover-chairman.txt +3 -0
  160. package/clinkx-workflows/templates/council/discover-cross-reviewer.txt +3 -0
  161. package/clinkx-workflows/templates/council/member.txt +3 -0
  162. package/clinkx-workflows/templates/council/plan-review-chairman.txt +3 -0
  163. package/clinkx-workflows/templates/council/plan-review-cross-reviewer.txt +3 -0
  164. package/clinkx-workflows/templates/council/plan-review-reviewer.txt +3 -0
  165. package/clinkx-workflows/templates/council/reviewer.txt +3 -0
  166. package/clinkx-workflows/workflows/council-answer.yaml +3 -0
  167. package/clinkx-workflows/workflows/council-code-review.yaml +3 -0
  168. package/clinkx-workflows/workflows/council-debug.yaml +3 -0
  169. package/clinkx-workflows/workflows/council-default.yaml +7 -0
  170. package/clinkx-workflows/workflows/council-discover.yaml +3 -0
  171. package/clinkx-workflows/workflows/council-plan-review.yaml +3 -0
  172. package/conf/adapters/agy.json +9 -2
  173. package/conf/adapters/claude.json +7 -0
  174. package/conf/adapters/codex.json +7 -0
  175. package/conf/adapters/glm.json +19 -3
  176. package/conf/adapters/grok.json +9 -2
  177. package/conf/adapters/hapi/agy.json +9 -2
  178. package/conf/adapters/hapi/claude.json +7 -0
  179. package/conf/adapters/hapi/codex.json +7 -0
  180. package/conf/adapters/hapi/glm.json +20 -4
  181. package/conf/rosters/default-council.json +21 -0
  182. package/dist/activity-journal.d.ts +17 -3
  183. package/dist/activity-journal.js +404 -79
  184. package/dist/activity-journal.js.map +1 -1
  185. package/dist/codex/agent-tools.js +36 -0
  186. package/dist/codex/agent-tools.js.map +1 -1
  187. package/dist/codex/app-server-client.d.ts +3 -0
  188. package/dist/codex/app-server-client.js +11 -0
  189. package/dist/codex/app-server-client.js.map +1 -1
  190. package/dist/codex/app-server-registry.d.ts +18 -0
  191. package/dist/codex/app-server-registry.js +88 -2
  192. package/dist/codex/app-server-registry.js.map +1 -1
  193. package/dist/codex/client-types.d.ts +7 -1
  194. package/dist/codex/protocol.d.ts +4 -4
  195. package/dist/config.d.ts +220 -23
  196. package/dist/config.js +104 -1
  197. package/dist/config.js.map +1 -1
  198. package/dist/context-builder/bundle.d.ts +13 -0
  199. package/dist/context-builder/bundle.js +46 -0
  200. package/dist/context-builder/bundle.js.map +1 -1
  201. package/dist/context-builder/delegate-finalizer-effective.d.ts +33 -0
  202. package/dist/context-builder/delegate-finalizer-effective.js +82 -0
  203. package/dist/context-builder/delegate-finalizer-effective.js.map +1 -0
  204. package/dist/context-builder/delegate-packet.d.ts +18 -0
  205. package/dist/context-builder/delegate-packet.js +73 -9
  206. package/dist/context-builder/delegate-packet.js.map +1 -1
  207. package/dist/context-builder/delegate-reconstruction.d.ts +29 -0
  208. package/dist/context-builder/delegate-reconstruction.js +110 -41
  209. package/dist/context-builder/delegate-reconstruction.js.map +1 -1
  210. package/dist/context-builder/delegate-validation.d.ts +31 -0
  211. package/dist/context-builder/delegate-validation.js +87 -10
  212. package/dist/context-builder/delegate-validation.js.map +1 -1
  213. package/dist/context-builder/delegate.d.ts +9 -0
  214. package/dist/context-builder/delegate.js +210 -59
  215. package/dist/context-builder/delegate.js.map +1 -1
  216. package/dist/context-builder/diagnostics.d.ts +1 -1
  217. package/dist/context-builder/diagnostics.js.map +1 -1
  218. package/dist/context-builder/discovery-progress.d.ts +25 -0
  219. package/dist/context-builder/discovery-progress.js +64 -0
  220. package/dist/context-builder/discovery-progress.js.map +1 -0
  221. package/dist/context-builder/discovery-watchdog.d.ts +15 -0
  222. package/dist/context-builder/discovery-watchdog.js +39 -0
  223. package/dist/context-builder/discovery-watchdog.js.map +1 -0
  224. package/dist/context-builder/discovery.d.ts +7 -0
  225. package/dist/context-builder/discovery.js +119 -7
  226. package/dist/context-builder/discovery.js.map +1 -1
  227. package/dist/context-builder/external-gaps.d.ts +73 -0
  228. package/dist/context-builder/external-gaps.js +248 -0
  229. package/dist/context-builder/external-gaps.js.map +1 -0
  230. package/dist/context-builder/globs.d.ts +1 -0
  231. package/dist/context-builder/globs.js +15 -0
  232. package/dist/context-builder/globs.js.map +1 -1
  233. package/dist/context-builder/handler.d.ts +42 -1
  234. package/dist/context-builder/handler.js +690 -62
  235. package/dist/context-builder/handler.js.map +1 -1
  236. package/dist/context-builder/invocation-sidecar.d.ts +41 -0
  237. package/dist/context-builder/invocation-sidecar.js +189 -0
  238. package/dist/context-builder/invocation-sidecar.js.map +1 -0
  239. package/dist/context-builder/lifecycle-contract.d.ts +51 -51
  240. package/dist/context-builder/mutation-lock.d.ts +32 -0
  241. package/dist/context-builder/mutation-lock.js +321 -0
  242. package/dist/context-builder/mutation-lock.js.map +1 -0
  243. package/dist/context-builder/review-coverage.d.ts +32 -0
  244. package/dist/context-builder/review-coverage.js +130 -23
  245. package/dist/context-builder/review-coverage.js.map +1 -1
  246. package/dist/context-builder/schema.d.ts +76 -1
  247. package/dist/context-builder/schema.js +21 -1
  248. package/dist/context-builder/schema.js.map +1 -1
  249. package/dist/context-builder/secrets.d.ts +31 -0
  250. package/dist/context-builder/secrets.js +865 -83
  251. package/dist/context-builder/secrets.js.map +1 -1
  252. package/dist/context-builder/status.d.ts +1 -1
  253. package/dist/context-builder/status.js +1 -0
  254. package/dist/context-builder/status.js.map +1 -1
  255. package/dist/context-builder/storage.d.ts +29 -5
  256. package/dist/context-builder/storage.js +311 -236
  257. package/dist/context-builder/storage.js.map +1 -1
  258. package/dist/context-builder/versions.d.ts +19 -4
  259. package/dist/context-builder/versions.js +19 -4
  260. package/dist/context-builder/versions.js.map +1 -1
  261. package/dist/context-builder/workflow-runner.d.ts +6 -0
  262. package/dist/context-builder/workflow-runner.js +363 -173
  263. package/dist/context-builder/workflow-runner.js.map +1 -1
  264. package/dist/dashboard-adapter-catalog.js +7 -0
  265. package/dist/dashboard-adapter-catalog.js.map +1 -1
  266. package/dist/dashboard-cli.d.ts +2 -0
  267. package/dist/dashboard-cli.js +40 -2
  268. package/dist/dashboard-cli.js.map +1 -1
  269. package/dist/dashboard-companion/client.d.ts +1 -0
  270. package/dist/dashboard-companion/client.js +22 -3
  271. package/dist/dashboard-companion/client.js.map +1 -1
  272. package/dist/dashboard-companion/protocol.js +4 -1
  273. package/dist/dashboard-companion/protocol.js.map +1 -1
  274. package/dist/dashboard-gateway/index.d.ts +1 -0
  275. package/dist/dashboard-gateway/index.js +33 -2
  276. package/dist/dashboard-gateway/index.js.map +1 -1
  277. package/dist/handler.js +5 -1
  278. package/dist/handler.js.map +1 -1
  279. package/dist/index.d.ts +18 -1
  280. package/dist/index.js +145 -7
  281. package/dist/index.js.map +1 -1
  282. package/dist/logger.d.ts +1 -1
  283. package/dist/logger.js +18 -3
  284. package/dist/logger.js.map +1 -1
  285. package/dist/parsers/agy-stream-json.d.ts +14 -0
  286. package/dist/parsers/agy-stream-json.js +172 -0
  287. package/dist/parsers/agy-stream-json.js.map +1 -0
  288. package/dist/parsers/extract.js +5 -1
  289. package/dist/parsers/extract.js.map +1 -1
  290. package/dist/parsers/observed-invocation.d.ts +20 -0
  291. package/dist/parsers/observed-invocation.js +42 -0
  292. package/dist/parsers/observed-invocation.js.map +1 -0
  293. package/dist/pipeline.d.ts +13 -0
  294. package/dist/pipeline.js +60 -10
  295. package/dist/pipeline.js.map +1 -1
  296. package/dist/progress-report/lock.d.ts +74 -0
  297. package/dist/progress-report/lock.js +343 -0
  298. package/dist/progress-report/lock.js.map +1 -0
  299. package/dist/progress-report/schema.d.ts +808 -0
  300. package/dist/progress-report/schema.js +119 -0
  301. package/dist/progress-report/schema.js.map +1 -0
  302. package/dist/progress-report/store.d.ts +66 -0
  303. package/dist/progress-report/store.js +766 -0
  304. package/dist/progress-report/store.js.map +1 -0
  305. package/dist/progress-report/tools.d.ts +20 -0
  306. package/dist/progress-report/tools.js +141 -0
  307. package/dist/progress-report/tools.js.map +1 -0
  308. package/dist/prompt-mode.d.ts +1 -1
  309. package/dist/prompt-mode.js +7 -2
  310. package/dist/prompt-mode.js.map +1 -1
  311. package/dist/runner.d.ts +7 -0
  312. package/dist/runner.js +10 -3
  313. package/dist/runner.js.map +1 -1
  314. package/dist/safety.d.ts +50 -0
  315. package/dist/safety.js +182 -1
  316. package/dist/safety.js.map +1 -1
  317. package/dist/schema.d.ts +8 -0
  318. package/dist/schema.js +20 -0
  319. package/dist/schema.js.map +1 -1
  320. package/dist/server.d.ts +6 -1
  321. package/dist/server.js +94 -8
  322. package/dist/server.js.map +1 -1
  323. package/dist/session-log-stream.d.ts +1 -1
  324. package/dist/session-log-stream.js +280 -33
  325. package/dist/session-log-stream.js.map +1 -1
  326. package/dist/stdio-activity.d.ts +28 -0
  327. package/dist/stdio-activity.js +72 -0
  328. package/dist/stdio-activity.js.map +1 -0
  329. package/package.json +2 -1
  330. package/clinkx-workflows/dist/dashboard-ui/assets/index-DOkMXTfB.js +0 -25
  331. package/clinkx-workflows/dist/dashboard-ui/assets/style-ChJsn0KD.css +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio-watchdog.js","sourceRoot":"","sources":["../src/stdio-watchdog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,gCAAgC,GAAG,KAAK,CAAC;AAC/C,MAAM,kBAAkB,GAAG,aAAa,CAAC;AACzC,MAAM,gBAAgB,GAAG,oCAAoC,CAAC;AAqC9D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AI,IAAI,EAAE,CAAC;gBACT,YAAY,EAAE,CAAC;gBACf,OAAO;YACT,CAAC;YACD,eAAe,CAAC,4BAA4B,CAAC,CAAC;QAChD,CAAC,EAAE,aAAa,CAAC,CAAC;QAClB,UAAU,CAAC,SAAS,CAAC,CAAC;IACxB,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,GAAS,EAAE;QAChC,IAAI,OAAO;YAAE,OAAO;QACpB,YAAY,EAAE,CAAC;IACjB,CAAC,CAAC;IAEF,WAAW,GAAG,aAAa,CAAC,WAAW,EAAE,qBAAqB,CAAC,CAAC;IAChE,UAAU,CAAC,WAAW,CAAC,CAAC;IACxB,YAAY,EAAE,CAAC;IAEf,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC;AAClC,CAAC"}
@@ -28,6 +28,10 @@ export interface Call {
28
28
  readonly cli_name: string;
29
29
  /** Role selector — maps to adapter roles config. */
30
30
  readonly role: string;
31
+ /** Optional per-call model override; support is declared by the adapter. */
32
+ readonly model?: string | undefined;
33
+ /** Optional per-call reasoning-effort override; support is declared by the adapter. */
34
+ readonly effort?: string | undefined;
31
35
  /**
32
36
  * Exactly ONE of prompt or prompt_template must be set (XOR).
33
37
  * prompt: inline prompt text.
@@ -125,6 +129,8 @@ export interface WorkflowSettings {
125
129
  readonly fail_on_degraded_context_coverage: boolean;
126
130
  /** Opt-in inclusion of a selected-context artifact. */
127
131
  readonly include_selected_context_artifact: boolean;
132
+ /** Runtime default folded into an enabled preflight delegate lacking `external_gap_policy`. */
133
+ readonly context_external_gap_policy?: "fail" | "degrade" | undefined;
128
134
  }
129
135
  /**
130
136
  * Complete workflow definition.
@@ -28,12 +28,12 @@ declare const RubricScoreEntrySchema: z.ZodObject<{
28
28
  reason: z.ZodString;
29
29
  }, "strip", z.ZodTypeAny, {
30
30
  score: number;
31
- criterion: string;
32
31
  reason: string;
32
+ criterion: string;
33
33
  }, {
34
34
  score: number;
35
- criterion: string;
36
35
  reason: string;
36
+ criterion: string;
37
37
  }>;
38
38
  export { RubricScoreEntrySchema };
39
39
  /** Max bytes for first-stage council validator output (member, reviewer, analyst, debugger, specialist). */
@@ -77,12 +77,12 @@ export declare const CouncilMemberOutputSchema: z.ZodObject<{
77
77
  reason: z.ZodString;
78
78
  }, "strip", z.ZodTypeAny, {
79
79
  score: number;
80
- criterion: string;
81
80
  reason: string;
81
+ criterion: string;
82
82
  }, {
83
83
  score: number;
84
- criterion: string;
85
84
  reason: string;
85
+ criterion: string;
86
86
  }>, "many">>;
87
87
  overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
88
88
  open_risks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -103,8 +103,8 @@ export declare const CouncilMemberOutputSchema: z.ZodObject<{
103
103
  }[];
104
104
  rubric_scores: {
105
105
  score: number;
106
- criterion: string;
107
106
  reason: string;
107
+ criterion: string;
108
108
  }[];
109
109
  overall_score_100: number;
110
110
  open_risks: string[];
@@ -125,8 +125,8 @@ export declare const CouncilMemberOutputSchema: z.ZodObject<{
125
125
  }[] | undefined;
126
126
  rubric_scores?: {
127
127
  score: number;
128
- criterion: string;
129
128
  reason: string;
129
+ criterion: string;
130
130
  }[] | undefined;
131
131
  open_risks?: string[] | undefined;
132
132
  }>;
@@ -152,12 +152,12 @@ export declare const CouncilReviewerOutputSchema: z.ZodObject<{
152
152
  reason: z.ZodString;
153
153
  }, "strip", z.ZodTypeAny, {
154
154
  score: number;
155
- criterion: string;
156
155
  reason: string;
156
+ criterion: string;
157
157
  }, {
158
158
  score: number;
159
- criterion: string;
160
159
  reason: string;
160
+ criterion: string;
161
161
  }>, "many">>;
162
162
  overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
163
163
  mergeable_insights: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -165,8 +165,8 @@ export declare const CouncilReviewerOutputSchema: z.ZodObject<{
165
165
  candidate_id: string;
166
166
  rubric_scores: {
167
167
  score: number;
168
- criterion: string;
169
168
  reason: string;
169
+ criterion: string;
170
170
  }[];
171
171
  overall_score_100: number;
172
172
  strengths: string[];
@@ -179,8 +179,8 @@ export declare const CouncilReviewerOutputSchema: z.ZodObject<{
179
179
  weaknesses: string[];
180
180
  rubric_scores?: {
181
181
  score: number;
182
- criterion: string;
183
182
  reason: string;
183
+ criterion: string;
184
184
  }[] | undefined;
185
185
  mergeable_insights?: string[] | undefined;
186
186
  }>, "many">;
@@ -214,8 +214,8 @@ export declare const CouncilReviewerOutputSchema: z.ZodObject<{
214
214
  candidate_id: string;
215
215
  rubric_scores: {
216
216
  score: number;
217
- criterion: string;
218
217
  reason: string;
218
+ criterion: string;
219
219
  }[];
220
220
  overall_score_100: number;
221
221
  strengths: string[];
@@ -239,8 +239,8 @@ export declare const CouncilReviewerOutputSchema: z.ZodObject<{
239
239
  weaknesses: string[];
240
240
  rubric_scores?: {
241
241
  score: number;
242
- criterion: string;
243
242
  reason: string;
243
+ criterion: string;
244
244
  }[] | undefined;
245
245
  mergeable_insights?: string[] | undefined;
246
246
  }[];
@@ -271,11 +271,11 @@ export declare const CouncilChairmanOutputSchema: z.ZodObject<{
271
271
  members: z.ZodNumber;
272
272
  reviewers: z.ZodNumber;
273
273
  }, "strip", z.ZodTypeAny, {
274
- members: number;
275
274
  reviewers: number;
276
- }, {
277
275
  members: number;
276
+ }, {
278
277
  reviewers: number;
278
+ members: number;
279
279
  }>;
280
280
  action_items: z.ZodArray<z.ZodString, "many">;
281
281
  council_summary: z.ZodObject<{
@@ -301,8 +301,8 @@ export declare const CouncilChairmanOutputSchema: z.ZodObject<{
301
301
  final_answer: string;
302
302
  selected_approach: string;
303
303
  considered_artifacts: {
304
- members: number;
305
304
  reviewers: number;
305
+ members: number;
306
306
  };
307
307
  action_items: string[];
308
308
  council_summary: {
@@ -318,8 +318,8 @@ export declare const CouncilChairmanOutputSchema: z.ZodObject<{
318
318
  decision: string;
319
319
  selected_approach: string;
320
320
  considered_artifacts: {
321
- members: number;
322
321
  reviewers: number;
322
+ members: number;
323
323
  };
324
324
  action_items: string[];
325
325
  council_summary: {
@@ -440,24 +440,24 @@ export declare const CouncilCodeReviewReviewerOutputSchema: z.ZodObject<{
440
440
  reason: z.ZodString;
441
441
  }, "strip", z.ZodTypeAny, {
442
442
  score: number;
443
- criterion: string;
444
443
  reason: string;
444
+ criterion: string;
445
445
  }, {
446
446
  score: number;
447
- criterion: string;
448
447
  reason: string;
448
+ criterion: string;
449
449
  }>, "many">, {
450
450
  score: number;
451
- criterion: string;
452
451
  reason: string;
452
+ criterion: string;
453
453
  }[], unknown>>;
454
454
  overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
455
455
  tests_to_add_or_update: z.ZodArray<z.ZodString, "many">;
456
456
  }, "strip", z.ZodTypeAny, {
457
457
  rubric_scores: {
458
458
  score: number;
459
- criterion: string;
460
459
  reason: string;
460
+ criterion: string;
461
461
  }[];
462
462
  overall_score_100: number;
463
463
  summary: string;
@@ -776,14 +776,14 @@ export declare const CouncilDiscoverAnalystOutputSchema: z.ZodObject<{
776
776
  confidence: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
777
777
  sources: z.ZodArray<z.ZodString, "many">;
778
778
  }, "strip", z.ZodTypeAny, {
779
+ detail: string;
779
780
  confidence: number;
780
781
  topic: string;
781
- detail: string;
782
782
  sources: string[];
783
783
  }, {
784
+ detail: string;
784
785
  confidence: number;
785
786
  topic: string;
786
- detail: string;
787
787
  sources: string[];
788
788
  }>, "many">;
789
789
  synthesis: z.ZodString;
@@ -794,45 +794,45 @@ export declare const CouncilDiscoverAnalystOutputSchema: z.ZodObject<{
794
794
  reason: z.ZodString;
795
795
  }, "strip", z.ZodTypeAny, {
796
796
  score: number;
797
- criterion: string;
798
797
  reason: string;
798
+ criterion: string;
799
799
  }, {
800
800
  score: number;
801
- criterion: string;
802
801
  reason: string;
802
+ criterion: string;
803
803
  }>, "many">>;
804
804
  overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
805
805
  }, "strip", z.ZodTypeAny, {
806
- rubric_scores: {
807
- score: number;
808
- criterion: string;
809
- reason: string;
810
- }[];
811
- overall_score_100: number;
812
- analyst_id: string;
813
806
  findings: {
807
+ detail: string;
814
808
  confidence: number;
815
809
  topic: string;
816
- detail: string;
817
810
  sources: string[];
818
811
  }[];
819
812
  synthesis: string;
820
- open_questions: string[];
821
- }, {
813
+ rubric_scores: {
814
+ score: number;
815
+ reason: string;
816
+ criterion: string;
817
+ }[];
822
818
  overall_score_100: number;
823
819
  analyst_id: string;
820
+ open_questions: string[];
821
+ }, {
824
822
  findings: {
823
+ detail: string;
825
824
  confidence: number;
826
825
  topic: string;
827
- detail: string;
828
826
  sources: string[];
829
827
  }[];
830
828
  synthesis: string;
829
+ overall_score_100: number;
830
+ analyst_id: string;
831
831
  open_questions: string[];
832
832
  rubric_scores?: {
833
833
  score: number;
834
- criterion: string;
835
834
  reason: string;
835
+ criterion: string;
836
836
  }[] | undefined;
837
837
  }>;
838
838
  export type CouncilDiscoverAnalystOutput = z.infer<typeof CouncilDiscoverAnalystOutputSchema>;
@@ -954,12 +954,12 @@ export declare const CouncilDebugDebuggerOutputSchema: z.ZodObject<{
954
954
  reason: z.ZodString;
955
955
  }, "strip", z.ZodTypeAny, {
956
956
  score: number;
957
- criterion: string;
958
957
  reason: string;
958
+ criterion: string;
959
959
  }, {
960
960
  score: number;
961
- criterion: string;
962
961
  reason: string;
962
+ criterion: string;
963
963
  }>, "many">>;
964
964
  overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
965
965
  confidence: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
@@ -971,8 +971,8 @@ export declare const CouncilDebugDebuggerOutputSchema: z.ZodObject<{
971
971
  confidence: number;
972
972
  rubric_scores: {
973
973
  score: number;
974
- criterion: string;
975
974
  reason: string;
975
+ criterion: string;
976
976
  }[];
977
977
  overall_score_100: number;
978
978
  debugger_id: string;
@@ -1002,8 +1002,8 @@ export declare const CouncilDebugDebuggerOutputSchema: z.ZodObject<{
1002
1002
  };
1003
1003
  rubric_scores?: {
1004
1004
  score: number;
1005
- criterion: string;
1006
1005
  reason: string;
1006
+ criterion: string;
1007
1007
  }[] | undefined;
1008
1008
  }>;
1009
1009
  export type CouncilDebugDebuggerOutput = z.infer<typeof CouncilDebugDebuggerOutputSchema>;
@@ -1346,12 +1346,12 @@ export declare const CouncilAnswerSpecialistOutputSchema: z.ZodObject<{
1346
1346
  reason: z.ZodString;
1347
1347
  }, "strip", z.ZodTypeAny, {
1348
1348
  score: number;
1349
- criterion: string;
1350
1349
  reason: string;
1350
+ criterion: string;
1351
1351
  }, {
1352
1352
  score: number;
1353
- criterion: string;
1354
1353
  reason: string;
1354
+ criterion: string;
1355
1355
  }>, "many">>;
1356
1356
  overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1357
1357
  confidence: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
@@ -1361,8 +1361,8 @@ export declare const CouncilAnswerSpecialistOutputSchema: z.ZodObject<{
1361
1361
  reasoning: string;
1362
1362
  rubric_scores: {
1363
1363
  score: number;
1364
- criterion: string;
1365
1364
  reason: string;
1365
+ criterion: string;
1366
1366
  }[];
1367
1367
  overall_score_100: number;
1368
1368
  sources: string[];
@@ -1379,8 +1379,8 @@ export declare const CouncilAnswerSpecialistOutputSchema: z.ZodObject<{
1379
1379
  caveats: string[];
1380
1380
  rubric_scores?: {
1381
1381
  score: number;
1382
- criterion: string;
1383
1382
  reason: string;
1383
+ criterion: string;
1384
1384
  }[] | undefined;
1385
1385
  }>;
1386
1386
  export type CouncilAnswerSpecialistOutput = z.infer<typeof CouncilAnswerSpecialistOutputSchema>;
@@ -1400,12 +1400,12 @@ export declare const CouncilAnswerCrossReviewerOutputSchema: z.ZodObject<{
1400
1400
  reason: z.ZodString;
1401
1401
  }, "strip", z.ZodTypeAny, {
1402
1402
  score: number;
1403
- criterion: string;
1404
1403
  reason: string;
1404
+ criterion: string;
1405
1405
  }, {
1406
1406
  score: number;
1407
- criterion: string;
1408
1407
  reason: string;
1408
+ criterion: string;
1409
1409
  }>, "many">>;
1410
1410
  overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1411
1411
  strengths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -1415,8 +1415,8 @@ export declare const CouncilAnswerCrossReviewerOutputSchema: z.ZodObject<{
1415
1415
  candidate_id: string;
1416
1416
  rubric_scores: {
1417
1417
  score: number;
1418
- criterion: string;
1419
1418
  reason: string;
1419
+ criterion: string;
1420
1420
  }[];
1421
1421
  overall_score_100: number;
1422
1422
  strengths: string[];
@@ -1431,8 +1431,8 @@ export declare const CouncilAnswerCrossReviewerOutputSchema: z.ZodObject<{
1431
1431
  completeness_score: number;
1432
1432
  rubric_scores?: {
1433
1433
  score: number;
1434
- criterion: string;
1435
1434
  reason: string;
1435
+ criterion: string;
1436
1436
  }[] | undefined;
1437
1437
  strengths?: string[] | undefined;
1438
1438
  weaknesses?: string[] | undefined;
@@ -1470,8 +1470,8 @@ export declare const CouncilAnswerCrossReviewerOutputSchema: z.ZodObject<{
1470
1470
  candidate_id: string;
1471
1471
  rubric_scores: {
1472
1472
  score: number;
1473
- criterion: string;
1474
1473
  reason: string;
1474
+ criterion: string;
1475
1475
  }[];
1476
1476
  overall_score_100: number;
1477
1477
  strengths: string[];
@@ -1494,8 +1494,8 @@ export declare const CouncilAnswerCrossReviewerOutputSchema: z.ZodObject<{
1494
1494
  completeness_score: number;
1495
1495
  rubric_scores?: {
1496
1496
  score: number;
1497
- criterion: string;
1498
1497
  reason: string;
1498
+ criterion: string;
1499
1499
  }[] | undefined;
1500
1500
  strengths?: string[] | undefined;
1501
1501
  weaknesses?: string[] | undefined;
@@ -75,17 +75,17 @@ export declare const PlanReviewReviewerBodySchema: z.ZodObject<{
75
75
  }, "strip", z.ZodTypeAny, {
76
76
  status: "failed" | "completed";
77
77
  score: number;
78
- findings: string[];
79
78
  verdict: "approve" | "request_changes" | "abstain";
80
79
  blockers: string[];
81
80
  verification_gaps: string[];
81
+ findings: string[];
82
82
  }, {
83
83
  status: "failed" | "completed";
84
84
  score: number;
85
- findings: string[];
86
85
  verdict: "approve" | "request_changes" | "abstain";
87
86
  blockers: string[];
88
87
  verification_gaps: string[];
88
+ findings: string[];
89
89
  }>;
90
90
  export type PlanReviewReviewerBody = z.infer<typeof PlanReviewReviewerBodySchema>;
91
91
  /**
@@ -257,9 +257,9 @@ export declare const PlanReviewChairmanOutputSchema: z.ZodObject<{
257
257
  disagreements: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
258
258
  unresolved_blockers: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
259
259
  }, "strip", z.ZodTypeAny, {
260
+ synthesis: string;
260
261
  agreements: string[];
261
262
  disagreements: string[];
262
- synthesis: string;
263
263
  unresolved_blockers: string[];
264
264
  }, {
265
265
  synthesis: string;
@@ -17,11 +17,15 @@
17
17
  */
18
18
  import type { Server } from "@modelcontextprotocol/sdk/server/index.js";
19
19
  import type { ClinkBackend } from "./backend.js";
20
+ import type { NormalizedWorkflowDefinition } from "./definition-normalizer.js";
20
21
  import type { RunState } from "./state-schema.js";
22
+ import type { InvocationAuditWrite } from "./dashboard/invocation-contract.js";
21
23
  import type { ContextBuilderRunner, WorkflowContext } from "./context-preflight.js";
22
24
  import type { WorkflowContextBuilderLifecycleRouter } from "./context-builder-lifecycle-router.js";
23
25
  import type { Variable } from "./schema.js";
24
26
  import { type WorkflowContextRequestedMode, type WorkflowContextPolicy } from "./context-mode-resolver.js";
27
+ import { type AvailableCliCapability, type ResolvedRoster } from "./roster-contract.js";
28
+ import type { RosterLoader } from "./rosters.js";
25
29
  export interface WorkflowToolsOptions {
26
30
  /**
27
31
  * Factory that creates a ClinkBackend for a given run.
@@ -67,11 +71,51 @@ export interface WorkflowToolsOptions {
67
71
  * falls back to availableCliNames (standalone callers that do not filter).
68
72
  */
69
73
  readonly planReviewAvailableCliNames?: readonly string[] | undefined;
74
+ /**
75
+ * Optional admission-time capability check supplied by the root registry.
76
+ * Standalone workflow servers omit it and retain dispatch-time validation.
77
+ */
78
+ readonly validateInvocationOverrides?: (cliName: string, knobs: {
79
+ model?: string;
80
+ effort?: string;
81
+ }) => void;
82
+ /**
83
+ * Optional root-injected per-adapter model/effort capability list. Present
84
+ * only when the root server can resolve the override registry; standalone
85
+ * workflow servers omit it so list_workflows does not emit available_clis.
86
+ */
87
+ readonly adapterCapabilities?: () => readonly AvailableCliCapability[];
88
+ /**
89
+ * Optional roster-preset loader. Present whenever a server configures one
90
+ * (root: env/user/builtin; standalone: env/user). list_workflows emits
91
+ * available_rosters only when this is set.
92
+ */
93
+ readonly rosterLoader?: RosterLoader | undefined;
94
+ /**
95
+ * Optional root-injected model/effort provenance audit. The engine has no
96
+ * adapter registry; standalone servers omit this and persist no `invocation`.
97
+ */
98
+ readonly deriveInvocationAudit?: (cliName: string, role: string, knobs: {
99
+ model?: string;
100
+ effort?: string;
101
+ }) => InvocationAuditWrite;
70
102
  }
103
+ /** Internal standalone-lifecycle seam; not part of the public package API. */
104
+ export declare function getActiveWorkflowHandlerCount(): number;
105
+ /** Internal shared lifecycle seam used by the root server's compiled import. */
106
+ export declare function getActiveWorkflowRunCount(): number;
107
+ /**
108
+ * Install the standalone server's activity sink. The observer is optional and
109
+ * process-local; library callers leave it unset, so importing this module or
110
+ * using the in-process registration path has no timer/lifecycle side effects.
111
+ */
112
+ export declare function setWorkflowActivityObserver(observer: (() => void) | undefined): void;
71
113
  export declare function resolveWorkflowAsyncAdmissionCap(options?: Pick<WorkflowToolsOptions, "asyncAdmissionCap">): number;
72
114
  interface ParsedMember {
73
115
  cli_name: string;
74
116
  stance?: string;
117
+ model?: string;
118
+ effort?: string;
75
119
  }
76
120
  export declare function parseMembersOverride(raw: unknown, knownCliNames?: ReadonlySet<string>): ParsedMember[] | undefined;
77
121
  export declare function parseChairmanOverride(raw: unknown, knownCliNames?: ReadonlySet<string>): string | undefined;
@@ -82,6 +126,32 @@ export declare function validateVariables(supplied: Record<string, unknown> | un
82
126
  * e.g. "cross_review" → "Cross review", "ranking_analysis" → "Ranking analysis"
83
127
  */
84
128
  export declare function humanizeStageId(id: string): string;
129
+ export interface BuildResolvedRosterInput {
130
+ readonly workflow: string;
131
+ readonly definition: NormalizedWorkflowDefinition;
132
+ readonly parsedMembers?: ReadonlyArray<{
133
+ readonly cli_name: string;
134
+ readonly stance?: string | undefined;
135
+ readonly model?: string | undefined;
136
+ readonly effort?: string | undefined;
137
+ }> | undefined;
138
+ readonly parsedChairman?: string | undefined;
139
+ readonly parsedChairmanModel?: string | undefined;
140
+ readonly parsedChairmanEffort?: string | undefined;
141
+ readonly initialContextPolicy: WorkflowContextPolicy;
142
+ readonly resolvedVariables: Readonly<Record<string, unknown>>;
143
+ /** Preset name when a roster was used at admission. */
144
+ readonly rosterName?: string | undefined;
145
+ }
146
+ /**
147
+ * Requested-value roster projection for council workflows. Call AFTER
148
+ * `expandCouncilComposition` / `expandRunWorkflowDefinition`, AFTER
149
+ * `resolveEffectiveChairmanCall` values are on the definition (or passed as
150
+ * parsed chairman knobs), and AFTER `effectiveFinalizerEnabled` can be
151
+ * evaluated from `initialContextPolicy` — and BEFORE `WorkflowStateStore.create()`.
152
+ * `plan-review-receipts` and any non-council workflow return undefined.
153
+ */
154
+ export declare function buildResolvedRoster(input: BuildResolvedRosterInput): ResolvedRoster | undefined;
85
155
  /**
86
156
  * Legacy state-v1 runs did not persist their admission-time default. Rebuild
87
157
  * only caller-explicit choices; otherwise require deterministic preflight so a