From c76c3f373e82bde7c0bb31c0abb7adcbbface8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 9 Jul 2026 00:04:34 +0200 Subject: [PATCH] chore(documents): drop unused import + prettier the openapi table --- src/lib/documents/provider-order.ts | 1 - src/lib/openapi/routes/documents.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/documents/provider-order.ts b/src/lib/documents/provider-order.ts index 1637c87e3..e27678d50 100644 --- a/src/lib/documents/provider-order.ts +++ b/src/lib/documents/provider-order.ts @@ -24,7 +24,6 @@ * keeps codex from being the silent default, the consent gate keeps any * external egress from happening without an active receipt. */ -import type { ProviderChainResolved } from "@/lib/ai/provider-runner"; import { isExternalDocumentEgress } from "@/lib/ai/consent-guard"; import { resolveTextProvider, diff --git a/src/lib/openapi/routes/documents.ts b/src/lib/openapi/routes/documents.ts index 9e9eb125e..d5255953a 100644 --- a/src/lib/openapi/routes/documents.ts +++ b/src/lib/openapi/routes/documents.ts @@ -336,7 +336,7 @@ export const inboundDocumentPaths: NonNullable = { tags: ["Documents"], summary: "Probe document-AI availability + egress", description: - "Cheap probe (no provider call) the vault uses to decide the AI transport and whether to warn before a read leaves the machine. Resolved over the DOCUMENT provider order (local-first, ChatGPT-subscription OAuth last), so `mode` / `pdfSupported` / `egress` match exactly what the document AI routes do. `egress` is vendor-blind: `\"local\"` (a self-hosted model — the document never leaves the operator's machine) or `\"external\"` (a third-party AI service). The vault shows a per-egress notice before any external document read; sending a document to any external provider also requires an active AI-consent receipt.", + 'Cheap probe (no provider call) the vault uses to decide the AI transport and whether to warn before a read leaves the machine. Resolved over the DOCUMENT provider order (local-first, ChatGPT-subscription OAuth last), so `mode` / `pdfSupported` / `egress` match exactly what the document AI routes do. `egress` is vendor-blind: `"local"` (a self-hosted model — the document never leaves the operator\'s machine) or `"external"` (a third-party AI service). The vault shows a per-egress notice before any external document read; sending a document to any external provider also requires an active AI-consent receipt.', responses: { "200": { description: "Document-AI capability flags + egress class.",