slacklocalvibe 0.1.5 → 0.1.7
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/README.md +8 -22
- package/package.json +1 -1
- package/src/commands/notify.js +4 -1
- package/src/lib/notify-input.js +0 -8
package/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
# SlackLocalVibe
|
|
1
|
+
# SlackLocalVibe for Codex / ClaudeCode
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
## 機能
|
|
4
|
+
|
|
5
|
+
- Codex / ClaudeCode の結果を Slack DM に通知
|
|
6
|
+
- Slack スレッド返信を CLI resume として実行
|
|
5
7
|
|
|
6
8
|
## 必要環境
|
|
7
9
|
|
|
@@ -10,31 +12,15 @@ Codex / Claude Code の完了通知を Slack に送り、スレッド返信で r
|
|
|
10
12
|
|
|
11
13
|
## インストール
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npx slacklocalvibe
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
ウィザード内で `npm i -g slacklocalvibe` を実行し、以降の返信/常駐でグローバルコマンドを使います。
|
|
20
|
-
|
|
21
|
-
## 使い方
|
|
22
|
-
|
|
23
|
-
セットアップウィザードを起動します。
|
|
15
|
+
ユーザーが実行するのはこれだけです。(セットアップ・アップデート・テスト)
|
|
16
|
+
ウィザード内で `npm i -g slacklocalvibe` を実行します。
|
|
24
17
|
|
|
25
18
|
```bash
|
|
26
19
|
npx slacklocalvibe
|
|
27
20
|
```
|
|
28
21
|
|
|
29
|
-
### サブコマンド
|
|
30
|
-
|
|
31
|
-
- 通知: `slacklocalvibe notify --tool codex|claude`
|
|
32
|
-
- daemon: `slacklocalvibe daemon`
|
|
33
|
-
- launchd: `slacklocalvibe launchd install|uninstall|status`
|
|
34
|
-
|
|
35
|
-
launchd は **グローバル固定**です。
|
|
36
|
-
|
|
37
22
|
## 設定・ログ
|
|
38
23
|
|
|
39
24
|
- 設定: `~/.config/slacklocalvibe/config.json`
|
|
40
25
|
- ログ: `~/Library/Logs/slacklocalvibe/`
|
|
26
|
+
|
package/package.json
CHANGED
package/src/commands/notify.js
CHANGED
|
@@ -108,10 +108,13 @@ async function runNotify({ tool }) {
|
|
|
108
108
|
String(input.assistant_text || "").startsWith("(本文抽出エラー:");
|
|
109
109
|
|
|
110
110
|
if (userTextMissing) {
|
|
111
|
-
log(LEVELS.
|
|
111
|
+
log(LEVELS.ERROR, "notify.user_text_missing", {
|
|
112
112
|
tool: input.tool,
|
|
113
113
|
meta: input.meta || {},
|
|
114
|
+
duration_ms: Date.now() - startedAt,
|
|
114
115
|
});
|
|
116
|
+
process.exitCode = 1;
|
|
117
|
+
return;
|
|
115
118
|
}
|
|
116
119
|
if (assistantTextMissing) {
|
|
117
120
|
log(LEVELS.WARNING, "notify.assistant_text_missing", { tool: input.tool });
|
package/src/lib/notify-input.js
CHANGED
|
@@ -28,14 +28,6 @@ function parseCodexNotify(rawJson) {
|
|
|
28
28
|
const meta = buildCodexInputMeta(inputMessages);
|
|
29
29
|
const codexHomeInfo = resolveCodexHomeInfo();
|
|
30
30
|
Object.assign(meta, codexHomeInfo.meta || {});
|
|
31
|
-
if (codexHomeInfo.isDefault) {
|
|
32
|
-
return {
|
|
33
|
-
tool: "codex",
|
|
34
|
-
skip: true,
|
|
35
|
-
skip_reason: "codex_home_default",
|
|
36
|
-
meta,
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
31
|
const rolloutResult = readCodexUserMessageFromRollout(sessionId, codexHomeInfo.home);
|
|
40
32
|
Object.assign(meta, rolloutResult.meta || {});
|
|
41
33
|
const userText = rolloutResult.userText || "";
|