Skip to content

Commit c29094f

Browse files
committed
rename snake case to kebab case
1 parent eb9b726 commit c29094f

File tree

9 files changed

+28
-29
lines changed

9 files changed

+28
-29
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
- python のコードはできる限り async で書いてください。
77

88
# このレポジトリについて
9-
llm による自立型Cliコーディングエージェントライブラリ llm_coder
9+
llm による自立型Cliコーディングエージェントライブラリ llm-coder
1010
ユーザーの指示通りコーディングし、自前のlinterやformatterやtestコードを評価フェーズに実行でき、通るまで修正します。
1111
llm api のインターフェースは litellm ライブラリを使用。ClaudeやOpenAIなど自由なLLMを利用できます。

.github/workflows/github_comment_trigger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313
issues: write
1414
jobs:
1515
llm-coder:
16-
if: contains(github.event.comment.body, '/llm-coder')
16+
if: startsWith(github.event.comment.body, '/llm-coder') && github.event.comment.user.type != 'Bot'
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout repository
@@ -22,7 +22,7 @@ jobs:
2222
submodules: recursive
2323
# PRの場合はfeatureブランチを直接チェックアウト
2424
ref: ${{ github.event.pull_request.head.ref || github.ref }}
25-
- run: cp llm_coder_config.example.toml llm_coder_config.toml
25+
- run: cp llm-coder-config.example.toml llm-coder-config.toml
2626
- name: Run LLM Coder Action
2727
uses: igtm/llm-coder-action@v1
2828
with:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ wheels/
1212
.mypy_cache/
1313
.ruff_cache/
1414
.pytest_cache/
15-
llm_coder_config.toml
15+
llm-coder-config.toml
1616

1717

1818
node_modules/

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# llm_coder
1+
# llm-coder
22

3-
llm による自立型 Cli コーディングエージェントライブラリ llm_coder
3+
llm による自立型 Cli コーディングエージェントライブラリ llm-coder
44

55
ユーザーの指示通りコーディングし、自前の linter や formatter や test コードを評価フェーズに実行でき、通るまで修正します。
66
llm api のインターフェースは litellm ライブラリを使用。Claude や OpenAI など自由な LLM を利用できます。
@@ -12,8 +12,8 @@ llm api のインターフェースは litellm ライブラリを使用。Claude
1212
1. リポジトリをクローンします:
1313

1414
```bash
15-
git clone <repository_url>
16-
cd llm_coder
15+
git clone https://github.com/igtm/llm-coder.git
16+
cd llm-coder
1717
```
1818

1919
2. 開発モードでパッケージをインストールします:
@@ -40,7 +40,7 @@ positional arguments:
4040
4141
options:
4242
-h, --help ヘルプメッセージを表示して終了
43-
--config CONFIG TOML設定ファイルのパス (デフォルト: llm_coder_config.toml)
43+
--config CONFIG TOML設定ファイルのパス (デフォルト: llm-coder-config.toml)
4444
--model MODEL, -m MODEL
4545
使用するLLMモデル (デフォルト: gpt-4.1-nano)
4646
--temperature TEMPERATURE, -t TEMPERATURE
@@ -95,7 +95,7 @@ llm-coder --output result.txt --conversation-history conversation.txt "Create a
9595

9696
### TOML 設定ファイルの例
9797

98-
デフォルトでは `llm_coder_config.toml` という名前の設定ファイルが読み込まれます。カスタム設定ファイルは `--config` オプションで指定できます。
98+
デフォルトでは `llm-coder-config.toml` という名前の設定ファイルが読み込まれます。カスタム設定ファイルは `--config` オプションで指定できます。
9999

100100
```toml
101101
# グローバル設定
@@ -113,7 +113,7 @@ repository_description_prompt = "このリポジトリはPythonのユーティ
113113
設定ファイルを使用する場合:
114114

115115
```sh
116-
# デフォルトの設定ファイル (llm_coder_config.toml) を使用
116+
# デフォルトの設定ファイル (llm-coder-config.toml) を使用
117117
llm-coder
118118

119119
# カスタム設定ファイルを指定
@@ -124,19 +124,18 @@ llm-coder --config my_config.toml
124124

125125
インストールせずに開発中に `cli.py` を直接実行することも可能です。挙動を試す用の `playground` ディレクトリを用意していますが、スクリプトの実行はプロジェクトのルートディレクトリから行う必要があります。
126126

127-
プロジェクトのルートディレクトリ (`llm_coder` ディレクトリのトップ) から以下のコマンドを実行してください:
127+
プロジェクトのルートディレクトリ (`llm-coder` ディレクトリのトップ) から以下のコマンドを実行してください:
128128

129129
```bash
130130
# プロジェクトのルートディレクトリにいることを確認
131-
# (例: /home/igtm/tmp/llm_coder)
132-
uv run python -m llm_coder.cli <引数...>
131+
uv run python -m llm-coder.cli <引数...>
133132
```
134133

135134
例:
136135

137136
```bash
138137
# プロジェクトのルートディレクトリにいることを想定
139-
uv run python -m llm_coder.cli "Create a python script that outputs 'hello world'"
138+
uv run python -m llm-coder.cli "Create a python script that outputs 'hello world'"
140139
```
141140

142141
## llm-coder-litellm コマンドの使用方法

llm_coder_config.example.toml renamed to llm-coder-config.example.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# llm_coder の設定ファイルサンプル
1+
# llm-coder の設定ファイルサンプル
22

33
# 実行するプロンプト (省略可能。コマンドライン引数や標準入力で指定できます)
44
# prompt = "ここにデフォルトのプロンプトを記述します"

llm_coder/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# structlog の設定は logging_config.py に移動
1818
# 実際の設定は cli.py で行われる
19-
logger = structlog.get_logger("llm_coder.agent")
19+
logger = structlog.get_logger(__name__)
2020

2121

2222
# デフォルトプロンプト定数

llm_coder/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
) # get_shell_command_tools をインポート
1414
import structlog # structlog をインポート (agent.py と同様の設定を想定)
1515

16-
logger = structlog.get_logger("llm_coder.cli")
16+
logger = structlog.get_logger(__name__)
1717

1818

1919
def parse_args():
2020
# 設定ファイル専用のパーサーを作成して、--config 引数を先に解析
2121
config_parser = argparse.ArgumentParser(add_help=False)
22-
default_config_filename = "llm_coder_config.toml"
22+
default_config_filename = "llm-coder-config.toml"
2323
config_parser.add_argument(
2424
"--config",
2525
type=str,

llm_coder/litellm_cli.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import structlog
66
import toml
77

8-
logger = structlog.get_logger("llm_coder.litellm_cli")
8+
logger = structlog.get_logger(__name__)
99

1010
try:
1111
import litellm
@@ -16,7 +16,7 @@
1616
def load_config(config_path=None):
1717
"""TOML設定ファイルを読み込む関数"""
1818
config_values = {}
19-
default_config_filename = "llm_coder_config.toml"
19+
default_config_filename = "llm-coder-config.toml"
2020
config_file_path_to_load = config_path or default_config_filename
2121

2222
if os.path.exists(config_file_path_to_load):
@@ -35,8 +35,8 @@ def parse_litellm_args(argv, config_values=None):
3535
config_parser.add_argument(
3636
"--config",
3737
type=str,
38-
default="llm_coder_config.toml", # デフォルトファイル名を設定
39-
help="TOML設定ファイルのパス (デフォルト: llm_coder_config.toml)",
38+
default="llm-coder-config.toml", # デフォルトファイル名を設定
39+
help="TOML設定ファイルのパス (デフォルト: llm-coder-config.toml)",
4040
)
4141
config_args, remaining_argv = config_parser.parse_known_args(argv)
4242

@@ -179,7 +179,7 @@ def run_litellm_cli():
179179
"""llm-coder-litellm コマンドのエントリーポイント"""
180180
# 最初に --config オプションのみを解析
181181
config_parser = argparse.ArgumentParser(add_help=False)
182-
config_parser.add_argument("--config", type=str, default="llm_coder_config.toml")
182+
config_parser.add_argument("--config", type=str, default="llm-coder-config.toml")
183183
config_args, _ = config_parser.parse_known_args(sys.argv[1:])
184184

185185
# 設定ファイルを読み込む

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "llm_coder"
6+
name = "llm-coder"
77
version = "0.1.0"
88
description = "llm による自立型 Cli コーディングエージェントライブラリ"
99
readme = "README.md"
@@ -12,7 +12,7 @@ license = { text = "MIT" }
1212
authors = [{ name = "Tomokatsu Iguchi" }]
1313

1414
dependencies = [
15-
"litellm", # llm_coder が依存するライブラリを列挙
15+
"litellm", # llm-coder が依存するライブラリを列挙
1616
"toml",
1717
"structlog",
1818
# 他に必要な依存関係があればここに追加
@@ -23,12 +23,12 @@ dependencies = [
2323
llm-coder-litellm = "llm_coder.litellm_cli:run_litellm_cli"
2424

2525
[project.urls]
26-
"Homepage" = "https://github.com/igtm/llm_coder"
27-
"Bug Tracker" = "https://github.com/igtm/llm_coder/issues"
26+
"Homepage" = "https://github.com/igtm/llm-coder"
27+
"Bug Tracker" = "https://github.com/igtm/llm-coder/issues"
2828

2929
[dependency-groups]
3030
dev = ["pytest>=8.3.5", "pytest-asyncio>=0.26.0", "ruff>=0.11.9"]
3131

3232
[tool.setuptools.packages.find]
33-
include = ["llm_coder*"]
33+
include = ["llm-coder*"]
3434
exclude = ["playground*"]

0 commit comments

Comments
 (0)