fix: add serveBaseUrl to compactEmbeddedPiSession params
This commit is contained in:
committed by
Peter Steinberger
parent
1a47aec6e4
commit
f85807a2a6
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user