disclaw/dist/commands/new-agent.d.ts
Nick Tabeling ca461d0da6
Some checks failed
CI / build-and-test (ubuntu-latest) (pull_request) Has been cancelled
CI / build-and-test (windows-latest) (pull_request) Has been cancelled
CI / lint (pull_request) Has been cancelled
fix(env): remove CI=true from sanitizedEnv, breaks Claude Code OAuth login
2026-04-09 13:18:25 +02:00

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