@polka-codes/runner 0.9.26 → 0.9.27
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/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30458,7 +30458,7 @@ var {
|
|
|
30458
30458
|
Help
|
|
30459
30459
|
} = import__.default;
|
|
30460
30460
|
// package.json
|
|
30461
|
-
var version = "0.9.
|
|
30461
|
+
var version = "0.9.27";
|
|
30462
30462
|
|
|
30463
30463
|
// src/runner.ts
|
|
30464
30464
|
import { execSync } from "node:child_process";
|
|
@@ -42814,8 +42814,8 @@ class UsageMeter {
|
|
|
42814
42814
|
this.#calls = 0;
|
|
42815
42815
|
}
|
|
42816
42816
|
isLimitExceeded() {
|
|
42817
|
-
const messageCount = this.#maxMessages
|
|
42818
|
-
const cost = this.#maxCost
|
|
42817
|
+
const messageCount = this.#maxMessages > 0 && this.#calls >= this.#maxMessages;
|
|
42818
|
+
const cost = this.#maxCost > 0 && this.#totals.cost >= this.#maxCost;
|
|
42819
42819
|
return {
|
|
42820
42820
|
messageCount,
|
|
42821
42821
|
maxMessages: this.#maxMessages,
|