@codeam/shared 2.75.1 → 2.75.3
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.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +45 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +45 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -322,12 +322,34 @@ var AGENT_REGISTRY = {
|
|
|
322
322
|
displayName: "Gemini CLI",
|
|
323
323
|
binaryName: "gemini",
|
|
324
324
|
enabled: true,
|
|
325
|
-
//
|
|
326
|
-
//
|
|
327
|
-
//
|
|
328
|
-
//
|
|
329
|
-
|
|
330
|
-
|
|
325
|
+
// ⚠️ API KEY ONLY since 2026-06-18, when Google stopped Gemini CLI (and the
|
|
326
|
+
// Gemini Code Assist IDE extensions) serving requests for AI Pro, AI Ultra
|
|
327
|
+
// and free users, in the move to Antigravity CLI. Its announcement is
|
|
328
|
+
// explicit about what survives: "Gemini CLI will remain accessible via paid
|
|
329
|
+
// Gemini and Gemini Enterprise Agent Platform API keys."
|
|
330
|
+
//
|
|
331
|
+
// So the agent stays — `@google/gemini-cli` is NOT deprecated, it still
|
|
332
|
+
// ships weekly — but the OAuth door has to go: it captures a
|
|
333
|
+
// `~/.gemini/oauth_creds.json` from a CONSUMER Google account, which is
|
|
334
|
+
// exactly the tier that no longer serves requests. We used to PREFER that
|
|
335
|
+
// path, so it was the one we recommended first; on 2026-09-15 prod held 63
|
|
336
|
+
// Gemini links, 46 of them OAuth, 19 created after 2026-09-01 and the
|
|
337
|
+
// newest that same day. Three months of sending people through a bricked
|
|
338
|
+
// door — each one landing on `isGeminiIneligibleTier` at first use.
|
|
339
|
+
//
|
|
340
|
+
// ⚠️ Antigravity CLI is NOT a drop-in replacement for us: no official ACP
|
|
341
|
+
// mode (google-antigravity/antigravity-cli#31 open, 192 comments, zero
|
|
342
|
+
// `acp` hits in the repo as of 2026-09-15), and every third-party ACP
|
|
343
|
+
// adapter warns that driving `agy` that way matches what Google's FAQ calls
|
|
344
|
+
// a ToS violation — risking the USER's Google account. Our whole Gemini
|
|
345
|
+
// path is ACP, so adopting it would mean shipping that risk. Revisit only
|
|
346
|
+
// when #31 ships an official mode.
|
|
347
|
+
//
|
|
348
|
+
// Existing OAuth rows are NOT migrated: `supportedAuthMethods` gates the
|
|
349
|
+
// LINK call only, so the 46 stay readable and simply keep failing at the
|
|
350
|
+
// provider, where the ineligible-tier message already explains why.
|
|
351
|
+
supportedAuthKinds: ["api_key"],
|
|
352
|
+
preferredAuthKind: "api_key",
|
|
331
353
|
// Not listed by `headroom wrap --help` — runs native.
|
|
332
354
|
headroomWrappable: false,
|
|
333
355
|
// Native ACP server: `gemini --skip-trust --acp`.
|
|
@@ -1585,6 +1607,16 @@ var INTEGRATION_REGISTRY = {
|
|
|
1585
1607
|
// tools ourselves via a BUILT-IN MCP (delivery.builtin) against that admin
|
|
1586
1608
|
// API — see apps/cli/src/integrations/convex-admin-mcp.ts. The user still
|
|
1587
1609
|
// pastes a deploy key (Dashboard → Project Settings → Deploy Keys).
|
|
1610
|
+
//
|
|
1611
|
+
// ⚠️ That built-in ALSO owns `deploy`, and it is the only way an agent can
|
|
1612
|
+
// push `convex/` changes. Deploying is bundle + push, not a REST call, so
|
|
1613
|
+
// that one tool drives Convex's own CLI with the deploy key injected into
|
|
1614
|
+
// THAT CHILD's env — the agent's shell never sees the credential. Before
|
|
1615
|
+
// it existed the agent had the credential's power through the MCP but no
|
|
1616
|
+
// way to deploy, so it looped on `npx convex dev` (interactive login) and
|
|
1617
|
+
// asked the user to paste the token into the chat; the user ended up
|
|
1618
|
+
// re-entering the SAME key by hand in Environment Variables, after burning
|
|
1619
|
+
// real credits (2026-09-15).
|
|
1588
1620
|
enabled: true,
|
|
1589
1621
|
auth: {
|
|
1590
1622
|
kind: "api_key",
|
|
@@ -2916,7 +2948,13 @@ var USER_EVENTS = {
|
|
|
2916
2948
|
* pipeline transition (stage start/done, pause, stall, completion). CLI
|
|
2917
2949
|
* posts to /api/packs/events; mobile's pack.store renders the pipeline.
|
|
2918
2950
|
* Mirrored in repo A's app-shared events.ts. */
|
|
2919
|
-
PACK_STATE: "pack_state"
|
|
2951
|
+
PACK_STATE: "pack_state",
|
|
2952
|
+
/** The prepaid credit balance moved by something the client could not have
|
|
2953
|
+
* predicted — a purchase landing, a refund, a grant. Carries the new
|
|
2954
|
+
* balance, so nothing has to be fetched to render it. ⚠️ NOT published on
|
|
2955
|
+
* debits: those are one per agent hop, and the client already walks its
|
|
2956
|
+
* own balance down as metered usage streams in. */
|
|
2957
|
+
CREDITS_CHANGED: "credits_changed"
|
|
2920
2958
|
};
|
|
2921
2959
|
|
|
2922
2960
|
// src/preview-prompts.ts
|