@frontmcp/sdk 1.11.0 → 1.11.1-rc.1

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.
Files changed (131) hide show
  1. package/browser/common/entries/scope.entry.mjs +16 -0
  2. package/browser/common/metadata/plugin.metadata.mjs +2 -1
  3. package/browser/common/schemas/http-output.schema.mjs +12 -1
  4. package/browser/common/tokens/plugin.tokens.mjs +2 -1
  5. package/browser/common/types/options/skills-http/schema.mjs +13 -0
  6. package/browser/direct/direct-client.mjs +8 -0
  7. package/browser/direct/token-auth-info.mjs +31 -0
  8. package/browser/errors/http-route.errors.mjs +9 -0
  9. package/browser/errors/index.mjs +3 -1
  10. package/browser/errors/misconfiguration.mjs +2 -1
  11. package/browser/errors/plugin.errors.mjs +10 -0
  12. package/browser/front-mcp/front-mcp.mjs +6 -2
  13. package/browser/health/health.service.mjs +4 -0
  14. package/browser/http-route/flows/http.route.flow.mjs +47 -19
  15. package/browser/index.cjs +1404 -835
  16. package/browser/index.mjs +12 -2
  17. package/browser/job/enclave/browser-enclave-core.mjs +9 -0
  18. package/browser/job/enclave/job-enclave.bridge.mjs +3 -20
  19. package/browser/plugin/plugin.registry.mjs +17 -1
  20. package/browser/resource/flows/resources-list.flow.mjs +31 -1
  21. package/browser/scope/scope.instance.mjs +6 -4
  22. package/browser/server/server.validation.mjs +3 -6
  23. package/browser/skill/decision/decisions-api.decider.mjs +62 -0
  24. package/browser/skill/decision/skill-decision.ranker.mjs +96 -0
  25. package/browser/skill/flows/load-skill.flow.mjs +15 -10
  26. package/browser/skill/index.mjs +4 -0
  27. package/browser/skill/providers/memory-skill.provider.mjs +41 -135
  28. package/browser/skill/sep-2640/resources/skill-md.resource.mjs +3 -3
  29. package/browser/skill/sep-2640/sep-2640.builders.mjs +24 -2
  30. package/browser/skill/sep-2640/sep-2640.per-skill.mjs +3 -4
  31. package/browser/skill/sep-2640/sep-2640.resource-helpers.mjs +10 -1
  32. package/browser/skill/skill-catalog-source.mjs +23 -0
  33. package/browser/skill/skill-instructions.helper.mjs +23 -5
  34. package/browser/skill/skill-search-text.mjs +166 -0
  35. package/browser/skill/skill.registry.mjs +58 -3
  36. package/browser/subsystems.mjs +14 -1
  37. package/browser/transport/mcp-handlers/skills-mcp.types.mjs +5 -3
  38. package/browser/transport/relay/relay-http.mjs +2 -1
  39. package/browser/transport/web-response.renderer.mjs +6 -2
  40. package/browser/utils/http-location.utils.mjs +8 -0
  41. package/common/decorators/tool.decorator.d.ts +2 -1
  42. package/common/decorators/tool.decorator.d.ts.map +1 -1
  43. package/common/entries/scope.entry.d.ts +8 -0
  44. package/common/entries/scope.entry.d.ts.map +1 -1
  45. package/common/interfaces/skill.interface.d.ts +5 -0
  46. package/common/interfaces/skill.interface.d.ts.map +1 -1
  47. package/common/metadata/front-mcp.metadata.d.ts +90 -0
  48. package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
  49. package/common/metadata/plugin.metadata.d.ts +8 -0
  50. package/common/metadata/plugin.metadata.d.ts.map +1 -1
  51. package/common/schemas/http-output.schema.d.ts.map +1 -1
  52. package/common/tokens/plugin.tokens.d.ts +1 -0
  53. package/common/tokens/plugin.tokens.d.ts.map +1 -1
  54. package/common/types/options/skills-http/interfaces.d.ts +16 -0
  55. package/common/types/options/skills-http/interfaces.d.ts.map +1 -1
  56. package/common/types/options/skills-http/schema.d.ts +11 -0
  57. package/common/types/options/skills-http/schema.d.ts.map +1 -1
  58. package/direct/client.types.d.ts +27 -8
  59. package/direct/client.types.d.ts.map +1 -1
  60. package/direct/create.types.d.ts +6 -1
  61. package/direct/create.types.d.ts.map +1 -1
  62. package/direct/token-auth-info.d.ts +5 -0
  63. package/direct/token-auth-info.d.ts.map +1 -0
  64. package/errors/http-route.errors.d.ts +4 -0
  65. package/errors/http-route.errors.d.ts.map +1 -1
  66. package/errors/index.d.ts +1 -1
  67. package/errors/index.d.ts.map +1 -1
  68. package/errors/misconfiguration.d.ts.map +1 -1
  69. package/errors/plugin.errors.d.ts +4 -0
  70. package/errors/plugin.errors.d.ts.map +1 -1
  71. package/esm/index.mjs +30 -22
  72. package/front-mcp/front-mcp.d.ts +3 -0
  73. package/front-mcp/front-mcp.d.ts.map +1 -1
  74. package/health/health.service.d.ts +4 -1
  75. package/health/health.service.d.ts.map +1 -1
  76. package/http-route/flows/http.route.flow.d.ts +6 -0
  77. package/http-route/flows/http.route.flow.d.ts.map +1 -1
  78. package/index.d.ts +9 -9
  79. package/index.d.ts.map +1 -1
  80. package/index.js +43 -35
  81. package/job/enclave/browser-enclave-core.d.ts +3 -0
  82. package/job/enclave/browser-enclave-core.d.ts.map +1 -0
  83. package/job/enclave/enclave-core.d.ts +3 -0
  84. package/job/enclave/enclave-core.d.ts.map +1 -0
  85. package/job/enclave/job-enclave.bridge.d.ts +1 -9
  86. package/job/enclave/job-enclave.bridge.d.ts.map +1 -1
  87. package/package.json +16 -11
  88. package/plugin/plugin.registry.d.ts +2 -0
  89. package/plugin/plugin.registry.d.ts.map +1 -1
  90. package/resource/flows/resources-list.flow.d.ts +3 -1
  91. package/resource/flows/resources-list.flow.d.ts.map +1 -1
  92. package/scope/scope.instance.d.ts.map +1 -1
  93. package/server/server.validation.d.ts.map +1 -1
  94. package/skill/decision/decisions-api.decider.d.ts +26 -0
  95. package/skill/decision/decisions-api.decider.d.ts.map +1 -0
  96. package/skill/decision/index.d.ts +4 -0
  97. package/skill/decision/index.d.ts.map +1 -0
  98. package/skill/decision/skill-decision.ranker.d.ts +28 -0
  99. package/skill/decision/skill-decision.ranker.d.ts.map +1 -0
  100. package/skill/decision/skill-decision.types.d.ts +63 -0
  101. package/skill/decision/skill-decision.types.d.ts.map +1 -0
  102. package/skill/flows/load-skill.flow.d.ts +6 -4
  103. package/skill/flows/load-skill.flow.d.ts.map +1 -1
  104. package/skill/index.d.ts +5 -0
  105. package/skill/index.d.ts.map +1 -1
  106. package/skill/providers/memory-skill.provider.d.ts +10 -12
  107. package/skill/providers/memory-skill.provider.d.ts.map +1 -1
  108. package/skill/sep-2640/sep-2640.builders.d.ts +7 -2
  109. package/skill/sep-2640/sep-2640.builders.d.ts.map +1 -1
  110. package/skill/sep-2640/sep-2640.per-skill.d.ts.map +1 -1
  111. package/skill/sep-2640/sep-2640.resource-helpers.d.ts +5 -0
  112. package/skill/sep-2640/sep-2640.resource-helpers.d.ts.map +1 -1
  113. package/skill/skill-catalog-source.d.ts +47 -0
  114. package/skill/skill-catalog-source.d.ts.map +1 -0
  115. package/skill/skill-instructions.helper.d.ts +10 -0
  116. package/skill/skill-instructions.helper.d.ts.map +1 -1
  117. package/skill/skill-search-text.d.ts +60 -0
  118. package/skill/skill-search-text.d.ts.map +1 -0
  119. package/skill/skill-storage.interface.d.ts +5 -0
  120. package/skill/skill-storage.interface.d.ts.map +1 -1
  121. package/skill/skill.registry.d.ts +20 -0
  122. package/skill/skill.registry.d.ts.map +1 -1
  123. package/subsystems.d.ts +1 -1
  124. package/subsystems.d.ts.map +1 -1
  125. package/transport/mcp-handlers/index.d.ts +1 -1
  126. package/transport/mcp-handlers/skills-mcp.types.d.ts +3 -2
  127. package/transport/mcp-handlers/skills-mcp.types.d.ts.map +1 -1
  128. package/transport/relay/relay-http.d.ts.map +1 -1
  129. package/transport/web-response.renderer.d.ts.map +1 -1
  130. package/utils/http-location.utils.d.ts +8 -0
  131. package/utils/http-location.utils.d.ts.map +1 -0
package/browser/index.mjs CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  resourceStore,
27
27
  ResourceStore
28
28
  } from "./resource/materialized/index.mjs";
29
- export { AgentCallDepthExceededError, AgentConfigKeyNotFoundError, AgentConfigurationError, AgentExecutionError, AgentLlmError, AgentLoopExceededError, AgentMethodNotAvailableError, AgentNotConfiguredError, AgentNotFoundError, AgentTimeoutError, AgentToolExecutionError, AgentToolNotFoundError, AgentVisibilityError, AuthConfigurationError, AuthProvidersNotConfiguredError, AuthorizationRequiredError, BrowserEntryPointUnavailableError, BrowserStoreUnavailableError, CallRecorderConfigurationError, ConfigNotFoundError, ContextExtensionNotAvailableError, CredentialProviderAlreadyRegisteredError, CrossOriginRequestError, DependencyCycleError, DependencyNotFoundError, DuplicateAppIdError, DutyNameConflictError, DynamicAdapterNameError, DynamicJobDirectExecutionError, ElicitationDisabledError, ElicitationEncryptionError, ElicitationFallbackRequired, ElicitationNotOwnedError, ElicitationNotSupportedError, ElicitationSecretRequiredError, ElicitationStoreNotInitializedError, ElicitationSubscriptionError, ElicitationTimeoutError, EnclaveExecutionError, EncryptionContextNotSetError, EncryptionKeyNotConfiguredError, EntryUnavailableError, EntryValidationError, ErrorHandler, EsmCacheError, EsmInvalidSpecifierError, EsmManifestInvalidError, EsmPackageLoadError, EsmRegistryAuthError, EsmVersionResolutionError, ExternalEntryError, ExternalEntryLoadError, ExternalEntryNotFoundError, ExternalEntryNotSupportedError, FeatureOffError, FlowExitedWithoutOutputError, FlowInputMissingError, FlowNotRegisteredError, GenericServerError, GlobalConfigNotFoundError, GuardLimitMcpError, HaConfigurationError, HookOrderCycleError, HookTargetNotDefinedError, InMemoryStoreRequiredError, InputRequiredSignal, InternalMcpError, InvalidDecoratorMetadataError, InvalidDependencyScopeError, InvalidEntityError, InvalidFileSignalError, InvalidHookFlowError, InvalidHttpRouteError, InvalidInputError, InvalidInstructionSourceError, InvalidMethodError, InvalidOffloadCallError, InvalidOutputError, InvalidPeopleAuthOptionsError, InvalidPluginScopeError, InvalidRegistryKindError, InvalidResourceStoreError, InvalidResourceUriError, InvalidRetryOptionsError, InvalidSharedServerOptionsError, InvalidSkillError, InvalidTransportSessionError, InvalidUseClassError, InvalidUseFactoryError, InvalidUseValueError, InvokeStateMissingKeyError, JwtSecretRequiredError, JwtSecretWeakError, LazyAppConfigurationError, LazyAppLoadError, MCP_ERROR_CODES, McpError, MethodNotImplementedError, MissingClientCapabilityError, MissingPromptArgumentError, MissingProvideError, NameDisambiguationError, NoProviderIdError, OffloadAbortedError, OffloadBudgetExceededError, OffloadNotCloneableError, OffloadUnsupportedRuntimeError, OffloadWorkerError, OrchestratedAuthNotAvailableError, OrchestratorJwksNotAvailableError, PayloadTooLargeError, PersonNotSignedInError, PluginDependencyError, PromptExecutionError, PromptNotFoundError, ProviderBootstrapError, ProviderConstructionError, ProviderDependencyError, ProviderNotAvailableError, ProviderNotInstantiatedError, ProviderNotRegisteredError, ProviderScopeMismatchError, ProviderScopedAccessError, PublicAccessDeniedError, PublicMcpError, QuotaExceededError, RateLimitError, RegistryDefinitionNotFoundError, RegistryDependencyNotRegisteredError, RegistryGraphEntryNotFoundError, RegistryNotInitializedError, RemoteAuthError, RemoteAuthorizationError, RemoteCapabilityDiscoveryError, RemoteCapabilityNotSupportedError, RemoteConfigurationError, RemoteConnectionError, RemoteDisconnectError, RemoteNotConnectedError, RemotePromptGetError, RemotePromptNotFoundError, RemoteResourceNotFoundError, RemoteResourceReadError, RemoteTimeoutError, RemoteToolExecutionError, RemoteToolNotFoundError, RemoteTransportError, RemoteUnsupportedTransportError, RequestContextNotAvailableError, RequiredConfigUndefinedError, ReservedAppIdError, ResourceNotFoundError, ResourceReadError, SamplingNotAvailableError, ScopeConfigurationError, ScopeDeniedError, ServerNotFoundError, ServerlessHandlerNotInitializedError, SessionClaimConflictError, SessionIdEmptyError, SessionIdentityRequiredError, SessionMissingError, SessionOwnerUnreachableError, SessionSecretRequiredError, SessionVerificationFailedError, SharedServerIdentityError, SharedServerStartError, SignInLockedError, SignInRefusedError, SkillContextNotImplementedError, SkillInstructionFetchError, SkillSessionError, SocketInUseError, SocketPathConflictError, SocketPermissionError, StaleToolListError, StoreNotOpenedInBuildError, TaskAlreadyTerminalError, TaskAugmentationNotSupportedError, TaskAugmentationRequiredError, TaskConcurrencyLimitError, TaskNotFoundError, TaskStoreNotInitializedError, TokenLeakDetectedError, TokenNotAvailableError, TokenStoreRequiredError, ToolAliasConflictError, ToolCallError, ToolCredentialsRequiredError, ToolExecutionError, ToolNameConflictError, ToolNotConsentedError, ToolNotFoundError, TransportAlreadyStartedError, TransportBusRequiredError, TransportNotConnectedError, TransportServiceNotAvailableError, UnauthorizedError, UnsafeDutyStoreError, UnsafeSharedServerDirectoryError, UnsafeSocketDirectoryError, UnsupportedClientVersionError, UnsupportedContentTypeError, UnsupportedHookOwnerKindError, UnsupportedTransportTypeError, VaultLoadError, VaultNotFoundError, VercelKvAsyncInitRequiredError, VercelKvNotSupportedError, WorkflowDagValidationError, WorkflowJobTimeoutError, WorkflowStepNotFoundError, WorkflowTimeoutError, authorizationRequiredDataSchema, authorizationRequiredMetaSchema, authorizationRequiredParamsSchema, createErrorHandler, describeConfigIssues, extractPublicMessage, formatMcpErrorResponse, isClientFacingError, isMrtrSignal, isPublicError, refused, shouldStopExecution, toMcpError, DynamicJobRegistrationDisabledError, JobAdmissionTimeoutError, JobCancelledError, JobInterruptedError, JobNotAuthorizedError, JobRunFinishedError, JobRunNotCancellableError, JobRunNotFoundError, JobRunnerBootError, JobRunnerUnavailableError, JobStoreNotSupportedError, JobTimeoutError, UnenforcedMetadataError } from "./errors/index.mjs";
29
+ export { AgentCallDepthExceededError, AgentConfigKeyNotFoundError, AgentConfigurationError, AgentExecutionError, AgentLlmError, AgentLoopExceededError, AgentMethodNotAvailableError, AgentNotConfiguredError, AgentNotFoundError, AgentTimeoutError, AgentToolExecutionError, AgentToolNotFoundError, AgentVisibilityError, AuthConfigurationError, AuthProvidersNotConfiguredError, AuthorizationRequiredError, BrowserEntryPointUnavailableError, BrowserStoreUnavailableError, CallRecorderConfigurationError, ConfigNotFoundError, ContextExtensionNotAvailableError, CredentialProviderAlreadyRegisteredError, CrossOriginRequestError, DependencyCycleError, DependencyNotFoundError, DuplicateAppIdError, DutyNameConflictError, DynamicAdapterNameError, DynamicJobDirectExecutionError, ElicitationDisabledError, ElicitationEncryptionError, ElicitationFallbackRequired, ElicitationNotOwnedError, ElicitationNotSupportedError, ElicitationSecretRequiredError, ElicitationStoreNotInitializedError, ElicitationSubscriptionError, ElicitationTimeoutError, EnclaveExecutionError, EncryptionContextNotSetError, EncryptionKeyNotConfiguredError, EntryUnavailableError, EntryValidationError, ErrorHandler, EsmCacheError, EsmInvalidSpecifierError, EsmManifestInvalidError, EsmPackageLoadError, EsmRegistryAuthError, EsmVersionResolutionError, ExternalEntryError, ExternalEntryLoadError, ExternalEntryNotFoundError, ExternalEntryNotSupportedError, FeatureOffError, FlowExitedWithoutOutputError, FlowInputMissingError, FlowNotRegisteredError, GenericServerError, GlobalConfigNotFoundError, GuardLimitMcpError, HaConfigurationError, HookOrderCycleError, HookTargetNotDefinedError, InMemoryStoreRequiredError, InputRequiredSignal, InternalMcpError, InvalidDecoratorMetadataError, InvalidDependencyScopeError, InvalidEntityError, InvalidFileSignalError, InvalidHookFlowError, InvalidHttpRouteError, InvalidHttpRouteResponseError, InvalidInputError, InvalidInstructionSourceError, InvalidMethodError, InvalidOffloadCallError, InvalidOutputError, InvalidPeopleAuthOptionsError, InvalidPluginScopeError, InvalidRegistryKindError, InvalidResourceStoreError, InvalidResourceUriError, InvalidRetryOptionsError, InvalidSharedServerOptionsError, InvalidSkillError, InvalidTransportSessionError, InvalidUseClassError, InvalidUseFactoryError, InvalidUseValueError, InvokeStateMissingKeyError, JwtSecretRequiredError, JwtSecretWeakError, LazyAppConfigurationError, LazyAppLoadError, MCP_ERROR_CODES, McpError, MethodNotImplementedError, MissingClientCapabilityError, MissingPromptArgumentError, MissingProvideError, NameDisambiguationError, NoProviderIdError, OffloadAbortedError, OffloadBudgetExceededError, OffloadNotCloneableError, OffloadUnsupportedRuntimeError, OffloadWorkerError, OrchestratedAuthNotAvailableError, OrchestratorJwksNotAvailableError, PayloadTooLargeError, PersonNotSignedInError, PluginDependencyError, PromptExecutionError, PromptNotFoundError, ProviderBootstrapError, ProviderConstructionError, ProviderDependencyError, ProviderNotAvailableError, ProviderNotInstantiatedError, ProviderNotRegisteredError, ProviderScopeMismatchError, ProviderScopedAccessError, PublicAccessDeniedError, PublicMcpError, QuotaExceededError, RateLimitError, RegistryDefinitionNotFoundError, RegistryDependencyNotRegisteredError, RegistryGraphEntryNotFoundError, RegistryNotInitializedError, RemoteAuthError, RemoteAuthorizationError, RemoteCapabilityDiscoveryError, RemoteCapabilityNotSupportedError, RemoteConfigurationError, RemoteConnectionError, RemoteDisconnectError, RemoteNotConnectedError, RemotePromptGetError, RemotePromptNotFoundError, RemoteResourceNotFoundError, RemoteResourceReadError, RemoteTimeoutError, RemoteToolExecutionError, RemoteToolNotFoundError, RemoteTransportError, RemoteUnsupportedTransportError, RequestContextNotAvailableError, RequiredConfigUndefinedError, ReservedAppIdError, ResourceNotFoundError, ResourceReadError, SamplingNotAvailableError, ScopeConfigurationError, ScopeDeniedError, ServerNotFoundError, ServerlessHandlerNotInitializedError, SessionClaimConflictError, SessionIdEmptyError, SessionIdentityRequiredError, SessionMissingError, SessionOwnerUnreachableError, SessionSecretRequiredError, SessionVerificationFailedError, SharedServerIdentityError, SharedServerStartError, SignInLockedError, SignInRefusedError, SkillContextNotImplementedError, SkillInstructionFetchError, SkillSessionError, SocketInUseError, SocketPathConflictError, SocketPermissionError, StaleToolListError, StoreNotOpenedInBuildError, TaskAlreadyTerminalError, TaskAugmentationNotSupportedError, TaskAugmentationRequiredError, TaskConcurrencyLimitError, TaskNotFoundError, TaskStoreNotInitializedError, TokenLeakDetectedError, TokenNotAvailableError, TokenStoreRequiredError, ToolAliasConflictError, ToolCallError, ToolCredentialsRequiredError, ToolExecutionError, ToolNameConflictError, ToolNotConsentedError, ToolNotFoundError, TransportAlreadyStartedError, TransportBusRequiredError, TransportNotConnectedError, TransportServiceNotAvailableError, UnauthorizedError, UnsafeDutyStoreError, UnsafeSharedServerDirectoryError, UnsafeSocketDirectoryError, UnsupportedClientVersionError, UnsupportedContentTypeError, UnsupportedHookOwnerKindError, UnsupportedTransportTypeError, VaultLoadError, VaultNotFoundError, VercelKvAsyncInitRequiredError, VercelKvNotSupportedError, WorkflowDagValidationError, WorkflowJobTimeoutError, WorkflowStepNotFoundError, WorkflowTimeoutError, authorizationRequiredDataSchema, authorizationRequiredMetaSchema, authorizationRequiredParamsSchema, createErrorHandler, describeConfigIssues, extractPublicMessage, formatMcpErrorResponse, isClientFacingError, isMrtrSignal, isPublicError, refused, shouldStopExecution, toMcpError, DynamicJobRegistrationDisabledError, JobAdmissionTimeoutError, JobCancelledError, JobInterruptedError, JobNotAuthorizedError, JobRunFinishedError, JobRunNotCancellableError, JobRunNotFoundError, JobRunnerBootError, JobRunnerUnavailableError, JobStoreNotSupportedError, JobTimeoutError, DuplicatePluginError, UnenforcedMetadataError } from "./errors/index.mjs";
30
30
  import {
31
31
  addHookObserver,
32
32
  HOOK_OBSERVER_KEY,
@@ -152,8 +152,11 @@ import {
152
152
  JobInstance,
153
153
  JobPermissionGuard,
154
154
  JobExecutionManager,
155
+ JobAdmission,
155
156
  JobEmitter,
156
- JobRunResource
157
+ JobRunResource,
158
+ jobRunUri,
159
+ mayAccessRun
157
160
  } from "./subsystems.mjs";
158
161
  import { JOB_WORKER_MARKER } from "./front-mcp/detached-job.flag.mjs";
159
162
  import {
@@ -206,6 +209,8 @@ import {
206
209
  composeInitializeInstructions,
207
210
  composeCallerInstructions,
208
211
  buildChannelInstructions,
212
+ SkillCatalogSourceToken,
213
+ decisionsApiDecider,
209
214
  setSkillAuditFactory,
210
215
  hasSkillAuditFactory,
211
216
  filterServableSkills,
@@ -392,6 +397,7 @@ export {
392
397
  HttpRouteHook,
393
398
  InMemoryOrchestratedTokenStore,
394
399
  JOB_WORKER_MARKER,
400
+ JobAdmission,
395
401
  JobEmitter,
396
402
  JobExecutionManager,
397
403
  JobHook,
@@ -442,6 +448,7 @@ export {
442
448
  SSEServerTransport,
443
449
  STATELESS_SESSION_ID,
444
450
  SURFACE_META_KEY,
451
+ SkillCatalogSourceToken,
445
452
  SkillEmitter,
446
453
  SkillHttpAuthValidator,
447
454
  SkillInstance,
@@ -541,6 +548,7 @@ export {
541
548
  createSkillInstance,
542
549
  createSkillStorageProvider,
543
550
  createWebFetchHandler,
551
+ decisionsApiDecider,
544
552
  deepMerge,
545
553
  default3 as default,
546
554
  detectPlatform,
@@ -580,6 +588,7 @@ export {
580
588
  isTransientError,
581
589
  isValidRange,
582
590
  isValidVersion,
591
+ jobRunUri,
583
592
  lazyZ,
584
593
  lintServerManifest,
585
594
  loadConfig,
@@ -587,6 +596,7 @@ export {
587
596
  loadSkillDirectory,
588
597
  mapEnvToNestedConfig,
589
598
  maxSatisfying,
599
+ mayAccessRun,
590
600
  negotiateRemoteProtocol,
591
601
  normalizeEsmExport,
592
602
  normalizeNameForEnv,
@@ -0,0 +1,9 @@
1
+ // libs/sdk/src/job/enclave/browser-enclave-core.ts
2
+ var importEnclaveCore = async () => {
3
+ throw new Error(
4
+ "Dynamic jobs need Node.js: @enclave-vm/core, the sandbox they run in, does not run in a browser or a Worker"
5
+ );
6
+ };
7
+ export {
8
+ importEnclaveCore
9
+ };
@@ -1,7 +1,5 @@
1
- var __frontmcpModule = typeof process !== "undefined" && typeof process.getBuiltinModule === "function" ? process.getBuiltinModule("module") : undefined;
2
- const require = __frontmcpModule ? __frontmcpModule.createRequire(import.meta.url || 'file:///') : undefined;
3
- // __frontmcpCreateRequire
4
1
  // libs/sdk/src/job/enclave/job-enclave.bridge.ts
2
+ import { importEnclaveCore } from "./browser-enclave-core.mjs";
5
3
  import { EnclaveExecutionError } from "../../errors/index.mjs";
6
4
  function toSandboxValue(value) {
7
5
  try {
@@ -21,25 +19,10 @@ var JobEnclaveBridge = class {
21
19
  maxIterations: options.maxIterations ?? 1e3
22
20
  };
23
21
  }
24
- /**
25
- * Lazy-load @enclave-vm/core.
26
- *
27
- * Uses a dynamic `import()` (not `require`) so the SDK's ESM build stays
28
- * runtime-agnostic and the bundler can treat the enclave sandbox as a lazy
29
- * optional dependency, matching the rest of the codebase. The full
30
- * `@enclave-vm/core` is Node-only (it pulls in the `worker_threads`/`node:vm`
31
- * adapters); the isolate-safe interpreter lives behind `@enclave-vm/core/worker`.
32
- */
22
+ /** Lazy-load @enclave-vm/core through `#enclave-core`, a stub in the browser and worker builds: its sandbox is Node-only. */
33
23
  async getEnclaveCore() {
34
24
  if (!this.enclaveCore) {
35
- let mod;
36
- try {
37
- mod = await import("@enclave-vm/core");
38
- } catch {
39
- throw new Error(
40
- "Missing optional dependency: dynamic jobs require @enclave-vm/core. Install it with: npm install @enclave-vm/core"
41
- );
42
- }
25
+ const mod = await importEnclaveCore();
43
26
  const core = typeof mod?.Sandbox === "function" ? mod : mod?.default;
44
27
  if (!core || typeof core.Sandbox !== "function") {
45
28
  throw new Error(
@@ -11,7 +11,12 @@ import {
11
11
  import { initOptionsOf } from "../common/dynamic/dynamic.plugin.mjs";
12
12
  import { collectDynamicProviders, collectDynamicTools, dedupePluginProviders } from "../common/dynamic/dynamic.utils.mjs";
13
13
  import { installContextExtensions } from "../context/context-extension.mjs";
14
- import { InvalidPluginScopeError, InvalidRegistryKindError, RegistryDependencyNotRegisteredError } from "../errors/index.mjs";
14
+ import {
15
+ DuplicatePluginError,
16
+ InvalidPluginScopeError,
17
+ InvalidRegistryKindError,
18
+ RegistryDependencyNotRegisteredError
19
+ } from "../errors/index.mjs";
15
20
  import { normalizeHooksFromCls, normalizeHooksFromProviders } from "../hooks/hooks.utils.mjs";
16
21
  import PromptRegistry from "../prompt/prompt.registry.mjs";
17
22
  import ProviderRegistry from "../provider/provider.registry.mjs";
@@ -23,6 +28,7 @@ import SkillRegistry from "../skill/skill.registry.mjs";
23
28
  import ToolRegistry from "../tool/tool.registry.mjs";
24
29
  import { normalizePlugin, pluginDiscoveryDeps } from "./plugin.utils.mjs";
25
30
  var installedPluginValues = /* @__PURE__ */ new WeakSet();
31
+ var oncePerServerPlugins = /* @__PURE__ */ new WeakMap();
26
32
  function instantiateClassPlugin(klass, depsInstances, recordProviders) {
27
33
  if (!isConfiguredByOptions(klass)) {
28
34
  return { pluginInstance: new klass(...depsInstances), dynamicProviders: recordProviders, dynamicTools: [] };
@@ -94,6 +100,7 @@ var PluginRegistry = class _PluginRegistry extends RegistryAbstract {
94
100
  const graph = /* @__PURE__ */ new Map();
95
101
  for (const raw of list) {
96
102
  const rec = normalizePlugin(raw);
103
+ this.claimOncePerServer(rec.metadata);
97
104
  const provide = rec.provide;
98
105
  tokens.add(provide);
99
106
  defs.set(provide, rec);
@@ -101,6 +108,15 @@ var PluginRegistry = class _PluginRegistry extends RegistryAbstract {
101
108
  }
102
109
  return { tokens, defs, graph };
103
110
  }
111
+ /** Refuses a second install in this server of a plugin that can be installed once per server. */
112
+ claimOncePerServer({ name, oncePerServer }) {
113
+ if (oncePerServer === void 0) return;
114
+ const scope = this.providers.getActiveScope();
115
+ const installed = oncePerServerPlugins.get(scope) ?? /* @__PURE__ */ new Set();
116
+ if (installed.has(name)) throw new DuplicatePluginError(name, oncePerServer);
117
+ installed.add(name);
118
+ oncePerServerPlugins.set(scope, installed);
119
+ }
104
120
  buildGraph() {
105
121
  for (const token of this.tokens) {
106
122
  const rec = this.defs.get(token);
@@ -23,6 +23,8 @@ import { ListResourcesRequestSchema, ListResourcesResultSchema } from "@frontmcp
23
23
  import { annotationsForClient, callerClientProfile } from "../../answer/index.mjs";
24
24
  import { callSurfaceOf, isOfferedOnSurface } from "../../common/availability/index.mjs";
25
25
  import { InvalidInputError, InvalidMethodError } from "../../errors/index.mjs";
26
+ import { SEP_2640_META_NAMESPACE } from "../../skill/sep-2640/sep-2640.constants.mjs";
27
+ import { filterServableSkills } from "../../skill/skill-filter.helper.mjs";
26
28
  import { enabledItems, SURFACE_META_KEY, surfaceHash } from "../../surface/index.mjs";
27
29
  var inputSchema = z.object({
28
30
  request: ListResourcesRequestSchema,
@@ -47,7 +49,7 @@ var stateSchema = z.object({
47
49
  });
48
50
  var plan = {
49
51
  pre: ["parseInput", "ensureRemoteCapabilities"],
50
- execute: ["findResources", "filterByEnabled", "filterByAuthorities", "resolveConflicts"],
52
+ execute: ["findResources", "filterByEnabled", "filterByAuthorities", "filterSkillResources", "resolveConflicts"],
51
53
  post: ["parseResources"]
52
54
  };
53
55
  var name = "resources:list-resources";
@@ -168,6 +170,31 @@ var ResourcesListFlow = class extends FlowBase {
168
170
  );
169
171
  this.logger.verbose("filterByAuthorities:done");
170
172
  }
173
+ async filterSkillResources() {
174
+ const { resources } = this.state.required;
175
+ const skillRegistry = this.scope.skills;
176
+ if (!skillRegistry?.hasAny()) return;
177
+ const skillsByPath = /* @__PURE__ */ new Map();
178
+ for (const skill of skillRegistry.getSkills({ visibility: "mcp" })) {
179
+ if (!skillsByPath.has(skill.getSkillPath())) skillsByPath.set(skill.getSkillPath(), skill);
180
+ }
181
+ const skillOfResource = /* @__PURE__ */ new Map();
182
+ for (const item of resources) {
183
+ const skillPath = item.resource.metadata._meta?.[`${SEP_2640_META_NAMESPACE}path`];
184
+ if (typeof skillPath === "string") skillOfResource.set(item, skillsByPath.get(skillPath));
185
+ }
186
+ if (skillOfResource.size === 0) return;
187
+ const listedSkills = [...skillOfResource.values()].filter((skill) => skill !== void 0);
188
+ const ctx = this.rawInput?.ctx;
189
+ const servableSkills = new Set(await filterServableSkills(this.scope, listedSkills, ctx));
190
+ this.state.set(
191
+ "resources",
192
+ resources.filter((item) => {
193
+ const skill = skillOfResource.get(item);
194
+ return skill === void 0 || servableSkills.has(skill);
195
+ })
196
+ );
197
+ }
171
198
  async resolveConflicts() {
172
199
  this.logger.verbose("resolveConflicts:start");
173
200
  try {
@@ -270,6 +297,9 @@ __decorateClass([
270
297
  __decorateClass([
271
298
  Stage("filterByAuthorities")
272
299
  ], ResourcesListFlow.prototype, "filterByAuthorities", 1);
300
+ __decorateClass([
301
+ Stage("filterSkillResources")
302
+ ], ResourcesListFlow.prototype, "filterSkillResources", 1);
273
303
  __decorateClass([
274
304
  Stage("resolveConflicts")
275
305
  ], ResourcesListFlow.prototype, "resolveConflicts", 1);
@@ -271,13 +271,14 @@ var Scope = class _Scope extends ScopeEntry {
271
271
  autoEnabled: !transportConfig?.eventStore && isDistributed
272
272
  });
273
273
  }
274
- const elicitationEnabled = this.metadata.elicitation?.enabled === true && !this.cliMode;
275
- const elicitationPromise = elicitationEnabled ? (async () => {
274
+ const elicitationConfigured = this.metadata.elicitation?.enabled === true;
275
+ const elicitationEnabled = elicitationConfigured && !this.cliMode;
276
+ const elicitationPromise = elicitationConfigured ? (async () => {
276
277
  const inheritedRedis = this.metadata.elicitation?.redis ?? this.metadata.redis;
277
- const elicitationInMemory = this.metadata.elicitation?.store === false;
278
+ const elicitationInMemory = this.cliMode || this.metadata.elicitation?.store === false;
278
279
  const elicitationRedis = elicitationInMemory ? void 0 : inheritedRedis;
279
280
  const elicitationSqlite = elicitationInMemory || elicitationRedis ? void 0 : resolvedTopLevelSqlite;
280
- const persistent = this.metadata.elicitation?.persistent;
281
+ const persistent = this.cliMode ? void 0 : this.metadata.elicitation?.persistent;
281
282
  const questionsHelper = persistent ? await import("../elicitation/questions/question-scope.helper.mjs") : void 0;
282
283
  const onEdgeRuntime2 = isEdgeRuntime();
283
284
  const questionsStorage = questionsHelper?.persistentQuestionsSettings(persistent, onEdgeRuntime2).storage;
@@ -486,6 +487,7 @@ var Scope = class _Scope extends ScopeEntry {
486
487
  const skillsConfig = this.metadata.skillsConfig;
487
488
  this.scopeSkills = new SkillRegistry(this.scopeProviders, this.metadata.skills ?? [], scopeRef, {
488
489
  ...skillsConfig?.scoring ? { scoring: skillsConfig.scoring } : {},
490
+ ...skillsConfig?.decision ? { decision: skillsConfig.decision } : {},
489
491
  ...skillsConfig?.failOnInvalidSkills !== void 0 && { failOnInvalidSkills: skillsConfig.failOnInvalidSkills }
490
492
  });
491
493
  await Promise.all([
@@ -1,6 +1,7 @@
1
1
  // libs/sdk/src/server/server.validation.ts
2
2
  import { base64Decode } from "@frontmcp/utils";
3
3
  import { httpOutputSchema, serializeHttpCookie } from "../common/index.mjs";
4
+ import { toLocationHeader } from "../utils/http-location.utils.mjs";
4
5
  function applyHeaders(res, headers) {
5
6
  if (!headers) return;
6
7
  for (const [k, v] of Object.entries(headers)) {
@@ -74,12 +75,8 @@ async function writeHttpResponse(res, value) {
74
75
  }
75
76
  switch (out.kind) {
76
77
  case "redirect": {
77
- res.setHeader("Location", out.location);
78
- if ("redirect" in res && typeof res.redirect === "function") {
79
- res.redirect(out.location);
80
- } else {
81
- res.status(out.status).end();
82
- }
78
+ res.setHeader("Location", toLocationHeader(out.location));
79
+ res.status(out.status).end();
83
80
  return;
84
81
  }
85
82
  case "json": {
@@ -0,0 +1,62 @@
1
+ // libs/sdk/src/skill/decision/decisions-api.decider.ts
2
+ import { sha256Hex } from "@frontmcp/utils";
3
+ var NO_SKILL_CHOICE = "__none__";
4
+ function withoutTrailingSlashes(url) {
5
+ let end = url.length;
6
+ while (end > 0 && url[end - 1] === "/") end--;
7
+ return url.slice(0, end);
8
+ }
9
+ function catalogText(candidates) {
10
+ const lines = candidates.map((c) => {
11
+ const tags = c.tags?.length ? ` [${c.tags.join(", ")}]` : "";
12
+ return `- ${c.id}: ${c.name}: ${c.description}${tags}`;
13
+ });
14
+ return `These are the skills of a server. A skill is a playbook for a kind of task.
15
+
16
+ ${lines.join("\n")}`;
17
+ }
18
+ function decisionsApiDecider(options) {
19
+ const baseUrl = withoutTrailingSlashes(options.baseUrl ?? "https://api.openai.com/v1");
20
+ const model = options.model ?? "gpt-6-luna";
21
+ return async ({ query, notQuery, candidates, signal }) => {
22
+ if (candidates.length === 0) return [];
23
+ const catalog = catalogText(candidates);
24
+ const unwanted = notQuery.length > 0 ? ` The user does not want: ${notQuery.join("; ")}.` : "";
25
+ const doFetch = options.fetch ?? fetch;
26
+ const response = await doFetch(`${baseUrl}/decisions`, {
27
+ method: "POST",
28
+ headers: { "content-type": "application/json", authorization: `Bearer ${options.apiKey}` },
29
+ signal,
30
+ body: JSON.stringify({
31
+ model,
32
+ input: catalog,
33
+ prompt_cache_key: `skills-${sha256Hex(catalog).slice(0, 32)}`,
34
+ questions: [
35
+ {
36
+ type: "choice",
37
+ name: "skill",
38
+ instructions: `Which skill best handles this request: "${query}"?${unwanted}`,
39
+ choices: [
40
+ ...candidates.map((c) => ({ value: c.id, description: c.name })),
41
+ { value: NO_SKILL_CHOICE, description: "None of these skills fits the request." }
42
+ ]
43
+ }
44
+ ]
45
+ })
46
+ });
47
+ if (!response.ok) {
48
+ throw new Error(`the Decisions API answered ${response.status}`);
49
+ }
50
+ const decision = await response.json();
51
+ const answer = decision.answers?.[0];
52
+ if (!answer || answer.type !== "choice" || !Array.isArray(answer.probabilities)) {
53
+ throw new Error(`the Decisions API answered with no choice (${answer?.type ?? "no answer"})`);
54
+ }
55
+ const ids = new Set(candidates.map((c) => c.id));
56
+ return answer.probabilities.filter((p) => typeof p.value === "string" && ids.has(p.value)).map((p) => ({ id: p.value, probability: p.probability }));
57
+ };
58
+ }
59
+ export {
60
+ NO_SKILL_CHOICE,
61
+ decisionsApiDecider
62
+ };
@@ -0,0 +1,96 @@
1
+ // libs/sdk/src/skill/decision/skill-decision.ranker.ts
2
+ import { sha256Hex } from "@frontmcp/utils";
3
+ var MAX_DECISION_CANDIDATES = 254;
4
+ var DEFAULTS = { maxCandidates: 50, minProbability: 0.1, timeoutMs: 5e3, ttlMs: 6e5, maxEntries: 500 };
5
+ function isProbability(value) {
6
+ return typeof value === "number" && Number.isFinite(value) && value >= 0 && value <= 1;
7
+ }
8
+ var SkillDecisionRanker = class {
9
+ constructor(options, logger) {
10
+ this.options = options;
11
+ this.logger = logger;
12
+ this.maxCandidates = Math.min(
13
+ Math.max(options.maxCandidates ?? DEFAULTS.maxCandidates, 1),
14
+ MAX_DECISION_CANDIDATES
15
+ );
16
+ this.minProbability = options.minProbability ?? DEFAULTS.minProbability;
17
+ this.timeoutMs = options.timeoutMs ?? DEFAULTS.timeoutMs;
18
+ if (options.cache !== false) {
19
+ this.cache = {
20
+ ttlMs: options.cache?.ttlMs ?? DEFAULTS.ttlMs,
21
+ maxEntries: options.cache?.maxEntries ?? DEFAULTS.maxEntries,
22
+ entries: /* @__PURE__ */ new Map()
23
+ };
24
+ }
25
+ }
26
+ options;
27
+ logger;
28
+ maxCandidates;
29
+ minProbability;
30
+ timeoutMs;
31
+ cache;
32
+ /**
33
+ * `pool`, the index's candidates, ranked by the decision model: each scored by its probability, those under
34
+ * `minProbability` left out, at most `topK`. `undefined` when the model failed, timed out or was refused (logged),
35
+ * for the caller to keep the index's ranking.
36
+ */
37
+ async rank(query, negativeQuery, pool, topK) {
38
+ const candidatePool = pool.slice(0, this.maxCandidates);
39
+ if (candidatePool.length === 0) return [];
40
+ const notQuery = negativeQuery === void 0 ? [] : typeof negativeQuery === "string" ? [negativeQuery] : negativeQuery;
41
+ const candidates = candidatePool.map((r) => ({
42
+ id: r.metadata.id ?? r.metadata.name,
43
+ name: r.metadata.name,
44
+ description: r.metadata.description ?? "",
45
+ ...r.metadata.tags?.length ? { tags: [...r.metadata.tags] } : {}
46
+ }));
47
+ const decisions = await this.decide(query, notQuery, candidates);
48
+ if (!decisions) return void 0;
49
+ const probabilityOf = new Map(decisions.map((d) => [d.id, d.probability]));
50
+ const ranked = candidatePool.map((result, i) => ({ ...result, score: probabilityOf.get(candidates[i].id) ?? 0 })).filter((result) => result.score >= this.minProbability).sort((a, b) => b.score - a.score);
51
+ return typeof topK === "number" && topK >= 0 ? ranked.slice(0, topK) : ranked;
52
+ }
53
+ async decide(query, notQuery, candidates) {
54
+ const key = this.cache ? sha256Hex(JSON.stringify([query, notQuery, candidates])) : "";
55
+ const cached = this.cache?.entries.get(key);
56
+ if (cached && cached.expiresAt > Date.now()) return cached.decisions;
57
+ const controller = new AbortController();
58
+ let timer;
59
+ const timeout = new Promise((_, reject) => {
60
+ timer = setTimeout(() => {
61
+ controller.abort();
62
+ reject(new Error(`no decision within ${this.timeoutMs} ms`));
63
+ }, this.timeoutMs);
64
+ });
65
+ let decisions;
66
+ try {
67
+ decisions = await Promise.race([
68
+ this.options.decider({ query, notQuery, candidates, signal: controller.signal }),
69
+ timeout
70
+ ]);
71
+ const invalid = decisions.find((decision) => !isProbability(decision.probability));
72
+ if (invalid) throw new Error(`the decision for "${invalid.id}" has no probability from 0 to 1`);
73
+ } catch (error) {
74
+ this.logger.warn("skill search: the decision model failed; results are ranked by the index", {
75
+ error: error instanceof Error ? error.message : String(error)
76
+ });
77
+ return void 0;
78
+ } finally {
79
+ clearTimeout(timer);
80
+ }
81
+ if (this.cache) {
82
+ this.cache.entries.delete(key);
83
+ this.cache.entries.set(key, { expiresAt: Date.now() + this.cache.ttlMs, decisions });
84
+ while (this.cache.entries.size > this.cache.maxEntries) {
85
+ const oldest = this.cache.entries.keys().next().value;
86
+ if (oldest === void 0) break;
87
+ this.cache.entries.delete(oldest);
88
+ }
89
+ }
90
+ return decisions;
91
+ }
92
+ };
93
+ export {
94
+ MAX_DECISION_CANDIDATES,
95
+ SkillDecisionRanker
96
+ };
@@ -26,7 +26,7 @@ var inputSchema = z.object({
26
26
  var outputSchema = SkillsLoadResultSchema;
27
27
  var stateSchema = z.object({
28
28
  skillIds: z.array(z.string()),
29
- format: z.enum(["full", "instructions-only"]),
29
+ format: z.enum(["full", "markdown", "instructions-only"]),
30
30
  activateSession: z.boolean(),
31
31
  policyMode: z.enum(["strict", "approval", "permissive"]).optional(),
32
32
  loadResults: z.unknown().optional(),
@@ -123,7 +123,8 @@ var LoadSkillFlow = class extends FlowBase {
123
123
  this.logger.verbose("finalize:start");
124
124
  const { loadResults = [], warnings = [], format, activateSession } = this.state.required;
125
125
  const toolRegistry = this.scope.tools;
126
- const withSchemas = format !== "instructions-only";
126
+ const asMarkdown = format === "markdown";
127
+ const withSchemas = format === "full";
127
128
  const toolsByName = new Map(
128
129
  withSchemas && toolRegistry ? toolRegistry.getTools(false).map((t) => [t.name, t]) : []
129
130
  );
@@ -144,22 +145,26 @@ var LoadSkillFlow = class extends FlowBase {
144
145
  policyMode: activationResult.session.policyMode,
145
146
  allowedTools: activationResult.availableTools
146
147
  } : { activated: false };
147
- return {
148
- id: skill.id,
149
- name: skill.name,
150
- description: skill.description ?? "",
148
+ const content = asMarkdown ? {
149
+ formattedContent: toolRegistry ? formatSkillForLLMWithSchemas(skill, availableTools, missingTools, toolRegistry) : formatSkillForLLM(skill, availableTools, missingTools)
150
+ } : {
151
151
  instructions: skill.instructions,
152
- tools,
153
152
  parameters: skill.parameters?.map(({ name: name2, description, required, type }) => ({
154
153
  name: name2,
155
154
  description,
156
155
  required,
157
156
  type
158
- })),
157
+ }))
158
+ };
159
+ return {
160
+ id: skill.id,
161
+ name: skill.name,
162
+ description: skill.description ?? "",
163
+ tools,
164
+ ...content,
159
165
  availableTools,
160
166
  missingTools,
161
167
  isComplete,
162
- formattedContent: toolRegistry ? formatSkillForLLMWithSchemas(skill, availableTools, missingTools, toolRegistry) : formatSkillForLLM(skill, availableTools, missingTools),
163
168
  session: activateSession ? session : void 0
164
169
  };
165
170
  });
@@ -171,7 +176,7 @@ var LoadSkillFlow = class extends FlowBase {
171
176
  allToolsAvailable,
172
177
  combinedWarnings: warnings.length > 0 ? warnings : void 0
173
178
  },
174
- nextSteps: skills.length > 0 ? `Loaded ${skills.length} skill(s). Follow the instructions to complete the task.` : "No skills were loaded. Check the skill IDs and try again."
179
+ nextSteps: skills.length > 0 ? `Loaded ${skills.length} skill(s). Follow ${asMarkdown ? "each formattedContent" : "the instructions"} to complete the task.` : "No skills were loaded. Check the skill IDs and try again."
175
180
  });
176
181
  this.logger.verbose("finalize:done");
177
182
  }
@@ -94,6 +94,8 @@ import {
94
94
  composeCallerInstructions,
95
95
  buildChannelInstructions
96
96
  } from "./skill-instructions.helper.mjs";
97
+ import { decisionsApiDecider } from "./decision/decisions-api.decider.mjs";
98
+ import { SkillCatalogSourceToken } from "./skill-catalog-source.mjs";
97
99
  import { SkillHttpAuthValidator, authorizeSkillHttpRequest, createSkillHttpAuthValidator } from "./auth/index.mjs";
98
100
  import {
99
101
  MemorySkillHttpCache,
@@ -127,6 +129,7 @@ export {
127
129
  Sep2640SkillFileResource,
128
130
  Sep2640SkillIndexResource,
129
131
  Sep2640SkillMdResource,
132
+ SkillCatalogSourceToken,
130
133
  SkillEmitter,
131
134
  SkillHttpAuthValidator,
132
135
  SkillInstance,
@@ -163,6 +166,7 @@ export {
163
166
  createSkillSessionStore,
164
167
  createSkillStorageProvider,
165
168
  createSkillToolGuardHook,
169
+ decisionsApiDecider,
166
170
  deserializeSessionState,
167
171
  deserializeSyncState,
168
172
  detectSkillsOnlyMode,