Add claude-code-source-code and claw-code directories
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
8
claw-code/src/costHook.py
Normal file
8
claw-code/src/costHook.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from .cost_tracker import CostTracker
|
||||
|
||||
|
||||
def apply_cost_hook(tracker: CostTracker, label: str, units: int) -> CostTracker:
|
||||
tracker.record(label, units)
|
||||
return tracker
|
||||
Reference in New Issue
Block a user