11 lines
No EOL
688 B
TypeScript
11 lines
No EOL
688 B
TypeScript
import { ChatInputCommandInteraction } from "discord.js";
|
|
import { DisclawDatabase } from "../db/database";
|
|
import { DisclawConfig } from "../config/loader";
|
|
/**
|
|
* Validates that an agent name is safe and does not escape the workspaces root
|
|
* via path traversal. Throws an Error if the resolved path would lie outside root.
|
|
*/
|
|
export declare function validateAgentName(name: string, workspacesRoot: string): void;
|
|
export declare const newAgentCommand: import("discord.js").SlashCommandOptionsOnlyBuilder;
|
|
export declare function handleNewAgent(interaction: ChatInputCommandInteraction, db: DisclawDatabase, config: DisclawConfig): Promise<void>;
|
|
//# sourceMappingURL=new-agent.d.ts.map
|