@frontmcp/sdk 1.9.2 → 1.9.4
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/agent/agent-builtin-tools.d.ts +75 -0
- package/agent/agent-builtin-tools.d.ts.map +1 -0
- package/agent/agent-execution-loop.d.ts +24 -1
- package/agent/agent-execution-loop.d.ts.map +1 -1
- package/agent/agent.instance.d.ts +15 -9
- package/agent/agent.instance.d.ts.map +1 -1
- package/agent/agent.scope.d.ts +3 -1
- package/agent/agent.scope.d.ts.map +1 -1
- package/agent/flows/call-agent.flow.d.ts +3 -1
- package/agent/flows/call-agent.flow.d.ts.map +1 -1
- package/agent/hooks/agent.hooks.d.ts +4 -4
- package/app/app.registry.d.ts.map +1 -1
- package/app/app.utils.d.ts +5 -0
- package/app/app.utils.d.ts.map +1 -1
- package/app/instances/app.esm.instance.d.ts.map +1 -1
- package/app/instances/app.remote.instance.d.ts.map +1 -1
- package/auth/flows/oauth.authorize.flow.d.ts.map +1 -1
- package/auth/flows/oauth.register.flow.d.ts.map +1 -1
- package/auth/flows/oauth.token.flow.d.ts.map +1 -1
- package/auth/flows/session.verify.flow.d.ts +5 -0
- package/auth/flows/session.verify.flow.d.ts.map +1 -1
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts.map +1 -1
- package/auth/flows/well-known.prm.flow.d.ts +1 -1
- package/auth/flows/well-known.prm.flow.d.ts.map +1 -1
- package/auth/instances/instance.local-primary-auth.d.ts +33 -2
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
- package/browser/index.cjs +7271 -6295
- package/browser/index.mjs +6488 -5515
- package/builtin/config/config.plugin.d.ts.map +1 -1
- package/builtin/config/config.types.d.ts +2 -1
- package/builtin/config/config.types.d.ts.map +1 -1
- package/builtin/config/providers/config-loader.d.ts +8 -0
- package/builtin/config/providers/config-loader.d.ts.map +1 -1
- package/channel/channel-scope.helper.d.ts.map +1 -1
- package/common/decorators/app.decorator.d.ts.map +1 -1
- package/common/dynamic/dynamic.plugin.d.ts +5 -0
- package/common/dynamic/dynamic.plugin.d.ts.map +1 -1
- package/common/entries/workflow.entry.d.ts +2 -0
- package/common/entries/workflow.entry.d.ts.map +1 -1
- package/common/interfaces/agent.interface.d.ts +22 -2
- package/common/interfaces/agent.interface.d.ts.map +1 -1
- package/common/interfaces/execution-context.interface.d.ts +6 -2
- package/common/interfaces/execution-context.interface.d.ts.map +1 -1
- package/common/interfaces/flow.interface.d.ts +12 -0
- package/common/interfaces/flow.interface.d.ts.map +1 -1
- package/common/metadata/agent.metadata.d.ts +25 -9
- package/common/metadata/agent.metadata.d.ts.map +1 -1
- package/common/metadata/app.metadata.d.ts +39 -1
- package/common/metadata/app.metadata.d.ts.map +1 -1
- package/common/metadata/flow.metadata.d.ts +2 -0
- package/common/metadata/flow.metadata.d.ts.map +1 -1
- package/common/metadata/front-mcp.metadata.d.ts +240 -13
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/ui-serving-mode.d.ts +30 -0
- package/common/metadata/ui-serving-mode.d.ts.map +1 -0
- package/common/schemas/annotated-class.schema.d.ts +1 -1
- package/common/schemas/http-output.schema.d.ts +4 -0
- package/common/schemas/http-output.schema.d.ts.map +1 -1
- package/common/tokens/app.tokens.d.ts.map +1 -1
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -1
- package/common/types/options/ext-apps/interfaces.d.ts +7 -5
- package/common/types/options/ext-apps/interfaces.d.ts.map +1 -1
- package/common/types/options/ext-apps/schema.d.ts +5 -5
- package/common/types/options/ext-apps/schema.d.ts.map +1 -1
- package/common/types/options/logging/schema.d.ts.map +1 -1
- package/common/types/options/redis/schema.d.ts.map +1 -1
- package/common/types/options/session/interfaces.d.ts +16 -24
- package/common/types/options/session/interfaces.d.ts.map +1 -1
- package/common/types/options/session/schema.d.ts +29 -0
- package/common/types/options/session/schema.d.ts.map +1 -1
- package/common/types/options/transport/interfaces.d.ts +29 -16
- package/common/types/options/transport/interfaces.d.ts.map +1 -1
- package/common/types/options/transport/schema.d.ts +2 -0
- package/common/types/options/transport/schema.d.ts.map +1 -1
- package/common/utils/tool-lookup.utils.d.ts +6 -5
- package/common/utils/tool-lookup.utils.d.ts.map +1 -1
- package/context/frontmcp-context-storage.d.ts +3 -2
- package/context/frontmcp-context-storage.d.ts.map +1 -1
- package/context/frontmcp-context.d.ts +4 -4
- package/direct/client.types.d.ts +33 -6
- package/direct/client.types.d.ts.map +1 -1
- package/direct/connect.d.ts +8 -1
- package/direct/connect.d.ts.map +1 -1
- package/direct/create.d.ts.map +1 -1
- package/direct/create.types.d.ts +17 -34
- package/direct/create.types.d.ts.map +1 -1
- package/direct/direct-server.d.ts +9 -2
- package/direct/direct-server.d.ts.map +1 -1
- package/direct/direct.types.d.ts +41 -0
- package/direct/direct.types.d.ts.map +1 -1
- package/direct/index.d.ts +2 -2
- package/direct/index.d.ts.map +1 -1
- package/elicitation/elicitation-meta.d.ts +3 -0
- package/elicitation/elicitation-meta.d.ts.map +1 -0
- package/elicitation/elicitation.types.d.ts +2 -2
- package/elicitation/flows/elicitation-request.flow.d.ts.map +1 -1
- package/elicitation/flows/elicitation-result.flow.d.ts.map +1 -1
- package/elicitation/helpers/elicit.helper.d.ts.map +1 -1
- package/elicitation/hooks/elicitation.hooks.d.ts +8 -8
- package/errors/error-handler.d.ts.map +1 -1
- package/errors/index.d.ts +1 -1
- package/errors/index.d.ts.map +1 -1
- package/errors/mcp.error.d.ts +7 -1
- package/errors/mcp.error.d.ts.map +1 -1
- package/errors/registry.errors.d.ts +7 -0
- package/errors/registry.errors.d.ts.map +1 -1
- package/esm/index.mjs +6493 -5520
- package/ext-apps/ext-apps.handler.d.ts +36 -13
- package/ext-apps/ext-apps.handler.d.ts.map +1 -1
- package/ext-apps/ext-apps.types.d.ts +34 -8
- package/ext-apps/ext-apps.types.d.ts.map +1 -1
- package/ext-apps/index.d.ts +1 -1
- package/ext-apps/index.d.ts.map +1 -1
- package/flows/flow.instance.d.ts +5 -0
- package/flows/flow.instance.d.ts.map +1 -1
- package/flows/flow.registry.d.ts.map +1 -1
- package/flows/flow.stages.d.ts +6 -1
- package/flows/flow.stages.d.ts.map +1 -1
- package/flows/resolved-entries.d.ts +2 -0
- package/flows/resolved-entries.d.ts.map +1 -1
- package/front-mcp/front-mcp.d.ts +20 -2
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/hooks/entry-class-hooks.d.ts +8 -6
- package/hooks/entry-class-hooks.d.ts.map +1 -1
- package/hooks/hooks.utils.d.ts +12 -2
- package/hooks/hooks.utils.d.ts.map +1 -1
- package/index.d.ts +34 -7
- package/index.d.ts.map +1 -1
- package/index.js +7283 -6307
- package/job/execution/job-execution.manager.d.ts +12 -4
- package/job/execution/job-execution.manager.d.ts.map +1 -1
- package/job/flows/execute-job.flow.d.ts +124 -0
- package/job/flows/execute-job.flow.d.ts.map +1 -0
- package/job/index.d.ts +3 -0
- package/job/index.d.ts.map +1 -1
- package/job/job-attempt.d.ts +91 -0
- package/job/job-attempt.d.ts.map +1 -0
- package/job/job-scope.helper.d.ts +3 -0
- package/job/job-scope.helper.d.ts.map +1 -1
- package/job/job.instance.d.ts.map +1 -1
- package/job/job.utils.d.ts +0 -6
- package/job/job.utils.d.ts.map +1 -1
- package/job/store/job-definition-store.factory.d.ts +3 -0
- package/job/store/job-definition-store.factory.d.ts.map +1 -1
- package/job/store/job-state-store.factory.d.ts +3 -0
- package/job/store/job-state-store.factory.d.ts.map +1 -1
- package/logger/logger.registry.d.ts.map +1 -1
- package/logging/flows/set-level.flow.d.ts +1 -1
- package/logging/flows/set-level.flow.d.ts.map +1 -1
- package/package.json +10 -10
- package/plugin/plugin.registry.d.ts +2 -1
- package/plugin/plugin.registry.d.ts.map +1 -1
- package/prompt/flows/get-prompt.flow.d.ts +9 -3
- package/prompt/flows/get-prompt.flow.d.ts.map +1 -1
- package/prompt/flows/prompts-list.flow.d.ts +4 -1
- package/prompt/flows/prompts-list.flow.d.ts.map +1 -1
- package/remote-mcp/mcp-client.service.d.ts +2 -0
- package/remote-mcp/mcp-client.service.d.ts.map +1 -1
- package/remote-mcp/resilience/index.d.ts +1 -1
- package/remote-mcp/resilience/index.d.ts.map +1 -1
- package/remote-mcp/resilience/retry.d.ts +13 -1
- package/remote-mcp/resilience/retry.d.ts.map +1 -1
- package/resource/flows/read-resource.flow.d.ts +3 -1
- package/resource/flows/read-resource.flow.d.ts.map +1 -1
- package/resource/flows/subscribe-resource.flow.d.ts +2 -1
- package/resource/flows/subscribe-resource.flow.d.ts.map +1 -1
- package/resource/flows/unsubscribe-resource.flow.d.ts +1 -1
- package/resource/flows/unsubscribe-resource.flow.d.ts.map +1 -1
- package/scope/flows/http.request.flow.d.ts.map +1 -1
- package/scope/scope.instance.d.ts.map +1 -1
- package/scope/startup-report.helper.d.ts +14 -0
- package/scope/startup-report.helper.d.ts.map +1 -0
- package/scope/tracer-provider.utils.d.ts +12 -0
- package/scope/tracer-provider.utils.d.ts.map +1 -1
- package/skill/flows/load-skill.flow.d.ts +4 -14
- package/skill/flows/load-skill.flow.d.ts.map +1 -1
- package/skill/flows/search-skills.flow.d.ts +4 -2
- package/skill/flows/search-skills.flow.d.ts.map +1 -1
- package/skill/sep-2640/sep-2640.per-skill.d.ts +1 -1
- package/skill/skill-instructions.helper.d.ts.map +1 -1
- package/skill/skill.instance.d.ts +2 -1
- package/skill/skill.instance.d.ts.map +1 -1
- package/tool/flows/call-tool.flow.d.ts +3 -1
- package/tool/flows/call-tool.flow.d.ts.map +1 -1
- package/tool/flows/tools-list.flow.d.ts.map +1 -1
- package/tool/tool.utils.d.ts +2 -0
- package/tool/tool.utils.d.ts.map +1 -1
- package/tool/ui/serving-mode-default.d.ts +24 -0
- package/tool/ui/serving-mode-default.d.ts.map +1 -0
- package/tool/ui/ui-option-warnings.d.ts +8 -0
- package/tool/ui/ui-option-warnings.d.ts.map +1 -1
- package/tool/ui/ui-resource.handler.d.ts.map +1 -1
- package/tool/ui/ui-shared.d.ts +6 -0
- package/tool/ui/ui-shared.d.ts.map +1 -1
- package/transport/adapters/transport.sse.adapter.d.ts.map +1 -1
- package/transport/build-scoped-server-options.d.ts.map +1 -1
- package/transport/flows/handle.mcp-20260728.flow.d.ts +4 -9
- package/transport/flows/handle.mcp-20260728.flow.d.ts.map +1 -1
- package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -1
- package/transport/in-memory-server.d.ts +6 -0
- package/transport/in-memory-server.d.ts.map +1 -1
- package/transport/mcp-20260728/client/mcp-stateless.client.d.ts +13 -1
- package/transport/mcp-20260728/client/mcp-stateless.client.d.ts.map +1 -1
- package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/logging-set-level-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/mcp-surface.d.ts +2 -0
- package/transport/mcp-handlers/mcp-surface.d.ts.map +1 -1
- package/transport/mcp-handlers/skills-load-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/skills-load-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/skills-search-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/skills-search-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/subscribe-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/subscribe-request.handler.d.ts.map +1 -1
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts +1 -1
- package/transport/mcp-handlers/unsubscribe-request.handler.d.ts.map +1 -1
- package/transport/relay/relay-http.d.ts +4 -0
- package/transport/relay/relay-http.d.ts.map +1 -1
- package/transport/session-mode.check.d.ts +15 -5
- package/transport/session-mode.check.d.ts.map +1 -1
- package/transport/transport.registry.d.ts +23 -0
- package/transport/transport.registry.d.ts.map +1 -1
- package/transport/web-fetch-handler.d.ts +5 -5
- package/transport/web-fetch-handler.d.ts.map +1 -1
- package/transport/web-standard-mcp.d.ts.map +1 -1
- package/workflow/engine/workflow-step.executor.d.ts +13 -2
- package/workflow/engine/workflow-step.executor.d.ts.map +1 -1
- package/workflow/engine/workflow.engine.d.ts.map +1 -1
|
@@ -72,7 +72,17 @@ export interface McpStatelessClientOptions {
|
|
|
72
72
|
export declare class McpStatelessError extends Error {
|
|
73
73
|
readonly code: number;
|
|
74
74
|
readonly data?: unknown | undefined;
|
|
75
|
-
|
|
75
|
+
/** The HTTP status of a response that wasn't a success, and the wait its `Retry-After` asked for. */
|
|
76
|
+
readonly http?: {
|
|
77
|
+
status: number;
|
|
78
|
+
retryAfterMs?: number;
|
|
79
|
+
} | undefined;
|
|
80
|
+
constructor(code: number, message: string, data?: unknown | undefined,
|
|
81
|
+
/** The HTTP status of a response that wasn't a success, and the wait its `Retry-After` asked for. */
|
|
82
|
+
http?: {
|
|
83
|
+
status: number;
|
|
84
|
+
retryAfterMs?: number;
|
|
85
|
+
} | undefined);
|
|
76
86
|
}
|
|
77
87
|
export declare class McpStatelessClient {
|
|
78
88
|
private nextId;
|
|
@@ -148,6 +158,8 @@ export declare class McpStatelessClient {
|
|
|
148
158
|
* notifications followed by the final response, so notifications are forwarded
|
|
149
159
|
* as they arrive and the terminating message is returned.
|
|
150
160
|
*/
|
|
161
|
+
/** The error for a response that wasn't a success: its JSON-RPC error, else its body, with the HTTP status. */
|
|
162
|
+
private httpError;
|
|
151
163
|
private readResponse;
|
|
152
164
|
/** Drain an SSE body, handing each decoded JSON message to `onMessage`. */
|
|
153
165
|
private pumpSse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-stateless.client.d.ts","sourceRoot":"","sources":["../../../../src/transport/mcp-20260728/client/mcp-stateless.client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAA0C,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKjG,OAAO,EAAsB,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAGhF,yEAAyE;AACzE,MAAM,WAAW,yBAAyB;IACxC,8CAA8C;IAC9C,QAAQ,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OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IA6BrG,uEAAuE;YACzD,YAAY;IAkC1B;;;;;OAKG;YACW,SAAS;IAoCvB,6BAA6B;IACvB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/C;;;;;;OAMG;IACG,MAAM,CACV,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtC,cAAc,EAAE,CAAC,YAAY,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,KAAK,IAAI,GAC3F,OAAO,CAAC;QAAE,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IAsDxE,kEAAkE;YACpD,IAAI;IAiClB,gEAAgE;IAChE,OAAO,CAAC,YAAY;IAmCpB,OAAO,CAAC,UAAU;IAMlB;;;;;;OAMG;IACH,+GAA+G;YACjG,SAAS;YAcT,YAAY;IAsB1B,2EAA2E;YAC7D,OAAO;IAmCrB,OAAO,CAAC,IAAI;CAGb;AAED,uFAAuF;AACvF,eAAO,MAAM,uBAAuB;;;;CAA+C,CAAC;AAEpF,gGAAgG;AAChG,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/initialize-request.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAW5B,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAkC/E,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,aAAa,EACb,KAAK,EACL,mBAAmB,GACpB,EAAE,iBAAiB,GAAG,UAAU,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"initialize-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/initialize-request.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAW5B,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAkC/E,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,aAAa,EACb,KAAK,EACL,mBAAmB,GACpB,EAAE,iBAAiB,GAAG,UAAU,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAqKrE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type EmptyResult, type SetLevelRequest } from '@frontmcp/protocol';
|
|
2
2
|
import { type McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
/**
|
|
4
|
-
* Handler for the logging/setLevel MCP request.
|
|
4
|
+
* Handler for the logging/setLevel MCP request: runs the `logging:set-level` flow.
|
|
5
5
|
* Per MCP 2025-11-25 spec, this allows clients to set the minimum log level
|
|
6
6
|
* for log messages sent via notifications/message.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging-set-level-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/logging-set-level-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"logging-set-level-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/logging-set-level-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGnG,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG/E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,6BAA6B,CAAC,EAAE,KAAK,EAAE,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;uBAGrD,eAAe;;;;;;;;;;;;;;;;;;;;;;;;WAAQ,OAAO,CAAC,WAAW,CAAC;EAQvE"}
|
|
@@ -19,4 +19,6 @@ export declare function withMcpSurface<Ctx extends object>(scope: {
|
|
|
19
19
|
} | undefined, ctx: Ctx): Ctx & {
|
|
20
20
|
surface: CallSurface;
|
|
21
21
|
};
|
|
22
|
+
/** The session id the transport put in an MCP request context's auth info, if any. */
|
|
23
|
+
export declare function mcpRequestSessionId(ctx: unknown): string | undefined;
|
|
22
24
|
//# sourceMappingURL=mcp-surface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-surface.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/mcp-surface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,GAAG,WAAW,CAE/F;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,SAAS,MAAM,EAC/C,KAAK,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EAChD,GAAG,EAAE,GAAG,GACP,GAAG,GAAG;IAAE,OAAO,EAAE,WAAW,CAAA;CAAE,CAEhC"}
|
|
1
|
+
{"version":3,"file":"mcp-surface.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/mcp-surface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,GAAG,WAAW,CAE/F;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,SAAS,MAAM,EAC/C,KAAK,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EAChD,GAAG,EAAE,GAAG,GACP,GAAG,GAAG;IAAE,OAAO,EAAE,WAAW,CAAA;CAAE,CAEhC;AAED,sFAAsF;AACtF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAGpE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type McpHandler, type McpHandlerOptions } from './mcp-handlers.types';
|
|
2
2
|
import { type SkillsLoadRequest, type SkillsLoadResult } from './skills-mcp.types';
|
|
3
3
|
/**
|
|
4
|
-
* MCP handler for skills/load custom method.
|
|
4
|
+
* MCP handler for skills/load custom method: runs the `skills:load` flow.
|
|
5
5
|
*
|
|
6
6
|
* Allows MCP clients to load skills by ID with full content.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills-load-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/skills-load-request.handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skills-load-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/skills-load-request.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAE5B;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,KAAK,GACN,EAAE,iBAAiB,GAAG,UAAU,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,CAgBrE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type McpHandler, type McpHandlerOptions } from './mcp-handlers.types';
|
|
2
2
|
import { type SkillsSearchRequest, type SkillsSearchResult } from './skills-mcp.types';
|
|
3
3
|
/**
|
|
4
|
-
* MCP handler for skills/search custom method.
|
|
4
|
+
* MCP handler for skills/search custom method: runs the `skills:search` flow.
|
|
5
5
|
*
|
|
6
6
|
* Allows MCP clients to search for skills by query.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills-search-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/skills-search-request.handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skills-search-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/skills-search-request.handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAE5B;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,EACjD,KAAK,GACN,EAAE,iBAAiB,GAAG,UAAU,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAezE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type EmptyResult, type SubscribeRequest } from '@frontmcp/protocol';
|
|
2
2
|
import { type McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
/**
|
|
4
|
-
* Handler for the resources/subscribe MCP request.
|
|
4
|
+
* Handler for the resources/subscribe MCP request: runs the `resources:subscribe` flow.
|
|
5
5
|
* Per MCP 2025-11-25 spec, this allows clients to subscribe to receive
|
|
6
6
|
* notifications when a specific resource changes.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribe-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/subscribe-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"subscribe-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/subscribe-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGrG,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG/E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAAE,KAAK,EAAE,EAAE,iBAAiB;;;;;;;;;;;;;uBAG/C,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;WAAQ,OAAO,CAAC,WAAW,CAAC;EAQxE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type EmptyResult, type UnsubscribeRequest } from '@frontmcp/protocol';
|
|
2
2
|
import { type McpHandlerOptions } from './mcp-handlers.types';
|
|
3
3
|
/**
|
|
4
|
-
* Handler for the resources/unsubscribe MCP request.
|
|
4
|
+
* Handler for the resources/unsubscribe MCP request: runs the `resources:unsubscribe` flow.
|
|
5
5
|
* Per MCP 2025-11-25 spec, this allows clients to unsubscribe from
|
|
6
6
|
* receiving notifications about a specific resource.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsubscribe-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/unsubscribe-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"unsubscribe-request.handler.d.ts","sourceRoot":"","sources":["../../../src/transport/mcp-handlers/unsubscribe-request.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAGzG,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG/E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAAE,KAAK,EAAE,EAAE,iBAAiB;;;;;;;;;;;;;uBAGjD,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;WAAQ,OAAO,CAAC,WAAW,CAAC;EAQ1E"}
|
|
@@ -37,6 +37,10 @@ export declare function isRelayedRequest(request: ServerRequest): boolean;
|
|
|
37
37
|
* Rebuild the `ServerRequest` of a relayed request on the session owner.
|
|
38
38
|
* Its socket peer is the client's address on the node that received the request,
|
|
39
39
|
* so client-IP rules see the same client they would have seen there.
|
|
40
|
+
*
|
|
41
|
+
* It behaves as a request whose body has arrived: reading (`resume()`) ends it with `end`,
|
|
42
|
+
* as `@hono/node-server` expects when it drains a request after the response; and its socket
|
|
43
|
+
* has nothing to close.
|
|
40
44
|
*/
|
|
41
45
|
export declare function createRelayedServerRequest(relayed: RelayedHttpRequest, sourceNodeId: string): ServerRequest;
|
|
42
46
|
/** A body chunk as carried in a relay frame. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relay-http.d.ts","sourceRoot":"","sources":["../../../src/transport/relay/relay-http.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,OAAO,EAAuB,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC5F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,KAAK,QAAQ,GAAG,CAAC,GAAG,IAAI,EAAE,O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|
/**
|
|
2
|
-
* Warn at startup when
|
|
2
|
+
* Warn at startup when a session option asks for something the server does not do (#678, #702).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* - `transport.sessionMode`: nothing reads it since v1.0 — whether the server keeps sessions follows
|
|
5
|
+
* `transport.protocol` (`'stateless-api'` serves without sessions). `'stateless'` (or a function)
|
|
6
|
+
* used to be ignored silently. `'stateful'`, the default, matches what the session-based protocols
|
|
7
|
+
* do and is left alone.
|
|
8
|
+
* - `session` (the pre-1.0 `@FrontMcp({ session })` option, replaced by `transport`): nothing reads
|
|
9
|
+
* it either. `session.sessionMode` is checked like `transport.sessionMode`, and
|
|
10
|
+
* `session.platformDetection` belongs in `transport.platformDetection`.
|
|
11
|
+
*
|
|
12
|
+
* Both stay accepted through 1.x (no behavior change) and are removed in the next major.
|
|
8
13
|
*/
|
|
9
14
|
export declare function warnIfSessionModeIgnored(options: {
|
|
10
15
|
logger: {
|
|
@@ -14,5 +19,10 @@ export declare function warnIfSessionModeIgnored(options: {
|
|
|
14
19
|
sessionMode?: unknown;
|
|
15
20
|
protocol?: unknown;
|
|
16
21
|
};
|
|
22
|
+
/** The deprecated top-level `session` option, accepted only to warn about it */
|
|
23
|
+
session?: {
|
|
24
|
+
sessionMode?: unknown;
|
|
25
|
+
platformDetection?: unknown;
|
|
26
|
+
};
|
|
17
27
|
}): void;
|
|
18
28
|
//# sourceMappingURL=session-mode.check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-mode.check.d.ts","sourceRoot":"","sources":["../../src/transport/session-mode.check.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session-mode.check.d.ts","sourceRoot":"","sources":["../../src/transport/session-mode.check.ts"],"names":[],"mappings":"AAmBA;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE;IAChD,MAAM,EAAE;QAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IACxC,SAAS,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAC1D,gFAAgF;IAChF,OAAO,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,OAAO,CAAC;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CAClE,GAAG,IAAI,CA8BP"}
|
|
@@ -79,6 +79,12 @@ export declare class TransportService {
|
|
|
79
79
|
private readonly ownershipGeneration;
|
|
80
80
|
/** Sessions whose local transports are being dropped because another node owns them now. */
|
|
81
81
|
private readonly relinquishing;
|
|
82
|
+
/** Local sessions whose stored record this node wrote or read: a missing record means the session ended. */
|
|
83
|
+
private readonly storedLocalSessions;
|
|
84
|
+
/** How long the per-request check of a session held in memory waits for the session store. */
|
|
85
|
+
private readonly sessionCheckTimeoutMs;
|
|
86
|
+
/** Session-store reads of the per-request check that have not settled yet, by read and session. */
|
|
87
|
+
private readonly pendingSessionChecks;
|
|
82
88
|
/**
|
|
83
89
|
* Redis key prefix under which session records are stored.
|
|
84
90
|
* The session store appends `session:` to the transport key prefix.
|
|
@@ -171,6 +177,23 @@ export declare class TransportService {
|
|
|
171
177
|
* When the record cannot be read the session is served here, and checked again on its next request.
|
|
172
178
|
*/
|
|
173
179
|
private holdsLocalSession;
|
|
180
|
+
/**
|
|
181
|
+
* Outside distributed mode several instances may hold one session in memory (#713). A session whose
|
|
182
|
+
* stored record this instance wrote or read is gone was deleted through another instance, or expired:
|
|
183
|
+
* it is dropped here too. When the store cannot be read, or does not answer within
|
|
184
|
+
* `persistence.sessionCheckTimeoutMs`, the session is served here.
|
|
185
|
+
*/
|
|
186
|
+
private isStillStored;
|
|
187
|
+
/**
|
|
188
|
+
* Bound a session-store read made while serving a session held in memory. A store that accepts the
|
|
189
|
+
* connection but never answers (a paused Redis, a partition that does not reset TCP) would otherwise
|
|
190
|
+
* hold the request open: the read rejects after `persistence.sessionCheckTimeoutMs` instead, so the
|
|
191
|
+
* caller takes its "store unreadable" path and serves the session from memory.
|
|
192
|
+
*
|
|
193
|
+
* The timer does not cancel the read. While one is unanswered, later requests for the same session
|
|
194
|
+
* wait on it rather than send another, so a silent store never accumulates a backlog of commands.
|
|
195
|
+
*/
|
|
196
|
+
private withSessionCheckTimeout;
|
|
174
197
|
/** Whether a node's heartbeat is present (`true` when liveness cannot be determined). */
|
|
175
198
|
private isNodeAlive;
|
|
176
199
|
/** Re-advertise a session this node serves, so its bus entry does not expire under it. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.registry.d.ts","sourceRoot":"","sources":["../../src/transport/transport.registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgB,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKlE,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,+BAA+B,EAAE,MAAM,WAAW,CAAC;AAIhG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAQtC,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EAIhB,KAAK,aAAa,EAEnB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"transport.registry.d.ts","sourceRoot":"","sources":["../../src/transport/transport.registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgB,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKlE,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,+BAA+B,EAAE,MAAM,WAAW,CAAC;AAIhG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAQtC,OAAO,EAEL,KAAK,cAAc,EACn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|
105
105
|
export declare function createWebFetchHandler(scope: Scope, options?: CreateWebFetchHandlerOptions): WebFetchHandler;
|
|
106
106
|
/**
|
|
107
|
-
* A fetch handler for every scope of a server
|
|
108
|
-
*
|
|
109
|
-
* to the scope whose path is the longest prefix of the request's, else
|
|
110
|
-
* the
|
|
111
|
-
*
|
|
107
|
+
* A fetch handler for every scope of a server, each served at its path (`<entryPath>`, or `<entryPath>/<appId>` for a
|
|
108
|
+
* `splitByApp` or `standalone` app's own scope), exactly where the Node server serves it: with `splitByApp` nothing is
|
|
109
|
+
* served at the entry path itself. A request goes to the scope whose path is the longest prefix of the request's, else
|
|
110
|
+
* to the scope at the entry path, else to `primary`, which also answers the health probes and `/metrics`. A 404 lists
|
|
111
|
+
* every scope's path.
|
|
112
112
|
*/
|
|
113
113
|
export declare function createServerFetchHandler(primary: Scope, scopes: readonly Scope[], options?: CreateWebFetchHandlerOptions): WebFetchHandler;
|
|
114
114
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-fetch-handler.d.ts","sourceRoot":"","sources":["../../src/transport/web-fetch-handler.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAQ/E,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAMrD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAC5C,0CAA0C;IAC1C,UAAU,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,8BAA8B;IAC9B,SAAS,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG;QAAE,OAAO,CAAC,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AAK,CAAC,EAAE,2BAA2B,CAAA;CAAE,GAClE,OAAO,CAAC,kBAAkB,CAAC,CAI7B;AAED,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,QAAQ,CAAC,CAsCnB"}
|
|
@@ -6,7 +6,7 @@ import { type JobRegistryInterface } from '../../job/job.registry';
|
|
|
6
6
|
export interface WorkflowStepExecutorExtra {
|
|
7
7
|
authInfo: Partial<Record<string, unknown>>;
|
|
8
8
|
contextProviders?: unknown;
|
|
9
|
-
/** The run's request context; each step's
|
|
9
|
+
/** The run's request context; each step's attempts run their `jobs:execute-job` flow in it (#705, #700). */
|
|
10
10
|
context?: FrontMcpContext;
|
|
11
11
|
/**
|
|
12
12
|
* The scope's authorities context builder, so a step's permission check
|
|
@@ -14,9 +14,15 @@ export interface WorkflowStepExecutorExtra {
|
|
|
14
14
|
* second, divergent notion of where roles live.
|
|
15
15
|
*/
|
|
16
16
|
authoritiesContextBuilder?: AuthoritiesContextBuilder;
|
|
17
|
+
/** The workflow the steps belong to, as hooks on `jobs:execute-job` see it in `state.workflow`. */
|
|
18
|
+
workflowName?: string;
|
|
19
|
+
/** The workflow run the steps belong to, as hooks on `jobs:execute-job` see it in `state.workflow`. */
|
|
20
|
+
workflowRunId?: string;
|
|
17
21
|
}
|
|
18
22
|
/**
|
|
19
|
-
* Executes a single workflow step by resolving the job and running it
|
|
23
|
+
* Executes a single workflow step by resolving the job and running each attempt of it through the
|
|
24
|
+
* `jobs:execute-job` flow, which checks the STEP JOB's own permissions (GHSA-58v2-gpcc-jmqv) and runs
|
|
25
|
+
* every hook on that flow (#700).
|
|
20
26
|
*/
|
|
21
27
|
export declare class WorkflowStepExecutor {
|
|
22
28
|
private readonly jobRegistry;
|
|
@@ -24,6 +30,11 @@ export declare class WorkflowStepExecutor {
|
|
|
24
30
|
private readonly extra;
|
|
25
31
|
constructor(jobRegistry: JobRegistryInterface, logger: FrontMcpLogger, extra: WorkflowStepExecutorExtra);
|
|
26
32
|
executeStep(step: WorkflowStep, input: Record<string, unknown>): Promise<WorkflowStepResult>;
|
|
33
|
+
/**
|
|
34
|
+
* Run one attempt, racing a timer. The timer does NOT cancel a job that already started; it rejects
|
|
35
|
+
* the attempt early and aborts its flow, so an attempt still building its providers or loading its
|
|
36
|
+
* auth when it times out never starts the job.
|
|
37
|
+
*/
|
|
27
38
|
private executeWithTimeout;
|
|
28
39
|
}
|
|
29
40
|
//# sourceMappingURL=workflow-step.executor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-step.executor.d.ts","sourceRoot":"","sources":["../../../src/workflow/engine/workflow-step.executor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAGhE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AACrG,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow-step.executor.d.ts","sourceRoot":"","sources":["../../../src/workflow/engine/workflow-step.executor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAGhE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AACrG,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAIrD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAA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