From 0f70404b9783c6fc127d4ce32b3c0633de015f26 Mon Sep 17 00:00:00 2001 From: GeiserX <9169332+GeiserX@users.noreply.github.com> Date: Fri, 10 Apr 2026 15:27:37 +0200 Subject: [PATCH] Add cc-aws-keepalive plugin --- README-zh.md | 1 + README.md | 1 + .../cc-aws-keepalive/.claude-plugin/plugin.json | 9 +++++++++ plugins/cc-aws-keepalive/hooks/hooks.json | 16 ++++++++++++++++ 4 files changed, 27 insertions(+) create mode 100644 plugins/cc-aws-keepalive/.claude-plugin/plugin.json create mode 100644 plugins/cc-aws-keepalive/hooks/hooks.json diff --git a/README-zh.md b/README-zh.md index 2c2de0e..e61d3b3 100644 --- a/README-zh.md +++ b/README-zh.md @@ -65,6 +65,7 @@ - [ultrathink](./plugins/ultrathink) ### 自动化运维 +- [cc-aws-keepalive](./plugins/cc-aws-keepalive) - [deployment-engineer](./plugins/deployment-engineer) - [devops-automator](./plugins/devops-automator) - [infrastructure-maintainer](./plugins/infrastructure-maintainer) diff --git a/README.md b/README.md index e4de615..17b5e9f 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ Install or disable them dynamically with the `/plugin` command — enabling you - [ultrathink](./plugins/ultrathink) ### Automation DevOps +- [cc-aws-keepalive](./plugins/cc-aws-keepalive) - [deployment-engineer](./plugins/deployment-engineer) - [devops-automator](./plugins/devops-automator) - [infrastructure-maintainer](./plugins/infrastructure-maintainer) diff --git a/plugins/cc-aws-keepalive/.claude-plugin/plugin.json b/plugins/cc-aws-keepalive/.claude-plugin/plugin.json new file mode 100644 index 0000000..2c63328 --- /dev/null +++ b/plugins/cc-aws-keepalive/.claude-plugin/plugin.json @@ -0,0 +1,9 @@ +{ + "name": "cc-aws-keepalive", + "description": "Keep Claude Code sessions alive through AWS credential expiration. Hooks into UserPromptSubmit to proactively detect expiring AWS credentials and refresh them before they break your Bedrock-powered session. Features proactive warnings, credential refresh bypass, and optional statusline timer.", + "version": "0.1.0", + "author": { + "name": "GeiserX" + }, + "homepage": "https://github.com/GeiserX/cc-aws-keepalive" +} diff --git a/plugins/cc-aws-keepalive/hooks/hooks.json b/plugins/cc-aws-keepalive/hooks/hooks.json new file mode 100644 index 0000000..6925b3e --- /dev/null +++ b/plugins/cc-aws-keepalive/hooks/hooks.json @@ -0,0 +1,16 @@ +{ + "hooks": { + "UserPromptSubmit": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "node \"$CLAUDE_PLUGIN_ROOT/aws-cred-check.mjs\"", + "timeout": 10 + } + ] + } + ] + } +}