@frontmcp/sdk 1.0.4 → 1.1.0
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 +5 -7
- package/agent/agent.instance.d.ts.map +1 -1
- package/agent/agent.scope.d.ts +4 -4
- package/agent/flows/call-agent.flow.d.ts +211 -205
- package/agent/flows/call-agent.flow.d.ts.map +1 -1
- package/agent/hooks/agent.hooks.d.ts +4 -4
- package/agent/hooks/agent.hooks.d.ts.map +1 -1
- package/agent/index.d.ts +1 -1
- package/auth/flows/auth.verify.flow.d.ts +48 -44
- package/auth/flows/auth.verify.flow.d.ts.map +1 -1
- package/auth/flows/oauth.authorize.flow.d.ts +119 -137
- package/auth/flows/oauth.authorize.flow.d.ts.map +1 -1
- package/auth/flows/oauth.callback.flow.d.ts +64 -64
- package/auth/flows/oauth.callback.flow.d.ts.map +1 -1
- package/auth/flows/oauth.provider-callback.flow.d.ts +52 -52
- package/auth/flows/oauth.provider-callback.flow.d.ts.map +1 -1
- package/auth/flows/oauth.register.flow.d.ts +35 -48
- package/auth/flows/oauth.register.flow.d.ts.map +1 -1
- package/auth/flows/oauth.token.flow.d.ts +53 -80
- package/auth/flows/oauth.token.flow.d.ts.map +1 -1
- package/auth/flows/session.verify.flow.d.ts +86 -83
- package/auth/flows/session.verify.flow.d.ts.map +1 -1
- package/auth/flows/well-known.jwks.flow.d.ts +61 -61
- package/auth/flows/well-known.jwks.flow.d.ts.map +1 -1
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +66 -66
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts.map +1 -1
- package/auth/flows/well-known.prm.flow.d.ts +35 -36
- package/auth/flows/well-known.prm.flow.d.ts.map +1 -1
- package/auth/session/transport-session.manager.d.ts +1 -1
- package/auth/session/transport-session.manager.d.ts.map +1 -1
- package/auth/session/utils/session-id.utils.d.ts +2 -2
- package/auth/session/utils/session-id.utils.d.ts.map +1 -1
- package/builtin/authorities/authorities.plugin.d.ts +25 -0
- package/builtin/authorities/authorities.plugin.d.ts.map +1 -0
- package/builtin/authorities/authorities.plugin.options.d.ts +45 -0
- package/builtin/authorities/authorities.plugin.options.d.ts.map +1 -0
- package/builtin/authorities/index.d.ts +3 -0
- package/builtin/authorities/index.d.ts.map +1 -0
- package/builtin/config/config.plugin.d.ts +2 -2
- package/builtin/config/config.plugin.d.ts.map +1 -1
- package/builtin/config/config.types.d.ts +1 -1
- package/builtin/config/config.types.d.ts.map +1 -1
- package/builtin/config/index.d.ts +2 -2
- package/builtin/config/index.d.ts.map +1 -1
- package/builtin/config/providers/config-loader.d.ts +1 -1
- package/builtin/config/providers/config-loader.d.ts.map +1 -1
- package/builtin/config/providers/config.service.d.ts +2 -2
- package/builtin/config/providers/config.service.d.ts.map +1 -1
- package/builtin/config/providers/env-loader.d.ts +1 -1
- package/builtin/config/providers/env-loader.d.ts.map +1 -1
- package/channel/channel-notification.service.d.ts +52 -0
- package/channel/channel-notification.service.d.ts.map +1 -0
- package/channel/channel-scope.helper.d.ts +37 -0
- package/channel/channel-scope.helper.d.ts.map +1 -0
- package/channel/channel.events.d.ts +25 -0
- package/channel/channel.events.d.ts.map +1 -0
- package/channel/channel.instance.d.ts +105 -0
- package/channel/channel.instance.d.ts.map +1 -0
- package/channel/channel.registry.d.ts +65 -0
- package/channel/channel.registry.d.ts.map +1 -0
- package/channel/channel.types.d.ts +14 -0
- package/channel/channel.types.d.ts.map +1 -0
- package/channel/channel.utils.d.ts +19 -0
- package/channel/channel.utils.d.ts.map +1 -0
- package/channel/flows/list-channels.flow.d.ts +41 -0
- package/channel/flows/list-channels.flow.d.ts.map +1 -0
- package/channel/flows/send-channel-notification.flow.d.ts +38 -0
- package/channel/flows/send-channel-notification.flow.d.ts.map +1 -0
- package/channel/index.d.ts +14 -0
- package/channel/index.d.ts.map +1 -0
- package/channel/reply/channel-reply.tool.d.ts +15 -0
- package/channel/reply/channel-reply.tool.d.ts.map +1 -0
- package/channel/reply/reply.types.d.ts +14 -0
- package/channel/reply/reply.types.d.ts.map +1 -0
- package/channel/sources/agent-completion.source.d.ts +29 -0
- package/channel/sources/agent-completion.source.d.ts.map +1 -0
- package/channel/sources/app-event.source.d.ts +57 -0
- package/channel/sources/app-event.source.d.ts.map +1 -0
- package/channel/sources/index.d.ts +5 -0
- package/channel/sources/index.d.ts.map +1 -0
- package/channel/sources/job-completion.source.d.ts +28 -0
- package/channel/sources/job-completion.source.d.ts.map +1 -0
- package/channel/sources/webhook.source.d.ts +42 -0
- package/channel/sources/webhook.source.d.ts.map +1 -0
- package/common/common.schema.d.ts +11 -11
- package/common/common.schema.d.ts.map +1 -1
- package/common/decorators/agent.decorator.d.ts +4 -4
- package/common/decorators/agent.decorator.d.ts.map +1 -1
- package/common/decorators/channel.decorator.d.ts +59 -0
- package/common/decorators/channel.decorator.d.ts.map +1 -0
- package/common/decorators/front-mcp.decorator.d.ts +1 -1
- package/common/decorators/front-mcp.decorator.d.ts.map +1 -1
- package/common/decorators/index.d.ts +1 -0
- package/common/decorators/index.d.ts.map +1 -1
- package/common/decorators/job.decorator.d.ts +13 -9
- package/common/decorators/job.decorator.d.ts.map +1 -1
- package/common/decorators/tool.decorator.d.ts +12 -7
- package/common/decorators/tool.decorator.d.ts.map +1 -1
- package/common/entries/agent.entry.d.ts +6 -6
- package/common/entries/agent.entry.d.ts.map +1 -1
- package/common/entries/channel.entry.d.ts +58 -0
- package/common/entries/channel.entry.d.ts.map +1 -0
- package/common/entries/index.d.ts +1 -0
- package/common/entries/index.d.ts.map +1 -1
- package/common/entries/job.entry.d.ts +7 -7
- package/common/entries/job.entry.d.ts.map +1 -1
- package/common/entries/scope.entry.d.ts +32 -14
- package/common/entries/scope.entry.d.ts.map +1 -1
- package/common/entries/tool.entry.d.ts +12 -8
- package/common/entries/tool.entry.d.ts.map +1 -1
- package/common/flow/flow.utils.d.ts +1 -1
- package/common/flow/flow.utils.d.ts.map +1 -1
- package/common/interfaces/agent.interface.d.ts +8 -8
- package/common/interfaces/agent.interface.d.ts.map +1 -1
- package/common/interfaces/channel.interface.d.ts +131 -0
- package/common/interfaces/channel.interface.d.ts.map +1 -0
- package/common/interfaces/execution-context.interface.d.ts +27 -8
- package/common/interfaces/execution-context.interface.d.ts.map +1 -1
- package/common/interfaces/flow.interface.d.ts +6 -6
- package/common/interfaces/flow.interface.d.ts.map +1 -1
- package/common/interfaces/index.d.ts +1 -0
- package/common/interfaces/index.d.ts.map +1 -1
- package/common/interfaces/internal/flow.utils.d.ts +2 -2
- package/common/interfaces/internal/flow.utils.d.ts.map +1 -1
- package/common/interfaces/internal/registry.interface.d.ts +3 -1
- package/common/interfaces/internal/registry.interface.d.ts.map +1 -1
- package/common/interfaces/resource.interface.d.ts +7 -0
- package/common/interfaces/resource.interface.d.ts.map +1 -1
- package/common/interfaces/server.interface.d.ts +5 -3
- package/common/interfaces/server.interface.d.ts.map +1 -1
- package/common/interfaces/tool.interface.d.ts +18 -6
- package/common/interfaces/tool.interface.d.ts.map +1 -1
- package/common/metadata/adapter.metadata.d.ts +5 -6
- package/common/metadata/adapter.metadata.d.ts.map +1 -1
- package/common/metadata/agent.metadata.d.ts +94 -95
- package/common/metadata/agent.metadata.d.ts.map +1 -1
- package/common/metadata/app-filter.metadata.d.ts +21 -22
- package/common/metadata/app-filter.metadata.d.ts.map +1 -1
- package/common/metadata/app.metadata.d.ts +554 -547
- package/common/metadata/app.metadata.d.ts.map +1 -1
- package/common/metadata/auth-provider.metadata.d.ts +6 -7
- package/common/metadata/auth-provider.metadata.d.ts.map +1 -1
- package/common/metadata/channel.metadata.d.ts +286 -0
- package/common/metadata/channel.metadata.d.ts.map +1 -0
- package/common/metadata/flow.metadata.d.ts +14 -14
- package/common/metadata/flow.metadata.d.ts.map +1 -1
- package/common/metadata/front-mcp.metadata.d.ts +3591 -2715
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/index.d.ts +1 -0
- package/common/metadata/index.d.ts.map +1 -1
- package/common/metadata/job.metadata.d.ts +26 -27
- package/common/metadata/job.metadata.d.ts.map +1 -1
- package/common/metadata/logger.metadata.d.ts +5 -6
- package/common/metadata/logger.metadata.d.ts.map +1 -1
- package/common/metadata/plugin.metadata.d.ts +21 -22
- package/common/metadata/plugin.metadata.d.ts.map +1 -1
- package/common/metadata/prompt.metadata.d.ts +24 -25
- package/common/metadata/prompt.metadata.d.ts.map +1 -1
- package/common/metadata/provider.metadata.d.ts +6 -7
- package/common/metadata/provider.metadata.d.ts.map +1 -1
- package/common/metadata/resource.metadata.d.ts +40 -41
- package/common/metadata/resource.metadata.d.ts.map +1 -1
- package/common/metadata/skill.metadata.d.ts +57 -57
- package/common/metadata/skill.metadata.d.ts.map +1 -1
- package/common/metadata/tool.metadata.d.ts +145 -120
- package/common/metadata/tool.metadata.d.ts.map +1 -1
- package/common/metadata/workflow.metadata.d.ts +43 -44
- package/common/metadata/workflow.metadata.d.ts.map +1 -1
- package/common/records/channel.record.d.ts +52 -0
- package/common/records/channel.record.d.ts.map +1 -0
- package/common/records/index.d.ts +1 -0
- package/common/records/index.d.ts.map +1 -1
- package/common/schemas/annotated-class.schema.d.ts +15 -15
- package/common/schemas/annotated-class.schema.d.ts.map +1 -1
- package/common/schemas/http-input.schema.d.ts +8 -9
- package/common/schemas/http-input.schema.d.ts.map +1 -1
- package/common/schemas/http-output.schema.d.ts +500 -496
- package/common/schemas/http-output.schema.d.ts.map +1 -1
- package/common/schemas/session-header.schema.d.ts +1 -2
- package/common/schemas/session-header.schema.d.ts.map +1 -1
- package/common/tokens/app.tokens.d.ts.map +1 -1
- package/common/tokens/channel.tokens.d.ts +14 -0
- package/common/tokens/channel.tokens.d.ts.map +1 -0
- package/common/tokens/front-mcp.tokens.d.ts +2 -2
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -1
- package/common/tokens/index.d.ts +1 -0
- package/common/tokens/index.d.ts.map +1 -1
- package/common/tokens/tool.tokens.d.ts +1 -0
- package/common/tokens/tool.tokens.d.ts.map +1 -1
- package/common/types/auth/session.types.d.ts +49 -50
- package/common/types/auth/session.types.d.ts.map +1 -1
- package/common/types/common.types.d.ts +1 -1
- package/common/types/common.types.d.ts.map +1 -1
- package/common/types/options/elicitation/schema.d.ts +28 -28
- package/common/types/options/elicitation/schema.d.ts.map +1 -1
- package/common/types/options/ext-apps/schema.d.ts +20 -20
- package/common/types/options/ext-apps/schema.d.ts.map +1 -1
- package/common/types/options/ext-apps/typecheck.d.ts.map +1 -1
- package/common/types/options/health/schema.d.ts +16 -16
- 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 +41 -1
- package/common/types/options/http/interfaces.d.ts.map +1 -1
- package/common/types/options/http/schema.d.ts +21 -12
- package/common/types/options/http/schema.d.ts.map +1 -1
- package/common/types/options/http/typecheck.d.ts.map +1 -1
- package/common/types/options/logging/schema.d.ts +8 -8
- package/common/types/options/logging/schema.d.ts.map +1 -1
- package/common/types/options/observability/schema.d.ts +6 -6
- package/common/types/options/observability/schema.d.ts.map +1 -1
- package/common/types/options/pagination/schema.d.ts +13 -13
- package/common/types/options/pagination/schema.d.ts.map +1 -1
- package/common/types/options/redis/schema.d.ts +62 -62
- package/common/types/options/redis/schema.d.ts.map +1 -1
- package/common/types/options/redis/typecheck.d.ts.map +1 -1
- package/common/types/options/server-info/schema.d.ts +13 -13
- package/common/types/options/server-info/schema.d.ts.map +1 -1
- package/common/types/options/session/schema.d.ts +22 -22
- package/common/types/options/session/schema.d.ts.map +1 -1
- package/common/types/options/skills-http/schema.d.ts +63 -63
- package/common/types/options/skills-http/schema.d.ts.map +1 -1
- package/common/types/options/skills-http/typecheck.d.ts.map +1 -1
- package/common/types/options/sqlite/schema.d.ts +9 -9
- package/common/types/options/sqlite/schema.d.ts.map +1 -1
- package/common/types/options/sqlite/typecheck.d.ts.map +1 -1
- package/common/types/options/transport/schema.d.ts +140 -140
- package/common/types/options/transport/schema.d.ts.map +1 -1
- package/common/types/options/transport/typecheck.d.ts.map +1 -1
- package/common/utils/decide-request-intent.utils.d.ts +16 -17
- package/common/utils/decide-request-intent.utils.d.ts.map +1 -1
- package/common/utils/path.utils.d.ts +10 -1
- package/common/utils/path.utils.d.ts.map +1 -1
- package/completion/flows/complete.flow.d.ts +68 -69
- package/completion/flows/complete.flow.d.ts.map +1 -1
- package/context/frontmcp-context.d.ts +9 -7
- package/context/frontmcp-context.d.ts.map +1 -1
- package/direct/create.d.ts +1 -1
- package/direct/create.d.ts.map +1 -1
- package/elicitation/elicitation.types.d.ts +2 -2
- package/elicitation/elicitation.types.d.ts.map +1 -1
- package/elicitation/flows/elicitation-request.flow.d.ts +40 -40
- package/elicitation/flows/elicitation-request.flow.d.ts.map +1 -1
- package/elicitation/flows/elicitation-result.flow.d.ts +23 -23
- package/elicitation/flows/elicitation-result.flow.d.ts.map +1 -1
- package/elicitation/helpers/elicit.helper.d.ts +4 -4
- package/elicitation/helpers/elicit.helper.d.ts.map +1 -1
- package/elicitation/helpers/extend-output-schema.d.ts.map +1 -1
- package/elicitation/send-elicitation-result.tool.d.ts.map +1 -1
- package/errors/authorization-required.error.d.ts +44 -44
- package/errors/authorization-required.error.d.ts.map +1 -1
- package/errors/index.d.ts +3 -2
- package/errors/index.d.ts.map +1 -1
- package/errors/sdk.errors.d.ts +6 -0
- package/errors/sdk.errors.d.ts.map +1 -1
- package/errors/task.error.d.ts +55 -0
- package/errors/task.error.d.ts.map +1 -0
- package/errors/transport.errors.d.ts +6 -0
- package/errors/transport.errors.d.ts.map +1 -1
- package/esm/index.mjs +42394 -36842
- package/esm-loader/esm-auth.types.d.ts +5 -6
- package/esm-loader/esm-auth.types.d.ts.map +1 -1
- package/esm-loader/esm-manifest.d.ts +13 -14
- package/esm-loader/esm-manifest.d.ts.map +1 -1
- package/esm-loader/factories/esm-record-builders.d.ts +2 -2
- package/esm-loader/factories/esm-record-builders.d.ts.map +1 -1
- package/front-mcp/front-mcp.d.ts +3 -3
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/front-mcp/front-mcp.providers.d.ts +328 -28
- package/front-mcp/front-mcp.providers.d.ts.map +1 -1
- package/ha/ha-manager.d.ts +119 -0
- package/ha/ha-manager.d.ts.map +1 -0
- package/ha/ha.constants.d.ts +11 -0
- package/ha/ha.constants.d.ts.map +1 -0
- package/ha/ha.types.d.ts +42 -0
- package/ha/ha.types.d.ts.map +1 -0
- package/ha/heartbeat.service.d.ts +44 -0
- package/ha/heartbeat.service.d.ts.map +1 -0
- package/ha/index.d.ts +8 -0
- package/ha/index.d.ts.map +1 -0
- package/ha/notification-relay.d.ts +60 -0
- package/ha/notification-relay.d.ts.map +1 -0
- package/ha/session-takeover.d.ts +28 -0
- package/ha/session-takeover.d.ts.map +1 -0
- package/health/health.service.d.ts +5 -0
- package/health/health.service.d.ts.map +1 -1
- package/index.d.ts +45 -28
- package/index.d.ts.map +1 -1
- package/index.js +43391 -37819
- package/job/job.instance.d.ts +6 -8
- package/job/job.instance.d.ts.map +1 -1
- package/job/tools/execute-job.tool.d.ts.map +1 -1
- package/job/tools/get-job-status.tool.d.ts.map +1 -1
- package/job/tools/list-jobs.tool.d.ts.map +1 -1
- package/job/tools/register-job.tool.d.ts.map +1 -1
- package/job/tools/remove-job.tool.d.ts.map +1 -1
- package/logging/flows/set-level.flow.d.ts +38 -39
- package/logging/flows/set-level.flow.d.ts.map +1 -1
- package/notification/index.d.ts +1 -1
- package/notification/index.d.ts.map +1 -1
- package/notification/notification.service.d.ts +68 -4
- package/notification/notification.service.d.ts.map +1 -1
- package/package.json +18 -14
- package/prompt/flows/get-prompt.flow.d.ts +194 -189
- package/prompt/flows/get-prompt.flow.d.ts.map +1 -1
- package/prompt/flows/prompts-list.flow.d.ts +60 -56
- package/prompt/flows/prompts-list.flow.d.ts.map +1 -1
- package/resource/flows/read-resource.flow.d.ts +91 -86
- package/resource/flows/read-resource.flow.d.ts.map +1 -1
- package/resource/flows/resource-templates-list.flow.d.ts +62 -58
- package/resource/flows/resource-templates-list.flow.d.ts.map +1 -1
- package/resource/flows/resources-list.flow.d.ts +62 -58
- package/resource/flows/resources-list.flow.d.ts.map +1 -1
- package/resource/flows/subscribe-resource.flow.d.ts +38 -39
- package/resource/flows/subscribe-resource.flow.d.ts.map +1 -1
- package/resource/flows/unsubscribe-resource.flow.d.ts +38 -39
- package/resource/flows/unsubscribe-resource.flow.d.ts.map +1 -1
- package/resource/resource.events.d.ts +2 -0
- package/resource/resource.events.d.ts.map +1 -1
- package/resource/resource.registry.d.ts +7 -0
- package/resource/resource.registry.d.ts.map +1 -1
- package/scope/flows/http.request.flow.d.ts +58 -56
- package/scope/flows/http.request.flow.d.ts.map +1 -1
- package/scope/scope.instance.d.ts +81 -15
- package/scope/scope.instance.d.ts.map +1 -1
- package/server/adapters/base.host.adapter.d.ts +4 -1
- package/server/adapters/base.host.adapter.d.ts.map +1 -1
- package/server/adapters/express.host.adapter.d.ts +8 -2
- package/server/adapters/express.host.adapter.d.ts.map +1 -1
- package/server/middleware/csp.middleware.d.ts +64 -0
- package/server/middleware/csp.middleware.d.ts.map +1 -0
- package/server/middleware/host-validation.middleware.d.ts +25 -0
- package/server/middleware/host-validation.middleware.d.ts.map +1 -0
- package/server/security/security-audit.d.ts +66 -0
- package/server/security/security-audit.d.ts.map +1 -0
- package/server/server.instance.d.ts +4 -4
- package/server/server.instance.d.ts.map +1 -1
- package/skill/flows/http/llm-full-txt.flow.d.ts +27 -32
- package/skill/flows/http/llm-full-txt.flow.d.ts.map +1 -1
- package/skill/flows/http/llm-txt.flow.d.ts +27 -32
- package/skill/flows/http/llm-txt.flow.d.ts.map +1 -1
- package/skill/flows/http/skills-api.flow.d.ts +33 -38
- package/skill/flows/http/skills-api.flow.d.ts.map +1 -1
- package/skill/flows/load-skill.flow.d.ts +100 -100
- package/skill/flows/load-skill.flow.d.ts.map +1 -1
- package/skill/flows/search-skills.flow.d.ts +56 -57
- package/skill/flows/search-skills.flow.d.ts.map +1 -1
- package/task/flows/tasks-cancel.flow.d.ts +72 -0
- package/task/flows/tasks-cancel.flow.d.ts.map +1 -0
- package/task/flows/tasks-get.flow.d.ts +69 -0
- package/task/flows/tasks-get.flow.d.ts.map +1 -0
- package/task/flows/tasks-list.flow.d.ts +73 -0
- package/task/flows/tasks-list.flow.d.ts.map +1 -0
- package/task/flows/tasks-result.flow.d.ts +93 -0
- package/task/flows/tasks-result.flow.d.ts.map +1 -0
- package/task/helpers/cli-task-runner.d.ts +46 -0
- package/task/helpers/cli-task-runner.d.ts.map +1 -0
- package/task/helpers/in-process-task-runner.d.ts +28 -0
- package/task/helpers/in-process-task-runner.d.ts.map +1 -0
- package/task/helpers/process-liveness.d.ts +16 -0
- package/task/helpers/process-liveness.d.ts.map +1 -0
- package/task/helpers/task-id.d.ts +10 -0
- package/task/helpers/task-id.d.ts.map +1 -0
- package/task/helpers/task-notifier.d.ts +20 -0
- package/task/helpers/task-notifier.d.ts.map +1 -0
- package/task/helpers/task-runner.d.ts +47 -0
- package/task/helpers/task-runner.d.ts.map +1 -0
- package/task/helpers/task-runner.types.d.ts +32 -0
- package/task/helpers/task-runner.types.d.ts.map +1 -0
- package/task/index.d.ts +24 -0
- package/task/index.d.ts.map +1 -0
- package/task/runtime/execute-task-flag.d.ts +11 -0
- package/task/runtime/execute-task-flag.d.ts.map +1 -0
- package/task/runtime/execute-task.d.ts +21 -0
- package/task/runtime/execute-task.d.ts.map +1 -0
- package/task/store/index.d.ts +4 -0
- package/task/store/index.d.ts.map +1 -0
- package/task/store/storage-task.store.d.ts +42 -0
- package/task/store/storage-task.store.d.ts.map +1 -0
- package/task/store/task-store.factory.d.ts +58 -0
- package/task/store/task-store.factory.d.ts.map +1 -0
- package/task/store/task.store.d.ts +76 -0
- package/task/store/task.store.d.ts.map +1 -0
- package/task/task-scope.helper.d.ts +18 -0
- package/task/task-scope.helper.d.ts.map +1 -0
- package/task/task.registry.d.ts +68 -0
- package/task/task.registry.d.ts.map +1 -0
- package/task/task.types.d.ts +201 -0
- package/task/task.types.d.ts.map +1 -0
- package/tool/flows/call-tool.flow.d.ts +216 -197
- package/tool/flows/call-tool.flow.d.ts.map +1 -1
- package/tool/flows/tools-list.flow.d.ts +82 -76
- package/tool/flows/tools-list.flow.d.ts.map +1 -1
- package/tool/tool.instance.d.ts +4 -6
- package/tool/tool.instance.d.ts.map +1 -1
- package/tool/tool.utils.d.ts +2 -2
- package/tool/tool.utils.d.ts.map +1 -1
- package/transport/adapters/transport.local.adapter.d.ts +10 -11
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.sse.adapter.d.ts +5 -5
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.streamable-http.adapter.d.ts +7 -7
- package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -1
- package/transport/bus/index.d.ts +3 -0
- package/transport/bus/index.d.ts.map +1 -0
- package/transport/bus/redis-transport-bus.d.ts +90 -0
- package/transport/bus/redis-transport-bus.d.ts.map +1 -0
- package/transport/flows/handle.sse.flow.d.ts +17 -18
- package/transport/flows/handle.sse.flow.d.ts.map +1 -1
- package/transport/flows/handle.stateless-http.flow.d.ts +6 -7
- package/transport/flows/handle.stateless-http.flow.d.ts.map +1 -1
- package/transport/flows/handle.streamable-http.flow.d.ts +19 -19
- package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -1
- package/transport/in-memory-server.d.ts +2 -3
- package/transport/in-memory-server.d.ts.map +1 -1
- package/transport/mcp-handlers/call-tool-request.handler.d.ts +2 -2
- package/transport/mcp-handlers/call-tool-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/index.d.ts +719 -565
- package/transport/mcp-handlers/index.d.ts.map +1 -1
- package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/mcp-error.utils.d.ts +15 -0
- package/transport/mcp-handlers/mcp-error.utils.d.ts.map +1 -0
- package/transport/mcp-handlers/mcp-handlers.types.d.ts +3 -3
- package/transport/mcp-handlers/mcp-handlers.types.d.ts.map +1 -1
- package/transport/mcp-handlers/skills-mcp.types.d.ts +97 -97
- package/transport/mcp-handlers/skills-mcp.types.d.ts.map +1 -1
- package/transport/mcp-handlers/tasks-cancel-request.handler.d.ts +4 -0
- package/transport/mcp-handlers/tasks-cancel-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/tasks-get-request.handler.d.ts +4 -0
- package/transport/mcp-handlers/tasks-get-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/tasks-list-request.handler.d.ts +4 -0
- package/transport/mcp-handlers/tasks-list-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/tasks-result-request.handler.d.ts +4 -0
- package/transport/mcp-handlers/tasks-result-request.handler.d.ts.map +1 -0
- package/transport/transport.registry.d.ts +9 -4
- package/transport/transport.registry.d.ts.map +1 -1
- package/types/zod.types.d.ts +1 -1
- package/types/zod.types.d.ts.map +1 -1
- package/workflow/tools/execute-workflow.tool.d.ts.map +1 -1
- package/workflow/tools/get-workflow-status.tool.d.ts.map +1 -1
- package/workflow/tools/list-workflows.tool.d.ts.map +1 -1
- package/workflow/tools/register-workflow.tool.d.ts.map +1 -1
- package/workflow/tools/remove-workflow.tool.d.ts.map +1 -1
|
@@ -1,25 +1,30 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
-
import {
|
|
2
|
+
import { type GuardManager } from '@frontmcp/guard';
|
|
3
|
+
import { type EventStore } from '@frontmcp/protocol';
|
|
4
|
+
import AgentRegistry from '../agent/agent.registry';
|
|
3
5
|
import AppRegistry from '../app/app.registry';
|
|
4
|
-
import ProviderRegistry from '../provider/provider.registry';
|
|
5
6
|
import { AuthRegistry } from '../auth/auth.registry';
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import { type ChannelNotificationService } from '../channel/channel-notification.service';
|
|
8
|
+
import type ChannelRegistry from '../channel/channel.registry';
|
|
9
|
+
import { type ChannelEventBus } from '../channel/sources/app-event.source';
|
|
10
|
+
import { FrontMcpLogger, FrontMcpServer, ScopeEntry, type FlowInputOf, type FlowName, type FlowOutputOf, type FlowType, type FrontMcpAuth, type ScopeRecord, type Token, type Type } from '../common';
|
|
11
|
+
import { type ElicitationStore } from '../elicitation';
|
|
12
|
+
import { HaManager } from '../ha';
|
|
13
|
+
import { HealthService } from '../health';
|
|
9
14
|
import HookRegistry from '../hooks/hook.registry';
|
|
15
|
+
import type JobRegistry from '../job/job.registry';
|
|
16
|
+
import { NotificationService } from '../notification';
|
|
17
|
+
import PluginRegistry from '../plugin/plugin.registry';
|
|
10
18
|
import PromptRegistry from '../prompt/prompt.registry';
|
|
11
|
-
import
|
|
12
|
-
import
|
|
19
|
+
import ProviderRegistry from '../provider/provider.registry';
|
|
20
|
+
import ResourceRegistry from '../resource/resource.registry';
|
|
13
21
|
import { SkillSessionManager } from '../skill/session';
|
|
14
|
-
import
|
|
22
|
+
import SkillRegistry from '../skill/skill.registry';
|
|
23
|
+
import { TaskRegistry, type TaskStore } from '../task';
|
|
24
|
+
import ToolRegistry from '../tool/tool.registry';
|
|
15
25
|
import { ToolUIRegistry } from '../tool/ui';
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import type { EventStore } from '@frontmcp/protocol';
|
|
19
|
-
import JobRegistry from '../job/job.registry';
|
|
20
|
-
import WorkflowRegistry from '../workflow/workflow.registry';
|
|
21
|
-
import { type GuardManager } from '@frontmcp/guard';
|
|
22
|
-
import { HealthService } from '../health';
|
|
26
|
+
import { TransportService } from '../transport/transport.registry';
|
|
27
|
+
import type WorkflowRegistry from '../workflow/workflow.registry';
|
|
23
28
|
export declare class Scope extends ScopeEntry {
|
|
24
29
|
readonly id: string;
|
|
25
30
|
private readonly globalProviders;
|
|
@@ -37,6 +42,7 @@ export declare class Scope extends ScopeEntry {
|
|
|
37
42
|
private scopePlugins?;
|
|
38
43
|
transportService: TransportService;
|
|
39
44
|
notificationService: NotificationService;
|
|
45
|
+
haManager?: HaManager;
|
|
40
46
|
private toolUIRegistry;
|
|
41
47
|
readonly entryPath: string;
|
|
42
48
|
readonly routeBase: string;
|
|
@@ -44,6 +50,10 @@ export declare class Scope extends ScopeEntry {
|
|
|
44
50
|
readonly server: FrontMcpServer;
|
|
45
51
|
/** Lazy-initialized elicitation store for distributed elicitation support */
|
|
46
52
|
private _elicitationStore?;
|
|
53
|
+
/** Task store for MCP 2025-11-25 background tasks (optional). */
|
|
54
|
+
private _taskStore?;
|
|
55
|
+
/** Per-process task registry (AbortControllers + capability projection). */
|
|
56
|
+
private _taskRegistry?;
|
|
47
57
|
/** Optional skill session manager for tool authorization enforcement */
|
|
48
58
|
private _skillSession?;
|
|
49
59
|
/** EventStore for SSE resumability support (optional) */
|
|
@@ -56,6 +66,15 @@ export declare class Scope extends ScopeEntry {
|
|
|
56
66
|
private _jobDefinitionStore?;
|
|
57
67
|
/** Guard manager for rate limiting, concurrency, IP filtering (optional) */
|
|
58
68
|
private _rateLimitManager?;
|
|
69
|
+
/** Authorities engine for RBAC/ABAC/ReBAC enforcement (optional) */
|
|
70
|
+
private _authoritiesEngine?;
|
|
71
|
+
private _authoritiesContextBuilder?;
|
|
72
|
+
private _authoritiesScopeMapping?;
|
|
73
|
+
/** Channel system (optional) */
|
|
74
|
+
private _scopeChannels?;
|
|
75
|
+
private _channelNotificationService?;
|
|
76
|
+
private _channelEventBus?;
|
|
77
|
+
private _channelTeardown?;
|
|
59
78
|
/** Health service for liveness and readiness probes (optional) */
|
|
60
79
|
private _healthService?;
|
|
61
80
|
/** CLI mode flag — skips non-essential initialization for faster startup */
|
|
@@ -82,6 +101,9 @@ export declare class Scope extends ScopeEntry {
|
|
|
82
101
|
get skills(): SkillRegistry;
|
|
83
102
|
get jobs(): JobRegistry | undefined;
|
|
84
103
|
get workflows(): WorkflowRegistry | undefined;
|
|
104
|
+
get channels(): ChannelRegistry | undefined;
|
|
105
|
+
get channelNotifications(): ChannelNotificationService | undefined;
|
|
106
|
+
get channelEventBus(): ChannelEventBus | undefined;
|
|
85
107
|
/**
|
|
86
108
|
* Get the skill session manager for tool authorization enforcement.
|
|
87
109
|
* Returns undefined if skill sessions are not enabled.
|
|
@@ -107,6 +129,16 @@ export declare class Scope extends ScopeEntry {
|
|
|
107
129
|
* @see createElicitationStore for factory implementation details
|
|
108
130
|
*/
|
|
109
131
|
get elicitationStore(): ElicitationStore | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* Background-tasks record store (MCP 2025-11-25).
|
|
134
|
+
* Returns `undefined` if tasks are not enabled for this scope.
|
|
135
|
+
*/
|
|
136
|
+
get taskStore(): TaskStore | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* Per-process task registry (AbortControllers + capability projection).
|
|
139
|
+
* Returns `undefined` if tasks are not enabled for this scope.
|
|
140
|
+
*/
|
|
141
|
+
get tasks(): TaskRegistry | undefined;
|
|
110
142
|
/**
|
|
111
143
|
* Get the EventStore for SSE resumability support.
|
|
112
144
|
*
|
|
@@ -135,6 +167,28 @@ export declare class Scope extends ScopeEntry {
|
|
|
135
167
|
* Returns undefined if health endpoints are disabled.
|
|
136
168
|
*/
|
|
137
169
|
get healthService(): HealthService | undefined;
|
|
170
|
+
/**
|
|
171
|
+
* Authorities engine for evaluating RBAC/ABAC/ReBAC policies.
|
|
172
|
+
* Returns undefined if AuthoritiesPlugin is not configured.
|
|
173
|
+
* Used by flow `checkEntryAuthorities` stages.
|
|
174
|
+
*/
|
|
175
|
+
get authoritiesEngine(): import('@frontmcp/auth').AuthoritiesEngine | undefined;
|
|
176
|
+
/**
|
|
177
|
+
* Authorities context builder for creating evaluation contexts from AuthInfo.
|
|
178
|
+
* Returns undefined if AuthoritiesPlugin is not configured.
|
|
179
|
+
*/
|
|
180
|
+
get authoritiesContextBuilder(): import('@frontmcp/auth').AuthoritiesContextBuilder | undefined;
|
|
181
|
+
/**
|
|
182
|
+
* Scope mapping for converting authority denials to OAuth scope challenges.
|
|
183
|
+
* Returns undefined if no scopeMapping is configured.
|
|
184
|
+
*/
|
|
185
|
+
get authoritiesScopeMapping(): import('@frontmcp/auth').AuthoritiesScopeMapping | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* Collect all supported OAuth scopes from base OIDC scopes and
|
|
188
|
+
* tool-level authProvider scope declarations.
|
|
189
|
+
* Used by PRM endpoint to populate `scopes_supported` (RFC 9728).
|
|
190
|
+
*/
|
|
191
|
+
getAllSupportedScopes(): string[];
|
|
138
192
|
/**
|
|
139
193
|
* Register the sendElicitationResult system tool.
|
|
140
194
|
* This tool is hidden by default and only shown to clients that don't support elicitation.
|
|
@@ -154,5 +208,17 @@ export declare class Scope extends ScopeEntry {
|
|
|
154
208
|
registryFlows(...flows: FlowType[]): Promise<void>;
|
|
155
209
|
runFlow<Name extends FlowName>(name: Name, input: FlowInputOf<Name>, deps?: Map<Token, Type>): Promise<FlowOutputOf<Name> | undefined>;
|
|
156
210
|
runFlowForOutput<Name extends FlowName>(name: Name, input: FlowInputOf<Name>, deps?: Map<Token, Type>): Promise<FlowOutputOf<Name>>;
|
|
211
|
+
/**
|
|
212
|
+
* Shut down the scope and release resources.
|
|
213
|
+
* Disconnects channel service connectors, unsubscribes event handlers,
|
|
214
|
+
* and clears the channel event bus.
|
|
215
|
+
*/
|
|
216
|
+
shutdown(): Promise<void>;
|
|
217
|
+
/**
|
|
218
|
+
* Dispose of this scope, cleaning up all registries and native resources.
|
|
219
|
+
* Call before process exit to prevent native mutex crashes from addons
|
|
220
|
+
* (e.g., ONNX runtime) whose threads are still running during teardown.
|
|
221
|
+
*/
|
|
222
|
+
dispose(): Promise<void>;
|
|
157
223
|
}
|
|
158
224
|
//# sourceMappingURL=scope.instance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.instance.d.ts","sourceRoot":"","sources":["../../src/scope/scope.instance.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"scope.instance.d.ts","sourceRoot":"","sources":["../../src/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OAIG;IACH,qBAAqB,IAAI,MAAM,EAAE;IAoJjC;;;OAGG;IACH,OAAO,CAAC,iCAAiC;IAkBzC;;;OAGG;IACH,IAAI,UAAU;;;;;;kBAEb;IAED,aAAa,CAAC,GAAG,KAAK,EAAE,QAAQ,EAAE;IAIlC,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;IAQ9B;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAkB/B;;;;OAIG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAM/B"}
|
|
@@ -13,7 +13,10 @@ export declare abstract class HostServerAdapter extends FrontMcpServer {
|
|
|
13
13
|
* Start the server on the specified port or Unix socket path.
|
|
14
14
|
* When a string is provided, the server listens on a Unix socket.
|
|
15
15
|
* When a number is provided, the server listens on a TCP port.
|
|
16
|
+
*
|
|
17
|
+
* @param portOrSocketPath - Port number or Unix socket path
|
|
18
|
+
* @param bindAddress - Optional bind address (e.g., '127.0.0.1', '0.0.0.0')
|
|
16
19
|
*/
|
|
17
|
-
abstract start(portOrSocketPath: number | string): Promise<void> | void;
|
|
20
|
+
abstract start(portOrSocketPath: number | string, bindAddress?: string): Promise<void> | void;
|
|
18
21
|
}
|
|
19
22
|
//# sourceMappingURL=base.host.adapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.host.adapter.d.ts","sourceRoot":"","sources":["../../../src/server/adapters/base.host.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,8BAAsB,iBAAkB,SAAQ,cAAc;IAC5D;;;OAGG;aACe,OAAO,IAAI,IAAI;IAEjC;;OAEG;aACe,UAAU,IAAI,OAAO;IAEvC
|
|
1
|
+
{"version":3,"file":"base.host.adapter.d.ts","sourceRoot":"","sources":["../../../src/server/adapters/base.host.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,8BAAsB,iBAAkB,SAAQ,cAAc;IAC5D;;;OAGG;aACe,OAAO,IAAI,IAAI;IAEjC;;OAEG;aACe,UAAU,IAAI,OAAO;IAEvC;;;;;;;OAOG;aACe,KAAK,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;CACvG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
+
import { type CorsOptions, type HttpMethod, type ServerRequestHandler } from '../../common';
|
|
3
|
+
import type { SecurityOptions } from '../../common/types/options/http/interfaces';
|
|
2
4
|
import { HostServerAdapter } from './base.host.adapter';
|
|
3
|
-
import { CorsOptions, HttpMethod, ServerRequestHandler } from '../../common';
|
|
4
5
|
/**
|
|
5
6
|
* Options for ExpressHostAdapter.
|
|
6
7
|
*/
|
|
@@ -11,6 +12,11 @@ export interface ExpressHostAdapterOptions {
|
|
|
11
12
|
* Note: FrontMcpServerInstance provides a permissive default when `cors` is omitted.
|
|
12
13
|
*/
|
|
13
14
|
cors?: CorsOptions;
|
|
15
|
+
/**
|
|
16
|
+
* Security options for transport hardening.
|
|
17
|
+
* Includes bind address and DNS rebinding protection.
|
|
18
|
+
*/
|
|
19
|
+
security?: SecurityOptions;
|
|
14
20
|
}
|
|
15
21
|
export declare class ExpressHostAdapter extends HostServerAdapter {
|
|
16
22
|
private app;
|
|
@@ -31,7 +37,7 @@ export declare class ExpressHostAdapter extends HostServerAdapter {
|
|
|
31
37
|
* Automatically calls prepare() to ensure routes are registered.
|
|
32
38
|
*/
|
|
33
39
|
getHandler(): express.Application;
|
|
34
|
-
start(portOrSocketPath: number | string): Promise<void>;
|
|
40
|
+
start(portOrSocketPath: number | string, bindAddress?: string): Promise<void>;
|
|
35
41
|
private cleanupStaleSocket;
|
|
36
42
|
}
|
|
37
43
|
//# sourceMappingURL=express.host.adapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"express.host.adapter.d.ts","sourceRoot":"","sources":["../../../src/server/adapters/express.host.adapter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"express.host.adapter.d.ts","sourceRoot":"","sources":["../../../src/server/adapters/express.host.adapter.ts"],"names":[],"mappings":"AAIA,OAAO,OAAO,MAAM,SAAS,CAAC;AAI9B,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,UAAU,EAEf,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAElF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC5B;AAED,qBAAa,kBAAmB,SAAQ,iBAAiB;IACvD,OAAO,CAAC,GAAG,CAAa;IACxB,OAAO,CAAC,MAAM,CAAoB;IAClC,OAAO,CAAC,QAAQ,CAAS;gBAEb,OAAO,CAAC,EAAE,yBAAyB;IAwD/C,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB;IAI7E,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB;IAInE,eAAe,CAAC,OAAO,EAAE,oBAAoB,IACnC,KAAK,OAAO,CAAC,OAAO,EAAE,KAAK,OAAO,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,YAAY;IAQjF;;;;OAIG;IACH,OAAO,IAAI,IAAI;IAMf;;;OAGG;IACH,UAAU,IAAI,OAAO,CAAC,WAAW;IAK3B,KAAK,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM;YAqCrD,kBAAkB;CASjC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content Security Policy (CSP) Middleware
|
|
3
|
+
*
|
|
4
|
+
* Sets CSP headers based on deployment configuration.
|
|
5
|
+
* Configured via `frontmcp.config` server.csp settings,
|
|
6
|
+
* injected as environment variables at build time.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* CSP configuration read from environment variables (set by build adapter).
|
|
10
|
+
*/
|
|
11
|
+
export interface CspOptions {
|
|
12
|
+
/** Enable CSP headers. */
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
/** CSP directives map. */
|
|
15
|
+
directives: Record<string, string>;
|
|
16
|
+
/** Report URI for violations. */
|
|
17
|
+
reportUri?: string;
|
|
18
|
+
/** Use Report-Only header instead of enforcement. */
|
|
19
|
+
reportOnly: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Read CSP configuration from environment variables.
|
|
23
|
+
* Environment variables are injected by the build adapter from frontmcp.config.
|
|
24
|
+
*
|
|
25
|
+
* FRONTMCP_CSP_ENABLED=1
|
|
26
|
+
* FRONTMCP_CSP_DIRECTIVES=default-src 'self'; script-src 'self' https://cdn.example.com
|
|
27
|
+
* FRONTMCP_CSP_REPORT_URI=https://report.example.com/csp
|
|
28
|
+
* FRONTMCP_CSP_REPORT_ONLY=1
|
|
29
|
+
*/
|
|
30
|
+
export declare function readCspFromEnv(): CspOptions | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Build the CSP header value from directives.
|
|
33
|
+
*/
|
|
34
|
+
export declare function buildCspHeaderValue(options: CspOptions): string;
|
|
35
|
+
/**
|
|
36
|
+
* Get the CSP header name based on report-only mode.
|
|
37
|
+
*/
|
|
38
|
+
export declare function getCspHeaderName(reportOnly: boolean): string;
|
|
39
|
+
/**
|
|
40
|
+
* Security headers read from environment variables.
|
|
41
|
+
* Set by the build adapter from frontmcp.config server.headers settings.
|
|
42
|
+
*
|
|
43
|
+
* FRONTMCP_HSTS=max-age=31536000; includeSubDomains
|
|
44
|
+
* FRONTMCP_CONTENT_TYPE_OPTIONS=nosniff
|
|
45
|
+
* FRONTMCP_FRAME_OPTIONS=DENY
|
|
46
|
+
*/
|
|
47
|
+
export interface SecurityHeaders {
|
|
48
|
+
hsts?: string;
|
|
49
|
+
contentTypeOptions?: string;
|
|
50
|
+
frameOptions?: string;
|
|
51
|
+
custom?: Record<string, string>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Read security headers from environment variables.
|
|
55
|
+
*/
|
|
56
|
+
export declare function readSecurityHeadersFromEnv(): SecurityHeaders;
|
|
57
|
+
/**
|
|
58
|
+
* Apply security headers to a response object.
|
|
59
|
+
* Called by the HTTP adapter on every response.
|
|
60
|
+
*/
|
|
61
|
+
export declare function applySecurityHeaders(res: {
|
|
62
|
+
setHeader(name: string, value: string): void;
|
|
63
|
+
}, headers: SecurityHeaders, csp?: CspOptions): void;
|
|
64
|
+
//# sourceMappingURL=csp.middleware.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csp.middleware.d.ts","sourceRoot":"","sources":["../../../src/server/middleware/csp.middleware.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,0BAA0B;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,UAAU,GAAG,SAAS,CAwBvD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,CAY/D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,CAE5D;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,eAAe,CAM5D;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE;IAAE,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,EACrD,OAAO,EAAE,eAAe,EACxB,GAAG,CAAC,EAAE,UAAU,GACf,IAAI,CAsBN"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host Header Validation Middleware
|
|
3
|
+
*
|
|
4
|
+
* Validates the HTTP Host header against a whitelist of allowed values
|
|
5
|
+
* to protect against DNS rebinding attacks. Only active when explicitly
|
|
6
|
+
* enabled via security.dnsRebindingProtection.enabled = true.
|
|
7
|
+
*/
|
|
8
|
+
import type { ServerRequest, ServerResponse } from '../../common';
|
|
9
|
+
/**
|
|
10
|
+
* Configuration for host validation middleware.
|
|
11
|
+
*/
|
|
12
|
+
export interface HostValidationOptions {
|
|
13
|
+
/** Whether host validation is enabled. @default false */
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
/** Allowed Host header values (e.g., ['localhost:3001', 'api.example.com']) */
|
|
16
|
+
allowedHosts?: string[];
|
|
17
|
+
/** Allowed Origin header values (e.g., ['https://app.example.com']) */
|
|
18
|
+
allowedOrigins?: string[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Create middleware that validates Host and Origin headers.
|
|
22
|
+
* Returns a no-op middleware when not enabled.
|
|
23
|
+
*/
|
|
24
|
+
export declare function createHostValidationMiddleware(options: HostValidationOptions): (req: ServerRequest, res: ServerResponse, next: () => void) => void;
|
|
25
|
+
//# sourceMappingURL=host-validation.middleware.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-validation.middleware.d.ts","sourceRoot":"","sources":["../../../src/server/middleware/host-validation.middleware.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,yDAAyD;IACzD,OAAO,EAAE,OAAO,CAAC;IACjB,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,qBAAqB,GAC7B,CAAC,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,IAAI,KAAK,IAAI,CAmCrE"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Security Audit — Production Readiness Warnings
|
|
3
|
+
*
|
|
4
|
+
* Logs security-relevant configuration at server startup.
|
|
5
|
+
* Warn-only approach: no defaults are changed, but insecure
|
|
6
|
+
* configurations are flagged in production environments.
|
|
7
|
+
*/
|
|
8
|
+
import type { CorsOptions } from '../../common';
|
|
9
|
+
/**
|
|
10
|
+
* Security configuration for the audit.
|
|
11
|
+
*/
|
|
12
|
+
export interface SecurityAuditConfig {
|
|
13
|
+
/** CORS configuration (undefined = permissive default) */
|
|
14
|
+
cors?: CorsOptions | false;
|
|
15
|
+
/** Security options from HttpOptionsInterface */
|
|
16
|
+
security?: {
|
|
17
|
+
strict?: boolean;
|
|
18
|
+
bindAddress?: 'loopback' | 'all' | string;
|
|
19
|
+
dnsRebindingProtection?: {
|
|
20
|
+
enabled?: boolean;
|
|
21
|
+
allowedHosts?: string[];
|
|
22
|
+
allowedOrigins?: string[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
/** Resolved bind address (what the server actually binds to) */
|
|
26
|
+
resolvedBindAddress?: string;
|
|
27
|
+
/** Deployment mode */
|
|
28
|
+
deploymentMode?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Individual security finding.
|
|
32
|
+
*/
|
|
33
|
+
export interface SecurityFinding {
|
|
34
|
+
level: 'warn' | 'info';
|
|
35
|
+
code: string;
|
|
36
|
+
message: string;
|
|
37
|
+
recommendation?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Audit security configuration and return findings.
|
|
41
|
+
* Called at server startup to produce log warnings.
|
|
42
|
+
*
|
|
43
|
+
* @param config - Current security-relevant configuration
|
|
44
|
+
* @param isProduction - Whether NODE_ENV is 'production'
|
|
45
|
+
* @returns Array of security findings
|
|
46
|
+
*/
|
|
47
|
+
export declare function auditSecurityDefaults(config: SecurityAuditConfig, isProduction: boolean): SecurityFinding[];
|
|
48
|
+
/**
|
|
49
|
+
* Format and log security findings.
|
|
50
|
+
*
|
|
51
|
+
* @param findings - Security findings from auditSecurityDefaults
|
|
52
|
+
* @param logger - Logger with info/warn methods
|
|
53
|
+
*/
|
|
54
|
+
export declare function logSecurityFindings(findings: SecurityFinding[], logger: {
|
|
55
|
+
info: (msg: string) => void;
|
|
56
|
+
warn: (msg: string) => void;
|
|
57
|
+
}): void;
|
|
58
|
+
/**
|
|
59
|
+
* Resolve the effective bind address based on configuration and deployment mode.
|
|
60
|
+
*
|
|
61
|
+
* @param security - Security configuration
|
|
62
|
+
* @param deploymentMode - Current deployment mode
|
|
63
|
+
* @returns Resolved IP address string
|
|
64
|
+
*/
|
|
65
|
+
export declare function resolveBindAddress(security?: SecurityAuditConfig['security'], deploymentMode?: string): string;
|
|
66
|
+
//# sourceMappingURL=security-audit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-audit.d.ts","sourceRoot":"","sources":["../../../src/server/security/security-audit.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,0DAA0D;IAC1D,IAAI,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC;IAC3B,iDAAiD;IACjD,QAAQ,CAAC,EAAE;QACT,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,WAAW,CAAC,EAAE,UAAU,GAAG,KAAK,GAAG,MAAM,CAAC;QAC1C,sBAAsB,CAAC,EAAE;YACvB,OAAO,CAAC,EAAE,OAAO,CAAC;YAClB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;YACxB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;SAC3B,CAAC;KACH,CAAC;IACF,gEAAgE;IAChE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sBAAsB;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,mBAAmB,EAAE,YAAY,EAAE,OAAO,GAAG,eAAe,EAAE,CAmG3G;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,eAAe,EAAE,EAC3B,MAAM,EAAE;IACN,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7B,GACA,IAAI,CAeN;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAC,UAAU,CAAC,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAe9G"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FrontMcpServer,
|
|
2
|
-
import {
|
|
3
|
-
import type
|
|
4
|
-
import type
|
|
1
|
+
import { FrontMcpServer, type HttpMethod, type HttpOptions, type ServerRequestHandler } from '../common';
|
|
2
|
+
import { type HealthOptionsInterface } from '../common/types/options/health';
|
|
3
|
+
import { type HealthService } from '../health';
|
|
4
|
+
import { type HostServerAdapter } from './adapters/base.host.adapter';
|
|
5
5
|
export declare class FrontMcpServerInstance extends FrontMcpServer {
|
|
6
6
|
config: HttpOptions;
|
|
7
7
|
host: HostServerAdapter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.instance.d.ts","sourceRoot":"","sources":["../../src/server/server.instance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.instance.d.ts","sourceRoot":"","sources":["../../src/server/server.instance.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,cAAc,EAEd,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,oBAAoB,EAC1B,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAw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<z.ZodBoolean>;
|
|
28
|
-
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
1
|
+
import { FlowBase, type FlowRunOptions, type ScopeEntry, type ServerRequest } from '../../../common';
|
|
2
|
+
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
3
|
+
request: import("@frontmcp/lazy-zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
4
|
+
response: import("@frontmcp/lazy-zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
5
|
+
next: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodFunction<import("zod/v4/core").$ZodFunctionArgs, import("zod/v4/core").$ZodFunctionOut>>;
|
|
6
|
+
}, import("zod/v4/core").$strip>;
|
|
7
|
+
declare const stateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
8
|
+
prefix: import("@frontmcp/lazy-zod").ZodString;
|
|
9
|
+
}, import("zod/v4/core").$strip>;
|
|
10
|
+
declare const outputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
11
|
+
kind: import("@frontmcp/lazy-zod").ZodLiteral<"text">;
|
|
12
|
+
status: import("@frontmcp/lazy-zod").ZodNumber;
|
|
13
|
+
body: import("@frontmcp/lazy-zod").ZodString;
|
|
14
|
+
contentType: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodString>;
|
|
15
|
+
headers: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnion<readonly [import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnion<readonly [import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodArray<import("@frontmcp/lazy-zod").ZodString>]>]>>>>;
|
|
16
|
+
cookies: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodArray<import("@frontmcp/lazy-zod").ZodObject<{
|
|
17
|
+
name: import("@frontmcp/lazy-zod").ZodString;
|
|
18
|
+
value: import("@frontmcp/lazy-zod").ZodString;
|
|
19
|
+
path: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodString>;
|
|
20
|
+
domain: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodString>;
|
|
21
|
+
httpOnly: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
22
|
+
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
23
|
+
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
29
24
|
strict: "strict";
|
|
30
25
|
lax: "lax";
|
|
31
26
|
none: "none";
|
|
32
27
|
}>>;
|
|
33
|
-
maxAge:
|
|
34
|
-
expires:
|
|
35
|
-
},
|
|
36
|
-
},
|
|
28
|
+
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
29
|
+
expires: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDate>;
|
|
30
|
+
}, import("zod/v4/core").$strip>>>>;
|
|
31
|
+
}, import("zod/v4/core").$strip>;
|
|
37
32
|
declare const plan: {
|
|
38
33
|
readonly pre: ["checkEnabled"];
|
|
39
34
|
readonly execute: ["generateContent"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-full-txt.flow.d.ts","sourceRoot":"","sources":["../../../../src/skill/flows/http/llm-full-txt.flow.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"llm-full-txt.flow.d.ts","sourceRoot":"","sources":["../../../../src/skill/flows/http/llm-full-txt.flow.ts"],"names":[],"mappings":"AASA,OAAO,EAEL,QAAQ,EAQR,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC;AAMzB,QAAA,MAAM,WAAW;;;;gCAAkB,CAAC;AAEpC,QAAA,MAAM,WAAW;;gCAEf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;gCAAiB,CAAC;AAEpC,QAAA,MAAM,IAAI;;;CAG2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,0BAA0B,EAAE,cAAc,CACxC,cAAc,EACd,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,0BAAmC,CAAC;AAGjD;;;;;;;;;;;GAWG;AAWH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAC/D,MAAM,2CAA4C;IAElD;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO;IAqBhE,YAAY;IAoCZ,eAAe;CAsDtB"}
|
|
@@ -1,39 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
path: z.ZodDefault<z.ZodString>;
|
|
25
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
26
|
-
httpOnly: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
-
secure: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
1
|
+
import { FlowBase, type FlowRunOptions, type ScopeEntry, type ServerRequest } from '../../../common';
|
|
2
|
+
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
3
|
+
request: import("@frontmcp/lazy-zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
4
|
+
response: import("@frontmcp/lazy-zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
5
|
+
next: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodFunction<import("zod/v4/core").$ZodFunctionArgs, import("zod/v4/core").$ZodFunctionOut>>;
|
|
6
|
+
}, import("zod/v4/core").$strip>;
|
|
7
|
+
declare const stateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
8
|
+
prefix: import("@frontmcp/lazy-zod").ZodString;
|
|
9
|
+
}, import("zod/v4/core").$strip>;
|
|
10
|
+
declare const outputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
11
|
+
kind: import("@frontmcp/lazy-zod").ZodLiteral<"text">;
|
|
12
|
+
status: import("@frontmcp/lazy-zod").ZodNumber;
|
|
13
|
+
body: import("@frontmcp/lazy-zod").ZodString;
|
|
14
|
+
contentType: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodString>;
|
|
15
|
+
headers: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnion<readonly [import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnion<readonly [import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodArray<import("@frontmcp/lazy-zod").ZodString>]>]>>>>;
|
|
16
|
+
cookies: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodArray<import("@frontmcp/lazy-zod").ZodObject<{
|
|
17
|
+
name: import("@frontmcp/lazy-zod").ZodString;
|
|
18
|
+
value: import("@frontmcp/lazy-zod").ZodString;
|
|
19
|
+
path: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodString>;
|
|
20
|
+
domain: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodString>;
|
|
21
|
+
httpOnly: import("@frontmcp/lazy-zod").ZodDefault<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
22
|
+
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
23
|
+
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
29
24
|
strict: "strict";
|
|
30
25
|
lax: "lax";
|
|
31
26
|
none: "none";
|
|
32
27
|
}>>;
|
|
33
|
-
maxAge:
|
|
34
|
-
expires:
|
|
35
|
-
},
|
|
36
|
-
},
|
|
28
|
+
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
29
|
+
expires: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDate>;
|
|
30
|
+
}, import("zod/v4/core").$strip>>>>;
|
|
31
|
+
}, import("zod/v4/core").$strip>;
|
|
37
32
|
declare const plan: {
|
|
38
33
|
readonly pre: ["checkEnabled"];
|
|
39
34
|
readonly execute: ["generateContent"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-txt.flow.d.ts","sourceRoot":"","sources":["../../../../src/skill/flows/http/llm-txt.flow.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"llm-txt.flow.d.ts","sourceRoot":"","sources":["../../../../src/skill/flows/http/llm-txt.flow.ts"],"names":[],"mappings":"AASA,OAAO,EAEL,QAAQ,EAQR,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC;AAMzB,QAAA,MAAM,WAAW;;;;gCAAkB,CAAC;AAEpC,QAAA,MAAM,WAAW;;gCAEf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;gCAAiB,CAAC;AAEpC,QAAA,MAAM,IAAI;;;CAG2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,qBAAqB,EAAE,cAAc,CACnC,UAAU,EACV,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,qBAA8B,CAAC;AAG5C;;;;;;;;;;;;;;;;;;GAkBG;AAWH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAC3D,MAAM,2CAAwC;IAE9C;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO;IAqBhE,YAAY;IAoCZ,eAAe;CAuDtB"}
|