feat(coding-agent): add llama.cpp router integration

This commit is contained in:
Mario Zechner
2026-07-17 16:24:21 +02:00
parent 5124c61b25
commit f1a466b19d
17 changed files with 1347 additions and 9 deletions
@@ -1482,6 +1482,8 @@ export type InlineExtension =
/** Display name shown as `<inline:name>` in the startup Extensions list. */
name: string;
factory: ExtensionFactory;
/** Omit this extension from the startup Extensions list. */
hidden?: boolean;
};
// ============================================================================
@@ -1649,6 +1651,7 @@ export interface ExtensionRuntime extends ExtensionRuntimeState, ExtensionAction
export interface Extension {
path: string;
resolvedPath: string;
hidden?: boolean;
sourceInfo: SourceInfo;
handlers: Map<string, HandlerFn[]>;
tools: Map<string, RegisteredTool>;
@@ -899,6 +899,7 @@ export class DefaultResourceLoader implements ResourceLoader {
const extensionPath = `<inline:${isNamed ? input.name : index + 1}>`;
try {
const extension = await loadExtensionFromFactory(factory, this.cwd, this.eventBus, runtime, extensionPath);
extension.hidden = isNamed && input.hidden;
extensions.push(extension);
} catch (error) {
const message = error instanceof Error ? error.message : "failed to load extension";