feat(coding-agent): implemented read-to-open tool aliasing in runtime

- Canonicalized file and CLI defaults from `read` to `open` across tool registration and prompts.
- Added `resolveToolAlias()` and applied alias-normalized tool selection so legacy `read` maps to `open`.
- Updated runtime, UI, and export layers to treat `open` as first-class while preserving `read` compatibility.
- Renamed read prompt docs to `open.md`/`open-chunk.md` and refreshed system guidance to recommend `open`.
- Updated tool-related tests and expectations from `read` to `open` (including test fixtures and aliases).
This commit is contained in:
can1357
2026-04-24 19:13:11 +02:00
parent b7d881a7f8
commit c48d2e6080
42 changed files with 212 additions and 181 deletions
+4 -2
View File
@@ -590,7 +590,8 @@ function formatStatusEvent(event: PythonStatusEvent, theme: Theme): string {
// Build description based on common fields
switch (op) {
case "read":
case "read": // legacy alias
case "open":
parts.push(`${data.chars} chars`);
if (data.path) parts.push(`from ${shortenPath(String(data.path))}`);
break;
@@ -794,7 +795,8 @@ function formatStatusEventExpanded(event: PythonStatusEvent, theme: Theme): stri
case "git_branch":
if (data.branches) addItems(data.branches as unknown[], b => String(b));
break;
case "read":
case "read": // legacy alias
case "open":
case "cat":
case "head":
case "tail":