fix: address Bugbot followup — stale paths in JSDoc, unused exports (#20)
- Remove developer-specific paths from JSDoc comments in integration tests - Remove unused sessionExists and capturePane helper exports Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4b6d62d142
commit
7dd7de6249
|
|
@ -2,7 +2,7 @@
|
|||
* Integration tests for the Aider agent plugin.
|
||||
*
|
||||
* Requires:
|
||||
* - `aider` binary on PATH (or at /Users/equinox/Library/Python/3.9/bin/aider)
|
||||
* - `aider` binary on PATH
|
||||
* - tmux installed and running
|
||||
* - ANTHROPIC_API_KEY or OPENAI_API_KEY set (aider may open a browser if missing)
|
||||
*
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* Integration tests for the Claude Code agent plugin.
|
||||
*
|
||||
* Requires:
|
||||
* - `claude` binary on PATH (or at /Users/equinox/.local/bin/claude)
|
||||
* - `claude` binary on PATH
|
||||
* - tmux installed and running
|
||||
* - ANTHROPIC_API_KEY set (Claude will make a real API call)
|
||||
*
|
||||
|
|
|
|||
|
|
@ -87,27 +87,3 @@ export async function killSession(name: string): Promise<void> {
|
|||
}
|
||||
}
|
||||
|
||||
/** Check whether a tmux session exists. */
|
||||
export async function sessionExists(name: string): Promise<boolean> {
|
||||
try {
|
||||
await execFileAsync("tmux", ["has-session", "-t", name], {
|
||||
timeout: TIMEOUT,
|
||||
});
|
||||
return true;
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/** Capture the visible pane output from a tmux session. */
|
||||
export async function capturePane(
|
||||
name: string,
|
||||
lines = 50,
|
||||
): Promise<string> {
|
||||
const { stdout } = await execFileAsync(
|
||||
"tmux",
|
||||
["capture-pane", "-t", name, "-p", "-S", `-${lines}`],
|
||||
{ timeout: TIMEOUT },
|
||||
);
|
||||
return stdout;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue