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%
A utility that opens the user's editor on a temporary file and reports both the edited content and the editor process exit code.
null; after a run it returns the most recent exit status value. @test@generates
export type EditorRunOptions = {
editorCommand?: string;
initialText?: string;
};
export type EditorRunResult = {
content: string;
exitStatus: number | null;
};
export function editOnce(options?: EditorRunOptions): Promise<EditorRunResult>;
export function editOnceSync(options?: EditorRunOptions): EditorRunResult;
export function getLastExitStatus(): number | null;Provides access to the user's preferred text editor and exposes the process exit status.