Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .claude-plugin/hooks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"hooks": {
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "python -m claude_diary.hook"
}
]
}
]
}
}
26 changes: 26 additions & 0 deletions .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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"
}
30 changes: 21 additions & 9 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
28 changes: 20 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 등록
- 설정 파일 생성

## 디렉토리 구조

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
2 changes: 1 addition & 1 deletion src/claude_diary/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Claude Code Working Diary — Auto-generate work diaries from Claude Code sessions."""

__version__ = "2.0.0"
__version__ = "4.1.0"
2 changes: 1 addition & 1 deletion src/claude_diary/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
Loading