chore: update claude-agent-sdk to 0.2.76, read dashboard config from .env

- Bump @anthropic-ai/claude-agent-sdk 0.2.68 → 0.2.76
- Read STATUS_CHANNEL_ID and USAGE_DASHBOARD from .env file
This commit is contained in:
Eyejoker
2026-03-16 05:54:17 +09:00
parent 385f3a0349
commit b710d4a33d
5 changed files with 1007 additions and 7 deletions

View File

@@ -3,6 +3,7 @@ import fs from 'fs';
import os from 'os';
import path from 'path';
import { USAGE_DASHBOARD_ENABLED } from './config.js';
import { readEnvFile } from './env.js';
import { GroupQueue, GroupStatus } from './group-queue.js';
import { logger } from './logger.js';
@@ -493,7 +494,7 @@ export async function startUsageDashboard(
opts: DashboardOptions,
): Promise<void> {
if (!opts.statusChannelId) return;
if (process.env.USAGE_DASHBOARD !== 'true') return;
if (!USAGE_DASHBOARD_ENABLED) return;
const statusJid = `dc:${opts.statusChannelId}`;