mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 13:04:08 +00:00
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:
parent
d44073b140
commit
ba5bf54af4
12 changed files with 57 additions and 35 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue