Files
SnowLuma/.pnpm-store/v11/files/42/ef75388216bcce418e7aca04b43e97d651beac5180ce06c4915c5ae67577b1182acbee97495307e9fe90d271e16c883ccb481bd1cfde2107bebbb1116dc50c
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

31 lines
1.2 KiB
Plaintext

/**
* Tool name validation utilities according to SEP: Specify Format for Tool Names
*
* Tool names SHOULD be between 1 and 128 characters in length (inclusive).
* Tool names are case-sensitive.
* Allowed characters: uppercase and lowercase ASCII letters (A-Z, a-z), digits
* (0-9), underscore (_), dash (-), and dot (.).
* Tool names SHOULD NOT contain spaces, commas, or other special characters.
*/
/**
* Validates a tool name according to the SEP specification
* @param name - The tool name to validate
* @returns An object containing validation result and any warnings
*/
export declare function validateToolName(name: string): {
isValid: boolean;
warnings: string[];
};
/**
* Issues warnings for non-conforming tool names
* @param name - The tool name that triggered the warnings
* @param warnings - Array of warning messages
*/
export declare function issueToolNameWarning(name: string, warnings: string[]): void;
/**
* Validates a tool name and issues warnings for non-conforming names
* @param name - The tool name to validate
* @returns true if the name is valid, false otherwise
*/
export declare function validateAndWarnToolName(name: string): boolean;
//# sourceMappingURL=toolNameValidation.d.ts.map