@frontmcp/sdk 1.10.9-rc.1 → 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 (90) hide show
  1. package/browser/agent/agent.registry.mjs +1 -1
  2. package/browser/app/instances/app.esm.instance.mjs +4 -4
  3. package/browser/app/instances/app.remote.instance.mjs +6 -6
  4. package/browser/auth/auth-ui/auth-ui.registry.mjs +6 -6
  5. package/browser/auth/flows/oauth.authorize.flow.mjs +5 -5
  6. package/browser/auth/flows/oauth.callback.flow.mjs +11 -11
  7. package/browser/auth/flows/oauth.connect.flow.mjs +1 -1
  8. package/browser/auth/flows/oauth.register.flow.mjs +1 -1
  9. package/browser/auth/flows/oauth.token.flow.mjs +1 -1
  10. package/browser/auth/flows/well-known.oauth-authorization-server.flow.mjs +5 -5
  11. package/browser/auth/instances/instance.local-primary-auth.mjs +10 -10
  12. package/browser/auth/session/utils/session-id.utils.mjs +1 -1
  13. package/browser/common/entries/skill.entry.mjs +2 -2
  14. package/browser/common/entries/tool.entry.mjs +3 -3
  15. package/browser/common/interfaces/channel.interface.mjs +1 -1
  16. package/browser/common/interfaces/execution-context.interface.mjs +4 -4
  17. package/browser/common/interfaces/internal/primary-auth-provider.interface.mjs +2 -2
  18. package/browser/common/metadata/app.metadata.mjs +1 -1
  19. package/browser/common/metadata/front-mcp.metadata.mjs +5 -5
  20. package/browser/common/tokens/app.tokens.mjs +1 -1
  21. package/browser/common/tokens/front-mcp.tokens.mjs +1 -1
  22. package/browser/common/types/options/http/schema.mjs +4 -4
  23. package/browser/common/types/options/redis/schema.mjs +1 -1
  24. package/browser/common/types/options/sqlite/schema.mjs +3 -3
  25. package/browser/common/types/options/transport/schema.mjs +4 -4
  26. package/browser/common/utils/decide-request-intent.utils.mjs +10 -10
  27. package/browser/context/frontmcp-context.mjs +1 -1
  28. package/browser/direct/direct-client.mjs +29 -29
  29. package/browser/direct/direct-server.mjs +14 -14
  30. package/browser/errors/job.errors.mjs +1 -1
  31. package/browser/errors/mcp.error.mjs +4 -4
  32. package/browser/errors/plugin.errors.mjs +1 -1
  33. package/browser/errors/task.error.mjs +1 -1
  34. package/browser/errors/tool-credentials-required.error.mjs +2 -2
  35. package/browser/esm-loader/esm-module-loader.mjs +1 -7
  36. package/browser/esm-loader/import-computed.mjs +11 -0
  37. package/browser/esm-loader/semver.utils.mjs +17 -11
  38. package/browser/flows/flow.instance.mjs +1 -1
  39. package/browser/front-mcp/front-mcp.mjs +10 -14
  40. package/browser/ha/ha-manager.mjs +1 -1
  41. package/browser/ha/notification-relay.mjs +1 -1
  42. package/browser/index.cjs +1210 -1438
  43. package/browser/index.mjs +4 -4
  44. package/browser/job/store/job-definition-store.factory.mjs +1 -1
  45. package/browser/job/store/redis-job-definition.store.mjs +2 -2
  46. package/browser/job/tools/get-job-status.tool.mjs +1 -1
  47. package/browser/logger/logger.registry.mjs +1 -1
  48. package/browser/metrics/metrics.service.mjs +3 -3
  49. package/browser/prompt/prompt.registry.mjs +1 -1
  50. package/browser/provider/provider.registry.mjs +4 -4
  51. package/browser/remote-mcp/mcp-client.service.mjs +19 -19
  52. package/browser/remote-mcp/resilience/circuit-breaker.mjs +2 -2
  53. package/browser/resource/resource.registry.mjs +2 -2
  54. package/browser/scope/flows/http.request.flow.mjs +3 -3
  55. package/browser/scope/scope.instance.mjs +4 -4
  56. package/browser/scope/scope.utils.mjs +1 -1
  57. package/browser/skill/providers/memory-skill.provider.mjs +2 -2
  58. package/browser/skill/skill.registry.mjs +10 -10
  59. package/browser/task/flows/tasks-result.flow.mjs +2 -2
  60. package/browser/task/task.registry.mjs +5 -5
  61. package/browser/tool/flows/call-tool.flow.mjs +4 -4
  62. package/browser/tool/tool.instance.mjs +4 -4
  63. package/browser/tool/tool.registry.mjs +4 -4
  64. package/browser/tool/ui/ui-shared.mjs +1 -1
  65. package/browser/transport/adapters/transport.local.adapter.mjs +2 -2
  66. package/browser/transport/adapters/transport.streamable-http.adapter.mjs +13 -4
  67. package/browser/transport/event-stores/redis.event-store.mjs +1 -1
  68. package/browser/transport/mcp-20260728/client/mcp-stateless.client.mjs +1 -1
  69. package/browser/transport/mcp-20260728/request-notifications.mjs +1 -1
  70. package/browser/transport/transport.registry.mjs +15 -9
  71. package/browser/transport/web-response.renderer.mjs +2 -2
  72. package/browser/utils/lineage.utils.mjs +1 -1
  73. package/browser/workflow/tools/get-workflow-status.tool.mjs +1 -1
  74. package/esm/esm-loader/import-computed.mjs +10 -0
  75. package/esm/index.mjs +136 -77113
  76. package/esm-loader/esm-module-loader.d.ts.map +1 -1
  77. package/esm-loader/import-computed.d.ts +21 -0
  78. package/esm-loader/import-computed.d.ts.map +1 -0
  79. package/esm-loader/import-computed.js +34 -0
  80. package/esm-loader/semver.utils.d.ts.map +1 -1
  81. package/front-mcp/front-mcp.d.ts.map +1 -1
  82. package/index.d.ts +9 -8
  83. package/index.d.ts.map +1 -1
  84. package/index.js +140 -77769
  85. package/package.json +14 -10
  86. package/transport/adapters/transport.streamable-http.adapter.d.ts +2 -1
  87. package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -1
  88. package/transport/transport.registry.d.ts +1 -0
  89. package/transport/transport.registry.d.ts.map +1 -1
  90. package/browser/transport/index.mjs +0 -32
@@ -115,7 +115,7 @@ var transportOptionsSchema = z.object({
115
115
  // Session Lifecycle
116
116
  // ============================================
117
117
  /**
118
- * @deprecated Ignored — sessions follow `protocol` (`'stateless-api'` serves without them). A value
118
+ * @deprecated Ignored \u2014 sessions follow `protocol` (`'stateless-api'` serves without them). A value
119
119
  * other than `'stateful'` logs a startup warning (`warnIfSessionModeIgnored`). Removed in the next
120
120
  * major (#702).
121
121
  */
@@ -128,13 +128,13 @@ var transportOptionsSchema = z.object({
128
128
  /**
129
129
  * Which MCP revision to serve a request that does not identify its own.
130
130
  *
131
- * A client that names a revision always gets that revision — this only
131
+ * A client that names a revision always gets that revision \u2014 this only
132
132
  * decides the fallback for a bare JSON-RPC call carrying no `initialize`, no
133
133
  * `Mcp-Session-Id`, and no `MCP-Protocol-Version`.
134
134
  *
135
- * - `'2026-07-28'` — serve it statelessly. No session is minted, so the
135
+ * - `'2026-07-28'` \u2014 serve it statelessly. No session is minted, so the
136
136
  * deployment needs no session storage (on Cloudflare, no Durable Object).
137
- * - `'legacy'` — the session/`initialize` pipeline, as before.
137
+ * - `'legacy'` \u2014 the session/`initialize` pipeline, as before.
138
138
  *
139
139
  * Defaults to `'2026-07-28'` on V8-isolate runtimes (Cloudflare Workers and
140
140
  * friends), where statelessness is the natural fit and sessions cost a
@@ -9,7 +9,7 @@ var intentSchema = z.union([
9
9
  z.literal("delete-session"),
10
10
  // Protocol 2026-07-28: stateless, sessionless, per-request version negotiation.
11
11
  // Decided by the router from the request's headers/`_meta`, not by the bitmap
12
- // rules below — those describe the session-oriented transports only.
12
+ // rules below \u2014 those describe the session-oriented transports only.
13
13
  z.literal("mcp-20260728"),
14
14
  z.literal("unknown")
15
15
  ]);
@@ -110,7 +110,7 @@ function computeBitmap(req, cfg) {
110
110
  return { key: channel & CH_MASK | flags, channel, flags, init };
111
111
  }
112
112
  var RULES = [
113
- // A) Legacy SSE via GET /sse path (without session) → requires legacy enabled
113
+ // A) Legacy SSE via GET /sse path (without session) \u2192 requires legacy enabled
114
114
  {
115
115
  care: CH_MASK | B_HAS_SESSION | B_LEGACY_EN,
116
116
  match: CH_GET_SSE_PATH | B_LEGACY_EN,
@@ -126,7 +126,7 @@ var RULES = [
126
126
  recommendation: { httpStatus: 405, message: "Legacy SSE disabled" }
127
127
  }
128
128
  },
129
- // A2) GET / + SSE (not /sse path) with session ID → SSE listener for streamable-http
129
+ // A2) GET / + SSE (not /sse path) with session ID \u2192 SSE listener for streamable-http
130
130
  // Per MCP 2025-11-25 spec, clients can open SSE stream via GET with session ID
131
131
  {
132
132
  care: CH_MASK | B_HAS_SESSION | B_SSE_LISTENER_EN | B_STREAMABLE_EN,
@@ -143,7 +143,7 @@ var RULES = [
143
143
  recommendation: { httpStatus: 405, message: "SSE listener disabled" }
144
144
  }
145
145
  },
146
- // A2c) GET / + SSE without session → forward to next middleware
146
+ // A2c) GET / + SSE without session \u2192 forward to next middleware
147
147
  {
148
148
  care: CH_MASK | B_HAS_SESSION,
149
149
  match: CH_GET_SSE,
@@ -167,7 +167,7 @@ var RULES = [
167
167
  recommendation: { httpStatus: 405, message: "Legacy SSE disabled" }
168
168
  }
169
169
  },
170
- // C) Modern SSE (GET /sse with session) → requires SSE listener enabled
170
+ // C) Modern SSE (GET /sse with session) \u2192 requires SSE listener enabled
171
171
  {
172
172
  care: CH_MASK | B_SSE_LISTENER_EN | B_HAS_SESSION,
173
173
  match: CH_GET_SSE_PATH | B_HAS_SESSION,
@@ -182,10 +182,10 @@ var RULES = [
182
182
  match: CH_GET_SSE_PATH | B_SSE_LISTENER_EN | B_HAS_SESSION,
183
183
  outcome: { intent: "sse", reason: "GET /sse with Mcp-Session-Id." }
184
184
  },
185
- // D) Initialize (POST → SSE)
185
+ // D) Initialize (POST \u2192 SSE)
186
186
  // D1) Stateless initialize (no session, stateless enabled, streamable NOT enabled)
187
187
  // When streamable is also enabled, prefer streamable-http (which creates a session).
188
- // Per MCP spec, first initialize naturally has no session — stateless should only
188
+ // Per MCP spec, first initialize naturally has no session \u2014 stateless should only
189
189
  // match when it's the sole enabled protocol.
190
190
  {
191
191
  care: CH_MASK | B_HAS_SESSION | B_STATELESS_EN | B_STREAMABLE_EN,
@@ -206,7 +206,7 @@ var RULES = [
206
206
  match: CH_POST_INIT_SSE | B_STREAMABLE_EN,
207
207
  outcome: { intent: "streamable-http", reason: "Initialize with SSE." }
208
208
  },
209
- // E) Initialize (POST → JSON)
209
+ // E) Initialize (POST \u2192 JSON)
210
210
  // E1) Stateless initialize JSON (no session, stateless enabled, streamable NOT enabled)
211
211
  {
212
212
  care: CH_MASK | B_HAS_SESSION | B_STATELESS_EN | B_STREAMABLE_EN,
@@ -227,7 +227,7 @@ var RULES = [
227
227
  match: CH_POST_INIT_JSON | B_STREAMABLE_EN,
228
228
  outcome: { intent: "stateful-http", reason: "Initialize with JSON." }
229
229
  },
230
- // F) POST non-init → SSE
230
+ // F) POST non-init \u2192 SSE
231
231
  {
232
232
  care: CH_MASK | B_REQ_SESSION | B_HAS_SESSION | B_STATELESS_EN,
233
233
  match: CH_POST_SSE | B_REQ_SESSION,
@@ -257,7 +257,7 @@ var RULES = [
257
257
  match: CH_POST_SSE,
258
258
  outcome: { intent: "streamable-http", reason: "Short-lived SSE for this request." }
259
259
  },
260
- // G) POST non-init → JSON
260
+ // G) POST non-init \u2192 JSON
261
261
  {
262
262
  care: CH_MASK | B_REQ_SESSION | B_HAS_SESSION | B_STATELESS_EN,
263
263
  match: CH_POST_JSON | B_REQ_SESSION,
@@ -307,7 +307,7 @@ var FrontMcpContext = class {
307
307
  * Attach the request's MRTR exchange.
308
308
  *
309
309
  * Set by the 2026-07-28 dispatcher before running a request. Its presence is
310
- * what switches `elicit()` from the inline server→client round trip (removed
310
+ * what switches `elicit()` from the inline server\u2192client round trip (removed
311
311
  * in this revision) to the `InputRequiredResult` round trip.
312
312
  *
313
313
  * @internal
@@ -181,9 +181,9 @@ var DirectClientImpl = class _DirectClientImpl {
181
181
  }
182
182
  return { action: "decline" };
183
183
  }
184
- // ─────────────────────────────────────────────────────────────────────────────
184
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
185
185
  // Tool Operations (platform-formatted)
186
- // ─────────────────────────────────────────────────────────────────────────────
186
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
187
187
  async listTools() {
188
188
  const tools = await listAllPages("tools/list", async (cursor) => {
189
189
  const result = await this.mcpClient.listTools(cursor ? { cursor } : void 0);
@@ -200,9 +200,9 @@ var DirectClientImpl = class _DirectClientImpl {
200
200
  if (result.isError && this.platform !== "raw") throw new ToolCallError(name, result);
201
201
  return formatResultForPlatform(result, this.platform);
202
202
  }
203
- // ─────────────────────────────────────────────────────────────────────────────
203
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
204
204
  // Resource Operations (raw format)
205
- // ─────────────────────────────────────────────────────────────────────────────
205
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
206
206
  async listResources() {
207
207
  const resources = await listAllPages("resources/list", async (cursor) => {
208
208
  const result = await this.mcpClient.listResources(cursor ? { cursor } : void 0);
@@ -223,9 +223,9 @@ var DirectClientImpl = class _DirectClientImpl {
223
223
  );
224
224
  return { resourceTemplates };
225
225
  }
226
- // ─────────────────────────────────────────────────────────────────────────────
226
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
227
227
  // Prompt Operations (raw format)
228
- // ─────────────────────────────────────────────────────────────────────────────
228
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
229
229
  async listPrompts() {
230
230
  const prompts = await listAllPages("prompts/list", async (cursor) => {
231
231
  const result = await this.mcpClient.listPrompts(cursor ? { cursor } : void 0);
@@ -239,9 +239,9 @@ var DirectClientImpl = class _DirectClientImpl {
239
239
  arguments: args
240
240
  });
241
241
  }
242
- // ─────────────────────────────────────────────────────────────────────────────
242
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
243
243
  // Info
244
- // ─────────────────────────────────────────────────────────────────────────────
244
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
245
245
  getSessionId() {
246
246
  return this.sessionId;
247
247
  }
@@ -257,9 +257,9 @@ var DirectClientImpl = class _DirectClientImpl {
257
257
  getDetectedPlatform() {
258
258
  return this.platform;
259
259
  }
260
- // ─────────────────────────────────────────────────────────────────────────────
260
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
261
261
  // Lifecycle
262
- // ─────────────────────────────────────────────────────────────────────────────
262
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
263
263
  async close() {
264
264
  try {
265
265
  await this.mcpClient.close();
@@ -273,7 +273,7 @@ var DirectClientImpl = class _DirectClientImpl {
273
273
  }
274
274
  }
275
275
  }
276
- // ─────────────────────────────────────────────────────────────────────────────
276
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
277
277
  // Skills Operations
278
278
  //
279
279
  // NOTE: Skills methods use `{} as any` for the response schema parameter because:
@@ -282,7 +282,7 @@ var DirectClientImpl = class _DirectClientImpl {
282
282
  // SkillsLoadResultSchema, and SkillsListResultSchema
283
283
  // 3. The MCP SDK's client.request() validates responses using these schemas
284
284
  // 4. Schemas are shared between client and server
285
- // ─────────────────────────────────────────────────────────────────────────────
285
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
286
286
  /**
287
287
  * Search for skills matching a query.
288
288
  *
@@ -346,12 +346,12 @@ var DirectClientImpl = class _DirectClientImpl {
346
346
  );
347
347
  }
348
348
  /**
349
- * SEP-2640 convenience wrapper — see `DirectClient.listSep2640Skills`.
349
+ * SEP-2640 convenience wrapper \u2014 see `DirectClient.listSep2640Skills`.
350
350
  *
351
351
  * Reads `skill://index.json` via `resources/read`, validates the
352
352
  * agentskills.io v0.2.0 schema URI, and returns the parsed entries.
353
353
  * Returns `[]` (with a console.warn) when the resource isn't present,
354
- * per SEP §Discovery: hosts MUST NOT treat absence as proof of zero
354
+ * per SEP \u00a7Discovery: hosts MUST NOT treat absence as proof of zero
355
355
  * skills, but the convenience helper degrades gracefully.
356
356
  */
357
357
  async listSep2640Skills() {
@@ -390,7 +390,7 @@ var DirectClientImpl = class _DirectClientImpl {
390
390
  });
391
391
  }
392
392
  /**
393
- * SEP-2640 convenience wrapper — see `DirectClient.readSkillUri`.
393
+ * SEP-2640 convenience wrapper \u2014 see `DirectClient.readSkillUri`.
394
394
  *
395
395
  * Performs `resources/read` on a `skill://` URI and returns the body
396
396
  * text directly. Throws when given a non-`skill://` URI to keep
@@ -412,9 +412,9 @@ var DirectClientImpl = class _DirectClientImpl {
412
412
  }
413
413
  return text;
414
414
  }
415
- // ─────────────────────────────────────────────────────────────────────────────
415
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
416
416
  // Elicitation Operations
417
- // ─────────────────────────────────────────────────────────────────────────────
417
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
418
418
  onElicitation(handler) {
419
419
  this.elicitationHandler = handler;
420
420
  return () => {
@@ -424,15 +424,15 @@ var DirectClientImpl = class _DirectClientImpl {
424
424
  async submitElicitationResult(elicitId, response) {
425
425
  return this.callTool("sendElicitationResult", { elicitId, ...response });
426
426
  }
427
- // ─────────────────────────────────────────────────────────────────────────────
427
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
428
428
  // Completion Operations
429
- // ─────────────────────────────────────────────────────────────────────────────
429
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
430
430
  async complete(options) {
431
431
  return this.mcpClient.complete(options);
432
432
  }
433
- // ─────────────────────────────────────────────────────────────────────────────
433
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
434
434
  // Resource Subscription Operations
435
- // ─────────────────────────────────────────────────────────────────────────────
435
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
436
436
  async subscribeResource(uri) {
437
437
  await this.mcpClient.subscribeResource({ uri });
438
438
  }
@@ -451,15 +451,15 @@ var DirectClientImpl = class _DirectClientImpl {
451
451
  this.notificationHandlers.delete(handler);
452
452
  };
453
453
  }
454
- // ─────────────────────────────────────────────────────────────────────────────
454
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
455
455
  // Logging Operations
456
- // ─────────────────────────────────────────────────────────────────────────────
456
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
457
457
  async setLogLevel(level) {
458
458
  await this.mcpClient.setLoggingLevel(level);
459
459
  }
460
- // ─────────────────────────────────────────────────────────────────────────────
460
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
461
461
  // Job Operations (via MCP tools)
462
- // ─────────────────────────────────────────────────────────────────────────────
462
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
463
463
  async callToolAndParseJson(toolName, args) {
464
464
  const result = await this.mcpClient.callTool({ name: toolName, arguments: args });
465
465
  const textContent = result.content?.find((c) => c.type === "text");
@@ -481,9 +481,9 @@ var DirectClientImpl = class _DirectClientImpl {
481
481
  async getJobStatus(runId) {
482
482
  return this.callToolAndParseJson("get_job_status", { runId });
483
483
  }
484
- // ─────────────────────────────────────────────────────────────────────────────
484
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
485
485
  // Workflow Operations (via MCP tools)
486
- // ─────────────────────────────────────────────────────────────────────────────
486
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
487
487
  async listWorkflows(options) {
488
488
  return this.callToolAndParseJson("list_workflows", { ...options });
489
489
  }
@@ -497,9 +497,9 @@ var DirectClientImpl = class _DirectClientImpl {
497
497
  async getWorkflowStatus(runId) {
498
498
  return this.callToolAndParseJson("get_workflow_status", { runId });
499
499
  }
500
- // ─────────────────────────────────────────────────────────────────────────────
500
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
501
501
  // Build-Time Asset Collection
502
- // ─────────────────────────────────────────────────────────────────────────────
502
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
503
503
  async collectSkillAssets() {
504
504
  const scope = this.scopeRef;
505
505
  if (!scope?.skills) return { entries: [] };
@@ -85,9 +85,9 @@ var DirectMcpServerImpl = class {
85
85
  throw failure;
86
86
  }
87
87
  }
88
- // ─────────────────────────────────────────────────────────────────
88
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
89
89
  // Tool Operations
90
- // ─────────────────────────────────────────────────────────────────
90
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
91
91
  /**
92
92
  * Run a list flow: the one page `options` asks for, or every page joined into one result (#678).
93
93
  * Every page is read with the same call options, so with the same caller and session.
@@ -120,9 +120,9 @@ var DirectMcpServerImpl = class {
120
120
  }
121
121
  return registerRuntimeTool(this.scope, definition);
122
122
  }
123
- // ─────────────────────────────────────────────────────────────────
123
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
124
124
  // Resource Operations
125
- // ─────────────────────────────────────────────────────────────────
125
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
126
126
  async listResources(options) {
127
127
  return this.runListFlow(
128
128
  "resources:list-resources",
@@ -146,9 +146,9 @@ var DirectMcpServerImpl = class {
146
146
  options
147
147
  );
148
148
  }
149
- // ─────────────────────────────────────────────────────────────────
149
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
150
150
  // Prompt Operations
151
- // ─────────────────────────────────────────────────────────────────
151
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
152
152
  async listPrompts(options) {
153
153
  return this.runListFlow("prompts:list-prompts", "prompts/list", "prompts", options);
154
154
  }
@@ -159,9 +159,9 @@ var DirectMcpServerImpl = class {
159
159
  options
160
160
  );
161
161
  }
162
- // ─────────────────────────────────────────────────────────────────
162
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
163
163
  // Job Operations - delegate to MCP tools
164
- // ─────────────────────────────────────────────────────────────────
164
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
165
165
  async listJobs(options) {
166
166
  return this.callTool("list_jobs", {}, options);
167
167
  }
@@ -175,9 +175,9 @@ var DirectMcpServerImpl = class {
175
175
  async getJobStatus(runId, options) {
176
176
  return this.callTool("get_job_status", { runId }, options);
177
177
  }
178
- // ─────────────────────────────────────────────────────────────────
178
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
179
179
  // Workflow Operations - delegate to MCP tools
180
- // ─────────────────────────────────────────────────────────────────
180
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
181
181
  async listWorkflows(options) {
182
182
  return this.callTool("list_workflows", {}, options);
183
183
  }
@@ -191,9 +191,9 @@ var DirectMcpServerImpl = class {
191
191
  async getWorkflowStatus(runId, options) {
192
192
  return this.callTool("get_workflow_status", { runId }, options);
193
193
  }
194
- // ─────────────────────────────────────────────────────────────────
194
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
195
195
  // Client Connections
196
- // ─────────────────────────────────────────────────────────────────
196
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
197
197
  async connect(sessionIdOrOptions) {
198
198
  if (this._isDisposed) {
199
199
  throw new InternalMcpError("DirectMcpServer has been disposed");
@@ -204,9 +204,9 @@ var DirectMcpServerImpl = class {
204
204
  const { DirectClientImpl } = await import("./direct-client.mjs");
205
205
  return DirectClientImpl.create(this.scope, options);
206
206
  }
207
- // ─────────────────────────────────────────────────────────────────
207
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
208
208
  // Lifecycle
209
- // ─────────────────────────────────────────────────────────────────
209
+ // \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
210
210
  async dispose() {
211
211
  if (this._isDisposed) return;
212
212
  this._isDisposed = true;
@@ -1,7 +1,7 @@
1
1
  // libs/sdk/src/errors/job.errors.ts
2
2
  import { PublicMcpError } from "./mcp.error.mjs";
3
3
  var JobNotAuthorizedError = class extends PublicMcpError {
4
- /** The requested name, for internal logs only — never surfaced publicly. */
4
+ /** The requested name, for internal logs only \u2014 never surfaced publicly. */
5
5
  requestedName;
6
6
  constructor(requestedName) {
7
7
  super(`Job or workflow "${requestedName}" not found or not permitted`, "JOB_NOT_AUTHORIZED", 403);
@@ -142,7 +142,7 @@ var EntryUnavailableError = class extends PublicMcpError {
142
142
  entryName;
143
143
  availability;
144
144
  runtimeContext;
145
- /** Issue #417 — axes that failed to match (e.g. ['surface', 'provider']). */
145
+ /** Issue #417 \u2014 axes that failed to match (e.g. ['surface', 'provider']). */
146
146
  missingAxes;
147
147
  constructor(entryType, entryName, availability, runtimeContext, missingAxes = []) {
148
148
  const safeStringify = (v) => {
@@ -169,7 +169,7 @@ var EntryUnavailableError = class extends PublicMcpError {
169
169
  /**
170
170
  * Convert to JSON-RPC error format per MCP specification.
171
171
  *
172
- * Issue #417 — `data` now exposes `{tool, missingAxes, constraint, context}`
172
+ * Issue #417 \u2014 `data` now exposes `{tool, missingAxes, constraint, context}`
173
173
  * so MCP clients can react structurally without parsing prose.
174
174
  */
175
175
  toJsonRpcError() {
@@ -252,7 +252,7 @@ Details: ${JSON.stringify(this.validationErrors, null, 2)}`;
252
252
  };
253
253
  var InvalidOutputError = class extends InternalMcpError {
254
254
  hasCustomErrorId;
255
- /** Optional structured context — path/value/reason — for diagnostics. */
255
+ /** Optional structured context \u2014 path/value/reason \u2014 for diagnostics. */
256
256
  details;
257
257
  constructor(errorIdOrDetails, maybeDetails) {
258
258
  const errorId = typeof errorIdOrDetails === "string" ? errorIdOrDetails : void 0;
@@ -463,7 +463,7 @@ var AuthorityDeniedMcpError = class extends PublicMcpError {
463
463
  }
464
464
  };
465
465
  var GuardLimitMcpError = class extends PublicMcpError {
466
- /** The guard's own message — what the server logs. */
466
+ /** The guard's own message \u2014 what the server logs. */
467
467
  detail;
468
468
  constructor(error) {
469
469
  super(publicGuardMessage(error), error.code, error.statusCode);
@@ -1,7 +1,7 @@
1
1
  // libs/sdk/src/errors/plugin.errors.ts
2
2
  import { PublicMcpError } from "./mcp.error.mjs";
3
3
  var UnenforcedMetadataError = class extends PublicMcpError {
4
- /** One line per entry and field, e.g. `Tool "wipe_disk" declares 'approval' (enforced by …)`. */
4
+ /** One line per entry and field, e.g. `Tool "wipe_disk" declares 'approval' (enforced by \u2026)`. */
5
5
  errors;
6
6
  suggestion;
7
7
  constructor(problems) {
@@ -32,7 +32,7 @@ var TaskAugmentationNotSupportedError = class extends PublicMcpError {
32
32
  }
33
33
  };
34
34
  var TaskAugmentationRequiredError = class extends PublicMcpError {
35
- // Per MCP 2025-11-25 §Tool-Level Negotiation: tool-level `taskSupport: "required"`
35
+ // Per MCP 2025-11-25 \u00a7Tool-Level Negotiation: tool-level `taskSupport: "required"`
36
36
  // without task augmentation MUST return -32601 (Method not found).
37
37
  mcpErrorCode = MCP_ERROR_CODES.METHOD_NOT_FOUND;
38
38
  constructor(toolName) {
@@ -27,8 +27,8 @@ var ToolCredentialsRequiredError = class extends PublicMcpError {
27
27
  * "data": {
28
28
  * "tool": "deploy_app",
29
29
  * "providers": ["github"],
30
- * "authUrl": "https://.../oauth/connect?token=…",
31
- * "auth_url": "https://.../oauth/connect?token=…"
30
+ * "authUrl": "https://.../oauth/connect?token=\u2026",
31
+ * "auth_url": "https://.../oauth/connect?token=\u2026"
32
32
  * }
33
33
  * }
34
34
  */
@@ -10,17 +10,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
10
10
 
11
11
  // libs/sdk/src/esm-loader/esm-module-loader.ts
12
12
  import { sha256Hex } from "@frontmcp/utils";
13
+ import { importComputed } from "./import-computed.mjs";
13
14
  import { EsmCacheError, EsmManifestInvalidError, EsmPackageLoadError } from "../errors/esm.errors.mjs";
14
15
  import { normalizeEsmExport } from "./esm-manifest.mjs";
15
16
  import { applyImportMap, buildEsmShUrl, importMapPackages } from "./package-specifier.mjs";
16
17
  import { VersionResolver } from "./version-resolver.mjs";
17
- function importComputed(specifier) {
18
- return import(
19
- /* webpackIgnore: true */
20
- /* @vite-ignore */
21
- specifier
22
- );
23
- }
24
18
  var EsmModuleLoader = class {
25
19
  cache;
26
20
  versionResolver;
@@ -0,0 +1,11 @@
1
+ // libs/sdk/src/esm-loader/import-computed.ts
2
+ function importComputed(specifier) {
3
+ return import(
4
+ /* webpackIgnore: true */
5
+ /* @vite-ignore */
6
+ specifier
7
+ );
8
+ }
9
+ export {
10
+ importComputed
11
+ };
@@ -1,37 +1,43 @@
1
1
  // libs/sdk/src/esm-loader/semver.utils.ts
2
- import * as semver from "semver";
2
+ import semverCompare from "semver/functions/compare.js";
3
+ import semverGt from "semver/functions/gt.js";
4
+ import semverRcompare from "semver/functions/rcompare.js";
5
+ import semverSatisfies from "semver/functions/satisfies.js";
6
+ import semverValid from "semver/functions/valid.js";
7
+ import semverMaxSatisfying from "semver/ranges/max-satisfying.js";
8
+ import semverValidRange from "semver/ranges/valid.js";
3
9
  function isDistTag(range) {
4
- return /^[a-zA-Z][a-zA-Z0-9]*$/.test(range) && semver.validRange(range) === null;
10
+ return /^[a-zA-Z][a-zA-Z0-9]*$/.test(range) && semverValidRange(range) === null;
5
11
  }
6
12
  function satisfiesRange(version, range) {
7
13
  if (range === "latest" || isDistTag(range)) return true;
8
- return semver.satisfies(version, range);
14
+ return semverSatisfies(version, range);
9
15
  }
10
- function maxSatisfying2(versions, range) {
16
+ function maxSatisfying(versions, range) {
11
17
  if (range === "latest" || isDistTag(range)) {
12
- const sorted = versions.filter((v) => semver.valid(v)).sort(semver.rcompare);
18
+ const sorted = versions.filter((v) => semverValid(v)).sort(semverRcompare);
13
19
  return sorted[0] ?? null;
14
20
  }
15
- return semver.maxSatisfying(versions, range);
21
+ return semverMaxSatisfying(versions, range);
16
22
  }
17
23
  function isValidRange(range) {
18
24
  if (range === "latest" || isDistTag(range)) return true;
19
- return semver.validRange(range) !== null;
25
+ return semverValidRange(range) !== null;
20
26
  }
21
27
  function isValidVersion(version) {
22
- return semver.valid(version) !== null;
28
+ return semverValid(version) !== null;
23
29
  }
24
30
  function compareVersions(v1, v2) {
25
- return semver.compare(v1, v2);
31
+ return semverCompare(v1, v2);
26
32
  }
27
33
  function isNewerVersion(v1, v2) {
28
- return semver.gt(v1, v2);
34
+ return semverGt(v1, v2);
29
35
  }
30
36
  export {
31
37
  compareVersions,
32
38
  isNewerVersion,
33
39
  isValidRange,
34
40
  isValidVersion,
35
- maxSatisfying2 as maxSatisfying,
41
+ maxSatisfying,
36
42
  satisfiesRange
37
43
  };
@@ -165,7 +165,7 @@ var FlowInstance = class extends FlowEntry {
165
165
  * no-op so flows never mount as routes). It mirrors how Express dispatches:
166
166
  * method + `middleware.path` (mounted as a prefix) + `canActivate`.
167
167
  *
168
- * Only flows with a SPECIFIC matcher qualify — a `middleware.path` (e.g.
168
+ * Only flows with a SPECIFIC matcher qualify \u2014 a `middleware.path` (e.g.
169
169
  * `/oauth/token`) and/or a `canActivate` (static class method or
170
170
  * `middleware.canActivate`, e.g. the well-known PRM path set). A bare
171
171
  * `{ method }` middleware is too broad to safely claim an arbitrary request,