/** * Authoritative workspace-identity block for the model-visible system prompt. * * Cursor RequestContext already carries workspacePaths / mcpInstructions, but * those are protobuf side-channels. Models still invent absolute paths under * other users/machines when the OpenCode `` Working-directory line is * missing, stale, or ignored. This block is baked into the outbound system * prompt from the plugin's resolved workspace directory so the model always * sees a single authoritative cwd in the same text channel as the rest of the * system prompt. * * Appended AFTER caveman compression (paths are protected spans, but the * instructional prose must stay verbatim). Idempotent: re-applying with the * same path is a no-op; a stale block is replaced. */ export declare const WORKSPACE_IDENTITY_OPEN = ""; export declare const WORKSPACE_IDENTITY_CLOSE = ""; export interface WorkspaceIdentityArgs { workspacePath: string; worktreePath?: string; } /** Build the verbatim identity block for a resolved workspace. */ export declare function buildWorkspaceIdentityBlock(args: WorkspaceIdentityArgs): string; /** * Ensure `systemPrompt` carries an authoritative workspace-identity block. * Empty/missing workspacePath leaves the prompt unchanged. */ export declare function withWorkspaceIdentity(systemPrompt: string, args: WorkspaceIdentityArgs): string;