@frontmcp/sdk 1.1.2-beta.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapter/adapter.instance.d.ts +5 -5
- package/adapter/adapter.instance.d.ts.map +1 -1
- package/adapter/adapter.registry.d.ts +3 -3
- package/adapter/adapter.registry.d.ts.map +1 -1
- package/adapter/adapter.utils.d.ts +2 -2
- package/adapter/adapter.utils.d.ts.map +1 -1
- package/agent/adapters/adapter.factory.d.ts +2 -2
- package/agent/adapters/adapter.factory.d.ts.map +1 -1
- package/agent/adapters/anthropic.adapter.d.ts +2 -2
- package/agent/adapters/anthropic.adapter.d.ts.map +1 -1
- package/agent/adapters/base.adapter.d.ts +1 -1
- package/agent/adapters/base.adapter.d.ts.map +1 -1
- package/agent/adapters/openai.adapter.d.ts +2 -2
- package/agent/adapters/openai.adapter.d.ts.map +1 -1
- package/agent/adapters/providers/index.d.ts +2 -2
- package/agent/adapters/providers/index.d.ts.map +1 -1
- package/agent/agent-execution-loop.d.ts +1 -1
- package/agent/agent-execution-loop.d.ts.map +1 -1
- package/agent/agent.registry.d.ts +6 -6
- package/agent/agent.registry.d.ts.map +1 -1
- package/agent/agent.scope.d.ts +7 -7
- package/agent/agent.scope.d.ts.map +1 -1
- package/agent/agent.utils.d.ts +2 -2
- package/agent/agent.utils.d.ts.map +1 -1
- package/agent/flows/call-agent.flow.d.ts +2 -0
- package/agent/flows/call-agent.flow.d.ts.map +1 -1
- package/agent/hooks/agent.hooks.d.ts +4 -4
- package/app/app.registry.d.ts +3 -3
- package/app/app.registry.d.ts.map +1 -1
- package/app/app.utils.d.ts +2 -2
- package/app/app.utils.d.ts.map +1 -1
- package/app/instances/app.esm.instance.d.ts +6 -6
- package/app/instances/app.esm.instance.d.ts.map +1 -1
- package/app/instances/app.local.instance.d.ts +6 -6
- package/app/instances/app.local.instance.d.ts.map +1 -1
- package/app/instances/app.remote.instance.d.ts +5 -5
- package/app/instances/app.remote.instance.d.ts.map +1 -1
- package/auth/auth.registry.d.ts +3 -3
- package/auth/auth.registry.d.ts.map +1 -1
- package/auth/auth.utils.d.ts +2 -2
- package/auth/auth.utils.d.ts.map +1 -1
- package/auth/instances/instance.local-primary-auth.d.ts +4 -6
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
- package/auth/instances/instance.remote-primary-auth.d.ts +3 -3
- package/auth/instances/instance.remote-primary-auth.d.ts.map +1 -1
- package/auth/session/record/session.base.d.ts +2 -2
- package/auth/session/record/session.base.d.ts.map +1 -1
- package/auth/session/record/session.mcp.d.ts +1 -1
- package/auth/session/record/session.mcp.d.ts.map +1 -1
- package/auth/session/session.service.d.ts +1 -1
- package/auth/session/session.service.d.ts.map +1 -1
- package/auth/vault/credential-cache.d.ts +1 -1
- package/auth/vault/credential-cache.d.ts.map +1 -1
- package/builtin/config/config.symbols.d.ts +1 -1
- package/builtin/config/config.symbols.d.ts.map +1 -1
- package/channel/channel-notification.service.d.ts +18 -6
- package/channel/channel-notification.service.d.ts.map +1 -1
- package/channel/channel-scope.helper.d.ts +8 -8
- package/channel/channel-scope.helper.d.ts.map +1 -1
- package/channel/channel.instance.d.ts +2 -2
- package/channel/channel.instance.d.ts.map +1 -1
- package/channel/channel.registry.d.ts +5 -5
- package/channel/channel.registry.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/app.decorator.d.ts +1 -1
- 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/channel.decorator.d.ts +2 -2
- package/common/decorators/channel.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/hook.decorator.d.ts +1 -1
- package/common/decorators/hook.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/plugin.decorator.d.ts +1 -1
- package/common/decorators/plugin.decorator.d.ts.map +1 -1
- package/common/decorators/prompt.decorator.d.ts +4 -5
- 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 +4 -5
- package/common/decorators/resource.decorator.d.ts.map +1 -1
- package/common/decorators/skill.decorator.d.ts +3 -4
- package/common/decorators/skill.decorator.d.ts.map +1 -1
- package/common/decorators/workflow.decorator.d.ts +1 -1
- package/common/decorators/workflow.decorator.d.ts.map +1 -1
- package/common/dynamic/dynamic.adapter.d.ts +1 -1
- package/common/dynamic/dynamic.adapter.d.ts.map +1 -1
- package/common/dynamic/dynamic.plugin.d.ts +2 -2
- package/common/dynamic/dynamic.plugin.d.ts.map +1 -1
- package/common/dynamic/dynamic.utils.d.ts +1 -1
- package/common/dynamic/dynamic.utils.d.ts.map +1 -1
- package/common/entries/adapter.entry.d.ts +3 -3
- package/common/entries/adapter.entry.d.ts.map +1 -1
- package/common/entries/app.entry.d.ts +6 -6
- package/common/entries/app.entry.d.ts.map +1 -1
- package/common/entries/auth-provider.entry.d.ts +3 -3
- package/common/entries/auth-provider.entry.d.ts.map +1 -1
- package/common/entries/base.entry.d.ts +1 -1
- package/common/entries/base.entry.d.ts.map +1 -1
- package/common/entries/channel.entry.d.ts +2 -2
- package/common/entries/channel.entry.d.ts.map +1 -1
- package/common/entries/flow.entry.d.ts +5 -5
- package/common/entries/flow.entry.d.ts.map +1 -1
- package/common/entries/hook.entry.d.ts +5 -5
- package/common/entries/hook.entry.d.ts.map +1 -1
- package/common/entries/logger.entry.d.ts +3 -3
- package/common/entries/logger.entry.d.ts.map +1 -1
- package/common/entries/plugin.entry.d.ts +3 -3
- package/common/entries/plugin.entry.d.ts.map +1 -1
- package/common/entries/prompt.entry.d.ts +5 -7
- package/common/entries/prompt.entry.d.ts.map +1 -1
- package/common/entries/resource.entry.d.ts +7 -9
- package/common/entries/resource.entry.d.ts.map +1 -1
- package/common/entries/skill.entry.d.ts +15 -4
- package/common/entries/skill.entry.d.ts.map +1 -1
- package/common/entries/workflow.entry.d.ts +3 -3
- package/common/entries/workflow.entry.d.ts.map +1 -1
- package/common/interfaces/adapter.interface.d.ts +6 -6
- package/common/interfaces/adapter.interface.d.ts.map +1 -1
- package/common/interfaces/app.interface.d.ts +2 -2
- package/common/interfaces/app.interface.d.ts.map +1 -1
- package/common/interfaces/auth-provider.interface.d.ts +2 -2
- package/common/interfaces/auth-provider.interface.d.ts.map +1 -1
- package/common/interfaces/channel.interface.d.ts +3 -3
- package/common/interfaces/channel.interface.d.ts.map +1 -1
- package/common/interfaces/execution-context.interface.d.ts +26 -1
- package/common/interfaces/execution-context.interface.d.ts.map +1 -1
- package/common/interfaces/front-mcp.interface.d.ts +1 -1
- package/common/interfaces/front-mcp.interface.d.ts.map +1 -1
- package/common/interfaces/hook.interface.d.ts +1 -1
- package/common/interfaces/hook.interface.d.ts.map +1 -1
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts +2 -2
- package/common/interfaces/internal/primary-auth-provider.interface.d.ts.map +1 -1
- package/common/interfaces/internal/registry.interface.d.ts +12 -12
- package/common/interfaces/internal/registry.interface.d.ts.map +1 -1
- package/common/interfaces/job.interface.d.ts +5 -5
- package/common/interfaces/job.interface.d.ts.map +1 -1
- package/common/interfaces/logger.interface.d.ts +2 -2
- package/common/interfaces/logger.interface.d.ts.map +1 -1
- package/common/interfaces/plugin.interface.d.ts +2 -2
- package/common/interfaces/plugin.interface.d.ts.map +1 -1
- package/common/interfaces/prompt.interface.d.ts +7 -8
- package/common/interfaces/prompt.interface.d.ts.map +1 -1
- package/common/interfaces/provider.interface.d.ts +2 -2
- package/common/interfaces/provider.interface.d.ts.map +1 -1
- package/common/interfaces/resource.interface.d.ts +3 -3
- package/common/interfaces/resource.interface.d.ts.map +1 -1
- package/common/interfaces/scope.interface.d.ts +1 -1
- package/common/interfaces/scope.interface.d.ts.map +1 -1
- package/common/interfaces/skill.interface.d.ts +86 -4
- package/common/interfaces/skill.interface.d.ts.map +1 -1
- package/common/interfaces/workflow.interface.d.ts +3 -3
- package/common/interfaces/workflow.interface.d.ts.map +1 -1
- package/common/metadata/app.metadata.d.ts +3 -2
- package/common/metadata/app.metadata.d.ts.map +1 -1
- package/common/metadata/channel.metadata.d.ts +2 -2
- package/common/metadata/front-mcp.metadata.d.ts +155 -1
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/hook.metadata.d.ts +3 -3
- package/common/metadata/hook.metadata.d.ts.map +1 -1
- package/common/metadata/job.metadata.d.ts +1 -1
- package/common/metadata/plugin.metadata.d.ts +3 -2
- package/common/metadata/plugin.metadata.d.ts.map +1 -1
- package/common/metadata/resource.metadata.d.ts +62 -0
- package/common/metadata/resource.metadata.d.ts.map +1 -1
- package/common/metadata/skill.metadata.d.ts +44 -2
- package/common/metadata/skill.metadata.d.ts.map +1 -1
- package/common/metadata/tool.metadata.d.ts +39 -4
- package/common/metadata/tool.metadata.d.ts.map +1 -1
- package/common/metadata/workflow.metadata.d.ts +1 -1
- package/common/records/adapter.record.d.ts +2 -2
- package/common/records/adapter.record.d.ts.map +1 -1
- package/common/records/agent.record.d.ts +4 -6
- package/common/records/agent.record.d.ts.map +1 -1
- package/common/records/app.record.d.ts +3 -3
- package/common/records/app.record.d.ts.map +1 -1
- package/common/records/auth-provider.record.d.ts +4 -4
- package/common/records/auth-provider.record.d.ts.map +1 -1
- package/common/records/channel.record.d.ts +3 -3
- package/common/records/channel.record.d.ts.map +1 -1
- package/common/records/flow.record.d.ts +2 -2
- package/common/records/flow.record.d.ts.map +1 -1
- package/common/records/hook.record.d.ts +2 -2
- package/common/records/hook.record.d.ts.map +1 -1
- package/common/records/job.record.d.ts +4 -6
- package/common/records/job.record.d.ts.map +1 -1
- package/common/records/logger.record.d.ts +3 -3
- package/common/records/logger.record.d.ts.map +1 -1
- package/common/records/plugin.record.d.ts +3 -3
- package/common/records/plugin.record.d.ts.map +1 -1
- package/common/records/prompt.record.d.ts +4 -6
- package/common/records/prompt.record.d.ts.map +1 -1
- package/common/records/resource.record.d.ts +4 -6
- package/common/records/resource.record.d.ts.map +1 -1
- package/common/records/scope.record.d.ts +3 -3
- package/common/records/scope.record.d.ts.map +1 -1
- package/common/records/skill.record.d.ts +4 -6
- package/common/records/skill.record.d.ts.map +1 -1
- package/common/records/tool.record.d.ts +4 -6
- package/common/records/tool.record.d.ts.map +1 -1
- package/common/records/workflow.record.d.ts +3 -5
- package/common/records/workflow.record.d.ts.map +1 -1
- package/common/tokens/adapter.tokens.d.ts +2 -2
- package/common/tokens/adapter.tokens.d.ts.map +1 -1
- package/common/tokens/app.tokens.d.ts +2 -2
- package/common/tokens/app.tokens.d.ts.map +1 -1
- package/common/tokens/auth-provider.tokens.d.ts +2 -2
- 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 +2 -2
- package/common/tokens/logger.tokens.d.ts.map +1 -1
- package/common/tokens/provider.tokens.d.ts +2 -2
- package/common/tokens/provider.tokens.d.ts.map +1 -1
- package/common/tokens/resource.tokens.d.ts +4 -0
- package/common/tokens/resource.tokens.d.ts.map +1 -1
- package/common/tokens/skill.tokens.d.ts +3 -0
- package/common/tokens/skill.tokens.d.ts.map +1 -1
- package/common/tokens/tool.tokens.d.ts +1 -0
- package/common/tokens/tool.tokens.d.ts.map +1 -1
- package/common/types/options/logging/interfaces.d.ts +1 -1
- package/common/types/options/logging/interfaces.d.ts.map +1 -1
- 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/session/interfaces.d.ts +1 -1
- package/common/types/options/session/interfaces.d.ts.map +1 -1
- package/common/types/options/skills-http/index.d.ts +1 -1
- package/common/types/options/skills-http/index.d.ts.map +1 -1
- package/common/types/options/skills-http/interfaces.d.ts +122 -11
- package/common/types/options/skills-http/interfaces.d.ts.map +1 -1
- package/common/types/options/skills-http/schema.d.ts +38 -0
- package/common/types/options/skills-http/schema.d.ts.map +1 -1
- package/context/frontmcp-context-storage.d.ts +2 -2
- package/context/frontmcp-context-storage.d.ts.map +1 -1
- package/context/frontmcp-context.provider.d.ts +3 -3
- package/context/frontmcp-context.provider.d.ts.map +1 -1
- package/direct/client.types.d.ts +64 -2
- package/direct/client.types.d.ts.map +1 -1
- package/direct/index.d.ts +1 -1
- package/direct/index.d.ts.map +1 -1
- package/elicitation/helpers/fallback.helper.d.ts +3 -3
- package/elicitation/helpers/fallback.helper.d.ts.map +1 -1
- package/elicitation/helpers/validate-elicitation-content.d.ts +1 -1
- package/elicitation/helpers/validate-elicitation-content.d.ts.map +1 -1
- package/elicitation/store/elicitation.store.d.ts +1 -1
- package/elicitation/store/elicitation.store.d.ts.map +1 -1
- package/esm/index.mjs +22744 -21109
- package/esm-loader/factories/esm-context-factories.d.ts +3 -3
- package/esm-loader/factories/esm-context-factories.d.ts.map +1 -1
- package/flows/flow.instance.d.ts +2 -2
- package/flows/flow.instance.d.ts.map +1 -1
- package/flows/flow.registry.d.ts +4 -4
- package/flows/flow.registry.d.ts.map +1 -1
- package/flows/flow.stages.d.ts +1 -1
- package/flows/flow.stages.d.ts.map +1 -1
- package/flows/flow.utils.d.ts +2 -2
- package/flows/flow.utils.d.ts.map +1 -1
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/front-mcp/front-mcp.providers.d.ts +41 -1
- package/front-mcp/front-mcp.providers.d.ts.map +1 -1
- package/front-mcp/front-mcp.tokens.d.ts +2 -2
- package/front-mcp/front-mcp.tokens.d.ts.map +1 -1
- package/hooks/hook.instance.d.ts +1 -1
- package/hooks/hook.instance.d.ts.map +1 -1
- package/hooks/hook.registry.d.ts +3 -3
- package/hooks/hook.registry.d.ts.map +1 -1
- package/hooks/hooks.utils.d.ts +2 -2
- package/hooks/hooks.utils.d.ts.map +1 -1
- package/index.d.ts +26 -22
- package/index.d.ts.map +1 -1
- package/index.js +15860 -14224
- package/job/enclave/job-dynamic.executor.d.ts +2 -2
- package/job/enclave/job-dynamic.executor.d.ts.map +1 -1
- package/job/enclave/job-enclave.bridge.d.ts +1 -1
- package/job/enclave/job-enclave.bridge.d.ts.map +1 -1
- package/job/execution/job-execution.manager.d.ts +5 -5
- package/job/execution/job-execution.manager.d.ts.map +1 -1
- package/job/job-permission.guard.d.ts +1 -1
- package/job/job-permission.guard.d.ts.map +1 -1
- package/job/job-scope.helper.d.ts +9 -9
- package/job/job-scope.helper.d.ts.map +1 -1
- package/job/job.events.d.ts +1 -1
- package/job/job.events.d.ts.map +1 -1
- package/job/job.registry.d.ts +8 -8
- package/job/job.registry.d.ts.map +1 -1
- package/job/job.utils.d.ts +4 -4
- package/job/job.utils.d.ts.map +1 -1
- package/job/store/job-definition-store.factory.d.ts +2 -2
- package/job/store/job-definition-store.factory.d.ts.map +1 -1
- package/job/store/job-definition.interface.d.ts +2 -2
- package/job/store/job-definition.interface.d.ts.map +1 -1
- package/job/store/job-state-store.factory.d.ts +2 -2
- package/job/store/job-state-store.factory.d.ts.map +1 -1
- package/job/store/memory-job-definition.store.d.ts +3 -3
- package/job/store/memory-job-definition.store.d.ts.map +1 -1
- package/job/store/memory-job-state.store.d.ts +1 -1
- package/job/store/memory-job-state.store.d.ts.map +1 -1
- package/job/store/redis-job-definition.store.d.ts +27 -5
- package/job/store/redis-job-definition.store.d.ts.map +1 -1
- package/job/store/redis-job-state.store.d.ts +2 -2
- package/job/store/redis-job-state.store.d.ts.map +1 -1
- package/logger/instances/instance.console-logger.d.ts +1 -1
- package/logger/instances/instance.console-logger.d.ts.map +1 -1
- package/logger/instances/instance.file-logger.d.ts +1 -1
- package/logger/instances/instance.file-logger.d.ts.map +1 -1
- package/logger/instances/instance.logger.d.ts +2 -2
- package/logger/instances/instance.logger.d.ts.map +1 -1
- package/logger/logger.registry.d.ts +4 -4
- package/logger/logger.registry.d.ts.map +1 -1
- package/logger/logger.types.d.ts +1 -1
- package/logger/logger.types.d.ts.map +1 -1
- package/logger/logger.utils.d.ts +3 -3
- package/logger/logger.utils.d.ts.map +1 -1
- package/notification/notification.service.d.ts +7 -1
- package/notification/notification.service.d.ts.map +1 -1
- package/package.json +10 -11
- package/plugin/plugin.registry.d.ts +2 -2
- package/plugin/plugin.registry.d.ts.map +1 -1
- package/plugin/plugin.utils.d.ts +2 -2
- package/plugin/plugin.utils.d.ts.map +1 -1
- package/prompt/flows/get-prompt.flow.d.ts +2 -0
- package/prompt/flows/get-prompt.flow.d.ts.map +1 -1
- package/prompt/prompt.events.d.ts +1 -1
- package/prompt/prompt.events.d.ts.map +1 -1
- package/prompt/prompt.instance.d.ts +3 -4
- package/prompt/prompt.instance.d.ts.map +1 -1
- package/prompt/prompt.registry.d.ts +6 -6
- package/prompt/prompt.registry.d.ts.map +1 -1
- package/prompt/prompt.types.d.ts +2 -2
- package/prompt/prompt.types.d.ts.map +1 -1
- package/prompt/prompt.utils.d.ts +3 -3
- package/prompt/prompt.utils.d.ts.map +1 -1
- package/provider/flow-context-providers.d.ts +2 -2
- package/provider/flow-context-providers.d.ts.map +1 -1
- package/provider/provider.registry.d.ts +4 -4
- package/provider/provider.registry.d.ts.map +1 -1
- package/provider/provider.types.d.ts +1 -1
- package/provider/provider.types.d.ts.map +1 -1
- package/provider/provider.utils.d.ts +2 -2
- package/provider/provider.utils.d.ts.map +1 -1
- package/regsitry/registry.base.d.ts +3 -3
- package/regsitry/registry.base.d.ts.map +1 -1
- package/remote-mcp/factories/context-factories.d.ts +3 -3
- package/remote-mcp/factories/context-factories.d.ts.map +1 -1
- package/remote-mcp/factories/record-builders.d.ts +2 -2
- package/remote-mcp/factories/record-builders.d.ts.map +1 -1
- package/remote-mcp/mcp-client.service.d.ts +4 -5
- package/remote-mcp/mcp-client.service.d.ts.map +1 -1
- package/resource/flows/resources-list.flow.d.ts +1 -0
- package/resource/flows/resources-list.flow.d.ts.map +1 -1
- package/resource/resource.events.d.ts +1 -1
- package/resource/resource.events.d.ts.map +1 -1
- package/resource/resource.instance.d.ts +3 -4
- package/resource/resource.instance.d.ts.map +1 -1
- package/resource/resource.registry.d.ts +7 -7
- package/resource/resource.registry.d.ts.map +1 -1
- package/resource/resource.types.d.ts +2 -2
- package/resource/resource.types.d.ts.map +1 -1
- package/resource/resource.utils.d.ts +3 -3
- package/resource/resource.utils.d.ts.map +1 -1
- package/scope/scope.registry.d.ts +3 -3
- package/scope/scope.registry.d.ts.map +1 -1
- package/scope/scope.utils.d.ts +2 -2
- package/scope/scope.utils.d.ts.map +1 -1
- package/server/noop-server.d.ts +1 -1
- package/server/noop-server.d.ts.map +1 -1
- package/server/server.validation.d.ts +1 -1
- package/server/server.validation.d.ts.map +1 -1
- package/skill/cache/skill-http-cache.factory.d.ts +1 -1
- package/skill/cache/skill-http-cache.factory.d.ts.map +1 -1
- package/skill/cache/skill-http-cache.holder.d.ts +1 -1
- package/skill/cache/skill-http-cache.holder.d.ts.map +1 -1
- package/skill/flows/http/skills-api.flow.d.ts +9 -0
- package/skill/flows/http/skills-api.flow.d.ts.map +1 -1
- package/skill/flows/search-skills.flow.d.ts.map +1 -1
- package/skill/index.d.ts +10 -1
- package/skill/index.d.ts.map +1 -1
- package/skill/providers/memory-skill.provider.d.ts +3 -3
- package/skill/providers/memory-skill.provider.d.ts.map +1 -1
- package/skill/semantic/index.d.ts +2 -0
- package/skill/semantic/index.d.ts.map +1 -0
- package/skill/semantic/skill-semantic-search.interface.d.ts +41 -0
- package/skill/semantic/skill-semantic-search.interface.d.ts.map +1 -0
- package/skill/sep-2640/index.d.ts +13 -0
- package/skill/sep-2640/index.d.ts.map +1 -0
- package/skill/sep-2640/resources/index.d.ts +30 -0
- package/skill/sep-2640/resources/index.d.ts.map +1 -0
- package/skill/sep-2640/resources/skill-file.resource.d.ts +25 -0
- package/skill/sep-2640/resources/skill-file.resource.d.ts.map +1 -0
- package/skill/sep-2640/resources/skill-index.resource.d.ts +29 -0
- package/skill/sep-2640/resources/skill-index.resource.d.ts.map +1 -0
- package/skill/sep-2640/resources/skill-md.resource.d.ts +23 -0
- package/skill/sep-2640/resources/skill-md.resource.d.ts.map +1 -0
- package/skill/sep-2640/sep-2640.builders.d.ts +55 -0
- package/skill/sep-2640/sep-2640.builders.d.ts.map +1 -0
- package/skill/sep-2640/sep-2640.constants.d.ts +94 -0
- package/skill/sep-2640/sep-2640.constants.d.ts.map +1 -0
- package/skill/sep-2640/sep-2640.last-modified.d.ts +9 -0
- package/skill/sep-2640/sep-2640.last-modified.d.ts.map +1 -0
- package/skill/sep-2640/sep-2640.per-skill.d.ts +38 -0
- package/skill/sep-2640/sep-2640.per-skill.d.ts.map +1 -0
- package/skill/sep-2640/sep-2640.resource-helpers.d.ts +57 -0
- package/skill/sep-2640/sep-2640.resource-helpers.d.ts.map +1 -0
- package/skill/sep-2640/sep-2640.uri.d.ts +66 -0
- package/skill/sep-2640/sep-2640.uri.d.ts.map +1 -0
- package/skill/session/skill-session.manager.d.ts +1 -1
- package/skill/session/skill-session.manager.d.ts.map +1 -1
- package/skill/skill-audit.helper.d.ts +69 -0
- package/skill/skill-audit.helper.d.ts.map +1 -0
- package/skill/skill-directory-loader.d.ts +14 -3
- package/skill/skill-directory-loader.d.ts.map +1 -1
- package/skill/skill-instructions.helper.d.ts +115 -0
- package/skill/skill-instructions.helper.d.ts.map +1 -0
- package/skill/skill-md-parser.d.ts.map +1 -1
- package/skill/skill-mode.utils.d.ts +1 -1
- package/skill/skill-scope.helper.d.ts +12 -6
- package/skill/skill-scope.helper.d.ts.map +1 -1
- package/skill/skill-storage.factory.d.ts +2 -2
- package/skill/skill-storage.factory.d.ts.map +1 -1
- package/skill/skill-storage.interface.d.ts +2 -2
- package/skill/skill-storage.interface.d.ts.map +1 -1
- package/skill/skill.events.d.ts +1 -1
- package/skill/skill.events.d.ts.map +1 -1
- package/skill/skill.instance.d.ts +3 -4
- package/skill/skill.instance.d.ts.map +1 -1
- package/skill/skill.registry.d.ts +166 -10
- package/skill/skill.registry.d.ts.map +1 -1
- package/skill/skill.utils.d.ts +3 -3
- package/skill/skill.utils.d.ts.map +1 -1
- package/tool/flows/call-tool.flow.d.ts +2 -0
- package/tool/flows/call-tool.flow.d.ts.map +1 -1
- package/tool/tool.events.d.ts +1 -1
- package/tool/tool.events.d.ts.map +1 -1
- package/tool/tool.registry.d.ts +24 -9
- package/tool/tool.registry.d.ts.map +1 -1
- package/tool/tool.types.d.ts +2 -2
- package/tool/tool.types.d.ts.map +1 -1
- package/transport/adapters/base-sse-transport.d.ts +9 -2
- package/transport/adapters/base-sse-transport.d.ts.map +1 -1
- package/transport/adapters/sse-transport.d.ts +1 -1
- package/transport/adapters/sse-transport.d.ts.map +1 -1
- package/transport/adapters/transport.local.adapter.d.ts +6 -0
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -1
- package/transport/in-memory-server.d.ts.map +1 -1
- package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts +2 -2
- package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts.map +1 -1
- package/transport/mcp-handlers/complete-request.handler.d.ts +2 -2
- package/transport/mcp-handlers/complete-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts +2 -2
- package/transport/mcp-handlers/get-prompt-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/index.d.ts +9 -0
- package/transport/mcp-handlers/index.d.ts.map +1 -1
- package/transport/mcp-handlers/initialize-request.handler.d.ts +2 -2
- package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts +2 -2
- package/transport/mcp-handlers/list-prompts-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +2 -2
- package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-resources-request.handler.d.ts +2 -2
- package/transport/mcp-handlers/list-resources-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/list-tools-request.handler.d.ts +2 -2
- package/transport/mcp-handlers/list-tools-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts +2 -2
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/mcp-handlers.types.d.ts +12 -0
- package/transport/mcp-handlers/mcp-handlers.types.d.ts.map +1 -1
- package/transport/mcp-handlers/read-resource-request.handler.d.ts +2 -2
- 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 -3
- package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/skills-list-request.handler.d.ts +2 -2
- package/transport/mcp-handlers/skills-list-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/skills-load-request.handler.d.ts +2 -2
- package/transport/mcp-handlers/skills-load-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/skills-search-request.handler.d.ts +2 -2
- package/transport/mcp-handlers/skills-search-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/subscribe-request.handler.d.ts +2 -2
- package/transport/mcp-handlers/subscribe-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts +2 -2
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts.map +1 -1
- package/transport/transport.local.d.ts +4 -4
- package/transport/transport.local.d.ts.map +1 -1
- package/transport/transport.remote.d.ts +3 -3
- package/transport/transport.remote.d.ts.map +1 -1
- package/transport/transport.types.d.ts +2 -2
- package/transport/transport.types.d.ts.map +1 -1
- package/types/drinen-hooks.types.d.ts +1 -1
- package/types/drinen-hooks.types.d.ts.map +1 -1
- package/utils/lineage.utils.d.ts +1 -1
- package/utils/lineage.utils.d.ts.map +1 -1
- package/utils/naming.utils.d.ts +1 -1
- package/utils/naming.utils.d.ts.map +1 -1
- package/workflow/engine/workflow-step.executor.d.ts +3 -3
- package/workflow/engine/workflow-step.executor.d.ts.map +1 -1
- package/workflow/engine/workflow.engine.d.ts +4 -4
- package/workflow/engine/workflow.engine.d.ts.map +1 -1
- package/workflow/workflow.events.d.ts +1 -1
- package/workflow/workflow.events.d.ts.map +1 -1
- package/workflow/workflow.instance.d.ts +5 -6
- package/workflow/workflow.instance.d.ts.map +1 -1
- package/workflow/workflow.registry.d.ts +8 -8
- package/workflow/workflow.registry.d.ts.map +1 -1
- package/workflow/workflow.utils.d.ts +3 -3
- package/workflow/workflow.utils.d.ts.map +1 -1
- package/skill/resources/index.d.ts +0 -32
- package/skill/resources/index.d.ts.map +0 -1
- package/skill/resources/skill-content-alias.resource.d.ts +0 -19
- package/skill/resources/skill-content-alias.resource.d.ts.map +0 -1
- package/skill/resources/skill-content.resource.d.ts +0 -20
- package/skill/resources/skill-content.resource.d.ts.map +0 -1
- package/skill/resources/skill-example-content.resource.d.ts +0 -20
- package/skill/resources/skill-example-content.resource.d.ts.map +0 -1
- package/skill/resources/skill-examples-list.resource.d.ts +0 -19
- package/skill/resources/skill-examples-list.resource.d.ts.map +0 -1
- package/skill/resources/skill-reference-content.resource.d.ts +0 -20
- package/skill/resources/skill-reference-content.resource.d.ts.map +0 -1
- package/skill/resources/skill-references-list.resource.d.ts +0 -19
- package/skill/resources/skill-references-list.resource.d.ts.map +0 -1
- package/skill/resources/skill-resource.helpers.d.ts +0 -77
- package/skill/resources/skill-resource.helpers.d.ts.map +0 -1
- package/skill/resources/skills-catalog.resource.d.ts +0 -14
- package/skill/resources/skills-catalog.resource.d.ts.map +0 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parsed `skill://` URI components.
|
|
3
|
+
*/
|
|
4
|
+
export interface ParsedSkillUri {
|
|
5
|
+
/** Full skill path segments — always at least one. The last segment is the skill name. */
|
|
6
|
+
skillPathSegments: string[];
|
|
7
|
+
/** The skill's name — the final segment of `<skill-path>`. */
|
|
8
|
+
skillName: string;
|
|
9
|
+
/**
|
|
10
|
+
* Organisational prefix segments. Empty when `<skill-path>` is a single
|
|
11
|
+
* segment.
|
|
12
|
+
*/
|
|
13
|
+
prefixSegments: string[];
|
|
14
|
+
/** File path segments relative to the skill directory; empty for directory URIs. */
|
|
15
|
+
filePathSegments: string[];
|
|
16
|
+
/** Whether this URI addresses the skill's `SKILL.md`. */
|
|
17
|
+
isSkillMd: boolean;
|
|
18
|
+
/** The full `<skill-path>` joined by `/`. */
|
|
19
|
+
skillPath: string;
|
|
20
|
+
/** The full `<file-path>` joined by `/`. */
|
|
21
|
+
filePath: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Test whether a URI uses the `skill://` scheme.
|
|
25
|
+
*/
|
|
26
|
+
export declare function isSkillUri(uri: string): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Test whether a URI is the well-known discovery index.
|
|
29
|
+
*/
|
|
30
|
+
export declare function isSkillIndexUri(uri: string): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Build a `skill://` URI from skill path segments and an optional file path.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* buildSkillUri(['git-workflow'], 'SKILL.md') // skill://git-workflow/SKILL.md
|
|
36
|
+
* buildSkillUri(['acme', 'billing', 'refunds'], 'templates/email.md')
|
|
37
|
+
* // skill://acme/billing/refunds/templates/email.md
|
|
38
|
+
*/
|
|
39
|
+
export declare function buildSkillUri(skillPathSegments: string[], filePath?: string): string;
|
|
40
|
+
/**
|
|
41
|
+
* Parse a `skill://` URI into its components.
|
|
42
|
+
*
|
|
43
|
+
* Returns `undefined` for malformed URIs. The well-known
|
|
44
|
+
* `skill://index.json` does NOT parse as a skill URI — it's reserved.
|
|
45
|
+
*
|
|
46
|
+
* SEP-2640 §URI Scheme: the first segment occupies the RFC 3986 authority
|
|
47
|
+
* position (parsed before the path), so we re-attach it to the path here.
|
|
48
|
+
*/
|
|
49
|
+
export declare function parseSkillUri(uri: string): ParsedSkillUri | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Parse a `skill://` URI knowing the registered skill path. This is the
|
|
52
|
+
* preferred parse path when the registry can supply the skill-path
|
|
53
|
+
* (e.g. when handling `read_resource` for a known skill). It correctly
|
|
54
|
+
* splits sub-file paths like `skill://my-skill/scripts/extract.py`.
|
|
55
|
+
*/
|
|
56
|
+
export declare function parseSkillUriWithKnownSkill(uri: string, knownSkillPath: string): ParsedSkillUri | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Validate a `<skill-path>` per SEP-2640: one or more `/`-separated
|
|
59
|
+
* segments, final segment matches the agentskills naming rules. Prefix
|
|
60
|
+
* segments are looser (just non-empty URI path segments).
|
|
61
|
+
*
|
|
62
|
+
* Returns the validated skill path (lowercased final segment). Throws on
|
|
63
|
+
* malformed input.
|
|
64
|
+
*/
|
|
65
|
+
export declare function validateSkillPath(skillPath: string, expectedName: string): string[];
|
|
66
|
+
//# sourceMappingURL=sep-2640.uri.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sep-2640.uri.d.ts","sourceRoot":"","sources":["../../../src/skill/sep-2640/sep-2640.uri.ts"],"names":[],"mappings":"AA6CA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,0FAA0F;IAC1F,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,8DAA8D;IAC9D,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,oFAAoF;IACpF,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,yDAAyD;IACzD,SAAS,EAAE,OAAO,CAAC;IACnB,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE/C;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,iBAAiB,EAAE,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAepF;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAqDrE;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAgC3G;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAwCnF"}
|
|
@@ -2,8 +2,8 @@ import { EventEmitter } from '@frontmcp/utils';
|
|
|
2
2
|
import type { FrontMcpLogger } from '../../common';
|
|
3
3
|
import type { SkillContent } from '../../common/interfaces';
|
|
4
4
|
import type { SkillLoadResult } from '../skill-storage.interface';
|
|
5
|
-
import { SkillSessionState, SkillSessionOptions, SkillActivationResult, ToolAuthorizationResult, SkillSecurityPolicy, SkillPolicyMode } from './skill-session.types';
|
|
6
5
|
import type { SkillSessionStore } from './skill-session-store.interface';
|
|
6
|
+
import { type SkillActivationResult, type SkillPolicyMode, type SkillSecurityPolicy, type SkillSessionOptions, type SkillSessionState, type ToolAuthorizationResult } from './skill-session.types';
|
|
7
7
|
/**
|
|
8
8
|
* Manages skill session state and tool authorization.
|
|
9
9
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-session.manager.d.ts","sourceRoot":"","sources":["../../../src/skill/session/skill-session.manager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"skill-session.manager.d.ts","sourceRoot":"","sources":["../../../src/skill/session/skill-session.manager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,mBAAmB,EAExB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC7B,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,mBAAoB,SAAQ,YAAY;IACnD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA8C;IACtE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgC;IACxD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAiB;IACzC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAoB;gBAE/B,OAAO,CAAC,EAAE,mBAAmB,EAAE,MAAM,CAAC,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE,iBAAiB;IAa7F;;;OAGG;IACG,cAAc,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAkB5E;;;OAGG;IACH,gBAAgB,IAAI,iBAAiB,GAAG,SAAS;IAIjD;;OAEG;IACH,cAAc,IAAI,OAAO;IAMzB;;OAEG;IACH,mBAAmB,IAAI,MAAM;IAK7B;;OAEG;IACH,iBAAiB,IAAI,MAAM,EAAE;IAM7B;;OAEG;IACH,mBAAmB,IAAI,MAAM,EAAE;IAM/B;;;;;;;;;;OAUG;IACH,aAAa,CACX,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,eAAe,EAC3B,MAAM,CAAC,EAAE,mBAAmB,GAC3B,qBAAqB;IA+ExB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAc/B;;;;OAIG;IACH,eAAe,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAyFvC;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAYzB;;;;;;OAMG;IACH,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,uBAAuB;IAiIjE;;;OAGG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIxC;;OAEG;IACH,gBAAgB,IAAI,MAAM,EAAE;IAM5B;;;OAGG;IACH,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAyB7C;;OAEG;IACH,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAyB1C;;;OAGG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAoBtC;;OAEG;IACH,aAAa,IAAI,MAAM;IAKvB;;;OAGG;IACH,aAAa,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI;IAe1C;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAKxB;;OAEG;YACW,cAAc;CAS7B"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { FrontMcpLogger } from '../common';
|
|
2
|
+
import type { SkillsConfigAuditOptions } from '../common/types/options/skills-http/interfaces';
|
|
3
|
+
import type ProviderRegistry from '../provider/provider.registry';
|
|
4
|
+
/**
|
|
5
|
+
* Minimal structural shape we need from the audit module. Defined locally so
|
|
6
|
+
* the SDK doesn't take a hard dependency on `@frontmcp/adapters/skills`.
|
|
7
|
+
*
|
|
8
|
+
* Hosts that don't have the adapters package installed will hit a clear
|
|
9
|
+
* runtime error if they enable audit without injecting a factory — we do NOT
|
|
10
|
+
* silently skip audit registration, because that would mask a security
|
|
11
|
+
* configuration error.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Loosely-typed options bag forwarded to `new SkillAuditWriter(...)`. Mirrors
|
|
15
|
+
* `SkillAuditWriterOptions` in `@frontmcp/adapters/skills` but kept structural
|
|
16
|
+
* here so the SDK doesn't take an upward dependency.
|
|
17
|
+
*/
|
|
18
|
+
export interface AuditWriterOptionsShape {
|
|
19
|
+
subjectMode?: 'plain' | 'hash' | 'omit';
|
|
20
|
+
subjectHashSecret?: Uint8Array;
|
|
21
|
+
maxQueueDepth?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface AuditModuleShape {
|
|
24
|
+
SkillAuditWriterToken: symbol;
|
|
25
|
+
SkillAuditWriter: new (store: unknown, signer: unknown, logger: FrontMcpLogger, metrics?: unknown, options?: AuditWriterOptionsShape) => unknown;
|
|
26
|
+
Hs256AuditSigner: new (secret: string | Uint8Array, keyId: string) => unknown;
|
|
27
|
+
MemoryAuditStore: new () => unknown;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Factory that returns the audit module. Set once at host bootstrap with
|
|
31
|
+
* {@link setSkillAuditFactory} so the SDK can resolve the module without
|
|
32
|
+
* `eval`/`require` and without taking a hard dependency on the adapters
|
|
33
|
+
* package. This is the Edge-runtime-safe replacement for the previous
|
|
34
|
+
* `eval('require')` shim.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* import { setSkillAuditFactory } from '@frontmcp/sdk';
|
|
39
|
+
* import * as auditModule from '@frontmcp/adapters/skills';
|
|
40
|
+
*
|
|
41
|
+
* setSkillAuditFactory(() => auditModule);
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export type SkillAuditFactory = () => AuditModuleShape;
|
|
45
|
+
/**
|
|
46
|
+
* Register the host-side factory that resolves the audit module. Call once
|
|
47
|
+
* at boot (e.g. in your bootstrap file) before the FrontMCP scope is built.
|
|
48
|
+
*
|
|
49
|
+
* Pass `undefined` to clear the factory (used by tests).
|
|
50
|
+
*/
|
|
51
|
+
export declare function setSkillAuditFactory(factory: SkillAuditFactory | undefined): void;
|
|
52
|
+
/**
|
|
53
|
+
* Register the SkillAuditWriter in the scope DI container when
|
|
54
|
+
* `skillsConfig.audit.enabled` is set.
|
|
55
|
+
*
|
|
56
|
+
* Defaults (used only when the host doesn't supply explicit signer/store):
|
|
57
|
+
* - signer: in-memory HS256 with a randomly generated 32-byte secret
|
|
58
|
+
* (refused in production — host MUST configure an explicit signer).
|
|
59
|
+
* - store: in-memory append-only log
|
|
60
|
+
*
|
|
61
|
+
* Both defaults are flagged in the logs as dev-only so production hosts
|
|
62
|
+
* don't accidentally rely on them.
|
|
63
|
+
*/
|
|
64
|
+
export declare function registerSkillAuditWriter(options: {
|
|
65
|
+
providers: ProviderRegistry;
|
|
66
|
+
audit: SkillsConfigAuditOptions | undefined;
|
|
67
|
+
logger: FrontMcpLogger;
|
|
68
|
+
}): void;
|
|
69
|
+
//# sourceMappingURL=skill-audit.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-audit.helper.d.ts","sourceRoot":"","sources":["../../src/skill/skill-audit.helper.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAElE;;;;;;;;GAQG;AACH;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACxC,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,KAChB,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,cAAc,EACtB,OAAO,CAAC,EAAE,OAAO,EACjB,OAAO,CAAC,EAAE,uBAAuB,KAC9B,OAAO,CAAC;IACb,gBAAgB,EAAE,KAAK,MAAM,EAAE,MAAM,GAAG,UAAU,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9E,gBAAgB,EAAE,UAAU,OAAO,CAAC;CACrC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,gBAAgB,CAAC;AAIvD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,iBAAiB,GAAG,SAAS,GAAG,IAAI,CAEjF;AAoDD;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE;IAChD,SAAS,EAAE,gBAAgB,CAAC;IAC5B,KAAK,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAC5C,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,IAAI,CA2CP"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
1
|
+
import { type FrontMcpLogger } from '../common';
|
|
2
|
+
import { type SkillResources } from '../common/metadata/skill.metadata';
|
|
3
|
+
import { type SkillFileRecord } from '../common/records/skill.record';
|
|
4
4
|
/**
|
|
5
5
|
* Result of scanning a skill directory for resource subdirectories.
|
|
6
6
|
*/
|
|
@@ -19,6 +19,17 @@ export interface ScanResult {
|
|
|
19
19
|
* @returns Scan result with detected resources
|
|
20
20
|
*/
|
|
21
21
|
export declare function scanSkillResources(dirPath: string): Promise<ScanResult>;
|
|
22
|
+
/**
|
|
23
|
+
* Walk a skill directory and reject any nested SKILL.md.
|
|
24
|
+
*
|
|
25
|
+
* Per SEP-2640 §Resource Mapping: "A `SKILL.md` MUST NOT appear in any
|
|
26
|
+
* descendant directory of a skill. The skill directory is the boundary;
|
|
27
|
+
* skills do not nest inside other skills."
|
|
28
|
+
*
|
|
29
|
+
* Returns the relative paths (from `dirPath`) of any nested SKILL.md
|
|
30
|
+
* files found. The root SKILL.md at `dirPath/SKILL.md` is excluded.
|
|
31
|
+
*/
|
|
32
|
+
export declare function findNestedSkillMd(dirPath: string, maxDepth?: number): Promise<string[]>;
|
|
22
33
|
/**
|
|
23
34
|
* Load a full skill directory into a SkillFileRecord.
|
|
24
35
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-directory-loader.d.ts","sourceRoot":"","sources":["../../src/skill/skill-directory-loader.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"skill-directory-loader.d.ts","sourceRoot":"","sources":["../../src/skill/skill-directory-loader.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAA2C,KAAK,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACjH,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAIjF;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,oCAAoC;IACpC,SAAS,EAAE,cAAc,CAAC;IAC1B,+CAA+C;IAC/C,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAyB7E;AAeD;;;;;;;;;GASG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,EACf,QAAQ,GAAE,MAAiC,GAC1C,OAAO,CAAC,MAAM,EAAE,CAAC,CAqCnB;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,CA+E3G;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,CAEjG"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers for injecting bundle skill `instructions` into the MCP `initialize`
|
|
3
|
+
* response.
|
|
4
|
+
*
|
|
5
|
+
* Design notes:
|
|
6
|
+
* - The `initialize` response's `instructions` field is server-side prompt
|
|
7
|
+
* text that clients usually inject verbatim into the model context. Pushing
|
|
8
|
+
* every skill's full SKILL.md body would balloon every initialize response
|
|
9
|
+
* and burn token budget on tool calls. Instead, we ship a bounded catalog
|
|
10
|
+
* summary (`**name**: description`) plus a pointer to the `skills://catalog`
|
|
11
|
+
* resource and the `skills://{name}/SKILL.md` resource template for the full
|
|
12
|
+
* content.
|
|
13
|
+
* - Resolution is sync — the registry already holds metadata at boot. The
|
|
14
|
+
* per-skill `instructions` markdown body stays lazy and reachable through
|
|
15
|
+
* `skills://` resources or the `skills/search` and `skills/load` MCP
|
|
16
|
+
* extension methods.
|
|
17
|
+
* - Off / replace policies short-circuit before we touch the registry, so a
|
|
18
|
+
* server with `injectInstructions: 'off'` pays zero cost regardless of how
|
|
19
|
+
* many bundle skills are loaded.
|
|
20
|
+
* - The catalog is recomputed lazily on every `initialize` request (see
|
|
21
|
+
* `initialize-request.handler.ts`), so dynamic skill registrations made
|
|
22
|
+
* after the server boots are reflected in subsequent reconnects without a
|
|
23
|
+
* restart.
|
|
24
|
+
*/
|
|
25
|
+
import type { SkillRegistryInterface } from './skill.registry';
|
|
26
|
+
export type InjectInstructionsPolicy = 'off' | 'append' | 'prepend' | 'replace';
|
|
27
|
+
interface ComposeOptions {
|
|
28
|
+
/** User-provided server instructions from `@FrontMcp({ instructions })`. */
|
|
29
|
+
userInstructions?: string;
|
|
30
|
+
/** Framework-emitted hints (e.g. channel reply-tool guidance). */
|
|
31
|
+
channelInstructions?: string;
|
|
32
|
+
/** Skill registry; pass `undefined` if skills are disabled. */
|
|
33
|
+
skillRegistry?: SkillRegistryInterface;
|
|
34
|
+
/** Merge policy from `skillsConfig.injectInstructions`. */
|
|
35
|
+
policy?: InjectInstructionsPolicy;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Sanitize a skill description so it can be embedded as a single bullet in a
|
|
39
|
+
* markdown catalog without breaking out of its line context.
|
|
40
|
+
*
|
|
41
|
+
* - Collapses whitespace (newlines, tabs, multiple spaces) to single spaces.
|
|
42
|
+
* - Escapes backslashes FIRST so a hostile `\*` in the input can't smuggle a
|
|
43
|
+
* literal `\` into the output that pairs with our own escape and re-enables
|
|
44
|
+
* the metacharacter (CodeQL: js/incomplete-sanitization).
|
|
45
|
+
* - Escapes backticks so embedded code spans don't swallow the closing fence.
|
|
46
|
+
* - Strips standalone `---` lines (would collide with section separators or
|
|
47
|
+
* render as a horizontal rule).
|
|
48
|
+
* - Escapes `*` and `_` so embedded `**bold**` / `_em_` / list markers don't
|
|
49
|
+
* reflow our `**name**: description` formatting.
|
|
50
|
+
* - Escapes `[` so embedded `[link](url)` syntax stays inert.
|
|
51
|
+
*
|
|
52
|
+
* Names themselves are NOT escaped — they pass kebab-case validation
|
|
53
|
+
* (≤64 chars, `[a-z0-9-]+`) and never contain markdown specials. If the name
|
|
54
|
+
* regex is ever relaxed, this helper must escape names too.
|
|
55
|
+
*
|
|
56
|
+
* Exported so the security test suite can pin down the escape ordering.
|
|
57
|
+
*/
|
|
58
|
+
export declare function sanitizeDescription(raw: string | undefined): string;
|
|
59
|
+
/**
|
|
60
|
+
* Build a bounded catalog summary of MCP-visible skills.
|
|
61
|
+
*
|
|
62
|
+
* Output shape:
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
* Available skills (read the `skills://catalog` resource to browse, or `skills://{name}/SKILL.md` for full content):
|
|
66
|
+
*
|
|
67
|
+
* - **skill_name**: short description
|
|
68
|
+
* - **another_skill**: ...
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* Returns `''` if the registry is missing or has no MCP-visible skills.
|
|
72
|
+
* The total length is hard-capped at `MAX_SKILL_CATALOG_CHARS` (footer
|
|
73
|
+
* reserve included), with a `_(catalog truncated — showing N of M skills…)_`
|
|
74
|
+
* footer appended when the cap is hit.
|
|
75
|
+
*/
|
|
76
|
+
export declare function buildSkillsCatalogSummary(skillRegistry: SkillRegistryInterface | undefined): string;
|
|
77
|
+
/**
|
|
78
|
+
* Compose the final `instructions` string for the MCP `initialize` response
|
|
79
|
+
* by merging server instructions, channel hints, and the skill catalog
|
|
80
|
+
* summary per the configured policy.
|
|
81
|
+
*
|
|
82
|
+
* Sections are joined with `\n\n---\n\n` so clients can render them as
|
|
83
|
+
* separate logical blocks if they wish.
|
|
84
|
+
*
|
|
85
|
+
* Policy semantics:
|
|
86
|
+
* - `'off'`: skips the skill catalog; user + channel hints are still emitted.
|
|
87
|
+
* - `'append'` (default): user + channel + catalog, in that order.
|
|
88
|
+
* - `'prepend'`: catalog + channel + user.
|
|
89
|
+
* - `'replace'`: only the user-supplied instructions are emitted. **Falls
|
|
90
|
+
* back to `'append'` semantics when `userInstructions` is empty/undefined**
|
|
91
|
+
* so a misconfigured server doesn't silently drop the catalog and channel
|
|
92
|
+
* hints. Document this in the schema if you change it.
|
|
93
|
+
*/
|
|
94
|
+
export declare function composeInitializeInstructions(options: ComposeOptions): string;
|
|
95
|
+
/**
|
|
96
|
+
* Build the channel-instructions hint emitted to clients when the scope
|
|
97
|
+
* exposes any channel. Shared by stdio (`front-mcp.ts`) and HTTP
|
|
98
|
+
* (`transport.local.adapter.ts`) so both transports stay in sync.
|
|
99
|
+
*
|
|
100
|
+
* Returns `''` when no channels are registered.
|
|
101
|
+
*/
|
|
102
|
+
export declare function buildChannelInstructions(channels: ChannelRegistryLike | undefined): string;
|
|
103
|
+
/**
|
|
104
|
+
* Minimal duck-typed surface for channel-registry consumers used by
|
|
105
|
+
* `buildChannelInstructions`. Keeps this helper free of a hard dependency on
|
|
106
|
+
* the channel module so it remains importable from the public barrel.
|
|
107
|
+
*/
|
|
108
|
+
interface ChannelRegistryLike {
|
|
109
|
+
hasAny(): boolean;
|
|
110
|
+
getChannelInstances(): Array<{
|
|
111
|
+
twoWay?: boolean;
|
|
112
|
+
}>;
|
|
113
|
+
}
|
|
114
|
+
export {};
|
|
115
|
+
//# sourceMappingURL=skill-instructions.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-instructions.helper.d.ts","sourceRoot":"","sources":["../../src/skill/skill-instructions.helper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE/D,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAoBhF,UAAU,cAAc;IACtB,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kEAAkE;IAClE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,+DAA+D;IAC/D,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,2DAA2D;IAC3D,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAYnE;AAMD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,sBAAsB,GAAG,SAAS,GAAG,MAAM,CAsCnG;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CA0B7E;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,SAAS,GAAG,MAAM,CAM1F;AAED;;;;GAIG;AACH,UAAU,mBAAmB;IAC3B,MAAM,IAAI,OAAO,CAAC;IAClB,mBAAmB,IAAI,KAAK,CAAC;QAAE,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CACpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-md-parser.d.ts","sourceRoot":"","sources":["../../src/skill/skill-md-parser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skill-md-parser.d.ts","sourceRoot":"","sources":["../../src/skill/skill-md-parser.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAEV,aAAa,EAEb,cAAc,EAEf,MAAM,mCAAmC,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,kBAAkB,CA+B3E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,aAAa,CAAC,CAwLxB;AAED;;;;;;;;;GASG;AACH,wBAAsB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAUnH;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGxD"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Skills-only mode is a special operational mode where:
|
|
5
5
|
* - The tools list returns empty (no tools exposed)
|
|
6
|
-
* - Only skill discovery tools are available
|
|
6
|
+
* - Only skill discovery tools and `skill://` resources are available
|
|
7
7
|
* - Used for planner agents that need skills but not execution tools
|
|
8
8
|
*
|
|
9
9
|
* @module skill/skill-mode.utils
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Helper for registering skill capabilities in scope.
|
|
3
3
|
*
|
|
4
|
-
* This module extracts skill-specific registration logic from
|
|
5
|
-
* to maintain separation of concerns
|
|
4
|
+
* This module extracts skill-specific registration logic from
|
|
5
|
+
* `scope.instance.ts` to maintain separation of concerns.
|
|
6
|
+
*
|
|
7
|
+
* Skill resources are registered exclusively under the SEP-2640
|
|
8
|
+
* `skill://` URI scheme. The legacy plural `skills://` scheme has been
|
|
9
|
+
* removed.
|
|
6
10
|
*
|
|
7
11
|
* @module skill/skill-scope.helper
|
|
8
12
|
*/
|
|
@@ -32,10 +36,12 @@ export interface SkillScopeRegistrationOptions {
|
|
|
32
36
|
/**
|
|
33
37
|
* Register skill-related flows and resources in the scope.
|
|
34
38
|
*
|
|
35
|
-
*
|
|
36
|
-
* -
|
|
37
|
-
* -
|
|
38
|
-
*
|
|
39
|
+
* Handles:
|
|
40
|
+
* - MCP flows for skill discovery/loading (SearchSkillsFlow, LoadSkillFlow)
|
|
41
|
+
* - SEP-2640 conformant `skill://` resources unless disabled via
|
|
42
|
+
* `skillsConfig.mcpResources: false`
|
|
43
|
+
* - HTTP flows (`/llm.txt`, `/llm_full.txt`, `/skills`) when
|
|
44
|
+
* `skillsConfig.enabled` is true
|
|
39
45
|
*
|
|
40
46
|
* @param options - Registration options
|
|
41
47
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-scope.helper.d.ts","sourceRoot":"","sources":["../../src/skill/skill-scope.helper.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"skill-scope.helper.d.ts","sourceRoot":"","sources":["../../src/skill/skill-scope.helper.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAMlE,OAAO,KAAK,aAAa,MAAM,kBAAkB,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,kDAAkD;IAClD,aAAa,EAAE,aAAa,CAAC;IAC7B,gDAAgD;IAChD,YAAY,EAAE,YAAY,CAAC;IAC3B,iEAAiE;IACjE,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,iDAAiD;IACjD,SAAS,EAAE,gBAAgB,CAAC;IAC5B,mDAAmD;IACnD,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,kCAAkC;IAClC,MAAM,EAAE,cAAc,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,yBAAyB,CAAC,OAAO,EAAE,6BAA6B,GAAG,OAAO,CAAC,IAAI,CAAC,CA+CrG"}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { FrontMcpLogger } from '../common';
|
|
10
10
|
import type ToolRegistry from '../tool/tool.registry';
|
|
11
|
+
import type { ExternalSkillMode, ExternalSkillProviderBase } from './providers/external-skill.provider';
|
|
12
|
+
import { type MemorySkillProviderOptions } from './providers/memory-skill.provider';
|
|
11
13
|
import type { SkillStorageProvider, SkillStorageProviderType } from './skill-storage.interface';
|
|
12
14
|
import { SkillToolValidator } from './skill-validator';
|
|
13
|
-
import { MemorySkillProviderOptions } from './providers/memory-skill.provider';
|
|
14
|
-
import type { ExternalSkillProviderBase, ExternalSkillMode } from './providers/external-skill.provider';
|
|
15
15
|
import type { SkillSyncStateStore } from './sync/sync-state.interface';
|
|
16
16
|
/**
|
|
17
17
|
* VectorDB provider options (for external vector database).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-storage.factory.d.ts","sourceRoot":"","sources":["../../src/skill/skill-storage.factory.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"skill-storage.factory.d.ts","sourceRoot":"","sources":["../../src/skill/skill-storage.factory.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,KAAK,YAAY,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AACxG,OAAO,EAAuB,KAAK,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AACzG,OAAO,KAAK,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE1B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;;;OAKG;IACH,IAAI,EAAE,iBAAiB,CAAC;IAExB;;;OAGG;IACH,cAAc,CAAC,EAAE,mBAAmB,CAAC;IAErC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,iCAAkC,SAAQ,yBAAyB;IAClF;;;OAGG;IACH,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;IAE9C;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC,0BAA0B,EAAE,eAAe,CAAC,CAAC;IAE3D;;OAEG;IACH,QAAQ,CAAC,EAAE,4BAA4B,CAAC;IAExC;;;OAGG;IACH,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IAEvC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;IAE7C;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,QAAQ,EAAE,oBAAoB,CAAC;IAE/B;;OAEG;IACH,IAAI,EAAE,wBAAwB,CAAC;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,GAAE,0BAA+B,GACvC,iCAAiC,CA6EnC;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,GAAE;IACP,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,cAAc,CAAC;CACpB,GACL,yBAAyB,CAiB3B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { type SkillContent } from '../common/interfaces';
|
|
2
|
+
import { type SkillMetadata } from '../common/metadata';
|
|
3
3
|
/**
|
|
4
4
|
* Options for searching skills.
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-storage.interface.d.ts","sourceRoot":"","sources":["../../src/skill/skill-storage.interface.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"skill-storage.interface.d.ts","sourceRoot":"","sources":["../../src/skill/skill-storage.interface.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,CAAC;IAE3C;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAE3B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAC;IAExB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,EAAE,aAAa,EAAE,CAAC;IAExB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAElG;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAC;IAExC;;;OAGG;IACH,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5B;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAElF;;;;;OAKG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;IAEvD;;;;;OAKG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAE3D;;;;;OAKG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE1C;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,aAAa,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE/E;;;OAGG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA4B,SAAQ,oBAAoB;IACvE;;;;OAIG;IACH,GAAG,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExC;;;;;OAKG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5D;;;;OAIG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvC;;OAEG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB"}
|
package/skill/skill.events.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.events.d.ts","sourceRoot":"","sources":["../../src/skill/skill.events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"skill.events.d.ts","sourceRoot":"","sources":["../../src/skill/skill.events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEjG;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC;IAEtB;;OAEG;IACH,WAAW,EAAE,gBAAgB,CAAC;IAE9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,SAAS,UAAU,EAAE,CAAC;IAEhC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IAEzC;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,KAAK,mBAAmB,GAAG,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;AAE7D;;;;;GAKG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,SAAS,CAAkC;IAEnD;;;;;OAKG;IACH,EAAE,CAAC,QAAQ,EAAE,mBAAmB,GAAG,MAAM,IAAI;IAK7C;;;;OAIG;IACH,IAAI,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAMnC;;OAEG;IACH,IAAI,aAAa,IAAI,MAAM,CAE1B;IAED;;OAEG;IACH,KAAK,IAAI,IAAI;CAGd"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { EntryOwnerRef,
|
|
2
|
-
import { SkillContent } from '../common/interfaces';
|
|
3
|
-
import ProviderRegistry from '../provider/provider.registry';
|
|
4
|
-
import { ScopeEntry } from '../common';
|
|
1
|
+
import { SkillEntry, type EntryOwnerRef, type ScopeEntry, type SkillRecord, type SkillToolRef } from '../common';
|
|
2
|
+
import { type SkillContent } from '../common/interfaces';
|
|
3
|
+
import type ProviderRegistry from '../provider/provider.registry';
|
|
5
4
|
/**
|
|
6
5
|
* Concrete implementation of a skill that can be loaded and searched.
|
|
7
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.instance.d.ts","sourceRoot":"","sources":["../../src/skill/skill.instance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skill.instance.d.ts","sourceRoot":"","sources":["../../src/skill/skill.instance.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,UAAU,EAEV,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,YAAY,EAClB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAgBlE;;;;;;;GAOG;AACH,qBAAa,aAAc,SAAQ,UAAU;IAC3C,mDAAmD;IACnD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAmB;IAEhD,uCAAuC;IACvC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAE3B,0CAA0C;IAC1C,OAAO,CAAC,kBAAkB,CAAC,CAAS;IAEpC,0CAA0C;IAC1C,OAAO,CAAC,aAAa,CAAC,CAAqB;IAE3C,+BAA+B;IAC/B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAW;IAEhC,kCAAkC;IAClC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAElC,6CAA6C;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAU;IAEjC,0CAA0C;IAC1C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkB;gBAEtC,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa;cAsBlE,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAO3C;;OAEG;IACM,cAAc,IAAI,MAAM;IAIjC;;;OAGG;IACY,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC;IAuClD;;;OAGG;IACH;;OAEG;IACH,UAAU,IAAI,MAAM,GAAG,SAAS;IAUjB,IAAI,IAAI,OAAO,CAAC,YAAY,CAAC;IAsC5C;;OAEG;IACM,WAAW,IAAI,YAAY,EAAE;IAMtC;;OAEG;IACM,YAAY,IAAI,MAAM,EAAE;IAIjC;;OAEG;IACM,OAAO,IAAI,MAAM,EAAE;IAI5B;;OAEG;IACM,QAAQ,IAAI,OAAO;IAI5B;;OAEG;IACM,WAAW,IAAI,MAAM;IAI9B;;OAEG;IACH,IAAI,SAAS,IAAI,gBAAgB,CAEhC;IAED;;OAEG;IACH,UAAU,IAAI,IAAI;IAKlB;;;;;;OAMG;IACH,cAAc,IAAI,YAAY,GAAG,SAAS;CAa3C;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,gBAAgB,EAC3B,KAAK,EAAE,aAAa,GACnB,aAAa,CAEf;AAoFD;;;GAGG;AACH,wBAAsB,2BAA2B,CAC/C,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAC7D,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAW7B"}
|