Handles reading and generating wsr.json — the optional per-repo configuration file.
Generated by wsr init at the repo root. All fields have sensible defaults; the file is not
required to run wsr.
{
"$schema": "https://wsr.dev/schema/wsr.json",
"provider": "github",
"sandbox": {
"allowed_hosts": [],
"secrets_from": ".env.wsr"
}
}
The $schema field enables IntelliSense and inline validation in VS Code and any JSON Schema-aware
editor.
ConfigTop-level config. Fields: schema, provider, sandbox.
ProviderEnum: github (default) · gitlab · bitbucket.
SandboxConfig| field | type | description |
|---|---|---|
allowed_hosts |
Vec<String> |
Hosts the sandbox may reach over the network |
secrets_from |
String |
Path to the secrets env file (default: .env.wsr) |
| method | description |
|---|---|
Config::load(root) |
Read and parse wsr.json from the given directory |
Config::generate(root) |
Write a default wsr.json to the given directory |