@frontmcp/sdk 1.0.0-beta.9 → 1.0.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/agent/agent.registry.d.ts +6 -1
- package/agent/agent.registry.d.ts.map +1 -1
- package/common/availability/availability.utils.d.ts +39 -0
- package/common/availability/availability.utils.d.ts.map +1 -0
- package/common/availability/index.d.ts +2 -0
- package/common/availability/index.d.ts.map +1 -0
- package/common/decorators/skill.decorator.d.ts.map +1 -1
- package/common/entries/resource.entry.d.ts +13 -0
- package/common/entries/resource.entry.d.ts.map +1 -1
- package/common/entries/scope.entry.d.ts +11 -0
- package/common/entries/scope.entry.d.ts.map +1 -1
- package/common/interfaces/execution-context.interface.d.ts +25 -0
- package/common/interfaces/execution-context.interface.d.ts.map +1 -1
- package/common/interfaces/prompt.interface.d.ts +11 -0
- package/common/interfaces/prompt.interface.d.ts.map +1 -1
- package/common/interfaces/resource.interface.d.ts +50 -0
- package/common/interfaces/resource.interface.d.ts.map +1 -1
- package/common/interfaces/skill.interface.d.ts +36 -0
- package/common/interfaces/skill.interface.d.ts.map +1 -1
- package/common/metadata/agent.metadata.d.ts +17 -0
- package/common/metadata/agent.metadata.d.ts.map +1 -1
- package/common/metadata/app.metadata.d.ts +2 -1
- package/common/metadata/app.metadata.d.ts.map +1 -1
- package/common/metadata/front-mcp.metadata.d.ts +233 -12
- package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
- package/common/metadata/plugin.metadata.d.ts +2 -1
- package/common/metadata/plugin.metadata.d.ts.map +1 -1
- package/common/metadata/prompt.metadata.d.ts +12 -0
- package/common/metadata/prompt.metadata.d.ts.map +1 -1
- package/common/metadata/resource.metadata.d.ts +23 -0
- package/common/metadata/resource.metadata.d.ts.map +1 -1
- package/common/metadata/skill.metadata.d.ts +22 -2
- package/common/metadata/skill.metadata.d.ts.map +1 -1
- package/common/metadata/tool.metadata.d.ts +24 -0
- package/common/metadata/tool.metadata.d.ts.map +1 -1
- package/common/records/skill.record.d.ts +2 -0
- package/common/records/skill.record.d.ts.map +1 -1
- package/common/tokens/agent.tokens.d.ts +1 -0
- package/common/tokens/agent.tokens.d.ts.map +1 -1
- package/common/tokens/front-mcp.tokens.d.ts.map +1 -1
- package/common/tokens/prompt.tokens.d.ts +1 -0
- package/common/tokens/prompt.tokens.d.ts.map +1 -1
- package/common/tokens/resource.tokens.d.ts +2 -0
- package/common/tokens/resource.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/tokens/skill.tokens.d.ts +1 -0
- package/common/tokens/skill.tokens.d.ts.map +1 -1
- package/common/tokens/tool.tokens.d.ts +1 -0
- package/common/tokens/tool.tokens.d.ts.map +1 -1
- package/common/types/options/health/index.d.ts +4 -0
- package/common/types/options/health/index.d.ts.map +1 -0
- package/common/types/options/health/interfaces.d.ts +158 -0
- package/common/types/options/health/interfaces.d.ts.map +1 -0
- package/common/types/options/health/schema.d.ts +46 -0
- package/common/types/options/health/schema.d.ts.map +1 -0
- package/common/types/options/http/schema.d.ts.map +1 -1
- package/common/types/options/index.d.ts +2 -0
- package/common/types/options/index.d.ts.map +1 -1
- package/common/types/options/observability/index.d.ts +4 -0
- package/common/types/options/observability/index.d.ts.map +1 -0
- package/common/types/options/observability/interfaces.d.ts +76 -0
- package/common/types/options/observability/interfaces.d.ts.map +1 -0
- package/common/types/options/observability/schema.d.ts +15 -0
- package/common/types/options/observability/schema.d.ts.map +1 -0
- package/common/types/options/skills-http/interfaces.d.ts +13 -5
- package/common/types/options/skills-http/interfaces.d.ts.map +1 -1
- package/common/types/options/skills-http/schema.d.ts +1 -1
- package/completion/flows/complete.flow.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 +16 -0
- package/errors/mcp.error.d.ts.map +1 -1
- package/esm/index.mjs +12217 -10894
- package/front-mcp/front-mcp.d.ts +5 -0
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/front-mcp/front-mcp.providers.d.ts +92 -4
- package/front-mcp/front-mcp.providers.d.ts.map +1 -1
- package/health/health.probes.d.ts +43 -0
- package/health/health.probes.d.ts.map +1 -0
- package/health/health.routes.d.ts +35 -0
- package/health/health.routes.d.ts.map +1 -0
- package/health/health.service.d.ts +85 -0
- package/health/health.service.d.ts.map +1 -0
- package/health/health.types.d.ts +70 -0
- package/health/health.types.d.ts.map +1 -0
- package/health/index.d.ts +8 -0
- package/health/index.d.ts.map +1 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +12560 -11228
- package/logger/instances/instance.logger.d.ts.map +1 -1
- package/logger/logger.registry.d.ts +21 -0
- package/logger/logger.registry.d.ts.map +1 -1
- package/notification/notification.service.d.ts +5 -0
- package/notification/notification.service.d.ts.map +1 -1
- package/package.json +22 -10
- package/plugin/plugin.registry.d.ts +6 -0
- package/plugin/plugin.registry.d.ts.map +1 -1
- package/plugin/plugin.utils.d.ts.map +1 -1
- package/prompt/prompt.registry.d.ts.map +1 -1
- package/provider/provider.registry.d.ts +1 -1
- package/provider/provider.registry.d.ts.map +1 -1
- package/resource/flows/read-resource.flow.d.ts.map +1 -1
- package/resource/resource.instance.d.ts +27 -1
- package/resource/resource.instance.d.ts.map +1 -1
- package/resource/resource.registry.d.ts.map +1 -1
- package/scope/flows/http.request.flow.d.ts.map +1 -1
- package/scope/scope.instance.d.ts +8 -0
- package/scope/scope.instance.d.ts.map +1 -1
- package/server/server.instance.d.ts +14 -0
- package/server/server.instance.d.ts.map +1 -1
- package/skill/index.d.ts +1 -1
- package/skill/index.d.ts.map +1 -1
- package/skill/resources/index.d.ts +32 -0
- package/skill/resources/index.d.ts.map +1 -0
- package/skill/resources/skill-content-alias.resource.d.ts +19 -0
- package/skill/resources/skill-content-alias.resource.d.ts.map +1 -0
- package/skill/resources/skill-content.resource.d.ts +20 -0
- package/skill/resources/skill-content.resource.d.ts.map +1 -0
- package/skill/resources/skill-example-content.resource.d.ts +20 -0
- package/skill/resources/skill-example-content.resource.d.ts.map +1 -0
- package/skill/resources/skill-examples-list.resource.d.ts +19 -0
- package/skill/resources/skill-examples-list.resource.d.ts.map +1 -0
- package/skill/resources/skill-reference-content.resource.d.ts +20 -0
- package/skill/resources/skill-reference-content.resource.d.ts.map +1 -0
- package/skill/resources/skill-references-list.resource.d.ts +19 -0
- package/skill/resources/skill-references-list.resource.d.ts.map +1 -0
- package/skill/resources/skill-resource.helpers.d.ts +77 -0
- package/skill/resources/skill-resource.helpers.d.ts.map +1 -0
- package/skill/resources/skills-catalog.resource.d.ts +14 -0
- package/skill/resources/skills-catalog.resource.d.ts.map +1 -0
- package/skill/skill-directory-loader.d.ts.map +1 -1
- package/skill/skill-scope.helper.d.ts +6 -6
- package/skill/skill-scope.helper.d.ts.map +1 -1
- package/skill/skill.instance.d.ts +4 -0
- package/skill/skill.instance.d.ts.map +1 -1
- package/skill/skill.registry.d.ts.map +1 -1
- package/skill/skill.utils.d.ts +19 -2
- package/skill/skill.utils.d.ts.map +1 -1
- package/tool/flows/call-tool.flow.d.ts.map +1 -1
- package/tool/tool.registry.d.ts.map +1 -1
- package/tool/ui/ui-shared.d.ts.map +1 -1
- package/transport/adapters/transport.local.adapter.d.ts +6 -0
- package/transport/adapters/transport.local.adapter.d.ts.map +1 -1
- package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -1
- package/transport/mcp-handlers/skills-search-request.handler.d.ts.map +1 -1
- package/transport/transport.local.d.ts +1 -0
- package/transport/transport.local.d.ts.map +1 -1
- package/transport/transport.registry.d.ts +15 -0
- package/transport/transport.registry.d.ts.map +1 -1
- package/transport/transport.remote.d.ts +1 -0
- package/transport/transport.remote.d.ts.map +1 -1
- package/transport/transport.types.d.ts +6 -0
- package/transport/transport.types.d.ts.map +1 -1
- package/skill/tools/index.d.ts +0 -17
- package/skill/tools/index.d.ts.map +0 -1
- package/skill/tools/load-skills.tool.d.ts +0 -73
- package/skill/tools/load-skills.tool.d.ts.map +0 -1
- package/skill/tools/search-skills.tool.d.ts +0 -61
- package/skill/tools/search-skills.tool.d.ts.map +0 -1
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { ToolUIConfig } from './tool-ui.metadata';
|
|
3
3
|
import { ToolInputOf, ToolOutputOf } from '../decorators';
|
|
4
4
|
import type { RateLimitConfig, ConcurrencyConfig, TimeoutConfig } from '@frontmcp/guard';
|
|
5
|
+
import type { EntryAvailability } from '@frontmcp/utils';
|
|
5
6
|
/**
|
|
6
7
|
* Auth provider mapping for tool metadata.
|
|
7
8
|
* Used in @Tool({ authProviders: [...] }) decorator.
|
|
@@ -323,6 +324,23 @@ export interface ToolMetadata<InSchema = ToolInputType, OutSchema extends ToolOu
|
|
|
323
324
|
* ```
|
|
324
325
|
*/
|
|
325
326
|
timeout?: TimeoutConfig;
|
|
327
|
+
/**
|
|
328
|
+
* Environment availability constraint.
|
|
329
|
+
* When set, the tool is only discoverable and executable in matching environments.
|
|
330
|
+
* Fields are AND-ed (all must match), values within a field are OR-ed (any can match).
|
|
331
|
+
* Omitted fields are unconstrained.
|
|
332
|
+
*
|
|
333
|
+
* @example macOS only
|
|
334
|
+
* ```typescript
|
|
335
|
+
* @Tool({ name: 'apple_notes', availableWhen: { platform: ['darwin'] } })
|
|
336
|
+
* ```
|
|
337
|
+
*
|
|
338
|
+
* @example Node.js production only
|
|
339
|
+
* ```typescript
|
|
340
|
+
* @Tool({ name: 'deploy', availableWhen: { runtime: ['node'], env: ['production'] } })
|
|
341
|
+
* ```
|
|
342
|
+
*/
|
|
343
|
+
availableWhen?: EntryAvailability;
|
|
326
344
|
}
|
|
327
345
|
export declare const frontMcpToolMetadataSchema: z.ZodObject<{
|
|
328
346
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -410,6 +428,12 @@ export declare const frontMcpToolMetadataSchema: z.ZodObject<{
|
|
|
410
428
|
timeout: z.ZodOptional<z.ZodObject<{
|
|
411
429
|
executeMs: z.ZodNumber;
|
|
412
430
|
}, z.core.$strip>>;
|
|
431
|
+
availableWhen: z.ZodOptional<z.ZodObject<{
|
|
432
|
+
platform: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
433
|
+
runtime: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
434
|
+
deployment: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
435
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
436
|
+
}, z.core.$strict>>;
|
|
413
437
|
}, z.core.$loose>;
|
|
414
438
|
export {};
|
|
415
439
|
//# sourceMappingURL=tool.metadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.metadata.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/tool.metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"tool.metadata.d.ts","sourceRoot":"","sources":["../../../src/common/metadata/tool.metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOzD;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,oBAAoB;IACpB,IAAI,EAAE,MA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oBAGF,CAAA;kBAAwB,CAAC;;;;;;;;;;;;;oBAiBhB,CAAC;kBACP,CAAC;;;oBACyB,CAAC;kBACtB,CAAC;;;;;;;;;;;;iBAqWC,CAAC"}
|
|
@@ -45,6 +45,8 @@ export type SkillValueRecord = {
|
|
|
45
45
|
kind: SkillKind.VALUE;
|
|
46
46
|
provide: symbol;
|
|
47
47
|
metadata: SkillMetadata;
|
|
48
|
+
/** Directory of the file that called skill(). Used to resolve relative instruction file paths. */
|
|
49
|
+
callerDir?: string;
|
|
48
50
|
};
|
|
49
51
|
/**
|
|
50
52
|
* Record for file-based skills loaded from external files.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.record.d.ts","sourceRoot":"","sources":["../../../src/common/records/skill.record.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;GAEG;AACH,oBAAY,SAAS;IACnB;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;OAEG;IACH,KAAK,UAAU;IAEf;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,GAAG,QAAQ;IAEX;;OAEG;IACH,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,SAAS,CAAC,WAAW,CAAC;IAC5B,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5B,QAAQ,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gB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,CAAC;IAChB,QAAQ,EAAE,aAAa,CAAC;IACxB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,SAAS,CAAC,GAAG,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,sBAAsB,CAAC;IAClC,QAAQ,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF,+DAA+D;AAC/D,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,SAAS,CAAC,GAAG,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,sBAAsB,CAAC;IAClC,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,QAAQ,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF,0DAA0D;AAC1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,2BAA2B;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,QAAQ,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,qBAAqB,GACrB,gBAAgB,GAChB,eAAe,GACf,cAAc,GACd,oBAAoB,GACpB,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.tokens.d.ts","sourceRoot":"","sources":["../../../src/common/tokens/agent.tokens.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"agent.tokens.d.ts","sourceRoot":"","sources":["../../../src/common/tokens/agent.tokens.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BiD,CAAC;AAElF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAA6C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"front-mcp.tokens.d.ts","sourceRoot":"","sources":["../../../src/common/tokens/front-mcp.tokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,eAAO,MAAM,cAAc,EAAE,gBAAgB,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"front-mcp.tokens.d.ts","sourceRoot":"","sources":["../../../src/common/tokens/front-mcp.tokens.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,eAAO,MAAM,cAAc,EAAE,gBAAgB,CAAC,gBAAgB,CA6C7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.tokens.d.ts","sourceRoot":"","sources":["../../../src/common/tokens/prompt.tokens.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"prompt.tokens.d.ts","sourceRoot":"","sources":["../../../src/common/tokens/prompt.tokens.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;;;;;;;;CASkD,CAAC;AAEpF,eAAO,MAAM,sBAAsB,QAA8C,CAAC"}
|
|
@@ -6,6 +6,7 @@ export declare const FrontMcpResourceTokens: {
|
|
|
6
6
|
readonly description: symbol;
|
|
7
7
|
readonly mimeType: symbol;
|
|
8
8
|
readonly icons: symbol;
|
|
9
|
+
readonly availableWhen: symbol;
|
|
9
10
|
readonly metadata: symbol;
|
|
10
11
|
};
|
|
11
12
|
export declare const FrontMcpResourceTemplateTokens: {
|
|
@@ -16,6 +17,7 @@ export declare const FrontMcpResourceTemplateTokens: {
|
|
|
16
17
|
readonly description: symbol;
|
|
17
18
|
readonly mimeType: symbol;
|
|
18
19
|
readonly icons: symbol;
|
|
20
|
+
readonly availableWhen: symbol;
|
|
19
21
|
readonly metadata: symbol;
|
|
20
22
|
};
|
|
21
23
|
export declare const extendedResourceMetadata: symbol;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.tokens.d.ts","sourceRoot":"","sources":["../../../src/common/tokens/resource.tokens.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"resource.tokens.d.ts","sourceRoot":"","sources":["../../../src/common/tokens/resource.tokens.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB;;;;;;;;;;CAUoD,CAAC;AAExF,eAAO,MAAM,8BAA8B;;;;;;;;;;CAU4D,CAAC;AAGxG,eAAO,MAAM,wBAAwB,QAAgD,CAAC;AACtF,eAAO,MAAM,gCAAgC,QAAwD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.tokens.d.ts","sourceRoot":"","sources":["../../../src/common/tokens/server.tokens.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.tokens.d.ts","sourceRoot":"","sources":["../../../src/common/tokens/server.tokens.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB;;;;;;CAMqB,CAAC"}
|
|
@@ -17,6 +17,7 @@ export declare const FrontMcpSkillTokens: {
|
|
|
17
17
|
readonly specMetadata: symbol;
|
|
18
18
|
readonly allowedTools: symbol;
|
|
19
19
|
readonly resources: symbol;
|
|
20
|
+
readonly availableWhen: symbol;
|
|
20
21
|
readonly metadata: symbol;
|
|
21
22
|
};
|
|
22
23
|
export declare const extendedSkillMetadata: symbol;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.tokens.d.ts","sourceRoot":"","sources":["../../../src/common/tokens/skill.tokens.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"skill.tokens.d.ts","sourceRoot":"","sources":["../../../src/common/tokens/skill.tokens.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;CAqBiD,CAAC;AAElF,eAAO,MAAM,qBAAqB,QAA6C,CAAC"}
|
|
@@ -15,6 +15,7 @@ export declare const FrontMcpToolTokens: {
|
|
|
15
15
|
readonly rateLimit: symbol;
|
|
16
16
|
readonly concurrency: symbol;
|
|
17
17
|
readonly timeout: symbol;
|
|
18
|
+
readonly availableWhen: symbol;
|
|
18
19
|
};
|
|
19
20
|
export declare const extendedToolMetadata: symbol;
|
|
20
21
|
//# sourceMappingURL=tool.tokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.tokens.d.ts","sourceRoot":"","sources":["../../../src/common/tokens/tool.tokens.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"tool.tokens.d.ts","sourceRoot":"","sources":["../../../src/common/tokens/tool.tokens.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;CAkBgD,CAAC;AAEhF,eAAO,MAAM,oBAAoB,QAA4C,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { HealthOptionsInterface, HealthReadyzOptionsInterface, HealthProbeDefinition, HealthProbeResult, } from './interfaces';
|
|
2
|
+
export { healthOptionsSchema, healthReadyzOptionsSchema, DEFAULT_HEALTH_OPTIONS } from './schema';
|
|
3
|
+
export type { HealthOptions, HealthOptionsInput } from './schema';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/health/index.ts"],"names":[],"mappings":"AAMA,YAAY,EACV,sBAAsB,EACtB,4BAA4B,EAC5B,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAKtB,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAKlG,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Result of a single health probe execution.
|
|
3
|
+
*/
|
|
4
|
+
export interface HealthProbeResult {
|
|
5
|
+
/** Probe status */
|
|
6
|
+
status: 'healthy' | 'degraded' | 'unhealthy';
|
|
7
|
+
/** Time taken to execute the probe in milliseconds */
|
|
8
|
+
latencyMs?: number;
|
|
9
|
+
/** Additional probe-specific details */
|
|
10
|
+
details?: Record<string, unknown>;
|
|
11
|
+
/** Error message if the probe failed */
|
|
12
|
+
error?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* User-defined health probe for custom dependency checks.
|
|
16
|
+
*
|
|
17
|
+
* @example Redis cluster probe
|
|
18
|
+
* ```typescript
|
|
19
|
+
* const redisClusterProbe: HealthProbeDefinition = {
|
|
20
|
+
* name: 'redis-cluster',
|
|
21
|
+
* async check() {
|
|
22
|
+
* const start = Date.now();
|
|
23
|
+
* await redisCluster.ping();
|
|
24
|
+
* return { status: 'healthy', latencyMs: Date.now() - start };
|
|
25
|
+
* },
|
|
26
|
+
* };
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export interface HealthProbeDefinition {
|
|
30
|
+
/** Unique probe name (appears in /readyz response) */
|
|
31
|
+
name: string;
|
|
32
|
+
/** Execute the health check and return the result */
|
|
33
|
+
check(): Promise<HealthProbeResult>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Readiness probe sub-configuration.
|
|
37
|
+
*/
|
|
38
|
+
export interface HealthReadyzOptionsInterface {
|
|
39
|
+
/**
|
|
40
|
+
* Enable the readiness endpoint.
|
|
41
|
+
*
|
|
42
|
+
* When omitted, auto-determined by runtime:
|
|
43
|
+
* - Node.js, Bun, Deno, Browser: enabled
|
|
44
|
+
* - Edge/Cloudflare/Vercel (serverless): disabled
|
|
45
|
+
*
|
|
46
|
+
* @default undefined (auto-detect)
|
|
47
|
+
*/
|
|
48
|
+
enabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Timeout per probe in milliseconds.
|
|
51
|
+
* Probes exceeding this timeout are marked as unhealthy.
|
|
52
|
+
*
|
|
53
|
+
* @default 5000
|
|
54
|
+
*/
|
|
55
|
+
timeoutMs?: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Health and readiness endpoint configuration for @FrontMcp decorator.
|
|
59
|
+
*
|
|
60
|
+
* Provides Kubernetes-style `/healthz` (liveness) and `/readyz` (readiness) endpoints
|
|
61
|
+
* with runtime introspection, dependency probing, and catalog hashing.
|
|
62
|
+
*
|
|
63
|
+
* **`/healthz` (liveness):**
|
|
64
|
+
* - Lightweight, no I/O
|
|
65
|
+
* - Returns server info, runtime context, uptime
|
|
66
|
+
* - Available on all runtimes
|
|
67
|
+
*
|
|
68
|
+
* **`/readyz` (readiness):**
|
|
69
|
+
* - Probes all registered dependencies (Redis, session store, event store, remote apps)
|
|
70
|
+
* - Returns catalog hash, registry counts, per-probe status
|
|
71
|
+
* - Available on Node.js, Bun, Deno, Browser (disabled on edge/serverless)
|
|
72
|
+
*
|
|
73
|
+
* @example Default (auto-enabled)
|
|
74
|
+
* ```typescript
|
|
75
|
+
* @FrontMcp({
|
|
76
|
+
* info: { name: 'my-server', version: '1.0.0' },
|
|
77
|
+
* apps: [MyApp],
|
|
78
|
+
* // health endpoints enabled by default
|
|
79
|
+
* })
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* @example Custom paths
|
|
83
|
+
* ```typescript
|
|
84
|
+
* @FrontMcp({
|
|
85
|
+
* health: {
|
|
86
|
+
* healthzPath: '/live',
|
|
87
|
+
* readyzPath: '/ready',
|
|
88
|
+
* },
|
|
89
|
+
* })
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* @example Custom probes
|
|
93
|
+
* ```typescript
|
|
94
|
+
* @FrontMcp({
|
|
95
|
+
* health: {
|
|
96
|
+
* probes: [{
|
|
97
|
+
* name: 'postgres',
|
|
98
|
+
* async check() {
|
|
99
|
+
* await pool.query('SELECT 1');
|
|
100
|
+
* return { status: 'healthy' };
|
|
101
|
+
* },
|
|
102
|
+
* }],
|
|
103
|
+
* },
|
|
104
|
+
* })
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* @example Disable health endpoints
|
|
108
|
+
* ```typescript
|
|
109
|
+
* @FrontMcp({
|
|
110
|
+
* health: { enabled: false },
|
|
111
|
+
* })
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
export interface HealthOptionsInterface {
|
|
115
|
+
/**
|
|
116
|
+
* Enable health endpoints.
|
|
117
|
+
*
|
|
118
|
+
* When disabled, only the legacy `/health` endpoint is registered
|
|
119
|
+
* for backwards compatibility.
|
|
120
|
+
*
|
|
121
|
+
* @default true
|
|
122
|
+
*/
|
|
123
|
+
enabled?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Path for the liveness probe endpoint.
|
|
126
|
+
*
|
|
127
|
+
* @default '/healthz'
|
|
128
|
+
*/
|
|
129
|
+
healthzPath?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Path for the readiness probe endpoint.
|
|
132
|
+
*
|
|
133
|
+
* @default '/readyz'
|
|
134
|
+
*/
|
|
135
|
+
readyzPath?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Custom health probes for user-defined dependency checks.
|
|
138
|
+
*
|
|
139
|
+
* These probes are executed alongside auto-discovered probes
|
|
140
|
+
* (session store, elicitation store, event store, remote apps)
|
|
141
|
+
* when the `/readyz` endpoint is called.
|
|
142
|
+
*/
|
|
143
|
+
probes?: HealthProbeDefinition[];
|
|
144
|
+
/**
|
|
145
|
+
* Include per-probe details in the readiness response.
|
|
146
|
+
*
|
|
147
|
+
* When false, only the aggregate status is returned.
|
|
148
|
+
* Useful for production to avoid leaking infrastructure topology.
|
|
149
|
+
*
|
|
150
|
+
* @default true in development, false in production
|
|
151
|
+
*/
|
|
152
|
+
includeDetails?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Readiness endpoint configuration.
|
|
155
|
+
*/
|
|
156
|
+
readyz?: HealthReadyzOptionsInterface;
|
|
157
|
+
}
|
|
158
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/health/interfaces.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,mBAAmB;IACnB,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,WAAW,CAAC;IAC7C,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAMD;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,KAAK,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACrC;AAMD;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAEjC;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,MAAM,CAAC,EAAE,4BAA4B,CAAC;CACvC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { HealthOptionsInterface, HealthReadyzOptionsInterface } from './interfaces';
|
|
3
|
+
export type { HealthOptionsInterface, HealthReadyzOptionsInterface };
|
|
4
|
+
/**
|
|
5
|
+
* Zod schema for readiness probe sub-configuration.
|
|
6
|
+
*/
|
|
7
|
+
export declare const healthReadyzOptionsSchema: z.ZodObject<{
|
|
8
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
timeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
/**
|
|
12
|
+
* Zod schema for health endpoint configuration.
|
|
13
|
+
*
|
|
14
|
+
* Validates and provides defaults for health options.
|
|
15
|
+
* See `HealthOptionsInterface` for full documentation.
|
|
16
|
+
*/
|
|
17
|
+
export declare const healthOptionsSchema: z.ZodObject<{
|
|
18
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
19
|
+
healthzPath: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
20
|
+
readyzPath: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
probes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodAny>>>;
|
|
22
|
+
includeDetails: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
readyz: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
timeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
/**
|
|
29
|
+
* Default health configuration values.
|
|
30
|
+
*
|
|
31
|
+
* Health endpoints are enabled by default with standard Kubernetes paths.
|
|
32
|
+
*/
|
|
33
|
+
export declare const DEFAULT_HEALTH_OPTIONS: Pick<Required<HealthOptionsInterface>, 'enabled' | 'healthzPath' | 'readyzPath'>;
|
|
34
|
+
/**
|
|
35
|
+
* Health options type (with defaults applied).
|
|
36
|
+
*
|
|
37
|
+
* This is the type of health config after Zod parsing,
|
|
38
|
+
* with all defaults applied.
|
|
39
|
+
*/
|
|
40
|
+
export type HealthOptions = z.infer<typeof healthOptionsSchema>;
|
|
41
|
+
/**
|
|
42
|
+
* Health options input type (for user configuration).
|
|
43
|
+
* Uses explicit interface for better IDE autocomplete.
|
|
44
|
+
*/
|
|
45
|
+
export type HealthOptionsInput = HealthOptionsInterface;
|
|
46
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/health/schema.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAGzF,YAAY,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,CAAC;AAMrE;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;iBAGgB,CAAC;AAMvD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;iBAOgB,CAAC;AAMjD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,IAAI,CACvC,QAAQ,CAAC,sBAAsB,CAAC,EAChC,SAAS,GAAG,aAAa,GAAG,YAAY,CAKzC,CAAC;AAMF;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/http/schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAe,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAqBtE;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;mLAPZ,CAAC,6FAAD,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/http/schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAe,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAqBtE;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;mLAPZ,CAAC,6FAAD,CAAC;;;;iBA6B2B,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/types/options/index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/types/options/index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/observability/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AACtD,YAAY,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Observability configuration options.
|
|
3
|
+
*
|
|
4
|
+
* Controls OpenTelemetry tracing, structured logging sinks,
|
|
5
|
+
* and per-request log collection.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* @FrontMcp({
|
|
10
|
+
* observability: {
|
|
11
|
+
* tracing: true,
|
|
12
|
+
* logging: { sinks: [{ type: 'stdout' }] },
|
|
13
|
+
* requestLogs: true,
|
|
14
|
+
* },
|
|
15
|
+
* })
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export interface ObservabilityOptionsInterface {
|
|
19
|
+
/**
|
|
20
|
+
* Enable/configure OpenTelemetry tracing.
|
|
21
|
+
*
|
|
22
|
+
* - `true` — enable all spans with defaults
|
|
23
|
+
* - `false` — disable tracing
|
|
24
|
+
* - Object — fine-grained control per span type
|
|
25
|
+
*
|
|
26
|
+
* Requires a TracerProvider to be configured (via setupOTel or external SDK).
|
|
27
|
+
* Without one, all operations are no-ops with zero overhead.
|
|
28
|
+
*
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
tracing?: boolean | {
|
|
32
|
+
httpSpans?: boolean;
|
|
33
|
+
executionSpans?: boolean;
|
|
34
|
+
hookSpans?: boolean;
|
|
35
|
+
fetchSpans?: boolean;
|
|
36
|
+
flowStageEvents?: boolean;
|
|
37
|
+
transportSpans?: boolean;
|
|
38
|
+
authSpans?: boolean;
|
|
39
|
+
oauthSpans?: boolean;
|
|
40
|
+
elicitationSpans?: boolean;
|
|
41
|
+
startupReport?: boolean;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Enable/configure structured JSON logging.
|
|
45
|
+
*
|
|
46
|
+
* - `true` — enable with default StdoutSink (NDJSON)
|
|
47
|
+
* - `false` — disable structured logging
|
|
48
|
+
* - Object — configure sinks, redaction, etc.
|
|
49
|
+
*
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
logging?: boolean | {
|
|
53
|
+
sinks?: Array<{
|
|
54
|
+
type: string;
|
|
55
|
+
[key: string]: unknown;
|
|
56
|
+
}>;
|
|
57
|
+
redactFields?: string[];
|
|
58
|
+
includeStacks?: boolean;
|
|
59
|
+
staticFields?: Record<string, unknown>;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Enable/configure per-request log collection.
|
|
63
|
+
*
|
|
64
|
+
* - `true` — enable with defaults
|
|
65
|
+
* - `false` — disable
|
|
66
|
+
* - Object — configure max entries, callback, etc.
|
|
67
|
+
*
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
70
|
+
requestLogs?: boolean | {
|
|
71
|
+
maxEntries?: number;
|
|
72
|
+
includeSummaries?: boolean;
|
|
73
|
+
onRequestComplete?: (log: unknown) => void | Promise<void>;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/observability/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EACJ,OAAO,GACP;QACE,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;IAEN;;;;;;;;OAQG;IACH,OAAO,CAAC,EACJ,OAAO,GACP;QACE,KAAK,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC,CAAC;QACxD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QACxB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACxC,CAAC;IAEN;;;;;;;;OAQG;IACH,WAAW,CAAC,EACR,OAAO,GACP;QACE,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;KAC5D,CAAC;CACP"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Zod schema for observability configuration.
|
|
4
|
+
*
|
|
5
|
+
* Permissive — accepts boolean or detailed object for each sub-feature.
|
|
6
|
+
* The actual validation of sink configs, tracing options, etc. is done
|
|
7
|
+
* by @frontmcp/observability at runtime.
|
|
8
|
+
*/
|
|
9
|
+
export declare const observabilityOptionsSchema: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
10
|
+
tracing: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{}, z.core.$loose>]>>;
|
|
11
|
+
logging: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{}, z.core.$loose>]>>;
|
|
12
|
+
requestLogs: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{}, z.core.$loose>]>>;
|
|
13
|
+
}, z.core.$strip>]>>;
|
|
14
|
+
export type ObservabilityOptionsInput = z.input<typeof observabilityOptionsSchema>;
|
|
15
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/observability/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;;;;oBAS1B,CAAC;AAEd,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* ## Visibility Control
|
|
25
25
|
*
|
|
26
26
|
* Skills can have a `visibility` property to control where they appear:
|
|
27
|
-
* - `'mcp'`: Only via
|
|
27
|
+
* - `'mcp'`: Only via skills:// MCP resources
|
|
28
28
|
* - `'http'`: Only via HTTP API endpoints (/llm.txt, /skills)
|
|
29
29
|
* - `'both'`: Visible in both MCP and HTTP (default)
|
|
30
30
|
*
|
|
@@ -152,13 +152,13 @@ export interface SkillsConfigEndpointConfig {
|
|
|
152
152
|
* })
|
|
153
153
|
* ```
|
|
154
154
|
*
|
|
155
|
-
* @example HTTP only (no MCP
|
|
155
|
+
* @example HTTP only (no MCP resources)
|
|
156
156
|
* ```typescript
|
|
157
157
|
* @FrontMcp({
|
|
158
158
|
* skillsConfig: {
|
|
159
159
|
* enabled: true,
|
|
160
160
|
* auth: 'public',
|
|
161
|
-
*
|
|
161
|
+
* mcpResources: false, // No skills:// MCP resource templates
|
|
162
162
|
* },
|
|
163
163
|
* })
|
|
164
164
|
* ```
|
|
@@ -254,12 +254,20 @@ export interface SkillsConfigOptions {
|
|
|
254
254
|
*/
|
|
255
255
|
api?: SkillsConfigEndpointConfig | boolean;
|
|
256
256
|
/**
|
|
257
|
-
* Whether to
|
|
257
|
+
* Whether to register skills:// MCP resource templates.
|
|
258
258
|
* Set to false to expose skills only via HTTP endpoints.
|
|
259
259
|
*
|
|
260
|
+
* When enabled (default), the following resource templates are registered:
|
|
261
|
+
* - `skills://catalog` — list all skills
|
|
262
|
+
* - `skills://{skillName}` — load skill content
|
|
263
|
+
* - `skills://{skillName}/references` — list references
|
|
264
|
+
* - `skills://{skillName}/references/{referenceName}` — read reference
|
|
265
|
+
* - `skills://{skillName}/examples` — list examples
|
|
266
|
+
* - `skills://{skillName}/examples/{exampleName}` — read example
|
|
267
|
+
*
|
|
260
268
|
* @default true
|
|
261
269
|
*/
|
|
262
|
-
|
|
270
|
+
mcpResources?: boolean;
|
|
263
271
|
/**
|
|
264
272
|
* Cache configuration for HTTP endpoints.
|
|
265
273
|
* Reduces latency and CPU/memory overhead for repeated requests.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/skills-http/interfaces.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE/E;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAE5B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB;;;;;;;;;;;;;;;;;OAiBG;IACH,GAAG,CAAC,EAAE,sBAAsB,CAAC;IAE7B;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC;IAE9C;;;;;;;;;;OAUG;IACH,UAAU,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC;IAElD;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC;IAE3C
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/common/types/options/skills-http/interfaces.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE/E;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAE5B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB;;;;;;;;;;;;;;;;;OAiBG;IACH,GAAG,CAAC,EAAE,sBAAsB,CAAC;IAE7B;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC;IAE9C;;;;;;;;;;OAUG;IACH,UAAU,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC;IAElD;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC;IAE3C;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,EAAE,wBAAwB,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,KAAK,CAAC,EAAE;QACN,0BAA0B;QAC1B,QAAQ,EAAE,OAAO,GAAG,WAAW,GAAG,YAAY,CAAC;QAC/C,iBAAiB;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,iBAAiB;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,qBAAqB;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,4BAA4B;QAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;IAEF;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -76,7 +76,7 @@ export declare const skillsConfigOptionsSchema: z.ZodObject<{
|
|
|
76
76
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
77
77
|
path: z.ZodOptional<z.ZodString>;
|
|
78
78
|
}, z.core.$strip>, z.ZodBoolean]>>>;
|
|
79
|
-
|
|
79
|
+
mcpResources: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
80
80
|
cache: z.ZodOptional<z.ZodObject<{
|
|
81
81
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
82
82
|
redis: z.ZodOptional<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"complete.flow.d.ts","sourceRoot":"","sources":["../../../src/completion/flows/complete.flow.ts"],"names":[],"mappings":"AAE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AO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,qBAA8B,CAAC;AAU5C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAC7D,MAAM,wCAA0C;IAG1C,UAAU;IA0CV,QAAQ;IAkGR,QAAQ;CAMf"}
|
package/errors/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { McpError, PublicMcpError, InternalMcpError, ToolNotFoundError, ToolExecutionError, ResourceNotFoundError, ResourceReadError, InvalidResourceUriError, InvalidInputError, InvalidOutputError, InvalidMethodError, RateLimitError, QuotaExceededError, UnauthorizedError, SessionMissingError, UnsupportedClientVersionError, GenericServerError, DependencyNotFoundError, InvalidHookFlowError, InvalidPluginScopeError, RequestContextNotAvailableError, AuthConfigurationError, GlobalConfigNotFoundError, PromptNotFoundError, PromptExecutionError, isPublicError, toMcpError, formatMcpErrorResponse, MCP_ERROR_CODES, type McpErrorCode, } from './mcp.error';
|
|
1
|
+
export { McpError, PublicMcpError, InternalMcpError, ToolNotFoundError, ToolExecutionError, EntryUnavailableError, ResourceNotFoundError, ResourceReadError, InvalidResourceUriError, InvalidInputError, InvalidOutputError, InvalidMethodError, RateLimitError, QuotaExceededError, UnauthorizedError, SessionMissingError, UnsupportedClientVersionError, GenericServerError, DependencyNotFoundError, InvalidHookFlowError, InvalidPluginScopeError, RequestContextNotAvailableError, AuthConfigurationError, GlobalConfigNotFoundError, PromptNotFoundError, PromptExecutionError, isPublicError, toMcpError, formatMcpErrorResponse, MCP_ERROR_CODES, type McpErrorCode, } from './mcp.error';
|
|
2
2
|
export { authorizationRequiredDataSchema, authorizationRequiredParamsSchema, authorizationRequiredMetaSchema, AuthorizationRequiredError, } from './authorization-required.error';
|
|
3
3
|
export type { AuthorizationRequiredData, AuthorizationRequiredParams, AuthorizationRequiredMeta, } from './authorization-required.error';
|
|
4
4
|
export { ErrorHandler, createErrorHandler, shouldStopExecution } from './error-handler';
|