Function: getExtensionWarningActionLabel()
Makaio Framework / contracts / getExtensionWarningActionLabel
Function: getExtensionWarningActionLabel()
Section titled “Function: getExtensionWarningActionLabel()”getExtensionWarningActionLabel(
action):string
Defined in: ../../../packages/contracts/src/extension/extension-warning.ts:97
Return the default user-facing label for an extension warning action.
Kept with the action contract so every surface labels the same action kind consistently without duplicating switch statements.
Parameters
Section titled “Parameters”action
Section titled “action”{ bundle: string; clientId: string; kind: "configure-integration"; } | { extensionName: string; kind: "install-extension"; } | { kind: "open-url"; url: string; } | { command: string; kind: "run-command"; }
Extension warning action to label.
Type Literal
Section titled “Type Literal”{ bundle: string; clientId: string; kind: "configure-integration"; }
Extension warning action to label.
bundle
Section titled “bundle”string = ...
Extension bundle identifier the integration belongs to.
clientId
Section titled “clientId”string = ...
Client ID of the integration to configure (e.g. 'claude-code').
"configure-integration" = ...
Type Literal
Section titled “Type Literal”{ extensionName: string; kind: "install-extension"; }
Extension warning action to label.
extensionName
Section titled “extensionName”string = ...
Display name of the extension the user should install.
"install-extension" = ...
Type Literal
Section titled “Type Literal”{ kind: "open-url"; url: string; }
Extension warning action to label.
"open-url" = ...
string = ...
Absolute URL to navigate to.
Type Literal
Section titled “Type Literal”{ command: string; kind: "run-command"; }
Extension warning action to label.
command
Section titled “command”string = ...
Fully-qualified bus command name to invoke.
"run-command" = ...
Returns
Section titled “Returns”string
Short button label for the action kind.