@frontmcp/sdk 1.10.8 → 1.10.9-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/auth/flows/auth.verify.flow.d.ts +1 -1
  2. package/auth/flows/oauth.auth-ui.flow.d.ts +2 -2
  3. package/auth/flows/oauth.authorize.flow.d.ts +2 -2
  4. package/auth/flows/oauth.callback.flow.d.ts +2 -2
  5. package/auth/flows/oauth.connect.flow.d.ts +2 -2
  6. package/auth/flows/oauth.provider-callback.flow.d.ts +2 -2
  7. package/auth/flows/oauth.register.flow.d.ts +2 -2
  8. package/auth/flows/oauth.token.flow.d.ts +2 -2
  9. package/auth/flows/oauth.userinfo.flow.d.ts +2 -2
  10. package/auth/flows/session.verify.flow.d.ts +1 -1
  11. package/auth/flows/well-known.jwks.flow.d.ts +2 -2
  12. package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +2 -2
  13. package/auth/flows/well-known.prm.flow.d.ts +2 -2
  14. package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
  15. package/browser/agent/agent.registry.mjs +1 -1
  16. package/browser/app/instances/app.esm.instance.mjs +4 -4
  17. package/browser/app/instances/app.remote.instance.mjs +6 -6
  18. package/browser/auth/auth-ui/auth-ui.registry.mjs +6 -6
  19. package/browser/auth/flows/oauth.authorize.flow.mjs +5 -5
  20. package/browser/auth/flows/oauth.callback.flow.mjs +11 -11
  21. package/browser/auth/flows/oauth.connect.flow.mjs +1 -1
  22. package/browser/auth/flows/oauth.register.flow.mjs +1 -1
  23. package/browser/auth/flows/oauth.token.flow.mjs +1 -1
  24. package/browser/auth/flows/well-known.oauth-authorization-server.flow.mjs +5 -5
  25. package/browser/auth/instances/instance.local-primary-auth.mjs +35 -11
  26. package/browser/auth/session/utils/session-id.utils.mjs +1 -1
  27. package/browser/common/entries/skill.entry.mjs +2 -2
  28. package/browser/common/entries/tool.entry.mjs +3 -3
  29. package/browser/common/interfaces/channel.interface.mjs +1 -1
  30. package/browser/common/interfaces/execution-context.interface.mjs +4 -4
  31. package/browser/common/interfaces/flow.interface.mjs +10 -0
  32. package/browser/common/interfaces/internal/primary-auth-provider.interface.mjs +2 -2
  33. package/browser/common/metadata/app.metadata.mjs +1 -1
  34. package/browser/common/metadata/front-mcp.metadata.mjs +5 -5
  35. package/browser/common/schemas/http-input.schema.mjs +9 -3
  36. package/browser/common/tokens/app.tokens.mjs +1 -1
  37. package/browser/common/tokens/front-mcp.tokens.mjs +1 -1
  38. package/browser/common/types/options/http/schema.mjs +4 -4
  39. package/browser/common/types/options/redis/schema.mjs +1 -1
  40. package/browser/common/types/options/sqlite/schema.mjs +3 -3
  41. package/browser/common/types/options/transport/schema.mjs +4 -4
  42. package/browser/common/utils/decide-request-intent.utils.mjs +13 -11
  43. package/browser/context/frontmcp-context.mjs +1 -1
  44. package/browser/direct/direct-client.mjs +29 -29
  45. package/browser/direct/direct-server.mjs +14 -14
  46. package/browser/errors/job.errors.mjs +1 -1
  47. package/browser/errors/mcp.error.mjs +4 -4
  48. package/browser/errors/plugin.errors.mjs +1 -1
  49. package/browser/errors/task.error.mjs +1 -1
  50. package/browser/errors/tool-credentials-required.error.mjs +2 -2
  51. package/browser/esm-loader/esm-module-loader.mjs +1 -7
  52. package/browser/esm-loader/import-computed.mjs +11 -0
  53. package/browser/esm-loader/semver.utils.mjs +17 -11
  54. package/browser/flows/flow.instance.mjs +55 -24
  55. package/browser/flows/flow.stages.mjs +3 -2
  56. package/browser/front-mcp/front-mcp.mjs +10 -14
  57. package/browser/ha/ha-manager.mjs +1 -1
  58. package/browser/ha/notification-relay.mjs +1 -1
  59. package/browser/index.cjs +1346 -1490
  60. package/browser/index.mjs +4 -4
  61. package/browser/job/store/job-definition-store.factory.mjs +1 -1
  62. package/browser/job/store/redis-job-definition.store.mjs +2 -2
  63. package/browser/job/tools/get-job-status.tool.mjs +1 -1
  64. package/browser/logger/logger.registry.mjs +1 -1
  65. package/browser/metrics/metrics.service.mjs +3 -3
  66. package/browser/prompt/prompt.registry.mjs +1 -1
  67. package/browser/provider/provider.registry.mjs +4 -4
  68. package/browser/remote-mcp/mcp-client.service.mjs +19 -19
  69. package/browser/remote-mcp/resilience/circuit-breaker.mjs +2 -2
  70. package/browser/resource/resource.registry.mjs +2 -2
  71. package/browser/scope/flows/http.request.flow.mjs +3 -3
  72. package/browser/scope/scope.instance.mjs +4 -4
  73. package/browser/scope/scope.utils.mjs +1 -1
  74. package/browser/skill/providers/memory-skill.provider.mjs +31 -9
  75. package/browser/skill/skill.registry.mjs +10 -10
  76. package/browser/task/flows/tasks-result.flow.mjs +2 -2
  77. package/browser/task/task.registry.mjs +5 -5
  78. package/browser/tool/flows/call-tool.flow.mjs +4 -4
  79. package/browser/tool/tool.instance.mjs +16 -7
  80. package/browser/tool/tool.registry.mjs +4 -4
  81. package/browser/tool/ui/ui-shared.mjs +1 -1
  82. package/browser/transport/adapters/transport.local.adapter.mjs +2 -2
  83. package/browser/transport/adapters/transport.streamable-http.adapter.mjs +13 -4
  84. package/browser/transport/event-stores/redis.event-store.mjs +1 -1
  85. package/browser/transport/mcp-20260728/client/mcp-stateless.client.mjs +1 -1
  86. package/browser/transport/mcp-20260728/request-notifications.mjs +1 -1
  87. package/browser/transport/transport.registry.mjs +15 -9
  88. package/browser/transport/web-response.renderer.mjs +2 -2
  89. package/browser/utils/lineage.utils.mjs +1 -1
  90. package/browser/workflow/tools/get-workflow-status.tool.mjs +1 -1
  91. package/common/interfaces/flow.interface.d.ts.map +1 -1
  92. package/common/schemas/http-input.schema.d.ts +3 -3
  93. package/common/schemas/http-input.schema.d.ts.map +1 -1
  94. package/common/utils/decide-request-intent.utils.d.ts.map +1 -1
  95. package/esm/esm-loader/import-computed.mjs +10 -0
  96. package/esm/index.mjs +136 -77029
  97. package/esm-loader/esm-module-loader.d.ts.map +1 -1
  98. package/esm-loader/import-computed.d.ts +21 -0
  99. package/esm-loader/import-computed.d.ts.map +1 -0
  100. package/esm-loader/import-computed.js +34 -0
  101. package/esm-loader/semver.utils.d.ts.map +1 -1
  102. package/flows/flow.instance.d.ts +1 -0
  103. package/flows/flow.instance.d.ts.map +1 -1
  104. package/flows/flow.stages.d.ts.map +1 -1
  105. package/front-mcp/front-mcp.d.ts.map +1 -1
  106. package/index.d.ts +9 -8
  107. package/index.d.ts.map +1 -1
  108. package/index.js +140 -77685
  109. package/mcp-registry/flows/server-card.flow.d.ts +2 -2
  110. package/mcp-registry/flows/well-known.ai-catalog.flow.d.ts +2 -2
  111. package/mcp-registry/flows/well-known.mcp-registry-auth.flow.d.ts +2 -2
  112. package/package.json +14 -10
  113. package/skill/flows/http/llm-full-txt.flow.d.ts +2 -2
  114. package/skill/flows/http/llm-txt.flow.d.ts +2 -2
  115. package/skill/flows/http/skills-api.flow.d.ts +2 -2
  116. package/skill/providers/memory-skill.provider.d.ts +1 -0
  117. package/skill/providers/memory-skill.provider.d.ts.map +1 -1
  118. package/tool/tool.instance.d.ts +3 -0
  119. package/tool/tool.instance.d.ts.map +1 -1
  120. package/transport/adapters/transport.streamable-http.adapter.d.ts +2 -1
  121. package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -1
  122. package/transport/transport.registry.d.ts +1 -0
  123. package/transport/transport.registry.d.ts.map +1 -1
  124. package/browser/transport/index.mjs +0 -32
package/browser/index.mjs CHANGED
@@ -160,20 +160,20 @@ import { connect, connectOpenAI, connectClaude, connectLangChain, connectVercelA
160
160
  import { detectPlatform, formatToolsForPlatform, formatResultForPlatform, PLATFORM_CLIENT_INFO } from "./direct/index.mjs";
161
161
  import { create, clearCreateCache } from "./direct/index.mjs";
162
162
  import { HostServerAdapter } from "./server/adapters/base.host.adapter.mjs";
163
- import { createInMemoryServer } from "./transport/index.mjs";
163
+ import { createInMemoryServer } from "./transport/in-memory-server.mjs";
164
164
  import {
165
165
  createDeferredServerBuild,
166
166
  createWebFetchHandler,
167
167
  runHttpRequestFlowWeb,
168
168
  startupFailureResponse
169
- } from "./transport/index.mjs";
169
+ } from "./transport/web-fetch-handler.mjs";
170
170
  import { McpStatelessClient, McpStatelessError, TASKS_CLIENT_CAPABILITY } from "./transport/mcp-20260728/index.mjs";
171
171
  import { validateHeaderParams, buildParamHeaders } from "./transport/mcp-20260728/index.mjs";
172
172
  import { FRONTMCP_SUPPORTED_PROTOCOL_VERSIONS, TASKS_EXTENSION_ID } from "./transport/mcp-20260728/index.mjs";
173
173
  import { McpStatelessClientAdapter, negotiateRemoteProtocol } from "./remote-mcp/mcp-stateless-client.adapter.mjs";
174
174
  import { PROTOCOL_2026_07_28 } from "@frontmcp/protocol";
175
- import { runWebStandardMcp, buildPersistentWebStandardMcp } from "./transport/index.mjs";
176
- import { STATELESS_SESSION_ID } from "./transport/index.mjs";
175
+ import { runWebStandardMcp, buildPersistentWebStandardMcp } from "./transport/web-standard-mcp.mjs";
176
+ import { STATELESS_SESSION_ID } from "./transport/transport.types.mjs";
177
177
  import {
178
178
  ExtAppsMessageHandler,
179
179
  createExtAppsMessageHandler,
@@ -40,7 +40,7 @@ function createJobDefinitionStore(options, logger) {
40
40
  });
41
41
  return {
42
42
  // Factory-created client lifetime is bound to the store, so the store
43
- // must close it on dispose() — pass ownsClient: true.
43
+ // must close it on dispose() \u2014 pass ownsClient: true.
44
44
  store: new RedisJobDefinitionStore(client, effectiveLogger, keyPrefix, { ownsClient: true }),
45
45
  type: "redis"
46
46
  };
@@ -16,7 +16,7 @@ var RedisJobDefinitionStore = class {
16
16
  }
17
17
  /**
18
18
  * Parse a Redis JSON payload, returning null on malformed input. Stale or
19
- * truncated values must not crash the caller — log + treat as missing so
19
+ * truncated values must not crash the caller \u2014 log + treat as missing so
20
20
  * the surrounding flow can recover.
21
21
  */
22
22
  safeParse(raw, jobId, kind) {
@@ -36,7 +36,7 @@ var RedisJobDefinitionStore = class {
36
36
  workflowKey(wfId) {
37
37
  return `${this.keyPrefix}wf:${wfId}`;
38
38
  }
39
- // Note: saveDefinition is not atomic — the SET and SADD are separate commands.
39
+ // Note: saveDefinition is not atomic \u2014 the SET and SADD are separate commands.
40
40
  // If the process crashes between them, the index set may be inconsistent.
41
41
  // Adding pipeline/multi support would require extending RedisDefinitionStoreLike.
42
42
  async saveDefinition(record) {
@@ -44,7 +44,7 @@ var GetJobStatusTool = class extends ToolContext {
44
44
  *
45
45
  * A record carrying NEITHER identity is refused. Such a run cannot be
46
46
  * attributed to anyone, and its inputs and results are exactly what this check
47
- * exists to protect — anyone holding the id would otherwise be able to read
47
+ * exists to protect \u2014 anyone holding the id would otherwise be able to read
48
48
  * it. Internal callers that must read unattributed runs should go through the
49
49
  * execution manager directly rather than this tool.
50
50
  */
@@ -73,7 +73,7 @@ var LoggerRegistry = class _LoggerRegistry extends RegistryAbstract {
73
73
  }
74
74
  this.bindLogger();
75
75
  }
76
- /** The mutable transports array — shared by all loggers via getTransports closure. */
76
+ /** The mutable transports array \u2014 shared by all loggers via getTransports closure. */
77
77
  _transports = [];
78
78
  bindLogger() {
79
79
  const consoleTransport = this.instances.get(ConsoleLogTransportInstance);
@@ -100,9 +100,9 @@ var MetricsService = class {
100
100
  /**
101
101
  * Check the supplied `Authorization` header against the configured auth
102
102
  * policy. Returns the HTTP status the route should respond with:
103
- * - 200 — the request is allowed to read metrics
104
- * - 401 — missing credentials when token auth is configured
105
- * - 403 — wrong credentials
103
+ * - 200 \u2014 the request is allowed to read metrics
104
+ * - 401 \u2014 missing credentials when token auth is configured
105
+ * - 403 \u2014 wrong credentials
106
106
  */
107
107
  authorize(authorizationHeader) {
108
108
  const auth = this.config.auth ?? "public";
@@ -250,7 +250,7 @@ var PromptRegistry = class extends RegistryAbstract {
250
250
  listAllInstances() {
251
251
  return this.listAllIndexed().map((r) => r.instance);
252
252
  }
253
- /** Owner lineage (root → leaf) of a prompt this registry holds, or undefined when it holds none. */
253
+ /** Owner lineage (root \u2192 leaf) of a prompt this registry holds, or undefined when it holds none. */
254
254
  lineageOf(entry) {
255
255
  return this.lineages.lineageOf(entry);
256
256
  }
@@ -234,8 +234,8 @@ var ProviderRegistry = class _ProviderRegistry extends RegistryAbstract {
234
234
  /**
235
235
  * Normalize deprecated scopes to their modern equivalents.
236
236
  *
237
- * - SESSION → CONTEXT (deprecated)
238
- * - REQUEST → CONTEXT (deprecated)
237
+ * - SESSION \u2192 CONTEXT (deprecated)
238
+ * - REQUEST \u2192 CONTEXT (deprecated)
239
239
  *
240
240
  * This enables backwards compatibility while unifying the scope model.
241
241
  */
@@ -924,7 +924,7 @@ var ProviderRegistry = class _ProviderRegistry extends RegistryAbstract {
924
924
  }
925
925
  }
926
926
  /**
927
- * Resolve a dependency from the available views (context → global).
927
+ * Resolve a dependency from the available views (context \u2192 global).
928
928
  */
929
929
  async resolveFromViews(token, contextStore, globalStore, scopeKey) {
930
930
  if (contextStore.has(token)) return contextStore.get(token);
@@ -961,7 +961,7 @@ var ProviderRegistry = class _ProviderRegistry extends RegistryAbstract {
961
961
  throw new ProviderDependencyError(`Cannot resolve dependency ${tokenName(token)} from views`);
962
962
  }
963
963
  /**
964
- * Get a provider from the given views, checking context → global.
964
+ * Get a provider from the given views, checking context \u2192 global.
965
965
  *
966
966
  * @param token - The provider token to look up
967
967
  * @param views - The provider views to search
@@ -106,9 +106,9 @@ var McpClientService = class {
106
106
  }
107
107
  });
108
108
  }
109
- // ═══════════════════════════════════════════════════════════════════
109
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
110
110
  // CONNECTION MANAGEMENT
111
- // ═══════════════════════════════════════════════════════════════════
111
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
112
112
  /**
113
113
  * Connect to a remote MCP server
114
114
  */
@@ -247,9 +247,9 @@ var McpClientService = class {
247
247
  const connection = this.connections.get(appId);
248
248
  return connection?.status === "connected";
249
249
  }
250
- // ═══════════════════════════════════════════════════════════════════
250
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
251
251
  // CAPABILITY DISCOVERY
252
- // ═══════════════════════════════════════════════════════════════════
252
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
253
253
  /**
254
254
  * Discover capabilities from a remote server
255
255
  */
@@ -333,9 +333,9 @@ var McpClientService = class {
333
333
  const capabilities = await this.discoverCapabilities(appId);
334
334
  return capabilities.prompts;
335
335
  }
336
- // ═══════════════════════════════════════════════════════════════════
336
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
337
337
  // PROXY EXECUTION
338
- // ═══════════════════════════════════════════════════════════════════
338
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
339
339
  /**
340
340
  * Call a tool on a remote server with self-healing
341
341
  */
@@ -460,9 +460,9 @@ var McpClientService = class {
460
460
  throw this.authFailureOf(appId, error) ?? new RemotePromptGetError(appId, promptName, error);
461
461
  }
462
462
  }
463
- // ═══════════════════════════════════════════════════════════════════
463
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
464
464
  // EVENT SUBSCRIPTIONS
465
- // ═══════════════════════════════════════════════════════════════════
465
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
466
466
  /**
467
467
  * Subscribe to capability change events
468
468
  */
@@ -481,9 +481,9 @@ var McpClientService = class {
481
481
  this.connectionChangeCallbacks.delete(callback);
482
482
  };
483
483
  }
484
- // ═══════════════════════════════════════════════════════════════════
484
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
485
485
  // AUTH RESOLUTION
486
- // ═══════════════════════════════════════════════════════════════════
486
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
487
487
  /**
488
488
  * Resolve authentication headers for a remote request
489
489
  */
@@ -516,9 +516,9 @@ var McpClientService = class {
516
516
  return {};
517
517
  }
518
518
  }
519
- // ═══════════════════════════════════════════════════════════════════
519
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
520
520
  // CLEANUP
521
- // ═══════════════════════════════════════════════════════════════════
521
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
522
522
  /**
523
523
  * Disconnect from all remote servers and clean up
524
524
  */
@@ -541,9 +541,9 @@ var McpClientService = class {
541
541
  this.connectionChangeCallbacks.clear();
542
542
  this.logger.info("McpClientService disposed");
543
543
  }
544
- // ═══════════════════════════════════════════════════════════════════
544
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
545
545
  // PRIVATE HELPERS
546
- // ═══════════════════════════════════════════════════════════════════
546
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
547
547
  /** A call whose `remoteAuth` mapper failed, or whose credentials the remote refused (HTTP 401), fails with `RemoteAuthError`. */
548
548
  authFailureOf(appId, error) {
549
549
  if (error instanceof RemoteAuthError) return error;
@@ -588,7 +588,7 @@ var McpClientService = class {
588
588
  * Build a 2026-07-28 connection when the remote is on that revision.
589
589
  *
590
590
  * Returns `undefined` for every other case so the legacy path below runs
591
- * completely untouched — the default for an unconfigured remote.
591
+ * completely untouched \u2014 the default for an unconfigured remote.
592
592
  */
593
593
  async tryConnect2026(request, headers) {
594
594
  const httpOptions = request.transportOptions;
@@ -798,9 +798,9 @@ var McpClientService = class {
798
798
  return {};
799
799
  }
800
800
  }
801
- // ═══════════════════════════════════════════════════════════════════
801
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
802
802
  // SELF-HEALING HELPERS
803
- // ═══════════════════════════════════════════════════════════════════
803
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
804
804
  /**
805
805
  * Schedule an auto-reconnect attempt for an app
806
806
  */
@@ -880,9 +880,9 @@ var McpClientService = class {
880
880
  stopHealthCheck(appId) {
881
881
  this.healthCheckManager.removeChecker(appId);
882
882
  }
883
- // ═══════════════════════════════════════════════════════════════════
883
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
884
884
  // RESILIENCE STATUS
885
- // ═══════════════════════════════════════════════════════════════════
885
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
886
886
  /**
887
887
  * Get circuit breaker status for an app
888
888
  */
@@ -105,9 +105,9 @@ var CircuitBreaker = class {
105
105
  nextAttemptTime: this.nextAttemptTime
106
106
  };
107
107
  }
108
- // ═══════════════════════════════════════════════════════════════════
108
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
109
109
  // PRIVATE HELPERS
110
- // ═══════════════════════════════════════════════════════════════════
110
+ // \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
111
111
  transitionTo(newState) {
112
112
  if (this.state === newState) return;
113
113
  const previousState = this.state;
@@ -289,7 +289,7 @@ var ResourceRegistry = class extends RegistryAbstract {
289
289
  listAllInstances() {
290
290
  return this.listAllIndexed().map((r) => r.instance);
291
291
  }
292
- /** Owner lineage (root → leaf) of a resource this registry holds, or undefined when it holds none. */
292
+ /** Owner lineage (root \u2192 leaf) of a resource this registry holds, or undefined when it holds none. */
293
293
  lineageOf(entry) {
294
294
  return this.lineages.lineageOf(entry);
295
295
  }
@@ -547,7 +547,7 @@ var ResourceRegistry = class extends RegistryAbstract {
547
547
  getCapabilities() {
548
548
  return {
549
549
  resources: {
550
- // Subscription support per MCP 2025-11-25 spec — only meaningful when
550
+ // Subscription support per MCP 2025-11-25 spec \u2014 only meaningful when
551
551
  // there are registered resources.
552
552
  subscribe: this.hasAny(),
553
553
  listChanged: this.hasAny()
@@ -73,7 +73,7 @@ var plan = {
73
73
  // it: anyone else presenting its id is answered as an unknown session. First,
74
74
  // before every protocol handler (2026-07-28 included), so none can serve it.
75
75
  "checkPersistentSessionOwner",
76
- // Protocol 2026-07-28. Runs before EVERY session-era handler — including
76
+ // Protocol 2026-07-28. Runs before EVERY session-era handler \u2014 including
77
77
  // `handleWebFetch`, which answers any request carrying a Web `Request`
78
78
  // regardless of intent and would otherwise swallow 2026 traffic on a
79
79
  // Cloudflare Worker. Its output (`json` / `text` / `sse`) renders on both
@@ -273,12 +273,12 @@ var HttpRequestFlow = class extends FlowBase {
273
273
  * and register it under {@link ORCHESTRATED_AUTH_ACCESSOR} so tools can read
274
274
  * upstream provider tokens via `this.orchestration.getToken(id)`.
275
275
  *
276
- * `session:verify` returns a lightweight authorization (`{ token, user, … }`)
276
+ * `session:verify` returns a lightweight authorization (`{ token, user, \u2026 }`)
277
277
  * rather than a full OrchestratedAuthorization, so we reconstruct one here from
278
278
  * the verified JWT + the primary auth's encrypted token store (the same store
279
279
  * the federated provider-callback flow wrote upstream tokens into, keyed by
280
280
  * `deriveAuthorizationId(token)`). No-op unless the scope is in orchestrated
281
- * mode with a token store and a non-empty bearer token — so public/transparent
281
+ * mode with a token store and a non-empty bearer token \u2014 so public/transparent
282
282
  * and anonymous requests are unaffected.
283
283
  *
284
284
  * Security: tokens stay server-side and AES-GCM-encrypted at rest; only the
@@ -137,7 +137,7 @@ var Scope = class _Scope extends ScopeEntry {
137
137
  _channelTeardown;
138
138
  /** Health service for liveness and readiness probes (optional) */
139
139
  _healthService;
140
- /** CLI mode flag — skips non-essential initialization for faster startup */
140
+ /** CLI mode flag \u2014 skips non-essential initialization for faster startup */
141
141
  cliMode;
142
142
  /** Served in process only (`createDirect()`, `connect()`): no HTTP transport, routes, health checks or OAuth flows */
143
143
  directOnly;
@@ -739,7 +739,7 @@ var Scope = class _Scope extends ScopeEntry {
739
739
  * when the user provided the block without one (issue #401). Also
740
740
  * ensures the parent directory exists so better-sqlite3 doesn't fail
741
741
  * to open. Returns `undefined` if the user didn't set the block at
742
- * all. The returned object is a SHALLOW COPY — never mutate the
742
+ * all. The returned object is a SHALLOW COPY \u2014 never mutate the
743
743
  * caller's metadata.
744
744
  */
745
745
  async resolveTopLevelSqlite() {
@@ -1206,7 +1206,7 @@ var Scope = class _Scope extends ScopeEntry {
1206
1206
  }
1207
1207
  /**
1208
1208
  * Initialize authorities engine from @FrontMcp({ authorities: { ... } }) config.
1209
- * Built-in integration — no plugin required.
1209
+ * Built-in integration \u2014 no plugin required.
1210
1210
  * @internal
1211
1211
  */
1212
1212
  async initAuthoritiesFromConfig() {
@@ -1386,7 +1386,7 @@ var Scope = class _Scope extends ScopeEntry {
1386
1386
  * `middleware.path` + `canActivate`), excluding `http:request` (which the
1387
1387
  * web-fetch handler runs directly for the MCP entry path). Lets the
1388
1388
  * Worker/web-fetch adapter dispatch auth/well-known/oauth flows the same way
1389
- * the Express host routes them — without a middleware server.
1389
+ * the Express host routes them \u2014 without a middleware server.
1390
1390
  */
1391
1391
  async findHttpFlowName(request) {
1392
1392
  return this.scopeFlows.findHttpFlowName(request, SCOPE_NON_DISPATCHABLE_FLOWS);
@@ -23,7 +23,7 @@ function normalizeAppScope(appItem, metadata) {
23
23
  apps: [appItem],
24
24
  // An app that declares no `auth` INHERITS the server's policy. Writing
25
25
  // `appMetadata.auth` unconditionally set the key to `undefined`, which
26
- // overrode the spread above and dropped the server's auth entirely — so a
26
+ // overrode the spread above and dropped the server's auth entirely \u2014 so a
27
27
  // standalone app silently became public (GHSA-rgxj-434m-vxh3, where the
28
28
  // dashboard's own scope was the case in point). Declaring
29
29
  // `auth: { mode: 'public' }` explicitly is still honoured.
@@ -1,6 +1,16 @@
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
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
5
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
6
+ }) : x)(function(x) {
7
+ if (typeof require !== "undefined") return require.apply(this, arguments);
8
+ throw Error('Dynamic require of "' + x + '" is not supported');
9
+ });
10
+
1
11
  // libs/sdk/src/skill/providers/memory-skill.provider.ts
2
- import { TFIDFVectoria } from "vectoriadb";
3
12
  import { sha256Hex } from "@frontmcp/utils";
13
+ import { importWithRequireFallback } from "../../utils/dynamic-import.utils.mjs";
4
14
  var STOP_WORDS = /* @__PURE__ */ new Set([
5
15
  // Articles & Determiners
6
16
  "the",
@@ -81,6 +91,7 @@ var MemorySkillProvider = class {
81
91
  type = "memory";
82
92
  /** The search index, created the first time a search needs it. */
83
93
  vectorDB;
94
+ vectorDBLoading;
84
95
  skills = /* @__PURE__ */ new Map();
85
96
  defaultTopK;
86
97
  defaultMinScore;
@@ -105,7 +116,11 @@ var MemorySkillProvider = class {
105
116
  this.scoring = options.scoring ?? "cosine";
106
117
  this.indexCache = options.indexCache;
107
118
  }
108
- createVectorDB() {
119
+ async createVectorDB() {
120
+ const { TFIDFVectoria } = await importWithRequireFallback(
121
+ () => import("vectoriadb"),
122
+ () => __require("vectoriadb")
123
+ );
109
124
  const dbConfig = {
110
125
  defaultTopK: this.defaultTopK,
111
126
  defaultSimilarityThreshold: this.defaultMinScore
@@ -114,7 +129,7 @@ var MemorySkillProvider = class {
114
129
  return new TFIDFVectoria(dbConfig);
115
130
  }
116
131
  /**
117
- * Attach (or replace) the snapshot cache after construction — useful when the
132
+ * Attach (or replace) the snapshot cache after construction \u2014 useful when the
118
133
  * cache binding only exists at request time (e.g. a Cloudflare KV namespace on
119
134
  * `env`). Marks the index stale so the next search consults the new cache.
120
135
  */
@@ -136,12 +151,12 @@ var MemorySkillProvider = class {
136
151
  * vector DB supports snapshots, a content-hash hit restores the index without
137
152
  * recomputing IDF/embeddings (the cold-start fast path); a miss rebuilds and
138
153
  * persists the snapshot for next time. Cache failures degrade to a local
139
- * rebuild — they never block search.
154
+ * rebuild \u2014 they never block search.
140
155
  */
141
156
  async ensureIndexed() {
142
157
  if (this.indexReady) return;
143
- const db = this.db();
144
158
  const version = this.skillsVersion;
159
+ const db = await this.db();
145
160
  if (this.indexCache && isSnapshotCapable(db)) {
146
161
  const key = await this.computeIndexKey();
147
162
  try {
@@ -196,9 +211,16 @@ var MemorySkillProvider = class {
196
211
  const canonical = `frontmcp-skill-index:v1|${this.scoring}|${this.skills.size}|${parts.join("")}`;
197
212
  return sha256Hex(canonical);
198
213
  }
199
- db() {
200
- this.vectorDB ??= this.createVectorDB();
201
- return this.vectorDB;
214
+ async db() {
215
+ if (this.vectorDB) return this.vectorDB;
216
+ this.vectorDBLoading ??= this.createVectorDB().then(
217
+ (db) => this.vectorDB ??= db,
218
+ (error) => {
219
+ this.vectorDBLoading = void 0;
220
+ throw error;
221
+ }
222
+ );
223
+ return this.vectorDBLoading;
202
224
  }
203
225
  /**
204
226
  * Set the tool validator after construction.
@@ -244,7 +266,7 @@ var MemorySkillProvider = class {
244
266
  }
245
267
  return true;
246
268
  };
247
- const db = this.db();
269
+ const db = await this.db();
248
270
  await this.ensureIndexed();
249
271
  let results = await db.search(query, {
250
272
  topK,
@@ -94,11 +94,11 @@ var SkillRegistry = class _SkillRegistry extends RegistryAbstract {
94
94
  scope;
95
95
  /** Registry-level options for validation behavior */
96
96
  options;
97
- /** SEP-2640 §Discovery — additional `mcp-resource-template` index entries. */
97
+ /** SEP-2640 \u00a7Discovery \u2014 additional `mcp-resource-template` index entries. */
98
98
  sep2640IndexTemplates = [];
99
- /** SEP-2640 ADR — additional `archive` index entries. */
99
+ /** SEP-2640 ADR \u2014 additional `archive` index entries. */
100
100
  sep2640IndexArchives = [];
101
- /** SEP-2640 §Discovery — extra `skill://` URIs to surface in server `instructions`. */
101
+ /** SEP-2640 \u00a7Discovery \u2014 extra `skill://` URIs to surface in server `instructions`. */
102
102
  sep2640InstructionUris = [];
103
103
  constructor(providers, list, owner, options) {
104
104
  super("SkillRegistry", providers, list, false);
@@ -311,7 +311,7 @@ var SkillRegistry = class _SkillRegistry extends RegistryAbstract {
311
311
  return skills;
312
312
  }
313
313
  /**
314
- * Get the "executable" subset — skills that declare at least one tool OR
314
+ * Get the "executable" subset \u2014 skills that declare at least one tool OR
315
315
  * at least one referenced openapi operation. These are the skills
316
316
  * `codecall:searchSkills` ranks. Honours hidden-filtering + availability
317
317
  * gating like {@link getSkills}.
@@ -320,7 +320,7 @@ var SkillRegistry = class _SkillRegistry extends RegistryAbstract {
320
320
  return this.getSkills(opts).filter((s) => s.isExecutable());
321
321
  }
322
322
  /**
323
- * Get the "knowledge-only" subset — skills with no tools and no
323
+ * Get the "knowledge-only" subset \u2014 skills with no tools and no
324
324
  * referenced openapi operations. These are the skills
325
325
  * `codecall:searchKnowledge` ranks. Honours hidden-filtering + availability
326
326
  * gating like {@link getSkills}.
@@ -352,13 +352,13 @@ var SkillRegistry = class _SkillRegistry extends RegistryAbstract {
352
352
  * Always merges the dynamic-skill overlay on top of the storage provider's
353
353
  * results. For ids present in `dynamicContents`, the provider's score and
354
354
  * ranking are preserved, but the metadata is replaced with the dynamic
355
- * projection — otherwise a stale provider row (from a re-registration whose
355
+ * projection \u2014 otherwise a stale provider row (from a re-registration whose
356
356
  * provider update lagged or failed) would mask the newer dynamic content.
357
357
  * Provider-only rows pass through unchanged; overlay-only rows are appended.
358
358
  */
359
359
  /**
360
360
  * Attach (or replace) the snapshot cache used to persist/restore the search
361
- * index — for runtimes where the cache binding only exists at request time
361
+ * index \u2014 for runtimes where the cache binding only exists at request time
362
362
  * (e.g. a Cloudflare KV namespace on `env`). No-op if the storage provider
363
363
  * doesn't support index caching. Pair with {@link warmIndex} to build/restore
364
364
  * the index off the first request's critical path.
@@ -546,7 +546,7 @@ var SkillRegistry = class _SkillRegistry extends RegistryAbstract {
546
546
  }
547
547
  }
548
548
  /**
549
- * Owner lineage (root → leaf) of a skill, or undefined when no row holds it. A skill a plugin
549
+ * Owner lineage (root \u2192 leaf) of a skill, or undefined when no row holds it. A skill a plugin
550
550
  * contributes is owned by the plugin; its lineage names the app the plugin is installed on.
551
551
  */
552
552
  lineageOf(entry) {
@@ -728,7 +728,7 @@ var SkillRegistry = class _SkillRegistry extends RegistryAbstract {
728
728
  };
729
729
  }
730
730
  /**
731
- * SEP-2640 §Discovery: extra resource-template entries to include in
731
+ * SEP-2640 \u00a7Discovery: extra resource-template entries to include in
732
732
  * `skill://index.json` for parameterised skill namespaces. Default is
733
733
  * empty; hosts populate this via {@link addSep2640IndexTemplate}.
734
734
  */
@@ -761,7 +761,7 @@ var SkillRegistry = class _SkillRegistry extends RegistryAbstract {
761
761
  this.bump("reset");
762
762
  }
763
763
  /**
764
- * SEP-2640 §Discovery — opt-in pointer to skill URIs from the server's
764
+ * SEP-2640 \u00a7Discovery \u2014 opt-in pointer to skill URIs from the server's
765
765
  * `instructions` field. When non-empty, the transport adapter prepends a
766
766
  * "Available skills:" block listing the URIs.
767
767
  */
@@ -74,9 +74,9 @@ var TasksResultFlow = class extends FlowBase {
74
74
  * Block until the task reaches a terminal state.
75
75
  *
76
76
  * Two wake-up paths:
77
- * 1. `subscribeTerminal` — instant for backends whose pub/sub reaches this
77
+ * 1. `subscribeTerminal` \u2014 instant for backends whose pub/sub reaches this
78
78
  * process (memory, Redis/Upstash, SQLite within the same process).
79
- * 2. Periodic `store.get` polling — the only path that works for the
79
+ * 2. Periodic `store.get` polling \u2014 the only path that works for the
80
80
  * SQLite backend when the caller and the runner live in different
81
81
  * processes (CLI runner + future stdio invocation). Without this, those
82
82
  * callers would block forever since the child's EventEmitter never
@@ -50,13 +50,13 @@ var TaskRegistry = class {
50
50
  }
51
51
  /**
52
52
  * Compute the MCP server capabilities contribution for tasks per
53
- * 2025-11-25 §Capabilities.
53
+ * 2025-11-25 \u00a7Capabilities.
54
54
  *
55
55
  * Advertises:
56
- * - `tasks.requests.tools.call` — when any tool declares taskSupport.
57
- * - `tasks.cancel` — always, when the feature is enabled.
58
- * - `tasks.list` — only when requestors can be identified (otherwise
59
- * listing would leak task metadata per spec §Security).
56
+ * - `tasks.requests.tools.call` \u2014 when any tool declares taskSupport.
57
+ * - `tasks.cancel` \u2014 always, when the feature is enabled.
58
+ * - `tasks.list` \u2014 only when requestors can be identified (otherwise
59
+ * listing would leak task metadata per spec \u00a7Security).
60
60
  */
61
61
  getCapabilities(inputs) {
62
62
  if (this.config.enabled === false) return {};
@@ -118,7 +118,7 @@ var stateSchema = z.object({
118
118
  // A timed-out execute() that is still running; its concurrency slot is released when it settles
119
119
  abandonedExecution: z.instanceof(Promise).optional(),
120
120
  // Task augmentation request (MCP 2025-11-25 tasks spec). Present when the
121
- // client sent `params.task`. `ttl` MUST be positive — 0 or negative values
121
+ // client sent `params.task`. `ttl` MUST be positive \u2014 0 or negative values
122
122
  // create a task that expires the instant it's persisted, which looks to the
123
123
  // client like a silent drop. Reject them at the validation boundary so the
124
124
  // client gets an InvalidInputError instead.
@@ -143,8 +143,8 @@ var plan = {
143
143
  "createTaskIfRequested",
144
144
  "createToolCallContext",
145
145
  // Credential gate runs AFTER the tool context is built (so the
146
- // CONTEXT-scoped credential accessors — this.authProviders /
147
- // this.credentials — are resolvable) but BEFORE quota/semaphore and the
146
+ // CONTEXT-scoped credential accessors \u2014 this.authProviders /
147
+ // this.credentials \u2014 are resolvable) but BEFORE quota/semaphore and the
148
148
  // execute stage, so a missing required credential aborts before execute().
149
149
  "checkToolCredentials",
150
150
  "acquireQuota",
@@ -463,7 +463,7 @@ var CallToolFlow = class extends FlowBase {
463
463
  * for display and are re-read from the signed payload server-side.
464
464
  *
465
465
  * When no verified subject or signing secret is available the URL is emitted
466
- * WITHOUT a ticket — the user then completes an ordinary login, which is the
466
+ * WITHOUT a ticket \u2014 the user then completes an ordinary login, which is the
467
467
  * correct fail-closed outcome rather than a credential-free shortcut.
468
468
  */
469
469
  buildProgressiveAuthUrl(appId, toolId, authInfo, priorAppIds) {