mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-17 22:13:08 +00:00
Fix: Restore views properly, model selection for commit and pr and speed up some cli models with session resume (#801)
* Changes from fix/restoring-view * feat: Add resume query safety checks and optimize store selectors * feat: Improve session management and model normalization * refactor: Extract prompt building logic and handle file path parsing for renames
This commit is contained in:
@@ -2204,10 +2204,32 @@ export class HttpApiClient implements ElectronAPI {
|
||||
}),
|
||||
commit: (worktreePath: string, message: string, files?: string[]) =>
|
||||
this.post('/api/worktree/commit', { worktreePath, message, files }),
|
||||
generateCommitMessage: (worktreePath: string) =>
|
||||
this.post('/api/worktree/generate-commit-message', { worktreePath }),
|
||||
generatePRDescription: (worktreePath: string, baseBranch?: string) =>
|
||||
this.post('/api/worktree/generate-pr-description', { worktreePath, baseBranch }),
|
||||
generateCommitMessage: (
|
||||
worktreePath: string,
|
||||
model?: string,
|
||||
thinkingLevel?: string,
|
||||
providerId?: string
|
||||
) =>
|
||||
this.post('/api/worktree/generate-commit-message', {
|
||||
worktreePath,
|
||||
model,
|
||||
thinkingLevel,
|
||||
providerId,
|
||||
}),
|
||||
generatePRDescription: (
|
||||
worktreePath: string,
|
||||
baseBranch?: string,
|
||||
model?: string,
|
||||
thinkingLevel?: string,
|
||||
providerId?: string
|
||||
) =>
|
||||
this.post('/api/worktree/generate-pr-description', {
|
||||
worktreePath,
|
||||
baseBranch,
|
||||
model,
|
||||
thinkingLevel,
|
||||
providerId,
|
||||
}),
|
||||
push: (worktreePath: string, force?: boolean, remote?: string, autoResolve?: boolean) =>
|
||||
this.post('/api/worktree/push', { worktreePath, force, remote, autoResolve }),
|
||||
sync: (worktreePath: string, remote?: string) =>
|
||||
|
||||
Reference in New Issue
Block a user