@adhdev/mesh-shared 1.0.49-rc.9 → 1.0.50-rc.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.
@@ -141,17 +141,30 @@ export declare function normalizeMeshNodeFacts(raw: unknown): MeshNodeFacts | un
141
141
  * existed as a hand-copied literal in web-core's ProvidersTab; that copy is now
142
142
  * derived from this one.
143
143
  *
144
- * Deliberately NOT the same set as the `QuotaProvider` union in daemon-core's
145
- * quota/types.ts. That union includes `antigravity-cli`, which is *supportable*
146
- * (it authenticates via OAuth) but has no fetcher implemented so it is a
147
- * valid key to carry a snapshot under, and not a provider whose quota anything
148
- * can collect. Support here means "a fetcher exists", nothing weaker.
144
+ * Deliberately NOT necessarily the same set as the `QuotaProvider` union in
145
+ * daemon-core's quota/types.ts: that union is the set of valid keys a snapshot
146
+ * can be carried under, while membership HERE means "a fetcher exists".
149
147
  *
150
148
  * Known non-members and why, so this is not re-litigated per surface:
151
149
  * - cursor-cli — permanently impossible; no personal usage API exists
152
- * - antigravity-cli — possible via OAuth, not implemented
153
150
  * - hermes-cli — no model-axis quota to report
154
151
  *
152
+ * ★grok-cli WAS listed here as impossible and is not: that verdict came from
153
+ * probing `api.x.ai` / `management-api.x.ai` (the team-API billing axis, which
154
+ * genuinely rejects a CLI OAuth token) and from reading `grok --help`, where
155
+ * the `/usage` view does not appear because it is a TUI slash command. The
156
+ * subscription quota is served by the CLI's own chat proxy — see the endpoint
157
+ * provenance note in daemon-core `quota/fetchers/grok.ts`.
158
+ *
159
+ * ★antigravity-cli was likewise twice judged impossible, from reading
160
+ * `agy --help` where the usage view does not appear because it is a TUI view.
161
+ * Its quota comes from the SHARED Gemini Code Assist backend
162
+ * (`cloudcode-pa.googleapis.com/v1internal:retrieveUserQuotaSummary`), and its
163
+ * credential lives in the OS keyring, not the stale on-disk token file — see
164
+ * the provenance note in daemon-core `quota/fetchers/antigravity.ts`. It is
165
+ * macOS-only by design; other platforms report `unsupported` rather than guess
166
+ * at a keyring backend nobody has verified.
167
+ *
155
168
  * ★Adding a provider here without adding its fetcher to REFRESHERS re-creates
156
169
  * exactly the "switch that does nothing" this constant prevents.
157
170
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/mesh-shared",
3
- "version": "1.0.49-rc.9",
3
+ "version": "1.0.50-rc.1",
4
4
  "description": "ADHDev mesh-shared — pure mesh/git status normalizers shared by daemon-core and web-core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,6 +22,7 @@ export const CANONICAL_MESH_TOOL_NAMES = [
22
22
  'mesh_status',
23
23
  'mesh_list_nodes',
24
24
  'mesh_enqueue_task',
25
+ 'mesh_enqueue_batch',
25
26
  'mesh_view_queue',
26
27
  'mesh_queue_cancel',
27
28
  'mesh_queue_requeue',
package/src/node-facts.ts CHANGED
@@ -155,23 +155,38 @@ export function normalizeMeshNodeFacts(raw: unknown): MeshNodeFacts | undefined
155
155
  * existed as a hand-copied literal in web-core's ProvidersTab; that copy is now
156
156
  * derived from this one.
157
157
  *
158
- * Deliberately NOT the same set as the `QuotaProvider` union in daemon-core's
159
- * quota/types.ts. That union includes `antigravity-cli`, which is *supportable*
160
- * (it authenticates via OAuth) but has no fetcher implemented so it is a
161
- * valid key to carry a snapshot under, and not a provider whose quota anything
162
- * can collect. Support here means "a fetcher exists", nothing weaker.
158
+ * Deliberately NOT necessarily the same set as the `QuotaProvider` union in
159
+ * daemon-core's quota/types.ts: that union is the set of valid keys a snapshot
160
+ * can be carried under, while membership HERE means "a fetcher exists".
163
161
  *
164
162
  * Known non-members and why, so this is not re-litigated per surface:
165
163
  * - cursor-cli — permanently impossible; no personal usage API exists
166
- * - antigravity-cli — possible via OAuth, not implemented
167
164
  * - hermes-cli — no model-axis quota to report
168
165
  *
166
+ * ★grok-cli WAS listed here as impossible and is not: that verdict came from
167
+ * probing `api.x.ai` / `management-api.x.ai` (the team-API billing axis, which
168
+ * genuinely rejects a CLI OAuth token) and from reading `grok --help`, where
169
+ * the `/usage` view does not appear because it is a TUI slash command. The
170
+ * subscription quota is served by the CLI's own chat proxy — see the endpoint
171
+ * provenance note in daemon-core `quota/fetchers/grok.ts`.
172
+ *
173
+ * ★antigravity-cli was likewise twice judged impossible, from reading
174
+ * `agy --help` where the usage view does not appear because it is a TUI view.
175
+ * Its quota comes from the SHARED Gemini Code Assist backend
176
+ * (`cloudcode-pa.googleapis.com/v1internal:retrieveUserQuotaSummary`), and its
177
+ * credential lives in the OS keyring, not the stale on-disk token file — see
178
+ * the provenance note in daemon-core `quota/fetchers/antigravity.ts`. It is
179
+ * macOS-only by design; other platforms report `unsupported` rather than guess
180
+ * at a keyring backend nobody has verified.
181
+ *
169
182
  * ★Adding a provider here without adding its fetcher to REFRESHERS re-creates
170
183
  * exactly the "switch that does nothing" this constant prevents.
171
184
  */
172
185
  export const QUOTA_SUPPORTED_PROVIDERS: readonly string[] = [
186
+ 'antigravity-cli',
173
187
  'claude-cli',
174
188
  'codex-cli',
189
+ 'grok-cli',
175
190
  'kimi',
176
191
  'opencode',
177
192
  ]