@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
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HA Manager — Lifecycle Coordinator
|
|
3
|
+
*
|
|
4
|
+
* Orchestrates heartbeat, session takeover, notification relay,
|
|
5
|
+
* and orphan session scanning.
|
|
6
|
+
* Created by Scope when deployment mode is 'distributed'.
|
|
7
|
+
*/
|
|
8
|
+
import { type HaConfig, type TakeoverResult } from './ha.types';
|
|
9
|
+
import { type HeartbeatRedisClient } from './heartbeat.service';
|
|
10
|
+
import { NotificationRelay, type RelayHandler, type RelayRedisClient } from './notification-relay';
|
|
11
|
+
import { type TakeoverRedisClient } from './session-takeover';
|
|
12
|
+
/**
|
|
13
|
+
* Callback invoked when an orphaned session is successfully claimed.
|
|
14
|
+
*/
|
|
15
|
+
export type OrphanHandler = (sessionId: string, previousNodeId: string) => void | Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Options for the orphan session scanner.
|
|
18
|
+
*/
|
|
19
|
+
export interface OrphanScannerOptions {
|
|
20
|
+
/** Redis key prefix for session keys (e.g., 'mcp:transport:'). */
|
|
21
|
+
sessionKeyPrefix: string;
|
|
22
|
+
/** Callback when a session is successfully claimed. */
|
|
23
|
+
onOrphan: OrphanHandler;
|
|
24
|
+
/**
|
|
25
|
+
* Protocols that can be recreated after takeover.
|
|
26
|
+
* Sessions with protocols NOT in this list are skipped (e.g., SSE sessions
|
|
27
|
+
* cannot be recreated because the SSE stream is tied to the original connection).
|
|
28
|
+
* @default ['streamable-http']
|
|
29
|
+
*/
|
|
30
|
+
recreatableProtocols?: string[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Options for creating an HaManager.
|
|
34
|
+
*/
|
|
35
|
+
export interface HaManagerOptions {
|
|
36
|
+
/** Redis client for heartbeat and session operations */
|
|
37
|
+
redis: HeartbeatRedisClient & TakeoverRedisClient;
|
|
38
|
+
/** Dedicated Redis subscriber connection for pub/sub (required for relay) */
|
|
39
|
+
pubsubSubscriber?: RelayRedisClient;
|
|
40
|
+
/** Redis publisher connection (can reuse main redis client) */
|
|
41
|
+
pubsubPublisher?: RelayRedisClient;
|
|
42
|
+
/** This pod's machine ID */
|
|
43
|
+
nodeId: string;
|
|
44
|
+
/** HA configuration overrides */
|
|
45
|
+
config?: Partial<HaConfig>;
|
|
46
|
+
/** Logger (optional) */
|
|
47
|
+
logger?: {
|
|
48
|
+
info: (msg: string) => void;
|
|
49
|
+
warn: (msg: string) => void;
|
|
50
|
+
debug: (msg: string) => void;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export declare class HaManager {
|
|
54
|
+
private readonly redis;
|
|
55
|
+
private readonly nodeId;
|
|
56
|
+
private readonly heartbeat;
|
|
57
|
+
private readonly relay;
|
|
58
|
+
private readonly config;
|
|
59
|
+
private readonly logger;
|
|
60
|
+
private started;
|
|
61
|
+
private scannerBootstrapTimer;
|
|
62
|
+
private scannerTimer;
|
|
63
|
+
private scannerOptions;
|
|
64
|
+
private scanning;
|
|
65
|
+
private scannerStarted;
|
|
66
|
+
private constructor();
|
|
67
|
+
/**
|
|
68
|
+
* Create an HaManager instance.
|
|
69
|
+
* Validates that required infrastructure (Redis) is available.
|
|
70
|
+
*/
|
|
71
|
+
static create(options: HaManagerOptions): HaManager;
|
|
72
|
+
/** Start heartbeat and notification relay. */
|
|
73
|
+
start(): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Start the orphan session scanner.
|
|
76
|
+
*
|
|
77
|
+
* Runs periodically (on heartbeat interval) to detect sessions owned by
|
|
78
|
+
* dead nodes and claim them via atomic Lua CAS. The `onOrphan` callback
|
|
79
|
+
* is fired for each successfully claimed session.
|
|
80
|
+
*
|
|
81
|
+
* @param options - Scanner configuration
|
|
82
|
+
*/
|
|
83
|
+
startOrphanScanner(options: OrphanScannerOptions): void;
|
|
84
|
+
/** Stop all HA services. */
|
|
85
|
+
stop(): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Attempt to take over an orphaned session via atomic CAS.
|
|
88
|
+
*
|
|
89
|
+
* @param sessionKey - Full Redis key for the session
|
|
90
|
+
* @param expectedOldNodeId - The dead pod's nodeId
|
|
91
|
+
* @returns Whether this pod successfully claimed the session
|
|
92
|
+
*/
|
|
93
|
+
attemptTakeover(sessionKey: string, expectedOldNodeId: string): Promise<TakeoverResult>;
|
|
94
|
+
/** Check if a specific node is alive. */
|
|
95
|
+
isNodeAlive(nodeId: string): Promise<boolean>;
|
|
96
|
+
/** Get all alive node IDs. */
|
|
97
|
+
getAliveNodes(): Promise<string[]>;
|
|
98
|
+
/** Get the notification relay (undefined if pub/sub not configured). */
|
|
99
|
+
getRelay(): NotificationRelay | undefined;
|
|
100
|
+
/** Subscribe to relay messages (for cross-pod notification delivery). */
|
|
101
|
+
subscribeRelay(handler: RelayHandler): Promise<void>;
|
|
102
|
+
/** Update the heartbeat with current session count. */
|
|
103
|
+
setSessionCount(count: number): void;
|
|
104
|
+
/** Whether HA services are running. */
|
|
105
|
+
isStarted(): boolean;
|
|
106
|
+
/** The node ID this manager is running for. */
|
|
107
|
+
getNodeId(): string;
|
|
108
|
+
/**
|
|
109
|
+
* Run a single orphan scan cycle.
|
|
110
|
+
*
|
|
111
|
+
* 1. Get alive nodes from heartbeat keys
|
|
112
|
+
* 2. Scan session keys matching the configured prefix
|
|
113
|
+
* 3. Parse each session's nodeId
|
|
114
|
+
* 4. If nodeId is not in the alive set, attempt takeover
|
|
115
|
+
* 5. Fire onOrphan callback for each claimed session
|
|
116
|
+
*/
|
|
117
|
+
private runOrphanScan;
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=ha-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ha-manager.d.ts","sourceRoot":"","sources":["../../src/ha/ha-manager.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAqB,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AACnF,OAAO,EAAoB,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAA0B,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEtF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,kEAAkE;IAClE,gBAAgB,EAAE,MAAM,CAAC;IACzB,uDAAuD;IACvD,QAAQ,EAAE,aAAa,CAAC;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AC;IAY5B;;;;;;;;OAQG;IACH,kBAAkB,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI;IAoBvD,4BAA4B;IACtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAqB3B;;;;;;OAMG;IACG,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAY7F,yCAAyC;IACnC,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAInD,8BAA8B;IACxB,aAAa,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAIxC,wEAAwE;IACxE,QAAQ,IAAI,iBAAiB,GAAG,SAAS;IAIzC,yEAAyE;IACnE,cAAc,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAM1D,uDAAuD;IACvD,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIpC,uCAAuC;IACvC,SAAS,IAAI,OAAO;IAIpB,+CAA+C;IAC/C,SAAS,IAAI,MAAM;IAInB;;;;;;;;OAQG;YACW,aAAa;CAiE5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HA Constants — Default Values
|
|
3
|
+
*
|
|
4
|
+
* These are defaults that can be overridden via `frontmcp.config`.
|
|
5
|
+
* The deployment config file sets the actual values at build time.
|
|
6
|
+
*/
|
|
7
|
+
/** Default cookie name for LB session affinity routing. */
|
|
8
|
+
export declare const DEFAULT_FRONTMCP_NODE_COOKIE = "__frontmcp_node";
|
|
9
|
+
/** Default response header exposing the current pod's machine ID. */
|
|
10
|
+
export declare const DEFAULT_FRONTMCP_MACHINE_ID_HEADER = "X-FrontMCP-Machine-Id";
|
|
11
|
+
//# sourceMappingURL=ha.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ha.constants.d.ts","sourceRoot":"","sources":["../../src/ha/ha.constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,2DAA2D;AAC3D,eAAO,MAAM,4BAA4B,oBAAoB,CAAC;AAE9D,qEAAqE;AACrE,eAAO,MAAM,kCAAkC,0BAA0B,CAAC"}
|
package/ha/ha.types.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HA (High Availability) Configuration Types
|
|
3
|
+
*
|
|
4
|
+
* Used by the distributed deployment mode (`frontmcp build -t distributed`)
|
|
5
|
+
* to configure heartbeat, session takeover, and notification relay.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Configuration for HA services.
|
|
9
|
+
* All values have sensible defaults — only override when tuning.
|
|
10
|
+
*/
|
|
11
|
+
export interface HaConfig {
|
|
12
|
+
/** How often the pod writes a heartbeat to Redis (ms). Default: 10_000 (10s). */
|
|
13
|
+
heartbeatIntervalMs: number;
|
|
14
|
+
/** TTL for the heartbeat key in Redis (ms). Should be 2-3x intervalMs. Default: 30_000 (30s). */
|
|
15
|
+
heartbeatTtlMs: number;
|
|
16
|
+
/** Grace period after heartbeat expiry before claiming sessions (ms). Default: 5_000 (5s). */
|
|
17
|
+
takeoverGracePeriodMs: number;
|
|
18
|
+
/** Redis key prefix for all HA keys. Default: 'mcp:ha:'. */
|
|
19
|
+
redisKeyPrefix: string;
|
|
20
|
+
/** Cookie name for LB session affinity. Configurable via frontmcp.config. Default: '__frontmcp_node'. */
|
|
21
|
+
affinityCookieName: string;
|
|
22
|
+
/** Response header for machine ID. Configurable via frontmcp.config. Default: 'X-FrontMCP-Machine-Id'. */
|
|
23
|
+
machineIdHeader: string;
|
|
24
|
+
}
|
|
25
|
+
/** Default HA configuration values. */
|
|
26
|
+
export declare const DEFAULT_HA_CONFIG: Readonly<HaConfig>;
|
|
27
|
+
/** Deployment modes set by `frontmcp build -t {target}`. */
|
|
28
|
+
export type DeploymentMode = 'distributed' | 'serverless' | 'standalone' | 'browser';
|
|
29
|
+
/** Heartbeat value stored in Redis. */
|
|
30
|
+
export interface HeartbeatValue {
|
|
31
|
+
nodeId: string;
|
|
32
|
+
startedAt: number;
|
|
33
|
+
lastBeat: number;
|
|
34
|
+
sessionCount: number;
|
|
35
|
+
}
|
|
36
|
+
/** Result of a session takeover attempt. */
|
|
37
|
+
export interface TakeoverResult {
|
|
38
|
+
claimed: boolean;
|
|
39
|
+
sessionId: string;
|
|
40
|
+
previousNodeId?: string;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=ha.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ha.types.d.ts","sourceRoot":"","sources":["../../src/ha/ha.types.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,iFAAiF;IACjF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iGAAiG;IACjG,cAAc,EAAE,MAAM,CAAC;IACvB,8FAA8F;IAC9F,qBAAqB,EAAE,MAAM,CAAC;IAC9B,4DAA4D;IAC5D,cAAc,EAAE,MAAM,CAAC;IACvB,yGAAyG;IACzG,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0GAA0G;IAC1G,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,uCAAuC;AACvC,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,QAAQ,CAOhD,CAAC;AAEF,4DAA4D;AAC5D,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,YAAY,GAAG,YAAY,GAAG,SAAS,CAAC;AAErF,uCAAuC;AACvC,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,4CAA4C;AAC5C,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Heartbeat Service
|
|
3
|
+
*
|
|
4
|
+
* Writes a TTL key to Redis at a regular interval to signal pod liveness.
|
|
5
|
+
* When a pod dies, its heartbeat key expires and other pods can detect the death.
|
|
6
|
+
*/
|
|
7
|
+
import { type HaConfig, type HeartbeatValue } from './ha.types';
|
|
8
|
+
/**
|
|
9
|
+
* Minimal Redis client interface (subset of ioredis).
|
|
10
|
+
* Allows the service to work with any Redis-compatible client.
|
|
11
|
+
*/
|
|
12
|
+
export interface HeartbeatRedisClient {
|
|
13
|
+
set(key: string, value: string, expiryMode: 'PX', time: number): Promise<unknown>;
|
|
14
|
+
get(key: string): Promise<string | null>;
|
|
15
|
+
del(key: string): Promise<number>;
|
|
16
|
+
exists(key: string): Promise<number>;
|
|
17
|
+
keys(pattern: string): Promise<string[]>;
|
|
18
|
+
}
|
|
19
|
+
export declare class HeartbeatService {
|
|
20
|
+
private readonly redis;
|
|
21
|
+
private readonly nodeId;
|
|
22
|
+
private timer;
|
|
23
|
+
private readonly startedAt;
|
|
24
|
+
private readonly keyPrefix;
|
|
25
|
+
private readonly intervalMs;
|
|
26
|
+
private readonly ttlMs;
|
|
27
|
+
private sessionCount;
|
|
28
|
+
constructor(redis: HeartbeatRedisClient, nodeId: string, config?: Partial<HaConfig>);
|
|
29
|
+
/** Start the heartbeat interval. */
|
|
30
|
+
start(): void;
|
|
31
|
+
/** Stop the heartbeat and remove the key. */
|
|
32
|
+
stop(): Promise<void>;
|
|
33
|
+
/** Update the tracked session count (for monitoring). */
|
|
34
|
+
setSessionCount(count: number): void;
|
|
35
|
+
/** Check if a specific node's heartbeat is alive. */
|
|
36
|
+
isAlive(nodeId: string): Promise<boolean>;
|
|
37
|
+
/** Get the heartbeat value for a specific node. */
|
|
38
|
+
getHeartbeat(nodeId: string): Promise<HeartbeatValue | null>;
|
|
39
|
+
/** Get all alive node IDs by scanning heartbeat keys. */
|
|
40
|
+
getAliveNodes(): Promise<string[]>;
|
|
41
|
+
private heartbeatKey;
|
|
42
|
+
private writeHeartbeat;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=heartbeat.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heartbeat.service.d.ts","sourceRoot":"","sources":["../../src/ha/heartbeat.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAqB,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAEnF;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAClF,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACzC,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAClC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CAC1C;AAED,qBAAa,gBAAgB;IASzB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM;IATzB,OAAO,CAAC,KAAK,CAA6C;IAC1D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,YAAY,CAAK;gBAGN,KAAK,EAAE,oBAAoB,EAC3B,MAAM,EAAE,MAAM,EAC/B,MAAM,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;IAQ5B,oCAAoC;IACpC,KAAK,IAAI,IAAI;IAQb,6CAA6C;IACvC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAY3B,yDAAyD;IACzD,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIpC,qDAAqD;IAC/C,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAK/C,mDAAmD;IAC7C,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAUlE,yDAAyD;IACnD,aAAa,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAKxC,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,cAAc;CAUvB"}
|
package/ha/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { HaManager, type HaManagerOptions } from './ha-manager';
|
|
2
|
+
export { HeartbeatService, type HeartbeatRedisClient } from './heartbeat.service';
|
|
3
|
+
export { attemptSessionTakeover, type TakeoverRedisClient } from './session-takeover';
|
|
4
|
+
export { NotificationRelay, type RelayRedisClient, type RelayHandler, type RelayMessage } from './notification-relay';
|
|
5
|
+
export { DEFAULT_FRONTMCP_NODE_COOKIE, DEFAULT_FRONTMCP_MACHINE_ID_HEADER } from './ha.constants';
|
|
6
|
+
export type { HaConfig, DeploymentMode, HeartbeatValue, TakeoverResult } from './ha.types';
|
|
7
|
+
export { DEFAULT_HA_CONFIG } from './ha.types';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ha/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACtH,OAAO,EAAE,4BAA4B,EAAE,kCAAkC,EAAE,MAAM,gBAAgB,CAAC;AAClG,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notification Relay — Redis Pub/Sub Cross-Pod Messaging
|
|
3
|
+
*
|
|
4
|
+
* Each pod subscribes to its own channel (`mcp:ha:notify:{nodeId}`).
|
|
5
|
+
* When a notification targets a session on a different pod,
|
|
6
|
+
* it's published to that pod's channel for local delivery.
|
|
7
|
+
*/
|
|
8
|
+
import { type HaConfig } from './ha.types';
|
|
9
|
+
/**
|
|
10
|
+
* Notification message relayed between pods.
|
|
11
|
+
*/
|
|
12
|
+
export interface RelayMessage {
|
|
13
|
+
/** Target session ID */
|
|
14
|
+
sessionId: string;
|
|
15
|
+
/** MCP notification to deliver */
|
|
16
|
+
notification: {
|
|
17
|
+
method: string;
|
|
18
|
+
params?: Record<string, unknown>;
|
|
19
|
+
};
|
|
20
|
+
/** Source pod that originated the notification */
|
|
21
|
+
sourceNodeId: string;
|
|
22
|
+
/** Timestamp of relay */
|
|
23
|
+
timestamp: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Handler invoked when a relay message arrives for this pod.
|
|
27
|
+
*/
|
|
28
|
+
export type RelayHandler = (message: RelayMessage) => void | Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Minimal Redis pub/sub client interface.
|
|
31
|
+
* Requires a dedicated connection for subscribing (ioredis pattern).
|
|
32
|
+
*/
|
|
33
|
+
export interface RelayRedisClient {
|
|
34
|
+
subscribe(channel: string): Promise<unknown>;
|
|
35
|
+
unsubscribe(channel: string): Promise<unknown>;
|
|
36
|
+
publish(channel: string, message: string): Promise<number>;
|
|
37
|
+
on(event: 'message', handler: (channel: string, message: string) => void): void;
|
|
38
|
+
removeAllListeners(event: 'message'): void;
|
|
39
|
+
removeListener(event: 'message', handler: (channel: string, message: string) => void): void;
|
|
40
|
+
}
|
|
41
|
+
export declare class NotificationRelay {
|
|
42
|
+
private readonly subscriber;
|
|
43
|
+
private readonly publisher;
|
|
44
|
+
private readonly nodeId;
|
|
45
|
+
private handler;
|
|
46
|
+
private readonly channel;
|
|
47
|
+
private readonly keyPrefix;
|
|
48
|
+
constructor(subscriber: RelayRedisClient, publisher: RelayRedisClient, nodeId: string, config?: Partial<HaConfig>);
|
|
49
|
+
/** Start listening for relay messages on this pod's channel. */
|
|
50
|
+
subscribe(handler: RelayHandler): Promise<void>;
|
|
51
|
+
/** Stop listening and clean up. */
|
|
52
|
+
unsubscribe(): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Publish a notification to a target pod's channel.
|
|
55
|
+
* Used when a notification targets a session not owned by this pod.
|
|
56
|
+
*/
|
|
57
|
+
publish(targetNodeId: string, sessionId: string, notification: RelayMessage['notification']): Promise<void>;
|
|
58
|
+
private onMessage;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=notification-relay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-relay.d.ts","sourceRoot":"","sources":["../../src/ha/notification-relay.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,wBAAwB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,YAAY,EA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EAAE,gBAAgB,EAC3B,MAAM,EAAE,MAAM,EAC/B,MAAM,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;IAM5B,gEAAgE;IAC1D,SAAS,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAMrD,mCAAmC;IAC7B,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAUlC;;;OAGG;IACG,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAWjH,OAAO,CAAC,SAAS,CASf;CACH"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session Takeover — Decentralized Lua CAS
|
|
3
|
+
*
|
|
4
|
+
* When a pod dies, surviving pods race to claim orphaned sessions.
|
|
5
|
+
* The Lua script atomically checks and updates the nodeId (compare-and-swap),
|
|
6
|
+
* ensuring exactly-once ownership transfer with no leader election.
|
|
7
|
+
*/
|
|
8
|
+
import type { TakeoverResult } from './ha.types';
|
|
9
|
+
/**
|
|
10
|
+
* Minimal Redis client interface for Lua script execution.
|
|
11
|
+
*/
|
|
12
|
+
export interface TakeoverRedisClient {
|
|
13
|
+
eval(script: string, numkeys: number, ...args: (string | number)[]): Promise<unknown>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Attempt to claim an orphaned session via atomic Lua CAS.
|
|
17
|
+
*
|
|
18
|
+
* Multiple pods may call this concurrently for the same session.
|
|
19
|
+
* Exactly one will succeed (return claimed=true), others get claimed=false.
|
|
20
|
+
*
|
|
21
|
+
* @param redis - Redis client supporting eval
|
|
22
|
+
* @param sessionKey - Full Redis key for the session
|
|
23
|
+
* @param expectedOldNodeId - The dead pod's nodeId (from StoredSession)
|
|
24
|
+
* @param newNodeId - This pod's nodeId (getMachineId())
|
|
25
|
+
* @returns Whether this pod successfully claimed the session
|
|
26
|
+
*/
|
|
27
|
+
export declare function attemptSessionTakeover(redis: TakeoverRedisClient, sessionKey: string, expectedOldNodeId: string, newNodeId: string): Promise<TakeoverResult>;
|
|
28
|
+
//# sourceMappingURL=session-takeover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-takeover.d.ts","sourceRoot":"","sources":["../../src/ha/session-takeover.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACvF;AAwCD;;;;;;;;;;;GAWG;AACH,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,mBAAmB,EAC1B,UAAU,EAAE,MAAM,EAClB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,cAAc,CAAC,CAQzB"}
|
|
@@ -38,6 +38,11 @@ export interface HealthScopeView {
|
|
|
38
38
|
};
|
|
39
39
|
}>;
|
|
40
40
|
};
|
|
41
|
+
readonly haManager?: {
|
|
42
|
+
isStarted(): boolean;
|
|
43
|
+
isNodeAlive(nodeId: string): Promise<boolean>;
|
|
44
|
+
getNodeId(): string;
|
|
45
|
+
};
|
|
41
46
|
}
|
|
42
47
|
export declare class HealthService {
|
|
43
48
|
private readonly probes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health.service.d.ts","sourceRoot":"","sources":["../../src/health/health.service.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"health.service.d.ts","sourceRoot":"","sources":["../../src/health/health.service.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,sB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AAS,IAAI,MAAM,CAAC;KACrB,CAAC;CACH;AAED,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAyB;IAChD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAoB;IAC/C,OAAO,CAAC,SAAS,CAAC,CAAkB;gBAExB,MAAM,EAAE,sBAAsB,EAAE,UAAU,EAAE,iBAAiB;IASzE;;OAEG;IACH,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAIvC;;;;;;;OAOG;IACH,kBAAkB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;IA8ChD;;OAEG;IACH,UAAU,IAAI,eAAe;IAsB7B;;OAEG;IACG,SAAS,IAAI,OAAO,CAAC,cAAc,CAAC;IAkC1C;;OAEG;IACH,aAAa,IAAI,MAAM;IAIvB;;OAEG;IACH,SAAS,IAAI,SAAS,WAAW,EAAE;IAInC;;OAEG;IACH,YAAY,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;YAQ5B,mBAAmB;IA4BjC,OAAO,CAAC,kBAAkB;IA0B1B,OAAO,CAAC,qBAAqB;CAO9B"}
|
package/index.d.ts
CHANGED
|
@@ -4,10 +4,13 @@ export { getServerlessHandler, getServerlessHandlerAsync, setServerlessHandler,
|
|
|
4
4
|
export * from './common';
|
|
5
5
|
export * from './errors';
|
|
6
6
|
export * from './elicitation';
|
|
7
|
+
export * from './task';
|
|
7
8
|
export { default as LoggerRegistry } from './logger/logger.registry';
|
|
8
9
|
export * from '@frontmcp/guard';
|
|
9
10
|
export * from './remote-mcp';
|
|
10
11
|
export * from './esm-loader';
|
|
12
|
+
export { default } from '@frontmcp/lazy-zod';
|
|
13
|
+
export { z, eagerZ, lazyZ, isLazy, forceMaterialize, LazyZodSchema, type InferLazy, toJSONSchema, type JSONSchema, NEVER, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEnum, ZodError, ZodIntersection, ZodLiteral, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodRecord, ZodString, ZodSymbol, ZodTuple, ZodType, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, type ZodTypeAny, type ZodRawShape, type infer, type input, type output, } from '@frontmcp/lazy-zod';
|
|
11
14
|
export type { GetPromptResult, ReadResourceResult, CallToolResult, ListToolsResult, ListResourcesResult, ListResourceTemplatesResult, ListPromptsResult, ServerCapabilities, Implementation, ClientCapabilities, TextContent, ImageContent, PromptMessage, } from '@frontmcp/protocol';
|
|
12
15
|
export { FrontMcpContext, Context, FrontMcpContextStorage, FRONTMCP_CONTEXT, FrontMcpContextProvider, parseTraceContext, generateTraceContext, createChildSpanContext, } from './context';
|
|
13
16
|
export type { FrontMcpContextArgs, FrontMcpContextConfig, RequestMetadata, TransportAccessor, TraceContext, } from './context';
|
|
@@ -17,6 +20,8 @@ export type { JobRegistryInterface, IndexedJob, JobChangeEvent, JobChangeKind, J
|
|
|
17
20
|
export type { JobStateStore, JobRunRecord, WorkflowRunRecord, JobExecutionState, JobDefinitionStore } from './job';
|
|
18
21
|
export { WorkflowRegistry, WorkflowInstance, WorkflowEngine, WorkflowStepExecutor, WorkflowEmitter } from './workflow';
|
|
19
22
|
export type { WorkflowRegistryInterface, IndexedWorkflow, WorkflowChangeEvent, WorkflowChangeKind, WorkflowChangeScope, } from './workflow';
|
|
23
|
+
export { ChannelInstance, ChannelRegistry, ChannelEmitter, ChannelNotificationService, ChannelEventBus, ChannelReplyTool, } from './channel';
|
|
24
|
+
export type { ChannelRegistryInterface, IndexedChannel, ChannelChangeEvent, ChannelChangeKind, ChannelChangeScope, ChannelReplyInput, RegisterChannelCapabilitiesArgs, ChannelCapabilitiesResult, } from './channel';
|
|
20
25
|
export { SkillRegistry, SkillInstance, createSkillInstance, SkillEmitter, MemorySkillProvider, SkillToolValidator, createSkillStorageProvider, createMemorySkillProvider, normalizeSkill, isSkillRecord, formatSkillForLLM, } from './skill';
|
|
21
26
|
export type { SkillRegistryInterface, IndexedSkill, SkillChangeEvent, SkillChangeKind, SkillChangeScope, SkillStorageProvider, SkillStorageProviderType, SkillSearchOptions, SkillSearchResult, SkillLoadResult, SkillListOptions, SkillListResult, ToolValidationResult, SkillStorageFactoryOptions, SkillStorageFactoryResult, } from './skill';
|
|
22
27
|
export { Agent, FrontMcpAgent, agent, frontMcpAgent, AgentContext, withConfig, } from './agent';
|
|
@@ -24,46 +29,58 @@ export type { AgentMetadata, AgentLlmConfig, AgentLlmBuiltinConfig, AgentSwarmCo
|
|
|
24
29
|
export { OpenAIAdapter, AnthropicAdapter } from './agent/adapters';
|
|
25
30
|
export type { OpenAIAdapterConfig, OpenAIApiMode, AnthropicAdapterConfig } from './agent/adapters';
|
|
26
31
|
export declare const ToolHook: {
|
|
27
|
-
Stage: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "
|
|
28
|
-
Will: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "
|
|
29
|
-
Did: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "
|
|
30
|
-
Around: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "
|
|
32
|
+
Stage: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "checkEntryAuthorities" | "validateOutput" | "validateInput" | "findTool" | "checkToolAuthorization" | "createTaskIfRequested" | "createToolCallContext" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "applyUI", opts?: import("./common").HookOptions<import("./tool/flows/call-tool.flow").default>) => MethodDecorator;
|
|
33
|
+
Will: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "checkEntryAuthorities" | "validateOutput" | "validateInput" | "findTool" | "checkToolAuthorization" | "createTaskIfRequested" | "createToolCallContext" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "applyUI", opts?: import("./common").HookOptions<import("./tool/flows/call-tool.flow").default>) => MethodDecorator;
|
|
34
|
+
Did: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "checkEntryAuthorities" | "validateOutput" | "validateInput" | "findTool" | "checkToolAuthorization" | "createTaskIfRequested" | "createToolCallContext" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "applyUI", opts?: import("./common").HookOptions<import("./tool/flows/call-tool.flow").default>) => MethodDecorator;
|
|
35
|
+
Around: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "checkEntryAuthorities" | "validateOutput" | "validateInput" | "findTool" | "checkToolAuthorization" | "createTaskIfRequested" | "createToolCallContext" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "applyUI", opts?: import("./common").HookOptions<import("./tool/flows/call-tool.flow").default>) => MethodDecorator;
|
|
31
36
|
};
|
|
32
37
|
export declare const ListToolsHook: {
|
|
33
|
-
Stage: (stage: "parseInput" | "ensureRemoteCapabilities" | "
|
|
34
|
-
Will: (stage: "parseInput" | "ensureRemoteCapabilities" | "
|
|
35
|
-
Did: (stage: "parseInput" | "ensureRemoteCapabilities" | "
|
|
36
|
-
Around: (stage: "parseInput" | "ensureRemoteCapabilities" | "
|
|
38
|
+
Stage: (stage: "parseInput" | "ensureRemoteCapabilities" | "filterByAuthorities" | "resolveConflicts" | "findTools" | "parseTools", opts?: import("./common").HookOptions<import("./tool/flows/tools-list.flow").default>) => MethodDecorator;
|
|
39
|
+
Will: (stage: "parseInput" | "ensureRemoteCapabilities" | "filterByAuthorities" | "resolveConflicts" | "findTools" | "parseTools", opts?: import("./common").HookOptions<import("./tool/flows/tools-list.flow").default>) => MethodDecorator;
|
|
40
|
+
Did: (stage: "parseInput" | "ensureRemoteCapabilities" | "filterByAuthorities" | "resolveConflicts" | "findTools" | "parseTools", opts?: import("./common").HookOptions<import("./tool/flows/tools-list.flow").default>) => MethodDecorator;
|
|
41
|
+
Around: (stage: "parseInput" | "ensureRemoteCapabilities" | "filterByAuthorities" | "resolveConflicts" | "findTools" | "parseTools", opts?: import("./common").HookOptions<import("./tool/flows/tools-list.flow").default>) => MethodDecorator;
|
|
37
42
|
};
|
|
38
43
|
export declare const HttpHook: {
|
|
39
|
-
Stage: (stage: "finalize" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "traceRequest" | "checkAuthorization" | "
|
|
40
|
-
Will: (stage: "finalize" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "traceRequest" | "checkAuthorization" | "
|
|
41
|
-
Did: (stage: "finalize" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "traceRequest" | "checkAuthorization" | "
|
|
42
|
-
Around: (stage: "finalize" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "traceRequest" | "checkAuthorization" | "
|
|
44
|
+
Stage: (stage: "finalize" | "router" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "traceRequest" | "checkAuthorization" | "handleLegacySse" | "handleSse" | "handleStreamableHttp" | "handleStatefulHttp" | "handleStatelessHttp" | "handleDeleteSession" | "audit" | "metrics", opts?: import("./common").HookOptions<import("./scope/flows/http.request.flow").default>) => MethodDecorator;
|
|
45
|
+
Will: (stage: "finalize" | "router" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "traceRequest" | "checkAuthorization" | "handleLegacySse" | "handleSse" | "handleStreamableHttp" | "handleStatefulHttp" | "handleStatelessHttp" | "handleDeleteSession" | "audit" | "metrics", opts?: import("./common").HookOptions<import("./scope/flows/http.request.flow").default>) => MethodDecorator;
|
|
46
|
+
Did: (stage: "finalize" | "router" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "traceRequest" | "checkAuthorization" | "handleLegacySse" | "handleSse" | "handleStreamableHttp" | "handleStatefulHttp" | "handleStatelessHttp" | "handleDeleteSession" | "audit" | "metrics", opts?: import("./common").HookOptions<import("./scope/flows/http.request.flow").default>) => MethodDecorator;
|
|
47
|
+
Around: (stage: "finalize" | "router" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "traceRequest" | "checkAuthorization" | "handleLegacySse" | "handleSse" | "handleStreamableHttp" | "handleStatefulHttp" | "handleStatelessHttp" | "handleDeleteSession" | "audit" | "metrics", opts?: import("./common").HookOptions<import("./scope/flows/http.request.flow").default>) => MethodDecorator;
|
|
43
48
|
};
|
|
44
49
|
export declare const ResourceHook: {
|
|
45
|
-
Stage: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "
|
|
46
|
-
Will: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "
|
|
47
|
-
Did: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "
|
|
48
|
-
Around: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "
|
|
50
|
+
Stage: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "findResource" | "checkEntryAuthorities" | "createResourceContext" | "validateOutput", opts?: import("./common").HookOptions<import("./resource").ReadResourceFlow>) => MethodDecorator;
|
|
51
|
+
Will: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "findResource" | "checkEntryAuthorities" | "createResourceContext" | "validateOutput", opts?: import("./common").HookOptions<import("./resource").ReadResourceFlow>) => MethodDecorator;
|
|
52
|
+
Did: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "findResource" | "checkEntryAuthorities" | "createResourceContext" | "validateOutput", opts?: import("./common").HookOptions<import("./resource").ReadResourceFlow>) => MethodDecorator;
|
|
53
|
+
Around: (stage: "execute" | "finalize" | "parseInput" | "ensureRemoteCapabilities" | "findResource" | "checkEntryAuthorities" | "createResourceContext" | "validateOutput", opts?: import("./common").HookOptions<import("./resource").ReadResourceFlow>) => MethodDecorator;
|
|
49
54
|
};
|
|
50
55
|
export declare const ListResourcesHook: {
|
|
51
|
-
Stage: (stage: "parseInput" | "ensureRemoteCapabilities" | "
|
|
52
|
-
Will: (stage: "parseInput" | "ensureRemoteCapabilities" | "
|
|
53
|
-
Did: (stage: "parseInput" | "ensureRemoteCapabilities" | "
|
|
54
|
-
Around: (stage: "parseInput" | "ensureRemoteCapabilities" | "
|
|
56
|
+
Stage: (stage: "parseInput" | "ensureRemoteCapabilities" | "findResources" | "filterByAuthorities" | "resolveConflicts" | "parseResources", opts?: import("./common").HookOptions<import("./resource").ResourcesListFlow>) => MethodDecorator;
|
|
57
|
+
Will: (stage: "parseInput" | "ensureRemoteCapabilities" | "findResources" | "filterByAuthorities" | "resolveConflicts" | "parseResources", opts?: import("./common").HookOptions<import("./resource").ResourcesListFlow>) => MethodDecorator;
|
|
58
|
+
Did: (stage: "parseInput" | "ensureRemoteCapabilities" | "findResources" | "filterByAuthorities" | "resolveConflicts" | "parseResources", opts?: import("./common").HookOptions<import("./resource").ResourcesListFlow>) => MethodDecorator;
|
|
59
|
+
Around: (stage: "parseInput" | "ensureRemoteCapabilities" | "findResources" | "filterByAuthorities" | "resolveConflicts" | "parseResources", opts?: import("./common").HookOptions<import("./resource").ResourcesListFlow>) => MethodDecorator;
|
|
55
60
|
};
|
|
56
61
|
export declare const ListResourceTemplatesHook: {
|
|
57
|
-
Stage: (stage: "parseInput" | "ensureRemoteCapabilities" | "resolveConflicts" | "findTemplates" | "parseTemplates", opts?: import("./common").HookOptions<import("./resource").ResourceTemplatesListFlow>) => MethodDecorator;
|
|
58
|
-
Will: (stage: "parseInput" | "ensureRemoteCapabilities" | "resolveConflicts" | "findTemplates" | "parseTemplates", opts?: import("./common").HookOptions<import("./resource").ResourceTemplatesListFlow>) => MethodDecorator;
|
|
59
|
-
Did: (stage: "parseInput" | "ensureRemoteCapabilities" | "resolveConflicts" | "findTemplates" | "parseTemplates", opts?: import("./common").HookOptions<import("./resource").ResourceTemplatesListFlow>) => MethodDecorator;
|
|
60
|
-
Around: (stage: "parseInput" | "ensureRemoteCapabilities" | "resolveConflicts" | "findTemplates" | "parseTemplates", opts?: import("./common").HookOptions<import("./resource").ResourceTemplatesListFlow>) => MethodDecorator;
|
|
62
|
+
Stage: (stage: "parseInput" | "ensureRemoteCapabilities" | "filterByAuthorities" | "resolveConflicts" | "findTemplates" | "parseTemplates", opts?: import("./common").HookOptions<import("./resource").ResourceTemplatesListFlow>) => MethodDecorator;
|
|
63
|
+
Will: (stage: "parseInput" | "ensureRemoteCapabilities" | "filterByAuthorities" | "resolveConflicts" | "findTemplates" | "parseTemplates", opts?: import("./common").HookOptions<import("./resource").ResourceTemplatesListFlow>) => MethodDecorator;
|
|
64
|
+
Did: (stage: "parseInput" | "ensureRemoteCapabilities" | "filterByAuthorities" | "resolveConflicts" | "findTemplates" | "parseTemplates", opts?: import("./common").HookOptions<import("./resource").ResourceTemplatesListFlow>) => MethodDecorator;
|
|
65
|
+
Around: (stage: "parseInput" | "ensureRemoteCapabilities" | "filterByAuthorities" | "resolveConflicts" | "findTemplates" | "parseTemplates", opts?: import("./common").HookOptions<import("./resource").ResourceTemplatesListFlow>) => MethodDecorator;
|
|
61
66
|
};
|
|
62
67
|
export declare const AgentCallHook: {
|
|
63
|
-
Stage: (stage: "execute" | "finalize" | "parseInput" | "
|
|
64
|
-
Will: (stage: "execute" | "finalize" | "parseInput" | "
|
|
65
|
-
Did: (stage: "execute" | "finalize" | "parseInput" | "
|
|
66
|
-
Around: (stage: "execute" | "finalize" | "parseInput" | "
|
|
68
|
+
Stage: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "validateInput" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("./common").HookOptions<import("./agent").CallAgentFlow>) => MethodDecorator;
|
|
69
|
+
Will: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "validateInput" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("./common").HookOptions<import("./agent").CallAgentFlow>) => MethodDecorator;
|
|
70
|
+
Did: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "validateInput" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("./common").HookOptions<import("./agent").CallAgentFlow>) => MethodDecorator;
|
|
71
|
+
Around: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "validateInput" | "acquireQuota" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("./common").HookOptions<import("./agent").CallAgentFlow>) => MethodDecorator;
|
|
72
|
+
};
|
|
73
|
+
export declare const ChannelSendHook: {
|
|
74
|
+
Stage: (stage: "finalize" | "parseInput" | "send", opts?: import("./common").HookOptions<import("./channel/flows/send-channel-notification.flow").default>) => MethodDecorator;
|
|
75
|
+
Will: (stage: "finalize" | "parseInput" | "send", opts?: import("./common").HookOptions<import("./channel/flows/send-channel-notification.flow").default>) => MethodDecorator;
|
|
76
|
+
Did: (stage: "finalize" | "parseInput" | "send", opts?: import("./common").HookOptions<import("./channel/flows/send-channel-notification.flow").default>) => MethodDecorator;
|
|
77
|
+
Around: (stage: "finalize" | "parseInput" | "send", opts?: import("./common").HookOptions<import("./channel/flows/send-channel-notification.flow").default>) => MethodDecorator;
|
|
78
|
+
};
|
|
79
|
+
export declare const ChannelListHook: {
|
|
80
|
+
Stage: (stage: "finalize" | "listChannels", opts?: import("./common").HookOptions<import("./channel/flows/list-channels.flow").default>) => MethodDecorator;
|
|
81
|
+
Will: (stage: "finalize" | "listChannels", opts?: import("./common").HookOptions<import("./channel/flows/list-channels.flow").default>) => MethodDecorator;
|
|
82
|
+
Did: (stage: "finalize" | "listChannels", opts?: import("./common").HookOptions<import("./channel/flows/list-channels.flow").default>) => MethodDecorator;
|
|
83
|
+
Around: (stage: "finalize" | "listChannels", opts?: import("./common").HookOptions<import("./channel/flows/list-channels.flow").default>) => MethodDecorator;
|
|
67
84
|
};
|
|
68
85
|
export { ConfigPlugin, ConfigService, ConfigMissingError, ConfigValidationError, ConfigPluginConfigToken, getConfig, tryGetConfig, loadEnvFiles, parseEnvContent, parseEnvContentSync, populateProcessEnv, pathToEnvKey, setNestedValue, getNestedValue, extractSchemaPaths, mapEnvToNestedConfig, loadConfig, deepMerge, } from './builtin/config';
|
|
69
86
|
export type { ConfigPluginOptions, ConfigPluginOptionsInput, ParsedEnvConfig, ConfigLoaderOptions, ConfigEntityType, ConfigResolutionContext, ConfigResolver, } from './builtin/config';
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAqB1B,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,EACpB,2BAA2B,EAC3B,yBAAyB,GAC1B,MAAM,gCAAgC,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrE,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAqB1B,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,oBAAo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