@frontmcp/sdk 1.13.2 → 1.14.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/agent/agent.instance.d.ts +4 -0
- package/agent/agent.instance.d.ts.map +1 -1
- package/agent/agent.scope.d.ts +3 -0
- package/agent/agent.scope.d.ts.map +1 -1
- package/agent/flows/call-agent.flow.d.ts.map +1 -1
- package/app/instances/app.local.instance.d.ts.map +1 -1
- package/app/lazy/lazy-placeholders.d.ts +6 -9
- package/app/lazy/lazy-placeholders.d.ts.map +1 -1
- package/auth/auth-ui/auth-ui.contract.d.ts +4 -1
- package/auth/auth-ui/auth-ui.contract.d.ts.map +1 -1
- package/auth/authorized-apps.utils.d.ts +2 -0
- package/auth/authorized-apps.utils.d.ts.map +1 -1
- package/auth/client-display-name.d.ts +52 -0
- package/auth/client-display-name.d.ts.map +1 -0
- package/auth/federated-steps.d.ts.map +1 -1
- package/auth/flows/oauth.auth-ui.flow.d.ts +1 -1
- package/auth/flows/oauth.authorize.flow.d.ts +6 -3
- package/auth/flows/oauth.authorize.flow.d.ts.map +1 -1
- package/auth/flows/oauth.callback.flow.d.ts +3 -8
- package/auth/flows/oauth.callback.flow.d.ts.map +1 -1
- package/auth/flows/oauth.connect.flow.d.ts +1 -1
- package/auth/flows/oauth.provider-callback.flow.d.ts +9 -2
- package/auth/flows/oauth.provider-callback.flow.d.ts.map +1 -1
- package/auth/flows/oauth.register.flow.d.ts +6 -4
- package/auth/flows/oauth.register.flow.d.ts.map +1 -1
- package/auth/flows/oauth.token.flow.d.ts +1 -1
- package/auth/flows/oauth.userinfo.flow.d.ts +1 -1
- package/auth/flows/session.verify.flow.d.ts +20 -4
- package/auth/flows/session.verify.flow.d.ts.map +1 -1
- package/auth/flows/well-known.jwks.flow.d.ts +3 -3
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +2 -2
- package/auth/flows/well-known.prm.flow.d.ts +1 -1
- package/auth/instances/instance.local-primary-auth.d.ts +8 -0
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
- package/auth/instances/instance.remote-primary-auth.d.ts +2 -0
- package/auth/instances/instance.remote-primary-auth.d.ts.map +1 -1
- package/auth/session/session-store.factory.d.ts.map +1 -1
- package/browser/agent/agent.instance.mjs +16 -0
- package/browser/agent/agent.scope.mjs +9 -0
- package/browser/agent/flows/call-agent.flow.mjs +3 -1
- package/browser/app/instances/app.local.instance.mjs +6 -1
- package/browser/app/lazy/lazy-placeholders.mjs +3 -3
- package/browser/auth/authorized-apps.utils.mjs +15 -0
- package/browser/auth/client-display-name.mjs +62 -0
- package/browser/auth/federated-steps.mjs +2 -0
- package/browser/auth/flows/oauth.authorize.flow.mjs +25 -10
- package/browser/auth/flows/oauth.callback.flow.mjs +29 -31
- package/browser/auth/flows/oauth.provider-callback.flow.mjs +83 -14
- package/browser/auth/flows/oauth.register.flow.mjs +5 -24
- package/browser/auth/flows/session.verify.flow.mjs +31 -12
- package/browser/auth/instances/instance.local-primary-auth.mjs +43 -10
- package/browser/auth/instances/instance.remote-primary-auth.mjs +15 -0
- package/browser/auth/session/session-store.factory.mjs +15 -36
- package/browser/builtin/authorities/authorities-input.mjs +12 -0
- package/browser/common/decorators/front-mcp.decorator.mjs +2 -1
- package/browser/common/decorators/http-route.decorator.mjs +4 -0
- package/browser/common/index.mjs +2 -2
- package/browser/common/interfaces/server.interface.mjs +4 -0
- package/browser/common/metadata/duty.metadata.mjs +29 -6
- package/browser/common/metadata/event.metadata.mjs +2 -1
- package/browser/common/metadata/front-mcp.metadata.mjs +18 -1
- package/browser/common/metadata/workflow.metadata.mjs +1 -0
- package/browser/common/tokens/front-mcp.tokens.mjs +3 -0
- package/browser/common/tokens/workflow.tokens.mjs +1 -0
- package/browser/common/types/auth/session.types.mjs +2 -0
- package/browser/common/types/index.mjs +1 -1
- package/browser/common/types/options/http/schema.mjs +14 -6
- package/browser/common/types/options/index.mjs +1 -1
- package/browser/common/types/options/redis/connection.mjs +19 -0
- package/browser/common/types/options/redis/index.mjs +12 -0
- package/browser/common/types/options/redis/schema.mjs +145 -12
- package/browser/common/types/options/skills-http/schema.mjs +18 -0
- package/browser/common/types/options/transport/schema.mjs +10 -0
- package/browser/common/utils/auth-info.utils.mjs +17 -3
- package/browser/common/utils/guard.utils.mjs +3 -2
- package/browser/common/utils/index.mjs +2 -1
- package/browser/completion/flows/complete.flow.mjs +13 -7
- package/browser/duty/duty.lifecycle.mjs +32 -5
- package/browser/duty/duty.runner.mjs +3 -1
- package/browser/duty/lease-holder.mjs +50 -3
- package/browser/duty/lease-store.mjs +9 -6
- package/browser/elicitation/flows/elicitation-request.flow.mjs +7 -1
- package/browser/elicitation/flows/elicitation-result.flow.mjs +8 -2
- package/browser/elicitation/questions/question-store.factory.mjs +2 -5
- package/browser/elicitation/store/elicitation-store.factory.mjs +11 -4
- package/browser/errors/browser-entry-point.errors.mjs +1 -0
- package/browser/errors/duty.errors.mjs +9 -0
- package/browser/errors/index.mjs +11 -1
- package/browser/errors/job.errors.mjs +29 -4
- package/browser/errors/mcp.error.mjs +54 -8
- package/browser/errors/provider.errors.mjs +18 -0
- package/browser/errors/transport.errors.mjs +31 -0
- package/browser/event/delivery/event-outbox.mjs +43 -9
- package/browser/event/event-gates.mjs +6 -2
- package/browser/event/event-scope.helper.mjs +5 -1
- package/browser/event/flows/event-ended.flow.mjs +9 -3
- package/browser/event/flows/event-poll.flow.mjs +3 -1
- package/browser/event/flows/event-publish.flow.mjs +1 -0
- package/browser/event/flows/event-subscribe.flow.mjs +2 -9
- package/browser/event/flows/event-unsubscribe.flow.mjs +5 -2
- package/browser/event/poll/event-poll-leases.mjs +4 -3
- package/browser/event/replay/event-replays.mjs +2 -0
- package/browser/event/stream/event-stream.mjs +4 -0
- package/browser/event/stream/event-streams.mjs +9 -6
- package/browser/event/subscription/event-subscription-store.factory.mjs +3 -4
- package/browser/event/subscription/event-subscription-termination.mjs +1 -0
- package/browser/event/subscription/event-subscription.store.mjs +11 -1
- package/browser/event/subscription/event-subscriptions.mjs +4 -1
- package/browser/front-mcp/front-mcp.mjs +38 -4
- package/browser/ha/ha-manager.mjs +2 -1
- package/browser/ha/ha-redis-client.mjs +22 -0
- package/browser/ha/heartbeat.service.mjs +2 -1
- package/browser/ha/index.mjs +2 -0
- package/browser/ha/notification-relay.mjs +11 -3
- package/browser/http-route/flows/http.route.flow.mjs +78 -7
- package/browser/http-route/http-route.table.mjs +38 -11
- package/browser/http-route/people-session-store.mjs +7 -6
- package/browser/http-route/people-sign-in.routes.mjs +44 -3
- package/browser/index.cjs +21320 -17819
- package/browser/index.mjs +10 -3
- package/browser/job/execution/job-execution.manager.mjs +293 -84
- package/browser/job/flows/execute-job.flow.mjs +6 -4
- package/browser/job/index.mjs +3 -1
- package/browser/job/job-admission.mjs +284 -2
- package/browser/job/job-attempt.mjs +2 -1
- package/browser/job/job-run-access.mjs +20 -0
- package/browser/job/job-scope.helper.mjs +37 -10
- package/browser/job/runner/detached-job.worker.mjs +71 -10
- package/browser/job/runner/job-runner.mjs +27 -1
- package/browser/job/store/job-definition-store.factory.mjs +13 -12
- package/browser/job/store/job-state-store.factory.mjs +14 -5
- package/browser/job/store/memory-job-state.store.mjs +91 -7
- package/browser/job/store/redis-job-state.store.mjs +39 -6
- package/browser/job/store/storage-job-state.store.mjs +35 -2
- package/browser/job/tools/cancel-job.tool.mjs +2 -2
- package/browser/job/tools/register-job.tool.mjs +5 -2
- package/browser/job/tools/remove-job.tool.mjs +9 -0
- package/browser/job/tools/update-job.tool.mjs +8 -0
- package/browser/notification/notification.service.mjs +14 -3
- package/browser/prompt/flows/get-prompt.flow.mjs +10 -3
- package/browser/prompt/flows/prompts-list.flow.mjs +7 -2
- package/browser/provider/borrow-providers.mjs +40 -0
- package/browser/provider/container-handle.mjs +10 -0
- package/browser/provider/create-container.mjs +25 -3
- package/browser/provider/provider.registry.mjs +43 -6
- package/browser/remote-mcp/remote-oauth.mjs +43 -13
- package/browser/resource/flows/read-resource.flow.mjs +15 -4
- package/browser/resource/flows/resource-templates-list.flow.mjs +7 -2
- package/browser/resource/flows/resources-list.flow.mjs +7 -2
- package/browser/resource/flows/subscribe-resource.flow.mjs +21 -5
- package/browser/resource/materialized/materialized-resources.mjs +53 -23
- package/browser/resource/materialized/resource-store.mjs +97 -26
- package/browser/resource/resource.events.mjs +12 -1
- package/browser/resource/resource.registry.mjs +66 -8
- package/browser/scope/flows/http.request.flow.mjs +52 -3
- package/browser/scope/scope.instance.mjs +12 -14
- package/browser/server/custom-routes.helper.mjs +57 -6
- package/browser/server/security/resolve-allowed-hosts.mjs +26 -2
- package/browser/server/security/same-origin.mjs +5 -5
- package/browser/server/server.instance.mjs +56 -3
- package/browser/skill/cache/skill-http-cache.catalog.mjs +7 -6
- package/browser/skill/cache/skill-http-cache.factory.mjs +16 -19
- package/browser/skill/cache/skill-http-cache.mjs +14 -4
- package/browser/skill/flows/http/llm-full-txt.flow.mjs +16 -5
- package/browser/skill/flows/http/llm-txt.flow.mjs +1 -0
- package/browser/skill/flows/http/skills-api.flow.mjs +6 -5
- package/browser/skill/flows/load-skill.flow.mjs +9 -4
- package/browser/skill/skill-filter.helper.mjs +41 -4
- package/browser/skill/skill-http.utils.mjs +8 -8
- package/browser/surface/entry-enabled.mjs +22 -6
- package/browser/surface/index.mjs +8 -2
- package/browser/surface/live-surface.mjs +63 -3
- package/browser/task/helpers/task-run-context.mjs +12 -0
- package/browser/task/helpers/task-runner.mjs +2 -0
- package/browser/task/store/storage-task.store.mjs +1 -4
- package/browser/task/store/task-store.factory.mjs +2 -3
- package/browser/task/task.types.mjs +2 -0
- package/browser/tool/flows/call-tool.flow.mjs +56 -17
- package/browser/tool/flows/tools-list.flow.mjs +2 -2
- package/browser/tool/ui/ui-shared.mjs +5 -1
- package/browser/tool/ui/widget-enabled.mjs +11 -0
- package/browser/tool/undeclared-arguments-message.mjs +7 -5
- package/browser/tool/undeclared-arguments.mjs +8 -1
- package/browser/transport/adapters/streamable-http-transport.mjs +4 -0
- package/browser/transport/adapters/transport.local.adapter.mjs +26 -21
- package/browser/transport/adapters/transport.sse.adapter.mjs +15 -2
- package/browser/transport/adapters/transport.streamable-http.adapter.mjs +7 -1
- package/browser/transport/bus/redis-transport-bus.mjs +83 -28
- package/browser/transport/channel-signature.mjs +40 -0
- package/browser/transport/event-stores/redis.event-store.mjs +14 -27
- package/browser/transport/flows/handle.mcp-20260728.flow.mjs +4 -3
- package/browser/transport/flows/handle.streamable-http.flow.mjs +17 -10
- package/browser/transport/mcp-20260728/client/index.mjs +1 -1
- package/browser/transport/mcp-20260728/client/mcp-stateless.client.mjs +77 -15
- package/browser/transport/mcp-20260728/index.mjs +1 -1
- package/browser/transport/mcp-20260728/result-decorator.mjs +14 -7
- package/browser/transport/mcp-20260728/subscriptions.mjs +27 -7
- package/browser/transport/mcp-handlers/index.mjs +11 -2
- package/browser/transport/relay/relay-scope.helper.mjs +34 -6
- package/browser/transport/session-end-channel.mjs +199 -0
- package/browser/transport/transport.local.mjs +3 -0
- package/browser/transport/transport.registry.mjs +352 -21
- package/browser/transport/web-fetch-handler.mjs +64 -4
- package/browser/utils/same-origin-fetch.utils.mjs +33 -0
- package/browser/work/index.mjs +13 -0
- package/browser/work/work-spans.mjs +55 -0
- package/browser/worker/worker.lifecycle.mjs +3 -1
- package/browser/workflow/engine/workflow-step.executor.mjs +32 -12
- package/browser/workflow/engine/workflow.engine.mjs +5 -0
- package/browser/workflow/tools/register-workflow.tool.mjs +5 -2
- package/browser/workflow/tools/remove-workflow.tool.mjs +9 -0
- package/browser/workflow/tools/update-workflow.tool.mjs +8 -0
- package/builtin/authorities/authorities-input.d.ts +3 -0
- package/builtin/authorities/authorities-input.d.ts.map +1 -0
- package/common/decorators/front-mcp.decorator.d.ts.map +1 -1
- package/common/decorators/http-route.decorator.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/server.interface.d.ts +2 -0
- package/common/interfaces/server.interface.d.ts.map +1 -1
- package/common/metadata/agent.metadata.d.ts +2 -2
- package/common/metadata/app.metadata.d.ts +500 -52
- package/common/metadata/app.metadata.d.ts.map +1 -1
- package/common/metadata/duty.metadata.d.ts +41 -11
- package/common/metadata/duty.metadata.d.ts.map +1 -1
- package/common/metadata/enabled.metadata.d.ts +32 -0
- package/common/metadata/enabled.metadata.d.ts.map +1 -1
- package/common/metadata/event.metadata.d.ts +146 -0
- package/common/metadata/event.metadata.d.ts.map +1 -1
- package/common/metadata/front-mcp.metadata.d.ts +9457 -348
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/http-route.metadata.d.ts +7 -0
- package/common/metadata/http-route.metadata.d.ts.map +1 -1
- package/common/metadata/job.metadata.d.ts +1 -1
- package/common/metadata/output-policy.d.ts +1 -1
- package/common/metadata/plugin.metadata.d.ts +2 -2
- package/common/metadata/tool.metadata.d.ts +1 -1
- package/common/metadata/worker.metadata.d.ts +4 -4
- package/common/metadata/workflow.metadata.d.ts +15 -1
- package/common/metadata/workflow.metadata.d.ts.map +1 -1
- package/common/records/job.record.d.ts +6 -0
- package/common/records/job.record.d.ts.map +1 -1
- package/common/records/workflow.record.d.ts +6 -0
- package/common/records/workflow.record.d.ts.map +1 -1
- package/common/schemas/annotated-class.schema.d.ts +1 -1
- package/common/schemas/http-output.schema.d.ts +24 -24
- package/common/tokens/front-mcp.tokens.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/types/auth/session.types.d.ts +12 -1
- package/common/types/auth/session.types.d.ts.map +1 -1
- package/common/types/options/elicitation/schema.d.ts +137 -0
- package/common/types/options/elicitation/schema.d.ts.map +1 -1
- package/common/types/options/http/interfaces.d.ts +41 -4
- package/common/types/options/http/interfaces.d.ts.map +1 -1
- package/common/types/options/http/schema.d.ts +5 -2
- package/common/types/options/http/schema.d.ts.map +1 -1
- package/common/types/options/redis/connection.d.ts +18 -0
- package/common/types/options/redis/connection.d.ts.map +1 -0
- package/common/types/options/redis/index.d.ts +7 -3
- package/common/types/options/redis/index.d.ts.map +1 -1
- package/common/types/options/redis/interfaces.d.ts +54 -2
- package/common/types/options/redis/interfaces.d.ts.map +1 -1
- package/common/types/options/redis/schema.d.ts +412 -2
- package/common/types/options/redis/schema.d.ts.map +1 -1
- package/common/types/options/skills-http/interfaces.d.ts +7 -0
- package/common/types/options/skills-http/interfaces.d.ts.map +1 -1
- package/common/types/options/skills-http/schema.d.ts +19 -0
- package/common/types/options/skills-http/schema.d.ts.map +1 -1
- package/common/types/options/transport/index.d.ts +1 -1
- package/common/types/options/transport/index.d.ts.map +1 -1
- package/common/types/options/transport/interfaces.d.ts +32 -0
- package/common/types/options/transport/interfaces.d.ts.map +1 -1
- package/common/types/options/transport/schema.d.ts +548 -0
- package/common/types/options/transport/schema.d.ts.map +1 -1
- package/common/utils/auth-info.utils.d.ts +29 -1
- package/common/utils/auth-info.utils.d.ts.map +1 -1
- package/common/utils/guard.utils.d.ts +6 -3
- package/common/utils/guard.utils.d.ts.map +1 -1
- package/common/utils/index.d.ts +1 -0
- package/common/utils/index.d.ts.map +1 -1
- package/completion/flows/complete.flow.d.ts +5 -1
- package/completion/flows/complete.flow.d.ts.map +1 -1
- package/context/frontmcp-context.provider.d.ts +1 -1
- package/direct/direct.types.d.ts +4 -4
- package/direct/direct.types.d.ts.map +1 -1
- package/duty/duty.lifecycle.d.ts +1 -1
- package/duty/duty.lifecycle.d.ts.map +1 -1
- package/duty/duty.runner.d.ts +6 -1
- package/duty/duty.runner.d.ts.map +1 -1
- package/duty/lease-holder.d.ts +26 -3
- package/duty/lease-holder.d.ts.map +1 -1
- package/duty/lease-store.d.ts +2 -0
- package/duty/lease-store.d.ts.map +1 -1
- package/elicitation/elicitation.types.d.ts +2 -0
- package/elicitation/elicitation.types.d.ts.map +1 -1
- package/elicitation/flows/elicitation-request.flow.d.ts +2 -0
- package/elicitation/flows/elicitation-request.flow.d.ts.map +1 -1
- package/elicitation/flows/elicitation-result.flow.d.ts +3 -1
- package/elicitation/flows/elicitation-result.flow.d.ts.map +1 -1
- package/elicitation/questions/question-store.factory.d.ts.map +1 -1
- package/elicitation/store/elicitation-store.factory.d.ts.map +1 -1
- package/elicitation/store/elicitation.store.d.ts +2 -0
- package/elicitation/store/elicitation.store.d.ts.map +1 -1
- package/errors/browser-entry-point.errors.d.ts +1 -0
- package/errors/browser-entry-point.errors.d.ts.map +1 -1
- package/errors/duty.errors.d.ts +4 -0
- package/errors/duty.errors.d.ts.map +1 -1
- package/errors/index.d.ts +3 -3
- package/errors/index.d.ts.map +1 -1
- package/errors/job.errors.d.ts +22 -4
- package/errors/job.errors.d.ts.map +1 -1
- package/errors/mcp.error.d.ts +11 -1
- package/errors/mcp.error.d.ts.map +1 -1
- package/errors/provider.errors.d.ts +11 -0
- package/errors/provider.errors.d.ts.map +1 -1
- package/errors/transport.errors.d.ts +29 -0
- package/errors/transport.errors.d.ts.map +1 -1
- package/esm/index.mjs +56 -51
- package/event/delivery/event-outbox.d.ts +15 -2
- package/event/delivery/event-outbox.d.ts.map +1 -1
- package/event/event-gates.d.ts +6 -1
- package/event/event-gates.d.ts.map +1 -1
- package/event/event-scope.helper.d.ts.map +1 -1
- package/event/flows/event-ended.flow.d.ts +4 -3
- package/event/flows/event-ended.flow.d.ts.map +1 -1
- package/event/flows/event-poll.flow.d.ts.map +1 -1
- package/event/flows/event-publish-http.flow.d.ts +1 -1
- package/event/flows/event-publish.flow.d.ts.map +1 -1
- package/event/flows/event-subscribe.flow.d.ts.map +1 -1
- package/event/flows/event-unsubscribe.flow.d.ts +2 -2
- package/event/flows/event-unsubscribe.flow.d.ts.map +1 -1
- package/event/index.d.ts +1 -1
- package/event/index.d.ts.map +1 -1
- package/event/poll/event-poll-leases.d.ts +4 -2
- package/event/poll/event-poll-leases.d.ts.map +1 -1
- package/event/replay/event-replays.d.ts.map +1 -1
- package/event/stream/event-stream.d.ts +2 -0
- package/event/stream/event-stream.d.ts.map +1 -1
- package/event/stream/event-streams.d.ts +5 -2
- package/event/stream/event-streams.d.ts.map +1 -1
- package/event/subscription/event-subscription-store.factory.d.ts.map +1 -1
- package/event/subscription/event-subscription-termination.d.ts.map +1 -1
- package/event/subscription/event-subscription.store.d.ts +6 -0
- package/event/subscription/event-subscription.store.d.ts.map +1 -1
- package/event/subscription/event-subscriptions.d.ts +4 -4
- package/event/subscription/event-subscriptions.d.ts.map +1 -1
- package/front-mcp/front-mcp.d.ts +7 -2
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/ha/ha-manager.d.ts.map +1 -1
- package/ha/ha-redis-client.d.ts +16 -0
- package/ha/ha-redis-client.d.ts.map +1 -0
- package/ha/heartbeat.service.d.ts +4 -2
- package/ha/heartbeat.service.d.ts.map +1 -1
- package/ha/index.d.ts +2 -1
- package/ha/index.d.ts.map +1 -1
- package/ha/notification-relay.d.ts +8 -3
- package/ha/notification-relay.d.ts.map +1 -1
- package/ha/relay-messages.d.ts +23 -4
- package/ha/relay-messages.d.ts.map +1 -1
- package/http-route/flows/http.route.flow.d.ts +15 -4
- package/http-route/flows/http.route.flow.d.ts.map +1 -1
- package/http-route/http-route.table.d.ts +5 -1
- package/http-route/http-route.table.d.ts.map +1 -1
- package/http-route/people-session-store.d.ts +4 -2
- package/http-route/people-session-store.d.ts.map +1 -1
- package/http-route/people-sign-in.routes.d.ts +10 -0
- package/http-route/people-sign-in.routes.d.ts.map +1 -1
- package/index.d.ts +15 -14
- package/index.d.ts.map +1 -1
- package/index.js +62 -57
- package/job/execution/job-execution.manager.d.ts +73 -7
- package/job/execution/job-execution.manager.d.ts.map +1 -1
- package/job/flows/execute-job.flow.d.ts.map +1 -1
- package/job/index.d.ts +2 -2
- package/job/index.d.ts.map +1 -1
- package/job/job-admission.d.ts +81 -2
- package/job/job-admission.d.ts.map +1 -1
- package/job/job-attempt.d.ts +2 -2
- package/job/job-attempt.d.ts.map +1 -1
- package/job/job-run-access.d.ts +14 -0
- package/job/job-run-access.d.ts.map +1 -1
- package/job/job-scope.helper.d.ts +20 -0
- package/job/job-scope.helper.d.ts.map +1 -1
- package/job/runner/detached-job.worker.d.ts +9 -0
- package/job/runner/detached-job.worker.d.ts.map +1 -1
- package/job/runner/job-runner.d.ts +18 -0
- package/job/runner/job-runner.d.ts.map +1 -1
- package/job/store/job-definition-store.factory.d.ts +5 -1
- package/job/store/job-definition-store.factory.d.ts.map +1 -1
- package/job/store/job-state-store.factory.d.ts +5 -1
- package/job/store/job-state-store.factory.d.ts.map +1 -1
- package/job/store/job-state.interface.d.ts +16 -0
- package/job/store/job-state.interface.d.ts.map +1 -1
- package/job/store/memory-job-state.store.d.ts +33 -2
- package/job/store/memory-job-state.store.d.ts.map +1 -1
- package/job/store/redis-job-state.store.d.ts +13 -3
- package/job/store/redis-job-state.store.d.ts.map +1 -1
- package/job/store/storage-job-state.store.d.ts +4 -0
- package/job/store/storage-job-state.store.d.ts.map +1 -1
- package/job/tools/cancel-job.tool.d.ts.map +1 -1
- package/job/tools/register-job.tool.d.ts.map +1 -1
- package/job/tools/remove-job.tool.d.ts.map +1 -1
- package/job/tools/update-job.tool.d.ts.map +1 -1
- package/mcp-registry/flows/server-card.flow.d.ts +3 -3
- package/mcp-registry/flows/well-known.ai-catalog.flow.d.ts +2 -2
- package/mcp-registry/flows/well-known.mcp-registry-auth.flow.d.ts +1 -1
- package/notification/notification.service.d.ts +5 -1
- package/notification/notification.service.d.ts.map +1 -1
- package/package.json +10 -10
- package/prompt/flows/get-prompt.flow.d.ts.map +1 -1
- package/prompt/flows/prompts-list.flow.d.ts +1 -1
- package/prompt/flows/prompts-list.flow.d.ts.map +1 -1
- package/provider/borrow-providers.d.ts +15 -0
- package/provider/borrow-providers.d.ts.map +1 -0
- package/provider/container-handle.d.ts +31 -0
- package/provider/container-handle.d.ts.map +1 -0
- package/provider/create-container.d.ts +8 -2
- package/provider/create-container.d.ts.map +1 -1
- package/provider/provider.registry.d.ts +23 -4
- package/provider/provider.registry.d.ts.map +1 -1
- package/remote-mcp/remote-oauth.d.ts +3 -1
- package/remote-mcp/remote-oauth.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 +1 -1
- package/resource/flows/resource-templates-list.flow.d.ts.map +1 -1
- package/resource/flows/resources-list.flow.d.ts +1 -1
- package/resource/flows/resources-list.flow.d.ts.map +1 -1
- package/resource/flows/subscribe-resource.flow.d.ts +1 -0
- package/resource/flows/subscribe-resource.flow.d.ts.map +1 -1
- package/resource/materialized/materialized-resources.d.ts +15 -3
- package/resource/materialized/materialized-resources.d.ts.map +1 -1
- package/resource/materialized/resource-store.d.ts +6 -2
- package/resource/materialized/resource-store.d.ts.map +1 -1
- package/resource/resource.events.d.ts +3 -0
- package/resource/resource.events.d.ts.map +1 -1
- package/resource/resource.registry.d.ts +8 -3
- package/resource/resource.registry.d.ts.map +1 -1
- package/scope/flows/http.request.flow.d.ts +8 -1
- package/scope/flows/http.request.flow.d.ts.map +1 -1
- package/scope/scope.instance.d.ts +2 -2
- package/scope/scope.instance.d.ts.map +1 -1
- package/server/adapters/express.host.adapter.d.ts +26 -0
- package/server/adapters/express.host.adapter.d.ts.map +1 -1
- package/server/adapters/user-content.listener.d.ts +5 -1
- package/server/adapters/user-content.listener.d.ts.map +1 -1
- package/server/custom-routes.helper.d.ts +19 -2
- package/server/custom-routes.helper.d.ts.map +1 -1
- package/server/security/resolve-allowed-hosts.d.ts +16 -0
- package/server/security/resolve-allowed-hosts.d.ts.map +1 -1
- package/server/security/same-origin.d.ts +2 -1
- package/server/security/same-origin.d.ts.map +1 -1
- package/server/server.instance.d.ts +10 -0
- package/server/server.instance.d.ts.map +1 -1
- package/shared/ensure-shared-server.d.ts +9 -2
- package/shared/ensure-shared-server.d.ts.map +1 -1
- package/shared/flows/shared.drain.flow.d.ts +1 -1
- package/shared/flows/shared.identify.flow.d.ts +6 -2
- package/shared/flows/shared.identify.flow.d.ts.map +1 -1
- package/shared/index.d.ts.map +1 -1
- package/shared/shared-attach.d.ts +15 -6
- package/shared/shared-attach.d.ts.map +1 -1
- package/shared/shared-embedded.d.ts +12 -2
- package/shared/shared-embedded.d.ts.map +1 -1
- package/shared/shared-endpoint.d.ts +3 -1
- package/shared/shared-endpoint.d.ts.map +1 -1
- package/shared/shared-files.d.ts +2 -0
- package/shared/shared-files.d.ts.map +1 -1
- package/shared/shared-serve.d.ts +20 -1
- package/shared/shared-serve.d.ts.map +1 -1
- package/shared/shared-server.lifecycle.d.ts +40 -10
- package/shared/shared-server.lifecycle.d.ts.map +1 -1
- package/shared/shared-server.options.d.ts +43 -6
- package/shared/shared-server.options.d.ts.map +1 -1
- package/skill/cache/skill-http-cache.catalog.d.ts +4 -4
- package/skill/cache/skill-http-cache.catalog.d.ts.map +1 -1
- package/skill/cache/skill-http-cache.d.ts +15 -2
- package/skill/cache/skill-http-cache.d.ts.map +1 -1
- package/skill/cache/skill-http-cache.factory.d.ts +12 -0
- package/skill/cache/skill-http-cache.factory.d.ts.map +1 -1
- package/skill/flows/http/llm-full-txt.flow.d.ts +1 -1
- package/skill/flows/http/llm-full-txt.flow.d.ts.map +1 -1
- package/skill/flows/http/llm-txt.flow.d.ts +1 -1
- package/skill/flows/http/llm-txt.flow.d.ts.map +1 -1
- package/skill/flows/http/skills-api.flow.d.ts +1 -1
- package/skill/flows/http/skills-api.flow.d.ts.map +1 -1
- package/skill/flows/load-skill.flow.d.ts.map +1 -1
- package/skill/skill-filter.helper.d.ts +16 -0
- package/skill/skill-filter.helper.d.ts.map +1 -1
- package/skill/skill-http.utils.d.ts +7 -1
- package/skill/skill-http.utils.d.ts.map +1 -1
- package/surface/entry-enabled.d.ts +23 -6
- package/surface/entry-enabled.d.ts.map +1 -1
- package/surface/index.d.ts +2 -2
- package/surface/index.d.ts.map +1 -1
- package/surface/live-surface.d.ts +32 -7
- package/surface/live-surface.d.ts.map +1 -1
- package/task/helpers/task-run-context.d.ts +5 -0
- package/task/helpers/task-run-context.d.ts.map +1 -0
- package/task/helpers/task-runner.d.ts.map +1 -1
- package/task/store/storage-task.store.d.ts.map +1 -1
- package/task/store/task-store.factory.d.ts.map +1 -1
- package/task/store/task.store.d.ts +1 -1
- package/task/store/task.store.d.ts.map +1 -1
- package/task/task.types.d.ts +1 -0
- package/task/task.types.d.ts.map +1 -1
- package/tool/flows/call-tool.flow.d.ts +10 -3
- package/tool/flows/call-tool.flow.d.ts.map +1 -1
- package/tool/flows/tools-list.flow.d.ts +1 -1
- package/tool/flows/tools-list.flow.d.ts.map +1 -1
- package/tool/ui/ui-shared.d.ts +2 -0
- package/tool/ui/ui-shared.d.ts.map +1 -1
- package/tool/ui/widget-enabled.d.ts +8 -0
- package/tool/ui/widget-enabled.d.ts.map +1 -0
- package/tool/undeclared-arguments-message.d.ts.map +1 -1
- package/tool/undeclared-arguments.d.ts +4 -0
- package/tool/undeclared-arguments.d.ts.map +1 -1
- package/transport/adapters/streamable-http-transport.d.ts +2 -0
- package/transport/adapters/streamable-http-transport.d.ts.map +1 -1
- package/transport/adapters/transport.local.adapter.d.ts +3 -0
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.sse.adapter.d.ts +3 -0
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.streamable-http.adapter.d.ts +1 -0
- package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -1
- package/transport/bus/redis-transport-bus.d.ts +25 -4
- package/transport/bus/redis-transport-bus.d.ts.map +1 -1
- package/transport/channel-signature.d.ts +16 -0
- package/transport/channel-signature.d.ts.map +1 -0
- package/transport/event-stores/redis.event-store.d.ts +1 -1
- package/transport/event-stores/redis.event-store.d.ts.map +1 -1
- package/transport/flows/handle.mcp-20260728.flow.d.ts +2 -1
- package/transport/flows/handle.mcp-20260728.flow.d.ts.map +1 -1
- package/transport/flows/handle.streamable-http.flow.d.ts +1 -1
- package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -1
- package/transport/mcp-20260728/client/mcp-stateless.client.d.ts +8 -0
- package/transport/mcp-20260728/client/mcp-stateless.client.d.ts.map +1 -1
- package/transport/mcp-20260728/result-decorator.d.ts +4 -2
- package/transport/mcp-20260728/result-decorator.d.ts.map +1 -1
- package/transport/mcp-20260728/subscriptions.d.ts +2 -0
- package/transport/mcp-20260728/subscriptions.d.ts.map +1 -1
- package/transport/mcp-handlers/index.d.ts +5 -3
- package/transport/mcp-handlers/index.d.ts.map +1 -1
- package/transport/relay/relay-scope.helper.d.ts +2 -2
- package/transport/relay/relay-scope.helper.d.ts.map +1 -1
- package/transport/session-end-channel.d.ts +81 -0
- package/transport/session-end-channel.d.ts.map +1 -0
- package/transport/transport.local.d.ts +2 -1
- package/transport/transport.local.d.ts.map +1 -1
- package/transport/transport.registry.d.ts +73 -2
- package/transport/transport.registry.d.ts.map +1 -1
- package/transport/transport.types.d.ts +6 -1
- package/transport/transport.types.d.ts.map +1 -1
- package/transport/web-fetch-handler.d.ts.map +1 -1
- package/utils/same-origin-fetch.utils.d.ts +5 -0
- package/utils/same-origin-fetch.utils.d.ts.map +1 -0
- package/work/index.d.ts +2 -0
- package/work/index.d.ts.map +1 -0
- package/work/work-spans.d.ts +42 -0
- package/work/work-spans.d.ts.map +1 -0
- package/worker/worker.lifecycle.d.ts.map +1 -1
- package/workflow/engine/workflow-step.executor.d.ts +10 -3
- package/workflow/engine/workflow-step.executor.d.ts.map +1 -1
- package/workflow/engine/workflow.engine.d.ts +2 -0
- package/workflow/engine/workflow.engine.d.ts.map +1 -1
- package/workflow/tools/register-workflow.tool.d.ts.map +1 -1
- package/workflow/tools/remove-workflow.tool.d.ts.map +1 -1
- package/workflow/tools/update-workflow.tool.d.ts.map +1 -1
|
@@ -4,6 +4,7 @@ import { type MetricsOptionsInterface } from '../common/types/options/metrics';
|
|
|
4
4
|
import { type HealthService } from '../health';
|
|
5
5
|
import { type MetricsService } from '../metrics';
|
|
6
6
|
import { type HostServerAdapter } from './adapters/base.host.adapter';
|
|
7
|
+
import { type CheckClientIpFn } from './custom-routes.helper';
|
|
7
8
|
/** The server's HTTP options; without `bodyLimit`, the host adapter applies its default. */
|
|
8
9
|
export type HttpServerOptions = Omit<HttpOptions, 'bodyLimit'> & Partial<Pick<HttpOptions, 'bodyLimit'>>;
|
|
9
10
|
export declare class FrontMcpServerInstance extends FrontMcpServer {
|
|
@@ -16,6 +17,7 @@ export declare class FrontMcpServerInstance extends FrontMcpServer {
|
|
|
16
17
|
private _metricsService?;
|
|
17
18
|
private _metricsConfig?;
|
|
18
19
|
private userContent?;
|
|
20
|
+
private checkClientIp?;
|
|
19
21
|
constructor(httpConfig: HttpServerOptions);
|
|
20
22
|
private setupDefaults;
|
|
21
23
|
registerMiddleware(entryPath: string, handler: ServerRequestHandler): void | Promise<void>;
|
|
@@ -41,9 +43,17 @@ export declare class FrontMcpServerInstance extends FrontMcpServer {
|
|
|
41
43
|
* registration without ambiguity.
|
|
42
44
|
*/
|
|
43
45
|
setMetricsConfig(metricsConfig: MetricsOptionsInterface): void;
|
|
46
|
+
/** The `throttle.ipFilter` check the metrics route and the user-content listener run before they answer. */
|
|
47
|
+
setClientIpCheck(checkClientIp: CheckClientIpFn): void;
|
|
44
48
|
prepare(): void;
|
|
45
49
|
getHandler(): unknown;
|
|
46
50
|
start(): Promise<void>;
|
|
51
|
+
loopbackNames(): readonly string[] | undefined;
|
|
52
|
+
/** Browsers keep cookies per host, not per port, so a content hostname the MCP listener also answers to shares them. */
|
|
53
|
+
private warnOfSharedContentHosts;
|
|
54
|
+
/** The Host values the MCP listener accepts, as its host check derives them: `any` when it checks no Host. */
|
|
55
|
+
private mcpListenerHosts;
|
|
56
|
+
private refuseClient;
|
|
47
57
|
stop(): Promise<void>;
|
|
48
58
|
}
|
|
49
59
|
//# sourceMappingURL=server.instance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.instance.d.ts","sourceRoot":"","sources":["../../src/server/server.instance.ts"],"names":[],"mappings":"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AAM,EAAE,OAAO,EAAE,oBAAoB;IAInE,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB;IAI7E;;;OAGG;IACH,gBAAgB,CAAC,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,sBAAsB,GAAG,IAAI;IAK1F;;;OAGG;IACH,eAAe,CAAC,YAAY,EAAE,sBAAsB,GAAG,IAAI;IAI3D;;;OAGG;IACH,iBAAiB,CAAC,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,uBAAuB,GAAG,IAAI;IAK/F;;;;OAIG;IACH,gBAAgB,CAAC,aAAa,EAAE,uBAAuB,GAAG,IAAI;IAI9D,4GAA4G;IAC5G,gBAAgB,CAAC,aAAa,EAAE,eAAe,GAAG,IAAI;IAItD,OAAO;IAiCP,UAAU,IAAI,OAAO;IAIf,KAAK;IA6BF,aAAa,IAAI,SAAS,MAAM,EAAE,GAAG,SAAS;IAKvD,wHAAwH;IACxH,OAAO,CAAC,wBAAwB;IAkBhC,8GAA8G;IAC9G,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,YAAY;IAUL,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CASrC"}
|
|
@@ -43,6 +43,10 @@ export interface EnsureSharedServerOptions {
|
|
|
43
43
|
replaceOlder: boolean;
|
|
44
44
|
/** How long it may take, including starting or replacing a server. */
|
|
45
45
|
budgetMs: number;
|
|
46
|
+
/** Whether it may start, or replace, a server; without it, it only attaches to one that runs. @default true */
|
|
47
|
+
mayStart?: boolean;
|
|
48
|
+
/** Whether the server it starts runs its own version, so it may drain an older one first: only its own entry does. */
|
|
49
|
+
startsOwnVersion?: boolean;
|
|
46
50
|
openLock(): Promise<StartLockHandle>;
|
|
47
51
|
spawnServer(startLockHolder: string): SpawnedServer;
|
|
48
52
|
pollMs?: number;
|
|
@@ -53,6 +57,9 @@ export interface EnsureSharedServerOptions {
|
|
|
53
57
|
* the start lock's holder starts one; an older one it first asks to drain, and waits for it to go.
|
|
54
58
|
*/
|
|
55
59
|
export declare function ensureSharedServer(options: EnsureSharedServerOptions): Promise<SharedServerAttachment>;
|
|
56
|
-
/**
|
|
57
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Run this process's entry again detached as the key's server, or `entry`, from its own folder, when named. The server
|
|
62
|
+
* gets the session's Node flags but those that open an inspector.
|
|
63
|
+
*/
|
|
64
|
+
export declare function spawnSharedServer(key: string, startLockHolder: string, entry?: string): SpawnedServer;
|
|
58
65
|
//# sourceMappingURL=ensure-shared-server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure-shared-server.d.ts","sourceRoot":"","sources":["../../src/shared/ensure-shared-server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ensure-shared-server.d.ts","sourceRoot":"","sources":["../../src/shared/ensure-shared-server.ts"],"names":[],"mappings":"AAGA,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG7E,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAoB,KAAK,iBAAiB,EAA2B,MAAM,gBAAgB,CAAC;AACnG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,mGAAmG;AACnG,eAAO,MAAM,gBAAgB,0BAA0B,CAAC;AACxD,wHAAwH;AACxH,eAAO,MAAM,qBAAqB,+BAA+B,CAAC;AAMlE,6FAA6F;AAC7F,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC;AAED,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAC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cp/lazy-zod").ZodObject<{
|
|
|
19
19
|
httpOnly: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
20
20
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
21
21
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
22
|
-
none: "none";
|
|
23
22
|
strict: "strict";
|
|
23
|
+
none: "none";
|
|
24
24
|
lax: "lax";
|
|
25
25
|
}>>;
|
|
26
26
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
@@ -19,8 +19,8 @@ declare const outputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
|
19
19
|
httpOnly: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
20
20
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
21
21
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
22
|
-
none: "none";
|
|
23
22
|
strict: "strict";
|
|
23
|
+
none: "none";
|
|
24
24
|
lax: "lax";
|
|
25
25
|
}>>;
|
|
26
26
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
@@ -37,7 +37,11 @@ declare global {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
declare const name: "shared:identify";
|
|
40
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* POST /.well-known/frontmcp-shared-server: the HMAC of the client's nonce, bound to the server's endpoint and version;
|
|
42
|
+
* `503` with `x-frontmcp-shared-server: exiting` and the same proof once the server is exiting. A challenge is no
|
|
43
|
+
* activity: the request that follows it carries the token, and counts.
|
|
44
|
+
*/
|
|
41
45
|
export default class SharedIdentifyFlow extends FlowBase<typeof name> {
|
|
42
46
|
static canActivate(request: ServerRequest): boolean;
|
|
43
47
|
checkIpFilter(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.identify.flow.d.ts","sourceRoot":"","sources":["../../../src/shared/flows/shared.identify.flow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EAIL,QAAQ,EAMR,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AAKtB,QAAA,MAAM,WAAW;;;;gCAAkB,CAAC;AACpC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;gCAAiB,CAAC;AAEpC,QAAA,MAAM,IAAI;;;CAG2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,iBAAiB,EAAE,cAAc,CAC/B,kBAAkB,EAClB,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CACnC,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,iBAA0B,CAAC;AAGxC
|
|
1
|
+
{"version":3,"file":"shared.identify.flow.d.ts","sourceRoot":"","sources":["../../../src/shared/flows/shared.identify.flow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EAIL,QAAQ,EAMR,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AAKtB,QAAA,MAAM,WAAW;;;;gCAAkB,CAAC;AACpC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;gCAAiB,CAAC;AAEpC,QAAA,MAAM,IAAI;;;CAG2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,iBAAiB,EAAE,cAAc,CAC/B,kBAAkB,EAClB,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CACnC,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,iBAA0B,CAAC;AAGxC;;;;GAIG;AASH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IACnE,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO;IAK7C,aAAa;IAKb,YAAY;IAKZ,KAAK;CAWZ"}
|
package/shared/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAQzE,OAAO,EAAe,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAQzE,OAAO,EAAe,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAgBxE;;;GAGG;AACH,wBAAsB,SAAS,CAC7B,MAAM,EAAE,mBAAmB,EAC3B,aAAa,EAAE,OAAO,EACtB,MAAM,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,oBAAoB,GAC3D,OAAO,CAAC,IAAI,CAAC,CAiDf"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Readable, Writable } from 'node:stream';
|
|
2
2
|
import { InternalMcpError } from '../errors/mcp.error';
|
|
3
3
|
import { type SpawnedServer } from './ensure-shared-server';
|
|
4
|
-
import type {
|
|
5
|
-
import type
|
|
4
|
+
import type { BootedEmbeddedServer } from './shared-embedded';
|
|
5
|
+
import { type ResolvedSharedServerOptions } from './shared-server.options';
|
|
6
6
|
export interface AttachSharedSessionOptions extends ResolvedSharedServerOptions {
|
|
7
7
|
input: Readable;
|
|
8
8
|
output: Writable;
|
|
@@ -10,10 +10,17 @@ export interface AttachSharedSessionOptions extends ResolvedSharedServerOptions
|
|
|
10
10
|
name: string;
|
|
11
11
|
/** The session's own version, `info.version`: it never attaches to an older server. */
|
|
12
12
|
version: string;
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
/** Boot the server of `key` in this process, serving nothing until started; with `spare`, while attaching. */
|
|
14
|
+
bootEmbedded(key: string): Promise<BootedEmbeddedServer>;
|
|
15
|
+
/** Start the server of `key`: one the session's own config names (see {@link mayStartServerOf}). */
|
|
16
|
+
spawnServer?: (startLockHolder: string, key: string) => SpawnedServer;
|
|
17
|
+
/** What `keyFileSignature()` said of `rereadKey.file` before the first key read: a change since moves the session. */
|
|
18
|
+
keySignature?: string;
|
|
16
19
|
}
|
|
20
|
+
/** What tells a change of the key file: its size and time, or that it is missing. */
|
|
21
|
+
export declare function keyFileSignature(file: string): Promise<string>;
|
|
22
|
+
/** Whether a session may start the server of `key`: its first key's, with its own entry, or one its `entries` name. */
|
|
23
|
+
export declare function mayStartServerOf(options: Pick<AttachSharedSessionOptions, 'key' | 'entries'>, key: string): boolean;
|
|
17
24
|
export interface SharedSession {
|
|
18
25
|
/** Resolves once the session reaches a server; rejects, after answering the requests it held, when it can't. */
|
|
19
26
|
readonly attached: Promise<void>;
|
|
@@ -31,7 +38,9 @@ export declare function towardsServer(send: typeof fetch): typeof fetch;
|
|
|
31
38
|
* goes away, the session reaches the next one, replays the client's `initialize` and tells it the lists changed;
|
|
32
39
|
* when it can't attach to one, it runs the server in its own process. What the server sends on its own reaches the
|
|
33
40
|
* client over the session's notification stream, a Claude Code channel event included. A session that lost that
|
|
34
|
-
* stream follows a server that took its key over, without waiting for a request of its client.
|
|
41
|
+
* stream follows a server that took its key over, without waiting for a request of its client. A request a server
|
|
42
|
+
* sends the client goes out under an id of the session's own, and the client's answer goes back to that server alone,
|
|
43
|
+
* also after the session moved to another; an answer for a server the session left is dropped.
|
|
35
44
|
*/
|
|
36
45
|
export declare function attachSharedSession(options: AttachSharedSessionOptions): SharedSession;
|
|
37
46
|
//# sourceMappingURL=shared-attach.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-attach.d.ts","sourceRoot":"","sources":["../../src/shared/shared-attach.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"shared-attach.d.ts","sourceRoot":"","sources":["../../src/shared/shared-attach.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAatD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,oBAAoB,EAAwB,MAAM,mBAAmB,CAAC;AASpF,OAAO,EAAuB,KAAK,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAehG,MAAM,WAAW,0BAA2B,SAAQ,2BAA2B;IAC7E,KAAK,EAAE,QAAQ,CAAC;IAChB,MAAM,EAAE,QAAQ,CAAC;IACjB,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;IACb,uFAAuF;IACvF,OAAO,EAAE,MAAM,CAAC;IAChB,8GAA8G;IAC9G,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACzD,oGAAoG;IACpG,WAAW,CAAC,EAAE,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,aAAa,CAAC;IACtE,sHAAsH;IACtH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,qFAAqF;AACrF,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAOpE;AAED,uHAAuH;AACvH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,0BAA0B,EAAE,KAAK,GAAG,SAAS,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAEnH;AAED,MAAM,WAAW,aAAa;IAC5B,gHAAgH;IAChH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACvB;AAKD,8GAA8G;AAC9G,qBAAa,qBAAsB,SAAQ,gBAAgB;IAEvD,QAAQ,CAAC,OAAO,EAAE,OAAO;gBAAhB,OAAO,EAAE,OAAO,EACzB,MAAM,EAAE,MAAM;CAIjB;AAyCD,sHAAsH;AACtH,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,KAAK,GAAG,OAAO,KAAK,CAe9D;AA0CD;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B,GAAG,aAAa,CA6btF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type FrontMcpConfigInput, type FrontMcpConfigType } from '../common';
|
|
2
2
|
import { type SharedServerInstance } from './shared-serve';
|
|
3
|
+
import type { ResolvedSharedServerOptions } from './shared-server.options';
|
|
3
4
|
/** The server a session runs in its own process, reached through the same HTTP flows as the shared one. */
|
|
4
5
|
export interface EmbeddedSharedServer {
|
|
5
6
|
url: string;
|
|
@@ -7,6 +8,15 @@ export interface EmbeddedSharedServer {
|
|
|
7
8
|
fetch: typeof fetch;
|
|
8
9
|
close(): Promise<void>;
|
|
9
10
|
}
|
|
10
|
-
/**
|
|
11
|
-
export
|
|
11
|
+
/** A server booted in the session's process, serving nothing yet: `start()` serves it, `close()` shuts it down. */
|
|
12
|
+
export interface BootedEmbeddedServer {
|
|
13
|
+
start(): Promise<EmbeddedSharedServer>;
|
|
14
|
+
close(): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Boot `config` in this process as the key's shared server would run it: static auth for a fresh token, the routes and
|
|
18
|
+
* people auth the config's `http` keeps, and a listener of its own (see {@link embeddedListener}), so its session gets
|
|
19
|
+
* a notification stream as on the shared server. Nothing is served, and no `onReady()` runs, until `start()`.
|
|
20
|
+
*/
|
|
21
|
+
export declare function bootEmbeddedServer(config: FrontMcpConfigInput, options: Pick<ResolvedSharedServerOptions, 'key' | 'transport'>, create: (config: FrontMcpConfigType) => SharedServerInstance): Promise<BootedEmbeddedServer>;
|
|
12
22
|
//# sourceMappingURL=shared-embedded.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-embedded.d.ts","sourceRoot":"","sources":["../../src/shared/shared-embedded.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shared-embedded.d.ts","sourceRoot":"","sources":["../../src/shared/shared-embedded.ts"],"names":[],"mappings":"AAKA,OAAO,EAA0B,KAAK,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAOtG,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAE3E,2GAA2G;AAC3G,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,mHAAmH;AACnH,MAAM,WAAW,oBAAoB;IACnC,KAAK,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACvC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAyBD;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,mBAAmB,EAC3B,OAAO,EAAE,IAAI,CAAC,2BAA2B,EAAE,KAAK,GAAG,WAAW,CAAC,EAC/D,MAAM,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,oBAAoB,GAC3D,OAAO,CAAC,oBAAoB,CAAC,CA8C/B"}
|
|
@@ -17,7 +17,8 @@ export declare function unixEndpoint(socketPath: string): SharedEndpoint;
|
|
|
17
17
|
export declare function httpEndpoint(port: number): SharedEndpoint;
|
|
18
18
|
/**
|
|
19
19
|
* `refused`: something answered, but it did not prove it holds the key; `verified` carries the version it proved.
|
|
20
|
-
* `exiting`: it says it is exiting,
|
|
20
|
+
* `exiting`: it says it is exiting, and `proven` whether it proved it holds the key as it said so; it is sent nothing
|
|
21
|
+
* more either way.
|
|
21
22
|
*/
|
|
22
23
|
export type IdentifyResult = {
|
|
23
24
|
outcome: 'verified';
|
|
@@ -26,6 +27,7 @@ export type IdentifyResult = {
|
|
|
26
27
|
outcome: 'refused';
|
|
27
28
|
} | {
|
|
28
29
|
outcome: 'exiting';
|
|
30
|
+
proven: boolean;
|
|
29
31
|
} | {
|
|
30
32
|
outcome: 'unreachable';
|
|
31
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-endpoint.d.ts","sourceRoot":"","sources":["../../src/shared/shared-endpoint.ts"],"names":[],"mappings":"AASA,2GAA2G;AAC3G,eAAO,MAAM,oBAAoB,wCAAwC,CAAC;AAC1E,oGAAoG;AACpG,eAAO,MAAM,iBAAiB,8CAAkC,CAAC;AACjE,uHAAuH;AACvH,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAC9D,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,kDAAkD;AAClD,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAK7C,MAAM,WAAW,cAAc;IAC7B,+F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AA4F;AAC5F,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,UAAU,EACpB,SAAS,SAAsB,GAC9B,OAAO,CAAC,cAAc,CAAC,CAwBzB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,KAAK,CAoB/F;AAED,4HAA4H;AAC5H,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE;IAAE,QAAQ,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE,OAAO,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EACxE,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,OAAO,CAAC,CAalB"}
|
package/shared/shared-files.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export interface SharedServerRecord {
|
|
|
15
15
|
secret: string;
|
|
16
16
|
}
|
|
17
17
|
export declare function sharedServerFiles(key: string): SharedServerFiles;
|
|
18
|
+
/** Whether the platform can listen on a socket at `socketPath`: a socket address holds at most 103 bytes of it. */
|
|
19
|
+
export declare function socketPathFits(socketPath: string): boolean;
|
|
18
20
|
/** Refuse a socket path the platform can't listen on, which would otherwise fail with a bare `EINVAL`. */
|
|
19
21
|
export declare function assertSocketPathFits(files: SharedServerFiles): void;
|
|
20
22
|
/** Create the key's folder owner-only, and refuse one that another user could replace, or one above it. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-files.d.ts","sourceRoot":"","sources":["../../src/shared/shared-files.ts"],"names":[],"mappings":"AAgBA,2GAA2G;AAC3G,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,sHAAsH;AACtH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,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AE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAsBD,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAShE;AAED,mHAAmH;AACnH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED,0GAA0G;AAC1G,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAMnE;AAED,2GAA2G;AAC3G,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAapF;AAED,gGAAgG;AAChG,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAO3G;AASD,iGAAiG;AACjG,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAkBxG;AAED,mGAAmG;AACnG,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAM7F"}
|
package/shared/shared-serve.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FrontMcpConfigInput, type FrontMcpConfigType, type ScopeEntry } from '../common';
|
|
1
|
+
import { type FrontMcpConfigInput, type FrontMcpConfigType, type HttpOptionsInput, type ScopeEntry } from '../common';
|
|
2
2
|
import type { ResolvedSharedServerOptions } from './shared-server.options';
|
|
3
3
|
/** The part of `FrontMcpInstance` a shared server runs. */
|
|
4
4
|
export interface SharedServerInstance {
|
|
@@ -13,6 +13,25 @@ export interface SharedServerHandle {
|
|
|
13
13
|
/** Refuse new requests, remove the record, let the requests in flight finish, then shut the server down. */
|
|
14
14
|
close(): Promise<void>;
|
|
15
15
|
}
|
|
16
|
+
/** A port nothing listens on now; a process that takes it first makes the listen fail, and gets no token. */
|
|
17
|
+
export declare function freeLoopbackPort(): Promise<number>;
|
|
18
|
+
/**
|
|
19
|
+
* What a shared server keeps of the config's `http`: its MCP path, its routes, how people sign in to its pages (see
|
|
20
|
+
* {@link sharedPeopleAuth}), its body limits and its headers. Where it listens, its CORS and its Host and Origin checks
|
|
21
|
+
* are the shared server's own.
|
|
22
|
+
*/
|
|
23
|
+
export declare function keptHttpOptions(http: HttpOptionsInput | undefined): HttpOptionsInput;
|
|
24
|
+
/**
|
|
25
|
+
* An owner-only socket, or loopback with Host checked against the loopback names and every Origin refused but the
|
|
26
|
+
* server's own (a page it serves posting back to it), with what the config's `http` keeps (see {@link keptHttpOptions}).
|
|
27
|
+
*/
|
|
28
|
+
export declare function sharedHttpOptions(endpoint: {
|
|
29
|
+
socketPath: string;
|
|
30
|
+
port?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
port: number;
|
|
33
|
+
socketPath?: undefined;
|
|
34
|
+
}, http: HttpOptionsInput | undefined): HttpOptionsInput;
|
|
16
35
|
/** Refuse an app with auth of its own: it would keep that auth, and answer requests that lack the token. */
|
|
17
36
|
export declare function assertTokenGuardsEveryScope(instance: SharedServerInstance, key: string, token: string): void;
|
|
18
37
|
export interface ServeSharedOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-serve.d.ts","sourceRoot":"","sources":["../../src/shared/shared-serve.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"shared-serve.d.ts","sourceRoot":"","sources":["../../src/shared/shared-serve.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EAChB,MAAM,WAAW,CAAC;AAoBnB,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAW3E,2DAA2D;AAC3D,MAAM,WA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AAE,MAAM,KAAK,IAAI,CAAC;IAC7B,oFAAoF;IACpF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAYxF"}
|
|
@@ -1,31 +1,52 @@
|
|
|
1
1
|
import { httpRespond } from '../common';
|
|
2
|
-
/**
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* The answer to a request that reaches a shared server once it is exiting: sent again, it reaches the next one. To an
|
|
4
|
+
* identity challenge it carries the server's proof.
|
|
5
|
+
*/
|
|
6
|
+
export declare function exitingResponse(proof?: {
|
|
7
|
+
proof: string;
|
|
8
|
+
version: string;
|
|
9
|
+
}): ReturnType<typeof httpRespond.json>;
|
|
4
10
|
/** The Node response of a request: it tells when the request is over, and can be cut off. */
|
|
5
11
|
interface TrackedResponse {
|
|
6
12
|
once?(event: 'close', listener: () => void): unknown;
|
|
7
13
|
destroy?(): unknown;
|
|
14
|
+
readonly closed?: boolean;
|
|
8
15
|
}
|
|
9
|
-
/** The part of
|
|
10
|
-
interface
|
|
16
|
+
/** The part of a route's run the lifecycle reads: its Node response, and how to answer. */
|
|
17
|
+
interface HttpRouteRun {
|
|
11
18
|
readonly rawInput: {
|
|
12
19
|
request?: {
|
|
13
20
|
method?: string;
|
|
14
21
|
};
|
|
15
22
|
response?: TrackedResponse;
|
|
16
23
|
};
|
|
24
|
+
respond(output: ReturnType<typeof httpRespond.json>): void;
|
|
25
|
+
}
|
|
26
|
+
/** The part of an `@HttpRoute`'s run the lifecycle reads besides: the route, and so whether it is public. */
|
|
27
|
+
interface HttpPageRun extends HttpRouteRun {
|
|
28
|
+
readonly state: {
|
|
29
|
+
get(key: 'route'): {
|
|
30
|
+
auth?: string;
|
|
31
|
+
} | undefined;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/** The part of an `http:request` run the lifecycle reads: whether it is authorized, its method and Node response, and how to answer. */
|
|
35
|
+
interface HttpRequestRun extends HttpRouteRun {
|
|
17
36
|
readonly state: {
|
|
18
37
|
get(key: 'verifyResult'): {
|
|
19
38
|
kind: string;
|
|
20
39
|
} | undefined;
|
|
21
40
|
};
|
|
22
|
-
respond(output: ReturnType<typeof httpRespond.json>): void;
|
|
23
41
|
}
|
|
24
42
|
/**
|
|
25
43
|
* How long a shared server has gone without a request, and its exit: once asked to exit, it answers every new
|
|
26
44
|
* request 503 with `x-frontmcp-shared-server: exiting`, so its sessions send it to the next server instead. Only a
|
|
27
|
-
* request
|
|
28
|
-
*
|
|
45
|
+
* request a credential admitted counts as activity, until its handler settled and its response closed: one that
|
|
46
|
+
* carries the token, or one to a route that is not public once its auth admitted it (the token, or a signed-in
|
|
47
|
+
* person). An identity challenge does not; the request that follows it does. A notification stream a session holds
|
|
48
|
+
* open (its `GET`) keeps the server from being idle, and is cut off, not waited for, when the server exits; every route's request is waited for until its handler settled and
|
|
49
|
+
* its response closed, its event streams included.
|
|
29
50
|
*/
|
|
30
51
|
export declare class SharedServerLifecycle {
|
|
31
52
|
#private;
|
|
@@ -34,13 +55,22 @@ export declare class SharedServerLifecycle {
|
|
|
34
55
|
get isExiting(): boolean;
|
|
35
56
|
/** Ask the server to exit; the first reason wins. */
|
|
36
57
|
exit(reason: string): void;
|
|
37
|
-
/**
|
|
38
|
-
touch(): void;
|
|
39
|
-
/** How long no request has been in flight and no notification stream open, in ms. */
|
|
58
|
+
/** How long no request that counts as activity has been in flight and no notification stream open, in ms. */
|
|
40
59
|
idleFor(now?: number): number;
|
|
41
60
|
/** Resolves once no request is in flight, or after `timeoutMs`. */
|
|
42
61
|
settled(timeoutMs: number): Promise<void>;
|
|
43
62
|
trackRequest(run: HttpRequestRun): void;
|
|
63
|
+
/** A request an `@HttpRoute` admitted, people pages included; one to a public route is no activity. */
|
|
64
|
+
trackRouteRequest(run: HttpPageRun): void;
|
|
65
|
+
/** The `@HttpRoute`'s handler settled, whatever its outcome. */
|
|
66
|
+
finishRouteHandler(run: HttpRouteRun): void;
|
|
67
|
+
/** A request to a route the host mounts (`http.routes`, channel webhooks): activity once an `auth: true` route admitted it. */
|
|
68
|
+
trackHostRouteRequest(run: HttpRouteRun): void;
|
|
69
|
+
private refuseWhenExiting;
|
|
70
|
+
/** Count a request in flight until its response closed: as activity when `active`, and waited for at exit when `waited`. */
|
|
71
|
+
private startRequest;
|
|
72
|
+
/** Count activity until the function returned is called, once. */
|
|
73
|
+
private holdActivity;
|
|
44
74
|
/** Keep a session's notification stream until it closes: it is activity, but no request to wait for at exit. */
|
|
45
75
|
private holdStream;
|
|
46
76
|
private finishRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-server.lifecycle.d.ts","sourceRoot":"","sources":["../../src/shared/shared-server.lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,WAAW,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"shared-server.lifecycle.d.ts","sourceRoot":"","sources":["../../src/shared/shared-server.lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,WAAW,EAAE,MAAM,WAAW,CAAC;AAQrD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,CAK/G;AAED,6FAA6F;AAC7F,UAAU,eAAe;IACvB,IAAI,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC;IACrD,OAAO,CAAC,IAAI,OAAO,CAAC;IACpB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,2FAA2F;AAC3F,UAAU,YAAY;IACpB,QAAQ,CAAC,QAAQ,EAAE;QAAE,OAAO,CAAC,EAAE;YAAE,MAAM,CAAC,EAAE,MAAM,C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AC,YAAY;IAYpB,gHAAgH;IAChH,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,aAAa;CAKtB"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/** How sessions reach a shared local server: an owner-only Unix socket, or loopback HTTP. */
|
|
2
2
|
export type SharedServerTransport = 'unix' | 'http';
|
|
3
|
+
/** A function a session reads its key with: when it starts, and again each time `rereadKey` fires. */
|
|
4
|
+
export type SharedServerKeyFunction = () => string | Promise<string>;
|
|
5
|
+
/** When a session whose `key` is a function reads it again. */
|
|
6
|
+
export interface SharedServerKeyReread {
|
|
7
|
+
/** The file whose change re-reads the key: it appears, goes, or its size or modification time changes. */
|
|
8
|
+
file: string;
|
|
9
|
+
/** How often the file is checked. @default 1000 */
|
|
10
|
+
intervalMs?: number;
|
|
11
|
+
}
|
|
3
12
|
export interface SharedServerOptions {
|
|
4
|
-
/** Names the server
|
|
5
|
-
key: string;
|
|
13
|
+
/** Names the server; a function is read at the start and on `rereadKey`, and a new key moves the session. */
|
|
14
|
+
key: string | SharedServerKeyFunction;
|
|
6
15
|
/** @default 'unix', or 'http' on Windows */
|
|
7
16
|
transport?: SharedServerTransport;
|
|
8
17
|
/**
|
|
@@ -21,18 +30,46 @@ export interface SharedServerOptions {
|
|
|
21
30
|
idleTimeoutMs?: number | false;
|
|
22
31
|
/** The folder the server runs from: it exits once that folder is removed; `false` never. @default the entry's folder */
|
|
23
32
|
checkout?: string | false;
|
|
33
|
+
/**
|
|
34
|
+
* Boot the server in the session's own process while the session attaches, so a session that can't attach serves its
|
|
35
|
+
* client at once, without booting it then. The spare serves nothing until it is needed, and is shut down once the
|
|
36
|
+
* session attached. @default false
|
|
37
|
+
*/
|
|
38
|
+
spare?: boolean;
|
|
39
|
+
/** When a function `key` is read again (see {@link SharedServerKeyReread}); without it, it is read once. */
|
|
40
|
+
rereadKey?: SharedServerKeyReread;
|
|
41
|
+
/** By key, the entry that starts the server of a key the session moves to; it starts no other key's server. */
|
|
42
|
+
entries?: Record<string, string>;
|
|
24
43
|
}
|
|
25
44
|
export interface ResolvedSharedServerOptions {
|
|
45
|
+
/** The key: the string, or what the function answered when the session started. */
|
|
26
46
|
key: string;
|
|
27
47
|
transport: SharedServerTransport;
|
|
28
48
|
attachBudgetMs: number;
|
|
29
49
|
replaceOlder: boolean;
|
|
30
50
|
idleTimeoutMs: number | false;
|
|
31
51
|
checkout: string | false;
|
|
52
|
+
spare: boolean;
|
|
53
|
+
/** The function `key`, which the session reads again. */
|
|
54
|
+
keySource?: SharedServerKeyFunction;
|
|
55
|
+
rereadKey?: Required<SharedServerKeyReread>;
|
|
56
|
+
/** The entries of the keys a session may start a server for, by key, with absolute paths. */
|
|
57
|
+
entries: Readonly<Record<string, string>>;
|
|
32
58
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
*/
|
|
59
|
+
type ValidatedOptions = Omit<ResolvedSharedServerOptions, 'key' | 'keySource'> & {
|
|
60
|
+
key: string | SharedServerKeyFunction;
|
|
61
|
+
};
|
|
62
|
+
/** Validate `runShared()`'s options; the key stays a function when it is one. */
|
|
63
|
+
export declare function validateSharedServerOptions(input: unknown, platform?: NodeJS.Platform, entry?: string): ValidatedOptions;
|
|
64
|
+
/** {@link validateSharedServerOptions} for a string key: the checkout is the folder of `entry`, else the cwd. */
|
|
37
65
|
export declare function parseSharedServerOptions(input: unknown, platform?: NodeJS.Platform, entry?: string): ResolvedSharedServerOptions;
|
|
66
|
+
/** Whether `value` is a key a shared server can have: its folder is the same on every file system. */
|
|
67
|
+
export declare function isSharedServerKey(value: unknown): value is string;
|
|
68
|
+
/** What a key function answers: a key, or why it gave none (it threw, or answered something that is not a key). */
|
|
69
|
+
export declare function readSharedServerKey(source: SharedServerKeyFunction): Promise<{
|
|
70
|
+
key: string;
|
|
71
|
+
} | {
|
|
72
|
+
error: string;
|
|
73
|
+
}>;
|
|
74
|
+
export {};
|
|
38
75
|
//# sourceMappingURL=shared-server.options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-server.options.d.ts","sourceRoot":"","sources":["../../src/shared/shared-server.options.ts"],"names":[],"mappings":"AAMA,6FAA6F;AAC7F,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpD,MAAM,WAAW,mBAAmB;IAClC,
|
|
1
|
+
{"version":3,"file":"shared-server.options.d.ts","sourceRoot":"","sources":["../../src/shared/shared-server.options.ts"],"names":[],"mappings":"AAMA,6FAA6F;AAC7F,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpD,sGAAsG;AACtG,MAAM,MAAM,uBAAuB,GAAG,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAErE,+DAA+D;AAC/D,MAAM,WAAW,qBAAqB;IACpC,0GAA0G;IAC1G,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,6GAA6G;IAC7G,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAC;IACtC,4CAA4C;IAC5C,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qHAAqH;IACrH,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC/B,wHAAwH;IACxH,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4GAA4G;IAC5G,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC,+GAA+G;IAC/G,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,2BAA2B;IAC1C,mFAAmF;IACnF,GAAG,EAAE,MA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3
|
-
export declare function toCachedDocument(body: string, skills: readonly SkillEntry[]): string;
|
|
4
|
-
/** The body of a cached document made from exactly `skills`; null for one made from
|
|
5
|
-
export declare function fromCachedDocument(cached: string | null, skills: readonly SkillEntry[]): string | null;
|
|
2
|
+
/** `body`, made from `skills` while `toolsOff` were switched off, as the cache keeps it: prefixed with their digest. */
|
|
3
|
+
export declare function toCachedDocument(body: string, skills: readonly SkillEntry[], toolsOff?: readonly string[]): string;
|
|
4
|
+
/** The body of a cached document made from exactly `skills` and `toolsOff`; null for one made from others, or none. */
|
|
5
|
+
export declare function fromCachedDocument(cached: string | null, skills: readonly SkillEntry[], toolsOff?: readonly string[]): string | null;
|
|
6
6
|
//# sourceMappingURL=skill-http-cache.catalog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-http-cache.catalog.d.ts","sourceRoot":"","sources":["../../../src/skill/cache/skill-http-cache.catalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"skill-http-cache.catalog.d.ts","sourceRoot":"","sources":["../../../src/skill/cache/skill-http-cache.catalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAW/C,wHAAwH;AACxH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,SAAS,UAAU,EAAE,EAC7B,QAAQ,GAAE,SAAS,MAAM,EAAO,GAC/B,MAAM,CAER;AAED,uHAAuH;AACvH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,MAAM,EAAE,SAAS,UAAU,EAAE,EAC7B,QAAQ,GAAE,SAAS,MAAM,EAAO,GAC/B,MAAM,GAAG,IAAI,CAGf"}
|
|
@@ -111,10 +111,20 @@ export declare class RedisSkillHttpCache implements SkillHttpCache {
|
|
|
111
111
|
private readonly keyPrefix;
|
|
112
112
|
private readonly ttlMs;
|
|
113
113
|
private readonly getClient;
|
|
114
|
+
private readonly listKeys;
|
|
115
|
+
private readonly deleteKeys;
|
|
116
|
+
/**
|
|
117
|
+
* @param options.listKeys how to find the keys matching a pattern; by default the client's `keys()`
|
|
118
|
+
* (Vercel KV). A Redis server or cluster is scanned instead (the factory passes SCAN over every master).
|
|
119
|
+
* @param options.deleteKeys how to delete several keys; by default one `del(...keys)` (one DEL per
|
|
120
|
+
* key on a cluster, whose keys span hash slots).
|
|
121
|
+
*/
|
|
114
122
|
constructor(options: {
|
|
115
123
|
getClient: () => Promise<RedisClient>;
|
|
116
124
|
keyPrefix?: string;
|
|
117
125
|
ttlMs?: number;
|
|
126
|
+
listKeys?: (client: RedisClient, pattern: string) => Promise<string[]>;
|
|
127
|
+
deleteKeys?: (client: RedisClient, keys: string[]) => Promise<unknown>;
|
|
118
128
|
});
|
|
119
129
|
getLlmTxt(): Promise<string | null>;
|
|
120
130
|
setLlmTxt(content: string): Promise<void>;
|
|
@@ -132,12 +142,15 @@ export declare class RedisSkillHttpCache implements SkillHttpCache {
|
|
|
132
142
|
}
|
|
133
143
|
/**
|
|
134
144
|
* Minimal Redis client interface used by the cache.
|
|
135
|
-
* Compatible with ioredis and @vercel/kv.
|
|
145
|
+
* Compatible with ioredis, node-redis (through FrontMCP's adapter) and @vercel/kv.
|
|
146
|
+
*
|
|
147
|
+
* `keys` is only needed by the default key listing (Vercel KV); a Redis server or cluster is
|
|
148
|
+
* scanned with SCAN instead.
|
|
136
149
|
*/
|
|
137
150
|
export interface RedisClient {
|
|
138
151
|
get(key: string): Promise<string | null>;
|
|
139
152
|
setex(key: string, seconds: number, value: string): Promise<unknown>;
|
|
140
153
|
del(...keys: string[]): Promise<unknown>;
|
|
141
|
-
keys(pattern: string): Promise<string[]>;
|
|
154
|
+
keys?(pattern: string): Promise<string[]>;
|
|
142
155
|
}
|
|
143
156
|
//# sourceMappingURL=skill-http-cache.d.ts.map
|
|
@@ -1 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,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAuB/C,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;YAIhB,GAAG;YAYH,GAAG;CAWlB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACzC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACrE,GAAG,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACzC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CAC3C"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factory for creating skill HTTP cache instances.
|
|
3
|
+
*
|
|
4
|
+
* @module skill/cache/skill-http-cache.factory
|
|
5
|
+
*/
|
|
6
|
+
import { type RedisClientInput, type RedisClusterOption } from '@frontmcp/utils';
|
|
1
7
|
import type { FrontMcpLogger } from '../../common/index.js';
|
|
2
8
|
import { type SkillHttpCache } from './skill-http-cache.js';
|
|
3
9
|
/**
|
|
@@ -16,6 +22,12 @@ export interface SkillHttpCacheRedisOptions {
|
|
|
16
22
|
password?: string;
|
|
17
23
|
/** Redis database number */
|
|
18
24
|
db?: number;
|
|
25
|
+
/** Connect over TLS (`redis` provider) */
|
|
26
|
+
tls?: boolean;
|
|
27
|
+
/** The host is a Redis Cluster endpoint (`true`), or `{ nodes, options }` (`redis` provider) */
|
|
28
|
+
cluster?: RedisClusterOption;
|
|
29
|
+
/** A Redis client you made, in place of host/port (`redis` provider); FrontMCP never closes it */
|
|
30
|
+
client?: RedisClientInput;
|
|
19
31
|
/** Vercel KV REST URL (`vercel-kv` provider); defaults to `KV_REST_API_URL` */
|
|
20
32
|
url?: string;
|
|
21
33
|
/** Vercel KV REST token (`vercel-kv` provider); defaults to `KV_REST_API_TOKEN` */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-http-cache.factory.d.ts","sourceRoot":"","sources":["../../../src/skill/cache/skill-http-cache.factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skill-http-cache.factory.d.ts","sourceRoot":"","sources":["../../../src/skill/cache/skill-http-cache.factory.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,OAAO,EAML,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAE/B;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,0BAA0B;IAC1B,QAAQ,EAAE,OAAO,GAAG,WAAW,GAAG,YAAY,CAAC;IAC/C,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4BAA4B;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,gGAAgG;IAChG,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,kGAAkG;IAClG,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,+EAA+E;IAC/E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,KAAK,CAAC,EAAE,0BAA0B,CAAC;IAEnC;;;OAGG;IACH,KA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