tessl install tessl/npm-external-editor@3.1.0Edit a string with the users preferred text editor using $VISUAL or $ENVIRONMENT
Agent Success
Agent success rate when using this tile
79%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.05x
Baseline
Agent success rate without this tile
75%
Utility that opens the user's editor on a temporary draft file whose name, location, and permissions can be customized, then returns the saved text.
X. @test0o600 is supplied, the temporary file is created with that permission mask and is removed after the editor closes. @test@generates
export function openDraft(initialText?: string, options?: {
prefix?: string;
postfix?: string;
dir?: string;
template?: string;
mode?: number;
}): { content: string; filePath: string; lastExitStatus: number | null; };
export function openDraftAsync(
initialText?: string,
options?: {
prefix?: string;
postfix?: string;
dir?: string;
template?: string;
mode?: number;
},
callback: (err: Error | null, result?: { content: string; filePath: string; lastExitStatus: number | null; }) => void
): void;Provides editor-driven workflows backed by configurable temporary files. @satisfied-by