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.",