/** * Declare and register schema-backed URI resources exposable over MCP. URI * templates support hierarchical, rootless, embedded, and query parameters; * opaque identifiers remain literal. Captures are percent-decoded exactly once, * malformed escapes do not match, and `mcp.enabled: false` hides list and read. * * @module resource * * @example * ```ts * import { resource } from "veryfront/resource"; * import { defineSchema } from "veryfront/schemas"; * * const docsBySection: Record = { * agents: "Agents accept messages, tools, context, and runtime options.", * tools: "Tools expose schema-backed callable capabilities.", * }; * * const docs = resource({ * pattern: "docs/:section", * description: "API documentation", * paramsSchema: defineSchema((v) => v.object({ section: v.string() }))(), * load: ({ section }) => { * return { content: docsBySection[section] ?? "Section not found." }; * }, * }); * * const result = await docs.load({ section: "agents" }); * ``` */ import "../../_dnt.polyfills.js"; export type { Resource, ResourceConfig } from "./types.js"; export { resource } from "./factory.js"; export { resourceRegistry } from "./registry.js"; //# sourceMappingURL=index.d.ts.map