@frontmcp/sdk 1.11.2 → 1.12.0-rc.1

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 (788) hide show
  1. package/README.md +9 -0
  2. package/agent/adapters/anthropic.adapter.d.ts +4 -4
  3. package/agent/adapters/anthropic.adapter.d.ts.map +1 -1
  4. package/agent/adapters/base.adapter.d.ts +12 -2
  5. package/agent/adapters/base.adapter.d.ts.map +1 -1
  6. package/agent/adapters/index.d.ts +1 -1
  7. package/agent/adapters/index.d.ts.map +1 -1
  8. package/agent/adapters/openai.adapter.d.ts +7 -7
  9. package/agent/adapters/openai.adapter.d.ts.map +1 -1
  10. package/agent/agent-execution-loop.d.ts +27 -14
  11. package/agent/agent-execution-loop.d.ts.map +1 -1
  12. package/agent/agent.registry.d.ts +9 -0
  13. package/agent/agent.registry.d.ts.map +1 -1
  14. package/agent/flows/call-agent.flow.d.ts.map +1 -1
  15. package/answer/answer-meter.d.ts +2 -0
  16. package/answer/answer-meter.d.ts.map +1 -1
  17. package/app/instances/app.esm.instance.d.ts +29 -5
  18. package/app/instances/app.esm.instance.d.ts.map +1 -1
  19. package/app/instances/app.lazy.instance.d.ts.map +1 -1
  20. package/app/instances/app.remote.instance.d.ts.map +1 -1
  21. package/app/instances/esm-normalize.utils.d.ts +3 -1
  22. package/app/instances/esm-normalize.utils.d.ts.map +1 -1
  23. package/app/instances/esm-package-version.d.ts +48 -0
  24. package/app/instances/esm-package-version.d.ts.map +1 -0
  25. package/app/lazy/lazy-app.rules.d.ts +4 -0
  26. package/app/lazy/lazy-app.rules.d.ts.map +1 -1
  27. package/auth/auth-ui/auth-ui.contract.d.ts +27 -0
  28. package/auth/auth-ui/auth-ui.contract.d.ts.map +1 -1
  29. package/auth/auth-ui/auth-ui.state.d.ts +2 -1
  30. package/auth/auth-ui/auth-ui.state.d.ts.map +1 -1
  31. package/auth/auth-ui/index.d.ts +1 -1
  32. package/auth/auth-ui/index.d.ts.map +1 -1
  33. package/auth/authorization/orchestrated.context-extension.d.ts +1 -1
  34. package/auth/authorization/orchestrated.context-extension.d.ts.map +1 -1
  35. package/auth/authorized-apps.utils.d.ts +22 -0
  36. package/auth/authorized-apps.utils.d.ts.map +1 -1
  37. package/auth/federated-steps.d.ts +66 -0
  38. package/auth/federated-steps.d.ts.map +1 -0
  39. package/auth/flows/oauth.authorize.flow.d.ts +2 -2
  40. package/auth/flows/oauth.authorize.flow.d.ts.map +1 -1
  41. package/auth/flows/oauth.callback.flow.d.ts +17 -6
  42. package/auth/flows/oauth.callback.flow.d.ts.map +1 -1
  43. package/auth/flows/oauth.provider-callback.flow.d.ts.map +1 -1
  44. package/auth/flows/oauth.register.flow.d.ts +1 -1
  45. package/auth/flows/oauth.register.flow.d.ts.map +1 -1
  46. package/auth/flows/oauth.token.flow.d.ts +9 -0
  47. package/auth/flows/oauth.token.flow.d.ts.map +1 -1
  48. package/auth/flows/oauth.userinfo.flow.d.ts +1 -1
  49. package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +3 -0
  50. package/auth/flows/well-known.oauth-authorization-server.flow.d.ts.map +1 -1
  51. package/auth/flows/well-known.prm.flow.d.ts.map +1 -1
  52. package/auth/instances/instance.local-primary-auth.d.ts +38 -7
  53. package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
  54. package/auth/required-providers.utils.d.ts +19 -0
  55. package/auth/required-providers.utils.d.ts.map +1 -0
  56. package/browser/agent/adapters/anthropic.adapter.mjs +14 -10
  57. package/browser/agent/adapters/base.adapter.mjs +10 -3
  58. package/browser/agent/adapters/openai.adapter.mjs +39 -25
  59. package/browser/agent/agent-execution-loop.mjs +102 -70
  60. package/browser/agent/agent.registry.mjs +56 -20
  61. package/browser/agent/flows/call-agent.flow.mjs +2 -1
  62. package/browser/agent/index.mjs +1 -1
  63. package/browser/answer/answer-meter.mjs +1 -0
  64. package/browser/app/instances/app.esm.instance.mjs +128 -154
  65. package/browser/app/instances/app.lazy.instance.mjs +7 -3
  66. package/browser/app/instances/app.remote.instance.mjs +3 -4
  67. package/browser/app/instances/esm-normalize.utils.mjs +10 -5
  68. package/browser/app/instances/esm-package-version.mjs +118 -0
  69. package/browser/app/lazy/lazy-app.rules.mjs +4 -1
  70. package/browser/auth/auth-ui/auth-ui.state.mjs +1 -1
  71. package/browser/auth/authorization/orchestrated.context-extension.mjs +2 -2
  72. package/browser/auth/authorized-apps.utils.mjs +24 -2
  73. package/browser/auth/federated-steps.mjs +199 -0
  74. package/browser/auth/flows/oauth.authorize.flow.mjs +61 -76
  75. package/browser/auth/flows/oauth.callback.flow.mjs +112 -42
  76. package/browser/auth/flows/oauth.provider-callback.flow.mjs +14 -2
  77. package/browser/auth/flows/oauth.register.flow.mjs +3 -3
  78. package/browser/auth/flows/oauth.token.flow.mjs +33 -3
  79. package/browser/auth/flows/session.verify.flow.mjs +1 -1
  80. package/browser/auth/flows/well-known.oauth-authorization-server.flow.mjs +11 -6
  81. package/browser/auth/flows/well-known.prm.flow.mjs +2 -1
  82. package/browser/auth/instances/instance.local-primary-auth.mjs +131 -37
  83. package/browser/auth/required-providers.utils.mjs +16 -0
  84. package/browser/channel/channel-notification.service.mjs +20 -8
  85. package/browser/channel/channel-scope.helper.mjs +2 -2
  86. package/browser/channel/channel.instance.mjs +10 -1
  87. package/browser/channel/channel.utils.mjs +22 -1
  88. package/browser/channel/flows/send-channel-notification.flow.mjs +1 -1
  89. package/browser/channel/sources/app-event.source.mjs +5 -2
  90. package/browser/channel/sources/file-watcher.source.mjs +66 -0
  91. package/browser/common/decorators/duty.decorator.mjs +3 -4
  92. package/browser/common/decorators/event.decorator.mjs +49 -0
  93. package/browser/common/decorators/index.mjs +2 -0
  94. package/browser/common/decorators/worker.decorator.mjs +23 -0
  95. package/browser/common/entries/event.entry.mjs +59 -0
  96. package/browser/common/entries/index.mjs +1 -0
  97. package/browser/common/entries/tool.entry.mjs +21 -4
  98. package/browser/common/index.mjs +8 -8
  99. package/browser/common/interfaces/agent.interface.mjs +25 -4
  100. package/browser/common/interfaces/event.interface.mjs +17 -0
  101. package/browser/common/interfaces/execution-context.interface.mjs +8 -0
  102. package/browser/common/interfaces/index.mjs +2 -0
  103. package/browser/common/interfaces/tool.interface.mjs +31 -5
  104. package/browser/common/interfaces/worker.interface.mjs +0 -0
  105. package/browser/common/metadata/app.metadata.mjs +10 -2
  106. package/browser/common/metadata/duty.metadata.mjs +28 -13
  107. package/browser/common/metadata/duty.resolved.mjs +13 -0
  108. package/browser/common/metadata/event.metadata.mjs +137 -0
  109. package/browser/common/metadata/front-mcp.metadata.mjs +3 -0
  110. package/browser/common/metadata/index.mjs +6 -2
  111. package/browser/common/metadata/output-policy.mjs +4 -0
  112. package/browser/common/metadata/worker.metadata.mjs +44 -0
  113. package/browser/common/metadata/worker.resolved.mjs +13 -0
  114. package/browser/common/metadata/workflow.metadata.mjs +10 -2
  115. package/browser/common/records/event.record.mjs +9 -0
  116. package/browser/common/records/index.mjs +1 -0
  117. package/browser/common/schemas/annotated-class.schema.mjs +10 -0
  118. package/browser/common/schemas/index.mjs +1 -1
  119. package/browser/common/tokens/app.tokens.mjs +1 -0
  120. package/browser/common/tokens/event.tokens.mjs +11 -0
  121. package/browser/common/tokens/front-mcp.tokens.mjs +2 -0
  122. package/browser/common/tokens/index.mjs +1 -0
  123. package/browser/common/tokens/workflow.tokens.mjs +2 -0
  124. package/browser/common/types/options/transport/schema.mjs +3 -0
  125. package/browser/common/utils/auth-info.utils.mjs +1 -2
  126. package/browser/common/utils/index.mjs +1 -1
  127. package/browser/common/utils/offset-cursor.utils.mjs +23 -0
  128. package/browser/common/utils/principal.utils.mjs +25 -1
  129. package/browser/common/utils/time-zone.utils.mjs +12 -0
  130. package/browser/context/frontmcp-context-storage.mjs +14 -3
  131. package/browser/context/frontmcp-context.mjs +24 -2
  132. package/browser/direct/create.mjs +3 -1
  133. package/browser/direct/direct-client.mjs +16 -2
  134. package/browser/direct/direct-events-transport.mjs +47 -0
  135. package/browser/direct/direct-server.mjs +5 -1
  136. package/browser/duty/cron-schedule.mjs +62 -0
  137. package/browser/duty/describe-thrown.mjs +12 -0
  138. package/browser/duty/duty.lifecycle.mjs +102 -97
  139. package/browser/duty/duty.runner.mjs +117 -115
  140. package/browser/duty/lazy-lease-store.mjs +60 -0
  141. package/browser/duty/lease-holder.mjs +132 -0
  142. package/browser/duty/lease-store.mjs +125 -0
  143. package/browser/elicitation/helpers/checked-elicit-answer.mjs +18 -0
  144. package/browser/elicitation/helpers/elicit.helper.mjs +5 -21
  145. package/browser/elicitation/questions/question-subject.mjs +8 -2
  146. package/browser/elicitation/store/elicitation-encryption.mjs +6 -6
  147. package/browser/elicitation/store/encrypted-elicitation.store.mjs +2 -2
  148. package/browser/elicitation/store/storage-elicitation.store.mjs +1 -2
  149. package/browser/errors/auth-internal.errors.mjs +2 -0
  150. package/browser/errors/duty.errors.mjs +20 -0
  151. package/browser/errors/event.errors.mjs +128 -0
  152. package/browser/errors/index.mjs +42 -2
  153. package/browser/errors/mcp.error.mjs +22 -3
  154. package/browser/errors/misconfiguration.mjs +2 -0
  155. package/browser/errors/remote.errors.mjs +1 -1
  156. package/browser/errors/tool-ui.errors.mjs +22 -0
  157. package/browser/errors/worker.errors.mjs +14 -0
  158. package/browser/errors/workflow.errors.mjs +7 -1
  159. package/browser/esm-loader/esm-cache.mjs +2 -2
  160. package/browser/esm-loader/esm-entries.mjs +15 -1
  161. package/browser/esm-loader/esm-manifest.mjs +32 -25
  162. package/browser/esm-loader/esm-module-loader.mjs +22 -4
  163. package/browser/esm-loader/factories/esm-context-factories.mjs +3 -3
  164. package/browser/esm-loader/factories/esm-instance-factories.mjs +7 -3
  165. package/browser/esm-loader/factories/esm-record-builders.mjs +27 -2
  166. package/browser/esm-loader/semver.utils.mjs +3 -5
  167. package/browser/esm-loader/version-poller.mjs +1 -1
  168. package/browser/esm-loader/version-resolver.mjs +5 -1
  169. package/browser/event/delivery/event-metrics.mjs +37 -0
  170. package/browser/event/delivery/event-outbox.mjs +251 -0
  171. package/browser/event/event-channel.mjs +30 -0
  172. package/browser/event/event-dialect.mjs +23 -0
  173. package/browser/event/event-gates.mjs +72 -0
  174. package/browser/event/event-outbound.mjs +8 -0
  175. package/browser/event/event-publisher.mjs +55 -0
  176. package/browser/event/event-reauthorization.mjs +48 -0
  177. package/browser/event/event-scope.helper.mjs +266 -0
  178. package/browser/event/event-subscriber.mjs +31 -0
  179. package/browser/event/event.instance.mjs +44 -0
  180. package/browser/event/event.registry.mjs +145 -0
  181. package/browser/event/event.utils.mjs +31 -0
  182. package/browser/event/flows/event-deliver.flow.mjs +175 -0
  183. package/browser/event/flows/event-poll.flow.mjs +308 -0
  184. package/browser/event/flows/event-publish-http.flow.mjs +288 -0
  185. package/browser/event/flows/event-publish.flow.mjs +371 -0
  186. package/browser/event/flows/event-stream.flow.mjs +222 -0
  187. package/browser/event/flows/event-subscribe.flow.mjs +351 -0
  188. package/browser/event/flows/event-unsubscribe.flow.mjs +120 -0
  189. package/browser/event/flows/list-events.flow.mjs +145 -0
  190. package/browser/event/index.mjs +104 -0
  191. package/browser/event/poll/event-buffer.mjs +77 -0
  192. package/browser/event/poll/event-poll-leases.mjs +118 -0
  193. package/browser/event/publish-endpoint/event-publish-endpoint.mjs +75 -0
  194. package/browser/event/publish-endpoint/event-publish-idempotency.mjs +54 -0
  195. package/browser/event/replay/event-replays.mjs +298 -0
  196. package/browser/event/stream/event-stream.mjs +279 -0
  197. package/browser/event/stream/event-streams.mjs +122 -0
  198. package/browser/event/subscription/event-callback-verifier.mjs +165 -0
  199. package/browser/event/subscription/event-subscription-store.factory.mjs +59 -0
  200. package/browser/event/subscription/event-subscription-termination.mjs +34 -0
  201. package/browser/event/subscription/event-subscription.store.mjs +167 -0
  202. package/browser/event/subscription/event-subscriptions.mjs +126 -0
  203. package/browser/event-client/event-client.errors.mjs +50 -0
  204. package/browser/event-client/event-webhook-receiver.mjs +155 -0
  205. package/browser/event-client/events-client.mjs +471 -0
  206. package/browser/event-client/index.mjs +28 -0
  207. package/browser/ext-apps/ext-apps.handler.mjs +6 -1
  208. package/browser/flows/flow.http-path.mjs +5 -1
  209. package/browser/flows/flow.instance.mjs +42 -9
  210. package/browser/front-mcp/authorities-rules.check.mjs +15 -1
  211. package/browser/front-mcp/front-mcp.mjs +23 -8
  212. package/browser/front-mcp/session-secret.check.mjs +22 -0
  213. package/browser/http-route/http-route.table.mjs +23 -3
  214. package/browser/index.cjs +35274 -25258
  215. package/browser/index.mjs +43 -4
  216. package/browser/job/execution/job-execution.manager.mjs +58 -21
  217. package/browser/job/flows/execute-job.flow.mjs +5 -3
  218. package/browser/job/index.mjs +2 -2
  219. package/browser/job/job-attempt.mjs +15 -10
  220. package/browser/job/job-context-providers.mjs +2 -1
  221. package/browser/job/job-scope.helper.mjs +97 -4
  222. package/browser/job/job.registry.mjs +30 -0
  223. package/browser/job/store/memory-job-state.store.mjs +5 -0
  224. package/browser/job/store/redis-job-state.store.mjs +11 -0
  225. package/browser/job/store/storage-job-state.store.mjs +18 -2
  226. package/browser/job/tools/index.mjs +3 -1
  227. package/browser/job/tools/list-jobs.tool.mjs +7 -5
  228. package/browser/job/tools/update-job.tool.mjs +75 -0
  229. package/browser/logger/instances/instance.logger.mjs +31 -6
  230. package/browser/notification/notification.service.mjs +62 -11
  231. package/browser/prompt/flows/get-prompt.flow.mjs +3 -3
  232. package/browser/prompt/flows/prompts-list.flow.mjs +11 -4
  233. package/browser/provider/create-container.mjs +20 -9
  234. package/browser/provider/provider.lifecycle.mjs +4 -0
  235. package/browser/provider/provider.registry.mjs +56 -12
  236. package/browser/remote-mcp/factories/instance-factories.mjs +4 -4
  237. package/browser/remote-mcp/factories/record-builders.mjs +5 -0
  238. package/browser/remote-mcp/mcp-client.service.mjs +113 -68
  239. package/browser/remote-mcp/mcp-stateless-client.adapter.mjs +2 -2
  240. package/browser/remote-mcp/remote-entries.mjs +2 -1
  241. package/browser/remote-mcp/remote-oauth.mjs +102 -0
  242. package/browser/remote-mcp/remote-request-headers.mjs +42 -12
  243. package/browser/remote-mcp/resilience/circuit-breaker.mjs +3 -2
  244. package/browser/resource/flows/read-resource.flow.mjs +6 -4
  245. package/browser/resource/flows/resource-templates-list.flow.mjs +24 -9
  246. package/browser/resource/flows/resources-list.flow.mjs +11 -4
  247. package/browser/scope/event-publisher.providers.mjs +32 -0
  248. package/browser/scope/flows/http.request.flow.mjs +1 -1
  249. package/browser/scope/observability-scope.helper.mjs +6 -1
  250. package/browser/scope/scope.instance.mjs +312 -96
  251. package/browser/skill/errors/tool-not-allowed.error.mjs +2 -2
  252. package/browser/skill/flows/filter-skills.flow.mjs +1 -1
  253. package/browser/skill/flows/load-skill.flow.mjs +27 -15
  254. package/browser/skill/guards/tool-authorization.guard.mjs +1 -1
  255. package/browser/skill/hooks/skill-tool.hook.mjs +32 -24
  256. package/browser/skill/providers/external-skill.provider.mjs +4 -2
  257. package/browser/skill/session/skill-session-store.interface.mjs +10 -0
  258. package/browser/skill/session/skill-session.manager.mjs +8 -0
  259. package/browser/skill/skill-authorities.helper.mjs +9 -3
  260. package/browser/skill/skill-instructions.helper.mjs +12 -6
  261. package/browser/skill/skill-scope.helper.mjs +7 -2
  262. package/browser/skill/skill.registry.mjs +21 -2
  263. package/browser/subsystems.mjs +9 -2
  264. package/browser/surface/entry-authorized.mjs +15 -0
  265. package/browser/tool/flows/call-tool.flow.mjs +59 -13
  266. package/browser/tool/flows/tools-list.flow.mjs +14 -37
  267. package/browser/tool/tool.utils.mjs +46 -61
  268. package/browser/tool/ui/serving-mode-default.mjs +11 -2
  269. package/browser/tool/ui/template-detection.mjs +1 -1
  270. package/browser/tool/ui/ui-option-warnings.mjs +1 -28
  271. package/browser/tool/ui/ui-render.mjs +6 -0
  272. package/browser/tool/ui/ui-resource.handler.mjs +50 -6
  273. package/browser/tool/ui/ui-shared.mjs +61 -7
  274. package/browser/tool/ui/widget-routes.mjs +73 -0
  275. package/browser/tool/ui/widget-serving.mjs +112 -0
  276. package/browser/transport/adapters/transport.local.adapter.mjs +9 -2
  277. package/browser/transport/build-scoped-server-options.mjs +5 -1
  278. package/browser/transport/flows/handle.mcp-20260728.flow.mjs +77 -4
  279. package/browser/transport/flows/handle.stateless-http.flow.mjs +1 -2
  280. package/browser/transport/in-memory-server.mjs +3 -0
  281. package/browser/transport/mcp-20260728/client/index.mjs +1 -1
  282. package/browser/transport/mcp-20260728/client/mcp-stateless.client.mjs +2 -1
  283. package/browser/transport/mcp-20260728/discover.mjs +1 -0
  284. package/browser/transport/mcp-20260728/event-stream-response.mjs +44 -0
  285. package/browser/transport/mcp-20260728/index.mjs +3 -2
  286. package/browser/transport/mcp-20260728/protocol-20260728.constants.mjs +8 -1
  287. package/browser/transport/mcp-20260728/request-validation.mjs +9 -5
  288. package/browser/transport/mcp-handlers/events-list-request.handler.mjs +23 -0
  289. package/browser/transport/mcp-handlers/events-poll-request.handler.mjs +23 -0
  290. package/browser/transport/mcp-handlers/events-stream-request.handler.mjs +44 -0
  291. package/browser/transport/mcp-handlers/events-subscribe-request.handler.mjs +23 -0
  292. package/browser/transport/mcp-handlers/events-unsubscribe-request.handler.mjs +25 -0
  293. package/browser/transport/mcp-handlers/index.mjs +13 -0
  294. package/browser/transport/mcp-handlers/initialize-request.handler.mjs +3 -1
  295. package/browser/transport/stdio-revision-router.mjs +29 -2
  296. package/browser/transport/web-fetch-handler.mjs +5 -1
  297. package/browser/utils/abort.utils.mjs +7 -2
  298. package/browser/utils/content.utils.mjs +1 -1
  299. package/browser/worker/worker.lifecycle.mjs +199 -0
  300. package/browser/worker/worker.supervisor.mjs +111 -0
  301. package/browser/workflow/engine/workflow-step.executor.mjs +1 -1
  302. package/browser/workflow/engine/workflow.engine.mjs +13 -10
  303. package/browser/workflow/index.mjs +2 -2
  304. package/browser/workflow/tools/execute-workflow.tool.mjs +1 -1
  305. package/browser/workflow/tools/index.mjs +3 -1
  306. package/browser/workflow/tools/list-workflows.tool.mjs +4 -2
  307. package/browser/workflow/tools/register-workflow.tool.mjs +11 -2
  308. package/browser/workflow/tools/update-workflow.tool.mjs +80 -0
  309. package/browser/workflow/trigger/workflow-events.mjs +41 -0
  310. package/browser/workflow/trigger/workflow-schedules.mjs +173 -0
  311. package/browser/workflow/trigger/workflow-triggers.mjs +111 -0
  312. package/browser/workflow/trigger/workflow-webhook.routes.mjs +104 -0
  313. package/browser/workflow/trigger/workflow-webhook.signature.mjs +59 -0
  314. package/browser/workflow/workflow.registry.mjs +27 -0
  315. package/browser/workflow/workflow.utils.mjs +13 -2
  316. package/builtin/authorities/authorities.plugin.d.ts +1 -1
  317. package/builtin/authorities/authorities.plugin.d.ts.map +1 -1
  318. package/builtin/authorities/authorities.plugin.options.d.ts +1 -1
  319. package/builtin/authorities/authorities.plugin.options.d.ts.map +1 -1
  320. package/builtin/config/config-resolver.d.ts.map +1 -1
  321. package/channel/channel-notification.service.d.ts +5 -2
  322. package/channel/channel-notification.service.d.ts.map +1 -1
  323. package/channel/channel-scope.helper.d.ts +6 -1
  324. package/channel/channel-scope.helper.d.ts.map +1 -1
  325. package/channel/channel.instance.d.ts +7 -1
  326. package/channel/channel.instance.d.ts.map +1 -1
  327. package/channel/channel.types.d.ts +1 -1
  328. package/channel/channel.types.d.ts.map +1 -1
  329. package/channel/channel.utils.d.ts +20 -0
  330. package/channel/channel.utils.d.ts.map +1 -1
  331. package/channel/sources/agent-completion.source.d.ts +1 -1
  332. package/channel/sources/agent-completion.source.d.ts.map +1 -1
  333. package/channel/sources/app-event.source.d.ts +11 -2
  334. package/channel/sources/app-event.source.d.ts.map +1 -1
  335. package/channel/sources/file-watcher.source.d.ts +21 -0
  336. package/channel/sources/file-watcher.source.d.ts.map +1 -0
  337. package/channel/sources/index.d.ts +1 -0
  338. package/channel/sources/index.d.ts.map +1 -1
  339. package/common/decorators/app.decorator.d.ts +1 -1
  340. package/common/decorators/app.decorator.d.ts.map +1 -1
  341. package/common/decorators/duty.decorator.d.ts +3 -2
  342. package/common/decorators/duty.decorator.d.ts.map +1 -1
  343. package/common/decorators/event.decorator.d.ts +38 -0
  344. package/common/decorators/event.decorator.d.ts.map +1 -0
  345. package/common/decorators/index.d.ts +2 -0
  346. package/common/decorators/index.d.ts.map +1 -1
  347. package/common/decorators/worker.decorator.d.ts +13 -0
  348. package/common/decorators/worker.decorator.d.ts.map +1 -0
  349. package/common/entries/event.entry.d.ts +34 -0
  350. package/common/entries/event.entry.d.ts.map +1 -0
  351. package/common/entries/index.d.ts +1 -0
  352. package/common/entries/index.d.ts.map +1 -1
  353. package/common/entries/provider.entry.d.ts +2 -2
  354. package/common/entries/provider.entry.d.ts.map +1 -1
  355. package/common/entries/scope.entry.d.ts +28 -3
  356. package/common/entries/scope.entry.d.ts.map +1 -1
  357. package/common/entries/tool.entry.d.ts +5 -3
  358. package/common/entries/tool.entry.d.ts.map +1 -1
  359. package/common/interfaces/agent.interface.d.ts +4 -2
  360. package/common/interfaces/agent.interface.d.ts.map +1 -1
  361. package/common/interfaces/event.interface.d.ts +124 -0
  362. package/common/interfaces/event.interface.d.ts.map +1 -0
  363. package/common/interfaces/execution-context.interface.d.ts +3 -0
  364. package/common/interfaces/execution-context.interface.d.ts.map +1 -1
  365. package/common/interfaces/index.d.ts +2 -0
  366. package/common/interfaces/index.d.ts.map +1 -1
  367. package/common/interfaces/internal/registry.interface.d.ts +3 -1
  368. package/common/interfaces/internal/registry.interface.d.ts.map +1 -1
  369. package/common/interfaces/llm-adapter.interface.d.ts +5 -0
  370. package/common/interfaces/llm-adapter.interface.d.ts.map +1 -1
  371. package/common/interfaces/logger.interface.d.ts +2 -1
  372. package/common/interfaces/logger.interface.d.ts.map +1 -1
  373. package/common/interfaces/tool.interface.d.ts +12 -2
  374. package/common/interfaces/tool.interface.d.ts.map +1 -1
  375. package/common/interfaces/worker.interface.d.ts +13 -0
  376. package/common/interfaces/worker.interface.d.ts.map +1 -0
  377. package/common/metadata/agent.metadata.d.ts +8 -3
  378. package/common/metadata/agent.metadata.d.ts.map +1 -1
  379. package/common/metadata/app.metadata.d.ts +39 -12
  380. package/common/metadata/app.metadata.d.ts.map +1 -1
  381. package/common/metadata/channel.metadata.d.ts +40 -8
  382. package/common/metadata/channel.metadata.d.ts.map +1 -1
  383. package/common/metadata/duty.metadata.d.ts +67 -13
  384. package/common/metadata/duty.metadata.d.ts.map +1 -1
  385. package/common/metadata/duty.resolved.d.ts +4 -0
  386. package/common/metadata/duty.resolved.d.ts.map +1 -0
  387. package/common/metadata/event.metadata.d.ts +451 -0
  388. package/common/metadata/event.metadata.d.ts.map +1 -0
  389. package/common/metadata/flow.metadata.d.ts +14 -0
  390. package/common/metadata/flow.metadata.d.ts.map +1 -1
  391. package/common/metadata/front-mcp.metadata.d.ts +1654 -17
  392. package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
  393. package/common/metadata/index.d.ts +4 -0
  394. package/common/metadata/index.d.ts.map +1 -1
  395. package/common/metadata/job.metadata.d.ts +12 -1
  396. package/common/metadata/job.metadata.d.ts.map +1 -1
  397. package/common/metadata/output-policy.d.ts +2 -0
  398. package/common/metadata/output-policy.d.ts.map +1 -1
  399. package/common/metadata/prompt.metadata.d.ts +1 -1
  400. package/common/metadata/remote-primitive.metadata.d.ts +6 -3
  401. package/common/metadata/remote-primitive.metadata.d.ts.map +1 -1
  402. package/common/metadata/resource.metadata.d.ts +3 -3
  403. package/common/metadata/skill.metadata.d.ts +1 -1
  404. package/common/metadata/tool.metadata.d.ts +1 -1
  405. package/common/metadata/worker.metadata.d.ts +69 -0
  406. package/common/metadata/worker.metadata.d.ts.map +1 -0
  407. package/common/metadata/worker.resolved.d.ts +4 -0
  408. package/common/metadata/worker.resolved.d.ts.map +1 -0
  409. package/common/metadata/workflow.metadata.d.ts +80 -16
  410. package/common/metadata/workflow.metadata.d.ts.map +1 -1
  411. package/common/records/event.record.d.ts +21 -0
  412. package/common/records/event.record.d.ts.map +1 -0
  413. package/common/records/index.d.ts +1 -0
  414. package/common/records/index.d.ts.map +1 -1
  415. package/common/schemas/annotated-class.schema.d.ts +1 -0
  416. package/common/schemas/annotated-class.schema.d.ts.map +1 -1
  417. package/common/tokens/app.tokens.d.ts.map +1 -1
  418. package/common/tokens/event.tokens.d.ts +9 -0
  419. package/common/tokens/event.tokens.d.ts.map +1 -0
  420. package/common/tokens/front-mcp.tokens.d.ts.map +1 -1
  421. package/common/tokens/index.d.ts +1 -0
  422. package/common/tokens/index.d.ts.map +1 -1
  423. package/common/tokens/workflow.tokens.d.ts +2 -0
  424. package/common/tokens/workflow.tokens.d.ts.map +1 -1
  425. package/common/types/options/logging/interfaces.d.ts +3 -1
  426. package/common/types/options/logging/interfaces.d.ts.map +1 -1
  427. package/common/types/options/observability/interfaces.d.ts +4 -2
  428. package/common/types/options/observability/interfaces.d.ts.map +1 -1
  429. package/common/types/options/transport/interfaces.d.ts +3 -0
  430. package/common/types/options/transport/interfaces.d.ts.map +1 -1
  431. package/common/types/options/transport/schema.d.ts.map +1 -1
  432. package/common/utils/auth-info.utils.d.ts +1 -0
  433. package/common/utils/auth-info.utils.d.ts.map +1 -1
  434. package/common/utils/global-config.utils.d.ts.map +1 -1
  435. package/common/utils/offset-cursor.utils.d.ts +5 -0
  436. package/common/utils/offset-cursor.utils.d.ts.map +1 -0
  437. package/common/utils/principal.utils.d.ts +26 -0
  438. package/common/utils/principal.utils.d.ts.map +1 -1
  439. package/common/utils/time-zone.utils.d.ts +3 -0
  440. package/common/utils/time-zone.utils.d.ts.map +1 -0
  441. package/context/frontmcp-context-storage.d.ts +3 -1
  442. package/context/frontmcp-context-storage.d.ts.map +1 -1
  443. package/context/frontmcp-context.d.ts +9 -1
  444. package/context/frontmcp-context.d.ts.map +1 -1
  445. package/direct/client.types.d.ts +8 -0
  446. package/direct/client.types.d.ts.map +1 -1
  447. package/direct/create.d.ts.map +1 -1
  448. package/direct/create.types.d.ts +3 -1
  449. package/direct/create.types.d.ts.map +1 -1
  450. package/direct/direct-events-transport.d.ts +20 -0
  451. package/direct/direct-events-transport.d.ts.map +1 -0
  452. package/direct/direct-server.d.ts +3 -0
  453. package/direct/direct-server.d.ts.map +1 -1
  454. package/direct/direct.types.d.ts +6 -0
  455. package/direct/direct.types.d.ts.map +1 -1
  456. package/duty/cron-schedule.d.ts +51 -0
  457. package/duty/cron-schedule.d.ts.map +1 -0
  458. package/duty/describe-thrown.d.ts +3 -0
  459. package/duty/describe-thrown.d.ts.map +1 -0
  460. package/duty/duty.lifecycle.d.ts +33 -4
  461. package/duty/duty.lifecycle.d.ts.map +1 -1
  462. package/duty/duty.runner.d.ts +49 -31
  463. package/duty/duty.runner.d.ts.map +1 -1
  464. package/duty/lazy-lease-store.d.ts +29 -0
  465. package/duty/lazy-lease-store.d.ts.map +1 -0
  466. package/duty/lease-holder.d.ts +73 -0
  467. package/duty/lease-holder.d.ts.map +1 -0
  468. package/duty/lease-store.d.ts +40 -0
  469. package/duty/lease-store.d.ts.map +1 -0
  470. package/elicitation/helpers/checked-elicit-answer.d.ts +10 -0
  471. package/elicitation/helpers/checked-elicit-answer.d.ts.map +1 -0
  472. package/elicitation/helpers/elicit.helper.d.ts.map +1 -1
  473. package/elicitation/hooks/elicitation.hooks.d.ts +5 -5
  474. package/elicitation/questions/question-subject.d.ts +8 -3
  475. package/elicitation/questions/question-subject.d.ts.map +1 -1
  476. package/elicitation/store/elicitation-encryption.d.ts.map +1 -1
  477. package/elicitation/store/encrypted-elicitation.store.d.ts +2 -2
  478. package/elicitation/store/encrypted-elicitation.store.d.ts.map +1 -1
  479. package/elicitation/store/storage-elicitation.store.d.ts +3 -3
  480. package/elicitation/store/storage-elicitation.store.d.ts.map +1 -1
  481. package/errors/auth-internal.errors.d.ts +1 -1
  482. package/errors/auth-internal.errors.d.ts.map +1 -1
  483. package/errors/duty.errors.d.ts +10 -0
  484. package/errors/duty.errors.d.ts.map +1 -1
  485. package/errors/error-handler.d.ts.map +1 -1
  486. package/errors/event.errors.d.ts +73 -0
  487. package/errors/event.errors.d.ts.map +1 -0
  488. package/errors/index.d.ts +7 -3
  489. package/errors/index.d.ts.map +1 -1
  490. package/errors/mcp.error.d.ts +6 -1
  491. package/errors/mcp.error.d.ts.map +1 -1
  492. package/errors/misconfiguration.d.ts.map +1 -1
  493. package/errors/remote.errors.d.ts +1 -1
  494. package/errors/remote.errors.d.ts.map +1 -1
  495. package/errors/tool-ui.errors.d.ts +13 -0
  496. package/errors/tool-ui.errors.d.ts.map +1 -0
  497. package/errors/worker.errors.d.ts +7 -0
  498. package/errors/worker.errors.d.ts.map +1 -0
  499. package/errors/workflow.errors.d.ts +4 -0
  500. package/errors/workflow.errors.d.ts.map +1 -1
  501. package/esm/index.mjs +52 -47
  502. package/esm/job/tools/index.mjs +3 -2
  503. package/esm/workflow/tools/index.mjs +3 -2
  504. package/esm-loader/app-helpers.d.ts +4 -4
  505. package/esm-loader/app-helpers.d.ts.map +1 -1
  506. package/esm-loader/esm-entries.d.ts +11 -1
  507. package/esm-loader/esm-entries.d.ts.map +1 -1
  508. package/esm-loader/esm-manifest.d.ts +11 -8
  509. package/esm-loader/esm-manifest.d.ts.map +1 -1
  510. package/esm-loader/esm-module-loader.d.ts +6 -1
  511. package/esm-loader/esm-module-loader.d.ts.map +1 -1
  512. package/esm-loader/factories/esm-context-factories.d.ts +6 -3
  513. package/esm-loader/factories/esm-context-factories.d.ts.map +1 -1
  514. package/esm-loader/factories/esm-instance-factories.d.ts +3 -3
  515. package/esm-loader/factories/esm-instance-factories.d.ts.map +1 -1
  516. package/esm-loader/factories/esm-record-builders.d.ts.map +1 -1
  517. package/esm-loader/semver.utils.d.ts +8 -0
  518. package/esm-loader/semver.utils.d.ts.map +1 -1
  519. package/esm-loader/version-resolver.d.ts.map +1 -1
  520. package/event/delivery/event-metrics.d.ts +25 -0
  521. package/event/delivery/event-metrics.d.ts.map +1 -0
  522. package/event/delivery/event-outbox.d.ts +129 -0
  523. package/event/delivery/event-outbox.d.ts.map +1 -0
  524. package/event/event-channel.d.ts +21 -0
  525. package/event/event-channel.d.ts.map +1 -0
  526. package/event/event-dialect.d.ts +20 -0
  527. package/event/event-dialect.d.ts.map +1 -0
  528. package/event/event-gates.d.ts +23 -0
  529. package/event/event-gates.d.ts.map +1 -0
  530. package/event/event-outbound.d.ts +9 -0
  531. package/event/event-outbound.d.ts.map +1 -0
  532. package/event/event-publisher.d.ts +14 -0
  533. package/event/event-publisher.d.ts.map +1 -0
  534. package/event/event-reauthorization.d.ts +35 -0
  535. package/event/event-reauthorization.d.ts.map +1 -0
  536. package/event/event-scope.helper.d.ts +23 -0
  537. package/event/event-scope.helper.d.ts.map +1 -0
  538. package/event/event-subscriber.d.ts +12 -0
  539. package/event/event-subscriber.d.ts.map +1 -0
  540. package/event/event.instance.d.ts +15 -0
  541. package/event/event.instance.d.ts.map +1 -0
  542. package/event/event.registry.d.ts +97 -0
  543. package/event/event.registry.d.ts.map +1 -0
  544. package/event/event.utils.d.ts +6 -0
  545. package/event/event.utils.d.ts.map +1 -0
  546. package/event/flows/event-deliver.flow.d.ts +73 -0
  547. package/event/flows/event-deliver.flow.d.ts.map +1 -0
  548. package/event/flows/event-poll.flow.d.ts +105 -0
  549. package/event/flows/event-poll.flow.d.ts.map +1 -0
  550. package/event/flows/event-publish-http.flow.d.ts +114 -0
  551. package/event/flows/event-publish-http.flow.d.ts.map +1 -0
  552. package/event/flows/event-publish.flow.d.ts +109 -0
  553. package/event/flows/event-publish.flow.d.ts.map +1 -0
  554. package/event/flows/event-stream.flow.d.ts +78 -0
  555. package/event/flows/event-stream.flow.d.ts.map +1 -0
  556. package/event/flows/event-subscribe.flow.d.ts +132 -0
  557. package/event/flows/event-subscribe.flow.d.ts.map +1 -0
  558. package/event/flows/event-unsubscribe.flow.d.ts +71 -0
  559. package/event/flows/event-unsubscribe.flow.d.ts.map +1 -0
  560. package/event/flows/list-events.flow.d.ts +75 -0
  561. package/event/flows/list-events.flow.d.ts.map +1 -0
  562. package/event/index.d.ts +46 -0
  563. package/event/index.d.ts.map +1 -0
  564. package/event/poll/event-buffer.d.ts +54 -0
  565. package/event/poll/event-buffer.d.ts.map +1 -0
  566. package/event/poll/event-poll-leases.d.ts +63 -0
  567. package/event/poll/event-poll-leases.d.ts.map +1 -0
  568. package/event/publish-endpoint/event-publish-endpoint.d.ts +29 -0
  569. package/event/publish-endpoint/event-publish-endpoint.d.ts.map +1 -0
  570. package/event/publish-endpoint/event-publish-idempotency.d.ts +35 -0
  571. package/event/publish-endpoint/event-publish-idempotency.d.ts.map +1 -0
  572. package/event/replay/event-replays.d.ts +116 -0
  573. package/event/replay/event-replays.d.ts.map +1 -0
  574. package/event/stream/event-stream.d.ts +116 -0
  575. package/event/stream/event-stream.d.ts.map +1 -0
  576. package/event/stream/event-streams.d.ts +52 -0
  577. package/event/stream/event-streams.d.ts.map +1 -0
  578. package/event/subscription/event-callback-verifier.d.ts +58 -0
  579. package/event/subscription/event-callback-verifier.d.ts.map +1 -0
  580. package/event/subscription/event-subscription-store.factory.d.ts +31 -0
  581. package/event/subscription/event-subscription-store.factory.d.ts.map +1 -0
  582. package/event/subscription/event-subscription-termination.d.ts +25 -0
  583. package/event/subscription/event-subscription-termination.d.ts.map +1 -0
  584. package/event/subscription/event-subscription.store.d.ts +131 -0
  585. package/event/subscription/event-subscription.store.d.ts.map +1 -0
  586. package/event/subscription/event-subscriptions.d.ts +66 -0
  587. package/event/subscription/event-subscriptions.d.ts.map +1 -0
  588. package/event-client/event-client.errors.d.ts +35 -0
  589. package/event-client/event-client.errors.d.ts.map +1 -0
  590. package/event-client/event-webhook-receiver.d.ts +75 -0
  591. package/event-client/event-webhook-receiver.d.ts.map +1 -0
  592. package/event-client/events-client.d.ts +33 -0
  593. package/event-client/events-client.d.ts.map +1 -0
  594. package/event-client/events-client.types.d.ts +74 -0
  595. package/event-client/events-client.types.d.ts.map +1 -0
  596. package/event-client/index.d.ts +6 -0
  597. package/event-client/index.d.ts.map +1 -0
  598. package/ext-apps/ext-apps.handler.d.ts +2 -1
  599. package/ext-apps/ext-apps.handler.d.ts.map +1 -1
  600. package/flows/flow.http-path.d.ts +8 -0
  601. package/flows/flow.http-path.d.ts.map +1 -1
  602. package/flows/flow.instance.d.ts +9 -0
  603. package/flows/flow.instance.d.ts.map +1 -1
  604. package/front-mcp/authorities-rules.check.d.ts +5 -0
  605. package/front-mcp/authorities-rules.check.d.ts.map +1 -1
  606. package/front-mcp/front-mcp.d.ts +2 -0
  607. package/front-mcp/front-mcp.d.ts.map +1 -1
  608. package/front-mcp/session-secret.check.d.ts +19 -0
  609. package/front-mcp/session-secret.check.d.ts.map +1 -0
  610. package/http-route/http-route.table.d.ts.map +1 -1
  611. package/index.d.ts +74 -4
  612. package/index.d.ts.map +1 -1
  613. package/index.js +59 -54
  614. package/job/execution/job-execution.manager.d.ts +16 -4
  615. package/job/execution/job-execution.manager.d.ts.map +1 -1
  616. package/job/flows/execute-job.flow.d.ts +1 -0
  617. package/job/flows/execute-job.flow.d.ts.map +1 -1
  618. package/job/job-attempt.d.ts +7 -2
  619. package/job/job-attempt.d.ts.map +1 -1
  620. package/job/job-context-providers.d.ts +2 -2
  621. package/job/job-context-providers.d.ts.map +1 -1
  622. package/job/job-scope.helper.d.ts +26 -0
  623. package/job/job-scope.helper.d.ts.map +1 -1
  624. package/job/job.registry.d.ts +11 -0
  625. package/job/job.registry.d.ts.map +1 -1
  626. package/job/store/job-state.interface.d.ts +2 -0
  627. package/job/store/job-state.interface.d.ts.map +1 -1
  628. package/job/store/memory-job-state.store.d.ts +1 -0
  629. package/job/store/memory-job-state.store.d.ts.map +1 -1
  630. package/job/store/redis-job-state.store.d.ts +3 -0
  631. package/job/store/redis-job-state.store.d.ts.map +1 -1
  632. package/job/store/storage-job-state.store.d.ts +1 -0
  633. package/job/store/storage-job-state.store.d.ts.map +1 -1
  634. package/job/tools/index.d.ts +1 -0
  635. package/job/tools/index.d.ts.map +1 -1
  636. package/job/tools/index.js +4 -2
  637. package/job/tools/list-jobs.tool.d.ts +3 -3
  638. package/job/tools/list-jobs.tool.d.ts.map +1 -1
  639. package/job/tools/update-job.tool.d.ts +16 -0
  640. package/job/tools/update-job.tool.d.ts.map +1 -0
  641. package/logger/instances/instance.logger.d.ts +1 -0
  642. package/logger/instances/instance.logger.d.ts.map +1 -1
  643. package/notification/index.d.ts +1 -1
  644. package/notification/index.d.ts.map +1 -1
  645. package/notification/notification.service.d.ts +40 -4
  646. package/notification/notification.service.d.ts.map +1 -1
  647. package/package.json +11 -10
  648. package/prompt/flows/prompts-list.flow.d.ts.map +1 -1
  649. package/provider/create-container.d.ts +14 -4
  650. package/provider/create-container.d.ts.map +1 -1
  651. package/provider/provider.lifecycle.d.ts +11 -1
  652. package/provider/provider.lifecycle.d.ts.map +1 -1
  653. package/provider/provider.registry.d.ts +18 -4
  654. package/provider/provider.registry.d.ts.map +1 -1
  655. package/remote-mcp/factories/instance-factories.d.ts +4 -4
  656. package/remote-mcp/factories/instance-factories.d.ts.map +1 -1
  657. package/remote-mcp/factories/record-builders.d.ts.map +1 -1
  658. package/remote-mcp/mcp-client.service.d.ts +11 -0
  659. package/remote-mcp/mcp-client.service.d.ts.map +1 -1
  660. package/remote-mcp/mcp-client.types.d.ts +15 -2
  661. package/remote-mcp/mcp-client.types.d.ts.map +1 -1
  662. package/remote-mcp/mcp-stateless-client.adapter.d.ts +1 -1
  663. package/remote-mcp/mcp-stateless-client.adapter.d.ts.map +1 -1
  664. package/remote-mcp/remote-entries.d.ts +2 -1
  665. package/remote-mcp/remote-entries.d.ts.map +1 -1
  666. package/remote-mcp/remote-oauth.d.ts +27 -0
  667. package/remote-mcp/remote-oauth.d.ts.map +1 -0
  668. package/remote-mcp/remote-request-headers.d.ts +8 -2
  669. package/remote-mcp/remote-request-headers.d.ts.map +1 -1
  670. package/remote-mcp/resilience/circuit-breaker.d.ts +3 -2
  671. package/remote-mcp/resilience/circuit-breaker.d.ts.map +1 -1
  672. package/resource/flows/read-resource.flow.d.ts.map +1 -1
  673. package/resource/flows/resource-templates-list.flow.d.ts.map +1 -1
  674. package/resource/flows/resources-list.flow.d.ts.map +1 -1
  675. package/scope/event-publisher.providers.d.ts +17 -0
  676. package/scope/event-publisher.providers.d.ts.map +1 -0
  677. package/scope/observability-scope.helper.d.ts.map +1 -1
  678. package/scope/scope.instance.d.ts +41 -2
  679. package/scope/scope.instance.d.ts.map +1 -1
  680. package/shared/shared-attach.d.ts +3 -1
  681. package/shared/shared-attach.d.ts.map +1 -1
  682. package/shared/shared-server.lifecycle.d.ts +14 -5
  683. package/shared/shared-server.lifecycle.d.ts.map +1 -1
  684. package/skill/errors/tool-not-allowed.error.d.ts.map +1 -1
  685. package/skill/flows/load-skill.flow.d.ts.map +1 -1
  686. package/skill/guards/tool-authorization.guard.d.ts +1 -1
  687. package/skill/guards/tool-authorization.guard.d.ts.map +1 -1
  688. package/skill/hooks/skill-tool.hook.d.ts +2 -0
  689. package/skill/hooks/skill-tool.hook.d.ts.map +1 -1
  690. package/skill/providers/external-skill.provider.d.ts +2 -2
  691. package/skill/providers/external-skill.provider.d.ts.map +1 -1
  692. package/skill/session/skill-session-store.interface.d.ts +5 -0
  693. package/skill/session/skill-session-store.interface.d.ts.map +1 -1
  694. package/skill/session/skill-session.manager.d.ts +4 -0
  695. package/skill/session/skill-session.manager.d.ts.map +1 -1
  696. package/skill/session/skill-session.types.d.ts +1 -1
  697. package/skill/skill-authorities.helper.d.ts +6 -3
  698. package/skill/skill-authorities.helper.d.ts.map +1 -1
  699. package/skill/skill-instructions.helper.d.ts +10 -4
  700. package/skill/skill-instructions.helper.d.ts.map +1 -1
  701. package/skill/skill-scope.helper.d.ts +5 -0
  702. package/skill/skill-scope.helper.d.ts.map +1 -1
  703. package/skill/skill.registry.d.ts +7 -0
  704. package/skill/skill.registry.d.ts.map +1 -1
  705. package/subsystems.d.ts +3 -2
  706. package/subsystems.d.ts.map +1 -1
  707. package/surface/entry-authorized.d.ts +5 -0
  708. package/surface/entry-authorized.d.ts.map +1 -0
  709. package/tool/flows/call-tool.flow.d.ts +6 -0
  710. package/tool/flows/call-tool.flow.d.ts.map +1 -1
  711. package/tool/flows/tools-list.flow.d.ts +1 -12
  712. package/tool/flows/tools-list.flow.d.ts.map +1 -1
  713. package/tool/tool.utils.d.ts.map +1 -1
  714. package/tool/ui/serving-mode-default.d.ts +6 -2
  715. package/tool/ui/serving-mode-default.d.ts.map +1 -1
  716. package/tool/ui/ui-option-warnings.d.ts.map +1 -1
  717. package/tool/ui/ui-render.d.ts +2 -2
  718. package/tool/ui/ui-render.d.ts.map +1 -1
  719. package/tool/ui/ui-resource.handler.d.ts +10 -2
  720. package/tool/ui/ui-resource.handler.d.ts.map +1 -1
  721. package/tool/ui/ui-shared.d.ts +31 -5
  722. package/tool/ui/ui-shared.d.ts.map +1 -1
  723. package/tool/ui/widget-routes.d.ts +38 -0
  724. package/tool/ui/widget-routes.d.ts.map +1 -0
  725. package/tool/ui/widget-serving.d.ts +37 -0
  726. package/tool/ui/widget-serving.d.ts.map +1 -0
  727. package/transport/adapters/transport.local.adapter.d.ts.map +1 -1
  728. package/transport/build-scoped-server-options.d.ts.map +1 -1
  729. package/transport/flows/handle.mcp-20260728.flow.d.ts +8 -2
  730. package/transport/flows/handle.mcp-20260728.flow.d.ts.map +1 -1
  731. package/transport/in-memory-server.d.ts.map +1 -1
  732. package/transport/mcp-20260728/client/mcp-stateless.client.d.ts +2 -0
  733. package/transport/mcp-20260728/client/mcp-stateless.client.d.ts.map +1 -1
  734. package/transport/mcp-20260728/discover.d.ts.map +1 -1
  735. package/transport/mcp-20260728/event-stream-response.d.ts +12 -0
  736. package/transport/mcp-20260728/event-stream-response.d.ts.map +1 -0
  737. package/transport/mcp-20260728/index.d.ts +1 -0
  738. package/transport/mcp-20260728/index.d.ts.map +1 -1
  739. package/transport/mcp-20260728/protocol-20260728.constants.d.ts.map +1 -1
  740. package/transport/mcp-20260728/request-validation.d.ts +2 -0
  741. package/transport/mcp-20260728/request-validation.d.ts.map +1 -1
  742. package/transport/mcp-handlers/events-list-request.handler.d.ts +5 -0
  743. package/transport/mcp-handlers/events-list-request.handler.d.ts.map +1 -0
  744. package/transport/mcp-handlers/events-poll-request.handler.d.ts +5 -0
  745. package/transport/mcp-handlers/events-poll-request.handler.d.ts.map +1 -0
  746. package/transport/mcp-handlers/events-stream-request.handler.d.ts +8 -0
  747. package/transport/mcp-handlers/events-stream-request.handler.d.ts.map +1 -0
  748. package/transport/mcp-handlers/events-subscribe-request.handler.d.ts +5 -0
  749. package/transport/mcp-handlers/events-subscribe-request.handler.d.ts.map +1 -0
  750. package/transport/mcp-handlers/events-unsubscribe-request.handler.d.ts +5 -0
  751. package/transport/mcp-handlers/events-unsubscribe-request.handler.d.ts.map +1 -0
  752. package/transport/mcp-handlers/index.d.ts +162 -3
  753. package/transport/mcp-handlers/index.d.ts.map +1 -1
  754. package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -1
  755. package/transport/stdio-revision-router.d.ts +2 -0
  756. package/transport/stdio-revision-router.d.ts.map +1 -1
  757. package/transport/web-fetch-handler.d.ts.map +1 -1
  758. package/utils/abort.utils.d.ts +5 -0
  759. package/utils/abort.utils.d.ts.map +1 -1
  760. package/worker/worker.lifecycle.d.ts +63 -0
  761. package/worker/worker.lifecycle.d.ts.map +1 -0
  762. package/worker/worker.supervisor.d.ts +62 -0
  763. package/worker/worker.supervisor.d.ts.map +1 -0
  764. package/workflow/engine/workflow.engine.d.ts +8 -1
  765. package/workflow/engine/workflow.engine.d.ts.map +1 -1
  766. package/workflow/tools/execute-workflow.tool.d.ts.map +1 -1
  767. package/workflow/tools/index.d.ts +1 -0
  768. package/workflow/tools/index.d.ts.map +1 -1
  769. package/workflow/tools/index.js +4 -2
  770. package/workflow/tools/list-workflows.tool.d.ts.map +1 -1
  771. package/workflow/tools/register-workflow.tool.d.ts +2 -1
  772. package/workflow/tools/register-workflow.tool.d.ts.map +1 -1
  773. package/workflow/tools/update-workflow.tool.d.ts +21 -0
  774. package/workflow/tools/update-workflow.tool.d.ts.map +1 -0
  775. package/workflow/trigger/workflow-events.d.ts +22 -0
  776. package/workflow/trigger/workflow-events.d.ts.map +1 -0
  777. package/workflow/trigger/workflow-schedules.d.ts +76 -0
  778. package/workflow/trigger/workflow-schedules.d.ts.map +1 -0
  779. package/workflow/trigger/workflow-triggers.d.ts +49 -0
  780. package/workflow/trigger/workflow-triggers.d.ts.map +1 -0
  781. package/workflow/trigger/workflow-webhook.routes.d.ts +16 -0
  782. package/workflow/trigger/workflow-webhook.routes.d.ts.map +1 -0
  783. package/workflow/trigger/workflow-webhook.signature.d.ts +41 -0
  784. package/workflow/trigger/workflow-webhook.signature.d.ts.map +1 -0
  785. package/workflow/workflow.registry.d.ts +11 -0
  786. package/workflow/workflow.registry.d.ts.map +1 -1
  787. package/workflow/workflow.utils.d.ts +7 -0
  788. package/workflow/workflow.utils.d.ts.map +1 -1
@@ -0,0 +1,51 @@
1
+ import { type NamespacedStorage } from '@frontmcp/utils';
2
+ import { type DutyCron } from '../common/metadata/duty.metadata';
3
+ /** What a schedule asks of croner's `Cron`. */
4
+ interface CronTimes {
5
+ nextRun(after: Date): Date | null;
6
+ }
7
+ /** The store operations that record which scheduled times were taken; each store runs them atomically. */
8
+ export type CronLedgerStorage = Pick<NamespacedStorage, 'get' | 'set' | 'setIfEquals'>;
9
+ /** The times of a cron expression in its time zone, as epoch milliseconds. */
10
+ export declare class CronSchedule {
11
+ readonly expression: string;
12
+ readonly timezone: string;
13
+ private readonly cron;
14
+ /** Takes the expression, its time zone and the croner `Cron` read from them. */
15
+ constructor(expression: string, timezone: string, cron: CronTimes);
16
+ /** The first scheduled time after `afterMs`; `Infinity` once the calendar has none left (past the year 9999). */
17
+ nextAfter(afterMs: number): number;
18
+ }
19
+ /**
20
+ * Read a cron expression of 5 fields, or 6 with seconds first. croner loads here, so only once a duty or a workflow
21
+ * declares a cron.
22
+ *
23
+ * @throws Error whose message is the reason the expression or its time zone can't be read
24
+ */
25
+ export declare function loadCronSchedule({ expression, timezone }: DutyCron): Promise<CronSchedule>;
26
+ /**
27
+ * A run taken from a schedule's ledger. `scheduledAt` names it: a process that takes it again (after the one that took
28
+ * it died before starting its run) gets the same `scheduledAt`.
29
+ */
30
+ export interface CronClaim {
31
+ /** The first scheduled time the run is for. */
32
+ scheduledAt: number;
33
+ /** When the schedule was taken for it, which the ledger records once the claim is settled. */
34
+ takenAt: number;
35
+ /** What the ledger holds for the claim, which `settleCronClaim()` replaces. */
36
+ recorded: string;
37
+ }
38
+ /**
39
+ * Take the scheduled times that passed since the last take, as one run. The store keeps the time of the last take
40
+ * under `key` and replaces it only while it still holds what this process read, so the processes that share the store
41
+ * take each scheduled time once. The first take ever only records when the schedule was first seen.
42
+ *
43
+ * With `owedUntilSettled`, the ledger keeps the scheduled time the run is for until `settleCronClaim()`: a process that
44
+ * finds it there (the one that took it died before starting the run) takes that same run again, and the times missed
45
+ * meanwhile come due at its next check.
46
+ */
47
+ export declare function claimDueRun(schedule: CronSchedule, storage: CronLedgerStorage, key: string, owedUntilSettled?: boolean): Promise<CronClaim | undefined>;
48
+ /** Record that the claimed run started, unless another process took the claim over meanwhile. */
49
+ export declare function settleCronClaim(storage: CronLedgerStorage, key: string, claim: CronClaim): Promise<void>;
50
+ export {};
51
+ //# sourceMappingURL=cron-schedule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cron-schedule.d.ts","sourceRoot":"","sources":["../../src/duty/cron-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAGjE,+CAA+C;AAC/C,UAAU,SAAS;IACjB,OAAO,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACnC;AAED,0GAA0G;AAC1G,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,EAAE,KAAK,GAAG,KAAK,GAAG,aAAa,CAAC,CAAC;AAEvF,8EAA8E;AAC9E,qBAAa,YAAY;IAGrB,QAAQ,CAAC,UAAU,EAAE,MAAM;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM;IACzB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJvB,gFAAgF;gBAErE,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EACR,IAAI,EAAE,SAAS;IAGlC,iHAAiH;IACjH,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;CAGnC;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,CAOhG;AAYD;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,+CAA+C;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,8FAA8F;IAC9F,OAAO,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,CAAC;CAClB;AAkBD;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,MAAM,EACX,gBAAgB,UAAQ,GACvB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAchC;AAED,iGAAiG;AACjG,wBAAsB,eAAe,CAAC,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAE9G"}
@@ -0,0 +1,3 @@
1
+ /** The message of a thrown value: an Error's own, else its string form, or its type tag when it has none. */
2
+ export declare function describeThrown(thrown: unknown): string;
3
+ //# sourceMappingURL=describe-thrown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"describe-thrown.d.ts","sourceRoot":"","sources":["../../src/duty/describe-thrown.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAOtD"}
@@ -1,23 +1,52 @@
1
1
  import { type StorageConfig } from '@frontmcp/utils';
2
- import { type DutyInterface, type OnBootstrap, type OnReady, type OnShutdown, type ResolvedDutyMetadata } from '../common';
2
+ import { type DutyInterface, type DutyScope, type HealthProbeResult, type OnBootstrap, type OnReady, type OnShutdown, type ResolvedDutyMetadata } from '../common';
3
+ import type { BackgroundLifecycle } from '../provider/provider.lifecycle';
3
4
  import type ProviderRegistry from '../provider/provider.registry';
4
5
  type DutyInstance = DutyInterface & Partial<OnBootstrap & OnReady & OnShutdown>;
5
6
  /** The lifecycle the provider registry runs for a `@Duty` instance: its own hooks, plus starting and stopping it. */
6
7
  export declare function dutyLifecycleOf(duty: object, metadata: ResolvedDutyMetadata, providers: ProviderRegistry): DutyLifecycle;
7
8
  /** Start the duties built in `providers` as a server does once it serves: each one's own `onReady()`, then its runs. */
8
9
  export declare function startDuties(providers: ProviderRegistry): Promise<void>;
9
- /** Where the leases live: the server's Redis when it has one, otherwise a SQLite file every process on the machine opens. */
10
- export declare function dutyStorageConfig(redis: unknown): StorageConfig;
11
- export declare class DutyLifecycle implements OnBootstrap, OnReady, OnShutdown {
10
+ /** Where the leases of duties live (see `leaseStorageConfig`). */
11
+ export declare function dutyStorageConfig(redis: unknown, scope?: DutyScope): StorageConfig;
12
+ /** What `/readyz` shows for a duty: whether this process holds its lease, unhealthy while its store cannot be opened. */
13
+ export declare function dutyHealth(holdsLease: boolean, leaseStoreFailure?: string): HealthProbeResult;
14
+ export declare class DutyLifecycle implements OnBootstrap, OnReady, OnShutdown, BackgroundLifecycle {
12
15
  private readonly duty;
13
16
  private readonly metadata;
14
17
  private readonly providers;
15
18
  private started?;
19
+ /** Whether `stopBackground()` stopped the runs, so `resumeBackground()` starts them again. */
20
+ private resumable;
21
+ /** Whether `onShutdown()` was called, after which `resumeBackground()` starts nothing. */
22
+ private shutDown;
23
+ /** The last stop or start again, which the next one waits for. */
24
+ private lastTurn;
16
25
  private claimedKey?;
26
+ private cron?;
17
27
  constructor(duty: DutyInstance, metadata: ResolvedDutyMetadata, providers: ProviderRegistry);
18
28
  onBootstrap(): Promise<void>;
19
29
  onReady(): Promise<void>;
30
+ /** Stop the runs and release the lease and claim, without the duty's own hooks. */
31
+ stopBackground(): Promise<void>;
32
+ /** Start again the runs `stopBackground()` stopped, once that stop ended. */
33
+ resumeBackground(): Promise<void>;
20
34
  onShutdown(): Promise<void>;
35
+ /** Run `step` once the stop or start before it ended, so a run never starts while the last one is still ending. */
36
+ private inTurn;
37
+ /** Stop what the last start started, once, and give back the claim. */
38
+ private stopRunner;
39
+ /**
40
+ * Fail the startup for what no process could run: a cron expression that can't be read, and a cluster duty where
41
+ * duties start without a Redis to keep its lease in.
42
+ */
43
+ private refuseWhatCannotRun;
44
+ /** The duty's cron, read once. */
45
+ private cronSchedule;
46
+ /**
47
+ * Contend for the duty's lease and run it while this process holds it. Its health check is in place before the lease
48
+ * store is first opened, which each lease check tries until it opens.
49
+ */
21
50
  private startRunner;
22
51
  /** Take `key` for this duty's class in this process: another class with the same key would never run here. */
23
52
  private claim;
@@ -1 +1 @@
1
- {"version":3,"file":"duty.lifecycle.d.ts","sourceRoot":"","sources":["../../src/duty/duty.lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,oBAAoB,EAC1B,MAAM,WAAW,CAAC;AAInB,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAIlE,KAAK,YAAY,GAAG,aAAa,GAAG,OAAO,CAAC,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC,CAAC;AAyBhF,qHAAqH;AACrH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,oBAAoB,EAC9B,SAAS,EAAE,gBAAgB,GAC1B,aAAa,CAOf;AAED,wHAAwH;AACxH,wBAAsB,WAAW,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO,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BAAmB;IAUjC,kCAAkC;IAClC,OAAO,CAAC,YAAY;IAOpB;;;OAGG;YACW,WAAW;IA4BzB,8GAA8G;IAC9G,OAAO,CAAC,KAAK;IASb,OAAO,CAAC,YAAY;CAKrB"}
@@ -1,61 +1,79 @@
1
1
  import { type NamespacedStorage } from '@frontmcp/utils';
2
2
  import type { DutyRunContext, FrontMcpLogger } from '../common';
3
- /** The store operations a lease needs; the SQLite, Redis and memory stores run each one atomically. */
3
+ import { type CronLedgerStorage, type CronSchedule } from './cron-schedule';
4
+ /** The store operations a duty needs; the SQLite, Redis and memory stores run each one atomically. */
4
5
  export type DutyLeaseStorage = Pick<NamespacedStorage, 'set' | 'ttl' | 'expireIfEquals' | 'deleteIfEquals'>;
5
6
  export type DutyLogger = Pick<FrontMcpLogger, 'verbose' | 'info' | 'warn' | 'error'>;
6
- export interface DutyRunnerOptions {
7
+ interface DutyRunnerCommonOptions {
7
8
  name: string;
9
+ /** What runs, as logs name it. @default `Duty "<name>"` */
10
+ label?: string;
8
11
  key: string;
9
- everyMs: number;
10
12
  leaseMs: number;
11
- storage: DutyLeaseStorage;
12
13
  logger: DutyLogger;
13
- run(context: DutyRunContext): unknown;
14
+ /** `scheduledAt` names the run: the cron time it is for, or when an interval's run was taken. */
15
+ run(context: DutyRunContext, scheduledAt: number): unknown;
16
+ }
17
+ interface IntervalDutyRunnerOptions extends DutyRunnerCommonOptions {
18
+ everyMs: number;
19
+ cron?: undefined;
20
+ storage: DutyLeaseStorage;
21
+ }
22
+ interface CronDutyRunnerOptions extends DutyRunnerCommonOptions {
23
+ cron: CronSchedule;
24
+ everyMs?: undefined;
25
+ storage: DutyLeaseStorage & CronLedgerStorage;
26
+ /**
27
+ * Keep each taken run owed in the store until `run()` returns, so a process that takes the lease over after this one
28
+ * died before then runs it again, with the same `scheduledAt`. Without it a run is taken for good before it starts.
29
+ */
30
+ owedUntilRun?: boolean;
14
31
  }
32
+ export type DutyRunnerOptions = IntervalDutyRunnerOptions | CronDutyRunnerOptions;
15
33
  /**
16
- * Runs a duty every `everyMs` while this process holds its lease, and contends for the lease otherwise. The lease is a
17
- * key holding this runner's id with a TTL, so it expires by the store's clock when the holder stops renewing it. The
18
- * holder renews it every third of `leaseMs`, and again before each run, so a holder that wakes after another process
19
- * took the lease over never runs again.
34
+ * Runs a duty every `everyMs`, or at the times of `cron`, while this process holds its lease (see `LeaseHolder`). The
35
+ * holder renews the lease again before each run, so a holder that wakes after another process took the lease over
36
+ * never runs again.
20
37
  */
21
38
  export declare class DutyRunner {
22
39
  private readonly options;
23
- private readonly holder;
24
- private readonly leaseSeconds;
40
+ private readonly label;
25
41
  private readonly ranKey;
26
- private holding;
27
- private stopped;
28
- private reportedHeldElsewhere;
29
- private leaseCheck?;
30
- private leaseTimer?;
31
- private leaseDeadline?;
42
+ private readonly lease;
32
43
  private tickTimer?;
33
44
  private inFlight?;
34
45
  constructor(options: DutyRunnerOptions);
46
+ /** Whether this process holds the duty's lease now. */
47
+ get holdsLease(): boolean;
35
48
  /** Contend for the lease once now, then renew or contend again every third of the lease. */
36
49
  start(): Promise<void>;
37
50
  /** Stop contending, abort the run in flight and wait for it while still renewing the lease, then release it. */
38
51
  stop(): Promise<void>;
39
- private checkLease;
40
- private acquire;
41
- /** Extend the lease while it holds this runner's id, and give up holding it by the time the store could end it. */
42
- private renew;
43
- /**
44
- * Stop at `deadline` (monotonic) unless a renew succeeds first: the store ends the lease no sooner, so this process
45
- * never runs past the point where another one could take the lease over, even while the store can't be reached.
46
- */
47
- private holdUntil;
48
- private reportHeldElsewhere;
52
+ /** Cancel the next tick and abort the run in flight. */
53
+ private stopRunning;
54
+ /** Once the lease is acquired, log the cadence and schedule the first tick. */
55
+ private hold;
49
56
  /**
50
- * Start the runs, the first once the interval the last run (in any process) started has passed, or a whole interval
51
- * from now when the store can't say when that was.
57
+ * An interval's first run waits until the interval the last run (in any process) started has passed, or a whole
58
+ * interval when the store can't say when that was. A cron checks at once whether a scheduled time was missed.
52
59
  */
53
- private hold;
54
- private lose;
60
+ private firstRunDelayMs;
55
61
  private scheduleTick;
62
+ /** An interval ticks every `everyMs`; a cron at its next scheduled time, in waits no longer than a timer can hold. */
63
+ private nextTickDelayMs;
64
+ /** Start a run unless one is running; a tick that arrives during an earlier tick's check has it made again. */
56
65
  private tick;
66
+ /** Run the duty when a run is due, checking again when a tick arrived while the check waited on the store. */
57
67
  private runIfHeld;
58
68
  /** Renew the lease right before a run, so a holder that lost it while paused never runs, and mark the run. */
59
69
  private claimRun;
70
+ /**
71
+ * An interval's mark lasts one interval, which tells the next holder how long to wait. A cron's is the time its
72
+ * schedule was last taken, kept without expiry: there is a run only when a scheduled time passed since.
73
+ */
74
+ private markRun;
75
+ /** Record that the run of an owed claim started; a claim still owed after a store failure is taken again later. */
76
+ private settle;
60
77
  }
78
+ export {};
61
79
  //# sourceMappingURL=duty.runner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"duty.runner.d.ts","sourceRoot":"","sources":["../../src/duty/duty.runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhE,uGAAuG;AACvG,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,EAAE,KAAK,GAAG,KAAK,GAAG,gBAAgB,GAAG,gBAAgB,CAAC,CAAC;AAE5G,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAErF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,EAAE,UAAU,CAAC;IACnB,GAAG,CAAC,OA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AAuD;IACvD,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,4FAA4F;IAC5F,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,gHAAgH;IAChH,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAOrB,wDAAwD;IACxD,OAAO,CAAC,WAAW;IAKnB,+EAA+E;YACjE,IAAI;IASlB;;;OAGG;YACW,eAAe;IAQ7B,OAAO,CAAC,YAAY;IAQpB,sHAAsH;IACtH,OAAO,CAAC,eAAe;IAOvB,+GAA+G;YACjG,IAAI;IAqBlB,8GAA8G;YAChG,SAAS;IAgBvB,8GAA8G;YAChG,QAAQ;IActB;;;OAGG;YACW,OAAO;IAWrB,mHAAmH;YACrG,MAAM;CASrB"}
@@ -0,0 +1,29 @@
1
+ import { type SetOptions, type StorageConfig } from '@frontmcp/utils';
2
+ import type { CronLedgerStorage } from './cron-schedule';
3
+ import type { DutyLeaseStorage } from './duty.runner';
4
+ /** A lease store opened at its first use, and again at the next one after an open failed, as the next lease check. */
5
+ export declare class LazyLeaseStore implements DutyLeaseStorage, CronLedgerStorage {
6
+ private readonly config;
7
+ /** Why the store could not be opened at the last try; undefined once it is open. */
8
+ openFailure?: string;
9
+ private opened?;
10
+ /** Takes where the store lives. */
11
+ constructor(config: StorageConfig);
12
+ /** Read `key` from the store, once it is open. */
13
+ get(key: string): Promise<string | null>;
14
+ /** Write `key` in the store, once it is open. */
15
+ set(key: string, value: string, options?: SetOptions): Promise<void>;
16
+ /** Replace `key` while it holds `expectedValue`, once the store is open. */
17
+ setIfEquals(key: string, expectedValue: string, value: string): Promise<boolean>;
18
+ /** The seconds `key` has left in the store, once it is open. */
19
+ ttl(key: string): Promise<number | null>;
20
+ /** Extend `key` while it holds `expectedValue`, once the store is open. */
21
+ expireIfEquals(key: string, expectedValue: string, ttlSeconds: number): Promise<boolean>;
22
+ /** Delete `key` while it holds `expectedValue`, once the store is open. */
23
+ deleteIfEquals(key: string, expectedValue: string): Promise<boolean>;
24
+ /** Close the store, if it was opened. */
25
+ disconnect(): Promise<void>;
26
+ /** The open store, opening it unless an open is under way or done. */
27
+ private open;
28
+ }
29
+ //# sourceMappingURL=lazy-lease-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy-lease-store.d.ts","sourceRoot":"","sources":["../../src/duty/lazy-lease-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAExF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGtD,sHAAsH;AACtH,qBAAa,cAAe,YAAW,gBAAgB,EAAE,iBAAiB;IAM5D,OAAO,CAAC,QAAQ,CAAC,MAAM;IALnC,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,MAAM,CAAC,CAAuB;IAEtC,mCAAmC;gBACN,MAAM,EAAE,aAAa;IAElD,kDAAkD;IAC5C,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAI9C,iDAAiD;IAC3C,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1E,4EAA4E;IACtE,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAItF,gEAAgE;IAC1D,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAI9C,2EAA2E;IACrE,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI9F,2EAA2E;IACrE,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1E,yCAAyC;IACnC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAKjC,sEAAsE;IACtE,OAAO,CAAC,IAAI;CAcb"}
@@ -0,0 +1,73 @@
1
+ import { type NamespacedStorage } from '@frontmcp/utils';
2
+ import type { FrontMcpLogger } from '../common';
3
+ /** The store operations a lease needs; the SQLite, Redis and memory stores run each one atomically. */
4
+ export type LeaseStorage = Pick<NamespacedStorage, 'set' | 'expireIfEquals' | 'deleteIfEquals'>;
5
+ export interface LeaseHolderOptions {
6
+ /** What holds the lease, as logs name it: `Duty "sweep"`, `Worker "inbox"`. */
7
+ label: string;
8
+ key: string;
9
+ leaseMs: number;
10
+ storage: LeaseStorage;
11
+ logger: Pick<FrontMcpLogger, 'info' | 'warn'>;
12
+ /** This process got the lease. */
13
+ onAcquired(): void | Promise<void>;
14
+ /** This process no longer holds the lease, which it did not release itself: stop what runs under it. */
15
+ onLost(): void;
16
+ }
17
+ /**
18
+ * Holds a lease while this process can, and contends for it otherwise. The lease is a key holding this holder's id
19
+ * with a TTL, so it expires by the store's clock when the holder stops renewing it. The holder renews it every third
20
+ * of `leaseMs`, and gives it up a third of `leaseMs` before the store could end it, so what runs under it has that
21
+ * long to end before another process can take the lease over.
22
+ */
23
+ export declare class LeaseHolder {
24
+ private readonly options;
25
+ /** What this holder writes as the lease's value. */
26
+ readonly id: string;
27
+ private readonly leaseSeconds;
28
+ /** How long after a renew was sent the holder trusts it: two thirds of `leaseMs`. */
29
+ private readonly holdMs;
30
+ private held;
31
+ private stopped;
32
+ private settled;
33
+ private reportedHeldElsewhere;
34
+ private leaseCheck?;
35
+ private leaseTimer?;
36
+ private leaseDeadline?;
37
+ /** Takes the lease's key, store and length, and draws this holder's random id. */
38
+ constructor(options: LeaseHolderOptions);
39
+ /** Whether this process holds the lease now. */
40
+ get holding(): boolean;
41
+ /** Whether `stop()` was called: nothing new starts under the lease from then on. */
42
+ get stopping(): boolean;
43
+ /** Contend for the lease once now, then renew or contend again every third of the lease. */
44
+ start(): Promise<void>;
45
+ /**
46
+ * Stop contending, keep renewing the lease until `untilSettled` resolves (what ran under it has ended), then
47
+ * release it. When it resolves `false` (what ran did not end), stop renewing without releasing: the lease then ends
48
+ * by the store's TTL.
49
+ */
50
+ stop(untilSettled: () => boolean | void | Promise<boolean | void>): Promise<void>;
51
+ /** Extend the lease while it holds this holder's id, and give up holding it before the store could end it. */
52
+ renew(): Promise<boolean>;
53
+ /** Stop holding the lease without releasing it: the store already gave it, or may give it, to another process. */
54
+ lose(reason: string): void;
55
+ /** Log a warning that the lease store failed, with the error's message. */
56
+ reportStoreFailure(error: unknown): void;
57
+ /**
58
+ * Renew the lease if held, or contend for it, then schedule the next check a third of the lease later, or half that
59
+ * after a renew failed, so a second try comes before the holder gives the lease up.
60
+ */
61
+ private checkLease;
62
+ /** Write the lease if no one holds it, then renew it to learn whether this holder's id is stored. */
63
+ private acquire;
64
+ /**
65
+ * Stop at `deadline` (monotonic) unless a renew succeeds first: the store ends the lease a third of `leaseMs` later
66
+ * at the soonest, so what runs under it has that long to end before another process could take the lease over, even
67
+ * while the store can't be reached.
68
+ */
69
+ private holdUntil;
70
+ /** Log once that another process holds the lease. */
71
+ private reportHeldElsewhere;
72
+ }
73
+ //# sourceMappingURL=lease-holder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lease-holder.d.ts","sourceRoot":"","sources":["../../src/duty/lease-holder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,uGAAuG;AACvG,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,iBAAiB,EAAE,KAAK,GAAG,gBAAgB,GAAG,gBAAgB,CAAC,CAAC;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O/B,kHAAkH;IAClH,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAQ1B,2EAA2E;IAC3E,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAIxC;;;OAGG;YACW,UAAU;IAsBxB,qGAAqG;YACvF,OAAO;IAOrB;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAUjB,qDAAqD;IACrD,OAAO,CAAC,mBAAmB;CAM5B"}
@@ -0,0 +1,40 @@
1
+ import { type RootStorage, type StorageConfig } from '@frontmcp/utils';
2
+ import { type FrontMcpConfigType, type HealthProbeDefinition } from '../common';
3
+ import type ProviderRegistry from '../provider/provider.registry';
4
+ /** What a lease is for (a duty, a worker, a workflow's schedule): each kind keeps its leases under a prefix of its own. */
5
+ export type LeaseKind = 'duty' | 'worker' | 'schedule';
6
+ /** Among which processes one holds a lease: those of a machine, of a project root, or of every machine on one Redis. */
7
+ export type LeaseScope = 'machine' | 'workspace' | 'cluster';
8
+ /** Duties and workers need a long-lived process: not a serverless function, the edge or a browser. */
9
+ export declare function isLongLivedProcess(): boolean;
10
+ /**
11
+ * A server starts its duties and workers, unless a build boots it only to read it; a container starts them only when
12
+ * asked to, which it states in its config.
13
+ */
14
+ export declare function startsBackgroundWork(config: FrontMcpConfigType): boolean;
15
+ /** Add `probe` to the `/readyz` of the scope `providers` serve; a container has none, so it adds nothing there. */
16
+ export declare function registerReadinessProbe(providers: ProviderRegistry, probe: HealthProbeDefinition): () => void;
17
+ /**
18
+ * Where the leases live: the server's Redis when it has one, otherwise a SQLite file every process on the machine
19
+ * opens. In Redis a lease is per hostname, except a `'cluster'` one, which every machine shares.
20
+ */
21
+ export declare function leaseStorageConfig(redis: unknown, kind: LeaseKind, scope: LeaseScope): StorageConfig;
22
+ /** One lease per server name and duty or worker; a workspace one is also per project root. */
23
+ export declare function leaseKey(name: string, scope: LeaseScope, serverName: string): string;
24
+ /** Open the lease store, creating its SQLite file owner-only first. */
25
+ export declare function openLeaseStore(config: StorageConfig): Promise<RootStorage>;
26
+ /** The class that holds each lease key in this process, and how many of its instances started. */
27
+ export declare class LeaseClaims {
28
+ private readonly claims;
29
+ /**
30
+ * Take `key` for `type`: another class with the same key would never run in this process.
31
+ *
32
+ * @returns The name of the other class that holds `key`, in which case nothing was taken
33
+ */
34
+ claim(key: string, type: {
35
+ name: string;
36
+ }): string | undefined;
37
+ /** Drop one started instance's hold on `key`, freeing the key once none is left. */
38
+ release(key: string): void;
39
+ }
40
+ //# sourceMappingURL=lease-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lease-store.d.ts","sourceRoot":"","sources":["../../src/duty/lease-store.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAE3B,MAAM,WAAW,CAAC;AAInB,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAGlE,2HAA2H;AAC3H,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEvD,wHAAwH;AACxH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;AAgB7D,sGAAsG;AACtG,wBAAgB,kBAAkB,IAAI,OAAO,CAG5C;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAExE;AAED,mHAAmH;AACnH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,qBAAqB,GAAG,MAAM,IAAI,CAQ5G;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,GAAG,aAAa,CAkBpG;AAED,8FAA8F;AAC9F,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAKpF;AAED,uEAAuE;AACvE,wBAAsB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,CAGhF;AAkBD,kGAAkG;AAClG,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA6E;IAEpG;;;;OAIG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,GAAG,SAAS;IAO9D,oFAAoF;IACpF,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAM3B"}
@@ -0,0 +1,10 @@
1
+ import { type ZodType } from '@frontmcp/lazy-zod';
2
+ import { type ElicitOptions, type ElicitResult } from '../elicitation.types';
3
+ /**
4
+ * The answer as the caller receives it, whatever the client sent: content only for an accepted form-mode answer,
5
+ * and only once it matches the requested schema (a URL-mode answer's outcome reaches the server through the page).
6
+ *
7
+ * @throws {InvalidInputError} When accepted form-mode content does not match the requested schema
8
+ */
9
+ export declare function checkedElicitAnswer<S extends ZodType>(answer: ElicitResult<unknown>, requestedSchema: S, options?: ElicitOptions): Promise<ElicitResult<S extends ZodType<infer O> ? O : unknown>>;
10
+ //# sourceMappingURL=checked-elicit-answer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checked-elicit-answer.d.ts","sourceRoot":"","sources":["../../../src/elicitation/helpers/checked-elicit-answer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAGlE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE7E;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,CAAC,SAAS,OAAO,EACzD,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,EAC7B,eAAe,EAAE,CAAC,EAClB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G,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CACpE;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,yCAAyC;IACzC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9B,0DAA0D;IAC1D,qBAAqB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,kBAAkB,GAAG,SAAS,CAAC;IAE7E,+DAA+D;IAC/D,aAAa,EAAE,MAAM,eAAe,GAAG,SAAS,CAAC;IAEjD,gEAAgE;IAChE,SAAS,EAAE,MAAM,CAAC;IAElB,mEAAmE;IACnE,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B,2FAA2F;IAC3F,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,aAAa,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAEpD,4EAA4E;IAC5E,MAAM,CAAC,EAAE,WAAW,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,aAAa,CAAC,CAAC,SAAS,OAAO,EACnD,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,CAAC,EAClB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAoGjE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAE9C"}
@@ -59,10 +59,10 @@ export declare const ElicitationRequestHook: {
59
59
  * ```
60
60
  */
61
61
  export declare const ElicitationResultHook: {
62
- Stage: (stage: "finalize" | "parseInput" | "lookupPending" | "validateContent" | "buildResult" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
63
- Will: (stage: "finalize" | "parseInput" | "lookupPending" | "validateContent" | "buildResult" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
64
- Did: (stage: "finalize" | "parseInput" | "lookupPending" | "validateContent" | "buildResult" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
65
- Around: (stage: "finalize" | "parseInput" | "lookupPending" | "validateContent" | "buildResult" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").AroundFlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
66
- Finally: (stage: "finalize" | "parseInput" | "lookupPending" | "validateContent" | "buildResult" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
62
+ Stage: (stage: "finalize" | "parseInput" | "buildResult" | "lookupPending" | "validateContent" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
63
+ Will: (stage: "finalize" | "parseInput" | "buildResult" | "lookupPending" | "validateContent" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
64
+ Did: (stage: "finalize" | "parseInput" | "buildResult" | "lookupPending" | "validateContent" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
65
+ Around: (stage: "finalize" | "parseInput" | "buildResult" | "lookupPending" | "validateContent" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").AroundFlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
66
+ Finally: (stage: "finalize" | "parseInput" | "buildResult" | "lookupPending" | "validateContent" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
67
67
  };
68
68
  //# sourceMappingURL=elicitation.hooks.d.ts.map
@@ -1,8 +1,13 @@
1
1
  import { type AuthInfo } from '@frontmcp/protocol';
2
2
  /**
3
- * Who a persistent question belongs to: `principal:<iss>#<sub>` for a signed-in caller (`principal:<sub>` when its token
4
- * names no issuer), so a later session of the same user gets the answer and a user of another issuer does not, else
5
- * `session:<id>` for the session the server verified, else nobody (undefined).
3
+ * The key of a signed-in caller: `principal:<iss>#<sub>`, or `principal:<sub>` when its token names no issuer, so a
4
+ * user of another issuer never shares it. Undefined for an anonymous caller.
5
+ */
6
+ export declare function principalKeyOf(authInfo: Partial<AuthInfo> | undefined): string | undefined;
7
+ /**
8
+ * Who a persistent question belongs to: the caller's {@link principalKeyOf}, so a later session of the same user gets
9
+ * the answer and a user of another issuer does not, else `session:<id>` for the session the server verified, else
10
+ * nobody (undefined).
6
11
  */
7
12
  export declare function questionSubjectOf(authInfo: Partial<AuthInfo> | undefined): string | undefined;
8
13
  //# sourceMappingURL=question-subject.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"question-subject.d.ts","sourceRoot":"","sources":["../../../src/elicitation/questions/question-subject.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAKnD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAM7F"}
1
+ {"version":3,"file":"question-subject.d.ts","sourceRoot":"","sources":["../../../src/elicitation/questions/question-subject.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAKnD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAK1F;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAK7F"}
@@ -1 +1 @@
1
- {"version":3,"file":"elicitation-encryption.d.ts","sourceRoot":"","sources":["../../../src/elicitation/store/elicitation-encryption.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAQL,KAAK,OAAO,EACb,MAAM,iBAAiB,CAAC;AAOzB;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAmBD;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,GAAG,IAAI,CAEpD;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,IAAI,OAAO,CAE1D;AAMD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAgBlG;AAMD;;;;;;;;;;;;GAYG;AACH,wBAAsB,sBAAsB,CAAC,CAAC,EAC5C,IAAI,EAAE,CAAC,EACP,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,wBAAwB,CAAC,CAanC;AAED;;;;;;;GAOG;AACH,wBAAsB,sBAAsB,CAAC,CAAC,EAC5C,IAAI,EAAE,wBAAwB,EAC9B,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAenB;AAMD;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,wBAAwB,GAAG,MAAM,CAE/E;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,wBAAwB,GAAG,IAAI,CAUvF;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,wBAAwB,CAajF;AAMD;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAGzG;AAED;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAMjH;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAKpH"}
1
+ {"version":3,"file":"elicitation-encryption.d.ts","sourceRoot":"","sources":["../../../src/elicitation/store/elicitation-encryption.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;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EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAGzG;AAED;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAMjH;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAKpH"}
@@ -18,8 +18,8 @@
18
18
  * @module elicitation/store/encrypted-elicitation.store
19
19
  */
20
20
  import type { FrontMcpLogger } from '../../common';
21
- import type { ElicitationStore, PendingElicitRecord, ElicitResultCallback, ElicitUnsubscribe } from './elicitation.store';
22
- import type { ElicitResult, PendingElicitFallback, ResolvedElicitResult, FallbackExecutionResult, FallbackResultCallback } from '../elicitation.types';
21
+ import type { ElicitResult, FallbackExecutionResult, FallbackResultCallback, PendingElicitFallback, ResolvedElicitResult } from '../elicitation.types';
22
+ import type { ElicitationStore, ElicitResultCallback, ElicitUnsubscribe, PendingElicitRecord } from './elicitation.store';
23
23
  /**
24
24
  * Options for creating an encrypted elicitation store.
25
25
  */
@@ -1 +1 @@
1
- {"version":3,"file":"encrypted-elicitation.store.d.ts","sourceRoot":"","sources":["../../../src/elicitation/store/encrypted-elicitation.store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,EACZ,qBAAq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kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC;IASrG;;OAEG;IACG,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ5D;;OAEG;IACG,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAyC3G;;;OAGG;IACG,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IASnG;;OAEG;IACG,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ3D;;OAEG;IACG,uBAAuB,CAC3B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,sBAAsB,EAChC,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,iBAAiB,CAAC;IA+B7B;;OAEG;IACG,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAyB1G,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ9B;;OAEG;YACW,oBAAoB;IAuClC;;OAEG;YACW,qBAAqB;IAiDnC;;OAEG;YACW,qBAAqB;CA4CpC"}
@@ -6,10 +6,10 @@
6
6
  *
7
7
  * @module elicitation/store/storage-elicitation.store
8
8
  */
9
- import type { NamespacedStorage } from '@frontmcp/utils';
9
+ import { type NamespacedStorage } from '@frontmcp/utils';
10
10
  import type { FrontMcpLogger } from '../../common';
11
- import type { ElicitationStore, PendingElicitRecord, ElicitResultCallback, ElicitUnsubscribe } from './elicitation.store';
12
- import type { ElicitResult, PendingElicitFallback, ResolvedElicitResult, FallbackExecutionResult, FallbackResultCallback } from '../elicitation.types';
11
+ import type { ElicitResult, FallbackExecutionResult, FallbackResultCallback, PendingElicitFallback, ResolvedElicitResult } from '../elicitation.types';
12
+ import type { ElicitationStore, ElicitResultCallback, ElicitUnsubscribe, PendingElicitRecord } from './elicitation.store';
13
13
  /**
14
14
  * Elicitation store using @frontmcp/utils storage abstractions.
15
15
  *
@@ -1 +1 @@
1
- {"version":3,"file":"storage-elicitation.store.d.ts","sourceRoot":"","sources":["../../../src/elicitation/store/storage-elicitation.store.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAe,MAAM,iBAAiB,CAAC;AAEtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAY9B;;;;;;;;;;;;;;GAcG;AACH,qBAAa,uBAAwB,YAAW,gBAAgB;IAC9D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;IAC5C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoC;IAC5D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsC;IAC/D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqC;IAC9D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAiB;IAEzC,uEAAuE;IACvE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgD;IAE/E,mEAAmE;IACnE,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAkC;IAEtE,kFAAkF;IAClF,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAA2C;IAEhF,gFAAgF;IAChF,OAAO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,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAY5G;;OAEG;IACG,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAIpG;;OAEG;IACG,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAS3D;;;OAGG;IACG,uBAAuB,CAC3B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,sBAAsB,EAChC,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,iBAAiB,CAAC;IAsH7B;;;;;;;;OAQG;IACG,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAwChH;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CA0D/B"}
1
+ {"version":3,"file":"storage-elicitation.store.d.ts","sourceRoot":"","sources":["../../../src/elicitation/store/storage-elicitation.store.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAgC,KAAK,iBAAiB,EAAoB,MAAM,iBAAiB,CAAC;AAEzG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EACV,YAAY,EACZ,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAW7B;;;;;;;;;;;;;;GAcG;AACH,qBAAa,uBAAwB,YAAW,gBAAgB;IAC9D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;IAC5C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoC;IAC5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AAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC;IActE;;OAEG;IACG,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC;IAgBtG;;OAEG;IACG,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAS5D;;OAEG;IACG,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAY5G;;OAEG;IACG,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAIpG;;OAEG;IACG,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAS3D;;;OAGG;IACG,uBAAuB,CAC3B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,sBAAsB,EAChC,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,iBAAiB,CAAC;IAsH7B;;;;;;;;OAQG;IACG,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAwChH;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CA0D/B"}
@@ -1,2 +1,2 @@
1
- export { EncryptionContextNotSetError, VaultLoadError, VaultNotFoundError, TokenNotAvailableError, TokenStoreRequiredError, NoProviderIdError, TokenLeakDetectedError, JwtSecretRequiredError, JwtSecretWeakError, SessionSecretRequiredError, CredentialProviderAlreadyRegisteredError, AuthProvidersNotConfiguredError, OrchestratedAuthNotAvailableError, EncryptionKeyNotConfiguredError, SessionIdEmptyError, ElicitationSecretRequiredError, ScopeDeniedError, InMemoryStoreRequiredError, OrchestratorJwksNotAvailableError, } from '@frontmcp/auth';
1
+ export { EncryptionContextNotSetError, VaultLoadError, VaultNotFoundError, TokenNotAvailableError, TokenStoreRequiredError, NoProviderIdError, TokenLeakDetectedError, JwtSecretRequiredError, JwtSecretWeakError, SigningKeyInvalidError, SessionSecretRequiredError, CredentialProviderAlreadyRegisteredError, AuthProvidersNotConfiguredError, OrchestratedAuthNotAvailableError, EncryptionKeyNotConfiguredError, SessionIdEmptyError, ElicitationSecretRequiredError, ScopeDeniedError, InMemoryStoreRequiredError, OrchestratorJwksNotAvailableError, } from '@frontmcp/auth';
2
2
  //# sourceMappingURL=auth-internal.errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth-internal.errors.d.ts","sourceRoot":"","sources":["../../src/errors/auth-internal.errors.ts"],"names":[],"mappings":"AACA,OAAO,EACL,4BAA4B,EAC5B,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,EAClB,0BAA0B,EAC1B,wCAAwC,EACxC,+BAA+B,EAC/B,iCAAiC,EACjC,+BAA+B,EAC/B,mBAAmB,EACnB,8BAA8B,EAC9B,gBAAgB,EAChB,0BAA0B,EAC1B,iCAAiC,GAClC,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"auth-internal.errors.d.ts","sourceRoot":"","sources":["../../src/errors/auth-internal.errors.ts"],"names":[],"mappings":"AACA,OAAO,EACL,4BAA4B,EAC5B,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,wCAAwC,EACxC,+BAA+B,EAC/B,iCAAiC,EACjC,+BAA+B,EAC/B,mBAAmB,EACnB,8BAA8B,EAC9B,gBAAgB,EAChB,0BAA0B,EAC1B,iCAAiC,GAClC,MAAM,gBAAgB,CAAC"}
@@ -3,6 +3,16 @@ import { InternalMcpError } from './mcp.error';
3
3
  export declare class DutyNameConflictError extends InternalMcpError {
4
4
  constructor(dutyName: string, serverName: string, firstClass: string, secondClass: string);
5
5
  }
6
+ /** Thrown at startup when a duty's cron expression can't be read. */
7
+ export declare class InvalidDutyCronError extends InternalMcpError {
8
+ /** Names the duty, its expression and why it can't be read. */
9
+ constructor(dutyName: string, expression: string, reason: string);
10
+ }
11
+ /** Thrown at startup when something with `scope: 'cluster'` has no Redis to keep its one lease for every machine in. */
12
+ export declare class ClusterScopeNeedsRedisError extends InternalMcpError {
13
+ /** Names what has the cluster scope, such as a duty or a worker. */
14
+ constructor(subject: string);
15
+ }
6
16
  /** Thrown when another user could write to the folder that holds the duty lease file, or to one above it. */
7
17
  export declare class UnsafeDutyStoreError extends InternalMcpError {
8
18
  constructor(directory: string, mode: number, ownerUid?: number);