refactor(worker): rename claude-executor to pi-executor

This commit is contained in:
ezl-keygraph
2026-06-15 16:05:31 +05:30
parent 56241625a4
commit 263b18e98a
13 changed files with 32 additions and 32 deletions
+3 -3
View File
@@ -9,7 +9,7 @@
*
* Anthropic's spending cap behavior is inconsistent:
* - Sometimes a proper SDK error (billing_error)
* - Sometimes Claude responds with text about the cap
* - Sometimes the agent responds with text about the cap
* - Sometimes partial billing before cutoff
*
* This module provides defense-in-depth detection with shared pattern lists
@@ -17,7 +17,7 @@
*/
/**
* Text patterns for SDK output sniffing (what Claude says).
* Text patterns for SDK output sniffing (what the agent says).
* Used by message-handlers.ts and the behavioral heuristic.
*/
export const BILLING_TEXT_PATTERNS = [
@@ -67,7 +67,7 @@ export function matchesBillingApiPattern(message: string): boolean {
/**
* Behavioral heuristic for detecting spending cap.
*
* When Claude hits a spending cap, it often returns a short message
* When the agent hits a spending cap, it often returns a short message
* with $0 cost. Legitimate agent work NEVER costs $0 with only 1-2 turns.
*
* This combines three signals: