@inkeep/agents-cli 0.0.0-dev-20251016161232 → 0.0.0-dev-20251016203440

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 (2) hide show
  1. package/dist/index.js +467 -465
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -2846,7 +2846,8 @@ var init_schemas = __esm({
2846
2846
  status: ToolStatusSchema.default("unknown"),
2847
2847
  version: z2.string().optional(),
2848
2848
  createdAt: z2.date(),
2849
- updatedAt: z2.date()
2849
+ updatedAt: z2.date(),
2850
+ expiresAt: z2.date().optional()
2850
2851
  });
2851
2852
  MCPToolConfigSchema = McpToolSchema.omit({
2852
2853
  config: true,
@@ -217960,190 +217961,21 @@ var init_apiKeys = __esm({
217960
217961
  }
217961
217962
  });
217962
217963
 
217963
- // ../packages/agents-core/src/utils/auth-detection.ts
217964
- var init_auth_detection = __esm({
217965
- "../packages/agents-core/src/utils/auth-detection.ts"() {
217966
- "use strict";
217967
- init_esm_shims();
217968
- }
217969
- });
217970
-
217971
- // ../packages/agents-core/src/utils/error.ts
217972
- function getTitleFromCode(code) {
217973
- switch (code) {
217974
- case "bad_request":
217975
- return "Bad Request";
217976
- case "unauthorized":
217977
- return "Unauthorized";
217978
- case "forbidden":
217979
- return "Forbidden";
217980
- case "not_found":
217981
- return "Not Found";
217982
- case "conflict":
217983
- return "Conflict";
217984
- case "unprocessable_entity":
217985
- return "Unprocessable Entity";
217986
- case "internal_server_error":
217987
- return "Internal Server Error";
217988
- default:
217989
- return "Error";
217990
- }
217991
- }
217992
- var ErrorCode, errorCodeToHttpStatus, problemDetailsSchema, errorResponseSchema, toTitleCase, errorSchemaFactory, commonCreateErrorResponses, commonUpdateErrorResponses, commonGetErrorResponses, commonDeleteErrorResponses;
217993
- var init_error = __esm({
217994
- "../packages/agents-core/src/utils/error.ts"() {
217995
- "use strict";
217996
- init_esm_shims();
217997
- init_dist4();
217998
- init_http_exception();
217999
- init_logger();
218000
- ErrorCode = z2.enum([
218001
- "bad_request",
218002
- "unauthorized",
218003
- "forbidden",
218004
- "not_found",
218005
- "conflict",
218006
- "internal_server_error",
218007
- "unprocessable_entity"
218008
- ]);
218009
- errorCodeToHttpStatus = {
218010
- bad_request: 400,
218011
- unauthorized: 401,
218012
- forbidden: 403,
218013
- not_found: 404,
218014
- conflict: 409,
218015
- unprocessable_entity: 422,
218016
- internal_server_error: 500
218017
- };
218018
- problemDetailsSchema = z2.object({
218019
- // type: z.string().url().openapi({
218020
- // description: "A URI reference that identifies the problem type.",
218021
- // example: `${ERROR_DOCS_BASE_URL}#not-found`,
218022
- // }),
218023
- title: z2.string().openapi({
218024
- description: "A short, human-readable summary of the problem type.",
218025
- example: "Resource Not Found"
218026
- }),
218027
- status: z2.number().int().openapi({
218028
- description: "The HTTP status code.",
218029
- example: 404
218030
- }),
218031
- detail: z2.string().openapi({
218032
- description: "A human-readable explanation specific to this occurrence of the problem.",
218033
- example: "The requested resource was not found."
218034
- }),
218035
- instance: z2.string().optional().openapi({
218036
- description: "A URI reference that identifies the specific occurrence of the problem.",
218037
- example: "/conversations/123"
218038
- }),
218039
- requestId: z2.string().optional().openapi({
218040
- description: "A unique identifier for the request, useful for troubleshooting.",
218041
- example: "req_1234567890"
218042
- }),
218043
- code: ErrorCode.openapi({
218044
- description: "A short code indicating the error code returned.",
218045
- example: "not_found"
218046
- })
218047
- }).openapi("ProblemDetails");
218048
- errorResponseSchema = z2.object({
218049
- error: z2.object({
218050
- code: ErrorCode.openapi({
218051
- description: "A short code indicating the error code returned.",
218052
- example: "not_found"
218053
- }),
218054
- message: z2.string().openapi({
218055
- description: "A human readable error message.",
218056
- example: "The requested resource was not found."
218057
- })
218058
- })
218059
- }).openapi("ErrorResponse");
218060
- toTitleCase = (str) => str?.replace(/\w+/g, (word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).replace(/\s+/g, "") ?? "";
218061
- errorSchemaFactory = (code, description) => ({
218062
- description,
218063
- content: {
218064
- "application/problem+json": {
218065
- schema: problemDetailsSchema.extend({
218066
- code: z2.literal(code).openapi({
218067
- description: "A short code indicating the error code returned.",
218068
- example: code
218069
- }),
218070
- detail: z2.string().openapi({
218071
- description: "A detailed explanation specific to this occurrence of the problem, providing context and specifics about what went wrong.",
218072
- example: description
218073
- }),
218074
- title: z2.string().openapi({
218075
- description: "A short, human-readable summary of the problem type.",
218076
- example: getTitleFromCode(code)
218077
- }),
218078
- // type: z.string().url().openapi({
218079
- // description: "A URI reference that identifies the problem type.",
218080
- // example: `${ERROR_DOCS_BASE_URL}#${code}`,
218081
- // }),
218082
- status: z2.literal(errorCodeToHttpStatus[code]).openapi({
218083
- description: "The HTTP status code.",
218084
- example: errorCodeToHttpStatus[code]
218085
- }),
218086
- error: z2.object({
218087
- code: z2.literal(code).openapi({
218088
- description: "A short code indicating the error code returned.",
218089
- example: code
218090
- }),
218091
- message: z2.string().openapi({
218092
- description: "A concise error message suitable for display to end users. May be truncated if the full detail is long.",
218093
- example: description.length > 100 ? `${description.substring(0, 97)}...` : description
218094
- })
218095
- }).openapi({
218096
- description: "Legacy error format for backward compatibility."
218097
- })
218098
- }).openapi(toTitleCase(description))
218099
- }
218100
- }
218101
- });
218102
- commonCreateErrorResponses = {
218103
- 400: errorSchemaFactory("bad_request", "Bad Request"),
218104
- 401: errorSchemaFactory("unauthorized", "Unauthorized"),
218105
- 403: errorSchemaFactory("forbidden", "Forbidden"),
218106
- 422: errorSchemaFactory("unprocessable_entity", "Unprocessable Entity"),
218107
- 500: errorSchemaFactory("internal_server_error", "Internal Server Error")
218108
- };
218109
- commonUpdateErrorResponses = {
218110
- 400: errorSchemaFactory("bad_request", "Bad Request"),
218111
- 401: errorSchemaFactory("unauthorized", "Unauthorized"),
218112
- 403: errorSchemaFactory("forbidden", "Forbidden"),
218113
- 404: errorSchemaFactory("not_found", "Not Found"),
218114
- 422: errorSchemaFactory("unprocessable_entity", "Unprocessable Entity"),
218115
- 500: errorSchemaFactory("internal_server_error", "Internal Server Error")
218116
- };
218117
- commonGetErrorResponses = {
218118
- 400: errorSchemaFactory("bad_request", "Bad Request"),
218119
- 401: errorSchemaFactory("unauthorized", "Unauthorized"),
218120
- 403: errorSchemaFactory("forbidden", "Forbidden"),
218121
- 404: errorSchemaFactory("not_found", "Not Found"),
218122
- 422: errorSchemaFactory("unprocessable_entity", "Unprocessable Entity"),
218123
- 500: errorSchemaFactory("internal_server_error", "Internal Server Error")
218124
- };
218125
- commonDeleteErrorResponses = {
218126
- 400: errorSchemaFactory("bad_request", "Bad Request"),
218127
- 401: errorSchemaFactory("unauthorized", "Unauthorized"),
218128
- 403: errorSchemaFactory("forbidden", "Forbidden"),
218129
- 404: errorSchemaFactory("not_found", "Not Found"),
218130
- 422: errorSchemaFactory("unprocessable_entity", "Unprocessable Entity"),
218131
- 500: errorSchemaFactory("internal_server_error", "Internal Server Error")
218132
- };
218133
- }
218134
- });
218135
-
218136
- // ../packages/agents-core/src/utils/execution.ts
218137
- var init_execution = __esm({
218138
- "../packages/agents-core/src/utils/execution.ts"() {
217964
+ // ../node_modules/.pnpm/pkce-challenge@5.0.0/node_modules/pkce-challenge/dist/index.node.js
217965
+ var crypto3;
217966
+ var init_index_node = __esm({
217967
+ "../node_modules/.pnpm/pkce-challenge@5.0.0/node_modules/pkce-challenge/dist/index.node.js"() {
218139
217968
  "use strict";
218140
217969
  init_esm_shims();
217970
+ crypto3 = globalThis.crypto?.webcrypto ?? // Node.js [18-16] REPL
217971
+ globalThis.crypto ?? // Node.js >18
217972
+ import("crypto").then((m2) => m2.webcrypto);
218141
217973
  }
218142
217974
  });
218143
217975
 
218144
217976
  // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
218145
217977
  import { z as z5 } from "zod";
218146
- var JSONRPC_VERSION, ProgressTokenSchema, CursorSchema, RequestMetaSchema, BaseRequestParamsSchema, RequestSchema, BaseNotificationParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, ErrorCode2, JSONRPCErrorSchema, JSONRPCMessageSchema, EmptyResultSchema, CancelledNotificationSchema, IconSchema, IconsSchema, BaseMetadataSchema, ImplementationSchema, ClientCapabilitiesSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationSchema, PaginatedRequestSchema, PaginatedResultSchema, ResourceContentsSchema, TextResourceContentsSchema, Base64Schema, BlobResourceContentsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, AudioContentSchema, EmbeddedResourceSchema, ResourceLinkSchema, ContentBlockSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolAnnotationsSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, LoggingLevelSchema, SetLevelRequestSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, SamplingMessageSchema, CreateMessageRequestSchema, CreateMessageResultSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, EnumSchemaSchema, PrimitiveSchemaDefinitionSchema, ElicitRequestSchema, ElicitResultSchema, ResourceTemplateReferenceSchema, PromptReferenceSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema;
217978
+ var JSONRPC_VERSION, ProgressTokenSchema, CursorSchema, RequestMetaSchema, BaseRequestParamsSchema, RequestSchema, BaseNotificationParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, ErrorCode, JSONRPCErrorSchema, JSONRPCMessageSchema, EmptyResultSchema, CancelledNotificationSchema, IconSchema, IconsSchema, BaseMetadataSchema, ImplementationSchema, ClientCapabilitiesSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationSchema, PaginatedRequestSchema, PaginatedResultSchema, ResourceContentsSchema, TextResourceContentsSchema, Base64Schema, BlobResourceContentsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, AudioContentSchema, EmbeddedResourceSchema, ResourceLinkSchema, ContentBlockSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolAnnotationsSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, LoggingLevelSchema, SetLevelRequestSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, SamplingMessageSchema, CreateMessageRequestSchema, CreateMessageResultSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, EnumSchemaSchema, PrimitiveSchemaDefinitionSchema, ElicitRequestSchema, ElicitResultSchema, ResourceTemplateReferenceSchema, PromptReferenceSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema;
218147
217979
  var init_types2 = __esm({
218148
217980
  "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js"() {
218149
217981
  "use strict";
@@ -218203,7 +218035,7 @@ var init_types2 = __esm({
218203
218035
  ErrorCode3[ErrorCode3["MethodNotFound"] = -32601] = "MethodNotFound";
218204
218036
  ErrorCode3[ErrorCode3["InvalidParams"] = -32602] = "InvalidParams";
218205
218037
  ErrorCode3[ErrorCode3["InternalError"] = -32603] = "InternalError";
218206
- })(ErrorCode2 || (ErrorCode2 = {}));
218038
+ })(ErrorCode || (ErrorCode = {}));
218207
218039
  JSONRPCErrorSchema = z5.object({
218208
218040
  jsonrpc: z5.literal(JSONRPC_VERSION),
218209
218041
  id: RequestIdSchema,
@@ -219081,6 +218913,454 @@ var init_types2 = __esm({
219081
218913
  }
219082
218914
  });
219083
218915
 
218916
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
218917
+ import { z as z6 } from "zod";
218918
+ var SafeUrlSchema, OAuthProtectedResourceMetadataSchema, OAuthMetadataSchema, OpenIdProviderMetadataSchema, OpenIdProviderDiscoveryMetadataSchema, OAuthTokensSchema, OAuthErrorResponseSchema, OAuthClientMetadataSchema, OAuthClientInformationSchema, OAuthClientInformationFullSchema, OAuthClientRegistrationErrorSchema, OAuthTokenRevocationRequestSchema;
218919
+ var init_auth = __esm({
218920
+ "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js"() {
218921
+ "use strict";
218922
+ init_esm_shims();
218923
+ SafeUrlSchema = z6.string().url().superRefine((val, ctx) => {
218924
+ if (!URL.canParse(val)) {
218925
+ ctx.addIssue({
218926
+ code: z6.ZodIssueCode.custom,
218927
+ message: "URL must be parseable",
218928
+ fatal: true
218929
+ });
218930
+ return z6.NEVER;
218931
+ }
218932
+ }).refine((url) => {
218933
+ const u2 = new URL(url);
218934
+ return u2.protocol !== "javascript:" && u2.protocol !== "data:" && u2.protocol !== "vbscript:";
218935
+ }, { message: "URL cannot use javascript:, data:, or vbscript: scheme" });
218936
+ OAuthProtectedResourceMetadataSchema = z6.object({
218937
+ resource: z6.string().url(),
218938
+ authorization_servers: z6.array(SafeUrlSchema).optional(),
218939
+ jwks_uri: z6.string().url().optional(),
218940
+ scopes_supported: z6.array(z6.string()).optional(),
218941
+ bearer_methods_supported: z6.array(z6.string()).optional(),
218942
+ resource_signing_alg_values_supported: z6.array(z6.string()).optional(),
218943
+ resource_name: z6.string().optional(),
218944
+ resource_documentation: z6.string().optional(),
218945
+ resource_policy_uri: z6.string().url().optional(),
218946
+ resource_tos_uri: z6.string().url().optional(),
218947
+ tls_client_certificate_bound_access_tokens: z6.boolean().optional(),
218948
+ authorization_details_types_supported: z6.array(z6.string()).optional(),
218949
+ dpop_signing_alg_values_supported: z6.array(z6.string()).optional(),
218950
+ dpop_bound_access_tokens_required: z6.boolean().optional()
218951
+ }).passthrough();
218952
+ OAuthMetadataSchema = z6.object({
218953
+ issuer: z6.string(),
218954
+ authorization_endpoint: SafeUrlSchema,
218955
+ token_endpoint: SafeUrlSchema,
218956
+ registration_endpoint: SafeUrlSchema.optional(),
218957
+ scopes_supported: z6.array(z6.string()).optional(),
218958
+ response_types_supported: z6.array(z6.string()),
218959
+ response_modes_supported: z6.array(z6.string()).optional(),
218960
+ grant_types_supported: z6.array(z6.string()).optional(),
218961
+ token_endpoint_auth_methods_supported: z6.array(z6.string()).optional(),
218962
+ token_endpoint_auth_signing_alg_values_supported: z6.array(z6.string()).optional(),
218963
+ service_documentation: SafeUrlSchema.optional(),
218964
+ revocation_endpoint: SafeUrlSchema.optional(),
218965
+ revocation_endpoint_auth_methods_supported: z6.array(z6.string()).optional(),
218966
+ revocation_endpoint_auth_signing_alg_values_supported: z6.array(z6.string()).optional(),
218967
+ introspection_endpoint: z6.string().optional(),
218968
+ introspection_endpoint_auth_methods_supported: z6.array(z6.string()).optional(),
218969
+ introspection_endpoint_auth_signing_alg_values_supported: z6.array(z6.string()).optional(),
218970
+ code_challenge_methods_supported: z6.array(z6.string()).optional()
218971
+ }).passthrough();
218972
+ OpenIdProviderMetadataSchema = z6.object({
218973
+ issuer: z6.string(),
218974
+ authorization_endpoint: SafeUrlSchema,
218975
+ token_endpoint: SafeUrlSchema,
218976
+ userinfo_endpoint: SafeUrlSchema.optional(),
218977
+ jwks_uri: SafeUrlSchema,
218978
+ registration_endpoint: SafeUrlSchema.optional(),
218979
+ scopes_supported: z6.array(z6.string()).optional(),
218980
+ response_types_supported: z6.array(z6.string()),
218981
+ response_modes_supported: z6.array(z6.string()).optional(),
218982
+ grant_types_supported: z6.array(z6.string()).optional(),
218983
+ acr_values_supported: z6.array(z6.string()).optional(),
218984
+ subject_types_supported: z6.array(z6.string()),
218985
+ id_token_signing_alg_values_supported: z6.array(z6.string()),
218986
+ id_token_encryption_alg_values_supported: z6.array(z6.string()).optional(),
218987
+ id_token_encryption_enc_values_supported: z6.array(z6.string()).optional(),
218988
+ userinfo_signing_alg_values_supported: z6.array(z6.string()).optional(),
218989
+ userinfo_encryption_alg_values_supported: z6.array(z6.string()).optional(),
218990
+ userinfo_encryption_enc_values_supported: z6.array(z6.string()).optional(),
218991
+ request_object_signing_alg_values_supported: z6.array(z6.string()).optional(),
218992
+ request_object_encryption_alg_values_supported: z6.array(z6.string()).optional(),
218993
+ request_object_encryption_enc_values_supported: z6.array(z6.string()).optional(),
218994
+ token_endpoint_auth_methods_supported: z6.array(z6.string()).optional(),
218995
+ token_endpoint_auth_signing_alg_values_supported: z6.array(z6.string()).optional(),
218996
+ display_values_supported: z6.array(z6.string()).optional(),
218997
+ claim_types_supported: z6.array(z6.string()).optional(),
218998
+ claims_supported: z6.array(z6.string()).optional(),
218999
+ service_documentation: z6.string().optional(),
219000
+ claims_locales_supported: z6.array(z6.string()).optional(),
219001
+ ui_locales_supported: z6.array(z6.string()).optional(),
219002
+ claims_parameter_supported: z6.boolean().optional(),
219003
+ request_parameter_supported: z6.boolean().optional(),
219004
+ request_uri_parameter_supported: z6.boolean().optional(),
219005
+ require_request_uri_registration: z6.boolean().optional(),
219006
+ op_policy_uri: SafeUrlSchema.optional(),
219007
+ op_tos_uri: SafeUrlSchema.optional()
219008
+ }).passthrough();
219009
+ OpenIdProviderDiscoveryMetadataSchema = OpenIdProviderMetadataSchema.merge(OAuthMetadataSchema.pick({
219010
+ code_challenge_methods_supported: true
219011
+ }));
219012
+ OAuthTokensSchema = z6.object({
219013
+ access_token: z6.string(),
219014
+ id_token: z6.string().optional(),
219015
+ // Optional for OAuth 2.1, but necessary in OpenID Connect
219016
+ token_type: z6.string(),
219017
+ expires_in: z6.number().optional(),
219018
+ scope: z6.string().optional(),
219019
+ refresh_token: z6.string().optional()
219020
+ }).strip();
219021
+ OAuthErrorResponseSchema = z6.object({
219022
+ error: z6.string(),
219023
+ error_description: z6.string().optional(),
219024
+ error_uri: z6.string().optional()
219025
+ });
219026
+ OAuthClientMetadataSchema = z6.object({
219027
+ redirect_uris: z6.array(SafeUrlSchema),
219028
+ token_endpoint_auth_method: z6.string().optional(),
219029
+ grant_types: z6.array(z6.string()).optional(),
219030
+ response_types: z6.array(z6.string()).optional(),
219031
+ client_name: z6.string().optional(),
219032
+ client_uri: SafeUrlSchema.optional(),
219033
+ logo_uri: SafeUrlSchema.optional(),
219034
+ scope: z6.string().optional(),
219035
+ contacts: z6.array(z6.string()).optional(),
219036
+ tos_uri: SafeUrlSchema.optional(),
219037
+ policy_uri: z6.string().optional(),
219038
+ jwks_uri: SafeUrlSchema.optional(),
219039
+ jwks: z6.any().optional(),
219040
+ software_id: z6.string().optional(),
219041
+ software_version: z6.string().optional(),
219042
+ software_statement: z6.string().optional()
219043
+ }).strip();
219044
+ OAuthClientInformationSchema = z6.object({
219045
+ client_id: z6.string(),
219046
+ client_secret: z6.string().optional(),
219047
+ client_id_issued_at: z6.number().optional(),
219048
+ client_secret_expires_at: z6.number().optional()
219049
+ }).strip();
219050
+ OAuthClientInformationFullSchema = OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
219051
+ OAuthClientRegistrationErrorSchema = z6.object({
219052
+ error: z6.string(),
219053
+ error_description: z6.string().optional()
219054
+ }).strip();
219055
+ OAuthTokenRevocationRequestSchema = z6.object({
219056
+ token: z6.string(),
219057
+ token_type_hint: z6.string().optional()
219058
+ }).strip();
219059
+ }
219060
+ });
219061
+
219062
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js
219063
+ var init_auth_utils = __esm({
219064
+ "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js"() {
219065
+ "use strict";
219066
+ init_esm_shims();
219067
+ }
219068
+ });
219069
+
219070
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js
219071
+ var OAuthError, InvalidRequestError, InvalidClientError, InvalidGrantError, UnauthorizedClientError, UnsupportedGrantTypeError, InvalidScopeError, AccessDeniedError, ServerError, TemporarilyUnavailableError, UnsupportedResponseTypeError, UnsupportedTokenTypeError, InvalidTokenError, MethodNotAllowedError, TooManyRequestsError, InvalidClientMetadataError, InsufficientScopeError, OAUTH_ERRORS;
219072
+ var init_errors = __esm({
219073
+ "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js"() {
219074
+ "use strict";
219075
+ init_esm_shims();
219076
+ OAuthError = class extends Error {
219077
+ constructor(message, errorUri) {
219078
+ super(message);
219079
+ this.errorUri = errorUri;
219080
+ this.name = this.constructor.name;
219081
+ }
219082
+ /**
219083
+ * Converts the error to a standard OAuth error response object
219084
+ */
219085
+ toResponseObject() {
219086
+ const response = {
219087
+ error: this.errorCode,
219088
+ error_description: this.message
219089
+ };
219090
+ if (this.errorUri) {
219091
+ response.error_uri = this.errorUri;
219092
+ }
219093
+ return response;
219094
+ }
219095
+ get errorCode() {
219096
+ return this.constructor.errorCode;
219097
+ }
219098
+ };
219099
+ InvalidRequestError = class extends OAuthError {
219100
+ };
219101
+ InvalidRequestError.errorCode = "invalid_request";
219102
+ InvalidClientError = class extends OAuthError {
219103
+ };
219104
+ InvalidClientError.errorCode = "invalid_client";
219105
+ InvalidGrantError = class extends OAuthError {
219106
+ };
219107
+ InvalidGrantError.errorCode = "invalid_grant";
219108
+ UnauthorizedClientError = class extends OAuthError {
219109
+ };
219110
+ UnauthorizedClientError.errorCode = "unauthorized_client";
219111
+ UnsupportedGrantTypeError = class extends OAuthError {
219112
+ };
219113
+ UnsupportedGrantTypeError.errorCode = "unsupported_grant_type";
219114
+ InvalidScopeError = class extends OAuthError {
219115
+ };
219116
+ InvalidScopeError.errorCode = "invalid_scope";
219117
+ AccessDeniedError = class extends OAuthError {
219118
+ };
219119
+ AccessDeniedError.errorCode = "access_denied";
219120
+ ServerError = class extends OAuthError {
219121
+ };
219122
+ ServerError.errorCode = "server_error";
219123
+ TemporarilyUnavailableError = class extends OAuthError {
219124
+ };
219125
+ TemporarilyUnavailableError.errorCode = "temporarily_unavailable";
219126
+ UnsupportedResponseTypeError = class extends OAuthError {
219127
+ };
219128
+ UnsupportedResponseTypeError.errorCode = "unsupported_response_type";
219129
+ UnsupportedTokenTypeError = class extends OAuthError {
219130
+ };
219131
+ UnsupportedTokenTypeError.errorCode = "unsupported_token_type";
219132
+ InvalidTokenError = class extends OAuthError {
219133
+ };
219134
+ InvalidTokenError.errorCode = "invalid_token";
219135
+ MethodNotAllowedError = class extends OAuthError {
219136
+ };
219137
+ MethodNotAllowedError.errorCode = "method_not_allowed";
219138
+ TooManyRequestsError = class extends OAuthError {
219139
+ };
219140
+ TooManyRequestsError.errorCode = "too_many_requests";
219141
+ InvalidClientMetadataError = class extends OAuthError {
219142
+ };
219143
+ InvalidClientMetadataError.errorCode = "invalid_client_metadata";
219144
+ InsufficientScopeError = class extends OAuthError {
219145
+ };
219146
+ InsufficientScopeError.errorCode = "insufficient_scope";
219147
+ OAUTH_ERRORS = {
219148
+ [InvalidRequestError.errorCode]: InvalidRequestError,
219149
+ [InvalidClientError.errorCode]: InvalidClientError,
219150
+ [InvalidGrantError.errorCode]: InvalidGrantError,
219151
+ [UnauthorizedClientError.errorCode]: UnauthorizedClientError,
219152
+ [UnsupportedGrantTypeError.errorCode]: UnsupportedGrantTypeError,
219153
+ [InvalidScopeError.errorCode]: InvalidScopeError,
219154
+ [AccessDeniedError.errorCode]: AccessDeniedError,
219155
+ [ServerError.errorCode]: ServerError,
219156
+ [TemporarilyUnavailableError.errorCode]: TemporarilyUnavailableError,
219157
+ [UnsupportedResponseTypeError.errorCode]: UnsupportedResponseTypeError,
219158
+ [UnsupportedTokenTypeError.errorCode]: UnsupportedTokenTypeError,
219159
+ [InvalidTokenError.errorCode]: InvalidTokenError,
219160
+ [MethodNotAllowedError.errorCode]: MethodNotAllowedError,
219161
+ [TooManyRequestsError.errorCode]: TooManyRequestsError,
219162
+ [InvalidClientMetadataError.errorCode]: InvalidClientMetadataError,
219163
+ [InsufficientScopeError.errorCode]: InsufficientScopeError
219164
+ };
219165
+ }
219166
+ });
219167
+
219168
+ // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js
219169
+ var init_auth2 = __esm({
219170
+ "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js"() {
219171
+ "use strict";
219172
+ init_esm_shims();
219173
+ init_index_node();
219174
+ init_types2();
219175
+ init_auth();
219176
+ init_auth();
219177
+ init_auth_utils();
219178
+ init_errors();
219179
+ }
219180
+ });
219181
+
219182
+ // ../packages/agents-core/src/utils/auth-detection.ts
219183
+ var init_auth_detection = __esm({
219184
+ "../packages/agents-core/src/utils/auth-detection.ts"() {
219185
+ "use strict";
219186
+ init_esm_shims();
219187
+ init_auth2();
219188
+ }
219189
+ });
219190
+
219191
+ // ../packages/agents-core/src/utils/error.ts
219192
+ function getTitleFromCode(code) {
219193
+ switch (code) {
219194
+ case "bad_request":
219195
+ return "Bad Request";
219196
+ case "unauthorized":
219197
+ return "Unauthorized";
219198
+ case "forbidden":
219199
+ return "Forbidden";
219200
+ case "not_found":
219201
+ return "Not Found";
219202
+ case "conflict":
219203
+ return "Conflict";
219204
+ case "unprocessable_entity":
219205
+ return "Unprocessable Entity";
219206
+ case "internal_server_error":
219207
+ return "Internal Server Error";
219208
+ default:
219209
+ return "Error";
219210
+ }
219211
+ }
219212
+ var ErrorCode2, errorCodeToHttpStatus, problemDetailsSchema, errorResponseSchema, toTitleCase, errorSchemaFactory, commonCreateErrorResponses, commonUpdateErrorResponses, commonGetErrorResponses, commonDeleteErrorResponses;
219213
+ var init_error = __esm({
219214
+ "../packages/agents-core/src/utils/error.ts"() {
219215
+ "use strict";
219216
+ init_esm_shims();
219217
+ init_dist4();
219218
+ init_http_exception();
219219
+ init_logger();
219220
+ ErrorCode2 = z2.enum([
219221
+ "bad_request",
219222
+ "unauthorized",
219223
+ "forbidden",
219224
+ "not_found",
219225
+ "conflict",
219226
+ "internal_server_error",
219227
+ "unprocessable_entity"
219228
+ ]);
219229
+ errorCodeToHttpStatus = {
219230
+ bad_request: 400,
219231
+ unauthorized: 401,
219232
+ forbidden: 403,
219233
+ not_found: 404,
219234
+ conflict: 409,
219235
+ unprocessable_entity: 422,
219236
+ internal_server_error: 500
219237
+ };
219238
+ problemDetailsSchema = z2.object({
219239
+ // type: z.string().url().openapi({
219240
+ // description: "A URI reference that identifies the problem type.",
219241
+ // example: `${ERROR_DOCS_BASE_URL}#not-found`,
219242
+ // }),
219243
+ title: z2.string().openapi({
219244
+ description: "A short, human-readable summary of the problem type.",
219245
+ example: "Resource Not Found"
219246
+ }),
219247
+ status: z2.number().int().openapi({
219248
+ description: "The HTTP status code.",
219249
+ example: 404
219250
+ }),
219251
+ detail: z2.string().openapi({
219252
+ description: "A human-readable explanation specific to this occurrence of the problem.",
219253
+ example: "The requested resource was not found."
219254
+ }),
219255
+ instance: z2.string().optional().openapi({
219256
+ description: "A URI reference that identifies the specific occurrence of the problem.",
219257
+ example: "/conversations/123"
219258
+ }),
219259
+ requestId: z2.string().optional().openapi({
219260
+ description: "A unique identifier for the request, useful for troubleshooting.",
219261
+ example: "req_1234567890"
219262
+ }),
219263
+ code: ErrorCode2.openapi({
219264
+ description: "A short code indicating the error code returned.",
219265
+ example: "not_found"
219266
+ })
219267
+ }).openapi("ProblemDetails");
219268
+ errorResponseSchema = z2.object({
219269
+ error: z2.object({
219270
+ code: ErrorCode2.openapi({
219271
+ description: "A short code indicating the error code returned.",
219272
+ example: "not_found"
219273
+ }),
219274
+ message: z2.string().openapi({
219275
+ description: "A human readable error message.",
219276
+ example: "The requested resource was not found."
219277
+ })
219278
+ })
219279
+ }).openapi("ErrorResponse");
219280
+ toTitleCase = (str) => str?.replace(/\w+/g, (word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).replace(/\s+/g, "") ?? "";
219281
+ errorSchemaFactory = (code, description) => ({
219282
+ description,
219283
+ content: {
219284
+ "application/problem+json": {
219285
+ schema: problemDetailsSchema.extend({
219286
+ code: z2.literal(code).openapi({
219287
+ description: "A short code indicating the error code returned.",
219288
+ example: code
219289
+ }),
219290
+ detail: z2.string().openapi({
219291
+ description: "A detailed explanation specific to this occurrence of the problem, providing context and specifics about what went wrong.",
219292
+ example: description
219293
+ }),
219294
+ title: z2.string().openapi({
219295
+ description: "A short, human-readable summary of the problem type.",
219296
+ example: getTitleFromCode(code)
219297
+ }),
219298
+ // type: z.string().url().openapi({
219299
+ // description: "A URI reference that identifies the problem type.",
219300
+ // example: `${ERROR_DOCS_BASE_URL}#${code}`,
219301
+ // }),
219302
+ status: z2.literal(errorCodeToHttpStatus[code]).openapi({
219303
+ description: "The HTTP status code.",
219304
+ example: errorCodeToHttpStatus[code]
219305
+ }),
219306
+ error: z2.object({
219307
+ code: z2.literal(code).openapi({
219308
+ description: "A short code indicating the error code returned.",
219309
+ example: code
219310
+ }),
219311
+ message: z2.string().openapi({
219312
+ description: "A concise error message suitable for display to end users. May be truncated if the full detail is long.",
219313
+ example: description.length > 100 ? `${description.substring(0, 97)}...` : description
219314
+ })
219315
+ }).openapi({
219316
+ description: "Legacy error format for backward compatibility."
219317
+ })
219318
+ }).openapi(toTitleCase(description))
219319
+ }
219320
+ }
219321
+ });
219322
+ commonCreateErrorResponses = {
219323
+ 400: errorSchemaFactory("bad_request", "Bad Request"),
219324
+ 401: errorSchemaFactory("unauthorized", "Unauthorized"),
219325
+ 403: errorSchemaFactory("forbidden", "Forbidden"),
219326
+ 422: errorSchemaFactory("unprocessable_entity", "Unprocessable Entity"),
219327
+ 500: errorSchemaFactory("internal_server_error", "Internal Server Error")
219328
+ };
219329
+ commonUpdateErrorResponses = {
219330
+ 400: errorSchemaFactory("bad_request", "Bad Request"),
219331
+ 401: errorSchemaFactory("unauthorized", "Unauthorized"),
219332
+ 403: errorSchemaFactory("forbidden", "Forbidden"),
219333
+ 404: errorSchemaFactory("not_found", "Not Found"),
219334
+ 422: errorSchemaFactory("unprocessable_entity", "Unprocessable Entity"),
219335
+ 500: errorSchemaFactory("internal_server_error", "Internal Server Error")
219336
+ };
219337
+ commonGetErrorResponses = {
219338
+ 400: errorSchemaFactory("bad_request", "Bad Request"),
219339
+ 401: errorSchemaFactory("unauthorized", "Unauthorized"),
219340
+ 403: errorSchemaFactory("forbidden", "Forbidden"),
219341
+ 404: errorSchemaFactory("not_found", "Not Found"),
219342
+ 422: errorSchemaFactory("unprocessable_entity", "Unprocessable Entity"),
219343
+ 500: errorSchemaFactory("internal_server_error", "Internal Server Error")
219344
+ };
219345
+ commonDeleteErrorResponses = {
219346
+ 400: errorSchemaFactory("bad_request", "Bad Request"),
219347
+ 401: errorSchemaFactory("unauthorized", "Unauthorized"),
219348
+ 403: errorSchemaFactory("forbidden", "Forbidden"),
219349
+ 404: errorSchemaFactory("not_found", "Not Found"),
219350
+ 422: errorSchemaFactory("unprocessable_entity", "Unprocessable Entity"),
219351
+ 500: errorSchemaFactory("internal_server_error", "Internal Server Error")
219352
+ };
219353
+ }
219354
+ });
219355
+
219356
+ // ../packages/agents-core/src/utils/execution.ts
219357
+ var init_execution = __esm({
219358
+ "../packages/agents-core/src/utils/execution.ts"() {
219359
+ "use strict";
219360
+ init_esm_shims();
219361
+ }
219362
+ });
219363
+
219084
219364
  // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
219085
219365
  var init_protocol = __esm({
219086
219366
  "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js"() {
@@ -225363,284 +225643,6 @@ var init_client2 = __esm({
225363
225643
  }
225364
225644
  });
225365
225645
 
225366
- // ../node_modules/.pnpm/pkce-challenge@5.0.0/node_modules/pkce-challenge/dist/index.node.js
225367
- var crypto3;
225368
- var init_index_node = __esm({
225369
- "../node_modules/.pnpm/pkce-challenge@5.0.0/node_modules/pkce-challenge/dist/index.node.js"() {
225370
- "use strict";
225371
- init_esm_shims();
225372
- crypto3 = globalThis.crypto?.webcrypto ?? // Node.js [18-16] REPL
225373
- globalThis.crypto ?? // Node.js >18
225374
- import("crypto").then((m2) => m2.webcrypto);
225375
- }
225376
- });
225377
-
225378
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
225379
- import { z as z6 } from "zod";
225380
- var SafeUrlSchema, OAuthProtectedResourceMetadataSchema, OAuthMetadataSchema, OpenIdProviderMetadataSchema, OpenIdProviderDiscoveryMetadataSchema, OAuthTokensSchema, OAuthErrorResponseSchema, OAuthClientMetadataSchema, OAuthClientInformationSchema, OAuthClientInformationFullSchema, OAuthClientRegistrationErrorSchema, OAuthTokenRevocationRequestSchema;
225381
- var init_auth = __esm({
225382
- "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js"() {
225383
- "use strict";
225384
- init_esm_shims();
225385
- SafeUrlSchema = z6.string().url().superRefine((val, ctx) => {
225386
- if (!URL.canParse(val)) {
225387
- ctx.addIssue({
225388
- code: z6.ZodIssueCode.custom,
225389
- message: "URL must be parseable",
225390
- fatal: true
225391
- });
225392
- return z6.NEVER;
225393
- }
225394
- }).refine((url) => {
225395
- const u2 = new URL(url);
225396
- return u2.protocol !== "javascript:" && u2.protocol !== "data:" && u2.protocol !== "vbscript:";
225397
- }, { message: "URL cannot use javascript:, data:, or vbscript: scheme" });
225398
- OAuthProtectedResourceMetadataSchema = z6.object({
225399
- resource: z6.string().url(),
225400
- authorization_servers: z6.array(SafeUrlSchema).optional(),
225401
- jwks_uri: z6.string().url().optional(),
225402
- scopes_supported: z6.array(z6.string()).optional(),
225403
- bearer_methods_supported: z6.array(z6.string()).optional(),
225404
- resource_signing_alg_values_supported: z6.array(z6.string()).optional(),
225405
- resource_name: z6.string().optional(),
225406
- resource_documentation: z6.string().optional(),
225407
- resource_policy_uri: z6.string().url().optional(),
225408
- resource_tos_uri: z6.string().url().optional(),
225409
- tls_client_certificate_bound_access_tokens: z6.boolean().optional(),
225410
- authorization_details_types_supported: z6.array(z6.string()).optional(),
225411
- dpop_signing_alg_values_supported: z6.array(z6.string()).optional(),
225412
- dpop_bound_access_tokens_required: z6.boolean().optional()
225413
- }).passthrough();
225414
- OAuthMetadataSchema = z6.object({
225415
- issuer: z6.string(),
225416
- authorization_endpoint: SafeUrlSchema,
225417
- token_endpoint: SafeUrlSchema,
225418
- registration_endpoint: SafeUrlSchema.optional(),
225419
- scopes_supported: z6.array(z6.string()).optional(),
225420
- response_types_supported: z6.array(z6.string()),
225421
- response_modes_supported: z6.array(z6.string()).optional(),
225422
- grant_types_supported: z6.array(z6.string()).optional(),
225423
- token_endpoint_auth_methods_supported: z6.array(z6.string()).optional(),
225424
- token_endpoint_auth_signing_alg_values_supported: z6.array(z6.string()).optional(),
225425
- service_documentation: SafeUrlSchema.optional(),
225426
- revocation_endpoint: SafeUrlSchema.optional(),
225427
- revocation_endpoint_auth_methods_supported: z6.array(z6.string()).optional(),
225428
- revocation_endpoint_auth_signing_alg_values_supported: z6.array(z6.string()).optional(),
225429
- introspection_endpoint: z6.string().optional(),
225430
- introspection_endpoint_auth_methods_supported: z6.array(z6.string()).optional(),
225431
- introspection_endpoint_auth_signing_alg_values_supported: z6.array(z6.string()).optional(),
225432
- code_challenge_methods_supported: z6.array(z6.string()).optional()
225433
- }).passthrough();
225434
- OpenIdProviderMetadataSchema = z6.object({
225435
- issuer: z6.string(),
225436
- authorization_endpoint: SafeUrlSchema,
225437
- token_endpoint: SafeUrlSchema,
225438
- userinfo_endpoint: SafeUrlSchema.optional(),
225439
- jwks_uri: SafeUrlSchema,
225440
- registration_endpoint: SafeUrlSchema.optional(),
225441
- scopes_supported: z6.array(z6.string()).optional(),
225442
- response_types_supported: z6.array(z6.string()),
225443
- response_modes_supported: z6.array(z6.string()).optional(),
225444
- grant_types_supported: z6.array(z6.string()).optional(),
225445
- acr_values_supported: z6.array(z6.string()).optional(),
225446
- subject_types_supported: z6.array(z6.string()),
225447
- id_token_signing_alg_values_supported: z6.array(z6.string()),
225448
- id_token_encryption_alg_values_supported: z6.array(z6.string()).optional(),
225449
- id_token_encryption_enc_values_supported: z6.array(z6.string()).optional(),
225450
- userinfo_signing_alg_values_supported: z6.array(z6.string()).optional(),
225451
- userinfo_encryption_alg_values_supported: z6.array(z6.string()).optional(),
225452
- userinfo_encryption_enc_values_supported: z6.array(z6.string()).optional(),
225453
- request_object_signing_alg_values_supported: z6.array(z6.string()).optional(),
225454
- request_object_encryption_alg_values_supported: z6.array(z6.string()).optional(),
225455
- request_object_encryption_enc_values_supported: z6.array(z6.string()).optional(),
225456
- token_endpoint_auth_methods_supported: z6.array(z6.string()).optional(),
225457
- token_endpoint_auth_signing_alg_values_supported: z6.array(z6.string()).optional(),
225458
- display_values_supported: z6.array(z6.string()).optional(),
225459
- claim_types_supported: z6.array(z6.string()).optional(),
225460
- claims_supported: z6.array(z6.string()).optional(),
225461
- service_documentation: z6.string().optional(),
225462
- claims_locales_supported: z6.array(z6.string()).optional(),
225463
- ui_locales_supported: z6.array(z6.string()).optional(),
225464
- claims_parameter_supported: z6.boolean().optional(),
225465
- request_parameter_supported: z6.boolean().optional(),
225466
- request_uri_parameter_supported: z6.boolean().optional(),
225467
- require_request_uri_registration: z6.boolean().optional(),
225468
- op_policy_uri: SafeUrlSchema.optional(),
225469
- op_tos_uri: SafeUrlSchema.optional()
225470
- }).passthrough();
225471
- OpenIdProviderDiscoveryMetadataSchema = OpenIdProviderMetadataSchema.merge(OAuthMetadataSchema.pick({
225472
- code_challenge_methods_supported: true
225473
- }));
225474
- OAuthTokensSchema = z6.object({
225475
- access_token: z6.string(),
225476
- id_token: z6.string().optional(),
225477
- // Optional for OAuth 2.1, but necessary in OpenID Connect
225478
- token_type: z6.string(),
225479
- expires_in: z6.number().optional(),
225480
- scope: z6.string().optional(),
225481
- refresh_token: z6.string().optional()
225482
- }).strip();
225483
- OAuthErrorResponseSchema = z6.object({
225484
- error: z6.string(),
225485
- error_description: z6.string().optional(),
225486
- error_uri: z6.string().optional()
225487
- });
225488
- OAuthClientMetadataSchema = z6.object({
225489
- redirect_uris: z6.array(SafeUrlSchema),
225490
- token_endpoint_auth_method: z6.string().optional(),
225491
- grant_types: z6.array(z6.string()).optional(),
225492
- response_types: z6.array(z6.string()).optional(),
225493
- client_name: z6.string().optional(),
225494
- client_uri: SafeUrlSchema.optional(),
225495
- logo_uri: SafeUrlSchema.optional(),
225496
- scope: z6.string().optional(),
225497
- contacts: z6.array(z6.string()).optional(),
225498
- tos_uri: SafeUrlSchema.optional(),
225499
- policy_uri: z6.string().optional(),
225500
- jwks_uri: SafeUrlSchema.optional(),
225501
- jwks: z6.any().optional(),
225502
- software_id: z6.string().optional(),
225503
- software_version: z6.string().optional(),
225504
- software_statement: z6.string().optional()
225505
- }).strip();
225506
- OAuthClientInformationSchema = z6.object({
225507
- client_id: z6.string(),
225508
- client_secret: z6.string().optional(),
225509
- client_id_issued_at: z6.number().optional(),
225510
- client_secret_expires_at: z6.number().optional()
225511
- }).strip();
225512
- OAuthClientInformationFullSchema = OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
225513
- OAuthClientRegistrationErrorSchema = z6.object({
225514
- error: z6.string(),
225515
- error_description: z6.string().optional()
225516
- }).strip();
225517
- OAuthTokenRevocationRequestSchema = z6.object({
225518
- token: z6.string(),
225519
- token_type_hint: z6.string().optional()
225520
- }).strip();
225521
- }
225522
- });
225523
-
225524
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js
225525
- var init_auth_utils = __esm({
225526
- "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js"() {
225527
- "use strict";
225528
- init_esm_shims();
225529
- }
225530
- });
225531
-
225532
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js
225533
- var OAuthError, InvalidRequestError, InvalidClientError, InvalidGrantError, UnauthorizedClientError, UnsupportedGrantTypeError, InvalidScopeError, AccessDeniedError, ServerError, TemporarilyUnavailableError, UnsupportedResponseTypeError, UnsupportedTokenTypeError, InvalidTokenError, MethodNotAllowedError, TooManyRequestsError, InvalidClientMetadataError, InsufficientScopeError, OAUTH_ERRORS;
225534
- var init_errors = __esm({
225535
- "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js"() {
225536
- "use strict";
225537
- init_esm_shims();
225538
- OAuthError = class extends Error {
225539
- constructor(message, errorUri) {
225540
- super(message);
225541
- this.errorUri = errorUri;
225542
- this.name = this.constructor.name;
225543
- }
225544
- /**
225545
- * Converts the error to a standard OAuth error response object
225546
- */
225547
- toResponseObject() {
225548
- const response = {
225549
- error: this.errorCode,
225550
- error_description: this.message
225551
- };
225552
- if (this.errorUri) {
225553
- response.error_uri = this.errorUri;
225554
- }
225555
- return response;
225556
- }
225557
- get errorCode() {
225558
- return this.constructor.errorCode;
225559
- }
225560
- };
225561
- InvalidRequestError = class extends OAuthError {
225562
- };
225563
- InvalidRequestError.errorCode = "invalid_request";
225564
- InvalidClientError = class extends OAuthError {
225565
- };
225566
- InvalidClientError.errorCode = "invalid_client";
225567
- InvalidGrantError = class extends OAuthError {
225568
- };
225569
- InvalidGrantError.errorCode = "invalid_grant";
225570
- UnauthorizedClientError = class extends OAuthError {
225571
- };
225572
- UnauthorizedClientError.errorCode = "unauthorized_client";
225573
- UnsupportedGrantTypeError = class extends OAuthError {
225574
- };
225575
- UnsupportedGrantTypeError.errorCode = "unsupported_grant_type";
225576
- InvalidScopeError = class extends OAuthError {
225577
- };
225578
- InvalidScopeError.errorCode = "invalid_scope";
225579
- AccessDeniedError = class extends OAuthError {
225580
- };
225581
- AccessDeniedError.errorCode = "access_denied";
225582
- ServerError = class extends OAuthError {
225583
- };
225584
- ServerError.errorCode = "server_error";
225585
- TemporarilyUnavailableError = class extends OAuthError {
225586
- };
225587
- TemporarilyUnavailableError.errorCode = "temporarily_unavailable";
225588
- UnsupportedResponseTypeError = class extends OAuthError {
225589
- };
225590
- UnsupportedResponseTypeError.errorCode = "unsupported_response_type";
225591
- UnsupportedTokenTypeError = class extends OAuthError {
225592
- };
225593
- UnsupportedTokenTypeError.errorCode = "unsupported_token_type";
225594
- InvalidTokenError = class extends OAuthError {
225595
- };
225596
- InvalidTokenError.errorCode = "invalid_token";
225597
- MethodNotAllowedError = class extends OAuthError {
225598
- };
225599
- MethodNotAllowedError.errorCode = "method_not_allowed";
225600
- TooManyRequestsError = class extends OAuthError {
225601
- };
225602
- TooManyRequestsError.errorCode = "too_many_requests";
225603
- InvalidClientMetadataError = class extends OAuthError {
225604
- };
225605
- InvalidClientMetadataError.errorCode = "invalid_client_metadata";
225606
- InsufficientScopeError = class extends OAuthError {
225607
- };
225608
- InsufficientScopeError.errorCode = "insufficient_scope";
225609
- OAUTH_ERRORS = {
225610
- [InvalidRequestError.errorCode]: InvalidRequestError,
225611
- [InvalidClientError.errorCode]: InvalidClientError,
225612
- [InvalidGrantError.errorCode]: InvalidGrantError,
225613
- [UnauthorizedClientError.errorCode]: UnauthorizedClientError,
225614
- [UnsupportedGrantTypeError.errorCode]: UnsupportedGrantTypeError,
225615
- [InvalidScopeError.errorCode]: InvalidScopeError,
225616
- [AccessDeniedError.errorCode]: AccessDeniedError,
225617
- [ServerError.errorCode]: ServerError,
225618
- [TemporarilyUnavailableError.errorCode]: TemporarilyUnavailableError,
225619
- [UnsupportedResponseTypeError.errorCode]: UnsupportedResponseTypeError,
225620
- [UnsupportedTokenTypeError.errorCode]: UnsupportedTokenTypeError,
225621
- [InvalidTokenError.errorCode]: InvalidTokenError,
225622
- [MethodNotAllowedError.errorCode]: MethodNotAllowedError,
225623
- [TooManyRequestsError.errorCode]: TooManyRequestsError,
225624
- [InvalidClientMetadataError.errorCode]: InvalidClientMetadataError,
225625
- [InsufficientScopeError.errorCode]: InsufficientScopeError
225626
- };
225627
- }
225628
- });
225629
-
225630
- // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js
225631
- var init_auth2 = __esm({
225632
- "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js"() {
225633
- "use strict";
225634
- init_esm_shims();
225635
- init_index_node();
225636
- init_types2();
225637
- init_auth();
225638
- init_auth();
225639
- init_auth_utils();
225640
- init_errors();
225641
- }
225642
- });
225643
-
225644
225646
  // ../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js
225645
225647
  var init_sse = __esm({
225646
225648
  "../node_modules/.pnpm/@modelcontextprotocol+sdk@1.19.1/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js"() {
@@ -233680,27 +233682,27 @@ var init_memory_store = __esm({
233680
233682
  }
233681
233683
  });
233682
233684
 
233683
- // ../node_modules/.pnpm/@nangohq+node@0.66.2/node_modules/@nangohq/node/dist/version.js
233685
+ // ../node_modules/.pnpm/@nangohq+node@0.69.3/node_modules/@nangohq/node/dist/version.js
233684
233686
  var init_version2 = __esm({
233685
- "../node_modules/.pnpm/@nangohq+node@0.66.2/node_modules/@nangohq/node/dist/version.js"() {
233687
+ "../node_modules/.pnpm/@nangohq+node@0.69.3/node_modules/@nangohq/node/dist/version.js"() {
233686
233688
  "use strict";
233687
233689
  init_esm_shims();
233688
233690
  }
233689
233691
  });
233690
233692
 
233691
- // ../node_modules/.pnpm/@nangohq+node@0.66.2/node_modules/@nangohq/node/dist/utils.js
233693
+ // ../node_modules/.pnpm/@nangohq+node@0.69.3/node_modules/@nangohq/node/dist/utils.js
233692
233694
  var init_utils2 = __esm({
233693
- "../node_modules/.pnpm/@nangohq+node@0.66.2/node_modules/@nangohq/node/dist/utils.js"() {
233695
+ "../node_modules/.pnpm/@nangohq+node@0.69.3/node_modules/@nangohq/node/dist/utils.js"() {
233694
233696
  "use strict";
233695
233697
  init_esm_shims();
233696
233698
  init_version2();
233697
233699
  }
233698
233700
  });
233699
233701
 
233700
- // ../node_modules/.pnpm/@nangohq+node@0.66.2/node_modules/@nangohq/node/dist/types.js
233702
+ // ../node_modules/.pnpm/@nangohq+node@0.69.3/node_modules/@nangohq/node/dist/types.js
233701
233703
  var SyncConfigType;
233702
233704
  var init_types4 = __esm({
233703
- "../node_modules/.pnpm/@nangohq+node@0.66.2/node_modules/@nangohq/node/dist/types.js"() {
233705
+ "../node_modules/.pnpm/@nangohq+node@0.69.3/node_modules/@nangohq/node/dist/types.js"() {
233704
233706
  "use strict";
233705
233707
  init_esm_shims();
233706
233708
  (function(SyncConfigType2) {
@@ -233710,12 +233712,12 @@ var init_types4 = __esm({
233710
233712
  }
233711
233713
  });
233712
233714
 
233713
- // ../node_modules/.pnpm/@nangohq+node@0.66.2/node_modules/@nangohq/node/dist/index.js
233715
+ // ../node_modules/.pnpm/@nangohq+node@0.69.3/node_modules/@nangohq/node/dist/index.js
233714
233716
  import crypto5 from "crypto";
233715
233717
  import https from "https";
233716
233718
  var defaultHttpsAgent;
233717
233719
  var init_dist6 = __esm({
233718
- "../node_modules/.pnpm/@nangohq+node@0.66.2/node_modules/@nangohq/node/dist/index.js"() {
233720
+ "../node_modules/.pnpm/@nangohq+node@0.69.3/node_modules/@nangohq/node/dist/index.js"() {
233719
233721
  "use strict";
233720
233722
  init_esm_shims();
233721
233723
  init_utils2();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-cli",
3
- "version": "0.0.0-dev-20251016161232",
3
+ "version": "0.0.0-dev-20251016203440",
4
4
  "description": "Inkeep CLI tool",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -47,8 +47,8 @@
47
47
  "recast": "^0.23.0",
48
48
  "ts-morph": "^26.0.0",
49
49
  "tsx": "^4.20.5",
50
- "@inkeep/agents-core": "^0.0.0-dev-20251016161232",
51
- "@inkeep/agents-sdk": "^0.0.0-dev-20251016161232"
50
+ "@inkeep/agents-sdk": "^0.0.0-dev-20251016203440",
51
+ "@inkeep/agents-core": "^0.0.0-dev-20251016203440"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/degit": "^2.8.6",
@@ -63,7 +63,7 @@
63
63
  "vitest": "^3.2.4"
64
64
  },
65
65
  "peerDependencies": {
66
- "@inkeep/agents-manage-ui": "0.0.0-dev-20251016161232",
66
+ "@inkeep/agents-manage-ui": "0.0.0-dev-20251016203440",
67
67
  "zod": "^4.1.11"
68
68
  },
69
69
  "engines": {