Saltar al contenido principal
Versión: 0.20.0

Interface: Extension

Defined in: core/extensions.ts:87

An internal extension: its plugin (whose manifest gives its name, description and capabilities), what it needs from the session, and what it brings.

Properties​

PropertyTypeDescriptionDefined in
external?booleanInstalled rather than shipped in a package (#37): its subagents get no Bash, and no plugin hook runs.core/extensions.ts:93
namestringIts name, the same as its plugin's (plugin.json's name).core/extensions.ts:89
pluginstringIts plugin's root: .claude-plugin/plugin.json, and its skills and commands, if any.core/extensions.ts:91

Methods​

contribute()​

contribute(context): Promise<ExtensionContribution>;

Defined in: core/extensions.ts:97

What it brings to the session, once it's active.

Parameters​

ParameterType
contextExtensionContext

Returns​

Promise<ExtensionContribution>


missing()?​

optional missing(context): string | undefined;

Defined in: core/extensions.ts:95

Why it can't run in this session (e.g. "needs a folder (dir)"), or undefined when it can.

Parameters​

ParameterType
contextExtensionContext

Returns​

string | undefined