33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
declare const CURSOR: "cursor";
|
|
declare const CURSOR_CLI: "cursor-cli";
|
|
declare const CLAUDE: "claude";
|
|
declare const DEVIN: "devin";
|
|
declare const REPLIT: "replit";
|
|
declare const GEMINI: "gemini";
|
|
declare const CODEX: "codex";
|
|
declare const AUGMENT_CLI: "augment-cli";
|
|
declare const OPENCODE: "opencode";
|
|
export type KnownAgentNames = typeof CURSOR | typeof CURSOR_CLI | typeof CLAUDE | typeof DEVIN | typeof REPLIT | typeof GEMINI | typeof CODEX | typeof AUGMENT_CLI | typeof OPENCODE;
|
|
export interface KnownAgentDetails {
|
|
name: KnownAgentNames;
|
|
}
|
|
export type AgentResult = {
|
|
isAgent: true;
|
|
agent: KnownAgentDetails;
|
|
} | {
|
|
isAgent: false;
|
|
agent: undefined;
|
|
};
|
|
export declare const KNOWN_AGENTS: {
|
|
readonly CURSOR: "cursor";
|
|
readonly CURSOR_CLI: "cursor-cli";
|
|
readonly CLAUDE: "claude";
|
|
readonly DEVIN: "devin";
|
|
readonly REPLIT: "replit";
|
|
readonly GEMINI: "gemini";
|
|
readonly CODEX: "codex";
|
|
readonly AUGMENT_CLI: "augment-cli";
|
|
readonly OPENCODE: "opencode";
|
|
};
|
|
export declare function determineAgent(): Promise<AgentResult>;
|
|
export {};
|