@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.
- package/README.md +9 -0
- package/agent/adapters/anthropic.adapter.d.ts +4 -4
- package/agent/adapters/anthropic.adapter.d.ts.map +1 -1
- package/agent/adapters/base.adapter.d.ts +12 -2
- package/agent/adapters/base.adapter.d.ts.map +1 -1
- package/agent/adapters/index.d.ts +1 -1
- package/agent/adapters/index.d.ts.map +1 -1
- package/agent/adapters/openai.adapter.d.ts +7 -7
- package/agent/adapters/openai.adapter.d.ts.map +1 -1
- package/agent/agent-execution-loop.d.ts +27 -14
- package/agent/agent-execution-loop.d.ts.map +1 -1
- package/agent/agent.registry.d.ts +9 -0
- package/agent/agent.registry.d.ts.map +1 -1
- package/agent/flows/call-agent.flow.d.ts.map +1 -1
- 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 +29 -5
- package/app/instances/app.esm.instance.d.ts.map +1 -1
- package/app/instances/app.lazy.instance.d.ts.map +1 -1
- package/app/instances/app.remote.instance.d.ts.map +1 -1
- package/app/instances/esm-normalize.utils.d.ts +3 -1
- package/app/instances/esm-normalize.utils.d.ts.map +1 -1
- package/app/instances/esm-package-version.d.ts +48 -0
- package/app/instances/esm-package-version.d.ts.map +1 -0
- package/app/lazy/lazy-app.rules.d.ts +4 -0
- package/app/lazy/lazy-app.rules.d.ts.map +1 -1
- package/auth/auth-ui/auth-ui.contract.d.ts +27 -0
- package/auth/auth-ui/auth-ui.contract.d.ts.map +1 -1
- package/auth/auth-ui/auth-ui.state.d.ts +2 -1
- package/auth/auth-ui/auth-ui.state.d.ts.map +1 -1
- package/auth/auth-ui/index.d.ts +1 -1
- package/auth/auth-ui/index.d.ts.map +1 -1
- package/auth/authorization/orchestrated.context-extension.d.ts +1 -1
- package/auth/authorization/orchestrated.context-extension.d.ts.map +1 -1
- package/auth/authorized-apps.utils.d.ts +22 -0
- package/auth/authorized-apps.utils.d.ts.map +1 -1
- package/auth/federated-steps.d.ts +66 -0
- package/auth/federated-steps.d.ts.map +1 -0
- package/auth/flows/oauth.authorize.flow.d.ts +2 -2
- package/auth/flows/oauth.authorize.flow.d.ts.map +1 -1
- package/auth/flows/oauth.callback.flow.d.ts +17 -6
- package/auth/flows/oauth.callback.flow.d.ts.map +1 -1
- package/auth/flows/oauth.provider-callback.flow.d.ts.map +1 -1
- package/auth/flows/oauth.register.flow.d.ts +1 -1
- package/auth/flows/oauth.register.flow.d.ts.map +1 -1
- package/auth/flows/oauth.token.flow.d.ts +9 -0
- package/auth/flows/oauth.token.flow.d.ts.map +1 -1
- package/auth/flows/oauth.userinfo.flow.d.ts +1 -1
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +3 -0
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts.map +1 -1
- package/auth/flows/well-known.prm.flow.d.ts.map +1 -1
- package/auth/instances/instance.local-primary-auth.d.ts +38 -7
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
- package/auth/required-providers.utils.d.ts +19 -0
- package/auth/required-providers.utils.d.ts.map +1 -0
- package/browser/agent/adapters/anthropic.adapter.mjs +14 -10
- package/browser/agent/adapters/base.adapter.mjs +10 -3
- package/browser/agent/adapters/openai.adapter.mjs +39 -25
- package/browser/agent/agent-execution-loop.mjs +102 -70
- package/browser/agent/agent.registry.mjs +56 -20
- package/browser/agent/flows/call-agent.flow.mjs +2 -1
- package/browser/agent/index.mjs +1 -1
- package/browser/answer/answer-meter.mjs +1 -0
- package/browser/app/instances/app.esm.instance.mjs +128 -154
- package/browser/app/instances/app.lazy.instance.mjs +7 -3
- package/browser/app/instances/app.remote.instance.mjs +3 -4
- package/browser/app/instances/esm-normalize.utils.mjs +10 -5
- package/browser/app/instances/esm-package-version.mjs +118 -0
- package/browser/app/lazy/lazy-app.rules.mjs +4 -1
- package/browser/auth/auth-ui/auth-ui.state.mjs +1 -1
- package/browser/auth/authorization/orchestrated.context-extension.mjs +2 -2
- package/browser/auth/authorized-apps.utils.mjs +24 -2
- package/browser/auth/federated-steps.mjs +199 -0
- package/browser/auth/flows/oauth.authorize.flow.mjs +61 -76
- package/browser/auth/flows/oauth.callback.flow.mjs +112 -42
- package/browser/auth/flows/oauth.provider-callback.flow.mjs +14 -2
- package/browser/auth/flows/oauth.register.flow.mjs +3 -3
- package/browser/auth/flows/oauth.token.flow.mjs +33 -3
- package/browser/auth/flows/session.verify.flow.mjs +1 -1
- package/browser/auth/flows/well-known.oauth-authorization-server.flow.mjs +11 -6
- package/browser/auth/flows/well-known.prm.flow.mjs +2 -1
- package/browser/auth/instances/instance.local-primary-auth.mjs +131 -37
- package/browser/auth/required-providers.utils.mjs +16 -0
- package/browser/channel/channel-notification.service.mjs +20 -8
- package/browser/channel/channel-scope.helper.mjs +2 -2
- package/browser/channel/channel.instance.mjs +10 -1
- package/browser/channel/channel.utils.mjs +22 -1
- package/browser/channel/flows/send-channel-notification.flow.mjs +1 -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/entries/tool.entry.mjs +21 -4
- package/browser/common/index.mjs +8 -8
- package/browser/common/interfaces/agent.interface.mjs +25 -4
- 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/tool.interface.mjs +31 -5
- package/browser/common/interfaces/worker.interface.mjs +0 -0
- package/browser/common/metadata/app.metadata.mjs +10 -2
- 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 +6 -2
- package/browser/common/metadata/output-policy.mjs +4 -0
- 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 +10 -2
- 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 +2 -0
- package/browser/common/types/options/transport/schema.mjs +3 -0
- package/browser/common/utils/auth-info.utils.mjs +1 -2
- package/browser/common/utils/index.mjs +1 -1
- package/browser/common/utils/offset-cursor.utils.mjs +23 -0
- package/browser/common/utils/principal.utils.mjs +25 -1
- package/browser/common/utils/time-zone.utils.mjs +12 -0
- package/browser/context/frontmcp-context-storage.mjs +14 -3
- package/browser/context/frontmcp-context.mjs +24 -2
- 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/helpers/checked-elicit-answer.mjs +18 -0
- package/browser/elicitation/helpers/elicit.helper.mjs +5 -21
- package/browser/elicitation/questions/question-subject.mjs +8 -2
- package/browser/elicitation/store/elicitation-encryption.mjs +6 -6
- package/browser/elicitation/store/encrypted-elicitation.store.mjs +2 -2
- package/browser/elicitation/store/storage-elicitation.store.mjs +1 -2
- package/browser/errors/auth-internal.errors.mjs +2 -0
- package/browser/errors/duty.errors.mjs +20 -0
- package/browser/errors/event.errors.mjs +128 -0
- package/browser/errors/index.mjs +42 -2
- package/browser/errors/mcp.error.mjs +22 -3
- package/browser/errors/misconfiguration.mjs +2 -0
- package/browser/errors/remote.errors.mjs +1 -1
- package/browser/errors/tool-ui.errors.mjs +22 -0
- package/browser/errors/worker.errors.mjs +14 -0
- package/browser/errors/workflow.errors.mjs +7 -1
- package/browser/esm-loader/esm-cache.mjs +2 -2
- package/browser/esm-loader/esm-entries.mjs +15 -1
- package/browser/esm-loader/esm-manifest.mjs +32 -25
- package/browser/esm-loader/esm-module-loader.mjs +22 -4
- package/browser/esm-loader/factories/esm-context-factories.mjs +3 -3
- package/browser/esm-loader/factories/esm-instance-factories.mjs +7 -3
- package/browser/esm-loader/factories/esm-record-builders.mjs +27 -2
- package/browser/esm-loader/semver.utils.mjs +3 -5
- package/browser/esm-loader/version-poller.mjs +1 -1
- package/browser/esm-loader/version-resolver.mjs +5 -1
- 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/ext-apps/ext-apps.handler.mjs +6 -1
- package/browser/flows/flow.http-path.mjs +5 -1
- package/browser/flows/flow.instance.mjs +42 -9
- package/browser/front-mcp/authorities-rules.check.mjs +15 -1
- package/browser/front-mcp/front-mcp.mjs +23 -8
- package/browser/front-mcp/session-secret.check.mjs +22 -0
- package/browser/http-route/http-route.table.mjs +23 -3
- package/browser/index.cjs +35274 -25258
- package/browser/index.mjs +43 -4
- package/browser/job/execution/job-execution.manager.mjs +58 -21
- package/browser/job/flows/execute-job.flow.mjs +5 -3
- package/browser/job/index.mjs +2 -2
- package/browser/job/job-attempt.mjs +15 -10
- package/browser/job/job-context-providers.mjs +2 -1
- package/browser/job/job-scope.helper.mjs +97 -4
- package/browser/job/job.registry.mjs +30 -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/job/tools/index.mjs +3 -1
- package/browser/job/tools/list-jobs.tool.mjs +7 -5
- package/browser/job/tools/update-job.tool.mjs +75 -0
- package/browser/logger/instances/instance.logger.mjs +31 -6
- package/browser/notification/notification.service.mjs +62 -11
- package/browser/prompt/flows/get-prompt.flow.mjs +3 -3
- package/browser/prompt/flows/prompts-list.flow.mjs +11 -4
- package/browser/provider/create-container.mjs +20 -9
- package/browser/provider/provider.lifecycle.mjs +4 -0
- package/browser/provider/provider.registry.mjs +56 -12
- package/browser/remote-mcp/factories/instance-factories.mjs +4 -4
- package/browser/remote-mcp/factories/record-builders.mjs +5 -0
- package/browser/remote-mcp/mcp-client.service.mjs +113 -68
- package/browser/remote-mcp/mcp-stateless-client.adapter.mjs +2 -2
- package/browser/remote-mcp/remote-entries.mjs +2 -1
- package/browser/remote-mcp/remote-oauth.mjs +102 -0
- package/browser/remote-mcp/remote-request-headers.mjs +42 -12
- package/browser/remote-mcp/resilience/circuit-breaker.mjs +3 -2
- package/browser/resource/flows/read-resource.flow.mjs +6 -4
- package/browser/resource/flows/resource-templates-list.flow.mjs +24 -9
- package/browser/resource/flows/resources-list.flow.mjs +11 -4
- package/browser/scope/event-publisher.providers.mjs +32 -0
- package/browser/scope/flows/http.request.flow.mjs +1 -1
- package/browser/scope/observability-scope.helper.mjs +6 -1
- package/browser/scope/scope.instance.mjs +312 -96
- package/browser/skill/errors/tool-not-allowed.error.mjs +2 -2
- package/browser/skill/flows/filter-skills.flow.mjs +1 -1
- package/browser/skill/flows/load-skill.flow.mjs +27 -15
- package/browser/skill/guards/tool-authorization.guard.mjs +1 -1
- package/browser/skill/hooks/skill-tool.hook.mjs +32 -24
- package/browser/skill/providers/external-skill.provider.mjs +4 -2
- package/browser/skill/session/skill-session-store.interface.mjs +10 -0
- package/browser/skill/session/skill-session.manager.mjs +8 -0
- package/browser/skill/skill-authorities.helper.mjs +9 -3
- package/browser/skill/skill-instructions.helper.mjs +12 -6
- package/browser/skill/skill-scope.helper.mjs +7 -2
- package/browser/skill/skill.registry.mjs +21 -2
- package/browser/subsystems.mjs +9 -2
- package/browser/surface/entry-authorized.mjs +15 -0
- package/browser/tool/flows/call-tool.flow.mjs +59 -13
- package/browser/tool/flows/tools-list.flow.mjs +14 -37
- package/browser/tool/tool.utils.mjs +46 -61
- package/browser/tool/ui/serving-mode-default.mjs +11 -2
- package/browser/tool/ui/template-detection.mjs +1 -1
- package/browser/tool/ui/ui-option-warnings.mjs +1 -28
- package/browser/tool/ui/ui-render.mjs +6 -0
- package/browser/tool/ui/ui-resource.handler.mjs +50 -6
- package/browser/tool/ui/ui-shared.mjs +61 -7
- package/browser/tool/ui/widget-routes.mjs +73 -0
- package/browser/tool/ui/widget-serving.mjs +112 -0
- 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 +77 -4
- package/browser/transport/flows/handle.stateless-http.flow.mjs +1 -2
- package/browser/transport/in-memory-server.mjs +3 -0
- package/browser/transport/mcp-20260728/client/index.mjs +1 -1
- package/browser/transport/mcp-20260728/client/mcp-stateless.client.mjs +2 -1
- 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 +3 -2
- 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/transport/web-fetch-handler.mjs +5 -1
- package/browser/utils/abort.utils.mjs +7 -2
- package/browser/utils/content.utils.mjs +1 -1
- package/browser/worker/worker.lifecycle.mjs +199 -0
- package/browser/worker/worker.supervisor.mjs +111 -0
- package/browser/workflow/engine/workflow-step.executor.mjs +1 -1
- package/browser/workflow/engine/workflow.engine.mjs +13 -10
- package/browser/workflow/index.mjs +2 -2
- package/browser/workflow/tools/execute-workflow.tool.mjs +1 -1
- package/browser/workflow/tools/index.mjs +3 -1
- package/browser/workflow/tools/list-workflows.tool.mjs +4 -2
- package/browser/workflow/tools/register-workflow.tool.mjs +11 -2
- package/browser/workflow/tools/update-workflow.tool.mjs +80 -0
- package/browser/workflow/trigger/workflow-events.mjs +41 -0
- package/browser/workflow/trigger/workflow-schedules.mjs +173 -0
- package/browser/workflow/trigger/workflow-triggers.mjs +111 -0
- package/browser/workflow/trigger/workflow-webhook.routes.mjs +104 -0
- package/browser/workflow/trigger/workflow-webhook.signature.mjs +59 -0
- package/browser/workflow/workflow.registry.mjs +27 -0
- package/browser/workflow/workflow.utils.mjs +13 -2
- package/builtin/authorities/authorities.plugin.d.ts +1 -1
- package/builtin/authorities/authorities.plugin.d.ts.map +1 -1
- package/builtin/authorities/authorities.plugin.options.d.ts +1 -1
- package/builtin/authorities/authorities.plugin.options.d.ts.map +1 -1
- package/builtin/config/config-resolver.d.ts.map +1 -1
- 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 +6 -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.types.d.ts +1 -1
- package/channel/channel.types.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/agent-completion.source.d.ts +1 -1
- package/channel/sources/agent-completion.source.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/app.decorator.d.ts +1 -1
- package/common/decorators/app.decorator.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/provider.entry.d.ts +2 -2
- package/common/entries/provider.entry.d.ts.map +1 -1
- package/common/entries/scope.entry.d.ts +28 -3
- package/common/entries/scope.entry.d.ts.map +1 -1
- package/common/entries/tool.entry.d.ts +5 -3
- package/common/entries/tool.entry.d.ts.map +1 -1
- package/common/interfaces/agent.interface.d.ts +4 -2
- package/common/interfaces/agent.interface.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/llm-adapter.interface.d.ts +5 -0
- package/common/interfaces/llm-adapter.interface.d.ts.map +1 -1
- package/common/interfaces/logger.interface.d.ts +2 -1
- package/common/interfaces/logger.interface.d.ts.map +1 -1
- package/common/interfaces/tool.interface.d.ts +12 -2
- package/common/interfaces/tool.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 +8 -3
- package/common/metadata/agent.metadata.d.ts.map +1 -1
- package/common/metadata/app.metadata.d.ts +39 -12
- 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/flow.metadata.d.ts +14 -0
- package/common/metadata/flow.metadata.d.ts.map +1 -1
- package/common/metadata/front-mcp.metadata.d.ts +1654 -17
- 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 +12 -1
- package/common/metadata/job.metadata.d.ts.map +1 -1
- package/common/metadata/output-policy.d.ts +2 -0
- package/common/metadata/output-policy.d.ts.map +1 -1
- package/common/metadata/prompt.metadata.d.ts +1 -1
- package/common/metadata/remote-primitive.metadata.d.ts +6 -3
- package/common/metadata/remote-primitive.metadata.d.ts.map +1 -1
- package/common/metadata/resource.metadata.d.ts +3 -3
- 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 +80 -16
- 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 +2 -0
- package/common/tokens/workflow.tokens.d.ts.map +1 -1
- package/common/types/options/logging/interfaces.d.ts +3 -1
- package/common/types/options/logging/interfaces.d.ts.map +1 -1
- package/common/types/options/observability/interfaces.d.ts +4 -2
- package/common/types/options/observability/interfaces.d.ts.map +1 -1
- package/common/types/options/transport/interfaces.d.ts +3 -0
- package/common/types/options/transport/interfaces.d.ts.map +1 -1
- package/common/types/options/transport/schema.d.ts.map +1 -1
- package/common/utils/auth-info.utils.d.ts +1 -0
- package/common/utils/auth-info.utils.d.ts.map +1 -1
- package/common/utils/global-config.utils.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 +26 -0
- 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/context/frontmcp-context-storage.d.ts +3 -1
- package/context/frontmcp-context-storage.d.ts.map +1 -1
- package/context/frontmcp-context.d.ts +9 -1
- package/context/frontmcp-context.d.ts.map +1 -1
- 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/helpers/checked-elicit-answer.d.ts +10 -0
- package/elicitation/helpers/checked-elicit-answer.d.ts.map +1 -0
- package/elicitation/helpers/elicit.helper.d.ts.map +1 -1
- 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/elicitation/store/elicitation-encryption.d.ts.map +1 -1
- package/elicitation/store/encrypted-elicitation.store.d.ts +2 -2
- package/elicitation/store/encrypted-elicitation.store.d.ts.map +1 -1
- package/elicitation/store/storage-elicitation.store.d.ts +3 -3
- package/elicitation/store/storage-elicitation.store.d.ts.map +1 -1
- package/errors/auth-internal.errors.d.ts +1 -1
- package/errors/auth-internal.errors.d.ts.map +1 -1
- package/errors/duty.errors.d.ts +10 -0
- package/errors/duty.errors.d.ts.map +1 -1
- package/errors/error-handler.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 +7 -3
- package/errors/index.d.ts.map +1 -1
- package/errors/mcp.error.d.ts +6 -1
- package/errors/mcp.error.d.ts.map +1 -1
- package/errors/misconfiguration.d.ts.map +1 -1
- package/errors/remote.errors.d.ts +1 -1
- package/errors/remote.errors.d.ts.map +1 -1
- package/errors/tool-ui.errors.d.ts +13 -0
- package/errors/tool-ui.errors.d.ts.map +1 -0
- package/errors/worker.errors.d.ts +7 -0
- package/errors/worker.errors.d.ts.map +1 -0
- package/errors/workflow.errors.d.ts +4 -0
- package/errors/workflow.errors.d.ts.map +1 -1
- package/esm/index.mjs +52 -47
- package/esm/job/tools/index.mjs +3 -2
- package/esm/workflow/tools/index.mjs +3 -2
- package/esm-loader/app-helpers.d.ts +4 -4
- package/esm-loader/app-helpers.d.ts.map +1 -1
- package/esm-loader/esm-entries.d.ts +11 -1
- package/esm-loader/esm-entries.d.ts.map +1 -1
- package/esm-loader/esm-manifest.d.ts +11 -8
- package/esm-loader/esm-manifest.d.ts.map +1 -1
- package/esm-loader/esm-module-loader.d.ts +6 -1
- package/esm-loader/esm-module-loader.d.ts.map +1 -1
- package/esm-loader/factories/esm-context-factories.d.ts +6 -3
- package/esm-loader/factories/esm-context-factories.d.ts.map +1 -1
- package/esm-loader/factories/esm-instance-factories.d.ts +3 -3
- package/esm-loader/factories/esm-instance-factories.d.ts.map +1 -1
- package/esm-loader/factories/esm-record-builders.d.ts.map +1 -1
- package/esm-loader/semver.utils.d.ts +8 -0
- package/esm-loader/semver.utils.d.ts.map +1 -1
- package/esm-loader/version-resolver.d.ts.map +1 -1
- 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/ext-apps/ext-apps.handler.d.ts +2 -1
- package/ext-apps/ext-apps.handler.d.ts.map +1 -1
- package/flows/flow.http-path.d.ts +8 -0
- package/flows/flow.http-path.d.ts.map +1 -1
- package/flows/flow.instance.d.ts +9 -0
- package/flows/flow.instance.d.ts.map +1 -1
- 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 +2 -0
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/front-mcp/session-secret.check.d.ts +19 -0
- package/front-mcp/session-secret.check.d.ts.map +1 -0
- package/http-route/http-route.table.d.ts.map +1 -1
- package/index.d.ts +74 -4
- package/index.d.ts.map +1 -1
- package/index.js +59 -54
- package/job/execution/job-execution.manager.d.ts +16 -4
- package/job/execution/job-execution.manager.d.ts.map +1 -1
- package/job/flows/execute-job.flow.d.ts +1 -0
- package/job/flows/execute-job.flow.d.ts.map +1 -1
- package/job/job-attempt.d.ts +7 -2
- package/job/job-attempt.d.ts.map +1 -1
- package/job/job-context-providers.d.ts +2 -2
- package/job/job-context-providers.d.ts.map +1 -1
- package/job/job-scope.helper.d.ts +26 -0
- package/job/job-scope.helper.d.ts.map +1 -1
- package/job/job.registry.d.ts +11 -0
- package/job/job.registry.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/job/tools/index.d.ts +1 -0
- package/job/tools/index.d.ts.map +1 -1
- package/job/tools/index.js +4 -2
- package/job/tools/list-jobs.tool.d.ts +3 -3
- package/job/tools/list-jobs.tool.d.ts.map +1 -1
- package/job/tools/update-job.tool.d.ts +16 -0
- package/job/tools/update-job.tool.d.ts.map +1 -0
- package/logger/instances/instance.logger.d.ts +1 -0
- package/logger/instances/instance.logger.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 +40 -4
- package/notification/notification.service.d.ts.map +1 -1
- package/package.json +11 -10
- package/prompt/flows/prompts-list.flow.d.ts.map +1 -1
- 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/remote-mcp/factories/instance-factories.d.ts +4 -4
- package/remote-mcp/factories/instance-factories.d.ts.map +1 -1
- package/remote-mcp/factories/record-builders.d.ts.map +1 -1
- package/remote-mcp/mcp-client.service.d.ts +11 -0
- package/remote-mcp/mcp-client.service.d.ts.map +1 -1
- package/remote-mcp/mcp-client.types.d.ts +15 -2
- package/remote-mcp/mcp-client.types.d.ts.map +1 -1
- package/remote-mcp/mcp-stateless-client.adapter.d.ts +1 -1
- package/remote-mcp/mcp-stateless-client.adapter.d.ts.map +1 -1
- package/remote-mcp/remote-entries.d.ts +2 -1
- package/remote-mcp/remote-entries.d.ts.map +1 -1
- package/remote-mcp/remote-oauth.d.ts +27 -0
- package/remote-mcp/remote-oauth.d.ts.map +1 -0
- package/remote-mcp/remote-request-headers.d.ts +8 -2
- package/remote-mcp/remote-request-headers.d.ts.map +1 -1
- package/remote-mcp/resilience/circuit-breaker.d.ts +3 -2
- package/remote-mcp/resilience/circuit-breaker.d.ts.map +1 -1
- package/resource/flows/read-resource.flow.d.ts.map +1 -1
- package/resource/flows/resource-templates-list.flow.d.ts.map +1 -1
- package/resource/flows/resources-list.flow.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/observability-scope.helper.d.ts.map +1 -1
- package/scope/scope.instance.d.ts +41 -2
- 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/errors/tool-not-allowed.error.d.ts.map +1 -1
- package/skill/flows/load-skill.flow.d.ts.map +1 -1
- package/skill/guards/tool-authorization.guard.d.ts +1 -1
- package/skill/guards/tool-authorization.guard.d.ts.map +1 -1
- package/skill/hooks/skill-tool.hook.d.ts +2 -0
- package/skill/hooks/skill-tool.hook.d.ts.map +1 -1
- package/skill/providers/external-skill.provider.d.ts +2 -2
- package/skill/providers/external-skill.provider.d.ts.map +1 -1
- package/skill/session/skill-session-store.interface.d.ts +5 -0
- package/skill/session/skill-session-store.interface.d.ts.map +1 -1
- package/skill/session/skill-session.manager.d.ts +4 -0
- package/skill/session/skill-session.manager.d.ts.map +1 -1
- package/skill/session/skill-session.types.d.ts +1 -1
- package/skill/skill-authorities.helper.d.ts +6 -3
- package/skill/skill-authorities.helper.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/skill/skill-scope.helper.d.ts +5 -0
- package/skill/skill-scope.helper.d.ts.map +1 -1
- package/skill/skill.registry.d.ts +7 -0
- package/skill/skill.registry.d.ts.map +1 -1
- package/subsystems.d.ts +3 -2
- package/subsystems.d.ts.map +1 -1
- package/surface/entry-authorized.d.ts +5 -0
- package/surface/entry-authorized.d.ts.map +1 -0
- package/tool/flows/call-tool.flow.d.ts +6 -0
- package/tool/flows/call-tool.flow.d.ts.map +1 -1
- package/tool/flows/tools-list.flow.d.ts +1 -12
- package/tool/flows/tools-list.flow.d.ts.map +1 -1
- package/tool/tool.utils.d.ts.map +1 -1
- package/tool/ui/serving-mode-default.d.ts +6 -2
- package/tool/ui/serving-mode-default.d.ts.map +1 -1
- package/tool/ui/ui-option-warnings.d.ts.map +1 -1
- package/tool/ui/ui-render.d.ts +2 -2
- package/tool/ui/ui-render.d.ts.map +1 -1
- package/tool/ui/ui-resource.handler.d.ts +10 -2
- package/tool/ui/ui-resource.handler.d.ts.map +1 -1
- package/tool/ui/ui-shared.d.ts +31 -5
- package/tool/ui/ui-shared.d.ts.map +1 -1
- package/tool/ui/widget-routes.d.ts +38 -0
- package/tool/ui/widget-routes.d.ts.map +1 -0
- package/tool/ui/widget-serving.d.ts +37 -0
- package/tool/ui/widget-serving.d.ts.map +1 -0
- 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/client/mcp-stateless.client.d.ts +2 -0
- package/transport/mcp-20260728/client/mcp-stateless.client.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/transport/web-fetch-handler.d.ts.map +1 -1
- package/utils/abort.utils.d.ts +5 -0
- package/utils/abort.utils.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/engine/workflow.engine.d.ts +8 -1
- package/workflow/engine/workflow.engine.d.ts.map +1 -1
- package/workflow/tools/execute-workflow.tool.d.ts.map +1 -1
- package/workflow/tools/index.d.ts +1 -0
- package/workflow/tools/index.d.ts.map +1 -1
- package/workflow/tools/index.js +4 -2
- package/workflow/tools/list-workflows.tool.d.ts.map +1 -1
- package/workflow/tools/register-workflow.tool.d.ts +2 -1
- package/workflow/tools/register-workflow.tool.d.ts.map +1 -1
- package/workflow/tools/update-workflow.tool.d.ts +21 -0
- package/workflow/tools/update-workflow.tool.d.ts.map +1 -0
- package/workflow/trigger/workflow-events.d.ts +22 -0
- package/workflow/trigger/workflow-events.d.ts.map +1 -0
- 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 +49 -0
- package/workflow/trigger/workflow-triggers.d.ts.map +1 -0
- package/workflow/trigger/workflow-webhook.routes.d.ts +16 -0
- package/workflow/trigger/workflow-webhook.routes.d.ts.map +1 -0
- package/workflow/trigger/workflow-webhook.signature.d.ts +41 -0
- package/workflow/trigger/workflow-webhook.signature.d.ts.map +1 -0
- package/workflow/workflow.registry.d.ts +11 -0
- package/workflow/workflow.registry.d.ts.map +1 -1
- package/workflow/workflow.utils.d.ts +7 -0
- package/workflow/workflow.utils.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-resolver.d.ts","sourceRoot":"","sources":["../../../src/builtin/config/config-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;
|
|
1
|
+
{"version":3,"file":"config-resolver.d.ts","sourceRoot":"","sources":["../../../src/builtin/config/config-resolver.ts"],"names":[],"mappings":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,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAC9C,OAAO,EAAE,uBAAuB,GAC/B,cAAc,CAehB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,cAAc,CAenG"}
|
|
@@ -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,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,sCAAsC,CAAC;AAG9C;;;;;;;GAOG;AACH,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,2EAA2E;AAC3E,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,KAAK,IAAI,CAAC;AAE7F,wDAAwD;AACxD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,oCAAoC;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;GAUG;AACH,qBAAa,0BAA0B;IAYnC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAGpC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC;IAdnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiB;IACxC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmC;IAC9D,4GAA4G;IAC5G,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAgF;IAEhH;;;;OAIG;gBAEgB,mBAAmB,EAAE,mBAAmB,EACzD,MAAM,EAAE,cAAc,EACtB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACnB,eAAe,CAAC,GAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,OAAO,CAAC,OAAO,CAAC,aAAA;IAMlF,sFAAsF;IACtF,IAAI,WAAW,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAElD;IAED;;;;;;;OAOG;IACH,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,GAAG,IAAI;IAgC9E;;;;;OAKG;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"}
|
|
@@ -17,6 +17,8 @@ export interface RegisterChannelCapabilitiesArgs {
|
|
|
17
17
|
/** The provider registry of each channel declared on an app, by its token (see `appEntryProviders`). */
|
|
18
18
|
channelProviders?: ReadonlyMap<Token, ProviderRegistry>;
|
|
19
19
|
channelsConfig: ChannelsConfigOptions;
|
|
20
|
+
/** The scope's event bus when it already has one (`trigger: 'event'` workflows listen on it); else one is made. */
|
|
21
|
+
eventBus?: ChannelEventBus;
|
|
20
22
|
notificationService: NotificationService;
|
|
21
23
|
flowRegistry: FlowRegistry;
|
|
22
24
|
toolRegistry: ToolRegistry;
|
|
@@ -42,7 +44,10 @@ export interface ChannelCapabilitiesResult {
|
|
|
42
44
|
channelRegistry: ChannelRegistry;
|
|
43
45
|
channelNotificationService: ChannelNotificationService;
|
|
44
46
|
channelEventBus: ChannelEventBus;
|
|
45
|
-
/**
|
|
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
|
+
*/
|
|
46
51
|
connectServices: () => Promise<void>;
|
|
47
52
|
/** Teardown function: disconnects services and cleans up subscriptions */
|
|
48
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,EAGL,KAAK,qBAAqB,EAE3B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAIL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACxB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,KAAK,YAAY,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,eAAe,MAAM,oBAAoB,CAAC;AAKjD,OAAO,EAAE,eAAe,EAAsB,MAAM,4BAA4B,CAA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e,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,gBAAgB,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,EAA2B,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;
|
|
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,gBAAgB,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,EAA2B,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAG1G;;;;;;;;;GASG;AACH,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,qDAAqD;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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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.types.d.ts","sourceRoot":"","sources":["../../src/channel/channel.types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"channel.types.d.ts","sourceRoot":"","sources":["../../src/channel/channel.types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,2BAA2B;IAC3B,QAAQ,EAAE,eAAe,CAAC;IAC1B,kCAAkC;IAClC,KAAK,EAAE,aAAa,CAAC;IACrB,iCAAiC;IACjC,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -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,6 @@
|
|
|
1
1
|
import type { FrontMcpLogger } from '../../common';
|
|
2
|
-
import type { ChannelInstance } from '../channel.instance';
|
|
3
2
|
import type { ChannelAgentCompletionSource } from '../../common/metadata/channel.metadata';
|
|
3
|
+
import type { ChannelInstance } from '../channel.instance';
|
|
4
4
|
/**
|
|
5
5
|
* Event payload from agent completion.
|
|
6
6
|
* This is the shape the source expects from the agent emitter.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-completion.source.d.ts","sourceRoot":"","sources":["../../../src/channel/sources/agent-completion.source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"agent-completion.source.d.ts","sourceRoot":"","sources":["../../../src/channel/sources/agent-completion.source.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,eAAe,EACxB,YAAY,EAAE,4BAA4B,EAC1C,qBAAqB,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,KAAK,MAAM,IAAI,EAChF,MAAM,EAAE,cAAc,GACrB,MAAM,IAAI,CA6BZ"}
|
|
@@ -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,CA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zB,MAAM,EAAE,cAAc,GACrB,MAAM,IAAI,CAQZ"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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"}
|
|
@@ -4,7 +4,7 @@ import { type EsmAppOptions, type LocalAppMetadata, type RemoteAppMetadata, type
|
|
|
4
4
|
* Decorator that marks a class as a McpApp module and provides metadata.
|
|
5
5
|
*
|
|
6
6
|
* Also provides static methods for declaring external apps:
|
|
7
|
-
* - `App.esm()` — load an
|
|
7
|
+
* - `App.esm()` — load an npm package's entries as an app
|
|
8
8
|
* - `App.remote()` — connect to an external MCP server
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/app.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAM1B,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAC;AAQrB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,iBAAS,WAAW,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,cAAc,CA6CvE;
|
|
1
|
+
{"version":3,"file":"app.decorator.d.ts","sourceRoot":"","sources":["../../../src/common/decorators/app.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAM1B,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAC;AAQrB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,iBAAS,WAAW,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,cAAc,CA6CvE;AA2GD;;GAEG;AACH,KAAK,YAAY,GAAG;IAClB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,cAAc,CAAC;IAC7C,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,iBAAiB,CAAC;IACnE,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,iBAAiB,CAAC;CACvE,CAAC;AAEF,QAAA,MAAM,GAAG,EAA6B,YAAY,CAAC;AAEnD;;;;;;;;;;GAUG;AACH,iBAAS,WAAW,CAAC,QAAQ,EAAE,gBAAgB,GAAG,UAAU,MAAM,CAIjE;AAED,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,EAAE,WAAW,IAAI,GAAG,EAAE,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,MAA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AQ,EAAE,aAAa,CAAC,GAC7C,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,iBAAiB,CAAC,aAAa,CAAC,CAAC,CAU1E;AAED,0DAA0D;AAC1D,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAErD;AAED,kDAAkD;AAClD,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAGxD;AAED,+FAA+F;AAC/F,QAAA,MAAM,aAAa,EAA6B,cAAc,CAAC;AAC/D,QAAA,MAAM,KAAK,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,I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kB,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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseEntry } from './base.entry';
|
|
2
|
-
import type { ProviderRecord } from '../records';
|
|
3
1
|
import type { ProviderMetadata } from '../metadata';
|
|
2
|
+
import type { ProviderRecord } from '../records';
|
|
3
|
+
import { BaseEntry } from './base.entry';
|
|
4
4
|
declare abstract class ProviderEntry extends BaseEntry<ProviderRecord, unknown, ProviderMetadata> {
|
|
5
5
|
}
|
|
6
6
|
export { ProviderEntry };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/provider.entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"provider.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/provider.entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,uBAAe,aAAc,SAAQ,SAAS,CAAC,cAAc,EAAE,OAAO,EAAE,gBAAgB,CAAC;CAAG;AAE5F,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -11,6 +11,7 @@ import type ChannelRegistry from '../../channel/channel.registry';
|
|
|
11
11
|
import type { ChannelEventBus } from '../../channel/sources/app-event.source';
|
|
12
12
|
import type { PersistentQuestions } from '../../elicitation/questions/question-scope.helper';
|
|
13
13
|
import type { ElicitationStore } from '../../elicitation/store/elicitation.store';
|
|
14
|
+
import type EventRegistry from '../../event/event.registry';
|
|
14
15
|
import type { HaManager } from '../../ha';
|
|
15
16
|
import type HookRegistry from '../../hooks/hook.registry';
|
|
16
17
|
import type { HttpRouteTable } from '../../http-route/http-route.table';
|
|
@@ -29,13 +30,21 @@ import type ToolRegistry from '../../tool/tool.registry';
|
|
|
29
30
|
import type { ToolUIRegistry } from '../../tool/ui/ui-shared';
|
|
30
31
|
import type { TransportService } from '../../transport/transport.registry';
|
|
31
32
|
import type WorkflowRegistry from '../../workflow/workflow.registry';
|
|
32
|
-
import type { FlowInputOf, FlowOutputOf, FlowType, FrontMcpAuth, FrontMcpLogger, PluginRegistryInterface, ProviderRegistryInterface } from '../interfaces';
|
|
33
|
+
import type { FlowInputOf, FlowOutputOf, FlowType, FrontMcpAuth, FrontMcpLogger, JobType, PluginRegistryInterface, ProviderRegistryInterface, WorkflowType } from '../interfaces';
|
|
33
34
|
import type { FlowName, ScopeMetadata } from '../metadata';
|
|
34
35
|
import type { ScopeRecord } from '../records';
|
|
35
36
|
import type { HealthProbeDefinition } from '../types/options/health';
|
|
36
37
|
import { BaseEntry } from './base.entry';
|
|
37
38
|
/** The registries of an app loaded after startup. */
|
|
38
39
|
export type LateAppRegistries = Omit<EnforcedMetadataScope, 'hooks'>;
|
|
40
|
+
/** The kinds of entry an app may add after startup that the scope serves only once it has one. */
|
|
41
|
+
export type LateEntryKind = 'agents' | 'skills';
|
|
42
|
+
/** Jobs and workflows an app loads itself (an ESM app's package), and the provider registry its jobs are built on. */
|
|
43
|
+
export interface AppJobEntries {
|
|
44
|
+
jobs: readonly JobType[];
|
|
45
|
+
workflows: readonly WorkflowType[];
|
|
46
|
+
providers: ProviderRegistryInterface;
|
|
47
|
+
}
|
|
39
48
|
export declare abstract class ScopeEntry extends BaseEntry<ScopeRecord, unknown, ScopeMetadata> {
|
|
40
49
|
abstract readonly id: string;
|
|
41
50
|
abstract readonly entryPath: string;
|
|
@@ -90,9 +99,12 @@ export declare abstract class ScopeEntry extends BaseEntry<ScopeRecord, unknown,
|
|
|
90
99
|
abstract get channels(): ChannelRegistry | undefined;
|
|
91
100
|
/** Sends channel notifications to the sessions subscribed to a channel; `undefined` unless `channels.enabled`. */
|
|
92
101
|
abstract get channelNotifications(): ChannelNotificationService | undefined;
|
|
102
|
+
/** The scope's events; `undefined` with `events.enabled: false`, and unless an app declares one or it is `true`. */
|
|
103
|
+
abstract get events(): EventRegistry | undefined;
|
|
93
104
|
/**
|
|
94
|
-
* The bus `app-event` channel sources
|
|
95
|
-
* `undefined` unless `channels.enabled
|
|
105
|
+
* The scope's in-process event bus: `app-event` channel sources and `trigger: 'event'` workflows listen on it.
|
|
106
|
+
* `this.scope.channelEventBus?.emit('user.signup', payload)`. `undefined` unless `channels.enabled`, or a workflow
|
|
107
|
+
* with `trigger: 'event'` is registered, at startup or later (an ESM app's new version).
|
|
96
108
|
*/
|
|
97
109
|
abstract get channelEventBus(): ChannelEventBus | undefined;
|
|
98
110
|
abstract get authoritiesEngine(): AuthoritiesEngine | undefined;
|
|
@@ -108,6 +120,19 @@ export declare abstract class ScopeEntry extends BaseEntry<ScopeRecord, unknown,
|
|
|
108
120
|
* metadata only a plugin enforces, the hooks' order, and the guard its tools' limits need. Throws what startup would.
|
|
109
121
|
*/
|
|
110
122
|
abstract checkLateApp(app: LateAppRegistries): Promise<void>;
|
|
123
|
+
/**
|
|
124
|
+
* Make the scope serve entries of these kinds that an app adds after startup (an ESM app's new version), as startup
|
|
125
|
+
* would have, had they been there: the `agents:call-agent` flow for agents; the skill session guard, the skill
|
|
126
|
+
* methods and the `skill://` resources for skills. A kind the scope serves already is left as it is.
|
|
127
|
+
*/
|
|
128
|
+
abstract serveLateEntries(kinds: readonly LateEntryKind[]): Promise<void>;
|
|
129
|
+
/**
|
|
130
|
+
* Serve jobs and workflows an app loads itself (an ESM app's package version), as the ones apps declare are. Before
|
|
131
|
+
* startup starts the job system they join those, and turn it on as they do. After, they are registered at once,
|
|
132
|
+
* and the job system starts if nothing turned it on. With `jobs.enabled: false` they are not served. Resolves to a
|
|
133
|
+
* function that unregisters them.
|
|
134
|
+
*/
|
|
135
|
+
abstract serveAppJobs(entries: AppJobEntries): Promise<() => void>;
|
|
111
136
|
/**
|
|
112
137
|
* Lifecycle callbacks registered by plugins via onServerStarted().
|
|
113
138
|
* Called after the HTTP server starts listening.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.entry.d.ts","sourceRoot":"","sources":["../../../src/common/entries/scope.entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAC5G,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MA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AAG,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAE3D,QAAQ,CAAC,OAAO,CAAC,IAAI,SAAS,QAAQ,EACpC,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,EACxB,cAAc,CAAC,EAAE,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,GAChC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IAE1C,QAAQ,CAAC,gBAAgB,CAAC,IAAI,SAAS,QAAQ,EAC7C,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,EACxB,cAAc,CAAC,EAAE,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,GAChC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;CAC/B"}
|
|
@@ -96,9 +96,11 @@ export declare abstract class ToolEntry<InSchema extends ToolInputType = ToolInp
|
|
|
96
96
|
* remote tools); otherwise converts a Zod-shape or Zod `outputSchema` to JSON Schema —
|
|
97
97
|
* symmetric with {@link getInputJsonSchema}. MCP requires a top-level `type: 'object'`, so
|
|
98
98
|
* an object schema is returned as is and a union whose members are all object schemas is
|
|
99
|
-
* returned typed `object` (`{ type: 'object', anyOf | oneOf }`).
|
|
100
|
-
*
|
|
101
|
-
*
|
|
99
|
+
* returned typed `object` (`{ type: 'object', anyOf | oneOf }`). A primitive literal
|
|
100
|
+
* (`'string'`, `'number'`, `'boolean'`, `'date'`) returns the object its `structuredContent`
|
|
101
|
+
* is (`{ content }`, or `{ iso, timeInMilli }` for a date). Returns `null` for media literals,
|
|
102
|
+
* Zod primitives and multi-content arrays, which flow through `content`, and for any other
|
|
103
|
+
* schema (see {@link getUnlistedOutputSchemaReason}).
|
|
102
104
|
*
|
|
103
105
|
* @returns JSON Schema object, or null if there is no advertisable output schema.
|
|
104
106
|
*/
|