@frontmcp/sdk 1.11.3 → 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.
- package/answer/answer-meter.d.ts +2 -0
- package/answer/answer-meter.d.ts.map +1 -1
- package/app/instances/app.esm.instance.d.ts +4 -2
- package/app/instances/app.esm.instance.d.ts.map +1 -1
- package/app/instances/app.lazy.instance.d.ts.map +1 -1
- package/app/lazy/lazy-app.rules.d.ts +4 -0
- package/app/lazy/lazy-app.rules.d.ts.map +1 -1
- package/browser/answer/answer-meter.mjs +1 -0
- package/browser/app/instances/app.esm.instance.mjs +11 -3
- package/browser/app/instances/app.lazy.instance.mjs +7 -3
- package/browser/app/lazy/lazy-app.rules.mjs +4 -1
- package/browser/channel/channel-notification.service.mjs +20 -8
- package/browser/channel/channel.instance.mjs +10 -1
- package/browser/channel/channel.utils.mjs +22 -1
- package/browser/channel/sources/app-event.source.mjs +5 -2
- package/browser/channel/sources/file-watcher.source.mjs +66 -0
- package/browser/common/decorators/duty.decorator.mjs +3 -4
- package/browser/common/decorators/event.decorator.mjs +49 -0
- package/browser/common/decorators/index.mjs +2 -0
- package/browser/common/decorators/worker.decorator.mjs +23 -0
- package/browser/common/entries/event.entry.mjs +59 -0
- package/browser/common/entries/index.mjs +1 -0
- package/browser/common/index.mjs +7 -7
- package/browser/common/interfaces/event.interface.mjs +17 -0
- package/browser/common/interfaces/execution-context.interface.mjs +8 -0
- package/browser/common/interfaces/index.mjs +2 -0
- package/browser/common/interfaces/worker.interface.mjs +0 -0
- package/browser/common/metadata/app.metadata.mjs +2 -0
- package/browser/common/metadata/duty.metadata.mjs +28 -13
- package/browser/common/metadata/duty.resolved.mjs +13 -0
- package/browser/common/metadata/event.metadata.mjs +137 -0
- package/browser/common/metadata/front-mcp.metadata.mjs +3 -0
- package/browser/common/metadata/index.mjs +5 -1
- package/browser/common/metadata/worker.metadata.mjs +44 -0
- package/browser/common/metadata/worker.resolved.mjs +13 -0
- package/browser/common/metadata/workflow.metadata.mjs +7 -1
- package/browser/common/records/event.record.mjs +9 -0
- package/browser/common/records/index.mjs +1 -0
- package/browser/common/schemas/annotated-class.schema.mjs +10 -0
- package/browser/common/schemas/index.mjs +1 -1
- package/browser/common/tokens/app.tokens.mjs +1 -0
- package/browser/common/tokens/event.tokens.mjs +11 -0
- package/browser/common/tokens/front-mcp.tokens.mjs +2 -0
- package/browser/common/tokens/index.mjs +1 -0
- package/browser/common/tokens/workflow.tokens.mjs +1 -0
- package/browser/common/utils/offset-cursor.utils.mjs +23 -0
- package/browser/common/utils/principal.utils.mjs +1 -1
- package/browser/common/utils/time-zone.utils.mjs +12 -0
- package/browser/direct/create.mjs +3 -1
- package/browser/direct/direct-client.mjs +16 -2
- package/browser/direct/direct-events-transport.mjs +47 -0
- package/browser/direct/direct-server.mjs +5 -1
- package/browser/duty/cron-schedule.mjs +62 -0
- package/browser/duty/describe-thrown.mjs +12 -0
- package/browser/duty/duty.lifecycle.mjs +102 -97
- package/browser/duty/duty.runner.mjs +117 -115
- package/browser/duty/lazy-lease-store.mjs +60 -0
- package/browser/duty/lease-holder.mjs +132 -0
- package/browser/duty/lease-store.mjs +125 -0
- package/browser/elicitation/questions/question-subject.mjs +8 -2
- package/browser/errors/duty.errors.mjs +20 -0
- package/browser/errors/event.errors.mjs +128 -0
- package/browser/errors/index.mjs +36 -1
- package/browser/errors/worker.errors.mjs +14 -0
- package/browser/event/delivery/event-metrics.mjs +37 -0
- package/browser/event/delivery/event-outbox.mjs +251 -0
- package/browser/event/event-channel.mjs +30 -0
- package/browser/event/event-dialect.mjs +23 -0
- package/browser/event/event-gates.mjs +72 -0
- package/browser/event/event-outbound.mjs +8 -0
- package/browser/event/event-publisher.mjs +55 -0
- package/browser/event/event-reauthorization.mjs +48 -0
- package/browser/event/event-scope.helper.mjs +266 -0
- package/browser/event/event-subscriber.mjs +31 -0
- package/browser/event/event.instance.mjs +44 -0
- package/browser/event/event.registry.mjs +145 -0
- package/browser/event/event.utils.mjs +31 -0
- package/browser/event/flows/event-deliver.flow.mjs +175 -0
- package/browser/event/flows/event-poll.flow.mjs +308 -0
- package/browser/event/flows/event-publish-http.flow.mjs +288 -0
- package/browser/event/flows/event-publish.flow.mjs +371 -0
- package/browser/event/flows/event-stream.flow.mjs +222 -0
- package/browser/event/flows/event-subscribe.flow.mjs +351 -0
- package/browser/event/flows/event-unsubscribe.flow.mjs +120 -0
- package/browser/event/flows/list-events.flow.mjs +145 -0
- package/browser/event/index.mjs +104 -0
- package/browser/event/poll/event-buffer.mjs +77 -0
- package/browser/event/poll/event-poll-leases.mjs +118 -0
- package/browser/event/publish-endpoint/event-publish-endpoint.mjs +75 -0
- package/browser/event/publish-endpoint/event-publish-idempotency.mjs +54 -0
- package/browser/event/replay/event-replays.mjs +298 -0
- package/browser/event/stream/event-stream.mjs +279 -0
- package/browser/event/stream/event-streams.mjs +122 -0
- package/browser/event/subscription/event-callback-verifier.mjs +165 -0
- package/browser/event/subscription/event-subscription-store.factory.mjs +59 -0
- package/browser/event/subscription/event-subscription-termination.mjs +34 -0
- package/browser/event/subscription/event-subscription.store.mjs +167 -0
- package/browser/event/subscription/event-subscriptions.mjs +126 -0
- package/browser/event-client/event-client.errors.mjs +50 -0
- package/browser/event-client/event-webhook-receiver.mjs +155 -0
- package/browser/event-client/events-client.mjs +471 -0
- package/browser/event-client/index.mjs +28 -0
- package/browser/front-mcp/authorities-rules.check.mjs +15 -1
- package/browser/front-mcp/front-mcp.mjs +4 -6
- package/browser/index.cjs +23640 -16042
- package/browser/index.mjs +37 -2
- package/browser/job/execution/job-execution.manager.mjs +39 -5
- package/browser/job/job-scope.helper.mjs +21 -0
- package/browser/job/store/memory-job-state.store.mjs +5 -0
- package/browser/job/store/redis-job-state.store.mjs +11 -0
- package/browser/job/store/storage-job-state.store.mjs +18 -2
- package/browser/notification/notification.service.mjs +36 -6
- package/browser/provider/create-container.mjs +20 -9
- package/browser/provider/provider.lifecycle.mjs +4 -0
- package/browser/provider/provider.registry.mjs +55 -11
- package/browser/scope/event-publisher.providers.mjs +32 -0
- package/browser/scope/scope.instance.mjs +34 -21
- package/browser/skill/skill-instructions.helper.mjs +12 -6
- package/browser/subsystems.mjs +3 -0
- package/browser/tool/flows/tools-list.flow.mjs +3 -33
- package/browser/transport/adapters/transport.local.adapter.mjs +9 -2
- package/browser/transport/build-scoped-server-options.mjs +5 -1
- package/browser/transport/flows/handle.mcp-20260728.flow.mjs +76 -3
- package/browser/transport/in-memory-server.mjs +3 -0
- package/browser/transport/mcp-20260728/discover.mjs +1 -0
- package/browser/transport/mcp-20260728/event-stream-response.mjs +44 -0
- package/browser/transport/mcp-20260728/index.mjs +2 -1
- package/browser/transport/mcp-20260728/protocol-20260728.constants.mjs +8 -1
- package/browser/transport/mcp-20260728/request-validation.mjs +9 -5
- package/browser/transport/mcp-handlers/events-list-request.handler.mjs +23 -0
- package/browser/transport/mcp-handlers/events-poll-request.handler.mjs +23 -0
- package/browser/transport/mcp-handlers/events-stream-request.handler.mjs +44 -0
- package/browser/transport/mcp-handlers/events-subscribe-request.handler.mjs +23 -0
- package/browser/transport/mcp-handlers/events-unsubscribe-request.handler.mjs +25 -0
- package/browser/transport/mcp-handlers/index.mjs +13 -0
- package/browser/transport/mcp-handlers/initialize-request.handler.mjs +3 -1
- package/browser/transport/stdio-revision-router.mjs +29 -2
- package/browser/worker/worker.lifecycle.mjs +199 -0
- package/browser/worker/worker.supervisor.mjs +111 -0
- package/browser/workflow/tools/register-workflow.tool.mjs +3 -3
- package/browser/workflow/trigger/workflow-events.mjs +3 -1
- package/browser/workflow/trigger/workflow-schedules.mjs +173 -0
- package/browser/workflow/trigger/workflow-triggers.mjs +31 -0
- package/channel/channel-notification.service.d.ts +5 -2
- package/channel/channel-notification.service.d.ts.map +1 -1
- package/channel/channel-scope.helper.d.ts +4 -1
- package/channel/channel-scope.helper.d.ts.map +1 -1
- package/channel/channel.instance.d.ts +7 -1
- package/channel/channel.instance.d.ts.map +1 -1
- package/channel/channel.utils.d.ts +20 -0
- package/channel/channel.utils.d.ts.map +1 -1
- package/channel/sources/app-event.source.d.ts +11 -2
- package/channel/sources/app-event.source.d.ts.map +1 -1
- package/channel/sources/file-watcher.source.d.ts +21 -0
- package/channel/sources/file-watcher.source.d.ts.map +1 -0
- package/channel/sources/index.d.ts +1 -0
- package/channel/sources/index.d.ts.map +1 -1
- package/common/decorators/duty.decorator.d.ts +3 -2
- package/common/decorators/duty.decorator.d.ts.map +1 -1
- package/common/decorators/event.decorator.d.ts +38 -0
- package/common/decorators/event.decorator.d.ts.map +1 -0
- package/common/decorators/index.d.ts +2 -0
- package/common/decorators/index.d.ts.map +1 -1
- package/common/decorators/worker.decorator.d.ts +13 -0
- package/common/decorators/worker.decorator.d.ts.map +1 -0
- package/common/entries/event.entry.d.ts +34 -0
- package/common/entries/event.entry.d.ts.map +1 -0
- package/common/entries/index.d.ts +1 -0
- package/common/entries/index.d.ts.map +1 -1
- package/common/entries/scope.entry.d.ts +3 -0
- package/common/entries/scope.entry.d.ts.map +1 -1
- package/common/interfaces/event.interface.d.ts +124 -0
- package/common/interfaces/event.interface.d.ts.map +1 -0
- package/common/interfaces/execution-context.interface.d.ts +3 -0
- package/common/interfaces/execution-context.interface.d.ts.map +1 -1
- package/common/interfaces/index.d.ts +2 -0
- package/common/interfaces/index.d.ts.map +1 -1
- package/common/interfaces/internal/registry.interface.d.ts +3 -1
- package/common/interfaces/internal/registry.interface.d.ts.map +1 -1
- package/common/interfaces/worker.interface.d.ts +13 -0
- package/common/interfaces/worker.interface.d.ts.map +1 -0
- package/common/metadata/agent.metadata.d.ts +1 -1
- package/common/metadata/app.metadata.d.ts +4 -1
- package/common/metadata/app.metadata.d.ts.map +1 -1
- package/common/metadata/channel.metadata.d.ts +40 -8
- package/common/metadata/channel.metadata.d.ts.map +1 -1
- package/common/metadata/duty.metadata.d.ts +67 -13
- package/common/metadata/duty.metadata.d.ts.map +1 -1
- package/common/metadata/duty.resolved.d.ts +4 -0
- package/common/metadata/duty.resolved.d.ts.map +1 -0
- package/common/metadata/event.metadata.d.ts +451 -0
- package/common/metadata/event.metadata.d.ts.map +1 -0
- package/common/metadata/front-mcp.metadata.d.ts +1652 -16
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/index.d.ts +4 -0
- package/common/metadata/index.d.ts.map +1 -1
- package/common/metadata/job.metadata.d.ts +1 -1
- package/common/metadata/prompt.metadata.d.ts +1 -1
- package/common/metadata/resource.metadata.d.ts +2 -2
- package/common/metadata/skill.metadata.d.ts +1 -1
- package/common/metadata/tool.metadata.d.ts +1 -1
- package/common/metadata/worker.metadata.d.ts +69 -0
- package/common/metadata/worker.metadata.d.ts.map +1 -0
- package/common/metadata/worker.resolved.d.ts +4 -0
- package/common/metadata/worker.resolved.d.ts.map +1 -0
- package/common/metadata/workflow.metadata.d.ts +31 -3
- package/common/metadata/workflow.metadata.d.ts.map +1 -1
- package/common/records/event.record.d.ts +21 -0
- package/common/records/event.record.d.ts.map +1 -0
- package/common/records/index.d.ts +1 -0
- package/common/records/index.d.ts.map +1 -1
- package/common/schemas/annotated-class.schema.d.ts +1 -0
- package/common/schemas/annotated-class.schema.d.ts.map +1 -1
- package/common/tokens/app.tokens.d.ts.map +1 -1
- package/common/tokens/event.tokens.d.ts +9 -0
- package/common/tokens/event.tokens.d.ts.map +1 -0
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -1
- package/common/tokens/index.d.ts +1 -0
- package/common/tokens/index.d.ts.map +1 -1
- package/common/tokens/workflow.tokens.d.ts +1 -0
- package/common/tokens/workflow.tokens.d.ts.map +1 -1
- package/common/utils/offset-cursor.utils.d.ts +5 -0
- package/common/utils/offset-cursor.utils.d.ts.map +1 -0
- package/common/utils/principal.utils.d.ts +11 -9
- package/common/utils/principal.utils.d.ts.map +1 -1
- package/common/utils/time-zone.utils.d.ts +3 -0
- package/common/utils/time-zone.utils.d.ts.map +1 -0
- package/direct/client.types.d.ts +8 -0
- package/direct/client.types.d.ts.map +1 -1
- package/direct/create.d.ts.map +1 -1
- package/direct/create.types.d.ts +3 -1
- package/direct/create.types.d.ts.map +1 -1
- package/direct/direct-events-transport.d.ts +20 -0
- package/direct/direct-events-transport.d.ts.map +1 -0
- package/direct/direct-server.d.ts +3 -0
- package/direct/direct-server.d.ts.map +1 -1
- package/direct/direct.types.d.ts +6 -0
- package/direct/direct.types.d.ts.map +1 -1
- package/duty/cron-schedule.d.ts +51 -0
- package/duty/cron-schedule.d.ts.map +1 -0
- package/duty/describe-thrown.d.ts +3 -0
- package/duty/describe-thrown.d.ts.map +1 -0
- package/duty/duty.lifecycle.d.ts +33 -4
- package/duty/duty.lifecycle.d.ts.map +1 -1
- package/duty/duty.runner.d.ts +49 -31
- package/duty/duty.runner.d.ts.map +1 -1
- package/duty/lazy-lease-store.d.ts +29 -0
- package/duty/lazy-lease-store.d.ts.map +1 -0
- package/duty/lease-holder.d.ts +73 -0
- package/duty/lease-holder.d.ts.map +1 -0
- package/duty/lease-store.d.ts +40 -0
- package/duty/lease-store.d.ts.map +1 -0
- package/elicitation/hooks/elicitation.hooks.d.ts +5 -5
- package/elicitation/questions/question-subject.d.ts +8 -3
- package/elicitation/questions/question-subject.d.ts.map +1 -1
- package/errors/duty.errors.d.ts +10 -0
- package/errors/duty.errors.d.ts.map +1 -1
- package/errors/event.errors.d.ts +73 -0
- package/errors/event.errors.d.ts.map +1 -0
- package/errors/index.d.ts +4 -1
- package/errors/index.d.ts.map +1 -1
- package/errors/worker.errors.d.ts +7 -0
- package/errors/worker.errors.d.ts.map +1 -0
- package/esm/index.mjs +38 -34
- package/event/delivery/event-metrics.d.ts +25 -0
- package/event/delivery/event-metrics.d.ts.map +1 -0
- package/event/delivery/event-outbox.d.ts +129 -0
- package/event/delivery/event-outbox.d.ts.map +1 -0
- package/event/event-channel.d.ts +21 -0
- package/event/event-channel.d.ts.map +1 -0
- package/event/event-dialect.d.ts +20 -0
- package/event/event-dialect.d.ts.map +1 -0
- package/event/event-gates.d.ts +23 -0
- package/event/event-gates.d.ts.map +1 -0
- package/event/event-outbound.d.ts +9 -0
- package/event/event-outbound.d.ts.map +1 -0
- package/event/event-publisher.d.ts +14 -0
- package/event/event-publisher.d.ts.map +1 -0
- package/event/event-reauthorization.d.ts +35 -0
- package/event/event-reauthorization.d.ts.map +1 -0
- package/event/event-scope.helper.d.ts +23 -0
- package/event/event-scope.helper.d.ts.map +1 -0
- package/event/event-subscriber.d.ts +12 -0
- package/event/event-subscriber.d.ts.map +1 -0
- package/event/event.instance.d.ts +15 -0
- package/event/event.instance.d.ts.map +1 -0
- package/event/event.registry.d.ts +97 -0
- package/event/event.registry.d.ts.map +1 -0
- package/event/event.utils.d.ts +6 -0
- package/event/event.utils.d.ts.map +1 -0
- package/event/flows/event-deliver.flow.d.ts +73 -0
- package/event/flows/event-deliver.flow.d.ts.map +1 -0
- package/event/flows/event-poll.flow.d.ts +105 -0
- package/event/flows/event-poll.flow.d.ts.map +1 -0
- package/event/flows/event-publish-http.flow.d.ts +114 -0
- package/event/flows/event-publish-http.flow.d.ts.map +1 -0
- package/event/flows/event-publish.flow.d.ts +109 -0
- package/event/flows/event-publish.flow.d.ts.map +1 -0
- package/event/flows/event-stream.flow.d.ts +78 -0
- package/event/flows/event-stream.flow.d.ts.map +1 -0
- package/event/flows/event-subscribe.flow.d.ts +132 -0
- package/event/flows/event-subscribe.flow.d.ts.map +1 -0
- package/event/flows/event-unsubscribe.flow.d.ts +71 -0
- package/event/flows/event-unsubscribe.flow.d.ts.map +1 -0
- package/event/flows/list-events.flow.d.ts +75 -0
- package/event/flows/list-events.flow.d.ts.map +1 -0
- package/event/index.d.ts +46 -0
- package/event/index.d.ts.map +1 -0
- package/event/poll/event-buffer.d.ts +54 -0
- package/event/poll/event-buffer.d.ts.map +1 -0
- package/event/poll/event-poll-leases.d.ts +63 -0
- package/event/poll/event-poll-leases.d.ts.map +1 -0
- package/event/publish-endpoint/event-publish-endpoint.d.ts +29 -0
- package/event/publish-endpoint/event-publish-endpoint.d.ts.map +1 -0
- package/event/publish-endpoint/event-publish-idempotency.d.ts +35 -0
- package/event/publish-endpoint/event-publish-idempotency.d.ts.map +1 -0
- package/event/replay/event-replays.d.ts +116 -0
- package/event/replay/event-replays.d.ts.map +1 -0
- package/event/stream/event-stream.d.ts +116 -0
- package/event/stream/event-stream.d.ts.map +1 -0
- package/event/stream/event-streams.d.ts +52 -0
- package/event/stream/event-streams.d.ts.map +1 -0
- package/event/subscription/event-callback-verifier.d.ts +58 -0
- package/event/subscription/event-callback-verifier.d.ts.map +1 -0
- package/event/subscription/event-subscription-store.factory.d.ts +31 -0
- package/event/subscription/event-subscription-store.factory.d.ts.map +1 -0
- package/event/subscription/event-subscription-termination.d.ts +25 -0
- package/event/subscription/event-subscription-termination.d.ts.map +1 -0
- package/event/subscription/event-subscription.store.d.ts +131 -0
- package/event/subscription/event-subscription.store.d.ts.map +1 -0
- package/event/subscription/event-subscriptions.d.ts +66 -0
- package/event/subscription/event-subscriptions.d.ts.map +1 -0
- package/event-client/event-client.errors.d.ts +35 -0
- package/event-client/event-client.errors.d.ts.map +1 -0
- package/event-client/event-webhook-receiver.d.ts +75 -0
- package/event-client/event-webhook-receiver.d.ts.map +1 -0
- package/event-client/events-client.d.ts +33 -0
- package/event-client/events-client.d.ts.map +1 -0
- package/event-client/events-client.types.d.ts +74 -0
- package/event-client/events-client.types.d.ts.map +1 -0
- package/event-client/index.d.ts +6 -0
- package/event-client/index.d.ts.map +1 -0
- package/front-mcp/authorities-rules.check.d.ts +5 -0
- package/front-mcp/authorities-rules.check.d.ts.map +1 -1
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/index.d.ts +70 -0
- package/index.d.ts.map +1 -1
- package/index.js +46 -42
- package/job/execution/job-execution.manager.d.ts +7 -0
- package/job/execution/job-execution.manager.d.ts.map +1 -1
- package/job/job-scope.helper.d.ts.map +1 -1
- package/job/store/job-state.interface.d.ts +2 -0
- package/job/store/job-state.interface.d.ts.map +1 -1
- package/job/store/memory-job-state.store.d.ts +1 -0
- package/job/store/memory-job-state.store.d.ts.map +1 -1
- package/job/store/redis-job-state.store.d.ts +3 -0
- package/job/store/redis-job-state.store.d.ts.map +1 -1
- package/job/store/storage-job-state.store.d.ts +1 -0
- package/job/store/storage-job-state.store.d.ts.map +1 -1
- package/notification/index.d.ts +1 -1
- package/notification/index.d.ts.map +1 -1
- package/notification/notification.service.d.ts +31 -2
- package/notification/notification.service.d.ts.map +1 -1
- package/package.json +11 -10
- package/provider/create-container.d.ts +14 -4
- package/provider/create-container.d.ts.map +1 -1
- package/provider/provider.lifecycle.d.ts +11 -1
- package/provider/provider.lifecycle.d.ts.map +1 -1
- package/provider/provider.registry.d.ts +18 -4
- package/provider/provider.registry.d.ts.map +1 -1
- package/scope/event-publisher.providers.d.ts +17 -0
- package/scope/event-publisher.providers.d.ts.map +1 -0
- package/scope/scope.instance.d.ts +6 -1
- package/scope/scope.instance.d.ts.map +1 -1
- package/shared/shared-attach.d.ts +3 -1
- package/shared/shared-attach.d.ts.map +1 -1
- package/shared/shared-server.lifecycle.d.ts +14 -5
- package/shared/shared-server.lifecycle.d.ts.map +1 -1
- package/skill/skill-instructions.helper.d.ts +10 -4
- package/skill/skill-instructions.helper.d.ts.map +1 -1
- package/subsystems.d.ts +1 -0
- package/subsystems.d.ts.map +1 -1
- package/tool/flows/tools-list.flow.d.ts +0 -11
- package/tool/flows/tools-list.flow.d.ts.map +1 -1
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -1
- package/transport/build-scoped-server-options.d.ts.map +1 -1
- package/transport/flows/handle.mcp-20260728.flow.d.ts +8 -2
- package/transport/flows/handle.mcp-20260728.flow.d.ts.map +1 -1
- package/transport/in-memory-server.d.ts.map +1 -1
- package/transport/mcp-20260728/discover.d.ts.map +1 -1
- package/transport/mcp-20260728/event-stream-response.d.ts +12 -0
- package/transport/mcp-20260728/event-stream-response.d.ts.map +1 -0
- package/transport/mcp-20260728/index.d.ts +1 -0
- package/transport/mcp-20260728/index.d.ts.map +1 -1
- package/transport/mcp-20260728/protocol-20260728.constants.d.ts.map +1 -1
- package/transport/mcp-20260728/request-validation.d.ts +2 -0
- package/transport/mcp-20260728/request-validation.d.ts.map +1 -1
- package/transport/mcp-handlers/events-list-request.handler.d.ts +5 -0
- package/transport/mcp-handlers/events-list-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/events-poll-request.handler.d.ts +5 -0
- package/transport/mcp-handlers/events-poll-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/events-stream-request.handler.d.ts +8 -0
- package/transport/mcp-handlers/events-stream-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/events-subscribe-request.handler.d.ts +5 -0
- package/transport/mcp-handlers/events-subscribe-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/events-unsubscribe-request.handler.d.ts +5 -0
- package/transport/mcp-handlers/events-unsubscribe-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/index.d.ts +162 -3
- package/transport/mcp-handlers/index.d.ts.map +1 -1
- package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -1
- package/transport/stdio-revision-router.d.ts +2 -0
- package/transport/stdio-revision-router.d.ts.map +1 -1
- package/worker/worker.lifecycle.d.ts +63 -0
- package/worker/worker.lifecycle.d.ts.map +1 -0
- package/worker/worker.supervisor.d.ts +62 -0
- package/worker/worker.supervisor.d.ts.map +1 -0
- package/workflow/tools/register-workflow.tool.d.ts +2 -1
- package/workflow/tools/register-workflow.tool.d.ts.map +1 -1
- package/workflow/trigger/workflow-events.d.ts.map +1 -1
- package/workflow/trigger/workflow-schedules.d.ts +76 -0
- package/workflow/trigger/workflow-schedules.d.ts.map +1 -0
- package/workflow/trigger/workflow-triggers.d.ts +16 -1
- package/workflow/trigger/workflow-triggers.d.ts.map +1 -1
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
// libs/sdk/src/workflow/trigger/workflow-schedules.ts
|
|
2
|
+
import { sha256Hex } from "@frontmcp/utils";
|
|
3
|
+
import { WorkflowTriggerPrincipal } from "../../common/index.mjs";
|
|
4
|
+
import { loadCronSchedule } from "../../duty/cron-schedule.mjs";
|
|
5
|
+
import { describeThrown } from "../../duty/describe-thrown.mjs";
|
|
6
|
+
import { DutyRunner } from "../../duty/duty.runner.mjs";
|
|
7
|
+
import {
|
|
8
|
+
isLongLivedProcess,
|
|
9
|
+
leaseKey,
|
|
10
|
+
leaseStorageConfig,
|
|
11
|
+
openLeaseStore
|
|
12
|
+
} from "../../duty/lease-store.mjs";
|
|
13
|
+
import { InvalidInputError, JobNotAuthorizedError } from "../../errors/index.mjs";
|
|
14
|
+
import { WorkflowTriggerConfigError } from "../../errors/workflow.errors.mjs";
|
|
15
|
+
import { resolveWorkflowSchedule, scheduleWorkflows } from "./workflow-triggers.mjs";
|
|
16
|
+
var SCHEDULE_LEASE_MS = 6e4;
|
|
17
|
+
var LEASE_STORE_RETRY_MS = SCHEDULE_LEASE_MS / 3;
|
|
18
|
+
async function loadWorkflowSchedule(workflow) {
|
|
19
|
+
const { cron, timezone } = resolveWorkflowSchedule(workflow);
|
|
20
|
+
return loadCronSchedule({ expression: cron, timezone }).catch((error) => {
|
|
21
|
+
throw new WorkflowTriggerConfigError(workflow.name, `schedule.cron "${cron}" can't be read: ${error.message}`);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async function assertWorkflowSchedules(workflows) {
|
|
25
|
+
for (const workflow of scheduleWorkflows(workflows)) await loadWorkflowSchedule(workflow);
|
|
26
|
+
}
|
|
27
|
+
var WorkflowSchedules = class {
|
|
28
|
+
/** Takes the workflow and job registries, the run manager, and the server name and Redis for leases. */
|
|
29
|
+
constructor(options) {
|
|
30
|
+
this.options = options;
|
|
31
|
+
}
|
|
32
|
+
options;
|
|
33
|
+
runners = /* @__PURE__ */ new Map();
|
|
34
|
+
storage;
|
|
35
|
+
unsubscribe;
|
|
36
|
+
followed = Promise.resolve();
|
|
37
|
+
leaseStoreRetry;
|
|
38
|
+
started = false;
|
|
39
|
+
stopped = false;
|
|
40
|
+
/** Start once the server serves, in a long-lived process only, and follow the workflows registered later. */
|
|
41
|
+
async onReady() {
|
|
42
|
+
if (this.started || this.stopped) return;
|
|
43
|
+
this.started = true;
|
|
44
|
+
const { workflows, logger } = this.options;
|
|
45
|
+
if (!isLongLivedProcess()) {
|
|
46
|
+
const names = scheduleWorkflows(workflows.getWorkflows(true)).map((workflow) => `"${workflow.name}"`);
|
|
47
|
+
if (names.length > 0) {
|
|
48
|
+
logger.warn(
|
|
49
|
+
`Scheduled workflows (${names.join(", ")}) do not run in a serverless or edge deployment: they need a long-lived process`
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
this.unsubscribe = workflows.subscribe({}, () => void this.follow());
|
|
55
|
+
await this.follow();
|
|
56
|
+
}
|
|
57
|
+
/** Stop every schedule and release its lease. */
|
|
58
|
+
async stop() {
|
|
59
|
+
this.stopped = true;
|
|
60
|
+
clearTimeout(this.leaseStoreRetry);
|
|
61
|
+
this.unsubscribe?.();
|
|
62
|
+
await this.follow();
|
|
63
|
+
await (await this.storage?.catch(() => void 0))?.disconnect();
|
|
64
|
+
}
|
|
65
|
+
/** Bring the running schedules in line with the registry, one change at a time. */
|
|
66
|
+
follow() {
|
|
67
|
+
this.followed = this.followed.then(() => this.followRegistry());
|
|
68
|
+
return this.followed;
|
|
69
|
+
}
|
|
70
|
+
/** Stop the runners of schedule workflows no longer registered, and start one for each new one. */
|
|
71
|
+
async followRegistry() {
|
|
72
|
+
const registered = this.stopped ? [] : scheduleWorkflows(this.options.workflows.getWorkflows(true));
|
|
73
|
+
const current = new Set(registered);
|
|
74
|
+
for (const [workflow, runner] of this.runners) {
|
|
75
|
+
if (current.has(workflow)) continue;
|
|
76
|
+
this.runners.delete(workflow);
|
|
77
|
+
await runner.stop();
|
|
78
|
+
}
|
|
79
|
+
const added = registered.filter((workflow) => !this.runners.has(workflow));
|
|
80
|
+
const storage = added.length > 0 ? await this.leaseStore(added) : void 0;
|
|
81
|
+
if (!storage) return;
|
|
82
|
+
for (const workflow of added) {
|
|
83
|
+
try {
|
|
84
|
+
const runner = await this.runnerOf(workflow, storage);
|
|
85
|
+
this.runners.set(workflow, runner);
|
|
86
|
+
await runner.start();
|
|
87
|
+
} catch (error) {
|
|
88
|
+
this.options.logger.error(
|
|
89
|
+
`The schedule of workflow "${workflow.name}" did not start: ${describeThrown(error)}`
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The lease store, opened once. When it fails to open, the workflows waiting on it are logged once until it opens,
|
|
96
|
+
* and it is opened again a while later unless the schedules stopped.
|
|
97
|
+
*/
|
|
98
|
+
async leaseStore(waiting) {
|
|
99
|
+
const { redis, logger } = this.options;
|
|
100
|
+
this.storage ??= openLeaseStore(leaseStorageConfig(redis, "schedule", this.leaseScope()));
|
|
101
|
+
try {
|
|
102
|
+
const storage = await this.storage;
|
|
103
|
+
clearTimeout(this.leaseStoreRetry);
|
|
104
|
+
this.leaseStoreRetry = void 0;
|
|
105
|
+
return storage;
|
|
106
|
+
} catch (error) {
|
|
107
|
+
this.storage = void 0;
|
|
108
|
+
if (!this.leaseStoreRetry) {
|
|
109
|
+
for (const workflow of waiting) {
|
|
110
|
+
logger.error(`The schedule of workflow "${workflow.name}" did not start: ${describeThrown(error)}`);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (!this.stopped) {
|
|
114
|
+
clearTimeout(this.leaseStoreRetry);
|
|
115
|
+
this.leaseStoreRetry = setTimeout(() => void this.follow(), LEASE_STORE_RETRY_MS);
|
|
116
|
+
this.leaseStoreRetry.unref?.();
|
|
117
|
+
}
|
|
118
|
+
return void 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
/** A cluster lease with Redis, a workspace one without. */
|
|
122
|
+
leaseScope() {
|
|
123
|
+
return leaseStorageConfig(this.options.redis, "schedule", "cluster").type === "redis" ? "cluster" : "workspace";
|
|
124
|
+
}
|
|
125
|
+
/** A cron runner for the workflow's schedule, on a lease in `storage`. */
|
|
126
|
+
async runnerOf(workflow, storage) {
|
|
127
|
+
const { serverName, logger } = this.options;
|
|
128
|
+
const { input } = resolveWorkflowSchedule(workflow);
|
|
129
|
+
const cron = await loadWorkflowSchedule(workflow);
|
|
130
|
+
const key = leaseKey(workflow.name, this.leaseScope(), serverName);
|
|
131
|
+
return new DutyRunner({
|
|
132
|
+
name: workflow.name,
|
|
133
|
+
label: `The schedule of workflow "${workflow.name}"`,
|
|
134
|
+
key,
|
|
135
|
+
cron,
|
|
136
|
+
owedUntilRun: true,
|
|
137
|
+
leaseMs: SCHEDULE_LEASE_MS,
|
|
138
|
+
storage,
|
|
139
|
+
logger,
|
|
140
|
+
run: (_context, scheduledAt) => this.startRun(workflow, input, scheduledRunId(key, scheduledAt))
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/** Start the scheduled run with this id as the schedule's role, unless it exists; failures are logged. */
|
|
144
|
+
async startRun(workflow, input, runId) {
|
|
145
|
+
const { manager, jobs, authoritiesContextBuilder, logger } = this.options;
|
|
146
|
+
const principal = new WorkflowTriggerPrincipal("schedule", workflow.name);
|
|
147
|
+
try {
|
|
148
|
+
const started = await manager.startWorkflowRunOnce(workflow, jobs, runId, {
|
|
149
|
+
authInfo: principal.toAuthInfo(),
|
|
150
|
+
authoritiesContextBuilder: authoritiesContextBuilder(),
|
|
151
|
+
workflowInput: input
|
|
152
|
+
});
|
|
153
|
+
if (!started) logger.verbose(`The schedule of workflow "${workflow.name}" already started run ${runId}`);
|
|
154
|
+
} catch (error) {
|
|
155
|
+
logger.warn(`The schedule did not start workflow "${workflow.name}": ${whyNotStarted(error, principal.role)}`);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
function scheduledRunId(leaseKey2, scheduledAt) {
|
|
160
|
+
return `schedule-${scheduledAt}-${sha256Hex(leaseKey2).slice(0, 16)}`;
|
|
161
|
+
}
|
|
162
|
+
function whyNotStarted(error, role) {
|
|
163
|
+
if (error instanceof JobNotAuthorizedError) {
|
|
164
|
+
return `its create or execute rules don't allow the role "${role}"; add it to their roles`;
|
|
165
|
+
}
|
|
166
|
+
return error instanceof InvalidInputError ? error.getInternalMessage() : describeThrown(error);
|
|
167
|
+
}
|
|
168
|
+
export {
|
|
169
|
+
WorkflowSchedules,
|
|
170
|
+
assertWorkflowSchedules,
|
|
171
|
+
loadWorkflowSchedule,
|
|
172
|
+
scheduledRunId
|
|
173
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// libs/sdk/src/workflow/trigger/workflow-triggers.ts
|
|
2
2
|
import { isHttpRoutePath } from "../../common/metadata/http-route.metadata.mjs";
|
|
3
|
+
import { isIanaTimeZone } from "../../common/utils/time-zone.utils.mjs";
|
|
3
4
|
import { WorkflowTriggerConfigError } from "../../errors/workflow.errors.mjs";
|
|
4
5
|
var MIN_WORKFLOW_WEBHOOK_SECRET_LENGTH = 32;
|
|
5
6
|
var DEFAULT_WORKFLOW_WEBHOOK_MAX_BODY_BYTES = 1048576;
|
|
@@ -12,6 +13,9 @@ function webhookWorkflows(workflows) {
|
|
|
12
13
|
function eventWorkflows(workflows) {
|
|
13
14
|
return workflows.filter((workflow) => workflow.metadata.trigger === "event");
|
|
14
15
|
}
|
|
16
|
+
function scheduleWorkflows(workflows) {
|
|
17
|
+
return workflows.filter((workflow) => workflow.metadata.trigger === "schedule");
|
|
18
|
+
}
|
|
15
19
|
function workflowEventName(workflow) {
|
|
16
20
|
return workflow.metadata.event ?? workflow.name;
|
|
17
21
|
}
|
|
@@ -40,7 +44,32 @@ function assertWorkflowTriggers(workflows) {
|
|
|
40
44
|
"event is set, but trigger is not 'event': set trigger: 'event' to listen to it, or remove event"
|
|
41
45
|
);
|
|
42
46
|
}
|
|
47
|
+
if (workflow.metadata.trigger === "schedule") {
|
|
48
|
+
resolveWorkflowSchedule(workflow);
|
|
49
|
+
} else if (workflow.metadata.schedule !== void 0) {
|
|
50
|
+
throw new WorkflowTriggerConfigError(
|
|
51
|
+
workflow.name,
|
|
52
|
+
"schedule is set, but trigger is not 'schedule': set trigger: 'schedule' to run it on that schedule, or remove schedule"
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function resolveWorkflowSchedule(workflow) {
|
|
58
|
+
const { schedule } = workflow.metadata;
|
|
59
|
+
if (!schedule) {
|
|
60
|
+
throw new WorkflowTriggerConfigError(
|
|
61
|
+
workflow.name,
|
|
62
|
+
`trigger: 'schedule' needs schedule.cron, a cron expression such as "0 9 * * 1-5", and the server does not start without it`
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
const timezone = schedule.timezone ?? "UTC";
|
|
66
|
+
if (!isIanaTimeZone(timezone)) {
|
|
67
|
+
throw new WorkflowTriggerConfigError(
|
|
68
|
+
workflow.name,
|
|
69
|
+
`schedule.timezone "${timezone}" is not an IANA time zone such as "Europe/Berlin"`
|
|
70
|
+
);
|
|
43
71
|
}
|
|
72
|
+
return { cron: schedule.cron, timezone, input: schedule.input ?? {} };
|
|
44
73
|
}
|
|
45
74
|
function resolveWorkflowWebhook(workflow) {
|
|
46
75
|
const webhook = workflow.metadata.webhook ?? {};
|
|
@@ -73,7 +102,9 @@ export {
|
|
|
73
102
|
MIN_WORKFLOW_WEBHOOK_SECRET_LENGTH,
|
|
74
103
|
assertWorkflowTriggers,
|
|
75
104
|
eventWorkflows,
|
|
105
|
+
resolveWorkflowSchedule,
|
|
76
106
|
resolveWorkflowWebhook,
|
|
107
|
+
scheduleWorkflows,
|
|
77
108
|
webhookWorkflows,
|
|
78
109
|
workflowEventName,
|
|
79
110
|
workflowWebhookPath
|
|
@@ -26,8 +26,9 @@ export interface ChannelSendInput {
|
|
|
26
26
|
* Service responsible for sending channel notifications to subscribed Claude Code sessions.
|
|
27
27
|
*
|
|
28
28
|
* **Session-scoped delivery:** Notifications are ONLY sent to sessions that:
|
|
29
|
-
* 1.
|
|
29
|
+
* 1. Are channel capable: the stdio session, or one whose client declared `experimental: { 'claude/channel': {} }`
|
|
30
30
|
* 2. Are subscribed to the specific channel via `subscribeChannel()`
|
|
31
|
+
* 3. Were last seen with credentials that have not expired since (`hasExpiredCaller()`)
|
|
31
32
|
*
|
|
32
33
|
* This prevents data leaking between sessions — each session only receives
|
|
33
34
|
* notifications from channels it has explicitly subscribed to.
|
|
@@ -53,7 +54,7 @@ export declare class ChannelNotificationService {
|
|
|
53
54
|
* the specific channel name.
|
|
54
55
|
*
|
|
55
56
|
* @param content - The notification content
|
|
56
|
-
* @param meta - Metadata (must include `source` for the channel name)
|
|
57
|
+
* @param meta - Metadata (must include `source` for the channel name); a key Claude Code would drop is made safe
|
|
57
58
|
*/
|
|
58
59
|
sendToSubscribedSessions(content: string, meta: ChannelNotificationMeta): void;
|
|
59
60
|
/**
|
|
@@ -78,6 +79,8 @@ export declare class ChannelNotificationService {
|
|
|
78
79
|
* @returns true if the notification was sent
|
|
79
80
|
*/
|
|
80
81
|
sendToSession(sessionId: string, content: string, meta: ChannelNotificationMeta): boolean;
|
|
82
|
+
/** The notification's `meta` with the keys Claude Code takes (see `channelMetaOf`); `source` stays the channel name. */
|
|
83
|
+
private safeMetaOf;
|
|
81
84
|
/**
|
|
82
85
|
* Send a channel notification with the given channel name as source, to the sessions subscribed to
|
|
83
86
|
* that channel. It runs the hookable `channels:send-notification` flow, which adds
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel-notification.service.d.ts","sourceRoot":"","sources":["../../src/channel/channel-notification.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,
|
|
1
|
+
{"version":3,"file":"channel-notification.service.d.ts","sourceRoot":"","sources":["../../src/channel/channel-notification.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,O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AKG;IACH,MAAM,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE,qBAAqB,GAAG,MAAM,IAAI;IAQnF;;;OAGG;IACH,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,GAAG,IAAI;IAI9E;;;;;;;;OAQG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,GAAG,OAAO;IAyCzF,wHAAwH;IACxH,OAAO,CAAC,UAAU;IAIlB;;;;;;;;;;OAUG;IACG,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAYzG"}
|
|
@@ -44,7 +44,10 @@ export interface ChannelCapabilitiesResult {
|
|
|
44
44
|
channelRegistry: ChannelRegistry;
|
|
45
45
|
channelNotificationService: ChannelNotificationService;
|
|
46
46
|
channelEventBus: ChannelEventBus;
|
|
47
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* Runs each service channel's `onConnect()`, and starts the watch of each file-watcher channel that defines none:
|
|
49
|
+
* call it once the scope serves the registry and notification service.
|
|
50
|
+
*/
|
|
48
51
|
connectServices: () => Promise<void>;
|
|
49
52
|
/** Teardown function: disconnects services and cleans up subscriptions */
|
|
50
53
|
teardown: () => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel-scope.helper.d.ts","sourceRoot":"","sources":["../../src/channel/channel-scope.helper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAA6B,MAAM,WAAW,CAAC;AAC/F,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO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CAAC;IACxD,cAAc,EAAE,qBAAqB,CAAC;IACtC,mHAAmH;IACnH,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,6EAA6E;IAC7E,qBAAqB,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,KAAK,MAAM,IAAI,CAAC;IACrE,yEAAyE;IACzE,mBAAmB,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,KAAK,MAAM,IAAI,CAAC;IACnE;;;;OAIG;IACH,IAAI,CAAC,EAAE;QACL,MAAM,EAAE,kBAAkB,CAAC;QAC3B,aAAa,EAAE,eAAe,CAAC;QAC/B,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;KACjC,CAAC;IACF,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,MAAM,WAAW,yBAAyB;IACxC,eAAe,EAAE,eAAe,CAAC;IACjC,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,eAAe,EAAE,eAAe,CAAC;IACjC;;;OAGG;IACH,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,0EAA0E;IAC1E,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAsB,2BAA2B,CAC/C,IAAI,EAAE,+BAA+B,GACpC,OAAO,CAAC,yBAAyB,CAAC,CA+LpC"}
|
|
@@ -6,7 +6,9 @@ import type { ChannelNotificationService } from './channel-notification.service'
|
|
|
6
6
|
* Concrete implementation of a channel that can receive events and push notifications.
|
|
7
7
|
*
|
|
8
8
|
* For service connector channels (source: { type: 'service' }), maintains a persistent
|
|
9
|
-
* ChannelContext that is connected on init and disconnected on teardown.
|
|
9
|
+
* ChannelContext that is connected on init and disconnected on teardown. A file-watcher
|
|
10
|
+
* channel is connected the same way, and its declared paths are watched while it is, unless
|
|
11
|
+
* it defines its own onConnect().
|
|
10
12
|
*
|
|
11
13
|
* **Scope Binding:** The ChannelInstance captures its scope and providers at construction time.
|
|
12
14
|
*/
|
|
@@ -19,6 +21,8 @@ export declare class ChannelInstance extends ChannelEntry {
|
|
|
19
21
|
private _channelNotificationService?;
|
|
20
22
|
/** Persistent context for service connectors (kept alive for the lifetime of the scope) */
|
|
21
23
|
private _serviceContext?;
|
|
24
|
+
/** Ends the watch of a file-watcher source's paths; set while the channel is connected */
|
|
25
|
+
private _stopFileWatch?;
|
|
22
26
|
/** Replay buffer for events that arrive when no sessions are connected */
|
|
23
27
|
private _replayBuffer;
|
|
24
28
|
/** Maximum replay buffer size */
|
|
@@ -38,10 +42,12 @@ export declare class ChannelInstance extends ChannelEntry {
|
|
|
38
42
|
/**
|
|
39
43
|
* Connect the service connector (called after notification service is wired).
|
|
40
44
|
* Creates a persistent context, wires pushIncoming, and calls onConnect().
|
|
45
|
+
* A file-watcher source then starts watching its declared paths, unless the channel connects itself.
|
|
41
46
|
*/
|
|
42
47
|
connectService(): Promise<void>;
|
|
43
48
|
/**
|
|
44
49
|
* Disconnect the service connector (called during scope teardown).
|
|
50
|
+
* The watch of a file-watcher source ends first.
|
|
45
51
|
*/
|
|
46
52
|
disconnectService(): Promise<void>;
|
|
47
53
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.instance.d.ts","sourceRoot":"","sources":["../../src/channel/channel.instance.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,YAAY,EAKZ,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,UAAU,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,KAAK,gBAAg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rC;;;OAGG;IACG,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAexC;;OAEG;IACH,IAAI,cAAc,IAAI,cAAc,GAAG,SAAS,CAE/C;IAED;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,cAAc;IAwBlE;;OAEG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,SAAS,mBAAmB,EAAE,CAEjD;IAED;;;;;;;;;;;;;;;;OAgBG;IACG,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA2B/G;;;;;;OAMG;IACH,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAsB/C;;OAEG;IACH,iBAAiB,IAAI,IAAI;IAIzB;;;;;;;;OAQG;IACG,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAelG;;;;OAIG;IACG,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAa/E"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
+
import type { ServerCapabilities } from '@frontmcp/protocol';
|
|
2
3
|
import type { ChannelType } from '../common/interfaces/channel.interface';
|
|
3
4
|
import { type ChannelRecord } from '../common/records/channel.record';
|
|
4
5
|
/**
|
|
@@ -6,6 +7,25 @@ import { type ChannelRecord } from '../common/records/channel.record';
|
|
|
6
7
|
* This is an experimental extension, not part of the standard MCP spec.
|
|
7
8
|
*/
|
|
8
9
|
export declare const CHANNEL_NOTIFICATION_METHOD = "notifications/claude/channel";
|
|
10
|
+
/** What `servesClaudeCodeChannels()` reads of a scope: its channels, and its events with the `channel` option. */
|
|
11
|
+
export interface ClaudeCodeChannelScope {
|
|
12
|
+
channels?: {
|
|
13
|
+
hasAny(): boolean;
|
|
14
|
+
};
|
|
15
|
+
events?: {
|
|
16
|
+
getChannelEvents(): readonly unknown[];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/** Whether a scope pushes into Claude Code sessions: it has a channel, or an event with `channel`. */
|
|
20
|
+
export declare function servesClaudeCodeChannels(scope: ClaudeCodeChannelScope): boolean;
|
|
21
|
+
/** The capability a scope that pushes into Claude Code sessions advertises: `experimental['claude/channel']`. */
|
|
22
|
+
export declare function channelCapabilitiesOf(scope: ClaudeCodeChannelScope): Partial<ServerCapabilities>;
|
|
23
|
+
/**
|
|
24
|
+
* A notification's `meta` as Claude Code takes it. Claude Code drops a key that has anything but letters, digits
|
|
25
|
+
* and underscores, so any other character becomes `_`. A key that is empty, and a value that is not there, are left
|
|
26
|
+
* out. Every other value is sent as a string.
|
|
27
|
+
*/
|
|
28
|
+
export declare function channelMetaOf(meta: Record<string, unknown>): Record<string, string>;
|
|
9
29
|
/**
|
|
10
30
|
* Normalize a ChannelType (class, function, or descriptor) into a ChannelRecord.
|
|
11
31
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.utils.d.ts","sourceRoot":"","sources":["../../src/channel/channel.utils.ts"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"channel.utils.d.ts","sourceRoot":"","sources":["../../src/channel/channel.utils.ts"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAI7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAE1E,OAAO,EAAe,KAAK,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEnF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,iCAAiC,CAAC;AAE1E,kHAAkH;AAClH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE;QAAE,MAAM,IAAI,OAAO,CAAA;KAAE,CAAC;IACjC,MAAM,CAAC,EAAE;QAAE,gBAAgB,IAAI,SAAS,OAAO,EAAE,CAAA;KAAE,CAAC;CACrD;AAED,sGAAsG;AACtG,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAG/E;AAED,iHAAiH;AACjH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAGhG;AAID;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQnF;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,WAAW,GAAG,aAAa,GAAG,aAAa,CAiChF;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,CAAC,WAAW,GAAG,aAAa,CAAC,EAAE,GAAG,aAAa,EAAE,CAE/F"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { FrontMcpLogger } from '../../common';
|
|
2
2
|
import type { ChannelInstance } from '../channel.instance';
|
|
3
3
|
type EventHandler = (payload: unknown) => void;
|
|
4
|
+
/** How a handler listens: a `trusted` one runs inside the server and also hears events meant for some owners only. */
|
|
5
|
+
export interface ChannelEventHandlerOptions {
|
|
6
|
+
trusted?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** How an event is emitted: `forSomeOwners` reaches trusted handlers only, never a channel that tells every session. */
|
|
9
|
+
export interface ChannelEventEmitOptions {
|
|
10
|
+
forSomeOwners?: boolean;
|
|
11
|
+
}
|
|
4
12
|
/**
|
|
5
13
|
* In-process event bus for app-event channel sources.
|
|
6
14
|
*
|
|
@@ -17,6 +25,7 @@ type EventHandler = (payload: unknown) => void;
|
|
|
17
25
|
*/
|
|
18
26
|
export declare class ChannelEventBus {
|
|
19
27
|
private readonly handlers;
|
|
28
|
+
private readonly trustedHandlers;
|
|
20
29
|
private readonly logger;
|
|
21
30
|
constructor(logger: FrontMcpLogger);
|
|
22
31
|
/**
|
|
@@ -26,14 +35,14 @@ export declare class ChannelEventBus {
|
|
|
26
35
|
* @param handler - The handler function called with the event payload
|
|
27
36
|
* @returns Unsubscribe function
|
|
28
37
|
*/
|
|
29
|
-
on(event: string, handler: EventHandler): () => void;
|
|
38
|
+
on(event: string, handler: EventHandler, options?: ChannelEventHandlerOptions): () => void;
|
|
30
39
|
/**
|
|
31
40
|
* Emit an event to all subscribed handlers.
|
|
32
41
|
*
|
|
33
42
|
* @param event - The event name
|
|
34
43
|
* @param payload - The event payload
|
|
35
44
|
*/
|
|
36
|
-
emit(event: string, payload: unknown): void;
|
|
45
|
+
emit(event: string, payload: unknown, options?: ChannelEventEmitOptions): void;
|
|
37
46
|
/**
|
|
38
47
|
* Remove all handlers.
|
|
39
48
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-event.source.d.ts","sourceRoot":"","sources":["../../../src/channel/sources/app-event.source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,KAAK,YAAY,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;AAE/C;;;;;;;;;;;;;GAaG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwC;IACjE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiB;gBAE5B,MAAM,EAAE,cAAc;IAIlC;;;;;;OAMG;IACH,EAAE,C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
|
|
1
|
+
import { ChannelContext, type FrontMcpLogger } from '../../common';
|
|
2
|
+
import type { ChannelFileWatcherSource } from '../../common/metadata/channel.metadata';
|
|
3
|
+
import type { ChannelInstance } from '../channel.instance';
|
|
4
|
+
/**
|
|
5
|
+
* Whether a channel defines its own `onConnect()`, on its class or on a class it extends. Such a channel watches by
|
|
6
|
+
* itself, as every file-watcher channel did before the framework watched, so its declared paths are left to it.
|
|
7
|
+
*/
|
|
8
|
+
export declare function connectsItself(context: ChannelContext): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Wires a file-watcher channel source: watches the declared paths and hands each file event to the channel as a
|
|
11
|
+
* `ChannelFileEvent`. A channel that defines its own `onConnect()` watches by itself, and nothing is watched in a
|
|
12
|
+
* serverless, edge or browser runtime. A watch that fails is logged, and the channel stays connected.
|
|
13
|
+
*
|
|
14
|
+
* @param channel - The channel instance to push notifications to
|
|
15
|
+
* @param context - The connected context of the channel
|
|
16
|
+
* @param sourceConfig - The file-watcher source configuration
|
|
17
|
+
* @param logger - Logger instance
|
|
18
|
+
* @returns The function that ends the watch
|
|
19
|
+
*/
|
|
20
|
+
export declare function wireFileWatcherSource(channel: ChannelInstance, context: ChannelContext, sourceConfig: ChannelFileWatcherSource, logger: FrontMcpLogger): () => void;
|
|
21
|
+
//# sourceMappingURL=file-watcher.source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-watcher.source.d.ts","sourceRoot":"","sources":["../../../src/channel/sources/file-watcher.source.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,KAAK,EAAoB,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAEzG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAmB3D;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAE/D;AAsCD;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,cAAc,EACvB,YAAY,EAAE,wBAAwB,EACtC,MAAM,EAAE,cAAc,GACrB,MAAM,IAAI,CAsBZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/channel/sources/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/channel/sources/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC"}
|
|
@@ -3,8 +3,9 @@ import { type DutyInterface } from '../interfaces/duty.interface';
|
|
|
3
3
|
import { type DutyMetadata } from '../metadata/duty.metadata';
|
|
4
4
|
type DutyClass = abstract new (...args: never[]) => DutyInterface;
|
|
5
5
|
/**
|
|
6
|
-
* Marks a provider class as a duty: once the server serves, `run()` is called every `every
|
|
7
|
-
* of the machine
|
|
6
|
+
* Marks a provider class as a duty: once the server serves, `run()` is called every `every`, or at the times of
|
|
7
|
+
* `cron`, in exactly one process of the machine, the project or the cluster (`scope`), the one that holds the duty's
|
|
8
|
+
* lease. Register it in `providers`.
|
|
8
9
|
*/
|
|
9
10
|
export declare function Duty(metadata: DutyMetadata): (target: DutyClass) => void;
|
|
10
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duty.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/duty.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"duty.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/duty.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAIlF,KAAK,SAAS,GAAG,QAAQ,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,aAAa,CAAC;AAElE;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,QAAQ,EAAE,YAAY,GAAG,CAAC,MAAM,EAAE,SAAS,KAAK,IAAI,CAaxE"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
import { type EventContext, type EventFunction, type EventHandlers, type EventTyping } from '../interfaces';
|
|
3
|
+
import { type EventMetadata, type EventSchemaOutput, type EventSchemaType } from '../metadata';
|
|
4
|
+
type InputOfSchema<Schema> = [Schema] extends [never] ? Record<string, never> : EventSchemaOutput<Schema>;
|
|
5
|
+
type EventClass = abstract new (...args: never[]) => unknown;
|
|
6
|
+
/** The subscription arguments of an event: of its `@Event` class, its `event()` function, or its options. */
|
|
7
|
+
export type EventInputOf<T> = T extends {
|
|
8
|
+
payloadSchema: unknown;
|
|
9
|
+
} ? T extends {
|
|
10
|
+
inputSchema: infer Schema;
|
|
11
|
+
} ? EventSchemaOutput<Schema> : Record<string, never> : T extends abstract new (...args: never[]) => EventTyping<infer In, unknown> ? In : T extends EventTyping<infer In, unknown> ? In : never;
|
|
12
|
+
/** The `data` of an event's occurrences: of its `@Event` class, its `event()` function, or its options. */
|
|
13
|
+
export type EventPayloadOf<T> = T extends {
|
|
14
|
+
payloadSchema: infer Schema;
|
|
15
|
+
} ? EventSchemaOutput<Schema> : T extends abstract new (...args: never[]) => EventTyping<unknown, infer Payload> ? Payload : T extends EventTyping<unknown, infer Payload> ? Payload : never;
|
|
16
|
+
type MustExtendEventContext<C extends EventClass> = C extends abstract new (...args: never[]) => EventContext<unknown, unknown> ? unknown : {
|
|
17
|
+
'Event class error': 'Class must extend EventContext';
|
|
18
|
+
};
|
|
19
|
+
type TypeMismatch<Subject extends string, Expected, Declared> = {
|
|
20
|
+
'Event class error': `EventContext declares another ${Subject} type than the schema`;
|
|
21
|
+
expected: Expected;
|
|
22
|
+
declared: Declared;
|
|
23
|
+
};
|
|
24
|
+
/** A class that leaves an EventContext type at its default is not checked against the schema. */
|
|
25
|
+
type MustDeclare<Subject extends string, Expected, Declared> = Record<string, unknown> extends Declared ? unknown : [Declared] extends [Expected] ? [Expected] extends [Declared] ? unknown : TypeMismatch<Subject, Expected, Declared> : TypeMismatch<Subject, Expected, Declared>;
|
|
26
|
+
type EventDecorator = <InSchema extends EventSchemaType = never, PayloadSchema extends EventSchemaType = EventSchemaType>(metadata: EventMetadata<InSchema, PayloadSchema>) => <C extends EventClass>(target: C & MustExtendEventContext<C> & MustDeclare<'arguments', InputOfSchema<InSchema>, EventInputOf<C>> & MustDeclare<'payload', EventSchemaOutput<PayloadSchema>, EventPayloadOf<C>>) => void;
|
|
27
|
+
type EventOptions<InSchema extends EventSchemaType, PayloadSchema extends EventSchemaType> = EventMetadata<InSchema, PayloadSchema> & EventHandlers<InputOfSchema<InSchema>, EventSchemaOutput<PayloadSchema>> & ThisType<EventContext<InputOfSchema<InSchema>, EventSchemaOutput<PayloadSchema>>>;
|
|
28
|
+
/** Function builder for events: the metadata of `@Event`, with the optional methods of `EventContext` beside it. */
|
|
29
|
+
declare function frontMcpEvent<InSchema extends EventSchemaType = never, PayloadSchema extends EventSchemaType = EventSchemaType>(options: EventOptions<InSchema, PayloadSchema>): EventFunction<InputOfSchema<InSchema>, EventSchemaOutput<PayloadSchema>>;
|
|
30
|
+
/** Whether a value is a class decorated with `@Event`. */
|
|
31
|
+
export declare function isEventClass(target: unknown): boolean;
|
|
32
|
+
/** Whether a value is what `event()` returned. */
|
|
33
|
+
export declare function isEventFunction(target: unknown): boolean;
|
|
34
|
+
/** Marks a class that extends `EventContext` as an event clients can list and subscribe to. */
|
|
35
|
+
declare const FrontMcpEvent: EventDecorator;
|
|
36
|
+
declare const Event: EventDecorator;
|
|
37
|
+
export { FrontMcpEvent, Event, frontMcpEvent, frontMcpEvent as event };
|
|
38
|
+
//# sourceMappingURL=event.decorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/event.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5G,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AAsBrB,KAAK,aAAa,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAE1G,KAAK,UAAU,GAAG,QAAQ,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,CAAC;AAE7D,6GAA6G;AAC7G,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,aAAa,EAAE,OAAO,CAAA;CAAE,GAC9D,CAAC,SAAS;IAAE,WAAW,EAAE,MAAM,MAAM,CAAA;CAAE,GACrC,iBAAiB,CAAC,MAAM,CAAC,GACzB,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACvB,CAAC,SAAS,QAAQ,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,WAAW,CAAC,MAAM,EAAE,EAAE,OAAO,CAAC,GACzE,EAAE,GACF,CAA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AK,gBAAgB,CAAC;AAE5B,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,IAAI,KAAK,EAAE,CAAC"}
|
|
@@ -15,6 +15,8 @@ export * from './skill.decorator';
|
|
|
15
15
|
export * from './job.decorator';
|
|
16
16
|
export * from './workflow.decorator';
|
|
17
17
|
export * from './channel.decorator';
|
|
18
|
+
export * from './event.decorator';
|
|
18
19
|
export * from './duty.decorator';
|
|
20
|
+
export * from './worker.decorator';
|
|
19
21
|
export * from './http-route.decorator';
|
|
20
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
import { type WorkerInterface } from '../interfaces/worker.interface';
|
|
3
|
+
import { type WorkerMetadata } from '../metadata/worker.metadata';
|
|
4
|
+
type WorkerClass = abstract new (...args: never[]) => WorkerInterface;
|
|
5
|
+
/**
|
|
6
|
+
* Marks a provider class as a worker: once the server serves, `run()` is started and kept running, restarted after a
|
|
7
|
+
* wait when it returns or throws, until the server shuts down. With a `scope` other than `'process'`, it runs in
|
|
8
|
+
* exactly one process of the machine, the project or the cluster, the one that holds the worker's lease. Register it
|
|
9
|
+
* in `providers`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function Worker(metadata: WorkerMetadata): (target: WorkerClass) => void;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=worker.decorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/worker.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAIxF,KAAK,WAAW,GAAG,QAAQ,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,eAAe,CAAC;AAEtE;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,cAAc,GAAG,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAa9E"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { AuthoritiesMetadata } from '@frontmcp/auth';
|
|
2
|
+
import type { AuthInfo } from '@frontmcp/protocol';
|
|
3
|
+
import type { EventContext } from '../interfaces';
|
|
4
|
+
import type { EventMetadata } from '../metadata/event.metadata';
|
|
5
|
+
import type { EventRecord } from '../records';
|
|
6
|
+
import { BaseEntry, type EntryOwnerRef } from './base.entry';
|
|
7
|
+
type JsonSchema = Record<string, unknown>;
|
|
8
|
+
/** A registered event. Concrete implementation: `EventInstance`. */
|
|
9
|
+
export declare abstract class EventEntry extends BaseEntry<EventRecord, EventContext, EventMetadata> {
|
|
10
|
+
owner: EntryOwnerRef;
|
|
11
|
+
name: string;
|
|
12
|
+
/** The name with the owner's id as prefix. */
|
|
13
|
+
fullName: string;
|
|
14
|
+
private inputJsonSchema?;
|
|
15
|
+
private payloadJsonSchema?;
|
|
16
|
+
/** The event's tags, empty when it declares none. */
|
|
17
|
+
getTags(): string[];
|
|
18
|
+
/** The rule a caller must satisfy to list the event and to subscribe to it; `null` and `false` declare none. */
|
|
19
|
+
getAuthorities(): AuthoritiesMetadata | undefined;
|
|
20
|
+
/** The JSON Schema of a subscription's arguments, as `events/list` returns it. */
|
|
21
|
+
getInputJsonSchema(): JsonSchema;
|
|
22
|
+
/** The JSON Schema of an occurrence's `data`, as `events/list` returns it. */
|
|
23
|
+
getPayloadJsonSchema(): JsonSchema;
|
|
24
|
+
/** The arguments of a subscription, validated against `inputSchema`; an event without one takes none. */
|
|
25
|
+
parseArguments(args: Record<string, unknown>): Record<string, unknown>;
|
|
26
|
+
/** The `data` of an occurrence, validated against `payloadSchema`. */
|
|
27
|
+
parsePayload(data: unknown): Record<string, unknown>;
|
|
28
|
+
/** The declared argument schema, or an empty closed object for an event that takes no arguments. */
|
|
29
|
+
private buildInputJsonSchema;
|
|
30
|
+
/** The context the event's `authorize`, `match`, `transform`, `check` and lifecycle methods run on. */
|
|
31
|
+
abstract create(authInfo: Partial<AuthInfo>): EventContext;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=event.entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/event.entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAmB,MAAM,4BAA4B,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7D,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAa1C,oEAAoE;AACpE,8BAAsB,UAAW,SAAQ,SAAS,CAAC,WAAW,EAAE,YAAY,EAAE,aAAa,CAAC;IAC1F,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IAEjB,OAAO,CAAC,eAAe,CAAC,CAAa;IACrC,OAAO,CAAC,iBAAiB,CAAC,CAAa;IAEvC,qDAAqD;IACrD,OAAO,IAAI,MAAM,EAAE;IAInB,gHAAgH;IAChH,cAAc,IAAI,mBAAmB,GAAG,SAAS;IAMjD,kFAAkF;IAClF,kBAAkB,IAAI,UAAU;IAKhC,8EAA8E;IAC9E,oBAAoB,IAAI,UAAU;IAKlC,yGAAyG;IACzG,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAMtE,sEAAsE;IACtE,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAIpD,oGAAoG;IACpG,OAAO,CAAC,oBAAoB;IAQ5B,uGAAuG;IACvG,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,YAAY;CAC3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/entries/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/entries/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|