claude-spotter 1.4.1 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/README.ja.md +1 -1
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/cli/install.mjs +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.4.3
|
|
4
|
+
|
|
5
|
+
**README の Codex refresh 手順表現を v1.4.2 の実装と一致させる docs patch release**。v1.4.2 で Codex hooks 登録は `spotter install` に集約済みだが、README / README.ja の common commands コメントに `codex-hook install` 後という古い表現が残っていたため修正。
|
|
6
|
+
|
|
7
|
+
### 変更点
|
|
8
|
+
|
|
9
|
+
- **編集 [README.md](README.md) / [README.ja.md](README.ja.md)**: Codex SessionStart refresh は `spotter install` 後に自動実行される、と明記。`spotter codex-hook install` は修復 / 明示登録用 command として残す
|
|
10
|
+
|
|
11
|
+
### ユーザー側で必要な手順
|
|
12
|
+
|
|
13
|
+
1. `npm install -g claude-spotter@1.4.3`
|
|
14
|
+
2. 各プロジェクトで `spotter install`
|
|
15
|
+
|
|
16
|
+
## 1.4.2
|
|
17
|
+
|
|
18
|
+
**既存 project の hook command path を npm global 版へ更新する patch release**。v1.4.1 の `spotter install` は Codex hooks を自動登録するようになったが、既存 `.claude/settings.json` に `spotter.mjs` hook がある場合、登録済み判定で timeout だけ更新し、command path を現在の package root へ差し替えていなかった。local checkout 由来の hook が残ると、global npm update 後も古い checkout を呼び続け得るため修正。
|
|
19
|
+
|
|
20
|
+
### 変更点
|
|
21
|
+
|
|
22
|
+
- **編集 [src/cli/install.mjs](src/cli/install.mjs)**: 既存 Spotter hook を見つけた場合も `hook.command` を現在の `SPOTTER_BIN` に更新する。これにより `npm install -g claude-spotter` 後、各プロジェクトで `spotter install` を再実行すれば hook は global npm 版へ揃う
|
|
23
|
+
- **編集 [test/install.test.mjs](test/install.test.mjs)**: 古い `/old/bin/spotter.mjs` hook が `spotter install` で現在の package path に差し替わる回帰テストを追加
|
|
24
|
+
|
|
25
|
+
### ユーザー側で必要な手順
|
|
26
|
+
|
|
27
|
+
1. `npm install -g claude-spotter@1.4.2`
|
|
28
|
+
2. 各プロジェクトで `spotter install`
|
|
29
|
+
|
|
3
30
|
## 1.4.1
|
|
4
31
|
|
|
5
32
|
**Codex native hooks の有効化手順を `spotter install` に集約する patch release**。v1.4.0 は npm publish まで成功したが、Codex hooks を使うには `spotter codex-hook install` が別手順として残っていた。完成条件を「global npm install 後、各プロジェクトで `spotter install` する以外の手作業を不要にする」と再定義し、Codex CLI がある環境では `spotter install` が Codex hooks も idempotent に登録するようにした。
|
package/README.ja.md
CHANGED
|
@@ -126,7 +126,7 @@ spotter db list --host-agent codex
|
|
|
126
126
|
spotter db refresh # Claude MCP / スキル / サブエージェントから description を収集して Claude DB 更新
|
|
127
127
|
spotter db refresh --host-agent codex
|
|
128
128
|
# Codex MCP / スキルから description を収集して .spotter/tool-db.codex.json を更新
|
|
129
|
-
# (Claude は install + Claude SessionStart、Codex は
|
|
129
|
+
# (Claude は install + Claude SessionStart、Codex は spotter install 後の
|
|
130
130
|
# Codex SessionStart で自動実行されるので通常は不要)
|
|
131
131
|
spotter db rebuild # Claude local + global DB を両方消してから refresh (カタログ設計変更時のクリーン用)
|
|
132
132
|
spotter status # 稼働中の daemon 一覧
|
package/README.md
CHANGED
|
@@ -127,7 +127,7 @@ spotter db refresh # rediscover Claude MCP / skills / sub-agents and updat
|
|
|
127
127
|
spotter db refresh --host-agent codex
|
|
128
128
|
# rediscover Codex MCP / skills and update .spotter/tool-db.codex.json
|
|
129
129
|
# (Claude refresh is automatic on install + Claude SessionStart;
|
|
130
|
-
# Codex refresh is automatic on Codex SessionStart after
|
|
130
|
+
# Codex refresh is automatic on Codex SessionStart after spotter install)
|
|
131
131
|
spotter db rebuild # wipe Claude local + global DBs and refresh from scratch
|
|
132
132
|
# (use after catalog-shape changes)
|
|
133
133
|
spotter status # list running daemons
|
package/package.json
CHANGED
package/src/cli/install.mjs
CHANGED
|
@@ -204,6 +204,7 @@ function mergeHooks(current) {
|
|
|
204
204
|
if (hook?.type !== 'command') continue;
|
|
205
205
|
if (!hook.command?.includes('spotter.mjs') || !hook.command?.includes(`hook ${sub}`)) continue;
|
|
206
206
|
alreadyHas = true;
|
|
207
|
+
hook.command = command;
|
|
207
208
|
hook.timeout = timeout;
|
|
208
209
|
}
|
|
209
210
|
}
|