goose2 session working dir (#8624)
This commit is contained in:
@@ -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,3 +1,4 @@
|
||||
export * from "./agents";
|
||||
export * from "./acp";
|
||||
export * from "./git";
|
||||
export * from "./pathResolver";
|
||||
|
||||
@@ -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 },
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user