fix: add serveBaseUrl to compactEmbeddedPiSession params

This commit is contained in:
Elie Habib
2026-01-07 06:00:21 +00:00
committed by Peter Steinberger
parent 1a47aec6e4
commit f85807a2a6
35 changed files with 3427 additions and 1 deletions

View File

@@ -758,6 +758,7 @@ export async function compactEmbeddedPiSession(params: {
enqueue?: typeof enqueueCommand;
extraSystemPrompt?: string;
ownerNumbers?: string[];
serveBaseUrl?: string;
}): Promise<EmbeddedPiCompactResult> {
const sessionLane = resolveSessionLane(
params.sessionKey?.trim() || params.sessionId,

View File

@@ -508,6 +508,7 @@ export function createClawdbotCodingTools(options?: {
sessionKey?: string;
agentDir?: string;
config?: ClawdbotConfig;
serveBaseUrl?: string;
}): AnyAgentTool[] {
const bashToolName = "bash";
const sandbox = options?.sandbox?.enabled ? options.sandbox : undefined;

View File

@@ -57,7 +57,7 @@ export function createServeTool(opts?: { baseUrl?: string }): AnyAgentTool {
const baseUrl = await resolveServeBaseUrl(opts?.baseUrl);
const result = serveCreate(
{ path: filePath, slug, title, description, ttl, ogImage },
{ path: filePath, slug: slug || "file", title: title || "", description: description || "", ttl, ogImage },
baseUrl,
);
return jsonResult(result);