@frontmcp/sdk 1.13.2 → 1.14.0-rc.2
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 +11 -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 +21327 -17821
- 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 +7 -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
|
@@ -23,8 +23,8 @@ declare const outputSchema: import("@frontmcp/lazy-zod").ZodUnion<readonly [impo
|
|
|
23
23
|
httpOnly: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
24
24
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
25
25
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
26
|
-
none: "none";
|
|
27
26
|
strict: "strict";
|
|
27
|
+
none: "none";
|
|
28
28
|
lax: "lax";
|
|
29
29
|
}>>;
|
|
30
30
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
@@ -44,8 +44,8 @@ declare const outputSchema: import("@frontmcp/lazy-zod").ZodUnion<readonly [impo
|
|
|
44
44
|
httpOnly: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
45
45
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
46
46
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
47
|
-
none: "none";
|
|
48
47
|
strict: "strict";
|
|
48
|
+
none: "none";
|
|
49
49
|
lax: "lax";
|
|
50
50
|
}>>;
|
|
51
51
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
@@ -64,8 +64,8 @@ declare const outputSchema: import("@frontmcp/lazy-zod").ZodUnion<readonly [impo
|
|
|
64
64
|
httpOnly: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
65
65
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
66
66
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
67
|
-
none: "none";
|
|
68
67
|
strict: "strict";
|
|
68
|
+
none: "none";
|
|
69
69
|
lax: "lax";
|
|
70
70
|
}>>;
|
|
71
71
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
@@ -50,8 +50,8 @@ export declare const outputSchema: import("@frontmcp/lazy-zod").ZodUnion<readonl
|
|
|
50
50
|
httpOnly: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
51
51
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
52
52
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
53
|
-
none: "none";
|
|
54
53
|
strict: "strict";
|
|
54
|
+
none: "none";
|
|
55
55
|
lax: "lax";
|
|
56
56
|
}>>;
|
|
57
57
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
@@ -71,8 +71,8 @@ export declare const outputSchema: import("@frontmcp/lazy-zod").ZodUnion<readonl
|
|
|
71
71
|
httpOnly: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
72
72
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
73
73
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
74
|
-
none: "none";
|
|
75
74
|
strict: "strict";
|
|
75
|
+
none: "none";
|
|
76
76
|
lax: "lax";
|
|
77
77
|
}>>;
|
|
78
78
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
@@ -27,8 +27,8 @@ declare const outputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
|
27
27
|
httpOnly: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
28
28
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
29
29
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
30
|
-
none: "none";
|
|
31
30
|
strict: "strict";
|
|
31
|
+
none: "none";
|
|
32
32
|
lax: "lax";
|
|
33
33
|
}>>;
|
|
34
34
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
@@ -139,6 +139,8 @@ export declare class LocalPrimaryAuth extends FrontMcpAuth<LocalPrimaryAuthOptio
|
|
|
139
139
|
private readonly publicHostPinned;
|
|
140
140
|
readonly keys: JWK[];
|
|
141
141
|
readonly secret: Uint8Array;
|
|
142
|
+
/** Whether {@link secret} is the configured `JWT_SECRET`, not the random per-process fallback. */
|
|
143
|
+
private readonly secretConfigured;
|
|
142
144
|
readonly logger: FrontMcpLogger;
|
|
143
145
|
private jwks;
|
|
144
146
|
/** The keys this server signs and verifies its own tokens with: `signKey`, else HS256 with {@link secret}. */
|
|
@@ -164,6 +166,8 @@ export declare class LocalPrimaryAuth extends FrontMcpAuth<LocalPrimaryAuthOptio
|
|
|
164
166
|
private orchestratedTokenStoreImpl;
|
|
165
167
|
/** Remembered per-(user, client) consent selections (`rememberConsent`). */
|
|
166
168
|
private consentStoreImpl;
|
|
169
|
+
/** The clients each user approved on remote mode's approval page, per (user, client). */
|
|
170
|
+
private clientApprovalStoreImpl;
|
|
167
171
|
/**
|
|
168
172
|
* Local-AS Dynamic Client Registration registry (#462). Seeded with any
|
|
169
173
|
* `dcr.clients` at construction so the authorize/token flows accept those
|
|
@@ -214,6 +218,8 @@ export declare class LocalPrimaryAuth extends FrontMcpAuth<LocalPrimaryAuthOptio
|
|
|
214
218
|
* (memory by default; Redis/SQLite when persistent storage is configured).
|
|
215
219
|
*/
|
|
216
220
|
get consentStore(): ConsentStore;
|
|
221
|
+
/** The clients each user approved on remote mode's approval page (`consent.rememberConsent`); no tool ids. */
|
|
222
|
+
get clientApprovalStore(): ConsentStore;
|
|
217
223
|
/**
|
|
218
224
|
* Local-AS Dynamic Client Registration registry (#462). Consulted by the
|
|
219
225
|
* register/authorize flows to enforce the declarative `dcr` allowlists and to
|
|
@@ -453,6 +459,8 @@ export declare class LocalPrimaryAuth extends FrontMcpAuth<LocalPrimaryAuthOptio
|
|
|
453
459
|
error: string;
|
|
454
460
|
error_description: string;
|
|
455
461
|
}>;
|
|
462
|
+
/** Revoke the family of a refresh token that was replaced before it was presented; a failure leaves it as it was. */
|
|
463
|
+
private revokeReusedRefreshToken;
|
|
456
464
|
/**
|
|
457
465
|
* Refuse a grant the client did not declare in its `grant_types` (RFC 7591): in its registration, its
|
|
458
466
|
* `dcr.clients` entry or its client ID metadata document. A client that declared nothing (an unregistered
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance.local-primary-auth.d.ts","sourceRoot":"","sources":["../../../src/auth/instances/instance.local-primary-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,
|
|
1
|
+
{"version":3,"file":"instance.local-primary-auth.d.ts","sourceRoot":"","sources":["../../../src/auth/instances/instance.local-primary-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAejB,sBAAsB,EAQtB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAGlB,KAAK,kBAAkB,EAEvB,KAAK,oBAAoB,EAEzB,KAAK,sBAAsB,IAAI,UAAU,EACzC,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAOL,KAAK,cAAc,EACpB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAGL,YAAY,EAIZ,KAAK,cAAc,EACnB,KAAK,GAAG,EACR,KAAK,UAAU,EACf,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAKL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAA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Auth extends FrontMcpAuth<TransparentAuthOptio
|
|
|
13
13
|
protected initialize(): Promise<void>;
|
|
14
14
|
/** Warn once at startup when nothing configures the token audience: say what this server accepts, and what to set. */
|
|
15
15
|
private warnWithoutConfiguredAudience;
|
|
16
|
+
/** Say at startup whether a token with no `aud` claim is refused, and how to change that. */
|
|
17
|
+
private describeAudienceRequirement;
|
|
16
18
|
private unconfiguredAudienceBehaviour;
|
|
17
19
|
private registerAuthFlows;
|
|
18
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance.remote-primary-auth.d.ts","sourceRoot":"","sources":["../../../src/auth/instances/instance.remote-primary-auth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAoC,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AACnH,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,KAAK,gBAAgB,MAAM,kCAAkC,CAAC;AAOrE,qBAAa,iBAAkB,SAAQ,YAAY,CAAC,sBAAsB,CAAC;IAKvE,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,SAAS;IALnB,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,OAAO,CAAC,IAAI,CAAqB;gBAGd,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,gBAAgB,EAC5C,OAAO,EAAE,sBAAsB;IAMxB,KAAK,CAAC,KAAK,EAAE,WAAW,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;IAItE,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD,IAAI,MAAM,IAAI,MAAM,CAEnB;cAEe,UAAU;
|
|
1
|
+
{"version":3,"file":"instance.remote-primary-auth.d.ts","sourceRoot":"","sources":["../../../src/auth/instances/instance.remote-primary-auth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAoC,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AACnH,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,KAAK,gBAAgB,MAAM,kCAAkC,CAAC;AAOrE,qBAAa,iBAAkB,SAAQ,YAAY,CAAC,sBAAsB,CAAC;IAKvE,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,SAAS;IALnB,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,OAAO,CAAC,IAAI,CAAqB;gBAGd,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,gBAAgB,EAC5C,OAAO,EAAE,sBAAsB;IAMxB,KAAK,CAAC,KAAK,EAAE,WAAW,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;IAItE,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD,IAAI,MAAM,IAAI,MAAM,CAEnB;cAEe,UAAU;IAwB1B,sHAAsH;IACtH,OAAO,CAAC,6BAA6B;IAWrC,6FAA6F;IAC7F,OAAO,CAAC,2BAA2B;IAgBnC,OAAO,CAAC,6BAA6B;YAUvB,iBAAiB;CAQhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store.factory.d.ts","sourceRoot":"","sources":["../../../src/auth/session/session-store.factory.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,EAA2C,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC5F,OAAO,
|
|
1
|
+
{"version":3,"file":"session-store.factory.d.ts","sourceRoot":"","sources":["../../../src/auth/session/session-store.factory.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,EAA2C,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC5F,OAAO,EAA8C,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAElG,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EAExB,MAAM,cAAc,CAAC;AAItB;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAClC,YAAY,GACZ;IACE,MAAM,EAAE,kBAAkB,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAQN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,0BAA0B,EACnC,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,YAAY,CAAC,CAkBvB;AA4CD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,YAAY,CASnG;AAED;;;;;;;;;;;;;;;GAeG;AACH;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,kBAAkB,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,EAC3E,MAAM,CAAC,EAAE,cAAc,GACtB,YAAY,CAUd;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,cAAc,CAMxE"}
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
import { isOfferedOnSurface } from "../common/availability/index.mjs";
|
|
11
11
|
import { tool as toolDecorator } from "../common/decorators/tool.decorator.mjs";
|
|
12
12
|
import { runOnSurface } from "../context/call-surface.mjs";
|
|
13
|
+
import { FrontMcpContextStorage } from "../context/frontmcp-context-storage.mjs";
|
|
13
14
|
import { runAsTool } from "../context/running-tool.mjs";
|
|
14
15
|
import {
|
|
15
16
|
AgentConfigKeyNotFoundError,
|
|
@@ -27,6 +28,7 @@ import { normalizeHooksFromCls } from "../hooks/hooks.utils.mjs";
|
|
|
27
28
|
import { normalizePrompt } from "../prompt/prompt.utils.mjs";
|
|
28
29
|
import { normalizeProvider } from "../provider/provider.utils.mjs";
|
|
29
30
|
import { isResourceTemplate, normalizeResource, normalizeResourceTemplate } from "../resource/resource.utils.mjs";
|
|
31
|
+
import { assertEntryEnabled, switchesOf } from "../surface/entry-enabled.mjs";
|
|
30
32
|
import { resolveStructuredContentValidation } from "../tool/tool-output-policy.mjs";
|
|
31
33
|
import { ToolInstance } from "../tool/tool.instance.mjs";
|
|
32
34
|
import { buildAgentToolDefinition, buildParsedToolResult, normalizeTool } from "../tool/tool.utils.mjs";
|
|
@@ -659,6 +661,7 @@ var AgentInstance = class extends AgentEntry {
|
|
|
659
661
|
if (this.agentScope && (useToolFlow || offered.via === "nested-agent")) {
|
|
660
662
|
return this.callToolThrough(this.agentScope, tool, args, ctx);
|
|
661
663
|
}
|
|
664
|
+
await this.assertToolEnabled(tool);
|
|
662
665
|
await this.assertToolAuthorized(tool, ctx.authInfo, args);
|
|
663
666
|
const runningTool = { name: tool.name, fullName: tool.fullName };
|
|
664
667
|
return runOnSurface(AGENT_SURFACE, async () => {
|
|
@@ -728,6 +731,19 @@ var AgentInstance = class extends AgentEntry {
|
|
|
728
731
|
throw new AgentNotFoundError(agentId);
|
|
729
732
|
};
|
|
730
733
|
}
|
|
734
|
+
/** The `checkEnabled` stage of tools:call-tool, for a tool this agent runs directly (`execution.useToolFlow: false`). */
|
|
735
|
+
async assertToolEnabled(tool) {
|
|
736
|
+
const scope = this.agentScope ?? this.scope;
|
|
737
|
+
await assertEntryEnabled("Tool", tool.name, switchesOf(scope, "tools", tool), this.requestContext(), scope.logger);
|
|
738
|
+
}
|
|
739
|
+
/** The context of the request this agent runs for, when there is one. */
|
|
740
|
+
requestContext() {
|
|
741
|
+
try {
|
|
742
|
+
return this.scope.providers.get(FrontMcpContextStorage).getStore();
|
|
743
|
+
} catch {
|
|
744
|
+
return void 0;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
731
747
|
/**
|
|
732
748
|
* The `checkEntryAuthorities` stage of tools:call-tool, for a tool this agent runs directly
|
|
733
749
|
* (`execution.useToolFlow: false`): the caller the agent runs for must satisfy the tool's `authorities`.
|
|
@@ -237,6 +237,11 @@ var AgentScope = class _AgentScope {
|
|
|
237
237
|
get publicAccessGuard() {
|
|
238
238
|
return this.parentScope.publicAccessGuard;
|
|
239
239
|
}
|
|
240
|
+
/** The server's `enabled` map: it answers for the agent's own entries as for every other entry. */
|
|
241
|
+
get surface() {
|
|
242
|
+
const server = this.parentScope.surface;
|
|
243
|
+
return server && { enabledOf: (kind, entry) => server.enabledOf(kind, entry) };
|
|
244
|
+
}
|
|
240
245
|
// ============================================================================
|
|
241
246
|
// Flow Execution
|
|
242
247
|
// ============================================================================
|
|
@@ -316,6 +321,10 @@ var AgentScopeEntry = class {
|
|
|
316
321
|
get publicAccessGuard() {
|
|
317
322
|
return this.agentScope.publicAccessGuard;
|
|
318
323
|
}
|
|
324
|
+
/** See {@link AgentScope.surface}. */
|
|
325
|
+
get surface() {
|
|
326
|
+
return this.agentScope.surface;
|
|
327
|
+
}
|
|
319
328
|
get elicitationStore() {
|
|
320
329
|
return void 0;
|
|
321
330
|
}
|
|
@@ -14,6 +14,7 @@ import { AuthorityDeniedError, resolveRequiredScopes } from "@frontmcp/auth";
|
|
|
14
14
|
import { ExecutionTimeoutError, withTimeout } from "@frontmcp/guard";
|
|
15
15
|
import { internalZ as z } from "@frontmcp/lazy-zod";
|
|
16
16
|
import { CallToolRequestSchema, CallToolResultSchema } from "@frontmcp/protocol";
|
|
17
|
+
import { argumentsAsParsed } from "../../builtin/authorities/authorities-input.mjs";
|
|
17
18
|
import { AUTHORITIES_NOT_CONFIGURED } from "../../builtin/authorities/authorities-not-configured.mjs";
|
|
18
19
|
import { completionEventsOf, completionOutputText } from "../../channel/sources/completion-events.mjs";
|
|
19
20
|
import {
|
|
@@ -222,7 +223,8 @@ var CallAgentFlow = class extends FlowBase {
|
|
|
222
223
|
}
|
|
223
224
|
const authInfo = this.state.authInfo ?? {};
|
|
224
225
|
const stateInput = this.state.input;
|
|
225
|
-
const
|
|
226
|
+
const sent = stateInput?.["arguments"] ?? stateInput ?? {};
|
|
227
|
+
const input = argumentsAsParsed(() => agent.parseInput(stateInput), sent);
|
|
226
228
|
const evalCtx = ctxBuilder.build(authInfo, input);
|
|
227
229
|
const result = await engine.evaluate(authorities, evalCtx);
|
|
228
230
|
if (!result.granted) {
|
|
@@ -6,6 +6,7 @@ import { AppEntry, FrontMcpLogger } from "../../common/index.mjs";
|
|
|
6
6
|
import { normalizeHooksFromProviders } from "../../hooks/hooks.utils.mjs";
|
|
7
7
|
import PluginRegistry from "../../plugin/plugin.registry.mjs";
|
|
8
8
|
import PromptRegistry from "../../prompt/prompt.registry.mjs";
|
|
9
|
+
import { borrowProviders } from "../../provider/borrow-providers.mjs";
|
|
9
10
|
import ProviderRegistry from "../../provider/provider.registry.mjs";
|
|
10
11
|
import ResourceRegistry from "../../resource/resource.registry.mjs";
|
|
11
12
|
import SkillRegistry from "../../skill/skill.registry.mjs";
|
|
@@ -34,7 +35,11 @@ var AppLocalInstance = class extends AppEntry {
|
|
|
34
35
|
}
|
|
35
36
|
async initialize() {
|
|
36
37
|
this.logger?.verbose(`Initializing app: ${this.metadata.name} (id: ${this.id})`);
|
|
37
|
-
|
|
38
|
+
const built = this.scopeProviders.container?.apps.get(this.token);
|
|
39
|
+
this.appProviders = new ProviderRegistry(
|
|
40
|
+
borrowProviders(this.metadata.providers ?? [], built, false),
|
|
41
|
+
this.scopeProviders
|
|
42
|
+
);
|
|
38
43
|
await this.appProviders.ready;
|
|
39
44
|
const appOwner = {
|
|
40
45
|
kind: "app",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// libs/sdk/src/app/lazy/lazy-placeholders.ts
|
|
2
2
|
import { FrontMcpContextStorage } from "../../context/frontmcp-context-storage.mjs";
|
|
3
3
|
import { LazyAppLoadError } from "../../errors/lazy-app.errors.mjs";
|
|
4
|
-
import { isEntryEnabled } from "../../surface/entry-enabled.mjs";
|
|
4
|
+
import { isEntryEnabled, switchesOf } from "../../surface/entry-enabled.mjs";
|
|
5
5
|
var appOfPlaceholder = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
function markPlaceholder(entry, app) {
|
|
7
7
|
appOfPlaceholder.set(entry, app);
|
|
@@ -9,9 +9,9 @@ function markPlaceholder(entry, app) {
|
|
|
9
9
|
function lazyAppOf(entry) {
|
|
10
10
|
return appOfPlaceholder.get(entry);
|
|
11
11
|
}
|
|
12
|
-
async function loadAppOfPlaceholder(scope, entry) {
|
|
12
|
+
async function loadAppOfPlaceholder(scope, entry, kind) {
|
|
13
13
|
const app = lazyAppOf(entry);
|
|
14
|
-
if (!app || !await isEntryEnabled(entry
|
|
14
|
+
if (!app || !await isEntryEnabled(switchesOf(scope, kind, entry), requestContextOf(scope))) return false;
|
|
15
15
|
return app.load().then(
|
|
16
16
|
() => true,
|
|
17
17
|
() => false
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
|
|
2
|
+
const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
|
|
3
|
+
// __frontmcpCreateRequire
|
|
1
4
|
// libs/sdk/src/auth/authorized-apps.utils.ts
|
|
2
5
|
import { decodeJwtPayloadSafe, isOrchestratedMode } from "@frontmcp/auth";
|
|
3
6
|
function readAuthorizedApps(source) {
|
|
@@ -25,6 +28,17 @@ function isIncrementalAuthEnabled(authOptions) {
|
|
|
25
28
|
if (!authOptions || !isOrchestratedMode(authOptions)) return false;
|
|
26
29
|
return authOptions.incrementalAuth !== void 0 && authOptions.incrementalAuth.enabled !== false;
|
|
27
30
|
}
|
|
31
|
+
function skippedAppBehaviorOf(authOptions) {
|
|
32
|
+
if (!authOptions || !isOrchestratedMode(authOptions) || !authOptions.incrementalAuth) return "anonymous";
|
|
33
|
+
const { enabled, skippedAppBehavior } = authOptions.incrementalAuth;
|
|
34
|
+
return enabled === false ? "require-auth" : skippedAppBehavior ?? "anonymous";
|
|
35
|
+
}
|
|
36
|
+
function mayReachApp(authOptions, authInfo, app) {
|
|
37
|
+
const granted = getAuthorizedAppIds(authInfo);
|
|
38
|
+
if (granted ? granted.has(grantAppId(app)) : !(isIncrementalAuthEnabled(authOptions) && authInfo.token)) return true;
|
|
39
|
+
const appAuth = app.metadata.auth;
|
|
40
|
+
return skippedAppBehaviorOf(authOptions) === "anonymous" && appAuth?.mode === "public";
|
|
41
|
+
}
|
|
28
42
|
function incrementalTicketAudience(scope) {
|
|
29
43
|
const issuer = scope.auth?.issuer;
|
|
30
44
|
return JSON.stringify([typeof issuer === "string" ? issuer : "", scope.fullPath]);
|
|
@@ -46,5 +60,6 @@ export {
|
|
|
46
60
|
incrementalTicketAudience,
|
|
47
61
|
initialAuthorizedApps,
|
|
48
62
|
isIncrementalAuthEnabled,
|
|
63
|
+
mayReachApp,
|
|
49
64
|
withoutSkippedApps
|
|
50
65
|
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// libs/sdk/src/auth/client-display-name.ts
|
|
2
|
+
import { isCimdClientId, isOrchestratedMode } from "@frontmcp/auth";
|
|
3
|
+
var CLIENT_NAME_DISPLAY_MAX = 64;
|
|
4
|
+
var UNNAMED_CLIENT = "Unnamed client";
|
|
5
|
+
var BREAKING_CHARACTERS = /[\p{Cc}\p{Zl}\p{Zp}]/gu;
|
|
6
|
+
var INVISIBLE_CHARACTERS = /(?![\u200C\u200D])\p{Cf}/gu;
|
|
7
|
+
var BLANK_CHARACTERS = /[\u115F\u1160\u3164\uFFA0\u2800]/gu;
|
|
8
|
+
var READABLE_CHARACTER = /[\p{L}\p{N}\p{P}\p{S}]/u;
|
|
9
|
+
function forDisplay(name) {
|
|
10
|
+
const visible = name.replace(BREAKING_CHARACTERS, " ").replace(BLANK_CHARACTERS, " ").replace(INVISIBLE_CHARACTERS, "").replace(/\s+/g, " ").trim();
|
|
11
|
+
if (!READABLE_CHARACTER.test(visible)) return "";
|
|
12
|
+
const characters = Array.from(visible);
|
|
13
|
+
if (characters.length <= CLIENT_NAME_DISPLAY_MAX) return visible;
|
|
14
|
+
return `${characters.slice(0, CLIENT_NAME_DISPLAY_MAX - 1).join("").trimEnd()}\u2026`;
|
|
15
|
+
}
|
|
16
|
+
function clientDisplayName(clientId, ...names) {
|
|
17
|
+
for (const name of names) {
|
|
18
|
+
const shown = typeof name === "string" ? forDisplay(name) : "";
|
|
19
|
+
if (shown) return shown;
|
|
20
|
+
}
|
|
21
|
+
return forDisplay(clientId) || UNNAMED_CLIENT;
|
|
22
|
+
}
|
|
23
|
+
async function resolveClientDisplayName(scope, client) {
|
|
24
|
+
const { clientId } = client;
|
|
25
|
+
if (client.clientName) return clientDisplayName(clientId, client.clientName);
|
|
26
|
+
const auth = scope.auth;
|
|
27
|
+
const cimd = auth?.cimdService;
|
|
28
|
+
if (cimd?.enabled && cimd.isCimdClientId?.(clientId)) {
|
|
29
|
+
try {
|
|
30
|
+
const resolution = await cimd.resolveClientMetadata?.(clientId);
|
|
31
|
+
return clientDisplayName(clientId, resolution?.metadata?.client_name);
|
|
32
|
+
} catch {
|
|
33
|
+
return clientDisplayName(clientId);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const registry = auth?.dcrClientRegistry;
|
|
37
|
+
try {
|
|
38
|
+
const registered = registry?.load ? await registry.load(clientId) : registry?.get?.(clientId);
|
|
39
|
+
return clientDisplayName(clientId, registered?.client_name);
|
|
40
|
+
} catch {
|
|
41
|
+
return clientDisplayName(clientId);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function isListedClient(scope, clientId) {
|
|
45
|
+
const auth = scope.auth;
|
|
46
|
+
if (auth?.dcrClientRegistry?.get(clientId)?.preRegistered) return true;
|
|
47
|
+
const options = scope.auth?.options;
|
|
48
|
+
const cimd = options && isOrchestratedMode(options) ? options.cimd : void 0;
|
|
49
|
+
if (cimd?.enabled === false || !cimd?.trustedClientIds?.includes(clientId)) return false;
|
|
50
|
+
return isCimdClientId(clientId, cimd.security?.allowInsecureForTesting);
|
|
51
|
+
}
|
|
52
|
+
function clientDetailsOf(scope, client) {
|
|
53
|
+
return { clientId: client.clientId, redirectUri: client.redirectUri, listed: isListedClient(scope, client.clientId) };
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
CLIENT_NAME_DISPLAY_MAX,
|
|
57
|
+
UNNAMED_CLIENT,
|
|
58
|
+
clientDetailsOf,
|
|
59
|
+
clientDisplayName,
|
|
60
|
+
isListedClient,
|
|
61
|
+
resolveClientDisplayName
|
|
62
|
+
};
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
buildAuthUiPage,
|
|
12
12
|
buildFederatedState
|
|
13
13
|
} from "./auth-ui/index.mjs";
|
|
14
|
+
import { clientDetailsOf } from "./client-display-name.mjs";
|
|
14
15
|
import { requiredProviderIds } from "./required-providers.utils.mjs";
|
|
15
16
|
var FEDERATED_STEP_FIELD = "federated_step";
|
|
16
17
|
function showsProvidersStepByStep(authOptions) {
|
|
@@ -169,6 +170,7 @@ function renderFederatedStep(scope, record, options) {
|
|
|
169
170
|
},
|
|
170
171
|
step,
|
|
171
172
|
clientName: options.clientName,
|
|
173
|
+
client: clientDetailsOf(scope, record),
|
|
172
174
|
pendingAuthId: record.id,
|
|
173
175
|
callbackPath: submitUrl,
|
|
174
176
|
csrfToken,
|
|
@@ -55,6 +55,7 @@ import {
|
|
|
55
55
|
} from "../auth-ui/index.mjs";
|
|
56
56
|
import { incrementalTicketAudience, initialAuthorizedApps } from "../authorized-apps.utils.mjs";
|
|
57
57
|
import { CimdDisabledError, CimdError, CimdService, clientMetadataDocumentSchema } from "../cimd/index.mjs";
|
|
58
|
+
import { clientDetailsOf, clientDisplayName, isListedClient } from "../client-display-name.mjs";
|
|
58
59
|
import { projectConsentTools } from "../consent-tools.helper.mjs";
|
|
59
60
|
import {
|
|
60
61
|
getConfiguredProviders,
|
|
@@ -139,7 +140,8 @@ var stateSchema = z.object({
|
|
|
139
140
|
// CIMD (Client ID Metadata Documents)
|
|
140
141
|
isCimdClient: z.boolean().default(false).describe("Whether client_id is a CIMD URL"),
|
|
141
142
|
cimdMetadata: clientMetadataDocumentSchema.optional().describe("CIMD metadata document for the client"),
|
|
142
|
-
registeredClientAuthMethod: z.string().optional().describe("How the registered client validated here authenticates at the token endpoint")
|
|
143
|
+
registeredClientAuthMethod: z.string().optional().describe("How the registered client validated here authenticates at the token endpoint"),
|
|
144
|
+
clientName: z.string().optional().describe("The name the auth pages show for the client: its CIMD or registered client_name, else its client_id")
|
|
143
145
|
});
|
|
144
146
|
var outputSchema = z.union([
|
|
145
147
|
HttpRedirectSchema,
|
|
@@ -416,6 +418,10 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
416
418
|
declaredClientScope = registered.scope;
|
|
417
419
|
this.state.set("registeredClientAuthMethod", registered.token_endpoint_auth_method);
|
|
418
420
|
}
|
|
421
|
+
this.state.set(
|
|
422
|
+
"clientName",
|
|
423
|
+
clientDisplayName(client_id, this.state.cimdMetadata?.client_name, registered?.client_name)
|
|
424
|
+
);
|
|
419
425
|
const clientIdError = isCimdClientId ? void 0 : this.checkDcrClientIdAllowlist(client_id);
|
|
420
426
|
if (clientIdError) {
|
|
421
427
|
this.logger.warn(`OAuth authorize: DCR allowlist rejection \u2014 ${clientIdError}`);
|
|
@@ -602,7 +608,9 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
602
608
|
federatedLogin,
|
|
603
609
|
// Consent State
|
|
604
610
|
consent,
|
|
605
|
-
clientAuthMethod: this.clientAuthMethodOf(validatedRequest.client_id, localAuth)
|
|
611
|
+
clientAuthMethod: this.clientAuthMethodOf(validatedRequest.client_id, localAuth),
|
|
612
|
+
// The pages after this one (a sign-in shown again, consent) show the same name.
|
|
613
|
+
clientName: this.clientNameOf(validatedRequest.client_id)
|
|
606
614
|
});
|
|
607
615
|
const ticketProfile = effectiveIncremental && incrementalTicket && localAuth.signingSecret ? openIncrementalAuthTicketProfile(incrementalTicket, localAuth.signingSecret) : void 0;
|
|
608
616
|
if (ticketProfile) {
|
|
@@ -645,7 +653,7 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
645
653
|
await this.startRemoteFederation(pendingAuthId, validatedRequest);
|
|
646
654
|
return;
|
|
647
655
|
}
|
|
648
|
-
const
|
|
656
|
+
const clientName = this.clientNameOf(validatedRequest.client_id);
|
|
649
657
|
if (isIncrementalAuth && targetAppId) {
|
|
650
658
|
const apps = this.scope.apps.getApps();
|
|
651
659
|
const app = apps.find((a) => a.metadata.id === targetAppId);
|
|
@@ -677,7 +685,7 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
677
685
|
}
|
|
678
686
|
if (requiresFederatedLogin) {
|
|
679
687
|
if (this.federatedStepRecord) {
|
|
680
|
-
this.respond(renderFederatedStep(this.scope, this.federatedStepRecord, { clientName
|
|
688
|
+
this.respond(renderFederatedStep(this.scope, this.federatedStepRecord, { clientName }));
|
|
681
689
|
return;
|
|
682
690
|
}
|
|
683
691
|
const providers = pickerProviders(this.scope);
|
|
@@ -696,7 +704,7 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
696
704
|
pendingAuthId,
|
|
697
705
|
(common) => buildFederatedState(common, {
|
|
698
706
|
clientId: validatedRequest.client_id,
|
|
699
|
-
clientName
|
|
707
|
+
clientName,
|
|
700
708
|
redirectUri: validatedRequest.redirect_uri,
|
|
701
709
|
providers: [...detection.providers.values()].map(toAuthProvider)
|
|
702
710
|
}),
|
|
@@ -708,6 +716,7 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
708
716
|
pendingAuthId,
|
|
709
717
|
detection,
|
|
710
718
|
clientId: validatedRequest.client_id,
|
|
719
|
+
clientName,
|
|
711
720
|
redirectUri: validatedRequest.redirect_uri
|
|
712
721
|
});
|
|
713
722
|
this.respond(this.htmlPage(federatedLoginHtml));
|
|
@@ -718,7 +727,7 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
718
727
|
pendingAuthId,
|
|
719
728
|
(common) => buildLoginState(common, {
|
|
720
729
|
clientId: validatedRequest.client_id,
|
|
721
|
-
clientName
|
|
730
|
+
clientName,
|
|
722
731
|
scopes: validatedRequest.scope ? validatedRequest.scope.split(" ").filter(Boolean) : [],
|
|
723
732
|
redirectUri: validatedRequest.redirect_uri,
|
|
724
733
|
logoUri: cimdMetadata?.logo_uri
|
|
@@ -729,8 +738,7 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
729
738
|
const loginHtml = this.renderLoginPage({
|
|
730
739
|
pendingAuthId,
|
|
731
740
|
clientId: validatedRequest.client_id,
|
|
732
|
-
clientName
|
|
733
|
-
// Use CIMD client_name if available
|
|
741
|
+
clientName,
|
|
734
742
|
scope: validatedRequest.scope ?? "",
|
|
735
743
|
redirectUri: validatedRequest.redirect_uri,
|
|
736
744
|
logoUri: cimdMetadata?.logo_uri
|
|
@@ -799,6 +807,10 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
799
807
|
clientAuthMethodOf(clientId, localAuth) {
|
|
800
808
|
return this.state.cimdMetadata?.token_endpoint_auth_method ?? this.state.registeredClientAuthMethod ?? localAuth.dcrClientRegistry.get(clientId)?.token_endpoint_auth_method ?? "none";
|
|
801
809
|
}
|
|
810
|
+
/** The name the pages show for the client validated here (#1505): its CIMD or registered `client_name`, else its id. */
|
|
811
|
+
clientNameOf(clientId) {
|
|
812
|
+
return this.state.clientName ?? clientDisplayName(clientId, this.state.cimdMetadata?.client_name);
|
|
813
|
+
}
|
|
802
814
|
async startRemoteFederation(pendingAuthId, validatedRequest) {
|
|
803
815
|
const auth = this.scope.auth;
|
|
804
816
|
if (!auth || !("federatedSessionStore" in auth)) {
|
|
@@ -827,6 +839,7 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
827
839
|
providerIds: [providerId],
|
|
828
840
|
signinBinding: this.signinBindingHash,
|
|
829
841
|
clientAuthMethod: this.clientAuthMethodOf(validatedRequest.client_id, localAuth),
|
|
842
|
+
clientName: this.clientNameOf(validatedRequest.client_id),
|
|
830
843
|
authorizedAppIds: initialAuthorizedApps(
|
|
831
844
|
this.scope.auth?.options,
|
|
832
845
|
this.scope.apps.getApps(),
|
|
@@ -948,6 +961,7 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
948
961
|
pendingAuthId,
|
|
949
962
|
callbackPath,
|
|
950
963
|
redirectUri,
|
|
964
|
+
clientListed: isListedClient(this.scope, clientId),
|
|
951
965
|
formTargets: formActionSources([redirectUri]),
|
|
952
966
|
fields: login?.fields ?? {}
|
|
953
967
|
};
|
|
@@ -975,7 +989,7 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
975
989
|
* Render federated login page for multiple auth providers using HTMX templates
|
|
976
990
|
*/
|
|
977
991
|
renderFederatedLoginPage(params) {
|
|
978
|
-
const { pendingAuthId, detection, clientId } = params;
|
|
992
|
+
const { pendingAuthId, detection, clientId, clientName, redirectUri } = params;
|
|
979
993
|
const callbackPath = `${oauthBasePath(this.scope)}/oauth/callback`;
|
|
980
994
|
const authOptions = this.scope.auth?.options;
|
|
981
995
|
const required = requiredProviderIds(authOptions, this.scope.apps.getApps());
|
|
@@ -990,7 +1004,8 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
990
1004
|
}));
|
|
991
1005
|
return buildFederatedLoginPage({
|
|
992
1006
|
providers,
|
|
993
|
-
clientName
|
|
1007
|
+
clientName,
|
|
1008
|
+
client: clientDetailsOf(this.scope, { clientId, redirectUri }),
|
|
994
1009
|
pendingAuthId,
|
|
995
1010
|
callbackPath,
|
|
996
1011
|
allowSkip: allowsSkippingApps(authOptions)
|