chore(documents): drop unused import + prettier the openapi table

This commit is contained in:
Marc-André Bombeck committed 2026-07-09 00:04:34 +02:00
1 parent c825d4b501
commit c76c3f373e
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -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,
+1 -1
View File
@@ -336,7 +336,7 @@ export const inboundDocumentPaths: NonNullable<ZodOpenApiObject["paths"]> = {
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.",