/** * QwenPaw AI chat — shared constants (server routes + client store). * * The browser never supplies agent credentials: the server invokes the * `exchange_ai_credential` pack action with the user's CMS session and * stashes the verified connection in temporary httpOnly cookies. * Agents are reached POD-TO-POD (`http://..svc:8088`) with * web-auth DISABLED — no Authorization header is sent upstream. */ /** httpOnly cookie carrying the exchanged session's base URL (TTL-bound). * The agent id is NOT stored — it is always the ops constant. */ export declare const QWENPAW_COOKIE_BASE_URL = "qwenpaw_base_url"; /** All connection cookies — cleared together on session reset. */ export declare const QWENPAW_SESSION_COOKIES: readonly ["qwenpaw_base_url"]; /** Mirror of the exchange action's SESSION_TTL_SECONDS (600s). */ export declare const QWENPAW_COOKIE_MAX_AGE = 600; /** Server-side runtimeConfig namespace: `runtimeConfig.qwenpaw.*`. */ export declare const QWENPAW_RUNTIME_CONFIG_KEY = "qwenpaw"; /** The agent id — ALWAYS this constant. The exchange only proves which * agent instance serves the user (its base URL); the console surface is * addressed by the shared default agent id, never a per-user name. */ export declare const QWENPAW_DEFAULT_AGENT_ID = "default"; /** Channel used for application-driven chats. */ export declare const QWENPAW_CHANNEL = "console"; /** Request limits enforced by the chat route. */ export declare const QWENPAW_MAX_MESSAGE_LENGTH = 32000; export declare const QWENPAW_MAX_SESSION_ID_LENGTH = 200; export declare const QWENPAW_MAX_FILES = 5; export declare const QWENPAW_MAX_FILE_NAME_LENGTH = 255; /** Upload ceiling — matches a generous document size. */ export declare const QWENPAW_MAX_UPLOAD_BYTES: number; /** Wall-clock budgets (ms) for upstream establishment. */ export declare const QWENPAW_CHAT_TIMEOUT_MS = 30000; export declare const QWENPAW_STOP_TIMEOUT_MS = 10000; export declare const QWENPAW_UPLOAD_TIMEOUT_MS = 30000; export declare const QWENPAW_EXCHANGE_TIMEOUT_MS = 30000; export declare const QWENPAW_LIST_TIMEOUT_MS = 15000; /** QwenPaw conversation history cap — the most recent context matters. */ export declare const QWENPAW_MAX_HISTORY_TURNS = 200; /** Pack action that exchanges the user's CMS session for an AI session. */ export declare const QWENPAW_EXCHANGE_ACTION_PATH = "/api/v1/content/types/gov.agent/actions/exchange_ai_credential"; /** Codes the UI renders as "ask an admin" (403) vs "retry" (423). */ export declare const QWENPAW_CONFIGURATION_ERROR_CODES: ReadonlySet; /** Nuxt-module server routes (registered via addServerHandler). */ export declare const QWENPAW_API_BASE = "/api/cms/ai/qwenpaw"; //# sourceMappingURL=qwenpaw.constant.d.ts.map