chore(deps): clean up deprecation warnings on global install#1111
chore(deps): clean up deprecation warnings on global install#1111mistercrunch wants to merge 2 commits into
Conversation
Bumps `@google/gemini-cli-core` from `^0.31.0` to `^0.41.2` and migrates
the executor's Gemini Scheduler call site to the new `AgentLoopContext`
API (`Scheduler({ context, ... })` replacing `Scheduler({ config, ... })`).
The context is built from `config.getToolRegistry/PromptRegistry/
ResourceRegistry/GeminiClient` and `config.sandboxManager`.
Also adds three pnpm overrides:
- `keytar -> npm:@github/keytar@^7.10.6` — drops the unmaintained
`prebuild-install` chain from the monorepo dev install.
- `uuid@<10 -> ^11.1.0` — collapses uuid@8/9 to uuid@11 in dev install.
- `@google/gemini-cli-core>zod -> ^3.25.76` — carve-out so cli-core
keeps its required zod@3 instead of being coerced by the global
`zod: ^4.3.6` override (cli-core's source uses `z.nativeEnum(...)`
shapes that throw under zod@4 at module load).
End-user `npm i -g agor-live` deprecation count: 8 → 7. The remaining
seven (`node-domexception`, `uuid@8.3.2`, `uuid@9.0.1` ×5) all funnel
through `@google-cloud/logging@11.2.1`, which cli-core 0.41 still pins
directly and which itself depends on `google-auth-library@^9` /
`google-gax@^4` / `eventid@^2` (latest of each still uses the deprecated
deps). cli-core's `0.42.0-preview.2` ships the same Google deps, so the
fix has to come from upstream `@google-cloud/logging` bumping to
`google-auth-library@10` + `google-gax@5`. We don't import
`@google-cloud/logging` ourselves; cli-core only loads it from
`telemetry/gcp-exporters.js` for GCP telemetry export, a path agor-live
never enables.
Verification:
- `pnpm typecheck` — 9/9 pass
- `pnpm test` (executor) — 22 files / 341 tests pass
- `pnpm build` — 7/7 pass
- `npm i -g <packed tarball>` in scratch dir — 7 warnings (down from 8)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… converter Address PR #1111 review feedback on the cli-core 0.41 migration: - `Config` already implements `AgentLoopContext`; the hand-rolled context literal plus a per-turn `MessageBus`/`PolicyEngine` created drift between the scheduler and the SDK's canonical bus. Pass `context: config` directly — `setApprovalMode` is already called on cache reuse, so the config-bound policy engine and message bus carry the right approval mode. - Extract the completed-call → Gemini `functionResponse` `Part[]` conversion into `tool-result-converter.ts` so the migrated scheduler path has a unit-testable seam. Adds 8 regression tests covering pass-through, empty/missing response parts, status=error fallback, and batch ordering. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Addressed Codex review feedback in 3ce20e3: Blocker — Replaced the hand-rolled Should-fix — Extracted the completed-call → Gemini Test counts: executor |
Summary
Bumps
@google/gemini-cli-core^0.31.0 → ^0.41.2and adds three targetedpnpm.overridesto clean up deprecation warnings users see onnpm i -g agor-live.End-user
npm i -g agor-livedeprecation count: 8 → 7. The drop is modest because all seven remaining warnings funnel through@google-cloud/logging@11.2.1(a transitive dep of cli-core), which itself still depends ongoogle-auth-library@^9/google-gax@^4/eventid@^2— and the latest releases of all of those still pull the deprecated deps. cli-core's0.42.0-preview.2has the same Google deps, so the fix has to come from upstream. We don't actually import@google-cloud/logging— cli-core only loads it fromtelemetry/gcp-exporters.jsfor GCP telemetry export, a code path agor-live never enables.Changes
packages/core/package.json:@google/gemini-cli-core^0.31.0 → ^0.41.2(synced intopackages/agor-live/package.jsonviasync:agor-live-deps).packages/executor/src/sdk-handlers/gemini/prompt-service.ts: cli-core 0.41 changedSchedulerto takecontext: AgentLoopContextinstead ofconfig. The new context is assembled fromconfig.getToolRegistry/getPromptRegistry/getResourceRegistry/getGeminiClient()andconfig.sandboxManager.package.jsonpnpm.overrides(additions):"keytar": "npm:@github/keytar@^7.10.6"— drops the unmaintainedprebuild-installchain from monorepo dev install."uuid@<10": "^11.1.0"— collapses uuid@8/9 → uuid@11 in dev install."@google/gemini-cli-core>zod": "^3.25.76"— carve-out so cli-core keeps its required zod@3; the globalzod: ^4.3.6override otherwise coerces it and breaks executor tests at module load (cli-core's source usesz.nativeEnum(...)shapes that throw under zod@4).Before / After
Before (cli-core 0.31, on
npm i -g <tarball>):After (this PR):
Per-warning resolution
prebuild-install@7.1.3keytarchain in cli-core 0.31 — gone in 0.41uuid@9.0.1(one occurrence)node-domexception@1.0.0@google-cloud/logging@11.x→gaxios → node-fetch@3 → fetch-blobuuid@8.3.2@google-cloud/logging@11.x→eventid@2.0.1(latest still uses uuid@^8)uuid@9.0.1(×5)@google-cloud/logging@11.x→google-auth-library@9,google-gax@4,gaxios@6,teeny-request@9,googleapis-common@7The blocked warnings will clear once
@google-cloud/loggingupgrades togoogle-auth-library@10+google-gax@5upstream, and cli-core picks up the new release.Test plan
pnpm install— clean (onlynode-domexceptionwarning in monorepo dev install)pnpm typecheck— 9/9 passpnpm lint— clean (8 pre-existing warnings on files we didn't touch)pnpm testfor@agor/executor— 22 files / 341 tests passpnpm build— 7/7 passpnpm packagor-live +npm i -g <tarball>in scratch dir — 7 warnings (down from 8)🤖 Generated with Claude Code