goose2 session working dir (#8624)

This commit is contained in:
Lifei Zhou
2026-04-18 04:50:37 +10:00
committed by GitHub
parent d52cde3fb9
commit 2533765359
24 changed files with 448 additions and 257 deletions
+1 -2
View File
@@ -21,7 +21,6 @@ export interface AcpSendMessageOptions {
}
export interface AcpPrepareSessionOptions {
workingDir?: string;
personaId?: string;
}
@@ -67,9 +66,9 @@ export async function acpSendMessage(
export async function acpPrepareSession(
sessionId: string,
providerId: string,
workingDir: string,
options: AcpPrepareSessionOptions = {},
): Promise<void> {
const workingDir = options.workingDir ?? "~/.goose/artifacts";
await sessionTracker.prepareSession(
sessionId,
providerId,
+1
View File
@@ -1,3 +1,4 @@
export * from "./agents";
export * from "./acp";
export * from "./git";
export * from "./pathResolver";
+17
View File
@@ -0,0 +1,17 @@
import { invoke } from "@tauri-apps/api/core";
export interface ResolvePathParams {
parts: string[];
}
export interface ResolvedPath {
path: string;
}
export async function resolvePath({
parts,
}: ResolvePathParams): Promise<ResolvedPath> {
return invoke("resolve_path", {
request: { parts },
});
}