Skip to content

--status オプションを追加: 直近1週間のSlack利用状況を表示#134

Merged
hideack merged 2 commits into
masterfrom
feature/status-command
May 23, 2026
Merged

--status オプションを追加: 直近1週間のSlack利用状況を表示#134
hideack merged 2 commits into
masterfrom
feature/status-command

Conversation

@hideack

@hideack hideack commented May 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • --status フラグを追加。--log-sqlite <path> と組み合わせることで、RTM接続なしにステータスを表示して終了する
  • lib/status.js を新規作成。SQLite から統計情報を取得してターミナルに整形表示する

表示内容

● Slack Stream Status

  App Health
  ├─ Last heartbeat : 53 seconds ago
  └─ Database       : /path/to/db.sqlite (116.0 KB)

  Messages — Last 7 Days
  ├─ Total          : 293 messages
  ├─ Daily average  : 42 messages/day
  └─ Today          : 34 messages

  Activity by Day
  05/17  ████████████████████     58
  ...

  Top Active Channels (Last 7 Days)
  #general                ████████████████████     69
  ...

  Top Active Users (Last 7 Days)
  alice                   ████████████████████     65
  ...

使い方

slack-cli-stream --log-sqlite /path/to/db.sqlite --status

Test plan

  • --status --log-sqlite <path> で正常表示されること
  • --status のみ (--log-sqlite なし) でエラーメッセージを表示して exit 1 すること
  • ハートビートの鮮度により緑 / 黄色で色分けされること

🤖 Generated with Claude Code

hideack and others added 2 commits May 23, 2026 21:52
--log-sqlite と組み合わせて使うことで、RTM接続なしにSQLiteから
メッセージ数の日別推移・チャンネル別・ユーザー別のランキングを
バーチャートで表示する。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hideack hideack merged commit 76733e0 into master May 23, 2026
2 checks passed
@hideack hideack deleted the feature/status-command branch May 23, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant