Directories
¶
| Path | Synopsis |
|---|---|
|
Package api provides the HTTP client wrapper for the Melange public API: transport chain (auth, retry, debug), error-envelope decoding, and the hand-written calls that will later be replaced by a generated client.
|
Package api provides the HTTP client wrapper for the Melange public API: transport chain (auth, retry, debug), error-envelope decoding, and the hand-written calls that will later be replaced by a generated client. |
|
gen
Package gen provides primitives to interact with the openapi HTTP API.
|
Package gen provides primitives to interact with the openapi HTTP API. |
|
Package authn resolves and refreshes credentials shared by CLI entry points.
|
Package authn resolves and refreshes credentials shared by CLI entry points. |
|
Package build provides version information set at build time via -ldflags.
|
Package build provides version information set at build time via -ldflags. |
|
cmd
|
|
|
api
Package api implements `melange api`, the authenticated raw-request escape hatch: any /v1 endpoint is callable through the standard transport chain even when no dedicated command wraps it yet.
|
Package api implements `melange api`, the authenticated raw-request escape hatch: any /v1 endpoint is callable through the standard transport chain even when no dedicated command wraps it yet. |
|
auth
Package auth implements the `melange auth` command family: login, logout, status, and token.
|
Package auth implements the `melange auth` command family: login, logout, status, and token. |
|
deploy
Package deploy exposes deterministic SDK deployment guides from public-v1.
|
Package deploy exposes deterministic SDK deployment guides from public-v1. |
|
library
Package library implements `melange library` — browsing the public model library: listing and filtering models, viewing a single model with its readme, and listing the providers.
|
Package library implements `melange library` — browsing the public model library: listing and filtering models, viewing a single model with its readme, and listing the providers. |
|
mcp
Package mcp implements the `melange mcp` command, which serves the Melange MCP server to agent clients over stdio or Streamable HTTP.
|
Package mcp implements the `melange mcp` command, which serves the Melange MCP server to agent clients over stdio or Streamable HTTP. |
|
model
Package model implements `melange model` — uploading models through the ingestion v2 protocol (manifest, resumable GCS uploads, verify/complete), tracking their conversion status, browsing models and their converted targets, and downloading target artifacts.
|
Package model implements `melange model` — uploading models through the ingestion v2 protocol (manifest, resumable GCS uploads, verify/complete), tracking their conversion status, browsing models and their converted targets, and downloading target artifacts. |
|
plan
Package plan implements `melange plan` — the account's effective billing plan identity (the tier its quotas derive from).
|
Package plan implements `melange plan` — the account's effective billing plan identity (the tier its quotas derive from). |
|
repo
Package repo implements `melange repo` — commands for managing model repositories on the Melange platform.
|
Package repo implements `melange repo` — commands for managing model repositories on the Melange platform. |
|
report
Package report implements `melange report` — reading a model's benchmark reports (general, LLM, package) as the dashboard-grade table on a terminal and as raw, one-record-per-line TSV for scripts.
|
Package report implements `melange report` — reading a model's benchmark reports (general, LLM, package) as the dashboard-grade table on a terminal and as raw, one-record-per-line TSV for scripts. |
|
root
Package root wires the top-level `melange` cobra command.
|
Package root wires the top-level `melange` cobra command. |
|
usage
Package usage implements `melange usage` — the current billing-period usage counters and, via `usage quotas`, those counters against the plan limits.
|
Package usage implements `melange usage` — the current billing-period usage counters and, via `usage quotas`, those counters against the plan limits. |
|
version
Package version implements the `melange version` command.
|
Package version implements the `melange version` command. |
|
Package cmdutil provides shared utilities for CLI commands: the Factory, error types, and exit-code mapping.
|
Package cmdutil provides shared utilities for CLI commands: the Factory, error types, and exit-code mapping. |
|
Package config handles loading, saving, and resolving configuration values for the melange CLI.
|
Package config handles loading, saving, and resolving configuration values for the melange CLI. |
|
Package downloadstate serializes and persists one logical, billable model download authorization.
|
Package downloadstate serializes and persists one logical, billable model download authorization. |
|
Package fixturetest provides the shared helpers for tests that exercise the backend contract fixtures under openapi/fixtures: loading a fixture, concretizing its placeholder tokens, comparing JSON structurally with null and absent treated as equal, and matching request paths whose variable segments are placeholders.
|
Package fixturetest provides the shared helpers for tests that exercise the backend contract fixtures under openapi/fixtures: loading a fixture, concretizing its placeholder tokens, comparing JSON structurally with null and absent treated as equal, and matching request paths whose variable segments are placeholders. |
|
Package httpmock provides a minimal mock http.RoundTripper for tests, modeled on gh's pkg/httpmock (simplified).
|
Package httpmock provides a minimal mock http.RoundTripper for tests, modeled on gh's pkg/httpmock (simplified). |
|
Package iostreams provides the IOStreams abstraction used throughout the CLI.
|
Package iostreams provides the IOStreams abstraction used throughout the CLI. |
|
Package keyring stores Melange credentials in the OS keychain via zalando/go-keyring.
|
Package keyring stores Melange credentials in the OS keychain via zalando/go-keyring. |
|
Package mcp implements the Melange MCP server: a tool catalog over the generated API client, transport-agnostic so the stdio command (and a later HTTP transport) only wire dependencies.
|
Package mcp implements the Melange MCP server: a tool catalog over the generated API client, transport-agnostic so the stdio command (and a later HTTP transport) only wire dependencies. |
|
httpserver
Package httpserver serves the Melange MCP server over the MCP Streamable HTTP transport for remote agent clients.
|
Package httpserver serves the Melange MCP server over the MCP Streamable HTTP transport for remote agent clients. |
|
Package tableprinter renders a command's result for a reader or for a machine.
|
Package tableprinter renders a command's result for a reader or for a machine. |
|
Package text provides small formatting helpers shared by command output: rune-safe truncation, compact relative timestamps, and byte sizes.
|
Package text provides small formatting helpers shared by command output: rune-safe truncation, compact relative timestamps, and byte sizes. |
|
Package upload implements the client half of the Melange ingestion v2 protocol: manifest digesting, persisted upload-session state, and the GCS resumable upload protocol over v4 signed URLs.
|
Package upload implements the client half of the Melange ingestion v2 protocol: manifest digesting, persisted upload-session state, and the GCS resumable upload protocol over v4 signed URLs. |
|
Package uploadflow is the upload session state machine, extracted from the `melange model upload` command so that non-CLI frontends (the MCP server's upload_model tool) can drive the same flow.
|
Package uploadflow is the upload session state machine, extracted from the `melange model upload` command so that non-CLI frontends (the MCP server's upload_model tool) can drive the same flow. |
|
Package wait provides a generic context-aware polling loop with exponential backoff, full jitter, and an overall timeout.
|
Package wait provides a generic context-aware polling loop with exponential backoff, full jitter, and an overall timeout. |
Click to show internal directories.
Click to hide internal directories.