feat(coding-agent): add ExtensionAPI setLabel

This commit is contained in:
Mario Zechner 2026-01-17 21:18:44 +01:00
parent fde9b089f4
commit 157e4e51bf
10 changed files with 41 additions and 0 deletions

View file

@ -114,6 +114,7 @@ export function createExtensionRuntime(): ExtensionRuntime {
appendEntry: notInitialized,
setSessionName: notInitialized,
getSessionName: notInitialized,
setLabel: notInitialized,
getActiveTools: notInitialized,
getAllTools: notInitialized,
setActiveTools: notInitialized,
@ -205,6 +206,10 @@ function createExtensionAPI(
return runtime.getSessionName();
},
setLabel(entryId: string, label: string | undefined): void {
runtime.setLabel(entryId, label);
},
exec(command: string, args: string[], options?: ExecOptions) {
return execCommand(command, args, options?.cwd ?? cwd, options);
},