mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 08:03:19 +00:00
Adds the optional hover-actions export (plugin API 1.14): plugins contribute a host-rendered action at the left edge of an editor line, revealed by hovering the first four columns of any line in its start-line..end-line range and anchored to its declaration line. The host keeps it left of the line's text, out of the intention bulb's row, never takes focus on hover, collapses several actions into an overflow menu, and lists them in the editor context menu for keyboard access. SDK HoverActions, a minimal fixture, API-compat tests, docs and regenerated components. Review fixes: the button is positioned on its first show (it was left unpositioned until the next mouse move), the styles use theme tokens, the overflow menu is the shared context menu, and the labels go through the text catalog. Co-authored-by: NeverKnowsTomorrow <36879844+NeverKnowsTomorrow@users.noreply.github.com>
17 lines
726 B
Plaintext
17 lines
726 B
Plaintext
package openidea:plugin@1.14.0;
|
|
|
|
/// Discovery of the IDE's built-in MCP server; never exposes its URL or token.
|
|
interface mcp {
|
|
/// Stdio bridge argv for the invoking project; none without a window/project or while off.
|
|
stdio-command: func() -> option<list<string>>;
|
|
}
|
|
|
|
/// Optional tools declared by contributes.mcpTools, under the plugin's grants and command budget.
|
|
interface mcp-provider {
|
|
use types.{error};
|
|
use invocation.{invocation};
|
|
/// Calls the declared local tool name with JSON arguments and the project's window context.
|
|
/// Returns text; tools may encode structured data as JSON text.
|
|
call: func(tool: string, arguments: string, ctx: borrow<invocation>) -> result<string, error>;
|
|
}
|