/** * 将 IM 下发的 agentContext 渲染为 GroupSystemPrompt 追加段。 */ import type { Log } from "./auth.js"; import { type RobotMentionAgentContext } from "./agent-context-types.js"; import { type LocalRootSpec } from "./project-path-normalize.js"; import type { XgImConfig } from "./types.js"; export declare function resolvePromptMaxChars(config: XgImConfig): number; export interface AgentContextPromptInput { agentContext: RobotMentionAgentContext; config: XgImConfig; workspaceHostRoot?: string; log?: Log; } export interface AgentContextPromptResult { block: string; sandboxProjectPath?: string; } /** Agent 沙箱内可见的项目目录路径(供 Prompt / 工具使用) */ export declare function resolveSandboxProjectPath(localRoot: LocalRootSpec, config: XgImConfig): { sandboxPath: string; workspaceRelativeSegment?: string; hostNote?: string; pathMode: "prefixed" | "relative" | "host"; }; export interface UserContextPromptInput { senderId?: string; senderName?: string; senderBackground?: string; config: XgImConfig; } /** * 渲染当前发送者块(`userInfo.background` 由 IM 服务端拼接,写入 GroupSystemPrompt)。 */ export declare function buildUserContextPromptBlock(input: UserContextPromptInput): string | undefined; /** * 渲染项目工作区、目录用途、操作约束与可选项目背景(不含用户个人 background)。 */ export declare function buildAgentContextPromptBlock(input: AgentContextPromptInput): AgentContextPromptResult; //# sourceMappingURL=build-project-prompt.d.ts.map