Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: record Google OAuth dependency consolidation

[._.]/ Adam Eivyb93086e7179f
diff --git a/docs/DEPS.md b/docs/DEPS.md
index de9123330a..13dfe5fca5 100644
--- a/docs/DEPS.md
+++ b/docs/DEPS.md
@@ -4,8 +4,8 @@ Living reference of every third-party dependency in PortOS, why it's kept, and w
That "every dependency" claim is enforced by `docs/deps-doc.test.js` (run by `cd server && npm test`): adding a dependency to any workspace manifest without a row here fails the suite, and a Quick Reference row naming a package no manifest declares fails too unless its verdict records the removal (`REMOVED` / `REPLACED`).
-**Last audited:** 2026-09-11 (scoped: drop `@scalar/api-reference-react`, issue #7012); prior 2026-09-02 (scoped: `pdf-lib` → `@cantoo/pdf-lib`, issue #5672; parity sweep that added the missing `playwright-core` row and put this document under test — `docs/deps-doc.test.js`, issue #5708); prior 2026-08-04 (scoped audit of the `keyv`/`cacheable` supply-chain compromise); prior follow-up 2026-07-14 (issue #2547), prior full audit 2026-04-28 (default mode), tables corrected 2026-07-01 during a docs audit.
-**Verdict:** All remaining dependencies justified. The 2026-09-11 follow-up removed `@scalar/api-reference-react` (issue #7012) — the heaviest client dependency, ~half the lockfile and 3.24 MB of dist assets, including Vue 3 and the Vercel AI SDK advisory GHSA-866g-f22w-33x8. The REST Reference tab now lists OpenAPI operations natively. The 2026-08-04 audit replaced the entire `eslint` stack with `@biomejs/biome`, dropping 110 net client packages including the `file-entry-cache → flat-cache → keyv` chain named in the August 2026 Shai-Hulud npm compromise (PortOS held safe versions throughout — see the detailed finding below). The same pass closed a latent hole where `ignore-scripts=true` was only active for repo-root installs, not for any workspace install or CI. Since the last full audit: `sax` was removed (replaced with an owned parser, issue #1824), `portos-ai-toolkit` was vendored in-tree (`server/lib/aiToolkit/`), and monolithic `googleapis` was replaced with scoped `@googleapis/*` packages. The 2026-07-14 follow-up bumped `kokoro-js` to its latest patch `1.2.1` (still on maintenance watch — no publish since 2025-05) and aligned the dual `pm2` pins (root + server both `7.0.4`). The 2026-09-02 follow-up replaced abandoned `pdf-lib` (no publish since 2022-05) with the maintained MIT fork `@cantoo/[email protected]` — a same-public-API swap across the four export paths, done while `npm audit` was still clean rather than under advisory pressure.
+**Last audited:** 2026-09-12 (scoped: remove the redundant direct `google-auth-library`, issue #7013); prior 2026-09-11 (scoped: drop `@scalar/api-reference-react`, issue #7012); prior 2026-09-02 (scoped: `pdf-lib` → `@cantoo/pdf-lib`, issue #5672; parity sweep that added the missing `playwright-core` row and put this document under test — `docs/deps-doc.test.js`, issue #5708); prior 2026-08-04 (scoped audit of the `keyv`/`cacheable` supply-chain compromise); prior follow-up 2026-07-14 (issue #2547), prior full audit 2026-04-28 (default mode), tables corrected 2026-07-01 during a docs audit.
+**Verdict:** All remaining dependencies justified. The 2026-09-12 follow-up removed the direct `[email protected]` pin (issue #7013); Google OAuth now uses the copy already pulled transitively by the scoped Calendar SDK, so this is a manifest/lockfile cleanup rather than a reduction of the transitive tree. The 2026-09-11 follow-up removed `@scalar/api-reference-react` (issue #7012) — the heaviest client dependency, ~half the lockfile and 3.24 MB of dist assets, including Vue 3 and the Vercel AI SDK advisory GHSA-866g-f22w-33x8. The REST Reference tab now lists OpenAPI operations natively. The 2026-08-04 audit replaced the entire `eslint` stack with `@biomejs/biome`, dropping 110 net client packages including the `file-entry-cache → flat-cache → keyv` chain named in the August 2026 Shai-Hulud npm compromise (PortOS held safe versions throughout — see the detailed finding below). The same pass closed a latent hole where `ignore-scripts=true` was only active for repo-root installs, not for any workspace install or CI. Since the last full audit: `sax` was removed (replaced with an owned parser, issue #1824), `portos-ai-toolkit` was vendored in-tree (`server/lib/aiToolkit/`), and monolithic `googleapis` was replaced with scoped `@googleapis/*` packages. The 2026-07-14 follow-up bumped `kokoro-js` to its latest patch `1.2.1` (still on maintenance watch — no publish since 2025-05) and aligned the dual `pm2` pins (root + server both `7.0.4`). The 2026-09-02 follow-up replaced abandoned `pdf-lib` (no publish since 2022-05) with the maintained MIT fork `@cantoo/[email protected]` — a same-public-API swap across the four export paths, done while `npm audit` was still clean rather than under advisory pressure.
## Audit Methodology
@@ -118,6 +118,13 @@ Before removing a Tier 3 candidate, run a transitive-dep check (`npm ls <pkg>`).
- **Upgrade**: migration 376 switches saved Kokoro settings to Piper, preserving the old settings and any customized Piper voice. Reads and saves also normalize restored legacy settings. Settings → Voice explains the change; choose a voice and use **Save & Reconcile** to install the binary/model. No models download during migration.
- **Character profiles**: historical Kokoro profiles and audio remain intact. Synthesis reports an actionable retirement error; select/promote a Piper preset to replace the binding rather than silently changing a character's voice.
+### `google-auth-library` — REMOVED (direct) 2026-09-12 (issue #7013)
+
+- **Usage (was)**: `server/services/googleAuth.js` imported `OAuth2Client` directly for the shared Calendar/Messages OAuth flow.
+- **Resolution**: the service now uses `auth.OAuth2` from the existing `@googleapis/calendar` SDK. That export is the same `OAuth2Client` class supplied through `googleapis-common`, so authorization URLs, token exchange, credentials, and refresh-token persistence keep the existing behavior.
+- **Transitive cost**: the lockfile retains `[email protected]` under `googleapis-common` (shared by the Calendar and Gmail SDKs) and removes the direct `11.0.2` copy plus its exclusive nested dependencies. This removes a redundant direct pin, not the transitive package itself.
+- **Regression cover**: `docs/deps-doc.test.js` and the Calendar route/account/sync suites pass; a direct module-load smoke check confirms that `auth.OAuth2` is constructible.
+
### `eslint` (and the `keyv` / `flat-cache` / `file-entry-cache` chain) — REMOVED 2026-08-04