mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
section 11: Phase 11: Assistant Mode writes v2 config; remove the hand-w
This commit is contained in:
1 parent
1802cdc7de
commit
0b2303a870
10 files changed
+418
-449
No files matched your search
@@ -26,7 +26,7 @@ export type ApplyOpenCodeConfigResult =
|
||||
| { status: 'reloaded'; config: OpenCodeConfigFile }
|
||||
| { status: 'restart_pending'; config: OpenCodeConfigFile }
|
||||
|
||||
export interface ApplyOpenCodeConfigInput {
|
||||
export interface ApplyOpenCodeConfigOptions {
|
||||
content: Record<string, unknown> | string
|
||||
source?: OpenCodeConfigSourceName
|
||||
expectedRevision?: string
|
||||
@@ -99,7 +99,7 @@ function requiresOpenCodeReload(previous: OpenCodeConfigFile | null, next: OpenC
|
||||
}
|
||||
|
||||
export async function applyOpenCodeConfigUpdate(
|
||||
input: ApplyOpenCodeConfigInput,
|
||||
input: ApplyOpenCodeConfigOptions,
|
||||
): Promise<ApplyOpenCodeConfigResult> {
|
||||
const { reloadRequired, config } = await withOpenCodeConfigLock(async () => {
|
||||
const { content, source, expectedRevision, mode, settingsService } = input
|
||||
|
||||
Reference in new issue
Block a user