/** * GetMachineGuide tool — trả về markdown guide tối giản cho AI agent. * * Dispatch flow: * AI Agent → GET /cli/devices/:integrationId/agent-context * → BE execCliTool(GetMachineGuide) * → CLI compute live (re-detect capabilities, re-scan skills) * → return { guide } * * Response shape **chỉ có 1 field `guide`** — agent đọc text trực tiếp. * Không trả structured `data` riêng vì: * - Duplicate với info trong guide markdown. * - Agent đã parse được path từ table markdown. * - Tiết kiệm tokens. * * Guide **chỉ chứa machine-specific data**: * - Identity (hostname, platform version, arch, shell) * - Absolute paths (skills/sandbox/cwd) * - Capabilities (capability list, MCP servers detect được) * - Sandbox usage (chỉ thị bắt buộc dùng sandbox cho test files) * - Forbidden paths (secrets không được đọc) * * KHÔNG chứa general knowledge (Windows shell syntax, etc.) — agent đã có skill * riêng cho cmd/bash/powershell ở RedAI workspace. */ export interface MachineGuideResult { guide: string; } export declare function machineGuideTool(): Promise; /** * Render guide khi máy offline — chỉ dựa vào DB info (truyền vào từ BE). * Đặt ở module này để keep template format consistent với online case. */ export declare function renderOfflineGuide(args: { hostname: string; platform: string; displayName: string | null; lastSeenAt: number | null; cliVersion: string; status: string; }): string;