gdharness 0.12.7 → 0.12.9
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/build/cli.js +4 -1
- package/build/index.js +4 -1
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -7425,11 +7425,14 @@ class UpdateCheck {
|
|
|
7425
7425
|
this.retryAt = now + this.backoffMs;
|
|
7426
7426
|
this.backoffMs = Math.min(this.backoffMs * 2, MAX_RETRY_MS);
|
|
7427
7427
|
}
|
|
7428
|
-
notice() {
|
|
7428
|
+
notice(now = Date.now()) {
|
|
7429
7429
|
const latest = this.latest;
|
|
7430
7430
|
if (!this.enabled || latest === null || !isNewer(latest, this.current)) {
|
|
7431
7431
|
return null;
|
|
7432
7432
|
}
|
|
7433
|
+
if (this.checking && now - this.checkedAt >= CACHE_MS) {
|
|
7434
|
+
return null;
|
|
7435
|
+
}
|
|
7433
7436
|
return {
|
|
7434
7437
|
current: this.current,
|
|
7435
7438
|
latest,
|
package/build/index.js
CHANGED
|
@@ -9996,11 +9996,14 @@ class UpdateCheck {
|
|
|
9996
9996
|
this.retryAt = now + this.backoffMs;
|
|
9997
9997
|
this.backoffMs = Math.min(this.backoffMs * 2, MAX_RETRY_MS);
|
|
9998
9998
|
}
|
|
9999
|
-
notice() {
|
|
9999
|
+
notice(now = Date.now()) {
|
|
10000
10000
|
const latest = this.latest;
|
|
10001
10001
|
if (!this.enabled || latest === null || !isNewer(latest, this.current)) {
|
|
10002
10002
|
return null;
|
|
10003
10003
|
}
|
|
10004
|
+
if (this.checking && now - this.checkedAt >= CACHE_MS) {
|
|
10005
|
+
return null;
|
|
10006
|
+
}
|
|
10004
10007
|
return {
|
|
10005
10008
|
current: this.current,
|
|
10006
10009
|
latest,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gdharness",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.9",
|
|
4
4
|
"mcpName": "io.github.Aureliolo/gdharness",
|
|
5
5
|
"description": "A harness for driving a Godot 4 project from an agent: editor addons, a runtime bridge into the running game, an MCP server in front of them, and a CLI that installs and diagnoses the Godot side.",
|
|
6
6
|
"type": "module",
|