Commit Graph
25 Commits
Author SHA1 Message Date
thuanleandClaude 3dbed651e5 Arch pkg cache: remove partial download-* files before pacman -Sc
pacman -Sc errors with 'could not open file .../download-XXXX: Error
reading fd 7' on leftover incomplete downloads. Find and remove them
(with confirm) first, then run paccache/pacman -Sc cleanly.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:45:17 +07:00
thuanleandClaude 171e5dc9c0 Show target host in every step header
Each step now prints "--- [Label] on <host> ---". The host is threaded
through the remote self-bootstrap as argv[2] so it shows the real
server name when running over ssh.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:36:56 +07:00
thuanleandClaude 2e126a1743 Fix target alias: aws -> aws-vanhoa (matches ~/.ssh/config)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:35:22 +07:00
thuanleandClaude b64303bb23 Use legible figlet block-art banner (CLEANUP SERVER) with per-line rainbow
Replaces the gradient-bar version with proper figlet-style ASCII art
so the title is actually readable; each line colored in a rainbow
gradient, with a Vietnamese subtitle.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:26:25 +07:00
thuanleandClaude ab9d62fac6 Replace illegible box-art banner with readable gradient-bar banner
The Unicode box-drawing art didn't form legible letters. Now uses
two rainbow gradient bars around a plain, readable title + subtitle.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:24:06 +07:00
thuanleandClaude ce49f1ce5c Harden step_snap: dedupe Set ids (multi-snap sets)
Local flow verified end-to-end (macOS guards). Remote Ubuntu/Arch
verification deferred to user (interactive, destructive on real hosts).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:20:20 +07:00
thuanleandClaude a49f26adc8 Add step_tmp_cache: find >7d dry-run + confirmed rm
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:18:45 +07:00
thuanleandClaude f50579efb2 Add step_snap: list saved + forget per id
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:18:14 +07:00
thuanleandClaude 37ce7f6ca8 Add step_pkg_cache: apt clean / paccache / pacman -Sc
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:17:56 +07:00
thuanleandClaude f4c8f6c9e5 Add step_journal: disk-usage + vacuum-time=7d
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:17:38 +07:00
thuanleandClaude 833b33e042 Add step_docker: system df + prune per type
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:17:12 +07:00
thuanleandClaude 50d51b328f Add step_upgrade (apt / paru-yay / pacman)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:16:45 +07:00
thuanleandClaude e031bd0c6d Add distro detection, confirm helper, remote self-bootstrap
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:16:17 +07:00
thuanleandClaude 6fa2891d41 Add single-select target menu (arrow-key)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:15:23 +07:00
thuanleandClaude f8ddfa48a4 Add cleanup-server skeleton: banner + main dispatch
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:14:45 +07:00
thuanleandClaude 3999760d02 Drop stale 'cc' host from supgrade
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-22 00:01:01 +07:00
thuanle 829a9e2fbb update string 2026-05-04 21:37:28 +07:00
thuanleandClaude Opus 4.7 11485e08d9 Prefer env vars over secret store for API credentials
All scripts now check GLM_API_KEY / TK_AI_API_TOKEN environment
variables first, falling back to Keychain/libsecret only when unset.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-04 11:55:05 +07:00
thuanleandClaude Opus 4.7 062597252a Default Claude wrappers to auto permission mode when unset.
Preserve user-provided --permission-mode flags while injecting --permission-mode auto as the fallback.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-04 09:30:33 +07:00
thuanleandClaude Opus 4.7 38d257e854 Add backend launcher scripts and refresh cleanup utility
Introduce claude-glm and claude-tk wrappers with secure keychain token lookup and backend model defaults, and replace cleanup.sh with the updated cleanup script entrypoint.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-24 21:24:10 +07:00
thuanle 09aaab2e42 support arch 2026-04-20 14:53:03 +07:00
thuanle 0d8793426f Merge remote-tracking branch 'origin/main' 2026-04-20 14:45:09 +07:00
thuanleandClaude Opus 4.7 53b199882e Add Linux/Arch support to glm-quota
Use secret-tool on Linux and fix date command compatibility.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-20 14:43:12 +07:00
thuanle 9a239976e6 glm quota 2026-04-20 14:35:50 +07:00
thuanle b66b6589c8 Initial commit 2026-04-19 21:43:13 +07:00