From 28e5f61d9610c24f86da3ec2112cc62a9c2adecf Mon Sep 17 00:00:00 2001 From: cys Date: Tue, 17 Mar 2026 19:29:41 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20Sprint=20D-1=20=E2=80=94=20Claude=20Cod?= =?UTF-8?q?e=20=ED=94=8C=EB=9F=AC=EA=B7=B8=EC=9D=B8=20+=20=EC=84=A4?= =?UTF-8?q?=EC=B9=98=20=EA=B0=84=EC=86=8C=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .claude-plugin/: - plugin.json: 매니페스트 (name, version, keywords, engines) - hooks.json: Stop Hook 자동 등록 README 한/영: 3가지 설치 방법 추가 (pip / 플러그인 / 수동) 버전 동기화: 4.1.0 (pyproject.toml, __init__.py, cli.py, plugin.json) Co-Authored-By: Claude Opus 4.6 (1M context) --- .claude-plugin/hooks.json | 14 ++++++++++++++ .claude-plugin/plugin.json | 26 ++++++++++++++++++++++++++ README.en.md | 30 +++++++++++++++++++++--------- README.md | 28 ++++++++++++++++++++-------- pyproject.toml | 2 +- src/claude_diary/__init__.py | 2 +- src/claude_diary/cli.py | 2 +- 7 files changed, 84 insertions(+), 20 deletions(-) create mode 100644 .claude-plugin/hooks.json create mode 100644 .claude-plugin/plugin.json diff --git a/.claude-plugin/hooks.json b/.claude-plugin/hooks.json new file mode 100644 index 0000000..edb8331 --- /dev/null +++ b/.claude-plugin/hooks.json @@ -0,0 +1,14 @@ +{ + "hooks": { + "Stop": [ + { + "hooks": [ + { + "type": "command", + "command": "python -m claude_diary.hook" + } + ] + } + ] + } +} diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..2ad8a9d --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,26 @@ +{ + "name": "working-diary", + "description": "Auto-generate work diaries from Claude Code sessions (KO/EN)", + "version": "4.1.0", + "author": { + "name": "solzip", + "url": "https://github.com/solzip" + }, + "repository": "https://github.com/solzip/claude-code-hooks-diary", + "license": "MIT", + "keywords": [ + "diary", + "productivity", + "hooks", + "work-log", + "automation", + "claude-code" + ], + "engines": { + "claude-code": ">=2.1.0" + }, + "dependencies": { + "python": ">=3.7" + }, + "hooks": "hooks.json" +} diff --git a/README.en.md b/README.en.md index b22832e..4c628be 100644 --- a/README.en.md +++ b/README.en.md @@ -46,21 +46,33 @@ analyzes the transcript, and appends the work content to today's Markdown diary ## Installation +### Option 1: pip (Recommended) + +```bash +pip install claude-diary +claude-diary init +``` + +### Option 2: Claude Code Plugin + +```bash +# Inside Claude Code +/plugin marketplace add https://github.com/solzip/claude-code-hooks-diary +/plugin install working-diary +``` + +### Option 3: Manual Install + ```bash -# 1. Clone the repository git clone https://github.com/solzip/claude-code-hooks-diary.git cd claude-code-hooks-diary/working-diary-system - -# 2. Run the installer ./install.sh ``` -The install script automatically: -- Copies scripts to `~/.claude/hooks/` -- Registers the Stop Hook in `~/.claude/settings.json` -- Creates the `~/working-diary/` directory -- Auto-detects Python command (`python3` or `python`) -- (Unix only) Optionally registers a weekly summary cron job +After installation: +- Stop Hook registered (auto-runs on session end) +- `~/working-diary/` directory created +- Config file generated ## Directory Structure diff --git a/README.md b/README.md index 832ccb8..cec5dff 100644 --- a/README.md +++ b/README.md @@ -46,21 +46,33 @@ Claude Code 세션 종료 ## 설치 +### 방법 1: pip (권장) + +```bash +pip install claude-diary +claude-diary init +``` + +### 방법 2: Claude Code 플러그인 + +```bash +# Claude Code 안에서 +/plugin marketplace add https://github.com/solzip/claude-code-hooks-diary +/plugin install working-diary +``` + +### 방법 3: 수동 설치 + ```bash -# 1. 다운로드 git clone https://github.com/solzip/claude-code-hooks-diary.git cd claude-code-hooks-diary/working-diary-system - -# 2. 설치 스크립트 실행 ./install.sh ``` -설치 스크립트가 자동으로: -- `~/.claude/hooks/` 에 스크립트 복사 -- `~/.claude/settings.json` 에 Stop Hook 등록 +설치 후 자동으로: +- Stop Hook 등록 (세션 종료마다 자동 실행) - `~/working-diary/` 디렉토리 생성 -- Python 명령어 자동 감지 (`python3` 또는 `python`) -- (Unix only) 주간 요약 cron job 등록 +- 설정 파일 생성 ## 디렉토리 구조 diff --git a/pyproject.toml b/pyproject.toml index ced2c01..d41ff45 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.backends._legacy:_Backend" [project] name = "claude-diary" -version = "2.0.0" +version = "4.1.0" description = "Auto-generate work diaries from Claude Code sessions" readme = "README.en.md" license = {text = "MIT"} diff --git a/src/claude_diary/__init__.py b/src/claude_diary/__init__.py index 247f1dd..dfa2273 100644 --- a/src/claude_diary/__init__.py +++ b/src/claude_diary/__init__.py @@ -1,3 +1,3 @@ """Claude Code Working Diary — Auto-generate work diaries from Claude Code sessions.""" -__version__ = "2.0.0" +__version__ = "4.1.0" diff --git a/src/claude_diary/cli.py b/src/claude_diary/cli.py index d55bfc3..99f769a 100644 --- a/src/claude_diary/cli.py +++ b/src/claude_diary/cli.py @@ -22,7 +22,7 @@ def main(): prog="claude-diary", description="Auto-generated work diary from Claude Code sessions", ) - parser.add_argument("--version", action="version", version="claude-diary 2.0.0") + parser.add_argument("--version", action="version", version="claude-diary 4.1.0") sub = parser.add_subparsers(dest="command")