@frontmcp/sdk 0.12.2 → 1.0.0-beta.10
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/adapter/adapter.instance.d.ts +6 -0
- package/adapter/adapter.instance.d.ts.map +1 -1
- package/agent/adapters/adapter.factory.d.ts +7 -9
- package/agent/adapters/adapter.factory.d.ts.map +1 -1
- package/agent/adapters/anthropic.adapter.d.ts +151 -0
- package/agent/adapters/anthropic.adapter.d.ts.map +1 -0
- package/agent/adapters/base.adapter.d.ts.map +1 -1
- package/agent/adapters/index.d.ts +38 -24
- package/agent/adapters/index.d.ts.map +1 -1
- package/agent/adapters/openai.adapter.d.ts +288 -0
- package/agent/adapters/openai.adapter.d.ts.map +1 -0
- package/agent/adapters/providers/index.d.ts +9 -7
- package/agent/adapters/providers/index.d.ts.map +1 -1
- package/agent/adapters/providers/types.d.ts +5 -1
- package/agent/adapters/providers/types.d.ts.map +1 -1
- package/agent/agent-execution-loop.d.ts.map +1 -1
- package/agent/agent.instance.d.ts +7 -4
- package/agent/agent.instance.d.ts.map +1 -1
- package/agent/agent.registry.d.ts +1 -1
- package/agent/agent.registry.d.ts.map +1 -1
- package/agent/agent.scope.d.ts +42 -49
- package/agent/agent.scope.d.ts.map +1 -1
- package/agent/flows/call-agent.flow.d.ts +12 -3
- package/agent/flows/call-agent.flow.d.ts.map +1 -1
- package/agent/index.d.ts +12 -6
- package/agent/index.d.ts.map +1 -1
- package/app/app.registry.d.ts.map +1 -1
- package/app/app.utils.d.ts.map +1 -1
- package/app/instances/app.esm.instance.d.ts +80 -0
- package/app/instances/app.esm.instance.d.ts.map +1 -0
- package/app/instances/app.local.instance.d.ts +3 -3
- package/app/instances/app.local.instance.d.ts.map +1 -1
- package/app/instances/app.remote.instance.d.ts +7 -4
- package/app/instances/app.remote.instance.d.ts.map +1 -1
- package/app/instances/esm-normalize.utils.d.ts +72 -0
- package/app/instances/esm-normalize.utils.d.ts.map +1 -0
- package/app/instances/index.d.ts +1 -0
- package/app/instances/index.d.ts.map +1 -1
- package/auth/auth.registry.d.ts +2 -2
- package/auth/auth.registry.d.ts.map +1 -1
- package/auth/cimd/index.d.ts +1 -1
- package/auth/cimd/index.d.ts.map +1 -1
- package/auth/instances/instance.local-primary-auth.d.ts +2 -3
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
- package/auth/instances/instance.remote-primary-auth.d.ts +0 -1
- package/auth/instances/instance.remote-primary-auth.d.ts.map +1 -1
- package/auth/session/record/session.base.d.ts.map +1 -1
- package/auth/session/transport-session.manager.d.ts.map +1 -1
- package/auth/session/utils/session-id.utils.d.ts +9 -6
- package/auth/session/utils/session-id.utils.d.ts.map +1 -1
- package/builtin/config/config.plugin.d.ts.map +1 -1
- package/builtin/config/index.d.ts +2 -1
- package/builtin/config/index.d.ts.map +1 -1
- package/builtin/config/providers/config-loader.d.ts.map +1 -1
- package/builtin/config/providers/env-loader.d.ts.map +1 -1
- package/common/decorators/adapter.decorator.d.ts +1 -1
- package/common/decorators/adapter.decorator.d.ts.map +1 -1
- package/common/decorators/agent.decorator.d.ts +34 -9
- package/common/decorators/agent.decorator.d.ts.map +1 -1
- package/common/decorators/app.decorator.d.ts +33 -3
- package/common/decorators/app.decorator.d.ts.map +1 -1
- package/common/decorators/auth-provider.decorator.d.ts +1 -1
- package/common/decorators/auth-provider.decorator.d.ts.map +1 -1
- package/common/decorators/flow.decorator.d.ts +1 -1
- package/common/decorators/flow.decorator.d.ts.map +1 -1
- package/common/decorators/front-mcp.decorator.d.ts.map +1 -1
- package/common/decorators/job.decorator.d.ts +64 -5
- package/common/decorators/job.decorator.d.ts.map +1 -1
- package/common/decorators/logger.decorator.d.ts +1 -1
- package/common/decorators/logger.decorator.d.ts.map +1 -1
- package/common/decorators/prompt.decorator.d.ts +19 -3
- package/common/decorators/prompt.decorator.d.ts.map +1 -1
- package/common/decorators/provider.decorator.d.ts +1 -1
- package/common/decorators/provider.decorator.d.ts.map +1 -1
- package/common/decorators/resource.decorator.d.ts +22 -2
- package/common/decorators/resource.decorator.d.ts.map +1 -1
- package/common/decorators/skill.decorator.d.ts +11 -1
- package/common/decorators/skill.decorator.d.ts.map +1 -1
- package/common/decorators/tool.decorator.d.ts +38 -47
- package/common/decorators/tool.decorator.d.ts.map +1 -1
- package/common/dynamic/dynamic.utils.d.ts +1 -1
- package/common/entries/adapter.entry.d.ts.map +1 -1
- package/common/entries/agent.entry.d.ts +5 -7
- package/common/entries/agent.entry.d.ts.map +1 -1
- package/common/entries/app.entry.d.ts +8 -5
- package/common/entries/app.entry.d.ts.map +1 -1
- package/common/entries/logger.entry.d.ts.map +1 -1
- package/common/entries/plugin.entry.d.ts +1 -2
- package/common/entries/plugin.entry.d.ts.map +1 -1
- package/common/entries/prompt.entry.d.ts +3 -3
- package/common/entries/prompt.entry.d.ts.map +1 -1
- package/common/entries/provider.entry.d.ts +1 -2
- package/common/entries/provider.entry.d.ts.map +1 -1
- package/common/entries/resource.entry.d.ts +3 -3
- package/common/entries/resource.entry.d.ts.map +1 -1
- package/common/entries/scope.entry.d.ts +25 -8
- package/common/entries/scope.entry.d.ts.map +1 -1
- package/common/entries/tool.entry.d.ts +15 -4
- package/common/entries/tool.entry.d.ts.map +1 -1
- package/common/interfaces/adapter.interface.d.ts +15 -0
- package/common/interfaces/adapter.interface.d.ts.map +1 -1
- package/common/interfaces/agent.interface.d.ts +2 -2
- package/common/interfaces/agent.interface.d.ts.map +1 -1
- package/common/interfaces/app.interface.d.ts +1 -4
- package/common/interfaces/app.interface.d.ts.map +1 -1
- package/common/interfaces/auth-hook.interface.d.ts.map +1 -1
- package/common/interfaces/execution-context.interface.d.ts +1 -2
- package/common/interfaces/execution-context.interface.d.ts.map +1 -1
- package/common/interfaces/flow.interface.d.ts.map +1 -1
- package/common/interfaces/front-mcp.interface.d.ts.map +1 -1
- package/common/interfaces/internal/registry.interface.d.ts +18 -88
- package/common/interfaces/internal/registry.interface.d.ts.map +1 -1
- package/common/interfaces/job.interface.d.ts +1 -1
- package/common/interfaces/job.interface.d.ts.map +1 -1
- package/common/interfaces/plugin.interface.d.ts +1 -3
- package/common/interfaces/plugin.interface.d.ts.map +1 -1
- package/common/interfaces/prompt.interface.d.ts +3 -3
- package/common/interfaces/prompt.interface.d.ts.map +1 -1
- package/common/interfaces/provider.interface.d.ts +1 -3
- package/common/interfaces/provider.interface.d.ts.map +1 -1
- package/common/interfaces/resource.interface.d.ts +1 -1
- package/common/interfaces/resource.interface.d.ts.map +1 -1
- package/common/interfaces/scope.interface.d.ts +2 -4
- package/common/interfaces/scope.interface.d.ts.map +1 -1
- package/common/interfaces/server.interface.d.ts +1 -1
- package/common/interfaces/server.interface.d.ts.map +1 -1
- package/common/interfaces/skill.interface.d.ts +1 -1
- package/common/interfaces/skill.interface.d.ts.map +1 -1
- package/common/interfaces/tool.interface.d.ts +1 -1
- package/common/interfaces/tool.interface.d.ts.map +1 -1
- package/common/interfaces/workflow.interface.d.ts +1 -1
- package/common/interfaces/workflow.interface.d.ts.map +1 -1
- package/common/metadata/adapter.metadata.d.ts.map +1 -1
- package/common/metadata/agent.metadata.d.ts +56 -7
- package/common/metadata/agent.metadata.d.ts.map +1 -1
- package/common/metadata/app-filter.metadata.d.ts +78 -0
- package/common/metadata/app-filter.metadata.d.ts.map +1 -0
- package/common/metadata/app.metadata.d.ts +198 -76
- package/common/metadata/app.metadata.d.ts.map +1 -1
- package/common/metadata/auth-provider.metadata.d.ts.map +1 -1
- package/common/metadata/front-mcp.metadata.d.ts +2143 -426
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/index.d.ts +2 -0
- package/common/metadata/index.d.ts.map +1 -1
- package/common/metadata/job.metadata.d.ts +1 -1
- package/common/metadata/logger.metadata.d.ts.map +1 -1
- package/common/metadata/plugin.metadata.d.ts +1 -1
- package/common/metadata/prompt.metadata.d.ts +2 -2
- package/common/metadata/prompt.metadata.d.ts.map +1 -1
- package/common/metadata/remote-primitive.metadata.d.ts +35 -0
- package/common/metadata/remote-primitive.metadata.d.ts.map +1 -0
- package/common/metadata/resource.metadata.d.ts +1 -1
- package/common/metadata/resource.metadata.d.ts.map +1 -1
- package/common/metadata/tool-ui.metadata.d.ts +1 -1
- package/common/metadata/tool-ui.metadata.d.ts.map +1 -1
- package/common/metadata/tool.metadata.d.ts +86 -19
- package/common/metadata/tool.metadata.d.ts.map +1 -1
- package/common/metadata/workflow.metadata.d.ts +1 -1
- package/common/records/agent.record.d.ts +43 -2
- package/common/records/agent.record.d.ts.map +1 -1
- package/common/records/flow.record.d.ts.map +1 -1
- package/common/records/job.record.d.ts +35 -2
- package/common/records/job.record.d.ts.map +1 -1
- package/common/records/prompt.record.d.ts +35 -2
- package/common/records/prompt.record.d.ts.map +1 -1
- package/common/records/resource.record.d.ts +35 -2
- package/common/records/resource.record.d.ts.map +1 -1
- package/common/records/skill.record.d.ts +46 -2
- package/common/records/skill.record.d.ts.map +1 -1
- package/common/records/tool.record.d.ts +35 -2
- package/common/records/tool.record.d.ts.map +1 -1
- package/common/records/workflow.record.d.ts +35 -2
- package/common/records/workflow.record.d.ts.map +1 -1
- package/common/schemas/annotated-class.schema.d.ts +2 -2
- package/common/schemas/annotated-class.schema.d.ts.map +1 -1
- package/common/schemas/http-input.schema.d.ts.map +1 -1
- package/common/schemas/http-output.schema.d.ts +2 -2
- package/common/schemas/http-output.schema.d.ts.map +1 -1
- package/common/tokens/adapter.tokens.d.ts.map +1 -1
- package/common/tokens/agent.tokens.d.ts +3 -0
- package/common/tokens/agent.tokens.d.ts.map +1 -1
- package/common/tokens/app.tokens.d.ts.map +1 -1
- package/common/tokens/auth-provider.tokens.d.ts.map +1 -1
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -1
- package/common/tokens/logger.tokens.d.ts.map +1 -1
- package/common/tokens/prompt.tokens.d.ts +1 -0
- package/common/tokens/prompt.tokens.d.ts.map +1 -1
- package/common/tokens/provider.tokens.d.ts.map +1 -1
- package/common/tokens/tool.tokens.d.ts +3 -2
- package/common/tokens/tool.tokens.d.ts.map +1 -1
- package/common/types/common.types.d.ts +2 -2
- package/common/types/common.types.d.ts.map +1 -1
- package/common/types/options/auth/app-auth.schema.d.ts +2 -271
- package/common/types/options/auth/app-auth.schema.d.ts.map +1 -1
- package/common/types/options/auth/index.d.ts +6 -6
- package/common/types/options/auth/index.d.ts.map +1 -1
- package/common/types/options/auth/interfaces.d.ts +1 -430
- package/common/types/options/auth/interfaces.d.ts.map +1 -1
- package/common/types/options/auth/orchestrated.schema.d.ts +2 -457
- package/common/types/options/auth/orchestrated.schema.d.ts.map +1 -1
- package/common/types/options/auth/public.schema.d.ts +2 -21
- package/common/types/options/auth/public.schema.d.ts.map +1 -1
- package/common/types/options/auth/schema.d.ts +2 -280
- package/common/types/options/auth/schema.d.ts.map +1 -1
- package/common/types/options/auth/shared.schemas.d.ts +2 -2
- package/common/types/options/auth/shared.schemas.d.ts.map +1 -1
- package/common/types/options/auth/transparent.schema.d.ts +2 -35
- package/common/types/options/auth/transparent.schema.d.ts.map +1 -1
- package/common/types/options/auth/typecheck.d.ts.map +1 -1
- package/common/types/options/auth/utils.d.ts +1 -32
- package/common/types/options/auth/utils.d.ts.map +1 -1
- package/common/types/options/elicitation/schema.d.ts +2 -4
- package/common/types/options/elicitation/schema.d.ts.map +1 -1
- package/common/types/options/ext-apps/index.d.ts +1 -1
- package/common/types/options/ext-apps/index.d.ts.map +1 -1
- package/common/types/options/ext-apps/interfaces.d.ts +55 -0
- package/common/types/options/ext-apps/interfaces.d.ts.map +1 -1
- package/common/types/options/ext-apps/schema.d.ts +3 -1
- package/common/types/options/ext-apps/schema.d.ts.map +1 -1
- package/common/types/options/ext-apps/typecheck.d.ts +2 -0
- package/common/types/options/ext-apps/typecheck.d.ts.map +1 -0
- package/common/types/options/http/schema.d.ts +3 -1
- package/common/types/options/http/schema.d.ts.map +1 -1
- package/common/types/options/http/typecheck.d.ts +2 -0
- package/common/types/options/http/typecheck.d.ts.map +1 -0
- package/common/types/options/logging/schema.d.ts +3 -2
- package/common/types/options/logging/schema.d.ts.map +1 -1
- package/common/types/options/redis/index.d.ts +1 -1
- package/common/types/options/redis/index.d.ts.map +1 -1
- package/common/types/options/redis/interfaces.d.ts +4 -0
- package/common/types/options/redis/interfaces.d.ts.map +1 -1
- package/common/types/options/redis/schema.d.ts +7 -4
- package/common/types/options/redis/schema.d.ts.map +1 -1
- package/common/types/options/redis/typecheck.d.ts +2 -0
- package/common/types/options/redis/typecheck.d.ts.map +1 -0
- package/common/types/options/server-info/interfaces.d.ts +1 -1
- package/common/types/options/server-info/interfaces.d.ts.map +1 -1
- package/common/types/options/skills-http/schema.d.ts +3 -2
- package/common/types/options/skills-http/schema.d.ts.map +1 -1
- package/common/types/options/skills-http/typecheck.d.ts +2 -0
- package/common/types/options/skills-http/typecheck.d.ts.map +1 -0
- package/common/types/options/sqlite/index.d.ts +1 -0
- package/common/types/options/sqlite/index.d.ts.map +1 -1
- package/common/types/options/sqlite/interfaces.d.ts +25 -0
- package/common/types/options/sqlite/interfaces.d.ts.map +1 -0
- package/common/types/options/sqlite/schema.d.ts +3 -1
- package/common/types/options/sqlite/schema.d.ts.map +1 -1
- package/common/types/options/sqlite/typecheck.d.ts +2 -0
- package/common/types/options/sqlite/typecheck.d.ts.map +1 -0
- package/common/types/options/transport/schema.d.ts.map +1 -1
- package/common/utils/decide-request-intent.utils.d.ts.map +1 -1
- package/common/utils/index.d.ts +2 -0
- package/common/utils/index.d.ts.map +1 -1
- package/common/utils/primitive-filter.d.ts +24 -0
- package/common/utils/primitive-filter.d.ts.map +1 -0
- package/common/utils/validate-remote-url.d.ts +13 -0
- package/common/utils/validate-remote-url.d.ts.map +1 -0
- package/context/frontmcp-context-storage.d.ts +1 -6
- package/context/frontmcp-context-storage.d.ts.map +1 -1
- package/context/frontmcp-context.d.ts +1 -1
- package/context/frontmcp-context.d.ts.map +1 -1
- package/context/index.d.ts +5 -4
- package/context/index.d.ts.map +1 -1
- package/direct/client.types.d.ts +11 -1
- package/direct/client.types.d.ts.map +1 -1
- package/direct/connect.d.ts +4 -1
- package/direct/connect.d.ts.map +1 -1
- package/direct/direct-server.d.ts +1 -1
- package/direct/direct-server.d.ts.map +1 -1
- package/direct/direct.types.d.ts +1 -1
- package/direct/direct.types.d.ts.map +1 -1
- package/direct/index.d.ts +1 -1
- package/direct/index.d.ts.map +1 -1
- package/direct/llm-platform.d.ts +3 -3
- package/direct/llm-platform.d.ts.map +1 -1
- package/elicitation/flows/elicitation-request.flow.d.ts.map +1 -1
- package/elicitation/flows/elicitation-result.flow.d.ts.map +1 -1
- package/elicitation/helpers/fallback.helper.d.ts.map +1 -1
- package/elicitation/send-elicitation-result.tool.d.ts.map +1 -1
- package/elicitation/store/elicitation-encryption.d.ts.map +1 -1
- package/errors/error-handler.d.ts.map +1 -1
- package/errors/esm.errors.d.ts +59 -0
- package/errors/esm.errors.d.ts.map +1 -0
- package/errors/index.d.ts +6 -3
- package/errors/index.d.ts.map +1 -1
- package/errors/mcp.error.d.ts.map +1 -1
- package/errors/transport.errors.d.ts +6 -0
- package/errors/transport.errors.d.ts.map +1 -1
- package/esm/index.mjs +6434 -2612
- package/esm-loader/app-helpers.d.ts +60 -0
- package/esm-loader/app-helpers.d.ts.map +1 -0
- package/esm-loader/esm-auth.types.d.ts +53 -0
- package/esm-loader/esm-auth.types.d.ts.map +1 -0
- package/esm-loader/esm-cache.d.ts +87 -0
- package/esm-loader/esm-cache.d.ts.map +1 -0
- package/esm-loader/esm-manifest.d.ts +82 -0
- package/esm-loader/esm-manifest.d.ts.map +1 -0
- package/esm-loader/esm-module-loader.d.ts +100 -0
- package/esm-loader/esm-module-loader.d.ts.map +1 -0
- package/esm-loader/factories/esm-context-factories.d.ts +52 -0
- package/esm-loader/factories/esm-context-factories.d.ts.map +1 -0
- package/esm-loader/factories/esm-instance-factories.d.ts +48 -0
- package/esm-loader/factories/esm-instance-factories.d.ts.map +1 -0
- package/esm-loader/factories/esm-record-builders.d.ts +72 -0
- package/esm-loader/factories/esm-record-builders.d.ts.map +1 -0
- package/esm-loader/factories/index.d.ts +4 -0
- package/esm-loader/factories/index.d.ts.map +1 -0
- package/esm-loader/index.d.ts +10 -0
- package/esm-loader/index.d.ts.map +1 -0
- package/esm-loader/package-specifier.d.ts +60 -0
- package/esm-loader/package-specifier.d.ts.map +1 -0
- package/esm-loader/semver.utils.d.ts +41 -0
- package/esm-loader/semver.utils.d.ts.map +1 -0
- package/esm-loader/version-poller.d.ts +101 -0
- package/esm-loader/version-poller.d.ts.map +1 -0
- package/esm-loader/version-resolver.d.ts +47 -0
- package/esm-loader/version-resolver.d.ts.map +1 -0
- package/ext-apps/ext-apps.handler.d.ts.map +1 -1
- package/flows/flow.instance.d.ts +2 -3
- package/flows/flow.instance.d.ts.map +1 -1
- package/front-mcp/front-mcp.d.ts +12 -2
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/front-mcp/front-mcp.providers.d.ts +860 -178
- package/front-mcp/front-mcp.providers.d.ts.map +1 -1
- package/hooks/hook.registry.d.ts +2 -2
- package/hooks/hook.registry.d.ts.map +1 -1
- package/index.d.ts +11 -5
- package/index.d.ts.map +1 -1
- package/index.js +6987 -3093
- package/job/execution/index.d.ts +2 -1
- package/job/execution/index.d.ts.map +1 -1
- package/job/job.instance.d.ts +6 -3
- package/job/job.instance.d.ts.map +1 -1
- package/job/job.utils.d.ts.map +1 -1
- package/job/tools/list-jobs.tool.d.ts +1 -0
- package/job/tools/list-jobs.tool.d.ts.map +1 -1
- package/logger/instances/instance.console-logger.d.ts +0 -1
- package/logger/instances/instance.console-logger.d.ts.map +1 -1
- package/logger/instances/instance.logger.d.ts.map +1 -1
- package/logger/logger.registry.d.ts.map +1 -1
- package/logger/logger.types.d.ts.map +1 -1
- package/notification/notification.service.d.ts +9 -5
- package/notification/notification.service.d.ts.map +1 -1
- package/package.json +31 -19
- package/plugin/plugin.registry.d.ts +9 -4
- package/plugin/plugin.registry.d.ts.map +1 -1
- package/prompt/flows/get-prompt.flow.d.ts +1 -1
- package/prompt/flows/get-prompt.flow.d.ts.map +1 -1
- package/prompt/prompt.instance.d.ts +2 -2
- package/prompt/prompt.instance.d.ts.map +1 -1
- package/prompt/prompt.registry.d.ts +9 -3
- package/prompt/prompt.registry.d.ts.map +1 -1
- package/prompt/prompt.utils.d.ts +1 -1
- package/prompt/prompt.utils.d.ts.map +1 -1
- package/provider/provider.registry.d.ts +6 -8
- package/provider/provider.registry.d.ts.map +1 -1
- package/provider/provider.types.d.ts +0 -13
- package/provider/provider.types.d.ts.map +1 -1
- package/rate-limit/index.d.ts +13 -0
- package/rate-limit/index.d.ts.map +1 -0
- package/remote-mcp/cache/index.d.ts +2 -1
- package/remote-mcp/cache/index.d.ts.map +1 -1
- package/remote-mcp/factories/context-factories.d.ts +1 -1
- package/remote-mcp/factories/context-factories.d.ts.map +1 -1
- package/remote-mcp/factories/instance-factories.d.ts +1 -1
- package/remote-mcp/factories/instance-factories.d.ts.map +1 -1
- package/remote-mcp/factories/record-builders.d.ts +1 -1
- package/remote-mcp/factories/record-builders.d.ts.map +1 -1
- package/remote-mcp/mcp-client.service.d.ts +2 -2
- package/remote-mcp/mcp-client.service.d.ts.map +1 -1
- package/remote-mcp/mcp-client.types.d.ts +4 -4
- package/remote-mcp/mcp-client.types.d.ts.map +1 -1
- package/resource/flows/read-resource.flow.d.ts +1 -1
- package/resource/flows/read-resource.flow.d.ts.map +1 -1
- package/resource/flows/resource-templates-list.flow.d.ts.map +1 -1
- package/resource/flows/resources-list.flow.d.ts.map +1 -1
- package/resource/resource.instance.d.ts +2 -2
- package/resource/resource.instance.d.ts.map +1 -1
- package/resource/resource.registry.d.ts +9 -3
- package/resource/resource.registry.d.ts.map +1 -1
- package/resource/resource.utils.d.ts.map +1 -1
- package/scope/flows/http.request.flow.d.ts +1 -0
- package/scope/flows/http.request.flow.d.ts.map +1 -1
- package/scope/index.d.ts.map +1 -1
- package/scope/scope.instance.d.ts +20 -9
- package/scope/scope.instance.d.ts.map +1 -1
- package/server/adapters/polyfills/browser-express-host.d.ts +7 -0
- package/server/adapters/polyfills/browser-express-host.d.ts.map +1 -0
- package/server/adapters/polyfills/node-express-host.d.ts +2 -0
- package/server/adapters/polyfills/node-express-host.d.ts.map +1 -0
- package/server/noop-server.d.ts +15 -0
- package/server/noop-server.d.ts.map +1 -0
- package/server/server.types.d.ts +11 -9
- package/server/server.types.d.ts.map +1 -1
- package/server/server.validation.d.ts.map +1 -1
- package/skill/cache/index.d.ts +2 -1
- package/skill/cache/index.d.ts.map +1 -1
- package/skill/flows/http/skills-api.flow.d.ts.map +1 -1
- package/skill/flows/load-skill.flow.d.ts.map +1 -1
- package/skill/index.d.ts +3 -3
- package/skill/index.d.ts.map +1 -1
- package/skill/providers/memory-skill.provider.d.ts +5 -0
- package/skill/providers/memory-skill.provider.d.ts.map +1 -1
- package/skill/session/skill-session.manager.d.ts +1 -1
- package/skill/session/skill-session.manager.d.ts.map +1 -1
- package/skill/skill-directory-loader.d.ts.map +1 -1
- package/skill/skill-http.utils.d.ts +4 -3
- package/skill/skill-http.utils.d.ts.map +1 -1
- package/skill/skill-md-parser.d.ts.map +1 -1
- package/skill/skill-storage.factory.d.ts +3 -3
- package/skill/skill-storage.factory.d.ts.map +1 -1
- package/skill/skill-validator.d.ts +2 -2
- package/skill/skill-validator.d.ts.map +1 -1
- package/skill/skill.instance.d.ts +2 -2
- package/skill/skill.instance.d.ts.map +1 -1
- package/skill/skill.registry.d.ts +3 -4
- package/skill/skill.registry.d.ts.map +1 -1
- package/skill/skill.utils.d.ts.map +1 -1
- package/skill/tools/index.d.ts +1 -5
- package/skill/tools/index.d.ts.map +1 -1
- package/skill/tools/load-skills.tool.d.ts +1 -4
- package/skill/tools/load-skills.tool.d.ts.map +1 -1
- package/tool/flows/call-tool.flow.d.ts +12 -3
- package/tool/flows/call-tool.flow.d.ts.map +1 -1
- package/tool/flows/tools-list.flow.d.ts +12 -4
- package/tool/flows/tools-list.flow.d.ts.map +1 -1
- package/tool/tool.instance.d.ts +7 -4
- package/tool/tool.instance.d.ts.map +1 -1
- package/tool/tool.registry.d.ts +9 -3
- package/tool/tool.registry.d.ts.map +1 -1
- package/tool/tool.utils.d.ts.map +1 -1
- package/tool/ui/index.d.ts +29 -9
- package/tool/ui/index.d.ts.map +1 -1
- package/tool/ui/platform-adapters.d.ts +27 -5
- package/tool/ui/platform-adapters.d.ts.map +1 -1
- package/tool/ui/template-helpers.d.ts +1 -7
- package/tool/ui/template-helpers.d.ts.map +1 -1
- package/tool/ui/ui-resource-template.d.ts +1 -1
- package/tool/ui/ui-resource.handler.d.ts +2 -2
- package/tool/ui/ui-resource.handler.d.ts.map +1 -1
- package/tool/ui/ui-shared.d.ts +35 -0
- package/tool/ui/ui-shared.d.ts.map +1 -0
- package/transport/{legacy/legacy.sse.tranporter.d.ts → adapters/base-sse-transport.d.ts} +2 -4
- package/transport/adapters/base-sse-transport.d.ts.map +1 -0
- package/transport/adapters/polyfills/browser-sse-transport.d.ts +10 -0
- package/transport/adapters/polyfills/browser-sse-transport.d.ts.map +1 -0
- package/transport/adapters/polyfills/node-sse-transport.d.ts +2 -0
- package/transport/adapters/polyfills/node-sse-transport.d.ts.map +1 -0
- package/transport/adapters/sse-transport.d.ts +1 -1
- package/transport/adapters/sse-transport.d.ts.map +1 -1
- package/transport/adapters/streamable-http-transport.d.ts +24 -1
- package/transport/adapters/streamable-http-transport.d.ts.map +1 -1
- package/transport/adapters/transport.local.adapter.d.ts +33 -7
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.sse.adapter.d.ts +1 -1
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -1
- package/transport/adapters/transport.streamable-http.adapter.d.ts +14 -5
- package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -1
- package/transport/event-stores/event-store.factory.d.ts +1 -1
- package/transport/event-stores/event-store.factory.d.ts.map +1 -1
- package/transport/event-stores/memory.event-store.d.ts +2 -2
- package/transport/event-stores/memory.event-store.d.ts.map +1 -1
- package/transport/event-stores/redis.event-store.d.ts +2 -2
- package/transport/event-stores/redis.event-store.d.ts.map +1 -1
- package/transport/flows/handle.sse.flow.d.ts.map +1 -1
- package/transport/flows/handle.stateless-http.flow.d.ts.map +1 -1
- package/transport/flows/handle.streamable-http.flow.d.ts +50 -1
- package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -1
- package/transport/in-memory-server.d.ts +3 -3
- package/transport/in-memory-server.d.ts.map +1 -1
- package/transport/index.d.ts +8 -5
- package/transport/index.d.ts.map +1 -1
- package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts +1 -1
- package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts.map +1 -1
- package/transport/mcp-handlers/call-tool-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/call-tool-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/complete-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/complete-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/index.d.ts +6 -6
- package/transport/mcp-handlers/initialize-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-resources-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/list-resources-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-tools-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/list-tools-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/mcp-handlers.types.d.ts +6 -9
- package/transport/mcp-handlers/mcp-handlers.types.d.ts.map +1 -1
- package/transport/mcp-handlers/read-resource-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/read-resource-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts +2 -2
- package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/subscribe-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/subscribe-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts.map +1 -1
- package/transport/transport.error.d.ts +2 -2
- package/transport/transport.error.d.ts.map +1 -1
- package/transport/transport.local.d.ts +2 -0
- package/transport/transport.local.d.ts.map +1 -1
- package/transport/transport.registry.d.ts +8 -0
- package/transport/transport.registry.d.ts.map +1 -1
- package/transport/transport.remote.d.ts +2 -0
- package/transport/transport.remote.d.ts.map +1 -1
- package/transport/transport.types.d.ts +10 -0
- package/transport/transport.types.d.ts.map +1 -1
- package/types/drinen-hooks.types.d.ts.map +1 -1
- package/types/invoke.type.d.ts.map +1 -1
- package/types/zod.types.d.ts.map +1 -1
- package/utils/index.d.ts +2 -1
- package/utils/index.d.ts.map +1 -1
- package/workflow/workflow.instance.d.ts +2 -2
- package/workflow/workflow.instance.d.ts.map +1 -1
- package/agent/adapters/langchain.adapter.d.ts +0 -178
- package/agent/adapters/langchain.adapter.d.ts.map +0 -1
- package/esm/package.json +0 -104
- package/transport/legacy/legacy.sse.tranporter.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InitializeRequest, InitializeResult } from '@
|
|
1
|
+
import { type InitializeRequest, type InitializeResult } from '@frontmcp/protocol';
|
|
2
2
|
import { McpHandler, McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
export default function initializeRequestHandler({ serverOptions, scope, }: McpHandlerOptions): McpHandler<InitializeRequest, InitializeResult>;
|
|
4
4
|
//# sourceMappingURL=initialize-request.handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/initialize-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"initialize-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/initialize-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE5G,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAwCrE,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,aAAa,EACb,KAAK,GACN,EAAE,iBAAiB,GAAG,UAAU,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAgJrE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ListPromptsRequest, ListPromptsResult } from '@
|
|
1
|
+
import { ListPromptsRequest, ListPromptsResult } from '@frontmcp/protocol';
|
|
2
2
|
import { McpHandler, McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
export default function listPromptsRequestHandler({ scope, }: McpHandlerOptions): McpHandler<ListPromptsRequest, ListPromptsResult>;
|
|
4
4
|
//# sourceMappingURL=list-prompts-request.handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-prompts-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/list-prompts-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"list-prompts-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/list-prompts-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,KAAK,GACN,EAAE,iBAAiB,GAAG,UAAU,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,CAoBvE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ListResourceTemplatesRequest, ListResourceTemplatesResult } from '@
|
|
1
|
+
import { ListResourceTemplatesRequest, ListResourceTemplatesResult } from '@frontmcp/protocol';
|
|
2
2
|
import { McpHandler, McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
export default function listResourceTemplatesRequestHandler({ scope, }: McpHandlerOptions): McpHandler<ListResourceTemplatesRequest, ListResourceTemplatesResult>;
|
|
4
4
|
//# sourceMappingURL=list-resource-templates-request.handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-resource-templates-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/list-resource-templates-request.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,
|
|
1
|
+
{"version":3,"file":"list-resource-templates-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/list-resource-templates-request.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,OAAO,UAAU,mCAAmC,CAAC,EAC1D,KAAK,GACN,EAAE,iBAAiB,GAAG,UAAU,CAAC,4BAA4B,EAAE,2BAA2B,CAAC,CAoB3F"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ListResourcesRequest, ListResourcesResult } from '@
|
|
1
|
+
import { ListResourcesRequest, ListResourcesResult } from '@frontmcp/protocol';
|
|
2
2
|
import { McpHandler, McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
export default function listResourcesRequestHandler({ scope, }: McpHandlerOptions): McpHandler<ListResourcesRequest, ListResourcesResult>;
|
|
4
4
|
//# sourceMappingURL=list-resources-request.handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-resources-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/list-resources-request.handler.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"list-resources-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/list-resources-request.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAA8B,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC3G,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,OAAO,UAAU,2BAA2B,CAAC,EAClD,KAAK,GACN,EAAE,iBAAiB,GAAG,UAAU,CAAC,oBAAoB,EAAE,mBAAmB,CAAC,CAoB3E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ListToolsRequest, ListToolsResult } from '@
|
|
1
|
+
import { ListToolsRequest, ListToolsResult } from '@frontmcp/protocol';
|
|
2
2
|
import { McpHandler, McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
export default function listToolsRequestHandler({ scope, }: McpHandlerOptions): McpHandler<ListToolsRequest, ListToolsResult>;
|
|
4
4
|
//# sourceMappingURL=list-tools-request.handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-tools-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/list-tools-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,gBAAgB,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"list-tools-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/list-tools-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,gBAAgB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAC9C,KAAK,GACN,EAAE,iBAAiB,GAAG,UAAU,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAoBnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging-set-level-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/logging-set-level-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,eAAe,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"logging-set-level-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/logging-set-level-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,eAAe,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EAAc,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAErE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,6BAA6B,CAAC,EAAE,KAAK,EAAE,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;uBAGrD,eAAe;;;;;;;;;;;;;;;;;;;;;;;;WAAQ,OAAO,CAAC,WAAW,CAAC;EAuBvE"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { z, ZodType } from 'zod';
|
|
2
|
-
import { Notification, Request, Result } from '@
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { LocalTransporter } from '../transport.local';
|
|
7
|
-
import { Authorization } from '../../common';
|
|
8
|
-
import { Scope } from '../../scope';
|
|
1
|
+
import { z, type ZodType } from 'zod';
|
|
2
|
+
import type { Notification, Request, Result, RequestHandlerExtra, McpServerOptions, AuthInfo } from '@frontmcp/protocol';
|
|
3
|
+
import type { LocalTransporter } from '../transport.local';
|
|
4
|
+
import type { Authorization } from '../../common';
|
|
5
|
+
import type { Scope } from '../../scope';
|
|
9
6
|
type Primitive = string | number | boolean | bigint | null | undefined;
|
|
10
7
|
type Flatten<T> = T extends Primitive ? T : T extends Array<infer U> ? Array<Flatten<U>> : T extends Set<infer U> ? Set<Flatten<U>> : T extends Map<infer K, infer V> ? Map<Flatten<K>, Flatten<V>> : T extends object ? {
|
|
11
8
|
[K in keyof T]: Flatten<T[K]>;
|
|
@@ -19,7 +16,7 @@ export interface McpHandler<HandlerRequest extends Request = Request, HandlerRes
|
|
|
19
16
|
}
|
|
20
17
|
export type McpHandlerOptions = {
|
|
21
18
|
scope: Scope;
|
|
22
|
-
serverOptions:
|
|
19
|
+
serverOptions: McpServerOptions;
|
|
23
20
|
};
|
|
24
21
|
export type McpRequestHandler<SendRequestT extends Request, SendNotificationT extends Notification> = RequestHandlerExtra<SendRequestT, SendNotificationT> & {
|
|
25
22
|
authInfo?: AuthInfo & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-handlers.types.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/mcp-handlers.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"mcp-handlers.types.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/mcp-handlers.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,KAAK,OAAO,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EACZ,OAAO,EACP,MAAM,EACN,mBAAmB,EACnB,gBAAgB,EAChB,QAAQ,EACT,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gB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AE,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC;IACvC,aAAa,EAAE,EAAE,CAAC;IAClB,cAAc,CAAC,EAAE,GAAG,CAAC;IAErB,OAAO,EAAE,CACP,OAAO,EAAE,cAAc,EACvB,GAAG,EAAE,iBAAiB,CAAC,cAAc,EAAE,mBAAmB,CAAC,KACxD,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAC;CAC7C;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,aAAa,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAC3B,YAAY,SAAS,OAAO,EAC5B,iBAAiB,SAAS,YAAY,IACpC,mBAAmB,CAAC,YAAY,EAAE,iBAAiB,CAAC,GAAG;IACzD,QAAQ,CAAC,EAAE,QAAQ,GAAG;QACpB,KAAK,CAAC,EAAE;YACN,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;YACvB,SAAS,EAAE,gBAAgB,CAAC;YAC5B,WAAW,EAAE,aAAa,CAAC;SAC5B,CAAC;KACH,CAAC;CACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReadResourceRequest, ReadResourceResult } from '@
|
|
1
|
+
import { ReadResourceRequest, ReadResourceResult } from '@frontmcp/protocol';
|
|
2
2
|
import { McpHandler, McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
export default function readResourceRequestHandler({ scope, }: McpHandlerOptions): McpHandler<ReadResourceRequest, ReadResourceResult>;
|
|
4
4
|
//# sourceMappingURL=read-resource-request.handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-resource-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/read-resource-request.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAA6B,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"read-resource-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/read-resource-request.handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAA6B,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxG,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,EACjD,KAAK,GACN,EAAE,iBAAiB,GAAG,UAAU,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAsBzE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Result } from '@
|
|
1
|
+
import { Result } from '@frontmcp/protocol';
|
|
2
2
|
import { McpHandler, McpHandlerOptions } from './mcp-handlers.types';
|
|
3
|
-
import type { RootsListChangedNotification } from '@
|
|
3
|
+
import type { RootsListChangedNotification } from '@frontmcp/protocol';
|
|
4
4
|
/**
|
|
5
5
|
* Handler for `notifications/roots/list_changed` notification from the client.
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roots-list-changed-notification.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/roots-list-changed-notification.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"roots-list-changed-notification.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/roots-list-changed-notification.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAEvE;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,mCAAmC,CAAC,EAC1D,KAAK,GACN,EAAE,iBAAiB,GAAG,UAAU,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAatE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubscribeRequest, EmptyResult } from '@
|
|
1
|
+
import { SubscribeRequest, EmptyResult } from '@frontmcp/protocol';
|
|
2
2
|
import { McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
/**
|
|
4
4
|
* Handler for the resources/subscribe MCP request.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribe-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/subscribe-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,gBAAgB,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"subscribe-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/subscribe-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAc,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAErE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAAE,KAAK,EAAE,EAAE,iBAAiB;;;;;;;;;;;;;uBAG/C,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;WAAQ,OAAO,CAAC,WAAW,CAAC;EAuBxE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UnsubscribeRequest, EmptyResult } from '@
|
|
1
|
+
import { UnsubscribeRequest, EmptyResult } from '@frontmcp/protocol';
|
|
2
2
|
import { McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
/**
|
|
4
4
|
* Handler for the resources/unsubscribe MCP request.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsubscribe-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/unsubscribe-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,kBAAkB,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"unsubscribe-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/unsubscribe-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,kBAAkB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAc,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAErE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAAE,KAAK,EAAE,EAAE,iBAAiB;;;;;;;;;;;;;uBAGjD,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;WAAQ,OAAO,CAAC,WAAW,CAAC;EAuB1E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JSONRPCError, JSONRPCMessage, RequestId } from '@
|
|
1
|
+
import type { JSONRPCError, JSONRPCMessage, RequestId } from '@frontmcp/protocol';
|
|
2
2
|
export declare const noValidSessionError: () => JSONRPCError;
|
|
3
3
|
export declare const rpcError: (message: string, requestId?: RequestId | null) => JSONRPCError;
|
|
4
|
-
export declare const rpcRequest: (requestId: RequestId, method: string, params
|
|
4
|
+
export declare const rpcRequest: (requestId: RequestId, method: string, params?: Record<string, unknown>) => JSONRPCMessage;
|
|
5
5
|
//# sourceMappingURL=transport.error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.error.d.ts","sourceRoot":"","sources":["../../src/transport/transport.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"transport.error.d.ts","sourceRoot":"","sources":["../../src/transport/transport.error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAKlF,eAAO,MAAM,mBAAmB,QAAO,YAIrC,CAAC;AAEH,eAAO,MAAM,QAAQ,GAAI,SAAS,MAAM,EAAE,YAAY,SAAS,GAAG,IAAI,KAAG,YAIvE,CAAC;AAEH,eAAO,MAAM,UAAU,GAAI,WAAW,SAAS,EAAE,QAAQ,MAAM,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,cAKlG,CAAC"}
|
|
@@ -13,12 +13,14 @@ export declare class LocalTransporter implements Transporter {
|
|
|
13
13
|
handleRequest(req: AuthenticatedServerRequest, res: ServerResponse): Promise<void>;
|
|
14
14
|
ready(): Promise<void>;
|
|
15
15
|
initialize(req: AuthenticatedServerRequest, res: ServerResponse): Promise<void>;
|
|
16
|
+
get isInitialized(): boolean;
|
|
16
17
|
/**
|
|
17
18
|
* Marks this transport as pre-initialized for session recreation.
|
|
18
19
|
* This is needed when recreating a transport from Redis because the
|
|
19
20
|
* original initialize request was processed by a different transport instance.
|
|
20
21
|
*/
|
|
21
22
|
markAsInitialized(): void;
|
|
23
|
+
resetForReinitialization(): void;
|
|
22
24
|
destroy(reason: string): Promise<void>;
|
|
23
25
|
}
|
|
24
26
|
//# sourceMappingURL=transport.local.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.local.d.ts","sourceRoot":"","sources":["../../src/transport/transport.local.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAKpE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,qBAAa,gBAAiB,YAAW,WAAW;IAWhD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC;IAV7B,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IA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O,CAAC;IAIpC,aAAa,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAUlF,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,UAAU,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAWrF,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED;;;;OAIG;IACH,iBAAiB,IAAI,IAAI;IAIzB,wBAAwB,IAAI,IAAI;IAI1B,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAO7C"}
|
|
@@ -86,6 +86,14 @@ export declare class TransportService {
|
|
|
86
86
|
*/
|
|
87
87
|
private doCreateTransporter;
|
|
88
88
|
destroyTransporter(type: TransportType, token: string, sessionId: string, reason?: string): Promise<void>;
|
|
89
|
+
/**
|
|
90
|
+
* Update the stored session in Redis with client capabilities from the initialize handshake.
|
|
91
|
+
* This ensures capabilities survive session recreation (e.g., after server restart or transport eviction).
|
|
92
|
+
*
|
|
93
|
+
* Best-effort: failures are logged but do not throw.
|
|
94
|
+
* No-op when sessionStore is not configured.
|
|
95
|
+
*/
|
|
96
|
+
updateStoredSessionCapabilities(sessionId: string, clientCapabilities: Record<string, unknown>): Promise<void>;
|
|
89
97
|
/**
|
|
90
98
|
* Get or create a shared singleton transport for anonymous stateless requests.
|
|
91
99
|
* All anonymous requests share the same transport instance.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.registry.d.ts","sourceRoot":"","sources":["../../src/transport/transport.registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,WAAW,EAIX,aAAa,EAEd,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,cAAc,EAAE,+BAA+B,EAAE,MAAM,WAAW,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAKjC,OAAO,KAAK,EA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Aa,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO;IAMjF;;;OAGG;IACG,sBAAsB,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAkBrG,OAAO,CAAC,MAAM;IAId;;;OAGG;IACH,OAAO,CAAC,cAAc;IAItB;;;OAGG;IACH,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,KAAK;IAUb,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,WAAW;IAqDnB,OAAO,CAAC,UAAU;CASnB"}
|
|
@@ -12,6 +12,8 @@ export declare class RemoteTransporter implements Transporter {
|
|
|
12
12
|
initialize(req: AuthenticatedServerRequest, res: ServerResponse): Promise<void>;
|
|
13
13
|
handleRequest(_req: AuthenticatedServerRequest, _res: ServerResponse): Promise<void>;
|
|
14
14
|
destroy(_reason?: string): Promise<void>;
|
|
15
|
+
get isInitialized(): boolean;
|
|
15
16
|
markAsInitialized(): void;
|
|
17
|
+
resetForReinitialization(): void;
|
|
16
18
|
}
|
|
17
19
|
//# sourceMappingURL=transport.remote.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.remote.d.ts","sourceRoot":"","sources":["../../src/transport/transport.remote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG3C,qBAAa,iBAAkB,YAAW,WAAW;IAMjD,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,GAAG;IANtB,QAAQ,CAAC,IAAI,EAA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,CAAC,IAAI,CAAC;IAIzE,aAAa,CAAC,IAAI,EAAE,0BAA0B,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAIpF,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED,iBAAiB,IAAI,IAAI;IAIzB,wBAAwB,IAAI,IAAI;CAGjC"}
|
|
@@ -37,12 +37,22 @@ export interface Transporter {
|
|
|
37
37
|
handleRequest(req: AuthenticatedServerRequest, res: ServerResponse): Promise<void>;
|
|
38
38
|
destroy(reason?: string): Promise<void>;
|
|
39
39
|
ping(timeoutMs?: number): Promise<boolean>;
|
|
40
|
+
/**
|
|
41
|
+
* Whether this transport has already been initialized via the MCP initialize handshake.
|
|
42
|
+
*/
|
|
43
|
+
readonly isInitialized: boolean;
|
|
40
44
|
/**
|
|
41
45
|
* Marks this transport as pre-initialized for session recreation.
|
|
42
46
|
* This is needed when recreating a transport from Redis because the
|
|
43
47
|
* original initialize request was processed by a different transport instance.
|
|
44
48
|
*/
|
|
45
49
|
markAsInitialized(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Resets initialization state to allow re-initialization.
|
|
52
|
+
* Used when a client retries initialize on an already-initialized transport
|
|
53
|
+
* (e.g., after reconnect following session termination).
|
|
54
|
+
*/
|
|
55
|
+
resetForReinitialization(): void;
|
|
46
56
|
}
|
|
47
57
|
export interface TransportRegistryOptions {
|
|
48
58
|
distributed?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.types.d.ts","sourceRoot":"","sources":["../../src/transport/transport.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,iBAAiB,GAAG,MAAM,GAAG,g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AAC;IAEhF,aAAa,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnF,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExC,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE3C;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAEhC;;;;OAIG;IACH,iBAAiB,IAAI,IAAI,CAAC;IAE1B;;;;OAIG;IACH,wBAAwB,IAAI,IAAI,CAAC;CAClC;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,GAAG,CAAC,EAAE,YAAY,CAAC;CACpB;AAED,MAAM,MAAM,oBAAoB,GAAG,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAC5D,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AACpE,MAAM,MAAM,uBAAuB,GAAG,GAAG,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drinen-hooks.types.d.ts","sourceRoot":"","sources":["../../src/types/drinen-hooks.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"drinen-hooks.types.d.ts","sourceRoot":"","sources":["../../src/types/drinen-hooks.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,EAAE,CAAC;AAEnC,MAAM,WAAW,WAAW,CAAC,GAAG,GAAG,OAAO;IACxC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ACb,UAAU,CAAC,EAAE,MAAM,YAAA;CAI7B;AACD,qBAAa,iBAAkB,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"invoke.type.d.ts","sourceRoot":"","sources":["../../src/types/invoke.type.ts"],"names":[],"mappings":"AAAA,qBAAa,cAAe,SAAQ,KAAK;IACpB,KAAK,EAAE,OAAO;gBAAd,KAAK,EAAE,OAAO;CAGlC;AACD,qBAAa,YAAa,SAAQ,KAAK;IAE5B,MAAM,EAAE,MAAM;IACd,IAAI,CAAC,EAAE,MAAM;IACb,UAAU,CAAC,EAAE,MAAM;gBAFnB,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,MAAM,YAAA,EACb,UAAU,CAAC,EAAE,MAAM,YAAA;CAI7B;AACD,qBAAa,iBAAkB,SAAQ,KAAK;IAEjC,EAAE,EAAE,MAAM;IACV,MAAM,CAAC,EAAE,MAAM;gBADf,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,MAAM,YAAA;CAIzB"}
|
package/types/zod.types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod.types.d.ts","sourceRoot":"","sources":["../../src/types/zod.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEjC,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AACvE,KAAK,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GACjC,CAAC,GACD,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"zod.types.d.ts","sourceRoot":"","sources":["../../src/types/zod.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEjC,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AACvE,KAAK,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GACjC,CAAC,GACD,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GACtB,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GACjB,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GACpB,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GACf,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAC7B,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,GAC3B,CAAC,SAAS,MAAM,GACd;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC9B,GACD,CAAC,CAAC;AACd,MAAM,MAAM,KAAK,CAAC,MAAM,SAAS,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
package/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { normalizeSegment, normalizeProviderId, normalizeOwnerPath } from './naming.utils';
|
|
2
2
|
export { ownerKeyOf, qualifiedNameOf, parseQualifiedName, lineageDepth, lineagesEqual, isAncestorLineage, } from './lineage.utils';
|
|
3
|
-
export { toStructuredContent,
|
|
3
|
+
export { toStructuredContent, buildResourceContent } from './content.utils';
|
|
4
|
+
export type { TextContent, BlobContent, ResourceContent } from './content.utils';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
package/utils/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAG3F,OAAO,EACL,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAG3F,OAAO,EACL,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5E,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -3,14 +3,14 @@ import { WorkflowEntry } from '../common/entries/workflow.entry';
|
|
|
3
3
|
import { WorkflowMetadata } from '../common/metadata/workflow.metadata';
|
|
4
4
|
import { WorkflowRecord } from '../common/records/workflow.record';
|
|
5
5
|
import ProviderRegistry from '../provider/provider.registry';
|
|
6
|
-
import {
|
|
6
|
+
import { ScopeEntry } from '../common';
|
|
7
7
|
import HookRegistry from '../hooks/hook.registry';
|
|
8
8
|
/**
|
|
9
9
|
* Concrete implementation of a workflow that can be executed.
|
|
10
10
|
*/
|
|
11
11
|
export declare class WorkflowInstance extends WorkflowEntry {
|
|
12
12
|
private readonly _providers;
|
|
13
|
-
readonly scope:
|
|
13
|
+
readonly scope: ScopeEntry;
|
|
14
14
|
readonly hooks: HookRegistry;
|
|
15
15
|
constructor(record: WorkflowRecord, providers: ProviderRegistry, owner: EntryOwnerRef);
|
|
16
16
|
protected initialize(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.instance.d.ts","sourceRoot":"","sources":["../../src/workflow/workflow.instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"workflow.instance.d.ts","sourceRoot":"","sources":["../../src/workflow/workflow.instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAElD;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,aAAa;IACjD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;gBAEjB,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa;cAYrE,UAAU;IAK1B,WAAW,IAAI,gBAAgB;IAI/B,IAAI,SAAS,IAAI,gBAAgB,CAEhC;CACF"}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { AgentLlmAdapter, AgentPrompt, AgentCompletion, AgentCompletionChunk, AgentToolDefinition, AgentCompletionOptions } from '../../common';
|
|
2
|
-
/**
|
|
3
|
-
* Minimal interface matching LangChain's BaseChatModel.
|
|
4
|
-
* This allows any LangChain model to be used without importing @langchain/core.
|
|
5
|
-
*/
|
|
6
|
-
export interface LangChainChatModel {
|
|
7
|
-
invoke(messages: LangChainMessage[], options?: LangChainInvokeOptions): Promise<LangChainAIMessage>;
|
|
8
|
-
stream?(messages: LangChainMessage[], options?: LangChainInvokeOptions): AsyncGenerator<LangChainStreamChunk>;
|
|
9
|
-
/**
|
|
10
|
-
* Bind tools to the model. Returns a new model instance with tools bound.
|
|
11
|
-
* This is the preferred way to add tools in LangChain.
|
|
12
|
-
*/
|
|
13
|
-
bindTools?(tools: LangChainTool[]): LangChainChatModel;
|
|
14
|
-
}
|
|
15
|
-
interface LangChainMessage {
|
|
16
|
-
_getType(): string;
|
|
17
|
-
}
|
|
18
|
-
interface LangChainInvokeOptions {
|
|
19
|
-
tools?: LangChainTool[];
|
|
20
|
-
tool_choice?: string | {
|
|
21
|
-
type: string;
|
|
22
|
-
function?: {
|
|
23
|
-
name: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
interface LangChainTool {
|
|
28
|
-
type: 'function';
|
|
29
|
-
function: {
|
|
30
|
-
name: string;
|
|
31
|
-
description?: string;
|
|
32
|
-
parameters: Record<string, unknown>;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
interface LangChainAIMessage {
|
|
36
|
-
content: string;
|
|
37
|
-
tool_calls?: Array<{
|
|
38
|
-
id: string;
|
|
39
|
-
name: string;
|
|
40
|
-
args: Record<string, unknown>;
|
|
41
|
-
}>;
|
|
42
|
-
response_metadata?: {
|
|
43
|
-
finish_reason?: string;
|
|
44
|
-
usage?: {
|
|
45
|
-
prompt_tokens?: number;
|
|
46
|
-
completion_tokens?: number;
|
|
47
|
-
total_tokens?: number;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
interface LangChainStreamChunk {
|
|
52
|
-
content?: string;
|
|
53
|
-
tool_calls?: Array<{
|
|
54
|
-
id?: string;
|
|
55
|
-
name?: string;
|
|
56
|
-
args?: Record<string, unknown>;
|
|
57
|
-
}>;
|
|
58
|
-
tool_call_chunks?: Array<{
|
|
59
|
-
id?: string;
|
|
60
|
-
name?: string;
|
|
61
|
-
args?: string;
|
|
62
|
-
index?: number;
|
|
63
|
-
}>;
|
|
64
|
-
response_metadata?: Record<string, unknown>;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Configuration for the LangChain adapter.
|
|
68
|
-
*/
|
|
69
|
-
export interface LangChainAdapterConfig {
|
|
70
|
-
/**
|
|
71
|
-
* A LangChain chat model instance.
|
|
72
|
-
* Can be any model from @langchain/openai, @langchain/anthropic, etc.
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* ```typescript
|
|
76
|
-
* import { ChatOpenAI } from '@langchain/openai';
|
|
77
|
-
* const model = new ChatOpenAI({ model: 'gpt-4-turbo' });
|
|
78
|
-
* const adapter = new LangChainAdapter({ model });
|
|
79
|
-
* ```
|
|
80
|
-
*/
|
|
81
|
-
model: LangChainChatModel;
|
|
82
|
-
/**
|
|
83
|
-
* Default temperature for generations.
|
|
84
|
-
*/
|
|
85
|
-
temperature?: number;
|
|
86
|
-
/**
|
|
87
|
-
* Default maximum tokens for responses.
|
|
88
|
-
*/
|
|
89
|
-
maxTokens?: number;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* LLM adapter that wraps any LangChain chat model.
|
|
93
|
-
*
|
|
94
|
-
* This adapter provides a unified interface for all LangChain-compatible models,
|
|
95
|
-
* including OpenAI, Anthropic, Google, Mistral, and many others.
|
|
96
|
-
*
|
|
97
|
-
* Benefits of using LangChain:
|
|
98
|
-
* - Consistent API across all providers
|
|
99
|
-
* - Built-in retry logic and error handling
|
|
100
|
-
* - Streaming support
|
|
101
|
-
* - Tool/function calling support
|
|
102
|
-
* - Token counting and usage tracking
|
|
103
|
-
*
|
|
104
|
-
* @example Using with OpenAI
|
|
105
|
-
* ```typescript
|
|
106
|
-
* import { ChatOpenAI } from '@langchain/openai';
|
|
107
|
-
*
|
|
108
|
-
* const adapter = new LangChainAdapter({
|
|
109
|
-
* model: new ChatOpenAI({
|
|
110
|
-
* model: 'gpt-4-turbo',
|
|
111
|
-
* openAIApiKey: process.env.OPENAI_API_KEY,
|
|
112
|
-
* }),
|
|
113
|
-
* });
|
|
114
|
-
* ```
|
|
115
|
-
*
|
|
116
|
-
* @example Using with Anthropic
|
|
117
|
-
* ```typescript
|
|
118
|
-
* import { ChatAnthropic } from '@langchain/anthropic';
|
|
119
|
-
*
|
|
120
|
-
* const adapter = new LangChainAdapter({
|
|
121
|
-
* model: new ChatAnthropic({
|
|
122
|
-
* model: 'claude-3-opus-20240229',
|
|
123
|
-
* anthropicApiKey: process.env.ANTHROPIC_API_KEY,
|
|
124
|
-
* }),
|
|
125
|
-
* });
|
|
126
|
-
* ```
|
|
127
|
-
*
|
|
128
|
-
* @example Using with OpenRouter (via OpenAI SDK)
|
|
129
|
-
* ```typescript
|
|
130
|
-
* import { ChatOpenAI } from '@langchain/openai';
|
|
131
|
-
*
|
|
132
|
-
* const adapter = new LangChainAdapter({
|
|
133
|
-
* model: new ChatOpenAI({
|
|
134
|
-
* model: 'anthropic/claude-3-opus',
|
|
135
|
-
* openAIApiKey: process.env.OPENROUTER_API_KEY,
|
|
136
|
-
* configuration: {
|
|
137
|
-
* baseURL: 'https://openrouter.ai/api/v1',
|
|
138
|
-
* },
|
|
139
|
-
* }),
|
|
140
|
-
* });
|
|
141
|
-
* ```
|
|
142
|
-
*/
|
|
143
|
-
export declare class LangChainAdapter implements AgentLlmAdapter {
|
|
144
|
-
private readonly model;
|
|
145
|
-
private readonly temperature?;
|
|
146
|
-
private readonly maxTokens?;
|
|
147
|
-
constructor(config: LangChainAdapterConfig);
|
|
148
|
-
/**
|
|
149
|
-
* Generate a completion using the LangChain model.
|
|
150
|
-
*/
|
|
151
|
-
completion(prompt: AgentPrompt, tools?: AgentToolDefinition[], options?: AgentCompletionOptions): Promise<AgentCompletion>;
|
|
152
|
-
/**
|
|
153
|
-
* Stream a completion using the LangChain model.
|
|
154
|
-
*/
|
|
155
|
-
streamCompletion(prompt: AgentPrompt, tools?: AgentToolDefinition[], options?: AgentCompletionOptions): AsyncGenerator<AgentCompletionChunk>;
|
|
156
|
-
/**
|
|
157
|
-
* Build LangChain messages from AgentPrompt.
|
|
158
|
-
*/
|
|
159
|
-
private buildMessages;
|
|
160
|
-
/**
|
|
161
|
-
* Build LangChain tool definitions from AgentToolDefinition[].
|
|
162
|
-
*/
|
|
163
|
-
private buildTools;
|
|
164
|
-
/**
|
|
165
|
-
* Parse LangChain response into AgentCompletion.
|
|
166
|
-
*/
|
|
167
|
-
private parseResponse;
|
|
168
|
-
/**
|
|
169
|
-
* Map provider finish reason to AgentCompletion finish reason.
|
|
170
|
-
*/
|
|
171
|
-
private mapFinishReason;
|
|
172
|
-
/**
|
|
173
|
-
* Wrap errors in LlmAdapterError.
|
|
174
|
-
*/
|
|
175
|
-
private wrapError;
|
|
176
|
-
}
|
|
177
|
-
export {};
|
|
178
|
-
//# sourceMappingURL=langchain.adapter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"langchain.adapter.d.ts","sourceRoot":"","sources":["../../../src/agent/adapters/langchain.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,WAAW,EACX,eAAe,EACf,oBAAoB,EAEpB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,cAAc,CAAC;AAQtB;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,QAAQ,EAAE,gBAAgB,EAAE,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAEpG,MAAM,CAAC,CAAC,QAAQ,EAAE,gBAAgB,EAAE,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,cAAc,CAAC,oBAAoB,CAAC,CAAC;IAE9G;;;OAGG;IACH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