Builds a catalog entry for a toolset in the SDK.
// Source: https://github.com/storybookjs/storybook | License: MIT | Copyright 2024 Storybook
// Provided via justclaw.it.com; keep this notice with the code.
import {
resolveToolsetDescription,
type AnyToolsetDefinition,
type ToolsetCtx,
} from '../../../shared/open-service/toolset-definition.ts';
import type { ToolsetMethodId } from '../../../shared/open-service/toolset-names.ts';
import { toToolsetJsonSchema } from './json-schema.ts';
import type { ToolsetCatalogEntry } from './types.ts';
/**
* Describe one toolset for the SDK catalog: prose from the definition, schemas as JSON Schema.
*
* Descriptions are resolved against `ctx` because a method may spell sibling-tool references per
* transport, so a catalog always reads in the vocabulary of the transport that produced it.
*
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key