feat(coding-agent): add llama.cpp router integration
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user