@adhdev/mesh-shared 1.0.82-rc.25 → 1.0.82-rc.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/assistant-protocol.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/node-facts.d.ts +1 -1
- package/package.json +1 -1
- package/src/assistant-protocol.ts +1 -0
- package/src/node-facts.ts +1 -1
- package/src/quota-freshness.ts +8 -5
package/dist/node-facts.d.ts
CHANGED
|
@@ -278,7 +278,7 @@ export declare function normalizeMeshNodeFacts(raw: unknown): MeshNodeFacts | un
|
|
|
278
278
|
* the host `agy` itself uses; the unprefixed `cloudcode-pa` host 429s Google
|
|
279
279
|
* AI Pro Antigravity accounts), and its credential lives in the OS keyring,
|
|
280
280
|
* not the stale on-disk token file — see the provenance note in daemon-core
|
|
281
|
-
* `quota/fetchers/antigravity.ts`. Supported on macOS and
|
|
281
|
+
* `quota/fetchers/antigravity.ts`. Supported on macOS, Windows, and Linux; other
|
|
282
282
|
* platforms report `unsupported` rather than guess at a keyring backend
|
|
283
283
|
* nobody has verified.
|
|
284
284
|
*
|
package/package.json
CHANGED
|
@@ -237,6 +237,7 @@ export interface FollowedRemoteProjectEntry {
|
|
|
237
237
|
updatedAt: number | string
|
|
238
238
|
unfollowedAt?: number | string
|
|
239
239
|
revokedAt?: number | string
|
|
240
|
+
revokedReason?: string
|
|
240
241
|
lastCursor?: string | null
|
|
241
242
|
coordinatorSessionId?: string | null
|
|
242
243
|
lastErrorCode?: string
|
package/src/node-facts.ts
CHANGED
|
@@ -288,7 +288,7 @@ export function normalizeMeshNodeFacts(raw: unknown): MeshNodeFacts | undefined
|
|
|
288
288
|
* the host `agy` itself uses; the unprefixed `cloudcode-pa` host 429s Google
|
|
289
289
|
* AI Pro Antigravity accounts), and its credential lives in the OS keyring,
|
|
290
290
|
* not the stale on-disk token file — see the provenance note in daemon-core
|
|
291
|
-
* `quota/fetchers/antigravity.ts`. Supported on macOS and
|
|
291
|
+
* `quota/fetchers/antigravity.ts`. Supported on macOS, Windows, and Linux; other
|
|
292
292
|
* platforms report `unsupported` rather than guess at a keyring backend
|
|
293
293
|
* nobody has verified.
|
|
294
294
|
*
|
package/src/quota-freshness.ts
CHANGED
|
@@ -102,12 +102,15 @@ function backfillCheckAt(quota: MeshNodeFactsProviderQuota, now: number): number
|
|
|
102
102
|
export function assessQuotaFreshness(quota: MeshNodeFactsProviderQuota, now: number = Date.now()): QuotaFreshness {
|
|
103
103
|
const meta = quota.metadata
|
|
104
104
|
const kind = meta?.failureKind
|
|
105
|
-
const userMustAct =
|
|
106
|
-
|
|
107
|
-
// Order matters: the aged-out Claude shape and the retained
|
|
108
|
-
// shape both ALSO mark lastGoodWindows
|
|
109
|
-
//
|
|
105
|
+
const userMustAct = kind === 'no-data' && quota.provider !== 'codex-cli'
|
|
106
|
+
const awaitsCliUse = kind === 'expired-token' && ['grok-cli', 'kimi', 'antigravity-cli'].includes(quota.provider)
|
|
107
|
+
// Order matters: the aged-out Claude shape and the retained expired-token
|
|
108
|
+
// shape both ALSO mark lastGoodWindows, so they must be classified before
|
|
109
|
+
// the generic branch. An expired short-lived access token that the CLI
|
|
110
|
+
// renews itself is NOT an auth failure requiring user action (userMustAct:
|
|
111
|
+
// false), while any retained lastGood numbers are marked stale.
|
|
110
112
|
if (userMustAct) return hasReading(quota) ? { cue: 'stale', userMustAct: true } : { userMustAct: true }
|
|
113
|
+
if (awaitsCliUse) return hasReading(quota) ? { cue: 'stale', userMustAct: false } : { userMustAct: false }
|
|
111
114
|
if (meta?.lastGoodWindows !== true) {
|
|
112
115
|
// A successful fetch is not a perpetual live reading. Use the DATA
|
|
113
116
|
// clock; a recent failed attempt must never rejuvenate old numbers.
|