@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.d.mts
CHANGED
|
@@ -2222,6 +2222,12 @@ declare const USER_EVENTS: {
|
|
|
2222
2222
|
* posts to /api/packs/events; mobile's pack.store renders the pipeline.
|
|
2223
2223
|
* Mirrored in repo A's app-shared events.ts. */
|
|
2224
2224
|
readonly PACK_STATE: "pack_state";
|
|
2225
|
+
/** The prepaid credit balance moved by something the client could not have
|
|
2226
|
+
* predicted — a purchase landing, a refund, a grant. Carries the new
|
|
2227
|
+
* balance, so nothing has to be fetched to render it. ⚠️ NOT published on
|
|
2228
|
+
* debits: those are one per agent hop, and the client already walks its
|
|
2229
|
+
* own balance down as metered usage streams in. */
|
|
2230
|
+
readonly CREDITS_CHANGED: "credits_changed";
|
|
2225
2231
|
};
|
|
2226
2232
|
type UserEventName = (typeof USER_EVENTS)[keyof typeof USER_EVENTS];
|
|
2227
2233
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2222,6 +2222,12 @@ declare const USER_EVENTS: {
|
|
|
2222
2222
|
* posts to /api/packs/events; mobile's pack.store renders the pipeline.
|
|
2223
2223
|
* Mirrored in repo A's app-shared events.ts. */
|
|
2224
2224
|
readonly PACK_STATE: "pack_state";
|
|
2225
|
+
/** The prepaid credit balance moved by something the client could not have
|
|
2226
|
+
* predicted — a purchase landing, a refund, a grant. Carries the new
|
|
2227
|
+
* balance, so nothing has to be fetched to render it. ⚠️ NOT published on
|
|
2228
|
+
* debits: those are one per agent hop, and the client already walks its
|
|
2229
|
+
* own balance down as metered usage streams in. */
|
|
2230
|
+
readonly CREDITS_CHANGED: "credits_changed";
|
|
2225
2231
|
};
|
|
2226
2232
|
type UserEventName = (typeof USER_EVENTS)[keyof typeof USER_EVENTS];
|
|
2227
2233
|
|
package/dist/index.js
CHANGED
|
@@ -448,12 +448,34 @@ var AGENT_REGISTRY = {
|
|
|
448
448
|
displayName: "Gemini CLI",
|
|
449
449
|
binaryName: "gemini",
|
|
450
450
|
enabled: true,
|
|
451
|
-
//
|
|
452
|
-
//
|
|
453
|
-
//
|
|
454
|
-
//
|
|
455
|
-
|
|
456
|
-
|
|
451
|
+
// ⚠️ API KEY ONLY since 2026-06-18, when Google stopped Gemini CLI (and the
|
|
452
|
+
// Gemini Code Assist IDE extensions) serving requests for AI Pro, AI Ultra
|
|
453
|
+
// and free users, in the move to Antigravity CLI. Its announcement is
|
|
454
|
+
// explicit about what survives: "Gemini CLI will remain accessible via paid
|
|
455
|
+
// Gemini and Gemini Enterprise Agent Platform API keys."
|
|
456
|
+
//
|
|
457
|
+
// So the agent stays — `@google/gemini-cli` is NOT deprecated, it still
|
|
458
|
+
// ships weekly — but the OAuth door has to go: it captures a
|
|
459
|
+
// `~/.gemini/oauth_creds.json` from a CONSUMER Google account, which is
|
|
460
|
+
// exactly the tier that no longer serves requests. We used to PREFER that
|
|
461
|
+
// path, so it was the one we recommended first; on 2026-09-15 prod held 63
|
|
462
|
+
// Gemini links, 46 of them OAuth, 19 created after 2026-09-01 and the
|
|
463
|
+
// newest that same day. Three months of sending people through a bricked
|
|
464
|
+
// door — each one landing on `isGeminiIneligibleTier` at first use.
|
|
465
|
+
//
|
|
466
|
+
// ⚠️ Antigravity CLI is NOT a drop-in replacement for us: no official ACP
|
|
467
|
+
// mode (google-antigravity/antigravity-cli#31 open, 192 comments, zero
|
|
468
|
+
// `acp` hits in the repo as of 2026-09-15), and every third-party ACP
|
|
469
|
+
// adapter warns that driving `agy` that way matches what Google's FAQ calls
|
|
470
|
+
// a ToS violation — risking the USER's Google account. Our whole Gemini
|
|
471
|
+
// path is ACP, so adopting it would mean shipping that risk. Revisit only
|
|
472
|
+
// when #31 ships an official mode.
|
|
473
|
+
//
|
|
474
|
+
// Existing OAuth rows are NOT migrated: `supportedAuthMethods` gates the
|
|
475
|
+
// LINK call only, so the 46 stay readable and simply keep failing at the
|
|
476
|
+
// provider, where the ineligible-tier message already explains why.
|
|
477
|
+
supportedAuthKinds: ["api_key"],
|
|
478
|
+
preferredAuthKind: "api_key",
|
|
457
479
|
// Not listed by `headroom wrap --help` — runs native.
|
|
458
480
|
headroomWrappable: false,
|
|
459
481
|
// Native ACP server: `gemini --skip-trust --acp`.
|
|
@@ -1711,6 +1733,16 @@ var INTEGRATION_REGISTRY = {
|
|
|
1711
1733
|
// tools ourselves via a BUILT-IN MCP (delivery.builtin) against that admin
|
|
1712
1734
|
// API — see apps/cli/src/integrations/convex-admin-mcp.ts. The user still
|
|
1713
1735
|
// pastes a deploy key (Dashboard → Project Settings → Deploy Keys).
|
|
1736
|
+
//
|
|
1737
|
+
// ⚠️ That built-in ALSO owns `deploy`, and it is the only way an agent can
|
|
1738
|
+
// push `convex/` changes. Deploying is bundle + push, not a REST call, so
|
|
1739
|
+
// that one tool drives Convex's own CLI with the deploy key injected into
|
|
1740
|
+
// THAT CHILD's env — the agent's shell never sees the credential. Before
|
|
1741
|
+
// it existed the agent had the credential's power through the MCP but no
|
|
1742
|
+
// way to deploy, so it looped on `npx convex dev` (interactive login) and
|
|
1743
|
+
// asked the user to paste the token into the chat; the user ended up
|
|
1744
|
+
// re-entering the SAME key by hand in Environment Variables, after burning
|
|
1745
|
+
// real credits (2026-09-15).
|
|
1714
1746
|
enabled: true,
|
|
1715
1747
|
auth: {
|
|
1716
1748
|
kind: "api_key",
|
|
@@ -3042,7 +3074,13 @@ var USER_EVENTS = {
|
|
|
3042
3074
|
* pipeline transition (stage start/done, pause, stall, completion). CLI
|
|
3043
3075
|
* posts to /api/packs/events; mobile's pack.store renders the pipeline.
|
|
3044
3076
|
* Mirrored in repo A's app-shared events.ts. */
|
|
3045
|
-
PACK_STATE: "pack_state"
|
|
3077
|
+
PACK_STATE: "pack_state",
|
|
3078
|
+
/** The prepaid credit balance moved by something the client could not have
|
|
3079
|
+
* predicted — a purchase landing, a refund, a grant. Carries the new
|
|
3080
|
+
* balance, so nothing has to be fetched to render it. ⚠️ NOT published on
|
|
3081
|
+
* debits: those are one per agent hop, and the client already walks its
|
|
3082
|
+
* own balance down as metered usage streams in. */
|
|
3083
|
+
CREDITS_CHANGED: "credits_changed"
|
|
3046
3084
|
};
|
|
3047
3085
|
|
|
3048
3086
|
// src/preview-prompts.ts
|