diff --git a/AGENTS.md b/AGENTS.md index bfa5a5c..584f3e2 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -22,7 +22,7 @@ Tangled pipelines in `.tangled/workflows/` (nixery engine), not GitHub Actions: - `internal/app/` — frontend-independent application layer. `app.Service` bundles the resolver, appview, and auth dependencies and exposes every operation (target resolution, issue/PR/repo/string/SSH-key CRUD, auth flows) as methods returning typed domain structs. All application logic lives here. - `internal/cli/` — thin Cobra frontend over `internal/app`: one file per command, all built in `NewRoot`. Each `RunE` parses flags/args into a service call and renders the returned struct. -- `tangled/` — read-only client for the Bobbin appview XRPC API (default `https://bobbin.klbr.net`; override via `--appview`/`TG_APPVIEW`). +- `tangled/` — read-only client for the Bobbin appview XRPC API (default `https://api.tangled.org`; override via `--appview`/`TG_APPVIEW`). - Writes go two ways: PDS record mutations with the user's session (`atproto/`), and knot server RPCs (`knot/`) authed with a PDS-minted service-auth JWT. Both are orchestrated by `internal/app`. - `atproto/` — handle↔DID resolution, PDS discovery, OAuth + app-password sessions stored in the OS keyring. - `internal/gitutil/` — git subprocesses (clone, fetch, patch apply); its tests need `git` in PATH. diff --git a/config.toml b/config.toml index 683e0f7..23dc053 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,5 @@ # Appview used for read operations. -appview = "https://bobbin.klbr.net" +appview = "https://api.tangled.org" # SSH port for repository creation and SSH clones. ssh-port = 22 diff --git a/internal/cli/config.go b/internal/cli/config.go index 4c16bee..d59610f 100644 --- a/internal/cli/config.go +++ b/internal/cli/config.go @@ -11,7 +11,7 @@ import ( ) const ( - defaultAppview = "https://bobbin.klbr.net" + defaultAppview = "https://api.tangled.org" configName = "config" configType = "toml" ) diff --git a/website/src/content/docs/cookbooks/configuration.md b/website/src/content/docs/cookbooks/configuration.md index 89da3ef..3c19b01 100644 --- a/website/src/content/docs/cookbooks/configuration.md +++ b/website/src/content/docs/cookbooks/configuration.md @@ -6,7 +6,7 @@ description: Config file, environment variables, and flags. `tg` resolves configuration values from the following sources, in increasing precedence (later sources override earlier ones): -1. **Defaults.** `appview` is `https://bobbin.klbr.net`. `knot` is unset to permit automatic verified Knot discovery. `ssh-port` is `22`. `protocol` is `ssh`. +1. **Defaults.** `appview` is `https://api.tangled.org`. `knot` is unset to permit automatic verified Knot discovery. `ssh-port` is `22`. `protocol` is `ssh`. 2. **Config file** — `$XDG_CONFIG_HOME/tg/config.toml` (or `~/.config/tg/config.toml`) 3. **Environment variables** — prefixed `TG_` (e.g. `TG_APPVIEW`) 4. **Command-line flags** — e.g. `--appview` @@ -17,7 +17,7 @@ The config file is optional; a missing file is not an error. ```toml # ~/.config/tg/config.toml -appview = "https://bobbin.klbr.net" +appview = "https://api.tangled.org" knot = "knot.example.com" ssh-port = 2222 protocol = "ssh"