openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
10 lines (9 loc) • 506 B
TypeScript
/** Parse an argument string using simple shell-style single and double quotes. */
export declare function parseCommandArgs(argsString: string): string[];
/**
* Substitute prompt template placeholders (`$1`, `$@`, `$ARGUMENTS`, `${@:N}`, `${@:N:L}`) with command arguments.
*
* Unsafe integer placeholders resolve to empty text instead of throwing, so malformed templates cannot abort prompt
* loading or invocation.
*/
export declare function substituteArgs(content: string, args: string[]): string;