feat(tools): enhance CLI tool descriptions and add remote handling option

- Updated `cleanupTool` description to include detailed usage and arguments.
- Added optional `noRemote` flag to `cleanupTool` for local‑only tag deletion.
- Adjusted remote handling logic to respect the new `noRemote` flag.
- Expanded `closeTool` description with clear argument documentation.
- Expanded `openTool` description with detailed argument documentation.
This commit is contained in:
2026-03-23 10:24:49 +05:30
parent c6d6c889d8
commit 46d81b4162
3 changed files with 23 additions and 11 deletions
+6 -2
View File
@@ -8,8 +8,12 @@ import { closeMultiModel } from "../core/close";
* creates archive tags, and deletes associated branches.
*/
export const closeTool = tool({
description:
"Close a multi-model tmux session and optionally cleanup worktrees and branches",
description: `Close a multi-model tmux session and optionally clean up worktrees and branches.
Arguments:
- \`sessionName\` (string, required): tmux session name to close.
- \`cleanupWorktrees\` (boolean, optional, default: true): Whether to remove worktrees and delete branches.
- \`createArchiveTags\` (boolean, optional, default: true): Whether to create archive tags before deleting branches.`,
args: {
sessionName: tool.schema
.string()