internal/

directory
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: Apache-2.0

Directories

Path Synopsis
Package cli holds the thin cobra command handlers for the plugit binary.
Package cli holds the thin cobra command handlers for the plugit binary.
Package clients installs PlugIt into MCP client configs (SPEC T13): JSON files edited in place (Claude Desktop, Cursor, VS Code, Windsurf, Gemini CLI, LM Studio) and clients that own their config and are driven through their CLI (Claude Code, Codex).
Package clients installs PlugIt into MCP client configs (SPEC T13): JSON files edited in place (Claude Desktop, Cursor, VS Code, Windsurf, Gemini CLI, LM Studio) and clients that own their config and are driven through their CLI (Claude Code, Codex).
Package config owns PlugIt's on-disk layout and files: platform config paths, API directory names, owner-only atomic writes, plugit.yaml loading and validation (SPEC §3.6), and the manifest.json parse cache.
Package config owns PlugIt's on-disk layout and files: platform config paths, API directory names, owner-only atomic writes, plugit.yaml loading and validation (SPEC §3.6), and the manifest.json parse cache.
Package curate turns a parsed manifest and a toolset from plugit.yaml into the active toolset: which tools are served, under which names and descriptions, with which per-tool policy.
Package curate turns a parsed manifest and a toolset from plugit.yaml into the active toolset: which tools are served, under which names and descriptions, with which per-tool policy.
Package httpx provides PlugIt's hardened HTTP client (SPEC §5.3: T8, T9, T12).
Package httpx provides PlugIt's hardened HTTP client (SPEC §5.3: T8, T9, T12).
Package isolate runs spec parsing in a child process (SPEC §5.3, T2).
Package isolate runs spec parsing in a child process (SPEC §5.3, T2).
Package jsonpick keeps selected fields of a JSON value (SPEC M6 design note: response field filtering).
Package jsonpick keeps selected fields of a JSON value (SPEC M6 design note: response field filtering).
Package lint checks an API's toolsets for quality and safety problems (SPEC 4, rules L001-L019).
Package lint checks an API's toolsets for quality and safety problems (SPEC 4, rules L001-L019).
Package mcpserver serves tools over MCP (SPEC §3.7).
Package mcpserver serves tools over MCP (SPEC §3.7).
Package model is PlugIt's canonical intermediate representation of an API (SPEC §3.4).
Package model is PlugIt's canonical intermediate representation of an API (SPEC §3.4).
Package naming turns operations into MCP tool names, IDs and descriptions (SPEC §3.5 rules 1 and 2).
Package naming turns operations into MCP tool names, IDs and descriptions (SPEC §3.5 rules 1 and 2).
Package oauth gets OAuth 2.0 access tokens for an API (SPEC M6 design note: OAuth2): the client credentials grant, and the device authorization grant (RFC 8628) whose refresh token is kept by a Store (the OS keyring).
Package oauth gets OAuth 2.0 access tokens for an API (SPEC M6 design note: OAuth2): the client credentials grant, and the device authorization grant (RFC 8628) whose refresh token is kept by a Store (the OS keyring).
Package openapi turns an OpenAPI 3.0/3.1 or Swagger 2.0 document into a model.Manifest (SPEC §3.4, §3.5).
Package openapi turns an OpenAPI 3.0/3.1 or Swagger 2.0 document into a model.Manifest (SPEC §3.4, §3.5).
Package policy decides whether a tool call may run (SPEC §3.7 step 2, T5).
Package policy decides whether a tool call may run (SPEC §3.7 step 2, T5).
Package proxy turns validated tool arguments into an HTTP request and the upstream response into a tool result (SPEC §3.7 steps 5-8).
Package proxy turns validated tool arguments into an HTTP request and the upstream response into a tool result (SPEC §3.7 steps 5-8).
Package redact masks secrets before anything derived from a request or response reaches logs, the TUI or an error result.
Package redact masks secrets before anything derived from a request or response reaches logs, the TUI or an error result.
Package schema turns a tool's raw parameters and body into the argument set the model sees, and builds the MCP input schema from it (SPEC §3.5 rules 3, 6 and 7).
Package schema turns a tool's raw parameters and body into the argument set the model sees, and builds the MCP input schema from it (SPEC §3.5 rules 3, 6 and 7).
Package secrets parses and resolves value references (SPEC §3.6, T10):
Package secrets parses and resolves value references (SPEC §3.6, T10):
Package spec loads raw API spec bytes from a file or an http(s) URL, with size and time limits (SPEC §5.3, T2).
Package spec loads raw API spec bytes from a file or an http(s) URL, with size and time limits (SPEC §5.3, T2).
Package store is PlugIt's call log (SPEC §3.6 data/plugit.db, §3.7 step 9): one row of redacted metadata per tool call, kept for the API's log.retention, read by `plugit logs` and `plugit stats`.
Package store is PlugIt's call log (SPEC §3.6 data/plugit.db, §3.7 step 9): one row of redacted metadata per tool call, kept for the API's log.retention, read by `plugit logs` and `plugit stats`.
Package tokens estimates how many tokens a toolset costs in the model's context (SPEC §10 Q2: a calibrated heuristic).
Package tokens estimates how many tokens a toolset costs in the model's context (SPEC §10 Q2: a calibrated heuristic).
Package tui holds PlugIt's terminal screens (SPEC §2.3), built on Bubble Tea.
Package tui holds PlugIt's terminal screens (SPEC §2.3), built on Bubble Tea.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL