import { trimIdent } from '@/utils/trimIdent'; import { DISPLAY_TOOLS_PROMPT_HAPI_MCP } from './displayImagePrompt'; /** Shell fallback for `hapi doctor inline-media` only — not injected into agent prompts. */ export const INLINE_MEDIA_SHELL_FALLBACK = trimIdent(` If display_image / display_video / display_media tools are not in your tool list, inline media via shell from the HAPI repo (needs bun + @modelcontextprotocol/sdk): cd && bun scripts/tooling/hapi-display-image.mjs "title" Use the HAPI session uuid prefix from the web URL /sessions/ (first 8 chars), not cursorSessionId or other agent-native ids. Run hapi doctor inline-media to list active bridges and copy the exact command. `); /** * Title + display_image / display_video / display_media instructions for OpenCode first-prompt / * hapi-instructions.md. Cursor uses native MCP overlay + tool descriptions instead * (no user-turn prepend — that path was prompt-taint). */ const HAPI_MCP_TITLE_INSTRUCTION = trimIdent(` Use the title tool sparingly. For a new chat, call the tool "hapi_change_title" once after the user's initial request is clear, and set a concise task title. Do not rename the chat for routine progress, substeps, implementation details, or a slightly better wording. Rename only when the user's primary objective changes substantially and the existing title would be misleading. `); export const HAPI_MCP_BRIDGE_PROMPT = trimIdent(` ${HAPI_MCP_TITLE_INSTRUCTION} ${DISPLAY_TOOLS_PROMPT_HAPI_MCP} `);