@frontmcp/sdk 1.8.7 → 1.9.0
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/adapter/adapter.instance.d.ts +4 -0
- package/adapter/adapter.instance.d.ts.map +1 -1
- package/adapter/adapter.registry.d.ts +2 -0
- package/adapter/adapter.registry.d.ts.map +1 -1
- package/adapter/adapter.utils.d.ts.map +1 -1
- package/agent/agent-call-chain.d.ts +21 -0
- package/agent/agent-call-chain.d.ts.map +1 -0
- package/agent/agent.instance.d.ts +70 -15
- package/agent/agent.instance.d.ts.map +1 -1
- package/agent/agent.registry.d.ts +4 -2
- package/agent/agent.registry.d.ts.map +1 -1
- package/agent/agent.scope.d.ts +18 -1
- package/agent/agent.scope.d.ts.map +1 -1
- package/agent/agent.utils.d.ts +11 -7
- package/agent/agent.utils.d.ts.map +1 -1
- package/agent/flows/call-agent.flow.d.ts +9 -1
- package/agent/flows/call-agent.flow.d.ts.map +1 -1
- package/agent/hooks/agent.hooks.d.ts +4 -4
- package/agent/hooks/agent.hooks.d.ts.map +1 -1
- package/app/instances/app.local.instance.d.ts.map +1 -1
- package/app/instances/app.remote.instance.d.ts +1 -0
- package/app/instances/app.remote.instance.d.ts.map +1 -1
- package/auth/flows/oauth.auth-ui.flow.d.ts +1 -1
- package/auth/flows/oauth.authorize.flow.d.ts +3 -3
- package/auth/flows/oauth.callback.flow.d.ts +2 -2
- package/auth/flows/oauth.connect.flow.d.ts +1 -1
- package/auth/flows/oauth.provider-callback.flow.d.ts +2 -2
- package/auth/flows/oauth.register.flow.d.ts +1 -1
- package/auth/flows/oauth.token.flow.d.ts +1 -1
- package/auth/flows/oauth.userinfo.flow.d.ts +1 -1
- package/auth/flows/well-known.jwks.flow.d.ts +3 -3
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +2 -2
- package/auth/flows/well-known.prm.flow.d.ts +1 -1
- package/auth/session/session-store.factory.d.ts +1 -1
- package/auth/session/session-store.factory.d.ts.map +1 -1
- package/auth/session/utils/session-id.utils.d.ts +5 -0
- package/auth/session/utils/session-id.utils.d.ts.map +1 -1
- package/browser/index.cjs +72652 -0
- package/browser/index.mjs +72019 -0
- package/channel/channel-notification.service.d.ts +24 -5
- package/channel/channel-notification.service.d.ts.map +1 -1
- package/channel/channel-scope.helper.d.ts +2 -0
- package/channel/channel-scope.helper.d.ts.map +1 -1
- package/channel/channel.instance.d.ts +7 -2
- package/channel/channel.instance.d.ts.map +1 -1
- package/channel/flows/list-channels.flow.d.ts.map +1 -1
- package/channel/flows/send-channel-notification.flow.d.ts +14 -1
- package/channel/flows/send-channel-notification.flow.d.ts.map +1 -1
- package/channel/reply/channel-reply.tool.d.ts.map +1 -1
- package/common/availability/availability.utils.d.ts +4 -3
- package/common/availability/availability.utils.d.ts.map +1 -1
- package/common/dynamic/dynamic.adapter.d.ts +13 -7
- package/common/dynamic/dynamic.adapter.d.ts.map +1 -1
- package/common/dynamic/dynamic.plugin.d.ts +9 -4
- package/common/dynamic/dynamic.plugin.d.ts.map +1 -1
- package/common/dynamic/dynamic.utils.d.ts +7 -1
- package/common/dynamic/dynamic.utils.d.ts.map +1 -1
- package/common/entries/channel.entry.d.ts +1 -1
- package/common/entries/channel.entry.d.ts.map +1 -1
- package/common/entries/scope.entry.d.ts +26 -0
- package/common/entries/scope.entry.d.ts.map +1 -1
- package/common/interfaces/agent.interface.d.ts +19 -3
- package/common/interfaces/agent.interface.d.ts.map +1 -1
- package/common/interfaces/execution-context.interface.d.ts +10 -4
- package/common/interfaces/execution-context.interface.d.ts.map +1 -1
- package/common/interfaces/prompt.interface.d.ts +12 -0
- package/common/interfaces/prompt.interface.d.ts.map +1 -1
- package/common/metadata/agent.metadata.d.ts +36 -19
- package/common/metadata/agent.metadata.d.ts.map +1 -1
- package/common/metadata/app.metadata.d.ts +26 -1
- package/common/metadata/app.metadata.d.ts.map +1 -1
- package/common/metadata/channel.metadata.d.ts +1 -0
- package/common/metadata/channel.metadata.d.ts.map +1 -1
- package/common/metadata/front-mcp.metadata.d.ts +1211 -27
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/hook.metadata.d.ts +10 -0
- package/common/metadata/hook.metadata.d.ts.map +1 -1
- package/common/metadata/job.metadata.d.ts +1 -1
- package/common/metadata/prompt.metadata.d.ts +1 -0
- package/common/metadata/prompt.metadata.d.ts.map +1 -1
- package/common/metadata/resource.metadata.d.ts +2 -0
- package/common/metadata/resource.metadata.d.ts.map +1 -1
- package/common/metadata/skill.metadata.d.ts +20 -3
- package/common/metadata/skill.metadata.d.ts.map +1 -1
- package/common/metadata/tool.metadata.d.ts +1 -0
- package/common/metadata/tool.metadata.d.ts.map +1 -1
- package/common/metadata/workflow.metadata.d.ts +2 -2
- package/common/records/agent.record.d.ts +5 -1
- package/common/records/agent.record.d.ts.map +1 -1
- package/common/schemas/http-output.schema.d.ts +28 -28
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -1
- package/common/tokens/server.tokens.d.ts +1 -0
- package/common/tokens/server.tokens.d.ts.map +1 -1
- package/common/types/options/elicitation/schema.d.ts +19 -0
- package/common/types/options/elicitation/schema.d.ts.map +1 -1
- package/common/types/options/http/schema.d.ts.map +1 -1
- package/common/types/options/redis/index.d.ts +3 -3
- package/common/types/options/redis/index.d.ts.map +1 -1
- package/common/types/options/redis/interfaces.d.ts +19 -2
- package/common/types/options/redis/interfaces.d.ts.map +1 -1
- package/common/types/options/redis/schema.d.ts +84 -0
- package/common/types/options/redis/schema.d.ts.map +1 -1
- package/common/types/options/session/interfaces.d.ts +4 -2
- package/common/types/options/session/interfaces.d.ts.map +1 -1
- package/common/types/options/skills-http/schema.d.ts +2 -2
- package/common/types/options/sqlite/interfaces.d.ts +8 -0
- package/common/types/options/sqlite/interfaces.d.ts.map +1 -1
- package/common/types/options/sqlite/resolve.d.ts.map +1 -1
- package/common/types/options/sqlite/schema.d.ts +1 -0
- package/common/types/options/sqlite/schema.d.ts.map +1 -1
- package/common/types/options/transport/interfaces.d.ts +3 -9
- package/common/types/options/transport/interfaces.d.ts.map +1 -1
- package/common/types/options/transport/schema.d.ts +78 -0
- package/common/types/options/transport/schema.d.ts.map +1 -1
- package/common/utils/path.utils.d.ts.map +1 -1
- package/context/call-surface.d.ts +3 -2
- package/context/call-surface.d.ts.map +1 -1
- package/context/frontmcp-context-storage.d.ts +7 -0
- package/context/frontmcp-context-storage.d.ts.map +1 -1
- package/direct/create.d.ts.map +1 -1
- package/direct/direct-server.d.ts +11 -5
- package/direct/direct-server.d.ts.map +1 -1
- package/direct/direct.types.d.ts +100 -14
- package/direct/direct.types.d.ts.map +1 -1
- package/direct/index.d.ts +1 -1
- package/direct/index.d.ts.map +1 -1
- package/direct/runtime-tools.d.ts +16 -0
- package/direct/runtime-tools.d.ts.map +1 -0
- package/errors/agent.errors.d.ts +13 -1
- package/errors/agent.errors.d.ts.map +1 -1
- package/errors/error-handler.d.ts.map +1 -1
- package/errors/index.d.ts +3 -3
- package/errors/index.d.ts.map +1 -1
- package/errors/mcp.error.d.ts +3 -0
- package/errors/mcp.error.d.ts.map +1 -1
- package/errors/registry.errors.d.ts +6 -0
- package/errors/registry.errors.d.ts.map +1 -1
- package/errors/transport.errors.d.ts +17 -0
- package/errors/transport.errors.d.ts.map +1 -1
- package/esm/index.mjs +14530 -11874
- package/ext-apps/ext-apps.handler.d.ts +1 -1
- package/ext-apps/ext-apps.handler.d.ts.map +1 -1
- package/flows/flow.instance.d.ts.map +1 -1
- package/front-mcp/front-mcp.d.ts +8 -0
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/front-mcp/front-mcp.providers.d.ts.map +1 -1
- package/ha/ha-config.d.ts +21 -0
- package/ha/ha-config.d.ts.map +1 -0
- package/ha/ha-headers.d.ts +18 -2
- package/ha/ha-headers.d.ts.map +1 -1
- package/ha/ha-manager.d.ts +24 -2
- package/ha/ha-manager.d.ts.map +1 -1
- package/ha/ha.types.d.ts +2 -0
- package/ha/ha.types.d.ts.map +1 -1
- package/ha/heartbeat.service.d.ts +9 -0
- package/ha/heartbeat.service.d.ts.map +1 -1
- package/ha/index.d.ts +3 -1
- package/ha/index.d.ts.map +1 -1
- package/ha/notification-relay.d.ts +15 -18
- package/ha/notification-relay.d.ts.map +1 -1
- package/ha/relay-messages.d.ts +114 -0
- package/ha/relay-messages.d.ts.map +1 -0
- package/ha/session-takeover.d.ts.map +1 -1
- package/hooks/entry-class-hooks.d.ts +27 -0
- package/hooks/entry-class-hooks.d.ts.map +1 -0
- package/hooks/hook.registry.d.ts +11 -0
- package/hooks/hook.registry.d.ts.map +1 -1
- package/hooks/hooks.utils.d.ts +19 -5
- package/hooks/hooks.utils.d.ts.map +1 -1
- package/index.d.ts +31 -13
- package/index.d.ts.map +1 -1
- package/index.js +15499 -12838
- package/job/execution/job-execution.manager.d.ts.map +1 -1
- package/job/job.instance.d.ts.map +1 -1
- package/job/job.registry.d.ts.map +1 -1
- package/metrics/index.d.ts +1 -1
- package/metrics/index.d.ts.map +1 -1
- package/metrics/metrics.routes.d.ts +23 -0
- package/metrics/metrics.routes.d.ts.map +1 -1
- package/notification/index.d.ts +1 -1
- package/notification/index.d.ts.map +1 -1
- package/notification/notification.service.d.ts +24 -0
- package/notification/notification.service.d.ts.map +1 -1
- package/package.json +16 -10
- package/plugin/plugin.registry.d.ts +5 -1
- package/plugin/plugin.registry.d.ts.map +1 -1
- package/prompt/flows/get-prompt.flow.d.ts +3 -0
- package/prompt/flows/get-prompt.flow.d.ts.map +1 -1
- package/prompt/prompt.instance.d.ts.map +1 -1
- package/prompt/prompt.registry.d.ts +19 -1
- package/prompt/prompt.registry.d.ts.map +1 -1
- package/provider/provider.registry.d.ts +33 -3
- package/provider/provider.registry.d.ts.map +1 -1
- package/resource/flows/read-resource.flow.d.ts +3 -0
- package/resource/flows/read-resource.flow.d.ts.map +1 -1
- package/resource/resource.instance.d.ts.map +1 -1
- package/resource/resource.registry.d.ts +19 -1
- package/resource/resource.registry.d.ts.map +1 -1
- package/scope/flows/http.request.flow.d.ts +12 -1
- package/scope/flows/http.request.flow.d.ts.map +1 -1
- package/scope/scope.instance.d.ts +12 -1
- package/scope/scope.instance.d.ts.map +1 -1
- package/server/adapters/express.host.adapter.d.ts.map +1 -1
- package/server/middleware/cors-env.d.ts +17 -0
- package/server/middleware/cors-env.d.ts.map +1 -0
- package/server/security/security-audit.d.ts +2 -0
- package/server/security/security-audit.d.ts.map +1 -1
- package/server/server.instance.d.ts.map +1 -1
- package/skill/auth/skill-http-auth.d.ts.map +1 -1
- package/skill/errors/skill-validation.error.d.ts +2 -2
- package/skill/errors/skill-validation.error.d.ts.map +1 -1
- package/skill/flows/http/llm-full-txt.flow.d.ts +1 -1
- package/skill/flows/http/llm-txt.flow.d.ts +1 -1
- package/skill/flows/http/skills-api.flow.d.ts +1 -1
- package/skill/providers/memory-skill.provider.d.ts +22 -15
- package/skill/providers/memory-skill.provider.d.ts.map +1 -1
- package/skill/skill.registry.d.ts +8 -6
- package/skill/skill.registry.d.ts.map +1 -1
- package/task/store/task-store.factory.d.ts +1 -0
- package/task/store/task-store.factory.d.ts.map +1 -1
- package/task/task.types.d.ts +2 -0
- package/task/task.types.d.ts.map +1 -1
- package/tool/flows/call-tool.flow.d.ts +3 -0
- 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.instance.d.ts.map +1 -1
- package/tool/tool.registry.d.ts +10 -1
- package/tool/tool.registry.d.ts.map +1 -1
- package/tool/ui/ui-option-warnings.d.ts.map +1 -1
- package/tool/ui/ui-shared.d.ts.map +1 -1
- package/transport/adapters/sse-transport.d.ts +1 -1
- package/transport/adapters/sse-transport.d.ts.map +1 -1
- package/transport/bus/redis-transport-bus.d.ts +28 -21
- package/transport/bus/redis-transport-bus.d.ts.map +1 -1
- package/transport/event-stores/event-store.factory.d.ts.map +1 -1
- package/transport/flow-error-output.d.ts +8 -0
- package/transport/flow-error-output.d.ts.map +1 -0
- package/transport/flows/handle.mcp-20260728.flow.d.ts.map +1 -1
- package/transport/flows/handle.sse.flow.d.ts.map +1 -1
- package/transport/flows/handle.streamable-http.flow.d.ts +1 -1
- package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -1
- package/transport/in-memory-server.d.ts.map +1 -1
- package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -1
- package/transport/relay/index.d.ts +5 -0
- package/transport/relay/index.d.ts.map +1 -0
- package/transport/relay/relay-flow.d.ts +17 -0
- package/transport/relay/relay-flow.d.ts.map +1 -0
- package/transport/relay/relay-http.d.ts +109 -0
- package/transport/relay/relay-http.d.ts.map +1 -0
- package/transport/relay/relay-scope.helper.d.ts +46 -0
- package/transport/relay/relay-scope.helper.d.ts.map +1 -0
- package/transport/relay/session-relay.d.ts +105 -0
- package/transport/relay/session-relay.d.ts.map +1 -0
- package/transport/session-mode.check.d.ts +18 -0
- package/transport/session-mode.check.d.ts.map +1 -0
- package/transport/transport.registry.d.ts +61 -2
- package/transport/transport.registry.d.ts.map +1 -1
- package/transport/transport.remote.d.ts +16 -5
- package/transport/transport.remote.d.ts.map +1 -1
- package/transport/transport.types.d.ts +20 -11
- package/transport/transport.types.d.ts.map +1 -1
- package/transport/web-fetch-handler.d.ts +11 -0
- package/transport/web-fetch-handler.d.ts.map +1 -1
- package/transport/web-standard-mcp.d.ts.map +1 -1
- package/utils/dynamic-import.utils.d.ts +20 -0
- package/utils/dynamic-import.utils.d.ts.map +1 -0
- package/workflow/engine/workflow-step.executor.d.ts.map +1 -1
|
@@ -12,11 +12,15 @@ export declare class AdapterInstance extends AdapterEntry {
|
|
|
12
12
|
private adapterPrompts;
|
|
13
13
|
private logger?;
|
|
14
14
|
private unsubscribeUpdate?;
|
|
15
|
+
private servedAdapter?;
|
|
15
16
|
constructor(record: AdapterRecord, deps: Set<Reference>, globalProviders: ProviderRegistry);
|
|
16
17
|
getTools(): ToolRegistry;
|
|
17
18
|
getResources(): ResourceRegistry;
|
|
18
19
|
getPrompts(): PromptRegistry;
|
|
19
20
|
protected initialize(): Promise<void>;
|
|
21
|
+
/** Drop this registry's update subscription, and stop polling once no registry serves the adapter. */
|
|
22
|
+
dispose(): void;
|
|
23
|
+
private releaseServing;
|
|
20
24
|
/**
|
|
21
25
|
* Handle adapter update (e.g., from spec polling).
|
|
22
26
|
* Replaces all tools/resources/prompts in the child registries.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.instance.d.ts","sourceRoot":"","sources":["../../src/adapter/adapter.instance.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"adapter.instance.d.ts","sourceRoot":"","sources":["../../src/adapter/adapter.instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,EACL,YAAY,EAIZ,KAAK,aAAa,EAGnB,MAAM,WAAW,CAAC;AAInB,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAClE,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAQjD,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC;IAC9B,QAAQ,CAAC,eAAe,EAAE,gBAAgB,CAAC;IAE3C,OAAO,CAAC,YAAY,CAA6B;IACjD,OAAO,CAAC,gBAAgB,CAAiC;IACzD,OAAO,CAAC,cAAc,CAA+B;IACrD,OAAO,CAAC,MAAM,CAAC,CAAiB;IAChC,OAAO,CAAC,iBAAiB,CAAC,CAAa;IACvC,OAAO,CAAC,aAAa,CAAC,CAAmB;gBAE7B,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,EAAE,eAAe,EAAE,gBAAgB;IAQ1F,QAAQ,IAAI,YAAY;IAKxB,YAAY,IAAI,gBAAgB;IAKhC,UAAU,IAAI,cAAc;cAKZ,UAAU;IA4F1B,sGAAsG;IACtG,OAAO,IAAI,IAAI;IAaf,OAAO,CAAC,cAAc;IAatB;;;OAGG;IACH,OAAO,CAAC,mBAAmB;CAa5B"}
|
|
@@ -11,5 +11,7 @@ export default class AdapterRegistry extends RegistryAbstract<AdapterInstance, A
|
|
|
11
11
|
/** Instantiate adapters, run fetch/transform, and populate registries. */
|
|
12
12
|
protected initialize(): Promise<void>;
|
|
13
13
|
getAdapters(): AdapterEntry[];
|
|
14
|
+
/** Stop the adapters' polling and update subscriptions; the owning scope calls it when disposed. */
|
|
15
|
+
dispose(): void;
|
|
14
16
|
}
|
|
15
17
|
//# sourceMappingURL=adapter.registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.registry.d.ts","sourceRoot":"","sources":["../../src/adapter/adapter.registry.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAI1B,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EACjB,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,MAAM,CAAC,OAAO,OAAO,eACnB,SAAQ,gBAAgB,CAAC,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,CACtE,YAAW,wBAAwB;IAEnC,OAAO,CAAC,MAAM,CAAC,CAAiB;gBAEpB,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,WAAW,EAAE;cAYzC,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,sBAAsB,CAAC,aAAa,CAAC;IAgBvF,SAAS,CAAC,UAAU;IAoBpB,0EAA0E;cAC1D,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"adapter.registry.d.ts","sourceRoot":"","sources":["../../src/adapter/adapter.registry.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAI1B,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EACjB,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,MAAM,CAAC,OAAO,OAAO,eACnB,SAAQ,gBAAgB,CAAC,eAAe,EAAE,aAAa,EAAE,WAAW,EAAE,CACtE,YAAW,wBAAwB;IAEnC,OAAO,CAAC,MAAM,CAAC,CAAiB;gBAEpB,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,WAAW,EAAE;cAYzC,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,sBAAsB,CAAC,aAAa,CAAC;IAgBvF,SAAS,CAAC,UAAU;IAoBpB,0EAA0E;cAC1D,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IA6B3C,WAAW,IAAI,YAAY,EAAE;IAI7B,oGAAoG;IACpG,OAAO,IAAI,IAAI;CAWhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.utils.d.ts","sourceRoot":"","sources":["../../src/adapter/adapter.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,KAAK,EAAE,MAAM,cAAc,CAAC;AAExF,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,WAAW,CAAC;AAGnB,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,WAAW,GAAG,eAAe,CAMxE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,WAAW,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"adapter.utils.d.ts","sourceRoot":"","sources":["../../src/adapter/adapter.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,KAAK,EAAE,MAAM,cAAc,CAAC;AAExF,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,WAAW,CAAC;AAGnB,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,WAAW,GAAG,eAAe,CAMxE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,WAAW,GAAG,aAAa,CAqDjE;AAQD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,aAAa,GAAG,KAAK,EAAE,CAchE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** An agent whose run is in progress. */
|
|
2
|
+
export interface RunningAgent {
|
|
3
|
+
/** The agent's id. */
|
|
4
|
+
readonly id: string;
|
|
5
|
+
/** How many agent-to-agent calls deep a chain this agent runs in may go (`swarm.maxCallDepth`). */
|
|
6
|
+
readonly maxCallDepth: number;
|
|
7
|
+
}
|
|
8
|
+
/** The `swarm.maxCallDepth` of an agent that doesn't set one. */
|
|
9
|
+
export declare const DEFAULT_MAX_AGENT_CALL_DEPTH = 3;
|
|
10
|
+
/** The agents whose runs the calling code is part of, outermost first; empty outside any agent. */
|
|
11
|
+
export declare function getAgentCallChain(): readonly RunningAgent[];
|
|
12
|
+
/**
|
|
13
|
+
* How deep a call to another agent made now would be, and the deepest the running agents allow:
|
|
14
|
+
* the call made by the only running agent is call 1. `undefined` outside any agent.
|
|
15
|
+
*/
|
|
16
|
+
export declare function nextAgentCallDepth(): {
|
|
17
|
+
depth: number;
|
|
18
|
+
limit: number;
|
|
19
|
+
chain: readonly RunningAgent[];
|
|
20
|
+
} | undefined;
|
|
21
|
+
//# sourceMappingURL=agent-call-chain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-call-chain.d.ts","sourceRoot":"","sources":["../../src/agent/agent-call-chain.ts"],"names":[],"mappings":"AAYA,yCAAyC;AACzC,MAAM,WAAW,YAAY;IAC3B,sBAAsB;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,mGAAmG;IACnG,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED,iEAAiE;AACjE,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAY9C,mGAAmG;AACnG,wBAAgB,iBAAiB,IAAI,SAAS,YAAY,EAAE,CAE3D;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAA;CAAE,GAAG,SAAS,CAKjH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CallToolRequest, type Tool } from '@frontmcp/protocol';
|
|
2
|
-
import { AgentContext, AgentEntry, type AgentCallArgs, type AgentCallExtra, type AgentInputOf, type AgentLlmAdapter, type AgentOutputOf, type AgentRecord, type EntryOwnerRef, type ParsedAgentResult, type SafeTransformResult, type ScopeEntry, type ToolEntry, type ToolInputType, type ToolOutputType } from '../common';
|
|
2
|
+
import { AgentContext, AgentEntry, type AgentCallArgs, type AgentCallExtra, type AgentInputOf, type AgentLlmAdapter, type AgentOutputOf, type AgentRecord, type EntryOwnerRef, type ParsedAgentResult, type PromptEntry, type ResourceEntry, type SafeTransformResult, type ScopeEntry, type ToolEntry, type ToolInputType, type ToolOutputType } from '../common';
|
|
3
3
|
import type HookRegistry from '../hooks/hook.registry';
|
|
4
4
|
import type ProviderRegistry from '../provider/provider.registry';
|
|
5
5
|
import { ToolInstance } from '../tool/tool.instance';
|
|
@@ -46,12 +46,21 @@ export declare class AgentInstance<InSchema extends ToolInputType = ToolInputTyp
|
|
|
46
46
|
private agentScope;
|
|
47
47
|
/**
|
|
48
48
|
* The agent exposed as a standard tool for registration in parent scope.
|
|
49
|
-
* This allows the agent to be called like any other tool (
|
|
49
|
+
* This allows the agent to be called like any other tool (invoke_<agent>) and
|
|
50
50
|
* go through the standard tools:call-tool flow with all plugins/hooks.
|
|
51
51
|
*/
|
|
52
52
|
private agentToolInstance;
|
|
53
|
+
/** The resources and prompts this agent exports to its parent scope (`exports`). */
|
|
54
|
+
private exportedResources;
|
|
55
|
+
private exportedPrompts;
|
|
53
56
|
constructor(record: AgentRecord, providers: ProviderRegistry, owner: EntryOwnerRef);
|
|
54
57
|
protected initialize(): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Options the agent accepts that have no effect yet, logged at startup instead of being dropped
|
|
60
|
+
* silently: `execution.enableStreaming`, and resources or prompts nothing reads (the agent's model
|
|
61
|
+
* is sent tools only, so its resources and prompts reach nothing unless they are exported).
|
|
62
|
+
*/
|
|
63
|
+
private warnAboutUnusedOptions;
|
|
55
64
|
/**
|
|
56
65
|
* Initialize the agent's private scope.
|
|
57
66
|
*
|
|
@@ -66,6 +75,18 @@ export declare class AgentInstance<InSchema extends ToolInputType = ToolInputTyp
|
|
|
66
75
|
* Tool calls are routed through the scope's call-tool flow for full lifecycle support.
|
|
67
76
|
*/
|
|
68
77
|
private initializeAgentTools;
|
|
78
|
+
/**
|
|
79
|
+
* Resolve `exports`: the providers are added to the registry this agent was registered with (its
|
|
80
|
+
* app's, or its parent agent's), so the entries there can inject them; the resources and prompts
|
|
81
|
+
* are kept for the parent scope's registries (see {@link getExportedResources}). Fails when an
|
|
82
|
+
* export is not one of the agent's own resources, prompts or providers.
|
|
83
|
+
*/
|
|
84
|
+
private resolveExports;
|
|
85
|
+
private undeclaredExportError;
|
|
86
|
+
/** The resources this agent exports to its parent scope (`exports.resources`). */
|
|
87
|
+
getExportedResources(): readonly ResourceEntry[];
|
|
88
|
+
/** The prompts this agent exports to its parent scope (`exports.prompts`). */
|
|
89
|
+
getExportedPrompts(): readonly PromptEntry[];
|
|
69
90
|
/**
|
|
70
91
|
* Initialize the LLM adapter from the agent's metadata configuration.
|
|
71
92
|
*/
|
|
@@ -136,6 +157,13 @@ export declare class AgentInstance<InSchema extends ToolInputType = ToolInputTyp
|
|
|
136
157
|
* scope holds them. Empty until the agent is initialized.
|
|
137
158
|
*/
|
|
138
159
|
getAgentTools(): readonly ToolEntry[];
|
|
160
|
+
/**
|
|
161
|
+
* Whether a tool this agent runs in its private scope (one of its own, or a nested agent's
|
|
162
|
+
* `invoke_<agent>` tool) declares `rateLimit` or `concurrency`, at any depth of nested agents. The
|
|
163
|
+
* server guards those calls with its guard manager, which it creates for such a limit even without
|
|
164
|
+
* `throttle.enabled`.
|
|
165
|
+
*/
|
|
166
|
+
declaresScopedLimits(): boolean;
|
|
139
167
|
getMetadata(): import("../common").AgentMetadata<Readonly<{
|
|
140
168
|
[k: string]: import("zod/v4/core").$ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
|
141
169
|
}>, ToolOutputType>;
|
|
@@ -162,20 +190,28 @@ export declare class AgentInstance<InSchema extends ToolInputType = ToolInputTyp
|
|
|
162
190
|
*/
|
|
163
191
|
private buildAgentCtorArgs;
|
|
164
192
|
/**
|
|
165
|
-
*
|
|
166
|
-
*
|
|
193
|
+
* The tools this agent's model is offered, each under the name the model calls it by:
|
|
194
|
+
* 1. the agent's own tools (`tools`, and its nested agents' `invoke_<agent>` tools), run in its private scope
|
|
195
|
+
* (a nested agent always through that scope's `tools:call-tool` flow, see {@link createToolExecutor});
|
|
196
|
+
* 2. with `swarm.canSeeOtherAgents`, the `invoke_<agent>` tools of the other agents of its scope that it
|
|
197
|
+
* sees (`swarm.visibleAgents`, and each one's `swarm.isVisible`), run through that scope;
|
|
198
|
+
* 3. with `execution.inheritParentTools`, the tools of the scope it is registered in, other than agents,
|
|
199
|
+
* run through that scope.
|
|
200
|
+
* A name already taken by an earlier tool is not offered again. Only tools whose `availableWhen.surface`
|
|
201
|
+
* offers them to agents are included.
|
|
167
202
|
*/
|
|
168
|
-
private
|
|
203
|
+
private getModelTools;
|
|
204
|
+
/** The `invoke_<agent>` tools of this agent's nested agents (`agents`), which its private scope holds. */
|
|
205
|
+
private getNestedAgentTools;
|
|
206
|
+
/** The agents of the scope this agent is registered in that it may call (`swarm`). */
|
|
207
|
+
private getSwarmAgents;
|
|
208
|
+
/** With `execution.inheritParentTools`, the tools of the scope this agent is registered in, other than agents. */
|
|
209
|
+
private getInheritedTools;
|
|
169
210
|
/**
|
|
170
|
-
*
|
|
171
|
-
* `'agent'` surface. The others are neither shown to the model nor run for it.
|
|
172
|
-
*/
|
|
173
|
-
private getOfferedTools;
|
|
174
|
-
/**
|
|
175
|
-
* Create a tool executor for agent-scoped tools.
|
|
211
|
+
* Create the executor of the model's tool calls.
|
|
176
212
|
*
|
|
177
|
-
*
|
|
178
|
-
* through the agent's private scope's call-tool flow. This enables full lifecycle
|
|
213
|
+
* The agent's own tools: when `execution.useToolFlow` is enabled (default: true), tool calls are
|
|
214
|
+
* routed through the agent's private scope's call-tool flow. This enables full lifecycle
|
|
179
215
|
* support including:
|
|
180
216
|
* - Plugin integration (cache, PII, rate limiting, etc.)
|
|
181
217
|
* - Hook execution (will/did/around stages)
|
|
@@ -183,13 +219,32 @@ export declare class AgentInstance<InSchema extends ToolInputType = ToolInputTyp
|
|
|
183
219
|
* - UI rendering
|
|
184
220
|
* - MCP-compliant error handling
|
|
185
221
|
*
|
|
186
|
-
* When `execution.useToolFlow` is false, tools are executed directly for
|
|
187
|
-
* performance-critical scenarios.
|
|
222
|
+
* When `execution.useToolFlow` is false, the agent's own tools are executed directly for
|
|
223
|
+
* performance-critical scenarios. Its nested agents' `invoke_<agent>` tools still run through its
|
|
224
|
+
* private scope's call-tool flow: that flow applies the gates a nested agent declares (authorities,
|
|
225
|
+
* rate limit, concurrency, plugin gates), which the nested agent's `agents:call-agent` flow leaves to
|
|
226
|
+
* it. Tools of the parent scope (swarm agents, inherited tools) always run through the parent
|
|
227
|
+
* scope's call-tool flow, which applies what they declare.
|
|
188
228
|
*
|
|
189
229
|
* @param ctx - Extra context including authInfo
|
|
230
|
+
* @param modelTools - The tools the model is offered for this run
|
|
190
231
|
* @returns A function that executes tools by name
|
|
191
232
|
*/
|
|
192
233
|
private createToolExecutor;
|
|
234
|
+
/**
|
|
235
|
+
* Call `tool` through `scope`'s `tools:call-tool` flow on the agent surface, and return what it
|
|
236
|
+
* produced (see {@link extractToolResult}).
|
|
237
|
+
*/
|
|
238
|
+
private callToolThrough;
|
|
239
|
+
/** This agent's private scope, or that of the agent it is nested in: the consent screen offers neither. */
|
|
240
|
+
private isAgentPrivateScope;
|
|
241
|
+
/**
|
|
242
|
+
* Create the agent's `invokeAgent(agentId, input)`: it calls one of the agent's nested agents
|
|
243
|
+
* (`agents`), or an agent of its scope the agent sees (`swarm`), through that agent's
|
|
244
|
+
* `invoke_<agent>` tool, and returns the agent's output. The agent called must be one the model
|
|
245
|
+
* could call too.
|
|
246
|
+
*/
|
|
247
|
+
private createAgentInvoker;
|
|
193
248
|
/**
|
|
194
249
|
* The `checkEntryAuthorities` stage of tools:call-tool, for a tool this agent runs directly
|
|
195
250
|
* (`execution.useToolFlow: false`): the caller the agent runs for must satisfy the tool's `authorities`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.instance.d.ts","sourceRoot":"","sources":["../../src/agent/agent.instance.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,eAAe,EAAyC,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG5G,OAAO,EACL,YAAY,EACZ,UAAU,EAEV,KAAK,aAAa,EAClB,KAAK,cAAc,EAGnB,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"agent.instance.d.ts","sourceRoot":"","sources":["../../src/agent/agent.instance.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,eAAe,EAAyC,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG5G,OAAO,EACL,Y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F;IACtF,OAAO,CAAC,cAAc;IAKtB,kHAAkH;IAClH,OAAO,CAAC,iBAAiB;IAUzB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,OAAO,CAAC,kBAAkB;IAyC1B;;;OAGG;YACW,eAAe;IAuB7B,2GAA2G;IAC3G,OAAO,CAAC,mBAAmB;IAI3B;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB;IA0B1B;;;OAGG;YACW,oBAAoB;IAgClC;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,iBAAiB;IAmChB,UAAU,CAAC,KAAK,EAAE,eAAe,CAAC,QAAQ,CAAC,GAAG,aAAa;IAK3D,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,GAAG,iBAAiB;IAKjE,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,GAAG,mBAAmB,CAAC,iBAAiB,CAAC;IAQnG;;;;;OAKG;IACM,iBAAiB,IAAI,IAAI;IA+BlC;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAanB,gBAAgB,IAAI,OAAO;IAI3B,WAAW,IAAI,OAAO;IAItB,kBAAkB,IAAI,MAAM,EAAE;CAGxC"}
|
|
@@ -51,7 +51,9 @@ export default class AgentRegistry extends RegistryAbstract<AgentInstance, Agent
|
|
|
51
51
|
protected buildGraph(): void;
|
|
52
52
|
protected initialize(): Promise<void>;
|
|
53
53
|
/**
|
|
54
|
-
* Register each agent's ToolInstance in the parent scope's ToolRegistry
|
|
54
|
+
* Register each agent's ToolInstance in the parent scope's ToolRegistry, and the resources and
|
|
55
|
+
* prompts it exports (`exports`) in the parent scope's ResourceRegistry and PromptRegistry, so they
|
|
56
|
+
* are listed (`resources/list`, `prompts/list`), read and got like the scope's own.
|
|
55
57
|
*
|
|
56
58
|
* This enables:
|
|
57
59
|
* - Agents to be called like any other tool through tools:call-tool flow
|
|
@@ -115,7 +117,7 @@ export default class AgentRegistry extends RegistryAbstract<AgentInstance, Agent
|
|
|
115
117
|
/**
|
|
116
118
|
* Get tool definitions for all agents.
|
|
117
119
|
*
|
|
118
|
-
* Each agent is exposed as a tool with name `
|
|
120
|
+
* Each agent is exposed as a tool with name `invoke_<agent_id>`.
|
|
119
121
|
*/
|
|
120
122
|
getAgentsAsTools(): Tool[];
|
|
121
123
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.registry.d.ts","sourceRoot":"","sources":["../../src/agent/agent.registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,KAAK,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAGnE,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAGrH,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOjD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,aAAa,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,aAAa,CAAC;CACvB;AAMD;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,gBAAgB,CAAC,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,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 -1,5 +1,6 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
2
|
import { type Token, type Type } from '@frontmcp/di';
|
|
3
|
+
import type { GuardManager } from '@frontmcp/guard';
|
|
3
4
|
import AdapterRegistry from '../adapter/adapter.registry';
|
|
4
5
|
import { FrontMcpLogger, ScopeEntry, type AgentMetadata, type FlowInputOf, type FlowName, type FlowOutputOf, type FlowType, type FrontMcpAuth } from '../common';
|
|
5
6
|
import HookRegistry from '../hooks/hook.registry';
|
|
@@ -9,6 +10,14 @@ import ProviderRegistry from '../provider/provider.registry';
|
|
|
9
10
|
import ResourceRegistry from '../resource/resource.registry';
|
|
10
11
|
import ToolRegistry from '../tool/tool.registry';
|
|
11
12
|
import AgentRegistry from './agent.registry';
|
|
13
|
+
/** What an {@link AgentScope} takes from the agent it belongs to, besides its metadata. */
|
|
14
|
+
export interface AgentScopeOptions {
|
|
15
|
+
/**
|
|
16
|
+
* The owner (app, plugin, scope or parent agent) the agent is registered under. With
|
|
17
|
+
* `execution.inheritPlugins`, the agent's tools get the parent scope's hooks for entries of this owner.
|
|
18
|
+
*/
|
|
19
|
+
ownerId: string;
|
|
20
|
+
}
|
|
12
21
|
/**
|
|
13
22
|
* AgentScope provides an isolated, private scope for agent execution.
|
|
14
23
|
*
|
|
@@ -42,6 +51,7 @@ import AgentRegistry from './agent.registry';
|
|
|
42
51
|
*/
|
|
43
52
|
export declare class AgentScope {
|
|
44
53
|
private readonly metadata;
|
|
54
|
+
private readonly options?;
|
|
45
55
|
readonly id: string;
|
|
46
56
|
readonly entryPath: string;
|
|
47
57
|
readonly routeBase: string;
|
|
@@ -59,7 +69,7 @@ export declare class AgentScope {
|
|
|
59
69
|
private agentAgents;
|
|
60
70
|
private agentHooks;
|
|
61
71
|
private agentFlows;
|
|
62
|
-
constructor(parentScope: ScopeEntry, agentId: string, metadata: AgentMetadata, agentToken: Token);
|
|
72
|
+
constructor(parentScope: ScopeEntry, agentId: string, metadata: AgentMetadata, agentToken: Token, options?: AgentScopeOptions | undefined);
|
|
63
73
|
private initialize;
|
|
64
74
|
get tools(): ToolRegistry;
|
|
65
75
|
get hooks(): HookRegistry;
|
|
@@ -82,6 +92,13 @@ export declare class AgentScope {
|
|
|
82
92
|
get authoritiesContextBuilder(): import("@frontmcp/auth").AuthoritiesContextBuilder | undefined;
|
|
83
93
|
/** The server's mapping from authority denials to OAuth scope challenges. */
|
|
84
94
|
get authoritiesScopeMapping(): import("@frontmcp/auth").AuthoritiesScopeMapping | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* The server's guard manager: the agent's tools and its nested agents' `invoke_<agent>` tools take
|
|
97
|
+
* their `rateLimit` and `concurrency` from it in this scope's `tools:call-tool` flow, like every
|
|
98
|
+
* other tool. Read when a call runs: the server creates it after its agents when only they declare
|
|
99
|
+
* limits.
|
|
100
|
+
*/
|
|
101
|
+
get rateLimitManager(): GuardManager | undefined;
|
|
85
102
|
registryFlows(...flows: FlowType[]): Promise<void>;
|
|
86
103
|
runFlow<Name extends FlowName>(name: Name, input: FlowInputOf<Name>, deps?: Map<Token, Type>): Promise<FlowOutputOf<Name> | undefined>;
|
|
87
104
|
runFlowForOutput<Name extends FlowName>(name: Name, input: FlowInputOf<Name>, deps?: Map<Token, Type>): Promise<FlowOutputOf<Name>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.scope.d.ts","sourceRoot":"","sources":["../../src/agent/agent.scope.ts"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAiB,KAAK,KAAK,EAAE,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"agent.scope.d.ts","sourceRoot":"","sources":["../../src/agent/agent.scope.ts"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAiB,KAAK,KAAK,EAAE,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAA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,CAAC,GACtB,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IAIpC,gBAAgB,CAAC,IAAI,SAAS,QAAQ,EAC1C,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,EACxB,IAAI,CAAC,EAAE,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,GACtB,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;CAO/B"}
|
package/agent/agent.utils.d.ts
CHANGED
|
@@ -5,12 +5,14 @@ import { type AgentMetadata, type AgentRecord, type AgentType } from '../common'
|
|
|
5
5
|
* Check if a value is a class decorated with @Agent.
|
|
6
6
|
*/
|
|
7
7
|
export declare function isAgentClass(value: unknown): value is new (...args: unknown[]) => unknown;
|
|
8
|
+
/** A function-based agent created with `agent(options)(handler)`: calling it returns the handler. */
|
|
9
|
+
type AgentFunction = (() => (input: unknown, ctx: unknown) => unknown) & {
|
|
10
|
+
[key: symbol]: unknown;
|
|
11
|
+
};
|
|
8
12
|
/**
|
|
9
13
|
* Check if a value is a function-based agent created with agent().
|
|
10
14
|
*/
|
|
11
|
-
export declare function isAgentFunction(value: unknown): value is
|
|
12
|
-
[key: symbol]: unknown;
|
|
13
|
-
};
|
|
15
|
+
export declare function isAgentFunction(value: unknown): value is AgentFunction;
|
|
14
16
|
/**
|
|
15
17
|
* Extract metadata from a class decorated with @Agent.
|
|
16
18
|
*/
|
|
@@ -18,9 +20,7 @@ export declare function extractAgentClassMetadata(cls: Function): AgentMetadata;
|
|
|
18
20
|
/**
|
|
19
21
|
* Extract metadata from a function-based agent.
|
|
20
22
|
*/
|
|
21
|
-
export declare function extractAgentFunctionMetadata(fn:
|
|
22
|
-
[key: symbol]: unknown;
|
|
23
|
-
}): AgentMetadata;
|
|
23
|
+
export declare function extractAgentFunctionMetadata(fn: AgentFunction): AgentMetadata;
|
|
24
24
|
/**
|
|
25
25
|
* Normalize an agent type into an AgentRecord.
|
|
26
26
|
*
|
|
@@ -33,7 +33,10 @@ export declare function normalizeAgent(agent: AgentType): AgentRecord;
|
|
|
33
33
|
/**
|
|
34
34
|
* Get dependencies needed for agent discovery.
|
|
35
35
|
*
|
|
36
|
-
* Returns the tokens
|
|
36
|
+
* Returns the tokens the agent's registry must already provide before the agent can be instantiated.
|
|
37
|
+
* The agent's own `providers` are not among them: the agent provides those itself, in its private
|
|
38
|
+
* scope (they used to be listed here, so an agent declaring a provider its app didn't also register
|
|
39
|
+
* stopped the server from starting).
|
|
37
40
|
*/
|
|
38
41
|
export declare function agentDiscoveryDeps(record: AgentRecord): Token[];
|
|
39
42
|
/**
|
|
@@ -69,4 +72,5 @@ export declare function canAgentSeeSwarm(metadata: AgentMetadata): boolean;
|
|
|
69
72
|
* Returns empty array if agent cannot see swarm or has no specific visibility list.
|
|
70
73
|
*/
|
|
71
74
|
export declare function getVisibleAgentIds(metadata: AgentMetadata): string[];
|
|
75
|
+
export {};
|
|
72
76
|
//# sourceMappingURL=agent.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.utils.d.ts","sourceRoot":"","sources":["../../src/agent/agent.utils.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,KAAK,KAAK,EAAa,MAAM,cAAc,CAAC;AAErD,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,SAAS,EACf,MAAM,WAAW,CAAC;AAQnB;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAGzF;AAED
|
|
1
|
+
{"version":3,"file":"agent.utils.d.ts","sourceRoot":"","sources":["../../src/agent/agent.utils.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,KAAK,KAAK,EAAa,MAAM,cAAc,CAAC;AAErD,OAAO,EAIL,KA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;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,EAAE,CAGpE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from '@frontmcp/lazy-zod';
|
|
2
2
|
import { type AuthInfo } from '@frontmcp/protocol';
|
|
3
3
|
import { AgentContext, AgentEntry, FlowBase, type FlowRunOptions } from '../../common';
|
|
4
|
+
import { type EntryClassHooksJoin } from '../../hooks/entry-class-hooks';
|
|
4
5
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
5
6
|
request: import("@frontmcp/lazy-zod").ZodObject<{
|
|
6
7
|
method: import("@frontmcp/lazy-zod").ZodLiteral<"tools/call">;
|
|
@@ -248,7 +249,7 @@ declare const stateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
|
248
249
|
outputError: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodAny>;
|
|
249
250
|
}, import("zod/v4/core").$strip>;
|
|
250
251
|
declare const plan: {
|
|
251
|
-
readonly pre: ["parseInput", "findAgent", "checkEntryAuthorities", "checkAgentAuthorization", "createAgentContext", "acquireQuota", "acquireSemaphore"];
|
|
252
|
+
readonly pre: ["parseInput", "findAgent", "checkCallDepth", "checkEntryAuthorities", "checkAgentAuthorization", "createAgentContext", "acquireQuota", "acquireSemaphore"];
|
|
252
253
|
readonly execute: ["validateInput", "execute", "validateOutput"];
|
|
253
254
|
readonly finalize: ["releaseSemaphore", "releaseQuota", "parseOutput", "emitCompletion", "finalize"];
|
|
254
255
|
};
|
|
@@ -258,6 +259,8 @@ declare global {
|
|
|
258
259
|
}
|
|
259
260
|
}
|
|
260
261
|
declare const name: "agents:call-agent";
|
|
262
|
+
/** Where the hooks an agent class declares join a run: they run on the instance 'createAgentContext' builds. */
|
|
263
|
+
export declare const agentClassHooksJoin: EntryClassHooksJoin;
|
|
261
264
|
export default class CallAgentFlow extends FlowBase<typeof name> {
|
|
262
265
|
logger: import("../../common").FrontMcpLogger;
|
|
263
266
|
/** Whether the `invoke_<agent>` tool's flow already applied the agent's gates. */
|
|
@@ -270,6 +273,11 @@ export default class CallAgentFlow extends FlowBase<typeof name> {
|
|
|
270
273
|
* Find the agent in the registry.
|
|
271
274
|
*/
|
|
272
275
|
findAgent(): Promise<void>;
|
|
276
|
+
/**
|
|
277
|
+
* Refuse a call from inside another agent's run when the chain of running agents is already as deep
|
|
278
|
+
* as one of them allows (`swarm.maxCallDepth`, 3 by default). A call from a client starts a chain.
|
|
279
|
+
*/
|
|
280
|
+
checkCallDepth(): Promise<void>;
|
|
273
281
|
/**
|
|
274
282
|
* Check entry-level authorities (RBAC/ABAC/ReBAC) declared in agent metadata.
|
|
275
283
|
* Hookable: developers can use Will/Did/Around on 'checkEntryAuthorities'.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-agent.flow.d.ts","sourceRoot":"","sources":["../../../src/agent/flows/call-agent.flow.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;AACvC,OAAO,EAA+C,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAGhG,OAAO,EAEL,YAAY,EACZ,UAAU,EAGV,QAAQ,EAKR,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"call-agent.flow.d.ts","sourceRoot":"","sources":["../../../src/agent/flows/call-agent.flow.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;AACvC,OAAO,EAA+C,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAGhG,OAAO,EAEL,YAAY,EACZ,UAAU,EAGV,QAAQ,EAKR,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAWtB,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAUzE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;gCAWf,CAAC;A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;;;;OAIG;IACH;;;OAGG;IAEG,WAAW;IASX,cAAc;IAwBpB;;;;;;;;;OASG;IAEG,QAAQ;CAoEf"}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
* }
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare const Will: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator, Did: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator, Stage: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
|
|
32
|
+
declare const Will: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator, Did: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator, Stage: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
|
|
33
33
|
/**
|
|
34
34
|
* Agent hook decorators for the call-agent flow.
|
|
35
35
|
*
|
|
@@ -44,9 +44,9 @@ declare const Will: (stage: "execute" | "finalize" | "parseInput" | "checkEntryA
|
|
|
44
44
|
* - Finalize stages: releaseSemaphore, releaseQuota, finalize
|
|
45
45
|
*/
|
|
46
46
|
export declare const AgentHook: {
|
|
47
|
-
Will: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
|
|
48
|
-
Did: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
|
|
49
|
-
Stage: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
|
|
47
|
+
Will: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
|
|
48
|
+
Did: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
|
|
49
|
+
Stage: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
|
|
50
50
|
};
|
|
51
51
|
export { Will as WillAgentStage, Did as DidAgentStage, Stage as OnAgentStage };
|
|
52
52
|
//# sourceMappingURL=agent.hooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.hooks.d.ts","sourceRoot":"","sources":["../../../src/agent/hooks/agent.hooks.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,QAAA,MAAQ,IAAI,
|
|
1
|
+
{"version":3,"file":"agent.hooks.d.ts","sourceRoot":"","sources":["../../../src/agent/hooks/agent.hooks.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,QAAA,MAAQ,IAAI,8YAAE,GAAG,8YAAE,KAAK,4YAA0D,CAAC;AAEnF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS;;;;CAAuB,CAAC;AAG9C,OAAO,EAAE,IAAI,IAAI,cAAc,EAAE,GAAG,IAAI,aAAa,EAAE,KAAK,IAAI,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.local.instance.d.ts","sourceRoot":"","sources":["../../../src/app/instances/app.local.instance.ts"],"names":[],"mappings":"AAEA,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAkB,KAAK,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE/F,OAAO,cAAwC,MAAM,8BAA8B,CAAC;AACpF,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAChE,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAChE,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,YAAY,MAAM,0BAA0B,CAAC;AAEpD,qBAAa,gBAAiB,SAAQ,QAAQ,CAAC,gBAAgB,CAAC;IAC9D,SAAkB,EAAE,EAAE,MAAM,CAAC;IAE7B,OAAO,CAAC,cAAc,CAAmB;IACzC,OAAO,CAAC,YAAY,CAAmB;IACvC,OAAO,CAAC,UAAU,CAAiB;IACnC,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,QAAQ,CAAe;IAC/B,OAAO,CAAC,YAAY,CAAmB;IACvC,OAAO,CAAC,UAAU,CAAiB;IACnC,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,MAAM,CAAC,CAAiB;gBAEpB,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB;cAY/C,UAAU;
|
|
1
|
+
{"version":3,"file":"app.local.instance.d.ts","sourceRoot":"","sources":["../../../src/app/instances/app.local.instance.ts"],"names":[],"mappings":"AAEA,OAAO,eAA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I,QAAQ,CAAC,aAAa,CAAC,CAEpC;CACF"}
|
|
@@ -47,6 +47,7 @@ export declare class AppRemoteInstance extends AppEntry<RemoteAppMetadata> {
|
|
|
47
47
|
private capabilitiesLoaded;
|
|
48
48
|
private loadingPromise;
|
|
49
49
|
private _unsubscribeCapability?;
|
|
50
|
+
private registeredProxies;
|
|
50
51
|
constructor(record: AppRecord, scopeProviders: ProviderRegistry);
|
|
51
52
|
protected initialize(): Promise<void>;
|
|
52
53
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.remote.instance.d.ts","sourceRoot":"","sources":["../../../src/app/instances/app.remote.instance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"app.remote.instance.d.ts","sourceRoot":"","sources":["../../../src/app/instances/app.remote.instance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,EACL,QAAQ,EAER,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EAId,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EAGvB,MAAM,cAAc,CAAC;AAEtB,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,gBAAgB,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AASpD,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,YAAY,MAAM,0BAA0B,CAAC;AA0GpD;;;;;;;;;;;;;GAaG;AACH,qBAAa,iBAAkB,SAAQ,QAAQ,CAAC,iBAAiB,CAAC;IAChE,SAAkB,EAAE,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IACH,IAAa,QAAQ,IAAI,OAAO,CAE/B;IAED,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAmB;IAClD,OAAO,CAAC,QAAQ,CAAC,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AC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE;IAIxF;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAejC;;OAEG;IACG,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAWhC;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAkBnC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAqB3B;;OAEG;IACH,OAAO,CAAC,yBAAyB;IAejC;;OAEG;IACH,OAAO,CAAC,aAAa;IAOrB;;OAEG;YACW,+BAA+B;CAmG9C"}
|
|
@@ -25,8 +25,8 @@ declare const extraOutputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
|
25
25
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
26
26
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
27
27
|
strict: "strict";
|
|
28
|
-
none: "none";
|
|
29
28
|
lax: "lax";
|
|
29
|
+
none: "none";
|
|
30
30
|
}>>;
|
|
31
31
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
32
32
|
expires: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDate>;
|
|
@@ -114,8 +114,8 @@ declare const outputSchema: import("@frontmcp/lazy-zod").ZodUnion<readonly [impo
|
|
|
114
114
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
115
115
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
116
116
|
strict: "strict";
|
|
117
|
-
none: "none";
|
|
118
117
|
lax: "lax";
|
|
118
|
+
none: "none";
|
|
119
119
|
}>>;
|
|
120
120
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
121
121
|
expires: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDate>;
|
|
@@ -135,8 +135,8 @@ declare const outputSchema: import("@frontmcp/lazy-zod").ZodUnion<readonly [impo
|
|
|
135
135
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
136
136
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
137
137
|
strict: "strict";
|
|
138
|
-
none: "none";
|
|
139
138
|
lax: "lax";
|
|
139
|
+
none: "none";
|
|
140
140
|
}>>;
|
|
141
141
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
142
142
|
expires: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDate>;
|
|
@@ -154,8 +154,8 @@ declare const outputSchema: import("@frontmcp/lazy-zod").ZodUnion<readonly [impo
|
|
|
154
154
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
155
155
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
156
156
|
strict: "strict";
|
|
157
|
-
none: "none";
|
|
158
157
|
lax: "lax";
|
|
158
|
+
none: "none";
|
|
159
159
|
}>>;
|
|
160
160
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
161
161
|
expires: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDate>;
|
|
@@ -66,8 +66,8 @@ declare const outputSchema: import("@frontmcp/lazy-zod").ZodUnion<readonly [impo
|
|
|
66
66
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
67
67
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
68
68
|
strict: "strict";
|
|
69
|
-
none: "none";
|
|
70
69
|
lax: "lax";
|
|
70
|
+
none: "none";
|
|
71
71
|
}>>;
|
|
72
72
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
73
73
|
expires: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDate>;
|
|
@@ -85,8 +85,8 @@ declare const outputSchema: import("@frontmcp/lazy-zod").ZodUnion<readonly [impo
|
|
|
85
85
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
86
86
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
87
87
|
strict: "strict";
|
|
88
|
-
none: "none";
|
|
89
88
|
lax: "lax";
|
|
89
|
+
none: "none";
|
|
90
90
|
}>>;
|
|
91
91
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
92
92
|
expires: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDate>;
|
|
@@ -40,8 +40,8 @@ declare const outputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
|
40
40
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
41
41
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
42
42
|
strict: "strict";
|
|
43
|
-
none: "none";
|
|
44
43
|
lax: "lax";
|
|
44
|
+
none: "none";
|
|
45
45
|
}>>;
|
|
46
46
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
47
47
|
expires: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDate>;
|
|
@@ -54,8 +54,8 @@ declare const outputSchema: import("@frontmcp/lazy-zod").ZodUnion<readonly [impo
|
|
|
54
54
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
55
55
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
56
56
|
strict: "strict";
|
|
57
|
-
none: "none";
|
|
58
57
|
lax: "lax";
|
|
58
|
+
none: "none";
|
|
59
59
|
}>>;
|
|
60
60
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
61
61
|
expires: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDate>;
|
|
@@ -73,8 +73,8 @@ declare const outputSchema: import("@frontmcp/lazy-zod").ZodUnion<readonly [impo
|
|
|
73
73
|
secure: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
74
74
|
sameSite: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
|
|
75
75
|
strict: "strict";
|
|
76
|
-
none: "none";
|
|
77
76
|
lax: "lax";
|
|
77
|
+
none: "none";
|
|
78
78
|
}>>;
|
|
79
79
|
maxAge: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
|
|
80
80
|
expires: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodDate>;
|