ostacky 0.9.4 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -25
- package/assets/agents/ostacky.md +3 -3
- package/assets/commands/install-stack.md +2 -2
- package/assets/mcp/ostacky-controller/index.js +80 -19
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/{auth-CVhIKulL.d.mts → auth--n_Yzytt.d.cts} +14 -9
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/{auth-CVhIKulL.d.mts.map → auth--n_Yzytt.d.cts.map} +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/{auth-CfDMXiII.cjs → auth-4-zilcqg.cjs} +3 -2
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/auth-4-zilcqg.cjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/{auth-CUe6YdwF.mjs → auth-CGP0BDVq.mjs} +3 -2
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/auth-CGP0BDVq.mjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/{auth-B2Q9_Vxp.d.cts → auth-YUQV3RRv.d.mts} +14 -9
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/{auth-B2Q9_Vxp.d.cts.map → auth-YUQV3RRv.d.mts.map} +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/index.cjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/index.d.cts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/index.d.mts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/index.mjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/internal.cjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/internal.mjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/package.json +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/README.md +3 -3
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{ajvProvider-CplOkyLC.mjs → ajvProvider-CEoC__sr.mjs} +483 -38
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{ajvProvider-BdSo9BII.d.mts → ajvProvider-CgI-5L6O.d.mts} +25 -8
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{ajvProvider-BdSo9BII.d.mts.map → ajvProvider-CgI-5L6O.d.mts.map} +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{ajvProvider-B_4czhCS.d.cts → ajvProvider-FOQRM7up.d.cts} +24 -7
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{ajvProvider-B_4czhCS.d.cts.map → ajvProvider-FOQRM7up.d.cts.map} +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{ajvProvider-Brn-Q2J_.cjs → ajvProvider-ZaoO9afR.cjs} +483 -38
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{cfWorkerProvider-ojcZaap3.cjs → cfWorkerProvider-BwbPzsdI.cjs} +25 -15
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{cfWorkerProvider-BYRW5af5.d.mts → cfWorkerProvider-C03CSigr.d.mts} +21 -6
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{cfWorkerProvider-D9GAttn8.d.cts → cfWorkerProvider-doTkZbTr.d.cts} +20 -5
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{cfWorkerProvider-Bd-iTHAF.mjs → cfWorkerProvider-p3WaZPqB.mjs} +26 -15
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{createMcpHandler-DzBzpE4_.d.cts → createMcpHandler-BLVe3qmU.d.cts} +137 -32
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-BLVe3qmU.d.cts.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{createMcpHandler-CEckaSEs.d.mts → createMcpHandler-Bt6U_Fqb.d.mts} +138 -33
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-Bt6U_Fqb.d.mts.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs +46 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs +34 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.cjs +209 -257
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.cjs.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.d.cts +45 -3
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.d.cts.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.d.mts +46 -4
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.d.mts.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.mjs +201 -252
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/index.mjs.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{mcp-DM1iHYFo.cjs → mcp-DUcCQSTW.cjs} +458 -35
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/mcp-DUcCQSTW.cjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{mcp-IJurDZVN.mjs → mcp-Dw2OlZ1f.mjs} +389 -32
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/mcp-Dw2OlZ1f.mjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsNode.cjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.cts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.mts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsNode.mjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs +2 -2
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs +2 -2
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{src-BX_fm-dB.cjs → src-CgFsfg3E.cjs} +161 -48
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/src-CgFsfg3E.cjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{src-D86MbS1I.mjs → src-D-y6h4N7.mjs} +161 -48
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/src-D-y6h4N7.mjs.map +1 -0
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.cjs +30 -3
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.cjs.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts +9 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts +9 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.mjs +30 -3
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/stdio.mjs.map +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{types-mS0yxCL0.d.mts → types-DUs7mGBv.d.mts} +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/{types-mS0yxCL0.d.mts.map → types-DUs7mGBv.d.mts.map} +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/ajv.cjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.cts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.mts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/ajv.mjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.cjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.cts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.mts +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.mjs +1 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/package.json +4 -4
- package/assets/mcp/ostacky-controller/package.json +1 -1
- package/assets/plugins/ostacky-controller/index.ts +43 -8
- package/dist/cli.js +130 -74
- package/manifest.json +29 -29
- package/package.json +7 -2
- package/assets/mcp/openspec/bun.lock +0 -20
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/ajvProvider-Brn-Q2J_.cjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CplOkyLC.mjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BYRW5af5.d.mts.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-Bd-iTHAF.mjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-D9GAttn8.d.cts.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-ojcZaap3.cjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-CEckaSEs.d.mts.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-DzBzpE4_.d.cts.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/mcp-DM1iHYFo.cjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/mcp-IJurDZVN.mjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/src-BX_fm-dB.cjs.map +0 -1
- package/assets/mcp/ostacky-controller/node_modules/@modelcontextprotocol/server/dist/src-D86MbS1I.mjs.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./chunk-Br0eD_fh.mjs";
|
|
2
|
+
import { n as declares2019Dialect } from "./dialects-DoSzNhcb.mjs";
|
|
2
3
|
import { AnnotationsSchema, AudioContentSchema, BAGGAGE_META_KEY, BaseMetadataSchema, BaseRequestParamsSchema, BlobResourceContentsSchema, BooleanSchemaSchema, CLIENT_CAPABILITIES_META_KEY, CLIENT_INFO_META_KEY, CallToolRequestParamsSchema, CallToolRequestSchema, CallToolResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, CancelledNotificationParamsSchema, CancelledNotificationSchema, ClientCapabilitiesSchema, ClientNotificationSchema, ClientRequestSchema, ClientResultSchema, ClientTasksCapabilitySchema, CompatibilityCallToolResultSchema, CompleteRequestParamsSchema, CompleteRequestSchema, CompleteResultSchema, ContentBlockSchema, CreateMessageRequestParamsSchema, CreateMessageRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, CreateTaskResultSchema, CursorSchema, DEFAULT_NEGOTIATED_PROTOCOL_VERSION, DiscoverRequestSchema, DiscoverResultSchema, ElicitRequestFormParamsSchema, ElicitRequestParamsSchema, ElicitRequestSchema, ElicitRequestURLParamsSchema, ElicitResultSchema, ElicitationCompleteNotificationParamsSchema, ElicitationCompleteNotificationSchema, EmbeddedResourceSchema, EmptyResultSchema, EnumSchemaSchema, GetPromptRequestParamsSchema, GetPromptRequestSchema, GetPromptResultSchema, GetTaskPayloadRequestSchema, GetTaskPayloadResultSchema, GetTaskRequestSchema, GetTaskResultSchema, INTERNAL_ERROR, INVALID_PARAMS, INVALID_REQUEST, IconSchema, IconsSchema, IdJagTokenExchangeResponseSchema, ImageContentSchema, ImplementationSchema, InitializeRequestParamsSchema, InitializeRequestSchema, InitializeResultSchema, InitializedNotificationSchema, JSONArraySchema, JSONObjectSchema, JSONRPCErrorResponseSchema, JSONRPCMessageSchema, JSONRPCNotificationSchema, JSONRPCRequestSchema, JSONRPCResponseSchema, JSONRPCResultResponseSchema, JSONRPC_VERSION, JSONValueSchema, LATEST_PROTOCOL_VERSION, LOG_LEVEL_META_KEY, LegacyTitledEnumSchemaSchema, ListChangedOptionsBaseSchema, ListPromptsRequestSchema, ListPromptsResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListRootsRequestSchema, ListRootsResultSchema, ListTasksRequestSchema, ListTasksResultSchema, ListToolsRequestSchema, ListToolsResultSchema, LoggingLevelSchema, LoggingMessageNotificationParamsSchema, LoggingMessageNotificationSchema, METHOD_NOT_FOUND, ModelHintSchema, ModelPreferencesSchema, MultiSelectEnumSchemaSchema, NotificationSchema, NotificationsParamsSchema, NumberSchemaSchema, OAuthClientInformationFullSchema, OAuthClientInformationSchema, OAuthClientMetadataSchema, OAuthClientRegistrationErrorSchema, OAuthErrorResponseSchema, OAuthMetadataSchema, OAuthProtectedResourceMetadataSchema, OAuthTokenRevocationRequestSchema, OAuthTokensSchema, OpenIdProviderDiscoveryMetadataSchema, OpenIdProviderMetadataSchema, PARSE_ERROR, PROTOCOL_VERSION_META_KEY, PaginatedRequestParamsSchema, PaginatedRequestSchema, PaginatedResultSchema, PingRequestSchema, PrimitiveSchemaDefinitionSchema, ProgressNotificationParamsSchema, ProgressNotificationSchema, ProgressSchema, ProgressTokenSchema, PromptArgumentSchema, PromptListChangedNotificationSchema, PromptMessageSchema, PromptReferenceSchema, PromptSchema, RELATED_TASK_META_KEY, ReadResourceRequestParamsSchema, ReadResourceRequestSchema, ReadResourceResultSchema, RelatedTaskMetadataSchema, RequestIdSchema, RequestMetaSchema, RequestSchema, ResourceContentsSchema, ResourceLinkSchema, ResourceListChangedNotificationSchema, ResourceRequestParamsSchema, ResourceSchema, ResourceTemplateReferenceSchema, ResourceTemplateSchema, ResourceUpdatedNotificationParamsSchema, ResourceUpdatedNotificationSchema, ResultMetaObjectSchema, ResultSchema, RoleSchema, RootSchema, RootsListChangedNotificationSchema, SERVER_INFO_META_KEY, SUBSCRIPTION_ID_META_KEY, SUPPORTED_PROTOCOL_VERSIONS, SamplingContentSchema, SamplingMessageContentBlockSchema, SamplingMessageSchema, ServerCapabilitiesSchema, ServerNotificationSchema, ServerRequestSchema, ServerResultSchema, ServerTasksCapabilitySchema, SetLevelRequestParamsSchema, SetLevelRequestSchema, SingleSelectEnumSchemaSchema, StringSchemaSchema, SubscribeRequestParamsSchema, SubscribeRequestSchema, SubscriptionFilterSchema, SubscriptionsAcknowledgedNotificationParamsSchema, SubscriptionsAcknowledgedNotificationSchema, SubscriptionsListenRequestParamsSchema, SubscriptionsListenRequestSchema, SubscriptionsListenResultMetaSchema, SubscriptionsListenResultSchema, TRACEPARENT_META_KEY, TRACESTATE_META_KEY, TaskAugmentedRequestParamsSchema, TaskCreationParamsSchema, TaskMetadataSchema, TaskSchema, TaskStatusNotificationParamsSchema, TaskStatusNotificationSchema, TaskStatusSchema, TextContentSchema, TextResourceContentsSchema, TitledMultiSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema, ToolAnnotationsSchema, ToolChoiceSchema, ToolExecutionSchema, ToolListChangedNotificationSchema, ToolResultContentSchema, ToolSchema, ToolUseContentSchema, UnsubscribeRequestParamsSchema, UnsubscribeRequestSchema, UntitledMultiSelectEnumSchemaSchema, UntitledSingleSelectEnumSchemaSchema } from "@modelcontextprotocol/core/internal";
|
|
3
4
|
import * as z from "zod/v4";
|
|
4
5
|
|
|
@@ -175,6 +176,16 @@ let OAuthErrorCode = /* @__PURE__ */ function(OAuthErrorCode$1) {
|
|
|
175
176
|
* The requested resource is invalid, missing, unknown, or malformed. (Custom error for resource indicators - RFC 8707)
|
|
176
177
|
*/
|
|
177
178
|
OAuthErrorCode$1["InvalidTarget"] = "invalid_target";
|
|
179
|
+
/**
|
|
180
|
+
* The DPoP proof accompanying the request is invalid, or does not match the key the grant
|
|
181
|
+
* (e.g. a refresh token) is bound to. (RFC 9449 §5 / §7.1)
|
|
182
|
+
*/
|
|
183
|
+
OAuthErrorCode$1["InvalidDpopProof"] = "invalid_dpop_proof";
|
|
184
|
+
/**
|
|
185
|
+
* The server requires a server-supplied nonce in the DPoP proof; retry with the `DPoP-Nonce`
|
|
186
|
+
* it returned. (RFC 9449 §8 / §9)
|
|
187
|
+
*/
|
|
188
|
+
OAuthErrorCode$1["UseDpopNonce"] = "use_dpop_nonce";
|
|
178
189
|
return OAuthErrorCode$1;
|
|
179
190
|
}({});
|
|
180
191
|
/**
|
|
@@ -288,14 +299,32 @@ let SdkErrorCode = /* @__PURE__ */ function(SdkErrorCode$1) {
|
|
|
288
299
|
/**
|
|
289
300
|
* Protocol-era negotiation at connect time failed without producing either a
|
|
290
301
|
* usable modern (2026-07-28+) era or a definitive legacy fallback signal —
|
|
291
|
-
* e.g. the negotiation mode forbids falling back (`pin`),
|
|
292
|
-
* network failure
|
|
302
|
+
* e.g. the negotiation mode forbids falling back (`pin`), the probe hit a
|
|
303
|
+
* network failure, or the server answered the probe with a 5xx (a typed
|
|
304
|
+
* connect error, never an era verdict).
|
|
293
305
|
*
|
|
294
|
-
* Negotiation-phase only: this code is never used once an era is
|
|
306
|
+
* Negotiation-phase only: this code is never used once an era is
|
|
307
|
+
* established. Auth walls never carry it: a 401/403 rejecting the probe
|
|
308
|
+
* uses {@linkcode ClientHttpAuthentication} / {@linkcode ClientHttpForbidden}
|
|
309
|
+
* instead, so era-recovery flows keyed on this code (e.g. cached-verdict
|
|
310
|
+
* gateways) can never persist a verdict for an unauthorized exchange.
|
|
295
311
|
*/
|
|
296
312
|
SdkErrorCode$1["EraNegotiationFailed"] = "ERA_NEGOTIATION_FAILED";
|
|
297
313
|
SdkErrorCode$1["ClientHttpNotImplemented"] = "CLIENT_HTTP_NOT_IMPLEMENTED";
|
|
314
|
+
/**
|
|
315
|
+
* HTTP 401 authentication failure: the transport's re-auth retry still got
|
|
316
|
+
* 401 (`Server returned 401 after re-authentication`), or the version
|
|
317
|
+
* negotiation probe was rejected 401 with no `authProvider` configured
|
|
318
|
+
* (`Version negotiation failed: the server requires authorization (HTTP 401)`).
|
|
319
|
+
* Carried on an {@linkcode SdkHttpError} with `status: 401`.
|
|
320
|
+
*/
|
|
298
321
|
SdkErrorCode$1["ClientHttpAuthentication"] = "CLIENT_HTTP_AUTHENTICATION";
|
|
322
|
+
/**
|
|
323
|
+
* HTTP 403 denial: the step-up re-authorization retry limit was reached,
|
|
324
|
+
* or the version negotiation probe was rejected 403
|
|
325
|
+
* (`Version negotiation failed: the server denied access (HTTP 403)`).
|
|
326
|
+
* Carried on an {@linkcode SdkHttpError} with `status: 403`.
|
|
327
|
+
*/
|
|
299
328
|
SdkErrorCode$1["ClientHttpForbidden"] = "CLIENT_HTTP_FORBIDDEN";
|
|
300
329
|
SdkErrorCode$1["ClientHttpUnexpectedContent"] = "CLIENT_HTTP_UNEXPECTED_CONTENT";
|
|
301
330
|
SdkErrorCode$1["ClientHttpFailedToOpenStream"] = "CLIENT_HTTP_FAILED_TO_OPEN_STREAM";
|
|
@@ -340,8 +369,18 @@ var SdkError = class extends Error {
|
|
|
340
369
|
if (typeof this !== "function") throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");
|
|
341
370
|
return brandedHasInstance(this, value);
|
|
342
371
|
}
|
|
343
|
-
|
|
344
|
-
|
|
372
|
+
/**
|
|
373
|
+
* @param code - Stable string code identifying the failure ({@linkcode SdkErrorCode}).
|
|
374
|
+
* @param message - Human-readable description.
|
|
375
|
+
* @param data - Optional structured payload (for example the HTTP status carried by
|
|
376
|
+
* {@linkcode SdkHttpError}). Opaque to the SDK: a `cause` key inside `data` is not
|
|
377
|
+
* promoted to `Error.cause`.
|
|
378
|
+
* @param options - Standard `ErrorOptions`, forwarded to `Error`. Pass the underlying
|
|
379
|
+
* failure as `{ cause }` so it is reachable through the `Error.cause` chain that
|
|
380
|
+
* loggers and error trackers walk.
|
|
381
|
+
*/
|
|
382
|
+
constructor(code, message, data, options) {
|
|
383
|
+
super(message, options);
|
|
345
384
|
this.code = code;
|
|
346
385
|
this.data = data;
|
|
347
386
|
this.name = "SdkError";
|
|
@@ -368,8 +407,11 @@ var SdkHttpError = class extends SdkError {
|
|
|
368
407
|
static {
|
|
369
408
|
Object.defineProperty(this, "mcpBrand", { value: "mcp.SdkHttpError" });
|
|
370
409
|
}
|
|
371
|
-
|
|
372
|
-
|
|
410
|
+
/**
|
|
411
|
+
* @param options - Standard `ErrorOptions`, forwarded to `Error` (see {@linkcode SdkError}).
|
|
412
|
+
*/
|
|
413
|
+
constructor(code, message, data, options) {
|
|
414
|
+
super(code, message, data, options);
|
|
373
415
|
this.name = "SdkHttpError";
|
|
374
416
|
}
|
|
375
417
|
get status() {
|
|
@@ -2079,9 +2121,19 @@ const REF_REWRITE_NAME_MAP_KEYS = new Set([
|
|
|
2079
2121
|
"patternProperties",
|
|
2080
2122
|
"$defs",
|
|
2081
2123
|
"definitions",
|
|
2082
|
-
"dependentSchemas"
|
|
2124
|
+
"dependentSchemas",
|
|
2125
|
+
"dependencies"
|
|
2083
2126
|
]);
|
|
2084
2127
|
/**
|
|
2128
|
+
* Whether a subtree's `$id` establishes a new resolution base. A fragment-only
|
|
2129
|
+
* `$id` (`"#item"`, the draft-07/06 spelling of 2020-12's `$anchor`) does not
|
|
2130
|
+
* change the RFC 3986 base URI — same-document pointers inside still resolve
|
|
2131
|
+
* against the document root and must be rewritten.
|
|
2132
|
+
*/
|
|
2133
|
+
function establishesNewBase(id) {
|
|
2134
|
+
return id !== void 0 && !(typeof id === "string" && id.startsWith("#"));
|
|
2135
|
+
}
|
|
2136
|
+
/**
|
|
2085
2137
|
* Wrap a non-object output schema in the 2025-era envelope:
|
|
2086
2138
|
* `{type:'object', properties:{result:<natural>}, required:['result']}`.
|
|
2087
2139
|
*
|
|
@@ -2094,31 +2146,37 @@ const REF_REWRITE_NAME_MAP_KEYS = new Set([
|
|
|
2094
2146
|
* The rewrite is position-aware: data-valued keywords
|
|
2095
2147
|
* (`const`/`enum`/`default`/`examples`) in keyword position are NOT descended
|
|
2096
2148
|
* into; the same names appearing as property names under
|
|
2097
|
-
* `properties`/`patternProperties`/`$defs`/`definitions`/`dependentSchemas
|
|
2098
|
-
* ARE descended into (they're subschemas). The rewrite is also
|
|
2099
|
-
* if the natural root carries `$id` no
|
|
2100
|
-
* refs inside resolve against the embedded
|
|
2101
|
-
* and any subtree that establishes its own
|
|
2102
|
-
* same reason.
|
|
2149
|
+
* `properties`/`patternProperties`/`$defs`/`definitions`/`dependentSchemas`/
|
|
2150
|
+
* `dependencies` ARE descended into (they're subschemas). The rewrite is also
|
|
2151
|
+
* `$id`-scoped: if the natural root carries a base-establishing `$id` no
|
|
2152
|
+
* pointer is rewritten (same-document refs inside resolve against the embedded
|
|
2153
|
+
* `$id` base, not the wrapper root), and any subtree that establishes its own
|
|
2154
|
+
* `$id` is left untouched for the same reason. Fragment-only `$id` (`"#item"`,
|
|
2155
|
+
* draft-07's anchor spelling) does not establish a base and IS descended into.
|
|
2103
2156
|
*/
|
|
2104
2157
|
function wrapOutputSchemaForLegacy(natural) {
|
|
2105
2158
|
const $schema = typeof natural["$schema"] === "string" ? natural["$schema"] : void 0;
|
|
2106
|
-
if (natural["$id"]
|
|
2159
|
+
if (establishesNewBase(natural["$id"])) return {
|
|
2107
2160
|
...$schema !== void 0 && { $schema },
|
|
2108
2161
|
type: "object",
|
|
2109
2162
|
properties: { result: natural },
|
|
2110
2163
|
required: ["result"]
|
|
2111
2164
|
};
|
|
2165
|
+
const convertRecursiveRefs = declares2019Dialect(natural["$schema"]) && natural["$recursiveAnchor"] !== true;
|
|
2112
2166
|
const rewriteRefs = (node, parentIsNameMap) => {
|
|
2113
2167
|
if (Array.isArray(node)) return node.map((item) => rewriteRefs(item, false));
|
|
2114
2168
|
if (node === null || typeof node !== "object") return node;
|
|
2115
|
-
if (!parentIsNameMap && node["$id"]
|
|
2169
|
+
if (!parentIsNameMap && establishesNewBase(node["$id"])) return node;
|
|
2116
2170
|
const out = {};
|
|
2171
|
+
let convertedRecursion = false;
|
|
2117
2172
|
for (const [k, v] of Object.entries(node)) if (parentIsNameMap) out[k] = rewriteRefs(v, false);
|
|
2118
2173
|
else if ((k === "$ref" || k === "$dynamicRef") && typeof v === "string") out[k] = v === "#" ? "#/properties/result" : v.startsWith("#/") ? `#/properties/result${v.slice(1)}` : v;
|
|
2174
|
+
else if (k === "$recursiveRef" && v === "#" && convertRecursiveRefs) convertedRecursion = true;
|
|
2119
2175
|
else if (REF_REWRITE_DATA_POSITION_KEYS.has(k)) out[k] = v;
|
|
2120
2176
|
else if (REF_REWRITE_NAME_MAP_KEYS.has(k)) out[k] = rewriteRefs(v, true);
|
|
2121
2177
|
else out[k] = rewriteRefs(v, false);
|
|
2178
|
+
if (convertedRecursion) if ("$ref" in out) out["allOf"] = [...Array.isArray(out["allOf"]) ? out["allOf"] : [], { $ref: "#/properties/result" }];
|
|
2179
|
+
else out["$ref"] = "#/properties/result";
|
|
2122
2180
|
return out;
|
|
2123
2181
|
};
|
|
2124
2182
|
return {
|
|
@@ -4735,9 +4793,15 @@ function paramHeaderMismatchRejection(cell, header, body) {
|
|
|
4735
4793
|
* named revision belongs to (a malformed envelope behind a present claim is
|
|
4736
4794
|
* a validation error, never a silent fall back to legacy handling).
|
|
4737
4795
|
* - A request without a claim is legacy-era traffic.
|
|
4738
|
-
* - The `MCP-Protocol-Version` header is a cross-check only
|
|
4739
|
-
* upgrades or downgrades a body-derived
|
|
4740
|
-
* between header and body is an explicit
|
|
4796
|
+
* - The `MCP-Protocol-Version` header is a cross-check only *for
|
|
4797
|
+
* classification*: it never upgrades or downgrades a body-derived
|
|
4798
|
+
* classification, and a disagreement between header and body is an explicit
|
|
4799
|
+
* ladder outcome. Its absence likewise never changes the era — but the spec
|
|
4800
|
+
* requires the header on every modern *request* POST, so a
|
|
4801
|
+
* modern-classified request that omits it is refused one rung later, by
|
|
4802
|
+
* {@linkcode validateStandardRequestHeaders}, not here. Notification POSTs
|
|
4803
|
+
* are exempt (see the next bullet), and that rung enforces presence on
|
|
4804
|
+
* requests only.
|
|
4741
4805
|
* - Notifications carry no envelope claim of their own under the current
|
|
4742
4806
|
* spec, so for notification POSTs without a body claim the modern header is
|
|
4743
4807
|
* determinative; the `Mcp-Method` header is validated against the body when
|
|
@@ -4865,7 +4929,7 @@ const INBOUND_VALIDATION_LADDER = [
|
|
|
4865
4929
|
evaluatedAt: "pre-dispatch",
|
|
4866
4930
|
codes: [HEADER_MISMATCH_ERROR_CODE],
|
|
4867
4931
|
conformance: ["http-header-validation"],
|
|
4868
|
-
rationale: "SEP-2243 standard `Mcp-Method` / `Mcp-Name` headers — presence, sentinel decoding, and `Mcp-Name` ↔ body cross-check — are validated by the HTTP entry on a modern-classified request after the supported-revision gate and before dispatch. The classifier’s own header-mismatch cells (protocol-version, `Mcp-Method` mismatch) stay on the edge `era-classification` rung; this rung carries the entry-layer presence/`Mcp-Name` half. Evaluated before the capability gate, the factory call, and the `Mcp-Param-*` rung so a request that fails several rungs is answered by the standard-header rung first. The documented order (after method-registry 5 and request-params 6) is NOT the observed precedence: serveModern evaluates this rung immediately after the supported-revision gate, so a request that also fails a dispatch rung is answered here before the dispatch rungs (5–6) are consulted."
|
|
4932
|
+
rationale: "SEP-2243 standard `MCP-Protocol-Version` / `Mcp-Method` / `Mcp-Name` headers — presence, sentinel decoding, and `Mcp-Name` ↔ body cross-check — are validated by the HTTP entry on a modern-classified request after the supported-revision gate and before dispatch. The spec requires `MCP-Protocol-Version` and `Mcp-Method` on every modern *request* POST (`Mcp-Name` only for the methods that mirror `params.name` / `params.uri` / `params.taskId`, see `MCP_NAME_HEADER_SOURCE`) and names them in that order, so a request missing several is answered by the earliest. Notification POSTs are exempt: the presence half runs on requests only, so a modern-enveloped notification is dispatched even with no standard headers at all. The classifier’s own header-mismatch cells (protocol-version, `Mcp-Method` mismatch) stay on the edge `era-classification` rung; this rung carries the entry-layer presence/`Mcp-Name` half — including the missing `MCP-Protocol-Version` cell, which cannot live on the edge rung without breaking body-primary classification. Evaluated before the capability gate, the factory call, and the `Mcp-Param-*` rung so a request that fails several rungs is answered by the standard-header rung first. The documented order (after method-registry 5 and request-params 6) is NOT the observed precedence: serveModern evaluates this rung immediately after the supported-revision gate, so a request that also fails a dispatch rung is answered here before the dispatch rungs (5–6) are consulted."
|
|
4869
4933
|
},
|
|
4870
4934
|
{
|
|
4871
4935
|
rung: "client-capabilities",
|
|
@@ -4948,15 +5012,51 @@ function crossCheckMismatch(cell, header, body, rung = "era-classification") {
|
|
|
4948
5012
|
} }), true);
|
|
4949
5013
|
}
|
|
4950
5014
|
/**
|
|
4951
|
-
* The methods whose body carries a `params.name` / `params.uri`
|
|
4952
|
-
* `Mcp-Name` header must mirror, and which body
|
|
4953
|
-
*
|
|
5015
|
+
* The methods whose body carries a `params.name` / `params.uri` /
|
|
5016
|
+
* `params.taskId` value the `Mcp-Name` header must mirror, and which body
|
|
5017
|
+
* field supplies it. The core rows come from SEP-2243 § Standard Request
|
|
5018
|
+
* Headers (`Required For` column); the `tasks/*` rows come from SEP-2663's
|
|
5019
|
+
* Streamable HTTP binding ("the client MUST set the `Mcp-Name` header to the
|
|
5020
|
+
* value of `params.taskId`" for `tasks/get` / `tasks/update` /
|
|
5021
|
+
* `tasks/cancel`, so intermediaries can route every request for a task to the
|
|
5022
|
+
* instance holding its state). Shared by the client transport (header
|
|
5023
|
+
* emission) and the server ladder (validation) so both sides derive from one
|
|
5024
|
+
* table.
|
|
4954
5025
|
*/
|
|
4955
5026
|
const MCP_NAME_HEADER_SOURCE = {
|
|
4956
5027
|
"tools/call": "name",
|
|
4957
5028
|
"prompts/get": "name",
|
|
4958
|
-
"resources/read": "uri"
|
|
5029
|
+
"resources/read": "uri",
|
|
5030
|
+
"tasks/get": "taskId",
|
|
5031
|
+
"tasks/update": "taskId",
|
|
5032
|
+
"tasks/cancel": "taskId"
|
|
4959
5033
|
};
|
|
5034
|
+
/**
|
|
5035
|
+
* Resolve the `Mcp-Name` source for one request against
|
|
5036
|
+
* {@linkcode MCP_NAME_HEADER_SOURCE}: which body field the header mirrors for
|
|
5037
|
+
* `method`, and the string value that field carries in `params`.
|
|
5038
|
+
*
|
|
5039
|
+
* Returns `undefined` when `method` is off-table (no `Mcp-Name` is emitted or
|
|
5040
|
+
* required). Otherwise `value` is the field's string value, or `undefined`
|
|
5041
|
+
* when `params` is not a plain object or the field is absent / not a string —
|
|
5042
|
+
* the client emits no header then, and the server leaves that body to the
|
|
5043
|
+
* rungs further down the ladder.
|
|
5044
|
+
*
|
|
5045
|
+
* `method` is peer-supplied on the server and caller-supplied on the client,
|
|
5046
|
+
* so the table lookup is `Object.hasOwn`-guarded against `Object.prototype`
|
|
5047
|
+
* collisions (`constructor`, `toString`, …). Shared by the client transport
|
|
5048
|
+
* (emission) and {@linkcode validateStandardRequestHeaders} (validation) so
|
|
5049
|
+
* the extraction — not just the table — cannot drift between the two sides.
|
|
5050
|
+
*/
|
|
5051
|
+
function mcpNameSource(method, params) {
|
|
5052
|
+
const field = Object.hasOwn(MCP_NAME_HEADER_SOURCE, method) ? MCP_NAME_HEADER_SOURCE[method] : void 0;
|
|
5053
|
+
if (field === void 0) return;
|
|
5054
|
+
const raw = isPlainObject$2(params) ? params[field] : void 0;
|
|
5055
|
+
return {
|
|
5056
|
+
field,
|
|
5057
|
+
value: typeof raw === "string" ? raw : void 0
|
|
5058
|
+
};
|
|
5059
|
+
}
|
|
4960
5060
|
/** Strip RFC 9110 optional whitespace (SP / HTAB) around a field value in linear time. */
|
|
4961
5061
|
function stripHttpOws(value) {
|
|
4962
5062
|
let start = 0;
|
|
@@ -4984,13 +5084,19 @@ function stripHttpOws(value) {
|
|
|
4984
5084
|
* `era-classification` rung for the `MCP-Protocol-Version` and
|
|
4985
5085
|
* `Mcp-Method` *mismatch* cells) when:
|
|
4986
5086
|
*
|
|
5087
|
+
* - the required `MCP-Protocol-Version` header is absent (SEP-2243 requires it
|
|
5088
|
+
* on every modern *request* POST, and lists it first among the required
|
|
5089
|
+
* standard headers — so a request missing it *and* `Mcp-Method` is answered
|
|
5090
|
+
* by this cell);
|
|
4987
5091
|
* - the required `Mcp-Method` header is absent;
|
|
4988
5092
|
* - the required `Mcp-Name` header is absent on a `tools/call`,
|
|
4989
|
-
* `prompts/get`,
|
|
4990
|
-
* `
|
|
5093
|
+
* `prompts/get`, `resources/read`, or (per SEP-2663's Streamable HTTP
|
|
5094
|
+
* binding) `tasks/get` / `tasks/update` / `tasks/cancel` request whose
|
|
5095
|
+
* body carries the `params.name` / `params.uri` / `params.taskId` value
|
|
5096
|
+
* the header mirrors;
|
|
4991
5097
|
* - the `Mcp-Name` header carries an invalid `=?base64?…?=` sentinel; or
|
|
4992
5098
|
* - the (decoded) `Mcp-Name` value disagrees with the body's
|
|
4993
|
-
* `params.name` / `params.uri`.
|
|
5099
|
+
* `params.name` / `params.uri` / `params.taskId`.
|
|
4994
5100
|
*
|
|
4995
5101
|
* Returns `undefined` (pass) for notifications (the spec table reads
|
|
4996
5102
|
* "All requests"), for methods that have no `Mcp-Name` source, and when the
|
|
@@ -5001,16 +5107,22 @@ function stripHttpOws(value) {
|
|
|
5001
5107
|
* call to the classifier (no headers passed) keeps routing a modern request
|
|
5002
5108
|
* unchanged: the classifier remains a pure body-primary router, and this
|
|
5003
5109
|
* function is the presence/`Mcp-Name` half of the standard-header rung the
|
|
5004
|
-
* entry layers on top.
|
|
5110
|
+
* entry layers on top. That separation is what lets the missing
|
|
5111
|
+
* `MCP-Protocol-Version` cell live here without disturbing the body-primary
|
|
5112
|
+
* rule — classification still resolves from the body (a proxy stripping the
|
|
5113
|
+
* header must not change the era), and only this rung refuses to serve it.
|
|
5005
5114
|
*/
|
|
5006
5115
|
function validateStandardRequestHeaders(request, route) {
|
|
5007
5116
|
if (route.messageKind !== "request") return;
|
|
5008
5117
|
const method = route.message.method;
|
|
5118
|
+
if (request.protocolVersionHeader === void 0) {
|
|
5119
|
+
const claimed = route.classification.revision;
|
|
5120
|
+
return crossCheckMismatch("version-header-missing", "(missing)", claimed === void 0 ? "the body carries a modern per-request envelope but the required MCP-Protocol-Version header is absent" : `the body envelope names protocol version ${claimed} but the required MCP-Protocol-Version header is absent`, "standard-header-validation");
|
|
5121
|
+
}
|
|
5009
5122
|
if (request.mcpMethodHeader === void 0) return crossCheckMismatch("method-header-missing", "(missing)", `the body names method ${method} but the required Mcp-Method header is absent`, "standard-header-validation");
|
|
5010
|
-
const
|
|
5011
|
-
if (
|
|
5012
|
-
const
|
|
5013
|
-
const bodyValue = typeof sourceValue === "string" ? sourceValue : void 0;
|
|
5123
|
+
const source = mcpNameSource(method, route.message.params);
|
|
5124
|
+
if (source === void 0) return;
|
|
5125
|
+
const { field: sourceField, value: bodyValue } = source;
|
|
5014
5126
|
if (request.mcpNameHeader === void 0) {
|
|
5015
5127
|
if (bodyValue === void 0) return;
|
|
5016
5128
|
return crossCheckMismatch("name-header-missing", "(missing)", `the body carries params.${sourceField}="${bodyValue}" but the required Mcp-Name header is absent`, "standard-header-validation");
|
|
@@ -6212,7 +6324,7 @@ var Protocol = class {
|
|
|
6212
6324
|
return this._requestHandlers.get(method);
|
|
6213
6325
|
}
|
|
6214
6326
|
async _oncancel(notification) {
|
|
6215
|
-
if (
|
|
6327
|
+
if (notification.params.requestId === void 0) return;
|
|
6216
6328
|
this._requestHandlerAbortControllers.get(notification.params.requestId)?.abort(notification.params.reason);
|
|
6217
6329
|
}
|
|
6218
6330
|
_setupTimeout(messageId, timeout, maxTotalTimeout, onTimeout, resetTimeoutOnProgress = false) {
|
|
@@ -6611,19 +6723,20 @@ var Protocol = class {
|
|
|
6611
6723
|
const cancel = (reason) => {
|
|
6612
6724
|
if (responseReceived) return;
|
|
6613
6725
|
this._progressHandlers.delete(messageId);
|
|
6614
|
-
if (requestAbort === void 0)
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6726
|
+
if (requestAbort === void 0) {
|
|
6727
|
+
if (request.method !== "initialize") this._transport?.send(this._envelopeOutbound({
|
|
6728
|
+
jsonrpc: "2.0",
|
|
6729
|
+
method: "notifications/cancelled",
|
|
6730
|
+
params: {
|
|
6731
|
+
requestId: messageId,
|
|
6732
|
+
reason: String(reason)
|
|
6733
|
+
}
|
|
6734
|
+
}), {
|
|
6735
|
+
relatedRequestId,
|
|
6736
|
+
resumptionToken,
|
|
6737
|
+
onresumptiontoken
|
|
6738
|
+
}).catch((error) => this._onerror(/* @__PURE__ */ new Error(`Failed to send cancellation: ${error}`)));
|
|
6739
|
+
} else requestAbort.abort();
|
|
6627
6740
|
reject(reason instanceof SdkError ? reason : new SdkError(SdkErrorCode.RequestTimeout, String(reason)));
|
|
6628
6741
|
};
|
|
6629
6742
|
this._responseHandlers.set(messageId, (response) => {
|
|
@@ -6703,7 +6816,7 @@ var Protocol = class {
|
|
|
6703
6816
|
jsonrpc: "2.0",
|
|
6704
6817
|
...notification
|
|
6705
6818
|
});
|
|
6706
|
-
if ((this._options?.debouncedNotificationMethods ?? []).includes(notification.method) && !notification.params &&
|
|
6819
|
+
if ((this._options?.debouncedNotificationMethods ?? []).includes(notification.method) && !notification.params && options?.relatedRequestId === void 0) {
|
|
6707
6820
|
if (this._pendingDebouncedNotifications.has(notification.method)) return;
|
|
6708
6821
|
this._pendingDebouncedNotifications.add(notification.method);
|
|
6709
6822
|
Promise.resolve().then(() => {
|
|
@@ -7568,4 +7681,4 @@ function fromJsonSchema(schema, validator) {
|
|
|
7568
7681
|
|
|
7569
7682
|
//#endregion
|
|
7570
7683
|
export { isTaskAugmentedRequestParams as $, promptArgumentsFromStandardSchema as A, LATEST_PROTOCOL_VERSION as At, scanXMcpHeaderDeclarations as B, TRACESTATE_META_KEY as Bt, REQUEST_STATE_ONLY_LEG_PACING_MS as C, CLIENT_CAPABILITIES_META_KEY as Ct, acceptedContent as D, INVALID_PARAMS as Dt, sleep as E, INTERNAL_ERROR as Et, carriesValidModernEnvelopeClaim as F, RELATED_TASK_META_KEY as Ft, isInitializeRequest as G, resourceUrlFromServerUrl as Gt, assertCompleteRequestPrompt as H, requiredClientCapabilitiesForInputRequest as Ht, classifyInboundRequest as I, SERVER_INFO_META_KEY as It, isJSONRPCErrorResponse as J, SdkHttpError as Jt, isInitializedNotification as K, SdkError as Kt, httpStatusForErrorCode as L, SUBSCRIPTION_ID_META_KEY as Lt, validateStandardSchema as M, METHOD_NOT_FOUND as Mt, parseSchema as N, PARSE_ERROR as Nt, inputRequired as O, INVALID_REQUEST as Ot, LADDER_ERROR_HTTP_STATUS as P, PROTOCOL_VERSION_META_KEY as Pt, isJSONRPCResultResponse as Q, modernOnlyStrictRejection as R, SUPPORTED_PROTOCOL_VERSIONS as Rt, specTypeSchemas as S, BAGGAGE_META_KEY as St, linkedRoundAbort as T, DEFAULT_NEGOTIATED_PROTOCOL_VERSION as Tt, assertCompleteRequestResourceTemplate as U, requiredClientCapabilitiesForRequest as Ut, validateMcpParamHeaders as V, missingClientCapabilities as Vt, isCallToolResult as W, checkResourceAllowed as Wt, isJSONRPCRequest as X, OAuthErrorCode as Xt, isJSONRPCNotification as Y, OAuthError as Yt, isJSONRPCResponse as Z, mergeCapabilities as _, normalizeContentlessToolResult as _t, UriTemplate as a, requestMetaOf as at, withRequestStateValue as b, legacyProtocolVersions as bt, ReadBuffer as c, codecForVersion as ct, serializeMessage as d, ResourceNotFoundError as dt, parseJSONRPCMessage as et, getDisplayName as f, UnsupportedProtocolVersionError as ft, Protocol as g, attachCacheHintFallback as gt, DEFAULT_REQUEST_TIMEOUT_MSEC as h, assertValidCacheHint as ht, InMemoryTransport as i, hasEnvelopeClaim as it, standardSchemaToJsonSchema as j, LOG_LEVEL_META_KEY as jt, inputResponse as k, JSONRPC_VERSION as kt, STDIO_DEFAULT_MAX_BUFFER_SIZE as l, MissingRequiredClientCapabilityError as lt, mediaTypeEssence as m, ProtocolErrorCode as mt, preloadSchemas as n, LoggingLevelSchema as nt, createFetchWithInit as o, validateEnvelopeMeta as ot, isJsonContentType as p, UrlElicitationRequiredError as pt, isInputRequiredResult as q, SdkErrorCode as qt, normalizeRawShapeSchema as r, envelopeClaimVersion as rt, validateAndWarnToolName as s, MODERN_WIRE_REVISION as st, fromJsonSchema as t, JSONRPCMessageSchema as tt, deserializeMessage as u, ProtocolError as ut, requestStateAccessor as v, SUPPORTED_MODERN_PROTOCOL_VERSIONS as vt, inputRequiredRoundsExceededMessage as w, CLIENT_INFO_META_KEY as wt, isSpecType as x, modernProtocolVersions as xt, setNegotiatedProtocolVersion as y, isModernProtocolVersion as yt, validateStandardRequestHeaders as z, TRACEPARENT_META_KEY as zt };
|
|
7571
|
-
//# sourceMappingURL=src-
|
|
7684
|
+
//# sourceMappingURL=src-D-y6h4N7.mjs.map
|