@gethmy/agent 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +0 -11
- package/dist/index.js +0 -11
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1559,14 +1559,6 @@ class BudgetGuard {
|
|
|
1559
1559
|
detail: `${card.attempts} of ${this.config.maxAttemptsPerCard} attempts exhausted`
|
|
1560
1560
|
};
|
|
1561
1561
|
}
|
|
1562
|
-
const dailySpent = this.store.getDailyCostCents();
|
|
1563
|
-
if (dailySpent >= this.config.dailyBudgetCents) {
|
|
1564
|
-
return {
|
|
1565
|
-
allow: false,
|
|
1566
|
-
reason: "daily_budget",
|
|
1567
|
-
detail: `daily budget ${formatCents(dailySpent)}/${formatCents(this.config.dailyBudgetCents)} exhausted`
|
|
1568
|
-
};
|
|
1569
|
-
}
|
|
1570
1562
|
return { allow: true };
|
|
1571
1563
|
}
|
|
1572
1564
|
}
|
|
@@ -1590,9 +1582,6 @@ function buildGaveUpComment(maxAttempts, failures) {
|
|
|
1590
1582
|
return lines.join(`
|
|
1591
1583
|
`);
|
|
1592
1584
|
}
|
|
1593
|
-
function formatCents(cents) {
|
|
1594
|
-
return `$${(cents / 100).toFixed(2)}`;
|
|
1595
|
-
}
|
|
1596
1585
|
|
|
1597
1586
|
// src/error-classifier.ts
|
|
1598
1587
|
function parseRetryAfterMs(message) {
|
package/dist/index.js
CHANGED
|
@@ -1558,14 +1558,6 @@ class BudgetGuard {
|
|
|
1558
1558
|
detail: `${card.attempts} of ${this.config.maxAttemptsPerCard} attempts exhausted`
|
|
1559
1559
|
};
|
|
1560
1560
|
}
|
|
1561
|
-
const dailySpent = this.store.getDailyCostCents();
|
|
1562
|
-
if (dailySpent >= this.config.dailyBudgetCents) {
|
|
1563
|
-
return {
|
|
1564
|
-
allow: false,
|
|
1565
|
-
reason: "daily_budget",
|
|
1566
|
-
detail: `daily budget ${formatCents(dailySpent)}/${formatCents(this.config.dailyBudgetCents)} exhausted`
|
|
1567
|
-
};
|
|
1568
|
-
}
|
|
1569
1561
|
return { allow: true };
|
|
1570
1562
|
}
|
|
1571
1563
|
}
|
|
@@ -1589,9 +1581,6 @@ function buildGaveUpComment(maxAttempts, failures) {
|
|
|
1589
1581
|
return lines.join(`
|
|
1590
1582
|
`);
|
|
1591
1583
|
}
|
|
1592
|
-
function formatCents(cents) {
|
|
1593
|
-
return `$${(cents / 100).toFixed(2)}`;
|
|
1594
|
-
}
|
|
1595
1584
|
|
|
1596
1585
|
// src/error-classifier.ts
|
|
1597
1586
|
function parseRetryAfterMs(message) {
|