@frontmcp/sdk 0.6.3 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapter/adapter.instance.d.ts +3 -1
- package/adapter/adapter.instance.d.ts.map +1 -0
- package/adapter/adapter.regsitry.d.ts +1 -0
- package/adapter/adapter.regsitry.d.ts.map +1 -0
- package/adapter/adapter.utils.d.ts +3 -1
- package/adapter/adapter.utils.d.ts.map +1 -0
- package/agent/adapters/adapter.factory.d.ts +105 -0
- package/agent/adapters/adapter.factory.d.ts.map +1 -0
- package/agent/adapters/base.adapter.d.ts +116 -0
- package/agent/adapters/base.adapter.d.ts.map +1 -0
- package/agent/adapters/index.d.ts +47 -0
- package/agent/adapters/index.d.ts.map +1 -0
- package/agent/adapters/langchain.adapter.d.ts +178 -0
- package/agent/adapters/langchain.adapter.d.ts.map +1 -0
- package/agent/adapters/providers/index.d.ts +36 -0
- package/agent/adapters/providers/index.d.ts.map +1 -0
- package/agent/adapters/providers/types.d.ts +15 -0
- package/agent/adapters/providers/types.d.ts.map +1 -0
- package/agent/agent-execution-loop.d.ts +209 -0
- package/agent/agent-execution-loop.d.ts.map +1 -0
- package/agent/agent.events.d.ts +149 -0
- package/agent/agent.events.d.ts.map +1 -0
- package/agent/agent.instance.d.ts +201 -0
- package/agent/agent.instance.d.ts.map +1 -0
- package/agent/agent.registry.d.ts +137 -0
- package/agent/agent.registry.d.ts.map +1 -0
- package/agent/agent.scope.d.ts +333 -0
- package/agent/agent.scope.d.ts.map +1 -0
- package/agent/agent.utils.d.ts +72 -0
- package/agent/agent.utils.d.ts.map +1 -0
- package/agent/flows/call-agent.flow.d.ts +306 -0
- package/agent/flows/call-agent.flow.d.ts.map +1 -0
- package/agent/flows/index.d.ts +2 -0
- package/agent/flows/index.d.ts.map +1 -0
- package/agent/hooks/agent.hooks.d.ts +52 -0
- package/agent/hooks/agent.hooks.d.ts.map +1 -0
- package/agent/hooks/index.d.ts +2 -0
- package/agent/hooks/index.d.ts.map +1 -0
- package/agent/index.d.ts +51 -0
- package/agent/index.d.ts.map +1 -0
- package/app/app.registry.d.ts +1 -0
- package/app/app.registry.d.ts.map +1 -0
- package/app/app.utils.d.ts +3 -1
- package/app/app.utils.d.ts.map +1 -0
- package/app/instances/app.local.instance.d.ts +4 -0
- package/app/instances/app.local.instance.d.ts.map +1 -0
- package/app/instances/app.remote.instance.d.ts +98 -0
- package/app/instances/app.remote.instance.d.ts.map +1 -0
- package/app/instances/index.d.ts +1 -0
- package/app/instances/index.d.ts.map +1 -0
- package/auth/auth.registry.d.ts +1 -0
- package/auth/auth.registry.d.ts.map +1 -0
- package/auth/auth.utils.d.ts +3 -1
- package/auth/auth.utils.d.ts.map +1 -0
- package/auth/authorization/authorization.class.d.ts +1 -0
- package/auth/authorization/authorization.class.d.ts.map +1 -0
- package/auth/authorization/authorization.types.d.ts +1 -0
- package/auth/authorization/authorization.types.d.ts.map +1 -0
- package/auth/authorization/index.d.ts +1 -0
- package/auth/authorization/index.d.ts.map +1 -0
- package/auth/authorization/orchestrated.authorization.d.ts +1 -0
- package/auth/authorization/orchestrated.authorization.d.ts.map +1 -0
- package/auth/authorization/public.authorization.d.ts +1 -0
- package/auth/authorization/public.authorization.d.ts.map +1 -0
- package/auth/authorization/transparent.authorization.d.ts +1 -0
- package/auth/authorization/transparent.authorization.d.ts.map +1 -0
- package/auth/consent/consent.types.d.ts +1 -0
- package/auth/consent/consent.types.d.ts.map +1 -0
- package/auth/consent/index.d.ts +1 -0
- package/auth/consent/index.d.ts.map +1 -0
- package/auth/detection/auth-provider-detection.d.ts +1 -0
- package/auth/detection/auth-provider-detection.d.ts.map +1 -0
- package/auth/detection/index.d.ts +1 -0
- package/auth/detection/index.d.ts.map +1 -0
- package/auth/flows/auth.verify.flow.d.ts +8 -2
- package/auth/flows/auth.verify.flow.d.ts.map +1 -0
- package/auth/flows/oauth.authorize.flow.d.ts +1 -0
- package/auth/flows/oauth.authorize.flow.d.ts.map +1 -0
- package/auth/flows/oauth.callback.flow.d.ts +1 -0
- package/auth/flows/oauth.callback.flow.d.ts.map +1 -0
- package/auth/flows/oauth.register.flow.d.ts +4 -3
- package/auth/flows/oauth.register.flow.d.ts.map +1 -0
- package/auth/flows/oauth.token.flow.d.ts +1 -0
- package/auth/flows/oauth.token.flow.d.ts.map +1 -0
- package/auth/flows/session.verify.flow.d.ts +12 -1
- package/auth/flows/session.verify.flow.d.ts.map +1 -0
- package/auth/flows/well-known.jwks.flow.d.ts +1 -0
- package/auth/flows/well-known.jwks.flow.d.ts.map +1 -0
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +1 -0
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts.map +1 -0
- package/auth/flows/well-known.prm.flow.d.ts +1 -0
- package/auth/flows/well-known.prm.flow.d.ts.map +1 -0
- package/auth/instances/instance.local-primary-auth.d.ts +1 -0
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -0
- package/auth/instances/instance.remote-primary-auth.d.ts +1 -0
- package/auth/instances/instance.remote-primary-auth.d.ts.map +1 -0
- package/auth/jwks/dev-key-persistence.d.ts +1 -0
- package/auth/jwks/dev-key-persistence.d.ts.map +1 -0
- package/auth/jwks/index.d.ts +1 -0
- package/auth/jwks/index.d.ts.map +1 -0
- package/auth/jwks/jwks.service.d.ts +16 -2
- package/auth/jwks/jwks.service.d.ts.map +1 -0
- package/auth/jwks/jwks.types.d.ts +1 -0
- package/auth/jwks/jwks.types.d.ts.map +1 -0
- package/auth/jwks/jwks.utils.d.ts +1 -0
- package/auth/jwks/jwks.utils.d.ts.map +1 -0
- package/auth/machine-id.d.ts +1 -0
- package/auth/machine-id.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.authorize.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.authorize.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.device-authorization.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.device-authorization.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.introspect.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.introspect.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.par.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.par.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.revoke.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.revoke.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.token.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.token.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oauth.userinfo.flow.d.ts +1 -0
- package/auth/oauth/flows/oauth.userinfo.flow.d.ts.map +1 -0
- package/auth/oauth/flows/oidc.logout.flow.d.ts +1 -0
- package/auth/oauth/flows/oidc.logout.flow.d.ts.map +1 -0
- package/auth/session/authorization-vault.d.ts +5 -4
- package/auth/session/authorization-vault.d.ts.map +1 -0
- package/auth/session/authorization.store.d.ts +1 -0
- package/auth/session/authorization.store.d.ts.map +1 -0
- package/auth/session/encrypted-authorization-vault.d.ts +1 -0
- package/auth/session/encrypted-authorization-vault.d.ts.map +1 -0
- package/auth/session/index.d.ts +1 -0
- package/auth/session/index.d.ts.map +1 -0
- package/auth/session/record/session.base.d.ts +1 -0
- package/auth/session/record/session.base.d.ts.map +1 -0
- package/auth/session/record/session.stateful.d.ts +1 -0
- package/auth/session/record/session.stateful.d.ts.map +1 -0
- package/auth/session/record/session.stateless.d.ts +1 -0
- package/auth/session/record/session.stateless.d.ts.map +1 -0
- package/auth/session/record/session.transparent.d.ts +1 -0
- package/auth/session/record/session.transparent.d.ts.map +1 -0
- package/auth/session/redis-session.store.d.ts +1 -0
- package/auth/session/redis-session.store.d.ts.map +1 -0
- package/auth/session/session-crypto.d.ts +1 -0
- package/auth/session/session-crypto.d.ts.map +1 -0
- package/auth/session/session-rate-limiter.d.ts +1 -0
- package/auth/session/session-rate-limiter.d.ts.map +1 -0
- package/auth/session/session.crypto.d.ts +1 -0
- package/auth/session/session.crypto.d.ts.map +1 -0
- package/auth/session/session.schema.d.ts +1 -0
- package/auth/session/session.schema.d.ts.map +1 -0
- package/auth/session/session.service.d.ts +1 -0
- package/auth/session/session.service.d.ts.map +1 -0
- package/auth/session/session.transport.d.ts +1 -0
- package/auth/session/session.transport.d.ts.map +1 -0
- package/auth/session/session.types.d.ts +1 -0
- package/auth/session/session.types.d.ts.map +1 -0
- package/auth/session/token.refresh.d.ts +1 -0
- package/auth/session/token.refresh.d.ts.map +1 -0
- package/auth/session/token.store.d.ts +3 -2
- package/auth/session/token.store.d.ts.map +1 -0
- package/auth/session/token.vault.d.ts +1 -0
- package/auth/session/token.vault.d.ts.map +1 -0
- package/auth/session/transport-session.manager.d.ts +1 -0
- package/auth/session/transport-session.manager.d.ts.map +1 -0
- package/auth/session/transport-session.types.d.ts +9 -8
- package/auth/session/transport-session.types.d.ts.map +1 -0
- package/auth/session/utils/auth-token.utils.d.ts +1 -0
- package/auth/session/utils/auth-token.utils.d.ts.map +1 -0
- package/auth/session/utils/session-id.utils.d.ts +1 -0
- package/auth/session/utils/session-id.utils.d.ts.map +1 -0
- package/auth/session/utils/tiny-ttl-cache.d.ts +1 -0
- package/auth/session/utils/tiny-ttl-cache.d.ts.map +1 -0
- package/auth/session/vault-encryption.d.ts +1 -0
- package/auth/session/vault-encryption.d.ts.map +1 -0
- package/auth/session/vercel-kv-session.store.d.ts +1 -0
- package/auth/session/vercel-kv-session.store.d.ts.map +1 -0
- package/auth/ui/base-layout.d.ts +1 -0
- package/auth/ui/base-layout.d.ts.map +1 -0
- package/auth/ui/index.d.ts +1 -0
- package/auth/ui/index.d.ts.map +1 -0
- package/auth/ui/templates.d.ts +1 -0
- package/auth/ui/templates.d.ts.map +1 -0
- package/auth/utils/audience.validator.d.ts +1 -0
- package/auth/utils/audience.validator.d.ts.map +1 -0
- package/auth/utils/index.d.ts +1 -0
- package/auth/utils/index.d.ts.map +1 -0
- package/auth/utils/www-authenticate.utils.d.ts +1 -0
- package/auth/utils/www-authenticate.utils.d.ts.map +1 -0
- package/common/common.schema.d.ts +1 -0
- package/common/common.schema.d.ts.map +1 -0
- package/common/decorators/adapter.decorator.d.ts +1 -0
- package/common/decorators/adapter.decorator.d.ts.map +1 -0
- package/common/decorators/agent.decorator.d.ts +116 -0
- package/common/decorators/agent.decorator.d.ts.map +1 -0
- package/common/decorators/app.decorator.d.ts +1 -0
- package/common/decorators/app.decorator.d.ts.map +1 -0
- package/common/decorators/auth-provider.decorator.d.ts +1 -0
- package/common/decorators/auth-provider.decorator.d.ts.map +1 -0
- package/common/decorators/decorator-utils.d.ts +1 -0
- package/common/decorators/decorator-utils.d.ts.map +1 -0
- package/common/decorators/flow.decorator.d.ts +1 -0
- package/common/decorators/flow.decorator.d.ts.map +1 -0
- package/common/decorators/front-mcp.decorator.d.ts +1 -0
- package/common/decorators/front-mcp.decorator.d.ts.map +1 -0
- package/common/decorators/hook.decorator.d.ts +1 -0
- package/common/decorators/hook.decorator.d.ts.map +1 -0
- package/common/decorators/index.d.ts +2 -0
- package/common/decorators/index.d.ts.map +1 -0
- package/common/decorators/logger.decorator.d.ts +1 -0
- package/common/decorators/logger.decorator.d.ts.map +1 -0
- package/common/decorators/plugin.decorator.d.ts +1 -0
- package/common/decorators/plugin.decorator.d.ts.map +1 -0
- package/common/decorators/prompt.decorator.d.ts +8 -3
- package/common/decorators/prompt.decorator.d.ts.map +1 -0
- package/common/decorators/provider.decorator.d.ts +1 -0
- package/common/decorators/provider.decorator.d.ts.map +1 -0
- package/common/decorators/resource.decorator.d.ts +1 -0
- package/common/decorators/resource.decorator.d.ts.map +1 -0
- package/common/decorators/tool.decorator.d.ts +1 -0
- package/common/decorators/tool.decorator.d.ts.map +1 -0
- package/common/dynamic/dynamic.adapter.d.ts +1 -0
- package/common/dynamic/dynamic.adapter.d.ts.map +1 -0
- package/common/dynamic/dynamic.plugin.d.ts +3 -1
- package/common/dynamic/dynamic.plugin.d.ts.map +1 -0
- package/common/dynamic/dynamic.utils.d.ts +1 -0
- package/common/dynamic/dynamic.utils.d.ts.map +1 -0
- package/common/dynamic/index.d.ts +1 -0
- package/common/dynamic/index.d.ts.map +1 -0
- package/common/entries/adapter.entry.d.ts +1 -0
- package/common/entries/adapter.entry.d.ts.map +1 -0
- package/common/entries/agent.entry.d.ts +143 -0
- package/common/entries/agent.entry.d.ts.map +1 -0
- package/common/entries/app.entry.d.ts +8 -0
- package/common/entries/app.entry.d.ts.map +1 -0
- package/common/entries/auth-provider.entry.d.ts +2 -1
- package/common/entries/auth-provider.entry.d.ts.map +1 -0
- package/common/entries/base.entry.d.ts +3 -2
- package/common/entries/base.entry.d.ts.map +1 -0
- package/common/entries/flow.entry.d.ts +3 -1
- package/common/entries/flow.entry.d.ts.map +1 -0
- package/common/entries/hook.entry.d.ts +7 -5
- package/common/entries/hook.entry.d.ts.map +1 -0
- package/common/entries/index.d.ts +2 -0
- package/common/entries/index.d.ts.map +1 -0
- package/common/entries/logger.entry.d.ts +1 -0
- package/common/entries/logger.entry.d.ts.map +1 -0
- package/common/entries/plugin.entry.d.ts +3 -1
- package/common/entries/plugin.entry.d.ts.map +1 -0
- package/common/entries/prompt.entry.d.ts +13 -0
- package/common/entries/prompt.entry.d.ts.map +1 -0
- package/common/entries/provider.entry.d.ts +5 -4
- package/common/entries/provider.entry.d.ts.map +1 -0
- package/common/entries/resource.entry.d.ts +7 -0
- package/common/entries/resource.entry.d.ts.map +1 -0
- package/common/entries/scope.entry.d.ts +3 -1
- package/common/entries/scope.entry.d.ts.map +1 -0
- package/common/entries/tool.entry.d.ts +17 -0
- package/common/entries/tool.entry.d.ts.map +1 -0
- package/common/flow/flow.utils.d.ts +1 -0
- package/common/flow/flow.utils.d.ts.map +1 -0
- package/common/index.d.ts +1 -1
- package/common/index.d.ts.map +1 -0
- package/common/interfaces/adapter.interface.d.ts +2 -1
- package/common/interfaces/adapter.interface.d.ts.map +1 -0
- package/common/interfaces/agent.interface.d.ts +255 -0
- package/common/interfaces/agent.interface.d.ts.map +1 -0
- package/common/interfaces/app.interface.d.ts +5 -3
- package/common/interfaces/app.interface.d.ts.map +1 -0
- package/common/interfaces/auth-hook.interface.d.ts +1 -0
- package/common/interfaces/auth-hook.interface.d.ts.map +1 -0
- package/common/interfaces/auth-provider.interface.d.ts +2 -1
- package/common/interfaces/auth-provider.interface.d.ts.map +1 -0
- package/common/interfaces/base.interface.d.ts +2 -77
- package/common/interfaces/base.interface.d.ts.map +1 -0
- package/common/interfaces/execution-context.interface.d.ts +2 -1
- package/common/interfaces/execution-context.interface.d.ts.map +1 -0
- package/common/interfaces/flow.interface.d.ts +2 -1
- package/common/interfaces/flow.interface.d.ts.map +1 -0
- package/common/interfaces/front-mcp.interface.d.ts +1 -0
- package/common/interfaces/front-mcp.interface.d.ts.map +1 -0
- package/common/interfaces/hook.interface.d.ts +2 -1
- package/common/interfaces/hook.interface.d.ts.map +1 -0
- package/common/interfaces/index.d.ts +4 -0
- package/common/interfaces/index.d.ts.map +1 -0
- package/common/interfaces/internal/flow.utils.d.ts +1 -0
- package/common/interfaces/internal/flow.utils.d.ts.map +1 -0
- package/common/interfaces/internal/index.d.ts +1 -0
- package/common/interfaces/internal/index.d.ts.map +1 -0
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts +1 -0
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts.map +1 -0
- package/common/interfaces/internal/registry.interface.d.ts +13 -3
- package/common/interfaces/internal/registry.interface.d.ts.map +1 -0
- package/common/interfaces/llm-adapter.interface.d.ts +221 -0
- package/common/interfaces/llm-adapter.interface.d.ts.map +1 -0
- package/common/interfaces/logger.interface.d.ts +7 -6
- package/common/interfaces/logger.interface.d.ts.map +1 -0
- package/common/interfaces/plugin.interface.d.ts +2 -1
- package/common/interfaces/plugin.interface.d.ts.map +1 -0
- package/common/interfaces/prompt.interface.d.ts +10 -2
- package/common/interfaces/prompt.interface.d.ts.map +1 -0
- package/common/interfaces/provider.interface.d.ts +2 -1
- package/common/interfaces/provider.interface.d.ts.map +1 -0
- package/common/interfaces/resource.interface.d.ts +12 -2
- package/common/interfaces/resource.interface.d.ts.map +1 -0
- package/common/interfaces/scope.interface.d.ts +3 -2
- package/common/interfaces/scope.interface.d.ts.map +1 -0
- package/common/interfaces/server.interface.d.ts +1 -0
- package/common/interfaces/server.interface.d.ts.map +1 -0
- package/common/interfaces/session-hook.interface.d.ts +1 -0
- package/common/interfaces/session-hook.interface.d.ts.map +1 -0
- package/common/interfaces/tool-hook.interface.d.ts +1 -0
- package/common/interfaces/tool-hook.interface.d.ts.map +1 -0
- package/common/interfaces/tool.interface.d.ts +52 -2
- package/common/interfaces/tool.interface.d.ts.map +1 -0
- package/common/metadata/adapter.metadata.d.ts +1 -0
- package/common/metadata/adapter.metadata.d.ts.map +1 -0
- package/common/metadata/agent.metadata.d.ts +398 -0
- package/common/metadata/agent.metadata.d.ts.map +1 -0
- package/common/metadata/app.metadata.d.ts +162 -16
- package/common/metadata/app.metadata.d.ts.map +1 -0
- package/common/metadata/auth-provider.metadata.d.ts +1 -0
- package/common/metadata/auth-provider.metadata.d.ts.map +1 -0
- package/common/metadata/flow.metadata.d.ts +5 -3
- package/common/metadata/flow.metadata.d.ts.map +1 -0
- package/common/metadata/front-mcp.metadata.d.ts +138 -46
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -0
- package/common/metadata/hook.metadata.d.ts +2 -1
- package/common/metadata/hook.metadata.d.ts.map +1 -0
- package/common/metadata/index.d.ts +4 -0
- package/common/metadata/index.d.ts.map +1 -0
- package/common/metadata/logger.metadata.d.ts +1 -0
- package/common/metadata/logger.metadata.d.ts.map +1 -0
- package/common/metadata/plugin.metadata.d.ts +74 -7
- package/common/metadata/plugin.metadata.d.ts.map +1 -0
- package/common/metadata/prompt.metadata.d.ts +1 -0
- package/common/metadata/prompt.metadata.d.ts.map +1 -0
- package/common/metadata/provider.metadata.d.ts +5 -30
- package/common/metadata/provider.metadata.d.ts.map +1 -0
- package/common/metadata/resource.metadata.d.ts +1 -0
- package/common/metadata/resource.metadata.d.ts.map +1 -0
- package/common/metadata/tool-ui.metadata.d.ts +1 -0
- package/common/metadata/tool-ui.metadata.d.ts.map +1 -0
- package/common/metadata/tool.metadata.d.ts +1 -0
- package/common/metadata/tool.metadata.d.ts.map +1 -0
- package/common/migrate/auth-transport.migrate.d.ts +1 -0
- package/common/migrate/auth-transport.migrate.d.ts.map +1 -0
- package/common/migrate/index.d.ts +1 -0
- package/common/migrate/index.d.ts.map +1 -0
- package/common/providers/base-config.provider.d.ts +1 -0
- package/common/providers/base-config.provider.d.ts.map +1 -0
- package/common/records/adapter.record.d.ts +2 -1
- package/common/records/adapter.record.d.ts.map +1 -0
- package/common/records/agent.record.d.ts +89 -0
- package/common/records/agent.record.d.ts.map +1 -0
- package/common/records/app.record.d.ts +2 -1
- package/common/records/app.record.d.ts.map +1 -0
- package/common/records/auth-provider.record.d.ts +3 -1
- package/common/records/auth-provider.record.d.ts.map +1 -0
- package/common/records/flow.record.d.ts +1 -0
- package/common/records/flow.record.d.ts.map +1 -0
- package/common/records/hook.record.d.ts +1 -0
- package/common/records/hook.record.d.ts.map +1 -0
- package/common/records/index.d.ts +4 -0
- package/common/records/index.d.ts.map +1 -0
- package/common/records/logger.record.d.ts +4 -2
- package/common/records/logger.record.d.ts.map +1 -0
- package/common/records/plugin.record.d.ts +3 -1
- package/common/records/plugin.record.d.ts.map +1 -0
- package/common/records/prompt.record.d.ts +2 -1
- package/common/records/prompt.record.d.ts.map +1 -0
- package/common/records/provider.record.d.ts +2 -36
- package/common/records/provider.record.d.ts.map +1 -0
- package/common/records/resource.record.d.ts +2 -1
- package/common/records/resource.record.d.ts.map +1 -0
- package/common/records/scope.record.d.ts +2 -1
- package/common/records/scope.record.d.ts.map +1 -0
- package/common/records/tool.record.d.ts +3 -1
- package/common/records/tool.record.d.ts.map +1 -0
- package/common/schemas/annotated-class.schema.d.ts +4 -1
- package/common/schemas/annotated-class.schema.d.ts.map +1 -0
- package/common/schemas/http-input.schema.d.ts +1 -0
- package/common/schemas/http-input.schema.d.ts.map +1 -0
- package/common/schemas/http-output.schema.d.ts +1 -0
- package/common/schemas/http-output.schema.d.ts.map +1 -0
- package/common/schemas/index.d.ts +1 -0
- package/common/schemas/index.d.ts.map +1 -0
- package/common/schemas/session-header.schema.d.ts +1 -0
- package/common/schemas/session-header.schema.d.ts.map +1 -0
- package/common/tokens/adapter.tokens.d.ts +1 -0
- package/common/tokens/adapter.tokens.d.ts.map +1 -0
- package/common/tokens/agent.tokens.d.ts +33 -0
- package/common/tokens/agent.tokens.d.ts.map +1 -0
- package/common/tokens/app.tokens.d.ts +1 -0
- package/common/tokens/app.tokens.d.ts.map +1 -0
- package/common/tokens/auth-provider.tokens.d.ts +1 -0
- package/common/tokens/auth-provider.tokens.d.ts.map +1 -0
- package/common/tokens/base.tokens.d.ts +6 -4
- package/common/tokens/base.tokens.d.ts.map +1 -0
- package/common/tokens/flow-hook.tokens.d.ts +1 -0
- package/common/tokens/flow-hook.tokens.d.ts.map +1 -0
- package/common/tokens/flow.tokens.d.ts +1 -0
- package/common/tokens/flow.tokens.d.ts.map +1 -0
- package/common/tokens/front-mcp.tokens.d.ts +1 -0
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -0
- package/common/tokens/index.d.ts +2 -0
- package/common/tokens/index.d.ts.map +1 -0
- package/common/tokens/logger.tokens.d.ts +1 -0
- package/common/tokens/logger.tokens.d.ts.map +1 -0
- package/common/tokens/plugin.tokens.d.ts +3 -0
- package/common/tokens/plugin.tokens.d.ts.map +1 -0
- package/common/tokens/prompt.tokens.d.ts +1 -0
- package/common/tokens/prompt.tokens.d.ts.map +1 -0
- package/common/tokens/provider.tokens.d.ts +1 -0
- package/common/tokens/provider.tokens.d.ts.map +1 -0
- package/common/tokens/resource.tokens.d.ts +1 -0
- package/common/tokens/resource.tokens.d.ts.map +1 -0
- package/common/tokens/server.tokens.d.ts +1 -0
- package/common/tokens/server.tokens.d.ts.map +1 -0
- package/common/tokens/tool.tokens.d.ts +1 -0
- package/common/tokens/tool.tokens.d.ts.map +1 -0
- package/common/types/auth/index.d.ts +1 -0
- package/common/types/auth/index.d.ts.map +1 -0
- package/common/types/auth/jwt.types.d.ts +1 -0
- package/common/types/auth/jwt.types.d.ts.map +1 -0
- package/common/types/auth/session.types.d.ts +1 -0
- package/common/types/auth/session.types.d.ts.map +1 -0
- package/common/types/common.types.d.ts +1 -0
- package/common/types/common.types.d.ts.map +1 -0
- package/common/types/index.d.ts +1 -0
- package/common/types/index.d.ts.map +1 -0
- package/common/types/options/auth/app-auth.schema.d.ts +1 -0
- package/common/types/options/auth/app-auth.schema.d.ts.map +1 -0
- package/common/types/options/auth/auth.interfaces.d.ts +1 -0
- package/common/types/options/auth/auth.interfaces.d.ts.map +1 -0
- package/common/types/options/auth/auth.schema.d.ts +1 -0
- package/common/types/options/auth/auth.schema.d.ts.map +1 -0
- package/common/types/options/auth/auth.typecheck.d.ts +1 -0
- package/common/types/options/auth/auth.typecheck.d.ts.map +1 -0
- package/common/types/options/auth/auth.utils.d.ts +1 -0
- package/common/types/options/auth/auth.utils.d.ts.map +1 -0
- package/common/types/options/auth/index.d.ts +1 -0
- package/common/types/options/auth/index.d.ts.map +1 -0
- package/common/types/options/auth/orchestrated.schema.d.ts +1 -0
- package/common/types/options/auth/orchestrated.schema.d.ts.map +1 -0
- package/common/types/options/auth/public.schema.d.ts +1 -0
- package/common/types/options/auth/public.schema.d.ts.map +1 -0
- package/common/types/options/auth/shared.schemas.d.ts +1 -0
- package/common/types/options/auth/shared.schemas.d.ts.map +1 -0
- package/common/types/options/auth/transparent.schema.d.ts +1 -0
- package/common/types/options/auth/transparent.schema.d.ts.map +1 -0
- package/common/types/options/auth/transport.deprecated.d.ts +1 -0
- package/common/types/options/auth/transport.deprecated.d.ts.map +1 -0
- package/common/types/options/http.options.d.ts +1 -0
- package/common/types/options/http.options.d.ts.map +1 -0
- package/common/types/options/index.d.ts +1 -0
- package/common/types/options/index.d.ts.map +1 -0
- package/common/types/options/logging.options.d.ts +2 -5
- package/common/types/options/logging.options.d.ts.map +1 -0
- package/common/types/options/redis.options.d.ts +1 -0
- package/common/types/options/redis.options.d.ts.map +1 -0
- package/common/types/options/server-info.options.d.ts +1 -0
- package/common/types/options/server-info.options.d.ts.map +1 -0
- package/common/types/options/session.options.d.ts +1 -0
- package/common/types/options/session.options.d.ts.map +1 -0
- package/common/types/options/transport.options.d.ts +25 -0
- package/common/types/options/transport.options.d.ts.map +1 -0
- package/common/utils/decide-request-intent.utils.d.ts +1 -0
- package/common/utils/decide-request-intent.utils.d.ts.map +1 -0
- package/common/utils/global-config.utils.d.ts +1 -0
- package/common/utils/global-config.utils.d.ts.map +1 -0
- package/common/utils/index.d.ts +1 -0
- package/common/utils/index.d.ts.map +1 -0
- package/common/utils/path.utils.d.ts +3 -4
- package/common/utils/path.utils.d.ts.map +1 -0
- package/completion/flows/complete.flow.d.ts +1 -0
- package/completion/flows/complete.flow.d.ts.map +1 -0
- package/context/context-extension.d.ts +52 -0
- package/context/context-extension.d.ts.map +1 -0
- package/context/frontmcp-context-storage.d.ts +1 -0
- package/context/frontmcp-context-storage.d.ts.map +1 -0
- package/context/frontmcp-context.d.ts +1 -0
- package/context/frontmcp-context.d.ts.map +1 -0
- package/context/frontmcp-context.provider.d.ts +3 -2
- package/context/frontmcp-context.provider.d.ts.map +1 -0
- package/context/index.d.ts +1 -0
- package/context/index.d.ts.map +1 -0
- package/context/request-context-storage.d.ts +1 -0
- package/context/request-context-storage.d.ts.map +1 -0
- package/context/request-context.d.ts +1 -0
- package/context/request-context.d.ts.map +1 -0
- package/context/request-context.provider.d.ts +1 -0
- package/context/request-context.provider.d.ts.map +1 -0
- package/context/session-key.provider.d.ts +1 -0
- package/context/session-key.provider.d.ts.map +1 -0
- package/context/trace-context.d.ts +1 -0
- package/context/trace-context.d.ts.map +1 -0
- package/errors/agent.errors.d.ts +80 -0
- package/errors/agent.errors.d.ts.map +1 -0
- package/errors/authorization-required.error.d.ts +1 -0
- package/errors/authorization-required.error.d.ts.map +1 -0
- package/errors/error-handler.d.ts +1 -0
- package/errors/error-handler.d.ts.map +1 -0
- package/errors/index.d.ts +4 -1
- package/errors/index.d.ts.map +1 -0
- package/errors/mcp.error.d.ts +31 -0
- package/errors/mcp.error.d.ts.map +1 -0
- package/errors/remote.errors.d.ts +156 -0
- package/errors/remote.errors.d.ts.map +1 -0
- package/esm/index.mjs +13968 -7053
- package/esm/package.json +12 -12
- package/flows/flow.instance.d.ts +1 -0
- package/flows/flow.instance.d.ts.map +1 -0
- package/flows/flow.registry.d.ts +3 -1
- package/flows/flow.registry.d.ts.map +1 -0
- package/flows/flow.stages.d.ts +1 -0
- package/flows/flow.stages.d.ts.map +1 -0
- package/flows/flow.utils.d.ts +3 -1
- package/flows/flow.utils.d.ts.map +1 -0
- package/front-mcp/front-mcp.d.ts +21 -1
- package/front-mcp/front-mcp.d.ts.map +1 -0
- package/front-mcp/front-mcp.providers.d.ts +42 -21
- package/front-mcp/front-mcp.providers.d.ts.map +1 -0
- package/front-mcp/front-mcp.tokens.d.ts +3 -1
- package/front-mcp/front-mcp.tokens.d.ts.map +1 -0
- package/front-mcp/index.d.ts +1 -0
- package/front-mcp/index.d.ts.map +1 -0
- package/front-mcp/serverless-handler.d.ts +1 -0
- package/front-mcp/serverless-handler.d.ts.map +1 -0
- package/hooks/hook.instance.d.ts +1 -0
- package/hooks/hook.instance.d.ts.map +1 -0
- package/hooks/hook.registry.d.ts +1 -0
- package/hooks/hook.registry.d.ts.map +1 -0
- package/hooks/hooks.utils.d.ts +3 -1
- package/hooks/hooks.utils.d.ts.map +1 -0
- package/index.d.ts +29 -20
- package/index.d.ts.map +1 -0
- package/index.js +14208 -7223
- package/logger/instances/instance.console-logger.d.ts +1 -0
- package/logger/instances/instance.console-logger.d.ts.map +1 -0
- package/logger/instances/instance.logger.d.ts +1 -0
- package/logger/instances/instance.logger.d.ts.map +1 -0
- package/logger/logger.registry.d.ts +1 -0
- package/logger/logger.registry.d.ts.map +1 -0
- package/logger/logger.tokens.d.ts +1 -0
- package/logger/logger.tokens.d.ts.map +1 -0
- package/logger/logger.types.d.ts +1 -0
- package/logger/logger.types.d.ts.map +1 -0
- package/logger/logger.utils.d.ts +3 -1
- package/logger/logger.utils.d.ts.map +1 -0
- package/logging/flows/set-level.flow.d.ts +1 -0
- package/logging/flows/set-level.flow.d.ts.map +1 -0
- package/notification/index.d.ts +1 -0
- package/notification/index.d.ts.map +1 -0
- package/notification/notification.service.d.ts +17 -4
- package/notification/notification.service.d.ts.map +1 -0
- package/package.json +12 -12
- package/plugin/plugin.registry.d.ts +25 -6
- package/plugin/plugin.registry.d.ts.map +1 -0
- package/plugin/plugin.utils.d.ts +3 -1
- package/plugin/plugin.utils.d.ts.map +1 -0
- package/prompt/flows/get-prompt.flow.d.ts +8 -1
- package/prompt/flows/get-prompt.flow.d.ts.map +1 -0
- package/prompt/flows/prompts-list.flow.d.ts +8 -1
- package/prompt/flows/prompts-list.flow.d.ts.map +1 -0
- package/prompt/index.d.ts +1 -0
- package/prompt/index.d.ts.map +1 -0
- package/prompt/prompt.events.d.ts +3 -2
- package/prompt/prompt.events.d.ts.map +1 -0
- package/prompt/prompt.instance.d.ts +7 -1
- package/prompt/prompt.instance.d.ts.map +1 -0
- package/prompt/prompt.registry.d.ts +32 -7
- package/prompt/prompt.registry.d.ts.map +1 -0
- package/prompt/prompt.types.d.ts +5 -4
- package/prompt/prompt.types.d.ts.map +1 -0
- package/prompt/prompt.utils.d.ts +3 -3
- package/prompt/prompt.utils.d.ts.map +1 -0
- package/provider/flow-context-providers.d.ts +24 -0
- package/provider/flow-context-providers.d.ts.map +1 -0
- package/provider/provider.registry.d.ts +26 -4
- package/provider/provider.registry.d.ts.map +1 -0
- package/provider/provider.types.d.ts +2 -1
- package/provider/provider.types.d.ts.map +1 -0
- package/provider/provider.utils.d.ts +21 -2
- package/provider/provider.utils.d.ts.map +1 -0
- package/regsitry/index.d.ts +1 -0
- package/regsitry/index.d.ts.map +1 -0
- package/regsitry/registry.base.d.ts +3 -1
- package/regsitry/registry.base.d.ts.map +1 -0
- package/remote-mcp/cache/capability-cache.d.ts +87 -0
- package/remote-mcp/cache/capability-cache.d.ts.map +1 -0
- package/remote-mcp/cache/index.d.ts +6 -0
- package/remote-mcp/cache/index.d.ts.map +1 -0
- package/remote-mcp/factories/context-factories.d.ts +43 -0
- package/remote-mcp/factories/context-factories.d.ts.map +1 -0
- package/remote-mcp/factories/index.d.ts +12 -0
- package/remote-mcp/factories/index.d.ts.map +1 -0
- package/remote-mcp/factories/instance-factories.d.ts +81 -0
- package/remote-mcp/factories/instance-factories.d.ts.map +1 -0
- package/remote-mcp/factories/record-builders.d.ts +50 -0
- package/remote-mcp/factories/record-builders.d.ts.map +1 -0
- package/remote-mcp/index.d.ts +14 -0
- package/remote-mcp/index.d.ts.map +1 -0
- package/remote-mcp/mcp-client.service.d.ts +169 -0
- package/remote-mcp/mcp-client.service.d.ts.map +1 -0
- package/remote-mcp/mcp-client.types.d.ts +298 -0
- package/remote-mcp/mcp-client.types.d.ts.map +1 -0
- package/remote-mcp/resilience/circuit-breaker.d.ts +100 -0
- package/remote-mcp/resilience/circuit-breaker.d.ts.map +1 -0
- package/remote-mcp/resilience/health-check.d.ts +107 -0
- package/remote-mcp/resilience/health-check.d.ts.map +1 -0
- package/remote-mcp/resilience/index.d.ts +8 -0
- package/remote-mcp/resilience/index.d.ts.map +1 -0
- package/remote-mcp/resilience/retry.d.ts +37 -0
- package/remote-mcp/resilience/retry.d.ts.map +1 -0
- package/resource/flows/read-resource.flow.d.ts +8 -1
- package/resource/flows/read-resource.flow.d.ts.map +1 -0
- package/resource/flows/resource-templates-list.flow.d.ts +8 -1
- package/resource/flows/resource-templates-list.flow.d.ts.map +1 -0
- package/resource/flows/resources-list.flow.d.ts +8 -1
- package/resource/flows/resources-list.flow.d.ts.map +1 -0
- package/resource/flows/subscribe-resource.flow.d.ts +1 -0
- package/resource/flows/subscribe-resource.flow.d.ts.map +1 -0
- package/resource/flows/unsubscribe-resource.flow.d.ts +1 -0
- package/resource/flows/unsubscribe-resource.flow.d.ts.map +1 -0
- package/resource/index.d.ts +1 -0
- package/resource/index.d.ts.map +1 -0
- package/resource/resource.events.d.ts +3 -2
- package/resource/resource.events.d.ts.map +1 -0
- package/resource/resource.instance.d.ts +1 -0
- package/resource/resource.instance.d.ts.map +1 -0
- package/resource/resource.registry.d.ts +33 -8
- package/resource/resource.registry.d.ts.map +1 -0
- package/resource/resource.types.d.ts +5 -4
- package/resource/resource.types.d.ts.map +1 -0
- package/resource/resource.utils.d.ts +3 -5
- package/resource/resource.utils.d.ts.map +1 -0
- package/scope/flows/http.request.flow.d.ts +1 -0
- package/scope/flows/http.request.flow.d.ts.map +1 -0
- package/scope/index.d.ts +1 -0
- package/scope/index.d.ts.map +1 -0
- package/scope/scope.instance.d.ts +7 -0
- package/scope/scope.instance.d.ts.map +1 -0
- package/scope/scope.registry.d.ts +6 -0
- package/scope/scope.registry.d.ts.map +1 -0
- package/scope/scope.utils.d.ts +3 -1
- package/scope/scope.utils.d.ts.map +1 -0
- package/server/adapters/base.host.adapter.d.ts +1 -0
- package/server/adapters/base.host.adapter.d.ts.map +1 -0
- package/server/adapters/express.host.adapter.d.ts +1 -0
- package/server/adapters/express.host.adapter.d.ts.map +1 -0
- package/server/server.instance.d.ts +1 -0
- package/server/server.instance.d.ts.map +1 -0
- package/server/server.types.d.ts +1 -0
- package/server/server.types.d.ts.map +1 -0
- package/server/server.validation.d.ts +1 -0
- package/server/server.validation.d.ts.map +1 -0
- package/store/adapters/store.base.adapter.d.ts +1 -0
- package/store/adapters/store.base.adapter.d.ts.map +1 -0
- package/store/adapters/store.memory.adapter.d.ts +1 -0
- package/store/adapters/store.memory.adapter.d.ts.map +1 -0
- package/store/adapters/store.redis.adapter.d.ts +1 -0
- package/store/adapters/store.redis.adapter.d.ts.map +1 -0
- package/store/adapters/store.vercel-kv.adapter.d.ts +1 -0
- package/store/adapters/store.vercel-kv.adapter.d.ts.map +1 -0
- package/store/index.d.ts +1 -0
- package/store/index.d.ts.map +1 -0
- package/store/store.factory.d.ts +1 -0
- package/store/store.factory.d.ts.map +1 -0
- package/store/store.helpers.d.ts +1 -0
- package/store/store.helpers.d.ts.map +1 -0
- package/store/store.registry.d.ts +1 -0
- package/store/store.registry.d.ts.map +1 -0
- package/store/store.tokens.d.ts +1 -0
- package/store/store.tokens.d.ts.map +1 -0
- package/store/store.types.d.ts +1 -0
- package/store/store.types.d.ts.map +1 -0
- package/store/store.utils.d.ts +1 -0
- package/store/store.utils.d.ts.map +1 -0
- package/tool/flows/call-tool.flow.d.ts +9 -1
- package/tool/flows/call-tool.flow.d.ts.map +1 -0
- package/tool/flows/tools-list.flow.d.ts +8 -1
- package/tool/flows/tools-list.flow.d.ts.map +1 -0
- package/tool/tool.events.d.ts +3 -2
- package/tool/tool.events.d.ts.map +1 -0
- package/tool/tool.instance.d.ts +18 -1
- package/tool/tool.instance.d.ts.map +1 -0
- package/tool/tool.registry.d.ts +57 -5
- package/tool/tool.registry.d.ts.map +1 -0
- package/tool/tool.types.d.ts +5 -4
- package/tool/tool.types.d.ts.map +1 -0
- package/tool/tool.utils.d.ts +20 -3
- package/tool/tool.utils.d.ts.map +1 -0
- package/tool/ui/index.d.ts +1 -0
- package/tool/ui/index.d.ts.map +1 -0
- package/tool/ui/platform-adapters.d.ts +1 -0
- package/tool/ui/platform-adapters.d.ts.map +1 -0
- package/tool/ui/template-helpers.d.ts +1 -0
- package/tool/ui/template-helpers.d.ts.map +1 -0
- package/tool/ui/ui-resource-template.d.ts +1 -0
- package/tool/ui/ui-resource-template.d.ts.map +1 -0
- package/tool/ui/ui-resource.handler.d.ts +1 -0
- package/tool/ui/ui-resource.handler.d.ts.map +1 -0
- package/transport/adapters/sse-transport.d.ts +1 -0
- package/transport/adapters/sse-transport.d.ts.map +1 -0
- package/transport/adapters/streamable-http-transport.d.ts +27 -0
- package/transport/adapters/streamable-http-transport.d.ts.map +1 -0
- package/transport/adapters/transport.local.adapter.d.ts +12 -0
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -0
- package/transport/adapters/transport.sse.adapter.d.ts +1 -0
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -0
- package/transport/adapters/transport.streamable-http.adapter.d.ts +1 -0
- package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -0
- package/transport/flows/handle.sse.flow.d.ts +1 -0
- package/transport/flows/handle.sse.flow.d.ts.map +1 -0
- package/transport/flows/handle.stateless-http.flow.d.ts +1 -0
- package/transport/flows/handle.stateless-http.flow.d.ts.map +1 -0
- package/transport/flows/handle.streamable-http.flow.d.ts +1 -0
- package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -0
- package/transport/index.d.ts +1 -0
- package/transport/index.d.ts.map +1 -0
- package/transport/legacy/legacy.sse.tranporter.d.ts +1 -0
- package/transport/legacy/legacy.sse.tranporter.d.ts.map +1 -0
- package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts +1 -0
- package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts.map +1 -0
- package/transport/mcp-handlers/call-tool-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/call-tool-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/complete-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/complete-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/index.d.ts +2 -1
- package/transport/mcp-handlers/index.d.ts.map +1 -0
- package/transport/mcp-handlers/initialize-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-resources-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-resources-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/list-tools-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/list-tools-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts +2 -1
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/mcp-handlers.types.d.ts +1 -0
- package/transport/mcp-handlers/mcp-handlers.types.d.ts.map +1 -0
- package/transport/mcp-handlers/read-resource-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/read-resource-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts +1 -0
- package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/subscribe-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/subscribe-request.handler.d.ts.map +1 -0
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts +1 -0
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts.map +1 -0
- package/transport/transport.error.d.ts +1 -0
- package/transport/transport.error.d.ts.map +1 -0
- package/transport/transport.event-store.d.ts +1 -0
- package/transport/transport.event-store.d.ts.map +1 -0
- package/transport/transport.local.d.ts +1 -0
- package/transport/transport.local.d.ts.map +1 -0
- package/transport/transport.registry.d.ts +1 -0
- package/transport/transport.registry.d.ts.map +1 -0
- package/transport/transport.remote.d.ts +1 -0
- package/transport/transport.remote.d.ts.map +1 -0
- package/transport/transport.types.d.ts +2 -1
- package/transport/transport.types.d.ts.map +1 -0
- package/types/drinen-hooks.types.d.ts +1 -0
- package/types/drinen-hooks.types.d.ts.map +1 -0
- package/types/invoke.type.d.ts +1 -0
- package/types/invoke.type.d.ts.map +1 -0
- package/types/token.types.d.ts +1 -0
- package/types/token.types.d.ts.map +1 -0
- package/{utils/types.utils.d.ts → types/zod.types.d.ts} +1 -0
- package/types/zod.types.d.ts.map +1 -0
- package/utils/content.utils.d.ts +1 -19
- package/utils/content.utils.d.ts.map +1 -0
- package/utils/index.d.ts +3 -7
- package/utils/index.d.ts.map +1 -0
- package/utils/lineage.utils.d.ts +1 -0
- package/utils/lineage.utils.d.ts.map +1 -0
- package/utils/naming.utils.d.ts +2 -34
- package/utils/naming.utils.d.ts.map +1 -0
- package/common/constants.d.ts +0 -5
- package/esm/mcp-apps/index.mjs +0 -723
- package/exceptions/mcp-exceptions/session-missing.exception.d.ts +0 -3
- package/exceptions/mcp-exceptions/unsupported-client-version.exception.d.ts +0 -5
- package/mcp-apps/csp.d.ts +0 -111
- package/mcp-apps/index.d.ts +0 -23
- package/mcp-apps/index.js +0 -799
- package/mcp-apps/schemas.d.ts +0 -403
- package/mcp-apps/template.d.ts +0 -94
- package/mcp-apps/types.d.ts +0 -323
- package/utils/metadata.utils.d.ts +0 -5
- package/utils/server.utils.d.ts +0 -19
- package/utils/string.utils.d.ts +0 -1
- package/utils/token.utils.d.ts +0 -11
- package/utils/uri-template.utils.d.ts +0 -57
- package/utils/uri-validation.utils.d.ts +0 -40
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance.console-logger.d.ts","sourceRoot":"","sources":["../../../src/logger/instances/instance.console-logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAgB,QAAQ,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAO/F,qBAIa,2BAA4B,SAAQ,qBAAqB;IACpE,GAAG,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI;IAKzB,OAAO,CAAC,SAAS,CAOf;IAEF,4EAA4E;IAC5E,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK;IAmBnD,OAAO,CAAC,UAAU;IAiBlB,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,YAAY;CAIrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance.logger.d.ts","sourceRoot":"","sources":["../../../src/logger/instances/instance.logger.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,KAAK,EACL,iBAAiB,EAIlB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAExE,MAAM,MAAM,aAAa,GAAG,MAAM;IAChC,gBAAgB,CAAC,EAAE,2BAA2B,CAAC;IAC/C,UAAU,EAAE,qBAAqB,EAAE,CAAC;CACrC,CAAC;AAEF,qBAAa,cAAe,SAAQ,cAAc;IAMpC,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAqB,OAAO,CAAC,aAAa;IAL7E,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0B;IACrD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAA8B;gBAEnC,MAAM,EAAE,iBAAiB,EAAU,aAAa,EAAE,aAAa;IAU5F,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc;IAIrC,mEAAmE;IACnE,OAAO,CAAC,IAAI;IAuBZ,IAAI,OAAO,IAAI,KAAK,CAEnB;IAED,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,IAAI,IAAI,IAAI,KAAK,CAEhB;IAED,IAAI,IAAI,IAAI,KAAK,CAEhB;IAED,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,OAAO;CAUhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.registry.d.ts","sourceRoot":"","sources":["../../src/logger/logger.registry.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAA4B,gBAAgB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACjH,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAc,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM1D,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,gBAAgB,CAAC,qBAAqB,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACnH,MAAM,EAAE,iBAAiB,CAAC;gBAEd,eAAe,EAAE,gBAAgB;IAkB7C,SAAS,CAAC,UAAU;cAaD,QAAQ,CAAC,IAAI,EAAE,gBAAgB,EAAE,GAAG,sBAAsB,CAAC,YAAY,CAAC;cAoB3E,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAqB3C,SAAS,CAAC,UAAU;CAmBrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.tokens.d.ts","sourceRoot":"","sources":["../../src/logger/logger.tokens.ts"],"names":[],"mappings":""}
|
package/logger/logger.types.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.types.d.ts","sourceRoot":"","sources":["../../src/logger/logger.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,IAAI,EACL,MAAM,WAAW,CAAC;AAEnB,oBAAY,UAAU;IACpB,WAAW,gBAAgB;CAC5B;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7B,OAAO,EAAE,IAAI,CAAC,qBAAqB,CAAC,CAAC;IACrC,QAAQ,EAAE,oBAAoB,CAAA;CAC/B,CAAC;AAEF,MAAM,MAAM,YAAY,GACpB,gBAAgB,CAAA"}
|
package/logger/logger.utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Token } from '@frontmcp/di';
|
|
2
|
+
import { LogTransportMetadata, LogTransportType } from '../common';
|
|
2
3
|
import { LoggerRecord } from './logger.types';
|
|
3
4
|
export declare function collectLoggerMetadata(cls: LogTransportType): LogTransportMetadata;
|
|
4
5
|
/**
|
|
@@ -13,3 +14,4 @@ export declare function normalizeLogger(item: any): LoggerRecord;
|
|
|
13
14
|
* - CLASS / CLASS_TOKEN: deps come from the class constructor
|
|
14
15
|
*/
|
|
15
16
|
export declare function loggerDiscoveryDeps(rec: LoggerRecord): Token[];
|
|
17
|
+
//# sourceMappingURL=logger.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.utils.d.ts","sourceRoot":"","sources":["../../src/logger/logger.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,EAAqC,MAAM,cAAc,CAAC;AAC9E,OAAO,EAA8B,oBAAoB,EAAE,gBAAgB,EAAyB,MAAM,WAAW,CAAC;AACtH,OAAO,EAAc,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE1D,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,gBAAgB,GAAG,oBAAoB,CAMjF;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAQvD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,YAAY,GAAG,KAAK,EAAE,CAM9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-level.flow.d.ts","sourceRoot":"","sources":["../../../src/logging/flows/set-level.flow.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,QAAQ,EAAyB,cAAc,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;iBAGf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;kBAAoB,CAAC;AAEvC,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;iBAMf,CAAC;AAEH,QAAA,MAAM,IAAI;;;;CAI2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,mBAAmB,EAAE,cAAc,CACjC,YAAY,EACZ,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,mBAA4B,CAAC;AAU1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAC7D,MAAM,wCAA0C;IAG1C,UAAU;IAgCV,QAAQ;IAoBR,QAAQ;CAMf"}
|
package/notification/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export { NotificationService, type McpNotificationMethod, type RegisteredServer, type McpLoggingLevel, MCP_LOGGING_LEVEL_PRIORITY, type Root, type ClientCapabilities, type ClientInfo, type AIPlatformType, detectAIPlatform, detectPlatformFromUserAgent, detectPlatformFromCapabilities, hasMcpAppsExtension, MCP_APPS_EXTENSION_KEY, } from './notification.service';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notification/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,0BAA0B,EAC1B,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,gBAAgB,EAChB,2BAA2B,EAC3B,8BAA8B,EAC9B,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Server as McpServer } from '@modelcontextprotocol/sdk/server/index.js';
|
|
2
|
-
import { type LoggingLevel, type Root } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import { type LoggingLevel, type ProgressToken, type Root } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import { type AIPlatformType, type PlatformDetectionConfig } from '../common';
|
|
3
4
|
import type { Scope } from '../scope';
|
|
4
|
-
import type { AIPlatformType } from '../common/types/auth/session.types';
|
|
5
|
-
import type { PlatformDetectionConfig } from '../common/types/options/session.options';
|
|
6
5
|
/**
|
|
7
6
|
* Re-export Root from MCP SDK for convenience.
|
|
8
7
|
* Per MCP 2025-11-25 specification.
|
|
@@ -91,7 +90,7 @@ export declare const MCP_LOGGING_LEVEL_PRIORITY: Record<LoggingLevel, number>;
|
|
|
91
90
|
/**
|
|
92
91
|
* MCP notification method types per the 2025-11-25 specification.
|
|
93
92
|
*/
|
|
94
|
-
export type McpNotificationMethod = 'notifications/resources/list_changed' | 'notifications/tools/list_changed' | 'notifications/prompts/list_changed' | 'notifications/resources/updated' | 'notifications/message';
|
|
93
|
+
export type McpNotificationMethod = 'notifications/resources/list_changed' | 'notifications/tools/list_changed' | 'notifications/prompts/list_changed' | 'notifications/resources/updated' | 'notifications/message' | 'notifications/progress';
|
|
95
94
|
/**
|
|
96
95
|
* Information about a registered MCP server/transport connection.
|
|
97
96
|
*/
|
|
@@ -290,6 +289,19 @@ export declare class NotificationService {
|
|
|
290
289
|
* @returns true if the message was sent (session exists and level allows)
|
|
291
290
|
*/
|
|
292
291
|
sendLogMessageToSession(sessionId: string, level: McpLoggingLevel, loggerName: string | undefined, data: unknown): boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Send a progress notification to a specific session.
|
|
294
|
+
* Per MCP 2025-11-25 spec, this sends a 'notifications/progress' notification
|
|
295
|
+
* using the progressToken from the original request.
|
|
296
|
+
*
|
|
297
|
+
* @param sessionId - The target session
|
|
298
|
+
* @param progressToken - The progress token from the original request's _meta
|
|
299
|
+
* @param progress - Current progress value (should increase monotonically)
|
|
300
|
+
* @param total - Total progress value (optional)
|
|
301
|
+
* @param message - Progress message (optional)
|
|
302
|
+
* @returns true if the notification was sent
|
|
303
|
+
*/
|
|
304
|
+
sendProgressNotification(sessionId: string, progressToken: ProgressToken, progress: number, total?: number, message?: string): boolean;
|
|
293
305
|
/**
|
|
294
306
|
* Set client capabilities for a session.
|
|
295
307
|
* Called during initialization to store what the client supports.
|
|
@@ -376,3 +388,4 @@ export declare class NotificationService {
|
|
|
376
388
|
destroy(): Promise<void>;
|
|
377
389
|
private sendNotificationToServer;
|
|
378
390
|
}
|
|
391
|
+
//# sourceMappingURL=notification.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.service.d.ts","sourceRoot":"","sources":["../../src/notification/notification.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,aAAa,EAClB,KAAK,IAAI,EACV,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAE7B,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC;;;GAGG;AACH,YAAY,EAAE,IAAI,EAAE,CAAC;AAErB;;GAEG;AACH,YAAY,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzE;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAE3C;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,KAAK,CAAC,EAAE;QACN,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,CAAC;IACF,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,6DAA6D;IAC7D,YAAY,CAAC,EAAE;QACb,+CAA+C;QAC/C,4BAA4B,CAAC,EAAE;YAC7B,qDAAqD;YACrD,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;SACtB,CAAC;QACF,CAAC,GAAG,EAA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AO;IAgBnF;;;;;OAKG;IACH,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAIxE;;;;;;;;OAQG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,cAAc,GAAG,SAAS;IAmBpF;;;;;OAKG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS;IAIxD;;;;;;OAMG;IACH,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc;IAKlD;;;;;OAKG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAKzC;;;;;;;;;;;;OAYG;IACG,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAgD3G;;;;;;OAMG;IACH,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAgBhD;;;;;OAKG;IACH,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,SAAS;IAIrD;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAkB9B,OAAO,CAAC,wBAAwB;CAqBjC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "FrontMCP SDK",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"homepage": "https://docs.agentfront.dev",
|
|
@@ -40,16 +40,6 @@
|
|
|
40
40
|
"default": "./esm/index.mjs"
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"./mcp-apps": {
|
|
44
|
-
"require": {
|
|
45
|
-
"types": "./mcp-apps/index.d.ts",
|
|
46
|
-
"default": "./mcp-apps/index.js"
|
|
47
|
-
},
|
|
48
|
-
"import": {
|
|
49
|
-
"types": "./mcp-apps/index.d.ts",
|
|
50
|
-
"default": "./esm/mcp-apps/index.mjs"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
43
|
"./transport": {
|
|
54
44
|
"require": {
|
|
55
45
|
"types": "./transport/index.d.ts",
|
|
@@ -76,12 +66,22 @@
|
|
|
76
66
|
}
|
|
77
67
|
},
|
|
78
68
|
"dependencies": {
|
|
79
|
-
"@frontmcp/
|
|
69
|
+
"@frontmcp/utils": "0.7.2",
|
|
70
|
+
"@frontmcp/di": "0.7.2",
|
|
71
|
+
"@frontmcp/uipack": "0.7.2",
|
|
80
72
|
"@modelcontextprotocol/sdk": "1.25.1",
|
|
73
|
+
"@langchain/core": "^1.1.8",
|
|
74
|
+
"@langchain/openai": "^1.2.0",
|
|
75
|
+
"@langchain/anthropic": "^1.3.3",
|
|
81
76
|
"ioredis": "^5.8.0",
|
|
82
77
|
"jose": "^6.1.3",
|
|
83
78
|
"reflect-metadata": "^0.2.2"
|
|
84
79
|
},
|
|
80
|
+
"optionalDependencies": {
|
|
81
|
+
"@langchain/google-genai": "^2.1.3",
|
|
82
|
+
"@langchain/mistralai": "^1.0.2",
|
|
83
|
+
"@langchain/groq": "^1.0.2"
|
|
84
|
+
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@vercel/kv": "^3.0.0",
|
|
87
87
|
"typescript": "^5.9.3"
|
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
-
import { PluginEntry, PluginRecord, PluginRegistryInterface, PluginType
|
|
2
|
+
import { EntryOwnerRef, PluginEntry, PluginRecord, PluginRegistryInterface, PluginType } from '../common';
|
|
3
3
|
import ProviderRegistry from '../provider/provider.registry';
|
|
4
4
|
import { RegistryAbstract, RegistryBuildMapResult } from '../regsitry';
|
|
5
|
+
import { Scope } from '../scope';
|
|
6
|
+
/**
|
|
7
|
+
* Scope information for plugin hook registration.
|
|
8
|
+
* Used to determine where plugin hooks should be registered based on
|
|
9
|
+
* the plugin's scope setting and whether the app is standalone.
|
|
10
|
+
*/
|
|
11
|
+
export interface PluginScopeInfo {
|
|
12
|
+
/** The scope where the plugin is defined (app's own scope) */
|
|
13
|
+
ownScope: Scope;
|
|
14
|
+
/** Parent scope for non-standalone apps (gateway scope) */
|
|
15
|
+
parentScope?: Scope;
|
|
16
|
+
/** Whether the app is standalone (standalone: true) */
|
|
17
|
+
isStandaloneApp: boolean;
|
|
18
|
+
}
|
|
5
19
|
export default class PluginRegistry extends RegistryAbstract<PluginEntry, PluginRecord, PluginType[]> implements PluginRegistryInterface {
|
|
6
20
|
/** providers by token */
|
|
7
21
|
private readonly pProviders;
|
|
@@ -16,14 +30,19 @@ export default class PluginRegistry extends RegistryAbstract<PluginEntry, Plugin
|
|
|
16
30
|
/** prompts by token */
|
|
17
31
|
private readonly pPrompts;
|
|
18
32
|
private readonly scope;
|
|
33
|
+
private readonly scopeInfo?;
|
|
19
34
|
private readonly owner?;
|
|
20
|
-
constructor(providers: ProviderRegistry, list: PluginType[], owner?:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
35
|
+
constructor(providers: ProviderRegistry, list: PluginType[], owner?: EntryOwnerRef,
|
|
36
|
+
/**
|
|
37
|
+
* Scope information for hook registration. Determines where plugin hooks
|
|
38
|
+
* are registered based on the plugin's scope setting ('app' or 'server').
|
|
39
|
+
* - scope='app' (default): hooks register to ownScope
|
|
40
|
+
* - scope='server': hooks register to parentScope (if available)
|
|
41
|
+
*/
|
|
42
|
+
scopeInfo?: PluginScopeInfo);
|
|
25
43
|
getPlugins(): PluginEntry[];
|
|
26
44
|
protected buildMap(list: PluginType[]): RegistryBuildMapResult<PluginRecord>;
|
|
27
45
|
protected buildGraph(): void;
|
|
28
46
|
protected initialize(): Promise<void>;
|
|
29
47
|
}
|
|
48
|
+
//# s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AGrC,SAAS,EAAE,gBAAgB,EAC3B,IAAI,EAAE,UAAU,EAAE,EAClB,KAAK,CAAC,EAAE,aAAa;IACrB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,eAAe;IAQ7B,UAAU,IAAI,WAAW,EAAE;cAIR,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,sBAAsB,CAAC,YAAY,CAAC;IAgBrF,SAAS,CAAC,UAAU;cAcJ,UAAU;CA0K3B"}
|
package/plugin/plugin.utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Token } from '@frontmcp/di';
|
|
2
|
+
import { PluginMetadata, PluginType, PluginRecord } from '../common';
|
|
2
3
|
export declare function collectPluginMetadata(cls: PluginType): PluginMetadata;
|
|
3
4
|
export declare function normalizePlugin(item: PluginType): PluginRecord;
|
|
4
5
|
/**
|
|
@@ -8,3 +9,4 @@ export declare function normalizePlugin(item: PluginType): PluginRecord;
|
|
|
8
9
|
* - CLASS / CLASS_TOKEN: deps come from the class constructor or static with(...)
|
|
9
10
|
*/
|
|
10
11
|
export declare function pluginDiscoveryDeps(rec: PluginRecord): Token[];
|
|
12
|
+
//# sourceMappingURL=plugin.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.utils.d.ts","sourceRoot":"","sources":["../../src/plugin/plugin.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAgD,MAAM,cAAc,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAwB,YAAY,EAAc,MAAM,WAAW,CAAC;AAEvG,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,UAAU,GAAG,cAAc,CAMrE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,GAAG,YAAY,CA+D9D;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,YAAY,GAAG,KAAK,EAAE,CAa9D"}
|
|
@@ -232,7 +232,7 @@ declare const stateSchema: z.ZodObject<{
|
|
|
232
232
|
}, z.core.$loose>;
|
|
233
233
|
}, z.core.$strip>;
|
|
234
234
|
declare const plan: {
|
|
235
|
-
readonly pre: ["parseInput", "findPrompt", "createPromptContext"];
|
|
235
|
+
readonly pre: ["parseInput", "ensureRemoteCapabilities", "findPrompt", "createPromptContext"];
|
|
236
236
|
readonly execute: ["execute", "validateOutput"];
|
|
237
237
|
readonly finalize: ["finalize"];
|
|
238
238
|
};
|
|
@@ -245,6 +245,12 @@ declare const name: "prompts:get-prompt";
|
|
|
245
245
|
export default class GetPromptFlow extends FlowBase<typeof name> {
|
|
246
246
|
logger: import("../../common").FrontMcpLogger;
|
|
247
247
|
parseInput(): Promise<void>;
|
|
248
|
+
/**
|
|
249
|
+
* Ensure remote app capabilities are loaded before looking up prompts.
|
|
250
|
+
* Remote apps use lazy capability discovery - this triggers the loading.
|
|
251
|
+
* Uses provider registry to find all remote apps across all app registries.
|
|
252
|
+
*/
|
|
253
|
+
ensureRemoteCapabilities(): Promise<void>;
|
|
248
254
|
findPrompt(): Promise<void>;
|
|
249
255
|
createPromptContext(): Promise<void>;
|
|
250
256
|
execute(): Promise<void>;
|
|
@@ -252,3 +258,4 @@ export default class GetPromptFlow extends FlowBase<typeof name> {
|
|
|
252
258
|
finalize(): Promise<void>;
|
|
253
259
|
}
|
|
254
260
|
export {};
|
|
261
|
+
//# sourceMappingURL=get-prompt.flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-prompt.flow.d.ts","sourceRoot":"","sources":["../../../src/prompt/flows/get-prompt.flow.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,QAAQ,EAAyB,cAAc,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACjH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAU1E,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;iBAIf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAwB,CAAC;AAE3C,QAAA,MAAM,WAAW;;;;;;cAQiB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;YAEhC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;;mBAIf,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIlD,CAAC;AAEH,QAAA,MAAM,IAAI;;;;CAI2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,oBAAoB,EAAE,cAAc,CAClC,aAAa,EACb,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,oBAA6B,CAAC;AAU3C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAC9D,MAAM,wCAA2C;IAG3C,UAAU;IA8BhB;;;;OAIG;IAEG,wBAAwB;IA2CxB,UAAU;IAwBV,mBAAmB;IA+CnB,OAAO;IAsBP,cAAc;IAgBd,QAAQ;CA8Bf"}
|
|
@@ -58,7 +58,7 @@ declare const stateSchema: z.ZodObject<{
|
|
|
58
58
|
}, z.core.$strip>>;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
60
|
declare const plan: {
|
|
61
|
-
readonly pre: ["parseInput"];
|
|
61
|
+
readonly pre: ["parseInput", "ensureRemoteCapabilities"];
|
|
62
62
|
readonly execute: ["findPrompts", "resolveConflicts"];
|
|
63
63
|
readonly post: ["parsePrompts"];
|
|
64
64
|
};
|
|
@@ -72,8 +72,15 @@ export default class PromptsListFlow extends FlowBase<typeof name> {
|
|
|
72
72
|
logger: import("../../common").FrontMcpLogger;
|
|
73
73
|
private sample;
|
|
74
74
|
parseInput(): Promise<void>;
|
|
75
|
+
/**
|
|
76
|
+
* Ensure remote app capabilities are loaded before listing prompts.
|
|
77
|
+
* Remote apps use lazy capability discovery - this triggers the loading.
|
|
78
|
+
* Uses provider registry to find all remote apps across all app registries.
|
|
79
|
+
*/
|
|
80
|
+
ensureRemoteCapabilities(): Promise<void>;
|
|
75
81
|
findPrompts(): Promise<void>;
|
|
76
82
|
resolveConflicts(): Promise<void>;
|
|
77
83
|
parsePrompts(): Promise<void>;
|
|
78
84
|
}
|
|
79
85
|
export {};
|
|
86
|
+
//# sourceMappingURL=prompts-list.flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts-list.flow.d.ts","sourceRoot":"","sources":["../../../src/prompt/flows/prompts-list.flow.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,QAAQ,EAAsC,cAAc,EAAe,MAAM,cAAc,CAAC;AAC/G,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;iBAGf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA0B,CAAC;AAE7C,QAAA,MAAM,WAAW;;;;;;;;;;;iBAiBf,CAAC;AAIH,QAAA,MAAM,IAAI;;;;CAI2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,sBAAsB,EAAE,cAAc,CACpC,eAAe,EACf,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,sBAA+B,CAAC;AAU7C,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAChE,MAAM,wCAA6C;IAEnD,OAAO,CAAC,MAAM;IAKR,UAAU;IAwBhB;;;;OAIG;IAEG,wBAAwB;IA2CxB,WAAW;IAoCX,gBAAgB;IAqChB,YAAY;CA2BnB"}
|
package/prompt/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/prompt/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PromptEntry } from '../common';
|
|
2
2
|
export type PromptChangeKind = 'added' | 'updated' | 'removed' | 'reset';
|
|
3
3
|
export type PromptChangeEvent = {
|
|
4
4
|
kind: PromptChangeKind;
|
|
@@ -6,7 +6,7 @@ export type PromptChangeEvent = {
|
|
|
6
6
|
sessionId?: string;
|
|
7
7
|
relatedRequestId?: string;
|
|
8
8
|
version: number;
|
|
9
|
-
snapshot: readonly
|
|
9
|
+
snapshot: readonly PromptEntry[];
|
|
10
10
|
};
|
|
11
11
|
type Listener = (e: PromptChangeEvent) => void;
|
|
12
12
|
export declare class PromptEmitter {
|
|
@@ -15,3 +15,4 @@ export declare class PromptEmitter {
|
|
|
15
15
|
emit(e: PromptChangeEvent): void;
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
18
|
+
//# sourceMappingURL=prompt.events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.events.d.ts","sourceRoot":"","sources":["../../src/prompt/prompt.events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEzE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,gBAAgB,CAAC;IACvB,WAAW,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;CAClC,CAAC;AAEF,KAAK,QAAQ,GAAG,CAAC,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;AAE/C,qBAAa,aAAa;IACxB,OAAO,CAAC,SAAS,CAAuB;IAExC,EAAE,CAAC,CAAC,EAAE,QAAQ,GAAG,MAAM,IAAI;IAK3B,IAAI,CAAC,CAAC,EAAE,iBAAiB;CAW1B"}
|
|
@@ -3,12 +3,17 @@ import ProviderRegistry from '../provider/provider.registry';
|
|
|
3
3
|
import HookRegistry from '../hooks/hook.registry';
|
|
4
4
|
import { Scope } from '../scope';
|
|
5
5
|
export declare class PromptInstance extends PromptEntry {
|
|
6
|
-
private readonly
|
|
6
|
+
private readonly _providers;
|
|
7
7
|
readonly scope: Scope;
|
|
8
8
|
readonly hooks: HookRegistry;
|
|
9
9
|
constructor(record: PromptRecord, providers: ProviderRegistry, owner: EntryOwnerRef);
|
|
10
10
|
protected initialize(): Promise<void>;
|
|
11
11
|
getMetadata(): PromptMetadata;
|
|
12
|
+
/**
|
|
13
|
+
* Get the provider registry for this prompt.
|
|
14
|
+
* Used by flows to build context-aware providers for CONTEXT-scoped dependencies.
|
|
15
|
+
*/
|
|
16
|
+
get providers(): ProviderRegistry;
|
|
12
17
|
/**
|
|
13
18
|
* Create a prompt context (class or function wrapper).
|
|
14
19
|
*/
|
|
@@ -28,3 +33,4 @@ export declare class PromptInstance extends PromptEntry {
|
|
|
28
33
|
*/
|
|
29
34
|
safeParseOutput(raw: unknown): PromptSafeTransformResult<ParsedPromptResult>;
|
|
30
35
|
}
|
|
36
|
+
//# sourceMappingURL=prompt.instance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.instance.d.ts","sourceRoot":"","sources":["../../src/prompt/prompt.instance.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,yBAAyB,EACzB,YAAY,EAEZ,aAAa,EAEb,cAAc,EAEf,MAAM,WAAW,CAAC;AACnB,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAKjC,qBAAa,cAAe,SAAQ,WAAW;IAC7C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;gBAEjB,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa;cAYnE,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAU3C,WAAW,IAAI,cAAc;IAI7B;;;OAGG;IACH,IAAI,SAAS,IAAI,gBAAgB,CAEhC;IAED;;OAEG;IACM,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,EAAE,cAAc,GAAG,aAAa;IA8BjF;;;;OAIG;IACM,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IA2B9E;;OAEG;IACM,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,kBAAkB;IAItD;;OAEG;IACM,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,yBAAyB,CAAC,kBAAkB,CAAC;CAOtF"}
|
|
@@ -30,6 +30,17 @@ PromptRecord, PromptType[]> implements PromptRegistryInterface {
|
|
|
30
30
|
* We *reference* the child's prompt instances; no duplicates are created.
|
|
31
31
|
*/
|
|
32
32
|
adoptFromChild(child: PromptRegistry, _childOwner: EntryOwnerRef): void;
|
|
33
|
+
/**
|
|
34
|
+
* Adopt prompts directly from a remote app's prompts registry.
|
|
35
|
+
* Remote apps expose prompts via proxy entries that forward execution to the remote server.
|
|
36
|
+
* This also subscribes to updates from the remote app's registry for lazy-loaded prompts.
|
|
37
|
+
*/
|
|
38
|
+
private adoptPromptsFromRemoteApp;
|
|
39
|
+
/**
|
|
40
|
+
* Adopt prompts from a local app's child PromptRegistry instances.
|
|
41
|
+
* Local apps use the hierarchical registry pattern for prompt discovery.
|
|
42
|
+
*/
|
|
43
|
+
private adoptPromptsFromLocalApp;
|
|
33
44
|
/**
|
|
34
45
|
* Get all prompts
|
|
35
46
|
*/
|
|
@@ -41,30 +52,30 @@ PromptRecord, PromptType[]> implements PromptRegistryInterface {
|
|
|
41
52
|
/**
|
|
42
53
|
* Find a prompt by exact name match
|
|
43
54
|
*/
|
|
44
|
-
findByName(name: string):
|
|
55
|
+
findByName(name: string): PromptEntry | undefined;
|
|
45
56
|
/**
|
|
46
57
|
* Find all prompts matching a name
|
|
47
58
|
*/
|
|
48
|
-
findAllByName(name: string):
|
|
59
|
+
findAllByName(name: string): PromptEntry[];
|
|
49
60
|
/** Internal snapshot of effective indexed rows (locals + adopted). */
|
|
50
61
|
listAllIndexed(): IndexedPrompt[];
|
|
51
62
|
/** List all instances (locals + adopted). */
|
|
52
|
-
listAllInstances(): readonly
|
|
63
|
+
listAllInstances(): readonly PromptEntry[];
|
|
53
64
|
/** List instances by owner path (e.g. "app:Portal/plugin:Okta") */
|
|
54
|
-
listByOwner(ownerPath: string): readonly
|
|
65
|
+
listByOwner(ownerPath: string): readonly PromptEntry[];
|
|
55
66
|
private reindex;
|
|
56
67
|
/**
|
|
57
68
|
* Produce unique, MCP-valid exported names.
|
|
58
69
|
*/
|
|
59
70
|
exportResolvedNames(opts?: PromptExportOptions): Array<{
|
|
60
71
|
name: string;
|
|
61
|
-
instance:
|
|
72
|
+
instance: PromptEntry;
|
|
62
73
|
}>;
|
|
63
74
|
/** Lookup by the exported (resolved) name. */
|
|
64
|
-
getExported(name: string, opts?: PromptExportOptions):
|
|
75
|
+
getExported(name: string, opts?: PromptExportOptions): PromptEntry | undefined;
|
|
65
76
|
subscribe(opts: {
|
|
66
77
|
immediate?: boolean;
|
|
67
|
-
filter?: (i:
|
|
78
|
+
filter?: (i: PromptEntry) => boolean;
|
|
68
79
|
}, cb: (evt: PromptChangeEvent) => void): () => void;
|
|
69
80
|
private bump;
|
|
70
81
|
/** Build an IndexedPrompt row */
|
|
@@ -75,9 +86,23 @@ PromptRecord, PromptType[]> implements PromptRegistryInterface {
|
|
|
75
86
|
private providerIdOf;
|
|
76
87
|
/** True if this registry (or adopted children) has any prompts. */
|
|
77
88
|
hasAny(): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Register an existing PromptEntry instance directly (for remote prompts).
|
|
91
|
+
* This allows pre-constructed prompt instances to be added without going through
|
|
92
|
+
* the standard token-based initialization flow.
|
|
93
|
+
*
|
|
94
|
+
* **IMPORTANT: Scope Binding**
|
|
95
|
+
* The PromptEntry captures its scope and providers at construction time.
|
|
96
|
+
* The prompt will use the scope from its original `providers` argument, NOT this registry's scope.
|
|
97
|
+
*
|
|
98
|
+
* @param prompt - The prompt instance to register (PromptInstance or RemotePromptInstance)
|
|
99
|
+
* @throws Error if prompt is not a valid instance
|
|
100
|
+
*/
|
|
101
|
+
registerPromptInstance(prompt: PromptEntry): void;
|
|
78
102
|
/**
|
|
79
103
|
* Get the MCP capabilities for prompts.
|
|
80
104
|
* These are reported to clients during initialization.
|
|
81
105
|
*/
|
|
82
106
|
getCapabilities(): Partial<ServerCapabilities>;
|
|
83
107
|
}
|
|
108
|
+
//# sourceMappingURL=prompt.registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.registry.d.ts","sourceRoot":"","sources":["../../src/prompt/prompt.registry.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,aAAa,EACb,WAAW,EACX,YAAY,EACZ,uBAAuB,EACvB,UAAU,EAEX,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,iBAAiB,EAAiB,MAAM,iBAAiB,CAAC;AACnE,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAK7D,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAA8B,mBAAmB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGhG,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAMxE,MAAM,CAAC,OAAO,OAAO,cACnB,SAAQ,gBAAgB,CACtB,cAAc,EAAE,qCAAqC;AACrD,YAAY,EACZ,UAAU,EAAE,CAEd,YAAW,uBAAuB;IAElC,oDAAoD;IACpD,KAAK,EAAE,aAAa,CAAC;IAErB,8EAA8E;IAC9E,OAAO,CAAC,SAAS,CAAuB;IAExC,sFAAsF;IACtF,OAAO,CAAC,OAAO,CAA8C;IAE7D,wCAAwC;IACxC,OAAO,CAAC,QAAQ,CAA6B;IAG7C,OAAO,CAAC,aAAa,CAAoC;IACzD,OAAO,CAAC,MAAM,CAAsC;IACpD,OAAO,CAAC,cAAc,CAAoC;IAC1D,OAAO,CAAC,OAAO,CAAsC;IAGrD,OAAO,CAAC,OAAO,CAAK;IACpB,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CAAC,CAAC,EAAE,WAAW,KAAK,OAAO,CAAA;KAAE,EACnE,EAAE,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,IAAI,GACnC,MAAM,IAAI;IAab,OAAO,CAAC,IAAI;IAOZ,iCAAiC;IACjC,OAAO,CAAC,OAAO;IAiBf,6FAA6F;IAC7F,OAAO,CAAC,SAAS;IAmBjB,kDAAkD;IAClD,OAAO,CAAC,YAAY;IAsBpB,mEAAmE;IACnE,MAAM,IAAI,OAAO;IAIjB;;;;;;;;;;;OAWG;IACH,sBAAsB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAmCjD;;;OAGG;IACH,eAAe,IAAI,OAAO,CAAC,kBAAkB,CAAC;CAU/C"}
|
package/prompt/prompt.types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { EntryLineage, Token } from '../common';
|
|
2
|
-
import { PromptInstance } from './prompt.instance';
|
|
1
|
+
import { EntryLineage, PromptEntry, Token } from '../common';
|
|
3
2
|
import PromptRegistry from './prompt.registry';
|
|
4
|
-
import type { NameCase } from '
|
|
3
|
+
import type { NameCase } from '@frontmcp/utils';
|
|
5
4
|
export type PromptNameCase = NameCase;
|
|
6
5
|
/** Internal augmented row: instance + provenance + token */
|
|
7
6
|
export type IndexedPrompt = {
|
|
8
7
|
token: Token;
|
|
9
|
-
|
|
8
|
+
/** The prompt entry (can be PromptInstance or remote proxy entry) */
|
|
9
|
+
instance: PromptEntry;
|
|
10
10
|
/** base prompt name from metadata (unmodified) */
|
|
11
11
|
baseName: string;
|
|
12
12
|
/** lineage & qualified info */
|
|
@@ -24,3 +24,4 @@ export type PromptExportOptions = {
|
|
|
24
24
|
prefixSource?: 'provider' | 'owner';
|
|
25
25
|
};
|
|
26
26
|
export declare const DEFAULT_PROMPT_EXPORT_OPTS: Required<PromptExportOptions>;
|
|
27
|
+
//# sourceMappingURL=prompt.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.types.d.ts","sourceRoot":"","sources":["../../src/prompt/prompt.types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGhD,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC;AAMtC,4DAA4D;AAC5D,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,qEAAqE;IACrE,QAAQ,EAAE,WAAW,CAAC;IACtB,kDAAkD;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,qEAAqE;IACrE,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAMF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,YAAY,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,mBAAmB,CAKpE,CAAC"}
|
package/prompt/prompt.utils.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Token } from '@frontmcp/di';
|
|
2
|
+
import { PromptMetadata, PromptType, PromptRecord } from '../common';
|
|
2
3
|
import { GetPromptResult } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
-
export { splitWords, toCase, sepFor, normalizeSegment, normalizeProviderId, normalizeOwnerPath, shortHash, ensureMaxLen, } from '../utils/naming.utils';
|
|
4
|
-
export { ownerKeyOf, qualifiedNameOf } from '../utils/lineage.utils';
|
|
5
4
|
/**
|
|
6
5
|
* Collect metadata from a class decorated with @FrontMcpPrompt
|
|
7
6
|
*/
|
|
@@ -24,3 +23,4 @@ export declare function promptDiscoveryDeps(rec: PromptRecord): Token[];
|
|
|
24
23
|
* Build a parsed prompt result from raw output
|
|
25
24
|
*/
|
|
26
25
|
export declare function buildParsedPromptResult(raw: unknown, metadata: PromptMetadata): GetPromptResult;
|
|
26
|
+
//# sourceMappingURL=prompt.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.utils.d.ts","sourceRoot":"","sources":["../../src/prompt/prompt.utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAuD,MAAM,cAAc,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAwB,UAAU,EAAE,YAAY,EAA2B,MAAM,WAAW,CAAC;AACpH,OAAO,EAAE,eAAe,EAAiB,MAAM,oCAAoC,CAAC;AAEpF;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,UAAU,GAAG,cAAc,CAUrE;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAuBvD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,YAAY,GAAG,KAAK,EAAE,CAO9D;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,GAAG,eAAe,CA+B/F"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flow-Context-Aware Provider Registry
|
|
3
|
+
*
|
|
4
|
+
* This wrapper combines a base ProviderRegistry with context-scoped providers
|
|
5
|
+
* from a flow's deps map. It enables tools to access context-scoped providers
|
|
6
|
+
* (from plugins like RememberPlugin) during execution.
|
|
7
|
+
*
|
|
8
|
+
* The resolution order is:
|
|
9
|
+
* 1. Check context deps (from buildViews) first
|
|
10
|
+
* 2. Fall back to base registry for global/unscoped providers
|
|
11
|
+
*/
|
|
12
|
+
import { Token } from '@frontmcp/di';
|
|
13
|
+
import { ProviderRegistryInterface, RegistryKind, RegistryType, ProviderViews, ScopeEntry, ProviderEntry } from '../common';
|
|
14
|
+
export declare class FlowContextProviders implements ProviderRegistryInterface {
|
|
15
|
+
private readonly baseProviders;
|
|
16
|
+
private readonly contextDeps;
|
|
17
|
+
constructor(baseProviders: ProviderRegistryInterface, contextDeps: ReadonlyMap<Token, unknown>);
|
|
18
|
+
get<T>(token: Token<T>): T;
|
|
19
|
+
getScope(): ScopeEntry;
|
|
20
|
+
getProviders(): ProviderEntry[];
|
|
21
|
+
getRegistries<T extends RegistryKind>(type: T): RegistryType[T][];
|
|
22
|
+
buildViews(session: any): Promise<ProviderViews>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=flow-context-providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flow-context-providers.d.ts","sourceRoot":"","sources":["../../src/provider/flow-context-providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EACL,yBAAyB,EACzB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,UAAU,EACV,aAAa,EACd,MAAM,WAAW,CAAC;AAEnB,qBAAa,oBAAqB,YAAW,yBAAyB;IAElE,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,WAAW;gBADX,aAAa,EAAE,yBAAyB,EACxC,WAAW,EAAE,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC;IAG3D,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;IAS1B,QAAQ,IAAI,UAAU;IAItB,YAAY,IAAI,aAAa,EAAE;IAI/B,aAAa,CAAC,CAAC,SAAS,YAAY,EAAE,IAAI,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE;IAIjE,UAAU,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC;CAGjD"}
|