Documentation
¶
Overview ¶
Kumo is a calm desktop client for the Mihomo proxy core. One executable is the app, the kumo command (when invoked as kumo, or with arguments) and the guardian that cleans up after a crashed app.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
kumo
command
Command kumo is Kumo's command-line interface, built on its own for development and CI.
|
Command kumo is Kumo's command-line interface, built on its own for development and CI. |
|
internal
|
|
|
application
Package application holds Kumo's use cases.
|
Package application holds Kumo's use cases. |
|
domain/core
Package core models the Mihomo runtime that Kumo controls: how traffic is routed, how the core is reached, the settings Kumo owns in the generated configuration, and the lifecycle of one core session.
|
Package core models the Mihomo runtime that Kumo controls: how traffic is routed, how the core is reached, the settings Kumo owns in the generated configuration, and the lifecycle of one core session. |
|
domain/inspect
Package inspect models what a running core reports about its work: connections, rules, logs, traffic and providers.
|
Package inspect models what a running core reports about its work: connections, rules, logs, traffic and providers. |
|
domain/override
Package override models the ordered patches Kumo applies on top of the current profile before handing the configuration to Mihomo.
|
Package override models the ordered patches Kumo applies on top of the current profile before handing the configuration to Mihomo. |
|
domain/preferences
Package preferences models the app-level choices of the user, apart from how the core runs.
|
Package preferences models the app-level choices of the user, apart from how the core runs. |
|
domain/profile
Package profile models the Mihomo configurations the user imports: local files, remote subscriptions and Sub-Store outputs, with the metadata Kumo keeps about each.
|
Package profile models the Mihomo configurations the user imports: local files, remote subscriptions and Sub-Store outputs, with the metadata Kumo keeps about each. |
|
domain/proxy
Package proxy models the proxy groups and nodes of a configuration, as the running core reports them or as a profile declares them.
|
Package proxy models the proxy groups and nodes of a configuration, as the running core reports them or as a profile declares them. |
|
domain/runtimeconfig
Package runtimeconfig builds the configuration Mihomo runs with: the current profile, the user's overrides in order, and the settings Kumo controls, which always win.
|
Package runtimeconfig builds the configuration Mihomo runs with: the current profile, the user's overrides in order, and the settings Kumo controls, which always win. |
|
domain/systemproxy
Package systemproxy models the operating system's proxy settings as Kumo sees them: what Kumo wants applied, what it applied, what the system shows now, and whether Kumo still owns it when another app may have changed it.
|
Package systemproxy models the operating system's proxy settings as Kumo sees them: what Kumo wants applied, what it applied, what the system shows now, and whether Kumo still owns it when another app may have changed it. |
|
domain/topology
Package topology turns a configuration into the graph of how traffic flows through it: the outbound mode, the rules that pick a policy, the proxy groups that pick a node, and the proxies and providers at the end.
|
Package topology turns a configuration into the graph of how traffic flows through it: the outbound mode, the rules that pick a policy, the proxy groups that pick a node, and the proxies and providers at the end. |
|
infrastructure/clilink
Package clilink puts the kumo command on the user's PATH by linking it to the binary inside the app.
|
Package clilink puts the kumo command on the user's PATH by linking it to the binary inside the app. |
|
infrastructure/fetch
Package fetch downloads remote profiles and overrides.
|
Package fetch downloads remote profiles and overrides. |
|
infrastructure/jsoverride
Package jsoverride runs JavaScript overrides: scripts that define main(config) and return the changed configuration, as Clash Verge's "scripts" do.
|
Package jsoverride runs JavaScript overrides: scripts that define main(config) and return the changed configuration, as Clash Verge's "scripts" do. |
|
infrastructure/mihomo
Package mihomo talks to the Mihomo core: it launches the process and calls its external controller.
|
Package mihomo talks to the Mihomo core: it launches the process and calls its external controller. |
|
infrastructure/pac
Package pac serves a proxy auto-config script on loopback.
|
Package pac serves a proxy auto-config script on loopback. |
|
infrastructure/paths
Package paths names every file Kumo keeps.
|
Package paths names every file Kumo keeps. |
|
infrastructure/ports
Package ports finds out whether the ports Kumo needs are free, and who holds them when they are not.
|
Package ports finds out whether the ports Kumo needs are free, and who holds them when they are not. |
|
infrastructure/process
Package process inspects and ends processes by pid, the way Kumo finds a core it launched in an earlier run or from another surface.
|
Package process inspects and ends processes by pid, the way Kumo finds a core it launched in an earlier run or from another surface. |
|
infrastructure/skills
Package skills installs Kumo's bundled Agent Skills into the skill directories of coding agents, so they know how to drive the kumo CLI.
|
Package skills installs Kumo's bundled Agent Skills into the skill directories of coding agents, so they know how to drive the kumo CLI. |
|
infrastructure/storage
Package storage reads and writes Kumo's JSON documents atomically, under a lock shared by the app, the CLI and the service.
|
Package storage reads and writes Kumo's JSON documents atomically, under a lock shared by the app, the CLI and the service. |
|
infrastructure/sysproxy
Package sysproxy implements systemproxy.Platform for each operating system, and an in-memory one that tests and simulations drive.
|
Package sysproxy implements systemproxy.Platform for each operating system, and an in-memory one that tests and simulations drive. |
|
interfaces/cli
Package cli is the kumo command: the same use cases as the app, for people at a terminal and for coding agents.
|
Package cli is the kumo command: the same use cases as the app, for people at a terminal and for coding agents. |
|
interfaces/desktop
Package desktop exposes Kumo's use cases to the app's pages: each bound service is a thin adapter over the application layer, and Go events carry what changes on its own (status, traffic, logs, contention).
|
Package desktop exposes Kumo's use cases to the app's pages: each bound service is a thin adapter over the application layer, and Go events carry what changes on its own (status, traffic, logs, contention). |
Click to show internal directories.
Click to hide internal directories.