@frontmcp/sdk 1.10.16 → 1.11.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent/agent.instance.d.ts.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 +2 -1
- package/agent/flows/call-agent.flow.d.ts.map +1 -1
- package/agent/hooks/agent.hooks.d.ts +4 -4
- 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 +13 -2
- 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 +12 -8
- package/browser/common/decorators/hook.decorator.mjs +10 -0
- package/browser/common/decorators/http-route.decorator.mjs +46 -0
- package/browser/common/decorators/index.mjs +2 -0
- package/browser/common/decorators/job.decorator.mjs +7 -0
- 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 +1 -1
- 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 +2 -0
- package/browser/common/interfaces/http-route.interface.mjs +20 -0
- package/browser/common/interfaces/index.mjs +3 -1
- 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 +20 -2
- 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 +1 -1
- 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 +8 -3
- 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 +1 -1
- 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/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 +71 -3
- 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/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 +62 -7
- package/browser/flows/flow.registry.mjs +1 -1
- package/browser/flows/flow.stages.mjs +17 -3
- package/browser/front-mcp/detached-job.flag.mjs +26 -0
- package/browser/front-mcp/front-mcp.mjs +142 -55
- package/browser/front-mcp/manifest-mode.flag.mjs +12 -0
- package/browser/front-mcp/shutdown-signals.mjs +22 -2
- package/browser/front-mcp/static-startup.check.mjs +1 -1
- package/browser/front-mcp/stdio-console.mjs +28 -0
- package/browser/hooks/hook-observers.mjs +87 -0
- package/browser/hooks/hook-order.mjs +155 -0
- package/browser/hooks/hook.registry.mjs +32 -1
- 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 +49761 -41211
- 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 +66 -8
- 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 +28 -1
- 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/store.provider.mjs +28 -0
- package/browser/remote-mcp/mcp-client.service.mjs +9 -8
- package/browser/resource/flows/read-resource.flow.mjs +62 -6
- 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 +154 -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 +150 -55
- package/browser/server/security/replaceable-directory.mjs +16 -0
- package/browser/server/security/same-origin.mjs +35 -0
- 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/skill-instructions.helper.mjs +7 -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 +162 -16
- package/browser/tool/flows/tools-list.flow.mjs +28 -8
- package/browser/tool/tool.instance.mjs +1 -1
- package/browser/tool/tool.registry.mjs +25 -1
- package/browser/tool/tool.utils.mjs +2 -2
- 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.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/resource.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/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 +2 -0
- 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/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.map +1 -1
- package/common/metadata/app.metadata.d.ts +75 -4
- 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 +2459 -129
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/hook.metadata.d.ts +40 -1
- 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 +39 -1
- package/common/metadata/output-policy.d.ts.map +1 -1
- package/common/metadata/plugin.metadata.d.ts +1 -1
- package/common/metadata/prompt.metadata.d.ts +8 -0
- package/common/metadata/prompt.metadata.d.ts.map +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 +26 -10
- package/common/metadata/tool.metadata.d.ts.map +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 +2 -2
- 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 +16 -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 +29 -0
- 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/schema.d.ts +5 -5
- 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/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 +12 -4
- 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/esm/index.mjs +179 -36
- 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 +9 -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 +5 -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 +25 -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 +15 -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/hook-observers.d.ts +57 -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 +2 -0
- 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 +108 -75
- package/index.d.ts.map +1 -1
- package/index.js +179 -36
- 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 +21 -4
- 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 +9 -2
- 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/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 +12 -3
- 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 +85 -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.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/same-origin.d.ts +12 -0
- package/server/security/same-origin.d.ts.map +1 -0
- package/server/security/unix-socket-guard.d.ts.map +1 -1
- 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/skill-instructions.helper.d.ts +2 -0
- package/skill/skill-instructions.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 +41 -3
- 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.registry.d.ts +4 -0
- package/tool/tool.registry.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 +5 -5
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{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a,EAAE,GAAG,EAAE,cAAc,GAAG,YAAY,CAAC,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,GAAG,CAAC;IAqCtG;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;IA6B1B;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,aAAa;IA0BrB,0GAA0G;IAC1G,OAAO,CAAC,mBAAmB;IAS3B,sFAAsF;IACtF,OAAO,CAAC,cAAc;IAKtB,kHAAkH;IAClH,OAAO,CAAC,iBAAiB;IAUzB;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,kBAAkB;IAkD1B;;;OAGG;YACW,eAAe;IA8B7B,2GAA2G;IAC3G,OAAO,CAAC,mBAAmB;IAI3B;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB;IA0B1B;;;OAGG;YACW,oBAAoB;IAgClC;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,iBAAiB;IAmChB,UAAU,CAAC,KAAK,EAAE,eAAe,CAAC,QAAQ,CAAC,GAAG,aAAa;IAK3D,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,GAAG,iBAAiB;IAKjE,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,GAAG,mBAAmB,CAAC,iBAAiB,CAAC;IAQnG;;;;;OAKG;IACM,iBAAiB,IAAI,IAAI;IA+BlC;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAanB,gBAAgB,IAAI,OAAO;IAI3B,WAAW,IAAI,OAAO;IAItB,kBAAkB,IAAI,MAAM,EAAE;CAGxC"}
|
package/agent/agent.scope.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { type Token, type Type } from '@frontmcp/di';
|
|
|
3
3
|
import type { GuardManager } from '@frontmcp/guard';
|
|
4
4
|
import AdapterRegistry from '../adapter/adapter.registry';
|
|
5
5
|
import { FrontMcpLogger, ScopeEntry, type AgentMetadata, type FlowInputOf, type FlowName, type FlowOutputOf, type FlowType, type FrontMcpAuth } from '../common';
|
|
6
|
+
import type { PersistentQuestions } from '../elicitation/questions/question-scope.helper';
|
|
6
7
|
import HookRegistry from '../hooks/hook.registry';
|
|
7
8
|
import PluginRegistry from '../plugin/plugin.registry';
|
|
8
9
|
import PromptRegistry from '../prompt/prompt.registry';
|
|
@@ -108,6 +109,8 @@ export declare class AgentScope {
|
|
|
108
109
|
* limits.
|
|
109
110
|
*/
|
|
110
111
|
get rateLimitManager(): GuardManager | undefined;
|
|
112
|
+
/** The server's persistent questions: an agent's tools ask for the same callers. */
|
|
113
|
+
get persistentQuestions(): PersistentQuestions | undefined;
|
|
111
114
|
/** See {@link ScopeEntry.publicAccessGuard}. */
|
|
112
115
|
get publicAccessGuard(): GuardManager | undefined;
|
|
113
116
|
registryFlows(...flows: FlowType[]): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.scope.d.ts","sourceRoot":"","sources":["../../src/agent/agent.scope.ts"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAiB,KAAK,KAAK,EAAE,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EACL,cAAc,EACd,UAAU,EACV,KAAK,aAAa,EAElB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,YAAY,EAClB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"agent.scope.d.ts","sourceRoot":"","sources":["../../src/agent/agent.scope.ts"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAiB,KAAK,KAAK,EAAE,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK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,CAE/C;IAED,oFAAoF;IACpF,IAAI,mBAAmB,IAAI,mBAAmB,GAAG,SAAS,CAEzD;IAED,gDAAgD;IAChD,IAAI,iBAAiB,IAAI,YAAY,GAAG,SAAS,CAEhD;IAMK,aAAa,CAAC,GAAG,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD,OAAO,CAAC,IAAI,SAAS,QAAQ,EAC3B,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,EACxB,IAAI,CAAC,EAAE,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,GACtB,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IAIpC,gBAAgB,CAAC,IAAI,SAAS,QAAQ,EAC1C,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,EACxB,IAAI,CAAC,EAAE,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,GACtB,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;CAO/B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from '@frontmcp/lazy-zod';
|
|
1
|
+
import { internalZ as z } from '@frontmcp/lazy-zod';
|
|
2
2
|
import { type AuthInfo } from '@frontmcp/protocol';
|
|
3
3
|
import { AgentContext, AgentEntry, FlowBase, type FlowRunOptions, type ScopeEntry, type Token } from '../../common';
|
|
4
4
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
@@ -242,6 +242,7 @@ declare const stateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
|
242
242
|
}, import("zod/v4/core").$strip>>;
|
|
243
243
|
semaphoreTicket: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodAny>;
|
|
244
244
|
abandonedExecution: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodInstanceOf<Promise<unknown>>>;
|
|
245
|
+
executionAbort: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodInstanceOf<AbortController>>;
|
|
245
246
|
executionStartedAt: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
246
247
|
executionError: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodAny>;
|
|
247
248
|
parsedOutput: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodAny>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-agent.flow.d.ts","sourceRoot":"","sources":["../../../src/agent/flows/call-agent.flow.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"call-agent.flow.d.ts","sourceRoot":"","sources":["../../../src/agent/flows/call-agent.flow.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,IAAI,CAAC,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAA+C,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAGhG,OAAO,EAEL,YAAY,EACZ,UAAU,EAGV,QAAQ,EAKR,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,KAAK,EACX,MAAM,cAAc,CAAC;AAsBtB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;gCAWf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAuB,CAAC;AAE1C,QAAA,MAAM,WAAW;;;;;cAKiB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAsCnD,CAAC;AAMH,QAAA,MAAM,IAAI;;;;CAa2B,CAAC;AAMtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,mBAAmB,EAAE,cAAc,CACjC,aAAa,EACb,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAOD,QAAA,MAAM,IAAI,EAAG,mBAA4B,CAAC;AAE1C,gHAAgH;AAChH,eAAO,MAAM,mBAAmB,6DAAgF,CAAC;AA0BjH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAC9D,mGAAmG;WACnF,qBAAqB,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,GAAG,KAAK,GAAG,SAAS;IAM9F,MAAM,wCAA2C;IAEjD,kFAAkF;IAClF,OAAO,KAAK,eAAe,GAE1B;IAED;;OAEG;IAEG,UAAU;IAmDhB;;OAEG;IAEG,SAAS;IA8Bf;;;OAGG;IAEG,cAAc;IAYpB;;;;OAIG;IAEG,qBAAqB;IAwD3B;;OAEG;IAEG,uBAAuB;IAuC7B;;OAEG;IAEG,kBAAkB;IAoDxB;;OAEG;IAEG,YAAY;IAgClB;;OAEG;IAEG,gBAAgB;IAwBtB;;OAEG;IAEG,aAAa;IAsBnB;;OAEG;IAEG,OAAO;IA4Db;;OAEG;IAEG,cAAc;IAcpB;;OAEG;IAEG,gBAAgB;IAqBtB;;OAEG;IAEG,YAAY;IAOlB;;;;OAIG;IACH;;;OAGG;IAEG,WAAW;IASX,cAAc;IAwBpB;;;;;;;;;OASG;IAEG,QAAQ;CAoEf"}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
* }
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare const Will: (stage: "execute" | "finalize" | "parseInput" | "
|
|
32
|
+
declare const Will: (stage: "execute" | "finalize" | "parseInput" | "validateInput" | "validateOutput" | "parseOutput" | "checkEntryAuthorities" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("..").CallAgentFlow>>, Did: (stage: "execute" | "finalize" | "parseInput" | "validateInput" | "validateOutput" | "parseOutput" | "checkEntryAuthorities" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("..").CallAgentFlow>>, Stage: (stage: "execute" | "finalize" | "parseInput" | "validateInput" | "validateOutput" | "parseOutput" | "checkEntryAuthorities" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("..").CallAgentFlow>>;
|
|
33
33
|
/**
|
|
34
34
|
* Agent hook decorators for the call-agent flow.
|
|
35
35
|
*
|
|
@@ -44,9 +44,9 @@ declare const Will: (stage: "execute" | "finalize" | "parseInput" | "checkEntryA
|
|
|
44
44
|
* - Finalize stages: releaseSemaphore, releaseQuota, finalize
|
|
45
45
|
*/
|
|
46
46
|
export declare const AgentHook: {
|
|
47
|
-
Will: (stage: "execute" | "finalize" | "parseInput" | "
|
|
48
|
-
Did: (stage: "execute" | "finalize" | "parseInput" | "
|
|
49
|
-
Stage: (stage: "execute" | "finalize" | "parseInput" | "
|
|
47
|
+
Will: (stage: "execute" | "finalize" | "parseInput" | "validateInput" | "validateOutput" | "parseOutput" | "checkEntryAuthorities" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("..").CallAgentFlow>>;
|
|
48
|
+
Did: (stage: "execute" | "finalize" | "parseInput" | "validateInput" | "validateOutput" | "parseOutput" | "checkEntryAuthorities" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("..").CallAgentFlow>>;
|
|
49
|
+
Stage: (stage: "execute" | "finalize" | "parseInput" | "validateInput" | "validateOutput" | "parseOutput" | "checkEntryAuthorities" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => import("../../common").FlowHookDecorator<import("../../common").FlowHookMethod<import("..").CallAgentFlow>>;
|
|
50
50
|
};
|
|
51
51
|
export { Will as WillAgentStage, Did as DidAgentStage, Stage as OnAgentStage };
|
|
52
52
|
//# sourceMappingURL=agent.hooks.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { CallToolResult, ReadResourceResult } from '@frontmcp/protocol';
|
|
2
|
+
import { type BudgetListPolicy, type OutputBudget } from '../common/metadata/output-policy';
|
|
3
|
+
/** The `_meta` key of the note on what a budget left out of an answer. */
|
|
4
|
+
export declare const BUDGET_META_KEY = "frontmcp/budget";
|
|
5
|
+
/** One part of an answer a budget left out. */
|
|
6
|
+
export interface BudgetOmission {
|
|
7
|
+
/** The resource content it was cut from, for a resource read. */
|
|
8
|
+
uri?: string;
|
|
9
|
+
/** Where, as a JSON path into the answer (`$.items`, `$.pages[0].body`); `$` is the whole text. */
|
|
10
|
+
path: string;
|
|
11
|
+
/** List items left out. */
|
|
12
|
+
items?: number;
|
|
13
|
+
/** The list's length before. */
|
|
14
|
+
of?: number;
|
|
15
|
+
/** Characters left out at the end of a string. */
|
|
16
|
+
chars?: number;
|
|
17
|
+
}
|
|
18
|
+
/** The note `_meta['frontmcp/budget']` carries. */
|
|
19
|
+
export interface BudgetNote {
|
|
20
|
+
maxBytes: number;
|
|
21
|
+
lists: BudgetListPolicy;
|
|
22
|
+
omitted: BudgetOmission[];
|
|
23
|
+
}
|
|
24
|
+
interface Fitted<T> {
|
|
25
|
+
value: T;
|
|
26
|
+
omitted: BudgetOmission[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Fit a JSON value to `maxBytes` of UTF-8 JSON without cutting inside it: whole list items are left
|
|
30
|
+
* out (from the start for `'keep-newest'`, from the end for `'keep-oldest'`), and long strings lose
|
|
31
|
+
* their end, largest values first. A value only numbers, booleans and keys make up stays over.
|
|
32
|
+
*/
|
|
33
|
+
export declare function fitJsonToBudget(value: unknown, maxBytes: number, lists?: BudgetListPolicy): Fitted<unknown>;
|
|
34
|
+
/**
|
|
35
|
+
* A tool answer fitted to its budget, or `undefined` when it already fits. `structuredContent` and
|
|
36
|
+
* each text content are fitted alike, so a text that repeats `structuredContent` still repeats it;
|
|
37
|
+
* images, audio and resources are left alone. The note goes to `_meta` and a last text content.
|
|
38
|
+
*/
|
|
39
|
+
export declare function fitToolAnswer(result: CallToolResult, budget: OutputBudget): CallToolResult | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* A resource read fitted to its budget, or `undefined` when it already fits. Each text content is
|
|
42
|
+
* fitted; HTML (a widget) and blobs are left alone. The note goes to `_meta` and a last text content.
|
|
43
|
+
*/
|
|
44
|
+
export declare function fitResourceAnswer(result: ReadResourceResult, budget: OutputBudget): ReadResourceResult | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Why a fitted `structuredContent` no longer matches the `outputSchema` a client validates it
|
|
47
|
+
* against (a cut below `minItems`, a shortened tuple or pattern), or `undefined` when it matches.
|
|
48
|
+
*/
|
|
49
|
+
export declare function outputSchemaMismatch(outputSchema: Record<string, unknown>, structuredContent: unknown): string | undefined;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=answer-budget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"answer-budget.d.ts","sourceRoot":"","sources":["../../src/answer/answer-budget.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7E,OAAO,EAA6B,KAAK,gBAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEvH,0EAA0E;AAC1E,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC7B,iEAAiE;IACjE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mGAAmG;IACnG,IAAI,EAAE,MAAM,CAAC;IACb,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,mDAAmD;AACnD,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,gBAAgB,CAAC;IACxB,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED,UAAU,MAAM,CAAC,CAAC;IAChB,KAAK,EAAE,CAAC,CAAC;IACT,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B;AAkHD;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,gBAAgC,GACtC,MAAM,CAAC,OAAO,CAAC,CAKjB;AA8CD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,GAAG,cAAc,GAAG,SAAS,CAmCtG;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,YAAY,GAAG,kBAAkB,GAAG,SAAS,CAwBlH;AAkBD;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACrC,iBAAiB,EAAE,OAAO,GACzB,MAAM,GAAG,SAAS,CAOpB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { CallToolResult } from '@frontmcp/protocol';
|
|
2
|
+
import type { MetricsOptionsInterface } from '../common/types/options/metrics';
|
|
3
|
+
/** The `/metrics` counters of what tool answers cost, labelled `tool` and `client`. */
|
|
4
|
+
export declare const ANSWER_COUNTERS: {
|
|
5
|
+
readonly bytes: "frontmcp_tool_answer_bytes_total";
|
|
6
|
+
readonly estimatedTokens: "frontmcp_tool_answer_estimated_tokens_total";
|
|
7
|
+
readonly duplicatedBytes: "frontmcp_tool_answer_duplicated_bytes_total";
|
|
8
|
+
};
|
|
9
|
+
/** What one answer costs. */
|
|
10
|
+
export interface AnswerCost {
|
|
11
|
+
/** UTF-8 bytes of the answer as JSON. */
|
|
12
|
+
bytes: number;
|
|
13
|
+
/** `bytes / 4`, rounded up: a rough average for English text and JSON. */
|
|
14
|
+
estimatedTokens: number;
|
|
15
|
+
/** Bytes of text content that is exactly the JSON of `structuredContent`. */
|
|
16
|
+
duplicatedBytes: number;
|
|
17
|
+
}
|
|
18
|
+
type CounterFactory = (name: string, description?: string) => {
|
|
19
|
+
inc(by?: number, attributes?: Record<string, string>): void;
|
|
20
|
+
};
|
|
21
|
+
/** Whether `/metrics` serves the tool counters: it is on, and `include` leaves the `tools` category in. */
|
|
22
|
+
export declare function meteringEnabled(metrics: Pick<MetricsOptionsInterface, 'enabled' | 'include'> | undefined): boolean;
|
|
23
|
+
export declare function measureAnswer(result: CallToolResult): AnswerCost;
|
|
24
|
+
/** Add an answer's cost to the `/metrics` counters. `client` is a platform name, so the labels stay bounded. */
|
|
25
|
+
export declare function recordAnswerCost(cost: AnswerCost, labels: {
|
|
26
|
+
tool: string;
|
|
27
|
+
client: string;
|
|
28
|
+
}, createCounter?: CounterFactory): void;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=answer-meter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"answer-meter.d.ts","sourceRoot":"","sources":["../../src/answer/answer-meter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAG/E,uFAAuF;AACvF,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAQX,6BAA6B;AAC7B,MAAM,WAAW,UAAU;IACzB,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,eAAe,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,KAAK,cAAc,GAAG,CACpB,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,MAAM,KACjB;IAAE,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAA;CAAE,CAAC;AAIrE,2GAA2G;AAC3G,wBAAgB,eAAe,CAAC,OAAO,EAAE,IAAI,CAAC,uBAAuB,EAAE,SAAS,GAAG,SAAS,CAAC,GAAG,SAAS,GAAG,OAAO,CAGlH;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,cAAc,GAAG,UAAU,CAShE;AAQD,gHAAgH;AAChH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACxC,aAAa,GAAE,cAAqC,GACnD,IAAI,CAIN"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { CallToolResult } from '@frontmcp/protocol';
|
|
2
|
+
import type { ResourceMetadata } from '../common/metadata/resource.metadata';
|
|
3
|
+
import type { ClientAnnotationsMode, ClientProfile, ClientProfilesOptionsInterface, StructuredAnswerMode } from '../common/types/options/clients';
|
|
4
|
+
type ResourceAnnotations = ResourceMetadata['annotations'];
|
|
5
|
+
/** Where a request's client name comes from, most specific first. */
|
|
6
|
+
export interface ClientNameSources {
|
|
7
|
+
/** The request context: MCP 2026-07-28 clients send `clientInfo` with each request. */
|
|
8
|
+
context?: {
|
|
9
|
+
clientInfo?: {
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
/** The session payload, where `initialize` recorded the client name. */
|
|
14
|
+
authInfo?: {
|
|
15
|
+
sessionId?: string;
|
|
16
|
+
sessionIdPayload?: {
|
|
17
|
+
clientName?: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
notifications?: {
|
|
21
|
+
getClientInfo(sessionId: string): {
|
|
22
|
+
name: string;
|
|
23
|
+
} | undefined;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The profile of the first `clients` glob that matches the client name, without regard to case.
|
|
28
|
+
* A name over 256 characters matches none.
|
|
29
|
+
*/
|
|
30
|
+
export declare function resolveClientProfile(clients: ClientProfilesOptionsInterface | undefined, clientName: string | undefined): ClientProfile | undefined;
|
|
31
|
+
/** The `clientInfo.name` the caller sent: with this request, else at the session's `initialize`. */
|
|
32
|
+
export declare function callerClientName({ context, authInfo, notifications }: ClientNameSources): string | undefined;
|
|
33
|
+
/** The `clients` profile the caller's `clientInfo.name` matches; nothing is looked up without profiles. */
|
|
34
|
+
export declare function callerClientProfile(clients: ClientProfilesOptionsInterface | undefined, sources: ClientNameSources): ClientProfile | undefined;
|
|
35
|
+
/** The one-line text `structured: 'only'` sends in place of the JSON. */
|
|
36
|
+
export declare function summarizeStructuredContent(structuredContent: Record<string, unknown>): string;
|
|
37
|
+
/**
|
|
38
|
+
* A tool answer shaped for a client's `structured` mode, or `undefined` when it stays as it is.
|
|
39
|
+
* `'only'` needs the client to know the output schema (`listsOutputSchema`) and leaves errors alone.
|
|
40
|
+
*/
|
|
41
|
+
export declare function shapeToolAnswer(result: CallToolResult, mode: StructuredAnswerMode, listsOutputSchema: boolean): CallToolResult | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The annotations a client receives for a resource: `'no-numbers'` drops `priority`, and `'full'`
|
|
44
|
+
* gives a skill's `SKILL.md` (`skillMd`) the annotations `skillsConfig.resourceAnnotations: 'full'` does.
|
|
45
|
+
*/
|
|
46
|
+
export declare function annotationsForClient(annotations: ResourceAnnotations, mode: ClientAnnotationsMode | undefined, skillMd: boolean): ResourceAnnotations;
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=client-profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-profile.d.ts","sourceRoot":"","sources":["../../src/answer/client-profile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EACb,8BAA8B,EAC9B,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AAGzC,KAAK,mBAAmB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAE3D,qEAAqE;AACrE,MAAM,WAAW,iBAAiB;IAChC,uFAAuF;IACvF,OAAO,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,C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ismatch, } from './answer-budget';
|
|
2
|
+
export type { BudgetNote, BudgetOmission } from './answer-budget';
|
|
3
|
+
export { ANSWER_COUNTERS, measureAnswer, meteringEnabled, recordAnswerCost } from './answer-meter';
|
|
4
|
+
export type { AnswerCost } from './answer-meter';
|
|
5
|
+
export { annotationsForClient, callerClientName, callerClientProfile, resolveClientProfile, shapeToolAnswer, summarizeStructuredContent, } from './client-profile';
|
|
6
|
+
export type { ClientNameSources } from './client-profile';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/answer/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACnG,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.registry.d.ts","sourceRoot":"","sources":["../../src/app/app.registry.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAI1B,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,aAAa,EAEnB,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,KAAK,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HANGED
|
@@ -15,7 +15,7 @@ export declare function appIdOf(metadata: {
|
|
|
15
15
|
export declare function normalizeApp(item: AppType): AppRecord;
|
|
16
16
|
/**
|
|
17
17
|
* For graph/cycle detection. Returns dependency tokens that should be graphed.
|
|
18
|
-
* - REMOTE_VALUE: no deps
|
|
18
|
+
* - REMOTE_VALUE, LAZY_IMPORT: no deps
|
|
19
19
|
* - LOCAL_CLASS: deps come from the class constructor
|
|
20
20
|
*/
|
|
21
21
|
export declare function appDiscoveryDeps(rec: AppRecord): Token[];
|
package/app/app.utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.utils.d.ts","sourceRoot":"","sources":["../../src/app/app.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,KAAK,EAAa,MAAM,cAAc,CAAC;AAGxF,OAAO,
|
|
1
|
+
{"version":3,"file":"app.utils.d.ts","sourceRoot":"","sources":["../../src/app/app.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,KAAK,EAAa,MAAM,cAAc,CAAC;AAGxF,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,gBAAgB,EAEtB,MAAM,WAAW,CAAC;AAInB,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,gBAAgB,CAMjE;AAED,iFAAiF;AACjF,wBAAgB,OAAO,CAAC,QAAQ,EAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAEvE;AA2BD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,CA4CrD;AAqBD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,SAAS,GAAG,KAAK,EAAE,CAQxD"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { AppEntry, type AdapterRegistryInterface, type AppRecord, type LazyAppRecordMetadata, type PluginRegistryInterface } from '../../common';
|
|
2
|
+
import PromptRegistry from '../../prompt/prompt.registry';
|
|
3
|
+
import ProviderRegistry from '../../provider/provider.registry';
|
|
4
|
+
import ResourceRegistry from '../../resource/resource.registry';
|
|
5
|
+
import type { SkillRegistryInterface } from '../../skill/skill.registry';
|
|
6
|
+
import ToolRegistry from '../../tool/tool.registry';
|
|
7
|
+
import { type LazyAppLoader } from '../lazy/lazy-placeholders';
|
|
8
|
+
/**
|
|
9
|
+
* An app whose code is imported on its first call. Until then the entries `frontmcp.manifest.json` lists for it are
|
|
10
|
+
* placeholders in its registries, so the list flows answer for it; loading puts the app's own entries in their place.
|
|
11
|
+
* Without a manifest (development) and at build time it is imported at startup.
|
|
12
|
+
*/
|
|
13
|
+
export declare class AppLazyInstance extends AppEntry<LazyAppRecordMetadata> implements LazyAppLoader {
|
|
14
|
+
readonly id: string;
|
|
15
|
+
retryable: boolean;
|
|
16
|
+
private readonly scopeProviders;
|
|
17
|
+
private readonly ownProviders;
|
|
18
|
+
private readonly appOwner;
|
|
19
|
+
private readonly appTools;
|
|
20
|
+
private readonly appResources;
|
|
21
|
+
private readonly appPrompts;
|
|
22
|
+
private readonly noPlugins;
|
|
23
|
+
private readonly noAdapters;
|
|
24
|
+
private readonly noSkills;
|
|
25
|
+
/** What the manifest lists for the app, while its entries are listed from it. */
|
|
26
|
+
private listed?;
|
|
27
|
+
private loaded?;
|
|
28
|
+
private loading?;
|
|
29
|
+
/** A failure the next call does not retry, answered to every call. */
|
|
30
|
+
private failure?;
|
|
31
|
+
constructor(record: AppRecord, scopeProviders: ProviderRegistry);
|
|
32
|
+
protected initialize(): Promise<void>;
|
|
33
|
+
private get scope();
|
|
34
|
+
/**
|
|
35
|
+
* Import and initialize the app, once, however many callers wait. A failure the app's code must fix is answered
|
|
36
|
+
* until the server restarts; any other is retried by the next call.
|
|
37
|
+
*/
|
|
38
|
+
load(): Promise<void>;
|
|
39
|
+
private importApp;
|
|
40
|
+
/** An import that resolves after the server began shutting down does not start the app. */
|
|
41
|
+
private assertServing;
|
|
42
|
+
private assertCanBeLazy;
|
|
43
|
+
/** The hooks `app`'s initialization registered: those the app owns, and those its entries' classes declare. */
|
|
44
|
+
private hooksRegisteredBy;
|
|
45
|
+
/** Undo a failed load: its hooks are unregistered and its providers shut down, so a retry starts clean. */
|
|
46
|
+
private discard;
|
|
47
|
+
/**
|
|
48
|
+
* The lazy app's `enabled` turns its loaded entries on and off, as it did their placeholders. Not at build time: the
|
|
49
|
+
* manifest records the entries' own switches, and the placeholders add the app's.
|
|
50
|
+
*/
|
|
51
|
+
private applySwitch;
|
|
52
|
+
/** Put the loaded app's entries in place of the placeholders; a list that changed is announced. */
|
|
53
|
+
private useLoaded;
|
|
54
|
+
private registryOf;
|
|
55
|
+
/** List the app from the manifest: a placeholder for each of its entries, which is off when the entry or the app is. */
|
|
56
|
+
private listFrom;
|
|
57
|
+
private toolPlaceholder;
|
|
58
|
+
private resourcePlaceholder;
|
|
59
|
+
private promptPlaceholder;
|
|
60
|
+
get providers(): ProviderRegistry;
|
|
61
|
+
get adapters(): AdapterRegistryInterface;
|
|
62
|
+
get plugins(): PluginRegistryInterface;
|
|
63
|
+
get tools(): ToolRegistry;
|
|
64
|
+
get resources(): ResourceRegistry;
|
|
65
|
+
get prompts(): PromptRegistry;
|
|
66
|
+
get skills(): SkillRegistryInterface;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=app.lazy.instance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.lazy.instance.d.ts","sourceRoot":"","sources":["../../../src/app/instances/app.lazy.instance.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,QAAQ,EASR,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EAId,KAAK,qBAAqB,EAG1B,KAAK,uBAAuB,EAS7B,MAAM,cAAc,CAAC;AAetB,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,kCAA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AAiB;IAczB,2GAA2G;YAC7F,OAAO;IASrB;;;OAGG;IACH,OAAO,CAAC,WAAW;IAanB,mGAAmG;IACnG,OAAO,CAAC,SAAS;IAyBjB,OAAO,CAAC,UAAU;IAKlB,wHAAwH;YAC1G,QAAQ;IAmBtB,OAAO,CAAC,eAAe;IA6BvB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,iBAAiB;IAazB,IAAI,SAAS,IAAI,gBAAgB,CAEhC;IAED,IAAI,QAAQ,IAAI,wBAAwB,CAEvC;IAED,IAAI,OAAO,IAAI,uBAAuB,CAErC;IAED,IAAI,KAAK,IAAI,YAAY,CAExB;IAED,IAAI,SAAS,IAAI,gBAAgB,CAEhC;IAED,IAAI,OAAO,IAAI,cAAc,CAE5B;IAED,IAAI,MAAM,IAAI,sBAAsB,CAEnC;CACF"}
|
|
@@ -98,6 +98,8 @@ export declare class AppRemoteInstance extends AppEntry<RemoteAppMetadata> {
|
|
|
98
98
|
* Map urlType to transport type
|
|
99
99
|
*/
|
|
100
100
|
private mapUrlTypeToTransportType;
|
|
101
|
+
/** A remote tool named like a local tool's alias is left out, so the alias keeps reaching the local tool. */
|
|
102
|
+
private registerRemoteTool;
|
|
101
103
|
/**
|
|
102
104
|
* Discover remote capabilities and register them in standard registries.
|
|
103
105
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.remote.instance.d.ts","sourceRoot":"","sources":["../../../src/app/instances/app.remote.instance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"app.remote.instance.d.ts","sourceRoot":"","sources":["../../../src/app/instances/app.remote.instance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EACL,QAAQ,EACR,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EAGd,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EAEvB,MAAM,cAAc,CA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AAI,CAAC;IAqB/C;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAU1C,IAAa,SAAS,IAAI,yBAAyB,CAElD;IAED,IAAa,QAAQ,IAAI,wBAAwB,CAEhD;IAED,IAAa,OAAO,IAAI,uBAAuB,CAE9C;IAED,IAAa,KAAK,IAAI,YAAY,CAEjC;IAED,IAAa,SAAS,IAAI,gBAAgB,CAEzC;IAED,IAAa,OAAO,IAAI,cAAc,CAErC;IAED,IAAa,MAAM,IAAI,sBAAsB,CAE5C;IAED;;OAEG;IACH,YAAY,IAAI,gBAAgB;IAIhC;;OAEG;IACH,cAAc,IAAI,OAAO;IAIzB;;OAEG;IACH,qBAAqB,IAAI,OAAO;IAIhC;;OAEG;IACH,aAAa,IAAI;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE;IAIxF;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAejC;;OAEG;IACG,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAWhC;;OAEG;IACH,OAAO,CAAC,yBAAyB;IAejC,6GAA6G;IAC7G,OAAO,CAAC,kBAAkB;IAS1B;;OAEG;YACW,+BAA+B;CA2G9C"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type AdapterEntry, type AdapterRegistryInterface, type PluginInstance, type PluginRegistryInterface, type SkillEntry } from '../../common';
|
|
2
|
+
import type { SkillRegistryInterface } from '../../skill/skill.registry';
|
|
3
|
+
/** The plugins of an app that has none of its own: a remote app's, or a lazy app's until it is loaded. */
|
|
4
|
+
export declare class EmptyPluginRegistry implements PluginRegistryInterface {
|
|
5
|
+
getPlugins(): PluginInstance[];
|
|
6
|
+
getPluginNames(): string[];
|
|
7
|
+
}
|
|
8
|
+
/** The adapters of an app that has none of its own. */
|
|
9
|
+
export declare class EmptyAdapterRegistry implements AdapterRegistryInterface {
|
|
10
|
+
getAdapters(): AdapterEntry[];
|
|
11
|
+
}
|
|
12
|
+
/** The skills of an app that has none: a remote app's, or a lazy app's. */
|
|
13
|
+
export declare class EmptySkillRegistry implements SkillRegistryInterface {
|
|
14
|
+
readonly owner: {
|
|
15
|
+
kind: "app";
|
|
16
|
+
id: string;
|
|
17
|
+
ref: typeof EmptySkillRegistry;
|
|
18
|
+
};
|
|
19
|
+
getSkills(): SkillEntry[];
|
|
20
|
+
getExecutableSkills(): SkillEntry[];
|
|
21
|
+
getKnowledgeOnlySkills(): SkillEntry[];
|
|
22
|
+
findByName(): SkillEntry | undefined;
|
|
23
|
+
findByQualifiedName(): SkillEntry | undefined;
|
|
24
|
+
search(): Promise<[]>;
|
|
25
|
+
loadSkill(): Promise<undefined>;
|
|
26
|
+
listSkills(): Promise<{
|
|
27
|
+
skills: never[];
|
|
28
|
+
total: number;
|
|
29
|
+
hasMore: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
hasAny(): boolean;
|
|
32
|
+
count(): Promise<number>;
|
|
33
|
+
subscribe(): () => void;
|
|
34
|
+
getCapabilities(): {};
|
|
35
|
+
validateAllTools(): Promise<{
|
|
36
|
+
results: never[];
|
|
37
|
+
isValid: boolean;
|
|
38
|
+
totalSkills: number;
|
|
39
|
+
failedCount: number;
|
|
40
|
+
warningCount: number;
|
|
41
|
+
}>;
|
|
42
|
+
syncToExternal(): Promise<null>;
|
|
43
|
+
setExternalProvider(): undefined;
|
|
44
|
+
getExternalProvider(): undefined;
|
|
45
|
+
hasExternalProvider(): boolean;
|
|
46
|
+
registerSkillContent(): Promise<{
|
|
47
|
+
id: string;
|
|
48
|
+
unregister: () => Promise<void>;
|
|
49
|
+
}>;
|
|
50
|
+
unregisterSkill(): Promise<boolean>;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=empty-app-registries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-app-registries.d.ts","sourceRoot":"","sources":["../../../src/app/instances/emp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.entry';
|
|
2
|
+
import type { PromptEntry } from '../../common/entries/prompt.entry';
|
|
3
|
+
import type { ResourceEntry } from '../../common/entries/resource.entry';
|
|
4
|
+
import type { ToolEntry } from '../../common/entries/tool.entry';
|
|
5
|
+
import type { LocalAppMetadata } from '../../common/metadata/app.metadata';
|
|
6
|
+
import type { ListedApp } from './lazy-manifest';
|
|
7
|
+
/** The loaded entries of an app, as its registries hold them, with the hooks and duties its initialization set up. */
|
|
8
|
+
export interface LoadedEntries {
|
|
9
|
+
tools: readonly ToolEntry[];
|
|
10
|
+
resources: readonly ResourceEntry[];
|
|
11
|
+
prompts: readonly PromptEntry[];
|
|
12
|
+
skills: readonly {
|
|
13
|
+
readonly name: string;
|
|
14
|
+
}[];
|
|
15
|
+
agents: readonly {
|
|
16
|
+
readonly name: string;
|
|
17
|
+
}[];
|
|
18
|
+
/** The flow hooks the app owns. */
|
|
19
|
+
hooks: readonly HookEntry[];
|
|
20
|
+
/** Its `@Duty` providers. */
|
|
21
|
+
duties: readonly {
|
|
22
|
+
readonly name: string;
|
|
23
|
+
}[];
|
|
24
|
+
}
|
|
25
|
+
/** Why what the manifest lists for an app cannot be listed without its code; empty when it can. */
|
|
26
|
+
export declare function whyListedAppCannotBeLazy(listed: ListedApp): string[];
|
|
27
|
+
/** Why an imported app's own metadata keeps it from being lazy, read before its code initializes; empty when it can. */
|
|
28
|
+
export declare function whyAppCannotBeLazy(metadata: LocalAppMetadata): string[];
|
|
29
|
+
/** Why a loaded app cannot be lazy: what only startup sets up, or what only its code can list; empty when it can. */
|
|
30
|
+
export declare function whyLoadedAppCannotBeLazy(entries: LoadedEntries): string[];
|
|
31
|
+
//# sourceMappingURL=lazy-app.rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lazy-app.rules.d.ts","sourceRoot":"","sources":["../../../src/app/lazy/lazy-app.rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAM3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,sHAAsH;AACtH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;IAC5B,SAAS,EAAE,SAAS,aAAa,EAAE,CAAC;IACpC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IAChC,MAAM,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC7C,MAAM,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC7C,mCAAmC;IACnC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;IAC5B,6BAA6B;IAC7B,MAAM,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC9C;AA+BD,mGAAmG;AACnG,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,CAgBpE;AAED,wHAAwH;AACxH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM,EAAE,CAYvE;AAUD,qHAAqH;AACrH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,EAAE,CAyCzE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ScopeEntry } from '../../common/entries/scope.entry';
|
|
2
|
+
import type { ListChangedKind } from '../../common/interfaces/flow.interface';
|
|
3
|
+
import { type ManifestApp, type ManifestPrompt, type ManifestResource, type ManifestResourceTemplate, type ManifestSkill, type ManifestTool, type ServerManifest } from '../../manifest/server-manifest.schema';
|
|
4
|
+
export interface ManifestLookup {
|
|
5
|
+
manifest?: ServerManifest;
|
|
6
|
+
/** Where the manifest was read from, or looked for. */
|
|
7
|
+
where: string;
|
|
8
|
+
}
|
|
9
|
+
/** What the manifest lists for one app. */
|
|
10
|
+
export interface ListedApp {
|
|
11
|
+
app: ManifestApp;
|
|
12
|
+
tools: ManifestTool[];
|
|
13
|
+
resources: ManifestResource[];
|
|
14
|
+
resourceTemplates: ManifestResourceTemplate[];
|
|
15
|
+
prompts: ManifestPrompt[];
|
|
16
|
+
skills: ManifestSkill[];
|
|
17
|
+
}
|
|
18
|
+
/** The entries of each list, as the manifest records them. */
|
|
19
|
+
export type RecordedLists = Record<ListChangedKind, readonly object[]>;
|
|
20
|
+
/** The manifest the scope's lazy apps are listed from: `@FrontMcp({ manifest })`, else the one next to the entry script. */
|
|
21
|
+
export declare function serverManifestOf(scope: ScopeEntry): Promise<ManifestLookup>;
|
|
22
|
+
/** Log, once per scope, that its lazy apps are imported at startup because no manifest was found. */
|
|
23
|
+
export declare function noteEagerLoading(scope: ScopeEntry, where: string): void;
|
|
24
|
+
/** What the manifest lists for app `appId`, or undefined when it does not list the app. */
|
|
25
|
+
export declare function listedAppOf(manifest: ServerManifest, appId: string): ListedApp | undefined;
|
|
26
|
+
/** The lists the manifest records for `listed`, keyed like `list_changed`. */
|
|
27
|
+
export declare function recordedListsOf(listed: ListedApp): RecordedLists;
|
|
28
|
+
/** The lists whose entries differ between the manifest and the loaded app; the app's output policy shapes the tools. */
|
|
29
|
+
export declare function changedLists(listed: RecordedLists, loaded: RecordedLists, outputs: {
|
|
30
|
+
listed?: object;
|
|
31
|
+
loaded?: object;
|
|
32
|
+
}): ListChangedKind[];
|
|
33
|
+
//# sourceMappingURL=lazy-manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lazy-manifest.d.ts","sour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wH;AACxH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC5C,eAAe,EAAE,CAOnB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ScopeEntry } from '../../common/entries/scope.entry';
|
|
2
|
+
import type { EnabledOption } from '../../common/metadata/enabled.metadata';
|
|
3
|
+
/** What a request needs from the lazy app a placeholder entry stands for. */
|
|
4
|
+
export interface LazyAppLoader {
|
|
5
|
+
readonly metadata: {
|
|
6
|
+
readonly name: string;
|
|
7
|
+
};
|
|
8
|
+
/** Imports and initializes the app, once, however many callers wait for it. */
|
|
9
|
+
load(): Promise<void>;
|
|
10
|
+
/** Whether the next call imports the app again after a failed load. */
|
|
11
|
+
readonly retryable: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** Mark `entry` as a placeholder of `app`, listed from the manifest until the app is loaded. */
|
|
14
|
+
export declare function markPlaceholder(entry: object, app: LazyAppLoader): void;
|
|
15
|
+
/** The lazy app `entry` is a placeholder of, or undefined for an entry the app's code declares. */
|
|
16
|
+
export declare function lazyAppOf(entry: object): LazyAppLoader | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Before a request's flow collects its hooks: import the lazy app `entry` stands for, when the entry is on, so the
|
|
19
|
+
* request runs the app's own entry and the hooks the app adds. Returns whether the app was loaded for it; a failure
|
|
20
|
+
* is answered by the flow's `checkAppLoaded` stage.
|
|
21
|
+
*/
|
|
22
|
+
export declare function loadAppOfPlaceholder(scope: ScopeEntry, entry: {
|
|
23
|
+
readonly metadata: {
|
|
24
|
+
readonly enabled?: EnabledOption;
|
|
25
|
+
};
|
|
26
|
+
}): Promise<boolean>;
|
|
27
|
+
/** The `checkAppLoaded` stage: an entry that is on and still a placeholder belongs to an app that failed to load. */
|
|
28
|
+
export declare function assertAppLoaded(entry: object): void;
|
|
29
|
+
//# sourceMappingURL=lazy-placeholders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lazy-placeholders.d.ts","sourceRoot":"","sources":["../../../src/app/lazy/lazy-placeholders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAM5E,6EAA6E;AAC7E,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7C,+EAA+E;IAC/E,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtB,uEAAuE;IACvE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B;AAID,gGAAgG;AAChG,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CAEvE;AAED,mGAAmG;AACnG,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAElE;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAA;KAAE,CAAA;CAAE,GACjE,OAAO,CAAC,OAAO,CAAC,CAOlB;AAUD,qHAAqH;AACrH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAGnD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlowBase, type FlowRunOptions } from '../../common';
|
|
2
2
|
import 'reflect-metadata';
|
|
3
3
|
import { type Authorization } from '@frontmcp/auth';
|
|
4
|
-
import { z } from '@frontmcp/lazy-zod';
|
|
4
|
+
import { internalZ as z } from '@frontmcp/lazy-zod';
|
|
5
5
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
6
6
|
request: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
7
7
|
}, import("zod/v4/core").$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.verify.flow.d.ts","sourceRoot":"","sources":["../../../src/auth/flows/auth.verify.flow.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,QAAQ,EAQR,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAEtB,OAAO,kBAAkB,CAAC;AAI1B,OAAO,EAkBL,KAAK,aAAa,EAMnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.verify.flow.d.ts","sourceRoot":"","sources":["../../../src/auth/flows/auth.verify.flow.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,QAAQ,EAQR,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAEtB,OAAO,kBAAkB,CAAC;AAI1B,OAAO,EAkBL,KAAK,aAAa,EAMnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,IAAI,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAKpD,QAAA,MAAM,WAAW;;gCAAyB,CAAC;AAG3C,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;gCAUf,CAAC;AA2BH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAAmE,CAAC;AAEvG,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAGtE,QAAA,MAAM,IAAI;;;CAU2B,CAAC;AAGtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,aAAa,EAAE,cAAc,CAC3B,cAAc,EACd,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,sBAAsB,EAC7B,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,aAAsB,CAAC;AAGpC;;;;;;;;;GASG;AAQH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAC/D,OAAO,CAAC,MAAM,CAA6C;IAE3D;;OAEG;IAEG,UAAU;IA6BhB;;OAEG;IAEG,iBAAiB;IAcvB;;OAEG;IAIG,gBAAgB;IAqBtB;;;OAGG;IAQG,uBAAuB;IAsB7B;;OAEG;IAWG,0BAA0B;IAShC;;OAEG;IAIG,WAAW;IAqHjB;;OAEG;IAEG,kBAAkB;IA8FxB;;OAEG;IACH,OAAO,CAAC,QAAQ;CA6BjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-flows.d.ts","sourceRoot":"","sources":["../../../src/auth/flows/oauth-flows.ts"],"names":[],"mappings":"AAEA,+GAA+G;AAC/G,eAAO,MAAM,UAAU,oCAyBtB,CAAC"}
|
|
@@ -51,5 +51,5 @@ export default class OauthAuthUiExtraFlow extends FlowBase<typeof extraName> {
|
|
|
51
51
|
/** Verify the extra's CSRF token against the pending record + registry. */
|
|
52
52
|
private verifyExtraCsrf;
|
|
53
53
|
}
|
|
54
|
-
export {};
|
|
54
|
+
export { OauthAuthUiExtraFlow };
|
|
55
55
|
//# sourceMappingURL=oauth.auth-ui.flow.d.ts.map
|