@frontmcp/sdk 1.10.15 → 1.11.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.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 +3 -3
- package/agent/flows/call-agent.flow.d.ts.map +1 -1
- package/agent/hooks/agent.hooks.d.ts +4 -4
- package/agent/hooks/agent.hooks.d.ts.map +1 -1
- package/answer/answer-budget.d.ts +51 -0
- package/answer/answer-budget.d.ts.map +1 -0
- package/answer/answer-meter.d.ts +30 -0
- package/answer/answer-meter.d.ts.map +1 -0
- package/answer/client-profile.d.ts +48 -0
- package/answer/client-profile.d.ts.map +1 -0
- package/answer/index.d.ts +7 -0
- package/answer/index.d.ts.map +1 -0
- package/app/app.registry.d.ts.map +1 -1
- package/app/app.utils.d.ts +1 -1
- package/app/app.utils.d.ts.map +1 -1
- package/app/instances/app.lazy.instance.d.ts +68 -0
- package/app/instances/app.lazy.instance.d.ts.map +1 -0
- package/app/instances/app.remote.instance.d.ts +2 -0
- package/app/instances/app.remote.instance.d.ts.map +1 -1
- package/app/instances/empty-app-registries.d.ts +52 -0
- package/app/instances/empty-app-registries.d.ts.map +1 -0
- package/app/lazy/lazy-app.rules.d.ts +31 -0
- package/app/lazy/lazy-app.rules.d.ts.map +1 -0
- package/app/lazy/lazy-manifest.d.ts +33 -0
- package/app/lazy/lazy-manifest.d.ts.map +1 -0
- package/app/lazy/lazy-placeholders.d.ts +29 -0
- package/app/lazy/lazy-placeholders.d.ts.map +1 -0
- package/auth/flows/auth.verify.flow.d.ts +1 -1
- package/auth/flows/auth.verify.flow.d.ts.map +1 -1
- package/auth/flows/oauth-flows.d.ts +3 -0
- package/auth/flows/oauth-flows.d.ts.map +1 -0
- package/auth/flows/oauth.auth-ui.flow.d.ts +1 -1
- package/auth/flows/oauth.auth-ui.flow.d.ts.map +1 -1
- package/auth/flows/oauth.authorize.flow.d.ts +2 -2
- package/auth/flows/oauth.authorize.flow.d.ts.map +1 -1
- package/auth/flows/oauth.callback.flow.d.ts +2 -2
- 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.connect.flow.d.ts.map +1 -1
- package/auth/flows/oauth.provider-callback.flow.d.ts +2 -2
- package/auth/flows/oauth.provider-callback.flow.d.ts.map +1 -1
- package/auth/flows/oauth.register.flow.d.ts +1 -1
- package/auth/flows/oauth.register.flow.d.ts.map +1 -1
- package/auth/flows/oauth.token.flow.d.ts +1 -1
- package/auth/flows/oauth.token.flow.d.ts.map +1 -1
- package/auth/flows/oauth.userinfo.flow.d.ts +1 -1
- package/auth/flows/oauth.userinfo.flow.d.ts.map +1 -1
- package/auth/flows/session.verify.flow.d.ts +4 -0
- package/auth/flows/session.verify.flow.d.ts.map +1 -1
- package/auth/flows/well-known.jwks.flow.d.ts +1 -1
- package/auth/flows/well-known.jwks.flow.d.ts.map +1 -1
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +1 -1
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts.map +1 -1
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
- package/browser/agent/agent-builtin-tools.mjs +1 -1
- package/browser/agent/agent.instance.mjs +5 -2
- package/browser/agent/agent.scope.mjs +9 -0
- package/browser/agent/flows/call-agent.flow.mjs +15 -3
- package/browser/answer/answer-budget.mjs +221 -0
- package/browser/answer/answer-meter.mjs +53 -0
- package/browser/answer/client-profile.mjs +79 -0
- package/browser/answer/index.mjs +34 -0
- package/browser/app/app.registry.mjs +19 -7
- package/browser/app/app.utils.mjs +23 -2
- package/browser/app/instances/app.lazy.instance.mjs +371 -0
- package/browser/app/instances/app.remote.instance.mjs +12 -82
- package/browser/app/instances/empty-app-registries.mjs +87 -0
- package/browser/app/lazy/lazy-app.rules.mjs +104 -0
- package/browser/app/lazy/lazy-manifest.mjs +102 -0
- package/browser/app/lazy/lazy-placeholders.mjs +36 -0
- package/browser/auth/flows/oauth-flows.mjs +39 -0
- package/browser/auth/flows/oauth.auth-ui.flow.mjs +2 -1
- package/browser/auth/flows/oauth.authorize.flow.mjs +2 -1
- package/browser/auth/flows/oauth.callback.flow.mjs +2 -1
- package/browser/auth/flows/oauth.connect.flow.mjs +2 -1
- package/browser/auth/flows/oauth.provider-callback.flow.mjs +2 -1
- package/browser/auth/flows/oauth.register.flow.mjs +2 -1
- package/browser/auth/flows/oauth.token.flow.mjs +2 -1
- package/browser/auth/flows/oauth.userinfo.flow.mjs +2 -1
- package/browser/auth/flows/session.verify.flow.mjs +1 -1
- package/browser/auth/flows/well-known.jwks.flow.mjs +1 -1
- package/browser/auth/flows/well-known.oauth-authorization-server.flow.mjs +1 -1
- package/browser/auth/flows/well-known.prm.flow.mjs +1 -1
- package/browser/auth/instances/instance.local-primary-auth.mjs +2 -16
- package/browser/builtin/call-recorder/call-record.mjs +7 -0
- package/browser/builtin/call-recorder/call-record.writer.mjs +70 -0
- package/browser/builtin/call-recorder/call-recorder.options.mjs +23 -0
- package/browser/builtin/call-recorder/call-recorder.plugin.mjs +209 -0
- package/browser/builtin/call-recorder/index.mjs +5 -0
- package/browser/channel/flows/list-channels.flow.mjs +1 -1
- package/browser/channel/flows/send-channel-notification.flow.mjs +1 -1
- package/browser/channel/reply/reply.types.mjs +1 -1
- package/browser/common/decorators/duty.decorator.mjs +24 -0
- package/browser/common/decorators/front-mcp.decorator.mjs +13 -2
- package/browser/common/decorators/hook.decorator.mjs +19 -1
- package/browser/common/decorators/http-route.decorator.mjs +46 -0
- package/browser/common/decorators/index.mjs +3 -1
- package/browser/common/decorators/job.decorator.mjs +7 -0
- package/browser/common/decorators/provider.decorator.mjs +1 -1
- package/browser/common/decorators/resource.decorator.mjs +22 -0
- package/browser/common/entries/job.entry.mjs +1 -1
- package/browser/common/entries/tool.entry.mjs +53 -25
- package/browser/common/flow/flow.utils.mjs +1 -1
- package/browser/common/index.mjs +5 -5
- package/browser/common/interfaces/agent.interface.mjs +6 -2
- package/browser/common/interfaces/duty.interface.mjs +0 -0
- package/browser/common/interfaces/execution-context.interface.mjs +39 -1
- package/browser/common/interfaces/flow.interface.mjs +38 -0
- package/browser/common/interfaces/http-route.interface.mjs +20 -0
- package/browser/common/interfaces/index.mjs +3 -1
- package/browser/common/interfaces/internal/flow.utils.mjs +3 -0
- package/browser/common/interfaces/job.interface.mjs +28 -11
- package/browser/common/interfaces/logger.interface.mjs +2 -0
- package/browser/common/interfaces/resource.interface.mjs +3 -2
- package/browser/common/interfaces/tool.interface.mjs +5 -10
- package/browser/common/metadata/adapter.metadata.mjs +1 -1
- package/browser/common/metadata/agent.metadata.mjs +1 -1
- package/browser/common/metadata/app-filter.metadata.mjs +1 -1
- package/browser/common/metadata/app.metadata.mjs +15 -1
- package/browser/common/metadata/auth-provider.metadata.mjs +1 -1
- package/browser/common/metadata/channel.metadata.mjs +1 -1
- package/browser/common/metadata/duty.metadata.mjs +32 -0
- package/browser/common/metadata/enabled.metadata.mjs +16 -0
- package/browser/common/metadata/flow.metadata.mjs +1 -1
- package/browser/common/metadata/front-mcp-stores.mjs +43 -0
- package/browser/common/metadata/front-mcp.metadata.mjs +85 -26
- package/browser/common/metadata/hook.metadata.mjs +26 -0
- package/browser/common/metadata/http-route.metadata.mjs +20 -0
- package/browser/common/metadata/index.mjs +8 -4
- package/browser/common/metadata/job.metadata.mjs +20 -3
- package/browser/common/metadata/logger.metadata.mjs +1 -1
- package/browser/common/metadata/materialized.metadata.mjs +13 -0
- package/browser/common/metadata/output-policy.mjs +76 -12
- package/browser/common/metadata/plugin.metadata.mjs +1 -1
- package/browser/common/metadata/prompt.metadata.mjs +4 -2
- package/browser/common/metadata/provider.metadata.mjs +2 -2
- package/browser/common/metadata/resource.metadata.mjs +20 -4
- package/browser/common/metadata/skill.metadata.mjs +1 -1
- package/browser/common/metadata/tool.metadata.mjs +6 -1
- package/browser/common/metadata/ui-serving-mode.mjs +1 -1
- package/browser/common/metadata/workflow.metadata.mjs +3 -2
- package/browser/common/records/app.record.mjs +1 -0
- package/browser/common/schemas/annotated-class.schema.mjs +9 -4
- package/browser/common/schemas/http-input.schema.mjs +1 -1
- package/browser/common/schemas/http-output.schema.mjs +1 -1
- package/browser/common/schemas/session-header.schema.mjs +1 -1
- package/browser/common/tokens/app.tokens.mjs +1 -0
- package/browser/common/tokens/front-mcp.tokens.mjs +10 -1
- package/browser/common/tokens/job.tokens.mjs +2 -0
- package/browser/common/tokens/prompt.tokens.mjs +1 -0
- package/browser/common/tokens/resource.tokens.mjs +5 -0
- package/browser/common/tokens/tool.tokens.mjs +2 -0
- package/browser/common/types/auth/session.types.mjs +1 -1
- package/browser/common/types/index.mjs +1 -1
- package/browser/common/types/options/clients/index.mjs +5 -0
- package/browser/common/types/options/clients/schema.mjs +15 -0
- package/browser/common/types/options/devtools/index.mjs +5 -0
- package/browser/common/types/options/devtools/schema.mjs +8 -0
- package/browser/common/types/options/elicitation/schema.mjs +7 -2
- package/browser/common/types/options/ext-apps/schema.mjs +1 -1
- package/browser/common/types/options/health/schema.mjs +1 -1
- package/browser/common/types/options/http/schema.mjs +17 -2
- package/browser/common/types/options/index.mjs +5 -0
- package/browser/common/types/options/instructions-budget/index.mjs +7 -0
- package/browser/common/types/options/instructions-budget/schema.mjs +26 -0
- package/browser/common/types/options/lifecycle/index.mjs +5 -0
- package/browser/common/types/options/lifecycle/schema.mjs +9 -0
- package/browser/common/types/options/logging/schema.mjs +1 -1
- package/browser/common/types/options/metrics/schema.mjs +1 -1
- package/browser/common/types/options/observability/schema.mjs +4 -2
- package/browser/common/types/options/offload/index.mjs +5 -0
- package/browser/common/types/options/offload/schema.mjs +16 -0
- package/browser/common/types/options/outbound-fetch/schema.mjs +1 -1
- package/browser/common/types/options/pagination/schema.mjs +1 -1
- package/browser/common/types/options/redis/schema.mjs +13 -3
- package/browser/common/types/options/registry/schema.mjs +1 -1
- package/browser/common/types/options/server-info/schema.mjs +1 -1
- package/browser/common/types/options/session/schema.mjs +1 -1
- package/browser/common/types/options/skills-http/schema.mjs +3 -2
- package/browser/common/types/options/sqlite/resolve.mjs +1 -0
- package/browser/common/types/options/sqlite/schema.mjs +1 -1
- package/browser/common/types/options/transport/schema.mjs +1 -1
- package/browser/common/utils/caller-dir.utils.mjs +36 -0
- package/browser/common/utils/decide-request-intent.utils.mjs +1 -1
- package/browser/common/utils/forward-headers.utils.mjs +58 -0
- package/browser/common/utils/index.mjs +1 -1
- package/browser/common/utils/tool-lookup.utils.mjs +35 -5
- package/browser/completion/flows/complete.flow.mjs +35 -3
- package/browser/context/frontmcp-context-storage.mjs +10 -5
- package/browser/context/metadata.utils.mjs +9 -5
- package/browser/direct/connect.mjs +22 -16
- package/browser/direct/direct-client.mjs +2 -1
- package/browser/duty/duty.lifecycle.mjs +172 -0
- package/browser/duty/duty.runner.mjs +161 -0
- package/browser/elicitation/flows/elicitation-request.flow.mjs +1 -1
- package/browser/elicitation/flows/elicitation-result.flow.mjs +1 -1
- package/browser/elicitation/helpers/elicit.helper.mjs +5 -1
- package/browser/elicitation/helpers/extend-output-schema.mjs +3 -1
- package/browser/elicitation/helpers/validate-elicitation-content.mjs +1 -1
- package/browser/elicitation/index.mjs +1 -0
- package/browser/elicitation/questions/ask-question.mjs +131 -0
- package/browser/elicitation/questions/index.mjs +43 -0
- package/browser/elicitation/questions/question-inbox.routes.mjs +184 -0
- package/browser/elicitation/questions/question-scope.helper.mjs +66 -0
- package/browser/elicitation/questions/question-store.factory.mjs +104 -0
- package/browser/elicitation/questions/question-subject.mjs +14 -0
- package/browser/elicitation/questions/question.errors.mjs +51 -0
- package/browser/elicitation/questions/question.store.mjs +216 -0
- package/browser/elicitation/send-elicitation-result.tool.mjs +1 -1
- package/browser/elicitation/store/elicitation-store.factory.mjs +10 -32
- package/browser/errors/authorization-required.error.mjs +1 -1
- package/browser/errors/browser-entry-point.errors.mjs +19 -0
- package/browser/errors/browser-store.errors.mjs +39 -0
- package/browser/errors/build-store.errors.mjs +15 -0
- package/browser/errors/duty.errors.mjs +23 -0
- package/browser/errors/http-route.errors.mjs +48 -0
- package/browser/errors/index.mjs +80 -4
- package/browser/errors/job.errors.mjs +92 -2
- package/browser/errors/lazy-app.errors.mjs +30 -0
- package/browser/errors/mcp.error.mjs +90 -2
- package/browser/errors/misconfiguration.mjs +2 -1
- package/browser/errors/offload.errors.mjs +59 -0
- package/browser/errors/provider.errors.mjs +9 -0
- package/browser/errors/registry.errors.mjs +24 -1
- package/browser/errors/sdk.errors.mjs +6 -0
- package/browser/errors/shared-server.errors.mjs +31 -0
- package/browser/errors/transport.errors.mjs +31 -0
- package/browser/esm-loader/esm-auth.types.mjs +1 -1
- package/browser/esm-loader/esm-manifest.mjs +1 -1
- package/browser/esm-loader/factories/esm-record-builders.mjs +1 -1
- package/browser/flows/deferred-flow.mjs +20 -0
- package/browser/flows/flow.instance.mjs +165 -21
- package/browser/flows/flow.registry.mjs +1 -1
- package/browser/flows/flow.stages.mjs +39 -3
- package/browser/front-mcp/detached-job.flag.mjs +26 -0
- package/browser/front-mcp/front-mcp.mjs +167 -81
- package/browser/front-mcp/manifest-mode.flag.mjs +12 -0
- package/browser/front-mcp/shutdown-signals.mjs +24 -2
- package/browser/front-mcp/static-startup.check.mjs +1 -1
- package/browser/front-mcp/stdio-console.mjs +28 -0
- package/browser/hooks/entry-class-hooks.mjs +10 -0
- package/browser/hooks/hook-observers.mjs +86 -0
- package/browser/hooks/hook-order.mjs +155 -0
- package/browser/hooks/hook.registry.mjs +40 -9
- package/browser/http-route/flows/http.route.flow.mjs +171 -0
- package/browser/http-route/http-route.table.mjs +148 -0
- package/browser/http-route/people-sign-in.routes.mjs +112 -0
- package/browser/http-route/sse-route.stream.mjs +100 -0
- package/browser/index.cjs +46101 -37156
- package/browser/index.mjs +220 -12
- package/browser/job/execution/index.mjs +2 -1
- package/browser/job/execution/job-execution.manager.mjs +426 -34
- package/browser/job/flows/execute-job.flow.mjs +68 -9
- package/browser/job/index.mjs +12 -5
- package/browser/job/job-admission.mjs +117 -0
- package/browser/job/job-attempt.mjs +72 -6
- package/browser/job/job-run-access.mjs +29 -0
- package/browser/job/job-scope.helper.mjs +98 -16
- package/browser/job/job.instance.mjs +3 -2
- package/browser/job/resources/job-run.resource.mjs +51 -0
- package/browser/job/runner/detached-job.worker.mjs +84 -0
- package/browser/job/runner/job-runner.mjs +74 -0
- package/browser/job/runner/run-flusher.mjs +86 -0
- package/browser/job/store/index.mjs +5 -1
- package/browser/job/store/job-definition-store.factory.mjs +14 -2
- package/browser/job/store/job-state-store.factory.mjs +25 -4
- package/browser/job/store/job-state.interface.mjs +11 -0
- package/browser/job/store/memory-job-state.store.mjs +26 -2
- package/browser/job/store/redis-job-state.store.mjs +39 -10
- package/browser/job/store/storage-job-definition.store.mjs +47 -0
- package/browser/job/store/storage-job-state.store.mjs +83 -0
- package/browser/job/tools/cancel-job.tool.mjs +46 -0
- package/browser/job/tools/execute-job.tool.mjs +5 -3
- package/browser/job/tools/get-job-status.tool.mjs +3 -20
- package/browser/job/tools/index.mjs +6 -4
- package/browser/job/tools/list-jobs.tool.mjs +1 -1
- package/browser/job/tools/register-job.tool.mjs +1 -1
- package/browser/job/tools/remove-job.tool.mjs +1 -1
- package/browser/logger/logger.registry.mjs +11 -0
- package/browser/logging/flows/set-level.flow.mjs +1 -1
- package/browser/manifest/build-manifest.mjs +20 -0
- package/browser/manifest/build-server-manifest.mjs +181 -0
- package/browser/manifest/index.mjs +12 -0
- package/browser/manifest/instructions-budget.check.mjs +14 -0
- package/browser/manifest/manifest-lint.mjs +63 -0
- package/browser/manifest/server-manifest.schema.mjs +107 -0
- package/browser/mcp-registry/flows/server-card.flow.mjs +1 -1
- package/browser/mcp-registry/flows/well-known.ai-catalog.flow.mjs +1 -1
- package/browser/metrics/metrics.service.mjs +1 -1
- package/browser/notification/notification.service.mjs +10 -3
- package/browser/offload/offload-pool.mjs +323 -0
- package/browser/offload/offload-worker.globals.mjs +36 -0
- package/browser/offload/offload-worker.source.mjs +102 -0
- package/browser/offload/offload.service.mjs +29 -0
- package/browser/offload/read-in-worker.mjs +25 -0
- package/browser/offload/run-job-in-worker.mjs +39 -0
- package/browser/offload/worker-job.runner.mjs +38 -0
- package/browser/offload/worker-jobs.mjs +21 -0
- package/browser/offload/worker-resource.reader.mjs +83 -0
- package/browser/offload/worker-resources.mjs +30 -0
- package/browser/plugin/plugin.registry.mjs +15 -2
- package/browser/prompt/flows/get-prompt.flow.mjs +34 -2
- package/browser/prompt/flows/prompts-list.flow.mjs +14 -3
- package/browser/prompt/prompt.registry.mjs +4 -0
- package/browser/provider/create-container.mjs +84 -0
- package/browser/provider/provider.lifecycle.mjs +62 -0
- package/browser/provider/provider.registry.mjs +86 -1
- package/browser/provider/provider.utils.mjs +5 -2
- package/browser/provider/store.provider.mjs +28 -0
- package/browser/remote-mcp/mcp-client.service.mjs +9 -8
- package/browser/resource/flows/read-resource.flow.mjs +68 -7
- package/browser/resource/flows/resource-templates-list.flow.mjs +15 -3
- package/browser/resource/flows/resources-list.flow.mjs +22 -4
- package/browser/resource/flows/subscribe-resource.flow.mjs +33 -11
- package/browser/resource/flows/unsubscribe-resource.flow.mjs +1 -1
- package/browser/resource/materialized/index.mjs +14 -0
- package/browser/resource/materialized/materialized-resource.context.mjs +30 -0
- package/browser/resource/materialized/materialized-resources.mjs +82 -0
- package/browser/resource/materialized/resource-store.mjs +197 -0
- package/browser/resource/resource.instance.mjs +2 -1
- package/browser/resource/resource.registry.mjs +4 -0
- package/browser/scope/browser-stores.mjs +132 -0
- package/browser/scope/dev-events-observability.mjs +14 -0
- package/browser/scope/flows/http.request.flow.mjs +1 -1
- package/browser/scope/flows/request-log.redaction.mjs +17 -3
- package/browser/scope/http-scope.helper.mjs +10 -4
- package/browser/scope/observability-scope.helper.mjs +8 -2
- package/browser/scope/scope.instance.mjs +142 -52
- package/browser/server/security/replaceable-directory.mjs +16 -0
- package/browser/server/security/resolve-allowed-hosts.mjs +32 -0
- package/browser/server/security/same-origin.mjs +35 -0
- package/browser/server/security/security-audit.mjs +3 -3
- package/browser/server/server.validation.mjs +25 -4
- package/browser/shared/browser-shared-server.mjs +8 -0
- package/browser/skill/flows/filter-skills.flow.mjs +1 -1
- package/browser/skill/flows/http/llm-full-txt.flow.mjs +1 -1
- package/browser/skill/flows/http/llm-txt.flow.mjs +1 -1
- package/browser/skill/flows/http/skills-api.flow.mjs +1 -1
- package/browser/skill/flows/load-skill.flow.mjs +1 -1
- package/browser/skill/flows/search-skills.flow.mjs +1 -1
- package/browser/skill/sep-2640/sep-2640.per-skill.mjs +13 -11
- package/browser/skill/skill-instructions.helper.mjs +30 -9
- package/browser/skill/skill-scope.helper.mjs +2 -1
- package/browser/skill/skill.registry.mjs +1 -0
- package/browser/skill/sync/skill-hash.mjs +5 -4
- package/browser/storage/sqlite-storage.provider.mjs +24 -0
- package/browser/subsystems.mjs +71 -0
- package/browser/surface/entry-enabled.mjs +26 -0
- package/browser/surface/file-signal.mjs +118 -0
- package/browser/surface/index.mjs +20 -0
- package/browser/surface/live-surface.mjs +126 -0
- package/browser/surface/unchanged-lists.mjs +17 -0
- package/browser/task/flows/tasks-cancel.flow.mjs +1 -1
- package/browser/task/flows/tasks-get.flow.mjs +1 -1
- package/browser/task/flows/tasks-list.flow.mjs +1 -1
- package/browser/task/flows/tasks-result.flow.mjs +1 -1
- package/browser/task/helpers/cli-task-runner.mjs +6 -3
- package/browser/task/index.mjs +3 -1
- package/browser/task/store/task-store.factory.mjs +9 -22
- package/browser/task/task-scope.runtime.mjs +19 -0
- package/browser/third-party/protocol-client.mjs +6 -0
- package/browser/tool/flows/call-tool.flow.mjs +195 -18
- package/browser/tool/flows/tools-list.flow.mjs +37 -18
- package/browser/tool/tool-output-policy.mjs +24 -0
- package/browser/tool/tool.instance.mjs +5 -5
- package/browser/tool/tool.registry.mjs +25 -1
- package/browser/tool/tool.utils.mjs +50 -9
- package/browser/transport/adapters/transport.local.adapter.mjs +4 -4
- package/browser/transport/flows/handle.mcp-20260728.flow.mjs +55 -6
- package/browser/transport/flows/handle.sse.flow.mjs +14 -2
- package/browser/transport/flows/handle.stateless-http.flow.mjs +1 -1
- package/browser/transport/flows/handle.streamable-http.flow.mjs +14 -2
- package/browser/transport/in-memory-server.mjs +4 -4
- package/browser/transport/mcp-20260728/dispatcher.mjs +1 -1
- package/browser/transport/mcp-20260728/request-state.mjs +2 -1
- package/browser/transport/mcp-20260728/result-decorator.mjs +11 -1
- package/browser/transport/mcp-20260728/subscriptions.mjs +16 -5
- package/browser/transport/mcp-handlers/initialize-request.handler.mjs +1 -1
- package/browser/transport/mcp-handlers/mcp-error.utils.mjs +15 -3
- package/browser/transport/mcp-handlers/skills-mcp.types.mjs +1 -1
- package/browser/transport/mcp-server.factory.mjs +14 -0
- package/browser/transport/stdio-revision-router.mjs +43 -7
- package/browser/transport/streamable-http-preload.mjs +19 -0
- package/browser/transport/web-fetch-handler.mjs +17 -5
- package/browser/transport/web-standard-mcp.mjs +4 -3
- package/browser/utils/abort.utils.mjs +10 -0
- package/browser/workflow/engine/workflow-step.executor.mjs +6 -5
- package/browser/workflow/tools/execute-workflow.tool.mjs +1 -1
- package/browser/workflow/tools/get-workflow-status.tool.mjs +3 -20
- package/browser/workflow/tools/list-workflows.tool.mjs +1 -1
- package/browser/workflow/tools/register-workflow.tool.mjs +1 -1
- package/browser/workflow/tools/remove-workflow.tool.mjs +1 -1
- package/builtin/call-recorder/call-record.d.ts +34 -0
- package/builtin/call-recorder/call-record.d.ts.map +1 -0
- package/builtin/call-recorder/call-record.writer.d.ts +26 -0
- package/builtin/call-recorder/call-record.writer.d.ts.map +1 -0
- package/builtin/call-recorder/call-recorder.options.d.ts +23 -0
- package/builtin/call-recorder/call-recorder.options.d.ts.map +1 -0
- package/builtin/call-recorder/call-recorder.plugin.d.ts +40 -0
- package/builtin/call-recorder/call-recorder.plugin.d.ts.map +1 -0
- package/builtin/call-recorder/index.d.ts +4 -0
- package/builtin/call-recorder/index.d.ts.map +1 -0
- package/channel/reply/reply.types.d.ts +1 -1
- package/channel/reply/reply.types.d.ts.map +1 -1
- package/common/common.schema.d.ts +1 -1
- package/common/common.schema.d.ts.map +1 -1
- package/common/decorators/duty.decorator.d.ts +11 -0
- package/common/decorators/duty.decorator.d.ts.map +1 -0
- package/common/decorators/front-mcp.decorator.d.ts.map +1 -1
- package/common/decorators/hook.decorator.d.ts +21 -10
- package/common/decorators/hook.decorator.d.ts.map +1 -1
- package/common/decorators/http-route.decorator.d.ts +9 -0
- package/common/decorators/http-route.decorator.d.ts.map +1 -0
- package/common/decorators/index.d.ts +2 -0
- package/common/decorators/index.d.ts.map +1 -1
- package/common/decorators/job.decorator.d.ts.map +1 -1
- package/common/decorators/provider.decorator.d.ts +1 -1
- package/common/decorators/provider.decorator.d.ts.map +1 -1
- package/common/decorators/resource.decorator.d.ts.map +1 -1
- package/common/decorators/tool.decorator.d.ts +1 -1
- package/common/decorators/tool.decorator.d.ts.map +1 -1
- package/common/dynamic/dynamic.plugin.d.ts +17 -0
- package/common/dynamic/dynamic.plugin.d.ts.map +1 -1
- package/common/entries/job.entry.d.ts +2 -1
- package/common/entries/job.entry.d.ts.map +1 -1
- package/common/entries/scope.entry.d.ts +17 -0
- package/common/entries/scope.entry.d.ts.map +1 -1
- package/common/entries/tool.entry.d.ts +24 -11
- package/common/entries/tool.entry.d.ts.map +1 -1
- package/common/flow/flow.utils.d.ts.map +1 -1
- package/common/interfaces/agent.interface.d.ts.map +1 -1
- package/common/interfaces/app.interface.d.ts +2 -2
- package/common/interfaces/app.interface.d.ts.map +1 -1
- package/common/interfaces/duty.interface.d.ts +10 -0
- package/common/interfaces/duty.interface.d.ts.map +1 -0
- package/common/interfaces/execution-context.interface.d.ts +27 -0
- package/common/interfaces/execution-context.interface.d.ts.map +1 -1
- package/common/interfaces/flow.interface.d.ts +32 -1
- package/common/interfaces/flow.interface.d.ts.map +1 -1
- package/common/interfaces/http-route.interface.d.ts +42 -0
- package/common/interfaces/http-route.interface.d.ts.map +1 -0
- package/common/interfaces/index.d.ts +2 -0
- package/common/interfaces/index.d.ts.map +1 -1
- package/common/interfaces/internal/flow.utils.d.ts.map +1 -1
- package/common/interfaces/job.interface.d.ts +19 -5
- package/common/interfaces/job.interface.d.ts.map +1 -1
- package/common/interfaces/logger.interface.d.ts +6 -1
- package/common/interfaces/logger.interface.d.ts.map +1 -1
- package/common/interfaces/provider.interface.d.ts +12 -0
- package/common/interfaces/provider.interface.d.ts.map +1 -1
- package/common/interfaces/resource.interface.d.ts.map +1 -1
- package/common/interfaces/tool.interface.d.ts.map +1 -1
- package/common/metadata/agent.metadata.d.ts +3 -3
- package/common/metadata/agent.metadata.d.ts.map +1 -1
- package/common/metadata/app.metadata.d.ts +87 -10
- package/common/metadata/app.metadata.d.ts.map +1 -1
- package/common/metadata/channel.metadata.d.ts +2 -2
- package/common/metadata/duty.metadata.d.ts +32 -0
- package/common/metadata/duty.metadata.d.ts.map +1 -0
- package/common/metadata/enabled.metadata.d.ts +18 -0
- package/common/metadata/enabled.metadata.d.ts.map +1 -0
- package/common/metadata/flow.metadata.d.ts +2 -2
- package/common/metadata/flow.metadata.d.ts.map +1 -1
- package/common/metadata/front-mcp-stores.d.ts +5 -0
- package/common/metadata/front-mcp-stores.d.ts.map +1 -0
- package/common/metadata/front-mcp.metadata.d.ts +2572 -172
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/hook.metadata.d.ts +43 -2
- package/common/metadata/hook.metadata.d.ts.map +1 -1
- package/common/metadata/http-route.metadata.d.ts +44 -0
- package/common/metadata/http-route.metadata.d.ts.map +1 -0
- package/common/metadata/index.d.ts +4 -0
- package/common/metadata/index.d.ts.map +1 -1
- package/common/metadata/job.metadata.d.ts +47 -3
- package/common/metadata/job.metadata.d.ts.map +1 -1
- package/common/metadata/materialized.metadata.d.ts +33 -0
- package/common/metadata/materialized.metadata.d.ts.map +1 -0
- package/common/metadata/output-policy.d.ts +71 -1
- package/common/metadata/output-policy.d.ts.map +1 -1
- package/common/metadata/plugin.metadata.d.ts +5 -5
- package/common/metadata/prompt.metadata.d.ts +8 -0
- package/common/metadata/prompt.metadata.d.ts.map +1 -1
- package/common/metadata/provider.metadata.d.ts +1 -1
- package/common/metadata/resource.metadata.d.ts +43 -0
- package/common/metadata/resource.metadata.d.ts.map +1 -1
- package/common/metadata/skill.metadata.d.ts +2 -2
- package/common/metadata/skill.metadata.d.ts.map +1 -1
- package/common/metadata/tool.metadata.d.ts +36 -13
- package/common/metadata/tool.metadata.d.ts.map +1 -1
- package/common/metadata/ui-serving-mode.d.ts +1 -1
- package/common/metadata/workflow.metadata.d.ts +2 -2
- package/common/metadata/workflow.metadata.d.ts.map +1 -1
- package/common/records/app.record.d.ts +18 -3
- package/common/records/app.record.d.ts.map +1 -1
- package/common/schemas/annotated-class.schema.d.ts +6 -6
- package/common/schemas/annotated-class.schema.d.ts.map +1 -1
- package/common/schemas/http-output.schema.d.ts +1 -1
- package/common/schemas/http-output.schema.d.ts.map +1 -1
- package/common/tokens/app.tokens.d.ts.map +1 -1
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -1
- package/common/tokens/job.tokens.d.ts +2 -0
- package/common/tokens/job.tokens.d.ts.map +1 -1
- package/common/tokens/prompt.tokens.d.ts +1 -0
- package/common/tokens/prompt.tokens.d.ts.map +1 -1
- package/common/tokens/resource.tokens.d.ts +5 -0
- package/common/tokens/resource.tokens.d.ts.map +1 -1
- package/common/tokens/tool.tokens.d.ts +2 -0
- package/common/tokens/tool.tokens.d.ts.map +1 -1
- package/common/types/auth/session.types.d.ts +4 -0
- package/common/types/auth/session.types.d.ts.map +1 -1
- package/common/types/options/clients/index.d.ts +4 -0
- package/common/types/options/clients/index.d.ts.map +1 -0
- package/common/types/options/clients/interfaces.d.ts +47 -0
- package/common/types/options/clients/interfaces.d.ts.map +1 -0
- package/common/types/options/clients/schema.d.ts +20 -0
- package/common/types/options/clients/schema.d.ts.map +1 -0
- package/common/types/options/devtools/index.d.ts +3 -0
- package/common/types/options/devtools/index.d.ts.map +1 -0
- package/common/types/options/devtools/schema.d.ts +15 -0
- package/common/types/options/devtools/schema.d.ts.map +1 -0
- package/common/types/options/elicitation/index.d.ts +1 -1
- package/common/types/options/elicitation/index.d.ts.map +1 -1
- package/common/types/options/elicitation/interfaces.d.ts +38 -0
- package/common/types/options/elicitation/interfaces.d.ts.map +1 -1
- package/common/types/options/elicitation/schema.d.ts +3 -1
- package/common/types/options/elicitation/schema.d.ts.map +1 -1
- package/common/types/options/ext-apps/schema.d.ts +1 -1
- package/common/types/options/ext-apps/schema.d.ts.map +1 -1
- package/common/types/options/health/schema.d.ts +1 -1
- package/common/types/options/health/schema.d.ts.map +1 -1
- package/common/types/options/http/index.d.ts +1 -1
- package/common/types/options/http/index.d.ts.map +1 -1
- package/common/types/options/http/interfaces.d.ts +35 -2
- package/common/types/options/http/interfaces.d.ts.map +1 -1
- package/common/types/options/http/schema.d.ts +6 -1
- package/common/types/options/http/schema.d.ts.map +1 -1
- package/common/types/options/index.d.ts +5 -0
- package/common/types/options/index.d.ts.map +1 -1
- package/common/types/options/instructions-budget/index.d.ts +3 -0
- package/common/types/options/instructions-budget/index.d.ts.map +1 -0
- package/common/types/options/instructions-budget/schema.d.ts +29 -0
- package/common/types/options/instructions-budget/schema.d.ts.map +1 -0
- package/common/types/options/lifecycle/index.d.ts +3 -0
- package/common/types/options/lifecycle/index.d.ts.map +1 -0
- package/common/types/options/lifecycle/schema.d.ts +20 -0
- package/common/types/options/lifecycle/schema.d.ts.map +1 -0
- package/common/types/options/logging/schema.d.ts +1 -1
- package/common/types/options/logging/schema.d.ts.map +1 -1
- package/common/types/options/metrics/schema.d.ts +1 -1
- package/common/types/options/metrics/schema.d.ts.map +1 -1
- package/common/types/options/observability/interfaces.d.ts +29 -0
- package/common/types/options/observability/interfaces.d.ts.map +1 -1
- package/common/types/options/observability/schema.d.ts +3 -1
- package/common/types/options/observability/schema.d.ts.map +1 -1
- package/common/types/options/offload/index.d.ts +3 -0
- package/common/types/options/offload/index.d.ts.map +1 -0
- package/common/types/options/offload/schema.d.ts +34 -0
- package/common/types/options/offload/schema.d.ts.map +1 -0
- package/common/types/options/outbound-fetch/schema.d.ts +1 -1
- package/common/types/options/outbound-fetch/schema.d.ts.map +1 -1
- package/common/types/options/pagination/schema.d.ts +1 -1
- package/common/types/options/pagination/schema.d.ts.map +1 -1
- package/common/types/options/redis/schema.d.ts +4 -2
- package/common/types/options/redis/schema.d.ts.map +1 -1
- package/common/types/options/registry/schema.d.ts +1 -1
- package/common/types/options/registry/schema.d.ts.map +1 -1
- package/common/types/options/server-info/schema.d.ts +1 -1
- package/common/types/options/server-info/schema.d.ts.map +1 -1
- package/common/types/options/session/schema.d.ts +9 -1
- package/common/types/options/session/schema.d.ts.map +1 -1
- package/common/types/options/skills-http/index.d.ts +1 -1
- package/common/types/options/skills-http/index.d.ts.map +1 -1
- package/common/types/options/skills-http/interfaces.d.ts +27 -5
- package/common/types/options/skills-http/interfaces.d.ts.map +1 -1
- package/common/types/options/skills-http/schema.d.ts +9 -3
- package/common/types/options/skills-http/schema.d.ts.map +1 -1
- package/common/types/options/sqlite/resolve.d.ts +2 -0
- package/common/types/options/sqlite/resolve.d.ts.map +1 -1
- package/common/types/options/sqlite/schema.d.ts +1 -1
- package/common/types/options/sqlite/schema.d.ts.map +1 -1
- package/common/types/options/transport/schema.d.ts +3 -1
- package/common/types/options/transport/schema.d.ts.map +1 -1
- package/common/utils/caller-dir.utils.d.ts +2 -0
- package/common/utils/caller-dir.utils.d.ts.map +1 -1
- package/common/utils/forward-headers.utils.d.ts +12 -0
- package/common/utils/forward-headers.utils.d.ts.map +1 -0
- package/common/utils/tool-lookup.utils.d.ts +13 -3
- package/common/utils/tool-lookup.utils.d.ts.map +1 -1
- package/completion/flows/complete.flow.d.ts +9 -2
- package/completion/flows/complete.flow.d.ts.map +1 -1
- package/context/frontmcp-context-storage.d.ts +7 -4
- package/context/frontmcp-context-storage.d.ts.map +1 -1
- package/context/metadata.utils.d.ts +11 -5
- package/context/metadata.utils.d.ts.map +1 -1
- package/direct/connect.d.ts +4 -2
- package/direct/connect.d.ts.map +1 -1
- package/duty/duty.lifecycle.d.ts +27 -0
- package/duty/duty.lifecycle.d.ts.map +1 -0
- package/duty/duty.runner.d.ts +61 -0
- package/duty/duty.runner.d.ts.map +1 -0
- package/elicitation/elicitation.types.d.ts +13 -0
- package/elicitation/elicitation.types.d.ts.map +1 -1
- package/elicitation/flows/elicitation-request.flow.d.ts +1 -1
- package/elicitation/flows/elicitation-request.flow.d.ts.map +1 -1
- package/elicitation/flows/elicitation-result.flow.d.ts +1 -1
- package/elicitation/flows/elicitation-result.flow.d.ts.map +1 -1
- package/elicitation/helpers/elicit.helper.d.ts +8 -0
- package/elicitation/helpers/elicit.helper.d.ts.map +1 -1
- package/elicitation/helpers/extend-output-schema.d.ts.map +1 -1
- package/elicitation/hooks/elicitation.hooks.d.ts +10 -8
- package/elicitation/hooks/elicitation.hooks.d.ts.map +1 -1
- package/elicitation/index.d.ts +1 -0
- package/elicitation/index.d.ts.map +1 -1
- package/elicitation/questions/ask-question.d.ts +29 -0
- package/elicitation/questions/ask-question.d.ts.map +1 -0
- package/elicitation/questions/index.d.ts +7 -0
- package/elicitation/questions/index.d.ts.map +1 -0
- package/elicitation/questions/question-inbox.routes.d.ts +17 -0
- package/elicitation/questions/question-inbox.routes.d.ts.map +1 -0
- package/elicitation/questions/question-scope.helper.d.ts +41 -0
- package/elicitation/questions/question-scope.helper.d.ts.map +1 -0
- package/elicitation/questions/question-store.factory.d.ts +44 -0
- package/elicitation/questions/question-store.factory.d.ts.map +1 -0
- package/elicitation/questions/question-subject.d.ts +8 -0
- package/elicitation/questions/question-subject.d.ts.map +1 -0
- package/elicitation/questions/question.errors.d.ts +30 -0
- package/elicitation/questions/question.errors.d.ts.map +1 -0
- package/elicitation/questions/question.store.d.ts +89 -0
- package/elicitation/questions/question.store.d.ts.map +1 -0
- package/elicitation/store/elicitation-store.factory.d.ts.map +1 -1
- package/errors/authorization-required.error.d.ts +1 -1
- package/errors/authorization-required.error.d.ts.map +1 -1
- package/errors/browser-entry-point.errors.d.ts +14 -0
- package/errors/browser-entry-point.errors.d.ts.map +1 -0
- package/errors/browser-store.errors.d.ts +56 -0
- package/errors/browser-store.errors.d.ts.map +1 -0
- package/errors/build-store.errors.d.ts +7 -0
- package/errors/build-store.errors.d.ts.map +1 -0
- package/errors/duty.errors.d.ts +10 -0
- package/errors/duty.errors.d.ts.map +1 -0
- package/errors/error-handler.d.ts +1 -0
- package/errors/error-handler.d.ts.map +1 -1
- package/errors/http-route.errors.d.ts +30 -0
- package/errors/http-route.errors.d.ts.map +1 -0
- package/errors/index.d.ts +13 -5
- package/errors/index.d.ts.map +1 -1
- package/errors/job.errors.d.ts +41 -1
- package/errors/job.errors.d.ts.map +1 -1
- package/errors/lazy-app.errors.d.ts +26 -0
- package/errors/lazy-app.errors.d.ts.map +1 -0
- package/errors/mcp.error.d.ts +71 -1
- package/errors/mcp.error.d.ts.map +1 -1
- package/errors/misconfiguration.d.ts.map +1 -1
- package/errors/offload.errors.d.ts +32 -0
- package/errors/offload.errors.d.ts.map +1 -0
- package/errors/provider.errors.d.ts +7 -0
- package/errors/provider.errors.d.ts.map +1 -1
- package/errors/registry.errors.d.ts +16 -0
- package/errors/registry.errors.d.ts.map +1 -1
- package/errors/sdk.errors.d.ts +6 -0
- package/errors/sdk.errors.d.ts.map +1 -1
- package/errors/shared-server.errors.d.ts +18 -0
- package/errors/shared-server.errors.d.ts.map +1 -0
- package/errors/transport.errors.d.ts +19 -0
- package/errors/transport.errors.d.ts.map +1 -1
- package/esm/index.mjs +189 -39
- package/esm/job/tools/index.mjs +10 -0
- package/esm/transport/index.mjs +19 -0
- package/esm/workflow/tools/index.mjs +9 -0
- package/flows/deferred-flow.d.ts +18 -0
- package/flows/deferred-flow.d.ts.map +1 -0
- package/flows/flow.instance.d.ts +19 -0
- package/flows/flow.instance.d.ts.map +1 -1
- package/flows/flow.registry.d.ts.map +1 -1
- package/flows/flow.stages.d.ts +9 -1
- package/flows/flow.stages.d.ts.map +1 -1
- package/front-mcp/detached-job.flag.d.ts +15 -0
- package/front-mcp/detached-job.flag.d.ts.map +1 -0
- package/front-mcp/front-mcp.d.ts +29 -1
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/front-mcp/manifest-mode.flag.d.ts +4 -0
- package/front-mcp/manifest-mode.flag.d.ts.map +1 -0
- package/front-mcp/shutdown-signals.d.ts +17 -3
- package/front-mcp/shutdown-signals.d.ts.map +1 -1
- package/front-mcp/stdio-console.d.ts +3 -0
- package/front-mcp/stdio-console.d.ts.map +1 -0
- package/hooks/entry-class-hooks.d.ts +4 -0
- package/hooks/entry-class-hooks.d.ts.map +1 -1
- package/hooks/hook-observers.d.ts +54 -0
- package/hooks/hook-observers.d.ts.map +1 -0
- package/hooks/hook-order.d.ts +24 -0
- package/hooks/hook-order.d.ts.map +1 -0
- package/hooks/hook.registry.d.ts +9 -7
- package/hooks/hook.registry.d.ts.map +1 -1
- package/http-route/flows/http.route.flow.d.ts +37 -0
- package/http-route/flows/http.route.flow.d.ts.map +1 -0
- package/http-route/http-route.table.d.ts +40 -0
- package/http-route/http-route.table.d.ts.map +1 -0
- package/http-route/people-sign-in.routes.d.ts +17 -0
- package/http-route/people-sign-in.routes.d.ts.map +1 -0
- package/http-route/sse-route.stream.d.ts +42 -0
- package/http-route/sse-route.stream.d.ts.map +1 -0
- package/index.d.ts +129 -79
- package/index.d.ts.map +1 -1
- package/index.js +189 -39
- package/job/execution/index.d.ts +2 -2
- package/job/execution/index.d.ts.map +1 -1
- package/job/execution/job-execution.manager.d.ts +120 -2
- package/job/execution/job-execution.manager.d.ts.map +1 -1
- package/job/flows/execute-job.flow.d.ts +22 -6
- package/job/flows/execute-job.flow.d.ts.map +1 -1
- package/job/index.d.ts +4 -0
- package/job/index.d.ts.map +1 -1
- package/job/job-admission.d.ts +45 -0
- package/job/job-admission.d.ts.map +1 -0
- package/job/job-attempt.d.ts +29 -5
- package/job/job-attempt.d.ts.map +1 -1
- package/job/job-run-access.d.ts +15 -0
- package/job/job-run-access.d.ts.map +1 -0
- package/job/job-scope.helper.d.ts +39 -11
- package/job/job-scope.helper.d.ts.map +1 -1
- package/job/job.instance.d.ts +2 -1
- package/job/job.instance.d.ts.map +1 -1
- package/job/resources/job-run.resource.d.ts +15 -0
- package/job/resources/job-run.resource.d.ts.map +1 -0
- package/job/runner/detached-job.worker.d.ts +16 -0
- package/job/runner/detached-job.worker.d.ts.map +1 -0
- package/job/runner/job-runner.d.ts +35 -0
- package/job/runner/job-runner.d.ts.map +1 -0
- package/job/runner/run-flusher.d.ts +42 -0
- package/job/runner/run-flusher.d.ts.map +1 -0
- package/job/store/index.d.ts +2 -0
- package/job/store/index.d.ts.map +1 -1
- package/job/store/job-definition-store.factory.d.ts +8 -5
- package/job/store/job-definition-store.factory.d.ts.map +1 -1
- package/job/store/job-state-store.factory.d.ts +10 -6
- package/job/store/job-state-store.factory.d.ts.map +1 -1
- package/job/store/job-state.interface.d.ts +42 -1
- package/job/store/job-state.interface.d.ts.map +1 -1
- package/job/store/memory-job-state.store.d.ts +8 -0
- package/job/store/memory-job-state.store.d.ts.map +1 -1
- package/job/store/redis-job-state.store.d.ts +15 -1
- package/job/store/redis-job-state.store.d.ts.map +1 -1
- package/job/store/storage-job-definition.store.d.ts +25 -0
- package/job/store/storage-job-definition.store.d.ts.map +1 -0
- package/job/store/storage-job-state.store.d.ts +34 -0
- package/job/store/storage-job-state.store.d.ts.map +1 -0
- package/job/tools/cancel-job.tool.d.ts +10 -0
- package/job/tools/cancel-job.tool.d.ts.map +1 -0
- package/job/tools/execute-job.tool.d.ts +11 -1
- package/job/tools/execute-job.tool.d.ts.map +1 -1
- package/job/tools/get-job-status.tool.d.ts +0 -12
- package/job/tools/get-job-status.tool.d.ts.map +1 -1
- package/job/tools/index.d.ts +1 -0
- package/job/tools/index.d.ts.map +1 -1
- package/job/tools/index.js +39 -0
- package/lazy-subsystems.d.ts +2 -0
- package/lazy-subsystems.d.ts.map +1 -0
- package/logger/logger.registry.d.ts.map +1 -1
- package/manifest/build-manifest.d.ts +17 -0
- package/manifest/build-manifest.d.ts.map +1 -0
- package/manifest/build-server-manifest.d.ts +28 -0
- package/manifest/build-server-manifest.d.ts.map +1 -0
- package/manifest/index.d.ts +6 -0
- package/manifest/index.d.ts.map +1 -0
- package/manifest/instructions-budget.check.d.ts +15 -0
- package/manifest/instructions-budget.check.d.ts.map +1 -0
- package/manifest/manifest-lint.d.ts +29 -0
- package/manifest/manifest-lint.d.ts.map +1 -0
- package/manifest/server-manifest.schema.d.ts +234 -0
- package/manifest/server-manifest.schema.d.ts.map +1 -0
- package/mcp-registry/flows/server-card.flow.d.ts +1 -1
- package/mcp-registry/flows/server-card.flow.d.ts.map +1 -1
- package/mcp-registry/flows/well-known.ai-catalog.flow.d.ts +1 -1
- package/mcp-registry/flows/well-known.ai-catalog.flow.d.ts.map +1 -1
- package/notification/notification.service.d.ts.map +1 -1
- package/offload/index.d.ts +3 -0
- package/offload/index.d.ts.map +1 -0
- package/offload/offload-pool.d.ts +41 -0
- package/offload/offload-pool.d.ts.map +1 -0
- package/offload/offload-worker.globals.d.ts +34 -0
- package/offload/offload-worker.globals.d.ts.map +1 -0
- package/offload/offload-worker.source.d.ts +3 -0
- package/offload/offload-worker.source.d.ts.map +1 -0
- package/offload/offload.service.d.ts +15 -0
- package/offload/offload.service.d.ts.map +1 -0
- package/offload/offload.types.d.ts +30 -0
- package/offload/offload.types.d.ts.map +1 -0
- package/offload/read-in-worker.d.ts +5 -0
- package/offload/read-in-worker.d.ts.map +1 -0
- package/offload/run-job-in-worker.d.ts +9 -0
- package/offload/run-job-in-worker.d.ts.map +1 -0
- package/offload/worker-job.runner.d.ts +5 -0
- package/offload/worker-job.runner.d.ts.map +1 -0
- package/offload/worker-jobs.d.ts +14 -0
- package/offload/worker-jobs.d.ts.map +1 -0
- package/offload/worker-resource.reader.d.ts +21 -0
- package/offload/worker-resource.reader.d.ts.map +1 -0
- package/offload/worker-resources.d.ts +24 -0
- package/offload/worker-resources.d.ts.map +1 -0
- package/package.json +23 -11
- package/plugin/enforced-metadata.check.d.ts +7 -6
- package/plugin/enforced-metadata.check.d.ts.map +1 -1
- package/plugin/plugin.registry.d.ts +2 -0
- package/plugin/plugin.registry.d.ts.map +1 -1
- package/prompt/flows/get-prompt.flow.d.ts +12 -4
- package/prompt/flows/get-prompt.flow.d.ts.map +1 -1
- package/prompt/flows/prompts-list.flow.d.ts +3 -1
- package/prompt/flows/prompts-list.flow.d.ts.map +1 -1
- package/prompt/prompt.registry.d.ts +2 -0
- package/prompt/prompt.registry.d.ts.map +1 -1
- package/provider/create-container.d.ts +31 -0
- package/provider/create-container.d.ts.map +1 -0
- package/provider/provider.lifecycle.d.ts +23 -0
- package/provider/provider.lifecycle.d.ts.map +1 -0
- package/provider/provider.registry.d.ts +27 -0
- package/provider/provider.registry.d.ts.map +1 -1
- package/provider/provider.utils.d.ts.map +1 -1
- package/provider/store.provider.d.ts +13 -0
- package/provider/store.provider.d.ts.map +1 -0
- package/remote-mcp/mcp-client.service.d.ts.map +1 -1
- package/resource/flows/read-resource.flow.d.ts +15 -5
- package/resource/flows/read-resource.flow.d.ts.map +1 -1
- package/resource/flows/resource-templates-list.flow.d.ts +3 -1
- package/resource/flows/resource-templates-list.flow.d.ts.map +1 -1
- package/resource/flows/resources-list.flow.d.ts +3 -1
- package/resource/flows/resources-list.flow.d.ts.map +1 -1
- package/resource/flows/subscribe-resource.flow.d.ts +6 -2
- package/resource/flows/subscribe-resource.flow.d.ts.map +1 -1
- package/resource/materialized/index.d.ts +4 -0
- package/resource/materialized/index.d.ts.map +1 -0
- package/resource/materialized/materialized-resource.context.d.ts +13 -0
- package/resource/materialized/materialized-resource.context.d.ts.map +1 -0
- package/resource/materialized/materialized-resources.d.ts +31 -0
- package/resource/materialized/materialized-resources.d.ts.map +1 -0
- package/resource/materialized/resource-store.d.ts +72 -0
- package/resource/materialized/resource-store.d.ts.map +1 -0
- package/resource/resource.instance.d.ts.map +1 -1
- package/resource/resource.registry.d.ts +2 -0
- package/resource/resource.registry.d.ts.map +1 -1
- package/scope/browser-stores.d.ts +73 -0
- package/scope/browser-stores.d.ts.map +1 -0
- package/scope/dev-events-observability.d.ts +11 -0
- package/scope/dev-events-observability.d.ts.map +1 -0
- package/scope/flows/http.request.flow.d.ts +2 -0
- package/scope/flows/http.request.flow.d.ts.map +1 -1
- package/scope/flows/request-log.redaction.d.ts +4 -0
- package/scope/flows/request-log.redaction.d.ts.map +1 -1
- package/scope/http-scope.helper.d.ts +3 -0
- package/scope/http-scope.helper.d.ts.map +1 -1
- package/scope/observability-scope.helper.d.ts +3 -1
- package/scope/observability-scope.helper.d.ts.map +1 -1
- package/scope/scope.instance.d.ts +10 -1
- package/scope/scope.instance.d.ts.map +1 -1
- package/server/adapters/express.host.adapter.d.ts +2 -2
- package/server/adapters/express.host.adapter.d.ts.map +1 -1
- package/server/adapters/utf8-json.parser.d.ts +3 -0
- package/server/adapters/utf8-json.parser.d.ts.map +1 -0
- package/server/security/replaceable-directory.d.ts +9 -0
- package/server/security/replaceable-directory.d.ts.map +1 -0
- 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 +12 -0
- package/server/security/same-origin.d.ts.map +1 -0
- package/server/security/security-audit.d.ts.map +1 -1
- package/server/security/unix-socket-guard.d.ts +12 -0
- package/server/security/unix-socket-guard.d.ts.map +1 -0
- package/server/server.validation.d.ts.map +1 -1
- package/shared/browser-shared-server.d.ts +3 -0
- package/shared/browser-shared-server.d.ts.map +1 -0
- package/shared/ensure-shared-server.d.ts +58 -0
- package/shared/ensure-shared-server.d.ts.map +1 -0
- package/shared/flows/shared.drain.flow.d.ts +49 -0
- package/shared/flows/shared.drain.flow.d.ts.map +1 -0
- package/shared/flows/shared.identify.flow.d.ts +48 -0
- package/shared/flows/shared.identify.flow.d.ts.map +1 -0
- package/shared/index.d.ts +8 -0
- package/shared/index.d.ts.map +1 -0
- package/shared/shared-attach.d.ts +35 -0
- package/shared/shared-attach.d.ts.map +1 -0
- package/shared/shared-embedded.d.ts +12 -0
- package/shared/shared-embedded.d.ts.map +1 -0
- package/shared/shared-endpoint.d.ts +44 -0
- package/shared/shared-endpoint.d.ts.map +1 -0
- package/shared/shared-files.d.ts +28 -0
- package/shared/shared-files.d.ts.map +1 -0
- package/shared/shared-serve.d.ts +34 -0
- package/shared/shared-serve.d.ts.map +1 -0
- package/shared/shared-server.identity.d.ts +15 -0
- package/shared/shared-server.identity.d.ts.map +1 -0
- package/shared/shared-server.lifecycle.d.ts +40 -0
- package/shared/shared-server.lifecycle.d.ts.map +1 -0
- package/shared/shared-server.options.d.ts +38 -0
- package/shared/shared-server.options.d.ts.map +1 -0
- package/shared/shared-version.d.ts +3 -0
- package/shared/shared-version.d.ts.map +1 -0
- package/shared/start-lock.d.ts +28 -0
- package/shared/start-lock.d.ts.map +1 -0
- package/shared/unix-socket-fetch.d.ts +6 -0
- package/shared/unix-socket-fetch.d.ts.map +1 -0
- package/skill/flows/filter-skills.flow.d.ts +1 -1
- package/skill/flows/filter-skills.flow.d.ts.map +1 -1
- package/skill/flows/load-skill.flow.d.ts +1 -1
- package/skill/flows/load-skill.flow.d.ts.map +1 -1
- package/skill/sep-2640/sep-2640.per-skill.d.ts +7 -5
- package/skill/sep-2640/sep-2640.per-skill.d.ts.map +1 -1
- package/skill/skill-instructions.helper.d.ts +17 -11
- package/skill/skill-instructions.helper.d.ts.map +1 -1
- package/skill/skill-scope.helper.d.ts.map +1 -1
- package/skill/skill.registry.d.ts +2 -1
- package/skill/skill.registry.d.ts.map +1 -1
- package/skill/sync/skill-hash.d.ts.map +1 -1
- package/storage/sqlite-storage.provider.d.ts +14 -0
- package/storage/sqlite-storage.provider.d.ts.map +1 -0
- package/subsystems.d.ts +13 -0
- package/subsystems.d.ts.map +1 -0
- package/surface/entry-enabled.d.ts +10 -0
- package/surface/entry-enabled.d.ts.map +1 -0
- package/surface/file-signal.d.ts +27 -0
- package/surface/file-signal.d.ts.map +1 -0
- package/surface/index.d.ts +5 -0
- package/surface/index.d.ts.map +1 -0
- package/surface/live-surface.d.ts +73 -0
- package/surface/live-surface.d.ts.map +1 -0
- package/surface/unchanged-lists.d.ts +8 -0
- package/surface/unchanged-lists.d.ts.map +1 -0
- package/task/flows/tasks-cancel.flow.d.ts +1 -1
- package/task/flows/tasks-cancel.flow.d.ts.map +1 -1
- package/task/flows/tasks-get.flow.d.ts +1 -1
- package/task/flows/tasks-get.flow.d.ts.map +1 -1
- package/task/flows/tasks-list.flow.d.ts +1 -1
- package/task/flows/tasks-list.flow.d.ts.map +1 -1
- package/task/flows/tasks-result.flow.d.ts +1 -1
- package/task/flows/tasks-result.flow.d.ts.map +1 -1
- package/task/helpers/cli-task-runner.d.ts +6 -1
- package/task/helpers/cli-task-runner.d.ts.map +1 -1
- package/task/index.d.ts +1 -1
- package/task/index.d.ts.map +1 -1
- package/task/store/task-store.factory.d.ts.map +1 -1
- package/task/task-scope.runtime.d.ts +9 -0
- package/task/task-scope.runtime.d.ts.map +1 -0
- package/third-party/import-protocol-client.d.ts +3 -0
- package/third-party/import-protocol-client.d.ts.map +1 -0
- package/third-party/import-protocol-client.js +1 -0
- package/third-party/protocol-client.d.ts +4 -0
- package/third-party/protocol-client.d.ts.map +1 -0
- package/third-party/protocol-client.js +1 -0
- package/tool/flows/call-tool.flow.d.ts +48 -5
- package/tool/flows/call-tool.flow.d.ts.map +1 -1
- package/tool/flows/tools-list.flow.d.ts +6 -2
- package/tool/flows/tools-list.flow.d.ts.map +1 -1
- package/tool/tool-output-policy.d.ts +33 -0
- package/tool/tool-output-policy.d.ts.map +1 -0
- package/tool/tool.instance.d.ts +3 -3
- package/tool/tool.instance.d.ts.map +1 -1
- package/tool/tool.registry.d.ts +4 -0
- package/tool/tool.registry.d.ts.map +1 -1
- package/tool/tool.utils.d.ts +2 -2
- package/tool/tool.utils.d.ts.map +1 -1
- package/tool/ui/platform-adapters.d.ts +2 -1
- package/tool/ui/platform-adapters.d.ts.map +1 -1
- package/transport/adapters/transport.local.adapter.d.ts +1 -1
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -1
- package/transport/event-stores/index.d.ts +2 -2
- package/transport/flows/handle.mcp-20260728.flow.d.ts +17 -0
- package/transport/flows/handle.mcp-20260728.flow.d.ts.map +1 -1
- package/transport/flows/handle.sse.flow.d.ts +3 -1
- package/transport/flows/handle.sse.flow.d.ts.map +1 -1
- package/transport/flows/handle.streamable-http.flow.d.ts +3 -1
- package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -1
- package/transport/in-memory-server.d.ts.map +1 -1
- package/transport/index.js +57 -0
- package/transport/mcp-20260728/request-state.d.ts.map +1 -1
- package/transport/mcp-20260728/result-decorator.d.ts +5 -3
- package/transport/mcp-20260728/result-decorator.d.ts.map +1 -1
- package/transport/mcp-20260728/subscriptions.d.ts +5 -0
- package/transport/mcp-20260728/subscriptions.d.ts.map +1 -1
- package/transport/mcp-handlers/index.d.ts +551 -551
- package/transport/mcp-handlers/index.d.ts.map +1 -1
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/mcp-error.utils.d.ts +1 -1
- package/transport/mcp-handlers/mcp-error.utils.d.ts.map +1 -1
- package/transport/mcp-handlers/mcp-handlers.types.d.ts +1 -1
- package/transport/mcp-handlers/mcp-handlers.types.d.ts.map +1 -1
- package/transport/mcp-handlers/mcp-surface.d.ts +2 -1
- package/transport/mcp-handlers/mcp-surface.d.ts.map +1 -1
- package/transport/mcp-handlers/skills-mcp.types.d.ts +1 -1
- package/transport/mcp-handlers/skills-mcp.types.d.ts.map +1 -1
- package/transport/mcp-server.factory.d.ts +3 -0
- package/transport/mcp-server.factory.d.ts.map +1 -0
- package/transport/stdio-revision-router.d.ts +6 -1
- package/transport/stdio-revision-router.d.ts.map +1 -1
- package/transport/streamable-http-preload.d.ts +3 -0
- package/transport/streamable-http-preload.d.ts.map +1 -0
- package/transport/web-fetch-handler.d.ts +2 -2
- package/transport/web-fetch-handler.d.ts.map +1 -1
- package/transport/web-standard-mcp.d.ts.map +1 -1
- package/utils/abort.utils.d.ts +6 -0
- package/utils/abort.utils.d.ts.map +1 -0
- package/workflow/engine/workflow-step.executor.d.ts +5 -0
- package/workflow/engine/workflow-step.executor.d.ts.map +1 -1
- package/workflow/tools/get-workflow-status.tool.d.ts +0 -12
- package/workflow/tools/get-workflow-status.tool.d.ts.map +1 -1
- package/workflow/tools/index.js +37 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type StorageConfig } from '@frontmcp/utils';
|
|
2
|
+
import { type DutyInterface, type OnBootstrap, type OnReady, type OnShutdown, type ResolvedDutyMetadata } from '../common';
|
|
3
|
+
import type ProviderRegistry from '../provider/provider.registry';
|
|
4
|
+
type DutyInstance = DutyInterface & Partial<OnBootstrap & OnReady & OnShutdown>;
|
|
5
|
+
/** The lifecycle the provider registry runs for a `@Duty` instance: its own hooks, plus starting and stopping it. */
|
|
6
|
+
export declare function dutyLifecycleOf(duty: object, metadata: ResolvedDutyMetadata, providers: ProviderRegistry): DutyLifecycle;
|
|
7
|
+
/** Start the duties built in `providers` as a server does once it serves: each one's own `onReady()`, then its runs. */
|
|
8
|
+
export declare function startDuties(providers: ProviderRegistry): Promise<void>;
|
|
9
|
+
/** Where the leases live: the server's Redis when it has one, otherwise a SQLite file every process on the machine opens. */
|
|
10
|
+
export declare function dutyStorageConfig(redis: unknown): StorageConfig;
|
|
11
|
+
export declare class DutyLifecycle implements OnBootstrap, OnReady, OnShutdown {
|
|
12
|
+
private readonly duty;
|
|
13
|
+
private readonly metadata;
|
|
14
|
+
private readonly providers;
|
|
15
|
+
private started?;
|
|
16
|
+
private claimedKey?;
|
|
17
|
+
constructor(duty: DutyInstance, metadata: ResolvedDutyMetadata, providers: ProviderRegistry);
|
|
18
|
+
onBootstrap(): Promise<void>;
|
|
19
|
+
onReady(): Promise<void>;
|
|
20
|
+
onShutdown(): Promise<void>;
|
|
21
|
+
private startRunner;
|
|
22
|
+
/** Take `key` for this duty's class in this process: another class with the same key would never run here. */
|
|
23
|
+
private claim;
|
|
24
|
+
private releaseClaim;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=duty.lifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duty.lifecycle.d.ts","sourceRoot":"","sources":["../../src/duty/duty.lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,oBAAoB,EAC1B,MAAM,WAAW,CAAC;AAInB,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAIlE,KAAK,YAAY,GAAG,aAAa,GAAG,OAAO,CAAC,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC,CAAC;AAyBhF,qHAAqH;AACrH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,oBAAoB,EAC9B,SAAS,EAAE,gBAAgB,GAC1B,aAAa,CAOf;AAED,wHAAwH;AACxH,wBAAsB,WAAW,CAAC,SAAS,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAI5E;AAED,6HAA6H;AAC7H,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,CAkB/D;AA0BD,qBAAa,aAAc,YAAW,WAAW,EAAE,OAAO,EAAE,UAAU;IAKlE,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAN5B,OAAO,CAAC,OAAO,CAAC,CAAmC;IACnD,OAAO,CAAC,UAAU,CAAC,CAAS;gBAGT,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,oBAAoB,EAC9B,SAAS,EAAE,gBAAgB;IAGxC,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAMxB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;YAUnB,WAAW;IA4BzB,8GAA8G;IAC9G,OAAO,CAAC,KAAK;IAUb,OAAO,CAAC,YAAY;CAQrB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type NamespacedStorage } from '@frontmcp/utils';
|
|
2
|
+
import type { DutyRunContext, FrontMcpLogger } from '../common';
|
|
3
|
+
/** The store operations a lease needs; the SQLite, Redis and memory stores run each one atomically. */
|
|
4
|
+
export type DutyLeaseStorage = Pick<NamespacedStorage, 'set' | 'ttl' | 'expireIfEquals' | 'deleteIfEquals'>;
|
|
5
|
+
export type DutyLogger = Pick<FrontMcpLogger, 'verbose' | 'info' | 'warn' | 'error'>;
|
|
6
|
+
export interface DutyRunnerOptions {
|
|
7
|
+
name: string;
|
|
8
|
+
key: string;
|
|
9
|
+
everyMs: number;
|
|
10
|
+
leaseMs: number;
|
|
11
|
+
storage: DutyLeaseStorage;
|
|
12
|
+
logger: DutyLogger;
|
|
13
|
+
run(context: DutyRunContext): unknown;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Runs a duty every `everyMs` while this process holds its lease, and contends for the lease otherwise. The lease is a
|
|
17
|
+
* key holding this runner's id with a TTL, so it expires by the store's clock when the holder stops renewing it. The
|
|
18
|
+
* holder renews it every third of `leaseMs`, and again before each run, so a holder that wakes after another process
|
|
19
|
+
* took the lease over never runs again.
|
|
20
|
+
*/
|
|
21
|
+
export declare class DutyRunner {
|
|
22
|
+
private readonly options;
|
|
23
|
+
private readonly holder;
|
|
24
|
+
private readonly leaseSeconds;
|
|
25
|
+
private readonly ranKey;
|
|
26
|
+
private holding;
|
|
27
|
+
private stopped;
|
|
28
|
+
private reportedHeldElsewhere;
|
|
29
|
+
private leaseCheck?;
|
|
30
|
+
private leaseTimer?;
|
|
31
|
+
private leaseDeadline?;
|
|
32
|
+
private tickTimer?;
|
|
33
|
+
private inFlight?;
|
|
34
|
+
constructor(options: DutyRunnerOptions);
|
|
35
|
+
/** Contend for the lease once now, then renew or contend again every third of the lease. */
|
|
36
|
+
start(): Promise<void>;
|
|
37
|
+
/** Stop contending, abort the run in flight and wait for it while still renewing the lease, then release it. */
|
|
38
|
+
stop(): Promise<void>;
|
|
39
|
+
private checkLease;
|
|
40
|
+
private acquire;
|
|
41
|
+
/** Extend the lease while it holds this runner's id, and give up holding it by the time the store could end it. */
|
|
42
|
+
private renew;
|
|
43
|
+
/**
|
|
44
|
+
* Stop at `deadline` (monotonic) unless a renew succeeds first: the store ends the lease no sooner, so this process
|
|
45
|
+
* never runs past the point where another one could take the lease over, even while the store can't be reached.
|
|
46
|
+
*/
|
|
47
|
+
private holdUntil;
|
|
48
|
+
private reportHeldElsewhere;
|
|
49
|
+
/**
|
|
50
|
+
* Start the runs, the first once the interval the last run (in any process) started has passed, or a whole interval
|
|
51
|
+
* from now when the store can't say when that was.
|
|
52
|
+
*/
|
|
53
|
+
private hold;
|
|
54
|
+
private lose;
|
|
55
|
+
private scheduleTick;
|
|
56
|
+
private tick;
|
|
57
|
+
private runIfHeld;
|
|
58
|
+
/** Renew the lease right before a run, so a holder that lost it while paused never runs, and mark the run. */
|
|
59
|
+
private claimRun;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=duty.runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duty.runner.d.ts","sourceRoot":"","sources":["../../src/duty/duty.runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhE,uGAAuG;AACvG,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,EAAE,KAAK,GAAG,KAAK,GAAG,gBAAgB,GAAG,gBAAgB,CAAC,CAAC;AAE5G,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAErF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,EAAE,UAAU,CAAC;IACnB,GAAG,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC;CACvC;AAOD;;;;;GAKG;AACH,qBAAa,UAAU;IAaT,OAAO,CAAC,QAAQ,CAAC,OAAO;IAZpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,qBAAqB,CAAS;IACtC,OAAO,CAAC,UAAU,CAAC,CAAgB;IACnC,OAAO,CAAC,UAAU,CAAC,CAAgC;IACnD,OAAO,CAAC,aAAa,CAAC,CAAgC;IACtD,OAAO,CAAC,SAAS,CAAC,CAAgC;IAClD,OAAO,CAAC,QAAQ,CAAC,CAAc;gBAEF,OAAO,EAAE,iBAAiB;IAMvD,4FAA4F;IACtF,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAK5B,gHAAgH;IAC1G,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;YAiBb,UAAU;YAkBV,OAAO;IAMrB,mHAAmH;YACrG,KAAK;IAOnB;;;OAGG;IACH,OAAO,CAAC,SAAS;IAYjB,OAAO,CAAC,mBAAmB;IAQ3B;;;OAGG;YACW,IAAI;IAQlB,OAAO,CAAC,IAAI;IASZ,OAAO,CAAC,YAAY;YAQN,IAAI;YAYJ,SAAS;IASvB,8GAA8G;YAChG,QAAQ;CAevB"}
|
|
@@ -67,6 +67,19 @@ export interface ElicitOptions {
|
|
|
67
67
|
* Required for URL mode.
|
|
68
68
|
*/
|
|
69
69
|
url?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Keep the question for the caller after this call stops waiting (`elicitation.persistent`): a person answers it in
|
|
72
|
+
* the inbox, not the client, and the answer reaches this call, or the next call of the same caller that asks `key`.
|
|
73
|
+
* `ttl` is how long this call waits; `persist.ttlMs` how long the question and its answer are kept (longer).
|
|
74
|
+
*/
|
|
75
|
+
persist?: PersistOptions;
|
|
76
|
+
}
|
|
77
|
+
/** `ElicitOptions.persist`. */
|
|
78
|
+
export interface PersistOptions {
|
|
79
|
+
/** Names the question among the caller's: asking a key that is waiting asks the same question. */
|
|
80
|
+
key: string;
|
|
81
|
+
/** How long the question, and an answer no call took yet, are kept, in ms. @default elicitation.persistent.ttlMs */
|
|
82
|
+
ttlMs?: number;
|
|
70
83
|
}
|
|
71
84
|
/**
|
|
72
85
|
* Typed elicitation result that preserves the schema type.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elicitation.types.d.ts","sourceRoot":"","sources":["../../src/elicitation/elicitation.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,kBAAkB,SAAS,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE3D;;;;GAIG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,OAAO;IACvC;;;OAGG;IACH,MAAM,EAAE,YAAY,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC;CACb;AAED;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"elicitation.types.d.ts","sourceRoot":"","sources":["../../src/elicitation/elicitation.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,kBAAkB,SAAS,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE3D;;;;GAIG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,OAAO;IACvC;;;OAGG;IACH,MAAM,EAAE,YAAY,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC;CACb;AAED;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,+BAA+B;AAC/B,MAAM,WAAW,cAAc;IAC7B,kGAAkG;IAClG,GAAG,EAAE,MAAM,CAAC;IACZ,oHAAoH;IACpH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,OAAO,IAAI,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,oEAAoE;IACpE,MAAM,EAAE,YAAY,CAAC;IAErB,kFAAkF;IAClF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,OAAO;IACxC,gDAAgD;IAChD,QAAQ,EAAE,MAAM,CAAC;IAEjB,mCAAmC;IACnC,aAAa,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;IAE7C,sDAAsD;IACtD,OAAO,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAE3C,iDAAiD;IACjD,MAAM,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;CAChC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,gDAAgD;IAChD,QAAQ,EAAE,MAAM,CAAC;IAEjB,gDAAgD;IAChD,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,kDAAkD;IAClD,QAAQ,EAAE,MAAM,CAAC;IAEjB,kDAAkD;IAClD,SAAS,EAAE,OAAO,CAAC;IAEnB,oCAAoC;IACpC,aAAa,EAAE,MAAM,CAAC;IAEtB,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEtC,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAElB,sDAAsD;IACtD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC,gDAAgD;IAChD,QAAQ,EAAE,MAAM,CAAC;IAEjB,2CAA2C;IAC3C,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAE9B,6CAA6C;IAC7C,UAAU,EAAE,MAAM,CAAC;CACpB;AAMD;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,2CAA2C;IAC3C,OAAO,EAAE,OAAO,CAAC;IAEjB,gEAAgE;IAChE,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,yBAAyB,SAAS,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module elicitation/flows/elicitation-request.flow
|
|
8
8
|
*/
|
|
9
|
-
import { z } from '@frontmcp/lazy-zod';
|
|
9
|
+
import { internalZ as z } from '@frontmcp/lazy-zod';
|
|
10
10
|
import { FlowBase, type FlowRunOptions } from '../../common';
|
|
11
11
|
import { type PendingElicitRecord } from '../store';
|
|
12
12
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elicitation-request.flow.d.ts","sourceRoot":"","sources":["../../../src/elicitation/flows/elicitation-request.flow.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"elicitation-request.flow.d.ts","sourceRoot":"","sources":["../../../src/elicitation/flows/elicitation-request.flow.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,IAAI,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAQ,QAAQ,EAA8B,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAG/F,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;gCAkBf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;mBAYU,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;gCACxD,CAAC;AAEH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;mBAWsB,CAAC,CAAC,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC;;;;;;;;;;;uBAdrD,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;;gCAiBxD,CAAC;AAEH,QAAA,MAAM,IAAI;;;;CAI2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,qBAAqB,EAAE,cAAc,CACnC,sBAAsB,EACtB,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,qBAA8B,CAAC;AAG5C;;;;;;;;;;;;GAYG;AAQH,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IACvE,MAAM,wCAAoD;IAGpD,UAAU;IAqBV,eAAe;IAcf,gBAAgB;IAehB,kBAAkB;IA0BlB,kBAAkB;IAwBlB,QAAQ;CAuBf;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module elicitation/flows/elicitation-result.flow
|
|
8
8
|
*/
|
|
9
|
-
import { z } from '@frontmcp/lazy-zod';
|
|
9
|
+
import { internalZ as z } from '@frontmcp/lazy-zod';
|
|
10
10
|
import { FlowBase, type FlowRunOptions } from '../../common';
|
|
11
11
|
import type { ElicitResult } from '../elicitation.types';
|
|
12
12
|
import type { PendingElicitRecord } from '../store';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elicitation-result.flow.d.ts","sourceRoot":"","sources":["../../../src/elicitation/flows/elicitation-result.flow.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"elicitation-result.flow.d.ts","sourceRoot":"","sources":["../../../src/elicitation/flows/elicitation-result.flow.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,IAAI,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAQ,QAAQ,EAA8B,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAE/F,OAAO,KAAK,EAAE,YAAY,EAAgB,MAAM,sBAAsB,CAAC;AAEvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,QAAA,MAAM,WAAW;;;;;;;;;;gCAQf,CAAC;AAEH,QAAA,MAAM,YAAY;;;YAMc,CAAC,CAAC,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;gCACjE,CAAC;AAEH,QAAA,MAAM,WAAW;;;;;;;;mBAIsB,CAAC,CAAC,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC;kBAC3C,CAAC,CAAC,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;;;;;gBARzC,CAAC,CAAC,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;;gCAWjE,CAAC;AAEH,QAAA,MAAM,IAAI;;;;CAI2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,oBAAoB,EAAE,cAAc,CAClC,qBAAqB,EACrB,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,oBAA6B,CAAC;AAG3C;;;;;;;;;;;GAWG;AAQH,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IACtE,MAAM,wCAAmD;IAGnD,UAAU;IAkBV,aAAa;IAuBb,eAAe;IA+Cf,WAAW;IAoBX,aAAa;IA+Bb,QAAQ;CAYf;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -10,6 +10,7 @@ import { type ZodType } from '@frontmcp/lazy-zod';
|
|
|
10
10
|
import { type FrontMcpContext } from '../../context';
|
|
11
11
|
import { type ClientCapabilities } from '../../notification';
|
|
12
12
|
import { type ElicitOptions, type ElicitResult } from '../elicitation.types';
|
|
13
|
+
import { type QuestionStore } from '../questions/question.store';
|
|
13
14
|
/**
|
|
14
15
|
* Transport interface for elicitation.
|
|
15
16
|
* Matches the shape exposed by FrontMcpContext.
|
|
@@ -37,6 +38,13 @@ export interface ElicitHelperDeps {
|
|
|
37
38
|
* @default false
|
|
38
39
|
*/
|
|
39
40
|
elicitationEnabled?: boolean;
|
|
41
|
+
/** The scope's persistent questions (`elicitation.persistent`), with their default TTL. */
|
|
42
|
+
questions?: {
|
|
43
|
+
store: QuestionStore;
|
|
44
|
+
ttlMs: number;
|
|
45
|
+
};
|
|
46
|
+
/** Aborts when the call stops; a persistent question then stops waiting. */
|
|
47
|
+
signal?: AbortSignal;
|
|
40
48
|
}
|
|
41
49
|
/**
|
|
42
50
|
* Perform an elicitation request.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elicit.helper.d.ts","sourceRoot":"","sources":["../../../src/elicitation/helpers/elicit.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"elicit.helper.d.ts","sourceRoot":"","sources":["../../../src/elicitation/helpers/elicit.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAgC,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAGhF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAOrD,OAAO,EAAuB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAsB,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACjG,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,CAAC,SAAS,OAAO,EACtB,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,CAAC,EAClB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CACpE;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,yCAAyC;IACzC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9B,0DAA0D;IAC1D,qBAAqB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,kBAAkB,GAAG,SAAS,CAAC;IAE7E,+DAA+D;IAC/D,aAAa,EAAE,MAAM,eAAe,GAAG,SAAS,CAAC;IAEjD,gEAAgE;IAChE,SAAS,EAAE,MAAM,CAAC;IAElB,mEAAmE;IACnE,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B,2FAA2F;IAC3F,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,aAAa,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAEpD,4EAA4E;IAC5E,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,aAAa,CAAC,CAAC,SAAS,OAAO,EACnD,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,CAAC,EAClB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAgHjE;AAOD;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAE9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extend-output-schema.d.ts","sourceRoot":"","sources":["../../../src/elicitation/helpers/extend-output-schema.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gCAAgC,CAC9C,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAClD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"extend-output-schema.d.ts","sourceRoot":"","sources":["../../../src/elicitation/helpers/extend-output-schema.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gCAAgC,CAC9C,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAClD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6CzB"}
|
|
@@ -29,10 +29,11 @@
|
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
31
|
export declare const ElicitationRequestHook: {
|
|
32
|
-
Stage: (stage: "finalize" | "parseInput" | "validateRequest" | "generateElicitId" | "storePendingRecord" | "buildRequestParams", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationRequestFlow>) =>
|
|
33
|
-
Will: (stage: "finalize" | "parseInput" | "validateRequest" | "generateElicitId" | "storePendingRecord" | "buildRequestParams", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationRequestFlow>) =>
|
|
34
|
-
Did: (stage: "finalize" | "parseInput" | "validateRequest" | "generateElicitId" | "storePendingRecord" | "buildRequestParams", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationRequestFlow>) =>
|
|
35
|
-
Around: (stage: "finalize" | "parseInput" | "validateRequest" | "generateElicitId" | "storePendingRecord" | "buildRequestParams", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationRequestFlow>) =>
|
|
32
|
+
Stage: (stage: "finalize" | "parseInput" | "validateRequest" | "generateElicitId" | "storePendingRecord" | "buildRequestParams", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationRequestFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationRequestFlow>>;
|
|
33
|
+
Will: (stage: "finalize" | "parseInput" | "validateRequest" | "generateElicitId" | "storePendingRecord" | "buildRequestParams", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationRequestFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationRequestFlow>>;
|
|
34
|
+
Did: (stage: "finalize" | "parseInput" | "validateRequest" | "generateElicitId" | "storePendingRecord" | "buildRequestParams", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationRequestFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationRequestFlow>>;
|
|
35
|
+
Around: (stage: "finalize" | "parseInput" | "validateRequest" | "generateElicitId" | "storePendingRecord" | "buildRequestParams", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationRequestFlow>) => import("../../common").FlowHookDecorator<import("../../common").AroundFlowHookMethod<import("@frontmcp/sdk").ElicitationRequestFlow>>;
|
|
36
|
+
Finally: (stage: "finalize" | "parseInput" | "validateRequest" | "generateElicitId" | "storePendingRecord" | "buildRequestParams", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationRequestFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationRequestFlow>>;
|
|
36
37
|
};
|
|
37
38
|
/**
|
|
38
39
|
* Hook decorators for the elicitation:result flow.
|
|
@@ -58,9 +59,10 @@ export declare const ElicitationRequestHook: {
|
|
|
58
59
|
* ```
|
|
59
60
|
*/
|
|
60
61
|
export declare const ElicitationResultHook: {
|
|
61
|
-
Stage: (stage: "finalize" | "parseInput" | "lookupPending" | "validateContent" | "buildResult" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) =>
|
|
62
|
-
Will: (stage: "finalize" | "parseInput" | "lookupPending" | "validateContent" | "buildResult" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) =>
|
|
63
|
-
Did: (stage: "finalize" | "parseInput" | "lookupPending" | "validateContent" | "buildResult" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) =>
|
|
64
|
-
Around: (stage: "finalize" | "parseInput" | "lookupPending" | "validateContent" | "buildResult" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) =>
|
|
62
|
+
Stage: (stage: "finalize" | "parseInput" | "lookupPending" | "validateContent" | "buildResult" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
|
|
63
|
+
Will: (stage: "finalize" | "parseInput" | "lookupPending" | "validateContent" | "buildResult" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
|
|
64
|
+
Did: (stage: "finalize" | "parseInput" | "lookupPending" | "validateContent" | "buildResult" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
|
|
65
|
+
Around: (stage: "finalize" | "parseInput" | "lookupPending" | "validateContent" | "buildResult" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").AroundFlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
|
|
66
|
+
Finally: (stage: "finalize" | "parseInput" | "lookupPending" | "validateContent" | "buildResult" | "publishResult", opts?: import("../../common").HookOptions<import("@frontmcp/sdk").ElicitationResultFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("@frontmcp/sdk").ElicitationResultFlow>>;
|
|
65
67
|
};
|
|
66
68
|
//# sourceMappingURL=elicitation.hooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elicitation.hooks.d.ts","sourceRoot":"","sources":["../../../src/elicitation/hooks/elicitation.hooks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"elicitation.hooks.d.ts","sourceRoot":"","sources":["../../../src/elicitation/hooks/elicitation.hooks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,sBAAsB;;;;;;CAA4D,CAAC;AAEhG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,qBAAqB;;;;;;CAA0D,CAAC"}
|
package/elicitation/index.d.ts
CHANGED
|
@@ -15,4 +15,5 @@ export * from './elicitation.types';
|
|
|
15
15
|
export { ELICITATION_FALLBACK_JSON_SCHEMA, type ElicitationFallbackResponse } from './elicitation-fallback.schema';
|
|
16
16
|
export * from './store';
|
|
17
17
|
export * from './helpers';
|
|
18
|
+
export * from './questions';
|
|
18
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/elicitation/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,cAAc,qBAAqB,CAAC;AAGpC,OAAO,EAAE,gCAAgC,EAAE,KAAK,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAGnH,cAAc,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/elicitation/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,cAAc,qBAAqB,CAAC;AAGpC,OAAO,EAAE,gCAAgC,EAAE,KAAK,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAGnH,cAAc,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC;AAG1B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type ZodType } from '@frontmcp/lazy-zod';
|
|
2
|
+
import { type ElicitOptions, type ElicitResult, type PersistOptions } from '../elicitation.types';
|
|
3
|
+
import { type ElicitHelperDeps } from '../helpers/elicit.helper';
|
|
4
|
+
import { type QuestionStore } from './question.store';
|
|
5
|
+
export interface PersistentAskDeps {
|
|
6
|
+
store: QuestionStore;
|
|
7
|
+
subject: string;
|
|
8
|
+
/** Aborted when the call stops: the question stays for the next call. */
|
|
9
|
+
signal?: AbortSignal;
|
|
10
|
+
}
|
|
11
|
+
export interface PersistentAskOptions {
|
|
12
|
+
key: string;
|
|
13
|
+
/** How long the question, and an answer nobody took yet, are kept. */
|
|
14
|
+
ttlMs: number;
|
|
15
|
+
/** How long this call waits for the answer. */
|
|
16
|
+
waitMs: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Ask a question that outlives this call: kept for `subject` under `key`, answered in the inbox. Resolves with the
|
|
20
|
+
* answer once: at once when one is waiting, or when it arrives while this call waits. Rejects with
|
|
21
|
+
* `QuestionPendingError` when the call stops waiting (timer or abort), and `QuestionSupersededError` when a newer call
|
|
22
|
+
* of the subject asks the question; either way the question, and its answer, stay for the next call.
|
|
23
|
+
*/
|
|
24
|
+
export declare function askPersistentQuestion<S extends ZodType>(deps: PersistentAskDeps, message: string, schema: S, options: PersistentAskOptions): Promise<ElicitResult<S extends ZodType<infer O> ? O : unknown>>;
|
|
25
|
+
/** `this.elicit(message, schema, { persist })`: checks the call, then asks for the caller the request names. */
|
|
26
|
+
export declare function elicitPersistent<S extends ZodType>(deps: Pick<ElicitHelperDeps, 'questions' | 'signal' | 'tryGetContext'>, message: string, requestedSchema: S, options: ElicitOptions & {
|
|
27
|
+
persist: PersistOptions;
|
|
28
|
+
}): Promise<ElicitResult<S extends ZodType<infer O> ? O : unknown>>;
|
|
29
|
+
//# sourceMappingURL=ask-question.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ask-question.d.ts","sourceRoot":"","sources":["../../../src/elicitation/questions/ask-question.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAIhF,OAAO,EAAsB,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtH,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAGjE,OAAO,EAA+D,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMnH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAQD,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,sEAAsE;IACtE,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC;CAChB;AAeD;;;;;GAKG;AACH,wBAAsB,qBAAqB,CAAC,CAAC,SAAS,OAAO,EAC3D,IAAI,EAAE,iBAAiB,EACvB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAyFjE;AAED,gHAAgH;AAChH,wBAAsB,gBAAgB,CAAC,CAAC,SAAS,OAAO,EACtD,IAAI,EAAE,IAAI,CAAC,gBAAgB,EAAE,WAAW,GAAG,QAAQ,GAAG,eAAe,CAAC,EACtE,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,CAAC,EAClB,OAAO,EAAE,aAAa,GAAG;IAAE,OAAO,EAAE,cAAc,CAAA;CAAE,GACnD,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CA+BjE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { printQuestionInboxLink, questionInboxRoutes, QUESTION_INBOX_PATH, QUESTIONS_PATH, } from './question-inbox.routes';
|
|
2
|
+
export { questionSubjectOf } from './question-subject';
|
|
3
|
+
export { createQuestionStore, resolveQuestionStorage, type QuestionStorageSources, type QuestionStoreFactoryOptions, type QuestionStoreResult, } from './question-store.factory';
|
|
4
|
+
export { QuestionStore, QUESTIONS_TOPIC, type AskOutcome, type PersistentQuestion, type QuestionOutcome, type QuestionRequest, type QuestionStoreOptions, } from './question.store';
|
|
5
|
+
export { DEFAULT_QUESTION_TTL_MS, type PersistentQuestions } from './question-scope.helper';
|
|
6
|
+
export { InvalidQuestionStoreError, QuestionAlreadyAnsweredError, QuestionNotFoundError, QuestionPendingError, QuestionStoreBusyError, QuestionSupersededError, } from './question.errors';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/elicitation/questions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,GACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,GACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,EACb,eAAe,EACf,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EACL,yBAAyB,EACzB,4BAA4B,EAC5B,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ExecutionContextBase, type HttpRouteType } from '../../common';
|
|
2
|
+
import { type QuestionStore } from './question.store';
|
|
3
|
+
export declare const QUESTION_INBOX_PATH = "/_frontmcp/inbox";
|
|
4
|
+
export declare const QUESTIONS_PATH = "/_frontmcp/questions";
|
|
5
|
+
/**
|
|
6
|
+
* Print a one-time sign-in link to the question inbox of the caller of `context` (a tool, an agent) on the server's
|
|
7
|
+
* stderr, where the person at the machine reads it, as they read the startup token. The person who opens it, in a
|
|
8
|
+
* browser or with `frontmcp inbox`, sees and answers that caller's questions, and no one else's. The caller gets only
|
|
9
|
+
* the link's expiry. By default (`elicitation.persistent.inboxLinks: 'terminal'`) the link is printed only while stderr
|
|
10
|
+
* is a terminal: stderr that goes to a log, an MCP client or an agent would let its reader answer the questions.
|
|
11
|
+
*/
|
|
12
|
+
export declare function printQuestionInboxLink(context: ExecutionContextBase): {
|
|
13
|
+
expiresAt: number;
|
|
14
|
+
};
|
|
15
|
+
/** The inbox routes of a scope's persistent questions: subject routes, which show a person their subject's questions. */
|
|
16
|
+
export declare function questionInboxRoutes(store: QuestionStore): HttpRouteType[];
|
|
17
|
+
//# sourceMappingURL=question-inbox.routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"question-inbox.routes.d.ts","sourceRoot":"","sources":["../../../src/elicitation/questions/question-inbox.routes.ts"],"names":[],"mappings":"AAIA,OAAO,EAKL,KAAK,oBAAoB,EAEzB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AAItB,OAAO,EAA4C,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEhG,eAAO,MAAM,mBAAmB,qBAAqB,CAAC;AACtD,eAAO,MAAM,cAAc,yBAAyB,CAAC;AAiCrD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,oBAAoB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CA4B3F;AAED,yHAAyH;AACzH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,EAAE,CAqDzE"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type SqliteAdapterOptions } from '@frontmcp/utils';
|
|
2
|
+
import { type FrontMcpLogger } from '../../common';
|
|
3
|
+
import { type InboxLinks, type PersistentQuestionsOptionsInterface, type PersistentQuestionsStorage } from '../../common/types/options/elicitation';
|
|
4
|
+
import { type QuestionStoreResult } from './question-store.factory';
|
|
5
|
+
import { type QuestionStore } from './question.store';
|
|
6
|
+
/** @default 24 hours */
|
|
7
|
+
export declare const DEFAULT_QUESTION_TTL_MS = 86400000;
|
|
8
|
+
/** `elicitation.persistent`, checked: `true` is the defaults; a mistake fails the boot. */
|
|
9
|
+
export declare function parsePersistentQuestionsOptions(persistent: unknown): PersistentQuestionsOptionsInterface;
|
|
10
|
+
/** `elicitation.persistent`, checked for where the server runs: a mistake, or an edge runtime, fails the boot. */
|
|
11
|
+
export declare function persistentQuestionsSettings(persistent: unknown, onEdgeRuntime: boolean): PersistentQuestionsOptionsInterface;
|
|
12
|
+
/**
|
|
13
|
+
* The option whose Redis or SQLite the questions would open, as `resolveQuestionStorage` picks it, or their default
|
|
14
|
+
* SQLite file: a browser opens none of them.
|
|
15
|
+
*/
|
|
16
|
+
export declare function questionsServerStore(storage: PersistentQuestionsStorage | undefined, server: {
|
|
17
|
+
redis?: unknown;
|
|
18
|
+
sqlite?: unknown;
|
|
19
|
+
elicitation?: {
|
|
20
|
+
redis?: unknown;
|
|
21
|
+
};
|
|
22
|
+
}): string | undefined;
|
|
23
|
+
/** A scope's persistent questions: the store, a question's default TTL, and where inbox links go. */
|
|
24
|
+
export interface PersistentQuestions {
|
|
25
|
+
store: QuestionStore;
|
|
26
|
+
ttlMs: number;
|
|
27
|
+
type: QuestionStoreResult['type'];
|
|
28
|
+
inboxLinks: InboxLinks;
|
|
29
|
+
}
|
|
30
|
+
/** Open the store `elicitation.persistent` asks for, keyed apart from other servers on it; undefined while it is off. */
|
|
31
|
+
export declare function openPersistentQuestions(options: {
|
|
32
|
+
persistent: unknown;
|
|
33
|
+
/** `info.name`: servers of another name that share the storage do not share its questions. */
|
|
34
|
+
serverName?: string;
|
|
35
|
+
redis?: unknown;
|
|
36
|
+
sqlite?: SqliteAdapterOptions;
|
|
37
|
+
/** Whether the server runs on an edge runtime, where no store of a question runs. */
|
|
38
|
+
onEdgeRuntime?: boolean;
|
|
39
|
+
logger: FrontMcpLogger;
|
|
40
|
+
}): Promise<PersistentQuestions | undefined>;
|
|
41
|
+
//# sourceMappingURL=question-scope.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"question-scope.helper.d.ts","sourceRoot":"","sources":["../../../src/elicitation/questions/question-scope.helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,mCAAmC,EACxC,KAAK,0BAA0B,EAChC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAA+C,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEjH,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,wBAAwB;AACxB,eAAO,MAAM,uBAAuB,WAAa,CAAC;AA4BlD,2FAA2F;AAC3F,wBAAgB,+BAA+B,CAAC,UAAU,EAAE,OAAO,GAAG,mCAAmC,CAMxG;AAWD,kHAAkH;AAClH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,OAAO,EACnB,aAAa,EAAE,OAAO,GACrB,mCAAmC,CAIrC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,0BAA0B,GAAG,SAAS,EAC/C,MAAM,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,CAAA;CAAE,GAC/E,MAAM,GAAG,SAAS,CAMpB;AAED,qGAAqG;AACrG,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAClC,UAAU,EAAE,UAAU,CAAC;CACxB;AAED,yHAAyH;AACzH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE;IACrD,UAAU,EAAE,OAAO,CAAC;IACpB,8FAA8F;IAC9F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,qFAAqF;IACrF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAkB3C"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type RootStorage, type SqliteAdapterOptions } from '@frontmcp/utils';
|
|
2
|
+
import { type FrontMcpLogger } from '../../common';
|
|
3
|
+
import { type PersistentQuestionsStorage } from '../../common/types/options/elicitation';
|
|
4
|
+
import { QuestionStore } from './question.store';
|
|
5
|
+
export interface QuestionStoreFactoryOptions {
|
|
6
|
+
storage: PersistentQuestionsStorage;
|
|
7
|
+
/** @default 'mcp:questions:' */
|
|
8
|
+
keyPrefix?: string;
|
|
9
|
+
/** `'auto'` (the default) encrypts when a secret is given or `MCP_ELICITATION_SECRET` (or a fallback) is set. */
|
|
10
|
+
encryption?: {
|
|
11
|
+
enabled?: boolean | 'auto';
|
|
12
|
+
secret?: string;
|
|
13
|
+
};
|
|
14
|
+
/** How often a SQLite store checks for another process's write, in milliseconds. */
|
|
15
|
+
pollIntervalMs?: number;
|
|
16
|
+
/** Changes within this window wake the waiting calls and the inbox once, in milliseconds. */
|
|
17
|
+
coalesceMs?: number;
|
|
18
|
+
logger?: FrontMcpLogger;
|
|
19
|
+
}
|
|
20
|
+
export interface QuestionStoreResult {
|
|
21
|
+
store: QuestionStore;
|
|
22
|
+
type: PersistentQuestionsStorage['type'];
|
|
23
|
+
encrypted: boolean;
|
|
24
|
+
/** The storage the store owns, for inspection. */
|
|
25
|
+
storage: RootStorage;
|
|
26
|
+
}
|
|
27
|
+
/** Open a question store through the storage factory, with its change feed; an unusable backend fails, never falls back. */
|
|
28
|
+
export declare function createQuestionStore(options: QuestionStoreFactoryOptions): Promise<QuestionStoreResult>;
|
|
29
|
+
export interface QuestionStorageSources {
|
|
30
|
+
/** `elicitation.persistent.storage`. */
|
|
31
|
+
storage?: PersistentQuestionsStorage;
|
|
32
|
+
/** `elicitation.redis`, else the server's `redis`. */
|
|
33
|
+
redis?: unknown;
|
|
34
|
+
/** The server's `sqlite`, with its path resolved. */
|
|
35
|
+
sqlite?: SqliteAdapterOptions;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Where questions are kept: `elicitation.persistent.storage`, else the server's Redis, else its SQLite file, else
|
|
39
|
+
* `questions.sqlite` in `$FRONTMCP_HOME` (`~/.frontmcp`), made owner-only, and refused when another user could read
|
|
40
|
+
* or replace it. Serverless and edge runtimes have no default: a question there must outlive the instance, so they
|
|
41
|
+
* need a store that is named.
|
|
42
|
+
*/
|
|
43
|
+
export declare function resolveQuestionStorage(sources: QuestionStorageSources): Promise<PersistentQuestionsStorage>;
|
|
44
|
+
//# sourceMappingURL=question-store.factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"question-store.factory.d.ts","sourceRoot":"","sources":["../../../src/elicitation/questions/question-store.factory.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,oBAAoB,EAC1B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAuC,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AACxF,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AAIzF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMjD,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,0BAA0B,CAAC;IACpC,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iHAAiH;IACjH,UAAU,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7D,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6FAA6F;IAC7F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,0BAA0B,CAAC,MAAM,CAAC,CAAC;IACzC,SAAS,EAAE,OAAO,CAAC;IACnB,kDAAkD;IAClD,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,4HAA4H;AAC5H,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAuB5G;AAED,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,OAAO,CAAC,EAAE,0BAA0B,CAAC;IACrC,sDAAsD;IACtD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,qDAAqD;IACrD,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B;AAED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAsBjH"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type AuthInfo } from '@frontmcp/protocol';
|
|
2
|
+
/**
|
|
3
|
+
* Who a persistent question belongs to: `principal:<iss>#<sub>` for a signed-in caller (`principal:<sub>` when its token
|
|
4
|
+
* names no issuer), so a later session of the same user gets the answer and a user of another issuer does not, else
|
|
5
|
+
* `session:<id>` for the session the server verified, else nobody (undefined).
|
|
6
|
+
*/
|
|
7
|
+
export declare function questionSubjectOf(authInfo: Partial<AuthInfo> | undefined): string | undefined;
|
|
8
|
+
//# sourceMappingURL=question-subject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"question-subject.d.ts","sourceRoot":"","sources":["../../../src/elicitation/questions/question-subject.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAKnD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAM7F"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { InternalMcpError, PublicMcpError } from '../../errors/mcp.error';
|
|
2
|
+
/** A persistent question has no answer yet: it stays in the inbox, and the next call that asks it gets the answer. */
|
|
3
|
+
export declare class QuestionPendingError extends PublicMcpError {
|
|
4
|
+
readonly key: string;
|
|
5
|
+
readonly expiresAt: number;
|
|
6
|
+
constructor(key: string, expiresAt: number);
|
|
7
|
+
}
|
|
8
|
+
/** A newer call of the same caller asked the question, and waits for its answer instead of this one. */
|
|
9
|
+
export declare class QuestionSupersededError extends PublicMcpError {
|
|
10
|
+
readonly key: string;
|
|
11
|
+
constructor(key: string);
|
|
12
|
+
}
|
|
13
|
+
/** No question with this id is waiting for the person answering: it never was, it expired, or it is another's. */
|
|
14
|
+
export declare class QuestionNotFoundError extends PublicMcpError {
|
|
15
|
+
readonly mcpErrorCode: -32002;
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
18
|
+
/** The question was answered already: its first answer is the one its call gets. */
|
|
19
|
+
export declare class QuestionAlreadyAnsweredError extends PublicMcpError {
|
|
20
|
+
constructor();
|
|
21
|
+
}
|
|
22
|
+
/** Other writers kept changing a question while this call tried to change it. */
|
|
23
|
+
export declare class QuestionStoreBusyError extends InternalMcpError {
|
|
24
|
+
constructor();
|
|
25
|
+
}
|
|
26
|
+
/** Thrown at boot for an `elicitation.persistent` store the server cannot open or use. */
|
|
27
|
+
export declare class InvalidQuestionStoreError extends InternalMcpError {
|
|
28
|
+
constructor(reason: string);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=question.errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"question.errors.d.ts","sourceRoot":"","sources":["../../../src/elicitation/questions/question.errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAmB,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE3F,sHAAsH;AACtH,qBAAa,oBAAqB,SAAQ,cAAc;IACtD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;gBAEf,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;CAU3C;AAED,wGAAwG;AACxG,qBAAa,uBAAwB,SAAQ,cAAc;IACzD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;gBAET,GAAG,EAAE,MAAM;CAIxB;AAED,kHAAkH;AAClH,qBAAa,qBAAsB,SAAQ,cAAc;IACvD,QAAQ,CAAC,YAAY,SAAsC;;CAK5D;AAED,oFAAoF;AACpF,qBAAa,4BAA6B,SAAQ,cAAc;;CAI/D;AAED,iFAAiF;AACjF,qBAAa,sBAAuB,SAAQ,gBAAgB;;CAI3D;AAED,0FAA0F;AAC1F,qBAAa,yBAA0B,SAAQ,gBAAgB;gBACjD,MAAM,EAAE,MAAM;CAG3B"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { type ChangeFeed, type NamespacedStorage } from '@frontmcp/utils';
|
|
2
|
+
import { type HttpRouteTopicSource } from '../../common/metadata/http-route.metadata';
|
|
3
|
+
import { type ElicitResult } from '../elicitation.types';
|
|
4
|
+
/** The topic a store publishes whenever a question is asked, answered or taken. */
|
|
5
|
+
export declare const QUESTIONS_TOPIC = "questions";
|
|
6
|
+
/** A question as the inbox shows it. */
|
|
7
|
+
export interface PersistentQuestion {
|
|
8
|
+
id: string;
|
|
9
|
+
key: string;
|
|
10
|
+
message: string;
|
|
11
|
+
requestedSchema: Record<string, unknown>;
|
|
12
|
+
createdAt: number;
|
|
13
|
+
expiresAt: number;
|
|
14
|
+
/** Answered, and waiting for the call that takes the answer. */
|
|
15
|
+
answered: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface QuestionRequest {
|
|
18
|
+
/** Who was asked: `principal:<sub>` or `session:<id>`. */
|
|
19
|
+
subject: string;
|
|
20
|
+
key: string;
|
|
21
|
+
message: string;
|
|
22
|
+
requestedSchema: Record<string, unknown>;
|
|
23
|
+
ttlMs: number;
|
|
24
|
+
/** The call that waits for the answer; the newest call to ask a question is the one that gets it. */
|
|
25
|
+
waiter: string;
|
|
26
|
+
}
|
|
27
|
+
export type QuestionOutcome = {
|
|
28
|
+
kind: 'answered';
|
|
29
|
+
answer: ElicitResult;
|
|
30
|
+
expiresAt: number;
|
|
31
|
+
} | {
|
|
32
|
+
kind: 'waiting';
|
|
33
|
+
question: PersistentQuestion;
|
|
34
|
+
} | {
|
|
35
|
+
kind: 'superseded';
|
|
36
|
+
};
|
|
37
|
+
/** What asking gives: the answer, taken now, or the question this call now waits on. */
|
|
38
|
+
export type AskOutcome = Exclude<QuestionOutcome, {
|
|
39
|
+
kind: 'superseded';
|
|
40
|
+
}>;
|
|
41
|
+
export interface QuestionStoreOptions {
|
|
42
|
+
/** Owned by the store: it is disconnected on `close()`. */
|
|
43
|
+
storage: NamespacedStorage;
|
|
44
|
+
feed: ChangeFeed;
|
|
45
|
+
/** Encrypts each record with a key derived from it and the record's subject, and keys records by HMACs. */
|
|
46
|
+
secret?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Persistent questions, kept per subject in a storage with atomic compare-and-set: one record per subject and key,
|
|
50
|
+
* whose answer the newest call waiting on it takes, once.
|
|
51
|
+
*/
|
|
52
|
+
export declare class QuestionStore implements HttpRouteTopicSource {
|
|
53
|
+
private readonly options;
|
|
54
|
+
constructor(options: QuestionStoreOptions);
|
|
55
|
+
get encrypted(): boolean;
|
|
56
|
+
/** Ask a question: its answer when it was answered (taken now), else the question, now waited on by `waiter`. */
|
|
57
|
+
ask(request: QuestionRequest): Promise<AskOutcome>;
|
|
58
|
+
/** The answer for `waiter`, taken once; `superseded` when the question is gone or a newer call waits on it. */
|
|
59
|
+
take(subject: string, key: string, waiter: string): Promise<QuestionOutcome>;
|
|
60
|
+
/**
|
|
61
|
+
* Put back an answer a call took but could not hand on, so the next call that asks gets it. `expiresAt`, the expiry of
|
|
62
|
+
* the question it was taken from, is kept: an answer put back never outlives its question, and one past it is dropped.
|
|
63
|
+
*/
|
|
64
|
+
restore(request: QuestionRequest, answer: ElicitResult, expiresAt?: number): Promise<void>;
|
|
65
|
+
/** The questions asked of `subject`, oldest first. */
|
|
66
|
+
list(subject: string): Promise<PersistentQuestion[]>;
|
|
67
|
+
/**
|
|
68
|
+
* Answer a question of `subject`. Another subject's question is "not found", like one that never was; an `accept`
|
|
69
|
+
* must match the question's schema; only the first answer is kept.
|
|
70
|
+
*/
|
|
71
|
+
answer(subject: string, id: string, answer: ElicitResult): Promise<void>;
|
|
72
|
+
/** Call `listener` when a question is asked, answered or taken, here or in another process on the storage. */
|
|
73
|
+
subscribe(topic: string, listener: () => void): () => void;
|
|
74
|
+
close(): Promise<void>;
|
|
75
|
+
private create;
|
|
76
|
+
private claim;
|
|
77
|
+
private replace;
|
|
78
|
+
private read;
|
|
79
|
+
private records;
|
|
80
|
+
/** The record, unless it cannot be read, belongs at another key, or has expired: such a record is deleted. */
|
|
81
|
+
private live;
|
|
82
|
+
private encode;
|
|
83
|
+
private decode;
|
|
84
|
+
private recordKey;
|
|
85
|
+
/** A storage key part that names `value` without showing it: an HMAC with the secret, else a SHA-256. */
|
|
86
|
+
private digest;
|
|
87
|
+
private changed;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=question.store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"question.store.d.ts","sourceRoot":"","sources":["../../../src/elicitation/questions/question.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACvB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEtF,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKzD,mFAAmF;AACnF,eAAO,MAAM,eAAe,cAAc,CAAC;AAO3C,wCAAwC;AACxC,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,0DAA0D;IAC1D,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,qGAAqG;IACrG,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,YAAY,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAC7D;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,kBAAkB,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC;AAE3B,wFAAwF;AACxF,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,eAAe,EAAE;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC,CAAC;AAoB1E,MAAM,WAAW,oBAAoB;IACnC,2DAA2D;IAC3D,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE,UAAU,CAAC;IACjB,2GAA2G;IAC3G,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAeD;;;GAGG;AACH,qBAAa,aAAc,YAAW,oBAAoB;IAC5C,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,oBAAoB;IAE1D,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,iHAAiH;IAC3G,GAAG,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC;IAuBxD,+GAA+G;IACzG,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAclF;;;OAGG;IACG,OAAO,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAehG,sDAAsD;IAChD,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAK1D;;;OAGG;IACG,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAkB9E,8GAA8G;IAC9G,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAIpD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YAKd,MAAM;YA6BN,KAAK;YAML,OAAO;YASP,IAAI;YAKJ,OAAO;IAcrB,8GAA8G;YAChG,IAAI;YAYJ,MAAM;YAKN,MAAM;IAapB,OAAO,CAAC,SAAS;IAIjB,yGAAyG;IACzG,OAAO,CAAC,MAAM;YAQA,OAAO;CAOtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elicitation-store.factory.d.ts","sourceRoot":"","sources":["../../../src/elicitation/store/elicitation-store.factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAA8C,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEnH,OAAO,
|
|
1
|
+
{"version":3,"file":"elicitation-store.factory.d.ts","sourceRoot":"","sources":["../../../src/elicitation/store/elicitation-store.factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAA8C,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEnH,OAAO,EAAsB,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIxH,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAI5D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB;;;;OAIG;IACH,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAE1B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAE5B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CAAC,EAAE;QACX;;;;;;WAMG;QACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QAE3B;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,EAAE,gBAAgB,CAAC;IAExB;;OAEG;IACH,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IAEzD;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;CACpB;AA4BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAsB,sBAAsB,CAAC,OAAO,GAAE,uBAA4B,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAsJnH;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC1C,OAAO,GAAE;IACP,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,UAAU,CAAC,EAAE;QACX,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACE,GACL,sBAAsB,CAwBxB;AAED;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE;IACP,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE;QACX,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACE,GACL,sBAAsB,CAsCxB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,4BAA4B,CAC1C,YAAY,EAAE,kBAAkB,EAChC,YAAY,GAAE;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC;CACpB,GACL,gBAAgB,CAgBlB"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Supports MCP elicit flow for clients that support it.
|
|
13
13
|
*/
|
|
14
|
-
import { z } from '@frontmcp/lazy-zod';
|
|
14
|
+
import { internalZ as z } from '@frontmcp/lazy-zod';
|
|
15
15
|
import { PublicMcpError } from './mcp.error';
|
|
16
16
|
/**
|
|
17
17
|
* Session mode determines how authorization state is stored
|