API Reference minga_sdk v#0.1.0

Copy Markdown View Source

Modules

Public API for buffer operations.

Describes a single edit applied to a buffer.

Identifies who made an edit to a buffer.

Event bus for subscribing to editor lifecycle events.

Payload for :buffer_changed events.

Payload for :buffer_saved and :buffer_opened events.

Behaviour and DSL for Minga editor extensions.

Sanctioned text-generation helper for extensions.

Agent surface for Minga extensions.

Read-only facade for querying agent session state from extensions.

Registry for extension-owned decorations on file tree entries and tabs.

Sanctioned diagnostics surface for extensions.

Editor surface for Minga extensions.

Public declaration snapshot for an extension before runtime side effects run.

Registers model routes that run inside Minga's agent loop.

Registry for extension-owned overlays on the editor surface.

Registry for extension-owned panels in the editor.

Sanctioned per-extension persistent storage.

Contract for a contributed model route that supplies model streams to Minga's native agent loop.

Minga-owned identity of the conversation one route request belongs to, passed as opts[:minga_conversation].

The route's routes.<route_id>.env entry from credentials.json, passed as Request.credential.

One event in a route's response stream. Emit a tool call only once its arguments are final. A stream without a finish event finishes with :stop; {:finish, {:error, term}} fails the request and Minga passes term to classify_error/1.

One conversation message sent to a route. The system prompt travels in Request.system.

One model a contributed route offers. Minga fixes these fields into the selection policy.

Request options a route can act on: the output token cap and the selected reasoning level.

One subscription limit window a route reports through Minga.Extension.ModelRoutes.report_usage/3.

Capability returned by Minga.Extension.ModelRoutes.register/2 to report one route's status from any process.

Everything a route receives for one model request. tools is empty for :summary and :title requests.

A route's streaming reply: a lazy enumerable of MingaAgent.InferenceRoute.Event values and a cancel function.

An optional setup row a route shows in /model. Selecting it runs the route's availability/2 check.

Source-owned declaration of one contributed model route. short_name is the optional name used inside sentences, such as "Claude"; without it, sentences use display_name.

Last known readiness and plan usage of one contributed route. plan_usage is nil when the route has reported no usage.

One complete tool call. arguments is a decoded map. Minga runs the call; a route never does.

A tool the model may call. input_schema is a JSON Schema map with string keys.

Token usage a route reports for one request. Counts default to 0.

High-level editor actions for extensions.

Contract for synchronous runtime editor events declared by an extension.

Compile-time SDK stub for source-owned sidebar contributions.

Compile-time SDK struct for cached sidebar snapshots.