Skip to content

Commit c8de241

Browse files
committed
fix(statusline): replace @jsr/std__async with custom delay function (#531)
* fix(statusline): remove unused claude paths * fix(live-rendering): replace @jsr/std__async with custom delay function Replaced problematic JSR dependency with a simple custom delay implementation that supports AbortSignal for better compatibility with the build system * Revert "fix(live-rendering): replace @jsr/std__async with custom delay function" This reverts commit 9168d13.
1 parent cc1f546 commit c8de241

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎src/commands/statusline.ts‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { sharedArgs } from '../_shared-args.ts';
88
import { statuslineHookJsonSchema } from '../_types.ts';
99
import { formatCurrency } from '../_utils.ts';
1010
import { calculateTotals } from '../calculate-cost.ts';
11-
import { calculateContextTokens, getClaudePaths, getContextUsageThresholds, loadDailyUsageData, loadSessionBlockData, loadSessionUsageById } from '../data-loader.ts';
11+
import { calculateContextTokens, getContextUsageThresholds, loadDailyUsageData, loadSessionBlockData, loadSessionUsageById } from '../data-loader.ts';
1212
import { log, logger } from '../logger.ts';
1313

1414
/**
@@ -54,13 +54,6 @@ export const statuslineCommand = define({
5454
}
5555
const hookData = hookDataParseResult.data;
5656

57-
// Get Claude paths
58-
const claudePaths = getClaudePaths();
59-
if (claudePaths.length === 0) {
60-
log('❌ No Claude data directory found');
61-
process.exit(1);
62-
}
63-
6457
// Extract session ID from hook data
6558
const sessionId = hookData.session_id;
6659

0 commit comments

Comments
 (0)