feat: add required mode flag to cleanup and close

- Made `mode` a mandatory property in `MultiModelOptions`, `CloseSessionOptions`, and `CleanupOptions`.
- Updated function signatures to accept `mode` and removed default empty option objects where appropriate.
- Passed `mode: "cli"` from CLI commands and `mode: "tool"` from tool commands to cleanup, close, and open operations.
- Adjusted internal handling to use the provided `mode` (removed fallback defaults).
- Updated type definitions and added documentation for the new `mode` field.
This commit is contained in:
2026-03-23 13:59:05 +05:30
parent 415b0624f1
commit 6b07a7ac2a
7 changed files with 13 additions and 4 deletions
+1
View File
@@ -39,6 +39,7 @@ Arguments:
cleanupWorktrees: args.cleanupWorktrees,
createArchiveTags: args.createArchiveTags,
force: true,
mode: "tool",
});
if (!result.success) {