Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
melange
command
Command melange is the entry point for the melange CLI.
|
Command melange is the entry point for the melange CLI. |
|
internal
|
|
|
api
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. |
|
api/gen
Package gen provides primitives to interact with the openapi HTTP API.
|
Package gen provides primitives to interact with the openapi HTTP API. |
|
authn
Package authn resolves and refreshes credentials shared by CLI entry points.
|
Package authn resolves and refreshes credentials shared by CLI entry points. |
|
build
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. |
|
cmd/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. |
|
cmd/deploy
Package deploy exposes deterministic SDK deployment guides from public-v1.
|
Package deploy exposes deterministic SDK deployment guides from public-v1. |
|
cmd/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. |
|
cmd/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. |
|
cmd/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. |
|
cmd/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). |
|
cmd/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. |
|
cmd/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. |
|
cmd/root
Package root wires the top-level `melange` cobra command.
|
Package root wires the top-level `melange` cobra command. |
|
cmd/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. |
|
cmd/version
Package version implements the `melange version` command.
|
Package version implements the `melange version` command. |
|
cmdutil
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. |
|
config
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. |
|
downloadstate
Package downloadstate serializes and persists one logical, billable model download authorization.
|
Package downloadstate serializes and persists one logical, billable model download authorization. |
|
fixturetest
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. |
|
httpmock
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). |
|
iostreams
Package iostreams provides the IOStreams abstraction used throughout the CLI.
|
Package iostreams provides the IOStreams abstraction used throughout the CLI. |
|
keyring
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. |
|
mcp
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. |
|
mcp/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. |
|
tableprinter
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. |
|
text
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. |
|
upload
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. |
|
uploadflow
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. |
|
wait
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. |
|
tools
|
|
|
gendocs
command
Command gendocs regenerates the Markdown CLI reference in docs/reference from the live cobra command tree.
|
Command gendocs regenerates the Markdown CLI reference in docs/reference from the live cobra command tree. |
|
mcpeval
command
Command mcpeval is the agent eval harness for the melange MCP server: it gives REAL Claude agents Melange jobs to do through the server and scores whether they succeed, so a regression in tool descriptions shows up as a score delta instead of going unnoticed.
|
Command mcpeval is the agent eval harness for the melange MCP server: it gives REAL Claude agents Melange jobs to do through the server and scores whether they succeed, so a regression in tool descriptions shows up as a score delta instead of going unnoticed. |
|
mcploadgen
command
Command mcploadgen is the on-demand load harness for `melange mcp --transport http`.
|
Command mcploadgen is the on-demand load harness for `melange mcp --transport http`. |
|
mcpschemas
command
Command mcpschemas derives the MCP tool output schemas from the vendored OpenAPI 3.0 document (openapi/public-v1.3.0.json) and writes one self-contained JSON Schema draft 2020-12 file per tool to internal/mcp/schemas/<tool>.json.
|
Command mcpschemas derives the MCP tool output schemas from the vendored OpenAPI 3.0 document (openapi/public-v1.3.0.json) and writes one self-contained JSON Schema draft 2020-12 file per tool to internal/mcp/schemas/<tool>.json. |
|
openapi30
command
Command openapi30 repairs and validates semantics that the pinned generic 3.1->3.0 converter does not preserve for oapi-codegen: nullable unions.
|
Command openapi30 repairs and validates semantics that the pinned generic 3.1->3.0 converter does not preserve for oapi-codegen: nullable unions. |
Click to show internal directories.
Click to hide internal directories.