Release v0.7.29

- Show offset/limit in read tool display (e.g., read src/main.ts:100-200)
- Fix PI_CODING_AGENT_DIR env var name in help and code
- Add all API key env vars to help text
This commit is contained in:
Mario Zechner 2025-11-20 20:48:25 +01:00
parent d44073b140
commit ba5bf54af4
12 changed files with 57 additions and 35 deletions

View file

@ -219,7 +219,17 @@ export class ToolExecutionComponent extends Container {
}
} else if (this.toolName === "read") {
const path = shortenPath(this.args?.file_path || this.args?.path || "");
text = chalk.bold("read") + " " + (path ? chalk.cyan(path) : chalk.dim("..."));
const offset = this.args?.offset;
const limit = this.args?.limit;
// Build path display with offset/limit suffix
let pathDisplay = path ? chalk.cyan(path) : chalk.dim("...");
if (offset !== undefined) {
const endLine = limit !== undefined ? offset + limit : "";
pathDisplay += chalk.dim(`:${offset}${endLine ? `-${endLine}` : ""}`);
}
text = chalk.bold("read") + " " + pathDisplay;
if (this.result) {
const output = this.getTextOutput();