feat(coding-agent): add InlineExtension type for named inline extension factories (#6267)

* feat(coding-agent): add InlineExtension type for named inline extension factories

* test(coding-agent): update utilities and add regression test for InlineExtension
This commit is contained in:
Victor Araújo
2026-07-06 15:59:37 -03:00
committed by GitHub
parent c8ada4e76e
commit b3dff19a04
13 changed files with 164 additions and 19 deletions
@@ -84,6 +84,7 @@ export type {
GetThinkingLevelHandler,
GrepToolCallEvent,
GrepToolResultEvent,
InlineExtension,
// Events - Input
InputEvent,
InputEventResult,
@@ -1446,6 +1446,14 @@ export interface ProviderModelConfig {
/** Extension factory function type. Supports both sync and async initialization. */
export type ExtensionFactory = (pi: ExtensionAPI) => void | Promise<void>;
export type InlineExtension =
| ExtensionFactory
| {
/** Display name shown as `<inline:name>` in the startup Extensions list. */
name: string;
factory: ExtensionFactory;
};
// ============================================================================
// Loaded Extension Types
// ============================================================================